html_url
stringlengths
48
51
title
stringlengths
5
268
comments
stringlengths
63
51.8k
body
stringlengths
0
36.2k
comment_length
int64
16
1.52k
text
stringlengths
164
54.1k
embeddings
sequence
https://github.com/huggingface/datasets/issues/4291
Dataset Viewer issue for strombergnlp/ipm_nel : preview is empty, no error message
Hi @leondz, thanks for reporting. Indeed, the dataset viewer relies on the dataset being streamable (passing `streaming=True` to `load_dataset`). Whereas most of the datastes are streamable out of the box (thanks to our implementation of streaming), there are still some exceptions. In particular, in your case, that is due to the data file being TAR. This format is not streamable out of the box (it does not allow random access to the archived files), but we use a trick to allow streaming: using `dl_manager.iter_archive`. Let me know if you need some help: I could push a commit to your repo with the fix.
### Link https://huggingface.co/datasets/strombergnlp/ipm_nel/viewer/ipm_nel/train ### Description The viewer is blank. I tried my best to emulate a dataset with a working viewer, but this one just doesn't seem to want to come up. What did I miss? ### Owner Yes
103
Dataset Viewer issue for strombergnlp/ipm_nel : preview is empty, no error message ### Link https://huggingface.co/datasets/strombergnlp/ipm_nel/viewer/ipm_nel/train ### Description The viewer is blank. I tried my best to emulate a dataset with a working viewer, but this one just doesn't seem to want to come up. What did I miss? ### Owner Yes Hi @leondz, thanks for reporting. Indeed, the dataset viewer relies on the dataset being streamable (passing `streaming=True` to `load_dataset`). Whereas most of the datastes are streamable out of the box (thanks to our implementation of streaming), there are still some exceptions. In particular, in your case, that is due to the data file being TAR. This format is not streamable out of the box (it does not allow random access to the archived files), but we use a trick to allow streaming: using `dl_manager.iter_archive`. Let me know if you need some help: I could push a commit to your repo with the fix.
[ -0.5941502452, 0.0154772494, 0.1116633341, 0.2606789768, -0.152930513, -0.1338221431, 0.2904717922, 0.2681366503, 0.0844315961, 0.2371055633, 0.0127624674, 0.1334278733, -0.3677476943, 0.0229738876, 0.0893161371, -0.2069136202, -0.0901445225, 0.4387164414, -0.1709370613, -0.0357658453, 0.0000439229, -0.0500817001, -0.3697964549, -0.0981756821, 0.2430106848, 0.1628290415, -0.0169941429, 0.0875566378, -0.2129042596, -0.5013253689, 0.1568904668, 0.0290888045, 0.4434940815, 0.4764745831, -0.0001143291, 0.0590150356, 0.5336082578, -0.1721927971, -0.2207333595, -0.3665744364, -0.1042753607, 0.0299767759, 0.3377231061, -0.1147819608, -0.2951819897, -0.4295989871, 0.2964657545, -0.2538515925, 0.3996419013, 0.2763581276, 0.1636177301, 0.4095644653, -0.0791268945, -0.0339843668, 0.0689692572, 0.2879213691, -0.2252507508, 0.070765011, 0.0303247962, 0.2253851444, -0.1104778945, 0.3227474093, -0.1295972168, 0.0159947444, 0.3016057909, 0.0295168199, -0.0843176395, -0.2898899615, -0.0100486055, 0.4630506635, 0.75978297, -0.0745313317, -0.054638911, 0.1322189569, 0.2434215695, -0.1347715557, 0.1288358718, 0.2435569316, -0.3353625536, 0.1350526065, -0.1384792328, -0.0922189429, -0.2370916605, -0.0845949426, -0.1441578567, 0.1129646897, -0.1270328313, 0.0747158304, 0.1418991238, -0.0531422719, 0.0104744928, -0.0828695968, -0.1980441064, -0.0453636386, -0.2052705884, -0.0374991484, 0.1801974028, -0.3278357387, -0.1177716479, 0.5059679747, 0.5098189712, 0.0792589262, 0.0793882012, 0.2004880458, 0.0849132985, -0.132350713, 0.110612452, 0.0920038968, 0.2700298429, -0.0637784004, 0.2326980382, -0.2723047733, -0.2461488396, 0.1393264681, 0.0132975057, -0.2855447233, 0.3722068965, -0.2950871885, -0.1200428307, 0.1307469755, -0.4762996435, 0.0533912517, 0.0127449539, 0.3302428722, -0.4018425941, 0.1187695116, 0.2641046345, 0.1264961362, -0.2791269422, -0.3729017973, -0.1162845269, -0.0432897471, -0.1977443695, 0.0276373941, 0.402592212, -0.0834857821, -0.0032104063, -0.1097257808, -0.1436003149, 0.0303836409, 0.3005194068, -0.0617134459, 0.2661832273, 0.2871619463, 0.2963688672, 0.0762529299, 0.0609006658, -0.3154716492, -0.0533763096, 0.3552182317, -0.025516605, -0.163856253, -0.3076989949, 0.1413361877, -0.4597539902, 0.0263199136, -0.4878700078, 0.1332459152, -0.4504693151, -0.5213211179, -0.3146470189, -0.1433103234, -0.0631833971, -0.0308598373, 0.6371549368, 0.6547688246, -0.6462319493, -0.0436743274, -0.4195152819, -0.3337060511, 0.3038482368, 0.036242038, -0.0372022688, -0.1720705032, -0.2856006026, 0.095583275, 0.5270480514, 0.0318241715, -0.3764595389, 0.2826695442, -0.1322071254, -0.0617800802, 0.0315856487, 0.1187549978, 0.2856101096, 0.0390027277, -0.5029680133, -0.1863673776, 0.1260086745, -0.1085567921, -0.30494681, 0.0062231445, 0.0530383959, 0.2351608872, 0.1965220571, 0.120221734, -0.0721348301, 0.1775571704, 0.1413998008, 0.2355889231, 0.4079595208, 0.2077417374, 0.3541072309, 0.0400034003, -0.1977529675, -0.1701382697, -0.4264080226, 0.0291855726, 0.0143180015, 0.1824581772, 0.1156389713, 0.0388647169, -0.06458731, -0.0776702315, -0.2305270731, -0.210997507, 0.1521054357, 0.2390356362, -0.2236052305, 0.0952798724, -0.3134433329, 0.0745911896, -0.1209556684, -0.0701011121, -0.2386741787, 0.6265285015, -0.2262289971, -0.177688241, -0.0464947708, -0.063470602, -0.2365184128, -0.0476418808, 0.0269201268, 0.2215414643, -0.2861153483, 0.0175314602, 0.0220094323, 0.0306313001, 0.1895122677, -0.9186627269, 0.1714149117, 0.1536275148, 0.1311346442, -0.1124401316, -0.412709713, -0.0315162428, 0.2327937782, 0.183725372, 0.0300519764, 0.0069894921, 0.0275063161, -0.1149500832, -0.2700667083, -0.1032942012, 0.1273008883, 0.1774428636, 0.1729771793, -0.0971588194, -0.5576840639, -0.1560449004, -0.0718376562, 0.2308599651, -0.02166868, 0.0931689814, -0.4233149886, -0.0084459847, 0.1549089849, 0.1271228641, 0.1608242691, 0.1464391053, 0.2777133882, 0.2064207345, 0.0562895723, -0.0776684582, -0.1434753239, -0.045014143, -0.0898784176, 0.1409924328, -0.0962100849, 0.2244224101, -0.1752946228, -0.2784504592, 0.1916616559, 0.4294983447, -0.2637165785, -0.0321699418, -0.4350876212, -0.3543919921, -0.1151124835, 0.1664984375, -0.1836152822, -0.2178589106, -0.179418847, 0.4941994846, 0.0050914218, 0.0948795453, -0.3751083612, 0.2324288189, 0.0819994286, 0.2545337081, -0.2815338969, 0.0720102489, -0.3631711304, 0.1604940742, 0.3185358047, 0.1557279676, 0.3065708876, -0.1413014084, 0.1325986534, -0.2842805684, -0.2019464076, 0.1559815258, 0.2436573058, 0.009067731, 0.0448226593, 0.3969713151, -0.1475197524, -0.1392627507, 0.2854153812, -0.2093854696, -0.1654359996, 0.057795614, -0.006791261, 0.0392412692, -0.2319550067, -0.1603737473, -0.2265946418, -0.5262544155, 0.0716880113, -0.073531501, 0.1398599297, 0.0143164238, 0.1746157259, 0.2183092386, -0.0397552475, -0.2611753345, 0.084607549, -0.3063941002, 0.3101693988, -0.3783235848, -0.5071271062, 0.4073181748, 0.0702966601, 0.040317867, 0.0057261363, -0.8476647735, 0.1456041634, 0.1111366302, -0.0095736682, -0.0342346877, -0.276955992, 0.1930356622, 0.067377381, 0.0178302824, -0.0741650537, -0.0976848751, -0.0102184657, -0.2523365915, 0.4114535153, 0.191570729, 0.394854784, 0.0258616693, 0.2563775778, 0.3870282471, -0.0463127978, 0.3676632941, -0.2059028, 0.6197297573, -0.1257539243, -0.0175102968, 0.0833940953, 0.2419942617, 0.1543847024, 0.2275824845, 0.043643564, -0.2517355382, -0.3891763091, 0.2420557886, 0.0282461774, -0.2265811861, 0.2855305374, -0.2113329172, -0.0252526458, 0.0207603741, 0.1417780966, -0.0200676806, -0.2744263113, -0.2842494249, 0.4708939493, 0.2631099224, 0.0857363343, -0.3388928175, 0.343865037, -0.447008878, 0.0138894022, -0.0777893364, 0.422876507, -0.1594686359, -0.0388269983, 0.1295731068, 0.022523934, 0.2013153285, -0.2414650768, 0.0348012783, 0.3943342566, 0.1130509377, -0.3029448092, -0.1239623725, -0.1586229503, -0.136936456, 0.130502373, -0.0057863533, -0.0870023221, -0.2002398819, 0.359022975, -0.1020404026, -0.2362777293, -0.3214558065, -0.1168257892, 0.0305509176, 0.0981109664, -0.1550045162, -0.1522966176, -0.1354222298, -0.1813108027, -0.0010713447, -0.0652714297, 0.0468812957, 0.1905877292, 0.0801942945, 0.4163569808, 0.034709055, 0.2813803554, 0.3209666312, 0.174214825, 0.4530291855, 0.3894591331, 0.0763689652, -0.1052616239, 0.5020315647, -0.1448143721, 0.0704963133, 0.0661185011, 0.1549074799, -0.1441289037, 0.3519827425, 0.1237688959, -0.3788995445, 0.3590795398, 0.2335478216, -0.3076376021, -0.3736992776, -0.4755598307, 0.4846490026, 0.0148653928, 0.1276731342, 0.2136386633, 0.1238357648, 0.0829627961, 0.0690210089, -0.0185179748, 0.8461377025, 0.2070325017, 0.0202215668, 0.3457297385, -0.0087844292, 0.196370542, -0.0383142233, 0.0407849476, -0.3314550221, -0.463060528, -0.1403217018, -0.1268372983, 0.1349355876, 0.0943713039, -0.308011353, -0.1933513433, 0.3685699403, 0.1671334356, 0.1153712571, 0.1887414604, 0.0874465406, 0.0938178152, 0.096966207, 0.1559844464, -0.1079799309, 0.300762862, 0.0019320258, -0.1442150027, 0.0190557744, -0.0272918474, -0.5761521459, 0.22594136, 0.1949218512, -0.1842586249, 0.0396036506, -0.3388299346, 0.3068272471, 0.270786047, -0.3327918649, 0.2780113518, -0.2981599867, 0.1761681139, 0.1080228686, -0.0738781989, 0.0294215959, 0.2726036608, 0.180334866, -0.2774635255, -0.2208392173, 0.2592914999, -0.1618184596, -0.1946543455, 0.1198949665, -0.1021932587, 0.4448920488, -0.0284947455, 0.1430937797, 0.0273169968, -0.1559924632, 0.0427369438, 0.1203873456, 0.1310776174, -0.0444427915, -0.0120386193, 0.3223082125, -0.1392180175, 0.0342219956, 0.5260997415, -0.0906965509, 0.1105946973, 0.5690432191, 0.257304132, -0.1144025177, -0.1874643713, 0.1226682141, 0.4952023625, -0.3077559173, -0.0661024302, -0.2463472635, 0.2111612558, 0.4379188716, 0.2522176802, 0.1708690077, -0.3055122793, -0.2263648212, -0.3340679109, -0.1744432747, 0.1209446415, -0.1164733171, 0.3103097677, -0.0472381227, 0.0247521363, 0.197315529, -0.2324555814, -0.3199236095, -0.0184408836, -0.1562668532, 0.069480598, 0.1268723458, 0.0045511033, 0.1466527283, -0.1102472246, 0.0012927697, 0.0787976906, -0.3430275321, -0.1162360981, -0.2037626654, 0.1607631445, 0.1040094048, -0.2984414697, -0.0761575401, -0.0492671393, -0.2699949145, 0.095282346, -0.1735914052, -0.062783666, -0.1663514376, 0.0736265182, 0.2316929847, 0.1610842198, -0.3707666993, 0.3622833192, 0.185622111, 0.4587868452, -0.1911508888, 0.1304686666, 0.0629783645, -0.0206074435, -0.3432031274, 0.0233360231, -0.0217113011, -0.1129348353, 0.4992696941, -0.1821292937, 0.4434138834, -0.0398806669, 0.4819402993, 0.3712092042, 0.0218660086, -0.0509227179, 0.5512432456, 0.15831168, -0.1639169008, 0.320284158, 0.1127828285, 0.4649906754, 0.0831450075, -0.0181486346, -0.1728558838, -0.0671463907, -0.0041846936, 0.1730790138, 0.3002869785, -0.2164314538, 0.2149406821, 0.4177623093, -0.2102819085, 0.0690270439, 0.0334553197, 0.2184548825, -0.0259589981, 0.2629742622, 0.0767930076, 0.2135236561, 0.0517882966, 0.2528543472, -0.0460589901, -0.5343078375, -0.1047343016, 0.2326302379, 0.006382199, 0.2329644263, 0.012746078, 0.1972603202, -0.1162689924, 0.0450209714, -0.1658352911, 0.2039710283, -0.1418293864, 0.1760438383, -0.5118870735, -0.1388290375, -0.0836369917, 0.0588626303, 0.1677358001, 0.0418688208, -0.227762416, 0.2700251639, -0.1164029166, -0.284675926, -0.2188414931, 0.12106058, 0.0106690666, -0.2501954734, 0.1815727204, 0.4443156421, -0.0225501265, 0.1934145987, 0.4289497137, 0.2338000685, 0.3323462009, 0.2736908495, -0.0145306652, 0.23130925, -0.1597273648, -0.0804770514, 0.0173205119, 0.4057659507, -0.1950690001, 0.1976146251, 0.0590230599, -0.1518639922, 0.2680940628, -0.2535459697, 0.3100645542, -0.01312852, 0.0532386862, -0.1978149414, -0.1422072798, -0.1887307912, -0.4362283349, -0.2252277136, 0.097672753, 0.0298927184, -0.0030486775, -0.0715201497, -0.2767507434, 0.0541422889, 0.1095544323, 0.3713501692, 0.4065033793, 0.0243959334, 0.0929100215, -0.364446938, -0.8054866195, 0.3159635067, -0.1083531305, -0.0763240159, 0.1350344867, 0.2264100015, -0.1150057167, 0.1743037254, -0.0659162924, 0.0170821566, -0.0346929841, 0.4664407372, -0.3589348495, -0.2299095839, 0.2246567309, 0.1713311672, -0.220544681, -0.0784841552, 0.2546993494, -0.1592403054, 0.0350007676, -0.0659826174, 0.0123209404, -0.284799546, 0.0995616987, 0.2980928421, -0.0301746894, 0.4470245838, 0.142166853, -0.2541333139, -0.3089751899, 0.1521017998, -0.1910653263, -0.0412146412, 0.3676814735, 0.5103719234, -0.0578181408, 0.0010653208, -0.2208048999, -0.0413183831, -0.0176873691, 0.0414292999, -0.6576736569, -0.0335068926, -0.1568508595, 0.0357262269, 0.2558899522, -0.1250771433, 0.0352605321, -0.2219291329, -0.3823105395, -0.209740594, 0.3522504866, -0.3263478577, 0.1347814798, -0.2660873234, -0.2149320245, -0.145790413, 0.0258554351, -0.479943037, -0.0219846945, 0.2943274975, -0.1970777363, 0.3519704938, -0.0151863173, -0.1537107378, 0.1218231171, -0.1365558803, 0.5629573464, 0.020917736, -0.1748509258, -0.0144348945, -0.1541685909 ]
https://github.com/huggingface/datasets/issues/4291
Dataset Viewer issue for strombergnlp/ipm_nel : preview is empty, no error message
Ah, right! The preview is working now, but this explanation is good to know, thank you. I'll prefer formats with random file access supported in datasets.utils.extract in future, and try out this fix for the tarfiles :)
### Link https://huggingface.co/datasets/strombergnlp/ipm_nel/viewer/ipm_nel/train ### Description The viewer is blank. I tried my best to emulate a dataset with a working viewer, but this one just doesn't seem to want to come up. What did I miss? ### Owner Yes
37
Dataset Viewer issue for strombergnlp/ipm_nel : preview is empty, no error message ### Link https://huggingface.co/datasets/strombergnlp/ipm_nel/viewer/ipm_nel/train ### Description The viewer is blank. I tried my best to emulate a dataset with a working viewer, but this one just doesn't seem to want to come up. What did I miss? ### Owner Yes Ah, right! The preview is working now, but this explanation is good to know, thank you. I'll prefer formats with random file access supported in datasets.utils.extract in future, and try out this fix for the tarfiles :)
[ -0.6053087711, -0.0000201275, 0.0799933597, 0.2253192961, -0.1501957178, -0.1735897362, 0.2938115001, 0.2592690885, 0.0822659805, 0.301726222, 0.0461583324, 0.022501966, -0.3796801269, 0.0506925099, 0.03596, -0.1937340349, -0.0915672556, 0.3536639512, -0.1370633394, -0.0472362041, -0.0756078213, -0.0037191762, -0.3999133706, -0.0477565229, 0.1961969137, 0.1561694741, -0.0829183236, -0.0286820009, -0.2558894455, -0.4636775553, 0.2054644525, 0.1238135695, 0.3929213583, 0.4485907853, -0.0001192772, 0.0834411085, 0.5539522171, -0.102578178, -0.1196634844, -0.3844614625, -0.0721902847, -0.0095718531, 0.35363096, -0.0915513188, -0.3670881391, -0.4111126959, 0.3057406843, -0.2640912533, 0.2740582824, 0.2770543098, 0.1354030669, 0.4375462532, -0.1754001081, -0.1505256444, 0.1659615636, 0.2888663113, -0.1692209393, 0.001585643, 0.1400709152, 0.0975446925, -0.0997872055, 0.2901645899, -0.0880875885, -0.0970715359, 0.2652718723, 0.095863618, -0.1455849707, -0.3172337115, -0.0202031303, 0.4698252678, 0.8066284657, -0.0384702906, -0.1539165676, 0.1013440788, 0.2350113392, -0.0339594893, 0.1932144463, 0.2421210706, -0.2519103289, 0.1834480166, -0.1799942106, -0.0033692198, -0.1999910027, 0.0040999893, -0.2283171266, 0.0396893099, -0.1354772449, 0.0785935149, 0.145089522, -0.0003115304, -0.0561790019, -0.1821167022, -0.2273864299, -0.0434693061, -0.1042960584, 0.0122233639, 0.2391905338, -0.3924232423, -0.1369440258, 0.5188081861, 0.4142097831, 0.1370666921, 0.0442603156, 0.2020860463, 0.1127815172, -0.1769751906, 0.1368556917, 0.338306129, 0.306517154, -0.0086880159, 0.3201614022, -0.2139275074, -0.1491423696, 0.0069056349, -0.1353096217, -0.2898711264, 0.3643853664, -0.2885157466, -0.2345031798, 0.211183235, -0.4104499817, 0.0637505427, 0.0126737934, 0.3672566712, -0.3555161655, 0.0490251742, 0.3241553307, 0.1322913617, -0.3283002973, -0.2251181901, -0.1858362854, 0.0250512064, -0.2317859381, -0.0003003114, 0.3723363578, 0.12341775, -0.0406462476, -0.1042672619, -0.1585452557, 0.0001009371, 0.175142765, -0.0512480475, 0.2113666385, 0.3448687196, 0.2907159925, 0.0607685521, 0.0180003326, -0.3365226984, -0.0452704541, 0.3667688966, 0.1234362051, -0.1177286655, -0.2751761973, 0.1298562884, -0.5374485254, 0.0264240056, -0.4953741729, 0.1911562532, -0.4559735656, -0.3785144389, -0.2894459665, -0.1961871982, 0.0081411507, 0.0307119656, 0.6020917296, 0.6777383685, -0.5689072609, -0.079343915, -0.3471742272, -0.4304798543, 0.3041686416, -0.0116674192, -0.0288701914, -0.1900769025, -0.3225812614, 0.1816966832, 0.5332459807, -0.0167490244, -0.3464336693, 0.2373516858, -0.1719155014, -0.091134645, 0.0658691674, 0.085014686, 0.2090731263, 0.0698388293, -0.4831224978, -0.2582398057, 0.1423365176, -0.1691525429, -0.3288373351, -0.0386133268, 0.0214468595, 0.2329680771, 0.3237445354, 0.0257265586, -0.010056057, 0.0906783044, 0.2518519163, 0.1675707847, 0.3641337156, 0.2586050034, 0.4293773174, 0.0305669457, -0.1940062195, -0.2273605019, -0.3996755183, 0.0277600493, 0.0386685915, 0.2079672366, 0.1062801406, -0.0036756645, -0.0763850287, -0.0522679277, -0.282764703, -0.2260679752, 0.1023177654, 0.1067755967, -0.2730692923, 0.1083703116, -0.2692726254, -0.00324497, -0.1122832, 0.0492939055, -0.2180530578, 0.5863927603, -0.2171762586, -0.1882075071, 0.0163488369, -0.014802427, -0.2500440776, -0.0992065072, 0.0294077247, 0.1507961005, -0.1491492689, 0.0836447775, 0.0327422731, -0.0584900305, 0.1962769479, -0.8871465921, 0.0910421535, 0.0646799207, 0.0378633887, -0.08868476, -0.4640695751, 0.0794581026, 0.2558695972, 0.1007624641, -0.0273173489, 0.0546601489, -0.0239385013, -0.1768171787, -0.2105389386, -0.1884699017, 0.2387643903, 0.2301723063, 0.180383265, -0.1655534059, -0.5671557188, -0.1394684315, -0.1985439658, 0.1284202188, -0.03102942, 0.0385583304, -0.3120976985, 0.1216437593, 0.0895696059, 0.1598755717, 0.0776640624, 0.1536580622, 0.2215788513, 0.2471777052, 0.0576349832, -0.1165381595, -0.0277426038, 0.0252394974, -0.1938333213, 0.1477909833, -0.0973908305, 0.1915716231, -0.1003811955, -0.2489262521, 0.1640550494, 0.4643539488, -0.3705774844, -0.0523323976, -0.4508478343, -0.3079367578, -0.1031866074, 0.1540240645, -0.1241732463, -0.2670580745, -0.1791945547, 0.4320557714, -0.1280402839, 0.1173322126, -0.4587445259, 0.1155428588, 0.090247862, 0.2503669262, -0.1605425626, 0.1606908143, -0.4006852508, 0.1572640687, 0.3764458895, 0.1305505931, 0.3003644943, -0.1634015888, 0.1298823804, -0.3050156534, -0.279353261, 0.159971416, 0.2305276543, 0.1213470623, 0.1684336066, 0.1986397654, -0.1154959649, -0.0648417324, 0.2593418062, -0.083413735, -0.1943667233, 0.09267243, 0.0020065876, -0.141733855, -0.2491230816, -0.1999234855, -0.1968772113, -0.4478625655, 0.0507314093, -0.1302194297, 0.0717451274, 0.0459658951, 0.227275297, 0.2494738996, -0.1228026897, -0.3184759319, 0.1401650012, -0.2598867416, 0.3661050498, -0.2986851335, -0.5963428617, 0.3822773099, -0.0575890541, -0.1285912097, 0.0698116422, -0.8463964462, 0.0727970153, 0.0760085359, 0.0417918116, 0.0638069957, -0.2651492953, 0.124178268, 0.0784703195, 0.0582321584, -0.0896664187, -0.0445698164, 0.0422284417, -0.3576522768, 0.3613865972, 0.052775003, 0.2549772859, 0.0059016189, 0.2106218785, 0.462572962, 0.0318965577, 0.2665117979, -0.2187585682, 0.5919658542, -0.016265668, -0.0289022457, 0.1612624675, 0.2754821777, 0.1548810005, 0.2564843893, -0.0106808851, -0.1331185848, -0.3283134997, 0.2906191945, 0.0260721259, -0.2908224761, 0.2781724036, -0.2083898783, 0.0167718511, 0.1062232703, 0.2367028594, 0.0055200276, -0.3032808006, -0.3268112242, 0.5229393244, 0.2518080771, 0.0266003925, -0.3201159239, 0.3089135587, -0.4773233831, 0.0758106634, -0.0637929142, 0.3610317409, -0.1665830165, -0.0581019819, 0.0503442213, 0.0274966843, 0.3250753582, -0.1482899785, 0.0567943975, 0.3569011986, 0.0216341894, -0.3000946343, -0.210961774, -0.1791778356, -0.0759555846, 0.0004848, 0.1738779843, -0.0259941872, -0.2637026906, 0.378431201, -0.1057260484, -0.2069255114, -0.3332491815, -0.038317468, 0.0038327635, 0.14974536, -0.21761401, -0.0699448586, -0.0821509585, -0.2880373299, -0.0608110428, -0.054048948, 0.0788920745, 0.2956702411, 0.0770718381, 0.4217192233, -0.092031315, 0.3493589461, 0.3267092705, 0.0635659769, 0.4567932487, 0.379855901, 0.1104199067, -0.1734907478, 0.5066099763, -0.267157048, 0.1151777655, 0.0923768282, 0.1559916139, -0.1367480308, 0.2959222496, 0.1649909019, -0.3867965639, 0.3540689349, 0.2309581935, -0.2546718121, -0.3497831821, -0.432100147, 0.4846552014, 0.0848271027, 0.1081737205, 0.1868225783, 0.2282957435, 0.0060152547, -0.0326284841, -0.0340377167, 0.7370910048, 0.2113694698, 0.017219035, 0.3595048785, -0.0304587074, 0.0966646671, -0.0089119906, -0.0142812002, -0.430054456, -0.4971157014, -0.1386430711, -0.2134579122, 0.261256218, 0.0614677072, -0.2152385563, -0.1572306752, 0.4016522467, 0.1735162288, 0.1536718458, 0.0721835047, 0.0406743661, 0.2128369212, 0.2075231224, 0.1125313342, -0.0663679913, 0.3000037968, 0.0158101115, -0.0965472534, -0.1559328139, -0.0279247425, -0.6183640361, 0.2137955278, 0.1242069602, -0.211625576, 0.2150489092, -0.3903817534, 0.4207869172, 0.3403140008, -0.347576052, 0.2894828618, -0.273001194, 0.1378870606, 0.0704960674, -0.09902706, 0.0190446395, 0.2680931091, 0.1406096965, -0.2877338827, -0.2109372169, 0.1234423891, -0.1102296263, -0.0164695289, 0.0557112992, -0.121324271, 0.3865692914, -0.1395687312, 0.0710542202, -0.0422573201, -0.0885593146, 0.0051419539, 0.097200796, 0.1593797654, -0.0664276183, 0.0620533638, 0.2900582254, -0.1148501858, 0.0835291371, 0.4691383541, -0.1672641039, 0.0468297414, 0.6227648258, 0.3141689003, -0.110009782, -0.1981063038, 0.1718765348, 0.5502776504, -0.250838697, 0.0436138958, -0.3288108706, 0.1688280255, 0.488451153, 0.2780680656, 0.1938567609, -0.4906102121, -0.102055274, -0.3559999764, -0.1133783832, 0.1478168964, -0.1445064247, 0.3950254619, -0.1089629158, 0.1812959015, 0.1719957143, -0.3577342331, -0.2876771688, 0.0870962888, -0.0864099711, 0.0748361424, 0.1324767917, 0.0453574844, 0.0883379132, -0.2105579078, -0.0036967625, 0.057720907, -0.3477294743, -0.11975611, -0.2520214319, 0.1644217968, 0.0544161238, -0.2481925488, 0.0852594376, 0.0516843833, -0.1473694742, 0.1036393791, -0.1999046803, -0.0317657255, -0.1122254953, 0.1562521607, 0.2399612665, 0.1494192183, -0.3147311211, 0.3881439269, 0.165604189, 0.4475440681, -0.1912039071, 0.1299384683, 0.0955235511, 0.0193117056, -0.2498566061, -0.0101339892, -0.0749382302, -0.031470459, 0.4568181038, -0.2440335453, 0.4633410871, 0.0777586922, 0.5264284015, 0.3731827736, -0.0928795487, -0.0642107651, 0.4989568293, 0.1386553943, -0.2073108703, 0.3243557215, 0.2283135206, 0.5986735225, 0.0764493421, -0.0262291003, -0.1679169089, -0.0736960024, -0.0794388056, 0.2559531629, 0.2710799575, -0.1276643276, 0.3690380752, 0.4916297495, -0.1874079108, 0.1052737162, 0.0230227616, 0.2498616874, 0.0379672535, 0.4033236504, 0.0918233916, 0.2369761765, 0.0168606509, 0.3394041657, -0.0166430082, -0.5578356981, 0.0231069382, 0.1761545241, -0.0342677943, 0.2050803453, 0.0909670666, 0.2537783682, -0.206112355, 0.1286993325, -0.1489126682, 0.2476373166, -0.1636333168, 0.1196990684, -0.497020036, -0.1434753537, -0.1303184927, 0.0505538806, 0.1217245013, 0.062261153, -0.2298134714, 0.2022428215, -0.1335076988, -0.2563697696, -0.1120570078, 0.0898773596, 0.0439519547, -0.2696365118, 0.0892042518, 0.4771281481, -0.0501493961, 0.2667553127, 0.4865610003, 0.2334650159, 0.2340014279, 0.1376376599, -0.1141100973, 0.1694556177, -0.1594899893, -0.1096029282, 0.019799361, 0.3834149539, -0.1365944743, 0.2174251229, 0.0465937182, -0.1070659533, 0.2991840243, -0.1920507103, 0.2677934468, -0.0657022893, 0.1421916634, -0.201755479, -0.2073764801, -0.1165366098, -0.4866994917, -0.1429436803, 0.12870875, 0.1035297215, 0.0640769228, -0.0465188511, -0.1814743131, 0.0337915756, 0.180748865, 0.2503276169, 0.453889221, -0.0140261687, 0.0417707898, -0.3341203928, -0.7574344873, 0.3335330784, -0.066357933, -0.181041792, 0.1083145067, 0.1247197837, -0.123254098, 0.1049591601, -0.018933041, 0.0793050155, 0.0331026576, 0.5406765342, -0.4341017902, -0.275767386, 0.1266768575, 0.1011059731, -0.2080074996, -0.0474042967, 0.2397004366, -0.1431109309, -0.0115976501, -0.14676781, 0.071091637, -0.2370552272, 0.0731804967, 0.2284746915, 0.0287705362, 0.4398336112, 0.1483002901, -0.2234603912, -0.3829338551, 0.1425485164, -0.1514500678, -0.0018801746, 0.3111893535, 0.5176708698, -0.098553054, -0.030790329, -0.1602376848, -0.1222505271, 0.0039326791, 0.0727249607, -0.645121038, -0.0268263277, -0.145628795, -0.0451767631, 0.2844791412, 0.0246939007, 0.01904683, -0.1690772176, -0.329814136, -0.26899755, 0.2975932062, -0.3583940864, 0.1138354763, -0.2124037445, -0.2697161734, -0.1860196143, 0.0097144628, -0.4310154021, 0.0084850611, 0.3037337959, -0.2605180442, 0.3448647261, 0.0239244401, -0.0154999113, -0.0181637369, -0.0870576501, 0.6294339299, 0.0882897973, -0.2219825536, -0.0413502865, -0.1716698706 ]
https://github.com/huggingface/datasets/issues/4287
"NameError: name 'faiss' is not defined" on `.add_faiss_index` when `device` is not None
So I managed to solve this by adding a missing `import faiss` in the `@staticmethod` defined in https://github.com/huggingface/datasets/blob/f51b6994db27ea69261ef919fb7775928f9ec10b/src/datasets/search.py#L305, triggered from https://github.com/huggingface/datasets/blob/f51b6994db27ea69261ef919fb7775928f9ec10b/src/datasets/search.py#L249 when trying to `ds_with_embeddings.add_faiss_index(column='embeddings', device=0)` with the code above. As it seems that the `@staticmethod` doesn't recognize the `import faiss` defined in https://github.com/huggingface/datasets/blob/f51b6994db27ea69261ef919fb7775928f9ec10b/src/datasets/search.py#L261, so whenever the value of `device` is not None in https://github.com/huggingface/datasets/blob/71f76e0bdeaddadedc4f9c8d15cfff5a36d62f66/src/datasets/search.py#L438, that exception is triggered. So on, adding `import faiss` inside https://github.com/huggingface/datasets/blob/71f76e0bdeaddadedc4f9c8d15cfff5a36d62f66/src/datasets/search.py#L305 right after the check of `device`'s value, solves the issue and lets you calculate the indices in GPU. I'll add the code in a PR linked to this issue in case you want to merge it!
## Describe the bug When using `datasets` to calculate the FAISS indices of a dataset, the exception `NameError: name 'faiss' is not defined` is triggered when trying to calculate those on a device (GPU), so `.add_faiss_index(..., device=0)` fails with that exception. All that assuming that `datasets` is properly installed and `faiss-gpu` too, as well as all the CUDA drivers required. ## Steps to reproduce the bug ```python # Sample code to reproduce the bug from transformers import DPRContextEncoder, DPRContextEncoderTokenizer import torch torch.set_grad_enabled(False) ctx_encoder = DPRContextEncoder.from_pretrained("facebook/dpr-ctx_encoder-single-nq-base") ctx_tokenizer = DPRContextEncoderTokenizer.from_pretrained("facebook/dpr-ctx_encoder-single-nq-base") from datasets import load_dataset ds = load_dataset('crime_and_punish', split='train[:100]') ds_with_embeddings = ds.map(lambda example: {'embeddings': ctx_encoder(**ctx_tokenizer(example["line"], return_tensors="pt"))[0][0].numpy()}) ds_with_embeddings.add_faiss_index(column='embeddings', device=0) # default `device=None` ``` ## Expected results A new column named `embeddings` in the dataset that we're adding the index to. ## Actual results An exception is triggered with the following message `NameError: name 'faiss' is not defined`. ## Environment info - `datasets` version: 2.1.0 - Platform: Linux-5.13.0-1022-azure-x86_64-with-glibc2.31 - Python version: 3.9.12 - PyArrow version: 7.0.0 - Pandas version: 1.4.2
102
"NameError: name 'faiss' is not defined" on `.add_faiss_index` when `device` is not None ## Describe the bug When using `datasets` to calculate the FAISS indices of a dataset, the exception `NameError: name 'faiss' is not defined` is triggered when trying to calculate those on a device (GPU), so `.add_faiss_index(..., device=0)` fails with that exception. All that assuming that `datasets` is properly installed and `faiss-gpu` too, as well as all the CUDA drivers required. ## Steps to reproduce the bug ```python # Sample code to reproduce the bug from transformers import DPRContextEncoder, DPRContextEncoderTokenizer import torch torch.set_grad_enabled(False) ctx_encoder = DPRContextEncoder.from_pretrained("facebook/dpr-ctx_encoder-single-nq-base") ctx_tokenizer = DPRContextEncoderTokenizer.from_pretrained("facebook/dpr-ctx_encoder-single-nq-base") from datasets import load_dataset ds = load_dataset('crime_and_punish', split='train[:100]') ds_with_embeddings = ds.map(lambda example: {'embeddings': ctx_encoder(**ctx_tokenizer(example["line"], return_tensors="pt"))[0][0].numpy()}) ds_with_embeddings.add_faiss_index(column='embeddings', device=0) # default `device=None` ``` ## Expected results A new column named `embeddings` in the dataset that we're adding the index to. ## Actual results An exception is triggered with the following message `NameError: name 'faiss' is not defined`. ## Environment info - `datasets` version: 2.1.0 - Platform: Linux-5.13.0-1022-azure-x86_64-with-glibc2.31 - Python version: 3.9.12 - PyArrow version: 7.0.0 - Pandas version: 1.4.2 So I managed to solve this by adding a missing `import faiss` in the `@staticmethod` defined in https://github.com/huggingface/datasets/blob/f51b6994db27ea69261ef919fb7775928f9ec10b/src/datasets/search.py#L305, triggered from https://github.com/huggingface/datasets/blob/f51b6994db27ea69261ef919fb7775928f9ec10b/src/datasets/search.py#L249 when trying to `ds_with_embeddings.add_faiss_index(column='embeddings', device=0)` with the code above. As it seems that the `@staticmethod` doesn't recognize the `import faiss` defined in https://github.com/huggingface/datasets/blob/f51b6994db27ea69261ef919fb7775928f9ec10b/src/datasets/search.py#L261, so whenever the value of `device` is not None in https://github.com/huggingface/datasets/blob/71f76e0bdeaddadedc4f9c8d15cfff5a36d62f66/src/datasets/search.py#L438, that exception is triggered. So on, adding `import faiss` inside https://github.com/huggingface/datasets/blob/71f76e0bdeaddadedc4f9c8d15cfff5a36d62f66/src/datasets/search.py#L305 right after the check of `device`'s value, solves the issue and lets you calculate the indices in GPU. I'll add the code in a PR linked to this issue in case you want to merge it!
[ -0.2677792013, -0.1930617243, -0.0503546819, 0.2116217315, 0.2999023795, 0.0705516487, 0.6779098511, 0.3354715109, 0.1389086396, 0.4872550368, 0.1502405405, 0.3312829435, 0.1982175112, -0.3838970661, -0.1113043576, 0.026361268, 0.2100861073, 0.2211518586, 0.0979964212, 0.0112956595, -0.177514568, 0.1019165292, -0.0020202897, 0.1137172058, -0.5356395245, 0.0256011337, -0.0485668182, -0.1697057188, 0.0819108114, -0.4138983786, 0.117064178, -0.232299, 0.163465485, 0.6383319497, -0.0001184857, 0.0760866851, 0.2688557804, -0.1572678089, -0.2099101245, -0.0938901678, -0.138294518, -0.1355232298, -0.1245266795, -0.4097552299, -0.0365439057, -0.2017738074, -0.0644812956, -0.3826678097, -0.2210728824, 0.304174155, 0.135673508, -0.0405080467, 0.1465205997, -0.1805744469, 0.0919256955, -0.2255586833, -0.4007888734, -0.2110323906, 0.0188936945, 0.1128020659, 0.1141520366, 0.3374991417, -0.0162682328, -0.053549882, -0.0280633345, 0.0649712309, 0.5522335768, -0.3031113446, 0.0509035662, 0.1636683494, 0.1770268381, -0.2434361577, -0.295273453, -0.1760010272, 0.1185250655, -0.2467817217, 0.3819136322, -0.3112471998, -0.2169712484, -0.0165351238, 0.1135793105, 0.0187697243, 0.03518489, 0.1877481788, -0.0333564393, 0.1811662912, -0.0500089303, 0.2051398605, -0.0709695593, -0.1600439399, 0.1044306755, -0.282674104, 0.1555432677, 0.0514475927, -0.7197321057, 0.0170728117, 0.1100983545, -0.5740899444, -0.1972285807, -0.1041742936, -0.1736025959, 0.0581314452, 0.1380948126, 0.3258379102, -0.3228495419, 0.2221529931, -0.0089613274, 0.1417237818, 0.2095215768, 0.2314281464, 0.1997854263, -0.1213081032, -0.2648592889, -0.1973141432, -0.3578031659, -0.037157014, 0.2764658928, -0.1399419308, -0.612003386, 0.3015881181, -0.2571416497, 0.2225394547, 0.3637178242, 0.4657812417, 0.1609994769, -0.2492825091, 0.0273907613, 0.1433086693, 0.0054538739, 0.1020476073, -0.1814744174, -0.1315134168, -0.1093587875, 0.1256220937, 0.1946565658, -0.3070987165, 0.1454919279, -0.3069573343, -0.0073979376, -0.100309737, -0.1976178437, -0.0555771664, 0.2342898697, 0.2483903468, 0.0298129153, 0.0592270717, 0.1765941828, -0.2656787932, -0.0712472051, 0.1841975451, -0.2515280843, -0.159730196, -0.2966949046, 0.1389842033, 0.0116432058, 0.0269892178, 0.1856638789, 0.2037382871, 0.45598948, 0.027918214, 0.2254099846, 0.1931554526, -0.2025149763, -0.1387659311, 0.3272745609, 0.2465869337, -0.2242040634, -0.3134718537, -0.0951400176, -0.0938642323, -0.0821989551, 0.0678243935, 0.057549037, 0.184644565, -0.37646842, 0.2920623422, 0.3177112937, -0.1874574572, -0.2459539473, -0.0700318068, -0.1274102479, -0.1495339721, 0.3183277547, 0.0724650472, 0.1718821079, 0.0870164856, 0.3471657336, 0.0436540768, -0.1153765172, -0.1117787361, -0.0845763087, -0.2577617466, 0.3251139522, 0.1603980362, 0.108716853, 0.1043329835, -0.0160053466, -0.3212739229, -0.0775929093, -0.241276145, 0.0817411691, 0.18565391, 0.5382339954, 0.195945099, 0.4102753699, -0.1761276126, -0.3003650904, 0.2351198643, 0.0705422908, 0.1185260415, -0.473719269, -0.1219217107, 0.0317416675, -0.0633913353, 0.0202540625, -0.0465919152, 0.0537548661, -0.076922752, -0.0057609924, -0.1450968981, -0.2824340463, 0.1871915609, -0.282261461, 0.0571881533, -0.3771569729, 0.3255268335, -0.2016386688, -0.2545164227, -0.2661587894, 0.3665424585, 0.3191076815, -0.1414272934, -0.1778814048, 0.3329077661, 0.1556868553, -0.1614269316, 0.1480285525, 0.0395488068, -0.0476334617, -0.1503721476, 0.058716923, 0.368163377, 0.2263403386, 0.0754127055, 0.0958296359, 0.2716928124, 0.2136946917, 0.2946972251, -0.2133517116, -0.0000882352, 0.2921955585, 0.0818619952, -0.0094361985, -0.3664700985, 0.095667623, -0.0780750588, 0.2926338911, -0.2285069525, -0.0382071845, -0.129747957, 0.1365670264, -0.1019358188, 0.080845952, 0.1040691361, -0.20155707, 0.2429390699, 0.1020051092, -0.4362462163, 0.3610959351, 0.0690286681, -0.2717648745, -0.1604083478, -0.0189515352, -0.180044055, 0.2998146415, 0.3092927933, -0.1313303411, 0.18568407, 0.0494904704, -0.1344248801, -0.1891598701, -0.3536972106, 0.199925676, 0.22190395, -0.5465424061, 0.2292004377, -0.0884528533, -0.1179596409, -0.0571371578, -0.2740374804, -0.3020784557, -0.1688844711, 0.1132076085, -0.0100723263, -0.0268242341, 0.56313169, -0.031437207, 0.3451782465, 0.2669053376, -0.2646978199, -0.0772076547, -0.1635281593, -0.0340352915, -0.0288732927, -0.1362821907, -0.2700231075, 0.2465084642, 0.0252350364, -0.0092130415, -0.3460000455, -0.3333972991, 0.1512129456, -0.2294059843, 0.1619107276, -0.066783987, -0.1452291608, 0.1149510965, -0.2534681261, 0.0762385949, 0.0369256102, -0.1363533586, 0.0226665027, -0.0825523734, -0.0956914946, -0.2000350952, -0.2439639419, 0.0384104885, -0.3259360492, -0.0251194015, -0.0943819731, 0.1987321675, -0.0554596893, 0.1266539842, 0.2989879847, -0.0274074264, 0.0936590806, -0.2795269787, 0.0578053184, 0.316002816, -0.0934670344, -0.2307391614, 0.0392481275, -0.0759067386, -0.0012875679, 0.0924601406, -0.2826656401, -0.1216920465, -0.0236992221, 0.3240506947, 0.0115712425, 0.1782149225, 0.3946534693, 0.1758317351, -0.0248788074, -0.3753835559, -0.2737493813, 0.0247015115, -0.0929381773, 0.4036743939, -0.0335531756, 0.4804115891, -0.0595851764, 0.3195146024, 0.332816869, -0.5132256746, 0.5454784632, -0.1936355531, 0.187772736, 0.0658074021, -0.1157518849, 0.2827404141, 0.0184189714, -0.1489590406, 0.0457282662, -0.3147218823, -0.2004715353, -0.0915209576, 0.176361829, -0.205771938, -0.2939653695, -0.0931611508, -0.2134668976, 0.244354561, -0.069068566, 0.2559351623, -0.2862651944, -0.0110311992, 0.2518416941, 0.4071964622, 0.1255498827, -0.2426512837, 0.0892506614, -0.0963273719, -0.3369405866, 0.4827110767, 0.0184914041, 0.5099805593, -0.1719783694, 0.0733676925, 0.1026550978, 0.1234494448, 0.8018260002, -0.2557468414, -0.1581705958, 0.3423094153, 0.3089136183, -0.2554649413, -0.2847435474, -0.186405763, 0.180602029, 0.0868937373, 0.5751954317, -0.1090526804, -0.1370633841, 0.1094109938, -0.0535981245, -0.0763965324, -0.2722495198, -0.3742819428, -0.0535001457, -0.3180500567, 0.092193678, -0.0947589949, 0.4154827893, 0.0888297558, 0.0046350867, -0.3758727014, 0.0135714849, 0.0898389369, 0.23176153, 0.1532207578, -0.0336796083, 0.3831858933, -0.0679872036, 0.2392570078, 0.4289000928, 0.2425881177, -0.0259666238, -0.2498857826, 0.4352636933, 0.1420716643, 0.2369507104, 0.2851185203, -0.1435502619, 0.1513002664, -0.0778532326, 0.4545581341, -0.3414155841, 0.0528200492, 0.4134407938, 0.2575814724, -0.3164115548, -0.2541102767, 0.4271711111, 0.1545818597, 0.0115628829, 0.2661199272, 0.3731884658, -0.2132826746, 0.6635655761, -0.0271133892, 0.8349602222, 0.1417266876, -0.1361642629, 0.3292039335, 0.019131884, 0.4266368449, -0.2621032894, 0.3030054271, -0.36033988, -0.2495633364, -0.072745271, -0.0706654191, 0.4493254125, 0.0557388961, -0.1136083826, 0.2471146584, -0.0684440434, 0.1738487631, -0.0673468262, -0.0311246011, 0.0653612688, -0.570002079, -0.1243764237, 0.1013353989, 0.073608093, 0.3620577753, 0.0472622178, 0.0865836963, -0.4278534651, -0.1301414669, -0.3313692808, 0.0341733433, -0.0335203968, 0.2654316723, -0.1244590655, -0.2336265445, 0.1903569698, -0.2871500254, 0.5703133345, -0.1071150452, -0.2100858688, 0.3500594199, -0.0225411132, -0.0797283128, -0.100082323, -0.2246901542, 0.3307578862, 0.0695901588, -0.3794130385, 0.1227923706, 0.0705380216, -0.078665182, -0.0268511884, -0.072358273, -0.0519427769, -0.225620091, -0.0245044585, -0.1347044706, 0.2477797568, -0.2440111935, 0.1126614809, 0.0810519978, -0.4638236761, 0.2543738484, -0.1965155751, -0.3668318391, -0.0758303925, 0.5537821054, -0.0278033055, -0.1105353534, 0.2354791611, -0.1581863761, -0.2709082067, -0.0588878244, -0.3328418136, 0.230014652, -0.2249239385, -0.134459123, 0.0472764894, -0.3598711491, -0.0762181059, 0.0007363491, -0.1119198799, 0.3196648657, -0.2088094503, -0.1486584097, -0.3978235126, 0.0638981238, 0.04302283, 0.3486230075, 0.0142490873, 0.1369826347, -0.216274187, -0.1777753383, -0.2571475506, 0.0449540168, -0.2627476752, 0.464545697, -0.2965943515, -0.1160293296, 0.2956578135, -0.1968620867, 0.1271817088, 0.1477946043, -0.0821426287, -0.1739617884, -0.1555579454, 0.1838450432, 0.1633325368, -0.073325634, -0.402630955, -0.1589907706, -0.2902145982, -0.2810215056, 0.381005168, 0.295348227, -0.0849058703, 0.2101287991, 0.0439727679, -0.0579666421, 0.2062323689, 0.0928546116, 0.1886805594, 0.5146371722, 0.1700724214, 0.3236709535, -0.6910559535, 0.2287747562, -0.3531604111, 0.2041759342, 0.1243717149, 0.0811413825, 0.1878709793, -0.306869477, -0.1384533048, -0.197834745, 0.0208867602, 0.2984208465, -0.3283818066, -0.2406269014, 0.2352151424, 0.1495817304, -0.1251096576, -0.054758165, 0.2422744334, -0.2709947526, 0.3088201582, 0.3453473449, 0.3499438167, 0.0567620359, -0.3531430364, -0.0404630452, 0.3619587421, 0.1221084818, -0.0491790473, 0.031946037, 0.0101659838, 0.2422092706, 0.2994847298, 0.0252175275, 0.3604408205, 0.826420188, -0.1172439829, 0.2991402447, 0.22480838, 0.0309933126, 0.0712762475, -0.0968818218, 0.364972353, -0.1809900552, -0.0952790231, -0.0940562785, -0.0834374353, -0.1962089241, -0.3054342568, 0.0289233532, -0.2022219747, -0.0464718565, -0.2253268957, -0.180399701, 0.110579364, 0.0823109597, -0.1130440384, -0.2422738224, 0.129007116, -0.1942477673, 0.0044648247, 0.1347661167, -0.3401270509, 0.1514830291, -0.2119870484, 0.642534554, 0.5679425597, -0.0926989838, 0.0970448479, 0.2238154262, -0.1354351491, -0.0202754941, 0.2093816698, 0.6584562659, 0.181210354, -0.0892754123, 0.2834928632, 0.2227999419, -0.1206423193, 0.0502900183, 0.1236753911, -0.0901558399, 0.0368403718, 0.2777967155, 0.1009956151, -0.1337872297, -0.4207533598, 0.1571459621, 0.4895614088, -0.0734510794, 0.146378845, -0.4583052397, 0.1374952346, -0.2793770134, 0.0074038357, -0.4224885702, 0.0485527627, 0.5376588106, -0.1823661625, 0.1943314672, 0.1332865953, 0.0381299369, -0.3240101933, 0.1859717965, 0.0725806504, 0.176380083, -0.3565992713, -0.0638613403, -0.2463026941, 0.3766397536, -0.0809156522, 0.0476277359, 0.1262308359, 0.3178581595, -0.1748661846, -0.165140599, 0.1994993389, -0.0318377912, 0.3572437465, 0.5178941488, -0.3093318343, -0.1866321266, -0.4723141193, -0.0808935538, 0.2226084173, -0.2989882529, -0.0046888702, 0.0000069908, -0.0542126335, -0.0699218661, -0.0172746424, 0.0681575835, 0.0202240683, 0.8401679397, -0.0192954503, 0.3667723536, -0.1382204443, -0.0756554604, -0.2239338011, -0.200959906, -0.2226107121, 0.2323860377, 0.0624145307, 0.0109192096, -0.0645748675, -0.3882268965, -0.2513391078, 0.5986821055, 0.1300269067, -0.2277822196, -0.1363095194, 0.2950300872, -0.2472484708, 0.4100046158, 0.0559491031, 0.0091474373, 0.1543093622, 0.5739112496, -0.0888167173, -0.4936059415, 0.754250586, -0.0743944347, -0.1260400862, -0.2725193799, 0.3739637136, 0.3908613622, 0.0905999467, -0.8467720151, -0.0328277498, 0.3328855038, -0.1986327469, -0.2221771479, -0.111014843, -0.0324489549, 0.0075858273, -0.0946630314, 0.1081183478, -0.1000948548, 0.181354031, 0.2981963754, -0.1381296515 ]
https://github.com/huggingface/datasets/issues/4287
"NameError: name 'faiss' is not defined" on `.add_faiss_index` when `device` is not None
Adding here the complete error traceback! ``` Traceback (most recent call last): File "/home/alvarobartt/lol.py", line 12, in <module> ds_with_embeddings.add_faiss_index(column='embeddings', device=0) # default `device=None` File "/home/alvarobartt/.local/lib/python3.9/site-packages/datasets/arrow_dataset.py", line 3656, in add_faiss_index super().add_faiss_index( File "/home/alvarobartt/.local/lib/python3.9/site-packages/datasets/search.py", line 478, in add_faiss_index faiss_index.add_vectors(self, column=column, train_size=train_size, faiss_verbose=True) File "/home/alvarobartt/.local/lib/python3.9/site-packages/datasets/search.py", line 281, in add_vectors self.faiss_index = self._faiss_index_to_device(index, self.device) File "/home/alvarobartt/.local/lib/python3.9/site-packages/datasets/search.py", line 327, in _faiss_index_to_device faiss_res = faiss.StandardGpuResources() NameError: name 'faiss' is not defined ```
## Describe the bug When using `datasets` to calculate the FAISS indices of a dataset, the exception `NameError: name 'faiss' is not defined` is triggered when trying to calculate those on a device (GPU), so `.add_faiss_index(..., device=0)` fails with that exception. All that assuming that `datasets` is properly installed and `faiss-gpu` too, as well as all the CUDA drivers required. ## Steps to reproduce the bug ```python # Sample code to reproduce the bug from transformers import DPRContextEncoder, DPRContextEncoderTokenizer import torch torch.set_grad_enabled(False) ctx_encoder = DPRContextEncoder.from_pretrained("facebook/dpr-ctx_encoder-single-nq-base") ctx_tokenizer = DPRContextEncoderTokenizer.from_pretrained("facebook/dpr-ctx_encoder-single-nq-base") from datasets import load_dataset ds = load_dataset('crime_and_punish', split='train[:100]') ds_with_embeddings = ds.map(lambda example: {'embeddings': ctx_encoder(**ctx_tokenizer(example["line"], return_tensors="pt"))[0][0].numpy()}) ds_with_embeddings.add_faiss_index(column='embeddings', device=0) # default `device=None` ``` ## Expected results A new column named `embeddings` in the dataset that we're adding the index to. ## Actual results An exception is triggered with the following message `NameError: name 'faiss' is not defined`. ## Environment info - `datasets` version: 2.1.0 - Platform: Linux-5.13.0-1022-azure-x86_64-with-glibc2.31 - Python version: 3.9.12 - PyArrow version: 7.0.0 - Pandas version: 1.4.2
66
"NameError: name 'faiss' is not defined" on `.add_faiss_index` when `device` is not None ## Describe the bug When using `datasets` to calculate the FAISS indices of a dataset, the exception `NameError: name 'faiss' is not defined` is triggered when trying to calculate those on a device (GPU), so `.add_faiss_index(..., device=0)` fails with that exception. All that assuming that `datasets` is properly installed and `faiss-gpu` too, as well as all the CUDA drivers required. ## Steps to reproduce the bug ```python # Sample code to reproduce the bug from transformers import DPRContextEncoder, DPRContextEncoderTokenizer import torch torch.set_grad_enabled(False) ctx_encoder = DPRContextEncoder.from_pretrained("facebook/dpr-ctx_encoder-single-nq-base") ctx_tokenizer = DPRContextEncoderTokenizer.from_pretrained("facebook/dpr-ctx_encoder-single-nq-base") from datasets import load_dataset ds = load_dataset('crime_and_punish', split='train[:100]') ds_with_embeddings = ds.map(lambda example: {'embeddings': ctx_encoder(**ctx_tokenizer(example["line"], return_tensors="pt"))[0][0].numpy()}) ds_with_embeddings.add_faiss_index(column='embeddings', device=0) # default `device=None` ``` ## Expected results A new column named `embeddings` in the dataset that we're adding the index to. ## Actual results An exception is triggered with the following message `NameError: name 'faiss' is not defined`. ## Environment info - `datasets` version: 2.1.0 - Platform: Linux-5.13.0-1022-azure-x86_64-with-glibc2.31 - Python version: 3.9.12 - PyArrow version: 7.0.0 - Pandas version: 1.4.2 Adding here the complete error traceback! ``` Traceback (most recent call last): File "/home/alvarobartt/lol.py", line 12, in <module> ds_with_embeddings.add_faiss_index(column='embeddings', device=0) # default `device=None` File "/home/alvarobartt/.local/lib/python3.9/site-packages/datasets/arrow_dataset.py", line 3656, in add_faiss_index super().add_faiss_index( File "/home/alvarobartt/.local/lib/python3.9/site-packages/datasets/search.py", line 478, in add_faiss_index faiss_index.add_vectors(self, column=column, train_size=train_size, faiss_verbose=True) File "/home/alvarobartt/.local/lib/python3.9/site-packages/datasets/search.py", line 281, in add_vectors self.faiss_index = self._faiss_index_to_device(index, self.device) File "/home/alvarobartt/.local/lib/python3.9/site-packages/datasets/search.py", line 327, in _faiss_index_to_device faiss_res = faiss.StandardGpuResources() NameError: name 'faiss' is not defined ```
[ -0.2677792013, -0.1930617243, -0.0503546819, 0.2116217315, 0.2999023795, 0.0705516487, 0.6779098511, 0.3354715109, 0.1389086396, 0.4872550368, 0.1502405405, 0.3312829435, 0.1982175112, -0.3838970661, -0.1113043576, 0.026361268, 0.2100861073, 0.2211518586, 0.0979964212, 0.0112956595, -0.177514568, 0.1019165292, -0.0020202897, 0.1137172058, -0.5356395245, 0.0256011337, -0.0485668182, -0.1697057188, 0.0819108114, -0.4138983786, 0.117064178, -0.232299, 0.163465485, 0.6383319497, -0.0001184857, 0.0760866851, 0.2688557804, -0.1572678089, -0.2099101245, -0.0938901678, -0.138294518, -0.1355232298, -0.1245266795, -0.4097552299, -0.0365439057, -0.2017738074, -0.0644812956, -0.3826678097, -0.2210728824, 0.304174155, 0.135673508, -0.0405080467, 0.1465205997, -0.1805744469, 0.0919256955, -0.2255586833, -0.4007888734, -0.2110323906, 0.0188936945, 0.1128020659, 0.1141520366, 0.3374991417, -0.0162682328, -0.053549882, -0.0280633345, 0.0649712309, 0.5522335768, -0.3031113446, 0.0509035662, 0.1636683494, 0.1770268381, -0.2434361577, -0.295273453, -0.1760010272, 0.1185250655, -0.2467817217, 0.3819136322, -0.3112471998, -0.2169712484, -0.0165351238, 0.1135793105, 0.0187697243, 0.03518489, 0.1877481788, -0.0333564393, 0.1811662912, -0.0500089303, 0.2051398605, -0.0709695593, -0.1600439399, 0.1044306755, -0.282674104, 0.1555432677, 0.0514475927, -0.7197321057, 0.0170728117, 0.1100983545, -0.5740899444, -0.1972285807, -0.1041742936, -0.1736025959, 0.0581314452, 0.1380948126, 0.3258379102, -0.3228495419, 0.2221529931, -0.0089613274, 0.1417237818, 0.2095215768, 0.2314281464, 0.1997854263, -0.1213081032, -0.2648592889, -0.1973141432, -0.3578031659, -0.037157014, 0.2764658928, -0.1399419308, -0.612003386, 0.3015881181, -0.2571416497, 0.2225394547, 0.3637178242, 0.4657812417, 0.1609994769, -0.2492825091, 0.0273907613, 0.1433086693, 0.0054538739, 0.1020476073, -0.1814744174, -0.1315134168, -0.1093587875, 0.1256220937, 0.1946565658, -0.3070987165, 0.1454919279, -0.3069573343, -0.0073979376, -0.100309737, -0.1976178437, -0.0555771664, 0.2342898697, 0.2483903468, 0.0298129153, 0.0592270717, 0.1765941828, -0.2656787932, -0.0712472051, 0.1841975451, -0.2515280843, -0.159730196, -0.2966949046, 0.1389842033, 0.0116432058, 0.0269892178, 0.1856638789, 0.2037382871, 0.45598948, 0.027918214, 0.2254099846, 0.1931554526, -0.2025149763, -0.1387659311, 0.3272745609, 0.2465869337, -0.2242040634, -0.3134718537, -0.0951400176, -0.0938642323, -0.0821989551, 0.0678243935, 0.057549037, 0.184644565, -0.37646842, 0.2920623422, 0.3177112937, -0.1874574572, -0.2459539473, -0.0700318068, -0.1274102479, -0.1495339721, 0.3183277547, 0.0724650472, 0.1718821079, 0.0870164856, 0.3471657336, 0.0436540768, -0.1153765172, -0.1117787361, -0.0845763087, -0.2577617466, 0.3251139522, 0.1603980362, 0.108716853, 0.1043329835, -0.0160053466, -0.3212739229, -0.0775929093, -0.241276145, 0.0817411691, 0.18565391, 0.5382339954, 0.195945099, 0.4102753699, -0.1761276126, -0.3003650904, 0.2351198643, 0.0705422908, 0.1185260415, -0.473719269, -0.1219217107, 0.0317416675, -0.0633913353, 0.0202540625, -0.0465919152, 0.0537548661, -0.076922752, -0.0057609924, -0.1450968981, -0.2824340463, 0.1871915609, -0.282261461, 0.0571881533, -0.3771569729, 0.3255268335, -0.2016386688, -0.2545164227, -0.2661587894, 0.3665424585, 0.3191076815, -0.1414272934, -0.1778814048, 0.3329077661, 0.1556868553, -0.1614269316, 0.1480285525, 0.0395488068, -0.0476334617, -0.1503721476, 0.058716923, 0.368163377, 0.2263403386, 0.0754127055, 0.0958296359, 0.2716928124, 0.2136946917, 0.2946972251, -0.2133517116, -0.0000882352, 0.2921955585, 0.0818619952, -0.0094361985, -0.3664700985, 0.095667623, -0.0780750588, 0.2926338911, -0.2285069525, -0.0382071845, -0.129747957, 0.1365670264, -0.1019358188, 0.080845952, 0.1040691361, -0.20155707, 0.2429390699, 0.1020051092, -0.4362462163, 0.3610959351, 0.0690286681, -0.2717648745, -0.1604083478, -0.0189515352, -0.180044055, 0.2998146415, 0.3092927933, -0.1313303411, 0.18568407, 0.0494904704, -0.1344248801, -0.1891598701, -0.3536972106, 0.199925676, 0.22190395, -0.5465424061, 0.2292004377, -0.0884528533, -0.1179596409, -0.0571371578, -0.2740374804, -0.3020784557, -0.1688844711, 0.1132076085, -0.0100723263, -0.0268242341, 0.56313169, -0.031437207, 0.3451782465, 0.2669053376, -0.2646978199, -0.0772076547, -0.1635281593, -0.0340352915, -0.0288732927, -0.1362821907, -0.2700231075, 0.2465084642, 0.0252350364, -0.0092130415, -0.3460000455, -0.3333972991, 0.1512129456, -0.2294059843, 0.1619107276, -0.066783987, -0.1452291608, 0.1149510965, -0.2534681261, 0.0762385949, 0.0369256102, -0.1363533586, 0.0226665027, -0.0825523734, -0.0956914946, -0.2000350952, -0.2439639419, 0.0384104885, -0.3259360492, -0.0251194015, -0.0943819731, 0.1987321675, -0.0554596893, 0.1266539842, 0.2989879847, -0.0274074264, 0.0936590806, -0.2795269787, 0.0578053184, 0.316002816, -0.0934670344, -0.2307391614, 0.0392481275, -0.0759067386, -0.0012875679, 0.0924601406, -0.2826656401, -0.1216920465, -0.0236992221, 0.3240506947, 0.0115712425, 0.1782149225, 0.3946534693, 0.1758317351, -0.0248788074, -0.3753835559, -0.2737493813, 0.0247015115, -0.0929381773, 0.4036743939, -0.0335531756, 0.4804115891, -0.0595851764, 0.3195146024, 0.332816869, -0.5132256746, 0.5454784632, -0.1936355531, 0.187772736, 0.0658074021, -0.1157518849, 0.2827404141, 0.0184189714, -0.1489590406, 0.0457282662, -0.3147218823, -0.2004715353, -0.0915209576, 0.176361829, -0.205771938, -0.2939653695, -0.0931611508, -0.2134668976, 0.244354561, -0.069068566, 0.2559351623, -0.2862651944, -0.0110311992, 0.2518416941, 0.4071964622, 0.1255498827, -0.2426512837, 0.0892506614, -0.0963273719, -0.3369405866, 0.4827110767, 0.0184914041, 0.5099805593, -0.1719783694, 0.0733676925, 0.1026550978, 0.1234494448, 0.8018260002, -0.2557468414, -0.1581705958, 0.3423094153, 0.3089136183, -0.2554649413, -0.2847435474, -0.186405763, 0.180602029, 0.0868937373, 0.5751954317, -0.1090526804, -0.1370633841, 0.1094109938, -0.0535981245, -0.0763965324, -0.2722495198, -0.3742819428, -0.0535001457, -0.3180500567, 0.092193678, -0.0947589949, 0.4154827893, 0.0888297558, 0.0046350867, -0.3758727014, 0.0135714849, 0.0898389369, 0.23176153, 0.1532207578, -0.0336796083, 0.3831858933, -0.0679872036, 0.2392570078, 0.4289000928, 0.2425881177, -0.0259666238, -0.2498857826, 0.4352636933, 0.1420716643, 0.2369507104, 0.2851185203, -0.1435502619, 0.1513002664, -0.0778532326, 0.4545581341, -0.3414155841, 0.0528200492, 0.4134407938, 0.2575814724, -0.3164115548, -0.2541102767, 0.4271711111, 0.1545818597, 0.0115628829, 0.2661199272, 0.3731884658, -0.2132826746, 0.6635655761, -0.0271133892, 0.8349602222, 0.1417266876, -0.1361642629, 0.3292039335, 0.019131884, 0.4266368449, -0.2621032894, 0.3030054271, -0.36033988, -0.2495633364, -0.072745271, -0.0706654191, 0.4493254125, 0.0557388961, -0.1136083826, 0.2471146584, -0.0684440434, 0.1738487631, -0.0673468262, -0.0311246011, 0.0653612688, -0.570002079, -0.1243764237, 0.1013353989, 0.073608093, 0.3620577753, 0.0472622178, 0.0865836963, -0.4278534651, -0.1301414669, -0.3313692808, 0.0341733433, -0.0335203968, 0.2654316723, -0.1244590655, -0.2336265445, 0.1903569698, -0.2871500254, 0.5703133345, -0.1071150452, -0.2100858688, 0.3500594199, -0.0225411132, -0.0797283128, -0.100082323, -0.2246901542, 0.3307578862, 0.0695901588, -0.3794130385, 0.1227923706, 0.0705380216, -0.078665182, -0.0268511884, -0.072358273, -0.0519427769, -0.225620091, -0.0245044585, -0.1347044706, 0.2477797568, -0.2440111935, 0.1126614809, 0.0810519978, -0.4638236761, 0.2543738484, -0.1965155751, -0.3668318391, -0.0758303925, 0.5537821054, -0.0278033055, -0.1105353534, 0.2354791611, -0.1581863761, -0.2709082067, -0.0588878244, -0.3328418136, 0.230014652, -0.2249239385, -0.134459123, 0.0472764894, -0.3598711491, -0.0762181059, 0.0007363491, -0.1119198799, 0.3196648657, -0.2088094503, -0.1486584097, -0.3978235126, 0.0638981238, 0.04302283, 0.3486230075, 0.0142490873, 0.1369826347, -0.216274187, -0.1777753383, -0.2571475506, 0.0449540168, -0.2627476752, 0.464545697, -0.2965943515, -0.1160293296, 0.2956578135, -0.1968620867, 0.1271817088, 0.1477946043, -0.0821426287, -0.1739617884, -0.1555579454, 0.1838450432, 0.1633325368, -0.073325634, -0.402630955, -0.1589907706, -0.2902145982, -0.2810215056, 0.381005168, 0.295348227, -0.0849058703, 0.2101287991, 0.0439727679, -0.0579666421, 0.2062323689, 0.0928546116, 0.1886805594, 0.5146371722, 0.1700724214, 0.3236709535, -0.6910559535, 0.2287747562, -0.3531604111, 0.2041759342, 0.1243717149, 0.0811413825, 0.1878709793, -0.306869477, -0.1384533048, -0.197834745, 0.0208867602, 0.2984208465, -0.3283818066, -0.2406269014, 0.2352151424, 0.1495817304, -0.1251096576, -0.054758165, 0.2422744334, -0.2709947526, 0.3088201582, 0.3453473449, 0.3499438167, 0.0567620359, -0.3531430364, -0.0404630452, 0.3619587421, 0.1221084818, -0.0491790473, 0.031946037, 0.0101659838, 0.2422092706, 0.2994847298, 0.0252175275, 0.3604408205, 0.826420188, -0.1172439829, 0.2991402447, 0.22480838, 0.0309933126, 0.0712762475, -0.0968818218, 0.364972353, -0.1809900552, -0.0952790231, -0.0940562785, -0.0834374353, -0.1962089241, -0.3054342568, 0.0289233532, -0.2022219747, -0.0464718565, -0.2253268957, -0.180399701, 0.110579364, 0.0823109597, -0.1130440384, -0.2422738224, 0.129007116, -0.1942477673, 0.0044648247, 0.1347661167, -0.3401270509, 0.1514830291, -0.2119870484, 0.642534554, 0.5679425597, -0.0926989838, 0.0970448479, 0.2238154262, -0.1354351491, -0.0202754941, 0.2093816698, 0.6584562659, 0.181210354, -0.0892754123, 0.2834928632, 0.2227999419, -0.1206423193, 0.0502900183, 0.1236753911, -0.0901558399, 0.0368403718, 0.2777967155, 0.1009956151, -0.1337872297, -0.4207533598, 0.1571459621, 0.4895614088, -0.0734510794, 0.146378845, -0.4583052397, 0.1374952346, -0.2793770134, 0.0074038357, -0.4224885702, 0.0485527627, 0.5376588106, -0.1823661625, 0.1943314672, 0.1332865953, 0.0381299369, -0.3240101933, 0.1859717965, 0.0725806504, 0.176380083, -0.3565992713, -0.0638613403, -0.2463026941, 0.3766397536, -0.0809156522, 0.0476277359, 0.1262308359, 0.3178581595, -0.1748661846, -0.165140599, 0.1994993389, -0.0318377912, 0.3572437465, 0.5178941488, -0.3093318343, -0.1866321266, -0.4723141193, -0.0808935538, 0.2226084173, -0.2989882529, -0.0046888702, 0.0000069908, -0.0542126335, -0.0699218661, -0.0172746424, 0.0681575835, 0.0202240683, 0.8401679397, -0.0192954503, 0.3667723536, -0.1382204443, -0.0756554604, -0.2239338011, -0.200959906, -0.2226107121, 0.2323860377, 0.0624145307, 0.0109192096, -0.0645748675, -0.3882268965, -0.2513391078, 0.5986821055, 0.1300269067, -0.2277822196, -0.1363095194, 0.2950300872, -0.2472484708, 0.4100046158, 0.0559491031, 0.0091474373, 0.1543093622, 0.5739112496, -0.0888167173, -0.4936059415, 0.754250586, -0.0743944347, -0.1260400862, -0.2725193799, 0.3739637136, 0.3908613622, 0.0905999467, -0.8467720151, -0.0328277498, 0.3328855038, -0.1986327469, -0.2221771479, -0.111014843, -0.0324489549, 0.0075858273, -0.0946630314, 0.1081183478, -0.1000948548, 0.181354031, 0.2981963754, -0.1381296515 ]
https://github.com/huggingface/datasets/issues/4276
OpenBookQA has missing and inconsistent field names
Thanks for reporting, @vblagoje. Indeed, I noticed some of these issues while reviewing this PR: - #4259 This is in my TODO list.
## Describe the bug OpenBookQA implementation is inconsistent with the original dataset. We need to: 1. The dataset field [question][stem] is flattened into question_stem. Unflatten it to match the original format. 2. Add missing additional fields: - 'fact1': row['fact1'], - 'humanScore': row['humanScore'], - 'clarity': row['clarity'], - 'turkIdAnonymized': row['turkIdAnonymized'] 3. Ensure the structure and every data item in the original OpenBookQA matches our OpenBookQA version. ## Expected results The structure and every data item in the original OpenBookQA matches our OpenBookQA version. ## Actual results TBD ## Environment info - `datasets` version: 2.1.0 - Platform: macOS-10.15.7-x86_64-i386-64bit - Python version: 3.8.13 - PyArrow version: 7.0.0 - Pandas version: 1.4.2
23
OpenBookQA has missing and inconsistent field names ## Describe the bug OpenBookQA implementation is inconsistent with the original dataset. We need to: 1. The dataset field [question][stem] is flattened into question_stem. Unflatten it to match the original format. 2. Add missing additional fields: - 'fact1': row['fact1'], - 'humanScore': row['humanScore'], - 'clarity': row['clarity'], - 'turkIdAnonymized': row['turkIdAnonymized'] 3. Ensure the structure and every data item in the original OpenBookQA matches our OpenBookQA version. ## Expected results The structure and every data item in the original OpenBookQA matches our OpenBookQA version. ## Actual results TBD ## Environment info - `datasets` version: 2.1.0 - Platform: macOS-10.15.7-x86_64-i386-64bit - Python version: 3.8.13 - PyArrow version: 7.0.0 - Pandas version: 1.4.2 Thanks for reporting, @vblagoje. Indeed, I noticed some of these issues while reviewing this PR: - #4259 This is in my TODO list.
[ -0.1009263843, 0.2100123912, -0.0518254675, 0.2251940221, -0.1097796932, -0.0576233305, 0.2680732906, 0.3371189237, -0.0792645589, 0.2063141167, 0.1244209558, 0.5698289275, 0.4415481985, 0.3652537167, -0.0546431914, -0.1742747575, 0.3567141891, 0.0840137601, 0.1305603534, -0.0909449831, -0.2684164345, 0.5139862895, -0.2818473279, 0.1131075397, -0.0024438461, -0.1088764444, -0.4653171301, -0.1198540479, -0.0364536755, -0.144887507, 0.042253077, 0.1093569472, -0.3286170065, 0.2559754252, -0.0001096412, -0.2272857279, -0.0773132816, 0.0476742983, -0.2789717019, -0.3161999583, -0.0444226786, -0.3308217227, 0.0382530242, -0.2663817406, 0.1119307205, -0.0484998114, -0.1596239507, 0.047948841, 0.1941673607, 0.0503654256, 0.224331066, -0.0243198425, 0.3201378286, 0.0627526343, 0.1628894806, -0.0239095464, -0.3419753611, 0.0198269226, 0.3297076821, -0.0766778216, 0.2110074162, 0.2544213533, -0.0106532853, -0.1501399875, -0.3070982099, 0.1239758134, 0.1198185682, -0.2196583152, 0.1782588065, 0.5026726723, 0.1427845061, -0.2504121959, -0.4591214359, -0.2557525039, 0.0590178259, -0.0557803735, 0.2302814722, 0.3058753908, 0.1249659434, -0.0625860766, 0.1367468536, -0.0829636231, 0.1441460252, 0.0899337307, -0.3396266401, -0.1212370545, -0.0430877469, -0.0559925176, -0.334818095, -0.1833231002, 0.3674880266, -0.1848717928, -0.0834595859, 0.0852476954, -0.4613160789, -0.0845186785, -0.1731689423, -0.278344959, -0.1413929164, -0.2923742533, 0.213935107, 0.0039636279, -0.2970674336, 0.1654313505, -0.0458272099, -0.1606400162, -0.0710575655, 0.1188707873, -0.1903491914, 0.0497265197, 0.1094164178, -0.100382559, 0.005285894, -0.1762996912, -0.3626108468, -0.1305007637, 0.3857432008, -0.1165457368, -0.2995650172, 0.3059235513, -0.0718539655, -0.0794139504, -0.112426661, 0.0002455734, -0.2547895014, -0.115313977, 0.0944068283, 0.1451175362, -0.0963382497, -0.2837237418, -0.1959989965, -0.0018880959, -0.0740692765, 0.0276003703, 0.137499541, 0.1794658005, 0.346455127, 0.366002351, -0.1462429315, 0.014255275, -0.0232469551, -0.1170394048, -0.0367529392, 0.1816735715, -0.14489986, -0.0827709138, -0.0736654326, -0.1873885989, 0.013131585, 0.2109992057, -0.3556283116, 0.1063892618, -0.2902392745, 0.2481044829, 0.1234381422, -0.0326206461, 0.2104385197, 0.2176257521, -0.0318210311, -0.2434751987, 0.0793065429, -0.0752493069, 0.2278319597, -0.141663298, 0.1974045187, 0.2118673474, -0.4880532622, -0.0404963866, 0.0884481668, 0.2922270298, -0.124145925, -0.0476289392, 0.0830384716, -0.1609409153, -0.1168829948, 0.1702492833, 0.1287457049, -0.1525616199, -0.2393290699, -0.1347995847, 0.2676386237, 0.0378799625, 0.0063899155, -0.3533119559, -0.04668504, -0.0439308174, 0.0477917865, 0.0771761835, -0.2449295521, -0.1222815514, -0.4172745347, -0.1273055375, -0.00255445, 0.2901490629, -0.0009162475, 0.0009976893, 0.0227596723, -0.3104479015, 0.1445827782, -0.0064364425, -0.0993579999, 0.2136107981, 0.3118121326, -0.0230684169, 0.1324468404, 0.1610923409, -0.3506338298, -0.0869009346, -0.5583695173, -0.0220929962, -0.1133845896, -0.0720314011, -0.1377769113, -0.0406433269, 0.1077146903, 0.1324867904, 0.1803771406, -0.1072119325, -0.0795150027, 0.1258906126, -0.165187031, -0.2191064507, -0.201066792, 0.193218559, -0.2639104128, 0.1504639089, -0.2711706758, -0.0859153345, 0.281519115, 0.2144113779, 0.322614193, -0.198558107, -0.0397369526, 0.4925363958, 0.0679379776, -0.1657272726, 0.0555871353, 0.2825042903, 0.2520304024, 0.2165814787, 0.0039454694, 0.0485751033, -0.0629545748, -0.0072123781, 0.0349673443, 0.50063622, -0.1590491235, 0.1358134598, 0.1022032425, 0.1962247491, 0.1967401356, -0.2709746361, 0.0563847087, -0.2297935188, 0.1597506106, -0.0614496917, 0.3274123967, -0.1586160958, -0.3511632085, 0.2731753588, 0.5077377558, -0.0193684753, -0.0686835051, 0.0676764175, 0.0905400962, 0.1009967029, 0.0968727469, -0.0037627388, 0.2152654827, 0.1815611869, -0.3201690614, 0.1318323314, 0.1795662045, -0.1539223492, 0.3975908458, 0.2093750685, -0.3110725284, 0.0376385488, 0.1728659123, 0.2110511214, -0.1523111761, -0.0156265516, 0.3776569366, 0.0923072174, -0.0931964517, 0.2744857371, -0.1519401222, -0.1920514256, -0.1030779183, -0.3751802444, -0.2876753807, -0.189942956, 0.1777264029, 0.0513116792, -0.0855412185, 0.5102547407, 0.4035282135, 0.2855921686, -0.2668792903, 0.365606755, -0.4895308018, -0.0605589263, -0.2188266665, 0.1888480037, 0.1031134576, -0.3325167, 0.1017686948, -0.2111886293, -0.1072418168, -0.4667666256, -0.5108636022, 0.1127591059, -0.29099828, 0.2711438537, 0.082373403, 0.0506851301, -0.4669666886, -0.2574220002, 0.1938445568, 0.0646523312, -0.1746846288, 0.1895431876, -0.1510758549, -0.3282027245, -0.1720155776, -0.281182766, -0.1255694777, -0.0573234297, 0.3623308539, -0.1816643625, 0.2332026213, 0.3693728149, -0.176040411, -0.2582162917, 0.0808761045, 0.1430262178, -0.3405611217, -0.23061046, 0.1733336598, -0.2331455648, -0.302611798, 0.020048134, -0.0075781648, 0.3305044174, -0.1447216719, -0.4214033186, -0.1518364996, 0.0214277245, 0.0239002556, 0.1235085651, 0.0973496884, 0.2152563334, 0.2802807391, -0.0890516862, -0.2289848924, -0.3188194633, 0.0277880244, 0.2785301208, 0.446361959, -0.3551271856, 0.1592787504, -0.1135889366, -0.0314484537, -0.0043514213, 0.3506532013, 0.1772461087, 0.0410330743, 0.0979587734, -0.2138961852, -0.1206075847, 0.0186457988, -0.2866286337, 0.1055149734, 0.3142361939, -0.292296201, 0.0847826079, -0.1306322068, 0.0575815737, -0.6104723215, -0.3238409758, -0.2088345736, -0.1682159901, 0.3637024462, 0.3268859386, 0.0488247126, -0.0660730526, -0.0494036824, 0.3029884398, 0.013230511, 0.1056605503, -0.1151926517, -0.3425936103, -0.070276238, -0.1949481964, 0.3684501052, -0.3872959912, 0.2317006141, 0.0572946072, 0.0987937301, -0.0177340452, 0.216334939, 0.7720741034, 0.0792134777, -0.4735856354, 0.2680613995, -0.1569935232, -0.1349532008, -0.3505122066, -0.0449683219, 0.0335658826, 0.4151805043, 0.006893212, -0.4184963703, -0.0308469329, 0.2092843503, 0.1772540808, -0.255962044, -0.0866039917, -0.2733698487, -0.0437954515, 0.0251217484, -0.2949287891, -0.1060507298, 0.1495948285, 0.044604443, 0.1025273055, -0.0464166887, -0.2519984841, 0.2513038814, 0.3360560536, 0.3397324085, -0.2137840241, 0.484793067, -0.1812843084, 0.2817265987, 0.4496484995, 0.4115256667, -0.0181220695, -0.3825556636, 0.1174987704, -0.5721493363, 0.2478497028, 0.1819587499, 0.1467085928, 0.339450568, -0.1164450422, 0.0316734016, 0.1010070965, -0.1231723279, 0.269854635, -0.0052057798, -0.3811213076, -0.2911936641, 0.3167140186, -0.2113122046, -0.1568022519, 0.5465932488, 0.325532496, -0.049578324, 0.8692589402, -0.1732665002, 0.8559390306, 0.0735444203, -0.2092478275, 0.2736370564, -0.4188936651, 0.2268695682, -0.0331859626, 0.1795358509, -0.5019341111, -0.0884140208, 0.0992162824, 0.0990065858, 0.265660435, 0.2211024463, -0.1061749607, 0.1902991384, 0.0010178209, -0.3593478203, -0.0459694974, -0.0553069748, 0.2393826842, -0.0756270662, -0.1423899978, 0.0999407768, 0.0238763876, -0.0065324912, -0.1216032952, 0.0434702821, -0.1948117316, -0.0330939516, -0.0248105805, 0.064490445, -0.0539027639, -0.0166573431, 0.4378455281, -0.4568096101, 0.0092952764, 0.0952488482, 0.6670413613, 0.0488628782, -0.1588385999, 0.3587812483, 0.2209471911, -0.0264199208, 0.2426986247, 0.0626275092, 0.1265899688, 0.0271213725, 0.046445258, 0.0430429503, -0.1551476866, 0.1923496127, -0.3443814814, -0.0950360447, 0.2435641736, -0.2713225186, 0.0498698168, -0.3483456969, 0.2933449149, -0.4673756361, 0.1463910937, 0.0272522364, 0.0881230235, 0.2667184174, -0.0072425306, -0.0469310656, -0.2838765383, -0.1984839141, -0.0619498752, 0.1977478713, 0.4583908617, -0.0314533301, 0.0266392492, -0.0819448233, -0.0477036312, 0.086291194, -0.2968996465, -0.0015539008, 0.056075979, -0.2127178758, 0.211392194, 0.8396200538, 0.1446299851, 0.1651257724, 0.2256997526, -0.3633268178, 0.044079531, -0.0063327355, 0.2265595049, -0.0816610605, 0.2763522863, 0.2498502135, -0.2774056792, 0.1408762336, -0.3175768852, 0.2241612375, -0.20194754, 0.331923604, -0.7157125473, -0.0549156964, 0.0444934331, -0.2044286132, 0.1731183529, -0.1675913781, 0.0504933894, -0.2098578364, -0.3488287032, 0.130620271, 0.1287272424, 0.049299594, -0.2965890467, -0.0066107493, -0.0698789731, -0.1677580625, -0.1875580698, 0.0389314294, 0.1039529666, 0.1334566176, -0.204073295, 0.0863274187, -0.3346274793, -0.1349903941, 0.103627637, 0.0202760566, 0.349211961, 0.0522055514, -0.2873457372, 0.0284982268, 0.0501978025, 0.0348392315, -0.3849096596, -0.0535698496, 0.6435757279, -0.2771763504, 0.0991064981, 0.0251141638, 0.1701027304, 0.2966198027, -0.2951372266, 0.0144731877, 0.1982409209, 0.2721143663, -0.534019351, -0.1421034932, 0.3219995499, 0.0946458206, 0.0573932864, 0.1499042362, 0.4608080983, -0.1978149265, -0.0211043376, 0.1160221696, 0.2872008979, 0.0286042001, 0.0281562321, 0.4072289765, 0.1467960924, 0.4484164417, 0.511023283, 0.2105109245, -0.3324302137, 0.2504319251, -0.0581134893, 0.0618377849, -0.141983822, 0.0930760428, 0.1739418954, -0.1292765439, 0.4621665478, -0.3282717466, -0.0163494591, 0.1168945432, 0.0902344435, -0.2595866024, 0.0248889904, -0.2258997113, -0.0244543124, -0.1012341604, -0.1959191412, 0.0275663286, -0.1259201169, -0.1001196578, 0.4126199782, -0.0316539556, -0.0714584291, 0.0320915133, 0.3161676228, 0.1369592696, -0.0594962798, -0.0467022881, -0.256153971, 0.2381833047, 0.406242758, -0.1513158828, 0.2619273961, 0.1262294203, -0.3369145989, 0.1225881279, 0.3434933126, 0.1192603186, 0.0682732537, -0.0939637199, -0.1331099868, -0.0315827467, -0.0848526359, 0.2423167676, 0.1554320306, 0.3483055532, 0.3779917657, 0.1538869441, 0.0977838412, -0.0854930505, 0.1103018522, 0.0909452364, 0.0402270928, -0.3181944788, -0.0406314209, -0.1921457797, -0.3732210696, -0.1098447219, -0.1496448815, -0.1810819656, -0.0315659679, 0.0458884984, 0.1325667948, -0.0691383481, 0.1820524931, 0.1401595771, 0.1574241221, 0.0545598418, 0.3357809782, 0.1196985021, -0.3121223748, -0.4723947644, -0.2209152132, 0.1471862793, -0.0166546237, 0.2752978206, 0.3665795028, 0.1328061968, 0.3440547585, -0.1112489551, 0.061223235, -0.0446004905, -0.3791801929, 0.2989430428, -0.5998274684, -0.0917731673, -0.1127040014, 0.0619649142, -0.0197581742, 0.2378126234, 0.2866752744, 0.0371192582, -0.0390734151, -0.1601813287, 0.0239211135, 0.1964659691, 0.0704028308, 0.3648019433, 0.1792725772, -0.0976061597, -0.0436987467, -0.3078193069, 0.2053606212, -0.080071494, -0.1364662945, 0.5880196095, -0.0684822351, 0.158833012, 0.2921808362, -0.5144423246, 0.1098298654, 0.6035783291, 0.0952697843, -0.1186399385, -0.499430269, 0.3075223863, 0.3789219856, 0.1986837536, 0.1321590543, 0.3110571504, -0.0876138955, 0.3579062521, -0.387830615, -0.26119259, 0.4151237905, -0.2831667066, 0.0035107536, -0.0772240162, 0.2843596935, -0.2573533654, -0.1023698226, -0.6073067188, -0.2867357135, 0.367197454, -0.3029933572, -0.1535066664, 0.0345654413, -0.0772372484, 0.1964756548, 0.0000740926, 0.8225832582, 0.2425957322, -0.1439451724, 0.08583799, 0.1413801908 ]
https://github.com/huggingface/datasets/issues/4276
OpenBookQA has missing and inconsistent field names
On the other hand, I am not sure if we should always preserve the original nested structure. I think we should also consider other factors as convenience or consistency. For example, other datasets also flatten "question.stem" into "question": - ai2_arc: ```python question = data["question"]["stem"] choices = data["question"]["choices"] text_choices = [choice["text"] for choice in choices] label_choices = [choice["label"] for choice in choices] yield id_, { "id": id_, "answerKey": answerkey, "question": question, "choices": {"text": text_choices, "label": label_choices}, } ``` - commonsense_qa: ```python question = data["question"] stem = question["stem"] yield id_, { "answerKey": answerkey, "question": stem, "choices": {"label": labels, "text": texts}, } ``` - cos_e: ```python "question": cqa["question"]["stem"], ``` - qasc - quartz - wiqa Exceptions: - exams I think we should agree on a CONVENIENT format for QA and use always CONSISTENTLY the same.
## Describe the bug OpenBookQA implementation is inconsistent with the original dataset. We need to: 1. The dataset field [question][stem] is flattened into question_stem. Unflatten it to match the original format. 2. Add missing additional fields: - 'fact1': row['fact1'], - 'humanScore': row['humanScore'], - 'clarity': row['clarity'], - 'turkIdAnonymized': row['turkIdAnonymized'] 3. Ensure the structure and every data item in the original OpenBookQA matches our OpenBookQA version. ## Expected results The structure and every data item in the original OpenBookQA matches our OpenBookQA version. ## Actual results TBD ## Environment info - `datasets` version: 2.1.0 - Platform: macOS-10.15.7-x86_64-i386-64bit - Python version: 3.8.13 - PyArrow version: 7.0.0 - Pandas version: 1.4.2
132
OpenBookQA has missing and inconsistent field names ## Describe the bug OpenBookQA implementation is inconsistent with the original dataset. We need to: 1. The dataset field [question][stem] is flattened into question_stem. Unflatten it to match the original format. 2. Add missing additional fields: - 'fact1': row['fact1'], - 'humanScore': row['humanScore'], - 'clarity': row['clarity'], - 'turkIdAnonymized': row['turkIdAnonymized'] 3. Ensure the structure and every data item in the original OpenBookQA matches our OpenBookQA version. ## Expected results The structure and every data item in the original OpenBookQA matches our OpenBookQA version. ## Actual results TBD ## Environment info - `datasets` version: 2.1.0 - Platform: macOS-10.15.7-x86_64-i386-64bit - Python version: 3.8.13 - PyArrow version: 7.0.0 - Pandas version: 1.4.2 On the other hand, I am not sure if we should always preserve the original nested structure. I think we should also consider other factors as convenience or consistency. For example, other datasets also flatten "question.stem" into "question": - ai2_arc: ```python question = data["question"]["stem"] choices = data["question"]["choices"] text_choices = [choice["text"] for choice in choices] label_choices = [choice["label"] for choice in choices] yield id_, { "id": id_, "answerKey": answerkey, "question": question, "choices": {"text": text_choices, "label": label_choices}, } ``` - commonsense_qa: ```python question = data["question"] stem = question["stem"] yield id_, { "answerKey": answerkey, "question": stem, "choices": {"label": labels, "text": texts}, } ``` - cos_e: ```python "question": cqa["question"]["stem"], ``` - qasc - quartz - wiqa Exceptions: - exams I think we should agree on a CONVENIENT format for QA and use always CONSISTENTLY the same.
[ -0.1097743586, 0.1326161772, -0.0441396423, 0.251501888, -0.2379210591, -0.0238394011, 0.2634883523, 0.3610416353, 0.006400961, 0.1764746308, 0.096433647, 0.4849393666, 0.4549894035, 0.4911120832, -0.148104012, -0.160447374, 0.3868280947, 0.0276735201, 0.2539488673, -0.0356515311, -0.2659470141, 0.4672729969, -0.2174430341, 0.0999923348, 0.0964768231, -0.1398295164, -0.4847763777, -0.057913404, 0.0054192678, 0.0074244752, 0.1809109002, 0.1605218202, -0.3850033581, 0.2002613395, -0.0001139321, -0.1369350851, -0.0883787349, 0.0266066138, -0.2319210321, -0.2157822847, 0.052961275, -0.2617893517, -0.1228878275, -0.2755648494, 0.0981127322, 0.0550665893, -0.1491115838, -0.2618976831, 0.1818795204, -0.1574004143, 0.1525596827, -0.0238076039, 0.3675931692, 0.1867574155, 0.0815778449, -0.1015934274, -0.2293050438, 0.0033499913, 0.2247362435, 0.0118484003, 0.2578726411, 0.303620398, -0.0688908249, -0.2904932201, -0.3472497761, 0.1664650887, 0.1601463705, -0.2673430145, 0.0248357467, 0.4789613485, -0.0109285908, -0.235559538, -0.5180100799, -0.3433983028, 0.038707424, -0.1429570764, 0.1242312789, 0.2304447293, 0.1746181995, -0.0223128721, 0.3207927346, -0.182462275, 0.1485363841, 0.1652731001, -0.3517591059, -0.0104304515, 0.0170134138, -0.0692647249, -0.3648296297, -0.1031913385, 0.4435928762, -0.3173172772, -0.0160327591, 0.0105056455, -0.4281848073, -0.1500117928, -0.273696661, -0.3439185023, -0.0956541896, -0.2881827354, 0.2985573709, 0.022994075, -0.233034417, 0.1407809854, -0.1006417871, -0.0558719561, -0.0019868331, 0.1179583743, -0.2235388458, 0.0869905353, 0.0366495289, -0.0824576169, -0.0008301524, -0.1000232249, -0.3417010903, -0.0723583922, 0.4922668338, -0.0247177146, -0.3859815598, 0.236907959, -0.1312112361, -0.0715423524, -0.0843340531, -0.0666469708, -0.1734167039, 0.1304677129, 0.1017337292, 0.17043221, -0.0557211153, -0.2183282673, -0.1628325582, -0.0814050436, 0.045691248, 0.1077752709, 0.0427830815, 0.1075606123, 0.3035513759, 0.2609870732, -0.0493855551, 0.1293660402, -0.0696745291, -0.1429932863, 0.0422015674, 0.1169750765, -0.23676911, -0.1403563619, -0.01776544, -0.2484626025, 0.058054544, 0.1993376911, -0.405665189, -0.0232921336, -0.2336163223, 0.2024966329, 0.1131741032, -0.0159433037, 0.1385367662, 0.2477846593, 0.0611143038, -0.2313672155, 0.0562971607, -0.1061240286, 0.1815368682, -0.1666765511, 0.2162818015, 0.1965352744, -0.4122449458, -0.0134014776, -0.1286965609, 0.3966889381, -0.1489108056, 0.0586834513, 0.0443988368, -0.0683440194, -0.1563734561, 0.2003964633, 0.1304276884, -0.2321345508, -0.374922365, -0.1660816222, 0.2656884491, 0.1556934267, 0.1086632088, -0.3345250487, -0.1152725294, -0.1089905426, 0.1317033619, 0.0208079107, -0.2419557273, -0.2171495408, -0.4325254858, -0.2124896049, 0.1553419977, 0.1801257432, -0.0255269408, 0.0034714132, -0.12083368, -0.2510540485, 0.2326427996, -0.0000789152, -0.1483455449, 0.1010521352, 0.3779268563, -0.1242138445, 0.1174527928, 0.1150913835, -0.5746988058, -0.030064499, -0.6786449552, -0.1449201852, -0.1288169324, -0.251834929, -0.038451273, -0.0848690346, 0.0403755791, 0.157443881, 0.17506437, -0.1348837465, -0.045527339, -0.0385652445, -0.260984987, -0.2688122392, -0.1927360892, 0.2396469265, -0.2286631018, 0.2453788519, -0.2683630288, 0.0061454093, 0.2477331609, 0.2455510646, 0.3565663993, -0.2620423436, 0.0887056664, 0.5120708942, 0.0380574204, -0.2177447528, -0.053816855, 0.2502329648, 0.2662848234, 0.2950715423, 0.023922924, 0.0712918714, -0.0848159418, -0.0774034709, 0.0736581534, 0.4827049971, -0.1446056366, 0.2192671299, 0.1014419943, 0.0880510882, 0.0344993919, -0.2184239775, -0.0092668673, -0.3117272258, 0.0229414944, -0.1389649063, 0.2988815606, -0.1470457464, -0.3462943137, 0.4355352223, 0.5409053564, -0.0042484445, -0.0848383009, 0.1014391109, 0.1992357373, 0.097024776, 0.075270392, -0.072544992, 0.2485430092, 0.1928688884, -0.298776865, 0.1067136601, 0.2667938173, -0.0843674019, 0.4443075955, 0.2617065907, -0.2453444302, 0.1242909953, 0.1816359609, 0.246480301, -0.1266372055, -0.0781406462, 0.3060937524, 0.0027533907, -0.12900424, 0.2617796361, -0.127053082, -0.2275789082, -0.1454594582, -0.4518143833, -0.2638543844, -0.2247776389, 0.2122166604, 0.1378516555, -0.1852670461, 0.5181917548, 0.4227959812, 0.3277258873, -0.2118456066, 0.3134724796, -0.5174558759, 0.0297419615, -0.1239391193, 0.1598781943, 0.1170919761, -0.4179796278, 0.0387321264, -0.1786053628, -0.0890974253, -0.4192763269, -0.6379324794, 0.1106094122, -0.3292036653, 0.165461421, 0.080334343, 0.201335609, -0.4030192792, -0.4229227304, 0.1720825881, 0.2590762377, -0.1736132503, 0.1541871578, -0.0599351376, -0.3487952948, -0.1016503051, -0.2814889848, -0.2110574394, -0.1167338938, 0.3086922467, -0.249491781, 0.2905518711, 0.3692623973, -0.1721044332, -0.3150828481, 0.0722795799, 0.1112132519, -0.2756542861, -0.2471312582, 0.1670705229, -0.1506577134, -0.1349555999, -0.1658003032, -0.1401347816, 0.3781979084, -0.184490025, -0.3242150545, -0.0957909673, 0.0500807241, -0.053921856, 0.1956447065, 0.1437063664, 0.2238171548, 0.3818650544, -0.0204831753, -0.1527151614, -0.2278277874, 0.0483864509, 0.2852035761, 0.3930836618, -0.3543849885, 0.0508620366, -0.0169632938, 0.0335371979, 0.1770769358, 0.3453834951, 0.1043454036, 0.1741133779, 0.085886322, -0.2435448319, -0.1671387553, -0.0715472996, -0.2287997901, 0.0667539239, 0.2377080023, -0.350117147, 0.0394821875, -0.0620005392, 0.0315333679, -0.5189899206, -0.3875522614, -0.1719101965, -0.226571694, 0.353369832, 0.3154342175, -0.0155550586, 0.0073049287, -0.0108590005, 0.3977195323, 0.0169038214, 0.1522175968, -0.1230573133, -0.315335393, -0.3102194667, -0.1413558275, 0.4627591968, -0.3599780202, 0.1981679052, 0.1759320647, -0.0155125428, -0.1297803223, 0.1527127922, 0.7660775781, 0.0829257369, -0.5135418177, 0.2940250635, -0.0865993127, -0.1036761925, -0.3375145495, 0.057513684, 0.0035671156, 0.4307492673, 0.2280939966, -0.5632210374, -0.0149352923, 0.1015349999, 0.2425939143, -0.2797355354, -0.1239687279, -0.2287274897, -0.0023829646, -0.0262446646, -0.231154874, -0.0775360167, 0.232001707, 0.079661414, 0.0932470262, -0.1651243865, -0.3843822181, 0.2328846902, 0.1800967604, 0.405915916, -0.173058033, 0.4700658321, -0.1890891194, 0.3864487708, 0.3785930574, 0.4198212028, 0.0460541621, -0.2023147941, -0.0154213337, -0.4291307032, 0.3105559051, 0.3204347789, 0.1822679937, 0.3888300657, 0.000993132, 0.0838979334, 0.0625961646, -0.1935266852, 0.1843181849, 0.0306347478, -0.4366153181, -0.3393149376, 0.2915222347, -0.2039181441, -0.2291930318, 0.4974680841, 0.3780026734, -0.0986322984, 0.8824451566, -0.1571093202, 0.9794386625, 0.2037341744, -0.1459952593, 0.3811954558, -0.1224293932, 0.1476225406, -0.0426182151, 0.1852971762, -0.4120436013, -0.1451181173, 0.0860406309, 0.0816071108, 0.2815209031, 0.2387799323, -0.1553445309, 0.2907504141, 0.0358540304, -0.3333656192, -0.0773357674, 0.0177638121, 0.1783324927, -0.0715415031, -0.1739069819, -0.0036963425, 0.0612568855, -0.0061482145, -0.1024986356, 0.0029744687, -0.1696345061, -0.0574898161, 0.062301591, 0.07673195, -0.2052787989, 0.0409261584, 0.3093675673, -0.4988069832, 0.0172318034, 0.083840929, 0.7103011608, 0.0659713969, 0.0027818577, 0.2345374227, 0.3422036767, -0.0848111287, 0.2973736227, -0.0815070048, 0.1457799971, 0.0571479872, 0.0838046819, 0.0432694219, -0.1187578291, 0.2134902179, -0.3214099109, -0.1791062951, 0.2767014503, -0.2891270518, 0.0042895968, -0.1942338645, 0.2204031348, -0.4162171185, 0.0839955658, 0.024259951, 0.0666624755, 0.2395160198, -0.0836211294, -0.014378773, -0.2466915846, -0.1777969599, 0.0938922018, 0.3256411552, 0.4560348094, -0.1205666736, 0.046523273, -0.0224406309, -0.0455287658, 0.0286218468, -0.099192284, 0.0572034903, 0.0518082008, -0.2311883569, 0.0857979357, 0.7464829683, 0.2314580828, 0.2285173088, 0.1221896484, -0.3248083293, -0.0090099741, 0.2098962218, 0.2423278838, -0.0146309426, 0.2803833783, 0.2181926966, -0.4034715593, 0.1186025888, -0.2827788293, 0.1659014225, -0.0892531872, 0.2588096559, -0.6593565345, -0.0065081986, 0.1219422072, -0.2284170538, 0.1578781456, -0.177112475, 0.1459392905, -0.1767701805, -0.3078810275, 0.1345811486, 0.1028705165, 0.1273893416, -0.142796725, 0.0307553671, 0.0260114688, -0.1779370904, -0.1235928908, -0.0608401336, 0.2122113258, 0.1533197165, -0.3174437582, 0.0640734136, -0.3582108915, -0.1039741859, 0.0700335801, -0.0481161997, 0.3114537299, 0.142729491, -0.3573384881, 0.0014674555, 0.1781362891, 0.0465840213, -0.4318416715, 0.0442668796, 0.7221921086, -0.2277940065, -0.0542858653, -0.0044936109, 0.1619775891, 0.2565866411, -0.2838603854, -0.0096994601, 0.0773508027, 0.24262923, -0.5789577961, -0.047928717, 0.2664564252, 0.0082868682, 0.1420884132, 0.2397485822, 0.4003153443, -0.2191600353, -0.0373851806, 0.1288276464, 0.2618264258, 0.1671447009, 0.1011000574, 0.3663035929, 0.1752530336, 0.5033140779, 0.4916257858, 0.2436356097, -0.182741493, 0.1457698047, 0.063815929, -0.0090025496, -0.107901305, 0.0041905367, 0.2079649568, 0.0180786215, 0.3652297258, -0.1747031212, 0.1008375138, 0.1459258199, 0.1638458371, -0.209114477, 0.0815863386, -0.3186057508, 0.091406785, -0.0117245046, -0.2274354249, -0.003858105, -0.2079250515, -0.1353875101, 0.3794543445, -0.1710147262, -0.0699841827, -0.0831619203, 0.1997404844, 0.0939103067, -0.0283905771, 0.0909624025, -0.2273091823, 0.3274763525, 0.4901710749, -0.2089743763, 0.3316179216, 0.3097829223, -0.4471168518, 0.0762471259, 0.3841513991, 0.1532026529, -0.0171737857, -0.2064031065, -0.0549248047, 0.0541172102, -0.165728271, 0.160935536, -0.0120513923, 0.2563720047, 0.1860842109, 0.2445603311, 0.0707045868, -0.0884947032, 0.0681690127, 0.1879161745, 0.1001813114, -0.3758581281, 0.0644885376, -0.2310765982, -0.3452651799, 0.0030519816, -0.1659977585, -0.211677283, -0.1408896744, 0.0702654421, 0.0689822361, -0.0767301321, 0.2214146852, 0.1156567037, 0.2451763749, 0.0462586209, 0.2154214382, 0.0134389978, -0.3520790935, -0.4181019366, -0.1978958845, 0.1320774853, 0.0397787653, 0.34100914, 0.3438510001, 0.1442616582, 0.4004642963, -0.0909475386, 0.0727102682, -0.0493636243, -0.4624989629, 0.2876475453, -0.5645508766, -0.0265640952, -0.0917651579, 0.0916822553, -0.0035299433, 0.1134653091, 0.2303836942, 0.0732837841, -0.0645256415, -0.0519951023, 0.201382637, 0.179541111, -0.2014748752, 0.2402785867, 0.1941233873, -0.1924176663, -0.070681572, -0.3504210413, 0.2710880041, -0.0499289855, -0.2259753048, 0.5704772472, -0.0035794531, 0.2458711863, 0.2107554078, -0.5354071856, 0.0911499262, 0.5161125064, 0.1900074333, -0.2357141823, -0.5775598288, 0.4134142697, 0.2809973955, 0.2135027647, 0.1066075042, 0.4640437067, -0.1183604077, 0.3973375559, -0.3557237089, -0.2840926051, 0.4370101094, -0.2562057078, 0.0300556067, -0.0100481007, 0.282785207, -0.1806952953, 0.01976192, -0.4986234605, -0.3273220956, 0.3398217261, -0.3813390732, -0.1946465969, -0.0220698658, -0.0124067739, 0.0612321086, -0.0504375324, 0.784917891, 0.1974279433, -0.2776813209, -0.004824271, 0.0877256915 ]
https://github.com/huggingface/datasets/issues/4276
OpenBookQA has missing and inconsistent field names
@albertvillanova I agree that we should be consistent. In the last month, I have come across tons of code that deals with OpenBookQA and CommonSenseQA and all of that code relies on the original data format structure. We can't expect users to adopt HF Datasets if we arbitrarily change the structure of the format just because we think something makes more sense. I am in that position now (downloading original data rather than using HF Datasets) and undoubtedly it hinders HF Datasets' widespread use and adoption. Missing fields like in the case of #4275 is definitely bad and not even up for a discussion IMHO! cc @lhoestq
## Describe the bug OpenBookQA implementation is inconsistent with the original dataset. We need to: 1. The dataset field [question][stem] is flattened into question_stem. Unflatten it to match the original format. 2. Add missing additional fields: - 'fact1': row['fact1'], - 'humanScore': row['humanScore'], - 'clarity': row['clarity'], - 'turkIdAnonymized': row['turkIdAnonymized'] 3. Ensure the structure and every data item in the original OpenBookQA matches our OpenBookQA version. ## Expected results The structure and every data item in the original OpenBookQA matches our OpenBookQA version. ## Actual results TBD ## Environment info - `datasets` version: 2.1.0 - Platform: macOS-10.15.7-x86_64-i386-64bit - Python version: 3.8.13 - PyArrow version: 7.0.0 - Pandas version: 1.4.2
107
OpenBookQA has missing and inconsistent field names ## Describe the bug OpenBookQA implementation is inconsistent with the original dataset. We need to: 1. The dataset field [question][stem] is flattened into question_stem. Unflatten it to match the original format. 2. Add missing additional fields: - 'fact1': row['fact1'], - 'humanScore': row['humanScore'], - 'clarity': row['clarity'], - 'turkIdAnonymized': row['turkIdAnonymized'] 3. Ensure the structure and every data item in the original OpenBookQA matches our OpenBookQA version. ## Expected results The structure and every data item in the original OpenBookQA matches our OpenBookQA version. ## Actual results TBD ## Environment info - `datasets` version: 2.1.0 - Platform: macOS-10.15.7-x86_64-i386-64bit - Python version: 3.8.13 - PyArrow version: 7.0.0 - Pandas version: 1.4.2 @albertvillanova I agree that we should be consistent. In the last month, I have come across tons of code that deals with OpenBookQA and CommonSenseQA and all of that code relies on the original data format structure. We can't expect users to adopt HF Datasets if we arbitrarily change the structure of the format just because we think something makes more sense. I am in that position now (downloading original data rather than using HF Datasets) and undoubtedly it hinders HF Datasets' widespread use and adoption. Missing fields like in the case of #4275 is definitely bad and not even up for a discussion IMHO! cc @lhoestq
[ -0.0696031824, 0.2296478003, -0.0100900801, 0.0402288064, -0.1834874302, -0.1042137891, 0.319383949, 0.3728416562, -0.0084602879, 0.1532329619, 0.0812204257, 0.3126558065, 0.5082780123, 0.2665573657, -0.1158585623, -0.245972991, 0.3876905143, 0.1590896994, 0.0666596964, -0.1644399017, -0.2158473581, 0.3688813746, -0.1924868524, 0.229605034, 0.1179269925, -0.0768638253, -0.460231632, -0.1250721067, 0.0000285526, -0.1360206455, 0.0393473245, 0.3687199652, -0.2468781769, 0.2535470426, -0.0001078641, -0.1946755052, -0.0464920253, 0.1143710539, -0.2850138843, -0.2117994279, 0.0114881815, -0.2760747075, -0.1555109769, -0.1835090965, 0.0781672746, 0.0257272255, -0.1205443516, -0.1718740761, 0.0202819519, -0.1878926754, 0.2011324167, -0.0693089142, 0.2001219988, 0.09862113, 0.2986964881, 0.1908412427, -0.3160247207, -0.1359655261, 0.2559081018, -0.0796411335, 0.172449857, 0.3941915035, -0.0020535521, -0.1584800333, -0.1582529098, 0.0856369063, 0.0743026584, -0.0754493251, 0.1620190442, 0.7886561751, 0.2469025254, -0.2067466527, -0.4667553902, -0.2679791451, -0.0074329996, 0.0001957609, 0.1689700782, 0.2789776027, 0.2035883218, -0.0120463865, 0.2613493204, -0.1730069369, 0.1263400316, 0.1596776396, -0.4020984769, -0.284606576, -0.0293315444, -0.0341492258, -0.4117086232, -0.2079411, 0.1418245137, -0.2136274129, -0.1214390993, -0.0486856736, -0.2751647532, -0.1530784518, -0.119207412, -0.2220359296, 0.0575319789, -0.412748903, 0.2000184059, 0.0274831429, -0.3903745711, 0.1110265031, 0.0170325618, -0.3224205971, -0.0602531657, 0.0445677415, -0.1308726221, 0.1536912918, 0.1702961326, -0.0618941411, 0.1338481158, -0.0564725287, -0.499199003, -0.1716262102, 0.3712953031, -0.1937269121, -0.3502106369, 0.3883861005, -0.019887168, -0.1236194968, -0.2079337388, 0.0539519265, -0.1510806382, 0.0865786001, 0.0997683629, 0.160415411, -0.1202649772, -0.2795260251, -0.1537479013, 0.0201881193, -0.004678512, 0.1687164158, 0.0884287879, 0.1286206245, 0.1250651479, 0.3350716829, -0.1154183745, 0.1522701085, 0.0239189826, -0.2501380146, 0.0866942406, 0.1242215857, -0.3181289136, -0.0928897187, -0.1042449623, -0.1033549979, -0.0332416743, 0.2140455395, -0.3373625875, 0.1700284481, -0.3033414781, 0.2553762794, 0.1250355095, -0.056669198, 0.2018340379, 0.2573332787, -0.1382351667, -0.2928123772, 0.2027490288, -0.1258959919, 0.2024250776, -0.1517146677, 0.0606567636, 0.3241967559, -0.4737028182, -0.0357554108, 0.0964709297, 0.352640152, -0.0959916115, -0.0214303173, -0.0993586853, -0.0491411015, -0.1073005646, 0.1985854506, 0.0782830045, -0.255828023, -0.1632890701, -0.0393157117, 0.278934896, 0.0905505493, 0.0100147715, -0.3963422477, 0.0106875487, -0.161578849, -0.0994874984, -0.0988079235, -0.1594026983, -0.1323218793, -0.4348160625, -0.2168442905, -0.067705974, 0.1818798929, 0.0435793176, -0.1467618048, 0.0748762563, -0.0415210836, 0.3228680193, -0.1006831154, -0.0424549654, 0.1500799209, 0.377099514, 0.0172500815, 0.1662045866, 0.1761326045, -0.3448503315, -0.1111211404, -0.5325245857, -0.1221327409, 0.1451998651, -0.2550848424, -0.0314851552, -0.2018545717, 0.1034043506, 0.1097299233, 0.2036617845, -0.0470537581, -0.192343697, 0.0730236918, -0.1822303981, -0.1045263857, -0.1359561086, 0.2321664691, -0.0166648105, 0.1995251924, -0.1784273237, 0.1072958633, 0.2081708461, 0.1909949034, 0.3404949307, -0.1537513733, 0.0262676235, 0.3947635591, 0.0688626617, -0.1320857555, 0.0153781753, 0.3280013502, 0.3196361661, 0.2130314857, 0.1744673848, 0.0565102026, 0.0061228946, -0.0878005996, -0.0606979243, 0.4383126795, -0.0852039605, 0.1017052159, 0.0815561935, 0.0602030121, 0.044443544, -0.2375166118, 0.0144316051, -0.2739398777, 0.1222718433, -0.058064606, 0.2378386408, -0.1290924996, -0.23894611, 0.3914740384, 0.6482895017, -0.0100838179, -0.0938526616, 0.1628198773, 0.1130887493, 0.0930275172, 0.2293612063, -0.1191484034, 0.2146212012, 0.2094039172, -0.3093629777, 0.1246579736, 0.1629592925, -0.1301350743, 0.3430815339, 0.2611314058, -0.1460606754, 0.0318001732, 0.1446853429, 0.2648164332, -0.1750513166, -0.239999339, 0.2573033571, -0.1093204767, -0.1500407755, 0.248375833, -0.149507463, -0.0320326239, -0.0668060854, -0.2417822778, -0.2483551949, -0.2763034403, 0.1566925049, 0.0683524385, -0.1753715128, 0.2720606029, 0.1248478442, 0.3851288259, -0.3690246642, 0.328646332, -0.4920906723, 0.1217366681, -0.2863212228, 0.1710444838, 0.0328657776, -0.3764327765, 0.1774441153, -0.20749937, -0.1673381776, -0.5746415257, -0.6637226939, 0.2495167404, -0.3124956489, 0.0363298878, 0.173734799, 0.0923259929, -0.6263770461, -0.231152609, 0.0806939974, 0.1109649837, -0.1410902441, 0.1481944621, -0.1676063836, -0.1185649112, -0.1557625979, -0.3343429565, -0.0898023248, -0.1443950683, 0.3780383468, -0.2561936677, 0.214413926, 0.4877122045, -0.2778663933, -0.2457567602, -0.0996501595, 0.2701756954, -0.4299853444, -0.2034659386, 0.1219896227, -0.265609771, -0.3593102694, -0.0514257252, -0.0914778858, 0.3019790649, -0.0317384638, -0.4091457427, -0.064920783, 0.0692012981, 0.0029039313, 0.0159954168, 0.1816910207, 0.27900213, 0.1883378476, -0.1044042856, -0.2142485678, -0.1808731705, 0.0779492259, 0.2458804995, 0.4659023583, -0.2716847062, 0.0555198751, 0.0289958511, 0.1235661879, 0.063189283, 0.457559973, 0.3480699658, 0.2020812482, 0.2117083669, -0.2431608588, 0.0587545037, 0.1609728336, -0.2132671475, 0.1062645093, 0.3341735303, -0.22469078, 0.0685696453, -0.0653824285, 0.0308238752, -0.5297787786, -0.4418598711, -0.0920335427, -0.2406026721, 0.2859292328, 0.3097967505, 0.1940310001, -0.077698119, -0.1311575472, 0.459641248, 0.2273559123, 0.2022646964, -0.0872344598, -0.3523531854, -0.0485561229, -0.1509984732, 0.449172169, -0.3587692976, 0.3188934028, 0.0206650738, -0.0504281633, -0.026772242, 0.0312553272, 0.5746680498, 0.0354879946, -0.43757236, 0.2689489722, -0.1330820918, 0.0244521778, -0.3724324107, -0.0905417278, -0.196619764, 0.2331434339, -0.1313021928, -0.6180852056, -0.2150965035, 0.1259801388, 0.038096983, -0.1976663172, -0.2198389024, -0.2133510113, -0.0723523945, -0.0679103583, -0.3726087809, -0.069712095, 0.1390255094, -0.0868759826, 0.0697715059, -0.1384427845, -0.1437706053, 0.2967101038, 0.1771461964, 0.3629650474, -0.0776810497, 0.3815391362, -0.1740054041, 0.3287403882, 0.5683431625, 0.3478129804, 0.0446083359, -0.1153294668, 0.1872665435, -0.5689080954, 0.2546128631, 0.4183632433, 0.2751156688, 0.350073576, 0.0273871943, 0.1056024358, -0.1148590595, 0.0240051895, 0.2426151782, -0.1683688909, -0.5273302197, -0.2649078667, 0.2989833355, -0.1007201672, -0.2194141299, 0.4401059747, 0.7184060216, -0.0378830172, 0.8356882334, -0.0869708657, 1.0262875557, 0.0421639644, 0.0433506109, 0.2748911381, -0.3377830386, 0.2972128689, -0.246985808, 0.0570254363, -0.4488586783, -0.1527376026, -0.0051700352, 0.0950762853, 0.4571219981, 0.1832383871, 0.0112496056, 0.2882126272, 0.0976339206, -0.0900072679, -0.0659119114, -0.0019937935, 0.0135920485, -0.1246871799, -0.0402902141, 0.1376139224, -0.0282081384, 0.0881829038, -0.2107426375, -0.023485221, -0.2281863242, -0.1112757921, 0.0376884863, 0.0066504329, 0.0674034283, -0.1500714421, 0.4083313644, -0.3489128053, 0.1552578062, -0.1935434192, 0.7438077331, 0.1775080115, -0.1498911232, 0.2480340004, 0.157885015, 0.0000395464, 0.2723700702, -0.08247412, 0.2571640909, -0.0091155162, 0.0258540493, 0.059294045, -0.1869819462, 0.1805791557, -0.3997626305, -0.2153986096, 0.3853855431, -0.2461225539, 0.1816170067, -0.151828289, 0.2774574459, -0.2990747094, 0.1574231833, 0.0379299968, 0.1043577194, 0.2104976177, 0.1312261224, -0.0575155579, -0.3873955905, -0.1699643284, 0.0519761294, 0.0253975932, 0.4092175364, -0.0946325883, -0.1146201193, -0.0770723447, -0.085504055, 0.2415272444, -0.2572834492, -0.2158302367, 0.1351887435, -0.2380883694, 0.1752777249, 0.7735232115, 0.1382731199, 0.0455733947, 0.2408797294, -0.3171110451, 0.0605327561, 0.1505354494, -0.0178247467, -0.0452444144, 0.4606648088, 0.1109479293, -0.3285834491, 0.0472815707, -0.3610382378, 0.1299521923, -0.0037913183, 0.2519104779, -0.74686867, -0.0310012475, -0.0802560374, -0.1981415302, 0.1880059689, -0.1504579633, -0.0763405636, -0.1958998442, -0.4253174961, 0.1517904401, 0.1423773021, 0.1035007164, -0.1528234929, -0.0454512984, -0.0194713864, -0.1413959563, -0.0934225172, 0.0016972595, 0.1449973434, 0.2413550019, -0.0360191464, 0.0882909521, -0.3178389072, -0.0484260842, 0.2309349179, 0.1359750628, 0.171840772, 0.1142713875, -0.281208843, -0.0013338767, -0.0001277499, 0.2056273073, -0.1682724953, -0.007853372, 0.5881760716, -0.1308362782, 0.1727700084, -0.0161494408, 0.1383463144, 0.3321656585, -0.2772145271, -0.1656869501, 0.2568793893, 0.2702168524, -0.3807605803, -0.1849170774, 0.1031587198, 0.059897393, 0.0647839904, 0.2112043798, 0.5977261662, -0.2737560272, -0.0270009153, 0.1436394304, 0.1824153662, -0.0841941759, -0.0696939453, 0.3393566012, 0.0112173446, 0.5447097421, 0.4411687255, 0.2687282264, -0.2871575654, 0.1440004408, 0.0256738346, 0.0302330907, -0.0250511132, 0.1499406397, 0.1928397864, -0.1780608594, 0.5613921881, -0.1351788491, 0.1588914394, 0.0283278618, 0.1764391065, -0.3791718781, 0.2482656837, -0.2988900244, -0.0223742183, -0.186538741, -0.2365151197, 0.0494637825, -0.2035901099, -0.0336614028, 0.2512710392, -0.1335879564, -0.1783314794, -0.019544119, 0.3867735863, 0.1532831192, 0.0285180509, -0.0252676718, -0.1014410183, 0.1348752975, 0.4785366654, -0.1586521715, 0.2012434155, 0.0080989292, -0.3369815946, 0.1947408468, 0.3069112897, 0.0137720006, 0.0696429461, -0.1295771897, -0.1931057572, -0.0472503155, -0.0138045484, 0.2352529019, 0.0173694286, 0.2774946094, 0.2626667321, 0.2401933968, 0.0948474556, -0.0602800399, 0.0070417565, 0.0028921496, 0.0228171647, -0.3785491288, 0.0825845599, -0.1251353472, -0.1042193174, 0.0189982653, -0.1416653246, -0.1990324259, -0.1632674932, 0.1522008479, 0.1935599446, 0.0476657376, 0.0401873887, 0.1227731928, 0.2091655284, -0.1714830548, 0.2552039921, -0.0606924146, -0.3017765582, -0.2546449602, -0.1682251543, 0.0830149055, -0.0800319836, 0.1634855717, 0.2931206822, 0.1140805036, 0.4347024262, -0.1282475889, 0.0673772618, -0.0633615479, -0.3583955765, 0.3047113419, -0.4338856339, -0.0263747573, -0.0759461522, 0.088940464, -0.104678154, 0.1115249917, 0.4254392982, 0.1584561467, -0.0392262526, -0.2260873467, 0.0958639681, 0.2147522122, -0.1520932913, 0.2303376496, 0.2107989043, -0.2264616638, -0.1180132627, -0.4756059349, 0.122901313, 0.0057394193, -0.1347248405, 0.5090206265, -0.2616987824, 0.1247309372, 0.3941831291, -0.6035907865, 0.1646506041, 0.5223122835, 0.0760593414, 0.0215270109, -0.5713090897, 0.3831680119, 0.3763612509, 0.103110224, 0.1308057159, 0.2499993891, 0.0104182549, 0.3519023955, -0.3713920116, -0.3835077286, 0.4825029969, -0.291329056, 0.0362211913, -0.0529258586, 0.3773244917, -0.2167601734, -0.0573678762, -0.62322402, -0.2404246777, 0.3108644783, -0.3280769587, -0.111615032, -0.0490995459, -0.1134832725, 0.0052284715, -0.1140274256, 0.757545948, 0.0928391218, -0.2280109674, 0.0360917374, 0.1256202608 ]
https://github.com/huggingface/datasets/issues/4276
OpenBookQA has missing and inconsistent field names
I'm opening a PR that adds the missing fields. Let's agree on the feature structure: @lhoestq @mariosasko @polinaeterna
## Describe the bug OpenBookQA implementation is inconsistent with the original dataset. We need to: 1. The dataset field [question][stem] is flattened into question_stem. Unflatten it to match the original format. 2. Add missing additional fields: - 'fact1': row['fact1'], - 'humanScore': row['humanScore'], - 'clarity': row['clarity'], - 'turkIdAnonymized': row['turkIdAnonymized'] 3. Ensure the structure and every data item in the original OpenBookQA matches our OpenBookQA version. ## Expected results The structure and every data item in the original OpenBookQA matches our OpenBookQA version. ## Actual results TBD ## Environment info - `datasets` version: 2.1.0 - Platform: macOS-10.15.7-x86_64-i386-64bit - Python version: 3.8.13 - PyArrow version: 7.0.0 - Pandas version: 1.4.2
18
OpenBookQA has missing and inconsistent field names ## Describe the bug OpenBookQA implementation is inconsistent with the original dataset. We need to: 1. The dataset field [question][stem] is flattened into question_stem. Unflatten it to match the original format. 2. Add missing additional fields: - 'fact1': row['fact1'], - 'humanScore': row['humanScore'], - 'clarity': row['clarity'], - 'turkIdAnonymized': row['turkIdAnonymized'] 3. Ensure the structure and every data item in the original OpenBookQA matches our OpenBookQA version. ## Expected results The structure and every data item in the original OpenBookQA matches our OpenBookQA version. ## Actual results TBD ## Environment info - `datasets` version: 2.1.0 - Platform: macOS-10.15.7-x86_64-i386-64bit - Python version: 3.8.13 - PyArrow version: 7.0.0 - Pandas version: 1.4.2 I'm opening a PR that adds the missing fields. Let's agree on the feature structure: @lhoestq @mariosasko @polinaeterna
[ -0.1227659434, 0.1294834018, -0.0531327948, 0.2436132431, -0.1115282178, -0.0573373921, 0.1977688372, 0.2891437709, -0.115660876, 0.2128254175, 0.1821909398, 0.4630895257, 0.37812379, 0.3454271257, -0.0517650545, -0.3028847873, 0.3833729029, 0.1199520379, 0.2903484404, -0.0097328937, -0.2617138326, 0.4804413021, -0.3111643493, 0.1456240267, 0.0606265515, -0.1175338924, -0.4741399884, -0.0885008499, -0.0695976019, -0.1171175241, 0.0329109132, 0.1738624424, -0.29921031, 0.2272765934, -0.0001115036, -0.1767384708, -0.0957512185, 0.0382845402, -0.2103365809, -0.2624767721, -0.0572989173, -0.3349642754, -0.1145700216, -0.2542567253, 0.0750597641, -0.1084403098, -0.1459991783, 0.0179546885, 0.0932157189, 0.0680731311, 0.1937107891, -0.0296376143, 0.3744158745, 0.0864877328, 0.1934262961, -0.0575396121, -0.3595840931, -0.0100524845, 0.3006980419, -0.0263599455, 0.2761845291, 0.1768283397, -0.0354530439, -0.1663951725, -0.3157791495, 0.1727365851, 0.129355967, -0.1915602237, 0.1732870042, 0.4257300496, 0.0966125801, -0.2577462494, -0.457293272, -0.2639892995, 0.0073604845, -0.1520213038, 0.2117086202, 0.2656594217, 0.1055848673, -0.0488575473, 0.1760716885, -0.1050131395, 0.1470010579, 0.0997324064, -0.3217182755, -0.1179335043, 0.0170783065, -0.0177785717, -0.3173140883, -0.1964939684, 0.4314584434, -0.2086995542, -0.0804776624, 0.0139196888, -0.3882031143, -0.0969555154, -0.1194167435, -0.2539887726, -0.1374586672, -0.221458599, 0.0988516137, 0.0020823383, -0.2735094428, 0.1231499612, -0.1331828833, -0.1584863365, -0.0640497357, 0.2421085685, -0.2459201068, 0.1263545901, 0.0539033227, -0.1044862792, 0.0753054023, -0.2187895924, -0.3298302591, -0.102562435, 0.4273863137, -0.0753173977, -0.3060821891, 0.3053895533, -0.0833459273, -0.085962683, -0.1277032644, 0.0360777937, -0.2658692598, 0.00109128, 0.1006582007, 0.1081224307, -0.1107575521, -0.2436734736, -0.2003214359, 0.0338806435, -0.0694766715, 0.0505347699, 0.0993649513, 0.2018514872, 0.2790077031, 0.3210913241, -0.1651395261, 0.0207875725, -0.0432005599, -0.1567286253, -0.0297005698, 0.1557582319, -0.189579457, -0.1727979034, -0.1457662731, -0.2252675295, 0.0560465865, 0.2262821794, -0.2934701443, 0.0704142228, -0.2920824289, 0.2486936599, 0.1028761342, -0.0648102537, 0.202364549, 0.2036436796, -0.1215250567, -0.2953962088, 0.1192035004, -0.0661068559, 0.2310603559, -0.141550824, 0.2451856136, 0.2159565091, -0.4761734307, 0.0169275086, 0.1729526222, 0.2636411488, -0.0949213132, -0.0716294795, 0.0844311044, -0.1926233172, -0.1709378511, 0.1019343287, 0.1432536095, -0.21985434, -0.2468984723, -0.1720296443, 0.2358918786, 0.0505826175, 0.1664778292, -0.3376272321, -0.0937113464, -0.0191646926, 0.0847072154, 0.0170153454, -0.3435070217, -0.1635674536, -0.4360638261, -0.1005596146, -0.0045318953, 0.2611822784, 0.0102104377, -0.0067828866, -0.0073438757, -0.2149258405, 0.1653945893, 0.0191702452, -0.1370357573, 0.2273194045, 0.3431299925, 0.0024915722, 0.0901403576, 0.0278123375, -0.3589978516, -0.0752972737, -0.5677214861, -0.0894886106, -0.1092192382, -0.0865556076, -0.1470210701, -0.0260540359, 0.1151372716, 0.1055311114, 0.1590503454, 0.0149064008, -0.055512093, 0.028620299, -0.1817696542, -0.2387735844, -0.2334938496, 0.1872779429, -0.2748403549, 0.1702752113, -0.3251534104, -0.0579887405, 0.1258346736, 0.2945931256, 0.3319773972, -0.2358253747, 0.054921478, 0.5029608607, 0.1028287709, -0.1955350637, 0.1301609278, 0.2393957227, 0.2222971171, 0.2265912741, -0.0206646118, 0.0178151149, -0.0860928595, 0.0277852267, -0.0366938822, 0.5197253823, -0.1242089048, 0.0951521099, 0.1264326721, 0.0772211403, 0.1951890588, -0.2844772935, 0.0635278374, -0.2143609524, 0.1527556479, -0.0160785969, 0.3517082334, -0.1698877811, -0.4633815885, 0.241739586, 0.5189926028, -0.0235862546, -0.1254297495, 0.0866568312, 0.1243805811, 0.1088788658, 0.067982167, -0.0598792993, 0.2594279647, 0.2369303256, -0.3302018046, 0.167219013, 0.2142619342, -0.1110283062, 0.403808713, 0.2749055624, -0.3918888271, 0.123985827, 0.2421784401, 0.2290454209, -0.1030397043, -0.0795378461, 0.3744899333, 0.061518874, -0.0857164413, 0.2430693954, -0.115616262, -0.2369739562, -0.209985584, -0.3497955799, -0.2407313734, -0.1152426973, 0.1840033233, 0.1039342731, -0.0843765661, 0.528783977, 0.3818038702, 0.1957977861, -0.3022129536, 0.251601547, -0.4906474948, 0.0478497259, -0.1930364072, 0.1969322264, 0.0936819091, -0.3598352969, 0.1608750224, -0.2226646543, -0.1219842508, -0.5356273651, -0.5556455255, 0.0864238068, -0.2615892887, 0.2382650077, 0.1416539997, 0.0404229723, -0.4078267813, -0.3700217009, 0.2249289304, 0.1187511683, -0.2064422369, 0.2014658153, -0.1614038497, -0.335888803, -0.1385357678, -0.3677569628, -0.080664359, -0.0821336731, 0.3650188744, -0.1025463343, 0.228974551, 0.3289300203, -0.1298049539, -0.2909533381, 0.0979060605, 0.1153638586, -0.251889497, -0.1769761741, 0.0944933966, -0.1645527482, -0.2252820134, 0.02619965, -0.048145812, 0.2118772715, -0.1297398359, -0.3867567778, -0.23605977, 0.0413243771, 0.1241029277, 0.1693953574, 0.077617906, 0.2897634208, 0.3109038472, -0.1027288139, -0.1665300131, -0.4273247421, -0.0180261377, 0.3021514416, 0.4634048045, -0.3625275493, 0.1608625799, -0.1240990907, 0.0023474186, 0.0094806645, 0.3506607711, 0.1515037715, -0.0052683195, 0.0718127638, -0.2306974828, -0.1277490109, 0.0316177346, -0.2316506058, 0.0585433096, 0.2887188792, -0.294200778, 0.1125950068, -0.1488188207, 0.1061367691, -0.5178530216, -0.3060031235, -0.1865828186, -0.160848543, 0.3870385289, 0.2780505419, 0.012462277, -0.1357076466, -0.0561649054, 0.2939872146, 0.0258513503, 0.0657458156, -0.0785290673, -0.3588758111, -0.0103737265, -0.1426103413, 0.422932595, -0.2860358357, 0.2489162683, 0.1301641464, 0.0998185501, 0.0053231018, 0.2126433551, 0.7972444892, 0.0315617323, -0.4688004553, 0.302439332, -0.1197976395, -0.0319883898, -0.32829988, -0.0313431658, -0.0186174903, 0.437977165, 0.1388610899, -0.4520823359, -0.0188289285, 0.2419734895, 0.2381821722, -0.2459292561, -0.074821569, -0.2716242373, -0.0631896928, -0.0122863557, -0.2078570575, -0.0740655512, 0.2199373692, 0.113617152, 0.1106212586, -0.0790067017, -0.2644731104, 0.2604279816, 0.2837175131, 0.3572390079, -0.2024771869, 0.437782824, -0.224340871, 0.3011211157, 0.4790894985, 0.3902092278, 0.0053430819, -0.4359076023, 0.0998991504, -0.5236309171, 0.2256714404, 0.177844584, 0.1896972209, 0.3772082627, -0.0664846823, 0.0849997103, 0.1225889325, -0.104095608, 0.2761091888, -0.0157690104, -0.3889243007, -0.3084338605, 0.2473216504, -0.2022996545, -0.1692667454, 0.4423814714, 0.3534352779, -0.049697794, 0.9052365422, -0.23526977, 0.9310003519, 0.0504797027, -0.2425623834, 0.2710794508, -0.4328080714, 0.2700551748, -0.1203609705, 0.2359977365, -0.5181067586, -0.1577053964, 0.0900911167, 0.0877592117, 0.2624492645, 0.2051600069, -0.1191251501, 0.2523733675, 0.043698404, -0.3519421518, -0.0200384147, -0.0201821979, 0.2961990237, -0.0045860591, -0.1460127085, 0.0416388363, 0.0230057221, -0.0264114253, -0.1382807344, 0.0329402275, -0.1594154984, -0.0429602154, -0.0306768864, 0.0530267693, -0.1027335748, -0.036929097, 0.435574919, -0.4692651033, -0.0758379921, 0.1702310741, 0.6946984529, 0.0292822178, -0.1147402599, 0.3861618042, 0.2650388479, -0.072560139, 0.2786453068, -0.0025961469, 0.1573778242, 0.028179612, 0.0517747141, 0.102137804, -0.1830603331, 0.0869922116, -0.3640324473, -0.0979759768, 0.3637430072, -0.2758002877, 0.0110187912, -0.3319992721, 0.2565335333, -0.4959950447, 0.123962149, -0.0158705618, 0.1225644872, 0.2212996781, -0.031442333, -0.0600146987, -0.2707334757, -0.2629671395, -0.073470585, 0.1835182458, 0.4372507632, -0.0157404784, 0.0016239829, -0.0522298031, -0.1351684928, 0.0255957916, -0.2900261283, -0.0126250368, 0.1309180856, -0.2370335162, 0.2933890224, 0.8270550966, 0.1849595159, 0.1377265602, 0.2103327215, -0.3168667257, 0.026810145, -0.0546114892, 0.290648222, -0.091551207, 0.4083641171, 0.3413814902, -0.2920485735, 0.1348320842, -0.3003430963, 0.1879256517, -0.2479501516, 0.303907454, -0.7324174047, -0.0214158744, 0.0046019973, -0.2280011326, 0.1704419702, -0.1775668263, 0.0521031581, -0.1815687418, -0.3394848406, 0.1412887424, 0.1097955182, 0.0572007038, -0.3014431, 0.0226826109, 0.000537607, -0.1457262635, -0.2104511559, 0.0725267231, 0.1250723749, 0.0921286121, -0.236161679, 0.1439383626, -0.4263331294, -0.1549978256, 0.1247405186, 0.0279304739, 0.3446722925, 0.0830086023, -0.3231664896, 0.0120611703, 0.0538546331, 0.0284845736, -0.3018507659, -0.0128941974, 0.6438711286, -0.2483634502, 0.0534958728, -0.0040789992, 0.2113294601, 0.2914757133, -0.2818869054, 0.0593402907, 0.2022076249, 0.2397367209, -0.567116797, -0.119717896, 0.3210221529, 0.0538231693, 0.0769441724, 0.1798098385, 0.4685710967, -0.1739064455, -0.0270178579, 0.1347606182, 0.2508195937, 0.0013564804, -0.022929864, 0.4606135488, 0.165039137, 0.4246288836, 0.5513445139, 0.2517766356, -0.2753793597, 0.2397169918, -0.0021751975, 0.0244708546, -0.1631890535, 0.0936710984, 0.1272818297, -0.1404579878, 0.5015010238, -0.3174087703, 0.0452761538, 0.0731407478, 0.1120059341, -0.2818336487, 0.046042338, -0.1867114007, 0.0558692962, -0.0803974122, -0.1864292473, -0.0106482357, -0.085781984, -0.1190582961, 0.3817881346, -0.0304393619, -0.0718708411, 0.0509204492, 0.3453859389, 0.099413693, -0.0642895326, 0.0026720995, -0.2425035387, 0.2131692618, 0.3935344219, -0.2334592193, 0.2876051068, 0.1720986813, -0.3992298245, 0.1464208215, 0.267349273, 0.0848378688, -0.0173958745, -0.1246391386, -0.114099592, -0.0545876063, -0.0753420368, 0.1728267968, 0.1003947258, 0.3005588353, 0.3896973729, 0.1270169467, 0.0934839472, -0.0959645361, 0.1593383551, 0.0931778923, 0.0106139733, -0.4173464179, 0.0477498658, -0.1416768581, -0.4048498571, -0.0838072971, -0.110524103, -0.0704644173, -0.041889932, -0.006949143, 0.1371657699, -0.0385466367, 0.2213146091, 0.1282764673, 0.2091664821, -0.0657712817, 0.3741938174, 0.1207345352, -0.305418402, -0.4476357102, -0.1793344766, 0.1913489848, 0.0721634477, 0.2102836072, 0.4021537006, 0.143010065, 0.3653482795, -0.1624164581, -0.0366756432, 0.001270761, -0.3429919183, 0.3362573087, -0.5514027476, -0.0841142982, -0.0861212909, 0.0953220129, 0.0291713905, 0.1775506288, 0.2629627883, 0.0922372043, -0.0335221663, -0.1707147658, 0.0708326846, 0.2319627404, 0.0355931483, 0.3394762874, 0.148320049, -0.0469811186, -0.1070332006, -0.278762877, 0.2217554301, -0.0301835071, -0.2635975182, 0.5513608456, -0.0922337994, 0.1529086679, 0.3110049367, -0.5364219546, 0.1412920952, 0.5675958395, 0.1173081398, -0.0587514602, -0.4865901768, 0.3406098187, 0.3336185515, 0.2185287178, 0.124203302, 0.3331138194, -0.0943714306, 0.3457241654, -0.4066906571, -0.3158182502, 0.4238841236, -0.2337876707, 0.0034082078, -0.0463922881, 0.2940777242, -0.2256067246, -0.0992402658, -0.6285580993, -0.3294949234, 0.3771766722, -0.287697643, -0.1582081467, -0.0120708765, -0.1471597403, 0.1740896553, 0.0317044854, 0.8797950745, 0.2091995627, -0.10173475, 0.0753023103, 0.1399415135 ]
https://github.com/huggingface/datasets/issues/4276
OpenBookQA has missing and inconsistent field names
IMO we should always try to preserve the original structure unless there is a good reason not to (and I don't see one in this case).
## Describe the bug OpenBookQA implementation is inconsistent with the original dataset. We need to: 1. The dataset field [question][stem] is flattened into question_stem. Unflatten it to match the original format. 2. Add missing additional fields: - 'fact1': row['fact1'], - 'humanScore': row['humanScore'], - 'clarity': row['clarity'], - 'turkIdAnonymized': row['turkIdAnonymized'] 3. Ensure the structure and every data item in the original OpenBookQA matches our OpenBookQA version. ## Expected results The structure and every data item in the original OpenBookQA matches our OpenBookQA version. ## Actual results TBD ## Environment info - `datasets` version: 2.1.0 - Platform: macOS-10.15.7-x86_64-i386-64bit - Python version: 3.8.13 - PyArrow version: 7.0.0 - Pandas version: 1.4.2
26
OpenBookQA has missing and inconsistent field names ## Describe the bug OpenBookQA implementation is inconsistent with the original dataset. We need to: 1. The dataset field [question][stem] is flattened into question_stem. Unflatten it to match the original format. 2. Add missing additional fields: - 'fact1': row['fact1'], - 'humanScore': row['humanScore'], - 'clarity': row['clarity'], - 'turkIdAnonymized': row['turkIdAnonymized'] 3. Ensure the structure and every data item in the original OpenBookQA matches our OpenBookQA version. ## Expected results The structure and every data item in the original OpenBookQA matches our OpenBookQA version. ## Actual results TBD ## Environment info - `datasets` version: 2.1.0 - Platform: macOS-10.15.7-x86_64-i386-64bit - Python version: 3.8.13 - PyArrow version: 7.0.0 - Pandas version: 1.4.2 IMO we should always try to preserve the original structure unless there is a good reason not to (and I don't see one in this case).
[ -0.1161505356, 0.1762668341, -0.0998141393, 0.2082637399, -0.117515862, -0.067944631, 0.2634468973, 0.3842664659, -0.0682339072, 0.2268134803, 0.0829303637, 0.5433103442, 0.3696924746, 0.374489814, -0.0723104253, -0.1654941887, 0.2737470865, 0.0790645778, 0.0742814839, -0.0737501755, -0.2772864997, 0.4863911271, -0.2478753775, 0.1263599247, -0.0173006803, -0.0689552799, -0.4230710268, -0.0818825662, -0.0776616186, -0.1128557324, 0.0236231089, 0.0905775353, -0.2878525853, 0.2855876684, -0.0001039611, -0.2040238082, -0.1029008701, 0.016638929, -0.2745752037, -0.3155653179, -0.0625000447, -0.2827523351, -0.0228265841, -0.3079061806, 0.0283305757, -0.0746189207, -0.1330302209, 0.0362829827, 0.2423204035, 0.109177269, 0.2800573409, -0.0366080776, 0.3084506392, 0.0872450322, 0.1979925036, -0.0720163211, -0.3100848496, 0.0493777134, 0.275647521, -0.0370132476, 0.1984854043, 0.3345745206, -0.0073393113, -0.1663631201, -0.3395026028, 0.1237379611, 0.1451829672, -0.2142664641, 0.1994116306, 0.4345284402, 0.140697524, -0.229367435, -0.4140453637, -0.1950009614, 0.0871017352, 0.0065516136, 0.1302559525, 0.2665212154, 0.0974124074, -0.0211019497, 0.1986638159, -0.0972030014, 0.087101914, 0.1360362768, -0.3380749226, -0.0190095864, -0.0554935858, -0.04202988, -0.3384497464, -0.1862933785, 0.3455228508, -0.1355032027, -0.0522471964, 0.0849867463, -0.4293118715, -0.0927634314, -0.1133905277, -0.2603659928, -0.0867137387, -0.3093693554, 0.209497869, 0.038483683, -0.1880082786, 0.1611951888, -0.0983721316, -0.1684163511, -0.0119011626, 0.0938895866, -0.1774171442, 0.0835959762, 0.0318263732, -0.1086203232, -0.0003453539, -0.1978135556, -0.3115185797, -0.0807544291, 0.4885975718, -0.1168295667, -0.2789550126, 0.2509898543, -0.0757602379, -0.0863249674, -0.1022852063, 0.1180620566, -0.2399753928, -0.1147844642, 0.0883718878, 0.1448533684, -0.1070464924, -0.2465524673, -0.2602136433, 0.0047857692, -0.0428153016, -0.0045183967, 0.1395770907, 0.1415013373, 0.3251699209, 0.3179630637, -0.1487002671, 0.0040556244, 0.0178212188, -0.1341715157, 0.0499025658, 0.1909600794, -0.1317247301, -0.073873736, -0.0367433392, -0.1831253767, 0.0450733677, 0.251337409, -0.4002464712, 0.0646225736, -0.2806537747, 0.2998212576, 0.1551377177, -0.0261790529, 0.1702262461, 0.2366894037, 0.0158688016, -0.2360410839, 0.0848966986, -0.0527100749, 0.2143972069, -0.1937698573, 0.22608383, 0.1470684409, -0.4692806602, -0.0124614025, 0.0516174622, 0.2656969428, -0.1624744236, -0.0453695618, 0.0437521078, -0.1041747779, -0.101020284, 0.2361855954, 0.1349918693, -0.1779551208, -0.2616645992, -0.132616356, 0.1886616945, 0.0202896614, 0.0040240157, -0.3284062147, -0.0587316081, 0.0224262625, 0.050037194, 0.0695556253, -0.1957745254, -0.0745369941, -0.4424241483, -0.1358467042, -0.0091457572, 0.2606329918, 0.0382566378, -0.0517784357, 0.0433983207, -0.2837475836, 0.216997236, -0.0322632268, -0.0847253874, 0.1967955828, 0.3808196783, -0.0952734351, 0.1505289227, 0.0497955419, -0.3753676414, -0.0786412507, -0.5623027086, -0.0061643785, -0.2038078755, -0.1636136919, -0.2155459374, -0.0545330197, 0.100349009, 0.1010088995, 0.2583276629, -0.0975087509, -0.081031628, 0.0535620376, -0.1708596051, -0.1962126344, -0.1490837485, 0.1388361007, -0.262571156, 0.188849166, -0.2881686687, -0.0800054967, 0.2341862321, 0.2018252611, 0.3368148804, -0.1874921024, -0.0099294083, 0.4728310406, -0.0242722537, -0.1281564385, 0.0444731005, 0.1807563454, 0.1571734697, 0.1908341646, -0.0373196751, 0.0646163225, -0.0344994105, 0.0136086484, 0.0323697291, 0.5313248634, -0.1247313172, 0.1122451499, 0.0888451189, 0.1604669392, 0.188558355, -0.281727016, 0.074578166, -0.2457058579, 0.0861222371, -0.0327708349, 0.2651014626, -0.1466148645, -0.3386495113, 0.3058727682, 0.5816290975, -0.0018498363, 0.021254722, 0.0500007086, 0.0603066981, 0.0839022249, 0.1256485432, -0.0095961373, 0.1865544319, 0.2287824154, -0.2318186909, 0.127583459, 0.2199300081, -0.1522220522, 0.4072504044, 0.1439539045, -0.2241385728, 0.1113509685, 0.1973221749, 0.134993583, -0.193662867, 0.0189080425, 0.3170987964, 0.1271078885, -0.1464080662, 0.2463553697, -0.1314216554, -0.1791523397, -0.0768753737, -0.3673416376, -0.2598343492, -0.1653420627, 0.2216367275, 0.0701691955, -0.1488023549, 0.4860240519, 0.4406915307, 0.2451149076, -0.2136398107, 0.3129407763, -0.4735951126, -0.0562950559, -0.1763980538, 0.2618391812, 0.0407952815, -0.2819299102, 0.1080022156, -0.2482580692, -0.0768496916, -0.4382807314, -0.513191402, 0.0558779761, -0.3506878912, 0.2944268584, 0.0944472477, 0.160281077, -0.4880571961, -0.2957557738, 0.173408553, 0.0852152333, -0.1876088232, 0.1554163992, -0.1047737524, -0.2130278796, -0.1804383844, -0.348551482, -0.2095427513, -0.1127630919, 0.3611765206, -0.1796553284, 0.249494344, 0.3568105996, -0.1382676661, -0.1979293227, 0.0803250298, 0.1736747921, -0.3752736151, -0.2353875637, 0.1732623428, -0.2401869446, -0.3293791115, 0.0034919386, -0.0258795898, 0.3786913753, -0.1570197195, -0.3531202972, -0.140611127, 0.0295630228, 0.0246117171, 0.1031479985, 0.1047216281, 0.2619678974, 0.2166335583, -0.1548823416, -0.2434277236, -0.1901933402, 0.0001962214, 0.2206795663, 0.3922326863, -0.3820078671, 0.1994882822, -0.0549262427, -0.0112124318, -0.0499066897, 0.3765995204, 0.1901937276, 0.0389415547, 0.1284619123, -0.2115111947, -0.1767995209, 0.0248638522, -0.237577185, 0.0492531918, 0.3221207261, -0.300763607, 0.0745563209, -0.1179613397, 0.0055833724, -0.6239778399, -0.3436446488, -0.1725700647, -0.0837450027, 0.315600276, 0.356297642, 0.0086775161, -0.0942702368, -0.0239870939, 0.2829868793, 0.0585684665, 0.038872499, -0.1316912323, -0.330976218, -0.0459598415, -0.2426130623, 0.4055451751, -0.3332295716, 0.1591718197, 0.087447986, 0.0676396862, -0.0251514055, 0.0973566398, 0.7164915204, 0.089378275, -0.424639374, 0.2610907555, -0.1263484657, -0.1448194981, -0.2815339863, -0.0738063827, 0.0264155138, 0.3970377743, 0.0751614124, -0.4663992226, -0.0449186713, 0.2245634794, 0.1660794467, -0.2599889636, -0.0942963213, -0.3293537199, -0.0998536274, -0.0319783911, -0.2078591734, -0.0532296598, 0.2163886279, 0.0508758947, 0.0276737642, -0.1040849611, -0.3228851259, 0.2385377586, 0.3469390869, 0.3414718211, -0.1228845268, 0.4165399373, -0.2262595445, 0.2684841156, 0.4010187984, 0.4134812653, 0.0292402022, -0.3360221684, 0.0764673278, -0.5280937552, 0.2640614808, 0.1752445251, 0.0467530675, 0.3676151633, -0.1191592366, 0.0737230927, 0.0886152834, -0.0519236065, 0.2587983012, 0.017304061, -0.365724951, -0.2438224554, 0.3588811755, -0.2141179144, -0.2181984335, 0.4823049307, 0.3102605641, -0.1193504781, 0.8210312724, -0.1455318779, 0.8783848286, 0.0601361915, -0.18355079, 0.3386192024, -0.3682381213, 0.2264683992, -0.0218315721, 0.168886438, -0.5070125461, -0.1508196592, 0.1243946627, 0.1321375221, 0.2759355009, 0.273601681, -0.1213440597, 0.1601071507, -0.0061409683, -0.3218987286, -0.0465408936, 0.0142211067, 0.228878811, -0.0566472709, -0.2142933607, 0.1553014368, -0.0027067657, -0.0704436973, -0.1039485335, 0.0400512628, -0.2087172866, -0.0898066685, 0.0517958477, 0.0843140781, -0.1312540323, 0.0137076182, 0.3024519682, -0.5209813118, -0.0870154724, 0.0605053864, 0.6082133651, 0.078201443, -0.1257760972, 0.3514012396, 0.1894428432, -0.0254022945, 0.2188750356, 0.0366215967, 0.1707042307, 0.0009191118, -0.0007781894, 0.1060130745, -0.1159548908, 0.1172344089, -0.2481515259, -0.0647822097, 0.2118125707, -0.3153561652, -0.0132177919, -0.2606682181, 0.2572786808, -0.4795153141, 0.1931931525, 0.0207718983, 0.0209551118, 0.2562416196, 0.0272164773, -0.1116138026, -0.262662679, -0.1120034978, -0.0281983875, 0.2058794498, 0.4759533405, -0.0203770362, 0.0013228194, -0.1412914395, -0.0495781787, 0.1485661119, -0.2953934968, -0.0106868204, 0.1053983271, -0.200446412, 0.2003775537, 0.7700163722, 0.1651265472, 0.1686737239, 0.1945604533, -0.3337332606, -0.0354193412, 0.0722941905, 0.199398309, -0.0537616424, 0.334562093, 0.2656873167, -0.2807099223, 0.1656959802, -0.4030259848, 0.2027240396, -0.2176814973, 0.3391772509, -0.7107682824, -0.0817358419, 0.0881565064, -0.176790759, 0.248184368, -0.1367971152, 0.0268989354, -0.302357465, -0.327106446, 0.0988947973, 0.070063822, 0.0756753236, -0.2830738425, -0.0387546383, -0.0697889104, -0.107119374, -0.1096252128, 0.0174166504, 0.1223751679, 0.1525789052, -0.1841683388, 0.0749135241, -0.301007092, -0.172145769, 0.082591176, -0.0309778042, 0.255148083, 0.1021787897, -0.2990248501, 0.0326383188, 0.091518119, 0.0304191131, -0.3581733108, 0.002903634, 0.5847670436, -0.275557369, 0.0082861166, -0.0298577119, 0.1968152076, 0.2168903649, -0.2480537295, 0.0071882759, 0.171753943, 0.3385327458, -0.5861024261, -0.0802973956, 0.2679604888, 0.0147023387, 0.1478295922, 0.1420699507, 0.3247986436, -0.1462526321, 0.0335585102, 0.1682349741, 0.217318356, 0.0522199646, 0.0123626757, 0.3951948285, 0.1159706563, 0.4019332528, 0.5160575509, 0.2544071376, -0.2518053651, 0.2612201571, -0.0861505121, 0.0967186391, -0.1473428607, 0.0412573367, 0.1256573647, -0.0512853041, 0.3847829103, -0.2725307941, -0.0043176794, 0.0828023851, 0.115315862, -0.222084552, 0.0552167334, -0.2410238534, 0.0099377306, -0.0476253927, -0.2435318679, 0.0140957357, -0.1638172865, -0.0923812911, 0.3353588283, -0.0926393047, -0.0753266588, -0.0073744385, 0.2863304913, 0.1393615305, -0.0241412707, -0.0279774331, -0.2495367378, 0.2343773097, 0.4089653492, -0.2049571574, 0.2477422357, 0.1399078369, -0.2872046232, 0.0895430222, 0.3408016562, 0.0796401426, 0.0272262674, -0.1079759151, -0.0708974004, -0.057110507, -0.126066193, 0.1561549902, 0.1017086506, 0.3310680687, 0.3840503693, 0.2008051127, 0.1834612936, -0.1602077782, 0.1308434755, 0.164235577, 0.0217697006, -0.2868916392, -0.0714143738, -0.1764991581, -0.358815223, -0.1138741747, -0.2090851516, -0.1937678605, -0.0075024287, 0.0365419611, 0.0693736821, -0.0422917567, 0.0943745971, 0.1708501428, 0.1803199947, 0.0768340528, 0.2496046871, 0.1989446729, -0.3392300904, -0.4411240518, -0.2963802516, 0.1642396152, 0.0240145102, 0.2551873028, 0.2840351462, 0.1674188226, 0.3084024489, -0.0916727185, 0.0569804609, -0.0089162141, -0.3167069256, 0.2572236657, -0.5916234851, -0.067103833, -0.0615669303, 0.0857263878, 0.0266743023, 0.162269637, 0.2636268139, 0.0167618748, 0.0380546115, -0.1896513551, -0.01036241, 0.1949939728, -0.0067015681, 0.3379686177, 0.1089947969, -0.1020414829, -0.1402897239, -0.2433788329, 0.1891248375, -0.0636318699, -0.1865039915, 0.5584608316, 0.0354349017, 0.2717224956, 0.3334321678, -0.4609058499, 0.1151877716, 0.5874646902, 0.121675998, -0.1004333049, -0.4577451944, 0.3313204646, 0.4072268009, 0.1447761357, 0.0319882371, 0.3380997181, -0.1191733405, 0.3695591688, -0.3933903277, -0.3590605259, 0.4552843869, -0.2834562361, -0.0419328995, -0.0582197607, 0.3202482462, -0.2162524015, -0.1223172545, -0.5871608853, -0.2459759563, 0.3565891087, -0.2592827678, -0.14364779, 0.0462297723, -0.057450518, 0.2173639834, -0.0163005404, 0.7663817406, 0.246430248, -0.1427810043, 0.0277256686, 0.058896184 ]
https://github.com/huggingface/datasets/issues/4276
OpenBookQA has missing and inconsistent field names
I agree with @mariosasko . The transition to the original format could be done in one PR for the next minor release, clearly documenting all dataset changes just as @albertvillanova outlined them above and perhaps even providing a per dataset util method to convert the new valid format to the old for backward compatibility. Users who relied on the old format will update their code with either the util method for a quick fix or slightly more elaborate for the new.
## Describe the bug OpenBookQA implementation is inconsistent with the original dataset. We need to: 1. The dataset field [question][stem] is flattened into question_stem. Unflatten it to match the original format. 2. Add missing additional fields: - 'fact1': row['fact1'], - 'humanScore': row['humanScore'], - 'clarity': row['clarity'], - 'turkIdAnonymized': row['turkIdAnonymized'] 3. Ensure the structure and every data item in the original OpenBookQA matches our OpenBookQA version. ## Expected results The structure and every data item in the original OpenBookQA matches our OpenBookQA version. ## Actual results TBD ## Environment info - `datasets` version: 2.1.0 - Platform: macOS-10.15.7-x86_64-i386-64bit - Python version: 3.8.13 - PyArrow version: 7.0.0 - Pandas version: 1.4.2
81
OpenBookQA has missing and inconsistent field names ## Describe the bug OpenBookQA implementation is inconsistent with the original dataset. We need to: 1. The dataset field [question][stem] is flattened into question_stem. Unflatten it to match the original format. 2. Add missing additional fields: - 'fact1': row['fact1'], - 'humanScore': row['humanScore'], - 'clarity': row['clarity'], - 'turkIdAnonymized': row['turkIdAnonymized'] 3. Ensure the structure and every data item in the original OpenBookQA matches our OpenBookQA version. ## Expected results The structure and every data item in the original OpenBookQA matches our OpenBookQA version. ## Actual results TBD ## Environment info - `datasets` version: 2.1.0 - Platform: macOS-10.15.7-x86_64-i386-64bit - Python version: 3.8.13 - PyArrow version: 7.0.0 - Pandas version: 1.4.2 I agree with @mariosasko . The transition to the original format could be done in one PR for the next minor release, clearly documenting all dataset changes just as @albertvillanova outlined them above and perhaps even providing a per dataset util method to convert the new valid format to the old for backward compatibility. Users who relied on the old format will update their code with either the util method for a quick fix or slightly more elaborate for the new.
[ -0.1998205185, 0.2370988578, -0.0784825236, 0.0383832976, -0.0463750511, -0.1121220514, 0.261579901, 0.4792057276, -0.0928937942, 0.1985219419, 0.0985915437, 0.5298961401, 0.2929408848, 0.4118284881, -0.169930324, -0.23902376, 0.3220477998, 0.0963060707, 0.0373929888, -0.0297699124, -0.2773752511, 0.4006696641, -0.200198397, 0.2162718475, 0.0107197464, -0.1585648656, -0.3610792756, -0.0646193996, -0.2465390861, -0.2597967684, -0.043891266, 0.133666262, -0.1141779274, 0.2389492542, -0.0001032298, -0.1938910335, -0.0162153505, 0.0479468778, -0.3473055661, -0.2557960451, -0.0139475586, -0.2987169027, 0.1325174272, -0.2405081838, 0.0040544774, -0.134462297, -0.1044184193, 0.0730474442, 0.2347443104, 0.1115612164, 0.2914757133, -0.0630372316, 0.2146610767, -0.0482491814, 0.0782303587, -0.0539085232, -0.3029433191, 0.0646093935, 0.2851050198, -0.0814452842, 0.1112827063, 0.3693178892, 0.0293924417, -0.1277955025, -0.1931435019, 0.1135857627, 0.2679796517, -0.1832536608, 0.1381150484, 0.3778244555, 0.1863678694, -0.2622228861, -0.5149416327, -0.185047552, 0.0676456541, -0.0908424109, 0.0705581009, 0.2291251421, 0.068120636, -0.0202272534, 0.2432045788, -0.1368509978, 0.0494814217, 0.0431371927, -0.4447058141, 0.0612423867, -0.0346468501, -0.0955074281, -0.2979379892, -0.2101939321, 0.3986323178, -0.0265998933, -0.0113748899, 0.0147636067, -0.3054992557, -0.1837223023, -0.0489161536, -0.2401827276, -0.0670297146, -0.2346080542, 0.1066427156, -0.0033505124, -0.2863813639, 0.0689620376, -0.0158906691, -0.2115444839, 0.0326232538, 0.0392361246, -0.0905866548, 0.1374675035, 0.1984360814, -0.1160759628, -0.0263007451, -0.2250663936, -0.3707792461, 0.0145770721, 0.5224701762, -0.1758760065, -0.2654772401, 0.1506182104, 0.004803055, 0.0059804283, -0.1979893446, 0.1639261395, -0.1976360083, 0.0646768883, 0.1189693287, 0.1277625859, -0.094069384, -0.2020079792, -0.2299276143, -0.0103678778, -0.0435888842, -0.0299735274, 0.0607456192, 0.1464208066, 0.2042163461, 0.3688278496, -0.2108076066, 0.0354425684, 0.0145673528, -0.0247553028, 0.0658485889, 0.1762519628, -0.2109217644, -0.0627135038, 0.0830810145, -0.1532115936, -0.0143368393, 0.3369724751, -0.2739043832, 0.0266774558, -0.2911611199, 0.2905388772, 0.1507816464, -0.0562749505, 0.2711255252, 0.3130825758, -0.0827211365, -0.2508015335, 0.0129883299, -0.0867593661, 0.1503081918, -0.0984965339, 0.1103978083, 0.205416888, -0.5166162252, -0.0188168157, 0.128258124, 0.2234387249, -0.0775576532, 0.0189196728, 0.002997257, -0.2300250381, -0.0733155459, 0.1773726493, 0.1012827083, -0.1410938203, -0.1837271303, -0.0839698315, 0.1371008754, -0.0739221573, 0.0763825551, -0.2898015976, -0.0671227649, -0.1025742367, 0.0498885773, -0.0017456568, -0.1700807661, 0.0536477044, -0.4612780511, -0.242309913, -0.002864236, 0.2199138999, 0.1194805503, 0.0237898026, -0.0390981846, -0.1433980614, 0.2353885919, -0.0518856347, -0.0870458335, 0.1132153049, 0.4571614563, -0.20647268, 0.0875993893, 0.1114552543, -0.2422717512, -0.1071833894, -0.4896310866, 0.0463796295, -0.0993774459, -0.2356159836, -0.3022111356, -0.1086319312, 0.1151669472, 0.0907615721, 0.2523512542, -0.0306421518, -0.1306033432, 0.0369820856, -0.2288012058, -0.1430545449, -0.1339362413, 0.191481337, -0.2582805455, 0.0875584185, -0.2627542019, -0.0879357159, 0.2368009537, 0.1528705657, 0.3169937134, -0.1752403229, 0.0466139801, 0.4932323098, -0.0330643803, -0.1096139997, 0.0631089434, 0.2489835024, 0.1788587421, 0.289247781, -0.0493831001, 0.0978313684, -0.0827014446, 0.1208643839, -0.1750694066, 0.5863132477, -0.0899432302, 0.1096534804, 0.174136892, 0.2030380666, 0.125625208, -0.2711809278, -0.0061890483, -0.2653928697, -0.0562187061, -0.0294115972, 0.2119825929, -0.1210849434, -0.439443469, 0.3950172067, 0.6058949828, 0.0087818149, 0.0451276973, 0.1463063359, 0.0000689646, 0.0329016559, 0.1618921608, 0.031174941, 0.1716321111, 0.2589486837, -0.139135018, 0.1627727598, 0.2002022117, -0.1636454612, 0.4780522585, 0.0893876106, -0.1905719042, 0.0034321614, 0.2120599151, 0.1565835029, -0.1620077491, 0.0520750917, 0.2680381835, 0.1876590103, -0.1235785708, 0.1731393486, -0.1238359064, -0.1179231852, -0.0965239331, -0.2809499204, -0.1824324876, -0.2336389124, 0.2391782254, 0.1003155261, -0.1130850315, 0.4769405127, 0.4171312153, 0.2937075794, -0.2029822022, 0.4174236655, -0.4850844443, -0.1683722138, -0.0915306881, 0.2957091033, 0.153681159, -0.2638557851, 0.0690223575, -0.2572189271, -0.1692383587, -0.455270946, -0.5544627905, 0.0483505614, -0.3250362873, 0.1949595362, 0.1483696252, 0.2336512655, -0.3876566291, -0.2195435911, 0.1626629233, 0.0392103568, -0.2732243836, 0.1251773387, -0.2401102185, -0.0609774068, -0.2087866515, -0.3720906079, -0.1433979571, -0.1945352703, 0.3988312483, -0.2503168881, 0.1881338805, 0.3150852025, -0.0868957192, -0.271187216, 0.116486907, 0.0950997174, -0.3267279267, -0.2162289321, 0.1459926218, -0.2399430275, -0.3150312603, 0.0107055558, 0.0460242108, 0.3279111087, -0.191835165, -0.3293859661, -0.2259616107, -0.0589472093, 0.0369402543, 0.0848520324, 0.0701707527, 0.3200859427, 0.3417242169, -0.2293599099, -0.0971225351, -0.2173163891, -0.0286905486, 0.2196537554, 0.2919327319, -0.3193594813, 0.2304579467, 0.0461046584, 0.1900873631, -0.0341216847, 0.3429833055, 0.0846757218, 0.1143716276, 0.1455873549, -0.291710645, -0.0973381326, 0.0946827009, -0.2263890803, 0.1175333858, 0.3279747367, -0.3075986803, 0.0380407795, -0.0810986608, 0.0954173356, -0.5904294252, -0.3252350986, -0.1026939079, -0.1993817687, 0.3439449966, 0.2739743888, 0.0796844959, -0.1235810965, 0.0345453247, 0.2990583181, 0.091856055, 0.1772959381, -0.1313043684, -0.2711345851, 0.0745551214, -0.2933966219, 0.3953533173, -0.3127342463, 0.1619182378, 0.0516911894, -0.0793588087, -0.0712642446, 0.0740109608, 0.6153530478, 0.0614989251, -0.4565382004, 0.3225724101, -0.1085798666, -0.2067983299, -0.289060235, -0.1432073712, 0.021136865, 0.351129055, 0.0572800823, -0.4595963955, -0.1402374953, 0.1942500174, 0.1017366573, -0.1775458008, 0.0438373238, -0.3760179281, -0.1074062511, -0.0780363157, -0.0936284959, -0.0196919423, 0.1764768064, -0.12322779, 0.0391971432, -0.1551086307, -0.3302519619, 0.183695972, 0.3765234053, 0.3589832187, -0.1121016592, 0.3146762252, -0.1657027453, 0.2556402683, 0.4736274481, 0.3727113008, 0.0533514917, -0.3569555283, 0.1924983859, -0.4365504086, 0.2218942791, 0.3172607422, 0.0903326571, 0.3283293247, -0.1119320691, 0.1187959909, 0.012525199, -0.0400751233, 0.2129875273, -0.0151700201, -0.4101052284, -0.228828907, 0.3355228901, -0.1092698053, -0.2688197494, 0.4390215576, 0.3364777863, -0.0688337013, 0.8159006834, -0.1240833104, 0.9092483521, -0.1446987092, -0.1250178814, 0.2554860711, -0.3581863344, 0.3084590137, -0.0332340486, 0.1777001321, -0.5289087892, -0.1841508001, 0.0733638555, 0.1555419862, 0.2672462463, 0.1981143802, -0.2347009927, 0.1544677615, -0.0789441094, -0.3356941044, 0.0344180912, 0.0252418872, 0.0935731754, -0.061260473, -0.296014607, 0.1612891853, -0.0854960606, -0.0813371167, -0.0853748322, -0.0233146474, -0.2200135142, -0.0573144332, 0.0215340164, -0.0000658041, -0.136516124, -0.0945498794, 0.2825743258, -0.512003243, -0.0690532476, 0.0682618544, 0.6774793267, 0.0277450141, -0.0988021195, 0.3276601136, 0.073459506, 0.0307511855, 0.3182328343, 0.0702819452, 0.1622716337, -0.0411602668, 0.0551521964, 0.1695881486, -0.2065602094, 0.1165850461, -0.3211285472, -0.02283464, 0.1962859929, -0.2507761717, -0.008791144, -0.2004925609, 0.2278426439, -0.4297380745, 0.2021623403, -0.0650750324, 0.0504206493, 0.1660928875, 0.0895478129, -0.1095055491, -0.2065092772, -0.1189061776, -0.0208332334, 0.1520659477, 0.4163092375, -0.0227495339, 0.0417736806, -0.1717629731, -0.0063884328, 0.2911376953, -0.2668014467, 0.0146431392, 0.0354921259, -0.2377229184, 0.2039133459, 0.7473661304, 0.1197987646, 0.2084097117, 0.062602438, -0.2800326347, -0.040832743, 0.0909108445, 0.0497583002, -0.0081183827, 0.3224799037, 0.3276510239, -0.3232918084, 0.0238393676, -0.4280058444, 0.2070728391, -0.1351851225, 0.3182056844, -0.7495480776, -0.0851217359, -0.0682068318, -0.1706186235, 0.2382205129, -0.1276085079, -0.0252139065, -0.2964405417, -0.3112504482, 0.0940103382, 0.0766207948, 0.0730196387, -0.2322117388, 0.0822480395, -0.1797368973, -0.0912313461, -0.0401992276, -0.0150065152, 0.0942535773, 0.1980194747, -0.1509822756, 0.10936445, -0.2510365546, -0.2284488678, 0.1524770409, 0.0658798963, 0.213669017, 0.2256599069, -0.3481064141, 0.0255610365, 0.1858640313, 0.1474058628, -0.2377627492, 0.0500024408, 0.4743090272, -0.188931495, -0.0206108596, -0.0473387465, 0.2175571322, 0.2391260862, -0.1919049919, 0.0256073363, 0.1088538393, 0.3555814326, -0.5912421346, -0.0421551988, 0.1354893148, 0.0769303516, 0.1445989907, 0.1717709005, 0.3766643107, -0.1541655809, 0.1885599494, 0.2204148918, 0.1299224198, -0.0531508476, 0.0984450132, 0.4626913965, 0.1120657176, 0.3646607101, 0.4940544665, 0.1905432343, -0.2210162729, 0.1996491253, -0.0223082434, 0.1676296294, -0.0733641535, 0.1582373828, 0.089214392, -0.0783274248, 0.3205741644, -0.2317974567, 0.0214402582, 0.012837939, 0.2271336168, -0.155570522, 0.0169996247, -0.3525318205, 0.0659774095, -0.0988090634, -0.2362078726, -0.059747152, -0.1723642498, -0.0622067004, 0.262540251, -0.08567103, -0.135876447, 0.0080960011, 0.3445335925, 0.1302931905, 0.0637298226, -0.1166067123, -0.3045167625, 0.226176247, 0.4951324761, -0.2086150795, 0.259177804, 0.1189088523, -0.3167615235, 0.1280453354, 0.4280245602, 0.1561337262, 0.0864053667, -0.1789672524, 0.047957994, -0.1423756778, -0.1084140539, 0.1473009139, -0.0505627953, 0.4315102696, 0.4403366446, 0.1342498213, 0.1866895556, -0.1280893236, 0.1956934035, -0.023546394, -0.0012820084, -0.2871339619, -0.05688278, -0.0667007789, -0.3671123087, -0.0561173633, -0.164641723, -0.2372013479, -0.019264929, 0.030931823, 0.1439068615, -0.0232549999, 0.0548398234, 0.1672953665, 0.2927236259, 0.031105537, 0.2463089973, 0.2454237193, -0.3015081882, -0.4739496708, -0.2566633523, 0.1369030774, 0.0816465691, 0.2683539093, 0.2701211572, 0.1080167815, 0.3214280307, 0.0039978297, 0.0156760756, -0.1257499158, -0.3043623567, 0.2747913301, -0.6239225864, -0.0515153259, 0.0825923234, 0.0182339828, -0.012357872, 0.0893899873, 0.3053197265, -0.0036315322, 0.077208668, -0.1499097645, 0.0242473241, 0.1523926407, 0.1220250428, 0.325597018, 0.2438425571, -0.1543174833, -0.0865415484, -0.3702514768, 0.1052551419, -0.0885208547, -0.3041943312, 0.5256761312, 0.0099361641, 0.3350537717, 0.3159710765, -0.5402690172, 0.0571235605, 0.5804581642, 0.1355074644, -0.07790564, -0.5299730897, 0.2897223532, 0.4175796807, 0.1220326722, 0.0114040058, 0.3557329476, -0.0348425359, 0.343646735, -0.4622552097, -0.3549788594, 0.4449535608, -0.2065573484, -0.086689122, 0.0210478622, 0.2236780226, -0.1845294535, -0.1018834263, -0.6000642776, -0.1756213009, 0.2635993958, -0.1945212334, -0.2237081081, -0.0356881917, -0.0631185323, 0.2128368765, -0.1604551375, 0.8082326055, 0.2524476349, -0.1558466554, -0.1281211823, -0.0375359878 ]
https://github.com/huggingface/datasets/issues/4276
OpenBookQA has missing and inconsistent field names
I don't have a strong opinion on this, besides the fact that whatever decision we agree on, should be applied to all datasets. There is always the tension between: - preserving each dataset original structure (which has the advantage of not forcing users to learn other structure for the same dataset), - and on the other hand performing some king of standardization/harmonization depending on the task (this has the advantage that once learnt, the same structure applies to all datasets; this has been done for e.g. POS tagging: all datasets have been adapted to a certain "standard" structure). - Another advantage: datasets can easily be interchanged (or joined) to be used by the same model Recently, in the BigScience BioMedical hackathon, they adopted a different approach: - they implement a "source" config, respecting the original structure as much as possible - they implement additional config for each task, with a "standard" nested structure per task, which is most useful for users.
## Describe the bug OpenBookQA implementation is inconsistent with the original dataset. We need to: 1. The dataset field [question][stem] is flattened into question_stem. Unflatten it to match the original format. 2. Add missing additional fields: - 'fact1': row['fact1'], - 'humanScore': row['humanScore'], - 'clarity': row['clarity'], - 'turkIdAnonymized': row['turkIdAnonymized'] 3. Ensure the structure and every data item in the original OpenBookQA matches our OpenBookQA version. ## Expected results The structure and every data item in the original OpenBookQA matches our OpenBookQA version. ## Actual results TBD ## Environment info - `datasets` version: 2.1.0 - Platform: macOS-10.15.7-x86_64-i386-64bit - Python version: 3.8.13 - PyArrow version: 7.0.0 - Pandas version: 1.4.2
161
OpenBookQA has missing and inconsistent field names ## Describe the bug OpenBookQA implementation is inconsistent with the original dataset. We need to: 1. The dataset field [question][stem] is flattened into question_stem. Unflatten it to match the original format. 2. Add missing additional fields: - 'fact1': row['fact1'], - 'humanScore': row['humanScore'], - 'clarity': row['clarity'], - 'turkIdAnonymized': row['turkIdAnonymized'] 3. Ensure the structure and every data item in the original OpenBookQA matches our OpenBookQA version. ## Expected results The structure and every data item in the original OpenBookQA matches our OpenBookQA version. ## Actual results TBD ## Environment info - `datasets` version: 2.1.0 - Platform: macOS-10.15.7-x86_64-i386-64bit - Python version: 3.8.13 - PyArrow version: 7.0.0 - Pandas version: 1.4.2 I don't have a strong opinion on this, besides the fact that whatever decision we agree on, should be applied to all datasets. There is always the tension between: - preserving each dataset original structure (which has the advantage of not forcing users to learn other structure for the same dataset), - and on the other hand performing some king of standardization/harmonization depending on the task (this has the advantage that once learnt, the same structure applies to all datasets; this has been done for e.g. POS tagging: all datasets have been adapted to a certain "standard" structure). - Another advantage: datasets can easily be interchanged (or joined) to be used by the same model Recently, in the BigScience BioMedical hackathon, they adopted a different approach: - they implement a "source" config, respecting the original structure as much as possible - they implement additional config for each task, with a "standard" nested structure per task, which is most useful for users.
[ -0.244081974, 0.2624767125, -0.0215143748, 0.2153030038, -0.2133324444, -0.063490659, 0.3279465735, 0.3787684143, 0.0790012851, 0.2448695004, 0.0920588821, 0.5058540702, 0.2577792108, 0.5256162882, -0.0657963902, -0.0864537507, 0.3222070932, -0.0016847457, 0.1259201318, -0.0332097113, -0.2707951963, 0.3219376504, -0.1709600538, 0.1043871194, 0.1428175718, -0.0399449766, -0.3417810202, -0.1384898275, 0.0216678437, -0.0556600206, 0.0215739924, 0.1429429948, -0.2502580881, 0.3122738898, -0.0001125878, -0.0990846828, -0.1170588955, 0.0247351546, -0.2829250097, -0.2612345815, -0.1522005051, -0.3130830228, -0.085845843, -0.2250950634, 0.1091558784, 0.0708219111, -0.0530223586, -0.2014799416, 0.1056972742, -0.0962442234, 0.162457943, 0.0244533699, 0.2243648767, 0.1887820959, 0.0876516923, 0.145497486, -0.2560757697, 0.1021974981, 0.4588272274, 0.1188215017, 0.2518517971, 0.3702383041, -0.0305448752, -0.09068387, -0.1424355805, 0.015196505, 0.0558176711, -0.1968244016, 0.0462578312, 0.6054117084, 0.1472444236, -0.209905833, -0.5367063284, -0.3190191388, -0.0014907297, -0.0820894614, 0.0620465502, 0.323435396, 0.1951521933, 0.0149360662, 0.1827814877, -0.20195283, 0.1132201478, 0.151278764, -0.3370800912, -0.0148808975, 0.0393491425, 0.0231861435, -0.5221725702, -0.0330890603, 0.3732990026, -0.218105346, 0.0222746283, -0.1328948289, -0.4370523095, -0.1661534756, -0.2469144762, -0.2830930054, 0.0610680878, -0.2374979556, 0.3128404617, 0.0309235565, -0.1029569283, 0.198066771, 0.0239308625, -0.207693696, -0.1510951519, 0.1526000649, -0.0644418001, -0.0032952498, -0.0399883576, -0.0394967757, 0.0782404542, -0.0989846587, -0.4013640583, -0.0899131596, 0.4437893629, -0.10644117, -0.2329270393, 0.2277949452, -0.0672708526, -0.0859648958, -0.0650585815, -0.0723330081, -0.1935846657, 0.0345986336, 0.0117351301, 0.2197093219, -0.0824294537, -0.3044466674, -0.1689798832, -0.1660200804, -0.011042973, 0.1442848444, 0.1084907874, 0.1600777656, 0.2555479109, 0.2959354818, -0.184920609, -0.0028741455, 0.1007332504, -0.1201732531, 0.0152362473, 0.1522574276, -0.1873694509, -0.1677159071, -0.1700241417, -0.0772602409, -0.1046850607, 0.2922754586, -0.4605207145, -0.0469591804, -0.2382238954, 0.200414747, 0.0823912993, 0.0005815596, 0.0130726798, 0.3374343514, -0.0397489443, -0.3498173058, 0.0668698102, -0.1071002483, 0.1021263227, -0.1538417488, 0.2124991715, 0.1842785031, -0.4019438624, -0.0674873441, 0.1411878467, 0.4048882425, -0.1980141401, 0.0258527137, -0.1218426749, 0.0126704387, -0.097204417, 0.1342114359, 0.2913089097, -0.219724372, -0.3691160679, -0.1694416702, 0.261048466, 0.0484830737, 0.1170949116, -0.2520833313, -0.0223156102, -0.1125092134, 0.030751409, 0.1195440069, -0.271156311, -0.123393707, -0.4409736097, -0.1863591075, 0.0964934155, 0.3140188456, 0.0981928185, -0.0477526858, 0.0399079844, -0.244576782, 0.19993563, -0.1257564127, -0.1508779675, 0.1160861999, 0.3408579826, -0.0973980427, -0.003909478, 0.1188412607, -0.5085594058, -0.0192680527, -0.4814699292, -0.183202818, -0.0466572791, -0.2196488678, 0.0140987849, -0.1721493006, 0.0602051429, 0.1311450452, 0.1028436422, -0.0045623365, -0.1726895124, -0.0423714891, -0.3422117829, -0.0275919102, -0.2562107146, 0.2772022486, -0.3756279647, 0.1617661119, -0.3018533587, -0.011002182, 0.2489248365, 0.2705902159, 0.1618912667, -0.2918791771, 0.1231400669, 0.4181005657, 0.0041696834, -0.2238512933, 0.0343080722, 0.3930398226, 0.2290639132, 0.2279182225, 0.0679672062, 0.0164630897, -0.0684156939, -0.1062347367, 0.0217415802, 0.4985008836, -0.1907385141, 0.1894733906, 0.0970020667, 0.0638691112, -0.0169087071, -0.2064086199, -0.1550230086, -0.0533296876, 0.0323077925, 0.0552105047, 0.3825548291, 0.0008825695, -0.4639362693, 0.2854018211, 0.6151414514, 0.0451861694, 0.0228654221, 0.121782355, 0.0811285824, 0.0220168065, 0.0776062384, -0.0476598926, 0.3280905783, 0.2063089013, -0.2247682363, 0.0804376975, 0.2391837537, -0.0899492502, 0.3285054266, 0.2358717322, -0.2295445502, 0.0591865778, 0.228391856, 0.223615095, -0.0638745204, -0.0725696608, 0.3102244437, -0.0714153871, -0.1536904126, 0.3449037671, -0.0555502437, -0.1400054246, -0.314827472, -0.3181684613, -0.395925492, -0.1937684417, 0.1878411025, -0.0020371142, -0.2004581243, 0.4969820678, 0.3700824678, 0.4885472059, -0.4375545084, 0.2022910267, -0.40125826, -0.0282698721, -0.1798640043, 0.1126999632, 0.2671349347, -0.3610087633, 0.0695832893, -0.2678537965, -0.1390426457, -0.3776910305, -0.656473875, 0.1073639616, -0.3104617894, 0.2782128453, 0.0562258884, 0.0704543591, -0.3482403755, -0.480437696, 0.0867852271, 0.1649170071, -0.1435894072, 0.1668676883, -0.1001446322, -0.2250066251, -0.0533999316, -0.3928675354, -0.2243209779, -0.2000680715, 0.3705843389, -0.2918745279, 0.2508517802, 0.3974412382, -0.1721864045, -0.4450572133, 0.0648374408, 0.2162248194, -0.2577452958, -0.3275820017, 0.134665966, -0.1448572129, -0.1755893379, -0.1730333865, 0.0039079702, 0.4749498963, 0.0140084177, -0.378757149, -0.0708486885, 0.0443624705, -0.044520393, 0.0995342731, 0.1809118986, 0.1752395779, 0.3077433705, -0.0128268003, -0.1105931327, -0.2826232016, 0.0347187407, 0.1632359177, 0.4035330713, -0.2850217819, 0.0737059712, 0.0544557236, 0.1299084723, 0.0673447922, 0.275360465, 0.1235369146, 0.1712962389, 0.2069483399, -0.2637242973, -0.1503321826, 0.2813255787, -0.2193495929, 0.0017935351, 0.3186633289, -0.2830317318, 0.0799231753, -0.0844328627, 0.0795165822, -0.5796131492, -0.3837968707, -0.0889609605, -0.1594351232, 0.3694303334, 0.3268583417, 0.0105252098, -0.1260314584, -0.0120362863, 0.399182409, 0.2244013399, 0.1007142663, -0.0021306458, -0.3906502128, -0.0564939268, -0.1157607138, 0.4639098346, -0.4560229182, 0.2955042124, 0.1749604642, -0.0436544903, -0.120401822, 0.1545832902, 0.6181171536, 0.1175153106, -0.5078361034, 0.1059885919, 0.0163922962, -0.0337732285, -0.3630546033, 0.1206389144, -0.0395639315, 0.4339200258, 0.1580569297, -0.5505648255, -0.0831441879, 0.1946406215, 0.2837172747, -0.2225044519, -0.0577183552, -0.2416749299, -0.0497223511, -0.0194321666, -0.2536526322, -0.0512308367, 0.0965879858, 0.1865421981, 0.0717510134, -0.3023971021, -0.3557995558, 0.1836456805, 0.2867441475, 0.2918513417, -0.1955308616, 0.4907647371, -0.1808668822, 0.3099680245, 0.4819845259, 0.4545690715, -0.0416625403, -0.3299176991, 0.0809545144, -0.4478636086, 0.3740393519, 0.3099287748, 0.2104804367, 0.1811572015, -0.0492330566, -0.0152212204, -0.0760013461, 0.0047445768, 0.1555251926, -0.0001411334, -0.5094222426, -0.4209137261, 0.3166482747, -0.0236795079, -0.2033906281, 0.5624879599, 0.3484379649, -0.0795238465, 0.7739245296, -0.0616459139, 1.0076570511, 0.1392732263, 0.0085887872, 0.2652909756, -0.4144226611, 0.1910371929, -0.1418118477, 0.1569660604, -0.4694998562, -0.2512719631, 0.060129229, -0.0661752224, 0.3152081072, 0.3412532806, -0.0488788113, 0.3279864192, 0.1032695174, -0.2459805161, -0.0966232568, 0.1625961512, 0.1685519814, -0.0212284215, -0.1695714146, 0.0382081456, -0.124792926, -0.0315214023, -0.1627050638, -0.0514632724, -0.1981992722, -0.0737320334, 0.0112632019, 0.0001408326, -0.1627736092, 0.0091248704, 0.3756527603, -0.5340589881, 0.0354077592, 0.0767794251, 0.7028309107, 0.0988067165, 0.0171797723, 0.2519141138, 0.2933141887, 0.0861098394, 0.2961773276, -0.11208307, 0.2237724066, 0.0374514088, 0.1723106503, -0.0291106664, -0.1150880456, 0.0229499266, -0.3629258871, -0.1708574444, 0.3162291348, -0.3145436943, 0.061621543, -0.0517298654, 0.3097806871, -0.3551225066, 0.0885227099, 0.0494332574, 0.0615401864, 0.3813039958, -0.0324188322, -0.0889791399, -0.2849901319, -0.3719842434, 0.0210321434, 0.2002916783, 0.3854746222, -0.1690564901, 0.0277777016, -0.0340861678, 0.078319855, 0.2592147887, -0.1987282038, -0.0875601396, -0.0314545222, -0.2821593881, 0.1804555655, 0.8706471324, 0.234218806, 0.0975112543, 0.2409481853, -0.2512012124, 0.0198449716, 0.2112473845, 0.1308893412, 0.1172321439, 0.3097879291, 0.2157128155, -0.5071626306, 0.2185927629, -0.3060099185, 0.1290690005, -0.1028737277, 0.2564130425, -0.719301343, 0.000024524, -0.0685412511, -0.2498811483, 0.0943441465, -0.230921492, -0.0044794437, -0.1709676087, -0.3371839523, 0.1538912952, 0.15853329, 0.1803641319, -0.2398754209, 0.0178369079, 0.0362583622, -0.1491532922, -0.0951101109, 0.039506983, 0.1681957841, 0.1987156272, -0.1818486601, 0.1248781011, -0.3358015418, -0.028275989, 0.0590198748, 0.0251757018, 0.3523406088, 0.2157611251, -0.2562930286, 0.0641672611, 0.0271702129, 0.1097868606, -0.3450788558, 0.1270650476, 0.6107978225, -0.1949035972, 0.0741318166, 0.0124970982, 0.1299145371, 0.4314774871, -0.3140947223, -0.1071701422, 0.1324692369, 0.2643510699, -0.5089541674, -0.10409493, 0.2057196647, 0.0094930306, 0.0721104667, 0.29860425, 0.53191787, -0.0456591547, -0.1692364663, 0.1477272362, 0.1920016259, 0.1063971221, 0.2045256495, 0.3366241157, 0.0801423714, 0.367416352, 0.5385742188, 0.2656748891, -0.1684703082, 0.1455685198, -0.0267732497, 0.1559483558, -0.0395595022, -0.0843742415, 0.2620101571, 0.0557644889, 0.4938130379, -0.3083462715, 0.1728235781, 0.0649596974, 0.1116654426, -0.2931692302, -0.0876293108, -0.3806214035, 0.1246460527, -0.0989227518, -0.1238008887, 0.0037756811, -0.1629233062, -0.1123255342, 0.3583055139, -0.1349487007, -0.1476141065, -0.1297006756, 0.2766786814, 0.2328027189, -0.0850489959, 0.0550171807, -0.1488152295, 0.3227035105, 0.3702896535, -0.2493624389, 0.2255048305, 0.000730173, -0.3435977995, 0.1693456918, 0.3915585577, 0.117965661, 0.0211234763, -0.1540203989, -0.1296178699, -0.019419102, -0.0346864946, 0.0829559267, -0.0160142034, 0.2595876455, 0.2505715787, 0.2092811465, 0.0727503598, -0.0241903029, 0.1386114061, 0.0306466203, -0.0693466961, -0.4552711248, 0.0990171805, -0.1299854815, -0.3224802017, 0.0106511414, -0.0971308947, -0.2034967393, -0.0907287002, 0.0766667947, 0.0835568756, -0.0384745598, 0.1363606006, 0.1055124253, 0.2661750019, 0.1203169897, 0.2834956348, 0.0451880991, -0.3881887496, -0.3239956498, -0.2696016729, 0.1223395988, 0.0065776613, 0.2753305137, 0.2831842303, 0.1279983371, 0.3731360734, -0.0443318449, -0.0600498132, -0.0180729833, -0.436108768, 0.2725165486, -0.5864130259, -0.1351915151, -0.1584738642, 0.0455419682, -0.062192291, 0.183660686, 0.2573317885, 0.0637290776, -0.0575320758, -0.1382818818, 0.0942721665, 0.3398605883, -0.1406905502, 0.3241436183, 0.1526389718, -0.1851630062, -0.0189704876, -0.4162162244, 0.1840908825, -0.1431688666, -0.3591044545, 0.6352970004, -0.1799357533, 0.2452365011, 0.2155346274, -0.4755837619, -0.0229119454, 0.4781323373, 0.0980693325, -0.1527500451, -0.4506674111, 0.2942951024, 0.4264168441, 0.1411203146, 0.1850662977, 0.4646712542, -0.0739254355, 0.33809039, -0.4484182, -0.2011739463, 0.3947967887, -0.196105808, 0.0506716333, -0.1191336662, 0.2877328396, -0.1416059732, 0.0626619756, -0.8177499771, -0.3129561841, 0.3955681622, -0.3796287477, -0.1028529182, 0.0371234939, 0.0630406514, -0.0284820795, -0.055800233, 0.7830025554, -0.0011535239, -0.2839379311, 0.0140159009, 0.1077684239 ]
https://github.com/huggingface/datasets/issues/4276
OpenBookQA has missing and inconsistent field names
@albertvillanova, thanks for the detailed answer and the new perspectives. I understand the friction for the best design approach much better now. Ultimately, it is essential to include all the missing fields and the correct data first. Whatever approach is determined to be optimal is important but not as crucial once all the data is there, and users can create lambda functions to create whatever structure serves them best.
## Describe the bug OpenBookQA implementation is inconsistent with the original dataset. We need to: 1. The dataset field [question][stem] is flattened into question_stem. Unflatten it to match the original format. 2. Add missing additional fields: - 'fact1': row['fact1'], - 'humanScore': row['humanScore'], - 'clarity': row['clarity'], - 'turkIdAnonymized': row['turkIdAnonymized'] 3. Ensure the structure and every data item in the original OpenBookQA matches our OpenBookQA version. ## Expected results The structure and every data item in the original OpenBookQA matches our OpenBookQA version. ## Actual results TBD ## Environment info - `datasets` version: 2.1.0 - Platform: macOS-10.15.7-x86_64-i386-64bit - Python version: 3.8.13 - PyArrow version: 7.0.0 - Pandas version: 1.4.2
69
OpenBookQA has missing and inconsistent field names ## Describe the bug OpenBookQA implementation is inconsistent with the original dataset. We need to: 1. The dataset field [question][stem] is flattened into question_stem. Unflatten it to match the original format. 2. Add missing additional fields: - 'fact1': row['fact1'], - 'humanScore': row['humanScore'], - 'clarity': row['clarity'], - 'turkIdAnonymized': row['turkIdAnonymized'] 3. Ensure the structure and every data item in the original OpenBookQA matches our OpenBookQA version. ## Expected results The structure and every data item in the original OpenBookQA matches our OpenBookQA version. ## Actual results TBD ## Environment info - `datasets` version: 2.1.0 - Platform: macOS-10.15.7-x86_64-i386-64bit - Python version: 3.8.13 - PyArrow version: 7.0.0 - Pandas version: 1.4.2 @albertvillanova, thanks for the detailed answer and the new perspectives. I understand the friction for the best design approach much better now. Ultimately, it is essential to include all the missing fields and the correct data first. Whatever approach is determined to be optimal is important but not as crucial once all the data is there, and users can create lambda functions to create whatever structure serves them best.
[ -0.0945750922, 0.164955914, -0.1062555909, 0.1807774007, -0.1605589986, -0.1824282259, 0.2929793894, 0.3721559942, -0.0281362962, 0.237318486, 0.0815383717, 0.4941643178, 0.3443228602, 0.3875853419, -0.1219676882, -0.1653728038, 0.1791916639, 0.1058904976, 0.0738654286, -0.0472123213, -0.2771567404, 0.3801194429, -0.1864519864, 0.1033055931, -0.0044910195, -0.0442848392, -0.3907567263, -0.0053220615, -0.0989830121, -0.064550288, -0.0160138682, 0.1396737993, -0.2838132977, 0.3003931046, -0.0000995151, -0.2122511119, -0.1524277776, -0.0022194863, -0.2837035358, -0.2915551364, -0.0350603275, -0.2864594758, -0.0305471718, -0.2509916425, -0.046373114, -0.0534532405, -0.103564918, 0.05136659, 0.2675027549, 0.036676988, 0.3120251, -0.0291644782, 0.2343193591, 0.120673269, 0.1309033185, -0.061324928, -0.3341351449, 0.0194007196, 0.3119696975, -0.0499166846, 0.1385623962, 0.3251022398, -0.0055235089, -0.1912209094, -0.2356843054, 0.0744583011, 0.1742497236, -0.2208155245, 0.1414335221, 0.4658578634, 0.1353350878, -0.1847065687, -0.3956302702, -0.2489245981, 0.0458334461, 0.0623226911, 0.1076930985, 0.2027467489, 0.0251355898, -0.0185834393, 0.1888699532, -0.0761992484, 0.0288244858, 0.1350667179, -0.3899896741, -0.0035599871, -0.0426617861, -0.0654872805, -0.2960279286, -0.1805910915, 0.3020912707, -0.1202111319, 0.0362090655, 0.0398721509, -0.4097029269, -0.1138769388, 0.0176341906, -0.2499773055, -0.0459870175, -0.2538667321, 0.287320286, 0.0785905719, -0.1128492057, 0.1499838233, -0.0833610296, -0.1719057858, -0.0077846362, -0.0340820253, -0.1399069577, 0.0614165626, 0.036596071, -0.1083237082, 0.0139722144, -0.1620420218, -0.3057864308, -0.0820149705, 0.4653048515, -0.0705468208, -0.2174635828, 0.2138094455, -0.1133657172, -0.0518438481, -0.0666186363, 0.1220423281, -0.2203944027, -0.1144384146, 0.0585818626, 0.1497647464, -0.1000517681, -0.2040342391, -0.2356167287, -0.0316645093, -0.1093045548, 0.0109147634, 0.1690513641, 0.2205840945, 0.2682305574, 0.3136677742, -0.1328620017, 0.0651012585, 0.083393462, -0.1283410639, 0.0889327377, 0.1609356403, -0.1089238897, -0.1607587337, -0.0768189132, -0.1720080376, 0.0074269692, 0.2754979134, -0.2969548702, 0.0426976085, -0.1943311989, 0.3190820515, 0.149766475, -0.0152428951, 0.1577274203, 0.343293041, 0.0023645384, -0.1967012733, 0.0088328458, 0.0351595916, 0.171089381, -0.1821631938, 0.1880117953, 0.1859947443, -0.4384117424, 0.0438689962, 0.0706623867, 0.299151212, -0.1694058478, -0.0350270569, 0.005248541, -0.0648483112, -0.0103353383, 0.2652813196, 0.1284437627, -0.1578507274, -0.2708673775, -0.101572454, 0.0926468074, 0.0449596196, 0.0476244651, -0.2658827305, -0.0409044921, -0.0895878077, 0.0071426588, 0.0951947272, -0.1525666267, -0.0348905697, -0.4874155521, -0.1566327512, -0.049247358, 0.2992256582, 0.0195364896, -0.090804033, 0.0176676232, -0.295265764, 0.1866909713, -0.0695774406, -0.0897552073, 0.1368982643, 0.3785845339, -0.1127656624, 0.0817358196, 0.0557633527, -0.35486871, -0.0639977083, -0.5433819294, 0.0381315351, -0.132954672, -0.217352584, -0.2211995274, -0.0977144539, 0.0937995166, 0.1173561141, 0.3114743829, -0.0612351298, -0.0932333618, -0.0669264123, -0.1357065886, -0.1504242867, -0.2041024417, 0.1138578877, -0.2185568511, 0.1183969826, -0.2645216286, -0.0354991406, 0.2293483764, 0.2160774469, 0.3259452581, -0.135771513, 0.0848594457, 0.4133000076, -0.0712656453, -0.1775659919, 0.0073695951, 0.1974622607, 0.158174932, 0.2416898757, -0.0235134196, 0.0845134854, -0.0478855558, -0.0099363187, -0.0506859645, 0.5310109258, -0.0692867786, 0.1302422434, 0.1114737168, 0.1158218086, 0.0913525298, -0.3311796188, 0.0610131547, -0.229228586, 0.0208457187, 0.0256371386, 0.2371453643, -0.0735873133, -0.3782963157, 0.3890346885, 0.595915556, 0.0423732921, 0.0961579755, 0.0250202678, 0.1209133565, 0.0719210878, 0.0956497267, -0.035516195, 0.1159640551, 0.2838015258, -0.1808016896, 0.0745526403, 0.1882955879, -0.169944182, 0.3743565679, 0.1130916774, -0.1392309815, 0.0687526166, 0.2212096304, 0.1050682738, -0.2182841897, -0.0418135226, 0.2569471598, 0.113968648, -0.1334434897, 0.198955074, -0.0682597831, -0.1529253423, 0.003711784, -0.3080114424, -0.1912064552, -0.1787893623, 0.2732321024, 0.0597300492, -0.235328272, 0.444049716, 0.4304187, 0.3479865193, -0.2753500044, 0.2340329885, -0.4255044758, -0.0583578907, -0.16655837, 0.3149709702, 0.070076488, -0.2602819204, 0.1305553615, -0.2047947198, -0.0618090183, -0.4030606151, -0.5852489471, 0.0514166653, -0.3518231511, 0.3017702997, 0.0622430071, 0.1933711469, -0.4906285107, -0.2931060195, 0.154919669, 0.136981979, -0.2206989974, 0.1503320932, -0.0639989376, -0.1679264903, -0.1788979918, -0.3754982352, -0.1132364497, -0.20277825, 0.4285014868, -0.1967051029, 0.2596762776, 0.265711695, -0.0907628089, -0.2190186083, 0.1336602122, 0.2301319987, -0.3561963141, -0.2027752697, 0.207977429, -0.2806920707, -0.3336569071, -0.0823129565, -0.0546648726, 0.4031397402, -0.1350965947, -0.3119741678, -0.1868122667, 0.033900518, 0.0407408066, 0.1352305114, 0.1238833815, 0.3069400787, 0.2054497153, -0.2221668363, -0.2370650172, -0.1375478059, 0.0683593079, 0.1587040871, 0.3804445565, -0.3390126824, 0.1482964009, -0.0006984067, 0.0862365216, -0.0711873397, 0.4041053057, 0.1763356477, 0.1069550365, 0.108837828, -0.2341394275, -0.1778414696, 0.041737169, -0.2321940362, 0.0693014115, 0.324311167, -0.2455967367, -0.0041539082, -0.1461806595, -0.0175648183, -0.6171479225, -0.3598748446, -0.0945105255, -0.028323913, 0.2966676652, 0.3583484292, 0.0310683418, -0.0622922257, 0.0143933007, 0.2652668655, 0.0809168071, 0.082665965, -0.1591064632, -0.3087907434, 0.0732848346, -0.2784685791, 0.4061566889, -0.3154142499, 0.0413333289, 0.1006537303, -0.0347350575, -0.086841464, 0.058858119, 0.6433230042, 0.0958650932, -0.433305949, 0.2399842739, -0.1444151998, -0.1132581383, -0.1597002745, -0.0510714427, 0.0130997365, 0.387781471, 0.0871596485, -0.5786213875, -0.0196724553, 0.1407707632, 0.1425062865, -0.2053462863, -0.0920600891, -0.3311223984, -0.1422485113, -0.0591535755, -0.1508468837, -0.0340569988, 0.2037920505, 0.0862808451, -0.0222403109, -0.1474241912, -0.316727221, 0.277957499, 0.4062030315, 0.2765035331, -0.1116367802, 0.3957833648, -0.2022665143, 0.2502986789, 0.3662469387, 0.4133271873, 0.0742691383, -0.2767438889, 0.1032384261, -0.4965811968, 0.3145391643, 0.249566704, 0.0816373304, 0.3165463209, -0.1234626099, 0.0668831766, 0.0610929541, -0.1096996516, 0.1473766118, -0.0427013002, -0.326995641, -0.2844073772, 0.3591323197, -0.2353798002, -0.3051628172, 0.4224852622, 0.3373740613, -0.1024834886, 0.7656228542, -0.0442369767, 0.9396677017, 0.0619281195, -0.134341836, 0.4234226644, -0.3800211549, 0.188730523, -0.0710499734, 0.1426200122, -0.4865724742, -0.1036655083, 0.1285903007, 0.1198763475, 0.2286652476, 0.3379734457, -0.1015125439, 0.1135521755, 0.021098068, -0.3130268753, -0.0023769727, 0.1169969812, 0.1659381092, -0.1110289171, -0.2770547271, 0.186960116, 0.0525880717, -0.1518206745, -0.1030207798, -0.0289186314, -0.2555291653, -0.0340230018, 0.1141484976, 0.0643807128, -0.1767443269, -0.0123274531, 0.2570218444, -0.5343416929, -0.048542928, 0.0710945278, 0.5158628821, 0.1151919141, -0.1125556156, 0.3008103967, 0.1985652447, -0.0189239234, 0.2529326677, -0.0383629873, 0.1849525273, -0.0526678972, -0.0013165878, 0.0670712888, -0.1052637994, 0.0929447934, -0.3322980106, -0.0436855964, 0.2253641486, -0.3051193953, -0.042816408, -0.1566416174, 0.2012841851, -0.4313041568, 0.2236168236, -0.0297346171, 0.0793717131, 0.1636912972, 0.0749421045, -0.1055217981, -0.253181994, -0.1546451747, -0.0116012804, 0.2196425349, 0.3662653267, -0.0404085703, -0.0482948199, -0.1858191937, -0.0681217238, 0.2099355906, -0.2763135433, -0.0500336364, 0.0880666748, -0.2997808158, 0.1656386405, 0.7690189481, 0.1684358716, 0.1278986186, 0.2035951763, -0.2573230267, -0.0551825352, 0.127544865, 0.1948685348, -0.038352564, 0.3110406101, 0.2946298122, -0.3124388456, 0.1796079725, -0.4704085588, 0.1546531022, -0.1475118548, 0.3226907253, -0.6918415427, -0.1356508434, 0.0598052107, -0.1562394798, 0.2693352699, -0.1370638907, -0.0412780643, -0.3507052064, -0.306560427, 0.0927855223, 0.0667157173, 0.0428888537, -0.2424367964, -0.0230522268, -0.1339766681, -0.1251713037, -0.0408990234, -0.0106189623, 0.1424338073, 0.0708790645, -0.206457451, 0.0778022036, -0.3135582209, -0.1943057925, 0.1171257645, -0.0614327155, 0.2407903075, 0.0447622873, -0.308549583, 0.0100614158, 0.1912418902, 0.1080484837, -0.3080606163, 0.0434491038, 0.5534461737, -0.1625079513, -0.009007208, -0.0780799761, 0.1659110636, 0.1728319824, -0.1905959845, -0.01114693, 0.1252032518, 0.3859747946, -0.6042981148, -0.0616753176, 0.183572486, -0.0584169403, 0.2412412167, 0.2158831656, 0.301035434, -0.1045986935, 0.0463480242, 0.1260038018, 0.1890323311, 0.0265791267, -0.0622377843, 0.3278681636, 0.0129087381, 0.4055565, 0.5518020391, 0.2695136666, -0.2220447659, 0.2299796045, -0.0865665078, 0.1214848012, -0.1592661887, 0.0574602969, 0.0755005628, 0.0257971678, 0.4153178632, -0.2472278923, 0.0160486847, 0.0608722679, 0.1348284632, -0.2603424191, 0.0698209107, -0.1777916998, 0.0601766706, -0.0604263954, -0.2639054358, 0.003221109, -0.2010904104, -0.1069033146, 0.3142531812, -0.1328028142, -0.0593389198, -0.0802354366, 0.2833549678, 0.1021886617, 0.0499866977, 0.0002004998, -0.2292296588, 0.2099286318, 0.482798636, -0.2012555003, 0.2752377689, 0.1449464262, -0.2342805713, 0.0728494003, 0.3186551332, 0.0589853898, 0.0248453952, -0.1226228178, -0.0236737933, -0.0935845152, -0.1568129212, 0.0088425642, 0.083370693, 0.381890595, 0.4156994224, 0.2214429528, 0.2144207805, -0.2149938345, 0.1363873929, 0.204315111, -0.0376161076, -0.3035880327, -0.1031387672, -0.1330810785, -0.327819705, -0.0717576519, -0.2011628449, -0.1711435616, 0.012810003, -0.0152873453, 0.0792203322, -0.0307258256, 0.0684766099, 0.1836260259, 0.281724602, 0.106642969, 0.194706887, 0.218287006, -0.3514604867, -0.3783020079, -0.3759889901, 0.1621979624, -0.0139502268, 0.2027860582, 0.2530252039, 0.1909282506, 0.3716296256, 0.0247725751, -0.0269459151, 0.0028324979, -0.3255461752, 0.2025681436, -0.5814427137, -0.0563309267, -0.0086247819, 0.049130179, 0.0382412411, 0.0946114585, 0.2241263837, 0.0722505674, 0.113363713, -0.1802315414, 0.0152948005, 0.2077581584, 0.0030144462, 0.308355391, 0.1604087055, -0.1088611558, -0.1613595337, -0.3197242022, 0.1671269238, 0.0093771257, -0.2188772559, 0.4939146936, 0.1179934144, 0.3039818704, 0.3645519316, -0.476885736, 0.1272563487, 0.5479239225, 0.171174407, -0.0354340933, -0.4595728517, 0.3305896223, 0.4112403095, 0.1283178031, -0.0408140011, 0.3923974335, -0.1397230774, 0.3051600754, -0.3924394846, -0.3132196665, 0.4487122893, -0.2935205996, -0.037875589, -0.0285169017, 0.2818366289, -0.1704479009, -0.0593011975, -0.5897092819, -0.2641322017, 0.301594466, -0.2711643279, -0.1029693633, 0.0631672964, -0.0946864113, 0.1494705826, -0.0741808936, 0.7340408564, 0.1678726971, -0.1753615439, -0.0246347524, -0.0034322329 ]
https://github.com/huggingface/datasets/issues/4271
A typo in docs of datasets.disable_progress_bar
Hi! Thanks for catching and reporting the typo, a PR has been opened to fix it :)
## Describe the bug in the docs of V2.1.0 datasets.disable_progress_bar, we should replace "enable" with "disable".
17
A typo in docs of datasets.disable_progress_bar ## Describe the bug in the docs of V2.1.0 datasets.disable_progress_bar, we should replace "enable" with "disable". Hi! Thanks for catching and reporting the typo, a PR has been opened to fix it :)
[ -0.2229197919, 0.1155907437, -0.1957840174, -0.2332064658, 0.1984051019, -0.018780956, 0.2855718732, 0.2007148415, -0.1886951476, 0.3785544336, 0.2363237292, 0.3476401567, 0.1750877202, 0.3231857717, -0.1807082295, 0.05160008, 0.0662440285, 0.2353480756, -0.1192478538, 0.0976191685, -0.2156188935, -0.0787695274, -0.3135316968, 0.1610238552, -0.0999405235, -0.0928426906, 0.1751818359, -0.0495160334, -0.2045707852, -0.5483916402, 0.2211256027, 0.3761436343, -0.0865531787, 0.2933128178, -0.0000984403, -0.0570368543, 0.5775362253, 0.2224652022, -0.196736306, 0.0804649964, -0.4307791293, -0.3013757765, 0.2830670476, -0.1467135102, 0.1921644211, -0.2488399893, 0.084151797, -0.248658672, 0.1549933404, -0.05735071, 0.4014671743, 0.2081246227, -0.0253470447, -0.2618823051, 0.2603496015, -0.1614094824, -0.2056364268, -0.0165291559, 0.1598385125, -0.1195100546, -0.3457562029, 0.4912675619, 0.059924446, 0.1963648498, 0.1573675573, -0.1466393769, 0.130335182, -0.2772006989, 0.1934325099, -0.0389265418, 0.6014458537, -0.4154236019, -0.2229383588, -0.1094050705, -0.0636934862, -0.1233336478, 0.1501975507, -0.0136680109, 0.0419414006, 0.1471705139, -0.2701701224, -0.306199491, -0.0827067122, -0.0114475936, -0.1012169048, -0.1448511183, -0.1163430065, -0.0067809429, -0.1413311064, 0.1541289836, 0.2276300341, 0.1975073218, -0.2022558302, -0.1100779697, -0.3084982038, -0.0450167544, 0.2144832164, 0.2353203595, 0.1443664432, 0.3407250643, -0.1676422656, 0.0752003342, 0.0219241604, 0.0702032745, 0.1596526653, 0.045049347, 0.258005172, -0.2053949982, 0.452512145, -0.0547708459, 0.0398108438, 0.0399270914, 0.3543908, -0.4041004181, 0.2071148902, 0.1054351628, 0.2479426712, -0.3403216898, -0.3461491466, 0.1626417786, 0.0237694941, -0.1035871953, 0.0872048512, 0.1370184273, 0.0765380263, -0.1170746386, -0.031255722, 0.0749526098, -0.0714146197, -0.0273727607, -0.3959845304, 0.0172809567, -0.3836418986, 0.0423286185, 0.1106604934, 0.0570085086, 0.253349632, 0.1857759655, -0.2199316621, 0.0625838116, 0.1819480658, -0.0221343562, 0.0767647848, 0.4262475073, -0.0045223078, 0.0508003049, 0.1107685491, 0.1095031798, 0.1362289637, 0.418094337, -0.0418614037, -0.2713926733, -0.3100939989, 0.3273285329, -0.1431175917, -0.1270532906, -0.0756643042, 0.2846988142, 0.0590009354, -0.0932922065, 0.1752906442, -0.0045273509, -0.3644652069, -0.0545466878, 0.1707588285, 0.1992583275, -0.4645714164, -0.0022817301, 0.0210445728, -0.37017712, 0.2299242467, 0.1018558964, -0.2559856474, 0.0281903688, -0.1594495773, 0.2463548481, 0.0811337233, -0.0675539449, -0.438544333, 0.0678546429, -0.1044607162, -0.3502527177, -0.1098867506, -0.1136615947, -0.0097054234, -0.09850806, -0.1727191657, -0.1433970183, 0.0508835167, 0.0039144075, -0.2265460044, -0.2833886743, 0.0745835602, 0.0483338609, 0.20926781, 0.3154650927, 0.2383400053, -0.1500244439, 0.3119063675, 0.0804134458, 0.17240417, 0.2401135266, 0.1944091767, -0.1940510869, 0.0339595936, -0.1626262069, -0.0778367147, 0.1023433879, -0.0207639411, -0.1141055003, 0.1242760271, -0.2556659579, -0.2132737786, -0.1044736952, -0.1439940035, 0.0649199188, 0.3116973937, -0.0394423492, -0.1469849199, -0.0256980862, -0.2340632528, 0.1173262894, -0.4386694133, -0.0591635369, 0.1635655314, 0.1668137312, 0.0483219959, -0.1752251983, 0.1135093048, 0.1076940075, 0.098677747, 0.2219713926, -0.2393375635, 0.3838475347, 0.0075307088, 0.3230988085, 0.2562880218, 0.2459731102, -0.0293675605, -0.1085120142, -0.0567204766, 0.1533909887, -0.0061786515, 0.1544769853, -0.2195065916, 0.0041811205, 0.1198475957, 0.1227800548, 0.115314059, 0.0192005895, 0.2718356252, -0.0437818542, -0.2071260363, -0.2595513761, 0.0956260115, 0.1399833113, 0.2070002407, -0.1848544925, -0.1789056361, 0.1680510342, 0.4517270029, 0.1967943907, -0.0557997786, 0.1169693321, -0.2257679701, -0.1456955373, 0.2070961297, 0.3106772304, 0.3954302967, 0.3480781913, 0.3241301775, 0.0725488365, -0.0672366917, -0.343155086, 0.0303296093, 0.2030620426, 0.0503211319, 0.1952121407, 0.2348558158, -0.0697973818, -0.6493399143, -0.1062074602, -0.1416415274, 0.2880268693, -0.1849620193, -0.1196633056, -0.148288548, -0.1180299744, 0.1744534522, 0.1023569256, -0.0216887221, -0.2944032252, 0.241106391, 0.3402102292, -0.1539925933, 0.3584033251, 0.0669907853, 0.1544730067, -0.0029355986, 0.4372837543, -0.3027950823, -0.1478398442, 0.0059069037, 0.2321466357, -0.0579224303, 0.0021712356, 0.2942667902, -0.0345822796, 0.0841889828, -0.4045104086, -0.1687056422, 0.1775917858, -0.0422684625, -0.025514327, 0.0791090205, 0.1675947011, -0.1411899179, 0.3309294581, 0.0362137966, -0.2055021971, -0.1571456194, -0.1558746547, -0.1878534257, -0.0236847773, -0.2994593978, -0.0955626592, -0.0734325424, -0.3905099928, 0.0512569882, -0.0712078735, -0.0567772761, 0.2447484285, -0.0892986506, 0.1759669334, 0.1313778609, -0.0752637908, -0.3427338302, -0.4918085039, 0.0708873868, -0.2190901041, -0.3995852172, 0.1060221866, 0.1748673916, 0.00683288, -0.0386901647, -0.4271921813, -0.1249674559, -0.4003716707, -0.0054286132, -0.2445761561, -0.0012502669, 0.3867064416, 0.0232884921, -0.3557620645, -0.2199852616, -0.3149738312, 0.145704776, 0.0185300615, 0.0254476517, -0.3164151609, 0.0266640186, 0.0572808869, 0.3319734931, 0.1314513534, 0.0288758632, 0.2864024043, -0.0447042845, 0.2110975236, -0.1811967343, -0.1463931203, 0.1071935222, -0.0983486325, 0.0072868327, 0.1993073374, -0.0016733581, -0.2961312532, -0.0705988258, -0.0121465158, -0.0433846898, -0.1468428522, -0.4033568203, -0.1786356419, 0.1736798435, 0.2220254838, 0.2157218456, -0.1202086434, 0.0643643811, -0.0166435782, 0.1368849277, 0.2726162374, -0.2774796188, -0.2935123444, 0.1251392066, -0.4272783697, 0.0669322535, -0.0666520745, 0.0529321842, -0.1138816178, -0.0455382094, 0.3016259968, 0.0132491924, 0.5144385695, -0.206167832, 0.0751795471, 0.1470347643, 0.1833788007, -0.1256112754, -0.1601672173, -0.1391434371, 0.4205630124, 0.1722532064, 0.2092000246, 0.1187050641, -0.1667722613, 0.1739277393, -0.1185819358, 0.0034085969, -0.4570742249, -0.3658676445, -0.1437802166, -0.2650411725, 0.2220318168, 0.0696085989, 0.0092720101, -0.3115871847, -0.336133033, -0.0356300399, -0.162627548, -0.2178284377, 0.1467825472, 0.1517466903, 0.0370312072, 0.1194386482, 0.0774439722, 0.2860640883, 0.222025454, 0.05468297, 0.246023044, -0.0942074284, 0.3663462698, -0.3722958863, 0.0553485751, 0.2775213122, -0.2776469588, 0.3160920143, -0.1080333069, 0.2466955185, -0.1287562698, -0.2021317333, 0.3426862657, -0.0304332618, -0.1122848839, -0.1296393424, 0.2883580327, 0.007559102, -0.1623648107, 0.2025413215, 0.0249175355, -0.0834410042, -0.2757064402, -0.0375111662, 0.7426796556, -0.0334520899, -0.1380451173, 0.1358205229, -0.2283022255, 0.3220163584, 0.1119791567, 0.1642050445, -0.4315051436, -0.3373176157, -0.0380669162, -0.0593302026, 0.239190802, -0.1603134125, -0.1908498257, 0.0864996165, -0.2639448643, 0.1703835875, -0.0654015839, -0.026607519, -0.065161705, -0.1306500435, -0.1415392309, 0.3012900651, 0.071532771, 0.1933518052, -0.0922174826, 0.1168988496, 0.2073816061, 0.1061841026, -0.3246264756, 0.016430581, 0.2150163203, 0.0817239583, -0.0871782228, -0.3832072616, 0.1161596552, 0.0054141264, 0.6305186749, -0.0723051131, -0.3233718574, 0.2185578644, 0.0572031513, 0.154926911, -0.0110680088, 0.1351474971, 0.1720527112, -0.3276139796, -0.314189136, 0.0416751727, 0.0245801527, -0.2900607884, -0.1411180645, 0.1009937152, 0.1713564247, -0.1022318453, 0.1517006159, 0.0941778868, 0.2594479322, -0.3805502057, 0.3122260571, 0.2116302699, -0.0013666162, 0.3058975339, -0.0434072539, -0.2855224907, -0.1058099195, 0.3746729195, -0.0471706353, 0.0885111541, 0.2705827355, 0.0297918655, -0.3388720155, -0.3901581764, 0.0259843227, 0.2904172242, -0.2181683928, 0.0928302631, 0.0365209393, 0.2190667391, 0.0773642957, 0.165350318, -0.1708789021, 0.1903454214, -0.1844816506, -0.2126555145, -0.3821564615, -0.0756227225, -0.3617585897, 0.1674850136, -0.1170069724, 0.2422586828, 0.1642328054, -0.2095513344, -0.4828166962, 0.1043827385, -0.1916699558, 0.0223592129, -0.0616142675, -0.0395267718, 0.0107803103, -0.1095150486, 0.1596180499, -0.017824132, -0.4208321869, -0.3760478497, -0.0505669154, 0.0542696975, -0.0553492941, -0.0916875526, 0.0708417445, -0.0124040572, -0.3808449209, 0.1595236212, 0.1495045722, 0.1893280298, 0.1264628768, 0.3020765781, 0.0382778011, 0.0895262361, 0.0124460915, -0.172624588, 0.1446708143, 0.0576812848, -0.0539278388, 0.1244270056, -0.0065804548, -0.0276465025, 0.2275311351, 0.1334490627, 0.0845587924, 0.5008245707, -0.0754180029, -0.301350832, 0.1236042827, -0.0768087357, 0.5262035131, 0.0786519423, -0.1487594545, -0.161183387, 0.1398610473, 0.4366205037, -0.3916623294, 0.0263541881, 0.3707644343, -0.0100038275, 0.1842575818, -0.0014318001, 0.1325761825, 0.1303467751, 0.0871000886, 0.3760141432, 0.1132241711, -0.3436345756, -0.0398073569, 0.2131901234, -0.0741387382, 0.0238453671, 0.3503749967, 0.3093539476, -0.0276505183, 0.5311850309, 0.1251447499, 0.4083385766, 0.3486517966, 0.318746388, -0.2099704593, -0.1797944009, -0.0174340345, 0.2028117925, -0.1287890524, -0.3653080463, 0.0742626339, 0.1821201444, -0.0846465752, -0.2187217623, -0.0993656963, 0.0415533222, -0.1598417163, -0.1765049994, -0.3403042555, -0.1716873199, 0.0837725773, 0.0425583832, -0.0141740032, 0.3499788642, 0.2928695679, -0.1814736426, 0.0509602502, -0.3545149565, 0.0794479325, 0.1234138831, 0.2386512756, 0.0553499982, -0.1003172398, -0.1932812631, 0.1264372617, 0.1035679355, 0.3794704378, 0.1034772247, 0.1606203169, -0.0117414147, -0.2521603107, 0.0622228794, -0.2785102427, -0.176530987, 0.174758628, -0.0017488896, 0.0483929962, 0.2178845108, 0.2599286437, -0.2537257671, 0.4577459395, 0.1452037096, 0.1162128225, -0.5175434947, 0.2394629568, 0.1341354251, -0.2854494154, 0.0418839715, -0.0961118266, -0.1465419829, -0.0157463793, 0.4080951214, -0.1923330128, 0.0866920277, -0.2239390314, 0.1954114884, -0.1504388154, 0.2595711648, 0.1637840569, 0.3310199678, -0.1081498787, -0.3315902054, -0.5028666258, 0.1777926385, 0.1743541807, 0.1925496459, -0.0535769276, 0.0378599539, -0.3170667589, 0.3019963205, 0.4104749858, -0.1093757823, 0.0209717173, -0.2024774849, -0.2162163705, 0.1166908517, 0.0677550137, -0.0121903159, -0.092115812, -0.1904399693, 0.181281969, -0.0020266648, 0.2022673041, 0.0410378166, 0.0328881927, 0.0895207524, -0.0968529657, 0.4912850857, 0.1340896338, 0.1044610888, -0.2403553277, 0.0124600558, -0.1672847122, -0.2488929629, -0.4418871999, 0.144613415, -0.0821243897, 0.3392528296, -0.0853482708, 0.0772004724, 0.0067135571, 0.4047376215, 0.180695504, 0.3794718087, -0.2791559696, 0.3082979918, 0.1831535399, 0.1753866673, -0.2353364229, -0.2150694579, 0.0985858217, 0.3112955391, -0.2942813039, -0.4546124041, 0.5019847155, -0.2152863145, -0.3723546267, -0.076423265, 0.2795972526, 0.2018608451, -0.3445016742, -0.3253343999, 0.0078411037, 0.1736467034, -0.0240044165, -0.2483028024, 0.4007062018, -0.2415482551, 0.1452599019, 0.0238205325, 0.2798729539, 0.3750036955, 0.0471401475, -0.0758552477, -0.237327978 ]
https://github.com/huggingface/datasets/issues/4268
error downloading bigscience-catalogue-lm-data/lm_en_wiktionary_filtered
It would help a lot to be able to preview the dataset - I'd like to see if the pronunciations are in the dataset, eg. for ["word"](https://en.wiktionary.org/wiki/word), Pronunciation ([Received Pronunciation](https://en.wikipedia.org/wiki/Received_Pronunciation)) [IPA](https://en.wiktionary.org/wiki/Wiktionary:International_Phonetic_Alphabet)([key](https://en.wiktionary.org/wiki/Appendix:English_pronunciation)): /wɜːd/ ([General American](https://en.wikipedia.org/wiki/General_American)) [enPR](https://en.wiktionary.org/wiki/Appendix:English_pronunciation): wûrd, [IPA](https://en.wiktionary.org/wiki/Wiktionary:International_Phonetic_Alphabet)([key](https://en.wiktionary.org/wiki/Appendix:English_pronunciation)): /wɝd/
## Describe the bug Error generated when attempting to download dataset ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered") ``` ## Expected results A clear and concise description of the expected results. ## Actual results ``` ExpectedMoreDownloadedFiles Traceback (most recent call last) [<ipython-input-62-4ac5cf959477>](https://localhost:8080/#) in <module>() 1 from datasets import load_dataset 2 ----> 3 dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered") 3 frames [/usr/local/lib/python3.7/dist-packages/datasets/utils/info_utils.py](https://localhost:8080/#) in verify_checksums(expected_checksums, recorded_checksums, verification_name) 31 return 32 if len(set(expected_checksums) - set(recorded_checksums)) > 0: ---> 33 raise ExpectedMoreDownloadedFiles(str(set(expected_checksums) - set(recorded_checksums))) 34 if len(set(recorded_checksums) - set(expected_checksums)) > 0: 35 raise UnexpectedDownloadedFile(str(set(recorded_checksums) - set(expected_checksums))) ExpectedMoreDownloadedFiles: {'/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz', '/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz.lock'} ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.3 - Platform: Linux-5.4.188+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.13 - PyArrow version: 6.0.1
38
error downloading bigscience-catalogue-lm-data/lm_en_wiktionary_filtered ## Describe the bug Error generated when attempting to download dataset ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered") ``` ## Expected results A clear and concise description of the expected results. ## Actual results ``` ExpectedMoreDownloadedFiles Traceback (most recent call last) [<ipython-input-62-4ac5cf959477>](https://localhost:8080/#) in <module>() 1 from datasets import load_dataset 2 ----> 3 dataset = load_dataset("bigscience-catalogue-lm-data/lm_en_wiktionary_filtered") 3 frames [/usr/local/lib/python3.7/dist-packages/datasets/utils/info_utils.py](https://localhost:8080/#) in verify_checksums(expected_checksums, recorded_checksums, verification_name) 31 return 32 if len(set(expected_checksums) - set(recorded_checksums)) > 0: ---> 33 raise ExpectedMoreDownloadedFiles(str(set(expected_checksums) - set(recorded_checksums))) 34 if len(set(recorded_checksums) - set(expected_checksums)) > 0: 35 raise UnexpectedDownloadedFile(str(set(recorded_checksums) - set(expected_checksums))) ExpectedMoreDownloadedFiles: {'/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz', '/home/leandro/catalogue_data/datasets/lm_en_wiktionary_filtered/data/file-01.jsonl.gz.lock'} ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.3 - Platform: Linux-5.4.188+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.13 - PyArrow version: 6.0.1 It would help a lot to be able to preview the dataset - I'd like to see if the pronunciations are in the dataset, eg. for ["word"](https://en.wiktionary.org/wiki/word), Pronunciation ([Received Pronunciation](https://en.wikipedia.org/wiki/Received_Pronunciation)) [IPA](https://en.wiktionary.org/wiki/Wiktionary:International_Phonetic_Alphabet)([key](https://en.wiktionary.org/wiki/Appendix:English_pronunciation)): /wɜːd/ ([General American](https://en.wikipedia.org/wiki/General_American)) [enPR](https://en.wiktionary.org/wiki/Appendix:English_pronunciation): wûrd, [IPA](https://en.wiktionary.org/wiki/Wiktionary:International_Phonetic_Alphabet)([key](https://en.wiktionary.org/wiki/Appendix:English_pronunciation)): /wɝd/
[ -0.2923785746, -0.0414035209, -0.1572302878, 0.2814292014, 0.0499909259, -0.0285517592, 0.1625797749, 0.5453563929, 0.2865177393, 0.0777813271, -0.168789044, 0.2441957742, -0.1849417686, -0.0490182601, -0.0428375825, 0.0211599749, -0.0528010242, -0.1682505608, -0.2153728455, -0.0532671474, -0.2370812893, 0.181700781, -0.1096780151, -0.1858239472, 0.2069411129, -0.1140325516, 0.1760243624, 0.2468897253, -0.3102564216, -0.3532398343, -0.0307222866, -0.0613413565, 0.1408164352, 0.2884539664, -0.0001048582, -0.0333315916, 0.4238373935, -0.2157741338, -0.3314876258, -0.2955612838, -0.3213742673, -0.2894915044, -0.0268839244, -0.3024510741, 0.2805395722, -0.0974683166, -0.1821083874, -0.2052160949, 0.2140982449, 0.3210104108, 0.3282192945, 0.1349918544, 0.2758903503, -0.1221913695, 0.3785416484, -0.0413575135, 0.022433335, 0.4331904054, 0.3113667965, 0.1489269882, -0.0518825501, 0.3362361789, -0.148846522, 0.1204843745, 0.1093102396, 0.01071891, 0.0270627439, -0.2118667811, 0.2079152465, 0.2775227726, 0.4446953237, -0.241684854, -0.4317794442, -0.3021026552, -0.0022348915, -0.3895514309, 0.2196149379, 0.4127164781, -0.1998990625, 0.1016279906, -0.0287261643, -0.0284731016, -0.0399804041, 0.2492901236, -0.056694109, 0.1895591766, 0.0522897802, 0.0440710299, 0.101363644, -0.2609747052, 0.1998426169, -0.2082021981, -0.1980365217, 0.0647346973, -0.2194779664, -0.1952336133, 0.1080380157, 0.1981893927, 0.3190006316, 0.1578463763, -0.1518890113, 0.0115326401, 0.1361013353, 0.0253562331, 0.2678481042, 0.0825104564, -0.4023614824, 0.3246602714, 0.2697930336, 0.4571757019, 0.1638487577, 0.216838479, 0.1461554319, -0.2815046906, 0.0695635751, 0.1131108627, 0.1703318059, -0.2363537252, -0.4247169197, 0.1316587329, -0.2067680508, -0.043202091, 0.104928799, 0.3566287458, -0.1581600904, -0.0042896047, 0.122247681, 0.0395481475, -0.1403517425, -0.1630939394, -0.1612826586, 0.3140999079, 0.0655128583, -0.2526753843, 0.3126744032, -0.1697213054, 0.388866812, -0.0808265209, -0.024545582, -0.1968973577, 0.1751328111, -0.1182586104, 0.0816919431, 0.4336025715, 0.0449292213, 0.0413240567, 0.1552280188, -0.170794338, -0.1018211842, 0.1724528968, -0.2603506446, -0.1839224994, -0.1428055465, 0.3375995159, -0.1324733049, 0.0025363625, -0.2354692817, -0.0945840329, 0.1620416939, -0.0250122491, 0.034442585, -0.166899085, 0.0762027726, -0.1673564762, 0.1124645174, 0.4594709277, -0.399184227, 0.0404924601, -0.3377887011, -0.170023948, 0.1189554408, 0.1610441655, -0.364594996, 0.3503319025, -0.2474317551, -0.0256103966, 0.5102394819, -0.3939996958, -0.7960937619, 0.2291478515, -0.3173540831, 0.1774206907, -0.0589662753, 0.1513349861, 0.2699801326, -0.0038053961, 0.1388984174, 0.0770361647, 0.0356291197, 0.0264307708, -0.3412952125, -0.0725827888, 0.2134068608, 0.1527852267, 0.1383559555, -0.0604106151, 0.2097764164, 0.2546498775, 0.4838971198, 0.0862028301, 0.0223742537, 0.1803556681, 0.2710557282, -0.0643088222, -0.0286734328, -0.074788034, -0.3305380344, 0.1743660867, -0.3938860595, -0.0532268733, -0.5412214398, -0.0038514233, -0.4744915962, 0.0621133633, -0.1218877956, -0.1665435433, 0.2334944457, 0.1561936587, 0.0515018553, -0.0545419231, 0.0063394844, 0.4334279895, -0.097322382, 0.0599318184, -0.2802316844, 0.1994725764, -0.180395022, -0.0435063951, 0.0927416831, -0.1900028288, 0.2261232883, -0.1249662936, -0.2060066313, 0.3546816111, 0.2581908703, 0.0262217112, -0.1245426014, -0.0397173017, 0.2134389281, -0.1812132597, 0.1068689525, 0.2366646528, 0.3265242577, 0.1463146508, -0.3787161708, 0.2951194942, -0.0992408022, -0.0788127035, 0.0609691851, -0.0810284317, 0.2846021652, -0.0652035847, -0.0319548026, -0.2303908169, 0.3336648941, 0.3264441788, -0.0849760324, -0.1383920163, -0.0507230945, 0.0955830887, 0.5174328685, 0.0174866021, 0.2039304227, 0.1388794333, 0.0767971054, -0.0963398442, 0.068700254, 0.4084709287, 0.506578505, 0.2115621865, -0.0887179971, 0.0373143591, 0.1005858853, -0.2070862204, 0.2609803081, 0.0298943724, 0.0275342725, 0.2342581153, 0.2364243865, -0.0144864488, -0.1983856857, -0.3359374404, 0.0640173927, 0.3788403571, -0.1485491842, -0.1037026197, -0.3071555793, -0.0065813195, -0.1926596165, 0.0224937629, -0.0546302795, -0.3486826718, -0.0221690182, 0.3084957302, -0.1978915036, 0.0663289055, -0.2789720595, -0.0692474395, 0.2657970786, -0.1872233599, 0.0809793547, 0.0263751931, -0.1423320919, 0.1407056451, 0.3288151324, 0.0519927293, 0.3806819916, 0.0499751493, -0.1871871799, -0.4483882785, -0.3514977396, -0.0420167148, -0.0695772022, 0.2781917453, 0.3377683759, 0.2806733251, 0.0778236315, -0.0901712775, -0.031357564, 0.1613828987, -0.2040580511, -0.0540495515, 0.0495475382, -0.0426509641, -0.212700367, -0.4419006705, -0.3972080946, -0.4870702326, -0.1089358702, 0.021360334, 0.2313240319, 0.0286147501, 0.0657870024, 0.1142568141, 0.1020718962, 0.1103980318, -0.1750168949, -0.2533191741, 0.3172065318, -0.3564910591, -0.4775798321, 0.0509908646, -0.1009347886, 0.0253378563, 0.0923955739, -0.5353688598, 0.1286059171, -0.0262307897, 0.1033296064, -0.0480447635, -0.1253813654, 0.1424299926, 0.0201373678, -0.0926221684, -0.2679794431, -0.021287607, -0.1398284286, -0.2192837447, 0.39466241, -0.1572470069, 0.3164728582, 0.0766081885, 0.3585457504, 0.2280853391, 0.0179376211, 0.3332449794, 0.2891539335, 0.2208589166, -0.0862482637, -0.3794327974, -0.0327436812, 0.1129222065, 0.0406729467, 0.2487491518, -0.2000155151, -0.427511692, -0.1804386079, 0.057703115, -0.3584861457, -0.2440395206, -0.0020135217, 0.1696668565, 0.0131361159, 0.1596017927, 0.1176348925, -0.1616303921, 0.0267849732, -0.0471416563, 0.1550521404, -0.0666078404, 0.1233884618, -0.0823737532, 0.0442763641, -0.1772255301, 0.1364485919, 0.107479766, 0.4074114561, 0.0730372593, 0.0351845995, -0.0773859844, -0.3007648587, 0.5904011726, -0.0112259369, 0.3115172982, -0.0656383932, -0.0228989366, -0.291036129, -0.0735211149, -0.3277397454, -0.0619729683, 0.3422116637, 0.2250502706, -0.3832868338, 0.1326798499, -0.0395547003, 0.017154932, -0.0486239865, -0.1953846067, -0.1142801493, -0.5711029172, -0.4278568923, -0.02541578, 0.0993401855, 0.3440417349, -0.1890026778, -0.1046184376, 0.1034863964, 0.0129524749, 0.0771262869, 0.0180638246, 0.2949352264, 0.0969103351, 0.3318148851, 0.0111210449, 0.4193200469, 0.3044734299, 0.6435570717, -0.0153185241, -0.1343490034, 0.1597364992, -0.020628754, -0.340500325, 0.2576613426, -0.1682247818, 0.0227816869, 0.1810479462, 0.1171625331, 0.1583190709, 0.2147182077, 0.0638568476, 0.0843708664, -0.3709561229, -0.1419986039, 0.4147665203, -0.0122174416, 0.0126361279, 0.3176361024, -0.1065958589, -0.2798047364, -0.0369356051, 0.1025790349, 0.7800714374, 0.1858661771, -0.0346068367, 0.2821183801, -0.1329612583, 0.3418008387, -0.0415533036, 0.2486394793, -0.2829703987, -0.1942823082, -0.0900425166, -0.23665075, 0.1383067071, -0.094482325, -0.2990511954, 0.1529105157, -0.1215049699, -0.0712250844, -0.0593618415, 0.4998767674, -0.1753744036, -0.1568050981, -0.3271229863, 0.2737339139, -0.0968374386, 0.2338029295, -0.2079294324, -0.2179089934, -0.2894856036, -0.3907411098, -0.3588908315, 0.1120302752, -0.1320018172, 0.2717322409, -0.0710317641, -0.0911531076, 0.1466403902, 0.0199148171, -0.0788838044, 0.3375189006, -0.1408594847, 0.1794107705, -0.0932424217, -0.0856559128, 0.1578809172, 0.1566444486, 0.2043206692, -0.2265359908, -0.1399219185, 0.0072694309, -0.0298898146, -0.1234369054, 0.0783342198, 0.090732865, -0.0167699587, -0.2758491635, -0.2724547088, -0.06099426, -0.2319539785, -0.2816797495, 0.2017519772, 0.1762402952, -0.1682387739, 0.1158106551, 0.2009875178, -0.3794726133, -0.288338691, 0.5457729101, -0.0404315144, -0.0673676059, 0.3909109533, 0.0900588483, -0.2963806093, -0.3107836843, -0.0379548818, -0.2615093887, -0.2131336033, 0.2508823872, -0.2104078978, 0.1290205568, -0.0178526994, 0.1205836236, 0.1268985718, 0.1804384142, 0.108846806, -0.6116678119, -0.1752656251, 0.2096791863, -0.1757296771, 0.2425877303, -0.2635930479, 0.0086667659, -0.131108135, 0.0131076928, -0.4092978537, 0.1119146571, -0.2226198316, 0.0558570065, 0.0137016308, -0.0235057157, 0.0804090351, 0.2276908904, 0.2788037658, 0.399219662, -0.187489599, -0.3154125512, -0.1193987802, 0.1175550297, -0.0313577093, -0.2516780794, 0.0736225247, -0.3280541003, -0.1159349605, 0.1496283263, 0.1397646666, 0.0521598533, -0.0196969304, -0.1778328121, 0.4126924574, -0.1581472456, -0.0552254766, 0.1588581055, -0.0219233278, -0.0240211934, -0.0499361902, 0.2150892615, 0.044420477, -0.0262969211, -0.3747867942, -0.022018332, 0.0999019369, 0.1912261099, 0.4644661546, -0.1349102706, 0.0058611389, 0.2534863949, 0.1839476079, 0.349234134, -0.1822359115, -0.0716562122, 0.1342575103, 0.3312245607, -0.4762817621, -0.0206408668, 0.0547955967, 0.1487313509, 0.0825967267, 0.2200609446, -0.0853399038, -0.0547466017, 0.0148949297, 0.1033077911, 0.51406914, 0.0399647243, 0.1417973638, 0.3999735713, -0.2559893429, -0.063038379, 0.2088027894, 0.043351613, 0.197341457, 0.3940808475, -0.1714198589, 0.3311378956, -0.1625997871, -0.0256404486, -0.0437913425, -0.4208476543, 0.0310860351, 0.3115212321, -0.0161232203, 0.2678172588, 0.0446782224, -0.1445794553, 0.1071431935, 0.0390103348, -0.1758776456, 0.3037645817, -0.1862384677, -0.034733329, -0.1279202551, -0.3328615725, -0.1231236011, 0.1204981655, 0.0775851607, -0.2718220353, 0.1905570179, 0.3381198943, -0.2007162273, -0.5028092265, -0.103824757, 0.0046493807, 0.0473696552, -0.3874830306, 0.1031720489, 0.4317591488, 0.0566466637, 0.0653750151, 0.0841201395, 0.3748915195, 0.5216267705, 0.0621310882, -0.161125347, 0.0396628194, -0.041002512, -0.0968680903, 0.3038139045, 0.103325434, 0.0806119367, 0.359459728, 0.2420630753, -0.2365051955, 0.1737934947, 0.1368823647, 0.0394264348, -0.0872671381, 0.2431357354, -0.0879860148, 0.2301579416, -0.3438949585, -0.062944822, -0.3841106892, -0.205008015, 0.194442153, 0.0538053215, 0.2803029716, -0.1483445913, 0.1035071164, -0.1939720958, 0.3162064254, 0.2660987675, 0.3846208453, -0.2137842476, -0.0469060242, -0.5024280548, 0.1724726409, -0.346996218, -0.1295777112, -0.1455878466, 0.2240305692, -0.118400082, 0.2047991157, 0.0748171285, 0.1087777391, -0.0199392531, 0.1825401783, -0.3406282663, -0.2378991991, 0.1222532541, -0.0062028826, 0.1046955511, -0.4333774149, 0.1686771512, -0.4030472934, 0.208211109, -0.3700033724, -0.1381946057, -0.0405407287, 0.2870667875, 0.3991278708, 0.2666448057, 0.4219020605, -0.1721803993, -0.4623817801, -0.5068796277, -0.2178313136, -0.1217797995, 0.1986500472, 0.2184195071, 0.6369150281, 0.0296888351, -0.0746037513, -0.1033614129, 0.4448701143, -0.13086842, -0.0580458902, -0.1972834468, -0.1436203569, -0.1096158624, 0.0656554028, -0.0511646159, 0.1483440846, -0.0219370686, 0.3588072658, -0.3942278028, -0.3856465518, 0.6613796949, -0.3881804943, -0.1596189588, -0.1009051055, 0.2502729893, -0.1218318343, -0.1491242349, -0.455260694, 0.2276095748, 0.428763032, -0.0128906015, -0.1326039582, 0.1505882889, -0.0781833678, 0.1307359338, -0.0386901386, 0.4313363433, 0.0674165785, -0.220816046, 0.0933674201, -0.1452369988 ]

No dataset card yet

New: Create and edit this dataset card directly on the website!

Contribute a Dataset Card
Downloads last month
9
Add dataset card