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/217
Multi-task dataset mixing
Good spot! Here are my thoughts: - Aside: Adding `MultitaskModel` to transformers might be a thing to raise - even though having task-specific heads has become unfashionable in recent times in favour of text-to-text type models. - Adding the task name as an extra field also seems useful for these kind of models which have task-specific heads - There is some validation of our approach that the user should be expected to `map` datasets into a common form. - The size-proportional sampling (also called "Examples-proportional mixing") used here doesn't perform too badly in the T5 paper (it's comparable to temperature-scaled mixing in many cases but less flexible. This is only reasonable with a `K` maximum size parameter to prevent very large datasets dominating). This might be good for a first prototype using: ```python def __iter__(self): """ For each batch, sample a task, and yield a batch from the respective task Dataloader. We use size-proportional sampling, but you could easily modify this to sample from some-other distribution. """ task_choice_list = [] for i, task_name in enumerate(self.task_name_list): task_choice_list += [i] * self.num_batches_dict[task_name] task_choice_list = np.array(task_choice_list) np.random.shuffle(task_choice_list) dataloader_iter_dict = { task_name: iter(dataloader) for task_name, dataloader in self.dataloader_dict.items() } for task_choice in task_choice_list: task_name = self.task_name_list[task_choice] yield next(dataloader_iter_dict[task_name]) ``` We'd just need to pull samples from the raw datasets and not from `DataLoader`s for each task. We can assume the user has done `dataset.shuffle()` if they want to. Other sampling methods can later be implemented by changing how the `task_choice_list` is generated. This should allow more flexibility and not tie us to specific methods for sampling among datasets.
It seems like many of the best performing models on the GLUE benchmark make some use of multitask learning (simultaneous training on multiple tasks). The [T5 paper](https://arxiv.org/pdf/1910.10683.pdf) highlights multiple ways of mixing the tasks together during finetuning: - **Examples-proportional mixing** - sample from tasks proportionally to their dataset size - **Equal mixing** - sample uniformly from each task - **Temperature-scaled mixing** - The generalized approach used by multilingual BERT which uses a temperature T, where the mixing rate of each task is raised to the power 1/T and renormalized. When T=1 this is equivalent to equal mixing, and becomes closer to equal mixing with increasing T. Following this discussion https://github.com/huggingface/transformers/issues/4340 in [transformers](https://github.com/huggingface/transformers), @enzoampil suggested that the `nlp` library might be a better place for this functionality. Some method for combining datasets could be implemented ,e.g. ``` dataset = nlp.load_multitask(['squad','imdb','cnn_dm'], temperature=2.0, ...) ``` We would need a few additions: - Method of identifying the tasks - how can we support adding a string to each task as an identifier: e.g. 'summarisation: '? - Method of combining the metrics - a standard approach is to use the specific metric for each task and add them together for a combined score. It would be great to support common use cases such as pretraining on the GLUE benchmark before fine-tuning on each GLUE task in turn. I'm willing to write bits/most of this I just need some guidance on the interface and other library details so I can integrate it properly.
264
Multi-task dataset mixing It seems like many of the best performing models on the GLUE benchmark make some use of multitask learning (simultaneous training on multiple tasks). The [T5 paper](https://arxiv.org/pdf/1910.10683.pdf) highlights multiple ways of mixing the tasks together during finetuning: - **Examples-proportional mixing** - sample from tasks proportionally to their dataset size - **Equal mixing** - sample uniformly from each task - **Temperature-scaled mixing** - The generalized approach used by multilingual BERT which uses a temperature T, where the mixing rate of each task is raised to the power 1/T and renormalized. When T=1 this is equivalent to equal mixing, and becomes closer to equal mixing with increasing T. Following this discussion https://github.com/huggingface/transformers/issues/4340 in [transformers](https://github.com/huggingface/transformers), @enzoampil suggested that the `nlp` library might be a better place for this functionality. Some method for combining datasets could be implemented ,e.g. ``` dataset = nlp.load_multitask(['squad','imdb','cnn_dm'], temperature=2.0, ...) ``` We would need a few additions: - Method of identifying the tasks - how can we support adding a string to each task as an identifier: e.g. 'summarisation: '? - Method of combining the metrics - a standard approach is to use the specific metric for each task and add them together for a combined score. It would be great to support common use cases such as pretraining on the GLUE benchmark before fine-tuning on each GLUE task in turn. I'm willing to write bits/most of this I just need some guidance on the interface and other library details so I can integrate it properly. Good spot! Here are my thoughts: - Aside: Adding `MultitaskModel` to transformers might be a thing to raise - even though having task-specific heads has become unfashionable in recent times in favour of text-to-text type models. - Adding the task name as an extra field also seems useful for these kind of models which have task-specific heads - There is some validation of our approach that the user should be expected to `map` datasets into a common form. - The size-proportional sampling (also called "Examples-proportional mixing") used here doesn't perform too badly in the T5 paper (it's comparable to temperature-scaled mixing in many cases but less flexible. This is only reasonable with a `K` maximum size parameter to prevent very large datasets dominating). This might be good for a first prototype using: ```python def __iter__(self): """ For each batch, sample a task, and yield a batch from the respective task Dataloader. We use size-proportional sampling, but you could easily modify this to sample from some-other distribution. """ task_choice_list = [] for i, task_name in enumerate(self.task_name_list): task_choice_list += [i] * self.num_batches_dict[task_name] task_choice_list = np.array(task_choice_list) np.random.shuffle(task_choice_list) dataloader_iter_dict = { task_name: iter(dataloader) for task_name, dataloader in self.dataloader_dict.items() } for task_choice in task_choice_list: task_name = self.task_name_list[task_choice] yield next(dataloader_iter_dict[task_name]) ``` We'd just need to pull samples from the raw datasets and not from `DataLoader`s for each task. We can assume the user has done `dataset.shuffle()` if they want to. Other sampling methods can later be implemented by changing how the `task_choice_list` is generated. This should allow more flexibility and not tie us to specific methods for sampling among datasets.
[ -0.005269646644592285, -0.45644286274909973, -0.04090098664164543, -0.03315447270870209, -0.24214394390583038, 0.08998870104551315, 0.22626756131649017, 0.033793337643146515, 0.34558242559432983, -0.1832491010427475, -0.17462339997291565, 0.2782376706600189, -0.21713002026081085, 0.3147801160812378, 0.39542341232299805, -0.447458952665329, 0.05297643318772316, -0.26878708600997925, -0.24235063791275024, 0.3768042325973511, 0.023828938603401184, 0.1376442015171051, -0.16504822671413422, 0.10277881473302841, -0.3490162789821625, -0.14932693541049957, -0.29104551672935486, 0.10549026727676392, 0.14364339411258698, 0.04943341761827469, 0.24418722093105316, 0.34175893664360046, -0.03197280690073967, 0.19578039646148682, -0.00011775489110732451, -0.026304692029953003, 0.22959090769290924, -0.0533907413482666, 0.13802732527256012, -0.051430970430374146, 0.13814201951026917, -0.3776624798774719, 0.06772950291633606, -0.12424924969673157, 0.19982901215553284, 0.26353877782821655, 0.18151061236858368, 0.13066010177135468, 0.3444684147834778, -0.33991166949272156, 0.058766432106494904, 0.27942779660224915, -0.20459207892417908, 0.3041360676288605, -0.08195000141859055, 0.047511160373687744, 0.0006842557340860367, 0.24062438309192657, 0.6316850185394287, -0.61226487159729, 0.009546831250190735, 0.11814568936824799, 0.02063179947435856, -0.07559342682361603, 0.2131650149822235, -0.07582787424325943, -0.3081112205982208, -0.20631608366966248, -0.40163862705230713, 0.1982734501361847, -0.13543754816055298, -0.1260310411453247, -0.17508941888809204, -0.5726637244224548, -0.09653220325708389, 0.07819842547178268, -0.28447985649108887, 0.01564617082476616, -0.19182904064655304, -0.04815274104475975, -0.1326409876346588, -0.1277313381433487, -0.03177616000175476, 0.13176566362380981, 0.3510729670524597, 0.6222612857818604, 0.14799077808856964, 0.1552359163761139, 0.38221290707588196, 0.10093481093645096, -0.08788418024778366, -0.2404811978340149, 0.31390100717544556, 0.11480120569467545, -0.3939470052719116, -0.3623136579990387, 0.2042011022567749, -0.2805655598640442, 0.22935134172439575, 0.06943414360284805, 0.1664724051952362, 0.0844728946685791, -0.12309950590133667, 0.2612059414386749, 0.31291550397872925, 0.004651254042983055, -0.13495349884033203, -0.0976874902844429, 0.0522310845553875, -0.07296283543109894, 0.2354494035243988, 0.10745193809270859, 0.16393165290355682, -0.016647864133119583, -0.4331250786781311, -0.081639863550663, -0.13500382006168365, 0.1605200320482254, -0.1213199570775032, -0.560520589351654, -0.03214449808001518, -0.14208993315696716, 0.1316169947385788, -0.09903367608785629, -0.3058050572872162, 0.1391584873199463, -0.08490371704101562, 0.2681118845939636, -0.09449829161167145, 0.1329028308391571, -0.039604414254426956, 0.04850275069475174, -0.44950029253959656, -0.06490986794233322, 0.3281109631061554, 0.21358828246593475, 0.05287647247314453, 0.13712100684642792, -0.0014480650424957275, 0.0744326040148735, 0.3536287248134613, 0.054831694811582565, -0.010000675916671753, 0.042955998331308365, 0.07790699601173401, -0.30953678488731384, -0.0271463580429554, 0.2130468338727951, -0.346698522567749, -0.135694682598114, -0.1648988127708435, -0.2356417328119278, 0.1343439519405365, -0.014896475709974766, -0.18980443477630615, -0.25104638934135437, -0.5263699293136597, 0.6592668294906616, -0.030561544001102448, -0.057074300944805145, -0.12782618403434753, 0.3252677917480469, -0.2402961254119873, -0.07828105986118317, 0.12975244224071503, 0.04584091901779175, 0.034658607095479965, -0.3742162585258484, -0.09624528884887695, -0.08568501472473145, -0.040357254445552826, 0.30118221044540405, -0.18863284587860107, 0.2752714455127716, 0.09550344198942184, 0.1311880201101303, 0.21981242299079895, -0.48723840713500977, -0.030618662014603615, 0.2935408353805542, -0.02629118412733078, 0.3781124949455261, 0.07428226619958878, 0.24824519455432892, -0.04977576807141304, -0.18438923358917236, 0.2528437376022339, 0.9806966185569763, -0.3445679843425751, 0.00781315378844738, -0.12597180902957916, -0.38481032848358154, 0.5938204526901245, 0.3565862774848938, 0.12478755414485931, -0.282346248626709, -0.13511577248573303, 0.08289221674203873, 0.09046849608421326, 0.11593053489923477, 0.07905583828687668, -0.09205979108810425, -0.3260625898838043, 0.02391459047794342, -0.16235771775245667, -0.1164989024400711, -0.4359434247016907, 0.010673616081476212, -0.0292153712362051, 0.3597773611545563, 0.2142837792634964, -0.10928693413734436, 0.2714821994304657, -0.27914243936538696, -0.1207624077796936, -0.30259376764297485, 0.0706900879740715, -0.12522903084754944, -0.03366311267018318, -0.28421691060066223, -0.014254197478294373, 0.28782233595848083, 0.17413769662380219, -0.09134741127490997, -0.4625683128833771, 0.3106149733066559, -0.11350926011800766, 0.07947519421577454, -0.0783739686012268, 0.671086311340332, -0.13304314017295837, -0.05170850828289986, 0.18674451112747192, 0.2545596659183502, -0.30537211894989014, 0.26025378704071045, 0.3174132704734802, 0.3043530285358429, 0.1962372362613678, -0.050678692758083344, 0.08027477562427521, 0.07100719213485718, -0.006333139259368181, -0.25429004430770874, -0.16883793473243713, 0.4554283022880554, -0.179830864071846, 0.46422258019447327, -0.07356242090463638, -0.0063695525750517845, -0.20803223550319672, -0.044366005808115005, -0.2130458652973175, 0.446104496717453, 0.29147428274154663, -0.16969922184944153, 0.21452754735946655, -0.10940855741500854, -0.35217344760894775, 0.14893952012062073, 0.13902030885219574, 0.03116152063012123, 0.03513532131910324, 0.012584298849105835, 0.006687447428703308, -0.2945312261581421, -0.1144244372844696, 0.29003721475601196, 0.5758752822875977, 0.218854159116745, 0.13711325824260712, 0.017956359311938286, -0.20882165431976318, -0.09033504873514175, 0.013693936169147491, 0.2752799987792969, 0.016922881826758385, 0.1939089596271515, 0.015642199665308, 0.06455492973327637, 0.04245775192975998, -0.20733001828193665, 0.15761052072048187, -0.20261113345623016, -0.05982048064470291, 0.03191566467285156, -0.1862058937549591, -0.5582320690155029, -0.25547924637794495, -0.010924267582595348, -0.36712127923965454, -0.2729378640651703, 0.15407243371009827, 0.043434735387563705, -0.16207264363765717, 0.1376045197248459, 0.2474057972431183, 0.6375621557235718, -0.4645485281944275, -0.23034055531024933, -0.14063911139965057, -0.3725033700466156, -0.07144680619239807, 0.07383912801742554, 0.45979827642440796, 0.28610607981681824, 0.3831214904785156, 0.3352017402648926, -0.07496806979179382, 0.10937564074993134, -0.40889284014701843, 0.010390058159828186, -0.2810268998146057, 0.24833248555660248, 0.08054912835359573, -0.2144775539636612, 0.1742967665195465, -0.3981610834598541, -0.06309687346220016, -0.027325501665472984, -0.06673881411552429, -0.004362182691693306, -0.006471513770520687, 0.08041536808013916, -0.19725632667541504, -0.16866132616996765, -0.6268006563186646, -0.47573286294937134, 0.32473593950271606, -0.28774288296699524, 0.0625833049416542, 0.09646818041801453, -0.2704406976699829, 0.12282249331474304, -0.07755082100629807, -0.006086103618144989, -0.12584738433361053, -0.04207451641559601, 0.02764713764190674, -0.336820125579834, -0.14505451917648315, -0.3748607337474823, -0.09668345004320145, 0.22548224031925201, -0.07548373192548752, -0.014169439673423767, -0.14891472458839417, 0.10138926655054092, -0.1627759039402008, 0.147262305021286, 0.13594399392604828, 0.17427438497543335, -0.20071303844451904, 0.16263213753700256, -0.018706882372498512, -0.32956209778785706, 0.2292133867740631, 0.3730612099170685, 0.45728445053100586, 0.1779811978340149, 0.05432266741991043, 0.16411487758159637, 0.720228910446167, 0.21208177506923676, 0.11297017335891724, 0.12070481479167938, 0.3397212624549866, -0.09869548678398132, 0.16566088795661926, -0.23940777778625488, 0.25505924224853516, -0.17682766914367676, 0.47674065828323364, 0.04971035569906235, 0.2018958032131195, -0.20101553201675415, -0.2819041311740875, -0.030092548578977585, -0.2980360686779022, -0.2182210236787796, 0.26773789525032043, -0.2083994448184967, 0.04012395069003105, -0.0738251805305481, -0.4009007215499878, -0.2804740071296692, -0.0633702427148819, 0.05634484067559242, 0.42383480072021484, -0.057890571653842926, 0.172498881816864, -0.3345385491847992, -0.06981949508190155, -0.40455523133277893, 0.05911198630928993, 0.02873918227851391, 0.23816992342472076, -0.09146780520677567, -0.06206614524126053, -0.06574039161205292, 0.1658874750137329, 0.6495802402496338, -0.47984015941619873, -0.10412165522575378, 0.08365960419178009, 0.08293919265270233, -0.04358275234699249, -0.14425060153007507, -0.24003976583480835, -0.0459776297211647, 0.43813690543174744, 0.40390893816947937, -0.3940843343734741, -0.28113970160484314, 0.19087892770767212, -0.2568361163139343, -0.12578056752681732, -0.2316511571407318, -0.21141797304153442, -0.17475783824920654, -0.14961373805999756, 0.0511501207947731, 0.2645755708217621, 0.21153399348258972, -0.10403923690319061, 0.13656310737133026, -0.01972111128270626, 0.23842495679855347, 0.21176382899284363, -0.014664506539702415, -0.09972888976335526, 0.2485462725162506, 0.12894012033939362, 0.036327216774225235, -0.1606735736131668, -0.3427606225013733, 0.07137418538331985, 0.041647884994745255, 0.13564154505729675, 0.283873587846756, -0.008410490117967129, 0.6613305807113647, 0.0713409036397934, 0.3820054531097412, 0.29507121443748474, -0.03617796674370766, -0.006973326206207275, -0.27927330136299133, 0.13812746107578278, 0.18902547657489777, 0.2439095377922058, -0.19070546329021454, -0.17326898872852325, 0.5538417100906372, 0.2548624873161316, -0.10853832960128784, 0.38894763588905334, -0.579423725605011, -0.2847031056880951, 0.28209590911865234, 0.06647081673145294, 0.7568145990371704, -0.022754766047000885, 0.2946830093860626, 0.05107250064611435, -0.46020108461380005, 0.5372834205627441, -0.4241020083427429, 0.1517772227525711, -0.04898113012313843, -0.11968028545379639, -0.010852750390768051, -0.10564865171909332, -0.10179875046014786, 0.30793988704681396, -0.33810093998908997, 0.30630984902381897, 0.49197518825531006, -0.23215651512145996, -0.07935893535614014, 0.5174075961112976, 0.09096947312355042, -0.3882365822792053, 0.008938455022871494, 0.008923415094614029, -0.25484180450439453, 0.16929343342781067, -0.1970803141593933, -0.29695218801498413, 0.19138270616531372, 0.12744590640068054, -0.2990948557853699, 0.08042916655540466, 0.08365534245967865, 0.26139843463897705, 0.3219774663448334, 0.001385606825351715, 0.3056199252605438, -0.2154477834701538, -0.08355768024921417, -0.1875600963830948, -0.10171791911125183, 0.16740106046199799, -0.2228163778781891, 0.0701347216963768, 0.0455235056579113, -0.18126128613948822, 0.5122030377388, -0.07783958315849304, -0.12756969034671783, -0.2751878499984741, 0.2506483495235443, -0.4533957242965698, -0.23373782634735107, 0.14939185976982117, 0.14604704082012177, 0.23558321595191956, -0.33223065733909607, 0.5851311683654785, 0.08234447240829468, -0.005585215985774994, 0.012265305034816265, 0.1860225796699524, -0.2039259821176529, 0.5055800080299377, -0.3174492120742798, 0.04855172336101532, 0.0821751207113266, -0.043954528868198395, -0.1198657676577568, -0.4059041440486908, -0.09712424874305725, 0.3543558418750763, 0.09507539868354797, 0.02545522153377533, -0.05688776075839996, 0.13590481877326965, -0.12698417901992798, -0.05918305739760399, -0.13868802785873413, -0.39263200759887695, 0.10445569455623627, 0.21058253943920135, 0.2017635554075241, 0.16465376317501068, -0.07526334375143051, -0.2580512762069702, -0.21936962008476257, 0.5150887370109558, -0.026738744229078293, 0.2010471373796463, -0.16419115662574768, 0.37563809752464294, 0.42429476976394653, 0.5418843030929565, -0.20867738127708435, 0.06487954407930374, 0.061779752373695374, 0.0810442566871643, 0.3777201175689697, -0.27975887060165405, 0.044447336345911026, 0.2270772010087967, -0.18765510618686676, 0.006583604961633682, -0.27863726019859314, -0.109199158847332, -0.2729395925998688, 0.13855072855949402, 0.14789065718650818, 0.03522074967622757, -0.0034777619875967503, -0.08391063660383224, -0.04549374058842659, -0.018514074385166168, -0.06120430305600166, -0.3870376646518707, -0.026049673557281494, 0.18790361285209656, -0.043608371168375015, 0.05576198548078537, 0.017928093671798706, 0.24481482803821564, 0.042888060212135315, -0.06855161488056183, 0.36694246530532837, 0.09157968312501907, 0.15586097538471222, -0.14030061662197113, -0.24093961715698242, 0.020428717136383057, 0.2335355579853058, 0.13942953944206238, -0.009182214736938477, 0.190738707780838, -0.23085440695285797, -0.13711173832416534, 0.16963441669940948, 0.12699513137340546, 0.07510552555322647, -0.10606851428747177, 0.09852845966815948, 0.07580385357141495, -0.11297879368066788, -0.023444950580596924, 0.21591266989707947, 0.09666822850704193, 0.043264348059892654, 0.1152695044875145, 0.14180392026901245, 0.494113564491272, -0.2662068009376526, 0.08396879583597183, 0.108830027282238, -0.35634636878967285, 0.13451817631721497, -0.15543551743030548, -0.02022498846054077, 0.029280390590429306, 0.15330468118190765, -0.018262892961502075, 0.11684250831604004, -0.3583211302757263, 0.3812862038612366, 0.2211306244134903, -0.003972839564085007, 0.031030481681227684, 0.20100903511047363, 0.05039387568831444, -0.2398855835199356, 0.20653469860553741, 0.02746572345495224, 0.28734922409057617, 0.06632694602012634, 0.8376121520996094, -0.2126866579055786, -0.38412365317344666, 0.14744539558887482, 0.40889209508895874, 0.04649993032217026, -0.20879557728767395, 0.1675235778093338, 0.1362491250038147, -0.37386560440063477, 0.06661006808280945, 0.0491950698196888, -0.14546701312065125, 0.6858698129653931, -0.1041824221611023, 0.11888359487056732, -0.07461703568696976, -0.21313419938087463, 0.3843900263309479, 0.16913065314292908, -0.054651081562042236, -0.06694158911705017, 0.13789904117584229, -0.11123868823051453, -0.17631055414676666, 0.49055081605911255, 0.20801766216754913, 0.009057795628905296, -0.4584709703922272, 0.02022818848490715, 0.1295265108346939, 0.13868200778961182, -0.0580504946410656, 0.17673420906066895, 0.4701443016529083, -0.0721229612827301, 0.1568208485841751, -0.033703580498695374, -0.010842358693480492, -0.12366786599159241, 0.04220840334892273, -0.41784247756004333, -0.3098798394203186, 0.5140650272369385, 0.09148716926574707, -0.17002174258232117, 0.09727989882230759, 0.34294191002845764, -0.6166447401046753, -0.25685417652130127, 0.2994377613067627, -0.11552055180072784, -0.09028056263923645, -0.23393966257572174, 0.04657316207885742, 0.1041119247674942, 0.6218807697296143, 0.1480698436498642, 0.39067110419273376, -0.39819714426994324, -0.1069851666688919, -0.5736933350563049, -0.23161548376083374, 0.13995292782783508, -0.05170847848057747, -0.17874544858932495, 0.09441911429166794, -0.06492839008569717, 0.224615216255188, -0.256145715713501, -0.019427554681897163, 0.2132708728313446, 0.0900174230337143, -0.40948131680488586, 0.16877375543117523, 0.1896284520626068, 0.06828110665082932, 0.30649784207344055, -0.03220400959253311, -0.15833905339241028, 0.20729228854179382, -0.13092079758644104, -0.13873617351055145, -0.08773781359195709, 0.24361580610275269, 0.18980933725833893, 0.04684307426214218, 0.021142806857824326, 0.48442021012306213, -0.004027528688311577, -0.2120715081691742, 0.010847058147192001, -0.00268884701654315, -0.3256474435329437, -0.17872533202171326, -0.07713466882705688, 0.20804055035114288, -0.3600681722164154, 0.294465571641922, -0.009957375004887581, -0.13632379472255707, 0.02387651801109314, -0.00879234541207552, -0.21922719478607178, -0.02552301436662674, 0.03367000073194504, 0.23170889914035797, 0.24931316077709198, 0.6675158739089966, 0.016650959849357605, 0.09321190416812897, -0.0899905264377594, -0.05048951134085655, 0.026074707508087158, -0.015022573061287403, -0.24134951829910278, -0.144943505525589, 0.03302670270204544, 0.014686726033687592, 0.18479885160923004, -0.7851415276527405, -0.3945765197277069, -0.021979190409183502, 0.03141152486205101, 0.08482018113136292, 0.7013660669326782, 0.12302327156066895, -0.17507027089595795, -0.09732469171285629, -0.3418370485305786, 0.0201752670109272, -0.22876308858394623, 0.1751657873392105, -0.3607012629508972 ]
https://github.com/huggingface/datasets/issues/217
Multi-task dataset mixing
Another thought: Multitasking over benchmarks (represented as Meta-datasets in nlp) is probably a common use case. Would be nice to pass an entire benchmark to our `MultiDataset` wrapper rather than having to pass individual components.
It seems like many of the best performing models on the GLUE benchmark make some use of multitask learning (simultaneous training on multiple tasks). The [T5 paper](https://arxiv.org/pdf/1910.10683.pdf) highlights multiple ways of mixing the tasks together during finetuning: - **Examples-proportional mixing** - sample from tasks proportionally to their dataset size - **Equal mixing** - sample uniformly from each task - **Temperature-scaled mixing** - The generalized approach used by multilingual BERT which uses a temperature T, where the mixing rate of each task is raised to the power 1/T and renormalized. When T=1 this is equivalent to equal mixing, and becomes closer to equal mixing with increasing T. Following this discussion https://github.com/huggingface/transformers/issues/4340 in [transformers](https://github.com/huggingface/transformers), @enzoampil suggested that the `nlp` library might be a better place for this functionality. Some method for combining datasets could be implemented ,e.g. ``` dataset = nlp.load_multitask(['squad','imdb','cnn_dm'], temperature=2.0, ...) ``` We would need a few additions: - Method of identifying the tasks - how can we support adding a string to each task as an identifier: e.g. 'summarisation: '? - Method of combining the metrics - a standard approach is to use the specific metric for each task and add them together for a combined score. It would be great to support common use cases such as pretraining on the GLUE benchmark before fine-tuning on each GLUE task in turn. I'm willing to write bits/most of this I just need some guidance on the interface and other library details so I can integrate it properly.
35
Multi-task dataset mixing It seems like many of the best performing models on the GLUE benchmark make some use of multitask learning (simultaneous training on multiple tasks). The [T5 paper](https://arxiv.org/pdf/1910.10683.pdf) highlights multiple ways of mixing the tasks together during finetuning: - **Examples-proportional mixing** - sample from tasks proportionally to their dataset size - **Equal mixing** - sample uniformly from each task - **Temperature-scaled mixing** - The generalized approach used by multilingual BERT which uses a temperature T, where the mixing rate of each task is raised to the power 1/T and renormalized. When T=1 this is equivalent to equal mixing, and becomes closer to equal mixing with increasing T. Following this discussion https://github.com/huggingface/transformers/issues/4340 in [transformers](https://github.com/huggingface/transformers), @enzoampil suggested that the `nlp` library might be a better place for this functionality. Some method for combining datasets could be implemented ,e.g. ``` dataset = nlp.load_multitask(['squad','imdb','cnn_dm'], temperature=2.0, ...) ``` We would need a few additions: - Method of identifying the tasks - how can we support adding a string to each task as an identifier: e.g. 'summarisation: '? - Method of combining the metrics - a standard approach is to use the specific metric for each task and add them together for a combined score. It would be great to support common use cases such as pretraining on the GLUE benchmark before fine-tuning on each GLUE task in turn. I'm willing to write bits/most of this I just need some guidance on the interface and other library details so I can integrate it properly. Another thought: Multitasking over benchmarks (represented as Meta-datasets in nlp) is probably a common use case. Would be nice to pass an entire benchmark to our `MultiDataset` wrapper rather than having to pass individual components.
[ -0.0656115785241127, -0.3723547160625458, -0.06819339841604233, -0.04926852881908417, -0.2852720618247986, 0.13376662135124207, 0.21648027002811432, 0.12065285444259644, 0.302168071269989, -0.1421181708574295, -0.16876892745494843, 0.32036516070365906, -0.16379939019680023, 0.3486942946910858, 0.4185854196548462, -0.41218051314353943, 0.03168848901987076, -0.21076586842536926, -0.21455994248390198, 0.4246899485588074, 0.06257922947406769, 0.08338584750890732, -0.16562989354133606, 0.10172652453184128, -0.2967674732208252, -0.18775174021720886, -0.33034712076187134, 0.12289731204509735, 0.18027415871620178, -0.006745743565261364, 0.21674247086048126, 0.33866438269615173, -0.005247928202152252, 0.07626035809516907, -0.00011275350698269904, -0.07976484298706055, 0.21804821491241455, -0.05337459221482277, 0.10312916338443756, -0.01396295428276062, 0.19306182861328125, -0.36390215158462524, 0.04667546600103378, -0.10680360347032547, 0.16875872015953064, 0.19356903433799744, 0.17223450541496277, -0.07640378922224045, 0.34126460552215576, -0.25450193881988525, 0.10234148055315018, 0.3156678378582001, -0.23991115391254425, 0.2976696491241455, -0.11138314753770828, -0.08681964874267578, 0.011975007131695747, 0.24389155209064484, 0.6718505620956421, -0.6273897886276245, -0.060072146356105804, 0.057242121547460556, -0.03238680586218834, 0.049777619540691376, 0.09267526865005493, -0.13015563786029816, -0.302105575799942, -0.21089541912078857, -0.3377224802970886, 0.25109854340553284, -0.1597304344177246, -0.13706132769584656, -0.2288980931043625, -0.5552757382392883, -0.013058791868388653, 0.0512918159365654, -0.3080892860889435, 0.03183313459157944, -0.17259597778320312, -0.006247632205486298, -0.10114510357379913, -0.12405458092689514, 0.05755412578582764, 0.08909983932971954, 0.3357069194316864, 0.5584863424301147, 0.12079454958438873, 0.17407897114753723, 0.36989474296569824, 0.07315368950366974, -0.08478502184152603, -0.2591187357902527, 0.2741994559764862, 0.10016404837369919, -0.4158076345920563, -0.31035876274108887, 0.13953271508216858, -0.23301181197166443, 0.3023064434528351, 0.09700227528810501, 0.13515345752239227, 0.11098430305719376, -0.1236226037144661, 0.2736952602863312, 0.34028536081314087, 0.034256380051374435, -0.07769934087991714, -0.1692272573709488, 0.010786112397909164, -0.14165477454662323, 0.18027426302433014, 0.11355379223823547, 0.20747902989387512, 0.02580420672893524, -0.43926870822906494, -0.13691198825836182, -0.2284800261259079, 0.16348861157894135, -0.2595619857311249, -0.5688912272453308, -0.11211646348237991, -0.09568820148706436, 0.062082063406705856, -0.1388765275478363, -0.26140153408050537, 0.1391819417476654, -0.09216354787349701, 0.26953423023223877, -0.0688546895980835, 0.006288432516157627, -0.051091402769088745, 0.08796781301498413, -0.4555424749851227, -0.010129198431968689, 0.33236193656921387, 0.1006501317024231, 0.08620412647724152, 0.14573203027248383, -0.019783824682235718, 0.062232255935668945, 0.3870141804218292, 0.011977201327681541, -0.004458785057067871, -0.012135375291109085, 0.18673942983150482, -0.3140552043914795, 0.02921884134411812, 0.18315251171588898, -0.3368542492389679, -0.08135152608156204, -0.14553290605545044, -0.14867274463176727, 0.14257384836673737, 0.032132964581251144, -0.22536838054656982, -0.286038339138031, -0.5482082962989807, 0.6673362851142883, -0.011244803667068481, -0.06299574673175812, -0.16312488913536072, 0.3023528456687927, -0.3023776710033417, -0.0930899977684021, 0.17095202207565308, 0.013164684176445007, 0.021747689694166183, -0.2774837017059326, -0.16175715625286102, -0.0704326331615448, -0.10190122574567795, 0.31535109877586365, -0.19219166040420532, 0.3084416389465332, 0.04201117902994156, 0.17138801515102386, 0.2346697449684143, -0.4846592843532562, -0.03291618824005127, 0.3313536047935486, -0.07133115082979202, 0.4018952250480652, 0.05024730786681175, 0.22615382075309753, 0.05564442276954651, -0.178249791264534, 0.2328605055809021, 0.9699891209602356, -0.3880671560764313, 0.009526235982775688, -0.08592960983514786, -0.39205965399742126, 0.5433844327926636, 0.35699066519737244, 0.05959472060203552, -0.24156567454338074, -0.14711615443229675, -0.012277927249670029, 0.08712303638458252, 0.10982915759086609, 0.09951716661453247, -0.07516524940729141, -0.420724481344223, 0.02337471768260002, -0.2236102968454361, -0.1986403465270996, -0.4318438768386841, 0.018178466707468033, 0.021139856427907944, 0.22960273921489716, 0.3293681740760803, -0.13701984286308289, 0.24782675504684448, -0.2794990539550781, -0.046549875289201736, -0.3755779564380646, 0.12504112720489502, -0.05152986943721771, 0.008912552148103714, -0.202386736869812, -0.0481611005961895, 0.35677409172058105, 0.17522485554218292, -0.1295216828584671, -0.3912128210067749, 0.3071173429489136, -0.05294390767812729, 0.03812481462955475, -0.04055486246943474, 0.6141854524612427, -0.2152327001094818, -0.0571509450674057, 0.1891905665397644, 0.24514153599739075, -0.2727411985397339, 0.28847962617874146, 0.3536679148674011, 0.27539151906967163, 0.19267573952674866, -0.035916563123464584, 0.05417802929878235, 0.06028132885694504, -0.032949551939964294, -0.2539367973804474, -0.05172295868396759, 0.4938862919807434, -0.1278952658176422, 0.46705758571624756, -0.06947578489780426, 0.05351881682872772, -0.1416843980550766, -0.03650090843439102, -0.19595491886138916, 0.44116905331611633, 0.2900508642196655, -0.21228155493736267, 0.38620391488075256, -0.10933773219585419, -0.3189103305339813, 0.1744893491268158, 0.13803355395793915, 0.05124571546912193, 0.06468260288238525, -0.00907229259610176, -0.03657037019729614, -0.27271702885627747, -0.07160256803035736, 0.3707682192325592, 0.6577774882316589, 0.23860512673854828, 0.17744657397270203, 0.014817715622484684, -0.22931428253650665, -0.08080178499221802, -0.03120703250169754, 0.19398197531700134, 0.026519907638430595, 0.09888938069343567, 0.01347484439611435, 0.02231685072183609, 0.04861534386873245, -0.14007851481437683, 0.15098907053470612, -0.1698393076658249, -0.00978480651974678, 0.04137393832206726, -0.2205081284046173, -0.5566993951797485, -0.21707595884799957, 0.029173821210861206, -0.32834392786026, -0.2532235085964203, 0.1027170866727829, 0.12225022912025452, -0.13139210641384125, 0.15123358368873596, 0.23217618465423584, 0.6160982847213745, -0.44601544737815857, -0.26886552572250366, -0.08353546261787415, -0.3008219599723816, -0.113233782351017, 0.12900158762931824, 0.458760529756546, 0.30144745111465454, 0.38529637455940247, 0.3329305946826935, -0.00906919501721859, -0.021664811298251152, -0.3423926532268524, -0.03896387666463852, -0.2504143714904785, 0.2589893043041229, 0.036483284085989, -0.24169979989528656, 0.14477385580539703, -0.38712021708488464, -0.07622967660427094, -0.07680239528417587, -0.07060424983501434, -0.08701062202453613, 0.031286001205444336, 0.14604733884334564, -0.18527136743068695, -0.1524779200553894, -0.5852790474891663, -0.47434401512145996, 0.2974987328052521, -0.2947556674480438, 0.053874023258686066, -0.10809887200593948, -0.31336140632629395, 0.1933499276638031, -0.1261134296655655, -0.01943238265812397, -0.13752508163452148, -0.09073162078857422, -0.055494751781225204, -0.33968836069107056, -0.15744976699352264, -0.39757755398750305, -0.08305066078901291, 0.2783394753932953, -0.04936189576983452, -0.04247875511646271, -0.15597307682037354, 0.1311388909816742, -0.15483497083187103, 0.060068316757678986, 0.09263820946216583, 0.17417559027671814, -0.23634234070777893, 0.12928281724452972, -0.028270890936255455, -0.2620978355407715, 0.23683011531829834, 0.28308621048927307, 0.3746196925640106, 0.17052799463272095, 0.022373875603079796, 0.23803260922431946, 0.7015312314033508, 0.2394605278968811, 0.0548747293651104, 0.1664237380027771, 0.2817085087299347, -0.023641247302293777, 0.11926253139972687, -0.21993155777454376, 0.15194256603717804, -0.1884622871875763, 0.47817283868789673, 0.10397303104400635, 0.157609224319458, -0.2565976083278656, -0.2707085609436035, 0.030140120536088943, -0.2531312108039856, -0.17043818533420563, 0.2131999433040619, -0.31595462560653687, 0.03342335671186447, -0.06611897796392441, -0.39819589257240295, -0.22175079584121704, -0.01891963928937912, -0.014532453380525112, 0.28800326585769653, -0.04299429804086685, 0.1606454700231552, -0.3352026343345642, -0.03186313807964325, -0.4085685610771179, 0.11785250157117844, 0.09698863327503204, 0.3318121135234833, -0.08659709990024567, -0.0450323149561882, -0.08494335412979126, 0.11186164617538452, 0.5522230267524719, -0.4672245383262634, -0.09274466335773468, 0.10849902033805847, 0.06989115476608276, -0.09652083367109299, -0.08832456916570663, -0.22060009837150574, 0.04580630734562874, 0.4289894104003906, 0.3607073426246643, -0.29903921484947205, -0.28864550590515137, 0.15508991479873657, -0.21957740187644958, -0.048654768615961075, -0.18476954102516174, -0.21510860323905945, -0.17987003922462463, -0.13402588665485382, 0.06568855047225952, 0.23183803260326385, 0.21855057775974274, -0.08076180517673492, 0.15293258428573608, -0.11033467948436737, 0.15788587927818298, 0.18605433404445648, -0.04371213912963867, -0.09453780204057693, 0.15243013203144073, 0.2028801441192627, 0.013335255905985832, -0.15375541150569916, -0.30702775716781616, 0.021048204973340034, 0.013778869062662125, 0.13222834467887878, 0.2465011179447174, -0.017967991530895233, 0.6386023163795471, -0.04344135522842407, 0.3078644871711731, 0.3434130847454071, -0.15040193498134613, -0.06010904908180237, -0.28928840160369873, 0.1642034500837326, 0.18684597313404083, 0.25749409198760986, -0.12326877564191818, -0.18717564642429352, 0.5725799202919006, 0.33587199449539185, -0.06958089023828506, 0.45397329330444336, -0.572293221950531, -0.31260865926742554, 0.24356524646282196, 0.05923910066485405, 0.577468752861023, -0.08398018777370453, 0.2616603970527649, -0.019969403743743896, -0.4101734757423401, 0.5315452218055725, -0.37374454736709595, 0.15340834856033325, -0.051880769431591034, -0.2438550740480423, 0.020600629970431328, -0.08406238257884979, -0.007088430225849152, 0.3127880096435547, -0.32291698455810547, 0.3246549069881439, 0.48921096324920654, -0.2282969057559967, -0.0012171845883131027, 0.5655284523963928, 0.02586423233151436, -0.37018051743507385, 0.01694275252521038, 0.06858371198177338, -0.2902960181236267, 0.08191988617181778, -0.15320703387260437, -0.21072766184806824, 0.22034981846809387, 0.17975352704524994, -0.352020263671875, 0.05883818864822388, 0.026805173605680466, 0.2144399881362915, 0.20536451041698456, 0.03536783903837204, 0.28780168294906616, -0.17419680953025818, -0.06097093224525452, -0.15786218643188477, -0.08689112961292267, 0.12871599197387695, -0.19305956363677979, 0.03640550747513771, 0.09449736028909683, -0.20959527790546417, 0.45646971464157104, -0.0603308230638504, -0.14519721269607544, -0.2287004292011261, 0.2702367901802063, -0.5092929005622864, -0.1495707780122757, 0.1981717050075531, 0.1473061740398407, 0.28635233640670776, -0.29994720220565796, 0.5590232610702515, 0.10002872347831726, -0.01511404849588871, 0.04153580963611603, 0.1996980458498001, -0.2363312542438507, 0.5029977560043335, -0.302803635597229, -0.015230931341648102, 0.06073103845119476, 0.05679808184504509, -0.1458498239517212, -0.39818477630615234, -0.07032755762338638, 0.2884267568588257, 0.14057888090610504, -0.004567340016365051, 0.05541437119245529, 0.09924279898405075, 0.05065234750509262, 0.01972297951579094, -0.20058317482471466, -0.32429254055023193, 0.1335984170436859, 0.14717607200145721, 0.2038133442401886, 0.22745773196220398, -0.09523484110832214, -0.3026594817638397, -0.19763025641441345, 0.45944756269454956, -0.029069241136312485, 0.17826782166957855, -0.12853685021400452, 0.3476560413837433, 0.40746381878852844, 0.526900589466095, -0.24591685831546783, 0.11764320731163025, 0.04560931771993637, 0.1269548237323761, 0.5051093101501465, -0.21541792154312134, -0.0042855218052864075, 0.31251055002212524, -0.13643231987953186, 0.06286776065826416, -0.26634228229522705, -0.16179129481315613, -0.1922883540391922, 0.1079842746257782, 0.12295663356781006, 0.025694457814097404, 0.029705606400966644, -0.11089290678501129, -0.09539161622524261, -0.04093484580516815, -0.0558064840734005, -0.3989928066730499, -0.06124691665172577, 0.09844296425580978, -0.06748130917549133, 0.07659336179494858, 0.02472396194934845, 0.21679364144802094, -0.03503907471895218, -0.12325519323348999, 0.24483545124530792, 0.11760393530130386, 0.17357228696346283, -0.15246333181858063, -0.16086654365062714, -0.03669555485248566, 0.22497354447841644, 0.14430375397205353, -0.05042240023612976, 0.19050447642803192, -0.23372316360473633, -0.07541321963071823, 0.24634677171707153, 0.10478569567203522, 0.09123025834560394, -0.08847738057374954, 0.17272517085075378, 0.10370087623596191, -0.08446724712848663, -0.020609479397535324, 0.231009379029274, 0.05959802865982056, 0.11645351350307465, 0.13184796273708344, 0.19638855755329132, 0.46792447566986084, -0.18571598827838898, -0.0031027887016534805, 0.11268258839845657, -0.38476115465164185, 0.12622161209583282, -0.18793398141860962, -0.07245886325836182, -0.028667133301496506, 0.134345144033432, -0.017931506037712097, 0.13674615323543549, -0.2621411085128784, 0.3380008637905121, 0.38896942138671875, 0.07167503237724304, -0.007468018680810928, 0.22169560194015503, 0.06501398980617523, -0.1531665325164795, 0.25695475935935974, 0.05426459014415741, 0.30022239685058594, 0.012246206402778625, 0.8360200524330139, -0.32402557134628296, -0.4433020055294037, 0.1131606325507164, 0.36561161279678345, 0.05183601379394531, -0.21638786792755127, 0.23777320981025696, 0.1352376937866211, -0.33631327748298645, 0.08761148154735565, 0.06379048526287079, -0.18096205592155457, 0.7053232192993164, -0.13340464234352112, 0.14903192222118378, -0.08333374559879303, -0.24597597122192383, 0.36664873361587524, 0.11514927446842194, -0.0711917132139206, -0.00048248283565044403, 0.0570855587720871, -0.11510656774044037, -0.1761980503797531, 0.5325780510902405, 0.18094272911548615, 0.018203753978013992, -0.4425993263721466, 0.010070834308862686, 0.0149302426725626, 0.17563781142234802, -0.07289572060108185, 0.1774265617132187, 0.441154420375824, -0.18200431764125824, 0.24563740193843842, 0.005940254777669907, -0.046178188174963, -0.13982528448104858, 0.046849802136421204, -0.4108138680458069, -0.4485563039779663, 0.4289402961730957, 0.07663824409246445, -0.12908434867858887, 0.08759133517742157, 0.3628629148006439, -0.5635625720024109, -0.2513417601585388, 0.3186555504798889, -0.20191626250743866, -0.13163220882415771, -0.20967772603034973, 0.08235728740692139, 0.04996463656425476, 0.6422709226608276, 0.20109876990318298, 0.3915329575538635, -0.3583631217479706, -0.17929309606552124, -0.5960263609886169, -0.17861244082450867, 0.0864175409078598, -0.08518587797880173, -0.2282562553882599, 0.1549064815044403, -0.11009464412927628, 0.3391738533973694, -0.17584432661533356, 0.07582468539476395, 0.2411530613899231, 0.000037886202335357666, -0.4148184657096863, 0.09212319552898407, 0.12537719309329987, -0.01739119179546833, 0.2854141294956207, -0.10768534988164902, -0.14416581392288208, 0.12176555395126343, -0.07111307233572006, -0.07582524418830872, -0.11642736196517944, 0.25268322229385376, 0.15655511617660522, 0.10558991879224777, 0.010083699598908424, 0.45129090547561646, 0.017851930111646652, -0.1485956460237503, -0.051521893590688705, 0.03749082237482071, -0.3527218997478485, -0.18147188425064087, -0.10226491093635559, 0.1490992158651352, -0.4346379041671753, 0.29576972126960754, 0.021366463974118233, -0.061808016151189804, 0.10167261958122253, 0.005677870009094477, -0.25479844212532043, -0.05856236070394516, 0.03143633157014847, 0.19942909479141235, 0.25435230135917664, 0.7323927283287048, -0.0023266002535820007, 0.10407938808202744, -0.056920748203992844, 0.030946342274546623, -0.028118103742599487, -0.08862330764532089, -0.2501009702682495, -0.13463018834590912, 0.05298855900764465, 0.0765741616487503, 0.08411628752946854, -0.6738635897636414, -0.4056533873081207, 0.05368969962000847, 0.02241593599319458, 0.057899538427591324, 0.7152574062347412, 0.02755535952746868, -0.12574423849582672, -0.11397737264633179, -0.38882291316986084, 0.008580148220062256, -0.2279844880104065, 0.21922355890274048, -0.4018598198890686 ]
https://github.com/huggingface/datasets/issues/217
Multi-task dataset mixing
Here's a fully working implementation based on the `__iter__` function of @zphang. - I've generated the task choice list in the constructor as it allows us to index into the MultiDataset just like a normal dataset. I'm changing `task_choice_list` into a list of `(dataset_idx, example_idx)` so each entry references a unique dataset example. The shuffling has to be done before this as we don't want to shuffle within each task (we assume this is done by the user if this is what they intend). - I'm slightly concerned this list could become very large if many large datasets were used. Can't see a way round it at the moment though. - I've used `task.info.builder_name` as the dataset name. Not sure if this is correct. - I'd love to add some of the other `Dataset` methods (map, slicing by column, etc...). Would be great to implement the whole interface so a single dataset can be simply replaced by this. - This does everything on the individual example-level. If some application required batches all from a single task in turn we can't really do that. ```python import nlp import numpy as np class MultiDataset: def __init__(self,tasks): self.tasks = tasks # Create random order of tasks # Using size-proportional sampling task_choice_list = [] for i, task in enumerate(self.tasks): task_choice_list += [i] * len(task) task_choice_list = np.array(task_choice_list) np.random.shuffle(task_choice_list) # Add index into each dataset # - We don't want to shuffle within each task counters = {} self.task_choice_list = [] for i in range(len(task_choice_list)): idx = counters.get(task_choice_list[i],0) self.task_choice_list.append((task_choice_list[i],idx)) counters[task_choice_list[i]] = idx + 1 def __len__(self): return np.sum([len(t) for t in self.tasks]) def __repr__(self): task_str = ", ".join([str(t) for t in self.tasks]) return f"MultiDataset(tasks: {task_str})" def __getitem__(self,key): if isinstance(key, int): task_idx, example_idx = self.task_choice_list[key] task = self.tasks[task_idx] example = task[example_idx] example["task_name"] = task.info.builder_name return example elif isinstance(key, slice): raise NotImplementedError() def __iter__(self): for i in range(len(self)): yield self[i] def load_multitask(*datasets): '''Create multitask datasets per split''' def _get_common_splits(datasets): '''Finds the common splits present in all self.datasets''' min_set = None for dataset in datasets: if min_set != None: min_set.intersection(set(dataset.keys())) else: min_set = set(dataset.keys()) return min_set common_splits = _get_common_splits(datasets) out = {} for split in common_splits: out[split] = MultiDataset([d[split] for d in datasets]) return out ########################################## # Dataset Flattening def flatten(dataset,flatten_fn): for k in dataset.keys(): if isinstance(dataset[k],nlp.Dataset): dataset[k] = dataset[k].map(flatten_fn,remove_columns=dataset[k].column_names) # Squad def flatten_squad(example): return {"source": "squad context: " + example['context'] + " question: " + example['question'], "target":example["answers"]["text"]} squad = nlp.load_dataset("squad") flatten(squad,flatten_squad) # CNN_DM def flatten_cnn_dm(example): return {"source": "cnn_dm: " + example['article'],"target":[example["highlights"]]} cnn_dm = nlp.load_dataset("cnn_dailymail", "3.0.0") flatten(cnn_dm,flatten_cnn_dm) ############################################# mtds = load_multitask(squad,cnn_dm) for example in mtds["train"]: print(example["task_name"],example["target"]) ``` Let me know if you have any thoughts. I've started using this in some of my projects and it seems to work. If people are happy with the general approach for a first version, I can make a pull request.
It seems like many of the best performing models on the GLUE benchmark make some use of multitask learning (simultaneous training on multiple tasks). The [T5 paper](https://arxiv.org/pdf/1910.10683.pdf) highlights multiple ways of mixing the tasks together during finetuning: - **Examples-proportional mixing** - sample from tasks proportionally to their dataset size - **Equal mixing** - sample uniformly from each task - **Temperature-scaled mixing** - The generalized approach used by multilingual BERT which uses a temperature T, where the mixing rate of each task is raised to the power 1/T and renormalized. When T=1 this is equivalent to equal mixing, and becomes closer to equal mixing with increasing T. Following this discussion https://github.com/huggingface/transformers/issues/4340 in [transformers](https://github.com/huggingface/transformers), @enzoampil suggested that the `nlp` library might be a better place for this functionality. Some method for combining datasets could be implemented ,e.g. ``` dataset = nlp.load_multitask(['squad','imdb','cnn_dm'], temperature=2.0, ...) ``` We would need a few additions: - Method of identifying the tasks - how can we support adding a string to each task as an identifier: e.g. 'summarisation: '? - Method of combining the metrics - a standard approach is to use the specific metric for each task and add them together for a combined score. It would be great to support common use cases such as pretraining on the GLUE benchmark before fine-tuning on each GLUE task in turn. I'm willing to write bits/most of this I just need some guidance on the interface and other library details so I can integrate it properly.
469
Multi-task dataset mixing It seems like many of the best performing models on the GLUE benchmark make some use of multitask learning (simultaneous training on multiple tasks). The [T5 paper](https://arxiv.org/pdf/1910.10683.pdf) highlights multiple ways of mixing the tasks together during finetuning: - **Examples-proportional mixing** - sample from tasks proportionally to their dataset size - **Equal mixing** - sample uniformly from each task - **Temperature-scaled mixing** - The generalized approach used by multilingual BERT which uses a temperature T, where the mixing rate of each task is raised to the power 1/T and renormalized. When T=1 this is equivalent to equal mixing, and becomes closer to equal mixing with increasing T. Following this discussion https://github.com/huggingface/transformers/issues/4340 in [transformers](https://github.com/huggingface/transformers), @enzoampil suggested that the `nlp` library might be a better place for this functionality. Some method for combining datasets could be implemented ,e.g. ``` dataset = nlp.load_multitask(['squad','imdb','cnn_dm'], temperature=2.0, ...) ``` We would need a few additions: - Method of identifying the tasks - how can we support adding a string to each task as an identifier: e.g. 'summarisation: '? - Method of combining the metrics - a standard approach is to use the specific metric for each task and add them together for a combined score. It would be great to support common use cases such as pretraining on the GLUE benchmark before fine-tuning on each GLUE task in turn. I'm willing to write bits/most of this I just need some guidance on the interface and other library details so I can integrate it properly. Here's a fully working implementation based on the `__iter__` function of @zphang. - I've generated the task choice list in the constructor as it allows us to index into the MultiDataset just like a normal dataset. I'm changing `task_choice_list` into a list of `(dataset_idx, example_idx)` so each entry references a unique dataset example. The shuffling has to be done before this as we don't want to shuffle within each task (we assume this is done by the user if this is what they intend). - I'm slightly concerned this list could become very large if many large datasets were used. Can't see a way round it at the moment though. - I've used `task.info.builder_name` as the dataset name. Not sure if this is correct. - I'd love to add some of the other `Dataset` methods (map, slicing by column, etc...). Would be great to implement the whole interface so a single dataset can be simply replaced by this. - This does everything on the individual example-level. If some application required batches all from a single task in turn we can't really do that. ```python import nlp import numpy as np class MultiDataset: def __init__(self,tasks): self.tasks = tasks # Create random order of tasks # Using size-proportional sampling task_choice_list = [] for i, task in enumerate(self.tasks): task_choice_list += [i] * len(task) task_choice_list = np.array(task_choice_list) np.random.shuffle(task_choice_list) # Add index into each dataset # - We don't want to shuffle within each task counters = {} self.task_choice_list = [] for i in range(len(task_choice_list)): idx = counters.get(task_choice_list[i],0) self.task_choice_list.append((task_choice_list[i],idx)) counters[task_choice_list[i]] = idx + 1 def __len__(self): return np.sum([len(t) for t in self.tasks]) def __repr__(self): task_str = ", ".join([str(t) for t in self.tasks]) return f"MultiDataset(tasks: {task_str})" def __getitem__(self,key): if isinstance(key, int): task_idx, example_idx = self.task_choice_list[key] task = self.tasks[task_idx] example = task[example_idx] example["task_name"] = task.info.builder_name return example elif isinstance(key, slice): raise NotImplementedError() def __iter__(self): for i in range(len(self)): yield self[i] def load_multitask(*datasets): '''Create multitask datasets per split''' def _get_common_splits(datasets): '''Finds the common splits present in all self.datasets''' min_set = None for dataset in datasets: if min_set != None: min_set.intersection(set(dataset.keys())) else: min_set = set(dataset.keys()) return min_set common_splits = _get_common_splits(datasets) out = {} for split in common_splits: out[split] = MultiDataset([d[split] for d in datasets]) return out ########################################## # Dataset Flattening def flatten(dataset,flatten_fn): for k in dataset.keys(): if isinstance(dataset[k],nlp.Dataset): dataset[k] = dataset[k].map(flatten_fn,remove_columns=dataset[k].column_names) # Squad def flatten_squad(example): return {"source": "squad context: " + example['context'] + " question: " + example['question'], "target":example["answers"]["text"]} squad = nlp.load_dataset("squad") flatten(squad,flatten_squad) # CNN_DM def flatten_cnn_dm(example): return {"source": "cnn_dm: " + example['article'],"target":[example["highlights"]]} cnn_dm = nlp.load_dataset("cnn_dailymail", "3.0.0") flatten(cnn_dm,flatten_cnn_dm) ############################################# mtds = load_multitask(squad,cnn_dm) for example in mtds["train"]: print(example["task_name"],example["target"]) ``` Let me know if you have any thoughts. I've started using this in some of my projects and it seems to work. If people are happy with the general approach for a first version, I can make a pull request.
[ -0.002132859081029892, -0.3933574855327606, -0.04490894079208374, 0.011328931897878647, -0.2239074558019638, 0.0217612162232399, 0.197897806763649, 0.027536671608686447, 0.41430220007896423, -0.19782720506191254, -0.2370707243680954, 0.3982102572917938, -0.19453291594982147, 0.30282866954803467, 0.35159701108932495, -0.4019327461719513, -0.022123180329799652, -0.24198290705680847, -0.2949591875076294, 0.3513537645339966, 0.06044125556945801, 0.1977682262659073, -0.21249936521053314, 0.0691925510764122, -0.2159683257341385, -0.17891140282154083, -0.3551906943321228, 0.1598139852285385, 0.08680293709039688, 0.008535078726708889, 0.25258147716522217, 0.4207155704498291, -0.04791150987148285, 0.1720011830329895, -0.00011538733815541491, -0.040628887712955475, 0.22244931757450104, -0.12262371927499771, 0.05334264412522316, -0.06257681548595428, 0.17279615998268127, -0.4180447459220886, 0.07642160356044769, -0.17792531847953796, 0.16830477118492126, 0.15077129006385803, 0.12851516902446747, 0.018031425774097443, 0.39563167095184326, -0.26081645488739014, 0.1016746386885643, 0.31338366866111755, -0.1547468602657318, 0.32001394033432007, -0.13475868105888367, -0.021238625049591064, 0.025054575875401497, 0.2562727630138397, 0.6043381690979004, -0.5478277206420898, -0.03986043483018875, 0.09073176980018616, 0.020381556823849678, -0.08250844478607178, 0.12837660312652588, -0.027154680341482162, -0.343026727437973, -0.25179344415664673, -0.3898303508758545, 0.2208651602268219, -0.05872539430856705, -0.18009492754936218, -0.22417046129703522, -0.5440160036087036, -0.05742178484797478, 0.0014681518077850342, -0.2000158429145813, -0.0979657843708992, -0.2069232165813446, -0.07884502410888672, -0.08055746555328369, -0.10031548887491226, -0.0552610345184803, 0.1227865144610405, 0.28622689843177795, 0.5722644925117493, 0.09168475866317749, 0.1695953905582428, 0.4112887978553772, -0.003769371658563614, -0.10389411449432373, -0.27631938457489014, 0.28900066018104553, 0.10878820717334747, -0.4652659296989441, -0.3517701327800751, 0.20772328972816467, -0.27356237173080444, 0.24205538630485535, 0.11815522611141205, 0.12676815688610077, 0.14092016220092773, -0.1725960224866867, 0.23502543568611145, 0.3102000951766968, 0.161643847823143, -0.0854422077536583, -0.14018560945987701, -0.040844447910785675, -0.10049771517515182, 0.26056820154190063, 0.09310393035411835, 0.13976207375526428, -0.024155758321285248, -0.43835777044296265, -0.11291632801294327, -0.1902085244655609, 0.17506885528564453, -0.23685821890830994, -0.4651106894016266, -0.1156226247549057, -0.1334734559059143, 0.16438089311122894, -0.08931637555360794, -0.326358824968338, 0.09385723620653152, -0.06360557675361633, 0.22851444780826569, -0.1643105149269104, 0.0954066812992096, -0.05092413350939751, 0.07936494052410126, -0.42001989483833313, -0.10349606722593307, 0.30415669083595276, 0.20076127350330353, 0.08877857774496078, 0.10183267295360565, 0.04135490953922272, 0.1614445000886917, 0.3386405408382416, -0.01858941838145256, 0.07116873562335968, -0.006750438362360001, 0.1700587123632431, -0.241866335272789, 0.023633696138858795, 0.08572106063365936, -0.3276285231113434, -0.1432788372039795, -0.1162448599934578, -0.17121252417564392, 0.09555143117904663, 0.00157233327627182, -0.24700210988521576, -0.2189023792743683, -0.5296889543533325, 0.6929867267608643, 0.009012952446937561, -0.07522609829902649, -0.17376139760017395, 0.21700377762317657, -0.22496730089187622, -0.11346222460269928, 0.1857752650976181, 0.13063380122184753, -0.0194606464356184, -0.2366189956665039, -0.08683940768241882, -0.11565810441970825, 0.007798314094543457, 0.2511882483959198, -0.17226944863796234, 0.31110936403274536, 0.0009653083980083466, 0.2511014938354492, 0.26969820261001587, -0.4574747085571289, -0.08002325892448425, 0.2996056377887726, -0.0706130638718605, 0.4915621876716614, 0.06509654968976974, 0.20209096372127533, 0.019948424771428108, -0.2011214792728424, 0.2741645872592926, 0.9725072383880615, -0.3398759365081787, -0.04546643793582916, -0.13535162806510925, -0.3082437217235565, 0.5843706130981445, 0.29365095496177673, 0.046059660613536835, -0.23651716113090515, -0.1625547707080841, 0.02513584867119789, 0.1369394063949585, 0.1146136224269867, 0.10209669172763824, -0.04339636117219925, -0.3110344111919403, 0.06801352649927139, -0.16123946011066437, -0.13331148028373718, -0.4370242953300476, 0.03781489282846451, 0.04610881209373474, 0.34421610832214355, 0.18612155318260193, -0.04249948635697365, 0.20138144493103027, -0.24291685223579407, -0.20070265233516693, -0.32318732142448425, 0.1282239705324173, -0.034077733755111694, -0.00676514208316803, -0.3257841169834137, -0.04058961197733879, 0.3911013901233673, 0.1122538298368454, -0.14964719116687775, -0.5206968784332275, 0.2977631688117981, -0.08318713307380676, 0.07015060633420944, 0.00024057179689407349, 0.6380756497383118, -0.09240587800741196, -0.1353612244129181, 0.1831827461719513, 0.31135231256484985, -0.24773819744586945, 0.1465304046869278, 0.3683391809463501, 0.17878341674804688, 0.1724853664636612, -0.053787779062986374, 0.041178759187459946, 0.014779038727283478, 0.06409110873937607, -0.2540855407714844, -0.041744641959667206, 0.49793970584869385, -0.20704402029514313, 0.4949687719345093, -0.059471920132637024, 0.09615971148014069, -0.07772023975849152, 0.003605823963880539, -0.21134984493255615, 0.4170466959476471, 0.25734013319015503, -0.16382676362991333, 0.3197736442089081, -0.17490962147712708, -0.38928550481796265, 0.2181706428527832, 0.14777974784374237, 0.050711970776319504, -0.023939721286296844, -0.0040276870131492615, -0.004173502326011658, -0.28357213735580444, -0.08406353741884232, 0.25929176807403564, 0.6727405786514282, 0.21467292308807373, 0.1757933795452118, -0.003553329035639763, -0.2128891944885254, -0.07563216239213943, 0.017034657299518585, 0.21315552294254303, -0.01838553138077259, 0.1383439153432846, 0.06322672963142395, 0.05501248314976692, 0.027259573340415955, -0.16887229681015015, 0.16363897919654846, -0.15025141835212708, -0.11828175187110901, 0.11910324543714523, -0.24008657038211823, -0.6449184417724609, -0.190262109041214, -0.005381044000387192, -0.33743393421173096, -0.3379831314086914, 0.06197764351963997, 0.09609188139438629, -0.09279286861419678, 0.1745883822441101, 0.3390871286392212, 0.5370791554450989, -0.422608882188797, -0.27869999408721924, -0.07020236551761627, -0.31300273537635803, -0.2287059724330902, 0.10595975816249847, 0.47611004114151, 0.3147263526916504, 0.4362727701663971, 0.33345964550971985, -0.07831165194511414, -0.011106681078672409, -0.40816837549209595, 0.07382751256227493, -0.3157108426094055, 0.25911828875541687, 0.10779298841953278, -0.16198237240314484, 0.15699610114097595, -0.3664075434207916, -0.054460857063531876, 0.02567235194146633, -0.1082521453499794, 0.005736218765377998, -0.02132045477628708, 0.0617830790579319, -0.22494110465049744, -0.2057403028011322, -0.6049149632453918, -0.3986760377883911, 0.3317519426345825, -0.26845741271972656, 0.15955185890197754, 0.11135121434926987, -0.2901906371116638, 0.21595796942710876, -0.06657794117927551, -0.035498738288879395, -0.1976851522922516, -0.026612628251314163, 0.04863709583878517, -0.33357226848602295, -0.22930161654949188, -0.333479642868042, -0.08374951779842377, 0.2851196229457855, -0.06061376631259918, -0.01924070343375206, -0.21448533236980438, 0.13713310658931732, -0.0940927118062973, 0.11316576600074768, 0.18199379742145538, 0.26239317655563354, -0.22190822660923004, 0.15161707997322083, -0.13297554850578308, -0.3378431499004364, 0.2892354726791382, 0.30653244256973267, 0.46677958965301514, 0.26281338930130005, 0.05958127602934837, 0.1985301971435547, 0.7363938689231873, 0.24672681093215942, 0.030771426856517792, 0.16282284259796143, 0.24470704793930054, -0.00857856497168541, 0.12864315509796143, -0.2955613434314728, 0.2436809092760086, -0.2057008445262909, 0.48910433053970337, 0.046842873096466064, 0.12142492830753326, -0.2784985303878784, -0.3198147714138031, 0.09729398787021637, -0.2960559129714966, -0.24099381268024445, 0.22886085510253906, -0.2286778688430786, -0.02966829389333725, -0.04629138112068176, -0.37965184450149536, -0.30280768871307373, -0.03775924816727638, 0.024953529238700867, 0.36506664752960205, -0.08353609591722488, 0.1451677680015564, -0.3331812024116516, -0.058831099420785904, -0.4737011194229126, 0.11649084836244583, 0.027234449982643127, 0.3008975386619568, -0.07650741934776306, -0.10251390188932419, -0.09614039957523346, 0.09850367158651352, 0.711022675037384, -0.4442335069179535, -0.145228773355484, 0.14357244968414307, 0.09769949316978455, -0.09330267459154129, -0.12175698578357697, -0.2865293025970459, 0.11032110452651978, 0.5207917094230652, 0.3619173765182495, -0.45472952723503113, -0.2635478973388672, 0.14257004857063293, -0.21809367835521698, -0.04638427123427391, -0.18992449343204498, -0.2505946159362793, -0.2670263946056366, -0.09710803627967834, 0.042247794568538666, 0.22509314119815826, 0.279640257358551, -0.11629267781972885, 0.21690617501735687, -0.07204940915107727, 0.17009708285331726, 0.21983154118061066, 0.0008590435609221458, -0.026834793388843536, 0.2566709518432617, 0.14444369077682495, 0.0839141458272934, -0.09641514718532562, -0.3558117151260376, 0.12449474632740021, -0.02867574617266655, 0.1375521570444107, 0.3451259136199951, -0.06954655796289444, 0.5981544852256775, 0.15671275556087494, 0.3002188205718994, 0.2212352156639099, -0.1367070972919464, -0.013893872499465942, -0.18889367580413818, 0.23657266795635223, 0.2181071937084198, 0.20831620693206787, -0.1431370973587036, -0.24706421792507172, 0.4849049150943756, 0.25417226552963257, -0.1302737146615982, 0.47660714387893677, -0.4629564881324768, -0.3232700526714325, 0.23429527878761292, 0.08237729221582413, 0.758408784866333, -0.02576635032892227, 0.24822162091732025, 0.22185558080673218, -0.38729363679885864, 0.5620594620704651, -0.2961162328720093, 0.1522103101015091, -0.06021077185869217, -0.15607038140296936, -0.0034731347113847733, -0.10052940994501114, -0.06659569591283798, 0.1920008361339569, -0.3005216419696808, 0.31709542870521545, 0.4741312861442566, -0.25450482964515686, -0.02542475052177906, 0.5520504713058472, 0.07409566640853882, -0.44489991664886475, -0.06326010823249817, 0.05981139838695526, -0.2775411009788513, 0.1279592514038086, -0.12317392230033875, -0.32199716567993164, 0.1960480511188507, 0.14368166029453278, -0.33403661847114563, 0.08418585360050201, 0.0025317887775599957, 0.21790426969528198, 0.30240076780319214, -0.01872473955154419, 0.24353712797164917, -0.155389204621315, -0.0691189169883728, -0.20241831243038177, -0.08242657035589218, 0.12338718771934509, -0.15316900610923767, 0.11678926646709442, 0.09096994996070862, -0.23128843307495117, 0.5451813340187073, -0.09264476597309113, -0.07114765048027039, -0.24564072489738464, 0.22469645738601685, -0.4014180898666382, -0.2000749707221985, 0.20054155588150024, 0.16138717532157898, 0.1955028623342514, -0.2907212972640991, 0.5905132293701172, 0.12673038244247437, -0.003993585705757141, 0.014942076057195663, 0.22409659624099731, -0.23790371417999268, 0.493990957736969, -0.3347174823284149, 0.032779037952423096, 0.10144162178039551, 0.04158332571387291, -0.10776882618665695, -0.43384358286857605, -0.001215960830450058, 0.3342471420764923, 0.0758199542760849, 0.051431722939014435, -0.0814504474401474, 0.07534042000770569, -0.04821391403675079, -0.09353305399417877, -0.1852855235338211, -0.34339869022369385, 0.0834069550037384, 0.26250773668289185, 0.14033201336860657, 0.2258588969707489, -0.06235123053193092, -0.3012263774871826, -0.18288186192512512, 0.42820727825164795, -0.09056119620800018, 0.1718103140592575, -0.1609399914741516, 0.3156588077545166, 0.4120323657989502, 0.4628572463989258, -0.24442198872566223, 0.016907092183828354, 0.022540757432579994, 0.09322329610586166, 0.3734450340270996, -0.23166728019714355, 0.07709413021802902, 0.2429405301809311, -0.13898307085037231, 0.04263543710112572, -0.3441101014614105, -0.12457123398780823, -0.26963189244270325, 0.11243970692157745, 0.13527901470661163, -0.04004859924316406, 0.0043103452771902084, -0.13928301632404327, -0.13679303228855133, -0.06827143579721451, -0.0343441516160965, -0.4005201756954193, -0.10314899682998657, 0.0878288522362709, -0.04722657427191734, 0.06675803661346436, 0.061761558055877686, 0.1681155115365982, 0.05270714312791824, -0.08132456243038177, 0.38305628299713135, 0.09156385064125061, 0.07138904929161072, -0.1855533868074417, -0.16798464953899384, 0.05471807345747948, 0.278489887714386, 0.14243143796920776, -0.04896404594182968, 0.06975305825471878, -0.21316105127334595, -0.13101541996002197, 0.2193908989429474, 0.22825878858566284, 0.05144951865077019, -0.19707198441028595, 0.1387760043144226, 0.0869610607624054, -0.07299177348613739, -0.024209845811128616, 0.25871315598487854, 0.06115604192018509, 0.0581028051674366, 0.15578080713748932, 0.1339232325553894, 0.4340778589248657, -0.18399576842784882, 0.047185592353343964, 0.16860905289649963, -0.37249666452407837, 0.0530012883245945, -0.1925283521413803, -0.12392807006835938, 0.043469347059726715, 0.17797189950942993, -0.020712818950414658, 0.11280078440904617, -0.18534865975379944, 0.2707880437374115, 0.3122721314430237, 0.009717222303152084, 0.04766669124364853, 0.137176051735878, -0.05930212140083313, -0.181082084774971, 0.20019444823265076, 0.05756010115146637, 0.34439516067504883, 0.01869853585958481, 0.850867748260498, -0.27619609236717224, -0.3828791677951813, 0.17217548191547394, 0.4096408188343048, 0.03172958269715309, -0.18231861293315887, 0.08489260077476501, 0.07741587609052658, -0.3451002240180969, 0.018537435680627823, 0.03847242891788483, -0.17038555443286896, 0.6866492033004761, -0.1312551647424698, 0.11843185126781464, -0.22235526144504547, -0.27609726786613464, 0.31055599451065063, 0.17143984138965607, -0.056525278836488724, 0.060683928430080414, 0.13091224431991577, -0.09606020152568817, -0.16307924687862396, 0.42816388607025146, 0.20537404716014862, 0.07103584706783295, -0.4505876898765564, -0.05537990853190422, 0.10227939486503601, 0.11845840513706207, -0.0857543796300888, 0.15496781468391418, 0.4437689781188965, -0.12202061712741852, 0.27056679129600525, -0.023743480443954468, -0.023219626396894455, -0.13216722011566162, 0.1632668823003769, -0.3313335180282593, -0.37358030676841736, 0.45984214544296265, 0.08283811062574387, -0.11625439673662186, 0.09675098955631256, 0.29102233052253723, -0.652774453163147, -0.24476100504398346, 0.2560928463935852, -0.06182888522744179, -0.0006647063419222832, -0.18027819693088531, 0.06906040757894516, 0.08660872280597687, 0.6433343291282654, 0.16453447937965393, 0.30600109696388245, -0.401454359292984, -0.1258494108915329, -0.6316564679145813, -0.21747511625289917, 0.17937438189983368, -0.138402059674263, -0.17036347091197968, 0.18058344721794128, -0.007043428719043732, 0.24776285886764526, -0.2609242796897888, -0.006970797665417194, 0.32927122712135315, 0.042966462671756744, -0.5192558765411377, 0.03934278339147568, 0.1607201099395752, 0.11304449290037155, 0.2652932107448578, -0.02068374678492546, -0.20508576929569244, 0.10758104175329208, -0.06017380952835083, -0.08420110493898392, -0.11822490394115448, 0.23890376091003418, 0.20819255709648132, 0.005506359040737152, 0.06280205398797989, 0.491981565952301, 0.006553001701831818, -0.17013610899448395, -0.004910659044981003, 0.09330533444881439, -0.3385927081108093, -0.16125193238258362, -0.10824798047542572, 0.2223534882068634, -0.3420104682445526, 0.3595688045024872, -0.017937010154128075, -0.08411470055580139, 0.13189373910427094, 0.025732308626174927, -0.2636851966381073, 0.028533661738038063, -0.008091732859611511, 0.2732335329055786, 0.20005372166633606, 0.7247743606567383, 0.03976484388113022, 0.1726018637418747, -0.16154879331588745, -0.04141342639923096, 0.10445640981197357, -0.17149618268013, -0.28233712911605835, -0.1106850802898407, 0.07003913074731827, 0.03175505995750427, 0.13340796530246735, -0.7072272300720215, -0.38398298621177673, 0.006639362312853336, -0.032671015709638596, 0.024425730109214783, 0.6573562026023865, 0.04589932784438133, -0.10253030061721802, -0.13903066515922546, -0.323108434677124, 0.09402623772621155, -0.2313380390405655, 0.18395116925239563, -0.3546338677406311 ]
https://github.com/huggingface/datasets/issues/217
Multi-task dataset mixing
Hey! Happy to jump into the discussion here. I'm still getting familiar with bits of this code, but the reasons I sampled over data loaders rather than datasets is 1) ensuring that each sampled batch corresponds to only 1 task (in case of different inputs formats/downstream models) and 2) potentially having different batch sizes per task (e.g. some tasks have very long/short inputs). How are you currently dealing with these in your PR?
It seems like many of the best performing models on the GLUE benchmark make some use of multitask learning (simultaneous training on multiple tasks). The [T5 paper](https://arxiv.org/pdf/1910.10683.pdf) highlights multiple ways of mixing the tasks together during finetuning: - **Examples-proportional mixing** - sample from tasks proportionally to their dataset size - **Equal mixing** - sample uniformly from each task - **Temperature-scaled mixing** - The generalized approach used by multilingual BERT which uses a temperature T, where the mixing rate of each task is raised to the power 1/T and renormalized. When T=1 this is equivalent to equal mixing, and becomes closer to equal mixing with increasing T. Following this discussion https://github.com/huggingface/transformers/issues/4340 in [transformers](https://github.com/huggingface/transformers), @enzoampil suggested that the `nlp` library might be a better place for this functionality. Some method for combining datasets could be implemented ,e.g. ``` dataset = nlp.load_multitask(['squad','imdb','cnn_dm'], temperature=2.0, ...) ``` We would need a few additions: - Method of identifying the tasks - how can we support adding a string to each task as an identifier: e.g. 'summarisation: '? - Method of combining the metrics - a standard approach is to use the specific metric for each task and add them together for a combined score. It would be great to support common use cases such as pretraining on the GLUE benchmark before fine-tuning on each GLUE task in turn. I'm willing to write bits/most of this I just need some guidance on the interface and other library details so I can integrate it properly.
73
Multi-task dataset mixing It seems like many of the best performing models on the GLUE benchmark make some use of multitask learning (simultaneous training on multiple tasks). The [T5 paper](https://arxiv.org/pdf/1910.10683.pdf) highlights multiple ways of mixing the tasks together during finetuning: - **Examples-proportional mixing** - sample from tasks proportionally to their dataset size - **Equal mixing** - sample uniformly from each task - **Temperature-scaled mixing** - The generalized approach used by multilingual BERT which uses a temperature T, where the mixing rate of each task is raised to the power 1/T and renormalized. When T=1 this is equivalent to equal mixing, and becomes closer to equal mixing with increasing T. Following this discussion https://github.com/huggingface/transformers/issues/4340 in [transformers](https://github.com/huggingface/transformers), @enzoampil suggested that the `nlp` library might be a better place for this functionality. Some method for combining datasets could be implemented ,e.g. ``` dataset = nlp.load_multitask(['squad','imdb','cnn_dm'], temperature=2.0, ...) ``` We would need a few additions: - Method of identifying the tasks - how can we support adding a string to each task as an identifier: e.g. 'summarisation: '? - Method of combining the metrics - a standard approach is to use the specific metric for each task and add them together for a combined score. It would be great to support common use cases such as pretraining on the GLUE benchmark before fine-tuning on each GLUE task in turn. I'm willing to write bits/most of this I just need some guidance on the interface and other library details so I can integrate it properly. Hey! Happy to jump into the discussion here. I'm still getting familiar with bits of this code, but the reasons I sampled over data loaders rather than datasets is 1) ensuring that each sampled batch corresponds to only 1 task (in case of different inputs formats/downstream models) and 2) potentially having different batch sizes per task (e.g. some tasks have very long/short inputs). How are you currently dealing with these in your PR?
[ -0.08960527181625366, -0.3705180585384369, -0.04412443935871124, -0.06419792771339417, -0.22869299352169037, 0.02895081788301468, 0.26768994331359863, 0.023360375314950943, 0.39509543776512146, -0.10933461785316467, -0.17059171199798584, 0.3203355669975281, -0.20159806311130524, 0.3754858374595642, 0.398447185754776, -0.43781769275665283, -0.002577260136604309, -0.25555214285850525, -0.32734307646751404, 0.386793315410614, 0.0030517876148223877, 0.11846117675304413, -0.14524957537651062, 0.05655578151345253, -0.2847828269004822, -0.1290690004825592, -0.3320094645023346, 0.1075519546866417, 0.09705780446529388, -0.011513551697134972, 0.23895077407360077, 0.36387982964515686, -0.0029586059972643852, 0.12613223493099213, -0.00011568749323487282, -0.04139304533600807, 0.2245579957962036, -0.08851201087236404, 0.0648910254240036, -0.04569973051548004, 0.1790010929107666, -0.37617799639701843, 0.05878867208957672, -0.1425863355398178, 0.20260372757911682, 0.17821456491947174, 0.17752540111541748, 0.04718846082687378, 0.3459135890007019, -0.3254345953464508, 0.08241231739521027, 0.32058221101760864, -0.20827752351760864, 0.264005184173584, -0.11156556755304337, -0.05021291226148605, 0.07479358464479446, 0.31859785318374634, 0.6831015348434448, -0.5693541765213013, -0.07522589713335037, 0.1094847023487091, 0.018864857032895088, -0.06389613449573517, 0.1539568305015564, -0.08444595336914062, -0.3090028464794159, -0.24644383788108826, -0.4362664520740509, 0.21254271268844604, -0.11863072961568832, -0.12883278727531433, -0.23607240617275238, -0.6045433282852173, -0.02912755310535431, 0.07235975563526154, -0.2734467089176178, -0.00966278463602066, -0.2152973711490631, -0.04984107241034508, -0.1738600879907608, -0.10561873018741608, -0.031104475259780884, 0.14210426807403564, 0.35343870520591736, 0.5484309792518616, 0.07717598229646683, 0.21021872758865356, 0.41617828607559204, 0.08392133563756943, -0.11613062769174576, -0.2795419991016388, 0.31732702255249023, 0.12179850786924362, -0.36284640431404114, -0.34425216913223267, 0.1783771812915802, -0.2727920413017273, 0.26535066962242126, 0.14319565892219543, 0.13283862173557281, 0.056612029671669006, -0.12779124081134796, 0.24213260412216187, 0.3584892451763153, 0.08159478008747101, -0.0906195268034935, -0.11054679751396179, 0.011069990694522858, -0.10448601841926575, 0.2219536006450653, 0.10372374206781387, 0.1453363001346588, -0.015399104915559292, -0.4716430902481079, -0.08467717468738556, -0.23086169362068176, 0.11420771479606628, -0.18811674416065216, -0.5452075600624084, -0.07727596163749695, -0.14436019957065582, 0.11034189909696579, -0.08995715528726578, -0.26810792088508606, 0.11734525114297867, -0.056046370416879654, 0.25359123945236206, -0.13841111958026886, 0.04875072464346886, -0.04957428574562073, 0.06132860109210014, -0.4584905803203583, -0.09332145750522614, 0.28703707456588745, 0.17207959294319153, 0.12903040647506714, 0.12023768573999405, -0.019158557057380676, 0.1441023200750351, 0.3373579978942871, 0.028596259653568268, 0.013050839304924011, 0.010992754250764847, 0.1865423321723938, -0.3049394488334656, 0.011405061930418015, 0.23146338760852814, -0.3490487039089203, -0.10899258404970169, -0.20152604579925537, -0.19108125567436218, 0.16736038029193878, 0.013930661603808403, -0.21046416461467743, -0.2614150941371918, -0.5597921013832092, 0.6944102644920349, -0.03270501643419266, -0.1093488484621048, -0.14054235816001892, 0.2590898275375366, -0.16008645296096802, -0.08462860435247421, 0.15514855086803436, 0.04823887348175049, -0.04864833503961563, -0.3655715584754944, -0.07868407666683197, -0.12028461694717407, 0.05071477219462395, 0.26793625950813293, -0.2283245176076889, 0.27010577917099, 0.018788723275065422, 0.19740907847881317, 0.24765536189079285, -0.47684693336486816, -0.032977379858493805, 0.36459439992904663, -0.04434620589017868, 0.4032140076160431, 0.10897711664438248, 0.20473599433898926, 0.04271789267659187, -0.20092646777629852, 0.24048063158988953, 1.0242562294006348, -0.3771040439605713, 0.008822543546557426, -0.12261922657489777, -0.3946358859539032, 0.5419142246246338, 0.33365944027900696, 0.08739154040813446, -0.26467540860176086, -0.11319295316934586, 0.020931940525770187, 0.1400296688079834, 0.06807206571102142, 0.09149958193302155, -0.06338777393102646, -0.3728698194026947, 0.0450841560959816, -0.21324522793293, -0.09416217356920242, -0.364044725894928, 0.02004198729991913, -0.07089388370513916, 0.33006352186203003, 0.27682819962501526, -0.10196177661418915, 0.29011139273643494, -0.2599792778491974, -0.135525181889534, -0.2989259660243988, 0.08099512755870819, -0.09198087453842163, 0.019625231623649597, -0.3017865717411041, -0.043530140072107315, 0.31149008870124817, 0.0931476578116417, -0.11146422475576401, -0.5201097130775452, 0.29312944412231445, -0.03599800169467926, 0.06156430393457413, -0.05629512667655945, 0.5926684141159058, -0.16117382049560547, -0.12305686622858047, 0.15402847528457642, 0.3034608066082001, -0.26907217502593994, 0.22715753316879272, 0.28728824853897095, 0.18800121545791626, 0.16485320031642914, -0.016522228717803955, 0.1333707869052887, 0.005181802436709404, -0.012539632618427277, -0.22247466444969177, -0.07112520188093185, 0.49432867765426636, -0.1799311339855194, 0.4873962998390198, -0.04466478154063225, 0.01574031077325344, -0.18632064759731293, -0.04753492772579193, -0.23269294202327728, 0.4075046479701996, 0.3192884624004364, -0.17949728667736053, 0.37258559465408325, -0.08623833954334259, -0.3513277471065521, 0.17856615781784058, 0.09627655148506165, 0.0001980699598789215, 0.02125529944896698, -0.012915007770061493, -0.009134426712989807, -0.3338395953178406, -0.11009928584098816, 0.3355422616004944, 0.6644569039344788, 0.2493683397769928, 0.17727476358413696, -0.028650900349020958, -0.19699712097644806, -0.09434298425912857, 0.03606756776571274, 0.21235455572605133, -0.024821974337100983, 0.15700149536132812, -0.010826662182807922, 0.036738794296979904, -0.0019104480743408203, -0.1451438069343567, 0.14484155178070068, -0.20404024422168732, -0.0847463309764862, 0.08304145187139511, -0.20195825397968292, -0.6090888977050781, -0.24757200479507446, -0.017396681010723114, -0.3290185332298279, -0.28852343559265137, 0.10992741584777832, 0.08244846761226654, -0.15863150358200073, 0.14156220853328705, 0.2259223461151123, 0.6497548818588257, -0.44584566354751587, -0.23835454881191254, -0.0980750173330307, -0.2736440896987915, -0.11788386851549149, 0.08979292213916779, 0.43891531229019165, 0.29879119992256165, 0.4678758978843689, 0.33576568961143494, -0.07294569164514542, 0.09495709091424942, -0.351706862449646, 0.03553087264299393, -0.29307907819747925, 0.30988234281539917, 0.13900791108608246, -0.18240393698215485, 0.19600342214107513, -0.37701982259750366, -0.0679645910859108, -0.04905400052666664, -0.09277123212814331, -0.06871528923511505, -0.026184704154729843, 0.07875340431928635, -0.19790871441364288, -0.14304080605506897, -0.6475353240966797, -0.4276147782802582, 0.26241010427474976, -0.2563130557537079, 0.053811125457286835, 0.05618834123015404, -0.278965562582016, 0.16724111139774323, -0.11408717185258865, -0.030199719592928886, -0.16675293445587158, -0.11565902829170227, -0.022316034883260727, -0.34140530228614807, -0.16686134040355682, -0.43680334091186523, -0.08814264833927155, 0.20312538743019104, -0.01946423389017582, -0.019430294632911682, -0.18683069944381714, 0.15789055824279785, -0.12860554456710815, 0.1338546872138977, 0.22554972767829895, 0.14002461731433868, -0.24906909465789795, 0.14498257637023926, -0.069246307015419, -0.2159973680973053, 0.2266513705253601, 0.3102312982082367, 0.46727079153060913, 0.2042819857597351, 0.02137511968612671, 0.14779303967952728, 0.7359365224838257, 0.22510188817977905, 0.061652880162000656, 0.1580505073070526, 0.29719820618629456, -0.011522043496370316, 0.10848749428987503, -0.20904198288917542, 0.2638307213783264, -0.19775986671447754, 0.48094671964645386, 0.08564814180135727, 0.1445293426513672, -0.18779675662517548, -0.28085291385650635, 0.008959364145994186, -0.27548253536224365, -0.22052398324012756, 0.24758380651474, -0.27491986751556396, 0.008521243929862976, -0.07700437307357788, -0.36289486289024353, -0.28628379106521606, -0.03926139324903488, -0.0072004301473498344, 0.3148201107978821, 0.030278995633125305, 0.16325657069683075, -0.39912793040275574, -0.0698733925819397, -0.4792781472206116, 0.12462069094181061, 0.050041306763887405, 0.2723790407180786, -0.07456666231155396, -0.10680710524320602, -0.08096520602703094, 0.13911359012126923, 0.6718360781669617, -0.4680744707584381, -0.12010261416435242, 0.04675678536295891, 0.08207778632640839, -0.05977201461791992, -0.12703648209571838, -0.2370416224002838, 0.020004697144031525, 0.45223426818847656, 0.35549598932266235, -0.41076311469078064, -0.2772546112537384, 0.22630633413791656, -0.16873949766159058, -0.08126655220985413, -0.22157080471515656, -0.213723823428154, -0.17879271507263184, -0.12051793932914734, 0.022923767566680908, 0.19870954751968384, 0.2567107379436493, -0.1758776307106018, 0.18028008937835693, -0.09640845656394958, 0.2749902009963989, 0.18857261538505554, -0.004855283536016941, -0.06122702360153198, 0.19523601233959198, 0.1555696725845337, 0.07697001099586487, -0.11399346590042114, -0.288861483335495, 0.11771664768457413, -0.09440407156944275, 0.09064547717571259, 0.2796687185764313, -0.02780107781291008, 0.6893085837364197, 0.08675288408994675, 0.33508336544036865, 0.26983973383903503, -0.08435428142547607, -0.01583176851272583, -0.25507763028144836, 0.17849355936050415, 0.1570006012916565, 0.2542005479335785, -0.15993091464042664, -0.26166751980781555, 0.5813789963722229, 0.30217254161834717, -0.07488224655389786, 0.41239339113235474, -0.5658522844314575, -0.31813398003578186, 0.3210621476173401, 0.00823444128036499, 0.6767171025276184, -0.011694729328155518, 0.29665639996528625, 0.09642118215560913, -0.29173001646995544, 0.5918289422988892, -0.3068070411682129, 0.13567328453063965, -0.0862947627902031, -0.1570103019475937, -0.0007171463221311569, -0.10220582783222198, -0.06825969368219376, 0.28566813468933105, -0.2693982720375061, 0.3406902849674225, 0.4515399932861328, -0.2593249976634979, -0.062463097274303436, 0.4970204830169678, 0.04026011377573013, -0.3902254104614258, -0.05338861048221588, 0.038066886365413666, -0.26367372274398804, 0.1580256074666977, -0.133980393409729, -0.2760336399078369, 0.24240297079086304, 0.09275685250759125, -0.25990310311317444, 0.10794910043478012, 0.0026798886246979237, 0.2147812396287918, 0.3164942264556885, 0.02447327971458435, 0.24765801429748535, -0.18959246575832367, -0.1502363085746765, -0.1708448976278305, -0.06086139380931854, 0.13157790899276733, -0.14995649456977844, 0.07499957084655762, 0.10225166380405426, -0.18703840672969818, 0.5334508419036865, -0.06037294864654541, -0.08038868010044098, -0.25751784443855286, 0.22078357636928558, -0.4532487392425537, -0.15675608813762665, 0.1557289958000183, 0.1729329526424408, 0.17084290087223053, -0.39831504225730896, 0.5807890892028809, 0.1363251954317093, 0.01606689766049385, -0.0007994230836629868, 0.16640564799308777, -0.22038978338241577, 0.5007690191268921, -0.31078219413757324, 0.009038552641868591, 0.07070157676935196, 0.006287671625614166, -0.1292518973350525, -0.41762953996658325, -0.048088863492012024, 0.2977130115032196, 0.09809504449367523, 0.050419680774211884, -0.009112585335969925, 0.18022242188453674, -0.11553850769996643, -0.03041195496916771, -0.11281538754701614, -0.2936977744102478, 0.13766317069530487, 0.18977488577365875, 0.20098906755447388, 0.19345153868198395, -0.08014607429504395, -0.3293387293815613, -0.19233368337154388, 0.4907081127166748, -0.03517618402838707, 0.20113816857337952, -0.08926837891340256, 0.3534674346446991, 0.3922421932220459, 0.45730701088905334, -0.23124587535858154, 0.03419934958219528, 0.0725930854678154, 0.0904187560081482, 0.4238544702529907, -0.2111251950263977, 0.05492492392659187, 0.29967018961906433, -0.15968680381774902, 0.032893478870391846, -0.2968643605709076, -0.122858926653862, -0.2477562576532364, 0.11770719289779663, 0.1244916170835495, -0.019673790782690048, 0.00043405918404459953, -0.10363567620515823, -0.059410180896520615, -0.05669507384300232, 0.01615779474377632, -0.38819897174835205, -0.07074019312858582, 0.08002318441867828, -0.056611087173223495, 0.0591750405728817, 0.01889682188630104, 0.30536124110221863, 0.037740252912044525, -0.047990307211875916, 0.3157261312007904, 0.12572383880615234, 0.08717872202396393, -0.15319684147834778, -0.19503779709339142, 0.01724536344408989, 0.30177509784698486, 0.17276018857955933, -0.03927157074213028, 0.16133388876914978, -0.16719721257686615, -0.1590324193239212, 0.22609055042266846, 0.22319789230823517, 0.04009866341948509, -0.1603204607963562, 0.1115739494562149, 0.0839044451713562, -0.09768800437450409, 0.012813722714781761, 0.1506921648979187, 0.1132156029343605, 0.061027999967336655, 0.1405312567949295, 0.17595933377742767, 0.4591098427772522, -0.25382059812545776, -0.0028150659054517746, 0.14726048707962036, -0.24171821773052216, 0.0918261706829071, -0.07453326880931854, -0.04242368042469025, 0.022125259041786194, 0.17669044435024261, 0.016910504549741745, 0.12707696855068207, -0.31835752725601196, 0.25807932019233704, 0.3101723790168762, 0.00578947551548481, 0.014650493860244751, 0.09429740905761719, -0.06749337911605835, -0.1866595447063446, 0.3170958161354065, 0.009613625705242157, 0.34642577171325684, 0.045297086238861084, 0.8753759264945984, -0.3337635099887848, -0.4275132119655609, 0.1539943516254425, 0.4489395022392273, 0.05686284601688385, -0.22211262583732605, 0.03735818713903427, 0.128280907869339, -0.36817601323127747, 0.11881008744239807, 0.016468871384859085, -0.14899758994579315, 0.626168966293335, -0.11506865918636322, 0.14155364036560059, -0.19208979606628418, -0.25172439217567444, 0.308824747800827, 0.15109366178512573, -0.1087188720703125, 0.0039810556918382645, 0.08623820543289185, -0.031954169273376465, -0.08976536989212036, 0.4948277175426483, 0.244264155626297, 0.04460246115922928, -0.421764075756073, -0.052755989134311676, 0.06980535387992859, 0.15835453569889069, -0.09271056950092316, 0.14168408513069153, 0.4574715793132782, -0.14659695327281952, 0.25981706380844116, -0.012058035470545292, -0.02877636067569256, -0.10949555039405823, 0.10569226741790771, -0.40160325169563293, -0.3663015365600586, 0.4545688331127167, 0.09633532911539078, -0.10901229828596115, 0.05089838430285454, 0.29747822880744934, -0.6373811960220337, -0.23753024637699127, 0.30419349670410156, -0.12987779080867767, -0.07157361507415771, -0.18063664436340332, 0.060531824827194214, 0.05796642228960991, 0.6411341428756714, 0.2447851449251175, 0.3587521016597748, -0.41919267177581787, -0.12837088108062744, -0.5469258427619934, -0.25038954615592957, 0.14156438410282135, -0.07871101796627045, -0.2634574770927429, 0.13791419565677643, -0.04050192981958389, 0.25394541025161743, -0.27015799283981323, 0.10107479989528656, 0.2356555461883545, 0.0957554280757904, -0.43658745288848877, 0.08838395774364471, 0.13122282922267914, 0.1066771000623703, 0.25308355689048767, -0.09535438567399979, -0.17096753418445587, 0.10993656516075134, -0.12099023908376694, -0.08666320145130157, -0.08444896340370178, 0.3115093410015106, 0.22627896070480347, 0.04814761132001877, 0.05102423578500748, 0.565893292427063, 0.008747775107622147, -0.1783837229013443, 0.019667472690343857, 0.00943761132657528, -0.3435695767402649, -0.1645626723766327, -0.08115549385547638, 0.15427017211914062, -0.31995925307273865, 0.34175845980644226, -0.01973584294319153, -0.11823589354753494, 0.10428182780742645, 0.0029666402842849493, -0.22956089675426483, -0.05096910148859024, 0.005003921687602997, 0.18253256380558014, 0.251396119594574, 0.7283108830451965, 0.02825448475778103, 0.0951499342918396, -0.07251209020614624, 0.0025234073400497437, 0.03102719783782959, -0.10433603078126907, -0.21575932204723358, -0.17576713860034943, 0.04487771540880203, 0.013304568827152252, 0.12388918548822403, -0.7102771401405334, -0.3642640709877014, 0.01961761713027954, 0.013225298374891281, 0.08402127027511597, 0.7129793167114258, 0.07473444938659668, -0.1425296515226364, -0.13840201497077942, -0.3290705680847168, 0.051101937890052795, -0.23991233110427856, 0.19118699431419373, -0.3383633494377136 ]
https://github.com/huggingface/datasets/issues/217
Multi-task dataset mixing
The short answer is - I'm not! Everything is currently on a per-example basis. It would be fairly simple to add a `batch_size` argument which would ensure that every `batch_size` examples come from the same task. That should suit most use-cases (unless you wanted to ensure batches all came from the same task and apply something like `SortishSampler` on each task first) Your notebook was really inspiring by the way - thanks!
It seems like many of the best performing models on the GLUE benchmark make some use of multitask learning (simultaneous training on multiple tasks). The [T5 paper](https://arxiv.org/pdf/1910.10683.pdf) highlights multiple ways of mixing the tasks together during finetuning: - **Examples-proportional mixing** - sample from tasks proportionally to their dataset size - **Equal mixing** - sample uniformly from each task - **Temperature-scaled mixing** - The generalized approach used by multilingual BERT which uses a temperature T, where the mixing rate of each task is raised to the power 1/T and renormalized. When T=1 this is equivalent to equal mixing, and becomes closer to equal mixing with increasing T. Following this discussion https://github.com/huggingface/transformers/issues/4340 in [transformers](https://github.com/huggingface/transformers), @enzoampil suggested that the `nlp` library might be a better place for this functionality. Some method for combining datasets could be implemented ,e.g. ``` dataset = nlp.load_multitask(['squad','imdb','cnn_dm'], temperature=2.0, ...) ``` We would need a few additions: - Method of identifying the tasks - how can we support adding a string to each task as an identifier: e.g. 'summarisation: '? - Method of combining the metrics - a standard approach is to use the specific metric for each task and add them together for a combined score. It would be great to support common use cases such as pretraining on the GLUE benchmark before fine-tuning on each GLUE task in turn. I'm willing to write bits/most of this I just need some guidance on the interface and other library details so I can integrate it properly.
72
Multi-task dataset mixing It seems like many of the best performing models on the GLUE benchmark make some use of multitask learning (simultaneous training on multiple tasks). The [T5 paper](https://arxiv.org/pdf/1910.10683.pdf) highlights multiple ways of mixing the tasks together during finetuning: - **Examples-proportional mixing** - sample from tasks proportionally to their dataset size - **Equal mixing** - sample uniformly from each task - **Temperature-scaled mixing** - The generalized approach used by multilingual BERT which uses a temperature T, where the mixing rate of each task is raised to the power 1/T and renormalized. When T=1 this is equivalent to equal mixing, and becomes closer to equal mixing with increasing T. Following this discussion https://github.com/huggingface/transformers/issues/4340 in [transformers](https://github.com/huggingface/transformers), @enzoampil suggested that the `nlp` library might be a better place for this functionality. Some method for combining datasets could be implemented ,e.g. ``` dataset = nlp.load_multitask(['squad','imdb','cnn_dm'], temperature=2.0, ...) ``` We would need a few additions: - Method of identifying the tasks - how can we support adding a string to each task as an identifier: e.g. 'summarisation: '? - Method of combining the metrics - a standard approach is to use the specific metric for each task and add them together for a combined score. It would be great to support common use cases such as pretraining on the GLUE benchmark before fine-tuning on each GLUE task in turn. I'm willing to write bits/most of this I just need some guidance on the interface and other library details so I can integrate it properly. The short answer is - I'm not! Everything is currently on a per-example basis. It would be fairly simple to add a `batch_size` argument which would ensure that every `batch_size` examples come from the same task. That should suit most use-cases (unless you wanted to ensure batches all came from the same task and apply something like `SortishSampler` on each task first) Your notebook was really inspiring by the way - thanks!
[ -0.09565405547618866, -0.4303835928440094, -0.04629363492131233, -0.06745120882987976, -0.25789451599121094, 0.00994691252708435, 0.20224915444850922, 0.0762411504983902, 0.290397047996521, -0.11092494428157806, -0.18591269850730896, 0.29462262988090515, -0.2300930768251419, 0.37895435094833374, 0.4100242555141449, -0.45200076699256897, 0.024441376328468323, -0.1772068738937378, -0.29455024003982544, 0.36274445056915283, 0.015422873198986053, 0.14288930594921112, -0.15470299124717712, 0.08106362819671631, -0.31288382411003113, -0.1692620813846588, -0.34849441051483154, 0.10086321085691452, 0.13701502978801727, -0.024620458483695984, 0.20903034508228302, 0.3778526186943054, 0.03400859236717224, 0.10139337927103043, -0.0001114291517296806, -0.09728727489709854, 0.20507942140102386, -0.09062570333480835, 0.10297593474388123, -0.059003427624702454, 0.16401726007461548, -0.36792272329330444, -0.0027349074371159077, -0.12695011496543884, 0.15940716862678528, 0.22511371970176697, 0.20238129794597626, 0.08568400144577026, 0.3988801836967468, -0.3097245693206787, 0.11813057959079742, 0.32869410514831543, -0.18170171976089478, 0.23797303438186646, -0.08357041329145432, -0.06251056492328644, 0.060989171266555786, 0.234528049826622, 0.6071348190307617, -0.5887552499771118, -0.06404925137758255, 0.14051872491836548, 0.03854504972696304, 0.021421028301119804, 0.14441177248954773, -0.03873610496520996, -0.2962246537208557, -0.23276570439338684, -0.4362363815307617, 0.2806536555290222, -0.16127359867095947, -0.13062602281570435, -0.2634522616863251, -0.5633009672164917, -0.0008522511925548315, 0.0014617834240198135, -0.3300977051258087, 0.04478761553764343, -0.21435853838920593, -0.03346599265933037, -0.15243931114673615, -0.06026783585548401, -0.040600985288619995, 0.11201153695583344, 0.3631240725517273, 0.5616527795791626, 0.08171803504228592, 0.13045638799667358, 0.3781229257583618, 0.05841777101159096, -0.19902975857257843, -0.2562060058116913, 0.2837378680706024, 0.11374087631702423, -0.3466747999191284, -0.3419148921966553, 0.17506296932697296, -0.19309008121490479, 0.32280856370925903, 0.10108942538499832, 0.0934973955154419, 0.09113730490207672, -0.10030021518468857, 0.2920587956905365, 0.3476572334766388, 0.1223694384098053, -0.056605927646160126, -0.12424657493829727, 0.03975910693407059, -0.06336728483438492, 0.20475336909294128, 0.1504272222518921, 0.1986277550458908, -0.007034660317003727, -0.4239507019519806, -0.11359068006277084, -0.18267862498760223, 0.14201024174690247, -0.2142997831106186, -0.5234177112579346, -0.02995631843805313, -0.1304447501897812, 0.08226422220468521, -0.05673941224813461, -0.28533172607421875, 0.09736549854278564, -0.08805646002292633, 0.19672304391860962, -0.12846849858760834, 0.074833944439888, -0.08253391832113266, 0.07176302373409271, -0.46903887391090393, -0.04859970510005951, 0.3015267550945282, 0.10744832456111908, 0.13133570551872253, 0.13816595077514648, -0.03774357587099075, 0.13288098573684692, 0.3394283950328827, 0.03031298518180847, -0.0003308430314064026, -0.036166962236166, 0.15753686428070068, -0.334558367729187, -0.043769385665655136, 0.1560828536748886, -0.4061697721481323, -0.1570378541946411, -0.12641951441764832, -0.2152496874332428, 0.13307422399520874, 0.054887186735868454, -0.23455171287059784, -0.25436797738075256, -0.4572620093822479, 0.7054934501647949, -0.0462396964430809, -0.0334070660173893, -0.13866624236106873, 0.2801195979118347, -0.2386474758386612, -0.07164376229047775, 0.1591426134109497, 0.09545470774173737, 0.0009734891355037689, -0.3780566453933716, -0.03246244788169861, -0.10533304512500763, -0.06803708523511887, 0.31936463713645935, -0.17716720700263977, 0.18924535810947418, 0.05113617330789566, 0.20222057402133942, 0.24152271449565887, -0.49662283062934875, -0.033442117273807526, 0.3052605986595154, -0.03650667890906334, 0.3519693613052368, 0.07787414640188217, 0.1823498010635376, 0.09818753600120544, -0.19245629012584686, 0.2653273940086365, 1.0035316944122314, -0.3828694820404053, 0.022055381909012794, -0.12745918333530426, -0.40109625458717346, 0.48556333780288696, 0.32760190963745117, 0.023420564830303192, -0.31363818049430847, -0.13007810711860657, -0.025604713708162308, 0.09931167960166931, 0.06988109648227692, 0.07652907073497772, -0.06977515667676926, -0.3187342584133148, 0.013977929949760437, -0.15631605684757233, -0.13527274131774902, -0.42362913489341736, 0.0341506153345108, -0.069462850689888, 0.33294907212257385, 0.3250610828399658, -0.13765084743499756, 0.21762695908546448, -0.26340505480766296, -0.10048303008079529, -0.3129211962223053, 0.14184807240962982, -0.10447494685649872, 0.05392603203654289, -0.27995944023132324, -0.07492939382791519, 0.3310256600379944, 0.08667033910751343, -0.12241502851247787, -0.4675810635089874, 0.24261604249477386, -0.1065034493803978, 0.017546549439430237, 0.007299870252609253, 0.6171315908432007, -0.14959478378295898, -0.07000648975372314, 0.20503386855125427, 0.2820172905921936, -0.2821090817451477, 0.25474750995635986, 0.2886516749858856, 0.22653178870677948, 0.18389947712421417, 0.012913282960653305, 0.10476913303136826, -0.018239010125398636, -0.03309885784983635, -0.18438972532749176, -0.12761688232421875, 0.5337744951248169, -0.11340352892875671, 0.4237476885318756, 0.010280504822731018, -0.0016259923577308655, -0.18574856221675873, -0.08734427392482758, -0.2569579780101776, 0.3532715141773224, 0.3242211639881134, -0.21554139256477356, 0.35757458209991455, -0.09278342872858047, -0.38738518953323364, 0.15766872465610504, 0.1813381016254425, 0.022451672703027725, 0.08836841583251953, 0.022484995424747467, -0.04399341344833374, -0.28928205370903015, -0.08268629014492035, 0.3609902560710907, 0.6006553173065186, 0.30525389313697815, 0.1733635663986206, 0.02706027589738369, -0.3042919635772705, -0.11205661296844482, 0.01522761583328247, 0.1831429898738861, -0.030196767300367355, 0.15285491943359375, 0.04158691316843033, 0.05599948763847351, -0.048957422375679016, -0.16611482203006744, 0.09252698719501495, -0.17580769956111908, -0.08188991993665695, 0.039575278759002686, -0.16714315116405487, -0.5780367255210876, -0.24609240889549255, 0.04412258416414261, -0.3262542486190796, -0.2550865113735199, 0.15884153544902802, 0.029434027150273323, -0.16992639005184174, 0.17299646139144897, 0.22927621006965637, 0.6286782026290894, -0.43886157870292664, -0.1850004494190216, -0.10761908441781998, -0.32223719358444214, -0.15262499451637268, 0.12096056342124939, 0.41602084040641785, 0.2905066907405853, 0.4932434558868408, 0.2830926775932312, -0.02600100263953209, 0.10474324226379395, -0.37736430764198303, 0.054451651871204376, -0.2754271626472473, 0.28514400124549866, 0.11039300262928009, -0.22095827758312225, 0.15785665810108185, -0.3922049403190613, -0.05006082355976105, -0.1231086477637291, -0.09991288930177689, -0.08157987147569656, -0.02658075839281082, 0.04209123179316521, -0.1918627768754959, -0.16757184267044067, -0.6334235072135925, -0.4681070148944855, 0.3418906331062317, -0.2122170627117157, 0.10471154749393463, 0.05770048499107361, -0.2606833279132843, 0.1661696881055832, -0.15556204319000244, 0.027958489954471588, -0.16115103662014008, -0.08060164749622345, 0.027159754186868668, -0.3650360703468323, -0.16097703576087952, -0.42607811093330383, -0.13156655430793762, 0.21172524988651276, -0.08573508262634277, -0.018160924315452576, -0.2503877878189087, 0.07165079563856125, -0.13314318656921387, 0.1169312372803688, 0.2675021290779114, 0.19170328974723816, -0.23755067586898804, 0.09199459850788116, -0.030879564583301544, -0.2376435250043869, 0.24059689044952393, 0.3334430456161499, 0.3925412595272064, 0.1405199021100998, 0.03054020181298256, 0.19585341215133667, 0.7353605031967163, 0.2564292848110199, 0.023826811462640762, 0.18662703037261963, 0.2621126174926758, 0.024636615067720413, 0.16013893485069275, -0.1698179990053177, 0.2595059871673584, -0.17571240663528442, 0.4492536783218384, 0.12856155633926392, 0.18453165888786316, -0.23330824077129364, -0.24578700959682465, -0.01603538542985916, -0.2677404284477234, -0.2062053680419922, 0.24365290999412537, -0.20046620070934296, -0.005440086126327515, -0.09856279194355011, -0.38829484581947327, -0.2598915696144104, -0.03290420025587082, 0.017790691927075386, 0.28791022300720215, 0.0028495565056800842, 0.16430732607841492, -0.31946757435798645, -0.0556374192237854, -0.4845142960548401, 0.1495630145072937, 0.07221505045890808, 0.26892685890197754, -0.06600017845630646, -0.10260583460330963, -0.11336366832256317, 0.08600841462612152, 0.6084621548652649, -0.4609881043434143, -0.12899263203144073, 0.029674343764781952, 0.09475578367710114, -0.1248147115111351, -0.10218660533428192, -0.2683615982532501, -0.06343226134777069, 0.4624726176261902, 0.3793348968029022, -0.3683628737926483, -0.3086755871772766, 0.252780020236969, -0.2167632281780243, -0.055352166295051575, -0.23541614413261414, -0.2197982519865036, -0.1814945936203003, -0.15289421379566193, 0.09308230131864548, 0.22387351095676422, 0.17905889451503754, -0.10410695523023605, 0.12050031125545502, -0.07052168995141983, 0.20699182152748108, 0.23102660477161407, 0.032419659197330475, -0.02489175647497177, 0.20212413370609283, 0.12999290227890015, 0.07291887700557709, -0.12812349200248718, -0.3435959219932556, 0.052056409418582916, -0.07871609926223755, 0.16748002171516418, 0.27202853560447693, 0.03894712030887604, 0.6369614601135254, 0.09319600462913513, 0.34834808111190796, 0.24644964933395386, -0.10003073513507843, 0.028285089880228043, -0.26440930366516113, 0.11702127754688263, 0.19253745675086975, 0.2408115118741989, -0.13324135541915894, -0.18242251873016357, 0.614434003829956, 0.3210256099700928, -0.07534231245517731, 0.3915689289569855, -0.48021161556243896, -0.2988832890987396, 0.30478888750076294, 0.04767628386616707, 0.6780324578285217, -0.008657895028591156, 0.2885785698890686, 0.10952427983283997, -0.3549049496650696, 0.5664433836936951, -0.3462432026863098, 0.15785454213619232, -0.10396914184093475, -0.19105403125286102, 0.00718357227742672, -0.08794985711574554, -0.048731476068496704, 0.26887255907058716, -0.3467079699039459, 0.34354355931282043, 0.4566832184791565, -0.23565933108329773, -0.08080535382032394, 0.5609848499298096, -0.04154347628355026, -0.4095562994480133, -0.08284271508455276, 0.07587045431137085, -0.28342705965042114, 0.14133420586585999, -0.174600750207901, -0.27455705404281616, 0.2578776180744171, 0.10646586120128632, -0.2738932967185974, 0.0917181670665741, -0.05002881959080696, 0.17283271253108978, 0.27562418580055237, 0.0317583829164505, 0.1917441487312317, -0.2028181552886963, -0.06302624940872192, -0.19644121825695038, -0.07966633141040802, 0.15450118482112885, -0.14524799585342407, 0.10553416609764099, 0.08784664422273636, -0.2098415344953537, 0.5108203887939453, -0.053067684173583984, -0.10169684886932373, -0.26747065782546997, 0.26043638586997986, -0.40429365634918213, -0.17751358449459076, 0.1069345474243164, 0.1369609534740448, 0.20797011256217957, -0.29248157143592834, 0.5627291202545166, 0.0902751237154007, -0.005863286554813385, 0.055334266275167465, 0.15226802229881287, -0.2723235785961151, 0.5453812479972839, -0.25501906871795654, 0.011216551065444946, 0.05190218240022659, 0.01189575344324112, -0.14888307452201843, -0.36376848816871643, -0.08748194575309753, 0.27418428659439087, 0.0973830372095108, -0.00017552450299263, -0.013708673417568207, 0.14800389111042023, -0.11333461105823517, -0.02041776105761528, -0.1266627162694931, -0.35359564423561096, 0.17925134301185608, 0.21609540283679962, 0.255737841129303, 0.21601051092147827, -0.07465720921754837, -0.24117863178253174, -0.1948135793209076, 0.48192811012268066, 0.027668289840221405, 0.2639501392841339, -0.13278505206108093, 0.35004279017448425, 0.4172849953174591, 0.5425969362258911, -0.2901418209075928, 0.01948917843401432, 0.04544767737388611, 0.11256495863199234, 0.45981869101524353, -0.24196603894233704, 0.0767643079161644, 0.2858804762363434, -0.13011081516742706, 0.07015643268823624, -0.36212095618247986, -0.17070722579956055, -0.26530250906944275, 0.10153081268072128, 0.10833421349525452, 0.04718950390815735, 0.0031762607395648956, -0.019687235355377197, -0.07955925166606903, -0.09573692828416824, 0.018483493477106094, -0.37602147459983826, -0.09828230738639832, 0.15372037887573242, -0.06953984498977661, 0.042393676936626434, 0.1204356849193573, 0.20509082078933716, 0.04669853299856186, -0.06932900846004486, 0.3236751854419708, 0.12583908438682556, 0.07482598721981049, -0.15220221877098083, -0.1602611094713211, 0.007074996829032898, 0.22868439555168152, 0.13647808134555817, -0.061574846506118774, 0.16175299882888794, -0.2716623544692993, -0.13609035313129425, 0.24081096053123474, 0.14597073197364807, 0.07060438394546509, -0.15793375670909882, 0.11631898581981659, 0.1445292979478836, -0.11241652071475983, 0.0010165717685595155, 0.20374628901481628, 0.05654653534293175, 0.12797576189041138, 0.15175676345825195, 0.16456353664398193, 0.45382338762283325, -0.2142958790063858, 0.03648329898715019, 0.1422017514705658, -0.37099379301071167, 0.1153041422367096, -0.13379782438278198, -0.025103095918893814, 0.024294983595609665, 0.15677112340927124, -0.009453043341636658, 0.21674707531929016, -0.34670186042785645, 0.28668445348739624, 0.31906232237815857, -0.03136848658323288, 0.05513685569167137, 0.19727519154548645, -0.0020193923264741898, -0.16688501834869385, 0.2794349789619446, 0.07130007445812225, 0.3188152611255646, 0.055345989763736725, 0.8951668739318848, -0.24943022429943085, -0.43798670172691345, 0.08847992867231369, 0.39543670415878296, 0.02461971715092659, -0.22906754910945892, 0.10322855412960052, 0.084576316177845, -0.3302844166755676, 0.09990309178829193, 0.041744425892829895, -0.12678389251232147, 0.6448745727539062, -0.08233334124088287, 0.14766773581504822, -0.15032027661800385, -0.2330583930015564, 0.32927998900413513, 0.17817766964435577, -0.11302264034748077, 0.013508854433894157, 0.09902052581310272, -0.10855227708816528, -0.1989578753709793, 0.527677595615387, 0.2439907193183899, 0.055927880108356476, -0.4059010148048401, 0.00702453451231122, 0.11586368083953857, 0.14389602839946747, -0.09145300090312958, 0.10737727582454681, 0.4503695070743561, -0.14932677149772644, 0.21223922073841095, 0.03401566296815872, -0.06872883439064026, -0.09852837026119232, 0.03311321511864662, -0.4560571014881134, -0.36476901173591614, 0.4568905532360077, 0.10242567211389542, -0.08989337086677551, 0.04291718453168869, 0.30867838859558105, -0.628458559513092, -0.18854054808616638, 0.29875844717025757, -0.1300969272851944, -0.07465974241495132, -0.22611477971076965, 0.08871960639953613, 0.07111936807632446, 0.5859483480453491, 0.21885713934898376, 0.35041651129722595, -0.40086090564727783, -0.09598878771066666, -0.609104335308075, -0.20071977376937866, 0.11933475732803345, -0.08799085021018982, -0.2137720286846161, 0.1967514157295227, -0.10631408542394638, 0.2746655344963074, -0.18999354541301727, 0.11173814535140991, 0.18231835961341858, 0.01936548575758934, -0.41033774614334106, 0.1525806486606598, 0.09875093400478363, 0.01135221216827631, 0.3067416250705719, -0.09572168439626694, -0.17017212510108948, 0.08457695692777634, -0.0756981372833252, -0.0860518142580986, -0.051421210169792175, 0.27112457156181335, 0.17782875895500183, 0.045393869280815125, 0.0555262416601181, 0.46028658747673035, -0.049751028418540955, -0.14651796221733093, -0.020975682884454727, -0.021389121189713478, -0.39996084570884705, -0.1774977147579193, -0.08906099200248718, 0.17003083229064941, -0.33483150601387024, 0.24291063845157623, -0.04528380557894707, -0.10608487576246262, 0.12069037556648254, 0.012443037703633308, -0.13162119686603546, -0.03240388631820679, 0.038303010165691376, 0.18737438321113586, 0.2284655123949051, 0.7360841035842896, 0.037493519484996796, 0.08689604699611664, -0.09599626064300537, -0.05491320788860321, 0.054358989000320435, -0.09335968643426895, -0.23394657671451569, -0.17539344727993011, 0.07947886735200882, 0.09167403727769852, 0.07787400484085083, -0.6713756322860718, -0.3535116910934448, 0.010525344870984554, 0.010181475430727005, 0.07833042740821838, 0.7260475158691406, 0.07257996499538422, -0.15513959527015686, -0.15334586799144745, -0.35617542266845703, 0.06008957326412201, -0.27169039845466614, 0.18187470734119415, -0.4164087176322937 ]
https://github.com/huggingface/datasets/issues/217
Multi-task dataset mixing
@zphang is having different batch sizes per task actually helpful? Would be interesting to know as it's not something I've come across as a technique used by any MTL papers.
It seems like many of the best performing models on the GLUE benchmark make some use of multitask learning (simultaneous training on multiple tasks). The [T5 paper](https://arxiv.org/pdf/1910.10683.pdf) highlights multiple ways of mixing the tasks together during finetuning: - **Examples-proportional mixing** - sample from tasks proportionally to their dataset size - **Equal mixing** - sample uniformly from each task - **Temperature-scaled mixing** - The generalized approach used by multilingual BERT which uses a temperature T, where the mixing rate of each task is raised to the power 1/T and renormalized. When T=1 this is equivalent to equal mixing, and becomes closer to equal mixing with increasing T. Following this discussion https://github.com/huggingface/transformers/issues/4340 in [transformers](https://github.com/huggingface/transformers), @enzoampil suggested that the `nlp` library might be a better place for this functionality. Some method for combining datasets could be implemented ,e.g. ``` dataset = nlp.load_multitask(['squad','imdb','cnn_dm'], temperature=2.0, ...) ``` We would need a few additions: - Method of identifying the tasks - how can we support adding a string to each task as an identifier: e.g. 'summarisation: '? - Method of combining the metrics - a standard approach is to use the specific metric for each task and add them together for a combined score. It would be great to support common use cases such as pretraining on the GLUE benchmark before fine-tuning on each GLUE task in turn. I'm willing to write bits/most of this I just need some guidance on the interface and other library details so I can integrate it properly.
30
Multi-task dataset mixing It seems like many of the best performing models on the GLUE benchmark make some use of multitask learning (simultaneous training on multiple tasks). The [T5 paper](https://arxiv.org/pdf/1910.10683.pdf) highlights multiple ways of mixing the tasks together during finetuning: - **Examples-proportional mixing** - sample from tasks proportionally to their dataset size - **Equal mixing** - sample uniformly from each task - **Temperature-scaled mixing** - The generalized approach used by multilingual BERT which uses a temperature T, where the mixing rate of each task is raised to the power 1/T and renormalized. When T=1 this is equivalent to equal mixing, and becomes closer to equal mixing with increasing T. Following this discussion https://github.com/huggingface/transformers/issues/4340 in [transformers](https://github.com/huggingface/transformers), @enzoampil suggested that the `nlp` library might be a better place for this functionality. Some method for combining datasets could be implemented ,e.g. ``` dataset = nlp.load_multitask(['squad','imdb','cnn_dm'], temperature=2.0, ...) ``` We would need a few additions: - Method of identifying the tasks - how can we support adding a string to each task as an identifier: e.g. 'summarisation: '? - Method of combining the metrics - a standard approach is to use the specific metric for each task and add them together for a combined score. It would be great to support common use cases such as pretraining on the GLUE benchmark before fine-tuning on each GLUE task in turn. I'm willing to write bits/most of this I just need some guidance on the interface and other library details so I can integrate it properly. @zphang is having different batch sizes per task actually helpful? Would be interesting to know as it's not something I've come across as a technique used by any MTL papers.
[ -0.09692887961864471, -0.46223822236061096, -0.0760456770658493, 0.017249803990125656, -0.3047632575035095, 0.0528642013669014, 0.226321280002594, 0.06489580869674683, 0.27689722180366516, -0.11790013313293457, -0.17251290380954742, 0.20421764254570007, -0.2584698796272278, 0.4444769024848938, 0.4080321788787842, -0.4105132520198822, 0.014126874506473541, -0.27331578731536865, -0.25001662969589233, 0.39677590131759644, 0.050551772117614746, 0.08481970429420471, -0.1709938645362854, 0.06342427432537079, -0.24067097902297974, -0.1341984122991562, -0.3394119441509247, 0.08957769721746445, 0.13409417867660522, 0.02739265188574791, 0.14990729093551636, 0.30572983622550964, 0.02706930786371231, 0.1451936513185501, -0.00011703866766765714, -0.10317928344011307, 0.22462137043476105, -0.054975725710392, 0.12323489785194397, -0.0387541800737381, 0.11764127761125565, -0.4690674841403961, 0.0013241618871688843, -0.09075818955898285, 0.2729417383670807, 0.19904983043670654, 0.24085485935211182, 0.05113805830478668, 0.3071526288986206, -0.30362698435783386, 0.08462028205394745, 0.271697998046875, -0.23924721777439117, 0.3131468892097473, -0.04093211144208908, -0.033362820744514465, 0.06543521583080292, 0.2598796486854553, 0.7037144899368286, -0.5388662815093994, 0.003553323447704315, 0.11596091091632843, 0.028103893622756004, -0.02197105810046196, 0.13279148936271667, -0.07223249226808548, -0.21833214163780212, -0.24540337920188904, -0.3490262031555176, 0.20940139889717102, -0.05419541150331497, -0.08674026280641556, -0.21434016525745392, -0.5842270851135254, -0.018568269908428192, 0.05227048695087433, -0.31707507371902466, 0.13627249002456665, -0.2085554003715515, -0.07745735347270966, -0.1931690126657486, -0.10364751517772675, -0.01954668015241623, 0.10086852312088013, 0.3700277507305145, 0.5515706539154053, 0.05214434489607811, 0.16430138051509857, 0.3478100299835205, 0.022836875170469284, -0.10691871494054794, -0.24575912952423096, 0.29284948110580444, 0.12592396140098572, -0.3565702438354492, -0.3113481402397156, 0.18628370761871338, -0.23718029260635376, 0.28580811619758606, 0.0631817877292633, 0.1380455195903778, 0.03951588645577431, -0.10145311802625656, 0.20296582579612732, 0.38573935627937317, 0.09933806955814362, -0.08045058697462082, -0.14554139971733093, 0.02665834315121174, -0.16947391629219055, 0.1910661906003952, 0.15759555995464325, 0.1533169001340866, -0.08121438324451447, -0.4698132574558258, -0.13959717750549316, -0.24632875621318817, 0.12414968013763428, -0.1801920235157013, -0.554835319519043, -0.06913355737924576, -0.20435191690921783, 0.027279213070869446, -0.12810105085372925, -0.28909316658973694, 0.13472631573677063, -0.08762959390878677, 0.21490195393562317, -0.13607236742973328, 0.07361090183258057, -0.04291790351271629, 0.061250075697898865, -0.470269113779068, -0.10850999504327774, 0.27244043350219727, 0.18824970722198486, 0.07662270218133926, 0.11884968727827072, -0.045111283659935, 0.11725537478923798, 0.32785680890083313, 0.015721958130598068, -0.005908668041229248, 0.01859438046813011, 0.21519258618354797, -0.308508962392807, -0.09372980892658234, 0.262773334980011, -0.3823622465133667, -0.04949568212032318, -0.22280055284500122, -0.17501117289066315, 0.15861152112483978, 0.013053431175649166, -0.13337033987045288, -0.24674829840660095, -0.5358598828315735, 0.6971768736839294, 0.029376715421676636, -0.06125446408987045, -0.15396341681480408, 0.24740588665008545, -0.21105197072029114, -0.1469140499830246, 0.08802849799394608, 0.06152290105819702, -0.07157960534095764, -0.3473767638206482, -0.039844706654548645, -0.08777202665805817, 0.016240134835243225, 0.33794859051704407, -0.19569702446460724, 0.2697053551673889, 0.076231449842453, 0.12101170420646667, 0.29569026827812195, -0.4761195778846741, -0.042139843106269836, 0.3908204436302185, -0.029753156006336212, 0.3563413918018341, 0.12997479736804962, 0.2487468123435974, -0.0191982239484787, -0.17189933359622955, 0.27164512872695923, 0.9539660215377808, -0.4012840688228607, 0.0324300080537796, -0.1284986287355423, -0.42581915855407715, 0.5435497760772705, 0.28876739740371704, 0.09507355093955994, -0.29588910937309265, -0.08115845173597336, 0.053537651896476746, 0.1472446620464325, 0.1120334267616272, 0.12126486748456955, -0.06787142157554626, -0.3955807387828827, 0.023652970790863037, -0.19152051210403442, -0.10706000030040741, -0.4190426170825958, -0.00041092559695243835, -0.09667220711708069, 0.28670579195022583, 0.3450791835784912, -0.07108825445175171, 0.30363762378692627, -0.31333640217781067, -0.08020159602165222, -0.3391847610473633, 0.0749739408493042, -0.11293675005435944, 0.008267756551504135, -0.3027856647968292, -0.06041385978460312, 0.32145026326179504, 0.13272088766098022, -0.15883857011795044, -0.4637386202812195, 0.2198479026556015, -0.06655056774616241, 0.07297059148550034, -0.0066607072949409485, 0.6013064980506897, -0.2415635883808136, -0.09500297904014587, 0.1452833116054535, 0.2679246664047241, -0.2993798851966858, 0.23697514832019806, 0.27708882093429565, 0.2627179026603699, 0.21460765600204468, 0.0410454235970974, 0.186382457613945, -0.10739439725875854, -0.06513869017362595, -0.2171696424484253, -0.07372737675905228, 0.46423763036727905, -0.1360437124967575, 0.4431438148021698, -0.04130027815699577, -0.05664603412151337, -0.23851507902145386, -0.042692314833402634, -0.20221032202243805, 0.3690052926540375, 0.3462928533554077, -0.1895817667245865, 0.2973547875881195, -0.10137496888637543, -0.33274319767951965, 0.1553507298231125, 0.11895054578781128, 0.0932098776102066, 0.05557159334421158, -0.012828506529331207, -0.038455620408058167, -0.29319968819618225, -0.14500245451927185, 0.3609074354171753, 0.699756920337677, 0.2174215465784073, 0.18000739812850952, 0.027522271499037743, -0.1548193097114563, -0.13634833693504333, 0.015728309750556946, 0.17999501526355743, -0.043210696429014206, 0.17419366538524628, 0.020082462579011917, 0.04398099333047867, 0.058782488107681274, -0.13080276548862457, 0.14341118931770325, -0.20149366557598114, -0.04728185385465622, 0.007520489394664764, -0.22752933204174042, -0.6512377262115479, -0.31002503633499146, 0.024343425408005714, -0.32361966371536255, -0.24214600026607513, 0.07698960602283478, -0.004847235977649689, -0.14679482579231262, 0.0919545367360115, 0.19153814017772675, 0.6404310464859009, -0.4318292737007141, -0.17510570585727692, -0.024588700383901596, -0.25083768367767334, -0.15639057755470276, 0.09369340538978577, 0.46999073028564453, 0.2440197616815567, 0.44433051347732544, 0.2816878855228424, -0.06684471666812897, 0.1097664013504982, -0.36882150173187256, 0.02247537113726139, -0.23586659133434296, 0.251466304063797, 0.136166051030159, -0.2515864372253418, 0.19181489944458008, -0.33062976598739624, -0.059501126408576965, -0.10711829364299774, -0.08023780584335327, -0.14460337162017822, -0.01794414222240448, 0.06091875955462456, -0.2195330709218979, -0.16286632418632507, -0.6563558578491211, -0.4274235665798187, 0.2951756715774536, -0.23542112112045288, 0.09205694496631622, 0.04310017079114914, -0.276621013879776, 0.16108955442905426, -0.11539863795042038, 0.005505351349711418, -0.11043901741504669, -0.12340087443590164, -0.06430764496326447, -0.3830778896808624, -0.14868462085723877, -0.37940168380737305, -0.03276289626955986, 0.2191525250673294, -0.013218371197581291, -0.0656774565577507, -0.1386011689901352, 0.09972265362739563, -0.19404835999011993, 0.07510460913181305, 0.2888379693031311, 0.07945188879966736, -0.31947988271713257, 0.13742321729660034, -0.041642047464847565, -0.24689285457134247, 0.16785097122192383, 0.3495776057243347, 0.4843295216560364, 0.1840914487838745, 0.02253079041838646, 0.16180559992790222, 0.7138550281524658, 0.239263653755188, 0.07667449861764908, 0.12391620874404907, 0.2778072655200958, -0.027644578367471695, 0.1562187671661377, -0.1513793170452118, 0.3467991054058075, -0.1360124945640564, 0.45005136728286743, 0.12394856661558151, 0.21397531032562256, -0.1946699470281601, -0.26239997148513794, -0.008469093590974808, -0.26845166087150574, -0.17034803330898285, 0.255932092666626, -0.2555622160434723, 0.04936492443084717, -0.06720180809497833, -0.47130438685417175, -0.26852768659591675, -0.04071056842803955, -0.045010365545749664, 0.31340062618255615, -0.0762307271361351, 0.19009234011173248, -0.3363174796104431, -0.13906915485858917, -0.4542549252510071, 0.14053981006145477, 0.06395065784454346, 0.3106074035167694, -0.047482892870903015, -0.06475036591291428, -0.08007976412773132, 0.16260194778442383, 0.6325609087944031, -0.4828881621360779, -0.14991675317287445, 0.014306731522083282, 0.10305801033973694, -0.08692970871925354, -0.17500200867652893, -0.24498909711837769, 0.004538880195468664, 0.4797530770301819, 0.37007442116737366, -0.32539162039756775, -0.28024470806121826, 0.2273399382829666, -0.2051386684179306, -0.050978049635887146, -0.220647394657135, -0.22033609449863434, -0.12599390745162964, -0.09524399042129517, 0.07316459715366364, 0.17764054238796234, 0.24161876738071442, -0.15876364707946777, 0.18788035213947296, -0.02065848745405674, 0.25508928298950195, 0.19459637999534607, -0.011927956715226173, -0.0912821888923645, 0.25237229466438293, 0.11457358300685883, -0.0004396773874759674, -0.07985725998878479, -0.24603679776191711, 0.07207070291042328, -0.10971221327781677, 0.19002974033355713, 0.3117482662200928, -0.0549163855612278, 0.6821690201759338, 0.07290910929441452, 0.3269188106060028, 0.23021727800369263, -0.09951499849557877, 0.04348214715719223, -0.19248521327972412, 0.13781516253948212, 0.17686666548252106, 0.22169725596904755, -0.1892232894897461, -0.22393698990345, 0.5282298922538757, 0.3682231903076172, -0.0214327871799469, 0.3635043203830719, -0.6384043097496033, -0.29502901434898376, 0.2439962476491928, 0.0369793176651001, 0.6201885938644409, 0.0012557469308376312, 0.33115482330322266, -0.0282987579703331, -0.340457022190094, 0.5145267844200134, -0.3430122137069702, 0.17477676272392273, -0.06714116036891937, -0.13017205893993378, 0.022789372131228447, -0.10523968935012817, -0.03440075367689133, 0.31344175338745117, -0.2745055854320526, 0.3359679877758026, 0.4565872550010681, -0.2524256110191345, -0.12036873400211334, 0.5019974708557129, -0.0001570824533700943, -0.35710808634757996, -0.026803933084011078, 0.025746572762727737, -0.2453850954771042, 0.13652050495147705, -0.22022759914398193, -0.22735685110092163, 0.22728374600410461, 0.1529851257801056, -0.3146013021469116, 0.04300158470869064, -0.02222518064081669, 0.19116635620594025, 0.2674506902694702, 0.00953376293182373, 0.2880604863166809, -0.2060195803642273, -0.11121542751789093, -0.1548609882593155, -0.06647628545761108, 0.09129424393177032, -0.11013195663690567, 0.09081567078828812, 0.08554162830114365, -0.18792079389095306, 0.4651317298412323, -0.08558349311351776, -0.04987651854753494, -0.23923134803771973, 0.24239212274551392, -0.391568660736084, -0.22097691893577576, 0.20412610471248627, 0.1991000473499298, 0.23439127206802368, -0.3496173918247223, 0.5967296957969666, 0.11620330810546875, 0.06519195437431335, 0.0013031084090471268, 0.17796757817268372, -0.17881262302398682, 0.5910221934318542, -0.31430861353874207, -0.02504666894674301, 0.04015835002064705, -0.06175992637872696, -0.031307145953178406, -0.43369683623313904, -0.07607471197843552, 0.29465752840042114, 0.14731958508491516, 0.04011376202106476, 0.0717894658446312, 0.06344707310199738, -0.024860333651304245, 0.006633440963923931, -0.08219350874423981, -0.27645114064216614, 0.21565356850624084, 0.21482639014720917, 0.17682859301567078, 0.24704355001449585, -0.06320645660161972, -0.29218414425849915, -0.11573314666748047, 0.46784722805023193, -0.03052598610520363, 0.21433059871196747, -0.1443570852279663, 0.4293503165245056, 0.480225533246994, 0.5306455492973328, -0.2060043066740036, 0.08634322881698608, 0.11954713612794876, 0.09168437123298645, 0.4120357036590576, -0.11530032008886337, 0.016234464943408966, 0.3485608398914337, -0.200530543923378, 0.06389838457107544, -0.347944051027298, -0.11550633609294891, -0.2380969077348709, 0.128065824508667, 0.1398666501045227, 0.024181067943572998, 0.04037737846374512, -0.10755063593387604, -0.05919573828577995, -0.025316104292869568, 0.017238501459360123, -0.32934048771858215, -0.06795459985733032, 0.10453107208013535, -0.02551421895623207, 0.01560269296169281, 0.09028755128383636, 0.3568161129951477, 0.07297831773757935, -0.09809115529060364, 0.34946924448013306, 0.13369262218475342, 0.1295308917760849, -0.1518435776233673, -0.21585910022258759, -0.04204395413398743, 0.2591366171836853, 0.1729898452758789, -0.14142653346061707, 0.1201445460319519, -0.23301871120929718, -0.12351947277784348, 0.2052645981311798, 0.23218874633312225, 0.07684152573347092, -0.12201055884361267, 0.13692429661750793, 0.06485417485237122, -0.04432746395468712, -0.004679386038333178, 0.18947117030620575, 0.0924200639128685, 0.02123848721385002, 0.1604592204093933, 0.1898421049118042, 0.4918516278266907, -0.26601529121398926, 0.025715593248605728, 0.0839061364531517, -0.34789299964904785, 0.10506041347980499, -0.15809708833694458, -0.05164244771003723, 0.019299570471048355, 0.19063133001327515, -0.053772564977407455, 0.1364479959011078, -0.2919660806655884, 0.3588843047618866, 0.25594598054885864, 0.05868477374315262, -0.0133417509496212, 0.13964234292507172, -0.03930829092860222, -0.20438037812709808, 0.33291298151016235, 0.001501031219959259, 0.32949620485305786, 0.02272762358188629, 0.8239642977714539, -0.22451309859752655, -0.4310365617275238, 0.1678001880645752, 0.4035533368587494, 0.022630784660577774, -0.2492283284664154, 0.12385393679141998, 0.1080019399523735, -0.3104623258113861, 0.1577768474817276, 0.0090821273624897, -0.11470073461532593, 0.6107501983642578, -0.0843513011932373, 0.16867603361606598, -0.1848054826259613, -0.23177754878997803, 0.36075064539909363, 0.06150548905134201, -0.11912189424037933, 0.03143569454550743, 0.01417350023984909, -0.08980655670166016, -0.13866424560546875, 0.5110019445419312, 0.19786596298217773, 0.08152882754802704, -0.3625515103340149, -0.08625282347202301, 0.12035287916660309, 0.23069040477275848, -0.13933008909225464, 0.12428075075149536, 0.5147858262062073, -0.18943609297275543, 0.22482991218566895, -0.03141585737466812, -0.027002042159438133, -0.07785665988922119, 0.054518766701221466, -0.46020692586898804, -0.43992307782173157, 0.43461477756500244, 0.04109268635511398, -0.11985716223716736, 0.057086117565631866, 0.3916846215724945, -0.6262604594230652, -0.21965140104293823, 0.3360736668109894, -0.15085969865322113, -0.08783324062824249, -0.24786460399627686, 0.05479946732521057, 0.06175881624221802, 0.6547295451164246, 0.26866522431373596, 0.3616768419742584, -0.3674936890602112, -0.13172873854637146, -0.5774883031845093, -0.18853667378425598, 0.09687356650829315, -0.026181578636169434, -0.28758949041366577, 0.23825041949748993, -0.11827681213617325, 0.21939164400100708, -0.1281169354915619, 0.10893597453832626, 0.17496992647647858, 0.07805285602807999, -0.4262298345565796, 0.11324408650398254, 0.0924319326877594, 0.08165384083986282, 0.27569741010665894, -0.08105078339576721, -0.1450606733560562, 0.03609949350357056, -0.12800265848636627, -0.1489005833864212, -0.09801290929317474, 0.3259686827659607, 0.22520887851715088, 0.09227710962295532, 0.035139575600624084, 0.5028657913208008, 0.028904706239700317, -0.1926548033952713, -0.07568603754043579, 0.004324294626712799, -0.35453516244888306, -0.16355302929878235, -0.058457810431718826, 0.1632128655910492, -0.4496607184410095, 0.36051589250564575, 0.04926616698503494, -0.11139588803052902, 0.09741523861885071, 0.02194962650537491, -0.09885644912719727, -0.09097587317228317, 0.08899503201246262, 0.15876546502113342, 0.2819911241531372, 0.7396941184997559, 0.01803230494260788, 0.04638172686100006, -0.09544368833303452, 0.010542245581746101, -0.019519507884979248, -0.07139910012483597, -0.2192036509513855, -0.20084281265735626, 0.07530681788921356, -0.03850205987691879, 0.08397120237350464, -0.6680576801300049, -0.40913695096969604, 0.03187597543001175, 0.04847065359354019, 0.07243165373802185, 0.7247983813285828, 0.05399929732084274, -0.18400439620018005, -0.11854596436023712, -0.3672237992286682, 0.031231218948960304, -0.2750069200992584, 0.16170796751976013, -0.3264085650444031 ]
https://github.com/huggingface/datasets/issues/217
Multi-task dataset mixing
> @zphang is having different batch sizes per task actually helpful? Would be interesting to know as it's not something I've come across as a technique used by any MTL papers. I think having different batch sizes per task is particularly helpful in some scenarios where each task has different amount of data. For example, the problem I'm currently facing is one task has tens of thousands of samples while one task has a couple hundreds. I think in this case different batch size could help. But if using the same batch size is a lot simpler to implement, I guess it makes sense to go with that.
It seems like many of the best performing models on the GLUE benchmark make some use of multitask learning (simultaneous training on multiple tasks). The [T5 paper](https://arxiv.org/pdf/1910.10683.pdf) highlights multiple ways of mixing the tasks together during finetuning: - **Examples-proportional mixing** - sample from tasks proportionally to their dataset size - **Equal mixing** - sample uniformly from each task - **Temperature-scaled mixing** - The generalized approach used by multilingual BERT which uses a temperature T, where the mixing rate of each task is raised to the power 1/T and renormalized. When T=1 this is equivalent to equal mixing, and becomes closer to equal mixing with increasing T. Following this discussion https://github.com/huggingface/transformers/issues/4340 in [transformers](https://github.com/huggingface/transformers), @enzoampil suggested that the `nlp` library might be a better place for this functionality. Some method for combining datasets could be implemented ,e.g. ``` dataset = nlp.load_multitask(['squad','imdb','cnn_dm'], temperature=2.0, ...) ``` We would need a few additions: - Method of identifying the tasks - how can we support adding a string to each task as an identifier: e.g. 'summarisation: '? - Method of combining the metrics - a standard approach is to use the specific metric for each task and add them together for a combined score. It would be great to support common use cases such as pretraining on the GLUE benchmark before fine-tuning on each GLUE task in turn. I'm willing to write bits/most of this I just need some guidance on the interface and other library details so I can integrate it properly.
108
Multi-task dataset mixing It seems like many of the best performing models on the GLUE benchmark make some use of multitask learning (simultaneous training on multiple tasks). The [T5 paper](https://arxiv.org/pdf/1910.10683.pdf) highlights multiple ways of mixing the tasks together during finetuning: - **Examples-proportional mixing** - sample from tasks proportionally to their dataset size - **Equal mixing** - sample uniformly from each task - **Temperature-scaled mixing** - The generalized approach used by multilingual BERT which uses a temperature T, where the mixing rate of each task is raised to the power 1/T and renormalized. When T=1 this is equivalent to equal mixing, and becomes closer to equal mixing with increasing T. Following this discussion https://github.com/huggingface/transformers/issues/4340 in [transformers](https://github.com/huggingface/transformers), @enzoampil suggested that the `nlp` library might be a better place for this functionality. Some method for combining datasets could be implemented ,e.g. ``` dataset = nlp.load_multitask(['squad','imdb','cnn_dm'], temperature=2.0, ...) ``` We would need a few additions: - Method of identifying the tasks - how can we support adding a string to each task as an identifier: e.g. 'summarisation: '? - Method of combining the metrics - a standard approach is to use the specific metric for each task and add them together for a combined score. It would be great to support common use cases such as pretraining on the GLUE benchmark before fine-tuning on each GLUE task in turn. I'm willing to write bits/most of this I just need some guidance on the interface and other library details so I can integrate it properly. > @zphang is having different batch sizes per task actually helpful? Would be interesting to know as it's not something I've come across as a technique used by any MTL papers. I think having different batch sizes per task is particularly helpful in some scenarios where each task has different amount of data. For example, the problem I'm currently facing is one task has tens of thousands of samples while one task has a couple hundreds. I think in this case different batch size could help. But if using the same batch size is a lot simpler to implement, I guess it makes sense to go with that.
[ -0.15286575257778168, -0.48510828614234924, -0.08828994631767273, 0.043888963758945465, -0.30230462551116943, 0.02592114359140396, 0.2686052620410919, 0.09124553203582764, 0.27223002910614014, -0.07411883771419525, -0.16743957996368408, 0.12118728458881378, -0.25727319717407227, 0.4499775171279907, 0.36345240473747253, -0.40620937943458557, 0.030634284019470215, -0.27301183342933655, -0.2287892997264862, 0.4066848158836365, 0.036920465528964996, 0.051403194665908813, -0.137498140335083, 0.0486457496881485, -0.238493412733078, -0.15247578918933868, -0.3196730613708496, 0.05558018386363983, 0.19754453003406525, 0.04465021565556526, 0.11467397212982178, 0.3015509247779846, 0.04731500893831253, 0.15700817108154297, -0.00011640702723525465, -0.08212176710367203, 0.22991545498371124, -0.020130062475800514, 0.07947656512260437, -0.01903510093688965, 0.13090059161186218, -0.5154119729995728, -0.03749982267618179, -0.10425823926925659, 0.2734788954257965, 0.21356011927127838, 0.26597341895103455, 0.03253569453954697, 0.2544079124927521, -0.2947161793708801, 0.09862419962882996, 0.32211819291114807, -0.2970365881919861, 0.2996924817562103, -0.01034991443157196, -0.014742672443389893, 0.05328195542097092, 0.2629300355911255, 0.6999953985214233, -0.4993148744106293, 0.0012700706720352173, 0.1606195867061615, 0.027350695803761482, 0.02736625261604786, 0.1041136384010315, -0.0575503334403038, -0.1475430727005005, -0.22595560550689697, -0.30797508358955383, 0.24689757823944092, -0.08192532509565353, -0.06607409566640854, -0.23695679008960724, -0.6513189673423767, -0.007323514670133591, 0.04993259161710739, -0.35086432099342346, 0.186945378780365, -0.18846583366394043, -0.09649725258350372, -0.1584608107805252, -0.05361092835664749, -0.007652446627616882, 0.06648094952106476, 0.37570908665657043, 0.5052565932273865, 0.01342935673892498, 0.17369207739830017, 0.3467085659503937, 0.0312122143805027, -0.1065138429403305, -0.2447149157524109, 0.2853570580482483, 0.1045849397778511, -0.3702588379383087, -0.2722155451774597, 0.16172203421592712, -0.26430824398994446, 0.2712615430355072, 0.023664478212594986, 0.17093440890312195, 0.02165546640753746, -0.0688682347536087, 0.17013123631477356, 0.40976253151893616, 0.11251695454120636, -0.09519117325544357, -0.145538330078125, 0.04109377786517143, -0.17762072384357452, 0.1831091046333313, 0.20799759030342102, 0.14859335124492645, -0.13576635718345642, -0.465638130903244, -0.08216284215450287, -0.25629347562789917, 0.1493210643529892, -0.20054662227630615, -0.5421448349952698, -0.04683919623494148, -0.23184703290462494, -0.009074724279344082, -0.11373718827962875, -0.2909083664417267, 0.14404447376728058, -0.11999674141407013, 0.2271474301815033, -0.16093464195728302, 0.07435351610183716, -0.057899072766304016, 0.004685636609792709, -0.4462984800338745, -0.11514382809400558, 0.26921966671943665, 0.16773761808872223, 0.0834866389632225, 0.07069849222898483, -0.06737266480922699, 0.11798185110092163, 0.2836702764034271, -0.004395810887217522, -0.03297992795705795, 0.03960166126489639, 0.22117283940315247, -0.27689069509506226, -0.13525152206420898, 0.3050743341445923, -0.3997877538204193, -0.022525228559970856, -0.2343408167362213, -0.19428615272045135, 0.1870928257703781, 0.02074543945491314, -0.12868982553482056, -0.22317025065422058, -0.597320556640625, 0.6830012202262878, 0.06751767545938492, -0.04652390256524086, -0.15667062997817993, 0.17821677029132843, -0.19402389228343964, -0.17894037067890167, 0.011591808870434761, 0.08312395215034485, -0.06165267154574394, -0.34613507986068726, 0.0005160337314009666, -0.11840608716011047, 0.015425950288772583, 0.3973838686943054, -0.19246169924736023, 0.28655678033828735, 0.0944521501660347, 0.12006482481956482, 0.2664084732532501, -0.47417473793029785, -0.04938250780105591, 0.450799822807312, -0.019094843417406082, 0.35060662031173706, 0.1672837883234024, 0.2602221965789795, 0.002020529005676508, -0.17475345730781555, 0.23725688457489014, 0.8971970081329346, -0.4060547351837158, 0.08358025550842285, -0.13938407599925995, -0.42281457781791687, 0.524034857749939, 0.3101250231266022, 0.10594968497753143, -0.31048205494880676, -0.0698603019118309, 0.04622732847929001, 0.1368226706981659, 0.09810609370470047, 0.12557391822338104, -0.057763129472732544, -0.43257105350494385, -0.0024139806628227234, -0.19192568957805634, -0.06833674013614655, -0.4964831471443176, 0.003233306109905243, -0.15541405975818634, 0.2653369903564453, 0.373635470867157, -0.05858956649899483, 0.3415444791316986, -0.324783593416214, -0.06826752424240112, -0.31966689229011536, 0.0744403675198555, -0.09567207098007202, 0.039285968989133835, -0.31979072093963623, -0.062063224613666534, 0.32378122210502625, 0.12032066285610199, -0.1444503217935562, -0.4255874454975128, 0.19232185184955597, -0.03772451728582382, 0.08093011379241943, 0.016697600483894348, 0.5754878520965576, -0.2911286950111389, -0.12075061351060867, 0.10930135846138, 0.248029887676239, -0.28013452887535095, 0.21860867738723755, 0.2109754979610443, 0.2668551206588745, 0.25490421056747437, 0.12753504514694214, 0.20218487083911896, -0.12013940513134003, -0.09720582515001297, -0.21976569294929504, -0.03213950991630554, 0.4492032527923584, -0.09584471583366394, 0.4679342806339264, -0.0414218008518219, -0.10826462507247925, -0.22867213189601898, -0.042063530534505844, -0.2095153033733368, 0.3518669903278351, 0.33880454301834106, -0.15275812149047852, 0.3212239146232605, -0.0875377431511879, -0.32107317447662354, 0.1529051810503006, 0.09710445255041122, 0.07538937032222748, 0.05987489968538284, -0.015521794557571411, -0.04942784458398819, -0.2951931953430176, -0.16740067303180695, 0.3495875597000122, 0.7306098937988281, 0.22298818826675415, 0.1998186707496643, -0.0016513951122760773, -0.16649790108203888, -0.16180917620658875, -0.007260628044605255, 0.19259777665138245, -0.01902145892381668, 0.20632889866828918, 0.026077628135681152, 0.01070338673889637, 0.04755667597055435, -0.14258570969104767, 0.12812796235084534, -0.19433872401714325, -0.039022039622068405, 0.0012260358780622482, -0.2181592583656311, -0.6630985140800476, -0.3449248671531677, 0.03966885060071945, -0.2795930504798889, -0.22961686551570892, 0.09637473523616791, 0.006200794130563736, -0.20221710205078125, 0.09744203835725784, 0.2544862627983093, 0.655793309211731, -0.4205454885959625, -0.12200189381837845, -0.01181187853217125, -0.24652494490146637, -0.18224334716796875, 0.08044205605983734, 0.47870954871177673, 0.19717226922512054, 0.4226318895816803, 0.2554948329925537, -0.07075636088848114, 0.08091475814580917, -0.35180628299713135, 0.025701191276311874, -0.24721653759479523, 0.24243251979351044, 0.11621244251728058, -0.2350531965494156, 0.19698375463485718, -0.3383502960205078, -0.031751930713653564, -0.11529599875211716, -0.0735267922282219, -0.18286484479904175, -0.022766128182411194, 0.0458272323012352, -0.21434544026851654, -0.14710208773612976, -0.6761800050735474, -0.42367222905158997, 0.32888054847717285, -0.2589176297187805, 0.08312942832708359, 0.06865009665489197, -0.2425621747970581, 0.1101028099656105, -0.12082329392433167, 0.02017715573310852, -0.10749766230583191, -0.13586492836475372, -0.10517063736915588, -0.3834722936153412, -0.1640852391719818, -0.44173648953437805, -0.051664870232343674, 0.22958382964134216, 0.027339929714798927, -0.1045602411031723, -0.13729728758335114, 0.09618314355611801, -0.22930759191513062, 0.07182276993989944, 0.30790337920188904, 0.051607295870780945, -0.3560309410095215, 0.13332125544548035, -0.012045960873365402, -0.21837826073169708, 0.1295350342988968, 0.377812922000885, 0.49136725068092346, 0.14920885860919952, 0.024773743003606796, 0.12455214560031891, 0.7539138197898865, 0.2017935812473297, 0.0599365308880806, 0.10636767745018005, 0.24882210791110992, -0.016944054514169693, 0.13584597408771515, -0.11611049622297287, 0.39773064851760864, -0.13664832711219788, 0.4263160228729248, 0.17098771035671234, 0.1997518539428711, -0.2030820995569229, -0.19826564192771912, -0.04472164064645767, -0.26162445545196533, -0.18588171899318695, 0.2822234034538269, -0.22426682710647583, 0.05260063707828522, -0.08051105588674545, -0.43985515832901, -0.28615298867225647, -0.030419807881116867, -0.060673732310533524, 0.27411526441574097, -0.09199471026659012, 0.18165303766727448, -0.32036033272743225, -0.15978293120861053, -0.460895299911499, 0.1459832489490509, 0.08875942975282669, 0.3017212152481079, -0.012457281351089478, -0.08777345716953278, -0.07358966767787933, 0.20257088541984558, 0.6373813152313232, -0.4487628936767578, -0.16017550230026245, -0.005617372691631317, 0.0606977641582489, -0.13317324221134186, -0.21247689425945282, -0.25151169300079346, -0.002701651304960251, 0.4625548720359802, 0.39103272557258606, -0.3513210117816925, -0.29208049178123474, 0.19622744619846344, -0.16269098222255707, -0.05591229349374771, -0.23227806389331818, -0.24113132059574127, -0.1025426983833313, -0.1081378310918808, 0.1177348718047142, 0.15848408639431, 0.2345430850982666, -0.16833285987377167, 0.16883888840675354, -0.03416433185338974, 0.21754106879234314, 0.17560815811157227, 0.002339504659175873, -0.0844694972038269, 0.2803274393081665, 0.1175706684589386, -0.01879534125328064, -0.05235341191291809, -0.189988374710083, 0.08903033286333084, -0.16537925601005554, 0.1914771944284439, 0.3219178020954132, -0.03718515485525131, 0.649306058883667, 0.09719648957252502, 0.33552631735801697, 0.19747313857078552, -0.05717597156763077, 0.1065637469291687, -0.20644018054008484, 0.16744405031204224, 0.16320130228996277, 0.19573591649532318, -0.2039264440536499, -0.2500295042991638, 0.5089163184165955, 0.4079139232635498, -0.005740009248256683, 0.3332829177379608, -0.6443984508514404, -0.25987711548805237, 0.23563873767852783, 0.007103249430656433, 0.5431046485900879, 0.005898609757423401, 0.378231406211853, -0.04366715997457504, -0.3120464086532593, 0.48079153895378113, -0.32994788885116577, 0.1669136881828308, -0.04985654354095459, -0.14279934763908386, 0.07683595269918442, -0.09651868790388107, -0.05870387703180313, 0.34325259923934937, -0.21262717247009277, 0.344549298286438, 0.49613136053085327, -0.22482198476791382, -0.17989365756511688, 0.47908782958984375, -0.012490138411521912, -0.37976929545402527, 0.0026408061385154724, 0.02990087866783142, -0.23055510222911835, 0.16258473694324493, -0.21588551998138428, -0.20611120760440826, 0.22478926181793213, 0.1379055380821228, -0.30796048045158386, -0.02638467215001583, -0.0560450442135334, 0.1925181746482849, 0.2610127031803131, -0.01716383546590805, 0.2552068829536438, -0.2469896376132965, -0.11747229099273682, -0.174363374710083, -0.059393368661403656, 0.05346479266881943, -0.09174815565347672, 0.11164942383766174, 0.07159263640642166, -0.1961524933576584, 0.46401143074035645, -0.07571986317634583, -0.021193958818912506, -0.22428232431411743, 0.2308785319328308, -0.36356252431869507, -0.22265037894248962, 0.20926351845264435, 0.14877191185951233, 0.23195640742778778, -0.3144299387931824, 0.5743621587753296, 0.08713361620903015, 0.0779513418674469, 0.0109791811555624, 0.15689340233802795, -0.12796731293201447, 0.6329964399337769, -0.2941184937953949, -0.07013033330440521, -0.006362888962030411, -0.08990366011857986, 0.015856614336371422, -0.44756075739860535, -0.061900101602077484, 0.2750471830368042, 0.13799352943897247, 0.028833195567131042, 0.09607582539319992, 0.046323079615831375, -0.07321356236934662, 0.024421898648142815, -0.05657602474093437, -0.2628387212753296, 0.2195618897676468, 0.24102342128753662, 0.18731316924095154, 0.27172955870628357, -0.06187174469232559, -0.26336970925331116, -0.10183049738407135, 0.4638351798057556, -0.013536043465137482, 0.24274997413158417, -0.09981775283813477, 0.4236372113227844, 0.4712510406970978, 0.5466592311859131, -0.20703819394111633, 0.0737062320113182, 0.13231579959392548, 0.09527606517076492, 0.39160582423210144, -0.0591544508934021, 0.041305068880319595, 0.4014018177986145, -0.18922556936740875, 0.0892094224691391, -0.3487740755081177, -0.1275126338005066, -0.22972320020198822, 0.12747307121753693, 0.1570383906364441, 0.03752801567316055, 0.05876715108752251, -0.08815523982048035, -0.01338888704776764, -0.04495660588145256, 0.06431639194488525, -0.29070746898651123, -0.07052232325077057, 0.08662549406290054, 0.019151918590068817, 0.014970529824495316, 0.12828963994979858, 0.414523184299469, 0.07437862455844879, -0.08982524275779724, 0.32783445715904236, 0.13821065425872803, 0.15724606812000275, -0.12971696257591248, -0.21711282432079315, -0.08144568651914597, 0.2716127038002014, 0.17165398597717285, -0.16723260283470154, 0.0935874879360199, -0.21851012110710144, -0.08033670485019684, 0.18466323614120483, 0.2425147145986557, 0.07674798369407654, -0.12868650257587433, 0.17664822936058044, 0.0730798989534378, -0.023402545601129532, -0.0032804289367049932, 0.13657613098621368, 0.09948023408651352, 0.039154622703790665, 0.20603732764720917, 0.21171116828918457, 0.5047960877418518, -0.23348037898540497, 0.016525432467460632, 0.06762894988059998, -0.3135482668876648, 0.09969282150268555, -0.1387840062379837, -0.0161946602165699, 0.028217868879437447, 0.22626309096813202, -0.08678148686885834, 0.154657781124115, -0.305961012840271, 0.3273349702358246, 0.2416606843471527, 0.035662151873111725, -0.02388067916035652, 0.12478077411651611, -0.0372345894575119, -0.20662923157215118, 0.3375938832759857, -0.028999879956245422, 0.3151315748691559, 0.009087435901165009, 0.7983554005622864, -0.23808079957962036, -0.39609912037849426, 0.15436750650405884, 0.4071558117866516, 0.00845678336918354, -0.2650131285190582, 0.10717970132827759, 0.1345321536064148, -0.26112693548202515, 0.2086912840604782, -0.04789629206061363, -0.09806711971759796, 0.5933932065963745, -0.06555326282978058, 0.17357710003852844, -0.16121476888656616, -0.26063621044158936, 0.34757840633392334, 0.00839996337890625, -0.12483486533164978, 0.05821096524596214, -0.02960394322872162, -0.09513780474662781, -0.10379599034786224, 0.5061763525009155, 0.1873367577791214, 0.09599210321903229, -0.3453288972377777, -0.12983417510986328, 0.14326082170009613, 0.2453797608613968, -0.18993611633777618, 0.11646655201911926, 0.49969834089279175, -0.199612095952034, 0.26975739002227783, -0.02563299983739853, -0.051957618445158005, -0.040929172188043594, 0.04421677440404892, -0.4889710545539856, -0.4163161516189575, 0.4167270064353943, 0.033293142914772034, -0.09751616418361664, 0.05186831206083298, 0.38108402490615845, -0.6517303586006165, -0.19317138195037842, 0.30628690123558044, -0.18151597678661346, -0.0895547941327095, -0.2417757213115692, 0.05955841392278671, 0.039202094078063965, 0.7016066312789917, 0.2924352288246155, 0.32732293009757996, -0.3832716643810272, -0.0800289511680603, -0.5715477466583252, -0.17670148611068726, 0.018201561644673347, 0.000059835612773895264, -0.2943791449069977, 0.2641197443008423, -0.12518590688705444, 0.22162345051765442, -0.09406143426895142, 0.08814559876918793, 0.1416027545928955, 0.07060173898935318, -0.4327941834926605, 0.09113350510597229, 0.0509612075984478, 0.08235723525285721, 0.3042581081390381, -0.07882440090179443, -0.13369067013263702, 0.05160800367593765, -0.13522690534591675, -0.17467191815376282, -0.0830981656908989, 0.3104025423526764, 0.21442171931266785, 0.10870121419429779, 0.014889413490891457, 0.4607810974121094, 0.05151580274105072, -0.18575307726860046, -0.12474861741065979, -0.02235606126487255, -0.34483301639556885, -0.13399282097816467, -0.05004854127764702, 0.170867457985878, -0.44279056787490845, 0.36101558804512024, 0.045741479843854904, -0.12132151424884796, 0.11556079983711243, 0.03411440923810005, -0.050387777388095856, -0.0671817883849144, 0.12175960093736649, 0.12575605511665344, 0.27909234166145325, 0.6992523670196533, 0.026893671602010727, 0.020200518891215324, -0.08986475318670273, -0.02438339591026306, -0.0330640971660614, -0.052581679075956345, -0.204563170671463, -0.21896348893642426, 0.09583879262208939, -0.060808561742305756, 0.10704444348812103, -0.6410899758338928, -0.38680341839790344, 0.05448384955525398, 0.06030578911304474, 0.058845195919275284, 0.6827630400657654, 0.07146171480417252, -0.2238549292087555, -0.11899261176586151, -0.37256911396980286, 0.041019320487976074, -0.2961885929107666, 0.15026132762432098, -0.3555030822753906 ]
https://github.com/huggingface/datasets/issues/217
Multi-task dataset mixing
I think that instead of proportional to size sampling you should specify weights or probabilities for drawing a batch from each dataset. We should also ensure that the smaller datasets are repeated so that the encoder layer doesn't overtrain on the largest dataset.
It seems like many of the best performing models on the GLUE benchmark make some use of multitask learning (simultaneous training on multiple tasks). The [T5 paper](https://arxiv.org/pdf/1910.10683.pdf) highlights multiple ways of mixing the tasks together during finetuning: - **Examples-proportional mixing** - sample from tasks proportionally to their dataset size - **Equal mixing** - sample uniformly from each task - **Temperature-scaled mixing** - The generalized approach used by multilingual BERT which uses a temperature T, where the mixing rate of each task is raised to the power 1/T and renormalized. When T=1 this is equivalent to equal mixing, and becomes closer to equal mixing with increasing T. Following this discussion https://github.com/huggingface/transformers/issues/4340 in [transformers](https://github.com/huggingface/transformers), @enzoampil suggested that the `nlp` library might be a better place for this functionality. Some method for combining datasets could be implemented ,e.g. ``` dataset = nlp.load_multitask(['squad','imdb','cnn_dm'], temperature=2.0, ...) ``` We would need a few additions: - Method of identifying the tasks - how can we support adding a string to each task as an identifier: e.g. 'summarisation: '? - Method of combining the metrics - a standard approach is to use the specific metric for each task and add them together for a combined score. It would be great to support common use cases such as pretraining on the GLUE benchmark before fine-tuning on each GLUE task in turn. I'm willing to write bits/most of this I just need some guidance on the interface and other library details so I can integrate it properly.
43
Multi-task dataset mixing It seems like many of the best performing models on the GLUE benchmark make some use of multitask learning (simultaneous training on multiple tasks). The [T5 paper](https://arxiv.org/pdf/1910.10683.pdf) highlights multiple ways of mixing the tasks together during finetuning: - **Examples-proportional mixing** - sample from tasks proportionally to their dataset size - **Equal mixing** - sample uniformly from each task - **Temperature-scaled mixing** - The generalized approach used by multilingual BERT which uses a temperature T, where the mixing rate of each task is raised to the power 1/T and renormalized. When T=1 this is equivalent to equal mixing, and becomes closer to equal mixing with increasing T. Following this discussion https://github.com/huggingface/transformers/issues/4340 in [transformers](https://github.com/huggingface/transformers), @enzoampil suggested that the `nlp` library might be a better place for this functionality. Some method for combining datasets could be implemented ,e.g. ``` dataset = nlp.load_multitask(['squad','imdb','cnn_dm'], temperature=2.0, ...) ``` We would need a few additions: - Method of identifying the tasks - how can we support adding a string to each task as an identifier: e.g. 'summarisation: '? - Method of combining the metrics - a standard approach is to use the specific metric for each task and add them together for a combined score. It would be great to support common use cases such as pretraining on the GLUE benchmark before fine-tuning on each GLUE task in turn. I'm willing to write bits/most of this I just need some guidance on the interface and other library details so I can integrate it properly. I think that instead of proportional to size sampling you should specify weights or probabilities for drawing a batch from each dataset. We should also ensure that the smaller datasets are repeated so that the encoder layer doesn't overtrain on the largest dataset.
[ -0.10336668789386749, -0.4331933557987213, -0.027864672243595123, -0.01403665542602539, -0.27077287435531616, 0.0822167918086052, 0.15497642755508423, 0.07477486878633499, 0.32949647307395935, -0.09033000469207764, -0.1661006659269333, 0.2605520486831665, -0.19721530377864838, 0.40196022391319275, 0.3530556857585907, -0.4648924171924591, -0.053618915379047394, -0.2005530595779419, -0.3664027452468872, 0.33402013778686523, 0.015646010637283325, 0.08674682676792145, -0.17946526408195496, 0.019073016941547394, -0.2719653248786926, -0.11051727086305618, -0.3949352502822876, 0.10839449614286423, 0.11043389141559601, -0.013924011960625648, 0.18760831654071808, 0.34423497319221497, 0.06541887670755386, 0.05401674285531044, -0.00011230398376937956, -0.12137189507484436, 0.21756793558597565, -0.09191787242889404, 0.13065965473651886, -0.0005825459957122803, 0.07844524830579758, -0.47050148248672485, -0.007731467019766569, -0.1358964741230011, 0.20232906937599182, 0.17046032845973969, 0.2904420495033264, 0.008269548416137695, 0.3929944634437561, -0.3308928608894348, 0.09726561605930328, 0.25307080149650574, -0.15323832631111145, 0.26218828558921814, -0.13102507591247559, -0.020230889320373535, 0.1017855778336525, 0.25316572189331055, 0.6352716684341431, -0.5347997546195984, -0.03683314472436905, 0.10696175694465637, 0.02565372921526432, 0.03074450045824051, 0.1634945273399353, -0.08338353782892227, -0.31913092732429504, -0.33498695492744446, -0.4021613299846649, 0.23699498176574707, -0.1488322913646698, -0.0839301124215126, -0.24520668387413025, -0.5854567885398865, 0.001667339587584138, 0.016477061435580254, -0.31532588601112366, 0.11600272357463837, -0.20372939109802246, -0.0343727208673954, -0.25125622749328613, -0.1469612717628479, -0.043442726135253906, 0.14494946599006653, 0.3343852162361145, 0.5547484755516052, 0.08374909311532974, 0.1610543131828308, 0.3695605993270874, 0.057474277913570404, -0.1263224333524704, -0.3117973804473877, 0.2927979826927185, 0.10796713829040527, -0.36915966868400574, -0.35502633452415466, 0.13920533657073975, -0.20298579335212708, 0.29498887062072754, 0.10299152880907059, 0.02505478262901306, 0.0836869478225708, -0.07621752470731735, 0.25609761476516724, 0.37171345949172974, 0.0963822454214096, -0.08300179988145828, -0.06299019604921341, 0.0029554255306720734, -0.06848351657390594, 0.14342038333415985, 0.1766899824142456, 0.12384520471096039, 0.003417561762034893, -0.47943657636642456, -0.12967413663864136, -0.2586895525455475, 0.07780969142913818, -0.1598019152879715, -0.47638756036758423, -0.06893068552017212, -0.11731679737567902, 0.029384110122919083, -0.08602476865053177, -0.2983444333076477, 0.11831583827733994, -0.09277272969484329, 0.23073965311050415, -0.08128520846366882, 0.037010837346315384, -0.04833842068910599, 0.07137148827314377, -0.4358135163784027, -0.05891089886426926, 0.2667332887649536, 0.1206187754869461, 0.10626691579818726, 0.16640615463256836, 0.013973575085401535, 0.15166383981704712, 0.3776475787162781, 0.016560815274715424, 0.005950085818767548, -0.06493014097213745, 0.213298499584198, -0.3031079173088074, 0.0006734691560268402, 0.170768603682518, -0.36183273792266846, -0.14570260047912598, -0.19035446643829346, -0.16295646131038666, 0.09470047056674957, 0.017279066145420074, -0.19424951076507568, -0.26328498125076294, -0.4468870460987091, 0.7332517504692078, 0.026847533881664276, -0.017140211537480354, -0.1802850067615509, 0.26064813137054443, -0.22355856001377106, -0.06396770477294922, 0.20860502123832703, 0.12475033849477768, -0.016909798607230186, -0.3514383137226105, -0.04679834097623825, -0.014809887856245041, 0.034520238637924194, 0.36155641078948975, -0.22166256606578827, 0.12773318588733673, 0.0617261603474617, 0.1461114138364792, 0.21800923347473145, -0.4322616457939148, -0.09815088659524918, 0.4060337245464325, -0.01648135855793953, 0.373661607503891, 0.11828519403934479, 0.1948014348745346, 0.1255992352962494, -0.1956961303949356, 0.24780875444412231, 1.040097951889038, -0.4225599467754364, 0.022192733362317085, -0.1649433672428131, -0.388113409280777, 0.5052059888839722, 0.3628339171409607, 0.09461891651153564, -0.32067832350730896, -0.16311651468276978, -0.026616118848323822, 0.11877502501010895, 0.04143583029508591, 0.10451069474220276, -0.009235326200723648, -0.4052465558052063, -0.022486895322799683, -0.22144325077533722, -0.07816140353679657, -0.3308980166912079, 0.01529315859079361, -0.08741351217031479, 0.3274637758731842, 0.34056562185287476, -0.10581568628549576, 0.28967157006263733, -0.2984875738620758, -0.13058088719844818, -0.3386107385158539, 0.11447083950042725, -0.039518535137176514, 0.07346709072589874, -0.23656025528907776, -0.06718138605356216, 0.3598695695400238, 0.08904331177473068, -0.13852685689926147, -0.5096871852874756, 0.30903860926628113, -0.057400695979595184, 0.06364447623491287, -0.025106972083449364, 0.5965575575828552, -0.1937594711780548, -0.12890702486038208, 0.14488205313682556, 0.2248515486717224, -0.3346213698387146, 0.19492913782596588, 0.33768749237060547, 0.17342883348464966, 0.20787854492664337, -0.08267918229103088, 0.1719578206539154, -0.029911499470472336, -0.09459717571735382, -0.140488862991333, -0.030395641922950745, 0.5003795623779297, -0.11950474977493286, 0.4435100555419922, -0.018835976719856262, 0.015261964872479439, -0.26150983572006226, -0.0925573855638504, -0.2165372371673584, 0.359439879655838, 0.33664119243621826, -0.19295236468315125, 0.3607347011566162, -0.05211404711008072, -0.35946547985076904, 0.14874409139156342, 0.20372146368026733, 0.0842023491859436, 0.0460316427052021, 0.020731665194034576, -0.10165790468454361, -0.2789614796638489, -0.10182226449251175, 0.46157994866371155, 0.5798780918121338, 0.27897539734840393, 0.19102510809898376, 0.002939388155937195, -0.2511986196041107, -0.08015953749418259, 0.03535611927509308, 0.21586602926254272, -0.0584864616394043, 0.14054574072360992, 0.024648284539580345, 0.009310044348239899, 0.010679304599761963, -0.11853790283203125, 0.14682985842227936, -0.18777833878993988, -0.014902740716934204, 0.06336317956447601, -0.19838844239711761, -0.6163861751556396, -0.3052626848220825, -0.015071467496454716, -0.351580411195755, -0.2869994342327118, 0.1372048258781433, -0.0037928782403469086, -0.13886816799640656, 0.16575367748737335, 0.12699659168720245, 0.5480087995529175, -0.42024490237236023, -0.1703026443719864, -0.023589935153722763, -0.23749881982803345, -0.12512105703353882, 0.10783214867115021, 0.4728635549545288, 0.26112571358680725, 0.4312514066696167, 0.28129127621650696, -0.03624286502599716, 0.12175840139389038, -0.34444937109947205, 0.04084812104701996, -0.29362672567367554, 0.25403276085853577, 0.011808298528194427, -0.20614658296108246, 0.13463911414146423, -0.4294757544994354, -0.06051990017294884, -0.019378837198019028, -0.05335002392530441, -0.02874264121055603, -0.02822071500122547, 0.032595906406641006, -0.17166388034820557, -0.20089277625083923, -0.6588307619094849, -0.45629560947418213, 0.2835221290588379, -0.2002888172864914, 0.09491517394781113, 0.02516014128923416, -0.23395344614982605, 0.08987858146429062, -0.16715097427368164, -0.0019511738792061806, -0.12760621309280396, -0.12098295986652374, 0.08369533717632294, -0.35820797085762024, -0.16718332469463348, -0.4726530611515045, -0.1242692843079567, 0.24180200695991516, -0.07113933563232422, -0.07343529909849167, -0.18778817355632782, 0.07646555453538895, -0.19489260017871857, 0.07409600913524628, 0.26539066433906555, 0.10548796504735947, -0.2660581171512604, 0.1051512211561203, 0.0029675066471099854, -0.1324979066848755, 0.21769118309020996, 0.34571194648742676, 0.4796200096607208, 0.1502300500869751, 0.11335107684135437, 0.19090737402439117, 0.6792358160018921, 0.32960784435272217, 0.007965035736560822, 0.21351243555545807, 0.3103107810020447, 0.024074092507362366, 0.19754564762115479, -0.21085034310817719, 0.3423008620738983, -0.11590626835823059, 0.45432013273239136, 0.10699506849050522, 0.15114691853523254, -0.2443636804819107, -0.24342291057109833, 0.024328581988811493, -0.20640799403190613, -0.17803598940372467, 0.2593959867954254, -0.2264910340309143, 0.020161166787147522, -0.0977022796869278, -0.36491405963897705, -0.2355722337961197, -0.05439361557364464, -0.03128255531191826, 0.22833658754825592, 0.011614404618740082, 0.1722327321767807, -0.35312849283218384, -0.10165917128324509, -0.4612162709236145, 0.2046675980091095, 0.05774327740073204, 0.3017750382423401, -0.019986651837825775, -0.08469346910715103, -0.12924368679523468, 0.12709149718284607, 0.5680521130561829, -0.47282981872558594, -0.22094787657260895, -0.025383235886693, 0.09025244414806366, -0.09211952984333038, -0.1057271808385849, -0.2197125256061554, -0.025454295799136162, 0.4199252724647522, 0.30624207854270935, -0.36397260427474976, -0.2779257893562317, 0.268292635679245, -0.16463105380535126, -0.07220415025949478, -0.14969615638256073, -0.2126787155866623, -0.13832366466522217, -0.17088103294372559, 0.07758360356092453, 0.12965136766433716, 0.19336842000484467, -0.13969509303569794, 0.16703517735004425, -0.10889357328414917, 0.26031094789505005, 0.18591800332069397, 0.05234590545296669, -0.02758112922310829, 0.19997982680797577, 0.17190313339233398, 0.05351277440786362, -0.10656839609146118, -0.2357197105884552, 0.12169594317674637, -0.03250052407383919, 0.07200061529874802, 0.297609806060791, 0.03904150798916817, 0.6938974857330322, 0.04260299354791641, 0.36705511808395386, 0.2250312864780426, -0.0647599846124649, 0.08746980130672455, -0.2181842029094696, 0.13360820710659027, 0.22997215390205383, 0.20788469910621643, -0.1668775975704193, -0.22111447155475616, 0.5431398749351501, 0.2985457181930542, -0.009611442685127258, 0.3315671384334564, -0.5390051007270813, -0.25116539001464844, 0.2967568039894104, 0.040164075791835785, 0.6300413012504578, -0.007101073861122131, 0.29389312863349915, -0.03298879787325859, -0.33714455366134644, 0.571072518825531, -0.3307279944419861, 0.1919955313205719, -0.1401994377374649, -0.24169810116291046, -0.0027917642146348953, -0.08570365607738495, -0.07936584204435349, 0.2763815224170685, -0.33719733357429504, 0.3691788911819458, 0.4814932942390442, -0.24805790185928345, -0.10458698868751526, 0.5050848126411438, -0.0564587339758873, -0.37266087532043457, -0.11116708815097809, 0.06115524470806122, -0.27586716413497925, 0.09509238600730896, -0.11868691444396973, -0.3008027672767639, 0.2708377242088318, 0.12162342667579651, -0.24231138825416565, 0.1643853485584259, -0.05043303221464157, 0.1845228523015976, 0.2530387043952942, 0.008702218532562256, 0.27064087986946106, -0.1624804586172104, -0.08966290950775146, -0.11695238947868347, -0.07923786342144012, 0.11518153548240662, -0.14977115392684937, 0.012844124808907509, 0.1199052482843399, -0.20245908200740814, 0.48927128314971924, -0.009572913870215416, -0.13599509000778198, -0.21550869941711426, 0.3113105297088623, -0.38764190673828125, -0.17851828038692474, 0.10875006765127182, 0.18113860487937927, 0.22955532371997833, -0.3597273826599121, 0.5780021548271179, 0.131809264421463, 0.0273011215031147, 0.03078712895512581, 0.1418282687664032, -0.25124576687812805, 0.5130008459091187, -0.2759881317615509, -0.03809575363993645, 0.04208789020776749, 0.007354080677032471, -0.08804551512002945, -0.35103800892829895, -0.03188414126634598, 0.2833530604839325, 0.1292305737733841, 0.02155664563179016, 0.06551889330148697, 0.17462120950222015, -0.07396015524864197, -0.06540045142173767, -0.1322672963142395, -0.31944817304611206, 0.15650337934494019, 0.0759357139468193, 0.19611187279224396, 0.16131971776485443, -0.07628901302814484, -0.2127539962530136, -0.21801772713661194, 0.5112919807434082, 0.02117210067808628, 0.2578119933605194, -0.1816394329071045, 0.30822017788887024, 0.38870686292648315, 0.569747269153595, -0.25568699836730957, 0.11726142466068268, 0.055238187313079834, 0.06974662840366364, 0.4610333740711212, -0.202373206615448, 0.043634023517370224, 0.28928154706954956, -0.14841927587985992, 0.06235484778881073, -0.34086963534355164, -0.14281435310840607, -0.2346566915512085, 0.09880518913269043, 0.1511794924736023, -0.01935718022286892, 0.009457831270992756, -0.06798812747001648, -0.09655886888504028, -0.11638079583644867, 0.013010833412408829, -0.43350881338119507, -0.0681890994310379, 0.11058999598026276, -0.0371808223426342, -0.04546302556991577, 0.07459382712841034, 0.23766061663627625, 0.0012455135583877563, -0.020070776343345642, 0.3473861813545227, 0.13781407475471497, 0.132697194814682, -0.1667904257774353, -0.2762276232242584, -0.012613922357559204, 0.2735832929611206, 0.16343948245048523, -0.0712222084403038, 0.10352084785699844, -0.24374090135097504, -0.08736544102430344, 0.2628617286682129, 0.2063612937927246, 0.07711721956729889, -0.1726028025150299, 0.1514471471309662, 0.11271852254867554, -0.07894755899906158, -0.0010416165459901094, 0.20892123878002167, 0.07174242287874222, 0.08645108342170715, 0.17023275792598724, 0.15795163810253143, 0.42820554971694946, -0.2442440539598465, -0.0075552379712462425, 0.10386922955513, -0.343697726726532, 0.14427989721298218, -0.07468461990356445, -0.016899045556783676, -0.058343734592199326, 0.1164390817284584, -0.04267486557364464, 0.22477805614471436, -0.28217148780822754, 0.2502269744873047, 0.3058215379714966, 0.009968684986233711, -0.042124222964048386, 0.20314428210258484, 0.0018031783401966095, -0.22454126179218292, 0.33291497826576233, 0.08520065993070602, 0.3855227828025818, 0.048954494297504425, 0.8560094237327576, -0.24788756668567657, -0.46578696370124817, 0.03729666769504547, 0.4859010875225067, 0.04150962457060814, -0.27084752917289734, 0.1433793008327484, 0.09598035365343094, -0.4118726849555969, 0.16141964495182037, 0.0749848484992981, -0.1844242960214615, 0.6622333526611328, -0.05848844349384308, 0.16207730770111084, -0.1906120926141739, -0.17011350393295288, 0.36753860116004944, 0.14315131306648254, -0.13632848858833313, 0.0741906389594078, 0.13879111409187317, -0.10969726741313934, -0.1428728550672531, 0.5203857421875, 0.2531949579715729, 0.03317776694893837, -0.43458372354507446, -0.022072691470384598, 0.16021181643009186, 0.16314101219177246, -0.10989006608724594, 0.12353595346212387, 0.40921077132225037, -0.1710422933101654, 0.26817139983177185, 0.013457231223583221, -0.06439221650362015, -0.17000040411949158, -0.0010187998414039612, -0.4380500018596649, -0.3881179690361023, 0.41963958740234375, 0.11488717049360275, -0.05141609162092209, 0.019020799547433853, 0.24604013562202454, -0.6877147555351257, -0.23156936466693878, 0.3309127986431122, -0.13534854352474213, -0.10280858725309372, -0.2420898824930191, 0.07230079174041748, -0.01539137214422226, 0.6274798512458801, 0.2935222387313843, 0.33659467101097107, -0.40877270698547363, -0.15738654136657715, -0.5566298961639404, -0.14260321855545044, 0.10983350872993469, -0.1562364548444748, -0.2828678786754608, 0.238175168633461, -0.09585954993963242, 0.23567357659339905, -0.21898715198040009, 0.1331315040588379, 0.2130483239889145, 0.09838500618934631, -0.44912105798721313, 0.12216842174530029, 0.10001203417778015, 0.04428086057305336, 0.2792525589466095, -0.09820900857448578, -0.17155462503433228, 0.05372145399451256, -0.10322348773479462, -0.00814860314130783, -0.01687910035252571, 0.24552428722381592, 0.09913656115531921, 0.12277542799711227, 0.06725368648767471, 0.5235671997070312, -0.03352430462837219, -0.21915030479431152, 0.005622215569019318, -0.04023405537009239, -0.41220906376838684, -0.13063210248947144, -0.07771642506122589, 0.24383774399757385, -0.34682711958885193, 0.26382091641426086, -0.04028123617172241, -0.12499437481164932, 0.12921589612960815, 0.03196447715163231, -0.12255197763442993, -0.05809920281171799, 0.05785543471574783, 0.2173568457365036, 0.21858003735542297, 0.7121254205703735, 0.038261570036411285, 0.10666978359222412, -0.02891557663679123, -0.024188054725527763, 0.06974615901708603, -0.08190683275461197, -0.22436854243278503, -0.2049361765384674, 0.02550654113292694, 0.06479834765195847, 0.07541240006685257, -0.6441552639007568, -0.3265179395675659, 0.01160726323723793, 0.004460945725440979, 0.047522496432065964, 0.7026136517524719, 0.11499738693237305, -0.14029550552368164, -0.13398168981075287, -0.25808751583099365, -0.0005196705460548401, -0.3298358619213104, 0.20005013048648834, -0.3035803437232971 ]
https://github.com/huggingface/datasets/issues/217
Multi-task dataset mixing
Are there any references for people doing different batch sizes per task in the literature? I've only seen constant batch sizes with differing numbers of batches for each task which seems sufficient to prevent the impact of large datasets (Read 3.5.3 of the [T5 paper](https://arxiv.org/pdf/1910.10683.pdf) for example).
It seems like many of the best performing models on the GLUE benchmark make some use of multitask learning (simultaneous training on multiple tasks). The [T5 paper](https://arxiv.org/pdf/1910.10683.pdf) highlights multiple ways of mixing the tasks together during finetuning: - **Examples-proportional mixing** - sample from tasks proportionally to their dataset size - **Equal mixing** - sample uniformly from each task - **Temperature-scaled mixing** - The generalized approach used by multilingual BERT which uses a temperature T, where the mixing rate of each task is raised to the power 1/T and renormalized. When T=1 this is equivalent to equal mixing, and becomes closer to equal mixing with increasing T. Following this discussion https://github.com/huggingface/transformers/issues/4340 in [transformers](https://github.com/huggingface/transformers), @enzoampil suggested that the `nlp` library might be a better place for this functionality. Some method for combining datasets could be implemented ,e.g. ``` dataset = nlp.load_multitask(['squad','imdb','cnn_dm'], temperature=2.0, ...) ``` We would need a few additions: - Method of identifying the tasks - how can we support adding a string to each task as an identifier: e.g. 'summarisation: '? - Method of combining the metrics - a standard approach is to use the specific metric for each task and add them together for a combined score. It would be great to support common use cases such as pretraining on the GLUE benchmark before fine-tuning on each GLUE task in turn. I'm willing to write bits/most of this I just need some guidance on the interface and other library details so I can integrate it properly.
47
Multi-task dataset mixing It seems like many of the best performing models on the GLUE benchmark make some use of multitask learning (simultaneous training on multiple tasks). The [T5 paper](https://arxiv.org/pdf/1910.10683.pdf) highlights multiple ways of mixing the tasks together during finetuning: - **Examples-proportional mixing** - sample from tasks proportionally to their dataset size - **Equal mixing** - sample uniformly from each task - **Temperature-scaled mixing** - The generalized approach used by multilingual BERT which uses a temperature T, where the mixing rate of each task is raised to the power 1/T and renormalized. When T=1 this is equivalent to equal mixing, and becomes closer to equal mixing with increasing T. Following this discussion https://github.com/huggingface/transformers/issues/4340 in [transformers](https://github.com/huggingface/transformers), @enzoampil suggested that the `nlp` library might be a better place for this functionality. Some method for combining datasets could be implemented ,e.g. ``` dataset = nlp.load_multitask(['squad','imdb','cnn_dm'], temperature=2.0, ...) ``` We would need a few additions: - Method of identifying the tasks - how can we support adding a string to each task as an identifier: e.g. 'summarisation: '? - Method of combining the metrics - a standard approach is to use the specific metric for each task and add them together for a combined score. It would be great to support common use cases such as pretraining on the GLUE benchmark before fine-tuning on each GLUE task in turn. I'm willing to write bits/most of this I just need some guidance on the interface and other library details so I can integrate it properly. Are there any references for people doing different batch sizes per task in the literature? I've only seen constant batch sizes with differing numbers of batches for each task which seems sufficient to prevent the impact of large datasets (Read 3.5.3 of the [T5 paper](https://arxiv.org/pdf/1910.10683.pdf) for example).
[ -0.06431471556425095, -0.4659210741519928, -0.0846639946103096, -0.031063377857208252, -0.2937629818916321, 0.01426764577627182, 0.2748717665672302, -0.0015312731266021729, 0.32739585638046265, -0.08819630742073059, -0.14839375019073486, 0.10962080210447311, -0.16663530468940735, 0.43982675671577454, 0.3444584012031555, -0.36647915840148926, 0.03876936435699463, -0.2969396412372589, -0.27085351943969727, 0.38539087772369385, 0.03808390349149704, 0.04193151742219925, -0.1335429549217224, 0.08822564035654068, -0.28080806136131287, -0.263670414686203, -0.389708012342453, 0.034435272216796875, 0.13997460901737213, 0.05134958773851395, 0.23408912122249603, 0.30755171179771423, 0.048616692423820496, 0.27919328212738037, -0.000116871771751903, -0.08377687633037567, 0.23080995678901672, -0.019136469811201096, 0.11680746078491211, -0.0018158704042434692, 0.15380099415779114, -0.4783228635787964, 0.0054652756080031395, -0.11083623021841049, 0.27397099137306213, 0.1568046659231186, 0.25918158888816833, 0.1064637303352356, 0.28866514563560486, -0.34479543566703796, 0.09772244840860367, 0.27468037605285645, -0.21083909273147583, 0.22634686529636383, -0.11846128851175308, -0.014193281531333923, 0.07735418528318405, 0.26060986518859863, 0.7055603265762329, -0.5410467982292175, -0.0727655217051506, 0.07944506406784058, 0.04223538935184479, 0.011969608254730701, 0.109079509973526, -0.17149712145328522, -0.2628781795501709, -0.29751989245414734, -0.3295667767524719, 0.22085681557655334, -0.08587872236967087, -0.09882574528455734, -0.26016131043434143, -0.6264222264289856, -0.03642485663294792, 0.03155355155467987, -0.35461151599884033, 0.16949841380119324, -0.20453199744224548, -0.12913106381893158, -0.23460252583026886, -0.10024089366197586, -0.026420753449201584, 0.07539934664964676, 0.34746411442756653, 0.5395689606666565, 0.04197007417678833, 0.1272193193435669, 0.392680823802948, -0.03826451301574707, -0.08897186070680618, -0.27377158403396606, 0.2567123472690582, 0.13433672487735748, -0.3992004692554474, -0.2938932776451111, 0.15462562441825867, -0.26450982689857483, 0.3152869641780853, 0.08219605684280396, 0.08174648880958557, 0.051612332463264465, -0.14183247089385986, 0.19767320156097412, 0.40146902203559875, 0.1253281831741333, -0.09977998584508896, -0.11220297962427139, 0.04722472280263901, -0.1615312397480011, 0.21224713325500488, 0.18241623044013977, 0.14265817403793335, -0.13860507309436798, -0.5396949052810669, -0.167190819978714, -0.27625417709350586, 0.14143988490104675, -0.1807384192943573, -0.5744885802268982, -0.02044684998691082, -0.15083512663841248, 0.020509695634245872, -0.09436865895986557, -0.27212488651275635, 0.09609309583902359, -0.1183326244354248, 0.26906877756118774, -0.16005465388298035, 0.0736633762717247, -0.050521016120910645, 0.047113414853811264, -0.470763236284256, -0.10468724370002747, 0.2876492142677307, 0.1782878339290619, 0.09426695853471756, 0.18709877133369446, -0.03195849806070328, 0.08593219518661499, 0.30259808897972107, -0.061917468905448914, -0.05103825777769089, 0.03935439884662628, 0.24605855345726013, -0.2680259644985199, -0.08793482184410095, 0.24862845242023468, -0.37916016578674316, -0.05903405696153641, -0.23170942068099976, -0.1593208909034729, 0.15850894153118134, -0.0022805603221058846, -0.14439576864242554, -0.25043100118637085, -0.5782611966133118, 0.6736928820610046, 0.06236720085144043, -0.05668549984693527, -0.1603134274482727, 0.22042036056518555, -0.1436539590358734, -0.18698148429393768, 0.05995509773492813, 0.018209904432296753, -0.03283464536070824, -0.3329954147338867, 0.036641500890254974, -0.03524107486009598, 0.0035882368683815002, 0.43649613857269287, -0.18516041338443756, 0.2895737886428833, 0.0810089260339737, 0.12182940542697906, 0.2664521038532257, -0.442483514547348, -0.011515434831380844, 0.4173339009284973, 0.0503261536359787, 0.3307786285877228, 0.12340651452541351, 0.23189127445220947, 0.0442180261015892, -0.20737795531749725, 0.23588989675045013, 0.9741355776786804, -0.37452706694602966, 0.09668061882257462, -0.05804961547255516, -0.46580222249031067, 0.44119131565093994, 0.22587604820728302, 0.0897609293460846, -0.2925752103328705, -0.07390470057725906, -0.054093942046165466, 0.057377081364393234, 0.08964479714632034, 0.09594666212797165, 0.047745611518621445, -0.4209630787372589, 0.09648686647415161, -0.18344950675964355, -0.050520047545433044, -0.4460892677307129, -0.010563958436250687, -0.08277645707130432, 0.19561393558979034, 0.37465614080429077, -0.0908389687538147, 0.33623942732810974, -0.32630738615989685, -0.0925639420747757, -0.3413316607475281, 0.06611581146717072, -0.12174676358699799, 0.09767463803291321, -0.3077353239059448, 0.0007398650050163269, 0.3354282081127167, 0.09459492564201355, -0.10449371486902237, -0.4976730942726135, 0.17593207955360413, -0.03646043688058853, -0.008630284108221531, 0.05814827233552933, 0.5408449769020081, -0.19120103120803833, -0.08414304256439209, 0.10430676490068436, 0.2897186875343323, -0.26853427290916443, 0.23165203630924225, 0.31108585000038147, 0.26073741912841797, 0.21135874092578888, 0.11839261651039124, 0.2055726945400238, -0.10977345705032349, -0.09943678230047226, -0.2249297797679901, -0.1034712865948677, 0.4607521891593933, -0.1345929652452469, 0.5010107159614563, -0.029697533696889877, -0.07168619334697723, -0.18867124617099762, -0.017303388565778732, -0.1613265722990036, 0.4569720923900604, 0.33952561020851135, -0.17075659334659576, 0.32689812779426575, -0.09833316504955292, -0.35604292154312134, 0.05383627116680145, 0.022897493094205856, 0.05386418476700783, 0.08113516867160797, -0.008003424853086472, -0.030827470123767853, -0.29537659883499146, -0.12621411681175232, 0.3653465509414673, 0.6546181440353394, 0.22161802649497986, 0.2182418406009674, -0.061494380235672, -0.22549651563167572, -0.15221549570560455, -0.025874726474285126, 0.20214484632015228, 0.0066399178467690945, 0.1604982316493988, 0.026297766715288162, -0.005736810155212879, 0.08471231907606125, -0.10533823072910309, 0.11840683966875076, -0.22522172331809998, -0.08519234508275986, 0.005404327064752579, -0.22219166159629822, -0.6311866641044617, -0.30558812618255615, 0.015079687349498272, -0.30497002601623535, -0.23138801753520966, 0.03909887373447418, 0.07374659925699234, -0.11424040794372559, 0.08188249915838242, 0.21158559620380402, 0.6373744010925293, -0.43466469645500183, -0.10998254269361496, -0.03147672861814499, -0.24741168320178986, -0.14098471403121948, 0.06759561598300934, 0.46843379735946655, 0.2097017765045166, 0.46051234006881714, 0.3219374418258667, -0.10924193263053894, 0.11420051008462906, -0.32258516550064087, 0.0263376422226429, -0.20052964985370636, 0.24238109588623047, 0.04370476305484772, -0.15862460434436798, 0.17650486528873444, -0.33668428659439087, -0.07314326614141464, -0.06108463555574417, -0.05285275727510452, -0.173583984375, -0.07025713473558426, 0.05648811534047127, -0.14883610606193542, -0.10039708763360977, -0.6727868318557739, -0.39646652340888977, 0.338864266872406, -0.25696510076522827, 0.06550900638103485, 0.025421293452382088, -0.19426117837429047, 0.0753900557756424, -0.14416241645812988, -0.01773674041032791, -0.07496760785579681, -0.12288577854633331, -0.029145125299692154, -0.40287652611732483, -0.15951453149318695, -0.3732081949710846, -0.02167423814535141, 0.19834581017494202, 0.017058031633496284, -0.06768295168876648, -0.09868595004081726, 0.029117504134774208, -0.17894558608531952, 0.10958775132894516, 0.34813863039016724, 0.0832410529255867, -0.3999965786933899, 0.15140049159526825, -0.05563642829656601, -0.24908791482448578, 0.14666172862052917, 0.28592780232429504, 0.4913570284843445, 0.2199198603630066, 0.00894189067184925, 0.1551787555217743, 0.7662394642829895, 0.27302172780036926, 0.023623034358024597, 0.09859353303909302, 0.28743675351142883, 0.025504909455776215, 0.12757116556167603, -0.1188778281211853, 0.3374466598033905, -0.1756727695465088, 0.4366195797920227, 0.06794441491365433, 0.2040230929851532, -0.1605822592973709, -0.23380187153816223, -0.039527520537376404, -0.3257658779621124, -0.17143772542476654, 0.25072595477104187, -0.251766175031662, 0.07811936736106873, -0.14358147978782654, -0.43167394399642944, -0.29271504282951355, -0.016961311921477318, -0.06760825216770172, 0.3017231822013855, -0.08189832419157028, 0.2002985030412674, -0.33506569266319275, -0.1642792671918869, -0.38935890793800354, 0.17401209473609924, -0.0023738762829452753, 0.2998749315738678, -0.037796586751937866, -0.01426474004983902, -0.07898102700710297, 0.17510336637496948, 0.5862995386123657, -0.4357356131076813, -0.14293211698532104, -0.014258183538913727, 0.11169248819351196, -0.1409674882888794, -0.19628854095935822, -0.2515060305595398, 0.05307324603199959, 0.5074828267097473, 0.37952759861946106, -0.3611525297164917, -0.3168763816356659, 0.19735917448997498, -0.19273746013641357, -0.09322421252727509, -0.22613409161567688, -0.214060440659523, -0.16825449466705322, -0.07910825312137604, 0.14117686450481415, 0.13951663672924042, 0.15919172763824463, -0.23411111533641815, 0.1494751274585724, -0.07838379591703415, 0.28221163153648376, 0.17640630900859833, -0.01885521039366722, -0.07879483699798584, 0.24801988899707794, 0.10284997522830963, 0.01776893250644207, -0.08682429790496826, -0.16271840035915375, 0.037293918430805206, -0.13130182027816772, 0.15576869249343872, 0.2967388331890106, 0.013812440447509289, 0.6570736765861511, 0.10725042223930359, 0.4018985331058502, 0.2005978226661682, -0.11568441987037659, 0.056984804570674896, -0.19889172911643982, 0.12703098356723785, 0.23611566424369812, 0.24626249074935913, -0.22283661365509033, -0.24729757010936737, 0.5878693461418152, 0.3816872239112854, -0.05445446819067001, 0.40503641963005066, -0.6244816780090332, -0.26055198907852173, 0.23180074989795685, 0.02483312040567398, 0.5990926623344421, -0.013116590678691864, 0.29962223768234253, -0.07944004237651825, -0.35769349336624146, 0.45935410261154175, -0.31158745288848877, 0.1631147861480713, -0.07899953424930573, -0.08967972546815872, 0.07022011280059814, -0.1389349102973938, 0.01839734986424446, 0.2944929301738739, -0.23567292094230652, 0.37945184111595154, 0.4121047854423523, -0.2506568133831024, -0.15530094504356384, 0.47581762075424194, -0.034751422703266144, -0.3831040859222412, 0.05561252310872078, 0.02473704144358635, -0.2695634365081787, 0.1704663336277008, -0.21481585502624512, -0.20060256123542786, 0.23190662264823914, 0.16014240682125092, -0.352341890335083, 0.023305602371692657, -0.016126055270433426, 0.22780856490135193, 0.2794567048549652, -0.04916563257575035, 0.254829078912735, -0.1672864705324173, -0.10953880846500397, -0.1255609691143036, -0.03871753066778183, 0.10054418444633484, -0.11218158155679703, 0.03601546213030815, 0.038479093462228775, -0.17122679948806763, 0.4399472773075104, -0.05404641479253769, -0.08606433123350143, -0.2332591414451599, 0.22317643463611603, -0.29767680168151855, -0.2963246703147888, 0.1337806135416031, 0.12846256792545319, 0.15110766887664795, -0.31660470366477966, 0.5542101860046387, 0.16135238111019135, 0.09315451979637146, 0.007156864739954472, 0.16346314549446106, -0.1255706548690796, 0.6486724019050598, -0.3296869993209839, -0.010702371597290039, 0.031419526785612106, -0.0907801166176796, 0.006326436996459961, -0.4751661717891693, -0.05922221392393112, 0.2901133596897125, 0.11815179884433746, 0.04533185809850693, 0.09262419492006302, 0.0931679755449295, 0.026725612580776215, -0.010841802693903446, -0.10102447122335434, -0.25960028171539307, 0.17278273403644562, 0.1676546335220337, 0.18941734731197357, 0.19720380008220673, -0.05612839758396149, -0.2705433666706085, -0.10723812133073807, 0.49690455198287964, -0.01926988735795021, 0.21876302361488342, -0.11857272684574127, 0.3374300003051758, 0.49458256363868713, 0.5996089577674866, -0.19538438320159912, 0.09189911186695099, 0.15111742913722992, 0.09730413556098938, 0.41306936740875244, -0.0851140096783638, 0.015879685059189796, 0.35309091210365295, -0.20409716665744781, 0.03782406076788902, -0.2977031469345093, -0.11826485395431519, -0.19182094931602478, 0.11325041949748993, 0.12125415354967117, 0.04695986956357956, 0.02869981899857521, -0.14802229404449463, 0.009298518300056458, -0.051961466670036316, 0.061061251908540726, -0.25682729482650757, -0.07784250378608704, 0.1117902398109436, 0.00030389055609703064, 0.08506152033805847, 0.1450287103652954, 0.3739887773990631, 0.04396045580506325, -0.06393006443977356, 0.3479345440864563, 0.1078023761510849, 0.1781655102968216, -0.1582489162683487, -0.21071109175682068, -0.054249174892902374, 0.2973983883857727, 0.14296963810920715, -0.17916187644004822, 0.08633316308259964, -0.1817285418510437, -0.12257310748100281, 0.14351670444011688, 0.28632569313049316, 0.0899973064661026, -0.11031552404165268, 0.21582317352294922, 0.0614146962761879, 0.006081990897655487, 0.0023056138306856155, 0.17192576825618744, 0.10082116723060608, -0.0049416683614254, 0.19742107391357422, 0.17235061526298523, 0.43909555673599243, -0.27887028455734253, 0.029636427760124207, 0.09111051261425018, -0.342599093914032, 0.0973024070262909, -0.13354744017124176, -0.0017443075776100159, -0.021512094885110855, 0.2189323604106903, 0.003681859001517296, 0.14514589309692383, -0.3186526894569397, 0.34929803013801575, 0.2836127281188965, 0.04186563193798065, -0.03126385435461998, 0.16973179578781128, -0.13565288484096527, -0.23886267840862274, 0.2818862795829773, -0.007454439997673035, 0.2914682924747467, 0.0062576159834861755, 0.8371670842170715, -0.276074081659317, -0.40760013461112976, 0.11187409609556198, 0.4058806002140045, -0.00841420516371727, -0.2419513463973999, 0.05891583859920502, 0.13566043972969055, -0.21899600327014923, 0.18768537044525146, 0.005945499986410141, -0.1557210236787796, 0.6309080123901367, -0.086859330534935, 0.15201330184936523, -0.13946156203746796, -0.1847776472568512, 0.3204896152019501, 0.06872214376926422, -0.04573449492454529, 0.10238101333379745, -0.0006049647927284241, -0.08211421966552734, -0.13777047395706177, 0.5545238852500916, 0.27132320404052734, 0.05069400370121002, -0.39483267068862915, -0.05802139267325401, 0.12167699635028839, 0.1845167726278305, -0.09898947924375534, 0.12961947917938232, 0.45723700523376465, -0.21894438564777374, 0.21530203521251678, -0.01848744973540306, -0.03371856361627579, -0.06840449571609497, 0.03277299553155899, -0.46991345286369324, -0.35822203755378723, 0.4419860541820526, 0.03924233466386795, -0.15338733792304993, 0.09869425743818283, 0.35182324051856995, -0.6634213328361511, -0.22207625210285187, 0.39307528734207153, -0.155132457613945, -0.11853041499853134, -0.19786444306373596, 0.05703786015510559, 0.12376892566680908, 0.650640606880188, 0.3044007420539856, 0.3155856132507324, -0.3372248411178589, -0.15078045427799225, -0.5069012641906738, -0.2103443443775177, -0.015344873070716858, -0.04891471564769745, -0.3153477609157562, 0.2121831625699997, -0.13832029700279236, 0.16271893680095673, -0.12016826868057251, 0.09354384243488312, 0.22755834460258484, 0.18092110753059387, -0.4607580900192261, 0.1245461255311966, 0.09379161894321442, 0.10597734898328781, 0.2719218134880066, -0.08295951783657074, -0.15479235351085663, 0.08311794698238373, -0.13035964965820312, -0.06441932171583176, -0.005009900778532028, 0.3701477646827698, 0.13319019973278046, 0.08900150656700134, 0.06753268837928772, 0.5516713857650757, 0.08134433627128601, -0.16196200251579285, -0.06577184796333313, 0.03485547751188278, -0.3513205945491791, -0.13600265979766846, -0.08042511343955994, 0.1183285117149353, -0.4727514088153839, 0.30819976329803467, 0.06809213012456894, -0.15013952553272247, 0.05180446803569794, 0.016798699274659157, -0.03549274802207947, -0.10962022840976715, 0.1088164821267128, 0.15477819740772247, 0.34218063950538635, 0.7173805236816406, 0.013488445430994034, 0.05112428218126297, -0.11207642406225204, 0.016379045322537422, -0.041447579860687256, -0.10040030628442764, -0.20996160805225372, -0.24219198524951935, 0.09355374425649643, -0.04354921728372574, 0.12603597342967987, -0.5950589776039124, -0.34497907757759094, 0.0035268254578113556, 0.05697794258594513, 0.09147131443023682, 0.6922085881233215, 0.08021266758441925, -0.1998312771320343, -0.12055425345897675, -0.36738720536231995, 0.051314763724803925, -0.2942931652069092, 0.09561257064342499, -0.3140665292739868 ]
https://github.com/huggingface/datasets/issues/217
Multi-task dataset mixing
Hi, regarding building T5 dataset , I think we can use datasets https://github.com/huggingface/datasets and then need something similar to tf.data.experimental.sample_from_datasets, do you know if similar functionality exist in pytorch? Which can sample multiple datasets with the given rates. thanks.
It seems like many of the best performing models on the GLUE benchmark make some use of multitask learning (simultaneous training on multiple tasks). The [T5 paper](https://arxiv.org/pdf/1910.10683.pdf) highlights multiple ways of mixing the tasks together during finetuning: - **Examples-proportional mixing** - sample from tasks proportionally to their dataset size - **Equal mixing** - sample uniformly from each task - **Temperature-scaled mixing** - The generalized approach used by multilingual BERT which uses a temperature T, where the mixing rate of each task is raised to the power 1/T and renormalized. When T=1 this is equivalent to equal mixing, and becomes closer to equal mixing with increasing T. Following this discussion https://github.com/huggingface/transformers/issues/4340 in [transformers](https://github.com/huggingface/transformers), @enzoampil suggested that the `nlp` library might be a better place for this functionality. Some method for combining datasets could be implemented ,e.g. ``` dataset = nlp.load_multitask(['squad','imdb','cnn_dm'], temperature=2.0, ...) ``` We would need a few additions: - Method of identifying the tasks - how can we support adding a string to each task as an identifier: e.g. 'summarisation: '? - Method of combining the metrics - a standard approach is to use the specific metric for each task and add them together for a combined score. It would be great to support common use cases such as pretraining on the GLUE benchmark before fine-tuning on each GLUE task in turn. I'm willing to write bits/most of this I just need some guidance on the interface and other library details so I can integrate it properly.
39
Multi-task dataset mixing It seems like many of the best performing models on the GLUE benchmark make some use of multitask learning (simultaneous training on multiple tasks). The [T5 paper](https://arxiv.org/pdf/1910.10683.pdf) highlights multiple ways of mixing the tasks together during finetuning: - **Examples-proportional mixing** - sample from tasks proportionally to their dataset size - **Equal mixing** - sample uniformly from each task - **Temperature-scaled mixing** - The generalized approach used by multilingual BERT which uses a temperature T, where the mixing rate of each task is raised to the power 1/T and renormalized. When T=1 this is equivalent to equal mixing, and becomes closer to equal mixing with increasing T. Following this discussion https://github.com/huggingface/transformers/issues/4340 in [transformers](https://github.com/huggingface/transformers), @enzoampil suggested that the `nlp` library might be a better place for this functionality. Some method for combining datasets could be implemented ,e.g. ``` dataset = nlp.load_multitask(['squad','imdb','cnn_dm'], temperature=2.0, ...) ``` We would need a few additions: - Method of identifying the tasks - how can we support adding a string to each task as an identifier: e.g. 'summarisation: '? - Method of combining the metrics - a standard approach is to use the specific metric for each task and add them together for a combined score. It would be great to support common use cases such as pretraining on the GLUE benchmark before fine-tuning on each GLUE task in turn. I'm willing to write bits/most of this I just need some guidance on the interface and other library details so I can integrate it properly. Hi, regarding building T5 dataset , I think we can use datasets https://github.com/huggingface/datasets and then need something similar to tf.data.experimental.sample_from_datasets, do you know if similar functionality exist in pytorch? Which can sample multiple datasets with the given rates. thanks.
[ -0.03330666571855545, -0.5136842727661133, -0.027779489755630493, 0.06664832681417465, -0.2503274083137512, 0.04262996464967728, 0.17539572715759277, 0.06045615300536156, 0.2067265510559082, -0.12869586050510406, -0.25963157415390015, 0.17233319580554962, -0.16145780682563782, 0.5526634454727173, 0.36890438199043274, -0.42828041315078735, -0.0336441770195961, -0.22553101181983948, -0.3311311900615692, 0.3586276173591614, 0.162553608417511, 0.12674042582511902, -0.1310737133026123, 0.01162545382976532, -0.3748582601547241, -0.05233462154865265, -0.3290126919746399, -0.014158546924591064, 0.07128291577100754, 0.15654486417770386, 0.14056557416915894, 0.3437871038913727, -0.04573146253824234, 0.3042808473110199, -0.00012068865908076987, -0.0008576288819313049, 0.06160605326294899, -0.12618525326251984, 0.11212526261806488, -0.03864693641662598, 0.28744927048683167, -0.3399036228656769, 0.053131431341171265, -0.17077593505382538, 0.13239839673042297, 0.13732114434242249, 0.23634642362594604, 0.0732051283121109, 0.4259684085845947, -0.22620749473571777, 0.04279350861907005, 0.466755747795105, -0.28901201486587524, 0.2969699800014496, 0.0031431391835212708, -0.03748800605535507, -0.03362754359841347, 0.21709507703781128, 0.7237203121185303, -0.4042845368385315, 0.0634201318025589, 0.040230151265859604, -0.013890750706195831, -0.01136748492717743, 0.21762841939926147, -0.007717386819422245, -0.32986292243003845, -0.2981942296028137, -0.3776232600212097, 0.2490173876285553, 0.003808751702308655, -0.1812829077243805, -0.22731955349445343, -0.5786268711090088, -0.05229780077934265, -0.008305670693516731, -0.30587708950042725, 0.028880611062049866, -0.28044262528419495, -0.07985943555831909, -0.15180139243602753, -0.1365443766117096, -0.11704933643341064, 0.18049684166908264, 0.37516218423843384, 0.46167951822280884, 0.06983569264411926, 0.1793563961982727, 0.25237783789634705, 0.13546863198280334, -0.05440903082489967, -0.3006078898906708, 0.2920222580432892, 0.1848786324262619, -0.3568207621574402, -0.3436089754104614, 0.07528059929609299, -0.38873928785324097, 0.35672831535339355, 0.12050838023424149, 0.16586191952228546, 0.010490082204341888, -0.14146903157234192, 0.11952153593301773, 0.3928685188293457, -0.09637792408466339, -0.16700127720832825, -0.11347764730453491, -0.0251004695892334, -0.2513068616390228, 0.07018458843231201, 0.09315365552902222, 0.16992340981960297, -0.10998447239398956, -0.36253783106803894, -0.12453212589025497, -0.1382124125957489, 0.09857922792434692, -0.032947391271591187, -0.522434413433075, -0.21595144271850586, -0.18341000378131866, -0.034971289336681366, -0.08714676648378372, -0.28408828377723694, 0.04984162747859955, -0.0025752708315849304, 0.21522310376167297, -0.2706936001777649, 0.041582632809877396, -0.04056701436638832, 0.027274534106254578, -0.3746247887611389, -0.04783245176076889, 0.2949216067790985, 0.05317382887005806, 0.11462029814720154, 0.16285602748394012, 0.1929014027118683, 0.12154707312583923, 0.4489949345588684, -0.028122741729021072, -0.010044820606708527, -0.023937378078699112, 0.1456851214170456, -0.21127966046333313, -0.01911994069814682, 0.3398953676223755, -0.30356934666633606, -0.06994891911745071, -0.15541303157806396, -0.19051940739154816, 0.09611605107784271, -0.050944507122039795, -0.201261505484581, -0.3853222131729126, -0.46838614344596863, 0.6835910081863403, 0.06396550685167313, -0.09594015032052994, -0.20830324292182922, 0.205284982919693, -0.21099357306957245, -0.08647182583808899, 0.16142471134662628, 0.06823346763849258, -0.013202380388975143, -0.3724401891231537, 0.04198356717824936, -0.10053947567939758, 0.008565045893192291, 0.30295634269714355, -0.15408717095851898, 0.22199928760528564, 0.08476721495389938, 0.11213980615139008, 0.33994603157043457, -0.4791809618473053, -0.009698597714304924, 0.3526691198348999, -0.04269442707300186, 0.2965771555900574, 0.14705273509025574, 0.27371537685394287, -0.07260712236166, -0.15075375139713287, 0.12967078387737274, 0.9934560656547546, -0.3805128335952759, -0.017214151099324226, -0.07959863543510437, -0.3645017147064209, 0.4801673889160156, 0.35858505964279175, 0.19760893285274506, -0.3657471239566803, -0.18771934509277344, -0.0051624164916574955, 0.08525055646896362, 0.006784450262784958, 0.08330801129341125, 0.024007830768823624, -0.23441989719867706, 0.10306394845247269, -0.19651708006858826, -0.2335743010044098, -0.4084455072879791, 0.041434794664382935, -0.050923414528369904, 0.37805989384651184, 0.3517454266548157, -0.05343778058886528, 0.2586522102355957, -0.2782158851623535, -0.12434300780296326, -0.31017476320266724, 0.03456573188304901, -0.02326864004135132, 0.0006006099283695221, -0.26450586318969727, -0.09321242570877075, 0.26055625081062317, 0.03617474436759949, -0.09498070925474167, -0.4310053586959839, 0.42751815915107727, 0.022629389539361, -0.03463875129818916, -0.03160073980689049, 0.531765341758728, -0.24605238437652588, -0.11966535449028015, 0.10470883548259735, 0.21626296639442444, -0.20524626970291138, 0.1573849469423294, 0.22795167565345764, 0.39875826239585876, 0.23988571763038635, -0.08323955535888672, 0.05731704831123352, -0.05171782895922661, -0.0643586739897728, -0.21896925568580627, -0.004287034273147583, 0.4068593382835388, -0.27480560541152954, 0.4037342965602875, -0.0074853189289569855, -0.027602756395936012, -0.22626417875289917, 0.010463956743478775, -0.12387271225452423, 0.42509207129478455, 0.34055134654045105, -0.24968089163303375, 0.3180716335773468, -0.1349046230316162, -0.3477177917957306, 0.23371130228042603, 0.12683463096618652, 0.01925193890929222, 0.00021483004093170166, -0.04030989110469818, 0.0153488889336586, -0.29494360089302063, -0.13681763410568237, 0.3106767535209656, 0.6342357993125916, 0.19913385808467865, 0.13627712428569794, -0.0617872029542923, -0.18401066958904266, -0.06175119802355766, 0.07712724059820175, 0.17387618124485016, -0.07647142559289932, 0.21138277649879456, -0.013370076194405556, 0.1067885085940361, 0.04169239103794098, -0.1683122217655182, 0.25196725130081177, -0.17216426134109497, -0.16441836953163147, 0.04858631640672684, -0.1701439768075943, -0.691484272480011, -0.1161998063325882, 0.08361676335334778, -0.2977900207042694, -0.25566813349723816, 0.1518944799900055, 0.13057975471019745, -0.0964268296957016, 0.17519359290599823, 0.16043303906917572, 0.4907013177871704, -0.30469492077827454, -0.33770114183425903, -0.0032317042350769043, -0.26299408078193665, -0.07772119343280792, 0.04284585639834404, 0.4357631504535675, 0.41831010580062866, 0.4902554750442505, 0.19848988950252533, -0.07153204083442688, -0.04201999306678772, -0.3898180425167084, 0.1562466323375702, -0.3618432283401489, 0.3624497950077057, 0.06319908797740936, -0.1201186329126358, 0.07015486806631088, -0.3186582028865814, -0.014651832170784473, -0.08830580860376358, -0.14835071563720703, -0.06262727826833725, -0.09027484059333801, 0.07648724317550659, -0.13062801957130432, -0.1616627275943756, -0.6078258156776428, -0.3920363485813141, 0.19814442098140717, -0.1885293573141098, 0.0759611427783966, 0.15446527302265167, -0.2840271592140198, 0.24272434413433075, -0.12732836604118347, 0.08162067830562592, -0.13222521543502808, -0.14825476706027985, -0.016929809004068375, -0.40536561608314514, -0.2201676219701767, -0.40197184681892395, -0.01956479623913765, 0.16767090559005737, 0.05245726555585861, -0.09963668882846832, -0.39100751280784607, 0.0016665514558553696, 0.027672115713357925, 0.058359988033771515, 0.25692427158355713, 0.11975860595703125, -0.2818753123283386, 0.16816365718841553, -0.1412178874015808, -0.18737471103668213, 0.27245593070983887, 0.3120085299015045, 0.36048659682273865, 0.17845943570137024, -0.0021584592759609222, 0.12795647978782654, 0.9331133961677551, 0.2947482466697693, 0.004239674657583237, 0.18400782346725464, 0.13027045130729675, 0.01915883645415306, 0.08279597014188766, -0.1914921998977661, 0.200760617852211, -0.11971074342727661, 0.46759653091430664, 0.10902083665132523, 0.08792637288570404, -0.016810031607747078, -0.29273849725723267, 0.0959521234035492, -0.33637335896492004, -0.25714945793151855, 0.20428705215454102, -0.34242334961891174, 0.10670727491378784, -0.12691523134708405, -0.4086242616176605, -0.378437876701355, -0.07600992918014526, -0.09919162094593048, 0.28520864248275757, 0.10526412725448608, 0.17052391171455383, -0.3895931839942932, -0.050177451223134995, -0.42772001028060913, 0.14170752465724945, 0.12198377400636673, 0.2932145297527313, -0.08066688477993011, -0.0009063631296157837, -0.061951518058776855, 0.1394701451063156, 0.5762669444084167, -0.4894062876701355, -0.09264364838600159, 0.13218432664871216, -0.09517467021942139, -0.16487513482570648, -0.029359443113207817, -0.30960285663604736, 0.05311242863535881, 0.3403034806251526, 0.34198233485221863, -0.4822688102722168, -0.4431770145893097, 0.2855309844017029, -0.07070628553628922, -0.06597431749105453, -0.16693106293678284, -0.1628555804491043, -0.23329314589500427, -0.048671990633010864, -0.08596491068601608, 0.3517226576805115, 0.24646814167499542, -0.140041321516037, 0.2022760659456253, -0.03201473504304886, 0.25087958574295044, 0.20811673998832703, -0.0859525203704834, -0.07969831675291061, 0.1945643573999405, 0.25474756956100464, 0.034910768270492554, -0.10541535913944244, -0.30441248416900635, 0.14299947023391724, -0.1448720246553421, -0.11757561564445496, 0.2817609906196594, 0.062038447707891464, 0.6452471017837524, 0.07200497388839722, 0.3485735058784485, 0.34181302785873413, -0.14397618174552917, 0.0882178246974945, -0.10354922711849213, 0.20663686096668243, 0.22725000977516174, 0.2593938112258911, -0.1113065555691719, -0.27035820484161377, 0.5457834601402283, 0.3118361830711365, 0.018796630203723907, 0.4668092727661133, -0.5664711594581604, -0.2669512927532196, 0.20873481035232544, 0.04355061054229736, 0.7242982387542725, -0.06499609351158142, 0.4172840416431427, 0.14827418327331543, -0.3961777687072754, 0.5780624747276306, -0.21578088402748108, 0.041985850781202316, -0.1446857452392578, -0.32053840160369873, 0.024116074666380882, -0.13038361072540283, -0.20336908102035522, 0.220620796084404, -0.2274598330259323, 0.2735256552696228, 0.37099629640579224, -0.2172449231147766, -0.034668877720832825, 0.487244188785553, -0.08320467919111252, -0.31027278304100037, -0.007832551375031471, -0.005010126158595085, -0.27206122875213623, 0.15342195332050323, -0.15633109211921692, -0.27251094579696655, 0.18027842044830322, 0.22555728256702423, -0.3630879521369934, -0.03686448559165001, -0.041072215884923935, 0.1753987818956375, 0.27989429235458374, -0.06461773067712784, 0.22811877727508545, -0.058996524661779404, -0.044315628707408905, -0.1844000220298767, -0.1313939243555069, 0.11050412058830261, -0.2541777789592743, 0.038813695311546326, 0.1308595836162567, -0.08861668407917023, 0.4745720326900482, -0.10375451296567917, -0.14080633223056793, -0.21365004777908325, 0.20078061521053314, -0.4532206654548645, -0.28977203369140625, -0.028219304978847504, 0.04603654518723488, 0.14461521804332733, -0.3120007812976837, 0.5833742618560791, 0.020649347454309464, 0.05548368766903877, -0.03234797716140747, 0.206516832113266, -0.1736716330051422, 0.42533084750175476, -0.3541752099990845, -0.043094806373119354, 0.0554850772023201, 0.038148537278175354, -0.049222126603126526, -0.3953075408935547, 0.07578058540821075, 0.41568684577941895, 0.16333790123462677, 0.03143154829740524, 0.1543503701686859, 0.1061902716755867, -0.1855621188879013, 0.11073198169469833, -0.07481766492128372, -0.1934458166360855, 0.12716948986053467, 0.363346666097641, 0.1682659089565277, 0.12084859609603882, -0.06369787454605103, -0.23129497468471527, -0.18166813254356384, 0.5214855670928955, -0.014889609068632126, 0.2288406938314438, -0.15737026929855347, 0.47221291065216064, 0.42730867862701416, 0.47415295243263245, -0.19213144481182098, 0.11956644803285599, 0.11680980771780014, 0.08993373811244965, 0.509716808795929, -0.24610283970832825, 0.04991733655333519, 0.26596853137016296, -0.21029971539974213, -0.002056445926427841, -0.3129916191101074, -0.08803495764732361, -0.263815701007843, 0.15460629761219025, 0.13262176513671875, 0.017633819952607155, 0.08132223784923553, -0.10233181715011597, -0.20836420357227325, -0.10318611562252045, 0.13714414834976196, -0.22865727543830872, -0.07985030114650726, 0.21865126490592957, 0.004844237118959427, -0.015345610678195953, -0.06830457597970963, 0.3252395987510681, 0.06706106662750244, -0.003958903253078461, 0.34234219789505005, 0.15840372443199158, 0.1673068106174469, -0.17845535278320312, -0.1662210375070572, -0.027407437562942505, 0.3266674876213074, 0.0960845947265625, -0.06478898227214813, 0.05887911468744278, -0.11979369819164276, -0.1888972520828247, 0.18732774257659912, 0.25220566987991333, 0.030034251511096954, -0.027138659730553627, 0.2146419882774353, 0.03223806619644165, -0.03687314689159393, 0.001633002539165318, 0.13352392613887787, 0.005256016738712788, 0.08753152191638947, 0.12357095628976822, 0.009909838438034058, 0.4867085814476013, -0.1714262217283249, -0.04055049642920494, 0.00025927810929715633, -0.2595711946487427, 0.1623917818069458, 0.03387827426195145, -0.054904330521821976, -0.018305230885744095, 0.07210525125265121, -0.036744002252817154, 0.12226478010416031, -0.33030450344085693, 0.3012453019618988, 0.2769789695739746, -0.08719156682491302, -0.015070747584104538, 0.23038530349731445, -0.08356553316116333, -0.19793203473091125, 0.31108608841896057, 0.0794973075389862, 0.417866051197052, -0.009903252124786377, 0.9180452823638916, -0.3006817698478699, -0.464709997177124, 0.01149926520884037, 0.5212083458900452, 0.1481110155582428, -0.2523587942123413, 0.06891922652721405, 0.08991726487874985, -0.2977735698223114, 0.0977390706539154, -0.009851861745119095, -0.18153269588947296, 0.39744848012924194, -0.010155625641345978, 0.19723659753799438, -0.13021734356880188, -0.14882776141166687, 0.3492194712162018, 0.17988616228103638, -0.006385553628206253, 0.08323770016431808, 0.0397263839840889, -0.10503071546554565, -0.17178554832935333, 0.5120567083358765, 0.08268047124147415, -0.07022854685783386, -0.5144467949867249, 0.022896768525242805, 0.1550089567899704, 0.18714237213134766, 0.1216680109500885, 0.20464281737804413, 0.4158385694026947, -0.1962636262178421, 0.36525997519493103, -0.08221463114023209, -0.03379235789179802, -0.18054749071598053, 0.060573529452085495, -0.42835456132888794, -0.46482226252555847, 0.4682813584804535, 0.05242632329463959, -0.14958173036575317, 0.16356703639030457, 0.24570199847221375, -0.6194171905517578, -0.27178117632865906, 0.3253091871738434, -0.17062558233737946, -0.09467196464538574, -0.14008209109306335, 0.035228341817855835, 0.015107294544577599, 0.7085167765617371, 0.24064280092716217, 0.44719889760017395, -0.3157655596733093, -0.06770201027393341, -0.5137096643447876, -0.1357126235961914, 0.18594709038734436, -0.07559249550104141, -0.185414120554924, 0.05579204857349396, 0.04734255000948906, 0.31720685958862305, -0.08298192918300629, 0.16424725949764252, 0.18251344561576843, 0.19075438380241394, -0.5117716193199158, -0.04429345205426216, -0.023752182722091675, 0.23374882340431213, 0.24095752835273743, -0.13445600867271423, -0.21129392087459564, 0.11336665600538254, -0.1192578449845314, -0.10776691138744354, -0.1222839504480362, 0.34944579005241394, 0.05762024223804474, 0.10408417135477066, 0.07577204704284668, 0.5753720998764038, 0.06265395134687424, -0.194740429520607, 0.04764438420534134, -0.051162347197532654, -0.2982564866542816, -0.0918613001704216, -0.07321695983409882, 0.11370596289634705, -0.35987380146980286, 0.3518773317337036, 0.013055158779025078, -0.02684674598276615, 0.11974862217903137, -0.05373818054795265, -0.07982297241687775, -0.137159064412117, 0.060857824981212616, 0.19985505938529968, 0.25871795415878296, 0.7949314117431641, -0.1530771255493164, 0.1390356570482254, -0.13647958636283875, 0.05447760224342346, 0.10467539727687836, -0.12959666550159454, -0.2167314887046814, -0.11664719134569168, 0.05686825513839722, 0.044898051768541336, 0.14335119724273682, -0.5357410311698914, -0.2840760052204132, 0.12216456234455109, 0.005257489159703255, 0.017482824623584747, 0.7596601247787476, 0.28241318464279175, -0.17514027655124664, -0.051766879856586456, -0.18941718339920044, 0.008700555190443993, -0.2264743149280548, 0.0978519469499588, -0.2878146171569824 ]
https://github.com/huggingface/datasets/issues/217
Multi-task dataset mixing
> Here's a fully working implementation based on the `__iter__` function of @zphang. > > * I've generated the task choice list in the constructor as it allows us to index into the MultiDataset just like a normal dataset. I'm changing `task_choice_list` into a list of `(dataset_idx, example_idx)` so each entry references a unique dataset example. The shuffling has to be done before this as we don't want to shuffle within each task (we assume this is done by the user if this is what they intend). > * I'm slightly concerned this list could become very large if many large datasets were used. Can't see a way round it at the moment though. > * I've used `task.info.builder_name` as the dataset name. Not sure if this is correct. > * I'd love to add some of the other `Dataset` methods (map, slicing by column, etc...). Would be great to implement the whole interface so a single dataset can be simply replaced by this. > * This does everything on the individual example-level. If some application required batches all from a single task in turn we can't really do that. > > ```python > import nlp > import numpy as np > > class MultiDataset: > def __init__(self,tasks): > self.tasks = tasks > > # Create random order of tasks > # Using size-proportional sampling > task_choice_list = [] > for i, task in enumerate(self.tasks): > task_choice_list += [i] * len(task) > task_choice_list = np.array(task_choice_list) > np.random.shuffle(task_choice_list) > > # Add index into each dataset > # - We don't want to shuffle within each task > counters = {} > self.task_choice_list = [] > for i in range(len(task_choice_list)): > idx = counters.get(task_choice_list[i],0) > self.task_choice_list.append((task_choice_list[i],idx)) > counters[task_choice_list[i]] = idx + 1 > > > def __len__(self): > return np.sum([len(t) for t in self.tasks]) > > def __repr__(self): > task_str = ", ".join([str(t) for t in self.tasks]) > return f"MultiDataset(tasks: {task_str})" > > def __getitem__(self,key): > if isinstance(key, int): > task_idx, example_idx = self.task_choice_list[key] > task = self.tasks[task_idx] > example = task[example_idx] > example["task_name"] = task.info.builder_name > return example > elif isinstance(key, slice): > raise NotImplementedError() > > def __iter__(self): > for i in range(len(self)): > yield self[i] > > > def load_multitask(*datasets): > '''Create multitask datasets per split''' > > def _get_common_splits(datasets): > '''Finds the common splits present in all self.datasets''' > min_set = None > for dataset in datasets: > if min_set != None: > min_set.intersection(set(dataset.keys())) > else: > min_set = set(dataset.keys()) > return min_set > > common_splits = _get_common_splits(datasets) > out = {} > for split in common_splits: > out[split] = MultiDataset([d[split] for d in datasets]) > return out > > > ########################################## > # Dataset Flattening > > def flatten(dataset,flatten_fn): > for k in dataset.keys(): > if isinstance(dataset[k],nlp.Dataset): > dataset[k] = dataset[k].map(flatten_fn,remove_columns=dataset[k].column_names) > > # Squad > def flatten_squad(example): > return {"source": "squad context: " + example['context'] + " question: " + example['question'], > "target":example["answers"]["text"]} > squad = nlp.load_dataset("squad") > flatten(squad,flatten_squad) > > # CNN_DM > def flatten_cnn_dm(example): > return {"source": "cnn_dm: " + example['article'],"target":[example["highlights"]]} > cnn_dm = nlp.load_dataset("cnn_dailymail", "3.0.0") > flatten(cnn_dm,flatten_cnn_dm) > > ############################################# > > mtds = load_multitask(squad,cnn_dm) > > for example in mtds["train"]: > print(example["task_name"],example["target"]) > ``` > > Let me know if you have any thoughts. I've started using this in some of my projects and it seems to work. If people are happy with the general approach for a first version, I can make a pull request. Not sure if this is what I'm looking for, but I implemented a version of Examples-Proportional mixing supporting only the basic feature [here](https://stackoverflow.com/a/74070116/10732321), seems to work in my project.
It seems like many of the best performing models on the GLUE benchmark make some use of multitask learning (simultaneous training on multiple tasks). The [T5 paper](https://arxiv.org/pdf/1910.10683.pdf) highlights multiple ways of mixing the tasks together during finetuning: - **Examples-proportional mixing** - sample from tasks proportionally to their dataset size - **Equal mixing** - sample uniformly from each task - **Temperature-scaled mixing** - The generalized approach used by multilingual BERT which uses a temperature T, where the mixing rate of each task is raised to the power 1/T and renormalized. When T=1 this is equivalent to equal mixing, and becomes closer to equal mixing with increasing T. Following this discussion https://github.com/huggingface/transformers/issues/4340 in [transformers](https://github.com/huggingface/transformers), @enzoampil suggested that the `nlp` library might be a better place for this functionality. Some method for combining datasets could be implemented ,e.g. ``` dataset = nlp.load_multitask(['squad','imdb','cnn_dm'], temperature=2.0, ...) ``` We would need a few additions: - Method of identifying the tasks - how can we support adding a string to each task as an identifier: e.g. 'summarisation: '? - Method of combining the metrics - a standard approach is to use the specific metric for each task and add them together for a combined score. It would be great to support common use cases such as pretraining on the GLUE benchmark before fine-tuning on each GLUE task in turn. I'm willing to write bits/most of this I just need some guidance on the interface and other library details so I can integrate it properly.
604
Multi-task dataset mixing It seems like many of the best performing models on the GLUE benchmark make some use of multitask learning (simultaneous training on multiple tasks). The [T5 paper](https://arxiv.org/pdf/1910.10683.pdf) highlights multiple ways of mixing the tasks together during finetuning: - **Examples-proportional mixing** - sample from tasks proportionally to their dataset size - **Equal mixing** - sample uniformly from each task - **Temperature-scaled mixing** - The generalized approach used by multilingual BERT which uses a temperature T, where the mixing rate of each task is raised to the power 1/T and renormalized. When T=1 this is equivalent to equal mixing, and becomes closer to equal mixing with increasing T. Following this discussion https://github.com/huggingface/transformers/issues/4340 in [transformers](https://github.com/huggingface/transformers), @enzoampil suggested that the `nlp` library might be a better place for this functionality. Some method for combining datasets could be implemented ,e.g. ``` dataset = nlp.load_multitask(['squad','imdb','cnn_dm'], temperature=2.0, ...) ``` We would need a few additions: - Method of identifying the tasks - how can we support adding a string to each task as an identifier: e.g. 'summarisation: '? - Method of combining the metrics - a standard approach is to use the specific metric for each task and add them together for a combined score. It would be great to support common use cases such as pretraining on the GLUE benchmark before fine-tuning on each GLUE task in turn. I'm willing to write bits/most of this I just need some guidance on the interface and other library details so I can integrate it properly. > Here's a fully working implementation based on the `__iter__` function of @zphang. > > * I've generated the task choice list in the constructor as it allows us to index into the MultiDataset just like a normal dataset. I'm changing `task_choice_list` into a list of `(dataset_idx, example_idx)` so each entry references a unique dataset example. The shuffling has to be done before this as we don't want to shuffle within each task (we assume this is done by the user if this is what they intend). > * I'm slightly concerned this list could become very large if many large datasets were used. Can't see a way round it at the moment though. > * I've used `task.info.builder_name` as the dataset name. Not sure if this is correct. > * I'd love to add some of the other `Dataset` methods (map, slicing by column, etc...). Would be great to implement the whole interface so a single dataset can be simply replaced by this. > * This does everything on the individual example-level. If some application required batches all from a single task in turn we can't really do that. > > ```python > import nlp > import numpy as np > > class MultiDataset: > def __init__(self,tasks): > self.tasks = tasks > > # Create random order of tasks > # Using size-proportional sampling > task_choice_list = [] > for i, task in enumerate(self.tasks): > task_choice_list += [i] * len(task) > task_choice_list = np.array(task_choice_list) > np.random.shuffle(task_choice_list) > > # Add index into each dataset > # - We don't want to shuffle within each task > counters = {} > self.task_choice_list = [] > for i in range(len(task_choice_list)): > idx = counters.get(task_choice_list[i],0) > self.task_choice_list.append((task_choice_list[i],idx)) > counters[task_choice_list[i]] = idx + 1 > > > def __len__(self): > return np.sum([len(t) for t in self.tasks]) > > def __repr__(self): > task_str = ", ".join([str(t) for t in self.tasks]) > return f"MultiDataset(tasks: {task_str})" > > def __getitem__(self,key): > if isinstance(key, int): > task_idx, example_idx = self.task_choice_list[key] > task = self.tasks[task_idx] > example = task[example_idx] > example["task_name"] = task.info.builder_name > return example > elif isinstance(key, slice): > raise NotImplementedError() > > def __iter__(self): > for i in range(len(self)): > yield self[i] > > > def load_multitask(*datasets): > '''Create multitask datasets per split''' > > def _get_common_splits(datasets): > '''Finds the common splits present in all self.datasets''' > min_set = None > for dataset in datasets: > if min_set != None: > min_set.intersection(set(dataset.keys())) > else: > min_set = set(dataset.keys()) > return min_set > > common_splits = _get_common_splits(datasets) > out = {} > for split in common_splits: > out[split] = MultiDataset([d[split] for d in datasets]) > return out > > > ########################################## > # Dataset Flattening > > def flatten(dataset,flatten_fn): > for k in dataset.keys(): > if isinstance(dataset[k],nlp.Dataset): > dataset[k] = dataset[k].map(flatten_fn,remove_columns=dataset[k].column_names) > > # Squad > def flatten_squad(example): > return {"source": "squad context: " + example['context'] + " question: " + example['question'], > "target":example["answers"]["text"]} > squad = nlp.load_dataset("squad") > flatten(squad,flatten_squad) > > # CNN_DM > def flatten_cnn_dm(example): > return {"source": "cnn_dm: " + example['article'],"target":[example["highlights"]]} > cnn_dm = nlp.load_dataset("cnn_dailymail", "3.0.0") > flatten(cnn_dm,flatten_cnn_dm) > > ############################################# > > mtds = load_multitask(squad,cnn_dm) > > for example in mtds["train"]: > print(example["task_name"],example["target"]) > ``` > > Let me know if you have any thoughts. I've started using this in some of my projects and it seems to work. If people are happy with the general approach for a first version, I can make a pull request. Not sure if this is what I'm looking for, but I implemented a version of Examples-Proportional mixing supporting only the basic feature [here](https://stackoverflow.com/a/74070116/10732321), seems to work in my project.
[ -0.026915105059742928, -0.40506044030189514, -0.046830352395772934, 0.009674783796072006, -0.2121598869562149, 0.044131919741630554, 0.2004924714565277, 0.03512943536043167, 0.401700884103775, -0.18124912679195404, -0.24971532821655273, 0.3981592357158661, -0.19876442849636078, 0.3141341805458069, 0.37523677945137024, -0.41646867990493774, -0.014998234808444977, -0.23942098021507263, -0.29020774364471436, 0.3662034869194031, 0.04830709844827652, 0.1850140392780304, -0.20683486759662628, 0.0685814917087555, -0.22345010936260223, -0.17282187938690186, -0.35157379508018494, 0.13952815532684326, 0.10999848693609238, -0.0011526243761181831, 0.24205000698566437, 0.4066051244735718, -0.05062644183635712, 0.14289364218711853, -0.0001143954650615342, -0.05375482141971588, 0.21904127299785614, -0.1135670393705368, 0.0452023409307003, -0.0580863356590271, 0.166376531124115, -0.41714248061180115, 0.06915456056594849, -0.18064755201339722, 0.16408121585845947, 0.1626594513654709, 0.1468358188867569, 0.01609043776988983, 0.39571183919906616, -0.26907873153686523, 0.10455992817878723, 0.3261387348175049, -0.16584210097789764, 0.3073670268058777, -0.13199615478515625, -0.030087530612945557, 0.027639934793114662, 0.2506459355354309, 0.6148810386657715, -0.5525089502334595, -0.03508976846933365, 0.10497300326824188, 0.004010079428553581, -0.069222092628479, 0.1387416571378708, -0.028331734240055084, -0.34569382667541504, -0.25072070956230164, -0.3862282335758209, 0.23892390727996826, -0.06647736579179764, -0.17502319812774658, -0.2142171412706375, -0.5513800382614136, -0.050577446818351746, 0.01834430731832981, -0.21974453330039978, -0.06781207770109177, -0.2107459157705307, -0.06382407248020172, -0.09587574005126953, -0.10099906474351883, -0.04053474962711334, 0.12420862913131714, 0.3031576871871948, 0.5597634315490723, 0.09054864197969437, 0.17434567213058472, 0.404155969619751, 0.009920082986354828, -0.12202123552560806, -0.2837992310523987, 0.2947174608707428, 0.10950005799531937, -0.45665085315704346, -0.36372435092926025, 0.18234631419181824, -0.2595382630825043, 0.25745075941085815, 0.10674416273832321, 0.13024045526981354, 0.1281621903181076, -0.17118993401527405, 0.24369049072265625, 0.3117571473121643, 0.1395394653081894, -0.0728929415345192, -0.13909277319908142, -0.04459352046251297, -0.11182361096143723, 0.24933695793151855, 0.1055927574634552, 0.1508079320192337, -0.02126358076930046, -0.43273288011550903, -0.11323101073503494, -0.19900213181972504, 0.1676429808139801, -0.2332703173160553, -0.4828523099422455, -0.09979188442230225, -0.12391286343336105, 0.14078018069267273, -0.0820520743727684, -0.31764423847198486, 0.09546642750501633, -0.0670517235994339, 0.22522522509098053, -0.14595727622509003, 0.09191417694091797, -0.05208466574549675, 0.0846983939409256, -0.41259071230888367, -0.09129699319601059, 0.3098026216030121, 0.18422435224056244, 0.09309603273868561, 0.11011815071105957, 0.029325880110263824, 0.1503387987613678, 0.33818522095680237, -0.010925748385488987, 0.05933470278978348, -0.009287383407354355, 0.15625786781311035, -0.2613580822944641, 0.013241412118077278, 0.11261576414108276, -0.33266305923461914, -0.14183959364891052, -0.1177956834435463, -0.16452538967132568, 0.1033189445734024, 0.008957505226135254, -0.24366451799869537, -0.24288111925125122, -0.5429120659828186, 0.7040143013000488, -0.0029000267386436462, -0.061853908002376556, -0.17148715257644653, 0.23278063535690308, -0.23458735644817352, -0.10644685477018356, 0.18532781302928925, 0.1176990419626236, -0.012381859123706818, -0.2612946033477783, -0.09169623255729675, -0.11738435924053192, -0.014805898070335388, 0.2670673429965973, -0.16896574199199677, 0.2857820987701416, 0.006528496742248535, 0.23218385875225067, 0.25946444272994995, -0.4621356427669525, -0.06051717698574066, 0.2932834029197693, -0.06332050263881683, 0.47238314151763916, 0.06173748895525932, 0.20418214797973633, 0.026769908145070076, -0.20017574727535248, 0.2703896164894104, 0.979307234287262, -0.34023088216781616, -0.035851024091243744, -0.1305275857448578, -0.3212592899799347, 0.5746625065803528, 0.30448830127716064, 0.04551980271935463, -0.2445947229862213, -0.15454155206680298, 0.027733024209737778, 0.13786157965660095, 0.10038277506828308, 0.09385086596012115, -0.04771396517753601, -0.3294821083545685, 0.06456246227025986, -0.17970901727676392, -0.15792980790138245, -0.4378276467323303, 0.03888116031885147, 0.03033871203660965, 0.3341718912124634, 0.20655061304569244, -0.059290818870067596, 0.20733585953712463, -0.25212183594703674, -0.17237137258052826, -0.31893062591552734, 0.12842151522636414, -0.03392604738473892, 0.0006388835608959198, -0.3116091191768646, -0.034363970160484314, 0.3988321125507355, 0.11760567128658295, -0.14529825747013092, -0.4935727119445801, 0.29766374826431274, -0.07122328132390976, 0.07388599961996078, -0.008342526853084564, 0.6330896019935608, -0.110416941344738, -0.12540429830551147, 0.1784450113773346, 0.29554781317710876, -0.2617432177066803, 0.1689280867576599, 0.36041975021362305, 0.17970125377178192, 0.17155614495277405, -0.05646968260407448, 0.04550587385892868, 0.008993372321128845, 0.06436136364936829, -0.23323208093643188, -0.05016493797302246, 0.506346583366394, -0.18378812074661255, 0.4763179421424866, -0.06274690479040146, 0.09169938415288925, -0.09066306054592133, -0.0060807690024375916, -0.20382389426231384, 0.40966796875, 0.2721233665943146, -0.15681575238704681, 0.3274376690387726, -0.15326622128486633, -0.39689332246780396, 0.1970222294330597, 0.16303591430187225, 0.047981228679418564, -0.004368312656879425, -0.00034834444522857666, -0.018283814191818237, -0.2814285159111023, -0.08986439555883408, 0.27477967739105225, 0.663746178150177, 0.2288268804550171, 0.16289402544498444, 0.0019956864416599274, -0.22834570705890656, -0.0778236836194992, 0.02827327698469162, 0.21480582654476166, -0.015348841436207294, 0.13476791977882385, 0.06869927048683167, 0.04894106462597847, 0.004161112010478973, -0.15548823773860931, 0.16860055923461914, -0.16769489645957947, -0.10095786303281784, 0.1038774773478508, -0.23132561147212982, -0.6309990286827087, -0.20697572827339172, 0.010100632905960083, -0.34743183851242065, -0.31640902161598206, 0.08473732322454453, 0.08109058439731598, -0.10467106103897095, 0.18537890911102295, 0.32913443446159363, 0.5449763536453247, -0.440983384847641, -0.27181345224380493, -0.08385121077299118, -0.3106570541858673, -0.20266538858413696, 0.11555805802345276, 0.4735519587993622, 0.30194291472435, 0.44407397508621216, 0.327054500579834, -0.0738159790635109, -0.017566224560141563, -0.4047297239303589, 0.051275834441185, -0.32010430097579956, 0.26062488555908203, 0.09383507072925568, -0.17306171357631683, 0.1594294011592865, -0.37059468030929565, -0.05527716502547264, 0.0107938963919878, -0.10691405087709427, -0.011491555720567703, -0.00926939770579338, 0.07335235923528671, -0.22193634510040283, -0.216523677110672, -0.6123750805854797, -0.41157984733581543, 0.32925838232040405, -0.27168509364128113, 0.14521761238574982, 0.10341367870569229, -0.3122282326221466, 0.2149093598127365, -0.09789562970399857, -0.01848887838423252, -0.1964668333530426, -0.0347222276031971, 0.037098128348588943, -0.32778555154800415, -0.20835375785827637, -0.3575860857963562, -0.09423466771841049, 0.26969969272613525, -0.06886696070432663, -0.018269825726747513, -0.21623480319976807, 0.12836775183677673, -0.09969833493232727, 0.1050313413143158, 0.1670391708612442, 0.24873360991477966, -0.22651736438274384, 0.13940587639808655, -0.1160769984126091, -0.3157840967178345, 0.2723192870616913, 0.31647732853889465, 0.45783570408821106, 0.2366354763507843, 0.044100839644670486, 0.18715788424015045, 0.7275359630584717, 0.233559250831604, 0.03736451268196106, 0.16911998391151428, 0.2500264346599579, -0.009207870811223984, 0.11966949701309204, -0.29413506388664246, 0.23890335857868195, -0.20141738653182983, 0.5065586566925049, 0.06376761943101883, 0.12685194611549377, -0.27463391423225403, -0.30723634362220764, 0.08144986629486084, -0.2879601716995239, -0.22993162274360657, 0.22699202597141266, -0.23109093308448792, -0.029112324118614197, -0.029749726876616478, -0.3809359669685364, -0.2989077568054199, -0.049087703227996826, 0.012597460299730301, 0.3536108136177063, -0.08370358496904373, 0.14175894856452942, -0.334437757730484, -0.04160178080201149, -0.47256243228912354, 0.13064822554588318, 0.04478146880865097, 0.2916828989982605, -0.08507195115089417, -0.09139987826347351, -0.09088005125522614, 0.11261866241693497, 0.705146849155426, -0.44856852293014526, -0.1336253136396408, 0.13155044615268707, 0.08742430806159973, -0.09612914174795151, -0.10766369104385376, -0.2731882333755493, 0.06705918163061142, 0.4979449212551117, 0.38278040289878845, -0.45011287927627563, -0.2791179120540619, 0.14909133315086365, -0.19259785115718842, -0.055462367832660675, -0.19050493836402893, -0.24400226771831512, -0.23567497730255127, -0.10096894949674606, 0.0515570342540741, 0.23605187237262726, 0.28233903646469116, -0.10330267250537872, 0.202034130692482, -0.07736010104417801, 0.17704734206199646, 0.21192336082458496, -0.008267933502793312, -0.027527742087841034, 0.2626318037509918, 0.1558661162853241, 0.06929785013198853, -0.10077238082885742, -0.3550361394882202, 0.11215092241764069, -0.046311523765325546, 0.1200680211186409, 0.32053980231285095, -0.055809445679187775, 0.6046900153160095, 0.13067764043807983, 0.30980268120765686, 0.24505239725112915, -0.12541373074054718, -0.0027319341897964478, -0.20931144058704376, 0.22264805436134338, 0.20849499106407166, 0.22884653508663177, -0.14019286632537842, -0.24091629683971405, 0.5078854560852051, 0.276079922914505, -0.12567894160747528, 0.46375346183776855, -0.47844505310058594, -0.3227687180042267, 0.23824666440486908, 0.06807820498943329, 0.737822949886322, -0.05624091625213623, 0.2567792534828186, 0.1857028603553772, -0.39475804567337036, 0.5840466022491455, -0.3113740086555481, 0.14913982152938843, -0.060088980942964554, -0.17088079452514648, 0.0019127819687128067, -0.09441354870796204, -0.05778373032808304, 0.21810835599899292, -0.30734097957611084, 0.3122776448726654, 0.48063552379608154, -0.23940062522888184, -0.033898383378982544, 0.5580880641937256, 0.05845281481742859, -0.44092682003974915, -0.08003704994916916, 0.06264901906251907, -0.2823624014854431, 0.1252661794424057, -0.1260053813457489, -0.31335633993148804, 0.2143123745918274, 0.13572771847248077, -0.33093518018722534, 0.08729276806116104, -0.0021845547016710043, 0.2281598001718521, 0.2912232577800751, -0.01048751175403595, 0.2541680335998535, -0.15388484299182892, -0.06874778866767883, -0.19486063718795776, -0.08457764983177185, 0.12884598970413208, -0.17158406972885132, 0.1198543831706047, 0.08348379284143448, -0.2312338501214981, 0.5333297848701477, -0.08734296262264252, -0.08106565475463867, -0.2449299395084381, 0.22657658159732819, -0.4178773760795593, -0.19399616122245789, 0.2046184241771698, 0.15942731499671936, 0.20937824249267578, -0.292924702167511, 0.5817344188690186, 0.12813009321689606, -0.014755841344594955, 0.022265618667006493, 0.21029506623744965, -0.2385614663362503, 0.4954979717731476, -0.32089635729789734, 0.015342794358730316, 0.09747838973999023, 0.03795887902379036, -0.1123117133975029, -0.41624242067337036, -0.0017134994268417358, 0.3313255310058594, 0.07947160303592682, 0.033913955092430115, -0.06609165668487549, 0.07745492458343506, -0.0630856454372406, -0.06489825993776321, -0.1552504450082779, -0.33883360028266907, 0.08713313192129135, 0.24869681894779205, 0.1406945437192917, 0.22041746973991394, -0.07000045478343964, -0.29225707054138184, -0.19591344892978668, 0.42913293838500977, -0.0753297209739685, 0.1774871051311493, -0.12736296653747559, 0.33775290846824646, 0.4155619442462921, 0.47500118613243103, -0.2525630593299866, 0.03442459926009178, 0.017324289306998253, 0.11185566335916519, 0.3870854675769806, -0.2391117811203003, 0.08146663755178452, 0.24841441214084625, -0.13490913808345795, 0.051803089678287506, -0.33504849672317505, -0.13617610931396484, -0.2638161778450012, 0.11020311713218689, 0.1276581585407257, -0.02230256237089634, -0.0034589983988553286, -0.12323768436908722, -0.11980542540550232, -0.07814750075340271, -0.032449036836624146, -0.3884389102458954, -0.08789344131946564, 0.10161251574754715, -0.03968040272593498, 0.05099570006132126, 0.06658043712377548, 0.17244279384613037, 0.03652730584144592, -0.09015215933322906, 0.3563346564769745, 0.09501573443412781, 0.07013782113790512, -0.1888306438922882, -0.17892122268676758, 0.033025726675987244, 0.275082528591156, 0.13742929697036743, -0.05731365084648132, 0.09799586236476898, -0.22804397344589233, -0.13112880289554596, 0.21939514577388763, 0.2030247151851654, 0.06332021206617355, -0.18328694999217987, 0.14316800236701965, 0.09377215802669525, -0.08806626498699188, -0.018855949863791466, 0.2596256732940674, 0.05844443291425705, 0.07317480444908142, 0.14480635523796082, 0.13033488392829895, 0.4414321184158325, -0.18664906919002533, 0.02775374799966812, 0.1661268174648285, -0.3665372133255005, 0.07096636295318604, -0.18210673332214355, -0.08844447135925293, 0.03827153146266937, 0.16853438317775726, -0.018214918673038483, 0.13305765390396118, -0.20956505835056305, 0.2529720962047577, 0.30159860849380493, 0.005894500762224197, 0.046243902295827866, 0.14911097288131714, -0.02869788371026516, -0.1697782427072525, 0.2183552384376526, 0.056432317942380905, 0.3445281982421875, 0.022415101528167725, 0.863653838634491, -0.2814796566963196, -0.3963293731212616, 0.15835167467594147, 0.4215184450149536, 0.030882718041539192, -0.1907222718000412, 0.10871109366416931, 0.08850988000631332, -0.336565762758255, 0.04236883297562599, 0.040767084807157516, -0.17760306596755981, 0.6901811361312866, -0.12883597612380981, 0.1388561874628067, -0.21293383836746216, -0.26014137268066406, 0.3389143645763397, 0.16052654385566711, -0.06377842277288437, 0.0496518611907959, 0.12291106581687927, -0.09556993842124939, -0.14861714839935303, 0.44161808490753174, 0.2014458030462265, 0.047055136412382126, -0.4347372055053711, -0.04199311137199402, 0.09169904887676239, 0.13363942503929138, -0.08825212717056274, 0.15209393203258514, 0.444734126329422, -0.12536853551864624, 0.2754727005958557, -0.013509723357856274, -0.03021172806620598, -0.1372750848531723, 0.13925929367542267, -0.34221434593200684, -0.3927130401134491, 0.4582686424255371, 0.09211661666631699, -0.11261185258626938, 0.07252971082925797, 0.29157793521881104, -0.6492537260055542, -0.23045456409454346, 0.26169729232788086, -0.07615020126104355, -0.020631149411201477, -0.19215111434459686, 0.07373461872339249, 0.07700330018997192, 0.637511134147644, 0.16746380925178528, 0.3145148456096649, -0.40251389145851135, -0.11776719242334366, -0.6293612122535706, -0.21573582291603088, 0.1803731918334961, -0.12264546751976013, -0.1874151974916458, 0.16825494170188904, -0.014463827013969421, 0.26258713006973267, -0.25458383560180664, 0.020723970606923103, 0.3087098002433777, 0.02765616588294506, -0.5191579461097717, 0.053908057510852814, 0.15952017903327942, 0.0964072123169899, 0.27845144271850586, -0.027890246361494064, -0.18948517739772797, 0.10421905666589737, -0.06579796969890594, -0.08151331543922424, -0.10645260661840439, 0.23841190338134766, 0.20288462936878204, 0.010246627032756805, 0.05078768730163574, 0.4970989227294922, -0.0026413947343826294, -0.16775263845920563, 0.013018496334552765, 0.0648128092288971, -0.3404303193092346, -0.1629989743232727, -0.09782415628433228, 0.21962952613830566, -0.3484892249107361, 0.3473584055900574, 0.000032364463550038636, -0.07784430682659149, 0.11882199347019196, 0.023761503398418427, -0.24898754060268402, 0.0023825112730264664, 0.0037409216165542603, 0.26035916805267334, 0.19309508800506592, 0.7248173952102661, 0.035174593329429626, 0.1639382690191269, -0.13813085854053497, -0.055489808320999146, 0.1034795492887497, -0.16063180565834045, -0.2776693105697632, -0.10796169191598892, 0.06895174086093903, 0.03907405212521553, 0.11863132566213608, -0.710185170173645, -0.37835565209388733, 0.023121368139982224, -0.023298438638448715, 0.032097551971673965, 0.6700294017791748, 0.03819718211889267, -0.1025686115026474, -0.1398167610168457, -0.3283415138721466, 0.08747228235006332, -0.22506989538669586, 0.1883772909641266, -0.3661162853240967 ]
https://github.com/huggingface/datasets/issues/217
Multi-task dataset mixing
You can use `interleave_datasets` to mix several datasets together. By default it alternates between all the datasets, but you can also provide sampling probabilities if you want to oversample from one of the datasets ```python from datasets import load_dataset, interleave_datasets squad = load_dataset("squad", split="train") cnn_dm = load_dataset("cnn_dailymail", "3.0.0", split="train") ds = interleave_datasets([squad, cnn_dm]) print(ds[0]) # {'id': '5733be284776f41900661182', # 'title': 'University_of_Notre_Dame', # 'context': 'Architecturally, the school has a Catholic character...', # 'question': 'To whom did the Virgin Mary allegedly appear in 1858 in Lourdes France?', # 'answers': {'text': ['Saint Bernadette Soubirous'], 'answer_start': [515]}, # 'article': None, # 'highlights': None} print(ds[1]) # {'id': '42c027e4ff9730fbb3de84c1af0d2c506e41c3e4', # 'title': None, # 'context': None, # 'question': None, # 'answers': None, # 'article': 'LONDON, England (Reuters) -- Harry Potter star Daniel Radcliffe...', # 'highlights': "Harry Potter star Daniel Radcliffe..."} ``` see docs at https://huggingface.co/docs/datasets/v2.6.1/en/package_reference/main_classes#datasets.interleave_datasets
It seems like many of the best performing models on the GLUE benchmark make some use of multitask learning (simultaneous training on multiple tasks). The [T5 paper](https://arxiv.org/pdf/1910.10683.pdf) highlights multiple ways of mixing the tasks together during finetuning: - **Examples-proportional mixing** - sample from tasks proportionally to their dataset size - **Equal mixing** - sample uniformly from each task - **Temperature-scaled mixing** - The generalized approach used by multilingual BERT which uses a temperature T, where the mixing rate of each task is raised to the power 1/T and renormalized. When T=1 this is equivalent to equal mixing, and becomes closer to equal mixing with increasing T. Following this discussion https://github.com/huggingface/transformers/issues/4340 in [transformers](https://github.com/huggingface/transformers), @enzoampil suggested that the `nlp` library might be a better place for this functionality. Some method for combining datasets could be implemented ,e.g. ``` dataset = nlp.load_multitask(['squad','imdb','cnn_dm'], temperature=2.0, ...) ``` We would need a few additions: - Method of identifying the tasks - how can we support adding a string to each task as an identifier: e.g. 'summarisation: '? - Method of combining the metrics - a standard approach is to use the specific metric for each task and add them together for a combined score. It would be great to support common use cases such as pretraining on the GLUE benchmark before fine-tuning on each GLUE task in turn. I'm willing to write bits/most of this I just need some guidance on the interface and other library details so I can integrate it properly.
137
Multi-task dataset mixing It seems like many of the best performing models on the GLUE benchmark make some use of multitask learning (simultaneous training on multiple tasks). The [T5 paper](https://arxiv.org/pdf/1910.10683.pdf) highlights multiple ways of mixing the tasks together during finetuning: - **Examples-proportional mixing** - sample from tasks proportionally to their dataset size - **Equal mixing** - sample uniformly from each task - **Temperature-scaled mixing** - The generalized approach used by multilingual BERT which uses a temperature T, where the mixing rate of each task is raised to the power 1/T and renormalized. When T=1 this is equivalent to equal mixing, and becomes closer to equal mixing with increasing T. Following this discussion https://github.com/huggingface/transformers/issues/4340 in [transformers](https://github.com/huggingface/transformers), @enzoampil suggested that the `nlp` library might be a better place for this functionality. Some method for combining datasets could be implemented ,e.g. ``` dataset = nlp.load_multitask(['squad','imdb','cnn_dm'], temperature=2.0, ...) ``` We would need a few additions: - Method of identifying the tasks - how can we support adding a string to each task as an identifier: e.g. 'summarisation: '? - Method of combining the metrics - a standard approach is to use the specific metric for each task and add them together for a combined score. It would be great to support common use cases such as pretraining on the GLUE benchmark before fine-tuning on each GLUE task in turn. I'm willing to write bits/most of this I just need some guidance on the interface and other library details so I can integrate it properly. You can use `interleave_datasets` to mix several datasets together. By default it alternates between all the datasets, but you can also provide sampling probabilities if you want to oversample from one of the datasets ```python from datasets import load_dataset, interleave_datasets squad = load_dataset("squad", split="train") cnn_dm = load_dataset("cnn_dailymail", "3.0.0", split="train") ds = interleave_datasets([squad, cnn_dm]) print(ds[0]) # {'id': '5733be284776f41900661182', # 'title': 'University_of_Notre_Dame', # 'context': 'Architecturally, the school has a Catholic character...', # 'question': 'To whom did the Virgin Mary allegedly appear in 1858 in Lourdes France?', # 'answers': {'text': ['Saint Bernadette Soubirous'], 'answer_start': [515]}, # 'article': None, # 'highlights': None} print(ds[1]) # {'id': '42c027e4ff9730fbb3de84c1af0d2c506e41c3e4', # 'title': None, # 'context': None, # 'question': None, # 'answers': None, # 'article': 'LONDON, England (Reuters) -- Harry Potter star Daniel Radcliffe...', # 'highlights': "Harry Potter star Daniel Radcliffe..."} ``` see docs at https://huggingface.co/docs/datasets/v2.6.1/en/package_reference/main_classes#datasets.interleave_datasets
[ -0.12710653245449066, -0.4303901195526123, -0.05866262689232826, -0.060333698987960815, -0.18614430725574493, 0.06696701794862747, 0.17817071080207825, 0.056647397577762604, 0.3097968101501465, -0.09331248700618744, -0.2814374268054962, 0.3169478476047516, -0.15864966809749603, 0.34802451729774475, 0.33229199051856995, -0.45082613825798035, 0.03268784284591675, -0.19582673907279968, -0.3287203907966614, 0.3769530653953552, 0.04790450632572174, 0.10656479001045227, -0.17642605304718018, 0.02731260284781456, -0.28609877824783325, -0.13791751861572266, -0.3505147397518158, 0.1483064591884613, 0.12416080385446548, -0.016620706766843796, 0.2014535665512085, 0.4165000915527344, 0.010661518201231956, 0.0537538081407547, -0.00010794075205922127, -0.07085221260786057, 0.18875208497047424, -0.08057336509227753, 0.08564306795597076, -0.0473460853099823, 0.10657132416963577, -0.39178621768951416, 0.0022322791628539562, -0.13418620824813843, 0.08659889549016953, 0.18428686261177063, 0.14531156420707703, -0.005673836916685104, 0.4357897639274597, -0.27172479033470154, 0.14218875765800476, 0.3266890347003937, -0.11858527362346649, 0.2425963133573532, -0.03436022996902466, -0.11767682433128357, 0.10045146197080612, 0.25087809562683105, 0.5681024789810181, -0.5677219033241272, 0.006830744445323944, 0.11504937708377838, -0.020374532788991928, 0.026366617530584335, 0.11403568834066391, -0.011573963798582554, -0.3117845356464386, -0.29008156061172485, -0.4101177155971527, 0.24493929743766785, -0.22173646092414856, -0.15051183104515076, -0.28238415718078613, -0.5440006256103516, 0.07175098359584808, -0.0072415173053741455, -0.3211630582809448, 0.05953103303909302, -0.1470986306667328, -0.04767019674181938, -0.13783738017082214, -0.07322440296411514, 0.01670587807893753, 0.15054833889007568, 0.26715031266212463, 0.5505993962287903, 0.05085403844714165, 0.14444029331207275, 0.4103429615497589, -0.013384170830249786, -0.20413507521152496, -0.294554740190506, 0.24885010719299316, 0.06411849707365036, -0.41821303963661194, -0.3228338658809662, 0.09915263950824738, -0.21063697338104248, 0.2521979808807373, 0.09839483350515366, 0.08216333389282227, 0.11934076994657516, -0.08466249704360962, 0.30736449360847473, 0.3363001048564911, 0.03520919382572174, -0.051130153238773346, -0.06334241479635239, 0.08929271996021271, -0.07739477604627609, 0.1417330801486969, 0.1471152901649475, 0.17146779596805573, -0.06314940750598907, -0.44204646348953247, -0.11389800161123276, -0.17002448439598083, 0.12137119472026825, -0.24415181577205658, -0.4631340205669403, -0.08041808009147644, -0.029963666573166847, 0.02949656918644905, -0.05749259144067764, -0.3053094148635864, 0.08971118181943893, -0.056979112327098846, 0.2347111999988556, -0.10638962686061859, 0.02632128819823265, -0.0887267217040062, 0.12548713386058807, -0.4282284677028656, -0.03619302064180374, 0.26584741473197937, 0.08345486223697662, 0.13147172331809998, 0.18665280938148499, 0.0035396218299865723, 0.11168462038040161, 0.44749072194099426, -0.03862863406538963, 0.02545984834432602, -0.046888794749975204, 0.24985411763191223, -0.35652777552604675, 0.009695127606391907, 0.11760842800140381, -0.3669065833091736, -0.18975228071212769, -0.11469577997922897, -0.11078635603189468, 0.13634978234767914, 0.0891139879822731, -0.27408939599990845, -0.2718759775161743, -0.41138365864753723, 0.6922556757926941, -0.03332792967557907, 0.010731816291809082, -0.1728941798210144, 0.252349317073822, -0.2317740023136139, -0.05866745859384537, 0.24051812291145325, 0.14977224171161652, -0.0073041170835494995, -0.3199014365673065, 0.016530953347682953, -0.07869404554367065, -0.025499515235424042, 0.3117748200893402, -0.1521853804588318, 0.12400932610034943, 0.06771579384803772, 0.14906448125839233, 0.22068029642105103, -0.4946996569633484, -0.05753997713327408, 0.2660614252090454, -0.018876168876886368, 0.36787185072898865, 0.07557151466608047, 0.16403044760227203, 0.1251334846019745, -0.17518599331378937, 0.28352606296539307, 1.0616576671600342, -0.3935778737068176, 0.010702652856707573, -0.13859161734580994, -0.3372621238231659, 0.45423340797424316, 0.36057525873184204, 0.07295472919940948, -0.35705381631851196, -0.15133848786354065, -0.038193345069885254, 0.10826069116592407, 0.046370815485715866, 0.07980827987194061, 0.0011842697858810425, -0.33267852663993835, 0.04919877648353577, -0.25205257534980774, -0.18859604001045227, -0.3310253322124481, -0.0070218294858932495, -0.023592252284288406, 0.3518635928630829, 0.27042895555496216, -0.12352202832698822, 0.22917082905769348, -0.2809334099292755, -0.1468370258808136, -0.30361974239349365, 0.18325011432170868, -0.03991173207759857, 0.08895948529243469, -0.22569334506988525, -0.029686136171221733, 0.3524514138698578, 0.09817783534526825, -0.1644696444272995, -0.556713879108429, 0.3632097840309143, -0.09425105154514313, 0.012156879529356956, 0.004493281245231628, 0.6005685329437256, -0.18009591102600098, -0.11940303444862366, 0.16213306784629822, 0.27154257893562317, -0.323914498090744, 0.24854131042957306, 0.37134885787963867, 0.23886415362358093, 0.19284687936306, -0.10667406767606735, 0.10626068711280823, -0.051151666790246964, -0.06064162775874138, -0.1765202283859253, -0.053837597370147705, 0.5608012676239014, -0.09257407486438751, 0.4385250508785248, -0.02613413892686367, 0.051956430077552795, -0.14352013170719147, -0.09176003932952881, -0.24263586103916168, 0.31324493885040283, 0.29977020621299744, -0.20775069296360016, 0.39208123087882996, -0.1065930426120758, -0.3408893048763275, 0.13943374156951904, 0.16105028986930847, 0.03642367944121361, 0.09366314113140106, -0.06674087792634964, -0.10997187346220016, -0.2514364719390869, -0.13004149496555328, 0.3231540322303772, 0.5809446573257446, 0.3292543888092041, 0.16335652768611908, 0.00976678729057312, -0.2910517752170563, -0.08629892021417618, 0.00028577446937561035, 0.1650085747241974, -0.05772148445248604, 0.16494566202163696, 0.11594946682453156, 0.014530566520988941, -0.0047581978142261505, -0.12499849498271942, 0.15666033327579498, -0.20030196011066437, -0.039465002715587616, 0.04683833569288254, -0.15243902802467346, -0.5305843949317932, -0.22315384447574615, -0.027709372341632843, -0.3478265106678009, -0.28100016713142395, 0.12571635842323303, 0.05633235350251198, -0.20467422902584076, 0.20820052921772003, 0.15491367876529694, 0.5294366478919983, -0.36414191126823425, -0.21689336001873016, -0.0389852300286293, -0.29245832562446594, -0.12843957543373108, 0.1644943803548813, 0.44990959763526917, 0.29283326864242554, 0.5027226805686951, 0.26532718539237976, -0.07548315823078156, 0.05214469134807587, -0.32755446434020996, 0.048392411321401596, -0.26875007152557373, 0.30812132358551025, 0.07515691965818405, -0.23881079256534576, 0.17448079586029053, -0.41381990909576416, 0.050177060067653656, -0.06526479125022888, -0.06543905287981033, -0.06381875276565552, -0.030596662312746048, 0.08002626895904541, -0.1625109314918518, -0.18854272365570068, -0.6450390815734863, -0.4835233688354492, 0.20143434405326843, -0.25569236278533936, 0.04226408898830414, 0.02503782883286476, -0.2340124398469925, 0.16498152911663055, -0.13588257133960724, -0.012189622968435287, -0.1641632318496704, -0.13202422857284546, 0.03570732846856117, -0.3406919240951538, -0.15012617409229279, -0.42297106981277466, -0.14476445317268372, 0.19944216310977936, -0.08066908270120621, -0.034970931708812714, -0.22116705775260925, 0.017185769975185394, -0.06722070276737213, 0.03083677589893341, 0.2639709413051605, 0.14000657200813293, -0.2402247041463852, 0.07081231474876404, -0.0558621846139431, -0.1957559734582901, 0.2097150683403015, 0.3358301520347595, 0.38557690382003784, 0.11742071807384491, 0.04100562632083893, 0.13683263957500458, 0.6644477844238281, 0.2586909234523773, -0.009910661727190018, 0.16761259734630585, 0.25653544068336487, 0.04665236920118332, 0.16461053490638733, -0.23050718009471893, 0.19094909727573395, -0.1400165855884552, 0.4323703646659851, 0.1057039424777031, 0.12180563062429428, -0.2509347200393677, -0.30880212783813477, 0.0006506741046905518, -0.18858033418655396, -0.20550352334976196, 0.22170084714889526, -0.22329294681549072, -0.0029695704579353333, -0.06239244341850281, -0.3798145651817322, -0.22305944561958313, -0.05277823284268379, -0.016780883073806763, 0.22227159142494202, -0.0751788392663002, 0.12203160673379898, -0.30733752250671387, -0.04707767441868782, -0.4912149906158447, 0.19455450773239136, 0.07248249650001526, 0.2795442044734955, -0.035633355379104614, -0.08303285390138626, -0.13571599125862122, 0.05497803911566734, 0.5891618728637695, -0.509624719619751, -0.1535423994064331, 0.11846610903739929, 0.11432729661464691, -0.10859143733978271, -0.1187608391046524, -0.29161569476127625, -0.06035439297556877, 0.4989178776741028, 0.3570448160171509, -0.3657589554786682, -0.2942212224006653, 0.2793676555156708, -0.1646893322467804, -0.06774763762950897, -0.16343176364898682, -0.24844782054424286, -0.18523654341697693, -0.14086103439331055, 0.09959843009710312, 0.1655968427658081, 0.21725089848041534, -0.13377131521701813, 0.13766266405582428, -0.11476863920688629, 0.24937865138053894, 0.17394454777240753, 0.06147436425089836, -0.001600680872797966, 0.20935842394828796, 0.18195946514606476, 0.09405401349067688, -0.10881134867668152, -0.30019229650497437, 0.129873126745224, -0.08154036104679108, 0.06147177517414093, 0.2643386721611023, 0.012623731978237629, 0.6043514609336853, 0.03236895054578781, 0.35543447732925415, 0.28479212522506714, -0.1524365395307541, 0.09865348041057587, -0.2337171882390976, 0.21104353666305542, 0.18886379897594452, 0.24371886253356934, -0.12759028375148773, -0.24019944667816162, 0.5328717231750488, 0.30038440227508545, -0.03497331961989403, 0.36755990982055664, -0.4163042902946472, -0.336672306060791, 0.34146541357040405, 0.06287292391061783, 0.651587963104248, -0.05381365120410919, 0.2796144485473633, 0.038450248539447784, -0.34661126136779785, 0.6150289177894592, -0.32642823457717896, 0.18992945551872253, -0.10606095939874649, -0.2639642655849457, 0.062141694128513336, -0.06787265092134476, -0.02689889818429947, 0.21578186750411987, -0.3633922040462494, 0.33388543128967285, 0.4036904573440552, -0.19818265736103058, -0.09201482683420181, 0.49839848279953003, -0.04485592991113663, -0.393584668636322, -0.15677885711193085, 0.13725294172763824, -0.25833946466445923, 0.059850938618183136, -0.13586443662643433, -0.2293606698513031, 0.27219679951667786, 0.12888625264167786, -0.2821515202522278, 0.12937283515930176, -0.019903331995010376, 0.1920640915632248, 0.16538897156715393, 0.03495252877473831, 0.22052867710590363, -0.18832503259181976, -0.021340951323509216, -0.13759376108646393, -0.05948411673307419, 0.1416793167591095, -0.10445327311754227, -0.004259124863892794, 0.0475669763982296, -0.17652888596057892, 0.462476909160614, -0.03296209126710892, -0.1980706751346588, -0.17605096101760864, 0.30671167373657227, -0.38628852367401123, -0.14631256461143494, 0.11912968754768372, 0.11175809800624847, 0.21513617038726807, -0.287418395280838, 0.5484271049499512, 0.12585757672786713, -0.016480732709169388, 0.08116128295660019, 0.1464872807264328, -0.3215518593788147, 0.502446174621582, -0.27584147453308105, -0.07970079779624939, 0.03881736472249031, 0.03463318571448326, -0.12961241602897644, -0.3051125407218933, 0.025442956015467644, 0.2881885766983032, 0.13809314370155334, -0.05368683487176895, 0.02274113893508911, 0.15213678777217865, -0.02935083582997322, 0.0071158260107040405, -0.14336590468883514, -0.319100022315979, 0.13810046017169952, 0.15023550391197205, 0.2273649126291275, 0.18218421936035156, -0.02644508332014084, -0.2762576639652252, -0.16454841196537018, 0.4357762932777405, 0.11076122522354126, 0.24686768651008606, -0.12208053469657898, 0.3287290036678314, 0.3468824028968811, 0.5229655504226685, -0.3170121908187866, 0.034142106771469116, -0.025845343247056007, 0.11842804402112961, 0.46024149656295776, -0.26832395792007446, 0.0657249391078949, 0.2821412980556488, -0.06369766592979431, 0.08081819117069244, -0.30602365732192993, -0.2124539315700531, -0.24043938517570496, 0.07343513518571854, 0.09913866966962814, 0.00696949427947402, -0.021343350410461426, -0.02689676359295845, -0.06815873086452484, -0.12391157448291779, 0.015446633100509644, -0.33081984519958496, -0.04719255119562149, 0.1258867383003235, -0.11789406836032867, 0.04290550947189331, 0.11376886069774628, 0.19613489508628845, 0.025441665202379227, -0.14186991751194, 0.27270638942718506, 0.14553244411945343, 0.10100264102220535, -0.1650783121585846, -0.1233077198266983, -0.032661184668540955, 0.2556568384170532, 0.12220940738916397, -0.09250570088624954, 0.13871043920516968, -0.26017892360687256, -0.05814330279827118, 0.27105724811553955, 0.25988587737083435, 0.031230192631483078, -0.12461672723293304, 0.14833655953407288, 0.18547938764095306, -0.12851198017597198, -0.0058950684033334255, 0.22539706528186798, 0.052816253155469894, 0.18559929728507996, 0.1516551673412323, 0.14756542444229126, 0.43582266569137573, -0.22405888140201569, 0.018697667866945267, 0.12480227649211884, -0.32173484563827515, 0.11198101937770844, -0.14636728167533875, 0.02664058282971382, -0.05294833704829216, 0.11023025959730148, -0.04463166370987892, 0.20878653228282928, -0.27679818868637085, 0.209916889667511, 0.34429940581321716, -0.08388185501098633, -0.00846296176314354, 0.17143657803535461, 0.00582079216837883, -0.1357652097940445, 0.3095972537994385, 0.021586120128631592, 0.3740357756614685, 0.0008864030241966248, 0.8790203332901001, -0.2934170365333557, -0.463346004486084, 0.04486249387264252, 0.4438008964061737, 0.06238064542412758, -0.25713086128234863, 0.13398928940296173, 0.09735558182001114, -0.38753336668014526, 0.1568465381860733, 0.09906712919473648, -0.16023828089237213, 0.6165001392364502, -0.12219308316707611, 0.1809001863002777, -0.1932756006717682, -0.13860207796096802, 0.37908416986465454, 0.16356614232063293, -0.15546104311943054, 0.021684467792510986, 0.15234996378421783, -0.12480306625366211, -0.17806097865104675, 0.4582005739212036, 0.24739979207515717, 0.05259227752685547, -0.43785932660102844, 0.04318031296133995, 0.10043838620185852, 0.12704074382781982, -0.11152347922325134, 0.12507450580596924, 0.41140127182006836, -0.17613668739795685, 0.2944942116737366, 0.0782260149717331, -0.11887049674987793, -0.1955038458108902, 0.004832979291677475, -0.35766586661338806, -0.39335277676582336, 0.34569987654685974, 0.10544780641794205, -0.053382329642772675, 0.020754776895046234, 0.25811195373535156, -0.6653776168823242, -0.1661427766084671, 0.2943640649318695, -0.11362320929765701, -0.06057251989841461, -0.2227535992860794, 0.10610872507095337, 0.01496390625834465, 0.6440885066986084, 0.2800518572330475, 0.3695216774940491, -0.4162359833717346, -0.1357729732990265, -0.5903721451759338, -0.15479311347007751, 0.0731542557477951, -0.1306045651435852, -0.2987176179885864, 0.2296399474143982, -0.06700960546731949, 0.2752018868923187, -0.1881607621908188, 0.14242933690547943, 0.2041570395231247, 0.053599778562784195, -0.46419668197631836, 0.07194679975509644, 0.019862420856952667, 0.005235559307038784, 0.3208669424057007, -0.09602959454059601, -0.19912223517894745, 0.0992460772395134, -0.029975557699799538, -0.026253540068864822, -0.0665881410241127, 0.24200770258903503, 0.10704469680786133, 0.09168624877929688, 0.08043012022972107, 0.5207409858703613, -0.076906219124794, -0.1367960423231125, -0.026706162840127945, -0.04888671636581421, -0.43608909845352173, -0.18967872858047485, -0.0856238603591919, 0.2238977998495102, -0.3518708646297455, 0.23723168671131134, -0.014905976131558418, -0.03790360689163208, 0.17070116102695465, -0.008785521611571312, -0.16390520334243774, -0.06427061557769775, 0.12791317701339722, 0.21038588881492615, 0.16508612036705017, 0.7301548719406128, 0.038475461304187775, 0.11089809238910675, -0.0644807443022728, -0.0770287737250328, 0.08995214104652405, -0.06748822331428528, -0.26028451323509216, -0.19383834302425385, 0.04111345857381821, 0.1593083143234253, 0.0613769069314003, -0.6479718089103699, -0.29066789150238037, 0.024911243468523026, -0.006049532443284988, 0.01823492720723152, 0.7162938714027405, 0.13597701489925385, -0.10599581152200699, -0.1440063863992691, -0.3202381134033203, 0.06347375363111496, -0.2974938154220581, 0.18891079723834991, -0.3642340302467346 ]
https://github.com/huggingface/datasets/issues/217
Multi-task dataset mixing
I also have this implementation of multi-task sampler here which I used it to tune T5: https://github.com/rabeehk/hyperformer/blob/main/hyperformer/data/multitask_sampler.py
It seems like many of the best performing models on the GLUE benchmark make some use of multitask learning (simultaneous training on multiple tasks). The [T5 paper](https://arxiv.org/pdf/1910.10683.pdf) highlights multiple ways of mixing the tasks together during finetuning: - **Examples-proportional mixing** - sample from tasks proportionally to their dataset size - **Equal mixing** - sample uniformly from each task - **Temperature-scaled mixing** - The generalized approach used by multilingual BERT which uses a temperature T, where the mixing rate of each task is raised to the power 1/T and renormalized. When T=1 this is equivalent to equal mixing, and becomes closer to equal mixing with increasing T. Following this discussion https://github.com/huggingface/transformers/issues/4340 in [transformers](https://github.com/huggingface/transformers), @enzoampil suggested that the `nlp` library might be a better place for this functionality. Some method for combining datasets could be implemented ,e.g. ``` dataset = nlp.load_multitask(['squad','imdb','cnn_dm'], temperature=2.0, ...) ``` We would need a few additions: - Method of identifying the tasks - how can we support adding a string to each task as an identifier: e.g. 'summarisation: '? - Method of combining the metrics - a standard approach is to use the specific metric for each task and add them together for a combined score. It would be great to support common use cases such as pretraining on the GLUE benchmark before fine-tuning on each GLUE task in turn. I'm willing to write bits/most of this I just need some guidance on the interface and other library details so I can integrate it properly.
17
Multi-task dataset mixing It seems like many of the best performing models on the GLUE benchmark make some use of multitask learning (simultaneous training on multiple tasks). The [T5 paper](https://arxiv.org/pdf/1910.10683.pdf) highlights multiple ways of mixing the tasks together during finetuning: - **Examples-proportional mixing** - sample from tasks proportionally to their dataset size - **Equal mixing** - sample uniformly from each task - **Temperature-scaled mixing** - The generalized approach used by multilingual BERT which uses a temperature T, where the mixing rate of each task is raised to the power 1/T and renormalized. When T=1 this is equivalent to equal mixing, and becomes closer to equal mixing with increasing T. Following this discussion https://github.com/huggingface/transformers/issues/4340 in [transformers](https://github.com/huggingface/transformers), @enzoampil suggested that the `nlp` library might be a better place for this functionality. Some method for combining datasets could be implemented ,e.g. ``` dataset = nlp.load_multitask(['squad','imdb','cnn_dm'], temperature=2.0, ...) ``` We would need a few additions: - Method of identifying the tasks - how can we support adding a string to each task as an identifier: e.g. 'summarisation: '? - Method of combining the metrics - a standard approach is to use the specific metric for each task and add them together for a combined score. It would be great to support common use cases such as pretraining on the GLUE benchmark before fine-tuning on each GLUE task in turn. I'm willing to write bits/most of this I just need some guidance on the interface and other library details so I can integrate it properly. I also have this implementation of multi-task sampler here which I used it to tune T5: https://github.com/rabeehk/hyperformer/blob/main/hyperformer/data/multitask_sampler.py
[ -0.07000962644815445, -0.4241245687007904, -0.04552070051431656, -0.03830605745315552, -0.2625528573989868, 0.0783718004822731, 0.16986820101737976, 0.07750941812992096, 0.27277249097824097, -0.12226806581020355, -0.21622347831726074, 0.2969951331615448, -0.2223670482635498, 0.4062432646751404, 0.3813335597515106, -0.4513174593448639, 0.005317218601703644, -0.20523837208747864, -0.24213194847106934, 0.41682201623916626, 0.07559213042259216, 0.11216913908720016, -0.16223958134651184, 0.09314902126789093, -0.32293811440467834, -0.11518222838640213, -0.32664477825164795, 0.08791114389896393, 0.16579683125019073, 0.06400666385889053, 0.1805066615343094, 0.38867107033729553, -0.025892943143844604, 0.10783404111862183, -0.00011514758807606995, -0.033687230199575424, 0.14448770880699158, -0.05543036013841629, 0.1520608514547348, -0.025382980704307556, 0.19749680161476135, -0.4060666263103485, 0.03804994374513626, -0.1078202947974205, 0.1929672658443451, 0.17833516001701355, 0.2566983699798584, 0.1249413788318634, 0.3773706555366516, -0.3132988512516022, 0.0915646031498909, 0.3095932900905609, -0.16435062885284424, 0.315377414226532, -0.06450391560792923, -0.116264209151268, 0.026802821084856987, 0.2562035918235779, 0.6400035619735718, -0.5405041575431824, -0.0029113516211509705, 0.12308475375175476, 0.00583689846098423, 0.02378474920988083, 0.11061403155326843, -0.058831192553043365, -0.31376591324806213, -0.24183332920074463, -0.4091794192790985, 0.20880267024040222, -0.12510734796524048, -0.11445208638906479, -0.18698439002037048, -0.5343977212905884, -0.0322740338742733, 0.08039833605289459, -0.2853788733482361, -0.018402239307761192, -0.1810726523399353, -0.032870467752218246, -0.12147988379001617, -0.12542781233787537, -0.036423783749341965, 0.126059889793396, 0.3526339530944824, 0.528007984161377, 0.1191362589597702, 0.1543409526348114, 0.3326306939125061, 0.08071188628673553, -0.11026319116353989, -0.25666868686676025, 0.30316999554634094, 0.13138438761234283, -0.4038916826248169, -0.37763410806655884, 0.16074922680854797, -0.31253448128700256, 0.26047953963279724, 0.10866323858499527, 0.18434740602970123, 0.11079202592372894, -0.15574699640274048, 0.24659594893455505, 0.31846094131469727, 0.005875280126929283, -0.12485452741384506, -0.10557429492473602, 0.04704248160123825, -0.13263113796710968, 0.15687422454357147, 0.11924300342798233, 0.1686529815196991, -0.052446797490119934, -0.40283143520355225, -0.12687033414840698, -0.15850375592708588, 0.14174745976924896, -0.21405014395713806, -0.5522439479827881, -0.1318701207637787, -0.146246537566185, 0.04647153243422508, -0.10404714196920395, -0.3038039207458496, 0.14542566239833832, -0.08555836975574493, 0.16552114486694336, -0.15517356991767883, 0.036576494574546814, -0.03909893333911896, 0.08535480499267578, -0.4355929493904114, -0.043464213609695435, 0.30559033155441284, 0.11018030345439911, 0.0949675664305687, 0.1550157368183136, 0.006857577711343765, 0.1452186554670334, 0.46980246901512146, -0.00933777540922165, -0.042363159358501434, -0.010112132877111435, 0.20889189839363098, -0.308079332113266, -0.04573734477162361, 0.28197377920150757, -0.34231674671173096, -0.11488433927297592, -0.19496622681617737, -0.2006610482931137, 0.1412445604801178, 0.012507745064795017, -0.22661153972148895, -0.3141151964664459, -0.42811253666877747, 0.6737837195396423, -0.007415361702442169, -0.102272629737854, -0.1879173219203949, 0.2307419329881668, -0.2266787588596344, -0.09367293119430542, 0.15107829868793488, -0.013670727610588074, -0.012276925146579742, -0.32929620146751404, -0.07523714751005173, -0.08759430050849915, -0.008385464549064636, 0.2492254078388214, -0.1471114158630371, 0.22833234071731567, 0.09793677926063538, 0.1905605047941208, 0.28145214915275574, -0.4973101019859314, -0.020096315070986748, 0.30971047282218933, -0.07776368409395218, 0.3713184595108032, 0.08633112162351608, 0.23913580179214478, 0.01173173077404499, -0.19327136874198914, 0.2157370001077652, 1.0473370552062988, -0.3541569113731384, -0.008222857490181923, -0.1206880509853363, -0.3663922846317291, 0.5548877120018005, 0.3829216957092285, 0.1079520583152771, -0.34827345609664917, -0.130941241979599, 0.08119115233421326, 0.05621631443500519, 0.06524496525526047, 0.09605620056390762, -0.06365508586168289, -0.3259526789188385, 0.070076584815979, -0.18746381998062134, -0.19867092370986938, -0.35453808307647705, 0.00935107097029686, -0.013997549191117287, 0.3321695625782013, 0.3708043694496155, -0.09673985838890076, 0.28492507338523865, -0.3198780119419098, -0.150913804769516, -0.3408268094062805, 0.10746204853057861, -0.043496958911418915, -0.01709683984518051, -0.2655375599861145, -0.03745775669813156, 0.25116991996765137, 0.1229085922241211, -0.12811625003814697, -0.4236947298049927, 0.3371996283531189, -0.07489988952875137, 0.049029603600502014, -0.038457274436950684, 0.6420264840126038, -0.24599936604499817, -0.06599662452936172, 0.16785606741905212, 0.3051320016384125, -0.30967482924461365, 0.1960597038269043, 0.3276497423648834, 0.28433191776275635, 0.15903973579406738, -0.0770653486251831, 0.0766669362783432, 0.020936928689479828, -0.04997101426124573, -0.20741695165634155, -0.037203043699264526, 0.4820270538330078, -0.14075125753879547, 0.4215782880783081, -0.0386151447892189, -0.0003845132887363434, -0.20212148129940033, -0.0308765210211277, -0.1638139933347702, 0.416748046875, 0.3255131244659424, -0.28691646456718445, 0.3132709264755249, -0.1481771171092987, -0.38797327876091003, 0.21152178943157196, 0.15332143008708954, 0.031501997262239456, 0.05512268841266632, 0.010960426181554794, 0.004515692591667175, -0.3168264329433441, -0.14910410344600677, 0.3366466760635376, 0.6374138593673706, 0.2404322773218155, 0.13961754739284515, -0.01241983287036419, -0.22076191008090973, -0.06366737931966782, 0.04194505512714386, 0.190382182598114, -0.04713821783661842, 0.16778098046779633, 0.05049727484583855, 0.0720737874507904, 0.08657438308000565, -0.1926993429660797, 0.1909773349761963, -0.1510532796382904, -0.1251613348722458, 0.002283576875925064, -0.2270193248987198, -0.595693826675415, -0.1879763901233673, 0.03910724073648453, -0.3065325915813446, -0.27320075035095215, 0.13990215957164764, 0.07095828652381897, -0.1312769502401352, 0.14682462811470032, 0.2097654640674591, 0.5628730058670044, -0.4255274832248688, -0.2082889825105667, -0.02361300215125084, -0.28853338956832886, -0.13670501112937927, 0.12415286898612976, 0.4490598738193512, 0.320975661277771, 0.4307636022567749, 0.30131256580352783, -0.0972883403301239, 0.10540829598903656, -0.37185072898864746, 0.06056126207113266, -0.34493154287338257, 0.2772742807865143, 0.1358538269996643, -0.19212062656879425, 0.1476767510175705, -0.36367037892341614, -0.06570103764533997, -0.05155833065509796, -0.08998193591833115, -0.005133643746376038, -0.02835254557430744, 0.07950076460838318, -0.2093651294708252, -0.1717546582221985, -0.6247485876083374, -0.43301618099212646, 0.23727431893348694, -0.24299387633800507, 0.09461953490972519, 0.051820058375597, -0.300377756357193, 0.2122659981250763, -0.09254228323698044, 0.021559495478868484, -0.14637935161590576, -0.07724997401237488, 0.019258305430412292, -0.396745890378952, -0.13446342945098877, -0.37576383352279663, -0.041091594845056534, 0.21197569370269775, -0.07920973747968674, -0.040628403425216675, -0.26993054151535034, 0.07876535505056381, -0.12397247552871704, 0.09659164398908615, 0.18627819418907166, 0.15362685918807983, -0.2042074203491211, 0.12325139343738556, -0.06294630467891693, -0.20654520392417908, 0.2676718831062317, 0.3239448368549347, 0.4090091586112976, 0.18209579586982727, -0.010041158646345139, 0.18858782947063446, 0.740533173084259, 0.20430967211723328, 0.06838161498308182, 0.1813063621520996, 0.2494259476661682, -0.07204180955886841, 0.1553599238395691, -0.162131205201149, 0.23639900982379913, -0.18499243259429932, 0.4904295802116394, 0.07664899528026581, 0.14373114705085754, -0.1617823839187622, -0.30818572640419006, 0.039337772876024246, -0.3031902611255646, -0.16378077864646912, 0.21036875247955322, -0.2705433964729309, 0.04609484225511551, -0.10816614329814911, -0.44714120030403137, -0.26364850997924805, -0.08228732645511627, -0.0011296430602669716, 0.2969619333744049, -0.015178926289081573, 0.154124915599823, -0.36397483944892883, -0.07402350008487701, -0.3976190984249115, 0.14558014273643494, 0.06462590396404266, 0.28248676657676697, -0.08791592717170715, -0.05667498707771301, -0.08650803565979004, 0.09151505678892136, 0.5626269578933716, -0.5426413416862488, -0.05776902288198471, 0.10798744857311249, 0.0774749368429184, -0.0730176717042923, -0.13950654864311218, -0.3247874081134796, -0.007315826136618853, 0.4186895787715912, 0.35045942664146423, -0.35987409949302673, -0.2995353639125824, 0.3083777129650116, -0.2733316421508789, -0.083548404276371, -0.1575630009174347, -0.22769951820373535, -0.21861517429351807, -0.07130028307437897, -0.02461579442024231, 0.22475005686283112, 0.2639053761959076, -0.13711614906787872, 0.19375935196876526, -0.04221596568822861, 0.2073894739151001, 0.23063120245933533, -0.004604793153703213, -0.08777916431427002, 0.2265062928199768, 0.19321636855602264, 0.04617246985435486, -0.1744685024023056, -0.3294869661331177, 0.02267421782016754, -0.07784155011177063, 0.06818903982639313, 0.3296847939491272, -0.03794947639107704, 0.6607174873352051, -0.0035238116979599, 0.3195711374282837, 0.3290170431137085, -0.15457138419151306, 0.013232201337814331, -0.1876119077205658, 0.2042664736509323, 0.23050753772258759, 0.28317177295684814, -0.1121559590101242, -0.25964877009391785, 0.5109792351722717, 0.3371725082397461, -0.06292074918746948, 0.4027678668498993, -0.6328794360160828, -0.2903113067150116, 0.2593945264816284, 0.0847332775592804, 0.6560465693473816, -0.004923991858959198, 0.2913092076778412, 0.0980423092842102, -0.38993871212005615, 0.5405813455581665, -0.3705134391784668, 0.1403254270553589, -0.05672256276011467, -0.23263128101825714, 0.008572490885853767, -0.07280787825584412, -0.10495608299970627, 0.23779931664466858, -0.34623467922210693, 0.32199835777282715, 0.4458799362182617, -0.2330474853515625, -0.06460002809762955, 0.47942930459976196, 0.027377787977457047, -0.32531970739364624, 0.028871405869722366, 0.04876238852739334, -0.33295613527297974, 0.09459473192691803, -0.18383920192718506, -0.2385377138853073, 0.24813637137413025, 0.1894444078207016, -0.32439178228378296, 0.048725880682468414, 0.017088474705815315, 0.16863584518432617, 0.244942769408226, 0.0198427215218544, 0.25888311862945557, -0.1907789707183838, -0.10015572607517242, -0.1949247568845749, -0.06666532158851624, 0.11874283850193024, -0.19102495908737183, 0.07712521404027939, 0.13063929975032806, -0.15687444806098938, 0.5165697336196899, -0.09123446047306061, -0.11817233264446259, -0.18971264362335205, 0.26731759309768677, -0.45201337337493896, -0.22107967734336853, 0.0865652859210968, 0.1242675855755806, 0.24778123199939728, -0.31236112117767334, 0.5811923742294312, 0.12980744242668152, 0.0005809962749481201, 0.02292991429567337, 0.1321553885936737, -0.22681206464767456, 0.47619178891181946, -0.346000999212265, -0.0031109973788261414, 0.10057923197746277, 0.0033642128109931946, -0.1032971516251564, -0.38661742210388184, -0.040223315358161926, 0.32919931411743164, 0.14774395525455475, 0.03750652074813843, 0.05835738033056259, 0.11576510220766068, -0.07528708875179291, 0.004623184911906719, -0.12405910342931747, -0.31461477279663086, 0.1520441323518753, 0.2603980302810669, 0.17903782427310944, 0.22905731201171875, -0.09044249355792999, -0.301751971244812, -0.14359083771705627, 0.4692807197570801, -0.009985852986574173, 0.20902757346630096, -0.17794346809387207, 0.39734315872192383, 0.4282180070877075, 0.5063937902450562, -0.2424321472644806, 0.06805030256509781, 0.05071397125720978, 0.09022584557533264, 0.43755021691322327, -0.21765044331550598, 0.032387882471084595, 0.30378061532974243, -0.1597617268562317, 0.020273404195904732, -0.2885449528694153, -0.13309842348098755, -0.22661063075065613, 0.1199432909488678, 0.10005082935094833, 0.03952248394489288, 0.007981108501553535, -0.06594125926494598, -0.11615243554115295, -0.03620871528983116, -0.001071300357580185, -0.4049781560897827, -0.07360075414180756, 0.17781496047973633, -0.12163044512271881, 0.028156518936157227, 0.04490850865840912, 0.25634413957595825, 0.034427572041749954, -0.07223832607269287, 0.35286208987236023, 0.14321406185626984, 0.1393764168024063, -0.18522553145885468, -0.19867601990699768, -0.009650573134422302, 0.3047305941581726, 0.1481173038482666, -0.10113496333360672, 0.13653290271759033, -0.2251148819923401, -0.18555767834186554, 0.18762025237083435, 0.1572217345237732, 0.04762398079037666, -0.15266259014606476, 0.1357034146785736, 0.0931442454457283, -0.07309441268444061, 0.017490066587924957, 0.16422025859355927, 0.09338757395744324, 0.05517324432730675, 0.07809558510780334, 0.11055125296115875, 0.43503010272979736, -0.24988935887813568, 0.07053778320550919, 0.09293938428163528, -0.3107515573501587, 0.10492353141307831, -0.08134928345680237, -0.07182110100984573, -0.005923684686422348, 0.13164007663726807, -0.0811619758605957, 0.13390401005744934, -0.32757407426834106, 0.34886741638183594, 0.3361927568912506, 0.037013303488492966, 0.008969303220510483, 0.13886794447898865, -0.0176150631159544, -0.16260063648223877, 0.3213658928871155, 0.01496277004480362, 0.38499346375465393, 0.0663963109254837, 0.9059943556785583, -0.25544795393943787, -0.4427781403064728, 0.11325075477361679, 0.4636473059654236, 0.08645325899124146, -0.22450068593025208, 0.0985792875289917, 0.08869873732328415, -0.38316163420677185, 0.13088345527648926, 0.04846584051847458, -0.11529575288295746, 0.632683515548706, -0.08368755877017975, 0.12122762203216553, -0.14614233374595642, -0.21866151690483093, 0.37611207365989685, 0.1512928158044815, -0.07571351528167725, 0.004212925210595131, 0.10738574713468552, -0.08054597675800323, -0.16386909782886505, 0.5175262689590454, 0.1791163682937622, -0.019783522933721542, -0.477067232131958, -0.03215285390615463, 0.08094306290149689, 0.18771891295909882, 0.011968785896897316, 0.14830362796783447, 0.43105390667915344, -0.19275379180908203, 0.2425968199968338, -0.031236611306667328, -0.048361893743276596, -0.11465053260326385, 0.07391625642776489, -0.39585885405540466, -0.41833779215812683, 0.43222925066947937, 0.13242097198963165, -0.1507682204246521, 0.16897906363010406, 0.3536405563354492, -0.6404687166213989, -0.25802379846572876, 0.29794812202453613, -0.1426016241312027, -0.1380995362997055, -0.20603641867637634, 0.07234769314527512, 0.048126377165317535, 0.655113160610199, 0.21861636638641357, 0.3190312385559082, -0.3468814790248871, -0.14686454832553864, -0.5718739628791809, -0.14980021119117737, 0.13009008765220642, -0.11252669245004654, -0.2265172004699707, 0.10042877495288849, -0.06677473336458206, 0.26027482748031616, -0.1709073930978775, 0.15597617626190186, 0.22152256965637207, 0.1114172488451004, -0.4449344873428345, 0.10953862965106964, 0.1322132647037506, 0.0775567889213562, 0.2354346215724945, -0.06720370054244995, -0.19256888329982758, 0.07914100587368011, -0.08477845788002014, -0.10181862860918045, -0.14708782732486725, 0.328838974237442, 0.1248115822672844, 0.12358563393354416, 0.045215241611003876, 0.4796939790248871, -0.003960529342293739, -0.12146681547164917, 0.0093008354306221, 0.047539494931697845, -0.3492676913738251, -0.20253559947013855, -0.08114930987358093, 0.14829443395137787, -0.3486716151237488, 0.3465521037578583, 0.012570814229547977, -0.08276259899139404, 0.08913619816303253, 0.06356879323720932, -0.1614188402891159, -0.10143347084522247, 0.05997995287179947, 0.20427502691745758, 0.23272369801998138, 0.6975561380386353, 0.004621032625436783, 0.07781315594911575, -0.13074931502342224, -0.02551010623574257, -0.0208006352186203, -0.08278161287307739, -0.21210408210754395, -0.15574701130390167, 0.1025470644235611, -0.001618310809135437, 0.13239282369613647, -0.6879081130027771, -0.3926488161087036, 0.031432416290044785, 0.0681171640753746, 0.0004405863583087921, 0.7513898015022278, 0.1328798234462738, -0.11733856797218323, -0.09560557454824448, -0.35683706402778625, 0.01186651736497879, -0.2242700308561325, 0.13514257967472076, -0.36041390895843506 ]
https://github.com/huggingface/datasets/issues/216
❓ How to get ROUGE-2 with the ROUGE metric ?
For the rouge2 metric you can do ```python rouge = nlp.load_metric('rouge') with open("pred.txt") as p, open("ref.txt") as g: for lp, lg in zip(p, g): rouge.add(lp, lg) score = rouge.compute(rouge_types=["rouge2"]) ``` Note that I just did a PR to have both `.add` and `.add_batch` for metrics, that's why now this is `rouge.add(lp, lg)` and not `rouge.add([lp], [lg])`
I'm trying to use ROUGE metric, but I don't know how to get the ROUGE-2 metric. --- I compute scores with : ```python import nlp rouge = nlp.load_metric('rouge') with open("pred.txt") as p, open("ref.txt") as g: for lp, lg in zip(p, g): rouge.add([lp], [lg]) score = rouge.compute() ``` then : _(print only the F-score for readability)_ ```python for k, s in score.items(): print(k, s.mid.fmeasure) ``` It gives : >rouge1 0.7915168355671788 rougeL 0.7915168355671788 --- **How can I get the ROUGE-2 score ?** Also, it's seems weird that ROUGE-1 and ROUGE-L scores are the same. Did I made a mistake ? @lhoestq
56
❓ How to get ROUGE-2 with the ROUGE metric ? I'm trying to use ROUGE metric, but I don't know how to get the ROUGE-2 metric. --- I compute scores with : ```python import nlp rouge = nlp.load_metric('rouge') with open("pred.txt") as p, open("ref.txt") as g: for lp, lg in zip(p, g): rouge.add([lp], [lg]) score = rouge.compute() ``` then : _(print only the F-score for readability)_ ```python for k, s in score.items(): print(k, s.mid.fmeasure) ``` It gives : >rouge1 0.7915168355671788 rougeL 0.7915168355671788 --- **How can I get the ROUGE-2 score ?** Also, it's seems weird that ROUGE-1 and ROUGE-L scores are the same. Did I made a mistake ? @lhoestq For the rouge2 metric you can do ```python rouge = nlp.load_metric('rouge') with open("pred.txt") as p, open("ref.txt") as g: for lp, lg in zip(p, g): rouge.add(lp, lg) score = rouge.compute(rouge_types=["rouge2"]) ``` Note that I just did a PR to have both `.add` and `.add_batch` for metrics, that's why now this is `rouge.add(lp, lg)` and not `rouge.add([lp], [lg])`
[ 0.08258204162120819, -0.44010496139526367, -0.09260909259319305, 0.38070356845855713, -0.05949265509843826, -0.13712093234062195, -0.35067668557167053, 0.09061768651008606, 0.023502159863710403, 0.2352946400642395, -0.25593101978302, 0.16841143369674683, -0.021551139652729034, 0.0022069215774536133, 0.09740152955055237, -0.3178660273551941, 0.03742267191410065, -0.034754931926727295, 0.16254691779613495, -0.2055853307247162, -0.15831097960472107, 0.356431782245636, -0.06627952307462692, 0.26760727167129517, 0.05491023510694504, 0.22830085456371307, 0.18456700444221497, 0.20209914445877075, -0.41247689723968506, -0.1735793799161911, 0.14888425171375275, 0.0051131099462509155, 0.23019830882549286, 0.2997400164604187, -0.0001134504855144769, -0.2268579602241516, 0.16347791254520416, -0.09964266419410706, 0.10824280977249146, -0.5389805436134338, 0.06842201948165894, -0.2803027331829071, -0.11710111796855927, -0.05036032572388649, -0.07701845467090607, -0.2652801275253296, -0.3086020052433014, -0.15958598256111145, 0.30006319284439087, 0.1558423638343811, 0.13660463690757751, -0.2055419385433197, -0.062215130776166916, -0.10612641274929047, 0.2618376314640045, -0.10174669325351715, 0.11459255963563919, 0.5414427518844604, 0.26489225029945374, 0.003536834381520748, 0.1269044578075409, 0.1456473022699356, 0.2574689984321594, 0.06553100049495697, 0.30028995871543884, 0.2113054245710373, 0.3186531066894531, -0.11210106313228607, -0.19202911853790283, 0.28055816888809204, 0.12960198521614075, -0.13421297073364258, -0.3024219274520874, 0.1002635732293129, 0.0776543915271759, -0.5770202875137329, -0.2875578701496124, -0.10818707942962646, 0.15919622778892517, -0.21189621090888977, -0.19137603044509888, -0.04324132949113846, -0.15449820458889008, 0.10635021328926086, 0.07333315908908844, -0.01129799336194992, -0.05365895852446556, 0.19882217049598694, 0.1840655356645584, -0.003398492932319641, -0.5394594073295593, 0.21521317958831787, -0.3142090141773224, 0.2942137122154236, -0.3065522015094757, -0.09514329582452774, 0.18695181608200073, 0.40665122866630554, 0.10325291007757187, 0.34898072481155396, 0.11953515559434891, -0.25807124376296997, -0.276250422000885, 0.08729390799999237, -0.06995877623558044, 0.40451472997665405, 0.19604900479316711, 0.3381272852420807, -0.02844185382127762, 0.0692700743675232, 0.19545647501945496, -0.06287258863449097, 0.2469356209039688, -0.477272629737854, -0.0635712519288063, 0.4770826995372772, -0.007767684757709503, -0.5834078192710876, -0.45880016684532166, -0.028732985258102417, -0.337941437959671, -0.20796924829483032, 0.15753036737442017, 0.10549385845661163, -0.20728492736816406, 0.3233109712600708, -0.03419417142868042, 0.2794031500816345, -0.32626035809516907, -0.11367306113243103, -0.15017758309841156, 0.20628590881824493, -0.20226116478443146, 0.22359450161457062, 0.15394018590450287, 0.17765820026397705, 0.25622332096099854, 0.21195372939109802, 0.26916396617889404, 0.05984477698802948, 0.20626835525035858, -0.23722730576992035, -0.11752673238515854, -0.14814871549606323, -0.034479256719350815, 0.07741130143404007, 0.18840651214122772, -0.2724803686141968, -0.12267469614744186, -0.07505438476800919, -0.3015035390853882, -0.008742023259401321, 0.1592017412185669, 0.13326124846935272, 0.12585966289043427, 0.01642276532948017, -0.2135913074016571, 0.35480761528015137, -0.1503959596157074, -0.26945260167121887, 0.20135021209716797, -0.07212796062231064, -0.25833049416542053, -0.12636500597000122, 0.2293126881122589, -0.32643377780914307, -0.1708662509918213, 0.044310323894023895, 0.2678411304950714, -0.08543537557125092, 0.05896638706326485, 0.36661991477012634, 0.0015425438759848475, 0.19801276922225952, -0.152105450630188, -0.5923181176185608, 0.6651839017868042, -0.7773885726928711, -0.0657988041639328, -0.0005516390083357692, -0.11361770331859589, -0.15772926807403564, 0.1390875279903412, 0.029331710189580917, -0.2963539659976959, -0.20137417316436768, 0.34006667137145996, -0.03110412508249283, -0.15011003613471985, -0.3194093108177185, -0.09263499081134796, 0.3367893099784851, 0.45280522108078003, -0.162891685962677, -0.042493876069784164, -0.1178131178021431, -0.08548735827207565, -0.041740015149116516, 0.4088156819343567, 0.06966544687747955, -0.12715478241443634, 0.02189374342560768, -0.1831500083208084, 0.1643563210964203, 0.2299869805574417, -0.29093775153160095, 0.2540508210659027, 0.10766635090112686, -0.9638228416442871, -0.22757413983345032, 0.45330995321273804, -0.25475794076919556, -0.6550410985946655, -0.20376738905906677, 0.30906233191490173, -0.2672729790210724, 0.09786127507686615, -0.1616646945476532, 0.36612918972969055, 0.06151788309216499, -0.12694710493087769, 0.09669701755046844, 0.06017633527517319, -0.0041923378594219685, -0.3270723223686218, -0.132618710398674, 0.10517547279596329, 0.07881314307451248, 0.25295382738113403, 0.45298388600349426, 0.45500147342681885, 0.26617830991744995, 0.147607684135437, 0.23407474160194397, 0.2281714677810669, 0.1169736385345459, 0.31659623980522156, 0.2823443114757538, 0.16588692367076874, 0.06817057728767395, -0.06692568957805634, 0.459151029586792, 0.31604012846946716, -0.16271641850471497, -0.19575482606887817, 0.4131931662559509, -0.48462238907814026, 0.12427674233913422, 0.02790394425392151, 0.012189032509922981, -0.2059752196073532, 0.12720182538032532, -0.40661945939064026, 0.004662849009037018, 0.23972122371196747, -0.10887426137924194, 0.13831037282943726, -0.26548027992248535, 0.0767369419336319, -0.06142424792051315, 0.1953817754983902, 0.021580547094345093, -0.03668437898159027, -0.13535955548286438, -0.0005477964878082275, -0.043357089161872864, -0.09061414748430252, -0.208299458026886, 0.18548229336738586, 0.17604273557662964, 0.22323313355445862, 0.12233266234397888, -0.36821749806404114, -0.18412533402442932, -0.053566448390483856, -0.057328253984451294, 0.016051122918725014, 0.023729152977466583, 0.1110256016254425, -0.04540076106786728, 0.1383507251739502, -0.2840765714645386, -0.2592443525791168, 0.1057535856962204, -0.3508685827255249, 0.10057386755943298, -0.09940079599618912, -0.11004436016082764, -0.17763249576091766, -0.5282859802246094, -0.13439419865608215, -0.34777572751045227, -0.026152130216360092, 0.0755162313580513, 0.29761719703674316, -0.20343047380447388, 0.21936537325382233, 0.18032529950141907, -0.10814515501260757, 0.32815566658973694, 0.10603326559066772, -0.21060959994792938, -0.26792067289352417, 0.17807558178901672, -0.22155331075191498, 0.007939942181110382, 0.24635498225688934, -0.12963087856769562, -0.007005725987255573, 0.1543601006269455, -0.25496208667755127, -0.09858165681362152, -0.053938403725624084, 0.22666513919830322, 0.062423884868621826, -0.28835731744766235, -0.20405584573745728, 0.30453163385391235, 0.23586595058441162, -0.02450869046151638, -0.26168814301490784, 0.0340939462184906, -0.19851431250572205, 0.20603421330451965, 0.05212938413023949, -0.18085166811943054, 0.06330075860023499, -0.08067449927330017, 0.4839152693748474, 0.24622277915477753, -0.07296426594257355, 0.2791997790336609, -0.311818391084671, 0.2519315481185913, 0.3141078054904938, 0.37752342224121094, -0.3375566005706787, -0.28468164801597595, 0.315016508102417, -0.41623109579086304, -0.3131348192691803, -0.09678278863430023, 0.06253855675458908, -0.013087011873722076, -0.08516290038824081, 0.06593038141727448, -0.34703466296195984, 0.03881426900625229, -0.041319143027067184, -0.12303449213504791, 0.18541407585144043, 0.24729041755199432, -0.2666773498058319, -0.05914133042097092, -0.1068543791770935, 0.08153608441352844, -0.013448558747768402, 0.1035359799861908, 0.5398589968681335, -0.27826377749443054, 0.117823526263237, 0.131010964512825, 0.34448766708374023, 0.37147149443626404, 0.4343833029270172, 0.0548284575343132, 0.16002978384494781, 0.02915659174323082, 0.08967357873916626, -0.17208240926265717, 0.30430707335472107, 0.07725393772125244, -0.1583985835313797, 0.0700274258852005, 0.1549832820892334, 0.42408955097198486, -0.28693416714668274, -0.032307256013154984, -0.10815930366516113, 0.10678993165493011, -0.0826004147529602, -0.2662002146244049, -0.03960231691598892, -0.08259380608797073, 0.042218051850795746, -0.12649734318256378, -0.10205932706594467, 0.3080262839794159, 0.03628868609666824, 0.20763370394706726, 0.19738034904003143, -0.3730538487434387, -0.08607993274927139, -0.30505019426345825, 0.47342848777770996, 0.09159234166145325, -0.0030343029648065567, 0.12427808344364166, 0.09895528107881546, -0.01705591380596161, -0.19436310231685638, 0.44468075037002563, 0.03608640655875206, 0.19325850903987885, 0.29458656907081604, -0.1920693814754486, -0.6826246976852417, -0.17620965838432312, -0.3117482662200928, 0.2777722477912903, 0.16995836794376373, 0.08621383458375931, -0.17443926632404327, 0.0578865110874176, 0.19328707456588745, 0.0027844111900776625, -0.18975919485092163, 0.02719808742403984, -0.3189562261104584, 0.015281807631254196, 0.3253985345363617, -0.2173696756362915, -0.11527746915817261, 0.5167660713195801, -0.08533523976802826, 0.3249630033969879, 0.09882165491580963, -0.25806930661201477, 0.4550524353981018, -0.0021243374794721603, 0.24309402704238892, 0.11786997318267822, -0.18184930086135864, 0.15938492119312286, -0.13895133137702942, -0.5745754837989807, 0.3348114788532257, 0.0903552770614624, -0.5968509912490845, -0.10880055278539658, 0.008119289763271809, 0.4826163649559021, 0.030375778675079346, -0.050513215363025665, -0.08397037535905838, -0.44186103343963623, -0.11237700283527374, -0.5094913840293884, -0.13879258930683136, 0.2701762020587921, -0.006577479653060436, -0.11409097164869308, -0.36212995648384094, 0.5230093598365784, 0.3907349109649658, -0.331646203994751, 0.3504813313484192, -0.232918843626976, -0.20785172283649445, 0.2235564887523651, 0.07861427962779999, 0.7750358581542969, 0.23556821048259735, -0.031628090888261795, 0.12106242775917053, -0.2569791078567505, 0.5335089564323425, -0.6500673294067383, 0.07334907352924347, -0.21515575051307678, -0.2684254050254822, -0.03998458757996559, 0.06009412184357643, 0.04821089655160904, 0.1822723001241684, 0.08014436066150665, 0.5681716203689575, -0.060078829526901245, -0.15259842574596405, -0.030920235440135002, 0.2536112666130066, 0.09966569393873215, -0.12943510711193085, -0.17571939527988434, 0.16745468974113464, -0.1329163908958435, 0.0001763366162776947, -0.27084094285964966, 0.11507473140954971, -0.559982180595398, 0.06690464913845062, -0.14745035767555237, -0.13702431321144104, -0.1837148666381836, 0.17790411412715912, 0.13588477671146393, -0.42254072427749634, -0.33103397488594055, 0.5675346851348877, 0.7250468730926514, 0.06679359078407288, -0.29748448729515076, 0.2634715735912323, -0.17508465051651, 0.11545880883932114, 0.03641871362924576, -0.09256541728973389, 0.05644412338733673, -0.028396597132086754, -0.020117931067943573, 0.324810266494751, 0.3469851613044739, -0.0021533481776714325, -0.17017817497253418, 0.009425818920135498, -0.14369674026966095, 0.044150665402412415, -0.059257905930280685, 0.24112628400325775, 0.3410102427005768, 0.07543089985847473, 0.0871417373418808, 0.2268553078174591, -0.5656331777572632, -0.05264598876237869, 0.20045341551303864, -0.1952410340309143, 0.14268112182617188, 0.2905631959438324, 0.03757601976394653, -0.293536901473999, -0.22153723239898682, 0.08756256103515625, 0.0789479985833168, -0.005835134536027908, -0.04641571640968323, 0.01647401787340641, -0.0633494108915329, 0.018273981288075447, 0.2872958779335022, 0.1504448801279068, 0.03996051847934723, 0.5065682530403137, 0.31823694705963135, -0.13108187913894653, 0.25226694345474243, -0.45389851927757263, -0.22410772740840912, 0.1905706524848938, 0.08486595749855042, -0.08753053843975067, -0.08937374502420425, -0.08392180502414703, 0.13785190880298615, 0.5422516465187073, -0.2892594337463379, -0.23756735026836395, -0.0423993319272995, 0.14428727328777313, -0.16340072453022003, -0.13924986124038696, -0.10749498754739761, 0.14073315262794495, 0.06439012289047241, 0.044967398047447205, -0.18612639605998993, -0.1794567108154297, -0.24945756793022156, 0.13138730823993683, -0.1495235562324524, 0.16889534890651703, -0.06284738332033157, 0.07508039474487305, 0.1846788078546524, -0.08171863853931427, -0.058873239904642105, 0.374764084815979, 0.37351590394973755, 0.3379547894001007, -0.03439321741461754, 0.10218102484941483, -0.05632440745830536, -0.017829760909080505, 0.21329474449157715, 0.20780116319656372, 0.07900936901569366, -0.008537877351045609, 0.14385849237442017, -0.01686830073595047, -0.28753530979156494, -0.08985946327447891, -0.14779643714427948, -0.2268957793712616, 0.14476221799850464, -0.018569447100162506, 0.20657092332839966, -0.21333354711532593, 0.37987837195396423, 0.1326873004436493, -0.0760846808552742, 0.18973097205162048, -0.18290558457374573, 0.14285685122013092, -0.11980124562978745, 0.40618035197257996, 0.17260003089904785, 0.25368550419807434, -0.21503423154354095, 0.25820741057395935, -0.033284686505794525, 0.1541895866394043, -0.01189170777797699, -0.008981730788946152, -0.027472317218780518, -0.3529621958732605, 0.21023674309253693, -0.4512999951839447, 0.13748259842395782, -0.07608538866043091, 0.3451698422431946, -0.1417328268289566, 0.08663638681173325, 0.0946650505065918, 0.11317362636327744, 0.20618630945682526, 0.0570949912071228, 0.3819495141506195, 0.05865408480167389, 0.16471172869205475, -0.3350290358066559, 0.25033360719680786, 0.03729301691055298, -0.05603531002998352, 0.06057870388031006, 0.13486702740192413, 0.040382035076618195, -0.19460324943065643, -0.12172914296388626, 0.10459084808826447, 0.12302692979574203, -0.3937941789627075, -0.35982778668403625, -0.2577282786369324, -0.19753235578536987, -0.056885845959186554, -0.004424624145030975, 0.09338688105344772, -0.14682893455028534, 0.056323714554309845, -0.05959928035736084, -0.29237180948257446, -0.3988262116909027, 0.15627019107341766, 0.34410563111305237, -0.0743309035897255, 0.1079123318195343, 0.2061595320701599, 0.312746524810791, 0.31579068303108215, 0.3679594099521637, 0.13274139165878296, 0.08966682851314545, -0.5088694095611572, 0.05510038882493973, -0.1820519119501114, -0.07493647933006287, 0.036594752222299576, 0.2758982181549072, 0.19292700290679932, -0.1755715161561966, 0.3166459798812866, 0.15414319932460785, -0.10532356798648834, 0.33918389678001404, -0.14225642383098602, 0.05937454104423523, -0.41194042563438416, 0.5525141954421997, 0.036496009677648544, 0.20788878202438354, -0.20443908870220184, 0.05917346850037575, -0.47369900345802307, -0.18732380867004395, -0.5115628838539124, 0.06559572368860245, 0.06152268499135971, -0.3025527000427246, 0.07796750962734222, 0.08984450995922089, 0.024085011333227158, 0.08686564117670059, 0.42110952734947205, -0.33766692876815796, -0.19173644483089447, -0.38417190313339233, -0.3622971773147583, -0.0484892912209034, 0.11754710972309113, -0.2421550750732422, 0.28721028566360474, -0.06774576753377914, 0.5412327647209167, 0.15837746858596802, 0.48342928290367126, 0.05399242788553238, 0.17747771739959717, -0.20079337060451508, -0.012256089597940445, -0.09126187860965729, -0.10455959290266037, -0.10259970277547836, 0.22863999009132385, -0.21448950469493866, -0.17608553171157837, 0.03683120757341385, -0.1579037457704544, -0.2663094997406006, 0.24678373336791992, 0.6915802955627441, 0.3145763874053955, 0.3558574914932251, 0.4649409353733063, -0.019130297005176544, 0.03926912695169449, -0.05851525440812111, -0.0018535018898546696, -0.05582164600491524, 0.15834490954875946, -0.3841407299041748, 0.3125040829181671, -0.30256542563438416, -0.22766633331775665, 0.10168604552745819, 0.6001900434494019, 0.009413663297891617, -0.20099978148937225, -0.39312347769737244, -0.07098254561424255, 0.018478944897651672, -0.14986269176006317, -0.41239187121391296, 0.337852418422699, -0.015126772224903107, 0.4427170157432556, -0.0096193328499794, -0.13172699511051178, 0.478371262550354, -0.3655972480773926, 0.06721822917461395, 0.0616268664598465, 0.38429123163223267, 0.261856347322464, -0.07773340493440628, -0.1968766152858734, -0.03381313011050224, 0.35424715280532837, 0.19263845682144165, -0.001284753903746605, 0.16451619565486908, -0.18422332406044006, -0.10394845902919769, -0.15975989401340485, -0.019801490008831024, 0.06336134672164917, 0.041653700172901154, 0.10203723609447479, -0.1657765954732895 ]
https://github.com/huggingface/datasets/issues/216
❓ How to get ROUGE-2 with the ROUGE metric ?
Well I just tested with the official script and both rouge1 and rougeL return exactly the same thing for the input you gave, so this is actually fine ^^ I hope it helped :)
I'm trying to use ROUGE metric, but I don't know how to get the ROUGE-2 metric. --- I compute scores with : ```python import nlp rouge = nlp.load_metric('rouge') with open("pred.txt") as p, open("ref.txt") as g: for lp, lg in zip(p, g): rouge.add([lp], [lg]) score = rouge.compute() ``` then : _(print only the F-score for readability)_ ```python for k, s in score.items(): print(k, s.mid.fmeasure) ``` It gives : >rouge1 0.7915168355671788 rougeL 0.7915168355671788 --- **How can I get the ROUGE-2 score ?** Also, it's seems weird that ROUGE-1 and ROUGE-L scores are the same. Did I made a mistake ? @lhoestq
34
❓ How to get ROUGE-2 with the ROUGE metric ? I'm trying to use ROUGE metric, but I don't know how to get the ROUGE-2 metric. --- I compute scores with : ```python import nlp rouge = nlp.load_metric('rouge') with open("pred.txt") as p, open("ref.txt") as g: for lp, lg in zip(p, g): rouge.add([lp], [lg]) score = rouge.compute() ``` then : _(print only the F-score for readability)_ ```python for k, s in score.items(): print(k, s.mid.fmeasure) ``` It gives : >rouge1 0.7915168355671788 rougeL 0.7915168355671788 --- **How can I get the ROUGE-2 score ?** Also, it's seems weird that ROUGE-1 and ROUGE-L scores are the same. Did I made a mistake ? @lhoestq Well I just tested with the official script and both rouge1 and rougeL return exactly the same thing for the input you gave, so this is actually fine ^^ I hope it helped :)
[ 0.12399047613143921, -0.49795103073120117, -0.08898436278104782, 0.34631335735321045, -0.08415409922599792, -0.22060856223106384, -0.37294140458106995, 0.08035814017057419, 0.03604472428560257, 0.22104892134666443, -0.2184777557849884, 0.23340590298175812, -0.011108786799013615, -0.0014876984059810638, 0.07686176151037216, -0.28436267375946045, -0.011588729918003082, -0.03263472020626068, 0.08533437550067902, -0.2482198029756546, -0.10775745660066605, 0.40545687079429626, -0.15446992218494415, 0.2524571120738983, 0.0654294416308403, 0.3166961967945099, 0.17007948458194733, 0.2143235206604004, -0.43286556005477905, -0.18212708830833435, 0.16527090966701508, 0.05036323890089989, 0.14969506859779358, 0.23267754912376404, -0.00011426613491494209, -0.2925381064414978, 0.18494346737861633, -0.14143960177898407, 0.17386114597320557, -0.6005340218544006, 0.05832532048225403, -0.2691497504711151, -0.08119741827249527, -0.06456341594457626, -0.11102283746004105, -0.1932002753019333, -0.28851521015167236, -0.1273675113916397, 0.3743639588356018, 0.2322627305984497, 0.1280948519706726, -0.20203976333141327, -0.06131410226225853, -0.051128048449754715, 0.2469225525856018, -0.08830872178077698, 0.08550672233104706, 0.5601387023925781, 0.2660444974899292, -0.03746860474348068, 0.08142231404781342, 0.15097500383853912, 0.2317129671573639, 0.009744350798428059, 0.39035820960998535, 0.17862635850906372, 0.2437988817691803, -0.09382620453834534, -0.22313937544822693, 0.3274887502193451, 0.18336069583892822, -0.1542435884475708, -0.23367223143577576, 0.15243875980377197, 0.02727562189102173, -0.5276966094970703, -0.2502237856388092, -0.09636135399341583, 0.20211979746818542, -0.15361186861991882, -0.24245606362819672, -0.03075353056192398, -0.2164042741060257, 0.08503425121307373, 0.00017930194735527039, -0.007078647613525391, -0.06696662306785583, 0.1687988042831421, 0.20319364964962006, 0.011865220963954926, -0.5337013602256775, 0.250777006149292, -0.3072175085544586, 0.34942159056663513, -0.37095755338668823, -0.16411706805229187, 0.13272248208522797, 0.4145555794239044, 0.10024293512105942, 0.4011615514755249, 0.2246951311826706, -0.14048704504966736, -0.26722386479377747, 0.10991910099983215, -0.03308211639523506, 0.44693154096603394, 0.22990897297859192, 0.31486451625823975, -0.027801983058452606, 0.025183333083987236, 0.14823828637599945, -0.022644851356744766, 0.23133732378482819, -0.45695236325263977, -0.03800967335700989, 0.39786848425865173, -0.027401495724916458, -0.6806560754776001, -0.4113563001155853, 0.05142227187752724, -0.32168108224868774, -0.14020444452762604, 0.11257937550544739, 0.09805773198604584, -0.19216454029083252, 0.3302402198314667, -0.007844273000955582, 0.23737473785877228, -0.33151888847351074, -0.14027750492095947, -0.07846423238515854, 0.22878101468086243, -0.25133296847343445, 0.21520055830478668, 0.1888292133808136, 0.21518760919570923, 0.2448730766773224, 0.20560801029205322, 0.3032253384590149, 0.02921031415462494, 0.2829253077507019, -0.24809207022190094, -0.027120791375637054, -0.14943134784698486, -0.0716710239648819, 0.060484565794467926, 0.11274857819080353, -0.28449806571006775, -0.0919368788599968, -0.05520640313625336, -0.29216480255126953, 0.009701166301965714, 0.14610522985458374, 0.1334364116191864, 0.07843819260597229, 0.012796184048056602, -0.1120266243815422, 0.3773161470890045, -0.20596855878829956, -0.2661995589733124, 0.21629959344863892, -0.14620527625083923, -0.28263118863105774, -0.1256779283285141, 0.21286296844482422, -0.30434608459472656, -0.15618185698986053, 0.08477039635181427, 0.2528174817562103, -0.053262386471033096, 0.014621391892433167, 0.4060991704463959, 0.06860875338315964, 0.15228460729122162, -0.0909740999341011, -0.5238788723945618, 0.6502171158790588, -0.7507553100585938, -0.09616777300834656, 0.03446248546242714, -0.0805509015917778, -0.10891707986593246, 0.08223503082990646, 0.021922605112195015, -0.3146573603153229, -0.14471299946308136, 0.2815759479999542, 0.010719124227762222, -0.08700966835021973, -0.3107840120792389, -0.15044137835502625, 0.39708730578422546, 0.4027324914932251, -0.07194748520851135, -0.08274582028388977, -0.1770663559436798, -0.12735801935195923, -0.01692243479192257, 0.4076838493347168, 0.037556298077106476, -0.12502330541610718, 0.11389703303575516, -0.19675949215888977, 0.14640316367149353, 0.2724831998348236, -0.31259965896606445, 0.34934043884277344, 0.07731446623802185, -0.8894870281219482, -0.1724046766757965, 0.4622156023979187, -0.225692018866539, -0.6651099920272827, -0.21515125036239624, 0.3109324872493744, -0.3100344240665436, 0.10217595100402832, -0.2257465422153473, 0.3516805171966553, 0.1139778196811676, -0.15364305675029755, 0.2069387286901474, 0.061980098485946655, 0.006930280011147261, -0.3190980851650238, -0.1620742678642273, 0.1061549112200737, 0.05850492790341377, 0.2559981048107147, 0.4742428660392761, 0.4499502182006836, 0.22688041627407074, 0.16882717609405518, 0.2143985629081726, 0.25388434529304504, 0.03497205302119255, 0.2582993507385254, 0.2095767855644226, 0.19598029553890228, -0.0184682235121727, -0.07744105160236359, 0.5199010968208313, 0.30376091599464417, -0.15413658320903778, -0.19438496232032776, 0.4662746787071228, -0.49039319157600403, 0.05744217708706856, 0.03012319654226303, 0.003535732626914978, -0.23440761864185333, 0.048947278410196304, -0.4269285798072815, 0.008210152387619019, 0.33786460757255554, -0.07221466302871704, 0.15080960094928741, -0.2143828570842743, 0.07765549421310425, -0.05872177332639694, 0.16696642339229584, -0.023158922791481018, -0.07007100433111191, -0.09916787594556808, 0.04828345403075218, -0.05247921869158745, -0.08713283389806747, -0.14648158848285675, 0.13671350479125977, 0.14246466755867004, 0.17149534821510315, 0.2192109227180481, -0.41174837946891785, -0.18401704728603363, -0.007912218570709229, -0.15325438976287842, 0.012183921411633492, 0.015409938991069794, 0.06150934100151062, -0.07383941859006882, 0.05183936655521393, -0.3049069046974182, -0.3022274672985077, 0.06790260970592499, -0.3260824382305145, 0.08883625268936157, -0.10181157290935516, -0.14128297567367554, -0.174347385764122, -0.45969846844673157, -0.1507122665643692, -0.30679982900619507, -0.037474386394023895, 0.07321829348802567, 0.2997550964355469, -0.2984480857849121, 0.21187347173690796, 0.20868927240371704, -0.09639471024274826, 0.3506273031234741, 0.09900586307048798, -0.2984909117221832, -0.2188931107521057, 0.14851579070091248, -0.22972334921360016, 0.010996038094162941, 0.20694561302661896, -0.15003702044487, -0.003206562250852585, 0.1473243534564972, -0.28855642676353455, -0.09995469450950623, -0.025258660316467285, 0.16488516330718994, 0.055727768689394, -0.3303433060646057, -0.21322476863861084, 0.3580794930458069, 0.15705735981464386, -0.04325348138809204, -0.25011029839515686, 0.09181667864322662, -0.1292126327753067, 0.13602446019649506, -0.005322575569152832, -0.20497971773147583, 0.0756528228521347, -0.016803905367851257, 0.48908233642578125, 0.23215340077877045, -0.02597959339618683, 0.2851451635360718, -0.3540252149105072, 0.21252383291721344, 0.2565450966358185, 0.3914872109889984, -0.3267381489276886, -0.27257516980171204, 0.39423641562461853, -0.43585821986198425, -0.3721909821033478, -0.102946437895298, 0.10516515374183655, 0.029439806938171387, -0.0444231852889061, 0.05712854117155075, -0.32959702610969543, 0.054108403623104095, -0.09084367752075195, -0.1752023994922638, 0.13301953673362732, 0.22480040788650513, -0.2669879198074341, -0.04010311886668205, -0.12790332734584808, 0.09604991972446442, -0.002311788499355316, 0.13142919540405273, 0.5086545348167419, -0.24810761213302612, 0.07726912200450897, 0.14046277105808258, 0.27565646171569824, 0.40292373299598694, 0.4460243284702301, 0.04914812743663788, 0.16979745030403137, 0.022712890058755875, 0.08366736024618149, -0.13092799484729767, 0.28203022480010986, 0.042149871587753296, -0.12101196497678757, 0.10032173991203308, 0.18470165133476257, 0.3316662609577179, -0.34148064255714417, -0.0804624855518341, -0.09187573194503784, 0.09235544502735138, -0.06381035596132278, -0.2443142831325531, -0.03437428921461105, -0.054848603904247284, 0.05709175020456314, -0.09766291081905365, -0.13494369387626648, 0.31029751896858215, 0.022705331444740295, 0.216798335313797, 0.1691867858171463, -0.3748895823955536, -0.02895496040582657, -0.3219946324825287, 0.42253386974334717, 0.0653611496090889, -0.03763570263981819, 0.13242259621620178, 0.06527963280677795, 0.006212897598743439, -0.22974935173988342, 0.3863013982772827, 0.06365032494068146, 0.21256238222122192, 0.26525652408599854, -0.22254790365695953, -0.6708528399467468, -0.18083693087100983, -0.3159850239753723, 0.28959232568740845, 0.19786813855171204, 0.023055650293827057, -0.1561221331357956, 0.08311494439840317, 0.1846839189529419, -0.028112975880503654, -0.18701814115047455, 0.04569781571626663, -0.2581052780151367, 0.009999006986618042, 0.3646014928817749, -0.22924351692199707, -0.14277903735637665, 0.47826090455055237, -0.060729846358299255, 0.3421843349933624, 0.14983753859996796, -0.21545225381851196, 0.4536169767379761, 0.047775667160749435, 0.2763144373893738, 0.026590852066874504, -0.20807845890522003, 0.1624910831451416, -0.09441976249217987, -0.6795374155044556, 0.3389074206352234, 0.1927536278963089, -0.5905691981315613, -0.16465118527412415, -0.037636738270521164, 0.47643187642097473, 0.05458801984786987, -0.011678941547870636, -0.0929587259888649, -0.48114314675331116, -0.06214684247970581, -0.5296538472175598, -0.1239025741815567, 0.26546984910964966, -0.00895677413791418, -0.11165089160203934, -0.301660418510437, 0.48601293563842773, 0.34284940361976624, -0.3132478594779968, 0.31255561113357544, -0.19474448263645172, -0.20292122662067413, 0.25724297761917114, 0.10273770987987518, 0.8113804459571838, 0.2137560099363327, 0.0021945051848888397, 0.07617902755737305, -0.35134565830230713, 0.47075143456459045, -0.7156763672828674, 0.044999487698078156, -0.262919157743454, -0.25327256321907043, -0.041825830936431885, 0.04671809449791908, 0.044931475073099136, 0.21422655880451202, 0.06681966781616211, 0.5717447996139526, 0.06467106938362122, -0.16112959384918213, -0.0035065077245235443, 0.27373987436294556, 0.1399475634098053, -0.05350304767489433, -0.14960035681724548, 0.14553627371788025, -0.12895575165748596, -0.02712574228644371, -0.24744349718093872, 0.09093514829874039, -0.543363094329834, 0.07716059684753418, -0.16859126091003418, -0.12107471376657486, -0.14069566130638123, 0.11651463806629181, 0.13030728697776794, -0.3935346007347107, -0.2577756643295288, 0.6006621718406677, 0.7157089710235596, 0.12420569360256195, -0.37131866812705994, 0.2642667293548584, -0.20645558834075928, 0.15178216993808746, 0.10992246121168137, -0.054155003279447556, 0.04587811976671219, -0.05703302100300789, -0.06457507610321045, 0.27664121985435486, 0.35905721783638, -0.010358031839132309, -0.220569908618927, -0.007234834134578705, -0.16538196802139282, 0.07030574977397919, -0.03975008800625801, 0.207116037607193, 0.3018410801887512, 0.10604235529899597, 0.08863234519958496, 0.21996429562568665, -0.546942949295044, -0.029552072286605835, 0.24314646422863007, -0.23111703991889954, 0.1657048761844635, 0.3313013017177582, 0.008899705484509468, -0.2933349609375, -0.25438064336776733, 0.07475204765796661, 0.08233611285686493, -0.00511062890291214, -0.03546209633350372, -0.02048541232943535, -0.0411766916513443, 0.020233193412423134, 0.2510382831096649, 0.1330106109380722, 0.021784169599413872, 0.4346134662628174, 0.30642151832580566, -0.11115411669015884, 0.23509372770786285, -0.41880619525909424, -0.19548602402210236, 0.13808920979499817, 0.08050418645143509, -0.11472418904304504, -0.031743455678224564, -0.15798762440681458, 0.17435520887374878, 0.5180917382240295, -0.28377974033355713, -0.1876215636730194, -0.028949329629540443, 0.15590350329875946, -0.13453420996665955, -0.20898345112800598, -0.2026926577091217, 0.07882989943027496, 0.04642481356859207, 0.06440529227256775, -0.18087154626846313, -0.1644834578037262, -0.2384839951992035, 0.14039741456508636, -0.1358497440814972, 0.13904529809951782, -0.09388595819473267, 0.0531136691570282, 0.18270739912986755, -0.08895479142665863, -0.07194365561008453, 0.34918126463890076, 0.36998265981674194, 0.4574725031852722, -0.10201841592788696, 0.08420000970363617, -0.11546187847852707, -0.034587688744068146, 0.21736747026443481, 0.22923845052719116, 0.0809071958065033, -0.024483852088451385, 0.17273026704788208, -0.036192718893289566, -0.24741122126579285, -0.05410359054803848, -0.20524217188358307, -0.2769986391067505, 0.20450374484062195, -0.003159940242767334, 0.22931480407714844, -0.2594712972640991, 0.42980095744132996, 0.16129906475543976, -0.09349515289068222, 0.14037203788757324, -0.18730008602142334, 0.13596102595329285, -0.11948485672473907, 0.35794663429260254, 0.20658107101917267, 0.2541404366493225, -0.24037833511829376, 0.22333188354969025, -0.01607368141412735, 0.08376334607601166, 0.06477084010839462, -0.031832851469516754, -0.028623171150684357, -0.32644122838974, 0.18215452134609222, -0.4298461973667145, 0.15969732403755188, -0.10262639820575714, 0.2641342878341675, -0.15839911997318268, 0.0626835823059082, 0.2038581371307373, 0.11040167510509491, 0.22919832170009613, 0.025116756558418274, 0.4261503219604492, 0.04126899689435959, 0.24798665940761566, -0.3098805546760559, 0.26898619532585144, 0.07964713126420975, -0.03128360956907272, 0.10673493891954422, 0.14089927077293396, 0.11347460746765137, -0.23334656655788422, -0.14484354853630066, 0.06972581148147583, 0.12309914082288742, -0.3971676528453827, -0.36145079135894775, -0.2509465217590332, -0.26933181285858154, -0.0179569311439991, -0.051788073033094406, 0.12138757109642029, -0.10855121910572052, 0.10018225759267807, -0.04484105110168457, -0.2422512024641037, -0.37579503655433655, 0.07377652823925018, 0.4461508095264435, -0.1080249547958374, 0.10562524944543839, 0.18961521983146667, 0.38043272495269775, 0.2985636591911316, 0.3300202488899231, 0.12830089032649994, 0.08850320428609848, -0.5871766805648804, 0.10413964092731476, -0.1879848837852478, -0.08341523259878159, 0.07671979814767838, 0.3212108910083771, 0.17876531183719635, -0.1607675552368164, 0.3263958990573883, 0.12612153589725494, -0.0635787770152092, 0.34875574707984924, -0.11649765074253082, 0.0591413751244545, -0.3998606204986572, 0.4350467026233673, 0.11445958912372589, 0.21158605813980103, -0.25026339292526245, 0.018330596387386322, -0.5301831364631653, -0.18016210198402405, -0.5192392468452454, 0.15625038743019104, 0.0573139563202858, -0.33192944526672363, 0.07285425812005997, 0.12624867260456085, 0.0742616131901741, 0.055764779448509216, 0.37719666957855225, -0.30972981452941895, -0.2862944006919861, -0.4125575125217438, -0.32417869567871094, 0.023712897673249245, 0.0798478052020073, -0.20767971873283386, 0.2294335663318634, -0.04843566566705704, 0.5633386969566345, 0.10816995054483414, 0.46859896183013916, 0.05568739026784897, 0.17474454641342163, -0.24061746895313263, 0.055369988083839417, -0.09380519390106201, -0.13297076523303986, -0.1430656909942627, 0.24368256330490112, -0.17661765217781067, -0.18919724225997925, 0.030148521065711975, -0.12438757717609406, -0.2287808358669281, 0.21405839920043945, 0.7476034164428711, 0.267261803150177, 0.3172941505908966, 0.4162438213825226, -0.002823151648044586, 0.03634241223335266, -0.007561821490526199, 0.0660381093621254, 0.007560889236629009, 0.2057742476463318, -0.30258360505104065, 0.25753283500671387, -0.21721957623958588, -0.2541281282901764, 0.1553339660167694, 0.6273361444473267, -0.040246203541755676, -0.20091001689434052, -0.3534557819366455, -0.15675127506256104, 0.05964105576276779, -0.1647379845380783, -0.5186481475830078, 0.3903506398200989, -0.04145033657550812, 0.409333199262619, -0.0025365427136421204, -0.08588723093271255, 0.488684743642807, -0.33689698576927185, 0.11393256485462189, 0.11974514275789261, 0.37278953194618225, 0.2416968047618866, -0.11075817793607712, -0.23718178272247314, -0.05154874920845032, 0.29273444414138794, 0.16268795728683472, 0.0006717853248119354, 0.20673131942749023, -0.1564822643995285, -0.1019812524318695, -0.17159149050712585, 0.06903039664030075, 0.11228479444980621, 0.06057709455490112, 0.06237468495965004, -0.16444092988967896 ]
https://github.com/huggingface/datasets/issues/215
NonMatchingSplitsSizesError when loading blog_authorship_corpus
I just ran it on colab and got this ``` [{'expected': SplitInfo(name='train', num_bytes=610252351, num_examples=532812, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='train', num_bytes=611607465, num_examples=533285, dataset_name='blog_authorship_corpus')}, {'expected': SplitInfo(name='validation', num_bytes=37500394, num_examples=31277, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='validation', num_bytes=35652716, num_examples=30804, dataset_name='blog_authorship_corpus')}] ``` which is different from the `dataset_infos.json` and also different from yours. It looks like the script for generating examples is not consistent
Getting this error when i run `nlp.load_dataset('blog_authorship_corpus')`. ``` raise NonMatchingSplitsSizesError(str(bad_splits)) nlp.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=610252351, num_examples=532812, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='train', num_bytes=616473500, num_examples=536323, dataset_name='blog_authorship_corpus')}, {'expected': SplitInfo(name='validation', num_bytes=37500394, num_examples=31277, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='validation', num_bytes=30786661, num_examples=27766, dataset_name='blog_authorship_corpus')}] ``` Upon checking it seems like there is a disparity between the information in `datasets/blog_authorship_corpus/dataset_infos.json` and what was downloaded. Although I can get away with this by passing `ignore_verifications=True` in `load_dataset`, I'm thinking doing so might give problems later on.
53
NonMatchingSplitsSizesError when loading blog_authorship_corpus Getting this error when i run `nlp.load_dataset('blog_authorship_corpus')`. ``` raise NonMatchingSplitsSizesError(str(bad_splits)) nlp.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=610252351, num_examples=532812, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='train', num_bytes=616473500, num_examples=536323, dataset_name='blog_authorship_corpus')}, {'expected': SplitInfo(name='validation', num_bytes=37500394, num_examples=31277, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='validation', num_bytes=30786661, num_examples=27766, dataset_name='blog_authorship_corpus')}] ``` Upon checking it seems like there is a disparity between the information in `datasets/blog_authorship_corpus/dataset_infos.json` and what was downloaded. Although I can get away with this by passing `ignore_verifications=True` in `load_dataset`, I'm thinking doing so might give problems later on. I just ran it on colab and got this ``` [{'expected': SplitInfo(name='train', num_bytes=610252351, num_examples=532812, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='train', num_bytes=611607465, num_examples=533285, dataset_name='blog_authorship_corpus')}, {'expected': SplitInfo(name='validation', num_bytes=37500394, num_examples=31277, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='validation', num_bytes=35652716, num_examples=30804, dataset_name='blog_authorship_corpus')}] ``` which is different from the `dataset_infos.json` and also different from yours. It looks like the script for generating examples is not consistent
[ -0.13186050951480865, 0.14030933380126953, 0.059409383684396744, 0.42103874683380127, -0.10276071727275848, 0.06391090899705887, -0.0993901938199997, 0.24033091962337494, -0.1699516326189041, 0.16742467880249023, -0.002576359547674656, 0.269362211227417, 0.10592696815729141, -0.029215114191174507, -0.061288706958293915, 0.1161755621433258, -0.07574427872896194, 0.23838630318641663, 0.0664304867386818, 0.009824074804782867, -0.029608748853206635, 0.4090334475040436, -0.29079100489616394, -0.08376295864582062, -0.2635082006454468, -0.2044772207736969, -0.007695835083723068, 0.26649102568626404, -0.02803829498589039, -0.2925416827201843, 0.2720763683319092, 0.01106749102473259, 0.13318252563476562, 0.1919161081314087, -0.00012480425357352942, 0.02284359186887741, 0.550614595413208, -0.2505318820476532, -0.21130269765853882, -0.24919749796390533, -0.4140857458114624, -0.2816135883331299, 0.03941461443901062, -0.3059525787830353, -0.07530675828456879, 0.1337386816740036, 0.16358359158039093, -0.052976373583078384, 0.2451404482126236, 0.32043418288230896, 0.1107068881392479, 0.07963860034942627, -0.2686452567577362, 0.13457989692687988, 0.12662261724472046, 0.08180847018957138, -0.036990515887737274, -0.07447108626365662, -0.18289199471473694, -0.17931249737739563, -0.003359787166118622, 0.46177706122398376, -0.27765464782714844, 0.13988251984119415, 0.1918157935142517, 0.17948715388774872, 0.34826207160949707, -0.1386476308107376, 0.15919584035873413, 0.3170473873615265, 0.4259497821331024, 0.1577034294605255, -0.2048100382089615, -0.4242803156375885, -0.021961629390716553, 0.10003834962844849, 0.4799427092075348, 0.3248818814754486, -0.23731069266796112, 0.03319880738854408, -0.43306219577789307, -0.0763510912656784, -0.03681815788149834, 0.009393665939569473, 0.15958596765995026, 0.3218361437320709, 0.08606084436178207, 0.07757192105054855, 0.09996253997087479, 0.013011496514081955, 0.34360337257385254, -0.27978357672691345, -0.21615815162658691, 0.042083896696567535, -0.10203361511230469, -0.1977798491716385, -0.1827373504638672, 0.06244143098592758, 0.15654706954956055, 0.07547762244939804, 0.37092211842536926, -0.0862543135881424, 0.17984434962272644, 0.11776068061590195, 0.37153929471969604, -0.013676653616130352, -0.028967954218387604, 0.5226827263832092, 0.10686835646629333, -0.009326718747615814, 0.1176358163356781, 0.04502791166305542, 0.29349982738494873, -0.1499842405319214, -0.19445842504501343, 0.12557044625282288, 0.1616525501012802, -0.6070363521575928, -0.445077508687973, 0.01651555858552456, -0.571551501750946, -0.2078131139278412, -0.05524911358952522, 0.2461666464805603, -0.3623110353946686, 0.2653522491455078, -0.18779253959655762, -0.037590786814689636, -0.32581812143325806, -0.017644573003053665, -0.18110623955726624, 0.1677560955286026, -0.1367729902267456, 0.2572118639945984, 0.1405438929796219, -0.18570244312286377, 0.4198702871799469, -0.17853650450706482, -0.03070952743291855, -0.1549033522605896, 0.2606300413608551, -0.1932949423789978, 0.07086913287639618, 0.22536811232566833, 0.003308478742837906, 0.16629444062709808, -0.0920059084892273, -0.29528069496154785, -0.3580845892429352, 0.15888795256614685, -0.25167959928512573, -0.5216346979141235, 0.1034587100148201, 0.12058118730783463, -0.47296422719955444, -0.03648731857538223, -0.036901675164699554, 0.23291392624378204, 0.4576259255409241, -0.33405178785324097, -0.026959411799907684, -0.17522698640823364, -0.21760766208171844, -0.04367876797914505, -0.23738475143909454, 0.4392350912094116, 0.14354373514652252, -0.23715519905090332, 0.13986755907535553, 0.06780438870191574, 0.6044769883155823, 0.36378079652786255, -0.0025908134412020445, 0.0724761039018631, -0.15798860788345337, 0.33445417881011963, 0.13933049142360687, -0.37920886278152466, -0.22019097208976746, 0.4759376347064972, 0.07704731822013855, 0.2783879339694977, 0.26170849800109863, 0.12012143433094025, 0.19283777475357056, -0.14579862356185913, 0.13192345201969147, 0.3967819809913635, -0.01601761020720005, 0.06469855457544327, -0.475728303194046, -0.33400624990463257, 0.45108914375305176, 0.10482068359851837, 0.10609803348779678, 0.016658782958984375, -0.06624091416597366, 0.4533873498439789, 0.2774912714958191, -0.11796824634075165, -0.038575708866119385, 0.17891502380371094, -0.29750555753707886, -0.0030199438333511353, -0.008994445204734802, 0.045939527451992035, -0.4310585856437683, -0.0618974044919014, -0.16155414283275604, 0.2573908269405365, 0.021547220647335052, -0.339694619178772, -0.1260259747505188, -0.3853747844696045, -0.012609828263521194, -0.03815150633454323, -0.02499987930059433, 0.3279167711734772, 0.3891621530056, 0.020113375037908554, 0.04731069877743721, 0.5165192484855652, -0.07560984045267105, 0.1980004459619522, -0.7434916496276855, 0.24971388280391693, -0.09700006991624832, -0.22091656923294067, 0.4876718521118164, 0.2940717935562134, 0.1883365511894226, -0.20826838910579681, -0.1281999945640564, 0.4203101694583893, -0.09913165867328644, 0.4102056622505188, -0.30283045768737793, 0.009452953934669495, 0.28660085797309875, -0.21590346097946167, -0.09509005397558212, 0.3127254843711853, -0.014361781999468803, -0.029680248349905014, -0.08529918640851974, 0.4560612440109253, -0.35522955656051636, 0.194943368434906, 0.06018047779798508, -0.07444125413894653, 0.11264605820178986, -0.211827352643013, -0.22562134265899658, -0.4647095799446106, 0.55507892370224, -0.011282667517662048, -0.3389952778816223, 0.09569787979125977, -0.2214522808790207, 0.09830575436353683, 0.4710589051246643, 0.09217481315135956, -0.13324430584907532, -0.10313456505537033, 0.10757960379123688, -0.13031795620918274, 0.24420182406902313, 0.21329931914806366, 0.49796926975250244, 0.12661892175674438, -0.025470640510320663, 0.058875590562820435, -0.14599981904029846, -0.3809733986854553, 0.13225580751895905, -0.017310000956058502, 0.14334964752197266, 0.28800061345100403, 0.0936620905995369, -0.040374770760536194, -0.2727135121822357, -0.049734897911548615, 0.16797858476638794, 0.24612073600292206, -0.29215115308761597, -0.04091443866491318, -0.38650956749916077, -0.474757581949234, -0.25838926434516907, -0.1584339439868927, -0.21669356524944305, -0.33608385920524597, 0.1613166183233261, 0.24778427183628082, -0.1326119303703308, 0.06924966722726822, -0.16835685074329376, 0.0661013275384903, -0.3122090697288513, -0.07321561872959137, -0.0626508966088295, -0.28624165058135986, -0.2431286871433258, -0.043864455074071884, 0.1981612592935562, 0.3729363977909088, 0.20360036194324493, -0.42539364099502563, -0.22502315044403076, 0.1412789523601532, -0.2914524972438812, 0.1450173258781433, -0.02652602642774582, -0.12445603311061859, 0.0801769495010376, -0.21738483011722565, 0.2646990418434143, -0.24174906313419342, 0.044918883591890335, -0.10440687090158463, -0.33106231689453125, -0.10031101852655411, 0.12558434903621674, 0.004529198165982962, -0.2103862315416336, -0.41956719756126404, -0.2590778172016144, -0.3447067439556122, -0.10632055997848511, 0.28229859471321106, 0.30478137731552124, 0.11865701526403427, -0.1598612666130066, -0.11309604346752167, -0.057727228850126266, 0.21963682770729065, -0.34050074219703674, -0.09820729494094849, 0.23920993506908417, -0.08729080855846405, -0.11389213800430298, 0.011300016194581985, -0.05697125941514969, -0.033428799360990524, 0.15223275125026703, -0.5655209422111511, -0.207126647233963, -0.16636042296886444, -0.10165109485387802, -0.2521022856235504, -0.2789224684238434, 0.5203965306282043, -0.05680657923221588, 0.035450905561447144, 0.06587965786457062, -0.45105627179145813, 0.03225630521774292, 0.1676880121231079, 0.5530168414115906, -0.1850304901599884, 0.20177868008613586, -0.05939691513776779, 0.48935580253601074, 0.5270169377326965, 0.0005121342837810516, -0.15433155000209808, 0.15244060754776, 0.1464684009552002, 0.07625654339790344, -0.03768381476402283, 0.36734724044799805, 0.05485756695270538, -0.2222500443458557, 0.4481465816497803, -0.0057775285094976425, -0.2257876992225647, -0.1870691180229187, -0.10958966612815857, -0.2654106020927429, -0.2833302319049835, 0.13767190277576447, -0.16000181436538696, 0.13109607994556427, 0.289331316947937, 0.3210533857345581, -0.0710691511631012, -0.5795769691467285, -0.07721132040023804, 0.39041954278945923, 0.1502409279346466, 0.12120354920625687, -0.3957858979701996, 0.06771343946456909, -0.5080140829086304, 0.3432268500328064, 0.244532510638237, 0.28298792243003845, -0.15224556624889374, -0.07150125503540039, 0.10070928931236267, -0.2628658413887024, 0.2946949005126953, -0.4508105516433716, -0.10308371484279633, -0.05666989088058472, -0.032914455980062485, -0.32692989706993103, -0.19002753496170044, -0.165985107421875, 0.46012282371520996, 0.473175048828125, 0.4658530056476593, -0.3707209825515747, -0.08754419535398483, 0.20380406081676483, -0.12906335294246674, -0.13388772308826447, -0.1733284890651703, -0.32800209522247314, -0.4676932990550995, -0.16358698904514313, -0.14630064368247986, -0.12559790909290314, 0.33448290824890137, -0.013892960734665394, -0.04778569936752319, 0.08378437161445618, 0.09194687008857727, 0.35809415578842163, 0.34259921312332153, 0.07846541702747345, 0.1107560247182846, 0.10656090080738068, 0.2138589322566986, 0.5311780571937561, 0.12926585972309113, 0.5807300209999084, 0.14552055299282074, -0.06633390486240387, -0.01934978738427162, -0.24416625499725342, 0.14895108342170715, 0.4908936023712158, 0.135177344083786, 0.0538153313100338, 0.03748355805873871, -0.08207724988460541, -0.2781619727611542, 0.07523453235626221, -0.007692009210586548, -0.05447214096784592, -0.4696716368198395, -0.33327412605285645, 0.2758779227733612, 0.2949081361293793, -0.1409776508808136, -0.15513525903224945, -0.24002887308597565, -0.34685832262039185, 0.2835208773612976, 0.24371883273124695, 1.0874799489974976, 0.24174818396568298, -0.022105779498815536, -0.0018391497433185577, -0.15207722783088684, 0.9227551221847534, -0.27626198530197144, 0.43794262409210205, -0.3907804787158966, -0.20731191337108612, -0.0421939417719841, -0.1648712158203125, 0.12216298282146454, 0.022073086351156235, -0.38290053606033325, 0.3094181418418884, 0.30114078521728516, 0.020167361944913864, -0.11545003950595856, 0.3871208727359772, -0.21533212065696716, -0.14622946083545685, -0.2855425775051117, -0.028606433421373367, -0.3070124387741089, 0.43148815631866455, -0.02508610300719738, -0.05846838653087616, -0.2192476987838745, -0.21921657025814056, -0.34745538234710693, 0.23335489630699158, 0.037324581295251846, -0.03378905728459358, 0.26438450813293457, -0.2253144234418869, -0.054230157285928726, 0.05196760594844818, 0.35157251358032227, -0.08515363931655884, -0.10732723772525787, -0.07103373110294342, -0.1847062110900879, -0.1427910476922989, 0.12849290668964386, 0.014371718280017376, 0.2345246970653534, -0.0847066268324852, 0.06245117634534836, 0.06788536161184311, -0.09753018617630005, -0.3518659472465515, -0.11455625295639038, -0.06113269925117493, -0.20195908844470978, -0.15386749804019928, -0.043334491550922394, 0.13102200627326965, -0.08529418706893921, -0.038761891424655914, 0.002993527799844742, -0.1441454291343689, -0.22105255722999573, 0.27000758051872253, -0.06912070512771606, -0.3818735182285309, -0.15728293359279633, 0.3526190221309662, 0.4428406357765198, 0.036588795483112335, 0.3667507469654083, -0.15284770727157593, -0.0776589959859848, -0.15032583475112915, -0.1503046303987503, -0.3644888699054718, -0.20347946882247925, 0.23492386937141418, -0.2366292029619217, -0.12594136595726013, 0.14240741729736328, 0.4553365707397461, 0.18074442446231842, 0.33318716287612915, -0.061184436082839966, -0.5108864307403564, -0.008190073072910309, 0.17526531219482422, 0.03207889199256897, 0.05828087404370308, -0.05806541442871094, 0.5259189605712891, -0.2515849173069, 0.21031518280506134, -0.19090020656585693, -0.14888879656791687, -0.4438941180706024, 0.3342982530593872, 0.13203123211860657, -0.043772026896476746, -0.009571815840899944, 0.00005422346293926239, -0.1639130562543869, 0.3139312267303467, -0.06522431969642639, -0.005955412983894348, -0.06145999953150749, 0.2065000683069229, 0.17853772640228271, -0.10877075046300888, -0.17463752627372742, 0.12480120360851288, 0.07677902281284332, 0.03751734644174576, 0.03463686630129814, 0.2473379671573639, 0.044050950556993484, 0.28184273838996887, -0.3356446623802185, 0.11022825539112091, -0.07830385863780975, 0.22765184938907623, -0.298517644405365, 0.3604114055633545, -0.059135109186172485, 0.30647575855255127, -0.10010332614183426, 0.015595003962516785, 0.15056946873664856, -0.036063969135284424, 0.04848208650946617, 0.0973275750875473, 0.0767752081155777, -0.17980925738811493, 0.14732135832309723, 0.1841629147529602, -0.08916369080543518, 0.6363041400909424, -0.07548846304416656, -0.1910722851753235, 0.10431311279535294, 0.045415572822093964, -0.08597467839717865, 0.0015474701067432761, 0.22220160067081451, 0.025048132985830307, -0.056129731237888336, 0.513885498046875, 0.08978289365768433, -0.13231121003627777, -0.13743679225444794, 0.11166220158338547, 0.33755701780319214, -0.0757066011428833, 0.10394471883773804, 0.19666725397109985, -0.20539256930351257, 0.0955604761838913, 0.304612934589386, -0.28127264976501465, 0.15195691585540771, -0.000051859766244888306, 0.027242589741945267, 0.47660407423973083, 0.1611955761909485, 0.3706952929496765, -0.024316951632499695, -0.11332264542579651, 0.02995968796312809, 0.6413371562957764, 0.2822778820991516, 0.37167903780937195, 0.28426945209503174, 0.38737139105796814, -0.2766481637954712, 0.028786541894078255, -0.36788809299468994, -0.17549188435077667, -0.06385733932256699, -0.14051565527915955, -0.46062037348747253, -0.04844371974468231, -0.17240580916404724, 0.20627930760383606, -0.14023542404174805, 0.12604033946990967, 0.45997369289398193, -0.07544833421707153, -0.20757682621479034, -0.3750886023044586, 0.12007726728916168, 0.028892695903778076, 0.16698598861694336, -0.23685841262340546, 0.3165041506290436, -0.07666359841823578, -0.0866444855928421, 0.32038334012031555, 0.5079473257064819, 0.4745158553123474, 0.3062893748283386, -0.05767224356532097, -0.2090131640434265, 0.08152614533901215, 0.11034271121025085, 0.2296566367149353, 0.7636840343475342, 0.2975423336029053, -0.2571266293525696, 0.38817930221557617, -0.06476650387048721, -0.076741524040699, 0.4682406783103943, 0.07057210803031921, -0.08752617239952087, -0.02216612547636032, 0.4095025360584259, -0.07317886501550674, 0.11578693240880966, 0.021555207669734955, 0.13730357587337494, -0.2554472088813782, -0.2709903419017792, 0.06821195036172867, -0.2707931697368622, 0.30509597063064575, 0.013167798519134521, 0.022203415632247925, -0.30442994832992554, 0.6118450164794922, 0.38975825905799866, -0.1275225281715393, -0.20482803881168365, -0.07230471074581146, -0.43062716722488403, 0.3466023802757263, -0.42263078689575195, -0.23992390930652618, -0.2996869683265686, 0.5030857920646667, -0.22747108340263367, 0.4045400619506836, -0.287725031375885, 0.37956491112709045, -0.06517549604177475, -0.03167526423931122, -0.2298382818698883, -0.06720173358917236, -0.12271565198898315, -0.29663893580436707, 0.02004896104335785, -0.26175597310066223, 0.22259052097797394, 0.07699644565582275, -0.13086329400539398, 0.0015137474983930588, -0.01643570140004158, 0.016017291694879532, 0.40780165791511536, -0.01290874183177948, 0.5090911984443665, 0.39042040705680847, -0.14212566614151, -0.15031328797340393, -0.005525227636098862, -0.31976351141929626, -0.3111400604248047, 0.41492047905921936, 0.213955819606781, 0.3597553074359894, -0.17412512004375458, 0.6665091514587402, -0.06747306883335114, 0.31923627853393555, 0.05682786554098129, 0.022631937637925148, -0.25127604603767395, -0.05701666325330734, -0.24597689509391785, 0.03582852706313133, 0.06754478812217712, 0.45341363549232483, 0.15364183485507965, -0.02775789424777031, -0.24259637296199799, -0.34912970662117004, 0.47973036766052246, -0.39620620012283325, 0.029296521097421646, -0.006678640842437744, 0.18370357155799866, 0.24500298500061035, -0.2263409048318863, -0.7466573715209961, -0.07005798816680908, 0.2567741274833679, -0.2124132513999939, 0.050724755972623825, -0.02079649642109871, -0.05016641318798065, -0.22436052560806274, -0.12880545854568481, -0.23391425609588623, 0.21499383449554443, -0.4172474443912506, 0.2863386273384094, -0.12938743829727173 ]
https://github.com/huggingface/datasets/issues/215
NonMatchingSplitsSizesError when loading blog_authorship_corpus
The files provided by the authors are corrupted and the script seems to ignore the xml files that can't be decoded (it does `try:... except UnicodeDecodeError`). Maybe depending of the environment some files can be opened and some others don't but not sure why
Getting this error when i run `nlp.load_dataset('blog_authorship_corpus')`. ``` raise NonMatchingSplitsSizesError(str(bad_splits)) nlp.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=610252351, num_examples=532812, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='train', num_bytes=616473500, num_examples=536323, dataset_name='blog_authorship_corpus')}, {'expected': SplitInfo(name='validation', num_bytes=37500394, num_examples=31277, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='validation', num_bytes=30786661, num_examples=27766, dataset_name='blog_authorship_corpus')}] ``` Upon checking it seems like there is a disparity between the information in `datasets/blog_authorship_corpus/dataset_infos.json` and what was downloaded. Although I can get away with this by passing `ignore_verifications=True` in `load_dataset`, I'm thinking doing so might give problems later on.
44
NonMatchingSplitsSizesError when loading blog_authorship_corpus Getting this error when i run `nlp.load_dataset('blog_authorship_corpus')`. ``` raise NonMatchingSplitsSizesError(str(bad_splits)) nlp.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=610252351, num_examples=532812, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='train', num_bytes=616473500, num_examples=536323, dataset_name='blog_authorship_corpus')}, {'expected': SplitInfo(name='validation', num_bytes=37500394, num_examples=31277, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='validation', num_bytes=30786661, num_examples=27766, dataset_name='blog_authorship_corpus')}] ``` Upon checking it seems like there is a disparity between the information in `datasets/blog_authorship_corpus/dataset_infos.json` and what was downloaded. Although I can get away with this by passing `ignore_verifications=True` in `load_dataset`, I'm thinking doing so might give problems later on. The files provided by the authors are corrupted and the script seems to ignore the xml files that can't be decoded (it does `try:... except UnicodeDecodeError`). Maybe depending of the environment some files can be opened and some others don't but not sure why
[ -0.21565431356430054, 0.12347579002380371, 0.02768765762448311, 0.4813604950904846, -0.011549744755029678, 0.09883337467908859, -0.1319703608751297, 0.36858734488487244, -0.05169633775949478, 0.18515610694885254, 0.0752989798784256, 0.1368829756975174, 0.08542739599943161, -0.13447412848472595, -0.03223841264843941, 0.025299280881881714, -0.09251812845468521, 0.19295059144496918, 0.03854706138372421, -0.09255397319793701, -0.17508350312709808, 0.416496604681015, -0.33406275510787964, 0.0076593682169914246, -0.21158047020435333, -0.10277769714593887, 0.0826694667339325, 0.4248713254928589, 0.005414115265011787, -0.3878876864910126, 0.017096495255827904, -0.015491459518671036, 0.07717172056436539, 0.20357656478881836, -0.00012377274106256664, 0.05251896381378174, 0.6025201082229614, -0.26091206073760986, -0.15160775184631348, -0.2473250776529312, -0.39834675192832947, -0.34683603048324585, -0.153254434466362, -0.3098118305206299, 0.043406158685684204, -0.1374206691980362, 0.2702693045139313, -0.21010372042655945, 0.301590234041214, 0.358980268239975, 0.10676799714565277, 0.17280296981334686, -0.06732278317213058, 0.13837400078773499, 0.2782537341117859, 0.060598231852054596, -0.05707041174173355, -0.0743037760257721, -0.03054884821176529, -0.21056775748729706, -0.0998370423913002, 0.315449595451355, -0.29578301310539246, -0.004714030772447586, 0.17416739463806152, 0.09821563959121704, 0.37292417883872986, -0.2041337490081787, 0.17276901006698608, 0.29544195532798767, 0.5296691656112671, 0.13004066050052643, -0.21195372939109802, -0.4479381740093231, -0.15491235256195068, 0.11767426133155823, 0.4065708518028259, 0.426649272441864, -0.20510613918304443, -0.0010258667171001434, -0.26339828968048096, -0.03466079384088516, -0.19299151003360748, 0.06627299636602402, 0.24316391348838806, 0.24165266752243042, 0.08146419376134872, 0.06608037650585175, -0.02012006565928459, 0.07188818603754044, 0.09668871760368347, -0.2602754533290863, -0.14188726246356964, 0.09542833268642426, 0.029839318245649338, -0.0755181685090065, -0.11887241154909134, -0.07541275769472122, 0.2060893476009369, 0.20481720566749573, 0.36635443568229675, 0.0198501143604517, 0.2098524421453476, 0.13503974676132202, 0.33779990673065186, -0.07288703322410583, 0.0488542765378952, 0.42680633068084717, 0.20002292096614838, -0.03538226708769798, 0.08910410106182098, 0.013299824669957161, 0.22526997327804565, -0.27365735173225403, -0.1577364206314087, 0.1777951717376709, 0.24600397050380707, -0.4968622624874115, -0.4554833471775055, 0.1475423127412796, -0.4238385260105133, -0.273358553647995, -0.25034913420677185, 0.2649310231208801, -0.30463874340057373, 0.36598584055900574, -0.13079890608787537, 0.08853152394294739, -0.38467326760292053, -0.10326536744832993, -0.13025490939617157, 0.16457216441631317, -0.147964745759964, 0.20909738540649414, 0.17410193383693695, -0.14501887559890747, 0.367902934551239, -0.17715860903263092, -0.06438498198986053, -0.21380013227462769, 0.36702942848205566, -0.17966392636299133, 0.04696183279156685, 0.25024011731147766, 0.10622437298297882, 0.171814426779747, -0.11795531213283539, -0.29181599617004395, -0.28508174419403076, 0.09585826098918915, -0.2795935571193695, -0.39303940534591675, 0.11864641308784485, 0.14444087445735931, -0.3303503394126892, -0.0422152578830719, 0.07145191729068756, 0.04952302202582359, 0.41477537155151367, -0.4803287386894226, -0.09707146137952805, -0.22827790677547455, -0.1588883399963379, -0.12854722142219543, -0.2621929943561554, 0.6329426169395447, 0.13807904720306396, -0.10230623185634613, 0.28261885046958923, -0.02911420166492462, 0.5553821325302124, 0.3593010902404785, 0.062765933573246, 0.12815949320793152, -0.1939799189567566, 0.4745134115219116, 0.11766564846038818, -0.41009238362312317, -0.15080362558364868, 0.46914464235305786, -0.04133443534374237, 0.33927038311958313, 0.43024876713752747, 0.10246603190898895, 0.2844768464565277, -0.17926785349845886, -0.04245802015066147, 0.314608633518219, 0.0632300153374672, -0.028443023562431335, -0.4521339535713196, -0.14667348563671112, 0.43677568435668945, 0.10489210486412048, 0.18474310636520386, 0.010159559547901154, 0.14154864847660065, 0.4389932155609131, 0.31315916776657104, -0.10660918056964874, 0.10542161762714386, 0.2982519268989563, -0.4476805031299591, 0.16950970888137817, 0.10063327103853226, -0.10743071138858795, -0.3479079604148865, -0.0729607567191124, -0.3559921681880951, 0.14380651712417603, 0.0009274482727050781, -0.22381584346294403, -0.1733148992061615, -0.39921316504478455, -0.07715672254562378, -0.003457210958003998, -0.02226228639483452, 0.366399347782135, 0.287392795085907, 0.15451769530773163, -0.05905604735016823, 0.3667801022529602, -0.03369646891951561, 0.18653357028961182, -0.8968725204467773, 0.23864926397800446, -0.1518675833940506, -0.22171419858932495, 0.41856467723846436, 0.31582850217819214, 0.1912764608860016, -0.1933247298002243, -0.07729300111532211, 0.38104307651519775, -0.10586743801832199, 0.47593438625335693, -0.23418766260147095, 0.074666328728199, 0.18912220001220703, -0.31206434965133667, -0.020261866971850395, 0.4056882858276367, 0.09887222200632095, -0.1194394901394844, -0.037329837679862976, 0.42273712158203125, -0.34207597374916077, 0.1942274570465088, 0.14112402498722076, -0.0657070130109787, 0.06375358998775482, -0.26771512627601624, -0.24543434381484985, -0.5215461254119873, 0.6221489310264587, -0.06730565428733826, -0.2690838575363159, 0.04679877310991287, -0.2562187910079956, 0.025933146476745605, 0.5729610919952393, 0.0020749084651470184, -0.08300886303186417, -0.06289895623922348, 0.06719496846199036, -0.06301321089267731, -0.018116915598511696, 0.18459875881671906, 0.457134485244751, 0.09094731509685516, -0.0555766262114048, 0.06711280345916748, -0.13181930780410767, -0.4584280848503113, 0.12814268469810486, -0.04832817614078522, -0.02797255851328373, 0.5724948048591614, -0.011887611821293831, 0.06637723743915558, -0.3477853834629059, -0.021248526871204376, 0.11456353217363358, 0.1385263055562973, -0.33257967233657837, -0.09293384850025177, -0.32997098565101624, -0.40572044253349304, -0.37956905364990234, -0.07616882026195526, -0.18711678683757782, -0.38549718260765076, 0.18350408971309662, 0.21754267811775208, -0.25006797909736633, 0.028112737461924553, -0.1977863907814026, 0.005208000540733337, -0.34196704626083374, 0.04885447025299072, -0.13127976655960083, -0.19375444948673248, -0.21057984232902527, -0.0651412308216095, 0.27047741413116455, 0.3898128569126129, 0.22029532492160797, -0.5454664826393127, -0.21008890867233276, -0.04476919025182724, -0.20753464102745056, 0.020225629210472107, -0.05990830063819885, -0.17760887742042542, 0.0929604023694992, -0.15598060190677643, 0.52147376537323, -0.1610412895679474, 0.14776387810707092, -0.1287202090024948, -0.2708491086959839, 0.12490375339984894, 0.22166559100151062, -0.14447762072086334, -0.2206287682056427, -0.5865998268127441, -0.1790795475244522, -0.4568953514099121, -0.09897711873054504, 0.28189393877983093, 0.2948867678642273, 0.042353857308626175, -0.16215097904205322, -0.10634426027536392, -0.21439367532730103, 0.3561641275882721, -0.16313140094280243, 0.05585619434714317, 0.3234170973300934, -0.18394790589809418, -0.2702251970767975, -0.021707531064748764, 0.13760575652122498, -0.05147792771458626, 0.14158646762371063, -0.4621357321739197, -0.05968324467539787, -0.18343864381313324, -0.1534479856491089, -0.28296753764152527, -0.11173246800899506, 0.4699302613735199, -0.03412974625825882, -0.004535172134637833, -0.05661582574248314, -0.2683965861797333, 0.01701788604259491, 0.054795827716588974, 0.30072399973869324, -0.12811586260795593, 0.23388981819152832, -0.09957672655582428, 0.4160902500152588, 0.528424859046936, 0.18462401628494263, -0.06775560975074768, 0.07574266940355301, 0.27277109026908875, 0.16633498668670654, -0.01663515716791153, 0.33609965443611145, -0.02377226948738098, -0.09101996570825577, 0.433152973651886, -0.002346256747841835, -0.0968589186668396, -0.14553600549697876, -0.24594540894031525, -0.3490152955055237, -0.19343845546245575, 0.146291121840477, -0.16669528186321259, 0.14870798587799072, 0.2208891361951828, 0.30664387345314026, -0.03872048109769821, -0.5155580639839172, 0.024541515856981277, 0.4532250165939331, 0.3203480839729309, 0.18500728905200958, -0.47967490553855896, 0.09125715494155884, -0.4247420132160187, 0.29793354868888855, 0.1449543535709381, 0.31214240193367004, -0.18283234536647797, -0.14990343153476715, 0.10623268038034439, -0.25153136253356934, 0.23255707323551178, -0.41618216037750244, 0.01984362117946148, 0.05904725566506386, -0.0065517909824848175, -0.304307758808136, -0.17955143749713898, -0.26142293214797974, 0.405344694852829, 0.38657480478286743, 0.43123364448547363, -0.38310539722442627, -0.16495127975940704, 0.09735125303268433, 0.005135691724717617, -0.1086411103606224, -0.08253467828035355, -0.29944443702697754, -0.36759153008461, -0.2296070009469986, -0.29456907510757446, -0.08849731832742691, 0.26921480894088745, -0.09233562648296356, -0.027085423469543457, 0.03468649089336395, 0.10009167343378067, 0.360934317111969, 0.27080366015434265, 0.08658693730831146, -0.10598365217447281, 0.0742231011390686, 0.15665081143379211, 0.57341468334198, 0.11814197152853012, 0.5895782709121704, 0.06899438798427582, -0.18111124634742737, 0.024747619405388832, -0.4304124414920807, 0.19162805378437042, 0.46582674980163574, 0.08184268325567245, 0.04430043324828148, 0.1261613368988037, -0.024200446903705597, -0.44463980197906494, -0.05971940606832504, 0.16697083413600922, -0.0810944065451622, -0.4040861129760742, -0.42042431235313416, 0.2781199514865875, 0.20545470714569092, -0.134819895029068, -0.16485311090946198, -0.13094384968280792, -0.2597300708293915, 0.3258020281791687, 0.13428494334220886, 1.0393664836883545, 0.26532822847366333, 0.07107456028461456, -0.06675082445144653, -0.1936638504266739, 0.7017491459846497, -0.23345710337162018, 0.4610559940338135, -0.45272988080978394, -0.18189339339733124, -0.09579341113567352, -0.185774564743042, 0.2801085114479065, 0.1366838663816452, -0.21743738651275635, 0.3387276828289032, 0.20434297621250153, -0.02720515802502632, -0.10105708986520767, 0.4760468602180481, -0.2647894322872162, -0.034637998789548874, -0.10286536812782288, -0.05299090966582298, -0.1834339052438736, 0.4568297266960144, -0.0012244191020727158, -0.13717569410800934, -0.1618824005126953, -0.2715008854866028, -0.3544197082519531, 0.28696709871292114, 0.11578206717967987, -0.07829291373491287, 0.18359069526195526, -0.19995839893817902, 0.05459502711892128, 0.20606933534145355, 0.22772027552127838, -0.08420240879058838, -0.0386502742767334, -0.09670528769493103, -0.18037503957748413, -0.199497789144516, 0.18710432946681976, 0.12525051832199097, 0.34723347425460815, -0.11428995430469513, 0.06230513006448746, 0.18676649034023285, -0.15038463473320007, -0.2784907817840576, -0.32652437686920166, 0.02036042883992195, -0.22256653010845184, -0.18651852011680603, -0.14518143236637115, 0.01597250998020172, -0.16698384284973145, -0.047240618616342545, -0.0031717699021101, -0.08467742800712585, -0.09633991122245789, 0.19067247211933136, -0.1776466816663742, -0.45024263858795166, -0.1255151778459549, 0.27839428186416626, 0.36409714818000793, -0.030170027166604996, 0.4310382008552551, -0.0935874730348587, -0.1244845762848854, -0.19571959972381592, -0.15213191509246826, -0.23456494510173798, -0.4015830457210541, 0.17225511372089386, -0.20614057779312134, -0.10457795113325119, 0.17576389014720917, 0.2439631223678589, 0.08783233165740967, 0.19602739810943604, -0.12787207961082458, -0.6653315424919128, 0.12647412717342377, 0.1522253453731537, 0.21884310245513916, -0.01905306801199913, -0.04890144243836403, 0.32298412919044495, -0.2310790866613388, 0.16286686062812805, -0.1806020736694336, -0.07511360943317413, -0.308824360370636, 0.3002738654613495, 0.16600342094898224, 0.040769752115011215, -0.10946772992610931, 0.02919074147939682, -0.13556717336177826, 0.24872910976409912, -0.17746058106422424, 0.03926829248666763, -0.14118997752666473, 0.22275511920452118, 0.1571929156780243, -0.059653282165527344, -0.10897057503461838, 0.019748516380786896, 0.09330236911773682, -0.021798620000481606, 0.03392191603779793, 0.2995971739292145, -0.03862714022397995, 0.34890010952949524, -0.3989143669605255, 0.14669637382030487, -0.09037554264068604, 0.26498621702194214, -0.3462001085281372, 0.3897479772567749, -0.20149509608745575, 0.2406032532453537, -0.03934544324874878, 0.02292042225599289, -0.09879700839519501, -0.031777240335941315, 0.12119609862565994, 0.06413556635379791, 0.31527337431907654, -0.1587390899658203, 0.21573162078857422, 0.20882268249988556, -0.037339016795158386, 0.7320032715797424, -0.12561596930027008, -0.11623398214578629, 0.06201813369989395, 0.05478910356760025, -0.11067067831754684, -0.017983730882406235, 0.18334703147411346, -0.08880657702684402, -0.08237121999263763, 0.36358457803726196, 0.19489195942878723, -0.2530851662158966, -0.18858002126216888, 0.10765587538480759, 0.41206976771354675, -0.08131342381238937, 0.09422314167022705, 0.23868413269519806, -0.011602010577917099, 0.017933469265699387, 0.19760942459106445, -0.15337473154067993, 0.07995045930147171, 0.11493439972400665, 0.0946037620306015, 0.5233201384544373, 0.14145059883594513, 0.4351027309894562, -0.23179683089256287, -0.12785910069942474, 0.01844978518784046, 0.6700659990310669, 0.19276167452335358, 0.48585230112075806, 0.25121307373046875, 0.3217869997024536, -0.29630568623542786, 0.15058769285678864, -0.2669787108898163, -0.17418351769447327, -0.037761934101581573, -0.1280357837677002, -0.46970877051353455, -0.1269298493862152, -0.20043188333511353, 0.06337666511535645, -0.07095889747142792, 0.2730634808540344, 0.3169325590133667, -0.055919915437698364, -0.19864048063755035, -0.2947249114513397, 0.1727561056613922, -0.1547851860523224, 0.18281289935112, -0.3227284252643585, 0.276178777217865, 0.10261518508195877, -0.03287198394536972, 0.37592771649360657, 0.5440005660057068, 0.6268026828765869, 0.40504297614097595, -0.10989491641521454, -0.1285424679517746, -0.05433804169297218, 0.04785708338022232, 0.18827079236507416, 0.8659355640411377, 0.21049360930919647, -0.17327836155891418, 0.3700045049190521, -0.03926485776901245, -0.08896420150995255, 0.3375838100910187, 0.1680566370487213, -0.04063219949603081, 0.04704675450921059, 0.3882301151752472, -0.19839468598365784, -0.0021035969257354736, -0.022414207458496094, 0.034168947488069534, -0.41420599818229675, -0.2665129601955414, 0.17878341674804688, -0.14471115171909332, 0.28021106123924255, -0.15230385959148407, 0.01908348873257637, -0.17731057107448578, 0.5529251098632812, 0.4774636924266815, -0.1700434386730194, -0.09665439277887344, -0.02231496572494507, -0.5047852396965027, 0.5072601437568665, -0.4191426932811737, -0.3187653720378876, -0.24322620034217834, 0.37428879737854004, -0.19791960716247559, 0.26287853717803955, -0.09300854802131653, 0.4435426592826843, -0.1374349743127823, 0.10049094259738922, -0.21290728449821472, -0.019861243665218353, 0.014264799654483795, -0.15694865584373474, -0.0984826385974884, -0.24548813700675964, 0.25242915749549866, 0.040925756096839905, -0.07209412753582001, -0.010971497744321823, 0.15720772743225098, -0.002454414963722229, 0.2743943929672241, -0.02617207169532776, 0.47785040736198425, 0.44525930285453796, -0.29098382592201233, -0.21393810212612152, -0.1103200614452362, -0.23036141693592072, -0.2815762758255005, 0.40110042691230774, 0.22582022845745087, 0.36033520102500916, -0.2049240618944168, 0.5031101107597351, -0.09256651997566223, 0.26268577575683594, -0.15710830688476562, 0.14505629241466522, -0.21884825825691223, 0.03149937838315964, -0.23324993252754211, -0.016331439837813377, 0.1572696715593338, 0.45763373374938965, 0.18879951536655426, -0.12539470195770264, -0.23119792342185974, -0.373331755399704, 0.4127679467201233, -0.39108774065971375, -0.07988297939300537, -0.017233751714229584, 0.19397488236427307, 0.12862269580364227, -0.041532114148139954, -0.6443729400634766, -0.0595882348716259, 0.22831936180591583, -0.11384988576173782, 0.029823079705238342, -0.06642276048660278, -0.15205059945583344, -0.3520406186580658, -0.03435515612363815, -0.2507987916469574, 0.27073606848716736, -0.41925016045570374, 0.4005514085292816, -0.10350912809371948 ]
https://github.com/huggingface/datasets/issues/215
NonMatchingSplitsSizesError when loading blog_authorship_corpus
Feel free to do `ignore_verifications=True` for now... The verifications only include a check on the checksums of the downloaded files, and a check on the number of examples in each splits.
Getting this error when i run `nlp.load_dataset('blog_authorship_corpus')`. ``` raise NonMatchingSplitsSizesError(str(bad_splits)) nlp.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=610252351, num_examples=532812, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='train', num_bytes=616473500, num_examples=536323, dataset_name='blog_authorship_corpus')}, {'expected': SplitInfo(name='validation', num_bytes=37500394, num_examples=31277, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='validation', num_bytes=30786661, num_examples=27766, dataset_name='blog_authorship_corpus')}] ``` Upon checking it seems like there is a disparity between the information in `datasets/blog_authorship_corpus/dataset_infos.json` and what was downloaded. Although I can get away with this by passing `ignore_verifications=True` in `load_dataset`, I'm thinking doing so might give problems later on.
31
NonMatchingSplitsSizesError when loading blog_authorship_corpus Getting this error when i run `nlp.load_dataset('blog_authorship_corpus')`. ``` raise NonMatchingSplitsSizesError(str(bad_splits)) nlp.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=610252351, num_examples=532812, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='train', num_bytes=616473500, num_examples=536323, dataset_name='blog_authorship_corpus')}, {'expected': SplitInfo(name='validation', num_bytes=37500394, num_examples=31277, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='validation', num_bytes=30786661, num_examples=27766, dataset_name='blog_authorship_corpus')}] ``` Upon checking it seems like there is a disparity between the information in `datasets/blog_authorship_corpus/dataset_infos.json` and what was downloaded. Although I can get away with this by passing `ignore_verifications=True` in `load_dataset`, I'm thinking doing so might give problems later on. Feel free to do `ignore_verifications=True` for now... The verifications only include a check on the checksums of the downloaded files, and a check on the number of examples in each splits.
[ -0.15917623043060303, 0.06138305366039276, 0.06137039139866829, 0.3985074758529663, -0.09111861139535904, 0.06813985854387283, -0.15415658056735992, 0.3743869960308075, -0.053989164531230927, 0.12912309169769287, 0.09491052478551865, 0.16967734694480896, 0.0508912168443203, -0.07023654133081436, -0.029941856861114502, -0.03138880431652069, -0.04626800864934921, 0.20410314202308655, 0.04388696327805519, 0.0010295696556568146, -0.019637027755379677, 0.4404022991657257, -0.30175018310546875, -0.022967375814914703, -0.24699412286281586, -0.16833113133907318, -0.04213075712323189, 0.328198105096817, 0.003955359570682049, -0.3751755654811859, 0.24395851790905, -0.0751478374004364, 0.13529227674007416, 0.19081120193004608, -0.00012187100219307467, -0.013405516743659973, 0.5785955786705017, -0.21563439071178436, -0.2062557488679886, -0.25492221117019653, -0.40470564365386963, -0.36228084564208984, -0.08360160887241364, -0.235519140958786, -0.021686464548110962, -0.05503862723708153, 0.1720566302537918, -0.08598019182682037, 0.2725290358066559, 0.285422146320343, 0.1191038191318512, 0.15230579674243927, -0.11947961151599884, 0.03129119798541069, 0.13146856427192688, 0.11148028075695038, -0.038226090371608734, -0.09602147340774536, -0.08761416375637054, -0.2862398624420166, -0.10378166288137436, 0.4399673044681549, -0.19715158641338348, 0.15519721806049347, 0.2258736789226532, 0.11542975157499313, 0.40087324380874634, -0.11456133425235748, 0.03758137300610542, 0.3904355764389038, 0.5094949007034302, 0.1603328138589859, -0.20868957042694092, -0.5066441297531128, -0.05045696347951889, 0.19382120668888092, 0.4156518280506134, 0.3648846745491028, -0.23909974098205566, 0.00847167894244194, -0.4111095070838928, -0.0739307627081871, -0.0905095636844635, 0.1017405092716217, 0.2668361961841583, 0.1985686719417572, 0.11837159842252731, 0.006739459931850433, 0.12967248260974884, -0.041098661720752716, 0.11463289707899094, -0.24428758025169373, -0.13999246060848236, 0.11282774060964584, -0.18387845158576965, -0.19307394325733185, -0.144851952791214, -0.017406471073627472, 0.21208804845809937, 0.2155573070049286, 0.35182878375053406, -0.054053448140621185, 0.2256540209054947, 0.11196843534708023, 0.4283176064491272, 0.04790673777461052, -0.0107363760471344, 0.5196459293365479, 0.08321714401245117, 0.0033721821382641792, 0.11515690386295319, 0.059673190116882324, 0.26598086953163147, -0.219094917178154, -0.1451861709356308, 0.11991684138774872, 0.15946269035339355, -0.5667439103126526, -0.4398617148399353, 0.10815709829330444, -0.5615877509117126, -0.24343392252922058, -0.09248416125774384, 0.175662100315094, -0.36141306161880493, 0.3320045471191406, -0.1538781225681305, 0.04779858887195587, -0.36163774132728577, -0.05944642424583435, -0.20667245984077454, 0.17067858576774597, -0.1975000947713852, 0.20532508194446564, 0.20146101713180542, -0.15544430911540985, 0.40264207124710083, -0.10782989114522934, -0.0586719810962677, -0.1968977451324463, 0.4011349678039551, -0.10814128816127777, 0.020010635256767273, 0.1572445034980774, -0.029180794954299927, 0.16998536884784698, -0.000843636691570282, -0.21693286299705505, -0.38861674070358276, 0.07954529672861099, -0.2230241298675537, -0.536848783493042, 0.1046893373131752, 0.1530231237411499, -0.44328904151916504, -0.06129153072834015, 0.09627247601747513, 0.2109624594449997, 0.3643845021724701, -0.33245134353637695, -0.09742415696382523, -0.22020165622234344, -0.12947234511375427, -0.054568368941545486, -0.20552828907966614, 0.49508988857269287, 0.1402004510164261, -0.26605284214019775, 0.1304529756307602, -0.0182819664478302, 0.5335455536842346, 0.34930917620658875, 0.0343344621360302, 0.09643981605768204, -0.19258923828601837, 0.48758596181869507, 0.13571065664291382, -0.3542966842651367, -0.16301195323467255, 0.5454872250556946, 0.02868305891752243, 0.28070515394210815, 0.2512045204639435, 0.11917009204626083, 0.19429701566696167, -0.09376254677772522, 0.010771557688713074, 0.4080861806869507, -0.02160199172794819, 0.03519243001937866, -0.4514918923377991, -0.30968812108039856, 0.41489923000335693, 0.20669551193714142, 0.11799602210521698, -0.04226314276456833, -0.0019414722919464111, 0.49649980664253235, 0.30462947487831116, -0.13594865798950195, 0.05396657437086105, 0.29197078943252563, -0.35402727127075195, 0.12886829674243927, 0.03853607550263405, -0.1150447279214859, -0.36973392963409424, -0.02302168309688568, -0.2869817018508911, 0.2818146049976349, 0.10698985308408737, -0.2584027647972107, -0.1996176838874817, -0.41557472944259644, -0.025225576013326645, -0.02996232733130455, 0.010713674128055573, 0.28152212500572205, 0.3974570631980896, 0.05119377747178078, 0.0685105174779892, 0.4284546375274658, -0.06218896806240082, 0.17390736937522888, -0.7967959046363831, 0.23201729357242584, -0.11876440793275833, -0.21117724478244781, 0.5127652287483215, 0.34133443236351013, 0.22369948029518127, -0.1693108081817627, -0.09573167562484741, 0.43656113743782043, -0.10373665392398834, 0.401958703994751, -0.17406821250915527, 0.010553121566772461, 0.20788675546646118, -0.29545867443084717, 0.018218066543340683, 0.3747372627258301, -0.02840379998087883, -0.06868965923786163, -0.13359445333480835, 0.41676658391952515, -0.3382877707481384, 0.1654527485370636, 0.06876244395971298, 0.015009680762887001, 0.07816463708877563, -0.2387963980436325, -0.19139571487903595, -0.45546478033065796, 0.6415629982948303, -0.09513702988624573, -0.32226407527923584, 0.04229317232966423, -0.20106329023838043, 0.033033281564712524, 0.43965238332748413, 0.02186518907546997, -0.09082566946744919, -0.026410512626171112, 0.02838936820626259, -0.16086632013320923, 0.09572210162878036, 0.27505454421043396, 0.5138394236564636, 0.12376867979764938, 0.023314591497182846, 0.015096381306648254, -0.1677723079919815, -0.33145833015441895, 0.12296830862760544, -0.06293919682502747, 0.027277151122689247, 0.36706849932670593, -0.0033680028282105923, -0.031910259276628494, -0.3108038902282715, -0.012369286268949509, 0.1595616340637207, 0.24881504476070404, -0.32820895314216614, -0.13419099152088165, -0.3583882451057434, -0.4044022560119629, -0.3453231453895569, -0.13506558537483215, -0.2826969027519226, -0.36944079399108887, 0.20206382870674133, 0.19996461272239685, -0.16825935244560242, 0.13886921107769012, -0.1668095588684082, 0.04333522915840149, -0.31563571095466614, -0.05282694101333618, -0.01851608231663704, -0.21042878925800323, -0.2734285593032837, -0.026242319494485855, 0.2240411341190338, 0.4267173111438751, 0.2425212264060974, -0.39223435521125793, -0.1577695608139038, 0.04674068093299866, -0.2580869793891907, 0.06250301748514175, -0.05618534982204437, -0.1513659954071045, 0.17683610320091248, -0.1386256217956543, 0.37565261125564575, -0.22181417047977448, 0.10164022445678711, -0.189956396818161, -0.3374035954475403, 0.027316682040691376, 0.17911216616630554, 0.03542172163724899, -0.19235484302043915, -0.5341879725456238, -0.2685706317424774, -0.3635151982307434, -0.06236554682254791, 0.2855769395828247, 0.24182555079460144, 0.031727734953165054, -0.12043998390436172, -0.13270322978496552, -0.17049190402030945, 0.2503778040409088, -0.30170804262161255, -0.05888959392905235, 0.24042068421840668, -0.09786701947450638, -0.1675155758857727, -0.031470879912376404, 0.002838568761944771, -0.05066573992371559, 0.12287486344575882, -0.5468320250511169, -0.10958744585514069, -0.20560315251350403, -0.07945845276117325, -0.32694217562675476, -0.25753387808799744, 0.5263429880142212, -0.07347598671913147, -0.024188891053199768, 0.013537425547838211, -0.3449539244174957, 0.06836888194084167, 0.10190646350383759, 0.5138316750526428, -0.16110694408416748, 0.18403828144073486, -0.014320068061351776, 0.5651074051856995, 0.5774591565132141, 0.07665638625621796, -0.11549969017505646, 0.17679136991500854, 0.09244584292173386, 0.17404821515083313, 0.009828081354498863, 0.37702590227127075, 0.02252820134162903, -0.10745596140623093, 0.4157788157463074, 0.08360519260168076, -0.19980108737945557, -0.1143890917301178, -0.157850444316864, -0.3104238510131836, -0.18710273504257202, 0.16156239807605743, -0.2299748957157135, 0.20063267648220062, 0.2018061876296997, 0.23883384466171265, -0.18510407209396362, -0.5294707417488098, -0.012654468417167664, 0.3591073155403137, 0.22725722193717957, 0.17685946822166443, -0.4701024293899536, 0.14273501932621002, -0.4302372336387634, 0.29585614800453186, 0.21121463179588318, 0.28491026163101196, -0.2108568549156189, -0.15540429949760437, 0.0810374841094017, -0.19880682229995728, 0.2955514192581177, -0.40564221143722534, -0.015020336955785751, -0.046210870146751404, -0.03189629688858986, -0.34224238991737366, -0.20172253251075745, -0.1381530910730362, 0.3731074929237366, 0.508664608001709, 0.42138612270355225, -0.4272288978099823, -0.12459424138069153, 0.16328248381614685, -0.059404876083135605, -0.13091015815734863, -0.16943685710430145, -0.2525319755077362, -0.33339032530784607, -0.17162978649139404, -0.14729255437850952, -0.12542948126792908, 0.3001164197921753, -0.021955862641334534, -0.002083718776702881, 0.14473269879817963, 0.12521988153457642, 0.33557552099227905, 0.257182240486145, 0.16852495074272156, -0.03306169435381889, 0.1076684445142746, 0.27887028455734253, 0.5404438972473145, 0.08358237892389297, 0.5131450891494751, 0.10595822334289551, -0.058910831809043884, -0.025091279298067093, -0.3047662675380707, 0.07861337065696716, 0.4301796555519104, 0.17479157447814941, 0.08524932712316513, 0.1424742341041565, -0.027434691786766052, -0.4631119668483734, -0.0257441196590662, 0.11071286350488663, -0.0765664204955101, -0.3716807961463928, -0.3909311890602112, 0.25884005427360535, 0.26937830448150635, -0.14291052520275116, -0.14606842398643494, -0.1955784410238266, -0.2553567588329315, 0.23188088834285736, 0.15940725803375244, 0.9950321912765503, 0.2600897252559662, -0.02602076157927513, -0.02760886400938034, -0.22299695014953613, 0.8679139018058777, -0.2555350959300995, 0.41089749336242676, -0.42821526527404785, -0.25126904249191284, -0.06234835833311081, -0.20891478657722473, 0.15235090255737305, 0.11817771941423416, -0.299696147441864, 0.3315713405609131, 0.26875609159469604, -0.011666219681501389, -0.10332180559635162, 0.44522324204444885, -0.2453596293926239, -0.07309865951538086, -0.17734766006469727, 0.014801263809204102, -0.2884221076965332, 0.5008417963981628, -0.01772228628396988, -0.12158536911010742, -0.2184639275074005, -0.21833428740501404, -0.4154771566390991, 0.2596201002597809, 0.1806759238243103, 0.005108813755214214, 0.2780006229877472, -0.18391938507556915, -0.0008592307567596436, 0.09157222509384155, 0.32835853099823, -0.18273353576660156, -0.17481882870197296, 0.00697433203458786, -0.20243790745735168, -0.13968567550182343, 0.19291909039020538, 0.07448718696832657, 0.33971667289733887, -0.12549316883087158, 0.0013914182782173157, 0.05643022805452347, -0.12228965014219284, -0.3300776481628418, -0.3035999834537506, -0.11330483853816986, -0.20215903222560883, -0.18769331276416779, -0.08816792070865631, 0.07827678322792053, -0.10347349941730499, -0.06149632856249809, 0.0404772087931633, -0.04023364186286926, -0.21182575821876526, 0.2360776662826538, -0.0904947966337204, -0.33042216300964355, -0.11680644750595093, 0.39779964089393616, 0.3670249879360199, -0.034113459289073944, 0.44290396571159363, -0.10410822927951813, -0.09311046451330185, -0.20934051275253296, -0.1291900873184204, -0.3109360635280609, -0.34310415387153625, 0.1643281877040863, -0.2684628367424011, -0.08667051792144775, 0.1947074830532074, 0.2930179536342621, 0.2384103536605835, 0.3419269919395447, -0.0016044266521930695, -0.5291132926940918, 0.016075341030955315, 0.13710343837738037, -0.024978335946798325, 0.07527989149093628, -0.1436314880847931, 0.4218314588069916, -0.20619706809520721, 0.2404174655675888, -0.21923041343688965, -0.08254662901163101, -0.40393587946891785, 0.3224557340145111, 0.11327164620161057, -0.10176319628953934, -0.03889843076467514, 0.01586867868900299, -0.11925502121448517, 0.21726565062999725, -0.14230144023895264, 0.0013304632157087326, -0.11548461019992828, 0.2013711929321289, 0.147395059466362, -0.0819738358259201, -0.1027798056602478, 0.11400684714317322, 0.0714295357465744, 0.02901669405400753, -0.05398615077137947, 0.20699408650398254, -0.022113651037216187, 0.3232143819332123, -0.3484606444835663, 0.04232332855463028, -0.06938469409942627, 0.23659785091876984, -0.3490240275859833, 0.2936602830886841, -0.09470085799694061, 0.2198619693517685, -0.08393587917089462, -0.00015816092491149902, -0.03363391384482384, 0.013330318033695221, 0.08372713625431061, 0.07243612408638, 0.1884957253932953, -0.1730409413576126, 0.10398264229297638, 0.22139349579811096, 0.021714363247156143, 0.5436680912971497, -0.07953464239835739, -0.10975401848554611, 0.07915373891592026, 0.10070671886205673, -0.12908583879470825, -0.031610067933797836, 0.25471031665802, -0.030462395399808884, -0.12914341688156128, 0.35050326585769653, 0.14029479026794434, -0.16056570410728455, -0.20050962269306183, 0.10796486586332321, 0.396157830953598, -0.13299088180065155, 0.12379749119281769, 0.29219961166381836, -0.16179803013801575, -0.015710454434156418, 0.2393842190504074, -0.263827919960022, 0.13483278453350067, 0.01098715141415596, 0.04418591782450676, 0.46133723855018616, 0.09753632545471191, 0.39205455780029297, -0.14451441168785095, -0.13713562488555908, -0.053860727697610855, 0.7125884294509888, 0.30327385663986206, 0.40754857659339905, 0.23052415251731873, 0.47541236877441406, -0.3398914337158203, -0.003783969674259424, -0.3541964888572693, -0.1846436709165573, -0.03735296428203583, -0.1019018292427063, -0.5155580639839172, -0.10836458206176758, -0.23224836587905884, 0.12218520045280457, -0.08818666636943817, 0.1432599127292633, 0.409343421459198, -0.07159407436847687, -0.18918563425540924, -0.47873273491859436, 0.05307820066809654, 0.014808878302574158, 0.17545412480831146, -0.32879114151000977, 0.15796221792697906, 0.03684302419424057, -0.16267038881778717, 0.39498794078826904, 0.5192050337791443, 0.5169353485107422, 0.3021611273288727, -0.14195601642131805, -0.21230366826057434, 0.05457659810781479, 0.15161603689193726, 0.23794212937355042, 0.7681573629379272, 0.2752503752708435, -0.2857533097267151, 0.3937152326107025, -0.051301442086696625, -0.08288409560918808, 0.40311768651008606, 0.05604410171508789, -0.06899259984493256, -0.026875680312514305, 0.4426214098930359, -0.1370536834001541, 0.11488369852304459, -0.004703156650066376, 0.11616048216819763, -0.29875069856643677, -0.3102477192878723, 0.10357452929019928, -0.17181961238384247, 0.2889472246170044, -0.07533495873212814, 0.03425167128443718, -0.312788724899292, 0.5959128737449646, 0.4353998601436615, -0.21247142553329468, -0.21041026711463928, -0.11609253287315369, -0.49980106949806213, 0.34542617201805115, -0.4612213969230652, -0.23284536600112915, -0.1896781325340271, 0.47722530364990234, -0.2099052369594574, 0.2936580181121826, -0.17123909294605255, 0.4648703634738922, -0.12852242588996887, 0.07755862176418304, -0.2698146104812622, -0.05188294127583504, -0.0817444920539856, -0.19109496474266052, 0.021984484046697617, -0.22614002227783203, 0.19919045269489288, 0.10465051233768463, -0.0841170996427536, 0.03213830292224884, 0.05748908966779709, 0.026997555047273636, 0.427626371383667, -0.08215118944644928, 0.5023900270462036, 0.42900291085243225, -0.14516258239746094, -0.21732614934444427, -0.08769014477729797, -0.288801372051239, -0.2974662482738495, 0.3786476254463196, 0.1362176239490509, 0.4217302203178406, -0.17510397732257843, 0.647175133228302, -0.12871083617210388, 0.32008227705955505, 0.019591540098190308, 0.011847563087940216, -0.327124685049057, -0.03769728168845177, -0.21452471613883972, 0.026058312505483627, 0.15193964540958405, 0.4710061848163605, 0.17633016407489777, -0.017447171732783318, -0.18155892193317413, -0.3055364489555359, 0.42345350980758667, -0.3196597993373871, 0.03429260477423668, -0.026695776730775833, 0.18106962740421295, 0.2032095491886139, -0.11101239174604416, -0.6931039690971375, -0.07680737227201462, 0.2931544780731201, -0.1101621612906456, 0.0857434868812561, -0.03579174727201462, -0.07137201726436615, -0.2900959849357605, -0.022308330982923508, -0.22079914808273315, 0.2341662347316742, -0.36399999260902405, 0.38446223735809326, -0.08561253547668457 ]
https://github.com/huggingface/datasets/issues/215
NonMatchingSplitsSizesError when loading blog_authorship_corpus
I'm getting this same issue when loading the `imdb` corpus via `dataset = load_dataset("imdb")`. When I try `ignore_verifications=True`, no examples are read into the `train` portion of the dataset.
Getting this error when i run `nlp.load_dataset('blog_authorship_corpus')`. ``` raise NonMatchingSplitsSizesError(str(bad_splits)) nlp.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=610252351, num_examples=532812, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='train', num_bytes=616473500, num_examples=536323, dataset_name='blog_authorship_corpus')}, {'expected': SplitInfo(name='validation', num_bytes=37500394, num_examples=31277, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='validation', num_bytes=30786661, num_examples=27766, dataset_name='blog_authorship_corpus')}] ``` Upon checking it seems like there is a disparity between the information in `datasets/blog_authorship_corpus/dataset_infos.json` and what was downloaded. Although I can get away with this by passing `ignore_verifications=True` in `load_dataset`, I'm thinking doing so might give problems later on.
29
NonMatchingSplitsSizesError when loading blog_authorship_corpus Getting this error when i run `nlp.load_dataset('blog_authorship_corpus')`. ``` raise NonMatchingSplitsSizesError(str(bad_splits)) nlp.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=610252351, num_examples=532812, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='train', num_bytes=616473500, num_examples=536323, dataset_name='blog_authorship_corpus')}, {'expected': SplitInfo(name='validation', num_bytes=37500394, num_examples=31277, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='validation', num_bytes=30786661, num_examples=27766, dataset_name='blog_authorship_corpus')}] ``` Upon checking it seems like there is a disparity between the information in `datasets/blog_authorship_corpus/dataset_infos.json` and what was downloaded. Although I can get away with this by passing `ignore_verifications=True` in `load_dataset`, I'm thinking doing so might give problems later on. I'm getting this same issue when loading the `imdb` corpus via `dataset = load_dataset("imdb")`. When I try `ignore_verifications=True`, no examples are read into the `train` portion of the dataset.
[ -0.10609079897403717, 0.17192861437797546, 0.08614687621593475, 0.3715279698371887, -0.07061787694692612, 0.19752103090286255, -0.08851557970046997, 0.3589630126953125, -0.07059380412101746, 0.13236728310585022, 0.01096381526440382, 0.1926109790802002, 0.019732879474759102, -0.13543389737606049, -0.06135153770446777, 0.001089446246623993, -0.04968469589948654, 0.15122738480567932, 0.08074261248111725, -0.0007667914032936096, -0.01908312737941742, 0.43668124079704285, -0.3507993221282959, -0.06492385268211365, -0.27976828813552856, -0.17144830524921417, 0.00506000779569149, 0.306812047958374, 0.06778999418020248, -0.3383014500141144, 0.24676035344600677, -0.08211246132850647, 0.10468752682209015, 0.2587445378303528, -0.0001232282374985516, 0.03466276824474335, 0.671319305896759, -0.23092059791088104, -0.1916343718767166, -0.3499619960784912, -0.33645811676979065, -0.22554023563861847, -0.007184447720646858, -0.21592660248279572, 0.002393636852502823, -0.07125650346279144, 0.1934572160243988, -0.15920580923557281, 0.17167378962039948, 0.30346208810806274, 0.09692037105560303, 0.16826274991035461, -0.1791483610868454, 0.05318069085478783, 0.22526118159294128, 0.18425430357456207, -0.08278988301753998, -0.08363938331604004, -0.09633398056030273, -0.13919855654239655, -0.13139429688453674, 0.43920519948005676, -0.24314351379871368, 0.15211214125156403, 0.27531203627586365, 0.1611490696668625, 0.2986014783382416, -0.2021780163049698, 0.01869640126824379, 0.3758305311203003, 0.48768630623817444, 0.10426054894924164, -0.3134581744670868, -0.47657132148742676, -0.02254035323858261, 0.1831902712583542, 0.36662232875823975, 0.349696546792984, -0.2403942495584488, 0.036856018006801605, -0.42643705010414124, -0.029453396797180176, -0.1325446218252182, 0.0899537205696106, 0.21369251608848572, 0.10086137801408768, 0.15536971390247345, -0.0032720938324928284, 0.04466123506426811, -0.09545885026454926, 0.1590355485677719, -0.23730134963989258, -0.11320297420024872, 0.04265638440847397, -0.13779059052467346, -0.13386529684066772, -0.09080599993467331, 0.015388857573270798, 0.19063499569892883, 0.20482218265533447, 0.31359565258026123, 0.05322403088212013, 0.22500520944595337, 0.21918264031410217, 0.47183531522750854, -0.045839473605155945, -0.08414619415998459, 0.5593461394309998, 0.24461138248443604, 0.03002547286450863, 0.060236942023038864, -0.010038096457719803, 0.2779301702976227, -0.12376882880926132, -0.08744265884160995, 0.025135645642876625, 0.2521754503250122, -0.556233823299408, -0.46969059109687805, 0.10254020988941193, -0.4754386246204376, -0.11085556447505951, -0.049945320934057236, 0.2599775791168213, -0.3506717383861542, 0.31802523136138916, -0.11212348937988281, 0.1118001937866211, -0.33322566747665405, -0.045167915523052216, -0.19081109762191772, 0.1568983793258667, -0.10932192206382751, 0.18961705267429352, 0.3031004071235657, -0.0997934341430664, 0.4644145369529724, -0.14836961030960083, 0.05276643857359886, -0.16524362564086914, 0.4266851842403412, -0.17668195068836212, 0.1208888590335846, 0.22699189186096191, 0.07362096011638641, 0.23083315789699554, -0.022406991571187973, -0.14349515736103058, -0.3749013841152191, 0.14235243201255798, -0.18751969933509827, -0.5286052823066711, 0.11082938313484192, 0.12504610419273376, -0.39939767122268677, -0.057953596115112305, -0.010793857276439667, 0.19039057195186615, 0.34667617082595825, -0.38587912917137146, -0.08683205395936966, -0.16370481252670288, -0.0795992761850357, 0.004998261108994484, -0.1590006798505783, 0.46130824089050293, 0.18528114259243011, -0.20224373042583466, 0.153197780251503, 0.05393040180206299, 0.5437246561050415, 0.35257911682128906, 0.024557841941714287, 0.022252753376960754, -0.1407121866941452, 0.4579935669898987, 0.18905970454216003, -0.46631282567977905, -0.1278701275587082, 0.5851631760597229, 0.09912465512752533, 0.31708383560180664, 0.22275236248970032, 0.14682310819625854, 0.23375390470027924, -0.060823362320661545, 0.04069172590970993, 0.4009261131286621, -0.08982804417610168, 0.07596074789762497, -0.36748820543289185, -0.3140707314014435, 0.4080738425254822, 0.17906014621257782, 0.13126666843891144, 0.0107998326420784, -0.05128655582666397, 0.48669442534446716, 0.2602525055408478, -0.08486109972000122, 0.09025508165359497, 0.2709383964538574, -0.40591517090797424, 0.13252195715904236, 0.07757262885570526, -0.09696809947490692, -0.36800092458724976, 0.003212541341781616, -0.18764956295490265, 0.28002333641052246, 0.05730147659778595, -0.32654285430908203, -0.15178203582763672, -0.4228246808052063, -0.007932912558317184, 0.02488744631409645, -0.017824340611696243, 0.25395479798316956, 0.32473963499069214, 0.09333059191703796, -0.019458681344985962, 0.3759137690067291, -0.026518553495407104, 0.24070756137371063, -0.8501715660095215, 0.1395418792963028, -0.17637410759925842, -0.28393977880477905, 0.4763648509979248, 0.2768564820289612, 0.1811406910419464, -0.14808839559555054, -0.0746745616197586, 0.4480016231536865, -0.07221228629350662, 0.466130793094635, -0.348992258310318, 0.02252340316772461, 0.31674835085868835, -0.2829039990901947, -0.019445745274424553, 0.3597467243671417, 0.01224695984274149, -0.06113012135028839, -0.17984288930892944, 0.37260711193084717, -0.3008645474910736, 0.22642797231674194, 0.1057959645986557, 0.009543374180793762, 0.12567369639873505, -0.2296976000070572, -0.24622605741024017, -0.5783407688140869, 0.5604597926139832, -0.10399405658245087, -0.33910128474235535, -0.0010967757552862167, -0.2969704270362854, -0.019726961851119995, 0.4288884997367859, 0.11643347144126892, -0.06571345776319504, -0.0364806205034256, -0.0052561089396476746, -0.15044289827346802, 0.19341494143009186, 0.18049262464046478, 0.4251813292503357, 0.12823989987373352, 0.08470857888460159, 0.012772059068083763, -0.17027927935123444, -0.357714980840683, 0.11679764091968536, 0.05171719565987587, 0.00345144746825099, 0.389189213514328, 0.06336139142513275, 0.0323285274207592, -0.34547868371009827, -0.02795778587460518, 0.20833399891853333, 0.10395755618810654, -0.3814582824707031, -0.1296588033437729, -0.4263538718223572, -0.39681151509284973, -0.23945918679237366, -0.17718341946601868, -0.121517613530159, -0.37650254368782043, 0.2047393023967743, 0.3355308771133423, -0.20929259061813354, 0.11408441513776779, -0.27202144265174866, -0.012220799922943115, -0.33466166257858276, -0.0690801739692688, -0.07071837782859802, -0.22454893589019775, -0.29378852248191833, -0.03721277788281441, 0.1956598311662674, 0.4540424644947052, 0.22492282092571259, -0.3926711082458496, -0.16009283065795898, 0.05446258932352066, -0.2624685764312744, 0.08240647614002228, -0.08520683646202087, -0.07174300402402878, 0.11912166327238083, -0.16228087246418, 0.370414137840271, -0.28497743606567383, 0.029572494328022003, -0.161270871758461, -0.29478389024734497, 0.03648272156715393, 0.1533924788236618, 0.0339844711124897, -0.2557273209095001, -0.5162027478218079, -0.21861322224140167, -0.36561352014541626, -0.10801629722118378, 0.2695896327495575, 0.1867016851902008, 0.0947456806898117, -0.15174253284931183, -0.09986419230699539, -0.03366965800523758, 0.30374419689178467, -0.253095805644989, -0.11181144416332245, 0.3357352614402771, -0.22152768075466156, -0.13774678111076355, 0.054697755724191666, -0.055415354669094086, -0.05785686895251274, 0.12819130718708038, -0.5356529951095581, -0.11282769590616226, -0.2253439724445343, -0.05317845195531845, -0.21877041459083557, -0.30812519788742065, 0.4669429063796997, -0.07963481545448303, -0.024784192442893982, -0.03771033510565758, -0.3831615746021271, 0.07807598263025284, 0.06121506169438362, 0.4086664617061615, -0.11687048524618149, 0.27625998854637146, -0.001048937439918518, 0.433056116104126, 0.518930971622467, 0.0885114073753357, 0.0033361315727233887, 0.1372218132019043, 0.12602144479751587, 0.10288160294294357, 0.028162261471152306, 0.30397531390190125, -0.020976588129997253, -0.1285875290632248, 0.35867971181869507, 0.06537888944149017, -0.28293535113334656, -0.14736029505729675, -0.11749069392681122, -0.3157089650630951, -0.26602500677108765, 0.12340958416461945, -0.344330370426178, 0.12941183149814606, 0.19345533847808838, 0.3407939076423645, -0.08182305097579956, -0.5395626425743103, -0.018391277641057968, 0.2862551212310791, 0.27306461334228516, 0.1352226585149765, -0.4073796272277832, 0.15566569566726685, -0.46853309869766235, 0.2718782126903534, 0.18034225702285767, 0.3475732207298279, -0.1694800853729248, -0.1578046679496765, 0.055487751960754395, -0.20148667693138123, 0.33941712975502014, -0.4746231734752655, 0.013200674206018448, -0.004179583862423897, -0.07114436477422714, -0.423763245344162, -0.18968671560287476, -0.18537144362926483, 0.4030248820781708, 0.4932015538215637, 0.4149574339389801, -0.37820693850517273, -0.07719454169273376, 0.24144436419010162, -0.08462479710578918, -0.05414007231593132, -0.15137535333633423, -0.21289336681365967, -0.3216528594493866, -0.27340760827064514, -0.15363165736198425, 0.005820998921990395, 0.2583267390727997, -0.10156750679016113, -0.1375628113746643, 0.09534553438425064, 0.14404433965682983, 0.41291916370391846, 0.2945846915245056, 0.183589905500412, 0.018144628033041954, 0.14950384199619293, 0.35043251514434814, 0.45056581497192383, 0.17933349311351776, 0.48814308643341064, 0.060325153172016144, -0.15531286597251892, 0.06298726797103882, -0.3202916979789734, 0.04379025101661682, 0.4678919315338135, 0.19955554604530334, 0.02190212905406952, 0.12911421060562134, -0.1437588483095169, -0.3940747082233429, -0.005322097800672054, 0.06702906638383865, -0.17417636513710022, -0.3361242115497589, -0.3677905797958374, 0.2681989371776581, 0.3401361107826233, -0.11092513054609299, -0.16600073873996735, -0.15098653733730316, -0.3498976528644562, 0.3399806618690491, 0.17212839424610138, 0.9456440210342407, 0.2882971167564392, -0.015686046332120895, -0.0824359878897667, -0.17538729310035706, 0.8163895606994629, -0.23600579798221588, 0.4304829239845276, -0.38118255138397217, -0.24644918739795685, -0.08875583112239838, -0.17461058497428894, 0.138422891497612, 0.1136198341846466, -0.3597874641418457, 0.3247304856777191, 0.1303016096353531, 0.0346149206161499, -0.19171461462974548, 0.40301281213760376, -0.2849452793598175, -0.1913120001554489, -0.1555314064025879, 0.0236925408244133, -0.1681816279888153, 0.38430333137512207, 0.05537446588277817, -0.07974898815155029, -0.23064114153385162, -0.2179843932390213, -0.4340413808822632, 0.2383931577205658, 0.15239720046520233, 0.041991740465164185, 0.2618046700954437, -0.21192941069602966, -0.021443959325551987, 0.12296980619430542, 0.33395910263061523, -0.17732958495616913, -0.17432758212089539, -0.005739521235227585, -0.10337188094854355, -0.1869615614414215, 0.14108459651470184, 0.059363774955272675, 0.384488582611084, -0.09873586893081665, -0.011702761054039001, 0.08156478404998779, -0.15946167707443237, -0.26500919461250305, -0.17423194646835327, -0.13260594010353088, -0.18644283711910248, -0.18964193761348724, -0.16944284737110138, 0.013096809387207031, -0.06749475002288818, -0.08927712589502335, 0.013088580220937729, -0.13440026342868805, -0.15610593557357788, 0.2143864631652832, -0.034494299441576004, -0.33171671628952026, -0.10979124903678894, 0.4217984974384308, 0.33537760376930237, -0.003499705344438553, 0.4691963493824005, -0.06988658010959625, -0.11542727798223495, -0.1543065905570984, -0.07997770607471466, -0.14900045096874237, -0.3325285315513611, 0.20993635058403015, -0.2215031087398529, -0.0826893299818039, 0.23825129866600037, 0.2852208614349365, 0.1336512565612793, 0.2915153503417969, -0.12268853187561035, -0.47120046615600586, -0.00956166721880436, 0.2567788064479828, -0.01919400319457054, 0.11481311917304993, -0.14997437596321106, 0.39572563767433167, -0.18629401922225952, 0.1535695344209671, -0.1901642382144928, -0.07312838733196259, -0.4806295931339264, 0.3539188504219055, 0.09942669421434402, -0.007977049797773361, -0.08883371204137802, -0.027649372816085815, -0.16565965116024017, 0.2819244861602783, -0.01915929466485977, 0.006709050387144089, -0.13281388580799103, 0.19781991839408875, 0.09791277348995209, -0.10110506415367126, -0.13994503021240234, 0.11612583696842194, 0.020546961575746536, -0.004848369397222996, 0.03788506239652634, 0.2670261859893799, -0.008994027972221375, 0.3893871605396271, -0.36771613359451294, 0.09063170850276947, -0.05895484983921051, 0.18782030045986176, -0.3241519629955292, 0.28103646636009216, -0.12034641951322556, 0.210749089717865, -0.04493283852934837, 0.04436355084180832, 0.03362663835287094, -0.028520435094833374, 0.03280792012810707, 0.0435921773314476, 0.14903277158737183, -0.16278553009033203, 0.14060962200164795, 0.3381778597831726, -0.023935087025165558, 0.5712103247642517, -0.06357834488153458, -0.16158314049243927, 0.030100297182798386, 0.087977834045887, -0.08461955189704895, -0.003346087643876672, 0.20257937908172607, -0.060470856726169586, -0.06835377216339111, 0.3554303050041199, 0.18379630148410797, -0.10070598125457764, -0.18464170396327972, 0.11385064572095871, 0.42155134677886963, -0.1778310090303421, 0.19242489337921143, 0.19783851504325867, -0.21465815603733063, -0.01578390970826149, 0.16785579919815063, -0.20996670424938202, 0.19654615223407745, 0.04577687010169029, 0.02020953595638275, 0.47435837984085083, 0.15783214569091797, 0.39537137746810913, -0.0726075991988182, -0.21184661984443665, -0.06808489561080933, 0.6018935441970825, 0.3082665205001831, 0.43376460671424866, 0.2270943820476532, 0.3257052004337311, -0.27832621335983276, -0.00010964018292725086, -0.3504144847393036, -0.18376074731349945, -0.01141752302646637, -0.16466325521469116, -0.4718983769416809, -0.09388533234596252, -0.23944799602031708, 0.0969727486371994, -0.15479296445846558, 0.1520395427942276, 0.3951609432697296, -0.0444193109869957, -0.20598693192005157, -0.5548537373542786, 0.13787591457366943, -0.1304258108139038, 0.19312044978141785, -0.26797184348106384, 0.18461088836193085, 0.0576743520796299, -0.11533753573894501, 0.4310169816017151, 0.5478073954582214, 0.5472558736801147, 0.3214591443538666, -0.1735174059867859, -0.11064247041940689, 0.03344258666038513, 0.03277958929538727, 0.19032789766788483, 0.7335744500160217, 0.32219794392585754, -0.27110064029693604, 0.3745807409286499, -0.059075258672237396, -0.05481628328561783, 0.4139443039894104, 0.12746433913707733, 0.015451037324965, -0.06342178583145142, 0.5102360248565674, -0.17088806629180908, 0.10250916332006454, 0.00685114786028862, 0.025249093770980835, -0.274666428565979, -0.3511114716529846, 0.20946767926216125, -0.3275752067565918, 0.2222515344619751, -0.030705280601978302, 0.018956325948238373, -0.254696249961853, 0.5723082423210144, 0.43846985697746277, -0.14093232154846191, -0.2188490927219391, -0.01065332442522049, -0.48453405499458313, 0.35602033138275146, -0.37361592054367065, -0.16402645409107208, -0.13282223045825958, 0.5531370043754578, -0.28624576330184937, 0.23929376900196075, -0.2779920697212219, 0.3856368064880371, -0.17468684911727905, 0.16580186784267426, -0.2571766674518585, -0.013567857444286346, -0.10855501890182495, -0.22183574736118317, 0.006634961813688278, -0.24003097414970398, 0.14324893057346344, 0.04273724555969238, -0.12452132999897003, 0.03154338151216507, -0.02433411031961441, 0.06714442372322083, 0.49722903966903687, -0.003902822732925415, 0.4787130653858185, 0.46563172340393066, -0.15694770216941833, -0.2309434562921524, -0.16266947984695435, -0.37804388999938965, -0.34398844838142395, 0.3681851327419281, 0.17288795113563538, 0.4330155551433563, -0.17476129531860352, 0.5583011507987976, -0.04618244618177414, 0.2748161852359772, -0.04320487007498741, -0.004775393754243851, -0.32028624415397644, 0.012488367035984993, -0.2711305022239685, 0.025067342445254326, 0.1263645738363266, 0.370369017124176, 0.17302130162715912, -0.020745899528265, -0.18759053945541382, -0.4143213629722595, 0.430174857378006, -0.3541785776615143, 0.05320948734879494, -0.1393236517906189, 0.15484261512756348, 0.2172609269618988, -0.1422218680381775, -0.7538333535194397, -0.08064055442810059, 0.2726386487483978, -0.16095593571662903, 0.05061489716172218, -0.01310388557612896, -0.01478198729455471, -0.2709469497203827, -0.1554519683122635, -0.25527286529541016, 0.2476237714290619, -0.37345224618911743, 0.3072870373725891, -0.09805567562580109 ]
https://github.com/huggingface/datasets/issues/215
NonMatchingSplitsSizesError when loading blog_authorship_corpus
> I'm getting this same issue when loading the `imdb` corpus via `dataset = load_dataset("imdb")`. When I try `ignore_verifications=True`, no examples are read into the `train` portion of the dataset. When the checksums don't match, it may mean that the file you downloaded is corrupted. In this case you can try to load the dataset again `load_dataset("imdb", download_mode="force_redownload")` Also I just checked on my side and it worked fine: ```python from datasets import load_dataset dataset = load_dataset("imdb") print(len(dataset["train"])) # 25000 ``` Let me know if redownloading fixes your issue @EmilyAlsentzer . If not, feel free to open a separate issue.
Getting this error when i run `nlp.load_dataset('blog_authorship_corpus')`. ``` raise NonMatchingSplitsSizesError(str(bad_splits)) nlp.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=610252351, num_examples=532812, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='train', num_bytes=616473500, num_examples=536323, dataset_name='blog_authorship_corpus')}, {'expected': SplitInfo(name='validation', num_bytes=37500394, num_examples=31277, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='validation', num_bytes=30786661, num_examples=27766, dataset_name='blog_authorship_corpus')}] ``` Upon checking it seems like there is a disparity between the information in `datasets/blog_authorship_corpus/dataset_infos.json` and what was downloaded. Although I can get away with this by passing `ignore_verifications=True` in `load_dataset`, I'm thinking doing so might give problems later on.
100
NonMatchingSplitsSizesError when loading blog_authorship_corpus Getting this error when i run `nlp.load_dataset('blog_authorship_corpus')`. ``` raise NonMatchingSplitsSizesError(str(bad_splits)) nlp.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=610252351, num_examples=532812, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='train', num_bytes=616473500, num_examples=536323, dataset_name='blog_authorship_corpus')}, {'expected': SplitInfo(name='validation', num_bytes=37500394, num_examples=31277, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='validation', num_bytes=30786661, num_examples=27766, dataset_name='blog_authorship_corpus')}] ``` Upon checking it seems like there is a disparity between the information in `datasets/blog_authorship_corpus/dataset_infos.json` and what was downloaded. Although I can get away with this by passing `ignore_verifications=True` in `load_dataset`, I'm thinking doing so might give problems later on. > I'm getting this same issue when loading the `imdb` corpus via `dataset = load_dataset("imdb")`. When I try `ignore_verifications=True`, no examples are read into the `train` portion of the dataset. When the checksums don't match, it may mean that the file you downloaded is corrupted. In this case you can try to load the dataset again `load_dataset("imdb", download_mode="force_redownload")` Also I just checked on my side and it worked fine: ```python from datasets import load_dataset dataset = load_dataset("imdb") print(len(dataset["train"])) # 25000 ``` Let me know if redownloading fixes your issue @EmilyAlsentzer . If not, feel free to open a separate issue.
[ -0.1760099232196808, 0.19232258200645447, 0.06580764055252075, 0.4156304597854614, 0.012083226814866066, 0.1936919391155243, -0.060682568699121475, 0.38789743185043335, -0.05917414277791977, 0.13248205184936523, -0.07451490312814713, 0.1716659516096115, 0.00934085063636303, -0.13655902445316315, -0.07436680793762207, 0.00014007091522216797, -0.06103075295686722, 0.14836765825748444, 0.07987795025110245, 0.035928718745708466, -0.06956399232149124, 0.4301070272922516, -0.34624868631362915, -0.08884057402610779, -0.2378145456314087, -0.11275633424520493, 0.02941945381462574, 0.3264782130718231, 0.046255726367235184, -0.36282941699028015, 0.25429537892341614, -0.06689770519733429, 0.12759678065776825, 0.30131015181541443, -0.000123778052511625, 0.01873631775379181, 0.663929283618927, -0.24313727021217346, -0.19303731620311737, -0.3823125958442688, -0.29839086532592773, -0.2795041501522064, -0.0311896875500679, -0.2351135015487671, 0.00004668906331062317, -0.04557742178440094, 0.13764581084251404, -0.17305034399032593, 0.22491559386253357, 0.3440396189689636, 0.09746149927377701, 0.18349289894104004, -0.09256068617105484, 0.11123805493116379, 0.21578481793403625, 0.12078339606523514, -0.04892595857381821, -0.014452917501330376, -0.017779208719730377, -0.1584303081035614, -0.038527242839336395, 0.38623151183128357, -0.3328861892223358, 0.11739902198314667, 0.25707241892814636, 0.1490955650806427, 0.3444826304912567, -0.19640617072582245, 0.03148176893591881, 0.3853253126144409, 0.45523855090141296, 0.02042115479707718, -0.3434736728668213, -0.43859392404556274, -0.0033317296765744686, 0.09549646079540253, 0.385768860578537, 0.36564937233924866, -0.25014522671699524, 0.041201911866664886, -0.34488222002983093, 0.020255502313375473, -0.12321092188358307, 0.1056361198425293, 0.1657608300447464, 0.08337165415287018, 0.15274497866630554, -0.013327136635780334, 0.040776632726192474, -0.03611743450164795, 0.14461590349674225, -0.26563379168510437, -0.10599811375141144, 0.09341874718666077, -0.16324171423912048, -0.12530237436294556, -0.18923771381378174, -0.011101923882961273, 0.16719695925712585, 0.1999482810497284, 0.2925247550010681, 0.010139476507902145, 0.1910584270954132, 0.1882573366165161, 0.46921730041503906, -0.05503100901842117, -0.10778767615556717, 0.5959749817848206, 0.21419714391231537, 0.08869102597236633, -0.005385596305131912, -0.031112320721149445, 0.2485349476337433, -0.20115670561790466, 0.02705647051334381, 0.1297844499349594, 0.24780939519405365, -0.5492252111434937, -0.5105433464050293, 0.17850761115550995, -0.47248172760009766, -0.12943406403064728, -0.03337715566158295, 0.2145410180091858, -0.39336204528808594, 0.3246040344238281, -0.06497497111558914, 0.12263636291027069, -0.31911781430244446, -0.004285446368157864, -0.1595645546913147, 0.12740540504455566, -0.13459917902946472, 0.16218191385269165, 0.2891727089881897, -0.17284780740737915, 0.4029967784881592, -0.11030654609203339, 0.06361143290996552, -0.21592579782009125, 0.30708903074264526, -0.2068895846605301, 0.06568174809217453, 0.23887237906455994, 0.047185029834508896, 0.24789921939373016, 0.0007345937192440033, -0.2099759578704834, -0.35732394456863403, 0.13655635714530945, -0.20479103922843933, -0.4814675450325012, 0.07134103775024414, 0.12073978036642075, -0.3954436779022217, -0.047843463718891144, -0.07426399737596512, 0.036179233342409134, 0.36518311500549316, -0.4267302453517914, -0.09594743698835373, -0.2285144180059433, -0.07225827872753143, -0.035934168845415115, -0.10529300570487976, 0.5175378322601318, 0.15426717698574066, -0.1689532846212387, 0.1386113315820694, 0.05945900082588196, 0.5408581495285034, 0.39143210649490356, 0.05832090228796005, 0.025509551167488098, -0.19143180549144745, 0.376697301864624, 0.20354261994361877, -0.5307158827781677, -0.23676109313964844, 0.5350237488746643, 0.13700097799301147, 0.3692914843559265, 0.22536349296569824, 0.14809490740299225, 0.2658129036426544, -0.0620121993124485, 0.01656731590628624, 0.4239155054092407, -0.046328507363796234, 0.07779402285814285, -0.37284496426582336, -0.29308468103408813, 0.3921937942504883, 0.1419520229101181, 0.1503077894449234, 0.043526507914066315, -0.021334558725357056, 0.44595447182655334, 0.3237897455692291, -0.04585513845086098, 0.09353850781917572, 0.2675281763076782, -0.2806491553783417, 0.2581961154937744, 0.049429550766944885, -0.22007179260253906, -0.3241138756275177, 0.027645692229270935, -0.1992613524198532, 0.29943519830703735, -0.09630556404590607, -0.269767165184021, -0.17187514901161194, -0.45702892541885376, -0.04208016023039818, -0.007489927113056183, -0.006650930270552635, 0.20860150456428528, 0.2889246344566345, 0.13070330023765564, -0.06835639476776123, 0.4250885844230652, -0.09385284036397934, 0.241192027926445, -0.802484929561615, 0.24098889529705048, -0.19558721780776978, -0.3173595070838928, 0.4423465430736542, 0.2632889449596405, 0.198736310005188, -0.14953123033046722, -0.14108487963676453, 0.4424901604652405, -0.031132521107792854, 0.4205712676048279, -0.3902108073234558, 0.07099080085754395, 0.3251241147518158, -0.328319251537323, -0.013646559789776802, 0.37926816940307617, 0.06837337464094162, -0.09130792319774628, -0.09971336275339127, 0.37370765209198, -0.376333087682724, 0.21936768293380737, 0.13083051145076752, 0.02967187948524952, 0.13359224796295166, -0.21173624694347382, -0.2728484272956848, -0.5291532278060913, 0.5458315014839172, -0.06431104242801666, -0.3128310441970825, 0.004712508991360664, -0.2317238450050354, -0.06337504833936691, 0.4167567193508148, 0.03907531127333641, -0.0715503916144371, -0.01635366678237915, -0.005610205233097076, -0.0973757654428482, 0.07564924657344818, 0.20833958685398102, 0.4420287013053894, 0.09719017893075943, 0.01375548541545868, 0.0784996971487999, -0.20874278247356415, -0.31791308522224426, 0.16330677270889282, 0.01875694841146469, 0.003322225995361805, 0.4489199221134186, 0.013932942412793636, 0.08493036031723022, -0.2789883017539978, -0.0302162803709507, 0.11369820684194565, 0.18893924355506897, -0.42711004614830017, -0.09499011188745499, -0.4230711758136749, -0.38129305839538574, -0.32520967721939087, -0.19172699749469757, -0.15214866399765015, -0.3741568624973297, 0.10221891105175018, 0.3356708586215973, -0.09335169196128845, 0.15202708542346954, -0.27478158473968506, -0.07710884511470795, -0.2856379449367523, -0.1671760231256485, -0.04007280245423317, -0.2553855776786804, -0.222213476896286, -0.06030019372701645, 0.2851201593875885, 0.416253000497818, 0.2191532999277115, -0.4314364790916443, -0.18763338029384613, -0.0039608534425497055, -0.21282833814620972, 0.047138623893260956, -0.09212259948253632, -0.010914821177721024, 0.12462608516216278, -0.09668326377868652, 0.3530614376068115, -0.308454304933548, 0.13665306568145752, -0.18659085035324097, -0.2865259051322937, 0.08701886236667633, 0.1654973030090332, 0.005902021192014217, -0.16749311983585358, -0.47558680176734924, -0.2604389488697052, -0.35200026631355286, -0.15064629912376404, 0.26975423097610474, 0.18269239366054535, 0.09125292301177979, -0.12194882333278656, -0.10851678252220154, -0.03932351619005203, 0.3502362370491028, -0.21496829390525818, -0.1261632889509201, 0.29936811327934265, -0.15706674754619598, -0.17148801684379578, 0.006665389984846115, -0.0190335214138031, -0.028024781495332718, 0.12993454933166504, -0.5250768661499023, -0.12667807936668396, -0.2553531229496002, -0.01944795623421669, -0.2235795259475708, -0.21697361767292023, 0.4017183184623718, -0.01997009664773941, 0.007224181666970253, -0.007094282656908035, -0.3523039221763611, 0.027413994073867798, 0.05319138616323471, 0.3816004693508148, -0.13469228148460388, 0.3094494640827179, -0.03444173187017441, 0.4264935851097107, 0.5960375666618347, 0.03605334088206291, 0.027639299631118774, 0.07134269922971725, 0.1436527669429779, 0.07474640011787415, -0.10544979572296143, 0.2657158374786377, -0.07296572625637054, -0.07890424132347107, 0.2505123019218445, 0.008918331936001778, -0.22383186221122742, -0.1783437877893448, -0.12964577972888947, -0.4514029622077942, -0.2732062339782715, 0.10059631615877151, -0.31990501284599304, 0.17668408155441284, 0.137522891163826, 0.2814933955669403, -0.055179037153720856, -0.564666211605072, 0.029397640377283096, 0.4150557518005371, 0.214581698179245, 0.11503993719816208, -0.3385310471057892, 0.14205729961395264, -0.3411732614040375, 0.26438796520233154, 0.2061060220003128, 0.3740829527378082, -0.11116989701986313, -0.11376474797725677, 0.03909395635128021, -0.19258235394954681, 0.3788112998008728, -0.47466278076171875, 0.05551685765385628, -0.004085184074938297, -0.07041135430335999, -0.41189610958099365, -0.21917086839675903, -0.1826019287109375, 0.3691924512386322, 0.4657856523990631, 0.46917203068733215, -0.3520938754081726, -0.06196622923016548, 0.2556951642036438, 0.021390682086348534, -0.10110478103160858, -0.17458003759384155, -0.22858572006225586, -0.33551180362701416, -0.2618883550167084, -0.17329803109169006, -0.04387561231851578, 0.3112167716026306, -0.07534443587064743, -0.08241899311542511, 0.04225127771496773, 0.16651910543441772, 0.42532670497894287, 0.2312406599521637, 0.2076849639415741, -0.03240147605538368, 0.22409912943840027, 0.2517687678337097, 0.409474641084671, 0.21285970509052277, 0.5298274755477905, -0.0027636513113975525, -0.19281655550003052, -0.07655351608991623, -0.30114445090293884, 0.0054929256439208984, 0.437414288520813, 0.20440992712974548, -0.03045041114091873, 0.12637099623680115, -0.1373869776725769, -0.4296751916408539, -0.05294429510831833, 0.1266045868396759, -0.1013168916106224, -0.38544753193855286, -0.49731186032295227, 0.2998219132423401, 0.35049915313720703, -0.1128721535205841, -0.14339683949947357, -0.09955014288425446, -0.334793359041214, 0.34836727380752563, 0.1721322238445282, 0.9992439150810242, 0.22708705067634583, -0.025044430047273636, -0.06836023181676865, -0.20097815990447998, 0.784455418586731, -0.212983638048172, 0.35989683866500854, -0.43502572178840637, -0.29632169008255005, -0.10602003335952759, -0.1812583953142166, 0.19104495644569397, 0.10323575884103775, -0.3326260447502136, 0.3883799910545349, 0.10925696790218353, -0.01733795925974846, -0.2038629800081253, 0.4057888388633728, -0.2884771525859833, -0.11453825235366821, -0.15640445053577423, 0.020807411521673203, -0.18778879940509796, 0.4317869246006012, 0.08245343714952469, -0.05726075917482376, -0.2624449133872986, -0.16835257411003113, -0.5495001673698425, 0.22166487574577332, 0.1427236795425415, 0.026372455060482025, 0.21180017292499542, -0.2248522937297821, -0.013590188696980476, 0.1342340111732483, 0.32788532972335815, -0.11514613032341003, -0.10681682825088501, -0.0016027167439460754, -0.02261660248041153, -0.15573081374168396, 0.20076531171798706, 0.05771109461784363, 0.4340374767780304, -0.10155393183231354, -0.06176280975341797, 0.10912125557661057, -0.07918702811002731, -0.261149525642395, -0.13389453291893005, -0.13959407806396484, -0.18021583557128906, -0.21085798740386963, -0.20317071676254272, 0.014056563377380371, -0.029256049543619156, -0.09731978178024292, 0.01700638420879841, -0.059213653206825256, -0.1978052407503128, 0.2540108859539032, -0.0918477326631546, -0.35133200883865356, -0.09548228979110718, 0.4479708671569824, 0.2841576337814331, -0.04742599278688431, 0.46550697088241577, -0.044769223779439926, -0.11638565361499786, -0.14287006855010986, -0.07991945743560791, -0.22824013233184814, -0.3608662188053131, 0.1705569475889206, -0.25035667419433594, 0.003219038248062134, 0.21465682983398438, 0.2766197621822357, 0.23138117790222168, 0.28160712122917175, -0.09972825646400452, -0.5418651103973389, -0.00588491465896368, 0.16270127892494202, 0.09235312044620514, 0.15330176055431366, -0.19041457772254944, 0.3851996660232544, -0.20321165025234222, 0.08855763077735901, -0.18876269459724426, 0.0016786915948614478, -0.42164307832717896, 0.31907954812049866, 0.0986844152212143, -0.010334961116313934, -0.10647909343242645, -0.05362065136432648, -0.1095469743013382, 0.2328646183013916, -0.00862361304461956, -0.0021023154258728027, -0.1735309213399887, 0.19913411140441895, 0.07818412780761719, -0.1462140828371048, -0.12777993083000183, 0.029298003762960434, 0.07194742560386658, -0.03990613669157028, -0.03288338705897331, 0.3182603716850281, 0.016946163028478622, 0.4303991496562958, -0.2967919409275055, 0.0070574358105659485, -0.05222373083233833, 0.2537628412246704, -0.37408018112182617, 0.320404589176178, -0.0648331493139267, 0.23397691547870636, -0.002991278422996402, 0.0760771781206131, 0.005250516347587109, -0.010939151048660278, -0.03330622613430023, 0.044250763952732086, 0.26031824946403503, -0.18230991065502167, 0.1516094207763672, 0.3269650936126709, 0.06303001940250397, 0.662173867225647, -0.09779161959886551, -0.14357498288154602, 0.10021957010030746, 0.08938533067703247, -0.12129435688257217, 0.01768505573272705, 0.2556920349597931, -0.06329960376024246, -0.08007557690143585, 0.375148206949234, 0.16038691997528076, -0.11737380176782608, -0.24033178389072418, 0.09514510631561279, 0.5035061240196228, -0.13529165089130402, 0.18721485137939453, 0.26725468039512634, -0.052081555128097534, -0.035117510706186295, 0.11959286779165268, -0.2135705202817917, 0.1130555123090744, 0.08282060921192169, -0.016397729516029358, 0.40817567706108093, 0.05979686975479126, 0.3810713291168213, -0.11079757660627365, -0.19281382858753204, -0.016884099692106247, 0.5765304565429688, 0.19954802095890045, 0.4437114894390106, 0.2377898097038269, 0.3454335927963257, -0.33760350942611694, 0.02590196765959263, -0.3117019236087799, -0.1353364884853363, -0.013287842273712158, -0.17353332042694092, -0.4493536949157715, -0.13270987570285797, -0.22633367776870728, 0.1173153668642044, -0.13277402520179749, 0.16288962960243225, 0.3212738037109375, 0.03350146487355232, -0.20877037942409515, -0.5127846002578735, 0.06974206119775772, -0.11926976591348648, 0.22779223322868347, -0.2851019501686096, 0.11935007572174072, 0.12183264642953873, -0.06800301373004913, 0.38052886724472046, 0.5955413579940796, 0.6343856453895569, 0.39273330569267273, -0.19025760889053345, -0.05602836236357689, 0.03639748692512512, 0.059501148760318756, 0.20654886960983276, 0.7163823843002319, 0.24613185226917267, -0.22020076215267181, 0.34021204710006714, -0.033732444047927856, -0.06545177102088928, 0.3719550669193268, 0.07000909000635147, 0.02559615857899189, -0.08627092838287354, 0.523668110370636, -0.19162197411060333, 0.11693481355905533, -0.05106054246425629, 0.06794918328523636, -0.3206075429916382, -0.32367855310440063, 0.2613775432109833, -0.26411789655685425, 0.2465268075466156, -0.0030768855940550566, 0.015305645763874054, -0.2047770470380783, 0.5182000994682312, 0.5190640687942505, -0.09691683202981949, -0.2433953583240509, -0.011230908334255219, -0.553438663482666, 0.35067644715309143, -0.38485589623451233, -0.2197265475988388, -0.14044539630413055, 0.5029472708702087, -0.29132387042045593, 0.27189135551452637, -0.1669800728559494, 0.42171674966812134, -0.1999901533126831, 0.2392643392086029, -0.26129382848739624, -0.04820128157734871, -0.08566777408123016, -0.24912485480308533, -0.041207894682884216, -0.23633703589439392, 0.1247372031211853, 0.0006043305620551109, -0.09424874186515808, 0.03008134849369526, -0.026399847120046616, 0.0613667331635952, 0.4949742555618286, 0.024867568165063858, 0.4822668433189392, 0.5218859314918518, -0.14398804306983948, -0.2633274495601654, -0.17555689811706543, -0.3367418348789215, -0.30829471349716187, 0.4396429657936096, 0.13124699890613556, 0.37442266941070557, -0.18795934319496155, 0.47989413142204285, -0.13751116394996643, 0.33619368076324463, -0.02559877373278141, -0.11676651984453201, -0.3755330443382263, -0.05126219987869263, -0.22220605611801147, -0.031138349324464798, 0.09890033304691315, 0.4211772680282593, 0.15882240235805511, 0.08846054971218109, -0.17987701296806335, -0.40906235575675964, 0.43700599670410156, -0.3273996412754059, 0.04309287294745445, -0.11276234686374664, 0.12388122081756592, 0.1499229222536087, -0.03915221244096756, -0.7592729330062866, -0.035974886268377304, 0.30051422119140625, -0.1770358383655548, -0.027316100895404816, -0.013707514852285385, -0.019451741129159927, -0.22175349295139313, -0.11064110696315765, -0.3095341622829437, 0.22752609848976135, -0.359622985124588, 0.3135595917701721, -0.08145666122436523 ]
https://github.com/huggingface/datasets/issues/215
NonMatchingSplitsSizesError when loading blog_authorship_corpus
I wasn't aware of the "force_redownload" option and manually removed the '/home/me/.cache/huggingface/datasets/' dir, this worked for me (dataset 'cnn_dailymail')
Getting this error when i run `nlp.load_dataset('blog_authorship_corpus')`. ``` raise NonMatchingSplitsSizesError(str(bad_splits)) nlp.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=610252351, num_examples=532812, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='train', num_bytes=616473500, num_examples=536323, dataset_name='blog_authorship_corpus')}, {'expected': SplitInfo(name='validation', num_bytes=37500394, num_examples=31277, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='validation', num_bytes=30786661, num_examples=27766, dataset_name='blog_authorship_corpus')}] ``` Upon checking it seems like there is a disparity between the information in `datasets/blog_authorship_corpus/dataset_infos.json` and what was downloaded. Although I can get away with this by passing `ignore_verifications=True` in `load_dataset`, I'm thinking doing so might give problems later on.
19
NonMatchingSplitsSizesError when loading blog_authorship_corpus Getting this error when i run `nlp.load_dataset('blog_authorship_corpus')`. ``` raise NonMatchingSplitsSizesError(str(bad_splits)) nlp.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=610252351, num_examples=532812, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='train', num_bytes=616473500, num_examples=536323, dataset_name='blog_authorship_corpus')}, {'expected': SplitInfo(name='validation', num_bytes=37500394, num_examples=31277, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='validation', num_bytes=30786661, num_examples=27766, dataset_name='blog_authorship_corpus')}] ``` Upon checking it seems like there is a disparity between the information in `datasets/blog_authorship_corpus/dataset_infos.json` and what was downloaded. Although I can get away with this by passing `ignore_verifications=True` in `load_dataset`, I'm thinking doing so might give problems later on. I wasn't aware of the "force_redownload" option and manually removed the '/home/me/.cache/huggingface/datasets/' dir, this worked for me (dataset 'cnn_dailymail')
[ -0.05952079966664314, 0.15316835045814514, 0.07047902047634125, 0.3878912329673767, -0.015147149562835693, 0.14190766215324402, -0.0923854261636734, 0.3200820982456207, -0.04935682937502861, 0.008110061287879944, -0.08665385842323303, 0.15768681466579437, 0.03654792159795761, 0.0461474284529686, -0.019716359674930573, 0.08979146927595139, -0.04565136879682541, 0.2041378915309906, 0.045446742326021194, 0.029079250991344452, 0.000983797013759613, 0.5112380385398865, -0.24448397755622864, -0.06453932821750641, -0.3506295084953308, -0.14984486997127533, 0.05441661179065704, 0.3629715144634247, 0.010663075372576714, -0.3910151422023773, 0.31971704959869385, -0.04728422686457634, 0.11418923735618591, 0.24019628763198853, -0.00012255208275746554, -0.002842746675014496, 0.469967782497406, -0.2191404551267624, -0.20502793788909912, -0.27034223079681396, -0.21681588888168335, -0.29916223883628845, -0.04636281728744507, -0.21825605630874634, -0.06674160063266754, -0.06653962284326553, 0.07996438443660736, -0.051992014050483704, 0.37194937467575073, 0.2974589169025421, 0.12554708123207092, 0.09593784064054489, -0.12729567289352417, 0.10268056392669678, 0.08485621213912964, 0.06652480363845825, -0.011884672567248344, -0.04185556620359421, -0.1720019280910492, -0.3219943642616272, -0.12819811701774597, 0.5180575847625732, -0.19157931208610535, 0.12624675035476685, 0.18193866312503815, 0.08008377999067307, 0.2830643951892853, -0.11941683292388916, 0.06791131943464279, 0.30653825402259827, 0.4064790606498718, 0.10857899487018585, -0.22490519285202026, -0.5339213609695435, 0.007108590565621853, 0.05136091262102127, 0.45279955863952637, 0.34143364429473877, -0.1976623237133026, 0.10054177045822144, -0.4158659875392914, -0.22632387280464172, -0.054597754031419754, 0.0072791688144207, 0.21390071511268616, 0.20679038763046265, 0.03881840035319328, -0.010091826319694519, 0.1374930739402771, -0.03788353502750397, 0.22440877556800842, -0.09223970025777817, -0.14465244114398956, 0.0849096029996872, -0.21261729300022125, -0.15949317812919617, -0.12389051169157028, 0.03781523182988167, 0.1740894317626953, 0.15352165699005127, 0.23721086978912354, -0.07823150604963303, 0.1446378082036972, 0.041927680373191833, 0.369393527507782, 0.17495514452457428, -0.0018969476222991943, 0.42824187874794006, 0.14054018259048462, 0.033289406448602676, 0.11029365658760071, 0.003799494355916977, 0.2939819097518921, -0.1572292149066925, -0.067064568400383, 0.04519617184996605, 0.2099597454071045, -0.5436299443244934, -0.4165383577346802, 0.07986757159233093, -0.4917491376399994, -0.20235233008861542, -0.12295082956552505, 0.1320476084947586, -0.3499177396297455, 0.35234466195106506, -0.07884303480386734, 0.03780790790915489, -0.3732771873474121, -0.05599610507488251, -0.201429545879364, 0.10900098085403442, -0.1936444491147995, 0.23633500933647156, 0.2714071273803711, -0.2821207642555237, 0.43705183267593384, -0.05147628113627434, -0.09336377680301666, -0.25618666410446167, 0.26467108726501465, -0.030780913308262825, -0.023291945457458496, 0.19040636718273163, -0.13137604296207428, 0.23993639647960663, 0.008580297231674194, -0.2008439004421234, -0.28731536865234375, 0.016373183578252792, -0.27687567472457886, -0.6388429999351501, 0.08123844861984253, 0.11714999377727509, -0.4046171307563782, -0.059641845524311066, 0.017498642206192017, 0.22032125294208527, 0.3705640137195587, -0.26042574644088745, -0.10591267794370651, -0.16876043379306793, -0.10133911669254303, -0.029852600768208504, -0.16532838344573975, 0.5042776465415955, 0.1327272653579712, -0.3224145472049713, 0.16070140898227692, -0.03138398379087448, 0.47419577836990356, 0.4351540505886078, -0.0065023023635149, 0.10734180361032486, -0.17257213592529297, 0.35535675287246704, 0.14280268549919128, -0.3949936330318451, -0.25507935881614685, 0.4000755846500397, -0.0010340437293052673, 0.29157406091690063, 0.18328073620796204, 0.13108743727207184, 0.0920163244009018, -0.06459467113018036, 0.05912257358431816, 0.4729751944541931, 0.07429239153862, 0.09922929853200912, -0.45281141996383667, -0.4169979393482208, 0.43306511640548706, 0.1688200831413269, 0.109771229326725, 0.07702742516994476, -0.019928209483623505, 0.4880305826663971, 0.3150664269924164, -0.14438815414905548, 0.06338564306497574, 0.31531858444213867, -0.33134588599205017, 0.15865139663219452, 0.04939120635390282, -0.08946102112531662, -0.5167134404182434, 0.007717646658420563, -0.2730098366737366, 0.31955820322036743, 0.050448495894670486, -0.19811023771762848, -0.23507988452911377, -0.4627169668674469, -0.07891243696212769, -0.18066345155239105, 0.0007563270628452301, 0.2350214123725891, 0.40903258323669434, 0.05455100163817406, -0.018293149769306183, 0.5882970690727234, -0.09648600220680237, 0.24484996497631073, -0.8845164775848389, 0.20832569897174835, -0.12776166200637817, -0.1689956784248352, 0.4122888147830963, 0.28587260842323303, 0.27037736773490906, -0.141652911901474, -0.13194617629051208, 0.463270902633667, -0.22580629587173462, 0.47883009910583496, -0.22793704271316528, -0.0022641420364379883, 0.2731260657310486, -0.29561731219291687, 0.02112073078751564, 0.2180163562297821, -0.04656488448381424, -0.0552712008357048, -0.06619390100240707, 0.3710588812828064, -0.3695770502090454, 0.13852934539318085, 0.01757361739873886, -0.04477131366729736, 0.10005241632461548, -0.2872812747955322, -0.1437973827123642, -0.48953884840011597, 0.5787155032157898, -0.15024611353874207, -0.2525637149810791, 0.02148469351232052, -0.13383232057094574, 0.016382358968257904, 0.3793988823890686, 0.06490437686443329, -0.09646507352590561, -0.0319763645529747, -0.016052857041358948, -0.20027071237564087, 0.05359122157096863, 0.24537546932697296, 0.5202926397323608, 0.1364888697862625, 0.02637573704123497, 0.09233392775058746, -0.16415856778621674, -0.33067843317985535, 0.15244314074516296, -0.06436385214328766, 0.08235209435224533, 0.3692170977592468, 0.1751464158296585, -0.0021436093375086784, -0.5159099698066711, 0.10421554744243622, 0.21197260916233063, 0.2446637600660324, -0.30409950017929077, -0.1348414123058319, -0.36489439010620117, -0.3866153657436371, -0.2667774558067322, -0.19045589864253998, -0.3162628710269928, -0.33005261421203613, 0.20578372478485107, 0.28559061884880066, -0.11775797605514526, 0.15927374362945557, -0.09243640303611755, 0.060768648982048035, -0.3277834951877594, 0.00911037903279066, -0.10953301191329956, -0.27586764097213745, -0.20552176237106323, -0.05036254972219467, 0.10383975505828857, 0.32214999198913574, 0.18946225941181183, -0.35606256127357483, -0.19915375113487244, -0.070481076836586, -0.3379552960395813, 0.047463901340961456, -0.08756689727306366, -0.07165783643722534, 0.0805036723613739, -0.06838101148605347, 0.3928326368331909, -0.1585330069065094, 0.14054228365421295, -0.2609809637069702, -0.30935052037239075, -0.041610680520534515, 0.17137858271598816, 0.19560928642749786, -0.16764220595359802, -0.5419090986251831, -0.2437298744916916, -0.363491028547287, -0.015157245099544525, 0.2141260802745819, 0.18519513309001923, 0.17180359363555908, -0.13248242437839508, -0.20916114747524261, -0.1113303154706955, 0.2509458661079407, -0.39252910017967224, -0.13909797370433807, 0.19587847590446472, -0.0768251121044159, -0.13032087683677673, -0.07141586393117905, 0.10173891484737396, -0.08580507338047028, 0.07061335444450378, -0.6237044930458069, -0.2201806604862213, -0.2419823855161667, -0.0938953161239624, -0.30282989144325256, -0.17800983786582947, 0.5007232427597046, -0.04541187360882759, -0.004132777452468872, 0.08095019310712814, -0.45969563722610474, 0.017947755753993988, 0.13317033648490906, 0.48731252551078796, -0.17907118797302246, 0.2381058633327484, -0.01955571584403515, 0.5533109307289124, 0.529594361782074, 0.053176335990428925, -0.009989656507968903, 0.16884231567382812, 0.2262655347585678, 0.040081366896629333, -0.13294918835163116, 0.3330082893371582, -0.06891213357448578, 0.03726237267255783, 0.34564948081970215, 0.10086362063884735, -0.14929670095443726, -0.1453624963760376, -0.16621887683868408, -0.3622745871543884, -0.18016986548900604, 0.13737817108631134, -0.13920119404792786, 0.12042427062988281, 0.2959349751472473, 0.14354243874549866, -0.1756928563117981, -0.4716591536998749, -0.008708658628165722, 0.2427843064069748, 0.143654003739357, 0.19786319136619568, -0.4579140543937683, 0.1711396872997284, -0.5147837400436401, 0.26574844121932983, 0.1584014594554901, 0.2646612823009491, -0.13183297216892242, -0.14703157544136047, 0.09939571470022202, -0.17282626032829285, 0.3940211534500122, -0.4049490690231323, -0.07724916934967041, -0.07967542111873627, -0.01671614497900009, -0.336355984210968, -0.17841477692127228, -0.035451944917440414, 0.3083246648311615, 0.47513169050216675, 0.4908384084701538, -0.3914107382297516, -0.15796485543251038, 0.18687692284584045, -0.009669484570622444, -0.13670499622821808, -0.1370304822921753, -0.2299734354019165, -0.38902583718299866, -0.2763253152370453, -0.11392243951559067, -0.13009314239025116, 0.3114846348762512, 0.025374090299010277, 0.016825523227453232, 0.12226451933383942, 0.09885262697935104, 0.2510800361633301, 0.18979135155677795, 0.13215547800064087, 0.02537437155842781, 0.07778109610080719, 0.3831084966659546, 0.5103025436401367, 0.03691951185464859, 0.6296117305755615, -0.010879769921302795, -0.03791637718677521, -0.08799172937870026, -0.08143637329339981, 0.027406997978687286, 0.5505660176277161, 0.2001909464597702, 0.053807225078344345, 0.13748981058597565, 0.010431401431560516, -0.4142749309539795, -0.04083765298128128, 0.11529887467622757, -0.08835206925868988, -0.42786988615989685, -0.29411065578460693, 0.31697842478752136, 0.23538489639759064, -0.13394246995449066, -0.131320521235466, -0.13563576340675354, -0.2719818353652954, 0.24533577263355255, 0.05523410439491272, 1.0419279336929321, 0.20728421211242676, 0.04186457395553589, -0.055813178420066833, -0.1492007076740265, 0.9380420446395874, -0.3000781536102295, 0.4176371693611145, -0.3517106771469116, -0.1780042052268982, -0.05750373378396034, -0.14746718108654022, 0.036033995449543, 0.09087730944156647, -0.15406030416488647, 0.37495166063308716, 0.28883612155914307, 0.05043979734182358, -0.12973591685295105, 0.42349573969841003, -0.24959734082221985, -0.1523144394159317, -0.30305051803588867, 0.01705707609653473, -0.30228346586227417, 0.5400661826133728, -0.038143258541822433, -0.07119683176279068, -0.0894838273525238, -0.20423318445682526, -0.3720652461051941, 0.25258582830429077, 0.024172786623239517, 0.12936747074127197, 0.23180118203163147, -0.19619181752204895, -0.0776415467262268, 0.10560742020606995, 0.4005054831504822, -0.16487450897693634, -0.12909546494483948, -0.006211418658494949, -0.14600729942321777, -0.1272873729467392, 0.11892911791801453, 0.09156021475791931, 0.2880972921848297, -0.09807222336530685, -0.030080311000347137, -0.013803228735923767, -0.14492261409759521, -0.330866277217865, -0.24841350317001343, -0.05192252993583679, -0.1608092486858368, -0.22444935142993927, -0.014996012672781944, 0.1725161075592041, -0.028157848864793777, -0.1344454437494278, 0.02083144523203373, -0.047644779086112976, -0.1695939153432846, 0.11480820924043655, -0.09480099380016327, -0.35478657484054565, -0.18660911917686462, 0.46530136466026306, 0.4119226932525635, -0.13000451028347015, 0.488916277885437, -0.1077919751405716, -0.04715236276388168, -0.16125041246414185, -0.18598589301109314, -0.2622640132904053, -0.4254763126373291, 0.2058078497648239, -0.2105528861284256, -0.17630672454833984, 0.20774637162685394, 0.2605402171611786, 0.23746582865715027, 0.31274643540382385, -0.013969480991363525, -0.4817536473274231, -0.039255015552043915, 0.13603456318378448, -0.011189006268978119, 0.09119053184986115, -0.024540163576602936, 0.3797796666622162, -0.24098168313503265, 0.3181019127368927, -0.2151934951543808, 0.039288878440856934, -0.3406296670436859, 0.3029211163520813, 0.19331927597522736, -0.13923481106758118, 0.06780237704515457, 0.01292051374912262, -0.14105603098869324, 0.2641361355781555, -0.1022028774023056, -0.017112888395786285, -0.14058861136436462, 0.19693779945373535, 0.15148591995239258, -0.11185378581285477, -0.15570750832557678, 0.07982870191335678, 0.06451943516731262, 0.016016140580177307, 0.06329862773418427, 0.2837778925895691, 0.06752462685108185, 0.30502936244010925, -0.28709185123443604, -0.0395350307226181, 0.0005166344344615936, 0.19909071922302246, -0.24377375841140747, 0.22092778980731964, -0.03934966027736664, 0.2127688080072403, -0.16374026238918304, 0.059370070695877075, -0.09963332116603851, 0.0008993595838546753, 0.08639173954725266, 0.08966058492660522, 0.08942949771881104, -0.2511570453643799, 0.03479783609509468, 0.26022666692733765, 0.053795307874679565, 0.5116804242134094, -0.08315573632717133, -0.1543084979057312, 0.12484142929315567, 0.08711416274309158, -0.1410173773765564, -0.06204947084188461, 0.3102421760559082, -0.07737069576978683, -0.09638045728206635, 0.3810332417488098, 0.17304794490337372, -0.12971505522727966, -0.1407463103532791, 0.1068655475974083, 0.4532071650028229, -0.1916288137435913, 0.15098385512828827, 0.12681446969509125, -0.10557444393634796, -0.0867418646812439, 0.37435033917427063, -0.20107778906822205, 0.12214738130569458, 0.11047109961509705, 0.04505382850766182, 0.3720737099647522, 0.054727330803871155, 0.45312854647636414, -0.16516456007957458, -0.15896712243556976, -0.03961111977696419, 0.6585912108421326, 0.18797217309474945, 0.43030086159706116, 0.14218169450759888, 0.5052544474601746, -0.33573421835899353, -0.015216518193483353, -0.320992648601532, 0.0213596373796463, -0.09274699538946152, -0.16650702059268951, -0.3016417622566223, -0.11755929887294769, -0.10489509254693985, 0.15447793900966644, -0.1509695202112198, 0.05504458397626877, 0.42080020904541016, -0.06759700179100037, -0.2946310043334961, -0.572676420211792, -0.003767549991607666, 0.05557841807603836, 0.2770497798919678, -0.22729746997356415, 0.2844376266002655, 0.07585044205188751, -0.20439916849136353, 0.3192940950393677, 0.6775814890861511, 0.5208282470703125, 0.2321728765964508, -0.032789696007966995, -0.07751880586147308, 0.07033386826515198, 0.1269392967224121, 0.21077416837215424, 0.7450394630432129, 0.2959689497947693, -0.3133509159088135, 0.27542489767074585, -0.038033924996852875, -0.1119685247540474, 0.3472531735897064, 0.02500414475798607, 0.07327799499034882, -0.03658010810613632, 0.38708627223968506, -0.16182805597782135, 0.08336395770311356, -0.06547266989946365, 0.09793008118867874, -0.3249248266220093, -0.21097305417060852, 0.1634381264448166, -0.17252744734287262, 0.30173978209495544, -0.08095721900463104, 0.044156864285469055, -0.24738401174545288, 0.5227412581443787, 0.5025146007537842, -0.31866103410720825, -0.15052703022956848, -0.026378050446510315, -0.5267684459686279, 0.2962951958179474, -0.3916662037372589, -0.08136037737131119, -0.20274870097637177, 0.4482114613056183, -0.1969202756881714, 0.2801703214645386, -0.17557330429553986, 0.4149183928966522, -0.07420182228088379, -0.018937155604362488, -0.23684757947921753, 0.0765005573630333, -0.031340405344963074, -0.1934027075767517, 0.07157570123672485, -0.24616378545761108, 0.21737560629844666, 0.15779604017734528, -0.10438945889472961, 0.03160884231328964, 0.1015203595161438, -0.016133520752191544, 0.3900720179080963, -0.07530266046524048, 0.5313581228256226, 0.29228436946868896, -0.03974784165620804, -0.2839522957801819, -0.14522993564605713, -0.4025914669036865, -0.31096354126930237, 0.3422141373157501, 0.20279112458229065, 0.48639509081840515, -0.22397969663143158, 0.47227486968040466, -0.16622613370418549, 0.3110295236110687, 0.02751234918832779, -0.06190115958452225, -0.3194900453090668, -0.0263417549431324, -0.17405250668525696, 0.04495810717344284, 0.20531423389911652, 0.5501672029495239, 0.14749211072921753, 0.0528295561671257, -0.26446592807769775, -0.414132684469223, 0.3889918029308319, -0.3854784369468689, 0.00392170250415802, 0.07363028079271317, 0.23610800504684448, 0.27451783418655396, -0.20531979203224182, -0.7636075019836426, 0.043447963893413544, 0.22158895432949066, -0.13191324472427368, -0.00814550556242466, 0.06734844297170639, -0.1885167807340622, -0.27262771129608154, -0.014860659837722778, -0.1771641969680786, 0.3695696294307709, -0.4083256125450134, 0.4173520803451538, -0.019796893000602722 ]
https://github.com/huggingface/datasets/issues/215
NonMatchingSplitsSizesError when loading blog_authorship_corpus
Yes I think this might not be documented well enough. Let’s add it to the doc @lhoestq @SBrandeis. And everything on how to control the cache behavior better (removing, overriding, changing the path, etc)
Getting this error when i run `nlp.load_dataset('blog_authorship_corpus')`. ``` raise NonMatchingSplitsSizesError(str(bad_splits)) nlp.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=610252351, num_examples=532812, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='train', num_bytes=616473500, num_examples=536323, dataset_name='blog_authorship_corpus')}, {'expected': SplitInfo(name='validation', num_bytes=37500394, num_examples=31277, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='validation', num_bytes=30786661, num_examples=27766, dataset_name='blog_authorship_corpus')}] ``` Upon checking it seems like there is a disparity between the information in `datasets/blog_authorship_corpus/dataset_infos.json` and what was downloaded. Although I can get away with this by passing `ignore_verifications=True` in `load_dataset`, I'm thinking doing so might give problems later on.
34
NonMatchingSplitsSizesError when loading blog_authorship_corpus Getting this error when i run `nlp.load_dataset('blog_authorship_corpus')`. ``` raise NonMatchingSplitsSizesError(str(bad_splits)) nlp.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=610252351, num_examples=532812, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='train', num_bytes=616473500, num_examples=536323, dataset_name='blog_authorship_corpus')}, {'expected': SplitInfo(name='validation', num_bytes=37500394, num_examples=31277, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='validation', num_bytes=30786661, num_examples=27766, dataset_name='blog_authorship_corpus')}] ``` Upon checking it seems like there is a disparity between the information in `datasets/blog_authorship_corpus/dataset_infos.json` and what was downloaded. Although I can get away with this by passing `ignore_verifications=True` in `load_dataset`, I'm thinking doing so might give problems later on. Yes I think this might not be documented well enough. Let’s add it to the doc @lhoestq @SBrandeis. And everything on how to control the cache behavior better (removing, overriding, changing the path, etc)
[ -0.0478636659681797, 0.2781362533569336, 0.07765775918960571, 0.39152491092681885, -0.1035541445016861, 0.03640378266572952, -0.08268316090106964, 0.24596086144447327, -0.0835333839058876, 0.04618632793426514, 0.08917731791734695, 0.1745026707649231, 0.040607742965221405, -0.15940992534160614, 0.017909232527017593, 0.05279983952641487, -0.06446731835603714, 0.12483171373605728, 0.10597976297140121, 0.04289722442626953, -0.010563738644123077, 0.39612340927124023, -0.19377800822257996, -0.04041973501443863, -0.30533385276794434, -0.2336779534816742, 0.02902183122932911, 0.23348218202590942, 0.040228575468063354, -0.47699204087257385, 0.24664755165576935, 0.05662894248962402, 0.10053175687789917, 0.16701513528823853, -0.0001217628741869703, -0.06326866149902344, 0.5389481782913208, -0.19484297931194305, -0.2518881559371948, -0.02978973090648651, -0.3836035430431366, -0.2797579765319824, 0.0038726474158465862, -0.28427597880363464, 0.01517874002456665, 0.02353665977716446, 0.17921526730060577, -0.1652393341064453, 0.22913683950901031, 0.30275875329971313, 0.12136082351207733, 0.10980728268623352, -0.18810980021953583, 0.16789381206035614, 0.17320466041564941, -0.027630575001239777, -0.06475885957479477, -0.15657766163349152, -0.11170956492424011, -0.28193068504333496, -0.24037209153175354, 0.4598934054374695, -0.2357238531112671, 0.15005986392498016, 0.26409196853637695, 0.08830931037664413, 0.3216770887374878, -0.08726443350315094, 0.013093840330839157, 0.3902912735939026, 0.5862079858779907, -0.046833306550979614, -0.28496691584587097, -0.4985668957233429, -0.12967342138290405, 0.028640219941735268, 0.5057654976844788, 0.2795499265193939, -0.15703856945037842, 0.053701288998126984, -0.4670749604701996, -0.17777767777442932, -0.05261091887950897, -0.0008098632097244263, 0.31687062978744507, 0.19807353615760803, 0.12562769651412964, -0.05163534730672836, 0.03075585328042507, -0.010176517069339752, 0.26844921708106995, -0.18168991804122925, -0.12499317526817322, 0.08544921875, -0.23216603696346283, -0.2051636278629303, -0.02672503888607025, 0.09116483479738235, 0.25675031542778015, 0.21745707094669342, 0.4005262851715088, 0.005885712802410126, 0.21397075057029724, 0.12421581149101257, 0.3358578383922577, 0.2084185630083084, -0.014870621263980865, 0.3932434320449829, 0.15307924151420593, -0.002486757468432188, 0.13733036816120148, 0.05757527053356171, 0.35157960653305054, -0.20486590266227722, -0.011023098602890968, 0.20190531015396118, 0.15973487496376038, -0.48777633905410767, -0.3507692515850067, 0.10072774440050125, -0.39977961778640747, -0.26050660014152527, -0.058671895414590836, 0.24248531460762024, -0.37205666303634644, 0.3226311504840851, -0.2690642178058624, -0.03352273255586624, -0.44995439052581787, -0.12790599465370178, -0.23330014944076538, 0.17981542646884918, -0.14685629308223724, 0.338238924741745, 0.23913748562335968, -0.07944631576538086, 0.39431411027908325, -0.16760502755641937, -0.099435955286026, -0.13192147016525269, 0.3565545082092285, -0.10957340896129608, 0.08933708816766739, 0.20857872068881989, -0.09280385822057724, 0.15525035560131073, -0.04847084358334541, -0.09950155764818192, -0.4851602613925934, 0.04101753979921341, -0.32748943567276, -0.671757161617279, 0.09786250442266464, 0.11474663019180298, -0.37202852964401245, -0.04900138080120087, 0.15988124907016754, 0.3045908212661743, 0.5192118287086487, -0.3798103928565979, 0.0015791654586791992, -0.08771181106567383, -0.19829106330871582, -0.1586364507675171, -0.17053388059139252, 0.523129940032959, 0.0726185142993927, -0.30685660243034363, 0.12426725775003433, 0.011717751622200012, 0.48262152075767517, 0.36976704001426697, -0.035665158182382584, 0.15336841344833374, -0.1641872525215149, 0.3558744192123413, 0.17119842767715454, -0.41636374592781067, -0.2768097519874573, 0.38039013743400574, 0.10637594759464264, 0.2749009132385254, 0.24967363476753235, 0.12377046048641205, 0.24420711398124695, -0.1929774284362793, 0.016356386244297028, 0.4298614263534546, -0.06306633353233337, 0.09338195621967316, -0.5093787908554077, -0.41878777742385864, 0.43633073568344116, 0.11583761870861053, 0.06944498419761658, 0.03629518300294876, -0.0036743879318237305, 0.4742719233036041, 0.16345998644828796, -0.08560094237327576, 0.09851231426000595, 0.25446832180023193, -0.3477673828601837, 0.13968168199062347, 0.08394414186477661, -0.07341741025447845, -0.4933949112892151, -0.02992878295481205, -0.27951496839523315, 0.1781548261642456, 0.14817440509796143, -0.3201977014541626, -0.09828774631023407, -0.4774520695209503, -0.09373927116394043, -0.13652078807353973, 0.029480330646038055, 0.20342379808425903, 0.5127823948860168, 0.0822758823633194, 0.01941373571753502, 0.5455960631370544, -0.006967829540371895, 0.16135887801647186, -0.8287146091461182, 0.06388131529092789, -0.13689127564430237, -0.1838449388742447, 0.36261191964149475, 0.35950571298599243, 0.2163826823234558, -0.05094454064965248, -0.09464076161384583, 0.5340719819068909, -0.1414176970720291, 0.4370478391647339, -0.22054412961006165, 0.15210241079330444, 0.24981962144374847, -0.20668911933898926, 0.11677233874797821, 0.21492625772953033, -0.13724838197231293, -0.002253197133541107, -0.09489575773477554, 0.3331182599067688, -0.37468215823173523, 0.0862031951546669, 0.06745535880327225, -0.10661498457193375, 0.057475827634334564, -0.2557368278503418, -0.2727245092391968, -0.459968239068985, 0.5414724349975586, -0.05310400202870369, -0.23666392266750336, 0.013625525869429111, -0.11991274356842041, 0.10137102007865906, 0.4620293378829956, 0.10436457395553589, -0.015318602323532104, -0.06299614906311035, 0.09480469673871994, -0.2510465681552887, 0.2087736874818802, 0.21671538054943085, 0.4686732888221741, 0.15137295424938202, 0.0737202912569046, 0.019000742584466934, -0.18847428262233734, -0.33689504861831665, 0.10088273882865906, -0.01621153950691223, -0.02424039877951145, 0.27599766850471497, 0.011330313049256802, -0.0014322036877274513, -0.3033410906791687, 0.022108182311058044, 0.1912078708410263, 0.17614951729774475, -0.3325131833553314, -0.06196781247854233, -0.39287182688713074, -0.3235000967979431, -0.24957382678985596, -0.13010668754577637, -0.20251096785068512, -0.3588607907295227, 0.30244797468185425, 0.16726435720920563, -0.2591959238052368, 0.13086842000484467, -0.25160014629364014, 0.18590427935123444, -0.27630719542503357, -0.10526431351900101, -0.07306044548749924, -0.2778659164905548, -0.2761026918888092, -0.06377272307872772, 0.11679242551326752, 0.3153984844684601, 0.31786808371543884, -0.415217787027359, -0.21306508779525757, 0.040674109011888504, -0.31458932161331177, 0.0671834796667099, 0.05993737652897835, -0.10611660778522491, 0.10012278705835342, -0.2141464203596115, 0.37403565645217896, -0.22101667523384094, -0.05585458129644394, -0.22112111747264862, -0.2521098554134369, -0.06747736036777496, 0.20162205398082733, 0.24550305306911469, -0.19950610399246216, -0.5588032007217407, -0.32585448026657104, -0.3663262128829956, -0.05701994150876999, 0.10900729894638062, 0.2995634377002716, 0.08219218254089355, -0.21076971292495728, -0.21016046404838562, -0.18786503374576569, 0.31254053115844727, -0.3795473277568817, -0.16327302157878876, 0.3584215044975281, -0.19167770445346832, -0.07630959153175354, 0.04410989210009575, -0.04246697202324867, -0.07117666304111481, 0.12719489634037018, -0.5488827228546143, -0.1745835542678833, -0.11559605598449707, -0.041599906980991364, -0.2191820740699768, -0.22065339982509613, 0.639005184173584, -0.04464744031429291, 0.047806814312934875, 0.038873426616191864, -0.36135250329971313, 0.0701286792755127, 0.03474791720509529, 0.5672549605369568, -0.041620902717113495, 0.2360641062259674, 0.06656776368618011, 0.5585215091705322, 0.47468873858451843, 0.1441451609134674, -0.02480912208557129, 0.30200478434562683, 0.1700412482023239, 0.08520044386386871, 0.09485108405351639, 0.3581470251083374, -0.07355284690856934, -0.2010856419801712, 0.35728156566619873, 0.1408153772354126, -0.14786840975284576, -0.0891994833946228, -0.046181969344615936, -0.2848125100135803, -0.26708993315696716, 0.17356203496456146, -0.32631272077560425, 0.2059568166732788, 0.2735863924026489, 0.18179216980934143, -0.16912174224853516, -0.47976452112197876, 0.051178693771362305, 0.3250431418418884, 0.25479093194007874, 0.25988832116127014, -0.41012609004974365, 0.1853189468383789, -0.5481976270675659, 0.1673719584941864, 0.12331009656190872, 0.2695997357368469, -0.1897912174463272, -0.1771593689918518, 0.044205423444509506, -0.15119215846061707, 0.2935735583305359, -0.5013003349304199, -0.010340847074985504, -0.11806611716747284, -0.018266232684254646, -0.19106560945510864, -0.17548373341560364, 0.0170900858938694, 0.3075018525123596, 0.4353834390640259, 0.3108358681201935, -0.47793930768966675, -0.07290186733007431, 0.11803173273801804, -0.08828955888748169, -0.14250561594963074, -0.22670309245586395, -0.17830832302570343, -0.24675974249839783, -0.17376425862312317, -0.14634323120117188, -0.06844312697649002, 0.2047613561153412, -0.003669925034046173, 0.05763459578156471, 0.07807616144418716, 0.19451892375946045, 0.2609221935272217, 0.2361554354429245, 0.24638879299163818, -0.07365655153989792, 0.10551030933856964, 0.34417736530303955, 0.3810717463493347, 0.045800432562828064, 0.4809647798538208, -0.04737770929932594, -0.03335307538509369, 0.03335171937942505, -0.1582036018371582, -0.05585376173257828, 0.46437546610832214, 0.14981062710285187, 0.058226775377988815, 0.0461258590221405, -0.11693385243415833, -0.37757718563079834, 0.0007060961797833443, -0.05507668852806091, -0.1400308609008789, -0.2999062240123749, -0.40095651149749756, 0.26160186529159546, 0.34820136427879333, -0.14399354159832, -0.1402902752161026, -0.176295205950737, -0.3403507471084595, 0.2590382695198059, 0.23190775513648987, 1.0419528484344482, 0.2871277928352356, 0.07867763191461563, -0.1415206789970398, -0.19598692655563354, 0.8950448632240295, -0.45846885442733765, 0.38842904567718506, -0.37975797057151794, -0.16995301842689514, -0.0497177429497242, -0.13921774923801422, 0.06719144433736801, 0.07828181236982346, -0.3491446077823639, 0.4424479901790619, 0.23112954199314117, 0.06170273572206497, -0.1435949206352234, 0.33937227725982666, -0.2498142421245575, -0.18752291798591614, -0.19505468010902405, -0.005370227620005608, -0.23499350249767303, 0.34888187050819397, -0.009585553780198097, -0.08522549271583557, -0.05986233428120613, -0.18270394206047058, -0.3571864366531372, 0.11464367061853409, 0.0939713567495346, 0.012490186840295792, 0.23694127798080444, -0.20036812126636505, -0.11602829396724701, 0.09369511902332306, 0.366014301776886, -0.18719874322414398, -0.16472212970256805, -0.05034537985920906, -0.13756641745567322, -0.07333598285913467, 0.1151701956987381, 0.0633949264883995, 0.3432281017303467, -0.082962267100811, 0.06117699295282364, 0.11704789102077484, -0.19855305552482605, -0.44435131549835205, -0.21357238292694092, -0.13070209324359894, -0.14821892976760864, -0.11806504428386688, -0.023201072588562965, 0.08216498047113419, -0.013900106772780418, -0.05310791730880737, 0.04212594032287598, 0.0036891773343086243, -0.15956854820251465, 0.30631521344184875, -0.252793550491333, -0.23129917681217194, -0.167319193482399, 0.38638803362846375, 0.3539521098136902, -0.02271605283021927, 0.3835340440273285, -0.1494130790233612, -0.16333268582820892, -0.1423272341489792, -0.22025418281555176, -0.2453574240207672, -0.3556603193283081, 0.11342170089483261, -0.324369877576828, -0.2375132292509079, 0.09655265510082245, 0.19885806739330292, 0.17593789100646973, 0.3981851041316986, -0.059355296194553375, -0.4329323470592499, -0.08512720465660095, 0.16189239919185638, -0.08562615513801575, 0.10745792090892792, -0.034591518342494965, 0.2953035533428192, -0.23416519165039062, 0.308184415102005, -0.22415930032730103, -0.21442440152168274, -0.3940684497356415, 0.2727063000202179, 0.08486276865005493, -0.03859084099531174, 0.01436958834528923, 0.045114487409591675, -0.2161916345357895, 0.26730895042419434, -0.16531889140605927, 0.005659289658069611, -0.051704466342926025, 0.20624315738677979, 0.1315205991268158, -0.031796008348464966, -0.18519626557826996, 0.12904275953769684, 0.09241300821304321, 0.045473698526620865, 0.02897205576300621, 0.28193771839141846, 0.040343742817640305, 0.40376514196395874, -0.25698086619377136, 0.08450324833393097, -0.01948465220630169, 0.20341457426548004, -0.27178582549095154, 0.3247484564781189, -0.086455799639225, 0.3065059185028076, -0.20353470742702484, 0.029181167483329773, -0.020764334127306938, 0.07677126675844193, 0.12723581492900848, 0.011339109390974045, 0.1532256305217743, -0.14263615012168884, 0.027951348572969437, 0.2767181694507599, -0.07626020908355713, 0.5579016208648682, -0.11840268969535828, -0.27169716358184814, 0.13532361388206482, 0.07329817116260529, -0.02431296370923519, -0.06569413840770721, 0.09087333083152771, 0.027588993310928345, -0.0758267492055893, 0.42469295859336853, 0.22875240445137024, -0.13601644337177277, -0.012512557208538055, 0.23883196711540222, 0.48960036039352417, -0.26902318000793457, 0.07844032347202301, 0.14275506138801575, -0.18673256039619446, 0.057875655591487885, 0.395334929227829, -0.23366135358810425, 0.14236757159233093, 0.06332041323184967, 0.11303884536027908, 0.4625709354877472, 0.20257830619812012, 0.3750728368759155, -0.18873664736747742, -0.1080244928598404, -0.056961338967084885, 0.6232267618179321, 0.27606916427612305, 0.3305199146270752, 0.19891850650310516, 0.31614747643470764, -0.1434350460767746, 0.010834816843271255, -0.3369033634662628, -0.18920597434043884, -0.03781263530254364, -0.1468658149242401, -0.37576210498809814, -0.09626220911741257, -0.08604709804058075, 0.0835808664560318, -0.13657666742801666, 0.10390044003725052, 0.5570074319839478, -0.17096620798110962, -0.18252648413181305, -0.5047012567520142, 0.22231534123420715, 0.003293219953775406, 0.20471462607383728, -0.2249864786863327, 0.30062779784202576, -0.044192567467689514, -0.20166689157485962, 0.2878984808921814, 0.5239018797874451, 0.425033301115036, 0.2935963273048401, -0.04037918150424957, -0.1795710325241089, 0.07012137770652771, 0.17155419290065765, 0.19459722936153412, 0.7336780428886414, 0.22640842199325562, -0.3669779896736145, 0.2798480689525604, -0.07750466465950012, -0.04813340678811073, 0.4749353528022766, 0.010236632078886032, 0.032687343657016754, -0.027301466092467308, 0.4250290095806122, 0.01057649590075016, 0.11824996024370193, 0.11753766238689423, 0.14925029873847961, -0.22901666164398193, -0.2858254611492157, 0.13254676759243011, -0.17832891643047333, 0.28705650568008423, -0.14238807559013367, 0.04563354700803757, -0.2089940458536148, 0.6096131205558777, 0.4575628936290741, -0.23569563031196594, -0.22168266773223877, 0.0019246339797973633, -0.5511802434921265, 0.33748555183410645, -0.36132994294166565, -0.2001926749944687, -0.17516055703163147, 0.5507522225379944, -0.34127381443977356, 0.32878273725509644, -0.30485713481903076, 0.31894874572753906, -0.036874476820230484, 0.03029661811888218, -0.27325206995010376, -0.09151339530944824, -0.08998371660709381, -0.1491306871175766, 0.08855656534433365, -0.2684877812862396, 0.251039057970047, 0.23709207773208618, -0.10101082175970078, -0.020665422081947327, -0.027044888585805893, 0.17944800853729248, 0.5358686447143555, -0.0289873406291008, 0.5525880455970764, 0.21866679191589355, -0.11766831576824188, -0.1761799454689026, -0.21538543701171875, -0.2438700944185257, -0.3098505437374115, 0.15333853662014008, 0.13062909245491028, 0.3093510568141937, -0.27565714716911316, 0.49836045503616333, -0.14632384479045868, 0.41652774810791016, -0.01683034934103489, 0.008335432037711143, -0.23042728006839752, -0.047977104783058167, -0.09355051070451736, 0.12309981882572174, 0.18964485824108124, 0.4126792848110199, 0.17846393585205078, 0.14102597534656525, -0.1901102364063263, -0.33226025104522705, 0.30963194370269775, -0.3596906363964081, 0.08010399341583252, -0.03542717546224594, 0.2624872326850891, 0.2798446714878082, -0.24873393774032593, -0.7318592667579651, -0.06884394586086273, 0.23498184978961945, -0.12555184960365295, 0.061844345182180405, 0.04573799669742584, -0.11327037215232849, -0.20846441388130188, -0.09276951849460602, -0.17143084108829498, 0.2879587709903717, -0.3046322166919708, 0.3468717932701111, -0.1572413444519043 ]
https://github.com/huggingface/datasets/issues/215
NonMatchingSplitsSizesError when loading blog_authorship_corpus
Already fixed: ```python In [1]: from datasets import load_dataset In [2]: ds = load_dataset("blog_authorship_corpus") In [3]: ds Out[3]: DatasetDict({ train: Dataset({ features: ['text', 'date', 'gender', 'age', 'horoscope', 'job'], num_rows: 689793 }) validation: Dataset({ features: ['text', 'date', 'gender', 'age', 'horoscope', 'job'], num_rows: 37919 }) })
Getting this error when i run `nlp.load_dataset('blog_authorship_corpus')`. ``` raise NonMatchingSplitsSizesError(str(bad_splits)) nlp.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=610252351, num_examples=532812, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='train', num_bytes=616473500, num_examples=536323, dataset_name='blog_authorship_corpus')}, {'expected': SplitInfo(name='validation', num_bytes=37500394, num_examples=31277, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='validation', num_bytes=30786661, num_examples=27766, dataset_name='blog_authorship_corpus')}] ``` Upon checking it seems like there is a disparity between the information in `datasets/blog_authorship_corpus/dataset_infos.json` and what was downloaded. Although I can get away with this by passing `ignore_verifications=True` in `load_dataset`, I'm thinking doing so might give problems later on.
44
NonMatchingSplitsSizesError when loading blog_authorship_corpus Getting this error when i run `nlp.load_dataset('blog_authorship_corpus')`. ``` raise NonMatchingSplitsSizesError(str(bad_splits)) nlp.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=610252351, num_examples=532812, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='train', num_bytes=616473500, num_examples=536323, dataset_name='blog_authorship_corpus')}, {'expected': SplitInfo(name='validation', num_bytes=37500394, num_examples=31277, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='validation', num_bytes=30786661, num_examples=27766, dataset_name='blog_authorship_corpus')}] ``` Upon checking it seems like there is a disparity between the information in `datasets/blog_authorship_corpus/dataset_infos.json` and what was downloaded. Although I can get away with this by passing `ignore_verifications=True` in `load_dataset`, I'm thinking doing so might give problems later on. Already fixed: ```python In [1]: from datasets import load_dataset In [2]: ds = load_dataset("blog_authorship_corpus") In [3]: ds Out[3]: DatasetDict({ train: Dataset({ features: ['text', 'date', 'gender', 'age', 'horoscope', 'job'], num_rows: 689793 }) validation: Dataset({ features: ['text', 'date', 'gender', 'age', 'horoscope', 'job'], num_rows: 37919 }) })
[ -0.07110702246427536, 0.03665994107723236, 0.04065650328993797, 0.3773265480995178, -0.04097321629524231, 0.13631469011306763, -0.12404952943325043, 0.3613280951976776, -0.0730663388967514, 0.13967038691043854, 0.017101936042308807, 0.1724948137998581, 0.034822240471839905, -0.06524746865034103, -0.08612743765115738, 0.0030060037970542908, -0.031024746596813202, 0.20652690529823303, 0.0756494477391243, 0.023988328874111176, -0.05261308699846268, 0.37195220589637756, -0.26517656445503235, -0.07192231714725494, -0.20736576616764069, -0.12391062825918198, -0.010269073769450188, 0.2495516538619995, 0.04127756506204605, -0.39962443709373474, 0.22137929499149323, -0.11185544729232788, 0.17217770218849182, 0.2491205632686615, -0.00012492580572143197, 0.03269617259502411, 0.5118297338485718, -0.22964785993099213, -0.18048392236232758, -0.27561575174331665, -0.33762654662132263, -0.42769673466682434, 0.01689503900706768, -0.2696821689605713, -0.06436719745397568, -0.07597009837627411, 0.07794543355703354, -0.11298693716526031, 0.2776700258255005, 0.3391925096511841, 0.1083999052643776, 0.224946990609169, -0.1934703290462494, 0.10297485440969467, 0.07432745397090912, 0.02935776486992836, -0.061508677899837494, -0.09745614230632782, -0.18994340300559998, -0.222380131483078, -0.019202344119548798, 0.5000538229942322, -0.27793440222740173, 0.18024051189422607, 0.1965823769569397, 0.1666819304227829, 0.4029516875743866, -0.12815868854522705, 0.017765365540981293, 0.3015248775482178, 0.427124559879303, 0.07646334916353226, -0.29732197523117065, -0.5302024483680725, -0.08138029277324677, 0.14609704911708832, 0.3747636675834656, 0.3606255054473877, -0.2342330664396286, 0.05102451145648956, -0.3578081429004669, -0.09599173069000244, -0.07744118571281433, 0.08258349448442459, 0.2239559292793274, 0.2442956119775772, 0.11699091643095016, 0.01594814658164978, 0.05590637028217316, 0.012372283264994621, 0.20573872327804565, -0.31186535954475403, -0.08468706905841827, 0.09524557739496231, -0.21504850685596466, -0.2024639993906021, -0.13461917638778687, -0.09120865911245346, 0.13077634572982788, 0.13985830545425415, 0.34942626953125, -0.0952947810292244, 0.27750110626220703, 0.06603237986564636, 0.4427476227283478, -0.019789433106780052, -0.137722909450531, 0.5545029044151306, 0.053692836314439774, -0.031032970175147057, 0.1535995751619339, 0.00033403560519218445, 0.33438464999198914, -0.18209831416606903, -0.05281471461057663, 0.13304893672466278, 0.2744678854942322, -0.49234625697135925, -0.45012712478637695, 0.12514488399028778, -0.5866672992706299, -0.1903085857629776, -0.10223692655563354, 0.16116800904273987, -0.3953563868999481, 0.366760790348053, -0.18767131865024567, 0.08319827169179916, -0.33497244119644165, 0.0191689170897007, -0.20896701514720917, 0.1853955090045929, -0.10516143590211868, 0.21490082144737244, 0.16118384897708893, -0.18137818574905396, 0.3889802098274231, -0.09204220026731491, -0.06474927067756653, -0.18963728845119476, 0.3035334646701813, -0.18902312219142914, 0.0499618835747242, 0.19154231250286102, -0.0182342566549778, 0.24367444217205048, 0.023718975484371185, -0.1914796680212021, -0.39131349325180054, 0.12431687116622925, -0.2425898015499115, -0.5291263461112976, 0.12117394059896469, 0.1480145901441574, -0.42339223623275757, -0.08267361670732498, 0.09460575133562088, 0.15430831909179688, 0.411543071269989, -0.28333717584609985, -0.037027038633823395, -0.19746845960617065, -0.11341467499732971, -0.0646386370062828, -0.19576410949230194, 0.4935917258262634, 0.18070636689662933, -0.26935839653015137, 0.16694453358650208, 0.059433452785015106, 0.5444746017456055, 0.41685253381729126, 0.03570212423801422, 0.09461398422718048, -0.17766261100769043, 0.35596686601638794, 0.18783918023109436, -0.4151928424835205, -0.2399207353591919, 0.5062506794929504, 0.01474492996931076, 0.3810858130455017, 0.30885782837867737, 0.16392825543880463, 0.16798432171344757, -0.06255082041025162, 0.09532416611909866, 0.41125887632369995, -0.033507153391838074, 0.06477278470993042, -0.45742037892341614, -0.3119205832481384, 0.5185812711715698, 0.1685633510351181, 0.15129625797271729, -0.00008984655141830444, -0.08881091326475143, 0.41615068912506104, 0.3256087601184845, -0.12502622604370117, 0.028826182708144188, 0.2729925513267517, -0.29343122243881226, 0.16885200142860413, 0.003930212929844856, -0.19521692395210266, -0.36992189288139343, -0.043562017381191254, -0.2237849235534668, 0.2626386284828186, 0.007629953324794769, -0.29885441064834595, -0.19896283745765686, -0.44043928384780884, -0.0823376327753067, -0.051039163023233414, 0.006927236914634705, 0.2655256390571594, 0.43045246601104736, 0.08950832486152649, 0.03359651193022728, 0.4959016740322113, -0.010986313223838806, 0.2284483164548874, -0.7593402862548828, 0.24635078012943268, -0.11145832389593124, -0.22080284357070923, 0.45279690623283386, 0.3438967764377594, 0.23387211561203003, -0.13702456653118134, -0.13369044661521912, 0.3799188435077667, -0.12147296965122223, 0.3614657521247864, -0.3569774627685547, 0.053489118814468384, 0.22359347343444824, -0.2682148218154907, -0.005458241328597069, 0.44802263379096985, 0.03755469247698784, -0.04022330418229103, -0.0746927484869957, 0.46733689308166504, -0.32026106119155884, 0.20210224390029907, 0.09071281552314758, -0.011893521063029766, 0.0247489046305418, -0.2131216824054718, -0.24153578281402588, -0.5174606442451477, 0.5678611397743225, -0.10217855870723724, -0.31538745760917664, 0.03854484111070633, -0.19092817604541779, -0.02822525054216385, 0.43966811895370483, 0.060512956231832504, -0.09072824567556381, -0.06099362671375275, 0.0051529183983802795, -0.08528274297714233, 0.08447765558958054, 0.21663059294223785, 0.5267035961151123, 0.12165910750627518, -0.04695970192551613, 0.1034686341881752, -0.14327485859394073, -0.29237645864486694, 0.12027005851268768, 0.020283475518226624, 0.035132523626089096, 0.3795381486415863, 0.07574538886547089, 0.020546909421682358, -0.24665871262550354, 0.029083024710416794, 0.15011370182037354, 0.22746406495571136, -0.3335610032081604, -0.09309414774179459, -0.37733909487724304, -0.3696152865886688, -0.3705160617828369, -0.22446252405643463, -0.2208390235900879, -0.3733641505241394, 0.13915030658245087, 0.20038817822933197, -0.16499856114387512, 0.11806689202785492, -0.27101224660873413, -0.11230893433094025, -0.3024371564388275, -0.18632151186466217, -0.00004042685031890869, -0.20926062762737274, -0.15462875366210938, -0.053990498185157776, 0.11404015868902206, 0.3784251809120178, 0.2770920991897583, -0.3598964214324951, -0.19762662053108215, 0.00774106290191412, -0.24028214812278748, 0.03102927654981613, -0.048689551651477814, -0.18550381064414978, 0.11683972179889679, -0.16363342106342316, 0.41025394201278687, -0.1946711540222168, 0.14557114243507385, -0.11800510436296463, -0.2683078646659851, 0.04571806639432907, 0.20919427275657654, 0.07701065391302109, -0.14610260725021362, -0.531741738319397, -0.3520463705062866, -0.3627157509326935, -0.1308264285326004, 0.2208126336336136, 0.2409706562757492, 0.06624019891023636, -0.12416990101337433, -0.17611560225486755, -0.13052059710025787, 0.2732708752155304, -0.26905831694602966, 0.022843096405267715, 0.24850650131702423, -0.06344739347696304, -0.11467637121677399, -0.062405362725257874, -0.05341785401105881, -0.1118667721748352, 0.13667672872543335, -0.5014883279800415, -0.13640789687633514, -0.29787781834602356, -0.04908796772360802, -0.29846087098121643, -0.2005055844783783, 0.5503309369087219, -0.038510553538799286, -0.0023705940693616867, 0.04640793800354004, -0.3843616545200348, 0.026042647659778595, 0.14418593049049377, 0.41483962535858154, -0.16870847344398499, 0.3040977716445923, -0.009463869035243988, 0.4915165305137634, 0.5918387770652771, 0.04716266319155693, -0.07897892594337463, 0.15461629629135132, 0.13261692225933075, 0.10201150178909302, -0.08833511918783188, 0.27967369556427, -0.020283833146095276, -0.09517902135848999, 0.30984747409820557, 0.02090367302298546, -0.12591569125652313, -0.14943915605545044, -0.17488907277584076, -0.3389199376106262, -0.2104046791791916, 0.1618126630783081, -0.2436945140361786, 0.23458176851272583, 0.25005102157592773, 0.2721400260925293, -0.1673949807882309, -0.5011508464813232, -0.04199836775660515, 0.34437716007232666, 0.17920711636543274, 0.13379919528961182, -0.48100578784942627, 0.11726011335849762, -0.4533883333206177, 0.27843722701072693, 0.2376028299331665, 0.3302953541278839, -0.09811519086360931, -0.17783233523368835, 0.07077813893556595, -0.2101128250360489, 0.3018217980861664, -0.4058328866958618, -0.07393886893987656, -0.08343654870986938, -0.10573382675647736, -0.4321666657924652, -0.2194642722606659, -0.14808808267116547, 0.3846045732498169, 0.4679853022098541, 0.4958409070968628, -0.3785029351711273, -0.16374440491199493, 0.25296783447265625, -0.003384889103472233, -0.13984183967113495, -0.20900608599185944, -0.26830217242240906, -0.395555317401886, -0.16817393898963928, -0.13525494933128357, -0.054388634860515594, 0.37952128052711487, -0.013271035626530647, 0.003611132502555847, 0.04734044522047043, 0.12340650707483292, 0.3667573928833008, 0.19370242953300476, 0.15505358576774597, -0.04895872622728348, 0.1785537302494049, 0.26774710416793823, 0.5720624923706055, 0.08669258654117584, 0.5720058679580688, 0.11015437543392181, -0.21059057116508484, -0.09743322432041168, -0.22631770372390747, 0.12922191619873047, 0.4337686598300934, 0.20189480483531952, 0.12035037577152252, 0.11810877919197083, -0.032321684062480927, -0.436811625957489, -0.07031792402267456, 0.12016213685274124, -0.057200703769922256, -0.4381476640701294, -0.4358106851577759, 0.2756030559539795, 0.3250339925289154, -0.11261757463216782, -0.18180041015148163, -0.16538242995738983, -0.303477019071579, 0.2634151577949524, 0.0815543383359909, 1.010406255722046, 0.3325902223587036, 0.07154866307973862, 0.0388723686337471, -0.28230229020118713, 0.8352547883987427, -0.2548271417617798, 0.3783544898033142, -0.4197663366794586, -0.23205706477165222, -0.07346449047327042, -0.22706668078899384, 0.18353283405303955, 0.0505983829498291, -0.2769414782524109, 0.40883660316467285, 0.15375679731369019, 0.07585008442401886, -0.12171415984630585, 0.4233686923980713, -0.2219727784395218, -0.0725303590297699, -0.2529008090496063, -0.0030016321688890457, -0.24747459590435028, 0.4982771575450897, 0.05758719891309738, -0.11025509983301163, -0.26045504212379456, -0.26228469610214233, -0.4138845205307007, 0.217548668384552, 0.1348952353000641, 0.02458612434566021, 0.250101774930954, -0.2623537480831146, -0.042787376791238785, 0.06350500881671906, 0.34489649534225464, -0.12443356215953827, -0.09790073335170746, -0.09937827289104462, -0.1794719696044922, -0.11586238443851471, 0.18519507348537445, 0.07189419120550156, 0.2458319514989853, -0.06668400764465332, -0.03107762336730957, 0.16060352325439453, -0.11053822934627533, -0.3270264267921448, -0.2655053734779358, -0.08836968243122101, -0.17048969864845276, -0.2699568271636963, -0.1484934538602829, 0.017603054642677307, -0.010738508775830269, -0.07231920957565308, 0.0216944832354784, -0.09159280359745026, -0.2357175648212433, 0.25271928310394287, -0.15511828660964966, -0.32597872614860535, -0.17101937532424927, 0.40367409586906433, 0.4282342195510864, -0.028925763443112373, 0.4582310914993286, -0.13500146567821503, -0.12194939702749252, -0.18006879091262817, -0.13724952936172485, -0.2552381753921509, -0.28431859612464905, 0.1979551762342453, -0.24296711385250092, -0.09245815873146057, 0.11033768951892853, 0.2624947726726532, 0.2555716633796692, 0.30521121621131897, -0.056860845535993576, -0.49296849966049194, 0.016919991001486778, 0.14565396308898926, 0.05997105687856674, 0.09655974805355072, -0.1686326265335083, 0.5031048655509949, -0.26926594972610474, 0.19848354160785675, -0.20045697689056396, -0.10016172379255295, -0.3396967053413391, 0.3031775951385498, 0.09189777076244354, -0.10660760849714279, -0.029703853651881218, 0.019643353298306465, -0.10258031636476517, 0.2683010995388031, -0.06466608494520187, -0.016998670995235443, -0.10871154069900513, 0.1926199048757553, 0.16287827491760254, -0.08526288717985153, -0.12421678751707077, 0.09916281700134277, 0.10422740876674652, 0.036803826689720154, -0.006313103251159191, 0.36363524198532104, 0.07104437798261642, 0.4440065920352936, -0.3325074017047882, 0.019268743693828583, -0.06802935898303986, 0.24161332845687866, -0.37505680322647095, 0.35276496410369873, -0.06819240748882294, 0.251081645488739, -0.03621945530176163, 0.09060236811637878, -0.07868454605340958, -0.040502145886421204, 0.12697726488113403, 0.04164574667811394, 0.1265249252319336, -0.2483735829591751, 0.13547766208648682, 0.262716144323349, 0.043690405786037445, 0.614132285118103, -0.1234753429889679, -0.13425251841545105, 0.11449377983808517, 0.10109129548072815, -0.14973416924476624, -0.026485787704586983, 0.254314661026001, -0.07059751451015472, -0.03988378494977951, 0.45663151144981384, 0.07736995816230774, -0.11748966574668884, -0.17775534093379974, 0.10795342177152634, 0.39290696382522583, -0.10451926290988922, 0.16147348284721375, 0.3235386908054352, -0.05358455330133438, -0.03475688770413399, 0.24669751524925232, -0.22384917736053467, 0.13318508863449097, 0.04576142877340317, 0.018697932362556458, 0.3793138563632965, 0.10708210617303848, 0.3312651813030243, -0.1551237404346466, -0.034328971058130264, -0.04670107737183571, 0.6370683312416077, 0.2216951549053192, 0.38845157623291016, 0.21424320340156555, 0.39024895429611206, -0.28459689021110535, 0.02722800336778164, -0.3642653822898865, -0.16405020654201508, -0.049110010266304016, -0.15074512362480164, -0.3730993866920471, -0.07069853693246841, -0.17917531728744507, 0.10950374603271484, -0.09213656187057495, 0.07398314028978348, 0.3951231837272644, -0.11536256968975067, -0.15700699388980865, -0.45438194274902344, 0.09601542353630066, 0.07000501453876495, 0.18671777844429016, -0.2776675820350647, 0.13550381362438202, 0.0379854291677475, -0.11559699475765228, 0.30419665575027466, 0.5337598919868469, 0.5171337127685547, 0.31649160385131836, -0.17510928213596344, -0.1411469429731369, 0.0356929637491703, 0.06800871342420578, 0.2969035506248474, 0.7193013429641724, 0.22167590260505676, -0.24596677720546722, 0.3863603472709656, -0.05799919366836548, -0.11243391036987305, 0.41514286398887634, 0.03863020986318588, -0.035765569657087326, -0.1665535718202591, 0.5819763541221619, -0.12037760019302368, 0.11156327277421951, 0.03355827182531357, 0.10457878559827805, -0.31834059953689575, -0.35203370451927185, 0.20172998309135437, -0.14653140306472778, 0.2646993398666382, 0.001222214661538601, 0.017052061855793, -0.32923635840415955, 0.5063455104827881, 0.40756386518478394, -0.13882234692573547, -0.24944472312927246, 0.0065174400806427, -0.47256338596343994, 0.2990642189979553, -0.47325730323791504, -0.2712256908416748, -0.19606833159923553, 0.4517003893852234, -0.28238415718078613, 0.3537006378173828, -0.18640662729740143, 0.4772493541240692, -0.1539301872253418, 0.09023396670818329, -0.22353145480155945, -0.07078547775745392, -0.10044871270656586, -0.17865823209285736, 0.07180105894804001, -0.2563529312610626, 0.14194558560848236, 0.11411567777395248, -0.09206515550613403, -0.050793856382369995, 0.08735339343547821, 0.05803531035780907, 0.38880765438079834, -0.029934227466583252, 0.519241988658905, 0.44032686948776245, -0.09952712804079056, -0.2601251006126404, -0.05619798228144646, -0.31163832545280457, -0.32926830649375916, 0.43194693326950073, 0.14077645540237427, 0.4140060245990753, -0.23239773511886597, 0.5255355834960938, -0.12909573316574097, 0.32544878125190735, 0.02748560905456543, -0.12283691763877869, -0.25648176670074463, 0.0017165057361125946, -0.1761016547679901, 0.07774806022644043, 0.12720021605491638, 0.4579477906227112, 0.14421552419662476, 0.08710990101099014, -0.15438057482242584, -0.3846927583217621, 0.43041616678237915, -0.33610910177230835, -0.0000024475157260894775, 0.016213543713092804, 0.18035483360290527, 0.1656251847743988, -0.09531556069850922, -0.7100486159324646, -0.06257683038711548, 0.33438631892204285, -0.1018478199839592, 0.05314118042588234, 0.007706535514444113, -0.030137822031974792, -0.2915072739124298, -0.04668113961815834, -0.21139684319496155, 0.19369322061538696, -0.34769442677497864, 0.3750069737434387, -0.10131627321243286 ]
https://github.com/huggingface/datasets/issues/215
NonMatchingSplitsSizesError when loading blog_authorship_corpus
In my case, I had to remove the cache datasets directory completely as @putssander suggested, the download_mode='forced_redownload' was insufficient. I had a private repository with data files that I loaded with a loading script. It was working fine until I pushed a new version of the data files and then the NonMatchingSplitsSizesError was raised.
Getting this error when i run `nlp.load_dataset('blog_authorship_corpus')`. ``` raise NonMatchingSplitsSizesError(str(bad_splits)) nlp.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=610252351, num_examples=532812, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='train', num_bytes=616473500, num_examples=536323, dataset_name='blog_authorship_corpus')}, {'expected': SplitInfo(name='validation', num_bytes=37500394, num_examples=31277, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='validation', num_bytes=30786661, num_examples=27766, dataset_name='blog_authorship_corpus')}] ``` Upon checking it seems like there is a disparity between the information in `datasets/blog_authorship_corpus/dataset_infos.json` and what was downloaded. Although I can get away with this by passing `ignore_verifications=True` in `load_dataset`, I'm thinking doing so might give problems later on.
54
NonMatchingSplitsSizesError when loading blog_authorship_corpus Getting this error when i run `nlp.load_dataset('blog_authorship_corpus')`. ``` raise NonMatchingSplitsSizesError(str(bad_splits)) nlp.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=610252351, num_examples=532812, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='train', num_bytes=616473500, num_examples=536323, dataset_name='blog_authorship_corpus')}, {'expected': SplitInfo(name='validation', num_bytes=37500394, num_examples=31277, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='validation', num_bytes=30786661, num_examples=27766, dataset_name='blog_authorship_corpus')}] ``` Upon checking it seems like there is a disparity between the information in `datasets/blog_authorship_corpus/dataset_infos.json` and what was downloaded. Although I can get away with this by passing `ignore_verifications=True` in `load_dataset`, I'm thinking doing so might give problems later on. In my case, I had to remove the cache datasets directory completely as @putssander suggested, the download_mode='forced_redownload' was insufficient. I had a private repository with data files that I loaded with a loading script. It was working fine until I pushed a new version of the data files and then the NonMatchingSplitsSizesError was raised.
[ -0.17053261399269104, 0.1794247031211853, 0.07574029266834259, 0.41410696506500244, -0.10089002549648285, 0.1316542625427246, -0.04638122394680977, 0.38508689403533936, -0.08781085908412933, 0.07868152856826782, 0.0026408263947814703, 0.1450706124305725, 0.07052429765462875, -0.18950487673282623, -0.10737267136573792, 0.056173987686634064, -0.07164106518030167, 0.20603792369365692, 0.08010182529687881, 0.0646573007106781, -0.08731228113174438, 0.41831693053245544, -0.23231403529644012, -0.07168044149875641, -0.2597353756427765, -0.15056882798671722, 0.019757820293307304, 0.37006282806396484, 0.0845206007361412, -0.39432117342948914, 0.2916948199272156, -0.0248367078602314, 0.20942053198814392, 0.3034561276435852, -0.00012187949323561043, -0.04979405179619789, 0.4861220121383667, -0.22240585088729858, -0.25706955790519714, -0.225493922829628, -0.370699942111969, -0.4007844924926758, -0.05107762664556503, -0.24562230706214905, -0.0731169730424881, 0.0073505304753780365, 0.15842561423778534, -0.153170645236969, 0.3340683877468109, 0.24261891841888428, 0.12943294644355774, 0.10393064469099045, -0.12005184590816498, -0.03167413920164108, 0.0826544538140297, -0.03577195852994919, -0.057080723345279694, -0.09213291108608246, -0.08254936337471008, -0.15447163581848145, -0.1669299602508545, 0.3932771384716034, -0.32749879360198975, 0.22981280088424683, 0.24355795979499817, 0.10705950111150742, 0.31329336762428284, -0.0563749298453331, 0.11373870074748993, 0.3750082552433014, 0.56649249792099, 0.04644005000591278, -0.2029654085636139, -0.5712273120880127, -0.13565729558467865, 0.07594636082649231, 0.4172886908054352, 0.24923719465732574, -0.15081733465194702, 0.044273741543293, -0.3494710922241211, -0.20957322418689728, -0.041800208389759064, 0.044801078736782074, 0.26693493127822876, 0.16256213188171387, 0.05580548569560051, 0.015420883893966675, 0.052669279277324677, -0.07919011265039444, 0.17496232688426971, -0.21405450999736786, -0.13359855115413666, 0.11936061084270477, -0.1830584853887558, -0.1454029679298401, -0.16684773564338684, 0.06374036520719528, 0.2172151505947113, 0.1693706214427948, 0.3784638047218323, -0.07953914254903793, 0.14461113512516022, 0.04822959378361702, 0.34458523988723755, 0.10752484202384949, 0.02146288752555847, 0.4804016649723053, 0.09558060765266418, -0.03136007860302925, 0.11088216304779053, 0.009527729824185371, 0.2925473749637604, -0.2135467827320099, -0.004867544397711754, 0.1588161289691925, 0.3046172261238098, -0.5748118758201599, -0.44021138548851013, 0.11532709002494812, -0.46585747599601746, -0.20205111801624298, -0.20167121291160583, 0.06662873178720474, -0.29299405217170715, 0.35803815722465515, -0.18392731249332428, 0.03302567079663277, -0.3393911123275757, -0.13554733991622925, -0.2200060337781906, 0.02165752463042736, -0.11911259591579437, 0.3125151991844177, 0.25239890813827515, -0.2174408882856369, 0.3361094892024994, -0.06635057926177979, -0.18391026556491852, -0.16479286551475525, 0.26796287298202515, -0.06546253710985184, -0.05962502211332321, 0.1433740258216858, -0.07852715253829956, 0.22682537138462067, 0.011919805780053139, -0.23694315552711487, -0.3041992485523224, 0.04528823494911194, -0.27148109674453735, -0.5675578117370605, 0.07273325324058533, 0.13494572043418884, -0.4677897095680237, -0.020478274673223495, 0.1105218380689621, 0.17230063676834106, 0.4403342604637146, -0.4073360860347748, -0.09028162807226181, -0.24309338629245758, -0.16213631629943848, -0.10175081342458725, -0.19993369281291962, 0.6121249198913574, 0.07116232812404633, -0.22266238927841187, 0.06998533010482788, -0.016277149319648743, 0.503416121006012, 0.3725263476371765, 0.08420664817094803, 0.03161993995308876, -0.219661682844162, 0.4684280753135681, 0.09469980746507645, -0.3283056616783142, -0.352801650762558, 0.5544977784156799, -0.04065762087702751, 0.33350133895874023, 0.2663204073905945, 0.14061449468135834, 0.27443885803222656, -0.18824748694896698, 0.02880426123738289, 0.3067982792854309, -0.0793638825416565, -0.022054675966501236, -0.5016547441482544, -0.36769187450408936, 0.5111260414123535, 0.13042721152305603, 0.1296510547399521, 0.05040552839636803, 0.049259964376688004, 0.5267354846000671, 0.28270116448402405, -0.08646950125694275, 0.07192638516426086, 0.22541512548923492, -0.36436137557029724, 0.22126410901546478, 0.02460145764052868, -0.1621761918067932, -0.5404348969459534, 0.06647521257400513, -0.25963693857192993, 0.23380900919437408, 0.08347611129283905, -0.19121256470680237, -0.1654309630393982, -0.5187342166900635, -0.09312134981155396, -0.05413353070616722, 0.016731005162000656, 0.26558583974838257, 0.3642019033432007, 0.030261412262916565, 0.1027902215719223, 0.6048004031181335, 0.02017374150454998, 0.19270916283130646, -0.8377093076705933, 0.16074274480342865, -0.09888184815645218, -0.1936960071325302, 0.42974212765693665, 0.282605916261673, 0.3376312255859375, -0.1398506760597229, -0.1688515543937683, 0.4822351932525635, -0.14839716255664825, 0.40193724632263184, -0.20084735751152039, 0.042565926909446716, 0.18906500935554504, -0.24161916971206665, 0.1254091113805771, 0.3703279495239258, -0.03964177891612053, -0.052933163940906525, -0.038318999111652374, 0.3294784426689148, -0.26868805289268494, 0.120759516954422, -0.07329278439283371, -0.021361786872148514, 0.08965491503477097, -0.2907821238040924, -0.17422831058502197, -0.5011428594589233, 0.5763109922409058, -0.04893358424305916, -0.2288345992565155, 0.062276795506477356, -0.10095545649528503, 0.03445135056972504, 0.3758217692375183, 0.007579933851957321, -0.05546599626541138, -0.04977378249168396, 0.0029915422201156616, -0.1297071874141693, 0.04422902315855026, 0.3174256682395935, 0.5058927536010742, 0.1380537897348404, -0.042007651180028915, 0.06634680181741714, -0.16110876202583313, -0.35220882296562195, -0.007814295589923859, -0.027750633656978607, 0.11732740700244904, 0.4032553434371948, 0.04290974512696266, 0.03884803503751755, -0.2866774797439575, 0.08681400120258331, 0.18815141916275024, 0.27009648084640503, -0.356858491897583, -0.1401970535516739, -0.4540141224861145, -0.3305354714393616, -0.32169514894485474, -0.0658520832657814, -0.2647554278373718, -0.3568175733089447, 0.16453197598457336, 0.2500549852848053, -0.09070166945457458, 0.13181570172309875, -0.184660866856575, 0.012480124831199646, -0.2923971116542816, -0.07514671236276627, -0.06249413639307022, -0.2062891721725464, -0.25780946016311646, -0.049016110599040985, 0.19195827841758728, 0.30021390318870544, 0.2604590058326721, -0.3655403256416321, -0.17174860835075378, -0.040313489735126495, -0.21456843614578247, -0.026660986244678497, -0.08754584193229675, -0.18612083792686462, 0.13570353388786316, -0.1287771761417389, 0.4658433794975281, -0.15184687077999115, 0.16274406015872955, -0.28941845893859863, -0.2520695924758911, 0.04537297040224075, 0.11250656843185425, 0.09062226861715317, -0.18457666039466858, -0.5140299797058105, -0.2808501124382019, -0.348180890083313, -0.08922082185745239, 0.2246835082769394, 0.17406891286373138, 0.0124911367893219, -0.1381656378507614, -0.14733049273490906, -0.08507241308689117, 0.1298617720603943, -0.3503509759902954, -0.04936819523572922, 0.24597546458244324, -0.045206114649772644, -0.12883557379245758, -0.006820403039455414, 0.06729044020175934, -0.1005789190530777, 0.1908790022134781, -0.5257237553596497, -0.10366275161504745, -0.1702815741300583, 0.01926223188638687, -0.23834475874900818, -0.2805250585079193, 0.5805587768554688, -0.03346525877714157, 0.018091751262545586, -0.04350576177239418, -0.41100266575813293, 0.10545842349529266, 0.12593938410282135, 0.48485612869262695, -0.1225736066699028, 0.2688121199607849, 0.041793908923864365, 0.6162741184234619, 0.5032366514205933, -0.0010275579988956451, -0.10443167388439178, 0.18233796954154968, 0.2073601335287094, 0.15038299560546875, -0.009556951932609081, 0.2924007773399353, -0.04100695252418518, -0.0665699690580368, 0.2866101861000061, 0.05574953928589821, -0.12251772731542587, -0.09896925091743469, -0.1575360745191574, -0.3387816250324249, -0.16732467710971832, 0.10196924209594727, -0.2465311884880066, 0.2529866099357605, 0.2983272969722748, 0.21684503555297852, -0.17826145887374878, -0.49740657210350037, -0.046317655593156815, 0.27371102571487427, 0.23013147711753845, 0.1921277642250061, -0.33695149421691895, 0.27360644936561584, -0.4748438000679016, 0.36524802446365356, 0.20847806334495544, 0.31449243426322937, -0.1333383321762085, -0.12844207882881165, 0.0012443140149116516, -0.17447958886623383, 0.2781135141849518, -0.4245746433734894, 0.07249871641397476, -0.0022713690996170044, -0.0304598119109869, -0.2904927432537079, -0.19904053211212158, -0.0615692175924778, 0.4214114248752594, 0.43435806035995483, 0.4666740298271179, -0.4139581024646759, -0.16523782908916473, 0.11772221326828003, -0.006806834600865841, -0.14831332862377167, -0.1481197625398636, -0.17979581654071808, -0.2786656618118286, -0.21104831993579865, -0.17226922512054443, -0.1788949817419052, 0.2556157112121582, -0.05015724152326584, 0.04323304072022438, 0.13244308531284332, 0.1329222023487091, 0.26470911502838135, 0.15582264959812164, 0.1647873818874359, 0.02941436693072319, 0.1459663212299347, 0.4133387506008148, 0.5401005744934082, 0.12847724556922913, 0.4955870509147644, 0.03978009149432182, -0.04382184147834778, -0.03014080971479416, -0.2334877997636795, -0.04896294325590134, 0.478521466255188, 0.1881026178598404, 0.060432665050029755, 0.18081827461719513, -0.030075162649154663, -0.4317399859428406, -0.10657312721014023, 0.07545297592878342, -0.13331371545791626, -0.37464791536331177, -0.44431108236312866, 0.2776520550251007, 0.2673327326774597, -0.1613313853740692, -0.2056506872177124, -0.24326471984386444, -0.280503511428833, 0.1688799262046814, 0.086613230407238, 0.9201927185058594, 0.15600067377090454, -0.044004280120134354, -0.09356119483709335, -0.17620369791984558, 0.8588539958000183, -0.23750926554203033, 0.3570183515548706, -0.3817666172981262, -0.16541925072669983, -0.06031610071659088, -0.16292443871498108, 0.1455855816602707, 0.09115356206893921, -0.2440677136182785, 0.43167516589164734, 0.24511967599391937, 0.08879566192626953, -0.05380426347255707, 0.39873790740966797, -0.19640985131263733, -0.06240364536643028, -0.18194496631622314, 0.041642554104328156, -0.35091090202331543, 0.489592045545578, -0.03450202941894531, -0.1325129121541977, -0.1795005351305008, -0.22228536009788513, -0.4329511523246765, 0.23712247610092163, 0.06749846041202545, 0.04288073629140854, 0.19137197732925415, -0.2766153812408447, 0.011652722954750061, 0.09380517899990082, 0.3327270746231079, -0.21701480448246002, -0.19376854598522186, -0.03915250673890114, -0.1304452121257782, -0.1355614960193634, 0.13460320234298706, 0.06268475949764252, 0.2509075105190277, -0.10562208294868469, 0.05804573744535446, 0.07909302413463593, -0.15928798913955688, -0.4014688730239868, -0.22999124228954315, -0.12625953555107117, -0.11534181237220764, -0.22167126834392548, -0.04555090516805649, 0.10886365175247192, -0.034589994698762894, -0.07923372089862823, 0.02991505339741707, -0.03685305267572403, -0.11458160728216171, 0.1211775541305542, -0.1580696851015091, -0.2997235059738159, -0.14271819591522217, 0.45167145133018494, 0.3685726225376129, -0.05515741929411888, 0.45232805609703064, -0.1421920508146286, -0.02654745616018772, -0.18229958415031433, -0.21019357442855835, -0.32318243384361267, -0.41085493564605713, 0.1661028414964676, -0.289393812417984, -0.03454909473657608, 0.25977185368537903, 0.16209901869297028, 0.2581498622894287, 0.2548600733280182, -0.00816340371966362, -0.4684138298034668, 0.008231010288000107, 0.04087807238101959, -0.06559449434280396, 0.06197679787874222, -0.06802326440811157, 0.41680994629859924, -0.21302291750907898, 0.21564289927482605, -0.2133549451828003, 0.007439371198415756, -0.28585708141326904, 0.2726561427116394, 0.16044583916664124, -0.08493099361658096, -0.08820106834173203, -0.00680403970181942, -0.13641270995140076, 0.25391459465026855, -0.16888588666915894, -0.004698179662227631, -0.13607987761497498, 0.20146435499191284, 0.17374521493911743, -0.11689113080501556, -0.21922102570533752, 0.022796884179115295, 0.077602818608284, 0.007691144477576017, 0.04357833042740822, 0.3278410732746124, -0.015189632773399353, 0.33144909143447876, -0.2075492888689041, 0.06684491038322449, -0.06271670013666153, 0.2871047556400299, -0.29432106018066406, 0.3330472707748413, -0.10734152793884277, 0.27907994389533997, -0.15111355483531952, 0.0781405121088028, -0.09365926682949066, 0.007394455373287201, 0.15620540082454681, 0.07298095524311066, 0.18627896904945374, -0.3100240230560303, 0.08414037525653839, 0.32018494606018066, 0.013314992189407349, 0.48955538868904114, -0.06774646043777466, -0.15905046463012695, 0.1077505424618721, 0.08728639036417007, -0.1229265034198761, -0.00013908909750171006, 0.3388004004955292, -0.029742427170276642, -0.11646229028701782, 0.38364511728286743, 0.26061758399009705, -0.20227420330047607, -0.1315450221300125, 0.13813349604606628, 0.5474640130996704, -0.15009279549121857, 0.15828943252563477, 0.29409340023994446, -0.028801919892430305, 0.021645620465278625, 0.3115963637828827, -0.22816193103790283, 0.1267981082201004, 0.1343027651309967, 0.06390257179737091, 0.4392031729221344, 0.11928386986255646, 0.4529581069946289, -0.18645897507667542, -0.2341027408838272, -0.10025428235530853, 0.6805760860443115, 0.22928519546985626, 0.45203259587287903, 0.13777753710746765, 0.38497087359428406, -0.38387036323547363, -0.009700417518615723, -0.35009682178497314, -0.17360548675060272, -0.06181308627128601, -0.06758671998977661, -0.2874896228313446, -0.11977556347846985, -0.15522493422031403, 0.09965050220489502, -0.17945952713489532, 0.1384177803993225, 0.41085779666900635, -0.15925803780555725, -0.21756865084171295, -0.497469425201416, 0.02508721873164177, 0.0359157957136631, 0.12444203346967697, -0.27743765711784363, 0.2209928184747696, 0.011739656329154968, -0.26610976457595825, 0.3745177984237671, 0.5780314207077026, 0.4937824010848999, 0.2787264585494995, -0.1088062971830368, -0.1503135859966278, 0.06190735846757889, 0.1386701464653015, 0.2522521913051605, 0.735755205154419, 0.17263489961624146, -0.3384772539138794, 0.3388717770576477, -0.04370805621147156, -0.10160718858242035, 0.3832663595676422, 0.01575348898768425, 0.03089698776602745, -0.04547203332185745, 0.42102953791618347, -0.1630931794643402, 0.1317177414894104, 0.034903690218925476, 0.14878229796886444, -0.25660404562950134, -0.22673897445201874, 0.20133915543556213, -0.12717266380786896, 0.2602947950363159, -0.02534743770956993, 0.03909763693809509, -0.30810225009918213, 0.514011561870575, 0.4326861798763275, -0.2305518090724945, -0.22721534967422485, -0.08712565898895264, -0.6322934627532959, 0.3638269007205963, -0.4845969080924988, -0.12164366990327835, -0.16045811772346497, 0.47438204288482666, -0.17002153396606445, 0.25650131702423096, -0.10808227956295013, 0.3710131347179413, -0.1114221066236496, 0.0012604333460330963, -0.185513436794281, -0.02994168922305107, -0.09167549014091492, -0.20697899162769318, 0.04912865161895752, -0.2517207860946655, 0.17174451053142548, 0.15908046066761017, -0.06820204854011536, 0.009558170102536678, 0.06483475863933563, 0.05380841717123985, 0.40877601504325867, -0.022911399602890015, 0.5292177200317383, 0.3709747791290283, -0.03196064010262489, -0.2422284632921219, -0.21505466103553772, -0.26349934935569763, -0.2677481770515442, 0.25402501225471497, 0.1574411392211914, 0.43041011691093445, -0.2706553339958191, 0.6298893094062805, -0.16343806684017181, 0.32477304339408875, 0.004568159580230713, 0.06488431990146637, -0.304850697517395, 0.020748088136315346, -0.27716296911239624, 0.045017752796411514, 0.16380175948143005, 0.44912269711494446, 0.15211305022239685, 0.06633775681257248, -0.207321897149086, -0.2337045967578888, 0.4074481129646301, -0.33287420868873596, 0.02839330956339836, -0.06678938865661621, 0.21880006790161133, 0.2373010516166687, -0.14688792824745178, -0.5827257633209229, -0.0049535781145095825, 0.3313736617565155, -0.07361207902431488, 0.012453284114599228, -0.07418736815452576, -0.17537415027618408, -0.3201265037059784, 0.0036193765699863434, -0.18642666935920715, 0.29628780484199524, -0.401236355304718, 0.43494123220443726, -0.05917784944176674 ]
https://github.com/huggingface/datasets/issues/211
[Arrow writer, Trivia_qa] Could not convert TagMe with type str: converting to null type
Here the full error trace: ``` ArrowInvalid Traceback (most recent call last) <ipython-input-1-7aaf3f011358> in <module> 1 import nlp 2 ds = nlp.load_dataset("trivia_qa", "rc", split="validation[:1%]") # this might take 2.3 min to download but it's cached afterwards... ----> 3 ds.map(lambda x: x, load_from_cache_file=False) ~/python_bin/nlp/arrow_dataset.py in map(self, function, with_indices, batched, batch_size, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, arrow_schema, disable_nullable) 549 550 if update_data: --> 551 writer.finalize() # close_stream=bool(buf_writer is None)) # We only close if we are writing in a file 552 553 # Create new Dataset from buffer or file ~/python_bin/nlp/arrow_writer.py in finalize(self, close_stream) 182 def finalize(self, close_stream=True): 183 if self.pa_writer is not None: --> 184 self.write_on_file() 185 self.pa_writer.close() 186 if close_stream: ~/python_bin/nlp/arrow_writer.py in write_on_file(self) 104 """ 105 if self.current_rows: --> 106 pa_array = pa.array(self.current_rows, type=self._type) 107 first_example = pa.array(self.current_rows[0:1], type=self._type)[0] 108 # Sanity check ~/hugging_face/venv_3.7/lib/python3.7/site-packages/pyarrow/array.pxi in pyarrow.lib.array() ~/hugging_face/venv_3.7/lib/python3.7/site-packages/pyarrow/array.pxi in pyarrow.lib._sequence_to_array() ~/hugging_face/venv_3.7/lib/python3.7/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status() ArrowInvalid: Could not convert TagMe with type str: converting to null type ```
Running the following code ``` import nlp ds = nlp.load_dataset("trivia_qa", "rc", split="validation[:1%]") # this might take 2.3 min to download but it's cached afterwards... ds.map(lambda x: x, load_from_cache_file=False) ``` triggers a `ArrowInvalid: Could not convert TagMe with type str: converting to null type` error. On the other hand if we remove a certain column of `trivia_qa` which seems responsible for the bug, it works: ``` import nlp ds = nlp.load_dataset("trivia_qa", "rc", split="validation[:1%]") # this might take 2.3 min to download but it's cached afterwards... ds.map(lambda x: x, remove_columns=["entity_pages"], load_from_cache_file=False) ``` . Seems quite hard to debug what's going on here... @lhoestq @thomwolf - do you have a good first guess what the problem could be? **Note** BTW: I think this could be a good test to check that the datasets work correctly: Take a tiny portion of the dataset and check that it can be written correctly.
155
[Arrow writer, Trivia_qa] Could not convert TagMe with type str: converting to null type Running the following code ``` import nlp ds = nlp.load_dataset("trivia_qa", "rc", split="validation[:1%]") # this might take 2.3 min to download but it's cached afterwards... ds.map(lambda x: x, load_from_cache_file=False) ``` triggers a `ArrowInvalid: Could not convert TagMe with type str: converting to null type` error. On the other hand if we remove a certain column of `trivia_qa` which seems responsible for the bug, it works: ``` import nlp ds = nlp.load_dataset("trivia_qa", "rc", split="validation[:1%]") # this might take 2.3 min to download but it's cached afterwards... ds.map(lambda x: x, remove_columns=["entity_pages"], load_from_cache_file=False) ``` . Seems quite hard to debug what's going on here... @lhoestq @thomwolf - do you have a good first guess what the problem could be? **Note** BTW: I think this could be a good test to check that the datasets work correctly: Take a tiny portion of the dataset and check that it can be written correctly. Here the full error trace: ``` ArrowInvalid Traceback (most recent call last) <ipython-input-1-7aaf3f011358> in <module> 1 import nlp 2 ds = nlp.load_dataset("trivia_qa", "rc", split="validation[:1%]") # this might take 2.3 min to download but it's cached afterwards... ----> 3 ds.map(lambda x: x, load_from_cache_file=False) ~/python_bin/nlp/arrow_dataset.py in map(self, function, with_indices, batched, batch_size, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, arrow_schema, disable_nullable) 549 550 if update_data: --> 551 writer.finalize() # close_stream=bool(buf_writer is None)) # We only close if we are writing in a file 552 553 # Create new Dataset from buffer or file ~/python_bin/nlp/arrow_writer.py in finalize(self, close_stream) 182 def finalize(self, close_stream=True): 183 if self.pa_writer is not None: --> 184 self.write_on_file() 185 self.pa_writer.close() 186 if close_stream: ~/python_bin/nlp/arrow_writer.py in write_on_file(self) 104 """ 105 if self.current_rows: --> 106 pa_array = pa.array(self.current_rows, type=self._type) 107 first_example = pa.array(self.current_rows[0:1], type=self._type)[0] 108 # Sanity check ~/hugging_face/venv_3.7/lib/python3.7/site-packages/pyarrow/array.pxi in pyarrow.lib.array() ~/hugging_face/venv_3.7/lib/python3.7/site-packages/pyarrow/array.pxi in pyarrow.lib._sequence_to_array() ~/hugging_face/venv_3.7/lib/python3.7/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status() ArrowInvalid: Could not convert TagMe with type str: converting to null type ```
[ 0.047823574393987656, -0.01499437540769577, 0.09996064007282257, 0.4827658534049988, 0.2526237368583679, 0.11827025562524796, 0.12425868213176727, 0.4629974365234375, 0.20459285378456116, -0.1143016368150711, 0.19549249112606049, 0.5628962516784668, -0.11229009181261063, -0.21451056003570557, -0.06854411214590073, -0.18655313551425934, 0.11651580780744553, 0.2422812432050705, -0.003950916230678558, -0.019452620297670364, -0.12144766747951508, 0.12436165660619736, -0.26443904638290405, 0.1609533429145813, -0.45098209381103516, -0.13436290621757507, 0.10060369968414307, 0.07057671993970871, -0.16652889549732208, -0.4529120922088623, 0.13311591744422913, -0.3863164782524109, -0.014494006521999836, 0.267690509557724, -0.00012025611795252189, -0.10239153355360031, 0.3526803255081177, 0.048439525067806244, -0.26101574301719666, -0.24791769683361053, -0.48198848962783813, 0.0986575037240982, 0.30856263637542725, -0.0510607548058033, 0.22519251704216003, 0.02437897026538849, 0.023879271000623703, -0.597425103187561, 0.18228347599506378, 0.5890495181083679, 0.18119463324546814, 0.31175023317337036, -0.058616843074560165, 0.08240780979394913, 0.22701704502105713, 0.0864311158657074, -0.3474991023540497, 0.1586010456085205, -0.04186464846134186, -0.16374950110912323, -0.09725978225469589, 0.4248967468738556, -0.1737869679927826, 0.12876707315444946, 0.6042651534080505, 0.10137561708688736, 0.10312153398990631, -0.3009960949420929, 0.1894647479057312, 0.0022629350423812866, 0.2738993763923645, -0.18591904640197754, -0.08067499101161957, 0.030914433300495148, -0.1441309005022049, -0.36947184801101685, 0.2096119523048401, 0.1765298843383789, -0.3138507306575775, 0.01766223832964897, 0.011315204203128815, 0.08406350761651993, -0.06323188543319702, -0.07367503643035889, -0.05972416326403618, 0.06742025166749954, 0.013082277961075306, 0.11426393687725067, -0.05431621894240379, -0.1860048621892929, -0.18972836434841156, -0.2200309783220291, -0.20488330721855164, 0.2414926439523697, -0.33788201212882996, 0.048407942056655884, -0.057925574481487274, -0.2089134156703949, -0.16488376259803772, -0.11893333494663239, 0.27847200632095337, -0.0002531185746192932, 0.1446983516216278, 0.1296410858631134, 0.3333249092102051, 0.2861359715461731, 0.32042092084884644, 0.24878497421741486, 0.09861935675144196, -0.30730554461479187, -0.18543538451194763, -0.013637512922286987, -0.011412152089178562, -0.009702347218990326, 0.5141096711158752, 0.01638782024383545, 0.30025196075439453, -0.3601069748401642, -0.3549940884113312, -0.011048928834497929, -0.7358067631721497, 0.15996497869491577, -0.16902373731136322, 0.10665489733219147, -0.008252531290054321, 0.48354750871658325, 0.247684046626091, 0.2814030051231384, -0.3391992449760437, -0.19262808561325073, -0.11420755833387375, -0.004297912120819092, -0.29851970076560974, 0.01562210638076067, 0.30529919266700745, -0.036365121603012085, 0.05392281711101532, 0.06570911407470703, -0.40770626068115234, -0.20890918374061584, 0.3739094138145447, -0.4226517975330353, 0.1788683831691742, -0.008708599954843521, -0.32873785495758057, 0.4152511656284332, 0.24119089543819427, -0.4089018702507019, -0.21291345357894897, 0.17159059643745422, -0.13049599528312683, 0.036898281425237656, -0.19280871748924255, 0.12478368729352951, 0.15921321511268616, -0.2186259627342224, -0.17026418447494507, -0.06532567739486694, 0.3925435543060303, -0.10832789540290833, 0.10371770709753036, -0.29295599460601807, -0.040322184562683105, -0.24107502400875092, -0.08629416674375534, 0.4788666367530823, -0.22314289212226868, 0.06661096215248108, -0.05557797849178314, 0.18355432152748108, 0.36413946747779846, 0.3781096041202545, -0.020373426377773285, 0.17711469531059265, 0.1071876585483551, 0.2820345163345337, 0.47395914793014526, -0.3007650375366211, -0.10005489736795425, 0.09920619428157806, -0.028821904212236404, -0.007086457684636116, -0.04180701822042465, 0.12140275537967682, 0.07706903666257858, -0.12026652693748474, 0.16744640469551086, 0.1947707086801529, -0.06231998652219772, 0.23532620072364807, -0.4206891655921936, -0.10153211653232574, 0.5093364715576172, -0.17420147359371185, -0.07566092908382416, 0.026094675064086914, -0.07687560468912125, 0.05020258575677872, -0.06762731820344925, -0.01305965706706047, 0.4281765818595886, 0.2600765824317932, -0.09044007956981659, -0.08258500695228577, 0.08325646817684174, -0.18829312920570374, -0.3873160183429718, -0.052017368376255035, -0.1053638756275177, 0.1335594356060028, -0.17240847647190094, -0.040386516600847244, -0.3455447256565094, 0.07457014918327332, -0.02713083103299141, -0.19891275465488434, 0.1253446340560913, 0.10824780911207199, 0.1589181125164032, 0.058027494698762894, -0.2278684675693512, 0.1251090168952942, 0.004824379459023476, 0.127397358417511, -0.3979259431362152, -0.1481665074825287, -0.0802365392446518, -0.3554535508155823, -0.09916640818119049, 0.1799597442150116, 0.23762968182563782, 0.1675540953874588, -0.2698640823364258, 0.1873166561126709, 0.018680382519960403, 0.21714353561401367, -0.25498220324516296, 0.029901757836341858, 0.018767692148685455, -0.4021500051021576, 0.22020117938518524, 0.3269737660884857, 0.36164891719818115, -0.2435903549194336, -0.39649394154548645, -0.021463096141815186, 0.014600614085793495, 0.5858562588691711, -0.1325559914112091, 0.10853365808725357, -0.07677610963582993, -0.036233071237802505, 0.09410546720027924, -0.07976418733596802, 0.09601094573736191, -0.11330673098564148, 0.19795279204845428, 0.29243722558021545, -0.30972355604171753, 0.27264976501464844, 0.4216947555541992, 0.300249844789505, 0.13427656888961792, 0.1598108410835266, -0.33452120423316956, -0.08566460013389587, 0.2644168436527252, -0.012384731322526932, 0.4610905647277832, -0.043285951018333435, 0.21456103026866913, -0.08492780476808548, -0.15070272982120514, -0.14859628677368164, 0.3578396141529083, -0.09661875665187836, 0.017265597358345985, -0.009265914559364319, 0.49071094393730164, 0.01062595471739769, -0.1787133514881134, 0.20089173316955566, 0.00551392138004303, 0.23830607533454895, -0.3552836775779724, 0.3290378749370575, -0.3391135334968567, -0.16789510846138, -0.3810409605503082, -0.25444018840789795, -0.018509183079004288, -0.5028194785118103, -0.1405360847711563, 0.07923334836959839, 0.006111301481723785, 0.12038926035165787, -0.25411731004714966, -0.1418566256761551, 0.01808476634323597, -0.1107122078537941, -0.3347354829311371, -0.3540616035461426, -0.3705022931098938, -0.06328758597373962, 0.46462810039520264, 0.3231957256793976, 0.18738096952438354, 0.053034693002700806, -0.06295032054185867, -0.06901062279939651, -0.36038738489151, 0.030563700944185257, -0.19892272353172302, 0.05718553811311722, 0.12039342522621155, 0.07613935321569443, -0.1360304355621338, -0.1272962987422943, 0.4256202280521393, 0.0031835827976465225, -0.24060222506523132, 0.3291912078857422, -0.02077104151248932, 0.04902184009552002, -0.2927951216697693, -0.4807074964046478, 0.013537595048546791, -0.4682866930961609, 0.13702957332134247, -0.11211816966533661, 0.20931917428970337, 0.17763224244117737, 0.12377569079399109, 0.310684472322464, -0.05574367567896843, 0.1851251721382141, 0.2070273458957672, 0.3653678894042969, 0.6162765026092529, -0.1331361085176468, -0.23794709146022797, 0.2084653675556183, -0.07696875929832458, 0.3138103485107422, 0.20748881995677948, -0.17882117629051208, 0.33277031779289246, -0.42187848687171936, 0.3207610845565796, -0.1633073389530182, -0.13050545752048492, 0.22173582017421722, 0.2210206240415573, -0.04805263876914978, -0.06043875962495804, -0.007516829296946526, 0.21831268072128296, -0.21776610612869263, 0.15179365873336792, 0.12625306844711304, 0.2142091989517212, -0.053449712693691254, 0.3817189335823059, 0.14399753510951996, -0.22840870916843414, 0.28303104639053345, 0.01680862158536911, -0.04759551212191582, -0.3022206127643585, -0.2784263491630554, -0.08813552558422089, -0.21156984567642212, 0.1277085840702057, -0.1773899644613266, 0.03394453227519989, -0.4855807423591614, -0.02226472832262516, 0.2889751195907593, -0.18293246626853943, -0.1343132108449936, 0.30220505595207214, -0.2138015627861023, 0.2901403307914734, 0.13460980355739594, 0.12581953406333923, -0.19792257249355316, -0.41243892908096313, 0.032936178147792816, -0.02465667575597763, 0.15686160326004028, 0.024755334481596947, -0.10193676501512527, -0.05289766937494278, -0.4739765524864197, 0.288402795791626, 0.17515553534030914, 0.43267568945884705, -0.0764366164803505, -0.14325211942195892, 0.19170689582824707, -0.1135200783610344, 0.2986413240432739, -0.1461242437362671, -0.027595631778240204, 0.3758092224597931, 0.27237650752067566, -0.4777470529079437, 0.26930883526802063, -0.2311156988143921, 0.3493026793003082, 0.26166731119155884, 0.2834543287754059, -0.3896853029727936, -0.31311318278312683, 0.2579020857810974, 0.16102884709835052, 0.01665225252509117, 0.08997302502393723, -0.31697937846183777, -0.003518272191286087, -0.15553419291973114, -0.0867396667599678, 0.27570533752441406, 0.31060168147087097, 0.08262234181165695, 0.05490228906273842, -0.33018743991851807, 0.1789487898349762, 0.1806427389383316, 0.026372455060482025, 0.428267240524292, -0.30367156863212585, 0.13769064843654633, -0.15683118999004364, 0.20898057520389557, -0.08677142858505249, 0.3240398168563843, -0.06349001824855804, -0.19840174913406372, 0.2668815851211548, -0.05753684043884277, 0.3644374907016754, 0.32926711440086365, 0.036092810332775116, 0.34705302119255066, -0.12237481772899628, -0.09592196345329285, -0.20330074429512024, 0.029604660347104073, 0.16758844256401062, -0.05280967056751251, 0.043426528573036194, -0.21204374730587006, 0.48226672410964966, 0.29814890027046204, -0.033570632338523865, 0.6272780299186707, 0.13703228533267975, -0.2833762764930725, 0.23740024864673615, 0.18653222918510437, 1.1821584701538086, 0.15122613310813904, 0.1496681571006775, 0.13378214836120605, -0.4301363229751587, 0.33390751481056213, 0.061938025057315826, 0.32545965909957886, -0.462836354970932, 0.32495778799057007, 0.02449793554842472, -0.16893230378627777, 0.06731411069631577, -0.03389597684144974, -0.30240437388420105, 0.08304454386234283, -0.19602975249290466, 0.309246689081192, 0.11238618940114975, 0.05807054787874222, -0.3026754856109619, -0.31657901406288147, -0.3749191164970398, 0.08060046285390854, -0.2505494952201843, -0.0766257643699646, 0.1103610023856163, -0.21556659042835236, -0.4914938807487488, -0.04550555348396301, -0.06853926181793213, 0.11479704827070236, -0.17067211866378784, 0.04652217775583267, 0.2367301881313324, -0.15768751502037048, 0.18111813068389893, 0.07256590574979782, -0.10370782017707825, -0.06586961448192596, -0.13383424282073975, -0.08608852326869965, 0.19671550393104553, 0.10096614062786102, 0.12061978131532669, -0.0757206380367279, 0.011201180517673492, 0.07623356580734253, 0.02482251077890396, 0.2276172637939453, -0.3680086135864258, -0.013540979474782944, -0.06473145633935928, 0.16641616821289062, 0.119265615940094, -0.09275131672620773, -0.08846449851989746, 0.09907529503107071, -0.060518279671669006, 0.0031136274337768555, 0.09320305287837982, 0.02566773071885109, 0.15167918801307678, 0.08057010918855667, -0.156910702586174, -0.2600080370903015, 0.2690165042877197, 0.341330885887146, 0.04775908589363098, 0.2406034767627716, 0.7169966697692871, 0.05950877442955971, -0.18554072082042694, -0.17794442176818848, 0.07761196047067642, -0.052393585443496704, -0.73108971118927, 0.3293783664703369, -0.3314182758331299, -0.22107869386672974, 0.03403379023075104, 0.45446842908859253, -0.202937513589859, 0.08033926039934158, -0.15941345691680908, -0.23307830095291138, -0.21894419193267822, 0.17904914915561676, -0.030600611120462418, 0.03467161953449249, -0.45244961977005005, -0.05752852186560631, 0.09664377570152283, 0.12149374932050705, -0.22719302773475647, -0.01004166342318058, -0.1742919236421585, 0.37134799361228943, 0.09213211387395859, 0.03296497464179993, -0.05073254182934761, -0.1805102825164795, -0.011443858034908772, 0.5151129961013794, -0.09715477377176285, -0.1443873941898346, -0.2621203064918518, 0.14715513586997986, 0.07113328576087952, -0.16618286073207855, 0.0705534964799881, 0.024172604084014893, 0.07843570411205292, -0.21286918222904205, -0.15107862651348114, -0.10288678854703903, -0.18629805743694305, 0.056038592010736465, -0.08770100772380829, 0.2029784619808197, -0.17871829867362976, 0.0992555320262909, -0.14713317155838013, 0.056820642203092575, -0.24345871806144714, 0.10793576389551163, 0.21070469915866852, 0.05712318420410156, -0.20819653570652008, 0.048778314143419266, -0.09463752806186676, -0.15886428952217102, 0.3047349452972412, -0.37726354598999023, -0.16618749499320984, 0.05655071139335632, -0.19067233800888062, 0.4166315495967865, -0.09205624461174011, 0.00205274298787117, -0.08149810135364532, 0.09775514900684357, 0.07033473998308182, 0.3166259229183197, -0.178695410490036, -0.16311265528202057, -0.11346384882926941, 0.19117169082164764, -0.023984765633940697, -0.15496736764907837, -0.030291453003883362, 0.09488911926746368, 0.03304675593972206, -0.4421162009239197, -0.16407181322574615, 0.13605473935604095, -0.0254782997071743, -0.0716065764427185, 0.3569363057613373, -0.10453931987285614, 0.021537140011787415, 0.020302504301071167, 0.36647865176200867, 0.3340465724468231, 0.43646368384361267, 0.20343336462974548, -0.0676417276263237, 0.1195061057806015, -0.024971555918455124, 0.3891993761062622, 0.24424850940704346, 0.1511012613773346, 0.17533661425113678, 0.5244446396827698, -0.29807889461517334, -0.3281245231628418, 0.06573353707790375, 0.1083270013332367, -0.27272334694862366, -0.08761104941368103, -0.5703158378601074, -0.11522695422172546, -0.4419080913066864, -0.08809889853000641, -0.1905381828546524, 0.25448888540267944, 0.692865252494812, 0.2337903529405594, 0.01669788360595703, -0.5845616459846497, -0.129884272813797, 0.13295438885688782, 0.3920843005180359, -0.2488602250814438, 0.40359464287757874, 0.10868501663208008, -0.07600262761116028, -0.13055181503295898, 0.4997347295284271, 0.4683459401130676, 0.5678136944770813, -0.2883789539337158, -0.06765233725309372, 0.05808216333389282, -0.18258096277713776, 0.23777785897254944, 0.5766587257385254, 0.33824142813682556, 0.14018048346042633, 0.03504380211234093, -0.03796566650271416, -0.10737597942352295, -0.09008067846298218, -0.02972174808382988, 0.2774466574192047, -0.16376063227653503, 0.29494592547416687, -0.23841041326522827, -0.22263845801353455, -0.04625171422958374, -0.21093016862869263, -0.3650147020816803, -0.04621974006295204, 0.20551706850528717, 0.04957424849271774, 0.01566898077726364, -0.33418092131614685, 0.057421356439590454, 0.2021242082118988, 0.5171063542366028, 0.2711418867111206, 0.13861268758773804, -0.4753839373588562, -0.11695349961519241, -0.7315420508384705, 0.17639365792274475, -0.3148995339870453, -0.1567145735025406, -0.014517975971102715, 0.36327841877937317, 0.04523297771811485, 0.31469935178756714, -0.0349210649728775, 0.2289501577615738, 0.2513009309768677, 0.30536121129989624, -0.34168943762779236, -0.11979468166828156, 0.3530438542366028, -0.3037296235561371, 0.023085709661245346, -0.5888962745666504, 0.26860174536705017, 0.05124221369624138, 0.06511200964450836, -0.008692275732755661, -0.28448158502578735, 0.29853928089141846, 0.48924577236175537, 0.27550700306892395, 0.2637937068939209, 0.28560423851013184, 0.24758228659629822, -0.5557770729064941, -0.21760687232017517, -0.17345575988292694, -0.2077275812625885, -0.02030392736196518, 0.08986839652061462, 0.5805655717849731, -0.14044824242591858, 0.0624375119805336, -0.3035691976547241, 0.32777050137519836, -0.2265169769525528, 0.034378957003355026, -0.17557364702224731, 0.06700657308101654, -0.3490563631057739, 0.16302494704723358, 0.07218986004590988, 0.12040119618177414, 0.1978319138288498, 0.24254386126995087, -0.5347834825515747, -0.38742896914482117, 0.30438560247421265, -0.519408106803894, -0.4466891884803772, 0.293191522359848, 0.1429882049560547, 0.44685274362564087, -0.012415776029229164, -0.7071857452392578, -0.26888135075569153, 0.21321943402290344, -0.09643752127885818, 0.025331590324640274, 0.023004673421382904, 0.026594771072268486, 0.0740286260843277, -0.19160330295562744, 0.36198389530181885, 0.008301779627799988, 0.04928068071603775, 0.04833019897341728, -0.22841095924377441 ]
https://github.com/huggingface/datasets/issues/211
[Arrow writer, Trivia_qa] Could not convert TagMe with type str: converting to null type
Actually thinking a bit more about it, it's probably a data sample that is not correct in `trivia_qa`. But I'm a bit surprised though that we managed to write it in .arrow format and now cannot write it anymore after an "identity" mapping.
Running the following code ``` import nlp ds = nlp.load_dataset("trivia_qa", "rc", split="validation[:1%]") # this might take 2.3 min to download but it's cached afterwards... ds.map(lambda x: x, load_from_cache_file=False) ``` triggers a `ArrowInvalid: Could not convert TagMe with type str: converting to null type` error. On the other hand if we remove a certain column of `trivia_qa` which seems responsible for the bug, it works: ``` import nlp ds = nlp.load_dataset("trivia_qa", "rc", split="validation[:1%]") # this might take 2.3 min to download but it's cached afterwards... ds.map(lambda x: x, remove_columns=["entity_pages"], load_from_cache_file=False) ``` . Seems quite hard to debug what's going on here... @lhoestq @thomwolf - do you have a good first guess what the problem could be? **Note** BTW: I think this could be a good test to check that the datasets work correctly: Take a tiny portion of the dataset and check that it can be written correctly.
43
[Arrow writer, Trivia_qa] Could not convert TagMe with type str: converting to null type Running the following code ``` import nlp ds = nlp.load_dataset("trivia_qa", "rc", split="validation[:1%]") # this might take 2.3 min to download but it's cached afterwards... ds.map(lambda x: x, load_from_cache_file=False) ``` triggers a `ArrowInvalid: Could not convert TagMe with type str: converting to null type` error. On the other hand if we remove a certain column of `trivia_qa` which seems responsible for the bug, it works: ``` import nlp ds = nlp.load_dataset("trivia_qa", "rc", split="validation[:1%]") # this might take 2.3 min to download but it's cached afterwards... ds.map(lambda x: x, remove_columns=["entity_pages"], load_from_cache_file=False) ``` . Seems quite hard to debug what's going on here... @lhoestq @thomwolf - do you have a good first guess what the problem could be? **Note** BTW: I think this could be a good test to check that the datasets work correctly: Take a tiny portion of the dataset and check that it can be written correctly. Actually thinking a bit more about it, it's probably a data sample that is not correct in `trivia_qa`. But I'm a bit surprised though that we managed to write it in .arrow format and now cannot write it anymore after an "identity" mapping.
[ 0.12082342803478241, 0.0813007801771164, 0.08892346918582916, 0.40829747915267944, 0.2814415693283081, 0.05460145324468613, 0.11376459151506424, 0.33654847741127014, 0.18600957095623016, -0.18694986402988434, 0.24845804274082184, 0.5634833574295044, 0.000985848717391491, -0.0783175379037857, -0.023558858782052994, -0.11811421811580658, 0.07306293398141861, 0.2508923411369324, 0.0506296381354332, -0.12445332854986191, -0.09246087819337845, 0.16164332628250122, -0.18193966150283813, 0.22253009676933289, -0.5130993127822876, -0.15872864425182343, 0.14412793517112732, 0.08026742190122604, -0.11963749676942825, -0.499011367559433, 0.015515720471739769, -0.34734290838241577, 0.0308186337351799, 0.20836079120635986, -0.0001191395494970493, -0.1659439206123352, 0.373492956161499, -0.05221489071846008, -0.19603271782398224, -0.21079637110233307, -0.553138792514801, 0.16648240387439728, 0.3032820522785187, -0.06724145263433456, 0.23992884159088135, -0.10213474184274673, 0.06580636650323868, -0.5268745422363281, 0.09618210047483444, 0.49537768959999084, 0.19496852159500122, 0.15002742409706116, 0.11893022060394287, 0.08554040640592575, 0.26706361770629883, 0.11917246133089066, -0.2874543368816376, 0.043262459337711334, -0.13040466606616974, -0.22419597208499908, -0.06938860565423965, 0.34750550985336304, -0.04919552803039551, -0.0045448727905750275, 0.5662904977798462, 0.044567354023456573, 0.1975943148136139, -0.18642735481262207, 0.2564822733402252, 0.05850710719823837, 0.3549566864967346, -0.0617082342505455, -0.10864061117172241, 0.09885425120592117, -0.12332401424646378, -0.3633815050125122, 0.2884753942489624, 0.2225210815668106, -0.26590678095817566, -0.0122918002307415, 0.11637582629919052, 0.06312455981969833, 0.00971464067697525, -0.12463611364364624, -0.156538188457489, 0.14945408701896667, 0.018611663952469826, 0.11266767978668213, -0.05011377111077309, -0.1976824402809143, -0.1804725080728531, -0.07938462495803833, -0.30318957567214966, 0.2140200436115265, -0.28308406472206116, 0.011638805270195007, -0.05160331726074219, -0.16387376189231873, -0.2018786370754242, -0.087909996509552, 0.41374653577804565, -0.00014440715312957764, -0.005353456828743219, 0.0675484910607338, 0.3144083023071289, 0.4288601875305176, 0.469721257686615, 0.098272904753685, 0.13660812377929688, -0.30488961935043335, -0.1826518326997757, -0.03447609394788742, -0.025242716073989868, -0.009739384055137634, 0.4327157735824585, 0.024083347991108894, 0.07819700241088867, -0.30475038290023804, -0.25904184579849243, 0.026841260492801666, -0.711564302444458, 0.22196868062019348, -0.2164335548877716, 0.13746267557144165, 0.06488686800003052, 0.40737292170524597, 0.295243501663208, 0.2960966229438782, -0.2042856365442276, -0.20120714604854584, -0.11234594136476517, -0.09873458743095398, -0.34874197840690613, -0.15234269201755524, 0.19271013140678406, -0.08550089597702026, 0.0856173038482666, 0.021654538810253143, -0.5190792083740234, -0.22347410023212433, 0.2967342734336853, -0.2855607867240906, 0.29618188738822937, 0.06044835224747658, -0.2745225727558136, 0.45916318893432617, 0.21227766573429108, -0.5164351463317871, -0.09735002368688583, 0.0927966833114624, -0.20460006594657898, 0.07067373394966125, -0.18194690346717834, 0.13979142904281616, 0.03730955347418785, -0.27449145913124084, -0.20205259323120117, -0.06351903080940247, 0.38846465945243835, -0.16859479248523712, 0.09392952173948288, -0.20465388894081116, -0.012687679380178452, -0.2841021716594696, -0.14891186356544495, 0.3834083080291748, -0.18657894432544708, 0.10843653976917267, -0.07518051564693451, 0.16698206961154938, 0.3044072985649109, 0.3455907106399536, 0.0228832196444273, 0.19979728758335114, 0.1055133268237114, 0.3500431776046753, 0.39273667335510254, -0.22957970201969147, -0.009728774428367615, -0.0022538751363754272, -0.017602089792490005, -0.0076591577380895615, -0.058282263576984406, -0.0028020532336086035, 0.04202098771929741, -0.11749894171953201, 0.08269569277763367, 0.1232975423336029, 0.012098614126443863, 0.25914642214775085, -0.3936401605606079, -0.06219308823347092, 0.4800761342048645, -0.31273147463798523, -0.20604096353054047, -0.03039427101612091, 0.016499489545822144, 0.10142774879932404, -0.026429809629917145, -0.09374654293060303, 0.30804839730262756, 0.1747928112745285, -0.07066221535205841, -0.14800631999969482, 0.1571844220161438, -0.04129175841808319, -0.3996141850948334, -0.05961424112319946, -0.1100003719329834, 0.13414941728115082, -0.051153168082237244, 0.00295339897274971, -0.27479711174964905, 0.05228045582771301, -0.007795806974172592, -0.25278183817863464, 0.14248058199882507, 0.06316882371902466, 0.1646495759487152, 0.12633082270622253, -0.2156066745519638, 0.0616246834397316, 0.021692512556910515, 0.12927831709384918, -0.367227703332901, -0.262530118227005, 0.010547012090682983, -0.33143290877342224, -0.19128216803073883, 0.2312704622745514, 0.22903785109519958, 0.13432149589061737, -0.25436970591545105, 0.19253772497177124, -0.009425973519682884, 0.3920416831970215, -0.2142835259437561, 0.0745098739862442, -0.013634270057082176, -0.5046822428703308, 0.19313746690750122, 0.4102117717266083, 0.29952192306518555, -0.29573962092399597, -0.4034360945224762, -0.05351768434047699, -0.031673502177000046, 0.5904884934425354, -0.09309841692447662, 0.2558088004589081, -0.020294442772865295, -0.0683140754699707, 0.07016222923994064, -0.12563355267047882, 0.1901368647813797, -0.16906878352165222, 0.1784568727016449, 0.23488198220729828, -0.23076662421226501, 0.3158990442752838, 0.38045695424079895, 0.3273269534111023, 0.21452665328979492, 0.03870787471532822, -0.3840380609035492, -0.06015682965517044, 0.27095600962638855, 0.06697259843349457, 0.3688611686229706, -0.05913997069001198, 0.22426296770572662, -0.133899986743927, -0.15443658828735352, -0.17635606229305267, 0.3210905194282532, -0.20176954567432404, 0.07100436836481094, 0.06617742776870728, 0.5125982761383057, 0.017989302054047585, -0.18942159414291382, 0.3008745014667511, -0.016682278364896774, 0.23172099888324738, -0.4176042973995209, 0.2389858514070511, -0.311637282371521, -0.05878432095050812, -0.3408745527267456, -0.21178175508975983, -0.08250153064727783, -0.5657786130905151, -0.03033294528722763, -0.033450860530138016, -0.0700719952583313, 0.036091309040784836, -0.11940228939056396, -0.1479916125535965, -0.1088990867137909, -0.07129576057195663, -0.3734101355075836, -0.4300116300582886, -0.2597959339618683, -0.04753913730382919, 0.3729807436466217, 0.23948892951011658, 0.10474292188882828, -0.012624968774616718, -0.07535745203495026, 0.00032687000930309296, -0.47142818570137024, -0.004124529659748077, -0.2229713350534439, 0.06794293969869614, 0.18282341957092285, 0.021070674061775208, -0.030382486060261726, -0.014436692930758, 0.3603614866733551, -0.06673983484506607, -0.2764343321323395, 0.35011205077171326, 0.06635868549346924, 0.05440846085548401, -0.2934797704219818, -0.3115217089653015, 0.08216574043035507, -0.4667845666408539, 0.30064576864242554, -0.09647830575704575, 0.2416379302740097, 0.2114754319190979, -0.017977092415094376, 0.22887660562992096, -0.06533239036798477, 0.1617140769958496, 0.18839047849178314, 0.4239380955696106, 0.5407384634017944, -0.2293752282857895, -0.3174424171447754, 0.2958124279975891, -0.0376458577811718, 0.38819625973701477, 0.14681170880794525, -0.04843786358833313, 0.40579095482826233, -0.38437721133232117, 0.13194118440151215, -0.147418811917305, -0.07091350108385086, 0.18097653985023499, 0.23529140651226044, -0.05996215343475342, -0.1455632746219635, 0.03315628319978714, 0.2185855209827423, -0.030756108462810516, 0.2485055923461914, 0.09110970795154572, 0.004533633589744568, -0.11354325711727142, 0.38202202320098877, 0.30407607555389404, -0.15708684921264648, 0.26299071311950684, 0.006089935079216957, -0.06353531777858734, -0.23008832335472107, -0.2707279622554779, -0.12888313829898834, -0.17353877425193787, 0.15583109855651855, -0.15172050893306732, 0.03358308970928192, -0.3819093406200409, -0.03143450617790222, 0.33778059482574463, -0.18510064482688904, -0.14558853209018707, 0.2932659089565277, -0.2784799635410309, 0.23703894019126892, 0.08548352122306824, 0.19006052613258362, -0.12471434473991394, -0.4073353111743927, 0.12500059604644775, -0.0006940737366676331, 0.11784885078668594, 0.03632820025086403, -0.19866172969341278, -0.12969714403152466, -0.41023334860801697, 0.3197304308414459, 0.03993390500545502, 0.36018699407577515, -0.1612703651189804, -0.15637363493442535, 0.18404215574264526, -0.15219591557979584, 0.4350278377532959, -0.36648035049438477, -0.05906345695257187, 0.3051376938819885, 0.342105507850647, -0.47393614053726196, 0.3419203758239746, -0.2217656672000885, 0.24682150781154633, 0.16475552320480347, 0.1495349109172821, -0.323481947183609, -0.23489388823509216, 0.17474211752414703, 0.020165788009762764, 0.02373581752181053, 0.1704343557357788, -0.3350857198238373, 0.026662401854991913, -0.07697516679763794, -0.1739082932472229, 0.20773683488368988, 0.2420213520526886, 0.018690237775444984, 0.07589267194271088, -0.41795334219932556, 0.19375506043434143, 0.217445507645607, 0.08719110488891602, 0.39977800846099854, -0.2400725781917572, 0.011526860296726227, -0.02022891491651535, 0.1994381546974182, -0.07045330107212067, 0.45299237966537476, -0.041653502732515335, -0.17850875854492188, 0.25579407811164856, -0.08369337767362595, 0.47236722707748413, 0.38349032402038574, 0.08568954467773438, 0.3246254324913025, -0.2723219096660614, -0.22830940783023834, -0.3209865391254425, 0.0069493395276367664, 0.04117865860462189, 0.0026779258623719215, 0.14303705096244812, -0.1038237065076828, 0.5234209895133972, 0.24864841997623444, -0.07634864002466202, 0.5133998990058899, 0.1670321524143219, -0.33578357100486755, 0.32315897941589355, 0.22793808579444885, 1.1573795080184937, 0.058490604162216187, 0.10378354787826538, -0.05825226008892059, -0.46720409393310547, 0.44061100482940674, 0.06488734483718872, 0.2514752149581909, -0.47175073623657227, 0.3540157675743103, 0.004887843504548073, -0.20057357847690582, 0.04434792697429657, -0.05194263160228729, -0.3008950650691986, 0.11113542318344116, -0.21602782607078552, 0.244873508810997, 0.09667310863733292, 0.09772065281867981, -0.3100964426994324, -0.3052620589733124, -0.2676105797290802, 0.09327086806297302, -0.18762505054473877, -0.00799153745174408, 0.11706533282995224, -0.2904044985771179, -0.5326508283615112, -0.05518341809511185, -0.08857395499944687, 0.19176539778709412, -0.19879919290542603, -0.07285910844802856, 0.2525029182434082, -0.2095433473587036, 0.23995614051818848, 0.23208856582641602, 0.08816585689783096, -0.063479945063591, -0.17391431331634521, -0.04728543385863304, 0.2920389771461487, 0.15689198672771454, 0.12021452188491821, -0.03312940150499344, 0.014185057021677494, 0.10079563409090042, 0.04560548812150955, 0.25179681181907654, -0.4120060205459595, 0.0407639741897583, -0.08722446858882904, 0.2069530487060547, 0.09257879108190536, -0.05611651763319969, 0.05833422765135765, 0.05692872032523155, -0.05763855576515198, -0.024935970082879066, 0.10847322642803192, 0.013143707066774368, 0.16904431581497192, 0.035705409944057465, -0.11537505686283112, -0.2564198076725006, 0.31084972620010376, 0.3111065924167633, -0.011716306209564209, 0.2638024091720581, 0.734186053276062, 0.027994457632303238, -0.15276356041431427, -0.19830730557441711, 0.02863059937953949, -0.024159526452422142, -0.7314621806144714, 0.3125092685222626, -0.31606680154800415, -0.36789244413375854, 0.02008046582341194, 0.5516511797904968, -0.23535047471523285, 0.18464402854442596, -0.18532207608222961, -0.2600315511226654, -0.19181162118911743, 0.2942546308040619, -0.06804938614368439, 0.0068129077553749084, -0.4693599045276642, -0.10694557428359985, 0.02950330264866352, 0.1694556176662445, -0.24777016043663025, 0.03532426804304123, -0.1177469789981842, 0.3626190721988678, -0.0466868132352829, -0.005118165165185928, -0.00468192994594574, -0.257421612739563, 0.010051636025309563, 0.5666003823280334, -0.12076972424983978, -0.1419089138507843, -0.2833368182182312, 0.145877867937088, 0.08442306518554688, -0.17020772397518158, 0.1653786301612854, -0.01781672239303589, 0.0622471384704113, -0.21514572203159332, -0.07266802340745926, -0.2080887258052826, -0.18448640406131744, 0.07485087215900421, -0.021100308746099472, 0.2446187138557434, -0.23421604931354523, 0.08050128817558289, -0.07008957862854004, 0.06816452741622925, -0.36970818042755127, 0.00714898481965065, -0.014692767523229122, 0.0024233534932136536, -0.035316187888383865, 0.15229445695877075, -0.18646351993083954, -0.11169906705617905, 0.2823200523853302, -0.29534244537353516, -0.12911157310009003, -0.005005266051739454, -0.1942417025566101, 0.33799615502357483, -0.15246953070163727, 0.048098206520080566, -0.042308155447244644, 0.11493932455778122, 0.13665595650672913, 0.35715770721435547, -0.26210010051727295, 0.021108433604240417, -0.08318161964416504, 0.275754451751709, 0.12450598180294037, -0.22824107110500336, -0.10933329164981842, 0.06607457995414734, -0.06436847895383835, -0.3699740767478943, -0.1312265545129776, 0.12129358947277069, -0.14155232906341553, -0.002717401832342148, 0.31574884057044983, -0.15956181287765503, -0.039288438856601715, -0.0020728446543216705, 0.3984376788139343, 0.3103440999984741, 0.508104681968689, 0.20689117908477783, 0.0034986063838005066, 0.09589135646820068, 0.008702248334884644, 0.24191193282604218, 0.34573084115982056, 0.36158567667007446, 0.2970239222049713, 0.6127427816390991, -0.383642315864563, -0.26814693212509155, -0.02600931189954281, 0.10279194265604019, -0.26224586367607117, -0.1416996419429779, -0.5835603475570679, -0.12105114012956619, -0.44204163551330566, -0.08055128157138824, -0.2170768678188324, 0.19709758460521698, 0.5802693367004395, 0.21965736150741577, -0.045475080609321594, -0.6290248036384583, -0.20984303951263428, 0.058179739862680435, 0.5017367005348206, -0.22398348152637482, 0.45599648356437683, 0.016069181263446808, -0.056824326515197754, -0.018256261944770813, 0.5782523155212402, 0.4393099844455719, 0.5464797616004944, -0.3213454782962799, -0.013242638669908047, 0.05908279865980148, -0.170231431722641, 0.2828425467014313, 0.6259995698928833, 0.37193575501441956, 0.07206713408231735, 0.049773309379816055, -0.028637003153562546, -0.0999382808804512, -0.26097342371940613, 0.021829966455698013, 0.456132709980011, -0.00945402029901743, 0.21890705823898315, -0.29675331711769104, -0.13070371747016907, -0.07994166016578674, -0.24563941359519958, -0.3012332320213318, -0.07740375399589539, 0.13583481311798096, 0.01643824391067028, 0.02051086723804474, -0.34253883361816406, 0.07126223295927048, 0.1603754609823227, 0.5518667101860046, 0.2615606188774109, 0.1266723871231079, -0.4171098470687866, -0.11879723519086838, -0.5855774879455566, 0.20088744163513184, -0.23853236436843872, -0.15075741708278656, -0.09952828288078308, 0.3261129558086395, 0.10537166893482208, 0.2445044368505478, -0.02768164873123169, 0.2034982591867447, 0.3321011960506439, 0.3179221451282501, -0.3015891909599304, -0.062345992773771286, 0.31746309995651245, -0.3273675739765167, 0.008462842553853989, -0.5750216841697693, 0.2966238260269165, 0.0678640827536583, 0.06840592622756958, 0.13131773471832275, -0.3014717102050781, 0.20186801254749298, 0.4438703656196594, 0.3714677393436432, 0.21601702272891998, 0.2539949417114258, 0.2564384937286377, -0.4523238241672516, -0.2691608965396881, -0.20937936007976532, -0.23863449692726135, 0.10153746604919434, 0.10521803796291351, 0.5344882011413574, -0.08086089044809341, 0.12656211853027344, -0.2559089958667755, 0.15339726209640503, -0.17736420035362244, 0.10928711295127869, -0.2637520134449005, 0.1466667503118515, -0.3174300193786621, 0.08098722249269485, 0.12022678554058075, 0.12272703647613525, 0.15131622552871704, 0.1441602259874344, -0.48501795530319214, -0.45378047227859497, 0.3317619860172272, -0.37990888953208923, -0.33462435007095337, 0.3907824456691742, 0.21516910195350647, 0.43962550163269043, -0.10427296906709671, -0.7881224155426025, -0.35706260800361633, 0.1472140997648239, -0.13919532299041748, -0.050900012254714966, -0.11611476540565491, -0.05664457753300667, -0.00523579865694046, -0.21112218499183655, 0.3439013659954071, -0.008731666952371597, 0.08372989296913147, 0.09028726816177368, -0.16827630996704102 ]
https://github.com/huggingface/datasets/issues/211
[Arrow writer, Trivia_qa] Could not convert TagMe with type str: converting to null type
Actually, I know what the problem is...I'm quite sure it's a bug. Here we take some test inputs: https://github.com/huggingface/nlp/blob/0e0ef12c14d2175e0b0bd7d8aa814b09e2cd7e1f/src/nlp/arrow_dataset.py#L472 It might be that in the test inputs, a `Sequence` type value is an emtpy list. So in my case I have `ds[0]["entity_pages']["wiki_context"] = []`. => this leads to an `arrow_schema` equal to `null` for `["entity_pages']["wiki_context"]` => see line: https://github.com/huggingface/nlp/blob/0e0ef12c14d2175e0b0bd7d8aa814b09e2cd7e1f/src/nlp/arrow_dataset.py#L501 instead of list of string which it should for other examples. Guess it's an edge case, but it can happen.
Running the following code ``` import nlp ds = nlp.load_dataset("trivia_qa", "rc", split="validation[:1%]") # this might take 2.3 min to download but it's cached afterwards... ds.map(lambda x: x, load_from_cache_file=False) ``` triggers a `ArrowInvalid: Could not convert TagMe with type str: converting to null type` error. On the other hand if we remove a certain column of `trivia_qa` which seems responsible for the bug, it works: ``` import nlp ds = nlp.load_dataset("trivia_qa", "rc", split="validation[:1%]") # this might take 2.3 min to download but it's cached afterwards... ds.map(lambda x: x, remove_columns=["entity_pages"], load_from_cache_file=False) ``` . Seems quite hard to debug what's going on here... @lhoestq @thomwolf - do you have a good first guess what the problem could be? **Note** BTW: I think this could be a good test to check that the datasets work correctly: Take a tiny portion of the dataset and check that it can be written correctly.
79
[Arrow writer, Trivia_qa] Could not convert TagMe with type str: converting to null type Running the following code ``` import nlp ds = nlp.load_dataset("trivia_qa", "rc", split="validation[:1%]") # this might take 2.3 min to download but it's cached afterwards... ds.map(lambda x: x, load_from_cache_file=False) ``` triggers a `ArrowInvalid: Could not convert TagMe with type str: converting to null type` error. On the other hand if we remove a certain column of `trivia_qa` which seems responsible for the bug, it works: ``` import nlp ds = nlp.load_dataset("trivia_qa", "rc", split="validation[:1%]") # this might take 2.3 min to download but it's cached afterwards... ds.map(lambda x: x, remove_columns=["entity_pages"], load_from_cache_file=False) ``` . Seems quite hard to debug what's going on here... @lhoestq @thomwolf - do you have a good first guess what the problem could be? **Note** BTW: I think this could be a good test to check that the datasets work correctly: Take a tiny portion of the dataset and check that it can be written correctly. Actually, I know what the problem is...I'm quite sure it's a bug. Here we take some test inputs: https://github.com/huggingface/nlp/blob/0e0ef12c14d2175e0b0bd7d8aa814b09e2cd7e1f/src/nlp/arrow_dataset.py#L472 It might be that in the test inputs, a `Sequence` type value is an emtpy list. So in my case I have `ds[0]["entity_pages']["wiki_context"] = []`. => this leads to an `arrow_schema` equal to `null` for `["entity_pages']["wiki_context"]` => see line: https://github.com/huggingface/nlp/blob/0e0ef12c14d2175e0b0bd7d8aa814b09e2cd7e1f/src/nlp/arrow_dataset.py#L501 instead of list of string which it should for other examples. Guess it's an edge case, but it can happen.
[ 0.09355767071247101, -0.05218074470758438, 0.09173044562339783, 0.4922739863395691, 0.2525191307067871, 0.14921057224273682, 0.10871300101280212, 0.4076998233795166, 0.1446874886751175, -0.09357932209968567, 0.3454066812992096, 0.5846514105796814, -0.12629780173301697, -0.08148019015789032, -0.03906688094139099, -0.18967172503471375, 0.15724368393421173, 0.2686876654624939, 0.0862920880317688, -0.06003144010901451, -0.14310401678085327, 0.1505412459373474, -0.2789248824119568, 0.1321709156036377, -0.4200149476528168, -0.10315237194299698, 0.07676197588443756, 0.057116664946079254, -0.08841851353645325, -0.45285356044769287, 0.07614685595035553, -0.325698584318161, -0.006574776954948902, 0.25914594531059265, -0.00012003634765278548, -0.12074796110391617, 0.4130157232284546, -0.04033106565475464, -0.2655784487724304, -0.24955396354198456, -0.4358331859111786, 0.03188931196928024, 0.33162373304367065, -0.042490411549806595, 0.18057358264923096, -0.06374670565128326, 0.023802421987056732, -0.5875159502029419, 0.20610827207565308, 0.5833628177642822, 0.17648304998874664, 0.21741485595703125, -0.06840848922729492, 0.1302618533372879, 0.29421281814575195, 0.05316035449504852, -0.33830952644348145, -0.08270272612571716, 0.022632841020822525, -0.12178923189640045, -0.13316547870635986, 0.3214304447174072, -0.06175089627504349, 0.05857019126415253, 0.6247362494468689, 0.09327873587608337, 0.13128292560577393, -0.31167057156562805, 0.1474962830543518, 0.14453625679016113, 0.3962811231613159, -0.08866620808839798, -0.08990990370512009, -0.017770525068044662, -0.16316354274749756, -0.3528534770011902, 0.2785191833972931, 0.18064773082733154, -0.29843634366989136, -0.0033441148698329926, 0.07484862953424454, 0.14837616682052612, -0.08723334968090057, -0.06426285207271576, -0.11870978772640228, 0.15310724079608917, 0.03931652382016182, 0.06686484068632126, -0.10409858822822571, -0.20409739017486572, -0.10837573558092117, -0.23340708017349243, -0.2524462938308716, 0.316103458404541, -0.4382789134979248, 0.03797229379415512, -0.05144225060939789, -0.13796290755271912, -0.14761550724506378, 0.06295917183160782, 0.38411515951156616, 0.09981682151556015, 0.027437537908554077, 0.07166063040494919, 0.3587137460708618, 0.36590442061424255, 0.3182045519351959, 0.1350383311510086, 0.06323649734258652, -0.22235803306102753, -0.08160005509853363, 0.017591919749975204, 0.016699638217687607, -0.03930976241827011, 0.40901094675064087, 0.009138503111898899, 0.1497367024421692, -0.33181390166282654, -0.24876844882965088, 0.05874035134911537, -0.7114661931991577, 0.23032768070697784, -0.19834347069263458, 0.09589489549398422, -0.024715665727853775, 0.5226485133171082, 0.26963579654693604, 0.3240777254104614, -0.2275398224592209, -0.10159401595592499, -0.14699910581111908, -0.13756327331066132, -0.2435154914855957, -0.04535209387540817, 0.21126915514469147, -0.07352422177791595, 0.16572269797325134, 0.02460995689034462, -0.49142831563949585, -0.2029515504837036, 0.2668691575527191, -0.32100963592529297, 0.1762520968914032, 0.06481608748435974, -0.3296072781085968, 0.4532788097858429, 0.1861167997121811, -0.39012372493743896, -0.18190497159957886, 0.10338789224624634, -0.19294768571853638, 0.09502005577087402, -0.15740562975406647, 0.12872961163520813, 0.024879246950149536, -0.14852648973464966, -0.3023640215396881, -0.03227982297539711, 0.3422366678714752, -0.11202217638492584, 0.1528179794549942, -0.2467697709798813, -0.10657213628292084, -0.250148743391037, -0.0631762370467186, 0.40901321172714233, -0.19291532039642334, 0.0867755115032196, -0.0184206310659647, 0.14051811397075653, 0.25783759355545044, 0.2855258584022522, 0.016144340857863426, 0.12157051265239716, 0.0634680762887001, 0.3946036100387573, 0.4315238893032074, -0.2790805697441101, 0.00754013005644083, 0.1328538954257965, -0.03557707369327545, -0.011856143362820148, 0.0022204741835594177, 0.10645250231027603, 0.03309103474020958, -0.22361309826374054, 0.1074816882610321, 0.199086993932724, -0.06461230665445328, 0.25109347701072693, -0.40270236134529114, -0.06630812585353851, 0.49514520168304443, -0.2019709199666977, -0.1811578869819641, -0.054759882390499115, -0.053745292127132416, 0.15148407220840454, -0.014162987470626831, -0.02881855145096779, 0.38277533650398254, 0.32884681224823, -0.1439032405614853, -0.16071824729442596, 0.10063575208187103, -0.1073828712105751, -0.4678547978401184, 0.011794012039899826, -0.1890222281217575, 0.20261122286319733, -0.08662530779838562, 0.028060920536518097, -0.34109795093536377, 0.12534868717193604, -0.10165183246135712, -0.2273104190826416, 0.14942392706871033, 0.05417398363351822, 0.16102449595928192, 0.14653509855270386, -0.12235689163208008, 0.11216117441654205, 0.01342264749109745, 0.08212603628635406, -0.46395111083984375, -0.0835915058851242, 0.0000043120235204696655, -0.2866661846637726, -0.0877610594034195, 0.2652679681777954, 0.27048301696777344, 0.11230044811964035, -0.2972469627857208, 0.2152298092842102, 0.11378905177116394, 0.278877854347229, -0.40211910009384155, 0.07179560512304306, 0.0632043406367302, -0.42975950241088867, 0.14214780926704407, 0.43532273173332214, 0.3686193823814392, -0.3424833416938782, -0.38880255818367004, -0.04157601296901703, 0.022349005565047264, 0.6803264021873474, -0.13089513778686523, 0.14410793781280518, -0.032995518296957016, -0.037343114614486694, 0.07075390219688416, -0.05491775646805763, 0.16543669998645782, 0.017986908555030823, 0.1233217716217041, 0.30982574820518494, -0.24867284297943115, 0.2911900579929352, 0.3783716559410095, 0.2824702262878418, 0.1109832301735878, 0.12216747552156448, -0.38529276847839355, -0.2181703746318817, 0.31259873509407043, 0.025050003081560135, 0.3757633864879608, -0.05269036814570427, 0.1864142119884491, -0.054167985916137695, -0.18275874853134155, -0.17576922476291656, 0.35379287600517273, -0.05842486023902893, 0.19384704530239105, 0.03641227260231972, 0.5011971592903137, -0.0158938430249691, -0.1313813030719757, 0.24980714917182922, -0.008867163211107254, 0.20772378146648407, -0.4109286367893219, 0.3374970257282257, -0.40770575404167175, -0.13143087923526764, -0.37055832147598267, -0.15277200937271118, -0.024397041648626328, -0.6165552735328674, -0.04489491879940033, -0.01837906613945961, -0.0306281466037035, 0.12242802232503891, -0.2843610942363739, -0.13166140019893646, 0.013293219730257988, -0.07765057682991028, -0.40242815017700195, -0.4299962818622589, -0.40942952036857605, -0.04794968664646149, 0.4301176071166992, 0.3920786380767822, 0.10363421589136124, 0.0321870893239975, -0.10713483393192291, -0.03624780476093292, -0.4125107228755951, 0.03437495976686478, -0.2577632665634155, 0.09031200408935547, 0.1510433852672577, 0.060903601348400116, 0.019685905426740646, -0.08685054630041122, 0.32464128732681274, 0.0006722044199705124, -0.3420941233634949, 0.39525067806243896, 0.053129643201828, 0.14244608581066132, -0.30518800020217896, -0.4616946280002594, 0.03970060870051384, -0.46554771065711975, 0.1820293366909027, 0.006348595023155212, 0.18158811330795288, 0.23612724244594574, 0.05442648008465767, 0.2801819145679474, -0.04302310198545456, 0.16916728019714355, 0.19449415802955627, 0.4796045422554016, 0.5730379819869995, -0.148282989859581, -0.36124688386917114, 0.2676404118537903, -0.13377952575683594, 0.29561057686805725, 0.17932899296283722, -0.15094220638275146, 0.31915852427482605, -0.31941232085227966, 0.15346890687942505, -0.137582927942276, -0.12629739940166473, 0.2398136556148529, 0.18344974517822266, -0.042292263358831406, -0.10745744407176971, 0.031564537435770035, 0.2597671449184418, -0.18653327226638794, 0.19254803657531738, 0.11958300322294235, 0.20338141918182373, -0.04648158699274063, 0.3153970241546631, 0.18806952238082886, -0.25868210196495056, 0.3378896415233612, -0.03515128046274185, -0.008245039731264114, -0.28940436244010925, -0.10925894230604172, -0.0871889591217041, -0.1459800899028778, 0.1523723304271698, -0.08302395045757294, 0.0713329166173935, -0.45441314578056335, -0.028706500306725502, 0.29916197061538696, -0.10596785694360733, -0.14508482813835144, 0.2503581643104553, -0.27159297466278076, 0.2326233983039856, 0.07304279506206512, 0.15341877937316895, -0.118983194231987, -0.518416702747345, 0.04418264329433441, -0.031994834542274475, 0.09283974766731262, -0.020922621712088585, -0.20190250873565674, 0.017810197547078133, -0.4196455180644989, 0.2854294776916504, 0.16831718385219574, 0.4798283278942108, -0.04797342047095299, -0.191658616065979, 0.17190316319465637, -0.15334868431091309, 0.3857499957084656, -0.2743555009365082, -0.013487748801708221, 0.362456738948822, 0.36000826954841614, -0.4810973107814789, 0.2678276002407074, -0.258038729429245, 0.262138307094574, 0.1798727810382843, 0.19627122581005096, -0.4151628613471985, -0.30158698558807373, 0.14041215181350708, 0.1914486587047577, -0.021241169422864914, 0.16336669027805328, -0.2792494297027588, -0.02344958297908306, -0.06628567725419998, -0.1777406632900238, 0.26599442958831787, 0.3581659495830536, 0.03981398046016693, -0.001397300511598587, -0.43300968408584595, 0.11331041902303696, 0.12204890698194504, 0.020940203219652176, 0.4554500877857208, -0.29696527123451233, 0.12399186193943024, -0.20001664757728577, 0.16423413157463074, -0.06789138168096542, 0.34366998076438904, -0.06636147201061249, -0.09572009742259979, 0.3054826855659485, -0.12876833975315094, 0.3905346393585205, 0.33944171667099, -0.026474080979824066, 0.3637791872024536, -0.17648406326770782, -0.15365436673164368, -0.24443650245666504, -0.025316111743450165, 0.14096981287002563, -0.08740144968032837, 0.10841017216444016, -0.1961812973022461, 0.5411812663078308, 0.300712525844574, -0.03165416046977043, 0.44397667050361633, 0.18964162468910217, -0.3277939558029175, 0.3507958650588989, 0.21915405988693237, 1.112839937210083, 0.118907630443573, 0.17537802457809448, 0.08425149321556091, -0.3473072052001953, 0.45130062103271484, 0.02242712676525116, 0.25419625639915466, -0.48580271005630493, 0.25739410519599915, -0.03554908186197281, -0.18759118020534515, 0.04030529409646988, 0.024344339966773987, -0.28638964891433716, 0.1932086944580078, -0.17377614974975586, 0.26287317276000977, 0.12903395295143127, 0.019911624491214752, -0.2860625684261322, -0.3354414403438568, -0.4839944839477539, 0.07514120638370514, -0.1586630940437317, -0.06433875858783722, 0.10971216857433319, -0.261479914188385, -0.49332988262176514, -0.0919075459241867, -0.12715208530426025, 0.1436118483543396, -0.24136865139007568, -0.06229066103696823, 0.25829124450683594, -0.17976734042167664, 0.2281721532344818, 0.16256049275398254, -0.048863619565963745, -0.05741975083947182, -0.18875862658023834, -0.11977730691432953, 0.20588025450706482, 0.0907302051782608, 0.1580938696861267, -0.0198704581707716, 0.14279145002365112, 0.05803094804286957, 0.09111521393060684, 0.2642858624458313, -0.4077532887458801, -0.0016337744891643524, 0.06845396757125854, 0.16407904028892517, 0.03515399992465973, -0.021139392629265785, -0.12933383882045746, 0.10254544019699097, -0.016364216804504395, -0.03418618068099022, 0.08982975780963898, 0.046981196850538254, 0.08257560431957245, 0.05820762738585472, -0.10640501976013184, -0.22666804492473602, 0.26345908641815186, 0.353193074464798, 0.05719846487045288, 0.1427275836467743, 0.7486605644226074, 0.1637580692768097, -0.1326284557580948, -0.19221457839012146, 0.08599738031625748, 0.018572723492980003, -0.7875835299491882, 0.2842773497104645, -0.2714306116104126, -0.322210431098938, 0.03584779053926468, 0.6465663313865662, -0.23184801638126373, 0.08951962739229202, -0.1663873791694641, -0.26115110516548157, -0.17477577924728394, 0.17244045436382294, -0.03713105246424675, 0.061161108314991, -0.5098105669021606, -0.1845775693655014, 0.10252352803945541, 0.13193351030349731, -0.2177729308605194, 0.00017782719805836678, -0.29474693536758423, 0.35356709361076355, -0.014866903424263, 0.1016852855682373, 0.005318035371601582, -0.17168796062469482, -0.004655478522181511, 0.4534417390823364, -0.16379645466804504, -0.14825880527496338, -0.23846174776554108, 0.15354646742343903, 0.11453510820865631, -0.11689318716526031, 0.06979827582836151, -0.021558426320552826, 0.030570292845368385, -0.2121918946504593, -0.10736954212188721, -0.2103573977947235, -0.17519153654575348, -0.01351899467408657, 0.07630718499422073, 0.26232579350471497, -0.2717629671096802, 0.12272562831640244, -0.1723664402961731, 0.07838174700737, -0.30979132652282715, 0.020728282630443573, 0.117796391248703, 0.021430104970932007, -0.1464223861694336, 0.10597620904445648, -0.16352538764476776, -0.21059280633926392, 0.3242957592010498, -0.3493186831474304, -0.20741984248161316, 0.04359714314341545, -0.1591493785381317, 0.39598149061203003, -0.1054929792881012, 0.0026341211050748825, -0.0795060470700264, 0.0834643617272377, 0.05428016185760498, 0.32216355204582214, -0.1934608370065689, -0.11521873623132706, -0.04124765843153, 0.2851095497608185, 0.1726251244544983, -0.21538886427879333, -0.02687801420688629, 0.11490251868963242, 0.028291407972574234, -0.4184589982032776, -0.08133609592914581, 0.1888808310031891, -0.04898931086063385, 0.019148457795381546, 0.2683742046356201, -0.19589708745479584, 0.02850145846605301, -0.07040493190288544, 0.43938687443733215, 0.4198612868785858, 0.40424150228500366, 0.16703391075134277, -0.024889744818210602, 0.08555011451244354, 0.054913900792598724, 0.3567959666252136, 0.3431527614593506, 0.2155419886112213, 0.25422871112823486, 0.5395467877388, -0.17617838084697723, -0.26875922083854675, -0.05656947195529938, 0.12042029201984406, -0.22145384550094604, -0.13927026093006134, -0.454898476600647, -0.15396684408187866, -0.4800416827201843, -0.20011092722415924, -0.16494084894657135, 0.1381531059741974, 0.5681524276733398, 0.22027252614498138, 0.0426485575735569, -0.5250194668769836, -0.13786697387695312, 0.10644261538982391, 0.3856298327445984, -0.17447824776172638, 0.46047061681747437, 0.0065393224358558655, -0.07063822448253632, -0.03053668513894081, 0.4228680729866028, 0.4281761646270752, 0.5327762365341187, -0.3272390365600586, -0.06885881721973419, 0.12607933580875397, -0.16419456899166107, 0.24071326851844788, 0.5911157727241516, 0.2477368861436844, 0.06603710353374481, 0.06582185626029968, -0.055958203971385956, -0.08274537324905396, -0.10225743055343628, -0.022090408951044083, 0.3411233723163605, -0.12443612515926361, 0.42147842049598694, -0.27773064374923706, -0.1460210233926773, -0.10044312477111816, -0.18617069721221924, -0.2864459455013275, 0.03204276040196419, 0.10367344319820404, 0.03099709376692772, 0.07790975272655487, -0.32750868797302246, 0.0678439512848854, 0.183761328458786, 0.5826791524887085, 0.22417324781417847, 0.10328617691993713, -0.3924219608306885, -0.09169942140579224, -0.7618367671966553, 0.17532774806022644, -0.24168339371681213, -0.21087686717510223, 0.10276126861572266, 0.30207177996635437, 0.08311424404382706, 0.3048591613769531, -0.04290980100631714, 0.2784474194049835, 0.2520655393600464, 0.2867039740085602, -0.3826509714126587, -0.19707749783992767, 0.34452754259109497, -0.28109556436538696, -0.052883729338645935, -0.5603257417678833, 0.23074789345264435, 0.01634930446743965, 0.05876728892326355, 0.03245626389980316, -0.21475042402744293, 0.18569029867649078, 0.444722443819046, 0.20759890973567963, 0.18357287347316742, 0.17585735023021698, 0.2728561460971832, -0.43202754855155945, -0.35022497177124023, -0.2179301232099533, -0.19331403076648712, 0.0342111811041832, 0.03560362011194229, 0.4834500253200531, -0.16845645010471344, 0.035752203315496445, -0.27571341395378113, 0.1209481731057167, -0.135547935962677, 0.1336917132139206, -0.2686522305011749, 0.18321847915649414, -0.41397666931152344, 0.19967935979366302, 0.22928158938884735, 0.022406160831451416, 0.12845245003700256, 0.14924851059913635, -0.429778516292572, -0.49896299839019775, 0.25693732500076294, -0.4704401195049286, -0.32642418146133423, 0.28185150027275085, 0.14563824236392975, 0.35117819905281067, -0.060560427606105804, -0.7402793765068054, -0.25568240880966187, 0.2354608178138733, -0.12984555959701538, 0.017963435500860214, -0.04342951998114586, -0.04658252000808716, 0.026109319180250168, -0.2346627414226532, 0.23958666622638702, 0.0006644818931818008, 0.14029842615127563, 0.03313225135207176, -0.25771456956863403 ]
https://github.com/huggingface/datasets/issues/211
[Arrow writer, Trivia_qa] Could not convert TagMe with type str: converting to null type
Good point, I think the schema should be infered at the writing stage where we have a `writer_batch_size` number of examples (typically 10k) so it's even less likely to run into this scenario.
Running the following code ``` import nlp ds = nlp.load_dataset("trivia_qa", "rc", split="validation[:1%]") # this might take 2.3 min to download but it's cached afterwards... ds.map(lambda x: x, load_from_cache_file=False) ``` triggers a `ArrowInvalid: Could not convert TagMe with type str: converting to null type` error. On the other hand if we remove a certain column of `trivia_qa` which seems responsible for the bug, it works: ``` import nlp ds = nlp.load_dataset("trivia_qa", "rc", split="validation[:1%]") # this might take 2.3 min to download but it's cached afterwards... ds.map(lambda x: x, remove_columns=["entity_pages"], load_from_cache_file=False) ``` . Seems quite hard to debug what's going on here... @lhoestq @thomwolf - do you have a good first guess what the problem could be? **Note** BTW: I think this could be a good test to check that the datasets work correctly: Take a tiny portion of the dataset and check that it can be written correctly.
33
[Arrow writer, Trivia_qa] Could not convert TagMe with type str: converting to null type Running the following code ``` import nlp ds = nlp.load_dataset("trivia_qa", "rc", split="validation[:1%]") # this might take 2.3 min to download but it's cached afterwards... ds.map(lambda x: x, load_from_cache_file=False) ``` triggers a `ArrowInvalid: Could not convert TagMe with type str: converting to null type` error. On the other hand if we remove a certain column of `trivia_qa` which seems responsible for the bug, it works: ``` import nlp ds = nlp.load_dataset("trivia_qa", "rc", split="validation[:1%]") # this might take 2.3 min to download but it's cached afterwards... ds.map(lambda x: x, remove_columns=["entity_pages"], load_from_cache_file=False) ``` . Seems quite hard to debug what's going on here... @lhoestq @thomwolf - do you have a good first guess what the problem could be? **Note** BTW: I think this could be a good test to check that the datasets work correctly: Take a tiny portion of the dataset and check that it can be written correctly. Good point, I think the schema should be infered at the writing stage where we have a `writer_batch_size` number of examples (typically 10k) so it's even less likely to run into this scenario.
[ -0.06821607053279877, 0.06093114614486694, 0.10538271069526672, 0.47370100021362305, 0.2520802319049835, 0.10437989979982376, 0.0982678011059761, 0.38123074173927307, 0.22328871488571167, -0.06250691413879395, 0.3270528018474579, 0.4799825847148895, -0.08507689088582993, -0.022185031324625015, -0.04573924094438553, -0.1310690939426422, 0.16129428148269653, 0.3236939013004303, 0.06354155391454697, -0.1218426376581192, -0.1438351720571518, 0.08432019501924515, -0.23519432544708252, 0.07620341330766678, -0.5430989265441895, -0.16950683295726776, 0.05933623015880585, 0.10318578779697418, -0.15469643473625183, -0.444822758436203, 0.014603754505515099, -0.2505455017089844, 0.13717105984687805, 0.31009241938591003, -0.00011774220911320299, -0.13116726279258728, 0.38236403465270996, -0.045255452394485474, -0.21709275245666504, -0.15531261265277863, -0.4626961052417755, 0.06080961227416992, 0.26331019401550293, -0.06844796240329742, 0.19009849429130554, -0.002296673133969307, 0.06410699337720871, -0.49991968274116516, 0.10783148556947708, 0.5157189965248108, 0.20820806920528412, 0.279689759016037, -0.018799826502799988, 0.03328900784254074, 0.32798710465431213, 0.02105817198753357, -0.36564749479293823, 0.000563841313123703, -0.028315573930740356, -0.15549755096435547, -0.16190847754478455, 0.3987060785293579, -0.08816078305244446, 0.05234807729721069, 0.6084604263305664, 0.09695250540971756, 0.11834557354450226, -0.29125964641571045, 0.19595977663993835, 0.12539087235927582, 0.44518211483955383, -0.10498619824647903, -0.11374662071466446, -0.0039365775883197784, -0.13454784452915192, -0.39042428135871887, 0.23909518122673035, 0.19062234461307526, -0.2509998381137848, -0.0031804293394088745, 0.05959651619195938, 0.10651936382055283, -0.03581904247403145, -0.19298098981380463, -0.06625040620565414, 0.2038971483707428, 0.061590708792209625, 0.04267040267586708, -0.10467122495174408, -0.15812575817108154, -0.012559295631945133, -0.23138543963432312, -0.3124712109565735, 0.25019702315330505, -0.33636415004730225, 0.04203129559755325, 0.00923101231455803, -0.10786855965852737, -0.14334005117416382, -0.07465708255767822, 0.37275615334510803, 0.023687180131673813, 0.13817325234413147, 0.1114935651421547, 0.360256165266037, 0.3803669512271881, 0.37341779470443726, 0.1389399617910385, 0.1727738380432129, -0.25541549921035767, -0.20995935797691345, -0.018515940755605698, -0.025886554270982742, -0.02692076563835144, 0.4833746552467346, -0.018194910138845444, 0.1269233375787735, -0.3427446782588959, -0.2864164710044861, 0.037969499826431274, -0.607255220413208, 0.17981743812561035, -0.21649332344532013, 0.18091140687465668, 0.014958417974412441, 0.4404577314853668, 0.14115071296691895, 0.31975454092025757, -0.2866175174713135, -0.21293599903583527, -0.16906724870204926, -0.06719353795051575, -0.3529975414276123, -0.047406673431396484, 0.23163510859012604, 0.025345060974359512, 0.17099300026893616, 0.0457519069314003, -0.5268828868865967, -0.19392995536327362, 0.2752548158168793, -0.33649206161499023, 0.10100170969963074, 0.0979992225766182, -0.18175610899925232, 0.38011571764945984, 0.15239597856998444, -0.39502668380737305, -0.20507782697677612, 0.07577111572027206, -0.1422833800315857, -0.014657001942396164, -0.14263640344142914, 0.16258712112903595, 0.019487619400024414, -0.2284373939037323, -0.28548672795295715, -0.044170718640089035, 0.3768352270126343, -0.08247747272253036, 0.033102795481681824, -0.19425281882286072, -0.07683076709508896, -0.2546727955341339, -0.14971137046813965, 0.4914349913597107, -0.1705070436000824, 0.16371388733386993, 0.05206736549735069, 0.15883447229862213, 0.32009124755859375, 0.34647494554519653, -0.05128004401922226, 0.23605990409851074, 0.07445312291383743, 0.3285940885543823, 0.4783323407173157, -0.27671000361442566, 0.05458531528711319, 0.143868088722229, -0.04974430054426193, -0.01411964651197195, 0.0557803139090538, 0.004745947662740946, 0.1131349429488182, -0.18608173727989197, 0.11334698647260666, 0.1749223917722702, -0.10872188210487366, 0.2992885708808899, -0.44598689675331116, -0.04967792332172394, 0.39860594272613525, -0.20753464102745056, -0.0816233903169632, 0.05908733606338501, 0.010010495781898499, 0.055392757058143616, 0.017925217747688293, -0.0859193354845047, 0.3454486131668091, 0.29823577404022217, -0.12419243156909943, -0.10706965625286102, 0.08703402429819107, -0.09944076091051102, -0.44471412897109985, 0.03243130445480347, -0.15776397287845612, 0.12305037677288055, 0.05034481734037399, -0.0975475162267685, -0.29447367787361145, 0.09615037590265274, -0.038226205855607986, -0.2505195140838623, 0.15453055500984192, 0.023196469992399216, 0.17318366467952728, 0.05925006791949272, -0.20210549235343933, 0.06613371521234512, -0.015743723139166832, 0.10741560906171799, -0.35125333070755005, -0.17887374758720398, -0.044257424771785736, -0.3509330749511719, -0.039888616651296616, 0.23988410830497742, 0.23701804876327515, 0.10021140426397324, -0.25856682658195496, 0.23891863226890564, -0.0016579856164753437, 0.3618730902671814, -0.24295076727867126, 0.08757498860359192, -0.041957318782806396, -0.2605346739292145, 0.19562962651252747, 0.2751903235912323, 0.3589319586753845, -0.29758137464523315, -0.42214643955230713, -0.0065398067235946655, 0.03794585540890694, 0.5811731815338135, -0.04469997435808182, 0.1357869654893875, 0.03368068486452103, -0.07959797978401184, 0.1372738927602768, -0.10519823431968689, 0.17800724506378174, -0.07357265055179596, 0.06387779116630554, 0.3371366262435913, -0.26741454005241394, 0.31074732542037964, 0.42854446172714233, 0.2990177571773529, 0.11164873093366623, 0.05712107941508293, -0.29339736700057983, -0.1368672251701355, 0.3519335687160492, 0.13247951865196228, 0.4555581212043762, -0.01570475846529007, 0.20980577170848846, -0.0727059468626976, -0.16493429243564606, -0.2009924203157425, 0.3175550699234009, -0.1493178755044937, 0.19674503803253174, 0.0662124752998352, 0.4594132602214813, 0.02002277970314026, -0.2195429503917694, 0.21167363226413727, 0.036517463624477386, 0.21878379583358765, -0.3783159554004669, 0.28381943702697754, -0.285978764295578, -0.0772421807050705, -0.431369811296463, -0.042444150894880295, -0.04646887257695198, -0.5650830268859863, -0.03836629539728165, 0.007923997938632965, -0.09303834289312363, 0.03654469549655914, -0.3283863663673401, -0.11925522983074188, -0.12170158326625824, -0.06536535173654556, -0.2936862111091614, -0.404146671295166, -0.35029900074005127, -0.05848380923271179, 0.4213882088661194, 0.38563233613967896, 0.19977717101573944, 0.016428297385573387, -0.005452447570860386, -0.028150541707873344, -0.4237627685070038, 0.047018565237522125, -0.2218862622976303, 0.04329698532819748, 0.16059336066246033, -0.0058563947677612305, 0.051799193024635315, -0.10299515724182129, 0.3697008788585663, -0.051130808889865875, -0.251892626285553, 0.352177232503891, 0.02231471613049507, -0.037634022533893585, -0.26293888688087463, -0.40583762526512146, 0.11667249351739883, -0.5667974948883057, 0.10078803449869156, -0.04693637043237686, 0.20174574851989746, 0.17167185246944427, 0.082074835896492, 0.2255031019449234, -0.06525617092847824, 0.19515176117420197, 0.2803928554058075, 0.37839579582214355, 0.5403062105178833, -0.2259804755449295, -0.32307612895965576, 0.2950863540172577, -0.11089568585157394, 0.36081835627555847, 0.23071305453777313, -0.15201997756958008, 0.4052868187427521, -0.4103541672229767, 0.17004787921905518, -0.08374319970607758, -0.11723317205905914, 0.31236761808395386, 0.1904550939798355, -0.06837359070777893, -0.09682323038578033, 0.017994511872529984, 0.21361671388149261, -0.20148375630378723, 0.1650693267583847, 0.008489998057484627, 0.19980454444885254, -0.10333241522312164, 0.3400716185569763, 0.12449973821640015, -0.1656528115272522, 0.3614373207092285, 0.011599589139223099, 0.012080218642950058, -0.25102850794792175, -0.1440342515707016, 0.01997251808643341, -0.2148677408695221, 0.06162188947200775, -0.0479256808757782, 0.05654413625597954, -0.47133034467697144, -0.034646015614271164, 0.23681223392486572, -0.14764021337032318, -0.16390953958034515, 0.3225659132003784, -0.3387582004070282, 0.28037089109420776, 0.0947590172290802, 0.13657456636428833, -0.11946524679660797, -0.4064588248729706, 0.023601308465003967, -0.058512017130851746, 0.1087666004896164, -0.01641429401934147, -0.2646562457084656, 0.002610078314319253, -0.5347055792808533, 0.24957777559757233, 0.05217359960079193, 0.3960878252983093, -0.04335798695683479, -0.18558353185653687, 0.18215185403823853, -0.22928567230701447, 0.40755295753479004, -0.31268805265426636, 0.0187741219997406, 0.2859613597393036, 0.2986103594303131, -0.4982849955558777, 0.1848805844783783, -0.2240576446056366, 0.33020925521850586, 0.22574816644191742, 0.18554338812828064, -0.37205299735069275, -0.32857373356819153, 0.22981853783130646, 0.04473922401666641, -0.0006506182253360748, 0.10367903113365173, -0.3524670898914337, -0.05329151079058647, -0.06974057108163834, -0.14215737581253052, 0.2665814459323883, 0.3564808666706085, -0.07092637568712234, 0.007949918508529663, -0.4361249804496765, 0.15831905603408813, 0.15794959664344788, 0.13093827664852142, 0.38802942633628845, -0.339895099401474, 0.12485499680042267, -0.1658344566822052, 0.19165819883346558, -0.04550047963857651, 0.428833931684494, -0.2038113921880722, -0.19006240367889404, 0.3096035122871399, -0.1745513379573822, 0.48623013496398926, 0.379023015499115, 0.04215080663561821, 0.3114558160305023, -0.26374146342277527, -0.17829711735248566, -0.27737149596214294, -0.04351415857672691, 0.13077512383460999, -0.0889105424284935, 0.09123048186302185, -0.23243632912635803, 0.5531400442123413, 0.3016221225261688, -0.0555478036403656, 0.4027082622051239, 0.18882077932357788, -0.3564833402633667, 0.46582674980163574, 0.2532046139240265, 1.118698239326477, 0.10575832426548004, 0.2223716378211975, 0.02540399692952633, -0.40893834829330444, 0.3530547320842743, -0.03306610882282257, 0.27251744270324707, -0.4955556094646454, 0.22722476720809937, 0.027788685634732246, -0.1229369044303894, 0.07964377105236053, 0.052832119166851044, -0.27910754084587097, 0.15774793922901154, -0.19735077023506165, 0.33612996339797974, 0.07588733732700348, 0.12650956213474274, -0.4026106894016266, -0.34524816274642944, -0.48598992824554443, 0.082687146961689, -0.08391588926315308, -0.08008527755737305, 0.0268063023686409, -0.2240917980670929, -0.40694841742515564, -0.13697290420532227, -0.1386089026927948, 0.13444185256958008, -0.158003032207489, -0.1193537563085556, 0.25689035654067993, -0.15448158979415894, 0.19842244684696198, 0.22811496257781982, 0.044915821403265, -0.05061231926083565, -0.16760984063148499, -0.014997564256191254, 0.27013635635375977, 0.11929114162921906, 0.1429571956396103, -0.027162451297044754, 0.07144715636968613, 0.042307354509830475, 0.08588593453168869, 0.23091229796409607, -0.410056471824646, 0.011083774268627167, -0.12113752961158752, 0.20614629983901978, -0.02342325448989868, -0.1338868886232376, -0.08782494068145752, 0.11561554670333862, -0.034163955599069595, -0.08314423263072968, 0.11682300269603729, 0.029670681804418564, 0.11227294057607651, 0.09993939846754074, -0.15056641399860382, -0.2468959242105484, 0.22061596810817719, 0.3188541531562805, 0.05648983269929886, 0.23681765794754028, 0.674546480178833, 0.08035604655742645, -0.14073994755744934, -0.2325722575187683, 0.048074305057525635, 0.051205117255449295, -0.7669647336006165, 0.3388829529285431, -0.26796671748161316, -0.40249472856521606, 0.13678449392318726, 0.5917769074440002, -0.1855551153421402, 0.013740729540586472, -0.09446480870246887, -0.2665625810623169, -0.09995289146900177, 0.19291767477989197, 0.03185822069644928, 0.07356464117765427, -0.47675418853759766, -0.12634210288524628, 0.07701312005519867, 0.22448034584522247, -0.26808518171310425, -0.04891297221183777, -0.23274043202400208, 0.37962907552719116, 0.01447011437267065, 0.0802755355834961, -0.029821889474987984, -0.15083584189414978, -0.006759447976946831, 0.4313048720359802, -0.1437535136938095, -0.15116280317306519, -0.2718142867088318, 0.13702794909477234, 0.07310262322425842, -0.024839820340275764, 0.15791766345500946, 0.029814645648002625, -0.012405216693878174, -0.2556416094303131, -0.001975899562239647, -0.18603694438934326, -0.2229130119085312, -0.028439443558454514, 0.058520544320344925, 0.28256911039352417, -0.2086721509695053, 0.12727832794189453, -0.18776750564575195, 0.07987650483846664, -0.3394129276275635, 0.07165104895830154, 0.07958415895700455, 0.015730708837509155, 0.03195750713348389, 0.09081019461154938, -0.1425258219242096, -0.07515643537044525, 0.3140850365161896, -0.3454214334487915, -0.10453900694847107, 0.11357174068689346, -0.11710682511329651, 0.39872127771377563, -0.08429999649524689, 0.014219122007489204, -0.02621470019221306, 0.13289308547973633, 0.07714106142520905, 0.2576909065246582, -0.2710586190223694, -0.12639246881008148, -0.05107761174440384, 0.3045222759246826, 0.17767731845378876, -0.21350999176502228, -0.04058535397052765, 0.1284639537334442, 0.054262854158878326, -0.39167672395706177, -0.1485806554555893, 0.08976983278989792, -0.09947697073221207, 0.007057994604110718, 0.33671191334724426, -0.11197733879089355, 0.02153928577899933, 0.08279450982809067, 0.49896669387817383, 0.45822054147720337, 0.39912107586860657, 0.16864831745624542, -0.11092982441186905, -0.0017287693917751312, 0.021545475348830223, 0.31710463762283325, 0.31534796953201294, 0.3045442998409271, 0.1548912674188614, 0.5104089975357056, -0.3058185279369354, -0.26720649003982544, -0.09200501441955566, 0.06214446574449539, -0.2543640434741974, -0.14574818313121796, -0.5064585208892822, -0.1419045329093933, -0.4231632649898529, -0.10091537237167358, -0.18652190268039703, 0.26608848571777344, 0.5050704479217529, 0.17831474542617798, 0.0029864609241485596, -0.5828499794006348, -0.05613250285387039, 0.031109556555747986, 0.3965826630592346, -0.24684038758277893, 0.5015380382537842, -0.03485232591629028, -0.09850342571735382, -0.09822660684585571, 0.5166693925857544, 0.4602741301059723, 0.658098042011261, -0.2757396697998047, -0.0701606273651123, 0.07553248852491379, -0.13385088741779327, 0.15214838087558746, 0.5606756210327148, 0.3276120722293854, 0.15973220765590668, 0.11919431388378143, -0.034418754279613495, -0.0946335420012474, -0.1187489926815033, -0.03437400981783867, 0.26780444383621216, -0.09244698286056519, 0.3559322953224182, -0.15395502746105194, -0.24337100982666016, -0.08671547472476959, -0.15515711903572083, -0.2883935868740082, -0.05635616183280945, 0.13199535012245178, -0.07147840410470963, 0.05464499443769455, -0.4272516965866089, 0.07915184646844864, 0.20936934649944305, 0.6322178840637207, 0.23785848915576935, 0.1609145998954773, -0.45841115713119507, -0.07986682653427124, -0.7588369846343994, 0.14081835746765137, -0.39341598749160767, -0.1612670123577118, 0.0268491730093956, 0.35101747512817383, -0.014346525073051453, 0.22938172519207, -0.0559106320142746, 0.32126280665397644, 0.17825910449028015, 0.29825809597969055, -0.3454146683216095, -0.17916692793369293, 0.22054940462112427, -0.3443710505962372, -0.049058981239795685, -0.6017599105834961, 0.3270033895969391, 0.0500853955745697, 0.08173496276140213, -0.007282761856913567, -0.22223246097564697, 0.33629363775253296, 0.288227915763855, 0.3257752060890198, 0.16702646017074585, 0.2884243428707123, 0.19261887669563293, -0.4587063789367676, -0.3980754613876343, -0.19980370998382568, -0.3066638708114624, -0.09984145313501358, 0.13190865516662598, 0.46908363699913025, -0.17963780462741852, 0.11805962026119232, -0.2406577318906784, 0.25994089245796204, -0.10598060488700867, 0.1154155358672142, -0.15053343772888184, 0.13514116406440735, -0.32362622022628784, 0.11830665916204453, 0.261265367269516, 0.16057102382183075, 0.13314560055732727, 0.12775260210037231, -0.4737322926521301, -0.44358330965042114, 0.28088879585266113, -0.3823680877685547, -0.3833838403224945, 0.2526191473007202, 0.22172537446022034, 0.39790090918540955, -0.09128400683403015, -0.7310706973075867, -0.3031187653541565, 0.1360623687505722, -0.08944400399923325, 0.004416797310113907, 0.06323625147342682, 0.0770341157913208, -0.07732498645782471, -0.2166135460138321, 0.28396767377853394, -0.05523011088371277, 0.026483027264475822, 0.054151687771081924, -0.25348347425460815 ]
https://github.com/huggingface/datasets/issues/207
Remove test set from NLP viewer
Appears that [two thirds of those polled on Twitter](https://twitter.com/srush_nlp/status/1265734497632477185) are in favor of _some_ mechanism for averting eyeballs from the test data.
While the new [NLP viewer](https://huggingface.co/nlp/viewer/) is a great tool, I think it would be best to outright remove the option of looking at the test sets. At the very least, a warning should be displayed to users before showing the test set. Newcomers to the field might not be aware of best practices, and small things like this can help increase awareness.
22
Remove test set from NLP viewer While the new [NLP viewer](https://huggingface.co/nlp/viewer/) is a great tool, I think it would be best to outright remove the option of looking at the test sets. At the very least, a warning should be displayed to users before showing the test set. Newcomers to the field might not be aware of best practices, and small things like this can help increase awareness. Appears that [two thirds of those polled on Twitter](https://twitter.com/srush_nlp/status/1265734497632477185) are in favor of _some_ mechanism for averting eyeballs from the test data.
[ -0.13736343383789062, 0.17048263549804688, -0.19007153809070587, -0.2922053933143616, -0.17911416292190552, 0.04491637647151947, 0.2525578439235687, 0.5567142963409424, 0.0552690289914608, 0.05124489217996597, 0.014377198182046413, 0.17538660764694214, -0.3614475727081299, 0.08514589816331863, 0.07604803889989853, 0.1644967943429947, -0.30261027812957764, 0.5070194602012634, -0.13109774887561798, 0.1275264024734497, -0.22304971516132355, -0.20796160399913788, 0.00013390183448791504, 0.24395669996738434, 0.1862293779850006, -0.3947821855545044, 0.18797430396080017, -0.1656562089920044, -0.019231775775551796, -0.5875658988952637, -0.10718894004821777, 0.20037756860256195, -0.17094095051288605, -0.11505249887704849, -0.00009701008821139112, 0.04294387251138687, 0.16814827919006348, 0.12773188948631287, -0.28905072808265686, 0.10696470737457275, -0.12031282484531403, -0.05883082002401352, 0.27865827083587646, -0.1375909298658371, -0.08296416699886322, -0.22412900626659393, 0.14215466380119324, -0.22430966794490814, 0.10305371880531311, 0.352473646402359, 0.3387937545776367, 0.3524857759475708, -0.3085242211818695, 0.43407297134399414, 0.13730141520500183, -0.011704899370670319, -0.2752702534198761, 0.04518900811672211, 0.033011458814144135, 0.01570163294672966, -0.3985556662082672, 0.5405017733573914, -0.06409777700901031, -0.007953207939863205, -0.03828684985637665, -0.17734366655349731, 0.3933626413345337, -0.26945027709007263, -0.30618688464164734, 0.08690283447504044, 0.1984514594078064, -0.1947709023952484, -0.06235086917877197, -0.4192019999027252, 0.23830948770046234, 0.04672997444868088, 0.09231424331665039, 0.2671627104282379, -0.05867660418152809, 0.2318631261587143, -0.552765965461731, -0.4114423394203186, -0.11093488335609436, 0.08389513939619064, 0.14198176562786102, -0.10454538464546204, 0.0836367979645729, -0.05657729506492615, 0.35432323813438416, -0.08692139387130737, 0.17274460196495056, -0.05581114441156387, -0.2580599784851074, 0.014444980770349503, -0.005055036395788193, -0.5017731189727783, 0.09996394068002701, -0.019056856632232666, -0.0335981585085392, 0.2049788385629654, 0.08029257506132126, 0.10392990708351135, -0.20463977754116058, 0.06354304403066635, 0.10912445187568665, 0.12340106070041656, 0.35100463032722473, 0.06238716095685959, 0.25975388288497925, 0.24740161001682281, 0.2432096004486084, 0.30436384677886963, 0.3376292884349823, -0.2518725097179413, -0.27521735429763794, 0.12666209042072296, 0.35402911901474, -0.23466245830059052, -0.34609270095825195, 0.0034454669803380966, -0.5296174883842468, 0.014235150068998337, 0.01448021549731493, 0.1092812567949295, -0.0006176705937832594, 0.12058724462985992, 0.03531147539615631, 0.031737957149744034, -0.3619568347930908, -0.3578196167945862, -0.05442338436841965, 0.10798387229442596, -0.0906825140118599, 0.11934133619070053, 0.405703604221344, 0.043408237397670746, 0.16046129167079926, -0.034202247858047485, 0.09332378953695297, 0.04058997333049774, 0.3698311150074005, 0.024624735116958618, 0.3463376462459564, -0.05756787583231926, -0.11737988889217377, -0.2100871205329895, -0.21587111055850983, -0.14201441407203674, -0.18773400783538818, 0.15288516879081726, 0.0935431644320488, -0.20848335325717926, 0.052669309079647064, 0.3505091369152069, -0.43956679105758667, -0.014218095690011978, 0.09178148210048676, 0.23471486568450928, -0.32133007049560547, -0.04506213963031769, 0.14012670516967773, -0.17458851635456085, -0.1345762312412262, 0.07386008650064468, -0.17334602773189545, 0.29054275155067444, -0.09705226123332977, -0.08341516554355621, -0.039976924657821655, -0.09570519626140594, -0.20757612586021423, -0.024172179400920868, -0.4004932940006256, 0.17513050138950348, -0.2039685994386673, -0.06718993186950684, 0.36196839809417725, -0.21314755082130432, -0.10236665606498718, 0.20034795999526978, -0.23160795867443085, 0.01695985533297062, -0.14347752928733826, 0.07153710722923279, -0.1622181087732315, -0.4502270221710205, -0.4792477786540985, 0.071637362241745, 0.0601605549454689, 0.1433710753917694, -0.4493589699268341, -0.42560943961143494, 0.49176424741744995, 0.04578403756022453, -0.05306439474225044, -0.1359758973121643, -0.1581975817680359, 0.2587844431400299, 0.4374869763851166, 0.028908025473356247, -0.039322882890701294, -0.23834086954593658, 0.20831432938575745, -0.32658952474594116, -0.2815675139427185, 0.007924363017082214, -0.1326744258403778, -0.1672872006893158, -0.08347097039222717, 0.1869809478521347, 0.420723557472229, -0.2829238474369049, -0.09006614238023758, -0.09678642451763153, -0.15172328054904938, -0.09776104986667633, 0.2900046706199646, -0.14136992394924164, -0.09831634163856506, 0.13745462894439697, 0.09653125703334808, -0.15791717171669006, -0.1721678376197815, 0.03815484791994095, 0.02072010189294815, -0.17654529213905334, -0.053053975105285645, 0.10111173987388611, 0.31183305382728577, 0.30264803767204285, 0.07121865451335907, 0.0607297420501709, 0.07649926096200943, 0.17240789532661438, 0.06634152680635452, 0.10490583628416061, 0.23246613144874573, 0.27824148535728455, 0.07447263598442078, -0.4416608214378357, -0.01435101218521595, 0.13553418219089508, -0.15129214525222778, 0.23665392398834229, -0.3167857825756073, 0.25637197494506836, 0.16144408285617828, -0.07265783101320267, 0.0031080953776836395, -0.02950369007885456, 0.04893182963132858, -0.3398028016090393, -0.13817588984966278, -0.3378736674785614, -0.0264727883040905, 0.22689394652843475, -0.18623092770576477, 0.23691916465759277, -0.3378421366214752, 0.1711694598197937, 0.09643399715423584, -0.015974052250385284, -0.02608753740787506, 0.10548371076583862, 0.20493513345718384, -0.3523617386817932, 0.23605802655220032, 0.07625624537467957, 0.10919374227523804, 0.3495017886161804, 0.2247241586446762, 0.1718703955411911, -0.21009571850299835, -0.2726422846317291, 0.3151495158672333, 0.3302743434906006, 0.2265135496854782, -0.024842649698257446, 0.24631263315677643, -0.16664555668830872, -0.2424006462097168, 0.07095262408256531, -0.10728858411312103, -0.050605617463588715, -0.37377092242240906, 0.024834787473082542, -0.1493525505065918, -0.5540047287940979, -0.16929617524147034, 0.1952504813671112, -0.09234815835952759, -0.2506905496120453, 0.5380777716636658, -0.02828453853726387, -0.36748749017715454, 0.22021828591823578, -0.29027336835861206, 0.6584699153900146, -0.20973855257034302, 0.22307716310024261, -0.06582261621952057, -0.02081642858684063, -0.3691449463367462, 0.3089107275009155, 0.17983661592006683, 0.06083392724394798, 0.5227049589157104, 0.10138271003961563, -0.1756848245859146, -0.17620225250720978, -0.27201011776924133, 0.0865090936422348, -0.0329693928360939, 0.3253638446331024, -0.001253664493560791, -0.16571058332920074, -0.04760964587330818, -0.14837370812892914, -0.4186190068721771, -0.22404421865940094, -0.00045870430767536163, -0.15232442319393158, 0.14577995240688324, 0.38489609956741333, -0.24102403223514557, -0.4645639955997467, 0.00171760655939579, -0.21992269158363342, 0.020160336047410965, -0.014971086755394936, 0.20743216574192047, 0.20418433845043182, -0.2656362056732178, 0.005003630183637142, -0.14018681645393372, -0.05355417728424072, -0.11937110871076584, 0.044501785188913345, 0.012334391474723816, -0.2702019512653351, -0.2807666063308716, 0.01924639567732811, -0.2571008801460266, 0.146360844373703, -0.17370173335075378, -0.6786445379257202, -0.32688581943511963, 0.1829378604888916, -0.09719066321849823, -0.04581747204065323, -0.5455363988876343, -0.11407440900802612, 0.17513538897037506, -0.2621874213218689, 0.12555110454559326, 0.08653397858142853, 0.2562338709831238, 0.005403907969594002, 0.14535966515541077, -0.10717719048261642, -0.10614823549985886, 0.2679669260978699, 0.1563168466091156, 0.2747746407985687, 0.1175215095281601, -0.007231801748275757, 0.08923885226249695, 0.2606089115142822, -0.008756250143051147, -0.03511364012956619, 0.046268437057733536, 0.12895305454730988, 0.015698950737714767, 0.3321424126625061, -0.11922267824411392, -0.3133614659309387, 0.051886774599552155, 0.08164599537849426, -0.2134503722190857, -0.40376412868499756, 0.14978042244911194, -0.4017367362976074, 0.13901276886463165, 0.12182225286960602, 0.043113090097904205, 0.06124285236001015, -0.5748981833457947, 0.058784205466508865, -0.19713030755519867, 0.22688201069831848, -0.06648259609937668, -0.20710496604442596, -0.013696621172130108, -0.27502650022506714, -0.01123046875, 0.14623203873634338, 0.3845881521701813, 0.010643426328897476, -0.23364853858947754, 0.24429170787334442, 0.16834454238414764, 0.21813803911209106, 0.061730049550533295, 0.20189160108566284, 0.1302586793899536, -0.12362945824861526, -0.3014468252658844, 0.18793049454689026, -0.2192893773317337, -0.09623348712921143, 0.15762044489383698, -0.027110837399959564, 0.029720790684223175, -0.24706539511680603, 0.3698942959308624, 0.12154713273048401, -0.23160693049430847, 0.024665821343660355, -0.013284467160701752, 0.010629821568727493, -0.03718191757798195, 0.24638652801513672, -0.17013905942440033, -0.028122320771217346, -0.3634008765220642, -0.10158514976501465, -0.024529950693249702, -0.20282801985740662, 0.3764399290084839, 0.2882784903049469, -0.015914686024188995, 0.2726743519306183, 0.0973345935344696, 0.21220378577709198, 0.03915727883577347, -0.1911201924085617, 0.18984755873680115, 0.2478581964969635, 0.3424511253833771, -0.044840432703495026, -0.2092553824186325, 0.3474107086658478, 0.4122864007949829, 0.1390337347984314, 0.001396968960762024, -0.38751813769340515, 0.057236626744270325, -0.280818372964859, 0.29006335139274597, 0.07467542588710785, -0.17464783787727356, 0.05383162200450897, -0.12565793097019196, 0.2436385452747345, -0.12188348174095154, -0.36395156383514404, 0.0006388984620571136, 0.11594975739717484, -0.18264444172382355, 0.2092994749546051, 0.4568057358264923, 0.7854477763175964, 0.045312926173210144, 0.1997019648551941, 0.47228068113327026, -0.1578015238046646, 0.43638402223587036, -0.15434899926185608, 0.2508731484413147, -0.1341295689344406, 0.09534650295972824, 0.0595315620303154, -0.11783920228481293, 0.11199295520782471, 0.2078068107366562, 0.002055138349533081, 0.000636946177110076, 0.262265682220459, -0.3583506941795349, -0.11938634514808655, 0.3215344250202179, 0.046340033411979675, -0.021235018968582153, -0.30379700660705566, 0.27263832092285156, -0.16115796566009521, -0.20504213869571686, 0.10787387192249298, 0.02808622643351555, 0.30955299735069275, 0.04540618509054184, 0.18522466719150543, 0.13581493496894836, 0.11219026893377304, 0.13306382298469543, -0.13726235926151276, -0.18840190768241882, 0.39659029245376587, 0.23549364507198334, -0.17092327773571014, 0.1243634819984436, -0.08929383009672165, -0.012548066675662994, -0.16367340087890625, 0.29650068283081055, 0.21388866007328033, 0.2833035886287689, 0.31507328152656555, -0.1993122398853302, -0.17023953795433044, 0.2649153769016266, 0.19701631367206573, 0.05972376465797424, -0.0826282724738121, -0.005859352648258209, 0.21425333619117737, -0.47217729687690735, 0.03237350285053253, 0.039203621447086334, 0.11395223438739777, -0.15051227807998657, 0.28724589943885803, 0.04401324689388275, -0.03829507902264595, 0.04322865232825279, 0.3496759533882141, -0.2304551750421524, 0.10065105557441711, 0.05798124894499779, 0.09893672168254852, 0.10475906729698181, 0.4397661089897156, -0.16813907027244568, -0.24870651960372925, -0.41347748041152954, 0.2597322165966034, -0.1213967502117157, -0.27590411901474, 0.10330558568239212, 0.12412744760513306, -0.05991954356431961, -0.03658793494105339, 0.21929137408733368, -0.10416169464588165, -0.006942465901374817, -0.09856179356575012, 0.004728391766548157, 0.0028259381651878357, 0.16214367747306824, -0.13531585037708282, 0.26489540934562683, 0.23671197891235352, 0.17586497962474823, -0.07974207401275635, 0.168209508061409, -0.45865774154663086, -0.2357044816017151, -0.3629596531391144, 0.16979265213012695, -0.3387683928012848, 0.16333064436912537, 0.025976506993174553, 0.001371472142636776, 0.1311241090297699, -0.2586061358451843, -0.23900237679481506, -0.39244139194488525, -0.11555489897727966, 0.05777065455913544, -0.0145455002784729, -0.1714857816696167, 0.020736724138259888, 0.01186959445476532, 0.1092914491891861, 0.056947845965623856, -0.11095666885375977, -0.3612702190876007, 0.1871645152568817, 0.6549924612045288, -0.2263977974653244, -0.3768444359302521, 0.04805295169353485, 0.0021646469831466675, -0.33640187978744507, 0.1804557889699936, 0.19234490394592285, 0.2569882273674011, 0.07886858284473419, -0.07736151665449142, 0.09211745113134384, 0.14207762479782104, -0.0038994327187538147, 0.24301677942276, -0.2207946479320526, 0.056131668388843536, 0.016851797699928284, -0.029933204874396324, -0.025892984122037888, -0.02797364443540573, -0.3015801012516022, -0.2945788502693176, 0.29048871994018555, 0.3381890058517456, -0.3103620111942291, 0.0277292151004076, 0.32519054412841797, 0.04844823107123375, 0.07958582043647766, 0.21352946758270264, 0.08040459454059601, 0.029684513807296753, 0.2951498031616211, 0.03097641095519066, -0.00004222942516207695, -0.3247298002243042, 0.0886058509349823, 0.16464760899543762, -0.41913902759552, -0.2750464677810669, 0.12339707463979721, 0.1220628023147583, 0.1778116524219513, -0.01930546760559082, 0.19298246502876282, 0.6014683246612549, -0.042905159294605255, 0.33279362320899963, -0.029135361313819885, -0.049877531826496124, -0.06779861450195312, 0.006361842155456543, -0.17296278476715088, 0.08005919307470322, 0.3721137046813965, 0.37689274549484253, 0.22836555540561676, -0.1203610822558403, -0.06467606872320175, 0.04855995252728462, 0.017171427607536316, 0.17235656082630157, -0.2735920548439026, 0.11902832239866257, -0.09038811177015305, 0.13026107847690582, 0.07079993933439255, -0.20964033901691437, 0.10960541665554047, 0.11861181259155273, -0.1082661896944046, -0.10142267495393753, 0.17040881514549255, -0.036531850695610046, 0.2522585988044739, -0.09298394620418549, -0.19044847786426544, -0.07684780657291412, 0.3444376289844513, 0.16699542105197906, 0.369930624961853, -0.1490647941827774, -0.18440522253513336, -0.026089102029800415, -0.18871203064918518, -0.09965464472770691, -0.009150346741080284, -0.30666646361351013, 0.2665650248527527, 0.07575138658285141, 0.14168749749660492, 0.25459808111190796, 0.21736067533493042, -0.09045766294002533, 0.05999574065208435, 0.34681788086891174, -0.220267653465271, -0.2666853368282318, 0.264035165309906, 0.5363552570343018, -0.33223026990890503, -0.06163082271814346, -0.11595631390810013, 0.05984312295913696, 0.1073191836476326, 0.2752535939216614, -0.24124695360660553, 0.09731115400791168, -0.2812124192714691, 0.15977302193641663, 0.27768298983573914, 0.43047958612442017, 0.005765251815319061, 0.17219921946525574, -0.0926215797662735, -0.07269568741321564, -0.5211901664733887, 0.18362891674041748, 0.22089843451976776, -0.14337527751922607, 0.25904566049575806, -0.02672039344906807, -0.18254762887954712, 0.2621276080608368, -0.3430917263031006, 0.19634024798870087, -0.031446486711502075, -0.22313112020492554, -0.25145676732063293, 0.03563975170254707, -0.03186807036399841, 0.25194767117500305, -0.17884811758995056, -0.10400623083114624, 0.20293283462524414, -0.1882822960615158, 0.15878021717071533, 0.06955958902835846, 0.08495236933231354, 0.14256052672863007, 0.28576359152793884, 0.28124210238456726, 0.1692957729101181, 0.12046967446804047, -0.03955947980284691, 0.095966637134552, 0.0005990006029605865, -0.018906239420175552, -0.18427985906600952, -0.20551946759223938, 0.09908072650432587, 0.19717442989349365, -0.09581474214792252, 0.2707025110721588, 0.12599554657936096, 0.16754966974258423, -0.0273811724036932, 0.2204626202583313, -0.11364425718784332, 0.16477489471435547, 0.032815806567668915, 0.29282328486442566, -0.12845416367053986, 0.22897544503211975, -0.0958423912525177, -0.14297878742218018, -0.07893190532922745, -0.19231869280338287, 0.256152868270874, -0.2987464964389801, -0.04730804264545441, 0.028888437896966934, 0.37274396419525146, 0.009692266583442688, -0.311850368976593, -0.4535418152809143, -0.2849322259426117, 0.24580933153629303, -0.08283787220716476, 0.24263325333595276, 0.44049549102783203, -0.11160440742969513, -0.14189879596233368, -0.08976590633392334, 0.31003111600875854, 0.07364296913146973, 0.13642005622386932, 0.07103073596954346, -0.3468838930130005 ]
https://github.com/huggingface/datasets/issues/206
[Question] Combine 2 datasets which have the same columns
We are thinking about ways to combine datasets for T5 in #217, feel free to share your thoughts about this.
Hi, I am using ``nlp`` to load personal datasets. I created summarization datasets in multi-languages based on wikinews. I have one dataset for english and one for german (french is getting to be ready as well). I want to keep these datasets independent because they need different pre-processing (add different task-specific prefixes for T5 : *summarize:* for english and *zusammenfassen:* for german) My issue is that I want to train T5 on the combined english and german datasets to see if it improves results. So I would like to combine 2 datasets (which have the same columns) to make one and train T5 on it. I was wondering if there is a proper way to do it? I assume that it can be done by combining all examples of each dataset but maybe you have a better solution. Hoping this is clear enough, Thanks a lot 😊 Best
20
[Question] Combine 2 datasets which have the same columns Hi, I am using ``nlp`` to load personal datasets. I created summarization datasets in multi-languages based on wikinews. I have one dataset for english and one for german (french is getting to be ready as well). I want to keep these datasets independent because they need different pre-processing (add different task-specific prefixes for T5 : *summarize:* for english and *zusammenfassen:* for german) My issue is that I want to train T5 on the combined english and german datasets to see if it improves results. So I would like to combine 2 datasets (which have the same columns) to make one and train T5 on it. I was wondering if there is a proper way to do it? I assume that it can be done by combining all examples of each dataset but maybe you have a better solution. Hoping this is clear enough, Thanks a lot 😊 Best We are thinking about ways to combine datasets for T5 in #217, feel free to share your thoughts about this.
[ -0.24451398849487305, 0.0638999342918396, 0.02411099523305893, 0.36282283067703247, 0.1096220389008522, 0.43875226378440857, 0.2699876129627228, 0.3603742718696594, 0.04497898742556572, -0.1164478212594986, -0.38148069381713867, 0.12374281138181686, 0.0036278674378991127, 0.27198436856269836, 0.27131760120391846, -0.5642147064208984, 0.0580446682870388, 0.2187531292438507, -0.5200104713439941, 0.1850375086069107, 0.0075755491852760315, 0.005126355215907097, -0.1654466688632965, 0.012677349150180817, -0.20304296910762787, 0.2349442094564438, -0.3422629237174988, -0.2279391586780548, 0.0463840588927269, 0.15664589405059814, 0.30197206139564514, 0.16707958281040192, 0.21462053060531616, 0.314915269613266, -0.00011992745567113161, -0.07949577271938324, -0.01648871600627899, -0.09052330255508423, 0.14189697802066803, -0.19872896373271942, 0.09682553261518478, -0.36195048689842224, -0.06335407495498657, -0.15658192336559296, 0.08227764815092087, -0.23953130841255188, -0.23318324983119965, 0.037528835237026215, 0.268085777759552, -0.166030153632164, 0.05411151796579361, -0.18832044303417206, -0.251149445772171, 0.3409515619277954, -0.07127467542886734, -0.1605684906244278, 0.06146588176488876, -0.06943406164646149, 0.0818910151720047, -0.3195158541202545, 0.5779258012771606, 0.2133335918188095, -0.03511020541191101, -0.11987748742103577, 0.08233293890953064, 0.1424839347600937, 0.14339189231395721, -0.10950866341590881, 0.05533464625477791, 0.19000262022018433, 0.7741910219192505, -0.059649623930454254, 0.008375664241611958, -0.2915334403514862, 0.4038739502429962, -0.13154642283916473, -0.1932114064693451, 0.14304502308368683, 0.017042770981788635, 0.02549818716943264, -0.25482049584388733, -0.15632040798664093, -0.016406267881393433, 0.30231475830078125, -0.0431646928191185, 0.331581711769104, 0.1102491095662117, 0.27707913517951965, -0.06372147798538208, -0.151438370347023, 0.1660323441028595, -0.33642643690109253, 0.0009920485317707062, 0.15475761890411377, -0.30736348032951355, -0.40461939573287964, -0.33304476737976074, -0.18422922492027283, 0.2726256549358368, -0.15348771214485168, -0.15438856184482574, -0.006971415132284164, -0.10903991013765335, 0.13872379064559937, 0.30268317461013794, 0.15827253460884094, 0.1386101245880127, 0.21253810822963715, -0.18847204744815826, -0.31628361344337463, -0.36031466722488403, 0.16161024570465088, 0.0701175257563591, -0.07282987982034683, -0.12339507043361664, -0.2811373472213745, -0.05845171585679054, -0.3414457142353058, 0.14554055035114288, -0.19353196024894714, -0.27553844451904297, -0.23108263313770294, -0.10256687551736832, -0.15161049365997314, -0.01819613389670849, 0.3452566862106323, -0.14899319410324097, 0.3091173768043518, -0.10607416182756424, -0.013937189243733883, -0.025029940530657768, 0.07381514459848404, -0.17078638076782227, 0.12826985120773315, 0.09456327557563782, 0.1703300029039383, -0.13089552521705627, 0.4186181426048279, -0.18310441076755524, 0.1015593558549881, 0.32089880108833313, -0.19957402348518372, -0.07107556611299515, -0.2422419637441635, 0.31291237473487854, 0.1638181060552597, 0.16308389604091644, 0.10079742968082428, -0.3006669878959656, 0.16731733083724976, -0.17366549372673035, -0.08247546851634979, 0.015731673687696457, 0.05949970707297325, -0.08394351601600647, -0.30121946334838867, -0.12381013482809067, 0.6368829607963562, 0.23763436079025269, -0.316904217004776, -0.14158713817596436, 0.09555359929800034, -0.4641837775707245, -0.047892555594444275, 0.20856665074825287, 0.02512025088071823, -0.35011276602745056, -0.13585321605205536, 0.0010475730523467064, -0.006364449858665466, -0.050108812749385834, 0.2889215648174286, -0.2664491534233093, 0.20656660199165344, 0.09581837058067322, 0.06720869243144989, 0.6602528691291809, 0.017082978039979935, -0.21449236571788788, 0.22153368592262268, -0.15071623027324677, 0.13258816301822662, -0.10475104302167892, 0.11741244792938232, -0.37669822573661804, -0.04700370132923126, 0.18448010087013245, 0.8385103344917297, -0.2917748987674713, -0.1561029702425003, -0.06377522647380829, -0.32391536235809326, 0.33796393871307373, 0.15537385642528534, 0.1021534651517868, -0.2498815953731537, -0.14259573817253113, 0.16948112845420837, 0.1662994921207428, -0.35606649518013, 0.16821658611297607, 0.18711163103580475, -0.029125448316335678, 0.11733998358249664, -0.2276347428560257, -0.2857426404953003, -0.26597288250923157, -0.13448548316955566, 0.11240167915821075, 0.047616779804229736, 0.4460555911064148, -0.45091021060943604, 0.06634598970413208, -0.6603156924247742, -0.020744305104017258, 0.09107686579227448, -0.0005952529609203339, 0.3114057183265686, 0.10588070750236511, -0.2892325818538666, -0.17570382356643677, 0.3350968658924103, -0.05201467126607895, -0.16662968695163727, -0.15280772745609283, 0.44203075766563416, 0.038531363010406494, 0.07375162094831467, 0.009351715445518494, 0.5092477202415466, 0.048488128930330276, 0.03464531898498535, 0.14941999316215515, -0.12538093328475952, -0.5496703386306763, 0.18980038166046143, 0.18357029557228088, 0.02857382595539093, -0.15538716316223145, -0.06806936115026474, 0.3543195426464081, -0.33441978693008423, -0.005318483337759972, -0.16024243831634521, -0.07414736598730087, 0.41108238697052, -0.248981311917305, 0.36992502212524414, -0.020390931516885757, -0.11749525368213654, 0.01692456193268299, -0.15341860055923462, 0.021901575848460197, -0.101933553814888, 0.21405498683452606, -0.007762549445033073, 0.013551399111747742, 0.3495669960975647, -0.3878054916858673, 0.24616029858589172, 0.2839237153530121, 0.10369296371936798, -0.04670189321041107, -0.014282595366239548, -0.14048510789871216, -0.047391969710588455, 0.03492927923798561, 0.17373311519622803, 0.5730595588684082, 0.1965862661600113, 0.20182694494724274, 0.23324738442897797, -0.15427328646183014, 0.12579281628131866, 0.014814354479312897, 0.1872754544019699, 0.06608542054891586, 0.30791205167770386, 0.09058155864477158, 0.22131648659706116, 0.18970990180969238, 0.39874422550201416, 0.20331674814224243, -0.09153196215629578, -0.19266964495182037, -0.005748378112912178, -0.2850169539451599, -0.6398730874061584, -0.5628807544708252, -0.1282138228416443, -0.22112104296684265, -0.0530705451965332, -0.09376545250415802, -0.005285121500492096, 0.008729219436645508, 0.18447567522525787, -0.11454129219055176, 0.4212614893913269, -0.47502145171165466, -0.2778403162956238, 0.27876150608062744, 0.041623469442129135, -0.18180090188980103, 0.07090505957603455, 0.4079388976097107, 0.21213585138320923, 0.2545475363731384, -0.05741851031780243, -0.2327977865934372, -0.06010563671588898, -0.5316920876502991, 0.05019482225179672, -0.3654114007949829, -0.1488937884569168, -0.2518879175186157, -0.10150101780891418, -0.21497680246829987, -0.3766777813434601, 0.05155905708670616, 0.31181782484054565, 0.052741363644599915, -0.1287003755569458, 0.05726425722241402, 0.2869415283203125, -0.1050100177526474, -0.2945314347743988, -0.4214812219142914, -0.05987584590911865, 0.04238312691450119, -0.16191186010837555, -0.0208192840218544, -0.3642592430114746, -0.05395529791712761, -0.03650946542620659, -0.26720699667930603, -0.011379735544323921, -0.20162327587604523, 0.0008078329265117645, 0.178779736161232, -0.13474701344966888, -0.1283460408449173, -0.08461160212755203, -0.18979690968990326, 0.29974427819252014, -0.030816160142421722, -0.10249190777540207, -0.15170401334762573, -0.13994328677654266, -0.002392582595348358, -0.1428915560245514, 0.37742215394973755, 0.17890042066574097, 0.017672022804617882, 0.14856761693954468, 0.07189658284187317, -0.22946922481060028, 0.02111545205116272, 0.09855398535728455, 0.45749837160110474, -0.19675186276435852, 0.252926766872406, -0.14573296904563904, 0.6077176928520203, 0.5213463306427002, 0.16695110499858856, 0.06605672091245651, 0.2555118501186371, 0.1424030214548111, 0.0633201077580452, -0.20977604389190674, 0.20084507763385773, 0.19462931156158447, 0.05766982585191727, 0.2699240446090698, 0.10378703474998474, -0.05335228890180588, -0.3339763283729553, 0.09006956219673157, -0.30426454544067383, -0.11738714575767517, 0.3777522146701813, -0.272574245929718, 0.11911483108997345, 0.01102697104215622, -0.46415603160858154, -0.3556421995162964, -0.13096478581428528, -0.21647541224956512, 0.1183905154466629, -0.2585563063621521, 0.13618572056293488, -0.562222957611084, -0.10364465415477753, -0.14068952202796936, 0.3238658308982849, 0.15147578716278076, 0.3083508312702179, 0.049730394035577774, 0.05504719167947769, -0.2460954338312149, -0.043820250779390335, 0.06486883014440536, -0.49241113662719727, -0.13473422825336456, 0.06497904658317566, 0.014051094651222229, -0.23107877373695374, -0.17589271068572998, 0.01737615093588829, -0.09139552712440491, -0.18299810588359833, 0.33646026253700256, -0.31847718358039856, -0.1562385857105255, 0.6944690942764282, 0.4387214779853821, -0.07578419893980026, -0.3850884735584259, 0.046434830874204636, -0.12323186546564102, -0.1433953195810318, -0.26000696420669556, -0.0475107878446579, 0.16320361196994781, -0.3689461052417755, 0.1504460722208023, 0.016411541029810905, 0.08038893342018127, 0.45044857263565063, 0.10332717001438141, 0.07213609665632248, 0.3526630699634552, 0.38764575123786926, -0.2402867078781128, -0.08153407275676727, -0.2526185214519501, 0.49755629897117615, -0.07558010518550873, -0.32271480560302734, -0.17115649580955505, -0.1438242644071579, 0.7155781984329224, -0.06854954361915588, 0.15113160014152527, 0.23169222474098206, -0.39959782361984253, -0.3615081310272217, 0.0019529256969690323, 0.20284630358219147, 0.28261351585388184, 0.32211509346961975, -0.3971281349658966, -0.4497555196285248, 0.6233006715774536, 0.41063863039016724, -0.020718835294246674, 0.2541217803955078, -0.25738006830215454, -0.1741575449705124, 0.09945560991764069, -0.10148393362760544, 0.8141262531280518, 0.021813824772834778, 0.3815937340259552, -0.000478990375995636, -0.1681196093559265, 0.7002723217010498, -0.09663422405719757, 0.019922219216823578, 0.02017269656062126, -0.14376294612884521, -0.035386163741350174, -0.030095906928181648, -0.12921717762947083, 0.37022173404693604, -0.20778580009937286, 0.3171710669994354, -0.00045165419578552246, -0.005242988467216492, 0.00359910074621439, 0.4091912508010864, 0.06669487804174423, -0.25877243280410767, -0.3931369483470917, -0.03033839911222458, -0.302725613117218, -0.0538795180618763, -0.144496351480484, 0.0714731514453888, -0.13137897849082947, 0.07047796994447708, -0.14826861023902893, 0.2999646067619324, 0.506602942943573, 0.04458436369895935, -0.4117031693458557, -0.44157081842422485, 0.2938781678676605, 0.14138107001781464, 0.35561245679855347, 0.029089972376823425, 0.029952986165881157, 0.014914533123373985, -0.3565639555454254, -0.015754351392388344, -0.11483701318502426, -0.29389652609825134, 0.25942176580429077, 0.020187679678201675, -0.2533402144908905, 0.06901305168867111, 0.4127650856971741, -0.08236601203680038, -0.2544032335281372, -0.17855150997638702, 0.33148902654647827, -0.059460777789354324, -0.5873776078224182, 0.6571652293205261, 0.1512078046798706, -0.07791927456855774, 0.010054416954517365, -0.11371646821498871, -0.2892283499240875, 0.38451626896858215, -0.2728389799594879, -0.2554665207862854, 0.06018348038196564, 0.18039074540138245, 0.30600011348724365, -0.36582666635513306, 0.4701862931251526, 0.18391886353492737, 0.2744099497795105, 0.022973552346229553, -0.06155157834291458, 0.2622479498386383, -0.07377295196056366, -0.35813191533088684, 0.10253521800041199, 0.20453377068042755, 0.11256235837936401, 0.15272991359233856, 0.16331572830677032, 0.12227454036474228, 0.20673198997974396, -0.0677797794342041, -0.3782421946525574, 0.27285584807395935, 0.2002411037683487, 0.2617895305156708, 0.25701799988746643, 0.3128034770488739, 0.06446429342031479, 0.6031778454780579, -0.16969497501850128, -0.019097907468676567, 0.136224627494812, 0.28524184226989746, 0.3465160131454468, 0.08450688421726227, -0.407069593667984, 0.014368262141942978, -0.044221170246601105, 0.0018225610256195068, 0.11410631239414215, -0.14427253603935242, -0.07686229795217514, 0.17597177624702454, 0.3449317514896393, 0.0011231449898332357, 0.06023237481713295, -0.2807410955429077, -0.011822443455457687, -0.022509116679430008, 0.06651225686073303, -0.09257760643959045, -0.0002628341317176819, 0.38064098358154297, -0.0736534595489502, 0.034038230776786804, -0.28564760088920593, 0.2642694115638733, -0.13234995305538177, -0.035678520798683167, 0.25900381803512573, 0.1017376184463501, 0.3916667699813843, -0.04448302090167999, -0.257269024848938, -0.2678638994693756, 0.2171398550271988, 0.06505487114191055, -0.3455163538455963, -0.03496968001127243, 0.04609052464365959, -0.06114362180233002, 0.15212354063987732, 0.3250303864479065, -0.10721509903669357, -0.025068581104278564, 0.23458251357078552, 0.0007480233907699585, -0.1970006227493286, 0.07210475206375122, 0.23050741851329803, -0.06402693688869476, -0.14158570766448975, 0.21958458423614502, 0.09061194956302643, 0.3772611916065216, -0.3111917972564697, -0.012798883020877838, -0.007481205277144909, -0.03604839742183685, 0.32435449957847595, 0.5464562773704529, -0.03242119774222374, -0.10312546789646149, -0.012002887204289436, 0.08090411126613617, 0.05886463820934296, -0.05017852038145065, -0.14656317234039307, -0.06746163219213486, -0.08968933671712875, -0.07963168621063232, 0.2312423288822174, -0.08268360793590546, 0.06398636102676392, 0.29144924879074097, 0.22425907850265503, 0.13219544291496277, 0.059876829385757446, 0.27598097920417786, 0.0057379757054150105, -0.46567705273628235, 0.027943158522248268, 0.4166921377182007, -0.07972204685211182, 0.002916415221989155, -0.39661410450935364, -0.003887072205543518, -0.14031361043453217, 0.2057413011789322, -0.12469980120658875, -0.33381426334381104, 0.501215398311615, 0.0929158478975296, -0.14959917962551117, -0.22758634388446808, 0.12669238448143005, 0.5161339044570923, -0.03509562462568283, -0.04846233129501343, 0.052022792398929596, 0.16546916961669922, -0.12800757586956024, 0.03769965097308159, 0.2517571747303009, 0.11086717247962952, 0.029335692524909973, 0.0011413898319005966, 0.02430260181427002, 0.14044012129306793, 0.12212370336055756, 0.10343042761087418, 0.019178181886672974, 0.08414576947689056, -0.016205143183469772, 0.27717557549476624, 0.10079734772443771, -0.0612560398876667, 0.07313282042741776, -0.12367548048496246, 0.04407607764005661, -0.5888593792915344, 0.26579657196998596, 0.31551593542099, -0.023780006915330887, -0.05252761393785477, 0.17175769805908203, -0.3293573558330536, -0.18782715499401093, 0.5251408815383911, 0.29269304871559143, -0.15609627962112427, -0.15337049961090088, 0.03533819317817688, -0.029740236699581146, 0.31862974166870117, 0.35710620880126953, 0.08333603292703629, -0.4211036264896393, -0.18525920808315277, -0.7274476885795593, 0.11188383400440216, -0.19989648461341858, -0.1187603771686554, -0.2600692808628082, 0.04048515856266022, 0.263761430978775, 0.23323623836040497, 0.06438380479812622, 0.43237584829330444, 0.141852468252182, 0.15578486025333405, -0.4341232478618622, -0.15743902325630188, 0.08547864109277725, 0.18689227104187012, 0.05970916152000427, -0.11151724308729172, 0.02423105761408806, 0.3546244502067566, -0.18669795989990234, -0.0636829286813736, 0.01978856325149536, 0.13367396593093872, -0.04021850973367691, 0.23977109789848328, 0.03683695197105408, 0.6354696750640869, -0.16606882214546204, 0.09476200491189957, 0.11244696378707886, -0.05096961185336113, -0.5395126342773438, 0.35593679547309875, -0.15957604348659515, 0.019293252378702164, -0.6011698246002197, 0.6696316003799438, 0.12462140619754791, -0.28975340723991394, -0.08932235836982727, 0.12198353558778763, -0.0539846196770668, -0.1360834538936615, 0.28729888796806335, 0.06956420093774796, 0.28958410024642944, 0.6231242418289185, 0.044806189835071564, 0.08362924307584763, -0.18011629581451416, -0.0981297716498375, 0.23890720307826996, 0.10176990181207657, -0.4384738802909851, -0.09930069744586945, -0.14744094014167786, 0.020527787506580353, -0.08745388686656952, -0.5327375531196594, -0.03613073006272316, 0.3234042525291443, -0.17692366242408752, 0.38899195194244385, 0.5019963979721069, 0.016690321266651154, 0.06571753323078156, -0.29338499903678894, -0.06997048854827881, -0.07178234308958054, -0.07720524072647095, -0.12362527847290039, -0.2613339126110077 ]
https://github.com/huggingface/datasets/issues/197
Scientific Papers only downloading Pubmed
Hi so there are indeed two configurations in the datasets as you can see [here](https://github.com/huggingface/nlp/blob/master/datasets/scientific_papers/scientific_papers.py#L81-L82). You can load either one with: ```python dataset = nlp.load_dataset('scientific_papers', 'pubmed') dataset = nlp.load_dataset('scientific_papers', 'arxiv') ``` This issues is actually related to a similar user-experience issue with GLUE. When several configurations are available and the first configuration is loaded by default (see issue #152 and #130), it seems to be unexpected for users. I think we should maybe raise a (very explicit) error when there are several configurations available and the user doesn't specify one. What do you think @lhoestq @patrickvonplaten @mariamabarham ?
Hi! I have been playing around with this module, and I am a bit confused about the `scientific_papers` dataset. I thought that it would download two separate datasets, arxiv and pubmed. But when I run the following: ``` dataset = nlp.load_dataset('scientific_papers', data_dir='.', cache_dir='.') Downloading: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 5.05k/5.05k [00:00<00:00, 2.66MB/s] Downloading: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 4.90k/4.90k [00:00<00:00, 2.42MB/s] Downloading and preparing dataset scientific_papers/pubmed (download: 4.20 GiB, generated: 2.33 GiB, total: 6.53 GiB) to ./scientific_papers/pubmed/1.1.1... Downloading: 3.62GB [00:40, 90.5MB/s] Downloading: 880MB [00:08, 101MB/s] Dataset scientific_papers downloaded and prepared to ./scientific_papers/pubmed/1.1.1. Subsequent calls will reuse this data. ``` only a pubmed folder is created. There doesn't seem to be something for arxiv. Are these two datasets merged? Or have I misunderstood something? Thanks!
98
Scientific Papers only downloading Pubmed Hi! I have been playing around with this module, and I am a bit confused about the `scientific_papers` dataset. I thought that it would download two separate datasets, arxiv and pubmed. But when I run the following: ``` dataset = nlp.load_dataset('scientific_papers', data_dir='.', cache_dir='.') Downloading: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 5.05k/5.05k [00:00<00:00, 2.66MB/s] Downloading: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 4.90k/4.90k [00:00<00:00, 2.42MB/s] Downloading and preparing dataset scientific_papers/pubmed (download: 4.20 GiB, generated: 2.33 GiB, total: 6.53 GiB) to ./scientific_papers/pubmed/1.1.1... Downloading: 3.62GB [00:40, 90.5MB/s] Downloading: 880MB [00:08, 101MB/s] Dataset scientific_papers downloaded and prepared to ./scientific_papers/pubmed/1.1.1. Subsequent calls will reuse this data. ``` only a pubmed folder is created. There doesn't seem to be something for arxiv. Are these two datasets merged? Or have I misunderstood something? Thanks! Hi so there are indeed two configurations in the datasets as you can see [here](https://github.com/huggingface/nlp/blob/master/datasets/scientific_papers/scientific_papers.py#L81-L82). You can load either one with: ```python dataset = nlp.load_dataset('scientific_papers', 'pubmed') dataset = nlp.load_dataset('scientific_papers', 'arxiv') ``` This issues is actually related to a similar user-experience issue with GLUE. When several configurations are available and the first configuration is loaded by default (see issue #152 and #130), it seems to be unexpected for users. I think we should maybe raise a (very explicit) error when there are several configurations available and the user doesn't specify one. What do you think @lhoestq @patrickvonplaten @mariamabarham ?
[ 0.3410281240940094, -0.05078277736902237, 0.049837421625852585, 0.2057838886976242, -0.012493669986724854, -0.09158319234848022, 0.13143396377563477, 0.24781395494937897, 0.07514062523841858, -0.21932370960712433, -0.16563862562179565, 0.10058107227087021, 0.06382763385772705, -0.2900846004486084, 0.2401753067970276, 0.07839710265398026, 0.09766239672899246, 0.11659549176692963, 0.1482488512992859, -0.19698067009449005, -0.1103292927145958, 0.4662145674228668, -0.11777068674564362, -0.12418794631958008, 0.026482876390218735, 0.057829007506370544, -0.25497713685035706, 0.22920379042625427, -0.17581498622894287, -0.2693142890930176, 0.22969581186771393, 0.4607449471950531, 0.010647080838680267, 0.24424847960472107, -0.00012602117203641683, -0.02663731947541237, 0.408517062664032, 0.03749188780784607, -0.07534456253051758, -0.12848259508609772, 0.1525419056415558, -0.31279513239860535, 0.3978446424007416, -0.10654174536466599, 0.04228133708238602, -0.39309120178222656, 0.17608550190925598, -0.04638899117708206, 0.17987185716629028, 0.0012880535796284676, 0.08718008548021317, 0.12423458695411682, 0.0638083815574646, 0.06727635115385056, 0.4933620095252991, 0.010115310549736023, 0.06612034887075424, 0.4198918640613556, 0.2697271704673767, -0.16339540481567383, 0.1365489661693573, 0.24459688365459442, -0.11495210975408554, 0.15639488399028778, 0.17969706654548645, 0.41946226358413696, 0.05964409559965134, -0.4671778976917267, -0.20219358801841736, 0.34553951025009155, 0.014853626489639282, 0.01301870122551918, -0.04609880596399307, -0.4677797853946686, -0.012200857512652874, 0.0002342481166124344, 0.20772811770439148, 0.4563732445240021, -0.16081537306308746, -0.0648922324180603, 0.08118117600679398, -0.2500704228878021, -0.06046275049448013, 0.5617246627807617, 0.16432148218154907, 0.04834165796637535, -0.19733859598636627, 0.3637370467185974, 0.4003928601741791, 0.16857314109802246, -0.26249775290489197, -0.28756657242774963, 0.1975402534008026, 0.18750837445259094, -0.30293363332748413, 0.008081454783678055, 0.08924112468957901, -0.06685403734445572, 0.24016201496124268, 0.3428840637207031, 0.08698317408561707, -0.04315423220396042, 0.19389508664608002, 0.12176138907670975, 0.5296933650970459, -0.06093280017375946, -0.02097386121749878, 0.18622265756130219, 0.3687576651573181, -0.016591325402259827, 0.08867746591567993, 0.0983024388551712, 0.09169578552246094, -0.02542269229888916, -0.23397685587406158, -0.5981559753417969, 0.2879769802093506, -0.2756764888763428, 0.24873170256614685, -0.02360856905579567, -0.011190485209226608, -0.05599568039178848, -0.2106599062681198, 0.004625536501407623, 0.01898757740855217, 0.22263169288635254, 0.1190299391746521, 0.2808913588523865, -0.20559197664260864, 0.2087719738483429, -0.07826872169971466, 0.0059808287769556046, -0.3656754493713379, 0.03970455378293991, 0.2711537182331085, -0.27817437052726746, 0.16724397242069244, 0.09166532009840012, -0.11322499811649323, -0.18401017785072327, 0.17918269336223602, -0.13153129816055298, 0.06672187149524689, 0.36983180046081543, 0.277812123298645, 0.508071780204773, -0.0019688643515110016, -0.2545321583747864, -0.2754875123500824, -0.06114431470632553, -0.27979812026023865, -0.16831743717193604, -0.18680967390537262, 0.029858004301786423, -0.39023661613464355, 0.16660986840724945, 0.00011818110942840576, 0.2882414162158966, 0.15523794293403625, -0.1705111861228943, -0.11550692468881607, -0.004568517208099365, -0.0851239487528801, -0.370342880487442, 0.12198669463396072, 0.3437540531158447, 0.19060124456882477, -0.10569141805171967, -0.12709079682826996, -0.10053987801074982, 0.08209938555955887, 0.31115829944610596, -0.2761954069137573, 0.14208725094795227, -0.24165363609790802, 0.23108164966106415, 0.5904169082641602, -0.2710137665271759, -0.4526689052581787, 0.3115585148334503, -0.024965345859527588, 0.0748954489827156, 0.1522301435470581, 0.27492555975914, -0.13873577117919922, -0.022561538964509964, 0.16591596603393555, 0.3668285608291626, 0.09084154665470123, -0.1462751179933548, -0.30497634410858154, -0.1942661702632904, 0.30232059955596924, -0.09074032306671143, 0.1159534752368927, 0.005938902497291565, -0.008975259959697723, 0.06970706582069397, 0.30660510063171387, 0.2294958233833313, 0.18607491254806519, 0.2463022768497467, -0.07493312656879425, -0.009010784327983856, 0.07086245715618134, -0.2000003159046173, -0.3342158794403076, 0.05639486759901047, -0.3555220067501068, 0.24316823482513428, 0.26221132278442383, -0.04236561805009842, -0.23279741406440735, -0.49318942427635193, -0.1797829270362854, -0.26830655336380005, 0.004727166146039963, 0.21896928548812866, 0.12241165339946747, 0.16072705388069153, -0.26788368821144104, 0.17435508966445923, 0.00984024815261364, 0.08806007355451584, -0.807934582233429, 0.3179456889629364, -0.017845449969172478, -0.0704510360956192, 0.06313484907150269, 0.1433010697364807, 0.0012624263763427734, -0.16912317276000977, 0.3244476318359375, 0.43658149242401123, -0.13749359548091888, 0.22820666432380676, 0.22558563947677612, 0.05751830339431763, 0.2537790536880493, -0.11084946990013123, 0.1513349860906601, -0.12579089403152466, 0.11191052198410034, -0.23113086819648743, -0.3042534589767456, 0.11682742834091187, -0.07708702981472015, 0.3747086524963379, 0.14695365726947784, -0.011495946906507015, 0.010348258540034294, -0.23012590408325195, -0.47462549805641174, -0.21605515480041504, 0.20148780941963196, 0.22801241278648376, -0.1119731217622757, 0.14593082666397095, -0.2998262047767639, 0.07807809114456177, 0.07013953477144241, 0.017231624573469162, -0.02046789973974228, 0.17367783188819885, -0.27142319083213806, -0.24409568309783936, -0.18221408128738403, 0.5162523984909058, 0.8718116283416748, 0.1978532373905182, 0.32297369837760925, 0.1088075116276741, -0.17633968591690063, -0.19697542488574982, 0.08697940409183502, 0.03373344987630844, -0.1280590444803238, 0.21403950452804565, 0.1713268905878067, -0.008642044849693775, -0.4231767952442169, 0.3805905878543854, 0.16046494245529175, 0.021289627999067307, -0.37637510895729065, -0.19031307101249695, -0.401238352060318, -0.30128511786460876, -0.6075859665870667, -0.1843881458044052, -0.36245661973953247, -0.3466340899467468, -0.06475551426410675, 0.13994960486888885, -0.05048731714487076, 0.024639105424284935, -0.20654058456420898, 0.155574768781662, -0.23959991335868835, 0.06841761618852615, 0.1411573737859726, 0.12482775002717972, -0.3013817369937897, -0.08074285089969635, 0.03651633486151695, 0.3887549936771393, 0.5186219215393066, 0.05468952655792236, -0.20739398896694183, -0.08984795212745667, -0.4579675793647766, 0.25336790084838867, -0.20390865206718445, 0.4136425256729126, 0.2852558493614197, 0.09833753854036331, 0.3634144067764282, -0.08333928883075714, 0.28173118829727173, -0.14543619751930237, 0.030421121045947075, 0.008215587586164474, 0.08342527598142624, -0.02024758607149124, -0.2850773334503174, -0.5693512558937073, -0.30609142780303955, -0.25299519300460815, -0.11007146537303925, -0.05502335727214813, 0.12144778668880463, 0.2450503706932068, -0.08112390339374542, 0.12399709224700928, -0.464857280254364, -0.04552517086267471, -0.36400437355041504, -0.08933520317077637, 0.24169188737869263, -0.22708235681056976, -0.4088027775287628, -0.04336319491267204, -0.02477412112057209, -0.09826178848743439, 0.1594511866569519, -0.3808138370513916, -0.4189063608646393, -0.21503783762454987, -0.5069791674613953, 0.17532072961330414, 0.41701313853263855, 0.301641583442688, -0.33650580048561096, -0.10329852253198624, -0.08495727926492691, -0.16373087465763092, 0.18865859508514404, 0.21752354502677917, 0.3610689640045166, 0.2080637812614441, -0.09732400625944138, -0.015406716614961624, 0.5112136006355286, 0.4535945951938629, 0.18884357810020447, 0.25888141989707947, -0.03059130348265171, 0.6296031475067139, 0.08015455305576324, -0.3526649475097656, 0.0025886509101837873, -0.02350158989429474, 0.2995645999908447, 0.32156431674957275, 0.2464166283607483, -0.17453691363334656, -0.09905493259429932, 0.14814524352550507, -0.35031580924987793, -0.3976815342903137, 0.22064262628555298, -0.11810289323329926, 0.033484842628240585, 0.2116401642560959, -0.37359607219696045, 0.056720372289419174, -0.05050157010555267, -0.3560997247695923, 0.3902484178543091, -0.13153064250946045, 0.12844479084014893, -0.5994895100593567, 0.11785178631544113, -0.43639683723449707, 0.1391756236553192, -0.1223892942070961, 0.1642436385154724, 0.11637738347053528, -0.06740369647741318, 0.39220017194747925, 0.02802731655538082, 0.5079413652420044, -0.13392269611358643, -0.2179354578256607, 0.18318814039230347, -0.09627897292375565, -0.8417410254478455, -0.16880542039871216, -0.07770399749279022, -0.11526913195848465, 0.2761750817298889, 0.30282503366470337, -0.5176622867584229, -0.2508136034011841, 0.2035357803106308, 0.14813604950904846, -0.1721862554550171, -0.24935084581375122, -0.26382654905319214, -0.44855770468711853, -0.3102760910987854, -0.3914095163345337, -0.12274357676506042, -0.05234134942293167, -0.11759007722139359, -0.1287958025932312, 0.1574457436800003, -0.1702955663204193, 0.14247293770313263, -0.1609000563621521, 0.26104772090911865, -0.020966218784451485, 0.03182678297162056, 0.46520233154296875, 0.133673757314682, -0.5750657916069031, 0.5631842613220215, -0.1878596395254135, 0.2896810472011566, 0.13970771431922913, -0.17257243394851685, 0.3634236752986908, 0.5340479612350464, -0.06888474524021149, 0.06709086149930954, 0.0395311638712883, -0.07136192917823792, -0.11491381376981735, 0.2556443214416504, 0.5111373662948608, -0.34914907813072205, -0.13880014419555664, -0.3376767039299011, 0.5596758723258972, 0.08166486024856567, -0.4084250330924988, 0.1992586851119995, 0.266652911901474, -0.24415452778339386, 0.2821604013442993, -0.3538731336593628, 1.0832163095474243, 0.04487141966819763, 0.3187461793422699, 0.0813920646905899, -0.20796702802181244, 0.8912688493728638, -0.01984727941453457, 0.025093846023082733, -0.23868343234062195, -0.04002946987748146, 0.016051357612013817, -0.1852274239063263, 0.059064775705337524, 0.08315712958574295, -0.026411140337586403, 0.29317012429237366, 0.2207302302122116, 0.09865717589855194, -0.10229556262493134, 0.5956615805625916, 0.04097265005111694, -0.08230273425579071, -0.32925811409950256, 0.040908873081207275, -0.013093732297420502, 0.3151540160179138, 0.06848575174808502, -0.14593560993671417, -0.2229432910680771, -0.4063071012496948, -0.26716142892837524, 0.049046896398067474, 0.05897717550396919, 0.1323077380657196, 0.10286860167980194, -0.1178770661354065, -0.2950005531311035, 0.0290808267891407, -0.042393334209918976, 0.019790811464190483, -0.25581470131874084, -0.08757367730140686, 0.003971785306930542, -0.3073878288269043, -0.13085711002349854, -0.2202378362417221, 0.27061963081359863, -0.12889191508293152, -0.18283309042453766, -0.23630580306053162, 0.040532663464546204, -0.15919449925422668, -0.4621097147464752, 0.3166395127773285, 0.2644228935241699, -0.08291445672512054, -0.29635530710220337, 0.3617570698261261, 0.1117047369480133, -0.0023638978600502014, 0.029359977692365646, 0.35258573293685913, 0.07839586585760117, 0.3619927763938904, 0.13534218072891235, -0.19166693091392517, -0.0682372897863388, 0.3341461420059204, 0.5289813876152039, -0.09188339114189148, 0.2554853558540344, -0.11541952192783356, 0.051908135414123535, -0.05099838972091675, -0.16937893629074097, -0.08383117616176605, -0.3399849832057953, 0.12292995303869247, -0.012368211522698402, 0.06920969486236572, 0.13143202662467957, 0.0430523082613945, 0.09093306958675385, -0.21702665090560913, -0.10895200818777084, -0.4528345465660095, 0.06527529656887054, 0.2933409810066223, -0.17236994206905365, 0.40974047780036926, 0.04056300222873688, -0.12469851970672607, 0.2502571940422058, 0.31264030933380127, -0.16058319807052612, 0.2575591504573822, 0.0629960149526596, 0.2446405440568924, 0.6299232244491577, 0.018032385036349297, 0.08861208707094193, -0.11040471494197845, -0.082252137362957, -0.05710314214229584, -0.17737138271331787, -0.09637567400932312, -0.2691384553909302, 0.22645136713981628, 0.14458319544792175, 0.05872970074415207, 0.09794005006551743, -0.23562224209308624, 0.03194241225719452, 0.008571820333600044, 0.20746596157550812, -0.0665721669793129, -0.03942149877548218, -0.025017738342285156, -0.1616053581237793, 0.03848273679614067, 0.11174532771110535, 0.340712308883667, -0.36419492959976196, -0.0427350252866745, 0.34211692214012146, 0.008133333176374435, -0.21149607002735138, -0.09788148105144501, -0.2852179706096649, -0.03053731471300125, 0.10420645773410797, -0.04821784049272537, 0.1110074520111084, 0.006433304399251938, -0.02997560426592827, -0.18221482634544373, 0.3628308176994324, 0.5864509344100952, -0.2662343680858612, 0.08765020221471786, -0.05240888148546219, 0.024477485567331314, -0.1796998232603073, -0.03848208487033844, 0.2230919748544693, 0.26938557624816895, -0.08858208358287811, 0.26846638321876526, 0.3248120844364166, 0.025377966463565826, -0.12275752425193787, -0.01971771940588951, 0.6393305659294128, -0.19335347414016724, 0.0859200656414032, -0.24014189839363098, -0.04187856614589691, -0.11093269288539886, -0.017788363620638847, -0.03344743326306343, 0.007563844323158264, -0.09867091476917267, 0.20377278327941895, 0.20150506496429443, -0.035435087978839874, 0.052559975534677505, 0.23083505034446716, -0.18457332253456116, 0.016510294750332832, 0.7022256255149841, 0.20640501379966736, 0.30672332644462585, 0.14233776926994324, 0.7357053756713867, -0.11739107221364975, -0.050035420805215836, -0.13992103934288025, 0.5564056038856506, 0.268546462059021, -0.2376045286655426, 0.06799253821372986, -0.113694928586483, -0.1423756331205368, 0.04823823645710945, -0.04404246434569359, -0.3282146453857422, 0.27146100997924805, -0.02766040712594986, -0.19461371004581451, -0.7354899048805237, 0.16255077719688416, 0.07861103862524033, 0.10736660659313202, -0.15201373398303986, 0.18625995516777039, -0.07005411386489868, -0.05007278174161911, 0.2191653996706009, 0.5182143449783325, 0.29087749123573303, 0.3593864440917969, -0.0064821261912584305, -0.16204626858234406, 0.24868431687355042, 0.17708580195903778, -0.20949964225292206, 0.1545950323343277, 0.34004953503608704, 0.07801388204097748, 0.3201011121273041, 0.042092226445674896, -0.10348384082317352, -0.0672275573015213, 0.0774063840508461, 0.029380518943071365, -0.32071879506111145, 0.5537855625152588, -0.2837347388267517, 0.08010060340166092, -0.01782439649105072, 0.06254685670137405, -0.616965115070343, -0.1906498372554779, 0.21398411691188812, 0.005210059694945812, 0.16936826705932617, -0.46065613627433777, 0.014075692743062973, 0.17706595361232758, 0.5300930142402649, 0.04728834331035614, 0.066350057721138, -0.15457803010940552, -0.24412760138511658, -0.7898306846618652, 0.13781407475471497, -0.22904303669929504, 0.14415135979652405, -0.04818125441670418, 0.39347076416015625, 0.032874803990125656, 0.31124651432037354, -0.022220313549041748, 0.13064344227313995, -0.5399711728096008, -0.13637681305408478, -0.17598295211791992, -0.04879842326045036, -0.21684099733829498, -0.058267802000045776, 0.0051192715764045715, -0.11321894079446793, 0.10097908973693848, -0.29959994554519653, -0.07709392160177231, 0.09741420298814774, 0.07090780138969421, 0.07483263313770294, 0.054495248943567276, 0.4069504737854004, 0.23451292514801025, 0.412670761346817, -0.0002769976854324341, -0.28445595502853394, -0.531690239906311, 0.0455547571182251, -0.41695722937583923, 0.09936421364545822, 0.021548332646489143, 0.2074604332447052, -0.4415888786315918, 0.15417654812335968, -0.11783281713724136, -0.07033412903547287, 0.13117729127407074, 0.05652305483818054, 0.03648282587528229, -0.008407048881053925, 0.14452385902404785, 0.1382405012845993, 0.23347723484039307, 0.41835612058639526, -0.22531279921531677, 0.13117715716362, -0.19558179378509521, -0.2739393413066864, 0.28979185223579407, -0.36235713958740234, -0.1348869800567627, 0.12069658190011978, 0.24682053923606873, 0.07023045420646667, 0.06666934490203857, -0.6980176568031311, -0.263947993516922, 0.31078940629959106, -0.042480967938899994, -0.18357022106647491, 0.2500554919242859, -0.1316501349210739, -0.4783775508403778, -0.022704221308231354, 0.04410470649600029, 0.15658152103424072, -0.3813156485557556, 0.01163417100906372, -0.23016782104969025 ]
https://github.com/huggingface/datasets/issues/197
Scientific Papers only downloading Pubmed
Now if you don't specify which part you want, it raises an error: ``` ValueError: Config name is missing. Please pick one among the available configs: ['pubmed', 'arxiv'] Example of usage: `load_dataset('scientific_papers', 'pubmed')` ```
Hi! I have been playing around with this module, and I am a bit confused about the `scientific_papers` dataset. I thought that it would download two separate datasets, arxiv and pubmed. But when I run the following: ``` dataset = nlp.load_dataset('scientific_papers', data_dir='.', cache_dir='.') Downloading: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 5.05k/5.05k [00:00<00:00, 2.66MB/s] Downloading: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 4.90k/4.90k [00:00<00:00, 2.42MB/s] Downloading and preparing dataset scientific_papers/pubmed (download: 4.20 GiB, generated: 2.33 GiB, total: 6.53 GiB) to ./scientific_papers/pubmed/1.1.1... Downloading: 3.62GB [00:40, 90.5MB/s] Downloading: 880MB [00:08, 101MB/s] Dataset scientific_papers downloaded and prepared to ./scientific_papers/pubmed/1.1.1. Subsequent calls will reuse this data. ``` only a pubmed folder is created. There doesn't seem to be something for arxiv. Are these two datasets merged? Or have I misunderstood something? Thanks!
34
Scientific Papers only downloading Pubmed Hi! I have been playing around with this module, and I am a bit confused about the `scientific_papers` dataset. I thought that it would download two separate datasets, arxiv and pubmed. But when I run the following: ``` dataset = nlp.load_dataset('scientific_papers', data_dir='.', cache_dir='.') Downloading: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 5.05k/5.05k [00:00<00:00, 2.66MB/s] Downloading: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 4.90k/4.90k [00:00<00:00, 2.42MB/s] Downloading and preparing dataset scientific_papers/pubmed (download: 4.20 GiB, generated: 2.33 GiB, total: 6.53 GiB) to ./scientific_papers/pubmed/1.1.1... Downloading: 3.62GB [00:40, 90.5MB/s] Downloading: 880MB [00:08, 101MB/s] Dataset scientific_papers downloaded and prepared to ./scientific_papers/pubmed/1.1.1. Subsequent calls will reuse this data. ``` only a pubmed folder is created. There doesn't seem to be something for arxiv. Are these two datasets merged? Or have I misunderstood something? Thanks! Now if you don't specify which part you want, it raises an error: ``` ValueError: Config name is missing. Please pick one among the available configs: ['pubmed', 'arxiv'] Example of usage: `load_dataset('scientific_papers', 'pubmed')` ```
[ 0.33375251293182373, 0.15182599425315857, 0.04038246348500252, 0.12209048867225647, -0.011581551283597946, 0.07017656415700912, 0.10876820981502533, 0.3869030773639679, -0.1169544905424118, -0.2211579531431198, -0.12466686218976974, 0.33596858382225037, 0.04204678535461426, -0.32191339135169983, 0.3353411555290222, 0.05978941544890404, 0.17052829265594482, 0.11987850069999695, 0.2469610720872879, -0.3221694231033325, -0.15091952681541443, 0.36268073320388794, -0.20078343152999878, -0.07502932846546173, 0.1717321127653122, 0.17042210698127747, -0.13634689152240753, 0.23558473587036133, -0.28036174178123474, -0.2833779454231262, 0.3049052357673645, 0.4118286967277527, 0.12482421100139618, 0.328555703163147, -0.00012240094656590372, -0.051074787974357605, 0.3996656537055969, -0.1145329549908638, -0.12407629191875458, -0.24390475451946259, 0.02561981976032257, -0.27727845311164856, 0.3611125349998474, -0.1576252579689026, 0.10323228687047958, -0.5018041133880615, 0.22668340802192688, -0.10192857682704926, 0.002705119550228119, 0.26155564188957214, 0.12145331501960754, -0.08232880383729935, 0.13635100424289703, 0.0036476082168519497, 0.3264042139053345, 0.018631000071763992, 0.09062360227108002, 0.30791059136390686, 0.17882370948791504, 0.08364752680063248, 0.19623704254627228, 0.21780817210674286, -0.12764742970466614, 0.07411829382181168, 0.3337651193141937, 0.37732863426208496, 0.04918530955910683, -0.45332974195480347, -0.09537766128778458, 0.25129464268684387, 0.46951624751091003, -0.08259250968694687, 0.037047311663627625, -0.2068696916103363, -0.040106333792209625, -0.08870574086904526, 0.1081099659204483, 0.39001020789146423, -0.22332614660263062, -0.048256997019052505, 0.02100921981036663, -0.3863973915576935, -0.1963813155889511, 0.5864769816398621, 0.16923284530639648, 0.1530344933271408, -0.0870964527130127, 0.36386793851852417, 0.21774183213710785, 0.1375076174736023, 0.033936165273189545, -0.32258471846580505, 0.2554103434085846, 0.2819862365722656, -0.29220521450042725, -0.00790882483124733, -0.03503964841365814, -0.2091563642024994, 0.18896672129631042, 0.32612454891204834, 0.07502664625644684, -0.06704779714345932, 0.20057818293571472, 0.12096550315618515, 0.46433746814727783, -0.15208901464939117, 0.08678381145000458, 0.35399264097213745, 0.2156108021736145, -0.18660464882850647, 0.03402041271328926, 0.018245430663228035, -0.07721900194883347, 0.07174443453550339, -0.2296781837940216, -0.6142802834510803, 0.14092859625816345, -0.4055894911289215, 0.44782277941703796, -0.025239087641239166, 0.2138483226299286, -0.10629140585660934, -0.2344534993171692, 0.08172939717769623, 0.10517372936010361, 0.20921197533607483, 0.08533596247434616, 0.17645783722400665, -0.11764830350875854, 0.09517549723386765, -0.08684936165809631, 0.01650388166308403, -0.36105018854141235, -0.058157145977020264, 0.23637713491916656, -0.013214033097028732, 0.261093407869339, -0.09314678609371185, 0.07390743494033813, -0.09015871584415436, 0.24405500292778015, -0.05968085676431656, 0.14490336179733276, 0.49642640352249146, 0.3115926682949066, 0.5195350050926208, -0.00015639886260032654, -0.1992073953151703, -0.2772220969200134, 0.15920594334602356, -0.38958466053009033, -0.1244928389787674, -0.11835965514183044, 0.0739862397313118, -0.31114912033081055, -0.06145276874303818, 0.10784780979156494, 0.2107415497303009, 0.1814860999584198, -0.35827410221099854, -0.1082867905497551, 0.025629134848713875, 0.0402182973921299, -0.3753201961517334, 0.17049869894981384, 0.13123653829097748, 0.06589135527610779, -0.03890443593263626, -0.2859947383403778, -0.06429006159305573, 0.22669720649719238, 0.07826279103755951, -0.30781400203704834, 0.1558769941329956, -0.12100687623023987, 0.05395689606666565, 0.8645715713500977, -0.21998456120491028, -0.40715351700782776, 0.27943775057792664, 0.05443652719259262, -0.14355944097042084, 0.09176123887300491, 0.3109301030635834, -0.2846708595752716, 0.05149829760193825, 0.09130994975566864, 0.28850072622299194, -0.012590395286679268, -0.24612019956111908, -0.14480435848236084, -0.11279965937137604, 0.3086387515068054, -0.07593277096748352, 0.2943563163280487, 0.16808989644050598, -0.01560317724943161, 0.1497998684644699, 0.4100162386894226, 0.18755611777305603, 0.21378643810749054, 0.22659872472286224, -0.11479035019874573, -0.10925069451332092, 0.2086019665002823, -0.1760004758834839, -0.1642111837863922, 0.06642209738492966, -0.43737590312957764, 0.26424819231033325, 0.3202396035194397, 0.061560384929180145, -0.2903926968574524, -0.5201036930084229, -0.06402687728404999, -0.3106151521205902, -0.012994140386581421, 0.2909793257713318, -0.0014565028250217438, 0.0786505937576294, -0.355683833360672, 0.047446660697460175, -0.12707842886447906, 0.014778231270611286, -0.768027126789093, 0.15682895481586456, -0.0025856848806142807, -0.0141223119571805, 0.08916155993938446, -0.030355535447597504, -0.04141687601804733, -0.01818186417222023, 0.22616088390350342, 0.4155771732330322, -0.031880199909210205, 0.3567320704460144, 0.3559611439704895, -0.10024501383304596, 0.11630119383335114, -0.23534271121025085, 0.1572001576423645, -0.10833914577960968, 0.26213517785072327, -0.2087302803993225, -0.3446255326271057, 0.10563207417726517, -0.1530320942401886, 0.31543615460395813, 0.15342342853546143, -0.0027962718158960342, 0.06230352073907852, -0.12727275490760803, -0.4065901041030884, -0.14812856912612915, 0.17097927629947662, 0.27738916873931885, -0.315027117729187, 0.0903303325176239, -0.26422250270843506, 0.03734657168388367, 0.12562493979930878, 0.006544318050146103, -0.17453637719154358, 0.18298473954200745, -0.31146547198295593, -0.21895045042037964, -0.13686026632785797, 0.4669193923473358, 0.9032629132270813, 0.2567407488822937, 0.38866594433784485, 0.09151782840490341, -0.058753304183483124, -0.16813626885414124, 0.1890706717967987, 0.1316784769296646, 0.012558885850012302, 0.1673578917980194, -0.06914041191339493, -0.048745859414339066, -0.40176016092300415, 0.2793738543987274, 0.1685536503791809, 0.06223799288272858, -0.30279824137687683, -0.03771229088306427, -0.3783571720123291, -0.19744867086410522, -0.5116109251976013, -0.2571054697036743, -0.2551221549510956, -0.3293745517730713, -0.16789783537387848, 0.010061893612146378, 0.054954688996076584, 0.019709758460521698, -0.5319443345069885, 0.04522113502025604, -0.1329427808523178, -0.1507655382156372, 0.1229514479637146, -0.022947397083044052, -0.24956730008125305, 0.007365718483924866, -0.06586295366287231, 0.3898341655731201, 0.48786142468452454, -0.07025714963674545, -0.04292726516723633, 0.052867911756038666, -0.40298569202423096, 0.23029513657093048, -0.24395571649074554, 0.23640769720077515, 0.2415211945772171, 0.1290680170059204, 0.293462336063385, -0.0029643061570823193, 0.15736131370067596, -0.1802595853805542, 0.024904785677790642, -0.04032758250832558, 0.10109677910804749, -0.1088794395327568, -0.27549394965171814, -0.8172604441642761, -0.3088197708129883, -0.1809062510728836, -0.23882021009922028, 0.18941552937030792, 0.16927297413349152, 0.3574633300304413, 0.02086670696735382, 0.12806406617164612, -0.32717859745025635, 0.057698607444763184, -0.368775874376297, -0.15246790647506714, 0.4007762670516968, -0.273634672164917, -0.37948545813560486, 0.10961037874221802, 0.14097341895103455, 0.038806185126304626, 0.14969445765018463, -0.27083033323287964, -0.050130557268857956, -0.007899867370724678, -0.529198408126831, 0.1509532928466797, 0.33623090386390686, 0.29922449588775635, -0.3369196057319641, -0.11374478787183762, -0.13982757925987244, -0.06552611291408539, 0.11963112652301788, 0.2427375614643097, 0.5703091025352478, 0.1366845965385437, -0.061146363615989685, -0.1879303753376007, 0.47023487091064453, 0.33278021216392517, 0.21936601400375366, 0.1394731104373932, -0.0807742103934288, 0.5153936743736267, 0.0709882527589798, -0.2541886866092682, 0.17766237258911133, 0.03409852087497711, 0.1152195930480957, 0.4011802077293396, 0.14756083488464355, -0.3179170489311218, -0.22711966931819916, 0.02921372279524803, -0.3635050356388092, -0.2917664349079132, 0.22638508677482605, -0.16410991549491882, 0.10192359238862991, 0.2606690526008606, -0.41129791736602783, -0.10925720632076263, -0.021790578961372375, -0.4203912913799286, 0.43069249391555786, -0.15378272533416748, 0.15313124656677246, -0.6548843383789062, 0.16735532879829407, -0.44770348072052, 0.11611604690551758, -0.22420567274093628, 0.17975740134716034, 0.013182450085878372, -0.10940785706043243, 0.20083554089069366, 0.07203835248947144, 0.37853240966796875, -0.09239007532596588, -0.2777590751647949, 0.1635865718126297, 0.11103233695030212, -0.6928815841674805, -0.05451323837041855, 0.035483550280332565, 0.06715409457683563, 0.07046335190534592, 0.15606412291526794, -0.32216590642929077, -0.21822941303253174, 0.2806130051612854, 0.12941688299179077, -0.20678292214870453, -0.23308929800987244, -0.32312023639678955, -0.5719003081321716, -0.23541876673698425, -0.4505118131637573, -0.14295201003551483, -0.045315563678741455, -0.1363145411014557, -0.09380370378494263, 0.21509850025177002, -0.12031540274620056, 0.2540314793586731, -0.060865096747875214, 0.26602452993392944, -0.03785591945052147, -0.03368086740374565, 0.4772060513496399, 0.09539496898651123, -0.2791576087474823, 0.42964237928390503, -0.14281518757343292, 0.20302048325538635, 0.13304802775382996, -0.3720071315765381, 0.4784092307090759, 0.3028566837310791, -0.10998031497001648, -0.0059059858322143555, 0.19600825011730194, -0.252835214138031, -0.008956878446042538, 0.14065808057785034, 0.40210041403770447, -0.3468553125858307, -0.32030153274536133, -0.5828096866607666, 0.5492745637893677, 0.003125939518213272, -0.3688296675682068, 0.2551998496055603, -0.010727912187576294, -0.33157074451446533, 0.2326081246137619, -0.22382232546806335, 1.152660608291626, 0.1274232417345047, 0.32659533619880676, -0.0009177736937999725, -0.10209722816944122, 0.8224450945854187, -0.05445857718586922, 0.0806766003370285, -0.1095612496137619, -0.04315457493066788, -0.13305138051509857, -0.2059556543827057, 0.16717323660850525, 0.12997174263000488, -0.09159775078296661, 0.3078959882259369, 0.17555071413516998, 0.0021266303956508636, 0.07282951474189758, 0.47516119480133057, 0.12683366239070892, 0.004293398000299931, -0.3501732349395752, 0.06220217049121857, 0.03131261467933655, 0.156497061252594, 0.047320179641246796, -0.23766227066516876, -0.4849185347557068, -0.4106019139289856, -0.09666236490011215, 0.09266960620880127, 0.3221289813518524, 0.07424388825893402, -0.07986187934875488, -0.19807767868041992, -0.22688578069210052, 0.20781292021274567, -0.008843377232551575, -0.05848022177815437, -0.33503949642181396, 0.17607909440994263, -0.1439324915409088, -0.27947521209716797, -0.200713112950325, -0.16527804732322693, 0.2625406086444855, -0.25820496678352356, -0.2651185393333435, -0.01071072369813919, -0.07903087884187698, -0.28006166219711304, -0.3210083842277527, 0.29311156272888184, 0.4260559678077698, 0.010682949796319008, -0.28373828530311584, 0.40910035371780396, -0.0241192989051342, -0.0042425766587257385, 0.05624641478061676, 0.40378624200820923, 0.024780768901109695, 0.4783608913421631, 0.19976353645324707, -0.3077812194824219, -0.11372822523117065, 0.3047422766685486, 0.7428830862045288, -0.07022115588188171, 0.3021066188812256, -0.09806868433952332, -0.01166360080242157, -0.10569602251052856, -0.1039854884147644, -0.2096778005361557, -0.17693622410297394, 0.032819803804159164, 0.03127095848321915, 0.2512495517730713, 0.21842792630195618, 0.011708579957485199, -0.0115734301507473, -0.18024539947509766, -0.18839362263679504, -0.461404025554657, -0.1324356645345688, 0.0887053906917572, -0.3724980056285858, 0.4005104601383209, 0.07215944677591324, -0.13302399218082428, 0.32431766390800476, 0.16548416018486023, -0.20654742419719696, 0.15494368970394135, -0.035977981984615326, 0.27045372128486633, 0.4610452651977539, 0.11127392947673798, 0.05570795387029648, -0.20335344970226288, -0.06352417916059494, -0.19280800223350525, -0.11600175499916077, -0.102590411901474, -0.2786969542503357, 0.22386667132377625, 0.1265099048614502, 0.04898819327354431, 0.013911650516092777, -0.23256470263004303, -0.19723518192768097, 0.10693586617708206, 0.012789957225322723, -0.09102277457714081, 0.0463528148829937, 0.12139207124710083, -0.13883985579013824, 0.014664705842733383, 0.04517444968223572, 0.31722310185432434, -0.28538015484809875, 0.11752592027187347, 0.3289766013622284, 0.1133163571357727, -0.20917215943336487, -0.13677522540092468, -0.2675713896751404, -0.014869369566440582, 0.12046151608228683, -0.17886075377464294, 0.3095262944698334, 0.023659396916627884, 0.06650477647781372, -0.2103361189365387, 0.23484092950820923, 0.7377383708953857, -0.26888734102249146, 0.13990546762943268, -0.07228096574544907, 0.026590779423713684, -0.2600741386413574, -0.03565449267625809, 0.1488880068063736, 0.22216260433197021, -0.16084405779838562, 0.15752719342708588, 0.14933444559574127, -0.07433687150478363, -0.18297116458415985, 0.01084592193365097, 0.7443417906761169, -0.16752174496650696, 0.10861468315124512, -0.13933485746383667, -0.006556767970323563, 0.04117709398269653, -0.015505066141486168, 0.1737535446882248, 0.021766886115074158, 0.10403036326169968, 0.09909917414188385, 0.29588189721107483, 0.046929147094488144, -0.08133390545845032, 0.15658751130104065, -0.19685252010822296, -0.02389400824904442, 0.7082403898239136, 0.1001940369606018, 0.32925331592559814, 0.21454071998596191, 0.5007228255271912, 0.04617132619023323, 0.08842434734106064, -0.15246117115020752, 0.4521006643772125, 0.30750805139541626, -0.12500415742397308, -0.1658218652009964, -0.2766607403755188, -0.06631602346897125, -0.10191553831100464, 0.004147019237279892, -0.275951623916626, 0.16210857033729553, 0.013707328587770462, -0.20407985150814056, -0.6190452575683594, 0.347324937582016, 0.02899213135242462, -0.08817123621702194, -0.1512661576271057, 0.05593801289796829, -0.051576465368270874, -0.10622934997081757, 0.3673671782016754, 0.3335019052028656, 0.24257749319076538, 0.29391345381736755, 0.06989087164402008, -0.16431938111782074, 0.35103288292884827, 0.03083963133394718, -0.18330954015254974, 0.19911226630210876, 0.31850260496139526, 0.0908835381269455, 0.3007442057132721, 0.1006975844502449, -0.03643728047609329, 0.03841099143028259, 0.27434447407722473, 0.0016554994508624077, -0.2547134757041931, 0.49166375398635864, -0.14734317362308502, 0.06510039418935776, -0.011430744081735611, 0.11637980490922928, -0.6328657865524292, -0.22419436275959015, 0.2930050194263458, 0.09583378583192825, 0.11507972329854965, -0.3418159484863281, 0.014299292117357254, 0.09833145141601562, 0.6334844827651978, -0.07816964387893677, 0.127401664853096, -0.12272825092077255, -0.34083014726638794, -0.6841958165168762, 0.22655119001865387, -0.11939573287963867, 0.1381511688232422, 0.0011206762865185738, 0.2716943919658661, 0.2850789427757263, 0.24463249742984772, 0.08168855309486389, 0.05564720183610916, -0.6260474324226379, 0.018999621272087097, -0.04369749501347542, -0.22733034193515778, -0.27663153409957886, 0.2152404636144638, -0.08741702884435654, -0.03948545455932617, 0.10128508508205414, -0.3512210249900818, -0.028956983238458633, -0.07868723571300507, -0.08384799212217331, 0.2922542095184326, 0.16823923587799072, 0.5404802560806274, 0.11159107089042664, 0.5250930786132812, -0.1857176125049591, -0.2845461070537567, -0.38820621371269226, 0.11773751676082611, -0.3753586411476135, 0.10256753861904144, -0.002077847719192505, 0.06304604560136795, -0.46579068899154663, 0.32165291905403137, -0.07286230474710464, 0.013991933315992355, -0.04858597740530968, -0.22922492027282715, -0.002287629060447216, -0.051074378192424774, 0.07794632762670517, 0.10831787437200546, 0.1899459958076477, 0.29205799102783203, -0.20192834734916687, 0.07437685877084732, -0.1835722029209137, -0.13972729444503784, 0.38617271184921265, -0.20822632312774658, -0.19402620196342468, 0.0987420603632927, 0.018720246851444244, -0.17191514372825623, 0.16188138723373413, -0.7090774774551392, -0.0625186413526535, 0.3703852593898773, -0.08114241063594818, -0.1896415799856186, 0.1016625314950943, -0.08538369834423065, -0.34090718626976013, -0.107022225856781, 0.20711572468280792, 0.011787310242652893, -0.2749647796154022, -0.1934283822774887, -0.18986168503761292 ]
https://github.com/huggingface/datasets/issues/193
[Tensorflow] Use something else than `from_tensor_slices()`
`from_generator` is not working on TPU, I met the following error : ``` File "/usr/local/lib/python3.6/contextlib.py", line 88, in __exit__ next(self.gen) File "/home/usr/.venv/bart/lib/python3.6/site-packages/tensorflow_core/python/eager/context.py", line 1900, in execution_mode executor_new.wait() File "/home/usr/.venv/bart/lib/python3.6/site-packages/tensorflow_core/python/eager/executor.py", line 67, in wait pywrap_tensorflow.TFE_ExecutorWaitForAllPendingNodes(self._handle) tensorflow.python.framework.errors_impl.NotFoundError: No registered 'PyFunc' OpKernel for 'CPU' devices compatible with node {{node PyFunc}} . Registered: <no registered kernels> [[PyFunc]] ``` --- @lhoestq It seems you merged some changes that allow lazy-loading. **Can you give an example of how to use ?** Maybe the Colab notebook should be updated with this method as well.
In the example notebook, the TF Dataset is built using `from_tensor_slices()` : ```python columns = ['input_ids', 'token_type_ids', 'attention_mask', 'start_positions', 'end_positions'] train_tf_dataset.set_format(type='tensorflow', columns=columns) features = {x: train_tf_dataset[x] for x in columns[:3]} labels = {"output_1": train_tf_dataset["start_positions"]} labels["output_2"] = train_tf_dataset["end_positions"] tfdataset = tf.data.Dataset.from_tensor_slices((features, labels)).batch(8) ``` But according to [official tensorflow documentation](https://www.tensorflow.org/guide/data#consuming_numpy_arrays), this will load the entire dataset to memory. **This defeats one purpose of this library, which is lazy loading.** Is there any other way to load the `nlp` dataset into TF dataset lazily ? --- For example, is it possible to use [Arrow dataset](https://www.tensorflow.org/io/api_docs/python/tfio/arrow/ArrowDataset) ? If yes, is there any code example ?
87
[Tensorflow] Use something else than `from_tensor_slices()` In the example notebook, the TF Dataset is built using `from_tensor_slices()` : ```python columns = ['input_ids', 'token_type_ids', 'attention_mask', 'start_positions', 'end_positions'] train_tf_dataset.set_format(type='tensorflow', columns=columns) features = {x: train_tf_dataset[x] for x in columns[:3]} labels = {"output_1": train_tf_dataset["start_positions"]} labels["output_2"] = train_tf_dataset["end_positions"] tfdataset = tf.data.Dataset.from_tensor_slices((features, labels)).batch(8) ``` But according to [official tensorflow documentation](https://www.tensorflow.org/guide/data#consuming_numpy_arrays), this will load the entire dataset to memory. **This defeats one purpose of this library, which is lazy loading.** Is there any other way to load the `nlp` dataset into TF dataset lazily ? --- For example, is it possible to use [Arrow dataset](https://www.tensorflow.org/io/api_docs/python/tfio/arrow/ArrowDataset) ? If yes, is there any code example ? `from_generator` is not working on TPU, I met the following error : ``` File "/usr/local/lib/python3.6/contextlib.py", line 88, in __exit__ next(self.gen) File "/home/usr/.venv/bart/lib/python3.6/site-packages/tensorflow_core/python/eager/context.py", line 1900, in execution_mode executor_new.wait() File "/home/usr/.venv/bart/lib/python3.6/site-packages/tensorflow_core/python/eager/executor.py", line 67, in wait pywrap_tensorflow.TFE_ExecutorWaitForAllPendingNodes(self._handle) tensorflow.python.framework.errors_impl.NotFoundError: No registered 'PyFunc' OpKernel for 'CPU' devices compatible with node {{node PyFunc}} . Registered: <no registered kernels> [[PyFunc]] ``` --- @lhoestq It seems you merged some changes that allow lazy-loading. **Can you give an example of how to use ?** Maybe the Colab notebook should be updated with this method as well.
[ -0.10731901973485947, -0.08736009895801544, 0.05800759419798851, 0.19675086438655853, 0.21143023669719696, 0.09753445535898209, 0.28022247552871704, 0.37640923261642456, -0.15019239485263824, 0.003705836832523346, -0.06848949193954468, 0.5348145365715027, -0.11443143337965012, 0.0036037806421518326, 0.3254980146884918, -0.1784626543521881, -0.034475527703762054, 0.2562461495399475, -0.06642411649227142, -0.06997555494308472, -0.043551333248615265, -0.024568574503064156, -0.09649638831615448, -0.026775583624839783, 0.05681814253330231, 0.018075235188007355, 0.0855255052447319, -0.14649751782417297, 0.40811285376548767, 0.04641741141676903, 0.38986867666244507, 0.02334504947066307, -0.03362138569355011, 0.15604370832443237, -0.00011474288476165384, 0.4061402678489685, 0.03541777282953262, -0.19170302152633667, 0.07188315689563751, -0.11593551933765411, 0.16804388165473938, -0.1635880470275879, 0.1652325838804245, -0.21809470653533936, -0.056207165122032166, 0.022995371371507645, 0.21298468112945557, -0.060164742171764374, 0.2803550064563751, 0.13797159492969513, 0.09116268157958984, 0.543445348739624, -0.1706320196390152, 0.2633913457393646, 0.14321044087409973, -0.152653306722641, -0.23502640426158905, -0.2543809115886688, -0.19450923800468445, 0.020991532132029533, 0.11463521420955658, 0.08944691717624664, -0.23712623119354248, 0.1298707276582718, 0.4616277813911438, 0.1611918956041336, -0.06941147893667221, -0.3664711117744446, -0.20929798483848572, 0.4291148781776428, 0.2616468369960785, -0.06549955159425735, -0.1750207245349884, -0.44658163189888, -0.23368875682353973, -0.31100186705589294, -0.10490388423204422, 0.12665289640426636, -0.28064724802970886, 0.22548289597034454, -0.09822211414575577, -0.08737306296825409, -0.2566453814506531, 0.1765182912349701, 0.1964699625968933, -0.04481501877307892, 0.12743723392486572, 0.11077578365802765, 0.2077471911907196, 0.1545112133026123, 0.40833619236946106, 0.021358061581850052, 0.30329418182373047, 0.4022804796695709, -0.2894175350666046, 0.029115907847881317, 0.17799724638462067, -0.5676328539848328, -0.06889680027961731, -0.23024152219295502, 0.3917006850242615, 0.1674436628818512, -0.3058210611343384, 0.2517024874687195, -0.010725267231464386, -0.09433679282665253, -0.41438743472099304, 0.17374230921268463, -0.1531393826007843, -0.5154544115066528, 0.05342859402298927, 0.04493890702724457, -0.25404098629951477, -0.01011013612151146, 0.022335980087518692, -0.5388686656951904, -0.170058012008667, 0.22495529055595398, -0.31306567788124084, -0.4252867102622986, -0.2523901164531708, -0.04954862967133522, 0.0026701558381319046, 0.21064597368240356, -0.12489907443523407, 0.5658952593803406, 0.14857348799705505, -0.13732095062732697, -0.30453768372535706, -0.04863663390278816, -0.1995891034603119, 0.08693183958530426, -0.06759516149759293, -0.08612395077943802, 0.13496734201908112, -0.17564840614795685, 0.17783495783805847, -0.15483300387859344, -0.16657765209674835, 0.13682691752910614, 0.2998937666416168, -0.10216732323169708, 0.09434077143669128, 0.24431228637695312, 0.04629731550812721, -0.05605994164943695, 0.0474388524889946, 0.0725712925195694, -0.21072900295257568, 0.3622112274169922, -0.5235631465911865, -0.3000703454017639, -0.041467636823654175, 0.09681712836027145, 0.026772379875183105, -0.19203883409500122, -0.3231528699398041, 0.28828486800193787, 0.1580440104007721, -0.13978354632854462, -0.1726093590259552, -0.17757496237754822, -0.4339948296546936, -0.29913392663002014, 0.34651345014572144, 0.07501203566789627, -0.5027428865432739, -0.1227889209985733, -0.012916583567857742, -0.057925935834646225, 0.26228639483451843, 0.427792489528656, -0.22205676138401031, 0.5380472540855408, -0.08767683058977127, -0.027470484375953674, 0.8010419607162476, -0.07476994395256042, -0.1710437387228012, 0.24721184372901917, -0.11224565654993057, 0.16722938418388367, 0.028713643550872803, 0.38759464025497437, -0.0019183224067091942, -0.03081885352730751, 0.38124844431877136, 0.6379416584968567, -0.15168547630310059, 0.02548340894281864, -0.10614687204360962, -0.3495665490627289, 0.2707495093345642, 0.2419634610414505, 0.10449350625276566, -0.030045226216316223, -0.23651090264320374, 0.3986961841583252, 0.13126158714294434, -0.024341214448213577, -0.19287629425525665, 0.14614568650722504, -0.14589983224868774, 0.0251871757209301, -0.18390031158924103, 0.1019967570900917, -0.6190459728240967, 0.23352819681167603, 0.1444830596446991, 0.08388923108577728, 0.23681798577308655, -0.04436884820461273, 0.3555769920349121, 0.12261142581701279, 0.05143502354621887, 0.15910997986793518, -0.04666596278548241, 0.12642839550971985, -0.05838865414261818, -0.04362787306308746, -0.350768506526947, 0.13079941272735596, -0.3505173623561859, -0.0940878614783287, -0.39338216185569763, 0.2961207926273346, 0.37826648354530334, -0.036910898983478546, -0.11612692475318909, 0.2575263977050781, -0.3368946313858032, -0.10079966485500336, 0.05960517004132271, 0.20393258333206177, 0.008491922169923782, 0.32520878314971924, -0.7214282751083374, 0.47629207372665405, 0.057509444653987885, -0.017924819141626358, -0.0847945436835289, 0.13055120408535004, 0.009944937191903591, -0.2209625244140625, -0.018168829381465912, 0.27505171298980713, -0.23169876635074615, 0.19882643222808838, 0.28876668214797974, -0.287695974111557, 0.1481618732213974, 0.07204972207546234, 0.18649330735206604, -0.11101432889699936, 0.4762398600578308, 0.1712881326675415, 0.178589329123497, 0.3287807106971741, -0.5321701765060425, 0.20310810208320618, 0.636236310005188, -0.015154755674302578, -0.1437106728553772, 0.17936676740646362, 0.018022190779447556, -0.20198187232017517, -0.03624868392944336, -0.07885096967220306, 0.2486160397529602, 0.10557543486356735, 0.04468822479248047, -0.018214194104075432, -0.09769801795482635, -0.2849236726760864, 0.21820411086082458, 0.10028038918972015, 0.4032101035118103, -0.0997612401843071, 0.026070302352309227, 0.2311626523733139, -0.1733282208442688, 0.08780358731746674, 0.24988064169883728, 0.1755170375108719, -0.2438872754573822, 0.017860984429717064, -0.28857657313346863, -0.27924221754074097, -0.055799007415771484, 0.0874665230512619, 0.13963761925697327, -0.1693180352449417, -0.09134769439697266, 0.38729017972946167, -0.00922757014632225, -0.08408712595701218, -0.1445637345314026, 0.29745161533355713, 0.1473645120859146, -0.47590604424476624, -0.10680685937404633, -0.0650729313492775, -0.2130011022090912, 0.03152351826429367, 0.3749704360961914, 0.19188039004802704, 0.22233009338378906, 0.008134337142109871, -0.13919582962989807, 0.18115557730197906, -0.08397366106510162, 0.24168112874031067, -0.031939201056957245, 0.13781869411468506, -0.04696229100227356, 0.11223523318767548, -0.07272352278232574, -0.26345935463905334, -0.06183706969022751, -0.4290965795516968, 0.03967171907424927, 0.1868332028388977, 0.017481623217463493, 0.1602582484483719, -0.23621925711631775, -0.13863635063171387, -0.28904715180397034, -0.39600279927253723, -0.01829870045185089, 0.1862494945526123, 0.32266610860824585, 0.4042637050151825, 0.003960707224905491, 0.2540592551231384, 0.3930637836456299, 0.06724485009908676, 0.08527906239032745, -0.1554907113313675, 0.4933818578720093, -0.2766980528831482, -0.26682940125465393, -0.1434481143951416, -0.14479809999465942, 0.24469904601573944, 0.36844706535339355, -0.6950923800468445, 0.21136127412319183, -0.09673351794481277, 0.14602121710777283, -0.09841294586658478, -0.015865596011281013, 0.22807817161083221, -0.20837736129760742, 0.06874611228704453, -0.01793689839541912, 0.09904496371746063, 0.13033032417297363, 0.025880921632051468, -0.14365753531455994, 0.4220215976238251, 0.47221511602401733, 0.3167877793312073, 0.782759428024292, -0.12301856279373169, -0.24631287157535553, 0.28384608030319214, -0.2280215322971344, 0.25997838377952576, -0.19186174869537354, -0.016254933550953865, 0.06628746539354324, 0.048670753836631775, -0.06577875465154648, 0.2300899177789688, -0.1085871085524559, -0.13981196284294128, -0.15558430552482605, 0.2244049310684204, 0.09555820375680923, -0.2274152934551239, 0.22539569437503815, -0.20803281664848328, 0.21618545055389404, 0.09425519406795502, 0.22961777448654175, -0.3376866281032562, -0.4288317561149597, -0.02579829841852188, -0.17721079289913177, 0.4478473365306854, -0.05506294593214989, -0.2819494903087616, 0.1320951282978058, -0.6937569379806519, 0.09473682940006256, 0.047686174511909485, 0.31885892152786255, 0.07766282558441162, -0.2423044741153717, 0.0042071714997291565, 0.06520790606737137, 0.60281902551651, 0.04434753954410553, -0.08510775864124298, 0.21417228877544403, -0.19752919673919678, -0.500195324420929, 0.022524189203977585, -0.0315113291144371, -0.08884218335151672, 0.2648509442806244, 0.12026414275169373, -0.29280298948287964, -0.5042569041252136, -0.07943680137395859, -0.00020292005501687527, -0.3595183789730072, -0.09357266128063202, -0.22388821840286255, -0.2616744041442871, -0.028192773461341858, -0.38269051909446716, 0.02188766933977604, 0.30103763937950134, -0.12246407568454742, 0.020172618329524994, -0.17321881651878357, 0.0016037356108427048, 0.23391906917095184, 0.01168455183506012, 0.1428961157798767, 0.4014415442943573, 0.04068177565932274, -0.0614524707198143, -0.034300051629543304, -0.09876636415719986, 0.20590774714946747, -0.09806321561336517, -0.1612316370010376, 0.036569323390722275, 0.15343108773231506, 0.36917659640312195, 0.03178992122411728, 0.023263458162546158, 0.12791916728019714, -0.14821960031986237, 0.038300808519124985, -0.14445966482162476, 0.3786458671092987, 0.09082227200269699, -0.3453337550163269, -0.0725555568933487, -0.552695095539093, 0.5314416289329529, 0.29880064725875854, 0.15192635357379913, 0.4885191023349762, -0.19536961615085602, -0.3557862937450409, 0.4916248321533203, 0.39687466621398926, 0.5634974241256714, -0.37892550230026245, 0.48827823996543884, 0.7028645873069763, 0.5219006538391113, 0.9219178557395935, -0.384024977684021, 0.2837417721748352, -0.11130289733409882, -0.3852222263813019, -0.07143624871969223, -0.27534887194633484, -0.32653167843818665, 0.13125821948051453, 0.13309523463249207, 0.24553103744983673, 0.12672336399555206, 0.28481534123420715, 0.24128513038158417, 0.3513439893722534, 0.3585633635520935, -0.4072933495044708, -0.21223010122776031, 0.013731759041547775, 0.0516495443880558, -0.14456023275852203, -0.1148655116558075, -0.20799130201339722, 0.2138843834400177, 0.05818132311105728, -0.014009378850460052, 0.15659719705581665, -0.262465238571167, 0.2152722030878067, 0.13642612099647522, -0.13545149564743042, 0.06786565482616425, 0.25973471999168396, 0.12310481816530228, -0.18345634639263153, -0.07790305465459824, -0.07857629656791687, 0.06104224920272827, -0.011665917932987213, 0.1457233428955078, -0.04938463494181633, 0.6279585957527161, -0.05613827705383301, 0.19453737139701843, 0.16612495481967926, -0.0887126475572586, -0.5715492367744446, -0.13409870862960815, -0.14428341388702393, 0.07634346932172775, 0.18374967575073242, -0.535589337348938, 0.28123319149017334, -0.2824200987815857, 0.2070799320936203, 0.0510311983525753, 0.13851448893547058, -0.229719877243042, 0.0398101769387722, 0.01662185601890087, -0.1924346387386322, 0.2076531946659088, 0.03500450402498245, 0.09301979839801788, 0.03120236098766327, 0.3733726143836975, 0.22355829179286957, 0.02071710303425789, -0.017776736989617348, 0.08544141799211502, 0.2849075496196747, -0.07938264310359955, 0.08008550107479095, 0.02671416476368904, 0.20169760286808014, 0.07773015648126602, 0.37332120537757874, -0.18203838169574738, 0.06517986208200455, -0.2921448349952698, -0.16977256536483765, -0.2766071856021881, 0.339433491230011, -0.08160193264484406, 0.12775234878063202, -0.04946025460958481, 0.2162124216556549, -0.10642264038324356, 0.24101048707962036, -0.18489325046539307, -0.05398181080818176, 0.002246299758553505, 0.04347400367259979, -0.14907673001289368, -0.017295971512794495, 0.04800500348210335, 0.11890824139118195, 0.02741602249443531, 0.12441661953926086, -0.3220607340335846, -0.14280156791210175, -0.027802912518382072, 0.20201456546783447, 0.05195251852273941, -0.2506318986415863, -0.02380084991455078, -0.3716358542442322, -0.33128976821899414, -0.20353424549102783, 0.11228188872337341, -0.11092843115329742, -0.28444427251815796, 0.022438790649175644, -0.0787314772605896, 0.36041194200515747, -0.25190842151641846, 0.06195509061217308, -0.08628292381763458, 0.3406105041503906, -0.0935957282781601, 0.2555478811264038, 0.1501893401145935, -0.022436708211898804, -0.3736368417739868, -0.12177392095327377, 0.17380158603191376, -0.15421324968338013, 0.12140533328056335, -0.3285708427429199, -0.072037473320961, -0.2575984299182892, 0.02463880553841591, 0.3140627145767212, -0.19655229151248932, 0.12919342517852783, 0.22686824202537537, 0.06306254118680954, -0.10534308850765228, -0.11045008152723312, 0.21441715955734253, 0.026152566075325012, -0.03034968487918377, 0.22932779788970947, 0.07449810206890106, 0.1525936871767044, -0.10686290264129639, -0.030717020854353905, 0.0404675155878067, -0.5724336504936218, -0.1810043901205063, 0.4083307087421417, -0.0796087235212326, 0.06841634213924408, -0.1724673956632614, 0.10472427308559418, 0.13364645838737488, 0.13838401436805725, 0.30736610293388367, 0.17160172760486603, -0.10191754251718521, -0.08759242296218872, -0.047540418803691864, -0.37738367915153503, -0.45394623279571533, 0.4834330677986145, -0.04196266829967499, 0.5714567303657532, -0.2652556896209717, 0.0016518011689186096, 0.11766710877418518, -0.16160443425178528, -0.1760978400707245, 0.28459855914115906, -0.10150346904993057, -0.018113356083631516, -0.2557772994041443, 0.05827990919351578, -0.1619582176208496, 0.27356234192848206, -0.09264323115348816, -0.2304716855287552, -0.21142861247062683, 0.3268529772758484, 0.12374944984912872, 0.1698043942451477, 0.08803121745586395, 0.08871431648731232, 0.208601713180542, -0.14125783741474152, 0.24054518342018127, -0.2891351580619812, -0.0972328931093216, -0.35002848505973816, 0.015347626991569996, 0.08870048820972443, 0.3145703077316284, -0.3028634190559387, 0.12886163592338562, 0.10812939703464508, -0.06667659431695938, -0.015008826740086079, 0.2600986063480377, 0.2302948385477066, 0.1159554123878479, 0.24547193944454193, -0.04521147906780243, -0.025874342769384384, 0.14597773551940918, 0.180082306265831, 0.1694282591342926, -0.5887795090675354, 0.6027833223342896, 0.18034815788269043, -0.09682025760412216, -0.008341886103153229, 0.18996241688728333, -0.059246525168418884, -0.03979809954762459, 0.4897262156009674, -0.2684252858161926, 0.03991936519742012, 0.056890446692705154, 0.013276200741529465, -0.18620222806930542, 0.6324126124382019, 0.08844959735870361, 0.49170351028442383, -0.1087174192070961, 0.02648913860321045, -0.4697318375110626, 0.1212519109249115, -0.11352209746837616, 0.1386709064245224, 0.2599011957645416, 0.27580782771110535, 0.15131811797618866, 0.1794598400592804, -0.4360828399658203, -0.1845363825559616, 0.005464914254844189, 0.09761293232440948, -0.12732963263988495, -0.15381601452827454, -0.4934648275375366, 0.12027433514595032, -0.15698659420013428, -0.4985112249851227, 0.05458682030439377, -0.41390252113342285, -0.10423562675714493, -0.09382869303226471, 0.2531808018684387, 0.328368604183197, 0.4639800190925598, 0.2814912497997284, -0.03351078927516937, -0.04955610632896423, 0.04295945167541504, -0.08725874125957489, -0.11083152890205383, -0.028888775035738945, -0.35535314679145813, -0.04963817447423935, -0.1767718344926834, 0.07457409054040909, -0.27969446778297424, -0.025636952370405197, -0.30281224846839905, -0.24400834739208221, 0.01799798756837845, -0.08510846644639969, -0.12512311339378357, 0.07936589419841766, -0.29182368516921997, 0.1800650954246521, 0.3247946500778198, 0.39626309275627136, -0.12905411422252655, -0.13008810579776764, -0.2926552891731262, 0.14886358380317688, 0.3681568503379822, -0.6422927975654602, -0.17142213881015778, 0.049303505569696426, -0.151870995759964, 0.24562641978263855, 0.06413229554891586, -0.27930399775505066, -0.20046302676200867, 0.3068370223045349, -0.12597054243087769, -0.19656634330749512, 0.1995113492012024, 0.33595848083496094, -0.05168277770280838, -0.11604394018650055, 0.2768476605415344, -0.0313044898211956, -0.46171262860298157, -0.23161271214485168, -0.43983250856399536 ]
https://github.com/huggingface/datasets/issues/193
[Tensorflow] Use something else than `from_tensor_slices()`
Could you send me the code you used to run create the dataset using `.from_generator` ? What version of tensorflow are you using ?
In the example notebook, the TF Dataset is built using `from_tensor_slices()` : ```python columns = ['input_ids', 'token_type_ids', 'attention_mask', 'start_positions', 'end_positions'] train_tf_dataset.set_format(type='tensorflow', columns=columns) features = {x: train_tf_dataset[x] for x in columns[:3]} labels = {"output_1": train_tf_dataset["start_positions"]} labels["output_2"] = train_tf_dataset["end_positions"] tfdataset = tf.data.Dataset.from_tensor_slices((features, labels)).batch(8) ``` But according to [official tensorflow documentation](https://www.tensorflow.org/guide/data#consuming_numpy_arrays), this will load the entire dataset to memory. **This defeats one purpose of this library, which is lazy loading.** Is there any other way to load the `nlp` dataset into TF dataset lazily ? --- For example, is it possible to use [Arrow dataset](https://www.tensorflow.org/io/api_docs/python/tfio/arrow/ArrowDataset) ? If yes, is there any code example ?
24
[Tensorflow] Use something else than `from_tensor_slices()` In the example notebook, the TF Dataset is built using `from_tensor_slices()` : ```python columns = ['input_ids', 'token_type_ids', 'attention_mask', 'start_positions', 'end_positions'] train_tf_dataset.set_format(type='tensorflow', columns=columns) features = {x: train_tf_dataset[x] for x in columns[:3]} labels = {"output_1": train_tf_dataset["start_positions"]} labels["output_2"] = train_tf_dataset["end_positions"] tfdataset = tf.data.Dataset.from_tensor_slices((features, labels)).batch(8) ``` But according to [official tensorflow documentation](https://www.tensorflow.org/guide/data#consuming_numpy_arrays), this will load the entire dataset to memory. **This defeats one purpose of this library, which is lazy loading.** Is there any other way to load the `nlp` dataset into TF dataset lazily ? --- For example, is it possible to use [Arrow dataset](https://www.tensorflow.org/io/api_docs/python/tfio/arrow/ArrowDataset) ? If yes, is there any code example ? Could you send me the code you used to run create the dataset using `.from_generator` ? What version of tensorflow are you using ?
[ -0.1686093509197235, -0.09398827701807022, 0.01184418797492981, 0.16997650265693665, 0.2723706364631653, 0.08235647529363632, 0.22564607858657837, 0.389730840921402, -0.05037689954042435, 0.005149140954017639, -0.08119335770606995, 0.6080823540687561, -0.14292074739933014, -0.01441292092204094, 0.2508257329463959, -0.21652472019195557, -0.10149411112070084, 0.25961849093437195, -0.14962495863437653, -0.09359464049339294, -0.014412032440304756, -0.034817375242710114, -0.14135700464248657, -0.027525052428245544, -0.06012839823961258, -0.08392585813999176, 0.07913307100534439, -0.09566781669855118, 0.3711792528629303, 0.03904313966631889, 0.29161372780799866, 0.0025852620601654053, -0.024421323090791702, 0.16511090099811554, -0.00010320141882402822, 0.32157450914382935, 0.03437256067991257, -0.14773283898830414, 0.04883945360779762, -0.07913200557231903, 0.1653176248073578, -0.27397122979164124, 0.19196189939975739, -0.30282333493232727, -0.05437905713915825, 0.008169753476977348, 0.19384169578552246, -0.0288158617913723, 0.3141273260116577, 0.15881849825382233, 0.21697242558002472, 0.4294993579387665, -0.11771486699581146, 0.30170220136642456, 0.11722356081008911, -0.1770816594362259, -0.19004769623279572, -0.22906659543514252, -0.21755382418632507, -0.014430762268602848, 0.032905708998441696, 0.2663011848926544, -0.20410354435443878, 0.13051070272922516, 0.4554979205131531, 0.1430775225162506, -0.11107205599546432, -0.37035685777664185, -0.26494014263153076, 0.37896567583084106, 0.22448182106018066, -0.08395085483789444, -0.1515466272830963, -0.4547230899333954, -0.17095234990119934, -0.30649811029434204, -0.15057623386383057, 0.11813364177942276, -0.26003119349479675, 0.12261278927326202, -0.10149878263473511, -0.08801247179508209, -0.23205551505088806, 0.1448356807231903, 0.16639183461666107, -0.04291312396526337, 0.08226285874843597, 0.10815633833408356, 0.15611276030540466, 0.049013491719961166, 0.24615338444709778, 0.058891426771879196, 0.3580821454524994, 0.36975154280662537, -0.34041687846183777, 0.053697504103183746, 0.1779218465089798, -0.5166312456130981, -0.00212874636054039, -0.2505255341529846, 0.32315218448638916, 0.17214295268058777, -0.2449934482574463, 0.1835702657699585, -0.07256770133972168, 0.012310963124036789, -0.4178178608417511, 0.11400610208511353, -0.11787079274654388, -0.4833920896053314, -0.023928992450237274, 0.021702304482460022, -0.23941287398338318, -0.048565465956926346, 0.11936254799365997, -0.46755555272102356, -0.03389660641551018, 0.23527798056602478, -0.3758569359779358, -0.37095266580581665, -0.1966247856616974, 0.056531500071287155, 0.013881930150091648, 0.2716265618801117, -0.18506430089473724, 0.4295896589756012, 0.15240764617919922, -0.1067647933959961, -0.3398883640766144, 0.00412391871213913, -0.28825175762176514, 0.12291787564754486, -0.1284397691488266, -0.11231782287359238, 0.14382199943065643, -0.07857148349285126, 0.20242580771446228, -0.08082973212003708, -0.1718904674053192, 0.1340389847755432, 0.2805539071559906, -0.10107967257499695, 0.08383263647556305, 0.21504907310009003, 0.05136317387223244, -0.013148928061127663, 0.04464434087276459, 0.09676916897296906, -0.16510333120822906, 0.3000500202178955, -0.514404833316803, -0.2434285283088684, -0.034085556864738464, 0.2013803869485855, 0.11621573567390442, -0.1493273228406906, -0.25425824522972107, 0.3058812916278839, 0.13064245879650116, -0.05816686898469925, -0.17962700128555298, -0.16915205121040344, -0.41828563809394836, -0.3279014825820923, 0.31852248311042786, 0.05843185633420944, -0.4493256211280823, -0.07594025135040283, -0.02289501018822193, -0.00007916241884231567, 0.284032940864563, 0.4118056297302246, -0.2025936394929886, 0.475919634103775, -0.06604287773370743, 0.06232526898384094, 0.7272687554359436, -0.079707071185112, -0.20461834967136383, 0.2472713738679886, -0.187544584274292, 0.16651412844657898, -0.056495122611522675, 0.38813647627830505, 0.01457924209535122, 0.006611483171582222, 0.38259798288345337, 0.6268616318702698, -0.1302778273820877, 0.12627576291561127, -0.1689796894788742, -0.26857006549835205, 0.3044627904891968, 0.290962278842926, 0.055053532123565674, -0.0994180366396904, -0.2690313160419464, 0.35305559635162354, 0.14091543853282928, -0.04823559895157814, -0.17051905393600464, 0.17430947721004486, -0.10140755772590637, 0.03389359265565872, -0.19647006690502167, 0.023536983877420425, -0.6025984287261963, 0.2567139267921448, 0.21885229647159576, 0.11899346858263016, 0.14820227026939392, -0.0970391184091568, 0.2708939015865326, 0.1100613996386528, 0.03228237107396126, 0.156306192278862, 0.1124504804611206, 0.11767610162496567, -0.01731029525399208, -0.010448368266224861, -0.2507627308368683, 0.21397989988327026, -0.3762321472167969, -0.162748783826828, -0.35741350054740906, 0.2085113525390625, 0.30177533626556396, -0.03539014980196953, 0.004791006445884705, 0.2599489688873291, -0.25576746463775635, -0.11474430561065674, 0.05725516751408577, 0.27530261874198914, -0.028167447075247765, 0.23908855020999908, -0.6261078119277954, 0.3982264995574951, -0.016409674659371376, -0.06816951185464859, -0.055938854813575745, 0.14532598853111267, 0.04535257816314697, -0.1716873049736023, 0.016372419893741608, 0.22037392854690552, -0.19826123118400574, 0.08164232969284058, 0.21227990090847015, -0.25049856305122375, 0.17032012343406677, 0.021430645138025284, 0.17780941724777222, -0.09024877846240997, 0.399679571390152, 0.05171893537044525, 0.12821009755134583, 0.2929060459136963, -0.5027147531509399, 0.24715399742126465, 0.6455687880516052, 0.0017062947154045105, -0.06061083823442459, 0.2191503942012787, -0.0046074166893959045, -0.18649286031723022, -0.11462301015853882, -0.07552823424339294, 0.22046229243278503, 0.23334954679012299, 0.004561286419630051, -0.04915626347064972, -0.173903688788414, -0.23643594980239868, 0.229894757270813, 0.10348089784383774, 0.395020067691803, -0.09640926867723465, 0.04655322805047035, 0.1559043973684311, -0.2110229730606079, 0.05060550197958946, 0.22332771122455597, 0.28673651814460754, -0.20513230562210083, -0.038550809025764465, -0.24321703612804413, -0.26292288303375244, -0.07050102949142456, 0.018393348902463913, 0.10047037899494171, -0.17765091359615326, -0.06376736611127853, 0.32688140869140625, -0.005278818309307098, -0.002292890101671219, -0.10702653229236603, 0.2660948932170868, 0.25394585728645325, -0.3675921857357025, -0.048126738518476486, -0.09654667973518372, -0.25975221395492554, 0.1232631653547287, 0.3457805812358856, 0.26507654786109924, 0.30609971284866333, 0.04240259528160095, -0.029359120875597, 0.1571468859910965, -0.029308903962373734, 0.1693190038204193, -0.18968990445137024, 0.12898238003253937, -0.07206517457962036, 0.2025323212146759, -0.1092027872800827, -0.21997728943824768, -0.04013632982969284, -0.42298510670661926, 0.045517295598983765, 0.19250085949897766, 0.016064554452896118, 0.05312611907720566, -0.22644762694835663, -0.2200697958469391, -0.2942711114883423, -0.423545241355896, -0.011317826807498932, 0.11504684388637543, 0.2867072820663452, 0.4668731093406677, -0.03242717310786247, 0.27440425753593445, 0.35955309867858887, 0.1347762644290924, 0.021001871675252914, -0.13184255361557007, 0.5142490267753601, -0.2914403975009918, -0.292390376329422, -0.1259395033121109, -0.15778815746307373, 0.21387925744056702, 0.26455384492874146, -0.6998732686042786, 0.16331322491168976, -0.1801670342683792, 0.090632364153862, -0.17192870378494263, -0.023034347221255302, 0.27965545654296875, -0.18283779919147491, -0.03773999586701393, -0.06421422958374023, 0.1282195746898651, 0.1593090444803238, -0.002616647630929947, -0.17444053292274475, 0.29112640023231506, 0.4363158047199249, 0.29320773482322693, 0.6823475360870361, -0.04952212795615196, -0.2472585290670395, 0.2451166957616806, -0.20342136919498444, 0.17989729344844818, -0.15880462527275085, -0.12973546981811523, 0.06918320059776306, 0.04686067998409271, -0.019307412207126617, 0.26274293661117554, -0.07912983745336533, -0.19225284457206726, -0.08546371757984161, 0.19334059953689575, 0.02322806417942047, -0.24505148828029633, 0.2765369117259979, -0.19784533977508545, 0.17820173501968384, 0.10248132050037384, 0.17246133089065552, -0.382710725069046, -0.43289661407470703, -0.028190435841679573, -0.21834145486354828, 0.3675691783428192, -0.054969217628240585, -0.3525267243385315, 0.12331727147102356, -0.6885595917701721, 0.07143362611532211, 0.09516602754592896, 0.29508158564567566, 0.044007185846567154, -0.264468789100647, 0.027435041964054108, 0.0636133924126625, 0.5770878791809082, 0.08534538000822067, -0.037439532577991486, 0.19421933591365814, -0.060622137039899826, -0.5440302491188049, 0.02768338844180107, -0.08388607203960419, -0.026566490530967712, 0.2526630461215973, 0.13720059394836426, -0.3163089156150818, -0.5172989964485168, -0.05490140616893768, 0.011884714476764202, -0.32387614250183105, -0.10303221642971039, -0.2559068202972412, -0.24362272024154663, -0.012445760890841484, -0.29287371039390564, 0.06926251947879791, 0.2637310028076172, -0.11182861775159836, -0.0076460689306259155, -0.10520219802856445, -0.0017563868314027786, 0.22647720575332642, 0.021024800837039948, 0.2179867923259735, 0.4974193572998047, 0.09195944666862488, -0.006784301251173019, 0.04476071149110794, -0.17461496591567993, 0.21001943945884705, -0.10321354866027832, -0.12122191488742828, -0.002921696752309799, 0.11823989450931549, 0.3274330794811249, 0.04370792955160141, 0.04576609283685684, 0.08590229600667953, -0.2112959623336792, 0.11721104383468628, -0.2157900035381317, 0.4107753336429596, 0.16171099245548248, -0.2892140746116638, -0.10195846110582352, -0.4516589343547821, 0.48958805203437805, 0.2225753366947174, 0.10899344086647034, 0.49127697944641113, -0.17228446900844574, -0.3628089725971222, 0.4391489624977112, 0.33841976523399353, 0.540489137172699, -0.3218809962272644, 0.4336531162261963, 0.7526195645332336, 0.4858798384666443, 0.855877161026001, -0.35158711671829224, 0.28582435846328735, -0.15107733011245728, -0.33993199467658997, 0.00626038946211338, -0.2254670262336731, -0.40141814947128296, 0.06774914264678955, 0.06809155642986298, 0.185630202293396, 0.0864810049533844, 0.22489561140537262, 0.1757582724094391, 0.3943641781806946, 0.36009615659713745, -0.431041419506073, -0.21452617645263672, 0.14980214834213257, -0.036545827984809875, -0.15512973070144653, -0.05978774279356003, -0.2087165266275406, 0.18185332417488098, 0.06399638205766678, 0.02201446145772934, 0.15056174993515015, -0.18615056574344635, 0.2835201621055603, 0.05520625039935112, -0.06650621443986893, -0.013074534013867378, 0.2632392942905426, 0.12207840383052826, -0.17733296751976013, -0.09848374873399734, -0.05764171853661537, 0.020040832459926605, 0.003613322041928768, 0.08650222420692444, -0.05334334447979927, 0.640072762966156, -0.049178753048181534, 0.13697388768196106, 0.10900606215000153, -0.07215571403503418, -0.48971855640411377, -0.19590522348880768, -0.11551952362060547, 0.08588781207799911, 0.08319548517465591, -0.5479533076286316, 0.23642663657665253, -0.20111973583698273, 0.18663014471530914, 0.16215384006500244, 0.12269842624664307, -0.19497285783290863, 0.09241029620170593, 0.09988872706890106, -0.2133834958076477, 0.22173041105270386, 0.03510225564241409, 0.1007731482386589, 0.09124825894832611, 0.3558172583580017, 0.22108890116214752, -0.025953296571969986, -0.07953129708766937, 0.08418258279561996, 0.3034348487854004, -0.06420756131410599, 0.0354570709168911, 0.04730638116598129, 0.28831547498703003, 0.07017572969198227, 0.34780293703079224, -0.22790755331516266, 0.01458708941936493, -0.19920091331005096, -0.18210989236831665, -0.306837260723114, 0.3347513675689697, -0.06750898063182831, 0.12765036523342133, -0.025997206568717957, 0.21559074521064758, -0.07443244010210037, 0.259386271238327, -0.32286518812179565, -0.04293418675661087, -0.02249477058649063, 0.07561114430427551, -0.10007344186306, -0.12442164868116379, 0.09797786921262741, 0.09842170774936676, 0.14724990725517273, 0.1296604871749878, -0.35898715257644653, -0.2738023102283478, -0.022063713520765305, 0.1193842887878418, 0.0218152217566967, -0.23054179549217224, -0.02456948161125183, -0.38802146911621094, -0.3245272636413574, -0.17464753985404968, 0.10038881003856659, -0.14644484221935272, -0.29161953926086426, 0.0598718486726284, -0.11217333376407623, 0.2773264944553375, -0.09360280632972717, 0.008463392034173012, -0.17180171608924866, 0.2840940058231354, -0.06256350129842758, 0.19119985401630402, 0.13741588592529297, -0.07968718558549881, -0.3882512152194977, -0.13485851883888245, 0.12812566757202148, -0.10049516707658768, -0.000842314213514328, -0.36451637744903564, -0.08045943081378937, -0.20343388617038727, 0.09064193069934845, 0.2400401383638382, -0.250755250453949, 0.03492056578397751, 0.21326979994773865, 0.20128312706947327, -0.12772278487682343, -0.10396530479192734, 0.199832946062088, 0.023196686059236526, 0.06183922663331032, 0.12107638269662857, -0.02108757756650448, 0.16453824937343597, -0.10702791810035706, 0.015115056186914444, 0.051867350935935974, -0.5421460270881653, -0.2646961808204651, 0.3222045600414276, -0.15680639445781708, -0.03405824676156044, -0.08664141595363617, 0.13565923273563385, 0.1247234120965004, 0.2581653594970703, 0.31806832551956177, 0.23370766639709473, -0.07991091161966324, -0.07542398571968079, -0.10472861677408218, -0.3642439544200897, -0.40943634510040283, 0.4181024432182312, -0.13466961681842804, 0.5021533966064453, -0.25148043036460876, 0.027215294539928436, 0.1199999749660492, -0.2684730589389801, -0.17018352448940277, 0.3052920401096344, -0.21323761343955994, -0.011488770134747028, -0.24748307466506958, 0.06294161826372147, -0.11182530224323273, 0.22725576162338257, -0.06825174391269684, -0.19298411905765533, -0.18089839816093445, 0.29027435183525085, 0.04931357130408287, 0.1948872208595276, 0.07147776335477829, 0.1825225055217743, 0.23883700370788574, -0.12766514718532562, 0.23899786174297333, -0.22715021669864655, -0.09096415340900421, -0.40485426783561707, 0.024979688227176666, 0.10322392731904984, 0.33521685004234314, -0.33990955352783203, 0.12908828258514404, 0.09992960095405579, -0.10254433751106262, -0.06795169413089752, 0.2378445416688919, 0.20754550397396088, 0.12218859791755676, 0.294644296169281, 0.07240220159292221, -0.12988553941249847, 0.14953716099262238, 0.1964372843503952, 0.17680400609970093, -0.46683070063591003, 0.49007293581962585, 0.1949760615825653, -0.020241860300302505, -0.1069498062133789, 0.14637652039527893, -0.18310898542404175, -0.08909396082162857, 0.5219661593437195, -0.248880073428154, 0.0497274249792099, -0.08820951730012894, 0.07930827140808105, -0.22433073818683624, 0.6939463019371033, 0.03303144872188568, 0.46245619654655457, -0.15681658685207367, 0.010074526071548462, -0.4859364628791809, 0.0970560759305954, -0.19249577820301056, 0.1519235223531723, 0.24726247787475586, 0.3328306972980499, 0.10673611611127853, 0.1808580607175827, -0.43699461221694946, -0.18489541113376617, -0.053936585783958435, 0.11275438964366913, -0.20269347727298737, -0.0650593638420105, -0.5096169114112854, 0.11405099183320999, -0.07576971501111984, -0.470977783203125, 0.11253862828016281, -0.433445543050766, 0.056310974061489105, -0.09103824943304062, 0.27836495637893677, 0.2807072699069977, 0.4136725068092346, 0.33369961380958557, -0.04148975759744644, -0.04722528159618378, -0.019791672006249428, -0.10569342970848083, -0.12665630877017975, 0.023457201197743416, -0.3446064889431, -0.07571841031312943, -0.050206925719976425, 0.2180008739233017, -0.2361309677362442, -0.037473756819963455, -0.23950143158435822, -0.20596888661384583, 0.09328193962574005, -0.11421513557434082, -0.09886102378368378, 0.11413305252790451, -0.17164170742034912, 0.18321645259857178, 0.18438106775283813, 0.4326113760471344, -0.09274660050868988, -0.05656038969755173, -0.2720027267932892, -0.03757508844137192, 0.4600408673286438, -0.5970891118049622, -0.2347230762243271, 0.09746231138706207, -0.06007535755634308, 0.2257249653339386, 0.04289297014474869, -0.298777312040329, -0.1591787040233612, 0.29100245237350464, -0.1312485635280609, -0.24028588831424713, 0.27734413743019104, 0.32291868329048157, -0.08262776583433151, -0.08083860576152802, 0.2904896140098572, -0.06068570166826248, -0.3934636116027832, -0.15428972244262695, -0.4548878073692322 ]
https://github.com/huggingface/datasets/issues/193
[Tensorflow] Use something else than `from_tensor_slices()`
I'm using TF2.2 Here is my code : ``` import nlp from transformers import BartTokenizer tokenizer = BartTokenizer.from_pretrained('bart-large') def encode(sample): article_inputs = tokenizer.encode_plus(sample["article"], max_length=tokenizer.model_max_length, pad_to_max_length=True) summary_inputs = tokenizer.encode_plus(sample["highlights"], max_length=tokenizer.model_max_length, pad_to_max_length=True) article_inputs.update({"lm_labels": summary_inputs['input_ids']}) return article_inputs cnn_dm = nlp.load_dataset('cnn_dailymail', '3.0.0', split='test') cnn_dm = cnn_dm.map(encode) def gen(): for sample in cnn_dm: s = {} s['input_ids'] = sample['input_ids'] s['attention_mask'] = sample['attention_mask'] s['lm_labels'] = sample['lm_labels'] yield s dataset = tf.data.Dataset.from_generator(gen, output_types={k: tf.int32 for k in ['input_ids', 'attention_mask', 'lm_labels']}, output_shapes={k: tf.TensorShape([tokenizer.model_max_length]) for k in ['input_ids', 'attention_mask', 'lm_labels']} ```
In the example notebook, the TF Dataset is built using `from_tensor_slices()` : ```python columns = ['input_ids', 'token_type_ids', 'attention_mask', 'start_positions', 'end_positions'] train_tf_dataset.set_format(type='tensorflow', columns=columns) features = {x: train_tf_dataset[x] for x in columns[:3]} labels = {"output_1": train_tf_dataset["start_positions"]} labels["output_2"] = train_tf_dataset["end_positions"] tfdataset = tf.data.Dataset.from_tensor_slices((features, labels)).batch(8) ``` But according to [official tensorflow documentation](https://www.tensorflow.org/guide/data#consuming_numpy_arrays), this will load the entire dataset to memory. **This defeats one purpose of this library, which is lazy loading.** Is there any other way to load the `nlp` dataset into TF dataset lazily ? --- For example, is it possible to use [Arrow dataset](https://www.tensorflow.org/io/api_docs/python/tfio/arrow/ArrowDataset) ? If yes, is there any code example ?
82
[Tensorflow] Use something else than `from_tensor_slices()` In the example notebook, the TF Dataset is built using `from_tensor_slices()` : ```python columns = ['input_ids', 'token_type_ids', 'attention_mask', 'start_positions', 'end_positions'] train_tf_dataset.set_format(type='tensorflow', columns=columns) features = {x: train_tf_dataset[x] for x in columns[:3]} labels = {"output_1": train_tf_dataset["start_positions"]} labels["output_2"] = train_tf_dataset["end_positions"] tfdataset = tf.data.Dataset.from_tensor_slices((features, labels)).batch(8) ``` But according to [official tensorflow documentation](https://www.tensorflow.org/guide/data#consuming_numpy_arrays), this will load the entire dataset to memory. **This defeats one purpose of this library, which is lazy loading.** Is there any other way to load the `nlp` dataset into TF dataset lazily ? --- For example, is it possible to use [Arrow dataset](https://www.tensorflow.org/io/api_docs/python/tfio/arrow/ArrowDataset) ? If yes, is there any code example ? I'm using TF2.2 Here is my code : ``` import nlp from transformers import BartTokenizer tokenizer = BartTokenizer.from_pretrained('bart-large') def encode(sample): article_inputs = tokenizer.encode_plus(sample["article"], max_length=tokenizer.model_max_length, pad_to_max_length=True) summary_inputs = tokenizer.encode_plus(sample["highlights"], max_length=tokenizer.model_max_length, pad_to_max_length=True) article_inputs.update({"lm_labels": summary_inputs['input_ids']}) return article_inputs cnn_dm = nlp.load_dataset('cnn_dailymail', '3.0.0', split='test') cnn_dm = cnn_dm.map(encode) def gen(): for sample in cnn_dm: s = {} s['input_ids'] = sample['input_ids'] s['attention_mask'] = sample['attention_mask'] s['lm_labels'] = sample['lm_labels'] yield s dataset = tf.data.Dataset.from_generator(gen, output_types={k: tf.int32 for k in ['input_ids', 'attention_mask', 'lm_labels']}, output_shapes={k: tf.TensorShape([tokenizer.model_max_length]) for k in ['input_ids', 'attention_mask', 'lm_labels']} ```
[ -0.1217658668756485, -0.02593136578798294, 0.04709158465266228, 0.189819797873497, 0.19800446927547455, 0.154427170753479, 0.24837477505207062, 0.45679745078086853, -0.03715096414089203, -0.05661483108997345, -0.14168526232242584, 0.6093763709068298, -0.18237656354904175, -0.03136449679732323, 0.24518442153930664, -0.16024261713027954, -0.051533930003643036, 0.21018022298812866, -0.08378064632415771, -0.05111900717020035, 0.04143513739109039, -0.10304731130599976, -0.11337501555681229, -0.08961932361125946, -0.08411455154418945, 0.03781063109636307, 0.026804344728589058, -0.15933355689048767, 0.40634581446647644, -0.015847545117139816, 0.34805363416671753, 0.035480815917253494, -0.0619998462498188, 0.10191059112548828, -0.00011394679313525558, 0.3830080032348633, 0.03163440153002739, -0.16971980035305023, 0.005115136504173279, -0.048684120178222656, 0.18722298741340637, -0.22094687819480896, 0.2476186901330948, -0.27973657846450806, 0.022960439324378967, -0.043305642902851105, 0.22824744880199432, 0.021492138504981995, 0.2741084098815918, 0.05634363368153572, 0.11358019709587097, 0.46258464455604553, -0.22616280615329742, 0.36655688285827637, 0.15347011387348175, -0.10670545697212219, -0.13823102414608002, -0.2763137221336365, -0.2109406590461731, 0.04131307452917099, 0.04629549756646156, 0.21486005187034607, -0.29671820998191833, 0.1001085638999939, 0.4883714020252228, 0.1346101462841034, -0.11587453633546829, -0.29013583064079285, -0.20416882634162903, 0.3537539541721344, 0.19012649357318878, -0.0716036781668663, -0.17686089873313904, -0.5691714882850647, -0.23419828712940216, -0.21981684863567352, -0.2141052484512329, 0.048743464052677155, -0.187536358833313, 0.13866235315799713, -0.21671633422374725, -0.09149599820375443, -0.19212740659713745, 0.16961584985256195, 0.17300376296043396, 0.08846834301948547, 0.15938986837863922, 0.15273502469062805, 0.16368284821510315, 0.04027005285024643, 0.276839017868042, -0.01117965579032898, 0.29415327310562134, 0.41327154636383057, -0.3397202491760254, -0.004969973117113113, 0.1499766707420349, -0.5529497265815735, -0.0025992095470428467, -0.2191028743982315, 0.3147851228713989, 0.214797705411911, -0.25013092160224915, 0.1788446605205536, -0.006410364061594009, -0.0640130341053009, -0.3965272605419159, 0.1439048796892166, -0.17764928936958313, -0.5946301221847534, 0.07090069353580475, 0.02544689178466797, -0.2908788323402405, 0.09226293861865997, 0.054143745452165604, -0.5405901074409485, -0.09034083038568497, 0.22742724418640137, -0.30823153257369995, -0.4565548300743103, -0.24953961372375488, 0.03222234547138214, 0.02825889363884926, 0.2659027874469757, -0.17248444259166718, 0.494905561208725, 0.046800658106803894, -0.1260063499212265, -0.23579655587673187, 0.0714636966586113, -0.2054801881313324, 0.08548395335674286, -0.05327317863702774, -0.09084207564592361, 0.18941888213157654, -0.044649671763181686, 0.23619970679283142, -0.18066559731960297, -0.15809698402881622, 0.16095119714736938, 0.2584710419178009, -0.09254170954227448, 0.07163991034030914, 0.21768152713775635, -0.014463391155004501, 0.06174632906913757, 0.04735387861728668, 0.11339698731899261, -0.23381224274635315, 0.35670870542526245, -0.5510233640670776, -0.2275332361459732, -0.004840297624468803, 0.08490908145904541, 0.10352486371994019, -0.2339809536933899, -0.36409738659858704, 0.35490894317626953, 0.10241919755935669, -0.12468914687633514, -0.14371773600578308, -0.14855578541755676, -0.41104069352149963, -0.26339462399482727, 0.28865405917167664, 0.11818361282348633, -0.37230244278907776, -0.19962604343891144, 0.013991443440318108, 0.03928937762975693, 0.21835824847221375, 0.44404205679893494, -0.22877198457717896, 0.49103161692619324, -0.06854380667209625, 0.17658226191997528, 0.7466108202934265, -0.16834157705307007, -0.21639321744441986, 0.26658353209495544, -0.10920873284339905, 0.2027738243341446, 0.0070783719420433044, 0.4875001013278961, 0.0556122288107872, -0.028245484456419945, 0.32784414291381836, 0.607059895992279, -0.11004304885864258, 0.09091199934482574, -0.06263836473226547, -0.35401690006256104, 0.38336843252182007, 0.2236015796661377, 0.0494338721036911, -0.08908828347921371, -0.24513185024261475, 0.4838308095932007, 0.15792721509933472, 0.006073549389839172, -0.1822027862071991, 0.1302785724401474, -0.18597310781478882, 0.005775474011898041, -0.22100555896759033, 0.04396377503871918, -0.6262139678001404, 0.2945076823234558, 0.2898077368736267, 0.019801277667284012, 0.22485055029392242, -0.13205057382583618, 0.30463284254074097, 0.08697211742401123, 0.05847443640232086, 0.1558164805173874, -0.036375779658555984, 0.15324488282203674, -0.008287008851766586, -0.056143298745155334, -0.3398278057575226, 0.2135779708623886, -0.35561323165893555, -0.08592220395803452, -0.28733840584754944, 0.2686130106449127, 0.4462825357913971, 0.006337819155305624, -0.13960519433021545, 0.2558359205722809, -0.23948216438293457, -0.09090765565633774, 0.0943145677447319, 0.22145646810531616, -0.03742852807044983, 0.31023108959198, -0.6426628232002258, 0.5175514817237854, -0.007299430668354034, -0.05198519676923752, -0.03803412616252899, 0.15125660598278046, 0.0408390611410141, -0.22987160086631775, -0.04504162073135376, 0.20381315052509308, -0.18118394911289215, 0.25211262702941895, 0.2275707870721817, -0.2973988652229309, 0.08644010871648788, 0.0949702262878418, 0.14749149978160858, -0.10604080557823181, 0.3818446099758148, 0.08208726346492767, 0.25895947217941284, 0.29437312483787537, -0.4201219081878662, 0.20113885402679443, 0.5873509645462036, -0.03383973613381386, -0.08823571354150772, 0.242916077375412, -0.08980383723974228, -0.21951794624328613, -0.04968210309743881, -0.15792827308177948, 0.23874759674072266, 0.15569525957107544, 0.047563422471284866, -0.018360668793320656, -0.08513437211513519, -0.18957801163196564, 0.2330111414194107, 0.13817822933197021, 0.3442910611629486, -0.10489457100629807, 0.07945557683706284, 0.2439495027065277, -0.2006930410861969, 0.12063674628734589, 0.20413225889205933, 0.1614871621131897, -0.1821659952402115, 0.020874282345175743, -0.2740590572357178, -0.32334327697753906, -0.06881576776504517, -0.01563449576497078, 0.1198369562625885, -0.1766928732395172, -0.08395592123270035, 0.3564246892929077, 0.03898719325661659, -0.02690940536558628, -0.1203831285238266, 0.30149024724960327, 0.18296022713184357, -0.4852120876312256, -0.14093250036239624, -0.07228969037532806, -0.18762844800949097, 0.012351181358098984, 0.34143105149269104, 0.24763700366020203, 0.21397221088409424, 0.11561957746744156, -0.10640108585357666, 0.0933767557144165, -0.13714483380317688, 0.22248074412345886, -0.14118993282318115, 0.07441725581884384, -0.09138856828212738, 0.08587703853845596, -0.13170866668224335, -0.2374129444360733, -0.1384252905845642, -0.40012258291244507, 0.015283944085240364, 0.17810194194316864, 0.04398339241743088, 0.14078262448310852, -0.1730545312166214, -0.05411054939031601, -0.31138163805007935, -0.36805519461631775, 0.025136388838291168, 0.1643834263086319, 0.2630542516708374, 0.42665645480155945, -0.09771542251110077, 0.2875239849090576, 0.2841942310333252, 0.05660063028335571, 0.08437539637088776, -0.05911004915833473, 0.5510880947113037, -0.21195566654205322, -0.20756632089614868, -0.1972457617521286, -0.1682778149843216, 0.12386775016784668, 0.28799498081207275, -0.735027551651001, 0.25820669531822205, -0.1476229578256607, 0.05228954926133156, -0.13607297837734222, -0.04323425143957138, 0.3010391592979431, -0.2462281584739685, 0.057981930673122406, -0.019213831052184105, 0.042980555444955826, 0.07409373670816422, 0.015042448416352272, -0.21246063709259033, 0.28354528546333313, 0.42533111572265625, 0.35637804865837097, 0.8198502659797668, -0.08152444660663605, -0.1957119256258011, 0.21599680185317993, -0.24318477511405945, 0.20421744883060455, -0.21248549222946167, -0.07977616786956787, 0.0732179582118988, 0.014921307563781738, -0.019207533448934555, 0.305555522441864, -0.12085356563329697, -0.23511400818824768, -0.06570622324943542, 0.1624552309513092, 0.07112368941307068, -0.18955519795417786, 0.2537776529788971, -0.2382824718952179, 0.12286152690649033, 0.14369474351406097, 0.2271650731563568, -0.3981943726539612, -0.5145752429962158, -0.05292632803320885, -0.19155703485012054, 0.3439483940601349, -0.03879326209425926, -0.404764324426651, 0.18230679631233215, -0.7144542336463928, 0.1373090147972107, 0.05638761818408966, 0.33463820815086365, 0.10766419768333435, -0.2996100187301636, 0.023289576172828674, 0.07969068735837936, 0.6119210720062256, 0.1648482084274292, -0.0709821954369545, 0.17361591756343842, -0.15104812383651733, -0.5380706191062927, 0.01287151500582695, -0.0515645369887352, 0.03713871166110039, 0.27499714493751526, 0.1597066968679428, -0.30154427886009216, -0.5077011585235596, -0.04973550885915756, 0.006743894424289465, -0.35283440351486206, -0.06369971483945847, -0.22928279638290405, -0.15957194566726685, -0.03656722232699394, -0.3108161389827728, 0.07019130885601044, 0.23305223882198334, -0.05486329644918442, 0.035344693809747696, -0.23602722585201263, -0.07313374429941177, 0.29599931836128235, -0.007531976792961359, 0.17190706729888916, 0.5554134249687195, 0.06869763135910034, -0.05782311409711838, 0.02807154692709446, -0.2228827178478241, 0.22437657415866852, -0.04655208811163902, -0.17790278792381287, 0.020541224628686905, 0.13925333321094513, 0.4212952256202698, 0.09153447300195694, 0.04267369955778122, 0.17796459794044495, -0.18196260929107666, 0.026481598615646362, -0.23252347111701965, 0.4516884982585907, 0.10564037412405014, -0.2878835201263428, -0.11276063323020935, -0.41713815927505493, 0.5051945447921753, 0.2666364014148712, 0.09778350591659546, 0.4054194688796997, -0.1845550686120987, -0.379597544670105, 0.4747124910354614, 0.36818721890449524, 0.5930814743041992, -0.356876015663147, 0.5228301882743835, 0.6306703090667725, 0.513516366481781, 0.9229068160057068, -0.36990755796432495, 0.257859468460083, -0.10761354863643646, -0.28912612795829773, -0.03414912894368172, -0.2701137661933899, -0.3677414059638977, 0.09762564301490784, 0.1489039659500122, 0.2554052472114563, 0.059608280658721924, 0.3281604051589966, 0.22872580587863922, 0.42132335901260376, 0.40040040016174316, -0.4190789461135864, -0.13934682309627533, 0.04883744567632675, -0.00046837329864501953, -0.19989697635173798, -0.08649658411741257, -0.1306750625371933, 0.2203485369682312, -0.03784742206335068, -0.06312508136034012, 0.0927160307765007, -0.19131894409656525, 0.2733096480369568, 0.08860607445240021, -0.022878602147102356, -0.030652403831481934, 0.23595993220806122, 0.05160583555698395, -0.16254578530788422, -0.07398082315921783, -0.07821536064147949, 0.020681653171777725, 0.0128325205296278, 0.1324208378791809, -0.0732155442237854, 0.5777003169059753, -0.003746572881937027, 0.2327093780040741, 0.2019575536251068, -0.07018738240003586, -0.6475851535797119, -0.24203303456306458, -0.07746297121047974, 0.16460010409355164, 0.12083622068166733, -0.5740079283714294, 0.2775155305862427, -0.2164396345615387, 0.20163781940937042, 0.04024400934576988, 0.05791162699460983, -0.18905121088027954, 0.05720085650682449, 0.08815097063779831, -0.22422662377357483, 0.23804369568824768, 0.07987520843744278, 0.0802137702703476, 0.004342306405305862, 0.4003133177757263, 0.09414882957935333, 0.026445209980010986, 0.0004960186779499054, 0.14066728949546814, 0.3189900815486908, -0.05317329615354538, -0.035519108176231384, -0.03209932893514633, 0.2284279316663742, -0.00221542501822114, 0.3170281648635864, -0.2210981398820877, 0.04519456997513771, -0.32712382078170776, -0.22691567242145538, -0.2797812819480896, 0.4097399115562439, -0.032279398292303085, 0.17035304009914398, -0.029662184417247772, 0.23653821647167206, -0.21207337081432343, 0.2599014937877655, -0.19452975690364838, -0.0003530052490532398, 0.05574426054954529, 0.06459636986255646, -0.2063007652759552, -0.037182971835136414, 0.0859111025929451, 0.14745450019836426, 0.02978677488863468, 0.14584213495254517, -0.2863138020038605, -0.16016757488250732, -0.05519556999206543, 0.21042366325855255, 0.06890057772397995, -0.18370717763900757, -0.07681192457675934, -0.35104894638061523, -0.3054194450378418, -0.21098491549491882, 0.07133504748344421, -0.11096129566431046, -0.2526499032974243, -0.01770871877670288, -0.016698505729436874, 0.3033122420310974, -0.18731600046157837, 0.05895765498280525, -0.03881017118692398, 0.32052183151245117, -0.06789492070674896, 0.2631840407848358, 0.1721218228340149, -0.01681092381477356, -0.360975444316864, -0.11104484647512436, 0.2617630958557129, -0.12928402423858643, -0.019320882856845856, -0.3542596101760864, -0.02800440415740013, -0.24651029706001282, 0.01943330094218254, 0.3817172944545746, -0.2598594129085541, 0.011902200058102608, 0.25529181957244873, 0.07606132328510284, -0.0693090483546257, -0.13709008693695068, 0.2898460626602173, 0.01564168743789196, -0.017029281705617905, 0.21574907004833221, 0.01905529573559761, 0.2301880419254303, -0.07639646530151367, -0.0594508983194828, 0.05092695355415344, -0.45813024044036865, -0.24831092357635498, 0.3442254662513733, -0.14797495305538177, -0.04453160986304283, -0.15660026669502258, 0.15954920649528503, 0.15881983935832977, 0.2009684145450592, 0.26888608932495117, 0.2720528542995453, -0.13097885251045227, -0.08041991293430328, -0.10907348245382309, -0.29885101318359375, -0.4159930646419525, 0.43325427174568176, -0.030949220061302185, 0.5543479323387146, -0.30145928263664246, -0.04429011791944504, 0.21874704957008362, -0.28898435831069946, -0.14263546466827393, 0.2879599332809448, -0.12157300859689713, -0.09826500713825226, -0.18458320200443268, 0.0626407340168953, -0.2162010669708252, 0.20930632948875427, -0.12552738189697266, -0.242146834731102, -0.18847352266311646, 0.28286224603652954, 0.12130460888147354, 0.14187568426132202, 0.033044569194316864, 0.13925600051879883, 0.26242348551750183, -0.1684395968914032, 0.28532469272613525, -0.3038663864135742, -0.02345440536737442, -0.3080233335494995, 0.052433356642723083, 0.030013658106327057, 0.32330042123794556, -0.34771138429641724, 0.13549599051475525, 0.07323819398880005, -0.05230710655450821, -0.021849563345313072, 0.2548745572566986, 0.21410444378852844, 0.11187857389450073, 0.2443322092294693, -0.04741976410150528, -0.03806283324956894, 0.15545973181724548, 0.1356610804796219, 0.10434842109680176, -0.6335431337356567, 0.5223560333251953, 0.2589549422264099, -0.03485383093357086, 0.04822451248764992, 0.23610064387321472, -0.1764228492975235, -0.11756736040115356, 0.4929162561893463, -0.26624664664268494, 0.07922796159982681, 0.08962031453847885, 0.023243926465511322, -0.2360369861125946, 0.6891626715660095, 0.015659336000680923, 0.511536717414856, -0.1294790804386139, 0.08085699379444122, -0.4833618998527527, 0.04604034870862961, -0.1313796043395996, 0.1344793289899826, 0.24390125274658203, 0.2871466279029846, 0.15486302971839905, 0.2174820601940155, -0.37715423107147217, -0.29307109117507935, -0.07903590798377991, 0.005898565053939819, -0.12049247324466705, -0.09162601828575134, -0.4695654511451721, 0.20530197024345398, -0.06458157300949097, -0.4875361919403076, 0.05354705825448036, -0.3142366111278534, -0.10486911237239838, -0.06824807822704315, 0.20545005798339844, 0.27082714438438416, 0.3716527819633484, 0.3245227038860321, -0.059266768395900726, 0.0022978857159614563, 0.06226683408021927, -0.10009333491325378, -0.13290537893772125, -0.02840895764529705, -0.3497495949268341, -0.08344747871160507, -0.16258341073989868, 0.16818004846572876, -0.3341847062110901, 0.013359829783439636, -0.21613362431526184, -0.32348835468292236, 0.05041749030351639, -0.2010848969221115, -0.14042317867279053, 0.09030641615390778, -0.3096470534801483, 0.31978505849838257, 0.13747566938400269, 0.4710559844970703, -0.13151872158050537, -0.03896181657910347, -0.19754230976104736, 0.12544240057468414, 0.4762638211250305, -0.6969993710517883, -0.18452930450439453, 0.08059687912464142, -0.1336677074432373, 0.28647375106811523, 0.08193106204271317, -0.3468102812767029, -0.21591907739639282, 0.3673851191997528, -0.06303587555885315, -0.2189214527606964, 0.2391408085823059, 0.30469396710395813, -0.10874597728252411, -0.1180872917175293, 0.3073834180831909, -0.0826757475733757, -0.3657678961753845, -0.1998540163040161, -0.5045338273048401 ]
https://github.com/huggingface/datasets/issues/193
[Tensorflow] Use something else than `from_tensor_slices()`
Apparently we'll have to wait for the next tensorflow release to use `.from_generator` and TPU. See https://github.com/tensorflow/tensorflow/issues/34346#issuecomment-598262489
In the example notebook, the TF Dataset is built using `from_tensor_slices()` : ```python columns = ['input_ids', 'token_type_ids', 'attention_mask', 'start_positions', 'end_positions'] train_tf_dataset.set_format(type='tensorflow', columns=columns) features = {x: train_tf_dataset[x] for x in columns[:3]} labels = {"output_1": train_tf_dataset["start_positions"]} labels["output_2"] = train_tf_dataset["end_positions"] tfdataset = tf.data.Dataset.from_tensor_slices((features, labels)).batch(8) ``` But according to [official tensorflow documentation](https://www.tensorflow.org/guide/data#consuming_numpy_arrays), this will load the entire dataset to memory. **This defeats one purpose of this library, which is lazy loading.** Is there any other way to load the `nlp` dataset into TF dataset lazily ? --- For example, is it possible to use [Arrow dataset](https://www.tensorflow.org/io/api_docs/python/tfio/arrow/ArrowDataset) ? If yes, is there any code example ?
17
[Tensorflow] Use something else than `from_tensor_slices()` In the example notebook, the TF Dataset is built using `from_tensor_slices()` : ```python columns = ['input_ids', 'token_type_ids', 'attention_mask', 'start_positions', 'end_positions'] train_tf_dataset.set_format(type='tensorflow', columns=columns) features = {x: train_tf_dataset[x] for x in columns[:3]} labels = {"output_1": train_tf_dataset["start_positions"]} labels["output_2"] = train_tf_dataset["end_positions"] tfdataset = tf.data.Dataset.from_tensor_slices((features, labels)).batch(8) ``` But according to [official tensorflow documentation](https://www.tensorflow.org/guide/data#consuming_numpy_arrays), this will load the entire dataset to memory. **This defeats one purpose of this library, which is lazy loading.** Is there any other way to load the `nlp` dataset into TF dataset lazily ? --- For example, is it possible to use [Arrow dataset](https://www.tensorflow.org/io/api_docs/python/tfio/arrow/ArrowDataset) ? If yes, is there any code example ? Apparently we'll have to wait for the next tensorflow release to use `.from_generator` and TPU. See https://github.com/tensorflow/tensorflow/issues/34346#issuecomment-598262489
[ -0.13054919242858887, -0.030859217047691345, 0.03630482777953148, 0.12274189293384552, 0.22812119126319885, 0.09177538007497787, 0.273055762052536, 0.4065895974636078, -0.11111785471439362, 0.0027907490730285645, -0.08880782127380371, 0.5513769388198853, -0.15211990475654602, 0.04721122235059738, 0.31960779428482056, -0.2627650201320648, -0.0665043368935585, 0.24885903298854828, -0.12980696558952332, -0.014312583953142166, -0.04055037721991539, -0.05323093384504318, -0.09556140750646591, -0.016440466046333313, 0.015060415491461754, -0.03353533148765564, 0.05115055292844772, -0.1520289182662964, 0.4169294834136963, 0.021077200770378113, 0.35533592104911804, 0.0021883808076381683, -0.03409362584352493, 0.11227025091648102, -0.00010922730143647641, 0.3845245838165283, 0.03214515373110771, -0.14960595965385437, 0.062099095433950424, -0.07406635582447052, 0.20812693238258362, -0.22736527025699615, 0.19885015487670898, -0.2661621570587158, -0.046808645129203796, -0.005251454189419746, 0.2368554025888443, -0.03428571671247482, 0.25742512941360474, 0.11936921626329422, 0.15609531104564667, 0.5252821445465088, -0.17337916791439056, 0.2786276936531067, 0.13253049552440643, -0.15955960750579834, -0.2168978452682495, -0.27933117747306824, -0.13236503303050995, -0.010954819619655609, 0.06574568152427673, 0.14796777069568634, -0.22829373180866241, 0.09630000591278076, 0.43259814381599426, 0.15464481711387634, -0.11124949902296066, -0.3790849447250366, -0.26101574301719666, 0.4085840582847595, 0.20153608918190002, -0.0729808583855629, -0.17707021534442902, -0.4851973056793213, -0.17577502131462097, -0.2934436798095703, -0.17836540937423706, 0.08686352521181107, -0.2625953257083893, 0.18190951645374298, -0.10118158161640167, -0.12041550874710083, -0.21891902387142181, 0.12010432779788971, 0.21201136708259583, -0.03557586669921875, 0.16041873395442963, 0.11686231940984726, 0.22441333532333374, 0.10827663540840149, 0.34945443272590637, 0.08066114038228989, 0.3548696041107178, 0.3675650954246521, -0.284050315618515, -0.011491172015666962, 0.16927212476730347, -0.5806722044944763, -0.0444340817630291, -0.2525961399078369, 0.3571077287197113, 0.18533867597579956, -0.291926771402359, 0.2165088653564453, -0.013306833803653717, -0.07356646656990051, -0.4224952757358551, 0.13194596767425537, -0.13990908861160278, -0.5050936937332153, 0.04702760651707649, 0.04630618542432785, -0.22082149982452393, -0.019927863031625748, 0.06059839949011803, -0.5112514495849609, -0.1477038860321045, 0.2690732777118683, -0.28497403860092163, -0.4418405592441559, -0.23016807436943054, 0.028393076732754707, -0.014332537539303303, 0.17374618351459503, -0.12791690230369568, 0.5364354252815247, 0.1373174637556076, -0.12483666837215424, -0.28134098649024963, -0.029577914625406265, -0.2323070913553238, 0.11308950185775757, -0.06146497279405594, -0.09602828323841095, 0.15568847954273224, -0.16067266464233398, 0.17979347705841064, -0.12268899381160736, -0.12777161598205566, 0.18162134289741516, 0.25955429673194885, -0.08195061981678009, 0.10017520934343338, 0.2579149007797241, 0.01488640159368515, -0.06456964462995529, 0.03822840750217438, 0.07491414248943329, -0.21613097190856934, 0.35391756892204285, -0.5225841999053955, -0.2890223562717438, -0.04879671335220337, 0.13496717810630798, 0.08778019994497299, -0.21369048953056335, -0.3331674039363861, 0.32619598507881165, 0.12096332013607025, -0.11928156018257141, -0.18521913886070251, -0.20750492811203003, -0.423869252204895, -0.3011670410633087, 0.30410662293434143, 0.04064306616783142, -0.46133407950401306, -0.11523368954658508, 0.0065076625905931, -0.016592688858509064, 0.24931252002716064, 0.44560644030570984, -0.2329481840133667, 0.48019206523895264, -0.053435973823070526, 0.0012748688459396362, 0.7598661780357361, -0.08542105555534363, -0.16154168546199799, 0.22563152015209198, -0.12333828955888748, 0.20281259715557098, -0.004925176501274109, 0.405375212430954, 0.0003446415066719055, -0.029118528589606285, 0.38686394691467285, 0.6318569779396057, -0.15841326117515564, 0.07676459103822708, -0.1092904806137085, -0.34593310952186584, 0.30011409521102905, 0.27972111105918884, 0.09528958797454834, -0.05658236891031265, -0.26506108045578003, 0.395432710647583, 0.13062454760074615, -0.03432255610823631, -0.1820743978023529, 0.06700433790683746, -0.12869001924991608, 0.0004340708255767822, -0.17078593373298645, 0.06576801091432571, -0.602297306060791, 0.2533167600631714, 0.1912786066532135, 0.09608165174722672, 0.1893974095582962, -0.11190394312143326, 0.3626317083835602, 0.10908035188913345, 0.11826302856206894, 0.15904974937438965, 0.019094564020633698, 0.07548092305660248, -0.028345748782157898, -0.011726025491952896, -0.3443228602409363, 0.15897142887115479, -0.3754409849643707, -0.1269584447145462, -0.3489677309989929, 0.2644971013069153, 0.37324321269989014, 0.017966866493225098, -0.08455996215343475, 0.3013322353363037, -0.3664575517177582, -0.1209988221526146, 0.11764334887266159, 0.2152288556098938, -0.03057011403143406, 0.29321420192718506, -0.667224109172821, 0.4424228072166443, 0.05159863084554672, -0.02275579795241356, -0.10921364277601242, 0.1241607666015625, 0.0025711823254823685, -0.1974487006664276, 0.010840259492397308, 0.28054279088974, -0.22586102783679962, 0.14711357653141022, 0.26101332902908325, -0.2442210614681244, 0.15271632373332977, 0.06381183862686157, 0.1342630386352539, -0.11270639300346375, 0.37063583731651306, 0.09925207495689392, 0.1377703845500946, 0.2951815724372864, -0.5292930603027344, 0.23122453689575195, 0.67063969373703, -0.022198351100087166, -0.11366298049688339, 0.21687647700309753, 0.03733442351222038, -0.21183201670646667, -0.08162226527929306, -0.08116926997900009, 0.20193015038967133, 0.14578258991241455, 0.041636109352111816, 0.0004893280565738678, -0.1641397923231125, -0.258394718170166, 0.24762243032455444, 0.13116803765296936, 0.38085082173347473, -0.13959941267967224, 0.030045343562960625, 0.20352749526500702, -0.1915542185306549, 0.08323973417282104, 0.2106475532054901, 0.17547333240509033, -0.20561496913433075, 0.030216796323657036, -0.27456992864608765, -0.30668607354164124, -0.08983296900987625, 0.03501920402050018, 0.14405620098114014, -0.18368223309516907, -0.04992423951625824, 0.32946982979774475, -0.049427054822444916, -0.05361713469028473, -0.11888356506824493, 0.31492185592651367, 0.16494853794574738, -0.4449193775653839, -0.06582346558570862, -0.10550230741500854, -0.18507134914398193, 0.09022995829582214, 0.36076784133911133, 0.17744122445583344, 0.24297867715358734, 0.026394227519631386, -0.087532177567482, 0.16813039779663086, -0.07798192650079727, 0.2226693481206894, -0.11164215207099915, 0.11009372770786285, -0.04960854351520538, 0.07181616127490997, -0.12877163290977478, -0.25889232754707336, -0.11553193628787994, -0.4312821626663208, 0.053853437304496765, 0.1550910770893097, -0.0024251113645732403, 0.1485794186592102, -0.24266761541366577, -0.17587321996688843, -0.3055382966995239, -0.3943730592727661, 0.018097609281539917, 0.16430535912513733, 0.3020913600921631, 0.4260994791984558, -0.029928434640169144, 0.28222134709358215, 0.3855680823326111, 0.0524076372385025, 0.08026574552059174, -0.13831497728824615, 0.47845759987831116, -0.2761947512626648, -0.25517186522483826, -0.1560889035463333, -0.17423559725284576, 0.193047434091568, 0.31865400075912476, -0.7124729156494141, 0.14556348323822021, -0.08327431976795197, 0.08658674359321594, -0.08990930020809174, -0.04109250009059906, 0.23172426223754883, -0.20331786572933197, 0.020510660484433174, 0.004608549177646637, 0.16507449746131897, 0.14517660439014435, 0.024806443601846695, -0.204155832529068, 0.3703911006450653, 0.42371487617492676, 0.3312722146511078, 0.7575731873512268, -0.084291972219944, -0.21429260075092316, 0.23427119851112366, -0.18224932253360748, 0.19702847301959991, -0.2328152358531952, -0.06427544355392456, 0.04293891042470932, -0.013692513108253479, -0.005353279411792755, 0.22368405759334564, -0.10000763833522797, -0.19537705183029175, -0.11733940243721008, 0.2207120954990387, 0.11836228519678116, -0.23836775124073029, 0.2582304775714874, -0.21443945169448853, 0.18313242495059967, 0.11112076044082642, 0.21261024475097656, -0.32998576760292053, -0.399720162153244, -0.01931058056652546, -0.2327248901128769, 0.4178363084793091, -0.04035957530140877, -0.32866722345352173, 0.1039649248123169, -0.7131768465042114, 0.0653240978717804, 0.11960656195878983, 0.3085821270942688, 0.08994647860527039, -0.29901519417762756, -0.0069972798228263855, 0.06775609403848648, 0.5483497977256775, 0.0983361080288887, -0.08745652437210083, 0.2097490429878235, -0.17732782661914825, -0.4892938435077667, 0.03407883271574974, -0.05583759769797325, -0.078932985663414, 0.24943697452545166, 0.14017453789710999, -0.2619263231754303, -0.4913124442100525, -0.024556580930948257, -0.01641847752034664, -0.3395267724990845, -0.04881926625967026, -0.18680128455162048, -0.24344760179519653, 0.0010785721242427826, -0.3156526982784271, 0.057613663375377655, 0.2791346609592438, -0.17108549177646637, 0.020696159452199936, -0.15080350637435913, -0.0014764592051506042, 0.2122337967157364, 0.003550773486495018, 0.16318711638450623, 0.4632869362831116, 0.04739423468708992, -0.0489133819937706, -0.008088812232017517, -0.13080663979053497, 0.2240552455186844, -0.09222067892551422, -0.1522684395313263, 0.018758373335003853, 0.1585356742143631, 0.37199610471725464, 0.04845511168241501, 0.03609534353017807, 0.1285242736339569, -0.1741504967212677, 0.03312702476978302, -0.198667511343956, 0.36705347895622253, 0.08676235377788544, -0.3417383134365082, -0.08246522396802902, -0.5109409689903259, 0.5615842342376709, 0.2959670424461365, 0.12883783876895905, 0.4830285906791687, -0.19704531133174896, -0.36169517040252686, 0.5212907195091248, 0.38263070583343506, 0.5099011063575745, -0.3703691363334656, 0.5261977314949036, 0.7229403257369995, 0.4783601760864258, 0.9239938855171204, -0.3590676188468933, 0.27109044790267944, -0.12388855218887329, -0.3586634695529938, -0.028797723352909088, -0.2556563913822174, -0.37506335973739624, 0.07888816297054291, 0.10311450064182281, 0.2167329341173172, 0.1310868114233017, 0.2775278389453888, 0.21791116893291473, 0.3121579587459564, 0.3466184735298157, -0.42222923040390015, -0.1941194087266922, 0.06759977340698242, 0.02967016026377678, -0.23409542441368103, -0.08185167610645294, -0.19640441238880157, 0.2307491898536682, 0.06485652923583984, 0.020356938242912292, 0.12005945295095444, -0.18482457101345062, 0.2819260358810425, 0.1395898163318634, -0.09903116524219513, 0.04047868400812149, 0.24172712862491608, 0.12007784098386765, -0.20490695536136627, -0.10917885601520538, -0.08963598310947418, 0.06531909853219986, 0.010170808993279934, 0.1468193233013153, -0.04476494342088699, 0.6814282536506653, -0.021971970796585083, 0.19641438126564026, 0.16399022936820984, -0.07861121743917465, -0.5933406352996826, -0.18238669633865356, -0.11446298658847809, 0.08533577620983124, 0.16856376826763153, -0.5447577834129333, 0.2875630259513855, -0.19816625118255615, 0.18102921545505524, 0.09797941148281097, 0.11960028856992722, -0.20460954308509827, 0.05496568977832794, 0.05523841455578804, -0.187027245759964, 0.22112643718719482, 0.029215499758720398, 0.1272459328174591, 0.034633420407772064, 0.3529249429702759, 0.22735260426998138, 0.004736602306365967, -0.025911636650562286, 0.10443603247404099, 0.2849633991718292, -0.04618582874536514, 0.06443621963262558, 0.036645058542490005, 0.22891224920749664, 0.06418894231319427, 0.35984110832214355, -0.2269447296857834, 0.03107825294137001, -0.29190751910209656, -0.17317944765090942, -0.30188608169555664, 0.36624348163604736, -0.05979656055569649, 0.1284085065126419, -0.0037675276398658752, 0.21896614134311676, -0.12371917814016342, 0.22889836132526398, -0.24168682098388672, -0.022742677479982376, 0.005893660709261894, 0.06760480999946594, -0.12601619958877563, -0.0586395338177681, 0.06964569538831711, 0.13089969754219055, 0.06438557803630829, 0.14221811294555664, -0.37471699714660645, -0.20188727974891663, -0.04005327820777893, 0.1655956506729126, 0.03266602009534836, -0.23869450390338898, -0.0044221156276762486, -0.34728068113327026, -0.3325614929199219, -0.1648237705230713, 0.11657601594924927, -0.1250743567943573, -0.27157509326934814, 0.06031183525919914, -0.05946129187941551, 0.2978953421115875, -0.139336496591568, 0.034538522362709045, -0.10700350999832153, 0.3132719397544861, -0.08346691727638245, 0.2498146891593933, 0.09919033944606781, -0.05009331926703453, -0.31366631388664246, -0.116793192923069, 0.13764718174934387, -0.11599930375814438, 0.06822938472032547, -0.31335920095443726, -0.07454586029052734, -0.24887822568416595, 0.04287325590848923, 0.2715890407562256, -0.23715445399284363, 0.09041203558444977, 0.24579161405563354, 0.11498232185840607, -0.09760522842407227, -0.15072143077850342, 0.2068711221218109, 0.0823461264371872, -0.024317072704434395, 0.20025412738323212, 0.08809360861778259, 0.16034221649169922, -0.0639604777097702, -0.04028807580471039, 0.010187162086367607, -0.569546639919281, -0.19386866688728333, 0.40815192461013794, -0.13632303476333618, -0.014250237494707108, -0.16127163171768188, 0.09546275436878204, 0.1648011952638626, 0.21101611852645874, 0.2794184982776642, 0.22885353863239288, -0.07180029898881912, -0.0962202250957489, -0.061399005353450775, -0.35142752528190613, -0.4288904368877411, 0.44052109122276306, -0.061253055930137634, 0.5847465991973877, -0.2274620234966278, 0.03551632910966873, 0.14829789102077484, -0.21973006427288055, -0.16932711005210876, 0.2957035303115845, -0.14875125885009766, -0.0648127943277359, -0.23912526667118073, 0.06481724232435226, -0.15066927671432495, 0.29914575815200806, -0.10230991244316101, -0.2143227905035019, -0.16765964031219482, 0.2694039046764374, 0.09658115357160568, 0.22632576525211334, 0.11800223588943481, 0.07471556961536407, 0.24854037165641785, -0.1172577291727066, 0.19789005815982819, -0.26345163583755493, -0.10788586735725403, -0.3696131706237793, 0.011613020673394203, 0.09121456742286682, 0.28269636631011963, -0.3337538540363312, 0.12660978734493256, 0.07012619078159332, -0.04584919661283493, -0.020807161927223206, 0.2440703809261322, 0.23685315251350403, 0.09861922264099121, 0.30468010902404785, -0.003582589328289032, -0.056812312453985214, 0.15154996514320374, 0.15705426037311554, 0.17538699507713318, -0.5788904428482056, 0.571727991104126, 0.22617961466312408, -0.05557594448328018, -0.0059853047132492065, 0.2032666802406311, -0.08927476406097412, -0.1207641214132309, 0.5214154124259949, -0.26204994320869446, 0.036717694252729416, -0.002508381148800254, 0.04671451449394226, -0.19307366013526917, 0.6902199387550354, 0.05742121487855911, 0.4553855359554291, -0.08694522082805634, 0.04564309120178223, -0.4419500529766083, 0.09158558398485184, -0.10719560086727142, 0.21197347342967987, 0.260628342628479, 0.2983137369155884, 0.14649203419685364, 0.2051636129617691, -0.45577186346054077, -0.21373867988586426, -0.01620829850435257, 0.04839937016367912, -0.1488633155822754, -0.10379482805728912, -0.5044940114021301, 0.1245412826538086, -0.1303904801607132, -0.4423990845680237, 0.0877695232629776, -0.4213772118091583, -0.03412578999996185, -0.08691291511058807, 0.22290626168251038, 0.3233664035797119, 0.44661372900009155, 0.3336485028266907, -0.03963201493024826, -0.10492007434368134, 0.04959774762392044, -0.0795435756444931, -0.11297458410263062, -0.02745090238749981, -0.3176704943180084, -0.0786449983716011, -0.14929965138435364, 0.12864744663238525, -0.2904018461704254, -0.0474703274667263, -0.22104178369045258, -0.2627435326576233, 0.025212951004505157, -0.10299545526504517, -0.13584518432617188, 0.09924563020467758, -0.2605096995830536, 0.17538103461265564, 0.23030732572078705, 0.44776809215545654, -0.1406974345445633, -0.12991325557231903, -0.21534118056297302, 0.08180060237646103, 0.3826006054878235, -0.6044000387191772, -0.20278380811214447, 0.0683153048157692, -0.16580981016159058, 0.255498468875885, 0.06379850953817368, -0.2777387201786041, -0.21997857093811035, 0.27987366914749146, -0.12841486930847168, -0.214544877409935, 0.2562740743160248, 0.3233982026576996, -0.10076206922531128, -0.12213380634784698, 0.2780950665473938, -0.061140500009059906, -0.43306171894073486, -0.2135884165763855, -0.48651808500289917 ]
https://github.com/huggingface/datasets/issues/192
[Question] Create Apache Arrow dataset from raw text file
We store every dataset in the Arrow format. This is convenient as it supports nested types and memory mapping. If you are curious feel free to check the [pyarrow documentation](https://arrow.apache.org/docs/python/) You can use this library to load your covid papers by creating a dataset script. You can find inspiration from the ones we've already written in `/datasets`. Here is a link to the steps to [add a dataset](https://github.com/huggingface/nlp/blob/master/CONTRIBUTING.md#how-to-add-a-dataset)
Hi guys, I have gathered and preprocessed about 2GB of COVID papers from CORD dataset @ Kggle. I have seen you have a text dataset as "Crime and punishment" in Apache arrow format. Do you have any script to do it from a raw txt file (preprocessed as for BERT like) or any guide? Is the worth of send it to you and add it to the NLP library? Thanks, Manu
68
[Question] Create Apache Arrow dataset from raw text file Hi guys, I have gathered and preprocessed about 2GB of COVID papers from CORD dataset @ Kggle. I have seen you have a text dataset as "Crime and punishment" in Apache arrow format. Do you have any script to do it from a raw txt file (preprocessed as for BERT like) or any guide? Is the worth of send it to you and add it to the NLP library? Thanks, Manu We store every dataset in the Arrow format. This is convenient as it supports nested types and memory mapping. If you are curious feel free to check the [pyarrow documentation](https://arrow.apache.org/docs/python/) You can use this library to load your covid papers by creating a dataset script. You can find inspiration from the ones we've already written in `/datasets`. Here is a link to the steps to [add a dataset](https://github.com/huggingface/nlp/blob/master/CONTRIBUTING.md#how-to-add-a-dataset)
[ -0.17388330399990082, -0.06410524249076843, -0.04578719288110733, 0.06958885490894318, -0.39650118350982666, 0.13637566566467285, 0.06761070340871811, 0.40038368105888367, -0.06824354827404022, -0.3222419023513794, 0.1313437521457672, 0.18338929116725922, -0.08250489830970764, 0.07896006107330322, 0.39143165946006775, -0.04079078137874603, -0.05888613313436508, 0.28287428617477417, -0.03286176919937134, -0.03655698895454407, 0.16092807054519653, -0.021286508068442345, -0.10444420576095581, 0.007256276905536652, -0.1917186975479126, -0.34966617822647095, -0.1661537140607834, 0.15690955519676208, -0.14719237387180328, -0.41312214732170105, 0.11186306178569794, 0.08591333031654358, 0.5545090436935425, 0.15228857100009918, -0.00012087306095054373, -0.46484172344207764, 0.14617305994033813, -0.07211560755968094, -0.15252971649169922, -0.20889537036418915, -0.23260042071342468, -0.09182383865118027, 0.1721593290567398, -0.33904919028282166, 0.07731214165687561, -0.44778427481651306, 0.1712198555469513, -0.2712028920650482, 0.6657803058624268, 0.349371075630188, 0.0733591839671135, -0.10189541429281235, 0.1893395036458969, 0.22857503592967987, 0.4799525737762451, 0.5429449677467346, -0.30529192090034485, 0.15295478701591492, 0.2607792615890503, -0.20762242376804352, -0.2825189232826233, 0.15879961848258972, -0.09765492379665375, -0.23909775912761688, 0.3305787146091461, 0.11803066730499268, -0.2703993022441864, -0.33307698369026184, 0.048938002437353134, 0.3964378833770752, 0.36962562799453735, -0.4938066303730011, 0.04853864759206772, -0.05016425997018814, 0.18940643966197968, -0.48908185958862305, -0.14875227212905884, 0.6180796027183533, -0.5020700693130493, 0.3597389757633209, 0.33444300293922424, -0.38164618611335754, -0.43398404121398926, 0.1284182071685791, 0.4575878083705902, -0.07157030701637268, -0.04713980108499527, -0.07582802325487137, -0.0502898283302784, 0.17449450492858887, 0.21123681962490082, -0.24556171894073486, -0.1487576961517334, 0.34700509905815125, -0.14370539784431458, -0.16275903582572937, -0.48779404163360596, -0.20781853795051575, 0.2758219838142395, -0.0297539085149765, 0.3700712025165558, -0.13018125295639038, -0.03909526765346527, -0.09167694300413132, 0.03946376591920853, -0.09501922130584717, 0.4510580599308014, 0.20620961487293243, -0.00900270789861679, -0.2627834677696228, 0.16223551332950592, -0.0809461772441864, -0.2055869996547699, 0.09666693210601807, -0.15640957653522491, 0.03321871906518936, 0.04962457716464996, -0.19279080629348755, 0.011112416163086891, 0.006018766667693853, -0.43664783239364624, -0.02456965297460556, -0.26406314969062805, 0.2335273027420044, 0.1825595647096634, -0.09135577827692032, 0.2279806286096573, 0.3980584144592285, 0.002583324909210205, -0.19100631773471832, 0.12297537177801132, 0.07351325452327728, -0.2823691666126251, 0.2808932662010193, 0.2472345381975174, 0.04876645654439926, -0.002007101196795702, -0.09525126963853836, 0.04778275266289711, -0.3019620180130005, 0.19040565192699432, -0.01152515597641468, 0.16694170236587524, -0.11928296089172363, 0.267912894487381, 0.04077553004026413, -0.1499408334493637, -0.12755289673805237, -0.10135626792907715, 0.36921024322509766, -0.36875301599502563, -0.12114284932613373, -0.13666389882564545, -0.0014926660805940628, 0.05503527820110321, -0.14150695502758026, -0.2777963876724243, 0.25129231810569763, 0.1334351897239685, 0.1928410679101944, 0.055643968284130096, 0.2801022231578827, -0.013973351567983627, -0.2512498199939728, 0.03425130993127823, 0.476032555103302, -0.23271960020065308, 0.1828199028968811, -0.13035525381565094, 0.42202723026275635, 0.04189198836684227, 0.19998085498809814, -0.2509055435657501, 0.3373119831085205, 0.028533106669783592, 0.3784564733505249, 0.7308465242385864, -0.0782940611243248, 0.22644948959350586, 0.4033634662628174, 0.18155397474765778, -0.3522211015224457, 0.14907285571098328, -0.04322531446814537, 0.102943554520607, -0.09913015365600586, -0.30004027485847473, 0.4925096035003662, 0.11881662160158157, 0.038092903792858124, -0.07898443192243576, -0.20245936512947083, -0.18061603605747223, 0.013828214257955551, -0.14248506724834442, -0.1521221101284027, 0.09050904214382172, -0.4588908851146698, 0.47873836755752563, -0.29847657680511475, 0.40212249755859375, 0.29039692878723145, 0.04152555763721466, -0.014199256896972656, 0.24639371037483215, -0.11176834255456924, -0.18240463733673096, -0.31211745738983154, -0.40652918815612793, 0.2906283438205719, -0.254275381565094, -0.27431392669677734, -0.253953218460083, -0.11944711208343506, 0.07688549160957336, -0.0305948369204998, -0.03145690634846687, -0.24361270666122437, -0.21933606266975403, 0.01776375249028206, -0.20738865435123444, 0.25948524475097656, -0.27977174520492554, 0.13498513400554657, -0.23029495775699615, 0.21568065881729126, 0.08199533820152283, -0.19584135711193085, 0.24660909175872803, 0.23807498812675476, -0.27999481558799744, 0.14895746111869812, 0.06566032767295837, 0.1418323516845703, -0.05355491489171982, 0.20256274938583374, 0.42772915959358215, -0.28081536293029785, 0.08477272093296051, -0.6659775972366333, 0.30371004343032837, -0.04134858399629593, 0.22573690116405487, -0.11210674047470093, -0.3082045018672943, 0.44492846727371216, -0.06242268905043602, 0.19243058562278748, -0.16103309392929077, 0.018284214660525322, -0.07412055879831314, -0.030854254961013794, -0.08382148295640945, 0.1798776090145111, 0.05517177656292915, 0.43464624881744385, 0.15664002299308777, -0.15134389698505402, 0.027362331748008728, 0.0851491168141365, -0.12751853466033936, -0.17111241817474365, 0.2346557080745697, 0.2375769019126892, -0.3029527962207794, -0.10359833389520645, -0.167283296585083, 0.048393454402685165, 0.09259156882762909, 0.18483592569828033, -0.15063875913619995, -0.04035785049200058, 0.08050627261400223, -0.09687463939189911, 0.37088537216186523, -0.03018048405647278, 0.29314419627189636, -0.16108796000480652, -0.09078826010227203, -0.023355845361948013, -0.1795141100883484, -0.2806980013847351, -0.04755259305238724, 0.1384665071964264, -0.21954382956027985, 0.028408469632267952, -0.06600531935691833, -0.3738856613636017, -0.33117762207984924, 0.12961073219776154, -0.04142526909708977, 0.25273409485816956, 0.01283404789865017, -0.24280235171318054, 0.16066411137580872, 0.0032884888350963593, -0.015389051288366318, 0.5403869152069092, 0.09072685241699219, 0.0718732550740242, -0.1886593997478485, -0.522394597530365, -0.18206343054771423, 0.05640001222491264, 0.24623237550258636, 0.42041757702827454, 0.36549440026283264, -0.18795712292194366, 0.12019811570644379, -0.03721073269844055, -0.015587061643600464, 0.03923406824469566, -0.1758018583059311, -0.27563244104385376, -0.18567422032356262, 0.1290770322084427, -0.5696605443954468, -0.10519011318683624, -0.2161618173122406, 0.04164578765630722, -0.17576545476913452, -0.21181270480155945, -0.07265724241733551, -0.04017425701022148, 0.19620893895626068, -0.5246593356132507, -0.15463607013225555, -0.12683789432048798, 0.35743266344070435, 0.3072155714035034, 0.2926773130893707, -0.024483907967805862, 0.23975259065628052, 0.1166200265288353, -0.30759119987487793, -0.05353716015815735, 0.19105207920074463, -0.06540201604366302, 0.37870314717292786, -0.3172716498374939, -0.5370229482650757, 0.0119817815721035, -0.05331236124038696, -0.07275502383708954, 0.3109487295150757, -0.3548160195350647, 0.41963163018226624, 0.08230727910995483, 0.02953268215060234, -0.10327024757862091, -0.012858523055911064, 0.24516253173351288, -0.00042244140058755875, 0.06135668605566025, -0.058393463492393494, 0.09048783779144287, 0.3568633794784546, -0.12842315435409546, 0.3276354670524597, 0.3448912799358368, 0.14565660059452057, -0.0466143973171711, 0.5362745523452759, 0.2517481744289398, 0.06070605665445328, 0.17636606097221375, -0.11871398240327835, 0.07755416631698608, 0.10546073317527771, 0.03186948597431183, -0.0742824375629425, 0.12698723375797272, 0.037481337785720825, 0.18022356927394867, 0.31824973225593567, -0.32272592186927795, -0.20063059031963348, -0.2434084713459015, -0.37225034832954407, -0.193155899643898, 0.3950956165790558, -0.2958454489707947, 0.2528687119483948, -0.11756208539009094, -0.21010065078735352, -0.1779504120349884, -0.47201067209243774, -0.10274535417556763, 0.23867979645729065, 0.26414209604263306, 0.172904834151268, -0.04200565069913864, 0.36136138439178467, -0.62062668800354, 0.2994299530982971, 0.1829654723405838, -0.11638876795768738, 0.11488397419452667, 0.05378744751214981, 0.2133234143257141, 0.08678217977285385, -0.11692491173744202, 0.16836978495121002, -0.05905263125896454, -0.014314059168100357, 0.33650922775268555, -0.36891597509384155, 0.32537245750427246, -0.2826525866985321, 0.03724069520831108, 0.22013676166534424, -0.11274151504039764, -0.43968939781188965, -0.22016781568527222, 0.17403504252433777, 0.1490805596113205, -0.11088668555021286, -0.4020351767539978, 0.12999773025512695, 0.005802683532238007, -0.39609402418136597, -0.14599037170410156, 0.3968575894832611, -0.01603326015174389, -0.12497609108686447, -0.15539154410362244, -0.019663555547595024, 0.10079868882894516, 0.22278288006782532, -0.23059938848018646, 0.20117667317390442, -0.2508755624294281, 0.021771814674139023, -0.08185665309429169, 0.32781779766082764, 0.06736327707767487, -0.0015111304819583893, 0.18697291612625122, -0.22211623191833496, -0.06431373208761215, -0.39945724606513977, 0.5800675749778748, 0.17286956310272217, 0.11208903044462204, 0.1561952531337738, 0.18525145947933197, -0.3044205904006958, -0.11992872506380081, -0.011087699793279171, 0.13509510457515717, -0.11089484393596649, -0.41002434492111206, -0.38928350806236267, 0.5749373435974121, 0.04820894077420235, -0.034146327525377274, 0.2953100800514221, 0.05651593580842018, -0.2902964651584625, 0.6706217527389526, 0.20020203292369843, 1.2255797386169434, -0.17598901689052582, 0.28710755705833435, 0.05487612634897232, -0.10766918212175369, 0.5923522114753723, -0.4202050566673279, -0.21309861540794373, -0.505972146987915, 0.30423226952552795, -0.11025378108024597, -0.14544355869293213, 0.15465238690376282, 0.33180367946624756, -0.06618156284093857, 0.10463545471429825, 0.27532219886779785, -0.04574145749211311, 0.13521811366081238, 0.32488900423049927, -0.2197948694229126, -0.4144165515899658, -0.15021668374538422, -0.09407129883766174, -0.128545343875885, 0.046928681433200836, 0.11305541545152664, -0.4174153804779053, -0.320158988237381, 0.07482105493545532, -0.4243672490119934, 0.10035216063261032, -0.008133980445563793, -0.22221989929676056, -0.2661270499229431, -0.6077932715415955, 0.30851081013679504, 0.34297552704811096, 0.09421657770872116, -0.007780138403177261, -0.285155713558197, 0.09172771126031876, -0.2546539008617401, -0.3908623456954956, 0.2797313630580902, -0.12988553941249847, 0.07501453906297684, -0.1504434049129486, -0.20562145113945007, 0.15109024941921234, 0.05339127033948898, -0.2871479094028473, -0.006581857800483704, -0.22503255307674408, 0.49902939796447754, -0.12148323655128479, -0.06034510210156441, 0.32706499099731445, -0.4100147783756256, 0.005483444780111313, 0.07348661869764328, 0.3840416669845581, 0.10894761234521866, 0.05277855694293976, 0.2629638910293579, -0.2531399428844452, -0.04520702734589577, 0.1750052273273468, 0.366590678691864, -0.22578619420528412, 0.5001031160354614, 0.4196080267429352, -0.15374991297721863, -0.2953295409679413, 0.2761523425579071, 0.38889679312705994, -0.842934787273407, -0.10552599281072617, -0.008341229520738125, 0.09867765009403229, 0.01622963324189186, 0.10067218542098999, -0.07750082015991211, -0.04655412584543228, 0.01031196117401123, -0.5420805215835571, -0.2696760892868042, 0.1499100625514984, -0.09666268527507782, 0.07544481754302979, 0.398123562335968, 0.09652534127235413, 0.04153738170862198, 0.13556697964668274, -0.20735082030296326, 0.08010676503181458, 0.5916287899017334, 0.17521606385707855, 0.10622455924749374, 0.09708882868289948, 0.019882291555404663, 0.025555703788995743, -0.024785365909337997, 0.1171044260263443, 0.11115198582410812, -0.13142025470733643, -0.015419406816363335, 0.20284508168697357, -0.06086118519306183, -0.2965807616710663, -0.30982354283332825, -0.4513741731643677, -0.25553005933761597, -0.19112622737884521, -0.14729610085487366, -0.15576688945293427, -0.1328601837158203, 0.13090863823890686, 0.07797175645828247, 0.014391236007213593, -0.4827418327331543, 0.22568145394325256, -0.21510609984397888, 0.25157755613327026, -0.09725749492645264, 0.14951980113983154, -0.00027697067707777023, -0.05023368075489998, 0.04456469789147377, 0.12908315658569336, 0.24697405099868774, 0.1895882785320282, 0.5016093850135803, -0.1193629801273346, -0.04702029004693031, -0.3728879988193512, 0.20447008311748505, 0.25738203525543213, 0.09038426727056503, 0.06380897760391235, 0.29504770040512085, 0.09182345122098923, -0.2226511389017105, 0.28887248039245605, -0.23050308227539062, -0.20139378309249878, -0.1863033026456833, 0.12676456570625305, -0.021070461720228195, -0.19755703210830688, -0.31091344356536865, -0.1603405475616455, 0.18026615679264069, -0.015164066106081009, -0.3553690016269684, 0.19000379741191864, 0.22559179365634918, -0.041822027415037155, -0.13116107881069183, 0.2277488112449646, 0.2554956376552582, -0.06322714686393738, -0.05395839363336563, 0.1503235548734665, 0.7298559546470642, 0.2667447626590729, 0.14226220548152924, -0.1678468883037567, 0.04150415584445, 0.4384756088256836, 0.24947549402713776, 0.01432134211063385, 0.23090092837810516, 0.5041622519493103, 0.6058552265167236, 0.10812109708786011, -0.0487142875790596, 0.29230302572250366, 0.12374915182590485, 0.0365416519343853, -0.45995888113975525, -0.06597094237804413, -0.04848211631178856, -0.2736522853374481, -0.19247615337371826, -0.07600457966327667, -0.1473402976989746, 0.3707121014595032, 0.15805159509181976, -0.05577471852302551, 0.16497421264648438, 0.07142570614814758, 0.3248579800128937, -0.24928654730319977, 0.0821077898144722, -0.12004180252552032, 0.015363305807113647, 0.037474267184734344, 0.435831755399704, 0.3315369784832001, 0.17218990623950958, -0.1392868608236313, 0.14918869733810425, -0.00022697262465953827, -0.10717981308698654, 0.17634768784046173, 0.19603347778320312, 0.40060076117515564, 0.038439687341451645, 0.07310019433498383, 0.04524237662553787, 0.027988165616989136, -0.12604187428951263, 0.31556379795074463, -0.21342439949512482, 0.09988737106323242, -0.15060269832611084, 0.07479579001665115, -0.3740050494670868, -0.16975432634353638, 0.09984683990478516, -0.16131088137626648, 0.36334970593452454, 0.6061459183692932, -0.2328135371208191, -0.0464298315346241, -0.1182134747505188, 0.011206410825252533, -0.10334976017475128, 0.4182165861129761, 0.3434807062149048, 0.1270029991865158, -0.29066669940948486, -0.28132688999176025, -0.0470382422208786, 0.1085740402340889, -0.03955492749810219, -0.2372414618730545, -0.05329835042357445, 0.034583136439323425, 0.2613583505153656, 0.4125306010246277, 0.048846907913684845, 0.13425390422344208, -0.1178581640124321, 0.47180432081222534, -0.28801408410072327, -0.04197241738438606, 0.2731887102127075, 0.5164781212806702, -0.16281375288963318, -0.10243423283100128, 0.15228962898254395, 0.35864976048469543, -0.06448967754840851, -0.2367391139268875, -0.08922388404607773, 0.3275829553604126, -0.17799542844295502, 0.22377078235149384, -0.09077373147010803, 0.15293282270431519, -0.0516744889318943, -0.1233341172337532, 0.004620064049959183, -0.08744850009679794, 0.10571630299091339, 0.44399407505989075, 0.3223763108253479, -0.19109010696411133, -0.2652257978916168, -0.0015398338437080383, 0.04711373895406723, 0.2749512791633606, -0.28760015964508057, -0.05084807425737381, -0.2726781666278839, -0.023376589640975, -0.261773943901062, 0.14743833243846893, -0.03487563505768776, 0.28765207529067993, -0.2105463445186615, 0.11583280563354492, -0.12690135836601257, -0.13028787076473236, 0.09160217642784119, -0.25090885162353516, 0.039966385811567307, 0.26852160692214966, 0.21695378422737122, 0.5681505799293518, 0.3674052953720093, -0.5660691261291504, 0.21065351366996765, 0.23423725366592407, 0.07025448977947235, 0.10360527038574219, 0.06293885409832001, 0.002586234360933304, 0.10403279960155487, -0.016969116404652596, 0.39650630950927734, -0.058482252061367035, -0.038204655051231384, -0.46145692467689514, -0.49836617708206177 ]
https://github.com/huggingface/datasets/issues/192
[Question] Create Apache Arrow dataset from raw text file
Hello @mrm8488 and @lhoestq Is there a way to convert a dataset to Apache arrow format (locally/personal use) & use it before sending it to hugging face? Thanks :)
Hi guys, I have gathered and preprocessed about 2GB of COVID papers from CORD dataset @ Kggle. I have seen you have a text dataset as "Crime and punishment" in Apache arrow format. Do you have any script to do it from a raw txt file (preprocessed as for BERT like) or any guide? Is the worth of send it to you and add it to the NLP library? Thanks, Manu
29
[Question] Create Apache Arrow dataset from raw text file Hi guys, I have gathered and preprocessed about 2GB of COVID papers from CORD dataset @ Kggle. I have seen you have a text dataset as "Crime and punishment" in Apache arrow format. Do you have any script to do it from a raw txt file (preprocessed as for BERT like) or any guide? Is the worth of send it to you and add it to the NLP library? Thanks, Manu Hello @mrm8488 and @lhoestq Is there a way to convert a dataset to Apache arrow format (locally/personal use) & use it before sending it to hugging face? Thanks :)
[ -0.10410301387310028, -0.08714868128299713, -0.0996508002281189, 0.15440285205841064, -0.3756234049797058, 0.1595185399055481, 0.11732551455497742, 0.42783215641975403, -0.04359566420316696, -0.2937570810317993, 0.07305163890123367, 0.11510435491800308, -0.08337903022766113, 0.1475043147802353, 0.2515311539173126, -0.15385311841964722, -0.08801742643117905, 0.21654415130615234, -0.2933827340602875, 0.015711896121501923, 0.2740624248981476, -0.02474924735724926, -0.08778505027294159, 0.012240283191204071, -0.17144355177879333, -0.23625501990318298, -0.1281673163175583, -0.003314085304737091, -0.1450776308774948, -0.33768290281295776, -0.0253845676779747, -0.029353071004152298, 0.5116753578186035, 0.20511576533317566, -0.00012170407717349008, -0.34656083583831787, 0.12741750478744507, -0.004115629941225052, -0.2411186695098877, -0.20824994146823883, -0.15198740363121033, -0.009041231125593185, 0.19447512924671173, -0.3356015384197235, -0.06002114713191986, -0.37978747487068176, 0.030287202447652817, -0.46885740756988525, 0.8392427563667297, 0.3928321897983551, 0.0757717415690422, -0.16022664308547974, 0.18871387839317322, 0.2179340422153473, 0.3413509428501129, 0.551106333732605, -0.34023699164390564, -0.07742197811603546, 0.14995832741260529, 0.03337438404560089, -0.16508620977401733, 0.1985008269548416, 0.04398909956216812, -0.1532466858625412, 0.3540656268596649, -0.03162270411849022, -0.28063341975212097, -0.2210436463356018, 0.12315783649682999, 0.3263620436191559, 0.49540892243385315, -0.4750737249851227, -0.04503753036260605, -0.0119728222489357, 0.20504605770111084, -0.4249298572540283, -0.22572088241577148, 0.5759351253509521, -0.4589058458805084, 0.485477477312088, 0.14960327744483948, -0.40089473128318787, -0.45618516206741333, -0.07455511391162872, 0.39253848791122437, -0.11834445595741272, -0.104403555393219, -0.06381288915872574, -0.14212599396705627, 0.16296030580997467, 0.22700175642967224, -0.337542861700058, -0.12779344618320465, 0.26903989911079407, -0.042774926871061325, -0.21517285704612732, -0.597344696521759, -0.19733601808547974, 0.18537619709968567, 0.07733002305030823, 0.3857090175151825, -0.1129087284207344, -0.04760950058698654, -0.27837565541267395, 0.0771990567445755, -0.07277870923280716, 0.43398353457450867, 0.1329318732023239, -0.007071368396282196, -0.263256698846817, 0.17075742781162262, -0.11871517449617386, -0.09468047320842743, 0.01739911362528801, -0.1367943286895752, 0.20157113671302795, -0.010499941185116768, -0.2780987620353699, -0.03335683047771454, -0.01990911364555359, -0.3864957392215729, -0.07699958235025406, -0.21380355954170227, 0.02612876147031784, 0.20136508345603943, -0.14675599336624146, 0.22471092641353607, 0.3776323199272156, 0.05205422639846802, -0.2802135646343231, 0.17620949447155, -0.018022026866674423, -0.23208235204219818, 0.28165555000305176, 0.08700889348983765, 0.16538076102733612, -0.13530822098255157, -0.06850409507751465, -0.05829578638076782, -0.14523953199386597, 0.2524910271167755, -0.03616993874311447, 0.21758915483951569, -0.06669162213802338, 0.2069646567106247, 0.016298415139317513, -0.12016622722148895, -0.0072480663657188416, -0.07581104338169098, 0.3549627363681793, -0.1819005012512207, 0.0353412963449955, -0.04450521618127823, 0.015734653919935226, 0.07062377035617828, -0.08456870913505554, -0.23573914170265198, 0.16044281423091888, -0.003250822424888611, 0.333662748336792, 0.07030017673969269, 0.28684431314468384, 0.060523856431245804, -0.14232604205608368, -0.06134989112615585, 0.44516998529434204, -0.33855730295181274, 0.14817199110984802, -0.09775752574205399, 0.2030457705259323, -0.11506394296884537, 0.30969661474227905, -0.2214796096086502, 0.2855266034603119, -0.021732643246650696, 0.24805982410907745, 0.7609063982963562, -0.003195144236087799, 0.19536180794239044, 0.4988289177417755, 0.03261289745569229, -0.37933847308158875, 0.09234849363565445, -0.08416318893432617, -0.08584733307361603, -0.029711037874221802, -0.2868657112121582, 0.5281487107276917, 0.11185716837644577, -0.016950566321611404, -0.11940477788448334, -0.1720542311668396, -0.11659620702266693, -0.05393882095813751, -0.23231486976146698, -0.05483008176088333, 0.09218214452266693, -0.4823838174343109, 0.4895276129245758, -0.3356702923774719, 0.4532502591609955, 0.23785169422626495, 0.025121673941612244, -0.03932878375053406, 0.17496196925640106, -0.03196039795875549, -0.09866184741258621, -0.35605111718177795, -0.38796737790107727, 0.2141294777393341, -0.326967716217041, -0.23821286857128143, -0.26968327164649963, -0.12529034912586212, -0.06862187385559082, 0.08229739964008331, -0.019796296954154968, -0.23527997732162476, -0.15579481422901154, 0.014363527297973633, -0.21273468434810638, 0.3180290162563324, -0.11018692702054977, 0.1491355448961258, -0.22364482283592224, 0.11636732518672943, 0.10570807009935379, -0.004394130781292915, 0.237598717212677, 0.1367185413837433, -0.23089134693145752, 0.05242226645350456, -0.05458316206932068, 0.0032964125275611877, -0.0711127370595932, 0.1790071278810501, 0.5197829604148865, -0.2920795679092407, 0.07352710515260696, -0.6826448440551758, 0.31045329570770264, 0.017531316727399826, 0.21841365098953247, -0.10102777183055878, -0.46540287137031555, 0.4807800054550171, -0.08094488084316254, 0.19033700227737427, -0.1441081464290619, 0.0432979017496109, -0.13720978796482086, -0.11262859404087067, -0.16778388619422913, 0.1439187228679657, -0.06783472001552582, 0.35697412490844727, 0.21481406688690186, -0.09207014739513397, 0.09972026944160461, 0.031153008341789246, -0.19164396822452545, -0.19726894795894623, 0.23297196626663208, 0.21440362930297852, -0.23323768377304077, -0.07656877487897873, -0.06118122488260269, 0.04091854766011238, 0.11759459227323532, 0.14910215139389038, 0.02169143036007881, 0.0765996128320694, 0.22029854357242584, -0.1371532529592514, 0.33411866426467896, -0.13219429552555084, 0.3828597664833069, -0.15953069925308228, -0.16526362299919128, 0.021198485046625137, -0.09979034960269928, -0.1932460218667984, -0.10108209401369095, 0.14014798402786255, -0.08165821433067322, -0.038220830261707306, -0.13772667944431305, -0.4040074944496155, -0.3725430369377136, 0.2617998421192169, -0.03137866035103798, 0.25395122170448303, -0.0742645412683487, -0.4246180057525635, 0.14733323454856873, -0.1559281051158905, -0.07536609470844269, 0.5126543641090393, 0.07902267575263977, 0.06046034395694733, -0.28361693024635315, -0.39828357100486755, -0.16304045915603638, 0.07741987705230713, 0.30698469281196594, 0.4057578444480896, 0.3491528630256653, -0.08209385722875595, 0.1948648989200592, -0.1915397346019745, 0.09424609690904617, 0.027147410437464714, -0.03498131036758423, -0.30891939997673035, -0.15635022521018982, 0.1664445698261261, -0.5549857020378113, 0.11955301463603973, -0.18406997621059418, 0.11688728630542755, -0.23893506824970245, -0.279201865196228, -0.07527478784322739, -0.021391775459051132, 0.22103804349899292, -0.4112197458744049, -0.1371774822473526, -0.08414358645677567, 0.4223144054412842, 0.2339632362127304, 0.2500324845314026, -0.04165816679596901, 0.13203378021717072, 0.17086553573608398, -0.23383018374443054, -0.07233160734176636, 0.1905653178691864, -0.1538463532924652, 0.2510855197906494, -0.36824551224708557, -0.5960057377815247, -0.06363936513662338, -0.01584232598543167, 0.02100452035665512, 0.3126491904258728, -0.4215548038482666, 0.5755352973937988, -0.03536512702703476, 0.053930964320898056, -0.14537540078163147, -0.005995744839310646, 0.20333772897720337, -0.033618420362472534, 0.044098131358623505, -0.030090628191828728, 0.08547696471214294, 0.3154037594795227, -0.16932380199432373, 0.3524859845638275, 0.4192032217979431, 0.13491714000701904, 0.08188939094543457, 0.6222633123397827, 0.2455940544605255, 0.10145343840122223, 0.2365686297416687, -0.024821342900395393, 0.006417479366064072, 0.026079751551151276, 0.051902271807193756, -0.14045041799545288, 0.19511985778808594, 0.12384848296642303, 0.07361597567796707, 0.28938084840774536, -0.09587401151657104, -0.29619142413139343, -0.26517847180366516, -0.3516778349876404, -0.20116348564624786, 0.2970006763935089, -0.3599576950073242, 0.2795426845550537, -0.155970498919487, -0.21718287467956543, -0.06307205557823181, -0.3113391697406769, 0.05996723100543022, 0.12868769466876984, 0.3190678060054779, 0.1490599811077118, -0.2706946134567261, 0.3482160270214081, -0.6118107438087463, 0.349748820066452, 0.051624465733766556, -0.10029713064432144, 0.05672088637948036, 0.03056374192237854, 0.1468575894832611, 0.08642513304948807, -0.17882384359836578, 0.1109851524233818, -0.025316111743450165, 0.009351879358291626, 0.28992709517478943, -0.42268040776252747, 0.3903352618217468, -0.2288072109222412, 0.110458604991436, 0.012455664575099945, 0.12471412122249603, -0.37960681319236755, -0.2781964838504791, 0.1344011425971985, 0.24216343462467194, -0.14169573783874512, -0.3648132383823395, 0.25685328245162964, 0.008763056248426437, -0.18793915212154388, -0.1105598732829094, 0.37304601073265076, 0.020872341468930244, -0.0755394846200943, -0.19689343869686127, -0.05982215702533722, 0.15742182731628418, 0.12727198004722595, -0.328809529542923, 0.10629314184188843, -0.2729620933532715, 0.02604563906788826, 0.057546406984329224, 0.3884018063545227, 0.008847644552588463, 0.08767420053482056, 0.17699582874774933, -0.21610456705093384, -0.0689924880862236, -0.3054363429546356, 0.649840772151947, 0.22233322262763977, 0.12618429958820343, 0.13778753578662872, 0.21072612702846527, -0.2504125237464905, -0.071030393242836, -0.14615538716316223, 0.0411519855260849, -0.0688968226313591, -0.4261356294155121, -0.34913867712020874, 0.5717188119888306, 0.05395325645804405, 0.0027202293276786804, 0.19814108312129974, 0.08373119682073593, -0.27170082926750183, 0.5873887538909912, 0.2792501151561737, 1.1855223178863525, -0.27428144216537476, 0.27304956316947937, -0.13550731539726257, -0.3160175085067749, 0.42539116740226746, -0.2786793112754822, -0.2547178864479065, -0.5003958344459534, 0.4487968385219574, -0.07695730775594711, -0.15314780175685883, 0.42943111062049866, 0.41808247566223145, -0.04471522197127342, 0.023450389504432678, 0.21344678103923798, -0.19627347588539124, 0.11166694015264511, 0.4447534680366516, -0.33992746472358704, -0.30095523595809937, -0.09718876332044601, -0.05439275503158569, -0.12668201327323914, 0.14949722588062286, 0.12932363152503967, -0.44057780504226685, -0.37254348397254944, 0.08562394976615906, -0.27904343605041504, 0.06759664416313171, -0.16045653820037842, -0.2300853580236435, -0.30945295095443726, -0.6526299118995667, 0.3845910429954529, 0.3031037151813507, 0.16113732755184174, 0.018032673746347427, -0.14568108320236206, 0.06527069211006165, -0.30593740940093994, -0.21463310718536377, 0.14000818133354187, -0.09703028202056885, 0.014986120164394379, -0.1734142005443573, -0.14730997383594513, 0.13271564245224, 0.07229040563106537, -0.22374682128429413, 0.03694823384284973, -0.20663897693157196, 0.5542361736297607, -0.220248743891716, -0.05737198889255524, 0.2082989513874054, -0.38716939091682434, 0.09555812180042267, 0.074787437915802, 0.3437507748603821, 0.010053382255136967, -0.019843854010105133, 0.29231804609298706, -0.19841368496418, 0.062226079404354095, 0.19615572690963745, 0.20381397008895874, -0.19679869711399078, 0.4399953782558441, 0.384514182806015, -0.0971689224243164, -0.322623074054718, 0.5589423179626465, 0.4894665777683258, -0.7103247046470642, -0.058270830661058426, -0.0873333215713501, 0.17481033504009247, 0.0075118630193173885, 0.07378469407558441, -0.047735683619976044, -0.02427588403224945, -0.04159001260995865, -0.4507724344730377, -0.30290907621383667, 0.021305419504642487, -0.05329236760735512, 0.09318310022354126, 0.31392279267311096, 0.018153009936213493, 0.0753161609172821, 0.041915737092494965, -0.20519836246967316, 0.15909425914287567, 0.6357877254486084, 0.17778640985488892, 0.027766136452555656, 0.04229607433080673, -0.05671605095267296, -0.0001519201323390007, -0.0048279184848070145, 0.13855117559432983, 0.0704176276922226, -0.17438170313835144, -0.03296968340873718, 0.2171880453824997, -0.09015797823667526, -0.3297181725502014, -0.3392931818962097, -0.4449425935745239, -0.15493983030319214, -0.035586386919021606, -0.13536936044692993, -0.08628877252340317, -0.06770674884319305, 0.16228117048740387, 0.17669136822223663, -0.09131964296102524, -0.5623159408569336, 0.12945887446403503, -0.1023569107055664, 0.2173248827457428, -0.1320948302745819, 0.16996698081493378, 0.09857185930013657, -0.057989586144685745, 0.04792167618870735, 0.009130142629146576, 0.3277360796928406, 0.16314080357551575, 0.3537422716617584, -0.17176201939582825, 0.04795088246464729, -0.20626898109912872, 0.30295994877815247, 0.14168164134025574, -0.008554091677069664, 0.0744752287864685, 0.29503950476646423, 0.0773182138800621, -0.2086263746023178, 0.239323690533638, -0.213608056306839, -0.22185064852237701, -0.2649489939212799, 0.05970832705497742, 0.004555348306894302, 0.026557765901088715, -0.41372567415237427, -0.24392780661582947, 0.040049221366643906, 0.009618040174245834, -0.27304917573928833, 0.34262505173683167, 0.14183759689331055, -0.03672207519412041, -0.01231282390654087, 0.22880814969539642, 0.16126643121242523, -0.05761456489562988, -0.10032587498426437, 0.1408078670501709, 0.7164052724838257, 0.25883281230926514, 0.2297167181968689, -0.14957651495933533, 0.10609424859285355, 0.3407493829727173, 0.17358407378196716, 0.06045157089829445, 0.30843067169189453, 0.5016958713531494, 0.49053317308425903, -0.06533722579479218, 0.10396602004766464, 0.23329542577266693, 0.02620009332895279, 0.09245112538337708, -0.2975194454193115, -0.09762142598628998, -0.07974187284708023, -0.27052751183509827, -0.2670355439186096, -0.06595650315284729, -0.1280508190393448, 0.3783087730407715, 0.22421634197235107, 0.006519540213048458, 0.09486542642116547, 0.0762869268655777, 0.3090255558490753, -0.19678960740566254, -0.08400542289018631, -0.04792538285255432, 0.06425373256206512, 0.014820270240306854, 0.4466157853603363, 0.14851859211921692, 0.11663618683815002, -0.18219217658042908, 0.21957464516162872, -0.032384488731622696, -0.13474993407726288, 0.253315269947052, 0.2493119239807129, 0.4374343752861023, 0.024659855291247368, 0.16236263513565063, 0.037778422236442566, 0.06002858281135559, 0.010893546044826508, 0.19675010442733765, -0.16068682074546814, -0.10829749703407288, -0.04838664084672928, -0.07437454164028168, -0.455786794424057, -0.21377240121364594, 0.07236234098672867, -0.13846904039382935, 0.20172782242298126, 0.6342799067497253, -0.3023313879966736, -0.05422458425164223, -0.2243727743625641, 0.012459833174943924, -0.1151777058839798, 0.42381545901298523, 0.3466530442237854, 0.14342564344406128, -0.2957482635974884, -0.28634172677993774, -0.06824129819869995, 0.11662837117910385, -0.0230766199529171, -0.04253262281417847, -0.09624204784631729, -0.03116598166525364, 0.2795178294181824, 0.5127825736999512, 0.13442978262901306, 0.12040820717811584, -0.17573869228363037, 0.48935067653656006, -0.23794151842594147, -0.019993893802165985, 0.45011746883392334, 0.5878042578697205, -0.1501936912536621, -0.1882658302783966, 0.3224349021911621, 0.615074872970581, -0.06042812392115593, -0.19979675114154816, 0.007830634713172913, 0.33421826362609863, -0.17057199776172638, 0.2096036970615387, -0.013460589572787285, 0.09708035737276077, 0.02499554306268692, -0.09997088462114334, 0.14133448898792267, 0.032871246337890625, 0.12586289644241333, 0.5581210255622864, 0.25094476342201233, -0.17178654670715332, -0.20902152359485626, -0.06832186877727509, 0.015021747909486294, 0.23496103286743164, -0.3354087471961975, -0.08596132695674896, -0.3126033842563629, -0.09726419299840927, -0.2712614834308624, 0.04189309477806091, 0.016884110867977142, 0.3037470877170563, -0.17290417850017548, 0.012212112545967102, -0.20690616965293884, 0.023852961137890816, 0.11828330159187317, -0.27577003836631775, 0.03076782077550888, 0.36452457308769226, 0.10293453186750412, 0.6225430369377136, 0.15048006176948547, -0.4848255217075348, 0.14814817905426025, 0.3166593313217163, -0.022683121263980865, 0.26371628046035767, 0.0905403196811676, 0.05713628977537155, 0.1308138221502304, 0.010113801807165146, 0.5547733306884766, -0.0568157359957695, 0.004993593320250511, -0.5158869028091431, -0.4087068438529968 ]
https://github.com/huggingface/datasets/issues/192
[Question] Create Apache Arrow dataset from raw text file
> Is there a way to convert a dataset to Apache arrow format (locally/personal use) & use it before sending it to hugging face? Sure, to get a dataset in arrow format you can either: - [load from local files (txt, json, csv)](https://huggingface.co/nlp/loading_datasets.html?highlight=csv#from-local-files) - OR [load from python data (dict, pandas)](https://huggingface.co/nlp/loading_datasets.html?highlight=csv#from-in-memory-data) - OR [create your own dataset script](https://huggingface.co/nlp/loading_datasets.html?highlight=csv#using-a-custom-dataset-loading-script)
Hi guys, I have gathered and preprocessed about 2GB of COVID papers from CORD dataset @ Kggle. I have seen you have a text dataset as "Crime and punishment" in Apache arrow format. Do you have any script to do it from a raw txt file (preprocessed as for BERT like) or any guide? Is the worth of send it to you and add it to the NLP library? Thanks, Manu
58
[Question] Create Apache Arrow dataset from raw text file Hi guys, I have gathered and preprocessed about 2GB of COVID papers from CORD dataset @ Kggle. I have seen you have a text dataset as "Crime and punishment" in Apache arrow format. Do you have any script to do it from a raw txt file (preprocessed as for BERT like) or any guide? Is the worth of send it to you and add it to the NLP library? Thanks, Manu > Is there a way to convert a dataset to Apache arrow format (locally/personal use) & use it before sending it to hugging face? Sure, to get a dataset in arrow format you can either: - [load from local files (txt, json, csv)](https://huggingface.co/nlp/loading_datasets.html?highlight=csv#from-local-files) - OR [load from python data (dict, pandas)](https://huggingface.co/nlp/loading_datasets.html?highlight=csv#from-in-memory-data) - OR [create your own dataset script](https://huggingface.co/nlp/loading_datasets.html?highlight=csv#using-a-custom-dataset-loading-script)
[ -0.116234689950943, -0.18411695957183838, -0.0716124027967453, 0.17511990666389465, -0.3280256986618042, 0.13923603296279907, 0.11795880645513535, 0.3817426264286041, 0.0022514574229717255, -0.27272260189056396, 0.05691484361886978, 0.09839997440576553, -0.07723798602819443, 0.2192147970199585, 0.31097957491874695, -0.05802765488624573, -0.10293164104223251, 0.18729180097579956, -0.28998062014579773, 0.034197017550468445, 0.24861136078834534, 0.023549899458885193, -0.06273795664310455, 0.014808066189289093, -0.1860497146844864, -0.21685855090618134, -0.12375998497009277, 0.10292913019657135, -0.11955953389406204, -0.4056253135204315, 0.045382060110569, -0.025018852204084396, 0.5199140310287476, 0.1765509396791458, -0.0001225578016601503, -0.30129382014274597, 0.14918234944343567, -0.008922038599848747, -0.25595879554748535, -0.3521427512168884, -0.09115917980670929, -0.05141770839691162, 0.302227646112442, -0.2763148844242096, -0.136652410030365, -0.36661362648010254, 0.044753991067409515, -0.4632771909236908, 0.8944173455238342, 0.3823666572570801, 0.06688187271356583, -0.06973147392272949, 0.12017308175563812, 0.1746981143951416, 0.29358869791030884, 0.6498958468437195, -0.29852038621902466, 0.017333539202809334, 0.22698621451854706, -0.02760425955057144, -0.18706896901130676, 0.21038751304149628, 0.033502787351608276, -0.1601586490869522, 0.4182697534561157, 0.032942961901426315, -0.3197295367717743, -0.2667316496372223, 0.10459945350885391, 0.2918638288974762, 0.44357267022132874, -0.5081271529197693, -0.06863629072904587, -0.15882959961891174, 0.19593679904937744, -0.40478429198265076, -0.20237350463867188, 0.5912526249885559, -0.45607447624206543, 0.48500069975852966, 0.11115633696317673, -0.33012712001800537, -0.4546760618686676, -0.02336733043193817, 0.4130193591117859, -0.11923126876354218, -0.142425075173378, -0.0342210978269577, -0.08781947195529938, 0.11395914852619171, 0.1446622908115387, -0.3402824103832245, -0.08196930587291718, 0.2702946960926056, -0.030417192727327347, -0.14818450808525085, -0.5688719749450684, -0.11655467003583908, 0.2962394952774048, 0.1948116421699524, 0.3581250309944153, -0.14922961592674255, -0.08302731812000275, -0.24126344919204712, 0.11707901954650879, -0.03598468005657196, 0.4621580243110657, 0.12294954806566238, -0.02287840098142624, -0.1033879965543747, 0.21610581874847412, -0.11804725974798203, -0.07146741449832916, -0.00716026034206152, -0.1958082765340805, 0.1252121925354004, 0.06821325421333313, -0.35838785767555237, -0.06369675695896149, -0.06358230113983154, -0.31606072187423706, -0.06485694646835327, -0.16414399445056915, 0.12130014598369598, 0.15003055334091187, -0.14854136109352112, 0.20260129868984222, 0.4209899306297302, 0.0024552084505558014, -0.23466065526008606, 0.13133785128593445, -0.01091805100440979, -0.28929057717323303, 0.3412548303604126, 0.1514548510313034, 0.04102613031864166, -0.033678121864795685, -0.06513314694166183, 0.041876308619976044, -0.18663866817951202, 0.21144536137580872, 0.0035030124709010124, 0.25545641779899597, -0.027918566018342972, 0.22552046179771423, 0.05125443637371063, -0.08152410387992859, -0.015555810183286667, -0.1415528804063797, 0.31942272186279297, -0.19716128706932068, -0.0013485625386238098, -0.01955253817141056, -0.012565611861646175, -0.0712689459323883, -0.11709240078926086, -0.29664403200149536, 0.1667174994945526, -0.055330000817775726, 0.34108322858810425, 0.051545821130275726, 0.30411291122436523, -0.004430517554283142, -0.15689989924430847, 0.06064525991678238, 0.5751587748527527, -0.279840350151062, 0.07748079299926758, -0.06367824226617813, 0.19212467968463898, -0.13204070925712585, 0.32104629278182983, -0.2403278797864914, 0.20451673865318298, -0.10772141814231873, 0.2150871902704239, 0.6738166213035583, -0.11156879365444183, 0.16387373208999634, 0.5188354849815369, 0.056449443101882935, -0.23707477748394012, 0.11921386420726776, -0.1164141595363617, -0.07434361428022385, -0.0028069992549717426, -0.3140345811843872, 0.5571510195732117, 0.08260876685380936, 0.01825551874935627, -0.12995709478855133, -0.21523615717887878, -0.09700998663902283, 0.004683036357164383, -0.2340569943189621, -0.014257833361625671, 0.06036331132054329, -0.5500683784484863, 0.48523077368736267, -0.3260754942893982, 0.40038755536079407, 0.23203307390213013, 0.002530176192522049, 0.022987477481365204, 0.13997326791286469, -0.03116561844944954, -0.2683030068874359, -0.2566063106060028, -0.31449970602989197, 0.22397629916667938, -0.45106780529022217, -0.24881388247013092, -0.32507485151290894, -0.1321389377117157, -0.1072458028793335, -0.021121729165315628, -0.06251726299524307, -0.20799556374549866, -0.10984998941421509, 0.05302026495337486, -0.21073850989341736, 0.36422255635261536, -0.05452919006347656, 0.24731121957302094, -0.3691833019256592, 0.12507249414920807, 0.13142308592796326, -0.010291284881532192, 0.23380392789840698, 0.17634500563144684, -0.18964049220085144, 0.03401165083050728, 0.007023366633802652, 0.08414438366889954, 0.010061623528599739, 0.20413397252559662, 0.4599422514438629, -0.27060604095458984, 0.12420620769262314, -0.7130147814750671, 0.2794928550720215, 0.00742559228092432, 0.18464571237564087, -0.09204736351966858, -0.48254677653312683, 0.5747972130775452, -0.1449294239282608, 0.23111090064048767, -0.14596480131149292, 0.02744261734187603, -0.13340246677398682, -0.07772457599639893, -0.2256118804216385, 0.06281192600727081, -0.03213805332779884, 0.32594093680381775, 0.3570253252983093, -0.12372742593288422, 0.01725366711616516, 0.03389190137386322, -0.22877931594848633, -0.22015053033828735, 0.15034854412078857, 0.2633678615093231, -0.24480047821998596, -0.07236340641975403, -0.03271186351776123, -0.008668329566717148, 0.11415642499923706, 0.17046137154102325, -0.02507413551211357, 0.12046808749437332, 0.20249785482883453, -0.14061763882637024, 0.304522305727005, -0.10037055611610413, 0.41077423095703125, -0.177536278963089, -0.13777607679367065, -0.012871299870312214, -0.12090424448251724, -0.23075734078884125, -0.16143400967121124, 0.10699722915887833, -0.1770554482936859, -0.008561945520341396, -0.16584232449531555, -0.49550172686576843, -0.41690945625305176, 0.23199589550495148, -0.06793111562728882, 0.25156381726264954, -0.16291962563991547, -0.33356773853302, 0.12842467427253723, -0.1341257244348526, -0.10173054039478302, 0.47346192598342896, -0.007049500942230225, 0.016294995322823524, -0.27715033292770386, -0.38154298067092896, -0.16488176584243774, 0.06597542762756348, 0.36865124106407166, 0.4183351397514343, 0.3976895809173584, -0.12005102634429932, 0.13771885633468628, -0.1911899447441101, 0.014920823276042938, 0.04858486354351044, -0.09082598984241486, -0.21377746760845184, -0.12403157353401184, 0.1324925273656845, -0.5243586897850037, 0.0738316997885704, -0.1173047199845314, 0.08368199318647385, -0.23695889115333557, -0.28719207644462585, -0.09819810092449188, 0.013112606480717659, 0.14931590855121613, -0.39084842801094055, -0.16516411304473877, -0.10185378789901733, 0.502617597579956, 0.25109127163887024, 0.19040563702583313, 0.0437585674226284, 0.10605861991643906, 0.13195757567882538, -0.2570899426937103, -0.10649944096803665, 0.1840863972902298, -0.20155000686645508, 0.29774659872055054, -0.39212626218795776, -0.584561824798584, -0.11088413000106812, -0.006885038688778877, 0.034187790006399155, 0.28568214178085327, -0.46180611848831177, 0.41268256306648254, -0.07110324501991272, 0.07117271423339844, -0.1178862601518631, -0.01039561815559864, 0.20418259501457214, -0.025251518934965134, 0.08497030287981033, -0.020421404391527176, -0.01728113740682602, 0.2986921966075897, -0.2002994418144226, 0.2878694534301758, 0.42546918988227844, 0.17232224345207214, 0.05806073173880577, 0.5829062461853027, 0.3013729155063629, 0.10892751812934875, 0.28402912616729736, -0.08005785197019577, 0.05360983684659004, -0.02631320059299469, 0.013505032286047935, -0.20941539108753204, 0.12492327392101288, 0.14099813997745514, 0.10728847235441208, 0.3072514832019806, -0.03692921996116638, -0.3321255147457123, -0.2866523265838623, -0.41476577520370483, -0.21308203041553497, 0.3038920760154724, -0.3870820999145508, 0.23486006259918213, -0.18260981142520905, -0.18359419703483582, -0.07116402685642242, -0.31488844752311707, 0.050903771072626114, 0.22340331971645355, 0.3517570197582245, 0.20501157641410828, -0.2665770649909973, 0.428185373544693, -0.6509033441543579, 0.36899179220199585, 0.05844459682703018, -0.1497979611158371, 0.05009743198752403, -0.004402436316013336, 0.17924988269805908, 0.07588133960962296, -0.10500702261924744, 0.1694638431072235, -0.018786229193210602, -0.022987451404333115, 0.14634141325950623, -0.5188406109809875, 0.3962394893169403, -0.17134425044059753, 0.027793414890766144, 0.012688178569078445, 0.19453535974025726, -0.43167951703071594, -0.3492636978626251, 0.11258245259523392, 0.22321569919586182, -0.12154275178909302, -0.3311591148376465, 0.21770237386226654, -0.060272347182035446, -0.2420446276664734, -0.06904520839452744, 0.37267541885375977, 0.03390015661716461, -0.04761394113302231, -0.1307656466960907, -0.04701980948448181, 0.12143244594335556, 0.113387331366539, -0.26113733649253845, 0.13783752918243408, -0.28408893942832947, 0.09319931268692017, 0.1468055248260498, 0.4258967936038971, 0.07082571089267731, 0.21173296868801117, 0.13413198292255402, -0.34086236357688904, -0.12266562134027481, -0.2233578860759735, 0.6217303276062012, 0.2724982500076294, 0.1529473513364792, 0.09791522473096848, 0.2817005217075348, -0.21737496554851532, -0.17630141973495483, -0.0922015905380249, 0.02914373204112053, -0.06998017430305481, -0.4213854968547821, -0.37580639123916626, 0.5728222131729126, 0.03647764399647713, -0.02153906226158142, 0.15765103697776794, 0.14217393100261688, -0.2886928617954254, 0.5798208117485046, 0.2426300346851349, 1.1859320402145386, -0.28146761655807495, 0.3137071430683136, -0.035962626338005066, -0.3606172800064087, 0.5188565850257874, -0.20172877609729767, -0.2778557538986206, -0.49516570568084717, 0.38379746675491333, -0.044906552881002426, -0.18553084135055542, 0.37482839822769165, 0.3764267563819885, -0.030154624953866005, 0.12418857961893082, 0.16666431725025177, -0.12160569429397583, 0.05953564494848251, 0.4754534959793091, -0.3123106360435486, -0.3469763696193695, -0.15084628760814667, -0.07249139249324799, -0.14247502386569977, 0.23283177614212036, 0.1278475522994995, -0.4553182125091553, -0.3689221441745758, 0.0639018639922142, -0.2599177956581116, 0.10600904375314713, -0.21665430068969727, -0.24640659987926483, -0.26378610730171204, -0.6389378905296326, 0.4127872884273529, 0.36399316787719727, 0.22060608863830566, -0.04784120246767998, -0.21090328693389893, 0.08878713846206665, -0.36310482025146484, -0.18495942652225494, 0.12916630506515503, -0.1481274515390396, 0.03022741712629795, -0.1457619071006775, -0.11701904237270355, 0.03543075546622276, 0.11575962603092194, -0.17766134440898895, -0.019819200038909912, -0.19169645011425018, 0.4527115821838379, -0.2664203941822052, -0.10803943872451782, 0.19887110590934753, -0.2783823311328888, 0.08723273873329163, 0.03405510261654854, 0.3113633096218109, 0.04984867200255394, -0.07525189965963364, 0.27844640612602234, -0.2262175977230072, 0.027817796915769577, 0.22859454154968262, 0.16524961590766907, -0.2648726999759674, 0.4430112838745117, 0.42587578296661377, -0.09706979990005493, -0.2546083927154541, 0.4642236828804016, 0.5814706683158875, -0.804547131061554, -0.023883376270532608, -0.05021994188427925, 0.1676584929227829, 0.024947987869381905, 0.11201488971710205, -0.013125337660312653, -0.09906908124685287, 0.035189781337976456, -0.4654942750930786, -0.3229873478412628, 0.08474762737751007, -0.05763592943549156, 0.10016041994094849, 0.335185706615448, 0.10849274694919586, 0.05705329775810242, 0.06976870447397232, -0.1920592039823532, 0.17547227442264557, 0.6514866948127747, 0.16727988421916962, 0.12899896502494812, 0.04435659572482109, 0.05866868793964386, -0.010351933538913727, -0.029423914849758148, 0.15425348281860352, 0.03348425030708313, -0.14044451713562012, -0.0553131140768528, 0.2243407666683197, -0.11151158064603806, -0.3583469092845917, -0.3070652186870575, -0.35294049978256226, -0.050478119403123856, -0.14498618245124817, -0.04875122755765915, -0.062427595257759094, -0.048514485359191895, 0.11967745423316956, 0.09116701036691666, -0.06606320291757584, -0.5188177227973938, 0.16587619483470917, -0.12332569062709808, 0.21302875876426697, -0.027788590639829636, 0.1678667664527893, -0.014582040719687939, -0.09240470081567764, 0.06336025893688202, 0.019591744989156723, 0.3470749855041504, 0.20046573877334595, 0.33112576603889465, -0.1111033707857132, -0.019029265269637108, -0.20461232960224152, 0.34920981526374817, 0.1420447826385498, 0.04396376013755798, 0.04862730950117111, 0.3234454393386841, 0.061218053102493286, -0.19304776191711426, 0.24553295969963074, -0.17272010445594788, -0.1886155903339386, -0.25194239616394043, 0.09885306656360626, 0.03157617524266243, 0.10778144001960754, -0.44963473081588745, -0.23619279265403748, 0.17203699052333832, 0.06814953684806824, -0.25897499918937683, 0.27036574482917786, 0.14384512603282928, -0.039956796914339066, -0.007923135533928871, 0.27942946553230286, 0.22925108671188354, -0.08278052508831024, -0.14109385013580322, 0.17375048995018005, 0.6221065521240234, 0.3592698276042938, 0.29032203555107117, -0.23674076795578003, 0.06427214294672012, 0.3366842269897461, 0.1842474788427353, 0.03932669013738632, 0.20483273267745972, 0.6484082937240601, 0.5068115592002869, -0.07449322938919067, 0.11960957199335098, 0.29356759786605835, 0.04900968819856644, 0.030896823853254318, -0.25908637046813965, -0.08743657916784286, -0.1244530975818634, -0.1997785121202469, -0.26839855313301086, -0.15598942339420319, -0.07701197266578674, 0.32390689849853516, 0.19428856670856476, -0.028334414586424828, 0.028101332485675812, 0.09170053899288177, 0.3089791536331177, -0.17272505164146423, 0.022006362676620483, 0.001508079469203949, 0.01093362644314766, 0.04089779034256935, 0.431857705116272, 0.24735590815544128, 0.09488572925329208, -0.12778747081756592, 0.2288215160369873, 0.026229271665215492, -0.09294793754816055, 0.21523083746433258, 0.19966061413288116, 0.3968433439731598, 0.03586272895336151, 0.18723513185977936, 0.037547752261161804, 0.06753232330083847, -0.05572867766022682, 0.1819804161787033, -0.15538360178470612, -0.078666552901268, -0.15033337473869324, -0.0515294075012207, -0.3914930820465088, -0.19860784709453583, 0.06892617046833038, -0.17805638909339905, 0.2038503736257553, 0.5880892872810364, -0.24701939523220062, -0.049937326461076736, -0.1666356772184372, 0.0004346109926700592, -0.03191429749131203, 0.45689594745635986, 0.3662321865558624, 0.1416303515434265, -0.3024468421936035, -0.3249174952507019, -0.13995321094989777, 0.0904625952243805, -0.014411058276891708, -0.0964348316192627, -0.05399148911237717, -0.05557648092508316, 0.223050057888031, 0.4540477395057678, 0.023300446569919586, 0.17148062586784363, -0.12571370601654053, 0.4537197947502136, -0.22176800668239594, -0.0101136714220047, 0.3725590109825134, 0.5218805074691772, -0.10128173977136612, -0.13284339010715485, 0.2542351186275482, 0.5032441020011902, -0.09317484498023987, -0.15732836723327637, 0.05690617114305496, 0.23135706782341003, -0.2506229281425476, 0.2001686692237854, 0.035372596234083176, 0.1330990344285965, -0.007060680538415909, -0.1503179967403412, 0.09966811537742615, -0.027995077893137932, 0.05913582816720009, 0.6108748316764832, 0.24947208166122437, -0.10200657695531845, -0.217057004570961, -0.1134122759103775, -0.0557875894010067, 0.28597480058670044, -0.258323609828949, -0.12872764468193054, -0.3091922700405121, -0.06209016591310501, -0.24192377924919128, 0.025370586663484573, 0.0015789680182933807, 0.4026339650154114, -0.1552552431821823, 0.06434914469718933, -0.16876128315925598, -0.04738239943981171, 0.2202804982662201, -0.3101290166378021, 0.08213436603546143, 0.3282679319381714, 0.12444256991147995, 0.6768018007278442, 0.10875973850488663, -0.5213274955749512, 0.19877073168754578, 0.274139940738678, 0.004108661785721779, 0.21930521726608276, 0.09368596971035004, 0.05322803184390068, 0.0733022689819336, -0.03502907603979111, 0.45862337946891785, -0.029533658176660538, -0.029490653425455093, -0.42908328771591187, -0.43094921112060547 ]
https://github.com/huggingface/datasets/issues/192
[Question] Create Apache Arrow dataset from raw text file
> > Is there a way to convert a dataset to Apache arrow format (locally/personal use) & use it before sending it to hugging face? > > Sure, to get a dataset in arrow format you can either: > > * [load from local files (txt, json, csv)](https://huggingface.co/nlp/loading_datasets.html?highlight=csv#from-local-files) > > * OR [load from python data (dict, pandas)](https://huggingface.co/nlp/loading_datasets.html?highlight=csv#from-in-memory-data) > > * OR [create your own dataset script](https://huggingface.co/nlp/loading_datasets.html?highlight=csv#using-a-custom-dataset-loading-script) Links were broken. Updated links provided as below - [load from local files (txt, json, csv)](https://huggingface.co/docs/datasets/loading_datasets.html#from-local-or-remote-files) - [load from python data (dict, pandas)](https://huggingface.co/docs/datasets/loading_datasets.html#from-in-memory-data) - [create your own dataset script](https://huggingface.co/docs/datasets/loading_datasets.html#using-a-custom-dataset-loading-script)
Hi guys, I have gathered and preprocessed about 2GB of COVID papers from CORD dataset @ Kggle. I have seen you have a text dataset as "Crime and punishment" in Apache arrow format. Do you have any script to do it from a raw txt file (preprocessed as for BERT like) or any guide? Is the worth of send it to you and add it to the NLP library? Thanks, Manu
96
[Question] Create Apache Arrow dataset from raw text file Hi guys, I have gathered and preprocessed about 2GB of COVID papers from CORD dataset @ Kggle. I have seen you have a text dataset as "Crime and punishment" in Apache arrow format. Do you have any script to do it from a raw txt file (preprocessed as for BERT like) or any guide? Is the worth of send it to you and add it to the NLP library? Thanks, Manu > > Is there a way to convert a dataset to Apache arrow format (locally/personal use) & use it before sending it to hugging face? > > Sure, to get a dataset in arrow format you can either: > > * [load from local files (txt, json, csv)](https://huggingface.co/nlp/loading_datasets.html?highlight=csv#from-local-files) > > * OR [load from python data (dict, pandas)](https://huggingface.co/nlp/loading_datasets.html?highlight=csv#from-in-memory-data) > > * OR [create your own dataset script](https://huggingface.co/nlp/loading_datasets.html?highlight=csv#using-a-custom-dataset-loading-script) Links were broken. Updated links provided as below - [load from local files (txt, json, csv)](https://huggingface.co/docs/datasets/loading_datasets.html#from-local-or-remote-files) - [load from python data (dict, pandas)](https://huggingface.co/docs/datasets/loading_datasets.html#from-in-memory-data) - [create your own dataset script](https://huggingface.co/docs/datasets/loading_datasets.html#using-a-custom-dataset-loading-script)
[ -0.10381609201431274, -0.24665021896362305, -0.06382947415113449, 0.17847305536270142, -0.2581138610839844, 0.14280226826667786, 0.13778433203697205, 0.3953750729560852, 0.005326271057128906, -0.23535607755184174, 0.05492749065160751, 0.08730418980121613, -0.07449166476726532, 0.24664120376110077, 0.3077543079853058, -0.062126196920871735, -0.09983674436807632, 0.1523500680923462, -0.2911970019340515, 0.03616132587194443, 0.22731027007102966, 0.06330632418394089, -0.03549310564994812, 0.001738712191581726, -0.1646287441253662, -0.17962011694908142, -0.13395261764526367, 0.15594415366649628, -0.12169120460748672, -0.4069453477859497, 0.03382619470357895, -0.012788794934749603, 0.4881340563297272, 0.20703376829624176, -0.0001221136626554653, -0.27765166759490967, 0.14784106612205505, -0.026155300438404083, -0.30587509274482727, -0.3625965118408203, -0.07491224259138107, -0.035404182970523834, 0.3130245506763458, -0.2594717741012573, -0.1411256492137909, -0.3375341296195984, 0.030872927978634834, -0.5021823644638062, 0.9540096521377563, 0.3575791120529175, 0.07781834900379181, -0.010853128507733345, 0.13658098876476288, 0.15177717804908752, 0.2576148509979248, 0.6586978435516357, -0.2925233542919159, 0.11501708626747131, 0.19383490085601807, -0.02440711483359337, -0.17511656880378723, 0.23265399038791656, 0.05347651243209839, -0.19045202434062958, 0.4256589114665985, 0.02979518100619316, -0.2974013686180115, -0.2786620557308197, 0.11648933589458466, 0.28146058320999146, 0.44270625710487366, -0.5092776417732239, -0.10945714265108109, -0.18499821424484253, 0.17649570107460022, -0.4072858691215515, -0.21058163046836853, 0.5788424611091614, -0.42143407464027405, 0.49629098176956177, 0.10223187506198883, -0.3290169835090637, -0.4584329128265381, -0.029831968247890472, 0.3706861734390259, -0.13750025629997253, -0.17744088172912598, -0.039758771657943726, -0.06962881982326508, 0.0811895877122879, 0.08569791913032532, -0.307533860206604, -0.08145835995674133, 0.26808813214302063, -0.011110726743936539, -0.12821121513843536, -0.5387440919876099, -0.07294244319200516, 0.3124311864376068, 0.2473570853471756, 0.3776051104068756, -0.12003984302282333, -0.09134268760681152, -0.24728891253471375, 0.12419918179512024, -0.011931362561881542, 0.4723646342754364, 0.13302204012870789, -0.041400618851184845, -0.01387874037027359, 0.2262936532497406, -0.11951031535863876, -0.06313961744308472, -0.01822248101234436, -0.2306060642004013, 0.11239562928676605, 0.08622704446315765, -0.36194732785224915, -0.09446657449007034, -0.06585613638162613, -0.27617666125297546, -0.0630844309926033, -0.15109385550022125, 0.1806652843952179, 0.15411220490932465, -0.13513344526290894, 0.21013784408569336, 0.40795373916625977, -0.01367797888815403, -0.23693275451660156, 0.1156051754951477, 0.018184632062911987, -0.3199978470802307, 0.36898598074913025, 0.13202160596847534, 0.022720951586961746, -0.028074027970433235, -0.0658751055598259, 0.11327242851257324, -0.19923008978366852, 0.1252095252275467, 0.04172329232096672, 0.298028826713562, -0.024846646934747696, 0.19258596003055573, 0.05373218655586243, -0.05125551298260689, -0.04654434695839882, -0.14342468976974487, 0.2823871374130249, -0.20035511255264282, -0.033387232571840286, -0.0391925647854805, -0.010477895848453045, -0.10535197705030441, -0.09487776458263397, -0.31964123249053955, 0.16404388844966888, -0.061796657741069794, 0.31046637892723083, 0.0635950043797493, 0.2971036434173584, -0.04757395386695862, -0.16136570274829865, 0.10084701329469681, 0.6478849053382874, -0.28757867217063904, 0.02150280773639679, -0.06184889003634453, 0.183853879570961, -0.13003039360046387, 0.31828221678733826, -0.2305368036031723, 0.17604894936084747, -0.15175391733646393, 0.19498313963413239, 0.6005387306213379, -0.19474191963672638, 0.14638207852840424, 0.5530229806900024, 0.030730508267879486, -0.18414266407489777, 0.12379706650972366, -0.1598476767539978, -0.04848170652985573, -0.021533485502004623, -0.30503377318382263, 0.4839857220649719, 0.10623061656951904, 0.02136729098856449, -0.1362445205450058, -0.21838101744651794, -0.1014779806137085, 0.00835849717259407, -0.23398877680301666, 0.010812386870384216, 0.08681614696979523, -0.5371931195259094, 0.48456621170043945, -0.3358575999736786, 0.4039580821990967, 0.25893381237983704, 0.010870471596717834, 0.04477259889245033, 0.13817603886127472, -0.02748250588774681, -0.3719765245914459, -0.23601654171943665, -0.326075941324234, 0.22183305025100708, -0.49368637800216675, -0.24733678996562958, -0.36596235632896423, -0.13328807055950165, -0.127251535654068, -0.05358777567744255, -0.05949170142412186, -0.19274213910102844, -0.08317501842975616, 0.05463596060872078, -0.20779119431972504, 0.3624393045902252, -0.020730044692754745, 0.290292352437973, -0.42422279715538025, 0.1404147446155548, 0.12571822106838226, -0.03518843650817871, 0.2239377796649933, 0.1718888282775879, -0.15816020965576172, 0.018108684569597244, 0.01603810489177704, 0.15161554515361786, 0.0233540590852499, 0.2720308005809784, 0.41345474123954773, -0.2655681371688843, 0.15959444642066956, -0.7020244598388672, 0.24403499066829681, -0.0013476144522428513, 0.15415333211421967, -0.07276628166437149, -0.49279025197029114, 0.5850875973701477, -0.15947595238685608, 0.23653623461723328, -0.11369416117668152, 0.04583560675382614, -0.1465977430343628, -0.05029701814055443, -0.27698102593421936, -0.015432387590408325, -0.026661094278097153, 0.31948062777519226, 0.3679344058036804, -0.1649453490972519, -0.009388826787471771, 0.060862988233566284, -0.2095651626586914, -0.2168572098016739, 0.08590313792228699, 0.2525254786014557, -0.22860431671142578, -0.0456504262983799, -0.03324614465236664, 0.007867854088544846, 0.13343830406665802, 0.1866687834262848, -0.012051720172166824, 0.14991545677185059, 0.22425201535224915, -0.14598119258880615, 0.31258729100227356, -0.08368255198001862, 0.3818780183792114, -0.16667234897613525, -0.13193544745445251, -0.037921641021966934, -0.13725236058235168, -0.2523627281188965, -0.18870414793491364, 0.0777626559138298, -0.24126288294792175, -0.013433831743896008, -0.21880558133125305, -0.49390262365341187, -0.4372240900993347, 0.19458001852035522, -0.10456036031246185, 0.21054717898368835, -0.19743658602237701, -0.3020334839820862, 0.06805574893951416, -0.11809378117322922, -0.1073358952999115, 0.4336646497249603, -0.03282862529158592, 0.0033760126680135727, -0.3064669966697693, -0.3647989332675934, -0.1459997594356537, 0.0635383129119873, 0.3600877523422241, 0.3919004797935486, 0.39566749334335327, -0.17879566550254822, 0.10908520221710205, -0.2133389115333557, -0.019625332206487656, 0.08521977066993713, -0.12054948508739471, -0.18729108572006226, -0.07111871242523193, 0.1386776566505432, -0.5521188378334045, 0.03716716542840004, -0.07007566094398499, 0.07591326534748077, -0.24936021864414215, -0.2937633991241455, -0.07624349743127823, 0.037773653864860535, 0.10570387542247772, -0.3790569305419922, -0.1407456248998642, -0.1363106220960617, 0.5363702178001404, 0.2632986307144165, 0.1816893219947815, 0.09721603244543076, 0.11462769657373428, 0.12139138579368591, -0.28668099641799927, -0.1028631404042244, 0.1399904042482376, -0.23105619847774506, 0.31587010622024536, -0.4142164885997772, -0.5795695185661316, -0.1270984411239624, 0.03403333202004433, 0.07332143187522888, 0.26227474212646484, -0.44489187002182007, 0.361167311668396, -0.0689750611782074, 0.07492375373840332, -0.13153281807899475, 0.0017093643546104431, 0.20831921696662903, -0.002677688840776682, 0.08475250005722046, -0.027485977858304977, -0.024353740736842155, 0.2768828272819519, -0.23940816521644592, 0.2586248219013214, 0.3798023462295532, 0.20958203077316284, 0.06886599957942963, 0.5874850749969482, 0.31607890129089355, 0.11209897696971893, 0.28975749015808105, -0.13489994406700134, 0.12639577686786652, -0.036957889795303345, -0.01451791450381279, -0.21152126789093018, 0.08866853266954422, 0.1501334309577942, 0.12039101868867874, 0.3008396029472351, 0.03977113217115402, -0.3524121642112732, -0.2733558118343353, -0.43816250562667847, -0.2539023160934448, 0.27459800243377686, -0.3756082057952881, 0.22879576683044434, -0.16787871718406677, -0.1586483120918274, -0.06692802906036377, -0.2702126204967499, 0.09915325045585632, 0.267809122800827, 0.3934479355812073, 0.190965473651886, -0.2623528838157654, 0.415069043636322, -0.6402026414871216, 0.37730860710144043, 0.06435652077198029, -0.17488408088684082, 0.01040034368634224, -0.027122706174850464, 0.167843759059906, 0.05943083018064499, -0.024764403700828552, 0.22011585533618927, -0.003260556608438492, -0.017504815012216568, 0.10053625702857971, -0.552247941493988, 0.3832559287548065, -0.15949662029743195, 0.015909288078546524, 0.008455390110611916, 0.23203159868717194, -0.47434744238853455, -0.3510856330394745, 0.1169629618525505, 0.21282516419887543, -0.12236502766609192, -0.3354164958000183, 0.17480680346488953, -0.049290791153907776, -0.28247007727622986, -0.04871698468923569, 0.3945612609386444, 0.06503769010305405, -0.0474681630730629, -0.09810355305671692, 0.004476543515920639, 0.08134423196315765, 0.11878816038370132, -0.2484801560640335, 0.1774211823940277, -0.24643102288246155, 0.07716311514377594, 0.17206047475337982, 0.41565096378326416, 0.12304244190454483, 0.26567399501800537, 0.13258518278598785, -0.346427857875824, -0.1376064419746399, -0.16889719665050507, 0.5970420837402344, 0.3227599561214447, 0.14053146541118622, 0.060019876807928085, 0.3375134766101837, -0.17029599845409393, -0.18874230980873108, -0.09556439518928528, 0.030830612406134605, -0.107682965695858, -0.40726029872894287, -0.3590402901172638, 0.5509881973266602, 0.029518619179725647, -0.006385371088981628, 0.15334302186965942, 0.21048876643180847, -0.30233287811279297, 0.5265368223190308, 0.20990484952926636, 1.2353206872940063, -0.25890374183654785, 0.32302984595298767, 0.055022403597831726, -0.353675901889801, 0.5392714738845825, -0.1386260986328125, -0.27081555128097534, -0.4807083010673523, 0.36504319310188293, -0.03504243493080139, -0.18826019763946533, 0.36758002638816833, 0.36712735891342163, -0.0586852990090847, 0.1594950407743454, 0.12062740325927734, -0.04168658331036568, 0.04294871911406517, 0.4876100420951843, -0.3396247923374176, -0.37067195773124695, -0.20346258580684662, -0.07933998852968216, -0.1265230029821396, 0.2364773452281952, 0.10818332433700562, -0.48270052671432495, -0.37801453471183777, 0.03608264774084091, -0.26214760541915894, 0.1149481013417244, -0.24201440811157227, -0.26492995023727417, -0.25082162022590637, -0.6413183212280273, 0.43393674492836, 0.37523940205574036, 0.21300920844078064, -0.04741314426064491, -0.2467888593673706, 0.09141448885202408, -0.3718242645263672, -0.19599001109600067, 0.10286444425582886, -0.1570912003517151, 0.04718729108572006, -0.1462823450565338, -0.10161826759576797, 0.03565923124551773, 0.10704061388969421, -0.1460074484348297, -0.039897166192531586, -0.17461799085140228, 0.38852012157440186, -0.31584396958351135, -0.10478062927722931, 0.1879233866930008, -0.2739696800708771, 0.07860493659973145, 0.030970951542258263, 0.2697286009788513, 0.03926466032862663, -0.0976409837603569, 0.29581671953201294, -0.2427743375301361, 0.015000707469880581, 0.2967754304409027, 0.1057165190577507, -0.28605717420578003, 0.4809209704399109, 0.4331344962120056, -0.1120685413479805, -0.25505784153938293, 0.42000100016593933, 0.6084333062171936, -0.8518134951591492, 0.03801698982715607, -0.03249827399849892, 0.20974035561084747, -0.001001488883048296, 0.08873199671506882, 0.004294451326131821, -0.08247152715921402, 0.047216322273015976, -0.4411301612854004, -0.32970014214515686, 0.10796651989221573, -0.08136145770549774, 0.09788353741168976, 0.316914826631546, 0.16526685655117035, 0.0595642551779747, 0.057587817311286926, -0.20779433846473694, 0.17578458786010742, 0.6536251902580261, 0.13463404774665833, 0.1787848025560379, 0.04184099659323692, 0.07956993579864502, -0.0032938015647232533, -0.018073968589305878, 0.16434133052825928, 0.00030049867928028107, -0.13189956545829773, -0.05737358331680298, 0.22510495781898499, -0.12807977199554443, -0.34728163480758667, -0.28117701411247253, -0.302745521068573, -0.04186903312802315, -0.16357985138893127, -0.02117270790040493, -0.022178197279572487, -0.03233601152896881, 0.0921839028596878, 0.08490221947431564, -0.02850726991891861, -0.4731491804122925, 0.14886999130249023, -0.09970024228096008, 0.2536761462688446, 0.010898306965827942, 0.15901491045951843, -0.07585326582193375, -0.11553280055522919, 0.07657104730606079, 0.039077211171388626, 0.3617445230484009, 0.19383570551872253, 0.3259115517139435, -0.09729182720184326, -0.08858849108219147, -0.22591757774353027, 0.3806535601615906, 0.1658867597579956, 0.0174005925655365, 0.05876614898443222, 0.299970418214798, 0.06177911162376404, -0.1677936315536499, 0.2612503170967102, -0.16858920454978943, -0.2197331339120865, -0.2156023383140564, 0.09251366555690765, 0.03941243514418602, 0.09444896876811981, -0.40533655881881714, -0.2154296636581421, 0.19655151665210724, 0.08029317855834961, -0.22940988838672638, 0.27423402667045593, 0.14075559377670288, -0.0375877283513546, 0.0169847272336483, 0.28093183040618896, 0.26874205470085144, -0.11768323183059692, -0.16402116417884827, 0.14969466626644135, 0.5673035383224487, 0.4149206280708313, 0.29683974385261536, -0.2449314296245575, 0.02279101125895977, 0.35022807121276855, 0.14787885546684265, 0.0298919714987278, 0.17660614848136902, 0.6900320649147034, 0.49129852652549744, -0.05931905284523964, 0.13909640908241272, 0.3236278295516968, 0.07133817672729492, 0.013385633006691933, -0.271334171295166, -0.10202483832836151, -0.16990447044372559, -0.19138115644454956, -0.2648148238658905, -0.1824367642402649, -0.06875179708003998, 0.30546677112579346, 0.20729702711105347, -0.011326871812343597, -0.0185624398291111, 0.08232009410858154, 0.32984939217567444, -0.18996158242225647, 0.04234630614519119, 0.04344521090388298, -0.009410522878170013, 0.05797921493649483, 0.4162965416908264, 0.31608861684799194, 0.07566291093826294, -0.06053079292178154, 0.2094246745109558, 0.02998366206884384, -0.07766838371753693, 0.2136279046535492, 0.21208328008651733, 0.3753718435764313, 0.022284001111984253, 0.2257779985666275, 0.05119059979915619, 0.049647003412246704, -0.10475005209445953, 0.18512393534183502, -0.10797148942947388, -0.10562147200107574, -0.13519927859306335, -0.08620394021272659, -0.3643313944339752, -0.21091406047344208, 0.06890758126974106, -0.22312942147254944, 0.2052784413099289, 0.5576445460319519, -0.2215040624141693, -0.05308638885617256, -0.1424180269241333, 0.004092901945114136, 0.030557729303836823, 0.4832635223865509, 0.36908358335494995, 0.15556633472442627, -0.2956003248691559, -0.34230417013168335, -0.16416168212890625, 0.0762251690030098, 0.03637625277042389, -0.0720956102013588, -0.05365918576717377, -0.03645172715187073, 0.20572423934936523, 0.4382633566856384, 0.05330096185207367, 0.15352772176265717, -0.1190539076924324, 0.41766223311424255, -0.19669409096240997, 0.015510175377130508, 0.34183186292648315, 0.5047728419303894, -0.08097834885120392, -0.11088632047176361, 0.23126401007175446, 0.4572094976902008, -0.10966463387012482, -0.14335839450359344, 0.08932492136955261, 0.17003139853477478, -0.29991692304611206, 0.21668866276741028, 0.06286187469959259, 0.12311968952417374, -0.04623507335782051, -0.2188570201396942, 0.044444307684898376, -0.05692140385508537, 0.053087133914232254, 0.6523377299308777, 0.24771811068058014, -0.07812845706939697, -0.18237288296222687, -0.179611474275589, -0.10657589137554169, 0.31598562002182007, -0.2237628847360611, -0.11398443579673767, -0.309233695268631, -0.04535943269729614, -0.21386951208114624, -0.006918948143720627, 0.009053223766386509, 0.4339030683040619, -0.16153937578201294, 0.0968051478266716, -0.16606400907039642, -0.10838393121957779, 0.2824992537498474, -0.33940303325653076, 0.06663523614406586, 0.3260628879070282, 0.1728651374578476, 0.6563580632209778, 0.07111762464046478, -0.5438717603683472, 0.23480656743049622, 0.251223623752594, 0.03023756667971611, 0.1957521140575409, 0.11060740053653717, -0.009459730237722397, 0.06087203696370125, -0.043655022978782654, 0.43248945474624634, 0.00785297341644764, -0.025878777727484703, -0.4081864058971405, -0.4257500171661377 ]
https://github.com/huggingface/datasets/issues/189
[Question] BERT-style multiple choice formatting
Hi @sarahwie, can you details this a little more? I'm not sure I understand what you refer to and what you mean when you say "Previously, this was done by passing a list of InputFeatures to the dataloader instead of a list of InputFeature"
Hello, I am wondering what the equivalent formatting of a dataset should be to allow for multiple-choice answering prediction, BERT-style. Previously, this was done by passing a list of `InputFeatures` to the dataloader instead of a list of `InputFeature`, where `InputFeatures` contained lists of length equal to the number of answer choices in the MCQ instead of single items. I'm a bit confused on what the output of my feature conversion function should be when using `dataset.map()` to ensure similar behavior. Thanks!
44
[Question] BERT-style multiple choice formatting Hello, I am wondering what the equivalent formatting of a dataset should be to allow for multiple-choice answering prediction, BERT-style. Previously, this was done by passing a list of `InputFeatures` to the dataloader instead of a list of `InputFeature`, where `InputFeatures` contained lists of length equal to the number of answer choices in the MCQ instead of single items. I'm a bit confused on what the output of my feature conversion function should be when using `dataset.map()` to ensure similar behavior. Thanks! Hi @sarahwie, can you details this a little more? I'm not sure I understand what you refer to and what you mean when you say "Previously, this was done by passing a list of InputFeatures to the dataloader instead of a list of InputFeature"
[ 0.189832866191864, -0.4081769585609436, -0.026671266183257103, -0.07893246412277222, 0.17554670572280884, -0.11440029740333557, 0.293326199054718, 0.23464760184288025, -0.11313825845718384, -0.006701275706291199, -0.07507678866386414, 0.5407450199127197, -0.256385862827301, 0.2198835015296936, 0.0012709759175777435, -0.4498938024044037, 0.16272613406181335, 0.13243605196475983, -0.1213604211807251, -0.11142534017562866, -0.224826380610466, -0.18424546718597412, -0.25302526354789734, -0.10311730206012726, -0.1576479971408844, 0.06863226741552353, -0.36664915084838867, -0.2160353660583496, -0.3754042983055115, -0.3336394727230072, -0.1936655044555664, 0.2823522686958313, -0.21831142902374268, -0.03667684644460678, -0.00012514082482084632, -0.401574969291687, -0.17735929787158966, -0.1747860312461853, -0.11023974418640137, -0.11791358888149261, -0.8842166066169739, -0.007036487106233835, 0.3844009339809418, 0.018587075173854828, 0.007791534066200256, 0.026045169681310654, 0.02693820931017399, -0.3077806234359741, 0.4810141324996948, -0.008772172965109348, 0.07200609892606735, -0.03722228854894638, 0.03685739263892174, 0.06419830769300461, 0.13089795410633087, 0.5086029767990112, 0.018672065809369087, -0.04318388178944588, 0.6300451755523682, 0.003553975373506546, -0.20570027828216553, 0.3613415062427521, 0.0969025194644928, 0.10612985491752625, 0.34405025839805603, -0.026202011853456497, -0.052759505808353424, -0.08939743041992188, -0.23088866472244263, 0.3512215316295624, 0.7839896082878113, -0.09999636560678482, -0.2693178951740265, -0.03707253932952881, 0.02138673886656761, 0.06871094554662704, -0.18641164898872375, 0.014608586207032204, -0.14011599123477936, -0.06115366145968437, -0.48590776324272156, -0.3253761827945709, -0.3561829626560211, 0.06938974559307098, -0.276447594165802, 0.42656072974205017, 0.0081100482493639, -0.03517945855855942, -0.052210669964551926, -0.2725639343261719, -0.021641205996274948, -0.43927180767059326, 0.3904176652431488, 0.1420878767967224, 0.10635903477668762, -0.37915340065956116, -0.18745774030685425, 0.07733605802059174, 0.3710346817970276, -0.29466283321380615, -0.09317830950021744, -0.0026954934000968933, -0.5204653739929199, -0.012472309172153473, 0.5711631178855896, 0.0022484473884105682, -0.04572487622499466, 0.07216700166463852, -0.34575355052948, -0.2913958728313446, -0.2567954957485199, 0.04164717346429825, 0.12521572411060333, 0.22841845452785492, 0.07164108753204346, 0.12182874232530594, 0.056813694536685944, -0.32156237959861755, 0.06382318586111069, 0.07790394872426987, -0.36239147186279297, -0.20421303808689117, 0.033674564212560654, 0.15451601147651672, -0.08497174084186554, 0.5170226097106934, -0.1964961141347885, 0.20776686072349548, 0.08788154274225235, -0.35689568519592285, 0.13895872235298157, -0.10198034346103668, -0.5272909998893738, -0.2540571689605713, 0.1949184685945511, 0.2871021032333374, -0.01082167774438858, 0.36924517154693604, 0.37839627265930176, -0.23002657294273376, 0.07069527357816696, 0.024962671101093292, 0.5642067790031433, -0.18388158082962036, -0.3527989685535431, 0.32675498723983765, 0.29061371088027954, 0.3297916054725647, -0.08868248015642166, 0.5011603832244873, -0.21087831258773804, -0.014087021350860596, -0.15334896743297577, 0.017584342509508133, 0.2166626751422882, -0.21159714460372925, 0.04111883416771889, 0.3512016236782074, 0.045034099370241165, -0.3355677127838135, 0.13014262914657593, -0.5346511602401733, 0.049892570823431015, -0.29566848278045654, 0.002575363963842392, 0.40495043992996216, -0.46270617842674255, 0.09012235701084137, -0.19625265896320343, 0.23597681522369385, 0.22379319369792938, 0.2625329792499542, -0.07536938041448593, -0.059609733521938324, -0.011267864145338535, 0.35698121786117554, 0.31552261114120483, -0.1638091802597046, -0.31837138533592224, 0.22978609800338745, 0.16081272065639496, 0.11740312725305557, -0.03637727349996567, 0.23446953296661377, 0.15473639965057373, 0.2690249979496002, 0.05115654319524765, -0.13874848186969757, -0.3022446036338806, 0.366252064704895, -0.018000852316617966, -0.04290333017706871, 0.12097130715847015, -0.04484032839536667, -0.0799427479505539, -0.14226529002189636, -0.08018475025892258, 0.1147540882229805, 0.21867212653160095, -0.20548757910728455, -0.05747026205062866, -0.42732107639312744, 0.1527341604232788, 0.029008429497480392, -0.12003213912248611, -0.17264264822006226, -0.6358428597450256, -0.07989722490310669, -0.02884627692401409, -0.18700337409973145, 0.22696934640407562, -0.27350562810897827, -0.2580792307853699, 0.05828825384378433, -0.3363609313964844, 0.1047041118144989, -0.01362035796046257, 0.020014092326164246, -0.2457858771085739, -0.2998512089252472, -0.2771874964237213, -0.0625881627202034, 0.5232803821563721, 0.018670111894607544, 0.05305315926671028, 0.11633862555027008, 0.09669730812311172, 0.002988151740282774, 0.13223691284656525, 0.35577693581581116, 0.19228696823120117, 0.2523917555809021, -0.03136128932237625, 0.2370244562625885, 0.45958849787712097, -0.04832550883293152, -0.038658007979393005, 0.11578837782144547, 0.4056982100009918, -0.23331902921199799, 0.3231181204319, 0.17757360637187958, 0.09546316415071487, -0.013860072940587997, -0.8099330067634583, 0.18935799598693848, -0.07852743566036224, 0.11698015034198761, -0.14940398931503296, 0.20878364145755768, -0.19297213852405548, 0.2378273606300354, -0.060355596244335175, -0.4787616729736328, -0.12163160741329193, 0.26565808057785034, 0.15038235485553741, 0.07501313090324402, -0.4771549701690674, 0.27814212441444397, 0.37942057847976685, -0.017874304205179214, 0.22816437482833862, -0.060224369168281555, -0.017266511917114258, -0.09874334186315536, 0.41970551013946533, -0.2194465845823288, 0.23195792734622955, 0.15621209144592285, -0.06431929767131805, -0.1458725780248642, 0.008576652966439724, -0.12822553515434265, -0.002887248992919922, -0.03820871561765671, -0.1035604253411293, 0.10288172960281372, 0.19065605103969574, -0.10545162856578827, 0.002276778221130371, 0.07328993082046509, -0.05676323175430298, -0.09499023854732513, -0.12194755673408508, 0.00562223419547081, -0.5228874683380127, -0.016358917579054832, -0.15502694249153137, -0.584281861782074, -0.1949109435081482, -0.18189573287963867, 0.2008175253868103, -0.19690676033496857, -0.08773329854011536, 0.006360247731208801, 0.08728240430355072, 0.3509711027145386, 0.1391625553369522, 0.09050743281841278, 0.07922887802124023, -0.017441971227526665, 0.06981474906206131, 0.04823217913508415, 0.004030713811516762, 0.03277750313282013, 0.1947333663702011, 0.1055903285741806, 0.011595752090215683, -0.35372355580329895, 0.015375010669231415, 0.19428414106369019, -0.04946054518222809, 0.010338173247873783, 0.33580487966537476, 0.08736884593963623, -0.4954449534416199, 0.13991829752922058, 0.14058899879455566, 0.353060245513916, -0.05232620984315872, 0.03083524852991104, 0.3473844826221466, 0.017780495807528496, 0.09395395219326019, -0.348800390958786, -0.1854478418827057, 0.04607212916016579, 0.09167949855327606, -0.02408408746123314, 0.10844920575618744, -0.23966240882873535, 0.1782776266336441, -0.12721142172813416, -0.34878554940223694, -0.24792683124542236, -0.20571349561214447, 0.1175253689289093, 0.04890213906764984, -0.14117547869682312, -0.0173884779214859, -0.21726834774017334, 0.14096303284168243, -0.13892051577568054, 0.18003670871257782, 0.2704901695251465, -0.2778683602809906, -0.0454748198390007, 0.12244528532028198, 0.09823646396398544, 0.42160654067993164, 0.30288565158843994, 0.39184531569480896, 0.08133621513843536, -0.07759681344032288, 0.10318690538406372, 0.11008724570274353, 0.32114964723587036, 0.009787656366825104, 0.14529140293598175, 0.04953516274690628, -0.13081157207489014, 0.7850807905197144, 0.4763050675392151, 0.1447904109954834, 0.1125236451625824, 0.0027535855770111084, -0.1625669300556183, -0.13791412115097046, -0.10453382134437561, 0.26983076333999634, -0.07678443193435669, 0.19053757190704346, 0.4577786922454834, 0.0880916565656662, -0.06342222541570663, 0.035954058170318604, 0.2923196852207184, -0.23634716868400574, -0.2863629460334778, 0.4252740442752838, -0.17180916666984558, 0.25057128071784973, 0.014178194105625153, -0.11715596914291382, -0.2502308785915375, -0.12013694643974304, -0.06141092628240585, -0.11164297163486481, 0.3435661196708679, -0.39867013692855835, -0.09759052097797394, -0.25619861483573914, -0.1570492684841156, 0.29891908168792725, 0.477333664894104, 0.10383446514606476, -0.013509053736925125, -0.07692870497703552, 0.16502803564071655, 0.34249261021614075, 0.5172494053840637, -0.03935057669878006, -0.11622557044029236, -0.09208129346370697, 0.05629955977201462, 0.17325030267238617, -0.03681078553199768, -0.6540708541870117, 0.32207465171813965, -0.29261547327041626, 0.1334904581308365, -0.2254887819290161, -0.35192862153053284, 0.17181168496608734, 0.14538060128688812, -0.10473259538412094, -0.22611060738563538, 0.1381576806306839, 0.5807729959487915, 0.0008982494473457336, 0.25213301181793213, 0.228789284825325, -0.15927071869373322, 0.19195742905139923, -0.09325683861970901, 0.18506546318531036, -0.006664266809821129, 0.3489800691604614, 0.21433115005493164, 0.06443052738904953, 0.1648571789264679, -0.39185982942581177, 0.22942395508289337, 0.1500614583492279, 0.1957375556230545, 0.20301246643066406, -0.6772517561912537, -0.06086103618144989, 0.08496527373790741, -0.11696639657020569, 0.6384952068328857, 0.31108415126800537, 0.27273687720298767, -0.08074957877397537, 0.09046294540166855, -0.014860033988952637, -0.1867106854915619, -0.078175388276577, 0.30363404750823975, 0.08140683174133301, -0.20781035721302032, -0.41616854071617126, 0.38397496938705444, -0.11780282855033875, -0.2680467367172241, -0.1368647962808609, 0.5329198241233826, 0.006374706514179707, 0.03252555429935455, 0.4108950197696686, 0.8881409764289856, -0.18266141414642334, 0.30908942222595215, 0.1333589404821396, 0.07515867054462433, 0.37112969160079956, -0.13379448652267456, 0.2235967516899109, -0.2209891825914383, 0.10546569526195526, -0.1843821406364441, -0.19609865546226501, -0.0003092736005783081, 0.5590397715568542, -0.6933901906013489, 0.2738439738750458, -0.15490469336509705, 0.15904945135116577, 0.1415616124868393, -0.06224759668111801, 0.31148773431777954, -0.13656574487686157, -0.13445113599300385, -0.012795781716704369, -0.20866428315639496, -0.13177934288978577, -0.15400856733322144, -0.048458412289619446, 0.03196588531136513, 0.00560959056019783, -0.3148157000541687, -0.06546573340892792, -0.5026328563690186, -0.22931410372257233, 0.07046759128570557, -0.13271114230155945, 0.4928196370601654, 0.47302329540252686, 0.11012953519821167, 0.1263779252767563, -0.08461292833089828, -0.1857498586177826, 0.13388389348983765, 0.2864258885383606, -0.2314477264881134, 0.10738258063793182, 0.5054358839988708, -0.028761398047208786, -0.30972766876220703, 0.23615416884422302, -0.1268925964832306, -0.08921182155609131, -0.485024094581604, 0.1137208491563797, 0.7107089757919312, -0.5381386280059814, -0.4216562509536743, -0.031587764620780945, 0.12211254239082336, 0.02823326364159584, -0.08895738422870636, 0.2638346254825592, 0.11011485755443573, 0.5779929757118225, 0.23608970642089844, 0.15750132501125336, 0.244542196393013, -0.1331837773323059, 0.14268651604652405, -0.10161641985177994, 0.3163885176181793, 0.2070097178220749, -0.14301589131355286, -0.13768157362937927, 0.08183889836072922, 0.22919119894504547, -0.10338263213634491, 0.13760633766651154, -0.25277209281921387, -0.08193767815828323, -0.03888695314526558, 0.3396037518978119, 0.34378641843795776, 0.3037843406200409, -0.009304478764533997, 0.04974620044231415, -0.1195891872048378, 0.2682490348815918, -0.22673355042934418, 0.1715278923511505, 0.1971946358680725, -0.15251615643501282, 0.06678955256938934, 0.2607312500476837, -0.176861971616745, -0.09415043145418167, 0.11468666046857834, 0.3973580002784729, -0.0025262515991926193, -0.20133501291275024, -0.22507205605506897, -0.051654983311891556, -0.0407254621386528, -0.22952817380428314, -0.22013957798480988, -0.12144690006971359, -0.10964018106460571, 0.13896623253822327, 0.0955219715833664, -0.07645668089389801, -0.12439632415771484, -0.12791892886161804, -0.008751168847084045, -0.12493659555912018, -0.0020420607179403305, -0.06993559747934341, -0.16730552911758423, 0.33069759607315063, 0.13859742879867554, -0.34176239371299744, -0.19411799311637878, 0.12415026873350143, 0.3273501992225647, -0.04631182551383972, 0.17618301510810852, 0.12686532735824585, 0.06882347166538239, -0.21992747485637665, -0.07351928949356079, 0.4398282766342163, 0.2794686257839203, 0.034499235451221466, 0.028155822306871414, 0.09866379201412201, 0.16357466578483582, 0.09105569869279861, 0.29285097122192383, 0.05899420753121376, 0.048107221722602844, 0.09166955947875977, 0.04486218839883804, 0.08739275485277176, -0.10868411511182785, -0.21807743608951569, 0.5362928509712219, 0.10885227471590042, 0.16727383434772491, 0.35398203134536743, 0.05867818370461464, 0.017523057758808136, 0.37596380710601807, -0.02889469638466835, -0.3581576347351074, 0.06373848021030426, 0.014865731820464134, 0.6164772510528564, -0.09675894677639008, 0.060041170567274094, 0.1579790562391281, 0.21127869188785553, 0.0631440132856369, -0.0031045712530612946, 0.07378450036048889, 0.21520604193210602, 0.11956247687339783, -0.13529056310653687, 0.4986388385295868, -0.016309630125761032, 0.2160300761461258, 0.2218586504459381, 0.106949582695961, 0.44822317361831665, 0.3513820469379425, 0.13832293450832367, -0.2611648738384247, -0.5070869326591492, -0.005821270868182182, 0.08295221626758575, -0.14927971363067627, -0.18763801455497742, -0.023020746186375618, -0.22036436200141907, -0.34096378087997437, -0.030820440500974655, -0.6939736604690552, -0.13618969917297363, 0.4685733914375305, 0.3233006000518799, 0.503395140171051, -0.12030543386936188, -0.049626559019088745, 0.1058640256524086, 0.2920263111591339, -0.12352420389652252, 0.18553712964057922, 0.03374461829662323, 0.027988459914922714, 0.10734584927558899, 0.3419788181781769, -0.0009041838347911835, 0.216676726937294, -0.1818518340587616, -0.03196079283952713, -0.336187481880188, -0.08698033541440964, 0.20883111655712128, -0.2359444499015808, 0.22233761847019196, -0.07854901254177094, 0.15231971442699432, 0.011357998475432396, 0.05159851163625717, 0.156029611825943, 0.06995536386966705, 0.006510372273623943, -0.23569145798683167, -0.5836457014083862, 0.21649876236915588, -0.2501591444015503, 0.0859224870800972, -0.03139957785606384, -0.6951833963394165, -0.026929251849651337, 0.05683112144470215, -0.10170368105173111, -0.0800095871090889, 0.14819757640361786, -0.012619376182556152, 0.2639656066894531, -0.029805976897478104, 0.3616974651813507, 0.014449536800384521, -0.320957750082016, -0.17841574549674988, -0.27917948365211487, -0.11175761371850967, 0.24921108782291412, -0.12218495458364487, 0.07240930944681168, -0.02137756161391735, 0.054324034601449966, 0.3683212399482727, 0.05567137897014618, -0.5797140002250671, -0.2597840130329132, 0.4736153185367584, -0.1560889631509781, 0.16441209614276886, 0.28888222575187683, 0.25900188088417053, -0.02821192890405655, -0.0676184743642807, 0.2782745659351349, 0.3107702434062958, -0.15158231556415558, -0.23049820959568024, 0.010738812386989594, -0.24945524334907532, -0.059918470680713654, -0.22761547565460205, 0.3659667670726776, 0.27638113498687744, 0.10707368701696396, -0.20322708785533905, 0.2864716053009033, 0.405730664730072, 0.11927609145641327, 0.09432756900787354, 0.11116786301136017, 0.6024985313415527, -0.14940723776817322, 0.2883360981941223, -0.05454812943935394, 0.0235117319971323, 0.09809637069702148, -0.1638508439064026, -0.6133044958114624, -0.022443577647209167, -0.023944467306137085, -0.3201175332069397, 0.13848336040973663, 0.41740313172340393, -0.12012860178947449, 0.18614085018634796, -0.2441980540752411, 0.2617795467376709, 0.13630378246307373, -0.22383353114128113, -0.3496631383895874, -0.30819275975227356, -0.045922115445137024, -0.2481648027896881, -0.014777680858969688, -0.7189197540283203, -0.24108219146728516, 0.23456332087516785, -0.11553246527910233, -0.14388920366764069, 0.04211641103029251, -0.03930707275867462, -0.16625690460205078, -0.3629510700702667, 0.6250205039978027, 0.03694174438714981, 0.10133016109466553, -0.31193262338638306, -0.4519563913345337 ]
https://github.com/huggingface/datasets/issues/189
[Question] BERT-style multiple choice formatting
I think I've resolved it. For others' reference: to convert from using the [`MultipleChoiceDataset` class](https://github.com/huggingface/transformers/blob/a34a9896ac2a4a33ff9cd805c76eed914c8d8965/examples/multiple-choice/utils_multiple_choice.py#L82)/[`run_multiple_choice.py`](https://github.com/huggingface/transformers/blob/a34a9896ac2a4a33ff9cd805c76eed914c8d8965/examples/multiple-choice/run_multiple_choice.py) script in Huggingface Transformers, I've done the following for hellaswag: 1. converted the `convert_examples_to_features()` function to only take one input and return a dictionary rather than a list: ``` def convert_examples_to_features(example, tokenizer, max_length): choices_inputs = defaultdict(list) for ending_idx, ending in enumerate(example['endings']['ending']): text_a = example['ctx'] text_b = ending inputs = tokenizer.encode_plus( text_a, text_b, add_special_tokens=True, max_length=max_length, pad_to_max_length=True, return_overflowing_tokens=True, ) if "num_truncated_tokens" in inputs and inputs["num_truncated_tokens"] > 0: logger.info( "Attention! you are cropping tokens (swag task is ok). " "If you are training ARC and RACE and you are poping question + options," "you need to try to use a bigger max seq length!" ) for key in inputs: choices_inputs[key].append(inputs[key]) choices_inputs['label'] = int(example['label']) return choices_inputs ``` 2. apply this directly (instance-wise) to dataset, convert dataset to torch tensors. Dataset is then ready to be passed to `Trainer` instance. ``` dataset['train'] = dataset['train'].map(lambda x: convert_examples_to_features(x, tokenizer, max_length), batched=False) columns = ['input_ids', 'token_type_ids', 'attention_mask', 'label'] dataset['train'].set_format(type='torch', columns=columns) ```
Hello, I am wondering what the equivalent formatting of a dataset should be to allow for multiple-choice answering prediction, BERT-style. Previously, this was done by passing a list of `InputFeatures` to the dataloader instead of a list of `InputFeature`, where `InputFeatures` contained lists of length equal to the number of answer choices in the MCQ instead of single items. I'm a bit confused on what the output of my feature conversion function should be when using `dataset.map()` to ensure similar behavior. Thanks!
168
[Question] BERT-style multiple choice formatting Hello, I am wondering what the equivalent formatting of a dataset should be to allow for multiple-choice answering prediction, BERT-style. Previously, this was done by passing a list of `InputFeatures` to the dataloader instead of a list of `InputFeature`, where `InputFeatures` contained lists of length equal to the number of answer choices in the MCQ instead of single items. I'm a bit confused on what the output of my feature conversion function should be when using `dataset.map()` to ensure similar behavior. Thanks! I think I've resolved it. For others' reference: to convert from using the [`MultipleChoiceDataset` class](https://github.com/huggingface/transformers/blob/a34a9896ac2a4a33ff9cd805c76eed914c8d8965/examples/multiple-choice/utils_multiple_choice.py#L82)/[`run_multiple_choice.py`](https://github.com/huggingface/transformers/blob/a34a9896ac2a4a33ff9cd805c76eed914c8d8965/examples/multiple-choice/run_multiple_choice.py) script in Huggingface Transformers, I've done the following for hellaswag: 1. converted the `convert_examples_to_features()` function to only take one input and return a dictionary rather than a list: ``` def convert_examples_to_features(example, tokenizer, max_length): choices_inputs = defaultdict(list) for ending_idx, ending in enumerate(example['endings']['ending']): text_a = example['ctx'] text_b = ending inputs = tokenizer.encode_plus( text_a, text_b, add_special_tokens=True, max_length=max_length, pad_to_max_length=True, return_overflowing_tokens=True, ) if "num_truncated_tokens" in inputs and inputs["num_truncated_tokens"] > 0: logger.info( "Attention! you are cropping tokens (swag task is ok). " "If you are training ARC and RACE and you are poping question + options," "you need to try to use a bigger max seq length!" ) for key in inputs: choices_inputs[key].append(inputs[key]) choices_inputs['label'] = int(example['label']) return choices_inputs ``` 2. apply this directly (instance-wise) to dataset, convert dataset to torch tensors. Dataset is then ready to be passed to `Trainer` instance. ``` dataset['train'] = dataset['train'].map(lambda x: convert_examples_to_features(x, tokenizer, max_length), batched=False) columns = ['input_ids', 'token_type_ids', 'attention_mask', 'label'] dataset['train'].set_format(type='torch', columns=columns) ```
[ 0.19923143088817596, -0.5758000612258911, 0.010819941759109497, -0.06993667781352997, 0.28591954708099365, -0.15366733074188232, 0.244601309299469, 0.24167557060718536, -0.009871318005025387, 0.01801888644695282, -0.1549074947834015, 0.4558006227016449, -0.2713596820831299, 0.07535431534051895, 0.1255870759487152, -0.3799522817134857, 0.15262699127197266, 0.06899333745241165, -0.20162227749824524, -0.06751983612775803, -0.11300874501466751, 0.02811470255255699, -0.16656020283699036, -0.02064729481935501, -0.3513282835483551, 0.046457476913928986, -0.36015328764915466, -0.06562960892915726, -0.3025081753730774, -0.3981374502182007, -0.1327257603406906, 0.19807317852973938, -0.25676774978637695, 0.11358491331338882, -0.00013058973127044737, -0.3111947178840637, -0.21208490431308746, -0.21448440849781036, -0.09534256160259247, -0.031543344259262085, -0.7208178043365479, -0.011711741797626019, 0.3938957750797272, 0.10779421776533127, -0.025061100721359253, -0.024407338351011276, 0.00355365127325058, -0.1321902573108673, 0.6255209445953369, -0.02035318687558174, 0.009229019284248352, 0.040046487003564835, 0.08174973726272583, 0.09900148957967758, 0.16138480603694916, 0.5654858946800232, -0.07321774959564209, 0.08077162504196167, 0.5695478320121765, -0.08953321725130081, -0.23184427618980408, 0.5064970850944519, 0.03164730966091156, 0.07505469024181366, 0.2941819131374359, 0.11394349485635757, -0.01560550183057785, -0.08051591366529465, -0.22278249263763428, 0.4199120104312897, 0.5713580250740051, -0.3070065677165985, -0.4449508488178253, -0.2811709940433502, 0.07755277305841446, -0.05330953001976013, -0.18529590964317322, 0.04425535351037979, -0.24635587632656097, 0.0007779859006404877, -0.38704702258110046, -0.14347612857818604, -0.24800720810890198, 0.03583691269159317, -0.2692357301712036, 0.5118781328201294, -0.050744593143463135, 0.021875206381082535, -0.006453670561313629, -0.23134632408618927, -0.15190987288951874, -0.37972134351730347, 0.3062954246997833, 0.2080068290233612, -0.044239338487386703, -0.39680713415145874, -0.1380620002746582, -0.07668601721525192, 0.4508560299873352, -0.24334187805652618, -0.008571808226406574, 0.023109376430511475, -0.49345704913139343, -0.022742129862308502, 0.6486948728561401, 0.04183962568640709, -0.011994265019893646, -0.0025545009411871433, -0.23035357892513275, -0.08692968636751175, -0.1043039858341217, 0.0629376694560051, 0.14950528740882874, 0.14896298944950104, 0.12328246235847473, 0.10730726271867752, 0.024612601846456528, -0.26230350136756897, -0.039371028542518616, 0.012350386008620262, -0.32854586839675903, -0.13844536244869232, 0.13970692455768585, 0.247457355260849, -0.12764613330364227, 0.5036815404891968, -0.1274140179157257, 0.3086262345314026, -0.009250685572624207, -0.09967107325792313, 0.09143601357936859, -0.15828703343868256, -0.40345680713653564, -0.10639660805463791, 0.21177972853183746, 0.330199271440506, 0.09043741226196289, 0.40272316336631775, 0.5290736556053162, -0.26109349727630615, 0.02161404676735401, 0.014539217576384544, 0.4841364622116089, 0.02228248491883278, -0.3328678607940674, 0.40923336148262024, 0.3574821352958679, 0.27040839195251465, -0.11678172647953033, 0.3718443512916565, -0.17705988883972168, -0.0374799445271492, -0.016465863212943077, -0.0591561533510685, 0.12640178203582764, -0.16889475286006927, -0.15659937262535095, 0.36347904801368713, 0.12413909286260605, -0.1976223587989807, 0.08903433382511139, -0.5058838725090027, -0.012677758932113647, -0.18312647938728333, 0.15960447490215302, 0.5324587821960449, -0.28720036149024963, -0.14317363500595093, -0.02312474697828293, 0.14544884860515594, 0.07705986499786377, 0.3667638301849365, -0.08329930156469345, -0.09566714614629745, -0.028541814535856247, 0.4020662307739258, 0.20190583169460297, -0.2790747284889221, -0.28862300515174866, 0.18329213559627533, 0.3203337788581848, 0.3041917681694031, -0.12321720272302628, 0.13023151457309723, 0.020967870950698853, 0.22887679934501648, 0.1084146797657013, -0.16214512288570404, -0.17627961933612823, 0.42187488079071045, -0.059204790741205215, -0.13189494609832764, 0.07925190031528473, -0.03650517016649246, -0.10871593654155731, -0.22112661600112915, -0.2119845151901245, 0.15718495845794678, 0.3730953335762024, -0.13576740026474, -0.15732990205287933, -0.19157490134239197, 0.14541864395141602, -0.08411449193954468, -0.03216952085494995, -0.18415391445159912, -0.6730775237083435, 0.03187321871519089, -0.058818839490413666, -0.01397673785686493, -0.023559801280498505, -0.23712126910686493, -0.33111822605133057, 0.1513945758342743, -0.35942012071609497, -0.06123214587569237, -0.06678397953510284, -0.011039778590202332, -0.09729623794555664, -0.21554343402385712, -0.23209638893604279, 0.05262361466884613, 0.4880286455154419, 0.11189047247171402, -0.011932222172617912, 0.19364546239376068, 0.1937326341867447, -0.12392798066139221, 0.06306762248277664, 0.363855242729187, 0.23855465650558472, 0.1898650825023651, 0.015624955296516418, 0.2106878161430359, 0.5333707332611084, -0.07160742580890656, -0.12715238332748413, 0.2365972399711609, 0.4539562165737152, -0.19625240564346313, 0.15113361179828644, 0.20681211352348328, 0.19265973567962646, -0.04783962666988373, -0.7790420055389404, 0.2532612085342407, 0.013713948428630829, 0.2599426209926605, -0.09325271844863892, 0.19287769496440887, -0.07523918896913528, 0.33153489232063293, -0.059525199234485626, -0.393667608499527, -0.20147694647312164, 0.12461207807064056, 0.14804968237876892, -0.029560385271906853, -0.49889570474624634, 0.3210490942001343, 0.3738493323326111, -0.052155207842588425, 0.2573854327201843, -0.05763273686170578, -0.10829777270555496, -0.15855824947357178, 0.37332457304000854, -0.35355323553085327, 0.28380006551742554, 0.06916753202676773, -0.08367972075939178, -0.12158390134572983, -0.04242337495088577, -0.034759342670440674, 0.027157559990882874, 0.06743309646844864, -0.0719185546040535, 0.1330578327178955, 0.1848290115594864, -0.22043831646442413, -0.08031611144542694, -0.0051931701600551605, -0.08777406066656113, -0.08954942226409912, -0.20640751719474792, 0.0967237800359726, -0.5124544501304626, 0.10381203144788742, -0.28017595410346985, -0.5547014474868774, -0.36573541164398193, -0.22905480861663818, 0.26497089862823486, -0.08991928398609161, -0.1655491441488266, 0.05860498547554016, 0.1167236864566803, 0.09931141883134842, 0.19559459388256073, -0.006008189171552658, -0.08944951742887497, 0.04601345956325531, 0.10184090584516525, -0.05130685120820999, -0.04768422991037369, -0.04785294458270073, 0.03764723986387253, 0.1288280487060547, -0.11319995671510696, -0.4533533453941345, -0.008423678576946259, 0.3111932575702667, -0.11082760989665985, 0.15499821305274963, 0.3773561418056488, 0.10291577875614166, -0.4873541593551636, 0.04879311844706535, 0.2122693955898285, 0.29859933257102966, -0.003608306869864464, 0.11281484365463257, 0.3003280758857727, -0.022947462275624275, -0.012344205752015114, -0.19157692790031433, -0.13206155598163605, -0.0038981493562459946, 0.1001855880022049, 0.02695542201399803, 0.1524858921766281, -0.167054682970047, 0.2679470181465149, -0.03599807992577553, -0.3355773091316223, -0.2415350079536438, -0.14004848897457123, 0.08696052432060242, 0.14672955870628357, -0.08437182009220123, -0.05225006118416786, -0.28386345505714417, 0.04827570915222168, -0.018867913633584976, 0.1145024448633194, 0.18315772712230682, -0.35383546352386475, -0.08702798932790756, -0.06288944184780121, 0.17463354766368866, 0.4848903715610504, 0.2857913374900818, 0.2647239863872528, 0.11941149830818176, -0.05617328733205795, -0.006128191947937012, 0.16391152143478394, 0.34851160645484924, 0.04665448144078255, 0.004912566393613815, -0.0949425920844078, 0.0010065697133541107, 1.0838110446929932, 0.48438388109207153, 0.24819204211235046, -0.0036795884370803833, -0.11817032843828201, -0.12630285322666168, -0.15671616792678833, -0.09003309160470963, 0.11810822784900665, -0.07367567718029022, 0.3027005195617676, 0.46514302492141724, 0.244246244430542, 0.012060415931046009, 0.05346585065126419, 0.3858358561992645, -0.16218248009681702, -0.4523169696331024, 0.39658889174461365, -0.07453886419534683, 0.14584749937057495, 0.018084511160850525, 0.06413055211305618, -0.18320085108280182, -0.12235736101865768, -0.07621173560619354, 0.047606080770492554, 0.31014248728752136, -0.19234831631183624, -0.040281884372234344, -0.21074427664279938, -0.2597436308860779, 0.2814566493034363, 0.522388219833374, 0.126929372549057, -0.002625994384288788, -0.14970210194587708, 0.20839782059192657, 0.23716433346271515, 0.6356256604194641, 0.1785295456647873, -0.20981602370738983, -0.009059041738510132, -0.12181349098682404, -0.010506868362426758, -0.12758634984493256, -0.6342936754226685, 0.1838948279619217, -0.27258071303367615, 0.2263440191745758, -0.3975047767162323, -0.46626901626586914, -0.07813071459531784, 0.11758843809366226, -0.13534019887447357, -0.10769987851381302, -0.05650553107261658, 0.4158501625061035, -0.15804865956306458, 0.32520923018455505, 0.3609258532524109, -0.14264942705631256, 0.17127574980258942, -0.0645056664943695, 0.22820836305618286, -0.0542890764772892, 0.34357184171676636, 0.33272454142570496, 0.13303761184215546, 0.09885808825492859, -0.36606472730636597, 0.22141164541244507, 0.08414367586374283, -0.009225910529494286, 0.321757972240448, -0.572167694568634, -0.2904268503189087, 0.14900028705596924, -0.049581266939640045, 0.49675044417381287, 0.4423178732395172, 0.2168344259262085, -0.0509803369641304, 0.26420289278030396, 0.07970578968524933, -0.13998664915561676, 0.1115485355257988, 0.2770267724990845, 0.08728758990764618, -0.17061841487884521, -0.39830252528190613, 0.47440463304519653, -0.0649195984005928, -0.28020161390304565, 0.013689905405044556, 0.5781550407409668, -0.08784186094999313, -0.07902707904577255, 0.2935151755809784, 0.9808763265609741, -0.2313353270292282, 0.39982426166534424, 0.4019373953342438, 0.026256732642650604, 0.31943851709365845, -0.2821464538574219, 0.2668994665145874, -0.22960366308689117, 0.11477551609277725, -0.1268310397863388, -0.18965327739715576, 0.09107016026973724, 0.4854971766471863, -0.6954205632209778, 0.40398865938186646, -0.06320980191230774, 0.07957643270492554, 0.06719429045915604, -0.02080836333334446, 0.16373182833194733, -0.25643810629844666, -0.26492905616760254, -0.06672507524490356, -0.2586740255355835, 0.0004016682505607605, -0.10235612839460373, -0.061161577701568604, -0.006672125309705734, -0.12094112485647202, -0.3932926654815674, -0.014796595089137554, -0.45530542731285095, -0.17547596991062164, 0.2911158502101898, -0.152587428689003, 0.3953569829463959, 0.43452098965644836, 0.0012729614973068237, 0.14556856453418732, -0.12557190656661987, -0.028710637241601944, -0.08400849252939224, 0.4058327078819275, -0.2616156041622162, 0.09170542657375336, 0.566506028175354, -0.00668586790561676, -0.3421802222728729, 0.15743741393089294, -0.08092452585697174, -0.10101338475942612, -0.4346272647380829, 0.18062642216682434, 0.6312642693519592, -0.5566821694374084, -0.27094709873199463, 0.10570505261421204, 0.11234085261821747, -0.04159372299909592, -0.14434152841567993, 0.3904128670692444, -0.037763383239507675, 0.5050047636032104, 0.15269382297992706, 0.0753723531961441, 0.1519211381673813, -0.02460712194442749, 0.04468550160527229, -0.2201678454875946, 0.3574771285057068, 0.29706254601478577, -0.11576643586158752, -0.1050686165690422, -0.057065337896347046, 0.20738963782787323, -0.19489625096321106, 0.342135488986969, -0.21411210298538208, -0.22223219275474548, -0.0952242836356163, 0.3001441955566406, 0.18653303384780884, 0.1520574688911438, 0.04173338785767555, -0.032338812947273254, -0.11665607988834381, 0.3286193311214447, -0.14338816702365875, 0.25442129373550415, 0.19086381793022156, -0.03195091709494591, 0.028394965454936028, 0.19577793776988983, -0.1289580762386322, -0.08749957382678986, 0.008276434615254402, 0.3492436110973358, -0.11323009431362152, -0.26551616191864014, -0.029820654541254044, 0.0035727685317397118, -0.03897596150636673, -0.09551621973514557, -0.2530179023742676, -0.0689893364906311, -0.25027453899383545, 0.16109588742256165, 0.04794365540146828, -0.12595942616462708, -0.02653823047876358, 0.031261246651411057, -0.023183312267065048, -0.23883198201656342, 0.19180415570735931, -0.0868987888097763, -0.14084820449352264, 0.3501250147819519, 0.007579762488603592, -0.21584519743919373, -0.13043923676013947, 0.027107784524559975, 0.18230774998664856, -0.03597734868526459, 0.33490607142448425, 0.1529591977596283, -0.0354762002825737, -0.2368503361940384, 0.03910676762461662, 0.4817049503326416, 0.15812665224075317, -0.013920426368713379, 0.07354821264743805, 0.08150334656238556, 0.07890547811985016, 0.017839422449469566, 0.2860041856765747, 0.008110489696264267, 0.0782601609826088, 0.046649426221847534, 0.14516714215278625, -0.006222685799002647, -0.10725031048059464, -0.29134491086006165, 0.45847955346107483, 0.10486246645450592, 0.20024651288986206, 0.40678173303604126, 0.01729268953204155, -0.0032190829515457153, 0.39590662717819214, -0.05312909185886383, -0.27697819471359253, 0.0695277750492096, 0.011239050887525082, 0.6116731762886047, -0.1678517758846283, 0.12471374869346619, 0.07526883482933044, 0.2117466926574707, 0.17982564866542816, 0.03575991094112396, -0.18006369471549988, 0.20812538266181946, -0.13592585921287537, -0.15321341156959534, 0.5411534309387207, -0.13623912632465363, 0.014911426231265068, -0.006786853075027466, 0.02194070816040039, 0.4590049386024475, 0.23120102286338806, 0.2578006088733673, -0.3163493871688843, -0.35048821568489075, 0.0007420219480991364, 0.10561299324035645, -0.11325491219758987, -0.19692201912403107, 0.20105068385601044, -0.11095349490642548, -0.30959630012512207, -0.06364300101995468, -0.5783085823059082, -0.32991814613342285, 0.48669713735580444, 0.22484929859638214, 0.5121281743049622, -0.16760587692260742, -0.11800160259008408, 0.1449573040008545, 0.36797526478767395, -0.1525885909795761, 0.15408636629581451, 0.3022060990333557, -0.03908409923315048, 0.018622443079948425, 0.20260396599769592, 0.08953456580638885, 0.13583585619926453, -0.20486116409301758, -0.014348750002682209, -0.3012126386165619, -0.02742975577712059, 0.18805697560310364, -0.15484276413917542, 0.18413904309272766, 0.026713697239756584, 0.22319258749485016, -0.06094741076231003, 0.06802784651517868, -0.11772610247135162, 0.03170817345380783, 0.15847301483154297, -0.18284770846366882, -0.38539308309555054, -0.013145633041858673, -0.17111244797706604, 0.04769691079854965, -0.0006280615925788879, -0.7032933235168457, -0.06327448040246964, 0.07265068590641022, -0.06937981396913528, -0.03406594693660736, 0.09923794120550156, -0.04312063008546829, 0.2042519450187683, 0.1544472724199295, 0.2449750453233719, 0.1417863368988037, -0.2718690037727356, 0.12096339464187622, -0.2757836580276489, -0.18676114082336426, 0.28453975915908813, -0.23186321556568146, 0.0397874116897583, 0.020781459286808968, 0.10187936574220657, 0.34108924865722656, 0.06822305917739868, -0.5816969275474548, -0.11385808140039444, 0.4657231569290161, -0.20126913487911224, 0.1362159252166748, 0.184477761387825, 0.26688265800476074, 0.10629105567932129, -0.1284310519695282, 0.2124745398759842, 0.3538295030593872, -0.21196237206459045, -0.17079615592956543, -0.07130206376314163, -0.33269748091697693, -0.058846570551395416, -0.2403445839881897, 0.529384195804596, 0.20186127722263336, 0.12241394072771072, -0.26803430914878845, 0.14065061509609222, 0.28605446219444275, 0.05670321360230446, -0.02897796779870987, 0.027318080887198448, 0.7622182369232178, -0.09328245371580124, 0.10506923496723175, -0.11119619011878967, 0.21597999334335327, 0.12799818813800812, -0.3299753963947296, -0.4948568344116211, 0.08940350264310837, -0.025288783013820648, -0.23564687371253967, 0.10793586820363998, 0.4834580719470978, -0.12256103754043579, 0.13673901557922363, -0.26708242297172546, 0.12856657803058624, 0.31999194622039795, -0.263148695230484, -0.38718366622924805, -0.3999737799167633, -0.07116091251373291, -0.03558272868394852, -0.03292010724544525, -0.8910264372825623, -0.17213232815265656, 0.11249127238988876, -0.03815902769565582, -0.2536052465438843, 0.08522738516330719, -0.02235705405473709, -0.27161046862602234, -0.3777167499065399, 0.6619985103607178, 0.05689772218465805, 0.033961810171604156, -0.2267160415649414, -0.5398956537246704 ]
https://github.com/huggingface/datasets/issues/188
When will the remaining math_dataset modules be added as dataset objects
Hi @tylerroost, we don't have a timeline for this at the moment. If you want to give it a look we would be happy to review a PR on it. Also, the library is one week old so everything is quite barebones, in particular the doc. You should expect some bumps on the road. To get you started, you can check the datasets scripts in the `./datasets` folder on the repo and find the one on math_datasets that will need to be modified. Then you should check the original repository on the math_dataset to see where the other files to download are located and what is the expected format for the various parts of the dataset. To get a general overview on how datasets scripts are written and used, you can read the nice tutorial on how to add a new dataset for TensorFlow Dataset [here](https://www.tensorflow.org/datasets/add_dataset), our API is not exactly identical but it can give you a high-level overview.
Currently only the algebra_linear_1d is supported. Is there a timeline for making the other modules supported. If no timeline is established, how can I help?
160
When will the remaining math_dataset modules be added as dataset objects Currently only the algebra_linear_1d is supported. Is there a timeline for making the other modules supported. If no timeline is established, how can I help? Hi @tylerroost, we don't have a timeline for this at the moment. If you want to give it a look we would be happy to review a PR on it. Also, the library is one week old so everything is quite barebones, in particular the doc. You should expect some bumps on the road. To get you started, you can check the datasets scripts in the `./datasets` folder on the repo and find the one on math_datasets that will need to be modified. Then you should check the original repository on the math_dataset to see where the other files to download are located and what is the expected format for the various parts of the dataset. To get a general overview on how datasets scripts are written and used, you can read the nice tutorial on how to add a new dataset for TensorFlow Dataset [here](https://www.tensorflow.org/datasets/add_dataset), our API is not exactly identical but it can give you a high-level overview.
[ -0.2745405435562134, -0.07471443712711334, -0.2828443646430969, 0.08163295686244965, 0.10131622850894928, 0.08511609584093094, 0.16227026283740997, 0.18157148361206055, 0.15496566891670227, 0.028999358415603638, 0.09069595485925674, 0.25426092743873596, -0.2430143505334854, 0.09133539348840714, 0.2556445002555847, -0.3420157730579376, 0.2013438642024994, -0.07195019721984863, -0.24810582399368286, -0.3592264652252197, -0.10869895666837692, 0.09392429143190384, -0.2666562497615814, -0.21100108325481415, -0.1336214691400528, -0.06005656719207764, -0.2486088126897812, -0.0442817360162735, -0.42535200715065, -0.23080039024353027, 0.06616607308387756, 0.29805582761764526, 0.2317584753036499, 0.35712140798568726, -0.00010253642540192232, -0.17914719879627228, 0.19525426626205444, 0.0659598857164383, -0.09675727784633636, -0.35875749588012695, -0.36296674609184265, -0.26689574122428894, 0.17846526205539703, 0.10846709460020065, 0.09927291423082352, 0.09038350731134415, -0.03913341462612152, -0.4096411466598511, 0.027925558388233185, 0.3547128736972809, 0.23869948089122772, 0.35676470398902893, 0.414794385433197, -0.19605182111263275, 0.23967748880386353, 0.06696391850709915, -0.18212378025054932, 0.08796827495098114, 0.4211679995059967, 0.11522766947746277, 0.3046659529209137, 0.14688751101493835, 0.19610586762428284, 0.10997594892978668, 0.3800205886363983, 0.01832275651395321, 0.013787664473056793, -0.5149787664413452, -0.3262503743171692, 0.2852599322795868, 0.7866033911705017, -0.23449692130088806, -0.23747506737709045, -0.10458149015903473, -0.03371283411979675, -0.28094711899757385, 0.036548081785440445, 0.031457044184207916, 0.21467295289039612, -0.16369540989398956, 0.06738601624965668, -0.4039885401725769, -0.33536848425865173, 0.4025500416755676, 0.13977450132369995, 0.48645928502082825, 0.12364204972982407, 0.12610067427158356, 0.09881332516670227, -0.14917513728141785, 0.39519456028938293, -0.003663690760731697, 0.21630792319774628, 0.26635515689849854, -0.21953867375850677, -0.21650709211826324, -0.09907501190900803, -0.08511745184659958, 0.018533188849687576, -0.18484362959861755, -0.148396298289299, 0.35971978306770325, -0.3094290792942047, 0.25821036100387573, 0.2134397029876709, -0.15015889704227448, -0.10434850305318832, -0.004754850175231695, 0.42633044719696045, -0.033695489168167114, 0.0713234692811966, 0.19717848300933838, -0.19616752862930298, 0.00761104840785265, -0.2757909893989563, 0.027275195345282555, 0.02952452003955841, -0.012821760028600693, 0.12252514809370041, -0.38320744037628174, 0.09562357515096664, -0.3619909882545471, -0.047780681401491165, -0.0845341756939888, -0.3333866596221924, 0.17141428589820862, -0.009538859128952026, 0.027227312326431274, -0.149873748421669, -0.02315691113471985, -0.07249957323074341, 0.151576429605484, -0.215221107006073, 0.019893193617463112, 0.233424112200737, -0.1018991470336914, 0.08814998716115952, 0.012576972134411335, 0.20164810121059418, 0.15531887114048004, 0.18760786950588226, 0.10861676931381226, -0.13327032327651978, 0.2291123867034912, -0.16918016970157623, 0.03806222230195999, -0.26936987042427063, 0.1862419694662094, -0.0961533635854721, -0.05022193491458893, -0.14967113733291626, -0.21687613427639008, -0.16860425472259521, 0.2626041769981384, -0.14511272311210632, -0.35408085584640503, -0.22397273778915405, 0.3776288330554962, -0.28075435757637024, 0.20390330255031586, -0.17724812030792236, -0.12753553688526154, -0.09540969133377075, -0.3391959071159363, 0.0054366737604141235, 0.07479634881019592, -0.41917359828948975, 0.1555749773979187, -0.13233326375484467, -0.05833612009882927, -0.2366980016231537, -0.054189007729291916, -0.19494962692260742, 0.015208341181278229, -0.09529168158769608, -0.12077109515666962, 0.45636460185050964, -0.5523674488067627, -0.06465843319892883, -0.16999687254428864, 0.22772102057933807, -0.22985903918743134, -0.1641165018081665, 0.19302137196063995, 0.039700496941804886, -0.14828260242938995, -0.20391345024108887, 0.321102499961853, -0.14256255328655243, -0.2917490601539612, -0.20709368586540222, -0.11056296527385712, 0.05193575471639633, 0.11169521510601044, 0.3645806908607483, 0.017507247626781464, 0.16154718399047852, 0.21329626441001892, 0.01444339007139206, 0.10343004763126373, 0.031566694378852844, 0.20741121470928192, 0.4144863188266754, 0.21465088427066803, 0.46539106965065, -0.42616891860961914, -0.4392792582511902, 0.13807740807533264, 0.1953703612089157, 0.18815842270851135, 0.1049882173538208, 0.08624693751335144, -0.0043756794184446335, 0.10294631868600845, -0.12055458128452301, 0.31788063049316406, 0.14472559094429016, -0.0405568853020668, 0.21057093143463135, -0.14622458815574646, -0.5968189835548401, 0.09261283278465271, -0.10412302613258362, 0.4140123426914215, -0.47010162472724915, 0.3047422170639038, 0.015342121943831444, -0.15350058674812317, 0.1693398654460907, 0.24417328834533691, 0.005732011049985886, -0.4595027565956116, 0.08033037930727005, 0.296468049287796, 0.16137069463729858, 0.2357260286808014, -0.03380642086267471, 0.44494086503982544, 0.4259871244430542, -0.06091928109526634, 0.31197884678840637, -0.31688210368156433, -0.026507951319217682, -0.05693725124001503, 0.010205436497926712, 0.2147308588027954, -0.037215251475572586, -0.09473764151334763, 0.2684361934661865, 0.016563748940825462, 0.16712132096290588, 0.2664136588573456, -0.04216375946998596, -0.21579495072364807, 0.03004395216703415, -0.008428283035755157, -0.021349839866161346, -0.13367769122123718, -0.2969610095024109, 0.22897666692733765, 0.6034269332885742, -0.12870290875434875, 0.03560378775000572, 0.061941228806972504, -0.24993333220481873, -0.008935028687119484, 0.09163706004619598, 0.27019980549812317, 0.19163966178894043, 0.1497252732515335, 0.21871417760849, -0.018969612196087837, -0.2912885844707489, -0.12581416964530945, 0.036494046449661255, 0.1996535062789917, 0.1430562436580658, -0.060219839215278625, -0.013700222596526146, 0.00589996762573719, -0.09947986900806427, -0.01922360435128212, -0.04581393301486969, 0.4715062379837036, 0.07942911982536316, -0.1826927810907364, -0.4099809229373932, -0.18739193677902222, -0.07155556976795197, -0.17729900777339935, -0.15517456829547882, -0.30651578307151794, 0.032820116728544235, -0.014600247144699097, 0.19896550476551056, 0.016423191875219345, 0.19826935231685638, 0.09923107177019119, -0.267122745513916, 0.36756622791290283, -0.2708781957626343, 0.0022396452259272337, -0.21750131249427795, 0.19029924273490906, 0.2565097510814667, -0.08611234277486801, 0.41823387145996094, -0.034009285271167755, 0.23329436779022217, -0.138535276055336, -0.6403658986091614, 0.17638802528381348, -0.14959029853343964, -0.026892123743891716, -0.020249709486961365, -0.08343106508255005, 0.179927796125412, 0.11929905414581299, 0.07279114425182343, -0.2918451130390167, -0.0514950230717659, -0.04408702626824379, -0.19708731770515442, -0.11120203882455826, -0.13188089430332184, -0.5581409931182861, -0.4593666195869446, -0.2616688311100006, 0.1764213740825653, 0.3262959122657776, 0.08081486821174622, 0.16245858371257782, 0.08413644134998322, 0.16439931094646454, -0.06314408034086227, 0.03947451710700989, 0.1127874106168747, -0.2584374248981476, 0.40675827860832214, -0.307110071182251, -0.38439661264419556, 0.49610790610313416, -0.1042146384716034, 0.34921616315841675, 0.21272261440753937, -0.3054114878177643, -0.19868513941764832, -0.025309590622782707, -0.015991393476724625, 0.16639316082000732, -0.01960655488073826, 0.23422160744667053, -0.009279914200305939, 0.052656255662441254, -0.2524116337299347, -0.14401845633983612, -0.08615749329328537, 0.3769688606262207, 0.02944539487361908, 0.14342665672302246, 0.33475813269615173, -0.03322362154722214, 0.43053287267684937, 0.03644876554608345, -0.2452242225408554, 0.05040499567985535, 0.16883568465709686, 0.10867682099342346, 0.011382073163986206, -0.05021800845861435, 0.07712586224079132, 0.031326793134212494, 0.29908907413482666, 0.04891553521156311, 0.12088087946176529, -0.10746297240257263, -0.3140336871147156, 0.3371356725692749, -0.17844313383102417, -0.001807473599910736, -0.0018803216516971588, -0.2516936659812927, 0.32957369089126587, 0.08878365159034729, -0.19609853625297546, -0.28800544142723083, -0.1487680971622467, 0.1574665904045105, 0.3545745611190796, 0.24198275804519653, -0.1290258765220642, -0.5378568172454834, -0.18528182804584503, -0.17318904399871826, 0.4174760580062866, -0.10197775065898895, 0.17927822470664978, -0.19229348003864288, 0.11066844314336777, 0.11774301528930664, 0.08598111569881439, 0.18783077597618103, -0.47661417722702026, -0.5271238088607788, 0.27916470170021057, -0.13627296686172485, -0.23418796062469482, -0.024256395176053047, -0.31063759326934814, 0.11367269605398178, -0.029084064066410065, 0.4488908052444458, 0.015480518341064453, -0.36767876148223877, 0.24308724701404572, 0.1308574229478836, 0.08591058850288391, -0.14056432247161865, 0.2629944086074829, -0.010135624557733536, -0.1173248440027237, -0.26204487681388855, -0.10521431267261505, -0.11233872175216675, -0.11672691255807877, -0.5168628096580505, 0.07123567909002304, -0.3327270746231079, 0.18476180732250214, -0.04704843834042549, -0.05659015476703644, 0.2749297618865967, 0.036830876022577286, 0.3168192505836487, -0.14537093043327332, 0.46666717529296875, -0.011513233184814453, -0.380403608083725, -0.1696540117263794, 0.17406556010246277, -0.09162180870771408, 0.1956474334001541, 0.15047888457775116, -0.05298227816820145, 0.1828365921974182, -0.060818493366241455, -0.03103499859571457, -0.12551698088645935, 0.16413456201553345, 0.41933998465538025, 0.22790846228599548, -0.2852482795715332, -0.6071878671646118, 0.11472297459840775, 0.016152508556842804, -0.0485951229929924, 0.4207158386707306, -0.13392110168933868, -0.1745080053806305, 0.11098361760377884, 0.04105658456683159, 0.5863261222839355, -0.2631886601448059, -0.29278111457824707, 0.034749507904052734, -0.08629976212978363, 0.4732601046562195, -0.6111394166946411, 0.17423972487449646, -0.03426690399646759, 0.10870574414730072, -0.08511238545179367, -0.2548710107803345, 0.2109447419643402, 0.0722767636179924, -0.2013600766658783, 0.09954262524843216, 0.17709048092365265, 0.13807985186576843, -0.1942109614610672, 0.6597749590873718, -0.06312814354896545, -0.14037363231182098, -0.09899794310331345, 0.25169306993484497, -0.028308503329753876, 0.05218175798654556, -0.060260698199272156, -0.19137829542160034, -0.031877126544713974, 0.18113374710083008, -0.28495198488235474, -0.16876012086868286, -0.2213171124458313, 0.008319169282913208, 0.09131782501935959, -0.043295249342918396, 0.3468940854072571, 0.09623099863529205, 0.5915402173995972, -0.032024163752794266, -0.2376023232936859, 0.27973878383636475, -0.2682279944419861, -0.11788743734359741, -0.12288849800825119, 0.0172073096036911, 0.37216341495513916, -0.2967418134212494, -0.012082003057003021, -0.07735566049814224, -0.0002785995602607727, -0.24259847402572632, -0.3651350140571594, -0.07142293453216553, 0.3298625946044922, 0.09708583354949951, 0.19230282306671143, 0.3033461570739746, -0.09278273582458496, 0.007560327649116516, 0.24786610901355743, 0.45117878913879395, 0.014724934473633766, 0.4076644480228424, 0.04798465594649315, 0.0005302578210830688, -0.15134297311306, -0.15054908394813538, 0.2708597779273987, -0.2877454161643982, 0.07257483899593353, 0.43703052401542664, -0.19491253793239594, -0.20974546670913696, -0.19884470105171204, 0.1838008165359497, 0.05712958425283432, 0.07818368077278137, 0.15595871210098267, 0.0962727814912796, 0.19285613298416138, 0.0999174416065216, -0.023508921265602112, -0.41114315390586853, -0.4108962118625641, -0.29322078824043274, -0.22436901926994324, 0.2566511034965515, 0.04946155473589897, 0.2794496417045593, -0.19637498259544373, -0.07223749160766602, 0.1741122454404831, 0.14937086403369904, -0.3791824281215668, 0.05701463669538498, 0.15133583545684814, 0.03618831932544708, 0.22612476348876953, -0.07250086218118668, -0.036121729761362076, -0.07174065709114075, 0.09386380016803741, -0.02794789895415306, -0.4679449200630188, -0.18472173810005188, 0.04202653840184212, 0.1002144142985344, -0.04263687878847122, -0.22871829569339752, 0.12667164206504822, -0.3141505718231201, -0.2827928364276886, -0.024909455329179764, -0.03976817801594734, -0.30507707595825195, -0.14212048053741455, 0.3311746120452881, 0.18199700117111206, 0.17024853825569153, 0.5582085251808167, 0.09513972699642181, 0.21245084702968597, 0.20485840737819672, 0.4021880328655243, 0.18951991200447083, 0.2601070702075958, -0.0821143388748169, -0.14819803833961487, 0.07816378027200699, -0.13820593059062958, -0.17945769429206848, 0.3982889950275421, -0.16925719380378723, 0.15359115600585938, 0.03235579654574394, 0.10144012421369553, 0.26424211263656616, 0.02107330411672592, 0.036964885890483856, 0.14142921566963196, 0.21310967206954956, -0.13443000614643097, -0.05589967221021652, 0.4027065932750702, 0.497976154088974, 0.10187932848930359, 0.0768643319606781, 0.5620507001876831, 0.15833179652690887, 0.28498029708862305, 0.1785440742969513, 0.23345735669136047, -0.142174631357193, 0.40867555141448975, -0.10305309295654297, -0.05373341217637062, 0.07344001531600952, 0.089919812977314, 0.3814931809902191, 0.09467073529958725, 0.3289201259613037, 0.184058278799057, 0.4397294521331787, 0.1460435390472412, -0.08007952570915222, 0.5982282161712646, -0.3191630244255066, 0.06604889035224915, 0.1627112776041031, 0.06078674644231796, 0.09383003413677216, 0.07741823047399521, 0.4690656065940857, -0.0093905134126544, -0.1389847844839096, -0.05403481796383858, -0.11670021712779999, -0.10878174751996994, -0.005930894520133734, -0.04140682891011238, -0.17655430734157562, -0.20635275542736053, -0.09554557502269745, 0.04245547950267792, -0.2446392923593521, 0.10841125249862671, -0.006783910095691681, 0.02507505565881729, -0.1830292046070099, 0.34995150566101074, -0.08807999640703201, -0.06958393007516861, 0.20820161700248718, 0.44161081314086914, -0.22547046840190887, -0.20558896660804749, -0.09230734407901764, -0.07757943868637085, -0.06999115645885468, 0.020393498241901398, -0.35975393652915955, 0.30949515104293823, 0.05170129984617233, -0.1929580718278885, 0.20771780610084534, 0.40192338824272156, 0.07114551216363907, 0.3664085865020752, -0.11097860336303711, 0.15951332449913025, -0.053555283695459366, -0.02282090112566948, -0.28334105014801025, -0.02114713191986084, -0.416303426027298, -0.08433780819177628, 0.11024513840675354, -0.1518712341785431, -0.04534941166639328, -0.04589643329381943, -0.4722166657447815, -0.5669906139373779, 0.5651461482048035, -0.18957027792930603, -0.15351378917694092, -0.2535612881183624, 0.1081455796957016, -0.09533143043518066, 0.25117379426956177, 0.12147452682256699, 0.4550130367279053, 0.0582243837416172, -0.3774458169937134, -0.2873680591583252, 0.005676575005054474, 0.14915914833545685, 0.28153517842292786, -0.11302037537097931, 0.199852854013443, 0.24011662602424622, -0.033427052199840546, 0.4303879737854004, -0.2973400056362152, 0.0923045426607132, -0.004098173230886459, -0.3275865614414215, 0.009855348616838455, -0.2028951495885849, 0.041549477726221085, 0.11045955121517181, 0.25907865166664124, 0.07082289457321167, -0.2688297629356384, -0.025742938742041588, -0.41214823722839355, -0.023358911275863647, 0.33951449394226074, 0.08142517507076263, 0.4212688207626343, 0.14328230917453766, 0.2954123914241791, 0.18000560998916626, -0.04555334150791168, -0.4166836142539978, -0.1639953851699829, -0.019758179783821106, 0.23975998163223267, -0.12995558977127075, 0.08060009032487869, -0.19504332542419434, 0.014446297660470009, -0.16572198271751404, 0.14214061200618744, -0.1651899814605713, -0.3549889922142029, 0.036633796989917755, 0.0665656179189682, -0.08965351432561874, 0.03277630731463432, 0.4078940451145172, 0.13496819138526917, 0.2335764318704605, -0.2401530146598816, -0.2137974351644516, 0.12585175037384033, 0.05555187165737152, -0.07777595520019531, -0.24822531640529633, -0.19380569458007812, -0.18507128953933716, 0.2629100978374481, 0.11359743773937225, -0.8757450580596924, -0.21726424992084503, 0.2978821098804474, -0.09050803631544113, 0.06773252785205841, 0.26117250323295593, 0.46081244945526123, -0.011697661131620407, -0.1992034763097763, 0.08760347962379456, 0.0045112017542123795, -0.05850193277001381, -0.130270317196846, -0.1536991000175476 ]
https://github.com/huggingface/datasets/issues/187
[Question] How to load wikipedia ? Beam runner ?
I have seen that somebody is hard working on easierly loadable wikipedia. #129 Maybe I should wait a few days for that version ?
When `nlp.load_dataset('wikipedia')`, I got * `WARNING:nlp.builder:Trying to generate a dataset using Apache Beam, yet no Beam Runner or PipelineOptions() has been provided. Please pass a nlp.DownloadConfig(beam_runner=...) object to the builder.download_and_prepare(download_config=...) method. Default values will be used.` * `AttributeError: 'NoneType' object has no attribute 'size'` Could somebody tell me what should I do ? # Env On Colab, ``` git clone https://github.com/huggingface/nlp cd nlp pip install -q . ``` ``` %pip install -q apache_beam mwparserfromhell -> ERROR: pydrive 1.3.1 has requirement oauth2client>=4.0.0, but you'll have oauth2client 3.0.0 which is incompatible. ERROR: google-api-python-client 1.7.12 has requirement httplib2<1dev,>=0.17.0, but you'll have httplib2 0.12.0 which is incompatible. ERROR: chainer 6.5.0 has requirement typing-extensions<=3.6.6, but you'll have typing-extensions 3.7.4.2 which is incompatible. ``` ``` pip install -q apache-beam[interactive] ERROR: google-colab 1.0.0 has requirement ipython~=5.5.0, but you'll have ipython 5.10.0 which is incompatible. ``` # The whole message ``` WARNING:nlp.builder:Trying to generate a dataset using Apache Beam, yet no Beam Runner or PipelineOptions() has been provided. Please pass a nlp.DownloadConfig(beam_runner=...) object to the builder.download_and_prepare(download_config=...) method. Default values will be used. Downloading and preparing dataset wikipedia/20200501.aa (download: Unknown size, generated: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/wikipedia/20200501.aa/1.0.0... --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) /usr/local/lib/python3.6/dist-packages/apache_beam/runners/common.cpython-36m-x86_64-linux-gnu.so in apache_beam.runners.common.DoFnRunner.process() 44 frames /usr/local/lib/python3.6/dist-packages/apache_beam/runners/common.cpython-36m-x86_64-linux-gnu.so in apache_beam.runners.common.PerWindowInvoker.invoke_process() /usr/local/lib/python3.6/dist-packages/apache_beam/runners/common.cpython-36m-x86_64-linux-gnu.so in apache_beam.runners.common.PerWindowInvoker._invoke_process_per_window() /usr/local/lib/python3.6/dist-packages/apache_beam/io/iobase.py in process(self, element, init_result) 1081 writer.write(e) -> 1082 return [window.TimestampedValue(writer.close(), timestamp.MAX_TIMESTAMP)] 1083 /usr/local/lib/python3.6/dist-packages/apache_beam/io/filebasedsink.py in close(self) 422 def close(self): --> 423 self.sink.close(self.temp_handle) 424 return self.temp_shard_path /usr/local/lib/python3.6/dist-packages/apache_beam/io/parquetio.py in close(self, writer) 537 if len(self._buffer[0]) > 0: --> 538 self._flush_buffer() 539 if self._record_batches_byte_size > 0: /usr/local/lib/python3.6/dist-packages/apache_beam/io/parquetio.py in _flush_buffer(self) 569 for b in x.buffers(): --> 570 size = size + b.size 571 self._record_batches_byte_size = self._record_batches_byte_size + size AttributeError: 'NoneType' object has no attribute 'size' During handling of the above exception, another exception occurred: AttributeError Traceback (most recent call last) <ipython-input-9-340aabccefff> in <module>() ----> 1 dset = nlp.load_dataset('wikipedia') /usr/local/lib/python3.6/dist-packages/nlp/load.py in load_dataset(path, name, version, data_dir, data_files, split, cache_dir, download_config, download_mode, ignore_verifications, save_infos, **config_kwargs) 518 download_mode=download_mode, 519 ignore_verifications=ignore_verifications, --> 520 save_infos=save_infos, 521 ) 522 /usr/local/lib/python3.6/dist-packages/nlp/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, save_infos, dl_manager, **download_and_prepare_kwargs) 370 verify_infos = not save_infos and not ignore_verifications 371 self._download_and_prepare( --> 372 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs 373 ) 374 # Sync info /usr/local/lib/python3.6/dist-packages/nlp/builder.py in _download_and_prepare(self, dl_manager, verify_infos) 770 with beam.Pipeline(runner=beam_runner, options=beam_options,) as pipeline: 771 super(BeamBasedBuilder, self)._download_and_prepare( --> 772 dl_manager, pipeline=pipeline, verify_infos=False 773 ) # TODO{beam} verify infos 774 /usr/local/lib/python3.6/dist-packages/apache_beam/pipeline.py in __exit__(self, exc_type, exc_val, exc_tb) 501 def __exit__(self, exc_type, exc_val, exc_tb): 502 if not exc_type: --> 503 self.run().wait_until_finish() 504 505 def visit(self, visitor): /usr/local/lib/python3.6/dist-packages/apache_beam/pipeline.py in run(self, test_runner_api) 481 return Pipeline.from_runner_api( 482 self.to_runner_api(use_fake_coders=True), self.runner, --> 483 self._options).run(False) 484 485 if self._options.view_as(TypeOptions).runtime_type_check: /usr/local/lib/python3.6/dist-packages/apache_beam/pipeline.py in run(self, test_runner_api) 494 finally: 495 shutil.rmtree(tmpdir) --> 496 return self.runner.run_pipeline(self, self._options) 497 498 def __enter__(self): /usr/local/lib/python3.6/dist-packages/apache_beam/runners/direct/direct_runner.py in run_pipeline(self, pipeline, options) 128 runner = BundleBasedDirectRunner() 129 --> 130 return runner.run_pipeline(pipeline, options) 131 132 /usr/local/lib/python3.6/dist-packages/apache_beam/runners/portability/fn_api_runner.py in run_pipeline(self, pipeline, options) 553 554 self._latest_run_result = self.run_via_runner_api( --> 555 pipeline.to_runner_api(default_environment=self._default_environment)) 556 return self._latest_run_result 557 /usr/local/lib/python3.6/dist-packages/apache_beam/runners/portability/fn_api_runner.py in run_via_runner_api(self, pipeline_proto) 563 # TODO(pabloem, BEAM-7514): Create a watermark manager (that has access to 564 # the teststream (if any), and all the stages). --> 565 return self.run_stages(stage_context, stages) 566 567 @contextlib.contextmanager /usr/local/lib/python3.6/dist-packages/apache_beam/runners/portability/fn_api_runner.py in run_stages(self, stage_context, stages) 704 stage, 705 pcoll_buffers, --> 706 stage_context.safe_coders) 707 metrics_by_stage[stage.name] = stage_results.process_bundle.metrics 708 monitoring_infos_by_stage[stage.name] = ( /usr/local/lib/python3.6/dist-packages/apache_beam/runners/portability/fn_api_runner.py in _run_stage(self, worker_handler_factory, pipeline_components, stage, pcoll_buffers, safe_coders) 1071 cache_token_generator=cache_token_generator) 1072 -> 1073 result, splits = bundle_manager.process_bundle(data_input, data_output) 1074 1075 def input_for(transform_id, input_id): /usr/local/lib/python3.6/dist-packages/apache_beam/runners/portability/fn_api_runner.py in process_bundle(self, inputs, expected_outputs) 2332 2333 with UnboundedThreadPoolExecutor() as executor: -> 2334 for result, split_result in executor.map(execute, part_inputs): 2335 2336 split_result_list += split_result /usr/lib/python3.6/concurrent/futures/_base.py in result_iterator() 584 # Careful not to keep a reference to the popped future 585 if timeout is None: --> 586 yield fs.pop().result() 587 else: 588 yield fs.pop().result(end_time - time.monotonic()) /usr/lib/python3.6/concurrent/futures/_base.py in result(self, timeout) 430 raise CancelledError() 431 elif self._state == FINISHED: --> 432 return self.__get_result() 433 else: 434 raise TimeoutError() /usr/lib/python3.6/concurrent/futures/_base.py in __get_result(self) 382 def __get_result(self): 383 if self._exception: --> 384 raise self._exception 385 else: 386 return self._result /usr/local/lib/python3.6/dist-packages/apache_beam/utils/thread_pool_executor.py in run(self) 42 # If the future wasn't cancelled, then attempt to execute it. 43 try: ---> 44 self._future.set_result(self._fn(*self._fn_args, **self._fn_kwargs)) 45 except BaseException as exc: 46 # Even though Python 2 futures library has #set_exection(), /usr/local/lib/python3.6/dist-packages/apache_beam/runners/portability/fn_api_runner.py in execute(part_map) 2329 self._registered, 2330 cache_token_generator=self._cache_token_generator) -> 2331 return bundle_manager.process_bundle(part_map, expected_outputs) 2332 2333 with UnboundedThreadPoolExecutor() as executor: /usr/local/lib/python3.6/dist-packages/apache_beam/runners/portability/fn_api_runner.py in process_bundle(self, inputs, expected_outputs) 2243 process_bundle_descriptor_id=self._bundle_descriptor.id, 2244 cache_tokens=[next(self._cache_token_generator)])) -> 2245 result_future = self._worker_handler.control_conn.push(process_bundle_req) 2246 2247 split_results = [] # type: List[beam_fn_api_pb2.ProcessBundleSplitResponse] /usr/local/lib/python3.6/dist-packages/apache_beam/runners/portability/fn_api_runner.py in push(self, request) 1557 self._uid_counter += 1 1558 request.instruction_id = 'control_%s' % self._uid_counter -> 1559 response = self.worker.do_instruction(request) 1560 return ControlFuture(request.instruction_id, response) 1561 /usr/local/lib/python3.6/dist-packages/apache_beam/runners/worker/sdk_worker.py in do_instruction(self, request) 413 # E.g. if register is set, this will call self.register(request.register)) 414 return getattr(self, request_type)( --> 415 getattr(request, request_type), request.instruction_id) 416 else: 417 raise NotImplementedError /usr/local/lib/python3.6/dist-packages/apache_beam/runners/worker/sdk_worker.py in process_bundle(self, request, instruction_id) 448 with self.maybe_profile(instruction_id): 449 delayed_applications, requests_finalization = ( --> 450 bundle_processor.process_bundle(instruction_id)) 451 monitoring_infos = bundle_processor.monitoring_infos() 452 monitoring_infos.extend(self.state_cache_metrics_fn()) /usr/local/lib/python3.6/dist-packages/apache_beam/runners/worker/bundle_processor.py in process_bundle(self, instruction_id) 837 for data in data_channel.input_elements(instruction_id, 838 expected_transforms): --> 839 input_op_by_transform_id[data.transform_id].process_encoded(data.data) 840 841 # Finish all operations. /usr/local/lib/python3.6/dist-packages/apache_beam/runners/worker/bundle_processor.py in process_encoded(self, encoded_windowed_values) 214 decoded_value = self.windowed_coder_impl.decode_from_stream( 215 input_stream, True) --> 216 self.output(decoded_value) 217 218 def try_split(self, fraction_of_remainder, total_buffer_size): /usr/local/lib/python3.6/dist-packages/apache_beam/runners/worker/operations.cpython-36m-x86_64-linux-gnu.so in apache_beam.runners.worker.operations.Operation.output() /usr/local/lib/python3.6/dist-packages/apache_beam/runners/worker/operations.cpython-36m-x86_64-linux-gnu.so in apache_beam.runners.worker.operations.Operation.output() /usr/local/lib/python3.6/dist-packages/apache_beam/runners/worker/operations.cpython-36m-x86_64-linux-gnu.so in apache_beam.runners.worker.operations.SingletonConsumerSet.receive() /usr/local/lib/python3.6/dist-packages/apache_beam/runners/worker/operations.cpython-36m-x86_64-linux-gnu.so in apache_beam.runners.worker.operations.DoOperation.process() /usr/local/lib/python3.6/dist-packages/apache_beam/runners/worker/operations.cpython-36m-x86_64-linux-gnu.so in apache_beam.runners.worker.operations.DoOperation.process() /usr/local/lib/python3.6/dist-packages/apache_beam/runners/common.cpython-36m-x86_64-linux-gnu.so in apache_beam.runners.common.DoFnRunner.process() /usr/local/lib/python3.6/dist-packages/apache_beam/runners/common.cpython-36m-x86_64-linux-gnu.so in apache_beam.runners.common.DoFnRunner._reraise_augmented() /usr/local/lib/python3.6/dist-packages/future/utils/__init__.py in raise_with_traceback(exc, traceback) 417 if traceback == Ellipsis: 418 _, _, traceback = sys.exc_info() --> 419 raise exc.with_traceback(traceback) 420 421 else: /usr/local/lib/python3.6/dist-packages/apache_beam/runners/common.cpython-36m-x86_64-linux-gnu.so in apache_beam.runners.common.DoFnRunner.process() /usr/local/lib/python3.6/dist-packages/apache_beam/runners/common.cpython-36m-x86_64-linux-gnu.so in apache_beam.runners.common.PerWindowInvoker.invoke_process() /usr/local/lib/python3.6/dist-packages/apache_beam/runners/common.cpython-36m-x86_64-linux-gnu.so in apache_beam.runners.common.PerWindowInvoker._invoke_process_per_window() /usr/local/lib/python3.6/dist-packages/apache_beam/io/iobase.py in process(self, element, init_result) 1080 for e in bundle[1]: # values 1081 writer.write(e) -> 1082 return [window.TimestampedValue(writer.close(), timestamp.MAX_TIMESTAMP)] 1083 1084 /usr/local/lib/python3.6/dist-packages/apache_beam/io/filebasedsink.py in close(self) 421 422 def close(self): --> 423 self.sink.close(self.temp_handle) 424 return self.temp_shard_path /usr/local/lib/python3.6/dist-packages/apache_beam/io/parquetio.py in close(self, writer) 536 def close(self, writer): 537 if len(self._buffer[0]) > 0: --> 538 self._flush_buffer() 539 if self._record_batches_byte_size > 0: 540 self._write_batches(writer) /usr/local/lib/python3.6/dist-packages/apache_beam/io/parquetio.py in _flush_buffer(self) 568 for x in arrays: 569 for b in x.buffers(): --> 570 size = size + b.size 571 self._record_batches_byte_size = self._record_batches_byte_size + size AttributeError: 'NoneType' object has no attribute 'size' [while running 'train/Save to parquet/Write/WriteImpl/WriteBundles'] ```
24
[Question] How to load wikipedia ? Beam runner ? When `nlp.load_dataset('wikipedia')`, I got * `WARNING:nlp.builder:Trying to generate a dataset using Apache Beam, yet no Beam Runner or PipelineOptions() has been provided. Please pass a nlp.DownloadConfig(beam_runner=...) object to the builder.download_and_prepare(download_config=...) method. Default values will be used.` * `AttributeError: 'NoneType' object has no attribute 'size'` Could somebody tell me what should I do ? # Env On Colab, ``` git clone https://github.com/huggingface/nlp cd nlp pip install -q . ``` ``` %pip install -q apache_beam mwparserfromhell -> ERROR: pydrive 1.3.1 has requirement oauth2client>=4.0.0, but you'll have oauth2client 3.0.0 which is incompatible. ERROR: google-api-python-client 1.7.12 has requirement httplib2<1dev,>=0.17.0, but you'll have httplib2 0.12.0 which is incompatible. ERROR: chainer 6.5.0 has requirement typing-extensions<=3.6.6, but you'll have typing-extensions 3.7.4.2 which is incompatible. ``` ``` pip install -q apache-beam[interactive] ERROR: google-colab 1.0.0 has requirement ipython~=5.5.0, but you'll have ipython 5.10.0 which is incompatible. ``` # The whole message ``` WARNING:nlp.builder:Trying to generate a dataset using Apache Beam, yet no Beam Runner or PipelineOptions() has been provided. Please pass a nlp.DownloadConfig(beam_runner=...) object to the builder.download_and_prepare(download_config=...) method. Default values will be used. Downloading and preparing dataset wikipedia/20200501.aa (download: Unknown size, generated: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/wikipedia/20200501.aa/1.0.0... --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) /usr/local/lib/python3.6/dist-packages/apache_beam/runners/common.cpython-36m-x86_64-linux-gnu.so in apache_beam.runners.common.DoFnRunner.process() 44 frames /usr/local/lib/python3.6/dist-packages/apache_beam/runners/common.cpython-36m-x86_64-linux-gnu.so in apache_beam.runners.common.PerWindowInvoker.invoke_process() /usr/local/lib/python3.6/dist-packages/apache_beam/runners/common.cpython-36m-x86_64-linux-gnu.so in apache_beam.runners.common.PerWindowInvoker._invoke_process_per_window() /usr/local/lib/python3.6/dist-packages/apache_beam/io/iobase.py in process(self, element, init_result) 1081 writer.write(e) -> 1082 return [window.TimestampedValue(writer.close(), timestamp.MAX_TIMESTAMP)] 1083 /usr/local/lib/python3.6/dist-packages/apache_beam/io/filebasedsink.py in close(self) 422 def close(self): --> 423 self.sink.close(self.temp_handle) 424 return self.temp_shard_path /usr/local/lib/python3.6/dist-packages/apache_beam/io/parquetio.py in close(self, writer) 537 if len(self._buffer[0]) > 0: --> 538 self._flush_buffer() 539 if self._record_batches_byte_size > 0: /usr/local/lib/python3.6/dist-packages/apache_beam/io/parquetio.py in _flush_buffer(self) 569 for b in x.buffers(): --> 570 size = size + b.size 571 self._record_batches_byte_size = self._record_batches_byte_size + size AttributeError: 'NoneType' object has no attribute 'size' During handling of the above exception, another exception occurred: AttributeError Traceback (most recent call last) <ipython-input-9-340aabccefff> in <module>() ----> 1 dset = nlp.load_dataset('wikipedia') /usr/local/lib/python3.6/dist-packages/nlp/load.py in load_dataset(path, name, version, data_dir, data_files, split, cache_dir, download_config, download_mode, ignore_verifications, save_infos, **config_kwargs) 518 download_mode=download_mode, 519 ignore_verifications=ignore_verifications, --> 520 save_infos=save_infos, 521 ) 522 /usr/local/lib/python3.6/dist-packages/nlp/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, save_infos, dl_manager, **download_and_prepare_kwargs) 370 verify_infos = not save_infos and not ignore_verifications 371 self._download_and_prepare( --> 372 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs 373 ) 374 # Sync info /usr/local/lib/python3.6/dist-packages/nlp/builder.py in _download_and_prepare(self, dl_manager, verify_infos) 770 with beam.Pipeline(runner=beam_runner, options=beam_options,) as pipeline: 771 super(BeamBasedBuilder, self)._download_and_prepare( --> 772 dl_manager, pipeline=pipeline, verify_infos=False 773 ) # TODO{beam} verify infos 774 /usr/local/lib/python3.6/dist-packages/apache_beam/pipeline.py in __exit__(self, exc_type, exc_val, exc_tb) 501 def __exit__(self, exc_type, exc_val, exc_tb): 502 if not exc_type: --> 503 self.run().wait_until_finish() 504 505 def visit(self, visitor): /usr/local/lib/python3.6/dist-packages/apache_beam/pipeline.py in run(self, test_runner_api) 481 return Pipeline.from_runner_api( 482 self.to_runner_api(use_fake_coders=True), self.runner, --> 483 self._options).run(False) 484 485 if self._options.view_as(TypeOptions).runtime_type_check: /usr/local/lib/python3.6/dist-packages/apache_beam/pipeline.py in run(self, test_runner_api) 494 finally: 495 shutil.rmtree(tmpdir) --> 496 return self.runner.run_pipeline(self, self._options) 497 498 def __enter__(self): /usr/local/lib/python3.6/dist-packages/apache_beam/runners/direct/direct_runner.py in run_pipeline(self, pipeline, options) 128 runner = BundleBasedDirectRunner() 129 --> 130 return runner.run_pipeline(pipeline, options) 131 132 /usr/local/lib/python3.6/dist-packages/apache_beam/runners/portability/fn_api_runner.py in run_pipeline(self, pipeline, options) 553 554 self._latest_run_result = self.run_via_runner_api( --> 555 pipeline.to_runner_api(default_environment=self._default_environment)) 556 return self._latest_run_result 557 /usr/local/lib/python3.6/dist-packages/apache_beam/runners/portability/fn_api_runner.py in run_via_runner_api(self, pipeline_proto) 563 # TODO(pabloem, BEAM-7514): Create a watermark manager (that has access to 564 # the teststream (if any), and all the stages). --> 565 return self.run_stages(stage_context, stages) 566 567 @contextlib.contextmanager /usr/local/lib/python3.6/dist-packages/apache_beam/runners/portability/fn_api_runner.py in run_stages(self, stage_context, stages) 704 stage, 705 pcoll_buffers, --> 706 stage_context.safe_coders) 707 metrics_by_stage[stage.name] = stage_results.process_bundle.metrics 708 monitoring_infos_by_stage[stage.name] = ( /usr/local/lib/python3.6/dist-packages/apache_beam/runners/portability/fn_api_runner.py in _run_stage(self, worker_handler_factory, pipeline_components, stage, pcoll_buffers, safe_coders) 1071 cache_token_generator=cache_token_generator) 1072 -> 1073 result, splits = bundle_manager.process_bundle(data_input, data_output) 1074 1075 def input_for(transform_id, input_id): /usr/local/lib/python3.6/dist-packages/apache_beam/runners/portability/fn_api_runner.py in process_bundle(self, inputs, expected_outputs) 2332 2333 with UnboundedThreadPoolExecutor() as executor: -> 2334 for result, split_result in executor.map(execute, part_inputs): 2335 2336 split_result_list += split_result /usr/lib/python3.6/concurrent/futures/_base.py in result_iterator() 584 # Careful not to keep a reference to the popped future 585 if timeout is None: --> 586 yield fs.pop().result() 587 else: 588 yield fs.pop().result(end_time - time.monotonic()) /usr/lib/python3.6/concurrent/futures/_base.py in result(self, timeout) 430 raise CancelledError() 431 elif self._state == FINISHED: --> 432 return self.__get_result() 433 else: 434 raise TimeoutError() /usr/lib/python3.6/concurrent/futures/_base.py in __get_result(self) 382 def __get_result(self): 383 if self._exception: --> 384 raise self._exception 385 else: 386 return self._result /usr/local/lib/python3.6/dist-packages/apache_beam/utils/thread_pool_executor.py in run(self) 42 # If the future wasn't cancelled, then attempt to execute it. 43 try: ---> 44 self._future.set_result(self._fn(*self._fn_args, **self._fn_kwargs)) 45 except BaseException as exc: 46 # Even though Python 2 futures library has #set_exection(), /usr/local/lib/python3.6/dist-packages/apache_beam/runners/portability/fn_api_runner.py in execute(part_map) 2329 self._registered, 2330 cache_token_generator=self._cache_token_generator) -> 2331 return bundle_manager.process_bundle(part_map, expected_outputs) 2332 2333 with UnboundedThreadPoolExecutor() as executor: /usr/local/lib/python3.6/dist-packages/apache_beam/runners/portability/fn_api_runner.py in process_bundle(self, inputs, expected_outputs) 2243 process_bundle_descriptor_id=self._bundle_descriptor.id, 2244 cache_tokens=[next(self._cache_token_generator)])) -> 2245 result_future = self._worker_handler.control_conn.push(process_bundle_req) 2246 2247 split_results = [] # type: List[beam_fn_api_pb2.ProcessBundleSplitResponse] /usr/local/lib/python3.6/dist-packages/apache_beam/runners/portability/fn_api_runner.py in push(self, request) 1557 self._uid_counter += 1 1558 request.instruction_id = 'control_%s' % self._uid_counter -> 1559 response = self.worker.do_instruction(request) 1560 return ControlFuture(request.instruction_id, response) 1561 /usr/local/lib/python3.6/dist-packages/apache_beam/runners/worker/sdk_worker.py in do_instruction(self, request) 413 # E.g. if register is set, this will call self.register(request.register)) 414 return getattr(self, request_type)( --> 415 getattr(request, request_type), request.instruction_id) 416 else: 417 raise NotImplementedError /usr/local/lib/python3.6/dist-packages/apache_beam/runners/worker/sdk_worker.py in process_bundle(self, request, instruction_id) 448 with self.maybe_profile(instruction_id): 449 delayed_applications, requests_finalization = ( --> 450 bundle_processor.process_bundle(instruction_id)) 451 monitoring_infos = bundle_processor.monitoring_infos() 452 monitoring_infos.extend(self.state_cache_metrics_fn()) /usr/local/lib/python3.6/dist-packages/apache_beam/runners/worker/bundle_processor.py in process_bundle(self, instruction_id) 837 for data in data_channel.input_elements(instruction_id, 838 expected_transforms): --> 839 input_op_by_transform_id[data.transform_id].process_encoded(data.data) 840 841 # Finish all operations. /usr/local/lib/python3.6/dist-packages/apache_beam/runners/worker/bundle_processor.py in process_encoded(self, encoded_windowed_values) 214 decoded_value = self.windowed_coder_impl.decode_from_stream( 215 input_stream, True) --> 216 self.output(decoded_value) 217 218 def try_split(self, fraction_of_remainder, total_buffer_size): /usr/local/lib/python3.6/dist-packages/apache_beam/runners/worker/operations.cpython-36m-x86_64-linux-gnu.so in apache_beam.runners.worker.operations.Operation.output() /usr/local/lib/python3.6/dist-packages/apache_beam/runners/worker/operations.cpython-36m-x86_64-linux-gnu.so in apache_beam.runners.worker.operations.Operation.output() /usr/local/lib/python3.6/dist-packages/apache_beam/runners/worker/operations.cpython-36m-x86_64-linux-gnu.so in apache_beam.runners.worker.operations.SingletonConsumerSet.receive() /usr/local/lib/python3.6/dist-packages/apache_beam/runners/worker/operations.cpython-36m-x86_64-linux-gnu.so in apache_beam.runners.worker.operations.DoOperation.process() /usr/local/lib/python3.6/dist-packages/apache_beam/runners/worker/operations.cpython-36m-x86_64-linux-gnu.so in apache_beam.runners.worker.operations.DoOperation.process() /usr/local/lib/python3.6/dist-packages/apache_beam/runners/common.cpython-36m-x86_64-linux-gnu.so in apache_beam.runners.common.DoFnRunner.process() /usr/local/lib/python3.6/dist-packages/apache_beam/runners/common.cpython-36m-x86_64-linux-gnu.so in apache_beam.runners.common.DoFnRunner._reraise_augmented() /usr/local/lib/python3.6/dist-packages/future/utils/__init__.py in raise_with_traceback(exc, traceback) 417 if traceback == Ellipsis: 418 _, _, traceback = sys.exc_info() --> 419 raise exc.with_traceback(traceback) 420 421 else: /usr/local/lib/python3.6/dist-packages/apache_beam/runners/common.cpython-36m-x86_64-linux-gnu.so in apache_beam.runners.common.DoFnRunner.process() /usr/local/lib/python3.6/dist-packages/apache_beam/runners/common.cpython-36m-x86_64-linux-gnu.so in apache_beam.runners.common.PerWindowInvoker.invoke_process() /usr/local/lib/python3.6/dist-packages/apache_beam/runners/common.cpython-36m-x86_64-linux-gnu.so in apache_beam.runners.common.PerWindowInvoker._invoke_process_per_window() /usr/local/lib/python3.6/dist-packages/apache_beam/io/iobase.py in process(self, element, init_result) 1080 for e in bundle[1]: # values 1081 writer.write(e) -> 1082 return [window.TimestampedValue(writer.close(), timestamp.MAX_TIMESTAMP)] 1083 1084 /usr/local/lib/python3.6/dist-packages/apache_beam/io/filebasedsink.py in close(self) 421 422 def close(self): --> 423 self.sink.close(self.temp_handle) 424 return self.temp_shard_path /usr/local/lib/python3.6/dist-packages/apache_beam/io/parquetio.py in close(self, writer) 536 def close(self, writer): 537 if len(self._buffer[0]) > 0: --> 538 self._flush_buffer() 539 if self._record_batches_byte_size > 0: 540 self._write_batches(writer) /usr/local/lib/python3.6/dist-packages/apache_beam/io/parquetio.py in _flush_buffer(self) 568 for x in arrays: 569 for b in x.buffers(): --> 570 size = size + b.size 571 self._record_batches_byte_size = self._record_batches_byte_size + size AttributeError: 'NoneType' object has no attribute 'size' [while running 'train/Save to parquet/Write/WriteImpl/WriteBundles'] ``` I have seen that somebody is hard working on easierly loadable wikipedia. #129 Maybe I should wait a few days for that version ?
[ -0.1516936868429184, 0.003117978572845459, -0.017220191657543182, 0.3954120874404907, -0.06617966294288635, 0.05573432892560959, 0.04334854334592819, 0.3345056176185608, 0.34885460138320923, 0.11682825535535812, 0.3199312388896942, 0.17322202026844025, -0.14785289764404297, -0.08189906179904938, -0.016212552785873413, -0.45966216921806335, -0.05198804289102554, 0.24634337425231934, 0.036584168672561646, -0.05598790571093559, -0.29650378227233887, 0.2679029107093811, -0.29957008361816406, 0.10403289645910263, -0.06252676993608475, -0.14766930043697357, 0.1509713977575302, 0.02395038679242134, -0.29176878929138184, -0.3756920397281647, 0.04113135486841202, -0.2272840142250061, 0.2764587998390198, 0.14938516914844513, -0.00011269284004811198, -0.03307870402932167, 0.6667647361755371, 0.013357589021325111, -0.4484110474586487, -0.39789462089538574, -0.13652628660202026, -0.40732496976852417, 0.45148608088493347, -0.27835726737976074, 0.010811243206262589, -0.18324372172355652, 0.31934040784835815, 0.17982639372348785, 0.41272205114364624, 0.29741448163986206, 0.21510015428066254, 0.013292461633682251, 0.3161812126636505, 0.028972409665584564, 0.43313169479370117, 0.023455988615751266, 0.03768155723810196, -0.08288061618804932, -0.13199631869792938, 0.03415641188621521, -0.12720981240272522, 0.15120501816272736, -0.2554622292518616, 0.08563659340143204, 0.34953901171684265, -0.1963474452495575, -0.07118005305528641, -0.5439114570617676, 0.13230322301387787, 0.14068536460399628, 0.6836258769035339, -0.04624008387327194, 0.16607218980789185, 0.09736318141222, 0.1164918914437294, 0.05789240449666977, 0.23870888352394104, 0.324206680059433, -0.42637374997138977, -0.3079105019569397, -0.21799755096435547, -0.2496740221977234, -0.29278743267059326, 0.4647780656814575, 0.0429484099149704, 0.5524103045463562, -0.06267843395471573, 0.22764912247657776, -0.041830550879240036, -0.023903056979179382, -0.06886540353298187, -0.12929439544677734, 0.028790883719921112, 0.3013542592525482, 0.06049473583698273, 0.09357446432113647, 0.021501842886209488, 0.22951209545135498, 0.1968703269958496, -0.04341690242290497, -0.1734355241060257, -0.14541485905647278, 0.14635121822357178, 0.14654308557510376, 0.03337874263525009, 0.2567223906517029, 0.13679133355617523, -0.16623790562152863, 0.18984849750995636, 0.2154501974582672, -0.0659419521689415, 0.08795037120580673, -0.031795401126146317, -0.1787976175546646, -0.4661920368671417, 0.023530801758170128, 0.26094919443130493, -0.17632588744163513, -0.03626025840640068, 0.04170434549450874, -0.42591774463653564, -0.2416982799768448, -0.029363524168729782, 0.32280614972114563, -0.21127068996429443, 0.35250142216682434, 0.3740546703338623, 0.07673761248588562, -0.3170038163661957, -0.327193945646286, 0.02015329711139202, 0.29330188035964966, -0.28672707080841064, 0.08495866507291794, 0.23058722913265228, 0.3047333061695099, 0.35114404559135437, -0.017778528854250908, -0.07731515169143677, 0.008208848536014557, 0.16384011507034302, -0.08172616362571716, -0.21706590056419373, 0.23867285251617432, 0.3142964839935303, 0.27012449502944946, 0.05848683416843414, -0.33255642652511597, -0.07982154190540314, 0.25485384464263916, -0.33965831995010376, -0.07505940645933151, -0.03394217789173126, 0.16418926417827606, -0.10578549653291702, 0.013759946450591087, -0.34825190901756287, 0.2475660741329193, 0.030831508338451385, -0.2846435606479645, -0.173467755317688, -0.16041041910648346, -0.08583071082830429, -0.355770081281662, 0.262680321931839, 0.33504313230514526, 0.13158582150936127, -0.10666561126708984, -0.0884828194975853, 0.16788507997989655, 0.2250353991985321, 0.05638446658849716, -0.12499351054430008, 0.4726496636867523, -0.044421251863241196, -0.0787721574306488, 0.7421998381614685, -0.13415738940238953, -0.1724846214056015, 0.2340102344751358, 0.131853848695755, 0.019068757072091103, 0.061424463987350464, -0.06255627423524857, 0.12045740336179733, 0.08603498339653015, -0.05152948200702667, 0.5668147802352905, -0.011338619515299797, 0.03431931138038635, -0.40983137488365173, -0.25147831439971924, 0.17665836215019226, 0.06843909621238708, 0.3860553205013275, 0.1507287323474884, 0.010938771069049835, 0.527904748916626, 0.08195821195840836, -0.039694104343652725, 0.026423444971442223, 0.31999671459198, -0.2970616817474365, -0.09037455916404724, -0.021785376593470573, 0.06996884942054749, -0.17513775825500488, -0.025476418435573578, -0.3948400616645813, 0.15085043013095856, 0.15849986672401428, 0.10617566108703613, -0.35405802726745605, -0.1429714858531952, -0.05245700106024742, -0.15489014983177185, 0.16197282075881958, 0.18550825119018555, 0.09486560523509979, 0.1506923884153366, 0.05413703992962837, 0.06682334840297699, -0.1275251805782318, -0.04091953486204147, -0.6120951771736145, 0.18550731241703033, -0.27361661195755005, -0.07680430263280869, 0.11377441883087158, 0.2102171778678894, 0.2491544485092163, 0.011265644803643227, -0.1234421506524086, 0.006876211613416672, -0.20115137100219727, -0.06263746321201324, -0.02723287045955658, -0.070508673787117, 0.20225483179092407, -0.30023062229156494, 0.314511239528656, 0.2933090627193451, 0.15260140597820282, -0.1323704570531845, 0.08773328363895416, -0.07689106464385986, 0.11841422319412231, 0.3404719829559326, 0.07403917610645294, 0.10327707976102829, 0.00424463115632534, -0.06271034479141235, -0.0017372341826558113, 0.22774803638458252, 0.3068399727344513, 0.4291989207267761, 0.09851856529712677, -0.1077881008386612, 0.0011931955814361572, -0.20937272906303406, 0.36993664503097534, 0.044732872396707535, 0.04405393451452255, 0.26717713475227356, -0.43559974431991577, -0.015432480722665787, 0.11218645423650742, -0.16287539899349213, 0.16692382097244263, 0.22491209208965302, -0.15550845861434937, -0.039874181151390076, -0.08139250427484512, -0.1273934245109558, 0.20037642121315002, 0.17848192155361176, 0.3696187734603882, 0.11934171617031097, 0.08972041308879852, 0.07794404029846191, -0.07833760231733322, -0.1367143988609314, -0.14669543504714966, 0.31704801321029663, -0.3040981888771057, 0.07823935896158218, -0.02340974472463131, -0.4767169654369354, -0.24302932620048523, 0.04412469267845154, -0.4523340165615082, -0.3893648684024811, -0.043859243392944336, 0.2663141191005707, 0.10461711883544922, 0.09521637111902237, 0.3447326719760895, 0.14382687211036682, -0.01657259836792946, -0.09474821388721466, -0.16188697516918182, -0.23880013823509216, -0.4626992344856262, 0.06032690778374672, 0.36436498165130615, 0.27165287733078003, 0.26252618432044983, -0.03581172972917557, 0.0011130515486001968, -0.016718750819563866, -0.2616979479789734, 0.035662781447172165, -0.0869232714176178, 0.19745059311389923, -0.10585223138332367, 0.428200364112854, -0.06742069125175476, -0.19356870651245117, 0.2694037854671478, -0.03542954474687576, -0.09465427696704865, 0.07878188788890839, -0.13136255741119385, 0.01989603415131569, -0.018721088767051697, -0.3938390910625458, -0.1960565149784088, -0.5722575783729553, 0.036282557994127274, 0.5017021894454956, 0.157462939620018, 0.15771853923797607, 0.2231188714504242, 0.07921398431062698, 0.3722141981124878, 0.3003677725791931, -0.07484963536262512, 0.08280865848064423, 0.35699597001075745, -0.24258406460285187, -0.45372629165649414, 0.006873030215501785, -0.253528356552124, 0.20978409051895142, 0.11023737490177155, -0.5408008098602295, -0.06307676434516907, -0.03617722541093826, -0.09409043192863464, -0.07280667126178741, 0.0922093614935875, 0.4026177227497101, -0.025193609297275543, 0.06426385045051575, 0.03355075418949127, -0.004459444433450699, -0.15063703060150146, -0.2979060411453247, 0.5397560596466064, 0.3464970886707306, 0.3857060670852661, -0.12387120723724365, 0.9763134121894836, 0.11937150359153748, -0.01084001362323761, 0.212487131357193, 0.15789943933486938, 0.044726062566041946, -0.20025968551635742, -0.21275079250335693, 0.1421235203742981, -0.015238463878631592, -0.05130884051322937, 0.37091267108917236, -0.09053626656532288, -0.2564307749271393, -0.28977707028388977, -0.05816485732793808, -0.26219385862350464, -0.12282516062259674, 0.23912283778190613, 0.04297124966979027, 0.19683152437210083, -0.11754612624645233, 0.04727379232645035, -0.06097209081053734, -0.3704536557197571, 0.08413879573345184, 0.2635550796985626, -0.05967492610216141, 0.08931063115596771, 0.23530341684818268, -0.17476166784763336, -0.5001501441001892, 0.40322381258010864, 0.029550449922680855, 0.09460195899009705, -0.2325182557106018, -0.025919348001480103, 0.17269590497016907, -0.04392121732234955, 0.22944039106369019, -0.17277617752552032, -0.1800784319639206, 0.31310519576072693, 0.27893224358558655, -0.49311932921409607, -0.007160209119319916, -0.22605550289154053, 0.21649302542209625, 0.31886932253837585, -0.06501558423042297, -0.4468348026275635, 0.011840349063277245, 0.3586075007915497, 0.2625593841075897, -0.1611926555633545, -0.06786517053842545, -0.42418503761291504, -0.10542411357164383, -0.3580245077610016, -0.16014018654823303, -0.14326399564743042, 0.37815889716148376, 0.014348986558616161, 0.08232952654361725, -0.0511639341711998, -0.07533687353134155, 0.030096925795078278, 0.05655300244688988, 0.1316148042678833, 0.1576210856437683, -0.31292688846588135, -0.17733938992023468, 0.2570789158344269, -0.36674216389656067, 0.2074061632156372, 0.33988067507743835, 0.022440306842327118, 0.009035108610987663, 0.16051489114761353, 0.1010870635509491, 0.1211714819073677, 0.038661714643239975, -0.0937233492732048, -0.09350209683179855, -0.020337633788585663, -0.10446938127279282, 0.048884257674217224, 0.2029830515384674, -0.18986733257770538, -0.19062060117721558, -0.1861124336719513, 0.9091113209724426, 0.11542625725269318, -0.08426366001367569, 0.39913421869277954, -0.10438893735408783, -0.300443172454834, 0.4643958806991577, 0.29235050082206726, 1.033750057220459, -0.05213127285242081, 0.07410827279090881, 0.35504239797592163, 0.1453930139541626, 0.5975181460380554, -0.5634704232215881, 0.24681460857391357, -0.46771347522735596, 0.19664190709590912, -0.042075805366039276, -0.08887265622615814, 0.1818542331457138, -0.025461770594120026, -0.42295920848846436, 0.3079962134361267, 0.21473155915737152, 0.05316649749875069, -0.004552315920591354, 0.497242271900177, -0.007547879591584206, -0.20341527462005615, -0.2026689350605011, 0.11879846453666687, -0.45273613929748535, 0.41968825459480286, -0.3137229382991791, -0.07739102840423584, -0.03727031871676445, -0.2664509415626526, -0.32122644782066345, 0.23819097876548767, -0.28426435589790344, 0.26050543785095215, -0.0788806825876236, -0.40404367446899414, 0.13645286858081818, 0.20011785626411438, -0.07382749021053314, 0.22187963128089905, -0.3675210773944855, 0.3076856732368469, -0.34120604395866394, -0.3970901072025299, -0.1670372039079666, 0.30388781428337097, 0.31267955899238586, -0.20412322878837585, -0.09111826121807098, 0.26975351572036743, -0.1574627161026001, -0.1934323012828827, -0.11627323180437088, -0.045857444405555725, 0.40364235639572144, -0.08228074759244919, -0.28408166766166687, 0.08862979710102081, -0.11740043759346008, 0.10527457296848297, 0.12881608307361603, -0.1578907072544098, -0.023841969668865204, -0.11178689450025558, 0.4168770909309387, -0.12245681881904602, 0.15307918190956116, 0.2160125970840454, 0.3512759804725647, -0.0435098260641098, 0.6242598295211792, 0.24895064532756805, -0.12671327590942383, -0.19333404302597046, -0.08216249197721481, -0.363399863243103, -0.22032582759857178, -0.13269257545471191, 0.06104329973459244, 0.026035040616989136, -0.16175705194473267, 0.3119329512119293, 0.04571091756224632, 0.14814700186252594, 0.08541952073574066, -0.4704938530921936, -0.08573352545499802, 0.36615800857543945, -0.21597377955913544, -0.026713777333498, 0.1270238757133484, -0.11448045074939728, 0.46333256363868713, 0.1352352499961853, -0.2516554594039917, -0.19684141874313354, -0.27003806829452515, 0.20194411277770996, 0.33353686332702637, -0.0315217599272728, -0.09637966006994247, 0.18977442383766174, 0.03872355818748474, -0.18776538968086243, -0.19673040509223938, -0.19243746995925903, 0.07814888656139374, 0.16214896738529205, 0.20964860916137695, -0.05808445066213608, -0.10040730983018875, -0.2537475526332855, 0.040457285940647125, -0.1762685924768448, -0.1704917848110199, -0.2846745252609253, -0.16244153678417206, 0.07903789728879929, -0.0626457929611206, 0.2831459939479828, -0.39182132482528687, 0.21595953404903412, -0.15372925996780396, 0.4537637233734131, 0.11764967441558838, 0.042025499045848846, 0.5127454996109009, -0.05549140274524689, -0.7429890036582947, 0.031105566769838333, 0.013879895210266113, 0.11196298897266388, 0.2513461410999298, -0.10180899500846863, 0.07591281831264496, -0.05008930712938309, -0.18661360442638397, 0.017427437007427216, -0.1264563351869583, 0.07031632959842682, 0.11335570365190506, 0.15643496811389923, -0.16165664792060852, 0.3631637394428253, 0.39460474252700806, 0.1727811098098755, -0.17091763019561768, 0.07866695523262024, 0.03425171598792076, -0.09170585125684738, -0.0037520304322242737, 0.2260858118534088, -0.0059776920825243, -0.05571717023849487, 0.02320875972509384, -0.12723276019096375, -0.02531948685646057, -0.013457778841257095, 0.011188529431819916, -0.020251832902431488, 0.1281438171863556, 0.11533646285533905, -0.14658209681510925, 0.1840614676475525, 0.05437762290239334, 0.006913486868143082, 0.015741966664791107, -0.18640626966953278, 0.23530124127864838, 0.15203344821929932, 0.37113481760025024, 0.04706329107284546, 0.04987310245633125, 0.044810038059949875, 0.11762683838605881, -0.14441372454166412, -0.4065518379211426, 0.18063025176525116, -0.12935346364974976, 0.12624382972717285, -0.4547828137874603, -0.07528622448444366, -0.28914427757263184, 0.1415076106786728, 0.10705254226922989, -0.2766280174255371, 0.05717267841100693, 0.28942686319351196, -0.34862035512924194, -0.40836623311042786, 0.4397543966770172, 0.14451634883880615, 0.02715073525905609, -0.1534155309200287, 0.3643985986709595, -0.15128137171268463, 0.018109649419784546, -0.08264707028865814, 0.3836382031440735, 0.3436252176761627, 0.5497419834136963, -0.47596028447151184, -0.0549180693924427, 0.05561283975839615, -0.1505194753408432, -0.07915592193603516, 0.11907369643449783, 0.41159504652023315, 0.23406954109668732, 0.18227411806583405, 0.137376070022583, -0.23148690164089203, -0.0316736213862896, 0.1822683960199356, -0.1057184636592865, -0.08262021839618683, 0.16354712843894958, 0.0025951117277145386, -0.17681799829006195, -0.249996155500412, -0.029853418469429016, -0.6789049506187439, 0.08470107614994049, -0.017861563712358475, 0.19374941289424896, -0.09923860430717468, -0.31724488735198975, 0.028229285031557083, -0.19291362166404724, 0.4531593322753906, 0.3371499180793762, 0.3244173228740692, -0.3690621256828308, -0.31666943430900574, -0.38905084133148193, 0.1598978042602539, -0.3162238895893097, -0.3201480507850647, -0.09974770247936249, 0.23386462032794952, -0.15514886379241943, 0.3409183621406555, -0.23970530927181244, -0.000763085437938571, 0.07648120075464249, 0.029247106984257698, -0.26590412855148315, -0.16083364188671112, 0.04977104812860489, -0.1193939745426178, -0.3061855435371399, -0.1297401487827301, -0.004994098097085953, -0.2757493853569031, 0.06248524785041809, -0.02622326835989952, -0.2599041759967804, 0.27881816029548645, 0.053318001329898834, 0.27396532893180847, 0.07670775055885315, 0.6266770362854004, -0.10283485054969788, -0.06840339303016663, -0.00485629215836525, -0.06971397995948792, -0.06355027109384537, 0.36973899602890015, 0.03681960329413414, 0.5085331201553345, -0.08119163662195206, 0.17832881212234497, -0.35964640974998474, 0.49303239583969116, -0.26348698139190674, 0.14966441690921783, -0.11382616311311722, -0.13014152646064758, -0.23576197028160095, 0.31556883454322815, -0.0398644283413887, 0.08727329969406128, -0.1160326898097992, 0.07417355477809906, -0.47225475311279297, -0.21190284192562103, 0.3164292275905609, -0.7915252447128296, -0.32634231448173523, 0.11869256943464279, 0.09361756592988968, -0.0843328908085823, 0.023439938202500343, -0.5125065445899963, -0.06366897374391556, 0.2648857533931732, -0.07161671668291092, -0.10451510548591614, 0.036423459649086, -0.1194528341293335, -0.05821168050169945, -0.11786215007305145, -0.2291906476020813, -0.1291632056236267, -0.22626109421253204, -0.186042919754982, -0.3009599447250366 ]
https://github.com/huggingface/datasets/issues/186
Weird-ish: Not creating unique caches for different phases
Looks like a duplicate of #120. This is already fixed on master. We'll do a new release on pypi soon
Sample code: ```python import nlp dataset = nlp.load_dataset('boolq') def func1(x): return x def func2(x): return None train_output = dataset["train"].map(func1) valid_output = dataset["validation"].map(func1) print() print(len(train_output), len(valid_output)) # Output: 9427 9427 ``` The map method in both cases seem to be pointing to the same cache, so the latter call based on the validation data will return the processed train data cache. What's weird is that the following doesn't seem to be an issue: ```python train_output = dataset["train"].map(func2) valid_output = dataset["validation"].map(func2) print() print(len(train_output), len(valid_output)) # 9427 3270 ```
20
Weird-ish: Not creating unique caches for different phases Sample code: ```python import nlp dataset = nlp.load_dataset('boolq') def func1(x): return x def func2(x): return None train_output = dataset["train"].map(func1) valid_output = dataset["validation"].map(func1) print() print(len(train_output), len(valid_output)) # Output: 9427 9427 ``` The map method in both cases seem to be pointing to the same cache, so the latter call based on the validation data will return the processed train data cache. What's weird is that the following doesn't seem to be an issue: ```python train_output = dataset["train"].map(func2) valid_output = dataset["validation"].map(func2) print() print(len(train_output), len(valid_output)) # 9427 3270 ``` Looks like a duplicate of #120. This is already fixed on master. We'll do a new release on pypi soon
[ 0.31512749195098877, -0.1353006511926651, -0.005951441824436188, 0.20902188122272491, 0.09835176169872284, -0.1870373785495758, 0.2608940303325653, 0.3269939124584198, -0.11203509569168091, -0.12795434892177582, -0.10739792883396149, 0.4277704060077667, 0.08190394937992096, -0.20389355719089508, 0.09390946477651596, 0.06840919703245163, 0.16564157605171204, 0.11475635319948196, -0.11452111601829529, -0.04316273331642151, -0.176237091422081, 0.10245200246572495, -0.0897260531783104, -0.11245492100715637, -0.4616798460483551, 0.14604860544204712, -0.2929139733314514, -0.15815576910972595, 0.21726307272911072, -0.3920990526676178, 0.3604981005191803, 0.07840549200773239, -0.2556283473968506, 0.26441600918769836, -0.00011643479956546798, -0.03943753242492676, 0.1898859739303589, -0.060470305383205414, -0.09947288036346436, 0.15082654356956482, 0.020188331604003906, -0.14972220361232758, 0.1603354960680008, -0.3118845820426941, -0.016639327630400658, 0.11477666348218918, 0.0591147318482399, 0.13279975950717926, 0.560355007648468, 0.06728824973106384, 0.19152851402759552, 0.2768822908401489, -0.304563045501709, 0.19945111870765686, 0.1582951545715332, -0.09230451285839081, -0.19662781059741974, -0.07651335000991821, 0.01852835714817047, -0.27605941891670227, -0.03462313860654831, 0.3285539448261261, -0.09903613477945328, 0.09711839258670807, -0.018881507217884064, 0.0933789536356926, 0.16540837287902832, -0.1915280967950821, 0.08571857213973999, 0.06397569179534912, -0.12460676580667496, -0.3299969434738159, -0.22829608619213104, -0.36594775319099426, -0.22737963497638702, -0.37258586287498474, 0.1338072121143341, 0.12148882448673248, -0.15100303292274475, -0.11508451402187347, -0.2887338101863861, 0.25837627053260803, 0.1800033301115036, 0.0654660314321518, 0.1485065072774887, 0.34907975792884827, 0.1705222874879837, 0.003995262086391449, 0.20543530583381653, 0.16464823484420776, -0.022904496639966965, -0.16767075657844543, 0.03933171182870865, 0.382514625787735, -0.32864588499069214, -0.1350693255662918, 0.2580423653125763, -0.03761482238769531, -0.020884258672595024, -0.03517080098390579, 0.29355940222740173, -0.05806294083595276, 0.030032627284526825, 0.03780936449766159, 0.14594779908657074, 0.44085773825645447, -0.05845937877893448, 0.26226213574409485, 0.03631455451250076, -0.11190088838338852, -0.4782029688358307, 0.07153670489788055, 0.304348349571228, 0.08766812831163406, 0.3045755922794342, 0.055590029805898666, -0.07608958333730698, -0.0986751839518547, 0.04273641109466553, 0.09191559255123138, -0.3604726791381836, -0.16655196249485016, 0.04151679202914238, 0.12388293445110321, 0.010513419285416603, 0.18547308444976807, -0.26125168800354004, 0.041237108409404755, -0.5030215978622437, 0.16908609867095947, -0.3158501386642456, 0.011568632908165455, -0.47468945384025574, 0.3021250069141388, 0.24822379648685455, -0.20883528888225555, 0.27461832761764526, 0.31418079137802124, -0.2436188906431198, -0.27176782488822937, 0.29848554730415344, -0.2096521109342575, 0.3557654619216919, 0.09198515117168427, -0.11236463487148285, 0.20934973657131195, -0.05222267284989357, 0.1795109063386917, -0.20357462763786316, 0.10834087431430817, -0.1023566946387291, -0.18052829802036285, 0.34438663721084595, 0.16676518321037292, -0.26253774762153625, 0.15600040555000305, 0.3252079486846924, 0.21365125477313995, 0.7869172096252441, -0.38525688648223877, 0.16961774230003357, -0.07720298320055008, -0.2634728252887726, -0.35301488637924194, -0.03340945392847061, 0.272320032119751, 0.124013751745224, -0.31357139348983765, 0.16955435276031494, 0.2323349118232727, 0.002124004065990448, 0.5360867977142334, -0.16725340485572815, 0.1547776162624359, -0.3208005726337433, 0.030222013592720032, 0.4241332709789276, -0.29382675886154175, -0.46321913599967957, 0.1235976442694664, -0.010486170649528503, 0.17514413595199585, 0.11865288019180298, 0.1941881775856018, 0.11643963307142258, -0.28288134932518005, 0.20412367582321167, 0.040530599653720856, -0.10490657389163971, 0.09167313575744629, -0.37813305854797363, 0.014632025733590126, 0.36010056734085083, -0.24554359912872314, 0.00028657540678977966, 0.06188797950744629, -0.1713065505027771, -0.00008933339267969131, 0.2635813057422638, 0.002152681350708008, 0.1317976713180542, 0.02144559472799301, -0.055076468735933304, -0.1804736703634262, 0.07052111625671387, -0.18271571397781372, 0.010328706353902817, 0.2068817913532257, -0.29167336225509644, -0.03090818226337433, 0.24033533036708832, -0.1194009855389595, 0.1090475395321846, -0.27650588750839233, -0.2697036564350128, -0.49192115664482117, 0.17864203453063965, 0.05129940062761307, 0.4849597215652466, -0.00875500775873661, -0.08701663464307785, 0.299787700176239, 0.39124879240989685, -0.11880841106176376, -0.3205801546573639, 0.11166027188301086, -0.0021975859999656677, -0.16491980850696564, -0.3592391908168793, 0.5168808698654175, 0.21017155051231384, -0.008701898157596588, -0.12740281224250793, -0.045669034123420715, 0.005072552710771561, 0.08217813819646835, -0.25943899154663086, 0.08567105978727341, 0.10755642503499985, 0.1489425152540207, 0.03267917409539223, 0.11418803036212921, -0.03314954787492752, -0.273723304271698, 0.12674427032470703, 0.48298293352127075, 0.33497679233551025, 0.10381089895963669, -0.00017384067177772522, -0.08665481209754944, -0.06366483867168427, -0.15970776975154877, -0.22713610529899597, -0.34744206070899963, 0.25259503722190857, -0.03174919635057449, 0.42569881677627563, 0.2751815915107727, -0.0497097484767437, 0.27717703580856323, 0.5075846910476685, 0.18606267869472504, -0.022791631519794464, -0.09178187698125839, -0.015192419290542603, -0.26299071311950684, -0.09401442110538483, 0.21855495870113373, 0.5466562509536743, 0.09933167695999146, 0.1461595743894577, 0.18917609751224518, -0.32118383049964905, -0.20500124990940094, -0.02994120866060257, -0.12286660075187683, 0.06329714506864548, -0.04265015572309494, 0.3720710575580597, -0.08435279130935669, -0.2066480815410614, 0.3466503620147705, 0.1877121478319168, -0.12854497134685516, 0.03776818886399269, 0.21131868660449982, -0.23826143145561218, -0.432288259267807, -0.3985506594181061, -0.2013999968767166, -0.12059226632118225, -0.3052794933319092, 0.12759986519813538, 0.3070928156375885, 0.09445104002952576, 0.289409875869751, -0.20783647894859314, 0.08653610944747925, -0.1703331172466278, -0.15077218413352966, 0.00217263400554657, -0.34527069330215454, -0.3134085536003113, 0.032280124723911285, -0.01649298518896103, -0.274361252784729, 0.2854226529598236, 0.01840968243777752, -0.17341531813144684, -0.14144831895828247, -0.391665518283844, 0.20791567862033844, -0.008682388812303543, -0.20053069293498993, -0.198621928691864, -0.36847984790802, 0.09001238644123077, 0.012221789918839931, 0.33747416734695435, -0.3655262589454651, -0.2437644600868225, 0.055023349821567535, -0.08614598214626312, 0.10925425589084625, -0.2796727120876312, -0.10740352421998978, -0.14487698674201965, -0.04877813905477524, 0.2008315473794937, -0.2825666666030884, 0.25015485286712646, 0.34708714485168457, -0.2549814283847809, -0.09772087633609772, -0.15965308248996735, -0.16263160109519958, -0.46251749992370605, -0.03685693070292473, 0.21641865372657776, -0.3161962926387787, -0.18905700743198395, -0.3839232921600342, -0.34720832109451294, 0.2669108808040619, 0.17019586265087128, -0.43564093112945557, -0.4333498179912567, -0.06119044870138168, 0.07350432872772217, 0.17087796330451965, 0.049322471022605896, 0.38772615790367126, -0.17816738784313202, -0.018233519047498703, -0.15335558354854584, -0.3007080554962158, 0.20788165926933289, 0.3963833153247833, 0.3567888140678406, -0.17569956183433533, 0.22636649012565613, 0.13107094168663025, 0.555745542049408, 0.6314628720283508, 0.06918293982744217, 0.373216837644577, -0.013673918321728706, 0.21526768803596497, -0.26185548305511475, -0.1999863088130951, 0.1839579939842224, -0.15264534950256348, -0.25722700357437134, 0.1832876205444336, 0.17619875073432922, -0.5797125697135925, -0.06663400679826736, 0.1652233898639679, -0.2786339819431305, -0.3541924059391022, 0.09116567671298981, -0.3137051463127136, 0.228620707988739, 0.3108307719230652, 0.23395287990570068, -0.4184880554676056, -0.11604530364274979, -0.1248801052570343, -0.3066108822822571, 0.14552746713161469, 0.09425252676010132, -0.09625288099050522, -0.24743610620498657, -0.45611679553985596, 0.20617564022541046, 0.24228808283805847, 0.12783068418502808, 0.02266513928771019, -0.23084038496017456, 0.06999524682760239, 0.01940406672656536, 0.47368693351745605, -0.033959224820137024, -0.003952540457248688, 0.1012180894613266, -0.07110393792390823, -0.40342921018600464, -0.2792932391166687, 0.23190376162528992, 0.46149399876594543, 0.42389005422592163, 0.2808871865272522, -0.21179375052452087, -0.10709045082330704, -0.07216449081897736, 0.13284048438072205, -0.2387685477733612, -0.39052313566207886, -0.23795565962791443, -0.0629177838563919, 0.06605052202939987, 0.07129455357789993, -0.12635432183742523, -0.1895463615655899, -0.19810254871845245, -0.07180921733379364, 0.19534027576446533, -0.0391487218439579, 0.03154458850622177, 0.24644185602664948, 0.26728639006614685, -0.1262175738811493, 0.17920616269111633, 0.17825362086296082, -0.10764864087104797, -0.48865699768066406, 0.41116783022880554, -0.1816359907388687, 0.3603588044643402, 0.18541863560676575, -0.05674830824136734, -0.0200532004237175, 0.40660589933395386, 0.199469193816185, 0.1454409509897232, -0.07756060361862183, -0.07732482254505157, -0.026072107255458832, -0.22639578580856323, 0.3206346929073334, 0.0029679182916879654, -0.2382081151008606, -0.45535287261009216, 0.2363223433494568, 0.15792104601860046, -0.14968973398208618, 0.22837983071804047, -0.6113728880882263, -0.11635435372591019, 0.39091747999191284, -0.19715002179145813, 0.784121572971344, 0.02420245110988617, 0.47903740406036377, 0.2232559621334076, -0.05244644731283188, 0.38019225001335144, -0.04663260653614998, 0.3636254072189331, -0.39555585384368896, 0.18653690814971924, 0.12171332538127899, -0.17433680593967438, -0.3330661356449127, 0.02130274474620819, 0.06636720895767212, 0.4315511882305145, 0.2073085457086563, 0.4841277003288269, 0.020280621945858, -0.2113770991563797, 0.20552662014961243, 0.02013944461941719, -0.3214278221130371, 0.1726045161485672, 0.051495373249053955, 0.24724745750427246, -0.06316356360912323, -0.2258722335100174, -0.07192230969667435, -0.16542305052280426, -0.03188076242804527, 0.29560136795043945, -0.13948586583137512, 0.40801405906677246, 0.35625582933425903, -0.20116853713989258, -0.6638280153274536, 0.0960988849401474, 0.13754090666770935, -0.3959576189517975, -0.015468338504433632, -0.11183476448059082, 0.4741958975791931, 0.4154968857765198, -0.051521286368370056, -0.2530064582824707, 0.36641183495521545, -0.07084573805332184, -0.04830043762922287, -0.05500338226556778, -0.008599702268838882, -0.40876972675323486, -0.23523589968681335, 0.31752222776412964, -0.33346760272979736, 0.05075530707836151, 0.13472454249858856, 0.18303772807121277, -0.0747368186712265, -0.1148345023393631, 0.11003762483596802, 0.0739767849445343, -0.12934629619121552, 0.3518594205379486, -0.3545047342777252, -0.10786033421754837, 0.03488916903734207, 0.2857216000556946, 0.2867710590362549, 0.08036501705646515, 0.3626124858856201, -0.2709965705871582, 0.06172787398099899, -0.036722563207149506, -0.33266299962997437, -0.3149150609970093, -0.3201570510864258, 0.10790351033210754, -0.25350430607795715, -0.18748420476913452, 0.10250478237867355, 0.007121633738279343, 0.12069195508956909, 0.37156012654304504, -0.08053591102361679, -0.18930549919605255, -0.5517709851264954, -0.05398891866207123, -0.10335491597652435, 0.16097640991210938, -0.017602916806936264, 0.6225498914718628, 0.07026710361242294, 0.3935421109199524, -0.28945857286453247, -0.020571893081068993, -0.015656504780054092, 0.22764617204666138, -0.13291792571544647, -0.4048031270503998, -0.05415879189968109, 0.14537951350212097, 0.043657585978507996, 0.3360797166824341, -0.4868724048137665, -0.2018185257911682, -0.16914993524551392, 0.10196730494499207, 0.14670860767364502, 0.14324013888835907, -0.2514539957046509, 0.13051360845565796, 0.3261987566947937, -0.3462393283843994, 0.1161709576845169, 0.16987395286560059, 0.022485051304101944, 0.19154728949069977, 0.16412386298179626, 0.06718495488166809, 0.14418603479862213, 0.11707313358783722, -0.14140449464321136, -0.05994535982608795, 0.16280758380889893, 0.18861620128154755, -0.1398516148328781, 0.1501297950744629, -0.13678860664367676, -0.16258245706558228, -0.11337724328041077, -0.07932829856872559, -0.10075562447309494, -0.2714386582374573, -0.12925629317760468, 0.07303965091705322, 0.21172845363616943, 0.2205677032470703, -0.08022317290306091, -0.1748628467321396, -0.10348428785800934, 0.16781780123710632, 0.06923536956310272, 0.1069820299744606, 0.35733744502067566, 0.20533904433250427, 0.07064761221408844, 0.3598751127719879, 0.419361412525177, -0.00026038289070129395, 0.46826475858688354, 0.034651223570108414, -0.08014605194330215, -0.47159385681152344, 0.26750653982162476, 0.010570473968982697, 0.19505758583545685, 0.08407586067914963, 0.34856462478637695, -0.2840740382671356, -0.07184139639139175, 0.0636945590376854, 0.28736117482185364, 0.16066014766693115, -0.02945329248905182, -0.07150284945964813, 0.08202359825372696, 0.019564539194107056, -0.27520492672920227, 0.029207319021224976, -0.09377893805503845, 0.2505139708518982, 0.04363783821463585, 0.37158674001693726, -0.15463924407958984, -0.18234467506408691, -0.4207514822483063, 0.3165486454963684, -0.28920963406562805, -0.28602898120880127, 0.26990798115730286, -0.3006245791912079, 0.27491578459739685, 0.1448923498392105, -0.04462665691971779, 0.19261616468429565, 0.7117824554443359, 0.06008906662464142, -0.02732989937067032, -0.15319886803627014, -0.31560978293418884, 0.2999635636806488, 0.3962080478668213, -0.10624153167009354, 0.34747612476348877, 0.06683900952339172, -0.34605371952056885, -0.15965628623962402, 0.1851090043783188, 0.3952045142650604, 0.27467238903045654, -0.2849200367927551, 0.16531194746494293, 0.31191596388816833, 0.0437200665473938, -0.14279292523860931, 0.28440576791763306, 0.4644451141357422, -0.2753708064556122, 0.10013315081596375, 0.0773630440235138, -0.1619855761528015, 0.3374541401863098, 0.09224053472280502, 0.2626372277736664, -0.20471547544002533, 0.5761632323265076, -0.05505984276533127, -0.07937543094158173, 0.008969040587544441, 0.2030297964811325, -0.5066409707069397, -0.1221209317445755, 0.06195840612053871, 0.05762339010834694, 0.16316348314285278, -0.22196759283542633, 0.09016365557909012, 0.10871520638465881, 0.39012470841407776, 0.1252449005842209, 0.13043205440044403, -0.2856212258338928, -0.016744807362556458, -0.5698696374893188, 0.3329301178455353, -0.3890039324760437, 0.24580854177474976, -0.18367384374141693, 0.27481573820114136, -0.2668352425098419, 0.03942536190152168, 0.14697887003421783, -0.21078921854496002, 0.18485170602798462, 0.10188555717468262, -0.45321202278137207, 0.02524377591907978, 0.07228867709636688, -0.1955050677061081, 0.25490930676460266, -0.2316809594631195, 0.02174011617898941, -0.019082527607679367, 0.13105103373527527, 0.0037312395870685577, -0.0033553466200828552, 0.2672172486782074, 0.5061383843421936, 0.28892916440963745, 0.42512616515159607, 0.20019423961639404, 0.04050149768590927, -0.18851451575756073, -0.3905125558376312, 0.03260073438286781, -0.031582172960042953, -0.2456119954586029, -0.06935866177082062, 0.334186315536499, -0.3125973641872406, -0.11305239796638489, -0.28429916501045227, 0.22645704448223114, 0.08093839883804321, -0.3933437466621399, 0.17809852957725525, -0.03644585609436035, -0.12942643463611603, 0.06052606180310249, 0.030793648213148117, 0.7254053354263306, 0.016145426779985428, 0.4419616162776947, -0.18536339700222015, -0.2571275234222412, 0.3819310665130615, -0.6724100708961487, -0.2614425718784332, 0.0037971921265125275, 0.30308181047439575, 0.0934232696890831, -0.17738263309001923, -0.5309109091758728, -0.12438000738620758, 0.177739679813385, -0.16756919026374817, -0.12121269106864929, 0.1805972307920456, -0.19370535016059875, -0.03503309190273285, -0.010602794587612152, 0.16422706842422485, 0.09443072974681854, -0.26849400997161865, 0.2727924585342407, -0.25110727548599243 ]
https://github.com/huggingface/datasets/issues/183
[Bug] labels of glue/ax are all -1
This is the test set given by the Glue benchmark. The labels are not provided, and therefore set to -1.
``` ax = nlp.load_dataset('glue', 'ax') for i in range(30): print(ax['test'][i]['label'], end=', ') ``` ``` -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, ```
20
[Bug] labels of glue/ax are all -1 ``` ax = nlp.load_dataset('glue', 'ax') for i in range(30): print(ax['test'][i]['label'], end=', ') ``` ``` -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, ``` This is the test set given by the Glue benchmark. The labels are not provided, and therefore set to -1.
[ 0.25027763843536377, -0.36407625675201416, -0.061697818338871, 0.13931068778038025, -0.06844907253980637, -0.07843440771102905, 0.34460145235061646, 0.26304835081100464, 0.37012922763824463, 0.19107168912887573, -0.2715182602405548, 0.6841734051704407, -0.06559251248836517, 0.11889565736055374, 0.18207687139511108, -0.11214114725589752, -0.10166782885789871, 0.3471296429634094, -0.1504511535167694, -0.12176015973091125, -0.2612048387527466, 0.37858518958091736, -0.25765174627304077, 0.14147411286830902, -0.17962263524532318, -0.10173977166414261, -0.1501425951719284, 0.07673344016075134, -0.033074602484703064, -0.401468962430954, 0.10599273443222046, 0.14746448397636414, -0.10761884599924088, -0.12033430486917496, -0.00010571897291811183, -0.2869570255279541, 0.28945592045783997, 0.07167477905750275, 0.03245653957128525, 0.12928712368011475, -0.14674845337867737, -0.2972312867641449, -0.03970680385828018, -0.3864678144454956, -0.05714034289121628, -0.0009058723226189613, 0.04592852666974068, -0.12836822867393494, 0.16652220487594604, 0.16479040682315826, 0.24084687232971191, 0.15829432010650635, 0.08807878196239471, 0.13617278635501862, 0.45657670497894287, -0.47681695222854614, 0.044315338134765625, 0.24602967500686646, 0.09880724549293518, -0.3428690433502197, -0.016030289232730865, 0.45544925332069397, 0.12964780628681183, 0.12535838782787323, 0.039681002497673035, 0.14423754811286926, 0.03318934515118599, -0.35992226004600525, -0.08387032151222229, 0.42646530270576477, 0.13150836527347565, -0.35245218873023987, -0.31000816822052, -0.2016569972038269, 0.21391229331493378, -0.31251105666160583, -0.06473959237337112, 0.14203502237796783, -0.016297509893774986, 0.009706679731607437, 0.037663087248802185, 0.10280235856771469, -0.12196826934814453, 0.13918472826480865, 0.13890372216701508, 0.5842685699462891, -0.020311594009399414, 0.06995419412851334, 0.3692636787891388, -0.029156900942325592, -0.18502557277679443, 0.09218546748161316, -0.020079616457223892, 0.17599345743656158, -0.2807864546775818, -0.19722914695739746, 0.10954409837722778, 0.1007741391658783, 0.021075595170259476, 0.044597331434488297, 0.22502483427524567, 0.03806992247700691, 0.20733867585659027, 0.16420310735702515, 0.08044971525669098, 0.2856961190700531, 0.3848164677619934, 0.2837707996368408, 0.02899719588458538, 0.062447439879179, -0.12825186550617218, 0.20890238881111145, -0.014154336415231228, -0.10458948463201523, 0.27334490418434143, -0.09539548307657242, -0.07485391944646835, -0.12386663258075714, -0.31944194436073303, -0.025793973356485367, -0.2851249873638153, 0.002068710047751665, -0.17965786159038544, 0.2444525957107544, 0.027863211929798126, 0.01534799300134182, -0.034649353474378586, 0.09597506374120712, -0.15768177807331085, -0.16153302788734436, -0.29697132110595703, 0.37302058935165405, -0.2329171746969223, -0.2509109675884247, 0.14201581478118896, 0.2079281359910965, 0.28334107995033264, 0.028487037867307663, -0.1306973248720169, 0.037280045449733734, 0.14972752332687378, -0.020442381501197815, 0.2775792181491852, 0.11669645458459854, -0.06864039599895477, 0.1049480065703392, -0.010466355830430984, -0.3798038959503174, -0.2766101658344269, -0.0801546648144722, 0.09214682877063751, 0.07429835200309753, 0.023174118250608444, 0.23864586651325226, -0.17580662667751312, 0.027031395584344864, 0.1805454045534134, 0.0985940620303154, -0.09635775536298752, 0.2063303291797638, 0.14499244093894958, -0.14029493927955627, -0.11530108749866486, -0.18978022038936615, 0.29160118103027344, 0.2018366903066635, -0.30105793476104736, -0.11395128071308136, 0.08180438727140427, -0.03524639829993248, -0.1266513168811798, 0.05246216431260109, 0.22159944474697113, 0.005408681929111481, -0.268215149641037, 0.2221396118402481, 0.2920089066028595, -0.5699792504310608, -0.46014708280563354, 0.026117900386452675, -0.09821581840515137, -0.11541398614645004, 0.08403787761926651, 0.07993176579475403, -0.027337461709976196, 0.2073448747396469, 0.3057430684566498, 0.2759206295013428, 0.14640165865421295, -0.014055296778678894, -0.3354368209838867, 0.14553841948509216, 0.38180655241012573, 0.14466910064220428, -0.17248298227787018, -0.1629222333431244, -0.20003020763397217, -0.16491591930389404, 0.26382943987846375, 0.11475227028131485, -0.08811525255441666, 0.26812994480133057, 0.012011658400297165, -0.3535589575767517, 0.12525109946727753, -0.14601188898086548, -0.23448708653450012, 0.2485726773738861, -0.23344458639621735, 0.39037999510765076, 0.2793842554092407, -0.1354389190673828, -0.39104655385017395, -0.009539677761495113, -0.021590273827314377, -0.2226111888885498, 0.27640166878700256, 0.02215591073036194, 0.3353920578956604, 0.061245691031217575, -0.09688295423984528, 0.3609969913959503, 0.09802201390266418, 0.041608817875385284, -0.3697098195552826, 0.09687384217977524, -0.059087321162223816, -0.04003347456455231, 0.24726352095603943, 0.510469377040863, 0.24413585662841797, -0.053404565900564194, 0.13028877973556519, 0.35821911692619324, -0.023660248145461082, 0.012895643711090088, 0.0835902988910675, -0.017381832003593445, -0.042964786291122437, -0.2957710027694702, 0.09626920521259308, 0.16723592579364777, 0.08046327531337738, -0.040201444178819656, -0.15581434965133667, 0.36737656593322754, 0.0938393697142601, 0.05186418443918228, 0.11298197507858276, 0.09805726259946823, -0.09670733660459518, -0.2965041399002075, -0.3145461082458496, -0.13945330679416656, 0.3348411023616791, -0.2254423052072525, 0.35534948110580444, 0.04052118957042694, -0.25023770332336426, 0.20897182822227478, 0.44670534133911133, 0.024678383022546768, 0.20379212498664856, -0.11887625604867935, -0.285344660282135, -0.10063879936933517, 0.054819755256175995, 0.5218164920806885, 0.16740688681602478, 0.4208613336086273, 0.017650965601205826, -0.05970488488674164, -0.39394065737724304, -0.07345958054065704, 0.16773907840251923, -0.08496885001659393, 0.07969262450933456, -0.08924109488725662, 0.20133456587791443, -0.14825962483882904, -0.1896369457244873, 0.055628757923841476, -0.24803279340267181, 0.23431771993637085, -0.26281020045280457, -0.19544921815395355, -0.08484241366386414, -0.49717003107070923, -0.2795567810535431, -0.2954835891723633, -0.14680390059947968, -0.5272936224937439, 0.135809063911438, -0.24137642979621887, -0.020684994757175446, 0.22529472410678864, 0.0543607734143734, 0.1611212193965912, -0.18304064869880676, 0.07843836396932602, -0.20593945682048798, -0.13555578887462616, -0.21072626113891602, 0.15992166101932526, -0.27405139803886414, 0.5203289985656738, 0.39891305565834045, -0.0967089831829071, 0.07538847625255585, 0.31900501251220703, -0.2143687903881073, -0.0005632080137729645, -0.17378324270248413, 0.24654269218444824, 0.41369181871414185, 0.0018734261393547058, -0.1277114897966385, -0.012992076575756073, 0.24294663965702057, -0.438808411359787, -0.005683065392076969, -0.06721740961074829, 0.20725612342357635, -0.03914009407162666, -0.1482221484184265, -0.40482643246650696, -0.36483585834503174, -0.22120976448059082, 0.23954376578330994, 0.2358979433774948, 0.25962021946907043, 0.11519504338502884, -0.33117079734802246, 0.3270051181316376, -0.168048694729805, -0.03360207378864288, -0.15168622136116028, -0.054734986275434494, 0.24902044236660004, -0.1052170991897583, -0.2982957065105438, -0.2496384084224701, -0.19709786772727966, 0.22305847704410553, -0.2926647663116455, -0.21160566806793213, -0.17701642215251923, -0.07414976507425308, -0.14019380509853363, 0.02784516103565693, 0.22281520068645477, 0.1176871731877327, 0.032634519040584564, -0.15178053081035614, -0.14525490999221802, -0.24856747686862946, 0.3365797996520996, 0.052055954933166504, -0.14087149500846863, 0.03853696212172508, 0.03523188829421997, 0.014001302421092987, 0.17996053397655487, 0.11784450709819794, -0.12312279641628265, 0.19788792729377747, -0.2788587808609009, 0.2952500879764557, 0.23055273294448853, -0.25402939319610596, 0.010372519493103027, 0.31672441959381104, 0.26697003841400146, 0.1392028033733368, 0.11716996133327484, -0.32901614904403687, -0.09989461302757263, 0.11832201480865479, -0.2628353536128998, -0.05908052995800972, 0.03934860974550247, -0.10333232581615448, -0.2153225541114807, 0.02067989856004715, -0.03607326000928879, -0.10807132720947266, -0.17250442504882812, -0.04275647550821304, -0.3998679518699646, -0.08388257771730423, -0.03833518922328949, -0.6121564507484436, -0.12144003808498383, -0.519476592540741, 0.15431635081768036, 0.048394788056612015, 0.47348707914352417, -0.01071842759847641, -0.09485900402069092, -0.03137709200382233, 0.030420856550335884, 0.5715869069099426, -0.41469722986221313, 0.2131912261247635, 0.4603511393070221, 0.18213942646980286, -0.6949967741966248, 0.005641601979732513, -0.5489997863769531, -0.11691191047430038, 0.6284409165382385, 0.26226377487182617, -0.24899661540985107, -0.15028256177902222, 0.2737720310688019, 0.01633794978260994, -0.09192749112844467, -0.16651664674282074, -0.2935800552368164, -0.2230234146118164, -0.03679531440138817, 0.14788129925727844, -0.009105383418500423, 0.2636661231517792, 0.1972576379776001, -0.0781446173787117, 0.058305852115154266, -0.21258771419525146, 0.14469707012176514, 0.22399581968784332, 0.2999824285507202, 0.06814363598823547, -0.03851267322897911, 0.11713039129972458, 0.2122255116701126, -0.6786824464797974, 0.12109226733446121, -0.5201425552368164, 0.35461118817329407, -0.2175755798816681, -0.25405484437942505, 0.46517112851142883, 0.16192734241485596, 0.0466177724301815, -0.16148275136947632, -0.5788980722427368, 0.21016067266464233, -0.047842301428318024, 0.020870273932814598, 0.2084854543209076, 0.1639748066663742, -0.23401470482349396, -0.07566910982131958, 0.5497072339057922, 0.06847719848155975, -0.22469252347946167, 0.3328184485435486, 0.19439533352851868, -0.35684195160865784, 0.4119111895561218, -0.08889120072126389, 0.9092608094215393, -0.09022381901741028, -0.007592286914587021, 0.25458523631095886, -0.36367493867874146, 0.680623471736908, 0.14082980155944824, 0.12344540655612946, -0.526847243309021, -0.3948063552379608, 0.06874194741249084, -0.0832071378827095, -0.12789767980575562, 0.2755154073238373, -0.2226206213235855, 0.41558173298835754, 0.07301418483257294, -0.19334644079208374, 0.022333163768053055, 0.3862771987915039, 0.0031905295327305794, -0.10484935343265533, -0.341543585062027, 0.15480995178222656, -0.03297090530395508, 0.16748957335948944, -0.06146243214607239, -0.019678499549627304, -0.1323699653148651, -0.21145214140415192, -0.04834197089076042, 0.19770106673240662, -0.21826833486557007, -0.16570299863815308, 0.3732073903083801, -0.03051329031586647, -0.4524398148059845, 0.13093127310276031, 0.1828848421573639, 0.12453858554363251, 0.006407162174582481, 0.05262517184019089, 0.1765984296798706, 0.0018512289971113205, 0.5183130502700806, 0.25722214579582214, 0.2960577607154846, -0.1017703115940094, -0.05791656672954559, -0.10081499069929123, 0.08597910404205322, -0.10533256083726883, -0.06399077922105789, 0.05866864696145058, -0.05259738117456436, -0.14443057775497437, -0.34001320600509644, 0.06040806695818901, -0.013499714434146881, -0.19766493141651154, 0.1982203871011734, 0.09399647265672684, -0.4110827147960663, 0.2700434923171997, 0.09358720481395721, -0.3252713680267334, -0.03687039390206337, 0.3700680732727051, -0.05986545979976654, 0.4367307722568512, 0.17269720137119293, 0.0293651781976223, -0.016895081847906113, -0.282691091299057, -0.0653923749923706, 0.3214579224586487, -0.2296518087387085, 0.06664963811635971, -0.12342485040426254, -0.10889672487974167, -0.021721186116337776, 0.035222604870796204, 0.19642877578735352, 0.17936354875564575, 0.09442606568336487, -0.4698394536972046, -0.1270843893289566, 0.16168846189975739, 0.06652870774269104, 0.31713971495628357, 0.03778710216283798, -0.09414629638195038, 0.21789976954460144, 0.3500140309333801, -0.4358420968055725, -0.02367086336016655, -0.20669078826904297, -0.07812895625829697, 0.4145665466785431, -0.023621395230293274, 0.07423599064350128, 0.054269637912511826, 0.31571951508522034, 0.07997842133045197, -0.09340909123420715, -0.3097279667854309, -0.18688181042671204, 0.019749701023101807, -0.07820913940668106, -0.011729761958122253, 0.025764532387256622, -0.12001324445009232, -0.07672421634197235, -0.06595703214406967, -0.09149345755577087, -0.1465873420238495, 0.007814552634954453, 0.44732165336608887, 0.0004196092486381531, 0.09699232876300812, 0.06402944028377533, 0.11668238043785095, -0.021097786724567413, -0.22816874086856842, 0.0321902371942997, 0.16215142607688904, -0.05169980973005295, -0.09866401553153992, -0.15055584907531738, -0.04716484993696213, -0.3882827162742615, -0.06876636296510696, 0.006775975227355957, -0.16050228476524353, -0.09582368284463882, 0.07739373296499252, 0.6340233087539673, 0.010784678161144257, -0.2965528666973114, -0.1921643316745758, 0.02798096276819706, 0.3456474244594574, -0.3949337601661682, -0.12690231204032898, 0.45424726605415344, 0.2467416375875473, 0.2646102011203766, 0.3529658913612366, 0.13911165297031403, -0.08405260741710663, -0.19155405461788177, 0.004000190645456314, 0.29133254289627075, -0.4078509211540222, -0.1634417623281479, 0.1737113893032074, -0.14265137910842896, -0.16981910169124603, 0.3206776976585388, 0.05786575376987457, 0.16803517937660217, 0.08389275521039963, 0.3906589150428772, 0.5761867761611938, 0.14169660210609436, 0.03042689710855484, -0.057727061212062836, 0.11515717208385468, -0.07071816921234131, 0.5745171308517456, -0.027649834752082825, 0.2495676875114441, 0.15677990019321442, 0.5897645950317383, -0.2613562345504761, -0.21765856444835663, -0.04092109948396683, 0.21259471774101257, -0.03424636274576187, -0.2194949835538864, 0.13715608417987823, -0.07145782560110092, -0.3883415162563324, -0.00437169149518013, 0.014580227434635162, -0.23136137425899506, 0.38037270307540894, -0.04845980554819107, 0.1276196539402008, -0.2602134644985199, -0.11909840255975723, 0.024867473170161247, 0.4030859172344208, -0.39799296855926514, 0.06432271748781204, -0.25063008069992065, 0.09554306417703629, -0.017597872763872147, 0.35474053025245667, 0.17168107628822327, 0.017751021310687065, -0.25124460458755493, -0.08426326513290405, -0.1949610561132431, -0.11999711394309998, -0.2027817815542221, 0.22799231112003326, 0.24091914296150208, 0.018384285271167755, 0.4225251376628876, 0.18160390853881836, -0.2255631685256958, 0.04913751408457756, 0.167234405875206, 0.09844774007797241, -0.007040560245513916, 0.4931473135948181, -0.10184986889362335, -0.2557193338871002, -0.266680508852005, -0.05131111294031143, -0.40268978476524353, -0.06665516644716263, -0.11750082671642303, -0.03085324913263321, 0.1739557683467865, -0.38356924057006836, 0.14161594212055206, -0.04973534122109413, 0.44530826807022095, 0.012516003102064133, 0.29891639947891235, -0.21124087274074554, -0.2104017585515976, -0.6262403130531311, -0.02299218624830246, -0.09374213218688965, -0.5266144275665283, 0.21520572900772095, 0.029598278924822807, -0.06426087766885757, 0.02087688259780407, 0.04277631640434265, 0.5819959044456482, -0.16319039463996887, -0.1065300703048706, -0.42306727170944214, 0.1154215931892395, -0.18298117816448212, -0.05020369589328766, 0.14122682809829712, -0.2908741235733032, 0.011112511157989502, -0.23848775029182434, 0.1909264326095581, 0.07287751138210297, 0.025542639195919037, 0.06769725680351257, 0.2701844274997711, 0.13873109221458435, 0.04367188364267349, 0.26167625188827515, -0.14459004998207092, 0.08573208004236221, -0.1028873473405838, -0.016846252605319023, -0.2982354760169983, 0.039442598819732666, 0.10759222507476807, 0.33385181427001953, 0.041206538677215576, 0.021992778405547142, -0.07287919521331787, 0.09334080666303635, 0.1682983636856079, 0.2568715214729309, 0.033826060593128204, 0.19437962770462036, 0.14239349961280823, -0.04101577028632164, 0.09539660811424255, 0.3407488763332367, 0.0053744204342365265, 0.05500344932079315, -0.012975148856639862, -0.34891918301582336, 0.46047061681747437, -0.3287239372730255, -0.13288922607898712, 0.09408240020275116, 0.3477376699447632, 0.2625037431716919, -0.24081867933273315, -0.5395863652229309, -0.13690783083438873, 0.336812287569046, 0.04262799769639969, -0.29551663994789124, 0.31263652443885803, -0.048021722584962845, 0.12107084691524506, 0.054204221814870834, -0.01598389446735382, 0.2987118661403656, -0.25793614983558655, -0.10434547066688538, -0.2538382411003113 ]
https://github.com/huggingface/datasets/issues/181
Cannot upload my own dataset
It's my misunderstanding. I cannot just upload a csv. I need to write a dataset loading script too.
I look into `nlp-cli` and `user.py` to learn how to upload my own data. It is supposed to work like this - Register to get username, password at huggingface.co - `nlp-cli login` and type username, passworld - I have a single file to upload at `./ttc/ttc_freq_extra.csv` - `nlp-cli upload ttc/ttc_freq_extra.csv` But I got this error. ``` 2020-05-21 16:33:52.722464: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1 About to upload file /content/ttc/ttc_freq_extra.csv to S3 under filename ttc/ttc_freq_extra.csv and namespace korakot Proceed? [Y/n] y Uploading... This might take a while if files are large Traceback (most recent call last): File "/usr/local/bin/nlp-cli", line 33, in <module> service.run() File "/usr/local/lib/python3.6/dist-packages/nlp/commands/user.py", line 234, in run token=token, filename=filename, filepath=filepath, organization=self.args.organization File "/usr/local/lib/python3.6/dist-packages/nlp/hf_api.py", line 141, in presign_and_upload urls = self.presign(token, filename=filename, organization=organization) File "/usr/local/lib/python3.6/dist-packages/nlp/hf_api.py", line 132, in presign return PresignedUrl(**d) TypeError: __init__() got an unexpected keyword argument 'cdn' ```
18
Cannot upload my own dataset I look into `nlp-cli` and `user.py` to learn how to upload my own data. It is supposed to work like this - Register to get username, password at huggingface.co - `nlp-cli login` and type username, passworld - I have a single file to upload at `./ttc/ttc_freq_extra.csv` - `nlp-cli upload ttc/ttc_freq_extra.csv` But I got this error. ``` 2020-05-21 16:33:52.722464: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1 About to upload file /content/ttc/ttc_freq_extra.csv to S3 under filename ttc/ttc_freq_extra.csv and namespace korakot Proceed? [Y/n] y Uploading... This might take a while if files are large Traceback (most recent call last): File "/usr/local/bin/nlp-cli", line 33, in <module> service.run() File "/usr/local/lib/python3.6/dist-packages/nlp/commands/user.py", line 234, in run token=token, filename=filename, filepath=filepath, organization=self.args.organization File "/usr/local/lib/python3.6/dist-packages/nlp/hf_api.py", line 141, in presign_and_upload urls = self.presign(token, filename=filename, organization=organization) File "/usr/local/lib/python3.6/dist-packages/nlp/hf_api.py", line 132, in presign return PresignedUrl(**d) TypeError: __init__() got an unexpected keyword argument 'cdn' ``` It's my misunderstanding. I cannot just upload a csv. I need to write a dataset loading script too.
[ 0.13189581036567688, -0.12678249180316925, 0.056689780205488205, -0.028536997735500336, 0.11699900031089783, -0.15414685010910034, 0.39699169993400574, -0.06210627034306526, -0.21482893824577332, 0.2518131136894226, -0.08670581877231598, 0.15889929234981537, -0.1718001663684845, 0.2942124009132385, 0.38248011469841003, 0.1044844537973404, 0.09072619676589966, 0.3132134675979614, 0.03962385654449463, -0.12798327207565308, -0.2627110481262207, 0.05864538252353668, -0.016203537583351135, -0.07316702604293823, -0.07528501003980637, -0.1867675483226776, -0.1350202113389969, 0.26787590980529785, -0.22584380209445953, -0.31009697914123535, 0.4256775975227356, 0.2096182256937027, 0.34658506512641907, 0.5284519195556641, -0.00012068288924638182, -0.06405153125524521, 0.17346495389938354, -0.24845130741596222, -0.5683870315551758, -0.3589857220649719, 0.0835861936211586, -0.13413143157958984, 0.08103327453136444, -0.2865522503852844, 0.2272179126739502, 0.052917636930942535, 0.05087368190288544, 0.13236549496650696, 0.5366078019142151, 0.409507155418396, 0.12447762489318848, 0.06690937280654907, -0.2169528305530548, -0.10151204466819763, 0.008196592330932617, 0.16872449219226837, -0.031256645917892456, 0.2934635877609253, 0.319208025932312, -0.4081141948699951, 0.29175838828086853, -0.24268244206905365, -0.03904283791780472, -0.007285218685865402, 0.5370674133300781, 0.05455393344163895, -0.05379899591207504, -0.42572587728500366, 0.004693951457738876, 0.15714366734027863, 0.28184255957603455, 0.033649127930402756, -0.3289821147918701, -0.11295070499181747, 0.11158451437950134, -0.559985876083374, 0.2091524600982666, 0.30534684658050537, -0.42565542459487915, -0.03852693364024162, -0.2067481428384781, 0.33666935563087463, -0.3919655382633209, 0.47593605518341064, 0.11568759381771088, 0.3350120186805725, -0.03723035007715225, 0.13018041849136353, 0.2861829996109009, -0.09340377151966095, -0.009625890292227268, 0.07325836271047592, 0.025192005559802055, 0.2944709062576294, -0.16644147038459778, -0.18143436312675476, -0.030565939843654633, -0.2799892723560333, -0.11502858996391296, 0.09093844890594482, 0.4687090814113617, -0.1892624795436859, -0.21843716502189636, 0.16301023960113525, 0.11493609845638275, 0.32948851585388184, -0.023438289761543274, 0.052270933985710144, 0.1015276238322258, -0.02500043995678425, 0.31006234884262085, -0.08968467265367508, -0.2538236975669861, -0.10262620449066162, -0.14759552478790283, -0.02387796714901924, 0.2796855568885803, 0.12876679003238678, 0.012593613937497139, -0.13629180192947388, 0.05509152263402939, 0.0633087158203125, -0.16161304712295532, 0.3230094313621521, -0.0883517861366272, -0.2684028148651123, 0.002020731568336487, 0.2783099412918091, 0.16045399010181427, -0.2968742847442627, 0.10166555643081665, 0.3348386287689209, -0.1052018404006958, -0.15593500435352325, 0.3859618604183197, 0.026123881340026855, 0.18523716926574707, -0.05975547060370445, 0.22655628621578217, -0.14647066593170166, 0.02202625758945942, -0.034872010350227356, -0.16940411925315857, 0.014914993196725845, 0.23729705810546875, 0.39286187291145325, -0.03909876570105553, -0.5896615386009216, -0.11377359181642532, 0.09599366039037704, -0.4078328311443329, -0.34104031324386597, -0.45826607942581177, 0.05670676752924919, 0.0479314848780632, -0.18805956840515137, -0.3507995307445526, -0.13403938710689545, 0.10075796395540237, -0.27891334891319275, -0.0907558724284172, 0.010324312373995781, -0.08747866004705429, -0.1320454478263855, 0.061368636786937714, 0.04111204296350479, -0.5356758236885071, 0.26288166642189026, -0.08810202032327652, 0.552070140838623, 0.35892871022224426, 0.2969781756401062, -0.3132716119289398, 0.302373468875885, -0.043866973370313644, 0.17262302339076996, 0.5356268882751465, -0.4726382791996002, -0.22461511194705963, 0.007902530021965504, -0.0368112176656723, -0.1761099398136139, 0.11352507025003433, 0.1971009522676468, 0.12219586223363876, -0.06313985586166382, 0.09179908037185669, 0.3859572410583496, 0.05037309601902962, 0.018724167719483376, -0.19749218225479126, -0.1673995554447174, 0.2501934766769409, -0.026912974193692207, -0.16875822842121124, 0.11825576424598694, 0.26363587379455566, 0.02896657958626747, 0.03021077811717987, -0.3133387863636017, 0.11959060281515121, 0.21816319227218628, 0.3369295299053192, -0.1820138841867447, -0.1540909707546234, 0.2823069393634796, -0.4028124511241913, 0.16599243879318237, 0.17265741527080536, 0.34748637676239014, -0.055268898606300354, -0.04414624348282814, -0.4338442087173462, -0.11113918572664261, -0.02036942169070244, -0.025351695716381073, 0.04577546566724777, 0.11559592932462692, 0.022934671491384506, -0.23246580362319946, -0.2718806564807892, 0.10688913613557816, -0.26044580340385437, 0.04938425496220589, -0.21144305169582367, -0.03956366702914238, -0.32546621561050415, -0.0634859949350357, 0.256000280380249, 0.11972150206565857, 0.20380091667175293, -0.012564529664814472, -0.16738685965538025, 0.10784430801868439, -0.4246120750904083, 0.2669951915740967, -0.03085552155971527, 0.11985628306865692, 0.007746100425720215, -0.006524618715047836, -0.2597014009952545, -0.07866580784320831, 0.22222712635993958, -0.2051437795162201, -0.3840413987636566, 0.16649071872234344, -0.009619142860174179, 0.06530893594026566, 0.12813512980937958, 0.008447054773569107, 0.2979518473148346, -0.1877758651971817, 0.0634714737534523, 0.14334988594055176, 0.3599376082420349, 0.11930389702320099, 0.38061630725860596, -0.02155347354710102, -0.12040430307388306, -0.1549835205078125, 0.1685706228017807, 0.010845005512237549, 0.13222646713256836, 0.05839158594608307, 0.06194080412387848, -0.07862548530101776, 0.32469508051872253, 0.5969871282577515, 0.38469332456588745, 0.03554392233490944, -0.06499935686588287, -0.008059104904532433, -0.10091302543878555, -0.23450538516044617, -0.025496400892734528, -0.043070532381534576, 0.042327024042606354, 0.16191339492797852, 0.39723309874534607, 0.22959718108177185, -0.09001214802265167, 0.027445096522569656, 0.13210585713386536, 0.4263569116592407, -0.2129421830177307, 0.26301270723342896, -0.10497584193944931, -0.41205841302871704, 0.28124314546585083, -0.24620471894741058, -0.06726337969303131, -0.15471318364143372, -0.18189199268817902, 0.1328585147857666, 0.10234668850898743, -0.1452900469303131, 0.15610213577747345, 0.3768163025379181, -0.11184249818325043, -0.25870591402053833, -0.23002471029758453, -0.09443683922290802, -0.2048036754131317, 0.022891629487276077, 0.2822817265987396, -0.07962159812450409, 0.3960423767566681, 0.297789603471756, 0.0591256245970726, 0.0036398228257894516, -0.30799975991249084, -0.018483400344848633, -0.04487808048725128, 0.10120896250009537, 0.0983482375741005, 0.3818151354789734, 0.011833548545837402, -0.5280574560165405, 0.14642678201198578, 0.07743418216705322, -0.2765727937221527, 0.24847954511642456, -0.021303948014974594, -0.35785621404647827, -0.48331764340400696, -0.025970466434955597, -0.2373683899641037, -0.3723590075969696, 0.23394279181957245, 0.34234684705734253, 0.2010430097579956, 0.6263756155967712, 0.03308121860027313, 0.10552320629358292, 0.3673247694969177, 0.15832512080669403, 0.037781644612550735, -0.14254751801490784, 0.4890124499797821, -0.21970738470554352, -0.4154717028141022, 0.1447935551404953, -0.15794165432453156, 0.54475337266922, -0.07129509001970291, -0.3519463539123535, -0.18232186138629913, 0.08118409663438797, 0.14644108712673187, -0.03778621554374695, -0.03920040279626846, 0.3170756697654724, -0.24508893489837646, 0.0634947270154953, -0.07407832890748978, -0.34562554955482483, 0.11119969189167023, 0.6317625641822815, 0.2669851779937744, 0.0019001979380846024, 0.4668567180633545, 0.001462303102016449, 0.7395948767662048, 0.0747237503528595, -0.2926446795463562, 0.41096195578575134, -0.10046767443418503, 0.2557591497898102, -0.17619889974594116, -0.3271768391132355, 0.027623170986771584, 0.1809423714876175, -0.1293836086988449, 0.12235836684703827, -0.05677159130573273, -0.07399100810289383, -0.475685179233551, 0.30633246898651123, -0.29413023591041565, 0.04968647286295891, 0.010090164840221405, 0.10700756311416626, -0.009691528975963593, -0.07850103080272675, -0.22861424088478088, -0.33661970496177673, -0.4889742136001587, -0.18894612789154053, 0.27260375022888184, -0.2198995053768158, 0.17207472026348114, -0.6565860509872437, -0.1326984465122223, -0.6450010538101196, 0.3082122206687927, -0.16790415346622467, 0.30234766006469727, -0.18335354328155518, 0.18022295832633972, 0.1702098697423935, -0.06943017989397049, 0.14790421724319458, -0.38897404074668884, -0.20179711282253265, -0.10400545597076416, 0.31818896532058716, -0.4269340932369232, -0.06536135077476501, -0.07280060648918152, 0.08206476271152496, 0.4818250834941864, 0.20355430245399475, -0.014485381543636322, 0.09700249880552292, -0.19211545586585999, -0.18257421255111694, -0.20688632130622864, -0.21783797442913055, -0.08103323727846146, -0.6945077180862427, -0.36785972118377686, -0.5016220808029175, 0.1227373257279396, 0.13900968432426453, 0.14689311385154724, -0.030242064967751503, 0.21095670759677887, 0.08789115399122238, 0.4853443503379822, 0.004931360483169556, -0.059936411678791046, 0.60089510679245, -0.16515707969665527, -0.4717903435230255, 0.49630504846572876, -0.11771076917648315, 0.3781428039073944, 0.09147733449935913, -0.15693627297878265, -0.138199120759964, -0.3253127336502075, 0.47440198063850403, 0.23392383754253387, 0.10316678881645203, 0.2817527651786804, -0.06286686658859253, 0.02600889280438423, -0.15068231523036957, 0.4732229709625244, 0.3427961468696594, -0.13644391298294067, -0.3455299437046051, -0.1474505066871643, 0.4850686192512512, -0.20866665244102478, -0.061528049409389496, 0.22016826272010803, -0.20480941236019135, -0.23179924488067627, 0.21763399243354797, 0.164819598197937, 1.243888258934021, -0.059595562517642975, 0.4256591796875, 0.07456760108470917, -0.03275971859693527, 0.7743014097213745, -0.16633550822734833, 0.06815869361162186, -0.2318921536207199, 0.13499344885349274, -0.14140090346336365, -0.06125324219465256, -0.11391087621450424, 0.11026822030544281, -0.22976039350032806, 0.10841312259435654, -0.11354096233844757, -0.04289862886071205, 0.0006197122856974602, 0.45125168561935425, 0.1017269492149353, -0.3414740562438965, -0.17380882799625397, 0.061344169080257416, -0.25388646125793457, 0.31335437297821045, -0.1798342764377594, -0.2180388867855072, -0.301419198513031, -0.232620507478714, -0.18177823722362518, 0.24452117085456848, -0.26989027857780457, 0.07795149087905884, 0.0035692788660526276, -0.32298946380615234, 0.17310534417629242, 0.4630556106567383, 0.5105307698249817, -0.06357856094837189, -0.06871640682220459, -0.009666461497545242, -0.08557624369859695, -0.04236733168363571, -0.09295124560594559, 0.06018412113189697, 0.13630163669586182, -0.29558828473091125, 0.0736774429678917, 0.3211551606655121, -0.08515794575214386, -0.37327301502227783, -0.21020668745040894, 0.19486340880393982, 0.059411756694316864, -0.13404181599617004, -0.3536510765552521, 0.0659637600183487, -0.21248780190944672, -0.015740126371383667, 0.0045342398807406425, 0.03315185010433197, 0.08301050215959549, -0.09015702456235886, 0.08961176127195358, -0.19795159995555878, 0.09447407722473145, 0.06312543898820877, -0.0416489914059639, -0.04899239540100098, 0.7007594108581543, -0.12110762298107147, 0.08024565875530243, -0.04312016814947128, -0.20529383420944214, -0.3344258964061737, -0.14639462530612946, -0.07787715643644333, 0.3191208243370056, -0.03044666349887848, 0.039158303290605545, 0.6615248322486877, 0.3981345295906067, 0.1872175633907318, 0.06805633008480072, -0.11110632866621017, -0.3231562674045563, -0.31334155797958374, -0.03441139683127403, 0.20288453996181488, -0.025104787200689316, 0.21315915882587433, 0.20983292162418365, 0.2966144382953644, -0.21475595235824585, -0.18158230185508728, -0.20305879414081573, 0.17764833569526672, 0.7618898153305054, -0.013124309480190277, -0.11110205203294754, -0.010395506396889687, -0.03315958008170128, 0.009592877700924873, -0.1480640470981598, -0.1033521518111229, -0.37931758165359497, 0.1847984343767166, 0.5306533575057983, -0.1196046769618988, -0.014834028668701649, -0.2393808811903, -0.11199545860290527, -0.12136799097061157, -0.32977432012557983, 0.04165036231279373, -0.014645874500274658, 0.20553646981716156, -0.31027427315711975, 0.3925667703151703, -0.15368539094924927, 0.17300860583782196, 0.02032802253961563, 0.25116419792175293, 0.060565490275621414, -0.052163414657115936, 0.15323282778263092, 0.0744907408952713, -0.39298850297927856, 0.0065552592277526855, -0.1775217205286026, -0.09909849613904953, 0.02572948858141899, -0.41810232400894165, 0.15793181955814362, -0.2215922623872757, 0.02227163314819336, 0.04608604311943054, -0.5020129680633545, 0.2189575582742691, 0.4416896104812622, 0.08857286721467972, 0.04070460796356201, 0.16635090112686157, 0.07060438394546509, 0.21389974653720856, 0.024118702858686447, 0.27505701780319214, -0.000700872391462326, -0.30314886569976807, -0.04899631440639496, -0.22703427076339722, -0.11426658928394318, -0.272132933139801, 0.04339127987623215, -0.060879167169332504, -0.42428794503211975, 0.004608765244483948, 0.17042513191699982, 0.15908101201057434, -0.10351117700338364, 0.15583436191082, -0.19883888959884644, 0.09525322169065475, 0.05639857053756714, -0.11588519811630249, 0.18385924398899078, -0.23433272540569305, 0.12833631038665771, -0.045182421803474426, -0.007980786263942719, 0.3380730152130127, 0.16224470734596252, 0.6163561344146729, -0.3498656451702118, -0.011331913992762566, -0.2669871747493744, 0.05803179368376732, 0.023866888135671616, 0.17970988154411316, -0.6604160666465759, -0.005375996232032776, 0.06842418015003204, -0.08650718629360199, 0.03860168531537056, -0.32679814100265503, -0.05037972331047058, 0.2629701495170593, -0.16344915330410004, 0.10786763578653336, -0.13042357563972473, 0.19259360432624817, 0.1316486895084381, -0.11263580620288849, 0.36844438314437866, 0.0031907185912132263, -0.03597037494182587, -0.06830295920372009, 0.05866602808237076, 0.5559291243553162, 0.617588222026825, 0.16811373829841614, 0.2705538868904114, 0.23017121851444244, -0.0069073885679244995, 0.07748179137706757, 0.1667328178882599, 0.4616709351539612, 0.3019830286502838, 0.1201505959033966, 0.03081301786005497, -0.12133535742759705, 0.14843007922172546, 0.05331914871931076, 0.0956459790468216, -0.3158130347728729, 0.22804498672485352, -0.0291060172021389, -0.39975598454475403, -0.15640833973884583, 0.40171676874160767, -0.45790722966194153, -0.014089728705585003, 0.19009722769260406, 0.18232755362987518, 0.3674244284629822, -0.2338707447052002, 0.022305399179458618, -0.18495386838912964, 0.397565096616745, 0.46561506390571594, -0.036127135157585144, -0.14645567536354065, -0.21958960592746735, -0.4871540665626526, 0.17760151624679565, -0.2229425013065338, -0.20073826611042023, -0.37589025497436523, 0.17404408752918243, 0.06222475692629814, -0.01866251602768898, 0.07831180095672607, 0.08619611710309982, -0.27417880296707153, 0.023239709436893463, -0.3622921407222748, -0.02060038223862648, -0.12250633537769318, -0.00251217745244503, -0.07682973146438599, -0.16656692326068878, 0.03956831246614456, 0.11009855568408966, 0.012876681983470917, 0.024148114025592804, 0.2424088716506958, 0.13704892992973328, 0.36731070280075073, 0.47866782546043396, -0.07187172025442123, 0.7685261964797974, 0.06704554706811905, 0.020573196932673454, 0.049299124628305435, -0.042259447276592255, -0.17712561786174774, -0.001818828284740448, 0.1784062683582306, 0.3781338930130005, -0.05883774906396866, 0.34986382722854614, -0.19776184856891632, 0.06250452250242233, -0.022588102146983147, -0.5348158478736877, 0.05529956519603729, -0.006338473409414291, -0.08719773590564728, 0.23023860156536102, 0.4238298535346985, 0.08845051378011703, 0.07060196250677109, -0.1437545269727707, -0.4335865378379822, -0.2854063808917999, 0.4140365719795227, -0.5086392164230347, -0.3003111481666565, 0.22361119091510773, 0.23953376710414886, -0.029342956840991974, 0.052728258073329926, -0.22304275631904602, -0.08505085855722427, 0.13561590015888214, -0.25086042284965515, -0.051889993250370026, 0.3241964280605316, -0.5186465978622437, 0.016271870583295822, -0.055287718772888184, 0.30499035120010376, 0.202419251203537, -0.37965109944343567, -0.07080508023500443, -0.21508009731769562 ]
https://github.com/huggingface/datasets/issues/181
Cannot upload my own dataset
I now try with the sample `datasets/csv` folder. nlp-cli upload csv The error is still the same ``` 2020-05-21 17:20:56.394659: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1 About to upload file /content/csv/csv.py to S3 under filename csv/csv.py and namespace korakot About to upload file /content/csv/dummy/0.0.0/dummy_data.zip to S3 under filename csv/dummy/0.0.0/dummy_data.zip and namespace korakot Proceed? [Y/n] y Uploading... This might take a while if files are large Traceback (most recent call last): File "/usr/local/bin/nlp-cli", line 33, in <module> service.run() File "/usr/local/lib/python3.6/dist-packages/nlp/commands/user.py", line 234, in run token=token, filename=filename, filepath=filepath, organization=self.args.organization File "/usr/local/lib/python3.6/dist-packages/nlp/hf_api.py", line 141, in presign_and_upload urls = self.presign(token, filename=filename, organization=organization) File "/usr/local/lib/python3.6/dist-packages/nlp/hf_api.py", line 132, in presign return PresignedUrl(**d) TypeError: __init__() got an unexpected keyword argument 'cdn' ```
I look into `nlp-cli` and `user.py` to learn how to upload my own data. It is supposed to work like this - Register to get username, password at huggingface.co - `nlp-cli login` and type username, passworld - I have a single file to upload at `./ttc/ttc_freq_extra.csv` - `nlp-cli upload ttc/ttc_freq_extra.csv` But I got this error. ``` 2020-05-21 16:33:52.722464: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1 About to upload file /content/ttc/ttc_freq_extra.csv to S3 under filename ttc/ttc_freq_extra.csv and namespace korakot Proceed? [Y/n] y Uploading... This might take a while if files are large Traceback (most recent call last): File "/usr/local/bin/nlp-cli", line 33, in <module> service.run() File "/usr/local/lib/python3.6/dist-packages/nlp/commands/user.py", line 234, in run token=token, filename=filename, filepath=filepath, organization=self.args.organization File "/usr/local/lib/python3.6/dist-packages/nlp/hf_api.py", line 141, in presign_and_upload urls = self.presign(token, filename=filename, organization=organization) File "/usr/local/lib/python3.6/dist-packages/nlp/hf_api.py", line 132, in presign return PresignedUrl(**d) TypeError: __init__() got an unexpected keyword argument 'cdn' ```
116
Cannot upload my own dataset I look into `nlp-cli` and `user.py` to learn how to upload my own data. It is supposed to work like this - Register to get username, password at huggingface.co - `nlp-cli login` and type username, passworld - I have a single file to upload at `./ttc/ttc_freq_extra.csv` - `nlp-cli upload ttc/ttc_freq_extra.csv` But I got this error. ``` 2020-05-21 16:33:52.722464: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1 About to upload file /content/ttc/ttc_freq_extra.csv to S3 under filename ttc/ttc_freq_extra.csv and namespace korakot Proceed? [Y/n] y Uploading... This might take a while if files are large Traceback (most recent call last): File "/usr/local/bin/nlp-cli", line 33, in <module> service.run() File "/usr/local/lib/python3.6/dist-packages/nlp/commands/user.py", line 234, in run token=token, filename=filename, filepath=filepath, organization=self.args.organization File "/usr/local/lib/python3.6/dist-packages/nlp/hf_api.py", line 141, in presign_and_upload urls = self.presign(token, filename=filename, organization=organization) File "/usr/local/lib/python3.6/dist-packages/nlp/hf_api.py", line 132, in presign return PresignedUrl(**d) TypeError: __init__() got an unexpected keyword argument 'cdn' ``` I now try with the sample `datasets/csv` folder. nlp-cli upload csv The error is still the same ``` 2020-05-21 17:20:56.394659: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1 About to upload file /content/csv/csv.py to S3 under filename csv/csv.py and namespace korakot About to upload file /content/csv/dummy/0.0.0/dummy_data.zip to S3 under filename csv/dummy/0.0.0/dummy_data.zip and namespace korakot Proceed? [Y/n] y Uploading... This might take a while if files are large Traceback (most recent call last): File "/usr/local/bin/nlp-cli", line 33, in <module> service.run() File "/usr/local/lib/python3.6/dist-packages/nlp/commands/user.py", line 234, in run token=token, filename=filename, filepath=filepath, organization=self.args.organization File "/usr/local/lib/python3.6/dist-packages/nlp/hf_api.py", line 141, in presign_and_upload urls = self.presign(token, filename=filename, organization=organization) File "/usr/local/lib/python3.6/dist-packages/nlp/hf_api.py", line 132, in presign return PresignedUrl(**d) TypeError: __init__() got an unexpected keyword argument 'cdn' ```
[ 0.05260505899786949, -0.028109237551689148, 0.05533047392964363, -0.0020761638879776, 0.14557859301567078, -0.18475809693336487, 0.33769646286964417, -0.04772249981760979, -0.192668616771698, 0.1797221451997757, -0.1303292065858841, 0.243690624833107, -0.2115619033575058, 0.2791498601436615, 0.369356632232666, 0.06986415386199951, 0.013264857232570648, 0.2872200608253479, 0.012621976435184479, -0.10832860320806503, -0.25432002544403076, 0.09193547815084457, -0.019309524446725845, -0.08095921576023102, -0.1234254390001297, -0.1938009262084961, -0.08119562268257141, 0.2602366507053375, -0.2238224744796753, -0.36161234974861145, 0.49111777544021606, 0.23479107022285461, 0.36471033096313477, 0.5793409943580627, -0.00011945606820518151, -0.0481618270277977, 0.16207453608512878, -0.22125203907489777, -0.62429279088974, -0.40795373916625977, 0.020531967282295227, -0.15109458565711975, 0.07041133940219879, -0.2569882273674011, 0.18926182389259338, 0.023186076432466507, 0.02170727029442787, 0.04705163836479187, 0.48964178562164307, 0.406698614358902, 0.13775812089443207, 0.1278684139251709, -0.22636982798576355, -0.13977228105068207, 0.007812000811100006, 0.1732068955898285, -0.0587552934885025, 0.2595105469226837, 0.33482617139816284, -0.40046390891075134, 0.2734423279762268, -0.19609791040420532, 0.012751681730151176, -0.03790616989135742, 0.48874014616012573, -0.02175406739115715, -0.06072566658258438, -0.3897155821323395, -0.011177446693181992, 0.15420427918434143, 0.3593454658985138, -0.01749369502067566, -0.390593558549881, -0.12496840953826904, 0.13513150811195374, -0.4883083403110504, 0.24852320551872253, 0.2740955650806427, -0.40215277671813965, -0.027208950370550156, -0.2619938552379608, 0.34791457653045654, -0.40307754278182983, 0.44457781314849854, 0.10771265625953674, 0.3708464801311493, -0.037059325724840164, 0.09139947593212128, 0.2884844243526459, -0.15400098264217377, 0.022261135280132294, 0.03814258426427841, 0.02801372855901718, 0.2681339979171753, -0.2156571000814438, -0.15431584417819977, 0.011641189455986023, -0.23738589882850647, -0.0875120684504509, 0.11485134810209274, 0.42785197496414185, -0.12593233585357666, -0.24697165191173553, 0.1405273675918579, 0.10184371471405029, 0.3375074565410614, 0.023061171174049377, 0.12450451403856277, 0.1315496265888214, 0.003660099348053336, 0.24482998251914978, -0.07746647298336029, -0.2943650484085083, -0.08862169831991196, -0.11200970411300659, -0.05211998522281647, 0.2688550353050232, 0.07469865679740906, -0.007578982040286064, -0.10847941786050797, 0.07862367480993271, 0.042311470955610275, -0.08323104679584503, 0.35260018706321716, -0.059402525424957275, -0.23659086227416992, -0.020167233422398567, 0.2576303482055664, 0.1414349228143692, -0.26095736026763916, 0.06589078158140182, 0.29550111293792725, -0.12431155145168304, -0.14895302057266235, 0.41411715745925903, 0.023556653410196304, 0.19150905311107635, -0.06857964396476746, 0.21296513080596924, -0.1140514612197876, 0.05686980485916138, 0.029537532478570938, -0.1648237407207489, 0.017246324568986893, 0.22356107831001282, 0.39288774132728577, -0.052339013665914536, -0.5404907464981079, -0.14034432172775269, 0.02345091849565506, -0.34771934151649475, -0.35779014229774475, -0.4238154888153076, 0.07509450614452362, 0.02057827264070511, -0.2402534782886505, -0.33749955892562866, -0.09723202884197235, 0.09148195385932922, -0.28204506635665894, -0.09507925063371658, -0.04518909007310867, -0.15627089142799377, -0.11635973304510117, 0.11207764595746994, 0.06296411901712418, -0.4992433488368988, 0.21195143461227417, -0.07937376946210861, 0.5196462273597717, 0.2760166525840759, 0.3038298487663269, -0.34270718693733215, 0.23301401734352112, -0.06637635827064514, 0.18478013575077057, 0.5762096643447876, -0.4968987703323364, -0.3117572069168091, 0.04671117290854454, -0.03056425228714943, -0.11799018830060959, 0.0722411572933197, 0.17157955467700958, 0.11363773792982101, -0.08424360305070877, 0.102182537317276, 0.43852168321609497, 0.06725216656923294, 0.040182337164878845, -0.22083282470703125, -0.15429814159870148, 0.2543807029724121, 0.03698490187525749, -0.15067900717258453, 0.08312317728996277, 0.2604738473892212, 0.06287041306495667, 0.010456010699272156, -0.3288801312446594, 0.14159707725048065, 0.21016880869865417, 0.35805749893188477, -0.16867893934249878, -0.1278674155473709, 0.21730747818946838, -0.4310544431209564, 0.21843940019607544, 0.18919114768505096, 0.34858375787734985, -0.13365665078163147, -0.0364643819630146, -0.4364340007305145, -0.10224426537752151, -0.10477006435394287, -0.048560623079538345, 0.04172838479280472, 0.1295846700668335, 0.07387451827526093, -0.18000969290733337, -0.22281566262245178, 0.15982910990715027, -0.25885334610939026, 0.06837034225463867, -0.2100188434123993, 0.03586181253194809, -0.27387937903404236, -0.09568648785352707, 0.2633078396320343, 0.16703751683235168, 0.21565169095993042, -0.015993298962712288, -0.20171013474464417, 0.09329333156347275, -0.45344269275665283, 0.2857998013496399, 0.017559222877025604, 0.10015691071748734, 0.03624130040407181, -0.05520535260438919, -0.21381957828998566, -0.1098799854516983, 0.17156195640563965, -0.15249401330947876, -0.36772575974464417, 0.1745695024728775, -0.00448811799287796, 0.03608423471450806, 0.16663628816604614, 0.010148802772164345, 0.2959842085838318, -0.1779489815235138, 0.09211887419223785, 0.0983785092830658, 0.41748374700546265, 0.0931713730096817, 0.40335768461227417, -0.01101878471672535, -0.1426609754562378, -0.08572383970022202, 0.16825446486473083, -0.0006491504609584808, 0.15058520436286926, 0.07491149008274078, 0.024228453636169434, -0.05125834047794342, 0.30666759610176086, 0.6624004244804382, 0.3770540952682495, 0.08588407188653946, -0.026366103440523148, -0.05195988714694977, -0.12508559226989746, -0.21065716445446014, -0.04003188759088516, -0.07790215313434601, 0.05889101326465607, 0.18291524052619934, 0.4417647421360016, 0.2363882213830948, -0.13617083430290222, -0.0484122633934021, 0.15327341854572296, 0.45341381430625916, -0.19562575221061707, 0.2583766281604767, -0.16094213724136353, -0.42994073033332825, 0.24248985946178436, -0.2555164694786072, -0.06268638372421265, -0.18169616162776947, -0.21708276867866516, 0.14613677561283112, 0.10717083513736725, -0.08416301757097244, 0.10070112347602844, 0.33157023787498474, -0.10592759400606155, -0.28663933277130127, -0.25440704822540283, -0.1137494370341301, -0.19180256128311157, 0.027764279395341873, 0.3250082731246948, -0.08840220421552658, 0.4124758541584015, 0.32488107681274414, 0.08864612132310867, -0.04613881558179855, -0.32683828473091125, -0.004596743732690811, -0.03740985691547394, 0.12089093774557114, 0.12138766795396805, 0.35637176036834717, 0.008665569126605988, -0.5445613265037537, 0.1948809176683426, 0.07846479117870331, -0.2436252236366272, 0.25166091322898865, -0.03253840282559395, -0.3485890030860901, -0.4676508903503418, -0.020826637744903564, -0.27371272444725037, -0.3687703609466553, 0.23967114090919495, 0.2940942943096161, 0.20991677045822144, 0.5754036903381348, 0.017712384462356567, 0.12528347969055176, 0.32062825560569763, 0.12391530722379684, 0.06834261864423752, -0.18604595959186554, 0.5255690217018127, -0.24559177458286285, -0.4252483546733856, 0.10256525874137878, -0.16349104046821594, 0.5601886510848999, -0.009718433022499084, -0.35013991594314575, -0.17843452095985413, 0.05947978049516678, 0.2183055579662323, -0.023406580090522766, -0.06744986772537231, 0.2789645791053772, -0.2049720734357834, 0.06126300245523453, -0.08193542063236237, -0.3369683623313904, 0.13447417318820953, 0.6249411106109619, 0.2558959424495697, -0.04228254407644272, 0.4419952630996704, 0.03808317705988884, 0.7028173208236694, 0.10719902813434601, -0.33854761719703674, 0.44943177700042725, -0.03851435333490372, 0.18772707879543304, -0.13236823678016663, -0.36939236521720886, 0.06506120413541794, 0.22544586658477783, -0.06130976974964142, 0.1397269368171692, -0.02224026992917061, -0.10212097316980362, -0.434932142496109, 0.23017054796218872, -0.2566095292568207, 0.048613499850034714, -0.005603041499853134, 0.10512039065361023, 0.05551053211092949, -0.06783220171928406, -0.2128119170665741, -0.37884414196014404, -0.4829712212085724, -0.162873774766922, 0.2749948501586914, -0.23916369676589966, 0.1747971624135971, -0.6903294324874878, -0.09328910708427429, -0.6602336168289185, 0.3001752197742462, -0.1387225240468979, 0.3314151167869568, -0.2023538202047348, 0.20676717162132263, 0.11335945874452591, -0.07665106654167175, 0.12803161144256592, -0.46501654386520386, -0.16798043251037598, -0.07704353332519531, 0.2747678756713867, -0.47235938906669617, -0.04191213846206665, -0.027605094015598297, 0.07491347938776016, 0.43653401732444763, 0.2350967824459076, 0.018999509513378143, 0.07955656945705414, -0.1766323298215866, -0.20306020975112915, -0.1537000685930252, -0.22335831820964813, -0.03689248114824295, -0.6711583733558655, -0.352387011051178, -0.447581946849823, 0.06721364706754684, 0.1456529051065445, 0.14058221876621246, -0.03764258325099945, 0.1860167384147644, 0.11092140525579453, 0.5076414942741394, 0.04284251853823662, -0.04625937342643738, 0.6295245289802551, -0.09305132925510406, -0.4571358561515808, 0.4725040793418884, -0.00994270108640194, 0.38947993516921997, 0.035594407469034195, -0.19427159428596497, -0.1696300506591797, -0.28503337502479553, 0.45783260464668274, 0.17230460047721863, 0.08548031002283096, 0.2172766923904419, -0.1069507896900177, 0.028125707060098648, -0.15494072437286377, 0.4699547290802002, 0.3389652669429779, -0.09147364646196365, -0.4181349277496338, -0.18395176529884338, 0.44957369565963745, -0.17907297611236572, -0.033739134669303894, 0.24281279742717743, -0.192496195435524, -0.2763461470603943, 0.20061808824539185, 0.11939792335033417, 1.0911495685577393, -0.0767851322889328, 0.3788444697856903, 0.12213262170553207, -0.04874777793884277, 0.7742525339126587, -0.14554977416992188, 0.0457032211124897, -0.23358777165412903, 0.1004333645105362, -0.11330747604370117, -0.05880872532725334, -0.0676056370139122, 0.1411721110343933, -0.23739883303642273, 0.0841962918639183, -0.04000593721866608, -0.1112080067396164, 0.007258071098476648, 0.552327036857605, 0.07270961999893188, -0.3941996395587921, -0.22026006877422333, 0.0838499367237091, -0.31129854917526245, 0.3093792796134949, -0.1699574887752533, -0.2196551412343979, -0.28574007749557495, -0.18248271942138672, -0.2072545439004898, 0.27602365612983704, -0.2514287531375885, 0.09939226508140564, 0.0488731786608696, -0.35540109872817993, 0.3192004859447479, 0.46335288882255554, 0.52425616979599, -0.07650545239448547, -0.09716566652059555, 0.049891553819179535, -0.13020995259284973, -0.01417556032538414, -0.03877658024430275, 0.030591744929552078, 0.19029144942760468, -0.2695977985858917, 0.04275389760732651, 0.2530285716056824, -0.0257401280105114, -0.3122657537460327, -0.17742286622524261, 0.1460343450307846, 0.0467342808842659, -0.1632913202047348, -0.353044331073761, 0.08665402233600616, -0.17310066521167755, -0.04445943236351013, 0.02780858241021633, 0.02873493731021881, 0.07372666150331497, -0.06803696602582932, 0.09252908825874329, -0.20078013837337494, 0.08086936175823212, 0.10644616186618805, -0.11565155535936356, -0.05884038656949997, 0.7411607503890991, -0.060061246156692505, 0.0792919173836708, -0.08564351499080658, -0.19852161407470703, -0.318191260099411, -0.14075729250907898, -0.08977224677801132, 0.2795089781284332, -0.030943207442760468, 0.08318252116441727, 0.6403137445449829, 0.33847934007644653, 0.1092204600572586, 0.1618167757987976, -0.14827951788902283, -0.3228500485420227, -0.3060600757598877, -0.043808434158563614, 0.19313763082027435, -0.10730301588773727, 0.1915975958108902, 0.2019474059343338, 0.29810142517089844, -0.2282574474811554, -0.16378898918628693, -0.20056720077991486, 0.1670418679714203, 0.7540920972824097, -0.011614739894866943, -0.06655432283878326, -0.03677359223365784, -0.018900178372859955, 0.002394629642367363, -0.1610785722732544, -0.11697686463594437, -0.38146379590034485, 0.1755768358707428, 0.48093998432159424, -0.18953627347946167, -0.04248169809579849, -0.2404211461544037, -0.09950782358646393, -0.14178188145160675, -0.29677438735961914, 0.06756313145160675, -0.03371110558509827, 0.2408895641565323, -0.26431000232696533, 0.3360067307949066, -0.09664417803287506, 0.21474194526672363, 0.006567344069480896, 0.17916539311408997, 0.08747651427984238, -0.022730395197868347, 0.1959020495414734, 0.07748469710350037, -0.37948086857795715, -0.0381360724568367, -0.20470400154590607, -0.0682206079363823, 0.028971852734684944, -0.45258891582489014, 0.13075217604637146, -0.1122685894370079, 0.04397659748792648, 0.035785332322120667, -0.4939005970954895, 0.163253054022789, 0.3917880952358246, 0.10325802117586136, 0.014925941824913025, 0.1185009554028511, 0.1698046624660492, 0.20384348928928375, 0.020077798515558243, 0.24454793334007263, 0.03487762436270714, -0.2913975119590759, -0.0517352819442749, -0.20435810089111328, -0.05848453566431999, -0.2675396203994751, 0.12125511467456818, -0.09284655749797821, -0.378273069858551, -0.043264057487249374, 0.15339379012584686, 0.18866705894470215, -0.10238196700811386, 0.19348908960819244, -0.20576775074005127, 0.12228455394506454, 0.03275223821401596, -0.07289735972881317, 0.2181711494922638, -0.2738109230995178, 0.11131192743778229, -0.06723937392234802, -0.023773446679115295, 0.32178109884262085, 0.14993280172348022, 0.6510179042816162, -0.35149502754211426, -0.005461760330945253, -0.26742199063301086, 0.1102578341960907, 0.009168712422251701, 0.14395995438098907, -0.629501461982727, -0.025503840297460556, 0.05435952544212341, -0.08338472247123718, 0.013343039900064468, -0.33831554651260376, -0.03636641800403595, 0.28414762020111084, -0.14115683734416962, 0.050010085105895996, -0.10629663616418839, 0.21016442775726318, 0.12682922184467316, -0.15633068978786469, 0.4182300865650177, 0.01713651418685913, -0.10469233989715576, -0.04810367897152901, 0.07154344022274017, 0.5066619515419006, 0.5816255211830139, 0.13121731579303741, 0.2830179035663605, 0.18137739598751068, 0.03374311327934265, 0.06061071157455444, 0.19215314090251923, 0.41367632150650024, 0.293033629655838, 0.1462850719690323, 0.029231349006295204, -0.11405078321695328, 0.07913728803396225, 0.04990018159151077, 0.05707667022943497, -0.3188942074775696, 0.28128963708877563, -0.031186990439891815, -0.33619216084480286, -0.16785837709903717, 0.3929535746574402, -0.4424992799758911, 0.0111438799649477, 0.2605811357498169, 0.22482047975063324, 0.35377341508865356, -0.2567598223686218, 0.024390459060668945, -0.16960184276103973, 0.4160141348838806, 0.48843175172805786, -0.07816901057958603, -0.1432202011346817, -0.29344621300697327, -0.5263962745666504, 0.161069855093956, -0.2162851095199585, -0.23151744902133942, -0.3568783104419708, 0.18111146986484528, 0.0572611466050148, -0.09626929461956024, 0.058155521750450134, 0.1449396312236786, -0.23265564441680908, -0.004405949264764786, -0.4434361457824707, 0.014719204977154732, -0.15379804372787476, -0.01426560990512371, -0.03849347308278084, -0.16828307509422302, 0.029524344950914383, 0.09202411770820618, 0.01876778155565262, -0.006673883646726608, 0.22007060050964355, 0.13326221704483032, 0.3443264663219452, 0.47306200861930847, -0.0944240391254425, 0.7783318758010864, 0.09284909814596176, 0.004617283120751381, -0.006965216249227524, -0.06584280729293823, -0.16452085971832275, 0.025168802589178085, 0.13609884679317474, 0.4669879674911499, -0.08531695604324341, 0.373171865940094, -0.22988471388816833, 0.035811297595500946, -0.03140726685523987, -0.5221916437149048, 0.07673154771327972, 0.009969530627131462, -0.06821635365486145, 0.2494257092475891, 0.4241001009941101, 0.13799211382865906, 0.09841863811016083, -0.10654047131538391, -0.42790061235427856, -0.31110334396362305, 0.4142977297306061, -0.5499934554100037, -0.33335044980049133, 0.1943293958902359, 0.22382166981697083, -0.05248146504163742, 0.022692697122693062, -0.28314071893692017, -0.07024089246988297, 0.15611441433429718, -0.2359623908996582, -0.01929878629744053, 0.3056485950946808, -0.4318901300430298, 0.07046446204185486, -0.05291164666414261, 0.3128911256790161, 0.19471439719200134, -0.38018739223480225, -0.040246278047561646, -0.16324998438358307 ]
https://github.com/huggingface/datasets/issues/181
Cannot upload my own dataset
We haven't tested the dataset upload feature yet cc @julien-c This is on our short/mid-term roadmap though
I look into `nlp-cli` and `user.py` to learn how to upload my own data. It is supposed to work like this - Register to get username, password at huggingface.co - `nlp-cli login` and type username, passworld - I have a single file to upload at `./ttc/ttc_freq_extra.csv` - `nlp-cli upload ttc/ttc_freq_extra.csv` But I got this error. ``` 2020-05-21 16:33:52.722464: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1 About to upload file /content/ttc/ttc_freq_extra.csv to S3 under filename ttc/ttc_freq_extra.csv and namespace korakot Proceed? [Y/n] y Uploading... This might take a while if files are large Traceback (most recent call last): File "/usr/local/bin/nlp-cli", line 33, in <module> service.run() File "/usr/local/lib/python3.6/dist-packages/nlp/commands/user.py", line 234, in run token=token, filename=filename, filepath=filepath, organization=self.args.organization File "/usr/local/lib/python3.6/dist-packages/nlp/hf_api.py", line 141, in presign_and_upload urls = self.presign(token, filename=filename, organization=organization) File "/usr/local/lib/python3.6/dist-packages/nlp/hf_api.py", line 132, in presign return PresignedUrl(**d) TypeError: __init__() got an unexpected keyword argument 'cdn' ```
17
Cannot upload my own dataset I look into `nlp-cli` and `user.py` to learn how to upload my own data. It is supposed to work like this - Register to get username, password at huggingface.co - `nlp-cli login` and type username, passworld - I have a single file to upload at `./ttc/ttc_freq_extra.csv` - `nlp-cli upload ttc/ttc_freq_extra.csv` But I got this error. ``` 2020-05-21 16:33:52.722464: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1 About to upload file /content/ttc/ttc_freq_extra.csv to S3 under filename ttc/ttc_freq_extra.csv and namespace korakot Proceed? [Y/n] y Uploading... This might take a while if files are large Traceback (most recent call last): File "/usr/local/bin/nlp-cli", line 33, in <module> service.run() File "/usr/local/lib/python3.6/dist-packages/nlp/commands/user.py", line 234, in run token=token, filename=filename, filepath=filepath, organization=self.args.organization File "/usr/local/lib/python3.6/dist-packages/nlp/hf_api.py", line 141, in presign_and_upload urls = self.presign(token, filename=filename, organization=organization) File "/usr/local/lib/python3.6/dist-packages/nlp/hf_api.py", line 132, in presign return PresignedUrl(**d) TypeError: __init__() got an unexpected keyword argument 'cdn' ``` We haven't tested the dataset upload feature yet cc @julien-c This is on our short/mid-term roadmap though
[ 0.010165523737668991, -0.014697737991809845, 0.06399784982204437, -0.04725154489278793, 0.13680851459503174, -0.14406204223632812, 0.37034812569618225, -0.035264115780591965, -0.17155218124389648, 0.15387865900993347, -0.10310681909322739, 0.2589792311191559, -0.23088862001895905, 0.31687304377555847, 0.3755461573600769, 0.09489183872938156, 0.01937171071767807, 0.2717735767364502, -0.02011672407388687, -0.09850373864173889, -0.2267879992723465, 0.07013292610645294, -0.0022226423025131226, -0.09574981033802032, -0.14261673390865326, -0.21162663400173187, -0.09032731503248215, 0.2581225633621216, -0.23455490171909332, -0.3412296175956726, 0.4868587255477905, 0.2359907627105713, 0.3435916304588318, 0.58049476146698, -0.00011795770114986226, -0.05199635028839111, 0.17183130979537964, -0.21570512652397156, -0.6393773555755615, -0.35548776388168335, -0.0061310455203056335, -0.13421748578548431, 0.060678139328956604, -0.25174033641815186, 0.1928752362728119, 0.02746301144361496, 0.03491739183664322, 0.030880115926265717, 0.48228830099105835, 0.40762197971343994, 0.14891529083251953, 0.14572221040725708, -0.17812249064445496, -0.15002453327178955, -0.002832837402820587, 0.1824352741241455, -0.05897219479084015, 0.25395649671554565, 0.3586966097354889, -0.4081481099128723, 0.26444220542907715, -0.19958674907684326, 0.03678112477064133, -0.044240597635507584, 0.4874856770038605, -0.009249932132661343, -0.07491946965456009, -0.4059661328792572, -0.004840005189180374, 0.1771378368139267, 0.37700045108795166, -0.06002717465162277, -0.39450523257255554, -0.1456923484802246, 0.1550535261631012, -0.4790177047252655, 0.2537233531475067, 0.27886804938316345, -0.42470622062683105, -0.022530224174261093, -0.2711580693721771, 0.31374526023864746, -0.4093552529811859, 0.42216646671295166, 0.1056479811668396, 0.35269519686698914, -0.03370940685272217, 0.06668217480182648, 0.24374650418758392, -0.15369334816932678, 0.011767853982746601, 0.06547348201274872, 0.02146761864423752, 0.27826279401779175, -0.21666352450847626, -0.19502928853034973, 0.0027945414185523987, -0.24058517813682556, -0.05818118155002594, 0.12915590405464172, 0.40473267436027527, -0.12968379259109497, -0.24420127272605896, 0.1506330370903015, 0.13368776440620422, 0.3241247236728668, 0.0014829635620117188, 0.12236345559358597, 0.12233436852693558, -0.0058463760651648045, 0.27691566944122314, -0.05174224078655243, -0.2742699682712555, -0.050802476704120636, -0.11301091313362122, -0.06884709000587463, 0.2920283079147339, 0.06772546470165253, -0.0055411383509635925, -0.1293463110923767, 0.09735841304063797, 0.016586748883128166, -0.10256083309650421, 0.34392333030700684, -0.08194535225629807, -0.2613026797771454, -0.05380483344197273, 0.23263360559940338, 0.13708724081516266, -0.29001089930534363, 0.05705797299742699, 0.2758280634880066, -0.11549346148967743, -0.15443257987499237, 0.43567341566085815, 0.012412495911121368, 0.19565072655677795, -0.05445283278822899, 0.20219485461711884, -0.06607924401760101, 0.07224199175834656, 0.01198635995388031, -0.1628795862197876, 0.008681342005729675, 0.21959275007247925, 0.3847880959510803, -0.06849819421768188, -0.5333333015441895, -0.143581822514534, 0.026161111891269684, -0.35323694348335266, -0.3473284840583801, -0.45941442251205444, 0.08847431093454361, 0.0037642642855644226, -0.28174889087677, -0.32444527745246887, -0.07150420546531677, 0.08965392410755157, -0.25171107053756714, -0.09521640092134476, -0.046300627291202545, -0.14219024777412415, -0.12248454242944717, 0.12956151366233826, 0.08803901076316833, -0.5273438692092896, 0.18487145006656647, -0.08601424098014832, 0.4892793893814087, 0.27127504348754883, 0.27855050563812256, -0.30868056416511536, 0.24388480186462402, -0.08011291176080704, 0.18975169956684113, 0.5997760891914368, -0.48072537779808044, -0.33468496799468994, 0.04278585687279701, -0.0373166985809803, -0.09002722054719925, 0.037277862429618835, 0.19343483448028564, 0.10801930725574493, -0.09636032581329346, 0.09529518336057663, 0.44792354106903076, 0.045678429305553436, 0.01669182814657688, -0.21615563333034515, -0.16694790124893188, 0.26241108775138855, 0.0407925508916378, -0.15550190210342407, 0.07853081077337265, 0.2734293043613434, 0.08999708294868469, 0.024154599756002426, -0.33245494961738586, 0.15371617674827576, 0.1996026486158371, 0.3573826849460602, -0.17576852440834045, -0.13709232211112976, 0.206030011177063, -0.4696052670478821, 0.21702083945274353, 0.18055671453475952, 0.34908464550971985, -0.12102729082107544, -0.018303655087947845, -0.4437142312526703, -0.10057184100151062, -0.12403029203414917, -0.05866853520274162, 0.04908774048089981, 0.11639918386936188, 0.05498039349913597, -0.17006158828735352, -0.25350984930992126, 0.18731659650802612, -0.2769087553024292, 0.06125299260020256, -0.2197420299053192, 0.04505973309278488, -0.26968657970428467, -0.12417390942573547, 0.25872722268104553, 0.18245351314544678, 0.16576659679412842, 0.006095084361732006, -0.18364861607551575, 0.10668756067752838, -0.4784856140613556, 0.2623985707759857, 0.03369041904807091, 0.12655356526374817, 0.041262075304985046, -0.06761765480041504, -0.18328328430652618, -0.14366261661052704, 0.1708054393529892, -0.14655180275440216, -0.401383638381958, 0.14321786165237427, -0.027937348932027817, 0.004521086812019348, 0.16433085501194, 0.0004224255681037903, 0.2795947194099426, -0.179331436753273, 0.11594391614198685, 0.10681775212287903, 0.3852047622203827, 0.0665106326341629, 0.4020833671092987, -0.04134377837181091, -0.1261363923549652, -0.03237944096326828, 0.21093040704727173, 0.019254349172115326, 0.18925854563713074, 0.07365410774946213, 0.013793036341667175, -0.08014357089996338, 0.2915308177471161, 0.6511794328689575, 0.3804543614387512, 0.1110788881778717, -0.03202163800597191, -0.05627436935901642, -0.10829730331897736, -0.18812254071235657, -0.063018299639225, -0.11955703794956207, 0.07156708836555481, 0.1802176982164383, 0.4236961007118225, 0.2545207738876343, -0.13882195949554443, -0.03602703660726547, 0.1298331916332245, 0.45807716250419617, -0.1908661425113678, 0.23381774127483368, -0.1396617442369461, -0.43804091215133667, 0.24693214893341064, -0.2298307865858078, -0.09044529497623444, -0.1691737174987793, -0.20334814488887787, 0.1343930959701538, 0.1450602412223816, -0.08744166791439056, 0.11892233788967133, 0.33783891797065735, -0.08473879843950272, -0.2890055179595947, -0.2606640160083771, -0.09300480782985687, -0.20018312335014343, 0.05327634885907173, 0.32226458191871643, -0.10707759857177734, 0.4432595372200012, 0.3364594876766205, 0.08638123422861099, -0.05491740256547928, -0.3232797384262085, 0.008571870625019073, -0.060741886496543884, 0.1272270679473877, 0.10323657840490341, 0.3434317708015442, -0.0030986331403255463, -0.5138463377952576, 0.17997004091739655, 0.06420668214559555, -0.27024778723716736, 0.22155067324638367, -0.022428784519433975, -0.31593814492225647, -0.443821519613266, -0.05534710735082626, -0.29095274209976196, -0.33917269110679626, 0.25748711824417114, 0.32961586117744446, 0.19983536005020142, 0.5830566883087158, 0.027132492512464523, 0.1387719213962555, 0.32144850492477417, 0.10150298476219177, 0.04909173771739006, -0.2018515169620514, 0.5142776370048523, -0.2508528232574463, -0.46681079268455505, 0.12726959586143494, -0.13542219996452332, 0.5388173460960388, -0.026184670627117157, -0.3549962639808655, -0.20387764275074005, 0.06519931554794312, 0.2458016276359558, -0.03664536029100418, -0.05192971229553223, 0.28378885984420776, -0.1914527863264084, 0.04438850283622742, -0.07229133695363998, -0.3318910598754883, 0.14527884125709534, 0.6041274666786194, 0.27121058106422424, -0.05854368209838867, 0.4339736998081207, 0.04342508688569069, 0.7070647478103638, 0.13270679116249084, -0.33110684156417847, 0.4485011398792267, -0.06909181922674179, 0.20655785501003265, -0.14012062549591064, -0.37472566962242126, 0.13324402272701263, 0.2354658544063568, -0.033651914447546005, 0.1127985268831253, -0.030974816530942917, -0.08227473497390747, -0.4156801700592041, 0.22088849544525146, -0.2339072823524475, 0.04839317873120308, -0.01679164357483387, 0.11899598687887192, 0.046060144901275635, -0.08111075311899185, -0.22336703538894653, -0.3637561798095703, -0.5096310973167419, -0.12451854348182678, 0.24588751792907715, -0.24647197127342224, 0.21042269468307495, -0.6700917482376099, -0.05532277375459671, -0.6859099864959717, 0.28730273246765137, -0.14990417659282684, 0.3086009919643402, -0.21619346737861633, 0.19936591386795044, 0.09411236643791199, -0.082315593957901, 0.1505371332168579, -0.4754497706890106, -0.1588873267173767, -0.0853985846042633, 0.28484755754470825, -0.4748278856277466, -0.0264241024851799, -0.051320839673280716, 0.07265142351388931, 0.4124584197998047, 0.1920996606349945, 0.03950924426317215, 0.07596676796674728, -0.1413954645395279, -0.21616898477077484, -0.17694394290447235, -0.22804707288742065, -0.045769866555929184, -0.6439382433891296, -0.3358869254589081, -0.46366775035858154, 0.05637091398239136, 0.13767030835151672, 0.16398824751377106, -0.06866565346717834, 0.15550418198108673, 0.09471620619297028, 0.5056197047233582, 0.04792408272624016, -0.06624221801757812, 0.6384862065315247, -0.09328269958496094, -0.4260937571525574, 0.485015869140625, 0.0034876111894845963, 0.38921916484832764, 0.02805481292307377, -0.14984722435474396, -0.15592464804649353, -0.29983261227607727, 0.47131335735321045, 0.1373470425605774, 0.08705980330705643, 0.18480360507965088, -0.09927710890769958, 0.02812296897172928, -0.19187206029891968, 0.5012040138244629, 0.33492201566696167, -0.08053159713745117, -0.4222894608974457, -0.18815991282463074, 0.4366791844367981, -0.1674683541059494, -0.002292945981025696, 0.24263450503349304, -0.1802777200937271, -0.2683977782726288, 0.1748560667037964, 0.14205583930015564, 1.045008659362793, -0.0981927365064621, 0.35771849751472473, 0.11459869146347046, -0.030823681503534317, 0.7806390523910522, -0.18001143634319305, 0.04540569335222244, -0.2553684115409851, 0.09903999418020248, -0.11995592713356018, -0.04338908568024635, -0.04568905383348465, 0.13680213689804077, -0.25287243723869324, 0.08574246615171432, -0.029485728591680527, -0.14704455435276031, 0.005726239178329706, 0.5664037466049194, 0.06178764998912811, -0.3942604660987854, -0.2046336829662323, 0.10850347578525543, -0.3170490264892578, 0.29799196124076843, -0.16285014152526855, -0.20761872828006744, -0.282657653093338, -0.1551136076450348, -0.2209421992301941, 0.3035310208797455, -0.23986928164958954, 0.0794946476817131, 0.058917462825775146, -0.3198944330215454, 0.33261793851852417, 0.4678550064563751, 0.5250080227851868, -0.08237016201019287, -0.10083213448524475, 0.03757571801543236, -0.16709357500076294, -0.027053063735365868, 0.009090185165405273, 0.05029216408729553, 0.22911937534809113, -0.2906983494758606, 0.03021257370710373, 0.281452476978302, -0.0009339293465018272, -0.30204176902770996, -0.17566649615764618, 0.13425397872924805, 0.07122693955898285, -0.1674865037202835, -0.3050800859928131, 0.10473265498876572, -0.13321660459041595, -0.03923347219824791, 0.04014617204666138, 0.04761713370680809, 0.06888968497514725, -0.028613902628421783, 0.0777554139494896, -0.18398219347000122, 0.05718288570642471, 0.11787634342908859, -0.11957693845033646, -0.07269224524497986, 0.7520653009414673, -0.053993675857782364, 0.09325040876865387, -0.10994239151477814, -0.18213310837745667, -0.2736779749393463, -0.13815359771251678, -0.0994904637336731, 0.27688896656036377, -0.020948104560375214, 0.09042182564735413, 0.6383233070373535, 0.32130277156829834, 0.09763455390930176, 0.13834568858146667, -0.1498943567276001, -0.35234400629997253, -0.33584851026535034, -0.0205378420650959, 0.18586936593055725, -0.1201791912317276, 0.14587879180908203, 0.21818029880523682, 0.3104344308376312, -0.2514614462852478, -0.19500406086444855, -0.19985678791999817, 0.15835542976856232, 0.7369633913040161, -0.01766388863325119, -0.012900781817734241, -0.06114629656076431, 0.006988227367401123, -0.03010956197977066, -0.17383764684200287, -0.1364712119102478, -0.3693225085735321, 0.1645641326904297, 0.4616592526435852, -0.19141323864459991, -0.05622974410653114, -0.2185690850019455, -0.12847867608070374, -0.13379085063934326, -0.26933974027633667, 0.06040279567241669, -0.05756336450576782, 0.24150098860263824, -0.22885160148143768, 0.32027682662010193, -0.08824978768825531, 0.17375978827476501, 0.03331262245774269, 0.16574060916900635, 0.07580530643463135, -0.019645407795906067, 0.19066911935806274, 0.07480859756469727, -0.33523067831993103, -0.026199638843536377, -0.17743368446826935, -0.0726977214217186, 0.017779875546693802, -0.47883349657058716, 0.1080641895532608, -0.13837313652038574, 0.050961725413799286, 0.02226041629910469, -0.49828484654426575, 0.1378389298915863, 0.3878338634967804, 0.11959446966648102, -0.0020744726061820984, 0.11067011207342148, 0.20888076722621918, 0.20254869759082794, 0.013453137129545212, 0.2371898889541626, 0.02187822386622429, -0.24977199733257294, -0.07446964085102081, -0.19819727540016174, -0.07921154052019119, -0.28159672021865845, 0.09921534359455109, -0.11246804893016815, -0.38670969009399414, -0.04920389875769615, 0.16625817120075226, 0.19723834097385406, -0.09329349547624588, 0.21389184892177582, -0.20517230033874512, 0.11387483030557632, 0.03207763284444809, -0.06195486709475517, 0.2281326949596405, -0.2797227203845978, 0.13537046313285828, -0.09851928055286407, 0.005144432187080383, 0.3340875506401062, 0.14589494466781616, 0.63217693567276, -0.31623148918151855, -0.01611189730465412, -0.24867360293865204, 0.07460766285657883, 0.01759650744497776, 0.16787570714950562, -0.6061634421348572, -0.029133301228284836, 0.05296020209789276, -0.08525797724723816, 0.010776501148939133, -0.36782515048980713, -0.04822497069835663, 0.27594074606895447, -0.15788482129573822, 0.05883355438709259, -0.09755866974592209, 0.1953689157962799, 0.13777558505535126, -0.12739385664463043, 0.40262681245803833, -0.008652999997138977, -0.09197311103343964, -0.05486799404025078, 0.11255806684494019, 0.4699503481388092, 0.579823911190033, 0.14910924434661865, 0.3191972076892853, 0.2029532939195633, 0.03397436439990997, 0.06528497487306595, 0.1831146776676178, 0.3685244917869568, 0.2624928653240204, 0.13088946044445038, 0.04075732082128525, -0.1079787015914917, 0.05925622954964638, 0.02762959897518158, 0.07058054953813553, -0.30816805362701416, 0.2848694622516632, -0.01995832473039627, -0.323885053396225, -0.17790131270885468, 0.3976587951183319, -0.42802706360816956, 0.008005828596651554, 0.30593687295913696, 0.21202592551708221, 0.3255813717842102, -0.27194422483444214, 0.03361435607075691, -0.1892014890909195, 0.45011407136917114, 0.4820171594619751, -0.09710108488798141, -0.1016002893447876, -0.2517858147621155, -0.5138528347015381, 0.15989580750465393, -0.19470717012882233, -0.26225292682647705, -0.34179404377937317, 0.18984563648700714, 0.03611813485622406, -0.0889955535531044, 0.10701432079076767, 0.1390070915222168, -0.2102021425962448, -0.02003560960292816, -0.46240174770355225, 0.013603368774056435, -0.15904954075813293, 0.009875940158963203, -0.020205814391374588, -0.17562395334243774, 0.04398059472441673, 0.06408069282770157, 0.01580030471086502, -0.0002468302845954895, 0.18995201587677002, 0.11839210987091064, 0.3266211152076721, 0.49686017632484436, -0.10089068114757538, 0.7589024305343628, 0.10915213078260422, -0.00811745971441269, -0.01225457713007927, -0.060708705335855484, -0.21167851984500885, 0.07008436322212219, 0.12792479991912842, 0.4384543001651764, -0.08241122961044312, 0.36036089062690735, -0.22094257175922394, 0.07509880512952805, -0.03312675654888153, -0.5146051049232483, 0.08451055735349655, 0.022847073152661324, -0.04442804306745529, 0.27646470069885254, 0.4149300456047058, 0.09248566627502441, 0.09413108229637146, -0.09509812295436859, -0.42628413438796997, -0.27461355924606323, 0.39774659276008606, -0.5510283708572388, -0.29202499985694885, 0.15320511162281036, 0.21421495079994202, -0.032668307423591614, -0.009405668824911118, -0.31667840480804443, -0.0671035498380661, 0.17874495685100555, -0.2281675636768341, -0.011713756248354912, 0.2962084114551544, -0.4524931311607361, 0.09072338044643402, -0.04688045755028725, 0.33023402094841003, 0.1773253083229065, -0.37144559621810913, -0.016200264915823936, -0.14145894348621368 ]
https://github.com/huggingface/datasets/issues/181
Cannot upload my own dataset
Even if I fix the `TypeError: __init__() got an unexpected keyword argument 'cdn'` error, it looks like it still uploads to `https://s3.amazonaws.com/models.huggingface.co/bert/<namespace>/<dataset_name>` instead of `https://s3.amazonaws.com/datasets.huggingface.co/nlp/<namespace>/<dataset_name>`
I look into `nlp-cli` and `user.py` to learn how to upload my own data. It is supposed to work like this - Register to get username, password at huggingface.co - `nlp-cli login` and type username, passworld - I have a single file to upload at `./ttc/ttc_freq_extra.csv` - `nlp-cli upload ttc/ttc_freq_extra.csv` But I got this error. ``` 2020-05-21 16:33:52.722464: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1 About to upload file /content/ttc/ttc_freq_extra.csv to S3 under filename ttc/ttc_freq_extra.csv and namespace korakot Proceed? [Y/n] y Uploading... This might take a while if files are large Traceback (most recent call last): File "/usr/local/bin/nlp-cli", line 33, in <module> service.run() File "/usr/local/lib/python3.6/dist-packages/nlp/commands/user.py", line 234, in run token=token, filename=filename, filepath=filepath, organization=self.args.organization File "/usr/local/lib/python3.6/dist-packages/nlp/hf_api.py", line 141, in presign_and_upload urls = self.presign(token, filename=filename, organization=organization) File "/usr/local/lib/python3.6/dist-packages/nlp/hf_api.py", line 132, in presign return PresignedUrl(**d) TypeError: __init__() got an unexpected keyword argument 'cdn' ```
25
Cannot upload my own dataset I look into `nlp-cli` and `user.py` to learn how to upload my own data. It is supposed to work like this - Register to get username, password at huggingface.co - `nlp-cli login` and type username, passworld - I have a single file to upload at `./ttc/ttc_freq_extra.csv` - `nlp-cli upload ttc/ttc_freq_extra.csv` But I got this error. ``` 2020-05-21 16:33:52.722464: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1 About to upload file /content/ttc/ttc_freq_extra.csv to S3 under filename ttc/ttc_freq_extra.csv and namespace korakot Proceed? [Y/n] y Uploading... This might take a while if files are large Traceback (most recent call last): File "/usr/local/bin/nlp-cli", line 33, in <module> service.run() File "/usr/local/lib/python3.6/dist-packages/nlp/commands/user.py", line 234, in run token=token, filename=filename, filepath=filepath, organization=self.args.organization File "/usr/local/lib/python3.6/dist-packages/nlp/hf_api.py", line 141, in presign_and_upload urls = self.presign(token, filename=filename, organization=organization) File "/usr/local/lib/python3.6/dist-packages/nlp/hf_api.py", line 132, in presign return PresignedUrl(**d) TypeError: __init__() got an unexpected keyword argument 'cdn' ``` Even if I fix the `TypeError: __init__() got an unexpected keyword argument 'cdn'` error, it looks like it still uploads to `https://s3.amazonaws.com/models.huggingface.co/bert/<namespace>/<dataset_name>` instead of `https://s3.amazonaws.com/datasets.huggingface.co/nlp/<namespace>/<dataset_name>`
[ 0.07664893567562103, -0.05188994109630585, 0.056643445044755936, -0.01338106393814087, 0.16217269003391266, -0.18692153692245483, 0.3156287968158722, -0.02782173827290535, -0.19460277259349823, 0.195918008685112, -0.12710586190223694, 0.23585738241672516, -0.220730260014534, 0.2926352024078369, 0.3533962368965149, 0.07266557961702347, 0.005575224757194519, 0.29510414600372314, 0.009005136787891388, -0.0938577651977539, -0.2198612242937088, 0.09480837732553482, 0.0193503275513649, -0.07987190783023834, -0.13481715321540833, -0.18814045190811157, -0.0791993960738182, 0.27564141154289246, -0.1972339153289795, -0.3347655236721039, 0.4486144185066223, 0.22274243831634521, 0.332523912191391, 0.6002945899963379, -0.00011811569856945425, -0.05863681063055992, 0.16570177674293518, -0.22807446122169495, -0.6185941696166992, -0.3737722635269165, 0.0730140432715416, -0.1427435278892517, 0.09190221130847931, -0.2383842170238495, 0.18933600187301636, 0.03741731867194176, 0.016469411551952362, 0.06538465619087219, 0.5281577110290527, 0.37782996892929077, 0.1473526507616043, 0.10313691943883896, -0.17057688534259796, -0.09499410539865494, 0.0273432619869709, 0.1893172562122345, -0.056042686104774475, 0.2944778501987457, 0.33864375948905945, -0.3992362320423126, 0.29277941584587097, -0.19877922534942627, -0.00344032421708107, -0.06038888916373253, 0.482424795627594, -0.02794652059674263, 0.007828950881958008, -0.410437673330307, -0.029902473092079163, 0.17739337682724, 0.3018231987953186, -0.030178509652614594, -0.35917603969573975, -0.11388015747070312, 0.1687857061624527, -0.48414015769958496, 0.25605466961860657, 0.2725905179977417, -0.41021400690078735, -0.038525987416505814, -0.257095068693161, 0.32797735929489136, -0.4180809557437897, 0.4426953196525574, 0.11960466206073761, 0.3393738269805908, -0.022680699825286865, 0.07667828351259232, 0.25502869486808777, -0.12778876721858978, 0.00788124743849039, 0.09094294160604477, 0.021747751161456108, 0.2719114422798157, -0.19632484018802643, -0.18465952575206757, -0.020688705146312714, -0.28975799679756165, -0.10948608070611954, 0.09983257204294205, 0.4507456421852112, -0.1309797167778015, -0.24737343192100525, 0.14947167038917542, 0.09313535690307617, 0.3291778564453125, -0.007071703672409058, 0.09553534537553787, 0.1282755434513092, 0.021281268447637558, 0.2753562927246094, -0.06610699743032455, -0.287169486284256, -0.0721222460269928, -0.1261584758758545, -0.04732603579759598, 0.2747190594673157, 0.08483213186264038, 0.011768331751227379, -0.0948849469423294, 0.07253120094537735, 0.060446277260780334, -0.08017156273126602, 0.3419945538043976, -0.11174185574054718, -0.24170079827308655, 0.005971275269985199, 0.23593345284461975, 0.13921090960502625, -0.26889851689338684, 0.07524177432060242, 0.3023248016834259, -0.11196810007095337, -0.1445470154285431, 0.4047570526599884, 0.008399134501814842, 0.19896040856838226, -0.04680701717734337, 0.1874879151582718, -0.13644418120384216, 0.06247728317975998, 0.00664486363530159, -0.17632436752319336, 0.033435240387916565, 0.22954988479614258, 0.3857800364494324, -0.0658193826675415, -0.5420823693275452, -0.13113975524902344, 0.03096700832247734, -0.37687376141548157, -0.3573206961154938, -0.4452538788318634, 0.08835013210773468, 0.04142162203788757, -0.23677781224250793, -0.30713629722595215, -0.11866746842861176, 0.0979110449552536, -0.2934204638004303, -0.09514940530061722, -0.04661934822797775, -0.12096839398145676, -0.1328953057527542, 0.11520431190729141, 0.04702833294868469, -0.4755067825317383, 0.21962383389472961, -0.08374675363302231, 0.5124325752258301, 0.32622939348220825, 0.2987668812274933, -0.31225255131721497, 0.2711574137210846, -0.06317277997732162, 0.17326460778713226, 0.5793396234512329, -0.4712456464767456, -0.27476510405540466, 0.027949396520853043, -0.03406233340501785, -0.10284217447042465, 0.054656289517879486, 0.1710968166589737, 0.08083752542734146, -0.09934073686599731, 0.07489436864852905, 0.4404074549674988, 0.07227006554603577, 0.046246238052845, -0.23941242694854736, -0.1674552857875824, 0.25839167833328247, 0.03397170454263687, -0.16789847612380981, 0.0763513371348381, 0.24125415086746216, 0.08969439566135406, 0.02380909025669098, -0.33165571093559265, 0.13372588157653809, 0.20273816585540771, 0.3554895222187042, -0.15696850419044495, -0.14370866119861603, 0.23550492525100708, -0.40783777832984924, 0.18856659531593323, 0.12364530563354492, 0.3522780239582062, -0.10162012279033661, -0.010192355141043663, -0.4185565114021301, -0.09694575518369675, -0.09851112961769104, -0.023751959204673767, 0.06040218472480774, 0.10851208120584488, 0.05050366744399071, -0.18064621090888977, -0.22650860249996185, 0.14043685793876648, -0.3063790202140808, 0.05729077383875847, -0.21424967050552368, 0.04307202994823456, -0.28264302015304565, -0.11205221712589264, 0.25318658351898193, 0.17547641694545746, 0.19479534029960632, -0.015050483867526054, -0.1971832811832428, 0.0930897518992424, -0.4591655433177948, 0.3227211833000183, -0.0023459233343601227, 0.13259758055210114, 0.030504116788506508, -0.022737551480531693, -0.2367982268333435, -0.09179380536079407, 0.17833487689495087, -0.16936540603637695, -0.3360212743282318, 0.13825194537639618, -0.02999259904026985, 0.016736119985580444, 0.158732071518898, 0.0029888860881328583, 0.28924915194511414, -0.18945986032485962, 0.11126939207315445, 0.13147686421871185, 0.4015834629535675, 0.09714126586914062, 0.38154539465904236, -0.04512892663478851, -0.13328194618225098, -0.08485906571149826, 0.18308308720588684, 0.02318893000483513, 0.16448456048965454, 0.07439364492893219, 0.02096381038427353, -0.09218332916498184, 0.3019861876964569, 0.5998591780662537, 0.3605664074420929, 0.07620106637477875, -0.05645548179745674, -0.06078965961933136, -0.11490599811077118, -0.22583210468292236, -0.03621288388967514, -0.08589166402816772, 0.06461259722709656, 0.21991613507270813, 0.439574658870697, 0.26594170928001404, -0.13194262981414795, -0.011397995054721832, 0.10586420446634293, 0.4606076776981354, -0.19288887083530426, 0.24376662075519562, -0.12725591659545898, -0.4152644872665405, 0.24683161079883575, -0.27434200048446655, -0.08276332914829254, -0.17546382546424866, -0.19944064319133759, 0.1508498340845108, 0.09969247877597809, -0.11422177404165268, 0.1735122799873352, 0.32977885007858276, -0.10300702601671219, -0.2672968804836273, -0.2869337797164917, -0.08145010471343994, -0.2095007598400116, 0.043896984308958054, 0.33913373947143555, -0.10610658675432205, 0.42552483081817627, 0.3308122754096985, 0.05794164538383484, -0.0315249040722847, -0.31745123863220215, -0.0129784494638443, -0.03839201480150223, 0.09033817052841187, 0.08890724927186966, 0.3747071623802185, 0.011475794017314911, -0.5478417277336121, 0.19541124999523163, 0.05433432012796402, -0.25022074580192566, 0.24789685010910034, -0.0315571054816246, -0.31541749835014343, -0.4758594334125519, 0.0024260804057121277, -0.26761874556541443, -0.3631877601146698, 0.24924351274967194, 0.3301582336425781, 0.23138852417469025, 0.5911983251571655, 0.019704770296812057, 0.13168834149837494, 0.31971779465675354, 0.15069125592708588, 0.04551456868648529, -0.18698307871818542, 0.4966631233692169, -0.2360725849866867, -0.426548033952713, 0.1076655238866806, -0.14385592937469482, 0.5702787041664124, -0.04440761357545853, -0.3675764203071594, -0.18725845217704773, 0.08487454801797867, 0.17660613358020782, -0.07252087444067001, -0.07167596369981766, 0.29713690280914307, -0.19216684997081757, 0.05240871012210846, -0.05853397026658058, -0.2975662350654602, 0.13110190629959106, 0.6311603784561157, 0.26334017515182495, -0.05882164090871811, 0.4399242699146271, 0.01798056811094284, 0.6985469460487366, 0.10503266751766205, -0.3126603364944458, 0.4494105279445648, -0.03828588128089905, 0.18113142251968384, -0.14026769995689392, -0.347492516040802, 0.08872758597135544, 0.2385055124759674, -0.042702481150627136, 0.14452442526817322, -0.043684136122465134, -0.07860276848077774, -0.441825270652771, 0.24700471758842468, -0.26358741521835327, 0.0589442141354084, 0.009581274352967739, 0.1064014732837677, 0.037593644112348557, -0.10671694576740265, -0.24084380269050598, -0.34414201974868774, -0.5165200233459473, -0.12177088856697083, 0.2631736099720001, -0.240348219871521, 0.18618756532669067, -0.6647049188613892, -0.12222971022129059, -0.659378170967102, 0.30211180448532104, -0.15353961288928986, 0.29571041464805603, -0.20639890432357788, 0.18639680743217468, 0.127656027674675, -0.07750508189201355, 0.10924967378377914, -0.4198974072933197, -0.1877136528491974, -0.09577657282352448, 0.2693745791912079, -0.47796308994293213, -0.055133700370788574, -0.03794214874505997, 0.08147496730089188, 0.45575159788131714, 0.2085586041212082, 0.012650907039642334, 0.09506615996360779, -0.1674310564994812, -0.22884587943553925, -0.17120330035686493, -0.24247947335243225, -0.04781544953584671, -0.6381924152374268, -0.34167641401290894, -0.4831197261810303, 0.048536092042922974, 0.16847585141658783, 0.15164054930210114, -0.07459679245948792, 0.1877347230911255, 0.09917879849672318, 0.4985150694847107, 0.02120504528284073, -0.057446643710136414, 0.6246472597122192, -0.11789751052856445, -0.4450334310531616, 0.4890879988670349, -0.0353231355547905, 0.35840046405792236, 0.06729534268379211, -0.14457599818706512, -0.17467573285102844, -0.28128740191459656, 0.4476061165332794, 0.18080078065395355, 0.10797951370477676, 0.21889755129814148, -0.11514227092266083, 0.04811472445726395, -0.1877973973751068, 0.4967012107372284, 0.33411210775375366, -0.09505506604909897, -0.3954765498638153, -0.1563892811536789, 0.4564099609851837, -0.19788692891597748, -0.0036151185631752014, 0.25355809926986694, -0.2283555418252945, -0.2812907099723816, 0.20379844307899475, 0.16435497999191284, 1.1384705305099487, -0.097545325756073, 0.3732185959815979, 0.12780344486236572, -0.03744017332792282, 0.7614158391952515, -0.18077398836612701, 0.05255882814526558, -0.25659966468811035, 0.14564953744411469, -0.10637731105089188, -0.0524124838411808, -0.08326483517885208, 0.08726121485233307, -0.23800861835479736, 0.07538510859012604, -0.061703965067863464, -0.13530108332633972, -0.005105556920170784, 0.5711599588394165, 0.10040026903152466, -0.3970247805118561, -0.21205231547355652, 0.09203220158815384, -0.3342670798301697, 0.3082543909549713, -0.16845133900642395, -0.23394037783145905, -0.30767378211021423, -0.14399327337741852, -0.18095386028289795, 0.28737321496009827, -0.2535717785358429, 0.07502074539661407, 0.06265735626220703, -0.3308963179588318, 0.26308128237724304, 0.4393516778945923, 0.5037193894386292, -0.07716476917266846, -0.09231995046138763, 0.025603417307138443, -0.13528954982757568, -0.04990825429558754, -0.02689872495830059, 0.07493098080158234, 0.19116364419460297, -0.31154900789260864, 0.07954221218824387, 0.2915782928466797, -0.025029074400663376, -0.302293062210083, -0.18620489537715912, 0.15034246444702148, 0.09515608847141266, -0.14537638425827026, -0.33030441403388977, 0.09154941141605377, -0.18308036029338837, -0.031859997659921646, 0.040296852588653564, 0.059760794043540955, 0.043603524565696716, -0.06491027027368546, 0.0955713614821434, -0.18126726150512695, 0.07073979824781418, 0.0936633050441742, -0.09329115599393845, -0.054715052247047424, 0.7555972337722778, -0.07153228670358658, 0.09503087401390076, -0.0853842943906784, -0.21003079414367676, -0.32625412940979004, -0.15901345014572144, -0.09987226873636246, 0.2788121998310089, -0.05178214609622955, 0.08019965887069702, 0.6546944379806519, 0.33613288402557373, 0.12761634588241577, 0.1409849226474762, -0.1391991674900055, -0.3442875146865845, -0.33363229036331177, -0.02599862590432167, 0.17864978313446045, -0.10026058554649353, 0.20802219212055206, 0.19337515532970428, 0.3369974195957184, -0.2439342588186264, -0.18857690691947937, -0.19681663811206818, 0.1518179476261139, 0.7084040641784668, -0.034368135035037994, -0.06733912974596024, -0.02548244222998619, -0.002678288146853447, -0.02516869828104973, -0.17077304422855377, -0.12747368216514587, -0.37970855832099915, 0.16888123750686646, 0.483215868473053, -0.18876121938228607, -0.0668652206659317, -0.21625450253486633, -0.10766895115375519, -0.13714739680290222, -0.326482892036438, 0.03570933640003204, -0.045685477554798126, 0.2057020664215088, -0.22629867494106293, 0.34786251187324524, -0.09009189903736115, 0.20739403367042542, 0.0170757994055748, 0.18031902611255646, 0.058089856058359146, -0.04084464907646179, 0.17120885848999023, 0.062297239899635315, -0.35474342107772827, -0.03789805620908737, -0.18474261462688446, -0.100406713783741, 0.025785520672798157, -0.4382699131965637, 0.10995201766490936, -0.15907271206378937, 0.043411802500486374, 0.03248428925871849, -0.5039018988609314, 0.15124960243701935, 0.39393365383148193, 0.1096910685300827, 0.04253893345594406, 0.12714256346225739, 0.16199155151844025, 0.20844082534313202, -0.017391521483659744, 0.22560888528823853, 0.03903861716389656, -0.26586413383483887, -0.05207982659339905, -0.16882628202438354, -0.12271920591592789, -0.27229994535446167, 0.07296307384967804, -0.14059016108512878, -0.4185335040092468, -0.05919460579752922, 0.14822827279567719, 0.16802486777305603, -0.10553301125764847, 0.15312950313091278, -0.20561036467552185, 0.08979453146457672, 0.018970150500535965, -0.08495791256427765, 0.2312178611755371, -0.26628467440605164, 0.07315859198570251, -0.08859814703464508, -0.03275085985660553, 0.33546772599220276, 0.1424110233783722, 0.6379610300064087, -0.3282475769519806, -0.025023160502314568, -0.2442360818386078, 0.10706284642219543, 0.005122518166899681, 0.1822274625301361, -0.6148514747619629, -0.019356809556484222, 0.042651526629924774, -0.1046624481678009, 0.03035564161837101, -0.335269570350647, -0.062104761600494385, 0.3056536912918091, -0.1784631460905075, 0.0963636189699173, -0.14240068197250366, 0.2184889018535614, 0.16331425309181213, -0.16215969622135162, 0.40879106521606445, 0.03424430638551712, -0.10550642013549805, -0.08757428824901581, 0.08006306737661362, 0.49889037013053894, 0.5946882963180542, 0.11234039068222046, 0.3067474067211151, 0.21389885246753693, 0.037581562995910645, 0.07898607105016708, 0.20481723546981812, 0.4359583258628845, 0.28090977668762207, 0.11451362073421478, 0.040794551372528076, -0.12631715834140778, 0.07522380352020264, 0.03114461898803711, 0.10622459650039673, -0.2927732467651367, 0.3019164204597473, -0.010780338197946548, -0.36582812666893005, -0.17470870912075043, 0.38556402921676636, -0.4677880108356476, 0.0231259074062109, 0.24933746457099915, 0.21936681866645813, 0.3385198414325714, -0.2580967843532562, 0.030678361654281616, -0.17712615430355072, 0.432108074426651, 0.4894354045391083, -0.08823520690202713, -0.12464889138936996, -0.2862336337566376, -0.4793257713317871, 0.188609316945076, -0.192808598279953, -0.21018394827842712, -0.3527609407901764, 0.18883058428764343, 0.045583613216876984, -0.10253970324993134, 0.07314867526292801, 0.09914874285459518, -0.22263820469379425, -0.029267333447933197, -0.45445001125335693, 0.049344051629304886, -0.1757570207118988, -0.03394363820552826, -0.028623457998037338, -0.162144273519516, 0.07061132043600082, 0.05983791872859001, 0.034420669078826904, 0.02024294249713421, 0.22016945481300354, 0.11978596448898315, 0.37835752964019775, 0.4785480201244354, -0.09864531457424164, 0.7240331172943115, 0.08315056562423706, -0.009449392557144165, 0.026824206113815308, -0.05517952889204025, -0.17598700523376465, 0.03951223939657211, 0.1294776201248169, 0.47135019302368164, -0.07734768837690353, 0.359656423330307, -0.24028079211711884, 0.07416432350873947, -0.05003496631979942, -0.537612795829773, 0.08918221294879913, -0.004217920824885368, -0.04423843324184418, 0.26622527837753296, 0.4257824420928955, 0.11622214317321777, 0.11474104970693588, -0.12512783706188202, -0.4667596220970154, -0.2830769419670105, 0.41881096363067627, -0.5340778231620789, -0.30159854888916016, 0.19961699843406677, 0.22690322995185852, -0.06853363662958145, 0.05043452978134155, -0.3018624782562256, -0.06729315966367722, 0.16313707828521729, -0.22798341512680054, -0.015587283298373222, 0.31345611810684204, -0.4714369475841522, 0.07941451668739319, -0.038018401712179184, 0.2798066735267639, 0.20968502759933472, -0.3522427976131439, -0.04154488444328308, -0.15494894981384277 ]
https://github.com/huggingface/datasets/issues/181
Cannot upload my own dataset
@lhoestq The endpoints in https://github.com/huggingface/nlp/blob/master/src/nlp/hf_api.py should be (depending on the type of file): ``` POST /api/datasets/presign GET /api/datasets/listObjs DELETE /api/datasets/deleteObj POST /api/metrics/presign GET /api/metrics/listObjs DELETE /api/metrics/deleteObj ``` In addition to this, @thomwolf cleaned up the objects with dataclasses but you should revert this and re-align to the hf_api that's in this branch of transformers: https://github.com/huggingface/transformers/pull/4632 (so that potential new JSON attributes in the API output don't break existing versions of any library)
I look into `nlp-cli` and `user.py` to learn how to upload my own data. It is supposed to work like this - Register to get username, password at huggingface.co - `nlp-cli login` and type username, passworld - I have a single file to upload at `./ttc/ttc_freq_extra.csv` - `nlp-cli upload ttc/ttc_freq_extra.csv` But I got this error. ``` 2020-05-21 16:33:52.722464: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1 About to upload file /content/ttc/ttc_freq_extra.csv to S3 under filename ttc/ttc_freq_extra.csv and namespace korakot Proceed? [Y/n] y Uploading... This might take a while if files are large Traceback (most recent call last): File "/usr/local/bin/nlp-cli", line 33, in <module> service.run() File "/usr/local/lib/python3.6/dist-packages/nlp/commands/user.py", line 234, in run token=token, filename=filename, filepath=filepath, organization=self.args.organization File "/usr/local/lib/python3.6/dist-packages/nlp/hf_api.py", line 141, in presign_and_upload urls = self.presign(token, filename=filename, organization=organization) File "/usr/local/lib/python3.6/dist-packages/nlp/hf_api.py", line 132, in presign return PresignedUrl(**d) TypeError: __init__() got an unexpected keyword argument 'cdn' ```
72
Cannot upload my own dataset I look into `nlp-cli` and `user.py` to learn how to upload my own data. It is supposed to work like this - Register to get username, password at huggingface.co - `nlp-cli login` and type username, passworld - I have a single file to upload at `./ttc/ttc_freq_extra.csv` - `nlp-cli upload ttc/ttc_freq_extra.csv` But I got this error. ``` 2020-05-21 16:33:52.722464: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1 About to upload file /content/ttc/ttc_freq_extra.csv to S3 under filename ttc/ttc_freq_extra.csv and namespace korakot Proceed? [Y/n] y Uploading... This might take a while if files are large Traceback (most recent call last): File "/usr/local/bin/nlp-cli", line 33, in <module> service.run() File "/usr/local/lib/python3.6/dist-packages/nlp/commands/user.py", line 234, in run token=token, filename=filename, filepath=filepath, organization=self.args.organization File "/usr/local/lib/python3.6/dist-packages/nlp/hf_api.py", line 141, in presign_and_upload urls = self.presign(token, filename=filename, organization=organization) File "/usr/local/lib/python3.6/dist-packages/nlp/hf_api.py", line 132, in presign return PresignedUrl(**d) TypeError: __init__() got an unexpected keyword argument 'cdn' ``` @lhoestq The endpoints in https://github.com/huggingface/nlp/blob/master/src/nlp/hf_api.py should be (depending on the type of file): ``` POST /api/datasets/presign GET /api/datasets/listObjs DELETE /api/datasets/deleteObj POST /api/metrics/presign GET /api/metrics/listObjs DELETE /api/metrics/deleteObj ``` In addition to this, @thomwolf cleaned up the objects with dataclasses but you should revert this and re-align to the hf_api that's in this branch of transformers: https://github.com/huggingface/transformers/pull/4632 (so that potential new JSON attributes in the API output don't break existing versions of any library)
[ 0.0944480448961258, -0.030214838683605194, 0.04769283905625343, -0.02157309651374817, 0.15865525603294373, -0.19878613948822021, 0.3093149662017822, -0.028614584356546402, -0.20046019554138184, 0.17955031991004944, -0.14158760011196136, 0.2648698091506958, -0.2190392017364502, 0.2876114249229431, 0.36536410450935364, 0.08437532186508179, -0.012492135167121887, 0.2811935544013977, -0.014131687581539154, -0.0984325036406517, -0.21194244921207428, 0.10448184609413147, 0.03202182054519653, -0.04935820400714874, -0.11954141408205032, -0.175345316529274, -0.09639134258031845, 0.27447348833084106, -0.20591950416564941, -0.3228283226490021, 0.44809490442276, 0.2225775420665741, 0.30274713039398193, 0.5770033001899719, -0.00011726110096788034, -0.042894862592220306, 0.14301052689552307, -0.22344981133937836, -0.6293334364891052, -0.3826367259025574, 0.07990735024213791, -0.1367628425359726, 0.07053196430206299, -0.2529909610748291, 0.19080784916877747, 0.04170537367463112, 0.0007064659148454666, 0.06395915895700455, 0.5112625360488892, 0.38380205631256104, 0.155274897813797, 0.08335071802139282, -0.19444288313388824, -0.08382134884595871, 0.03142423555254936, 0.18943145871162415, -0.0444488488137722, 0.2973887324333191, 0.3646979331970215, -0.3999803364276886, 0.28799697756767273, -0.19582873582839966, -0.004944421350955963, -0.09528343379497528, 0.4774855971336365, -0.024429824203252792, 0.0022099241614341736, -0.40874096751213074, -0.004733391106128693, 0.14790262281894684, 0.2761026918888092, -0.04426835477352142, -0.3474465608596802, -0.10564224421977997, 0.14628243446350098, -0.489359974861145, 0.25155311822891235, 0.3014509975910187, -0.4247400164604187, -0.029060792177915573, -0.28178858757019043, 0.3245874345302582, -0.41372931003570557, 0.43699806928634644, 0.11532558500766754, 0.3545936942100525, -0.021373990923166275, 0.07461902499198914, 0.23075909912586212, -0.13691888749599457, -0.02224823832511902, 0.0737876147031784, 0.01220976933836937, 0.2807016372680664, -0.18891136348247528, -0.1876102089881897, -0.018633604049682617, -0.28084829449653625, -0.09787120670080185, 0.11185235530138016, 0.4561246633529663, -0.1378391683101654, -0.2398005574941635, 0.15594890713691711, 0.0908849835395813, 0.3234420716762543, -0.006549566984176636, 0.09779690951108932, 0.12052910774946213, 0.0003338098176755011, 0.2836909890174866, -0.060522764921188354, -0.27953898906707764, -0.0779377743601799, -0.1403639167547226, -0.03552093729376793, 0.265566885471344, 0.08274915814399719, -0.002034701406955719, -0.08893050253391266, 0.06567030400037766, 0.061527930200099945, -0.08327445387840271, 0.34294265508651733, -0.08083085715770721, -0.2568759620189667, -0.004063740372657776, 0.25254541635513306, 0.1472710222005844, -0.2681152820587158, 0.07059123367071152, 0.32219523191452026, -0.12113475799560547, -0.1496049463748932, 0.40277376770973206, 0.016711970791220665, 0.2068512886762619, -0.054754409939050674, 0.16550371050834656, -0.14268559217453003, 0.06256663799285889, 0.015680206939578056, -0.15282800793647766, 0.03313630819320679, 0.23737308382987976, 0.35915055871009827, -0.07919682562351227, -0.5343113541603088, -0.12540282309055328, 0.049367863684892654, -0.3811899423599243, -0.3526669144630432, -0.45391830801963806, 0.09591729938983917, 0.0441678985953331, -0.22488239407539368, -0.32030633091926575, -0.1014842838048935, 0.09989220649003983, -0.26112428307533264, -0.07177547365427017, -0.0267488993704319, -0.11899164319038391, -0.12630930542945862, 0.12081367522478104, 0.03390345722436905, -0.4636070430278778, 0.20927610993385315, -0.04615701362490654, 0.5230323672294617, 0.29660850763320923, 0.28856390714645386, -0.3173557221889496, 0.26712918281555176, -0.0691567212343216, 0.18908880650997162, 0.5893779397010803, -0.483195036649704, -0.2531139552593231, 0.05031194910407066, -0.03707106411457062, -0.11455713212490082, 0.029296673834323883, 0.16076260805130005, 0.08552664518356323, -0.09906071424484253, 0.07839307934045792, 0.42903459072113037, 0.0783737450838089, 0.04569408297538757, -0.24622958898544312, -0.1808588057756424, 0.22457729279994965, 0.03091619536280632, -0.1713447868824005, 0.07902856916189194, 0.26193201541900635, 0.05616139620542526, 0.028043661266565323, -0.34000614285469055, 0.1454516351222992, 0.19515526294708252, 0.331238716840744, -0.1613272726535797, -0.14345762133598328, 0.24710339307785034, -0.4086436927318573, 0.1843588650226593, 0.11573021113872528, 0.361627995967865, -0.14487536251544952, 0.002963583916425705, -0.42881807684898376, -0.09242115914821625, -0.0853365808725357, -0.03767826035618782, 0.06950794160366058, 0.09063844382762909, 0.06854325532913208, -0.16730627417564392, -0.22225192189216614, 0.11700550466775894, -0.3020477294921875, 0.056099843233823776, -0.18788976967334747, 0.061975717544555664, -0.28402990102767944, -0.1122312843799591, 0.22809529304504395, 0.18706274032592773, 0.2036275565624237, -0.015008864924311638, -0.17897498607635498, 0.09054963290691376, -0.47200557589530945, 0.3271059989929199, 0.04591142386198044, 0.16948269307613373, 0.023193741217255592, -0.026097383350133896, -0.21184518933296204, -0.11862586438655853, 0.18914280831813812, -0.159587100148201, -0.32982560992240906, 0.15665654838085175, -0.022238295525312424, 0.008161723613739014, 0.16949987411499023, 0.01233712024986744, 0.28302517533302307, -0.19770611822605133, 0.1146022155880928, 0.13609062135219574, 0.4101678431034088, 0.09705758094787598, 0.37629351019859314, -0.037502966821193695, -0.13971644639968872, -0.07505305856466293, 0.15518121421337128, 0.0004625823348760605, 0.17106792330741882, 0.07220153510570526, 0.025279134511947632, -0.0947028249502182, 0.2884232997894287, 0.5951282382011414, 0.35346895456314087, 0.07945872098207474, -0.052482325583696365, -0.04475070536136627, -0.1115141212940216, -0.22755993902683258, -0.01628401130437851, -0.07748281955718994, 0.04854551702737808, 0.2117166519165039, 0.4386914372444153, 0.26055264472961426, -0.13261157274246216, -0.016882454976439476, 0.11479974538087845, 0.4540286362171173, -0.19068297743797302, 0.26633214950561523, -0.09921880066394806, -0.43265098333358765, 0.2592722773551941, -0.28810861706733704, -0.08621799945831299, -0.18278490006923676, -0.18338245153427124, 0.12537162005901337, 0.08592502772808075, -0.11140786111354828, 0.15238124132156372, 0.3510535955429077, -0.09527876228094101, -0.27169278264045715, -0.2880839705467224, -0.10307911783456802, -0.20516344904899597, 0.04893950745463371, 0.33048808574676514, -0.11064432561397552, 0.4104597866535187, 0.34332290291786194, 0.06626538187265396, -0.046240419149398804, -0.32677987217903137, -0.003214385360479355, -0.04425863176584244, 0.09379099309444427, 0.09139995276927948, 0.33954858779907227, 0.0049581341445446014, -0.5441507697105408, 0.18702378869056702, 0.05857502669095993, -0.24736623466014862, 0.25977396965026855, -0.03783923014998436, -0.3145049512386322, -0.4980630576610565, 0.010082855820655823, -0.2758832275867462, -0.3460386395454407, 0.2394317239522934, 0.33021315932273865, 0.23633894324302673, 0.59395432472229, 0.018189407885074615, 0.1319154053926468, 0.31638678908348083, 0.13424097001552582, 0.03354422003030777, -0.20578548312187195, 0.48493054509162903, -0.23606881499290466, -0.43476223945617676, 0.10699272155761719, -0.13748323917388916, 0.5780149102210999, -0.04567110911011696, -0.3929761052131653, -0.1988607794046402, 0.0978340283036232, 0.20639604330062866, -0.0661415234208107, -0.08298299461603165, 0.2729760408401489, -0.19737929105758667, 0.03931603580713272, -0.06291258335113525, -0.2984919250011444, 0.15413443744182587, 0.6249306201934814, 0.23607295751571655, -0.07148420065641403, 0.41565725207328796, 0.05072778835892677, 0.6994931101799011, 0.08517999947071075, -0.31508833169937134, 0.45266783237457275, -0.03172553330659866, 0.17719639837741852, -0.13752296566963196, -0.3402386009693146, 0.09549257159233093, 0.2374720275402069, -0.0405370369553566, 0.1565459817647934, -0.02831142768263817, -0.08319485187530518, -0.4500623643398285, 0.22518089413642883, -0.25933754444122314, 0.04975193366408348, 0.014600587077438831, 0.08145253360271454, 0.03887346386909485, -0.09079210460186005, -0.24212196469306946, -0.3565266728401184, -0.5098559856414795, -0.12958204746246338, 0.25056639313697815, -0.23419073224067688, 0.18313701450824738, -0.6524073481559753, -0.10370662063360214, -0.669330358505249, 0.29620039463043213, -0.1468891203403473, 0.2754461169242859, -0.2164631187915802, 0.18662220239639282, 0.13347862660884857, -0.08639983832836151, 0.08926227688789368, -0.41608262062072754, -0.17348714172840118, -0.09920817613601685, 0.29537996649742126, -0.46098920702934265, -0.04646873101592064, -0.03333227336406708, 0.08325448632240295, 0.4845869541168213, 0.21635504066944122, 0.020408853888511658, 0.09795613586902618, -0.1728145033121109, -0.25559017062187195, -0.16451406478881836, -0.22752922773361206, -0.03326869010925293, -0.6557899713516235, -0.3437059223651886, -0.47936713695526123, 0.07115919142961502, 0.15322646498680115, 0.15192052721977234, -0.07051844894886017, 0.22515320777893066, 0.11375165730714798, 0.49375855922698975, 0.017786625772714615, -0.08321502804756165, 0.6168334484100342, -0.1239350289106369, -0.4665552079677582, 0.4901568591594696, -0.062034234404563904, 0.3874396085739136, 0.07472069561481476, -0.13771216571331024, -0.1564880907535553, -0.30095186829566956, 0.4412567615509033, 0.17833377420902252, 0.1096612736582756, 0.21357297897338867, -0.13211624324321747, 0.05214951932430267, -0.1916646510362625, 0.473358154296875, 0.3384169340133667, -0.09716438502073288, -0.3771507740020752, -0.13973098993301392, 0.44671157002449036, -0.21579867601394653, -0.007921479642391205, 0.2395014762878418, -0.21200747787952423, -0.2822958827018738, 0.21089603006839752, 0.17036624252796173, 1.1364256143569946, -0.07740257680416107, 0.3717597723007202, 0.1320490837097168, -0.054555367678403854, 0.7561654448509216, -0.18963715434074402, 0.024763617664575577, -0.2485019862651825, 0.17459528148174286, -0.10031966865062714, -0.04481543228030205, -0.0889812633395195, 0.11526595056056976, -0.22818978130817413, 0.05740327388048172, -0.04674181342124939, -0.16363787651062012, 0.007388954516500235, 0.541744589805603, 0.09941338747739792, -0.3780418932437897, -0.2032105028629303, 0.10226596891880035, -0.3348422050476074, 0.30063217878341675, -0.16814756393432617, -0.23469902575016022, -0.32432058453559875, -0.1621614396572113, -0.18649537861347198, 0.30506059527397156, -0.2374938428401947, 0.08102406561374664, 0.05311478674411774, -0.3184697926044464, 0.2553340792655945, 0.4358442723751068, 0.5033400058746338, -0.10633231699466705, -0.07909531146287918, 0.03086020052433014, -0.13777226209640503, -0.02995498850941658, 0.0002158666029572487, 0.07229495048522949, 0.175918847322464, -0.312438428401947, 0.06527722626924515, 0.2966577112674713, -0.014302743598818779, -0.30962222814559937, -0.1740131676197052, 0.14716756343841553, 0.07625894993543625, -0.14346018433570862, -0.3124757707118988, 0.09920916706323624, -0.17771385610103607, -0.02474256418645382, 0.04121078550815582, 0.06617758423089981, 0.03594096004962921, -0.0725613459944725, 0.07392623275518417, -0.1873587667942047, 0.065120168030262, 0.07385566830635071, -0.11527096480131149, -0.06169414520263672, 0.7477403879165649, -0.0671863779425621, 0.09660443663597107, -0.09921857714653015, -0.23556315898895264, -0.3396824300289154, -0.18870629370212555, -0.10450901836156845, 0.26849398016929626, -0.0451551154255867, 0.06955819576978683, 0.6650150418281555, 0.33289098739624023, 0.14161714911460876, 0.1635204553604126, -0.15161073207855225, -0.33256733417510986, -0.340667724609375, -0.03344869986176491, 0.16924870014190674, -0.0827004611492157, 0.19785833358764648, 0.201752707362175, 0.3437689244747162, -0.2551347613334656, -0.17512618005275726, -0.21311675012111664, 0.1651640683412552, 0.7187830209732056, -0.05416596680879593, -0.06109927222132683, -0.019158639013767242, 0.003239467740058899, -0.04416754096746445, -0.1669820249080658, -0.1334286779165268, -0.37222692370414734, 0.16226886212825775, 0.47540873289108276, -0.20718449354171753, -0.07411116361618042, -0.20155294239521027, -0.103578582406044, -0.12503816187381744, -0.31519922614097595, 0.04092088341712952, -0.058333978056907654, 0.21087099611759186, -0.2468239814043045, 0.3526257276535034, -0.08808495104312897, 0.19500531256198883, 0.019292838871479034, 0.18320374190807343, 0.07253311574459076, -0.024479880928993225, 0.16411814093589783, 0.05056837201118469, -0.3545880615711212, -0.03148427605628967, -0.20351646840572357, -0.09130885452032089, 0.04711637645959854, -0.4444264769554138, 0.11381755769252777, -0.16836576163768768, 0.0478397011756897, 0.021645452827215195, -0.5189086198806763, 0.145127534866333, 0.38480237126350403, 0.12011414766311646, 0.0483221635222435, 0.12300369143486023, 0.16844356060028076, 0.21478211879730225, -0.010158739984035492, 0.2320227175951004, 0.06219078227877617, -0.2759912610054016, -0.059731289744377136, -0.17764464020729065, -0.10463593155145645, -0.2630259394645691, 0.07028742134571075, -0.1269121915102005, -0.4082086384296417, -0.05109434202313423, 0.1315317451953888, 0.17131707072257996, -0.11073165386915207, 0.14628809690475464, -0.21450963616371155, 0.09462926536798477, 0.02808191254734993, -0.08880101144313812, 0.22827184200286865, -0.26857876777648926, 0.07813714444637299, -0.10730597376823425, -0.0419514924287796, 0.33544445037841797, 0.1483924686908722, 0.6253679990768433, -0.3005790412425995, -0.02767801843583584, -0.2420210838317871, 0.1444239616394043, -0.0007230900228023529, 0.17657232284545898, -0.6177631616592407, -0.02887624502182007, 0.05070364475250244, -0.10464958846569061, 0.02832535095512867, -0.3496132493019104, -0.0608217716217041, 0.3098292350769043, -0.17741821706295013, 0.11428355425596237, -0.1528497040271759, 0.21429693698883057, 0.1484038531780243, -0.15133176743984222, 0.4299250543117523, 0.059626199305057526, -0.10391660034656525, -0.08217419683933258, 0.07708954066038132, 0.514742910861969, 0.5829105377197266, 0.11593978106975555, 0.3167450428009033, 0.2150343507528305, 0.028207926079630852, 0.07165002077817917, 0.2167903631925583, 0.43436068296432495, 0.283086895942688, 0.12656159698963165, 0.04775448143482208, -0.12174811214208603, 0.07318586111068726, 0.051916997879743576, 0.12302358448505402, -0.2741187810897827, 0.3007909953594208, 0.0012679919600486755, -0.3716162145137787, -0.19212424755096436, 0.38253897428512573, -0.4631412923336029, 0.03657679632306099, 0.2187487632036209, 0.21083010733127594, 0.3433954417705536, -0.2772805988788605, 0.038885992020368576, -0.16345809400081635, 0.4362383782863617, 0.4967533349990845, -0.0677364245057106, -0.12502796947956085, -0.2891864776611328, -0.45062825083732605, 0.18131086230278015, -0.1986449956893921, -0.22995316982269287, -0.3568553030490875, 0.19610729813575745, 0.04849045351147652, -0.100857675075531, 0.05383528023958206, 0.09990990906953812, -0.21706271171569824, -0.016973182559013367, -0.46120685338974, 0.06106287240982056, -0.15878178179264069, -0.014815041795372963, -0.02872924692928791, -0.14931774139404297, 0.06392397731542587, 0.07336777448654175, 0.04292554408311844, 0.029615240171551704, 0.2109251618385315, 0.10708566009998322, 0.38921549916267395, 0.47182801365852356, -0.1015852615237236, 0.7334182262420654, 0.08890140801668167, -0.0027499720454216003, 0.012415103614330292, -0.05101185292005539, -0.17123162746429443, 0.02972538024187088, 0.1415664702653885, 0.4371805191040039, -0.08350175619125366, 0.35412919521331787, -0.21917642652988434, 0.05322754383087158, -0.051956407725811005, -0.5288751125335693, 0.10355635732412338, -0.0058154575526714325, -0.034160710871219635, 0.27211499214172363, 0.4090955853462219, 0.11103527247905731, 0.11265698075294495, -0.10881733894348145, -0.45880794525146484, -0.28008833527565, 0.39896148443222046, -0.5402228832244873, -0.3015980124473572, 0.19581863284111023, 0.23403993248939514, -0.0600508376955986, 0.04783593863248825, -0.30583858489990234, -0.05967370793223381, 0.1677774041891098, -0.21494120359420776, -0.009056759998202324, 0.3197654187679291, -0.4719269275665283, 0.07732528448104858, -0.0323198065161705, 0.2738977074623108, 0.2047538161277771, -0.35823574662208557, -0.037781234830617905, -0.1672142893075943 ]
https://github.com/huggingface/datasets/issues/181
Cannot upload my own dataset
New commands are ``` nlp-cli upload_dataset <path/to/dataset> nlp-cli upload_metric <path/to/metric> nlp-cli s3_datasets {rm, ls} nlp-cli s3_metrics {rm, ls} ``` Closing this issue.
I look into `nlp-cli` and `user.py` to learn how to upload my own data. It is supposed to work like this - Register to get username, password at huggingface.co - `nlp-cli login` and type username, passworld - I have a single file to upload at `./ttc/ttc_freq_extra.csv` - `nlp-cli upload ttc/ttc_freq_extra.csv` But I got this error. ``` 2020-05-21 16:33:52.722464: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1 About to upload file /content/ttc/ttc_freq_extra.csv to S3 under filename ttc/ttc_freq_extra.csv and namespace korakot Proceed? [Y/n] y Uploading... This might take a while if files are large Traceback (most recent call last): File "/usr/local/bin/nlp-cli", line 33, in <module> service.run() File "/usr/local/lib/python3.6/dist-packages/nlp/commands/user.py", line 234, in run token=token, filename=filename, filepath=filepath, organization=self.args.organization File "/usr/local/lib/python3.6/dist-packages/nlp/hf_api.py", line 141, in presign_and_upload urls = self.presign(token, filename=filename, organization=organization) File "/usr/local/lib/python3.6/dist-packages/nlp/hf_api.py", line 132, in presign return PresignedUrl(**d) TypeError: __init__() got an unexpected keyword argument 'cdn' ```
22
Cannot upload my own dataset I look into `nlp-cli` and `user.py` to learn how to upload my own data. It is supposed to work like this - Register to get username, password at huggingface.co - `nlp-cli login` and type username, passworld - I have a single file to upload at `./ttc/ttc_freq_extra.csv` - `nlp-cli upload ttc/ttc_freq_extra.csv` But I got this error. ``` 2020-05-21 16:33:52.722464: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1 About to upload file /content/ttc/ttc_freq_extra.csv to S3 under filename ttc/ttc_freq_extra.csv and namespace korakot Proceed? [Y/n] y Uploading... This might take a while if files are large Traceback (most recent call last): File "/usr/local/bin/nlp-cli", line 33, in <module> service.run() File "/usr/local/lib/python3.6/dist-packages/nlp/commands/user.py", line 234, in run token=token, filename=filename, filepath=filepath, organization=self.args.organization File "/usr/local/lib/python3.6/dist-packages/nlp/hf_api.py", line 141, in presign_and_upload urls = self.presign(token, filename=filename, organization=organization) File "/usr/local/lib/python3.6/dist-packages/nlp/hf_api.py", line 132, in presign return PresignedUrl(**d) TypeError: __init__() got an unexpected keyword argument 'cdn' ``` New commands are ``` nlp-cli upload_dataset <path/to/dataset> nlp-cli upload_metric <path/to/metric> nlp-cli s3_datasets {rm, ls} nlp-cli s3_metrics {rm, ls} ``` Closing this issue.
[ 0.10846701264381409, -0.04407893121242523, 0.05040142312645912, -0.027605757117271423, 0.138133704662323, -0.18117041885852814, 0.3266911804676056, -0.009185709059238434, -0.19502344727516174, 0.1800159364938736, -0.12995406985282898, 0.23764531314373016, -0.2306772768497467, 0.2919655442237854, 0.3680001497268677, 0.07485684752464294, 0.006218373775482178, 0.2890024185180664, 0.011849284172058105, -0.10124027729034424, -0.2111014723777771, 0.1081705316901207, 0.03599933534860611, -0.06653702259063721, -0.12294360995292664, -0.17405109107494354, -0.10020701587200165, 0.27096477150917053, -0.2011142075061798, -0.3351975381374359, 0.4402613043785095, 0.22429503500461578, 0.32153746485710144, 0.577190101146698, -0.00011768120748456568, -0.05328492820262909, 0.13914471864700317, -0.22553667426109314, -0.626198410987854, -0.3673120141029358, 0.08496657758951187, -0.1735268533229828, 0.08267366886138916, -0.2572460472583771, 0.1832295060157776, 0.02509177103638649, 0.008598929271101952, 0.0770224779844284, 0.5234434008598328, 0.3687663674354553, 0.15495115518569946, 0.09582008421421051, -0.18301717936992645, -0.09871876239776611, 0.0291222482919693, 0.1872796267271042, -0.042479678988456726, 0.2965942621231079, 0.36872565746307373, -0.39618614315986633, 0.3029370605945587, -0.18616296350955963, -0.008992332965135574, -0.08873294293880463, 0.48444464802742004, -0.022030863910913467, 0.0068497732281684875, -0.4027804732322693, -0.008083116263151169, 0.15804341435432434, 0.2721640467643738, -0.038277871906757355, -0.3466467559337616, -0.1168719232082367, 0.1563580334186554, -0.48716795444488525, 0.24212056398391724, 0.28327685594558716, -0.42185571789741516, -0.046516504138708115, -0.25824254751205444, 0.3114129304885864, -0.41079196333885193, 0.42343640327453613, 0.12531742453575134, 0.350303053855896, -0.026140931993722916, 0.061015546321868896, 0.2593010663986206, -0.14530333876609802, -0.021243426948785782, 0.09257052838802338, 0.0176383163779974, 0.281957745552063, -0.19193218648433685, -0.1905699372291565, -0.02157294750213623, -0.2899370789527893, -0.1039741113781929, 0.10910110175609589, 0.4545295238494873, -0.1308465600013733, -0.22314828634262085, 0.15165242552757263, 0.08718450367450714, 0.3312404453754425, 0.008624836802482605, 0.07960398495197296, 0.11092223972082138, 0.01273210346698761, 0.2880077064037323, -0.06930031627416611, -0.2757667899131775, -0.07849922776222229, -0.13718965649604797, -0.048889949917793274, 0.2654902935028076, 0.08655630052089691, 0.0027183573693037033, -0.0861176997423172, 0.07163956761360168, 0.039911918342113495, -0.07255172729492188, 0.3346657156944275, -0.0997372642159462, -0.2767595946788788, 0.008246272802352905, 0.24410735070705414, 0.12901799380779266, -0.26903215050697327, 0.07090891897678375, 0.30144932866096497, -0.12323892116546631, -0.14110545814037323, 0.4131864905357361, 0.002604011446237564, 0.19098630547523499, -0.04976862668991089, 0.17417016625404358, -0.11572030931711197, 0.07259514927864075, 0.026877548545598984, -0.15458199381828308, 0.02611738070845604, 0.23558533191680908, 0.3750024139881134, -0.07226473093032837, -0.5426658391952515, -0.12554562091827393, 0.04687373712658882, -0.3762070834636688, -0.34812331199645996, -0.4494222402572632, 0.09366777539253235, 0.03533231467008591, -0.23436012864112854, -0.290365070104599, -0.08445315062999725, 0.09920261055231094, -0.2737709581851959, -0.08804390579462051, -0.017819933593273163, -0.10808894038200378, -0.14024418592453003, 0.11493579298257828, 0.053980328142642975, -0.4861150085926056, 0.20890915393829346, -0.06266976147890091, 0.5137923359870911, 0.30137166380882263, 0.2810105085372925, -0.3043971061706543, 0.2599908709526062, -0.062365785241127014, 0.1773786097764969, 0.5754053592681885, -0.4743395447731018, -0.2507375180721283, 0.03427872434258461, -0.03656170144677162, -0.10301262885332108, 0.054686304181814194, 0.16820453107357025, 0.0883629247546196, -0.10266029089689255, 0.0741400495171547, 0.409537136554718, 0.07595747709274292, 0.030012430623173714, -0.22451399266719818, -0.17478153109550476, 0.2542687654495239, 0.012387827038764954, -0.15040351450443268, 0.07483919709920883, 0.2523055076599121, 0.08474503457546234, 0.03077053278684616, -0.3352099657058716, 0.15005293488502502, 0.2014990895986557, 0.335964560508728, -0.13525742292404175, -0.13722914457321167, 0.23809462785720825, -0.4048444926738739, 0.19656261801719666, 0.12716345489025116, 0.3596287667751312, -0.11084020137786865, 0.0062361955642700195, -0.420091837644577, -0.11388090997934341, -0.09573735296726227, -0.03177245333790779, 0.06666690111160278, 0.09637965261936188, 0.0702914148569107, -0.18559105694293976, -0.23020456731319427, 0.12882067263126373, -0.31538933515548706, 0.06105803698301315, -0.1971273273229599, 0.05917058885097504, -0.2863599956035614, -0.11160106956958771, 0.2181830108165741, 0.1753212809562683, 0.2073201835155487, -0.0180180873721838, -0.17255282402038574, 0.08949866145849228, -0.46536651253700256, 0.30873697996139526, 0.012426815927028656, 0.14155322313308716, 0.033568933606147766, -0.021583743393421173, -0.19961996376514435, -0.11788265407085419, 0.17727236449718475, -0.17059750854969025, -0.3431076407432556, 0.14997349679470062, -0.033148739486932755, 0.019479647278785706, 0.16682277619838715, -0.00248151458799839, 0.2705667316913605, -0.19244834780693054, 0.10810312628746033, 0.11901266872882843, 0.3931276500225067, 0.10056744515895844, 0.37359195947647095, -0.062349893152713776, -0.12617227435112, -0.0803174301981926, 0.17376267910003662, 0.014593139290809631, 0.15850746631622314, 0.06848903000354767, 0.033259667456150055, -0.07810251414775848, 0.28600838780403137, 0.6209818124771118, 0.3515603840351105, 0.0983225405216217, -0.04840388521552086, -0.050611719489097595, -0.11802143603563309, -0.22260503470897675, -0.03233432024717331, -0.08653207123279572, 0.04504832625389099, 0.21368896961212158, 0.42927268147468567, 0.2628834843635559, -0.13860461115837097, 0.0028304792940616608, 0.1121920570731163, 0.4410701394081116, -0.18067659437656403, 0.24720020592212677, -0.1107613667845726, -0.4309419095516205, 0.23817871510982513, -0.2824089825153351, -0.08930656313896179, -0.16442018747329712, -0.19531328976154327, 0.11842513084411621, 0.11353136599063873, -0.12695975601673126, 0.1662987470626831, 0.3391791880130768, -0.11040566116571426, -0.25449416041374207, -0.2794034779071808, -0.08828548341989517, -0.20852848887443542, 0.05295967683196068, 0.3282945156097412, -0.11787416785955429, 0.4269639551639557, 0.35580700635910034, 0.06698266416788101, -0.04825354367494583, -0.346605509519577, -0.012720145285129547, -0.06370196491479874, 0.07861309498548508, 0.08492843806743622, 0.34389007091522217, -0.0008328631520271301, -0.5517416000366211, 0.19058841466903687, 0.06303331255912781, -0.2525028884410858, 0.24601876735687256, -0.021941447630524635, -0.30630120635032654, -0.4941294491291046, -0.007458023726940155, -0.278352290391922, -0.34387898445129395, 0.2504081726074219, 0.351236492395401, 0.23518332839012146, 0.6135795712471008, 0.02082979306578636, 0.1394835263490677, 0.31701087951660156, 0.15296371281147003, 0.03316985443234444, -0.18742315471172333, 0.46579813957214355, -0.25305959582328796, -0.4329994022846222, 0.11046788096427917, -0.13290521502494812, 0.5748024582862854, -0.04160088673233986, -0.3659125566482544, -0.19975878298282623, 0.09144081920385361, 0.1881648600101471, -0.07725849002599716, -0.06613465398550034, 0.28565889596939087, -0.18216508626937866, 0.042107731103897095, -0.05911881849169731, -0.31170526146888733, 0.15016981959342957, 0.6340500116348267, 0.254977822303772, -0.0765855684876442, 0.421612948179245, 0.04242319241166115, 0.7029531002044678, 0.08945286273956299, -0.3097897171974182, 0.45496582984924316, -0.028219303116202354, 0.1947968304157257, -0.13296866416931152, -0.3579265773296356, 0.09596819430589676, 0.23466458916664124, -0.03078632801771164, 0.13775216042995453, -0.027218956500291824, -0.06776458770036697, -0.4466428756713867, 0.2475081980228424, -0.25212833285331726, 0.06079186871647835, -0.0016714148223400116, 0.10914749652147293, 0.04245806857943535, -0.10231271386146545, -0.23655229806900024, -0.365654319524765, -0.5041984915733337, -0.12927497923374176, 0.2498646378517151, -0.25403228402137756, 0.19691495597362518, -0.6588916182518005, -0.12373971939086914, -0.6575391888618469, 0.28806060552597046, -0.14811088144779205, 0.25945547223091125, -0.21375109255313873, 0.1771366000175476, 0.13104160130023956, -0.08934573084115982, 0.1171727329492569, -0.4182181656360626, -0.18678387999534607, -0.09565256536006927, 0.28662750124931335, -0.47739747166633606, -0.053470831364393234, -0.04376162961125374, 0.08510885387659073, 0.4654024541378021, 0.22015364468097687, 0.031262390315532684, 0.09527561068534851, -0.15829168260097504, -0.24406751990318298, -0.1730843186378479, -0.23456259071826935, -0.040779076516628265, -0.6392329335212708, -0.33754321932792664, -0.4886775612831116, 0.049477718770504, 0.15703991055488586, 0.16081561148166656, -0.07531033456325531, 0.21244412660598755, 0.11879725009202957, 0.4977768659591675, 0.022433485835790634, -0.06971998512744904, 0.6355295181274414, -0.12254402041435242, -0.4498654305934906, 0.4896848201751709, -0.05355864018201828, 0.3719131350517273, 0.05060344934463501, -0.12606105208396912, -0.1803295612335205, -0.29894500970840454, 0.4641975462436676, 0.1874578297138214, 0.11531251668930054, 0.21370331943035126, -0.11608649790287018, 0.04945135489106178, -0.18874739110469818, 0.4735012352466583, 0.3472859859466553, -0.09279030561447144, -0.37483131885528564, -0.16618895530700684, 0.446363627910614, -0.18877404928207397, -0.0016305968165397644, 0.22985857725143433, -0.20053760707378387, -0.28849032521247864, 0.1962747573852539, 0.17903286218643188, 1.1350762844085693, -0.0961633175611496, 0.37867799401283264, 0.13602042198181152, -0.05242524296045303, 0.7858073711395264, -0.185708150267601, 0.03413771837949753, -0.24207979440689087, 0.16550901532173157, -0.10266641527414322, -0.03763771429657936, -0.08714639395475388, 0.10502259433269501, -0.2391219288110733, 0.06721759587526321, -0.05727619677782059, -0.16555137932300568, -0.006033789366483688, 0.5472071170806885, 0.09571018815040588, -0.3948433995246887, -0.19912904500961304, 0.10654084384441376, -0.3313688039779663, 0.29732751846313477, -0.18849754333496094, -0.23479090631008148, -0.29894354939460754, -0.1551225781440735, -0.171249657869339, 0.3010399341583252, -0.23888643085956573, 0.08907787501811981, 0.05478057265281677, -0.32584333419799805, 0.24529233574867249, 0.42029869556427, 0.5057648420333862, -0.09477083384990692, -0.07163066416978836, 0.015904411673545837, -0.12948516011238098, -0.05805834382772446, -0.016993209719657898, 0.07856082171201706, 0.20451369881629944, -0.3050248622894287, 0.06459371000528336, 0.2832258343696594, -0.00420253025367856, -0.2958983778953552, -0.19273823499679565, 0.17007595300674438, 0.10598507523536682, -0.14506259560585022, -0.3228810131549835, 0.10752297192811966, -0.19857561588287354, -0.023927856236696243, 0.04314005747437477, 0.05214424803853035, 0.023094527423381805, -0.06285341829061508, 0.07580912858247757, -0.18461160361766815, 0.06752066314220428, 0.09131067246198654, -0.08641165494918823, -0.08536390215158463, 0.7531555891036987, -0.06545547395944595, 0.10210202634334564, -0.09430168569087982, -0.2357202172279358, -0.3444407284259796, -0.16373011469841003, -0.10431715846061707, 0.2887040078639984, -0.04541279375553131, 0.1091609075665474, 0.6310171484947205, 0.3479663133621216, 0.11863692849874496, 0.14224258065223694, -0.13004609942436218, -0.3389725983142853, -0.3504672050476074, -0.022792916744947433, 0.17645196616649628, -0.09358444809913635, 0.19203554093837738, 0.20667408406734467, 0.33862996101379395, -0.25417274236679077, -0.18684685230255127, -0.18249152600765228, 0.16299736499786377, 0.7249691486358643, -0.046618908643722534, -0.06739496439695358, -0.020377613604068756, 0.0019187889993190765, -0.040756747126579285, -0.16854217648506165, -0.13428914546966553, -0.38078373670578003, 0.16128729283809662, 0.47966691851615906, -0.20250047743320465, -0.07540261745452881, -0.20506274700164795, -0.09480389952659607, -0.11984492838382721, -0.30565619468688965, 0.04392416030168533, -0.04808416962623596, 0.2215614765882492, -0.23215968906879425, 0.3371521532535553, -0.05593372508883476, 0.1899591088294983, 0.030670367181301117, 0.17264947295188904, 0.07241980731487274, -0.03402028977870941, 0.1680605411529541, 0.057488813996315, -0.35415542125701904, -0.03275081515312195, -0.1912274807691574, -0.10384666174650192, 0.029014477506279945, -0.44629985094070435, 0.10618846118450165, -0.1760343611240387, 0.04980064928531647, 0.02243470400571823, -0.4888656735420227, 0.13809159398078918, 0.38950982689857483, 0.11818014830350876, 0.03648421913385391, 0.11728840321302414, 0.16463923454284668, 0.21876727044582367, -0.018170882016420364, 0.22868125140666962, 0.04256466403603554, -0.2698047459125519, -0.06452590227127075, -0.17235442996025085, -0.12308419495820999, -0.2726885676383972, 0.0867757648229599, -0.11697085201740265, -0.39995527267456055, -0.06926912069320679, 0.15473736822605133, 0.1715611070394516, -0.09740474075078964, 0.14381495118141174, -0.20515543222427368, 0.10718591511249542, 0.03388457000255585, -0.0860830545425415, 0.2209542989730835, -0.27044355869293213, 0.08013754338026047, -0.08750198781490326, -0.027107536792755127, 0.3488442003726959, 0.14098107814788818, 0.6430832147598267, -0.3007904291152954, -0.03844212740659714, -0.23728366196155548, 0.12414288520812988, -0.0008918903768062592, 0.19300639629364014, -0.611870288848877, -0.016116537153720856, 0.040175266563892365, -0.10860472917556763, 0.03986557945609093, -0.35414421558380127, -0.0675954669713974, 0.30947282910346985, -0.1717275232076645, 0.11386729776859283, -0.1698194146156311, 0.20617729425430298, 0.14696428179740906, -0.14845150709152222, 0.397064745426178, 0.05424017086625099, -0.10305577516555786, -0.07449574768543243, 0.08739323168992996, 0.5002298355102539, 0.6005566120147705, 0.11638970673084259, 0.3231104910373688, 0.20161043107509613, 0.03813342750072479, 0.07256472855806351, 0.20181414484977722, 0.4283687174320221, 0.27456286549568176, 0.1099814921617508, 0.0479593425989151, -0.12619224190711975, 0.06361637264490128, 0.04795297235250473, 0.09902036190032959, -0.2963979244232178, 0.2942284345626831, 0.0014727525413036346, -0.37344732880592346, -0.19348058104515076, 0.3822581171989441, -0.4880565404891968, 0.028024017810821533, 0.24869631230831146, 0.215536966919899, 0.33565646409988403, -0.270844042301178, 0.03663020581007004, -0.16707222163677216, 0.4374939799308777, 0.4826238751411438, -0.09399529546499252, -0.12573949992656708, -0.2834654450416565, -0.46568337082862854, 0.17053484916687012, -0.19895091652870178, -0.22324557602405548, -0.3570995032787323, 0.20041126012802124, 0.04287030175328255, -0.12530557811260223, 0.07186192274093628, 0.09310086816549301, -0.22871509194374084, -0.05896368622779846, -0.47249141335487366, 0.05648171156644821, -0.13548053801059723, -0.021281393244862556, -0.025281092151999474, -0.13777872920036316, 0.050760410726070404, 0.05550040677189827, 0.03497462719678879, 0.02594185248017311, 0.212439626455307, 0.10449141263961792, 0.3972408175468445, 0.48885858058929443, -0.1169949471950531, 0.7418341636657715, 0.09344276040792465, -0.01037683431059122, 0.011938173323869705, -0.03746596723794937, -0.1898801177740097, 0.053903281688690186, 0.12369750440120697, 0.4505588412284851, -0.09263245016336441, 0.3479193150997162, -0.22000564634799957, 0.07006753236055374, -0.04054626449942589, -0.5381629467010498, 0.1111883595585823, -0.0031196745112538338, -0.031219709664583206, 0.2671137750148773, 0.43210840225219727, 0.12411151826381683, 0.11082886159420013, -0.10501370579004288, -0.46779805421829224, -0.2764586806297302, 0.40621399879455566, -0.5333336591720581, -0.2964297831058502, 0.18773145973682404, 0.23693443834781647, -0.08291309326887131, 0.036135219037532806, -0.2994179129600525, -0.0701778307557106, 0.16325418651103973, -0.22941216826438904, -0.012820655480027199, 0.3217458128929138, -0.48398834466934204, 0.0631382018327713, -0.0361771285533905, 0.24127362668514252, 0.22410356998443604, -0.35660433769226074, -0.03303736820816994, -0.15160375833511353 ]
https://github.com/huggingface/datasets/issues/179
[Feature request] separate split name and split instructions
If your dataset is a collection of sub-datasets, you should probably consider having one config per sub-dataset. For example for Glue, we have sst2, mnli etc. If you want to have multiple train sets (for example one per stage). The easiest solution would be to name them `nlp.Split("train_stage1")`, `nlp.Split("train_stage2")`, etc. or something like that.
Currently, the name of an nlp.NamedSplit is parsed in arrow_reader.py and used as the instruction. This makes it impossible to have several training sets, which can occur when: - A dataset corresponds to a collection of sub-datasets - A dataset was built in stages, adding new examples at each stage Would it be possible to have two separate fields in the Split class, a name /instruction and a unique ID that is used as the key in the builder's split_dict ?
54
[Feature request] separate split name and split instructions Currently, the name of an nlp.NamedSplit is parsed in arrow_reader.py and used as the instruction. This makes it impossible to have several training sets, which can occur when: - A dataset corresponds to a collection of sub-datasets - A dataset was built in stages, adding new examples at each stage Would it be possible to have two separate fields in the Split class, a name /instruction and a unique ID that is used as the key in the builder's split_dict ? If your dataset is a collection of sub-datasets, you should probably consider having one config per sub-dataset. For example for Glue, we have sst2, mnli etc. If you want to have multiple train sets (for example one per stage). The easiest solution would be to name them `nlp.Split("train_stage1")`, `nlp.Split("train_stage2")`, etc. or something like that.
[ 0.043389271944761276, -0.1981111764907837, 0.030185770243406296, 0.2106904685497284, 0.10683470964431763, 0.0847189649939537, 0.5492765307426453, 0.19509558379650116, -0.014409407041966915, 0.15259386599063873, 0.002325287088751793, 0.45175155997276306, -0.27085134387016296, 0.32557201385498047, 0.01907740905880928, -0.40613847970962524, -0.06452734023332596, 0.06130696460604668, 0.23302163183689117, 0.10228592157363892, 0.09767554700374603, 0.22732265293598175, -0.03829345852136612, 0.2814409136772156, -0.2380089908838272, -0.22818610072135925, -0.20587706565856934, -0.16539862751960754, 0.01880224607884884, -0.40434157848358154, 0.17547133564949036, 0.17289204895496368, -0.24170544743537903, 0.034277841448783875, -0.00011900687968591228, -0.12621544301509857, 0.21351483464241028, -0.009098142385482788, -0.15672527253627777, -0.17348860204219818, -0.5583314895629883, -0.4940266013145447, 0.4417528212070465, -0.5981581807136536, -0.004088398069143295, -0.06665878742933273, -0.009362632408738136, 0.25334590673446655, 0.581864058971405, -0.16109661757946014, 0.0953405350446701, -0.37281689047813416, -0.006457991898059845, 0.121883325278759, 0.3031226694583893, 0.17062783241271973, -0.32061246037483215, -0.33287787437438965, -0.1921616792678833, 0.01641891896724701, -0.01434335857629776, 0.21867433190345764, 0.06726671755313873, -0.147530660033226, 0.1250581443309784, 0.2088908702135086, -0.1813255250453949, -0.1672046035528183, -0.06251601129770279, 0.37087690830230713, -0.1658439338207245, -0.18620920181274414, -0.2181786298751831, -0.7446479201316833, 0.1928081512451172, -0.3991031348705292, 0.009476825594902039, 0.2820793390274048, -0.02325759269297123, 0.056905604898929596, 0.2280939519405365, -0.30260995030403137, -0.17334768176078796, 0.07937320321798325, 0.15809059143066406, 0.6143721342086792, 0.08293607085943222, 0.20643439888954163, 0.19808422029018402, 0.019645562395453453, 0.19974550604820251, 0.13025808334350586, -0.04197658225893974, 0.1836852729320526, -0.26089346408843994, -0.34557586908340454, -0.3928421139717102, -0.08230038732290268, -0.21530252695083618, 0.1477331817150116, 0.20480585098266602, -0.03726089745759964, 0.08624059706926346, 0.13486891984939575, 0.24606953561306, 0.0795055478811264, 0.43001264333724976, 0.635877788066864, 0.11269073188304901, -0.019236985594034195, -0.36080339550971985, -0.02425098791718483, -0.0676979199051857, 0.06192385405302048, -0.17635376751422882, 0.10095920413732529, -0.0996289998292923, 0.2363567352294922, -0.058111198246479034, -0.29367467761039734, -0.11544905602931976, -0.29221200942993164, 0.2777605950832367, -0.007407099008560181, 0.13234084844589233, 0.055596355348825455, -0.32508015632629395, 0.1376650184392929, -0.19032731652259827, -0.4007328152656555, -0.10605204105377197, 0.12324103713035583, -0.30393004417419434, 0.28528618812561035, -0.025047143921256065, 0.08957460522651672, 0.13974931836128235, -0.023922480642795563, -0.17118684947490692, -0.2618389129638672, 0.1999879628419876, -0.030773265287280083, 0.2510850131511688, 0.07993108034133911, 0.016892090439796448, 0.05753593146800995, -0.09818646311759949, -0.11058621108531952, -0.3132462203502655, -0.004342906177043915, -0.15221130847930908, -0.34593650698661804, 0.14371640980243683, 0.05959419533610344, 0.14884144067764282, 0.06756269186735153, 0.285625696182251, 0.6215521693229675, 0.3470485806465149, -0.11526314914226532, 0.13643194735050201, 0.058719225227832794, -0.2213851809501648, -0.24143901467323303, -0.020820630714297295, -0.055000707507133484, 0.04045441374182701, -0.4513775110244751, -0.2863806188106537, 0.10820071399211884, -0.10519065707921982, 0.09117890894412994, -0.22937366366386414, 0.11082255840301514, -0.026685789227485657, 0.600189745426178, 0.7154176235198975, -0.2713150084018707, 0.07817157357931137, 0.33046460151672363, 0.07260410487651825, -0.34571966528892517, 0.47567689418792725, 0.08520446717739105, 0.13212937116622925, -0.057622190564870834, -0.39683693647384644, 0.18206623196601868, -0.38011765480041504, -0.171162411570549, 0.20397402346134186, -0.5321475267410278, 0.16839465498924255, -0.09095190465450287, -0.05552610382437706, -0.37094545364379883, 0.020021595060825348, 0.2963109612464905, 0.46555718779563904, 0.03446777164936066, 0.2371779829263687, -0.17417490482330322, -0.07773017883300781, 0.28939035534858704, -0.17316152155399323, -0.3693116307258606, -0.27011534571647644, -0.010613437741994858, -0.1732824593782425, 0.05678101256489754, 0.01317797601222992, -0.4073966145515442, 0.04309329017996788, -0.271911084651947, -0.16464732587337494, -0.28500694036483765, 0.0466436967253685, -0.2125978171825409, -0.05866751819849014, -0.3464663326740265, -0.3343040943145752, 0.1712363213300705, -0.06379184871912003, 0.28379327058792114, -0.31552451848983765, -0.15856704115867615, 0.1928500086069107, 0.008334881626069546, -0.23998554050922394, 0.5741863250732422, 0.25061410665512085, -0.02533845230937004, 0.06489783525466919, 0.3517272472381592, 0.38948240876197815, -0.07242316007614136, 0.02337511070072651, -0.12618206441402435, 0.2539398968219757, -0.06732703000307083, -0.08393137902021408, -0.10601700842380524, -0.2638690173625946, -0.14377766847610474, -0.10177145153284073, 0.5019598603248596, 0.12187354266643524, 0.5909395217895508, 0.2901530861854553, 0.058206357061862946, -0.06445102393627167, -0.25854021310806274, -0.1919446438550949, -0.46373283863067627, -0.2635036110877991, -0.3758358061313629, 0.08257970213890076, -0.0438322052359581, -0.289010226726532, 0.24587643146514893, 0.4475729167461395, 0.14510802924633026, 0.0160813108086586, -0.2310430407524109, 0.11973953247070312, 0.17330658435821533, -0.20404207706451416, 0.7559653520584106, 0.19795013964176178, 0.16951552033424377, -0.0935157984495163, 0.05726436525583267, -0.04233328253030777, -0.18957482278347015, 0.2760687470436096, 0.2820303440093994, 0.0795544981956482, -0.027139313519001007, -0.16981981694698334, -0.14319171011447906, 0.10303788632154465, -0.033338259905576706, 0.22930555045604706, -0.3285976052284241, -0.08615018427371979, -0.07723308354616165, -0.1250097006559372, -0.337495893239975, -0.6012636423110962, -0.031781986355781555, -0.2347899079322815, -0.24172735214233398, 0.1579475849866867, -0.08859382569789886, -0.21088063716888428, 0.14174921810626984, -0.13971754908561707, 0.1332404911518097, -0.3738994896411896, 0.039971690624952316, 0.14731770753860474, -0.3808601200580597, -0.06988353282213211, 0.025912180542945862, 0.05599752813577652, 0.03493748605251312, 0.2627144455909729, 0.3256545960903168, -0.28088319301605225, 0.15032850205898285, -0.33597126603126526, 0.17685166001319885, -0.327022910118103, -0.28942134976387024, 0.22199629247188568, -0.310172438621521, -0.004219617694616318, -0.4689503610134125, 0.3010501265525818, -0.10614249110221863, -0.10014092177152634, -0.3176914155483246, 0.3218807876110077, 0.21165961027145386, -0.1271357387304306, -0.3190622627735138, -0.42890411615371704, -0.14181463420391083, 0.34559136629104614, -0.07541941106319427, 0.2965152859687805, 0.09804355353116989, -0.42088577151298523, -0.02932724356651306, -0.09281184524297714, -0.1169004738330841, 0.04345395416021347, 0.14458277821540833, -0.0896986722946167, -0.41021353006362915, 0.15662719309329987, 0.05233429744839668, -0.13682569563388824, 0.3339679539203644, -0.1761155128479004, -0.011461704969406128, 0.1888330578804016, -0.013530271127820015, -0.03493458405137062, 0.0357261523604393, 0.11508908867835999, 0.15593814849853516, 0.27365291118621826, 0.06651584804058075, -0.07385815680027008, -0.23240230977535248, 0.4348667860031128, 0.15245717763900757, 0.15153147280216217, -0.09006515890359879, 0.02415715530514717, -0.07993459701538086, 0.6646895408630371, 0.26829394698143005, 0.19962075352668762, -0.17779338359832764, -0.004739483818411827, -0.34178346395492554, 0.07829823344945908, -0.21145568788051605, 0.16598902642726898, -0.0030223727226257324, -0.2993088960647583, 0.341092586517334, 0.030006863176822662, -0.06149270385503769, -0.250754177570343, -0.06884238123893738, -0.03624996915459633, -0.5644192099571228, 0.06861523538827896, -0.18404805660247803, 0.2156812846660614, -0.1999177187681198, 0.05245474725961685, 0.0038422774523496628, 0.06245654076337814, -0.14635224640369415, -0.1538309007883072, -0.14873474836349487, -0.07147318869829178, -0.1142185628414154, -0.6203206777572632, -0.05381559580564499, -0.04224298894405365, 0.2887146472930908, -0.14281079173088074, -0.021647214889526367, -0.22285941243171692, 0.29551786184310913, 0.3017685115337372, 0.2860279679298401, -0.09012623131275177, -0.16662810742855072, 0.09333585202693939, 0.04214968532323837, 0.19225485622882843, -0.19830752909183502, 0.09100934863090515, 0.029229704290628433, 0.07482987642288208, 0.03935994207859039, -0.5721216797828674, -0.2948222756385803, 0.5887444019317627, -0.24235455691814423, -0.3340775966644287, 0.038394831120967865, 0.038438018411397934, 0.13238590955734253, 0.07342983037233353, -0.04046834260225296, 0.10366421192884445, 0.12703454494476318, 0.13721327483654022, 0.08338820934295654, -0.03285452723503113, -0.23436793684959412, 0.08977649360895157, 0.13432154059410095, 0.021047443151474, -0.05372036248445511, 0.08779120445251465, 0.2963995933532715, 0.2657298445701599, -0.31249508261680603, 0.44037723541259766, -0.40006598830223083, -0.09892027080059052, 0.009538416750729084, -0.21707415580749512, 0.5385270714759827, 0.33155715465545654, 0.13701166212558746, 0.4471997022628784, 0.00581907294690609, 0.08080268651247025, -0.20520947873592377, -0.06846996396780014, 0.27846378087997437, -0.1718561202287674, -0.4090299606323242, -0.7786414623260498, 0.3944486677646637, 0.0955314189195633, -0.19228163361549377, 0.2213878631591797, 0.13551399111747742, -0.40848252177238464, 0.5755677223205566, 0.016211017966270447, 0.8848463296890259, -0.07890178263187408, 0.2104567587375641, -0.05240243673324585, -0.289817750453949, 0.6745560169219971, -0.0959194153547287, 0.13303503394126892, -0.36648857593536377, 0.2945719063282013, 0.05793578922748566, 0.10396669805049896, 0.23142248392105103, 0.48991334438323975, 0.006773114204406738, 0.2321578860282898, 0.08442975580692291, 0.2629140317440033, -0.3335983157157898, 0.3395185172557831, 0.14325323700904846, -0.1159839928150177, -0.08670680969953537, -0.04819546267390251, 0.0014831312000751495, -0.24703213572502136, 0.20888161659240723, -0.19910180568695068, 0.01662455126643181, 0.17032159864902496, -0.2553977966308594, -0.006949892267584801, -0.12027242034673691, 0.21191953122615814, -0.12011681497097015, -0.41566622257232666, 0.39140892028808594, 0.17767097055912018, 0.2339615821838379, -0.16502228379249573, 0.019225556403398514, 0.4578538239002228, -0.042343899607658386, 0.0935659185051918, -0.17171674966812134, -0.012513451278209686, 0.3011685311794281, 0.053446799516677856, 0.027400381863117218, 0.03102821856737137, 0.01867326721549034, -0.08838064968585968, -0.22427913546562195, 0.23940680921077728, 0.449465811252594, -0.5152656435966492, 0.20778250694274902, 0.031566470861434937, 0.0019563138484954834, -0.1789328157901764, 0.021222032606601715, -0.21939100325107574, -0.24939309060573578, 0.04010729119181633, -0.17997591197490692, -0.06843481957912445, 0.004961397498846054, -0.31928497552871704, 0.17815709114074707, 0.00790572538971901, 0.3882559537887573, -0.18148984014987946, 0.1604384481906891, -0.23996257781982422, 0.14632433652877808, 0.15137919783592224, -0.20615145564079285, 0.29052773118019104, 0.15306967496871948, -0.26518452167510986, 0.13528473675251007, -0.01938268169760704, 0.05809524655342102, 0.6687642335891724, -0.18001697957515717, 0.03185392916202545, -0.22082458436489105, -0.0401967316865921, -0.103573277592659, 0.09732300043106079, 0.006829593330621719, 0.4960906207561493, -0.12097803503274918, 0.40659305453300476, -0.16640987992286682, -0.09653335809707642, 0.20132751762866974, 0.25393813848495483, -0.10842825472354889, 0.01703086867928505, 0.15272308886051178, 0.12926137447357178, 0.020380744710564613, -0.054970771074295044, 0.17742355167865753, -0.08827236294746399, -0.3262880742549896, 0.11676817387342453, 0.09450925141572952, 0.2027481496334076, -0.36953112483024597, -0.14116647839546204, 0.10343492031097412, -0.15560419857501984, 0.20738105475902557, 0.06280756741762161, 0.2604866027832031, 0.5012202858924866, 0.2707221508026123, 0.010650049895048141, -0.3788056969642639, 0.21698933839797974, -0.1248050183057785, 0.33703291416168213, 0.2525508999824524, 0.31090614199638367, -0.21063469350337982, 0.07289379835128784, 0.13318626582622528, -0.0557745024561882, 0.18610894680023193, -0.27954745292663574, -0.07307446748018265, 0.036065660417079926, -0.09714628010988235, -0.14056970179080963, 0.21551035344600677, 0.47379982471466064, 0.13721716403961182, -0.03496825322508812, 0.22364658117294312, 0.1104777529835701, -0.07229331135749817, 0.21312972903251648, 0.28005847334861755, -0.1797781139612198, 0.09948085248470306, 0.553147554397583, 0.11321605741977692, 0.26225748658180237, -0.4264286160469055, -0.06307654082775116, -0.10696815699338913, -0.030634451657533646, 0.5049616694450378, 0.8284041881561279, 0.21459423005580902, -0.06918120384216309, 0.4637243449687958, -0.1828436702489853, 0.2680799663066864, 0.4525597095489502, -0.18141072988510132, 0.36137500405311584, 0.3433866798877716, -0.172541543841362, 0.5454279184341431, 0.10762080550193787, -0.36955833435058594, 0.046644292771816254, -0.058180928230285645, -0.24876531958580017, -0.12223371863365173, 0.7737448215484619, 0.04387800395488739, -0.33211204409599304, 0.17119179666042328, 0.3155755400657654, 0.1680946946144104, -0.2501698136329651, -0.13615316152572632, 0.1134822890162468, -0.3541962206363678, 0.0006028376519680023, -0.05430052801966667, -0.2277761548757553, 0.3543234169483185, 0.08226669579744339, 0.30091041326522827, -0.09902676194906235, -0.06769754737615585, 0.2107917070388794, 0.4752950370311737, -0.35172614455223083, -0.13512523472309113, -0.017433680593967438, -0.2915220856666565, 0.15518037974834442, -0.0719442367553711, 0.008162014186382294, -0.1346801519393921, -0.2549785077571869, -0.2885670065879822, 0.2460687905550003, -0.10548308491706848, 0.02328447997570038, -0.06977825611829758, 0.12184932827949524, 0.29119735956192017, 0.21185994148254395, -0.023083221167325974, -0.03540943190455437, -0.20721499621868134, 0.2606799006462097, -0.01899287849664688, -0.05991300940513611, 0.5498862862586975, 0.23981615900993347, -0.1878666877746582, -0.025996100157499313, 0.228801429271698, -0.29212167859077454, -0.01780381053686142, 0.35891640186309814, -0.06609876453876495, 0.08894108235836029, -0.16790620982646942, -0.02272203005850315, -0.021171797066926956, 0.4855481684207916, -0.22243927419185638, -0.20367255806922913, -0.2754066288471222, -0.37029701471328735, -0.022414743900299072, -0.14031392335891724, -0.1252136081457138, -0.27419131994247437, -0.13138246536254883, 0.16895191371440887, -0.15706101059913635, -0.16794615983963013, 0.16192856431007385, 0.04044003039598465, 0.43294110894203186, 0.3385253846645355, -0.23166519403457642, 0.005767442286014557, -0.02158745378255844, 0.14577609300613403, 0.1738491952419281, 0.13576951622962952, -0.07442143559455872, 0.3656342625617981, -0.29715028405189514, 0.15661588311195374, -0.022885896265506744, 0.5849358439445496, 0.13453154265880585, 0.0016779154539108276, -0.020736096426844597, 0.22752919793128967, 0.02986246347427368, 0.03711678832769394, 0.04069618135690689, 0.012698626145720482, -0.555483877658844, 0.41142746806144714, 0.06802919507026672, 0.16265493631362915, -0.27481982111930847, 0.41206058859825134, -0.14148393273353577, 0.003723634174093604, -0.232005313038826, 0.10678360611200333, -0.01392394956201315, 0.19690752029418945, -0.02301173284649849, 0.29645228385925293, 0.375961035490036, 0.28615429997444153, -0.11746019124984741, -0.06586827337741852, -0.13472864031791687, -0.3783154785633087, 0.16204284131526947, -0.03662741184234619, -0.09991832077503204, 0.08974146097898483, 0.33894920349121094, 0.19934135675430298, 0.11615052819252014, -0.7652570009231567, -0.27471715211868286, 0.18879859149456024, -0.2403247356414795, -0.024293990805745125, 0.14281317591667175, 0.28295984864234924, -0.16623690724372864, 0.014706101268529892, -0.13825199007987976, 0.279705673456192, -0.06312911212444305, 0.0305364690721035, -0.14354082942008972 ]
https://github.com/huggingface/datasets/issues/179
[Feature request] separate split name and split instructions
Thanks for the tip! I ended up setting up three different versions of the dataset with their own configs. for the named splits, I was trying with `nlp.Split("train-stage1")`, which fails. Changing to `nlp.Split("train_stage1")` works :) I looked for examples of what works in the code comments, it may be worth adding some examples of valid/invalid names in there?
Currently, the name of an nlp.NamedSplit is parsed in arrow_reader.py and used as the instruction. This makes it impossible to have several training sets, which can occur when: - A dataset corresponds to a collection of sub-datasets - A dataset was built in stages, adding new examples at each stage Would it be possible to have two separate fields in the Split class, a name /instruction and a unique ID that is used as the key in the builder's split_dict ?
58
[Feature request] separate split name and split instructions Currently, the name of an nlp.NamedSplit is parsed in arrow_reader.py and used as the instruction. This makes it impossible to have several training sets, which can occur when: - A dataset corresponds to a collection of sub-datasets - A dataset was built in stages, adding new examples at each stage Would it be possible to have two separate fields in the Split class, a name /instruction and a unique ID that is used as the key in the builder's split_dict ? Thanks for the tip! I ended up setting up three different versions of the dataset with their own configs. for the named splits, I was trying with `nlp.Split("train-stage1")`, which fails. Changing to `nlp.Split("train_stage1")` works :) I looked for examples of what works in the code comments, it may be worth adding some examples of valid/invalid names in there?
[ 0.1045849621295929, -0.09824594855308533, 0.027599520981311798, 0.22247804701328278, 0.11074453592300415, 0.11211400479078293, 0.5969957113265991, 0.23253034055233002, -0.03582164645195007, 0.11198768764734268, 0.018791161477565765, 0.43956172466278076, -0.21577906608581543, 0.2508062422275543, -0.04807339608669281, -0.37081435322761536, -0.031474433839321136, 0.09958307445049286, 0.30093204975128174, 0.11061348021030426, 0.07535436004400253, 0.2413926124572754, -0.04599380865693092, 0.2722315192222595, -0.21119557321071625, -0.18311886489391327, -0.23876729607582092, -0.15462440252304077, 0.028415314853191376, -0.40116408467292786, 0.19092664122581482, 0.17102332413196564, -0.2977708578109741, 0.11503447592258453, -0.0001220013145939447, -0.1493763029575348, 0.26978009939193726, -0.008835121989250183, -0.17720022797584534, -0.231570765376091, -0.5108579993247986, -0.47503530979156494, 0.44129830598831177, -0.6071300506591797, 0.006469622254371643, -0.1662881076335907, 0.009862300008535385, 0.23457136750221252, 0.5989478826522827, -0.14206430315971375, 0.079401895403862, -0.39332640171051025, 0.0042509473860263824, 0.05900351703166962, 0.298503577709198, 0.2553155720233917, -0.35816800594329834, -0.3896656036376953, -0.13251222670078278, 0.019385091960430145, 0.013584591448307037, 0.19017551839351654, 0.048040494322776794, -0.1508927345275879, 0.056422311812639236, 0.18820181488990784, -0.24059084057807922, -0.10517430305480957, -0.03147540241479874, 0.3205353915691376, -0.14700576663017273, -0.1331748068332672, -0.224899023771286, -0.7789208292961121, 0.12296424806118011, -0.44449785351753235, 0.023178979754447937, 0.3083987832069397, -0.08555509150028229, 0.0007134787738323212, 0.15985260903835297, -0.2577970027923584, -0.15868908166885376, 0.07997339218854904, 0.18729612231254578, 0.575533926486969, 0.04268667846918106, 0.2130332887172699, 0.1306549310684204, 0.051466286182403564, 0.2459285706281662, 0.09748324006795883, 0.03707438334822655, 0.14819630980491638, -0.24022115767002106, -0.34626346826553345, -0.3629278838634491, -0.06122719496488571, -0.24780505895614624, 0.07276279479265213, 0.19479578733444214, -0.09304371476173401, 0.037919916212558746, 0.10942371934652328, 0.33250874280929565, 0.030752334743738174, 0.36637794971466064, 0.5928643345832825, 0.09704644978046417, 0.07390111684799194, -0.3302589952945709, -0.018299512565135956, -0.05582280084490776, 0.10930287837982178, -0.2353011965751648, 0.08426590263843536, -0.10003946721553802, 0.16355422139167786, -0.04588273540139198, -0.2597704827785492, -0.09913963079452515, -0.2428591400384903, 0.22444310784339905, 0.03780533745884895, 0.11807257682085037, 0.039067480713129044, -0.3129231929779053, 0.20333999395370483, -0.12280880659818649, -0.4388536512851715, -0.08893819153308868, 0.09969508647918701, -0.3002478778362274, 0.22965005040168762, 0.10692662000656128, 0.14246729016304016, 0.1824060082435608, 0.008428546600043774, -0.1476580649614334, -0.24537293612957, 0.15634962916374207, 0.0066441260278224945, 0.23175618052482605, 0.042394742369651794, 0.03246495500206947, 0.056231267750263214, -0.03774213418364525, -0.07236991077661514, -0.3021252751350403, 0.017727337777614594, -0.07855940610170364, -0.30994173884391785, 0.18636247515678406, 0.0404328815639019, 0.14403420686721802, 0.06193649768829346, 0.36202579736709595, 0.6019588708877563, 0.40557700395584106, -0.16478493809700012, 0.10734295099973679, 0.037772443145513535, -0.25963094830513, -0.1934564709663391, -0.043695755302906036, -0.013956308364868164, -0.010729659348726273, -0.44869258999824524, -0.3815647065639496, 0.1615702360868454, -0.12807023525238037, 0.07277129590511322, -0.14766037464141846, 0.05844791606068611, -0.0028750821948051453, 0.6331418752670288, 0.5671974420547485, -0.2285178154706955, 0.08923353254795074, 0.33646732568740845, 0.11590456962585449, -0.33526894450187683, 0.4838375449180603, 0.050156742334365845, 0.10745858401060104, -0.1066688597202301, -0.4239078462123871, 0.18046171963214874, -0.5068801045417786, -0.22542385756969452, 0.17374888062477112, -0.5565367937088013, 0.17674878239631653, -0.07062993943691254, -0.038998793810606, -0.3304857611656189, -0.002801172435283661, 0.2975153625011444, 0.48496323823928833, 0.03401394560933113, 0.2780066728591919, -0.19330011308193207, -0.06715758144855499, 0.26429855823516846, -0.12160958349704742, -0.357235848903656, -0.3117903172969818, -0.04289211332798004, -0.12128975242376328, 0.03108035959303379, -0.03785640001296997, -0.3895494341850281, -0.012586556375026703, -0.27908140420913696, -0.16043052077293396, -0.27749621868133545, 0.031024783849716187, -0.22630959749221802, -0.06190398335456848, -0.33485203981399536, -0.3435286283493042, 0.11446823924779892, -0.08758191019296646, 0.26570966839790344, -0.32785359025001526, -0.168110653758049, 0.22280508279800415, -0.025595277547836304, -0.18210691213607788, 0.6047661304473877, 0.28620004653930664, -0.008092764765024185, 0.06207459047436714, 0.3274421989917755, 0.39119046926498413, -0.03064863383769989, 0.005734175443649292, -0.12919314205646515, 0.18323731422424316, -0.12301653623580933, -0.05245785415172577, -0.04394248500466347, -0.2799319326877594, -0.2084254026412964, -0.20216119289398193, 0.5459464192390442, 0.027581796050071716, 0.6292764544487, 0.2911059260368347, 0.04996930807828903, -0.012831276282668114, -0.3354654610157013, -0.17226038873195648, -0.5019676089286804, -0.21168501675128937, -0.4157889485359192, 0.11526772379875183, -0.13372962176799774, -0.2776991128921509, 0.2355118989944458, 0.43055155873298645, 0.1779928356409073, 0.033646658062934875, -0.23415613174438477, 0.13413694500923157, 0.14352867007255554, -0.1983998864889145, 0.6893725395202637, 0.1891103982925415, 0.15224899351596832, -0.04077425226569176, 0.08033301681280136, 0.033018071204423904, -0.1813270002603531, 0.2855435609817505, 0.2572938799858093, 0.08319483697414398, -0.001740340143442154, -0.16712525486946106, -0.13735821843147278, 0.05301729589700699, 0.060680460184812546, 0.22533850371837616, -0.33681824803352356, -0.053813278675079346, -0.07482299208641052, -0.12956281006336212, -0.3124646544456482, -0.5548493266105652, -0.033424608409404755, -0.1863941252231598, -0.22623035311698914, 0.20903998613357544, 0.014330558478832245, -0.21730926632881165, 0.15765026211738586, -0.15920984745025635, 0.16644953191280365, -0.4105949401855469, 0.08151466399431229, 0.05014479160308838, -0.4121742844581604, -0.0365707203745842, 0.022978264838457108, 0.06295375525951385, 0.013406660407781601, 0.2887686789035797, 0.36025917530059814, -0.29487502574920654, 0.18425621092319489, -0.37269872426986694, 0.18452006578445435, -0.3997815251350403, -0.2675517201423645, 0.2295849323272705, -0.3035174012184143, 0.014626991003751755, -0.4285721778869629, 0.3069123327732086, -0.16745933890342712, -0.13079629838466644, -0.3343506157398224, 0.32829394936561584, 0.19106115400791168, -0.1777387410402298, -0.313402384519577, -0.40244096517562866, -0.14577089250087738, 0.390541672706604, -0.06979215145111084, 0.2750587463378906, 0.07240874320268631, -0.47120201587677, -0.028921376913785934, -0.0028671235777437687, -0.12118439376354218, 0.06887807697057724, 0.22075912356376648, -0.07444760203361511, -0.40786030888557434, 0.12988059222698212, 0.08459202945232391, -0.12469147890806198, 0.3680262863636017, -0.2473367601633072, -0.06267576664686203, 0.2727820575237274, 0.0512867234647274, -0.06166432797908783, 0.16137820482254028, 0.04686145484447479, 0.1606239676475525, 0.29216811060905457, 0.06726671755313873, -0.17208804190158844, -0.24137718975543976, 0.36097803711891174, 0.12154131382703781, 0.1340135782957077, -0.07184962928295135, 0.0910198986530304, -0.050604455173015594, 0.6642807126045227, 0.29654592275619507, 0.25993335247039795, -0.15238577127456665, 0.06831365078687668, -0.3416401743888855, 0.08138655126094818, -0.2282855361700058, 0.1414748579263687, -0.0514204204082489, -0.37449413537979126, 0.36649227142333984, 0.03204857558012009, -0.13655787706375122, -0.26294854283332825, -0.012271169573068619, -0.08253267407417297, -0.5328514575958252, 0.008546646684408188, -0.18302930891513824, 0.26944783329963684, -0.13070547580718994, 0.06471762806177139, 0.03220122680068016, -0.03419888764619827, -0.14848729968070984, -0.19269679486751556, -0.09611979871988297, -0.14421392977237701, -0.13510708510875702, -0.5458651781082153, -0.052328579127788544, -0.013712182641029358, 0.24540738761425018, -0.13100974261760712, -0.043412208557128906, -0.1996350884437561, 0.29792675375938416, 0.27644407749176025, 0.28615811467170715, -0.07402973622083664, -0.1080961525440216, 0.14678598940372467, 0.04686415195465088, 0.19412116706371307, -0.150249645113945, 0.075472891330719, 0.02573356032371521, 0.04000800848007202, 0.021056529134511948, -0.5988479852676392, -0.2771076261997223, 0.5790032148361206, -0.21796821057796478, -0.3166862428188324, 0.028383120894432068, 0.05465572699904442, 0.1528552770614624, 0.08562395721673965, -0.028498880565166473, 0.12638472020626068, 0.1029287725687027, 0.06259746104478836, 0.13151967525482178, -0.037614211440086365, -0.18430176377296448, 0.12430402636528015, 0.12849847972393036, 0.00018777325749397278, -0.08899055421352386, 0.1555134505033493, 0.2396564781665802, 0.2841663956642151, -0.32764932513237, 0.49771377444267273, -0.36366915702819824, -0.10032545030117035, 0.021687911823391914, -0.21436472237110138, 0.5283648371696472, 0.41589972376823425, 0.14213839173316956, 0.3851134777069092, 0.047321759164333344, 0.04736090451478958, -0.19367408752441406, -0.11665087193250656, 0.3290858268737793, -0.2601207196712494, -0.46221598982810974, -0.700915515422821, 0.4129931330680847, 0.07184530794620514, -0.2251184582710266, 0.24657142162322998, 0.15709947049617767, -0.3763374984264374, 0.5711106657981873, -0.01972150057554245, 0.8757327795028687, 0.0014643818140029907, 0.19628086686134338, 0.01991485431790352, -0.28456079959869385, 0.6315009593963623, -0.015095088630914688, 0.10312222689390182, -0.3777367174625397, 0.3019939661026001, 0.06101769953966141, 0.08488975465297699, 0.22855618596076965, 0.5355202555656433, 0.013650719076395035, 0.18368744850158691, 0.06374098360538483, 0.27864813804626465, -0.2928552031517029, 0.3380337953567505, 0.20744077861309052, -0.08355386555194855, -0.14133699238300323, -0.04221633821725845, 0.026887517422437668, -0.25858789682388306, 0.19815757870674133, -0.18899047374725342, -0.022849418222904205, 0.14109405875205994, -0.2769811749458313, 0.06596166640520096, -0.004031850956380367, 0.11964180320501328, -0.12575972080230713, -0.4483083486557007, 0.43208789825439453, 0.16505195200443268, 0.32499969005584717, -0.18011268973350525, -0.03807511180639267, 0.4714803695678711, -0.05818890780210495, 0.09149497747421265, -0.1675042062997818, 0.025093156844377518, 0.22142252326011658, 0.029511749744415283, 0.10628654807806015, 0.026310335844755173, -0.02527499943971634, -0.06378018110990524, -0.26449665427207947, 0.21506011486053467, 0.45295393466949463, -0.5559501051902771, 0.17467370629310608, -0.012983672320842743, 0.05249321833252907, -0.23507510125637054, 0.01745939813554287, -0.2393326610326767, -0.2196989208459854, 0.01637919619679451, -0.18049423396587372, -0.04825234040617943, -0.026684213429689407, -0.29558876156806946, 0.23804008960723877, -0.015308212488889694, 0.4281599819660187, -0.11671452224254608, 0.16510887444019318, -0.23216107487678528, 0.07606203109025955, 0.1726449579000473, -0.2626330852508545, 0.28448694944381714, 0.1135675311088562, -0.27455300092697144, 0.15061384439468384, -0.015604417771100998, 0.052263110876083374, 0.6398310661315918, -0.15392360091209412, 0.015464767813682556, -0.20867988467216492, 0.0041733309626579285, -0.06663280725479126, 0.06332925707101822, -0.04518796503543854, 0.46698451042175293, -0.19155915081501007, 0.41386082768440247, -0.1375509351491928, -0.018593039363622665, 0.28078487515449524, 0.26239317655563354, -0.15228094160556793, 0.00963200256228447, 0.19519434869289398, 0.07528966665267944, 0.005358288064599037, -0.0065132007002830505, 0.20427729189395905, -0.06048779562115669, -0.31543099880218506, 0.12557703256607056, 0.13687095046043396, 0.1940068006515503, -0.3965695798397064, -0.16864939033985138, 0.07181963324546814, -0.15369029343128204, 0.17872720956802368, 0.06687182933092117, 0.2828257083892822, 0.48198115825653076, 0.30576959252357483, 0.11159972846508026, -0.3644500970840454, 0.1841040998697281, -0.12273813784122467, 0.38089942932128906, 0.21493053436279297, 0.27629438042640686, -0.16514016687870026, 0.09467656910419464, 0.10485778748989105, -0.04907875508069992, 0.19031240046024323, -0.30886179208755493, 0.013765614479780197, 0.03284532204270363, -0.03074652887880802, -0.14969153702259064, 0.2588714361190796, 0.5672733187675476, 0.12643173336982727, -0.0025876425206661224, 0.2297631800174713, 0.08614954352378845, -0.09101244807243347, 0.2563651502132416, 0.2815907597541809, -0.15940655767917633, 0.08424210548400879, 0.5541466474533081, 0.12478707730770111, 0.265509694814682, -0.4000858664512634, -0.03358317166566849, -0.056616414338350296, -0.04436326026916504, 0.5013851523399353, 0.8824548125267029, 0.20604346692562103, -0.019955750554800034, 0.429712176322937, -0.19077318906784058, 0.2422766089439392, 0.4915962815284729, -0.1730974316596985, 0.33046749234199524, 0.3147030472755432, -0.12262783944606781, 0.590778112411499, 0.19488155841827393, -0.40433797240257263, -0.003067106008529663, -0.016770832240581512, -0.23411864042282104, -0.15214693546295166, 0.76174396276474, -0.011582217179238796, -0.32540470361709595, 0.09411925077438354, 0.26180586218833923, 0.18014562129974365, -0.20263713598251343, -0.16221733391284943, 0.055056072771549225, -0.355508029460907, 0.008617836982011795, -0.08892425894737244, -0.20625217258930206, 0.3511843681335449, 0.03732067719101906, 0.26485729217529297, -0.15261133015155792, -0.032472141087055206, 0.17793425917625427, 0.5029487609863281, -0.31820836663246155, -0.10205785185098648, -0.0024599656462669373, -0.2936452031135559, 0.19718994200229645, -0.09273379296064377, -0.005650512874126434, -0.14058130979537964, -0.3290475606918335, -0.35682860016822815, 0.20284219086170197, -0.1465294361114502, -0.00009988248348236084, 0.03662027418613434, 0.1252535879611969, 0.3037357032299042, 0.18481408059597015, -0.04838896542787552, -0.026214882731437683, -0.15178044140338898, 0.28189221024513245, -0.07489274442195892, -0.047113899141550064, 0.6482111811637878, 0.13582073152065277, -0.1838165521621704, 0.02307523414492607, 0.17055058479309082, -0.23164018988609314, -0.06651797145605087, 0.3410791754722595, -0.04825247451663017, 0.11722352355718613, -0.11295069009065628, -0.0336051769554615, -0.03483896702528, 0.40514278411865234, -0.20681484043598175, -0.28671666979789734, -0.26146480441093445, -0.4266864061355591, -0.08076144009828568, -0.07397980242967606, -0.14937052130699158, -0.2486897110939026, -0.09933771938085556, 0.13811610639095306, -0.08726910501718521, -0.1610431969165802, 0.11898668110370636, -0.076275534927845, 0.3919472098350525, 0.3623473644256592, -0.22487075626850128, 0.006812945008277893, -0.03206947445869446, 0.1607149839401245, 0.12720444798469543, 0.11123863607645035, -0.10884149372577667, 0.34477922320365906, -0.32984721660614014, 0.1718096286058426, -0.07115096598863602, 0.5625975131988525, 0.20206715166568756, -0.059335336089134216, 0.01238978747278452, 0.23775649070739746, 0.029855936765670776, -0.06352177262306213, 0.03534262627363205, -0.002857737708836794, -0.5393224358558655, 0.5002479553222656, 0.017259668558835983, 0.17635022103786469, -0.23865635693073273, 0.4447179138660431, -0.1461879014968872, -0.04464305192232132, -0.2594885230064392, 0.16524621844291687, -0.06921371817588806, 0.2242836356163025, -0.06041507050395012, 0.394474059343338, 0.4205286502838135, 0.2640947997570038, -0.12344452738761902, -0.02524438500404358, -0.21176916360855103, -0.35545212030410767, 0.2351643443107605, -0.07453888654708862, -0.1371602714061737, 0.103338822722435, 0.3187498450279236, 0.17163392901420593, 0.016238784417510033, -0.7228699326515198, -0.269102543592453, 0.16507156193256378, -0.2762206792831421, 0.020327769219875336, 0.03865690529346466, 0.231952503323555, -0.239707812666893, 0.013042904436588287, -0.045808009803295135, 0.2986755967140198, -0.07945649325847626, 0.06468223035335541, -0.11545103788375854 ]
https://github.com/huggingface/datasets/issues/168
Loading 'wikitext' dataset fails
Hi, make sure you have a recent version of pyarrow. Are you using it in Google Colab? In this case, this error is probably the same as #128
Loading the 'wikitext' dataset fails with Attribute error: Code to reproduce (From example notebook): import nlp wikitext_dataset = nlp.load_dataset('wikitext') Error: --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) <ipython-input-17-d5d9df94b13c> in <module>() 11 12 # Load a dataset and print the first examples in the training set ---> 13 wikitext_dataset = nlp.load_dataset('wikitext') 14 print(wikitext_dataset['train'][0]) 6 frames /usr/local/lib/python3.6/dist-packages/nlp/load.py in load_dataset(path, name, version, data_dir, data_files, split, cache_dir, download_config, download_mode, ignore_verifications, save_infos, **config_kwargs) 518 download_mode=download_mode, 519 ignore_verifications=ignore_verifications, --> 520 save_infos=save_infos, 521 ) 522 /usr/local/lib/python3.6/dist-packages/nlp/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, save_infos, dl_manager, **download_and_prepare_kwargs) 363 verify_infos = not save_infos and not ignore_verifications 364 self._download_and_prepare( --> 365 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs 366 ) 367 # Sync info /usr/local/lib/python3.6/dist-packages/nlp/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs) 416 try: 417 # Prepare split will record examples associated to the split --> 418 self._prepare_split(split_generator, **prepare_split_kwargs) 419 except OSError: 420 raise OSError("Cannot find data file. " + (self.MANUAL_DOWNLOAD_INSTRUCTIONS or "")) /usr/local/lib/python3.6/dist-packages/nlp/builder.py in _prepare_split(self, split_generator) 594 example = self.info.features.encode_example(record) 595 writer.write(example) --> 596 num_examples, num_bytes = writer.finalize() 597 598 assert num_examples == num_examples, f"Expected to write {split_info.num_examples} but wrote {num_examples}" /usr/local/lib/python3.6/dist-packages/nlp/arrow_writer.py in finalize(self, close_stream) 173 def finalize(self, close_stream=True): 174 if self.pa_writer is not None: --> 175 self.write_on_file() 176 self.pa_writer.close() 177 if close_stream: /usr/local/lib/python3.6/dist-packages/nlp/arrow_writer.py in write_on_file(self) 124 else: 125 # All good --> 126 self._write_array_on_file(pa_array) 127 self.current_rows = [] 128 /usr/local/lib/python3.6/dist-packages/nlp/arrow_writer.py in _write_array_on_file(self, pa_array) 93 def _write_array_on_file(self, pa_array): 94 """Write a PyArrow Array""" ---> 95 pa_batch = pa.RecordBatch.from_struct_array(pa_array) 96 self._num_bytes += pa_array.nbytes 97 self.pa_writer.write_batch(pa_batch) AttributeError: type object 'pyarrow.lib.RecordBatch' has no attribute 'from_struct_array'
28
Loading 'wikitext' dataset fails Loading the 'wikitext' dataset fails with Attribute error: Code to reproduce (From example notebook): import nlp wikitext_dataset = nlp.load_dataset('wikitext') Error: --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) <ipython-input-17-d5d9df94b13c> in <module>() 11 12 # Load a dataset and print the first examples in the training set ---> 13 wikitext_dataset = nlp.load_dataset('wikitext') 14 print(wikitext_dataset['train'][0]) 6 frames /usr/local/lib/python3.6/dist-packages/nlp/load.py in load_dataset(path, name, version, data_dir, data_files, split, cache_dir, download_config, download_mode, ignore_verifications, save_infos, **config_kwargs) 518 download_mode=download_mode, 519 ignore_verifications=ignore_verifications, --> 520 save_infos=save_infos, 521 ) 522 /usr/local/lib/python3.6/dist-packages/nlp/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, save_infos, dl_manager, **download_and_prepare_kwargs) 363 verify_infos = not save_infos and not ignore_verifications 364 self._download_and_prepare( --> 365 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs 366 ) 367 # Sync info /usr/local/lib/python3.6/dist-packages/nlp/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs) 416 try: 417 # Prepare split will record examples associated to the split --> 418 self._prepare_split(split_generator, **prepare_split_kwargs) 419 except OSError: 420 raise OSError("Cannot find data file. " + (self.MANUAL_DOWNLOAD_INSTRUCTIONS or "")) /usr/local/lib/python3.6/dist-packages/nlp/builder.py in _prepare_split(self, split_generator) 594 example = self.info.features.encode_example(record) 595 writer.write(example) --> 596 num_examples, num_bytes = writer.finalize() 597 598 assert num_examples == num_examples, f"Expected to write {split_info.num_examples} but wrote {num_examples}" /usr/local/lib/python3.6/dist-packages/nlp/arrow_writer.py in finalize(self, close_stream) 173 def finalize(self, close_stream=True): 174 if self.pa_writer is not None: --> 175 self.write_on_file() 176 self.pa_writer.close() 177 if close_stream: /usr/local/lib/python3.6/dist-packages/nlp/arrow_writer.py in write_on_file(self) 124 else: 125 # All good --> 126 self._write_array_on_file(pa_array) 127 self.current_rows = [] 128 /usr/local/lib/python3.6/dist-packages/nlp/arrow_writer.py in _write_array_on_file(self, pa_array) 93 def _write_array_on_file(self, pa_array): 94 """Write a PyArrow Array""" ---> 95 pa_batch = pa.RecordBatch.from_struct_array(pa_array) 96 self._num_bytes += pa_array.nbytes 97 self.pa_writer.write_batch(pa_batch) AttributeError: type object 'pyarrow.lib.RecordBatch' has no attribute 'from_struct_array' Hi, make sure you have a recent version of pyarrow. Are you using it in Google Colab? In this case, this error is probably the same as #128
[ -0.11933787167072296, 0.08862762153148651, -0.008977562189102173, 0.2101970762014389, 0.36926883459091187, 0.026060476899147034, 0.44878125190734863, 0.4131019115447998, 0.43308186531066895, 0.012566350400447845, 0.12384475022554398, 0.3954298496246338, -0.15054915845394135, 0.021962398663163185, 0.12090599536895752, -0.42898884415626526, -0.033739618957042694, 0.36367267370224, -0.04146681725978851, 0.06297354400157928, -0.18768426775932312, 0.10851702094078064, -0.2651921510696411, 0.25500577688217163, -0.3057224452495575, -0.05702599883079529, 0.21592096984386444, 0.08206339925527573, -0.07891866564750671, -0.5590060949325562, 0.2770834267139435, -0.21704944968223572, 0.06445136666297913, 0.1147465780377388, -0.00010995575576089323, 0.2053060382604599, 0.33269721269607544, 0.030213048681616783, -0.5799461007118225, -0.18957753479480743, -0.47733205556869507, -0.11893893033266068, 0.29743239283561707, -0.24970686435699463, -0.028513532131910324, 0.053897108882665634, 0.0359114371240139, -0.07441218197345734, 0.29674699902534485, 0.5315060019493103, 0.2378886491060257, 0.5236920118331909, 0.15454894304275513, 0.03449388965964317, -0.07856868952512741, -0.1705709993839264, -0.08211544156074524, 0.2239675670862198, 0.07387721538543701, -0.39154455065727234, -0.013374187052249908, 0.1269238293170929, 0.15117298066616058, 0.26370134949684143, 0.5083715915679932, 0.01439365278929472, 0.240522563457489, -0.15062658488750458, 0.014946840703487396, 0.07640086114406586, 0.33538326621055603, -0.1649339497089386, -0.2716008424758911, -0.22435981035232544, 0.24766628444194794, -0.33475691080093384, 0.23653042316436768, -0.03667694330215454, -0.16220447421073914, -0.008196413516998291, -0.2692285478115082, -0.028147470206022263, -0.24182076752185822, 0.3526879549026489, -0.05821523442864418, 0.4996495246887207, 0.04358336701989174, 0.1427479386329651, -0.05806562677025795, -0.07545766234397888, 0.14037670195102692, -0.08709096908569336, -0.12929992377758026, 0.25781330466270447, -0.38315635919570923, -0.03646768257021904, -0.03494633734226227, -0.11697573214769363, -0.03162432834506035, 0.2635207772254944, 0.21998998522758484, -0.22487342357635498, 0.32383787631988525, 0.31541478633880615, 0.2229897528886795, 0.42046916484832764, 0.0727650374174118, 0.06359198689460754, -0.08280496299266815, 0.13602519035339355, -0.23372772336006165, -0.15548524260520935, -0.15553566813468933, -0.1765548437833786, 0.09289763867855072, -0.15460243821144104, 0.2260204702615738, -0.07111664861440659, -0.49847379326820374, 0.11472105234861374, -0.1434047818183899, 0.04629074037075043, 0.20511458814144135, 0.17948496341705322, -0.1276330202817917, 0.23223572969436646, 0.14412450790405273, 0.2825673222541809, -0.25197634100914, -0.04313591867685318, -0.16628901660442352, 0.24921348690986633, -0.2343837022781372, -0.18224917352199554, 0.24275432527065277, 0.19339996576309204, 0.39947783946990967, -0.10116807371377945, 0.11126448959112167, -0.20175530016422272, 0.22737514972686768, -0.04551905766129494, -0.12887901067733765, 0.25665292143821716, -0.21606186032295227, 0.15489818155765533, 0.2015911340713501, -0.28242355585098267, -0.08482378721237183, -0.10174476355314255, -0.2726359963417053, -0.3080921769142151, -0.12625107169151306, 0.2814151346683502, 0.14738166332244873, -0.24296489357948303, -0.15226304531097412, -0.06118728592991829, 0.14749251306056976, -0.3687242865562439, -0.1181056872010231, -0.4612589478492737, -0.22063860297203064, -0.023005355149507523, 0.39764270186424255, 0.20490938425064087, 0.13138651847839355, -0.10897210985422134, -0.11542153358459473, 0.0778549313545227, -0.031796716153621674, 0.12271356582641602, -0.43835708498954773, 0.542162299156189, -0.06105554848909378, 0.1188628226518631, 0.6413461565971375, -0.34278684854507446, -0.45785418152809143, 0.12356884032487869, -0.014279570430517197, 0.20932887494564056, -0.2253691852092743, -0.016720766201615334, -0.01322714239358902, -0.1845513880252838, 0.21231403946876526, 0.6192137598991394, -0.015043092891573906, 0.08247918635606766, -0.12689639627933502, -0.015548578463494778, 0.5002204775810242, 0.10985668003559113, 0.0925251692533493, -0.007928788661956787, -0.04170498996973038, 0.4966491162776947, -0.001312941312789917, -0.12597079575061798, -0.014860391616821289, -0.01362999901175499, -0.06468614935874939, -0.10460454225540161, -0.21782615780830383, -0.0738869458436966, -0.2776651978492737, 0.3043037950992584, -0.11754722893238068, -0.058532021939754486, -0.04715040326118469, 0.10618691146373749, -0.349112868309021, 0.16848912835121155, -0.4232686460018158, -0.3773188889026642, 0.17209309339523315, 0.15513339638710022, -0.01082327775657177, 0.23844148218631744, -0.2047417163848877, 0.21943697333335876, -0.2740284502506256, 0.0555008202791214, -0.21892832219600677, 0.1612892746925354, -0.05588278919458389, -0.04242236912250519, -0.009479653090238571, 0.3087974786758423, 0.03833126649260521, -0.017996463924646378, -0.30628857016563416, 0.2860310673713684, -0.12548403441905975, 0.08035675436258316, -0.03226444870233536, -0.14336974918842316, 0.06880594044923782, -0.0715431496500969, -0.1751839518547058, 0.20819173753261566, 0.33195099234580994, -0.18012648820877075, -0.043142788112163544, 0.11287614703178406, 0.12721233069896698, 0.08142244815826416, 0.09886389970779419, 0.16397254168987274, 0.14399227499961853, -0.06582605838775635, 0.10127925127744675, 0.07743123173713684, 0.2337103635072708, -0.09498713910579681, 0.20471057295799255, -0.15645138919353485, -0.16714569926261902, -0.11880623549222946, 0.3131193220615387, 0.17005854845046997, 0.16741743683815002, 0.08148663491010666, -0.27525243163108826, -0.0948745384812355, 0.07855819910764694, 0.14604850113391876, 0.40096455812454224, -0.05183255299925804, -0.10834132134914398, -0.052570924162864685, -0.4165973365306854, 0.071125827729702, 0.1707078069448471, 0.0366290844976902, 0.20912840962409973, 0.30185624957084656, 0.04131581261754036, 0.08731970936059952, -0.2952665686607361, -0.35701704025268555, 0.2824332118034363, 0.4405301511287689, -0.2284826785326004, 0.20788027346134186, -0.03053181990981102, -0.002511080354452133, -0.06784819811582565, -0.333634614944458, -0.18862958252429962, -0.34299436211586, -0.12133623659610748, 0.4337746202945709, 0.024118971079587936, 0.18100376427173615, -0.397763192653656, -0.022050246596336365, 0.19475018978118896, -0.11478576809167862, -0.03137917071580887, -0.31579840183258057, -0.26932820677757263, 0.04594212397933006, 0.38186123967170715, 0.09107609838247299, 0.3510974943637848, -0.06677018851041794, -0.09253590553998947, -0.007034188136458397, -0.05841520428657532, -0.07556740939617157, -0.18372172117233276, 0.24404777586460114, 0.009521394968032837, 0.28558361530303955, -0.17702966928482056, -0.5220325589179993, 0.5017471313476562, -0.2557019293308258, -0.05778475105762482, 0.31510722637176514, 0.2711130976676941, -0.24919065833091736, -0.07947706431150436, -0.3746880888938904, -0.126449853181839, -0.28060540556907654, -0.0594685822725296, 0.07482929527759552, 0.062019944190979004, 0.39746856689453125, 0.07085665315389633, 0.21601107716560364, -0.0025733537040650845, 0.1134377121925354, -0.04826240986585617, -0.09006351232528687, 0.18598486483097076, -0.31003302335739136, -0.31731775403022766, -0.12134303152561188, 0.009936507791280746, 0.334761381149292, 0.11073680967092514, -0.34895938634872437, -0.21413208544254303, -0.1049579530954361, 0.08531275391578674, -0.22132554650306702, -0.040067099034786224, 0.18285973370075226, 0.07230285555124283, -0.06572242826223373, -0.08664420247077942, 0.03598931059241295, 0.07123947888612747, 0.15234673023223877, 0.13496209681034088, -0.006304711103439331, 0.08922687917947769, -0.0848846584558487, 0.6008986830711365, 0.21869324147701263, -0.21437765657901764, 0.30028602480888367, -0.10327678173780441, 0.005145370960235596, -0.2086838185787201, -0.43980398774147034, 0.2641645073890686, -0.11523345112800598, 0.18292835354804993, 0.17231431603431702, -0.07949299365282059, -0.224784255027771, -0.19255901873111725, 0.06885257363319397, -0.17844751477241516, -0.27277886867523193, 0.14616918563842773, -0.21739399433135986, 0.278711199760437, -0.06886419653892517, 0.22253689169883728, -0.20522372424602509, -0.1679815649986267, 0.06985095143318176, 0.16693328320980072, -0.09054546803236008, 0.0796748697757721, -0.2440013438463211, -0.27610906958580017, -0.47995835542678833, -0.027839720249176025, 0.24103158712387085, 0.6437505483627319, -0.08638428151607513, 0.0371888130903244, 0.08072201162576675, 0.08174137026071548, 0.13737374544143677, -0.23013542592525482, 0.18226361274719238, 0.28913021087646484, 0.03182467818260193, -0.3197474181652069, -0.06433065980672836, -0.1401118040084839, 0.35801681876182556, 0.0766507014632225, -0.05443154275417328, -0.03723157197237015, -0.16765426099300385, 0.13983187079429626, 0.25994032621383667, -0.18729490041732788, -0.04411289095878601, -0.09173360466957092, -0.08980982005596161, -0.30776363611221313, -0.006154961884021759, -0.009947462007403374, 0.33565962314605713, 0.12297004461288452, 0.2657250761985779, -0.5462992787361145, 0.1166563555598259, 0.0901666134595871, 0.17458738386631012, 0.09595328569412231, 0.05794469267129898, 0.18724630773067474, -0.1666347086429596, 0.18320971727371216, -0.14590544998645782, 0.5633818507194519, 0.14737620949745178, -0.33079850673675537, -0.31952983140945435, 0.02166324108839035, 0.1674344539642334, 0.18398089706897736, -0.018585871905088425, -0.14112162590026855, -0.2769460678100586, -0.06146425008773804, -0.008709738962352276, 0.30457013845443726, 0.5610413551330566, 0.002627857029438019, -0.32718127965927124, -0.2585407495498657, 0.4828401207923889, -0.2850036919116974, 0.11732962727546692, 0.3215582072734833, 0.05337817966938019, -0.3131922781467438, 0.084138885140419, 0.0778321921825409, 0.6767758727073669, 0.16953909397125244, 0.3111468553543091, 0.382670134305954, 0.18392960727214813, 0.41426971554756165, -0.043089937418699265, 0.28471505641937256, -0.39273524284362793, -0.1334255039691925, -0.08068602532148361, -0.06546235829591751, 0.10708171129226685, -0.008873246610164642, -0.025437479838728905, 0.15062116086483002, 0.15688933432102203, -0.00414184108376503, 0.057148367166519165, 0.4492526054382324, -0.03878352791070938, -0.1968195140361786, -0.34702613949775696, 0.1560165286064148, -0.218000128865242, 0.29750877618789673, -0.09073378890752792, -0.06648379564285278, 0.05520419403910637, -0.06735199689865112, -0.25555890798568726, 0.25743910670280457, -0.29947447776794434, 0.4594572186470032, 0.05782230198383331, -0.4756819009780884, 0.19841602444648743, 0.2070971429347992, 0.17566309869289398, 0.0056986697018146515, -0.2995949983596802, 0.23877876996994019, -0.29009053111076355, -0.22186580300331116, -0.06728650629520416, 0.11194755136966705, 0.42007389664649963, -0.17255115509033203, -0.14637713134288788, 0.14794039726257324, -0.12065460532903671, -0.24150271713733673, 0.10395854711532593, 0.036866478621959686, 0.35248851776123047, -0.3925759494304657, -0.5152193307876587, -0.0024198591709136963, -0.18207573890686035, -0.17491023242473602, 0.17449983954429626, 0.023450501263141632, -0.18903043866157532, 0.15189506113529205, 0.14982786774635315, -0.19897998869419098, 0.11640661954879761, 0.248041570186615, -0.2495408058166504, 0.1462838351726532, 0.7637568712234497, 0.03394615277647972, 0.012805290520191193, -0.3138304054737091, -0.054288819432258606, 0.12508508563041687, -0.48199987411499023, -0.117127425968647, 0.12550345063209534, 0.16912518441677094, -0.1442471146583557, 0.4983649253845215, 0.06302104145288467, -0.018845796585083008, 0.24718539416790009, -0.5424141883850098, -0.10621819645166397, -0.04302156716585159, 0.017753571271896362, 0.23777532577514648, -0.0026244334876537323, 0.11488893628120422, 0.13550926744937897, 0.10338825732469559, -0.2726372480392456, 0.01425396092236042, -0.1576250046491623, 0.13799765706062317, 0.21783460676670074, -0.156531423330307, 0.22328241169452667, -0.07694792747497559, 0.15638604760169983, -0.09584718942642212, -0.12303435802459717, -0.24829313158988953, -0.25483769178390503, 0.1001116931438446, 0.2455677092075348, -0.16452157497406006, -0.030678901821374893, -0.10233378410339355, 0.02367737703025341, -0.23110593855381012, -0.008462677709758282, -0.11772799491882324, -0.2933432459831238, 0.3894321918487549, 0.04389798641204834, 0.2783690094947815, -0.11169030517339706, 0.12635564804077148, -0.30075696110725403, 0.14912104606628418, -0.018495766445994377, -0.07522984594106674, 0.27581286430358887, 0.09365370869636536, -0.4658876359462738, 0.005421258509159088, -0.40260612964630127, 0.03714848309755325, 0.36982110142707825, -0.4551108479499817, 0.1599588245153427, -0.13162781298160553, 0.09546592831611633, 0.46568435430526733, -0.27140867710113525, -0.003666238859295845, 0.34966492652893066, 0.2378421127796173, -0.2974173128604889, -0.18925969302654266, 0.23999105393886566, 0.061346378177404404, 0.03245894983410835, 0.027239494025707245, 0.046661365777254105, -0.3037494719028473, -0.32123422622680664, 0.08927888423204422, -0.029339447617530823, -0.2656012773513794, -0.011408248916268349, 0.3393259048461914, -0.002364363521337509, -0.05951504036784172, -0.050050199031829834, 0.21102145314216614, 0.03539269417524338, 0.382693886756897, -0.2926003038883209, 0.20699773728847504, 0.05926409363746643, 0.0439101979136467, -0.1111433282494545, -0.21921688318252563, 0.05030060186982155, -0.15784132480621338, 0.03383467346429825, 0.29528293013572693, 0.0998152568936348, 0.15308049321174622, -0.2855038344860077, -0.12453717738389969, -0.20802326500415802, 0.22792388498783112, -0.17904216051101685, -0.04890652373433113, -0.24299503862857819, 0.021016821265220642, -0.025876235216856003, -0.09469960629940033, -0.14167097210884094, -0.03817955404520035, 0.3095560669898987, 0.2532218396663666, -0.17226965725421906, -0.4555351138114929, 0.10826697945594788, 0.343293696641922, 0.18004779517650604, -0.24588416516780853, 0.3368539810180664, 0.1938144862651825, -0.06877827644348145, -0.014123741537332535, 0.3971104025840759, 0.43576866388320923, 0.33839404582977295, -0.3642207682132721, 0.08116737008094788, -0.2033812701702118, -0.056821562349796295, -0.023259896785020828, 0.2695125937461853, 0.10607263445854187, 0.11737698316574097, 0.4624234735965729, 0.12148629128932953, -0.12472666800022125, 0.04363801330327988, -0.08805640041828156, -0.2605327367782593, -0.2629472613334656, 0.519148051738739, 0.1857949197292328, -0.11438821256160736, -0.32065120339393616, 0.1899377554655075, -0.2749866843223572, -0.08091466128826141, 0.06285152584314346, 0.24058941006660461, 0.11315325647592545, -0.21382743120193481, 0.0705086886882782, 0.00031537003815174103, 0.7061744332313538, 0.48772209882736206, -0.017719529569149017, -0.36580461263656616, -0.11652335524559021, -0.5989872813224792, 0.21783673763275146, -0.3639688491821289, -0.26901891827583313, 0.28333741426467896, -0.07233219593763351, -0.28808239102363586, 0.24852760136127472, 0.1276199072599411, 0.1581963449716568, -0.05727727338671684, 0.09834736585617065, -0.49076512455940247, -0.1486053615808487, -0.030650608241558075, -0.007674772292375565, -0.08318096399307251, -0.2570525109767914, 0.1453227549791336, -0.434994101524353, 0.1161026880145073, 0.011986005119979382, 0.06934791803359985, -0.00024010799825191498, 0.09664079546928406, 0.35442498326301575, 0.1653243452310562, 0.5012480020523071, -0.03556079789996147, 0.003657044842839241, -0.19115549325942993, -0.1566222608089447, -0.22899235785007477, 0.13182333111763, 0.08762898296117783, 0.513311505317688, -0.026107802987098694, -0.06854598224163055, -0.26402658224105835, 0.40316739678382874, -0.08100703358650208, 0.08831661194562912, -0.13508054614067078, 0.07731503248214722, -0.07035044580698013, 0.22758443653583527, 0.26436465978622437, 0.42454099655151367, -0.17832155525684357, 0.20220951735973358, -0.2722909152507782, -0.4602455794811249, 0.32893505692481995, -0.6614810228347778, -0.5177905559539795, 0.07512334734201431, 0.11619234085083008, -0.14233440160751343, 0.058193907141685486, -0.6006345152854919, 0.07056643813848495, 0.24261236190795898, -0.11140517145395279, -0.3171197175979614, 0.21794460713863373, 0.016541773453354836, 0.0800008624792099, 0.043573688715696335, 0.4483562111854553, -0.1484730839729309, -0.15976768732070923, -0.0049342624843120575, -0.1632518768310547 ]
https://github.com/huggingface/datasets/issues/168
Loading 'wikitext' dataset fails
Hi, The squad bug seems to be fixed, but the loading of the 'wikitext' still suffers from this problem (on Colab with pyarrow=0.17.1).
Loading the 'wikitext' dataset fails with Attribute error: Code to reproduce (From example notebook): import nlp wikitext_dataset = nlp.load_dataset('wikitext') Error: --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) <ipython-input-17-d5d9df94b13c> in <module>() 11 12 # Load a dataset and print the first examples in the training set ---> 13 wikitext_dataset = nlp.load_dataset('wikitext') 14 print(wikitext_dataset['train'][0]) 6 frames /usr/local/lib/python3.6/dist-packages/nlp/load.py in load_dataset(path, name, version, data_dir, data_files, split, cache_dir, download_config, download_mode, ignore_verifications, save_infos, **config_kwargs) 518 download_mode=download_mode, 519 ignore_verifications=ignore_verifications, --> 520 save_infos=save_infos, 521 ) 522 /usr/local/lib/python3.6/dist-packages/nlp/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, save_infos, dl_manager, **download_and_prepare_kwargs) 363 verify_infos = not save_infos and not ignore_verifications 364 self._download_and_prepare( --> 365 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs 366 ) 367 # Sync info /usr/local/lib/python3.6/dist-packages/nlp/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs) 416 try: 417 # Prepare split will record examples associated to the split --> 418 self._prepare_split(split_generator, **prepare_split_kwargs) 419 except OSError: 420 raise OSError("Cannot find data file. " + (self.MANUAL_DOWNLOAD_INSTRUCTIONS or "")) /usr/local/lib/python3.6/dist-packages/nlp/builder.py in _prepare_split(self, split_generator) 594 example = self.info.features.encode_example(record) 595 writer.write(example) --> 596 num_examples, num_bytes = writer.finalize() 597 598 assert num_examples == num_examples, f"Expected to write {split_info.num_examples} but wrote {num_examples}" /usr/local/lib/python3.6/dist-packages/nlp/arrow_writer.py in finalize(self, close_stream) 173 def finalize(self, close_stream=True): 174 if self.pa_writer is not None: --> 175 self.write_on_file() 176 self.pa_writer.close() 177 if close_stream: /usr/local/lib/python3.6/dist-packages/nlp/arrow_writer.py in write_on_file(self) 124 else: 125 # All good --> 126 self._write_array_on_file(pa_array) 127 self.current_rows = [] 128 /usr/local/lib/python3.6/dist-packages/nlp/arrow_writer.py in _write_array_on_file(self, pa_array) 93 def _write_array_on_file(self, pa_array): 94 """Write a PyArrow Array""" ---> 95 pa_batch = pa.RecordBatch.from_struct_array(pa_array) 96 self._num_bytes += pa_array.nbytes 97 self.pa_writer.write_batch(pa_batch) AttributeError: type object 'pyarrow.lib.RecordBatch' has no attribute 'from_struct_array'
23
Loading 'wikitext' dataset fails Loading the 'wikitext' dataset fails with Attribute error: Code to reproduce (From example notebook): import nlp wikitext_dataset = nlp.load_dataset('wikitext') Error: --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) <ipython-input-17-d5d9df94b13c> in <module>() 11 12 # Load a dataset and print the first examples in the training set ---> 13 wikitext_dataset = nlp.load_dataset('wikitext') 14 print(wikitext_dataset['train'][0]) 6 frames /usr/local/lib/python3.6/dist-packages/nlp/load.py in load_dataset(path, name, version, data_dir, data_files, split, cache_dir, download_config, download_mode, ignore_verifications, save_infos, **config_kwargs) 518 download_mode=download_mode, 519 ignore_verifications=ignore_verifications, --> 520 save_infos=save_infos, 521 ) 522 /usr/local/lib/python3.6/dist-packages/nlp/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, save_infos, dl_manager, **download_and_prepare_kwargs) 363 verify_infos = not save_infos and not ignore_verifications 364 self._download_and_prepare( --> 365 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs 366 ) 367 # Sync info /usr/local/lib/python3.6/dist-packages/nlp/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs) 416 try: 417 # Prepare split will record examples associated to the split --> 418 self._prepare_split(split_generator, **prepare_split_kwargs) 419 except OSError: 420 raise OSError("Cannot find data file. " + (self.MANUAL_DOWNLOAD_INSTRUCTIONS or "")) /usr/local/lib/python3.6/dist-packages/nlp/builder.py in _prepare_split(self, split_generator) 594 example = self.info.features.encode_example(record) 595 writer.write(example) --> 596 num_examples, num_bytes = writer.finalize() 597 598 assert num_examples == num_examples, f"Expected to write {split_info.num_examples} but wrote {num_examples}" /usr/local/lib/python3.6/dist-packages/nlp/arrow_writer.py in finalize(self, close_stream) 173 def finalize(self, close_stream=True): 174 if self.pa_writer is not None: --> 175 self.write_on_file() 176 self.pa_writer.close() 177 if close_stream: /usr/local/lib/python3.6/dist-packages/nlp/arrow_writer.py in write_on_file(self) 124 else: 125 # All good --> 126 self._write_array_on_file(pa_array) 127 self.current_rows = [] 128 /usr/local/lib/python3.6/dist-packages/nlp/arrow_writer.py in _write_array_on_file(self, pa_array) 93 def _write_array_on_file(self, pa_array): 94 """Write a PyArrow Array""" ---> 95 pa_batch = pa.RecordBatch.from_struct_array(pa_array) 96 self._num_bytes += pa_array.nbytes 97 self.pa_writer.write_batch(pa_batch) AttributeError: type object 'pyarrow.lib.RecordBatch' has no attribute 'from_struct_array' Hi, The squad bug seems to be fixed, but the loading of the 'wikitext' still suffers from this problem (on Colab with pyarrow=0.17.1).
[ -0.11933787167072296, 0.08862762153148651, -0.008977562189102173, 0.2101970762014389, 0.36926883459091187, 0.026060476899147034, 0.44878125190734863, 0.4131019115447998, 0.43308186531066895, 0.012566350400447845, 0.12384475022554398, 0.3954298496246338, -0.15054915845394135, 0.021962398663163185, 0.12090599536895752, -0.42898884415626526, -0.033739618957042694, 0.36367267370224, -0.04146681725978851, 0.06297354400157928, -0.18768426775932312, 0.10851702094078064, -0.2651921510696411, 0.25500577688217163, -0.3057224452495575, -0.05702599883079529, 0.21592096984386444, 0.08206339925527573, -0.07891866564750671, -0.5590060949325562, 0.2770834267139435, -0.21704944968223572, 0.06445136666297913, 0.1147465780377388, -0.00010995575576089323, 0.2053060382604599, 0.33269721269607544, 0.030213048681616783, -0.5799461007118225, -0.18957753479480743, -0.47733205556869507, -0.11893893033266068, 0.29743239283561707, -0.24970686435699463, -0.028513532131910324, 0.053897108882665634, 0.0359114371240139, -0.07441218197345734, 0.29674699902534485, 0.5315060019493103, 0.2378886491060257, 0.5236920118331909, 0.15454894304275513, 0.03449388965964317, -0.07856868952512741, -0.1705709993839264, -0.08211544156074524, 0.2239675670862198, 0.07387721538543701, -0.39154455065727234, -0.013374187052249908, 0.1269238293170929, 0.15117298066616058, 0.26370134949684143, 0.5083715915679932, 0.01439365278929472, 0.240522563457489, -0.15062658488750458, 0.014946840703487396, 0.07640086114406586, 0.33538326621055603, -0.1649339497089386, -0.2716008424758911, -0.22435981035232544, 0.24766628444194794, -0.33475691080093384, 0.23653042316436768, -0.03667694330215454, -0.16220447421073914, -0.008196413516998291, -0.2692285478115082, -0.028147470206022263, -0.24182076752185822, 0.3526879549026489, -0.05821523442864418, 0.4996495246887207, 0.04358336701989174, 0.1427479386329651, -0.05806562677025795, -0.07545766234397888, 0.14037670195102692, -0.08709096908569336, -0.12929992377758026, 0.25781330466270447, -0.38315635919570923, -0.03646768257021904, -0.03494633734226227, -0.11697573214769363, -0.03162432834506035, 0.2635207772254944, 0.21998998522758484, -0.22487342357635498, 0.32383787631988525, 0.31541478633880615, 0.2229897528886795, 0.42046916484832764, 0.0727650374174118, 0.06359198689460754, -0.08280496299266815, 0.13602519035339355, -0.23372772336006165, -0.15548524260520935, -0.15553566813468933, -0.1765548437833786, 0.09289763867855072, -0.15460243821144104, 0.2260204702615738, -0.07111664861440659, -0.49847379326820374, 0.11472105234861374, -0.1434047818183899, 0.04629074037075043, 0.20511458814144135, 0.17948496341705322, -0.1276330202817917, 0.23223572969436646, 0.14412450790405273, 0.2825673222541809, -0.25197634100914, -0.04313591867685318, -0.16628901660442352, 0.24921348690986633, -0.2343837022781372, -0.18224917352199554, 0.24275432527065277, 0.19339996576309204, 0.39947783946990967, -0.10116807371377945, 0.11126448959112167, -0.20175530016422272, 0.22737514972686768, -0.04551905766129494, -0.12887901067733765, 0.25665292143821716, -0.21606186032295227, 0.15489818155765533, 0.2015911340713501, -0.28242355585098267, -0.08482378721237183, -0.10174476355314255, -0.2726359963417053, -0.3080921769142151, -0.12625107169151306, 0.2814151346683502, 0.14738166332244873, -0.24296489357948303, -0.15226304531097412, -0.06118728592991829, 0.14749251306056976, -0.3687242865562439, -0.1181056872010231, -0.4612589478492737, -0.22063860297203064, -0.023005355149507523, 0.39764270186424255, 0.20490938425064087, 0.13138651847839355, -0.10897210985422134, -0.11542153358459473, 0.0778549313545227, -0.031796716153621674, 0.12271356582641602, -0.43835708498954773, 0.542162299156189, -0.06105554848909378, 0.1188628226518631, 0.6413461565971375, -0.34278684854507446, -0.45785418152809143, 0.12356884032487869, -0.014279570430517197, 0.20932887494564056, -0.2253691852092743, -0.016720766201615334, -0.01322714239358902, -0.1845513880252838, 0.21231403946876526, 0.6192137598991394, -0.015043092891573906, 0.08247918635606766, -0.12689639627933502, -0.015548578463494778, 0.5002204775810242, 0.10985668003559113, 0.0925251692533493, -0.007928788661956787, -0.04170498996973038, 0.4966491162776947, -0.001312941312789917, -0.12597079575061798, -0.014860391616821289, -0.01362999901175499, -0.06468614935874939, -0.10460454225540161, -0.21782615780830383, -0.0738869458436966, -0.2776651978492737, 0.3043037950992584, -0.11754722893238068, -0.058532021939754486, -0.04715040326118469, 0.10618691146373749, -0.349112868309021, 0.16848912835121155, -0.4232686460018158, -0.3773188889026642, 0.17209309339523315, 0.15513339638710022, -0.01082327775657177, 0.23844148218631744, -0.2047417163848877, 0.21943697333335876, -0.2740284502506256, 0.0555008202791214, -0.21892832219600677, 0.1612892746925354, -0.05588278919458389, -0.04242236912250519, -0.009479653090238571, 0.3087974786758423, 0.03833126649260521, -0.017996463924646378, -0.30628857016563416, 0.2860310673713684, -0.12548403441905975, 0.08035675436258316, -0.03226444870233536, -0.14336974918842316, 0.06880594044923782, -0.0715431496500969, -0.1751839518547058, 0.20819173753261566, 0.33195099234580994, -0.18012648820877075, -0.043142788112163544, 0.11287614703178406, 0.12721233069896698, 0.08142244815826416, 0.09886389970779419, 0.16397254168987274, 0.14399227499961853, -0.06582605838775635, 0.10127925127744675, 0.07743123173713684, 0.2337103635072708, -0.09498713910579681, 0.20471057295799255, -0.15645138919353485, -0.16714569926261902, -0.11880623549222946, 0.3131193220615387, 0.17005854845046997, 0.16741743683815002, 0.08148663491010666, -0.27525243163108826, -0.0948745384812355, 0.07855819910764694, 0.14604850113391876, 0.40096455812454224, -0.05183255299925804, -0.10834132134914398, -0.052570924162864685, -0.4165973365306854, 0.071125827729702, 0.1707078069448471, 0.0366290844976902, 0.20912840962409973, 0.30185624957084656, 0.04131581261754036, 0.08731970936059952, -0.2952665686607361, -0.35701704025268555, 0.2824332118034363, 0.4405301511287689, -0.2284826785326004, 0.20788027346134186, -0.03053181990981102, -0.002511080354452133, -0.06784819811582565, -0.333634614944458, -0.18862958252429962, -0.34299436211586, -0.12133623659610748, 0.4337746202945709, 0.024118971079587936, 0.18100376427173615, -0.397763192653656, -0.022050246596336365, 0.19475018978118896, -0.11478576809167862, -0.03137917071580887, -0.31579840183258057, -0.26932820677757263, 0.04594212397933006, 0.38186123967170715, 0.09107609838247299, 0.3510974943637848, -0.06677018851041794, -0.09253590553998947, -0.007034188136458397, -0.05841520428657532, -0.07556740939617157, -0.18372172117233276, 0.24404777586460114, 0.009521394968032837, 0.28558361530303955, -0.17702966928482056, -0.5220325589179993, 0.5017471313476562, -0.2557019293308258, -0.05778475105762482, 0.31510722637176514, 0.2711130976676941, -0.24919065833091736, -0.07947706431150436, -0.3746880888938904, -0.126449853181839, -0.28060540556907654, -0.0594685822725296, 0.07482929527759552, 0.062019944190979004, 0.39746856689453125, 0.07085665315389633, 0.21601107716560364, -0.0025733537040650845, 0.1134377121925354, -0.04826240986585617, -0.09006351232528687, 0.18598486483097076, -0.31003302335739136, -0.31731775403022766, -0.12134303152561188, 0.009936507791280746, 0.334761381149292, 0.11073680967092514, -0.34895938634872437, -0.21413208544254303, -0.1049579530954361, 0.08531275391578674, -0.22132554650306702, -0.040067099034786224, 0.18285973370075226, 0.07230285555124283, -0.06572242826223373, -0.08664420247077942, 0.03598931059241295, 0.07123947888612747, 0.15234673023223877, 0.13496209681034088, -0.006304711103439331, 0.08922687917947769, -0.0848846584558487, 0.6008986830711365, 0.21869324147701263, -0.21437765657901764, 0.30028602480888367, -0.10327678173780441, 0.005145370960235596, -0.2086838185787201, -0.43980398774147034, 0.2641645073890686, -0.11523345112800598, 0.18292835354804993, 0.17231431603431702, -0.07949299365282059, -0.224784255027771, -0.19255901873111725, 0.06885257363319397, -0.17844751477241516, -0.27277886867523193, 0.14616918563842773, -0.21739399433135986, 0.278711199760437, -0.06886419653892517, 0.22253689169883728, -0.20522372424602509, -0.1679815649986267, 0.06985095143318176, 0.16693328320980072, -0.09054546803236008, 0.0796748697757721, -0.2440013438463211, -0.27610906958580017, -0.47995835542678833, -0.027839720249176025, 0.24103158712387085, 0.6437505483627319, -0.08638428151607513, 0.0371888130903244, 0.08072201162576675, 0.08174137026071548, 0.13737374544143677, -0.23013542592525482, 0.18226361274719238, 0.28913021087646484, 0.03182467818260193, -0.3197474181652069, -0.06433065980672836, -0.1401118040084839, 0.35801681876182556, 0.0766507014632225, -0.05443154275417328, -0.03723157197237015, -0.16765426099300385, 0.13983187079429626, 0.25994032621383667, -0.18729490041732788, -0.04411289095878601, -0.09173360466957092, -0.08980982005596161, -0.30776363611221313, -0.006154961884021759, -0.009947462007403374, 0.33565962314605713, 0.12297004461288452, 0.2657250761985779, -0.5462992787361145, 0.1166563555598259, 0.0901666134595871, 0.17458738386631012, 0.09595328569412231, 0.05794469267129898, 0.18724630773067474, -0.1666347086429596, 0.18320971727371216, -0.14590544998645782, 0.5633818507194519, 0.14737620949745178, -0.33079850673675537, -0.31952983140945435, 0.02166324108839035, 0.1674344539642334, 0.18398089706897736, -0.018585871905088425, -0.14112162590026855, -0.2769460678100586, -0.06146425008773804, -0.008709738962352276, 0.30457013845443726, 0.5610413551330566, 0.002627857029438019, -0.32718127965927124, -0.2585407495498657, 0.4828401207923889, -0.2850036919116974, 0.11732962727546692, 0.3215582072734833, 0.05337817966938019, -0.3131922781467438, 0.084138885140419, 0.0778321921825409, 0.6767758727073669, 0.16953909397125244, 0.3111468553543091, 0.382670134305954, 0.18392960727214813, 0.41426971554756165, -0.043089937418699265, 0.28471505641937256, -0.39273524284362793, -0.1334255039691925, -0.08068602532148361, -0.06546235829591751, 0.10708171129226685, -0.008873246610164642, -0.025437479838728905, 0.15062116086483002, 0.15688933432102203, -0.00414184108376503, 0.057148367166519165, 0.4492526054382324, -0.03878352791070938, -0.1968195140361786, -0.34702613949775696, 0.1560165286064148, -0.218000128865242, 0.29750877618789673, -0.09073378890752792, -0.06648379564285278, 0.05520419403910637, -0.06735199689865112, -0.25555890798568726, 0.25743910670280457, -0.29947447776794434, 0.4594572186470032, 0.05782230198383331, -0.4756819009780884, 0.19841602444648743, 0.2070971429347992, 0.17566309869289398, 0.0056986697018146515, -0.2995949983596802, 0.23877876996994019, -0.29009053111076355, -0.22186580300331116, -0.06728650629520416, 0.11194755136966705, 0.42007389664649963, -0.17255115509033203, -0.14637713134288788, 0.14794039726257324, -0.12065460532903671, -0.24150271713733673, 0.10395854711532593, 0.036866478621959686, 0.35248851776123047, -0.3925759494304657, -0.5152193307876587, -0.0024198591709136963, -0.18207573890686035, -0.17491023242473602, 0.17449983954429626, 0.023450501263141632, -0.18903043866157532, 0.15189506113529205, 0.14982786774635315, -0.19897998869419098, 0.11640661954879761, 0.248041570186615, -0.2495408058166504, 0.1462838351726532, 0.7637568712234497, 0.03394615277647972, 0.012805290520191193, -0.3138304054737091, -0.054288819432258606, 0.12508508563041687, -0.48199987411499023, -0.117127425968647, 0.12550345063209534, 0.16912518441677094, -0.1442471146583557, 0.4983649253845215, 0.06302104145288467, -0.018845796585083008, 0.24718539416790009, -0.5424141883850098, -0.10621819645166397, -0.04302156716585159, 0.017753571271896362, 0.23777532577514648, -0.0026244334876537323, 0.11488893628120422, 0.13550926744937897, 0.10338825732469559, -0.2726372480392456, 0.01425396092236042, -0.1576250046491623, 0.13799765706062317, 0.21783460676670074, -0.156531423330307, 0.22328241169452667, -0.07694792747497559, 0.15638604760169983, -0.09584718942642212, -0.12303435802459717, -0.24829313158988953, -0.25483769178390503, 0.1001116931438446, 0.2455677092075348, -0.16452157497406006, -0.030678901821374893, -0.10233378410339355, 0.02367737703025341, -0.23110593855381012, -0.008462677709758282, -0.11772799491882324, -0.2933432459831238, 0.3894321918487549, 0.04389798641204834, 0.2783690094947815, -0.11169030517339706, 0.12635564804077148, -0.30075696110725403, 0.14912104606628418, -0.018495766445994377, -0.07522984594106674, 0.27581286430358887, 0.09365370869636536, -0.4658876359462738, 0.005421258509159088, -0.40260612964630127, 0.03714848309755325, 0.36982110142707825, -0.4551108479499817, 0.1599588245153427, -0.13162781298160553, 0.09546592831611633, 0.46568435430526733, -0.27140867710113525, -0.003666238859295845, 0.34966492652893066, 0.2378421127796173, -0.2974173128604889, -0.18925969302654266, 0.23999105393886566, 0.061346378177404404, 0.03245894983410835, 0.027239494025707245, 0.046661365777254105, -0.3037494719028473, -0.32123422622680664, 0.08927888423204422, -0.029339447617530823, -0.2656012773513794, -0.011408248916268349, 0.3393259048461914, -0.002364363521337509, -0.05951504036784172, -0.050050199031829834, 0.21102145314216614, 0.03539269417524338, 0.382693886756897, -0.2926003038883209, 0.20699773728847504, 0.05926409363746643, 0.0439101979136467, -0.1111433282494545, -0.21921688318252563, 0.05030060186982155, -0.15784132480621338, 0.03383467346429825, 0.29528293013572693, 0.0998152568936348, 0.15308049321174622, -0.2855038344860077, -0.12453717738389969, -0.20802326500415802, 0.22792388498783112, -0.17904216051101685, -0.04890652373433113, -0.24299503862857819, 0.021016821265220642, -0.025876235216856003, -0.09469960629940033, -0.14167097210884094, -0.03817955404520035, 0.3095560669898987, 0.2532218396663666, -0.17226965725421906, -0.4555351138114929, 0.10826697945594788, 0.343293696641922, 0.18004779517650604, -0.24588416516780853, 0.3368539810180664, 0.1938144862651825, -0.06877827644348145, -0.014123741537332535, 0.3971104025840759, 0.43576866388320923, 0.33839404582977295, -0.3642207682132721, 0.08116737008094788, -0.2033812701702118, -0.056821562349796295, -0.023259896785020828, 0.2695125937461853, 0.10607263445854187, 0.11737698316574097, 0.4624234735965729, 0.12148629128932953, -0.12472666800022125, 0.04363801330327988, -0.08805640041828156, -0.2605327367782593, -0.2629472613334656, 0.519148051738739, 0.1857949197292328, -0.11438821256160736, -0.32065120339393616, 0.1899377554655075, -0.2749866843223572, -0.08091466128826141, 0.06285152584314346, 0.24058941006660461, 0.11315325647592545, -0.21382743120193481, 0.0705086886882782, 0.00031537003815174103, 0.7061744332313538, 0.48772209882736206, -0.017719529569149017, -0.36580461263656616, -0.11652335524559021, -0.5989872813224792, 0.21783673763275146, -0.3639688491821289, -0.26901891827583313, 0.28333741426467896, -0.07233219593763351, -0.28808239102363586, 0.24852760136127472, 0.1276199072599411, 0.1581963449716568, -0.05727727338671684, 0.09834736585617065, -0.49076512455940247, -0.1486053615808487, -0.030650608241558075, -0.007674772292375565, -0.08318096399307251, -0.2570525109767914, 0.1453227549791336, -0.434994101524353, 0.1161026880145073, 0.011986005119979382, 0.06934791803359985, -0.00024010799825191498, 0.09664079546928406, 0.35442498326301575, 0.1653243452310562, 0.5012480020523071, -0.03556079789996147, 0.003657044842839241, -0.19115549325942993, -0.1566222608089447, -0.22899235785007477, 0.13182333111763, 0.08762898296117783, 0.513311505317688, -0.026107802987098694, -0.06854598224163055, -0.26402658224105835, 0.40316739678382874, -0.08100703358650208, 0.08831661194562912, -0.13508054614067078, 0.07731503248214722, -0.07035044580698013, 0.22758443653583527, 0.26436465978622437, 0.42454099655151367, -0.17832155525684357, 0.20220951735973358, -0.2722909152507782, -0.4602455794811249, 0.32893505692481995, -0.6614810228347778, -0.5177905559539795, 0.07512334734201431, 0.11619234085083008, -0.14233440160751343, 0.058193907141685486, -0.6006345152854919, 0.07056643813848495, 0.24261236190795898, -0.11140517145395279, -0.3171197175979614, 0.21794460713863373, 0.016541773453354836, 0.0800008624792099, 0.043573688715696335, 0.4483562111854553, -0.1484730839729309, -0.15976768732070923, -0.0049342624843120575, -0.1632518768310547 ]
https://github.com/huggingface/datasets/issues/168
Loading 'wikitext' dataset fails
When you install `nlp` for the first time on a Colab runtime, it updates the `pyarrow` library that was already on colab. This update shows this message on colab: ``` WARNING: The following packages were previously imported in this runtime: [pyarrow] You must restart the runtime in order to use newly installed versions. ``` You just have to restart the runtime and it should be fine.
Loading the 'wikitext' dataset fails with Attribute error: Code to reproduce (From example notebook): import nlp wikitext_dataset = nlp.load_dataset('wikitext') Error: --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) <ipython-input-17-d5d9df94b13c> in <module>() 11 12 # Load a dataset and print the first examples in the training set ---> 13 wikitext_dataset = nlp.load_dataset('wikitext') 14 print(wikitext_dataset['train'][0]) 6 frames /usr/local/lib/python3.6/dist-packages/nlp/load.py in load_dataset(path, name, version, data_dir, data_files, split, cache_dir, download_config, download_mode, ignore_verifications, save_infos, **config_kwargs) 518 download_mode=download_mode, 519 ignore_verifications=ignore_verifications, --> 520 save_infos=save_infos, 521 ) 522 /usr/local/lib/python3.6/dist-packages/nlp/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, save_infos, dl_manager, **download_and_prepare_kwargs) 363 verify_infos = not save_infos and not ignore_verifications 364 self._download_and_prepare( --> 365 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs 366 ) 367 # Sync info /usr/local/lib/python3.6/dist-packages/nlp/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs) 416 try: 417 # Prepare split will record examples associated to the split --> 418 self._prepare_split(split_generator, **prepare_split_kwargs) 419 except OSError: 420 raise OSError("Cannot find data file. " + (self.MANUAL_DOWNLOAD_INSTRUCTIONS or "")) /usr/local/lib/python3.6/dist-packages/nlp/builder.py in _prepare_split(self, split_generator) 594 example = self.info.features.encode_example(record) 595 writer.write(example) --> 596 num_examples, num_bytes = writer.finalize() 597 598 assert num_examples == num_examples, f"Expected to write {split_info.num_examples} but wrote {num_examples}" /usr/local/lib/python3.6/dist-packages/nlp/arrow_writer.py in finalize(self, close_stream) 173 def finalize(self, close_stream=True): 174 if self.pa_writer is not None: --> 175 self.write_on_file() 176 self.pa_writer.close() 177 if close_stream: /usr/local/lib/python3.6/dist-packages/nlp/arrow_writer.py in write_on_file(self) 124 else: 125 # All good --> 126 self._write_array_on_file(pa_array) 127 self.current_rows = [] 128 /usr/local/lib/python3.6/dist-packages/nlp/arrow_writer.py in _write_array_on_file(self, pa_array) 93 def _write_array_on_file(self, pa_array): 94 """Write a PyArrow Array""" ---> 95 pa_batch = pa.RecordBatch.from_struct_array(pa_array) 96 self._num_bytes += pa_array.nbytes 97 self.pa_writer.write_batch(pa_batch) AttributeError: type object 'pyarrow.lib.RecordBatch' has no attribute 'from_struct_array'
66
Loading 'wikitext' dataset fails Loading the 'wikitext' dataset fails with Attribute error: Code to reproduce (From example notebook): import nlp wikitext_dataset = nlp.load_dataset('wikitext') Error: --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) <ipython-input-17-d5d9df94b13c> in <module>() 11 12 # Load a dataset and print the first examples in the training set ---> 13 wikitext_dataset = nlp.load_dataset('wikitext') 14 print(wikitext_dataset['train'][0]) 6 frames /usr/local/lib/python3.6/dist-packages/nlp/load.py in load_dataset(path, name, version, data_dir, data_files, split, cache_dir, download_config, download_mode, ignore_verifications, save_infos, **config_kwargs) 518 download_mode=download_mode, 519 ignore_verifications=ignore_verifications, --> 520 save_infos=save_infos, 521 ) 522 /usr/local/lib/python3.6/dist-packages/nlp/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, save_infos, dl_manager, **download_and_prepare_kwargs) 363 verify_infos = not save_infos and not ignore_verifications 364 self._download_and_prepare( --> 365 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs 366 ) 367 # Sync info /usr/local/lib/python3.6/dist-packages/nlp/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs) 416 try: 417 # Prepare split will record examples associated to the split --> 418 self._prepare_split(split_generator, **prepare_split_kwargs) 419 except OSError: 420 raise OSError("Cannot find data file. " + (self.MANUAL_DOWNLOAD_INSTRUCTIONS or "")) /usr/local/lib/python3.6/dist-packages/nlp/builder.py in _prepare_split(self, split_generator) 594 example = self.info.features.encode_example(record) 595 writer.write(example) --> 596 num_examples, num_bytes = writer.finalize() 597 598 assert num_examples == num_examples, f"Expected to write {split_info.num_examples} but wrote {num_examples}" /usr/local/lib/python3.6/dist-packages/nlp/arrow_writer.py in finalize(self, close_stream) 173 def finalize(self, close_stream=True): 174 if self.pa_writer is not None: --> 175 self.write_on_file() 176 self.pa_writer.close() 177 if close_stream: /usr/local/lib/python3.6/dist-packages/nlp/arrow_writer.py in write_on_file(self) 124 else: 125 # All good --> 126 self._write_array_on_file(pa_array) 127 self.current_rows = [] 128 /usr/local/lib/python3.6/dist-packages/nlp/arrow_writer.py in _write_array_on_file(self, pa_array) 93 def _write_array_on_file(self, pa_array): 94 """Write a PyArrow Array""" ---> 95 pa_batch = pa.RecordBatch.from_struct_array(pa_array) 96 self._num_bytes += pa_array.nbytes 97 self.pa_writer.write_batch(pa_batch) AttributeError: type object 'pyarrow.lib.RecordBatch' has no attribute 'from_struct_array' When you install `nlp` for the first time on a Colab runtime, it updates the `pyarrow` library that was already on colab. This update shows this message on colab: ``` WARNING: The following packages were previously imported in this runtime: [pyarrow] You must restart the runtime in order to use newly installed versions. ``` You just have to restart the runtime and it should be fine.
[ -0.11933787167072296, 0.08862762153148651, -0.008977562189102173, 0.2101970762014389, 0.36926883459091187, 0.026060476899147034, 0.44878125190734863, 0.4131019115447998, 0.43308186531066895, 0.012566350400447845, 0.12384475022554398, 0.3954298496246338, -0.15054915845394135, 0.021962398663163185, 0.12090599536895752, -0.42898884415626526, -0.033739618957042694, 0.36367267370224, -0.04146681725978851, 0.06297354400157928, -0.18768426775932312, 0.10851702094078064, -0.2651921510696411, 0.25500577688217163, -0.3057224452495575, -0.05702599883079529, 0.21592096984386444, 0.08206339925527573, -0.07891866564750671, -0.5590060949325562, 0.2770834267139435, -0.21704944968223572, 0.06445136666297913, 0.1147465780377388, -0.00010995575576089323, 0.2053060382604599, 0.33269721269607544, 0.030213048681616783, -0.5799461007118225, -0.18957753479480743, -0.47733205556869507, -0.11893893033266068, 0.29743239283561707, -0.24970686435699463, -0.028513532131910324, 0.053897108882665634, 0.0359114371240139, -0.07441218197345734, 0.29674699902534485, 0.5315060019493103, 0.2378886491060257, 0.5236920118331909, 0.15454894304275513, 0.03449388965964317, -0.07856868952512741, -0.1705709993839264, -0.08211544156074524, 0.2239675670862198, 0.07387721538543701, -0.39154455065727234, -0.013374187052249908, 0.1269238293170929, 0.15117298066616058, 0.26370134949684143, 0.5083715915679932, 0.01439365278929472, 0.240522563457489, -0.15062658488750458, 0.014946840703487396, 0.07640086114406586, 0.33538326621055603, -0.1649339497089386, -0.2716008424758911, -0.22435981035232544, 0.24766628444194794, -0.33475691080093384, 0.23653042316436768, -0.03667694330215454, -0.16220447421073914, -0.008196413516998291, -0.2692285478115082, -0.028147470206022263, -0.24182076752185822, 0.3526879549026489, -0.05821523442864418, 0.4996495246887207, 0.04358336701989174, 0.1427479386329651, -0.05806562677025795, -0.07545766234397888, 0.14037670195102692, -0.08709096908569336, -0.12929992377758026, 0.25781330466270447, -0.38315635919570923, -0.03646768257021904, -0.03494633734226227, -0.11697573214769363, -0.03162432834506035, 0.2635207772254944, 0.21998998522758484, -0.22487342357635498, 0.32383787631988525, 0.31541478633880615, 0.2229897528886795, 0.42046916484832764, 0.0727650374174118, 0.06359198689460754, -0.08280496299266815, 0.13602519035339355, -0.23372772336006165, -0.15548524260520935, -0.15553566813468933, -0.1765548437833786, 0.09289763867855072, -0.15460243821144104, 0.2260204702615738, -0.07111664861440659, -0.49847379326820374, 0.11472105234861374, -0.1434047818183899, 0.04629074037075043, 0.20511458814144135, 0.17948496341705322, -0.1276330202817917, 0.23223572969436646, 0.14412450790405273, 0.2825673222541809, -0.25197634100914, -0.04313591867685318, -0.16628901660442352, 0.24921348690986633, -0.2343837022781372, -0.18224917352199554, 0.24275432527065277, 0.19339996576309204, 0.39947783946990967, -0.10116807371377945, 0.11126448959112167, -0.20175530016422272, 0.22737514972686768, -0.04551905766129494, -0.12887901067733765, 0.25665292143821716, -0.21606186032295227, 0.15489818155765533, 0.2015911340713501, -0.28242355585098267, -0.08482378721237183, -0.10174476355314255, -0.2726359963417053, -0.3080921769142151, -0.12625107169151306, 0.2814151346683502, 0.14738166332244873, -0.24296489357948303, -0.15226304531097412, -0.06118728592991829, 0.14749251306056976, -0.3687242865562439, -0.1181056872010231, -0.4612589478492737, -0.22063860297203064, -0.023005355149507523, 0.39764270186424255, 0.20490938425064087, 0.13138651847839355, -0.10897210985422134, -0.11542153358459473, 0.0778549313545227, -0.031796716153621674, 0.12271356582641602, -0.43835708498954773, 0.542162299156189, -0.06105554848909378, 0.1188628226518631, 0.6413461565971375, -0.34278684854507446, -0.45785418152809143, 0.12356884032487869, -0.014279570430517197, 0.20932887494564056, -0.2253691852092743, -0.016720766201615334, -0.01322714239358902, -0.1845513880252838, 0.21231403946876526, 0.6192137598991394, -0.015043092891573906, 0.08247918635606766, -0.12689639627933502, -0.015548578463494778, 0.5002204775810242, 0.10985668003559113, 0.0925251692533493, -0.007928788661956787, -0.04170498996973038, 0.4966491162776947, -0.001312941312789917, -0.12597079575061798, -0.014860391616821289, -0.01362999901175499, -0.06468614935874939, -0.10460454225540161, -0.21782615780830383, -0.0738869458436966, -0.2776651978492737, 0.3043037950992584, -0.11754722893238068, -0.058532021939754486, -0.04715040326118469, 0.10618691146373749, -0.349112868309021, 0.16848912835121155, -0.4232686460018158, -0.3773188889026642, 0.17209309339523315, 0.15513339638710022, -0.01082327775657177, 0.23844148218631744, -0.2047417163848877, 0.21943697333335876, -0.2740284502506256, 0.0555008202791214, -0.21892832219600677, 0.1612892746925354, -0.05588278919458389, -0.04242236912250519, -0.009479653090238571, 0.3087974786758423, 0.03833126649260521, -0.017996463924646378, -0.30628857016563416, 0.2860310673713684, -0.12548403441905975, 0.08035675436258316, -0.03226444870233536, -0.14336974918842316, 0.06880594044923782, -0.0715431496500969, -0.1751839518547058, 0.20819173753261566, 0.33195099234580994, -0.18012648820877075, -0.043142788112163544, 0.11287614703178406, 0.12721233069896698, 0.08142244815826416, 0.09886389970779419, 0.16397254168987274, 0.14399227499961853, -0.06582605838775635, 0.10127925127744675, 0.07743123173713684, 0.2337103635072708, -0.09498713910579681, 0.20471057295799255, -0.15645138919353485, -0.16714569926261902, -0.11880623549222946, 0.3131193220615387, 0.17005854845046997, 0.16741743683815002, 0.08148663491010666, -0.27525243163108826, -0.0948745384812355, 0.07855819910764694, 0.14604850113391876, 0.40096455812454224, -0.05183255299925804, -0.10834132134914398, -0.052570924162864685, -0.4165973365306854, 0.071125827729702, 0.1707078069448471, 0.0366290844976902, 0.20912840962409973, 0.30185624957084656, 0.04131581261754036, 0.08731970936059952, -0.2952665686607361, -0.35701704025268555, 0.2824332118034363, 0.4405301511287689, -0.2284826785326004, 0.20788027346134186, -0.03053181990981102, -0.002511080354452133, -0.06784819811582565, -0.333634614944458, -0.18862958252429962, -0.34299436211586, -0.12133623659610748, 0.4337746202945709, 0.024118971079587936, 0.18100376427173615, -0.397763192653656, -0.022050246596336365, 0.19475018978118896, -0.11478576809167862, -0.03137917071580887, -0.31579840183258057, -0.26932820677757263, 0.04594212397933006, 0.38186123967170715, 0.09107609838247299, 0.3510974943637848, -0.06677018851041794, -0.09253590553998947, -0.007034188136458397, -0.05841520428657532, -0.07556740939617157, -0.18372172117233276, 0.24404777586460114, 0.009521394968032837, 0.28558361530303955, -0.17702966928482056, -0.5220325589179993, 0.5017471313476562, -0.2557019293308258, -0.05778475105762482, 0.31510722637176514, 0.2711130976676941, -0.24919065833091736, -0.07947706431150436, -0.3746880888938904, -0.126449853181839, -0.28060540556907654, -0.0594685822725296, 0.07482929527759552, 0.062019944190979004, 0.39746856689453125, 0.07085665315389633, 0.21601107716560364, -0.0025733537040650845, 0.1134377121925354, -0.04826240986585617, -0.09006351232528687, 0.18598486483097076, -0.31003302335739136, -0.31731775403022766, -0.12134303152561188, 0.009936507791280746, 0.334761381149292, 0.11073680967092514, -0.34895938634872437, -0.21413208544254303, -0.1049579530954361, 0.08531275391578674, -0.22132554650306702, -0.040067099034786224, 0.18285973370075226, 0.07230285555124283, -0.06572242826223373, -0.08664420247077942, 0.03598931059241295, 0.07123947888612747, 0.15234673023223877, 0.13496209681034088, -0.006304711103439331, 0.08922687917947769, -0.0848846584558487, 0.6008986830711365, 0.21869324147701263, -0.21437765657901764, 0.30028602480888367, -0.10327678173780441, 0.005145370960235596, -0.2086838185787201, -0.43980398774147034, 0.2641645073890686, -0.11523345112800598, 0.18292835354804993, 0.17231431603431702, -0.07949299365282059, -0.224784255027771, -0.19255901873111725, 0.06885257363319397, -0.17844751477241516, -0.27277886867523193, 0.14616918563842773, -0.21739399433135986, 0.278711199760437, -0.06886419653892517, 0.22253689169883728, -0.20522372424602509, -0.1679815649986267, 0.06985095143318176, 0.16693328320980072, -0.09054546803236008, 0.0796748697757721, -0.2440013438463211, -0.27610906958580017, -0.47995835542678833, -0.027839720249176025, 0.24103158712387085, 0.6437505483627319, -0.08638428151607513, 0.0371888130903244, 0.08072201162576675, 0.08174137026071548, 0.13737374544143677, -0.23013542592525482, 0.18226361274719238, 0.28913021087646484, 0.03182467818260193, -0.3197474181652069, -0.06433065980672836, -0.1401118040084839, 0.35801681876182556, 0.0766507014632225, -0.05443154275417328, -0.03723157197237015, -0.16765426099300385, 0.13983187079429626, 0.25994032621383667, -0.18729490041732788, -0.04411289095878601, -0.09173360466957092, -0.08980982005596161, -0.30776363611221313, -0.006154961884021759, -0.009947462007403374, 0.33565962314605713, 0.12297004461288452, 0.2657250761985779, -0.5462992787361145, 0.1166563555598259, 0.0901666134595871, 0.17458738386631012, 0.09595328569412231, 0.05794469267129898, 0.18724630773067474, -0.1666347086429596, 0.18320971727371216, -0.14590544998645782, 0.5633818507194519, 0.14737620949745178, -0.33079850673675537, -0.31952983140945435, 0.02166324108839035, 0.1674344539642334, 0.18398089706897736, -0.018585871905088425, -0.14112162590026855, -0.2769460678100586, -0.06146425008773804, -0.008709738962352276, 0.30457013845443726, 0.5610413551330566, 0.002627857029438019, -0.32718127965927124, -0.2585407495498657, 0.4828401207923889, -0.2850036919116974, 0.11732962727546692, 0.3215582072734833, 0.05337817966938019, -0.3131922781467438, 0.084138885140419, 0.0778321921825409, 0.6767758727073669, 0.16953909397125244, 0.3111468553543091, 0.382670134305954, 0.18392960727214813, 0.41426971554756165, -0.043089937418699265, 0.28471505641937256, -0.39273524284362793, -0.1334255039691925, -0.08068602532148361, -0.06546235829591751, 0.10708171129226685, -0.008873246610164642, -0.025437479838728905, 0.15062116086483002, 0.15688933432102203, -0.00414184108376503, 0.057148367166519165, 0.4492526054382324, -0.03878352791070938, -0.1968195140361786, -0.34702613949775696, 0.1560165286064148, -0.218000128865242, 0.29750877618789673, -0.09073378890752792, -0.06648379564285278, 0.05520419403910637, -0.06735199689865112, -0.25555890798568726, 0.25743910670280457, -0.29947447776794434, 0.4594572186470032, 0.05782230198383331, -0.4756819009780884, 0.19841602444648743, 0.2070971429347992, 0.17566309869289398, 0.0056986697018146515, -0.2995949983596802, 0.23877876996994019, -0.29009053111076355, -0.22186580300331116, -0.06728650629520416, 0.11194755136966705, 0.42007389664649963, -0.17255115509033203, -0.14637713134288788, 0.14794039726257324, -0.12065460532903671, -0.24150271713733673, 0.10395854711532593, 0.036866478621959686, 0.35248851776123047, -0.3925759494304657, -0.5152193307876587, -0.0024198591709136963, -0.18207573890686035, -0.17491023242473602, 0.17449983954429626, 0.023450501263141632, -0.18903043866157532, 0.15189506113529205, 0.14982786774635315, -0.19897998869419098, 0.11640661954879761, 0.248041570186615, -0.2495408058166504, 0.1462838351726532, 0.7637568712234497, 0.03394615277647972, 0.012805290520191193, -0.3138304054737091, -0.054288819432258606, 0.12508508563041687, -0.48199987411499023, -0.117127425968647, 0.12550345063209534, 0.16912518441677094, -0.1442471146583557, 0.4983649253845215, 0.06302104145288467, -0.018845796585083008, 0.24718539416790009, -0.5424141883850098, -0.10621819645166397, -0.04302156716585159, 0.017753571271896362, 0.23777532577514648, -0.0026244334876537323, 0.11488893628120422, 0.13550926744937897, 0.10338825732469559, -0.2726372480392456, 0.01425396092236042, -0.1576250046491623, 0.13799765706062317, 0.21783460676670074, -0.156531423330307, 0.22328241169452667, -0.07694792747497559, 0.15638604760169983, -0.09584718942642212, -0.12303435802459717, -0.24829313158988953, -0.25483769178390503, 0.1001116931438446, 0.2455677092075348, -0.16452157497406006, -0.030678901821374893, -0.10233378410339355, 0.02367737703025341, -0.23110593855381012, -0.008462677709758282, -0.11772799491882324, -0.2933432459831238, 0.3894321918487549, 0.04389798641204834, 0.2783690094947815, -0.11169030517339706, 0.12635564804077148, -0.30075696110725403, 0.14912104606628418, -0.018495766445994377, -0.07522984594106674, 0.27581286430358887, 0.09365370869636536, -0.4658876359462738, 0.005421258509159088, -0.40260612964630127, 0.03714848309755325, 0.36982110142707825, -0.4551108479499817, 0.1599588245153427, -0.13162781298160553, 0.09546592831611633, 0.46568435430526733, -0.27140867710113525, -0.003666238859295845, 0.34966492652893066, 0.2378421127796173, -0.2974173128604889, -0.18925969302654266, 0.23999105393886566, 0.061346378177404404, 0.03245894983410835, 0.027239494025707245, 0.046661365777254105, -0.3037494719028473, -0.32123422622680664, 0.08927888423204422, -0.029339447617530823, -0.2656012773513794, -0.011408248916268349, 0.3393259048461914, -0.002364363521337509, -0.05951504036784172, -0.050050199031829834, 0.21102145314216614, 0.03539269417524338, 0.382693886756897, -0.2926003038883209, 0.20699773728847504, 0.05926409363746643, 0.0439101979136467, -0.1111433282494545, -0.21921688318252563, 0.05030060186982155, -0.15784132480621338, 0.03383467346429825, 0.29528293013572693, 0.0998152568936348, 0.15308049321174622, -0.2855038344860077, -0.12453717738389969, -0.20802326500415802, 0.22792388498783112, -0.17904216051101685, -0.04890652373433113, -0.24299503862857819, 0.021016821265220642, -0.025876235216856003, -0.09469960629940033, -0.14167097210884094, -0.03817955404520035, 0.3095560669898987, 0.2532218396663666, -0.17226965725421906, -0.4555351138114929, 0.10826697945594788, 0.343293696641922, 0.18004779517650604, -0.24588416516780853, 0.3368539810180664, 0.1938144862651825, -0.06877827644348145, -0.014123741537332535, 0.3971104025840759, 0.43576866388320923, 0.33839404582977295, -0.3642207682132721, 0.08116737008094788, -0.2033812701702118, -0.056821562349796295, -0.023259896785020828, 0.2695125937461853, 0.10607263445854187, 0.11737698316574097, 0.4624234735965729, 0.12148629128932953, -0.12472666800022125, 0.04363801330327988, -0.08805640041828156, -0.2605327367782593, -0.2629472613334656, 0.519148051738739, 0.1857949197292328, -0.11438821256160736, -0.32065120339393616, 0.1899377554655075, -0.2749866843223572, -0.08091466128826141, 0.06285152584314346, 0.24058941006660461, 0.11315325647592545, -0.21382743120193481, 0.0705086886882782, 0.00031537003815174103, 0.7061744332313538, 0.48772209882736206, -0.017719529569149017, -0.36580461263656616, -0.11652335524559021, -0.5989872813224792, 0.21783673763275146, -0.3639688491821289, -0.26901891827583313, 0.28333741426467896, -0.07233219593763351, -0.28808239102363586, 0.24852760136127472, 0.1276199072599411, 0.1581963449716568, -0.05727727338671684, 0.09834736585617065, -0.49076512455940247, -0.1486053615808487, -0.030650608241558075, -0.007674772292375565, -0.08318096399307251, -0.2570525109767914, 0.1453227549791336, -0.434994101524353, 0.1161026880145073, 0.011986005119979382, 0.06934791803359985, -0.00024010799825191498, 0.09664079546928406, 0.35442498326301575, 0.1653243452310562, 0.5012480020523071, -0.03556079789996147, 0.003657044842839241, -0.19115549325942993, -0.1566222608089447, -0.22899235785007477, 0.13182333111763, 0.08762898296117783, 0.513311505317688, -0.026107802987098694, -0.06854598224163055, -0.26402658224105835, 0.40316739678382874, -0.08100703358650208, 0.08831661194562912, -0.13508054614067078, 0.07731503248214722, -0.07035044580698013, 0.22758443653583527, 0.26436465978622437, 0.42454099655151367, -0.17832155525684357, 0.20220951735973358, -0.2722909152507782, -0.4602455794811249, 0.32893505692481995, -0.6614810228347778, -0.5177905559539795, 0.07512334734201431, 0.11619234085083008, -0.14233440160751343, 0.058193907141685486, -0.6006345152854919, 0.07056643813848495, 0.24261236190795898, -0.11140517145395279, -0.3171197175979614, 0.21794460713863373, 0.016541773453354836, 0.0800008624792099, 0.043573688715696335, 0.4483562111854553, -0.1484730839729309, -0.15976768732070923, -0.0049342624843120575, -0.1632518768310547 ]
https://github.com/huggingface/datasets/issues/166
Add a method to shuffle a dataset
+1 for the naming convention About the `shuffle` method, from my understanding it should be done in `Dataloader` (better separation between dataset processing - usage)
Could maybe be a `dataset.shuffle(generator=None, seed=None)` signature method. Also, we could maybe have a clear indication of which method modify in-place and which methods return/cache a modified dataset. I kinda like torch conversion of having an underscore suffix for all the methods which modify a dataset in-place. What do you think?
25
Add a method to shuffle a dataset Could maybe be a `dataset.shuffle(generator=None, seed=None)` signature method. Also, we could maybe have a clear indication of which method modify in-place and which methods return/cache a modified dataset. I kinda like torch conversion of having an underscore suffix for all the methods which modify a dataset in-place. What do you think? +1 for the naming convention About the `shuffle` method, from my understanding it should be done in `Dataloader` (better separation between dataset processing - usage)
[ 0.15341970324516296, -0.03730911761522293, -0.06269705295562744, -0.12907102704048157, 0.17716176807880402, 0.08376292139291763, 0.25355902314186096, 0.2304866909980774, -0.21282443404197693, 0.3302724361419678, -0.07075724005699158, 0.7361384630203247, -0.2225145399570465, -0.20181237161159515, 0.02378031611442566, -0.08247491717338562, 0.2442183792591095, -0.21178612112998962, -0.16500341892242432, 0.02707308530807495, -0.11413010954856873, -0.38973167538642883, 0.02324393391609192, -0.14219394326210022, -0.192632794380188, -0.04983298480510712, -0.13309861719608307, 0.047407351434230804, -0.2461622804403305, -0.25444793701171875, -0.46736669540405273, 0.7014351487159729, -0.15274165570735931, 0.44993653893470764, -0.00011275451834080741, -0.29292935132980347, 0.35525083541870117, 0.032352738082408905, -0.3119533956050873, 0.0747515857219696, -0.17222651839256287, -0.07203930616378784, 0.0660715252161026, -0.20177467167377472, 0.2140471637248993, 0.05777463689446449, 0.05699215829372406, -0.12984256446361542, 0.16466763615608215, -0.08943458646535873, 0.17472465336322784, -0.09979483485221863, -0.3013962209224701, -0.01625060848891735, 0.535891592502594, 0.5136160254478455, -0.15510880947113037, 0.11450332403182983, 0.5382513999938965, 0.3613959848880768, -0.1880679726600647, 0.1561814397573471, -0.0936746671795845, -0.07671937346458435, 0.4886147379875183, -0.29398149251937866, -0.5896612405776978, 0.04415964335203171, 0.12085682153701782, 0.17901355028152466, 0.6000989675521851, -0.20126217603683472, -0.41691842675209045, -0.24042928218841553, 0.26788005232810974, -0.13337330520153046, 0.053863275796175, -0.19137147068977356, -0.012278126552700996, -0.10944874584674835, -0.1305657923221588, -0.1574680656194687, -0.005667895078659058, -0.05862967669963837, 0.4977305829524994, 0.5296996831893921, 0.1231481283903122, -0.019478976726531982, 0.11493993550539017, 0.004156133159995079, 0.5591576099395752, -0.10236528515815735, 0.014496374875307083, 0.2615664005279541, -0.11023662984371185, -0.10021752119064331, -0.007673203945159912, 0.2563236355781555, 0.24947959184646606, 0.11320216208696365, 0.3054144084453583, 0.2701372802257538, -0.06867599487304688, 0.07461681962013245, -0.0694335401058197, -0.07609102129936218, 0.032686445862054825, -0.044836778193712234, 0.2888600826263428, -0.3153233230113983, 0.17996321618556976, -0.11023535579442978, -0.15132616460323334, -0.050180915743112564, 0.03848579153418541, 0.12834709882736206, -0.30146920680999756, -0.10199946165084839, 0.19806645810604095, -0.5291097164154053, 0.06318286061286926, -0.4272424578666687, 0.07826315611600876, 0.11914767324924469, 0.2903629243373871, 0.11539565026760101, -0.1512453556060791, 0.04944976046681404, 0.29246801137924194, -0.12642434239387512, -0.06676366180181503, 0.03252572566270828, -0.47437068819999695, 0.23198053240776062, 0.16124890744686127, -0.2171573042869568, 0.10984234511852264, 0.08951140195131302, 0.15006841719150543, 0.2294977307319641, 0.16365379095077515, 0.2171190232038498, 0.3288629651069641, -0.1775386482477188, -0.4487603008747101, -0.06934981048107147, -0.09622685611248016, 0.29492223262786865, -0.2965110242366791, 0.2620726227760315, -0.27368471026420593, -0.2621244192123413, -0.06397725641727448, 0.12658852338790894, -0.025156481191515923, -0.10126572847366333, -0.23621273040771484, 0.200453981757164, 0.11881649494171143, -0.3033384084701538, 0.3808523416519165, 0.1356819123029709, 0.18717405200004578, -0.1035546362400055, -0.030980214476585388, 0.2598657011985779, -0.09520681947469711, -0.020418699830770493, -0.3389228880405426, -0.10294413566589355, 0.18109697103500366, 0.11230640113353729, -0.1615385115146637, 0.0239718034863472, -0.12279953062534332, -0.1310104876756668, 0.4819883406162262, 0.21702763438224792, -0.17160741984844208, -0.03480606898665428, -0.15349382162094116, -0.16826388239860535, 0.5057476758956909, 0.3218179941177368, -0.07960868626832962, -0.2573794722557068, 0.28341615200042725, -0.09260106086730957, -0.41317129135131836, 0.037118881940841675, -0.2332092970609665, -0.13467787206172943, 0.3806226849555969, 0.2380654364824295, -0.09189797937870026, 0.0011281445622444153, 0.04510446637868881, -0.4092573821544647, 0.1858006864786148, -0.13240274786949158, -0.1216471716761589, -0.25277459621429443, -0.029327038675546646, 0.3391715884208679, -0.08386552333831787, -0.09441989660263062, -0.03489362448453903, -0.15264242887496948, 0.28662461042404175, -0.10843142867088318, 0.028407566249370575, -0.29122626781463623, 0.038068924099206924, -0.3927568197250366, -0.004562433809041977, -0.12355250120162964, 0.03388376533985138, 0.24871020019054413, -0.24041318893432617, -0.23405325412750244, -0.2861451208591461, -0.19298097491264343, -0.1690482795238495, -0.12849801778793335, -0.2281816303730011, -0.05662786215543747, -0.0457606166601181, -0.046052150428295135, -0.2762996554374695, 0.2086232304573059, -0.030199453234672546, -0.08184055984020233, -0.17129072546958923, 0.2613540291786194, 0.08896918594837189, -0.1329398900270462, 0.43658551573753357, 0.3457511067390442, -0.06262791156768799, 0.09248363971710205, 0.18023309111595154, -0.056374888867139816, -0.016703473404049873, -0.09874461591243744, -0.29944705963134766, 0.26037925481796265, -0.2665765583515167, 0.09091369062662125, -0.2621859610080719, -0.3188473582267761, -0.04704446718096733, 0.3720082640647888, -0.26494911313056946, 0.16979576647281647, 0.11686848104000092, 0.2092738300561905, 0.35136836767196655, 0.1626693308353424, -0.32343074679374695, -0.13951706886291504, 0.26497000455856323, -0.15998415648937225, -0.022033989429473877, 0.3419928550720215, 0.20328086614608765, -0.24940192699432373, 0.14528727531433105, 0.06851375102996826, 0.3731105625629425, 0.3408050835132599, 0.01289009302854538, 0.07192347943782806, 0.2797623872756958, -0.1501166969537735, -0.048269666731357574, 0.16651830077171326, -0.28262218832969666, -0.011177107691764832, 0.17486006021499634, 0.12027392536401749, -0.15232913196086884, -0.383047878742218, 0.07604895532131195, 0.032207317650318146, -0.036178432404994965, -0.0776991993188858, -0.018525507301092148, -0.07378335297107697, -0.20089291036128998, -0.1971312165260315, -0.33908483386039734, -0.26242828369140625, 0.2674480974674225, 0.05849077180027962, -0.29521089792251587, 0.3880605101585388, 0.18326765298843384, 0.5487821698188782, -0.21524855494499207, -0.10796017199754715, -0.3561219274997711, -0.4411759078502655, 0.1263573169708252, 0.040955912321805954, 0.22586007416248322, -0.13597312569618225, 0.7025208473205566, -0.051003798842430115, -0.07998818904161453, -0.38227948546409607, -0.4698297083377838, -0.08981519937515259, -0.007440485060214996, -0.25710994005203247, 0.3828090727329254, -0.3270602226257324, 0.08849571645259857, -0.4728182256221771, -0.0689702108502388, -0.25522464513778687, -0.010261139832437038, 0.007352672517299652, -0.010249095968902111, 0.009277964942157269, -0.18420098721981049, -0.297576367855072, -0.13124588131904602, -0.40498000383377075, 0.07406392693519592, -0.6318072080612183, -0.05003028362989426, 0.012036633677780628, -0.28683432936668396, -0.13241471350193024, -0.22056835889816284, 0.1613696962594986, -0.13669803738594055, -0.7596725225448608, 0.1929112821817398, -0.20223365724086761, 0.05757443979382515, -0.1422055959701538, -0.06971224397420883, 0.02889280766248703, 0.64469975233078, 0.2754823565483093, -0.16693027317523956, 0.1485351026058197, 0.20165467262268066, -0.0016153417527675629, 0.15614518523216248, 0.3470449149608612, 0.28477516770362854, -0.12292218953371048, 0.062342092394828796, -0.2354118824005127, -0.11293698102235794, -0.10727015882730484, 0.3154533803462982, 0.10719148069620132, 0.3211006224155426, 0.016647707670927048, 0.6867961883544922, -0.6602866053581238, -0.09058023989200592, 0.019348766654729843, 0.20021799206733704, 0.1372469812631607, -0.06796813756227493, -0.09096921235322952, 0.5424603223800659, 0.24561822414398193, -0.3071584105491638, 0.19216017425060272, -0.04839339107275009, -0.16012318432331085, 0.0377633199095726, 0.13110843300819397, -0.14749905467033386, -0.14253102242946625, 0.34279879927635193, -0.3273079991340637, 0.08625176548957825, -0.04006374627351761, 0.1736985445022583, -0.2951990067958832, 0.00426042266190052, 0.14684435725212097, 0.2026423066854477, 0.32880905270576477, -0.27043211460113525, -0.4360988438129425, -0.021179500967264175, -0.1265946924686432, 0.29588425159454346, 0.24746280908584595, 0.1288381963968277, -0.013604693114757538, -0.1818048059940338, 0.12236541509628296, 0.2576228678226471, 0.482532262802124, -0.24698950350284576, -0.28336113691329956, -0.00556956697255373, -0.016896912828087807, -0.11249500513076782, 0.01521332934498787, -0.07555742561817169, 0.14184701442718506, 0.07289331406354904, 0.09383470565080643, -0.22726157307624817, -0.17682978510856628, 0.11363398283720016, 0.19612208008766174, 0.16109402477741241, -0.33927223086357117, -0.08296339213848114, -0.16535896062850952, -0.1599014699459076, 0.19259122014045715, -0.023795247077941895, -0.30083727836608887, -0.05560774356126785, 0.0588306300342083, -0.033482372760772705, 0.3097735047340393, 0.026684068143367767, 0.12922684848308563, 0.03208737075328827, 0.12182646244764328, 0.04498017206788063, 0.012238366529345512, 0.37701863050460815, 0.42766571044921875, -0.20563438534736633, -0.4869755208492279, -0.1709440052509308, 0.014515284448862076, -0.544160008430481, 0.24406978487968445, 0.23828580975532532, 0.2514322102069855, 0.2967532277107239, -0.14040786027908325, 0.17606514692306519, -0.2185070961713791, 0.07353821396827698, 0.0524371936917305, 0.007403591647744179, -0.5293945670127869, -0.9117103219032288, 0.5416221618652344, 0.37718626856803894, -0.32241398096084595, 0.5554153919219971, 0.0005215033888816833, -0.26848873496055603, 0.41509324312210083, 0.29519835114479065, 1.2055480480194092, -0.0814685970544815, 0.18745939433574677, -0.02921660989522934, -0.37673473358154297, 0.2766079008579254, -0.18090754747390747, 0.14940018951892853, -0.12933886051177979, -0.39364680647850037, 0.0539814755320549, -0.08897195756435394, 0.07474025338888168, 0.3279801607131958, -0.1248975396156311, 0.3453117311000824, -0.3932631015777588, 0.17307919263839722, 0.1445838361978531, 0.12142370641231537, -0.24394646286964417, -0.29141902923583984, -0.08227936178445816, 0.07282456755638123, -0.09159117937088013, -0.21026663482189178, -0.03348647058010101, -0.005069618113338947, -0.06700989603996277, 0.1408868432044983, -0.14437365531921387, -0.30578553676605225, 0.1522461175918579, -0.08004188537597656, -0.2814943790435791, -0.17594945430755615, 0.4433329105377197, 0.10858888179063797, 0.2535836100578308, 0.07984909415245056, 0.16678927838802338, 0.29200881719589233, 0.08756458759307861, 0.4055558145046234, -0.09556883573532104, -0.08928171545267105, 0.10746940225362778, 0.0821211040019989, -0.04872190207242966, 0.030049122869968414, 0.1108826994895935, -0.42860251665115356, -0.5298846960067749, -0.08485494554042816, 0.5617542862892151, -0.12693475186824799, 0.09261035919189453, 0.018752597272396088, -0.10598668456077576, -0.017499996349215508, 0.13704326748847961, 0.27878639101982117, -0.25865599513053894, 0.3623962700366974, -0.21821726858615875, 0.019990473985671997, -0.12006455659866333, 0.10490293055772781, -0.2883318066596985, -0.12774518132209778, 0.21792271733283997, -0.21949821710586548, -0.1973453313112259, -0.1657761037349701, 0.11748898774385452, 0.2331494688987732, -0.0043131038546562195, 0.03345120698213577, -0.13740438222885132, -0.2781899571418762, -0.154878631234169, -0.1567084938287735, 0.21951696276664734, 0.34901127219200134, -0.035354264080524445, 0.11037445068359375, -0.4601898789405823, 0.07673521339893341, 0.17053280770778656, 0.339868426322937, -0.16756471991539001, -0.046649035066366196, -0.11511198431253433, -0.019235437735915184, -0.32862091064453125, -0.14945954084396362, 0.22030961513519287, 0.271896094083786, 0.009397744201123714, 0.22101396322250366, -0.20140758156776428, -0.24054960906505585, 0.06552616506814957, 0.06110524758696556, -0.018643449991941452, -0.14807040989398956, -0.136543408036232, 0.1117107942700386, -0.070004403591156, 0.22943009436130524, 0.20375743508338928, -0.08181686699390411, -0.002820180729031563, -0.25039276480674744, 0.026482194662094116, 0.29474925994873047, 0.0050880685448646545, 0.4968264102935791, 0.6184056997299194, 0.08185262233018875, -0.21739929914474487, 0.20662274956703186, -0.02550245076417923, 0.03144025802612305, 0.12063337862491608, 0.14772577583789825, -0.02656325325369835, -0.02038218080997467, 0.11907102912664413, 0.32163241505622864, 0.18479938805103302, 0.06783656030893326, -0.09052760154008865, 0.28850188851356506, 0.19308561086654663, 0.4536784887313843, 0.09952259808778763, 0.4589993953704834, 0.0012191450223326683, -0.35758131742477417, 0.43149471282958984, 0.2065577208995819, -0.019028538838028908, -0.07362887263298035, -0.25354039669036865, -0.005758919753134251, 0.08054962754249573, -0.005396761000156403, -0.22965024411678314, 0.015039242804050446, -0.34494978189468384, -0.07759957015514374, 0.14512360095977783, -0.4788014888763428, 0.39619359374046326, 0.332478404045105, -0.12170460820198059, -0.02795587107539177, 0.37087854743003845, 0.009444046765565872, -0.26959070563316345, 0.13246040046215057, 0.46284517645835876, 0.9553410410881042, 0.32677602767944336, 0.1606336534023285, 0.13742715120315552, 0.14922769367694855, 0.16059575974941254, 0.6927065253257751, 0.34117984771728516, 0.08903785794973373, 0.38508859276771545, 0.22731807827949524, 0.14771753549575806, -0.3402736186981201, 0.27715736627578735, 0.07764454185962677, 0.25607383251190186, 0.030500538647174835, -0.06635507196187973, -0.19421203434467316, -0.25191742181777954, -0.08347739279270172, 0.012617062777280807, 0.05153481662273407, 0.5799620151519775, 0.23499678075313568, 0.25914260745048523, -0.352832555770874, 0.1266423463821411, 0.27182698249816895, 0.4411756098270416, -0.15010938048362732, -0.40551623702049255, 0.1420239806175232, -0.17151214182376862, 0.7451761960983276, -0.019770408049225807, -0.0012755580246448517, 0.24583125114440918, 0.0297375600785017, 0.11833062022924423, -0.3746963441371918, -0.03710087388753891, -0.015620463527739048, 0.12326830625534058, 0.143582284450531, -0.1799299567937851, -0.012089656665921211, 0.17657993733882904, -0.14344367384910583, 0.07518985867500305, -0.07518361508846283, -0.04627462849020958, -0.1835753172636032, 0.34420838952064514, 0.4996170997619629, -0.3088756501674652, 0.10623537749052048, -0.08491871505975723, -0.1956765353679657, -0.152765154838562, 0.04055900126695633, 0.1610233634710312, -0.20532816648483276, 0.09134747087955475, 0.059067435562610626, 0.2930760979652405, 0.2837909162044525, 0.27665358781814575, -0.007268272340297699, -0.14981023967266083, -0.39398568868637085, -0.38947147130966187, -0.13016006350517273, 0.4760115146636963, 0.003611767664551735, -0.03547678142786026, -0.1831987202167511, 0.03684135526418686, -0.06707916408777237, 0.14567501842975616, -0.12240751087665558, 0.05333136022090912, 0.19794222712516785, -0.3570578098297119, -0.12122124433517456, -0.13139547407627106, -0.022572768852114677, 0.18365514278411865, -0.06100377440452576, -0.30679768323898315, 0.4100829064846039, 0.044131651520729065, -0.3097110986709595, 0.1448235660791397, 0.06988351047039032, 0.11397437751293182, 0.21174201369285583, -0.019559184089303017, 0.3880780339241028, -0.002459865063428879, -0.18213079869747162, 0.026385031640529633, -0.14211739599704742, -0.5724023580551147, 0.12119133025407791, 0.007543865591287613, -0.01127082109451294, -0.038366176187992096, -0.2087758630514145, -0.4421337842941284, 0.5485703349113464, -0.35532087087631226, 0.08550772815942764, -0.7277728319168091, 0.1580512970685959, 0.24726268649101257, 0.08188771456480026, -0.04858039692044258, 0.11439920961856842, 0.05100693181157112, 0.2707606554031372, -0.22954674065113068, 0.1943162977695465, 0.5219249129295349, 0.16950571537017822, -0.2427390217781067, -0.3214063346385956, 0.2131146490573883, -0.08961199969053268, 0.029532795771956444, -0.3195725679397583, -0.08377432078123093, 0.23225100338459015, 0.003436245024204254, 0.07984833419322968, 0.38395145535469055, 0.12844954431056976, -0.04665762558579445, -0.22277207672595978, -0.0014488697052001953, -0.12010549753904343, -0.030344203114509583, -0.1148543506860733, -0.28843337297439575 ]
https://github.com/huggingface/datasets/issues/166
Add a method to shuffle a dataset
+1 for shuffle in `Dataloader`. Some `Dataloader` just store idxs of dataset and just shuffle those idxs, which might(?) be faster than do shuffle in dataset, especially when doing shuffle every epoch. Also +1 for the naming convention.
Could maybe be a `dataset.shuffle(generator=None, seed=None)` signature method. Also, we could maybe have a clear indication of which method modify in-place and which methods return/cache a modified dataset. I kinda like torch conversion of having an underscore suffix for all the methods which modify a dataset in-place. What do you think?
38
Add a method to shuffle a dataset Could maybe be a `dataset.shuffle(generator=None, seed=None)` signature method. Also, we could maybe have a clear indication of which method modify in-place and which methods return/cache a modified dataset. I kinda like torch conversion of having an underscore suffix for all the methods which modify a dataset in-place. What do you think? +1 for shuffle in `Dataloader`. Some `Dataloader` just store idxs of dataset and just shuffle those idxs, which might(?) be faster than do shuffle in dataset, especially when doing shuffle every epoch. Also +1 for the naming convention.
[ 0.07046912610530853, 0.016060680150985718, -0.08107659220695496, -0.13309331238269806, 0.18675068020820618, -0.0187651589512825, 0.3612540662288666, 0.24943788349628448, -0.131679967045784, 0.39812469482421875, -0.11517014354467392, 0.7459431290626526, -0.329746276140213, -0.21497079730033875, -0.04452383890748024, -0.07981559634208679, 0.26537975668907166, -0.10314787924289703, -0.20524251461029053, 0.056224264204502106, -0.12470731884241104, -0.3481493890285492, 0.02367374300956726, -0.14052905142307281, -0.08968819677829742, 0.012185977771878242, -0.11303728073835373, 0.07146783918142319, -0.2733202874660492, -0.2186136096715927, -0.4450691342353821, 0.7157347202301025, -0.10498249530792236, 0.5668812990188599, -0.00010911508434219286, -0.25887206196784973, 0.341472864151001, 0.032926835119724274, -0.35604047775268555, 0.14131292700767517, -0.13315880298614502, -0.07831927388906479, 0.038680948317050934, -0.27294304966926575, 0.2220698595046997, -0.03439811244606972, 0.11589886248111725, -0.11278638988733292, 0.11098956316709518, -0.14737367630004883, 0.18193306028842926, -0.09936554729938507, -0.3846818208694458, 0.002090875757858157, 0.5785200595855713, 0.46103358268737793, -0.20912012457847595, 0.18245236575603485, 0.5745754241943359, 0.3853920102119446, -0.3338279128074646, 0.1915491223335266, -0.1309424340724945, -0.10194765031337738, 0.5779693126678467, -0.3001551628112793, -0.539605438709259, 0.06476432830095291, -0.03939218819141388, 0.20368963479995728, 0.6476198434829712, -0.1902357041835785, -0.4480341076850891, -0.1510593444108963, 0.18167102336883545, -0.04967683181166649, 0.030789408832788467, -0.24211913347244263, -0.019576560705900192, -0.08532622456550598, -0.03737819567322731, -0.11297009140253067, -0.0025625452399253845, -0.13636088371276855, 0.42179763317108154, 0.5597809553146362, 0.15498219430446625, -0.028613999485969543, 0.23609377443790436, -0.022239409387111664, 0.5372053384780884, -0.06967544555664062, 0.073333740234375, 0.2372976392507553, -0.21732060611248016, -0.1808137595653534, -0.015532903373241425, 0.2117106020450592, 0.18797320127487183, 0.10574419796466827, 0.30266472697257996, 0.27213937044143677, 0.01313935499638319, 0.10956460237503052, -0.11448828876018524, -0.03855280578136444, 0.03346432000398636, -0.1094350814819336, 0.37629514932632446, -0.22859588265419006, 0.1526615470647812, -0.0816262885928154, -0.26237353682518005, -0.01783924177289009, 0.10215198993682861, 0.14140576124191284, -0.41330766677856445, 0.056872110813856125, 0.17914991080760956, -0.4913695454597473, 0.15620580315589905, -0.4261985421180725, 0.10317155718803406, 0.18962247669696808, 0.18701620399951935, 0.13204030692577362, -0.15503737330436707, -0.01278981938958168, 0.2115515172481537, -0.18474070727825165, -0.10223623365163803, 0.049186792224645615, -0.5071458220481873, 0.21948520839214325, 0.10138128697872162, -0.20319154858589172, 0.11597579717636108, 0.038739971816539764, 0.13651785254478455, 0.3439450263977051, 0.15330274403095245, 0.20069310069084167, 0.19247928261756897, -0.2556227147579193, -0.4391724765300751, -0.1295640617609024, -0.14438532292842865, 0.3152359127998352, -0.28039535880088806, 0.24230912327766418, -0.29306820034980774, -0.23662248253822327, -0.11380848288536072, 0.17173583805561066, -0.0018636789172887802, -0.06199972331523895, -0.2293262481689453, 0.2463962733745575, 0.07400402426719666, -0.3056389093399048, 0.41552603244781494, 0.07851912826299667, 0.17123503983020782, -0.12333525717258453, -0.07254981249570847, 0.2618197202682495, -0.11127029359340668, -0.01843605563044548, -0.23025277256965637, -0.1622873991727829, 0.20564895868301392, 0.11422555148601532, -0.19200311601161957, 0.007895059883594513, -0.14195314049720764, -0.1474458873271942, 0.490709513425827, 0.18126365542411804, -0.15881505608558655, -0.012354757636785507, -0.11443622410297394, -0.10257512331008911, 0.6056380867958069, 0.346712201833725, 0.056493885815143585, -0.334163635969162, 0.28792911767959595, -0.06120191514492035, -0.3102136254310608, 0.0981527790427208, -0.22475799918174744, -0.11841295659542084, 0.38146334886550903, 0.26114964485168457, -0.12281866371631622, -0.009177513420581818, 0.005660839378833771, -0.3373622000217438, 0.19471299648284912, -0.17169347405433655, -0.07312605530023575, -0.23634664714336395, -0.08199702203273773, 0.3089697062969208, -0.015054622665047646, -0.06498974561691284, -0.06311696022748947, -0.11575765162706375, 0.2917599081993103, 0.017649531364440918, 0.18580901622772217, -0.28128284215927124, 0.029021617025136948, -0.29896026849746704, -0.015439461916685104, -0.1746961772441864, 0.06162796914577484, 0.2616627812385559, -0.22212882339954376, -0.24753643572330475, -0.26461511850357056, -0.17950405180454254, -0.27028462290763855, -0.1623174101114273, -0.2577841281890869, -0.1003570482134819, -0.042109712958335876, 0.02730190008878708, -0.21384774148464203, 0.22047105431556702, -0.1302506923675537, -0.07318178564310074, -0.15486404299736023, 0.2480492889881134, 0.11062775552272797, 0.00122833251953125, 0.3039052188396454, 0.3766370415687561, -0.023014461621642113, 0.07872387766838074, 0.30762767791748047, -0.08393906056880951, 0.01286687608808279, -0.113603875041008, -0.27618730068206787, 0.25423115491867065, -0.2328185886144638, 0.08788279443979263, -0.2713027596473694, -0.3496968448162079, -0.008261455222964287, 0.3596827983856201, -0.3368625342845917, 0.23720180988311768, 0.1287110149860382, 0.27883732318878174, 0.40740007162094116, 0.25084683299064636, -0.3290276825428009, -0.1328149139881134, 0.3740355372428894, -0.12329556047916412, -0.07980716973543167, 0.3697066307067871, 0.12849651277065277, -0.29496195912361145, 0.11040454357862473, 0.08891580998897552, 0.369917631149292, 0.34708455204963684, 0.07254596054553986, -0.0338137149810791, 0.3311803936958313, -0.13318005204200745, -0.01005428284406662, 0.09692014753818512, -0.13696527481079102, -0.020879343152046204, 0.10166279971599579, 0.05811784043908119, -0.19984015822410583, -0.5052348375320435, 0.03356512635946274, 0.09178819507360458, 0.039761628955602646, -0.07728023082017899, 0.0556890144944191, -0.05265939235687256, -0.14146283268928528, -0.17583617568016052, -0.2801256775856018, -0.27149224281311035, 0.2531292140483856, 0.10748478770256042, -0.3382928669452667, 0.33368659019470215, 0.18314281105995178, 0.5316731929779053, -0.15840744972229004, -0.05841895937919617, -0.37355056405067444, -0.44719430804252625, 0.15386441349983215, 0.07673230767250061, 0.2285127341747284, -0.1827138513326645, 0.62154221534729, -0.03552672266960144, -0.06387991458177567, -0.3513759970664978, -0.3830471336841583, -0.06246744096279144, -0.004240598529577255, -0.22939243912696838, 0.3913441002368927, -0.2218211144208908, 0.1168425977230072, -0.49070870876312256, -0.00551114184781909, -0.3185169994831085, -0.10767830908298492, 0.027148257941007614, 0.02526855655014515, 0.013322245329618454, -0.16682860255241394, -0.24212738871574402, -0.1718030720949173, -0.48437097668647766, 0.03587113320827484, -0.5416013598442078, -0.002558864653110504, 0.013053703121840954, -0.2118823528289795, -0.10356774926185608, -0.11099300533533096, 0.15742060542106628, -0.15449371933937073, -0.8162310123443604, 0.22808252274990082, -0.18251276016235352, 0.07005315274000168, -0.22892838716506958, -0.11542695015668869, 0.08359426259994507, 0.6077492237091064, 0.22179467976093292, -0.06396851688623428, 0.13453041017055511, 0.13789771497249603, 0.03936528041958809, 0.1684257984161377, 0.2622101306915283, 0.30263298749923706, -0.18170002102851868, 0.02077934890985489, -0.2253602147102356, -0.08990492671728134, -0.1223532184958458, 0.2259427309036255, 0.1704082190990448, 0.36077219247817993, -0.015085242688655853, 0.739267885684967, -0.6775940656661987, -0.05375495180487633, -0.028204768896102905, 0.16907602548599243, 0.1355452984571457, -0.031219199299812317, -0.14977434277534485, 0.5597656965255737, 0.2193569540977478, -0.30563145875930786, 0.2308702915906906, -0.08712205290794373, -0.24886928498744965, -0.011342309415340424, 0.06998880207538605, -0.04159427434206009, -0.057805970311164856, 0.3630122244358063, -0.308701753616333, 0.013248398900032043, -0.06105121225118637, 0.12251830846071243, -0.32691752910614014, 0.00955672562122345, 0.15242862701416016, 0.22981369495391846, 0.2655055522918701, -0.243544340133667, -0.40989378094673157, 0.04422997683286667, -0.21469593048095703, 0.16246968507766724, 0.22661329805850983, 0.07950976490974426, 0.0974687933921814, -0.27765172719955444, 0.06662609428167343, 0.20896752178668976, 0.5011021494865417, -0.12202290445566177, -0.2938184142112732, -0.018135465681552887, -0.03504658490419388, -0.08999734371900558, -0.024985400959849358, -0.11665724217891693, 0.12557892501354218, 0.020660236477851868, 0.09768392890691757, -0.26590219140052795, -0.16656844317913055, 0.07446463406085968, 0.1325637698173523, 0.07664038240909576, -0.33591675758361816, -0.14411580562591553, -0.0007817372679710388, -0.154880553483963, 0.17788583040237427, -0.09627863764762878, -0.28561264276504517, -0.06143719702959061, -0.021943777799606323, 0.03640830144286156, 0.29397955536842346, 0.07353495061397552, 0.21434800326824188, 0.057642992585897446, 0.07084647566080093, 0.04822820797562599, -0.06505847722291946, 0.2817296087741852, 0.4365674555301666, -0.14282408356666565, -0.46511322259902954, -0.1063258945941925, 0.13580012321472168, -0.4808531403541565, 0.2497149407863617, 0.11656716465950012, 0.21496297419071198, 0.1901761293411255, -0.1473197042942047, 0.2178759127855301, -0.2683402895927429, -0.010570328682661057, 0.06111466884613037, 0.02821185812354088, -0.4887734353542328, -0.9323248863220215, 0.5213586091995239, 0.3647639751434326, -0.25824791193008423, 0.5743237137794495, 0.004262708127498627, -0.2041109949350357, 0.4123576879501343, 0.3018026351928711, 1.1519231796264648, -0.09614571928977966, 0.21850967407226562, 0.10118675976991653, -0.21098670363426208, 0.2955075800418854, -0.22981373965740204, 0.1557396948337555, -0.15915969014167786, -0.374551922082901, 0.06611065566539764, -0.13276301324367523, 0.04989730939269066, 0.26341748237609863, -0.25604599714279175, 0.25369793176651, -0.3084174394607544, 0.23445920646190643, 0.020437192171812057, 0.1914423406124115, -0.28746289014816284, -0.3286150395870209, -0.05082417279481888, 0.09983624517917633, -0.05818008631467819, -0.30008789896965027, -0.0473761260509491, -0.05468486249446869, -0.0937071442604065, 0.20287570357322693, -0.10154680907726288, -0.2596932053565979, 0.1305815726518631, -0.05969167500734329, -0.2657777965068817, -0.09930120408535004, 0.3667411804199219, 0.03436461463570595, 0.12549389898777008, -0.014878656715154648, 0.15132823586463928, 0.24826112389564514, 0.0390186607837677, 0.4666062593460083, -0.045037250965833664, -0.13180328905582428, 0.2440779209136963, 0.06336653977632523, 0.005416199564933777, 0.04518719017505646, 0.11685113608837128, -0.48749715089797974, -0.4285205006599426, -0.04317469149827957, 0.5997403264045715, -0.15402039885520935, 0.1164657473564148, 0.04915754124522209, -0.1950254887342453, -0.048161305487155914, 0.1584089994430542, 0.26105940341949463, -0.2325858175754547, 0.2867860794067383, -0.12047995626926422, 0.04268558323383331, -0.12510354816913605, 0.08967862278223038, -0.16128122806549072, -0.11361145228147507, 0.19274349510669708, -0.23611882328987122, -0.2805584669113159, -0.19183987379074097, 0.15163609385490417, 0.2131294459104538, -0.029194369912147522, 0.11034586280584335, -0.2356519103050232, -0.37427741289138794, -0.07946913689374924, -0.19264313578605652, 0.23270642757415771, 0.38618117570877075, -0.07074178755283356, 0.12319786846637726, -0.49343225359916687, 0.08805866539478302, 0.09681472182273865, 0.3548373878002167, -0.2407088279724121, -0.09278316795825958, -0.10960793495178223, -0.01845649443566799, -0.37880823016166687, -0.25162872672080994, 0.1554831564426422, 0.19931145012378693, 0.008189533837139606, 0.11616247892379761, -0.22873985767364502, -0.10670101642608643, 0.0968569964170456, 0.0808684229850769, -0.07961460202932358, -0.17176294326782227, -0.17849428951740265, 0.09644444286823273, -0.09953483939170837, 0.21651536226272583, 0.21649393439292908, -0.06108037009835243, -0.09319716691970825, -0.2493307888507843, 0.05122886225581169, 0.26158377528190613, -0.05960603058338165, 0.4868050813674927, 0.6710008382797241, 0.09724412113428116, -0.20602209866046906, 0.16008475422859192, 0.07366199791431427, 0.05982721596956253, 0.08756230026483536, 0.12772919237613678, -0.03641790896654129, -0.09296584129333496, 0.10473275929689407, 0.43972089886665344, 0.1550140082836151, 0.13724666833877563, -0.002953100949525833, 0.28087568283081055, 0.19764992594718933, 0.3586440980434418, 0.18620410561561584, 0.43419408798217773, 0.04112061485648155, -0.3968983292579651, 0.41255155205726624, 0.23424549400806427, -0.03565200790762901, -0.13067977130413055, -0.2073369026184082, -0.11624621599912643, 0.1384899765253067, 0.010382130742073059, -0.14836224913597107, 0.0067655593156814575, -0.2170865386724472, -0.13100266456604004, 0.09854564070701599, -0.43222272396087646, 0.36990875005722046, 0.24644313752651215, -0.10153896361589432, -0.07392758131027222, 0.4425271451473236, 0.017667256295681, -0.18382638692855835, 0.16107524931430817, 0.38854625821113586, 0.8879126310348511, 0.3873402774333954, 0.14933760464191437, 0.09435532242059708, 0.1737469732761383, 0.1442481279373169, 0.7236197590827942, 0.23297739028930664, 0.11240506172180176, 0.306879460811615, 0.25330430269241333, 0.10200010240077972, -0.22233843803405762, 0.2781137228012085, 0.14876259863376617, 0.13228186964988708, 0.011392110958695412, -0.035711176693439484, -0.225871741771698, -0.33672910928726196, -0.09032917767763138, -0.013228420168161392, 0.08498983085155487, 0.5246777534484863, 0.19993983209133148, 0.29892677068710327, -0.28856346011161804, 0.14000901579856873, 0.20761996507644653, 0.43459680676460266, -0.21771714091300964, -0.42913132905960083, 0.19271111488342285, -0.11657324433326721, 0.6738460063934326, 0.05358918756246567, -0.03115171566605568, 0.28961819410324097, 0.05447358638048172, 0.07489525526762009, -0.3837047815322876, -0.03711383789777756, -0.06795171648263931, 0.10829365253448486, 0.10009722411632538, -0.2352246195077896, 0.04172123223543167, 0.17708897590637207, -0.19993282854557037, 0.01671491377055645, 0.035178445279598236, -0.14711037278175354, -0.1254291981458664, 0.2332199513912201, 0.5211761593818665, -0.237413227558136, 0.10508320480585098, -0.020695827901363373, -0.31418749690055847, -0.1590212881565094, -0.029609158635139465, 0.07011168450117111, -0.16473010182380676, 0.04769185930490494, 0.08573590219020844, 0.24409577250480652, 0.3486328423023224, 0.279422789812088, 0.009575646370649338, -0.11959219723939896, -0.41816842555999756, -0.4080618917942047, -0.13012972474098206, 0.4473883807659149, 0.021276487037539482, -0.023290716111660004, -0.03652379661798477, 0.03883405402302742, -0.03901837021112442, 0.16553044319152832, -0.13707737624645233, 0.0162823349237442, 0.11755961179733276, -0.3692333400249481, -0.10993708670139313, -0.09451621770858765, -0.052483655512332916, 0.18723396956920624, -0.12909796833992004, -0.27491503953933716, 0.3199727535247803, 0.10629584640264511, -0.24907760322093964, 0.09010949730873108, 0.15677735209465027, 0.18383273482322693, 0.2313627004623413, -0.10574954748153687, 0.22225770354270935, -0.013971580192446709, -0.18763738870620728, 0.06642048060894012, -0.0860762894153595, -0.48912468552589417, 0.009832154959440231, 0.09424611926078796, 0.08463635295629501, -0.020323805510997772, -0.2257528454065323, -0.4579548239707947, 0.5146230459213257, -0.30500274896621704, 0.08379419147968292, -0.7182445526123047, 0.21888022124767303, 0.23858171701431274, 0.051791705191135406, -0.15571323037147522, 0.12745320796966553, 0.10186223685741425, 0.2214876413345337, -0.306476354598999, 0.16515344381332397, 0.4485180079936981, 0.10766971856355667, -0.2351183295249939, -0.2861567437648773, 0.16090810298919678, -0.04348716139793396, 0.1759272813796997, -0.3066348433494568, 0.002416163682937622, 0.21606141328811646, 0.011468697339296341, 0.10717827081680298, 0.41457101702690125, 0.05682267248630524, 0.005425583571195602, -0.20953336358070374, 0.02015567198395729, -0.1445859968662262, -0.030570605769753456, -0.114046111702919, -0.286007821559906 ]
https://github.com/huggingface/datasets/issues/166
Add a method to shuffle a dataset
As you might already know the issue of dataset shuffling came up in the nlp code [walkthrough](https://youtu.be/G3pOvrKkFuk?t=3204) by Yannic Kilcher
Could maybe be a `dataset.shuffle(generator=None, seed=None)` signature method. Also, we could maybe have a clear indication of which method modify in-place and which methods return/cache a modified dataset. I kinda like torch conversion of having an underscore suffix for all the methods which modify a dataset in-place. What do you think?
20
Add a method to shuffle a dataset Could maybe be a `dataset.shuffle(generator=None, seed=None)` signature method. Also, we could maybe have a clear indication of which method modify in-place and which methods return/cache a modified dataset. I kinda like torch conversion of having an underscore suffix for all the methods which modify a dataset in-place. What do you think? As you might already know the issue of dataset shuffling came up in the nlp code [walkthrough](https://youtu.be/G3pOvrKkFuk?t=3204) by Yannic Kilcher
[ 0.11682190001010895, 0.04799480736255646, -0.008072566241025925, -0.2174368053674698, 0.12888267636299133, 0.028690136969089508, 0.13635925948619843, 0.3606427013874054, -0.2647390067577362, 0.2979810833930969, 0.011636486276984215, 0.8511586785316467, -0.35360440611839294, -0.2320985347032547, 0.20139256119728088, -0.0704999640583992, 0.15841302275657654, -0.10356666147708893, -0.2414906620979309, 0.05236368626356125, -0.13913825154304504, -0.38281166553497314, -0.07822719216346741, -0.20003657042980194, -0.1313396841287613, -0.09400434046983719, -0.0838562548160553, 0.13230055570602417, -0.18401873111724854, -0.2935965657234192, -0.40796494483947754, 0.6355049014091492, -0.10218589007854462, 0.141923725605011, -0.00010813650442287326, -0.2722444534301758, 0.32626408338546753, 0.13107803463935852, -0.43214014172554016, 0.0446859672665596, -0.08185344189405441, -0.0996275544166565, 0.008636729791760445, -0.1526380032300949, 0.06552933901548386, 0.133896142244339, 0.1654345691204071, -0.14641225337982178, 0.24235820770263672, 0.0503099299967289, 0.2091446816921234, -0.03290949761867523, -0.19010062515735626, 0.15847332775592804, 0.500015914440155, 0.40686893463134766, -0.10122737288475037, 0.028628403320908546, 0.4395242929458618, 0.22933204472064972, -0.2657986283302307, 0.2744671702384949, -0.06643912196159363, -0.18149209022521973, 0.30786821246147156, -0.28791821002960205, -0.5689679384231567, 0.07428507506847382, 0.002542056143283844, 0.1787862926721573, 0.5037122964859009, -0.2853347659111023, -0.3903700113296509, -0.35262995958328247, 0.3302518129348755, -0.1884988397359848, 0.01998993381857872, -0.09641772508621216, -0.05681641772389412, -0.065743088722229, -0.24524743854999542, -0.15989479422569275, 0.03680577129125595, -0.021753497421741486, 0.5161420106887817, 0.6055984497070312, 0.20056740939617157, -0.003385506570339203, 0.24499833583831787, 0.08339650928974152, 0.5854994654655457, -0.009341701865196228, 0.03303410857915878, 0.2996441721916199, -0.14720846712589264, -0.20837269723415375, 0.05500422418117523, 0.2948372960090637, 0.23643571138381958, 0.1446128934621811, 0.32707327604293823, 0.2850995361804962, -0.0413031280040741, 0.0373535118997097, 0.00555175356566906, 0.03812015429139137, -0.0531015619635582, 0.05495534837245941, 0.2810686528682709, -0.30150800943374634, 0.23124900460243225, 0.0039704330265522, -0.04903712123632431, -0.0805974006652832, -0.010976310819387436, 0.13244397938251495, -0.19454514980316162, -0.06849859654903412, 0.036129243671894073, -0.581584095954895, -0.049632418900728226, -0.3245076537132263, 0.14889633655548096, 0.10779376327991486, 0.2770363688468933, 0.14072147011756897, -0.10792293399572372, -0.04817361384630203, 0.1835099756717682, -0.23938703536987305, -0.10505349934101105, 0.025838617235422134, -0.4939267635345459, 0.17078790068626404, 0.17374001443386078, -0.07522338628768921, 0.13901455700397491, 0.11294431239366531, 0.06702868640422821, 0.2374950647354126, 0.07884671539068222, 0.26584652066230774, 0.40570035576820374, -0.2036508470773697, -0.4380706250667572, -0.13343043625354767, -0.10840371251106262, 0.2805595397949219, -0.37445229291915894, 0.2528234124183655, -0.2730661630630493, -0.23034332692623138, -0.09223327785730362, 0.1565236747264862, -0.09696939587593079, -0.2698226273059845, -0.17591536045074463, 0.35305628180503845, 0.06264598667621613, -0.4234463572502136, 0.35462290048599243, 0.07788453996181488, 0.062280889600515366, -0.0040477365255355835, 0.01316218264400959, 0.3176637291908264, 0.046954233199357986, 0.02049926668405533, -0.24038174748420715, 0.0018367432057857513, 0.23789823055267334, 0.2391383945941925, -0.1998986154794693, -0.02130250632762909, -0.1616416722536087, -0.06127001345157623, 0.5229776501655579, 0.18964619934558868, -0.20806993544101715, 0.01318594254553318, -0.20950423181056976, -0.09727867692708969, 0.40916791558265686, 0.3883785307407379, -0.12241657078266144, -0.3362307846546173, 0.20757462084293365, 0.11739413440227509, -0.4104662537574768, 0.14842092990875244, -0.35707616806030273, -0.07999216765165329, 0.4687563180923462, 0.31442946195602417, -0.24346409738063812, 0.0008656084537506104, 0.0736551284790039, -0.1594800502061844, 0.2940753102302551, -0.13374529778957367, -0.13703759014606476, -0.2356628030538559, -0.06926599144935608, 0.1285506933927536, -0.17178989946842194, -0.11686234921216965, -0.10402961820363998, -0.23739522695541382, 0.2236291766166687, -0.05177978426218033, 0.11644107103347778, -0.28594231605529785, 0.08745808154344559, -0.3385695219039917, 0.07401024550199509, -0.16828931868076324, 0.09142814576625824, 0.11526427417993546, -0.10391539335250854, -0.16962841153144836, -0.2285809963941574, -0.06513697654008865, -0.14694300293922424, -0.18811997771263123, -0.32302334904670715, 0.029987530782818794, -0.11075762659311295, -0.0512310229241848, -0.07592646777629852, 0.46679210662841797, -0.08376152068376541, -0.06239962950348854, -0.09606416523456573, 0.2955295741558075, -0.0001280396245419979, -0.2677127718925476, 0.37398552894592285, 0.2960728704929352, 0.0336664654314518, 0.03514602407813072, 0.09655237197875977, 0.03362148255109787, -0.055597659200429916, -0.002862706780433655, -0.35009559988975525, 0.3163098692893982, -0.16839559376239777, 0.028980448842048645, -0.18219582736492157, -0.259762704372406, 0.06748052686452866, 0.22245916724205017, -0.3342287838459015, 0.16626106202602386, 0.2199169248342514, 0.21182839572429657, 0.28131088614463806, 0.22115716338157654, -0.4753611385822296, 0.06712473928928375, 0.49271857738494873, -0.05404502525925636, 0.018465377390384674, 0.3442241847515106, 0.2549561858177185, -0.3329375386238098, 0.12259703129529953, 0.12657086551189423, 0.2766244411468506, 0.4469534754753113, 0.05266091227531433, 0.14309267699718475, 0.09512927383184433, -0.16515396535396576, -0.04433964937925339, -0.06922027468681335, -0.17121747136116028, -0.028135478496551514, 0.2366148680448532, 0.14595487713813782, -0.28768190741539, -0.32734769582748413, -0.046935394406318665, 0.18919755518436432, -0.11021765321493149, -0.05883228778839111, -0.13308227062225342, -0.3061995208263397, -0.31879258155822754, -0.091669961810112, -0.3395279347896576, -0.30699676275253296, 0.39179301261901855, 0.010386649519205093, -0.320739209651947, 0.40423476696014404, 0.1464310735464096, 0.5348383188247681, -0.2747849225997925, -0.011294903233647346, -0.289760947227478, -0.43033820390701294, -0.08097183704376221, 0.07382315397262573, 0.28863632678985596, -0.04778318852186203, 0.712496280670166, 0.07893423736095428, -0.13275273144245148, -0.30444222688674927, -0.5318079590797424, -0.14086154103279114, 0.031390078365802765, -0.2137417048215866, 0.3421265482902527, -0.39242321252822876, 0.09011054039001465, -0.38826945424079895, -0.18767429888248444, -0.3428919315338135, -0.08024176210165024, 0.12296082079410553, 0.0008936121594160795, 0.022400351241230965, -0.2999294102191925, -0.34487777948379517, -0.07238498330116272, -0.4497668147087097, 0.07709702849388123, -0.6393803954124451, 0.07205817848443985, 0.056613847613334656, -0.23646996915340424, -0.16641613841056824, -0.3727893531322479, 0.007764505688101053, -0.12797115743160248, -0.5969659686088562, 0.1661369353532791, -0.1103721335530281, -0.06128161773085594, -0.25566285848617554, -0.05604027956724167, 0.013812439516186714, 0.6228575110435486, 0.19484566152095795, -0.13971582055091858, 0.10687966644763947, 0.07648171484470367, -0.08116455376148224, 0.1502828598022461, 0.4343812167644501, 0.16204985976219177, -0.12345749139785767, 0.11876971274614334, -0.18264323472976685, 0.0421149842441082, -0.015398535877466202, 0.3286910355091095, 0.034825846552848816, 0.25974372029304504, 0.13255813717842102, 0.5310879945755005, -0.52872633934021, -0.08033128082752228, 0.05685640126466751, 0.1760203093290329, 0.25830376148223877, -0.0953015461564064, 0.0022559519857168198, 0.5387944579124451, 0.29065489768981934, -0.2538539171218872, 0.254881888628006, -0.02697591483592987, -0.30920740962028503, 0.12093175947666168, 0.11350902915000916, -0.09752058982849121, -0.1581994742155075, 0.4676395356655121, -0.33594316244125366, 0.028550710529088974, 0.054026585072278976, 0.12251312285661697, -0.2675396502017975, -0.1677859127521515, 0.007245942950248718, 0.044103678315877914, 0.3468678891658783, -0.13314223289489746, -0.42491427063941956, -0.04560088738799095, -0.29521670937538147, 0.19519075751304626, 0.26279425621032715, 0.27446943521499634, -0.015354800969362259, -0.17939525842666626, 0.13794811069965363, 0.12701421976089478, 0.3991085886955261, -0.1852070391178131, -0.15685221552848816, -0.08336563408374786, 0.1259489506483078, -0.188872292637825, 0.05366368964314461, -0.1135919839143753, 0.10668984800577164, 0.1624174863100052, 0.05929364636540413, -0.26366719603538513, -0.19537656009197235, 0.1375112235546112, 0.08628328889608383, 0.16331283748149872, -0.32343965768814087, -0.07841938734054565, -0.19659337401390076, -0.13586948812007904, 0.25778844952583313, -0.006181832402944565, -0.2898063361644745, -0.032642677426338196, 0.08358684182167053, -0.050860486924648285, 0.22913575172424316, -0.00872723013162613, 0.1734144389629364, 0.05967726930975914, 0.21080243587493896, -0.024444978684186935, -0.008577700704336166, 0.3802027106285095, 0.20151680707931519, -0.1710917204618454, -0.3553250730037689, 0.0014365613460540771, -0.08022017031908035, -0.3615972697734833, 0.25072264671325684, 0.21086889505386353, 0.21007812023162842, 0.2614562511444092, -0.14829254150390625, 0.1507568061351776, -0.23374533653259277, -0.030188916251063347, -0.06791003793478012, 0.007533092051744461, -0.5339681506156921, -0.850721001625061, 0.5450388193130493, 0.32437318563461304, -0.30547937750816345, 0.44373416900634766, -0.024501599371433258, -0.3562780022621155, 0.3782588839530945, 0.32997438311576843, 1.0034148693084717, -0.07321797311306, 0.2827601432800293, 0.16532599925994873, -0.3735772371292114, 0.42987242341041565, -0.18536558747291565, 0.2949044108390808, -0.1998835951089859, -0.2698776125907898, 0.10410724580287933, -0.003648366779088974, -0.028021983802318573, 0.2834882140159607, -0.23576703667640686, 0.31240272521972656, -0.16876962780952454, 0.029425913468003273, 0.1295357197523117, 0.2141411006450653, -0.2698855698108673, -0.22723938524723053, -0.2418517768383026, 0.13649651408195496, -0.22734872996807098, -0.21245236694812775, 0.021456874907016754, -0.153864786028862, 0.007625635713338852, 0.06421872228384018, -0.17730730772018433, -0.11582362651824951, 0.11999880522489548, -0.13377809524536133, -0.194744274020195, -0.06841492652893066, 0.5051294565200806, 0.015424657613039017, 0.25004395842552185, 0.079307921230793, 0.1413501799106598, 0.2305995672941208, 0.0713905468583107, 0.3418620526790619, -0.046025656163692474, -0.03625087812542915, 0.1730339527130127, 0.0257420614361763, 0.0010229423642158508, -0.05954573303461075, 0.13033831119537354, -0.6264165043830872, -0.47416797280311584, -0.008947618305683136, 0.3204629421234131, -0.02561589702963829, 0.13314667344093323, 0.23690831661224365, -0.07707616686820984, -0.08411943912506104, 0.155293807387352, 0.23977696895599365, -0.24776561558246613, 0.358695387840271, -0.11311733722686768, -0.03689321503043175, -0.07945546507835388, 0.15876686573028564, -0.23023220896720886, 0.015225697308778763, 0.30054357647895813, -0.23293399810791016, -0.13038410246372223, -0.23513054847717285, -0.019167359918355942, 0.23810730874538422, -0.06477134674787521, 0.1519557386636734, -0.1365501582622528, -0.22427025437355042, -0.06621544063091278, -0.13610835373401642, 0.05216195434331894, 0.28071799874305725, -0.054642967879772186, 0.013736709952354431, -0.39536499977111816, 0.02080075442790985, 0.09897315502166748, 0.3021581768989563, -0.11496897041797638, 0.14674438536167145, -0.15087005496025085, 0.005486013367772102, -0.3782980740070343, -0.2402099370956421, 0.11466867476701736, 0.3197230100631714, 0.07316641509532928, 0.15753962099552155, -0.21056227385997772, -0.21844404935836792, 0.061161987483501434, 0.04334118962287903, -0.0498470775783062, -0.23751026391983032, -0.13929468393325806, 0.06823798269033432, -0.0031458158046007156, 0.20376445353031158, 0.15675532817840576, -0.12760643661022186, -0.0396701954305172, -0.20938266813755035, -0.11454766988754272, 0.17652088403701782, -0.019261471927165985, 0.566561222076416, 0.5050376057624817, 0.10235391557216644, 0.009776473045349121, 0.1858244240283966, -0.14052723348140717, -0.11232605576515198, 0.019576897844672203, 0.27676841616630554, -0.013695602305233479, 0.051071301102638245, 0.024322882294654846, 0.2786240577697754, 0.14185379445552826, 0.08936895430088043, -0.08146559447050095, 0.19317300617694855, 0.10954691469669342, 0.46652042865753174, 0.06183034926652908, 0.35824090242385864, 0.08235419541597366, -0.4855668842792511, 0.433749258518219, 0.2181694209575653, -0.16129952669143677, -0.0022096324246376753, -0.17344088852405548, 0.07349145412445068, 0.16542118787765503, -0.0031533464789390564, -0.10503298044204712, -0.06873223185539246, -0.28761154413223267, -0.07359579205513, 0.14936873316764832, -0.5486270189285278, 0.28238946199417114, 0.25944405794143677, -0.12507189810276031, -0.16082517802715302, 0.21708014607429504, -0.09828001260757446, -0.16002961993217468, 0.16166973114013672, 0.36011236906051636, 1.0041590929031372, 0.3350101709365845, 0.21191079914569855, 0.02436540648341179, 0.1491098701953888, 0.09338058531284332, 0.6433225870132446, 0.3787456154823303, 0.1495158076286316, 0.42943093180656433, 0.23128476738929749, 0.18977750837802887, -0.3021346926689148, 0.2600727677345276, 0.16610603034496307, 0.1658443808555603, 0.06580901145935059, -0.11546725034713745, -0.11934885382652283, -0.2659812569618225, -0.0077394768595695496, -0.053818587213754654, 0.10528234392404556, 0.5309207439422607, 0.1861802041530609, 0.16036473214626312, -0.4112885296344757, 0.20345571637153625, 0.2584475874900818, 0.4700566530227661, -0.1868491768836975, -0.2418614774942398, 0.02506955713033676, -0.2161090075969696, 0.7542927265167236, 0.041959330439567566, 0.024507038295269012, 0.2809264063835144, 0.04929652437567711, 0.03278772905468941, -0.4148062765598297, 0.009417558088898659, -0.15027837455272675, 0.17937582731246948, 0.2596074342727661, -0.12145662307739258, 0.021811634302139282, 0.13871455192565918, -0.11151230335235596, 0.20139595866203308, -0.04670374467968941, -0.07099397480487823, -0.08586271107196808, 0.31809762120246887, 0.5659241676330566, -0.25988879799842834, 0.04079597443342209, 0.02923090010881424, -0.13603153824806213, -0.06514131277799606, 0.006684139370918274, 0.14587560296058655, -0.17006900906562805, -0.05686246231198311, 0.09269653260707855, 0.35246071219444275, 0.4031991958618164, 0.2684459090232849, -0.10742595046758652, -0.11384622007608414, -0.3688148260116577, -0.5009533762931824, -0.18909788131713867, 0.3571246564388275, -0.05158909037709236, -0.02819455787539482, -0.022272981703281403, -0.01885063946247101, -0.018899474292993546, -0.044772833585739136, 0.03546411916613579, 0.013845519162714481, 0.07077300548553467, -0.3659389317035675, -0.01389177143573761, -0.20218069851398468, -0.07325328886508942, 0.14310500025749207, -0.12609410285949707, -0.2787935733795166, 0.3147033751010895, 0.04463796317577362, -0.225502610206604, 0.2509477138519287, -0.08069920539855957, 0.14602042734622955, 0.033939726650714874, 0.13528765738010406, 0.18925410509109497, 0.049448564648628235, -0.1137017086148262, -0.15378119051456451, -0.10955626517534256, -0.696385383605957, 0.00513167679309845, 0.05858881026506424, 0.05486645549535751, -0.06912767887115479, -0.10537703335285187, -0.41169583797454834, 0.5068255066871643, -0.2618786692619324, 0.08110778033733368, -0.58226478099823, 0.17405733466148376, 0.19211304187774658, 0.19045794010162354, -0.14750567078590393, 0.21940931677818298, 0.09773171693086624, 0.18745559453964233, -0.23057398200035095, 0.10078997910022736, 0.4633551836013794, 0.02165580540895462, -0.17914262413978577, -0.2164994180202484, 0.24227532744407654, 0.012542128562927246, -0.14014951884746552, -0.36441364884376526, -0.17112566530704498, 0.17598307132720947, -0.04166632145643234, 0.2560975253582001, 0.4652126431465149, 0.04604542627930641, -0.046317536383867264, -0.18348345160484314, 0.003576815128326416, -0.06137632578611374, -0.045355748385190964, 0.005076397210359573, -0.44769495725631714 ]
https://github.com/huggingface/datasets/issues/163
[Feature request] Add cos-e v1.0
Sounds good, @mariamabarham do you want to give a look? I think we should have two configurations so we can allow either version of the dataset to be loaded with the `1.0` version being the default maybe. Cc some authors of the great cos-e: @nazneenrajani @bmccann
I noticed the second release of cos-e (v1.11) is included in this repo. I wanted to request inclusion of v1.0, since this is the version on which results are reported on in [the paper](https://www.aclweb.org/anthology/P19-1487/), and v1.11 has noted [annotation](https://github.com/salesforce/cos-e/issues/2) [issues](https://arxiv.org/pdf/2004.14546.pdf).
46
[Feature request] Add cos-e v1.0 I noticed the second release of cos-e (v1.11) is included in this repo. I wanted to request inclusion of v1.0, since this is the version on which results are reported on in [the paper](https://www.aclweb.org/anthology/P19-1487/), and v1.11 has noted [annotation](https://github.com/salesforce/cos-e/issues/2) [issues](https://arxiv.org/pdf/2004.14546.pdf). Sounds good, @mariamabarham do you want to give a look? I think we should have two configurations so we can allow either version of the dataset to be loaded with the `1.0` version being the default maybe. Cc some authors of the great cos-e: @nazneenrajani @bmccann
[ -0.25224769115448, -0.26627662777900696, -0.12816189229488373, -0.3826155662536621, -0.41568833589553833, -0.10087842494249344, 0.01926921308040619, 0.2192733734846115, -0.08714987337589264, 0.3809596300125122, 0.057025469839572906, 0.37633565068244934, -0.015546978451311588, 0.38528212904930115, -0.07647644728422165, 0.14052700996398926, 0.08472945541143417, 0.3658882975578308, -0.08661079406738281, -0.1383291780948639, -0.20194730162620544, 0.11041327565908432, -0.06942527741193771, -0.05444689095020294, 0.14053845405578613, 0.17084501683712006, -0.19724217057228088, -0.07244206219911575, -0.22426962852478027, -0.20771417021751404, 0.35505446791648865, 0.4555104374885559, 0.2251390963792801, 0.06983229517936707, -0.00010584219126030803, -0.23818425834178925, 0.4025992751121521, -0.07296561449766159, -0.3339166045188904, -0.2384464591741562, -0.41790130734443665, -0.37712913751602173, 0.06569407880306244, -0.09597781300544739, 0.0635928139090538, 0.09290807694196701, 0.165022611618042, -0.1966181993484497, 0.06413659453392029, 0.01199940126389265, 0.3026270568370819, 0.17412422597408295, -0.08758500218391418, -0.34514859318733215, 0.33494803309440613, 0.44910693168640137, -0.3537370264530182, -0.17945384979248047, 0.3167720437049866, 0.013062799349427223, -0.06734389811754227, 0.41108182072639465, 0.22772833704948425, -0.18179528415203094, -0.025220878422260284, -0.06428169459104538, 0.18126511573791504, 0.007420070469379425, 0.14173460006713867, 0.11687794327735901, 0.5061965584754944, 0.12980082631111145, -0.4155391752719879, 0.2899824380874634, 0.0042788125574588776, -0.4935304820537567, 0.2665922939777374, -0.1062389686703682, -0.029614143073558807, 0.06423807144165039, 0.18722158670425415, -0.33883431553840637, -0.49577203392982483, 0.20651458203792572, -0.07795707136392593, 0.0905718207359314, -0.15790393948554993, -0.15367111563682556, 0.12449920177459717, 0.10767862945795059, -0.04348178580403328, 0.04136792942881584, -0.1763657182455063, 0.20438671112060547, -0.2431400567293167, -0.25906288623809814, 0.2833954691886902, 0.0010794848203659058, 0.45887553691864014, 0.08281122893095016, 0.15400557219982147, 0.04369700700044632, -0.07180524617433548, 0.10415889322757721, 0.15376774966716766, 0.20156876742839813, 0.4607425928115845, -0.05985722318291664, 0.399259090423584, 0.28717899322509766, 0.4768277406692505, 0.04200604557991028, 0.1551857739686966, 0.03422951325774193, -0.060273297131061554, -0.03193454071879387, 0.07255338132381439, -0.5815816521644592, -0.0960412546992302, 0.050023987889289856, -0.016388652846217155, 0.016601743176579475, -0.0381411649286747, 0.09351368248462677, 0.26915308833122253, 0.22098219394683838, 0.2916284203529358, -0.06439054012298584, -0.03568132221698761, -0.4872015416622162, -0.29533979296684265, -0.07494255900382996, -0.24456506967544556, 0.2993682324886322, 0.3277600109577179, -0.4222888946533203, 0.13820599019527435, -0.31309974193573, 0.2833767533302307, 0.04933544993400574, -0.1800794005393982, 0.3390868902206421, -0.22517606616020203, 0.12475088238716125, 0.0571318157017231, 0.08530951291322708, -0.2785830497741699, 0.5124998688697815, -0.19715215265750885, 0.12465766072273254, -0.3382834196090698, -0.44855180382728577, -0.38689565658569336, 0.28708532452583313, -0.07405140995979309, -0.1555139720439911, -0.15182039141654968, 0.366645485162735, -0.23981457948684692, -0.16440486907958984, -0.08050473779439926, 0.30108046531677246, -0.27182283997535706, -0.12088712304830551, 0.027140626683831215, 0.1432531774044037, -0.12814655900001526, -0.040095966309309006, -0.5082142353057861, -0.09364728629589081, -0.14256727695465088, -0.0299358032643795, -0.12085195630788803, -0.27354907989501953, -0.16993112862110138, -0.17351983487606049, 0.39941492676734924, -0.33321866393089294, -0.14639054238796234, 0.23286552727222443, -0.02869846299290657, -0.24974249303340912, 0.14834150671958923, -0.1565067619085312, 0.04671961069107056, -0.2703952491283417, -0.2281976044178009, 0.04900648817420006, -0.14814795553684235, -0.10404133796691895, -0.1473010778427124, -0.44127264618873596, -0.18274036049842834, 0.2603657841682434, 0.24740396440029144, 0.03346290811896324, 0.22792422771453857, -0.3996135890483856, 0.09001295268535614, -0.16994163393974304, 0.17561879754066467, -0.019764557480812073, 0.7601084113121033, 0.03279246389865875, 0.15846027433872223, 0.06392255425453186, -0.3966701626777649, 0.072017140686512, 0.09055504202842712, 0.16921880841255188, 0.22833265364170074, -0.37668663263320923, -0.035116229206323624, -0.04920877888798714, 0.0924886167049408, -0.09495942294597626, 0.20418159663677216, 0.12047573179006577, -0.13210250437259674, -0.015266137197613716, -0.028222693130373955, 0.2592668831348419, -0.24022403359413147, -0.15056893229484558, -0.07579411566257477, 0.1669905185699463, -0.1864805966615677, 0.039145682007074356, -0.1825115978717804, 0.12863826751708984, -0.07770638912916183, -0.06598884612321854, -0.12712708115577698, 0.3903436064720154, -0.09755901247262955, 0.2309858202934265, 0.05519171804189682, 0.32341521978378296, 0.1452329456806183, -0.17544732987880707, 0.0759684145450592, -0.1623838096857071, -0.10134466737508774, 0.1879149079322815, -0.22592872381210327, 0.3841080069541931, 0.06922255456447601, -0.15123456716537476, 0.009793076664209366, -0.008774468675255775, 0.06245605647563934, -0.09673010557889938, -0.3642008900642395, -0.11718831211328506, 0.1875610202550888, 0.11140070855617523, -0.44378674030303955, -0.2857012450695038, -0.30886203050613403, -0.08802051097154617, 0.03273773193359375, -0.06471449136734009, 0.11028410494327545, 0.20297086238861084, -0.0012312307953834534, -0.23741573095321655, 0.3081507980823517, -0.10598620772361755, 0.27346447110176086, 0.3854377567768097, -0.16695015132427216, -0.021352576091885567, -0.2048153430223465, 0.11400540173053741, 0.13839614391326904, 0.28159070014953613, 0.049787893891334534, 0.10224267840385437, 0.33488452434539795, 0.0942724347114563, -0.35023394227027893, -0.30894461274147034, -0.04541948437690735, 0.05769738554954529, -0.1550268679857254, -0.19572249054908752, -0.03369728475809097, 0.0711769312620163, 0.0014668731018900871, 0.14784643054008484, 0.16372095048427582, -0.19145001471042633, 0.40738916397094727, 0.26924827694892883, -0.22280830144882202, 0.3243130147457123, 0.03676050528883934, 0.8047572374343872, -0.12738476693630219, 0.18538667261600494, -0.24489080905914307, 0.05357366427779198, -0.3132987320423126, 0.2546367645263672, -0.22676552832126617, -0.2278539538383484, 0.46085324883461, -0.1008097305893898, 0.2458384782075882, -0.11814741045236588, -0.710155189037323, 0.0993439257144928, -0.10333842039108276, -0.0934276282787323, 0.030384879559278488, -0.21468715369701385, -0.07387495040893555, 0.01944867894053459, 0.05901804566383362, -0.4485968053340912, -0.48253822326660156, -0.10999584943056107, -0.2480611354112625, 0.13051073253154755, -0.36499321460723877, -0.48683127760887146, 0.1457364559173584, -0.2606459856033325, -0.20767094194889069, -0.05296732112765312, 0.16154083609580994, 0.2698114812374115, 0.12356317043304443, -0.058119576424360275, 0.06886454671621323, 0.05131315439939499, -0.3860320746898651, 0.04582135006785393, 0.3424378037452698, -0.3188911974430084, -0.4158436059951782, 0.12177214026451111, 0.01176094263792038, 0.15939834713935852, 0.17577922344207764, -0.37793803215026855, -0.3949560523033142, 0.27527832984924316, 0.12953241169452667, -0.1465400755405426, 0.06901150196790695, 0.5344856977462769, 0.06983806192874908, -0.2125401347875595, -0.07770796120166779, -0.4181544780731201, 0.18073099851608276, 0.4679790139198303, 0.1432102918624878, -0.2948802709579468, 0.2655479311943054, 0.19312997162342072, 0.32020461559295654, 0.16470693051815033, -0.07552267611026764, 0.12141594290733337, 0.13372141122817993, 0.21813765168190002, -0.2059158980846405, 0.010714784264564514, 0.016583528369665146, 0.052660323679447174, 0.17323453724384308, 0.5349012613296509, 0.19639068841934204, -0.40721458196640015, -0.3729562759399414, -0.22822962701320648, 0.09779622405767441, 0.0007362328469753265, -0.19381645321846008, 0.16490235924720764, 0.4404810667037964, -0.06908105313777924, -0.15247680246829987, -0.32904037833213806, -0.10789846628904343, 0.09796714782714844, 0.341804563999176, 0.15771329402923584, -0.0869843140244484, 0.09859819710254669, 0.17732641100883484, -0.28397229313850403, 0.35610532760620117, 0.14722807705402374, -0.00448613241314888, 0.005454163998365402, -0.10188017785549164, 0.1518637239933014, 0.019838128238916397, 0.18591204285621643, -0.21365278959274292, -0.1691332757472992, -0.14002752304077148, -0.08662868291139603, 0.08970747143030167, -0.06182154640555382, -0.11171166598796844, -0.2805309295654297, -0.09050551056861877, 0.05194654315710068, 0.027261152863502502, -0.1453278809785843, 0.6831691265106201, -0.1708131581544876, 0.01088428869843483, -0.28527602553367615, 0.05051666870713234, -0.23356223106384277, -0.0009023919701576233, -0.017939157783985138, -0.1901804506778717, 0.0005645868368446827, -0.10173071920871735, -0.15057502686977386, 0.23931922018527985, 0.013858221471309662, -0.006709195673465729, 0.14193929731845856, -0.1401241421699524, 0.011413986794650555, 0.11479295790195465, 0.08129565417766571, 0.047842904925346375, 0.37294766306877136, 0.12629090249538422, 0.22759854793548584, -0.26654502749443054, 0.1760541796684265, -0.19377732276916504, 0.06537359952926636, 0.2491949200630188, 0.03014063835144043, -0.0644269809126854, -0.2971719801425934, -0.22939123213291168, -0.12345979362726212, -0.20089112222194672, 0.2619425654411316, 0.04154493287205696, -0.37265825271606445, 0.028385156765580177, 0.3245104253292084, 0.0217527374625206, -0.27290040254592896, 0.2598053812980652, 0.21533340215682983, -0.2479899674654007, 0.3315582275390625, 0.0006592199206352234, 0.7347699403762817, 0.24774284660816193, -0.06344737112522125, 0.2377442717552185, -0.047846708446741104, 0.49948814511299133, -0.15337003767490387, 0.013707689940929413, 0.07889287173748016, -0.13275185227394104, -0.0938505232334137, 0.2984379231929779, 0.37705013155937195, -0.09205955266952515, -0.305799663066864, 0.17827339470386505, 0.36761540174484253, 0.24887409806251526, 0.08150076121091843, 0.18558421730995178, 0.33593571186065674, -0.30991533398628235, 0.1831713318824768, 0.18838095664978027, 0.007580280303955078, 0.1698153167963028, 0.0008190693333745003, -0.03634481504559517, 0.014058005064725876, -0.3261224031448364, -0.22565557062625885, -0.14075013995170593, 0.34428632259368896, -0.009299691766500473, -0.03576218709349632, -0.07223063707351685, 0.4353804588317871, -0.3726443946361542, 0.20798228681087494, 0.19100743532180786, -0.28965574502944946, 0.1257750540971756, 0.16576504707336426, 0.0537254735827446, -0.06958997994661331, -0.09448573738336563, 0.07702140510082245, -0.16798153519630432, -0.09140399843454361, 0.189395010471344, 0.21163736283779144, -0.1577852964401245, -0.08024833351373672, -0.14002539217472076, -0.03212738782167435, 0.048933420330286026, 0.3648076057434082, 0.5734390020370483, 0.19827164709568024, -0.2803202271461487, 0.2468816488981247, 0.22918647527694702, -0.11168700456619263, -0.0778992548584938, 0.15205690264701843, -0.10007636249065399, -0.20936469733715057, 0.415103942155838, 0.4110584557056427, -0.4059254229068756, -0.04722770303487778, -0.08289705216884613, -0.08956657350063324, -0.2743074893951416, -0.046448104083538055, 0.12019777297973633, -0.5605073571205139, -0.19973398745059967, 0.06941709667444229, -0.20039409399032593, 0.18112967908382416, 0.7872417569160461, 0.14098192751407623, 0.17524442076683044, -0.052009500563144684, -0.01895716041326523, -0.18221953511238098, 0.06492500007152557, -0.4313207268714905, 0.3021860420703888, -0.026818402111530304, -0.15484997630119324, -0.1137983649969101, 0.039809949696063995, -0.4568736255168915, -0.19220419228076935, 0.2623073160648346, -0.13239455223083496, 0.3721925616264343, 0.31053876876831055, 0.26454272866249084, 0.0035342182964086533, 0.21191704273223877, -0.14141178131103516, -0.333880752325058, -0.20281782746315002, 0.06465159356594086, 0.09212350845336914, 0.0667714774608612, 0.17337292432785034, -0.038243748247623444, -0.11493062973022461, -0.2642994821071625, 0.03255076706409454, 0.26225921511650085, -0.029773660004138947, -0.1581733524799347, 0.18510623276233673, -0.24484004080295563, -0.07198455184698105, 0.15404728055000305, 0.38235968351364136, 0.18938860297203064, 0.08267569541931152, -0.06526079773902893, 0.4259437620639801, -0.007294395938515663, -0.11266497522592545, 0.04660394415259361, 0.37811368703842163, -0.2774096727371216, 0.30024269223213196, 0.018675632774829865, -0.02458496391773224, -0.08572185039520264, -0.03785357624292374, 0.13398253917694092, -0.4113796651363373, -0.07079395651817322, 0.028906865045428276, 0.033668652176856995, 0.3719578683376312, -0.2801140248775482, 0.05250063166022301, -0.058175649493932724, -0.05517273396253586, 0.21768659353256226, 0.19678053259849548, 0.3475119173526764, 0.015416152775287628, 0.7643714547157288, 0.03258518502116203, 0.012449834495782852, -0.05361083149909973, 0.4525490999221802, 0.10950776934623718, 0.045196693390607834, 0.09280022978782654, 0.08463907241821289, 0.06753037869930267, 0.17613506317138672, -0.06873666495084763, 0.11972752958536148, -0.08243217319250107, 0.42201220989227295, 0.5082921385765076, 0.009177826344966888, -0.33825474977493286, 0.07828853279352188, 0.2829189896583557, 0.08967138826847076, 0.03318411111831665, 0.3009576201438904, -0.16590344905853271, 0.011286970227956772, 0.07916279137134552, -0.7445868849754333, -0.15216247737407684, 0.02000812441110611, -0.155373677611351, -0.15849339962005615, -0.13477903604507446, -0.40616291761398315, -0.06609324365854263, 0.16439154744148254, 0.007545694708824158, 0.15479019284248352, -0.1995060294866562, 0.01569114625453949, -0.10653690248727798, -0.007982708513736725, 0.11110538989305496, 0.22404587268829346, 0.026626896113157272, 0.36857137084007263, -0.49482351541519165, -0.2772010266780853, 0.30086567997932434, 0.32901662588119507, -0.016461383551359177, -0.07080626487731934, 0.3832434117794037, 0.12766510248184204, 0.08333244919776917, -0.10145258903503418, 0.04092025384306908, 0.08495263755321503, 0.09764733910560608, 0.1466633528470993, 0.20908622443675995, 0.20400641858577728, -0.13698998093605042, 0.24193665385246277, -0.07487709820270538, -0.1394321322441101, -0.2820703387260437, 0.11750280112028122, 0.16903455555438995, 0.0901317372918129, 0.03028181940317154, 0.16643035411834717, 0.04115692526102066, -0.37090593576431274, -0.07294456660747528, -0.05760661140084267, -0.12956950068473816, -0.16902755200862885, 0.13554304838180542, -0.16934236884117126, -0.04852930083870888, 0.2299572080373764, 0.007202532142400742, -0.013600745238363743, -0.4024967551231384, 0.05314408987760544, 0.3580959439277649, 0.1434372067451477, -0.07688301801681519, 0.06701754033565521, 0.2265026569366455, 0.2597042918205261, -0.1298808455467224, 0.15739184617996216, -0.25790953636169434, 0.36999502778053284, 0.09451122581958771, -0.30971986055374146, 0.16183745861053467, 0.459486186504364, -0.028369007632136345, -0.11244361847639084, -0.15681955218315125, -0.10699601471424103, 0.047833628952503204, 0.07359515130519867, -0.24181397259235382, 0.07018910348415375, 0.13543951511383057, -0.0018167346715927124, 0.5354020595550537, 0.02570289932191372, 0.17436589300632477, -0.21326467394828796, -0.04778818413615227, -0.44986993074417114, -0.20575058460235596, -0.08338746428489685, 0.02801726758480072, 0.08583532273769379, 0.08767566829919815, -0.0047042216174304485, 0.05368724837899208, -0.03178006038069725, 0.2798510193824768, -0.01412036269903183, 0.0002255957224406302, -0.2494332492351532, 0.4703900218009949, -0.3713134229183197, -0.27084317803382874, -0.04918579384684563, -0.1553100049495697, 0.1130797415971756, -0.17197920382022858, -0.10465703159570694, -0.17666980624198914, 0.28707367181777954, -0.0711374580860138, 0.051783133298158646, -0.18545489013195038, 0.32384422421455383, 0.31228435039520264, -0.00006291083991527557, -0.33270448446273804, 0.0687362477183342, 0.19568848609924316, 0.17945092916488647, -0.13641545176506042, 0.26792410016059875, -0.07479578256607056, 0.023499745875597, -0.1861783266067505, -0.011183060705661774, -0.19011461734771729, -0.06747496873140335, 0.03286023810505867, -0.37482649087905884 ]
https://github.com/huggingface/datasets/issues/163
[Feature request] Add cos-e v1.0
cos_e v1.0 is related to CQA v1.0 but only CQA v1.11 dataset is available on their website. Indeed their is lots of ids in cos_e v1, which are not in CQA v1.11 or the other way around. @sarahwie, @thomwolf, @nazneenrajani, @bmccann do you know where I can find CQA v1.0
I noticed the second release of cos-e (v1.11) is included in this repo. I wanted to request inclusion of v1.0, since this is the version on which results are reported on in [the paper](https://www.aclweb.org/anthology/P19-1487/), and v1.11 has noted [annotation](https://github.com/salesforce/cos-e/issues/2) [issues](https://arxiv.org/pdf/2004.14546.pdf).
50
[Feature request] Add cos-e v1.0 I noticed the second release of cos-e (v1.11) is included in this repo. I wanted to request inclusion of v1.0, since this is the version on which results are reported on in [the paper](https://www.aclweb.org/anthology/P19-1487/), and v1.11 has noted [annotation](https://github.com/salesforce/cos-e/issues/2) [issues](https://arxiv.org/pdf/2004.14546.pdf). cos_e v1.0 is related to CQA v1.0 but only CQA v1.11 dataset is available on their website. Indeed their is lots of ids in cos_e v1, which are not in CQA v1.11 or the other way around. @sarahwie, @thomwolf, @nazneenrajani, @bmccann do you know where I can find CQA v1.0
[ -0.02323297969996929, -0.18676257133483887, -0.1784631311893463, -0.3313111662864685, -0.543575644493103, 0.06571660190820694, -0.17831754684448242, 0.12594041228294373, -0.34406134486198425, 0.46897244453430176, 0.23541809618473053, 0.12405353039503098, 0.07489980012178421, 0.4212988317012787, 0.01564255729317665, 0.08941133320331573, 0.1170303076505661, 0.406491219997406, 0.15641197562217712, -0.07623055577278137, -0.046966616064310074, 0.3286638855934143, -0.2688593864440918, -0.012009650468826294, 0.16894976794719696, 0.11247767508029938, -0.32557442784309387, -0.26800337433815, -0.14709489047527313, -0.1698809564113617, 0.43014776706695557, 0.2873973250389099, 0.3542037606239319, -0.008297361433506012, -0.00011804484529420733, -0.24945007264614105, 0.26780956983566284, -0.06388570368289948, -0.22480235993862152, -0.2884759306907654, -0.3987274169921875, -0.3756749629974365, -0.12163152545690536, -0.01597992330789566, 0.13137945532798767, 0.05806247144937515, 0.20080415904521942, 0.015675567090511322, -0.1259215921163559, 0.10718554258346558, 0.18949468433856964, 0.18075989186763763, 0.1411360800266266, -0.37958773970603943, 0.1705755591392517, 0.3191807270050049, -0.2734743356704712, -0.22853131592273712, 0.26993852853775024, 0.025855449959635735, 0.3077666163444519, 0.48162466287612915, 0.28743353486061096, -0.34094667434692383, -0.17208853363990784, -0.013270447961986065, 0.11673402041196823, -0.12508021295070648, 0.278350830078125, -0.045265890657901764, 0.5306004285812378, 0.17983436584472656, -0.385719358921051, 0.41310426592826843, 0.045332618057727814, -0.47312435507774353, 0.2673741579055786, -0.013816935941576958, 0.06820391118526459, 0.11895669996738434, 0.2374480813741684, -0.3053060472011566, -0.43842682242393494, 0.16605904698371887, -0.16326303780078888, 0.005222931504249573, -0.1122971922159195, -0.18681931495666504, 0.06563184410333633, 0.045105695724487305, -0.04875512421131134, 0.18406344950199127, -0.25097814202308655, 0.26039379835128784, -0.2296655923128128, -0.38305339217185974, 0.28179845213890076, 0.02180880308151245, 0.32971569895744324, -0.03462182730436325, 0.15862126648426056, -0.21944305300712585, -0.24751387536525726, 0.0007933862507343292, 0.12062603235244751, 0.3228635787963867, 0.35899627208709717, 0.05294748768210411, 0.14591938257217407, 0.23537757992744446, 0.44060078263282776, -0.04040203243494034, 0.07127870619297028, 0.012920753099024296, -0.1671767234802246, 0.05689511075615883, 0.06021212786436081, -0.604914665222168, -0.1965157836675644, -0.0045784348621964455, -0.2337327003479004, 0.06281221657991409, -0.14380180835723877, 0.03192523494362831, 0.4180452823638916, 0.21806323528289795, 0.22002337872982025, -0.19355106353759766, -0.009807160124182701, -0.6159117817878723, -0.2765556275844574, -0.014677431434392929, -0.06726372241973877, 0.306366503238678, 0.21016468107700348, -0.36181551218032837, 0.22054989635944366, -0.33286556601524353, 0.2242404818534851, 0.055309563875198364, -0.15858924388885498, 0.4364674985408783, -0.2266082763671875, 0.18580660223960876, -0.022986937314271927, 0.0607713907957077, -0.28177544474601746, 0.49024391174316406, -0.21706902980804443, 0.18422327935695648, -0.3824464678764343, -0.43082109093666077, -0.5014216899871826, 0.14038534462451935, 0.050710223615169525, -0.19810721278190613, 0.0367366299033165, 0.24654178321361542, -0.2765117585659027, -0.17123271524906158, 0.022724032402038574, 0.2964547872543335, -0.1747254580259323, -0.13263054192066193, -0.005533061921596527, 0.1790473610162735, -0.2631233036518097, -0.062196895480155945, -0.39297595620155334, 0.07706014811992645, -0.11440979689359665, 0.058696337044239044, -0.06112263351678848, -0.3164397180080414, -0.14322930574417114, -0.2597506642341614, 0.3386315703392029, -0.6128676533699036, -0.5238029956817627, 0.1491822898387909, -0.0313180573284626, -0.2901613712310791, 0.2189871072769165, 0.005280697252601385, 0.007204392459243536, -0.16219687461853027, -0.20951637625694275, -0.03626919537782669, -0.2873411774635315, -0.3331364691257477, 0.021973546594381332, -0.4311451315879822, -0.07969622313976288, 0.10743045806884766, 0.09247298538684845, 0.0935380756855011, 0.23239171504974365, -0.6215129494667053, 0.14444540441036224, -0.019561272114515305, 0.010354696772992611, 0.06936395168304443, 0.6898937821388245, 0.07786344736814499, 0.26113924384117126, 0.051613181829452515, -0.31839707493782043, 0.056200578808784485, -0.21524682641029358, 0.06954608857631683, 0.26794856786727905, -0.37729036808013916, -0.11547312885522842, 0.0034697577357292175, 0.16920098662376404, -0.2824363112449646, 0.04788868874311447, 0.048852331936359406, 0.10802195966243744, 0.001277472823858261, 0.013500761240720749, 0.33671075105667114, -0.15173599123954773, -0.1799664944410324, -0.10303965210914612, 0.17719781398773193, -0.19507984817028046, 0.008516122587025166, 0.016285374760627747, 0.22205990552902222, 0.10666142404079437, 0.019013209268450737, -0.08943837136030197, 0.19991281628608704, -0.16442185640335083, 0.25171536207199097, 0.25995200872421265, 0.43010565638542175, 0.2277342826128006, -0.22602061927318573, 0.0658659040927887, -0.096909299492836, -0.1978669911623001, 0.3507428765296936, -0.010787978768348694, 0.2520745098590851, 0.14984847605228424, -0.07520975917577744, -0.007432211190462112, 0.202842578291893, 0.031593747437000275, 0.041656892746686935, -0.20685191452503204, -0.11898709088563919, 0.21474163234233856, 0.10000571608543396, -0.34825122356414795, -0.3811197578907013, -0.20631057024002075, 0.16081789135932922, 0.1386512666940689, -0.11609689891338348, -0.0007914379239082336, 0.11394806206226349, -0.020683400332927704, -0.08092065900564194, 0.34602734446525574, -0.10363267362117767, 0.09568610787391663, 0.28695377707481384, -0.24085894227027893, -0.1860807240009308, -0.009621798060834408, 0.16023361682891846, 0.1520678550004959, 0.2799002528190613, -0.2412097156047821, -0.17410504817962646, 0.379209965467453, 0.17880670726299286, -0.12696221470832825, -0.23240987956523895, -0.01487210113555193, 0.0560346320271492, 0.028575163334608078, -0.09625093638896942, -0.138838991522789, 0.005258094519376755, -0.06992226839065552, -0.05941099300980568, 0.1831769198179245, -0.19777007400989532, 0.27721279859542847, 0.17876553535461426, 0.0725569874048233, 0.2747688293457031, -0.0002007707953453064, 0.7763879895210266, -0.22260726988315582, 0.3033173680305481, -0.07585033029317856, 0.13949920237064362, -0.4241235554218292, 0.13569292426109314, -0.29172441363334656, -0.17309939861297607, 0.4106997549533844, -0.09878081828355789, 0.3334314823150635, -0.08852602541446686, -0.8045453429222107, -0.0008281394839286804, -0.10774560272693634, -0.10973912477493286, 0.11922900378704071, -0.31333762407302856, -0.09177685528993607, 0.024535316973924637, -0.025782857090234756, -0.27343428134918213, -0.4853472411632538, -0.1646530032157898, -0.39834535121917725, 0.08785325288772583, -0.17175932228565216, -0.38223913311958313, -0.043872952461242676, -0.07672475278377533, -0.12428039312362671, -0.12437811493873596, 0.26520419120788574, 0.12539008259773254, -0.00853988341987133, -0.07314698398113251, 0.17700503766536713, -0.04666580259799957, -0.1972222626209259, 0.2090691328048706, 0.33739566802978516, -0.3322139084339142, -0.32960522174835205, 0.34151169657707214, -0.021702557802200317, 0.28133851289749146, 0.011478503234684467, -0.42799127101898193, -0.1520686149597168, 0.06688927114009857, 0.13095790147781372, 0.05163233354687691, -0.03655066341161728, 0.7915481328964233, -0.11600442230701447, -0.0761180892586708, -0.027554882690310478, -0.5734851956367493, 0.1022510826587677, 0.5704914927482605, 0.2422734797000885, -0.11164870113134384, 0.31742674112319946, 0.1585417240858078, 0.5127472281455994, 0.35929834842681885, 0.010425377637147903, 0.022734135389328003, 0.17875613272190094, 0.04132850840687752, -0.12431807070970535, -0.2332143634557724, 0.03088214434683323, 0.08355013281106949, 0.08108735829591751, 0.35798531770706177, 0.17127487063407898, -0.25755149126052856, -0.2342401146888733, -0.4313462972640991, -0.048630259931087494, 0.13530901074409485, -0.3467599153518677, 0.08997049927711487, 0.666692852973938, -0.05727165937423706, -0.17944255471229553, -0.4841727018356323, -0.052042361348867416, 0.19989325106143951, 0.4482493996620178, 0.31226593255996704, -0.0023321425542235374, 0.15901853144168854, -0.06324709206819534, -0.29903697967529297, 0.3822370171546936, 0.09644657373428345, 0.07628417760133743, -0.02362123504281044, 0.057052239775657654, 0.16065511107444763, 0.003988354001194239, 0.20746304094791412, -0.1188339814543724, -0.20663724839687347, -0.0895550549030304, -0.041988518089056015, 0.32143813371658325, -0.032358333468437195, 0.039821986109018326, -0.24847392737865448, -0.10593657195568085, -0.1875952184200287, 0.19501101970672607, -0.03170029819011688, 0.6617472171783447, -0.27993640303611755, -0.178648442029953, -0.11406067758798599, -0.0565541610121727, -0.07454986125230789, 0.04568091779947281, -0.05885546654462814, -0.2610064148902893, -0.017625348642468452, -0.03928033262491226, -0.17231257259845734, 0.21923238039016724, -0.20522716641426086, 0.0071361735463142395, 0.04859540984034538, -0.06891943514347076, -0.01868879236280918, 0.0803602933883667, 0.10861824452877045, -0.02851458638906479, 0.23418103158473969, 0.0030015185475349426, 0.39899635314941406, -0.31781473755836487, 0.17326179146766663, -0.04418458044528961, 0.2235637605190277, 0.15306757390499115, -0.031643468886613846, 0.07378576695919037, -0.17802192270755768, -0.3110802173614502, -0.22394661605358124, -0.41653206944465637, 0.3540849983692169, 0.09462433308362961, -0.2084657996892929, 0.08699844777584076, 0.2448110282421112, 0.09113116562366486, -0.27144187688827515, 0.33740586042404175, 0.39424198865890503, -0.013791125267744064, 0.17862345278263092, -0.04098183661699295, 0.782871663570404, 0.38780510425567627, -0.1163375973701477, 0.08909589052200317, -0.16530999541282654, 0.3033854067325592, 0.02732134610414505, 0.10152145475149155, 0.16568370163440704, -0.12508726119995117, -0.13380096852779388, 0.19046884775161743, 0.3938687741756439, -0.19231131672859192, -0.27616000175476074, 0.30906879901885986, 0.2963234782218933, 0.37913763523101807, 0.18517279624938965, 0.046606481075286865, 0.30878034234046936, -0.012175759300589561, 0.22883810102939606, 0.08569769561290741, 0.17001861333847046, 0.4446304142475128, -0.015017511323094368, -0.14969396591186523, -0.07364727556705475, -0.24480435252189636, -0.31907719373703003, -0.24239003658294678, 0.1053236648440361, -0.12534385919570923, 0.06371241062879562, -0.13501381874084473, 0.4795580208301544, -0.18676115572452545, 0.43321532011032104, 0.019766828045248985, -0.3183547258377075, 0.11428625881671906, 0.24963214993476868, -0.2459230273962021, 0.05072201415896416, -0.03206159546971321, -0.27356770634651184, -0.1974431574344635, -0.12815195322036743, 0.4675573706626892, 0.26430124044418335, -0.18208615481853485, -0.29033851623535156, -0.17927534878253937, -0.009772293269634247, 0.16735303401947021, 0.37810924649238586, 0.49319517612457275, 0.21740153431892395, -0.23251985013484955, 0.13885164260864258, 0.14542163908481598, -0.12461964786052704, -0.3335356116294861, -0.10845176875591278, 0.12606145441532135, -0.15928491950035095, 0.20721027255058289, 0.42981263995170593, -0.32244232296943665, 0.0774456262588501, -0.12384381890296936, 0.03547751158475876, -0.1322074830532074, -0.27173882722854614, 0.030616775155067444, -0.43420007824897766, -0.15630172193050385, 0.031744517385959625, -0.17103610932826996, 0.19185870885849, 0.9666591286659241, 0.06149471551179886, 0.20077773928642273, -0.18781857192516327, -0.015118546783924103, -0.2095969170331955, 0.17482048273086548, -0.5250989198684692, 0.21809248626232147, -0.175972580909729, -0.07979471981525421, -0.1631566286087036, 0.26689213514328003, -0.28497445583343506, -0.22890247404575348, 0.17995330691337585, -0.1577756404876709, 0.3327468931674957, 0.28982266783714294, 0.1722329705953598, 0.11206042766571045, 0.0433364063501358, -0.1313568353652954, -0.14088334143161774, -0.04713490977883339, 0.10009512305259705, 0.12241380661725998, 0.08467137813568115, 0.3393622040748596, -0.037495069205760956, -0.18758760392665863, -0.19110746681690216, 0.19971629977226257, 0.2498571276664734, -0.09309905767440796, 0.08678814023733139, 0.24760384857654572, -0.29602324962615967, -0.12832263112068176, -0.08523249626159668, 0.545885443687439, 0.2416352927684784, 0.13735005259513855, 0.15754501521587372, 0.37560054659843445, -0.09079927206039429, -0.03890335559844971, -0.07435773313045502, 0.44656938314437866, -0.3893510103225708, 0.2567908763885498, 0.036853186786174774, 0.09243860840797424, -0.13187013566493988, 0.038229431957006454, -0.26250725984573364, -0.5318464040756226, -0.012972775846719742, 0.19005675613880157, -0.05723986029624939, 0.20679329335689545, -0.3643629550933838, 0.022032631561160088, -0.26102837920188904, -0.09930067509412766, -0.02965017780661583, 0.21123573184013367, 0.37755781412124634, 0.07074400782585144, 0.8590604066848755, 0.11811672896146774, -0.11029195785522461, -0.07216490060091019, 0.48664337396621704, 0.22771060466766357, 0.39008066058158875, 0.13891024887561798, 0.09025679528713226, 0.0017617996782064438, 0.10719478875398636, -0.16587115824222565, -0.07671130448579788, -0.13972227275371552, 0.44157013297080994, 0.454982727766037, 0.3275451958179474, -0.2002156525850296, -0.20803408324718475, 0.24367740750312805, 0.18482708930969238, 0.014333624392747879, 0.23309209942817688, -0.08115080744028091, 0.12781953811645508, 0.09431003779172897, -0.7621106505393982, -0.09891954064369202, 0.07419556379318237, -0.16120073199272156, -0.1580144464969635, -0.12280522286891937, -0.26581454277038574, -0.11310712993144989, 0.3679633140563965, 0.09795919060707092, 0.2267369031906128, -0.27596282958984375, -0.14949998259544373, -0.059103935956954956, -0.20407810807228088, 0.28761714696884155, 0.25948864221572876, 0.06134861335158348, 0.48437628149986267, -0.5644535422325134, -0.30071741342544556, 0.4297736585140228, 0.21083752810955048, 0.019138023257255554, -0.2560528516769409, 0.2916179299354553, 0.05554036423563957, -0.021768826991319656, -0.2667054533958435, 0.23909786343574524, 0.182717964053154, -0.14026716351509094, 0.11083737015724182, -0.01465589739382267, 0.062215350568294525, 0.04342496022582054, -0.05880143120884895, 0.01200878992676735, -0.08062729239463806, -0.47570911049842834, 0.13423512876033783, -0.20503120124340057, 0.16521912813186646, -0.12193167209625244, 0.44938117265701294, 0.08370675891637802, -0.3802338242530823, -0.2866351008415222, -0.04445873945951462, -0.22272151708602905, 0.014353119768202305, 0.05502241104841232, -0.4033513367176056, -0.1603306531906128, 0.384873628616333, 0.1999775767326355, -0.12101397663354874, -0.6013123393058777, 0.06163446605205536, 0.2573508620262146, 0.13355125486850739, -0.13102936744689941, 0.1150699183344841, 0.26026278734207153, 0.1477566957473755, -0.2571096420288086, 0.23596137762069702, -0.0140664242208004, 0.29102203249931335, 0.09884358942508698, -0.1629006564617157, 0.08296160399913788, 0.33615225553512573, 0.003927272744476795, -0.241535946726799, -0.013703040778636932, -0.1254635751247406, 0.283846914768219, -0.12509280443191528, -0.14821301400661469, -0.02912510558962822, 0.09563396871089935, 0.12166114896535873, 0.46083876490592957, 0.09020757675170898, 0.02148764580488205, -0.0657208040356636, -0.1475345492362976, -0.40121564269065857, -0.06006263568997383, 0.032888125628232956, -0.1326177418231964, 0.014206554740667343, 0.051872752606868744, -0.13590897619724274, 0.31329402327537537, -0.0092497318983078, 0.43694499135017395, 0.12656554579734802, -0.024377034977078438, -0.14826248586177826, 0.4578138291835785, -0.4662645757198334, -0.1687985360622406, 0.28169530630111694, -0.11046435683965683, 0.0842430517077446, -0.11323763430118561, -0.10509449243545532, -0.01785510964691639, 0.17952151596546173, -0.15866194665431976, 0.22237522900104523, -0.2001095563173294, 0.4053364098072052, 0.2907795011997223, -0.03121299110352993, -0.3527667224407196, -0.07439637184143066, 0.18313199281692505, 0.27748677134513855, -0.0178934745490551, 0.38302046060562134, 0.17758113145828247, 0.05988400802016258, -0.1240595281124115, 0.2663041651248932, -0.1834816336631775, -0.004384363070130348, 0.04803807660937309, -0.2990569472312927 ]
https://github.com/huggingface/datasets/issues/163
[Feature request] Add cos-e v1.0
@mariamabarham I'm also not sure where to find CQA 1.0. Perhaps it's not possible to include this version of the dataset. I'll close the issue if that's the case.
I noticed the second release of cos-e (v1.11) is included in this repo. I wanted to request inclusion of v1.0, since this is the version on which results are reported on in [the paper](https://www.aclweb.org/anthology/P19-1487/), and v1.11 has noted [annotation](https://github.com/salesforce/cos-e/issues/2) [issues](https://arxiv.org/pdf/2004.14546.pdf).
29
[Feature request] Add cos-e v1.0 I noticed the second release of cos-e (v1.11) is included in this repo. I wanted to request inclusion of v1.0, since this is the version on which results are reported on in [the paper](https://www.aclweb.org/anthology/P19-1487/), and v1.11 has noted [annotation](https://github.com/salesforce/cos-e/issues/2) [issues](https://arxiv.org/pdf/2004.14546.pdf). @mariamabarham I'm also not sure where to find CQA 1.0. Perhaps it's not possible to include this version of the dataset. I'll close the issue if that's the case.
[ -0.24925217032432556, -0.10364451259374619, -0.13912153244018555, -0.4210848808288574, -0.5307976603507996, -0.06874881684780121, -0.07874952256679535, 0.07906609773635864, -0.21976371109485626, 0.439055860042572, 0.15138232707977295, 0.2936987578868866, 0.06534145772457123, 0.43753349781036377, 0.0067793214693665504, 0.25195711851119995, 0.15442781150341034, 0.3981415629386902, -0.03590259701013565, -0.08111102879047394, -0.09899772703647614, 0.30110007524490356, -0.22698083519935608, -0.05949579179286957, 0.06923215091228485, -0.020368294790387154, -0.2728615403175354, -0.16568684577941895, -0.15396210551261902, -0.15395863354206085, 0.41139253973960876, 0.36268067359924316, 0.20779524743556976, 0.004311777651309967, -0.00011051365436287597, -0.21097904443740845, 0.28249043226242065, -0.1277126669883728, -0.23003903031349182, -0.12380494177341461, -0.3332121670246124, -0.32515469193458557, 0.008640067651867867, 0.002827778458595276, 0.08679952472448349, 0.13627535104751587, 0.12899674475193024, -0.10482534766197205, 0.0015905573964118958, 0.17070822417736053, 0.2644632160663605, 0.2665330469608307, -0.00556594505906105, -0.39218834042549133, 0.1672421395778656, 0.27682870626449585, -0.3164583444595337, -0.14915373921394348, 0.3068578243255615, -0.01713198609650135, 0.08296871930360794, 0.5250512957572937, 0.2620764970779419, -0.17759616672992706, -0.12935489416122437, -0.0538347065448761, 0.1235545426607132, -0.11475829780101776, 0.3260297179222107, 0.0554940328001976, 0.5153287649154663, 0.14862218499183655, -0.42044392228126526, 0.3833303153514862, -0.0019988790154457092, -0.389569491147995, 0.25760969519615173, -0.05857360363006592, 0.006151854991912842, 0.059688277542591095, 0.14559151232242584, -0.15127715468406677, -0.39913249015808105, 0.14248201251029968, -0.17090895771980286, 0.031247101724147797, -0.13222837448120117, -0.21965613961219788, 0.08026865124702454, 0.09614376723766327, -0.10330725461244583, 0.20984341204166412, -0.2582568824291229, 0.18841147422790527, -0.27714693546295166, -0.2824534773826599, 0.321411669254303, 0.06597080826759338, 0.4131598174571991, -0.062352001667022705, 0.15197435021400452, -0.09950991719961166, -0.11116843670606613, 0.1464020013809204, 0.05179964378476143, 0.25040203332901, 0.23542845249176025, -0.05337192118167877, 0.32314974069595337, 0.22540926933288574, 0.48004645109176636, -0.039997391402721405, 0.16129690408706665, 0.04168156161904335, -0.21857859194278717, 0.012427199631929398, -0.026502827182412148, -0.6751201152801514, -0.27946582436561584, 0.002901866100728512, -0.07580016553401947, 0.059032291173934937, -0.07884746044874191, 0.14039012789726257, 0.38729915022850037, 0.1108708307147026, 0.2383928745985031, -0.037994444370269775, -0.06861970573663712, -0.5039103031158447, -0.3114446997642517, 0.04990052059292793, -0.08856573700904846, 0.21143187582492828, 0.29866138100624084, -0.22972559928894043, 0.30602332949638367, -0.330838680267334, 0.3673439025878906, 0.11446848511695862, -0.20475685596466064, 0.3666538596153259, -0.19268420338630676, 0.28552529215812683, 0.060347091406583786, 0.04286769777536392, -0.22038312256336212, 0.35715579986572266, -0.22282814979553223, 0.09571921080350876, -0.2677159309387207, -0.4235019087791443, -0.4708484411239624, 0.19991575181484222, 0.05588338524103165, -0.22937577962875366, 0.04921968653798103, 0.3272186517715454, -0.2058473825454712, -0.17717063426971436, -0.025697045028209686, 0.33732402324676514, -0.10757365822792053, -0.1229422315955162, 0.11131126433610916, 0.1878853142261505, -0.2905891239643097, -0.009797953069210052, -0.36860203742980957, 0.04430466890335083, -0.04414839297533035, 0.043566636741161346, -0.10054672509431839, -0.22311905026435852, -0.11662545800209045, -0.23496820032596588, 0.3060905337333679, -0.37219417095184326, -0.41131791472435, 0.1309097409248352, 0.05861306190490723, -0.3415104150772095, 0.12815245985984802, -0.15334784984588623, 0.019392482936382294, -0.19477097690105438, -0.17797863483428955, 0.102816641330719, -0.18041394650936127, -0.1653309464454651, -0.023646702989935875, -0.4142693281173706, -0.12499167025089264, 0.20059622824192047, 0.12091882526874542, 0.06461558490991592, 0.270173579454422, -0.611605703830719, 0.055760737508535385, -0.13917507231235504, 0.11108922958374023, 0.08375401794910431, 0.7464855909347534, -0.04615764319896698, 0.18957926332950592, 0.14584168791770935, -0.3134405314922333, 0.023550979793071747, -0.26641833782196045, 0.14026674628257751, 0.11664482951164246, -0.3408268690109253, -0.09279291331768036, 0.0023916494101285934, 0.0644073560833931, -0.3398040235042572, 0.13861191272735596, 0.0946589782834053, 0.0508369617164135, 0.09796713292598724, 0.1258649379014969, 0.30949851870536804, -0.19311721622943878, -0.2252655327320099, 0.0018340842798352242, 0.1426391303539276, -0.26999330520629883, -0.10479810833930969, 0.14433249831199646, 0.28665781021118164, 0.025028768926858902, -0.04019154980778694, -0.16687485575675964, 0.2657512426376343, -0.163274347782135, 0.2737017869949341, 0.09590189158916473, 0.3830798268318176, 0.143694669008255, -0.14276254177093506, 0.07344493269920349, -0.11707837879657745, -0.1200566366314888, 0.31902241706848145, -0.11595240980386734, 0.34866565465927124, 0.08622622489929199, -0.0811452642083168, -0.03529369831085205, 0.18887187540531158, 0.18004781007766724, -0.03710193186998367, -0.2181859016418457, -0.10062786936759949, 0.19473595917224884, 0.09217856824398041, -0.3050852119922638, -0.3667619526386261, -0.2442115992307663, 0.05284811183810234, 0.18153110146522522, -0.008826304227113724, 0.09464196860790253, 0.16038429737091064, -0.03851764649152756, -0.16388598084449768, 0.44971227645874023, -0.09222866594791412, 0.10848812758922577, 0.30496352910995483, -0.20059624314308167, -0.15271051228046417, -0.1487501710653305, 0.047721557319164276, 0.12991133332252502, 0.2641788423061371, -0.08511455357074738, -0.04902465641498566, 0.33934906125068665, 0.14000295102596283, -0.3533053398132324, -0.22798407077789307, -0.05839752405881882, 0.028281748294830322, 0.0008940137922763824, -0.09523609280586243, -0.1337917447090149, 0.006519917398691177, 0.030235670506954193, 0.0011714217253029346, 0.13667985796928406, -0.23665106296539307, 0.3674176335334778, 0.14765119552612305, -0.11774195730686188, 0.3822770118713379, -0.007209416478872299, 0.7501001358032227, -0.11174744367599487, 0.30824944376945496, -0.18576085567474365, 0.12192872166633606, -0.42350324988365173, 0.22970589995384216, -0.28927648067474365, -0.12859055399894714, 0.4955845773220062, -0.09794586151838303, 0.4712073802947998, -0.10985370725393295, -0.7647409439086914, 0.06731861084699631, -0.12290842831134796, -0.01593638025224209, 0.01470523327589035, -0.25695812702178955, -0.15914730727672577, -0.01935499534010887, -0.0491824671626091, -0.33155936002731323, -0.4355299770832062, -0.051724664866924286, -0.4801781475543976, -0.005570786539465189, -0.3519708812236786, -0.4595099985599518, -0.021146247163414955, -0.21627871692180634, -0.1986929327249527, -0.21795012056827545, 0.1730874627828598, 0.2513791620731354, 0.025442015379667282, 0.05033532902598381, -0.015436498448252678, 0.00724273594096303, -0.25437837839126587, 0.12977857887744904, 0.4986967444419861, -0.38654497265815735, -0.5030517578125, 0.29115456342697144, -0.0433313362300396, 0.3502509295940399, -0.006292959675192833, -0.35988467931747437, -0.2641652226448059, 0.0008947961032390594, 0.1479327231645584, -0.009467694908380508, 0.03826870769262314, 0.7621443271636963, -0.11581341177225113, -0.19106921553611755, -0.11626727879047394, -0.5392227172851562, 0.19554319977760315, 0.4982728362083435, 0.24280798435211182, -0.27890676259994507, 0.38106849789619446, 0.20991525053977966, 0.31938064098358154, 0.35116735100746155, -0.0565192736685276, 0.12163597345352173, 0.16339333355426788, 0.14771683514118195, -0.19633913040161133, -0.016692792996764183, 0.1428922861814499, 0.07544183731079102, 0.14860858023166656, 0.533433735370636, 0.12728314101696014, -0.37974247336387634, -0.253140389919281, -0.2787436246871948, -0.05657976120710373, 0.052457135170698166, -0.29205521941185, 0.015738878399133682, 0.5925147533416748, -0.027571316808462143, -0.16437619924545288, -0.29470545053482056, -0.024257894605398178, 0.18267162144184113, 0.4032694697380066, 0.22562918066978455, -0.011568599380552769, 0.0843057781457901, -0.07599934935569763, -0.36049920320510864, 0.38195085525512695, 0.0567513108253479, 0.101471908390522, -0.12819622457027435, 0.0615384578704834, 0.16979148983955383, 0.010395651683211327, 0.23315390944480896, -0.19572260975837708, -0.27076905965805054, -0.09753884375095367, -0.03323466330766678, 0.20889605581760406, -0.0756588727235794, -0.06040661036968231, -0.17605644464492798, -0.05845525488257408, -0.1786639392375946, 0.03458096832036972, -0.09470601379871368, 0.5656784772872925, -0.2811226546764374, -0.04575682803988457, -0.0969693511724472, -0.017559964209794998, -0.25224369764328003, -0.053296901285648346, 0.019000224769115448, -0.14617541432380676, -0.02969631366431713, -0.0632442906498909, -0.20307844877243042, 0.35602036118507385, -0.1344769299030304, 0.005194187164306641, 0.2022390514612198, 0.013026389293372631, 0.05348796024918556, 0.06713105738162994, 0.0382123664021492, 0.031946565955877304, 0.20771431922912598, 0.02288069576025009, 0.3638222813606262, -0.1425086408853531, 0.26192325353622437, -0.2598849833011627, 0.2579032778739929, 0.17956379055976868, -0.053154364228248596, 0.0472465343773365, -0.20904140174388885, -0.23196850717067719, -0.1119750589132309, -0.2654040455818176, 0.28373396396636963, 0.036033835262060165, -0.14099301397800446, 0.12018990516662598, 0.24428698420524597, 0.026496976613998413, -0.24268612265586853, 0.233839213848114, 0.34146320819854736, -0.10660974681377411, 0.3187503218650818, 0.01441020518541336, 0.714432418346405, 0.2847656011581421, -0.1513294130563736, 0.1777024269104004, -0.097846619784832, 0.2846781313419342, -0.08520646393299103, 0.030843082815408707, 0.14362356066703796, -0.02941402792930603, -0.10803273320198059, 0.2240849733352661, 0.47330987453460693, -0.1807122826576233, -0.4074776768684387, 0.23934657871723175, 0.3737252354621887, 0.25265347957611084, 0.1791726052761078, 0.0258239284157753, 0.2792440950870514, -0.19411897659301758, 0.2228650003671646, 0.16126234829425812, 0.118659108877182, 0.24784313142299652, -0.007930130697786808, -0.12176427245140076, -0.10707337409257889, -0.33475053310394287, -0.2222689986228943, -0.15550118684768677, 0.1758870780467987, -0.1371011883020401, 0.12958697974681854, -0.13968104124069214, 0.5002400875091553, -0.21630322933197021, 0.35122811794281006, 0.07694314420223236, -0.39390119910240173, 0.19849909842014313, 0.12374621629714966, -0.09371771663427353, -0.04846953973174095, 0.011539625935256481, -0.09306978434324265, -0.31500551104545593, -0.04045835882425308, 0.27459031343460083, 0.13504846394062042, -0.22949017584323883, -0.1504868119955063, -0.15534165501594543, -0.05174738168716431, 0.19557829201221466, 0.39320674538612366, 0.49676498770713806, 0.20558053255081177, -0.27763959765434265, 0.2118622213602066, 0.19321860373020172, -0.09961561113595963, -0.09029241651296616, 0.0016791783273220062, 0.05238106846809387, -0.20977802574634552, 0.20240309834480286, 0.34476104378700256, -0.2052668333053589, 0.11226946115493774, -0.06963295489549637, -0.0756429061293602, -0.23330864310264587, -0.3203871548175812, -0.01394446287304163, -0.5064808130264282, -0.21499432623386383, 0.04626065492630005, -0.2646353244781494, 0.16258904337882996, 0.9665588736534119, 0.019335350021719933, 0.08566249907016754, -0.15412968397140503, -0.12778127193450928, -0.2720562517642975, 0.09145703166723251, -0.6348621845245361, 0.30259954929351807, -0.09700153768062592, -0.010685116052627563, -0.0588766485452652, 0.22756722569465637, -0.4005648195743561, -0.23105904459953308, 0.08580836653709412, -0.07548943907022476, 0.1727137714624405, 0.18505430221557617, 0.3002166152000427, 0.20005637407302856, 0.10802158713340759, -0.036428600549697876, -0.29785358905792236, -0.14092546701431274, 0.0670611709356308, 0.09022770822048187, 0.08517439663410187, 0.265105664730072, 0.015573850832879543, -0.09612757712602615, -0.36367732286453247, 0.14022429287433624, 0.31589820981025696, -0.25541558861732483, -0.08340813219547272, 0.2138916701078415, -0.29568278789520264, -0.15318578481674194, 0.07409324496984482, 0.26817435026168823, 0.2032589167356491, 0.00018319487571716309, 0.022653143852949142, 0.40176713466644287, -0.07402659207582474, -0.12796001136302948, 0.06694509834051132, 0.3990151882171631, -0.3243767023086548, 0.2326638102531433, 0.057871341705322266, 0.021776419132947922, -0.07467738538980484, -0.027418509125709534, -0.11537863314151764, -0.5985837578773499, -0.05257945507764816, 0.0898481234908104, 0.027268918231129646, 0.2741136848926544, -0.40830376744270325, 0.10977031290531158, -0.23368975520133972, -0.0654069185256958, 0.17333395779132843, 0.1268070936203003, 0.5387259125709534, -0.04354147985577583, 0.9180057048797607, 0.10789851099252701, -0.07989383488893509, -0.07315289229154587, 0.35224688053131104, 0.09844787418842316, 0.19314120709896088, 0.20261426270008087, 0.16971677541732788, 0.017391841858625412, 0.08312439918518066, -0.06407171487808228, 0.010315343737602234, -0.09518498182296753, 0.3211264908313751, 0.4013400971889496, 0.15263158082962036, -0.31373369693756104, 0.0371580608189106, 0.16140061616897583, 0.19644935429096222, 0.016423631459474564, 0.2140071541070938, -0.09558141976594925, 0.12567263841629028, 0.11404699832201004, -0.8520106077194214, -0.1479993462562561, -0.00028118863701820374, -0.1519283801317215, -0.15474069118499756, -0.1215367540717125, -0.26129472255706787, -0.10409153997898102, 0.2915903627872467, 0.10824847221374512, 0.2901678681373596, -0.295688271522522, -0.08855506777763367, -0.07152855396270752, -0.08061728626489639, 0.14213530719280243, 0.14287488162517548, 0.08948023617267609, 0.5019289255142212, -0.49050265550613403, -0.2560099959373474, 0.3050370514392853, 0.3041681945323944, 0.16102749109268188, -0.2079574316740036, 0.2815839350223541, 0.1821942925453186, 0.019643869251012802, -0.2664215564727783, 0.16778211295604706, 0.2630539536476135, -0.0011913776397705078, 0.1215180903673172, 0.10152973234653473, 0.11109879612922668, -0.06895546615123749, 0.01900431700050831, -0.110425665974617, -0.004638019949197769, -0.2969076633453369, 0.1431901454925537, -0.07266086339950562, 0.12516340613365173, -0.08303350955247879, 0.2422427535057068, 0.06060129404067993, -0.3382861614227295, -0.23554328083992004, -0.14563922584056854, -0.2185368835926056, -0.1448451280593872, 0.11242635548114777, -0.2741732597351074, 0.020281236618757248, 0.24042795598506927, 0.25404423475265503, -0.02682805433869362, -0.5908101201057434, 0.0029730796813964844, 0.27418723702430725, 0.13339392840862274, 0.03358699381351471, 0.08341727405786514, 0.25750479102134705, 0.20823365449905396, -0.26136964559555054, 0.2973892092704773, -0.14022991061210632, 0.3001263439655304, -0.008812963962554932, -0.35600775480270386, 0.06686961650848389, 0.2684215307235718, -0.008376508951187134, -0.18063192069530487, -0.04371899366378784, -0.1160849779844284, 0.24436292052268982, 0.006212852895259857, -0.2181469351053238, 0.014315813779830933, 0.0867171436548233, 0.046700529754161835, 0.4745107889175415, 0.2091071754693985, 0.12969021499156952, -0.14030122756958008, -0.13858968019485474, -0.4177074730396271, -0.09693163633346558, 0.0402003638446331, -0.16448262333869934, 0.07427625358104706, 0.22511255741119385, -0.042594924569129944, 0.1396816372871399, -0.003687941236421466, 0.46982452273368835, 0.07916311919689178, -0.08481170982122421, -0.12159667909145355, 0.5496432185173035, -0.4163467288017273, -0.17564943432807922, 0.12344054877758026, -0.13445407152175903, 0.16413331031799316, -0.18473398685455322, -0.14443257451057434, -0.10510995239019394, 0.27850884199142456, -0.227498397231102, 0.09104302525520325, -0.084352046251297, 0.31331178545951843, 0.11957212537527084, -0.010894829407334328, -0.3383711874485016, 0.04173094779253006, 0.113097183406353, 0.2314244508743286, -0.08588767051696777, 0.44417431950569153, 0.10862760245800018, 0.011421609669923782, -0.14661464095115662, 0.36385536193847656, -0.15389657020568848, -0.04099000245332718, 0.04374924674630165, -0.3198184370994568 ]
https://github.com/huggingface/datasets/issues/163
[Feature request] Add cos-e v1.0
You can now do ```python from nlp import load_dataset cos_e = load_dataset("cos_e", "v1.0") ``` Thanks @mariamabarham !
I noticed the second release of cos-e (v1.11) is included in this repo. I wanted to request inclusion of v1.0, since this is the version on which results are reported on in [the paper](https://www.aclweb.org/anthology/P19-1487/), and v1.11 has noted [annotation](https://github.com/salesforce/cos-e/issues/2) [issues](https://arxiv.org/pdf/2004.14546.pdf).
17
[Feature request] Add cos-e v1.0 I noticed the second release of cos-e (v1.11) is included in this repo. I wanted to request inclusion of v1.0, since this is the version on which results are reported on in [the paper](https://www.aclweb.org/anthology/P19-1487/), and v1.11 has noted [annotation](https://github.com/salesforce/cos-e/issues/2) [issues](https://arxiv.org/pdf/2004.14546.pdf). You can now do ```python from nlp import load_dataset cos_e = load_dataset("cos_e", "v1.0") ``` Thanks @mariamabarham !
[ -0.2524748742580414, -0.2647847533226013, -0.11422257125377655, -0.48645448684692383, -0.379474401473999, -0.20802795886993408, 0.08028792589902878, 0.18927013874053955, 0.11779770255088806, 0.3005790412425995, -0.15577572584152222, 0.5226975083351135, -0.1476929634809494, 0.4125775098800659, 0.14620919525623322, 0.10172711312770844, 0.03274669498205185, 0.3626561462879181, -0.14609383046627045, -0.20175528526306152, -0.24998591840267181, 0.22433990240097046, -0.17047882080078125, -0.054653480648994446, 0.21928031742572784, 0.07695085555315018, -0.29594311118125916, 0.07935729622840881, -0.06169712543487549, -0.19533966481685638, 0.3291564881801605, 0.32923275232315063, 0.18306922912597656, 0.06467663496732712, -0.00010421488696010783, -0.23515991866588593, 0.2574842572212219, -0.12841571867465973, -0.2869005501270294, -0.18150918185710907, -0.18946313858032227, -0.4737758934497833, 0.22126199305057526, -0.2176600992679596, 0.10919732600450516, 0.1245938241481781, 0.2031547725200653, -0.12437396496534348, 0.1270560771226883, 0.22815129160881042, 0.3232875466346741, 0.40828588604927063, -0.03426646441221237, -0.18497440218925476, 0.2077929973602295, 0.27064016461372375, -0.2086314857006073, -0.012949105352163315, 0.15916511416435242, -0.2754570543766022, -0.196827232837677, 0.40579473972320557, 0.14011307060718536, -0.09584815800189972, -0.13215917348861694, -0.06573191285133362, 0.1608225256204605, 0.021587174385786057, 0.010287057608366013, 0.03543581813573837, 0.23504319787025452, -0.04971543699502945, -0.39598679542541504, 0.14017370343208313, 0.028912842273712158, -0.5668575167655945, 0.09331689029932022, -0.08714450150728226, -0.12451350688934326, -0.14305652678012848, 0.20747721195220947, -0.16234640777111053, -0.472606360912323, 0.2572452425956726, 0.00483018159866333, 0.29475754499435425, -0.06364800781011581, -0.20170077681541443, 0.2266446053981781, 0.04250144213438034, -0.07998217642307281, 0.15150271356105804, -0.03282923623919487, 0.3442157506942749, -0.5325775146484375, -0.28025999665260315, 0.34057557582855225, 0.09036637842655182, 0.26787155866622925, 0.042602792382240295, 0.29281726479530334, 0.1416623890399933, -0.0038667013868689537, 0.19317758083343506, 0.030217492952942848, 0.24012510478496552, 0.29266464710235596, -0.04129914566874504, 0.4281795024871826, 0.26535263657569885, 0.31374678015708923, 0.056364648044109344, 0.07044021040201187, -0.1089821606874466, -0.1450004130601883, -0.06849244982004166, 0.008153777569532394, -0.4685884118080139, -0.2638157904148102, -0.053575970232486725, -0.05584685504436493, 0.145513653755188, -0.013917888514697552, 0.2732970416545868, 0.1701274812221527, 0.24480274319648743, 0.4300426244735718, 0.009214987978339195, -0.22485989332199097, -0.39519909024238586, -0.29168087244033813, 0.09738138318061829, -0.3190462589263916, 0.08400411158800125, 0.3731900751590729, -0.2006007730960846, 0.27423205971717834, -0.43340060114860535, 0.25433453917503357, 0.07114182412624359, -0.19919127225875854, 0.23665907979011536, -0.11447099596261978, 0.06143584102392197, 0.22511258721351624, -0.042978882789611816, -0.23835979402065277, 0.20623178780078888, -0.20838791131973267, -0.08082162588834763, -0.315192312002182, -0.38295093178749084, -0.40688246488571167, 0.2756213843822479, -0.05516838654875755, -0.31489720940589905, -0.13434982299804688, 0.32343724370002747, -0.17393067479133606, -0.18654823303222656, -0.03619324415922165, 0.13921776413917542, -0.25417521595954895, -0.12859691679477692, 0.09105614572763443, 0.11252585053443909, 0.05460585281252861, -0.1368648111820221, -0.521404504776001, 0.0013882704079151154, -0.010002665221691132, 0.049277037382125854, 0.02189965546131134, -0.12459709495306015, -0.13089965283870697, -0.13091003894805908, 0.5791581869125366, -0.3678940236568451, -0.06391068547964096, 0.12525242567062378, 0.05375083535909653, -0.28811320662498474, 0.09406469017267227, -0.17142552137374878, -0.1428021490573883, -0.10669833421707153, -0.101219043135643, 0.3418899178504944, -0.07049590349197388, 0.09957375377416611, -0.11652044951915741, -0.3035581111907959, -0.012261461466550827, 0.3013635575771332, 0.2912399470806122, -0.08109205216169357, 0.2330094873905182, -0.15536566078662872, 0.20717045664787292, -0.27829307317733765, 0.03414122387766838, 0.05451250821352005, 0.585982084274292, 0.04629000276327133, 0.09907328337430954, -0.05174337327480316, -0.3171614706516266, 0.016678601503372192, -0.11427237093448639, 0.29519760608673096, 0.1128329411149025, -0.29259806871414185, -0.032229118049144745, 0.0540715754032135, 0.11803621053695679, -0.11149252951145172, 0.2614136338233948, 0.11125166714191437, 0.023204628378152847, 0.07920370995998383, 0.07408300042152405, 0.37049734592437744, -0.14236225187778473, -0.13941815495491028, -0.2519684135913849, 0.1947317272424698, -0.2114013284444809, -0.09095364063978195, 0.09032358229160309, 0.3076282739639282, -0.014147020876407623, -0.016491349786520004, -0.09004484117031097, 0.34207889437675476, -0.19772416353225708, 0.34739696979522705, 0.06613922864198685, 0.11991184949874878, 0.03165217861533165, -0.18702633678913116, 0.10462140291929245, 0.020478159189224243, 0.1050189733505249, 0.1983436942100525, -0.18742170929908752, 0.4752046465873718, 0.09016640484333038, -0.059458665549755096, 0.093907430768013, 0.032953858375549316, 0.15092244744300842, -0.23204606771469116, -0.30256134271621704, 0.012772493064403534, 0.3870753347873688, 0.11589409410953522, -0.3680182695388794, -0.3732738196849823, -0.3721947968006134, -0.06633997708559036, 0.15660978853702545, 0.0056960321962833405, 0.21773946285247803, 0.16886955499649048, -0.022963784635066986, -0.24440783262252808, 0.2332582026720047, -0.09595439583063126, 0.3129541873931885, 0.333903968334198, -0.08845439553260803, 0.03661462664604187, -0.34952232241630554, 0.03818819671869278, 0.18476936221122742, 0.21045896410942078, -0.0037195617333054543, 0.18175479769706726, 0.4397560656070709, -0.033547818660736084, -0.48965156078338623, -0.41225704550743103, -0.22404584288597107, 0.048277102410793304, -0.24939961731433868, -0.012750444002449512, -0.06169302761554718, -0.14514464139938354, -0.05505041778087616, 0.09441972523927689, 0.09586106240749359, -0.3651607930660248, 0.2836421728134155, 0.33103135228157043, -0.2519616186618805, 0.19968436658382416, -0.011269794777035713, 0.6269271969795227, -0.0407501682639122, 0.12832336127758026, -0.23835787177085876, -0.050317805260419846, -0.24117916822433472, 0.2618357539176941, -0.2411278337240219, 0.0310924481600523, 0.4830773174762726, -0.18815039098262787, 0.2633424401283264, 0.05125843733549118, -0.6950429677963257, 0.019228026270866394, -0.1217726320028305, -0.06724255532026291, 0.10748741030693054, -0.3113570213317871, -0.10114496201276779, -0.06949906051158905, 0.04360044375061989, -0.6364920735359192, -0.3448207974433899, -0.013514973223209381, -0.23367229104042053, 0.16604378819465637, -0.4094182252883911, -0.4348333775997162, -0.10463476926088333, -0.3718428313732147, -0.12796832621097565, 0.09901659190654755, 0.1822294294834137, 0.3901274502277374, -0.005850085057318211, 0.1749865859746933, 0.061039336025714874, 0.0588265135884285, -0.31342700123786926, 0.1793399602174759, 0.4206724166870117, -0.40306001901626587, -0.524638295173645, 0.00874711200594902, -0.0924667939543724, 0.32258492708206177, 0.09169083833694458, -0.11638402938842773, -0.39315247535705566, 0.17101892828941345, 0.03368883952498436, -0.132487490773201, 0.27087652683258057, 0.404410719871521, -0.03216085210442543, -0.21041616797447205, -0.17659419775009155, -0.24583183228969574, 0.15085186064243317, 0.4518739581108093, 0.13134080171585083, -0.24895361065864563, 0.27934348583221436, 0.08622337877750397, 0.11332693696022034, 0.10454559326171875, -0.1675509661436081, 0.2823272943496704, -0.027698008343577385, 0.2028854638338089, -0.0016174763441085815, -0.0004301592707633972, 0.07328096032142639, 0.07297222316265106, 0.2253551334142685, 0.5441488027572632, 0.14013376832008362, -0.4167068302631378, -0.35925525426864624, -0.3044946491718292, -0.03829619288444519, -0.08819453418254852, -0.057566024363040924, 0.20551039278507233, 0.3595195710659027, -0.028068795800209045, -0.19928237795829773, -0.4128100275993347, -0.20246368646621704, -0.012766387313604355, 0.23737017810344696, 0.00408654659986496, -0.06508515775203705, 0.09634554386138916, 0.0386568121612072, -0.4979255795478821, 0.3819621801376343, 0.11513147503137589, 0.07316868752241135, 0.03802013769745827, -0.08453990519046783, 0.06384609639644623, -0.10432214289903641, 0.18705905973911285, -0.11142253130674362, 0.005457315593957901, -0.05644536018371582, -0.10295882076025009, -0.1770632266998291, 0.05641927942633629, -0.3784661889076233, -0.19693337380886078, 0.07580849528312683, -0.00962010771036148, -0.0009150058031082153, -0.17845581471920013, 0.6600252389907837, -0.08007095754146576, -0.05716031789779663, -0.19711469113826752, -0.012537188827991486, -0.41267773509025574, -0.07509052753448486, -0.003672190010547638, -0.15633134543895721, 0.21791590750217438, -0.12022361159324646, -0.08209171891212463, 0.1733662337064743, -0.0176471546292305, 0.11866381764411926, 0.282846063375473, -0.07113185524940491, 0.12168485671281815, -0.015217319130897522, -0.02580270916223526, 0.07832540571689606, 0.11322882771492004, 0.11903847754001617, 0.18738558888435364, -0.0626782476902008, 0.05007576942443848, -0.05786998197436333, 0.29155242443084717, 0.1874191015958786, 0.09294888377189636, 0.022943668067455292, -0.3587074875831604, -0.09099879860877991, -0.08881678432226181, -0.0064675817266106606, 0.2851562201976776, 0.230275958776474, -0.29928457736968994, 0.018360791727900505, 0.40848493576049805, 0.11278729140758514, -0.2255139946937561, 0.13825802505016327, 0.03543675318360329, -0.4326179027557373, 0.5216683745384216, -0.04760751873254776, 0.6814633011817932, 0.2664855122566223, 0.0666799247264862, 0.408990740776062, 0.019804589450359344, 0.6191627979278564, -0.12821915745735168, 0.09045048803091049, 0.00861392542719841, -0.07493513822555542, -0.0283187385648489, 0.2580915093421936, 0.28022411465644836, -0.14533965289592743, -0.30268532037734985, 0.3580355942249298, 0.47414904832839966, -0.028229329735040665, 0.0660800039768219, 0.19065794348716736, 0.2675003409385681, -0.3572770357131958, -0.17591649293899536, 0.19538575410842896, -0.057400621473789215, 0.19830571115016937, -0.009514092467725277, -0.07632448524236679, -0.03352542594075203, -0.3446192741394043, -0.09483525156974792, -0.004619034007191658, 0.4087623059749603, 0.06272843480110168, -0.013134941458702087, 0.00018187612295150757, 0.35457533597946167, -0.2510665953159332, 0.20681500434875488, 0.12703613936901093, -0.233200341463089, 0.13416174054145813, 0.030414912849664688, 0.03347598761320114, -0.05756407231092453, 0.06580693274736404, 0.17728319764137268, -0.2168300449848175, -0.09247515350580215, 0.13309279084205627, 0.28019967675209045, -0.2276494950056076, 0.07511982321739197, -0.05992491543292999, -0.09679776430130005, 0.09913384169340134, 0.27097511291503906, 0.5199604034423828, 0.042326997965574265, -0.2932433485984802, 0.2494107037782669, 0.21730156242847443, -0.24735313653945923, 0.1259593665599823, 0.14907824993133545, -0.14991813898086548, -0.12614089250564575, 0.4295509457588196, 0.3287900984287262, -0.17596839368343353, 0.16236048936843872, 0.028476547449827194, -0.0659821555018425, -0.2654574513435364, -0.24508363008499146, -0.09568382799625397, -0.5750571489334106, -0.06528168171644211, 0.11142829060554504, -0.18903692066669464, 0.2021915465593338, 0.7269640564918518, -0.039208926260471344, 0.2074633538722992, -0.10957172513008118, -0.2568231225013733, -0.27607476711273193, 0.050678033381700516, -0.4521549344062805, 0.22447259724140167, 0.1467546820640564, 0.05748864263296127, -0.05787312984466553, 0.08658437430858612, -0.4668600857257843, -0.22374498844146729, 0.07354487478733063, -0.01118827611207962, 0.3666558861732483, 0.08408205211162567, 0.3317528963088989, 0.07002532482147217, 0.2591495215892792, 0.017092356458306313, -0.181328684091568, -0.271454393863678, -0.12523697316646576, 0.07885964214801788, 0.021880580112338066, 0.1711350977420807, 0.0980696976184845, -0.05675002932548523, -0.27304190397262573, -0.0597015842795372, 0.1882500946521759, -0.08539986610412598, -0.18642829358577728, 0.375968337059021, -0.20979620516300201, -0.13131305575370789, 0.374019980430603, 0.2997763156890869, 0.20191793143749237, 0.013176590204238892, -0.1052275002002716, 0.4919643700122833, -0.0627126693725586, -0.10722257941961288, 0.041287247091531754, 0.19946140050888062, -0.21136488020420074, 0.10680196434259415, 0.08347398042678833, 0.0005003549158573151, -0.25967779755592346, -0.20306304097175598, 0.21257919073104858, -0.2958903908729553, 0.01585993357002735, 0.06989357620477676, 0.07521294802427292, 0.33289629220962524, -0.43360820412635803, 0.1551658660173416, -0.06994211673736572, -0.15005694329738617, 0.3807332515716553, 0.1659957766532898, 0.2593371570110321, -0.14491388201713562, 0.6386487483978271, -0.011185821145772934, -0.019398435950279236, 0.06352287530899048, 0.2700662910938263, 0.007332161068916321, 0.08318658173084259, 0.007491767406463623, 0.0672958493232727, 0.0025865454226732254, 0.2614637017250061, -0.02446921169757843, 0.04350657761096954, -0.026396749541163445, 0.19555094838142395, 0.3980352282524109, -0.0041654109954833984, -0.2185801863670349, -0.0406353585422039, 0.26924803853034973, 0.1335296779870987, 0.22033318877220154, 0.12552011013031006, 0.01399625837802887, -0.02647465467453003, 0.07339471578598022, -0.6518134474754333, 0.10224452614784241, 0.04633399844169617, -0.2674896717071533, -0.19240351021289825, -0.06014697253704071, -0.5283682346343994, -0.03477095440030098, 0.16022349894046783, -0.09570589661598206, 0.11657172441482544, -0.0516645684838295, 0.07509533315896988, -0.17832210659980774, -0.06448584049940109, 0.15219172835350037, 0.20974606275558472, -0.07242751866579056, 0.2600588798522949, -0.31430894136428833, -0.13356678187847137, 0.11316898465156555, 0.3317922055721283, 0.25361496210098267, -0.07983966916799545, 0.25137996673583984, 0.18931570649147034, 0.07818995416164398, -0.06341100484132767, 0.01554204523563385, 0.1274963766336441, 0.175186887383461, 0.15679292380809784, 0.3456555902957916, 0.19967441260814667, -0.23538154363632202, 0.10903938114643097, 0.01808728650212288, -0.18517619371414185, -0.18787024915218353, 0.29476121068000793, 0.25069206953048706, 0.12793874740600586, -0.15492789447307587, 0.056654490530490875, -0.22269335389137268, -0.31515511870384216, -0.05655461177229881, -0.04162682220339775, -0.06579114496707916, -0.2692042887210846, 0.14210398495197296, -0.10145051777362823, 0.24289900064468384, 0.2020772248506546, 0.3052968680858612, 0.07524087280035019, -0.4313352704048157, -0.16718405485153198, 0.2120472639799118, 0.18553738296031952, -0.23350894451141357, -0.04269886389374733, 0.16694127023220062, 0.1464373767375946, -0.2412615567445755, 0.10201076418161392, -0.13331767916679382, 0.42490434646606445, -0.0015244744718074799, -0.39028048515319824, 0.15905414521694183, 0.1435404121875763, -0.0917152613401413, -0.03733192756772041, -0.2592248022556305, -0.3049330711364746, -0.13834236562252045, 0.13726094365119934, -0.2919711470603943, 0.09674255549907684, 0.00659961998462677, 0.13372176885604858, 0.4191930592060089, 0.029712408781051636, 0.27793633937835693, -0.33394214510917664, -0.0068872831761837006, -0.3844674825668335, -0.25012126564979553, -0.062276989221572876, 0.04657420516014099, 0.09622634947299957, 0.17797419428825378, 0.020027603954076767, 0.18667882680892944, 0.04949493706226349, 0.3927050530910492, 0.033929698169231415, -0.23147505521774292, -0.0423312783241272, 0.5437832474708557, -0.3518792390823364, -0.20718583464622498, -0.07825611531734467, -0.004872582852840424, 0.039167243987321854, -0.1339024156332016, -0.05519792437553406, -0.3065367639064789, 0.325724720954895, -0.33518868684768677, -0.05862802267074585, -0.07195757329463959, 0.3476712703704834, 0.15555132925510406, -0.006517032161355019, -0.3395653963088989, 0.16316509246826172, 0.14248673617839813, 0.16235294938087463, -0.034031886607408524, 0.39861759543418884, -0.14811325073242188, -0.01205502450466156, -0.21766646206378937, -0.16810859739780426, -0.06432754546403885, -0.08481415361166, 0.13156414031982422, -0.4343098998069763 ]
https://github.com/huggingface/datasets/issues/163
[Feature request] Add cos-e v1.0
@mariamabarham Just wanted to note that default behavior `cos_e = load_dataset("cos_e")` now loads `v1.0`. Not sure if this is intentional (but the flag specification does work as intended).
I noticed the second release of cos-e (v1.11) is included in this repo. I wanted to request inclusion of v1.0, since this is the version on which results are reported on in [the paper](https://www.aclweb.org/anthology/P19-1487/), and v1.11 has noted [annotation](https://github.com/salesforce/cos-e/issues/2) [issues](https://arxiv.org/pdf/2004.14546.pdf).
28
[Feature request] Add cos-e v1.0 I noticed the second release of cos-e (v1.11) is included in this repo. I wanted to request inclusion of v1.0, since this is the version on which results are reported on in [the paper](https://www.aclweb.org/anthology/P19-1487/), and v1.11 has noted [annotation](https://github.com/salesforce/cos-e/issues/2) [issues](https://arxiv.org/pdf/2004.14546.pdf). @mariamabarham Just wanted to note that default behavior `cos_e = load_dataset("cos_e")` now loads `v1.0`. Not sure if this is intentional (but the flag specification does work as intended).
[ -0.22634504735469818, -0.2859193682670593, -0.11841711401939392, -0.4919193983078003, -0.45303821563720703, -0.25085964798927307, 0.21630710363388062, 0.2214708924293518, -0.03563693165779114, 0.316463828086853, 0.0701320618391037, 0.45714467763900757, 0.03245578706264496, 0.35331860184669495, -0.1624477207660675, 0.42143791913986206, 0.11718586087226868, 0.2206687033176422, -0.030112527310848236, -0.25561708211898804, -0.2271457016468048, 0.130909264087677, -0.1685991883277893, -0.12527427077293396, 0.16298642754554749, 0.28877493739128113, -0.2544233202934265, -0.09574636071920395, -0.04146093130111694, -0.18337267637252808, 0.40287524461746216, 0.34786322712898254, 0.17024455964565277, 0.06462857872247696, -0.0001100439258152619, -0.13638879358768463, 0.45679521560668945, -0.06395520269870758, -0.275370717048645, -0.1536119133234024, -0.3556923270225525, -0.3650522828102112, 0.07075187563896179, -0.07159329950809479, 0.21727675199508667, 0.16272713243961334, 0.1494598537683487, -0.03110143542289734, 0.04020918160676956, 0.1662728637456894, 0.26914703845977783, 0.2860797345638275, -0.031677670776844025, -0.3328501880168915, 0.2125614583492279, 0.47362709045410156, -0.3600449860095978, -0.07488873600959778, 0.04369545727968216, -0.09709348529577255, -0.14182952046394348, 0.3820018172264099, 0.22545641660690308, -0.17204177379608154, -0.26014798879623413, -0.030674025416374207, 0.21465089917182922, 0.1305551528930664, 0.2605663537979126, 0.05690295621752739, 0.35295143723487854, 0.13864901661872864, -0.2649242579936981, 0.2500210106372833, -0.0588386096060276, -0.42920106649398804, 0.2250387966632843, -0.16231627762317657, 0.021105218678712845, 0.00474553182721138, 0.35412001609802246, -0.18666140735149384, -0.5334500074386597, 0.15618231892585754, -0.2166709154844284, 0.1714302897453308, -0.21249519288539886, -0.14087414741516113, 0.09422022104263306, 0.10761192440986633, -0.0929831936955452, 0.11195171624422073, -0.20708119869232178, 0.18042796850204468, -0.3474438786506653, -0.10264939069747925, 0.3085196018218994, -0.06392882019281387, 0.42676979303359985, 0.15892145037651062, 0.1950722187757492, 0.1905692219734192, -0.015698213130235672, 0.15070250630378723, 0.011563858017325401, 0.3686620891094208, 0.5664447546005249, 0.06401564925909042, 0.4030517339706421, 0.14254805445671082, 0.40475788712501526, 0.01654812879860401, 0.07812967151403427, 0.021181993186473846, -0.002248566597700119, -0.16156694293022156, 0.11037446558475494, -0.5184794664382935, -0.18017247319221497, -0.03196059912443161, -0.10153268277645111, 0.09271889179944992, 0.004589051008224487, 0.27911874651908875, 0.2888188064098358, 0.1953786313533783, 0.3214772939682007, -0.022119585424661636, 0.01675456576049328, -0.2821885347366333, -0.28848522901535034, -0.08126631379127502, -0.2485474944114685, 0.20286858081817627, 0.19906434416770935, -0.3987293541431427, 0.20908893644809723, -0.3644561469554901, 0.40940147638320923, -0.06413229554891586, -0.22893238067626953, 0.3046187460422516, -0.0357152596116066, 0.2634482681751251, 0.038811516016721725, -0.017300650477409363, -0.09945636987686157, 0.39866673946380615, -0.16598129272460938, 0.11357548832893372, -0.21756145358085632, -0.4888761043548584, -0.2699543833732605, 0.2650917172431946, -0.18048818409442902, -0.2526894509792328, -0.2429431676864624, 0.4173629581928253, -0.24704518914222717, -0.007608089596033096, 0.013684697449207306, 0.14105460047721863, -0.3214109539985657, -0.20329050719738007, -0.08240294456481934, 0.19734486937522888, -0.043600451201200485, -0.08860600739717484, -0.6579612493515015, -0.09929855167865753, 0.01547463983297348, -0.18410491943359375, -0.018392695114016533, -0.30888596177101135, -0.24293753504753113, -0.09758459031581879, 0.40919843316078186, -0.5409089922904968, -0.08889460563659668, 0.30070334672927856, -0.05289759486913681, -0.21086059510707855, 0.19971710443496704, -0.30010050535202026, -0.15993161499500275, -0.28480514883995056, -0.3112845718860626, 0.05204429477453232, -0.03445495665073395, -0.051054514944553375, -0.07111433148384094, -0.34644126892089844, -0.3489779829978943, 0.2585722804069519, 0.3637625277042389, 0.03293301537632942, 0.35678964853286743, -0.41883373260498047, 0.15049836039543152, -0.055605512112379074, 0.13320374488830566, -0.025527972728013992, 0.670410692691803, 0.10371110588312149, 0.19556717574596405, 0.13810712099075317, -0.37213873863220215, 0.09697598963975906, 0.18270893394947052, 0.1522476226091385, 0.2096582055091858, -0.36246734857559204, -0.15044739842414856, 0.1442914754152298, -0.006205502897500992, -0.19019654393196106, 0.18903671205043793, 0.16745945811271667, -0.06673908978700638, -0.039448149502277374, -0.04032101482152939, 0.41204601526260376, -0.3333110511302948, -0.0893499106168747, 0.1691676527261734, 0.06708542257547379, -0.05908961594104767, -0.007216404192149639, -0.05223134532570839, 0.09110058099031448, -0.0032769963145256042, 0.008714460767805576, -0.15180379152297974, 0.39785149693489075, -0.014700289815664291, 0.13733519613742828, 0.07569365948438644, 0.20276562869548798, 0.1299196481704712, -0.11296869814395905, 0.015641149133443832, 0.031187376007437706, -0.06054281070828438, 0.10886525362730026, -0.2137698233127594, 0.36783531308174133, -0.044001903384923935, 0.07868529856204987, -0.003053009510040283, -0.08954425156116486, 0.02683684043586254, -0.0728679746389389, -0.5226484537124634, -0.21800434589385986, 0.24215646088123322, 0.10695767402648926, -0.4233144223690033, -0.239763543009758, -0.22046206891536713, -0.08050604909658432, 0.17624478042125702, -0.1001150906085968, 0.150044783949852, 0.31621888279914856, 0.10816867649555206, -0.1911519467830658, 0.27675703167915344, -0.16653168201446533, 0.40634262561798096, 0.3151412010192871, -0.10612568259239197, -0.048020437359809875, -0.30542653799057007, -0.053228892385959625, 0.13648003339767456, 0.21421419084072113, 0.12367848306894302, 0.12573593854904175, 0.4169745445251465, -0.14952416718006134, -0.5176553130149841, -0.4135950207710266, -0.06272347271442413, -0.16659316420555115, -0.19666263461112976, -0.16656114161014557, -0.06399507820606232, 0.09422137588262558, -0.1074078157544136, 0.03863601014018059, 0.08334226161241531, -0.23620060086250305, 0.26365742087364197, 0.22466318309307098, -0.061355359852313995, 0.23576170206069946, 0.025400664657354355, 0.6541309356689453, -0.022525794804096222, 0.13648171722888947, -0.15872810781002045, 0.06659889221191406, -0.42036816477775574, 0.19410891830921173, -0.5060144662857056, -0.22600559890270233, 0.43392065167427063, -0.007591230794787407, 0.30970633029937744, -0.06009930372238159, -0.6933542490005493, 0.07365809381008148, -0.192690908908844, -0.13785642385482788, 0.06659672409296036, -0.28835225105285645, -0.11153664439916611, 0.04072209447622299, 0.08749239891767502, -0.39442095160484314, -0.3563583791255951, -0.08151988685131073, -0.23026882112026215, 0.27909964323043823, -0.3458879590034485, -0.4851727783679962, 0.23486709594726562, -0.33899667859077454, -0.11091084778308868, -0.08392202854156494, 0.12878580391407013, 0.5446909666061401, 0.1381402462720871, 0.08742564916610718, 0.12513752281665802, -0.014643635600805283, -0.41065728664398193, 0.2389361560344696, 0.34010255336761475, -0.3349628448486328, -0.4000643789768219, 0.10895071923732758, 0.09359055012464523, 0.15444926917552948, 0.20974066853523254, -0.18663272261619568, -0.5588259696960449, 0.18018431961536407, 0.15571752190589905, -0.20452997088432312, 0.15855053067207336, 0.38407933712005615, -0.019267795607447624, -0.1956895887851715, -0.1868513524532318, -0.3143153488636017, 0.22574347257614136, 0.30816173553466797, 0.12986958026885986, -0.1642550230026245, 0.2678789496421814, 0.16116519272327423, 0.14897793531417847, 0.08203119039535522, 0.019119558855891228, 0.05053909868001938, 0.11084645241498947, 0.35109594464302063, -0.025692664086818695, 0.05527994781732559, 0.133331760764122, 0.08192240446805954, 0.20691154897212982, 0.46736419200897217, 0.13892319798469543, -0.2309897541999817, -0.2874269187450409, -0.2523159980773926, 0.16300827264785767, 0.03166014328598976, -0.16662409901618958, 0.1882856786251068, 0.4335594177246094, -0.1290593147277832, -0.09658737480640411, -0.32698267698287964, 0.03286048769950867, 0.061074625700712204, 0.4213992953300476, 0.09682680666446686, -0.1743539720773697, -0.0047749243676662445, 0.14035329222679138, -0.3281841576099396, 0.35983437299728394, 0.10829275101423264, 0.05134505406022072, -0.0035433247685432434, -0.2092660665512085, 0.2115892767906189, -0.02914351224899292, 0.43104231357574463, -0.180899515748024, 0.013701878488063812, -0.11118076741695404, -0.07789827138185501, -0.09302639961242676, -0.1693750023841858, -0.11786772310733795, -0.30604279041290283, -0.03530910238623619, -0.035561464726924896, -0.052814971655607224, -0.02925984188914299, 0.5762624740600586, -0.26637735962867737, 0.07449130713939667, -0.28742918372154236, -0.20819944143295288, -0.42952245473861694, -0.10088379681110382, 0.004545733332633972, -0.05962260067462921, -0.09537093341350555, -0.2208268940448761, -0.13561531901359558, 0.26978811621665955, -0.227451354265213, -0.14196337759494781, 0.12684650719165802, -0.25425609946250916, -0.0007773375837132335, -0.03305473178625107, 0.10001517832279205, -0.11615101993083954, 0.31549644470214844, 0.016632001847028732, 0.28698253631591797, -0.3732556998729706, 0.1081174910068512, -0.18032854795455933, 0.21710744500160217, 0.2719830870628357, 0.0013415929861366749, 0.14543285965919495, -0.4411625862121582, -0.23803557455539703, -0.013946899212896824, -0.08445045351982117, 0.21030962467193604, -0.004942231811583042, -0.20481278002262115, -0.046240344643592834, 0.399699866771698, 0.0542028583586216, -0.266693115234375, 0.27243202924728394, 0.1473267674446106, -0.28837594389915466, 0.44838643074035645, 0.01125914603471756, 0.6613929867744446, 0.2898104786872864, -0.21789175271987915, 0.29653069376945496, -0.21648283302783966, 0.567108690738678, -0.18582594394683838, 0.1396549642086029, 0.09834535419940948, -0.14164112508296967, 0.02411879412829876, 0.2629135549068451, 0.36447224020957947, -0.041985832154750824, -0.32919639348983765, 0.24835918843746185, 0.21675212681293488, 0.3008890450000763, 0.21273377537727356, 0.11631831526756287, 0.08536605536937714, -0.30704712867736816, 0.0013394653797149658, 0.18750162422657013, 0.0840928852558136, 0.2702896296977997, -0.04117599502205849, 0.09877104312181473, 0.02850993350148201, -0.37169861793518066, -0.22798746824264526, 0.031631626188755035, 0.4609616994857788, 0.11891843378543854, 0.012707550078630447, 0.0654439628124237, 0.23905393481254578, -0.3236115276813507, 0.27114030718803406, 0.10313178598880768, -0.08830918371677399, 0.2994327247142792, 0.31932511925697327, 0.010497095994651318, -0.17676053941249847, -0.1510276347398758, 0.02432187832891941, -0.1588125079870224, -0.2019992470741272, 0.227227121591568, 0.17419704794883728, -0.23866261541843414, -0.20172829926013947, 0.03390888124704361, -0.05447128415107727, 0.14230890572071075, 0.5334233045578003, 0.4345424771308899, 0.10620898008346558, -0.1701265126466751, 0.20466473698616028, 0.12692946195602417, -0.11475086957216263, 0.003119036555290222, 0.1529112607240677, -0.1906910240650177, -0.18325179815292358, 0.5322160720825195, 0.2791701853275299, -0.13204441964626312, -0.06292753666639328, -0.11571179330348969, 0.016295425593852997, -0.21505936980247498, -0.18904012441635132, 0.14092548191547394, -0.39371049404144287, -0.12774871289730072, 0.16813942790031433, -0.2827528715133667, 0.249384343624115, 0.809526264667511, 0.07201109081506729, 0.20189455151557922, -0.2282634675502777, -0.12816709280014038, -0.025408564135432243, -0.07955537736415863, -0.47719553112983704, 0.18120920658111572, -0.020504793152213097, -0.05071469023823738, -0.08789874613285065, -0.012812217697501183, -0.395634263753891, -0.2420559972524643, 0.19528838992118835, -0.0969545990228653, 0.4021477997303009, 0.21221530437469482, 0.46046316623687744, 0.18588657677173615, 0.2123563438653946, 0.01510624773800373, -0.20884305238723755, -0.17874601483345032, -0.013656235300004482, 0.10726416110992432, 0.08703911304473877, 0.2987448275089264, -0.19903363287448883, -0.18296250700950623, -0.29235219955444336, 0.022286254912614822, 0.3350931406021118, 0.10991965979337692, -0.19674576818943024, 0.08827080577611923, -0.4510153830051422, 0.010249510407447815, 0.3422650098800659, 0.18725591897964478, 0.17638707160949707, 0.09170499444007874, -0.06608234345912933, 0.37622952461242676, -0.12612858414649963, -0.026595745235681534, 0.12284734100103378, 0.34496554732322693, -0.2599082589149475, 0.1292826384305954, 0.008576475083827972, 0.08216628432273865, -0.1988820880651474, -0.17354606091976166, 0.0164012648165226, -0.3018578290939331, 0.006897037383168936, -0.05663842707872391, -0.16726356744766235, 0.30348384380340576, -0.23948143422603607, 0.069664865732193, -0.27627095580101013, -0.16598986089229584, 0.20794063806533813, 0.277228981256485, 0.2561790347099304, -0.09345343708992004, 0.7590201497077942, 0.10688678175210953, 0.141437366604805, -0.07472886145114899, 0.220796599984169, 0.1693820357322693, 0.04263317957520485, 0.16868583858013153, 0.27581411600112915, -0.08789457380771637, 0.36049628257751465, -0.07754957675933838, 0.30084964632987976, 0.03680383414030075, 0.27399006485939026, 0.5524520874023438, 0.05505950748920441, -0.3132965862751007, 0.10778726637363434, 0.4623663127422333, 0.05116467922925949, 0.05843363329768181, 0.18636426329612732, -0.2256689965724945, -0.020918063819408417, 0.1821378767490387, -0.7633116841316223, -0.1767716258764267, 0.08755527436733246, -0.27711552381515503, -0.1974259614944458, -0.10568851977586746, -0.4732803404331207, -0.006775442510843277, 0.2994885742664337, 0.0507812574505806, -0.01612076163291931, -0.20815573632717133, 0.008194021880626678, -0.06037716567516327, -0.2778093218803406, 0.0737769603729248, 0.25696393847465515, 0.006414398550987244, 0.2032139152288437, -0.41788893938064575, -0.136106476187706, 0.3770042359828949, 0.13934028148651123, 0.1372518390417099, -0.08849313855171204, 0.5053771138191223, 0.1196649968624115, 0.10259033739566803, -0.09160102158784866, -0.009294545277953148, 0.18863481283187866, 0.12328141927719116, 0.10457628965377808, 0.1803712248802185, 0.19206202030181885, -0.1865663379430771, 0.15649420022964478, -0.03523502126336098, -0.2429850697517395, -0.2443132996559143, 0.1843424141407013, 0.10635710507631302, 0.1503627896308899, -0.08765809237957001, 0.2204679548740387, 0.03232865780591965, -0.3462282717227936, -0.062112171202898026, 0.0205736942589283, -0.12764044106006622, -0.14604617655277252, 0.11986368894577026, -0.06510411202907562, -0.12488248944282532, 0.16994708776474, -0.11498836427927017, 0.06258660554885864, -0.37307971715927124, -0.0043128617107868195, 0.36594268679618835, 0.18773096799850464, 0.0706617459654808, 0.05478424206376076, 0.1421360969543457, 0.14274688065052032, -0.2538003921508789, 0.12222783267498016, -0.43262767791748047, 0.5907484889030457, -0.08773471415042877, -0.18280205130577087, 0.14077696204185486, 0.4150140881538391, -0.11227664351463318, -0.12778465449810028, -0.2960703670978546, -0.2116580456495285, 0.06730302423238754, 0.1088857427239418, -0.3329247832298279, -0.12729576230049133, 0.18393832445144653, 0.03788930922746658, 0.4441291391849518, 0.04809001460671425, 0.21306069195270538, -0.12853896617889404, -0.07115831971168518, -0.5014453530311584, -0.13466601073741913, -0.023916207253932953, 0.09259244054555893, -0.13384437561035156, -0.029839353635907173, 0.04316170513629913, 0.1195131242275238, 0.022034907713532448, 0.34258824586868286, 0.04613105207681656, -0.09075698256492615, -0.09505666792392731, 0.42447665333747864, -0.5147941708564758, -0.30801665782928467, -0.10602828115224838, -0.10277196019887924, 0.06682362407445908, -0.12948109209537506, -0.04089559614658356, -0.24251939356327057, 0.34958982467651367, -0.22609247267246246, -0.08503827452659607, -0.08611087501049042, 0.4343439042568207, 0.20387017726898193, 0.08677231520414352, -0.2204902470111847, 0.09851137548685074, 0.22752755880355835, 0.19771817326545715, -0.276064395904541, 0.15084673464298248, -0.04482284188270569, 0.017772290855646133, -0.22074414789676666, 0.023582823574543, -0.17097073793411255, 0.015042776241898537, 0.1533435732126236, -0.32380449771881104 ]
https://github.com/huggingface/datasets/issues/163
[Feature request] Add cos-e v1.0
> @mariamabarham Just wanted to note that default behavior `cos_e = load_dataset("cos_e")` now loads `v1.0`. Not sure if this is intentional (but the flag specification does work as intended). In the new version of `nlp`, if you try `cos_e = load_dataset("cos_e")` it throws this error: ``` ValueError: Config name is missing. Please pick one among the available configs: ['v1.0', 'v1.11'] Example of usage: `load_dataset('cos_e', 'v1.0')` ``` For datasets with at least two configurations, we now force the user to pick one (no default)
I noticed the second release of cos-e (v1.11) is included in this repo. I wanted to request inclusion of v1.0, since this is the version on which results are reported on in [the paper](https://www.aclweb.org/anthology/P19-1487/), and v1.11 has noted [annotation](https://github.com/salesforce/cos-e/issues/2) [issues](https://arxiv.org/pdf/2004.14546.pdf).
83
[Feature request] Add cos-e v1.0 I noticed the second release of cos-e (v1.11) is included in this repo. I wanted to request inclusion of v1.0, since this is the version on which results are reported on in [the paper](https://www.aclweb.org/anthology/P19-1487/), and v1.11 has noted [annotation](https://github.com/salesforce/cos-e/issues/2) [issues](https://arxiv.org/pdf/2004.14546.pdf). > @mariamabarham Just wanted to note that default behavior `cos_e = load_dataset("cos_e")` now loads `v1.0`. Not sure if this is intentional (but the flag specification does work as intended). In the new version of `nlp`, if you try `cos_e = load_dataset("cos_e")` it throws this error: ``` ValueError: Config name is missing. Please pick one among the available configs: ['v1.0', 'v1.11'] Example of usage: `load_dataset('cos_e', 'v1.0')` ``` For datasets with at least two configurations, we now force the user to pick one (no default)
[ -0.16037409007549286, -0.19055965542793274, -0.04093017056584358, -0.5251529216766357, -0.5301493406295776, -0.20913508534431458, 0.079169861972332, 0.3027108609676361, -0.0848674476146698, 0.2993151545524597, 0.09133654087781906, 0.5883413553237915, -0.1273893415927887, 0.30075550079345703, 0.1448274850845337, 0.19229526817798615, 0.04938126727938652, 0.3573560416698456, 0.01609160751104355, -0.1463334560394287, -0.28475189208984375, 0.2668953537940979, -0.15900373458862305, 0.022065740078687668, 0.1762133687734604, 0.18231648206710815, -0.32179614901542664, -0.026324667036533356, -0.061038538813591, -0.26568201184272766, 0.43385517597198486, 0.2968847453594208, 0.24196356534957886, -0.15443068742752075, -0.00011306986561976373, -0.24875423312187195, 0.508863627910614, -0.062203094363212585, -0.4297463297843933, -0.3075879216194153, -0.3339644968509674, -0.5184958577156067, 0.16902543604373932, -0.09877826273441315, 0.18584436178207397, 0.15064725279808044, 0.36876362562179565, -0.03254202753305435, -0.0012717768549919128, 0.10816008597612381, 0.22739477455615997, 0.28239110112190247, -0.08409378677606583, -0.2982402443885803, 0.1130264401435852, 0.37503063678741455, -0.3086329996585846, -0.16344034671783447, -0.04228007793426514, -0.27135366201400757, -0.052447281777858734, 0.3673296570777893, 0.20168127119541168, -0.22526949644088745, -0.19585588574409485, -0.047847580164670944, 0.1452469676733017, 0.0442860946059227, 0.07859732210636139, 0.0942230075597763, 0.3499737083911896, 0.046611953526735306, -0.2632308304309845, 0.042365215718746185, 0.0768408477306366, -0.5963780283927917, 0.28150537610054016, -0.06955378502607346, -0.1712327003479004, -0.07540804147720337, 0.2659720480442047, -0.27415740489959717, -0.4252689480781555, 0.38042956590652466, -0.06080390885472298, 0.26074445247650146, -0.06658729165792465, -0.06787731498479843, 0.23503392934799194, 0.08089515566825867, -0.10468458384275436, 0.02762959524989128, -0.14414788782596588, 0.2545183002948761, -0.4161164462566376, -0.14212289452552795, 0.4012798070907593, 0.041420068591833115, 0.27696409821510315, 0.14983642101287842, 0.27908629179000854, 0.012850714847445488, -0.05144185945391655, 0.1853979527950287, 0.08551699668169022, 0.3146652579307556, 0.6022406816482544, 0.02870718389749527, 0.26106077432632446, 0.0919453576207161, 0.5128621459007263, 0.10024499148130417, 0.07537535578012466, 0.020594779402017593, -0.16389071941375732, -0.12788331508636475, 0.11135794222354889, -0.3812933564186096, -0.12265633046627045, -0.09454694390296936, -0.09384199976921082, 0.06300170719623566, 0.024809494614601135, 0.19083034992218018, 0.2591688632965088, 0.25656813383102417, 0.3442847728729248, -0.07276129722595215, -0.13242346048355103, -0.38469773530960083, -0.24910174310207367, -0.05333351716399193, -0.39312586188316345, 0.27025607228279114, 0.35871753096580505, -0.23135283589363098, 0.2805839478969574, -0.40262797474861145, 0.19323530793190002, 0.016767941415309906, -0.2188313603401184, 0.310035765171051, -0.1656470000743866, 0.07989020645618439, 0.04688164219260216, 0.013723308220505714, -0.3002425730228424, 0.26143044233322144, -0.2551448941230774, 0.09527305513620377, -0.2514292597770691, -0.5217931866645813, -0.28987404704093933, 0.21310174465179443, -0.2102161943912506, -0.3397219479084015, -0.16480198502540588, 0.48887622356414795, -0.22434628009796143, -0.2618386149406433, -0.01977558434009552, 0.07405781745910645, -0.3711226284503937, -0.1326875537633896, -0.08441773056983948, 0.15364223718643188, 0.03227480128407478, -0.23951102793216705, -0.658932089805603, 0.023701857775449753, 0.050404638051986694, -0.10603713989257812, -0.10561550408601761, -0.265781044960022, -0.1496504247188568, -0.059896863996982574, 0.722975492477417, -0.4373762309551239, -0.11549997329711914, 0.2689369022846222, -0.06760728359222412, -0.20526200532913208, 0.1048450767993927, -0.13712196052074432, -0.23001334071159363, -0.1585983783006668, -0.17310047149658203, 0.25630825757980347, -0.051310792565345764, -0.10487138479948044, -0.08494456112384796, -0.3723753094673157, -0.08402224630117416, 0.24752382934093475, 0.2598852217197418, 0.010237008333206177, 0.26540178060531616, -0.17162559926509857, 0.2031889259815216, -0.06941086053848267, 0.14847150444984436, 0.03821380436420441, 0.4409763813018799, 0.04296755790710449, 0.09988884627819061, 0.10250712186098099, -0.5050922632217407, 0.07856296002864838, -0.048063695430755615, 0.27471983432769775, 0.32302993535995483, -0.2149772197008133, -0.049816764891147614, -0.05138061195611954, 0.0627845823764801, -0.24295830726623535, 0.12956178188323975, 0.2916693091392517, -0.04538183659315109, -0.027404269203543663, -0.08810294419527054, 0.47716760635375977, -0.21469998359680176, -0.17016027867794037, -0.22500739991664886, 0.07947064191102982, -0.13179512321949005, -0.03842950239777565, 0.0011603087186813354, 0.30664336681365967, -0.005750544369220734, 0.03146104887127876, -0.08589605242013931, 0.3410400450229645, -0.17072215676307678, 0.23271189630031586, 0.0020119808614253998, 0.05178253352642059, 0.15532885491847992, -0.17103669047355652, 0.07149919122457504, -0.038748033344745636, -0.0591479055583477, 0.17416703701019287, -0.23587486147880554, 0.4087851643562317, 0.055551573634147644, -0.0049423947930336, 0.015664823353290558, -0.025185124948620796, 0.02458135597407818, -0.21304474771022797, -0.5066872239112854, -0.16084487736225128, 0.39071208238601685, 0.0903763473033905, -0.41927772760391235, -0.21827366948127747, -0.42194920778274536, -0.053911127150058746, 0.26591914892196655, 0.010921645909547806, 0.06860555708408356, 0.34612083435058594, 0.19898220896720886, -0.2583039104938507, 0.2876764237880707, -0.033756811171770096, 0.5213510394096375, 0.35590946674346924, -0.1437416523694992, 0.055379122495651245, -0.4970719516277313, -0.034334175288677216, 0.19374395906925201, 0.222716823220253, 0.16498315334320068, 0.03451279178261757, 0.4799373745918274, 0.024718863889575005, -0.41517627239227295, -0.4975751042366028, 0.030081981793045998, -0.06677867472171783, -0.17099304497241974, -0.07678636163473129, -0.2356606423854828, -0.2485535740852356, -0.1343773901462555, 0.15273712575435638, -0.00664326548576355, -0.28227052092552185, 0.25305503606796265, 0.22281810641288757, -0.09684912860393524, 0.27046433091163635, -0.08819796144962311, 0.716516375541687, -0.17323876917362213, 0.13250207901000977, -0.21116675436496735, -0.019733423367142677, -0.4386219084262848, 0.14359350502490997, -0.36732053756713867, -0.12818732857704163, 0.4306371510028839, 0.03370657563209534, 0.24169094860553741, 0.10172486305236816, -0.6566222310066223, 0.07370645552873611, -0.16742029786109924, -0.08497553318738937, 0.07531499862670898, -0.38130736351013184, -0.17965365946292877, -0.09716523438692093, 0.09173239022493362, -0.3468779921531677, -0.35677865147590637, -0.060840725898742676, -0.17782936990261078, 0.19364385306835175, -0.3861488997936249, -0.5043293237686157, -0.00289226695895195, -0.38540270924568176, -0.06033189594745636, -0.03287236765027046, 0.2645629942417145, 0.728746771812439, -0.029272373765707016, 0.06091109290719032, -0.01881497912108898, 0.053979404270648956, -0.3222585916519165, 0.4111199676990509, 0.2417624592781067, -0.36633092164993286, -0.32564181089401245, -0.0940813422203064, -0.009011346846818924, 0.27595439553260803, 0.13772451877593994, -0.2007199376821518, -0.37605220079421997, 0.17288680374622345, 0.09563259780406952, -0.18955020606517792, 0.1695752888917923, 0.49473270773887634, 0.035684600472450256, -0.14348958432674408, -0.1199137419462204, -0.3978120684623718, 0.2254878282546997, 0.5513761639595032, 0.31346914172172546, -0.09973839670419693, 0.2379779815673828, 0.1289060413837433, 0.054653704166412354, 0.18605965375900269, -0.03154737129807472, 0.21331363916397095, 0.0751071497797966, 0.30275601148605347, -0.06819223612546921, -0.04883873835206032, 0.18620425462722778, 0.11914421617984772, 0.3289925456047058, 0.4975135326385498, 0.101810023188591, -0.49265387654304504, -0.3609600365161896, -0.24205800890922546, 0.12460725754499435, 0.0034184008836746216, -0.0689060166478157, 0.06073253974318504, 0.4087856411933899, 0.026039976626634598, -0.26158931851387024, -0.413523405790329, -0.17632922530174255, -0.10904957354068756, 0.4381890892982483, 0.0329928994178772, 0.012864932417869568, -0.08266270160675049, 0.026465801522135735, -0.42439091205596924, 0.23217613995075226, 0.0650169774889946, 0.28485602140426636, -0.05420153960585594, -0.13267475366592407, 0.11208353191614151, 0.08530976623296738, 0.26006972789764404, -0.2370329648256302, -0.12139804661273956, -0.011055510491132736, 0.12417037785053253, -0.1962541788816452, -0.06323299556970596, -0.16072852909564972, -0.17356674373149872, 0.07299989461898804, 0.01652727648615837, 0.012415818870067596, -0.18408142030239105, 0.5894100666046143, -0.19198831915855408, 0.027728501707315445, -0.33776775002479553, -0.15445482730865479, -0.29206764698028564, -0.09544709324836731, -0.08875230699777603, -0.18691952526569366, 0.1422535926103592, -0.2019132673740387, -0.005332905799150467, 0.22868739068508148, -0.09486305713653564, -0.005437038838863373, 0.22884535789489746, -0.248328298330307, 0.13451386988162994, -0.09508819878101349, 0.01748870499432087, 0.09789484739303589, 0.0397714227437973, -0.04592772573232651, 0.23973795771598816, -0.09042972326278687, 0.18363913893699646, 0.04171408712863922, 0.3428073823451996, 0.29112622141838074, 0.07612771540880203, 0.15024425089359283, -0.38553115725517273, -0.25055694580078125, -0.04244702681899071, -0.08079594373703003, 0.242547407746315, -0.06657199561595917, -0.3306771516799927, -0.09095721691846848, 0.49124675989151, 0.0660909116268158, -0.33063358068466187, 0.3240832984447479, 0.0861424133181572, -0.33784401416778564, 0.4092400074005127, -0.12892010807991028, 0.7491978406906128, 0.3950466513633728, 0.03774061053991318, 0.32539916038513184, -0.03980746492743492, 0.8740341067314148, -0.03195873647928238, 0.27681100368499756, 0.0714416652917862, 0.05260837450623512, 0.03373274952173233, 0.24986279010772705, 0.3760491907596588, -0.01504816859960556, -0.3114893436431885, 0.37499940395355225, 0.5791006684303284, 0.06838031858205795, 0.19329150021076202, 0.3513815104961395, 0.14927417039871216, -0.4552726745605469, -0.1680753231048584, 0.1207706481218338, -0.10806283354759216, 0.3852899372577667, -0.014131603762507439, -0.006578067317605019, 0.016939956694841385, -0.3202202320098877, -0.2105749249458313, 0.04029165208339691, 0.39293038845062256, 0.05890219658613205, 0.07368309050798416, 0.02825697511434555, 0.423744797706604, -0.23016363382339478, 0.18266689777374268, 0.16094505786895752, -0.20402809977531433, 0.1644720584154129, 0.13954192399978638, -0.018578574061393738, -0.07313769310712814, -0.1439751237630844, 0.08395568281412125, -0.176288902759552, -0.23792874813079834, 0.10621435940265656, 0.19553524255752563, -0.20473992824554443, -0.11868363618850708, -0.007554367184638977, -0.03843283653259277, 0.2452457845211029, 0.292188435792923, 0.500443160533905, 0.10781094431877136, -0.23766817152500153, 0.17232933640480042, 0.09804878383874893, -0.10802879184484482, 0.02398022636771202, 0.20026271045207977, -0.15120673179626465, -0.11280308663845062, 0.5301056504249573, 0.21330410242080688, -0.18939770758152008, 0.1030634418129921, -0.14518451690673828, 0.07328175753355026, -0.19599473476409912, -0.15487855672836304, -0.03298589214682579, -0.51446133852005, -0.1993074268102646, 0.18461072444915771, -0.2377413511276245, 0.309206485748291, 0.7213863134384155, 0.016555041074752808, 0.24946585297584534, -0.10885825753211975, -0.1884736269712448, -0.053462035953998566, 0.0277339406311512, -0.582719624042511, 0.16098619997501373, 0.13868629932403564, 0.05973055958747864, -0.03966527432203293, 0.07866739481687546, -0.3642284572124481, -0.2929229140281677, 0.12223785370588303, 0.04758665710687637, 0.5287964344024658, 0.17223326861858368, 0.2284766286611557, 0.08470839262008667, 0.13575151562690735, -0.1003011167049408, -0.18807849287986755, -0.15801280736923218, -0.13643503189086914, 0.11905049532651901, 0.17177549004554749, 0.17103174328804016, -0.17962652444839478, -0.19826263189315796, -0.20716480910778046, -0.02411884069442749, 0.17774668335914612, -0.07091845571994781, -0.19365115463733673, 0.33471956849098206, -0.4681257903575897, -0.04513263702392578, 0.38918638229370117, 0.35720497369766235, 0.1698106974363327, 0.049130868166685104, -0.02882910706102848, 0.5353579521179199, -0.03685259073972702, -0.051141686737537384, -0.08615107834339142, 0.24315887689590454, -0.32708436250686646, 0.24757206439971924, -0.09058978408575058, -0.007488064467906952, -0.2218112200498581, -0.22819696366786957, -0.03033962845802307, -0.3078690469264984, 0.03573700413107872, -0.04483136907219887, 0.06395334005355835, 0.23791754245758057, -0.3148874342441559, 0.05522356554865837, -0.03594927862286568, -0.02913203090429306, 0.1841198056936264, 0.21877321600914001, 0.32171398401260376, -0.11545884609222412, 0.6415477395057678, -0.04418770968914032, 0.01491108164191246, -0.18162919580936432, 0.2836935520172119, 0.1905103474855423, 0.1689395010471344, 0.0888020247220993, 0.1863638460636139, 0.008465263992547989, 0.3330289423465729, -0.06245873123407364, 0.22023740410804749, -0.048585131764411926, 0.34394723176956177, 0.5547144412994385, 0.07117654383182526, -0.35832977294921875, -0.05430201068520546, 0.38938504457473755, 0.14579086005687714, 0.12391252815723419, 0.13414661586284637, 0.007062509655952454, -0.07100177556276321, 0.18138785660266876, -0.6420037150382996, 0.053379978984594345, 0.03196112439036369, -0.3519982695579529, -0.38255956768989563, -0.09260975569486618, -0.510448694229126, -0.062151890248060226, 0.14173422753810883, -0.007494240999221802, 0.03294192999601364, -0.07868829369544983, 0.023907631635665894, -0.2059454619884491, -0.054588496685028076, 0.22706568241119385, 0.16826969385147095, -0.023408371955156326, 0.3689230680465698, -0.5310977697372437, -0.21128609776496887, 0.19069604575634003, 0.2477075606584549, 0.209294855594635, -0.039002127945423126, 0.4058570861816406, 0.11202497780323029, 0.14556176960468292, -0.07076343894004822, -0.059820085763931274, 0.16103312373161316, 0.3544895052909851, 0.0419977605342865, 0.2613224387168884, 0.09808722883462906, -0.09979282319545746, 0.14007197320461273, 0.043431103229522705, -0.2990829646587372, -0.21187905967235565, 0.32497140765190125, 0.17535440623760223, 0.18041357398033142, -0.023300014436244965, 0.37575414776802063, -0.13017237186431885, -0.23831576108932495, 0.08112408220767975, 0.10263847559690475, -0.10894862562417984, -0.24176250398159027, 0.09944406151771545, -0.07116542756557465, 0.007066693156957626, 0.18419787287712097, -0.030557140707969666, 0.02113477513194084, -0.4140673279762268, -0.1286512315273285, 0.2505950331687927, 0.11373497545719147, -0.1267634779214859, 0.09774143248796463, 0.15977393090724945, 0.04668603092432022, -0.2836061120033264, -0.12935714423656464, -0.050163060426712036, 0.5626106858253479, -0.019448652863502502, -0.2112589180469513, 0.15100017189979553, 0.3584877848625183, -0.02639082632958889, -0.12816956639289856, -0.18867036700248718, -0.2875412702560425, 0.04389889910817146, -0.008159410208463669, -0.32416659593582153, 0.01152590662240982, 0.043697621673345566, 0.2331978976726532, 0.3404274880886078, 0.10100162774324417, 0.27756983041763306, -0.1553441286087036, -0.08501658588647842, -0.5489777326583862, -0.1848103553056717, -0.05637924745678902, 0.0664723739027977, -0.09563878178596497, 0.05234457552433014, -0.03479687124490738, 0.3438427150249481, -0.010121448896825314, 0.317066490650177, -0.02081400714814663, -0.09819798916578293, -0.03269513323903084, 0.40111279487609863, -0.47487983107566833, -0.1552659422159195, -0.021512098610401154, -0.017494507133960724, 0.03464514762163162, -0.06058590114116669, -0.07859846204519272, -0.23899772763252258, 0.35251230001449585, -0.16081762313842773, -0.044766947627067566, -0.020303405821323395, 0.42433643341064453, 0.25574570894241333, 0.07693614810705185, -0.25946542620658875, -0.01638057827949524, 0.21027003228664398, 0.13244223594665527, -0.13598982989788055, 0.25627586245536804, -0.15202389657497406, -0.025489820167422295, -0.20269480347633362, -0.10972955822944641, -0.11596795171499252, -0.15834105014801025, 0.11542096734046936, -0.34984666109085083 ]
https://github.com/huggingface/datasets/issues/161
Discussion on version identifier & MockDataLoaderManager for test data
usually you can replace `download` in your dataset script with `download_and_prepare()` - could you share the code for your dataset here? :-)
Hi, I'm working on adding a dataset and ran into an error due to `download` not being defined on `MockDataLoaderManager`, but being defined in `nlp/utils/download_manager.py`. The readme step running this: `RUN_SLOW=1 pytest tests/test_dataset_common.py::DatasetTest::test_load_real_dataset_localmydatasetname` triggers the error. If I can get something to work, I can include it in my data PR once I'm done.
22
Discussion on version identifier & MockDataLoaderManager for test data Hi, I'm working on adding a dataset and ran into an error due to `download` not being defined on `MockDataLoaderManager`, but being defined in `nlp/utils/download_manager.py`. The readme step running this: `RUN_SLOW=1 pytest tests/test_dataset_common.py::DatasetTest::test_load_real_dataset_localmydatasetname` triggers the error. If I can get something to work, I can include it in my data PR once I'm done. usually you can replace `download` in your dataset script with `download_and_prepare()` - could you share the code for your dataset here? :-)
[ -0.29844072461128235, 0.27158892154693604, -0.025401635095477104, -0.17361319065093994, 0.11133851855993271, -0.03249090909957886, 0.3496929705142975, 0.3046950697898865, 0.09639105200767517, 0.13277667760849, 0.150236114859581, 0.1813913881778717, -0.29633498191833496, 0.054460927844047546, 0.1696770191192627, 0.030123654752969742, -0.0018448606133460999, 0.23788098990917206, -0.10852676630020142, 0.26449453830718994, -0.15700721740722656, 0.025940915569663048, -0.08346936106681824, 0.03472020477056503, -0.007923842407763004, 0.14469139277935028, -0.15397822856903076, 0.015508774667978287, -0.3736415207386017, -0.912010908126831, 0.42266353964805603, 0.08653801679611206, 0.18526969850063324, 0.40165024995803833, -0.00012305589916650206, -0.07805052399635315, 0.5848662257194519, -0.08126413822174072, -0.6614245772361755, -0.24752677977085114, 0.17996802926063538, -0.440165251493454, 0.3309341371059418, -0.03089107573032379, 0.05643070489168167, -0.14283576607704163, 0.2256736308336258, 0.036393411457538605, 0.0625525712966919, 0.39391669631004333, 0.14157569408416748, 0.278430312871933, 0.10396631062030792, -0.2289479374885559, -0.1139817014336586, 0.06613510847091675, -0.1395556926727295, 0.5098293423652649, 0.33754798769950867, 0.08086316287517548, -0.026145808398723602, -0.1172659695148468, 0.07583954930305481, 0.4826370179653168, 0.17982541024684906, -0.02010544016957283, 0.45073333382606506, -0.026417680084705353, -0.19099855422973633, 0.000986386090517044, 0.8557775616645813, -0.5572376251220703, -0.28589099645614624, 0.020644597709178925, 0.09727928042411804, -0.1694418489933014, 0.2176302969455719, -0.20579785108566284, -0.32464468479156494, 0.017004363238811493, -0.19486907124519348, -0.3370639979839325, -0.09025188535451889, 0.3106400966644287, -0.21952888369560242, 0.18331244587898254, 0.06803252547979355, 0.2122710943222046, 0.0559975802898407, -0.09097297489643097, 0.23838987946510315, -0.022679932415485382, -0.006122402846813202, 0.25748276710510254, -0.0842554122209549, -0.24596428871154785, -0.315824955701828, -0.20292508602142334, 0.15998366475105286, 0.05829774960875511, -0.48271358013153076, -0.1835443377494812, 0.04289015009999275, 0.2146058976650238, 0.11196000874042511, 0.3177333176136017, 0.3439336121082306, 0.2845926880836487, 0.19506844878196716, 0.17445619404315948, 0.2424226999282837, 0.15372398495674133, -0.07111562788486481, -0.39698171615600586, 0.10665512084960938, 0.0880112424492836, 0.24009360373020172, -0.28065308928489685, -0.1707746684551239, -0.2619646489620209, -0.33813756704330444, 0.009782344102859497, -0.07732312381267548, 0.292280912399292, -0.09014852344989777, -0.23386305570602417, 0.049078039824962616, 0.44676923751831055, -0.19828681647777557, -0.1562923640012741, -0.02728917822241783, 0.10530063509941101, -0.21463604271411896, 0.049913570284843445, 0.3252115845680237, 0.014613742008805275, 0.40427449345588684, -0.24093659222126007, -0.15935087203979492, -0.04674264043569565, 0.10865794122219086, 0.059232380241155624, -0.26352250576019287, 0.30100634694099426, -0.07218077033758163, 0.08341001719236374, 0.04866255074739456, -0.2762935161590576, -0.21490836143493652, 0.23098871111869812, 0.06791549175977707, -0.4953611493110657, -0.023342473432421684, 0.11334001272916794, -0.5093958973884583, -0.05985940992832184, -0.06913205236196518, -0.1643339991569519, 0.10568110644817352, -0.3929361402988434, -0.030813999474048615, -0.434836745262146, -0.3722635805606842, -0.11169138550758362, -0.03351261839270592, 0.29697784781455994, -0.3369511663913727, -0.27008476853370667, -0.44567832350730896, -0.3823714852333069, 0.21316663920879364, -0.2579706311225891, -0.07269969582557678, 0.20810329914093018, -0.4191892147064209, -0.029213134199380875, 0.5602769255638123, -0.5683711767196655, -0.3613015115261078, 0.4470447301864624, -0.4189879298210144, -0.25901246070861816, 0.18650421500205994, -0.0008603132446296513, 0.06650587916374207, -0.3295425772666931, -0.143052875995636, 0.06461162120103836, 0.0423734113574028, -0.13622742891311646, -0.11024278402328491, -0.26765701174736023, 0.1991443783044815, 0.26322802901268005, -0.09678247570991516, 0.13125492632389069, 0.1476367712020874, 0.1027582660317421, 0.3266960680484772, 0.14258994162082672, 0.1718102991580963, -0.0883588120341301, 0.23017235100269318, -0.22567002475261688, -0.1406853348016739, -0.10932881385087967, -0.6099810600280762, 0.23831850290298462, -0.0662354975938797, 0.20779506862163544, -0.14170946180820465, 0.02335815504193306, -0.6258832216262817, 0.015869630500674248, -0.05917106941342354, -0.22863847017288208, 0.006851769983768463, 0.19095495343208313, 0.11202628910541534, 0.018214859068393707, 0.037107113748788834, 0.06265542656183243, -0.2197255641222, 0.17596478760242462, 0.010265427641570568, -0.001248180866241455, -0.10338092595338821, 0.03828250989317894, 0.23613691329956055, 0.22019925713539124, 0.08650229871273041, -0.31085482239723206, -0.042486365884542465, 0.28622961044311523, 0.27485039830207825, 0.20396530628204346, 0.19296380877494812, -0.07467345893383026, 0.13897033035755157, 0.15383584797382355, 0.17406876385211945, 0.21679842472076416, 0.08699431270360947, -0.21022409200668335, 0.08055412769317627, 0.11069206148386002, 0.19249342381954193, -0.021693259477615356, -0.17491590976715088, 0.02605440653860569, 0.4049423635005951, 0.12913760542869568, -0.02623737044632435, -0.38228368759155273, 0.1004607081413269, 0.29537421464920044, 0.6366962790489197, -0.047104932367801666, 0.36636295914649963, -0.10841738432645798, -0.19691777229309082, -0.3486185073852539, 0.0082019604742527, 0.16020692884922028, -0.15804901719093323, -0.09225622564554214, -0.005739819258451462, 0.26889097690582275, 0.8805609941482544, -0.026490088552236557, 0.1716456264257431, 0.14539188146591187, -0.11143935471773148, -0.2071065455675125, 0.1883523017168045, 0.07700688391923904, 0.048255760222673416, 0.14204120635986328, -0.014179088175296783, -0.38311174511909485, -0.08877213299274445, -0.05308280140161514, 0.45894289016723633, 0.484392374753952, -0.3677526116371155, -0.1962987631559372, -0.2473428100347519, -0.36711910367012024, -0.4130910038948059, -0.3259515166282654, -0.15261772274971008, -0.30703118443489075, -0.12076371908187866, 0.27662521600723267, 0.13867038488388062, 0.22709238529205322, -0.2515866160392761, 0.18580780923366547, -0.23863764107227325, -0.31146010756492615, 0.09593908488750458, -0.17135828733444214, -0.34025314450263977, 0.030635159462690353, 0.22422724962234497, 0.03132014349102974, 0.41515156626701355, -0.14686691761016846, -0.21823188662528992, -0.25129783153533936, -0.24454715847969055, 0.12566086649894714, 0.08897510170936584, 0.5211693644523621, 0.45991745591163635, -0.027610138058662415, 0.45716750621795654, 0.1171950101852417, 0.034604355692863464, -0.2661323845386505, -0.4669433534145355, -0.15766920149326324, -0.019803354516625404, 0.08315395563840866, -0.03829849883913994, -0.475276917219162, -0.5595118403434753, -0.07798318564891815, 0.01707615703344345, 0.10753880441188812, 0.02640487253665924, 0.04413173347711563, -0.09966856241226196, 0.20519223809242249, 0.025716720148921013, -0.11664043366909027, -0.14416959881782532, 0.07301518321037292, 0.020061038434505463, -0.1757686287164688, -0.179630309343338, 0.11319702863693237, -0.06287679076194763, 0.08196205645799637, -0.15483373403549194, -0.41781699657440186, -0.3486692011356354, 0.07465801388025284, 0.18385669589042664, 0.28053730726242065, -0.27233678102493286, 0.28959447145462036, 0.2498321682214737, 0.14815476536750793, -0.1244998425245285, -0.39252930879592896, 0.15622267127037048, 0.019437560811638832, 0.25050488114356995, 0.14687666296958923, 0.4825637936592102, -0.19213837385177612, 0.7506563067436218, 0.11803747713565826, -0.16310946643352509, 0.02059578150510788, -0.25561270117759705, 0.04147190973162651, -0.05395010858774185, -0.12413839995861053, 0.31781184673309326, -0.13975471258163452, -0.24665559828281403, 0.19574567675590515, -0.22311264276504517, -0.05246210843324661, -0.095521941781044, 0.2213321030139923, -0.06543827056884766, -0.025436583906412125, -0.05347694456577301, -0.20936062932014465, 0.05761229991912842, 0.03788940981030464, -0.07096169888973236, -0.19440750777721405, -0.21401962637901306, 0.0048634689301252365, 0.31353652477264404, 0.00492984801530838, 0.1602715402841568, -0.30051475763320923, 0.018574390560388565, -0.44620203971862793, 0.3039754629135132, 0.27127429842948914, 0.5984046459197998, 0.08295005559921265, 0.07675065845251083, 0.1285487413406372, 0.1027715876698494, 0.21404939889907837, -0.02882092259824276, 0.1224333792924881, 0.25168943405151367, -0.13396184146404266, -0.08915618807077408, -0.2406848520040512, -0.06588218361139297, 0.21251855790615082, -0.029731739312410355, 0.09589365124702454, -0.35008811950683594, -0.08926234394311905, 0.26529279351234436, 0.14095544815063477, -0.08590035140514374, -0.35511040687561035, -0.12330701947212219, -0.07265651226043701, -0.15032170712947845, -0.21273308992385864, -0.17580480873584747, 0.10044066607952118, -0.12927797436714172, 0.2820553779602051, 0.01495422050356865, -0.09018918871879578, -0.08661578595638275, 0.11567679047584534, 0.14000985026359558, -0.18445239961147308, 0.33762580156326294, 0.17730793356895447, 0.04688018560409546, 0.4023391306400299, 0.31333455443382263, -0.10161541402339935, -0.27464282512664795, 0.026888597756624222, -0.0069023133255541325, 0.38661760091781616, 0.12779361009597778, 0.11361683905124664, 0.04185850918292999, -0.26975345611572266, -0.14895163476467133, -0.29846101999282837, 0.19843807816505432, 0.3825054466724396, -0.09436438977718353, -0.051381759345531464, -0.36704021692276, 0.6012392640113831, 0.20578943192958832, -0.15702858567237854, 0.4772733151912689, -0.25194358825683594, -0.28033247590065, -0.055178917944431305, 0.07219089567661285, 0.8358830809593201, 0.12051676213741302, 0.1654246747493744, 0.37753674387931824, -0.26247847080230713, 0.36268702149391174, 0.09037944674491882, 0.16148604452610016, -0.5544983744621277, -0.08479981869459152, 0.024787666276097298, -0.2305978387594223, 0.24379819631576538, -0.10523229837417603, -0.23620714247226715, 0.3708558678627014, 0.047940224409103394, 0.28314292430877686, 0.25457608699798584, 0.3559737503528595, -0.11178580671548843, -0.044525232166051865, -0.10924933850765228, 0.1016581803560257, -0.16587059199810028, 0.40507522225379944, -0.23478862643241882, 0.08953909575939178, -0.08646880090236664, -0.012371014803647995, -0.2658644914627075, -0.11775895208120346, -0.14358942210674286, 0.061332616955041885, 0.07406362146139145, -0.14600107073783875, 0.10794630646705627, 0.19950389862060547, 0.13345928490161896, -0.16214817762374878, -0.1651235967874527, 0.15120473504066467, -0.15446242690086365, 0.10339920222759247, 0.3309926390647888, 0.057362303137779236, 0.2397741824388504, -0.33746662735939026, -0.17271879315376282, 0.13349279761314392, -0.23812973499298096, -0.1332804262638092, -0.09552434086799622, -0.18657781183719635, 0.10564903169870377, -0.3508000373840332, -0.3200393617153168, -0.1402071714401245, 0.07292906939983368, -0.14415031671524048, 0.04000474140048027, 0.2728862464427948, -0.37908774614334106, -0.00606575608253479, -0.1270800679922104, -0.3006228804588318, 0.016578935086727142, 0.47354403138160706, -0.06193169206380844, -0.16933679580688477, 0.7641563415527344, -0.17778778076171875, 0.068674236536026, -0.13675092160701752, 0.06282498687505722, 0.011606940999627113, -0.13863560557365417, 0.025742776691913605, -0.04889170452952385, -0.1807258278131485, 0.10184156149625778, 0.5352259278297424, 0.33291250467300415, 0.004820980131626129, 0.0025989599525928497, -0.46171149611473083, -0.44225773215293884, -0.09019319713115692, -0.15435516834259033, 0.18460482358932495, -0.07652527838945389, 0.13444067537784576, 0.21724897623062134, 0.10431456565856934, -0.20098277926445007, -0.17669573426246643, 0.007593667134642601, 0.24287134408950806, -0.1265759915113449, 0.04392141476273537, -0.02672293782234192, 0.08731259405612946, 0.031429775059223175, -0.027037248015403748, -0.33485209941864014, -0.07218378037214279, -0.06499539315700531, 0.202093243598938, 0.09678641706705093, -0.028630631044507027, 0.07220423221588135, -0.1510535329580307, -0.025452498346567154, 0.17819684743881226, -0.026853254064917564, 0.08564893156290054, -0.09723041951656342, 0.15172554552555084, 0.32388001680374146, -0.07167655974626541, -0.05003225430846214, 0.2173231989145279, 0.05624878406524658, 0.16201646625995636, -0.06300562620162964, 0.2864287495613098, -0.13696017861366272, 0.054602012038230896, 0.20251193642616272, 0.10919062048196793, 0.008269883692264557, 0.25383996963500977, 0.11799710243940353, -0.16820839047431946, 0.14139586687088013, -0.0499030165374279, 0.35579705238342285, 0.7263293266296387, -0.21952448785305023, -0.12481635808944702, 0.43290242552757263, 0.05636565387248993, -0.2547040283679962, -0.04399573802947998, 0.30986180901527405, 0.13776206970214844, 0.04623578116297722, 0.21163612604141235, 0.001519910991191864, -0.03864854946732521, 0.1667877584695816, 0.13611480593681335, 0.12866827845573425, -0.22629185020923615, -0.05903874710202217, 0.44832250475883484, -0.22031843662261963, 0.1624891757965088, 0.3900021016597748, 0.06479030847549438, 0.21330422163009644, 0.2186935544013977, 0.03703278303146362, 0.6142645478248596, 0.05644639581441879, 0.017885442823171616, 0.08402599394321442, -0.049764469265937805, -0.0006027109920978546, 0.2766369581222534, -0.030038580298423767, -0.08608371764421463, 0.3275442123413086, 0.5549078583717346, -0.3502873480319977, -0.15907344222068787, -0.2640807330608368, -0.08660285174846649, 0.03199813514947891, -0.14423806965351105, -0.28509414196014404, 0.0815574899315834, -0.2161397486925125, -0.13049758970737457, -0.11887718737125397, -0.3093910217285156, 0.162706196308136, 0.01704297959804535, -0.39833658933639526, -0.24440349638462067, -0.29097867012023926, 0.19365978240966797, -0.1094028577208519, -0.26990586519241333, 0.22087307274341583, -0.013040557503700256, 0.03285663574934006, 0.2911534607410431, 0.3248708248138428, 0.46994590759277344, 0.16254033148288727, -0.31814858317375183, -0.23251232504844666, -0.121405690908432, 0.09721162915229797, 0.03507987782359123, 0.380698561668396, -0.049887001514434814, -0.10703086853027344, 0.4631485939025879, 0.07265856862068176, 0.037133943289518356, 0.21864336729049683, 0.4321126639842987, -0.48619741201400757, -0.17150653898715973, 0.7934108376502991, -0.07552877813577652, -0.1411665380001068, -0.12957750260829926, 0.25525832176208496, -0.26042336225509644, 0.13434569537639618, 0.09955954551696777, -0.07344730198383331, 0.13018861413002014, 0.025473713874816895, 0.039477523416280746, -0.10640564560890198, 0.3546757102012634, 0.3110143542289734, -0.04381648451089859, -0.3694722056388855, -0.251398503780365, -0.7986471652984619, 0.227462500333786, -0.11356911063194275, -0.32369837164878845, -0.0648544430732727, -0.26030710339546204, 0.18936985731124878, 0.04811161756515503, -0.1414916068315506, 0.19518382847309113, 0.05486925691366196, 0.13517653942108154, -0.18994446098804474, -0.31790855526924133, -0.28872305154800415, -0.023948414251208305, -0.10388271510601044, -0.3869268596172333, 0.11374451965093613, -0.33049654960632324, -0.07958605140447617, 0.11841282248497009, -0.009781576693058014, 0.47797954082489014, -0.005792051553726196, 0.3654909133911133, -0.11248226463794708, 0.7752761840820312, 0.18795046210289001, 0.06328199058771133, -0.16494345664978027, 0.12217626720666885, -0.12064780294895172, 0.1348375678062439, -0.07033571600914001, 0.10441021621227264, -0.11896266788244247, 0.5212568640708923, -0.44372087717056274, 0.4605461657047272, -0.028102364391088486, 0.07408161461353302, -0.3021470606327057, 0.045648105442523956, -0.2554613947868347, 0.1218356341123581, 0.34445950388908386, 0.14114609360694885, -0.09161075949668884, 0.35506972670555115, -0.2149430513381958, -0.1903916597366333, 0.3962550163269043, -0.10349001735448837, -0.09398610889911652, 0.021516401320695877, 0.2646278142929077, -0.05172329396009445, -0.140091672539711, -0.43938666582107544, 0.19632679224014282, 0.29076072573661804, -0.09371201694011688, 0.11838948726654053, 0.2602340579032898, 0.2837514579296112, 0.13402149081230164, 0.01832745224237442, 0.9827132225036621, -0.05974347144365311, 0.1760435551404953, -0.10538390278816223, -0.22786001861095428 ]
https://github.com/huggingface/datasets/issues/161
Discussion on version identifier & MockDataLoaderManager for test data
I have an initial version here: https://github.com/EntilZha/nlp/tree/master/datasets/qanta Thats pretty close to what I'll do as a PR, but still want to do some more sanity checks/tests (just got tests passing). I figured out how to get all tests passing by adding a download command and some finagling with the data zip https://github.com/EntilZha/nlp/blob/master/tests/utils.py#L127
Hi, I'm working on adding a dataset and ran into an error due to `download` not being defined on `MockDataLoaderManager`, but being defined in `nlp/utils/download_manager.py`. The readme step running this: `RUN_SLOW=1 pytest tests/test_dataset_common.py::DatasetTest::test_load_real_dataset_localmydatasetname` triggers the error. If I can get something to work, I can include it in my data PR once I'm done.
52
Discussion on version identifier & MockDataLoaderManager for test data Hi, I'm working on adding a dataset and ran into an error due to `download` not being defined on `MockDataLoaderManager`, but being defined in `nlp/utils/download_manager.py`. The readme step running this: `RUN_SLOW=1 pytest tests/test_dataset_common.py::DatasetTest::test_load_real_dataset_localmydatasetname` triggers the error. If I can get something to work, I can include it in my data PR once I'm done. I have an initial version here: https://github.com/EntilZha/nlp/tree/master/datasets/qanta Thats pretty close to what I'll do as a PR, but still want to do some more sanity checks/tests (just got tests passing). I figured out how to get all tests passing by adding a download command and some finagling with the data zip https://github.com/EntilZha/nlp/blob/master/tests/utils.py#L127
[ -0.19621685147285461, 0.40003710985183716, -0.03146856650710106, -0.16441327333450317, 0.0442841537296772, -0.13329297304153442, 0.2794850170612335, 0.37617433071136475, 0.009488794952630997, 0.08292602002620697, 0.20643213391304016, 0.1580684632062912, -0.30056872963905334, 0.06804107129573822, 0.13692471385002136, 0.001200936734676361, -0.05646283179521561, 0.16989636421203613, -0.09795351326465607, 0.21250639855861664, -0.12722057104110718, 0.07482493668794632, 0.020457252860069275, 0.10806158185005188, -0.027999160811305046, 0.0887560024857521, -0.2158944010734558, 0.03439094126224518, -0.3809470534324646, -0.7858073115348816, 0.3818260729312897, 0.07057221233844757, 0.18519970774650574, 0.35870566964149475, -0.0001226895401487127, -0.08625614643096924, 0.5880783796310425, -0.05607670918107033, -0.7038213014602661, -0.23162056505680084, 0.24540725350379944, -0.48045551776885986, 0.30185362696647644, -0.021507591009140015, 0.18851730227470398, -0.13163799047470093, 0.24420899152755737, 0.10435107350349426, 0.16175146400928497, 0.3224484324455261, 0.11873655021190643, 0.27763259410858154, 0.051467981189489365, -0.1797240972518921, -0.10094475001096725, 0.08600449562072754, -0.08926822245121002, 0.5028814673423767, 0.3648624122142792, 0.031119758263230324, -0.11236345022916794, -0.1311188042163849, 0.09226363152265549, 0.4931352436542511, 0.12502196431159973, -0.02229383960366249, 0.5011738538742065, 0.019112328067421913, -0.2128937542438507, 0.04104873165488243, 0.7716665267944336, -0.5064088106155396, -0.3754851818084717, -0.07861016690731049, 0.05649532750248909, -0.13751444220542908, 0.260755330324173, -0.16008786857128143, -0.3946453332901001, 0.01982000470161438, -0.16637563705444336, -0.280371755361557, -0.06712176650762558, 0.2935134768486023, -0.28309348225593567, 0.2682919502258301, 0.07774814963340759, 0.17557865381240845, 0.08950261026620865, -0.10084995627403259, 0.2573431134223938, -0.0618366077542305, 0.02440551482141018, 0.23488181829452515, -0.030216101557016373, -0.22387458384037018, -0.2610192596912384, -0.2221423089504242, 0.19221404194831848, 0.08718431740999222, -0.4626255929470062, -0.19067561626434326, -0.031207188963890076, 0.149598628282547, 0.1416141837835312, 0.41712915897369385, 0.3384236991405487, 0.2389007955789566, 0.243288055062294, 0.16279220581054688, 0.24343913793563843, 0.2634251117706299, -0.05981328338384628, -0.3704581558704376, -0.032497383654117584, 0.09223352372646332, 0.14825257658958435, -0.3287046253681183, -0.15334047377109528, -0.22707174718379974, -0.3853181302547455, -0.046314239501953125, -0.05492482706904411, 0.23764851689338684, -0.10888942331075668, -0.14659383893013, 0.049011409282684326, 0.41204339265823364, -0.2063010334968567, -0.1511346995830536, -0.02948875166475773, 0.04452655091881752, -0.19154059886932373, -0.012613719329237938, 0.3086445927619934, 0.05575837194919586, 0.378035306930542, -0.3671214282512665, -0.11766023933887482, -0.03431146591901779, 0.11314679682254791, 0.18523576855659485, -0.26896604895591736, 0.2899588346481323, -0.15554647147655487, 0.05203228443861008, 0.07850486040115356, -0.29270070791244507, -0.22106751799583435, 0.16356520354747772, 0.12039448320865631, -0.45691025257110596, 0.03789469227194786, 0.09306187927722931, -0.6060150861740112, -0.06466461718082428, 0.012727409601211548, -0.11572949588298798, 0.09138782322406769, -0.3326219916343689, 0.026576481759548187, -0.39136916399002075, -0.2052655667066574, -0.06727036088705063, -0.09972645342350006, 0.23910503089427948, -0.2667433023452759, -0.3372322916984558, -0.44814321398735046, -0.32592296600341797, 0.12920217216014862, -0.22480516135692596, -0.0771239623427391, 0.21498095989227295, -0.37946203351020813, -0.008515715599060059, 0.5497831106185913, -0.5216639637947083, -0.3586079776287079, 0.445496141910553, -0.4292178153991699, -0.24673029780387878, 0.23419705033302307, -0.04898224025964737, -0.002735770307481289, -0.3621470630168915, -0.08949580788612366, 0.08227406442165375, 0.04962071403861046, -0.17818865180015564, -0.18848367035388947, -0.34391695261001587, 0.11361005902290344, 0.22009798884391785, -0.03988147899508476, 0.08876360207796097, 0.09676439315080643, 0.05409713834524155, 0.3513941168785095, 0.11439795792102814, 0.155044823884964, -0.1440192312002182, 0.17716708779335022, -0.237876757979393, -0.17119498550891876, -0.051772065460681915, -0.5992659330368042, 0.2523059546947479, -0.11843057721853256, 0.21302387118339539, -0.0464530885219574, -0.011181896552443504, -0.507143497467041, 0.0033058077096939087, 0.01984059065580368, -0.27210429310798645, 0.002070274204015732, 0.20442217588424683, 0.1296176016330719, -0.04795839637517929, -0.010606039315462112, 0.03222363442182541, -0.21072962880134583, 0.19253355264663696, -0.009808778762817383, -0.020286034792661667, -0.04618912190198898, 0.06240811198949814, 0.24959447979927063, 0.25558826327323914, 0.05471828579902649, -0.34098201990127563, 0.007953048683702946, 0.2820030152797699, 0.20832400023937225, 0.18946468830108643, 0.1891920268535614, -0.07011093199253082, 0.17034867405891418, 0.2639249265193939, 0.16458049416542053, 0.262954980134964, -0.015181690454483032, -0.21230480074882507, -0.08616409450769424, 0.24468573927879333, 0.16804134845733643, 0.0441926084458828, -0.1283622682094574, 0.06571391224861145, 0.323811411857605, 0.1138123869895935, -0.1348550021648407, -0.22805842757225037, 0.19604440033435822, 0.28523722290992737, 0.6019875407218933, -0.05045609921216965, 0.32594048976898193, -0.047921277582645416, -0.278118371963501, -0.3706560730934143, 0.017936430871486664, 0.11389999836683273, -0.09621288627386093, -0.05627519637346268, 0.09414366632699966, 0.3609083592891693, 0.8490371108055115, -0.03925856947898865, 0.27091649174690247, 0.08667929470539093, -0.18442848324775696, -0.2316582053899765, 0.15094128251075745, 0.11443671584129333, -0.02646576426923275, 0.15561005473136902, 0.0009206864051520824, -0.4011898636817932, -0.08902256935834885, -0.00013143569231033325, 0.4331217110157013, 0.39993152022361755, -0.34717363119125366, -0.10980556905269623, -0.3021010458469391, -0.4445497393608093, -0.39858925342559814, -0.3630508780479431, -0.20808197557926178, -0.3813644051551819, -0.06145593523979187, 0.22124403715133667, -0.00008074194192886353, 0.23552818596363068, -0.19495026767253876, 0.2832931876182556, -0.3094020485877991, -0.3343959450721741, 0.11647391319274902, -0.20119453966617584, -0.4004576504230499, 0.03807680681347847, 0.28132152557373047, 0.07048714905977249, 0.44269290566444397, -0.10782081633806229, -0.29736119508743286, -0.2132590413093567, -0.31885018944740295, 0.1328555941581726, 0.06095763295888901, 0.5699254274368286, 0.4761798679828644, -0.014884956181049347, 0.4204103946685791, 0.07883021235466003, 0.04204397648572922, -0.23354840278625488, -0.43352970480918884, -0.2341790795326233, 0.09182955324649811, 0.09691447764635086, -0.13966447114944458, -0.3972924053668976, -0.52669358253479, -0.08559046685695648, 0.17034369707107544, 0.12703467905521393, 0.07320795208215714, 0.0939832404255867, -0.11142831295728683, 0.25118333101272583, 0.08683212846517563, -0.18744932115077972, -0.1168527901172638, 0.07108965516090393, -0.009084071964025497, -0.14291828870773315, -0.1871633231639862, 0.06667402386665344, -0.11608915030956268, 0.08681861311197281, -0.15720592439174652, -0.48865628242492676, -0.44232654571533203, 0.15424878895282745, 0.230994313955307, 0.3925917446613312, -0.20678316056728363, 0.281732976436615, 0.20180119574069977, 0.12314723432064056, -0.1095167025923729, -0.3401254415512085, 0.16022542119026184, 0.09377166628837585, 0.31101882457733154, 0.13703370094299316, 0.342370867729187, -0.11723028123378754, 0.7626638412475586, 0.11879134178161621, -0.09411485493183136, -0.03337527811527252, -0.1344079226255417, 0.015388775616884232, -0.017840594053268433, -0.040595389902591705, 0.33505958318710327, -0.20015361905097961, -0.31042683124542236, 0.20721721649169922, -0.11684403568506241, -0.03705434501171112, -0.13537552952766418, 0.2891804873943329, -0.017412958666682243, -0.06730562448501587, 0.00384688563644886, -0.21916744112968445, 0.008076213300228119, 0.09175141155719757, -0.028248164802789688, -0.1992083638906479, -0.15857335925102234, 0.031044259667396545, 0.3056081533432007, 0.009299062192440033, 0.17336373031139374, -0.25022318959236145, 0.0066725583747029305, -0.3804597854614258, 0.32095205783843994, 0.3083270490169525, 0.47911062836647034, 0.08994093537330627, 0.04050171375274658, 0.12817686796188354, 0.02376866154372692, 0.2255098819732666, 0.07952587306499481, 0.16413189470767975, 0.2530295252799988, -0.1310342252254486, -0.045193061232566833, -0.24799881875514984, -0.061088718473911285, 0.06379752606153488, 0.004300594329833984, 0.0955449640750885, -0.4097130000591278, -0.09873337298631668, 0.18825586140155792, 0.08911527693271637, -0.07824166119098663, -0.2351606786251068, -0.07499653100967407, -0.08631089329719543, -0.11131925135850906, -0.21148785948753357, -0.22183147072792053, 0.017017992213368416, -0.2150207757949829, 0.4063692092895508, -0.0038529783487319946, -0.08811725676059723, -0.060154348611831665, 0.096946120262146, 0.08987754583358765, -0.2820560932159424, 0.2924050986766815, 0.26512545347213745, 0.07484489679336548, 0.3037794232368469, 0.3153020143508911, -0.0908111184835434, -0.21888983249664307, 0.025368861854076385, 0.055203262716531754, 0.4211716949939728, 0.350650429725647, 0.10434010624885559, -0.050367362797260284, -0.2399422824382782, -0.20737259089946747, -0.23432543873786926, 0.19697557389736176, 0.2857734262943268, -0.030911576002836227, 0.07850916683673859, -0.3184976875782013, 0.7194923758506775, 0.22033090889453888, -0.250144898891449, 0.43135613203048706, -0.21806462109088898, -0.26280879974365234, -0.06578351557254791, 0.12758265435695648, 0.9033367037773132, 0.14794954657554626, 0.2377246469259262, 0.4199581742286682, -0.2691236138343811, 0.4643265902996063, 0.07282905280590057, 0.1551106572151184, -0.4947303235530853, -0.00016479752957820892, 0.019680464640259743, -0.18237493932247162, 0.2095196545124054, -0.09575727581977844, -0.22470058500766754, 0.37494608759880066, 0.14652320742607117, 0.281068354845047, 0.3701074719429016, 0.30879950523376465, -0.25177058577537537, -0.033660486340522766, -0.1858084797859192, 0.09027862548828125, -0.14980155229568481, 0.40192848443984985, -0.2816438674926758, -0.0003146054223179817, -0.14423768222332, -0.04424760863184929, -0.2529445290565491, -0.11223696172237396, -0.17343977093696594, 0.062142159789800644, 0.1558530032634735, -0.13206025958061218, -0.0661604255437851, 0.18333077430725098, 0.08269040286540985, -0.21432583034038544, -0.14978191256523132, 0.12544170022010803, -0.14331772923469543, 0.16847217082977295, 0.3818272054195404, 0.04532860964536667, 0.32668256759643555, -0.31696560978889465, -0.05816711485385895, 0.06710844486951828, -0.2803248465061188, -0.12472690641880035, -0.13294480741024017, -0.17246976494789124, 0.14165621995925903, -0.29994457960128784, -0.14256179332733154, -0.10251183807849884, -0.009897368028759956, -0.11590278148651123, 0.022395309060811996, 0.2810624837875366, -0.3552965819835663, -0.061011902987957, -0.11896109580993652, -0.22990913689136505, 0.009612906724214554, 0.4747706353664398, -0.06723815947771072, -0.13764432072639465, 0.6765251159667969, -0.21037666499614716, 0.06588207930326462, -0.12991786003112793, 0.06201248615980148, -0.10107296705245972, -0.1118432879447937, 0.07678359746932983, -0.1696750670671463, -0.3008672595024109, 0.043714769184589386, 0.5850263237953186, 0.4418941140174866, 0.01240614801645279, -0.07040775567293167, -0.4628922939300537, -0.4116659164428711, -0.0003568381071090698, -0.14149720966815948, 0.2069915533065796, -0.21216505765914917, 0.22073914110660553, 0.1632818877696991, 0.04603084176778793, -0.18724998831748962, -0.20170578360557556, 0.04946504533290863, 0.20594944059848785, -0.13847635686397552, 0.0434274896979332, -0.015561920590698719, 0.14493173360824585, -0.03392520174384117, 0.06349091231822968, -0.36153358221054077, -0.07694409787654877, -0.1011359840631485, 0.20542949438095093, 0.1118428036570549, -0.038949206471443176, 0.155603289604187, -0.11734603345394135, 0.039721935987472534, 0.21439750492572784, -0.06621634215116501, -0.04835929349064827, -0.0926889181137085, 0.11267173290252686, 0.3458280861377716, 0.09795006364583969, -0.006950870156288147, 0.30149099230766296, 0.10003827512264252, 0.17635244131088257, -0.11613313108682632, 0.26699620485305786, -0.2339325100183487, 0.08855508267879486, 0.20248925685882568, 0.1292089819908142, -0.019432567059993744, 0.26001307368278503, 0.13960117101669312, -0.11417272686958313, 0.08041930198669434, -0.1625291258096695, 0.358640193939209, 0.8415085077285767, -0.1782599836587906, -0.1310916543006897, 0.4703673720359802, 0.03272785618901253, -0.19339081645011902, 0.027116861194372177, 0.2276790589094162, 0.20254050195217133, 0.03965302184224129, 0.2661379873752594, 0.010690499097108841, -0.13747486472129822, 0.19611194729804993, 0.14074355363845825, 0.09474310278892517, -0.17869852483272552, -0.07266829907894135, 0.5383142232894897, -0.2553035318851471, 0.16207464039325714, 0.35026606917381287, 0.00047561898827552795, 0.2156863808631897, 0.08506044745445251, 0.025451019406318665, 0.5338097214698792, -0.012156818062067032, 0.058236028999090195, 0.11353052407503128, 0.019126031547784805, -0.044243160635232925, 0.25939255952835083, 0.0514436699450016, -0.011775821447372437, 0.3216550946235657, 0.6301923990249634, -0.43068039417266846, -0.17472808063030243, -0.277861088514328, -0.04940913990139961, 0.08228156715631485, -0.14998377859592438, -0.39644894003868103, 0.04359743744134903, -0.22131070494651794, -0.07336224615573883, -0.14795085787773132, -0.31852394342422485, 0.2299114167690277, 0.0032962262630462646, -0.3555912971496582, -0.34619325399398804, -0.39676323533058167, 0.14084658026695251, -0.035808466374874115, -0.27528703212738037, 0.25086480379104614, 0.029406726360321045, 0.01853174716234207, 0.2829647958278656, 0.2839175760746002, 0.44415661692619324, 0.0862850770354271, -0.43873584270477295, -0.25408509373664856, -0.19133064150810242, 0.13583257794380188, -0.07762180268764496, 0.3995725214481354, -0.059816643595695496, -0.16802173852920532, 0.4992048442363739, 0.05886783450841904, 0.04353225231170654, 0.2664315700531006, 0.3724866509437561, -0.5206153988838196, -0.16898147761821747, 0.8208149671554565, -0.06794879585504532, -0.16675150394439697, -0.027103938162326813, 0.17767930030822754, -0.23198571801185608, 0.08259496092796326, -0.03570433706045151, -0.04750055819749832, 0.1877601444721222, 0.1194053664803505, 0.04107673093676567, -0.1780635416507721, 0.39927205443382263, 0.33888110518455505, -0.07150033861398697, -0.34252822399139404, -0.2139325886964798, -0.8131752014160156, 0.08850492537021637, -0.10057675838470459, -0.3737146556377411, -0.06355053186416626, -0.23741275072097778, 0.253568559885025, 0.10478383302688599, -0.2574349641799927, 0.1771555095911026, -0.0015822825953364372, 0.12594367563724518, -0.2627960443496704, -0.3659876585006714, -0.2140851765871048, -0.02576451189815998, -0.029740406200289726, -0.4025477170944214, 0.07842431962490082, -0.3133713901042938, -0.09926485270261765, 0.22371788322925568, -0.039395734667778015, 0.4940951466560364, 0.07308247685432434, 0.2537783980369568, -0.012197518721222878, 0.686855673789978, 0.24270281195640564, -0.031303443014621735, -0.2473422884941101, 0.17876699566841125, -0.13330842554569244, 0.1253577172756195, -0.1070152074098587, 0.13508521020412445, -0.17025774717330933, 0.614317774772644, -0.414183646440506, 0.4506014287471771, 0.07495187222957611, 0.07818955928087234, -0.2869777977466583, 0.04797063022851944, -0.34138739109039307, 0.14387963712215424, 0.32806575298309326, 0.3049738109111786, -0.11956620216369629, 0.3443966805934906, -0.26570066809654236, -0.1519378423690796, 0.4117486774921417, -0.24894653260707855, -0.05838601663708687, 0.05723585560917854, 0.2190217673778534, 0.0009553432464599609, -0.15867111086845398, -0.44350042939186096, 0.12104377895593643, 0.2671408951282501, -0.13255056738853455, 0.08481627702713013, 0.14585526287555695, 0.2846495509147644, 0.02644176408648491, -0.035740990191698074, 0.9360091686248779, -0.07236624509096146, 0.15446941554546356, -0.018570268526673317, -0.24318119883537292 ]
https://github.com/huggingface/datasets/issues/161
Discussion on version identifier & MockDataLoaderManager for test data
I'm quite positive that you can just replace the `dl_manager.download()` statements here: https://github.com/EntilZha/nlp/blob/4d46443b65f1f756921db8275594e6af008a1de7/datasets/qanta/qanta.py#L194 with `dl_manager.download_and_extract()` even though you don't extract anything. I would prefer to avoid adding more functions to the MockDataLoadManager and keep it as simple as possible (It's already to complex now IMO). Could you check if you can replace the `download()` function?
Hi, I'm working on adding a dataset and ran into an error due to `download` not being defined on `MockDataLoaderManager`, but being defined in `nlp/utils/download_manager.py`. The readme step running this: `RUN_SLOW=1 pytest tests/test_dataset_common.py::DatasetTest::test_load_real_dataset_localmydatasetname` triggers the error. If I can get something to work, I can include it in my data PR once I'm done.
55
Discussion on version identifier & MockDataLoaderManager for test data Hi, I'm working on adding a dataset and ran into an error due to `download` not being defined on `MockDataLoaderManager`, but being defined in `nlp/utils/download_manager.py`. The readme step running this: `RUN_SLOW=1 pytest tests/test_dataset_common.py::DatasetTest::test_load_real_dataset_localmydatasetname` triggers the error. If I can get something to work, I can include it in my data PR once I'm done. I'm quite positive that you can just replace the `dl_manager.download()` statements here: https://github.com/EntilZha/nlp/blob/4d46443b65f1f756921db8275594e6af008a1de7/datasets/qanta/qanta.py#L194 with `dl_manager.download_and_extract()` even though you don't extract anything. I would prefer to avoid adding more functions to the MockDataLoadManager and keep it as simple as possible (It's already to complex now IMO). Could you check if you can replace the `download()` function?
[ -0.10087016224861145, 0.5024328231811523, -0.03979732096195221, -0.08978448808193207, 0.096803680062294, -0.12240760028362274, 0.2872873842716217, 0.3135530352592468, -0.05438516288995743, 0.11574148386716843, 0.04618211090564728, 0.1649336814880371, -0.27445533871650696, -0.005963735282421112, 0.16595663130283356, -0.0370166152715683, -0.07802186161279678, 0.25511324405670166, -0.09114523231983185, 0.21499772369861603, -0.2306918203830719, 0.12446105480194092, -0.07093729078769684, 0.07457924634218216, 0.1365308314561844, 0.19969812035560608, -0.16580593585968018, 0.0543191134929657, -0.3160356879234314, -0.8764674663543701, 0.3479214310646057, 0.1809954047203064, 0.24238178133964539, 0.2387883961200714, -0.0001248056214535609, -0.1538032442331314, 0.5954882502555847, -0.1265064775943756, -0.6724080443382263, -0.1728314906358719, 0.24162253737449646, -0.44368836283683777, 0.2643420398235321, -0.07161934673786163, 0.2790192663669586, -0.16837508976459503, 0.18214769661426544, 0.11028395593166351, 0.0740533247590065, 0.38633590936660767, 0.1194620430469513, 0.2407580316066742, 0.08585692942142487, -0.1201939508318901, -0.05844942480325699, 0.02408430725336075, -0.0008230619132518768, 0.6254268884658813, 0.4066483974456787, 0.021435214206576347, 0.02108197659254074, -0.01008392684161663, -0.061721622943878174, 0.45013123750686646, 0.24951264262199402, -0.04782029241323471, 0.4997141361236572, -0.0700685977935791, -0.16319698095321655, -0.013614661991596222, 0.6971591711044312, -0.5866329669952393, -0.3620380759239197, -0.054751500487327576, 0.15433408319950104, -0.2042599469423294, 0.1349426656961441, -0.28096386790275574, -0.43949785828590393, 0.058052413165569305, -0.10193029046058655, -0.5488113760948181, 0.017848514020442963, 0.25423747301101685, -0.30119824409484863, 0.28679028153419495, 0.11398282647132874, 0.1454482525587082, 0.24242788553237915, -0.052787430584430695, 0.2136760950088501, -0.022138629108667374, -0.08245517313480377, 0.16982334852218628, 0.0019519664347171783, -0.30449849367141724, -0.3149796724319458, -0.21552816033363342, 0.09691565483808517, 0.13492272794246674, -0.3737139105796814, -0.14380455017089844, -0.056340187788009644, 0.13417315483093262, 0.09189265966415405, 0.4165341854095459, 0.338182657957077, 0.22063621878623962, 0.10820438712835312, 0.22823075950145721, 0.2354675829410553, 0.12068751454353333, 0.03867393732070923, -0.3611083924770355, 0.019834138453006744, 0.19144994020462036, 0.1347883939743042, -0.19446906447410583, -0.08906866610050201, -0.24023926258087158, -0.4562421143054962, -0.05777726322412491, -0.17793431878089905, 0.20956352353096008, -0.08753678947687149, -0.08982665836811066, 0.10732905566692352, 0.40889471769332886, -0.12385650724172592, -0.2714742124080658, 0.0032230843789875507, 0.1967523992061615, -0.0980256050825119, 0.11117014288902283, 0.21871085464954376, 0.0249421838670969, 0.33839526772499084, -0.3740004599094391, -0.03439658135175705, -0.03799290210008621, 0.10087782144546509, -0.013926326297223568, -0.17526379227638245, 0.29795607924461365, -0.1332937628030777, 0.035454489290714264, 0.020310308784246445, -0.3518683910369873, -0.20858575403690338, 0.2470930814743042, 0.22873258590698242, -0.45718735456466675, -0.09473849833011627, 0.05991031974554062, -0.5005059242248535, -0.022391341626644135, -0.05309966951608658, -0.07679545879364014, -0.07516718655824661, -0.5091553330421448, 0.15669967234134674, -0.36302244663238525, -0.2893628478050232, -0.0502467043697834, -0.059420228004455566, 0.3765130639076233, -0.2985684871673584, -0.299812376499176, -0.5405738353729248, -0.30797621607780457, 0.14972028136253357, -0.24499930441379547, -0.16400146484375, 0.26623696088790894, -0.34657225012779236, 0.04316479712724686, 0.6672198176383972, -0.6826149225234985, -0.38173308968544006, 0.3879489600658417, -0.2968752384185791, -0.2016320377588272, 0.1372309923171997, -0.08174291998147964, 0.07141786813735962, -0.31405946612358093, -0.20285385847091675, -0.005926953628659248, 0.09159760922193527, -0.21299777925014496, -0.138092502951622, -0.4739527404308319, 0.13925620913505554, 0.22118902206420898, 0.0007849633693695068, 0.24563658237457275, 0.03359007462859154, 0.1470758318901062, 0.363404244184494, 0.10033770650625229, 0.1316768229007721, -0.1588161736726761, 0.2499467432498932, -0.18818022310733795, -0.18373267352581024, -0.08811549097299576, -0.5891328454017639, 0.21657967567443848, -0.1606358140707016, 0.22971317172050476, -0.07063791155815125, -0.0018129348754882812, -0.41606470942497253, -0.03989426791667938, 0.09383806586265564, -0.23530909419059753, -0.025887249037623405, 0.19697001576423645, 0.19552282989025116, 0.00446600466966629, -0.015730708837509155, 0.06437603384256363, -0.16206373274326324, 0.23343311250209808, 0.07400832325220108, -0.05165041610598564, -0.022028515115380287, 0.1428958922624588, 0.204029843211174, 0.24361902475357056, 0.030901795253157616, -0.25026261806488037, -0.036677006632089615, 0.3134895861148834, 0.14573028683662415, 0.2744225859642029, 0.10608720779418945, -0.04028935730457306, 0.1848420649766922, 0.2803114056587219, 0.16047844290733337, 0.25890907645225525, 0.11254440993070602, -0.12400821596384048, 0.081505686044693, 0.11401191353797913, 0.3063770532608032, 0.03690614178776741, -0.10141023993492126, 0.04883847385644913, 0.25260046124458313, 0.0661955326795578, -0.12181837111711502, -0.3277983069419861, -0.02462972328066826, 0.26366281509399414, 0.625819742679596, -0.09830495715141296, 0.3067034184932709, -0.10810229927301407, -0.2765684425830841, -0.3729354739189148, 0.027126409113407135, 0.1354561746120453, -0.24313852190971375, -0.059348009526729584, 0.005909662693738937, 0.412813663482666, 0.889143705368042, -0.0876501128077507, 0.2127114087343216, 0.25769340991973877, 0.09946443885564804, -0.14763543009757996, 0.3102174997329712, 0.27317485213279724, 0.03670446574687958, 0.15607157349586487, 0.017295796424150467, -0.24424786865711212, -0.03242724388837814, -0.09209573268890381, 0.33091554045677185, 0.3591976761817932, -0.30033478140830994, -0.10634100437164307, -0.3063659071922302, -0.524448037147522, -0.3691818416118622, -0.343898743391037, -0.2026224285364151, -0.3367350697517395, -0.16702470183372498, 0.2561098635196686, -0.016801225021481514, 0.25107842683792114, -0.17695939540863037, 0.2343759685754776, -0.35818102955818176, -0.26189208030700684, 0.014088384807109833, -0.06981261074542999, -0.28657805919647217, 0.005503211170434952, 0.2328587770462036, 0.1618765890598297, 0.2496272474527359, -0.25456273555755615, -0.21234272420406342, -0.3464900553226471, -0.1836167275905609, 0.19877423346042633, 0.2477274388074875, 0.41378799080848694, 0.5279141068458557, -0.07021476328372955, 0.35673344135284424, 0.05944995582103729, -0.06608305871486664, -0.19203150272369385, -0.3716993033885956, -0.30342307686805725, -0.0005265413783490658, 0.27848026156425476, -0.083625428378582, -0.31373101472854614, -0.6029024124145508, -0.14122147858142853, 0.034232139587402344, 0.07534818351268768, 0.1252208650112152, 0.030590970069169998, -0.24102652072906494, 0.2264881730079651, -0.06759844720363617, -0.23341938853263855, -0.20004741847515106, 0.15993118286132812, -0.009145107120275497, -0.16310171782970428, -0.04546191170811653, 0.0740073174238205, -0.10867749899625778, 0.0565040186047554, -0.23117730021476746, -0.43902653455734253, -0.49937358498573303, 0.20321036875247955, -0.011473175138235092, 0.14936894178390503, -0.1808471977710724, 0.22669453918933868, 0.24462677538394928, 0.14415547251701355, 0.0077744536101818085, -0.40508121252059937, 0.12961602210998535, 0.17334207892417908, 0.2596016228199005, 0.20252078771591187, 0.4707221984863281, -0.18957775831222534, 0.6809964776039124, 0.0801895409822464, -0.06540696322917938, -0.0069152116775512695, -0.19380629062652588, 0.12983405590057373, 0.09109842777252197, -0.0736016109585762, 0.21883292496204376, -0.19008886814117432, -0.2723957300186157, 0.26072967052459717, -0.3641330599784851, -0.09073976427316666, -0.1529105007648468, 0.21481002867221832, -0.18263757228851318, -0.16377513110637665, 0.0778382197022438, -0.20450958609580994, 0.002085641026496887, 0.14842182397842407, 0.00008348003029823303, -0.2190660536289215, -0.058467790484428406, 0.1079578697681427, 0.29226383566856384, 0.09092100709676743, 0.11736807972192764, -0.28290173411369324, -0.0073549808003008366, -0.4521172046661377, 0.357547402381897, 0.34727564454078674, 0.4865107834339142, 0.21581412851810455, 0.039203889667987823, 0.008247114717960358, 0.04077349975705147, 0.21377967298030853, -0.029947837814688683, 0.01300564780831337, 0.2556816637516022, -0.13648909330368042, 0.06147667020559311, -0.22550548613071442, -0.09265483915805817, 0.07190122455358505, 0.0817238837480545, -0.07073083519935608, -0.31187519431114197, -0.1512361764907837, 0.33285272121429443, 0.15579332411289215, -0.11175492405891418, -0.24236679077148438, 0.008510809391736984, -0.1531418412923813, -0.19700230658054352, -0.19007018208503723, -0.24555885791778564, 0.13815681636333466, -0.12386181950569153, 0.4470296800136566, 0.01352745108306408, -0.09884077310562134, 0.08706236630678177, 0.024768631905317307, 0.18710458278656006, -0.15448327362537384, 0.1312621831893921, 0.17856864631175995, 0.0028187818825244904, 0.30415186285972595, 0.28680598735809326, -0.0249454528093338, -0.26218146085739136, 0.024909552186727524, 0.11324094235897064, 0.3784664273262024, 0.342251181602478, 0.19741104543209076, 0.06382688879966736, -0.28435489535331726, -0.18205125629901886, -0.1446658968925476, 0.16747479140758514, 0.3507557511329651, -0.10339286178350449, 0.05127159133553505, -0.23811347782611847, 0.6501331925392151, 0.1520870178937912, -0.21758556365966797, 0.29246753454208374, -0.19579987227916718, -0.2512965500354767, -0.12040622532367706, 0.14373840391635895, 0.9772180318832397, 0.17870478332042694, 0.19215774536132812, 0.3799656629562378, -0.27018025517463684, 0.5282031297683716, 0.12167246639728546, 0.1143152192234993, -0.49746790528297424, -0.0368095338344574, 0.01277151145040989, -0.21958354115486145, 0.22603878378868103, -0.15513747930526733, -0.23718245327472687, 0.35429808497428894, -0.010540999472141266, 0.28239935636520386, 0.33658841252326965, 0.32032960653305054, -0.2227638214826584, -0.0262485072016716, -0.16136014461517334, 0.04255715012550354, -0.04971779137849808, 0.4177897274494171, -0.29927921295166016, 0.009875688701868057, -0.08630776405334473, -0.045526545494794846, -0.3256152868270874, -0.20060017704963684, -0.29272374510765076, 0.017192035913467407, 0.08279848098754883, -0.13996854424476624, -0.010616258718073368, 0.17796418070793152, 0.08981490880250931, -0.21600739657878876, -0.09981612861156464, 0.09243534505367279, -0.14039373397827148, 0.2634119689464569, 0.38699373602867126, 0.09648308157920837, 0.2686983644962311, -0.346107542514801, -0.09964386373758316, 0.3046475946903229, -0.23491989076137543, -0.24699509143829346, -0.041801050305366516, -0.20667646825313568, 0.13844788074493408, -0.19164161384105682, -0.3267766535282135, -0.02565263956785202, 0.00028706714510917664, -0.13440828025341034, -0.003131657838821411, 0.1647350788116455, -0.3638894557952881, -0.008035562932491302, -0.20352236926555634, -0.2534615993499756, 0.04944070428609848, 0.4804392457008362, -0.02904684841632843, -0.2206924706697464, 0.6655125617980957, -0.2630746066570282, 0.11766950786113739, -0.12205169349908829, -0.007447429001331329, -0.09300612658262253, -0.10929867625236511, 0.07604268938302994, -0.17612051963806152, -0.17633572220802307, -0.01068293396383524, 0.5820409655570984, 0.34847044944763184, 0.08524633944034576, -0.15745827555656433, -0.4427753686904907, -0.4029703736305237, 0.017590954899787903, -0.06714585423469543, 0.1379365622997284, -0.1804797351360321, 0.18105696141719818, 0.12914861738681793, 0.08300747722387314, -0.176180899143219, -0.10881184041500092, 0.027717826887965202, 0.10157692432403564, -0.1334144026041031, 0.17750388383865356, 0.0053311120718717575, 0.14194653928279877, -0.06230173259973526, 0.1782146692276001, -0.2920299470424652, -0.05299252271652222, -0.11403043568134308, 0.22683250904083252, 0.023889023810625076, 0.06089301407337189, 0.1892106682062149, -0.04796624556183815, 0.015474886633455753, 0.24556471407413483, -0.10414721071720123, -0.033554982393980026, -0.05473887175321579, 0.2197331339120865, 0.34192508459091187, 0.04210361838340759, -0.13635189831256866, 0.23928898572921753, 0.24697791039943695, 0.21957498788833618, -0.13978230953216553, 0.37925630807876587, -0.1171858161687851, 0.06506109237670898, 0.2873706519603729, 0.045283034443855286, -0.07998493313789368, 0.26757457852363586, 0.09384778141975403, 0.030712464824318886, 0.1152932345867157, -0.0701819434762001, 0.2299201935529709, 0.842309296131134, -0.24265381693840027, -0.11675233393907547, 0.4015055000782013, 0.00978165864944458, -0.2332359254360199, -0.08031456172466278, 0.2138211876153946, 0.06446360051631927, 0.009682267904281616, 0.29438090324401855, 0.049018021672964096, -0.017301790416240692, 0.3186417818069458, 0.0939386636018753, 0.08764520287513733, -0.14573317766189575, -0.07335056364536285, 0.5390340685844421, -0.2602722942829132, 0.21228481829166412, 0.3923047184944153, 0.1399431675672531, 0.3845631182193756, 0.15995648503303528, -0.0668778046965599, 0.5641661286354065, -0.06525733321905136, 0.007685616612434387, 0.20442339777946472, -0.08264809846878052, -0.08976027369499207, 0.39195263385772705, 0.02877567708492279, 0.02241719514131546, 0.30100834369659424, 0.3995400071144104, -0.34889495372772217, -0.1671566665172577, -0.20334140956401825, 0.030660659074783325, 0.12445767968893051, -0.11075592041015625, -0.2374507039785385, 0.00582682341337204, -0.26031720638275146, -0.058110613375902176, -0.18110893666744232, -0.36725693941116333, 0.2537270784378052, -0.051366038620471954, -0.39613717794418335, -0.17723968625068665, -0.5898517370223999, 0.029731586575508118, -0.10691586881875992, -0.26929736137390137, 0.05167675018310547, 0.03170152008533478, 0.07564859092235565, 0.22591058909893036, 0.4408133029937744, 0.3618391752243042, 0.1011863499879837, -0.32470789551734924, -0.31040751934051514, -0.20571956038475037, 0.16892823576927185, -0.0008592493832111359, 0.2647933065891266, 0.06462667882442474, -0.183353990316391, 0.40197792649269104, 0.034111760556697845, 0.05196724832057953, 0.18164239823818207, 0.4109756350517273, -0.47856736183166504, -0.27135103940963745, 0.9588344097137451, 0.018588442355394363, -0.07537418603897095, -0.10514369606971741, 0.20924392342567444, -0.24594125151634216, 0.15358866751194, -0.05406978353857994, -0.02507917396724224, 0.16526895761489868, 0.2022848129272461, 0.011583641171455383, -0.048438262194395065, 0.2834646999835968, 0.2929689586162567, -0.06524418294429779, -0.29984328150749207, -0.32373613119125366, -0.8680155873298645, 0.16102394461631775, 0.09295075386762619, -0.2784693241119385, -0.01942160166800022, -0.2899569869041443, 0.1758713275194168, 0.18767650425434113, -0.24990318715572357, 0.2563644349575043, -0.007289385423064232, -0.03545413166284561, -0.28572186827659607, -0.28918275237083435, -0.24124296009540558, -0.02386508323252201, -0.02298649773001671, -0.39518022537231445, 0.19543088972568512, -0.43772926926612854, -0.13601011037826538, 0.16049319505691528, -0.051106877624988556, 0.41870108246803284, 0.07762845605611801, 0.4448588490486145, -0.03417668491601944, 0.5052464008331299, 0.15348997712135315, -0.05015391483902931, -0.047820840030908585, 0.250870943069458, -0.14112089574337006, 0.1136065423488617, -0.07329323887825012, 0.09428630769252777, -0.1753886640071869, 0.6784107089042664, -0.4178823232650757, 0.4013879895210266, 0.011651333421468735, 0.12361092120409012, -0.49177566170692444, -0.0024985969066619873, -0.17377379536628723, 0.14623796939849854, 0.37973999977111816, 0.2535794675350189, -0.17763781547546387, 0.36762988567352295, -0.4226214289665222, 0.026184523478150368, 0.5046981573104858, -0.1647150218486786, -0.07719233632087708, -0.042256299406290054, 0.31683674454689026, -0.04624137282371521, -0.20655205845832825, -0.5365790128707886, 0.0652565285563469, 0.2432873398065567, -0.06352671980857849, 0.14099538326263428, 0.20620732009410858, 0.17869718372821808, 0.07907147705554962, -0.03818398714065552, 0.8223003149032593, -0.0023481175303459167, 0.1193784773349762, -0.19420155882835388, -0.2611888647079468 ]
https://github.com/huggingface/datasets/issues/161
Discussion on version identifier & MockDataLoaderManager for test data
I might be doing something wrong, but swapping those two gives this error: ``` > with open(path) as f: E IsADirectoryError: [Errno 21] Is a directory: 'datasets/qanta/dummy/mode=first,char_skip=25/2018.4.18/dummy_data-zip-extracted/dummy_data' src/nlp/datasets/qanta/3d965403133687b819905ead4b69af7bcee365865279b2f797c79f809b4490c3/qanta.py:280: IsADirectoryError During handling of the above exception, another exception occurred: ``` So it seems like the directory name is getting passed. Is this not functioning as expected, or is there some caching happening maybe? I deleted the dummy files and re-ran the import script with no changes. I'm digging a bit in with a debugger, but no clear reason yet
Hi, I'm working on adding a dataset and ran into an error due to `download` not being defined on `MockDataLoaderManager`, but being defined in `nlp/utils/download_manager.py`. The readme step running this: `RUN_SLOW=1 pytest tests/test_dataset_common.py::DatasetTest::test_load_real_dataset_localmydatasetname` triggers the error. If I can get something to work, I can include it in my data PR once I'm done.
88
Discussion on version identifier & MockDataLoaderManager for test data Hi, I'm working on adding a dataset and ran into an error due to `download` not being defined on `MockDataLoaderManager`, but being defined in `nlp/utils/download_manager.py`. The readme step running this: `RUN_SLOW=1 pytest tests/test_dataset_common.py::DatasetTest::test_load_real_dataset_localmydatasetname` triggers the error. If I can get something to work, I can include it in my data PR once I'm done. I might be doing something wrong, but swapping those two gives this error: ``` > with open(path) as f: E IsADirectoryError: [Errno 21] Is a directory: 'datasets/qanta/dummy/mode=first,char_skip=25/2018.4.18/dummy_data-zip-extracted/dummy_data' src/nlp/datasets/qanta/3d965403133687b819905ead4b69af7bcee365865279b2f797c79f809b4490c3/qanta.py:280: IsADirectoryError During handling of the above exception, another exception occurred: ``` So it seems like the directory name is getting passed. Is this not functioning as expected, or is there some caching happening maybe? I deleted the dummy files and re-ran the import script with no changes. I'm digging a bit in with a debugger, but no clear reason yet
[ 0.054046522825956345, 0.0742238312959671, 0.009659986943006516, 0.1716466248035431, 0.018457897007465363, -0.18276746571063995, 0.4075569808483124, 0.18073628842830658, 0.031773436814546585, 0.24988509714603424, 0.03806110471487045, 0.06830492615699768, -0.06527354568243027, -0.2527974843978882, 0.016633734107017517, 0.15957830846309662, 0.13479118049144745, 0.0446648932993412, -0.2199353277683258, -0.005511295050382614, -0.3515840172767639, 0.2071034014225006, -0.1873507797718048, 0.14597322046756744, -0.0956168919801712, 0.2706398069858551, -0.2202363908290863, 0.25360992550849915, -0.19941860437393188, -0.567550778388977, 0.14673101902008057, 0.029544126242399216, 0.16571538150310516, 0.5746880173683167, -0.00013265383313409984, -0.07714260369539261, 0.5401040315628052, -0.12277920544147491, -0.6687543988227844, -0.23048804700374603, 0.2879285216331482, -0.15296044945716858, 0.2021133452653885, -0.0812508687376976, 0.2706165611743927, -0.17419017851352692, 0.20436649024486542, -0.06535515934228897, 0.12489929795265198, 0.3529887795448303, 0.019501637667417526, 0.11269602179527283, -0.010982226580381393, 0.07280772924423218, 0.09343868494033813, 0.251690149307251, -0.09757227450609207, 0.46646958589553833, 0.21144603192806244, 0.0007738731801509857, -0.045916445553302765, -0.015807021409273148, 0.019108666107058525, 0.4609089195728302, 0.3064599335193634, 0.18696445226669312, 0.4650609493255615, 0.10373512655496597, -0.012513656169176102, -0.037865251302719116, 0.6569070219993591, -0.4838959276676178, -0.43441030383110046, -0.08118297904729843, -0.12728457152843475, -0.20948433876037598, 0.38311219215393066, -0.10318674892187119, -0.32002925872802734, 0.09504427760839462, 0.014491421170532703, -0.26167479157447815, -0.035386569797992706, 0.21442461013793945, -0.3736024796962738, 0.3995921313762665, 0.03470965102314949, 0.19331228733062744, 0.07282888889312744, -0.049595169723033905, 0.3031977713108063, -0.34249183535575867, 0.04692453891038895, 0.16503329575061798, 0.09963346272706985, -0.004732184112071991, -0.1664237082004547, -0.06243535131216049, -0.14533281326293945, 0.03446293622255325, -0.4331527054309845, -0.13929232954978943, -0.1853589117527008, 0.21319711208343506, 0.18501026928424835, 0.4487714469432831, 0.2529619038105011, 0.49305304884910583, 0.178958922624588, 0.13217872381210327, 0.1347619593143463, 0.18852713704109192, -0.007199926767498255, -0.4462207555770874, -0.0033652670681476593, 0.10703600198030472, 0.21821089088916779, -0.2599998116493225, -0.26317453384399414, -0.28601744771003723, -0.4661552906036377, -0.03614894673228264, -0.057705629616975784, 0.28543350100517273, -0.21941149234771729, -0.1112208291888237, 0.06850790977478027, 0.3858867883682251, -0.19950054585933685, 0.058217551559209824, 0.0005530249327421188, 0.03904814273118973, -0.2579016089439392, 0.03631335124373436, 0.09758523106575012, 0.11273688077926636, 0.2136281281709671, -0.3273884952068329, 0.13679790496826172, -0.14557036757469177, 0.07291983813047409, -0.000447666272521019, 0.11817619204521179, 0.3578857481479645, -0.14977294206619263, 0.19033083319664001, 0.10121114552021027, -0.45273303985595703, -0.256217896938324, 0.299379825592041, -0.10430759936571121, -0.4040018320083618, 0.09910111129283905, -0.0051063913851976395, -0.42619264125823975, 0.060875002294778824, 0.07883044332265854, -0.3964562714099884, 0.19351840019226074, -0.5260313153266907, 0.06719574332237244, -0.27525508403778076, -0.2804776132106781, -0.12022776901721954, -0.09893989562988281, 0.4806634783744812, -0.34747275710105896, -0.28770044445991516, -0.3806169629096985, -0.04328203573822975, 0.12351749837398529, -0.07172444462776184, -0.12091968208551407, 0.04395785182714462, -0.5625424981117249, 0.018757276237010956, 0.4358152449131012, -0.5859123468399048, -0.3239843547344208, 0.36237314343452454, -0.5026488900184631, -0.19662724435329437, 0.49761998653411865, -0.11810971051454544, -0.01931113377213478, -0.43628913164138794, 0.000292457640171051, 0.04905884340405464, 0.0698966458439827, -0.04112636297941208, -0.17711326479911804, -0.20519676804542542, -0.025002658367156982, 0.08768343925476074, -0.17620734870433807, 0.10934796929359436, 0.04550153389573097, -0.10576491057872772, 0.4786711037158966, 0.07372567057609558, 0.09647476673126221, -0.044586606323719025, 0.2020450234413147, 0.05049148201942444, -0.041183050721883774, 0.25568637251853943, -0.5695765018463135, 0.14952540397644043, -0.15538983047008514, 0.126212477684021, -0.24375765025615692, -0.08564572036266327, -0.3687700927257538, 0.06484168767929077, -0.145871102809906, -0.1563982516527176, -0.10608313232660294, 0.526837944984436, -0.016502194106578827, -0.06277511268854141, 0.04309270158410072, 0.08777213841676712, -0.14425572752952576, 0.24223870038986206, -0.11042879521846771, 0.005360729992389679, -0.05163969844579697, 0.08585423231124878, -0.0734894722700119, 0.03089803457260132, 0.22429099678993225, -0.40818119049072266, 0.033209092915058136, 0.34989938139915466, 0.2747834622859955, 0.46276527643203735, -0.02255493402481079, -0.13486911356449127, 0.1559963822364807, 0.24798309803009033, 0.3091241419315338, 0.34455063939094543, 0.08198807388544083, -0.2899187505245209, -0.01919408142566681, 0.27006644010543823, 0.16893059015274048, 0.31897246837615967, -0.03178761899471283, -0.0494060292840004, 0.04129371792078018, 0.133926659822464, -0.06262356787919998, -0.29846033453941345, 0.18931882083415985, 0.16936029493808746, 0.5996592044830322, 0.0712876170873642, 0.32798272371292114, 0.02567502111196518, -0.17272062599658966, -0.2790481448173523, -0.08578584343194962, -0.00003784894943237305, -0.18876507878303528, -0.08370160311460495, 0.09133255481719971, 0.405679315328598, 0.9681355357170105, -0.09375599026679993, 0.33288511633872986, 0.03304979205131531, -0.10807783156633377, -0.2747821509838104, 0.2888106107711792, 0.22763444483280182, -0.07494258880615234, 0.1733701229095459, -0.03139857202768326, -0.31840261816978455, -0.04010515287518501, -0.05030566453933716, 0.5000054240226746, 0.14260025322437286, -0.510777473449707, 0.22430585324764252, -0.25457629561424255, -0.30979448556900024, -0.6035174131393433, -0.31199413537979126, -0.06053900346159935, -0.5021191835403442, -0.09551550447940826, 0.3961225152015686, -0.03048316203057766, 0.20940642058849335, -0.07476504147052765, 0.08459228277206421, -0.443292498588562, -0.4474221169948578, -0.01409381628036499, 0.008263768628239632, -0.4845774173736572, -0.1461125761270523, 0.33262214064598083, -0.08755609393119812, 0.22779224812984467, -0.23387600481510162, -0.2016191929578781, -0.2357240617275238, -0.2972358465194702, 0.1263272762298584, 0.15794745087623596, 0.44731712341308594, 0.2323799729347229, 0.00020679831504821777, 0.4607330560684204, 0.0031133806332945824, 0.127382293343544, -0.20606090128421783, -0.38917455077171326, -0.15753833949565887, 0.12728160619735718, 0.13422873616218567, -0.15934139490127563, -0.3914770483970642, -0.4792369604110718, -0.0361468531191349, -0.09528964757919312, 0.0591818131506443, 0.12565289437770844, 0.24842272698879242, -0.1625203639268875, 0.14527669548988342, 0.06382403522729874, -0.09572573751211166, -0.03304051607847214, 0.08952116966247559, 0.03843197971582413, -0.23889943957328796, -0.0015529543161392212, 0.044272828847169876, 0.007728543132543564, 0.0566343292593956, -0.09045283496379852, -0.4622610807418823, -0.47036129236221313, 0.19328847527503967, 0.05559973046183586, 0.18048205971717834, -0.10260483622550964, 0.45524051785469055, 0.29743897914886475, 0.13758721947669983, -0.09040090441703796, -0.34502092003822327, 0.024570010602474213, 0.0805182084441185, 0.3078871965408325, 0.1523379683494568, 0.3881363570690155, -0.19256636500358582, 0.8443020582199097, 0.12629841268062592, 0.0352681428194046, 0.08385501056909561, -0.1537720113992691, 0.18944422900676727, -0.08218606561422348, -0.03154880926012993, 0.15041416883468628, -0.08360850811004639, -0.5522128343582153, 0.3674581050872803, -0.05712159723043442, -0.23132149875164032, -0.06647656112909317, 0.2273547351360321, -0.14406540989875793, -0.15885138511657715, 0.07420118898153305, -0.19066937267780304, -0.012434281408786774, 0.16560153663158417, 0.002518206834793091, -0.2638316750526428, -0.215857595205307, 0.012425711378455162, 0.3022840619087219, 0.02733476459980011, 0.08392219990491867, -0.3305436670780182, -0.12841466069221497, -0.14755111932754517, 0.30843406915664673, 0.33007654547691345, 0.4101940989494324, -0.015942592173814774, -0.11342571675777435, 0.28132855892181396, 0.007648660335689783, 0.3506709933280945, 0.06734564155340195, 0.21243444085121155, 0.19533038139343262, -0.002400573343038559, -0.11793307960033417, -0.1861051470041275, -0.07736049592494965, 0.1471855640411377, 0.10939313471317291, 0.18207940459251404, -0.23847323656082153, -0.2643306851387024, 0.20997945964336395, 0.19632434844970703, -0.1552480310201645, -0.21320748329162598, -0.20942889153957367, -0.12904715538024902, -0.12419603765010834, -0.345580130815506, -0.1391737014055252, -0.06293458491563797, -0.09446222335100174, 0.38782772421836853, 0.01809597760438919, -0.18357980251312256, 0.055217843502759933, 0.00476318784058094, 0.30928993225097656, -0.1802646815776825, 0.15318913757801056, 0.3662014901638031, 0.10744766145944595, 0.40602579712867737, 0.38970842957496643, -0.18061509728431702, -0.12755802273750305, 0.02575588785111904, 0.09579338878393173, 0.39173424243927, 0.6246492862701416, 0.04617829993367195, -0.18961095809936523, -0.2906067669391632, -0.21935413777828217, -0.23982954025268555, 0.09601414948701859, 0.4089125692844391, 0.009106212295591831, 0.1007164940237999, -0.28545692563056946, 0.5554720163345337, 0.20811215043067932, -0.35643696784973145, 0.5225516557693481, -0.003554724156856537, -0.29185494780540466, 0.11549678444862366, -0.05118618160486221, 1.1163872480392456, 0.294234037399292, 0.423966646194458, 0.36086007952690125, -0.20886553823947906, 0.09465087950229645, 0.11679035425186157, 0.17522253096103668, -0.46067357063293457, -0.021532144397497177, -0.019033897668123245, -0.3330588936805725, 0.23627951741218567, -0.03546961396932602, -0.09988676011562347, 0.4064422845840454, -0.04007881507277489, 0.35672727227211, 0.19364966452121735, 0.1573718786239624, -0.29642030596733093, 0.028264900669455528, 0.026145003736019135, -0.04065537825226784, 0.20728284120559692, 0.458949476480484, -0.1629304587841034, 0.031779974699020386, -0.263296902179718, -0.0773329809308052, -0.030731014907360077, -0.07309706509113312, -0.13402159512043, 0.07461803406476974, 0.022244466468691826, -0.2519100308418274, -0.20520225167274475, 0.3793678283691406, 0.1928950846195221, -0.22925780713558197, 0.022600581869482994, 0.17318755388259888, -0.17188364267349243, 0.36548829078674316, 0.3521058261394501, -0.041342973709106445, 0.30463171005249023, -0.1348402202129364, -0.13243766129016876, 0.101606585085392, -0.283532977104187, -0.19923005998134613, -0.24217528104782104, -0.09257832169532776, 0.22591695189476013, -0.324632465839386, -0.14834386110305786, -0.14957791566848755, -0.08646167814731598, -0.10077942907810211, -0.05219190940260887, 0.14122450351715088, -0.2876555919647217, 0.010073021054267883, -0.26084980368614197, -0.42889687418937683, -0.0010189712047576904, 0.5187016725540161, -0.1206837072968483, -0.05585864186286926, 0.8927490711212158, -0.25539013743400574, 0.07004018872976303, 0.037835583090782166, 0.16071432828903198, -0.22212928533554077, -0.26517629623413086, 0.06714935600757599, -0.18132217228412628, -0.2439155876636505, 0.02168736793100834, 0.5689188241958618, 0.32607394456863403, 0.08179110288619995, -0.32208991050720215, -0.46930229663848877, -0.24841532111167908, 0.006861187517642975, -0.13581526279449463, 0.18076565861701965, -0.20048221945762634, 0.028380315750837326, 0.1821310818195343, -0.11743476986885071, -0.1076878160238266, -0.01998109370470047, 0.11945269256830215, 0.22964151203632355, -0.15153948962688446, 0.05161040648818016, 0.06271856278181076, 0.0399596206843853, -0.08371756970882416, 0.1038522869348526, -0.21908417344093323, 0.056734733283519745, -0.08646629750728607, 0.26456260681152344, 0.028700651600956917, 0.004550756886601448, 0.006184916011989117, -0.32587945461273193, 0.13018321990966797, 0.06811787188053131, -0.023158466443419456, 0.02889198064804077, -0.05095096677541733, 0.04266935959458351, 0.30082735419273376, 0.06145791709423065, 0.02940548211336136, 0.388526976108551, 0.05780893564224243, 0.25833001732826233, -0.18535034358501434, 0.21913105249404907, -0.23059524595737457, 0.020766310393810272, 0.04041516035795212, 0.10006555914878845, -0.01876455545425415, 0.20925182104110718, 0.13397333025932312, -0.18022216856479645, 0.11828520894050598, -0.1002391055226326, 0.3639490306377411, 0.9179776310920715, -0.14689365029335022, -0.23009712994098663, 0.412992388010025, -0.09078696370124817, -0.05701097100973129, -0.12697482109069824, 0.07886892557144165, 0.13585911691188812, -0.05844685062766075, 0.3512896001338959, -0.052807461470365524, -0.11743754148483276, 0.34743064641952515, 0.21134451031684875, 0.2010030746459961, -0.23741625249385834, -0.10164013504981995, 0.40461301803588867, -0.30559784173965454, 0.4028893709182739, 0.474887490272522, 0.06230887770652771, 0.20035035908222198, 0.3251497745513916, 0.08612241595983505, 0.5218541026115417, -0.14537417888641357, -0.028906840831041336, 0.12090887129306793, -0.1082880049943924, -0.029849227517843246, 0.25522205233573914, -0.005976058542728424, 0.04436176270246506, 0.3560173511505127, 0.5558947920799255, -0.4765016436576843, -0.10528784245252609, -0.2333439439535141, -0.13780534267425537, 0.016764134168624878, -0.29314160346984863, -0.21884998679161072, -0.035802870988845825, -0.1372569501399994, -0.03259747475385666, -0.19874650239944458, -0.19986842572689056, 0.28983014822006226, 0.05615822225809097, -0.2658579349517822, -0.22861957550048828, -0.3638242781162262, 0.019897522404789925, 0.03998131304979324, -0.34758320450782776, 0.25455793738365173, -0.00025441497564315796, 0.13587942719459534, 0.29756149649620056, 0.1314559131860733, 0.48757874965667725, 0.1934376060962677, -0.2696227431297302, -0.26171597838401794, -0.28797048330307007, -0.0018294844776391983, -0.07789883017539978, 0.35549360513687134, -0.029869236052036285, -0.09149390459060669, 0.35833150148391724, -0.015709610655903816, -0.005666816141456366, 0.22060050070285797, 0.40760791301727295, -0.27640828490257263, -0.1498061716556549, 0.8099432587623596, -0.24034655094146729, -0.21010589599609375, -0.07573094218969345, 0.03368810936808586, -0.4592147469520569, 0.12718045711517334, 0.011043854989111423, -0.14476610720157623, 0.1875211000442505, 0.11137877404689789, -0.039163850247859955, -0.09055350720882416, 0.34214943647384644, 0.40220576524734497, -0.1118357852101326, -0.3300437033176422, -0.19953012466430664, -0.8534025549888611, 0.2650271952152252, -0.05009080097079277, -0.143655925989151, -0.20968395471572876, -0.07952242344617844, 0.21403418481349945, -0.01710529252886772, -0.11020071804523468, 0.11080732941627502, 0.05849292129278183, 0.18325738608837128, -0.30739787220954895, -0.3775625228881836, -0.18099497258663177, 0.03965000808238983, -0.00847725197672844, -0.5915565490722656, 0.1994025856256485, -0.4175167381763458, -0.1523207128047943, 0.1619689017534256, -0.07171537727117538, 0.36899635195732117, 0.20901595056056976, 0.364519864320755, -0.10860468447208405, 0.6161584854125977, 0.17797696590423584, -0.14680586755275726, -0.2628198564052582, 0.05785912647843361, -0.09725793451070786, 0.018363267183303833, -0.08927492797374725, 0.1736888885498047, -0.32428979873657227, 0.41180917620658875, -0.37827613949775696, 0.22013379633426666, 0.08509646356105804, -0.003484925953671336, -0.22224654257297516, 0.18447363376617432, -0.3588903546333313, 0.17099444568157196, 0.3244398832321167, 0.32722920179367065, 0.04074645787477493, 0.32959187030792236, -0.30356183648109436, -0.24247685074806213, 0.6405372619628906, -0.09905634820461273, -0.1643477827310562, 0.1367870718240738, 0.29454541206359863, -0.011158682405948639, -0.27710652351379395, -0.5036945343017578, 0.17269200086593628, 0.24136336147785187, 0.06933794170618057, 0.024125996977090836, 0.05193368345499039, 0.25292131304740906, 0.01719193533062935, -0.06566271185874939, 0.9180792570114136, 0.031080106273293495, 0.07061314582824707, 0.09902891516685486, -0.20347829163074493 ]
https://github.com/huggingface/datasets/issues/161
Discussion on version identifier & MockDataLoaderManager for test data
From what I can tell here: https://github.com/huggingface/nlp/blob/master/tests/utils.py#L115 1. `data_url` is the correct http link 2. `path_to_dummy_data` is a directory, which is causing the issue That path comes from `download_dummy_data`, which I think assumes that the data comes from the zip file, but isn't aware of individual files. So it seems like it data manager needs to be aware if the url its getting is for a file or a zip/directory, and pass this information along. This might happen in `download_dummy_data`, but probably better to happen in `download_and_extract`? Maybe a simple check to see if `os.path.basename` returns the dummy data zip filename, if not then join paths with the basename of the url?
Hi, I'm working on adding a dataset and ran into an error due to `download` not being defined on `MockDataLoaderManager`, but being defined in `nlp/utils/download_manager.py`. The readme step running this: `RUN_SLOW=1 pytest tests/test_dataset_common.py::DatasetTest::test_load_real_dataset_localmydatasetname` triggers the error. If I can get something to work, I can include it in my data PR once I'm done.
112
Discussion on version identifier & MockDataLoaderManager for test data Hi, I'm working on adding a dataset and ran into an error due to `download` not being defined on `MockDataLoaderManager`, but being defined in `nlp/utils/download_manager.py`. The readme step running this: `RUN_SLOW=1 pytest tests/test_dataset_common.py::DatasetTest::test_load_real_dataset_localmydatasetname` triggers the error. If I can get something to work, I can include it in my data PR once I'm done. From what I can tell here: https://github.com/huggingface/nlp/blob/master/tests/utils.py#L115 1. `data_url` is the correct http link 2. `path_to_dummy_data` is a directory, which is causing the issue That path comes from `download_dummy_data`, which I think assumes that the data comes from the zip file, but isn't aware of individual files. So it seems like it data manager needs to be aware if the url its getting is for a file or a zip/directory, and pass this information along. This might happen in `download_dummy_data`, but probably better to happen in `download_and_extract`? Maybe a simple check to see if `os.path.basename` returns the dummy data zip filename, if not then join paths with the basename of the url?
[ -0.07890257239341736, 0.2855141758918762, 0.0002483762800693512, 0.052753787487745285, 0.05063484609127045, -0.26075446605682373, 0.21438221633434296, 0.2759753465652466, -0.05403376370668411, 0.08017338812351227, 0.20722846686840057, 0.22357316315174103, -0.22146837413311005, -0.03458157926797867, 0.12442873418331146, 0.05447671189904213, -0.10658449679613113, 0.08478698879480362, -0.22504198551177979, 0.15503373742103577, -0.2493225485086441, 0.17533192038536072, 0.003421798348426819, 0.16723021864891052, 0.015414265915751457, 0.14610613882541656, -0.22377093136310577, 0.20182138681411743, -0.419430673122406, -0.7930223941802979, 0.3121372163295746, 0.030213462188839912, 0.23527774214744568, 0.38400524854660034, -0.00012361556582618505, -0.09185247123241425, 0.5898000597953796, -0.15598903596401215, -0.7334064841270447, -0.4215239882469177, 0.24337294697761536, -0.5072745680809021, 0.27730095386505127, -0.15510258078575134, 0.18571361899375916, -0.06349368393421173, 0.29818060994148254, 0.20961031317710876, 0.1883736252784729, 0.40039658546447754, 0.07241330295801163, 0.30033063888549805, 0.05199834331870079, -0.11268064379692078, 0.00852089375257492, 0.17452767491340637, -0.05216161906719208, 0.5873820781707764, 0.20252326130867004, 0.07431590557098389, -0.15627095103263855, -0.07906921207904816, 0.10531961917877197, 0.5026990175247192, 0.15227776765823364, 0.06298068165779114, 0.3990126848220825, 0.04652900621294975, -0.2675876319408417, 0.08663032203912735, 0.6675564050674438, -0.5247459411621094, -0.3587067723274231, -0.07098472118377686, -0.07901238650083542, -0.05743086338043213, 0.3807904124259949, -0.14141933619976044, -0.4126591086387634, 0.09209883213043213, -0.10645034909248352, -0.17128950357437134, -0.03199467808008194, 0.39670491218566895, -0.298364520072937, 0.4051719903945923, -0.018465638160705566, 0.16227811574935913, 0.15625686943531036, 0.059117671102285385, 0.2566514015197754, -0.17506052553653717, 0.17345508933067322, 0.1806303709745407, 0.10605932772159576, -0.20942434668540955, -0.2895837426185608, -0.27422723174095154, 0.1452920138835907, 0.11145299673080444, -0.30826306343078613, -0.19240981340408325, -0.06261353939771652, 0.22528615593910217, 0.23071351647377014, 0.32411667704582214, 0.17963626980781555, 0.26923835277557373, 0.258932501077652, 0.3053901195526123, 0.27003735303878784, 0.16195210814476013, 0.007208457216620445, -0.33093133568763733, -0.12101928889751434, 0.15665918588638306, 0.2048185020685196, -0.2120758593082428, -0.19729752838611603, -0.24859657883644104, -0.4048669934272766, -0.12655918300151825, -0.06877513974905014, 0.3116098642349243, -0.19009645283222198, -0.10306025296449661, 0.09242908656597137, 0.38324832916259766, -0.12803858518600464, -0.0707096979022026, 0.02868535742163658, 0.043143853545188904, -0.24823282659053802, 0.028636682778596878, 0.29634881019592285, 0.22021310031414032, 0.485415518283844, -0.29047393798828125, -0.16111791133880615, -0.05845410376787186, 0.12964674830436707, 0.04346100240945816, -0.047212593257427216, 0.2191484421491623, -0.07588940858840942, 0.18278934061527252, 0.09156705439090729, -0.30373263359069824, -0.2998287081718445, 0.17252495884895325, -0.07228996604681015, -0.4023593068122864, 0.10723481327295303, 0.06545639038085938, -0.5473223328590393, 0.021734649315476418, 0.09589531272649765, -0.16957268118858337, -0.05753963440656662, -0.3571425676345825, 0.04796505346894264, -0.2368825525045395, -0.25407910346984863, -0.15955179929733276, -0.013157625682651997, 0.33312296867370605, -0.1687350571155548, -0.3116176426410675, -0.4004588723182678, -0.29786035418510437, 0.21164411306381226, -0.19554081559181213, -0.11783359944820404, 0.27287060022354126, -0.49670109152793884, 0.06526069343090057, 0.6163495779037476, -0.4722350537776947, -0.29971885681152344, 0.5806680917739868, -0.4525259733200073, -0.06820095330476761, 0.26381373405456543, -0.036955032497644424, -0.2212250828742981, -0.29773953557014465, -0.08449238538742065, 0.13490694761276245, 0.02606029435992241, -0.15002325177192688, -0.19786985218524933, -0.3536165654659271, 0.14594632387161255, 0.2388366311788559, -0.08798055350780487, 0.09268990159034729, 0.053084973245859146, -0.07039478421211243, 0.45289796590805054, 0.10668674111366272, 0.06376861780881882, -0.06113770604133606, 0.12078848481178284, -0.19681988656520844, -0.10716645419597626, 0.026188667863607407, -0.584591269493103, 0.1251317262649536, -0.31481269001960754, 0.19763021171092987, -0.18850268423557281, -0.07421611249446869, -0.5055437684059143, -0.018278947100043297, 0.022849205881357193, -0.256498247385025, 0.009733978658914566, 0.3550092279911041, 0.09080672264099121, -0.04917626455426216, 0.032250817865133286, 0.015585476532578468, -0.2026490420103073, 0.29429739713668823, -0.01093212328851223, 0.06413046270608902, -0.08776144683361053, 0.11537978798151016, 0.2468138039112091, 0.2504465878009796, 0.16801974177360535, -0.40396732091903687, 0.03069029189646244, 0.31766238808631897, 0.19105158746242523, 0.1839984953403473, 0.20126760005950928, -0.06688754260540009, 0.1683950424194336, 0.19110062718391418, 0.08350782841444016, 0.4694283902645111, 0.04755904898047447, -0.1295868456363678, 0.04580176621675491, 0.20797233283519745, 0.15497969090938568, -0.00213015079498291, -0.07428160309791565, 0.07928746938705444, 0.34483975172042847, 0.022174421697854996, -0.10134495049715042, -0.2545165419578552, 0.10405266284942627, 0.3349338173866272, 0.6334260702133179, -0.006708214059472084, 0.273513525724411, -0.10973969846963882, -0.14043642580509186, -0.3109174966812134, 0.046973537653684616, 0.14044475555419922, -0.18512564897537231, -0.10904363542795181, 0.0009039100259542465, 0.37554606795310974, 0.8084442019462585, -0.008677100762724876, 0.33784979581832886, 0.09863588958978653, -0.1634434014558792, -0.23178517818450928, 0.24697154760360718, 0.17262214422225952, -0.09168870002031326, 0.12587042152881622, -0.1599157601594925, -0.3018531799316406, -0.14503933489322662, 0.019934367388486862, 0.42337390780448914, 0.31813204288482666, -0.45475471019744873, -0.05683911591768265, -0.2974063456058502, -0.5187107920646667, -0.5051650404930115, -0.31656894087791443, -0.20916055142879486, -0.3562682569026947, -0.05608274042606354, 0.2834821939468384, -0.1309288740158081, 0.16682444512844086, -0.11503660678863525, 0.25020748376846313, -0.32945582270622253, -0.3059852719306946, 0.054140470921993256, -0.09253241121768951, -0.43069523572921753, 0.0013972539454698563, 0.40533044934272766, 0.090855672955513, 0.25071990489959717, -0.23175682127475739, -0.20343632996082306, -0.2620783746242523, -0.27703630924224854, 0.13477814197540283, 0.18046340346336365, 0.5565584301948547, 0.4462134540081024, -0.000581689178943634, 0.4154552221298218, 0.02344721183180809, 0.02131914161145687, -0.17712284624576569, -0.35947832465171814, -0.16657470166683197, 0.11461717635393143, 0.1163780614733696, -0.17482440173625946, -0.43526509404182434, -0.5285282731056213, -0.0585303008556366, 0.029240682721138, 0.08637483417987823, 0.15409338474273682, 0.09188579767942429, -0.17155233025550842, 0.18889731168746948, 0.04282138869166374, -0.1449870616197586, -0.1551210880279541, -0.07492946088314056, 0.026332799345254898, -0.14079639315605164, -0.17391948401927948, 0.008675064891576767, -0.20956045389175415, 0.057938311249017715, -0.1622324138879776, -0.40622448921203613, -0.5565919876098633, 0.14096727967262268, 0.18127036094665527, 0.2534225881099701, -0.15074874460697174, 0.3773113787174225, 0.1824406385421753, 0.09180453419685364, -0.1326710283756256, -0.33633512258529663, 0.24598217010498047, 0.10700105130672455, 0.40160319209098816, 0.20600584149360657, 0.2957029342651367, -0.02632218971848488, 0.7256453633308411, 0.14918728172779083, -0.07229511439800262, 0.09984970092773438, -0.18606211245059967, 0.10383285582065582, 0.15628531575202942, 0.005901087075471878, 0.18452101945877075, -0.15817275643348694, -0.26709139347076416, 0.31861943006515503, -0.1976814866065979, -0.04666385054588318, -0.1197158470749855, 0.28461185097694397, -0.2596029043197632, -0.12736406922340393, 0.12735626101493835, -0.05860191583633423, -0.04352843016386032, 0.0980660617351532, -0.048926327377557755, -0.1612469106912613, -0.06135890632867813, 0.12111452221870422, 0.3515176773071289, 0.03328745812177658, 0.14570879936218262, -0.31239375472068787, -0.048561468720436096, -0.3304591178894043, 0.28733140230178833, 0.3822648227214813, 0.42916810512542725, 0.058980513364076614, 0.013043195009231567, 0.09527860581874847, 0.0012858801055699587, 0.28690028190612793, 0.019052239134907722, 0.15850701928138733, 0.13101837038993835, -0.1548554003238678, 0.024731894955039024, -0.15523302555084229, -0.09564238786697388, 0.09846868366003036, 0.0075187403708696365, 0.1507927030324936, -0.4683266580104828, -0.1387944370508194, 0.19019147753715515, 0.11472004652023315, -0.05802185833454132, -0.22207723557949066, -0.01593099534511566, -0.1212080791592598, -0.047306787222623825, -0.22213193774223328, -0.1463330090045929, -0.00987346563488245, -0.10142916440963745, 0.2902652621269226, 0.07743444293737411, -0.14815478026866913, -0.014837421476840973, 0.08856981992721558, 0.20450139045715332, -0.32809844613075256, 0.11342285573482513, 0.2718534469604492, 0.1991799771785736, 0.2238490730524063, 0.4006247818470001, -0.1000056266784668, -0.21022149920463562, 0.03399261459708214, 0.0597417838871479, 0.32148393988609314, 0.40066346526145935, 0.1043480709195137, -0.03905957192182541, -0.2513599991798401, -0.1566224992275238, -0.3356708884239197, 0.22357915341854095, 0.4120946526527405, -0.10309451073408127, 0.1445939838886261, -0.22912022471427917, 0.6646540760993958, 0.13159377872943878, -0.2383849024772644, 0.5089072585105896, -0.2838893532752991, -0.28065943717956543, -0.07736491411924362, 0.04677654802799225, 1.0281782150268555, 0.24669374525547028, 0.25193700194358826, 0.4927612245082855, -0.26039814949035645, 0.29286348819732666, 0.06944629549980164, 0.09858234971761703, -0.43218109011650085, 0.01908162236213684, -0.06405018270015717, -0.20192989706993103, 0.25413820147514343, 0.0323692224919796, -0.23340997099876404, 0.33858853578567505, 0.13275614380836487, 0.38943061232566833, 0.24295982718467712, 0.40020880103111267, -0.2431952953338623, -0.021532617509365082, -0.23148691654205322, 0.04449541121721268, -0.029154032468795776, 0.3578967750072479, -0.20181328058242798, -0.08174560964107513, -0.2016928493976593, -0.13223722577095032, -0.0011771619319915771, -0.08184559643268585, -0.39228349924087524, 0.02882978320121765, 0.06671243160963058, -0.10534278303384781, -0.2333947867155075, 0.20267853140830994, 0.10940432548522949, -0.2765069007873535, -0.13125471770763397, 0.1421452760696411, -0.3156774938106537, 0.2580564320087433, 0.32302430272102356, -0.006119467318058014, 0.24911488592624664, -0.3315941393375397, -0.026277117431163788, 0.07291920483112335, -0.3236357867717743, -0.19239944219589233, 0.0774703323841095, -0.21757875382900238, 0.07555171847343445, -0.31039997935295105, -0.27577370405197144, -0.13168874382972717, -0.08827875554561615, -0.1178445816040039, -0.004206901416182518, 0.2224300354719162, -0.35297101736068726, -0.07808395475149155, -0.06195661798119545, -0.26087623834609985, -0.005462657660245895, 0.4155062735080719, -0.20488032698631287, -0.04841705411672592, 0.6307440996170044, -0.41792675852775574, 0.09337049722671509, -0.079853355884552, 0.13358944654464722, -0.15759505331516266, -0.11624141037464142, 0.05989936739206314, -0.08218099921941757, -0.3145851492881775, -0.050275735557079315, 0.569949746131897, 0.42291927337646484, 0.1599036455154419, -0.180293470621109, -0.49785035848617554, -0.3021971881389618, 0.04070751368999481, -0.19161413609981537, 0.19290229678153992, -0.08632397651672363, 0.21488745510578156, 0.23817577958106995, 0.0008382759988307953, -0.17753922939300537, -0.11061996221542358, -0.04482252150774002, 0.18705318868160248, -0.17645962536334991, 0.028116632252931595, 0.0877770408987999, 0.11093772947788239, -0.05144130811095238, 0.07127973437309265, -0.2663799226284027, -0.0333772711455822, -0.10417573153972626, 0.22602668404579163, 0.15439337491989136, -0.07422846555709839, 0.17398366332054138, -0.14891070127487183, 0.0284816212952137, 0.15574006736278534, -0.13240188360214233, -0.05118057131767273, -0.030449554324150085, 0.11647018790245056, 0.23405714333057404, 0.04432990401983261, -0.20257069170475006, 0.28245532512664795, -0.00937933474779129, 0.15508635342121124, -0.09460069239139557, 0.2090187519788742, -0.3223201632499695, 0.03160187602043152, 0.1714431345462799, 0.09846896678209305, -0.0670008510351181, 0.2769376337528229, 0.1365857720375061, 0.0017014257609844208, 0.0024582110345363617, -0.047430962324142456, 0.3074747920036316, 0.7473388910293579, -0.2027832269668579, -0.12888062000274658, 0.4639033377170563, -0.0035371016710996628, -0.21185420453548431, 0.0612078420817852, 0.1913788765668869, 0.0043714516796171665, 0.07066088914871216, 0.25566190481185913, 0.04539021477103233, 0.07980118691921234, 0.2536444664001465, 0.056786246597766876, 0.15905065834522247, -0.06254514306783676, -0.05567093938589096, 0.5163026452064514, -0.2475845217704773, 0.34521737694740295, 0.34482526779174805, -0.026771772652864456, 0.31721267104148865, 0.04373566806316376, -0.022251874208450317, 0.5483085513114929, -0.005632925778627396, 0.00781308114528656, 0.12488162517547607, 0.007366776466369629, -0.1026037186384201, 0.20615433156490326, 0.09833647310733795, 0.0502794086933136, 0.2542821168899536, 0.6443099975585938, -0.5301637649536133, -0.19425936043262482, -0.26956498622894287, -0.09844571352005005, 0.08751709759235382, -0.1178484559059143, -0.4535405933856964, -0.008799247443675995, -0.32576411962509155, -0.14106591045856476, -0.13782083988189697, -0.34438979625701904, 0.255964457988739, 0.0038795918226242065, -0.34121793508529663, -0.2516852915287018, -0.43340232968330383, 0.13744811713695526, -0.04456052929162979, -0.32665860652923584, 0.2011277675628662, 0.033437639474868774, 0.031245749443769455, 0.27481314539909363, 0.29906943440437317, 0.46005767583847046, 0.0771295428276062, -0.2869524657726288, -0.3478586971759796, -0.19405271112918854, 0.07553913444280624, -0.07693614065647125, 0.2965206801891327, 0.0063514187932014465, -0.1687133014202118, 0.5234036445617676, 0.048970505595207214, 0.015593278221786022, 0.21652808785438538, 0.42398321628570557, -0.4900088310241699, -0.14891810715198517, 0.7677971720695496, -0.07951381802558899, -0.0862942785024643, -0.05311255902051926, -0.012460090219974518, -0.2715531587600708, 0.06506966799497604, -0.10145227611064911, -0.13405369222164154, 0.22263318300247192, 0.12485463172197342, 0.026110272854566574, -0.05931307002902031, 0.29371020197868347, 0.3687489628791809, -0.12910744547843933, -0.40220555663108826, -0.2841157615184784, -0.9730968475341797, 0.0777425765991211, 0.019219188019633293, -0.3939656913280487, -0.07160546630620956, -0.2766570448875427, 0.21714970469474792, 0.1105118840932846, -0.21781723201274872, 0.20729725062847137, 0.2407175898551941, 0.04598331078886986, -0.2624930143356323, -0.3137996792793274, -0.2427888959646225, 0.03638792783021927, -0.04189538210630417, -0.42559289932250977, 0.11773175001144409, -0.2274351269006729, -0.1400522142648697, 0.2893149256706238, -0.04074506461620331, 0.3404310345649719, 0.0762932151556015, 0.28897297382354736, -0.07201763242483139, 0.6170152425765991, 0.10390695184469223, 0.010898062959313393, -0.11753726005554199, 0.2104000598192215, -0.11691663414239883, 0.06729250401258469, -0.07970170676708221, 0.20908212661743164, -0.18039101362228394, 0.6635026335716248, -0.5068437457084656, 0.4374559819698334, 0.040226638317108154, 0.08135417103767395, -0.261356383562088, 0.10217414796352386, -0.3644094169139862, 0.13158944249153137, 0.3581801950931549, 0.28291067481040955, -0.12177620828151703, 0.30615127086639404, -0.13787078857421875, -0.19781394302845, 0.39826518297195435, -0.12612172961235046, -0.04153178632259369, 0.0497802197933197, 0.27279171347618103, -0.09282941371202469, -0.061109527945518494, -0.4452347457408905, 0.05422201007604599, 0.27372851967811584, 0.02921118214726448, 0.11292864382266998, 0.09593439102172852, 0.15679320693016052, 0.11953651905059814, -0.06224033981561661, 0.8743882179260254, 0.04461188614368439, 0.017598023638129234, 0.001132044941186905, -0.24424105882644653 ]
https://github.com/huggingface/datasets/issues/161
Discussion on version identifier & MockDataLoaderManager for test data
I think the dataset script works correctly. Just the dummy data structure seems to be wrong. I will soon add more commands that should make the create of the dummy data easier. I'd recommend that you won't concentrate too much on the dummy data. If you manage to load the dataset correctly via: ```python # use local path to qanta nlp.load_dataset("./datasets/qanta") ``` then feel free to open a PR and we will look into the dummy data problem together :-) Also please make sure that the Version is in the format 1.0.0 (three numbers separated by two points) - not a date.
Hi, I'm working on adding a dataset and ran into an error due to `download` not being defined on `MockDataLoaderManager`, but being defined in `nlp/utils/download_manager.py`. The readme step running this: `RUN_SLOW=1 pytest tests/test_dataset_common.py::DatasetTest::test_load_real_dataset_localmydatasetname` triggers the error. If I can get something to work, I can include it in my data PR once I'm done.
102
Discussion on version identifier & MockDataLoaderManager for test data Hi, I'm working on adding a dataset and ran into an error due to `download` not being defined on `MockDataLoaderManager`, but being defined in `nlp/utils/download_manager.py`. The readme step running this: `RUN_SLOW=1 pytest tests/test_dataset_common.py::DatasetTest::test_load_real_dataset_localmydatasetname` triggers the error. If I can get something to work, I can include it in my data PR once I'm done. I think the dataset script works correctly. Just the dummy data structure seems to be wrong. I will soon add more commands that should make the create of the dummy data easier. I'd recommend that you won't concentrate too much on the dummy data. If you manage to load the dataset correctly via: ```python # use local path to qanta nlp.load_dataset("./datasets/qanta") ``` then feel free to open a PR and we will look into the dummy data problem together :-) Also please make sure that the Version is in the format 1.0.0 (three numbers separated by two points) - not a date.
[ -0.16123409569263458, 0.25518906116485596, 0.01692241057753563, -0.06889231503009796, -0.018732767552137375, -0.07994238287210464, 0.40359073877334595, 0.33871909976005554, 0.07540535926818848, 0.048679009079933167, 0.19280599057674408, 0.11071804910898209, -0.2993961572647095, 0.10281568020582199, 0.10059303045272827, -0.11661365628242493, 0.022554948925971985, 0.22912107408046722, -0.1793874204158783, 0.22091664373874664, -0.2534816861152649, 0.10033488273620605, -0.11082936823368073, 0.17837142944335938, -0.011251498013734818, 0.15829147398471832, -0.2870261073112488, 0.059302959591150284, -0.33930879831314087, -0.7205917835235596, 0.35619962215423584, 0.07208037376403809, 0.25911760330200195, 0.49416443705558777, -0.00012244144454598427, -0.07432977855205536, 0.5196996331214905, -0.14471903443336487, -0.6755973100662231, -0.23255540430545807, 0.24015581607818604, -0.35562533140182495, 0.33595702052116394, 0.0014617443084716797, 0.05675800144672394, -0.22579796612262726, 0.24793463945388794, 0.1120195984840393, 0.2297286093235016, 0.363781213760376, 0.13691143691539764, 0.29282739758491516, 0.05487274006009102, -0.12325610220432281, -0.1417388916015625, -0.011340200901031494, -0.11851340532302856, 0.544144868850708, 0.3419775068759918, 0.033158183097839355, 0.007737115025520325, -0.05453294515609741, 0.08724603056907654, 0.39128610491752625, 0.1923447549343109, 0.0001656860113143921, 0.5235509872436523, -0.04455608129501343, -0.11648371070623398, 0.09077674150466919, 0.736592710018158, -0.5787573456764221, -0.3857162594795227, -0.000017337501049041748, 0.05161536484956741, -0.1114276722073555, 0.17219918966293335, -0.10056000202894211, -0.29932674765586853, 0.05937686562538147, -0.10987244546413422, -0.22395329177379608, -0.10024012625217438, 0.2735377550125122, -0.2138691246509552, 0.23304486274719238, 0.06023779511451721, 0.22848179936408997, 0.0010026805102825165, -0.10714848339557648, 0.19523316621780396, -0.130006805062294, -0.056148629635572433, 0.26843059062957764, -0.09157173335552216, -0.18151701986789703, -0.3443862795829773, -0.16297674179077148, 0.1395750641822815, -0.10119490325450897, -0.3182561993598938, -0.11622612923383713, 0.04142526164650917, 0.1830255091190338, 0.1564446985721588, 0.36657169461250305, 0.2711386978626251, 0.203131303191185, 0.1212838664650917, 0.14138741791248322, 0.2718675136566162, 0.2031421959400177, -0.06695922464132309, -0.3533773720264435, -0.012510182335972786, 0.09310341626405716, 0.2051633894443512, -0.27992451190948486, -0.16181977093219757, -0.21086403727531433, -0.36214450001716614, 0.011534271761775017, -0.12015797942876816, 0.329758882522583, -0.1922219842672348, -0.18938469886779785, 0.07900330424308777, 0.5592824220657349, -0.2009383589029312, -0.2160237431526184, -0.014422334730625153, 0.02494054287672043, -0.21503868699073792, -0.06536289304494858, 0.23748506605625153, 0.009568301029503345, 0.4028269946575165, -0.25579267740249634, -0.2903875708580017, -0.006050541996955872, 0.23149800300598145, 0.020161373540759087, -0.1914067268371582, 0.255879282951355, -0.050090041011571884, -0.024773161858320236, 0.10018894821405411, -0.33269697427749634, -0.22785726189613342, 0.2212533950805664, 0.10084787756204605, -0.4667081832885742, -0.21180172264575958, 0.09065297245979309, -0.4503857493400574, 0.021674133837223053, 0.01700630784034729, -0.04640189930796623, 0.09855171293020248, -0.3617478311061859, -0.08257193118333817, -0.42291587591171265, -0.2915899157524109, -0.11434780806303024, -0.05740845948457718, 0.3280135989189148, -0.4315403699874878, -0.27291351556777954, -0.40979236364364624, -0.29973477125167847, 0.10333580523729324, -0.26148900389671326, -0.07541269063949585, 0.270658940076828, -0.39036887884140015, -0.10745149850845337, 0.5073698163032532, -0.5006065368652344, -0.2522057592868805, 0.44504302740097046, -0.3928952217102051, -0.19235169887542725, 0.1796453893184662, 0.035886745899915695, 0.002271911595016718, -0.2983293831348419, -0.12099133431911469, 0.07886020839214325, 0.08520572632551193, -0.13364550471305847, -0.16009680926799774, -0.3697936236858368, 0.13916628062725067, 0.27015942335128784, -0.0896330177783966, 0.12558990716934204, 0.021427839994430542, -0.011059951968491077, 0.33645546436309814, 0.08014361560344696, 0.18637970089912415, -0.0893135815858841, 0.11018556356430054, -0.18833376467227936, -0.09345073252916336, -0.011489160358905792, -0.6761332750320435, 0.21052983403205872, -0.20467983186244965, 0.3002505302429199, -0.014470934867858887, 0.03403767943382263, -0.6020734906196594, 0.01895187981426716, -0.0877685695886612, -0.24328818917274475, 0.04227831959724426, 0.19854861497879028, 0.1348019689321518, 0.055419910699129105, 0.005590908229351044, 0.13680881261825562, -0.15025171637535095, 0.25498712062835693, -0.07851281762123108, -0.02898910641670227, -0.11474782973527908, 0.09138817340135574, 0.3021056056022644, 0.28191643953323364, 0.08846898376941681, -0.30991998314857483, 0.052437517791986465, 0.28284236788749695, 0.23467117547988892, 0.14354731142520905, 0.20161670446395874, -0.111790731549263, 0.08561433106660843, 0.22560027241706848, 0.26149848103523254, 0.3159293830394745, 0.10255806893110275, -0.21182110905647278, -0.0016614124178886414, 0.24940206110477448, 0.24553686380386353, -0.004479795694351196, -0.2242421954870224, 0.05857330560684204, 0.2959597706794739, 0.10568206012248993, -0.10605508834123611, -0.3111676573753357, 0.09343567490577698, 0.3330494165420532, 0.5936198830604553, -0.09914606809616089, 0.19831451773643494, -0.03524430841207504, -0.2650436758995056, -0.32063862681388855, 0.11222030222415924, 0.11663531512022018, -0.28330478072166443, -0.1018630713224411, 0.03251190483570099, 0.2716318368911743, 0.8015945553779602, -0.05509612336754799, 0.05959974229335785, 0.11370673030614853, -0.15358614921569824, -0.1946411281824112, 0.19420087337493896, 0.10261163860559464, -0.07959956675767899, 0.1113404929637909, -0.04581394046545029, -0.34773901104927063, -0.03733564540743828, -0.0098793413490057, 0.41767382621765137, 0.4067232310771942, -0.40734073519706726, -0.05698364973068237, -0.15354542434215546, -0.3752647936344147, -0.3857826590538025, -0.39606213569641113, -0.20940032601356506, -0.37914931774139404, -0.061007946729660034, 0.34465742111206055, 0.018216155469417572, 0.2503044009208679, -0.0940144956111908, 0.2637230157852173, -0.20558662712574005, -0.3096754252910614, 0.16009972989559174, -0.1387048363685608, -0.4587654173374176, 0.030165571719408035, 0.24290694296360016, 0.166512593626976, 0.36580029129981995, -0.26891154050827026, -0.21224702894687653, -0.20119793713092804, -0.3196374773979187, 0.1471569687128067, -0.010631676763296127, 0.6500730514526367, 0.4507491886615753, 0.0585351437330246, 0.29792672395706177, 0.11121919751167297, 0.0039668926037848, -0.13633927702903748, -0.38170531392097473, -0.08096282184123993, -0.0211394801735878, 0.06345333904027939, -0.11353889107704163, -0.43938902020454407, -0.597908079624176, -0.0280657559633255, 0.07417424023151398, 0.11462877690792084, 0.12124395370483398, 0.13008549809455872, -0.015365418046712875, 0.18102015554904938, 0.03190838545560837, -0.19629263877868652, -0.19380268454551697, 0.05310121551156044, 0.08232894539833069, -0.1754685789346695, -0.2817416787147522, 0.16572827100753784, -0.21765874326229095, 0.08913847804069519, -0.267608642578125, -0.4637162685394287, -0.4648180902004242, 0.24480949342250824, 0.16363181173801422, 0.30453312397003174, -0.20452971756458282, 0.292167067527771, 0.2518637478351593, 0.17327234148979187, -0.12148889154195786, -0.35631048679351807, 0.20366647839546204, 0.015651993453502655, 0.32238972187042236, 0.1992473304271698, 0.3970180153846741, -0.27665001153945923, 0.7669880986213684, 0.18207035958766937, -0.08122339844703674, -0.039078108966350555, -0.21187716722488403, 0.09913460165262222, -0.08708547800779343, -0.057646699249744415, 0.23883315920829773, -0.1382337510585785, -0.20207837224006653, 0.31310510635375977, -0.17024555802345276, -0.009243510663509369, -0.1277005970478058, 0.23863407969474792, -0.11140114068984985, -0.06311224400997162, 0.05957990884780884, -0.16654348373413086, 0.037804629653692245, 0.09868113696575165, -0.014955498278141022, -0.26176780462265015, -0.19446420669555664, -0.05254676192998886, 0.3353537321090698, 0.00215362012386322, 0.11820752173662186, -0.3188003599643707, 0.011237408965826035, -0.4265468418598175, 0.27860671281814575, 0.23024268448352814, 0.5973349213600159, 0.12704813480377197, 0.08186411112546921, 0.10293954610824585, 0.10305580496788025, 0.21146531403064728, -0.007445311173796654, 0.09969307482242584, 0.2119988650083542, -0.09975820779800415, -0.2154734879732132, -0.2416670322418213, -0.08823616057634354, 0.15256495773792267, -0.04120717570185661, 0.12435637414455414, -0.4224529266357422, -0.06276493519544601, 0.23153804242610931, 0.19613604247570038, -0.18541744351387024, -0.3014686703681946, -0.1950829178094864, -0.013291265815496445, -0.10634008795022964, -0.22760504484176636, -0.23696112632751465, 0.07546494901180267, -0.1983974725008011, 0.4346015155315399, 0.026548363268375397, -0.09503418952226639, -0.009467177093029022, 0.22040176391601562, 0.21856367588043213, -0.22556492686271667, 0.3471059203147888, 0.2126542180776596, 0.04422235116362572, 0.19378337264060974, 0.27334168553352356, 0.04670002683997154, -0.2699180841445923, 0.07171857357025146, -0.05596540495753288, 0.3882960081100464, 0.23093989491462708, 0.07861852645874023, -0.00005405396223068237, -0.22865724563598633, -0.15552115440368652, -0.2668570876121521, 0.11353746801614761, 0.3650883436203003, -0.012089425697922707, -0.05756721645593643, -0.32377949357032776, 0.5772800445556641, 0.12792909145355225, -0.22235487401485443, 0.36209797859191895, -0.22821225225925446, -0.23417431116104126, 0.17707739770412445, 0.05815215781331062, 0.8921772241592407, 0.16323061287403107, 0.260675847530365, 0.4901682734489441, -0.22215138375759125, 0.3511631190776825, 0.21474795043468475, 0.11312007904052734, -0.6522512435913086, -0.002711152657866478, 0.03967883437871933, -0.14634230732917786, 0.21416541934013367, -0.14346690475940704, -0.3366469740867615, 0.38715091347694397, 0.004389449954032898, 0.2776871919631958, 0.28608906269073486, 0.3106575906276703, -0.17871226370334625, -0.027079883962869644, -0.11676010489463806, 0.08298254758119583, -0.08146405220031738, 0.3729134500026703, -0.23302653431892395, -0.0751853659749031, -0.26928555965423584, -0.06246252357959747, -0.19180388748645782, -0.1346471905708313, -0.16934442520141602, -0.05201026052236557, 0.11992664635181427, -0.11077140271663666, -0.04196750372648239, 0.23126019537448883, 0.24265499413013458, -0.14473362267017365, -0.22735705971717834, 0.0562334880232811, -0.2652636170387268, 0.0754646435379982, 0.32904595136642456, 0.06114061176776886, 0.25031280517578125, -0.2712116539478302, -0.17359310388565063, 0.10917018353939056, -0.24852460622787476, -0.0686342790722847, -0.14945924282073975, -0.2002929300069809, 0.1652691662311554, -0.30027469992637634, -0.3457498550415039, -0.11714093387126923, -0.04909733682870865, -0.09219124913215637, 0.028591478243470192, 0.2284182757139206, -0.34068024158477783, -0.005800515413284302, -0.11406520009040833, -0.26731932163238525, -0.028433039784431458, 0.4541562795639038, -0.029472649097442627, -0.013765586540102959, 0.8067977428436279, -0.09696415811777115, 0.1509827822446823, -0.1248982772231102, 0.06405527144670486, -0.0021404169965535402, -0.2087341845035553, 0.007498220540583134, -0.07276080548763275, -0.30545729398727417, 0.06333988904953003, 0.600261390209198, 0.35027748346328735, -0.006405659019947052, -0.015813883394002914, -0.550316572189331, -0.4705410599708557, -0.017436794936656952, -0.1337229162454605, 0.10882772505283356, -0.09000913798809052, 0.1982867419719696, 0.2599767744541168, 0.030202198773622513, -0.2092873603105545, -0.13878807425498962, -0.02385474555194378, 0.19493140280246735, -0.15603159368038177, 0.015624869614839554, 0.040912967175245285, 0.10926000773906708, -0.0156604815274477, 0.016997668892145157, -0.39186662435531616, -0.07138141989707947, -0.10062696039676666, 0.2022782415151596, 0.11084720492362976, -0.11428533494472504, 0.0633031353354454, -0.12285260856151581, -0.11143894493579865, 0.1994762271642685, -0.09420676529407501, 0.017175644636154175, -0.10651440918445587, 0.18531440198421478, 0.3287240266799927, 0.05133862793445587, -0.09047773480415344, 0.2512058615684509, 0.10262155532836914, 0.18970081210136414, -0.11579413712024689, 0.21868321299552917, -0.25777700543403625, 0.04440472275018692, 0.1239485964179039, 0.1364469677209854, -0.0643075704574585, 0.3193926215171814, 0.18316513299942017, -0.14177612960338593, 0.14575506746768951, -0.12332566827535629, 0.3411400318145752, 0.762730062007904, -0.25960391759872437, -0.16030223667621613, 0.43502816557884216, 0.04208821803331375, -0.23856428265571594, 0.005389540456235409, 0.20815503597259521, 0.10267148166894913, 0.05342165008187294, 0.26197248697280884, 0.05471411719918251, -0.08131008595228195, 0.1798190474510193, 0.14861786365509033, 0.11086573451757431, -0.19002777338027954, -0.08867503702640533, 0.504673957824707, -0.291379451751709, 0.233215793967247, 0.37283989787101746, 0.042408932000398636, 0.16424545645713806, 0.16576363146305084, 0.05226294323801994, 0.4733755886554718, 0.055274371057748795, 0.051703061908483505, 0.11520936340093613, -0.026024971157312393, -0.004513636231422424, 0.3991512656211853, -0.009431079030036926, 0.008123531937599182, 0.3110033869743347, 0.5946424007415771, -0.4087996482849121, -0.15509122610092163, -0.3245680034160614, -0.10484929382801056, 0.03521781787276268, -0.1329287588596344, -0.3802723288536072, 0.07117839902639389, -0.2537858486175537, -0.15523618459701538, -0.15357732772827148, -0.32617008686065674, 0.1191236674785614, 0.0025216788053512573, -0.33478397130966187, -0.23041334748268127, -0.46209508180618286, 0.2961371839046478, -0.10243260115385056, -0.2105667144060135, 0.24565547704696655, 0.06732185184955597, 0.1390589326620102, 0.3560236990451813, 0.3868749141693115, 0.4162232279777527, 0.15023009479045868, -0.42037537693977356, -0.17785878479480743, -0.1542007178068161, 0.10862705111503601, 0.07844646275043488, 0.34823471307754517, -0.018898576498031616, -0.18846789002418518, 0.5514339804649353, 0.06358036398887634, 0.04156501218676567, 0.2617347240447998, 0.43246570229530334, -0.4136836528778076, -0.19127386808395386, 0.7280192971229553, -0.14776611328125, -0.12769757211208344, -0.11568295955657959, 0.17403176426887512, -0.3391331136226654, 0.18818482756614685, 0.055040668696165085, -0.011935136280953884, 0.20172011852264404, 0.004270710051059723, 0.037738654762506485, -0.17049317061901093, 0.429818332195282, 0.39635372161865234, -0.030322782695293427, -0.4015498757362366, -0.24162301421165466, -0.8262505531311035, 0.1943666934967041, -0.09572440385818481, -0.31783339381217957, -0.03783036395907402, -0.23111899197101593, 0.19117724895477295, 0.1463651955127716, -0.250474750995636, 0.23906321823596954, -0.015761349350214005, 0.16460029780864716, -0.3513508439064026, -0.3869226574897766, -0.27075475454330444, 0.11317019164562225, -0.08452484011650085, -0.450194388628006, 0.17498208582401276, -0.24662645161151886, -0.09763581305742264, 0.16377101838588715, -0.01951579749584198, 0.45246005058288574, 0.10025523602962494, 0.3120708465576172, -0.045624420046806335, 0.5762504935264587, 0.17790579795837402, -0.0407506600022316, -0.23221519589424133, 0.19575998187065125, -0.14506053924560547, 0.09771697223186493, 0.04910464957356453, 0.15912573039531708, -0.12989254295825958, 0.5070655941963196, -0.3636958599090576, 0.436359703540802, 0.08669756352901459, 0.1201675608754158, -0.45000436902046204, 0.17375843226909637, -0.22239625453948975, 0.1384890079498291, 0.24804385006427765, 0.26967698335647583, -0.10547000169754028, 0.4141564965248108, -0.18960294127464294, -0.05892534554004669, 0.42898786067962646, -0.20631763339042664, -0.10361814498901367, 0.06802339851856232, 0.19691148400306702, -0.11535163968801498, -0.17309723794460297, -0.41207295656204224, 0.2724250257015228, 0.24500256776809692, -0.06220121681690216, 0.14686456322669983, 0.1653280258178711, 0.2617565095424652, 0.09280973672866821, -0.012295052409172058, 0.8619531393051147, -0.043059997260570526, 0.12368887662887573, -0.07380126416683197, -0.23250728845596313 ]
https://github.com/huggingface/datasets/issues/161
Discussion on version identifier & MockDataLoaderManager for test data
The script loading seems to work fine so I'll work on getting a PR open after a few sanity checks on the data. On version, we currently have it versioned with YYYY.MM.DD scheme so it would be nice to not change that, but will it cause issues?
Hi, I'm working on adding a dataset and ran into an error due to `download` not being defined on `MockDataLoaderManager`, but being defined in `nlp/utils/download_manager.py`. The readme step running this: `RUN_SLOW=1 pytest tests/test_dataset_common.py::DatasetTest::test_load_real_dataset_localmydatasetname` triggers the error. If I can get something to work, I can include it in my data PR once I'm done.
47
Discussion on version identifier & MockDataLoaderManager for test data Hi, I'm working on adding a dataset and ran into an error due to `download` not being defined on `MockDataLoaderManager`, but being defined in `nlp/utils/download_manager.py`. The readme step running this: `RUN_SLOW=1 pytest tests/test_dataset_common.py::DatasetTest::test_load_real_dataset_localmydatasetname` triggers the error. If I can get something to work, I can include it in my data PR once I'm done. The script loading seems to work fine so I'll work on getting a PR open after a few sanity checks on the data. On version, we currently have it versioned with YYYY.MM.DD scheme so it would be nice to not change that, but will it cause issues?
[ -0.17673836648464203, 0.21117562055587769, -0.009480373933911324, -0.13179375231266022, 0.07344350963830948, -0.1427535116672516, 0.41766178607940674, 0.25735998153686523, 0.04997238889336586, 0.11905566602945328, 0.22333329916000366, 0.06963537633419037, -0.28874674439430237, 0.08405531197786331, 0.09769396483898163, -0.007681429386138916, 0.0639336109161377, 0.14133672416210175, -0.10444168746471405, 0.20766951143741608, -0.255317360162735, -0.0057777054607868195, -0.05395074933767319, 0.10496198385953903, -0.02172393910586834, 0.12302405387163162, -0.20951837301254272, 0.10340186953544617, -0.4361007511615753, -0.8527143597602844, 0.38024187088012695, 0.10695050656795502, 0.288835734128952, 0.39495864510536194, -0.0001284343597944826, -0.057478178292512894, 0.598814845085144, -0.10965335369110107, -0.6252250671386719, -0.1496022790670395, 0.2785561978816986, -0.3912249505519867, 0.35908591747283936, -0.0352214053273201, 0.1500796377658844, -0.1874665766954422, 0.21873195469379425, 0.041839078068733215, 0.14435091614723206, 0.288277268409729, 0.07647918164730072, 0.28133049607276917, 0.06819561123847961, -0.21769152581691742, -0.11556986719369888, 0.05953846126794815, -0.08263552188873291, 0.5680215954780579, 0.442057728767395, 0.16450102627277374, -0.04790747910737991, -0.1347484141588211, 0.09925584495067596, 0.4558955729007721, 0.18909752368927002, -0.045192401856184006, 0.6421709656715393, 0.017217176035046577, -0.14175665378570557, -0.0005504824221134186, 0.947965145111084, -0.5009496212005615, -0.39741623401641846, 0.050294697284698486, -0.011667008511722088, -0.12136565148830414, 0.23012858629226685, -0.19277602434158325, -0.29002678394317627, 0.04725097864866257, -0.17219504714012146, -0.3062463700771332, -0.1238461583852768, 0.30030083656311035, -0.3025885224342346, 0.3052993416786194, 0.1033438965678215, 0.24936023354530334, 0.0188441202044487, -0.11828535795211792, 0.284358412027359, -0.03635125234723091, -0.014641515910625458, 0.18634498119354248, 0.0785243958234787, -0.28582820296287537, -0.3459250032901764, -0.20418116450309753, 0.11312217265367508, -0.04123386740684509, -0.4233124554157257, -0.1887904703617096, -0.034955814480781555, 0.17621374130249023, 0.22279924154281616, 0.2793657183647156, 0.3226896822452545, 0.19643907248973846, 0.2440313696861267, 0.0767487958073616, 0.32819220423698425, 0.2670004367828369, -0.07985181361436844, -0.40303125977516174, 0.01620788499712944, 0.05976131930947304, 0.2114085555076599, -0.3521571755409241, -0.08716652542352676, -0.2609817683696747, -0.3343007564544678, -0.04781227186322212, -0.137674480676651, 0.2543798089027405, -0.11698323488235474, -0.0950981006026268, 0.03040596842765808, 0.4238702654838562, -0.15298567712306976, -0.15912950038909912, -0.010798061266541481, 0.014279911294579506, -0.16778981685638428, -0.018229538574814796, 0.21012471616268158, 0.08893686532974243, 0.3157948851585388, -0.27740398049354553, -0.20177359879016876, 0.003569331020116806, -0.015546978451311588, 0.09739156067371368, -0.19562140107154846, 0.2981409430503845, -0.24754264950752258, -0.021107293665409088, 0.043806254863739014, -0.2993892431259155, -0.20705392956733704, 0.27791714668273926, 0.09650804847478867, -0.453835129737854, -0.017877692356705666, 0.04868258908390999, -0.5866081118583679, -0.00634964182972908, -0.01857384294271469, -0.11635668575763702, 0.11945316195487976, -0.3823103606700897, 0.013697266578674316, -0.4451647996902466, -0.37953653931617737, -0.10745561122894287, -0.1562437117099762, 0.22268864512443542, -0.33081844449043274, -0.27616411447525024, -0.3116810619831085, -0.3430004417896271, 0.15970641374588013, -0.24245966970920563, -0.09673333913087845, 0.09309723973274231, -0.3562762141227722, -0.21318867802619934, 0.5165303945541382, -0.6141241788864136, -0.3168635070323944, 0.4794445335865021, -0.393330454826355, -0.31927284598350525, 0.24876052141189575, -0.020788274705410004, 0.09857164323329926, -0.4370953440666199, -0.12158039212226868, -0.01584037020802498, -0.01884821616113186, -0.1695329248905182, -0.21318596601486206, -0.3432086408138275, 0.15771803259849548, 0.2769618332386017, -0.06715540587902069, 0.14599767327308655, 0.1615188717842102, 0.13526853919029236, 0.3999653458595276, 0.1997320055961609, 0.15013982355594635, -0.1701672226190567, 0.24233408272266388, -0.28190773725509644, -0.034802742302417755, -0.06494873762130737, -0.682308554649353, 0.20384782552719116, -0.08313855528831482, 0.16828690469264984, 0.017561927437782288, -0.01035710796713829, -0.5097716450691223, -0.0043715499341487885, 0.0005460195243358612, -0.18655091524124146, -0.07908086478710175, 0.11807792633771896, 0.1709703505039215, -0.060119159519672394, -0.02904876135289669, 0.008817771449685097, -0.21767613291740417, 0.19490472972393036, 0.06572592258453369, 0.021831972524523735, -0.04672457277774811, 0.055120598524808884, 0.2055901288986206, 0.27329277992248535, 0.0578794926404953, -0.3460524082183838, -0.007602466270327568, 0.27380281686782837, 0.37539568543434143, 0.24678613245487213, 0.14574980735778809, 0.03405582904815674, 0.20076164603233337, 0.24317774176597595, 0.27019375562667847, 0.24104566872119904, 0.01389733050018549, -0.1885060966014862, 0.0430787168443203, 0.19351884722709656, 0.16598394513130188, -0.03977573662996292, -0.1623615026473999, -0.028105774894356728, 0.2738693356513977, 0.16490104794502258, -0.16081158816814423, -0.3247184157371521, 0.016357827931642532, 0.32111096382141113, 0.6261173486709595, 0.021359674632549286, 0.2209395170211792, -0.10340186208486557, -0.2408192753791809, -0.368386447429657, -0.03585366904735565, 0.1324322670698166, -0.146674245595932, -0.13123872876167297, 0.03457266092300415, 0.29096123576164246, 0.813957154750824, -0.0582411102950573, 0.1461980789899826, 0.09321139752864838, -0.08680140227079391, -0.21096526086330414, 0.13557149469852448, 0.1335216760635376, 0.08008911460638046, 0.1352105438709259, 0.024450533092021942, -0.3316609859466553, -0.012321680784225464, 0.050646860152482986, 0.425448477268219, 0.3760305941104889, -0.3850039839744568, -0.14506110548973083, -0.18982520699501038, -0.41637158393859863, -0.46484246850013733, -0.26002493500709534, -0.24017712473869324, -0.3224988877773285, -0.11344258487224579, 0.32590675354003906, 0.01778971403837204, 0.20503292977809906, -0.1692856103181839, 0.29844987392425537, -0.2949588894844055, -0.27069398760795593, 0.1276613175868988, -0.20652733743190765, -0.37653326988220215, -0.005978008732199669, 0.2203703075647354, -0.059068381786346436, 0.4229107201099396, -0.15566542744636536, -0.30039364099502563, -0.15991654992103577, -0.3217741847038269, 0.14323261380195618, 0.1649390310049057, 0.5009918808937073, 0.42585867643356323, -0.019075118005275726, 0.4650253653526306, 0.18073037266731262, 0.029476363211870193, -0.1994132548570633, -0.4520101547241211, -0.20943666994571686, -0.013930294662714005, 0.0920100212097168, -0.09755714237689972, -0.3627030551433563, -0.6268535852432251, -0.04943479225039482, 0.09246417880058289, 0.04649205878376961, 0.08684536069631577, 0.07008589059114456, -0.17430447041988373, 0.1262967437505722, 0.0648907944560051, -0.1463150531053543, -0.13924936950206757, 0.12885485589504242, -0.06379877030849457, -0.11443938314914703, -0.25293710827827454, 0.0870981514453888, -0.09723006188869476, -0.022104445844888687, -0.06927555799484253, -0.4163517355918884, -0.49807918071746826, 0.18607769906520844, 0.12020473182201385, 0.3934655785560608, -0.30545663833618164, 0.3518295884132385, 0.22900031507015228, 0.19614923000335693, -0.07248492538928986, -0.3492935299873352, 0.2188253104686737, 0.11768543720245361, 0.21085390448570251, 0.31401240825653076, 0.3968404233455658, -0.1700616031885147, 0.6948564052581787, 0.1315305233001709, -0.17439638078212738, -0.08181396126747131, -0.18463414907455444, 0.02651863917708397, -0.07165681570768356, 0.02526947669684887, 0.28924673795700073, -0.12184971570968628, -0.3842007517814636, 0.2331877499818802, -0.1758999228477478, -0.04469343274831772, -0.18192656338214874, 0.3031354546546936, 0.04550065100193024, -0.023568378761410713, -0.017659706994891167, -0.1874292492866516, 0.062108561396598816, 0.06367623805999756, -0.03822490945458412, -0.16917084157466888, -0.19289445877075195, 0.006161380559206009, 0.34943467378616333, 0.002803601324558258, 0.20179860293865204, -0.23703821003437042, 0.06796254217624664, -0.3249555826187134, 0.32468414306640625, 0.3511459231376648, 0.616111159324646, 0.12353876233100891, 0.006403569132089615, 0.12947866320610046, 0.045251693576574326, 0.16851820051670074, 0.015866482630372047, 0.202544704079628, 0.19418956339359283, -0.1533944010734558, -0.10331551730632782, -0.27947381138801575, -0.055624909698963165, 0.1073630228638649, -0.014490026980638504, 0.20647209882736206, -0.3730701804161072, -0.16325286030769348, 0.2161456048488617, 0.13574589788913727, -0.1004921942949295, -0.33303117752075195, -0.08526614308357239, -0.017190048471093178, -0.03294273465871811, -0.28790542483329773, -0.22014710307121277, -0.003518687793985009, -0.17048758268356323, 0.3609251379966736, -0.009871145710349083, -0.15480655431747437, -0.04507365822792053, 0.12206533551216125, 0.14888450503349304, -0.28252145648002625, 0.30649563670158386, 0.28185343742370605, 0.10912109911441803, 0.4292040169239044, 0.241003155708313, -0.07917176187038422, -0.20654118061065674, 0.06244794279336929, -0.008029959164559841, 0.38697102665901184, 0.3669581115245819, 0.10100597143173218, -0.04046144336462021, -0.19147484004497528, -0.18607093393802643, -0.359900563955307, 0.1049329861998558, 0.31456050276756287, -0.07839656621217728, -0.0809592455625534, -0.37498581409454346, 0.647111177444458, 0.188934326171875, -0.28201547265052795, 0.43496692180633545, -0.2932124137878418, -0.24159376323223114, 0.016749078407883644, 0.11471995711326599, 0.9402293562889099, 0.10115304589271545, 0.1793758124113083, 0.4074019491672516, -0.25691235065460205, 0.27772775292396545, 0.20907969772815704, 0.09308357536792755, -0.5795199275016785, 0.036909688264131546, 0.0066170040518045425, -0.18128736317157745, 0.2285747230052948, -0.10842593014240265, -0.14125189185142517, 0.32312050461769104, 0.06759428977966309, 0.3446710705757141, 0.299643874168396, 0.3267155885696411, -0.13545982539653778, 0.03873372822999954, -0.1763433963060379, 0.014816392213106155, -0.16323523223400116, 0.33159926533699036, -0.2451389729976654, 0.020707126706838608, -0.20245084166526794, -0.0634017214179039, -0.2631097435951233, -0.20407146215438843, -0.14579340815544128, 0.02935960702598095, 0.058055758476257324, -0.17235912382602692, -0.003578241914510727, 0.2685662806034088, 0.18531207740306854, -0.283544659614563, -0.11798505485057831, 0.06572866439819336, -0.147835373878479, 0.12417303770780563, 0.3541329503059387, 0.09129992872476578, 0.3243591785430908, -0.3461555242538452, -0.04170382767915726, 0.07845716178417206, -0.3147275149822235, -0.11034642159938812, -0.16823726892471313, -0.1697041392326355, 0.17790275812149048, -0.35208621621131897, -0.2943040430545807, -0.14130601286888123, 0.02850206568837166, -0.05287918448448181, -0.021204713732004166, 0.2687149941921234, -0.24451075494289398, -0.011231496930122375, -0.13838443160057068, -0.2438732087612152, 0.014475938864052296, 0.44725748896598816, 0.03498447686433792, -0.10985352843999863, 0.6268348693847656, -0.2000742405653, 0.07830147445201874, -0.0809646025300026, 0.04233253002166748, -0.030404869467020035, -0.1384970247745514, 0.07945248484611511, -0.06528637558221817, -0.3092535436153412, 0.03099903091788292, 0.6317123174667358, 0.4538193941116333, -0.02220074087381363, -0.01844104193150997, -0.4137722849845886, -0.46844571828842163, 0.06022953242063522, -0.13376954197883606, 0.15528985857963562, -0.1445983201265335, 0.1882128268480301, 0.10624825954437256, -0.046161264181137085, -0.14839476346969604, -0.1558258980512619, 0.1758187860250473, 0.22977730631828308, -0.18760856986045837, 0.047078561037778854, -0.020071880891919136, 0.0423387810587883, -0.06394955515861511, -0.004503484815359116, -0.3734777569770813, -0.00042914971709251404, -0.06305205076932907, 0.24354547262191772, 0.10599260777235031, -0.10039079934358597, 0.10395491868257523, -0.19135862588882446, -0.013094920665025711, 0.252970814704895, -0.04260389134287834, 0.0964035764336586, -0.0803559273481369, 0.10699315369129181, 0.3446800708770752, 0.15481984615325928, -0.008971469476819038, 0.3556573688983917, 0.08667533099651337, 0.3026212453842163, -0.07837726920843124, 0.3181913197040558, -0.2581304609775543, 0.07906083762645721, 0.18990539014339447, 0.15776807069778442, -0.017042651772499084, 0.20191439986228943, 0.11414900422096252, -0.17145666480064392, 0.14508704841136932, -0.043618373572826385, 0.40425533056259155, 0.8169978857040405, -0.23315931856632233, -0.20942068099975586, 0.3954937756061554, -0.006464900448918343, -0.2016219049692154, 0.04672794044017792, 0.2742975354194641, 0.1663995087146759, -0.024561090394854546, 0.3101135790348053, 0.09837226569652557, -0.01652573049068451, 0.138992041349411, 0.200303852558136, 0.17520679533481598, -0.25456076860427856, -0.014316093176603317, 0.4361821413040161, -0.19119319319725037, 0.23482555150985718, 0.39259836077690125, 0.10050858557224274, 0.19480399787425995, 0.0943353921175003, 0.08113153278827667, 0.5245572924613953, 0.12521110475063324, 0.10351619124412537, 0.17616063356399536, -0.013916023075580597, 0.026047440245747566, 0.401174396276474, -0.003562815487384796, -0.046084195375442505, 0.40405789017677307, 0.6079492568969727, -0.3851247727870941, -0.20143261551856995, -0.29688188433647156, -0.1906677931547165, 0.05135670304298401, -0.13128718733787537, -0.2509274184703827, -0.021365664899349213, -0.1806858777999878, -0.0604485347867012, -0.24239689111709595, -0.28716766834259033, 0.23147518932819366, -0.004475049674510956, -0.2735227942466736, -0.2810952067375183, -0.3688082993030548, 0.13310915231704712, -0.029770933091640472, -0.24174106121063232, 0.28902706503868103, -0.010914497077465057, 0.04701481759548187, 0.39378565549850464, 0.2517335116863251, 0.4028509855270386, 0.13960032165050507, -0.35749900341033936, -0.28657183051109314, -0.206185445189476, 0.057633914053440094, 0.045156680047512054, 0.348594069480896, -0.003062725067138672, -0.1303938925266266, 0.4741203188896179, 0.029031848534941673, 0.10622137784957886, 0.2274840921163559, 0.35508614778518677, -0.4659961462020874, -0.10022175312042236, 0.8348627090454102, -0.0832962766289711, -0.201238214969635, 0.04727897047996521, 0.1799413561820984, -0.20123764872550964, 0.04935765638947487, -0.06658005714416504, 0.008686551824212074, 0.16352662444114685, 0.14323145151138306, -0.0007181502878665924, -0.09857773780822754, 0.28865334391593933, 0.3661205768585205, 0.025453418493270874, -0.28435537219047546, -0.2156098634004593, -0.7466051578521729, 0.19427789747714996, -0.056634750217199326, -0.3099114000797272, -0.021590357646346092, -0.251383900642395, 0.23229756951332092, 0.06198068708181381, -0.17731694877147675, 0.18057461082935333, 0.09645968675613403, 0.10784187912940979, -0.19800546765327454, -0.2759745717048645, -0.2155531793832779, 0.02278248779475689, -0.10384798049926758, -0.42492014169692993, 0.11889958381652832, -0.3571051061153412, -0.15924258530139923, 0.0888785719871521, 0.01766173541545868, 0.4647810459136963, 0.005589492619037628, 0.2521136999130249, -0.08387384563684464, 0.7441819906234741, 0.2783363163471222, -0.06739980727434158, -0.16776934266090393, 0.12654702365398407, -0.1436953991651535, 0.17403095960617065, -0.12162181735038757, 0.08444052189588547, -0.18292006850242615, 0.5333905220031738, -0.41235417127609253, 0.4977741837501526, -0.1279708743095398, 0.06901796162128448, -0.3403318226337433, 0.05988234281539917, -0.26378950476646423, 0.03139094263315201, 0.30836600065231323, 0.19540086388587952, -0.03780302405357361, 0.30247506499290466, -0.22645705938339233, -0.12371477484703064, 0.45786604285240173, -0.17120195925235748, -0.03230828419327736, 0.08505870401859283, 0.25519782304763794, 0.05695432797074318, -0.14033189415931702, -0.48256704211235046, 0.18956688046455383, 0.2474294751882553, -0.09605912864208221, 0.12113304436206818, 0.16393142938613892, 0.25603336095809937, 0.014002922922372818, -0.0236371923238039, 1.0229688882827759, -0.11149557679891586, 0.08293752372264862, -0.14923888444900513, -0.2332780361175537 ]
https://github.com/huggingface/datasets/issues/161
Discussion on version identifier & MockDataLoaderManager for test data
> The script loading seems to work fine so I'll work on getting a PR open after a few sanity checks on the data. > > On version, we currently have it versioned with YYYY.MM.DD scheme so it would be nice to not change that, but will it cause issues? It would cause issues for sure for the tests....not sure if it would also cause issues otherwise. I would prefer to keep the same version style as we have for other models. You could for example simply add version 1.0.0 and add a comment with the date you currently use for the versioning. What is your opinion regarding the version here @lhoestq @mariamabarham @thomwolf ?
Hi, I'm working on adding a dataset and ran into an error due to `download` not being defined on `MockDataLoaderManager`, but being defined in `nlp/utils/download_manager.py`. The readme step running this: `RUN_SLOW=1 pytest tests/test_dataset_common.py::DatasetTest::test_load_real_dataset_localmydatasetname` triggers the error. If I can get something to work, I can include it in my data PR once I'm done.
115
Discussion on version identifier & MockDataLoaderManager for test data Hi, I'm working on adding a dataset and ran into an error due to `download` not being defined on `MockDataLoaderManager`, but being defined in `nlp/utils/download_manager.py`. The readme step running this: `RUN_SLOW=1 pytest tests/test_dataset_common.py::DatasetTest::test_load_real_dataset_localmydatasetname` triggers the error. If I can get something to work, I can include it in my data PR once I'm done. > The script loading seems to work fine so I'll work on getting a PR open after a few sanity checks on the data. > > On version, we currently have it versioned with YYYY.MM.DD scheme so it would be nice to not change that, but will it cause issues? It would cause issues for sure for the tests....not sure if it would also cause issues otherwise. I would prefer to keep the same version style as we have for other models. You could for example simply add version 1.0.0 and add a comment with the date you currently use for the versioning. What is your opinion regarding the version here @lhoestq @mariamabarham @thomwolf ?
[ -0.07840634882450104, 0.21769854426383972, -0.00799507275223732, -0.21871726214885712, -0.016749802976846695, -0.15013831853866577, 0.45485711097717285, 0.3005523085594177, 0.017230670899152756, 0.06836644560098648, 0.24650847911834717, 0.07947694510221481, -0.3443650007247925, 0.09023864567279816, 0.061992619186639786, 0.004057135432958603, 0.11398068815469742, 0.08718740940093994, -0.06386049091815948, 0.15320910513401031, -0.23856981098651886, -0.04668720066547394, 0.058539628982543945, 0.18519827723503113, 0.010335104539990425, 0.11389563977718353, -0.24757243692874908, 0.08724641799926758, -0.41373851895332336, -0.8389002084732056, 0.3315029442310333, 0.16535523533821106, 0.38253939151763916, 0.4212985932826996, -0.0001269610074814409, -0.09459573030471802, 0.6248884797096252, -0.02055431716144085, -0.6024019122123718, -0.16927890479564667, 0.36522361636161804, -0.31120291352272034, 0.41104650497436523, 0.024780549108982086, 0.16198500990867615, -0.20271003246307373, 0.17064087092876434, 0.16206906735897064, 0.13131532073020935, 0.13343994319438934, 0.06785383820533752, 0.22151727974414825, 0.05243754759430885, -0.14496327936649323, -0.19909578561782837, 0.051970697939395905, -0.06580502539873123, 0.6167835593223572, 0.538267970085144, 0.17721439898014069, -0.02148100733757019, -0.0021332832984626293, 0.1414719969034195, 0.3280439078807831, 0.20711082220077515, -0.07337674498558044, 0.7348241806030273, 0.06136105954647064, -0.1309860646724701, 0.008156195282936096, 0.9527410268783569, -0.4113695025444031, -0.5182247161865234, 0.05566880851984024, 0.04883917421102524, -0.13101507723331451, 0.18289050459861755, -0.1695912629365921, -0.19738316535949707, 0.10677909851074219, -0.18128949403762817, -0.32025739550590515, -0.22140257060527802, 0.28122901916503906, -0.28125593066215515, 0.22530820965766907, 0.08337651938199997, 0.2423144280910492, -0.10925695300102234, -0.17242524027824402, 0.2602311968803406, -0.09966781735420227, -0.018706563860177994, 0.19757546484470367, 0.18214865028858185, -0.35913148522377014, -0.38905689120292664, -0.11087010055780411, 0.14589795470237732, -0.10912851989269257, -0.3968159854412079, -0.27656838297843933, -0.05124073103070259, 0.09083843231201172, 0.25132596492767334, 0.22492378950119019, 0.4186559319496155, 0.11730170994997025, 0.23796425759792328, 0.028204504400491714, 0.3856791853904724, 0.27554261684417725, -0.03827492147684097, -0.31103554368019104, 0.030387353152036667, 0.07220105826854706, 0.18404820561408997, -0.40609776973724365, 0.04705057293176651, -0.23230354487895966, -0.34174293279647827, -0.13881908357143402, -0.11908877640962601, 0.18631836771965027, -0.115929514169693, 0.0003320425748825073, -0.007226958870887756, 0.37839215993881226, -0.1264193058013916, -0.1867787390947342, -0.029238663613796234, -0.05743866786360741, -0.13046833872795105, -0.02033948339521885, 0.19088725745677948, 0.03255569934844971, 0.2897745370864868, -0.2891440987586975, -0.18417136371135712, 0.020451948046684265, -0.08764741569757462, 0.12490956485271454, -0.265238493680954, 0.26830774545669556, -0.40122705698013306, -0.015372829511761665, -0.07192361354827881, -0.3612964153289795, -0.1501757800579071, 0.28826895356178284, 0.07951919734477997, -0.4344100058078766, -0.015945618972182274, 0.05278342217206955, -0.4855263829231262, -0.012248221784830093, -0.02927102893590927, -0.05822489783167839, 0.14872446656227112, -0.32598787546157837, 0.04354049637913704, -0.42761552333831787, -0.32640114426612854, -0.12506099045276642, -0.20648106932640076, 0.2373208999633789, -0.37796473503112793, -0.2465779036283493, -0.21628840267658234, -0.32622408866882324, 0.05176347866654396, -0.20617219805717468, -0.09009330719709396, 0.034394025802612305, -0.1435723900794983, -0.24087363481521606, 0.5255959033966064, -0.6463608741760254, -0.28754204511642456, 0.5019090175628662, -0.2739059031009674, -0.27555009722709656, 0.25255250930786133, -0.02460230141878128, 0.15832342207431793, -0.5408319234848022, -0.15352244675159454, -0.10466650128364563, -0.03884047269821167, -0.1779833883047104, -0.33155372738838196, -0.42146816849708557, 0.2005831003189087, 0.33454373478889465, -0.14667867124080658, 0.10944342613220215, 0.09240757673978806, 0.07713986188173294, 0.503700852394104, 0.18341214954853058, 0.05109713226556778, -0.21777071058750153, 0.365632563829422, -0.23294930160045624, -0.07816841453313828, -0.014533156529068947, -0.720613956451416, 0.18981412053108215, -0.10229045897722244, 0.0957711935043335, 0.137086421251297, 0.005196873098611832, -0.43599602580070496, -0.023732027038931847, -0.013887736946344376, -0.26270371675491333, -0.08157552778720856, -0.06165149807929993, 0.05206852778792381, -0.02948554791510105, -0.01052296906709671, 0.02294887974858284, -0.2024056315422058, 0.22217722237110138, 0.08579210937023163, -0.002401934936642647, -0.09218454360961914, 0.04781772196292877, 0.15576107800006866, 0.293928325176239, 0.07502341270446777, -0.3025202751159668, -0.020341770723462105, 0.32047194242477417, 0.3806014657020569, 0.2452133148908615, 0.11209122836589813, 0.10057654231786728, 0.2997725307941437, 0.3446672856807709, 0.3244916498661041, 0.14844410121440887, -0.043833646923303604, -0.0966135784983635, -0.002045571804046631, 0.19905810058116913, 0.19930075109004974, -0.15083417296409607, -0.2492028772830963, -0.08457958698272705, 0.18606214225292206, 0.20408222079277039, -0.22944806516170502, -0.2984943091869354, -0.02239733561873436, 0.33672547340393066, 0.5842093229293823, 0.01033419743180275, 0.1890866458415985, -0.03598993271589279, -0.22549092769622803, -0.3813837170600891, -0.11914385110139847, 0.159171000123024, -0.15317410230636597, -0.17685866355895996, 0.03739089146256447, 0.2746083736419678, 0.6558877825737, -0.05080948397517204, 0.061693206429481506, 0.07968819886445999, -0.09127562493085861, -0.15820473432540894, 0.13297712802886963, 0.19518661499023438, 0.07974884659051895, 0.07448302954435349, 0.027014100924134254, -0.22329118847846985, 0.05466007441282272, 0.0741831362247467, 0.2964884340763092, 0.30123192071914673, -0.3033635914325714, -0.10878113657236099, -0.14369499683380127, -0.3550180494785309, -0.44845208525657654, -0.2716026306152344, -0.3612200617790222, -0.28391143679618835, -0.04440885782241821, 0.3055320978164673, -0.008049571886658669, 0.1616131216287613, -0.08846788108348846, 0.3513897657394409, -0.30625706911087036, -0.08021774888038635, 0.13091698288917542, -0.16871517896652222, -0.40213876962661743, -0.0075453054159879684, 0.16932828724384308, -0.14140714704990387, 0.3990311622619629, -0.07358185201883316, -0.3104704022407532, -0.07311921566724777, -0.41796889901161194, 0.07629513740539551, 0.13683363795280457, 0.5680724382400513, 0.4437895715236664, -0.015859194099903107, 0.455970823764801, 0.21411597728729248, 0.02653939463198185, -0.18789520859718323, -0.3747592866420746, -0.2456979900598526, 0.002452152082696557, 0.0622134804725647, -0.06288865953683853, -0.34115517139434814, -0.6747949123382568, 0.015952814370393753, 0.14174243807792664, 0.04154052957892418, 0.09176668524742126, 0.09137019515037537, -0.20751529932022095, 0.009894764982163906, -0.033491820096969604, -0.12606973946094513, -0.09700190275907516, 0.14260610938072205, -0.11859025061130524, -0.11486158519983292, -0.21240928769111633, 0.09414705634117126, 0.050038523972034454, -0.049713168293237686, -0.1521892547607422, -0.3812301754951477, -0.5387282371520996, 0.27524471282958984, 0.09593866765499115, 0.44321659207344055, -0.3750836253166199, 0.3168638050556183, 0.2574600279331207, 0.21060147881507874, -0.03055800125002861, -0.3124099671840668, 0.22272062301635742, 0.20246174931526184, 0.23872768878936768, 0.341622918844223, 0.42786797881126404, -0.1715601682662964, 0.6987609267234802, 0.26078927516937256, -0.21202360093593597, -0.23117220401763916, -0.0054812077432870865, -0.12855088710784912, -0.09365085512399673, 0.03923380374908447, 0.2602947950363159, -0.1145472526550293, -0.3659268617630005, 0.28301048278808594, -0.071855328977108, 0.0009106164798140526, -0.1715390533208847, 0.23263677954673767, 0.04826648533344269, -0.02584804967045784, -0.016991471871733665, -0.10419639945030212, 0.09018249064683914, 0.036169376224279404, -0.06196277588605881, -0.1635519564151764, -0.2494884729385376, 0.07056644558906555, 0.45116758346557617, -0.0071662962436676025, 0.23893842101097107, -0.14188559353351593, 0.14389055967330933, -0.32314854860305786, 0.2919078469276428, 0.36468955874443054, 0.5911158323287964, 0.2054836004972458, -0.06498809158802032, 0.1646292507648468, 0.0394926518201828, 0.16430619359016418, 0.06811779737472534, 0.2253870815038681, 0.08400373160839081, -0.23833294212818146, -0.08051186800003052, -0.3215267062187195, 0.001393340528011322, 0.04301351681351662, 0.06709766387939453, 0.2078154981136322, -0.3719227910041809, -0.22546394169330597, 0.1916743516921997, 0.11681482195854187, -0.14998002350330353, -0.3239276707172394, -0.045549821108579636, 0.1384335160255432, 0.07787811011075974, -0.3222941756248474, -0.3112128674983978, -0.09886190295219421, -0.23056091368198395, 0.3555454611778259, -0.003291882574558258, -0.15369591116905212, -0.0603078156709671, 0.17602145671844482, 0.12314082682132721, -0.3502575755119324, 0.3231484293937683, 0.3036525249481201, 0.1975914090871811, 0.41991397738456726, 0.11987747251987457, -0.12025202810764313, -0.10920165479183197, -0.03899127617478371, -0.09179140627384186, 0.3305355906486511, 0.4466272294521332, 0.029408298432826996, -0.07550699263811111, -0.15196524560451508, -0.21442203223705292, -0.3695791959762573, -0.030504999682307243, 0.28523218631744385, -0.049795884639024734, -0.06767595559358597, -0.3444424867630005, 0.654451847076416, 0.13295790553092957, -0.35399508476257324, 0.3894948661327362, -0.26032787561416626, -0.20492377877235413, 0.014468768611550331, 0.12303543835878372, 0.9271792769432068, 0.13575316965579987, 0.22614462673664093, 0.3561151921749115, -0.26288020610809326, 0.1910613626241684, 0.2073080688714981, -0.021173488348722458, -0.5951216816902161, 0.07956130802631378, -0.010455012321472168, -0.11937592923641205, 0.2597506642341614, -0.06818687170743942, -0.06725649535655975, 0.3064365088939667, 0.11517414450645447, 0.3037267327308655, 0.2747291028499603, 0.3166320323944092, -0.07457146048545837, 0.12467695772647858, -0.14576371014118195, -0.002733757719397545, -0.1987128108739853, 0.22155626118183136, -0.21738171577453613, -0.05912131816148758, -0.13456149399280548, -0.13533872365951538, -0.19719387590885162, -0.278855562210083, -0.14172983169555664, 0.0025868508964776993, 0.0993950366973877, -0.24224351346492767, 0.09887251257896423, 0.20783808827400208, 0.21243104338645935, -0.2769325077533722, -0.10583081841468811, -0.006890382617712021, -0.0941547378897667, 0.19183142483234406, 0.232604518532753, 0.11455320566892624, 0.41356751322746277, -0.3656519949436188, -0.029832936823368073, -0.002150692045688629, -0.30152395367622375, -0.07882006466388702, -0.2447599172592163, -0.22926951944828033, 0.20691923797130585, -0.34996268153190613, -0.2433493584394455, -0.071714848279953, 0.06095327064394951, -0.04963561147451401, -0.01658961921930313, 0.29876768589019775, -0.16764669120311737, 0.0024613142013549805, -0.06528261303901672, -0.14836619794368744, 0.0035221632570028305, 0.42368122935295105, 0.035341132432222366, -0.1286199539899826, 0.545073390007019, -0.17769326269626617, -0.012219101190567017, -0.06524517387151718, 0.042219460010528564, -0.056933946907520294, -0.2640593349933624, 0.024849822744727135, -0.08269383013248444, -0.25419896841049194, 0.026647349819540977, 0.6445193886756897, 0.5140346884727478, -0.08816168457269669, 0.008510533720254898, -0.3115549683570862, -0.4337587058544159, 0.11887995898723602, -0.14966154098510742, 0.12794040143489838, -0.20163550972938538, 0.19356273114681244, 0.08962848782539368, -0.08079428225755692, -0.16443055868148804, -0.1689244955778122, 0.28729039430618286, 0.16615474224090576, -0.20746664702892303, 0.05574981868267059, -0.05666743591427803, 0.0003575840964913368, -0.07731940597295761, -0.09144597500562668, -0.4320654571056366, -0.009923333302140236, -0.06818345934152603, 0.22385191917419434, 0.09701978415250778, -0.09937215596437454, 0.07501251995563507, -0.1820567548274994, 0.032962147146463394, 0.3337464928627014, -0.02927001193165779, 0.057745419442653656, 0.04087909311056137, 0.21472670137882233, 0.31241950392723083, 0.24340084195137024, -0.026758886873722076, 0.41367095708847046, 0.05288193002343178, 0.27785614132881165, -0.031203655526041985, 0.30528879165649414, -0.23807890713214874, 0.03763602674007416, 0.07074987888336182, 0.1923796385526657, -0.18816961348056793, 0.3230147957801819, 0.04429028555750847, -0.19937731325626373, 0.17659643292427063, 0.00823313556611538, 0.38792863488197327, 0.7847018837928772, -0.19644701480865479, -0.30094364285469055, 0.45363563299179077, 0.02780815027654171, -0.12452948093414307, 0.08317085355520248, 0.2623588442802429, 0.19259530305862427, -0.04848908632993698, 0.3369884192943573, 0.142313152551651, 0.03786291182041168, 0.10244525223970413, 0.23270487785339355, 0.11558380722999573, -0.3071412444114685, -0.014102963730692863, 0.48509642481803894, -0.1911146640777588, 0.25854960083961487, 0.42612919211387634, 0.2196158468723297, 0.04259476065635681, 0.017360281199216843, 0.08998799324035645, 0.4031561017036438, 0.2000465989112854, 0.04172305017709732, 0.21260830760002136, 0.07285220921039581, -0.05200691148638725, 0.3586243987083435, 0.010092414915561676, -0.07322867959737778, 0.4328913688659668, 0.6263275146484375, -0.24576999247074127, -0.2735122740268707, -0.265232115983963, -0.25732940435409546, 0.11760285496711731, -0.15073880553245544, -0.3253527879714966, -0.03138583526015282, -0.17232537269592285, -0.06642256677150726, -0.39282530546188354, -0.23233814537525177, 0.24641190469264984, 0.06092788279056549, -0.2492009550333023, -0.3521992564201355, -0.43777963519096375, 0.042292479425668716, 0.06692007184028625, -0.1486775428056717, 0.2484368234872818, 0.003967389464378357, 0.09395289421081543, 0.40526583790779114, 0.2469261884689331, 0.24045193195343018, 0.09698552638292313, -0.39798617362976074, -0.3323001563549042, -0.24257351458072662, 0.07602380216121674, 0.1692408174276352, 0.28834623098373413, 0.020296409726142883, -0.16908365488052368, 0.4392830729484558, 0.004951784387230873, 0.17242614924907684, 0.36718428134918213, 0.3042011260986328, -0.41587066650390625, -0.1131066232919693, 0.8669896125793457, -0.010363839566707611, -0.23294386267662048, 0.14805154502391815, 0.19929927587509155, -0.20762741565704346, 0.12630188465118408, -0.04110456258058548, 0.057940881699323654, 0.12840145826339722, 0.15669378638267517, 0.012644786387681961, -0.031988538801670074, 0.18832480907440186, 0.3991008996963501, -0.019539065659046173, -0.2369239628314972, -0.12392769008874893, -0.5654700994491577, 0.07696252316236496, 0.051340971142053604, -0.2140653431415558, -0.018772805109620094, -0.24497412145137787, 0.20464462041854858, 0.06571244448423386, -0.11546346545219421, 0.02215968444943428, -0.050806280225515366, 0.14864736795425415, -0.1791854202747345, -0.1962105929851532, -0.1313890516757965, 0.11998583376407623, -0.11988726258277893, -0.30400797724723816, 0.051378048956394196, -0.3177832365036011, -0.191252201795578, 0.018191644921898842, 0.04736606031656265, 0.4646494388580322, 0.038575347512960434, 0.1306619644165039, -0.06797109544277191, 0.5171781182289124, 0.3847467601299286, -0.17759056389331818, -0.13696573674678802, 0.10956768691539764, -0.12803277373313904, 0.1817881464958191, -0.1369919329881668, 0.15139272809028625, -0.12285508215427399, 0.4253533184528351, -0.33312785625457764, 0.41835832595825195, -0.2275635153055191, 0.00016358710126951337, -0.41708260774612427, 0.10477444529533386, -0.11555392295122147, -0.11772532761096954, 0.2918640375137329, 0.27572423219680786, -0.07171854376792908, 0.2615310847759247, -0.28110063076019287, -0.07436534762382507, 0.43028661608695984, -0.22998584806919098, 0.047566261142492294, 0.09626570343971252, 0.29810625314712524, 0.1159946620464325, -0.053856879472732544, -0.5310584902763367, 0.12829098105430603, 0.23650726675987244, -0.1469854712486267, 0.022672589868307114, 0.22228993475437164, 0.3116586208343506, -0.0690559446811676, -0.03913320600986481, 1.0794564485549927, -0.173514723777771, 0.11268387734889984, -0.1564428210258484, -0.1975005716085434 ]
https://github.com/huggingface/datasets/issues/161
Discussion on version identifier & MockDataLoaderManager for test data
Maybe use the YYYY.MM.DD as the config name ? That's what we are doing for wikipedia
Hi, I'm working on adding a dataset and ran into an error due to `download` not being defined on `MockDataLoaderManager`, but being defined in `nlp/utils/download_manager.py`. The readme step running this: `RUN_SLOW=1 pytest tests/test_dataset_common.py::DatasetTest::test_load_real_dataset_localmydatasetname` triggers the error. If I can get something to work, I can include it in my data PR once I'm done.
16
Discussion on version identifier & MockDataLoaderManager for test data Hi, I'm working on adding a dataset and ran into an error due to `download` not being defined on `MockDataLoaderManager`, but being defined in `nlp/utils/download_manager.py`. The readme step running this: `RUN_SLOW=1 pytest tests/test_dataset_common.py::DatasetTest::test_load_real_dataset_localmydatasetname` triggers the error. If I can get something to work, I can include it in my data PR once I'm done. Maybe use the YYYY.MM.DD as the config name ? That's what we are doing for wikipedia
[ -0.14118006825447083, 0.28056445717811584, -0.010229306295514107, -0.17343857884407043, 0.09962135553359985, -0.05622629448771477, 0.3951388895511627, 0.3567787706851959, 0.13251569867134094, 0.16330969333648682, 0.2544324994087219, 0.11689864844083786, -0.2636439800262451, -0.03229648619890213, 0.08826787024736404, -0.02258097380399704, 0.024319946765899658, 0.15399616956710815, -0.06924392282962799, 0.2538096308708191, -0.1577264666557312, 0.027643918991088867, -0.07621073722839355, 0.003468148410320282, -0.03206682577729225, 0.14956504106521606, -0.12435542047023773, -0.029232196509838104, -0.39765411615371704, -0.8835685849189758, 0.38515645265579224, 0.08030343055725098, 0.15719833970069885, 0.45871928334236145, -0.00012393014912959188, -0.09218376874923706, 0.6603643298149109, -0.0954592376947403, -0.7126166224479675, -0.110285684466362, 0.21409651637077332, -0.4431760609149933, 0.3148987591266632, -0.12270402908325195, 0.0747777596116066, -0.12571494281291962, 0.24232259392738342, 0.0029511451721191406, 0.04234404116868973, 0.27795878052711487, 0.1137094795703888, 0.20985451340675354, 0.1447015106678009, -0.20508554577827454, -0.06326291710138321, 0.07268164306879044, -0.12551917135715485, 0.5561838150024414, 0.2988160252571106, 0.08979529142379761, -0.011445052921772003, -0.0887279063463211, 0.0854254961013794, 0.47456496953964233, 0.20247656106948853, -0.025698035955429077, 0.5517067909240723, 0.010823844000697136, -0.16354912519454956, -0.0021505579352378845, 0.9606096744537354, -0.5900260806083679, -0.285666823387146, 0.05598234385251999, 0.06181511655449867, -0.04415752738714218, 0.22932541370391846, -0.19335834681987762, -0.37108850479125977, 0.005593013018369675, -0.11386461555957794, -0.34605860710144043, -0.13907557725906372, 0.386338472366333, -0.2816333770751953, 0.3920339047908783, 0.12043473869562149, 0.2018033266067505, 0.02966637723147869, -0.12271095812320709, 0.17662951350212097, -0.03735434263944626, 0.05294151231646538, 0.2122679054737091, 0.053161900490522385, -0.2913705110549927, -0.36121809482574463, -0.23290053009986877, 0.11769267171621323, -0.07169964164495468, -0.5114037990570068, -0.21405282616615295, 0.06013563647866249, 0.2136068344116211, 0.11943760514259338, 0.2886677384376526, 0.3164392113685608, 0.26326650381088257, 0.26908695697784424, 0.1591009497642517, 0.23070403933525085, 0.22681665420532227, -0.0012357804225757718, -0.39059728384017944, 0.007877178490161896, 0.04351751506328583, 0.23724429309368134, -0.2792247235774994, -0.0018142610788345337, -0.22336608171463013, -0.35482579469680786, -0.037689417600631714, -0.15496262907981873, 0.2712012827396393, -0.21224364638328552, -0.21905940771102905, 0.03549127280712128, 0.36694347858428955, -0.19033707678318024, -0.08297465741634369, -0.030062368139624596, 0.10269178450107574, -0.209467351436615, 0.0413396880030632, 0.2736007273197174, 0.11987380683422089, 0.3815639913082123, -0.22116556763648987, -0.17527322471141815, -0.06266392767429352, 0.04889009892940521, 0.16503912210464478, -0.25845521688461304, 0.3138110339641571, -0.17548024654388428, 0.09148234128952026, 0.075702004134655, -0.39867955446243286, -0.26067471504211426, 0.19058048725128174, 0.08797743916511536, -0.3984543979167938, -0.07537155598402023, 0.09867943078279495, -0.5322721600532532, -0.04728265106678009, 0.03677985817193985, -0.10876603424549103, 0.16949845850467682, -0.4394993782043457, 0.03998132795095444, -0.32962024211883545, -0.32755374908447266, -0.12069302052259445, -0.0447751060128212, 0.22451484203338623, -0.33446288108825684, -0.34485411643981934, -0.399601012468338, -0.2620832622051239, 0.19108599424362183, -0.2722567617893219, -0.0516154021024704, 0.17989271879196167, -0.3446758985519409, -0.09361140429973602, 0.5451645255088806, -0.5609609484672546, -0.3666338324546814, 0.41032493114471436, -0.39714258909225464, -0.3093580901622772, 0.21600031852722168, -0.0019485477823764086, 0.07213973999023438, -0.2954329550266266, -0.13503022491931915, 0.026698559522628784, 0.054789796471595764, -0.1295776069164276, -0.1770811676979065, -0.3129168748855591, 0.1571342945098877, 0.24047575891017914, -0.05776726081967354, 0.12762756645679474, 0.17676839232444763, 0.2212318629026413, 0.3395686447620392, 0.12165799736976624, 0.19460846483707428, -0.08480048924684525, 0.20399148762226105, -0.17558152973651886, -0.073508121073246, -0.09873498231172562, -0.6286861300468445, 0.2173956036567688, -0.04047861322760582, 0.28845030069351196, -0.0710286945104599, -0.051276274025440216, -0.6030596494674683, -0.02818612940609455, 0.007145106792449951, -0.2543843984603882, 0.0009687803685665131, 0.21090354025363922, 0.12575170397758484, 0.07182289659976959, 0.0874277800321579, -0.05625338852405548, -0.20948603749275208, 0.189957857131958, -0.03993592411279678, -0.016076918691396713, -0.11674559861421585, 0.11367645114660263, 0.12232358753681183, 0.20108309388160706, 0.032386161386966705, -0.2665897309780121, -0.01139955036342144, 0.18859508633613586, 0.301737517118454, 0.26696550846099854, 0.20126500725746155, -0.028640776872634888, 0.18482060730457306, 0.14330701529979706, 0.23561590909957886, 0.319094717502594, 0.07314908504486084, -0.2795492112636566, 0.0007638409733772278, 0.13875527679920197, 0.21099136769771576, 0.003671810030937195, -0.22517824172973633, -0.008010409772396088, 0.33418285846710205, 0.1293625682592392, -0.1294441968202591, -0.33182862401008606, 0.09353764355182648, 0.3465368449687958, 0.5930162668228149, -0.03065658174455166, 0.31874915957450867, -0.17704862356185913, -0.19611379504203796, -0.33191612362861633, 0.010571911931037903, 0.14727705717086792, -0.14844325184822083, -0.13274526596069336, 0.004782125353813171, 0.2607826292514801, 0.7473015189170837, -0.017133820801973343, 0.2102443277835846, 0.08281262964010239, -0.1943521499633789, -0.18114572763442993, 0.19616259634494781, 0.14606830477714539, 0.058495983481407166, 0.1173257827758789, 0.008354131132364273, -0.35019436478614807, -0.04217151552438736, -0.010637594386935234, 0.4616480767726898, 0.4212017059326172, -0.3261995017528534, -0.12541909515857697, -0.20866425335407257, -0.41110923886299133, -0.45044609904289246, -0.4019869863986969, -0.3150031268596649, -0.354233056306839, -0.10665430128574371, 0.2702241539955139, 0.08679567277431488, 0.2829832136631012, -0.2247169017791748, 0.30379289388656616, -0.2569122016429901, -0.35868918895721436, 0.07040292024612427, -0.292202353477478, -0.3351592421531677, 0.011352084577083588, 0.2335166186094284, 0.0032289987429976463, 0.4592934548854828, -0.12466807663440704, -0.3249698877334595, -0.2268049269914627, -0.3663180470466614, 0.10803449898958206, 0.0643458366394043, 0.5244492292404175, 0.4165664315223694, 0.04030102863907814, 0.47716808319091797, 0.049093618988990784, 0.034976568073034286, -0.18719035387039185, -0.42409491539001465, -0.23610329627990723, -0.012633750215172768, 0.17698760330677032, -0.0927201360464096, -0.3785630464553833, -0.5373608469963074, -0.10313227772712708, 0.08804379403591156, 0.06720142066478729, 0.006694108247756958, 0.15287800133228302, -0.10761302709579468, 0.15140758454799652, 0.10712601244449615, -0.055706605315208435, -0.13396601378917694, 0.1255905032157898, 0.020721103996038437, -0.16886843740940094, -0.10974104702472687, 0.10617460310459137, -0.1115938052535057, 0.03736930340528488, -0.13643194735050201, -0.4577692747116089, -0.4050002098083496, 0.10826672613620758, 0.1651177704334259, 0.4095953404903412, -0.25271257758140564, 0.2943413257598877, 0.23262007534503937, 0.14786013960838318, -0.0971042737364769, -0.38558483123779297, 0.18258598446846008, 0.03584759682416916, 0.2548632323741913, 0.2382114827632904, 0.42762523889541626, -0.1880529522895813, 0.8638378977775574, 0.12577711045742035, -0.09333495795726776, -0.06046329438686371, -0.22055961191654205, 0.0037179552018642426, -0.05920978635549545, -0.04446539282798767, 0.3229122459888458, -0.11662101745605469, -0.3214454650878906, 0.2759302854537964, -0.204630047082901, -0.1540331244468689, -0.13479125499725342, 0.28695493936538696, -0.006108712404966354, -0.06751150637865067, -0.04466496407985687, -0.14884799718856812, 0.04530665650963783, 0.05406346544623375, -0.04950279742479324, -0.22893060743808746, -0.25206318497657776, 0.046961620450019836, 0.3166661262512207, -0.15776345133781433, 0.18858595192432404, -0.24663057923316956, 0.03164345771074295, -0.4474695324897766, 0.2941858768463135, 0.3331857919692993, 0.5381495952606201, 0.10278944671154022, -0.015301298350095749, 0.11337992548942566, 0.10491450875997543, 0.20852747559547424, -0.017759272828698158, 0.13445265591144562, 0.24128994345664978, -0.09606434404850006, -0.12461681663990021, -0.25974902510643005, -0.008719965815544128, 0.18970295786857605, -0.0042955391108989716, 0.1342667043209076, -0.4184401035308838, -0.07045531272888184, 0.26349586248397827, 0.1959719955921173, -0.09762376546859741, -0.3244099020957947, -0.08676193654537201, -0.028297176584601402, -0.08012963086366653, -0.2394554316997528, -0.16850006580352783, 0.10118211060762405, -0.07583668828010559, 0.36228281259536743, 0.03684858977794647, -0.06702498346567154, -0.08236566185951233, 0.15544453263282776, 0.14671248197555542, -0.2071242481470108, 0.26483210921287537, 0.22875133156776428, 0.027473216876387596, 0.34026455879211426, 0.24137194454669952, -0.11826848983764648, -0.2586962878704071, -0.04757855832576752, 0.007216735742986202, 0.3554093539714813, 0.23109477758407593, 0.18838465213775635, -0.019396260380744934, -0.160112664103508, -0.1480422019958496, -0.34913814067840576, 0.19839349389076233, 0.32603785395622253, -0.094544917345047, -0.0815766453742981, -0.37446677684783936, 0.6699290871620178, 0.21066728234291077, -0.22166132926940918, 0.5757383108139038, -0.215881809592247, -0.361310213804245, -0.020962998270988464, 0.09729304909706116, 0.9390994906425476, 0.12304720282554626, 0.221845805644989, 0.3271256983280182, -0.20360581576824188, 0.40682440996170044, 0.11397682130336761, 0.16315202414989471, -0.5522786974906921, 0.03559020161628723, 0.041692040860652924, -0.1807750165462494, 0.1868131458759308, -0.12864047288894653, -0.27663373947143555, 0.345825731754303, 0.0909401923418045, 0.3162333369255066, 0.2804931402206421, 0.37360355257987976, -0.06282579898834229, -0.04738692566752434, -0.16777752339839935, 0.0675244927406311, -0.17312805354595184, 0.3932381272315979, -0.25016355514526367, 0.09912233799695969, -0.19187749922275543, -0.038452718406915665, -0.3120805323123932, -0.19377532601356506, -0.12246131896972656, 0.12016171216964722, 0.05442043021321297, -0.1686798334121704, -0.02505173534154892, 0.22702442109584808, 0.12529310584068298, -0.16949187219142914, -0.1770971417427063, 0.14197909832000732, -0.18136075139045715, 0.06414910405874252, 0.3031471073627472, 0.05139298737049103, 0.3021059036254883, -0.3474114239215851, -0.09088575839996338, 0.12196435034275055, -0.2841305434703827, -0.20523519814014435, -0.1263771653175354, -0.17083734273910522, 0.08427321165800095, -0.3267590403556824, -0.28286048769950867, -0.1330208033323288, 0.04689697548747063, -0.1448683887720108, 0.02616165392100811, 0.22552117705345154, -0.31772446632385254, 0.0012354180216789246, -0.03404888138175011, -0.3448725640773773, 0.01830541342496872, 0.44678646326065063, -0.08538597077131271, -0.07896167039871216, 0.7237138748168945, -0.16906145215034485, 0.038177020847797394, -0.11864369362592697, 0.023046836256980896, -0.18729367852210999, -0.15366345643997192, 0.04960145428776741, -0.0515938401222229, -0.27292871475219727, 0.010612094774842262, 0.5785098075866699, 0.44087934494018555, 0.045046303421258926, -0.020725855603814125, -0.4588910639286041, -0.41634058952331543, 0.0077952370047569275, -0.18109813332557678, 0.20086145401000977, -0.08203095197677612, 0.18932223320007324, 0.15709975361824036, 0.01595420017838478, -0.18746811151504517, -0.16336162388324738, 0.04029552638530731, 0.243601992726326, -0.13371022045612335, 0.022527258843183517, -0.07007334381341934, 0.08745656907558441, 0.0018110666424036026, -0.08830509334802628, -0.28574293851852417, -0.05251765996217728, -0.13653482496738434, 0.22036169469356537, 0.06873522698879242, -0.0029467493295669556, 0.0809546560049057, -0.19381679594516754, -0.005587639287114143, 0.16855373978614807, -0.055145420134067535, 0.10774029046297073, -0.09697440266609192, 0.1997777670621872, 0.3339998126029968, 0.0480228066444397, -0.019416041672229767, 0.29507192969322205, 0.11993806064128876, 0.2520242929458618, -0.04795164614915848, 0.33785974979400635, -0.1911027431488037, 0.06257548928260803, 0.17886389791965485, 0.2028529942035675, -0.08617867529392242, 0.1728702187538147, 0.08450321853160858, -0.109133780002594, 0.1038738489151001, 0.045502860099077225, 0.3643862009048462, 0.7686906456947327, -0.2697172462940216, -0.14736351370811462, 0.43366560339927673, 0.04313823580741882, -0.2070348560810089, -0.06151537597179413, 0.3559981882572174, 0.09675034880638123, 0.05956535413861275, 0.24292314052581787, -0.00348619744181633, -0.019757457077503204, 0.15557146072387695, 0.16882416605949402, 0.0833289846777916, -0.22388042509555817, -0.01418236456811428, 0.3811245858669281, -0.20433016121387482, 0.16130271553993225, 0.36529356241226196, 0.12268379330635071, 0.2558840215206146, 0.11702332645654678, 0.1278586983680725, 0.49282339215278625, 0.06652884930372238, 0.034911103546619415, 0.07122984528541565, 0.07629604637622833, 0.06142037361860275, 0.26965707540512085, -0.09182710945606232, -0.021174810826778412, 0.37101054191589355, 0.5512714385986328, -0.34624558687210083, -0.13162805140018463, -0.2795209288597107, -0.14258719980716705, 0.0464557446539402, -0.18091310560703278, -0.2402537614107132, 0.013754792511463165, -0.13747724890708923, -0.11026769876480103, -0.15492655336856842, -0.35871732234954834, 0.2438012659549713, 0.0083514004945755, -0.36951732635498047, -0.3090161681175232, -0.21209585666656494, 0.17734548449516296, -0.006553441286087036, -0.3145362436771393, 0.18164880573749542, -0.06015799939632416, 0.009301755577325821, 0.2860337495803833, 0.2964823842048645, 0.45625028014183044, 0.08334676921367645, -0.4143466353416443, -0.25419530272483826, -0.18059158325195312, 0.06383585929870605, -0.027550898492336273, 0.3468855619430542, 0.037009015679359436, -0.19906044006347656, 0.49579229950904846, 0.0606258362531662, 0.035857025533914566, 0.13405032455921173, 0.44267988204956055, -0.5077697038650513, -0.12595993280410767, 0.657025158405304, -0.06691063195466995, -0.17114895582199097, -0.014400623738765717, 0.2682856619358063, -0.3131232261657715, 0.09172514826059341, -0.0007790625095367432, -0.04264175519347191, 0.1423482894897461, 0.07496286928653717, 0.025010231882333755, -0.17087174952030182, 0.4039268493652344, 0.3193945288658142, 0.019597593694925308, -0.26244688034057617, -0.25915491580963135, -0.738479733467102, 0.19107268750667572, -0.11629627645015717, -0.342627614736557, -0.07228420674800873, -0.19995814561843872, 0.2421925663948059, 0.04681176319718361, -0.1436447948217392, 0.10192525386810303, 0.029758404940366745, 0.14397820830345154, -0.1850316822528839, -0.31219395995140076, -0.2006993442773819, -0.022073926404118538, -0.06889442354440689, -0.4064728915691376, 0.11685787886381149, -0.36691638827323914, -0.09841719269752502, 0.07443875074386597, 0.002645149827003479, 0.5323453545570374, 0.07270441949367523, 0.2942677140235901, -0.10212358832359314, 0.8140288591384888, 0.17402353882789612, -0.0489032119512558, -0.1733035445213318, 0.11475551128387451, -0.1063157469034195, 0.16286879777908325, -0.12736421823501587, 0.11199085414409637, -0.20888234674930573, 0.48685649037361145, -0.3890766203403473, 0.6018157601356506, -0.01786068081855774, 0.08193905651569366, -0.2825648784637451, 0.011468946933746338, -0.25492286682128906, 0.08918777108192444, 0.29561352729797363, 0.19525986909866333, -0.07665413618087769, 0.3548053801059723, -0.15306319296360016, -0.25798770785331726, 0.4175686836242676, -0.16063258051872253, -0.11916546523571014, 0.03131861239671707, 0.22146040201187134, -0.012548834085464478, -0.09062913805246353, -0.4313509166240692, 0.19755932688713074, 0.3064982295036316, -0.06527028977870941, 0.0352904386818409, 0.19647474586963654, 0.22549006342887878, 0.09795303642749786, -0.005873862653970718, 0.9912315607070923, -0.10930544883012772, 0.11685255169868469, -0.16476796567440033, -0.2565418779850006 ]
https://github.com/huggingface/datasets/issues/161
Discussion on version identifier & MockDataLoaderManager for test data
> Maybe use the YYYY.MM.DD as the config name ? That's what we are doing for wikipedia I'm not sure if this will work because the name should be unique and it seems that he has multiple config name in his data with the same version. As @patrickvonplaten suggested, I think you can add a comment about the version in the data description.
Hi, I'm working on adding a dataset and ran into an error due to `download` not being defined on `MockDataLoaderManager`, but being defined in `nlp/utils/download_manager.py`. The readme step running this: `RUN_SLOW=1 pytest tests/test_dataset_common.py::DatasetTest::test_load_real_dataset_localmydatasetname` triggers the error. If I can get something to work, I can include it in my data PR once I'm done.
63
Discussion on version identifier & MockDataLoaderManager for test data Hi, I'm working on adding a dataset and ran into an error due to `download` not being defined on `MockDataLoaderManager`, but being defined in `nlp/utils/download_manager.py`. The readme step running this: `RUN_SLOW=1 pytest tests/test_dataset_common.py::DatasetTest::test_load_real_dataset_localmydatasetname` triggers the error. If I can get something to work, I can include it in my data PR once I'm done. > Maybe use the YYYY.MM.DD as the config name ? That's what we are doing for wikipedia I'm not sure if this will work because the name should be unique and it seems that he has multiple config name in his data with the same version. As @patrickvonplaten suggested, I think you can add a comment about the version in the data description.
[ -0.08671994507312775, 0.2737460136413574, 0.011248942464590073, -0.14076058566570282, 0.06271130591630936, -0.048166707158088684, 0.3938750624656677, 0.38049083948135376, 0.0893346518278122, 0.2072923481464386, 0.25848445296287537, 0.1472848802804947, -0.23994101583957672, -0.015442742966115475, 0.04751235246658325, -0.00676504522562027, -0.058515287935733795, 0.21216963231563568, -0.029032625257968903, 0.273831307888031, -0.08489875495433807, -0.01112428866326809, 0.07523132860660553, 0.09017875790596008, -0.04472079500555992, 0.11217649281024933, -0.12271835654973984, -0.0627688616514206, -0.26378586888313293, -0.9248582124710083, 0.3450056314468384, 0.1243724375963211, 0.14242519438266754, 0.5053979754447937, -0.00012234803580213338, -0.053186409175395966, 0.6260419487953186, -0.10737171769142151, -0.6992911696434021, -0.15020211040973663, 0.23082545399665833, -0.4619852602481842, 0.2858993411064148, -0.184825599193573, 0.0345437154173851, -0.13203294575214386, 0.23104530572891235, 0.05033855140209198, 0.0913202241063118, 0.14613565802574158, 0.10933603346347809, 0.14259812235832214, 0.11537979543209076, -0.16234883666038513, -0.101497121155262, 0.027807142585515976, -0.09675875306129456, 0.5679476261138916, 0.25440534949302673, 0.13260479271411896, 0.01634712517261505, -0.010725966654717922, 0.06912679970264435, 0.4541424512863159, 0.1308862417936325, -0.055091679096221924, 0.526400089263916, 0.05460211634635925, -0.12745746970176697, 0.1345890760421753, 0.9771102666854858, -0.59419184923172, -0.3401079773902893, 0.009946055710315704, 0.1404201239347458, -0.00339345820248127, 0.24677744507789612, -0.17631356418132782, -0.3652086555957794, 0.008559219539165497, -0.09733173996210098, -0.29024916887283325, -0.19435900449752808, 0.347572386264801, -0.2534492611885071, 0.4243468642234802, 0.13284403085708618, 0.2170555293560028, -0.050475236028432846, -0.23413051664829254, 0.14442478120326996, -0.047586411237716675, 0.06462299078702927, 0.12047534435987473, 0.06505228579044342, -0.3192993402481079, -0.4705289602279663, -0.3281731903553009, 0.11238033324480057, -0.17740778625011444, -0.40035590529441833, -0.241104394197464, 0.065707728266716, 0.2026883065700531, 0.12156498432159424, 0.19925379753112793, 0.38518837094306946, 0.2224496752023697, 0.25394243001937866, 0.14471592009067535, 0.17460249364376068, 0.2078220546245575, 0.023900926113128662, -0.4101083278656006, 0.002596452832221985, 0.03073359653353691, 0.28490954637527466, -0.29734015464782715, 0.017244311049580574, -0.12513434886932373, -0.363138347864151, -0.0263325534760952, -0.21659769117832184, 0.3584255874156952, -0.25124749541282654, -0.22439923882484436, 0.0818876177072525, 0.30145078897476196, -0.10217835754156113, -0.07199298590421677, -0.02329477295279503, 0.02457514964044094, -0.124624103307724, 0.11025341600179672, 0.2417031079530716, 0.08670352399349213, 0.41422808170318604, -0.22951796650886536, -0.15621744096279144, -0.12500107288360596, -0.003739379346370697, 0.2119341939687729, -0.23602896928787231, 0.31186941266059875, -0.172071173787117, 0.09038276225328445, 0.02592635154724121, -0.43858569860458374, -0.3004497289657593, 0.19515249133110046, 0.0872918963432312, -0.34400761127471924, -0.11515457928180695, 0.09680044651031494, -0.5595496892929077, -0.08119671791791916, 0.16798941791057587, -0.12055991590023041, 0.13395197689533234, -0.46944525837898254, 0.03654488921165466, -0.2592836022377014, -0.30312761664390564, -0.15861903131008148, -0.06530380994081497, 0.27007025480270386, -0.3147053122520447, -0.3589431047439575, -0.33123302459716797, -0.20738717913627625, 0.09957824647426605, -0.31808483600616455, -0.03698381781578064, 0.13217434287071228, -0.23593921959400177, -0.07427391409873962, 0.5720570683479309, -0.5332987308502197, -0.3166053593158722, 0.4164285659790039, -0.34503793716430664, -0.2490304708480835, 0.25985047221183777, 0.02415703609585762, 0.16989865899085999, -0.26485487818717957, -0.1230875700712204, -0.050398632884025574, 0.12207295000553131, -0.10380502790212631, -0.191021129488945, -0.413736492395401, 0.09981691837310791, 0.2717948257923126, -0.10852295160293579, 0.1087992787361145, 0.12809622287750244, 0.19002780318260193, 0.40333491563796997, 0.08722375333309174, 0.12643922865390778, -0.08443930745124817, 0.19085732102394104, -0.09954746067523956, -0.15517738461494446, -0.03792800381779671, -0.6501654386520386, 0.28278523683547974, -0.02253594435751438, 0.22074246406555176, 0.029344290494918823, -0.11142074316740036, -0.5947408080101013, -0.07119007408618927, -0.01474526897072792, -0.22981104254722595, 0.038247108459472656, 0.24519766867160797, 0.04038110747933388, 0.028742346912622452, 0.13230198621749878, -0.06919869780540466, -0.17278456687927246, 0.15835653245449066, -0.05750026926398277, -0.0359480157494545, -0.10883518308401108, 0.10054490715265274, 0.14131927490234375, 0.19206199049949646, 0.08820606023073196, -0.20974329113960266, -0.008257977664470673, 0.19893291592597961, 0.26645442843437195, 0.2994753122329712, 0.17117856442928314, -0.03975270688533783, 0.11774840950965881, 0.16865327954292297, 0.22219684720039368, 0.2807433009147644, 0.0006243274547159672, -0.2647780179977417, 0.012451466172933578, 0.1801750361919403, 0.28095516562461853, -0.02128422260284424, -0.31741613149642944, -0.028278283774852753, 0.319344699382782, 0.06371922791004181, -0.16110458970069885, -0.28946125507354736, 0.045685213059186935, 0.3787924349308014, 0.5581903457641602, -0.05286340415477753, 0.15000689029693604, -0.24769949913024902, -0.24770909547805786, -0.3083852529525757, 0.014664269983768463, 0.090641550719738, -0.17407143115997314, -0.025309951975941658, 0.05884455144405365, 0.2664114832878113, 0.6372910737991333, 0.04690087214112282, 0.14139996469020844, 0.0812915787100792, -0.23515859246253967, -0.12353961169719696, 0.1703161895275116, 0.18290197849273682, 0.12640692293643951, 0.14134648442268372, -0.0091569684445858, -0.28563192486763, 0.027415432035923004, -0.03308301419019699, 0.4702056646347046, 0.3248138725757599, -0.3375100791454315, -0.10117198526859283, -0.2301953136920929, -0.3934480845928192, -0.5377240777015686, -0.4357339143753052, -0.41512346267700195, -0.30199387669563293, -0.038001418113708496, 0.2989150881767273, 0.021401207894086838, 0.32440826296806335, -0.2172335535287857, 0.29081064462661743, -0.2720584273338318, -0.4005093574523926, 0.0599125474691391, -0.2860785722732544, -0.31616538763046265, 0.008332706987857819, 0.24271650612354279, -0.040145471692085266, 0.4774540960788727, -0.09524836391210556, -0.3994392156600952, -0.24949055910110474, -0.32829493284225464, 0.08962215483188629, 0.08339335024356842, 0.5332784056663513, 0.4108941853046417, 0.11481540650129318, 0.5304837226867676, -0.03753051906824112, 0.017749089747667313, -0.07441174983978271, -0.35614168643951416, -0.2321396768093109, -0.014169115573167801, 0.21951960027217865, -0.055851709097623825, -0.33744102716445923, -0.5183429718017578, -0.11137275397777557, 0.0803159698843956, 0.05806167051196098, 0.07833339273929596, 0.2125871330499649, -0.09202153235673904, 0.10448330640792847, 0.06396190822124481, 0.01265918742865324, -0.1317116618156433, 0.12492072582244873, 0.04393605887889862, -0.16999298334121704, -0.0339195616543293, 0.1276836395263672, -0.06895296275615692, 0.04899916425347328, -0.14158287644386292, -0.43566054105758667, -0.40003180503845215, 0.1655733287334442, 0.17159424722194672, 0.36953026056289673, -0.2987920343875885, 0.25390875339508057, 0.2139565348625183, 0.12991178035736084, -0.1091058999300003, -0.4278608560562134, 0.22798603773117065, 0.10129133611917496, 0.32825008034706116, 0.2778739929199219, 0.36871033906936646, -0.19837823510169983, 0.8586018681526184, 0.20692840218544006, -0.2106226533651352, -0.14095459878444672, -0.24552211165428162, -0.06579799950122833, 0.035934776067733765, 0.013525692746043205, 0.21882082521915436, -0.027356654405593872, -0.3129955530166626, 0.308288037776947, -0.23085877299308777, -0.13247251510620117, -0.12156065553426743, 0.20832332968711853, -0.02576591819524765, -0.11315500736236572, 0.060084350407123566, -0.14215603470802307, 0.0608765184879303, 0.00801917165517807, -0.06661432236433029, -0.24221283197402954, -0.2538881003856659, 0.028734717518091202, 0.33859872817993164, -0.18706971406936646, 0.19989854097366333, -0.152516171336174, 0.018474290147423744, -0.40777087211608887, 0.3384025990962982, 0.340361624956131, 0.5474073886871338, 0.1201215535402298, -0.035384401679039, 0.13025222718715668, 0.14203642308712006, 0.20741350948810577, -0.09370363503694534, 0.14432452619075775, 0.28776395320892334, -0.0758146420121193, -0.13675862550735474, -0.31796881556510925, 0.03660045936703682, 0.18234992027282715, 0.0333266444504261, 0.12281123548746109, -0.4709649384021759, -0.09846219420433044, 0.28636595606803894, 0.19446708261966705, -0.16313225030899048, -0.33340033888816833, -0.1024148240685463, 0.04879157990217209, -0.0787472277879715, -0.2163061797618866, -0.24037280678749084, 0.04429900273680687, -0.03885577619075775, 0.30862003564834595, 0.008862783201038837, -0.03533434495329857, -0.061218827962875366, 0.26634809374809265, 0.20313996076583862, -0.20016628503799438, 0.2893229126930237, 0.2616366744041443, 0.0841662809252739, 0.31533533334732056, 0.20172297954559326, -0.08268620073795319, -0.24035093188285828, -0.08250298351049423, 0.017411060631275177, 0.30566370487213135, 0.30834779143333435, 0.24035491049289703, -0.008557498455047607, -0.18761929869651794, -0.1448669284582138, -0.2892589569091797, 0.16906292736530304, 0.2935924232006073, -0.1301058679819107, -0.10033540427684784, -0.328279972076416, 0.7530417442321777, 0.1722811758518219, -0.2961043119430542, 0.5668509006500244, -0.239366814494133, -0.41095995903015137, -0.013560432009398937, 0.10263253003358841, 0.9836568236351013, 0.07682155817747116, 0.21855445206165314, 0.22350922226905823, -0.19695577025413513, 0.3902522325515747, 0.1606563776731491, 0.06136554852128029, -0.5651339292526245, 0.08804213255643845, 0.02915961854159832, -0.09895402938127518, 0.24448075890541077, -0.06411786377429962, -0.35170334577560425, 0.34079641103744507, 0.0821811705827713, 0.2972548007965088, 0.2518065273761749, 0.37033289670944214, -0.046205781400203705, -0.039256561547517776, -0.24055242538452148, 0.051032811403274536, -0.2243732362985611, 0.3719369173049927, -0.2197386920452118, 0.03416503965854645, -0.18881763517856598, -0.07785947620868683, -0.3279078006744385, -0.2395801544189453, -0.15013828873634338, 0.06947718560695648, 0.019197121262550354, -0.18754355609416962, -0.02779470756649971, 0.23903560638427734, 0.06307130306959152, -0.12049376964569092, -0.1902085840702057, 0.11415350437164307, -0.20278194546699524, 0.08895669132471085, 0.23756347596645355, -0.01768363267183304, 0.328687846660614, -0.3449375331401825, -0.11815715581178665, 0.15308457612991333, -0.18728293478488922, -0.23272407054901123, -0.08339596539735794, -0.1945827156305313, 0.04582107067108154, -0.3402770757675171, -0.24017785489559174, -0.07632245123386383, 0.02784540131688118, -0.10413636267185211, 0.03824272379279137, 0.16137832403182983, -0.32575657963752747, 0.01718023046851158, 0.054205600172281265, -0.3329341411590576, 0.04696360230445862, 0.36871445178985596, -0.08637411892414093, -0.0008776113390922546, 0.6735672950744629, -0.24754749238491058, 0.08735348284244537, -0.10800742357969284, 0.00033695995807647705, -0.33272624015808105, -0.13323010504245758, -0.041136324405670166, -0.04393431544303894, -0.2875959277153015, -0.06571559607982635, 0.5596661567687988, 0.5117821097373962, 0.10100792348384857, 0.06241782382130623, -0.3830115795135498, -0.34222668409347534, 0.07540927827358246, -0.12961725890636444, 0.26565808057785034, -0.07393646240234375, 0.2888069450855255, 0.09227900207042694, 0.044827260076999664, -0.20386147499084473, -0.1427975594997406, 0.017405489459633827, 0.23781268298625946, -0.16256803274154663, 0.12307742983102798, -0.1156914010643959, 0.02843412011861801, -0.014392821118235588, -0.10343118011951447, -0.26048609614372253, -0.046801961958408356, -0.16584135591983795, 0.22512252628803253, 0.030804987996816635, 0.08343643695116043, 0.01277266163378954, -0.18992872536182404, 0.09936919808387756, 0.1725464016199112, 0.004948131740093231, 0.11314753443002701, -0.06754794716835022, 0.27282899618148804, 0.32850614190101624, 0.11845262348651886, -0.12467208504676819, 0.27501246333122253, 0.10709875077009201, 0.21082861721515656, -0.006237787660211325, 0.36083540320396423, -0.2627815902233124, 0.03662151098251343, 0.18331559002399445, 0.18572746217250824, -0.20793016254901886, 0.13544893264770508, 0.016381166875362396, -0.04313129931688309, 0.033261489123106, 0.14998720586299896, 0.3344956934452057, 0.7781228423118591, -0.3100929856300354, -0.1703515648841858, 0.45299527049064636, 0.06668036431074142, -0.19272944331169128, -0.051059357821941376, 0.33120453357696533, 0.04032507166266441, 0.07683958113193512, 0.26023247838020325, 0.011645134538412094, -0.06465555727481842, 0.19975267350673676, 0.17046508193016052, -0.010798266157507896, -0.259260892868042, 0.08984947204589844, 0.3426215946674347, -0.18214967846870422, 0.1657043695449829, 0.39165928959846497, 0.1482628881931305, 0.2784762680530548, 0.00738288089632988, 0.13599705696105957, 0.42005810141563416, 0.04142949730157852, -0.07995517551898956, 0.09235890954732895, 0.11966156959533691, 0.10311782360076904, 0.27148866653442383, -0.11963267624378204, 0.038716547191143036, 0.4046548306941986, 0.5331210494041443, -0.28116053342819214, -0.14102202653884888, -0.3413613736629486, -0.15612073242664337, 0.06328238546848297, -0.2039288580417633, -0.31007638573646545, 0.02806476503610611, -0.12455963343381882, -0.12495988607406616, -0.1717521697282791, -0.37852656841278076, 0.2690667510032654, 0.06951302289962769, -0.3724461793899536, -0.3337206244468689, -0.2165626883506775, 0.24834296107292175, 0.09707999974489212, -0.35574105381965637, 0.1587708592414856, -0.023698046803474426, -0.0322236642241478, 0.29715943336486816, 0.33734726905822754, 0.4456101357936859, -0.01678229123353958, -0.32859402894973755, -0.24676689505577087, -0.16939657926559448, 0.09490441530942917, 0.03207838907837868, 0.2031141072511673, 0.010795436799526215, -0.30086567997932434, 0.5508682727813721, 0.07143089175224304, 0.05135580152273178, 0.12386082112789154, 0.39140817523002625, -0.4377106726169586, -0.17570717632770538, 0.5832919478416443, -0.017454352229833603, -0.18201805651187897, 0.005244353786110878, 0.24485036730766296, -0.3289756774902344, 0.18183240294456482, 0.021824248135089874, 0.041446253657341, 0.14532461762428284, 0.08675675094127655, 0.021520040929317474, -0.11364664137363434, 0.4138203561306, 0.283220499753952, -0.06735614687204361, -0.26395872235298157, -0.22315619885921478, -0.759322464466095, 0.18017205595970154, -0.13770225644111633, -0.3707534670829773, 0.0003885990008711815, -0.21278618276119232, 0.24637004733085632, 0.033391524106264114, -0.11697393655776978, -0.01768677495419979, -0.00454596895724535, 0.18568415939807892, -0.23927147686481476, -0.35890576243400574, -0.13322219252586365, 0.014740221202373505, 0.013599131256341934, -0.36586931347846985, 0.11531125009059906, -0.2808386981487274, -0.11550106853246689, 0.061026714742183685, 0.012041382491588593, 0.5453345775604248, 0.05366457998752594, 0.2477731555700302, -0.16881808638572693, 0.7727632522583008, 0.15961381793022156, -0.0645502358675003, -0.15310189127922058, 0.09545039385557175, -0.13104134798049927, 0.14249791204929352, -0.0821685940027237, 0.1293337643146515, -0.16671226918697357, 0.49388062953948975, -0.3666071593761444, 0.5406874418258667, -0.09922467172145844, 0.08082905411720276, -0.22181947529315948, -0.03709617257118225, -0.15141722559928894, 0.11986309289932251, 0.22769099473953247, 0.27160724997520447, -0.10734820365905762, 0.35704511404037476, -0.2341272085905075, -0.35361120104789734, 0.4814944565296173, -0.10037060081958771, -0.15508362650871277, 0.0216875858604908, 0.32063236832618713, -0.09507004171609879, 0.0744415745139122, -0.4297242760658264, 0.23768392205238342, 0.32410746812820435, -0.040602877736091614, 0.008704833686351776, 0.21143290400505066, 0.22685399651527405, 0.08315175771713257, 0.001766987144947052, 1.0600336790084839, -0.1092362031340599, 0.023447310552001, -0.254179984331131, -0.3114488124847412 ]
https://github.com/huggingface/datasets/issues/161
Discussion on version identifier & MockDataLoaderManager for test data
Actually maybe our versioning format (inherited from tfds) is too strong for what we use it for? We could allow any string maybe? I see it more and more like an identifier for the user that we will back with a serious hashing/versioning system.- so we could let the user quite free on it.
Hi, I'm working on adding a dataset and ran into an error due to `download` not being defined on `MockDataLoaderManager`, but being defined in `nlp/utils/download_manager.py`. The readme step running this: `RUN_SLOW=1 pytest tests/test_dataset_common.py::DatasetTest::test_load_real_dataset_localmydatasetname` triggers the error. If I can get something to work, I can include it in my data PR once I'm done.
54
Discussion on version identifier & MockDataLoaderManager for test data Hi, I'm working on adding a dataset and ran into an error due to `download` not being defined on `MockDataLoaderManager`, but being defined in `nlp/utils/download_manager.py`. The readme step running this: `RUN_SLOW=1 pytest tests/test_dataset_common.py::DatasetTest::test_load_real_dataset_localmydatasetname` triggers the error. If I can get something to work, I can include it in my data PR once I'm done. Actually maybe our versioning format (inherited from tfds) is too strong for what we use it for? We could allow any string maybe? I see it more and more like an identifier for the user that we will back with a serious hashing/versioning system.- so we could let the user quite free on it.
[ -0.1527508795261383, 0.21056878566741943, 0.0053560771048069, -0.1521225869655609, 0.1695314645767212, -0.12297373265028, 0.34444862604141235, 0.3772261142730713, 0.013980146497488022, 0.22968488931655884, 0.16777899861335754, 0.015225112438201904, -0.33424100279808044, 0.03130711615085602, 0.022818561643362045, -0.10024398565292358, -0.05941472202539444, 0.19700676202774048, -0.07303620874881744, 0.3432958722114563, -0.06011265143752098, -0.07316172122955322, 0.0019713640213012695, 0.19343020021915436, 0.0108178136870265, 0.14580421149730682, -0.1153506189584732, -0.01875392347574234, -0.3885171711444855, -0.8583582043647766, 0.1343805342912674, 0.09185030311346054, 0.2320988029241562, 0.43688490986824036, -0.00012612348655238748, -0.0739654004573822, 0.5866601467132568, -0.024041971191763878, -0.7674422264099121, -0.1698295921087265, 0.3446429669857025, -0.37564095854759216, 0.2535519003868103, -0.06577898561954498, 0.11372042447328568, -0.1838424801826477, 0.18135406076908112, 0.07539629936218262, 0.13614657521247864, 0.245559424161911, 0.09919436275959015, 0.3106929659843445, 0.02813084051012993, -0.11110144853591919, -0.0595700666308403, 0.12354522943496704, -0.14380085468292236, 0.5142220854759216, 0.4895511269569397, 0.24067029356956482, -0.07860318571329117, -0.07082398235797882, 0.06261573731899261, 0.4359804689884186, 0.1371399164199829, -0.03264618292450905, 0.538478434085846, 0.0442366823554039, -0.19004210829734802, 0.16044610738754272, 0.8945164084434509, -0.5086085200309753, -0.4655531346797943, -0.06761396676301956, 0.017939545214176178, -0.1036728173494339, 0.10765793919563293, -0.1938885599374771, -0.37744981050491333, 0.20891082286834717, -0.16695861518383026, -0.3321850001811981, -0.0990394726395607, 0.2889300584793091, -0.1762079894542694, 0.2312372624874115, 0.1270466297864914, 0.251553475856781, -0.029583465307950974, -0.06737978756427765, 0.15492771565914154, -0.052094705402851105, 0.015269162133336067, 0.13405266404151917, 0.08804323524236679, -0.3319088816642761, -0.41497498750686646, -0.2981058359146118, 0.19952139258384705, 0.025636369362473488, -0.5338362455368042, -0.1899026334285736, -0.06855502724647522, 0.17624133825302124, 0.08776475489139557, 0.2744109332561493, 0.36686959862709045, 0.220542773604393, 0.31181734800338745, -0.010775059461593628, 0.2858647108078003, 0.21933406591415405, -0.005531744100153446, -0.27972176671028137, -0.002389010041952133, 0.075394406914711, 0.10619206726551056, -0.21187731623649597, -0.02138456329703331, -0.25974979996681213, -0.4228297173976898, -0.02772049605846405, -0.09297074377536774, 0.2329251766204834, -0.17843376100063324, -0.14660844206809998, -0.019972756505012512, 0.3341646194458008, -0.10098525881767273, -0.19496311247348785, -0.00010889675468206406, -0.020320333540439606, -0.24842940270900726, -0.06086090952157974, 0.22468261420726776, -0.13178715109825134, 0.3598705232143402, -0.3554432988166809, -0.14415714144706726, -0.03814046084880829, -0.022520024329423904, 0.030894488096237183, -0.17065346240997314, 0.2882431447505951, -0.23571918904781342, 0.017072418704628944, 0.05582605302333832, -0.30029022693634033, -0.21881383657455444, 0.21824976801872253, -0.0032296031713485718, -0.4360837936401367, -0.13643594086170197, 0.06006961688399315, -0.5637037754058838, 0.021724024787545204, 0.04728652164340019, -0.16956301033496857, 0.18883535265922546, -0.29676514863967896, 0.14172528684139252, -0.2503822445869446, -0.36074313521385193, -0.1515681892633438, -0.17838247120380402, 0.2280641794204712, -0.3107922375202179, -0.28986263275146484, -0.22972925007343292, -0.3846811056137085, 0.0779804065823555, -0.1305168867111206, -0.07232160866260529, 0.2086264193058014, -0.3361049294471741, -0.035918839275836945, 0.6512774229049683, -0.5617480278015137, -0.28832492232322693, 0.6501529812812805, -0.3996011018753052, -0.2595348060131073, 0.27374574542045593, -0.07270003110170364, 0.14991091191768646, -0.44446370005607605, -0.13253596425056458, 0.004221981391310692, -0.04450673609972, -0.11314121633768082, -0.08715607970952988, -0.42463475465774536, 0.20988082885742188, 0.20373669266700745, -0.06479059159755707, 0.22341403365135193, 0.12184470146894455, 0.1067119911313057, 0.4471711814403534, 0.035213131457567215, 0.16927537322044373, -0.21021686494350433, 0.20478969812393188, -0.12286815047264099, -0.10746611654758453, -0.13562531769275665, -0.5853857398033142, 0.2420368790626526, -0.047335751354694366, 0.1534973680973053, -0.006374381482601166, -0.06405393779277802, -0.44171813130378723, 0.02850296162068844, 0.1057557538151741, -0.21586693823337555, -0.05539104342460632, 0.145847350358963, 0.025065962225198746, -0.03469573333859444, -0.02631993032991886, -0.007541131228208542, -0.29132241010665894, 0.16251510381698608, 0.2089129388332367, -0.1484839916229248, -0.08332223445177078, 0.0995793417096138, 0.15043041110038757, 0.25228989124298096, -0.06979391723871231, -0.30531617999076843, 0.020699182525277138, 0.3233892321586609, 0.25860595703125, 0.14943847060203552, 0.07985439151525497, 0.05053398013114929, 0.18621496856212616, 0.2668227255344391, 0.14637508988380432, 0.20671062171459198, 0.024877622723579407, -0.27857041358947754, 0.02399902045726776, 0.1552949994802475, 0.154741108417511, -0.024672798812389374, -0.21239568293094635, -0.04288357123732567, 0.2966693341732025, 0.0858924388885498, -0.1595073789358139, -0.28861576318740845, 0.10071873664855957, 0.2132442146539688, 0.6271634697914124, 0.013070028275251389, 0.2344064712524414, -0.16070294380187988, -0.1911908984184265, -0.41979584097862244, 0.04762972891330719, 0.250434547662735, -0.08639699965715408, -0.06156611815094948, -0.03870169818401337, 0.24559785425662994, 0.8113178014755249, 0.007162490859627724, 0.22367343306541443, 0.059365950524806976, -0.062219053506851196, -0.20312687754631042, 0.21539612114429474, 0.18741729855537415, -0.019955474883317947, 0.14958518743515015, -0.009534526616334915, -0.21307224035263062, 0.01115117222070694, -0.02994958683848381, 0.3745068907737732, 0.3891143500804901, -0.459850549697876, -0.07126294076442719, -0.24342316389083862, -0.46378442645072937, -0.35133400559425354, -0.3214046359062195, -0.2830210328102112, -0.288661926984787, -0.0760621428489685, 0.32052531838417053, 0.04295094683766365, 0.22180594503879547, -0.27010753750801086, 0.2553037703037262, -0.2692338228225708, -0.2900577783584595, 0.03959764540195465, -0.13836562633514404, -0.37830349802970886, -0.01013420894742012, 0.203405499458313, -0.1298726201057434, 0.49237060546875, -0.04010794311761856, -0.2758658528327942, -0.21922898292541504, -0.3464268445968628, 0.17859643697738647, -0.008020218461751938, 0.5385331511497498, 0.5283280611038208, 0.011746801435947418, 0.4922001361846924, 0.04509783536195755, -0.10305842757225037, -0.2824667692184448, -0.44600340723991394, -0.1996394246816635, 0.04542430862784386, 0.123761385679245, -0.22519975900650024, -0.2420058250427246, -0.5144340991973877, -0.10970667004585266, 0.14452938735485077, -0.034998852759599686, 0.12034506350755692, 0.27052757143974304, -0.1861666589975357, 0.13806484639644623, -0.0068366010673344135, -0.061955757439136505, -0.15893439948558807, 0.07213671505451202, -0.09341360628604889, -0.15120379626750946, -0.15034691989421844, 0.0513877309858799, 0.009144023060798645, -0.026123378425836563, -0.03586917370557785, -0.3401893973350525, -0.4658868610858917, 0.15529799461364746, 0.13913778960704803, 0.3482477366924286, -0.22888363897800446, 0.19969838857650757, 0.23387980461120605, 0.1612384021282196, -0.06107664480805397, -0.34528347849845886, 0.14796289801597595, 0.04752800613641739, 0.2449825406074524, 0.26928776502609253, 0.4195290207862854, -0.01958554983139038, 0.7755745053291321, 0.14332452416419983, -0.0958901047706604, -0.0783185362815857, -0.26715320348739624, 0.006282482296228409, -0.054247356951236725, -0.005566897802054882, 0.3108571171760559, -0.10074779391288757, -0.2828230857849121, 0.31856852769851685, -0.1894749104976654, 0.051491864025592804, -0.09044539928436279, 0.26561540365219116, -0.0680931806564331, -0.044191159307956696, 0.050073131918907166, -0.28195032477378845, 0.03934001177549362, -0.012657382525503635, -0.037520188838243484, -0.13320225477218628, -0.21860426664352417, 0.09952689707279205, 0.3623548746109009, -0.01867997646331787, 0.2903425097465515, -0.11583885550498962, 0.15687894821166992, -0.34239596128463745, 0.25707101821899414, 0.44114330410957336, 0.6185421943664551, 0.08319765329360962, 0.09134798496961594, 0.18326571583747864, 0.12001979351043701, 0.22732368111610413, -0.0364769846200943, 0.233781099319458, 0.06325989961624146, -0.23603455722332, -0.017865929752588272, -0.22646193206310272, 0.0005944930016994476, 0.09605277329683304, -0.07572032511234283, 0.1736181378364563, -0.47740018367767334, -0.23207791149616241, 0.21772149205207825, 0.10532363504171371, -0.07665785402059555, -0.38930991291999817, -0.06505264341831207, 0.03828451782464981, -0.05286583676934242, -0.3129259943962097, -0.13613058626651764, -0.00522319320589304, -0.08902113139629364, 0.43324992060661316, -0.10226164758205414, -0.14556914567947388, -0.0051329731941223145, 0.10432861745357513, 0.04470934346318245, -0.19614443182945251, 0.20612108707427979, 0.19784867763519287, 0.17465107142925262, 0.21705159544944763, 0.18835397064685822, -0.08402569591999054, -0.15616291761398315, -0.03743533790111542, -0.05730253458023071, 0.39861857891082764, 0.36632466316223145, 0.10062643885612488, 0.04277191311120987, -0.2101759910583496, -0.15303020179271698, -0.34225931763648987, 0.22055695950984955, 0.28233036398887634, -0.16399046778678894, -0.051029689610004425, -0.2840907573699951, 0.6471722722053528, 0.1435634046792984, -0.245675191283226, 0.4512067139148712, -0.1504865437746048, -0.3036877512931824, -0.025458116084337234, 0.1286027878522873, 0.9857162833213806, 0.04336373880505562, 0.22869513928890228, 0.38514697551727295, -0.33894407749176025, 0.42819690704345703, 0.1474849432706833, 0.026663782075047493, -0.5198192000389099, -0.05517899990081787, -0.059430792927742004, -0.1654728502035141, 0.27415230870246887, -0.15859253704547882, -0.20023590326309204, 0.34560826420783997, 0.08795049786567688, 0.3736141622066498, 0.41375046968460083, 0.3992363214492798, -0.10544673353433609, -0.05788307264447212, -0.16087745130062103, 0.022065062075853348, -0.1849375069141388, 0.28433436155319214, -0.21571707725524902, -0.020652903243899345, -0.18661051988601685, -0.028540365397930145, -0.2467508614063263, -0.23737621307373047, -0.12553004920482635, 0.01798475719988346, 0.14046068489551544, -0.10922007262706757, 0.057699013501405716, 0.16871382296085358, 0.1828475445508957, -0.09496651589870453, -0.13535968959331512, 0.02537183091044426, -0.23170530796051025, 0.21880920231342316, 0.3044608533382416, 0.028276659548282623, 0.39990419149398804, -0.28152599930763245, -0.0707612931728363, 0.1486912965774536, -0.2799600064754486, -0.2452791929244995, -0.17162920534610748, -0.21622027456760406, 0.16090404987335205, -0.35440248250961304, -0.2652534246444702, -0.18462592363357544, -0.020434539765119553, -0.036143023520708084, -0.03854869306087494, 0.2329091876745224, -0.3300032615661621, -0.013232946395874023, -0.03742239251732826, -0.321946918964386, 0.03071577101945877, 0.4821367859840393, -0.046378038823604584, -0.17012448608875275, 0.6307939291000366, -0.24155579507350922, 0.028976142406463623, -0.08974570035934448, 0.03222326934337616, -0.18571694195270538, -0.1862185299396515, 0.038523007184267044, -0.07007182389497757, -0.3210487365722656, -0.03493780270218849, 0.6218971014022827, 0.5002502202987671, 0.026228900998830795, -0.07093343883752823, -0.423947274684906, -0.47686052322387695, -0.01982690393924713, -0.21596644818782806, 0.14384149014949799, -0.20705559849739075, 0.3047214150428772, 0.09505722671747208, 0.036328863352537155, -0.1691187024116516, -0.23322813212871552, 0.1270899921655655, 0.2611352205276489, -0.20231203734874725, 0.03588143363595009, -0.010400379076600075, 0.0488339364528656, -0.07755547016859055, 0.054522253572940826, -0.34435299038887024, -0.022740554064512253, -0.22121764719486237, 0.24034830927848816, 0.12901568412780762, 0.015883315354585648, 0.10097566992044449, -0.12922433018684387, -0.03020475059747696, 0.19713351130485535, -0.038831889629364014, 0.14353623986244202, -0.08869244158267975, 0.2655780613422394, 0.31917890906333923, 0.16784900426864624, -0.08941936492919922, 0.29042357206344604, 0.08135984092950821, 0.2633015811443329, -0.037362318485975266, 0.30299854278564453, -0.22787123918533325, 0.03696601837873459, 0.10371334105730057, 0.2465105950832367, -0.018953360617160797, 0.2433108389377594, 0.11851619929075241, -0.08313381671905518, 0.09952302277088165, 0.002766083460301161, 0.3833664357662201, 0.7761167883872986, -0.18420906364917755, -0.31482064723968506, 0.49698406457901, 0.017806384712457657, -0.10703189671039581, 0.006450294516980648, 0.2476194053888321, 0.16800159215927124, 0.025308098644018173, 0.3604949414730072, 0.03009447082877159, -0.035910122096538544, 0.09229393303394318, 0.10623421519994736, 0.08866791427135468, -0.2641746401786804, -0.23790863156318665, 0.5210918188095093, -0.22591163218021393, 0.24124976992607117, 0.35357657074928284, 0.135807067155838, 0.2959993779659271, 0.03766082227230072, 0.07566286623477936, 0.5019495487213135, -0.010013818740844727, 0.04312720149755478, 0.14046449959278107, 0.13297875225543976, 0.014500420540571213, 0.2870316207408905, 0.07500968873500824, 0.013745136559009552, 0.33756160736083984, 0.59053635597229, -0.2021772563457489, -0.16447225213050842, -0.17271187901496887, -0.16748890280723572, 0.07695938646793365, -0.2280692458152771, -0.27355414628982544, 0.12884891033172607, -0.21248212456703186, -0.1030295193195343, -0.23020625114440918, -0.29267221689224243, 0.2116541564464569, 0.05275070667266846, -0.33862489461898804, -0.27144625782966614, -0.40145155787467957, 0.14914602041244507, 0.05067760869860649, -0.3459292948246002, 0.12932799756526947, -0.07099153101444244, 0.11562079191207886, 0.3956107795238495, 0.25407347083091736, 0.3397337794303894, 0.06733056902885437, -0.30972763895988464, -0.3134118318557739, -0.32432126998901367, 0.15070976316928864, 0.00873994268476963, 0.39771610498428345, 0.0177152082324028, -0.11327831447124481, 0.6163249611854553, 0.004213394597172737, 0.10033003240823746, 0.2640596926212311, 0.3659214675426483, -0.5369969606399536, -0.11764669418334961, 0.7859674096107483, 0.07999034225940704, -0.1935422718524933, 0.07940398156642914, 0.22868400812149048, -0.19130289554595947, 0.1738029569387436, 0.04644013196229935, -0.11265205591917038, 0.18436282873153687, 0.11147189140319824, 0.015183862298727036, -0.05229521915316582, 0.3484433889389038, 0.41927167773246765, -0.06455586850643158, -0.2744942605495453, -0.015578806400299072, -0.6457428336143494, 0.18133953213691711, -0.05328154191374779, -0.25216174125671387, 0.004350485745817423, -0.24237175285816193, 0.17777636647224426, 0.11598474532365799, -0.24688781797885895, 0.1393570601940155, -0.08880806714296341, 0.08666308224201202, -0.14721116423606873, -0.3679315149784088, -0.17883366346359253, 0.0805131196975708, -0.07546937465667725, -0.43626868724823, 0.20022030174732208, -0.42061200737953186, -0.12240864336490631, 0.07628124952316284, 0.015164248645305634, 0.5335338711738586, -0.019310742616653442, 0.2926968038082123, -0.05495254695415497, 0.5333089828491211, 0.1951012909412384, 0.00602894090116024, -0.185198575258255, 0.18206743896007538, -0.19926533102989197, 0.13084882497787476, -0.04895908758044243, 0.06954167783260345, -0.14772441983222961, 0.5281544923782349, -0.4214254915714264, 0.5098822116851807, -0.050775252282619476, 0.16153985261917114, -0.329012006521225, 0.10240167379379272, -0.24033910036087036, 0.08635558933019638, 0.28884029388427734, 0.21862676739692688, -0.11910389363765717, 0.3717099726200104, -0.25404423475265503, -0.2021580934524536, 0.4779546558856964, -0.18597480654716492, -0.10019850730895996, 0.15425164997577667, 0.3032086491584778, 0.19870372116565704, -0.1865210384130478, -0.5294917821884155, 0.15762847661972046, 0.32636621594429016, -0.10436952859163284, -0.04502716660499573, 0.22184540331363678, 0.20797032117843628, 0.060865309089422226, 0.007538706064224243, 0.9585238695144653, -0.13304027915000916, 0.08896048367023468, -0.06882574409246445, -0.24809671938419342 ]
https://github.com/huggingface/datasets/issues/161
Discussion on version identifier & MockDataLoaderManager for test data
I'm good with either putting it in description, adding it to the config, or loosening version formatting. I mostly don't have a full conceptual grasp of what each identifier ends up meaning in the datasets code so hard to evaluate the best approach. For background, the multiple formats is a consequence of: 1. Each example is one multi-sentence trivia question 2. For training, its better to treat each sentence as an example 3. For evaluation, should test on: (1) first sentence, (2) full question, and (3) partial questions (does the model get the question right having seen the first half) We use the date format for version since: (1) we expect some degree of updates since new questions come in every year and (2) the timestamp itself matches the Wikipedia dump that it is dependent on (so similar to the Wikipedia dataset). perhaps this is better discussed in https://github.com/huggingface/nlp/pull/169 or update title?
Hi, I'm working on adding a dataset and ran into an error due to `download` not being defined on `MockDataLoaderManager`, but being defined in `nlp/utils/download_manager.py`. The readme step running this: `RUN_SLOW=1 pytest tests/test_dataset_common.py::DatasetTest::test_load_real_dataset_localmydatasetname` triggers the error. If I can get something to work, I can include it in my data PR once I'm done.
152
Discussion on version identifier & MockDataLoaderManager for test data Hi, I'm working on adding a dataset and ran into an error due to `download` not being defined on `MockDataLoaderManager`, but being defined in `nlp/utils/download_manager.py`. The readme step running this: `RUN_SLOW=1 pytest tests/test_dataset_common.py::DatasetTest::test_load_real_dataset_localmydatasetname` triggers the error. If I can get something to work, I can include it in my data PR once I'm done. I'm good with either putting it in description, adding it to the config, or loosening version formatting. I mostly don't have a full conceptual grasp of what each identifier ends up meaning in the datasets code so hard to evaluate the best approach. For background, the multiple formats is a consequence of: 1. Each example is one multi-sentence trivia question 2. For training, its better to treat each sentence as an example 3. For evaluation, should test on: (1) first sentence, (2) full question, and (3) partial questions (does the model get the question right having seen the first half) We use the date format for version since: (1) we expect some degree of updates since new questions come in every year and (2) the timestamp itself matches the Wikipedia dump that it is dependent on (so similar to the Wikipedia dataset). perhaps this is better discussed in https://github.com/huggingface/nlp/pull/169 or update title?
[ 0.05760348215699196, 0.24249696731567383, -0.0005986485630273819, -0.016874343156814575, -0.02622223272919655, -0.10918863117694855, 0.37034478783607483, 0.2744976282119751, 0.0017391107976436615, -0.0733637660741806, 0.19066627323627472, 0.10673867166042328, -0.2590659558773041, 0.05271480977535248, 0.06369124352931976, -0.17159351706504822, 0.061124447733163834, 0.20525714755058289, -0.09032149612903595, 0.19936929643154144, -0.1066962331533432, -0.013935590162873268, -0.021724112331867218, 0.20252636075019836, -0.09185915440320969, -0.04485759139060974, -0.2902239263057709, 0.06356636434793472, -0.3563997745513916, -0.951845109462738, 0.25599631667137146, 0.16132813692092896, 0.21488869190216064, 0.39023518562316895, -0.00012299603258725256, -0.13422200083732605, 0.5136099457740784, -0.03044794499874115, -0.7506933808326721, -0.19761832058429718, 0.32741329073905945, -0.4366214871406555, 0.3908320963382721, -0.08335183560848236, 0.20270735025405884, -0.26675981283187866, 0.3141604959964752, 0.20797988772392273, 0.1440402865409851, 0.21452732384204865, 0.0708213672041893, 0.25298434495925903, 0.02971760556101799, -0.0984107106924057, -0.040178440511226654, 0.1192992702126503, -0.034477490931749344, 0.5099812746047974, 0.39377105236053467, 0.12621359527111053, -0.16321897506713867, 0.1172780692577362, 0.14007537066936493, 0.3983493447303772, 0.2259790599346161, -0.01795360818505287, 0.5039621591567993, -0.047598421573638916, -0.20237943530082703, 0.054717857390642166, 0.8494497537612915, -0.5009230971336365, -0.4326479732990265, -0.14169475436210632, 0.032289303839206696, -0.16478870809078217, 0.21547117829322815, -0.1092025637626648, -0.15507274866104126, 0.05712532997131348, -0.24445345997810364, -0.11133240908384323, -0.1574694961309433, 0.33689194917678833, -0.22512021660804749, 0.2915143072605133, -0.010365243069827557, 0.1961042284965515, -0.03072476014494896, -0.18355849385261536, 0.05790742114186287, -0.20119443535804749, 0.07630246877670288, 0.1746194064617157, 0.016124561429023743, -0.28860199451446533, -0.29430389404296875, -0.1872653365135193, 0.1245487853884697, 0.014858132228255272, -0.4481181502342224, -0.17962518334388733, -0.03736472874879837, 0.2117077112197876, 0.2502315938472748, 0.3405129909515381, 0.39323902130126953, 0.19038677215576172, 0.1532818078994751, 0.08018213510513306, 0.15144824981689453, 0.15082064270973206, -0.04188334196805954, -0.22569714486598969, -0.011926183477044106, 0.025542134419083595, 0.16613155603408813, -0.2824717164039612, -0.05167918652296066, -0.12572979927062988, -0.5409558415412903, -0.07574264705181122, -0.13150465488433838, 0.23289379477500916, -0.17989835143089294, -0.045071810483932495, 0.03212343156337738, 0.41973376274108887, -0.17848803102970123, -0.1591351479291916, -0.015688402578234673, 0.07461478561162949, -0.25813668966293335, -0.04566507041454315, 0.17432157695293427, -0.0906311422586441, 0.4508664011955261, -0.21950893104076385, -0.3382495045661926, -0.1793953776359558, 0.06953269243240356, 0.013142457231879234, -0.09206823259592056, 0.23776015639305115, -0.1951383650302887, 0.06764187663793564, 0.0803673192858696, -0.41097742319107056, -0.2782209515571594, 0.010887399315834045, 0.05627664923667908, -0.343336820602417, -0.027283748611807823, 0.06280634552240372, -0.4833723306655884, -0.010563075542449951, 0.12420585751533508, 0.09027791023254395, 0.149173304438591, -0.3166506290435791, 0.10074482858181, -0.4133780598640442, -0.23477137088775635, -0.09195539355278015, -0.18899759650230408, 0.3042597770690918, -0.2840295732021332, -0.2755052447319031, -0.16645801067352295, -0.3127402365207672, 0.09089327603578568, -0.18867790699005127, -0.07610449194908142, 0.27452635765075684, -0.1902468502521515, 0.03018873929977417, 0.5996149778366089, -0.5389531850814819, -0.20875690877437592, 0.5325271487236023, -0.2751668691635132, -0.05293499678373337, 0.28938421607017517, -0.07397878170013428, 0.11017468571662903, -0.3594631850719452, -0.10819558799266815, 0.05834313482046127, 0.003968553617596626, -0.19246144592761993, -0.21571460366249084, -0.26801058650016785, 0.18028460443019867, 0.28513047099113464, -0.19205845892429352, 0.018702782690525055, 0.06548123806715012, 0.18505844473838806, 0.3273560404777527, 0.09518340229988098, 0.12832672894001007, -0.18868379294872284, -0.05513514205813408, -0.0784621387720108, -0.12363823503255844, -0.01617032289505005, -0.7373567819595337, 0.15254521369934082, -0.1034967452287674, 0.20631983876228333, 0.044002216309309006, 0.003577806055545807, -0.46556174755096436, -0.04969044774770737, -0.07461178302764893, -0.3006819486618042, 0.030343584716320038, 0.23752421140670776, 0.07605627179145813, -0.00396856851875782, 0.008902329951524734, -0.012331699952483177, -0.30985918641090393, 0.24812160432338715, -0.04932175949215889, -0.18347041308879852, -0.0836687833070755, 0.1499590128660202, 0.20539963245391846, 0.2515469491481781, 0.033978044986724854, -0.2759888470172882, 0.10466910153627396, 0.3256838619709015, 0.23714812099933624, 0.24148441851139069, 0.17153891921043396, 0.06900234520435333, 0.23371604084968567, 0.33159950375556946, 0.3070372939109802, 0.1655815839767456, 0.08676377683877945, -0.26936182379722595, -0.09193111211061478, 0.15490202605724335, 0.2427975982427597, 0.004586704075336456, -0.16184133291244507, -0.06739895790815353, 0.3385395109653473, 0.12129159271717072, -0.23096610605716705, -0.26559704542160034, 0.012635942548513412, 0.29515540599823, 0.6402706503868103, 0.06317993253469467, 0.08673717081546783, -0.03449244052171707, -0.11137427389621735, -0.46820709109306335, -0.02329219877719879, 0.09991282224655151, -0.27145975828170776, -0.16550639271736145, -0.019512156024575233, 0.2567766010761261, 0.7403602600097656, 0.014357313513755798, 0.2837747633457184, 0.04305167496204376, -0.2606043517589569, -0.21312567591667175, 0.19014286994934082, 0.2923332452774048, -0.07247482985258102, 0.14260798692703247, 0.05944424867630005, -0.22141189873218536, -0.011801507323980331, -0.1442519724369049, 0.3677423894405365, 0.3290631175041199, -0.4422619640827179, 0.011568373069167137, -0.2243393510580063, -0.4463373124599457, -0.5092365145683289, -0.3774473965167999, -0.26062512397766113, -0.34826037287712097, -0.05424049496650696, 0.22306576371192932, -0.09885372221469879, 0.20850571990013123, -0.04445541650056839, 0.3514883518218994, -0.33391430974006653, -0.06189095973968506, 0.18121926486492157, -0.28744643926620483, -0.4304265081882477, -0.021277476102113724, 0.37744444608688354, 0.010300073772668839, 0.3699013590812683, -0.16296102106571198, -0.30679142475128174, -0.17186424136161804, -0.35774660110473633, 0.17577366530895233, -0.05133632570505142, 0.49024710059165955, 0.4374174177646637, 0.05680481716990471, 0.42201244831085205, -0.07975666970014572, -0.005828061141073704, -0.061605602502822876, -0.35395514965057373, -0.19850440323352814, 0.008053821511566639, 0.011529354378581047, -0.2229926437139511, -0.46764811873435974, -0.5795461535453796, -0.06716480851173401, 0.2384972721338272, 0.023739848285913467, 0.13625764846801758, 0.35848891735076904, -0.23525874316692352, 0.230943962931633, -0.11682119220495224, 0.06175228953361511, -0.13076865673065186, 0.04842417314648628, 0.03346899896860123, -0.14100679755210876, -0.14650902152061462, 0.08306862413883209, -0.06929178535938263, -0.05623869225382805, -0.1251673400402069, -0.40929466485977173, -0.4603896141052246, 0.19253383576869965, -0.019878597930073738, 0.3854578137397766, -0.11975434422492981, 0.19413018226623535, 0.22859056293964386, 0.15268824994564056, -0.09221981465816498, -0.2539879381656647, 0.3085108995437622, 0.04816838353872299, 0.2682610750198364, 0.2667803466320038, 0.3099616765975952, -0.08249534666538239, 0.8548858761787415, 0.23433107137680054, -0.22297172248363495, -0.1782391220331192, -0.02807191200554371, -0.07432790100574493, 0.008991055190563202, 0.03905503451824188, 0.24598351120948792, -0.19373950362205505, -0.25766170024871826, 0.4539281725883484, -0.11471670120954514, -0.07941070944070816, -0.01288994774222374, 0.2891294062137604, -0.10928524285554886, -0.005735434591770172, 0.19463346898555756, -0.15763522684574127, 0.02347073331475258, 0.010373465716838837, -0.03370574116706848, -0.1583341509103775, -0.06846432387828827, -0.033196210861206055, 0.34193718433380127, -0.11140847951173782, 0.21972480416297913, -0.2726876139640808, -0.06407052278518677, -0.2533635199069977, 0.23277460038661957, 0.3978845477104187, 0.46471694111824036, 0.1509021818637848, -0.031669553369283676, 0.21203076839447021, 0.20424805581569672, 0.08792330324649811, -0.03190001845359802, 0.10637795180082321, 0.18112249672412872, -0.2204211950302124, -0.030371323227882385, -0.3028005063533783, -0.22541578114032745, 0.04275503382086754, 0.01996631547808647, 0.17918330430984497, -0.4684460163116455, -0.24010732769966125, 0.3211105465888977, 0.062144167721271515, -0.05001518502831459, -0.23638097941875458, 0.023509878665208817, 0.005604352802038193, -0.04983450099825859, -0.17327040433883667, -0.19891390204429626, -0.01388971321284771, -0.11765521764755249, 0.424060195684433, -0.038367994129657745, 0.045313961803913116, -0.021975696086883545, 0.24746008217334747, 0.09659848362207413, -0.14922744035720825, 0.14238083362579346, 0.2692522406578064, 0.14296680688858032, 0.2716630697250366, 0.18352964520454407, -0.13022014498710632, -0.2218179702758789, 0.051953211426734924, -0.0687578096985817, 0.3754241168498993, 0.4415138363838196, 0.20746347308158875, 0.03125421702861786, -0.24363300204277039, -0.17298345267772675, -0.33769822120666504, 0.2777036726474762, 0.36229559779167175, -0.12266870588064194, -0.01886344887316227, -0.3984580338001251, 0.763932466506958, 0.11514200270175934, -0.3186497092247009, 0.3197762668132782, -0.1712702363729477, -0.27540990710258484, 0.06674165278673172, 0.04492662847042084, 0.9632912874221802, 0.18757982552051544, 0.26972973346710205, 0.3356107473373413, -0.3050231337547302, 0.508813202381134, 0.0772998183965683, 0.08329949527978897, -0.5266804695129395, -0.004951010458171368, 0.011898921802639961, -0.08526407927274704, 0.25266918540000916, -0.0917506217956543, -0.2902074158191681, 0.3714600205421448, 0.15412501990795135, 0.33690547943115234, 0.26662421226501465, 0.3904857039451599, -0.10265188664197922, -0.08184869587421417, -0.3148285746574402, 0.03274159133434296, -0.18126192688941956, 0.29423072934150696, -0.25556403398513794, -0.05453570932149887, -0.19459021091461182, -0.04891171306371689, -0.16635504364967346, -0.23210081458091736, -0.1798078715801239, 0.04404458403587341, 0.09738384187221527, -0.24454744160175323, 0.007083218544721603, 0.2463032752275467, 0.13479004800319672, -0.3061777651309967, -0.08299567550420761, -0.0007387883961200714, -0.20389768481254578, 0.19736820459365845, 0.26994916796684265, -0.05206362158060074, 0.4594920575618744, -0.2614244222640991, 0.004678495228290558, 0.06200568750500679, -0.2999454736709595, -0.011490821838378906, -0.0774814561009407, -0.17925859987735748, 0.1897272914648056, -0.297354131937027, -0.27577152848243713, 0.03467538207769394, 0.01572946459054947, -0.01693565770983696, -0.013132132589817047, 0.19917665421962738, -0.2707008123397827, 0.016308963298797607, -0.09080901741981506, -0.23815371096134186, -0.01271355152130127, 0.34332671761512756, -0.08797568082809448, -0.07147173583507538, 0.720521092414856, -0.14233344793319702, -0.013047920539975166, -0.08775785565376282, 0.07892622798681259, -0.07721273601055145, -0.21021470427513123, -0.02466745302081108, -0.09398075938224792, -0.3097339868545532, -0.11627877503633499, 0.6664244532585144, 0.5130173563957214, 0.08737711608409882, -0.0127655528485775, -0.39167946577072144, -0.3361729085445404, 0.11024421453475952, -0.21333099901676178, 0.20463044941425323, -0.1537819802761078, 0.23011034727096558, 0.20599837601184845, 0.091733917593956, -0.19896361231803894, -0.21286632120609283, -0.05241852253675461, 0.32197827100753784, -0.2081093192100525, 0.008620496839284897, -0.022831618785858154, 0.07475601136684418, -0.07202202081680298, -0.030391599982976913, -0.36013951897621155, -0.03611616790294647, -0.1606758087873459, 0.2308596670627594, 0.16787439584732056, -0.10099505633115768, 0.05119526758790016, -0.05666739121079445, 0.08302770555019379, 0.15836578607559204, -0.0659608393907547, -0.06922051310539246, -0.046982184052467346, 0.31562039256095886, 0.22112753987312317, 0.26535144448280334, -0.06126079708337784, 0.15333625674247742, 0.07793189585208893, 0.14180831611156464, 0.08331721276044846, 0.18333108723163605, -0.3230118751525879, 0.013775445520877838, 0.07649049162864685, 0.29494205117225647, -0.1126142144203186, 0.23987078666687012, 0.11625152826309204, -0.03209979087114334, 0.14109578728675842, 0.08694121241569519, 0.284458190202713, 0.8438330888748169, -0.1847466379404068, -0.2881440818309784, 0.41060084104537964, 0.01760336197912693, -0.0421869121491909, 0.08298298716545105, 0.26608002185821533, 0.11460413038730621, 0.022272836416959763, 0.2854968011379242, 0.055850084871053696, -0.003533594310283661, 0.03952408209443092, 0.1685958206653595, 0.1924363523721695, -0.21285252273082733, -0.06870879232883453, 0.4142080247402191, -0.24478986859321594, 0.26162734627723694, 0.37993937730789185, 0.058436132967472076, 0.2171715497970581, -0.09376585483551025, 0.06660209596157074, 0.4720223546028137, 0.10343323647975922, 0.0724765881896019, 0.14047206938266754, 0.10956507921218872, -0.054724764078855515, 0.46144670248031616, 0.027293823659420013, 0.01985985040664673, 0.28616195917129517, 0.6132854223251343, -0.33437713980674744, -0.3217318654060364, -0.17343175411224365, -0.07680553197860718, 0.1072121188044548, -0.18119490146636963, -0.5276594161987305, 0.014906860888004303, -0.2530691623687744, -0.07244831323623657, -0.27018457651138306, -0.35571736097335815, 0.319938600063324, 0.04118115454912186, -0.3105320334434509, -0.41609254479408264, -0.3604919910430908, 0.0854642391204834, 0.12812133133411407, -0.32149261236190796, 0.2644839286804199, 0.2310384213924408, 0.06905633956193924, 0.40392979979515076, 0.3324468731880188, 0.40230613946914673, 0.09167787432670593, -0.38616642355918884, -0.3036435842514038, -0.25391900539398193, 0.10707536339759827, 0.1250624656677246, 0.27835792303085327, -0.042769625782966614, -0.21499745547771454, 0.5813989639282227, 0.015516901388764381, 0.07906594127416611, 0.29227209091186523, 0.4092691242694855, -0.5363091230392456, -0.24184003472328186, 0.6709065437316895, -0.0029566138982772827, -0.2478879690170288, 0.10846411436796188, 0.1560739129781723, -0.36080679297447205, 0.08437971770763397, 0.001009548082947731, 0.07150520384311676, 0.19846227765083313, 0.09360819309949875, 0.026088658720254898, -0.009924329817295074, 0.4939214289188385, 0.4914437234401703, -0.10784652084112167, -0.34578388929367065, -0.10265486687421799, -0.7086452841758728, 0.023204118013381958, -0.024922702461481094, -0.30694296956062317, -0.028651859611272812, -0.1313229352235794, 0.18050941824913025, 0.09593141824007034, -0.2593293786048889, 0.05915537849068642, -0.034586165100336075, 0.07855800539255142, -0.3168296813964844, -0.2308541089296341, -0.1634582281112671, 0.011753858998417854, -0.11217896640300751, -0.2473430335521698, 0.11470528692007065, -0.39097860455513, -0.1484861969947815, 0.22859299182891846, 0.04866325110197067, 0.4706296920776367, 0.043979816138744354, 0.1680423617362976, -0.014945076778531075, 0.5717004537582397, 0.2713901698589325, -0.12703850865364075, -0.22806528210639954, 0.2154114693403244, -0.14663104712963104, 0.17723993957042694, -0.12875758111476898, 0.36340978741645813, -0.1993660032749176, 0.5129462480545044, -0.20585598051548004, 0.47028878331184387, -0.04468332603573799, 0.05702616646885872, -0.3319072723388672, 0.08545470982789993, -0.22928458452224731, 0.04520885646343231, 0.33929336071014404, 0.35586947202682495, -0.06925623118877411, 0.2981768846511841, -0.260295033454895, -0.22530674934387207, 0.3200795650482178, -0.31884121894836426, -0.11840426921844482, 0.14298385381698608, 0.2893078923225403, 0.14046335220336914, 0.024536171928048134, -0.627732515335083, 0.073811374604702, 0.23111514747142792, -0.17052185535430908, -0.0932827740907669, 0.17623214423656464, 0.23813943564891815, -0.0625920370221138, -0.03592411056160927, 0.9138432741165161, -0.07508876919746399, -0.06777165085077286, -0.10770951211452484, -0.3335290551185608 ]
https://github.com/huggingface/datasets/issues/160
caching in map causes same result to be returned for train, validation and test
Hi @dpressel, thanks for posting your issue! Can you maybe add a complete code snippet that we can copy paste to reproduce the error? For example, I'm not sure where the variable `train_set` comes from in your code and it seems like you are loading multiple datasets at once?
hello, I am working on a program that uses the `nlp` library with the `SST2` dataset. The rough outline of the program is: ``` import nlp as nlp_datasets ... parser.add_argument('--dataset', help='HuggingFace Datasets id', default=['glue', 'sst2'], nargs='+') ... dataset = nlp_datasets.load_dataset(*args.dataset) ... # Create feature vocabs vocabs = create_vocabs(dataset.values(), vectorizers) ... # Create a function to vectorize based on vectorizers and vocabs: print('TS', train_set.num_rows) print('VS', valid_set.num_rows) print('ES', test_set.num_rows) # factory method to create a `convert_to_features` function based on vocabs convert_to_features = create_featurizer(vectorizers, vocabs) train_set = train_set.map(convert_to_features, batched=True) train_set.set_format(type='torch', columns=list(vectorizers.keys()) + ['y', 'lengths']) train_loader = torch.utils.data.DataLoader(train_set, batch_size=args.batchsz) valid_set = valid_set.map(convert_to_features, batched=True) valid_set.set_format(type='torch', columns=list(vectorizers.keys()) + ['y', 'lengths']) valid_loader = torch.utils.data.DataLoader(valid_set, batch_size=args.batchsz) test_set = test_set.map(convert_to_features, batched=True) test_set.set_format(type='torch', columns=list(vectorizers.keys()) + ['y', 'lengths']) test_loader = torch.utils.data.DataLoader(test_set, batch_size=args.batchsz) print('TS', train_set.num_rows) print('VS', valid_set.num_rows) print('ES', test_set.num_rows) ``` Im not sure if Im using it incorrectly, but the results are not what I expect. Namely, the `.map()` seems to grab the datset from the cache and then loses track of what the specific dataset is, instead using my training data for all datasets: ``` TS 67349 VS 872 ES 1821 TS 67349 VS 67349 ES 67349 ``` The behavior changes if I turn off the caching but then the results fail: ``` train_set = train_set.map(convert_to_features, batched=True, load_from_cache_file=False) ... valid_set = valid_set.map(convert_to_features, batched=True, load_from_cache_file=False) ... test_set = test_set.map(convert_to_features, batched=True, load_from_cache_file=False) ``` Now I get the right set of features back... ``` TS 67349 VS 872 ES 1821 100%|██████████| 68/68 [00:00<00:00, 92.78it/s] 100%|██████████| 1/1 [00:00<00:00, 75.47it/s] 0%| | 0/2 [00:00<?, ?it/s]TS 67349 VS 872 ES 1821 100%|██████████| 2/2 [00:00<00:00, 77.19it/s] ``` but I think its losing track of the original training set: ``` Traceback (most recent call last): File "/home/dpressel/dev/work/baseline/api-examples/layers-classify-hf-datasets.py", line 148, in <module> for x in train_loader: File "/home/dpressel/anaconda3/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 345, in __next__ data = self._next_data() File "/home/dpressel/anaconda3/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 385, in _next_data data = self._dataset_fetcher.fetch(index) # may raise StopIteration File "/home/dpressel/anaconda3/lib/python3.7/site-packages/torch/utils/data/_utils/fetch.py", line 44, in fetch data = [self.dataset[idx] for idx in possibly_batched_index] File "/home/dpressel/anaconda3/lib/python3.7/site-packages/torch/utils/data/_utils/fetch.py", line 44, in <listcomp> data = [self.dataset[idx] for idx in possibly_batched_index] File "/home/dpressel/anaconda3/lib/python3.7/site-packages/nlp/arrow_dataset.py", line 338, in __getitem__ output_all_columns=self._output_all_columns, File "/home/dpressel/anaconda3/lib/python3.7/site-packages/nlp/arrow_dataset.py", line 294, in _getitem outputs = self._unnest(self._data.slice(key, 1).to_pydict()) File "pyarrow/table.pxi", line 1211, in pyarrow.lib.Table.slice File "pyarrow/public-api.pxi", line 390, in pyarrow.lib.pyarrow_wrap_table File "pyarrow/error.pxi", line 85, in pyarrow.lib.check_status pyarrow.lib.ArrowInvalid: Column 3: In chunk 0: Invalid: Length spanned by list offsets (15859698) larger than values array (length 100000) Process finished with exit code 1 ``` The full-example program (minus the print stmts) is here: https://github.com/dpressel/mead-baseline/pull/620/files
49
caching in map causes same result to be returned for train, validation and test hello, I am working on a program that uses the `nlp` library with the `SST2` dataset. The rough outline of the program is: ``` import nlp as nlp_datasets ... parser.add_argument('--dataset', help='HuggingFace Datasets id', default=['glue', 'sst2'], nargs='+') ... dataset = nlp_datasets.load_dataset(*args.dataset) ... # Create feature vocabs vocabs = create_vocabs(dataset.values(), vectorizers) ... # Create a function to vectorize based on vectorizers and vocabs: print('TS', train_set.num_rows) print('VS', valid_set.num_rows) print('ES', test_set.num_rows) # factory method to create a `convert_to_features` function based on vocabs convert_to_features = create_featurizer(vectorizers, vocabs) train_set = train_set.map(convert_to_features, batched=True) train_set.set_format(type='torch', columns=list(vectorizers.keys()) + ['y', 'lengths']) train_loader = torch.utils.data.DataLoader(train_set, batch_size=args.batchsz) valid_set = valid_set.map(convert_to_features, batched=True) valid_set.set_format(type='torch', columns=list(vectorizers.keys()) + ['y', 'lengths']) valid_loader = torch.utils.data.DataLoader(valid_set, batch_size=args.batchsz) test_set = test_set.map(convert_to_features, batched=True) test_set.set_format(type='torch', columns=list(vectorizers.keys()) + ['y', 'lengths']) test_loader = torch.utils.data.DataLoader(test_set, batch_size=args.batchsz) print('TS', train_set.num_rows) print('VS', valid_set.num_rows) print('ES', test_set.num_rows) ``` Im not sure if Im using it incorrectly, but the results are not what I expect. Namely, the `.map()` seems to grab the datset from the cache and then loses track of what the specific dataset is, instead using my training data for all datasets: ``` TS 67349 VS 872 ES 1821 TS 67349 VS 67349 ES 67349 ``` The behavior changes if I turn off the caching but then the results fail: ``` train_set = train_set.map(convert_to_features, batched=True, load_from_cache_file=False) ... valid_set = valid_set.map(convert_to_features, batched=True, load_from_cache_file=False) ... test_set = test_set.map(convert_to_features, batched=True, load_from_cache_file=False) ``` Now I get the right set of features back... ``` TS 67349 VS 872 ES 1821 100%|██████████| 68/68 [00:00<00:00, 92.78it/s] 100%|██████████| 1/1 [00:00<00:00, 75.47it/s] 0%| | 0/2 [00:00<?, ?it/s]TS 67349 VS 872 ES 1821 100%|██████████| 2/2 [00:00<00:00, 77.19it/s] ``` but I think its losing track of the original training set: ``` Traceback (most recent call last): File "/home/dpressel/dev/work/baseline/api-examples/layers-classify-hf-datasets.py", line 148, in <module> for x in train_loader: File "/home/dpressel/anaconda3/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 345, in __next__ data = self._next_data() File "/home/dpressel/anaconda3/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 385, in _next_data data = self._dataset_fetcher.fetch(index) # may raise StopIteration File "/home/dpressel/anaconda3/lib/python3.7/site-packages/torch/utils/data/_utils/fetch.py", line 44, in fetch data = [self.dataset[idx] for idx in possibly_batched_index] File "/home/dpressel/anaconda3/lib/python3.7/site-packages/torch/utils/data/_utils/fetch.py", line 44, in <listcomp> data = [self.dataset[idx] for idx in possibly_batched_index] File "/home/dpressel/anaconda3/lib/python3.7/site-packages/nlp/arrow_dataset.py", line 338, in __getitem__ output_all_columns=self._output_all_columns, File "/home/dpressel/anaconda3/lib/python3.7/site-packages/nlp/arrow_dataset.py", line 294, in _getitem outputs = self._unnest(self._data.slice(key, 1).to_pydict()) File "pyarrow/table.pxi", line 1211, in pyarrow.lib.Table.slice File "pyarrow/public-api.pxi", line 390, in pyarrow.lib.pyarrow_wrap_table File "pyarrow/error.pxi", line 85, in pyarrow.lib.check_status pyarrow.lib.ArrowInvalid: Column 3: In chunk 0: Invalid: Length spanned by list offsets (15859698) larger than values array (length 100000) Process finished with exit code 1 ``` The full-example program (minus the print stmts) is here: https://github.com/dpressel/mead-baseline/pull/620/files Hi @dpressel, thanks for posting your issue! Can you maybe add a complete code snippet that we can copy paste to reproduce the error? For example, I'm not sure where the variable `train_set` comes from in your code and it seems like you are loading multiple datasets at once?
[ -0.1263226568698883, -0.22070880234241486, -0.10063180327415466, 0.27801087498664856, 0.2454756796360016, -0.2052232325077057, 0.13721056282520294, 0.512859582901001, 0.18828648328781128, -0.06233574450016022, 0.1278197318315506, 0.3891346752643585, 0.0037763724103569984, -0.160617396235466, -0.010743596591055393, 0.024212440475821495, 0.09608042240142822, 0.2350524514913559, -0.14556188881397247, -0.16482335329055786, 0.08189395070075989, 0.21298398077487946, -0.04241039231419563, 0.11652659624814987, -0.39034968614578247, 0.041289687156677246, 0.21235691010951996, -0.23089024424552917, 0.06845805048942566, -0.2570651173591614, 0.16785086691379547, -0.09324321150779724, 0.025833208113908768, 0.16631752252578735, -0.00010973815369652584, 0.006798304617404938, -0.015387766063213348, -0.1385694295167923, -0.007275183219462633, 0.040194764733314514, 0.11813383549451828, -0.21172894537448883, -0.1091824322938919, -0.3121313452720642, -0.33201169967651367, -0.03766108304262161, 0.01780948042869568, -0.3556599020957947, 0.3128575086593628, 0.14745260775089264, 0.26071029901504517, 0.2249092161655426, -0.2538127899169922, 0.2111358791589737, 0.14512750506401062, -0.029327861964702606, -0.174197256565094, -0.04230552166700363, -0.043978914618492126, -0.3344651758670807, -0.37676528096199036, 0.5254564881324768, -0.07658141106367111, 0.1701412945985794, 0.21466660499572754, 0.2250557690858841, 0.17260560393333435, 0.035937726497650146, 0.1429363340139389, -0.11396292597055435, 0.011095017194747925, -0.2269171178340912, -0.02711673453450203, -0.3733724355697632, -0.4186411201953888, -0.07852593064308167, 0.13762545585632324, 0.1810445636510849, -0.13639314472675323, -0.06371608376502991, -0.4319378435611725, 0.23928974568843842, 0.0652494728565216, -0.012788243591785431, 0.11952652037143707, 0.29516083002090454, 0.043806225061416626, 0.19522294402122498, 0.12944671511650085, -0.06973235309123993, -0.02255908027291298, -0.21451671421527863, -0.05897124484181404, 0.2264009565114975, -0.43598538637161255, 0.07208245992660522, 0.43152061104774475, -0.14041411876678467, -0.05324293673038483, 0.030638067051768303, 0.39193105697631836, 0.07921384274959564, 0.11681805551052094, -0.008492052555084229, -0.10416075587272644, 0.5898680090904236, 0.0443217009305954, 0.1711840033531189, -0.014969944953918457, -0.1982785016298294, -0.3560169041156769, 0.004987534135580063, 0.2880179286003113, -0.2866009771823883, 0.4284117817878723, 0.4023604691028595, -0.042260151356458664, -0.12152989208698273, -0.030102383345365524, 0.09402373433113098, -0.33085355162620544, 0.055669743567705154, 0.0587298683822155, 0.3139576017856598, -0.22545050084590912, 0.14926615357398987, -0.17376767098903656, -0.10335467755794525, -0.38496920466423035, 0.12735100090503693, -0.33784613013267517, -0.03332405164837837, -0.49621880054473877, 0.0015165433287620544, 0.2853848338127136, -0.0028596948832273483, 0.28535178303718567, -0.03844526410102844, -0.13722018897533417, -0.30198928713798523, 0.10317374765872955, -0.3985119163990021, 0.5702312588691711, -0.1072293072938919, -0.19701732695102692, 0.24102161824703217, 0.1303786337375641, 0.08526431024074554, -0.2976880967617035, -0.19837728142738342, -0.16980764269828796, -0.20906905829906464, 0.25986045598983765, 0.24224528670310974, -0.07942773401737213, 0.14139583706855774, 0.09248201549053192, 0.0776790976524353, 0.3432585299015045, -0.23285478353500366, 0.10284040123224258, -0.20148901641368866, -0.2819802165031433, -0.204358771443367, 0.16256852447986603, 0.2623097598552704, 0.06677639484405518, -0.13737253844738007, 0.40179675817489624, 0.23718330264091492, 0.14729051291942596, 0.41380682587623596, -0.1965341717004776, 0.30949440598487854, -0.4334914982318878, 0.34861910343170166, 0.5064769387245178, -0.32673171162605286, -0.4963451325893402, 0.09944847971200943, -0.15631616115570068, 0.1002885028719902, 0.10244907438755035, 0.15137307345867157, 0.029087437316775322, 0.014419620856642723, 0.1285368949174881, 0.01870272494852543, -0.0005148481577634811, 0.208420529961586, -0.31692758202552795, -0.021934084594249725, 0.5500645637512207, -0.25246700644493103, 0.02847260981798172, -0.13123688101768494, -0.05504279583692551, 0.02193329855799675, 0.0067679062485694885, -0.11218976974487305, 0.1218593567609787, 0.11460474133491516, -0.056878771632909775, -0.1581847369670868, -0.10643894970417023, -0.0246925987303257, -0.28826284408569336, 0.23830166459083557, -0.1498183310031891, -0.09996803104877472, 0.06172499805688858, -0.0970490574836731, -0.16200324892997742, -0.12927524745464325, -0.18091663718223572, -0.27306440472602844, 0.20130182802677155, 0.23052413761615753, 0.3202398419380188, -0.07290707528591156, 0.22520895302295685, 0.3680821657180786, 0.04836374521255493, -0.21607205271720886, -0.4300343692302704, 0.08568023145198822, -0.17773447930812836, -0.21882808208465576, -0.07484696805477142, 0.22306987643241882, 0.20902660489082336, -0.047926466912031174, -0.14242848753929138, 0.1482764184474945, -0.222085639834404, 0.41891831159591675, -0.1370280385017395, 0.2694522738456726, -0.06965658068656921, 0.02930605039000511, 0.01666761375963688, 0.25400540232658386, 0.05881998687982559, -0.08980180323123932, -0.07270645350217819, 0.47423404455184937, 0.18140259385108948, 0.17011591792106628, -0.04807092621922493, -0.21626819670200348, 0.051984116435050964, -0.1783173829317093, -0.12091567367315292, -0.11881645023822784, 0.1364072859287262, -0.08057232201099396, 0.14888812601566315, 0.15232877433300018, -0.10698716342449188, 0.31200864911079407, 0.7600829601287842, 0.19691896438598633, -0.011016987264156342, 0.015740767121315002, -0.057213060557842255, -0.21779218316078186, 0.3338564336299896, -0.05868256464600563, 0.31038784980773926, 0.1047315001487732, 0.1271648108959198, -0.046209461987018585, -0.21965014934539795, -0.1544356495141983, 0.12464785575866699, -0.21436865627765656, -0.19197607040405273, 0.3080340027809143, 0.28208741545677185, -0.15836751461029053, -0.3537829518318176, 0.09401574730873108, -0.012764312326908112, 0.02619161084294319, -0.1580013632774353, 0.2172369807958603, -0.16652941703796387, -0.2780846357345581, -0.2864150404930115, 0.13615667819976807, -0.12220340967178345, -0.09216566383838654, -0.041263237595558167, 0.42542991042137146, -0.03665441274642944, 0.19515129923820496, -0.31497251987457275, 0.08951936662197113, 0.2266039103269577, -0.2663280665874481, -0.07168535143136978, -0.1902884840965271, -0.3949197232723236, 0.04223187640309334, -0.09523043036460876, -0.09299641847610474, 0.3783295154571533, -0.047315895557403564, -0.06796004623174667, -0.2881453037261963, -0.17254012823104858, 0.10717794299125671, -0.09261167049407959, -0.15536801517009735, 0.16724851727485657, -0.03133857250213623, -0.10115887969732285, -0.29874542355537415, 0.2937970757484436, -0.3053131103515625, -0.29914355278015137, -0.051986560225486755, 0.09890660643577576, 0.030109476298093796, -0.2803474962711334, -0.4286240041255951, 0.273578405380249, -0.31724387407302856, 0.07546795159578323, -0.14892902970314026, 0.1862262636423111, 0.33093464374542236, 0.00895372498780489, -0.014560827054083347, -0.0640399232506752, 0.16439403593540192, -0.46741002798080444, -0.1409536451101303, 0.32257840037345886, 0.01876109279692173, -0.21630431711673737, -0.32459110021591187, -0.27572470903396606, 0.3477241098880768, 0.1923890858888626, -0.5803960561752319, -0.21442312002182007, -0.04890017956495285, 0.2480318546295166, -0.051258526742458344, -0.04649581015110016, 0.5745421648025513, 0.019725235179066658, -0.17946359515190125, -0.16727817058563232, -0.3318409025669098, 0.35973137617111206, 0.4192635118961334, 0.24948740005493164, -0.011158943176269531, 0.17781507968902588, 0.20092041790485382, 0.6707462072372437, 0.2019195854663849, -0.2590573728084564, 0.3317308723926544, 0.10723195970058441, 0.07499716430902481, -0.20349696278572083, -0.3130224645137787, 0.18576037883758545, -0.18160343170166016, 0.019731584936380386, 0.2719839811325073, 0.006251104176044464, -0.28018441796302795, 0.01774188131093979, 0.2188195437192917, -0.22534486651420593, -0.3280583918094635, 0.2597454786300659, -0.34242767095565796, 0.24094820022583008, 0.036370452493429184, 0.31580084562301636, -0.5820142030715942, -0.24272406101226807, 0.19462767243385315, -0.3359467387199402, 0.27984508872032166, 0.044498294591903687, -0.5836003422737122, 0.1214708536863327, -0.5380221009254456, 0.18194139003753662, 0.31462833285331726, 0.27240750193595886, -0.09202545136213303, -0.24652618169784546, 0.04334747791290283, -0.14713142812252045, 0.5711410045623779, 0.04097280651330948, 0.4085800051689148, 0.16992641985416412, -0.1302473247051239, -0.19947309792041779, -0.22471268475055695, 0.017234746366739273, 0.28013738989830017, 0.3264990448951721, 0.4008479714393616, -0.345244437456131, -0.36327338218688965, -0.26576635241508484, 0.007364353165030479, -0.04618103802204132, 0.007107640616595745, -0.12583328783512115, 0.18938520550727844, 0.01648675464093685, 0.17434582114219666, -0.014980485662817955, 0.11830264329910278, 0.016040049493312836, -0.1365458369255066, -0.039133474230766296, -0.21942639350891113, 0.12824128568172455, 0.226437509059906, 0.4735945761203766, 0.15032486617565155, 0.03246128931641579, 0.0332147479057312, 0.2151574343442917, -0.5671091079711914, 0.2659575343132019, -0.0888490378856659, -0.004131823778152466, 0.07464417070150375, 0.144438236951828, -0.03030157834291458, 0.33789771795272827, -0.04252493754029274, 0.14571355283260345, -0.1286291778087616, 0.008956722915172577, -0.5539687275886536, 0.4854544699192047, 0.3874589204788208, 0.13246634602546692, -0.0448899008333683, -0.24685712158679962, 0.17346283793449402, 0.07412011921405792, -0.27653104066848755, 0.1322598159313202, -0.4306930899620056, -0.43199458718299866, 0.18579725921154022, 0.20948642492294312, 0.923247218132019, 0.33202195167541504, 0.37195777893066406, 0.10070403665304184, 0.10358044505119324, 0.26425108313560486, -0.23411208391189575, 0.40925103425979614, -0.36936435103416443, -0.04631776735186577, 0.024538477882742882, -0.16673335433006287, -0.22738394141197205, -0.01042589545249939, -0.01099366694688797, 0.30259501934051514, 0.32405006885528564, 0.5999369025230408, -0.11211933940649033, 0.1666991412639618, 0.21569152176380157, -0.15811008214950562, -0.24923133850097656, 0.20107324421405792, -0.2923039197921753, 0.3152405619621277, -0.11240813881158829, -0.07410877197980881, -0.016509655863046646, -0.3513416647911072, 0.06714028120040894, 0.06094175577163696, -0.3365171253681183, 0.3048413395881653, 0.13346193730831146, -0.2726666331291199, -0.29698777198791504, 0.2550767958164215, 0.11198686063289642, 0.08252747356891632, -0.048599980771541595, -0.03518524393439293, 0.4006442427635193, 0.3504589796066284, -0.0068908920511603355, -0.20158877968788147, 0.18641279637813568, 0.0638754814863205, -0.01289377361536026, 0.030242688953876495, -0.056405920535326004, -0.30158257484436035, -0.2525116205215454, 0.14820444583892822, 0.0033721178770065308, -0.41296207904815674, -0.055318210273981094, 0.061444804072380066, -0.066788449883461, -0.09413720667362213, 0.15088020265102386, -0.026068054139614105, -0.10793968290090561, 0.31515368819236755, 0.11733828485012054, -0.24304215610027313, 0.05235801637172699, 0.4748321771621704, -0.04039723426103592, 0.031817495822906494, 0.4154278635978699, -0.15281841158866882, -0.10380657762289047, -0.25539082288742065, -0.284172922372818, -0.10206026583909988, -0.44884106516838074, 0.1122080534696579, -0.21940632164478302, -0.4019114375114441, 0.044232387095689774, 0.280818372964859, 0.014707226306200027, 0.3184961676597595, -0.011618640273809433, -0.12495823204517365, -0.376972496509552, -0.10379031300544739, -0.10658225417137146, 0.2671777307987213, 0.2795185446739197, 0.2843483090400696, -0.29586637020111084, 0.24922624230384827, -0.3831096589565277, -0.10714218765497208, -0.18716973066329956, 0.43791303038597107, -0.03913825377821922, -0.3655831515789032, -0.0091466773301363, 0.0018548984080553055, 0.12997101247310638, 0.17754501104354858, -0.6386589407920837, -0.29261884093284607, -0.09099164605140686, 0.08186077326536179, -0.007587585598230362, -0.15982197225093842, -0.23928211629390717, -0.017213795334100723, 0.18238520622253418, -0.4274033010005951, 0.09215673804283142, 0.15121665596961975, 0.04703156650066376, 0.23718662559986115, -0.16102977097034454, 0.121455617249012, 0.2881677746772766, -0.18652740120887756, -0.1841484010219574, -0.0762285441160202, 0.0804811418056488, 0.25701698660850525, -0.06946804374456406, 0.020479321479797363, -0.21040309965610504, 0.03047323226928711, 0.08927437663078308, 0.14279496669769287, 0.2369287610054016, -0.024753130972385406, -0.21566127240657806, 0.0005509094335138798, 0.18279987573623657, 0.11411988735198975, -0.0785531997680664, -0.3289754092693329, 0.28022289276123047, 0.27836498618125916, -0.11751759797334671, -0.010236735455691814, 0.16770797967910767, -0.09938845783472061, 0.2528514266014099, 0.20715394616127014, 0.10758784413337708, 0.05261094868183136, 0.2696117162704468, 0.12649419903755188, 0.4050406217575073, -0.34832853078842163, 0.0894213616847992, 0.06441638618707657, 0.10164904594421387, 0.03777812421321869, 0.3812151849269867, -0.15324416756629944, 0.08992215991020203, 0.14838305115699768, 0.1883368045091629, 0.20253945887088776, 0.26289013028144836, 0.21354132890701294, -0.18786436319351196, -0.034120991826057434, -0.24108661711215973, 0.14363622665405273, -0.14272630214691162, 0.4156596064567566, 0.15059252083301544, 0.1928555965423584, -0.11485254019498825, -0.4619385302066803, -0.246268168091774, 0.23536333441734314, -0.3245421051979065, -0.30920878052711487, -0.04867762327194214, -0.08018514513969421, 0.05592885613441467, 0.19456128776073456, -0.07929010689258575, 0.20385880768299103, 0.3428385257720947, -0.008660323917865753, -0.013750255107879639, -0.08435370773077011, -0.17061740159988403, 0.1139787882566452, 0.27486473321914673, -0.08173885941505432, 0.4469367265701294, 0.010800592601299286, -0.051569342613220215, -0.23447129130363464, 0.41141682863235474, 0.2861284613609314, 0.19494768977165222, -0.16886268556118011, 0.06395315378904343, 0.2006472647190094, 0.030613550916314125, -0.3546893298625946, 0.32865193486213684, 0.1511445790529251, -0.29302749037742615, 0.3680057227611542, 0.12379536032676697, -0.2321556657552719, 0.2764037847518921, -0.10419623553752899, -0.2014673352241516, -0.04988923296332359, 0.32243701815605164, 0.09970740228891373, -0.039931803941726685, -0.1949627548456192, 0.11112028360366821, -0.14457139372825623, -0.2853398621082306, 0.15934598445892334, -0.023898055776953697, 0.46766120195388794, -0.2756754159927368, 0.1172051727771759, -0.06182485446333885, 0.622086226940155, -0.02922753617167473, 0.12432871758937836, -0.35013771057128906, 0.10264365375041962, -0.33316677808761597, 0.19840949773788452, -0.08381755650043488, 0.15374277532100677, -0.3975834548473358, 0.20426514744758606, -0.11549846082925797, -0.02346603199839592, -0.1180424839258194, -0.007886635139584541, 0.14740677177906036, 0.17893192172050476, -0.38691768050193787, 0.15548142790794373, -0.08625927567481995, -0.006267234683036804, 0.29177355766296387, -0.3766750693321228, 0.22199079394340515, 0.04247986152768135, 0.20691066980361938, 0.010986395180225372, -0.021723732352256775, -0.054806556552648544, 0.3365737497806549, 0.6232416033744812, 0.347029447555542, 0.14255061745643616, -0.10102751851081848, 0.08155348151922226, -0.34743812680244446, 0.014104198664426804, -0.0608881413936615, -0.20964989066123962, 0.09756805002689362, 0.525830864906311, -0.22562745213508606, 0.13194666802883148, -0.17804594337940216, 0.23669439554214478, 0.3822764754295349, -0.15272890031337738, 0.0618000403046608, 0.048225969076156616, -0.2598409056663513, -0.005199410952627659, -0.12586645781993866, 0.4537956118583679, 0.0071828290820121765, 0.3238304853439331, -0.3592909574508667, -0.5417629480361938, 0.43290975689888, -0.45112597942352295, -0.30252549052238464, 0.12327875941991806, 0.23878563940525055, 0.34956875443458557, -0.06000041216611862, -0.5436675548553467, -0.1724909543991089, 0.26911383867263794, -0.030661188066005707, -0.15704528987407684, 0.20768439769744873, -0.14864379167556763, -0.041075609624385834, -0.11675439774990082, 0.17646870017051697, 0.10152650624513626, -0.2914128005504608, 0.24369895458221436, -0.3701035976409912 ]
https://github.com/huggingface/datasets/issues/160
caching in map causes same result to be returned for train, validation and test
Hi, the full example was listed in the PR above, but here is the exact link: https://github.com/dpressel/mead-baseline/blob/3c1aa3ca062cb23f303ca98ac40b6652b37ee971/api-examples/layers-classify-hf-datasets.py The problem is coming from ``` if cache_file_name is None: # we create a unique hash from the function, current dataset file and the mapping args cache_kwargs = { "with_indices": with_indices, "batched": batched, "batch_size": batch_size, "remove_columns": remove_columns, "keep_in_memory": keep_in_memory, "load_from_cache_file": load_from_cache_file, "cache_file_name": cache_file_name, "writer_batch_size": writer_batch_size, "arrow_schema": arrow_schema, "disable_nullable": disable_nullable, } cache_file_name = self._get_cache_file_path(function, cache_kwargs) ``` The cached value is always the same, but I was able to change that by just renaming the function each time which seems to fix the issue.
hello, I am working on a program that uses the `nlp` library with the `SST2` dataset. The rough outline of the program is: ``` import nlp as nlp_datasets ... parser.add_argument('--dataset', help='HuggingFace Datasets id', default=['glue', 'sst2'], nargs='+') ... dataset = nlp_datasets.load_dataset(*args.dataset) ... # Create feature vocabs vocabs = create_vocabs(dataset.values(), vectorizers) ... # Create a function to vectorize based on vectorizers and vocabs: print('TS', train_set.num_rows) print('VS', valid_set.num_rows) print('ES', test_set.num_rows) # factory method to create a `convert_to_features` function based on vocabs convert_to_features = create_featurizer(vectorizers, vocabs) train_set = train_set.map(convert_to_features, batched=True) train_set.set_format(type='torch', columns=list(vectorizers.keys()) + ['y', 'lengths']) train_loader = torch.utils.data.DataLoader(train_set, batch_size=args.batchsz) valid_set = valid_set.map(convert_to_features, batched=True) valid_set.set_format(type='torch', columns=list(vectorizers.keys()) + ['y', 'lengths']) valid_loader = torch.utils.data.DataLoader(valid_set, batch_size=args.batchsz) test_set = test_set.map(convert_to_features, batched=True) test_set.set_format(type='torch', columns=list(vectorizers.keys()) + ['y', 'lengths']) test_loader = torch.utils.data.DataLoader(test_set, batch_size=args.batchsz) print('TS', train_set.num_rows) print('VS', valid_set.num_rows) print('ES', test_set.num_rows) ``` Im not sure if Im using it incorrectly, but the results are not what I expect. Namely, the `.map()` seems to grab the datset from the cache and then loses track of what the specific dataset is, instead using my training data for all datasets: ``` TS 67349 VS 872 ES 1821 TS 67349 VS 67349 ES 67349 ``` The behavior changes if I turn off the caching but then the results fail: ``` train_set = train_set.map(convert_to_features, batched=True, load_from_cache_file=False) ... valid_set = valid_set.map(convert_to_features, batched=True, load_from_cache_file=False) ... test_set = test_set.map(convert_to_features, batched=True, load_from_cache_file=False) ``` Now I get the right set of features back... ``` TS 67349 VS 872 ES 1821 100%|██████████| 68/68 [00:00<00:00, 92.78it/s] 100%|██████████| 1/1 [00:00<00:00, 75.47it/s] 0%| | 0/2 [00:00<?, ?it/s]TS 67349 VS 872 ES 1821 100%|██████████| 2/2 [00:00<00:00, 77.19it/s] ``` but I think its losing track of the original training set: ``` Traceback (most recent call last): File "/home/dpressel/dev/work/baseline/api-examples/layers-classify-hf-datasets.py", line 148, in <module> for x in train_loader: File "/home/dpressel/anaconda3/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 345, in __next__ data = self._next_data() File "/home/dpressel/anaconda3/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 385, in _next_data data = self._dataset_fetcher.fetch(index) # may raise StopIteration File "/home/dpressel/anaconda3/lib/python3.7/site-packages/torch/utils/data/_utils/fetch.py", line 44, in fetch data = [self.dataset[idx] for idx in possibly_batched_index] File "/home/dpressel/anaconda3/lib/python3.7/site-packages/torch/utils/data/_utils/fetch.py", line 44, in <listcomp> data = [self.dataset[idx] for idx in possibly_batched_index] File "/home/dpressel/anaconda3/lib/python3.7/site-packages/nlp/arrow_dataset.py", line 338, in __getitem__ output_all_columns=self._output_all_columns, File "/home/dpressel/anaconda3/lib/python3.7/site-packages/nlp/arrow_dataset.py", line 294, in _getitem outputs = self._unnest(self._data.slice(key, 1).to_pydict()) File "pyarrow/table.pxi", line 1211, in pyarrow.lib.Table.slice File "pyarrow/public-api.pxi", line 390, in pyarrow.lib.pyarrow_wrap_table File "pyarrow/error.pxi", line 85, in pyarrow.lib.check_status pyarrow.lib.ArrowInvalid: Column 3: In chunk 0: Invalid: Length spanned by list offsets (15859698) larger than values array (length 100000) Process finished with exit code 1 ``` The full-example program (minus the print stmts) is here: https://github.com/dpressel/mead-baseline/pull/620/files
99
caching in map causes same result to be returned for train, validation and test hello, I am working on a program that uses the `nlp` library with the `SST2` dataset. The rough outline of the program is: ``` import nlp as nlp_datasets ... parser.add_argument('--dataset', help='HuggingFace Datasets id', default=['glue', 'sst2'], nargs='+') ... dataset = nlp_datasets.load_dataset(*args.dataset) ... # Create feature vocabs vocabs = create_vocabs(dataset.values(), vectorizers) ... # Create a function to vectorize based on vectorizers and vocabs: print('TS', train_set.num_rows) print('VS', valid_set.num_rows) print('ES', test_set.num_rows) # factory method to create a `convert_to_features` function based on vocabs convert_to_features = create_featurizer(vectorizers, vocabs) train_set = train_set.map(convert_to_features, batched=True) train_set.set_format(type='torch', columns=list(vectorizers.keys()) + ['y', 'lengths']) train_loader = torch.utils.data.DataLoader(train_set, batch_size=args.batchsz) valid_set = valid_set.map(convert_to_features, batched=True) valid_set.set_format(type='torch', columns=list(vectorizers.keys()) + ['y', 'lengths']) valid_loader = torch.utils.data.DataLoader(valid_set, batch_size=args.batchsz) test_set = test_set.map(convert_to_features, batched=True) test_set.set_format(type='torch', columns=list(vectorizers.keys()) + ['y', 'lengths']) test_loader = torch.utils.data.DataLoader(test_set, batch_size=args.batchsz) print('TS', train_set.num_rows) print('VS', valid_set.num_rows) print('ES', test_set.num_rows) ``` Im not sure if Im using it incorrectly, but the results are not what I expect. Namely, the `.map()` seems to grab the datset from the cache and then loses track of what the specific dataset is, instead using my training data for all datasets: ``` TS 67349 VS 872 ES 1821 TS 67349 VS 67349 ES 67349 ``` The behavior changes if I turn off the caching but then the results fail: ``` train_set = train_set.map(convert_to_features, batched=True, load_from_cache_file=False) ... valid_set = valid_set.map(convert_to_features, batched=True, load_from_cache_file=False) ... test_set = test_set.map(convert_to_features, batched=True, load_from_cache_file=False) ``` Now I get the right set of features back... ``` TS 67349 VS 872 ES 1821 100%|██████████| 68/68 [00:00<00:00, 92.78it/s] 100%|██████████| 1/1 [00:00<00:00, 75.47it/s] 0%| | 0/2 [00:00<?, ?it/s]TS 67349 VS 872 ES 1821 100%|██████████| 2/2 [00:00<00:00, 77.19it/s] ``` but I think its losing track of the original training set: ``` Traceback (most recent call last): File "/home/dpressel/dev/work/baseline/api-examples/layers-classify-hf-datasets.py", line 148, in <module> for x in train_loader: File "/home/dpressel/anaconda3/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 345, in __next__ data = self._next_data() File "/home/dpressel/anaconda3/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 385, in _next_data data = self._dataset_fetcher.fetch(index) # may raise StopIteration File "/home/dpressel/anaconda3/lib/python3.7/site-packages/torch/utils/data/_utils/fetch.py", line 44, in fetch data = [self.dataset[idx] for idx in possibly_batched_index] File "/home/dpressel/anaconda3/lib/python3.7/site-packages/torch/utils/data/_utils/fetch.py", line 44, in <listcomp> data = [self.dataset[idx] for idx in possibly_batched_index] File "/home/dpressel/anaconda3/lib/python3.7/site-packages/nlp/arrow_dataset.py", line 338, in __getitem__ output_all_columns=self._output_all_columns, File "/home/dpressel/anaconda3/lib/python3.7/site-packages/nlp/arrow_dataset.py", line 294, in _getitem outputs = self._unnest(self._data.slice(key, 1).to_pydict()) File "pyarrow/table.pxi", line 1211, in pyarrow.lib.Table.slice File "pyarrow/public-api.pxi", line 390, in pyarrow.lib.pyarrow_wrap_table File "pyarrow/error.pxi", line 85, in pyarrow.lib.check_status pyarrow.lib.ArrowInvalid: Column 3: In chunk 0: Invalid: Length spanned by list offsets (15859698) larger than values array (length 100000) Process finished with exit code 1 ``` The full-example program (minus the print stmts) is here: https://github.com/dpressel/mead-baseline/pull/620/files Hi, the full example was listed in the PR above, but here is the exact link: https://github.com/dpressel/mead-baseline/blob/3c1aa3ca062cb23f303ca98ac40b6652b37ee971/api-examples/layers-classify-hf-datasets.py The problem is coming from ``` if cache_file_name is None: # we create a unique hash from the function, current dataset file and the mapping args cache_kwargs = { "with_indices": with_indices, "batched": batched, "batch_size": batch_size, "remove_columns": remove_columns, "keep_in_memory": keep_in_memory, "load_from_cache_file": load_from_cache_file, "cache_file_name": cache_file_name, "writer_batch_size": writer_batch_size, "arrow_schema": arrow_schema, "disable_nullable": disable_nullable, } cache_file_name = self._get_cache_file_path(function, cache_kwargs) ``` The cached value is always the same, but I was able to change that by just renaming the function each time which seems to fix the issue.
[ -0.1263226568698883, -0.22070880234241486, -0.10063180327415466, 0.27801087498664856, 0.2454756796360016, -0.2052232325077057, 0.13721056282520294, 0.512859582901001, 0.18828648328781128, -0.06233574450016022, 0.1278197318315506, 0.3891346752643585, 0.0037763724103569984, -0.160617396235466, -0.010743596591055393, 0.024212440475821495, 0.09608042240142822, 0.2350524514913559, -0.14556188881397247, -0.16482335329055786, 0.08189395070075989, 0.21298398077487946, -0.04241039231419563, 0.11652659624814987, -0.39034968614578247, 0.041289687156677246, 0.21235691010951996, -0.23089024424552917, 0.06845805048942566, -0.2570651173591614, 0.16785086691379547, -0.09324321150779724, 0.025833208113908768, 0.16631752252578735, -0.00010973815369652584, 0.006798304617404938, -0.015387766063213348, -0.1385694295167923, -0.007275183219462633, 0.040194764733314514, 0.11813383549451828, -0.21172894537448883, -0.1091824322938919, -0.3121313452720642, -0.33201169967651367, -0.03766108304262161, 0.01780948042869568, -0.3556599020957947, 0.3128575086593628, 0.14745260775089264, 0.26071029901504517, 0.2249092161655426, -0.2538127899169922, 0.2111358791589737, 0.14512750506401062, -0.029327861964702606, -0.174197256565094, -0.04230552166700363, -0.043978914618492126, -0.3344651758670807, -0.37676528096199036, 0.5254564881324768, -0.07658141106367111, 0.1701412945985794, 0.21466660499572754, 0.2250557690858841, 0.17260560393333435, 0.035937726497650146, 0.1429363340139389, -0.11396292597055435, 0.011095017194747925, -0.2269171178340912, -0.02711673453450203, -0.3733724355697632, -0.4186411201953888, -0.07852593064308167, 0.13762545585632324, 0.1810445636510849, -0.13639314472675323, -0.06371608376502991, -0.4319378435611725, 0.23928974568843842, 0.0652494728565216, -0.012788243591785431, 0.11952652037143707, 0.29516083002090454, 0.043806225061416626, 0.19522294402122498, 0.12944671511650085, -0.06973235309123993, -0.02255908027291298, -0.21451671421527863, -0.05897124484181404, 0.2264009565114975, -0.43598538637161255, 0.07208245992660522, 0.43152061104774475, -0.14041411876678467, -0.05324293673038483, 0.030638067051768303, 0.39193105697631836, 0.07921384274959564, 0.11681805551052094, -0.008492052555084229, -0.10416075587272644, 0.5898680090904236, 0.0443217009305954, 0.1711840033531189, -0.014969944953918457, -0.1982785016298294, -0.3560169041156769, 0.004987534135580063, 0.2880179286003113, -0.2866009771823883, 0.4284117817878723, 0.4023604691028595, -0.042260151356458664, -0.12152989208698273, -0.030102383345365524, 0.09402373433113098, -0.33085355162620544, 0.055669743567705154, 0.0587298683822155, 0.3139576017856598, -0.22545050084590912, 0.14926615357398987, -0.17376767098903656, -0.10335467755794525, -0.38496920466423035, 0.12735100090503693, -0.33784613013267517, -0.03332405164837837, -0.49621880054473877, 0.0015165433287620544, 0.2853848338127136, -0.0028596948832273483, 0.28535178303718567, -0.03844526410102844, -0.13722018897533417, -0.30198928713798523, 0.10317374765872955, -0.3985119163990021, 0.5702312588691711, -0.1072293072938919, -0.19701732695102692, 0.24102161824703217, 0.1303786337375641, 0.08526431024074554, -0.2976880967617035, -0.19837728142738342, -0.16980764269828796, -0.20906905829906464, 0.25986045598983765, 0.24224528670310974, -0.07942773401737213, 0.14139583706855774, 0.09248201549053192, 0.0776790976524353, 0.3432585299015045, -0.23285478353500366, 0.10284040123224258, -0.20148901641368866, -0.2819802165031433, -0.204358771443367, 0.16256852447986603, 0.2623097598552704, 0.06677639484405518, -0.13737253844738007, 0.40179675817489624, 0.23718330264091492, 0.14729051291942596, 0.41380682587623596, -0.1965341717004776, 0.30949440598487854, -0.4334914982318878, 0.34861910343170166, 0.5064769387245178, -0.32673171162605286, -0.4963451325893402, 0.09944847971200943, -0.15631616115570068, 0.1002885028719902, 0.10244907438755035, 0.15137307345867157, 0.029087437316775322, 0.014419620856642723, 0.1285368949174881, 0.01870272494852543, -0.0005148481577634811, 0.208420529961586, -0.31692758202552795, -0.021934084594249725, 0.5500645637512207, -0.25246700644493103, 0.02847260981798172, -0.13123688101768494, -0.05504279583692551, 0.02193329855799675, 0.0067679062485694885, -0.11218976974487305, 0.1218593567609787, 0.11460474133491516, -0.056878771632909775, -0.1581847369670868, -0.10643894970417023, -0.0246925987303257, -0.28826284408569336, 0.23830166459083557, -0.1498183310031891, -0.09996803104877472, 0.06172499805688858, -0.0970490574836731, -0.16200324892997742, -0.12927524745464325, -0.18091663718223572, -0.27306440472602844, 0.20130182802677155, 0.23052413761615753, 0.3202398419380188, -0.07290707528591156, 0.22520895302295685, 0.3680821657180786, 0.04836374521255493, -0.21607205271720886, -0.4300343692302704, 0.08568023145198822, -0.17773447930812836, -0.21882808208465576, -0.07484696805477142, 0.22306987643241882, 0.20902660489082336, -0.047926466912031174, -0.14242848753929138, 0.1482764184474945, -0.222085639834404, 0.41891831159591675, -0.1370280385017395, 0.2694522738456726, -0.06965658068656921, 0.02930605039000511, 0.01666761375963688, 0.25400540232658386, 0.05881998687982559, -0.08980180323123932, -0.07270645350217819, 0.47423404455184937, 0.18140259385108948, 0.17011591792106628, -0.04807092621922493, -0.21626819670200348, 0.051984116435050964, -0.1783173829317093, -0.12091567367315292, -0.11881645023822784, 0.1364072859287262, -0.08057232201099396, 0.14888812601566315, 0.15232877433300018, -0.10698716342449188, 0.31200864911079407, 0.7600829601287842, 0.19691896438598633, -0.011016987264156342, 0.015740767121315002, -0.057213060557842255, -0.21779218316078186, 0.3338564336299896, -0.05868256464600563, 0.31038784980773926, 0.1047315001487732, 0.1271648108959198, -0.046209461987018585, -0.21965014934539795, -0.1544356495141983, 0.12464785575866699, -0.21436865627765656, -0.19197607040405273, 0.3080340027809143, 0.28208741545677185, -0.15836751461029053, -0.3537829518318176, 0.09401574730873108, -0.012764312326908112, 0.02619161084294319, -0.1580013632774353, 0.2172369807958603, -0.16652941703796387, -0.2780846357345581, -0.2864150404930115, 0.13615667819976807, -0.12220340967178345, -0.09216566383838654, -0.041263237595558167, 0.42542991042137146, -0.03665441274642944, 0.19515129923820496, -0.31497251987457275, 0.08951936662197113, 0.2266039103269577, -0.2663280665874481, -0.07168535143136978, -0.1902884840965271, -0.3949197232723236, 0.04223187640309334, -0.09523043036460876, -0.09299641847610474, 0.3783295154571533, -0.047315895557403564, -0.06796004623174667, -0.2881453037261963, -0.17254012823104858, 0.10717794299125671, -0.09261167049407959, -0.15536801517009735, 0.16724851727485657, -0.03133857250213623, -0.10115887969732285, -0.29874542355537415, 0.2937970757484436, -0.3053131103515625, -0.29914355278015137, -0.051986560225486755, 0.09890660643577576, 0.030109476298093796, -0.2803474962711334, -0.4286240041255951, 0.273578405380249, -0.31724387407302856, 0.07546795159578323, -0.14892902970314026, 0.1862262636423111, 0.33093464374542236, 0.00895372498780489, -0.014560827054083347, -0.0640399232506752, 0.16439403593540192, -0.46741002798080444, -0.1409536451101303, 0.32257840037345886, 0.01876109279692173, -0.21630431711673737, -0.32459110021591187, -0.27572470903396606, 0.3477241098880768, 0.1923890858888626, -0.5803960561752319, -0.21442312002182007, -0.04890017956495285, 0.2480318546295166, -0.051258526742458344, -0.04649581015110016, 0.5745421648025513, 0.019725235179066658, -0.17946359515190125, -0.16727817058563232, -0.3318409025669098, 0.35973137617111206, 0.4192635118961334, 0.24948740005493164, -0.011158943176269531, 0.17781507968902588, 0.20092041790485382, 0.6707462072372437, 0.2019195854663849, -0.2590573728084564, 0.3317308723926544, 0.10723195970058441, 0.07499716430902481, -0.20349696278572083, -0.3130224645137787, 0.18576037883758545, -0.18160343170166016, 0.019731584936380386, 0.2719839811325073, 0.006251104176044464, -0.28018441796302795, 0.01774188131093979, 0.2188195437192917, -0.22534486651420593, -0.3280583918094635, 0.2597454786300659, -0.34242767095565796, 0.24094820022583008, 0.036370452493429184, 0.31580084562301636, -0.5820142030715942, -0.24272406101226807, 0.19462767243385315, -0.3359467387199402, 0.27984508872032166, 0.044498294591903687, -0.5836003422737122, 0.1214708536863327, -0.5380221009254456, 0.18194139003753662, 0.31462833285331726, 0.27240750193595886, -0.09202545136213303, -0.24652618169784546, 0.04334747791290283, -0.14713142812252045, 0.5711410045623779, 0.04097280651330948, 0.4085800051689148, 0.16992641985416412, -0.1302473247051239, -0.19947309792041779, -0.22471268475055695, 0.017234746366739273, 0.28013738989830017, 0.3264990448951721, 0.4008479714393616, -0.345244437456131, -0.36327338218688965, -0.26576635241508484, 0.007364353165030479, -0.04618103802204132, 0.007107640616595745, -0.12583328783512115, 0.18938520550727844, 0.01648675464093685, 0.17434582114219666, -0.014980485662817955, 0.11830264329910278, 0.016040049493312836, -0.1365458369255066, -0.039133474230766296, -0.21942639350891113, 0.12824128568172455, 0.226437509059906, 0.4735945761203766, 0.15032486617565155, 0.03246128931641579, 0.0332147479057312, 0.2151574343442917, -0.5671091079711914, 0.2659575343132019, -0.0888490378856659, -0.004131823778152466, 0.07464417070150375, 0.144438236951828, -0.03030157834291458, 0.33789771795272827, -0.04252493754029274, 0.14571355283260345, -0.1286291778087616, 0.008956722915172577, -0.5539687275886536, 0.4854544699192047, 0.3874589204788208, 0.13246634602546692, -0.0448899008333683, -0.24685712158679962, 0.17346283793449402, 0.07412011921405792, -0.27653104066848755, 0.1322598159313202, -0.4306930899620056, -0.43199458718299866, 0.18579725921154022, 0.20948642492294312, 0.923247218132019, 0.33202195167541504, 0.37195777893066406, 0.10070403665304184, 0.10358044505119324, 0.26425108313560486, -0.23411208391189575, 0.40925103425979614, -0.36936435103416443, -0.04631776735186577, 0.024538477882742882, -0.16673335433006287, -0.22738394141197205, -0.01042589545249939, -0.01099366694688797, 0.30259501934051514, 0.32405006885528564, 0.5999369025230408, -0.11211933940649033, 0.1666991412639618, 0.21569152176380157, -0.15811008214950562, -0.24923133850097656, 0.20107324421405792, -0.2923039197921753, 0.3152405619621277, -0.11240813881158829, -0.07410877197980881, -0.016509655863046646, -0.3513416647911072, 0.06714028120040894, 0.06094175577163696, -0.3365171253681183, 0.3048413395881653, 0.13346193730831146, -0.2726666331291199, -0.29698777198791504, 0.2550767958164215, 0.11198686063289642, 0.08252747356891632, -0.048599980771541595, -0.03518524393439293, 0.4006442427635193, 0.3504589796066284, -0.0068908920511603355, -0.20158877968788147, 0.18641279637813568, 0.0638754814863205, -0.01289377361536026, 0.030242688953876495, -0.056405920535326004, -0.30158257484436035, -0.2525116205215454, 0.14820444583892822, 0.0033721178770065308, -0.41296207904815674, -0.055318210273981094, 0.061444804072380066, -0.066788449883461, -0.09413720667362213, 0.15088020265102386, -0.026068054139614105, -0.10793968290090561, 0.31515368819236755, 0.11733828485012054, -0.24304215610027313, 0.05235801637172699, 0.4748321771621704, -0.04039723426103592, 0.031817495822906494, 0.4154278635978699, -0.15281841158866882, -0.10380657762289047, -0.25539082288742065, -0.284172922372818, -0.10206026583909988, -0.44884106516838074, 0.1122080534696579, -0.21940632164478302, -0.4019114375114441, 0.044232387095689774, 0.280818372964859, 0.014707226306200027, 0.3184961676597595, -0.011618640273809433, -0.12495823204517365, -0.376972496509552, -0.10379031300544739, -0.10658225417137146, 0.2671777307987213, 0.2795185446739197, 0.2843483090400696, -0.29586637020111084, 0.24922624230384827, -0.3831096589565277, -0.10714218765497208, -0.18716973066329956, 0.43791303038597107, -0.03913825377821922, -0.3655831515789032, -0.0091466773301363, 0.0018548984080553055, 0.12997101247310638, 0.17754501104354858, -0.6386589407920837, -0.29261884093284607, -0.09099164605140686, 0.08186077326536179, -0.007587585598230362, -0.15982197225093842, -0.23928211629390717, -0.017213795334100723, 0.18238520622253418, -0.4274033010005951, 0.09215673804283142, 0.15121665596961975, 0.04703156650066376, 0.23718662559986115, -0.16102977097034454, 0.121455617249012, 0.2881677746772766, -0.18652740120887756, -0.1841484010219574, -0.0762285441160202, 0.0804811418056488, 0.25701698660850525, -0.06946804374456406, 0.020479321479797363, -0.21040309965610504, 0.03047323226928711, 0.08927437663078308, 0.14279496669769287, 0.2369287610054016, -0.024753130972385406, -0.21566127240657806, 0.0005509094335138798, 0.18279987573623657, 0.11411988735198975, -0.0785531997680664, -0.3289754092693329, 0.28022289276123047, 0.27836498618125916, -0.11751759797334671, -0.010236735455691814, 0.16770797967910767, -0.09938845783472061, 0.2528514266014099, 0.20715394616127014, 0.10758784413337708, 0.05261094868183136, 0.2696117162704468, 0.12649419903755188, 0.4050406217575073, -0.34832853078842163, 0.0894213616847992, 0.06441638618707657, 0.10164904594421387, 0.03777812421321869, 0.3812151849269867, -0.15324416756629944, 0.08992215991020203, 0.14838305115699768, 0.1883368045091629, 0.20253945887088776, 0.26289013028144836, 0.21354132890701294, -0.18786436319351196, -0.034120991826057434, -0.24108661711215973, 0.14363622665405273, -0.14272630214691162, 0.4156596064567566, 0.15059252083301544, 0.1928555965423584, -0.11485254019498825, -0.4619385302066803, -0.246268168091774, 0.23536333441734314, -0.3245421051979065, -0.30920878052711487, -0.04867762327194214, -0.08018514513969421, 0.05592885613441467, 0.19456128776073456, -0.07929010689258575, 0.20385880768299103, 0.3428385257720947, -0.008660323917865753, -0.013750255107879639, -0.08435370773077011, -0.17061740159988403, 0.1139787882566452, 0.27486473321914673, -0.08173885941505432, 0.4469367265701294, 0.010800592601299286, -0.051569342613220215, -0.23447129130363464, 0.41141682863235474, 0.2861284613609314, 0.19494768977165222, -0.16886268556118011, 0.06395315378904343, 0.2006472647190094, 0.030613550916314125, -0.3546893298625946, 0.32865193486213684, 0.1511445790529251, -0.29302749037742615, 0.3680057227611542, 0.12379536032676697, -0.2321556657552719, 0.2764037847518921, -0.10419623553752899, -0.2014673352241516, -0.04988923296332359, 0.32243701815605164, 0.09970740228891373, -0.039931803941726685, -0.1949627548456192, 0.11112028360366821, -0.14457139372825623, -0.2853398621082306, 0.15934598445892334, -0.023898055776953697, 0.46766120195388794, -0.2756754159927368, 0.1172051727771759, -0.06182485446333885, 0.622086226940155, -0.02922753617167473, 0.12432871758937836, -0.35013771057128906, 0.10264365375041962, -0.33316677808761597, 0.19840949773788452, -0.08381755650043488, 0.15374277532100677, -0.3975834548473358, 0.20426514744758606, -0.11549846082925797, -0.02346603199839592, -0.1180424839258194, -0.007886635139584541, 0.14740677177906036, 0.17893192172050476, -0.38691768050193787, 0.15548142790794373, -0.08625927567481995, -0.006267234683036804, 0.29177355766296387, -0.3766750693321228, 0.22199079394340515, 0.04247986152768135, 0.20691066980361938, 0.010986395180225372, -0.021723732352256775, -0.054806556552648544, 0.3365737497806549, 0.6232416033744812, 0.347029447555542, 0.14255061745643616, -0.10102751851081848, 0.08155348151922226, -0.34743812680244446, 0.014104198664426804, -0.0608881413936615, -0.20964989066123962, 0.09756805002689362, 0.525830864906311, -0.22562745213508606, 0.13194666802883148, -0.17804594337940216, 0.23669439554214478, 0.3822764754295349, -0.15272890031337738, 0.0618000403046608, 0.048225969076156616, -0.2598409056663513, -0.005199410952627659, -0.12586645781993866, 0.4537956118583679, 0.0071828290820121765, 0.3238304853439331, -0.3592909574508667, -0.5417629480361938, 0.43290975689888, -0.45112597942352295, -0.30252549052238464, 0.12327875941991806, 0.23878563940525055, 0.34956875443458557, -0.06000041216611862, -0.5436675548553467, -0.1724909543991089, 0.26911383867263794, -0.030661188066005707, -0.15704528987407684, 0.20768439769744873, -0.14864379167556763, -0.041075609624385834, -0.11675439774990082, 0.17646870017051697, 0.10152650624513626, -0.2914128005504608, 0.24369895458221436, -0.3701035976409912 ]
https://github.com/huggingface/datasets/issues/160
caching in map causes same result to be returned for train, validation and test
Ok, I think @lhoestq has already found a solution :-) Maybe you can chime in @lhoestq
hello, I am working on a program that uses the `nlp` library with the `SST2` dataset. The rough outline of the program is: ``` import nlp as nlp_datasets ... parser.add_argument('--dataset', help='HuggingFace Datasets id', default=['glue', 'sst2'], nargs='+') ... dataset = nlp_datasets.load_dataset(*args.dataset) ... # Create feature vocabs vocabs = create_vocabs(dataset.values(), vectorizers) ... # Create a function to vectorize based on vectorizers and vocabs: print('TS', train_set.num_rows) print('VS', valid_set.num_rows) print('ES', test_set.num_rows) # factory method to create a `convert_to_features` function based on vocabs convert_to_features = create_featurizer(vectorizers, vocabs) train_set = train_set.map(convert_to_features, batched=True) train_set.set_format(type='torch', columns=list(vectorizers.keys()) + ['y', 'lengths']) train_loader = torch.utils.data.DataLoader(train_set, batch_size=args.batchsz) valid_set = valid_set.map(convert_to_features, batched=True) valid_set.set_format(type='torch', columns=list(vectorizers.keys()) + ['y', 'lengths']) valid_loader = torch.utils.data.DataLoader(valid_set, batch_size=args.batchsz) test_set = test_set.map(convert_to_features, batched=True) test_set.set_format(type='torch', columns=list(vectorizers.keys()) + ['y', 'lengths']) test_loader = torch.utils.data.DataLoader(test_set, batch_size=args.batchsz) print('TS', train_set.num_rows) print('VS', valid_set.num_rows) print('ES', test_set.num_rows) ``` Im not sure if Im using it incorrectly, but the results are not what I expect. Namely, the `.map()` seems to grab the datset from the cache and then loses track of what the specific dataset is, instead using my training data for all datasets: ``` TS 67349 VS 872 ES 1821 TS 67349 VS 67349 ES 67349 ``` The behavior changes if I turn off the caching but then the results fail: ``` train_set = train_set.map(convert_to_features, batched=True, load_from_cache_file=False) ... valid_set = valid_set.map(convert_to_features, batched=True, load_from_cache_file=False) ... test_set = test_set.map(convert_to_features, batched=True, load_from_cache_file=False) ``` Now I get the right set of features back... ``` TS 67349 VS 872 ES 1821 100%|██████████| 68/68 [00:00<00:00, 92.78it/s] 100%|██████████| 1/1 [00:00<00:00, 75.47it/s] 0%| | 0/2 [00:00<?, ?it/s]TS 67349 VS 872 ES 1821 100%|██████████| 2/2 [00:00<00:00, 77.19it/s] ``` but I think its losing track of the original training set: ``` Traceback (most recent call last): File "/home/dpressel/dev/work/baseline/api-examples/layers-classify-hf-datasets.py", line 148, in <module> for x in train_loader: File "/home/dpressel/anaconda3/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 345, in __next__ data = self._next_data() File "/home/dpressel/anaconda3/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 385, in _next_data data = self._dataset_fetcher.fetch(index) # may raise StopIteration File "/home/dpressel/anaconda3/lib/python3.7/site-packages/torch/utils/data/_utils/fetch.py", line 44, in fetch data = [self.dataset[idx] for idx in possibly_batched_index] File "/home/dpressel/anaconda3/lib/python3.7/site-packages/torch/utils/data/_utils/fetch.py", line 44, in <listcomp> data = [self.dataset[idx] for idx in possibly_batched_index] File "/home/dpressel/anaconda3/lib/python3.7/site-packages/nlp/arrow_dataset.py", line 338, in __getitem__ output_all_columns=self._output_all_columns, File "/home/dpressel/anaconda3/lib/python3.7/site-packages/nlp/arrow_dataset.py", line 294, in _getitem outputs = self._unnest(self._data.slice(key, 1).to_pydict()) File "pyarrow/table.pxi", line 1211, in pyarrow.lib.Table.slice File "pyarrow/public-api.pxi", line 390, in pyarrow.lib.pyarrow_wrap_table File "pyarrow/error.pxi", line 85, in pyarrow.lib.check_status pyarrow.lib.ArrowInvalid: Column 3: In chunk 0: Invalid: Length spanned by list offsets (15859698) larger than values array (length 100000) Process finished with exit code 1 ``` The full-example program (minus the print stmts) is here: https://github.com/dpressel/mead-baseline/pull/620/files
16
caching in map causes same result to be returned for train, validation and test hello, I am working on a program that uses the `nlp` library with the `SST2` dataset. The rough outline of the program is: ``` import nlp as nlp_datasets ... parser.add_argument('--dataset', help='HuggingFace Datasets id', default=['glue', 'sst2'], nargs='+') ... dataset = nlp_datasets.load_dataset(*args.dataset) ... # Create feature vocabs vocabs = create_vocabs(dataset.values(), vectorizers) ... # Create a function to vectorize based on vectorizers and vocabs: print('TS', train_set.num_rows) print('VS', valid_set.num_rows) print('ES', test_set.num_rows) # factory method to create a `convert_to_features` function based on vocabs convert_to_features = create_featurizer(vectorizers, vocabs) train_set = train_set.map(convert_to_features, batched=True) train_set.set_format(type='torch', columns=list(vectorizers.keys()) + ['y', 'lengths']) train_loader = torch.utils.data.DataLoader(train_set, batch_size=args.batchsz) valid_set = valid_set.map(convert_to_features, batched=True) valid_set.set_format(type='torch', columns=list(vectorizers.keys()) + ['y', 'lengths']) valid_loader = torch.utils.data.DataLoader(valid_set, batch_size=args.batchsz) test_set = test_set.map(convert_to_features, batched=True) test_set.set_format(type='torch', columns=list(vectorizers.keys()) + ['y', 'lengths']) test_loader = torch.utils.data.DataLoader(test_set, batch_size=args.batchsz) print('TS', train_set.num_rows) print('VS', valid_set.num_rows) print('ES', test_set.num_rows) ``` Im not sure if Im using it incorrectly, but the results are not what I expect. Namely, the `.map()` seems to grab the datset from the cache and then loses track of what the specific dataset is, instead using my training data for all datasets: ``` TS 67349 VS 872 ES 1821 TS 67349 VS 67349 ES 67349 ``` The behavior changes if I turn off the caching but then the results fail: ``` train_set = train_set.map(convert_to_features, batched=True, load_from_cache_file=False) ... valid_set = valid_set.map(convert_to_features, batched=True, load_from_cache_file=False) ... test_set = test_set.map(convert_to_features, batched=True, load_from_cache_file=False) ``` Now I get the right set of features back... ``` TS 67349 VS 872 ES 1821 100%|██████████| 68/68 [00:00<00:00, 92.78it/s] 100%|██████████| 1/1 [00:00<00:00, 75.47it/s] 0%| | 0/2 [00:00<?, ?it/s]TS 67349 VS 872 ES 1821 100%|██████████| 2/2 [00:00<00:00, 77.19it/s] ``` but I think its losing track of the original training set: ``` Traceback (most recent call last): File "/home/dpressel/dev/work/baseline/api-examples/layers-classify-hf-datasets.py", line 148, in <module> for x in train_loader: File "/home/dpressel/anaconda3/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 345, in __next__ data = self._next_data() File "/home/dpressel/anaconda3/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 385, in _next_data data = self._dataset_fetcher.fetch(index) # may raise StopIteration File "/home/dpressel/anaconda3/lib/python3.7/site-packages/torch/utils/data/_utils/fetch.py", line 44, in fetch data = [self.dataset[idx] for idx in possibly_batched_index] File "/home/dpressel/anaconda3/lib/python3.7/site-packages/torch/utils/data/_utils/fetch.py", line 44, in <listcomp> data = [self.dataset[idx] for idx in possibly_batched_index] File "/home/dpressel/anaconda3/lib/python3.7/site-packages/nlp/arrow_dataset.py", line 338, in __getitem__ output_all_columns=self._output_all_columns, File "/home/dpressel/anaconda3/lib/python3.7/site-packages/nlp/arrow_dataset.py", line 294, in _getitem outputs = self._unnest(self._data.slice(key, 1).to_pydict()) File "pyarrow/table.pxi", line 1211, in pyarrow.lib.Table.slice File "pyarrow/public-api.pxi", line 390, in pyarrow.lib.pyarrow_wrap_table File "pyarrow/error.pxi", line 85, in pyarrow.lib.check_status pyarrow.lib.ArrowInvalid: Column 3: In chunk 0: Invalid: Length spanned by list offsets (15859698) larger than values array (length 100000) Process finished with exit code 1 ``` The full-example program (minus the print stmts) is here: https://github.com/dpressel/mead-baseline/pull/620/files Ok, I think @lhoestq has already found a solution :-) Maybe you can chime in @lhoestq
[ -0.1263226568698883, -0.22070880234241486, -0.10063180327415466, 0.27801087498664856, 0.2454756796360016, -0.2052232325077057, 0.13721056282520294, 0.512859582901001, 0.18828648328781128, -0.06233574450016022, 0.1278197318315506, 0.3891346752643585, 0.0037763724103569984, -0.160617396235466, -0.010743596591055393, 0.024212440475821495, 0.09608042240142822, 0.2350524514913559, -0.14556188881397247, -0.16482335329055786, 0.08189395070075989, 0.21298398077487946, -0.04241039231419563, 0.11652659624814987, -0.39034968614578247, 0.041289687156677246, 0.21235691010951996, -0.23089024424552917, 0.06845805048942566, -0.2570651173591614, 0.16785086691379547, -0.09324321150779724, 0.025833208113908768, 0.16631752252578735, -0.00010973815369652584, 0.006798304617404938, -0.015387766063213348, -0.1385694295167923, -0.007275183219462633, 0.040194764733314514, 0.11813383549451828, -0.21172894537448883, -0.1091824322938919, -0.3121313452720642, -0.33201169967651367, -0.03766108304262161, 0.01780948042869568, -0.3556599020957947, 0.3128575086593628, 0.14745260775089264, 0.26071029901504517, 0.2249092161655426, -0.2538127899169922, 0.2111358791589737, 0.14512750506401062, -0.029327861964702606, -0.174197256565094, -0.04230552166700363, -0.043978914618492126, -0.3344651758670807, -0.37676528096199036, 0.5254564881324768, -0.07658141106367111, 0.1701412945985794, 0.21466660499572754, 0.2250557690858841, 0.17260560393333435, 0.035937726497650146, 0.1429363340139389, -0.11396292597055435, 0.011095017194747925, -0.2269171178340912, -0.02711673453450203, -0.3733724355697632, -0.4186411201953888, -0.07852593064308167, 0.13762545585632324, 0.1810445636510849, -0.13639314472675323, -0.06371608376502991, -0.4319378435611725, 0.23928974568843842, 0.0652494728565216, -0.012788243591785431, 0.11952652037143707, 0.29516083002090454, 0.043806225061416626, 0.19522294402122498, 0.12944671511650085, -0.06973235309123993, -0.02255908027291298, -0.21451671421527863, -0.05897124484181404, 0.2264009565114975, -0.43598538637161255, 0.07208245992660522, 0.43152061104774475, -0.14041411876678467, -0.05324293673038483, 0.030638067051768303, 0.39193105697631836, 0.07921384274959564, 0.11681805551052094, -0.008492052555084229, -0.10416075587272644, 0.5898680090904236, 0.0443217009305954, 0.1711840033531189, -0.014969944953918457, -0.1982785016298294, -0.3560169041156769, 0.004987534135580063, 0.2880179286003113, -0.2866009771823883, 0.4284117817878723, 0.4023604691028595, -0.042260151356458664, -0.12152989208698273, -0.030102383345365524, 0.09402373433113098, -0.33085355162620544, 0.055669743567705154, 0.0587298683822155, 0.3139576017856598, -0.22545050084590912, 0.14926615357398987, -0.17376767098903656, -0.10335467755794525, -0.38496920466423035, 0.12735100090503693, -0.33784613013267517, -0.03332405164837837, -0.49621880054473877, 0.0015165433287620544, 0.2853848338127136, -0.0028596948832273483, 0.28535178303718567, -0.03844526410102844, -0.13722018897533417, -0.30198928713798523, 0.10317374765872955, -0.3985119163990021, 0.5702312588691711, -0.1072293072938919, -0.19701732695102692, 0.24102161824703217, 0.1303786337375641, 0.08526431024074554, -0.2976880967617035, -0.19837728142738342, -0.16980764269828796, -0.20906905829906464, 0.25986045598983765, 0.24224528670310974, -0.07942773401737213, 0.14139583706855774, 0.09248201549053192, 0.0776790976524353, 0.3432585299015045, -0.23285478353500366, 0.10284040123224258, -0.20148901641368866, -0.2819802165031433, -0.204358771443367, 0.16256852447986603, 0.2623097598552704, 0.06677639484405518, -0.13737253844738007, 0.40179675817489624, 0.23718330264091492, 0.14729051291942596, 0.41380682587623596, -0.1965341717004776, 0.30949440598487854, -0.4334914982318878, 0.34861910343170166, 0.5064769387245178, -0.32673171162605286, -0.4963451325893402, 0.09944847971200943, -0.15631616115570068, 0.1002885028719902, 0.10244907438755035, 0.15137307345867157, 0.029087437316775322, 0.014419620856642723, 0.1285368949174881, 0.01870272494852543, -0.0005148481577634811, 0.208420529961586, -0.31692758202552795, -0.021934084594249725, 0.5500645637512207, -0.25246700644493103, 0.02847260981798172, -0.13123688101768494, -0.05504279583692551, 0.02193329855799675, 0.0067679062485694885, -0.11218976974487305, 0.1218593567609787, 0.11460474133491516, -0.056878771632909775, -0.1581847369670868, -0.10643894970417023, -0.0246925987303257, -0.28826284408569336, 0.23830166459083557, -0.1498183310031891, -0.09996803104877472, 0.06172499805688858, -0.0970490574836731, -0.16200324892997742, -0.12927524745464325, -0.18091663718223572, -0.27306440472602844, 0.20130182802677155, 0.23052413761615753, 0.3202398419380188, -0.07290707528591156, 0.22520895302295685, 0.3680821657180786, 0.04836374521255493, -0.21607205271720886, -0.4300343692302704, 0.08568023145198822, -0.17773447930812836, -0.21882808208465576, -0.07484696805477142, 0.22306987643241882, 0.20902660489082336, -0.047926466912031174, -0.14242848753929138, 0.1482764184474945, -0.222085639834404, 0.41891831159591675, -0.1370280385017395, 0.2694522738456726, -0.06965658068656921, 0.02930605039000511, 0.01666761375963688, 0.25400540232658386, 0.05881998687982559, -0.08980180323123932, -0.07270645350217819, 0.47423404455184937, 0.18140259385108948, 0.17011591792106628, -0.04807092621922493, -0.21626819670200348, 0.051984116435050964, -0.1783173829317093, -0.12091567367315292, -0.11881645023822784, 0.1364072859287262, -0.08057232201099396, 0.14888812601566315, 0.15232877433300018, -0.10698716342449188, 0.31200864911079407, 0.7600829601287842, 0.19691896438598633, -0.011016987264156342, 0.015740767121315002, -0.057213060557842255, -0.21779218316078186, 0.3338564336299896, -0.05868256464600563, 0.31038784980773926, 0.1047315001487732, 0.1271648108959198, -0.046209461987018585, -0.21965014934539795, -0.1544356495141983, 0.12464785575866699, -0.21436865627765656, -0.19197607040405273, 0.3080340027809143, 0.28208741545677185, -0.15836751461029053, -0.3537829518318176, 0.09401574730873108, -0.012764312326908112, 0.02619161084294319, -0.1580013632774353, 0.2172369807958603, -0.16652941703796387, -0.2780846357345581, -0.2864150404930115, 0.13615667819976807, -0.12220340967178345, -0.09216566383838654, -0.041263237595558167, 0.42542991042137146, -0.03665441274642944, 0.19515129923820496, -0.31497251987457275, 0.08951936662197113, 0.2266039103269577, -0.2663280665874481, -0.07168535143136978, -0.1902884840965271, -0.3949197232723236, 0.04223187640309334, -0.09523043036460876, -0.09299641847610474, 0.3783295154571533, -0.047315895557403564, -0.06796004623174667, -0.2881453037261963, -0.17254012823104858, 0.10717794299125671, -0.09261167049407959, -0.15536801517009735, 0.16724851727485657, -0.03133857250213623, -0.10115887969732285, -0.29874542355537415, 0.2937970757484436, -0.3053131103515625, -0.29914355278015137, -0.051986560225486755, 0.09890660643577576, 0.030109476298093796, -0.2803474962711334, -0.4286240041255951, 0.273578405380249, -0.31724387407302856, 0.07546795159578323, -0.14892902970314026, 0.1862262636423111, 0.33093464374542236, 0.00895372498780489, -0.014560827054083347, -0.0640399232506752, 0.16439403593540192, -0.46741002798080444, -0.1409536451101303, 0.32257840037345886, 0.01876109279692173, -0.21630431711673737, -0.32459110021591187, -0.27572470903396606, 0.3477241098880768, 0.1923890858888626, -0.5803960561752319, -0.21442312002182007, -0.04890017956495285, 0.2480318546295166, -0.051258526742458344, -0.04649581015110016, 0.5745421648025513, 0.019725235179066658, -0.17946359515190125, -0.16727817058563232, -0.3318409025669098, 0.35973137617111206, 0.4192635118961334, 0.24948740005493164, -0.011158943176269531, 0.17781507968902588, 0.20092041790485382, 0.6707462072372437, 0.2019195854663849, -0.2590573728084564, 0.3317308723926544, 0.10723195970058441, 0.07499716430902481, -0.20349696278572083, -0.3130224645137787, 0.18576037883758545, -0.18160343170166016, 0.019731584936380386, 0.2719839811325073, 0.006251104176044464, -0.28018441796302795, 0.01774188131093979, 0.2188195437192917, -0.22534486651420593, -0.3280583918094635, 0.2597454786300659, -0.34242767095565796, 0.24094820022583008, 0.036370452493429184, 0.31580084562301636, -0.5820142030715942, -0.24272406101226807, 0.19462767243385315, -0.3359467387199402, 0.27984508872032166, 0.044498294591903687, -0.5836003422737122, 0.1214708536863327, -0.5380221009254456, 0.18194139003753662, 0.31462833285331726, 0.27240750193595886, -0.09202545136213303, -0.24652618169784546, 0.04334747791290283, -0.14713142812252045, 0.5711410045623779, 0.04097280651330948, 0.4085800051689148, 0.16992641985416412, -0.1302473247051239, -0.19947309792041779, -0.22471268475055695, 0.017234746366739273, 0.28013738989830017, 0.3264990448951721, 0.4008479714393616, -0.345244437456131, -0.36327338218688965, -0.26576635241508484, 0.007364353165030479, -0.04618103802204132, 0.007107640616595745, -0.12583328783512115, 0.18938520550727844, 0.01648675464093685, 0.17434582114219666, -0.014980485662817955, 0.11830264329910278, 0.016040049493312836, -0.1365458369255066, -0.039133474230766296, -0.21942639350891113, 0.12824128568172455, 0.226437509059906, 0.4735945761203766, 0.15032486617565155, 0.03246128931641579, 0.0332147479057312, 0.2151574343442917, -0.5671091079711914, 0.2659575343132019, -0.0888490378856659, -0.004131823778152466, 0.07464417070150375, 0.144438236951828, -0.03030157834291458, 0.33789771795272827, -0.04252493754029274, 0.14571355283260345, -0.1286291778087616, 0.008956722915172577, -0.5539687275886536, 0.4854544699192047, 0.3874589204788208, 0.13246634602546692, -0.0448899008333683, -0.24685712158679962, 0.17346283793449402, 0.07412011921405792, -0.27653104066848755, 0.1322598159313202, -0.4306930899620056, -0.43199458718299866, 0.18579725921154022, 0.20948642492294312, 0.923247218132019, 0.33202195167541504, 0.37195777893066406, 0.10070403665304184, 0.10358044505119324, 0.26425108313560486, -0.23411208391189575, 0.40925103425979614, -0.36936435103416443, -0.04631776735186577, 0.024538477882742882, -0.16673335433006287, -0.22738394141197205, -0.01042589545249939, -0.01099366694688797, 0.30259501934051514, 0.32405006885528564, 0.5999369025230408, -0.11211933940649033, 0.1666991412639618, 0.21569152176380157, -0.15811008214950562, -0.24923133850097656, 0.20107324421405792, -0.2923039197921753, 0.3152405619621277, -0.11240813881158829, -0.07410877197980881, -0.016509655863046646, -0.3513416647911072, 0.06714028120040894, 0.06094175577163696, -0.3365171253681183, 0.3048413395881653, 0.13346193730831146, -0.2726666331291199, -0.29698777198791504, 0.2550767958164215, 0.11198686063289642, 0.08252747356891632, -0.048599980771541595, -0.03518524393439293, 0.4006442427635193, 0.3504589796066284, -0.0068908920511603355, -0.20158877968788147, 0.18641279637813568, 0.0638754814863205, -0.01289377361536026, 0.030242688953876495, -0.056405920535326004, -0.30158257484436035, -0.2525116205215454, 0.14820444583892822, 0.0033721178770065308, -0.41296207904815674, -0.055318210273981094, 0.061444804072380066, -0.066788449883461, -0.09413720667362213, 0.15088020265102386, -0.026068054139614105, -0.10793968290090561, 0.31515368819236755, 0.11733828485012054, -0.24304215610027313, 0.05235801637172699, 0.4748321771621704, -0.04039723426103592, 0.031817495822906494, 0.4154278635978699, -0.15281841158866882, -0.10380657762289047, -0.25539082288742065, -0.284172922372818, -0.10206026583909988, -0.44884106516838074, 0.1122080534696579, -0.21940632164478302, -0.4019114375114441, 0.044232387095689774, 0.280818372964859, 0.014707226306200027, 0.3184961676597595, -0.011618640273809433, -0.12495823204517365, -0.376972496509552, -0.10379031300544739, -0.10658225417137146, 0.2671777307987213, 0.2795185446739197, 0.2843483090400696, -0.29586637020111084, 0.24922624230384827, -0.3831096589565277, -0.10714218765497208, -0.18716973066329956, 0.43791303038597107, -0.03913825377821922, -0.3655831515789032, -0.0091466773301363, 0.0018548984080553055, 0.12997101247310638, 0.17754501104354858, -0.6386589407920837, -0.29261884093284607, -0.09099164605140686, 0.08186077326536179, -0.007587585598230362, -0.15982197225093842, -0.23928211629390717, -0.017213795334100723, 0.18238520622253418, -0.4274033010005951, 0.09215673804283142, 0.15121665596961975, 0.04703156650066376, 0.23718662559986115, -0.16102977097034454, 0.121455617249012, 0.2881677746772766, -0.18652740120887756, -0.1841484010219574, -0.0762285441160202, 0.0804811418056488, 0.25701698660850525, -0.06946804374456406, 0.020479321479797363, -0.21040309965610504, 0.03047323226928711, 0.08927437663078308, 0.14279496669769287, 0.2369287610054016, -0.024753130972385406, -0.21566127240657806, 0.0005509094335138798, 0.18279987573623657, 0.11411988735198975, -0.0785531997680664, -0.3289754092693329, 0.28022289276123047, 0.27836498618125916, -0.11751759797334671, -0.010236735455691814, 0.16770797967910767, -0.09938845783472061, 0.2528514266014099, 0.20715394616127014, 0.10758784413337708, 0.05261094868183136, 0.2696117162704468, 0.12649419903755188, 0.4050406217575073, -0.34832853078842163, 0.0894213616847992, 0.06441638618707657, 0.10164904594421387, 0.03777812421321869, 0.3812151849269867, -0.15324416756629944, 0.08992215991020203, 0.14838305115699768, 0.1883368045091629, 0.20253945887088776, 0.26289013028144836, 0.21354132890701294, -0.18786436319351196, -0.034120991826057434, -0.24108661711215973, 0.14363622665405273, -0.14272630214691162, 0.4156596064567566, 0.15059252083301544, 0.1928555965423584, -0.11485254019498825, -0.4619385302066803, -0.246268168091774, 0.23536333441734314, -0.3245421051979065, -0.30920878052711487, -0.04867762327194214, -0.08018514513969421, 0.05592885613441467, 0.19456128776073456, -0.07929010689258575, 0.20385880768299103, 0.3428385257720947, -0.008660323917865753, -0.013750255107879639, -0.08435370773077011, -0.17061740159988403, 0.1139787882566452, 0.27486473321914673, -0.08173885941505432, 0.4469367265701294, 0.010800592601299286, -0.051569342613220215, -0.23447129130363464, 0.41141682863235474, 0.2861284613609314, 0.19494768977165222, -0.16886268556118011, 0.06395315378904343, 0.2006472647190094, 0.030613550916314125, -0.3546893298625946, 0.32865193486213684, 0.1511445790529251, -0.29302749037742615, 0.3680057227611542, 0.12379536032676697, -0.2321556657552719, 0.2764037847518921, -0.10419623553752899, -0.2014673352241516, -0.04988923296332359, 0.32243701815605164, 0.09970740228891373, -0.039931803941726685, -0.1949627548456192, 0.11112028360366821, -0.14457139372825623, -0.2853398621082306, 0.15934598445892334, -0.023898055776953697, 0.46766120195388794, -0.2756754159927368, 0.1172051727771759, -0.06182485446333885, 0.622086226940155, -0.02922753617167473, 0.12432871758937836, -0.35013771057128906, 0.10264365375041962, -0.33316677808761597, 0.19840949773788452, -0.08381755650043488, 0.15374277532100677, -0.3975834548473358, 0.20426514744758606, -0.11549846082925797, -0.02346603199839592, -0.1180424839258194, -0.007886635139584541, 0.14740677177906036, 0.17893192172050476, -0.38691768050193787, 0.15548142790794373, -0.08625927567481995, -0.006267234683036804, 0.29177355766296387, -0.3766750693321228, 0.22199079394340515, 0.04247986152768135, 0.20691066980361938, 0.010986395180225372, -0.021723732352256775, -0.054806556552648544, 0.3365737497806549, 0.6232416033744812, 0.347029447555542, 0.14255061745643616, -0.10102751851081848, 0.08155348151922226, -0.34743812680244446, 0.014104198664426804, -0.0608881413936615, -0.20964989066123962, 0.09756805002689362, 0.525830864906311, -0.22562745213508606, 0.13194666802883148, -0.17804594337940216, 0.23669439554214478, 0.3822764754295349, -0.15272890031337738, 0.0618000403046608, 0.048225969076156616, -0.2598409056663513, -0.005199410952627659, -0.12586645781993866, 0.4537956118583679, 0.0071828290820121765, 0.3238304853439331, -0.3592909574508667, -0.5417629480361938, 0.43290975689888, -0.45112597942352295, -0.30252549052238464, 0.12327875941991806, 0.23878563940525055, 0.34956875443458557, -0.06000041216611862, -0.5436675548553467, -0.1724909543991089, 0.26911383867263794, -0.030661188066005707, -0.15704528987407684, 0.20768439769744873, -0.14864379167556763, -0.041075609624385834, -0.11675439774990082, 0.17646870017051697, 0.10152650624513626, -0.2914128005504608, 0.24369895458221436, -0.3701035976409912 ]
https://github.com/huggingface/datasets/issues/160
caching in map causes same result to be returned for train, validation and test
> Ok, I think @lhoestq has already found a solution :-) Maybe you can chime in @lhoestq Oh, awesome! I see the PR, Ill check it out
hello, I am working on a program that uses the `nlp` library with the `SST2` dataset. The rough outline of the program is: ``` import nlp as nlp_datasets ... parser.add_argument('--dataset', help='HuggingFace Datasets id', default=['glue', 'sst2'], nargs='+') ... dataset = nlp_datasets.load_dataset(*args.dataset) ... # Create feature vocabs vocabs = create_vocabs(dataset.values(), vectorizers) ... # Create a function to vectorize based on vectorizers and vocabs: print('TS', train_set.num_rows) print('VS', valid_set.num_rows) print('ES', test_set.num_rows) # factory method to create a `convert_to_features` function based on vocabs convert_to_features = create_featurizer(vectorizers, vocabs) train_set = train_set.map(convert_to_features, batched=True) train_set.set_format(type='torch', columns=list(vectorizers.keys()) + ['y', 'lengths']) train_loader = torch.utils.data.DataLoader(train_set, batch_size=args.batchsz) valid_set = valid_set.map(convert_to_features, batched=True) valid_set.set_format(type='torch', columns=list(vectorizers.keys()) + ['y', 'lengths']) valid_loader = torch.utils.data.DataLoader(valid_set, batch_size=args.batchsz) test_set = test_set.map(convert_to_features, batched=True) test_set.set_format(type='torch', columns=list(vectorizers.keys()) + ['y', 'lengths']) test_loader = torch.utils.data.DataLoader(test_set, batch_size=args.batchsz) print('TS', train_set.num_rows) print('VS', valid_set.num_rows) print('ES', test_set.num_rows) ``` Im not sure if Im using it incorrectly, but the results are not what I expect. Namely, the `.map()` seems to grab the datset from the cache and then loses track of what the specific dataset is, instead using my training data for all datasets: ``` TS 67349 VS 872 ES 1821 TS 67349 VS 67349 ES 67349 ``` The behavior changes if I turn off the caching but then the results fail: ``` train_set = train_set.map(convert_to_features, batched=True, load_from_cache_file=False) ... valid_set = valid_set.map(convert_to_features, batched=True, load_from_cache_file=False) ... test_set = test_set.map(convert_to_features, batched=True, load_from_cache_file=False) ``` Now I get the right set of features back... ``` TS 67349 VS 872 ES 1821 100%|██████████| 68/68 [00:00<00:00, 92.78it/s] 100%|██████████| 1/1 [00:00<00:00, 75.47it/s] 0%| | 0/2 [00:00<?, ?it/s]TS 67349 VS 872 ES 1821 100%|██████████| 2/2 [00:00<00:00, 77.19it/s] ``` but I think its losing track of the original training set: ``` Traceback (most recent call last): File "/home/dpressel/dev/work/baseline/api-examples/layers-classify-hf-datasets.py", line 148, in <module> for x in train_loader: File "/home/dpressel/anaconda3/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 345, in __next__ data = self._next_data() File "/home/dpressel/anaconda3/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 385, in _next_data data = self._dataset_fetcher.fetch(index) # may raise StopIteration File "/home/dpressel/anaconda3/lib/python3.7/site-packages/torch/utils/data/_utils/fetch.py", line 44, in fetch data = [self.dataset[idx] for idx in possibly_batched_index] File "/home/dpressel/anaconda3/lib/python3.7/site-packages/torch/utils/data/_utils/fetch.py", line 44, in <listcomp> data = [self.dataset[idx] for idx in possibly_batched_index] File "/home/dpressel/anaconda3/lib/python3.7/site-packages/nlp/arrow_dataset.py", line 338, in __getitem__ output_all_columns=self._output_all_columns, File "/home/dpressel/anaconda3/lib/python3.7/site-packages/nlp/arrow_dataset.py", line 294, in _getitem outputs = self._unnest(self._data.slice(key, 1).to_pydict()) File "pyarrow/table.pxi", line 1211, in pyarrow.lib.Table.slice File "pyarrow/public-api.pxi", line 390, in pyarrow.lib.pyarrow_wrap_table File "pyarrow/error.pxi", line 85, in pyarrow.lib.check_status pyarrow.lib.ArrowInvalid: Column 3: In chunk 0: Invalid: Length spanned by list offsets (15859698) larger than values array (length 100000) Process finished with exit code 1 ``` The full-example program (minus the print stmts) is here: https://github.com/dpressel/mead-baseline/pull/620/files
27
caching in map causes same result to be returned for train, validation and test hello, I am working on a program that uses the `nlp` library with the `SST2` dataset. The rough outline of the program is: ``` import nlp as nlp_datasets ... parser.add_argument('--dataset', help='HuggingFace Datasets id', default=['glue', 'sst2'], nargs='+') ... dataset = nlp_datasets.load_dataset(*args.dataset) ... # Create feature vocabs vocabs = create_vocabs(dataset.values(), vectorizers) ... # Create a function to vectorize based on vectorizers and vocabs: print('TS', train_set.num_rows) print('VS', valid_set.num_rows) print('ES', test_set.num_rows) # factory method to create a `convert_to_features` function based on vocabs convert_to_features = create_featurizer(vectorizers, vocabs) train_set = train_set.map(convert_to_features, batched=True) train_set.set_format(type='torch', columns=list(vectorizers.keys()) + ['y', 'lengths']) train_loader = torch.utils.data.DataLoader(train_set, batch_size=args.batchsz) valid_set = valid_set.map(convert_to_features, batched=True) valid_set.set_format(type='torch', columns=list(vectorizers.keys()) + ['y', 'lengths']) valid_loader = torch.utils.data.DataLoader(valid_set, batch_size=args.batchsz) test_set = test_set.map(convert_to_features, batched=True) test_set.set_format(type='torch', columns=list(vectorizers.keys()) + ['y', 'lengths']) test_loader = torch.utils.data.DataLoader(test_set, batch_size=args.batchsz) print('TS', train_set.num_rows) print('VS', valid_set.num_rows) print('ES', test_set.num_rows) ``` Im not sure if Im using it incorrectly, but the results are not what I expect. Namely, the `.map()` seems to grab the datset from the cache and then loses track of what the specific dataset is, instead using my training data for all datasets: ``` TS 67349 VS 872 ES 1821 TS 67349 VS 67349 ES 67349 ``` The behavior changes if I turn off the caching but then the results fail: ``` train_set = train_set.map(convert_to_features, batched=True, load_from_cache_file=False) ... valid_set = valid_set.map(convert_to_features, batched=True, load_from_cache_file=False) ... test_set = test_set.map(convert_to_features, batched=True, load_from_cache_file=False) ``` Now I get the right set of features back... ``` TS 67349 VS 872 ES 1821 100%|██████████| 68/68 [00:00<00:00, 92.78it/s] 100%|██████████| 1/1 [00:00<00:00, 75.47it/s] 0%| | 0/2 [00:00<?, ?it/s]TS 67349 VS 872 ES 1821 100%|██████████| 2/2 [00:00<00:00, 77.19it/s] ``` but I think its losing track of the original training set: ``` Traceback (most recent call last): File "/home/dpressel/dev/work/baseline/api-examples/layers-classify-hf-datasets.py", line 148, in <module> for x in train_loader: File "/home/dpressel/anaconda3/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 345, in __next__ data = self._next_data() File "/home/dpressel/anaconda3/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 385, in _next_data data = self._dataset_fetcher.fetch(index) # may raise StopIteration File "/home/dpressel/anaconda3/lib/python3.7/site-packages/torch/utils/data/_utils/fetch.py", line 44, in fetch data = [self.dataset[idx] for idx in possibly_batched_index] File "/home/dpressel/anaconda3/lib/python3.7/site-packages/torch/utils/data/_utils/fetch.py", line 44, in <listcomp> data = [self.dataset[idx] for idx in possibly_batched_index] File "/home/dpressel/anaconda3/lib/python3.7/site-packages/nlp/arrow_dataset.py", line 338, in __getitem__ output_all_columns=self._output_all_columns, File "/home/dpressel/anaconda3/lib/python3.7/site-packages/nlp/arrow_dataset.py", line 294, in _getitem outputs = self._unnest(self._data.slice(key, 1).to_pydict()) File "pyarrow/table.pxi", line 1211, in pyarrow.lib.Table.slice File "pyarrow/public-api.pxi", line 390, in pyarrow.lib.pyarrow_wrap_table File "pyarrow/error.pxi", line 85, in pyarrow.lib.check_status pyarrow.lib.ArrowInvalid: Column 3: In chunk 0: Invalid: Length spanned by list offsets (15859698) larger than values array (length 100000) Process finished with exit code 1 ``` The full-example program (minus the print stmts) is here: https://github.com/dpressel/mead-baseline/pull/620/files > Ok, I think @lhoestq has already found a solution :-) Maybe you can chime in @lhoestq Oh, awesome! I see the PR, Ill check it out
[ -0.1263226568698883, -0.22070880234241486, -0.10063180327415466, 0.27801087498664856, 0.2454756796360016, -0.2052232325077057, 0.13721056282520294, 0.512859582901001, 0.18828648328781128, -0.06233574450016022, 0.1278197318315506, 0.3891346752643585, 0.0037763724103569984, -0.160617396235466, -0.010743596591055393, 0.024212440475821495, 0.09608042240142822, 0.2350524514913559, -0.14556188881397247, -0.16482335329055786, 0.08189395070075989, 0.21298398077487946, -0.04241039231419563, 0.11652659624814987, -0.39034968614578247, 0.041289687156677246, 0.21235691010951996, -0.23089024424552917, 0.06845805048942566, -0.2570651173591614, 0.16785086691379547, -0.09324321150779724, 0.025833208113908768, 0.16631752252578735, -0.00010973815369652584, 0.006798304617404938, -0.015387766063213348, -0.1385694295167923, -0.007275183219462633, 0.040194764733314514, 0.11813383549451828, -0.21172894537448883, -0.1091824322938919, -0.3121313452720642, -0.33201169967651367, -0.03766108304262161, 0.01780948042869568, -0.3556599020957947, 0.3128575086593628, 0.14745260775089264, 0.26071029901504517, 0.2249092161655426, -0.2538127899169922, 0.2111358791589737, 0.14512750506401062, -0.029327861964702606, -0.174197256565094, -0.04230552166700363, -0.043978914618492126, -0.3344651758670807, -0.37676528096199036, 0.5254564881324768, -0.07658141106367111, 0.1701412945985794, 0.21466660499572754, 0.2250557690858841, 0.17260560393333435, 0.035937726497650146, 0.1429363340139389, -0.11396292597055435, 0.011095017194747925, -0.2269171178340912, -0.02711673453450203, -0.3733724355697632, -0.4186411201953888, -0.07852593064308167, 0.13762545585632324, 0.1810445636510849, -0.13639314472675323, -0.06371608376502991, -0.4319378435611725, 0.23928974568843842, 0.0652494728565216, -0.012788243591785431, 0.11952652037143707, 0.29516083002090454, 0.043806225061416626, 0.19522294402122498, 0.12944671511650085, -0.06973235309123993, -0.02255908027291298, -0.21451671421527863, -0.05897124484181404, 0.2264009565114975, -0.43598538637161255, 0.07208245992660522, 0.43152061104774475, -0.14041411876678467, -0.05324293673038483, 0.030638067051768303, 0.39193105697631836, 0.07921384274959564, 0.11681805551052094, -0.008492052555084229, -0.10416075587272644, 0.5898680090904236, 0.0443217009305954, 0.1711840033531189, -0.014969944953918457, -0.1982785016298294, -0.3560169041156769, 0.004987534135580063, 0.2880179286003113, -0.2866009771823883, 0.4284117817878723, 0.4023604691028595, -0.042260151356458664, -0.12152989208698273, -0.030102383345365524, 0.09402373433113098, -0.33085355162620544, 0.055669743567705154, 0.0587298683822155, 0.3139576017856598, -0.22545050084590912, 0.14926615357398987, -0.17376767098903656, -0.10335467755794525, -0.38496920466423035, 0.12735100090503693, -0.33784613013267517, -0.03332405164837837, -0.49621880054473877, 0.0015165433287620544, 0.2853848338127136, -0.0028596948832273483, 0.28535178303718567, -0.03844526410102844, -0.13722018897533417, -0.30198928713798523, 0.10317374765872955, -0.3985119163990021, 0.5702312588691711, -0.1072293072938919, -0.19701732695102692, 0.24102161824703217, 0.1303786337375641, 0.08526431024074554, -0.2976880967617035, -0.19837728142738342, -0.16980764269828796, -0.20906905829906464, 0.25986045598983765, 0.24224528670310974, -0.07942773401737213, 0.14139583706855774, 0.09248201549053192, 0.0776790976524353, 0.3432585299015045, -0.23285478353500366, 0.10284040123224258, -0.20148901641368866, -0.2819802165031433, -0.204358771443367, 0.16256852447986603, 0.2623097598552704, 0.06677639484405518, -0.13737253844738007, 0.40179675817489624, 0.23718330264091492, 0.14729051291942596, 0.41380682587623596, -0.1965341717004776, 0.30949440598487854, -0.4334914982318878, 0.34861910343170166, 0.5064769387245178, -0.32673171162605286, -0.4963451325893402, 0.09944847971200943, -0.15631616115570068, 0.1002885028719902, 0.10244907438755035, 0.15137307345867157, 0.029087437316775322, 0.014419620856642723, 0.1285368949174881, 0.01870272494852543, -0.0005148481577634811, 0.208420529961586, -0.31692758202552795, -0.021934084594249725, 0.5500645637512207, -0.25246700644493103, 0.02847260981798172, -0.13123688101768494, -0.05504279583692551, 0.02193329855799675, 0.0067679062485694885, -0.11218976974487305, 0.1218593567609787, 0.11460474133491516, -0.056878771632909775, -0.1581847369670868, -0.10643894970417023, -0.0246925987303257, -0.28826284408569336, 0.23830166459083557, -0.1498183310031891, -0.09996803104877472, 0.06172499805688858, -0.0970490574836731, -0.16200324892997742, -0.12927524745464325, -0.18091663718223572, -0.27306440472602844, 0.20130182802677155, 0.23052413761615753, 0.3202398419380188, -0.07290707528591156, 0.22520895302295685, 0.3680821657180786, 0.04836374521255493, -0.21607205271720886, -0.4300343692302704, 0.08568023145198822, -0.17773447930812836, -0.21882808208465576, -0.07484696805477142, 0.22306987643241882, 0.20902660489082336, -0.047926466912031174, -0.14242848753929138, 0.1482764184474945, -0.222085639834404, 0.41891831159591675, -0.1370280385017395, 0.2694522738456726, -0.06965658068656921, 0.02930605039000511, 0.01666761375963688, 0.25400540232658386, 0.05881998687982559, -0.08980180323123932, -0.07270645350217819, 0.47423404455184937, 0.18140259385108948, 0.17011591792106628, -0.04807092621922493, -0.21626819670200348, 0.051984116435050964, -0.1783173829317093, -0.12091567367315292, -0.11881645023822784, 0.1364072859287262, -0.08057232201099396, 0.14888812601566315, 0.15232877433300018, -0.10698716342449188, 0.31200864911079407, 0.7600829601287842, 0.19691896438598633, -0.011016987264156342, 0.015740767121315002, -0.057213060557842255, -0.21779218316078186, 0.3338564336299896, -0.05868256464600563, 0.31038784980773926, 0.1047315001487732, 0.1271648108959198, -0.046209461987018585, -0.21965014934539795, -0.1544356495141983, 0.12464785575866699, -0.21436865627765656, -0.19197607040405273, 0.3080340027809143, 0.28208741545677185, -0.15836751461029053, -0.3537829518318176, 0.09401574730873108, -0.012764312326908112, 0.02619161084294319, -0.1580013632774353, 0.2172369807958603, -0.16652941703796387, -0.2780846357345581, -0.2864150404930115, 0.13615667819976807, -0.12220340967178345, -0.09216566383838654, -0.041263237595558167, 0.42542991042137146, -0.03665441274642944, 0.19515129923820496, -0.31497251987457275, 0.08951936662197113, 0.2266039103269577, -0.2663280665874481, -0.07168535143136978, -0.1902884840965271, -0.3949197232723236, 0.04223187640309334, -0.09523043036460876, -0.09299641847610474, 0.3783295154571533, -0.047315895557403564, -0.06796004623174667, -0.2881453037261963, -0.17254012823104858, 0.10717794299125671, -0.09261167049407959, -0.15536801517009735, 0.16724851727485657, -0.03133857250213623, -0.10115887969732285, -0.29874542355537415, 0.2937970757484436, -0.3053131103515625, -0.29914355278015137, -0.051986560225486755, 0.09890660643577576, 0.030109476298093796, -0.2803474962711334, -0.4286240041255951, 0.273578405380249, -0.31724387407302856, 0.07546795159578323, -0.14892902970314026, 0.1862262636423111, 0.33093464374542236, 0.00895372498780489, -0.014560827054083347, -0.0640399232506752, 0.16439403593540192, -0.46741002798080444, -0.1409536451101303, 0.32257840037345886, 0.01876109279692173, -0.21630431711673737, -0.32459110021591187, -0.27572470903396606, 0.3477241098880768, 0.1923890858888626, -0.5803960561752319, -0.21442312002182007, -0.04890017956495285, 0.2480318546295166, -0.051258526742458344, -0.04649581015110016, 0.5745421648025513, 0.019725235179066658, -0.17946359515190125, -0.16727817058563232, -0.3318409025669098, 0.35973137617111206, 0.4192635118961334, 0.24948740005493164, -0.011158943176269531, 0.17781507968902588, 0.20092041790485382, 0.6707462072372437, 0.2019195854663849, -0.2590573728084564, 0.3317308723926544, 0.10723195970058441, 0.07499716430902481, -0.20349696278572083, -0.3130224645137787, 0.18576037883758545, -0.18160343170166016, 0.019731584936380386, 0.2719839811325073, 0.006251104176044464, -0.28018441796302795, 0.01774188131093979, 0.2188195437192917, -0.22534486651420593, -0.3280583918094635, 0.2597454786300659, -0.34242767095565796, 0.24094820022583008, 0.036370452493429184, 0.31580084562301636, -0.5820142030715942, -0.24272406101226807, 0.19462767243385315, -0.3359467387199402, 0.27984508872032166, 0.044498294591903687, -0.5836003422737122, 0.1214708536863327, -0.5380221009254456, 0.18194139003753662, 0.31462833285331726, 0.27240750193595886, -0.09202545136213303, -0.24652618169784546, 0.04334747791290283, -0.14713142812252045, 0.5711410045623779, 0.04097280651330948, 0.4085800051689148, 0.16992641985416412, -0.1302473247051239, -0.19947309792041779, -0.22471268475055695, 0.017234746366739273, 0.28013738989830017, 0.3264990448951721, 0.4008479714393616, -0.345244437456131, -0.36327338218688965, -0.26576635241508484, 0.007364353165030479, -0.04618103802204132, 0.007107640616595745, -0.12583328783512115, 0.18938520550727844, 0.01648675464093685, 0.17434582114219666, -0.014980485662817955, 0.11830264329910278, 0.016040049493312836, -0.1365458369255066, -0.039133474230766296, -0.21942639350891113, 0.12824128568172455, 0.226437509059906, 0.4735945761203766, 0.15032486617565155, 0.03246128931641579, 0.0332147479057312, 0.2151574343442917, -0.5671091079711914, 0.2659575343132019, -0.0888490378856659, -0.004131823778152466, 0.07464417070150375, 0.144438236951828, -0.03030157834291458, 0.33789771795272827, -0.04252493754029274, 0.14571355283260345, -0.1286291778087616, 0.008956722915172577, -0.5539687275886536, 0.4854544699192047, 0.3874589204788208, 0.13246634602546692, -0.0448899008333683, -0.24685712158679962, 0.17346283793449402, 0.07412011921405792, -0.27653104066848755, 0.1322598159313202, -0.4306930899620056, -0.43199458718299866, 0.18579725921154022, 0.20948642492294312, 0.923247218132019, 0.33202195167541504, 0.37195777893066406, 0.10070403665304184, 0.10358044505119324, 0.26425108313560486, -0.23411208391189575, 0.40925103425979614, -0.36936435103416443, -0.04631776735186577, 0.024538477882742882, -0.16673335433006287, -0.22738394141197205, -0.01042589545249939, -0.01099366694688797, 0.30259501934051514, 0.32405006885528564, 0.5999369025230408, -0.11211933940649033, 0.1666991412639618, 0.21569152176380157, -0.15811008214950562, -0.24923133850097656, 0.20107324421405792, -0.2923039197921753, 0.3152405619621277, -0.11240813881158829, -0.07410877197980881, -0.016509655863046646, -0.3513416647911072, 0.06714028120040894, 0.06094175577163696, -0.3365171253681183, 0.3048413395881653, 0.13346193730831146, -0.2726666331291199, -0.29698777198791504, 0.2550767958164215, 0.11198686063289642, 0.08252747356891632, -0.048599980771541595, -0.03518524393439293, 0.4006442427635193, 0.3504589796066284, -0.0068908920511603355, -0.20158877968788147, 0.18641279637813568, 0.0638754814863205, -0.01289377361536026, 0.030242688953876495, -0.056405920535326004, -0.30158257484436035, -0.2525116205215454, 0.14820444583892822, 0.0033721178770065308, -0.41296207904815674, -0.055318210273981094, 0.061444804072380066, -0.066788449883461, -0.09413720667362213, 0.15088020265102386, -0.026068054139614105, -0.10793968290090561, 0.31515368819236755, 0.11733828485012054, -0.24304215610027313, 0.05235801637172699, 0.4748321771621704, -0.04039723426103592, 0.031817495822906494, 0.4154278635978699, -0.15281841158866882, -0.10380657762289047, -0.25539082288742065, -0.284172922372818, -0.10206026583909988, -0.44884106516838074, 0.1122080534696579, -0.21940632164478302, -0.4019114375114441, 0.044232387095689774, 0.280818372964859, 0.014707226306200027, 0.3184961676597595, -0.011618640273809433, -0.12495823204517365, -0.376972496509552, -0.10379031300544739, -0.10658225417137146, 0.2671777307987213, 0.2795185446739197, 0.2843483090400696, -0.29586637020111084, 0.24922624230384827, -0.3831096589565277, -0.10714218765497208, -0.18716973066329956, 0.43791303038597107, -0.03913825377821922, -0.3655831515789032, -0.0091466773301363, 0.0018548984080553055, 0.12997101247310638, 0.17754501104354858, -0.6386589407920837, -0.29261884093284607, -0.09099164605140686, 0.08186077326536179, -0.007587585598230362, -0.15982197225093842, -0.23928211629390717, -0.017213795334100723, 0.18238520622253418, -0.4274033010005951, 0.09215673804283142, 0.15121665596961975, 0.04703156650066376, 0.23718662559986115, -0.16102977097034454, 0.121455617249012, 0.2881677746772766, -0.18652740120887756, -0.1841484010219574, -0.0762285441160202, 0.0804811418056488, 0.25701698660850525, -0.06946804374456406, 0.020479321479797363, -0.21040309965610504, 0.03047323226928711, 0.08927437663078308, 0.14279496669769287, 0.2369287610054016, -0.024753130972385406, -0.21566127240657806, 0.0005509094335138798, 0.18279987573623657, 0.11411988735198975, -0.0785531997680664, -0.3289754092693329, 0.28022289276123047, 0.27836498618125916, -0.11751759797334671, -0.010236735455691814, 0.16770797967910767, -0.09938845783472061, 0.2528514266014099, 0.20715394616127014, 0.10758784413337708, 0.05261094868183136, 0.2696117162704468, 0.12649419903755188, 0.4050406217575073, -0.34832853078842163, 0.0894213616847992, 0.06441638618707657, 0.10164904594421387, 0.03777812421321869, 0.3812151849269867, -0.15324416756629944, 0.08992215991020203, 0.14838305115699768, 0.1883368045091629, 0.20253945887088776, 0.26289013028144836, 0.21354132890701294, -0.18786436319351196, -0.034120991826057434, -0.24108661711215973, 0.14363622665405273, -0.14272630214691162, 0.4156596064567566, 0.15059252083301544, 0.1928555965423584, -0.11485254019498825, -0.4619385302066803, -0.246268168091774, 0.23536333441734314, -0.3245421051979065, -0.30920878052711487, -0.04867762327194214, -0.08018514513969421, 0.05592885613441467, 0.19456128776073456, -0.07929010689258575, 0.20385880768299103, 0.3428385257720947, -0.008660323917865753, -0.013750255107879639, -0.08435370773077011, -0.17061740159988403, 0.1139787882566452, 0.27486473321914673, -0.08173885941505432, 0.4469367265701294, 0.010800592601299286, -0.051569342613220215, -0.23447129130363464, 0.41141682863235474, 0.2861284613609314, 0.19494768977165222, -0.16886268556118011, 0.06395315378904343, 0.2006472647190094, 0.030613550916314125, -0.3546893298625946, 0.32865193486213684, 0.1511445790529251, -0.29302749037742615, 0.3680057227611542, 0.12379536032676697, -0.2321556657552719, 0.2764037847518921, -0.10419623553752899, -0.2014673352241516, -0.04988923296332359, 0.32243701815605164, 0.09970740228891373, -0.039931803941726685, -0.1949627548456192, 0.11112028360366821, -0.14457139372825623, -0.2853398621082306, 0.15934598445892334, -0.023898055776953697, 0.46766120195388794, -0.2756754159927368, 0.1172051727771759, -0.06182485446333885, 0.622086226940155, -0.02922753617167473, 0.12432871758937836, -0.35013771057128906, 0.10264365375041962, -0.33316677808761597, 0.19840949773788452, -0.08381755650043488, 0.15374277532100677, -0.3975834548473358, 0.20426514744758606, -0.11549846082925797, -0.02346603199839592, -0.1180424839258194, -0.007886635139584541, 0.14740677177906036, 0.17893192172050476, -0.38691768050193787, 0.15548142790794373, -0.08625927567481995, -0.006267234683036804, 0.29177355766296387, -0.3766750693321228, 0.22199079394340515, 0.04247986152768135, 0.20691066980361938, 0.010986395180225372, -0.021723732352256775, -0.054806556552648544, 0.3365737497806549, 0.6232416033744812, 0.347029447555542, 0.14255061745643616, -0.10102751851081848, 0.08155348151922226, -0.34743812680244446, 0.014104198664426804, -0.0608881413936615, -0.20964989066123962, 0.09756805002689362, 0.525830864906311, -0.22562745213508606, 0.13194666802883148, -0.17804594337940216, 0.23669439554214478, 0.3822764754295349, -0.15272890031337738, 0.0618000403046608, 0.048225969076156616, -0.2598409056663513, -0.005199410952627659, -0.12586645781993866, 0.4537956118583679, 0.0071828290820121765, 0.3238304853439331, -0.3592909574508667, -0.5417629480361938, 0.43290975689888, -0.45112597942352295, -0.30252549052238464, 0.12327875941991806, 0.23878563940525055, 0.34956875443458557, -0.06000041216611862, -0.5436675548553467, -0.1724909543991089, 0.26911383867263794, -0.030661188066005707, -0.15704528987407684, 0.20768439769744873, -0.14864379167556763, -0.041075609624385834, -0.11675439774990082, 0.17646870017051697, 0.10152650624513626, -0.2914128005504608, 0.24369895458221436, -0.3701035976409912 ]
https://github.com/huggingface/datasets/issues/160
caching in map causes same result to be returned for train, validation and test
The PR should prevent the cache from losing track of the of the dataset type (based on the location of its data). Not sure about your second problem though (cache off).
hello, I am working on a program that uses the `nlp` library with the `SST2` dataset. The rough outline of the program is: ``` import nlp as nlp_datasets ... parser.add_argument('--dataset', help='HuggingFace Datasets id', default=['glue', 'sst2'], nargs='+') ... dataset = nlp_datasets.load_dataset(*args.dataset) ... # Create feature vocabs vocabs = create_vocabs(dataset.values(), vectorizers) ... # Create a function to vectorize based on vectorizers and vocabs: print('TS', train_set.num_rows) print('VS', valid_set.num_rows) print('ES', test_set.num_rows) # factory method to create a `convert_to_features` function based on vocabs convert_to_features = create_featurizer(vectorizers, vocabs) train_set = train_set.map(convert_to_features, batched=True) train_set.set_format(type='torch', columns=list(vectorizers.keys()) + ['y', 'lengths']) train_loader = torch.utils.data.DataLoader(train_set, batch_size=args.batchsz) valid_set = valid_set.map(convert_to_features, batched=True) valid_set.set_format(type='torch', columns=list(vectorizers.keys()) + ['y', 'lengths']) valid_loader = torch.utils.data.DataLoader(valid_set, batch_size=args.batchsz) test_set = test_set.map(convert_to_features, batched=True) test_set.set_format(type='torch', columns=list(vectorizers.keys()) + ['y', 'lengths']) test_loader = torch.utils.data.DataLoader(test_set, batch_size=args.batchsz) print('TS', train_set.num_rows) print('VS', valid_set.num_rows) print('ES', test_set.num_rows) ``` Im not sure if Im using it incorrectly, but the results are not what I expect. Namely, the `.map()` seems to grab the datset from the cache and then loses track of what the specific dataset is, instead using my training data for all datasets: ``` TS 67349 VS 872 ES 1821 TS 67349 VS 67349 ES 67349 ``` The behavior changes if I turn off the caching but then the results fail: ``` train_set = train_set.map(convert_to_features, batched=True, load_from_cache_file=False) ... valid_set = valid_set.map(convert_to_features, batched=True, load_from_cache_file=False) ... test_set = test_set.map(convert_to_features, batched=True, load_from_cache_file=False) ``` Now I get the right set of features back... ``` TS 67349 VS 872 ES 1821 100%|██████████| 68/68 [00:00<00:00, 92.78it/s] 100%|██████████| 1/1 [00:00<00:00, 75.47it/s] 0%| | 0/2 [00:00<?, ?it/s]TS 67349 VS 872 ES 1821 100%|██████████| 2/2 [00:00<00:00, 77.19it/s] ``` but I think its losing track of the original training set: ``` Traceback (most recent call last): File "/home/dpressel/dev/work/baseline/api-examples/layers-classify-hf-datasets.py", line 148, in <module> for x in train_loader: File "/home/dpressel/anaconda3/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 345, in __next__ data = self._next_data() File "/home/dpressel/anaconda3/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 385, in _next_data data = self._dataset_fetcher.fetch(index) # may raise StopIteration File "/home/dpressel/anaconda3/lib/python3.7/site-packages/torch/utils/data/_utils/fetch.py", line 44, in fetch data = [self.dataset[idx] for idx in possibly_batched_index] File "/home/dpressel/anaconda3/lib/python3.7/site-packages/torch/utils/data/_utils/fetch.py", line 44, in <listcomp> data = [self.dataset[idx] for idx in possibly_batched_index] File "/home/dpressel/anaconda3/lib/python3.7/site-packages/nlp/arrow_dataset.py", line 338, in __getitem__ output_all_columns=self._output_all_columns, File "/home/dpressel/anaconda3/lib/python3.7/site-packages/nlp/arrow_dataset.py", line 294, in _getitem outputs = self._unnest(self._data.slice(key, 1).to_pydict()) File "pyarrow/table.pxi", line 1211, in pyarrow.lib.Table.slice File "pyarrow/public-api.pxi", line 390, in pyarrow.lib.pyarrow_wrap_table File "pyarrow/error.pxi", line 85, in pyarrow.lib.check_status pyarrow.lib.ArrowInvalid: Column 3: In chunk 0: Invalid: Length spanned by list offsets (15859698) larger than values array (length 100000) Process finished with exit code 1 ``` The full-example program (minus the print stmts) is here: https://github.com/dpressel/mead-baseline/pull/620/files
31
caching in map causes same result to be returned for train, validation and test hello, I am working on a program that uses the `nlp` library with the `SST2` dataset. The rough outline of the program is: ``` import nlp as nlp_datasets ... parser.add_argument('--dataset', help='HuggingFace Datasets id', default=['glue', 'sst2'], nargs='+') ... dataset = nlp_datasets.load_dataset(*args.dataset) ... # Create feature vocabs vocabs = create_vocabs(dataset.values(), vectorizers) ... # Create a function to vectorize based on vectorizers and vocabs: print('TS', train_set.num_rows) print('VS', valid_set.num_rows) print('ES', test_set.num_rows) # factory method to create a `convert_to_features` function based on vocabs convert_to_features = create_featurizer(vectorizers, vocabs) train_set = train_set.map(convert_to_features, batched=True) train_set.set_format(type='torch', columns=list(vectorizers.keys()) + ['y', 'lengths']) train_loader = torch.utils.data.DataLoader(train_set, batch_size=args.batchsz) valid_set = valid_set.map(convert_to_features, batched=True) valid_set.set_format(type='torch', columns=list(vectorizers.keys()) + ['y', 'lengths']) valid_loader = torch.utils.data.DataLoader(valid_set, batch_size=args.batchsz) test_set = test_set.map(convert_to_features, batched=True) test_set.set_format(type='torch', columns=list(vectorizers.keys()) + ['y', 'lengths']) test_loader = torch.utils.data.DataLoader(test_set, batch_size=args.batchsz) print('TS', train_set.num_rows) print('VS', valid_set.num_rows) print('ES', test_set.num_rows) ``` Im not sure if Im using it incorrectly, but the results are not what I expect. Namely, the `.map()` seems to grab the datset from the cache and then loses track of what the specific dataset is, instead using my training data for all datasets: ``` TS 67349 VS 872 ES 1821 TS 67349 VS 67349 ES 67349 ``` The behavior changes if I turn off the caching but then the results fail: ``` train_set = train_set.map(convert_to_features, batched=True, load_from_cache_file=False) ... valid_set = valid_set.map(convert_to_features, batched=True, load_from_cache_file=False) ... test_set = test_set.map(convert_to_features, batched=True, load_from_cache_file=False) ``` Now I get the right set of features back... ``` TS 67349 VS 872 ES 1821 100%|██████████| 68/68 [00:00<00:00, 92.78it/s] 100%|██████████| 1/1 [00:00<00:00, 75.47it/s] 0%| | 0/2 [00:00<?, ?it/s]TS 67349 VS 872 ES 1821 100%|██████████| 2/2 [00:00<00:00, 77.19it/s] ``` but I think its losing track of the original training set: ``` Traceback (most recent call last): File "/home/dpressel/dev/work/baseline/api-examples/layers-classify-hf-datasets.py", line 148, in <module> for x in train_loader: File "/home/dpressel/anaconda3/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 345, in __next__ data = self._next_data() File "/home/dpressel/anaconda3/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 385, in _next_data data = self._dataset_fetcher.fetch(index) # may raise StopIteration File "/home/dpressel/anaconda3/lib/python3.7/site-packages/torch/utils/data/_utils/fetch.py", line 44, in fetch data = [self.dataset[idx] for idx in possibly_batched_index] File "/home/dpressel/anaconda3/lib/python3.7/site-packages/torch/utils/data/_utils/fetch.py", line 44, in <listcomp> data = [self.dataset[idx] for idx in possibly_batched_index] File "/home/dpressel/anaconda3/lib/python3.7/site-packages/nlp/arrow_dataset.py", line 338, in __getitem__ output_all_columns=self._output_all_columns, File "/home/dpressel/anaconda3/lib/python3.7/site-packages/nlp/arrow_dataset.py", line 294, in _getitem outputs = self._unnest(self._data.slice(key, 1).to_pydict()) File "pyarrow/table.pxi", line 1211, in pyarrow.lib.Table.slice File "pyarrow/public-api.pxi", line 390, in pyarrow.lib.pyarrow_wrap_table File "pyarrow/error.pxi", line 85, in pyarrow.lib.check_status pyarrow.lib.ArrowInvalid: Column 3: In chunk 0: Invalid: Length spanned by list offsets (15859698) larger than values array (length 100000) Process finished with exit code 1 ``` The full-example program (minus the print stmts) is here: https://github.com/dpressel/mead-baseline/pull/620/files The PR should prevent the cache from losing track of the of the dataset type (based on the location of its data). Not sure about your second problem though (cache off).
[ -0.1263226568698883, -0.22070880234241486, -0.10063180327415466, 0.27801087498664856, 0.2454756796360016, -0.2052232325077057, 0.13721056282520294, 0.512859582901001, 0.18828648328781128, -0.06233574450016022, 0.1278197318315506, 0.3891346752643585, 0.0037763724103569984, -0.160617396235466, -0.010743596591055393, 0.024212440475821495, 0.09608042240142822, 0.2350524514913559, -0.14556188881397247, -0.16482335329055786, 0.08189395070075989, 0.21298398077487946, -0.04241039231419563, 0.11652659624814987, -0.39034968614578247, 0.041289687156677246, 0.21235691010951996, -0.23089024424552917, 0.06845805048942566, -0.2570651173591614, 0.16785086691379547, -0.09324321150779724, 0.025833208113908768, 0.16631752252578735, -0.00010973815369652584, 0.006798304617404938, -0.015387766063213348, -0.1385694295167923, -0.007275183219462633, 0.040194764733314514, 0.11813383549451828, -0.21172894537448883, -0.1091824322938919, -0.3121313452720642, -0.33201169967651367, -0.03766108304262161, 0.01780948042869568, -0.3556599020957947, 0.3128575086593628, 0.14745260775089264, 0.26071029901504517, 0.2249092161655426, -0.2538127899169922, 0.2111358791589737, 0.14512750506401062, -0.029327861964702606, -0.174197256565094, -0.04230552166700363, -0.043978914618492126, -0.3344651758670807, -0.37676528096199036, 0.5254564881324768, -0.07658141106367111, 0.1701412945985794, 0.21466660499572754, 0.2250557690858841, 0.17260560393333435, 0.035937726497650146, 0.1429363340139389, -0.11396292597055435, 0.011095017194747925, -0.2269171178340912, -0.02711673453450203, -0.3733724355697632, -0.4186411201953888, -0.07852593064308167, 0.13762545585632324, 0.1810445636510849, -0.13639314472675323, -0.06371608376502991, -0.4319378435611725, 0.23928974568843842, 0.0652494728565216, -0.012788243591785431, 0.11952652037143707, 0.29516083002090454, 0.043806225061416626, 0.19522294402122498, 0.12944671511650085, -0.06973235309123993, -0.02255908027291298, -0.21451671421527863, -0.05897124484181404, 0.2264009565114975, -0.43598538637161255, 0.07208245992660522, 0.43152061104774475, -0.14041411876678467, -0.05324293673038483, 0.030638067051768303, 0.39193105697631836, 0.07921384274959564, 0.11681805551052094, -0.008492052555084229, -0.10416075587272644, 0.5898680090904236, 0.0443217009305954, 0.1711840033531189, -0.014969944953918457, -0.1982785016298294, -0.3560169041156769, 0.004987534135580063, 0.2880179286003113, -0.2866009771823883, 0.4284117817878723, 0.4023604691028595, -0.042260151356458664, -0.12152989208698273, -0.030102383345365524, 0.09402373433113098, -0.33085355162620544, 0.055669743567705154, 0.0587298683822155, 0.3139576017856598, -0.22545050084590912, 0.14926615357398987, -0.17376767098903656, -0.10335467755794525, -0.38496920466423035, 0.12735100090503693, -0.33784613013267517, -0.03332405164837837, -0.49621880054473877, 0.0015165433287620544, 0.2853848338127136, -0.0028596948832273483, 0.28535178303718567, -0.03844526410102844, -0.13722018897533417, -0.30198928713798523, 0.10317374765872955, -0.3985119163990021, 0.5702312588691711, -0.1072293072938919, -0.19701732695102692, 0.24102161824703217, 0.1303786337375641, 0.08526431024074554, -0.2976880967617035, -0.19837728142738342, -0.16980764269828796, -0.20906905829906464, 0.25986045598983765, 0.24224528670310974, -0.07942773401737213, 0.14139583706855774, 0.09248201549053192, 0.0776790976524353, 0.3432585299015045, -0.23285478353500366, 0.10284040123224258, -0.20148901641368866, -0.2819802165031433, -0.204358771443367, 0.16256852447986603, 0.2623097598552704, 0.06677639484405518, -0.13737253844738007, 0.40179675817489624, 0.23718330264091492, 0.14729051291942596, 0.41380682587623596, -0.1965341717004776, 0.30949440598487854, -0.4334914982318878, 0.34861910343170166, 0.5064769387245178, -0.32673171162605286, -0.4963451325893402, 0.09944847971200943, -0.15631616115570068, 0.1002885028719902, 0.10244907438755035, 0.15137307345867157, 0.029087437316775322, 0.014419620856642723, 0.1285368949174881, 0.01870272494852543, -0.0005148481577634811, 0.208420529961586, -0.31692758202552795, -0.021934084594249725, 0.5500645637512207, -0.25246700644493103, 0.02847260981798172, -0.13123688101768494, -0.05504279583692551, 0.02193329855799675, 0.0067679062485694885, -0.11218976974487305, 0.1218593567609787, 0.11460474133491516, -0.056878771632909775, -0.1581847369670868, -0.10643894970417023, -0.0246925987303257, -0.28826284408569336, 0.23830166459083557, -0.1498183310031891, -0.09996803104877472, 0.06172499805688858, -0.0970490574836731, -0.16200324892997742, -0.12927524745464325, -0.18091663718223572, -0.27306440472602844, 0.20130182802677155, 0.23052413761615753, 0.3202398419380188, -0.07290707528591156, 0.22520895302295685, 0.3680821657180786, 0.04836374521255493, -0.21607205271720886, -0.4300343692302704, 0.08568023145198822, -0.17773447930812836, -0.21882808208465576, -0.07484696805477142, 0.22306987643241882, 0.20902660489082336, -0.047926466912031174, -0.14242848753929138, 0.1482764184474945, -0.222085639834404, 0.41891831159591675, -0.1370280385017395, 0.2694522738456726, -0.06965658068656921, 0.02930605039000511, 0.01666761375963688, 0.25400540232658386, 0.05881998687982559, -0.08980180323123932, -0.07270645350217819, 0.47423404455184937, 0.18140259385108948, 0.17011591792106628, -0.04807092621922493, -0.21626819670200348, 0.051984116435050964, -0.1783173829317093, -0.12091567367315292, -0.11881645023822784, 0.1364072859287262, -0.08057232201099396, 0.14888812601566315, 0.15232877433300018, -0.10698716342449188, 0.31200864911079407, 0.7600829601287842, 0.19691896438598633, -0.011016987264156342, 0.015740767121315002, -0.057213060557842255, -0.21779218316078186, 0.3338564336299896, -0.05868256464600563, 0.31038784980773926, 0.1047315001487732, 0.1271648108959198, -0.046209461987018585, -0.21965014934539795, -0.1544356495141983, 0.12464785575866699, -0.21436865627765656, -0.19197607040405273, 0.3080340027809143, 0.28208741545677185, -0.15836751461029053, -0.3537829518318176, 0.09401574730873108, -0.012764312326908112, 0.02619161084294319, -0.1580013632774353, 0.2172369807958603, -0.16652941703796387, -0.2780846357345581, -0.2864150404930115, 0.13615667819976807, -0.12220340967178345, -0.09216566383838654, -0.041263237595558167, 0.42542991042137146, -0.03665441274642944, 0.19515129923820496, -0.31497251987457275, 0.08951936662197113, 0.2266039103269577, -0.2663280665874481, -0.07168535143136978, -0.1902884840965271, -0.3949197232723236, 0.04223187640309334, -0.09523043036460876, -0.09299641847610474, 0.3783295154571533, -0.047315895557403564, -0.06796004623174667, -0.2881453037261963, -0.17254012823104858, 0.10717794299125671, -0.09261167049407959, -0.15536801517009735, 0.16724851727485657, -0.03133857250213623, -0.10115887969732285, -0.29874542355537415, 0.2937970757484436, -0.3053131103515625, -0.29914355278015137, -0.051986560225486755, 0.09890660643577576, 0.030109476298093796, -0.2803474962711334, -0.4286240041255951, 0.273578405380249, -0.31724387407302856, 0.07546795159578323, -0.14892902970314026, 0.1862262636423111, 0.33093464374542236, 0.00895372498780489, -0.014560827054083347, -0.0640399232506752, 0.16439403593540192, -0.46741002798080444, -0.1409536451101303, 0.32257840037345886, 0.01876109279692173, -0.21630431711673737, -0.32459110021591187, -0.27572470903396606, 0.3477241098880768, 0.1923890858888626, -0.5803960561752319, -0.21442312002182007, -0.04890017956495285, 0.2480318546295166, -0.051258526742458344, -0.04649581015110016, 0.5745421648025513, 0.019725235179066658, -0.17946359515190125, -0.16727817058563232, -0.3318409025669098, 0.35973137617111206, 0.4192635118961334, 0.24948740005493164, -0.011158943176269531, 0.17781507968902588, 0.20092041790485382, 0.6707462072372437, 0.2019195854663849, -0.2590573728084564, 0.3317308723926544, 0.10723195970058441, 0.07499716430902481, -0.20349696278572083, -0.3130224645137787, 0.18576037883758545, -0.18160343170166016, 0.019731584936380386, 0.2719839811325073, 0.006251104176044464, -0.28018441796302795, 0.01774188131093979, 0.2188195437192917, -0.22534486651420593, -0.3280583918094635, 0.2597454786300659, -0.34242767095565796, 0.24094820022583008, 0.036370452493429184, 0.31580084562301636, -0.5820142030715942, -0.24272406101226807, 0.19462767243385315, -0.3359467387199402, 0.27984508872032166, 0.044498294591903687, -0.5836003422737122, 0.1214708536863327, -0.5380221009254456, 0.18194139003753662, 0.31462833285331726, 0.27240750193595886, -0.09202545136213303, -0.24652618169784546, 0.04334747791290283, -0.14713142812252045, 0.5711410045623779, 0.04097280651330948, 0.4085800051689148, 0.16992641985416412, -0.1302473247051239, -0.19947309792041779, -0.22471268475055695, 0.017234746366739273, 0.28013738989830017, 0.3264990448951721, 0.4008479714393616, -0.345244437456131, -0.36327338218688965, -0.26576635241508484, 0.007364353165030479, -0.04618103802204132, 0.007107640616595745, -0.12583328783512115, 0.18938520550727844, 0.01648675464093685, 0.17434582114219666, -0.014980485662817955, 0.11830264329910278, 0.016040049493312836, -0.1365458369255066, -0.039133474230766296, -0.21942639350891113, 0.12824128568172455, 0.226437509059906, 0.4735945761203766, 0.15032486617565155, 0.03246128931641579, 0.0332147479057312, 0.2151574343442917, -0.5671091079711914, 0.2659575343132019, -0.0888490378856659, -0.004131823778152466, 0.07464417070150375, 0.144438236951828, -0.03030157834291458, 0.33789771795272827, -0.04252493754029274, 0.14571355283260345, -0.1286291778087616, 0.008956722915172577, -0.5539687275886536, 0.4854544699192047, 0.3874589204788208, 0.13246634602546692, -0.0448899008333683, -0.24685712158679962, 0.17346283793449402, 0.07412011921405792, -0.27653104066848755, 0.1322598159313202, -0.4306930899620056, -0.43199458718299866, 0.18579725921154022, 0.20948642492294312, 0.923247218132019, 0.33202195167541504, 0.37195777893066406, 0.10070403665304184, 0.10358044505119324, 0.26425108313560486, -0.23411208391189575, 0.40925103425979614, -0.36936435103416443, -0.04631776735186577, 0.024538477882742882, -0.16673335433006287, -0.22738394141197205, -0.01042589545249939, -0.01099366694688797, 0.30259501934051514, 0.32405006885528564, 0.5999369025230408, -0.11211933940649033, 0.1666991412639618, 0.21569152176380157, -0.15811008214950562, -0.24923133850097656, 0.20107324421405792, -0.2923039197921753, 0.3152405619621277, -0.11240813881158829, -0.07410877197980881, -0.016509655863046646, -0.3513416647911072, 0.06714028120040894, 0.06094175577163696, -0.3365171253681183, 0.3048413395881653, 0.13346193730831146, -0.2726666331291199, -0.29698777198791504, 0.2550767958164215, 0.11198686063289642, 0.08252747356891632, -0.048599980771541595, -0.03518524393439293, 0.4006442427635193, 0.3504589796066284, -0.0068908920511603355, -0.20158877968788147, 0.18641279637813568, 0.0638754814863205, -0.01289377361536026, 0.030242688953876495, -0.056405920535326004, -0.30158257484436035, -0.2525116205215454, 0.14820444583892822, 0.0033721178770065308, -0.41296207904815674, -0.055318210273981094, 0.061444804072380066, -0.066788449883461, -0.09413720667362213, 0.15088020265102386, -0.026068054139614105, -0.10793968290090561, 0.31515368819236755, 0.11733828485012054, -0.24304215610027313, 0.05235801637172699, 0.4748321771621704, -0.04039723426103592, 0.031817495822906494, 0.4154278635978699, -0.15281841158866882, -0.10380657762289047, -0.25539082288742065, -0.284172922372818, -0.10206026583909988, -0.44884106516838074, 0.1122080534696579, -0.21940632164478302, -0.4019114375114441, 0.044232387095689774, 0.280818372964859, 0.014707226306200027, 0.3184961676597595, -0.011618640273809433, -0.12495823204517365, -0.376972496509552, -0.10379031300544739, -0.10658225417137146, 0.2671777307987213, 0.2795185446739197, 0.2843483090400696, -0.29586637020111084, 0.24922624230384827, -0.3831096589565277, -0.10714218765497208, -0.18716973066329956, 0.43791303038597107, -0.03913825377821922, -0.3655831515789032, -0.0091466773301363, 0.0018548984080553055, 0.12997101247310638, 0.17754501104354858, -0.6386589407920837, -0.29261884093284607, -0.09099164605140686, 0.08186077326536179, -0.007587585598230362, -0.15982197225093842, -0.23928211629390717, -0.017213795334100723, 0.18238520622253418, -0.4274033010005951, 0.09215673804283142, 0.15121665596961975, 0.04703156650066376, 0.23718662559986115, -0.16102977097034454, 0.121455617249012, 0.2881677746772766, -0.18652740120887756, -0.1841484010219574, -0.0762285441160202, 0.0804811418056488, 0.25701698660850525, -0.06946804374456406, 0.020479321479797363, -0.21040309965610504, 0.03047323226928711, 0.08927437663078308, 0.14279496669769287, 0.2369287610054016, -0.024753130972385406, -0.21566127240657806, 0.0005509094335138798, 0.18279987573623657, 0.11411988735198975, -0.0785531997680664, -0.3289754092693329, 0.28022289276123047, 0.27836498618125916, -0.11751759797334671, -0.010236735455691814, 0.16770797967910767, -0.09938845783472061, 0.2528514266014099, 0.20715394616127014, 0.10758784413337708, 0.05261094868183136, 0.2696117162704468, 0.12649419903755188, 0.4050406217575073, -0.34832853078842163, 0.0894213616847992, 0.06441638618707657, 0.10164904594421387, 0.03777812421321869, 0.3812151849269867, -0.15324416756629944, 0.08992215991020203, 0.14838305115699768, 0.1883368045091629, 0.20253945887088776, 0.26289013028144836, 0.21354132890701294, -0.18786436319351196, -0.034120991826057434, -0.24108661711215973, 0.14363622665405273, -0.14272630214691162, 0.4156596064567566, 0.15059252083301544, 0.1928555965423584, -0.11485254019498825, -0.4619385302066803, -0.246268168091774, 0.23536333441734314, -0.3245421051979065, -0.30920878052711487, -0.04867762327194214, -0.08018514513969421, 0.05592885613441467, 0.19456128776073456, -0.07929010689258575, 0.20385880768299103, 0.3428385257720947, -0.008660323917865753, -0.013750255107879639, -0.08435370773077011, -0.17061740159988403, 0.1139787882566452, 0.27486473321914673, -0.08173885941505432, 0.4469367265701294, 0.010800592601299286, -0.051569342613220215, -0.23447129130363464, 0.41141682863235474, 0.2861284613609314, 0.19494768977165222, -0.16886268556118011, 0.06395315378904343, 0.2006472647190094, 0.030613550916314125, -0.3546893298625946, 0.32865193486213684, 0.1511445790529251, -0.29302749037742615, 0.3680057227611542, 0.12379536032676697, -0.2321556657552719, 0.2764037847518921, -0.10419623553752899, -0.2014673352241516, -0.04988923296332359, 0.32243701815605164, 0.09970740228891373, -0.039931803941726685, -0.1949627548456192, 0.11112028360366821, -0.14457139372825623, -0.2853398621082306, 0.15934598445892334, -0.023898055776953697, 0.46766120195388794, -0.2756754159927368, 0.1172051727771759, -0.06182485446333885, 0.622086226940155, -0.02922753617167473, 0.12432871758937836, -0.35013771057128906, 0.10264365375041962, -0.33316677808761597, 0.19840949773788452, -0.08381755650043488, 0.15374277532100677, -0.3975834548473358, 0.20426514744758606, -0.11549846082925797, -0.02346603199839592, -0.1180424839258194, -0.007886635139584541, 0.14740677177906036, 0.17893192172050476, -0.38691768050193787, 0.15548142790794373, -0.08625927567481995, -0.006267234683036804, 0.29177355766296387, -0.3766750693321228, 0.22199079394340515, 0.04247986152768135, 0.20691066980361938, 0.010986395180225372, -0.021723732352256775, -0.054806556552648544, 0.3365737497806549, 0.6232416033744812, 0.347029447555542, 0.14255061745643616, -0.10102751851081848, 0.08155348151922226, -0.34743812680244446, 0.014104198664426804, -0.0608881413936615, -0.20964989066123962, 0.09756805002689362, 0.525830864906311, -0.22562745213508606, 0.13194666802883148, -0.17804594337940216, 0.23669439554214478, 0.3822764754295349, -0.15272890031337738, 0.0618000403046608, 0.048225969076156616, -0.2598409056663513, -0.005199410952627659, -0.12586645781993866, 0.4537956118583679, 0.0071828290820121765, 0.3238304853439331, -0.3592909574508667, -0.5417629480361938, 0.43290975689888, -0.45112597942352295, -0.30252549052238464, 0.12327875941991806, 0.23878563940525055, 0.34956875443458557, -0.06000041216611862, -0.5436675548553467, -0.1724909543991089, 0.26911383867263794, -0.030661188066005707, -0.15704528987407684, 0.20768439769744873, -0.14864379167556763, -0.041075609624385834, -0.11675439774990082, 0.17646870017051697, 0.10152650624513626, -0.2914128005504608, 0.24369895458221436, -0.3701035976409912 ]
https://github.com/huggingface/datasets/issues/160
caching in map causes same result to be returned for train, validation and test
Yes, with caching on, it seems to work without the function renaming hack, I mentioned this also in the PR. Thanks!
hello, I am working on a program that uses the `nlp` library with the `SST2` dataset. The rough outline of the program is: ``` import nlp as nlp_datasets ... parser.add_argument('--dataset', help='HuggingFace Datasets id', default=['glue', 'sst2'], nargs='+') ... dataset = nlp_datasets.load_dataset(*args.dataset) ... # Create feature vocabs vocabs = create_vocabs(dataset.values(), vectorizers) ... # Create a function to vectorize based on vectorizers and vocabs: print('TS', train_set.num_rows) print('VS', valid_set.num_rows) print('ES', test_set.num_rows) # factory method to create a `convert_to_features` function based on vocabs convert_to_features = create_featurizer(vectorizers, vocabs) train_set = train_set.map(convert_to_features, batched=True) train_set.set_format(type='torch', columns=list(vectorizers.keys()) + ['y', 'lengths']) train_loader = torch.utils.data.DataLoader(train_set, batch_size=args.batchsz) valid_set = valid_set.map(convert_to_features, batched=True) valid_set.set_format(type='torch', columns=list(vectorizers.keys()) + ['y', 'lengths']) valid_loader = torch.utils.data.DataLoader(valid_set, batch_size=args.batchsz) test_set = test_set.map(convert_to_features, batched=True) test_set.set_format(type='torch', columns=list(vectorizers.keys()) + ['y', 'lengths']) test_loader = torch.utils.data.DataLoader(test_set, batch_size=args.batchsz) print('TS', train_set.num_rows) print('VS', valid_set.num_rows) print('ES', test_set.num_rows) ``` Im not sure if Im using it incorrectly, but the results are not what I expect. Namely, the `.map()` seems to grab the datset from the cache and then loses track of what the specific dataset is, instead using my training data for all datasets: ``` TS 67349 VS 872 ES 1821 TS 67349 VS 67349 ES 67349 ``` The behavior changes if I turn off the caching but then the results fail: ``` train_set = train_set.map(convert_to_features, batched=True, load_from_cache_file=False) ... valid_set = valid_set.map(convert_to_features, batched=True, load_from_cache_file=False) ... test_set = test_set.map(convert_to_features, batched=True, load_from_cache_file=False) ``` Now I get the right set of features back... ``` TS 67349 VS 872 ES 1821 100%|██████████| 68/68 [00:00<00:00, 92.78it/s] 100%|██████████| 1/1 [00:00<00:00, 75.47it/s] 0%| | 0/2 [00:00<?, ?it/s]TS 67349 VS 872 ES 1821 100%|██████████| 2/2 [00:00<00:00, 77.19it/s] ``` but I think its losing track of the original training set: ``` Traceback (most recent call last): File "/home/dpressel/dev/work/baseline/api-examples/layers-classify-hf-datasets.py", line 148, in <module> for x in train_loader: File "/home/dpressel/anaconda3/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 345, in __next__ data = self._next_data() File "/home/dpressel/anaconda3/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 385, in _next_data data = self._dataset_fetcher.fetch(index) # may raise StopIteration File "/home/dpressel/anaconda3/lib/python3.7/site-packages/torch/utils/data/_utils/fetch.py", line 44, in fetch data = [self.dataset[idx] for idx in possibly_batched_index] File "/home/dpressel/anaconda3/lib/python3.7/site-packages/torch/utils/data/_utils/fetch.py", line 44, in <listcomp> data = [self.dataset[idx] for idx in possibly_batched_index] File "/home/dpressel/anaconda3/lib/python3.7/site-packages/nlp/arrow_dataset.py", line 338, in __getitem__ output_all_columns=self._output_all_columns, File "/home/dpressel/anaconda3/lib/python3.7/site-packages/nlp/arrow_dataset.py", line 294, in _getitem outputs = self._unnest(self._data.slice(key, 1).to_pydict()) File "pyarrow/table.pxi", line 1211, in pyarrow.lib.Table.slice File "pyarrow/public-api.pxi", line 390, in pyarrow.lib.pyarrow_wrap_table File "pyarrow/error.pxi", line 85, in pyarrow.lib.check_status pyarrow.lib.ArrowInvalid: Column 3: In chunk 0: Invalid: Length spanned by list offsets (15859698) larger than values array (length 100000) Process finished with exit code 1 ``` The full-example program (minus the print stmts) is here: https://github.com/dpressel/mead-baseline/pull/620/files
21
caching in map causes same result to be returned for train, validation and test hello, I am working on a program that uses the `nlp` library with the `SST2` dataset. The rough outline of the program is: ``` import nlp as nlp_datasets ... parser.add_argument('--dataset', help='HuggingFace Datasets id', default=['glue', 'sst2'], nargs='+') ... dataset = nlp_datasets.load_dataset(*args.dataset) ... # Create feature vocabs vocabs = create_vocabs(dataset.values(), vectorizers) ... # Create a function to vectorize based on vectorizers and vocabs: print('TS', train_set.num_rows) print('VS', valid_set.num_rows) print('ES', test_set.num_rows) # factory method to create a `convert_to_features` function based on vocabs convert_to_features = create_featurizer(vectorizers, vocabs) train_set = train_set.map(convert_to_features, batched=True) train_set.set_format(type='torch', columns=list(vectorizers.keys()) + ['y', 'lengths']) train_loader = torch.utils.data.DataLoader(train_set, batch_size=args.batchsz) valid_set = valid_set.map(convert_to_features, batched=True) valid_set.set_format(type='torch', columns=list(vectorizers.keys()) + ['y', 'lengths']) valid_loader = torch.utils.data.DataLoader(valid_set, batch_size=args.batchsz) test_set = test_set.map(convert_to_features, batched=True) test_set.set_format(type='torch', columns=list(vectorizers.keys()) + ['y', 'lengths']) test_loader = torch.utils.data.DataLoader(test_set, batch_size=args.batchsz) print('TS', train_set.num_rows) print('VS', valid_set.num_rows) print('ES', test_set.num_rows) ``` Im not sure if Im using it incorrectly, but the results are not what I expect. Namely, the `.map()` seems to grab the datset from the cache and then loses track of what the specific dataset is, instead using my training data for all datasets: ``` TS 67349 VS 872 ES 1821 TS 67349 VS 67349 ES 67349 ``` The behavior changes if I turn off the caching but then the results fail: ``` train_set = train_set.map(convert_to_features, batched=True, load_from_cache_file=False) ... valid_set = valid_set.map(convert_to_features, batched=True, load_from_cache_file=False) ... test_set = test_set.map(convert_to_features, batched=True, load_from_cache_file=False) ``` Now I get the right set of features back... ``` TS 67349 VS 872 ES 1821 100%|██████████| 68/68 [00:00<00:00, 92.78it/s] 100%|██████████| 1/1 [00:00<00:00, 75.47it/s] 0%| | 0/2 [00:00<?, ?it/s]TS 67349 VS 872 ES 1821 100%|██████████| 2/2 [00:00<00:00, 77.19it/s] ``` but I think its losing track of the original training set: ``` Traceback (most recent call last): File "/home/dpressel/dev/work/baseline/api-examples/layers-classify-hf-datasets.py", line 148, in <module> for x in train_loader: File "/home/dpressel/anaconda3/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 345, in __next__ data = self._next_data() File "/home/dpressel/anaconda3/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 385, in _next_data data = self._dataset_fetcher.fetch(index) # may raise StopIteration File "/home/dpressel/anaconda3/lib/python3.7/site-packages/torch/utils/data/_utils/fetch.py", line 44, in fetch data = [self.dataset[idx] for idx in possibly_batched_index] File "/home/dpressel/anaconda3/lib/python3.7/site-packages/torch/utils/data/_utils/fetch.py", line 44, in <listcomp> data = [self.dataset[idx] for idx in possibly_batched_index] File "/home/dpressel/anaconda3/lib/python3.7/site-packages/nlp/arrow_dataset.py", line 338, in __getitem__ output_all_columns=self._output_all_columns, File "/home/dpressel/anaconda3/lib/python3.7/site-packages/nlp/arrow_dataset.py", line 294, in _getitem outputs = self._unnest(self._data.slice(key, 1).to_pydict()) File "pyarrow/table.pxi", line 1211, in pyarrow.lib.Table.slice File "pyarrow/public-api.pxi", line 390, in pyarrow.lib.pyarrow_wrap_table File "pyarrow/error.pxi", line 85, in pyarrow.lib.check_status pyarrow.lib.ArrowInvalid: Column 3: In chunk 0: Invalid: Length spanned by list offsets (15859698) larger than values array (length 100000) Process finished with exit code 1 ``` The full-example program (minus the print stmts) is here: https://github.com/dpressel/mead-baseline/pull/620/files Yes, with caching on, it seems to work without the function renaming hack, I mentioned this also in the PR. Thanks!
[ -0.1263226568698883, -0.22070880234241486, -0.10063180327415466, 0.27801087498664856, 0.2454756796360016, -0.2052232325077057, 0.13721056282520294, 0.512859582901001, 0.18828648328781128, -0.06233574450016022, 0.1278197318315506, 0.3891346752643585, 0.0037763724103569984, -0.160617396235466, -0.010743596591055393, 0.024212440475821495, 0.09608042240142822, 0.2350524514913559, -0.14556188881397247, -0.16482335329055786, 0.08189395070075989, 0.21298398077487946, -0.04241039231419563, 0.11652659624814987, -0.39034968614578247, 0.041289687156677246, 0.21235691010951996, -0.23089024424552917, 0.06845805048942566, -0.2570651173591614, 0.16785086691379547, -0.09324321150779724, 0.025833208113908768, 0.16631752252578735, -0.00010973815369652584, 0.006798304617404938, -0.015387766063213348, -0.1385694295167923, -0.007275183219462633, 0.040194764733314514, 0.11813383549451828, -0.21172894537448883, -0.1091824322938919, -0.3121313452720642, -0.33201169967651367, -0.03766108304262161, 0.01780948042869568, -0.3556599020957947, 0.3128575086593628, 0.14745260775089264, 0.26071029901504517, 0.2249092161655426, -0.2538127899169922, 0.2111358791589737, 0.14512750506401062, -0.029327861964702606, -0.174197256565094, -0.04230552166700363, -0.043978914618492126, -0.3344651758670807, -0.37676528096199036, 0.5254564881324768, -0.07658141106367111, 0.1701412945985794, 0.21466660499572754, 0.2250557690858841, 0.17260560393333435, 0.035937726497650146, 0.1429363340139389, -0.11396292597055435, 0.011095017194747925, -0.2269171178340912, -0.02711673453450203, -0.3733724355697632, -0.4186411201953888, -0.07852593064308167, 0.13762545585632324, 0.1810445636510849, -0.13639314472675323, -0.06371608376502991, -0.4319378435611725, 0.23928974568843842, 0.0652494728565216, -0.012788243591785431, 0.11952652037143707, 0.29516083002090454, 0.043806225061416626, 0.19522294402122498, 0.12944671511650085, -0.06973235309123993, -0.02255908027291298, -0.21451671421527863, -0.05897124484181404, 0.2264009565114975, -0.43598538637161255, 0.07208245992660522, 0.43152061104774475, -0.14041411876678467, -0.05324293673038483, 0.030638067051768303, 0.39193105697631836, 0.07921384274959564, 0.11681805551052094, -0.008492052555084229, -0.10416075587272644, 0.5898680090904236, 0.0443217009305954, 0.1711840033531189, -0.014969944953918457, -0.1982785016298294, -0.3560169041156769, 0.004987534135580063, 0.2880179286003113, -0.2866009771823883, 0.4284117817878723, 0.4023604691028595, -0.042260151356458664, -0.12152989208698273, -0.030102383345365524, 0.09402373433113098, -0.33085355162620544, 0.055669743567705154, 0.0587298683822155, 0.3139576017856598, -0.22545050084590912, 0.14926615357398987, -0.17376767098903656, -0.10335467755794525, -0.38496920466423035, 0.12735100090503693, -0.33784613013267517, -0.03332405164837837, -0.49621880054473877, 0.0015165433287620544, 0.2853848338127136, -0.0028596948832273483, 0.28535178303718567, -0.03844526410102844, -0.13722018897533417, -0.30198928713798523, 0.10317374765872955, -0.3985119163990021, 0.5702312588691711, -0.1072293072938919, -0.19701732695102692, 0.24102161824703217, 0.1303786337375641, 0.08526431024074554, -0.2976880967617035, -0.19837728142738342, -0.16980764269828796, -0.20906905829906464, 0.25986045598983765, 0.24224528670310974, -0.07942773401737213, 0.14139583706855774, 0.09248201549053192, 0.0776790976524353, 0.3432585299015045, -0.23285478353500366, 0.10284040123224258, -0.20148901641368866, -0.2819802165031433, -0.204358771443367, 0.16256852447986603, 0.2623097598552704, 0.06677639484405518, -0.13737253844738007, 0.40179675817489624, 0.23718330264091492, 0.14729051291942596, 0.41380682587623596, -0.1965341717004776, 0.30949440598487854, -0.4334914982318878, 0.34861910343170166, 0.5064769387245178, -0.32673171162605286, -0.4963451325893402, 0.09944847971200943, -0.15631616115570068, 0.1002885028719902, 0.10244907438755035, 0.15137307345867157, 0.029087437316775322, 0.014419620856642723, 0.1285368949174881, 0.01870272494852543, -0.0005148481577634811, 0.208420529961586, -0.31692758202552795, -0.021934084594249725, 0.5500645637512207, -0.25246700644493103, 0.02847260981798172, -0.13123688101768494, -0.05504279583692551, 0.02193329855799675, 0.0067679062485694885, -0.11218976974487305, 0.1218593567609787, 0.11460474133491516, -0.056878771632909775, -0.1581847369670868, -0.10643894970417023, -0.0246925987303257, -0.28826284408569336, 0.23830166459083557, -0.1498183310031891, -0.09996803104877472, 0.06172499805688858, -0.0970490574836731, -0.16200324892997742, -0.12927524745464325, -0.18091663718223572, -0.27306440472602844, 0.20130182802677155, 0.23052413761615753, 0.3202398419380188, -0.07290707528591156, 0.22520895302295685, 0.3680821657180786, 0.04836374521255493, -0.21607205271720886, -0.4300343692302704, 0.08568023145198822, -0.17773447930812836, -0.21882808208465576, -0.07484696805477142, 0.22306987643241882, 0.20902660489082336, -0.047926466912031174, -0.14242848753929138, 0.1482764184474945, -0.222085639834404, 0.41891831159591675, -0.1370280385017395, 0.2694522738456726, -0.06965658068656921, 0.02930605039000511, 0.01666761375963688, 0.25400540232658386, 0.05881998687982559, -0.08980180323123932, -0.07270645350217819, 0.47423404455184937, 0.18140259385108948, 0.17011591792106628, -0.04807092621922493, -0.21626819670200348, 0.051984116435050964, -0.1783173829317093, -0.12091567367315292, -0.11881645023822784, 0.1364072859287262, -0.08057232201099396, 0.14888812601566315, 0.15232877433300018, -0.10698716342449188, 0.31200864911079407, 0.7600829601287842, 0.19691896438598633, -0.011016987264156342, 0.015740767121315002, -0.057213060557842255, -0.21779218316078186, 0.3338564336299896, -0.05868256464600563, 0.31038784980773926, 0.1047315001487732, 0.1271648108959198, -0.046209461987018585, -0.21965014934539795, -0.1544356495141983, 0.12464785575866699, -0.21436865627765656, -0.19197607040405273, 0.3080340027809143, 0.28208741545677185, -0.15836751461029053, -0.3537829518318176, 0.09401574730873108, -0.012764312326908112, 0.02619161084294319, -0.1580013632774353, 0.2172369807958603, -0.16652941703796387, -0.2780846357345581, -0.2864150404930115, 0.13615667819976807, -0.12220340967178345, -0.09216566383838654, -0.041263237595558167, 0.42542991042137146, -0.03665441274642944, 0.19515129923820496, -0.31497251987457275, 0.08951936662197113, 0.2266039103269577, -0.2663280665874481, -0.07168535143136978, -0.1902884840965271, -0.3949197232723236, 0.04223187640309334, -0.09523043036460876, -0.09299641847610474, 0.3783295154571533, -0.047315895557403564, -0.06796004623174667, -0.2881453037261963, -0.17254012823104858, 0.10717794299125671, -0.09261167049407959, -0.15536801517009735, 0.16724851727485657, -0.03133857250213623, -0.10115887969732285, -0.29874542355537415, 0.2937970757484436, -0.3053131103515625, -0.29914355278015137, -0.051986560225486755, 0.09890660643577576, 0.030109476298093796, -0.2803474962711334, -0.4286240041255951, 0.273578405380249, -0.31724387407302856, 0.07546795159578323, -0.14892902970314026, 0.1862262636423111, 0.33093464374542236, 0.00895372498780489, -0.014560827054083347, -0.0640399232506752, 0.16439403593540192, -0.46741002798080444, -0.1409536451101303, 0.32257840037345886, 0.01876109279692173, -0.21630431711673737, -0.32459110021591187, -0.27572470903396606, 0.3477241098880768, 0.1923890858888626, -0.5803960561752319, -0.21442312002182007, -0.04890017956495285, 0.2480318546295166, -0.051258526742458344, -0.04649581015110016, 0.5745421648025513, 0.019725235179066658, -0.17946359515190125, -0.16727817058563232, -0.3318409025669098, 0.35973137617111206, 0.4192635118961334, 0.24948740005493164, -0.011158943176269531, 0.17781507968902588, 0.20092041790485382, 0.6707462072372437, 0.2019195854663849, -0.2590573728084564, 0.3317308723926544, 0.10723195970058441, 0.07499716430902481, -0.20349696278572083, -0.3130224645137787, 0.18576037883758545, -0.18160343170166016, 0.019731584936380386, 0.2719839811325073, 0.006251104176044464, -0.28018441796302795, 0.01774188131093979, 0.2188195437192917, -0.22534486651420593, -0.3280583918094635, 0.2597454786300659, -0.34242767095565796, 0.24094820022583008, 0.036370452493429184, 0.31580084562301636, -0.5820142030715942, -0.24272406101226807, 0.19462767243385315, -0.3359467387199402, 0.27984508872032166, 0.044498294591903687, -0.5836003422737122, 0.1214708536863327, -0.5380221009254456, 0.18194139003753662, 0.31462833285331726, 0.27240750193595886, -0.09202545136213303, -0.24652618169784546, 0.04334747791290283, -0.14713142812252045, 0.5711410045623779, 0.04097280651330948, 0.4085800051689148, 0.16992641985416412, -0.1302473247051239, -0.19947309792041779, -0.22471268475055695, 0.017234746366739273, 0.28013738989830017, 0.3264990448951721, 0.4008479714393616, -0.345244437456131, -0.36327338218688965, -0.26576635241508484, 0.007364353165030479, -0.04618103802204132, 0.007107640616595745, -0.12583328783512115, 0.18938520550727844, 0.01648675464093685, 0.17434582114219666, -0.014980485662817955, 0.11830264329910278, 0.016040049493312836, -0.1365458369255066, -0.039133474230766296, -0.21942639350891113, 0.12824128568172455, 0.226437509059906, 0.4735945761203766, 0.15032486617565155, 0.03246128931641579, 0.0332147479057312, 0.2151574343442917, -0.5671091079711914, 0.2659575343132019, -0.0888490378856659, -0.004131823778152466, 0.07464417070150375, 0.144438236951828, -0.03030157834291458, 0.33789771795272827, -0.04252493754029274, 0.14571355283260345, -0.1286291778087616, 0.008956722915172577, -0.5539687275886536, 0.4854544699192047, 0.3874589204788208, 0.13246634602546692, -0.0448899008333683, -0.24685712158679962, 0.17346283793449402, 0.07412011921405792, -0.27653104066848755, 0.1322598159313202, -0.4306930899620056, -0.43199458718299866, 0.18579725921154022, 0.20948642492294312, 0.923247218132019, 0.33202195167541504, 0.37195777893066406, 0.10070403665304184, 0.10358044505119324, 0.26425108313560486, -0.23411208391189575, 0.40925103425979614, -0.36936435103416443, -0.04631776735186577, 0.024538477882742882, -0.16673335433006287, -0.22738394141197205, -0.01042589545249939, -0.01099366694688797, 0.30259501934051514, 0.32405006885528564, 0.5999369025230408, -0.11211933940649033, 0.1666991412639618, 0.21569152176380157, -0.15811008214950562, -0.24923133850097656, 0.20107324421405792, -0.2923039197921753, 0.3152405619621277, -0.11240813881158829, -0.07410877197980881, -0.016509655863046646, -0.3513416647911072, 0.06714028120040894, 0.06094175577163696, -0.3365171253681183, 0.3048413395881653, 0.13346193730831146, -0.2726666331291199, -0.29698777198791504, 0.2550767958164215, 0.11198686063289642, 0.08252747356891632, -0.048599980771541595, -0.03518524393439293, 0.4006442427635193, 0.3504589796066284, -0.0068908920511603355, -0.20158877968788147, 0.18641279637813568, 0.0638754814863205, -0.01289377361536026, 0.030242688953876495, -0.056405920535326004, -0.30158257484436035, -0.2525116205215454, 0.14820444583892822, 0.0033721178770065308, -0.41296207904815674, -0.055318210273981094, 0.061444804072380066, -0.066788449883461, -0.09413720667362213, 0.15088020265102386, -0.026068054139614105, -0.10793968290090561, 0.31515368819236755, 0.11733828485012054, -0.24304215610027313, 0.05235801637172699, 0.4748321771621704, -0.04039723426103592, 0.031817495822906494, 0.4154278635978699, -0.15281841158866882, -0.10380657762289047, -0.25539082288742065, -0.284172922372818, -0.10206026583909988, -0.44884106516838074, 0.1122080534696579, -0.21940632164478302, -0.4019114375114441, 0.044232387095689774, 0.280818372964859, 0.014707226306200027, 0.3184961676597595, -0.011618640273809433, -0.12495823204517365, -0.376972496509552, -0.10379031300544739, -0.10658225417137146, 0.2671777307987213, 0.2795185446739197, 0.2843483090400696, -0.29586637020111084, 0.24922624230384827, -0.3831096589565277, -0.10714218765497208, -0.18716973066329956, 0.43791303038597107, -0.03913825377821922, -0.3655831515789032, -0.0091466773301363, 0.0018548984080553055, 0.12997101247310638, 0.17754501104354858, -0.6386589407920837, -0.29261884093284607, -0.09099164605140686, 0.08186077326536179, -0.007587585598230362, -0.15982197225093842, -0.23928211629390717, -0.017213795334100723, 0.18238520622253418, -0.4274033010005951, 0.09215673804283142, 0.15121665596961975, 0.04703156650066376, 0.23718662559986115, -0.16102977097034454, 0.121455617249012, 0.2881677746772766, -0.18652740120887756, -0.1841484010219574, -0.0762285441160202, 0.0804811418056488, 0.25701698660850525, -0.06946804374456406, 0.020479321479797363, -0.21040309965610504, 0.03047323226928711, 0.08927437663078308, 0.14279496669769287, 0.2369287610054016, -0.024753130972385406, -0.21566127240657806, 0.0005509094335138798, 0.18279987573623657, 0.11411988735198975, -0.0785531997680664, -0.3289754092693329, 0.28022289276123047, 0.27836498618125916, -0.11751759797334671, -0.010236735455691814, 0.16770797967910767, -0.09938845783472061, 0.2528514266014099, 0.20715394616127014, 0.10758784413337708, 0.05261094868183136, 0.2696117162704468, 0.12649419903755188, 0.4050406217575073, -0.34832853078842163, 0.0894213616847992, 0.06441638618707657, 0.10164904594421387, 0.03777812421321869, 0.3812151849269867, -0.15324416756629944, 0.08992215991020203, 0.14838305115699768, 0.1883368045091629, 0.20253945887088776, 0.26289013028144836, 0.21354132890701294, -0.18786436319351196, -0.034120991826057434, -0.24108661711215973, 0.14363622665405273, -0.14272630214691162, 0.4156596064567566, 0.15059252083301544, 0.1928555965423584, -0.11485254019498825, -0.4619385302066803, -0.246268168091774, 0.23536333441734314, -0.3245421051979065, -0.30920878052711487, -0.04867762327194214, -0.08018514513969421, 0.05592885613441467, 0.19456128776073456, -0.07929010689258575, 0.20385880768299103, 0.3428385257720947, -0.008660323917865753, -0.013750255107879639, -0.08435370773077011, -0.17061740159988403, 0.1139787882566452, 0.27486473321914673, -0.08173885941505432, 0.4469367265701294, 0.010800592601299286, -0.051569342613220215, -0.23447129130363464, 0.41141682863235474, 0.2861284613609314, 0.19494768977165222, -0.16886268556118011, 0.06395315378904343, 0.2006472647190094, 0.030613550916314125, -0.3546893298625946, 0.32865193486213684, 0.1511445790529251, -0.29302749037742615, 0.3680057227611542, 0.12379536032676697, -0.2321556657552719, 0.2764037847518921, -0.10419623553752899, -0.2014673352241516, -0.04988923296332359, 0.32243701815605164, 0.09970740228891373, -0.039931803941726685, -0.1949627548456192, 0.11112028360366821, -0.14457139372825623, -0.2853398621082306, 0.15934598445892334, -0.023898055776953697, 0.46766120195388794, -0.2756754159927368, 0.1172051727771759, -0.06182485446333885, 0.622086226940155, -0.02922753617167473, 0.12432871758937836, -0.35013771057128906, 0.10264365375041962, -0.33316677808761597, 0.19840949773788452, -0.08381755650043488, 0.15374277532100677, -0.3975834548473358, 0.20426514744758606, -0.11549846082925797, -0.02346603199839592, -0.1180424839258194, -0.007886635139584541, 0.14740677177906036, 0.17893192172050476, -0.38691768050193787, 0.15548142790794373, -0.08625927567481995, -0.006267234683036804, 0.29177355766296387, -0.3766750693321228, 0.22199079394340515, 0.04247986152768135, 0.20691066980361938, 0.010986395180225372, -0.021723732352256775, -0.054806556552648544, 0.3365737497806549, 0.6232416033744812, 0.347029447555542, 0.14255061745643616, -0.10102751851081848, 0.08155348151922226, -0.34743812680244446, 0.014104198664426804, -0.0608881413936615, -0.20964989066123962, 0.09756805002689362, 0.525830864906311, -0.22562745213508606, 0.13194666802883148, -0.17804594337940216, 0.23669439554214478, 0.3822764754295349, -0.15272890031337738, 0.0618000403046608, 0.048225969076156616, -0.2598409056663513, -0.005199410952627659, -0.12586645781993866, 0.4537956118583679, 0.0071828290820121765, 0.3238304853439331, -0.3592909574508667, -0.5417629480361938, 0.43290975689888, -0.45112597942352295, -0.30252549052238464, 0.12327875941991806, 0.23878563940525055, 0.34956875443458557, -0.06000041216611862, -0.5436675548553467, -0.1724909543991089, 0.26911383867263794, -0.030661188066005707, -0.15704528987407684, 0.20768439769744873, -0.14864379167556763, -0.041075609624385834, -0.11675439774990082, 0.17646870017051697, 0.10152650624513626, -0.2914128005504608, 0.24369895458221436, -0.3701035976409912 ]
https://github.com/huggingface/datasets/issues/157
nlp.load_dataset() gives "TypeError: list_() takes exactly one argument (2 given)"
You can just run: `val = nlp.load_dataset('squad')` if you want to have just the validation script you can also do: `val = nlp.load_dataset('squad', split="validation")`
I'm trying to load datasets from nlp but there seems to have error saying "TypeError: list_() takes exactly one argument (2 given)" gist can be found here https://gist.github.com/saahiluppal/c4b878f330b10b9ab9762bc0776c0a6a
24
nlp.load_dataset() gives "TypeError: list_() takes exactly one argument (2 given)" I'm trying to load datasets from nlp but there seems to have error saying "TypeError: list_() takes exactly one argument (2 given)" gist can be found here https://gist.github.com/saahiluppal/c4b878f330b10b9ab9762bc0776c0a6a You can just run: `val = nlp.load_dataset('squad')` if you want to have just the validation script you can also do: `val = nlp.load_dataset('squad', split="validation")`
[ -0.047978244721889496, 0.060485586524009705, -0.05391333997249603, 0.24448907375335693, 0.2486800104379654, 0.18775814771652222, 0.292264848947525, 0.3124666213989258, 0.18998996913433075, -0.02374321222305298, 0.05578325688838959, 0.40755903720855713, -0.1347433179616928, -0.007908660918474197, 0.2922925353050232, -0.26827821135520935, -0.1929558515548706, 0.32923537492752075, 0.1848604381084442, -0.06305594742298126, -0.06841105222702026, 0.14941519498825073, -0.24617072939872742, 0.15258555114269257, -0.023351214826107025, -0.19032616913318634, -0.0376412533223629, 0.24206560850143433, -0.07512915134429932, -0.5705809593200684, 0.2770504057407379, -0.10467727482318878, 0.2867954671382904, -0.010050304234027863, -0.0001133359910454601, -0.009630579501390457, 0.34324198961257935, -0.20852656662464142, -0.2853948771953583, -0.2410949319601059, -0.2574116587638855, -0.22260962426662445, 0.41684284806251526, -0.22240585088729858, -0.12220586091279984, -0.09496483951807022, 0.28012019395828247, 0.05335885286331177, 0.48466598987579346, 0.49205270409584045, 0.19118793308734894, 0.2663962244987488, -0.2778131663799286, -0.20818239450454712, -0.22903278470039368, -0.007941894233226776, 0.11645504087209702, -0.011576561257243156, 0.025350987911224365, -0.15362557768821716, 0.1678517460823059, 0.04874643683433533, -0.1323895901441574, 0.05739492177963257, 0.23524799942970276, -0.19453555345535278, -0.17814522981643677, -0.2897624373435974, -0.08927316218614578, 0.23840799927711487, 0.35756444931030273, -0.0509687215089798, -0.19110263884067535, -0.09614160656929016, 0.25347912311553955, -0.27809402346611023, 0.11077813059091568, 0.2565832734107971, -0.14187873899936676, -0.01195961982011795, -0.22433975338935852, -0.14952366054058075, -0.16821038722991943, 0.4006269574165344, 0.2719269096851349, 0.3005494475364685, 0.030847739428281784, 0.2198186218738556, 0.4388648271560669, 0.013906378298997879, 0.0014639426954090595, -0.16258424520492554, -0.04481390491127968, 0.2608416676521301, -0.5341178178787231, -0.2073039561510086, -0.08245835453271866, 0.18608802556991577, 0.09074980020523071, 0.0411117821931839, 0.2947389781475067, -0.05866459757089615, -0.057418063282966614, 0.19904056191444397, 0.5088754296302795, 0.10172928869724274, 0.5623299479484558, 0.26909318566322327, -0.1490224301815033, -0.15937794744968414, 0.16826333105564117, 0.04414650425314903, -0.18111157417297363, -0.16657547652721405, 0.12076148390769958, 0.14024698734283447, 0.11634379625320435, -0.2006211280822754, -0.2761595547199249, -0.0517083965241909, -0.1991659700870514, -0.17681288719177246, 0.16002342104911804, 0.537027895450592, -0.061579588800668716, 0.32616832852363586, 0.04829823970794678, 0.11325110495090485, -0.05721072107553482, -0.41973876953125, -0.14762115478515625, 0.3679235279560089, -0.07252691686153412, -0.030250122770667076, 0.427074134349823, -0.07983671128749847, 0.46791449189186096, -0.04344669729471207, -0.14244380593299866, -0.010007712990045547, 0.2092297375202179, -0.165794238448143, -0.08355049043893814, 0.0574742816388607, 0.3793483376502991, -0.047807205468416214, 0.2634984254837036, -0.22802716493606567, -0.11092544347047806, 0.10951575636863708, -0.20672711730003357, -0.10168254375457764, 0.06546545028686523, 0.1888943463563919, -0.022871868684887886, -0.13117121160030365, -0.26017633080482483, 0.1217980682849884, 0.18818584084510803, -0.3063748776912689, -0.3416292369365692, -0.23370389640331268, -0.16772790253162384, -0.11219167709350586, -0.0668831318616867, 0.17564177513122559, -0.24447421729564667, -0.017995860427618027, -0.05429700016975403, -0.014113899320363998, -0.11900479346513748, 0.44515737891197205, -0.5217582583427429, 0.4278976023197174, -0.13656000792980194, 0.36055052280426025, 0.931133508682251, -0.33058539032936096, -0.01891508139669895, 0.23142150044441223, 0.057370349764823914, -0.21367071568965912, -0.048665933310985565, 0.2341497242450714, 0.15056534111499786, -0.011079800315201283, -0.023092657327651978, 0.444644570350647, -0.12185026705265045, 0.06940478831529617, -0.03946733474731445, 0.023236999288201332, 0.43735504150390625, 0.15980280935764313, -0.03093639388680458, 0.1563686728477478, -0.034846238791942596, 0.49573519825935364, 0.32415571808815, -0.22267183661460876, -0.16493353247642517, 0.38297808170318604, -0.15468674898147583, -0.23732046782970428, -0.1041940227150917, -0.17642980813980103, -0.6095246076583862, -0.11064126342535019, -0.15272827446460724, -0.12487632036209106, 0.28746962547302246, -0.0954667329788208, -0.35760197043418884, -0.061215370893478394, -0.05678413435816765, 0.11045564711093903, 0.026387430727481842, 0.20852865278720856, 0.1452481746673584, -0.2851126790046692, -0.3506065309047699, 0.23385009169578552, -0.07665688544511795, -0.05939269810914993, -0.5049276351928711, 0.16256293654441833, -0.1459738165140152, -0.1190997064113617, 0.320526659488678, -0.051669031381607056, 0.2130185067653656, -0.06693554669618607, 0.03748168423771858, 0.3208778500556946, 0.11332323402166367, -0.16749407351016998, -0.045859403908252716, -0.2503066658973694, 0.11785364151000977, -0.16533926129341125, -0.08237118273973465, 0.2613767087459564, 0.26189178228378296, -0.1377427577972412, -0.27143359184265137, 0.3402351438999176, -0.191697359085083, 0.2066088616847992, -0.007875237613916397, 0.16864024102687836, 0.33937832713127136, -0.09276178479194641, -0.22580252587795258, -0.014407884329557419, 0.2171366959810257, 0.16875194013118744, 0.1625564992427826, 0.0007496718317270279, -0.40132245421409607, -0.24046415090560913, 0.4795573949813843, 0.1693532019853592, 0.17847278714179993, -0.05694513022899628, 0.20917662978172302, -0.025562234222888947, 0.13431087136268616, -0.1709837168455124, 0.549785852432251, 0.17691342532634735, -0.295272558927536, -0.01860235445201397, -0.25087425112724304, -0.13878418505191803, 0.14553634822368622, -0.19799448549747467, 0.2664526402950287, -0.0016899779438972473, -0.09357196092605591, -0.13955476880073547, -0.3698902726173401, -0.10324029624462128, 0.2697147727012634, 0.2817147970199585, -0.38689884543418884, 0.12201408296823502, -0.26945459842681885, -0.36933451890945435, -0.18489377200603485, -0.08266282081604004, -0.27258533239364624, -0.27492281794548035, -0.028723206371068954, 0.16940562427043915, 0.18744418025016785, 0.21947355568408966, -0.053387414664030075, 0.18472327291965485, 0.04605498164892197, 0.12260418385267258, -0.012190252542495728, -0.06788943707942963, -0.2740028202533722, 0.033242758363485336, 0.17985771596431732, 0.24689701199531555, 0.24601896107196808, -0.11435919255018234, -0.2566240429878235, -0.024138642475008965, -0.07437194883823395, 0.10522772371768951, -0.009743761271238327, 0.11894681304693222, 0.29739171266555786, 0.32719677686691284, -0.09066373854875565, -0.1738584339618683, 0.1821538358926773, 0.09502857178449631, -0.08005188405513763, 0.1346045732498169, 0.053343117237091064, -0.12405851483345032, -0.20090214908123016, -0.5390251874923706, -0.19125768542289734, -0.248204305768013, 0.02435985580086708, 0.2482367902994156, 0.3123019337654114, 0.31285879015922546, 0.022775515913963318, 0.20326632261276245, -0.29365742206573486, 0.031226100400090218, -0.23766478896141052, 0.19380563497543335, 0.10720063000917435, -0.09778711199760437, -0.45892271399497986, 0.03418741747736931, 0.05524666607379913, 0.18525682389736176, -0.12037713825702667, -0.11074255406856537, -0.5271217823028564, 0.022792955860495567, -0.14985084533691406, -0.32658126950263977, 0.10508326441049576, 0.3287193477153778, -0.23104028403759003, 0.07336380332708359, -0.04619286209344864, -0.2906914949417114, 0.2586798667907715, 0.04625239968299866, 0.3656608760356903, -0.10400562733411789, 0.4038251042366028, 0.09199297428131104, 0.28717857599258423, 0.2608458399772644, -0.23824109137058258, 0.2712728977203369, -0.23202615976333618, 0.258413702249527, 0.20383010804653168, -0.4950603246688843, -0.08476050198078156, 0.0858803316950798, 0.07678356766700745, 0.14552301168441772, -0.34069910645484924, -0.22080521285533905, -0.15592172741889954, 0.04926345869898796, -0.2039717435836792, -0.06156744807958603, 0.17711317539215088, -0.24471613764762878, -0.03189302980899811, 0.1497229039669037, 0.18606477975845337, -0.3374564051628113, -0.09632562100887299, -0.29906588792800903, 0.08306572586297989, 0.15937620401382446, -0.042607057839632034, -0.6257826089859009, -0.24662652611732483, -0.201298326253891, 0.21730178594589233, -0.0509001687169075, 0.5578957796096802, -0.09218613803386688, 0.16525954008102417, 0.10340330749750137, 0.06355757266283035, 0.5722000002861023, -0.19365467131137848, 0.07597077637910843, 0.05561641976237297, 0.17740167677402496, -0.4670737683773041, 0.070381298661232, -0.30272650718688965, 0.4461677074432373, 0.3199687600135803, 0.23011992871761322, -0.3077150881290436, -0.2546515166759491, 0.23427627980709076, 0.0646214485168457, -0.3938438594341278, -0.15138791501522064, -0.3432256281375885, -0.27658310532569885, -0.3246467113494873, 0.03210809826850891, -0.09988168627023697, 0.3159380555152893, 0.27725762128829956, 0.17185334861278534, -0.10501909255981445, -0.1600508689880371, 0.2639560103416443, 0.24847398698329926, 0.18179452419281006, 0.2546618580818176, -0.23297300934791565, -0.3429798185825348, 0.21994733810424805, -0.394825279712677, 0.35629287362098694, -0.07914756238460541, -0.23872330784797668, -0.023056313395500183, -0.10439597070217133, 0.6284292936325073, 0.23750212788581848, -0.09115134924650192, 0.0006652697920799255, -0.01274300366640091, -0.09684838354587555, 0.13459563255310059, 0.16917924582958221, 0.2501637935638428, -0.19535909593105316, -0.23603132367134094, -0.4948008358478546, 0.1556420773267746, 0.06024368479847908, -0.024624839425086975, 0.11102967709302902, -0.42912453413009644, -0.28694164752960205, 0.19149091839790344, 0.03327096998691559, 0.72034752368927, -0.11086875200271606, 0.20772980153560638, 0.32835903763771057, 0.22057600319385529, 0.5223877429962158, 0.18332292139530182, 0.19670410454273224, -0.5505106449127197, -0.08841572701931, 0.016308261081576347, -0.15531238913536072, 0.053839318454265594, 0.5587202310562134, -0.3569827675819397, 0.4578360617160797, 0.05085274577140808, 0.06824789941310883, 0.10645926743745804, 0.711600124835968, 0.10963062196969986, -0.28423789143562317, -0.7899661660194397, 0.12679366767406464, -0.4717497229576111, 0.012664664536714554, -0.15021532773971558, -0.2712710499763489, 0.24102115631103516, -0.4336148500442505, -0.23516012728214264, 0.4454445242881775, -0.08084045350551605, 0.18554148077964783, 0.11416009068489075, -0.023604027926921844, 0.14785218238830566, 0.6605553030967712, 0.03631207346916199, 0.2465561479330063, -0.015777265653014183, 0.005570512264966965, -0.29472535848617554, -0.02251116931438446, -0.35662075877189636, 0.1375780552625656, 0.29564955830574036, -0.11657542735338211, -0.19786888360977173, 0.20535513758659363, -0.024794194847345352, -0.366085946559906, 0.04599985480308533, 0.3323644995689392, -0.11889852583408356, -0.27645546197891235, -0.6099256873130798, 0.029474418610334396, -0.08086052536964417, 0.04342901334166527, 0.0761769637465477, 0.13320820033550262, -0.3710815906524658, 0.1783420443534851, 0.3886563777923584, -0.09666024893522263, 0.22437264025211334, 0.3577514588832855, 0.17137473821640015, -0.08782482147216797, 0.633826494216919, 0.21779827773571014, 0.20361192524433136, -0.3888983130455017, -0.08806192874908447, -0.015034346841275692, -0.19775685667991638, 0.15923798084259033, 0.08799799531698227, 0.014686435461044312, 0.001977711683139205, 0.20466148853302002, 0.004349850118160248, 0.30140161514282227, 0.08678309619426727, -0.4593501091003418, -0.08892416954040527, 0.06465286016464233, 0.0695057213306427, 0.05622100457549095, 0.27907854318618774, 0.05922780930995941, 0.07781734317541122, 0.24176469445228577, -0.2793126702308655, -0.09189286082983017, -0.37767693400382996, 0.3431890606880188, 0.032547950744628906, -0.19791719317436218, -0.07104416936635971, -0.024074723944067955, 0.08811590075492859, 0.01569359190762043, -0.1319458782672882, -0.20389646291732788, -0.050701502710580826, 0.13074900209903717, 0.1073058471083641, 0.16599130630493164, -0.2348485141992569, -0.28710728883743286, -0.10904966294765472, -0.0624413937330246, -0.21994587779045105, -0.10650651901960373, 0.005183480679988861, 0.47252798080444336, 0.32549726963043213, 0.04388672858476639, -0.017534106969833374, -0.04974482208490372, -0.43803301453590393, 0.023462235927581787, 0.001805675681680441, 0.3404187262058258, 0.319877952337265, -0.015982292592525482, -0.513222336769104, -0.04381323605775833, 0.19451530277729034, 0.13730135560035706, 0.031785059720277786, -0.3519864082336426, 0.1275760382413864, -0.061641085892915726, 0.1934378296136856, 0.4508308172225952, -0.21847563982009888, 0.35748758912086487, -0.0891413688659668, 0.11993652582168579, -0.2625106871128082, 0.03650619089603424, 0.48112523555755615, 0.04065138101577759, -0.15291371941566467, 0.32766667008399963, -0.015340223908424377, 0.0515313446521759, 0.1491161286830902, -0.1526934802532196, 0.3365018665790558, -0.18814072012901306, 0.07789912819862366, 0.12993140518665314, -0.1292015165090561, -0.2156590074300766, 0.11822149157524109, -0.06062163785099983, -0.02358240634202957, 0.04135936498641968, -0.38756152987480164, 0.24923069775104523, 0.013785799965262413, 0.000875033438205719, 0.22429588437080383, -0.21145495772361755, 0.016621557995676994, 0.3268392086029053, 0.06247994303703308, 0.052245911210775375, -0.07157862186431885, 0.2790292799472809, -0.21085789799690247, -0.20234429836273193, -0.42028993368148804, 0.34395819902420044, -0.0849120169878006, -0.03857946768403053, -0.6270724534988403, 0.08366749435663223, -0.16336876153945923, 0.031855154782533646, 0.002262122929096222, -0.07335720956325531, 0.21217763423919678, 0.07772621512413025, 0.010697953402996063, -0.36162319779396057, 0.22384613752365112, 0.37640923261642456, -0.1437569260597229, -0.28060105443000793, 0.3382044732570648, -0.1337413638830185, 0.14703044295310974, 0.1625491976737976, 0.26822036504745483, 0.23696479201316833, 0.3678377866744995, 0.20250943303108215, 0.02877292037010193, -0.1917092651128769, -0.11722282320261002, -0.07054728269577026, 0.15979376435279846, 0.22792240977287292, 0.4306643605232239, 0.24318791925907135, 0.15677553415298462, -0.025094646960496902, 0.17617829144001007, 0.024499475955963135, -0.17887908220291138, -0.24932031333446503, 0.5915533304214478, 0.14553004503250122, -0.0688040629029274, -0.43014875054359436, 0.26450005173683167, -0.29304203391075134, 0.017833653837442398, 0.24833527207374573, 0.3755815029144287, 0.2748734652996063, -0.283809632062912, 0.04250651225447655, -0.10074125230312347, 0.5464731454849243, 0.028330504894256592, 0.08142907917499542, -0.29121413826942444, 0.058128297328948975, -0.6404222249984741, -0.005322709679603577, -0.11644157767295837, -0.19110164046287537, 0.19378513097763062, 0.29202181100845337, -0.014348044991493225, 0.395477294921875, -0.25768160820007324, 0.21101340651512146, -0.05102372542023659, 0.011996053159236908, -0.26579195261001587, 0.024393465369939804, 0.20585860311985016, 0.36867207288742065, 0.0010751448571681976, -0.22938182950019836, 0.007719986140727997, -0.048657678067684174, 0.003996126353740692, -0.19352079927921295, -0.1978333294391632, 0.05054846778512001, 0.3167336583137512, -0.1383805274963379, 0.1197504997253418, 0.571341335773468, -0.012729017063975334, 0.06397996097803116, -0.049530576914548874, -0.153605118393898, -0.3061726689338684, 0.25838804244995117, 0.1110239028930664, 0.31034138798713684, -0.20926852524280548, 0.33612751960754395, -0.26118889451026917, 0.2678970992565155, -0.2870093882083893, -0.1376585066318512, -0.1113615408539772, -0.005420212633907795, -0.09697521477937698, 0.29288026690483093, -0.05321164429187775, 0.02308485098183155, 0.003980744630098343, 0.1733211874961853, -0.24531298875808716, -0.19097451865673065, 0.3813106119632721, -0.3571407198905945, -0.3388659358024597, 0.011526930145919323, 0.27369481325149536, -0.2024531066417694, -0.1865314394235611, -0.5078135132789612, -0.2016621232032776, 0.33735203742980957, -0.2002732753753662, -0.16856247186660767, 0.2662326395511627, -0.11832423508167267, 0.006714988499879837, -0.044477999210357666, -0.20236912369728088, 0.11160331219434738, -0.37739095091819763, -0.1624007374048233, -0.367236852645874 ]
https://github.com/huggingface/datasets/issues/157
nlp.load_dataset() gives "TypeError: list_() takes exactly one argument (2 given)"
If you want to load a local dataset, make sure you include a `./` before the folder name.
I'm trying to load datasets from nlp but there seems to have error saying "TypeError: list_() takes exactly one argument (2 given)" gist can be found here https://gist.github.com/saahiluppal/c4b878f330b10b9ab9762bc0776c0a6a
18
nlp.load_dataset() gives "TypeError: list_() takes exactly one argument (2 given)" I'm trying to load datasets from nlp but there seems to have error saying "TypeError: list_() takes exactly one argument (2 given)" gist can be found here https://gist.github.com/saahiluppal/c4b878f330b10b9ab9762bc0776c0a6a If you want to load a local dataset, make sure you include a `./` before the folder name.
[ -0.18173441290855408, 0.16492071747779846, -0.037762291729450226, 0.3960103392601013, 0.21167387068271637, 0.0808851346373558, 0.22526414692401886, 0.20894013345241547, 0.2736937701702118, -0.07648144662380219, 0.0226198248565197, 0.5386043787002563, -0.18132048845291138, -0.03466787934303284, 0.26646968722343445, -0.3476085960865021, -0.10702546685934067, 0.3149692416191101, -0.06500709056854248, -0.20647132396697998, -0.21618549525737762, 0.2870636284351349, -0.20599673688411713, 0.18248751759529114, 0.032629530876874924, -0.13729242980480194, -0.1574772596359253, 0.38989999890327454, -0.036885544657707214, -0.4234907031059265, 0.3749956786632538, -0.11975343525409698, 0.3778783679008484, 0.09478121995925903, -0.00010583185212453827, -0.023475799709558487, 0.4701955318450928, -0.12950605154037476, -0.31018728017807007, -0.3924330472946167, -0.2680526077747345, -0.36209172010421753, 0.4882284700870514, -0.21947330236434937, -0.015879251062870026, -0.2597396671772003, 0.24129177629947662, 0.026401080191135406, 0.25336140394210815, 0.3210203945636749, 0.267022967338562, 0.13992924988269806, -0.20759087800979614, -0.2245948612689972, 0.04585164785385132, 0.1774977296590805, 0.11349300295114517, 0.16329674422740936, 0.07549764215946198, -0.16190238296985626, 0.13347484171390533, -0.007949817925691605, -0.17297181487083435, 0.20866574347019196, 0.2803206443786621, -0.09517388790845871, -0.1461394727230072, -0.06089489161968231, -0.1281754970550537, 0.22022277116775513, 0.5942687392234802, 0.022783424705266953, -0.09913509339094162, -0.06593639403581619, 0.1251932978630066, -0.18567951023578644, 0.15172258019447327, 0.28207388520240784, -0.2423068881034851, -0.017166096717119217, -0.22482529282569885, -0.2694961130619049, -0.19210480153560638, 0.4482886791229248, 0.25871434807777405, 0.23399214446544647, -0.11928242444992065, 0.3122355043888092, 0.33642712235450745, -0.041920796036720276, 0.1714496910572052, -0.19934198260307312, -0.036070648580789566, 0.206396222114563, -0.3502085506916046, 0.14922454953193665, 0.01497463509440422, 0.38421374559402466, 0.05865161120891571, 0.037489570677280426, 0.24146169424057007, -0.06374731659889221, -0.2141750156879425, 0.19802945852279663, 0.4698018729686737, 0.05357597395777702, 0.3585374653339386, 0.24733804166316986, -0.14370210468769073, -0.2810351848602295, 0.06943933665752411, 0.03548981249332428, -0.2649764120578766, -0.04874194413423538, -0.15620650351047516, -0.15277963876724243, 0.18167683482170105, -0.22396403551101685, -0.12230132520198822, -0.2737607955932617, -0.1520315408706665, -0.16680148243904114, 0.1815779060125351, 0.4278891980648041, 0.09064862132072449, 0.2980039417743683, 0.09536458551883698, 0.14980074763298035, -0.1026715338230133, -0.28561413288116455, -0.22983042895793915, 0.14122852683067322, -0.12254953384399414, -0.13853329420089722, 0.37474748492240906, -0.018785588443279266, 0.45671993494033813, -0.038233354687690735, -0.2033587545156479, 0.1767641007900238, 0.13931912183761597, -0.07945312559604645, -0.20956039428710938, 0.1328117847442627, 0.31112733483314514, 0.07772176712751389, 0.3022846579551697, -0.19657516479492188, -0.22455152869224548, 0.1427997350692749, -0.30644893646240234, -0.16937600076198578, -0.1469876766204834, 0.22824408113956451, 0.09559769183397293, -0.1747371256351471, -0.35510244965553284, 0.15559515357017517, 0.01082649827003479, -0.2985847592353821, -0.3533898890018463, -0.1492174118757248, -0.1736251711845398, -0.13280940055847168, -0.06445981562137604, 0.2461007982492447, -0.26402735710144043, -0.013330157846212387, -0.2493097186088562, -0.034075457602739334, 0.16301877796649933, 0.513051450252533, -0.6319717764854431, 0.3277963697910309, -0.2078632265329361, 0.3911229372024536, 0.7557341456413269, -0.08935011923313141, -0.08439062535762787, 0.44103050231933594, 0.03729548305273056, -0.3427172899246216, -0.06615004688501358, 0.32106199860572815, -0.07390125095844269, 0.0138340899720788, 0.09892100840806961, 0.5014771223068237, -0.08185438811779022, 0.05673058331012726, -0.10809693485498428, -0.11478738486766815, 0.3714607357978821, 0.21190892159938812, -0.20938633382320404, 0.2779378890991211, 0.15063637495040894, 0.4080717861652374, 0.25641536712646484, -0.21791359782218933, -0.16217507421970367, 0.3962438106536865, -0.1703132688999176, -0.12920400500297546, -0.12808719277381897, 0.049520596861839294, -0.5174015164375305, -0.02589266747236252, -0.14934007823467255, -0.04292038083076477, 0.21966949105262756, 0.08430597931146622, -0.286521315574646, 0.015759138390421867, -0.033111635595560074, 0.10856455564498901, 0.09553766250610352, 0.4160800278186798, 0.022348351776599884, -0.13811542093753815, -0.20101474225521088, 0.19129258394241333, -0.10285676270723343, -0.1881343126296997, -0.35488563776016235, 0.22094660997390747, -0.11612062901258469, -0.1161726862192154, 0.34254011511802673, -0.1195625588297844, 0.21324491500854492, -0.07906483858823776, -0.04979819804430008, 0.25475987792015076, -0.11558712273836136, 0.09830769896507263, 0.12587185204029083, -0.24093030393123627, 0.03652196750044823, -0.28518199920654297, 0.10467870533466339, 0.2166627198457718, 0.3297913670539856, -0.1805114895105362, -0.386150598526001, 0.14788207411766052, -0.0720377117395401, 0.22285789251327515, 0.0022667907178401947, 0.0943218320608139, 0.40357255935668945, -0.00462755560874939, 0.025720154866576195, 0.10117316246032715, 0.35595229268074036, 0.3568498194217682, 0.25560030341148376, 0.08500880002975464, -0.47242552042007446, -0.19452926516532898, 0.21764428913593292, 0.10265019536018372, 0.16177906095981598, 0.09934161603450775, 0.05845096707344055, -0.20722419023513794, 0.23172737658023834, -0.016677051782608032, 0.6256720423698425, 0.2888614237308502, -0.06287972629070282, -0.06387805938720703, -0.21697795391082764, -0.26501402258872986, 0.11545559763908386, -0.1677088737487793, 0.2183244675397873, -0.09751703590154648, 0.01572386361658573, -0.18762625753879547, -0.44504547119140625, -0.17226482927799225, 0.16859649121761322, 0.3621343970298767, -0.2655332684516907, 0.11522597819566727, -0.35353875160217285, -0.5387764573097229, -0.04724036902189255, -0.20889562368392944, -0.24094164371490479, -0.2782776653766632, -0.15437479317188263, 0.22283229231834412, 0.05257539823651314, 0.13160526752471924, -0.10637553036212921, 0.2991154193878174, 0.09828619658946991, 0.041598133742809296, -0.12958794832229614, -0.05376024544239044, -0.42151209712028503, 0.0692126601934433, 0.3457306921482086, 0.36642885208129883, 0.2584705948829651, -0.14805421233177185, -0.07825696468353271, -0.14104054868221283, 0.10537926107645035, 0.10197211802005768, 0.05454574525356293, 0.2188703715801239, 0.21285739541053772, 0.25625234842300415, -0.17078544199466705, -0.285075843334198, 0.29873162508010864, -0.03765735775232315, -0.07207830995321274, 0.11065062880516052, -0.011361044831573963, -0.16626816987991333, -0.25867438316345215, -0.3502991199493408, -0.298575222492218, -0.354561448097229, 0.11172720789909363, 0.4160962700843811, 0.2045213282108307, 0.2739644944667816, 0.0068995216861367226, 0.310842901468277, -0.12136031687259674, -0.046859510242938995, -0.19620107114315033, -0.15992367267608643, 0.11699502170085907, -0.12507888674736023, -0.46581873297691345, -0.03455956280231476, 0.10899920761585236, 0.1442868411540985, -0.044692233204841614, -0.3045377731323242, -0.2324938178062439, -0.04085536301136017, -0.09806789457798004, -0.13141374289989471, 0.15714748203754425, 0.23711112141609192, -0.1996222287416458, -0.03851369023323059, -0.04302738234400749, -0.26115357875823975, 0.3550448417663574, 0.08485394716262817, 0.236591637134552, 0.0896640494465828, 0.2459273338317871, -0.0686400756239891, 0.2741689085960388, 0.18617041409015656, -0.11417095363140106, 0.4656277298927307, -0.1571580469608307, 0.2868109941482544, -0.040468089282512665, -0.3110334575176239, 0.007605494931340218, 0.15379254519939423, -0.11860200762748718, 0.3943251371383667, -0.04384332150220871, -0.47446590662002563, -0.15914234519004822, -0.07320056855678558, -0.1936900019645691, -0.030825041234493256, 0.150909423828125, -0.13155497610569, 0.010121412575244904, 0.012190289795398712, -0.11078682541847229, -0.2863282859325409, -0.2158372700214386, -0.1978519707918167, 0.04408058896660805, 0.057986289262771606, 0.1012774407863617, -0.5978108644485474, -0.07266075909137726, -0.33720552921295166, 0.20208856463432312, -0.05478326231241226, 0.6055861711502075, -0.23256534337997437, 0.09054393321275711, 0.08659709244966507, 0.08510547876358032, 0.43414825201034546, -0.08853872865438461, 0.06876819580793381, 0.218623548746109, 0.1043594628572464, -0.4736559987068176, 0.11236937344074249, -0.26258936524391174, 0.42660796642303467, 0.06389124691486359, 0.30565106868743896, -0.1797005832195282, -0.2165188193321228, 0.03215830400586128, 0.1714894026517868, -0.33226191997528076, -0.21287158131599426, -0.14362294971942902, -0.317375123500824, -0.2811238467693329, -0.22099342942237854, -0.20682160556316376, 0.2611549496650696, 0.2741915285587311, 0.16879791021347046, -0.16178983449935913, -0.07245209068059921, 0.11299768090248108, 0.015939876437187195, 0.22076451778411865, 0.19234929978847504, -0.2700278162956238, -0.18954363465309143, 0.28428977727890015, -0.2696836292743683, 0.49367251992225647, -0.16844157874584198, -0.02997107058763504, 0.09515707194805145, -0.1637626737356186, 0.40115371346473694, 0.14441680908203125, -0.13258066773414612, -0.11540793627500534, -0.026123736053705215, -0.06579799950122833, -0.032398175448179245, 0.14311115443706512, 0.2165514975786209, -0.20048993825912476, -0.0818389356136322, -0.4670592248439789, 0.42661693692207336, 0.010419048368930817, -0.11254124343395233, 0.26312777400016785, -0.38207709789276123, -0.2714158296585083, 0.30121707916259766, -0.044296108186244965, 0.6325567960739136, -0.2386370450258255, 0.3277733325958252, 0.37647247314453125, 0.2650220990180969, 0.5416571497917175, 0.30123478174209595, 0.050141591578722, -0.32010793685913086, -0.026593755930662155, -0.010258069261908531, -0.15569162368774414, -0.02507452666759491, 0.46318691968917847, -0.312599241733551, 0.2900799810886383, 0.029820039868354797, -0.12977416813373566, 0.17883706092834473, 0.5517038106918335, 0.08735775947570801, -0.2644073963165283, -0.8121377825737, 0.23121044039726257, -0.357105016708374, 0.033625200390815735, -0.11851992458105087, -0.2851409316062927, 0.1299961358308792, -0.24309372901916504, -0.10011967271566391, 0.44213441014289856, 0.06960094720125198, 0.2493879497051239, 0.0401051826775074, -0.11399048566818237, 0.0014157723635435104, 0.5099962949752808, 0.025746677070856094, 0.021278120577335358, -0.26560771465301514, -0.02006157487630844, -0.4163829982280731, 0.033186666667461395, -0.2824680507183075, 0.11663715541362762, 0.19969893991947174, -0.10857857763767242, -0.03328665345907211, -0.00842641294002533, -0.08318794518709183, -0.44964855909347534, 0.0269918292760849, 0.1286887228488922, 0.005928371101617813, -0.06352575123310089, -0.6231587529182434, 0.10302145779132843, -0.06451497972011566, 0.08706901967525482, 0.12939676642417908, 0.2588725686073303, -0.18791066110134125, -0.10544554144144058, 0.36574190855026245, -0.18774840235710144, 0.14522407948970795, 0.3505106270313263, 0.059668079018592834, -0.044222261756658554, 0.5409488677978516, 0.3071982264518738, 0.10049332678318024, -0.2943284511566162, 0.08649996668100357, -0.02355804108083248, -0.11247940361499786, 0.1435966044664383, 0.07072198390960693, 0.19526563584804535, 0.033638544380664825, 0.3984977900981903, 0.1098661944270134, 0.13839468359947205, 0.10887990891933441, -0.5213489532470703, -0.12462429702281952, 0.11969707161188126, -0.1379736065864563, 0.13033847510814667, 0.22631347179412842, -0.06835891306400299, 0.3383351266384125, -0.0009444337338209152, -0.3291742205619812, 0.019927574321627617, -0.43287521600723267, 0.18901531398296356, 0.16216537356376648, -0.047865115106105804, 0.008395313285291195, 0.10139420628547668, 0.1302054524421692, -0.19232217967510223, -0.162175714969635, -0.2228134572505951, 0.007192952558398247, 0.10534153133630753, 0.1618340015411377, -0.0018959096632897854, -0.15856610238552094, -0.48069655895233154, -0.035651691257953644, 0.00986210536211729, -0.22202026844024658, -0.06800590455532074, -0.19604186713695526, 0.30815744400024414, 0.26661965250968933, 0.007545903325080872, -0.12720879912376404, 0.18970046937465668, -0.4071495831012726, -0.007939144968986511, -0.10215052962303162, 0.217810720205307, 0.32398033142089844, -0.12890467047691345, -0.30888688564300537, 0.05020301789045334, 0.0872260108590126, 0.15940947830677032, 0.10793694853782654, -0.2871789336204529, 0.22421187162399292, 0.03537305071949959, 0.2761373817920685, 0.2336181253194809, -0.1900801658630371, 0.3175787031650543, 0.12985825538635254, 0.18888308107852936, -0.24557313323020935, -0.1276438981294632, 0.3067602217197418, 0.08636755496263504, -0.1376013308763504, 0.16011199355125427, 0.04587152227759361, -0.23165981471538544, -0.04209165275096893, -0.1830100417137146, 0.3428035080432892, -0.23229651153087616, -0.08065927028656006, 0.26170751452445984, -0.21492999792099, -0.09691567718982697, 0.03887447714805603, 0.1646551489830017, 0.10132882744073868, 0.42093348503112793, -0.2638902962207794, 0.1601247489452362, 0.08364972472190857, 0.1174878254532814, 0.17185485363006592, -0.4299754202365875, 0.12232907116413116, 0.33310186862945557, 0.2134530246257782, 0.03749566525220871, -0.12454730272293091, 0.2487550675868988, -0.26039281487464905, -0.07677004486322403, -0.24018451571464539, 0.3554290235042572, -0.13189265131950378, -0.197637140750885, -0.5061554908752441, -0.06799376755952835, -0.10614457726478577, 0.004314444959163666, -0.16621823608875275, -0.10714250802993774, 0.2077884078025818, 0.08338171988725662, 0.07019617408514023, -0.5049278140068054, 0.14369669556617737, 0.32429084181785583, -0.3905443549156189, -0.23310990631580353, 0.3381955325603485, -0.14779703319072723, -0.020401768386363983, 0.14888477325439453, 0.2539528012275696, 0.27292782068252563, 0.5522406697273254, 0.12104718387126923, 0.01569429412484169, -0.06839986145496368, -0.11893747746944427, -0.28651246428489685, 0.10868662595748901, 0.11874470114707947, 0.4551870822906494, 0.29927751421928406, 0.2070508450269699, -0.07047445327043533, 0.3092944920063019, -0.095028355717659, -0.07971863448619843, -0.2047463059425354, 0.5447614789009094, -0.011854294687509537, -0.06406829506158829, -0.25370216369628906, 0.1976337432861328, -0.3508049547672272, 0.016287077218294144, 0.3670661747455597, 0.14253173768520355, 0.29907920956611633, -0.12122681736946106, 0.07453135401010513, -0.13452398777008057, 0.6167287826538086, 0.13942374289035797, 0.318208247423172, -0.2117813378572464, -0.20575475692749023, -0.6120725870132446, 0.004665844142436981, -0.13096536695957184, -0.15463313460350037, 0.21825933456420898, 0.22863410413265228, 0.18707576394081116, 0.29392725229263306, -0.2870684266090393, 0.28982213139533997, -0.1562623828649521, -0.05238208919763565, -0.2451222687959671, -0.09803229570388794, 0.09940839558839798, 0.29301464557647705, -0.12429884821176529, -0.32237979769706726, 0.09190653264522552, -0.12754932045936584, 0.0963745042681694, -0.22158566117286682, -0.09529808163642883, -0.022689634934067726, 0.28778329491615295, -0.09634312987327576, 0.1893838495016098, 0.4010133743286133, 0.005678743124008179, 0.05891827493906021, -0.1345384418964386, -0.35687485337257385, -0.22994796931743622, 0.058426111936569214, -0.0629681646823883, 0.3110414445400238, -0.4552662968635559, 0.46346184611320496, -0.33024123311042786, 0.01614912413060665, -0.1946723908185959, 0.09597525000572205, -0.16242483258247375, 0.17841868102550507, -0.26337316632270813, 0.07647112756967545, 0.01781015843153, 0.036663126200437546, 0.17444409430027008, 0.021358424797654152, -0.14194507896900177, -0.055583350360393524, 0.4751201272010803, -0.4024736285209656, -0.333753377199173, 0.10602043569087982, 0.07987238466739655, -0.18315154314041138, -0.14114750921726227, -0.2714116871356964, -0.11781474947929382, 0.4060053825378418, -0.15645331144332886, -0.17392776906490326, 0.19832567870616913, -0.060246217995882034, -0.023319877684116364, -0.11658264696598053, -0.009512417018413544, 0.12249342352151871, -0.3754434287548065, -0.12748630344867706, -0.41222310066223145 ]
https://github.com/huggingface/datasets/issues/157
nlp.load_dataset() gives "TypeError: list_() takes exactly one argument (2 given)"
This happens by just doing run all cells on colab ... I assumed the colab example is broken.
I'm trying to load datasets from nlp but there seems to have error saying "TypeError: list_() takes exactly one argument (2 given)" gist can be found here https://gist.github.com/saahiluppal/c4b878f330b10b9ab9762bc0776c0a6a
18
nlp.load_dataset() gives "TypeError: list_() takes exactly one argument (2 given)" I'm trying to load datasets from nlp but there seems to have error saying "TypeError: list_() takes exactly one argument (2 given)" gist can be found here https://gist.github.com/saahiluppal/c4b878f330b10b9ab9762bc0776c0a6a This happens by just doing run all cells on colab ... I assumed the colab example is broken.
[ 0.018842998892068863, 0.045055001974105835, 0.005720514804124832, 0.3553816080093384, 0.04850844293832779, 0.015845701098442078, 0.3805161416530609, 0.0017088744789361954, 0.08251491189002991, -0.06964147090911865, 0.060975074768066406, 0.6260887384414673, -0.15430696308612823, 0.017712427303195, 0.2570038139820099, -0.13670989871025085, -0.00550658255815506, 0.4703561067581177, -0.04915802180767059, -0.10325425863265991, -0.2574828565120697, 0.29891788959503174, -0.4601309299468994, 0.034343332052230835, -0.15751338005065918, -0.14368261396884918, -0.26230326294898987, 0.08756054192781448, -0.032391227781772614, -0.2693215310573578, 0.4908156394958496, -0.037695545703172684, 0.1595059335231781, 0.2392021119594574, -0.0001199438120238483, -0.1626405417919159, 0.3819344639778137, -0.18678176403045654, -0.5980207920074463, -0.31888777017593384, -0.43961474299430847, -0.35564717650413513, 0.5800087451934814, -0.24172192811965942, 0.0015588626265525818, 0.10168063640594482, 0.24420420825481415, 0.24779704213142395, 0.251304566860199, 0.22708159685134888, 0.18594709038734436, 0.052515603601932526, -0.2828713655471802, -0.22719551622867584, 0.10200540721416473, 0.044117074459791183, 0.020282132551074028, 0.23979847133159637, 0.21752481162548065, -0.22531801462173462, 0.27495816349983215, 0.09929810464382172, -0.2582588493824005, 0.19614705443382263, 0.05917209014296532, -0.10973957180976868, -0.190532386302948, -0.08064352720975876, -0.07348605990409851, 0.29477405548095703, 0.46331319212913513, 0.10149781405925751, -0.09703309834003448, -0.18073591589927673, 0.33497825264930725, -0.3535570204257965, 0.2506338655948639, 0.160724475979805, -0.33574193716049194, -0.10151363909244537, -0.20353391766548157, -0.13731783628463745, -0.017472703009843826, 0.41940003633499146, 0.15646904706954956, 0.2983802556991577, -0.2599449157714844, 0.2820229232311249, 0.3466847836971283, 0.08488152921199799, 0.46721431612968445, -0.09395648539066315, 0.03153987601399422, 0.11057635396718979, -0.3193624019622803, 0.09378772974014282, -0.07640901952981949, 0.5058097243309021, -0.012625616043806076, -0.2257356196641922, 0.3272549510002136, -0.16873756051063538, -0.21404273808002472, 0.2629675269126892, 0.3502494692802429, -0.006718779448419809, 0.3153291940689087, 0.090288907289505, -0.14348621666431427, -0.16879186034202576, -0.014286117628216743, 0.0906805619597435, -0.33855441212654114, 0.08521033078432083, -0.19459114968776703, -0.12551802396774292, 0.171926811337471, -0.21884402632713318, -0.22748079895973206, -0.2521558105945587, -0.3828364610671997, -0.029662076383829117, 0.205755352973938, 0.4171340763568878, -0.002147182822227478, 0.15639466047286987, 0.12630385160446167, 0.027834970504045486, -0.1686483919620514, -0.38102900981903076, -0.16444355249404907, 0.11619102954864502, -0.21634723246097565, -0.0061729904264211655, 0.3435817062854767, 0.10511259734630585, 0.4116133451461792, 0.0553373247385025, -0.09243080019950867, 0.1041882187128067, -0.06827827543020248, -0.33077630400657654, -0.17658600211143494, 0.17213939130306244, 0.3596378564834595, 0.015212612226605415, 0.32922765612602234, -0.30523401498794556, -0.032095104455947876, 0.3024980425834656, -0.29443997144699097, -0.0814935714006424, 0.030141126364469528, 0.09526559710502625, -0.019978223368525505, -0.04240289330482483, -0.5787673592567444, 0.32030990719795227, 0.3033503592014313, -0.5106571912765503, -0.3087828755378723, -0.3915749788284302, -0.2988184690475464, -0.1256198137998581, -0.09531264752149582, 0.26002413034439087, -0.14383813738822937, 0.03607337921857834, -0.08599072694778442, 0.29354023933410645, 0.24631068110466003, 0.3319583237171173, -0.5736115574836731, 0.31381434202194214, -0.2048133760690689, 0.27747148275375366, 0.627532422542572, 0.17954380810260773, -0.18970274925231934, 0.11056814342737198, 0.19690008461475372, -0.14134451746940613, -0.08447883278131485, 0.22613440454006195, 0.05779022350907326, -0.11419958621263504, 0.24886156618595123, 0.29808181524276733, -0.12080827355384827, 0.0419585183262825, -0.12817634642124176, -0.09406595677137375, 0.35276156663894653, 0.06415052711963654, -0.1838855892419815, 0.3009245991706848, -0.06468001753091812, 0.39782389998435974, 0.3637022078037262, -0.15710392594337463, -0.24955043196678162, 0.22590424120426178, -0.07803654670715332, -0.2327929586172104, -0.10852636396884918, 0.10715865343809128, -0.44726938009262085, -0.16310490667819977, 0.12753573060035706, 0.07770378142595291, 0.24213634431362152, 0.004942290484905243, -0.23432967066764832, 0.04657755792140961, 0.12844368815422058, 0.11675183475017548, -0.008637292310595512, 0.3010907769203186, -0.15333613753318787, -0.1769399642944336, -0.19457681477069855, 0.3904252052307129, -0.17717158794403076, -0.14020098745822906, -0.2490788847208023, 0.2533183991909027, 0.007327543571591377, -0.2020684778690338, 0.2641591429710388, -0.10660899430513382, 0.24374696612358093, -0.04363900423049927, -0.11066548526287079, 0.0648491233587265, 0.06644783914089203, -0.1450035572052002, -0.10399822145700455, -0.282815158367157, 0.023721283301711082, -0.029854360967874527, -0.05330118536949158, 0.0986916720867157, 0.39307230710983276, -0.21308019757270813, -0.19033241271972656, 0.26272284984588623, -0.08607311546802521, 0.2650960385799408, -0.02535746805369854, 0.11888139694929123, 0.27337631583213806, 0.12285657227039337, -0.027947641909122467, 0.16267162561416626, 0.3042266070842743, 0.403307169675827, 0.08433984220027924, 0.18419738113880157, -0.45276373624801636, 0.030109912157058716, 0.3008407950401306, 0.19921615719795227, 0.23224902153015137, 0.006475754082202911, 0.06780822575092316, -0.1812390685081482, 0.4324337840080261, -0.06431586295366287, 0.6145315170288086, 0.18867304921150208, -0.20903530716896057, -0.10174781829118729, -0.11302976310253143, -0.28190308809280396, 0.18768107891082764, -0.13477343320846558, 0.4792536497116089, -0.3165476620197296, 0.12072164565324783, -0.16722092032432556, -0.3869827389717102, -0.24854350090026855, 0.29136499762535095, 0.4233628809452057, -0.3012811243534088, 0.2501382827758789, -0.3041698932647705, -0.5747195482254028, -0.029065441340208054, -0.23195376992225647, -0.029211021959781647, -0.2642417848110199, -0.19249583780765533, 0.46792733669281006, 0.23984453082084656, 0.16299740970134735, -0.07385018467903137, 0.401050865650177, 0.06142637878656387, 0.2328597456216812, -0.08305497467517853, -0.08529545366764069, -0.42408639192581177, 0.013671446591615677, 0.13678088784217834, 0.2953565716743469, 0.01467534713447094, -0.2348010540008545, -0.24499185383319855, 0.1951458752155304, -0.05923169478774071, 0.23620189726352692, -0.15030087530612946, 0.17126043140888214, 0.24296587705612183, 0.16823232173919678, -0.5622744560241699, -0.16709651052951813, 0.06649146229028702, 0.0026001539081335068, -0.059672631323337555, 0.04907803237438202, -0.014526736922562122, -0.211680606007576, -0.19219587743282318, -0.09834577888250351, -0.21906191110610962, -0.160204216837883, 0.09419025480747223, 0.22148828208446503, 0.26862645149230957, 0.35340702533721924, 0.060130421072244644, 0.3149450719356537, 0.09922318160533905, -0.017248883843421936, -0.27756792306900024, 0.016765478998422623, 0.07801958918571472, -0.051263630390167236, -0.293923020362854, -0.044204872101545334, -0.009795255959033966, 0.15740087628364563, -0.030938416719436646, -0.3212946057319641, -0.49906593561172485, 0.02855147048830986, -0.26990485191345215, -0.15559136867523193, 0.1095619723200798, 0.16307595372200012, -0.14437702298164368, 0.1118977814912796, 0.000005070120096206665, -0.36249902844429016, 0.21379023790359497, 0.04985944926738739, 0.26630887389183044, 0.09621315449476242, 0.2913757562637329, -0.013663675636053085, 0.13540875911712646, 0.23486867547035217, -0.05751960352063179, 0.355951189994812, -0.14407716691493988, 0.23383943736553192, 0.025085385888814926, -0.4332301616668701, 0.10900255292654037, 0.04650057107210159, -0.19900405406951904, 0.3114967346191406, -0.14710530638694763, -0.40567561984062195, -0.10297264158725739, 0.008367687463760376, -0.2438024878501892, -0.14954864978790283, 0.207683727145195, -0.22320568561553955, -0.08232370764017105, 0.14313700795173645, 0.025384441018104553, -0.3486611545085907, -0.17268258333206177, -0.5382249355316162, 0.1132897287607193, 0.11113981902599335, -0.043945830315351486, -0.19521920382976532, -0.23550714552402496, -0.3916324973106384, 0.23789960145950317, -0.0027549569495022297, 0.6446544528007507, -0.01960787922143936, 0.14630144834518433, 0.22594131529331207, 0.19956015050411224, 0.5205608606338501, 0.07908202707767487, -0.1048814207315445, 0.253030389547348, 0.022015564143657684, -0.3757421672344208, -0.023688413202762604, -0.30891576409339905, 0.7288349866867065, 0.1766834408044815, 0.06620218604803085, -0.1405593454837799, -0.09325309097766876, 0.19858692586421967, 0.10598395764827728, -0.2695717513561249, -0.1981986165046692, -0.20734615623950958, -0.4354093372821808, -0.16672974824905396, -0.08643794804811478, -0.09890708327293396, 0.18021464347839355, 0.0933297649025917, 0.1534482091665268, -0.2424212545156479, -0.15635225176811218, 0.25137558579444885, 0.27860888838768005, 0.08259093761444092, 0.3105609714984894, -0.21696196496486664, -0.4663381278514862, 0.03745592385530472, -0.11728283762931824, 0.4401257336139679, -0.18588346242904663, -0.0011642128229141235, 0.18743133544921875, -0.20953518152236938, 0.4377322494983673, 0.3021082878112793, -0.18058669567108154, 0.06076173484325409, -0.24634885787963867, -0.15030303597450256, 0.35784849524497986, 0.09615709632635117, 0.1690751016139984, -0.055196668952703476, -0.18373413383960724, -0.5243781208992004, 0.34723392128944397, 0.04188520833849907, -0.16123197972774506, 0.2484370768070221, -0.35399967432022095, -0.27736473083496094, 0.2996807098388672, -0.11094576865434647, 0.8321902751922607, -0.1266225278377533, 0.3009489178657532, 0.5401301980018616, 0.4465813636779785, 0.6798887848854065, 0.3885038495063782, 0.280307412147522, -0.33198657631874084, -0.3079812526702881, -0.023288678377866745, -0.22385138273239136, -0.06784851104021072, 0.36283087730407715, -0.41128069162368774, 0.3376835584640503, -0.027840297669172287, 0.009977206587791443, 0.36098819971084595, 0.15333031117916107, 0.0450642928481102, -0.20348097383975983, -1.0773439407348633, 0.12187647819519043, -0.35954874753952026, 0.016104806214571, -0.2016160786151886, -0.14023511111736298, -0.004662293940782547, -0.19804927706718445, -0.10520109534263611, 0.43977102637290955, -0.22039839625358582, 0.08348749577999115, 0.09749284386634827, -0.17989368736743927, 0.10566289722919464, 0.5122750997543335, 0.09337271004915237, 0.10807487368583679, -0.0910509005188942, -0.08358393609523773, -0.05870840698480606, 0.09290976077318192, -0.28372839093208313, -0.08055408298969269, 0.21597504615783691, -0.019496360793709755, -0.009166419506072998, 0.09112810343503952, 0.007368217222392559, -0.4445006847381592, 0.2532139718532562, 0.31052517890930176, -0.050201527774333954, -0.14103713631629944, -0.5808531045913696, 0.27430081367492676, 0.04354778304696083, -0.07049347460269928, 0.033101268112659454, 0.1849222183227539, -0.27203044295310974, 0.2190476655960083, 0.3326032757759094, -0.18101832270622253, 0.161943256855011, 0.2498016357421875, 0.2368975281715393, 0.11040088534355164, 0.6567305326461792, 0.2099248319864273, 0.0971611738204956, -0.16727933287620544, -0.01765953004360199, -0.16200289130210876, -0.21842563152313232, 0.2865262031555176, -0.08959074318408966, 0.20461885631084442, 0.09780243784189224, 0.665097177028656, 0.10553282499313354, 0.27916958928108215, 0.1492864191532135, -0.48480552434921265, -0.0581243634223938, 0.13497523963451385, -0.020740095525979996, -0.004033684730529785, 0.36637765169143677, 0.10077902674674988, 0.12610360980033875, 0.010566027835011482, -0.2117125242948532, 0.08265576511621475, -0.3914163112640381, 0.17683476209640503, 0.1331157386302948, -0.04264621436595917, -0.006691950373351574, 0.06702829897403717, 0.01781768538057804, 0.07627962529659271, 0.022819310426712036, -0.14507122337818146, -0.04341451823711395, 0.17430664598941803, 0.18426606059074402, -0.02386104129254818, -0.32535165548324585, -0.35072600841522217, -0.14802874624729156, -0.06745020300149918, -0.2227754443883896, -0.11482761055231094, -0.14038589596748352, 0.06667027622461319, 0.3694595694541931, 0.10925769805908203, -0.0782337635755539, 0.2560464143753052, -0.46524128317832947, -0.0711703896522522, 0.04965512827038765, 0.22743238508701324, 0.40179643034935, 0.08917291462421417, 0.007891276851296425, 0.04635176062583923, -0.16393597424030304, 0.054270192980766296, 0.14050206542015076, -0.4412919878959656, 0.33049944043159485, -0.20291180908679962, 0.023258641362190247, 0.34679263830184937, -0.10973934084177017, 0.1332850456237793, 0.12451154738664627, 0.0473390594124794, -0.21832795441150665, 0.0846271887421608, 0.4756411015987396, 0.2179630994796753, -0.15507130324840546, 0.5182563066482544, 0.023643460124731064, -0.10523078590631485, -0.0653340220451355, -0.17416879534721375, 0.184605672955513, 0.05398961529135704, -0.07239510118961334, 0.0390968918800354, -0.2783755362033844, 0.07989963889122009, 0.041939474642276764, 0.024878591299057007, 0.09753590822219849, 0.16976021230220795, -0.2942805290222168, 0.14845010638237, 0.04538904130458832, 0.02970544621348381, 0.2482108771800995, -0.42284491658210754, 0.25557056069374084, 0.36072683334350586, 0.22103741765022278, 0.056591492146253586, -0.10938158631324768, 0.20687361061573029, -0.4830940067768097, -0.1412043571472168, -0.24776563048362732, 0.3302393853664398, -0.22876423597335815, -0.09495410323143005, -0.4242094159126282, 0.07958019524812698, -0.18716487288475037, -0.02337387204170227, -0.30701935291290283, -0.04183881729841232, 0.26990750432014465, 0.09262827038764954, 0.0871971845626831, -0.4432075321674347, -0.05660188943147659, 0.4643259048461914, -0.16353362798690796, -0.15996138751506805, 0.3797775208950043, -0.37491661310195923, 0.05495131015777588, -0.023897167295217514, 0.3070365786552429, 0.31536775827407837, 0.5219582319259644, 0.22883863747119904, -0.23982465267181396, 0.05587155371904373, -0.06217733025550842, -0.2804093360900879, 0.06019262224435806, 0.3870794475078583, 0.5215957760810852, 0.14565299451351166, 0.07198125869035721, -0.002166026271879673, 0.5232653617858887, 0.003566678613424301, -0.20933787524700165, -0.2321677953004837, 0.28334006667137146, -0.005683589726686478, -0.08554372936487198, -0.29165562987327576, 0.23496311902999878, -0.20035818219184875, 0.23295828700065613, 0.21461158990859985, 0.031425125896930695, 0.28055986762046814, 0.10359175503253937, -0.0037103164941072464, -0.02784883603453636, 0.46721717715263367, 0.1311962604522705, 0.32715603709220886, -0.35067448019981384, -0.26802003383636475, -0.45137819647789, -0.0028923898935317993, -0.24624991416931152, -0.12957361340522766, 0.07875198870897293, 0.018891172483563423, 0.14880254864692688, 0.2157796323299408, -0.2876194715499878, 0.20329011976718903, 0.0059476373717188835, -0.037146180868148804, -0.24953655898571014, -0.3417990207672119, 0.10399425029754639, 0.042129527777433395, -0.1263802945613861, -0.197780579328537, 0.06105019152164459, -0.12425711750984192, 0.007641386240720749, -0.33557766675949097, -0.1542004942893982, -0.0714070126414299, 0.14610815048217773, -0.132571280002594, 0.22743123769760132, 0.42849892377853394, 0.02027028053998947, -0.024410828948020935, 0.016893405467271805, -0.371776819229126, -0.2659430205821991, 0.1922810971736908, 0.02266814187169075, 0.23521587252616882, -0.2476637214422226, 0.5727088451385498, -0.2042476236820221, 0.07514030486345291, -0.05981585010886192, 0.21859756112098694, -0.12079025059938431, 0.2023945152759552, -0.3862578868865967, 0.2626584470272064, -0.017983997240662575, 0.028840359300374985, 0.026013171300292015, 0.137388676404953, -0.23585809767246246, 0.04637809842824936, 0.5678300857543945, -0.436708003282547, -0.29316699504852295, -0.0399848073720932, 0.12491817027330399, -0.17951220273971558, -0.21638040244579315, -0.41073670983314514, -0.2804538309574127, 0.3210200369358063, -0.23511475324630737, -0.26312804222106934, 0.4131293296813965, -0.10976104438304901, -0.07275009155273438, -0.17932550609111786, 0.22240905463695526, 0.03212185204029083, -0.4685641825199127, -0.2566356062889099, -0.34958386421203613 ]
https://github.com/huggingface/datasets/issues/157
nlp.load_dataset() gives "TypeError: list_() takes exactly one argument (2 given)"
Oh I see you might have a wrong version of pyarrow install on the colab -> could you try the following. Add these lines to the beginning of your notebook, restart the runtime and run it again: ``` !pip uninstall -y -qq pyarrow !pip uninstall -y -qq nlp !pip install -qq git+https://github.com/huggingface/nlp.git ```
I'm trying to load datasets from nlp but there seems to have error saying "TypeError: list_() takes exactly one argument (2 given)" gist can be found here https://gist.github.com/saahiluppal/c4b878f330b10b9ab9762bc0776c0a6a
53
nlp.load_dataset() gives "TypeError: list_() takes exactly one argument (2 given)" I'm trying to load datasets from nlp but there seems to have error saying "TypeError: list_() takes exactly one argument (2 given)" gist can be found here https://gist.github.com/saahiluppal/c4b878f330b10b9ab9762bc0776c0a6a Oh I see you might have a wrong version of pyarrow install on the colab -> could you try the following. Add these lines to the beginning of your notebook, restart the runtime and run it again: ``` !pip uninstall -y -qq pyarrow !pip uninstall -y -qq nlp !pip install -qq git+https://github.com/huggingface/nlp.git ```
[ -0.1487932950258255, 0.17735856771469116, -0.041525065898895264, 0.34283995628356934, 0.14300183951854706, -0.11361690610647202, 0.15513752400875092, 0.1810096651315689, -0.1386965662240982, -0.023554235696792603, -0.10861364006996155, 0.8248565196990967, -0.10884861648082733, 0.0025473907589912415, 0.28960490226745605, -0.27395594120025635, -0.09029334038496017, 0.4029024541378021, -0.07659487426280975, -0.06394752115011215, -0.13412748277187347, 0.38768506050109863, -0.2954273819923401, 0.18722683191299438, -0.1233508363366127, -0.13013996183872223, -0.13666346669197083, 0.18668612837791443, -0.20760799944400787, -0.4219767153263092, 0.32893916964530945, -0.07309463620185852, 0.2341250628232956, 0.2311660647392273, -0.00010976528574246913, -0.04748528450727463, 0.2344951033592224, -0.05678433179855347, -0.2778356075286865, -0.35943055152893066, -0.09514335542917252, -0.3835335075855255, 0.6282967329025269, -0.3426677882671356, -0.06194580718874931, -0.013691618107259274, 0.20647697150707245, 0.5288483500480652, 0.3657010793685913, 0.33355259895324707, 0.2460252195596695, 0.2046811431646347, 0.012927230447530746, -0.10199672728776932, 0.3749502897262573, -0.06572510302066803, -0.07363760471343994, 0.4479805827140808, 0.2363189309835434, -0.2795599400997162, 0.10324348509311676, 0.07229514420032501, -0.21240398287773132, 0.1664637327194214, 0.17796412110328674, 0.07693316787481308, -0.06711661070585251, -0.12339052557945251, -0.14972978830337524, 0.11543761193752289, 0.3498930037021637, -0.19990608096122742, 0.006463099271059036, -0.07818980515003204, 0.17890127003192902, -0.37276774644851685, 0.14607177674770355, 0.3057049512863159, -0.35312411189079285, 0.0832638293504715, -0.03298936039209366, -0.18133626878261566, -0.1379810869693756, 0.3700062036514282, 0.15926165878772736, 0.34651827812194824, -0.08435028791427612, 0.21899813413619995, 0.3824262320995331, 0.07362523674964905, 0.40750452876091003, 0.008380279876291752, -0.036072563380002975, 0.07847654819488525, -0.14909978210926056, 0.11506488919258118, 0.0018026456236839294, 0.4292602837085724, -0.015894025564193726, -0.12788908183574677, 0.21029947698116302, -0.039897143840789795, 0.129563570022583, 0.2672191858291626, 0.07841664552688599, 0.17712777853012085, 0.10823605954647064, 0.01988738775253296, 0.03428695350885391, -0.0640794187784195, 0.0264681838452816, 0.05378393828868866, -0.19295229017734528, -0.1257612407207489, -0.09868642687797546, -0.15964889526367188, 0.24929256737232208, -0.1578545868396759, -0.3151191771030426, -0.3915250897407532, -0.35931313037872314, -0.09047131985425949, 0.09770692884922028, 0.4054092764854431, -0.17765848338603973, 0.007945215329527855, 0.18423590064048767, 0.21253418922424316, -0.3329131007194519, -0.20863671600818634, -0.14191044867038727, 0.16885972023010254, -0.30384546518325806, -0.0869804248213768, 0.3669924736022949, -0.08692975342273712, 0.43506160378456116, 0.09158569574356079, -0.09064483642578125, 0.09902156889438629, -0.05134076625108719, -0.12034228444099426, -0.28507575392723083, 0.17919465899467468, 0.29822421073913574, -0.03110860288143158, 0.141555055975914, -0.38121747970581055, -0.13455691933631897, 0.3453601896762848, -0.20352524518966675, -0.20042753219604492, -0.12069888412952423, 0.18479925394058228, -0.02288844995200634, -0.18635277450084686, -0.3829174339771271, 0.13298587501049042, 0.13753286004066467, -0.22882762551307678, -0.29355868697166443, -0.27050238847732544, 0.019612710922956467, -0.24606819450855255, -0.011032380163669586, -0.009929955005645752, -0.29366815090179443, -0.09030637890100479, -0.13321508467197418, 0.04531796649098396, 0.22465193271636963, 0.39511391520500183, -0.5292745232582092, 0.4179307818412781, -0.13167032599449158, 0.3782481551170349, 0.6474617719650269, -0.04383406415581703, -0.35237038135528564, 0.07771334797143936, 0.010097183287143707, -0.13193254172801971, -0.16126185655593872, 0.22647425532341003, 0.03552079573273659, 0.08664806932210922, 0.24762964248657227, 0.2930697798728943, 0.07335639744997025, 0.1554502248764038, -0.340482234954834, -0.22224314510822296, 0.2725399136543274, 0.19886323809623718, 0.05504661798477173, 0.043854277580976486, 0.03521084412932396, 0.13026252388954163, 0.36096063256263733, -0.2110336422920227, -0.2131265103816986, 0.18360938131809235, 0.1716727763414383, -0.03420741856098175, -0.17867887020111084, 0.05592387169599533, -0.35016757249832153, -0.008057624101638794, -0.1969948410987854, 0.2563137710094452, -0.057734668254852295, -0.010011417791247368, -0.21238505840301514, 0.11703113466501236, 0.009682856500148773, 0.017845964059233665, 0.11864437162876129, 0.23564361035823822, 0.07543565332889557, -0.0449417307972908, -0.0608423575758934, 0.24006642401218414, -0.01173223927617073, 0.07176456600427628, -0.1706356704235077, 0.3285124599933624, -0.28639426827430725, -0.4844663739204407, 0.2462787628173828, 0.05028471350669861, 0.18796783685684204, -0.031981002539396286, 0.052797600626945496, 0.16226035356521606, -0.11168777197599411, -0.202608123421669, -0.19102656841278076, -0.18931545317173004, 0.07057754695415497, -0.31896862387657166, 0.06968538463115692, 0.08352316915988922, 0.20041675865650177, 0.0006725043058395386, 0.09998266398906708, 0.2382412999868393, 0.05371685326099396, 0.010343119502067566, -0.023510897532105446, 0.016290882602334023, 0.14990046620368958, -0.10021466016769409, 0.10778427124023438, 0.3029182553291321, 0.3645246922969818, 0.3195043206214905, 0.1586582064628601, 0.0025911498814821243, -0.4805750846862793, -0.02472437173128128, 0.3976519703865051, 0.19726282358169556, 0.17919909954071045, 0.05375739187002182, -0.07636814564466476, -0.04594239220023155, 0.3068544566631317, -0.3248242437839508, 0.4616416096687317, 0.3096233010292053, -0.2889770567417145, 0.03408696874976158, -0.2853962481021881, -0.28939664363861084, 0.1371689736843109, -0.09384569525718689, 0.3083266317844391, -0.06945384293794632, 0.24946486949920654, -0.1373804211616516, -0.46856197714805603, -0.1146644800901413, 0.0716930702328682, 0.3634006679058075, -0.27643969655036926, 0.16557928919792175, -0.2789686620235443, -0.576641857624054, -0.0026113735511898994, -0.377804160118103, -0.21395041048526764, -0.16014403104782104, -0.008017688989639282, 0.33292603492736816, 0.25123265385627747, 0.2919049561023712, 0.284227579832077, 0.15328913927078247, -0.07976169139146805, -0.06174498796463013, -0.11778350174427032, -0.2035914808511734, -0.45031002163887024, 0.07920175790786743, 0.22953741252422333, 0.2759787142276764, 0.14671912789344788, -0.27583327889442444, -0.1061243787407875, -0.04843224585056305, -0.2091178297996521, 0.06439919769763947, -0.1999305933713913, 0.4625602960586548, 0.1053721010684967, 0.17169582843780518, -0.40720027685165405, -0.3779236674308777, 0.33009666204452515, -0.12466469407081604, -0.11408056318759918, 0.01412111148238182, -0.06606916338205338, -0.19999723136425018, -0.16099102795124054, -0.2568092346191406, -0.35213348269462585, -0.3320150077342987, 0.2843407094478607, 0.33006468415260315, 0.18350502848625183, 0.27629217505455017, 0.13258522748947144, 0.30614352226257324, -0.05401892587542534, 0.02625979483127594, -0.12487586587667465, 0.07323555648326874, 0.09296198934316635, -0.11241640895605087, -0.4067385494709015, 0.0862567126750946, -0.016520220786333084, 0.19049173593521118, -0.04903847351670265, -0.4750242829322815, -0.4325566589832306, -0.03864935785531998, 0.3313347101211548, -0.1380579173564911, 0.1436624526977539, 0.31426310539245605, -0.07710220664739609, 0.008918145671486855, 0.08111640065908432, -0.2799065113067627, 0.14586369693279266, 0.11945249885320663, 0.26129812002182007, -0.05059643089771271, 0.07720857858657837, -0.04482588917016983, 0.5389635562896729, -0.08061358332633972, -0.07314570248126984, 0.41565850377082825, -0.15543757379055023, 0.1861875355243683, -0.0001038089394569397, -0.3473634719848633, 0.05607171729207039, -0.007989361882209778, -0.04891231656074524, 0.44760382175445557, -0.14623871445655823, -0.44947367906570435, -0.1367115080356598, 0.050756487995386124, -0.3940080404281616, -0.21103166043758392, 0.2257075160741806, 0.2409782111644745, 0.03292924165725708, 0.17771324515342712, -0.04296943172812462, -0.17138169705867767, -0.2843976318836212, -0.22308215498924255, 0.05123288556933403, -0.13994598388671875, -0.03822167217731476, -0.20547710359096527, -0.31460660696029663, -0.5384991765022278, 0.25064992904663086, 0.08991168439388275, 0.18329642713069916, -0.05738082900643349, 0.04984341561794281, 0.31544461846351624, 0.01601416803896427, 0.4428642988204956, 0.15613466501235962, -0.16243578493595123, 0.26480332016944885, 0.1484651118516922, -0.43509194254875183, -0.1480478197336197, -0.38812246918678284, 0.4172620475292206, 0.32171833515167236, 0.11325344443321228, -0.3579915463924408, -0.09522717446088791, 0.1670895665884018, 0.13648372888565063, -0.17774486541748047, -0.09859311580657959, -0.3406650424003601, -0.46462568640708923, -0.23374927043914795, -0.061502762138843536, -0.056470468640327454, 0.3895000219345093, 0.08273850381374359, 0.23435811698436737, -0.10190072655677795, -0.057252805680036545, 0.04081880301237106, 0.23351244628429413, 0.23983201384544373, 0.07128291577100754, -0.18777231872081757, -0.4298276901245117, 0.09241877496242523, 0.04481944069266319, 0.4507400691509247, -0.11987075209617615, -0.1727014183998108, -0.023832853883504868, -0.10746879875659943, 0.3415607511997223, 0.16173158586025238, -0.1103244423866272, 0.040113769471645355, -0.22295928001403809, 0.03780603036284447, 0.2822963297367096, 0.19101928174495697, 0.27328425645828247, -0.05209900438785553, -0.14974352717399597, -0.11346157640218735, 0.3765217065811157, 0.0413663424551487, -0.09798180311918259, 0.07579191774129868, -0.2930535078048706, -0.30408963561058044, 0.3363381624221802, -0.017218641936779022, 0.8864097595214844, -0.2272505909204483, 0.33222928643226624, 0.6621401309967041, 0.16910263895988464, 0.5987753868103027, 0.13114383816719055, 0.351598858833313, -0.5247064828872681, -0.1329181045293808, 0.09873777627944946, -0.12581512331962585, -0.08338169008493423, 0.20617932081222534, -0.43006694316864014, 0.22105589509010315, 0.24166904389858246, -0.10761579871177673, 0.2421884685754776, 0.23473694920539856, 0.11851585656404495, -0.06211881712079048, -0.8111829161643982, 0.18403813242912292, -0.4015738368034363, 0.10162073373794556, -0.3028542101383209, -0.1754031926393509, -0.0820065438747406, -0.25733858346939087, -0.14817383885383606, 0.27116286754608154, -0.4599970877170563, 0.09197377413511276, 0.24212078750133514, -0.32070738077163696, -0.06753765046596527, 0.34893426299095154, -0.042877279222011566, 0.08001551032066345, -0.08438710868358612, 0.046803832054138184, -0.12341772764921188, -0.21932844817638397, -0.12378344684839249, 0.13576306402683258, 0.13686156272888184, -0.1435548961162567, -0.1878618597984314, 0.13055989146232605, -0.04067709296941757, -0.4170721173286438, 0.1590574085712433, 0.18504464626312256, -0.03260853886604309, -0.13870637118816376, -0.3320940434932709, 0.15572896599769592, 0.07525724172592163, -0.1019873321056366, 0.1313638687133789, 0.0862012654542923, -0.1734531968832016, 0.23050421476364136, 0.21860988438129425, -0.24913443624973297, 0.038865476846694946, 0.30131563544273376, 0.03885171189904213, 0.06763367354869843, 0.4714345633983612, 0.3445553481578827, -0.05362781882286072, -0.24841487407684326, -0.17385795712471008, -0.30656516551971436, -0.3511999547481537, 0.15812861919403076, 0.1769610345363617, 0.18445827066898346, 0.1050063893198967, 0.7097858190536499, 0.251531183719635, 0.18089111149311066, 0.09112595021724701, -0.3801753520965576, -0.05724560469388962, 0.21115928888320923, 0.09171231836080551, -0.04209539666771889, 0.428220272064209, 0.1901564747095108, 0.31564632058143616, -0.03525480628013611, -0.3332711458206177, 0.14731639623641968, -0.42130258679389954, 0.2532193064689636, 0.01600070111453533, -0.2545110285282135, 0.0547906830906868, 0.12105929851531982, 0.1523275375366211, -0.0012898743152618408, -0.08239206671714783, -0.2743918299674988, -0.01193574070930481, 0.09508638828992844, 0.08220458030700684, -0.03883788734674454, -0.1826980710029602, -0.24176375567913055, 0.13090574741363525, -0.019020190462470055, 0.00042737647891044617, -0.08730137348175049, -0.15830381214618683, 0.1622689813375473, 0.34844771027565, 0.0771058201789856, -0.06544167548418045, 0.16979360580444336, -0.41770878434181213, 0.12247232347726822, 0.17627036571502686, 0.188803568482399, 0.20524398982524872, 0.024384744465351105, 0.019992846995592117, -0.059314124286174774, 0.06098249554634094, 0.1278040111064911, 0.029890626668930054, -0.4590287208557129, 0.04421032592654228, -0.22402963042259216, 0.19447197020053864, 0.25366586446762085, -0.14318342506885529, -0.003823244944214821, 0.30475807189941406, 0.218107208609581, -0.328723669052124, -0.00763898529112339, 0.33764538168907166, 0.07933878898620605, -0.07954344153404236, 0.2886001169681549, 0.0738825798034668, -0.12894710898399353, 0.07664956897497177, -0.03769480437040329, 0.2600882947444916, 0.0634450912475586, -0.1863854080438614, 0.08941519260406494, -0.1593291014432907, -0.020567286759614944, 0.1780702918767929, 0.15956605970859528, 0.10406365990638733, 0.058166854083538055, -0.42875003814697266, 0.04466930031776428, -0.1730939745903015, 0.15296147763729095, 0.08768709003925323, -0.29665571451187134, -0.09282216429710388, 0.29032447934150696, 0.2871258854866028, -0.11081575602293015, -0.09212858974933624, 0.4882980287075043, -0.05254124477505684, -0.12734366953372955, -0.16166508197784424, 0.4248254597187042, -0.31007757782936096, -0.06904114782810211, -0.2973684072494507, 0.020032070577144623, -0.1517924964427948, 0.08383429050445557, -0.2869225740432739, -0.18728457391262054, 0.24946999549865723, 0.22846603393554688, -0.08039301633834839, -0.5375569462776184, 0.08247321099042892, 0.32342973351478577, -0.2376469075679779, -0.06699445843696594, 0.3535556197166443, -0.2561560273170471, -0.06913051009178162, -0.22354277968406677, 0.47346925735473633, 0.3910309970378876, 0.4207763969898224, -0.09527288377285004, -0.18494558334350586, -0.08884584903717041, 0.008761392906308174, -0.2569758892059326, 0.06048618629574776, 0.4327027499675751, 0.6803272366523743, 0.1491394191980362, 0.1645185351371765, -0.16274908185005188, 0.31998178362846375, -0.05784492567181587, -0.20806469023227692, -0.09295760095119476, 0.23064303398132324, 0.07978413999080658, -0.2521176338195801, -0.15422320365905762, 0.08134204149246216, -0.37456563115119934, 0.39970988035202026, 0.1591050773859024, 0.08106566220521927, 0.15199071168899536, -0.1392202079296112, 0.0746278241276741, -0.14440618455410004, 0.5761416554450989, 0.3628769516944885, 0.5610787868499756, -0.3690730333328247, -0.3454780578613281, -0.5076924562454224, 0.18095529079437256, -0.3644894063472748, -0.15765488147735596, 0.09807398915290833, 0.16332688927650452, -0.016216471791267395, 0.3809628486633301, -0.21185849606990814, 0.22270162403583527, -0.05488645285367966, -0.0331597775220871, -0.45570555329322815, 0.05769633874297142, 0.20778478682041168, -0.10752618312835693, -0.0050818659365177155, -0.18486621975898743, 0.02240823209285736, -0.3520939350128174, 0.0984448716044426, -0.3358089327812195, -0.11870671808719635, 0.08558598160743713, 0.24738317728042603, 0.23724845051765442, 0.12747721374034882, 0.398124098777771, 0.04242684692144394, 0.009126650169491768, 0.006032884120941162, -0.40420493483543396, -0.22439460456371307, 0.1370314061641693, 0.04983900487422943, 0.2697416841983795, -0.1895676553249359, 0.3870377242565155, -0.2441132366657257, 0.26508837938308716, 0.0390806645154953, 0.06839383393526077, 0.12753574550151825, 0.029450548812747, -0.13235123455524445, 0.008487719111144543, -0.11134523898363113, 0.14610090851783752, 0.13850483298301697, 0.0935589000582695, -0.43710243701934814, -0.16931505501270294, 0.4644251763820648, -0.4737013876438141, -0.24824906885623932, 0.04742205888032913, 0.06518751382827759, -0.12439598888158798, -0.2313198447227478, -0.38929951190948486, -0.19245198369026184, 0.3040790557861328, -0.1035848930478096, -0.2666769027709961, 0.331668496131897, -0.10109999775886536, -0.011099766939878464, -0.06211256980895996, 0.16791264712810516, 0.10469429939985275, -0.3704235851764679, -0.3236939311027527, -0.44753676652908325 ]
https://github.com/huggingface/datasets/issues/157
nlp.load_dataset() gives "TypeError: list_() takes exactly one argument (2 given)"
> Oh I see you might have a wrong version of pyarrow install on the colab -> could you try the following. Add these lines to the beginning of your notebook, restart the runtime and run it again: > > ``` > !pip uninstall -y -qq pyarrow > !pip uninstall -y -qq nlp > !pip install -qq git+https://github.com/huggingface/nlp.git > ``` Tried, having the same error.
I'm trying to load datasets from nlp but there seems to have error saying "TypeError: list_() takes exactly one argument (2 given)" gist can be found here https://gist.github.com/saahiluppal/c4b878f330b10b9ab9762bc0776c0a6a
65
nlp.load_dataset() gives "TypeError: list_() takes exactly one argument (2 given)" I'm trying to load datasets from nlp but there seems to have error saying "TypeError: list_() takes exactly one argument (2 given)" gist can be found here https://gist.github.com/saahiluppal/c4b878f330b10b9ab9762bc0776c0a6a > Oh I see you might have a wrong version of pyarrow install on the colab -> could you try the following. Add these lines to the beginning of your notebook, restart the runtime and run it again: > > ``` > !pip uninstall -y -qq pyarrow > !pip uninstall -y -qq nlp > !pip install -qq git+https://github.com/huggingface/nlp.git > ``` Tried, having the same error.
[ -0.11674542725086212, 0.18429440259933472, -0.024337878450751305, 0.4034664034843445, 0.16035841405391693, -0.0801020935177803, 0.21262268722057343, 0.1767459362745285, -0.10105079412460327, -0.029240205883979797, -0.0643659383058548, 0.8222455978393555, -0.12645265460014343, -0.01372168306261301, 0.3064843714237213, -0.31759336590766907, -0.06043446809053421, 0.40539154410362244, -0.07650266587734222, -0.07332803308963776, -0.13812972605228424, 0.40365782380104065, -0.313693106174469, 0.1750764101743698, -0.08933667838573456, -0.14192715287208557, -0.16085675358772278, 0.13324762880802155, -0.1906818002462387, -0.43546271324157715, 0.35441407561302185, -0.09069220721721649, 0.24267393350601196, 0.2432132065296173, -0.00011379936768207699, -0.04112233966588974, 0.2418607473373413, -0.06527594476938248, -0.30705851316452026, -0.3983514904975891, -0.13344460725784302, -0.3729761838912964, 0.654297411441803, -0.3005971312522888, -0.027433231472969055, -0.041560642421245575, 0.23864375054836273, 0.5376313328742981, 0.37288445234298706, 0.3187704384326935, 0.21712540090084076, 0.19014382362365723, -0.021203424781560898, -0.1347406953573227, 0.3434087038040161, -0.039381906390190125, -0.05034103989601135, 0.4133884012699127, 0.2552081346511841, -0.2643211781978607, 0.1400379240512848, 0.05218546837568283, -0.24304291605949402, 0.1733250468969345, 0.21043607592582703, 0.021680010482668877, -0.04557601362466812, -0.14782561361789703, -0.14971596002578735, 0.1675877720117569, 0.38230136036872864, -0.14615222811698914, -0.007581211626529694, -0.08683830499649048, 0.16976642608642578, -0.35368165373802185, 0.15029028058052063, 0.2991667091846466, -0.3662485182285309, 0.04298722371459007, -0.03873777762055397, -0.20041927695274353, -0.13471336662769318, 0.406993567943573, 0.18669964373111725, 0.3191032409667969, -0.08083344250917435, 0.2694011330604553, 0.44259315729141235, 0.09775806218385696, 0.3867420554161072, 0.01868986152112484, -0.03059268370270729, 0.09452137351036072, -0.2340414971113205, 0.1411142796278, -0.028344109654426575, 0.4344557523727417, -0.02648451365530491, -0.13920055329799652, 0.19124604761600494, -0.07197582721710205, 0.09891355037689209, 0.2541508376598358, 0.16943569481372833, 0.18231000006198883, 0.13928952813148499, 0.04559188336133957, -0.03523987531661987, -0.09944594651460648, 0.04985206201672554, 0.07584807276725769, -0.211287260055542, -0.13604135811328888, -0.0762297585606575, -0.16877448558807373, 0.25068968534469604, -0.15413948893547058, -0.30557137727737427, -0.3601973354816437, -0.3899206221103668, -0.11999265849590302, 0.10786958783864975, 0.39799168705940247, -0.11456406116485596, 0.08222293853759766, 0.19590000808238983, 0.22717946767807007, -0.3056085705757141, -0.27293115854263306, -0.1145990639925003, 0.17537535727024078, -0.2887846529483795, -0.08230741322040558, 0.3766975998878479, -0.10485194623470306, 0.3892618417739868, 0.15204200148582458, -0.12410016357898712, 0.06760402768850327, -0.055573396384716034, -0.13655409216880798, -0.30214276909828186, 0.1692291647195816, 0.2672598361968994, -0.002134503796696663, 0.21279315650463104, -0.3595517873764038, -0.15038901567459106, 0.36588534712791443, -0.220535546541214, -0.22479529678821564, -0.12205648422241211, 0.1412147432565689, 0.02838706225156784, -0.17688384652137756, -0.4445577561855316, 0.15173718333244324, 0.1788909137248993, -0.24664224684238434, -0.276802122592926, -0.3186875581741333, 0.007781278342008591, -0.2150367945432663, -0.07105407118797302, 0.008766934275627136, -0.2900654077529907, -0.08582715690135956, -0.14624154567718506, 0.07737427949905396, 0.21425144374370575, 0.43887415528297424, -0.5672302842140198, 0.4444163739681244, -0.14192667603492737, 0.33850836753845215, 0.6782346367835999, -0.018309975042939186, -0.3235284984111786, 0.0883154571056366, 0.0305539071559906, -0.13647949695587158, -0.13481977581977844, 0.24494948983192444, 0.042906321585178375, 0.07435782253742218, 0.2120756059885025, 0.254886269569397, 0.03736801818013191, 0.12822499871253967, -0.3341505825519562, -0.22083891928195953, 0.32608848810195923, 0.17192012071609497, 0.044967710971832275, 0.08585391193628311, 0.0007426738739013672, 0.15151751041412354, 0.3673001527786255, -0.19400903582572937, -0.2241535484790802, 0.21605001389980316, 0.16586796939373016, -0.05582277476787567, -0.1567898988723755, 0.05220867693424225, -0.3774958550930023, -0.027250349521636963, -0.1940358430147171, 0.23646272718906403, -0.03663167357444763, -0.017010824754834175, -0.22514119744300842, 0.10775315016508102, 0.03930628299713135, 0.04168868064880371, 0.0596332848072052, 0.211859792470932, 0.04638778790831566, -0.05467049777507782, -0.09572669863700867, 0.24987754225730896, -0.015315186232328415, 0.04596510902047157, -0.20437213778495789, 0.28878358006477356, -0.25840669870376587, -0.44833171367645264, 0.2522761821746826, -0.024650484323501587, 0.23160779476165771, -0.045017845928668976, 0.0484645739197731, 0.14494338631629944, -0.10904430598020554, -0.1970134824514389, -0.21916145086288452, -0.18472807109355927, 0.08608587831258774, -0.3083515465259552, 0.027937190607190132, 0.10443168878555298, 0.20745791494846344, -0.0422421358525753, 0.0940597802400589, 0.2297777533531189, 0.0535011813044548, 0.09396880865097046, -0.07055972516536713, 0.04538186639547348, 0.1401529163122177, -0.056574251502752304, 0.12239915877580643, 0.310003399848938, 0.38664883375167847, 0.35481810569763184, 0.15660160779953003, 0.027369322255253792, -0.48181459307670593, -0.02499135583639145, 0.3454563319683075, 0.21027572453022003, 0.16180483996868134, 0.08273007720708847, -0.02989395707845688, -0.05057770758867264, 0.31438109278678894, -0.3307669758796692, 0.4674464464187622, 0.25904110074043274, -0.31217044591903687, 0.019640672951936722, -0.25908228754997253, -0.276958167552948, 0.16263310611248016, -0.10409295558929443, 0.3069712221622467, -0.12217731028795242, 0.22256918251514435, -0.13705173134803772, -0.4423551857471466, -0.1141144186258316, 0.12177678197622299, 0.4049738347530365, -0.3246612846851349, 0.19758383929729462, -0.2822493016719818, -0.572262167930603, -0.01032333169132471, -0.38827237486839294, -0.25828853249549866, -0.16444194316864014, -0.03555041551589966, 0.3743381202220917, 0.25890374183654785, 0.28220123052597046, 0.2758609354496002, 0.2206670641899109, -0.043691765516996384, -0.029489869251847267, -0.12243629992008209, -0.18350668251514435, -0.4691479802131653, 0.03288029879331589, 0.23223598301410675, 0.25159594416618347, 0.10451017320156097, -0.29575979709625244, -0.19973677396774292, -0.06197832524776459, -0.17779701948165894, 0.07048557698726654, -0.21009552478790283, 0.4583042562007904, 0.15143704414367676, 0.24394169449806213, -0.4031870365142822, -0.3655143082141876, 0.30610761046409607, -0.06788655370473862, -0.09834794700145721, 0.056174300611019135, -0.10180167853832245, -0.17745722830295563, -0.17542223632335663, -0.25094205141067505, -0.2995205819606781, -0.28879085183143616, 0.3235301971435547, 0.29830652475357056, 0.23418764770030975, 0.2694033086299896, 0.1197187751531601, 0.26395758986473083, -0.06447102129459381, 0.023980440571904182, -0.13636891543865204, 0.060876745730638504, 0.08083245903253555, -0.06232511252164841, -0.3854478895664215, 0.08665317296981812, 0.029997531324625015, 0.19673599302768707, -0.04616899415850639, -0.4895894527435303, -0.45294931530952454, -0.06506587564945221, 0.3251759111881256, -0.15885701775550842, 0.15839986503124237, 0.3022812008857727, -0.09266632050275803, 0.04651696979999542, 0.10723144561052322, -0.2898402512073517, 0.2133357673883438, 0.1094609797000885, 0.28548097610473633, -0.013904187828302383, 0.12351535260677338, -0.00944967195391655, 0.5484434962272644, -0.0017549879848957062, -0.06845229864120483, 0.3987728953361511, -0.15261825919151306, 0.1563473641872406, 0.002743355929851532, -0.36814644932746887, 0.037367191165685654, -0.02337479591369629, -0.06953511387109756, 0.41683095693588257, -0.16593977808952332, -0.46269339323043823, -0.12257859110832214, 0.06194794550538063, -0.3594362437725067, -0.213908851146698, 0.24082614481449127, 0.19358548521995544, 0.053126972168684006, 0.1630571186542511, -0.05530991777777672, -0.2096184939146042, -0.2863788902759552, -0.22076523303985596, 0.08780866861343384, -0.08694802969694138, -0.0201715175062418, -0.22508402168750763, -0.29708176851272583, -0.5088520050048828, 0.2509250342845917, 0.05280172824859619, 0.28173282742500305, -0.06707710772752762, 0.09509720653295517, 0.3330950140953064, 0.04276668652892113, 0.5087604522705078, 0.19183211028575897, -0.1700253188610077, 0.2541189193725586, 0.1583370566368103, -0.4275510907173157, -0.14680920541286469, -0.36406832933425903, 0.43971988558769226, 0.31460827589035034, 0.07405510544776917, -0.37333589792251587, -0.11248910427093506, 0.14654727280139923, 0.15660344064235687, -0.20322895050048828, -0.10832905024290085, -0.3091740012168884, -0.4813620448112488, -0.23112066090106964, -0.04028213769197464, -0.051849573850631714, 0.37982121109962463, 0.11059924215078354, 0.27304401993751526, -0.08718068897724152, -0.09026236087083817, 0.07369139790534973, 0.1693742424249649, 0.2320992350578308, 0.07327192276716232, -0.20000337064266205, -0.4365992844104767, 0.051461610943078995, 0.015659213066101074, 0.4611101448535919, -0.13310003280639648, -0.1863543689250946, -0.011139020323753357, -0.1330203115940094, 0.3412382900714874, 0.2154456079006195, -0.13333095610141754, 0.07387861609458923, -0.21244461834430695, 0.022820789366960526, 0.28740164637565613, 0.13563042879104614, 0.2971387207508087, -0.06798260658979416, -0.1731097251176834, -0.16159465909004211, 0.3831518888473511, 0.041841279715299606, -0.12182936817407608, 0.11787454038858414, -0.3031165599822998, -0.31348973512649536, 0.3468058109283447, -0.04413750022649765, 0.9466435313224792, -0.26169639825820923, 0.35282957553863525, 0.643776535987854, 0.21625514328479767, 0.6181929111480713, 0.202984020113945, 0.3590892553329468, -0.523003876209259, -0.16196545958518982, 0.06927451491355896, -0.15884414315223694, -0.06961873918771744, 0.23651206493377686, -0.4519898295402527, 0.244350865483284, 0.16364169120788574, -0.11681348085403442, 0.26468905806541443, 0.2421244978904724, 0.11288753896951675, -0.03832843899726868, -0.8219120502471924, 0.14587214589118958, -0.43737363815307617, 0.08630116283893585, -0.30262047052383423, -0.18396084010601044, -0.05406566709280014, -0.28699159622192383, -0.215860515832901, 0.2583194077014923, -0.47102394700050354, 0.10635929554700851, 0.26581981778144836, -0.300165593624115, -0.029127318412065506, 0.38206541538238525, -0.01985996961593628, 0.033583302050828934, -0.09368378669023514, 0.049171678721904755, -0.12695103883743286, -0.17260590195655823, -0.16653023660182953, 0.10633941739797592, 0.13983696699142456, -0.10860922187566757, -0.17860442399978638, 0.12218284606933594, -0.06226572021842003, -0.46949559450149536, 0.1321440041065216, 0.19773587584495544, -0.0869303047657013, -0.13852553069591522, -0.3822508752346039, 0.14941859245300293, 0.07356373965740204, -0.07076629996299744, 0.09413300454616547, 0.13297590613365173, -0.1765102744102478, 0.21602079272270203, 0.20149755477905273, -0.2504371404647827, 0.06532233953475952, 0.30188363790512085, 0.0679551213979721, 0.03667847067117691, 0.5193567276000977, 0.3891947865486145, -0.03380110487341881, -0.22977083921432495, -0.1690053641796112, -0.3114829361438751, -0.36269864439964294, 0.19723503291606903, 0.12264586240053177, 0.22155480086803436, 0.08385489135980606, 0.7151266932487488, 0.24344266951084137, 0.2275899350643158, 0.12696340680122375, -0.3996836841106415, -0.03580331802368164, 0.19138562679290771, 0.07485967129468918, -0.027588490396738052, 0.3770533502101898, 0.15194754302501678, 0.3207681477069855, -0.0033023320138454437, -0.2881687581539154, 0.15066710114479065, -0.4082627594470978, 0.2566251754760742, 0.036663394421339035, -0.22470036149024963, 0.03630875423550606, 0.10879942774772644, 0.10770678520202637, -0.029858503490686417, -0.08835288137197495, -0.2236030101776123, -0.02880890481173992, 0.1295609027147293, 0.08903487771749496, -0.026649581268429756, -0.1756921261548996, -0.2777290940284729, 0.14613023400306702, -0.009403759613633156, -0.026465119794011116, -0.056479718536138535, -0.19023184478282928, 0.16575254499912262, 0.3668988347053528, 0.058313556015491486, -0.09089194983243942, 0.1691877245903015, -0.4560792148113251, 0.123258575797081, 0.19535349309444427, 0.20998762547969818, 0.2229936271905899, 0.05543103814125061, -0.0397811196744442, -0.021204940974712372, 0.03197305276989937, 0.10316592454910278, 0.04256118834018707, -0.459092378616333, 0.07362982630729675, -0.22259846329689026, 0.17344385385513306, 0.2976993918418884, -0.18241453170776367, 0.04586372524499893, 0.2626209855079651, 0.16768448054790497, -0.2930980920791626, 0.0001988714502658695, 0.35821908712387085, 0.12039712816476822, -0.14327989518642426, 0.34542155265808105, 0.0932517796754837, -0.14985890686511993, 0.09902588278055191, -0.07402487099170685, 0.28752487897872925, 0.0109215397387743, -0.14121504127979279, 0.08664217591285706, -0.15673384070396423, -0.03862970694899559, 0.1619807481765747, 0.14474792778491974, 0.07180410623550415, 0.05414668098092079, -0.49022597074508667, 0.009950500912964344, -0.1230558380484581, 0.13770607113838196, 0.11877711117267609, -0.2979776859283447, -0.05544112250208855, 0.35048747062683105, 0.286520391702652, -0.11757659167051315, -0.09610500931739807, 0.48487958312034607, -0.09402807056903839, -0.1632601022720337, -0.16438506543636322, 0.43576639890670776, -0.27998730540275574, -0.07678031921386719, -0.3393841087818146, 0.00478699803352356, -0.1908964365720749, 0.0706704705953598, -0.29647931456565857, -0.2076825350522995, 0.2984219789505005, 0.24865597486495972, -0.07685151696205139, -0.6140305995941162, 0.027435213327407837, 0.33496376872062683, -0.2047400176525116, -0.06256363540887833, 0.3584541082382202, -0.25868916511535645, -0.10243929922580719, -0.1698906421661377, 0.48603883385658264, 0.40065473318099976, 0.4735707938671112, -0.0663425624370575, -0.14095917344093323, -0.09946887195110321, 0.03073292039334774, -0.23246672749519348, 0.01678283140063286, 0.4060726761817932, 0.6930803656578064, 0.12628686428070068, 0.11860541999340057, -0.10563874244689941, 0.353859007358551, -0.08570577204227448, -0.15829917788505554, -0.16269917786121368, 0.29959243535995483, 0.045516371726989746, -0.22406476736068726, -0.16286160051822662, 0.1120547354221344, -0.3453020751476288, 0.3758240044116974, 0.20451661944389343, 0.11562618613243103, 0.1848960518836975, -0.10636386275291443, 0.04610895365476608, -0.12437364459037781, 0.5372793674468994, 0.3730825185775757, 0.5633401274681091, -0.39668598771095276, -0.3218536674976349, -0.4960482120513916, 0.13620519638061523, -0.3848460614681244, -0.10974884778261185, 0.1707843542098999, 0.14534038305282593, -0.011282101273536682, 0.3810257315635681, -0.16824986040592194, 0.18173302710056305, -0.065725177526474, 0.012130513787269592, -0.4602121114730835, 0.04710427671670914, 0.22589845955371857, -0.04633388668298721, -0.01373921986669302, -0.18184411525726318, 0.05138795077800751, -0.3250574767589569, 0.05912182480096817, -0.3371163010597229, -0.1214635819196701, 0.1017950177192688, 0.2731243371963501, 0.18511143326759338, 0.1538301259279251, 0.3686852753162384, 0.10659360140562057, -0.024929694831371307, -0.005421597510576248, -0.39208391308784485, -0.2548119127750397, 0.1399204283952713, 0.020941883325576782, 0.29421770572662354, -0.24892576038837433, 0.373402863740921, -0.27003318071365356, 0.2607824206352234, 0.024903379380702972, 0.05977051332592964, 0.05255851894617081, 0.05870398133993149, -0.14626246690750122, 0.06008052080869675, -0.09493665397167206, 0.12937700748443604, 0.17233097553253174, 0.09746494889259338, -0.47982215881347656, -0.14242249727249146, 0.488038033246994, -0.49417343735694885, -0.281808078289032, 0.04107991233468056, 0.06964384019374847, -0.17525765299797058, -0.2010936141014099, -0.43685784935951233, -0.2603852152824402, 0.3175225555896759, -0.12294534593820572, -0.29137128591537476, 0.3025760054588318, -0.11203128099441528, -0.02740800753235817, -0.07586999237537384, 0.17267048358917236, 0.12115265429019928, -0.4006262421607971, -0.3341224491596222, -0.4647313952445984 ]
https://github.com/huggingface/datasets/issues/157
nlp.load_dataset() gives "TypeError: list_() takes exactly one argument (2 given)"
Can you post a link here of your colab? I'll make a copy of it and see what's wrong
I'm trying to load datasets from nlp but there seems to have error saying "TypeError: list_() takes exactly one argument (2 given)" gist can be found here https://gist.github.com/saahiluppal/c4b878f330b10b9ab9762bc0776c0a6a
19
nlp.load_dataset() gives "TypeError: list_() takes exactly one argument (2 given)" I'm trying to load datasets from nlp but there seems to have error saying "TypeError: list_() takes exactly one argument (2 given)" gist can be found here https://gist.github.com/saahiluppal/c4b878f330b10b9ab9762bc0776c0a6a Can you post a link here of your colab? I'll make a copy of it and see what's wrong
[ -0.09441819787025452, 0.057748451828956604, -0.05637667328119278, 0.42758500576019287, 0.1639648675918579, 0.07427937537431717, 0.2727662920951843, 0.11701206862926483, 0.1709996461868286, -0.07999591529369354, 0.01869216561317444, 0.6328832507133484, -0.24221090972423553, 0.01633317954838276, 0.21079963445663452, -0.27663180232048035, -0.0907839760184288, 0.35113659501075745, -0.00927022099494934, -0.09680420160293579, -0.1953078657388687, 0.33340561389923096, -0.3628484606742859, 0.048416852951049805, -0.03460831567645073, -0.2740381360054016, -0.15572893619537354, 0.1878252923488617, -0.12429264932870865, -0.3305409550666809, 0.40990567207336426, -0.03542989864945412, 0.3256020247936249, 0.107840895652771, -0.00011172825907124206, -0.10899800062179565, 0.34793150424957275, -0.15186595916748047, -0.4430921673774719, -0.39085137844085693, -0.4066259562969208, -0.33113592863082886, 0.5561745762825012, -0.2386394739151001, -0.014326579868793488, -0.009331599809229374, 0.2354068160057068, 0.20072567462921143, 0.3323269486427307, 0.28586775064468384, 0.25965502858161926, 0.04428602755069733, -0.23554643988609314, -0.2654971778392792, 0.05066225677728653, 0.08794695138931274, 0.09881357103586197, 0.1630866527557373, 0.09259290248155594, -0.09737907350063324, 0.1707882583141327, 0.04817153140902519, -0.24199603497982025, 0.17525841295719147, 0.1400122493505478, -0.134723961353302, -0.11813484877347946, -0.16241469979286194, -0.08062681555747986, 0.14787891507148743, 0.5082917809486389, 0.10307374596595764, -0.09878992289304733, -0.10004810988903046, 0.18969327211380005, -0.28654688596725464, 0.1539594531059265, 0.17544089257717133, -0.2739141583442688, -0.10339872539043427, -0.16600936651229858, -0.2197418510913849, -0.11128272861242294, 0.44569259881973267, 0.2409757375717163, 0.35629841685295105, -0.22573255002498627, 0.2986105680465698, 0.3900255262851715, -0.05108470469713211, 0.2951829433441162, -0.15747246146202087, -0.07349997758865356, 0.1316530406475067, -0.4317267835140228, 0.0749652236700058, -0.05002579838037491, 0.4330423176288605, -0.01191890612244606, -0.013209488242864609, 0.19024784862995148, -0.06167541444301605, -0.23912620544433594, 0.17780359089374542, 0.45873507857322693, 0.0673508495092392, 0.3295469284057617, 0.20169782638549805, -0.20149876177310944, -0.14534452557563782, -0.01365797407925129, 0.048208579421043396, -0.27679094672203064, -0.009408708661794662, -0.09849728643894196, -0.07405629009008408, 0.19643400609493256, -0.26692819595336914, -0.20385165512561798, -0.31850215792655945, -0.2895674407482147, -0.14575819671154022, 0.24421633780002594, 0.49162644147872925, 0.020174961537122726, 0.30076414346694946, 0.15699978172779083, 0.057811930775642395, -0.0931735411286354, -0.3615263104438782, -0.2038239687681198, 0.16193878650665283, -0.14688032865524292, -0.0615602508187294, 0.2930540442466736, 0.034011922776699066, 0.44835859537124634, 0.02030756324529648, -0.13387341797351837, 0.059975944459438324, 0.06086248904466629, -0.20192179083824158, -0.22876697778701782, 0.06428646296262741, 0.3478237986564636, 0.09829682111740112, 0.3062974214553833, -0.29950785636901855, -0.12015513330698013, 0.17956683039665222, -0.34668973088264465, -0.07242099940776825, -0.08087722212076187, 0.1977057158946991, 0.07962369918823242, -0.14146286249160767, -0.48577961325645447, 0.2512129545211792, 0.21319043636322021, -0.3777722716331482, -0.3341543972492218, -0.2774748206138611, -0.25863566994667053, -0.14772430062294006, -0.1644667536020279, 0.19259388744831085, -0.16339389979839325, 0.011020302772521973, -0.1721022129058838, 0.16912950575351715, 0.20132237672805786, 0.45158928632736206, -0.6045717597007751, 0.32322725653648376, -0.18373063206672668, 0.321672260761261, 0.6954840421676636, 0.04252914711833, -0.11769126355648041, 0.22427965700626373, 0.13777214288711548, -0.19889412820339203, -0.07009334117174149, 0.32508713006973267, 0.005555059295147657, -0.0742187574505806, 0.1948302686214447, 0.2920793294906616, -0.0703951045870781, 0.08886243402957916, -0.12921088933944702, -0.085826575756073, 0.39854735136032104, 0.10366557538509369, -0.15790916979312897, 0.2847556173801422, 0.022573478519916534, 0.38760873675346375, 0.3182564079761505, -0.21339070796966553, -0.2046949565410614, 0.3692450523376465, -0.0771971046924591, -0.21138931810855865, -0.16490794718265533, 0.07963200658559799, -0.5164648294448853, -0.14813342690467834, 0.055201075971126556, 0.056861892342567444, 0.22739052772521973, 0.035845935344696045, -0.27739110589027405, 0.052813977003097534, 0.06343739479780197, 0.11293157935142517, 0.06087444722652435, 0.3140872120857239, -0.04758281260728836, -0.14773406088352203, -0.15835066139698029, 0.363994836807251, -0.13634775578975677, -0.17461127042770386, -0.3826623857021332, 0.22178807854652405, -0.09299732744693756, -0.19719666242599487, 0.3563097417354584, -0.12094607204198837, 0.3216605484485626, 0.005667886696755886, -0.07680579274892807, 0.12554162740707397, -0.051894184201955795, -0.07454882562160492, 0.010873951017856598, -0.2348693162202835, 0.07230262458324432, -0.21509422361850739, -0.012105895206332207, 0.1338880956172943, 0.3557286858558655, -0.19197940826416016, -0.1114848181605339, 0.2194109708070755, -0.06308436393737793, 0.2133893370628357, -0.03192685544490814, 0.11528991907835007, 0.32051631808280945, 0.08246275782585144, 0.02676284871995449, 0.17007607221603394, 0.3108047544956207, 0.33875811100006104, 0.15891176462173462, 0.09632138162851334, -0.4620632827281952, -0.028830431401729584, 0.3394736647605896, 0.250668466091156, 0.10971132665872574, 0.06745784729719162, 0.07380570471286774, -0.21830078959465027, 0.33477547764778137, -0.04560806602239609, 0.5907067060470581, 0.25706401467323303, -0.14289647340774536, -0.09636949747800827, -0.16013677418231964, -0.2419663667678833, 0.1867603212594986, -0.14173725247383118, 0.37641724944114685, -0.2677265405654907, 0.03747107833623886, -0.09676556289196014, -0.3154967129230499, -0.24670687317848206, 0.20011280477046967, 0.4145118296146393, -0.30212080478668213, 0.184578076004982, -0.31845131516456604, -0.6122182011604309, -0.024676602333784103, -0.2226862758398056, -0.21440808475017548, -0.2517211437225342, -0.2436463087797165, 0.3359794616699219, 0.1686677634716034, 0.1485217660665512, 0.0210639089345932, 0.3003314733505249, 0.14703932404518127, 0.22218649089336395, -0.09863489866256714, -0.14731556177139282, -0.3738417327404022, 0.0583634190261364, 0.24814771115779877, 0.2452019602060318, 0.13748349249362946, -0.13062524795532227, -0.16974392533302307, 0.006669186986982822, 0.003838963806629181, 0.1205848678946495, -0.032491475343704224, 0.21622969210147858, 0.22022707760334015, 0.22866523265838623, -0.38388919830322266, -0.2931213080883026, 0.18114648759365082, 0.050112150609493256, -0.06350947916507721, -0.012366004288196564, -0.06630512326955795, -0.14670270681381226, -0.22168521583080292, -0.2276800274848938, -0.24920429289340973, -0.27212393283843994, 0.10245539247989655, 0.3819592595100403, 0.25146523118019104, 0.43633022904396057, 0.033011022955179214, 0.23221521079540253, 0.018253477290272713, 0.055787667632102966, -0.3442590832710266, -0.13780584931373596, 0.061184123158454895, -0.06794393062591553, -0.36995863914489746, 0.009039472788572311, 0.015555810183286667, 0.24299997091293335, -0.030931174755096436, -0.3123934268951416, -0.42518147826194763, 0.005747491493821144, -0.16298620402812958, -0.19131861627101898, 0.11020558327436447, 0.1411830633878708, -0.16275137662887573, 0.04972980171442032, -0.012239575386047363, -0.41973158717155457, 0.3257679343223572, 0.06829468905925751, 0.35348057746887207, 0.02132730558514595, 0.22720739245414734, -0.05408405140042305, 0.24154715240001678, 0.20910799503326416, -0.18294700980186462, 0.3785313069820404, -0.10251904278993607, 0.16861571371555328, 0.0769265741109848, -0.41807931661605835, -0.011857962235808372, 0.09422100335359573, -0.16022737324237823, 0.397424578666687, -0.17018792033195496, -0.4542649984359741, -0.10277244448661804, 0.03931974247097969, -0.21900370717048645, -0.10780428349971771, 0.1393345296382904, -0.10235199332237244, -0.07909808307886124, 0.08506417274475098, -0.052752669900655746, -0.39855995774269104, -0.25375741720199585, -0.34771546721458435, 0.052925486117601395, 0.02238243818283081, -0.02959793247282505, -0.3345448076725006, -0.15955738723278046, -0.3149389624595642, 0.23955580592155457, -0.01766234077513218, 0.5357070565223694, -0.13174760341644287, 0.20844793319702148, 0.15994063019752502, 0.1605149507522583, 0.5391772389411926, -0.004233915358781815, -0.07704748213291168, 0.2137630581855774, 0.09348782896995544, -0.31166771054267883, 0.10022929310798645, -0.2798258364200592, 0.6084544062614441, 0.17886072397232056, 0.1645066738128662, -0.1977018415927887, -0.162148579955101, 0.0838128998875618, 0.08499570935964584, -0.289794385433197, -0.14975424110889435, -0.16735605895519257, -0.38172176480293274, -0.22533784806728363, -0.19361495971679688, -0.1779947578907013, 0.24806664884090424, 0.21149246394634247, 0.1661565899848938, -0.19541893899440765, -0.14263492822647095, 0.26251500844955444, 0.12698723375797272, 0.19987273216247559, 0.3181178569793701, -0.2371673732995987, -0.3918946385383606, 0.19852563738822937, -0.24657544493675232, 0.42747607827186584, -0.12858283519744873, -0.05550454556941986, 0.06474492698907852, -0.12455350160598755, 0.40068355202674866, 0.15865404903888702, -0.1465180665254593, 0.07383870333433151, -0.16701564192771912, -0.0785275548696518, 0.20518818497657776, 0.18924355506896973, 0.20282280445098877, -0.0654626116156578, -0.301053524017334, -0.47925570607185364, 0.338866263628006, 0.06007217988371849, -0.1279195100069046, 0.2638634145259857, -0.4850989580154419, -0.31844407320022583, 0.27543729543685913, -0.052200816571712494, 0.7567283511161804, -0.2063622921705246, 0.2419603019952774, 0.45391666889190674, 0.37471431493759155, 0.7180548310279846, 0.35554659366607666, 0.17148438096046448, -0.3743317723274231, -0.1347276121377945, 0.04681782424449921, -0.16485634446144104, -0.05241486430168152, 0.41830170154571533, -0.4593029320240021, 0.29716119170188904, 0.0908391922712326, -0.08139415085315704, 0.29112058877944946, 0.3949204385280609, 0.157298743724823, -0.22693876922130585, -0.9205309152603149, 0.184787780046463, -0.5212963223457336, -0.014449123293161392, -0.23805904388427734, -0.2703248858451843, 0.12673960626125336, -0.2154948115348816, -0.1769774705171585, 0.38520321249961853, -0.16632592678070068, 0.22850975394248962, 0.11509683728218079, -0.18875393271446228, 0.13661831617355347, 0.4601593613624573, 0.0072508305311203, 0.055387288331985474, -0.12315638363361359, 0.0063701048493385315, -0.2630666196346283, -0.0035396788734942675, -0.3486829996109009, 0.03705862909555435, 0.26200807094573975, -0.046784475445747375, 0.006012238562107086, 0.09927603602409363, -0.007583835627883673, -0.46042442321777344, 0.09093229472637177, 0.2387203425168991, -0.10112375020980835, -0.16378134489059448, -0.64228355884552, 0.2244451493024826, 0.016337044537067413, 0.039237868040800095, 0.09091192483901978, 0.2503000497817993, -0.28588828444480896, 0.06644637882709503, 0.3971077799797058, -0.1849340796470642, 0.18323267996311188, 0.28349417448043823, 0.1624586582183838, -0.012360811233520508, 0.6115806102752686, 0.29922887682914734, 0.10122723877429962, -0.23877203464508057, -0.070997454226017, -0.2970312833786011, -0.1364714503288269, 0.25836601853370667, 0.013315452262759209, 0.21690700948238373, 0.05362887308001518, 0.4977572560310364, 0.08899062871932983, 0.3045550584793091, 0.18769624829292297, -0.4823525846004486, -0.12779246270656586, 0.0479108989238739, -0.17151351273059845, 0.06951259821653366, 0.22193965315818787, 0.055822111666202545, 0.19815966486930847, 0.03609191253781319, -0.2870243191719055, 0.023715896531939507, -0.4934329390525818, 0.19513657689094543, 0.11336634308099747, -0.12151481956243515, -0.03953803330659866, 0.09312354028224945, 0.09784135967493057, -0.01006435975432396, -0.1005525290966034, -0.21640440821647644, -0.003848208114504814, 0.11842382699251175, 0.14974814653396606, -0.0376645103096962, -0.2299346625804901, -0.3803802728652954, 0.02464672364294529, -0.03392519801855087, -0.2382892668247223, -0.08282791078090668, -0.09457078576087952, 0.21620376408100128, 0.25335198640823364, 0.07862350344657898, -0.11600233614444733, 0.21927763521671295, -0.42208293080329895, 0.03852412477135658, 0.06254974007606506, 0.2341906726360321, 0.34117287397384644, -0.014438919723033905, -0.19922731816768646, 0.01778402552008629, -0.05015389621257782, 0.05799804627895355, 0.11865652352571487, -0.36239176988601685, 0.21707037091255188, -0.027425222098827362, 0.07459192723035812, 0.24738560616970062, -0.17211955785751343, 0.23769564926624298, 0.05216067656874657, 0.14255252480506897, -0.21173587441444397, 0.10768330097198486, 0.4506112337112427, 0.13348674774169922, -0.15587608516216278, 0.33690160512924194, -0.03232294321060181, -0.11875434219837189, 0.0966096743941307, -0.1801871359348297, 0.2794785499572754, -0.07349248975515366, 0.04044586792588234, 0.020692985504865646, -0.22100885212421417, -0.05138411000370979, 0.035804688930511475, 0.10416969656944275, 0.11500363051891327, 0.22577200829982758, -0.392617404460907, 0.19442404806613922, 0.07317416369915009, 0.04632459208369255, 0.2405051290988922, -0.4207022488117218, 0.1766013354063034, 0.4530298709869385, 0.16129998862743378, 0.005953595042228699, -0.11814853549003601, 0.2535959780216217, -0.3474006652832031, -0.13293421268463135, -0.18274180591106415, 0.4126591086387634, -0.2337232530117035, -0.0821046233177185, -0.42656973004341125, 0.029030904173851013, -0.20174789428710938, 0.010017897933721542, -0.22265112400054932, -0.10944841802120209, 0.259529709815979, 0.11300447583198547, 0.060277942568063736, -0.5401209592819214, 0.0179283507168293, 0.38821133971214294, -0.22095593810081482, -0.17500174045562744, 0.38504570722579956, -0.2396032065153122, -0.01749005913734436, 0.07395082712173462, 0.2733232080936432, 0.36153480410575867, 0.5325785875320435, 0.1489320546388626, -0.06355120241641998, 0.03094770386815071, -0.12056927382946014, -0.23356927931308746, 0.03512592241168022, 0.29252129793167114, 0.5334113240242004, 0.21736647188663483, 0.15868167579174042, -0.04995197057723999, 0.36412566900253296, 0.038473062217235565, -0.19872914254665375, -0.25046661496162415, 0.4240933656692505, -0.034157752990722656, -0.061915043741464615, -0.26734399795532227, 0.1769924759864807, -0.2738177180290222, 0.0713171511888504, 0.29204216599464417, 0.08047850430011749, 0.32842448353767395, 0.002823652233928442, 0.0526658371090889, -0.09245581924915314, 0.5079563856124878, 0.16949892044067383, 0.43411344289779663, -0.33723217248916626, -0.22908690571784973, -0.5142738819122314, 0.00019709765911102295, -0.08199860155582428, -0.16188088059425354, 0.06425848603248596, 0.19830043613910675, 0.12622444331645966, 0.24765098094940186, -0.3073265552520752, 0.2391534447669983, 0.024387210607528687, -0.11030617356300354, -0.32722094655036926, -0.14125895500183105, 0.10781344771385193, 0.10555184632539749, -0.04547882452607155, -0.19487562775611877, -0.009276118129491806, -0.060152046382427216, 0.04947797209024429, -0.34249669313430786, -0.10016902536153793, -0.04188704118132591, 0.2790619730949402, -0.117899090051651, 0.2097989171743393, 0.45566636323928833, 0.020673219114542007, 0.06708566099405289, -0.00019647926092147827, -0.41179731488227844, -0.17852739989757538, 0.15169578790664673, -0.006716553121805191, 0.3829132914543152, -0.30752649903297424, 0.5709318518638611, -0.2717019021511078, 0.10207265615463257, -0.10348863899707794, 0.0722227543592453, -0.16849103569984436, 0.18814407289028168, -0.285358726978302, 0.15804807841777802, -0.020458899438381195, 0.04866790771484375, 0.12861928343772888, 0.1197674423456192, -0.25229156017303467, -0.047676295042037964, 0.5260146856307983, -0.44218677282333374, -0.3493874669075012, 0.055437732487916946, 0.08849696069955826, -0.20510277152061462, -0.20348607003688812, -0.47452834248542786, -0.23824957013130188, 0.41725125908851624, -0.22102734446525574, -0.18768011033535004, 0.3302193880081177, -0.06709654629230499, -0.002384316176176071, -0.1136220395565033, 0.129824697971344, 0.12029208242893219, -0.389676570892334, -0.130884051322937, -0.4098167419433594 ]
https://github.com/huggingface/datasets/issues/157
nlp.load_dataset() gives "TypeError: list_() takes exactly one argument (2 given)"
This should be fixed in the current version of the notebook. You can try it again
I'm trying to load datasets from nlp but there seems to have error saying "TypeError: list_() takes exactly one argument (2 given)" gist can be found here https://gist.github.com/saahiluppal/c4b878f330b10b9ab9762bc0776c0a6a
16
nlp.load_dataset() gives "TypeError: list_() takes exactly one argument (2 given)" I'm trying to load datasets from nlp but there seems to have error saying "TypeError: list_() takes exactly one argument (2 given)" gist can be found here https://gist.github.com/saahiluppal/c4b878f330b10b9ab9762bc0776c0a6a This should be fixed in the current version of the notebook. You can try it again
[ -0.14710408449172974, 0.06160227954387665, -0.05828429013490677, 0.4253872036933899, 0.18949921429157257, 0.0785847082734108, 0.21612389385700226, 0.21349354088306427, 0.15198461711406708, -0.12751492857933044, -0.00018255063332617283, 0.651086688041687, -0.14513631165027618, -0.0014384426176548004, 0.3353012800216675, -0.33816519379615784, -0.027048327028751373, 0.2980506718158722, -0.14237111806869507, -0.13995707035064697, -0.2513788044452667, 0.4030190706253052, -0.4038660526275635, 0.13278242945671082, 0.02171112783253193, -0.21064497530460358, -0.11934933066368103, 0.16006028652191162, -0.057084448635578156, -0.4420139789581299, 0.27493107318878174, -0.11626937985420227, 0.3361518085002899, 0.059603795409202576, -0.00010931928409263492, -0.10741592943668365, 0.4051620364189148, -0.14756566286087036, -0.3244518041610718, -0.32634955644607544, -0.21863913536071777, -0.3992670178413391, 0.48586034774780273, -0.23693394660949707, -0.08372168242931366, -0.23421595990657806, 0.20039379596710205, 0.2055564820766449, 0.23557403683662415, 0.3608187735080719, 0.24826014041900635, 0.28837504982948303, -0.005067132413387299, -0.25186285376548767, 0.11334121227264404, -0.05982901155948639, 0.05562949925661087, 0.05640667676925659, 0.12273123860359192, -0.28103938698768616, 0.12016064673662186, 0.11238917708396912, -0.1244826689362526, 0.1404094398021698, 0.3275580108165741, -0.11531538516283035, -0.16065824031829834, -0.034396685659885406, -0.20531335473060608, 0.13994736969470978, 0.6114568710327148, 0.00743662565946579, -0.0961502268910408, -0.0970611423254013, 0.18831881880760193, -0.19178247451782227, 0.19135162234306335, 0.13493096828460693, -0.2412605732679367, -0.04476043954491615, -0.06123162806034088, -0.28590548038482666, -0.15008901059627533, 0.5021401643753052, 0.23362436890602112, 0.2242005318403244, -0.15899096429347992, 0.24219492077827454, 0.389920175075531, -0.008306335657835007, 0.25200939178466797, -0.09615033119916916, 0.0210112277418375, 0.15171261131763458, -0.472514271736145, 0.051261045038700104, -0.05630920082330704, 0.289700448513031, -0.061537887901067734, 0.027643665671348572, 0.3553226590156555, -0.07590711116790771, 0.014309297315776348, 0.1539304107427597, 0.41426581144332886, 0.09914460778236389, 0.3659391701221466, 0.14271768927574158, -0.11542710661888123, -0.09099458158016205, 0.1692386120557785, -0.001191653311252594, -0.1991012543439865, -0.10658714175224304, 0.00037951767444610596, -0.1910158395767212, 0.2669311761856079, -0.13254299759864807, -0.20630548894405365, -0.18030454218387604, -0.23831269145011902, -0.2072887271642685, 0.16927629709243774, 0.386275053024292, -0.01725868694484234, 0.2506604492664337, 0.3198309540748596, 0.11099354922771454, -0.19584333896636963, -0.460404634475708, -0.20680780708789825, 0.13900916278362274, -0.14988091588020325, -0.1078219786286354, 0.42001670598983765, 0.16490888595581055, 0.4011070728302002, 0.08209136128425598, -0.20942117273807526, 0.0880855917930603, 0.2217312902212143, -0.08824647963047028, -0.2672818899154663, 0.06733342260122299, 0.2882322669029236, 0.03817892074584961, 0.2759983539581299, -0.14669203758239746, -0.06785662472248077, 0.2202020287513733, -0.1441066861152649, 0.0143563412129879, -0.032148830592632294, 0.1994994431734085, 0.22357575595378876, -0.18561191856861115, -0.42283740639686584, 0.2616861164569855, 0.18459635972976685, -0.2667084336280823, -0.3265154957771301, -0.2504827380180359, -0.14556843042373657, -0.09135593473911285, -0.137398362159729, 0.038847699761390686, -0.13471746444702148, -0.05702812224626541, -0.1768089383840561, -0.037732090801000595, -0.0007948428392410278, 0.4105513095855713, -0.5428643226623535, 0.3664250373840332, -0.12214834988117218, 0.39234137535095215, 0.6489171981811523, -0.06625159084796906, -0.2524017095565796, 0.2570919990539551, 0.13916847109794617, -0.20420801639556885, -0.006945870816707611, 0.40164095163345337, 0.011590365320444107, 0.05610072240233421, 0.1736215054988861, 0.42348986864089966, 0.01552608236670494, -0.06589433550834656, -0.21059928834438324, 0.02614312805235386, 0.39039236307144165, 0.2192244678735733, -0.04155435040593147, 0.19640275835990906, -0.009871430695056915, 0.4987840950489044, 0.3632691204547882, -0.21339979767799377, -0.19483715295791626, 0.4113168716430664, -0.11843118071556091, -0.06566521525382996, -0.03738641366362572, 0.03694138675928116, -0.5206589698791504, -0.11990947276353836, -0.1962200403213501, -0.0006294921040534973, 0.29558634757995605, 0.023193273693323135, -0.18618682026863098, -0.02305077202618122, 0.04937604069709778, 0.08645927906036377, 0.08043460547924042, 0.24978938698768616, -0.0671432763338089, -0.09596417844295502, -0.1293257623910904, 0.33999913930892944, -0.22968314588069916, -0.08324263244867325, -0.49380046129226685, 0.15203417837619781, -0.06350737810134888, -0.1271204799413681, 0.38293206691741943, -0.0805836096405983, 0.2247428596019745, -0.018405787646770477, -0.0018846038728952408, 0.23585927486419678, 0.007894578389823437, -0.18296270072460175, -0.17546075582504272, -0.21899937093257904, 0.058068372309207916, -0.25215086340904236, 0.003222724422812462, 0.3137161135673523, 0.35887131094932556, -0.14637339115142822, -0.23887896537780762, 0.26327627897262573, -0.058813463896512985, 0.07793155312538147, 0.03687705844640732, 0.14553330838680267, 0.3402605950832367, -0.000008821487426757812, -0.045225031673908234, 0.12100034952163696, 0.3630273640155792, 0.222245991230011, 0.2289000004529953, -0.01097622700035572, -0.5415524244308472, -0.1663920283317566, 0.23613548278808594, 0.11832600831985474, 0.23507818579673767, 0.06952952593564987, 0.050553664565086365, -0.13472624123096466, 0.31395646929740906, -0.07890868932008743, 0.5646489262580872, 0.2583666741847992, -0.17202362418174744, -0.01067349873483181, -0.26688429713249207, -0.21774524450302124, 0.22469359636306763, -0.1679311841726303, 0.2259044647216797, -0.1199599876999855, -0.04553661122918129, -0.22764724493026733, -0.3853072226047516, -0.01956813596189022, 0.22851213812828064, 0.3585436940193176, -0.34882014989852905, 0.07075843214988708, -0.2900009751319885, -0.5700069069862366, -0.04726273566484451, -0.08523494750261307, -0.24044454097747803, -0.28737640380859375, -0.1835913509130478, 0.37211284041404724, 0.20755724608898163, 0.18199796974658966, 0.12551774084568024, 0.33390918374061584, 0.07613454014062881, 0.34496891498565674, -0.032909467816352844, -0.03402804583311081, -0.3831048309803009, 0.062843456864357, 0.2666672170162201, 0.2797677516937256, 0.16181351244449615, -0.1823485791683197, -0.15998788177967072, -0.16689667105674744, -0.07935868203639984, 0.04582586511969566, -0.019588351249694824, 0.2268974483013153, 0.24028775095939636, 0.10816282033920288, -0.20622219145298004, -0.17852731049060822, 0.21379627287387848, -0.002207040786743164, -0.12569311261177063, 0.17546574771404266, 0.024077586829662323, -0.24191759526729584, -0.13360454142093658, -0.37210115790367126, -0.2026904672384262, -0.2859758734703064, 0.2898213863372803, 0.2603529989719391, 0.1501602679491043, 0.22373224794864655, -0.04431384801864624, 0.27826428413391113, -0.059995438903570175, 0.05978485941886902, -0.2615356147289276, 0.16526585817337036, 0.1317523717880249, -0.12479820847511292, -0.4747583568096161, 0.028409045189619064, 0.13325251638889313, 0.25973960757255554, -0.03919625282287598, -0.3962198495864868, -0.279799222946167, -0.06287244707345963, -0.041576460003852844, -0.20378324389457703, 0.18572740256786346, 0.22496116161346436, -0.22391915321350098, -0.01087898202240467, -0.03940185159444809, -0.24071455001831055, 0.30659547448158264, -0.059739552438259125, 0.33383774757385254, 0.03621406853199005, 0.29094943404197693, 0.02332180365920067, 0.1673302948474884, 0.2028823047876358, -0.038228120654821396, 0.36018165946006775, -0.022189727053046227, 0.22962462902069092, 0.02382272109389305, -0.3766416311264038, -0.0938364639878273, 0.04258608818054199, 0.020281095057725906, 0.34781861305236816, -0.18948706984519958, -0.523944079875946, -0.10189150273799896, -0.07947281002998352, -0.11852061003446579, -0.08487135916948318, 0.20399893820285797, -0.08537425100803375, 0.11288612335920334, 0.1295377016067505, 0.05755924433469772, -0.2600976824760437, -0.23310920596122742, -0.3029341399669647, 0.02257581800222397, 0.0735483169555664, -0.04273980110883713, -0.5263240337371826, -0.07612286508083344, -0.4482288956642151, 0.25644731521606445, -0.13050313293933868, 0.7186779975891113, -0.16136953234672546, 0.0535435751080513, 0.16322395205497742, 0.13822348415851593, 0.4650239944458008, -0.04876534640789032, -0.12520870566368103, 0.2955348789691925, 0.0455334335565567, -0.49882054328918457, 0.034065235406160355, -0.37323829531669617, 0.4948999285697937, 0.23698851466178894, 0.3017042875289917, -0.23805299401283264, -0.20317211747169495, 0.12091250717639923, 0.035113416612148285, -0.31113481521606445, -0.16282230615615845, -0.16953834891319275, -0.3093949854373932, -0.21911932528018951, -0.12606698274612427, -0.06638113409280777, 0.25151821970939636, 0.2691265642642975, 0.21469886600971222, -0.2542358338832855, -0.15812936425209045, 0.12105431407690048, 0.04479704424738884, 0.28139832615852356, 0.1676735132932663, -0.14350806176662445, -0.3304818570613861, 0.22671763598918915, -0.15613563358783722, 0.31166404485702515, -0.22883474826812744, -0.2642150819301605, 0.0904804915189743, -0.32703447341918945, 0.4051326513290405, 0.20671027898788452, -0.15924566984176636, 0.061043113470077515, -0.01677022874355316, -0.07203449308872223, 0.05237138643860817, 0.022638291120529175, 0.3762820065021515, -0.0188070610165596, -0.17466264963150024, -0.4443614184856415, 0.29243507981300354, 0.012179337441921234, -0.11293546110391617, 0.29033568501472473, -0.5025864839553833, -0.35712918639183044, 0.31198447942733765, -0.003195427358150482, 0.6695191860198975, -0.19538523256778717, 0.35399648547172546, 0.3911890685558319, 0.15289081633090973, 0.5130823254585266, 0.27074921131134033, 0.2401060312986374, -0.41750723123550415, -0.2042742520570755, 0.06120884418487549, -0.13299210369586945, 0.04628054052591324, 0.40673571825027466, -0.4205969274044037, 0.2720881700515747, 0.08099307119846344, -0.17814680933952332, 0.2040998339653015, 0.49512869119644165, 0.07105240225791931, -0.17584633827209473, -0.8010068535804749, 0.1794169396162033, -0.42599010467529297, -0.08190006017684937, -0.1838509440422058, -0.2049732506275177, 0.11036381125450134, -0.24869821965694427, -0.1459381878376007, 0.2737150192260742, -0.14383651316165924, 0.32151490449905396, 0.1304231733083725, -0.16580823063850403, 0.11412979662418365, 0.5232135653495789, 0.08285795152187347, 0.08574626594781876, -0.16331592202186584, 0.013356316834688187, -0.29031190276145935, -0.047997329384088516, -0.24511854350566864, 0.084678515791893, 0.21676072478294373, -0.1243448406457901, -0.1024545207619667, 0.024251680821180344, -0.01259236503392458, -0.5824512839317322, -0.03291013091802597, 0.17886513471603394, 0.009179562330245972, -0.178531214594841, -0.5684042572975159, 0.1453227698802948, -0.06605421006679535, -0.07330067455768585, 0.14598572254180908, 0.22040978074073792, -0.2523960471153259, 0.06300003826618195, 0.2761663496494293, -0.14379166066646576, 0.1990671008825302, 0.48517510294914246, 0.1575767993927002, -0.127097487449646, 0.5813418626785278, 0.42673248052597046, 0.04702335596084595, -0.29957595467567444, 0.08047886937856674, -0.002392352791503072, -0.21172556281089783, 0.259431928396225, 0.04851960763335228, 0.2076457291841507, -0.06032160669565201, 0.5625934600830078, 0.14217188954353333, 0.18157996237277985, 0.1138184517621994, -0.40611448884010315, -0.08340707421302795, 0.16618099808692932, 0.008385542780160904, 0.04183996468782425, 0.2487574815750122, -0.12578092515468597, 0.24081113934516907, -0.0025827139616012573, -0.320110559463501, 0.05758899450302124, -0.3998419940471649, 0.13901594281196594, 0.19025662541389465, -0.2089870274066925, -0.09387901425361633, 0.11926354467868805, 0.1347806453704834, -0.09244000911712646, -0.09868183732032776, -0.22811341285705566, -0.027593819424510002, 0.09950964152812958, 0.06217412278056145, 0.03085523471236229, -0.19569195806980133, -0.4680973291397095, -0.06874391436576843, -0.043104615062475204, -0.29064807295799255, -0.017428914085030556, -0.13626237213611603, 0.3661513328552246, 0.23623685538768768, 0.013125739991664886, -0.06760665029287338, 0.13988295197486877, -0.4628414809703827, -0.07393313944339752, -0.056749895215034485, 0.22880014777183533, 0.3603365421295166, 0.038883037865161896, -0.3254886269569397, 0.01968807354569435, -0.09692364931106567, 0.07372932881116867, 0.16057005524635315, -0.37961524724960327, 0.17344124615192413, 0.05669216811656952, 0.19472511112689972, 0.26396897435188293, -0.23078835010528564, 0.13661088049411774, 0.0543898269534111, 0.1980295330286026, -0.30409908294677734, -0.13245245814323425, 0.3485496938228607, 0.12095212936401367, -0.19006676971912384, 0.24346303939819336, 0.09691543877124786, -0.2263968586921692, 0.01011105626821518, -0.11346965283155441, 0.135964497923851, -0.2534937858581543, -0.0058572301641106606, 0.16494473814964294, -0.09389593452215195, -0.09360547363758087, 0.1276298314332962, 0.20252268016338348, 0.11713584512472153, 0.2931629419326782, -0.2662751078605652, 0.061847470700740814, 0.037329237908124924, 0.19886429607868195, 0.053429823368787766, -0.37705203890800476, 0.03918641433119774, 0.341677725315094, 0.12646453082561493, 0.05504881218075752, -0.18703454732894897, 0.2549542486667633, -0.21819660067558289, -0.12670032680034637, -0.2538815438747406, 0.25006183981895447, -0.2900993227958679, -0.12997373938560486, -0.483601450920105, 0.017561785876750946, -0.16332224011421204, -0.02177610993385315, -0.23478245735168457, -0.03432205319404602, 0.2000269889831543, 0.09771071374416351, 0.00685332715511322, -0.5503775477409363, 0.06791913509368896, 0.3271183967590332, -0.22684434056282043, -0.2068844437599182, 0.2573149502277374, -0.22073142230510712, 0.10307726263999939, 0.06935383379459381, 0.38820379972457886, 0.2815447747707367, 0.5223616361618042, 0.13163694739341736, 0.015751823782920837, -0.008480442687869072, -0.06255444139242172, -0.24259302020072937, 0.1332501322031021, 0.33403319120407104, 0.5506142377853394, 0.20254041254520416, 0.13687293231487274, -0.044712599366903305, 0.39738643169403076, -0.014873508363962173, -0.19664131104946136, -0.23556065559387207, 0.4564151167869568, -0.041589267551898956, -0.1657177209854126, -0.24813655018806458, 0.2467004656791687, -0.3824778199195862, 0.08458448201417923, 0.337965190410614, 0.20999836921691895, 0.21832135319709778, -0.10049586743116379, 0.06888038665056229, -0.2012835592031479, 0.5259037613868713, 0.1325390636920929, 0.24308598041534424, -0.336308091878891, -0.31516897678375244, -0.5929722189903259, -0.03040020912885666, -0.18676523864269257, -0.08366768062114716, 0.25983837246894836, 0.27685412764549255, 0.12860071659088135, 0.23790299892425537, -0.10785798728466034, 0.03758467733860016, -0.15806402266025543, 0.006950322538614273, -0.34789717197418213, -0.0672309398651123, 0.3516536355018616, 0.14940287172794342, -0.05898775905370712, -0.14823223650455475, 0.001976698637008667, -0.05258188769221306, 0.06605098396539688, -0.3454151749610901, -0.06648571789264679, -0.012100419029593468, 0.3986492156982422, -0.05088530480861664, 0.1690221130847931, 0.34119662642478943, 0.0692431777715683, -0.07553937286138535, -0.05462530627846718, -0.34130439162254333, -0.27653205394744873, 0.20601263642311096, -0.02002565935254097, 0.3978815972805023, -0.33077749609947205, 0.36404553055763245, -0.24544614553451538, 0.2790856957435608, -0.11472206562757492, -0.08890309184789658, -0.22849686443805695, 0.2759384214878082, -0.22288429737091064, 0.12949113547801971, 0.021105702966451645, 0.1572132706642151, 0.11218385398387909, 0.1212487518787384, -0.297769159078598, -0.1270807832479477, 0.41869163513183594, -0.4630414545536041, -0.28861114382743835, 0.07552839815616608, 0.12342119961977005, -0.1864888072013855, -0.14446739852428436, -0.38111940026283264, -0.33440345525741577, 0.36547398567199707, -0.16669747233390808, -0.23071826994419098, 0.3508666455745697, -0.059554945677518845, 0.023849736899137497, -0.08951107412576675, 0.1427757441997528, 0.10657519847154617, -0.40776297450065613, -0.1727149933576584, -0.5183373689651489 ]
https://github.com/huggingface/datasets/issues/157
nlp.load_dataset() gives "TypeError: list_() takes exactly one argument (2 given)"
I am getting this error when running this command ``` val = nlp.load_dataset('squad', split="validation") ``` FileNotFoundError: [Errno 2] No such file or directory: '/root/.cache/huggingface/datasets/squad/plain_text/1.0.0/dataset_info.json' Can anybody help?
I'm trying to load datasets from nlp but there seems to have error saying "TypeError: list_() takes exactly one argument (2 given)" gist can be found here https://gist.github.com/saahiluppal/c4b878f330b10b9ab9762bc0776c0a6a
27
nlp.load_dataset() gives "TypeError: list_() takes exactly one argument (2 given)" I'm trying to load datasets from nlp but there seems to have error saying "TypeError: list_() takes exactly one argument (2 given)" gist can be found here https://gist.github.com/saahiluppal/c4b878f330b10b9ab9762bc0776c0a6a I am getting this error when running this command ``` val = nlp.load_dataset('squad', split="validation") ``` FileNotFoundError: [Errno 2] No such file or directory: '/root/.cache/huggingface/datasets/squad/plain_text/1.0.0/dataset_info.json' Can anybody help?
[ 0.09452058374881744, -0.07422426342964172, -0.03241482749581337, 0.4672500491142273, 0.2305200695991516, 0.2202828824520111, 0.13714350759983063, 0.23034939169883728, 0.15243999660015106, -0.13213826715946198, 0.0483737513422966, 0.46899595856666565, -0.13102445006370544, -0.1885153353214264, 0.25107240676879883, -0.27001020312309265, -0.17816612124443054, 0.30056464672088623, 0.22332318127155304, -0.08360429108142853, -0.08061002194881439, 0.3751228153705597, -0.25878649950027466, 0.17949587106704712, -0.06965745985507965, -0.1662873476743698, -0.13881997764110565, 0.3408645689487457, -0.06911617517471313, -0.524863600730896, 0.3120105266571045, -0.23915386199951172, 0.3402947187423706, 0.13584774732589722, -0.00011750467820093036, -0.05996232479810715, 0.34218519926071167, -0.2002912014722824, -0.4428664445877075, -0.4260239005088806, -0.2834003269672394, -0.40432143211364746, 0.4492725133895874, -0.2842899560928345, 0.0768052190542221, -0.11217325925827026, 0.33570098876953125, 0.14436936378479004, 0.5330748558044434, 0.27614280581474304, 0.17183728516101837, 0.0707814022898674, -0.16123294830322266, -0.1983359158039093, -0.09102082997560501, 0.18162018060684204, 0.11727795749902725, -0.007100183516740799, 0.052217282354831696, -0.02161204069852829, 0.25756528973579407, 0.10146775841712952, -0.20764781534671783, 0.14505913853645325, 0.22543349862098694, -0.04194169119000435, -0.1588706076145172, -0.21115660667419434, -0.03478594124317169, 0.2176092267036438, 0.4590613842010498, -0.05226060003042221, -0.3170994222164154, -0.17963361740112305, 0.21864823997020721, -0.16854241490364075, 0.19274628162384033, 0.30580809712409973, -0.2965560853481293, -0.0683341771364212, -0.16428732872009277, -0.34501922130584717, -0.1650010347366333, 0.39759427309036255, 0.2750879228115082, 0.15358097851276398, -0.20777130126953125, 0.22525417804718018, 0.34550419449806213, -0.0361197292804718, -0.1980065256357193, -0.15797334909439087, -0.07371342182159424, 0.2626844346523285, -0.39771538972854614, -0.06943651288747787, -0.09156972914934158, 0.10909566283226013, 0.11390281468629837, 0.026095924898982048, 0.2392786145210266, -0.15500810742378235, -0.2616509199142456, 0.2248239815235138, 0.4656403362751007, 0.12352412939071655, 0.5095345377922058, 0.11838033050298691, -0.10029257833957672, -0.17970190942287445, 0.23836800456047058, -0.03801891207695007, -0.3207314610481262, -0.07921993732452393, -0.01857265830039978, -0.1307920217514038, 0.21930746734142303, -0.30752983689308167, -0.22299718856811523, -0.10446695983409882, -0.2776850163936615, -0.17643894255161285, 0.16356752812862396, 0.5018172860145569, 0.0014944467693567276, 0.2334458827972412, 0.18804912269115448, 0.17494936287403107, 0.0047682952135801315, -0.34722277522087097, -0.16876564919948578, 0.209841787815094, -0.09789535403251648, 0.036990709602832794, 0.35797181725502014, -0.05624237284064293, 0.5068040490150452, 0.018447142094373703, -0.20954231917858124, 0.02619585394859314, 0.13182830810546875, -0.11809909343719482, -0.22317752242088318, 0.051967471837997437, 0.37335363030433655, 0.19318576157093048, 0.3314569294452667, -0.2338431179523468, -0.12468215823173523, 0.11745831370353699, -0.42831024527549744, -0.10352172702550888, -0.0473565012216568, 0.11758162826299667, -0.02900293469429016, -0.13086314499378204, -0.47996386885643005, 0.13061460852622986, 0.17810042202472687, -0.4104083180427551, -0.25518468022346497, -0.10011118650436401, -0.1320747435092926, -0.15931756794452667, -0.048770658671855927, 0.31551098823547363, -0.1800805628299713, -0.20334097743034363, -0.026075344532728195, 0.05352190136909485, -0.041103295981884, 0.5622395277023315, -0.5059041976928711, 0.2713319957256317, -0.22153300046920776, 0.3962130546569824, 0.8447892665863037, -0.2791198194026947, -0.07455339282751083, 0.33742061257362366, -0.05473731458187103, -0.15339714288711548, 0.027587413787841797, 0.30570992827415466, -0.019110780209302902, -0.002167916391044855, 0.18135274946689606, 0.3129216432571411, -0.04462430626153946, 0.07301430404186249, -0.09462541341781616, -0.1504562646150589, 0.39422982931137085, 0.12270425260066986, -0.21464689075946808, 0.19915203750133514, -0.04992332309484482, 0.4528454542160034, 0.26587235927581787, -0.15849222242832184, -0.12638071179389954, 0.530346691608429, -0.07291017472743988, -0.017379745841026306, -0.0843210443854332, 0.003420621156692505, -0.6630392074584961, -0.08563230186700821, -0.07969863712787628, -0.10297274589538574, 0.08600729703903198, 0.013286527246236801, -0.13511723279953003, -0.09781236946582794, -0.03788186237215996, 0.04866950958967209, -0.013472886756062508, 0.20816713571548462, 0.08502915501594543, -0.1480763703584671, -0.24503962695598602, 0.2566252648830414, -0.2056083232164383, 0.00036319473292678595, -0.5732815861701965, 0.21652863919734955, -0.06332656741142273, -0.14610101282596588, 0.2288919985294342, -0.03823838382959366, 0.26233556866645813, -0.01829764060676098, 0.010522807948291302, 0.17409314215183258, -0.09609747678041458, -0.0670991837978363, 0.14458945393562317, -0.14769239723682404, 0.06153874099254608, -0.21017226576805115, -0.010602841153740883, 0.22040601074695587, 0.30825909972190857, -0.17066265642642975, -0.3535010516643524, 0.20861393213272095, -0.0569123737514019, 0.3180490732192993, -0.030631188303232193, 0.0880768746137619, 0.29865390062332153, 0.02885695919394493, -0.07386676967144012, 0.10521815717220306, 0.32098156213760376, 0.21609090268611908, 0.18856839835643768, 0.07801555097103119, -0.34904712438583374, -0.19838947057724, 0.3542862832546234, 0.17672833800315857, 0.10978728532791138, 0.154764786362648, 0.02013910561800003, -0.16381901502609253, 0.11396896094083786, -0.126124307513237, 0.6103340983390808, 0.279095858335495, -0.21748843789100647, -0.13575351238250732, -0.12271549552679062, -0.1258220672607422, 0.11328664422035217, -0.15882979333400726, 0.2757972478866577, 0.004946958273649216, 0.04125276580452919, -0.054598432034254074, -0.31702953577041626, -0.27278292179107666, 0.18605899810791016, 0.40854957699775696, -0.3574672341346741, 0.08011484146118164, -0.26692619919776917, -0.40853533148765564, -0.05645494908094406, -0.13309036195278168, -0.3703538775444031, -0.23200280964374542, -0.19465413689613342, 0.22082768380641937, 0.3217780888080597, 0.06798355281352997, -0.05364000424742699, 0.3023662567138672, 0.157176211476326, 0.010820248164236546, -0.15743646025657654, -0.06067931279540062, -0.3003081977367401, -0.03998507559299469, 0.18110066652297974, 0.18162693083286285, 0.1177244484424591, -0.16820462048053741, -0.18956030905246735, -0.1653553694486618, -0.038048699498176575, 0.06240316480398178, -0.02369820699095726, 0.14317019283771515, 0.3579216003417969, 0.4521512985229492, -0.16629458963871002, -0.1952400654554367, 0.2785131335258484, 0.1151323914527893, -0.1622624397277832, 0.050808124244213104, 0.03268575668334961, -0.06987129151821136, -0.21560660004615784, -0.36807024478912354, -0.19355575740337372, -0.2798216938972473, 0.2910510301589966, 0.3097071051597595, 0.2572421133518219, 0.36287954449653625, 0.0027242060750722885, 0.32704612612724304, -0.2055671066045761, 0.23007602989673615, -0.3146941363811493, -0.14634262025356293, 0.18159057199954987, -0.0957210510969162, -0.32160964608192444, 0.10544009506702423, 0.1184152215719223, 0.16217397153377533, -0.11546369642019272, -0.3580619692802429, -0.4874969720840454, 0.0048741064965724945, -0.05026315525174141, -0.32020992040634155, 0.14842788875102997, 0.312592089176178, -0.27492082118988037, 0.07043411582708359, -0.0273816529661417, -0.4806820750236511, 0.3043287992477417, 0.12314282357692719, 0.4395594894886017, 0.00707046315073967, 0.46511027216911316, 0.0839044451713562, 0.41804802417755127, 0.27284595370292664, -0.12897036969661713, 0.31436389684677124, -0.13952486217021942, 0.28925350308418274, 0.09770768135786057, -0.3613308370113373, -0.005516279488801956, 0.234144389629364, 0.028562646359205246, 0.2181873321533203, 0.0020770179107785225, -0.1427939385175705, -0.07385215163230896, 0.05724770203232765, -0.24456781148910522, -0.0016677267849445343, 0.12551000714302063, -0.010806657373905182, -0.11847975105047226, 0.07335887849330902, 0.03802109509706497, -0.4303795397281647, -0.2144971489906311, -0.32267889380455017, 0.3040026128292084, 0.18191076815128326, 0.09076599031686783, -0.5952715277671814, -0.29503363370895386, -0.24070224165916443, 0.22346726059913635, -0.016044801101088524, 0.56927490234375, -0.18840719759464264, 0.19723504781723022, 0.16484178602695465, 0.14748089015483856, 0.65300053358078, -0.08899328857660294, -0.005710851401090622, 0.02847735583782196, 0.12814010679721832, -0.4141221344470978, 0.11681994795799255, -0.15145781636238098, 0.6537325978279114, 0.3073107898235321, 0.4086620509624481, -0.3931204080581665, -0.301216185092926, 0.0673375204205513, 0.09899061173200607, -0.32412636280059814, -0.1676250696182251, -0.24763938784599304, -0.2692568898200989, -0.29870283603668213, -0.19545236229896545, -0.15798455476760864, 0.2615722715854645, 0.33398866653442383, 0.21748413145542145, -0.07396923750638962, -0.059733014553785324, 0.21191267669200897, 0.022569801658391953, 0.24185621738433838, 0.1694159209728241, -0.2763482332229614, -0.08640974760055542, 0.27128657698631287, -0.30340689420700073, 0.42410463094711304, -0.05728527531027794, -0.183334082365036, 0.07785472273826599, -0.07743002474308014, 0.4648773670196533, 0.22892503440380096, -0.02167302370071411, 0.03735404461622238, -0.003718968480825424, -0.016316741704940796, 0.0841488391160965, -0.05258258059620857, 0.4038655757904053, -0.14508937299251556, -0.20668025314807892, -0.48599252104759216, 0.3761892318725586, 0.159127876162529, -0.021449454128742218, 0.3054714500904083, -0.2700209617614746, -0.267129510641098, 0.22740377485752106, -0.19583097100257874, 0.8024118542671204, -0.09946794807910919, 0.40810278058052063, 0.4356692433357239, 0.29626357555389404, 0.8019760847091675, 0.12367863953113556, 0.1407839059829712, -0.40021783113479614, -0.04369720444083214, -0.03133478760719299, -0.21223710477352142, 0.023047205060720444, 0.46773087978363037, -0.30466726422309875, 0.3824666738510132, 0.009472288191318512, 0.015494832769036293, 0.18471506237983704, 0.5063358545303345, 0.051077477633953094, -0.30340027809143066, -0.9086316823959351, 0.08382005244493484, -0.4602070450782776, 0.1457357108592987, -0.13058330118656158, -0.2854573726654053, 0.0649588406085968, -0.24668924510478973, -0.1898803561925888, 0.3769303858280182, -0.12192066758871078, 0.19784872233867645, 0.261634886264801, -0.13678595423698425, 0.11488261818885803, 0.6384860277175903, 0.07480517774820328, 0.04695800691843033, -0.13438265025615692, -0.016911782324314117, -0.3627628684043884, 0.01780560240149498, -0.25665783882141113, 0.09319696575403214, 0.20866705477237701, -0.03496439754962921, -0.05081479996442795, 0.2315022051334381, -0.06770727038383484, -0.46131837368011475, -0.02083776891231537, 0.19278442859649658, -0.23914922773838043, -0.1979091316461563, -0.7866969108581543, 0.026645716279745102, -0.06506982445716858, 0.09317231178283691, 0.02934744581580162, 0.3400614857673645, -0.4002750813961029, -0.07476402074098587, 0.3850581645965576, -0.199365496635437, 0.21212758123874664, 0.49441638588905334, -0.032592952251434326, -0.15240971744060516, 0.6422562599182129, 0.2634297013282776, 0.09407185018062592, -0.24858474731445312, 0.012641027569770813, -0.1036129742860794, -0.1308942437171936, 0.12159662693738937, 0.17890456318855286, 0.1579010933637619, -0.020434346050024033, 0.14723671972751617, 0.07389113306999207, 0.24895912408828735, 0.19358085095882416, -0.5574482083320618, -0.10186577588319778, 0.24922464787960052, -0.0811532735824585, 0.021787410601973534, 0.21387642621994019, -0.08202879130840302, 0.17332863807678223, 0.015925558283925056, -0.22849133610725403, 0.14809255301952362, -0.3470251262187958, 0.22114746272563934, 0.18073652684688568, -0.1060178205370903, 0.07449966669082642, 0.02980213612318039, 0.03486768901348114, -0.06611318141222, -0.12373006343841553, -0.13225258886814117, -0.032661210745573044, 0.18249130249023438, 0.10369668900966644, 0.038915038108825684, -0.18626829981803894, -0.34224843978881836, -0.019466694444417953, -0.05654662847518921, -0.15177620947360992, 0.058018192648887634, -0.00863029807806015, 0.3131304979324341, 0.10517977923154831, 0.0541069470345974, -0.15831288695335388, 0.16783909499645233, -0.3720063269138336, 0.059494342654943466, 0.07167240232229233, 0.24149572849273682, 0.14206738770008087, 0.060403287410736084, -0.5040305256843567, 0.03651924431324005, -0.0074000284075737, 0.06856147199869156, 0.12556543946266174, -0.45241010189056396, 0.16125018894672394, 0.05010126531124115, 0.14884960651397705, 0.3014202117919922, -0.29842033982276917, 0.3430100679397583, 0.01576099544763565, 0.09337379038333893, -0.1277238130569458, 0.02590661123394966, 0.5305550694465637, 0.056208331137895584, -0.20499345660209656, 0.309851735830307, -0.14057159423828125, -0.12581494450569153, 0.12878569960594177, -0.12231982499361038, 0.4390668570995331, -0.3158116936683655, 0.002866394817829132, 0.007284786552190781, -0.1066024899482727, -0.15239505469799042, 0.09786878526210785, 0.12740550935268402, 0.13695617020130157, 0.1636429876089096, -0.3774887025356293, 0.09297129511833191, 0.07667386531829834, 0.08222713321447372, 0.19457043707370758, -0.3949979245662689, -0.16144925355911255, 0.4666157066822052, 0.18396306037902832, 0.02096373215317726, -0.2303614616394043, 0.4584296643733978, -0.390315979719162, -0.12588374316692352, -0.2265264391899109, 0.3225131630897522, -0.18834498524665833, -0.09338647127151489, -0.5020492076873779, -0.07424218952655792, -0.09154802560806274, -0.103526771068573, -0.10407310724258423, -0.21661336719989777, 0.09482143819332123, 0.11722038686275482, -0.032189421355724335, -0.5349881052970886, 0.09567634016275406, 0.4124475419521332, -0.1561523973941803, -0.24196922779083252, 0.3715269863605499, -0.14060112833976746, -0.017568238079547882, 0.260210782289505, 0.25873512029647827, 0.39446720480918884, 0.4811035394668579, 0.16438335180282593, 0.05510023981332779, -0.13800953328609467, -0.1544768065214157, -0.10367566347122192, 0.12912458181381226, 0.13980217278003693, 0.20220528542995453, 0.06637290120124817, 0.15312623977661133, 0.022430885583162308, 0.29716232419013977, 0.022745255380868912, -0.0627913624048233, -0.21933920681476593, 0.4865594208240509, -0.16307224333286285, -0.10934603214263916, -0.30183908343315125, 0.12570662796497345, -0.3252588212490082, -0.009816727600991726, 0.201819509267807, 0.3219430148601532, 0.24258846044540405, -0.05436665937304497, 0.02305053174495697, -0.12633298337459564, 0.31228527426719666, 0.27820897102355957, 0.0961904376745224, -0.27187657356262207, 0.022272109985351562, -0.6221784353256226, -0.06611146777868271, -0.06548263132572174, -0.25002261996269226, 0.14469178020954132, 0.33957788348197937, 0.006154507398605347, 0.24119679629802704, -0.19945470988750458, 0.19435341656208038, -0.023931611329317093, -0.009554803371429443, -0.3606647849082947, -0.1835726648569107, 0.181923508644104, 0.32094407081604004, 0.023058097809553146, -0.2056950330734253, -0.06162870302796364, 0.01279014814645052, -0.06757783144712448, -0.22966144979000092, 0.018732145428657532, -0.10722692310810089, 0.32827937602996826, -0.10811997950077057, 0.04646427184343338, 0.4340125024318695, 0.06738758087158203, -0.07337396591901779, -0.07138913869857788, -0.3200552463531494, -0.23931129276752472, 0.20404884219169617, -0.06794720888137817, 0.48247721791267395, -0.46685829758644104, 0.3478717803955078, -0.35900697112083435, 0.14775581657886505, -0.21174713969230652, -0.09267430752515793, -0.21564558148384094, 0.23521506786346436, -0.25255298614501953, 0.3473978340625763, -0.004570731893181801, 0.08559992164373398, 0.0493667870759964, 0.17450915277004242, -0.23383334279060364, 0.02565898932516575, 0.5776779651641846, -0.4646983742713928, -0.2673555016517639, 0.1539921909570694, 0.22694101929664612, -0.023003578186035156, -0.2422235608100891, -0.39091765880584717, -0.195016011595726, 0.4414581060409546, -0.12831467390060425, -0.2740135192871094, 0.11082406342029572, -0.1983666568994522, -0.08695633709430695, -0.0698465034365654, 0.0026235058903694153, 0.10569796711206436, -0.3569946587085724, -0.005475196987390518, -0.4018360376358032 ]
https://github.com/huggingface/datasets/issues/157
nlp.load_dataset() gives "TypeError: list_() takes exactly one argument (2 given)"
It seems like your download was corrupted :-/ Can you run the following command: ``` rm -r /root/.cache/huggingface/datasets ``` to delete the cache completely and rerun the download?
I'm trying to load datasets from nlp but there seems to have error saying "TypeError: list_() takes exactly one argument (2 given)" gist can be found here https://gist.github.com/saahiluppal/c4b878f330b10b9ab9762bc0776c0a6a
28
nlp.load_dataset() gives "TypeError: list_() takes exactly one argument (2 given)" I'm trying to load datasets from nlp but there seems to have error saying "TypeError: list_() takes exactly one argument (2 given)" gist can be found here https://gist.github.com/saahiluppal/c4b878f330b10b9ab9762bc0776c0a6a It seems like your download was corrupted :-/ Can you run the following command: ``` rm -r /root/.cache/huggingface/datasets ``` to delete the cache completely and rerun the download?
[ -0.12083576619625092, -0.03516846150159836, -0.08179580420255661, 0.5541925430297852, 0.30254167318344116, 0.13153526186943054, 0.0039046816527843475, 0.1393859088420868, 0.28043654561042786, -0.10014434158802032, -0.195135697722435, 0.36996397376060486, -0.12046543508768082, 0.0582583025097847, 0.33264392614364624, -0.4019225537776947, -0.1763339638710022, 0.29478996992111206, -0.18265902996063232, -0.0056840479373931885, -0.09048611670732498, 0.43385520577430725, -0.18452295660972595, 0.1346079409122467, 0.008053255267441273, -0.18750569224357605, -0.13844822347164154, 0.40527641773223877, -0.20761139690876007, -0.4997510015964508, 0.3896079659461975, -0.027320634573698044, 0.24144449830055237, 0.11317195743322372, -0.00010969107825076208, -0.05841625854372978, 0.43685978651046753, -0.09661208093166351, -0.3577702045440674, -0.26472097635269165, -0.19292235374450684, -0.35059213638305664, 0.3675936758518219, -0.20101523399353027, -0.0211330596357584, -0.055000003427267075, 0.18643397092819214, 0.1668650507926941, 0.47703731060028076, 0.22559666633605957, 0.29941144585609436, 0.3363184630870819, 0.06745417416095734, -0.2147987186908722, 0.06655055284500122, 0.07256996631622314, 0.06873074918985367, 0.17712964117527008, 0.08328767865896225, -0.03650066629052162, 0.23484423756599426, 0.12661410868167877, -0.08524733036756516, 0.10889561474323273, 0.2413451373577118, -0.10368555039167404, -0.14451882243156433, -0.07588712126016617, -0.08306026458740234, 0.1832682490348816, 0.4341348707675934, 0.01844578981399536, -0.19634069502353668, -0.1812433898448944, 0.1584371030330658, -0.3754575252532959, 0.22961530089378357, 0.186671644449234, -0.18677105009555817, 0.054054610431194305, -0.25252169370651245, -0.28354623913764954, -0.0359017476439476, 0.3337022662162781, 0.1003299355506897, 0.11874839663505554, -0.19648827612400055, 0.13388638198375702, 0.38199344277381897, -0.04559597373008728, -0.2346821129322052, -0.047804318368434906, -0.1841401755809784, 0.11754777282476425, -0.3242129385471344, 0.12781348824501038, -0.006495900452136993, 0.37583795189857483, 0.16331005096435547, 0.10406620800495148, 0.13013578951358795, 0.032131608575582504, -0.21732452511787415, 0.043044257909059525, 0.4068358540534973, 0.16389721632003784, 0.22544792294502258, 0.03507325053215027, -0.07191897928714752, 0.022666312754154205, 0.2335491180419922, 0.024664442986249924, -0.17682386934757233, -0.01313695963472128, -0.19471779465675354, -0.16698920726776123, 0.1918569803237915, -0.31788012385368347, -0.22591611742973328, -0.16743165254592896, -0.1062626913189888, -0.1299869418144226, 0.1750207245349884, 0.4389188885688782, -0.13310153782367706, 0.27028608322143555, 0.15463829040527344, 0.21082215011119843, -0.07190880179405212, -0.3060035705566406, -0.23067045211791992, -0.022825870662927628, -0.25340014696121216, -0.030947690829634666, 0.3860829770565033, -0.18610592186450958, 0.5473417639732361, 0.013517837040126324, -0.16773644089698792, 0.013468503952026367, -0.03571467101573944, 0.04951482266187668, -0.31883135437965393, 0.13865642249584198, 0.24376735091209412, 0.19787894189357758, 0.21213123202323914, -0.1395174264907837, -0.01134113222360611, 0.04303877055644989, -0.2953129708766937, -0.14640681445598602, -0.08016791939735413, 0.21356210112571716, -0.1552685797214508, -0.1995829939842224, -0.4402095377445221, 0.050731029361486435, 0.12120922654867172, -0.22451096773147583, -0.28889980912208557, -0.12431386113166809, -0.17270329594612122, -0.10746297240257263, 0.01303013600409031, 0.3030009865760803, -0.1179320365190506, -0.23332227766513824, -0.09098779410123825, -0.14338135719299316, 0.03958335146307945, 0.5990226864814758, -0.47202569246292114, 0.20328177511692047, -0.2796129584312439, 0.33996355533599854, 0.5836385488510132, -0.0662519782781601, -0.33589956164360046, 0.227344810962677, -0.0008169710636138916, -0.013430573046207428, -0.09936251491308212, 0.192267045378685, 0.09651048481464386, 0.01181840244680643, 0.11641004681587219, 0.3620452284812927, 0.028752855956554413, 0.1049305871129036, -0.17322097718715668, -0.19454562664031982, 0.3117157220840454, 0.07096745073795319, -0.0934053361415863, 0.3505007326602936, -0.01148969680070877, 0.3573692739009857, 0.4544578492641449, -0.08770139515399933, -0.12227196246385574, 0.5004972815513611, -0.14535656571388245, 0.04926703870296478, -0.16689646244049072, -0.08826124668121338, -0.5441413521766663, 0.05931086093187332, -0.1901802122592926, 0.031585052609443665, 0.013577096164226532, 0.00005833432078361511, -0.29035109281539917, -0.04300868511199951, -0.010400284081697464, -0.01321617141366005, 0.10376425087451935, 0.3401201367378235, 0.062390442937612534, -0.10853715240955353, -0.18615852296352386, 0.3082200884819031, -0.07665933668613434, 0.03998392075300217, -0.5488079786300659, 0.24304096400737762, -0.14607642590999603, -0.18444429337978363, 0.321809858083725, -0.0020530298352241516, 0.24784234166145325, -0.14114899933338165, -0.0050199273973703384, 0.20529255270957947, -0.2015737146139145, 0.022454045712947845, 0.08891929686069489, -0.23640631139278412, 0.17089085280895233, -0.3033140003681183, -0.02029183693230152, 0.09218107163906097, 0.22645393013954163, -0.134203240275383, -0.17242121696472168, 0.10436476767063141, -0.04414862021803856, 0.1301499754190445, 0.01373918354511261, 0.16328303515911102, 0.4534032642841339, -0.06495869159698486, -0.034379757940769196, 0.07237021625041962, 0.40890660881996155, 0.1714707762002945, 0.19229397177696228, 0.057183604687452316, -0.4705580472946167, -0.013007022440433502, 0.3720379173755646, 0.08315452933311462, 0.05206690728664398, 0.11833731830120087, -0.028082773089408875, -0.1841573417186737, 0.1566457599401474, -0.09221774339675903, 0.4385111927986145, 0.2807067036628723, 0.021200306713581085, 0.019702330231666565, -0.16198916733264923, -0.2165619134902954, 0.08821889758110046, -0.13981293141841888, 0.14590829610824585, 0.026874523609876633, 0.0015683709643781185, -0.10730630159378052, -0.509441077709198, -0.0787743628025055, 0.1528923213481903, 0.4604255259037018, -0.34489771723747253, 0.02629532478749752, -0.43395164608955383, -0.573268711566925, 0.024758197367191315, -0.20758774876594543, -0.3741028606891632, -0.3285757303237915, -0.2151392102241516, 0.33075106143951416, 0.18842044472694397, 0.22064481675624847, -0.056740447878837585, 0.2805195450782776, 0.0792720690369606, 0.13889682292938232, -0.2551282048225403, -0.03062349557876587, -0.3055678904056549, 0.05919146165251732, 0.29569971561431885, 0.18501301109790802, 0.265986829996109, -0.24597179889678955, -0.11276647448539734, -0.23509874939918518, 0.002360239624977112, 0.05533115193247795, -0.01328609511256218, 0.20230531692504883, 0.2612724304199219, 0.39595353603363037, -0.18900465965270996, -0.14143294095993042, 0.3529108464717865, -0.07539834082126617, -0.17886246740818024, 0.055883683264255524, 0.07285919040441513, -0.18781064450740814, -0.3019121289253235, -0.20719975233078003, -0.18019603192806244, -0.38555994629859924, 0.2631174921989441, 0.34752893447875977, 0.15318356454372406, 0.40415841341018677, -0.1057729423046112, 0.2807362377643585, -0.1813134104013443, 0.15716342628002167, -0.38723018765449524, -0.17834550142288208, 0.14823269844055176, -0.1565333902835846, -0.4827791750431061, 0.03074478730559349, 0.18288633227348328, 0.237676739692688, 0.053713709115982056, -0.45162326097488403, -0.24506846070289612, -0.06314238905906677, -0.025061383843421936, -0.15593937039375305, 0.14977923035621643, 0.22016051411628723, -0.2043898105621338, 0.0002100430428981781, -0.015072818845510483, -0.417390912771225, 0.22319018840789795, -0.0412198081612587, 0.3961801826953888, -0.056176938116550446, 0.3297182619571686, 0.045411255210638046, 0.39474737644195557, 0.2492128312587738, -0.02963191643357277, 0.4718222916126251, -0.08542057871818542, 0.4036560654640198, 0.017222419381141663, -0.38755035400390625, -0.01998942717909813, 0.039893895387649536, 0.13788753747940063, 0.30589985847473145, -0.03319043293595314, -0.2092960923910141, -0.1294093132019043, 0.1402888298034668, -0.2421465516090393, -0.04379056766629219, 0.08072377741336823, -0.0373135581612587, -0.02791670709848404, 0.10747504234313965, 0.014216899871826172, -0.22436240315437317, -0.2369501292705536, -0.09413665533065796, 0.1967792809009552, 0.038411758840084076, 0.12476327270269394, -0.4978688955307007, -0.017132816836237907, -0.47743600606918335, 0.2559390068054199, -0.09179320931434631, 0.5045908093452454, -0.18471573293209076, 0.18507081270217896, 0.1968223750591278, -0.023925120010972023, 0.737342357635498, 0.0003916081041097641, 0.043961744755506516, 0.11320608854293823, 0.10217700898647308, -0.38140833377838135, 0.03604679927229881, -0.23733828961849213, 0.3178759515285492, 0.2889140248298645, 0.33127889037132263, -0.43289753794670105, -0.22385600209236145, 0.07058669626712799, 0.17675738036632538, -0.3416845202445984, -0.11915486305952072, -0.27788352966308594, -0.40183529257774353, -0.29720956087112427, -0.1775018572807312, -0.12437015771865845, 0.25422221422195435, 0.19830256700515747, 0.1885097473859787, -0.20700091123580933, -0.019609857350587845, 0.03930119797587395, 0.01263074204325676, 0.3488483726978302, 0.21384643018245697, -0.1760130375623703, -0.029891736805438995, 0.31706202030181885, -0.3836457133293152, 0.6565625071525574, -0.2302844226360321, -0.08012425899505615, -0.001989899203181267, -0.05886802077293396, 0.11965201795101166, 0.28359055519104004, 0.025841988623142242, 0.06619293987751007, 0.1482638567686081, 0.022575009614229202, 0.00246579572558403, 0.11206547915935516, 0.4678325355052948, -0.08641637861728668, -0.23671822249889374, -0.4672757685184479, 0.3942335247993469, 0.06269806623458862, -0.08739762753248215, 0.2672942578792572, -0.0925358384847641, -0.23756200075149536, 0.09465215355157852, -0.2230307161808014, 0.7779066562652588, -0.2666206955909729, 0.2676983177661896, 0.4656257927417755, 0.13321039080619812, 0.7914776802062988, 0.302004337310791, 0.05582703277468681, -0.34501853585243225, -0.053434766829013824, 0.0034794267266988754, -0.08309254795312881, -0.014515072107315063, 0.24702103435993195, -0.22028657793998718, 0.32664045691490173, 0.0761023759841919, -0.017421778291463852, 0.16126154363155365, 0.4570518732070923, 0.0335228256881237, -0.23201648890972137, -0.8258489370346069, 0.22215962409973145, -0.4772247076034546, 0.21463288366794586, -0.22101864218711853, -0.23775479197502136, 0.1717684119939804, -0.21659867465496063, -0.2919359803199768, 0.33053815364837646, -0.06325171142816544, 0.15228742361068726, 0.1296486258506775, -0.14012224972248077, -0.02924186736345291, 0.37279388308525085, 0.10120733082294464, 0.08174438774585724, -0.22310705482959747, 0.04934823513031006, -0.4282253682613373, -0.1093115583062172, -0.17113487422466278, 0.14824175834655762, 0.18035967648029327, -0.16698110103607178, -0.08896377682685852, 0.06348954886198044, -0.015143693424761295, -0.41465163230895996, 0.03799949586391449, 0.08723578602075577, -0.2390982061624527, -0.08532600104808807, -0.5879580974578857, 0.10769511759281158, 0.10233688354492188, -0.1085282415151596, 0.10185322165489197, 0.33483004570007324, -0.2579452395439148, -0.07091433554887772, 0.3010926842689514, -0.10901181399822235, 0.029732678085565567, 0.5251567959785461, -0.06301156431436539, -0.26670119166374207, 0.47697803378105164, 0.33076611161231995, -0.019002489745616913, -0.22111916542053223, -0.2141515612602234, -0.2117602527141571, -0.29993554949760437, 0.10255824029445648, 0.019615057855844498, 0.12861056625843048, -0.04496196284890175, 0.34715843200683594, 0.1963786482810974, 0.0761314183473587, 0.1904609054327011, -0.5562466979026794, -0.20691828429698944, 0.16415122151374817, -0.01878746971487999, 0.15628421306610107, 0.25119972229003906, -0.04827586188912392, 0.20545364916324615, 0.004539191722869873, -0.3312322199344635, 0.12874652445316315, -0.3835962414741516, 0.13002881407737732, 0.2317960411310196, -0.14691993594169617, 0.08002664893865585, -0.11648236215114594, 0.11979866027832031, 0.008129581809043884, -0.1924995630979538, -0.21525752544403076, -0.13040678203105927, 0.08408223092556, -0.0064272694289684296, -0.11495190113782883, -0.07636924833059311, -0.27490946650505066, 0.10070356726646423, -0.041950441896915436, -0.07747161388397217, 0.03951080143451691, 0.020404640585184097, 0.1975647509098053, 0.13340634107589722, -0.00048523396253585815, -0.10757214576005936, 0.1885930597782135, -0.2641465663909912, -0.06127658486366272, 0.002372781280428171, 0.21458114683628082, 0.1448700726032257, -0.0705881118774414, -0.28337159752845764, 0.013501651585102081, 0.049241144210100174, 0.11178544908761978, 0.2707846760749817, -0.4229500889778137, 0.11472414433956146, 0.15539735555648804, 0.32000473141670227, 0.3243107497692108, -0.14967003464698792, 0.2079663723707199, 0.10993008315563202, 0.20932598412036896, -0.28109949827194214, -0.03811914473772049, 0.3883259892463684, 0.1568455845117569, -0.18648461997509003, 0.18533964455127716, 0.021762382239103317, -0.18008235096931458, 0.07566824555397034, -0.06042139604687691, 0.4124307334423065, -0.13388308882713318, 0.01843605563044548, 0.07999981194734573, -0.09616680443286896, -0.15739229321479797, 0.09375522285699844, 0.19306591153144836, 0.07263849675655365, 0.3452221751213074, -0.351715624332428, 0.11642123013734818, -0.11400926858186722, 0.18743567168712616, 0.06158478558063507, -0.45896369218826294, -0.02492336556315422, 0.4139138162136078, 0.09523743391036987, 0.1886267364025116, -0.15406213700771332, 0.4811902344226837, -0.3659307360649109, -0.33620086312294006, -0.2584642469882965, 0.4400590658187866, -0.22939646244049072, -0.17070689797401428, -0.4461740255355835, -0.09806247055530548, -0.1007111445069313, 0.08376941084861755, -0.139628604054451, -0.17476101219654083, 0.23238274455070496, 0.07086081802845001, -0.08877630531787872, -0.7703473567962646, -0.1341930627822876, 0.26942601799964905, -0.17554330825805664, -0.18464848399162292, 0.3699837028980255, 0.014225296676158905, -0.0626865029335022, 0.12489579617977142, 0.363232284784317, 0.3218105137348175, 0.289196640253067, 0.2349756807088852, 0.011954872868955135, -0.036972347646951675, -0.030412590131163597, -0.28828248381614685, 0.2068500518798828, 0.2686155438423157, 0.2998315989971161, 0.19157887995243073, 0.2024133801460266, -0.12146764993667603, 0.23472586274147034, -0.09724116325378418, 0.03679737448692322, -0.18428543210029602, 0.5213073492050171, -0.22120094299316406, -0.07756543904542923, -0.23604175448417664, 0.08326805382966995, -0.4021279513835907, 0.16519148647785187, 0.22540900111198425, 0.1096487045288086, 0.25082799792289734, -0.14040304720401764, 0.08212067186832428, -0.05864359810948372, 0.5475355386734009, 0.4613282084465027, 0.34660258889198303, -0.19198426604270935, -0.1506364643573761, -0.8086351156234741, 0.0455876886844635, -0.0774507075548172, -0.13688461482524872, 0.10330038517713547, 0.16298961639404297, 0.015861399471759796, 0.25045666098594666, -0.12370793521404266, 0.20351986587047577, 0.08039584010839462, -0.10936209559440613, -0.3904361426830292, -0.024969059973955154, 0.13338762521743774, 0.1654973328113556, -0.009069260209798813, -0.2018321454524994, 0.1789034903049469, -0.09101875871419907, 0.04048233479261398, -0.18915650248527527, 0.07756996154785156, -0.1938130259513855, 0.10293535888195038, -0.0825139731168747, 0.22408592700958252, 0.40871381759643555, 0.06479158252477646, -0.1705443412065506, -0.23241478204727173, -0.4169980585575104, -0.1590770035982132, 0.09755580127239227, -0.06112601235508919, 0.42697444558143616, -0.28089624643325806, 0.3999004065990448, -0.3593805432319641, 0.27277877926826477, -0.0009130202233791351, 0.11029713600873947, -0.3232364356517792, 0.1900506317615509, -0.2084137201309204, 0.0575462281703949, 0.1520988941192627, 0.26628491282463074, 0.1349390596151352, 0.14281146228313446, -0.2719803750514984, -0.06226666271686554, 0.6023277044296265, -0.3892846405506134, -0.23629458248615265, 0.11085350066423416, 0.15294523537158966, 0.08498655259609222, -0.3550410568714142, -0.5108581781387329, -0.07980358600616455, 0.29911163449287415, -0.20871442556381226, -0.2410822957754135, 0.2545334994792938, -0.23319457471370697, -0.045834120362997055, -0.0497141033411026, 0.2441418617963791, 0.2074662446975708, -0.469023734331131, 0.12182852625846863, -0.29443782567977905 ]
https://github.com/huggingface/datasets/issues/156
SyntaxError with WMT datasets
Jeez - don't know what happened there :D Should be fixed now! Thanks a lot for reporting this @tomhosking !
The following snippet produces a syntax error: ``` import nlp dataset = nlp.load_dataset('wmt14') print(dataset['train'][0]) ``` ``` Traceback (most recent call last): File "/home/tom/.local/lib/python3.6/site-packages/IPython/core/interactiveshell.py", line 3326, in run_code exec(code_obj, self.user_global_ns, self.user_ns) File "<ipython-input-8-3206959998b9>", line 3, in <module> dataset = nlp.load_dataset('wmt14') File "/home/tom/.local/lib/python3.6/site-packages/nlp/load.py", line 505, in load_dataset builder_cls = import_main_class(module_path, dataset=True) File "/home/tom/.local/lib/python3.6/site-packages/nlp/load.py", line 56, in import_main_class module = importlib.import_module(module_path) File "/usr/lib/python3.6/importlib/__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 994, in _gcd_import File "<frozen importlib._bootstrap>", line 971, in _find_and_load File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 665, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 678, in exec_module File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed File "/home/tom/.local/lib/python3.6/site-packages/nlp/datasets/wmt14/c258d646f4f5870b0245f783b7aa0af85c7117e06aacf1e0340bd81935094de2/wmt14.py", line 21, in <module> from .wmt_utils import Wmt, WmtConfig File "/home/tom/.local/lib/python3.6/site-packages/nlp/datasets/wmt14/c258d646f4f5870b0245f783b7aa0af85c7117e06aacf1e0340bd81935094de2/wmt_utils.py", line 659 <<<<<<< HEAD ^ SyntaxError: invalid syntax ``` Python version: `3.6.9 (default, Apr 18 2020, 01:56:04) [GCC 8.4.0]` Running on Ubuntu 18.04, via a Jupyter notebook
20
SyntaxError with WMT datasets The following snippet produces a syntax error: ``` import nlp dataset = nlp.load_dataset('wmt14') print(dataset['train'][0]) ``` ``` Traceback (most recent call last): File "/home/tom/.local/lib/python3.6/site-packages/IPython/core/interactiveshell.py", line 3326, in run_code exec(code_obj, self.user_global_ns, self.user_ns) File "<ipython-input-8-3206959998b9>", line 3, in <module> dataset = nlp.load_dataset('wmt14') File "/home/tom/.local/lib/python3.6/site-packages/nlp/load.py", line 505, in load_dataset builder_cls = import_main_class(module_path, dataset=True) File "/home/tom/.local/lib/python3.6/site-packages/nlp/load.py", line 56, in import_main_class module = importlib.import_module(module_path) File "/usr/lib/python3.6/importlib/__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 994, in _gcd_import File "<frozen importlib._bootstrap>", line 971, in _find_and_load File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 665, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 678, in exec_module File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed File "/home/tom/.local/lib/python3.6/site-packages/nlp/datasets/wmt14/c258d646f4f5870b0245f783b7aa0af85c7117e06aacf1e0340bd81935094de2/wmt14.py", line 21, in <module> from .wmt_utils import Wmt, WmtConfig File "/home/tom/.local/lib/python3.6/site-packages/nlp/datasets/wmt14/c258d646f4f5870b0245f783b7aa0af85c7117e06aacf1e0340bd81935094de2/wmt_utils.py", line 659 <<<<<<< HEAD ^ SyntaxError: invalid syntax ``` Python version: `3.6.9 (default, Apr 18 2020, 01:56:04) [GCC 8.4.0]` Running on Ubuntu 18.04, via a Jupyter notebook Jeez - don't know what happened there :D Should be fixed now! Thanks a lot for reporting this @tomhosking !
[ -0.3297365605831146, 0.03244337439537048, -0.01935308799147606, 0.012745760381221771, 0.21647348999977112, -0.014922674745321274, 0.3609468638896942, 0.5264446139335632, 0.13015474379062653, -0.11216209828853607, 0.0932864099740982, 0.4350023567676544, -0.3767535090446472, 0.14143194258213043, 0.15087036788463593, -0.1754974126815796, -0.026802845299243927, 0.14139631390571594, -0.35863637924194336, 0.15195663273334503, -0.2946048676967621, 0.15836399793624878, -0.42096132040023804, 0.21733908355236053, -0.25428834557533264, -0.09023565798997879, -0.0211467407643795, 0.14495055377483368, -0.13945958018302917, -0.46284928917884827, 0.14080297946929932, -0.006522614508867264, 0.23899543285369873, 0.3692950904369354, -0.00010283572191838175, -0.0074910372495651245, 0.1617363542318344, -0.03901885077357292, -0.39230215549468994, -0.3421502709388733, -0.45179206132888794, -0.14813537895679474, 0.14383840560913086, -0.2942018508911133, 0.040795400738716125, -0.1019728034734726, 0.012090276926755905, -0.23356367647647858, 0.5227859020233154, 0.47097766399383545, 0.2622491419315338, 0.40465325117111206, -0.07884262502193451, -0.19955724477767944, 0.040084730833768845, 0.18680699169635773, -0.025102337822318077, 0.2721500098705292, -0.04627573490142822, -0.3078269958496094, 0.0443684458732605, 0.284417986869812, -0.09715508669614792, 0.20463255047798157, 0.22881338000297546, 0.0462171845138073, 0.17373965680599213, 0.01462288573384285, -0.13369280099868774, 0.11168860644102097, 0.3766534626483917, -0.33405089378356934, -0.19229696691036224, -0.025419846177101135, -0.02371559664607048, -0.3796643018722534, 0.17374484241008759, 0.25100788474082947, -0.24309557676315308, 0.20427744090557098, -0.28036415576934814, 0.07219225913286209, -0.04953354597091675, 0.28029268980026245, -0.04191597178578377, 0.7289191484451294, -0.1515551209449768, 0.08305162191390991, -0.03266840800642967, -0.18976740539073944, 0.11824125051498413, -0.02339347079396248, -0.0012602955102920532, 0.1437295526266098, -0.06961944699287415, -0.06889297813177109, 0.2810450494289398, -0.027393490076065063, -0.2340157926082611, 0.02677409164607525, 0.18169541656970978, -0.145949125289917, 0.19883476197719574, 0.19662776589393616, 0.2838442027568817, -0.0644872784614563, 0.03990409895777702, -0.032831065356731415, 0.2843931317329407, 0.2534208595752716, -0.02751028724014759, 0.047553084790706635, -0.17336194217205048, -0.46899211406707764, -0.025339186191558838, 0.013644108548760414, 0.595009446144104, 0.18039673566818237, -0.270100861787796, -0.028921905905008316, -0.27869993448257446, -0.30279842019081116, -0.06769765168428421, 0.20932739973068237, 0.12181972712278366, -0.16004961729049683, 0.3483573794364929, 0.07520836591720581, -0.24403321743011475, -0.16471929848194122, -0.29304760694503784, 0.34089580178260803, -0.3188338577747345, -0.16842792928218842, 0.21880857646465302, 0.22536182403564453, 0.09221291542053223, 0.047164589166641235, -0.0809149295091629, -0.19884291291236877, 0.13892871141433716, -0.007762164808809757, 0.10811705142259598, 0.10519567131996155, -0.17859524488449097, 0.09333983063697815, 0.27756035327911377, -0.10049428045749664, -0.04839938506484032, 0.20074623823165894, -0.0364861786365509, -0.08971342444419861, -0.16141408681869507, 0.28895971179008484, -0.1801726073026657, -0.09838379919528961, 0.05437998101115227, 0.07688537240028381, 0.2552025318145752, -0.08779057115316391, 0.031296759843826294, -0.3928900957107544, -0.25554314255714417, -0.16490347683429718, 0.18206846714019775, 0.47423624992370605, -0.4417523741722107, -0.19430659711360931, -0.19984155893325806, -0.11287452280521393, 0.1960725486278534, 0.16547280550003052, -0.18480809032917023, 0.6032971739768982, -0.1668521761894226, 0.1821201592683792, 0.4813288450241089, -0.2698018550872803, 0.17083173990249634, 0.06550229340791702, -0.25296127796173096, 0.07627668976783752, -0.0907965824007988, -0.04541868716478348, -0.0019623851403594017, -0.020329641178250313, 0.36855435371398926, 0.2570972442626953, -0.08682771772146225, -0.07042102515697479, 0.02580200508236885, 0.028127359226346016, 0.5934314727783203, 0.04628374055027962, -0.0008244439959526062, -0.2142312228679657, 0.05787103250622749, 0.4939415156841278, 0.24607723951339722, -0.05770692601799965, -0.03334905207157135, -0.013707075268030167, 0.017015106976032257, -0.11484473943710327, -0.33529147505760193, -0.2411738634109497, -0.223207026720047, -0.10936478525400162, 0.04783066362142563, 0.36304593086242676, -0.15240462124347687, 0.2927406430244446, -0.24383467435836792, 0.08482580631971359, -0.22529281675815582, -0.24238458275794983, 0.26310524344444275, 0.04656144231557846, -0.2522633671760559, -0.10869182646274567, -0.06863437592983246, -0.0800715833902359, 0.008836543187499046, 0.09386292845010757, -0.1322338879108429, 0.1556386947631836, -0.25798800587654114, -0.3206021189689636, 0.1305002123117447, 0.25699687004089355, 0.16543687880039215, -0.043695367872714996, -0.21404603123664856, 0.2780262231826782, 0.16491366922855377, -0.06929758191108704, -0.2854144275188446, -0.029415220022201538, -0.07430317252874374, -0.16028037667274475, 0.16514788568019867, 0.17947827279567719, 0.19708514213562012, -0.1973394751548767, -0.20750120282173157, 0.18064722418785095, -0.023483093827962875, 0.07527970522642136, 0.14891332387924194, 0.10098180919885635, 0.14578084647655487, 0.021032866090536118, 0.028500834479928017, -0.2971128821372986, 0.17801572382450104, -0.024109680205583572, -0.15059323608875275, -0.07277599722146988, -0.11883144080638885, -0.10565807670354843, 0.5293699502944946, 0.2276986837387085, 0.22410941123962402, -0.2177882194519043, -0.2621042728424072, -0.08119961619377136, 0.07825546711683273, 0.07051733136177063, 0.47997981309890747, 0.17822259664535522, -0.004178885370492935, 0.17721517384052277, -0.01566699892282486, -0.21655751764774323, 0.2168712168931961, 0.18183255195617676, 0.03313763439655304, -0.035111889243125916, 0.03854869678616524, 0.0851173847913742, -0.1735188066959381, -0.28186237812042236, -0.08428294956684113, 0.16424359381198883, -0.3306984603404999, 0.049713075160980225, -0.4721486568450928, -0.39310693740844727, -0.45145946741104126, -0.38413354754447937, -0.17399612069129944, -0.42887938022613525, -0.18676868081092834, -0.03511202707886696, -0.21731694042682648, 0.30024775862693787, -0.14047981798648834, -0.048254743218421936, 0.11018720269203186, 0.06637947261333466, 0.09884929656982422, -0.2670574486255646, -0.1530420184135437, 0.14112330973148346, 0.3205448389053345, 0.1450352668762207, 0.3701433539390564, -0.07942801713943481, 0.011153236031532288, 0.04733288288116455, -0.3408437669277191, 0.11609910428524017, -0.10098204016685486, 0.2626492381095886, 0.43248796463012695, 0.3414858281612396, 0.08383861929178238, -0.284249871969223, 0.42707300186157227, -0.06373556703329086, 0.051010385155677795, 0.049875661730766296, 0.19409632682800293, -0.1479697972536087, -0.30299490690231323, -0.4622395932674408, -0.3657282888889313, -0.4703690707683563, -0.12164190411567688, 0.1440429538488388, 0.1319935917854309, 0.4903213381767273, -0.018241051584482193, 0.35641422867774963, -0.08710333704948425, -0.0005426686257123947, 0.07354995608329773, 0.06148943677544594, 0.2821267545223236, -0.31246209144592285, -0.19200333952903748, 0.08030775189399719, 0.035807300359010696, 0.21694864332675934, -0.171344593167305, -0.23177644610404968, 0.11268777400255203, -0.10567039251327515, 0.13347038626670837, 0.048127852380275726, 0.10151401907205582, 0.17592251300811768, 0.24109774827957153, -0.2015780210494995, -0.30067262053489685, -0.3467814028263092, 0.09949903935194016, 0.10698875039815903, 0.12585586309432983, -0.10175348073244095, 0.1422884166240692, 0.10006891191005707, 0.38488733768463135, 0.08744947612285614, -0.18287397921085358, 0.31119489669799805, 0.041156403720378876, 0.34530800580978394, -0.06182260066270828, -0.3201509416103363, 0.24499072134494781, -0.05877411365509033, 0.16679778695106506, 0.20061345398426056, -0.138237863779068, 0.08031100779771805, -0.20320935547351837, -0.0921042263507843, -0.0643962174654007, -0.4186590909957886, 0.11188489943742752, 0.007418394088745117, 0.1880878210067749, 0.20582255721092224, 0.03654564172029495, -0.194925457239151, 0.0036353394389152527, -0.009737112559378147, 0.2998482584953308, 0.010564982891082764, 0.13562056422233582, -0.1349022388458252, -0.022557903081178665, -0.3069857954978943, 0.18389999866485596, 0.23237642645835876, 0.49157029390335083, -0.027185801416635513, -0.17848053574562073, -0.21884138882160187, 0.09417741000652313, 0.1146480143070221, -0.13565577566623688, 0.18299445509910583, 0.45718249678611755, 0.06636913865804672, -0.21341358125209808, -0.17218713462352753, -0.5033161044120789, 0.13266217708587646, 0.4361288845539093, 0.06774572283029556, -0.0008686035871505737, -0.3626333177089691, 0.44441500306129456, 0.18165834248065948, -0.1891019493341446, -0.2773977518081665, -0.00007779523730278015, -0.0716031938791275, -0.3365022540092468, 0.04415205121040344, 0.09505826234817505, 0.16968657076358795, 0.226064994931221, 0.03411126509308815, 0.15535402297973633, 0.07931440323591232, 0.10816098004579544, 0.10174596309661865, -0.04151737317442894, 0.12756706774234772, 0.04135856404900551, -0.10165299475193024, 0.14901098608970642, 0.2546508014202118, 0.39374202489852905, -0.1238747239112854, -0.19405463337898254, -0.1644192934036255, 0.02992589771747589, 0.35510334372520447, 0.09709171950817108, -0.08197318762540817, 0.13341881334781647, 0.06473655998706818, 0.138114795088768, -0.24267762899398804, 0.27437829971313477, 0.29587483406066895, 0.1709005981683731, -0.3747495412826538, -0.3495921194553375, -0.029798664152622223, -0.053189732134342194, 0.15754878520965576, 0.14045263826847076, -0.061896249651908875, -0.3537500500679016, -0.07517621666193008, -0.009429492056369781, 0.5648853778839111, 0.16309881210327148, 0.28971484303474426, 0.44044986367225647, -0.08702697604894638, 0.4734363257884979, 0.17772792279720306, 0.00513028260320425, -0.24672245979309082, 0.12479473650455475, 0.022717183455824852, -0.18885360658168793, 0.20777222514152527, 0.13772401213645935, -0.24743518233299255, 0.2713084816932678, -0.038419391959905624, 0.25276798009872437, 0.06517630070447922, 0.09090237319469452, 0.3361060619354248, -0.19864816963672638, -0.40956857800483704, 0.20588059723377228, -0.41339945793151855, 0.07169878482818604, -0.24961867928504944, -0.32315754890441895, 0.15916118025779724, -0.25070348381996155, -0.2010604739189148, 0.1776944100856781, -0.25878840684890747, 0.2284643054008484, 0.02607525698840618, -0.06637336313724518, 0.4716349244117737, -0.11419859528541565, -0.1069331169128418, 0.300683856010437, -0.04713915288448334, -0.0889480859041214, -0.18885082006454468, 0.009423937648534775, -0.06973914802074432, 0.24757379293441772, 0.5000485181808472, -0.12181905657052994, -0.036887481808662415, -0.17509916424751282, -0.08124992996454239, 0.1250169724225998, 0.09171152114868164, 0.2032327651977539, 0.1998407244682312, -0.26206663250923157, -0.25989434123039246, -0.03207988291978836, -0.17729422450065613, -0.2796156406402588, 0.2072875201702118, 0.008905921131372452, -0.029169969260692596, 0.24090290069580078, 0.05255497992038727, -0.18734580278396606, -0.036457326263189316, 0.17643506824970245, -0.17674630880355835, -0.06659264862537384, 0.5022158622741699, 0.4060559868812561, -0.24060942232608795, -0.3803834021091461, 0.13189473748207092, -0.06281138956546783, -0.28858107328414917, 0.3547709584236145, 0.16884014010429382, 0.30079466104507446, 0.0165437962859869, 0.3438567519187927, 0.015720413997769356, -0.009917892515659332, 0.1101292073726654, -0.38582226634025574, -0.1822727918624878, 0.02738868072628975, -0.34248796105384827, 0.01652871072292328, 0.17335399985313416, 0.6295424699783325, 0.11228792369365692, 0.053722355514764786, -0.40095219016075134, -0.10037755966186523, -0.09295845031738281, 0.2274135798215866, 0.42836272716522217, -0.16191360354423523, -0.022742338478565216, 0.08611749112606049, 0.17600296437740326, 0.03465525060892105, -0.25261175632476807, -0.3148128092288971, -0.2940259277820587, 0.06613107025623322, 0.17201083898544312, -0.42914360761642456, 0.3799622654914856, 0.07249114662408829, -0.0009611956775188446, -0.30684810876846313, -0.17810934782028198, 0.08933690935373306, -0.13075295090675354, 0.3698423504829407, 0.12455597519874573, 0.11722402274608612, 0.1753130704164505, 0.02805411070585251, 0.12292689085006714, 0.10969956964254379, -0.006421869155019522, 0.1405479609966278, 0.034608326852321625, -0.05131957679986954, -0.19686588644981384, 0.007880285382270813, 0.08520925790071487, 0.27601158618927, 0.10006322711706161, -0.438772976398468, -0.14080946147441864, -0.19075733423233032, 0.3313595950603485, 0.49644798040390015, -0.2855861186981201, -0.017945528030395508, 0.11704516410827637, 0.2279493808746338, -0.43177956342697144, 0.09910136461257935, 0.4069509208202362, 0.0616522952914238, 0.055813271552324295, 0.16057734191417694, -0.19632533192634583, -0.026351988315582275, -0.20055074989795685, -0.015523239970207214, -0.08128728717565536, -0.24509687721729279, 0.1379796713590622, 0.2535308003425598, -0.16215519607067108, 0.07233969122171402, 0.22342942655086517, 0.22484222054481506, 0.20941311120986938, 0.44114774465560913, -0.0880136713385582, 0.033531952649354935, 0.32158350944519043, -0.19772771000862122, 0.05301930010318756, -0.41634416580200195, -0.2213226705789566, 0.004601433873176575, 0.15558458864688873, 0.04314432293176651, -0.030800893902778625, 0.08942398428916931, 0.05543147027492523, -0.04928940534591675, 0.09110884368419647, 0.18420150876045227, -0.17549791932106018, -0.00298005947843194, 0.07021335512399673, 0.10355261713266373, -0.18344441056251526, -0.20070712268352509, -0.052394021302461624, 0.02338329702615738, -0.06116586923599243, 0.0867941826581955, 0.15669389069080353, -0.550983726978302, -0.09850000590085983, 0.028402872383594513, -0.3185490667819977, -0.45628395676612854, 0.07331054657697678, 0.4109584093093872, 0.09548500925302505, -0.12038938701152802, -0.007495516911149025, 0.6174408793449402, 0.43332532048225403, -0.07646678388118744, -0.18405726552009583, -0.28093472123146057, -0.046759411692619324, -0.03220672532916069, 0.08669552206993103, 0.12169453501701355, 0.26255616545677185, 0.5520281791687012, 0.17664310336112976, -0.1991809904575348, 0.12699876725673676, 0.2516283690929413, -0.22347325086593628, -0.1569373905658722, 0.25273796916007996, -0.0195222869515419, -0.126807302236557, -0.2825402617454529, 0.1944851279258728, -0.2954164147377014, 0.1874997913837433, 0.4098544716835022, 0.2683032751083374, 0.15707290172576904, -0.10606128722429276, 0.13780978322029114, 0.18731245398521423, 0.5516355037689209, 0.19069764018058777, 0.3860902190208435, -0.35717928409576416, -0.05542862042784691, -0.5711804032325745, -0.02459009736776352, -0.10539630055427551, -0.03165190666913986, -0.14434467256069183, -0.0839930921792984, 0.03245793655514717, 0.2593311071395874, 0.19673195481300354, 0.16549889743328094, 0.10510310530662537, -0.087548166513443, -0.2856194078922272, -0.17865559458732605, 0.03775536268949509, -0.14089873433113098, 0.1282963901758194, -0.22235074639320374, -0.039765629917383194, -0.48870331048965454, 0.12653306126594543, -0.3787439465522766, -0.2208053022623062, 0.0734933465719223, 0.43571338057518005, 0.22326847910881042, 0.22655770182609558, 0.5930404663085938, -0.03177602216601372, -0.028631087392568588, -0.3275703489780426, -0.20591266453266144, -0.15453989803791046, 0.3455997109413147, 0.036304324865341187, 0.48899349570274353, -0.10716552287340164, -0.015857141464948654, -0.3778458535671234, 0.19499412178993225, -0.3336416482925415, 0.019823601469397545, -0.10277094691991806, 0.1275240182876587, -0.13816146552562714, 0.18170085549354553, 0.061118897050619125, 0.0021522343158721924, -0.1441735327243805, 0.23954461514949799, -0.38935601711273193, -0.4405488669872284, 0.5200940370559692, -0.4261542856693268, -0.6753059029579163, -0.1937555968761444, 0.04242391884326935, -0.24504807591438293, -0.14198993146419525, -0.4619942903518677, 0.06209073215723038, 0.2820001542568207, -0.06905470788478851, -0.27128085494041443, 0.37424397468566895, -0.15494224429130554, 0.02129247412085533, 0.08648073673248291, 0.2581362724304199, 0.07708090543746948, -0.2606578469276428, -0.2184218019247055, -0.23391152918338776 ]
https://github.com/huggingface/datasets/issues/156
SyntaxError with WMT datasets
Hi @patrickvonplaten! I'm now getting the below error: ``` --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-28-3206959998b9> in <module> 1 import nlp 2 ----> 3 dataset = nlp.load_dataset('wmt14') 4 print(dataset['train'][0]) ~/.local/lib/python3.6/site-packages/nlp/load.py in load_dataset(path, name, version, data_dir, data_files, split, cache_dir, download_config, download_mode, ignore_verifications, save_infos, **config_kwargs) 507 # Instantiate the dataset builder 508 builder_instance = builder_cls( --> 509 cache_dir=cache_dir, name=name, version=version, data_dir=data_dir, data_files=data_files, **config_kwargs, 510 ) 511 TypeError: Can't instantiate abstract class Wmt with abstract methods _subsets ```
The following snippet produces a syntax error: ``` import nlp dataset = nlp.load_dataset('wmt14') print(dataset['train'][0]) ``` ``` Traceback (most recent call last): File "/home/tom/.local/lib/python3.6/site-packages/IPython/core/interactiveshell.py", line 3326, in run_code exec(code_obj, self.user_global_ns, self.user_ns) File "<ipython-input-8-3206959998b9>", line 3, in <module> dataset = nlp.load_dataset('wmt14') File "/home/tom/.local/lib/python3.6/site-packages/nlp/load.py", line 505, in load_dataset builder_cls = import_main_class(module_path, dataset=True) File "/home/tom/.local/lib/python3.6/site-packages/nlp/load.py", line 56, in import_main_class module = importlib.import_module(module_path) File "/usr/lib/python3.6/importlib/__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 994, in _gcd_import File "<frozen importlib._bootstrap>", line 971, in _find_and_load File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 665, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 678, in exec_module File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed File "/home/tom/.local/lib/python3.6/site-packages/nlp/datasets/wmt14/c258d646f4f5870b0245f783b7aa0af85c7117e06aacf1e0340bd81935094de2/wmt14.py", line 21, in <module> from .wmt_utils import Wmt, WmtConfig File "/home/tom/.local/lib/python3.6/site-packages/nlp/datasets/wmt14/c258d646f4f5870b0245f783b7aa0af85c7117e06aacf1e0340bd81935094de2/wmt_utils.py", line 659 <<<<<<< HEAD ^ SyntaxError: invalid syntax ``` Python version: `3.6.9 (default, Apr 18 2020, 01:56:04) [GCC 8.4.0]` Running on Ubuntu 18.04, via a Jupyter notebook
76
SyntaxError with WMT datasets The following snippet produces a syntax error: ``` import nlp dataset = nlp.load_dataset('wmt14') print(dataset['train'][0]) ``` ``` Traceback (most recent call last): File "/home/tom/.local/lib/python3.6/site-packages/IPython/core/interactiveshell.py", line 3326, in run_code exec(code_obj, self.user_global_ns, self.user_ns) File "<ipython-input-8-3206959998b9>", line 3, in <module> dataset = nlp.load_dataset('wmt14') File "/home/tom/.local/lib/python3.6/site-packages/nlp/load.py", line 505, in load_dataset builder_cls = import_main_class(module_path, dataset=True) File "/home/tom/.local/lib/python3.6/site-packages/nlp/load.py", line 56, in import_main_class module = importlib.import_module(module_path) File "/usr/lib/python3.6/importlib/__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 994, in _gcd_import File "<frozen importlib._bootstrap>", line 971, in _find_and_load File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 665, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 678, in exec_module File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed File "/home/tom/.local/lib/python3.6/site-packages/nlp/datasets/wmt14/c258d646f4f5870b0245f783b7aa0af85c7117e06aacf1e0340bd81935094de2/wmt14.py", line 21, in <module> from .wmt_utils import Wmt, WmtConfig File "/home/tom/.local/lib/python3.6/site-packages/nlp/datasets/wmt14/c258d646f4f5870b0245f783b7aa0af85c7117e06aacf1e0340bd81935094de2/wmt_utils.py", line 659 <<<<<<< HEAD ^ SyntaxError: invalid syntax ``` Python version: `3.6.9 (default, Apr 18 2020, 01:56:04) [GCC 8.4.0]` Running on Ubuntu 18.04, via a Jupyter notebook Hi @patrickvonplaten! I'm now getting the below error: ``` --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-28-3206959998b9> in <module> 1 import nlp 2 ----> 3 dataset = nlp.load_dataset('wmt14') 4 print(dataset['train'][0]) ~/.local/lib/python3.6/site-packages/nlp/load.py in load_dataset(path, name, version, data_dir, data_files, split, cache_dir, download_config, download_mode, ignore_verifications, save_infos, **config_kwargs) 507 # Instantiate the dataset builder 508 builder_instance = builder_cls( --> 509 cache_dir=cache_dir, name=name, version=version, data_dir=data_dir, data_files=data_files, **config_kwargs, 510 ) 511 TypeError: Can't instantiate abstract class Wmt with abstract methods _subsets ```
[ -0.3297365605831146, 0.03244337439537048, -0.01935308799147606, 0.012745760381221771, 0.21647348999977112, -0.014922674745321274, 0.3609468638896942, 0.5264446139335632, 0.13015474379062653, -0.11216209828853607, 0.0932864099740982, 0.4350023567676544, -0.3767535090446472, 0.14143194258213043, 0.15087036788463593, -0.1754974126815796, -0.026802845299243927, 0.14139631390571594, -0.35863637924194336, 0.15195663273334503, -0.2946048676967621, 0.15836399793624878, -0.42096132040023804, 0.21733908355236053, -0.25428834557533264, -0.09023565798997879, -0.0211467407643795, 0.14495055377483368, -0.13945958018302917, -0.46284928917884827, 0.14080297946929932, -0.006522614508867264, 0.23899543285369873, 0.3692950904369354, -0.00010283572191838175, -0.0074910372495651245, 0.1617363542318344, -0.03901885077357292, -0.39230215549468994, -0.3421502709388733, -0.45179206132888794, -0.14813537895679474, 0.14383840560913086, -0.2942018508911133, 0.040795400738716125, -0.1019728034734726, 0.012090276926755905, -0.23356367647647858, 0.5227859020233154, 0.47097766399383545, 0.2622491419315338, 0.40465325117111206, -0.07884262502193451, -0.19955724477767944, 0.040084730833768845, 0.18680699169635773, -0.025102337822318077, 0.2721500098705292, -0.04627573490142822, -0.3078269958496094, 0.0443684458732605, 0.284417986869812, -0.09715508669614792, 0.20463255047798157, 0.22881338000297546, 0.0462171845138073, 0.17373965680599213, 0.01462288573384285, -0.13369280099868774, 0.11168860644102097, 0.3766534626483917, -0.33405089378356934, -0.19229696691036224, -0.025419846177101135, -0.02371559664607048, -0.3796643018722534, 0.17374484241008759, 0.25100788474082947, -0.24309557676315308, 0.20427744090557098, -0.28036415576934814, 0.07219225913286209, -0.04953354597091675, 0.28029268980026245, -0.04191597178578377, 0.7289191484451294, -0.1515551209449768, 0.08305162191390991, -0.03266840800642967, -0.18976740539073944, 0.11824125051498413, -0.02339347079396248, -0.0012602955102920532, 0.1437295526266098, -0.06961944699287415, -0.06889297813177109, 0.2810450494289398, -0.027393490076065063, -0.2340157926082611, 0.02677409164607525, 0.18169541656970978, -0.145949125289917, 0.19883476197719574, 0.19662776589393616, 0.2838442027568817, -0.0644872784614563, 0.03990409895777702, -0.032831065356731415, 0.2843931317329407, 0.2534208595752716, -0.02751028724014759, 0.047553084790706635, -0.17336194217205048, -0.46899211406707764, -0.025339186191558838, 0.013644108548760414, 0.595009446144104, 0.18039673566818237, -0.270100861787796, -0.028921905905008316, -0.27869993448257446, -0.30279842019081116, -0.06769765168428421, 0.20932739973068237, 0.12181972712278366, -0.16004961729049683, 0.3483573794364929, 0.07520836591720581, -0.24403321743011475, -0.16471929848194122, -0.29304760694503784, 0.34089580178260803, -0.3188338577747345, -0.16842792928218842, 0.21880857646465302, 0.22536182403564453, 0.09221291542053223, 0.047164589166641235, -0.0809149295091629, -0.19884291291236877, 0.13892871141433716, -0.007762164808809757, 0.10811705142259598, 0.10519567131996155, -0.17859524488449097, 0.09333983063697815, 0.27756035327911377, -0.10049428045749664, -0.04839938506484032, 0.20074623823165894, -0.0364861786365509, -0.08971342444419861, -0.16141408681869507, 0.28895971179008484, -0.1801726073026657, -0.09838379919528961, 0.05437998101115227, 0.07688537240028381, 0.2552025318145752, -0.08779057115316391, 0.031296759843826294, -0.3928900957107544, -0.25554314255714417, -0.16490347683429718, 0.18206846714019775, 0.47423624992370605, -0.4417523741722107, -0.19430659711360931, -0.19984155893325806, -0.11287452280521393, 0.1960725486278534, 0.16547280550003052, -0.18480809032917023, 0.6032971739768982, -0.1668521761894226, 0.1821201592683792, 0.4813288450241089, -0.2698018550872803, 0.17083173990249634, 0.06550229340791702, -0.25296127796173096, 0.07627668976783752, -0.0907965824007988, -0.04541868716478348, -0.0019623851403594017, -0.020329641178250313, 0.36855435371398926, 0.2570972442626953, -0.08682771772146225, -0.07042102515697479, 0.02580200508236885, 0.028127359226346016, 0.5934314727783203, 0.04628374055027962, -0.0008244439959526062, -0.2142312228679657, 0.05787103250622749, 0.4939415156841278, 0.24607723951339722, -0.05770692601799965, -0.03334905207157135, -0.013707075268030167, 0.017015106976032257, -0.11484473943710327, -0.33529147505760193, -0.2411738634109497, -0.223207026720047, -0.10936478525400162, 0.04783066362142563, 0.36304593086242676, -0.15240462124347687, 0.2927406430244446, -0.24383467435836792, 0.08482580631971359, -0.22529281675815582, -0.24238458275794983, 0.26310524344444275, 0.04656144231557846, -0.2522633671760559, -0.10869182646274567, -0.06863437592983246, -0.0800715833902359, 0.008836543187499046, 0.09386292845010757, -0.1322338879108429, 0.1556386947631836, -0.25798800587654114, -0.3206021189689636, 0.1305002123117447, 0.25699687004089355, 0.16543687880039215, -0.043695367872714996, -0.21404603123664856, 0.2780262231826782, 0.16491366922855377, -0.06929758191108704, -0.2854144275188446, -0.029415220022201538, -0.07430317252874374, -0.16028037667274475, 0.16514788568019867, 0.17947827279567719, 0.19708514213562012, -0.1973394751548767, -0.20750120282173157, 0.18064722418785095, -0.023483093827962875, 0.07527970522642136, 0.14891332387924194, 0.10098180919885635, 0.14578084647655487, 0.021032866090536118, 0.028500834479928017, -0.2971128821372986, 0.17801572382450104, -0.024109680205583572, -0.15059323608875275, -0.07277599722146988, -0.11883144080638885, -0.10565807670354843, 0.5293699502944946, 0.2276986837387085, 0.22410941123962402, -0.2177882194519043, -0.2621042728424072, -0.08119961619377136, 0.07825546711683273, 0.07051733136177063, 0.47997981309890747, 0.17822259664535522, -0.004178885370492935, 0.17721517384052277, -0.01566699892282486, -0.21655751764774323, 0.2168712168931961, 0.18183255195617676, 0.03313763439655304, -0.035111889243125916, 0.03854869678616524, 0.0851173847913742, -0.1735188066959381, -0.28186237812042236, -0.08428294956684113, 0.16424359381198883, -0.3306984603404999, 0.049713075160980225, -0.4721486568450928, -0.39310693740844727, -0.45145946741104126, -0.38413354754447937, -0.17399612069129944, -0.42887938022613525, -0.18676868081092834, -0.03511202707886696, -0.21731694042682648, 0.30024775862693787, -0.14047981798648834, -0.048254743218421936, 0.11018720269203186, 0.06637947261333466, 0.09884929656982422, -0.2670574486255646, -0.1530420184135437, 0.14112330973148346, 0.3205448389053345, 0.1450352668762207, 0.3701433539390564, -0.07942801713943481, 0.011153236031532288, 0.04733288288116455, -0.3408437669277191, 0.11609910428524017, -0.10098204016685486, 0.2626492381095886, 0.43248796463012695, 0.3414858281612396, 0.08383861929178238, -0.284249871969223, 0.42707300186157227, -0.06373556703329086, 0.051010385155677795, 0.049875661730766296, 0.19409632682800293, -0.1479697972536087, -0.30299490690231323, -0.4622395932674408, -0.3657282888889313, -0.4703690707683563, -0.12164190411567688, 0.1440429538488388, 0.1319935917854309, 0.4903213381767273, -0.018241051584482193, 0.35641422867774963, -0.08710333704948425, -0.0005426686257123947, 0.07354995608329773, 0.06148943677544594, 0.2821267545223236, -0.31246209144592285, -0.19200333952903748, 0.08030775189399719, 0.035807300359010696, 0.21694864332675934, -0.171344593167305, -0.23177644610404968, 0.11268777400255203, -0.10567039251327515, 0.13347038626670837, 0.048127852380275726, 0.10151401907205582, 0.17592251300811768, 0.24109774827957153, -0.2015780210494995, -0.30067262053489685, -0.3467814028263092, 0.09949903935194016, 0.10698875039815903, 0.12585586309432983, -0.10175348073244095, 0.1422884166240692, 0.10006891191005707, 0.38488733768463135, 0.08744947612285614, -0.18287397921085358, 0.31119489669799805, 0.041156403720378876, 0.34530800580978394, -0.06182260066270828, -0.3201509416103363, 0.24499072134494781, -0.05877411365509033, 0.16679778695106506, 0.20061345398426056, -0.138237863779068, 0.08031100779771805, -0.20320935547351837, -0.0921042263507843, -0.0643962174654007, -0.4186590909957886, 0.11188489943742752, 0.007418394088745117, 0.1880878210067749, 0.20582255721092224, 0.03654564172029495, -0.194925457239151, 0.0036353394389152527, -0.009737112559378147, 0.2998482584953308, 0.010564982891082764, 0.13562056422233582, -0.1349022388458252, -0.022557903081178665, -0.3069857954978943, 0.18389999866485596, 0.23237642645835876, 0.49157029390335083, -0.027185801416635513, -0.17848053574562073, -0.21884138882160187, 0.09417741000652313, 0.1146480143070221, -0.13565577566623688, 0.18299445509910583, 0.45718249678611755, 0.06636913865804672, -0.21341358125209808, -0.17218713462352753, -0.5033161044120789, 0.13266217708587646, 0.4361288845539093, 0.06774572283029556, -0.0008686035871505737, -0.3626333177089691, 0.44441500306129456, 0.18165834248065948, -0.1891019493341446, -0.2773977518081665, -0.00007779523730278015, -0.0716031938791275, -0.3365022540092468, 0.04415205121040344, 0.09505826234817505, 0.16968657076358795, 0.226064994931221, 0.03411126509308815, 0.15535402297973633, 0.07931440323591232, 0.10816098004579544, 0.10174596309661865, -0.04151737317442894, 0.12756706774234772, 0.04135856404900551, -0.10165299475193024, 0.14901098608970642, 0.2546508014202118, 0.39374202489852905, -0.1238747239112854, -0.19405463337898254, -0.1644192934036255, 0.02992589771747589, 0.35510334372520447, 0.09709171950817108, -0.08197318762540817, 0.13341881334781647, 0.06473655998706818, 0.138114795088768, -0.24267762899398804, 0.27437829971313477, 0.29587483406066895, 0.1709005981683731, -0.3747495412826538, -0.3495921194553375, -0.029798664152622223, -0.053189732134342194, 0.15754878520965576, 0.14045263826847076, -0.061896249651908875, -0.3537500500679016, -0.07517621666193008, -0.009429492056369781, 0.5648853778839111, 0.16309881210327148, 0.28971484303474426, 0.44044986367225647, -0.08702697604894638, 0.4734363257884979, 0.17772792279720306, 0.00513028260320425, -0.24672245979309082, 0.12479473650455475, 0.022717183455824852, -0.18885360658168793, 0.20777222514152527, 0.13772401213645935, -0.24743518233299255, 0.2713084816932678, -0.038419391959905624, 0.25276798009872437, 0.06517630070447922, 0.09090237319469452, 0.3361060619354248, -0.19864816963672638, -0.40956857800483704, 0.20588059723377228, -0.41339945793151855, 0.07169878482818604, -0.24961867928504944, -0.32315754890441895, 0.15916118025779724, -0.25070348381996155, -0.2010604739189148, 0.1776944100856781, -0.25878840684890747, 0.2284643054008484, 0.02607525698840618, -0.06637336313724518, 0.4716349244117737, -0.11419859528541565, -0.1069331169128418, 0.300683856010437, -0.04713915288448334, -0.0889480859041214, -0.18885082006454468, 0.009423937648534775, -0.06973914802074432, 0.24757379293441772, 0.5000485181808472, -0.12181905657052994, -0.036887481808662415, -0.17509916424751282, -0.08124992996454239, 0.1250169724225998, 0.09171152114868164, 0.2032327651977539, 0.1998407244682312, -0.26206663250923157, -0.25989434123039246, -0.03207988291978836, -0.17729422450065613, -0.2796156406402588, 0.2072875201702118, 0.008905921131372452, -0.029169969260692596, 0.24090290069580078, 0.05255497992038727, -0.18734580278396606, -0.036457326263189316, 0.17643506824970245, -0.17674630880355835, -0.06659264862537384, 0.5022158622741699, 0.4060559868812561, -0.24060942232608795, -0.3803834021091461, 0.13189473748207092, -0.06281138956546783, -0.28858107328414917, 0.3547709584236145, 0.16884014010429382, 0.30079466104507446, 0.0165437962859869, 0.3438567519187927, 0.015720413997769356, -0.009917892515659332, 0.1101292073726654, -0.38582226634025574, -0.1822727918624878, 0.02738868072628975, -0.34248796105384827, 0.01652871072292328, 0.17335399985313416, 0.6295424699783325, 0.11228792369365692, 0.053722355514764786, -0.40095219016075134, -0.10037755966186523, -0.09295845031738281, 0.2274135798215866, 0.42836272716522217, -0.16191360354423523, -0.022742338478565216, 0.08611749112606049, 0.17600296437740326, 0.03465525060892105, -0.25261175632476807, -0.3148128092288971, -0.2940259277820587, 0.06613107025623322, 0.17201083898544312, -0.42914360761642456, 0.3799622654914856, 0.07249114662408829, -0.0009611956775188446, -0.30684810876846313, -0.17810934782028198, 0.08933690935373306, -0.13075295090675354, 0.3698423504829407, 0.12455597519874573, 0.11722402274608612, 0.1753130704164505, 0.02805411070585251, 0.12292689085006714, 0.10969956964254379, -0.006421869155019522, 0.1405479609966278, 0.034608326852321625, -0.05131957679986954, -0.19686588644981384, 0.007880285382270813, 0.08520925790071487, 0.27601158618927, 0.10006322711706161, -0.438772976398468, -0.14080946147441864, -0.19075733423233032, 0.3313595950603485, 0.49644798040390015, -0.2855861186981201, -0.017945528030395508, 0.11704516410827637, 0.2279493808746338, -0.43177956342697144, 0.09910136461257935, 0.4069509208202362, 0.0616522952914238, 0.055813271552324295, 0.16057734191417694, -0.19632533192634583, -0.026351988315582275, -0.20055074989795685, -0.015523239970207214, -0.08128728717565536, -0.24509687721729279, 0.1379796713590622, 0.2535308003425598, -0.16215519607067108, 0.07233969122171402, 0.22342942655086517, 0.22484222054481506, 0.20941311120986938, 0.44114774465560913, -0.0880136713385582, 0.033531952649354935, 0.32158350944519043, -0.19772771000862122, 0.05301930010318756, -0.41634416580200195, -0.2213226705789566, 0.004601433873176575, 0.15558458864688873, 0.04314432293176651, -0.030800893902778625, 0.08942398428916931, 0.05543147027492523, -0.04928940534591675, 0.09110884368419647, 0.18420150876045227, -0.17549791932106018, -0.00298005947843194, 0.07021335512399673, 0.10355261713266373, -0.18344441056251526, -0.20070712268352509, -0.052394021302461624, 0.02338329702615738, -0.06116586923599243, 0.0867941826581955, 0.15669389069080353, -0.550983726978302, -0.09850000590085983, 0.028402872383594513, -0.3185490667819977, -0.45628395676612854, 0.07331054657697678, 0.4109584093093872, 0.09548500925302505, -0.12038938701152802, -0.007495516911149025, 0.6174408793449402, 0.43332532048225403, -0.07646678388118744, -0.18405726552009583, -0.28093472123146057, -0.046759411692619324, -0.03220672532916069, 0.08669552206993103, 0.12169453501701355, 0.26255616545677185, 0.5520281791687012, 0.17664310336112976, -0.1991809904575348, 0.12699876725673676, 0.2516283690929413, -0.22347325086593628, -0.1569373905658722, 0.25273796916007996, -0.0195222869515419, -0.126807302236557, -0.2825402617454529, 0.1944851279258728, -0.2954164147377014, 0.1874997913837433, 0.4098544716835022, 0.2683032751083374, 0.15707290172576904, -0.10606128722429276, 0.13780978322029114, 0.18731245398521423, 0.5516355037689209, 0.19069764018058777, 0.3860902190208435, -0.35717928409576416, -0.05542862042784691, -0.5711804032325745, -0.02459009736776352, -0.10539630055427551, -0.03165190666913986, -0.14434467256069183, -0.0839930921792984, 0.03245793655514717, 0.2593311071395874, 0.19673195481300354, 0.16549889743328094, 0.10510310530662537, -0.087548166513443, -0.2856194078922272, -0.17865559458732605, 0.03775536268949509, -0.14089873433113098, 0.1282963901758194, -0.22235074639320374, -0.039765629917383194, -0.48870331048965454, 0.12653306126594543, -0.3787439465522766, -0.2208053022623062, 0.0734933465719223, 0.43571338057518005, 0.22326847910881042, 0.22655770182609558, 0.5930404663085938, -0.03177602216601372, -0.028631087392568588, -0.3275703489780426, -0.20591266453266144, -0.15453989803791046, 0.3455997109413147, 0.036304324865341187, 0.48899349570274353, -0.10716552287340164, -0.015857141464948654, -0.3778458535671234, 0.19499412178993225, -0.3336416482925415, 0.019823601469397545, -0.10277094691991806, 0.1275240182876587, -0.13816146552562714, 0.18170085549354553, 0.061118897050619125, 0.0021522343158721924, -0.1441735327243805, 0.23954461514949799, -0.38935601711273193, -0.4405488669872284, 0.5200940370559692, -0.4261542856693268, -0.6753059029579163, -0.1937555968761444, 0.04242391884326935, -0.24504807591438293, -0.14198993146419525, -0.4619942903518677, 0.06209073215723038, 0.2820001542568207, -0.06905470788478851, -0.27128085494041443, 0.37424397468566895, -0.15494224429130554, 0.02129247412085533, 0.08648073673248291, 0.2581362724304199, 0.07708090543746948, -0.2606578469276428, -0.2184218019247055, -0.23391152918338776 ]
https://github.com/huggingface/datasets/issues/156
SyntaxError with WMT datasets
To correct this error I think you need the master branch of `nlp`. Can you try to install `nlp` with. `WMT` was not included at the beta release of the library. Can you try: `pip install git+https://github.com/huggingface/nlp.git` and check again?
The following snippet produces a syntax error: ``` import nlp dataset = nlp.load_dataset('wmt14') print(dataset['train'][0]) ``` ``` Traceback (most recent call last): File "/home/tom/.local/lib/python3.6/site-packages/IPython/core/interactiveshell.py", line 3326, in run_code exec(code_obj, self.user_global_ns, self.user_ns) File "<ipython-input-8-3206959998b9>", line 3, in <module> dataset = nlp.load_dataset('wmt14') File "/home/tom/.local/lib/python3.6/site-packages/nlp/load.py", line 505, in load_dataset builder_cls = import_main_class(module_path, dataset=True) File "/home/tom/.local/lib/python3.6/site-packages/nlp/load.py", line 56, in import_main_class module = importlib.import_module(module_path) File "/usr/lib/python3.6/importlib/__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 994, in _gcd_import File "<frozen importlib._bootstrap>", line 971, in _find_and_load File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 665, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 678, in exec_module File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed File "/home/tom/.local/lib/python3.6/site-packages/nlp/datasets/wmt14/c258d646f4f5870b0245f783b7aa0af85c7117e06aacf1e0340bd81935094de2/wmt14.py", line 21, in <module> from .wmt_utils import Wmt, WmtConfig File "/home/tom/.local/lib/python3.6/site-packages/nlp/datasets/wmt14/c258d646f4f5870b0245f783b7aa0af85c7117e06aacf1e0340bd81935094de2/wmt_utils.py", line 659 <<<<<<< HEAD ^ SyntaxError: invalid syntax ``` Python version: `3.6.9 (default, Apr 18 2020, 01:56:04) [GCC 8.4.0]` Running on Ubuntu 18.04, via a Jupyter notebook
40
SyntaxError with WMT datasets The following snippet produces a syntax error: ``` import nlp dataset = nlp.load_dataset('wmt14') print(dataset['train'][0]) ``` ``` Traceback (most recent call last): File "/home/tom/.local/lib/python3.6/site-packages/IPython/core/interactiveshell.py", line 3326, in run_code exec(code_obj, self.user_global_ns, self.user_ns) File "<ipython-input-8-3206959998b9>", line 3, in <module> dataset = nlp.load_dataset('wmt14') File "/home/tom/.local/lib/python3.6/site-packages/nlp/load.py", line 505, in load_dataset builder_cls = import_main_class(module_path, dataset=True) File "/home/tom/.local/lib/python3.6/site-packages/nlp/load.py", line 56, in import_main_class module = importlib.import_module(module_path) File "/usr/lib/python3.6/importlib/__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 994, in _gcd_import File "<frozen importlib._bootstrap>", line 971, in _find_and_load File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 665, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 678, in exec_module File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed File "/home/tom/.local/lib/python3.6/site-packages/nlp/datasets/wmt14/c258d646f4f5870b0245f783b7aa0af85c7117e06aacf1e0340bd81935094de2/wmt14.py", line 21, in <module> from .wmt_utils import Wmt, WmtConfig File "/home/tom/.local/lib/python3.6/site-packages/nlp/datasets/wmt14/c258d646f4f5870b0245f783b7aa0af85c7117e06aacf1e0340bd81935094de2/wmt_utils.py", line 659 <<<<<<< HEAD ^ SyntaxError: invalid syntax ``` Python version: `3.6.9 (default, Apr 18 2020, 01:56:04) [GCC 8.4.0]` Running on Ubuntu 18.04, via a Jupyter notebook To correct this error I think you need the master branch of `nlp`. Can you try to install `nlp` with. `WMT` was not included at the beta release of the library. Can you try: `pip install git+https://github.com/huggingface/nlp.git` and check again?
[ -0.3297365605831146, 0.03244337439537048, -0.01935308799147606, 0.012745760381221771, 0.21647348999977112, -0.014922674745321274, 0.3609468638896942, 0.5264446139335632, 0.13015474379062653, -0.11216209828853607, 0.0932864099740982, 0.4350023567676544, -0.3767535090446472, 0.14143194258213043, 0.15087036788463593, -0.1754974126815796, -0.026802845299243927, 0.14139631390571594, -0.35863637924194336, 0.15195663273334503, -0.2946048676967621, 0.15836399793624878, -0.42096132040023804, 0.21733908355236053, -0.25428834557533264, -0.09023565798997879, -0.0211467407643795, 0.14495055377483368, -0.13945958018302917, -0.46284928917884827, 0.14080297946929932, -0.006522614508867264, 0.23899543285369873, 0.3692950904369354, -0.00010283572191838175, -0.0074910372495651245, 0.1617363542318344, -0.03901885077357292, -0.39230215549468994, -0.3421502709388733, -0.45179206132888794, -0.14813537895679474, 0.14383840560913086, -0.2942018508911133, 0.040795400738716125, -0.1019728034734726, 0.012090276926755905, -0.23356367647647858, 0.5227859020233154, 0.47097766399383545, 0.2622491419315338, 0.40465325117111206, -0.07884262502193451, -0.19955724477767944, 0.040084730833768845, 0.18680699169635773, -0.025102337822318077, 0.2721500098705292, -0.04627573490142822, -0.3078269958496094, 0.0443684458732605, 0.284417986869812, -0.09715508669614792, 0.20463255047798157, 0.22881338000297546, 0.0462171845138073, 0.17373965680599213, 0.01462288573384285, -0.13369280099868774, 0.11168860644102097, 0.3766534626483917, -0.33405089378356934, -0.19229696691036224, -0.025419846177101135, -0.02371559664607048, -0.3796643018722534, 0.17374484241008759, 0.25100788474082947, -0.24309557676315308, 0.20427744090557098, -0.28036415576934814, 0.07219225913286209, -0.04953354597091675, 0.28029268980026245, -0.04191597178578377, 0.7289191484451294, -0.1515551209449768, 0.08305162191390991, -0.03266840800642967, -0.18976740539073944, 0.11824125051498413, -0.02339347079396248, -0.0012602955102920532, 0.1437295526266098, -0.06961944699287415, -0.06889297813177109, 0.2810450494289398, -0.027393490076065063, -0.2340157926082611, 0.02677409164607525, 0.18169541656970978, -0.145949125289917, 0.19883476197719574, 0.19662776589393616, 0.2838442027568817, -0.0644872784614563, 0.03990409895777702, -0.032831065356731415, 0.2843931317329407, 0.2534208595752716, -0.02751028724014759, 0.047553084790706635, -0.17336194217205048, -0.46899211406707764, -0.025339186191558838, 0.013644108548760414, 0.595009446144104, 0.18039673566818237, -0.270100861787796, -0.028921905905008316, -0.27869993448257446, -0.30279842019081116, -0.06769765168428421, 0.20932739973068237, 0.12181972712278366, -0.16004961729049683, 0.3483573794364929, 0.07520836591720581, -0.24403321743011475, -0.16471929848194122, -0.29304760694503784, 0.34089580178260803, -0.3188338577747345, -0.16842792928218842, 0.21880857646465302, 0.22536182403564453, 0.09221291542053223, 0.047164589166641235, -0.0809149295091629, -0.19884291291236877, 0.13892871141433716, -0.007762164808809757, 0.10811705142259598, 0.10519567131996155, -0.17859524488449097, 0.09333983063697815, 0.27756035327911377, -0.10049428045749664, -0.04839938506484032, 0.20074623823165894, -0.0364861786365509, -0.08971342444419861, -0.16141408681869507, 0.28895971179008484, -0.1801726073026657, -0.09838379919528961, 0.05437998101115227, 0.07688537240028381, 0.2552025318145752, -0.08779057115316391, 0.031296759843826294, -0.3928900957107544, -0.25554314255714417, -0.16490347683429718, 0.18206846714019775, 0.47423624992370605, -0.4417523741722107, -0.19430659711360931, -0.19984155893325806, -0.11287452280521393, 0.1960725486278534, 0.16547280550003052, -0.18480809032917023, 0.6032971739768982, -0.1668521761894226, 0.1821201592683792, 0.4813288450241089, -0.2698018550872803, 0.17083173990249634, 0.06550229340791702, -0.25296127796173096, 0.07627668976783752, -0.0907965824007988, -0.04541868716478348, -0.0019623851403594017, -0.020329641178250313, 0.36855435371398926, 0.2570972442626953, -0.08682771772146225, -0.07042102515697479, 0.02580200508236885, 0.028127359226346016, 0.5934314727783203, 0.04628374055027962, -0.0008244439959526062, -0.2142312228679657, 0.05787103250622749, 0.4939415156841278, 0.24607723951339722, -0.05770692601799965, -0.03334905207157135, -0.013707075268030167, 0.017015106976032257, -0.11484473943710327, -0.33529147505760193, -0.2411738634109497, -0.223207026720047, -0.10936478525400162, 0.04783066362142563, 0.36304593086242676, -0.15240462124347687, 0.2927406430244446, -0.24383467435836792, 0.08482580631971359, -0.22529281675815582, -0.24238458275794983, 0.26310524344444275, 0.04656144231557846, -0.2522633671760559, -0.10869182646274567, -0.06863437592983246, -0.0800715833902359, 0.008836543187499046, 0.09386292845010757, -0.1322338879108429, 0.1556386947631836, -0.25798800587654114, -0.3206021189689636, 0.1305002123117447, 0.25699687004089355, 0.16543687880039215, -0.043695367872714996, -0.21404603123664856, 0.2780262231826782, 0.16491366922855377, -0.06929758191108704, -0.2854144275188446, -0.029415220022201538, -0.07430317252874374, -0.16028037667274475, 0.16514788568019867, 0.17947827279567719, 0.19708514213562012, -0.1973394751548767, -0.20750120282173157, 0.18064722418785095, -0.023483093827962875, 0.07527970522642136, 0.14891332387924194, 0.10098180919885635, 0.14578084647655487, 0.021032866090536118, 0.028500834479928017, -0.2971128821372986, 0.17801572382450104, -0.024109680205583572, -0.15059323608875275, -0.07277599722146988, -0.11883144080638885, -0.10565807670354843, 0.5293699502944946, 0.2276986837387085, 0.22410941123962402, -0.2177882194519043, -0.2621042728424072, -0.08119961619377136, 0.07825546711683273, 0.07051733136177063, 0.47997981309890747, 0.17822259664535522, -0.004178885370492935, 0.17721517384052277, -0.01566699892282486, -0.21655751764774323, 0.2168712168931961, 0.18183255195617676, 0.03313763439655304, -0.035111889243125916, 0.03854869678616524, 0.0851173847913742, -0.1735188066959381, -0.28186237812042236, -0.08428294956684113, 0.16424359381198883, -0.3306984603404999, 0.049713075160980225, -0.4721486568450928, -0.39310693740844727, -0.45145946741104126, -0.38413354754447937, -0.17399612069129944, -0.42887938022613525, -0.18676868081092834, -0.03511202707886696, -0.21731694042682648, 0.30024775862693787, -0.14047981798648834, -0.048254743218421936, 0.11018720269203186, 0.06637947261333466, 0.09884929656982422, -0.2670574486255646, -0.1530420184135437, 0.14112330973148346, 0.3205448389053345, 0.1450352668762207, 0.3701433539390564, -0.07942801713943481, 0.011153236031532288, 0.04733288288116455, -0.3408437669277191, 0.11609910428524017, -0.10098204016685486, 0.2626492381095886, 0.43248796463012695, 0.3414858281612396, 0.08383861929178238, -0.284249871969223, 0.42707300186157227, -0.06373556703329086, 0.051010385155677795, 0.049875661730766296, 0.19409632682800293, -0.1479697972536087, -0.30299490690231323, -0.4622395932674408, -0.3657282888889313, -0.4703690707683563, -0.12164190411567688, 0.1440429538488388, 0.1319935917854309, 0.4903213381767273, -0.018241051584482193, 0.35641422867774963, -0.08710333704948425, -0.0005426686257123947, 0.07354995608329773, 0.06148943677544594, 0.2821267545223236, -0.31246209144592285, -0.19200333952903748, 0.08030775189399719, 0.035807300359010696, 0.21694864332675934, -0.171344593167305, -0.23177644610404968, 0.11268777400255203, -0.10567039251327515, 0.13347038626670837, 0.048127852380275726, 0.10151401907205582, 0.17592251300811768, 0.24109774827957153, -0.2015780210494995, -0.30067262053489685, -0.3467814028263092, 0.09949903935194016, 0.10698875039815903, 0.12585586309432983, -0.10175348073244095, 0.1422884166240692, 0.10006891191005707, 0.38488733768463135, 0.08744947612285614, -0.18287397921085358, 0.31119489669799805, 0.041156403720378876, 0.34530800580978394, -0.06182260066270828, -0.3201509416103363, 0.24499072134494781, -0.05877411365509033, 0.16679778695106506, 0.20061345398426056, -0.138237863779068, 0.08031100779771805, -0.20320935547351837, -0.0921042263507843, -0.0643962174654007, -0.4186590909957886, 0.11188489943742752, 0.007418394088745117, 0.1880878210067749, 0.20582255721092224, 0.03654564172029495, -0.194925457239151, 0.0036353394389152527, -0.009737112559378147, 0.2998482584953308, 0.010564982891082764, 0.13562056422233582, -0.1349022388458252, -0.022557903081178665, -0.3069857954978943, 0.18389999866485596, 0.23237642645835876, 0.49157029390335083, -0.027185801416635513, -0.17848053574562073, -0.21884138882160187, 0.09417741000652313, 0.1146480143070221, -0.13565577566623688, 0.18299445509910583, 0.45718249678611755, 0.06636913865804672, -0.21341358125209808, -0.17218713462352753, -0.5033161044120789, 0.13266217708587646, 0.4361288845539093, 0.06774572283029556, -0.0008686035871505737, -0.3626333177089691, 0.44441500306129456, 0.18165834248065948, -0.1891019493341446, -0.2773977518081665, -0.00007779523730278015, -0.0716031938791275, -0.3365022540092468, 0.04415205121040344, 0.09505826234817505, 0.16968657076358795, 0.226064994931221, 0.03411126509308815, 0.15535402297973633, 0.07931440323591232, 0.10816098004579544, 0.10174596309661865, -0.04151737317442894, 0.12756706774234772, 0.04135856404900551, -0.10165299475193024, 0.14901098608970642, 0.2546508014202118, 0.39374202489852905, -0.1238747239112854, -0.19405463337898254, -0.1644192934036255, 0.02992589771747589, 0.35510334372520447, 0.09709171950817108, -0.08197318762540817, 0.13341881334781647, 0.06473655998706818, 0.138114795088768, -0.24267762899398804, 0.27437829971313477, 0.29587483406066895, 0.1709005981683731, -0.3747495412826538, -0.3495921194553375, -0.029798664152622223, -0.053189732134342194, 0.15754878520965576, 0.14045263826847076, -0.061896249651908875, -0.3537500500679016, -0.07517621666193008, -0.009429492056369781, 0.5648853778839111, 0.16309881210327148, 0.28971484303474426, 0.44044986367225647, -0.08702697604894638, 0.4734363257884979, 0.17772792279720306, 0.00513028260320425, -0.24672245979309082, 0.12479473650455475, 0.022717183455824852, -0.18885360658168793, 0.20777222514152527, 0.13772401213645935, -0.24743518233299255, 0.2713084816932678, -0.038419391959905624, 0.25276798009872437, 0.06517630070447922, 0.09090237319469452, 0.3361060619354248, -0.19864816963672638, -0.40956857800483704, 0.20588059723377228, -0.41339945793151855, 0.07169878482818604, -0.24961867928504944, -0.32315754890441895, 0.15916118025779724, -0.25070348381996155, -0.2010604739189148, 0.1776944100856781, -0.25878840684890747, 0.2284643054008484, 0.02607525698840618, -0.06637336313724518, 0.4716349244117737, -0.11419859528541565, -0.1069331169128418, 0.300683856010437, -0.04713915288448334, -0.0889480859041214, -0.18885082006454468, 0.009423937648534775, -0.06973914802074432, 0.24757379293441772, 0.5000485181808472, -0.12181905657052994, -0.036887481808662415, -0.17509916424751282, -0.08124992996454239, 0.1250169724225998, 0.09171152114868164, 0.2032327651977539, 0.1998407244682312, -0.26206663250923157, -0.25989434123039246, -0.03207988291978836, -0.17729422450065613, -0.2796156406402588, 0.2072875201702118, 0.008905921131372452, -0.029169969260692596, 0.24090290069580078, 0.05255497992038727, -0.18734580278396606, -0.036457326263189316, 0.17643506824970245, -0.17674630880355835, -0.06659264862537384, 0.5022158622741699, 0.4060559868812561, -0.24060942232608795, -0.3803834021091461, 0.13189473748207092, -0.06281138956546783, -0.28858107328414917, 0.3547709584236145, 0.16884014010429382, 0.30079466104507446, 0.0165437962859869, 0.3438567519187927, 0.015720413997769356, -0.009917892515659332, 0.1101292073726654, -0.38582226634025574, -0.1822727918624878, 0.02738868072628975, -0.34248796105384827, 0.01652871072292328, 0.17335399985313416, 0.6295424699783325, 0.11228792369365692, 0.053722355514764786, -0.40095219016075134, -0.10037755966186523, -0.09295845031738281, 0.2274135798215866, 0.42836272716522217, -0.16191360354423523, -0.022742338478565216, 0.08611749112606049, 0.17600296437740326, 0.03465525060892105, -0.25261175632476807, -0.3148128092288971, -0.2940259277820587, 0.06613107025623322, 0.17201083898544312, -0.42914360761642456, 0.3799622654914856, 0.07249114662408829, -0.0009611956775188446, -0.30684810876846313, -0.17810934782028198, 0.08933690935373306, -0.13075295090675354, 0.3698423504829407, 0.12455597519874573, 0.11722402274608612, 0.1753130704164505, 0.02805411070585251, 0.12292689085006714, 0.10969956964254379, -0.006421869155019522, 0.1405479609966278, 0.034608326852321625, -0.05131957679986954, -0.19686588644981384, 0.007880285382270813, 0.08520925790071487, 0.27601158618927, 0.10006322711706161, -0.438772976398468, -0.14080946147441864, -0.19075733423233032, 0.3313595950603485, 0.49644798040390015, -0.2855861186981201, -0.017945528030395508, 0.11704516410827637, 0.2279493808746338, -0.43177956342697144, 0.09910136461257935, 0.4069509208202362, 0.0616522952914238, 0.055813271552324295, 0.16057734191417694, -0.19632533192634583, -0.026351988315582275, -0.20055074989795685, -0.015523239970207214, -0.08128728717565536, -0.24509687721729279, 0.1379796713590622, 0.2535308003425598, -0.16215519607067108, 0.07233969122171402, 0.22342942655086517, 0.22484222054481506, 0.20941311120986938, 0.44114774465560913, -0.0880136713385582, 0.033531952649354935, 0.32158350944519043, -0.19772771000862122, 0.05301930010318756, -0.41634416580200195, -0.2213226705789566, 0.004601433873176575, 0.15558458864688873, 0.04314432293176651, -0.030800893902778625, 0.08942398428916931, 0.05543147027492523, -0.04928940534591675, 0.09110884368419647, 0.18420150876045227, -0.17549791932106018, -0.00298005947843194, 0.07021335512399673, 0.10355261713266373, -0.18344441056251526, -0.20070712268352509, -0.052394021302461624, 0.02338329702615738, -0.06116586923599243, 0.0867941826581955, 0.15669389069080353, -0.550983726978302, -0.09850000590085983, 0.028402872383594513, -0.3185490667819977, -0.45628395676612854, 0.07331054657697678, 0.4109584093093872, 0.09548500925302505, -0.12038938701152802, -0.007495516911149025, 0.6174408793449402, 0.43332532048225403, -0.07646678388118744, -0.18405726552009583, -0.28093472123146057, -0.046759411692619324, -0.03220672532916069, 0.08669552206993103, 0.12169453501701355, 0.26255616545677185, 0.5520281791687012, 0.17664310336112976, -0.1991809904575348, 0.12699876725673676, 0.2516283690929413, -0.22347325086593628, -0.1569373905658722, 0.25273796916007996, -0.0195222869515419, -0.126807302236557, -0.2825402617454529, 0.1944851279258728, -0.2954164147377014, 0.1874997913837433, 0.4098544716835022, 0.2683032751083374, 0.15707290172576904, -0.10606128722429276, 0.13780978322029114, 0.18731245398521423, 0.5516355037689209, 0.19069764018058777, 0.3860902190208435, -0.35717928409576416, -0.05542862042784691, -0.5711804032325745, -0.02459009736776352, -0.10539630055427551, -0.03165190666913986, -0.14434467256069183, -0.0839930921792984, 0.03245793655514717, 0.2593311071395874, 0.19673195481300354, 0.16549889743328094, 0.10510310530662537, -0.087548166513443, -0.2856194078922272, -0.17865559458732605, 0.03775536268949509, -0.14089873433113098, 0.1282963901758194, -0.22235074639320374, -0.039765629917383194, -0.48870331048965454, 0.12653306126594543, -0.3787439465522766, -0.2208053022623062, 0.0734933465719223, 0.43571338057518005, 0.22326847910881042, 0.22655770182609558, 0.5930404663085938, -0.03177602216601372, -0.028631087392568588, -0.3275703489780426, -0.20591266453266144, -0.15453989803791046, 0.3455997109413147, 0.036304324865341187, 0.48899349570274353, -0.10716552287340164, -0.015857141464948654, -0.3778458535671234, 0.19499412178993225, -0.3336416482925415, 0.019823601469397545, -0.10277094691991806, 0.1275240182876587, -0.13816146552562714, 0.18170085549354553, 0.061118897050619125, 0.0021522343158721924, -0.1441735327243805, 0.23954461514949799, -0.38935601711273193, -0.4405488669872284, 0.5200940370559692, -0.4261542856693268, -0.6753059029579163, -0.1937555968761444, 0.04242391884326935, -0.24504807591438293, -0.14198993146419525, -0.4619942903518677, 0.06209073215723038, 0.2820001542568207, -0.06905470788478851, -0.27128085494041443, 0.37424397468566895, -0.15494224429130554, 0.02129247412085533, 0.08648073673248291, 0.2581362724304199, 0.07708090543746948, -0.2606578469276428, -0.2184218019247055, -0.23391152918338776 ]
https://github.com/huggingface/datasets/issues/156
SyntaxError with WMT datasets
That works, thanks :) The WMT datasets are listed in by `list_datasets()` in the beta release on pypi - it would be good to only show datasets that are actually supported by that version?
The following snippet produces a syntax error: ``` import nlp dataset = nlp.load_dataset('wmt14') print(dataset['train'][0]) ``` ``` Traceback (most recent call last): File "/home/tom/.local/lib/python3.6/site-packages/IPython/core/interactiveshell.py", line 3326, in run_code exec(code_obj, self.user_global_ns, self.user_ns) File "<ipython-input-8-3206959998b9>", line 3, in <module> dataset = nlp.load_dataset('wmt14') File "/home/tom/.local/lib/python3.6/site-packages/nlp/load.py", line 505, in load_dataset builder_cls = import_main_class(module_path, dataset=True) File "/home/tom/.local/lib/python3.6/site-packages/nlp/load.py", line 56, in import_main_class module = importlib.import_module(module_path) File "/usr/lib/python3.6/importlib/__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 994, in _gcd_import File "<frozen importlib._bootstrap>", line 971, in _find_and_load File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 665, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 678, in exec_module File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed File "/home/tom/.local/lib/python3.6/site-packages/nlp/datasets/wmt14/c258d646f4f5870b0245f783b7aa0af85c7117e06aacf1e0340bd81935094de2/wmt14.py", line 21, in <module> from .wmt_utils import Wmt, WmtConfig File "/home/tom/.local/lib/python3.6/site-packages/nlp/datasets/wmt14/c258d646f4f5870b0245f783b7aa0af85c7117e06aacf1e0340bd81935094de2/wmt_utils.py", line 659 <<<<<<< HEAD ^ SyntaxError: invalid syntax ``` Python version: `3.6.9 (default, Apr 18 2020, 01:56:04) [GCC 8.4.0]` Running on Ubuntu 18.04, via a Jupyter notebook
34
SyntaxError with WMT datasets The following snippet produces a syntax error: ``` import nlp dataset = nlp.load_dataset('wmt14') print(dataset['train'][0]) ``` ``` Traceback (most recent call last): File "/home/tom/.local/lib/python3.6/site-packages/IPython/core/interactiveshell.py", line 3326, in run_code exec(code_obj, self.user_global_ns, self.user_ns) File "<ipython-input-8-3206959998b9>", line 3, in <module> dataset = nlp.load_dataset('wmt14') File "/home/tom/.local/lib/python3.6/site-packages/nlp/load.py", line 505, in load_dataset builder_cls = import_main_class(module_path, dataset=True) File "/home/tom/.local/lib/python3.6/site-packages/nlp/load.py", line 56, in import_main_class module = importlib.import_module(module_path) File "/usr/lib/python3.6/importlib/__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 994, in _gcd_import File "<frozen importlib._bootstrap>", line 971, in _find_and_load File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 665, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 678, in exec_module File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed File "/home/tom/.local/lib/python3.6/site-packages/nlp/datasets/wmt14/c258d646f4f5870b0245f783b7aa0af85c7117e06aacf1e0340bd81935094de2/wmt14.py", line 21, in <module> from .wmt_utils import Wmt, WmtConfig File "/home/tom/.local/lib/python3.6/site-packages/nlp/datasets/wmt14/c258d646f4f5870b0245f783b7aa0af85c7117e06aacf1e0340bd81935094de2/wmt_utils.py", line 659 <<<<<<< HEAD ^ SyntaxError: invalid syntax ``` Python version: `3.6.9 (default, Apr 18 2020, 01:56:04) [GCC 8.4.0]` Running on Ubuntu 18.04, via a Jupyter notebook That works, thanks :) The WMT datasets are listed in by `list_datasets()` in the beta release on pypi - it would be good to only show datasets that are actually supported by that version?
[ -0.3297365605831146, 0.03244337439537048, -0.01935308799147606, 0.012745760381221771, 0.21647348999977112, -0.014922674745321274, 0.3609468638896942, 0.5264446139335632, 0.13015474379062653, -0.11216209828853607, 0.0932864099740982, 0.4350023567676544, -0.3767535090446472, 0.14143194258213043, 0.15087036788463593, -0.1754974126815796, -0.026802845299243927, 0.14139631390571594, -0.35863637924194336, 0.15195663273334503, -0.2946048676967621, 0.15836399793624878, -0.42096132040023804, 0.21733908355236053, -0.25428834557533264, -0.09023565798997879, -0.0211467407643795, 0.14495055377483368, -0.13945958018302917, -0.46284928917884827, 0.14080297946929932, -0.006522614508867264, 0.23899543285369873, 0.3692950904369354, -0.00010283572191838175, -0.0074910372495651245, 0.1617363542318344, -0.03901885077357292, -0.39230215549468994, -0.3421502709388733, -0.45179206132888794, -0.14813537895679474, 0.14383840560913086, -0.2942018508911133, 0.040795400738716125, -0.1019728034734726, 0.012090276926755905, -0.23356367647647858, 0.5227859020233154, 0.47097766399383545, 0.2622491419315338, 0.40465325117111206, -0.07884262502193451, -0.19955724477767944, 0.040084730833768845, 0.18680699169635773, -0.025102337822318077, 0.2721500098705292, -0.04627573490142822, -0.3078269958496094, 0.0443684458732605, 0.284417986869812, -0.09715508669614792, 0.20463255047798157, 0.22881338000297546, 0.0462171845138073, 0.17373965680599213, 0.01462288573384285, -0.13369280099868774, 0.11168860644102097, 0.3766534626483917, -0.33405089378356934, -0.19229696691036224, -0.025419846177101135, -0.02371559664607048, -0.3796643018722534, 0.17374484241008759, 0.25100788474082947, -0.24309557676315308, 0.20427744090557098, -0.28036415576934814, 0.07219225913286209, -0.04953354597091675, 0.28029268980026245, -0.04191597178578377, 0.7289191484451294, -0.1515551209449768, 0.08305162191390991, -0.03266840800642967, -0.18976740539073944, 0.11824125051498413, -0.02339347079396248, -0.0012602955102920532, 0.1437295526266098, -0.06961944699287415, -0.06889297813177109, 0.2810450494289398, -0.027393490076065063, -0.2340157926082611, 0.02677409164607525, 0.18169541656970978, -0.145949125289917, 0.19883476197719574, 0.19662776589393616, 0.2838442027568817, -0.0644872784614563, 0.03990409895777702, -0.032831065356731415, 0.2843931317329407, 0.2534208595752716, -0.02751028724014759, 0.047553084790706635, -0.17336194217205048, -0.46899211406707764, -0.025339186191558838, 0.013644108548760414, 0.595009446144104, 0.18039673566818237, -0.270100861787796, -0.028921905905008316, -0.27869993448257446, -0.30279842019081116, -0.06769765168428421, 0.20932739973068237, 0.12181972712278366, -0.16004961729049683, 0.3483573794364929, 0.07520836591720581, -0.24403321743011475, -0.16471929848194122, -0.29304760694503784, 0.34089580178260803, -0.3188338577747345, -0.16842792928218842, 0.21880857646465302, 0.22536182403564453, 0.09221291542053223, 0.047164589166641235, -0.0809149295091629, -0.19884291291236877, 0.13892871141433716, -0.007762164808809757, 0.10811705142259598, 0.10519567131996155, -0.17859524488449097, 0.09333983063697815, 0.27756035327911377, -0.10049428045749664, -0.04839938506484032, 0.20074623823165894, -0.0364861786365509, -0.08971342444419861, -0.16141408681869507, 0.28895971179008484, -0.1801726073026657, -0.09838379919528961, 0.05437998101115227, 0.07688537240028381, 0.2552025318145752, -0.08779057115316391, 0.031296759843826294, -0.3928900957107544, -0.25554314255714417, -0.16490347683429718, 0.18206846714019775, 0.47423624992370605, -0.4417523741722107, -0.19430659711360931, -0.19984155893325806, -0.11287452280521393, 0.1960725486278534, 0.16547280550003052, -0.18480809032917023, 0.6032971739768982, -0.1668521761894226, 0.1821201592683792, 0.4813288450241089, -0.2698018550872803, 0.17083173990249634, 0.06550229340791702, -0.25296127796173096, 0.07627668976783752, -0.0907965824007988, -0.04541868716478348, -0.0019623851403594017, -0.020329641178250313, 0.36855435371398926, 0.2570972442626953, -0.08682771772146225, -0.07042102515697479, 0.02580200508236885, 0.028127359226346016, 0.5934314727783203, 0.04628374055027962, -0.0008244439959526062, -0.2142312228679657, 0.05787103250622749, 0.4939415156841278, 0.24607723951339722, -0.05770692601799965, -0.03334905207157135, -0.013707075268030167, 0.017015106976032257, -0.11484473943710327, -0.33529147505760193, -0.2411738634109497, -0.223207026720047, -0.10936478525400162, 0.04783066362142563, 0.36304593086242676, -0.15240462124347687, 0.2927406430244446, -0.24383467435836792, 0.08482580631971359, -0.22529281675815582, -0.24238458275794983, 0.26310524344444275, 0.04656144231557846, -0.2522633671760559, -0.10869182646274567, -0.06863437592983246, -0.0800715833902359, 0.008836543187499046, 0.09386292845010757, -0.1322338879108429, 0.1556386947631836, -0.25798800587654114, -0.3206021189689636, 0.1305002123117447, 0.25699687004089355, 0.16543687880039215, -0.043695367872714996, -0.21404603123664856, 0.2780262231826782, 0.16491366922855377, -0.06929758191108704, -0.2854144275188446, -0.029415220022201538, -0.07430317252874374, -0.16028037667274475, 0.16514788568019867, 0.17947827279567719, 0.19708514213562012, -0.1973394751548767, -0.20750120282173157, 0.18064722418785095, -0.023483093827962875, 0.07527970522642136, 0.14891332387924194, 0.10098180919885635, 0.14578084647655487, 0.021032866090536118, 0.028500834479928017, -0.2971128821372986, 0.17801572382450104, -0.024109680205583572, -0.15059323608875275, -0.07277599722146988, -0.11883144080638885, -0.10565807670354843, 0.5293699502944946, 0.2276986837387085, 0.22410941123962402, -0.2177882194519043, -0.2621042728424072, -0.08119961619377136, 0.07825546711683273, 0.07051733136177063, 0.47997981309890747, 0.17822259664535522, -0.004178885370492935, 0.17721517384052277, -0.01566699892282486, -0.21655751764774323, 0.2168712168931961, 0.18183255195617676, 0.03313763439655304, -0.035111889243125916, 0.03854869678616524, 0.0851173847913742, -0.1735188066959381, -0.28186237812042236, -0.08428294956684113, 0.16424359381198883, -0.3306984603404999, 0.049713075160980225, -0.4721486568450928, -0.39310693740844727, -0.45145946741104126, -0.38413354754447937, -0.17399612069129944, -0.42887938022613525, -0.18676868081092834, -0.03511202707886696, -0.21731694042682648, 0.30024775862693787, -0.14047981798648834, -0.048254743218421936, 0.11018720269203186, 0.06637947261333466, 0.09884929656982422, -0.2670574486255646, -0.1530420184135437, 0.14112330973148346, 0.3205448389053345, 0.1450352668762207, 0.3701433539390564, -0.07942801713943481, 0.011153236031532288, 0.04733288288116455, -0.3408437669277191, 0.11609910428524017, -0.10098204016685486, 0.2626492381095886, 0.43248796463012695, 0.3414858281612396, 0.08383861929178238, -0.284249871969223, 0.42707300186157227, -0.06373556703329086, 0.051010385155677795, 0.049875661730766296, 0.19409632682800293, -0.1479697972536087, -0.30299490690231323, -0.4622395932674408, -0.3657282888889313, -0.4703690707683563, -0.12164190411567688, 0.1440429538488388, 0.1319935917854309, 0.4903213381767273, -0.018241051584482193, 0.35641422867774963, -0.08710333704948425, -0.0005426686257123947, 0.07354995608329773, 0.06148943677544594, 0.2821267545223236, -0.31246209144592285, -0.19200333952903748, 0.08030775189399719, 0.035807300359010696, 0.21694864332675934, -0.171344593167305, -0.23177644610404968, 0.11268777400255203, -0.10567039251327515, 0.13347038626670837, 0.048127852380275726, 0.10151401907205582, 0.17592251300811768, 0.24109774827957153, -0.2015780210494995, -0.30067262053489685, -0.3467814028263092, 0.09949903935194016, 0.10698875039815903, 0.12585586309432983, -0.10175348073244095, 0.1422884166240692, 0.10006891191005707, 0.38488733768463135, 0.08744947612285614, -0.18287397921085358, 0.31119489669799805, 0.041156403720378876, 0.34530800580978394, -0.06182260066270828, -0.3201509416103363, 0.24499072134494781, -0.05877411365509033, 0.16679778695106506, 0.20061345398426056, -0.138237863779068, 0.08031100779771805, -0.20320935547351837, -0.0921042263507843, -0.0643962174654007, -0.4186590909957886, 0.11188489943742752, 0.007418394088745117, 0.1880878210067749, 0.20582255721092224, 0.03654564172029495, -0.194925457239151, 0.0036353394389152527, -0.009737112559378147, 0.2998482584953308, 0.010564982891082764, 0.13562056422233582, -0.1349022388458252, -0.022557903081178665, -0.3069857954978943, 0.18389999866485596, 0.23237642645835876, 0.49157029390335083, -0.027185801416635513, -0.17848053574562073, -0.21884138882160187, 0.09417741000652313, 0.1146480143070221, -0.13565577566623688, 0.18299445509910583, 0.45718249678611755, 0.06636913865804672, -0.21341358125209808, -0.17218713462352753, -0.5033161044120789, 0.13266217708587646, 0.4361288845539093, 0.06774572283029556, -0.0008686035871505737, -0.3626333177089691, 0.44441500306129456, 0.18165834248065948, -0.1891019493341446, -0.2773977518081665, -0.00007779523730278015, -0.0716031938791275, -0.3365022540092468, 0.04415205121040344, 0.09505826234817505, 0.16968657076358795, 0.226064994931221, 0.03411126509308815, 0.15535402297973633, 0.07931440323591232, 0.10816098004579544, 0.10174596309661865, -0.04151737317442894, 0.12756706774234772, 0.04135856404900551, -0.10165299475193024, 0.14901098608970642, 0.2546508014202118, 0.39374202489852905, -0.1238747239112854, -0.19405463337898254, -0.1644192934036255, 0.02992589771747589, 0.35510334372520447, 0.09709171950817108, -0.08197318762540817, 0.13341881334781647, 0.06473655998706818, 0.138114795088768, -0.24267762899398804, 0.27437829971313477, 0.29587483406066895, 0.1709005981683731, -0.3747495412826538, -0.3495921194553375, -0.029798664152622223, -0.053189732134342194, 0.15754878520965576, 0.14045263826847076, -0.061896249651908875, -0.3537500500679016, -0.07517621666193008, -0.009429492056369781, 0.5648853778839111, 0.16309881210327148, 0.28971484303474426, 0.44044986367225647, -0.08702697604894638, 0.4734363257884979, 0.17772792279720306, 0.00513028260320425, -0.24672245979309082, 0.12479473650455475, 0.022717183455824852, -0.18885360658168793, 0.20777222514152527, 0.13772401213645935, -0.24743518233299255, 0.2713084816932678, -0.038419391959905624, 0.25276798009872437, 0.06517630070447922, 0.09090237319469452, 0.3361060619354248, -0.19864816963672638, -0.40956857800483704, 0.20588059723377228, -0.41339945793151855, 0.07169878482818604, -0.24961867928504944, -0.32315754890441895, 0.15916118025779724, -0.25070348381996155, -0.2010604739189148, 0.1776944100856781, -0.25878840684890747, 0.2284643054008484, 0.02607525698840618, -0.06637336313724518, 0.4716349244117737, -0.11419859528541565, -0.1069331169128418, 0.300683856010437, -0.04713915288448334, -0.0889480859041214, -0.18885082006454468, 0.009423937648534775, -0.06973914802074432, 0.24757379293441772, 0.5000485181808472, -0.12181905657052994, -0.036887481808662415, -0.17509916424751282, -0.08124992996454239, 0.1250169724225998, 0.09171152114868164, 0.2032327651977539, 0.1998407244682312, -0.26206663250923157, -0.25989434123039246, -0.03207988291978836, -0.17729422450065613, -0.2796156406402588, 0.2072875201702118, 0.008905921131372452, -0.029169969260692596, 0.24090290069580078, 0.05255497992038727, -0.18734580278396606, -0.036457326263189316, 0.17643506824970245, -0.17674630880355835, -0.06659264862537384, 0.5022158622741699, 0.4060559868812561, -0.24060942232608795, -0.3803834021091461, 0.13189473748207092, -0.06281138956546783, -0.28858107328414917, 0.3547709584236145, 0.16884014010429382, 0.30079466104507446, 0.0165437962859869, 0.3438567519187927, 0.015720413997769356, -0.009917892515659332, 0.1101292073726654, -0.38582226634025574, -0.1822727918624878, 0.02738868072628975, -0.34248796105384827, 0.01652871072292328, 0.17335399985313416, 0.6295424699783325, 0.11228792369365692, 0.053722355514764786, -0.40095219016075134, -0.10037755966186523, -0.09295845031738281, 0.2274135798215866, 0.42836272716522217, -0.16191360354423523, -0.022742338478565216, 0.08611749112606049, 0.17600296437740326, 0.03465525060892105, -0.25261175632476807, -0.3148128092288971, -0.2940259277820587, 0.06613107025623322, 0.17201083898544312, -0.42914360761642456, 0.3799622654914856, 0.07249114662408829, -0.0009611956775188446, -0.30684810876846313, -0.17810934782028198, 0.08933690935373306, -0.13075295090675354, 0.3698423504829407, 0.12455597519874573, 0.11722402274608612, 0.1753130704164505, 0.02805411070585251, 0.12292689085006714, 0.10969956964254379, -0.006421869155019522, 0.1405479609966278, 0.034608326852321625, -0.05131957679986954, -0.19686588644981384, 0.007880285382270813, 0.08520925790071487, 0.27601158618927, 0.10006322711706161, -0.438772976398468, -0.14080946147441864, -0.19075733423233032, 0.3313595950603485, 0.49644798040390015, -0.2855861186981201, -0.017945528030395508, 0.11704516410827637, 0.2279493808746338, -0.43177956342697144, 0.09910136461257935, 0.4069509208202362, 0.0616522952914238, 0.055813271552324295, 0.16057734191417694, -0.19632533192634583, -0.026351988315582275, -0.20055074989795685, -0.015523239970207214, -0.08128728717565536, -0.24509687721729279, 0.1379796713590622, 0.2535308003425598, -0.16215519607067108, 0.07233969122171402, 0.22342942655086517, 0.22484222054481506, 0.20941311120986938, 0.44114774465560913, -0.0880136713385582, 0.033531952649354935, 0.32158350944519043, -0.19772771000862122, 0.05301930010318756, -0.41634416580200195, -0.2213226705789566, 0.004601433873176575, 0.15558458864688873, 0.04314432293176651, -0.030800893902778625, 0.08942398428916931, 0.05543147027492523, -0.04928940534591675, 0.09110884368419647, 0.18420150876045227, -0.17549791932106018, -0.00298005947843194, 0.07021335512399673, 0.10355261713266373, -0.18344441056251526, -0.20070712268352509, -0.052394021302461624, 0.02338329702615738, -0.06116586923599243, 0.0867941826581955, 0.15669389069080353, -0.550983726978302, -0.09850000590085983, 0.028402872383594513, -0.3185490667819977, -0.45628395676612854, 0.07331054657697678, 0.4109584093093872, 0.09548500925302505, -0.12038938701152802, -0.007495516911149025, 0.6174408793449402, 0.43332532048225403, -0.07646678388118744, -0.18405726552009583, -0.28093472123146057, -0.046759411692619324, -0.03220672532916069, 0.08669552206993103, 0.12169453501701355, 0.26255616545677185, 0.5520281791687012, 0.17664310336112976, -0.1991809904575348, 0.12699876725673676, 0.2516283690929413, -0.22347325086593628, -0.1569373905658722, 0.25273796916007996, -0.0195222869515419, -0.126807302236557, -0.2825402617454529, 0.1944851279258728, -0.2954164147377014, 0.1874997913837433, 0.4098544716835022, 0.2683032751083374, 0.15707290172576904, -0.10606128722429276, 0.13780978322029114, 0.18731245398521423, 0.5516355037689209, 0.19069764018058777, 0.3860902190208435, -0.35717928409576416, -0.05542862042784691, -0.5711804032325745, -0.02459009736776352, -0.10539630055427551, -0.03165190666913986, -0.14434467256069183, -0.0839930921792984, 0.03245793655514717, 0.2593311071395874, 0.19673195481300354, 0.16549889743328094, 0.10510310530662537, -0.087548166513443, -0.2856194078922272, -0.17865559458732605, 0.03775536268949509, -0.14089873433113098, 0.1282963901758194, -0.22235074639320374, -0.039765629917383194, -0.48870331048965454, 0.12653306126594543, -0.3787439465522766, -0.2208053022623062, 0.0734933465719223, 0.43571338057518005, 0.22326847910881042, 0.22655770182609558, 0.5930404663085938, -0.03177602216601372, -0.028631087392568588, -0.3275703489780426, -0.20591266453266144, -0.15453989803791046, 0.3455997109413147, 0.036304324865341187, 0.48899349570274353, -0.10716552287340164, -0.015857141464948654, -0.3778458535671234, 0.19499412178993225, -0.3336416482925415, 0.019823601469397545, -0.10277094691991806, 0.1275240182876587, -0.13816146552562714, 0.18170085549354553, 0.061118897050619125, 0.0021522343158721924, -0.1441735327243805, 0.23954461514949799, -0.38935601711273193, -0.4405488669872284, 0.5200940370559692, -0.4261542856693268, -0.6753059029579163, -0.1937555968761444, 0.04242391884326935, -0.24504807591438293, -0.14198993146419525, -0.4619942903518677, 0.06209073215723038, 0.2820001542568207, -0.06905470788478851, -0.27128085494041443, 0.37424397468566895, -0.15494224429130554, 0.02129247412085533, 0.08648073673248291, 0.2581362724304199, 0.07708090543746948, -0.2606578469276428, -0.2184218019247055, -0.23391152918338776 ]
https://github.com/huggingface/datasets/issues/156
SyntaxError with WMT datasets
Usually, the idea is that a dataset can be added without releasing a new version. The problem in the case of `WMT` was that some "core" code of the library had to be changed as well. @thomwolf @lhoestq @julien-c - How should we go about this. If we add a dataset that also requires "core" code changes, how do we handle the versioning? The moment a dataset is on AWS it will actually be listed with `list_datasets()` in all earlier versions... Is there a way to somehow insert the `pip version` to the HfApi() and get only the datasets that were available for this version (at the date of the release of the version) @julien-c ?
The following snippet produces a syntax error: ``` import nlp dataset = nlp.load_dataset('wmt14') print(dataset['train'][0]) ``` ``` Traceback (most recent call last): File "/home/tom/.local/lib/python3.6/site-packages/IPython/core/interactiveshell.py", line 3326, in run_code exec(code_obj, self.user_global_ns, self.user_ns) File "<ipython-input-8-3206959998b9>", line 3, in <module> dataset = nlp.load_dataset('wmt14') File "/home/tom/.local/lib/python3.6/site-packages/nlp/load.py", line 505, in load_dataset builder_cls = import_main_class(module_path, dataset=True) File "/home/tom/.local/lib/python3.6/site-packages/nlp/load.py", line 56, in import_main_class module = importlib.import_module(module_path) File "/usr/lib/python3.6/importlib/__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 994, in _gcd_import File "<frozen importlib._bootstrap>", line 971, in _find_and_load File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 665, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 678, in exec_module File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed File "/home/tom/.local/lib/python3.6/site-packages/nlp/datasets/wmt14/c258d646f4f5870b0245f783b7aa0af85c7117e06aacf1e0340bd81935094de2/wmt14.py", line 21, in <module> from .wmt_utils import Wmt, WmtConfig File "/home/tom/.local/lib/python3.6/site-packages/nlp/datasets/wmt14/c258d646f4f5870b0245f783b7aa0af85c7117e06aacf1e0340bd81935094de2/wmt_utils.py", line 659 <<<<<<< HEAD ^ SyntaxError: invalid syntax ``` Python version: `3.6.9 (default, Apr 18 2020, 01:56:04) [GCC 8.4.0]` Running on Ubuntu 18.04, via a Jupyter notebook
116
SyntaxError with WMT datasets The following snippet produces a syntax error: ``` import nlp dataset = nlp.load_dataset('wmt14') print(dataset['train'][0]) ``` ``` Traceback (most recent call last): File "/home/tom/.local/lib/python3.6/site-packages/IPython/core/interactiveshell.py", line 3326, in run_code exec(code_obj, self.user_global_ns, self.user_ns) File "<ipython-input-8-3206959998b9>", line 3, in <module> dataset = nlp.load_dataset('wmt14') File "/home/tom/.local/lib/python3.6/site-packages/nlp/load.py", line 505, in load_dataset builder_cls = import_main_class(module_path, dataset=True) File "/home/tom/.local/lib/python3.6/site-packages/nlp/load.py", line 56, in import_main_class module = importlib.import_module(module_path) File "/usr/lib/python3.6/importlib/__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 994, in _gcd_import File "<frozen importlib._bootstrap>", line 971, in _find_and_load File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 665, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 678, in exec_module File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed File "/home/tom/.local/lib/python3.6/site-packages/nlp/datasets/wmt14/c258d646f4f5870b0245f783b7aa0af85c7117e06aacf1e0340bd81935094de2/wmt14.py", line 21, in <module> from .wmt_utils import Wmt, WmtConfig File "/home/tom/.local/lib/python3.6/site-packages/nlp/datasets/wmt14/c258d646f4f5870b0245f783b7aa0af85c7117e06aacf1e0340bd81935094de2/wmt_utils.py", line 659 <<<<<<< HEAD ^ SyntaxError: invalid syntax ``` Python version: `3.6.9 (default, Apr 18 2020, 01:56:04) [GCC 8.4.0]` Running on Ubuntu 18.04, via a Jupyter notebook Usually, the idea is that a dataset can be added without releasing a new version. The problem in the case of `WMT` was that some "core" code of the library had to be changed as well. @thomwolf @lhoestq @julien-c - How should we go about this. If we add a dataset that also requires "core" code changes, how do we handle the versioning? The moment a dataset is on AWS it will actually be listed with `list_datasets()` in all earlier versions... Is there a way to somehow insert the `pip version` to the HfApi() and get only the datasets that were available for this version (at the date of the release of the version) @julien-c ?
[ -0.3297365605831146, 0.03244337439537048, -0.01935308799147606, 0.012745760381221771, 0.21647348999977112, -0.014922674745321274, 0.3609468638896942, 0.5264446139335632, 0.13015474379062653, -0.11216209828853607, 0.0932864099740982, 0.4350023567676544, -0.3767535090446472, 0.14143194258213043, 0.15087036788463593, -0.1754974126815796, -0.026802845299243927, 0.14139631390571594, -0.35863637924194336, 0.15195663273334503, -0.2946048676967621, 0.15836399793624878, -0.42096132040023804, 0.21733908355236053, -0.25428834557533264, -0.09023565798997879, -0.0211467407643795, 0.14495055377483368, -0.13945958018302917, -0.46284928917884827, 0.14080297946929932, -0.006522614508867264, 0.23899543285369873, 0.3692950904369354, -0.00010283572191838175, -0.0074910372495651245, 0.1617363542318344, -0.03901885077357292, -0.39230215549468994, -0.3421502709388733, -0.45179206132888794, -0.14813537895679474, 0.14383840560913086, -0.2942018508911133, 0.040795400738716125, -0.1019728034734726, 0.012090276926755905, -0.23356367647647858, 0.5227859020233154, 0.47097766399383545, 0.2622491419315338, 0.40465325117111206, -0.07884262502193451, -0.19955724477767944, 0.040084730833768845, 0.18680699169635773, -0.025102337822318077, 0.2721500098705292, -0.04627573490142822, -0.3078269958496094, 0.0443684458732605, 0.284417986869812, -0.09715508669614792, 0.20463255047798157, 0.22881338000297546, 0.0462171845138073, 0.17373965680599213, 0.01462288573384285, -0.13369280099868774, 0.11168860644102097, 0.3766534626483917, -0.33405089378356934, -0.19229696691036224, -0.025419846177101135, -0.02371559664607048, -0.3796643018722534, 0.17374484241008759, 0.25100788474082947, -0.24309557676315308, 0.20427744090557098, -0.28036415576934814, 0.07219225913286209, -0.04953354597091675, 0.28029268980026245, -0.04191597178578377, 0.7289191484451294, -0.1515551209449768, 0.08305162191390991, -0.03266840800642967, -0.18976740539073944, 0.11824125051498413, -0.02339347079396248, -0.0012602955102920532, 0.1437295526266098, -0.06961944699287415, -0.06889297813177109, 0.2810450494289398, -0.027393490076065063, -0.2340157926082611, 0.02677409164607525, 0.18169541656970978, -0.145949125289917, 0.19883476197719574, 0.19662776589393616, 0.2838442027568817, -0.0644872784614563, 0.03990409895777702, -0.032831065356731415, 0.2843931317329407, 0.2534208595752716, -0.02751028724014759, 0.047553084790706635, -0.17336194217205048, -0.46899211406707764, -0.025339186191558838, 0.013644108548760414, 0.595009446144104, 0.18039673566818237, -0.270100861787796, -0.028921905905008316, -0.27869993448257446, -0.30279842019081116, -0.06769765168428421, 0.20932739973068237, 0.12181972712278366, -0.16004961729049683, 0.3483573794364929, 0.07520836591720581, -0.24403321743011475, -0.16471929848194122, -0.29304760694503784, 0.34089580178260803, -0.3188338577747345, -0.16842792928218842, 0.21880857646465302, 0.22536182403564453, 0.09221291542053223, 0.047164589166641235, -0.0809149295091629, -0.19884291291236877, 0.13892871141433716, -0.007762164808809757, 0.10811705142259598, 0.10519567131996155, -0.17859524488449097, 0.09333983063697815, 0.27756035327911377, -0.10049428045749664, -0.04839938506484032, 0.20074623823165894, -0.0364861786365509, -0.08971342444419861, -0.16141408681869507, 0.28895971179008484, -0.1801726073026657, -0.09838379919528961, 0.05437998101115227, 0.07688537240028381, 0.2552025318145752, -0.08779057115316391, 0.031296759843826294, -0.3928900957107544, -0.25554314255714417, -0.16490347683429718, 0.18206846714019775, 0.47423624992370605, -0.4417523741722107, -0.19430659711360931, -0.19984155893325806, -0.11287452280521393, 0.1960725486278534, 0.16547280550003052, -0.18480809032917023, 0.6032971739768982, -0.1668521761894226, 0.1821201592683792, 0.4813288450241089, -0.2698018550872803, 0.17083173990249634, 0.06550229340791702, -0.25296127796173096, 0.07627668976783752, -0.0907965824007988, -0.04541868716478348, -0.0019623851403594017, -0.020329641178250313, 0.36855435371398926, 0.2570972442626953, -0.08682771772146225, -0.07042102515697479, 0.02580200508236885, 0.028127359226346016, 0.5934314727783203, 0.04628374055027962, -0.0008244439959526062, -0.2142312228679657, 0.05787103250622749, 0.4939415156841278, 0.24607723951339722, -0.05770692601799965, -0.03334905207157135, -0.013707075268030167, 0.017015106976032257, -0.11484473943710327, -0.33529147505760193, -0.2411738634109497, -0.223207026720047, -0.10936478525400162, 0.04783066362142563, 0.36304593086242676, -0.15240462124347687, 0.2927406430244446, -0.24383467435836792, 0.08482580631971359, -0.22529281675815582, -0.24238458275794983, 0.26310524344444275, 0.04656144231557846, -0.2522633671760559, -0.10869182646274567, -0.06863437592983246, -0.0800715833902359, 0.008836543187499046, 0.09386292845010757, -0.1322338879108429, 0.1556386947631836, -0.25798800587654114, -0.3206021189689636, 0.1305002123117447, 0.25699687004089355, 0.16543687880039215, -0.043695367872714996, -0.21404603123664856, 0.2780262231826782, 0.16491366922855377, -0.06929758191108704, -0.2854144275188446, -0.029415220022201538, -0.07430317252874374, -0.16028037667274475, 0.16514788568019867, 0.17947827279567719, 0.19708514213562012, -0.1973394751548767, -0.20750120282173157, 0.18064722418785095, -0.023483093827962875, 0.07527970522642136, 0.14891332387924194, 0.10098180919885635, 0.14578084647655487, 0.021032866090536118, 0.028500834479928017, -0.2971128821372986, 0.17801572382450104, -0.024109680205583572, -0.15059323608875275, -0.07277599722146988, -0.11883144080638885, -0.10565807670354843, 0.5293699502944946, 0.2276986837387085, 0.22410941123962402, -0.2177882194519043, -0.2621042728424072, -0.08119961619377136, 0.07825546711683273, 0.07051733136177063, 0.47997981309890747, 0.17822259664535522, -0.004178885370492935, 0.17721517384052277, -0.01566699892282486, -0.21655751764774323, 0.2168712168931961, 0.18183255195617676, 0.03313763439655304, -0.035111889243125916, 0.03854869678616524, 0.0851173847913742, -0.1735188066959381, -0.28186237812042236, -0.08428294956684113, 0.16424359381198883, -0.3306984603404999, 0.049713075160980225, -0.4721486568450928, -0.39310693740844727, -0.45145946741104126, -0.38413354754447937, -0.17399612069129944, -0.42887938022613525, -0.18676868081092834, -0.03511202707886696, -0.21731694042682648, 0.30024775862693787, -0.14047981798648834, -0.048254743218421936, 0.11018720269203186, 0.06637947261333466, 0.09884929656982422, -0.2670574486255646, -0.1530420184135437, 0.14112330973148346, 0.3205448389053345, 0.1450352668762207, 0.3701433539390564, -0.07942801713943481, 0.011153236031532288, 0.04733288288116455, -0.3408437669277191, 0.11609910428524017, -0.10098204016685486, 0.2626492381095886, 0.43248796463012695, 0.3414858281612396, 0.08383861929178238, -0.284249871969223, 0.42707300186157227, -0.06373556703329086, 0.051010385155677795, 0.049875661730766296, 0.19409632682800293, -0.1479697972536087, -0.30299490690231323, -0.4622395932674408, -0.3657282888889313, -0.4703690707683563, -0.12164190411567688, 0.1440429538488388, 0.1319935917854309, 0.4903213381767273, -0.018241051584482193, 0.35641422867774963, -0.08710333704948425, -0.0005426686257123947, 0.07354995608329773, 0.06148943677544594, 0.2821267545223236, -0.31246209144592285, -0.19200333952903748, 0.08030775189399719, 0.035807300359010696, 0.21694864332675934, -0.171344593167305, -0.23177644610404968, 0.11268777400255203, -0.10567039251327515, 0.13347038626670837, 0.048127852380275726, 0.10151401907205582, 0.17592251300811768, 0.24109774827957153, -0.2015780210494995, -0.30067262053489685, -0.3467814028263092, 0.09949903935194016, 0.10698875039815903, 0.12585586309432983, -0.10175348073244095, 0.1422884166240692, 0.10006891191005707, 0.38488733768463135, 0.08744947612285614, -0.18287397921085358, 0.31119489669799805, 0.041156403720378876, 0.34530800580978394, -0.06182260066270828, -0.3201509416103363, 0.24499072134494781, -0.05877411365509033, 0.16679778695106506, 0.20061345398426056, -0.138237863779068, 0.08031100779771805, -0.20320935547351837, -0.0921042263507843, -0.0643962174654007, -0.4186590909957886, 0.11188489943742752, 0.007418394088745117, 0.1880878210067749, 0.20582255721092224, 0.03654564172029495, -0.194925457239151, 0.0036353394389152527, -0.009737112559378147, 0.2998482584953308, 0.010564982891082764, 0.13562056422233582, -0.1349022388458252, -0.022557903081178665, -0.3069857954978943, 0.18389999866485596, 0.23237642645835876, 0.49157029390335083, -0.027185801416635513, -0.17848053574562073, -0.21884138882160187, 0.09417741000652313, 0.1146480143070221, -0.13565577566623688, 0.18299445509910583, 0.45718249678611755, 0.06636913865804672, -0.21341358125209808, -0.17218713462352753, -0.5033161044120789, 0.13266217708587646, 0.4361288845539093, 0.06774572283029556, -0.0008686035871505737, -0.3626333177089691, 0.44441500306129456, 0.18165834248065948, -0.1891019493341446, -0.2773977518081665, -0.00007779523730278015, -0.0716031938791275, -0.3365022540092468, 0.04415205121040344, 0.09505826234817505, 0.16968657076358795, 0.226064994931221, 0.03411126509308815, 0.15535402297973633, 0.07931440323591232, 0.10816098004579544, 0.10174596309661865, -0.04151737317442894, 0.12756706774234772, 0.04135856404900551, -0.10165299475193024, 0.14901098608970642, 0.2546508014202118, 0.39374202489852905, -0.1238747239112854, -0.19405463337898254, -0.1644192934036255, 0.02992589771747589, 0.35510334372520447, 0.09709171950817108, -0.08197318762540817, 0.13341881334781647, 0.06473655998706818, 0.138114795088768, -0.24267762899398804, 0.27437829971313477, 0.29587483406066895, 0.1709005981683731, -0.3747495412826538, -0.3495921194553375, -0.029798664152622223, -0.053189732134342194, 0.15754878520965576, 0.14045263826847076, -0.061896249651908875, -0.3537500500679016, -0.07517621666193008, -0.009429492056369781, 0.5648853778839111, 0.16309881210327148, 0.28971484303474426, 0.44044986367225647, -0.08702697604894638, 0.4734363257884979, 0.17772792279720306, 0.00513028260320425, -0.24672245979309082, 0.12479473650455475, 0.022717183455824852, -0.18885360658168793, 0.20777222514152527, 0.13772401213645935, -0.24743518233299255, 0.2713084816932678, -0.038419391959905624, 0.25276798009872437, 0.06517630070447922, 0.09090237319469452, 0.3361060619354248, -0.19864816963672638, -0.40956857800483704, 0.20588059723377228, -0.41339945793151855, 0.07169878482818604, -0.24961867928504944, -0.32315754890441895, 0.15916118025779724, -0.25070348381996155, -0.2010604739189148, 0.1776944100856781, -0.25878840684890747, 0.2284643054008484, 0.02607525698840618, -0.06637336313724518, 0.4716349244117737, -0.11419859528541565, -0.1069331169128418, 0.300683856010437, -0.04713915288448334, -0.0889480859041214, -0.18885082006454468, 0.009423937648534775, -0.06973914802074432, 0.24757379293441772, 0.5000485181808472, -0.12181905657052994, -0.036887481808662415, -0.17509916424751282, -0.08124992996454239, 0.1250169724225998, 0.09171152114868164, 0.2032327651977539, 0.1998407244682312, -0.26206663250923157, -0.25989434123039246, -0.03207988291978836, -0.17729422450065613, -0.2796156406402588, 0.2072875201702118, 0.008905921131372452, -0.029169969260692596, 0.24090290069580078, 0.05255497992038727, -0.18734580278396606, -0.036457326263189316, 0.17643506824970245, -0.17674630880355835, -0.06659264862537384, 0.5022158622741699, 0.4060559868812561, -0.24060942232608795, -0.3803834021091461, 0.13189473748207092, -0.06281138956546783, -0.28858107328414917, 0.3547709584236145, 0.16884014010429382, 0.30079466104507446, 0.0165437962859869, 0.3438567519187927, 0.015720413997769356, -0.009917892515659332, 0.1101292073726654, -0.38582226634025574, -0.1822727918624878, 0.02738868072628975, -0.34248796105384827, 0.01652871072292328, 0.17335399985313416, 0.6295424699783325, 0.11228792369365692, 0.053722355514764786, -0.40095219016075134, -0.10037755966186523, -0.09295845031738281, 0.2274135798215866, 0.42836272716522217, -0.16191360354423523, -0.022742338478565216, 0.08611749112606049, 0.17600296437740326, 0.03465525060892105, -0.25261175632476807, -0.3148128092288971, -0.2940259277820587, 0.06613107025623322, 0.17201083898544312, -0.42914360761642456, 0.3799622654914856, 0.07249114662408829, -0.0009611956775188446, -0.30684810876846313, -0.17810934782028198, 0.08933690935373306, -0.13075295090675354, 0.3698423504829407, 0.12455597519874573, 0.11722402274608612, 0.1753130704164505, 0.02805411070585251, 0.12292689085006714, 0.10969956964254379, -0.006421869155019522, 0.1405479609966278, 0.034608326852321625, -0.05131957679986954, -0.19686588644981384, 0.007880285382270813, 0.08520925790071487, 0.27601158618927, 0.10006322711706161, -0.438772976398468, -0.14080946147441864, -0.19075733423233032, 0.3313595950603485, 0.49644798040390015, -0.2855861186981201, -0.017945528030395508, 0.11704516410827637, 0.2279493808746338, -0.43177956342697144, 0.09910136461257935, 0.4069509208202362, 0.0616522952914238, 0.055813271552324295, 0.16057734191417694, -0.19632533192634583, -0.026351988315582275, -0.20055074989795685, -0.015523239970207214, -0.08128728717565536, -0.24509687721729279, 0.1379796713590622, 0.2535308003425598, -0.16215519607067108, 0.07233969122171402, 0.22342942655086517, 0.22484222054481506, 0.20941311120986938, 0.44114774465560913, -0.0880136713385582, 0.033531952649354935, 0.32158350944519043, -0.19772771000862122, 0.05301930010318756, -0.41634416580200195, -0.2213226705789566, 0.004601433873176575, 0.15558458864688873, 0.04314432293176651, -0.030800893902778625, 0.08942398428916931, 0.05543147027492523, -0.04928940534591675, 0.09110884368419647, 0.18420150876045227, -0.17549791932106018, -0.00298005947843194, 0.07021335512399673, 0.10355261713266373, -0.18344441056251526, -0.20070712268352509, -0.052394021302461624, 0.02338329702615738, -0.06116586923599243, 0.0867941826581955, 0.15669389069080353, -0.550983726978302, -0.09850000590085983, 0.028402872383594513, -0.3185490667819977, -0.45628395676612854, 0.07331054657697678, 0.4109584093093872, 0.09548500925302505, -0.12038938701152802, -0.007495516911149025, 0.6174408793449402, 0.43332532048225403, -0.07646678388118744, -0.18405726552009583, -0.28093472123146057, -0.046759411692619324, -0.03220672532916069, 0.08669552206993103, 0.12169453501701355, 0.26255616545677185, 0.5520281791687012, 0.17664310336112976, -0.1991809904575348, 0.12699876725673676, 0.2516283690929413, -0.22347325086593628, -0.1569373905658722, 0.25273796916007996, -0.0195222869515419, -0.126807302236557, -0.2825402617454529, 0.1944851279258728, -0.2954164147377014, 0.1874997913837433, 0.4098544716835022, 0.2683032751083374, 0.15707290172576904, -0.10606128722429276, 0.13780978322029114, 0.18731245398521423, 0.5516355037689209, 0.19069764018058777, 0.3860902190208435, -0.35717928409576416, -0.05542862042784691, -0.5711804032325745, -0.02459009736776352, -0.10539630055427551, -0.03165190666913986, -0.14434467256069183, -0.0839930921792984, 0.03245793655514717, 0.2593311071395874, 0.19673195481300354, 0.16549889743328094, 0.10510310530662537, -0.087548166513443, -0.2856194078922272, -0.17865559458732605, 0.03775536268949509, -0.14089873433113098, 0.1282963901758194, -0.22235074639320374, -0.039765629917383194, -0.48870331048965454, 0.12653306126594543, -0.3787439465522766, -0.2208053022623062, 0.0734933465719223, 0.43571338057518005, 0.22326847910881042, 0.22655770182609558, 0.5930404663085938, -0.03177602216601372, -0.028631087392568588, -0.3275703489780426, -0.20591266453266144, -0.15453989803791046, 0.3455997109413147, 0.036304324865341187, 0.48899349570274353, -0.10716552287340164, -0.015857141464948654, -0.3778458535671234, 0.19499412178993225, -0.3336416482925415, 0.019823601469397545, -0.10277094691991806, 0.1275240182876587, -0.13816146552562714, 0.18170085549354553, 0.061118897050619125, 0.0021522343158721924, -0.1441735327243805, 0.23954461514949799, -0.38935601711273193, -0.4405488669872284, 0.5200940370559692, -0.4261542856693268, -0.6753059029579163, -0.1937555968761444, 0.04242391884326935, -0.24504807591438293, -0.14198993146419525, -0.4619942903518677, 0.06209073215723038, 0.2820001542568207, -0.06905470788478851, -0.27128085494041443, 0.37424397468566895, -0.15494224429130554, 0.02129247412085533, 0.08648073673248291, 0.2581362724304199, 0.07708090543746948, -0.2606578469276428, -0.2184218019247055, -0.23391152918338776 ]
https://github.com/huggingface/datasets/issues/156
SyntaxError with WMT datasets
We plan to have something like a `requirements.txt` per dataset to prevent user from loading dataset with old version of `nlp` or any other libraries. Right now the solution is just to keep `nlp` up to date when you want to load a dataset that leverages the latests features of `nlp`. For datasets that are on AWS but that use features that are not released yet we should be able to filter those from the `list_dataset` as soon as we have the `requirements.txt` feature on (filter datasets that need a future version of `nlp`). Shall we rename this issue to be more explicit about the problem ? Something like `Specify the minimum version of the nlp library required for each dataset` ?
The following snippet produces a syntax error: ``` import nlp dataset = nlp.load_dataset('wmt14') print(dataset['train'][0]) ``` ``` Traceback (most recent call last): File "/home/tom/.local/lib/python3.6/site-packages/IPython/core/interactiveshell.py", line 3326, in run_code exec(code_obj, self.user_global_ns, self.user_ns) File "<ipython-input-8-3206959998b9>", line 3, in <module> dataset = nlp.load_dataset('wmt14') File "/home/tom/.local/lib/python3.6/site-packages/nlp/load.py", line 505, in load_dataset builder_cls = import_main_class(module_path, dataset=True) File "/home/tom/.local/lib/python3.6/site-packages/nlp/load.py", line 56, in import_main_class module = importlib.import_module(module_path) File "/usr/lib/python3.6/importlib/__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 994, in _gcd_import File "<frozen importlib._bootstrap>", line 971, in _find_and_load File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 665, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 678, in exec_module File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed File "/home/tom/.local/lib/python3.6/site-packages/nlp/datasets/wmt14/c258d646f4f5870b0245f783b7aa0af85c7117e06aacf1e0340bd81935094de2/wmt14.py", line 21, in <module> from .wmt_utils import Wmt, WmtConfig File "/home/tom/.local/lib/python3.6/site-packages/nlp/datasets/wmt14/c258d646f4f5870b0245f783b7aa0af85c7117e06aacf1e0340bd81935094de2/wmt_utils.py", line 659 <<<<<<< HEAD ^ SyntaxError: invalid syntax ``` Python version: `3.6.9 (default, Apr 18 2020, 01:56:04) [GCC 8.4.0]` Running on Ubuntu 18.04, via a Jupyter notebook
122
SyntaxError with WMT datasets The following snippet produces a syntax error: ``` import nlp dataset = nlp.load_dataset('wmt14') print(dataset['train'][0]) ``` ``` Traceback (most recent call last): File "/home/tom/.local/lib/python3.6/site-packages/IPython/core/interactiveshell.py", line 3326, in run_code exec(code_obj, self.user_global_ns, self.user_ns) File "<ipython-input-8-3206959998b9>", line 3, in <module> dataset = nlp.load_dataset('wmt14') File "/home/tom/.local/lib/python3.6/site-packages/nlp/load.py", line 505, in load_dataset builder_cls = import_main_class(module_path, dataset=True) File "/home/tom/.local/lib/python3.6/site-packages/nlp/load.py", line 56, in import_main_class module = importlib.import_module(module_path) File "/usr/lib/python3.6/importlib/__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 994, in _gcd_import File "<frozen importlib._bootstrap>", line 971, in _find_and_load File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 665, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 678, in exec_module File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed File "/home/tom/.local/lib/python3.6/site-packages/nlp/datasets/wmt14/c258d646f4f5870b0245f783b7aa0af85c7117e06aacf1e0340bd81935094de2/wmt14.py", line 21, in <module> from .wmt_utils import Wmt, WmtConfig File "/home/tom/.local/lib/python3.6/site-packages/nlp/datasets/wmt14/c258d646f4f5870b0245f783b7aa0af85c7117e06aacf1e0340bd81935094de2/wmt_utils.py", line 659 <<<<<<< HEAD ^ SyntaxError: invalid syntax ``` Python version: `3.6.9 (default, Apr 18 2020, 01:56:04) [GCC 8.4.0]` Running on Ubuntu 18.04, via a Jupyter notebook We plan to have something like a `requirements.txt` per dataset to prevent user from loading dataset with old version of `nlp` or any other libraries. Right now the solution is just to keep `nlp` up to date when you want to load a dataset that leverages the latests features of `nlp`. For datasets that are on AWS but that use features that are not released yet we should be able to filter those from the `list_dataset` as soon as we have the `requirements.txt` feature on (filter datasets that need a future version of `nlp`). Shall we rename this issue to be more explicit about the problem ? Something like `Specify the minimum version of the nlp library required for each dataset` ?
[ -0.3297365605831146, 0.03244337439537048, -0.01935308799147606, 0.012745760381221771, 0.21647348999977112, -0.014922674745321274, 0.3609468638896942, 0.5264446139335632, 0.13015474379062653, -0.11216209828853607, 0.0932864099740982, 0.4350023567676544, -0.3767535090446472, 0.14143194258213043, 0.15087036788463593, -0.1754974126815796, -0.026802845299243927, 0.14139631390571594, -0.35863637924194336, 0.15195663273334503, -0.2946048676967621, 0.15836399793624878, -0.42096132040023804, 0.21733908355236053, -0.25428834557533264, -0.09023565798997879, -0.0211467407643795, 0.14495055377483368, -0.13945958018302917, -0.46284928917884827, 0.14080297946929932, -0.006522614508867264, 0.23899543285369873, 0.3692950904369354, -0.00010283572191838175, -0.0074910372495651245, 0.1617363542318344, -0.03901885077357292, -0.39230215549468994, -0.3421502709388733, -0.45179206132888794, -0.14813537895679474, 0.14383840560913086, -0.2942018508911133, 0.040795400738716125, -0.1019728034734726, 0.012090276926755905, -0.23356367647647858, 0.5227859020233154, 0.47097766399383545, 0.2622491419315338, 0.40465325117111206, -0.07884262502193451, -0.19955724477767944, 0.040084730833768845, 0.18680699169635773, -0.025102337822318077, 0.2721500098705292, -0.04627573490142822, -0.3078269958496094, 0.0443684458732605, 0.284417986869812, -0.09715508669614792, 0.20463255047798157, 0.22881338000297546, 0.0462171845138073, 0.17373965680599213, 0.01462288573384285, -0.13369280099868774, 0.11168860644102097, 0.3766534626483917, -0.33405089378356934, -0.19229696691036224, -0.025419846177101135, -0.02371559664607048, -0.3796643018722534, 0.17374484241008759, 0.25100788474082947, -0.24309557676315308, 0.20427744090557098, -0.28036415576934814, 0.07219225913286209, -0.04953354597091675, 0.28029268980026245, -0.04191597178578377, 0.7289191484451294, -0.1515551209449768, 0.08305162191390991, -0.03266840800642967, -0.18976740539073944, 0.11824125051498413, -0.02339347079396248, -0.0012602955102920532, 0.1437295526266098, -0.06961944699287415, -0.06889297813177109, 0.2810450494289398, -0.027393490076065063, -0.2340157926082611, 0.02677409164607525, 0.18169541656970978, -0.145949125289917, 0.19883476197719574, 0.19662776589393616, 0.2838442027568817, -0.0644872784614563, 0.03990409895777702, -0.032831065356731415, 0.2843931317329407, 0.2534208595752716, -0.02751028724014759, 0.047553084790706635, -0.17336194217205048, -0.46899211406707764, -0.025339186191558838, 0.013644108548760414, 0.595009446144104, 0.18039673566818237, -0.270100861787796, -0.028921905905008316, -0.27869993448257446, -0.30279842019081116, -0.06769765168428421, 0.20932739973068237, 0.12181972712278366, -0.16004961729049683, 0.3483573794364929, 0.07520836591720581, -0.24403321743011475, -0.16471929848194122, -0.29304760694503784, 0.34089580178260803, -0.3188338577747345, -0.16842792928218842, 0.21880857646465302, 0.22536182403564453, 0.09221291542053223, 0.047164589166641235, -0.0809149295091629, -0.19884291291236877, 0.13892871141433716, -0.007762164808809757, 0.10811705142259598, 0.10519567131996155, -0.17859524488449097, 0.09333983063697815, 0.27756035327911377, -0.10049428045749664, -0.04839938506484032, 0.20074623823165894, -0.0364861786365509, -0.08971342444419861, -0.16141408681869507, 0.28895971179008484, -0.1801726073026657, -0.09838379919528961, 0.05437998101115227, 0.07688537240028381, 0.2552025318145752, -0.08779057115316391, 0.031296759843826294, -0.3928900957107544, -0.25554314255714417, -0.16490347683429718, 0.18206846714019775, 0.47423624992370605, -0.4417523741722107, -0.19430659711360931, -0.19984155893325806, -0.11287452280521393, 0.1960725486278534, 0.16547280550003052, -0.18480809032917023, 0.6032971739768982, -0.1668521761894226, 0.1821201592683792, 0.4813288450241089, -0.2698018550872803, 0.17083173990249634, 0.06550229340791702, -0.25296127796173096, 0.07627668976783752, -0.0907965824007988, -0.04541868716478348, -0.0019623851403594017, -0.020329641178250313, 0.36855435371398926, 0.2570972442626953, -0.08682771772146225, -0.07042102515697479, 0.02580200508236885, 0.028127359226346016, 0.5934314727783203, 0.04628374055027962, -0.0008244439959526062, -0.2142312228679657, 0.05787103250622749, 0.4939415156841278, 0.24607723951339722, -0.05770692601799965, -0.03334905207157135, -0.013707075268030167, 0.017015106976032257, -0.11484473943710327, -0.33529147505760193, -0.2411738634109497, -0.223207026720047, -0.10936478525400162, 0.04783066362142563, 0.36304593086242676, -0.15240462124347687, 0.2927406430244446, -0.24383467435836792, 0.08482580631971359, -0.22529281675815582, -0.24238458275794983, 0.26310524344444275, 0.04656144231557846, -0.2522633671760559, -0.10869182646274567, -0.06863437592983246, -0.0800715833902359, 0.008836543187499046, 0.09386292845010757, -0.1322338879108429, 0.1556386947631836, -0.25798800587654114, -0.3206021189689636, 0.1305002123117447, 0.25699687004089355, 0.16543687880039215, -0.043695367872714996, -0.21404603123664856, 0.2780262231826782, 0.16491366922855377, -0.06929758191108704, -0.2854144275188446, -0.029415220022201538, -0.07430317252874374, -0.16028037667274475, 0.16514788568019867, 0.17947827279567719, 0.19708514213562012, -0.1973394751548767, -0.20750120282173157, 0.18064722418785095, -0.023483093827962875, 0.07527970522642136, 0.14891332387924194, 0.10098180919885635, 0.14578084647655487, 0.021032866090536118, 0.028500834479928017, -0.2971128821372986, 0.17801572382450104, -0.024109680205583572, -0.15059323608875275, -0.07277599722146988, -0.11883144080638885, -0.10565807670354843, 0.5293699502944946, 0.2276986837387085, 0.22410941123962402, -0.2177882194519043, -0.2621042728424072, -0.08119961619377136, 0.07825546711683273, 0.07051733136177063, 0.47997981309890747, 0.17822259664535522, -0.004178885370492935, 0.17721517384052277, -0.01566699892282486, -0.21655751764774323, 0.2168712168931961, 0.18183255195617676, 0.03313763439655304, -0.035111889243125916, 0.03854869678616524, 0.0851173847913742, -0.1735188066959381, -0.28186237812042236, -0.08428294956684113, 0.16424359381198883, -0.3306984603404999, 0.049713075160980225, -0.4721486568450928, -0.39310693740844727, -0.45145946741104126, -0.38413354754447937, -0.17399612069129944, -0.42887938022613525, -0.18676868081092834, -0.03511202707886696, -0.21731694042682648, 0.30024775862693787, -0.14047981798648834, -0.048254743218421936, 0.11018720269203186, 0.06637947261333466, 0.09884929656982422, -0.2670574486255646, -0.1530420184135437, 0.14112330973148346, 0.3205448389053345, 0.1450352668762207, 0.3701433539390564, -0.07942801713943481, 0.011153236031532288, 0.04733288288116455, -0.3408437669277191, 0.11609910428524017, -0.10098204016685486, 0.2626492381095886, 0.43248796463012695, 0.3414858281612396, 0.08383861929178238, -0.284249871969223, 0.42707300186157227, -0.06373556703329086, 0.051010385155677795, 0.049875661730766296, 0.19409632682800293, -0.1479697972536087, -0.30299490690231323, -0.4622395932674408, -0.3657282888889313, -0.4703690707683563, -0.12164190411567688, 0.1440429538488388, 0.1319935917854309, 0.4903213381767273, -0.018241051584482193, 0.35641422867774963, -0.08710333704948425, -0.0005426686257123947, 0.07354995608329773, 0.06148943677544594, 0.2821267545223236, -0.31246209144592285, -0.19200333952903748, 0.08030775189399719, 0.035807300359010696, 0.21694864332675934, -0.171344593167305, -0.23177644610404968, 0.11268777400255203, -0.10567039251327515, 0.13347038626670837, 0.048127852380275726, 0.10151401907205582, 0.17592251300811768, 0.24109774827957153, -0.2015780210494995, -0.30067262053489685, -0.3467814028263092, 0.09949903935194016, 0.10698875039815903, 0.12585586309432983, -0.10175348073244095, 0.1422884166240692, 0.10006891191005707, 0.38488733768463135, 0.08744947612285614, -0.18287397921085358, 0.31119489669799805, 0.041156403720378876, 0.34530800580978394, -0.06182260066270828, -0.3201509416103363, 0.24499072134494781, -0.05877411365509033, 0.16679778695106506, 0.20061345398426056, -0.138237863779068, 0.08031100779771805, -0.20320935547351837, -0.0921042263507843, -0.0643962174654007, -0.4186590909957886, 0.11188489943742752, 0.007418394088745117, 0.1880878210067749, 0.20582255721092224, 0.03654564172029495, -0.194925457239151, 0.0036353394389152527, -0.009737112559378147, 0.2998482584953308, 0.010564982891082764, 0.13562056422233582, -0.1349022388458252, -0.022557903081178665, -0.3069857954978943, 0.18389999866485596, 0.23237642645835876, 0.49157029390335083, -0.027185801416635513, -0.17848053574562073, -0.21884138882160187, 0.09417741000652313, 0.1146480143070221, -0.13565577566623688, 0.18299445509910583, 0.45718249678611755, 0.06636913865804672, -0.21341358125209808, -0.17218713462352753, -0.5033161044120789, 0.13266217708587646, 0.4361288845539093, 0.06774572283029556, -0.0008686035871505737, -0.3626333177089691, 0.44441500306129456, 0.18165834248065948, -0.1891019493341446, -0.2773977518081665, -0.00007779523730278015, -0.0716031938791275, -0.3365022540092468, 0.04415205121040344, 0.09505826234817505, 0.16968657076358795, 0.226064994931221, 0.03411126509308815, 0.15535402297973633, 0.07931440323591232, 0.10816098004579544, 0.10174596309661865, -0.04151737317442894, 0.12756706774234772, 0.04135856404900551, -0.10165299475193024, 0.14901098608970642, 0.2546508014202118, 0.39374202489852905, -0.1238747239112854, -0.19405463337898254, -0.1644192934036255, 0.02992589771747589, 0.35510334372520447, 0.09709171950817108, -0.08197318762540817, 0.13341881334781647, 0.06473655998706818, 0.138114795088768, -0.24267762899398804, 0.27437829971313477, 0.29587483406066895, 0.1709005981683731, -0.3747495412826538, -0.3495921194553375, -0.029798664152622223, -0.053189732134342194, 0.15754878520965576, 0.14045263826847076, -0.061896249651908875, -0.3537500500679016, -0.07517621666193008, -0.009429492056369781, 0.5648853778839111, 0.16309881210327148, 0.28971484303474426, 0.44044986367225647, -0.08702697604894638, 0.4734363257884979, 0.17772792279720306, 0.00513028260320425, -0.24672245979309082, 0.12479473650455475, 0.022717183455824852, -0.18885360658168793, 0.20777222514152527, 0.13772401213645935, -0.24743518233299255, 0.2713084816932678, -0.038419391959905624, 0.25276798009872437, 0.06517630070447922, 0.09090237319469452, 0.3361060619354248, -0.19864816963672638, -0.40956857800483704, 0.20588059723377228, -0.41339945793151855, 0.07169878482818604, -0.24961867928504944, -0.32315754890441895, 0.15916118025779724, -0.25070348381996155, -0.2010604739189148, 0.1776944100856781, -0.25878840684890747, 0.2284643054008484, 0.02607525698840618, -0.06637336313724518, 0.4716349244117737, -0.11419859528541565, -0.1069331169128418, 0.300683856010437, -0.04713915288448334, -0.0889480859041214, -0.18885082006454468, 0.009423937648534775, -0.06973914802074432, 0.24757379293441772, 0.5000485181808472, -0.12181905657052994, -0.036887481808662415, -0.17509916424751282, -0.08124992996454239, 0.1250169724225998, 0.09171152114868164, 0.2032327651977539, 0.1998407244682312, -0.26206663250923157, -0.25989434123039246, -0.03207988291978836, -0.17729422450065613, -0.2796156406402588, 0.2072875201702118, 0.008905921131372452, -0.029169969260692596, 0.24090290069580078, 0.05255497992038727, -0.18734580278396606, -0.036457326263189316, 0.17643506824970245, -0.17674630880355835, -0.06659264862537384, 0.5022158622741699, 0.4060559868812561, -0.24060942232608795, -0.3803834021091461, 0.13189473748207092, -0.06281138956546783, -0.28858107328414917, 0.3547709584236145, 0.16884014010429382, 0.30079466104507446, 0.0165437962859869, 0.3438567519187927, 0.015720413997769356, -0.009917892515659332, 0.1101292073726654, -0.38582226634025574, -0.1822727918624878, 0.02738868072628975, -0.34248796105384827, 0.01652871072292328, 0.17335399985313416, 0.6295424699783325, 0.11228792369365692, 0.053722355514764786, -0.40095219016075134, -0.10037755966186523, -0.09295845031738281, 0.2274135798215866, 0.42836272716522217, -0.16191360354423523, -0.022742338478565216, 0.08611749112606049, 0.17600296437740326, 0.03465525060892105, -0.25261175632476807, -0.3148128092288971, -0.2940259277820587, 0.06613107025623322, 0.17201083898544312, -0.42914360761642456, 0.3799622654914856, 0.07249114662408829, -0.0009611956775188446, -0.30684810876846313, -0.17810934782028198, 0.08933690935373306, -0.13075295090675354, 0.3698423504829407, 0.12455597519874573, 0.11722402274608612, 0.1753130704164505, 0.02805411070585251, 0.12292689085006714, 0.10969956964254379, -0.006421869155019522, 0.1405479609966278, 0.034608326852321625, -0.05131957679986954, -0.19686588644981384, 0.007880285382270813, 0.08520925790071487, 0.27601158618927, 0.10006322711706161, -0.438772976398468, -0.14080946147441864, -0.19075733423233032, 0.3313595950603485, 0.49644798040390015, -0.2855861186981201, -0.017945528030395508, 0.11704516410827637, 0.2279493808746338, -0.43177956342697144, 0.09910136461257935, 0.4069509208202362, 0.0616522952914238, 0.055813271552324295, 0.16057734191417694, -0.19632533192634583, -0.026351988315582275, -0.20055074989795685, -0.015523239970207214, -0.08128728717565536, -0.24509687721729279, 0.1379796713590622, 0.2535308003425598, -0.16215519607067108, 0.07233969122171402, 0.22342942655086517, 0.22484222054481506, 0.20941311120986938, 0.44114774465560913, -0.0880136713385582, 0.033531952649354935, 0.32158350944519043, -0.19772771000862122, 0.05301930010318756, -0.41634416580200195, -0.2213226705789566, 0.004601433873176575, 0.15558458864688873, 0.04314432293176651, -0.030800893902778625, 0.08942398428916931, 0.05543147027492523, -0.04928940534591675, 0.09110884368419647, 0.18420150876045227, -0.17549791932106018, -0.00298005947843194, 0.07021335512399673, 0.10355261713266373, -0.18344441056251526, -0.20070712268352509, -0.052394021302461624, 0.02338329702615738, -0.06116586923599243, 0.0867941826581955, 0.15669389069080353, -0.550983726978302, -0.09850000590085983, 0.028402872383594513, -0.3185490667819977, -0.45628395676612854, 0.07331054657697678, 0.4109584093093872, 0.09548500925302505, -0.12038938701152802, -0.007495516911149025, 0.6174408793449402, 0.43332532048225403, -0.07646678388118744, -0.18405726552009583, -0.28093472123146057, -0.046759411692619324, -0.03220672532916069, 0.08669552206993103, 0.12169453501701355, 0.26255616545677185, 0.5520281791687012, 0.17664310336112976, -0.1991809904575348, 0.12699876725673676, 0.2516283690929413, -0.22347325086593628, -0.1569373905658722, 0.25273796916007996, -0.0195222869515419, -0.126807302236557, -0.2825402617454529, 0.1944851279258728, -0.2954164147377014, 0.1874997913837433, 0.4098544716835022, 0.2683032751083374, 0.15707290172576904, -0.10606128722429276, 0.13780978322029114, 0.18731245398521423, 0.5516355037689209, 0.19069764018058777, 0.3860902190208435, -0.35717928409576416, -0.05542862042784691, -0.5711804032325745, -0.02459009736776352, -0.10539630055427551, -0.03165190666913986, -0.14434467256069183, -0.0839930921792984, 0.03245793655514717, 0.2593311071395874, 0.19673195481300354, 0.16549889743328094, 0.10510310530662537, -0.087548166513443, -0.2856194078922272, -0.17865559458732605, 0.03775536268949509, -0.14089873433113098, 0.1282963901758194, -0.22235074639320374, -0.039765629917383194, -0.48870331048965454, 0.12653306126594543, -0.3787439465522766, -0.2208053022623062, 0.0734933465719223, 0.43571338057518005, 0.22326847910881042, 0.22655770182609558, 0.5930404663085938, -0.03177602216601372, -0.028631087392568588, -0.3275703489780426, -0.20591266453266144, -0.15453989803791046, 0.3455997109413147, 0.036304324865341187, 0.48899349570274353, -0.10716552287340164, -0.015857141464948654, -0.3778458535671234, 0.19499412178993225, -0.3336416482925415, 0.019823601469397545, -0.10277094691991806, 0.1275240182876587, -0.13816146552562714, 0.18170085549354553, 0.061118897050619125, 0.0021522343158721924, -0.1441735327243805, 0.23954461514949799, -0.38935601711273193, -0.4405488669872284, 0.5200940370559692, -0.4261542856693268, -0.6753059029579163, -0.1937555968761444, 0.04242391884326935, -0.24504807591438293, -0.14198993146419525, -0.4619942903518677, 0.06209073215723038, 0.2820001542568207, -0.06905470788478851, -0.27128085494041443, 0.37424397468566895, -0.15494224429130554, 0.02129247412085533, 0.08648073673248291, 0.2581362724304199, 0.07708090543746948, -0.2606578469276428, -0.2184218019247055, -0.23391152918338776 ]
https://github.com/huggingface/datasets/issues/153
Meta-datasets (GLUE/XTREME/...) – Special care to attributions and citations
As @yoavgo suggested, there should be the possibility to call a function like nlp.bib that outputs all bibtex ref from the datasets and models actually used and eventually nlp.bib.forreadme that would output the same info + versions numbers so they can be included in a readme.md file.
Meta-datasets are interesting in terms of standardized benchmarks but they also have specific behaviors, in particular in terms of attribution and authorship. It's very important that each specific dataset inside a meta dataset is properly referenced and the citation/specific homepage/etc are very visible and accessible and not only the generic citation of the meta-dataset itself. Let's take GLUE as an example: The configuration has the citation for each dataset included (e.g. [here](https://github.com/huggingface/nlp/blob/master/datasets/glue/glue.py#L154-L161)) but it should be copied inside the dataset info so that, when people access `dataset.info.citation` they get both the citation for GLUE and the citation for the specific datasets inside GLUE that they have loaded.
47
Meta-datasets (GLUE/XTREME/...) – Special care to attributions and citations Meta-datasets are interesting in terms of standardized benchmarks but they also have specific behaviors, in particular in terms of attribution and authorship. It's very important that each specific dataset inside a meta dataset is properly referenced and the citation/specific homepage/etc are very visible and accessible and not only the generic citation of the meta-dataset itself. Let's take GLUE as an example: The configuration has the citation for each dataset included (e.g. [here](https://github.com/huggingface/nlp/blob/master/datasets/glue/glue.py#L154-L161)) but it should be copied inside the dataset info so that, when people access `dataset.info.citation` they get both the citation for GLUE and the citation for the specific datasets inside GLUE that they have loaded. As @yoavgo suggested, there should be the possibility to call a function like nlp.bib that outputs all bibtex ref from the datasets and models actually used and eventually nlp.bib.forreadme that would output the same info + versions numbers so they can be included in a readme.md file.
[ 0.02462490275502205, 0.11883118748664856, -0.04518550634384155, 0.045058559626340866, 0.04417748749256134, -0.037619445472955704, 0.1661999374628067, 0.4080997109413147, -0.01634668931365013, -0.03822644054889679, -0.1563762128353119, 0.4495481848716736, 0.06510931253433228, 0.16503871977329254, 0.24946624040603638, 0.14327695965766907, -0.08310849219560623, 0.12602801620960236, -0.09865720570087433, -0.12663574516773224, -0.022635992616415024, -0.000576898455619812, 0.2753750681877136, 0.12136171758174896, -0.07267497479915619, 0.06831332296133041, -0.08371351659297943, -0.1722622513771057, 0.05619433522224426, -0.30448994040489197, 0.06940391659736633, 0.26060205698013306, -0.017091089859604836, -0.26806172728538513, -0.00009788490569917485, 0.037766747176647186, 0.34409600496292114, 0.010194750502705574, -0.3477301001548767, -0.42928725481033325, -0.1936509907245636, -0.10309992730617523, 0.14935700595378876, -0.3307286500930786, 0.0033304207026958466, -0.033379118889570236, 0.26747575402259827, -0.1879943311214447, 0.2923164963722229, -0.08928056806325912, 0.2798752188682556, 0.10321354866027832, -0.07154051214456558, 0.16345885396003723, 0.36798495054244995, 0.32410430908203125, 0.0542781800031662, 0.10836230218410492, 0.4975110590457916, -0.05004424601793289, -0.17557641863822937, 0.6305482983589172, 0.04592352360486984, 0.0036622341722249985, 0.26695501804351807, -0.07096555829048157, 0.588731586933136, -0.04922880977392197, -0.09629925340414047, 0.5263558626174927, 0.22271984815597534, -0.6074842214584351, -0.43988779187202454, -0.3692808747291565, 0.04517558217048645, 0.2873601019382477, -0.10654165595769882, 0.2674502730369568, -0.027687905356287956, 0.10631734132766724, -0.22404246032238007, -0.06612924486398697, 0.1180194765329361, -0.04831276088953018, 0.4212709963321686, 0.35432320833206177, -0.13381023705005646, 0.11918096989393234, -0.051693838089704514, -0.2293419986963272, -0.00886859092861414, -0.1549331098794937, 0.040007393807172775, -0.08089379221200943, 0.12323872745037079, -0.3047405481338501, 0.20019671320915222, 0.09237824380397797, 0.30884629487991333, 0.13671784102916718, 0.12200964242219925, 0.026614665985107422, -0.14607733488082886, 0.2947077453136444, 0.5069966316223145, -0.10774818062782288, 0.08334392309188843, -0.1293119490146637, 0.41283297538757324, -0.07504404336214066, -0.09950542449951172, 0.11611974239349365, 0.03778481483459473, 0.2770671546459198, -0.401712566614151, -0.032189883291721344, 0.13513149321079254, -0.3560897409915924, -0.11040020734071732, -0.20983371138572693, -0.004396215081214905, -0.11231920123100281, -0.1871228963136673, 0.07380161434412003, -0.07472660392522812, 0.035508591681718826, -0.24783052504062653, -0.06336697936058044, -0.09757313132286072, -0.252942830324173, -0.15594527125358582, -0.007163789123296738, -0.4421658515930176, 0.06290097534656525, 0.10756917297840118, 0.07178153097629547, 0.43800345063209534, -0.14863093197345734, -0.2177494615316391, -0.09323649108409882, 0.08063501119613647, -0.11549617350101471, 0.14180530607700348, 0.04639974981546402, -0.012087889015674591, 0.13544902205467224, -0.06234234943985939, -0.15858590602874756, -0.5453762412071228, -0.28122955560684204, -0.23353472352027893, -0.11426067352294922, -0.1217736005783081, 0.21410010755062103, -0.23788057267665863, -0.03367139399051666, -0.1656147837638855, 0.34365469217300415, 0.0028633922338485718, -0.20420801639556885, -0.15216189622879028, 0.12598788738250732, -0.17896561324596405, -0.23217663168907166, 0.16762763261795044, 0.41920411586761475, 0.0847228467464447, -0.39065495133399963, 0.08570250868797302, -0.1678958237171173, -0.22493407130241394, 0.08241890370845795, -0.24358250200748444, 0.22647187113761902, 0.05467312037944794, -0.051031410694122314, 0.4179321229457855, -0.4451332688331604, -0.2007090002298355, 0.10562978684902191, 0.006958402693271637, -0.005815258249640465, 0.1629912555217743, 0.26262974739074707, 0.2648095190525055, -0.43696677684783936, 0.11508231610059738, 0.22641894221305847, -0.09097564965486526, 0.11319536715745926, -0.09793178737163544, -0.35999786853790283, -0.19714240729808807, 0.11532111465930939, -0.19537214934825897, -0.14056634902954102, 0.36876359581947327, 0.24602727591991425, 0.24870651960372925, -0.07087516784667969, 0.09151986241340637, 0.11252745240926743, 0.03910735249519348, -0.1303311437368393, -0.08619068562984467, -0.150332972407341, -0.1870400309562683, 0.024914152920246124, -0.09647111594676971, -0.06429114192724228, 0.2693207561969757, -0.4242703914642334, 0.18448588252067566, -0.024529552087187767, 0.08341379463672638, -0.3695572018623352, 0.3480745255947113, 0.15379592776298523, 0.1634940207004547, 0.15205150842666626, -0.04221127927303314, 0.06556118279695511, -0.3310510516166687, -0.011312664486467838, -0.5354912281036377, 0.09428834170103073, -0.11872442811727524, 0.07481710612773895, 0.3878873884677887, 0.4740017056465149, -0.01673807203769684, 0.12441422790288925, 0.09383557736873627, 0.11637090146541595, -0.00997716560959816, 0.5856168270111084, 0.13583850860595703, 0.5444413423538208, 0.3542375862598419, -0.22911536693572998, 0.1989939957857132, -0.27618008852005005, -0.033404890447854996, -0.2197767198085785, -0.2923257052898407, 0.07427677512168884, 0.08066952973604202, 0.16158676147460938, 0.24011807143688202, -0.0031543802469968796, 0.020698251202702522, -0.1276390254497528, -0.35400018095970154, -0.26468390226364136, -0.19252733886241913, 0.29895055294036865, 0.10642282664775848, 0.23761126399040222, -0.04579038918018341, 0.3892670273780823, 0.588792085647583, 0.25828179717063904, 0.07220785319805145, -0.1035115197300911, -0.39186206459999084, -0.36073723435401917, 0.18275320529937744, 0.3668742775917053, 0.010680332779884338, 0.41479426622390747, 0.22082582116127014, 0.07036717981100082, 0.03062017261981964, -0.0070170266553759575, -0.014628954231739044, 0.06396687030792236, 0.003968362230807543, -0.10230503231287003, 0.18295328319072723, 0.2220141887664795, -0.019727297127246857, 0.05020565912127495, -0.08580245077610016, -0.23507699370384216, -0.3454780876636505, 0.04441835731267929, -0.1313547044992447, -0.32644400000572205, -0.3867815434932709, -0.19035950303077698, -0.12769381701946259, -0.29186397790908813, 0.05014713108539581, 0.2012414187192917, -0.20103800296783447, 0.22246812283992767, 0.11062219738960266, 0.20774482190608978, -0.3440878391265869, 0.20714862644672394, 0.08547475934028625, -0.3341502547264099, -0.08403215557336807, 0.13938716053962708, 0.27254176139831543, 0.25801634788513184, 0.3359662592411041, -0.0646514892578125, 0.026168551295995712, -0.4569425880908966, -0.5159947872161865, 0.18272821605205536, -0.2701185345649719, 0.2415599226951599, 0.15683475136756897, -0.4601935148239136, 0.1228703111410141, -0.1160469576716423, -0.05075036734342575, -0.18610748648643494, -0.05366284400224686, -0.0073615144938230515, -0.0501452200114727, -0.12785984575748444, -0.16686461865901947, -0.26103994250297546, -0.21578451991081238, -0.33705613017082214, 0.16645009815692902, 0.038057465106248856, 0.2831122875213623, 0.0774715393781662, -0.2718668580055237, -0.03692002594470978, -0.4590597152709961, 0.42809560894966125, -0.12476717680692673, -0.3134247660636902, 0.11346720159053802, -0.23236043751239777, -0.28865379095077515, -0.11889617890119553, 0.008053876459598541, 0.05663027614355087, -0.04353887587785721, -0.4064202904701233, -0.3878153860569, 0.17520298063755035, -0.44793274998664856, 0.16241583228111267, 0.3990524113178253, 0.23296374082565308, 0.08854395896196365, -0.1322377324104309, -0.05130919814109802, -0.1691470593214035, 0.11762996762990952, 0.007370444014668465, 0.30564960837364197, -0.007105778902769089, -0.278018981218338, 0.26000460982322693, 0.4271396994590759, 0.3567826449871063, -0.21907208859920502, -0.014638558030128479, 0.11768433451652527, 0.1751934438943863, 0.23225459456443787, -0.030902687460184097, 0.27357301115989685, -0.21186476945877075, 0.26104217767715454, 0.4443437457084656, 0.12798187136650085, -0.13747131824493408, -0.14727215468883514, -0.013734782114624977, -0.14515632390975952, -0.3161194920539856, -0.07021387666463852, -0.1799122393131256, 0.07619578391313553, 0.23936593532562256, 0.13436442613601685, -0.01131898257881403, -0.008871939033269882, 0.07536172866821289, 0.034578241407871246, 0.0030816122889518738, 0.23306028544902802, -0.17828421294689178, -0.08082348853349686, -0.2139739692211151, -0.00033326447010040283, -0.04372534528374672, -0.09557969123125076, 0.08043192327022552, -0.2571633756160736, 0.04467921704053879, 0.04329641908407211, 0.08023492991924286, -0.40352192521095276, 0.05050806701183319, 0.021239962428808212, -0.07599162310361862, -0.21104827523231506, 0.20838414132595062, -0.14042778313159943, 0.027648787945508957, 0.3837427496910095, 0.3798471689224243, -0.3838362991809845, -0.09996286779642105, 0.22187000513076782, -0.2906835973262787, -0.08537861704826355, 0.012761334888637066, 0.043305303901433945, 0.08452662080526352, -0.18617188930511475, -0.33465707302093506, -0.25457698106765747, -0.2915421426296234, 0.06883911788463593, 0.08178532123565674, -0.05031905323266983, 0.1893039047718048, 0.2378101795911789, 0.5395800471305847, 0.03660627081990242, -0.021402211859822273, 0.1680482029914856, 0.274347186088562, 0.20829497277736664, 0.06861511617898941, 0.4749734103679657, -0.3105337619781494, 0.1759103685617447, 0.004865951836109161, 0.03054271638393402, 0.32779914140701294, 0.14061030745506287, 0.33354678750038147, -0.23535990715026855, -0.0730704665184021, -0.3103368878364563, -0.34430164098739624, 0.0666370838880539, -0.11510150134563446, -0.0017652991227805614, -0.3705744743347168, -0.377532422542572, 0.49861860275268555, 0.26806285977363586, -0.20941728353500366, 0.2011912763118744, 0.41375041007995605, -0.23429743945598602, 0.260364830493927, 0.2723672091960907, 0.919163703918457, 0.1498701125383377, 0.18000419437885284, -0.22195464372634888, -0.1232442557811737, 0.7734662890434265, -0.2378212958574295, -0.10323130339384079, -0.4030282199382782, -0.05088997632265091, -0.0875692367553711, -0.04834636673331261, -0.060973890125751495, -0.009710617363452911, -0.15620210766792297, 0.038874123245477676, 0.46102219820022583, 0.05303993076086044, -0.020745305344462395, 0.28226396441459656, -0.028583461418747902, -0.42166489362716675, -0.31854403018951416, 0.1946774125099182, -0.28904664516448975, 0.05459617078304291, 0.023621991276741028, -0.3277186155319214, 0.14453817903995514, 0.011711705476045609, -0.12256170064210892, 0.0325649194419384, -0.21892637014389038, -0.018280476331710815, 0.2351805716753006, 0.005948640406131744, 0.12879039347171783, -0.08626595139503479, 0.407809853553772, 0.1767653524875641, -0.18668246269226074, -0.1501101553440094, 0.0778152123093605, 0.046161338686943054, -0.05451954901218414, -0.11223553121089935, 0.41390320658683777, 0.051586151123046875, -0.08723115175962448, -0.16001570224761963, 0.2364194095134735, -0.18246333301067352, 0.09227386116981506, -0.23909305036067963, -0.0663059875369072, 0.014317812398076057, 0.15412744879722595, 0.47424668073654175, -0.07436524331569672, -0.19869683682918549, 0.1723300963640213, 0.048757635056972504, -0.16338421404361725, 0.38674819469451904, 0.16217312216758728, -0.0545145720243454, -0.001920890063047409, 0.1609744429588318, 0.0643421858549118, 0.2746698260307312, -0.15387007594108582, 0.013862807303667068, -0.05893030762672424, -0.236745685338974, -0.16810128092765808, -0.25334835052490234, -0.04777322709560394, -0.06208815053105354, -0.16148467361927032, -0.2547164559364319, -0.14798210561275482, 0.420121967792511, 0.24203884601593018, 0.0814245268702507, 0.012998189777135849, -0.34770819544792175, -0.12740887701511383, 0.5248770117759705, -0.2895520329475403, 0.23386582732200623, 0.277862548828125, -0.02512691169977188, -0.07460156828165054, 0.3528408110141754, -0.4569593369960785, -0.2785535156726837, -0.10572924464941025, 0.22412413358688354, 0.28034231066703796, -0.04705461859703064, 0.06414984911680222, -0.15294373035430908, 0.06287609785795212, 0.20379002392292023, -0.26876962184906006, -0.29595205187797546, -0.19752517342567444, 0.04678468406200409, 0.07474029809236526, 0.24886904656887054, -0.027854178100824356, 0.14665497839450836, -0.01554146409034729, -0.18313725292682648, 0.2784823179244995, 0.042616501450538635, 0.0743093341588974, 0.2869681119918823, -0.24783267080783844, 0.05834930017590523, 0.09733802080154419, 0.18015837669372559, 0.027476318180561066, 0.07008714973926544, -0.0790480524301529, 0.1992207169532776, -0.2649214267730713, -0.07016179710626602, -0.09504298865795135, 0.20056363940238953, 0.13857483863830566, 0.10875784605741501, 0.20339322090148926, 0.284162700176239, -0.1086219847202301, 0.23085343837738037, 0.30033016204833984, 0.2504829168319702, -0.07011526077985764, 0.12882739305496216, 0.04976353421807289, 0.28582963347435, -0.14439094066619873, 0.026550548151135445, 0.17039021849632263, -0.0648997500538826, 0.19665206968784332, 0.34159865975379944, 0.6348130702972412, 0.14371706545352936, -0.03127891570329666, 0.016565296798944473, 0.4313780963420868, -0.30905312299728394, 0.10850769281387329, -0.11509187519550323, 0.07715611159801483, -0.034104008227586746, 0.2147911936044693, 0.3228098154067993, 0.33151775598526, -0.11946356296539307, 0.15535107254981995, 0.4127907156944275, 0.35527029633522034, -0.014312174171209335, 0.401996910572052, 0.19149306416511536, 0.624461829662323, 0.13227097690105438, 0.32882872223854065, 0.1824137270450592, -0.09309744834899902, 0.06093726307153702, 0.23565830290317535, -0.1685182750225067, -0.1678880900144577, 0.17440849542617798, 0.10290724784135818, -0.28382381796836853, -0.09770619869232178, -0.031937576830387115, 0.04473218321800232, -0.1604589819908142, -0.15144850313663483, -0.304604172706604, 0.2555142343044281, -0.002170160412788391, -0.019831642508506775, -0.5262688398361206, 0.13223689794540405, 0.07549495249986649, 0.32797637581825256, -0.2590016722679138, 0.1548559069633484, -0.17462213337421417, 0.03820298612117767, -0.03188903257250786, 0.6182312965393066, 0.20117488503456116, 0.05096498876810074, -0.09202887117862701, -0.0575840063393116, -0.1386912316083908, 0.025433549657464027, -0.21762417256832123, -0.0062842294573783875, 0.08410719782114029, -0.2035936564207077, 0.49799343943595886, 0.17999105155467987, -0.05804260075092316, 0.0022595785558223724, -0.08782973885536194, -0.17495426535606384, -0.09725907444953918, 0.17967766523361206, 0.1109035313129425, -0.05545736476778984, -0.09026742726564407, 0.12334850430488586, -0.3803673982620239, -0.11343896389007568, 0.5566616654396057, -0.053652193397283554, 0.20025649666786194, -0.32716938853263855, 0.18413561582565308, 0.1794319748878479, 0.2267819195985794, 0.45068296790122986, -0.13336682319641113, 0.09146837145090103, 0.0038500353693962097, -0.5929583311080933, -0.09537626057863235, 0.05234421417117119, -0.19131621718406677, 0.022808905690908432, 0.2161400020122528, 0.06704981625080109, 0.3399181365966797, -0.20975185930728912, -0.06203457713127136, -0.29106056690216064, -0.0899992287158966, -0.17501504719257355, -0.2186880260705948, -0.5035046339035034, -0.2248721420764923, 0.12286306917667389, -0.11334758996963501, -0.07005196809768677, -0.08033427596092224, 0.10126311331987381, -0.09100492298603058, 0.018323838710784912, 0.23068183660507202, 0.21875245869159698, 0.3465237021446228, 0.0849299281835556, -0.004365704953670502, 0.033129408955574036, -0.18067245185375214, -0.31375521421432495, -0.04664295166730881, -0.13337622582912445, -0.0495012104511261, -0.15013337135314941, 0.16404496133327484, -0.3214975893497467, -0.053616415709257126, -0.12262512743473053, -0.10293606668710709, 0.20957280695438385, -0.040754981338977814, -0.33114033937454224, -0.07515434175729752, -0.15126335620880127, 0.060662321746349335, 0.08143854886293411, 0.33464759588241577, -0.12461864948272705, 0.0323789119720459, -0.08449000120162964, -0.3636503517627716, 0.0457066148519516, -0.4250534474849701, -0.07306592911481857, -0.10394976288080215, 0.44011035561561584, -0.16935771703720093, -0.03394148498773575, -0.8108167052268982, 0.037491656839847565, 0.3362651765346527, -0.211969792842865, -0.03729724884033203, 0.1978936642408371, -0.10537351667881012, -0.10267294198274612, -0.17498894035816193, -0.20420309901237488, -0.06274262815713882, -0.21993385255336761, -0.03279699385166168, -0.35368895530700684 ]