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/157 | nlp.load_dataset() gives "TypeError: list_() takes exactly one argument (2 given)" | I am getting this error when running this command
```
val = nlp.load_dataset('squad', split="validation")
```
FileNotFoundError: [Errno 2] No such file or directory: '/root/.cache/huggingface/datasets/squad/plain_text/1.0.0/dataset_info.json'
Can anybody help? | I'm trying to load datasets from nlp but there seems to have error saying
"TypeError: list_() takes exactly one argument (2 given)"
gist can be found here
https://gist.github.com/saahiluppal/c4b878f330b10b9ab9762bc0776c0a6a | 27 | nlp.load_dataset() gives "TypeError: list_() takes exactly one argument (2 given)"
I'm trying to load datasets from nlp but there seems to have error saying
"TypeError: list_() takes exactly one argument (2 given)"
gist can be found here
https://gist.github.com/saahiluppal/c4b878f330b10b9ab9762bc0776c0a6a
I am getting this error when running this command
```
val = nlp.load_dataset('squad', split="validation")
```
FileNotFoundError: [Errno 2] No such file or directory: '/root/.cache/huggingface/datasets/squad/plain_text/1.0.0/dataset_info.json'
Can anybody help? | [
0.0945210531,
-0.0742242113,
-0.03241501,
0.4672498703,
0.2305200845,
0.2202828079,
0.137144044,
0.2303495407,
0.1524402946,
-0.1321381629,
0.0483737402,
0.4689955711,
-0.1310246587,
-0.1885151565,
0.2510723472,
-0.2700097561,
-0.1781658679,
0.300565064,
0.2233231217,
-0.0836041793,
-0.0806100219,
0.3751227856,
-0.2587866783,
0.1794958413,
-0.069657363,
-0.166287303,
-0.1388198882,
0.3408645689,
-0.0691159293,
-0.5248636007,
0.3120105863,
-0.2391537428,
0.3402948976,
0.1358479261,
-0.0001175047,
-0.0599625669,
0.3421851397,
-0.2002911717,
-0.4428666532,
-0.4260237515,
-0.2834003866,
-0.4043206871,
0.449272275,
-0.2842896879,
0.0768051296,
-0.1121729538,
0.3357004821,
0.1443690956,
0.533074975,
0.2761429846,
0.171837464,
0.0707813576,
-0.1612330377,
-0.1983357966,
-0.0910205096,
0.1816207021,
0.1172782406,
-0.0071004294,
0.0522170216,
-0.0216119848,
0.2575652003,
0.1014680117,
-0.2076476514,
0.1450592279,
0.2254327834,
-0.0419415347,
-0.1588709056,
-0.2111569345,
-0.0347855948,
0.2176090032,
0.4590612352,
-0.0522607155,
-0.3170990348,
-0.1796330214,
0.2186481953,
-0.1685426682,
0.19274652,
0.3058081865,
-0.2965563238,
-0.0683340952,
-0.1642873138,
-0.3450191617,
-0.1650011837,
0.3975941241,
0.2750881612,
0.1535810083,
-0.2077718675,
0.2252542973,
0.3455044627,
-0.0361196138,
-0.198006317,
-0.1579734534,
-0.0737135857,
0.2626847923,
-0.3977152705,
-0.0694361553,
-0.0915701017,
0.1090951785,
0.1139027402,
0.0260957591,
0.2392786294,
-0.1550080329,
-0.2616507113,
0.2248241454,
0.4656401575,
0.1235242337,
0.5095348358,
0.1183803752,
-0.1002923176,
-0.179701671,
0.2383677512,
-0.0380187221,
-0.3207312822,
-0.0792201981,
-0.0185722802,
-0.1307919621,
0.2193067968,
-0.3075297177,
-0.222997129,
-0.104467079,
-0.2776851952,
-0.1764393002,
0.1635677963,
0.5018176436,
0.001494591,
0.2334462702,
0.1880491078,
0.1749490798,
0.0047684088,
-0.3472224176,
-0.1687655598,
0.2098418474,
-0.0978954732,
0.036990568,
0.3579714596,
-0.0562424511,
0.5068041086,
0.0184475761,
-0.2095421851,
0.0261953101,
0.1318285018,
-0.1180990189,
-0.2231773287,
0.0519673787,
0.3733533323,
0.1931854486,
0.3314562738,
-0.2338433415,
-0.1246821061,
0.1174582988,
-0.4283103049,
-0.1035219803,
-0.0473561734,
0.1175816357,
-0.0290023964,
-0.1308627129,
-0.4799633026,
0.1306150854,
0.1781008244,
-0.4104079008,
-0.255184561,
-0.1001115218,
-0.1320741922,
-0.1593172997,
-0.0487705022,
0.3155109584,
-0.1800807416,
-0.2033408284,
-0.0260749608,
0.0535219498,
-0.041102957,
0.5622395873,
-0.5059042573,
0.2713319957,
-0.2215327621,
0.3962130249,
0.8447899222,
-0.2791198194,
-0.0745532662,
0.337421,
-0.0547372401,
-0.1533976793,
0.0275872145,
0.3057096899,
-0.0191107597,
-0.0021679476,
0.1813527793,
0.3129219711,
-0.0446240678,
0.0730140209,
-0.0946255252,
-0.1504561752,
0.3942300379,
0.122704193,
-0.2146464884,
0.1991516352,
-0.0499233678,
0.4528461397,
0.2658727765,
-0.1584923416,
-0.1263808757,
0.530346632,
-0.0729102939,
-0.0173796006,
-0.084321104,
0.0034206079,
-0.663038671,
-0.0856323689,
-0.0796989352,
-0.1029729098,
0.0860077962,
0.0132865235,
-0.1351170987,
-0.0978126898,
-0.0378821231,
0.0486692637,
-0.0134730106,
0.2081671655,
0.0850294083,
-0.1480763257,
-0.2450397164,
0.2566251159,
-0.2056080401,
0.0003629341,
-0.573281467,
0.2165284008,
-0.0633267462,
-0.1461010575,
0.2288917452,
-0.0382385105,
0.2623355687,
-0.0182979871,
0.0105227921,
0.1740935594,
-0.0960969701,
-0.0670995042,
0.1445891261,
-0.1476927251,
0.0615385994,
-0.2101723254,
-0.0106027024,
0.2204061449,
0.3082593083,
-0.1706627458,
-0.3535012603,
0.2086134851,
-0.0569124073,
0.318048805,
-0.0306310523,
0.0880767033,
0.2986539304,
0.0288571101,
-0.0738667622,
0.1052182838,
0.3209810853,
0.2160908282,
0.1885682344,
0.0780152604,
-0.3490478396,
-0.1983895153,
0.3542865813,
0.1767282039,
0.1097872928,
0.1547649205,
0.0201389268,
-0.1638190001,
0.1139688641,
-0.1261247396,
0.6103340983,
0.2790959179,
-0.2174890637,
-0.13575387,
-0.1227156445,
-0.1258220226,
0.1132871285,
-0.1588302106,
0.2757974267,
0.0049472204,
0.0412527099,
-0.0545985848,
-0.3170292675,
-0.2727826834,
0.1860587597,
0.4085499942,
-0.3574672639,
0.0801148489,
-0.2669264078,
-0.4085351825,
-0.0564552285,
-0.1330900937,
-0.3703538775,
-0.2320024371,
-0.1946541667,
0.2208274305,
0.3217782378,
0.0679834858,
-0.0536398925,
0.3023662865,
0.1571764946,
0.0108210826,
-0.1574365497,
-0.0606794432,
-0.3003081679,
-0.0399848744,
0.1811010838,
0.1816270947,
0.117724821,
-0.1682047993,
-0.1895608157,
-0.1653554291,
-0.0380486511,
0.0624030866,
-0.0236979946,
0.1431703269,
0.3579217792,
0.4521512687,
-0.1662939936,
-0.1952402294,
0.2785127461,
0.1151323766,
-0.1622626781,
0.0508084781,
0.0326860175,
-0.0698712394,
-0.2156066447,
-0.3680702746,
-0.1935556531,
-0.2798214257,
0.2910513282,
0.3097073138,
0.2572419643,
0.3628793061,
0.002723946,
0.3270461857,
-0.2055665106,
0.2300756723,
-0.3146945834,
-0.1463427246,
0.1815909445,
-0.0957209393,
-0.3216097951,
0.1054399908,
0.1184151024,
0.1621737778,
-0.1154641733,
-0.3580617309,
-0.4874969721,
0.0048742611,
-0.0502632521,
-0.3202100098,
0.1484272778,
0.3125917912,
-0.2749208808,
0.0704339966,
-0.0273819584,
-0.4806821942,
0.3043292761,
0.1231423989,
0.4395597875,
0.007070852,
0.4651110172,
0.0839047953,
0.4180477858,
0.2728455961,
-0.1289701462,
0.314363569,
-0.139524743,
0.289252907,
0.0977077037,
-0.3613310456,
-0.0055157025,
0.2341443747,
0.0285632368,
0.2181872278,
0.0020768296,
-0.1427939981,
-0.073852405,
0.0572473854,
-0.2445679456,
-0.0016672736,
0.1255102009,
-0.0108062616,
-0.1184797138,
0.0733584464,
0.0380208381,
-0.4303795099,
-0.214497,
-0.3226788938,
0.3040019572,
0.1819108427,
0.0907660872,
-0.595271945,
-0.2950336039,
-0.2407018244,
0.2234671265,
-0.0160447843,
0.5692746043,
-0.1884069145,
0.1972351968,
0.1648418158,
0.1474805325,
0.6530014873,
-0.0889931098,
-0.0057104775,
0.0284772571,
0.1281399876,
-0.414121896,
0.116819784,
-0.151458174,
0.6537322998,
0.3073105216,
0.4086616933,
-0.3931206465,
-0.3012160659,
0.0673375726,
0.0989908725,
-0.3241265416,
-0.1676250696,
-0.2476392984,
-0.2692569494,
-0.2987027764,
-0.1954523772,
-0.1579847485,
0.2615727186,
0.3339888155,
0.2174841762,
-0.0739692226,
-0.0597338192,
0.211912185,
0.0225703418,
0.2418560982,
0.1694159061,
-0.2763485909,
-0.0864096731,
0.271286428,
-0.3034069836,
0.4241044819,
-0.057285428,
-0.1833344698,
0.0778549463,
-0.0774298385,
0.4648781121,
0.2289251834,
-0.0216731634,
0.037354432,
-0.0037191452,
-0.0163167957,
0.0841490105,
-0.0525820255,
0.4038659036,
-0.1450892836,
-0.2066801041,
-0.4859926999,
0.3761888146,
0.1591276824,
-0.0214494262,
0.3054713011,
-0.2700212598,
-0.2671296895,
0.2274039686,
-0.1958308071,
0.8024111986,
-0.0994675905,
0.4081023932,
0.4356689155,
0.2962632477,
0.8019765019,
0.1236784756,
0.1407845318,
-0.400218308,
-0.0436967835,
-0.0313347094,
-0.2122369558,
0.0230469648,
0.4677304626,
-0.304667145,
0.3824667037,
0.0094721708,
0.015494816,
0.1847149134,
0.5063362122,
0.0510775745,
-0.3034004569,
-0.908631444,
0.0838201866,
-0.4602067173,
0.1457354724,
-0.1305832267,
-0.2854568958,
0.0649591237,
-0.2466891408,
-0.1898801923,
0.3769301772,
-0.121920906,
0.1978493482,
0.2616350949,
-0.1367864013,
0.11488235,
0.6384866238,
0.0748055726,
0.0469585024,
-0.1343823224,
-0.0169119965,
-0.3627626598,
0.017805595,
-0.2566581368,
0.0931973532,
0.2086669952,
-0.0349646397,
-0.0508148484,
0.2315024734,
-0.0677069426,
-0.4613185525,
-0.0208381824,
0.1927845776,
-0.2391491532,
-0.1979089528,
-0.7866966128,
0.0266454741,
-0.0650697574,
0.0931717157,
0.029347565,
0.3400613666,
-0.4002760053,
-0.0747639388,
0.3850582242,
-0.1993654221,
0.2121277153,
0.4944163859,
-0.032592915,
-0.1524091512,
0.6422563195,
0.2634298205,
0.094071731,
-0.2485849708,
0.012641158,
-0.1036127657,
-0.1308942288,
0.1215969473,
0.1789045185,
0.1579004675,
-0.0204343665,
0.1472368389,
0.0738911033,
0.2489591837,
0.1935804933,
-0.5574480891,
-0.1018659323,
0.2492240369,
-0.081152834,
0.0217871871,
0.2138767838,
-0.0820288807,
0.173328355,
0.0159260351,
-0.228491351,
0.1480923891,
-0.3470258415,
0.2211473286,
0.1807356328,
-0.1060178727,
0.074499391,
0.0298024621,
0.0348678082,
-0.0661128312,
-0.1237299591,
-0.1322526932,
-0.032661017,
0.1824913025,
0.1036964729,
0.0389148295,
-0.1862689704,
-0.3422492445,
-0.0194666814,
-0.056546472,
-0.151776433,
0.0580177046,
-0.0086301481,
0.3131301701,
0.1051792055,
0.0541064218,
-0.1583130807,
0.1678387225,
-0.3720066845,
0.0594945811,
0.0716726631,
0.2414960265,
0.14206779,
0.0604033694,
-0.5040301085,
0.0365192741,
-0.0073997807,
0.06856177,
0.1255647838,
-0.4524101317,
0.1612500101,
0.0501008704,
0.1488491595,
0.3014202118,
-0.2984202206,
0.3430102468,
0.0157612003,
0.0933739096,
-0.1277239323,
0.0259065069,
0.5305548906,
0.0562078319,
-0.2049935758,
0.3098513186,
-0.1405714005,
-0.1258148253,
0.1287854165,
-0.1223196909,
0.4390668869,
-0.3158113956,
0.0028658849,
0.0072847935,
-0.1066027582,
-0.15239501,
0.0978690684,
0.1274055988,
0.1369557381,
0.1636432856,
-0.3774886727,
0.0929715782,
0.0766739771,
0.0822269171,
0.1945708245,
-0.3949973285,
-0.161449194,
0.4666150808,
0.1839626282,
0.0209640916,
-0.2303617001,
0.4584296644,
-0.3903161585,
-0.1258837432,
-0.2265263647,
0.3225131631,
-0.1883449703,
-0.0933866724,
-0.5020492673,
-0.0742424354,
-0.0915478617,
-0.1035262793,
-0.1040729955,
-0.2166131586,
0.0948217213,
0.1172206998,
-0.0321894474,
-0.5349882245,
0.0956760719,
0.4124473631,
-0.1561528295,
-0.241969347,
0.371527344,
-0.1406008154,
-0.0175677706,
0.2602106035,
0.2587350309,
0.3944674134,
0.4811036885,
0.1643832028,
0.0550994612,
-0.1380097568,
-0.1544768512,
-0.1036758423,
0.12912485,
0.139802292,
0.2022049576,
0.0663728267,
0.1531265229,
0.0224310793,
0.2971621752,
0.0227454994,
-0.0627916455,
-0.2193394154,
0.486558646,
-0.1630717665,
-0.1093453765,
-0.3018389642,
0.1257063746,
-0.3252588511,
-0.0098168133,
0.2018198073,
0.3219430745,
0.2425887734,
-0.0543665439,
0.0230506081,
-0.1263327152,
0.3122853339,
0.2782084048,
0.0961903483,
-0.2718765736,
0.0222721752,
-0.6221783161,
-0.066112265,
-0.0654822439,
-0.25002262,
0.1446912438,
0.3395777941,
0.0061547961,
0.2411966175,
-0.1994547993,
0.1943538487,
-0.023931399,
-0.009554686,
-0.3606645465,
-0.183572486,
0.1819235533,
0.3209444582,
0.0230580941,
-0.2056954801,
-0.0616285503,
0.0127899582,
-0.0675777197,
-0.2296618223,
0.0187322591,
-0.1072267145,
0.3282792866,
-0.1081200764,
0.0464640521,
0.434011966,
0.0673875138,
-0.0733739957,
-0.0713889971,
-0.3200550377,
-0.2393112928,
0.2040488124,
-0.0679472089,
0.4824780524,
-0.4668584764,
0.3478714824,
-0.3590072691,
0.1477559358,
-0.2117474675,
-0.0926743001,
-0.2156459689,
0.2352146804,
-0.2525527775,
0.3473978937,
-0.0045703612,
0.0855999812,
0.0493664406,
0.1745087504,
-0.2338331938,
0.0256591793,
0.5776779056,
-0.4646984339,
-0.2673560083,
0.1539917439,
0.2269408852,
-0.0230029896,
-0.2422229946,
-0.3909176588,
-0.195015952,
0.4414579272,
-0.1283147335,
-0.2740134895,
0.1108238921,
-0.1983670741,
-0.0869558603,
-0.0698458552,
0.0026228041,
0.1056979597,
-0.3569950163,
-0.0054750144,
-0.4018362463
] |
https://github.com/huggingface/datasets/issues/157 | nlp.load_dataset() gives "TypeError: list_() takes exactly one argument (2 given)" | It seems like your download was corrupted :-/ Can you run the following command:
```
rm -r /root/.cache/huggingface/datasets
```
to delete the cache completely and rerun the download? | I'm trying to load datasets from nlp but there seems to have error saying
"TypeError: list_() takes exactly one argument (2 given)"
gist can be found here
https://gist.github.com/saahiluppal/c4b878f330b10b9ab9762bc0776c0a6a | 28 | nlp.load_dataset() gives "TypeError: list_() takes exactly one argument (2 given)"
I'm trying to load datasets from nlp but there seems to have error saying
"TypeError: list_() takes exactly one argument (2 given)"
gist can be found here
https://gist.github.com/saahiluppal/c4b878f330b10b9ab9762bc0776c0a6a
It seems like your download was corrupted :-/ Can you run the following command:
```
rm -r /root/.cache/huggingface/datasets
```
to delete the cache completely and rerun the download? | [
-0.1208355278,
-0.0351682156,
-0.0817960426,
0.5541926026,
0.3025416136,
0.1315353066,
0.0039046146,
0.139386341,
0.2804363072,
-0.1001442075,
-0.1951358318,
0.3699631393,
-0.1204649135,
0.0582581647,
0.3326440156,
-0.4019226134,
-0.1763339192,
0.2947905064,
-0.1826589853,
-0.0056842184,
-0.0904861391,
0.4338552058,
-0.18452245,
0.1346083581,
0.0080533531,
-0.1875056475,
-0.1384479553,
0.4052765667,
-0.207611993,
-0.4997510016,
0.3896076083,
-0.0273204464,
0.2414441705,
0.1131717637,
-0.0001096911,
-0.0584163778,
0.4368597865,
-0.0966123119,
-0.3577699363,
-0.2647202909,
-0.1929220408,
-0.3505917192,
0.3675932288,
-0.2010155171,
-0.0211333726,
-0.0550004467,
0.186433956,
0.1668652594,
0.4770370722,
0.2255970985,
0.2994115055,
0.3363184333,
0.0674541369,
-0.2147986442,
0.0665508211,
0.0725698173,
0.0687305629,
0.1771293133,
0.0832875445,
-0.0365008041,
0.2348443419,
0.1266147047,
-0.085246928,
0.1088962704,
0.2413451225,
-0.1036853716,
-0.1445188522,
-0.0758874491,
-0.0830596983,
0.1832684726,
0.4341345429,
0.018446248,
-0.1963404715,
-0.1812434345,
0.1584369391,
-0.3754580021,
0.2296155691,
0.186671868,
-0.1867708564,
0.0540544093,
-0.2525216639,
-0.2835461199,
-0.0359017439,
0.3337019682,
0.1003298536,
0.1187488958,
-0.1964883208,
0.1338863373,
0.3819937408,
-0.0455959924,
-0.2346820831,
-0.0478042401,
-0.1841405779,
0.1175480187,
-0.3242126405,
0.1278136969,
-0.006495527,
0.3758376241,
0.163310051,
0.1040659174,
0.1301358789,
0.0321312435,
-0.2173243463,
0.0430439413,
0.4068354964,
0.1638967991,
0.2254478037,
0.0350730717,
-0.0719181672,
0.02266616,
0.2335493863,
0.0246644691,
-0.1768237501,
-0.0131371664,
-0.1947173923,
-0.1669891477,
0.1918571442,
-0.3178799748,
-0.2259162515,
-0.1674317569,
-0.1062627509,
-0.1299867034,
0.1750202477,
0.43891868,
-0.1331014931,
0.2702861428,
0.1546385288,
0.2108222246,
-0.0719086602,
-0.3060036004,
-0.230670467,
-0.0228262525,
-0.2533996999,
-0.03094762,
0.3860831261,
-0.1861059964,
0.5473424792,
0.0135181248,
-0.1677366346,
0.0134683968,
-0.0357145518,
0.0495147556,
-0.3188313544,
0.1386565864,
0.243767187,
0.1978787929,
0.2121308297,
-0.1395171881,
-0.0113405399,
0.0430388339,
-0.2953133583,
-0.1464066505,
-0.0801674798,
0.2135620862,
-0.1552681178,
-0.1995833218,
-0.4402095377,
0.0507311411,
0.1212090552,
-0.2245113105,
-0.2888995707,
-0.124313958,
-0.1727030575,
-0.1074629575,
0.013030245,
0.3030003905,
-0.1179321632,
-0.2333220989,
-0.0909878016,
-0.1433811635,
0.0395837538,
0.5990227461,
-0.4720256031,
0.2032818645,
-0.2796132565,
0.3399637341,
0.5836387277,
-0.0662523136,
-0.3358997405,
0.2273444086,
-0.000816834,
-0.013431252,
-0.0993625596,
0.1922671944,
0.0965106487,
0.0118185366,
0.1164099947,
0.3620452583,
0.0287523884,
0.1049308032,
-0.1732212901,
-0.1945457309,
0.3117158711,
0.0709671825,
-0.093404755,
0.3505007327,
-0.011489437,
0.3573692441,
0.4544577897,
-0.087701343,
-0.1222723424,
0.5004969835,
-0.1453570724,
0.0492666028,
-0.1668964326,
-0.0882610679,
-0.5441408753,
0.0593110621,
-0.1901807487,
0.0315847397,
0.0135775572,
0.0000584367,
-0.2903511524,
-0.043009188,
-0.0104002012,
-0.0132164983,
0.1037644073,
0.3401204646,
0.0623904727,
-0.1085372046,
-0.1861582249,
0.3082203567,
-0.0766591057,
0.0399836451,
-0.5488077998,
0.243040815,
-0.1460765898,
-0.1844440401,
0.3218103945,
-0.0020528066,
0.2478423268,
-0.141149193,
-0.0050200415,
0.2052923292,
-0.2015741765,
0.0224539563,
0.0889199823,
-0.2364064008,
0.1708908826,
-0.3033137619,
-0.0202923268,
0.0921813324,
0.2264540046,
-0.1342035681,
-0.1724210382,
0.1043650135,
-0.0441480577,
0.1301496178,
0.0137394136,
0.1632827371,
0.4534033835,
-0.0649587363,
-0.0343798175,
0.0723703355,
0.4089069068,
0.1714711636,
0.1922942549,
0.0571836233,
-0.4705584645,
-0.0130071323,
0.3720383644,
0.0831543207,
0.0520667545,
0.1183372512,
-0.0280828066,
-0.1841572821,
0.1566454619,
-0.0922178328,
0.438511014,
0.2807064652,
0.0212004241,
0.0197022762,
-0.1619891673,
-0.2165618986,
0.0882185772,
-0.1398130059,
0.1459081322,
0.026874749,
0.0015686316,
-0.1073059216,
-0.5094414353,
-0.0787741095,
0.1528923064,
0.4604257643,
-0.3448977768,
0.0262952708,
-0.4339520037,
-0.5732688308,
0.0247577205,
-0.2075876594,
-0.3741030991,
-0.3285753727,
-0.2151392549,
0.3307509422,
0.1884201616,
0.2206444293,
-0.0567402989,
0.2805196643,
0.0792723298,
0.1388974339,
-0.2551282346,
-0.030623557,
-0.3055673838,
0.0591913462,
0.29569906,
0.1850126982,
0.2659868896,
-0.2459716499,
-0.112766318,
-0.2350989729,
0.0023600028,
0.05533126,
-0.013286069,
0.2023049444,
0.2612723708,
0.3959534168,
-0.1890042275,
-0.1414330304,
0.35291031,
-0.0753988102,
-0.1788627654,
0.0558836721,
0.0728590935,
-0.1878104806,
-0.3019119501,
-0.2071999311,
-0.1801959425,
-0.3855597377,
0.2631174326,
0.3475292921,
0.1531835794,
0.404158473,
-0.1057728902,
0.2807364464,
-0.1813133508,
0.1571632922,
-0.3872302473,
-0.1783456653,
0.1482325345,
-0.1565334797,
-0.4827792645,
0.0307452083,
0.1828866899,
0.2376767695,
0.053713277,
-0.4516233206,
-0.2450684309,
-0.0631423146,
-0.0250610616,
-0.1559392959,
0.1497789323,
0.2201609015,
-0.2043899298,
0.0002100862,
-0.0150727052,
-0.4173907936,
0.22318995,
-0.041219335,
0.3961805105,
-0.0561774932,
0.3297180831,
0.0454108566,
0.3947472572,
0.249212116,
-0.0296318308,
0.4718223214,
-0.0854206458,
0.403655827,
0.0172219109,
-0.3875498176,
-0.0199888553,
0.0398942828,
0.1378876418,
0.3058997393,
-0.0331908315,
-0.2092963457,
-0.1294095218,
0.1402889788,
-0.2421464771,
-0.0437905565,
0.0807233974,
-0.0373136401,
-0.0279167946,
0.1074751467,
0.0142164901,
-0.2243620157,
-0.2369500101,
-0.0941367,
0.1967789084,
0.0384114571,
0.1247632951,
-0.4978687167,
-0.0171324369,
-0.4774364233,
0.2559387982,
-0.0917933434,
0.5045906901,
-0.1847157031,
0.1850710064,
0.1968223453,
-0.0239256974,
0.7373420596,
0.0003914972,
0.043962162,
0.1132061407,
0.1021773741,
-0.3814079762,
0.0360467136,
-0.2373387814,
0.3178756535,
0.2889142036,
0.3312783241,
-0.4328977168,
-0.2238559127,
0.0705871955,
0.176756978,
-0.3416847885,
-0.1191544458,
-0.2778839469,
-0.4018355012,
-0.2972093821,
-0.1775013655,
-0.1243702993,
0.2542222738,
0.1983021349,
0.1885096878,
-0.20700109,
-0.0196103286,
0.0393004119,
0.0126310755,
0.3488481343,
0.2138464749,
-0.1760131121,
-0.0298917945,
0.3170619905,
-0.3836455941,
0.6565622091,
-0.2302845567,
-0.0801246986,
-0.0019895544,
-0.0588681549,
0.1196516156,
0.2835907638,
0.0258419756,
0.0661929175,
0.1482641697,
0.0225746669,
0.0024656015,
0.1120656505,
0.4678329527,
-0.0864168182,
-0.2367181033,
-0.4672760963,
0.3942330778,
0.0626980886,
-0.0873976201,
0.2672942281,
-0.0925361887,
-0.2375617772,
0.0946522206,
-0.2230309397,
0.7779070735,
-0.2666207552,
0.2676978409,
0.4656258225,
0.1332097352,
0.7914780974,
0.3020035923,
0.0558271594,
-0.3450185955,
-0.0534347929,
0.0034794749,
-0.0830920041,
-0.0145150488,
0.2470210791,
-0.220286876,
0.3266398013,
0.0761024207,
-0.0174219441,
0.1612613052,
0.4570520818,
0.0335234255,
-0.2320163548,
-0.8258488178,
0.2221598476,
-0.4772250652,
0.2146330327,
-0.2210186422,
-0.2377545983,
0.1717685014,
-0.2165990472,
-0.2919356823,
0.3305376172,
-0.0632525459,
0.1522875428,
0.1296485066,
-0.1401221603,
-0.0292425323,
0.3727945387,
0.1012074649,
0.0817441642,
-0.2231075317,
0.0493483432,
-0.4282253981,
-0.1093116328,
-0.1711355001,
0.1482421458,
0.1803589314,
-0.166981563,
-0.0889637545,
0.0634899512,
-0.0151437465,
-0.4146519899,
0.0380001366,
0.0872357637,
-0.2390990555,
-0.0853254721,
-0.5879573822,
0.1076949611,
0.1023370102,
-0.1085283682,
0.1018531844,
0.3348301947,
-0.2579450905,
-0.070914723,
0.3010924459,
-0.1090119481,
0.0297327023,
0.5251570344,
-0.0630111992,
-0.266700983,
0.4769777358,
0.3307656348,
-0.0190022159,
-0.2211192399,
-0.2141518146,
-0.2117605358,
-0.2999357283,
0.1025581956,
0.0196148921,
0.12861,
-0.0449617244,
0.3471592367,
0.1963783056,
0.0761310756,
0.1904609203,
-0.5562462211,
-0.2069183737,
0.1641504765,
-0.0187876336,
0.1562842578,
0.251200527,
-0.0482754819,
0.2054538727,
0.004539906,
-0.3312322199,
0.1287466288,
-0.3835961819,
0.1300289482,
0.2317961901,
-0.1469204128,
0.080026485,
-0.1164826527,
0.1197988316,
0.0081297792,
-0.1924992353,
-0.2152574509,
-0.1304068416,
0.0840822831,
-0.0064272559,
-0.1149518043,
-0.0763693228,
-0.2749095857,
0.1007034853,
-0.0419500805,
-0.0774717852,
0.0395101644,
0.0204046089,
0.197564587,
0.1334066391,
-0.0004854994,
-0.1075719893,
0.188592881,
-0.264146477,
-0.0612764768,
0.0023728099,
0.2145814449,
0.1448700726,
-0.0705882087,
-0.2833714783,
0.0135017987,
0.0492413715,
0.1117857471,
0.2707843781,
-0.4229504764,
0.1147242934,
0.1553975046,
0.3200045526,
0.3243109584,
-0.1496699005,
0.2079667896,
0.109929651,
0.2093259394,
-0.2810995281,
-0.0381192081,
0.3883262873,
0.1568455547,
-0.1864842325,
0.1853398383,
0.021762874,
-0.1800821424,
0.0756687745,
-0.0604211017,
0.4124303758,
-0.1338834316,
0.0184359141,
0.0800000876,
-0.0961671174,
-0.1573922187,
0.0937552899,
0.1930657923,
0.0726384521,
0.3452226818,
-0.3517150879,
0.1164212301,
-0.1140094101,
0.1874356866,
0.0615846813,
-0.4589630961,
-0.0249234866,
0.4139130414,
0.0952370986,
0.1886270791,
-0.1540615559,
0.4811898172,
-0.3659301698,
-0.3362007439,
-0.2584641874,
0.4400590956,
-0.2293965966,
-0.1707069725,
-0.4461741447,
-0.0980625376,
-0.1007106677,
0.0837694183,
-0.1396285892,
-0.1747599244,
0.2323825955,
0.0708608702,
-0.0887763128,
-0.7703481317,
-0.134193033,
0.2694258988,
-0.1755431443,
-0.1846482456,
0.3699840307,
0.0142257186,
-0.0626869574,
0.1248960197,
0.363232553,
0.3218102455,
0.2891966403,
0.2349754125,
0.011954437,
-0.0369721837,
-0.0304123554,
-0.2882828712,
0.2068493068,
0.2686159015,
0.2998312712,
0.1915787011,
0.2024134994,
-0.1214675531,
0.2347263843,
-0.0972413048,
0.036797367,
-0.1842852682,
0.5213072896,
-0.2212005407,
-0.0775655583,
-0.236041829,
0.0832678825,
-0.402127564,
0.1651916355,
0.2254086882,
0.1096487641,
0.2508279085,
-0.1404031515,
0.0821206048,
-0.0586433485,
0.5475358963,
0.4613281786,
0.3466025591,
-0.191983819,
-0.1506364644,
-0.8086352944,
0.045587521,
-0.0774509683,
-0.1368841827,
0.103300266,
0.1629897654,
0.0158610176,
0.2504563332,
-0.123707816,
0.2035198808,
0.0803961903,
-0.109362416,
-0.3904360831,
-0.0249691661,
0.1333875209,
0.1654972732,
-0.0090694586,
-0.201831907,
0.1789036095,
-0.0910186246,
0.0404825918,
-0.1891563982,
0.0775700361,
-0.1938130409,
0.1029356867,
-0.0825138912,
0.2240862995,
0.4087133408,
0.0647914708,
-0.1705444604,
-0.2324150652,
-0.4169976711,
-0.1590774506,
0.0975552946,
-0.0611255988,
0.4269742966,
-0.2808959782,
0.399900198,
-0.3593807817,
0.2727791071,
-0.0009126327,
0.1102971956,
-0.3232365847,
0.1900504231,
-0.2084138244,
0.0575464927,
0.1520988047,
0.2662846744,
0.1349394023,
0.1428111196,
-0.2719805539,
-0.0622666031,
0.6023272276,
-0.3892843127,
-0.2362945676,
0.1108534411,
0.1529451609,
0.084986411,
-0.3550406396,
-0.5108582377,
-0.0798035935,
0.2991114259,
-0.2087139785,
-0.2410827875,
0.2545332313,
-0.2331950665,
-0.0458343513,
-0.0497136936,
0.2441420406,
0.2074668258,
-0.4690232873,
0.12182872,
-0.2944376767
] |
https://github.com/huggingface/datasets/issues/156 | SyntaxError with WMT datasets | Jeez - don't know what happened there :D Should be fixed now!
Thanks a lot for reporting this @tomhosking ! | The following snippet produces a syntax error:
```
import nlp
dataset = nlp.load_dataset('wmt14')
print(dataset['train'][0])
```
```
Traceback (most recent call last):
File "/home/tom/.local/lib/python3.6/site-packages/IPython/core/interactiveshell.py", line 3326, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "<ipython-input-8-3206959998b9>", line 3, in <module>
dataset = nlp.load_dataset('wmt14')
File "/home/tom/.local/lib/python3.6/site-packages/nlp/load.py", line 505, in load_dataset
builder_cls = import_main_class(module_path, dataset=True)
File "/home/tom/.local/lib/python3.6/site-packages/nlp/load.py", line 56, in import_main_class
module = importlib.import_module(module_path)
File "/usr/lib/python3.6/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 994, in _gcd_import
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 678, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/home/tom/.local/lib/python3.6/site-packages/nlp/datasets/wmt14/c258d646f4f5870b0245f783b7aa0af85c7117e06aacf1e0340bd81935094de2/wmt14.py", line 21, in <module>
from .wmt_utils import Wmt, WmtConfig
File "/home/tom/.local/lib/python3.6/site-packages/nlp/datasets/wmt14/c258d646f4f5870b0245f783b7aa0af85c7117e06aacf1e0340bd81935094de2/wmt_utils.py", line 659
<<<<<<< HEAD
^
SyntaxError: invalid syntax
```
Python version:
`3.6.9 (default, Apr 18 2020, 01:56:04) [GCC 8.4.0]`
Running on Ubuntu 18.04, via a Jupyter notebook | 20 | SyntaxError with WMT datasets
The following snippet produces a syntax error:
```
import nlp
dataset = nlp.load_dataset('wmt14')
print(dataset['train'][0])
```
```
Traceback (most recent call last):
File "/home/tom/.local/lib/python3.6/site-packages/IPython/core/interactiveshell.py", line 3326, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "<ipython-input-8-3206959998b9>", line 3, in <module>
dataset = nlp.load_dataset('wmt14')
File "/home/tom/.local/lib/python3.6/site-packages/nlp/load.py", line 505, in load_dataset
builder_cls = import_main_class(module_path, dataset=True)
File "/home/tom/.local/lib/python3.6/site-packages/nlp/load.py", line 56, in import_main_class
module = importlib.import_module(module_path)
File "/usr/lib/python3.6/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 994, in _gcd_import
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 678, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/home/tom/.local/lib/python3.6/site-packages/nlp/datasets/wmt14/c258d646f4f5870b0245f783b7aa0af85c7117e06aacf1e0340bd81935094de2/wmt14.py", line 21, in <module>
from .wmt_utils import Wmt, WmtConfig
File "/home/tom/.local/lib/python3.6/site-packages/nlp/datasets/wmt14/c258d646f4f5870b0245f783b7aa0af85c7117e06aacf1e0340bd81935094de2/wmt_utils.py", line 659
<<<<<<< HEAD
^
SyntaxError: invalid syntax
```
Python version:
`3.6.9 (default, Apr 18 2020, 01:56:04) [GCC 8.4.0]`
Running on Ubuntu 18.04, via a Jupyter notebook
Jeez - don't know what happened there :D Should be fixed now!
Thanks a lot for reporting this @tomhosking ! | [
-0.3297367394,
0.0324436054,
-0.0193531327,
0.0127458628,
0.2164736986,
-0.014922413,
0.3609465659,
0.5264437795,
0.1301546246,
-0.1121619493,
0.0932864547,
0.4350024164,
-0.3767535388,
0.1414317042,
0.1508706957,
-0.1754978597,
-0.0268027131,
0.1413965076,
-0.358635813,
0.1519567966,
-0.2946049273,
0.1583639681,
-0.4209617376,
0.2173395157,
-0.2542879283,
-0.0902358443,
-0.0211465582,
0.1449499279,
-0.1394592673,
-0.4628490806,
0.1408033073,
-0.0065227915,
0.2389949858,
0.3692950308,
-0.0001028357,
-0.0074910582,
0.1617365777,
-0.0390186757,
-0.3923015893,
-0.3421504796,
-0.4517920911,
-0.1481354982,
0.1438383758,
-0.2942017317,
0.0407955982,
-0.1019725502,
0.0120903281,
-0.2335638106,
0.5227857232,
0.4709783792,
0.2622492909,
0.4046526253,
-0.0788423568,
-0.1995572448,
0.0400842987,
0.1868067682,
-0.0251020659,
0.2721500099,
-0.0462757237,
-0.3078270555,
0.0443686098,
0.2844173908,
-0.0971550196,
0.2046326101,
0.228813231,
0.0462169684,
0.1737396717,
0.0146226287,
-0.1336926073,
0.1116889268,
0.376653403,
-0.334050864,
-0.1922970116,
-0.0254197773,
-0.0237152409,
-0.3796637058,
0.173744902,
0.2510082424,
-0.2430956215,
0.2042773515,
-0.2803638875,
0.0721920282,
-0.0495337285,
0.2802929282,
-0.0419158079,
0.728919208,
-0.15155527,
0.0830517635,
-0.0326684229,
-0.1897673905,
0.1182418168,
-0.0233936664,
-0.0012604583,
0.1437295973,
-0.069619447,
-0.0688927323,
0.281044811,
-0.0273934454,
-0.2340155691,
0.0267738793,
0.181695357,
-0.1459487677,
0.1988346428,
0.1966278106,
0.2838437557,
-0.0644871891,
0.0399040952,
-0.0328312181,
0.2843933403,
0.2534205914,
-0.0275104083,
0.047552947,
-0.1733618379,
-0.468991369,
-0.0253391583,
0.0136440163,
0.5950093865,
0.1803967655,
-0.2701009214,
-0.0289221071,
-0.2787002027,
-0.3027985394,
-0.0676976964,
0.2093277574,
0.121819824,
-0.1600494832,
0.3483575881,
0.0752086714,
-0.2440334111,
-0.1647191495,
-0.2930479944,
0.3408953547,
-0.3188332617,
-0.1684278548,
0.2188080549,
0.2253616303,
0.0922133476,
0.0471642986,
-0.0809150562,
-0.1988426,
0.1389290541,
-0.0077621276,
0.1081167683,
0.1051956564,
-0.1785956025,
0.0933399424,
0.2775602639,
-0.1004937813,
-0.0483995713,
0.2007461637,
-0.0364868008,
-0.0897132829,
-0.1614138186,
0.28895998,
-0.1801723242,
-0.0983837098,
0.0543796048,
0.0768854022,
0.255202651,
-0.087790668,
0.0312969089,
-0.3928903639,
-0.2555432022,
-0.1649034023,
0.1820679009,
0.4742362201,
-0.4417521358,
-0.194307059,
-0.1998417526,
-0.1128744408,
0.1960723698,
0.1654728353,
-0.1848081648,
0.6032978296,
-0.1668523103,
0.1821197718,
0.4813291132,
-0.2698023915,
0.1708315611,
0.0655023381,
-0.2529612482,
0.076276429,
-0.0907962844,
-0.0454186834,
-0.0019625914,
-0.0203297753,
0.3685541749,
0.257096529,
-0.0868278295,
-0.0704207122,
0.02580221,
0.0281275027,
0.5934321284,
0.0462835468,
-0.0008243832,
-0.2142315358,
0.0578707531,
0.4939415753,
0.2460768223,
-0.0577070378,
-0.0333488211,
-0.0137070911,
0.0170148574,
-0.1148450002,
-0.3352915347,
-0.2411741614,
-0.2232070863,
-0.109365277,
0.0478309654,
0.3630457222,
-0.1524046808,
0.2927410007,
-0.2438348383,
0.0848260522,
-0.2252931744,
-0.2423848957,
0.2631047964,
0.0465613455,
-0.2522634566,
-0.1086916327,
-0.0686345845,
-0.080072023,
0.0088360868,
0.0938630328,
-0.1322341859,
0.1556386352,
-0.2579878271,
-0.3206019402,
0.1305003464,
0.2569968104,
0.1654369831,
-0.0436953194,
-0.2140457928,
0.2780264914,
0.1649136394,
-0.0692976192,
-0.2854146957,
-0.0294153709,
-0.0743026882,
-0.1602806747,
0.1651480347,
0.1794784814,
0.1970851123,
-0.1973394305,
-0.2075013071,
0.1806470752,
-0.0234829001,
0.0752801374,
0.148913458,
0.1009815559,
0.1457810402,
0.0210331939,
0.0285008941,
-0.2971126735,
0.1780159026,
-0.0241098478,
-0.1505931169,
-0.0727761313,
-0.1188312247,
-0.105658181,
0.5293697715,
0.2276985645,
0.224109441,
-0.2177880257,
-0.2621046901,
-0.0811997801,
0.0782552212,
0.0705174431,
0.4799799919,
0.1782224923,
-0.0041788649,
0.1772152781,
-0.0156669095,
-0.2165575475,
0.2168711722,
0.1818332076,
0.0331382267,
-0.0351119861,
0.0385486186,
0.0851171836,
-0.1735183746,
-0.2818621397,
-0.0842829943,
0.1642438173,
-0.3306984305,
0.0497130342,
-0.4721487164,
-0.3931069374,
-0.4514599144,
-0.3841333985,
-0.1739956439,
-0.4288797677,
-0.1867689788,
-0.0351117216,
-0.2173171341,
0.3002479374,
-0.1404795349,
-0.0482546836,
0.1101875231,
0.066379264,
0.0988492742,
-0.2670577168,
-0.1530420631,
0.1411230862,
0.3205444813,
0.1450355947,
0.3701428771,
-0.0794280618,
0.0111536346,
0.0473324023,
-0.3408439457,
0.1160992384,
-0.100981988,
0.2626492977,
0.4324876666,
0.3414854109,
0.0838389695,
-0.2842499912,
0.4270728827,
-0.0637359396,
0.0510102436,
0.0498755984,
0.1940961629,
-0.1479693204,
-0.3029946983,
-0.4622399211,
-0.3657281995,
-0.4703691304,
-0.1216415539,
0.1440427154,
0.1319938749,
0.4903209507,
-0.0182415005,
0.3564137518,
-0.0871035382,
-0.0005424811,
0.0735501051,
0.0614892542,
0.2821261585,
-0.3124623597,
-0.1920034885,
0.0803079009,
0.035807021,
0.2169489264,
-0.171344623,
-0.2317764163,
0.1126878113,
-0.1056706011,
0.1334697455,
0.0481276214,
0.1015140116,
0.1759225279,
0.2410975099,
-0.2015780061,
-0.3006727099,
-0.346781373,
0.0994992554,
0.1069888771,
0.1258558333,
-0.101753071,
0.1422886848,
0.1000690684,
0.3848870993,
0.0874496549,
-0.1828736067,
0.3111948669,
0.0411569625,
0.3453079462,
-0.0618222877,
-0.3201504648,
0.2449907809,
-0.058773987,
0.1667981297,
0.2006138265,
-0.1382380128,
0.0803108811,
-0.2032090873,
-0.0921044946,
-0.0643966049,
-0.4186587334,
0.1118847057,
0.0074185291,
0.1880874336,
0.2058226466,
0.0365456119,
-0.1949252337,
0.0036354484,
-0.0097368266,
0.2998480201,
0.0105653005,
0.1356201321,
-0.1349021047,
-0.0225579794,
-0.3069859445,
0.1838999093,
0.2323765159,
0.4915711582,
-0.0271856785,
-0.1784803718,
-0.2188407332,
0.0941774026,
0.1146479771,
-0.1356559545,
0.1829946041,
0.457182318,
0.0663696527,
-0.2134141177,
-0.172186926,
-0.5033165216,
0.1326623708,
0.4361286163,
0.0677455887,
-0.0008685674,
-0.3626331985,
0.4444147944,
0.1816578954,
-0.1891020983,
-0.2773979306,
-0.0000777667,
-0.071603179,
-0.3365021348,
0.044152271,
0.0950582325,
0.1696864069,
0.2260650545,
0.0341114029,
0.1553544998,
0.0793136284,
0.1081612185,
0.1017454118,
-0.0415178351,
0.1275672466,
0.041358389,
-0.1016532928,
0.1490106881,
0.2546506822,
0.3937420845,
-0.1238747835,
-0.1940543354,
-0.1644194424,
0.0299258828,
0.3551035225,
0.0970902592,
-0.0819734186,
0.1334189773,
0.0647360757,
0.1381147206,
-0.2426777333,
0.2743782103,
0.2958749533,
0.1709006578,
-0.3747495711,
-0.3495922685,
-0.0297986921,
-0.0531898402,
0.1575483978,
0.1404523253,
-0.06189619,
-0.3537501693,
-0.0751760751,
-0.009429642,
0.5648846626,
0.1630989909,
0.2897146344,
0.4404498637,
-0.0870267376,
0.4734365344,
0.1777279377,
0.0051306565,
-0.2467222512,
0.1247944832,
0.0227171164,
-0.1888539791,
0.2077723444,
0.137724191,
-0.2474352717,
0.2713086605,
-0.0384191722,
0.2527680099,
0.0651764944,
0.0909023434,
0.3361057639,
-0.1986483783,
-0.409568876,
0.2058807313,
-0.4133999646,
0.0716985464,
-0.2496191561,
-0.3231572211,
0.159161523,
-0.250703305,
-0.2010602355,
0.177694425,
-0.2587881684,
0.2284643203,
0.0260749441,
-0.0663727522,
0.4716355801,
-0.1141983345,
-0.1069330126,
0.3006840646,
-0.047139246,
-0.0889479741,
-0.1888509691,
0.009424163,
-0.0697389245,
0.2475737333,
0.5000484586,
-0.1218191311,
-0.036887303,
-0.1750988662,
-0.0812498257,
0.1250167638,
0.0917121768,
0.2032328844,
0.1998405159,
-0.2620665133,
-0.2598941922,
-0.0320798904,
-0.177294299,
-0.2796156704,
0.2072874904,
0.0089061009,
-0.0291703772,
0.2409034222,
0.0525549017,
-0.1873457879,
-0.0364573188,
0.1764350384,
-0.17674613,
-0.0665929019,
0.5022161603,
0.4060558081,
-0.2406094968,
-0.3803833723,
0.1318948269,
-0.0628112927,
-0.2885807455,
0.3547706902,
0.1688402444,
0.3007947206,
0.0165440552,
0.3438565433,
0.0157204289,
-0.0099179689,
0.1101289615,
-0.3858225942,
-0.182272777,
0.0273887832,
-0.3424879313,
0.0165283997,
0.173354134,
0.6295425296,
0.1122878864,
0.0537230559,
-0.4009521008,
-0.1003774256,
-0.0929585248,
0.2274134904,
0.4283627868,
-0.1619133502,
-0.0227418132,
0.0861175731,
0.1760026515,
0.0346552618,
-0.2526119947,
-0.3148130476,
-0.2940257192,
0.0661310852,
0.1720107347,
-0.4291431904,
0.3799622059,
0.0724910498,
-0.0009614315,
-0.3068477511,
-0.1781095862,
0.089336738,
-0.1307529062,
0.3698423803,
0.1245564297,
0.1172237247,
0.175313279,
0.0280542057,
0.122926496,
0.109699443,
-0.0064219679,
0.1405477077,
0.0346084349,
-0.0513196252,
-0.1968660057,
0.0078801531,
0.0852089077,
0.2760113776,
0.1000635847,
-0.4387732446,
-0.1408095509,
-0.1907572299,
0.3313596547,
0.4964479506,
-0.2855861485,
-0.0179454796,
0.1170453802,
0.2279495895,
-0.431779623,
0.0991012901,
0.4069513977,
0.0616519861,
0.0558138005,
0.16057688,
-0.1963248998,
-0.0263520349,
-0.2005508393,
-0.0155230453,
-0.0812871903,
-0.2450971305,
0.1379801631,
0.2535308301,
-0.1621551067,
0.0723397806,
0.2234296799,
0.2248424888,
0.2094133198,
0.4411477745,
-0.0880136117,
0.033532314,
0.3215837479,
-0.1977277994,
0.0530195385,
-0.4163440466,
-0.2213224918,
0.0046017999,
0.155584082,
0.0431443453,
-0.030800622,
0.0894240588,
0.0554314926,
-0.0492897108,
0.091109097,
0.1842015088,
-0.175498113,
-0.0029798152,
0.0702132136,
0.1035521701,
-0.1834440678,
-0.2007073909,
-0.0523935705,
0.0233832151,
-0.0611662082,
0.0867938027,
0.1566934884,
-0.550983727,
-0.0985003412,
0.0284028444,
-0.3185493648,
-0.4562837481,
0.0733107179,
0.4109582305,
0.095485121,
-0.1203893647,
-0.007495149,
0.6174409389,
0.4333243668,
-0.0764669627,
-0.1840571016,
-0.2809351981,
-0.046759326,
-0.0322064199,
0.0866957009,
0.1216949373,
0.2625560462,
0.5520275831,
0.1766431481,
-0.1991809905,
0.1269986331,
0.2516283691,
-0.2234729826,
-0.1569372416,
0.2527379096,
-0.0195225347,
-0.1268070042,
-0.28254053,
0.1944850087,
-0.2954166532,
0.1875003427,
0.4098544121,
0.2683025599,
0.1570730805,
-0.1060612425,
0.1378096491,
0.1873126328,
0.5516353846,
0.1906978935,
0.3860895336,
-0.3571791947,
-0.0554284416,
-0.5711799264,
-0.0245897584,
-0.1053962931,
-0.0316515937,
-0.1443446428,
-0.0839930549,
0.0324574858,
0.2593311369,
0.1967315674,
0.1654992551,
0.1051032469,
-0.0875485167,
-0.2856193185,
-0.1786559373,
0.037755698,
-0.1408989429,
0.1282964945,
-0.2223505378,
-0.0397657081,
-0.4887034893,
0.1265329719,
-0.3787435591,
-0.220805347,
0.0734933764,
0.435713321,
0.2232681066,
0.2265579104,
0.5930401087,
-0.0317762457,
-0.0286307782,
-0.3275701106,
-0.2059123963,
-0.1545396,
0.3455996811,
0.0363040566,
0.4889933467,
-0.107165955,
-0.0158568565,
-0.3778455555,
0.1949939132,
-0.3336423635,
0.0198233947,
-0.1027709991,
0.1275239885,
-0.1381614953,
0.1817006767,
0.0611191429,
0.0021517754,
-0.1441735774,
0.2395444065,
-0.3893559873,
-0.4405486882,
0.5200939178,
-0.4261544645,
-0.6753060222,
-0.1937558502,
0.0424240716,
-0.245048359,
-0.1419902146,
-0.4619944096,
0.062090788,
0.2820004523,
-0.0690545663,
-0.2712807059,
0.3742439151,
-0.1549427062,
0.0212924313,
0.0864810497,
0.2581359446,
0.077080667,
-0.2606580257,
-0.2184215486,
-0.2339113504
] |
https://github.com/huggingface/datasets/issues/156 | SyntaxError with WMT datasets | Hi @patrickvonplaten!
I'm now getting the below error:
```
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-28-3206959998b9> in <module>
1 import nlp
2
----> 3 dataset = nlp.load_dataset('wmt14')
4 print(dataset['train'][0])
~/.local/lib/python3.6/site-packages/nlp/load.py in load_dataset(path, name, version, data_dir, data_files, split, cache_dir, download_config, download_mode, ignore_verifications, save_infos, **config_kwargs)
507 # Instantiate the dataset builder
508 builder_instance = builder_cls(
--> 509 cache_dir=cache_dir, name=name, version=version, data_dir=data_dir, data_files=data_files, **config_kwargs,
510 )
511
TypeError: Can't instantiate abstract class Wmt with abstract methods _subsets
```
| The following snippet produces a syntax error:
```
import nlp
dataset = nlp.load_dataset('wmt14')
print(dataset['train'][0])
```
```
Traceback (most recent call last):
File "/home/tom/.local/lib/python3.6/site-packages/IPython/core/interactiveshell.py", line 3326, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "<ipython-input-8-3206959998b9>", line 3, in <module>
dataset = nlp.load_dataset('wmt14')
File "/home/tom/.local/lib/python3.6/site-packages/nlp/load.py", line 505, in load_dataset
builder_cls = import_main_class(module_path, dataset=True)
File "/home/tom/.local/lib/python3.6/site-packages/nlp/load.py", line 56, in import_main_class
module = importlib.import_module(module_path)
File "/usr/lib/python3.6/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 994, in _gcd_import
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 678, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/home/tom/.local/lib/python3.6/site-packages/nlp/datasets/wmt14/c258d646f4f5870b0245f783b7aa0af85c7117e06aacf1e0340bd81935094de2/wmt14.py", line 21, in <module>
from .wmt_utils import Wmt, WmtConfig
File "/home/tom/.local/lib/python3.6/site-packages/nlp/datasets/wmt14/c258d646f4f5870b0245f783b7aa0af85c7117e06aacf1e0340bd81935094de2/wmt_utils.py", line 659
<<<<<<< HEAD
^
SyntaxError: invalid syntax
```
Python version:
`3.6.9 (default, Apr 18 2020, 01:56:04) [GCC 8.4.0]`
Running on Ubuntu 18.04, via a Jupyter notebook | 76 | SyntaxError with WMT datasets
The following snippet produces a syntax error:
```
import nlp
dataset = nlp.load_dataset('wmt14')
print(dataset['train'][0])
```
```
Traceback (most recent call last):
File "/home/tom/.local/lib/python3.6/site-packages/IPython/core/interactiveshell.py", line 3326, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "<ipython-input-8-3206959998b9>", line 3, in <module>
dataset = nlp.load_dataset('wmt14')
File "/home/tom/.local/lib/python3.6/site-packages/nlp/load.py", line 505, in load_dataset
builder_cls = import_main_class(module_path, dataset=True)
File "/home/tom/.local/lib/python3.6/site-packages/nlp/load.py", line 56, in import_main_class
module = importlib.import_module(module_path)
File "/usr/lib/python3.6/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 994, in _gcd_import
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 678, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/home/tom/.local/lib/python3.6/site-packages/nlp/datasets/wmt14/c258d646f4f5870b0245f783b7aa0af85c7117e06aacf1e0340bd81935094de2/wmt14.py", line 21, in <module>
from .wmt_utils import Wmt, WmtConfig
File "/home/tom/.local/lib/python3.6/site-packages/nlp/datasets/wmt14/c258d646f4f5870b0245f783b7aa0af85c7117e06aacf1e0340bd81935094de2/wmt_utils.py", line 659
<<<<<<< HEAD
^
SyntaxError: invalid syntax
```
Python version:
`3.6.9 (default, Apr 18 2020, 01:56:04) [GCC 8.4.0]`
Running on Ubuntu 18.04, via a Jupyter notebook
Hi @patrickvonplaten!
I'm now getting the below error:
```
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-28-3206959998b9> in <module>
1 import nlp
2
----> 3 dataset = nlp.load_dataset('wmt14')
4 print(dataset['train'][0])
~/.local/lib/python3.6/site-packages/nlp/load.py in load_dataset(path, name, version, data_dir, data_files, split, cache_dir, download_config, download_mode, ignore_verifications, save_infos, **config_kwargs)
507 # Instantiate the dataset builder
508 builder_instance = builder_cls(
--> 509 cache_dir=cache_dir, name=name, version=version, data_dir=data_dir, data_files=data_files, **config_kwargs,
510 )
511
TypeError: Can't instantiate abstract class Wmt with abstract methods _subsets
```
| [
-0.3297367394,
0.0324436054,
-0.0193531327,
0.0127458628,
0.2164736986,
-0.014922413,
0.3609465659,
0.5264437795,
0.1301546246,
-0.1121619493,
0.0932864547,
0.4350024164,
-0.3767535388,
0.1414317042,
0.1508706957,
-0.1754978597,
-0.0268027131,
0.1413965076,
-0.358635813,
0.1519567966,
-0.2946049273,
0.1583639681,
-0.4209617376,
0.2173395157,
-0.2542879283,
-0.0902358443,
-0.0211465582,
0.1449499279,
-0.1394592673,
-0.4628490806,
0.1408033073,
-0.0065227915,
0.2389949858,
0.3692950308,
-0.0001028357,
-0.0074910582,
0.1617365777,
-0.0390186757,
-0.3923015893,
-0.3421504796,
-0.4517920911,
-0.1481354982,
0.1438383758,
-0.2942017317,
0.0407955982,
-0.1019725502,
0.0120903281,
-0.2335638106,
0.5227857232,
0.4709783792,
0.2622492909,
0.4046526253,
-0.0788423568,
-0.1995572448,
0.0400842987,
0.1868067682,
-0.0251020659,
0.2721500099,
-0.0462757237,
-0.3078270555,
0.0443686098,
0.2844173908,
-0.0971550196,
0.2046326101,
0.228813231,
0.0462169684,
0.1737396717,
0.0146226287,
-0.1336926073,
0.1116889268,
0.376653403,
-0.334050864,
-0.1922970116,
-0.0254197773,
-0.0237152409,
-0.3796637058,
0.173744902,
0.2510082424,
-0.2430956215,
0.2042773515,
-0.2803638875,
0.0721920282,
-0.0495337285,
0.2802929282,
-0.0419158079,
0.728919208,
-0.15155527,
0.0830517635,
-0.0326684229,
-0.1897673905,
0.1182418168,
-0.0233936664,
-0.0012604583,
0.1437295973,
-0.069619447,
-0.0688927323,
0.281044811,
-0.0273934454,
-0.2340155691,
0.0267738793,
0.181695357,
-0.1459487677,
0.1988346428,
0.1966278106,
0.2838437557,
-0.0644871891,
0.0399040952,
-0.0328312181,
0.2843933403,
0.2534205914,
-0.0275104083,
0.047552947,
-0.1733618379,
-0.468991369,
-0.0253391583,
0.0136440163,
0.5950093865,
0.1803967655,
-0.2701009214,
-0.0289221071,
-0.2787002027,
-0.3027985394,
-0.0676976964,
0.2093277574,
0.121819824,
-0.1600494832,
0.3483575881,
0.0752086714,
-0.2440334111,
-0.1647191495,
-0.2930479944,
0.3408953547,
-0.3188332617,
-0.1684278548,
0.2188080549,
0.2253616303,
0.0922133476,
0.0471642986,
-0.0809150562,
-0.1988426,
0.1389290541,
-0.0077621276,
0.1081167683,
0.1051956564,
-0.1785956025,
0.0933399424,
0.2775602639,
-0.1004937813,
-0.0483995713,
0.2007461637,
-0.0364868008,
-0.0897132829,
-0.1614138186,
0.28895998,
-0.1801723242,
-0.0983837098,
0.0543796048,
0.0768854022,
0.255202651,
-0.087790668,
0.0312969089,
-0.3928903639,
-0.2555432022,
-0.1649034023,
0.1820679009,
0.4742362201,
-0.4417521358,
-0.194307059,
-0.1998417526,
-0.1128744408,
0.1960723698,
0.1654728353,
-0.1848081648,
0.6032978296,
-0.1668523103,
0.1821197718,
0.4813291132,
-0.2698023915,
0.1708315611,
0.0655023381,
-0.2529612482,
0.076276429,
-0.0907962844,
-0.0454186834,
-0.0019625914,
-0.0203297753,
0.3685541749,
0.257096529,
-0.0868278295,
-0.0704207122,
0.02580221,
0.0281275027,
0.5934321284,
0.0462835468,
-0.0008243832,
-0.2142315358,
0.0578707531,
0.4939415753,
0.2460768223,
-0.0577070378,
-0.0333488211,
-0.0137070911,
0.0170148574,
-0.1148450002,
-0.3352915347,
-0.2411741614,
-0.2232070863,
-0.109365277,
0.0478309654,
0.3630457222,
-0.1524046808,
0.2927410007,
-0.2438348383,
0.0848260522,
-0.2252931744,
-0.2423848957,
0.2631047964,
0.0465613455,
-0.2522634566,
-0.1086916327,
-0.0686345845,
-0.080072023,
0.0088360868,
0.0938630328,
-0.1322341859,
0.1556386352,
-0.2579878271,
-0.3206019402,
0.1305003464,
0.2569968104,
0.1654369831,
-0.0436953194,
-0.2140457928,
0.2780264914,
0.1649136394,
-0.0692976192,
-0.2854146957,
-0.0294153709,
-0.0743026882,
-0.1602806747,
0.1651480347,
0.1794784814,
0.1970851123,
-0.1973394305,
-0.2075013071,
0.1806470752,
-0.0234829001,
0.0752801374,
0.148913458,
0.1009815559,
0.1457810402,
0.0210331939,
0.0285008941,
-0.2971126735,
0.1780159026,
-0.0241098478,
-0.1505931169,
-0.0727761313,
-0.1188312247,
-0.105658181,
0.5293697715,
0.2276985645,
0.224109441,
-0.2177880257,
-0.2621046901,
-0.0811997801,
0.0782552212,
0.0705174431,
0.4799799919,
0.1782224923,
-0.0041788649,
0.1772152781,
-0.0156669095,
-0.2165575475,
0.2168711722,
0.1818332076,
0.0331382267,
-0.0351119861,
0.0385486186,
0.0851171836,
-0.1735183746,
-0.2818621397,
-0.0842829943,
0.1642438173,
-0.3306984305,
0.0497130342,
-0.4721487164,
-0.3931069374,
-0.4514599144,
-0.3841333985,
-0.1739956439,
-0.4288797677,
-0.1867689788,
-0.0351117216,
-0.2173171341,
0.3002479374,
-0.1404795349,
-0.0482546836,
0.1101875231,
0.066379264,
0.0988492742,
-0.2670577168,
-0.1530420631,
0.1411230862,
0.3205444813,
0.1450355947,
0.3701428771,
-0.0794280618,
0.0111536346,
0.0473324023,
-0.3408439457,
0.1160992384,
-0.100981988,
0.2626492977,
0.4324876666,
0.3414854109,
0.0838389695,
-0.2842499912,
0.4270728827,
-0.0637359396,
0.0510102436,
0.0498755984,
0.1940961629,
-0.1479693204,
-0.3029946983,
-0.4622399211,
-0.3657281995,
-0.4703691304,
-0.1216415539,
0.1440427154,
0.1319938749,
0.4903209507,
-0.0182415005,
0.3564137518,
-0.0871035382,
-0.0005424811,
0.0735501051,
0.0614892542,
0.2821261585,
-0.3124623597,
-0.1920034885,
0.0803079009,
0.035807021,
0.2169489264,
-0.171344623,
-0.2317764163,
0.1126878113,
-0.1056706011,
0.1334697455,
0.0481276214,
0.1015140116,
0.1759225279,
0.2410975099,
-0.2015780061,
-0.3006727099,
-0.346781373,
0.0994992554,
0.1069888771,
0.1258558333,
-0.101753071,
0.1422886848,
0.1000690684,
0.3848870993,
0.0874496549,
-0.1828736067,
0.3111948669,
0.0411569625,
0.3453079462,
-0.0618222877,
-0.3201504648,
0.2449907809,
-0.058773987,
0.1667981297,
0.2006138265,
-0.1382380128,
0.0803108811,
-0.2032090873,
-0.0921044946,
-0.0643966049,
-0.4186587334,
0.1118847057,
0.0074185291,
0.1880874336,
0.2058226466,
0.0365456119,
-0.1949252337,
0.0036354484,
-0.0097368266,
0.2998480201,
0.0105653005,
0.1356201321,
-0.1349021047,
-0.0225579794,
-0.3069859445,
0.1838999093,
0.2323765159,
0.4915711582,
-0.0271856785,
-0.1784803718,
-0.2188407332,
0.0941774026,
0.1146479771,
-0.1356559545,
0.1829946041,
0.457182318,
0.0663696527,
-0.2134141177,
-0.172186926,
-0.5033165216,
0.1326623708,
0.4361286163,
0.0677455887,
-0.0008685674,
-0.3626331985,
0.4444147944,
0.1816578954,
-0.1891020983,
-0.2773979306,
-0.0000777667,
-0.071603179,
-0.3365021348,
0.044152271,
0.0950582325,
0.1696864069,
0.2260650545,
0.0341114029,
0.1553544998,
0.0793136284,
0.1081612185,
0.1017454118,
-0.0415178351,
0.1275672466,
0.041358389,
-0.1016532928,
0.1490106881,
0.2546506822,
0.3937420845,
-0.1238747835,
-0.1940543354,
-0.1644194424,
0.0299258828,
0.3551035225,
0.0970902592,
-0.0819734186,
0.1334189773,
0.0647360757,
0.1381147206,
-0.2426777333,
0.2743782103,
0.2958749533,
0.1709006578,
-0.3747495711,
-0.3495922685,
-0.0297986921,
-0.0531898402,
0.1575483978,
0.1404523253,
-0.06189619,
-0.3537501693,
-0.0751760751,
-0.009429642,
0.5648846626,
0.1630989909,
0.2897146344,
0.4404498637,
-0.0870267376,
0.4734365344,
0.1777279377,
0.0051306565,
-0.2467222512,
0.1247944832,
0.0227171164,
-0.1888539791,
0.2077723444,
0.137724191,
-0.2474352717,
0.2713086605,
-0.0384191722,
0.2527680099,
0.0651764944,
0.0909023434,
0.3361057639,
-0.1986483783,
-0.409568876,
0.2058807313,
-0.4133999646,
0.0716985464,
-0.2496191561,
-0.3231572211,
0.159161523,
-0.250703305,
-0.2010602355,
0.177694425,
-0.2587881684,
0.2284643203,
0.0260749441,
-0.0663727522,
0.4716355801,
-0.1141983345,
-0.1069330126,
0.3006840646,
-0.047139246,
-0.0889479741,
-0.1888509691,
0.009424163,
-0.0697389245,
0.2475737333,
0.5000484586,
-0.1218191311,
-0.036887303,
-0.1750988662,
-0.0812498257,
0.1250167638,
0.0917121768,
0.2032328844,
0.1998405159,
-0.2620665133,
-0.2598941922,
-0.0320798904,
-0.177294299,
-0.2796156704,
0.2072874904,
0.0089061009,
-0.0291703772,
0.2409034222,
0.0525549017,
-0.1873457879,
-0.0364573188,
0.1764350384,
-0.17674613,
-0.0665929019,
0.5022161603,
0.4060558081,
-0.2406094968,
-0.3803833723,
0.1318948269,
-0.0628112927,
-0.2885807455,
0.3547706902,
0.1688402444,
0.3007947206,
0.0165440552,
0.3438565433,
0.0157204289,
-0.0099179689,
0.1101289615,
-0.3858225942,
-0.182272777,
0.0273887832,
-0.3424879313,
0.0165283997,
0.173354134,
0.6295425296,
0.1122878864,
0.0537230559,
-0.4009521008,
-0.1003774256,
-0.0929585248,
0.2274134904,
0.4283627868,
-0.1619133502,
-0.0227418132,
0.0861175731,
0.1760026515,
0.0346552618,
-0.2526119947,
-0.3148130476,
-0.2940257192,
0.0661310852,
0.1720107347,
-0.4291431904,
0.3799622059,
0.0724910498,
-0.0009614315,
-0.3068477511,
-0.1781095862,
0.089336738,
-0.1307529062,
0.3698423803,
0.1245564297,
0.1172237247,
0.175313279,
0.0280542057,
0.122926496,
0.109699443,
-0.0064219679,
0.1405477077,
0.0346084349,
-0.0513196252,
-0.1968660057,
0.0078801531,
0.0852089077,
0.2760113776,
0.1000635847,
-0.4387732446,
-0.1408095509,
-0.1907572299,
0.3313596547,
0.4964479506,
-0.2855861485,
-0.0179454796,
0.1170453802,
0.2279495895,
-0.431779623,
0.0991012901,
0.4069513977,
0.0616519861,
0.0558138005,
0.16057688,
-0.1963248998,
-0.0263520349,
-0.2005508393,
-0.0155230453,
-0.0812871903,
-0.2450971305,
0.1379801631,
0.2535308301,
-0.1621551067,
0.0723397806,
0.2234296799,
0.2248424888,
0.2094133198,
0.4411477745,
-0.0880136117,
0.033532314,
0.3215837479,
-0.1977277994,
0.0530195385,
-0.4163440466,
-0.2213224918,
0.0046017999,
0.155584082,
0.0431443453,
-0.030800622,
0.0894240588,
0.0554314926,
-0.0492897108,
0.091109097,
0.1842015088,
-0.175498113,
-0.0029798152,
0.0702132136,
0.1035521701,
-0.1834440678,
-0.2007073909,
-0.0523935705,
0.0233832151,
-0.0611662082,
0.0867938027,
0.1566934884,
-0.550983727,
-0.0985003412,
0.0284028444,
-0.3185493648,
-0.4562837481,
0.0733107179,
0.4109582305,
0.095485121,
-0.1203893647,
-0.007495149,
0.6174409389,
0.4333243668,
-0.0764669627,
-0.1840571016,
-0.2809351981,
-0.046759326,
-0.0322064199,
0.0866957009,
0.1216949373,
0.2625560462,
0.5520275831,
0.1766431481,
-0.1991809905,
0.1269986331,
0.2516283691,
-0.2234729826,
-0.1569372416,
0.2527379096,
-0.0195225347,
-0.1268070042,
-0.28254053,
0.1944850087,
-0.2954166532,
0.1875003427,
0.4098544121,
0.2683025599,
0.1570730805,
-0.1060612425,
0.1378096491,
0.1873126328,
0.5516353846,
0.1906978935,
0.3860895336,
-0.3571791947,
-0.0554284416,
-0.5711799264,
-0.0245897584,
-0.1053962931,
-0.0316515937,
-0.1443446428,
-0.0839930549,
0.0324574858,
0.2593311369,
0.1967315674,
0.1654992551,
0.1051032469,
-0.0875485167,
-0.2856193185,
-0.1786559373,
0.037755698,
-0.1408989429,
0.1282964945,
-0.2223505378,
-0.0397657081,
-0.4887034893,
0.1265329719,
-0.3787435591,
-0.220805347,
0.0734933764,
0.435713321,
0.2232681066,
0.2265579104,
0.5930401087,
-0.0317762457,
-0.0286307782,
-0.3275701106,
-0.2059123963,
-0.1545396,
0.3455996811,
0.0363040566,
0.4889933467,
-0.107165955,
-0.0158568565,
-0.3778455555,
0.1949939132,
-0.3336423635,
0.0198233947,
-0.1027709991,
0.1275239885,
-0.1381614953,
0.1817006767,
0.0611191429,
0.0021517754,
-0.1441735774,
0.2395444065,
-0.3893559873,
-0.4405486882,
0.5200939178,
-0.4261544645,
-0.6753060222,
-0.1937558502,
0.0424240716,
-0.245048359,
-0.1419902146,
-0.4619944096,
0.062090788,
0.2820004523,
-0.0690545663,
-0.2712807059,
0.3742439151,
-0.1549427062,
0.0212924313,
0.0864810497,
0.2581359446,
0.077080667,
-0.2606580257,
-0.2184215486,
-0.2339113504
] |
https://github.com/huggingface/datasets/issues/156 | SyntaxError with WMT datasets | To correct this error I think you need the master branch of `nlp`. Can you try to install `nlp` with. `WMT` was not included at the beta release of the library.
Can you try:
`pip install git+https://github.com/huggingface/nlp.git`
and check again? | The following snippet produces a syntax error:
```
import nlp
dataset = nlp.load_dataset('wmt14')
print(dataset['train'][0])
```
```
Traceback (most recent call last):
File "/home/tom/.local/lib/python3.6/site-packages/IPython/core/interactiveshell.py", line 3326, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "<ipython-input-8-3206959998b9>", line 3, in <module>
dataset = nlp.load_dataset('wmt14')
File "/home/tom/.local/lib/python3.6/site-packages/nlp/load.py", line 505, in load_dataset
builder_cls = import_main_class(module_path, dataset=True)
File "/home/tom/.local/lib/python3.6/site-packages/nlp/load.py", line 56, in import_main_class
module = importlib.import_module(module_path)
File "/usr/lib/python3.6/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 994, in _gcd_import
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 678, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/home/tom/.local/lib/python3.6/site-packages/nlp/datasets/wmt14/c258d646f4f5870b0245f783b7aa0af85c7117e06aacf1e0340bd81935094de2/wmt14.py", line 21, in <module>
from .wmt_utils import Wmt, WmtConfig
File "/home/tom/.local/lib/python3.6/site-packages/nlp/datasets/wmt14/c258d646f4f5870b0245f783b7aa0af85c7117e06aacf1e0340bd81935094de2/wmt_utils.py", line 659
<<<<<<< HEAD
^
SyntaxError: invalid syntax
```
Python version:
`3.6.9 (default, Apr 18 2020, 01:56:04) [GCC 8.4.0]`
Running on Ubuntu 18.04, via a Jupyter notebook | 40 | SyntaxError with WMT datasets
The following snippet produces a syntax error:
```
import nlp
dataset = nlp.load_dataset('wmt14')
print(dataset['train'][0])
```
```
Traceback (most recent call last):
File "/home/tom/.local/lib/python3.6/site-packages/IPython/core/interactiveshell.py", line 3326, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "<ipython-input-8-3206959998b9>", line 3, in <module>
dataset = nlp.load_dataset('wmt14')
File "/home/tom/.local/lib/python3.6/site-packages/nlp/load.py", line 505, in load_dataset
builder_cls = import_main_class(module_path, dataset=True)
File "/home/tom/.local/lib/python3.6/site-packages/nlp/load.py", line 56, in import_main_class
module = importlib.import_module(module_path)
File "/usr/lib/python3.6/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 994, in _gcd_import
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 678, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/home/tom/.local/lib/python3.6/site-packages/nlp/datasets/wmt14/c258d646f4f5870b0245f783b7aa0af85c7117e06aacf1e0340bd81935094de2/wmt14.py", line 21, in <module>
from .wmt_utils import Wmt, WmtConfig
File "/home/tom/.local/lib/python3.6/site-packages/nlp/datasets/wmt14/c258d646f4f5870b0245f783b7aa0af85c7117e06aacf1e0340bd81935094de2/wmt_utils.py", line 659
<<<<<<< HEAD
^
SyntaxError: invalid syntax
```
Python version:
`3.6.9 (default, Apr 18 2020, 01:56:04) [GCC 8.4.0]`
Running on Ubuntu 18.04, via a Jupyter notebook
To correct this error I think you need the master branch of `nlp`. Can you try to install `nlp` with. `WMT` was not included at the beta release of the library.
Can you try:
`pip install git+https://github.com/huggingface/nlp.git`
and check again? | [
-0.3297367394,
0.0324436054,
-0.0193531327,
0.0127458628,
0.2164736986,
-0.014922413,
0.3609465659,
0.5264437795,
0.1301546246,
-0.1121619493,
0.0932864547,
0.4350024164,
-0.3767535388,
0.1414317042,
0.1508706957,
-0.1754978597,
-0.0268027131,
0.1413965076,
-0.358635813,
0.1519567966,
-0.2946049273,
0.1583639681,
-0.4209617376,
0.2173395157,
-0.2542879283,
-0.0902358443,
-0.0211465582,
0.1449499279,
-0.1394592673,
-0.4628490806,
0.1408033073,
-0.0065227915,
0.2389949858,
0.3692950308,
-0.0001028357,
-0.0074910582,
0.1617365777,
-0.0390186757,
-0.3923015893,
-0.3421504796,
-0.4517920911,
-0.1481354982,
0.1438383758,
-0.2942017317,
0.0407955982,
-0.1019725502,
0.0120903281,
-0.2335638106,
0.5227857232,
0.4709783792,
0.2622492909,
0.4046526253,
-0.0788423568,
-0.1995572448,
0.0400842987,
0.1868067682,
-0.0251020659,
0.2721500099,
-0.0462757237,
-0.3078270555,
0.0443686098,
0.2844173908,
-0.0971550196,
0.2046326101,
0.228813231,
0.0462169684,
0.1737396717,
0.0146226287,
-0.1336926073,
0.1116889268,
0.376653403,
-0.334050864,
-0.1922970116,
-0.0254197773,
-0.0237152409,
-0.3796637058,
0.173744902,
0.2510082424,
-0.2430956215,
0.2042773515,
-0.2803638875,
0.0721920282,
-0.0495337285,
0.2802929282,
-0.0419158079,
0.728919208,
-0.15155527,
0.0830517635,
-0.0326684229,
-0.1897673905,
0.1182418168,
-0.0233936664,
-0.0012604583,
0.1437295973,
-0.069619447,
-0.0688927323,
0.281044811,
-0.0273934454,
-0.2340155691,
0.0267738793,
0.181695357,
-0.1459487677,
0.1988346428,
0.1966278106,
0.2838437557,
-0.0644871891,
0.0399040952,
-0.0328312181,
0.2843933403,
0.2534205914,
-0.0275104083,
0.047552947,
-0.1733618379,
-0.468991369,
-0.0253391583,
0.0136440163,
0.5950093865,
0.1803967655,
-0.2701009214,
-0.0289221071,
-0.2787002027,
-0.3027985394,
-0.0676976964,
0.2093277574,
0.121819824,
-0.1600494832,
0.3483575881,
0.0752086714,
-0.2440334111,
-0.1647191495,
-0.2930479944,
0.3408953547,
-0.3188332617,
-0.1684278548,
0.2188080549,
0.2253616303,
0.0922133476,
0.0471642986,
-0.0809150562,
-0.1988426,
0.1389290541,
-0.0077621276,
0.1081167683,
0.1051956564,
-0.1785956025,
0.0933399424,
0.2775602639,
-0.1004937813,
-0.0483995713,
0.2007461637,
-0.0364868008,
-0.0897132829,
-0.1614138186,
0.28895998,
-0.1801723242,
-0.0983837098,
0.0543796048,
0.0768854022,
0.255202651,
-0.087790668,
0.0312969089,
-0.3928903639,
-0.2555432022,
-0.1649034023,
0.1820679009,
0.4742362201,
-0.4417521358,
-0.194307059,
-0.1998417526,
-0.1128744408,
0.1960723698,
0.1654728353,
-0.1848081648,
0.6032978296,
-0.1668523103,
0.1821197718,
0.4813291132,
-0.2698023915,
0.1708315611,
0.0655023381,
-0.2529612482,
0.076276429,
-0.0907962844,
-0.0454186834,
-0.0019625914,
-0.0203297753,
0.3685541749,
0.257096529,
-0.0868278295,
-0.0704207122,
0.02580221,
0.0281275027,
0.5934321284,
0.0462835468,
-0.0008243832,
-0.2142315358,
0.0578707531,
0.4939415753,
0.2460768223,
-0.0577070378,
-0.0333488211,
-0.0137070911,
0.0170148574,
-0.1148450002,
-0.3352915347,
-0.2411741614,
-0.2232070863,
-0.109365277,
0.0478309654,
0.3630457222,
-0.1524046808,
0.2927410007,
-0.2438348383,
0.0848260522,
-0.2252931744,
-0.2423848957,
0.2631047964,
0.0465613455,
-0.2522634566,
-0.1086916327,
-0.0686345845,
-0.080072023,
0.0088360868,
0.0938630328,
-0.1322341859,
0.1556386352,
-0.2579878271,
-0.3206019402,
0.1305003464,
0.2569968104,
0.1654369831,
-0.0436953194,
-0.2140457928,
0.2780264914,
0.1649136394,
-0.0692976192,
-0.2854146957,
-0.0294153709,
-0.0743026882,
-0.1602806747,
0.1651480347,
0.1794784814,
0.1970851123,
-0.1973394305,
-0.2075013071,
0.1806470752,
-0.0234829001,
0.0752801374,
0.148913458,
0.1009815559,
0.1457810402,
0.0210331939,
0.0285008941,
-0.2971126735,
0.1780159026,
-0.0241098478,
-0.1505931169,
-0.0727761313,
-0.1188312247,
-0.105658181,
0.5293697715,
0.2276985645,
0.224109441,
-0.2177880257,
-0.2621046901,
-0.0811997801,
0.0782552212,
0.0705174431,
0.4799799919,
0.1782224923,
-0.0041788649,
0.1772152781,
-0.0156669095,
-0.2165575475,
0.2168711722,
0.1818332076,
0.0331382267,
-0.0351119861,
0.0385486186,
0.0851171836,
-0.1735183746,
-0.2818621397,
-0.0842829943,
0.1642438173,
-0.3306984305,
0.0497130342,
-0.4721487164,
-0.3931069374,
-0.4514599144,
-0.3841333985,
-0.1739956439,
-0.4288797677,
-0.1867689788,
-0.0351117216,
-0.2173171341,
0.3002479374,
-0.1404795349,
-0.0482546836,
0.1101875231,
0.066379264,
0.0988492742,
-0.2670577168,
-0.1530420631,
0.1411230862,
0.3205444813,
0.1450355947,
0.3701428771,
-0.0794280618,
0.0111536346,
0.0473324023,
-0.3408439457,
0.1160992384,
-0.100981988,
0.2626492977,
0.4324876666,
0.3414854109,
0.0838389695,
-0.2842499912,
0.4270728827,
-0.0637359396,
0.0510102436,
0.0498755984,
0.1940961629,
-0.1479693204,
-0.3029946983,
-0.4622399211,
-0.3657281995,
-0.4703691304,
-0.1216415539,
0.1440427154,
0.1319938749,
0.4903209507,
-0.0182415005,
0.3564137518,
-0.0871035382,
-0.0005424811,
0.0735501051,
0.0614892542,
0.2821261585,
-0.3124623597,
-0.1920034885,
0.0803079009,
0.035807021,
0.2169489264,
-0.171344623,
-0.2317764163,
0.1126878113,
-0.1056706011,
0.1334697455,
0.0481276214,
0.1015140116,
0.1759225279,
0.2410975099,
-0.2015780061,
-0.3006727099,
-0.346781373,
0.0994992554,
0.1069888771,
0.1258558333,
-0.101753071,
0.1422886848,
0.1000690684,
0.3848870993,
0.0874496549,
-0.1828736067,
0.3111948669,
0.0411569625,
0.3453079462,
-0.0618222877,
-0.3201504648,
0.2449907809,
-0.058773987,
0.1667981297,
0.2006138265,
-0.1382380128,
0.0803108811,
-0.2032090873,
-0.0921044946,
-0.0643966049,
-0.4186587334,
0.1118847057,
0.0074185291,
0.1880874336,
0.2058226466,
0.0365456119,
-0.1949252337,
0.0036354484,
-0.0097368266,
0.2998480201,
0.0105653005,
0.1356201321,
-0.1349021047,
-0.0225579794,
-0.3069859445,
0.1838999093,
0.2323765159,
0.4915711582,
-0.0271856785,
-0.1784803718,
-0.2188407332,
0.0941774026,
0.1146479771,
-0.1356559545,
0.1829946041,
0.457182318,
0.0663696527,
-0.2134141177,
-0.172186926,
-0.5033165216,
0.1326623708,
0.4361286163,
0.0677455887,
-0.0008685674,
-0.3626331985,
0.4444147944,
0.1816578954,
-0.1891020983,
-0.2773979306,
-0.0000777667,
-0.071603179,
-0.3365021348,
0.044152271,
0.0950582325,
0.1696864069,
0.2260650545,
0.0341114029,
0.1553544998,
0.0793136284,
0.1081612185,
0.1017454118,
-0.0415178351,
0.1275672466,
0.041358389,
-0.1016532928,
0.1490106881,
0.2546506822,
0.3937420845,
-0.1238747835,
-0.1940543354,
-0.1644194424,
0.0299258828,
0.3551035225,
0.0970902592,
-0.0819734186,
0.1334189773,
0.0647360757,
0.1381147206,
-0.2426777333,
0.2743782103,
0.2958749533,
0.1709006578,
-0.3747495711,
-0.3495922685,
-0.0297986921,
-0.0531898402,
0.1575483978,
0.1404523253,
-0.06189619,
-0.3537501693,
-0.0751760751,
-0.009429642,
0.5648846626,
0.1630989909,
0.2897146344,
0.4404498637,
-0.0870267376,
0.4734365344,
0.1777279377,
0.0051306565,
-0.2467222512,
0.1247944832,
0.0227171164,
-0.1888539791,
0.2077723444,
0.137724191,
-0.2474352717,
0.2713086605,
-0.0384191722,
0.2527680099,
0.0651764944,
0.0909023434,
0.3361057639,
-0.1986483783,
-0.409568876,
0.2058807313,
-0.4133999646,
0.0716985464,
-0.2496191561,
-0.3231572211,
0.159161523,
-0.250703305,
-0.2010602355,
0.177694425,
-0.2587881684,
0.2284643203,
0.0260749441,
-0.0663727522,
0.4716355801,
-0.1141983345,
-0.1069330126,
0.3006840646,
-0.047139246,
-0.0889479741,
-0.1888509691,
0.009424163,
-0.0697389245,
0.2475737333,
0.5000484586,
-0.1218191311,
-0.036887303,
-0.1750988662,
-0.0812498257,
0.1250167638,
0.0917121768,
0.2032328844,
0.1998405159,
-0.2620665133,
-0.2598941922,
-0.0320798904,
-0.177294299,
-0.2796156704,
0.2072874904,
0.0089061009,
-0.0291703772,
0.2409034222,
0.0525549017,
-0.1873457879,
-0.0364573188,
0.1764350384,
-0.17674613,
-0.0665929019,
0.5022161603,
0.4060558081,
-0.2406094968,
-0.3803833723,
0.1318948269,
-0.0628112927,
-0.2885807455,
0.3547706902,
0.1688402444,
0.3007947206,
0.0165440552,
0.3438565433,
0.0157204289,
-0.0099179689,
0.1101289615,
-0.3858225942,
-0.182272777,
0.0273887832,
-0.3424879313,
0.0165283997,
0.173354134,
0.6295425296,
0.1122878864,
0.0537230559,
-0.4009521008,
-0.1003774256,
-0.0929585248,
0.2274134904,
0.4283627868,
-0.1619133502,
-0.0227418132,
0.0861175731,
0.1760026515,
0.0346552618,
-0.2526119947,
-0.3148130476,
-0.2940257192,
0.0661310852,
0.1720107347,
-0.4291431904,
0.3799622059,
0.0724910498,
-0.0009614315,
-0.3068477511,
-0.1781095862,
0.089336738,
-0.1307529062,
0.3698423803,
0.1245564297,
0.1172237247,
0.175313279,
0.0280542057,
0.122926496,
0.109699443,
-0.0064219679,
0.1405477077,
0.0346084349,
-0.0513196252,
-0.1968660057,
0.0078801531,
0.0852089077,
0.2760113776,
0.1000635847,
-0.4387732446,
-0.1408095509,
-0.1907572299,
0.3313596547,
0.4964479506,
-0.2855861485,
-0.0179454796,
0.1170453802,
0.2279495895,
-0.431779623,
0.0991012901,
0.4069513977,
0.0616519861,
0.0558138005,
0.16057688,
-0.1963248998,
-0.0263520349,
-0.2005508393,
-0.0155230453,
-0.0812871903,
-0.2450971305,
0.1379801631,
0.2535308301,
-0.1621551067,
0.0723397806,
0.2234296799,
0.2248424888,
0.2094133198,
0.4411477745,
-0.0880136117,
0.033532314,
0.3215837479,
-0.1977277994,
0.0530195385,
-0.4163440466,
-0.2213224918,
0.0046017999,
0.155584082,
0.0431443453,
-0.030800622,
0.0894240588,
0.0554314926,
-0.0492897108,
0.091109097,
0.1842015088,
-0.175498113,
-0.0029798152,
0.0702132136,
0.1035521701,
-0.1834440678,
-0.2007073909,
-0.0523935705,
0.0233832151,
-0.0611662082,
0.0867938027,
0.1566934884,
-0.550983727,
-0.0985003412,
0.0284028444,
-0.3185493648,
-0.4562837481,
0.0733107179,
0.4109582305,
0.095485121,
-0.1203893647,
-0.007495149,
0.6174409389,
0.4333243668,
-0.0764669627,
-0.1840571016,
-0.2809351981,
-0.046759326,
-0.0322064199,
0.0866957009,
0.1216949373,
0.2625560462,
0.5520275831,
0.1766431481,
-0.1991809905,
0.1269986331,
0.2516283691,
-0.2234729826,
-0.1569372416,
0.2527379096,
-0.0195225347,
-0.1268070042,
-0.28254053,
0.1944850087,
-0.2954166532,
0.1875003427,
0.4098544121,
0.2683025599,
0.1570730805,
-0.1060612425,
0.1378096491,
0.1873126328,
0.5516353846,
0.1906978935,
0.3860895336,
-0.3571791947,
-0.0554284416,
-0.5711799264,
-0.0245897584,
-0.1053962931,
-0.0316515937,
-0.1443446428,
-0.0839930549,
0.0324574858,
0.2593311369,
0.1967315674,
0.1654992551,
0.1051032469,
-0.0875485167,
-0.2856193185,
-0.1786559373,
0.037755698,
-0.1408989429,
0.1282964945,
-0.2223505378,
-0.0397657081,
-0.4887034893,
0.1265329719,
-0.3787435591,
-0.220805347,
0.0734933764,
0.435713321,
0.2232681066,
0.2265579104,
0.5930401087,
-0.0317762457,
-0.0286307782,
-0.3275701106,
-0.2059123963,
-0.1545396,
0.3455996811,
0.0363040566,
0.4889933467,
-0.107165955,
-0.0158568565,
-0.3778455555,
0.1949939132,
-0.3336423635,
0.0198233947,
-0.1027709991,
0.1275239885,
-0.1381614953,
0.1817006767,
0.0611191429,
0.0021517754,
-0.1441735774,
0.2395444065,
-0.3893559873,
-0.4405486882,
0.5200939178,
-0.4261544645,
-0.6753060222,
-0.1937558502,
0.0424240716,
-0.245048359,
-0.1419902146,
-0.4619944096,
0.062090788,
0.2820004523,
-0.0690545663,
-0.2712807059,
0.3742439151,
-0.1549427062,
0.0212924313,
0.0864810497,
0.2581359446,
0.077080667,
-0.2606580257,
-0.2184215486,
-0.2339113504
] |
https://github.com/huggingface/datasets/issues/156 | SyntaxError with WMT datasets | That works, thanks :)
The WMT datasets are listed in by `list_datasets()` in the beta release on pypi - it would be good to only show datasets that are actually supported by that version? | The following snippet produces a syntax error:
```
import nlp
dataset = nlp.load_dataset('wmt14')
print(dataset['train'][0])
```
```
Traceback (most recent call last):
File "/home/tom/.local/lib/python3.6/site-packages/IPython/core/interactiveshell.py", line 3326, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "<ipython-input-8-3206959998b9>", line 3, in <module>
dataset = nlp.load_dataset('wmt14')
File "/home/tom/.local/lib/python3.6/site-packages/nlp/load.py", line 505, in load_dataset
builder_cls = import_main_class(module_path, dataset=True)
File "/home/tom/.local/lib/python3.6/site-packages/nlp/load.py", line 56, in import_main_class
module = importlib.import_module(module_path)
File "/usr/lib/python3.6/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 994, in _gcd_import
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 678, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/home/tom/.local/lib/python3.6/site-packages/nlp/datasets/wmt14/c258d646f4f5870b0245f783b7aa0af85c7117e06aacf1e0340bd81935094de2/wmt14.py", line 21, in <module>
from .wmt_utils import Wmt, WmtConfig
File "/home/tom/.local/lib/python3.6/site-packages/nlp/datasets/wmt14/c258d646f4f5870b0245f783b7aa0af85c7117e06aacf1e0340bd81935094de2/wmt_utils.py", line 659
<<<<<<< HEAD
^
SyntaxError: invalid syntax
```
Python version:
`3.6.9 (default, Apr 18 2020, 01:56:04) [GCC 8.4.0]`
Running on Ubuntu 18.04, via a Jupyter notebook | 34 | SyntaxError with WMT datasets
The following snippet produces a syntax error:
```
import nlp
dataset = nlp.load_dataset('wmt14')
print(dataset['train'][0])
```
```
Traceback (most recent call last):
File "/home/tom/.local/lib/python3.6/site-packages/IPython/core/interactiveshell.py", line 3326, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "<ipython-input-8-3206959998b9>", line 3, in <module>
dataset = nlp.load_dataset('wmt14')
File "/home/tom/.local/lib/python3.6/site-packages/nlp/load.py", line 505, in load_dataset
builder_cls = import_main_class(module_path, dataset=True)
File "/home/tom/.local/lib/python3.6/site-packages/nlp/load.py", line 56, in import_main_class
module = importlib.import_module(module_path)
File "/usr/lib/python3.6/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 994, in _gcd_import
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 678, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/home/tom/.local/lib/python3.6/site-packages/nlp/datasets/wmt14/c258d646f4f5870b0245f783b7aa0af85c7117e06aacf1e0340bd81935094de2/wmt14.py", line 21, in <module>
from .wmt_utils import Wmt, WmtConfig
File "/home/tom/.local/lib/python3.6/site-packages/nlp/datasets/wmt14/c258d646f4f5870b0245f783b7aa0af85c7117e06aacf1e0340bd81935094de2/wmt_utils.py", line 659
<<<<<<< HEAD
^
SyntaxError: invalid syntax
```
Python version:
`3.6.9 (default, Apr 18 2020, 01:56:04) [GCC 8.4.0]`
Running on Ubuntu 18.04, via a Jupyter notebook
That works, thanks :)
The WMT datasets are listed in by `list_datasets()` in the beta release on pypi - it would be good to only show datasets that are actually supported by that version? | [
-0.3297367394,
0.0324436054,
-0.0193531327,
0.0127458628,
0.2164736986,
-0.014922413,
0.3609465659,
0.5264437795,
0.1301546246,
-0.1121619493,
0.0932864547,
0.4350024164,
-0.3767535388,
0.1414317042,
0.1508706957,
-0.1754978597,
-0.0268027131,
0.1413965076,
-0.358635813,
0.1519567966,
-0.2946049273,
0.1583639681,
-0.4209617376,
0.2173395157,
-0.2542879283,
-0.0902358443,
-0.0211465582,
0.1449499279,
-0.1394592673,
-0.4628490806,
0.1408033073,
-0.0065227915,
0.2389949858,
0.3692950308,
-0.0001028357,
-0.0074910582,
0.1617365777,
-0.0390186757,
-0.3923015893,
-0.3421504796,
-0.4517920911,
-0.1481354982,
0.1438383758,
-0.2942017317,
0.0407955982,
-0.1019725502,
0.0120903281,
-0.2335638106,
0.5227857232,
0.4709783792,
0.2622492909,
0.4046526253,
-0.0788423568,
-0.1995572448,
0.0400842987,
0.1868067682,
-0.0251020659,
0.2721500099,
-0.0462757237,
-0.3078270555,
0.0443686098,
0.2844173908,
-0.0971550196,
0.2046326101,
0.228813231,
0.0462169684,
0.1737396717,
0.0146226287,
-0.1336926073,
0.1116889268,
0.376653403,
-0.334050864,
-0.1922970116,
-0.0254197773,
-0.0237152409,
-0.3796637058,
0.173744902,
0.2510082424,
-0.2430956215,
0.2042773515,
-0.2803638875,
0.0721920282,
-0.0495337285,
0.2802929282,
-0.0419158079,
0.728919208,
-0.15155527,
0.0830517635,
-0.0326684229,
-0.1897673905,
0.1182418168,
-0.0233936664,
-0.0012604583,
0.1437295973,
-0.069619447,
-0.0688927323,
0.281044811,
-0.0273934454,
-0.2340155691,
0.0267738793,
0.181695357,
-0.1459487677,
0.1988346428,
0.1966278106,
0.2838437557,
-0.0644871891,
0.0399040952,
-0.0328312181,
0.2843933403,
0.2534205914,
-0.0275104083,
0.047552947,
-0.1733618379,
-0.468991369,
-0.0253391583,
0.0136440163,
0.5950093865,
0.1803967655,
-0.2701009214,
-0.0289221071,
-0.2787002027,
-0.3027985394,
-0.0676976964,
0.2093277574,
0.121819824,
-0.1600494832,
0.3483575881,
0.0752086714,
-0.2440334111,
-0.1647191495,
-0.2930479944,
0.3408953547,
-0.3188332617,
-0.1684278548,
0.2188080549,
0.2253616303,
0.0922133476,
0.0471642986,
-0.0809150562,
-0.1988426,
0.1389290541,
-0.0077621276,
0.1081167683,
0.1051956564,
-0.1785956025,
0.0933399424,
0.2775602639,
-0.1004937813,
-0.0483995713,
0.2007461637,
-0.0364868008,
-0.0897132829,
-0.1614138186,
0.28895998,
-0.1801723242,
-0.0983837098,
0.0543796048,
0.0768854022,
0.255202651,
-0.087790668,
0.0312969089,
-0.3928903639,
-0.2555432022,
-0.1649034023,
0.1820679009,
0.4742362201,
-0.4417521358,
-0.194307059,
-0.1998417526,
-0.1128744408,
0.1960723698,
0.1654728353,
-0.1848081648,
0.6032978296,
-0.1668523103,
0.1821197718,
0.4813291132,
-0.2698023915,
0.1708315611,
0.0655023381,
-0.2529612482,
0.076276429,
-0.0907962844,
-0.0454186834,
-0.0019625914,
-0.0203297753,
0.3685541749,
0.257096529,
-0.0868278295,
-0.0704207122,
0.02580221,
0.0281275027,
0.5934321284,
0.0462835468,
-0.0008243832,
-0.2142315358,
0.0578707531,
0.4939415753,
0.2460768223,
-0.0577070378,
-0.0333488211,
-0.0137070911,
0.0170148574,
-0.1148450002,
-0.3352915347,
-0.2411741614,
-0.2232070863,
-0.109365277,
0.0478309654,
0.3630457222,
-0.1524046808,
0.2927410007,
-0.2438348383,
0.0848260522,
-0.2252931744,
-0.2423848957,
0.2631047964,
0.0465613455,
-0.2522634566,
-0.1086916327,
-0.0686345845,
-0.080072023,
0.0088360868,
0.0938630328,
-0.1322341859,
0.1556386352,
-0.2579878271,
-0.3206019402,
0.1305003464,
0.2569968104,
0.1654369831,
-0.0436953194,
-0.2140457928,
0.2780264914,
0.1649136394,
-0.0692976192,
-0.2854146957,
-0.0294153709,
-0.0743026882,
-0.1602806747,
0.1651480347,
0.1794784814,
0.1970851123,
-0.1973394305,
-0.2075013071,
0.1806470752,
-0.0234829001,
0.0752801374,
0.148913458,
0.1009815559,
0.1457810402,
0.0210331939,
0.0285008941,
-0.2971126735,
0.1780159026,
-0.0241098478,
-0.1505931169,
-0.0727761313,
-0.1188312247,
-0.105658181,
0.5293697715,
0.2276985645,
0.224109441,
-0.2177880257,
-0.2621046901,
-0.0811997801,
0.0782552212,
0.0705174431,
0.4799799919,
0.1782224923,
-0.0041788649,
0.1772152781,
-0.0156669095,
-0.2165575475,
0.2168711722,
0.1818332076,
0.0331382267,
-0.0351119861,
0.0385486186,
0.0851171836,
-0.1735183746,
-0.2818621397,
-0.0842829943,
0.1642438173,
-0.3306984305,
0.0497130342,
-0.4721487164,
-0.3931069374,
-0.4514599144,
-0.3841333985,
-0.1739956439,
-0.4288797677,
-0.1867689788,
-0.0351117216,
-0.2173171341,
0.3002479374,
-0.1404795349,
-0.0482546836,
0.1101875231,
0.066379264,
0.0988492742,
-0.2670577168,
-0.1530420631,
0.1411230862,
0.3205444813,
0.1450355947,
0.3701428771,
-0.0794280618,
0.0111536346,
0.0473324023,
-0.3408439457,
0.1160992384,
-0.100981988,
0.2626492977,
0.4324876666,
0.3414854109,
0.0838389695,
-0.2842499912,
0.4270728827,
-0.0637359396,
0.0510102436,
0.0498755984,
0.1940961629,
-0.1479693204,
-0.3029946983,
-0.4622399211,
-0.3657281995,
-0.4703691304,
-0.1216415539,
0.1440427154,
0.1319938749,
0.4903209507,
-0.0182415005,
0.3564137518,
-0.0871035382,
-0.0005424811,
0.0735501051,
0.0614892542,
0.2821261585,
-0.3124623597,
-0.1920034885,
0.0803079009,
0.035807021,
0.2169489264,
-0.171344623,
-0.2317764163,
0.1126878113,
-0.1056706011,
0.1334697455,
0.0481276214,
0.1015140116,
0.1759225279,
0.2410975099,
-0.2015780061,
-0.3006727099,
-0.346781373,
0.0994992554,
0.1069888771,
0.1258558333,
-0.101753071,
0.1422886848,
0.1000690684,
0.3848870993,
0.0874496549,
-0.1828736067,
0.3111948669,
0.0411569625,
0.3453079462,
-0.0618222877,
-0.3201504648,
0.2449907809,
-0.058773987,
0.1667981297,
0.2006138265,
-0.1382380128,
0.0803108811,
-0.2032090873,
-0.0921044946,
-0.0643966049,
-0.4186587334,
0.1118847057,
0.0074185291,
0.1880874336,
0.2058226466,
0.0365456119,
-0.1949252337,
0.0036354484,
-0.0097368266,
0.2998480201,
0.0105653005,
0.1356201321,
-0.1349021047,
-0.0225579794,
-0.3069859445,
0.1838999093,
0.2323765159,
0.4915711582,
-0.0271856785,
-0.1784803718,
-0.2188407332,
0.0941774026,
0.1146479771,
-0.1356559545,
0.1829946041,
0.457182318,
0.0663696527,
-0.2134141177,
-0.172186926,
-0.5033165216,
0.1326623708,
0.4361286163,
0.0677455887,
-0.0008685674,
-0.3626331985,
0.4444147944,
0.1816578954,
-0.1891020983,
-0.2773979306,
-0.0000777667,
-0.071603179,
-0.3365021348,
0.044152271,
0.0950582325,
0.1696864069,
0.2260650545,
0.0341114029,
0.1553544998,
0.0793136284,
0.1081612185,
0.1017454118,
-0.0415178351,
0.1275672466,
0.041358389,
-0.1016532928,
0.1490106881,
0.2546506822,
0.3937420845,
-0.1238747835,
-0.1940543354,
-0.1644194424,
0.0299258828,
0.3551035225,
0.0970902592,
-0.0819734186,
0.1334189773,
0.0647360757,
0.1381147206,
-0.2426777333,
0.2743782103,
0.2958749533,
0.1709006578,
-0.3747495711,
-0.3495922685,
-0.0297986921,
-0.0531898402,
0.1575483978,
0.1404523253,
-0.06189619,
-0.3537501693,
-0.0751760751,
-0.009429642,
0.5648846626,
0.1630989909,
0.2897146344,
0.4404498637,
-0.0870267376,
0.4734365344,
0.1777279377,
0.0051306565,
-0.2467222512,
0.1247944832,
0.0227171164,
-0.1888539791,
0.2077723444,
0.137724191,
-0.2474352717,
0.2713086605,
-0.0384191722,
0.2527680099,
0.0651764944,
0.0909023434,
0.3361057639,
-0.1986483783,
-0.409568876,
0.2058807313,
-0.4133999646,
0.0716985464,
-0.2496191561,
-0.3231572211,
0.159161523,
-0.250703305,
-0.2010602355,
0.177694425,
-0.2587881684,
0.2284643203,
0.0260749441,
-0.0663727522,
0.4716355801,
-0.1141983345,
-0.1069330126,
0.3006840646,
-0.047139246,
-0.0889479741,
-0.1888509691,
0.009424163,
-0.0697389245,
0.2475737333,
0.5000484586,
-0.1218191311,
-0.036887303,
-0.1750988662,
-0.0812498257,
0.1250167638,
0.0917121768,
0.2032328844,
0.1998405159,
-0.2620665133,
-0.2598941922,
-0.0320798904,
-0.177294299,
-0.2796156704,
0.2072874904,
0.0089061009,
-0.0291703772,
0.2409034222,
0.0525549017,
-0.1873457879,
-0.0364573188,
0.1764350384,
-0.17674613,
-0.0665929019,
0.5022161603,
0.4060558081,
-0.2406094968,
-0.3803833723,
0.1318948269,
-0.0628112927,
-0.2885807455,
0.3547706902,
0.1688402444,
0.3007947206,
0.0165440552,
0.3438565433,
0.0157204289,
-0.0099179689,
0.1101289615,
-0.3858225942,
-0.182272777,
0.0273887832,
-0.3424879313,
0.0165283997,
0.173354134,
0.6295425296,
0.1122878864,
0.0537230559,
-0.4009521008,
-0.1003774256,
-0.0929585248,
0.2274134904,
0.4283627868,
-0.1619133502,
-0.0227418132,
0.0861175731,
0.1760026515,
0.0346552618,
-0.2526119947,
-0.3148130476,
-0.2940257192,
0.0661310852,
0.1720107347,
-0.4291431904,
0.3799622059,
0.0724910498,
-0.0009614315,
-0.3068477511,
-0.1781095862,
0.089336738,
-0.1307529062,
0.3698423803,
0.1245564297,
0.1172237247,
0.175313279,
0.0280542057,
0.122926496,
0.109699443,
-0.0064219679,
0.1405477077,
0.0346084349,
-0.0513196252,
-0.1968660057,
0.0078801531,
0.0852089077,
0.2760113776,
0.1000635847,
-0.4387732446,
-0.1408095509,
-0.1907572299,
0.3313596547,
0.4964479506,
-0.2855861485,
-0.0179454796,
0.1170453802,
0.2279495895,
-0.431779623,
0.0991012901,
0.4069513977,
0.0616519861,
0.0558138005,
0.16057688,
-0.1963248998,
-0.0263520349,
-0.2005508393,
-0.0155230453,
-0.0812871903,
-0.2450971305,
0.1379801631,
0.2535308301,
-0.1621551067,
0.0723397806,
0.2234296799,
0.2248424888,
0.2094133198,
0.4411477745,
-0.0880136117,
0.033532314,
0.3215837479,
-0.1977277994,
0.0530195385,
-0.4163440466,
-0.2213224918,
0.0046017999,
0.155584082,
0.0431443453,
-0.030800622,
0.0894240588,
0.0554314926,
-0.0492897108,
0.091109097,
0.1842015088,
-0.175498113,
-0.0029798152,
0.0702132136,
0.1035521701,
-0.1834440678,
-0.2007073909,
-0.0523935705,
0.0233832151,
-0.0611662082,
0.0867938027,
0.1566934884,
-0.550983727,
-0.0985003412,
0.0284028444,
-0.3185493648,
-0.4562837481,
0.0733107179,
0.4109582305,
0.095485121,
-0.1203893647,
-0.007495149,
0.6174409389,
0.4333243668,
-0.0764669627,
-0.1840571016,
-0.2809351981,
-0.046759326,
-0.0322064199,
0.0866957009,
0.1216949373,
0.2625560462,
0.5520275831,
0.1766431481,
-0.1991809905,
0.1269986331,
0.2516283691,
-0.2234729826,
-0.1569372416,
0.2527379096,
-0.0195225347,
-0.1268070042,
-0.28254053,
0.1944850087,
-0.2954166532,
0.1875003427,
0.4098544121,
0.2683025599,
0.1570730805,
-0.1060612425,
0.1378096491,
0.1873126328,
0.5516353846,
0.1906978935,
0.3860895336,
-0.3571791947,
-0.0554284416,
-0.5711799264,
-0.0245897584,
-0.1053962931,
-0.0316515937,
-0.1443446428,
-0.0839930549,
0.0324574858,
0.2593311369,
0.1967315674,
0.1654992551,
0.1051032469,
-0.0875485167,
-0.2856193185,
-0.1786559373,
0.037755698,
-0.1408989429,
0.1282964945,
-0.2223505378,
-0.0397657081,
-0.4887034893,
0.1265329719,
-0.3787435591,
-0.220805347,
0.0734933764,
0.435713321,
0.2232681066,
0.2265579104,
0.5930401087,
-0.0317762457,
-0.0286307782,
-0.3275701106,
-0.2059123963,
-0.1545396,
0.3455996811,
0.0363040566,
0.4889933467,
-0.107165955,
-0.0158568565,
-0.3778455555,
0.1949939132,
-0.3336423635,
0.0198233947,
-0.1027709991,
0.1275239885,
-0.1381614953,
0.1817006767,
0.0611191429,
0.0021517754,
-0.1441735774,
0.2395444065,
-0.3893559873,
-0.4405486882,
0.5200939178,
-0.4261544645,
-0.6753060222,
-0.1937558502,
0.0424240716,
-0.245048359,
-0.1419902146,
-0.4619944096,
0.062090788,
0.2820004523,
-0.0690545663,
-0.2712807059,
0.3742439151,
-0.1549427062,
0.0212924313,
0.0864810497,
0.2581359446,
0.077080667,
-0.2606580257,
-0.2184215486,
-0.2339113504
] |
https://github.com/huggingface/datasets/issues/156 | SyntaxError with WMT datasets | Usually, the idea is that a dataset can be added without releasing a new version. The problem in the case of `WMT` was that some "core" code of the library had to be changed as well.
@thomwolf @lhoestq @julien-c - How should we go about this. If we add a dataset that also requires "core" code changes, how do we handle the versioning? The moment a dataset is on AWS it will actually be listed with `list_datasets()` in all earlier versions...
Is there a way to somehow insert the `pip version` to the HfApi() and get only the datasets that were available for this version (at the date of the release of the version) @julien-c ? | The following snippet produces a syntax error:
```
import nlp
dataset = nlp.load_dataset('wmt14')
print(dataset['train'][0])
```
```
Traceback (most recent call last):
File "/home/tom/.local/lib/python3.6/site-packages/IPython/core/interactiveshell.py", line 3326, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "<ipython-input-8-3206959998b9>", line 3, in <module>
dataset = nlp.load_dataset('wmt14')
File "/home/tom/.local/lib/python3.6/site-packages/nlp/load.py", line 505, in load_dataset
builder_cls = import_main_class(module_path, dataset=True)
File "/home/tom/.local/lib/python3.6/site-packages/nlp/load.py", line 56, in import_main_class
module = importlib.import_module(module_path)
File "/usr/lib/python3.6/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 994, in _gcd_import
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 678, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/home/tom/.local/lib/python3.6/site-packages/nlp/datasets/wmt14/c258d646f4f5870b0245f783b7aa0af85c7117e06aacf1e0340bd81935094de2/wmt14.py", line 21, in <module>
from .wmt_utils import Wmt, WmtConfig
File "/home/tom/.local/lib/python3.6/site-packages/nlp/datasets/wmt14/c258d646f4f5870b0245f783b7aa0af85c7117e06aacf1e0340bd81935094de2/wmt_utils.py", line 659
<<<<<<< HEAD
^
SyntaxError: invalid syntax
```
Python version:
`3.6.9 (default, Apr 18 2020, 01:56:04) [GCC 8.4.0]`
Running on Ubuntu 18.04, via a Jupyter notebook | 116 | SyntaxError with WMT datasets
The following snippet produces a syntax error:
```
import nlp
dataset = nlp.load_dataset('wmt14')
print(dataset['train'][0])
```
```
Traceback (most recent call last):
File "/home/tom/.local/lib/python3.6/site-packages/IPython/core/interactiveshell.py", line 3326, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "<ipython-input-8-3206959998b9>", line 3, in <module>
dataset = nlp.load_dataset('wmt14')
File "/home/tom/.local/lib/python3.6/site-packages/nlp/load.py", line 505, in load_dataset
builder_cls = import_main_class(module_path, dataset=True)
File "/home/tom/.local/lib/python3.6/site-packages/nlp/load.py", line 56, in import_main_class
module = importlib.import_module(module_path)
File "/usr/lib/python3.6/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 994, in _gcd_import
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 678, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/home/tom/.local/lib/python3.6/site-packages/nlp/datasets/wmt14/c258d646f4f5870b0245f783b7aa0af85c7117e06aacf1e0340bd81935094de2/wmt14.py", line 21, in <module>
from .wmt_utils import Wmt, WmtConfig
File "/home/tom/.local/lib/python3.6/site-packages/nlp/datasets/wmt14/c258d646f4f5870b0245f783b7aa0af85c7117e06aacf1e0340bd81935094de2/wmt_utils.py", line 659
<<<<<<< HEAD
^
SyntaxError: invalid syntax
```
Python version:
`3.6.9 (default, Apr 18 2020, 01:56:04) [GCC 8.4.0]`
Running on Ubuntu 18.04, via a Jupyter notebook
Usually, the idea is that a dataset can be added without releasing a new version. The problem in the case of `WMT` was that some "core" code of the library had to be changed as well.
@thomwolf @lhoestq @julien-c - How should we go about this. If we add a dataset that also requires "core" code changes, how do we handle the versioning? The moment a dataset is on AWS it will actually be listed with `list_datasets()` in all earlier versions...
Is there a way to somehow insert the `pip version` to the HfApi() and get only the datasets that were available for this version (at the date of the release of the version) @julien-c ? | [
-0.3297367394,
0.0324436054,
-0.0193531327,
0.0127458628,
0.2164736986,
-0.014922413,
0.3609465659,
0.5264437795,
0.1301546246,
-0.1121619493,
0.0932864547,
0.4350024164,
-0.3767535388,
0.1414317042,
0.1508706957,
-0.1754978597,
-0.0268027131,
0.1413965076,
-0.358635813,
0.1519567966,
-0.2946049273,
0.1583639681,
-0.4209617376,
0.2173395157,
-0.2542879283,
-0.0902358443,
-0.0211465582,
0.1449499279,
-0.1394592673,
-0.4628490806,
0.1408033073,
-0.0065227915,
0.2389949858,
0.3692950308,
-0.0001028357,
-0.0074910582,
0.1617365777,
-0.0390186757,
-0.3923015893,
-0.3421504796,
-0.4517920911,
-0.1481354982,
0.1438383758,
-0.2942017317,
0.0407955982,
-0.1019725502,
0.0120903281,
-0.2335638106,
0.5227857232,
0.4709783792,
0.2622492909,
0.4046526253,
-0.0788423568,
-0.1995572448,
0.0400842987,
0.1868067682,
-0.0251020659,
0.2721500099,
-0.0462757237,
-0.3078270555,
0.0443686098,
0.2844173908,
-0.0971550196,
0.2046326101,
0.228813231,
0.0462169684,
0.1737396717,
0.0146226287,
-0.1336926073,
0.1116889268,
0.376653403,
-0.334050864,
-0.1922970116,
-0.0254197773,
-0.0237152409,
-0.3796637058,
0.173744902,
0.2510082424,
-0.2430956215,
0.2042773515,
-0.2803638875,
0.0721920282,
-0.0495337285,
0.2802929282,
-0.0419158079,
0.728919208,
-0.15155527,
0.0830517635,
-0.0326684229,
-0.1897673905,
0.1182418168,
-0.0233936664,
-0.0012604583,
0.1437295973,
-0.069619447,
-0.0688927323,
0.281044811,
-0.0273934454,
-0.2340155691,
0.0267738793,
0.181695357,
-0.1459487677,
0.1988346428,
0.1966278106,
0.2838437557,
-0.0644871891,
0.0399040952,
-0.0328312181,
0.2843933403,
0.2534205914,
-0.0275104083,
0.047552947,
-0.1733618379,
-0.468991369,
-0.0253391583,
0.0136440163,
0.5950093865,
0.1803967655,
-0.2701009214,
-0.0289221071,
-0.2787002027,
-0.3027985394,
-0.0676976964,
0.2093277574,
0.121819824,
-0.1600494832,
0.3483575881,
0.0752086714,
-0.2440334111,
-0.1647191495,
-0.2930479944,
0.3408953547,
-0.3188332617,
-0.1684278548,
0.2188080549,
0.2253616303,
0.0922133476,
0.0471642986,
-0.0809150562,
-0.1988426,
0.1389290541,
-0.0077621276,
0.1081167683,
0.1051956564,
-0.1785956025,
0.0933399424,
0.2775602639,
-0.1004937813,
-0.0483995713,
0.2007461637,
-0.0364868008,
-0.0897132829,
-0.1614138186,
0.28895998,
-0.1801723242,
-0.0983837098,
0.0543796048,
0.0768854022,
0.255202651,
-0.087790668,
0.0312969089,
-0.3928903639,
-0.2555432022,
-0.1649034023,
0.1820679009,
0.4742362201,
-0.4417521358,
-0.194307059,
-0.1998417526,
-0.1128744408,
0.1960723698,
0.1654728353,
-0.1848081648,
0.6032978296,
-0.1668523103,
0.1821197718,
0.4813291132,
-0.2698023915,
0.1708315611,
0.0655023381,
-0.2529612482,
0.076276429,
-0.0907962844,
-0.0454186834,
-0.0019625914,
-0.0203297753,
0.3685541749,
0.257096529,
-0.0868278295,
-0.0704207122,
0.02580221,
0.0281275027,
0.5934321284,
0.0462835468,
-0.0008243832,
-0.2142315358,
0.0578707531,
0.4939415753,
0.2460768223,
-0.0577070378,
-0.0333488211,
-0.0137070911,
0.0170148574,
-0.1148450002,
-0.3352915347,
-0.2411741614,
-0.2232070863,
-0.109365277,
0.0478309654,
0.3630457222,
-0.1524046808,
0.2927410007,
-0.2438348383,
0.0848260522,
-0.2252931744,
-0.2423848957,
0.2631047964,
0.0465613455,
-0.2522634566,
-0.1086916327,
-0.0686345845,
-0.080072023,
0.0088360868,
0.0938630328,
-0.1322341859,
0.1556386352,
-0.2579878271,
-0.3206019402,
0.1305003464,
0.2569968104,
0.1654369831,
-0.0436953194,
-0.2140457928,
0.2780264914,
0.1649136394,
-0.0692976192,
-0.2854146957,
-0.0294153709,
-0.0743026882,
-0.1602806747,
0.1651480347,
0.1794784814,
0.1970851123,
-0.1973394305,
-0.2075013071,
0.1806470752,
-0.0234829001,
0.0752801374,
0.148913458,
0.1009815559,
0.1457810402,
0.0210331939,
0.0285008941,
-0.2971126735,
0.1780159026,
-0.0241098478,
-0.1505931169,
-0.0727761313,
-0.1188312247,
-0.105658181,
0.5293697715,
0.2276985645,
0.224109441,
-0.2177880257,
-0.2621046901,
-0.0811997801,
0.0782552212,
0.0705174431,
0.4799799919,
0.1782224923,
-0.0041788649,
0.1772152781,
-0.0156669095,
-0.2165575475,
0.2168711722,
0.1818332076,
0.0331382267,
-0.0351119861,
0.0385486186,
0.0851171836,
-0.1735183746,
-0.2818621397,
-0.0842829943,
0.1642438173,
-0.3306984305,
0.0497130342,
-0.4721487164,
-0.3931069374,
-0.4514599144,
-0.3841333985,
-0.1739956439,
-0.4288797677,
-0.1867689788,
-0.0351117216,
-0.2173171341,
0.3002479374,
-0.1404795349,
-0.0482546836,
0.1101875231,
0.066379264,
0.0988492742,
-0.2670577168,
-0.1530420631,
0.1411230862,
0.3205444813,
0.1450355947,
0.3701428771,
-0.0794280618,
0.0111536346,
0.0473324023,
-0.3408439457,
0.1160992384,
-0.100981988,
0.2626492977,
0.4324876666,
0.3414854109,
0.0838389695,
-0.2842499912,
0.4270728827,
-0.0637359396,
0.0510102436,
0.0498755984,
0.1940961629,
-0.1479693204,
-0.3029946983,
-0.4622399211,
-0.3657281995,
-0.4703691304,
-0.1216415539,
0.1440427154,
0.1319938749,
0.4903209507,
-0.0182415005,
0.3564137518,
-0.0871035382,
-0.0005424811,
0.0735501051,
0.0614892542,
0.2821261585,
-0.3124623597,
-0.1920034885,
0.0803079009,
0.035807021,
0.2169489264,
-0.171344623,
-0.2317764163,
0.1126878113,
-0.1056706011,
0.1334697455,
0.0481276214,
0.1015140116,
0.1759225279,
0.2410975099,
-0.2015780061,
-0.3006727099,
-0.346781373,
0.0994992554,
0.1069888771,
0.1258558333,
-0.101753071,
0.1422886848,
0.1000690684,
0.3848870993,
0.0874496549,
-0.1828736067,
0.3111948669,
0.0411569625,
0.3453079462,
-0.0618222877,
-0.3201504648,
0.2449907809,
-0.058773987,
0.1667981297,
0.2006138265,
-0.1382380128,
0.0803108811,
-0.2032090873,
-0.0921044946,
-0.0643966049,
-0.4186587334,
0.1118847057,
0.0074185291,
0.1880874336,
0.2058226466,
0.0365456119,
-0.1949252337,
0.0036354484,
-0.0097368266,
0.2998480201,
0.0105653005,
0.1356201321,
-0.1349021047,
-0.0225579794,
-0.3069859445,
0.1838999093,
0.2323765159,
0.4915711582,
-0.0271856785,
-0.1784803718,
-0.2188407332,
0.0941774026,
0.1146479771,
-0.1356559545,
0.1829946041,
0.457182318,
0.0663696527,
-0.2134141177,
-0.172186926,
-0.5033165216,
0.1326623708,
0.4361286163,
0.0677455887,
-0.0008685674,
-0.3626331985,
0.4444147944,
0.1816578954,
-0.1891020983,
-0.2773979306,
-0.0000777667,
-0.071603179,
-0.3365021348,
0.044152271,
0.0950582325,
0.1696864069,
0.2260650545,
0.0341114029,
0.1553544998,
0.0793136284,
0.1081612185,
0.1017454118,
-0.0415178351,
0.1275672466,
0.041358389,
-0.1016532928,
0.1490106881,
0.2546506822,
0.3937420845,
-0.1238747835,
-0.1940543354,
-0.1644194424,
0.0299258828,
0.3551035225,
0.0970902592,
-0.0819734186,
0.1334189773,
0.0647360757,
0.1381147206,
-0.2426777333,
0.2743782103,
0.2958749533,
0.1709006578,
-0.3747495711,
-0.3495922685,
-0.0297986921,
-0.0531898402,
0.1575483978,
0.1404523253,
-0.06189619,
-0.3537501693,
-0.0751760751,
-0.009429642,
0.5648846626,
0.1630989909,
0.2897146344,
0.4404498637,
-0.0870267376,
0.4734365344,
0.1777279377,
0.0051306565,
-0.2467222512,
0.1247944832,
0.0227171164,
-0.1888539791,
0.2077723444,
0.137724191,
-0.2474352717,
0.2713086605,
-0.0384191722,
0.2527680099,
0.0651764944,
0.0909023434,
0.3361057639,
-0.1986483783,
-0.409568876,
0.2058807313,
-0.4133999646,
0.0716985464,
-0.2496191561,
-0.3231572211,
0.159161523,
-0.250703305,
-0.2010602355,
0.177694425,
-0.2587881684,
0.2284643203,
0.0260749441,
-0.0663727522,
0.4716355801,
-0.1141983345,
-0.1069330126,
0.3006840646,
-0.047139246,
-0.0889479741,
-0.1888509691,
0.009424163,
-0.0697389245,
0.2475737333,
0.5000484586,
-0.1218191311,
-0.036887303,
-0.1750988662,
-0.0812498257,
0.1250167638,
0.0917121768,
0.2032328844,
0.1998405159,
-0.2620665133,
-0.2598941922,
-0.0320798904,
-0.177294299,
-0.2796156704,
0.2072874904,
0.0089061009,
-0.0291703772,
0.2409034222,
0.0525549017,
-0.1873457879,
-0.0364573188,
0.1764350384,
-0.17674613,
-0.0665929019,
0.5022161603,
0.4060558081,
-0.2406094968,
-0.3803833723,
0.1318948269,
-0.0628112927,
-0.2885807455,
0.3547706902,
0.1688402444,
0.3007947206,
0.0165440552,
0.3438565433,
0.0157204289,
-0.0099179689,
0.1101289615,
-0.3858225942,
-0.182272777,
0.0273887832,
-0.3424879313,
0.0165283997,
0.173354134,
0.6295425296,
0.1122878864,
0.0537230559,
-0.4009521008,
-0.1003774256,
-0.0929585248,
0.2274134904,
0.4283627868,
-0.1619133502,
-0.0227418132,
0.0861175731,
0.1760026515,
0.0346552618,
-0.2526119947,
-0.3148130476,
-0.2940257192,
0.0661310852,
0.1720107347,
-0.4291431904,
0.3799622059,
0.0724910498,
-0.0009614315,
-0.3068477511,
-0.1781095862,
0.089336738,
-0.1307529062,
0.3698423803,
0.1245564297,
0.1172237247,
0.175313279,
0.0280542057,
0.122926496,
0.109699443,
-0.0064219679,
0.1405477077,
0.0346084349,
-0.0513196252,
-0.1968660057,
0.0078801531,
0.0852089077,
0.2760113776,
0.1000635847,
-0.4387732446,
-0.1408095509,
-0.1907572299,
0.3313596547,
0.4964479506,
-0.2855861485,
-0.0179454796,
0.1170453802,
0.2279495895,
-0.431779623,
0.0991012901,
0.4069513977,
0.0616519861,
0.0558138005,
0.16057688,
-0.1963248998,
-0.0263520349,
-0.2005508393,
-0.0155230453,
-0.0812871903,
-0.2450971305,
0.1379801631,
0.2535308301,
-0.1621551067,
0.0723397806,
0.2234296799,
0.2248424888,
0.2094133198,
0.4411477745,
-0.0880136117,
0.033532314,
0.3215837479,
-0.1977277994,
0.0530195385,
-0.4163440466,
-0.2213224918,
0.0046017999,
0.155584082,
0.0431443453,
-0.030800622,
0.0894240588,
0.0554314926,
-0.0492897108,
0.091109097,
0.1842015088,
-0.175498113,
-0.0029798152,
0.0702132136,
0.1035521701,
-0.1834440678,
-0.2007073909,
-0.0523935705,
0.0233832151,
-0.0611662082,
0.0867938027,
0.1566934884,
-0.550983727,
-0.0985003412,
0.0284028444,
-0.3185493648,
-0.4562837481,
0.0733107179,
0.4109582305,
0.095485121,
-0.1203893647,
-0.007495149,
0.6174409389,
0.4333243668,
-0.0764669627,
-0.1840571016,
-0.2809351981,
-0.046759326,
-0.0322064199,
0.0866957009,
0.1216949373,
0.2625560462,
0.5520275831,
0.1766431481,
-0.1991809905,
0.1269986331,
0.2516283691,
-0.2234729826,
-0.1569372416,
0.2527379096,
-0.0195225347,
-0.1268070042,
-0.28254053,
0.1944850087,
-0.2954166532,
0.1875003427,
0.4098544121,
0.2683025599,
0.1570730805,
-0.1060612425,
0.1378096491,
0.1873126328,
0.5516353846,
0.1906978935,
0.3860895336,
-0.3571791947,
-0.0554284416,
-0.5711799264,
-0.0245897584,
-0.1053962931,
-0.0316515937,
-0.1443446428,
-0.0839930549,
0.0324574858,
0.2593311369,
0.1967315674,
0.1654992551,
0.1051032469,
-0.0875485167,
-0.2856193185,
-0.1786559373,
0.037755698,
-0.1408989429,
0.1282964945,
-0.2223505378,
-0.0397657081,
-0.4887034893,
0.1265329719,
-0.3787435591,
-0.220805347,
0.0734933764,
0.435713321,
0.2232681066,
0.2265579104,
0.5930401087,
-0.0317762457,
-0.0286307782,
-0.3275701106,
-0.2059123963,
-0.1545396,
0.3455996811,
0.0363040566,
0.4889933467,
-0.107165955,
-0.0158568565,
-0.3778455555,
0.1949939132,
-0.3336423635,
0.0198233947,
-0.1027709991,
0.1275239885,
-0.1381614953,
0.1817006767,
0.0611191429,
0.0021517754,
-0.1441735774,
0.2395444065,
-0.3893559873,
-0.4405486882,
0.5200939178,
-0.4261544645,
-0.6753060222,
-0.1937558502,
0.0424240716,
-0.245048359,
-0.1419902146,
-0.4619944096,
0.062090788,
0.2820004523,
-0.0690545663,
-0.2712807059,
0.3742439151,
-0.1549427062,
0.0212924313,
0.0864810497,
0.2581359446,
0.077080667,
-0.2606580257,
-0.2184215486,
-0.2339113504
] |
https://github.com/huggingface/datasets/issues/156 | SyntaxError with WMT datasets | We plan to have something like a `requirements.txt` per dataset to prevent user from loading dataset with old version of `nlp` or any other libraries. Right now the solution is just to keep `nlp` up to date when you want to load a dataset that leverages the latests features of `nlp`.
For datasets that are on AWS but that use features that are not released yet we should be able to filter those from the `list_dataset` as soon as we have the `requirements.txt` feature on (filter datasets that need a future version of `nlp`).
Shall we rename this issue to be more explicit about the problem ?
Something like `Specify the minimum version of the nlp library required for each dataset` ? | The following snippet produces a syntax error:
```
import nlp
dataset = nlp.load_dataset('wmt14')
print(dataset['train'][0])
```
```
Traceback (most recent call last):
File "/home/tom/.local/lib/python3.6/site-packages/IPython/core/interactiveshell.py", line 3326, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "<ipython-input-8-3206959998b9>", line 3, in <module>
dataset = nlp.load_dataset('wmt14')
File "/home/tom/.local/lib/python3.6/site-packages/nlp/load.py", line 505, in load_dataset
builder_cls = import_main_class(module_path, dataset=True)
File "/home/tom/.local/lib/python3.6/site-packages/nlp/load.py", line 56, in import_main_class
module = importlib.import_module(module_path)
File "/usr/lib/python3.6/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 994, in _gcd_import
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 678, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/home/tom/.local/lib/python3.6/site-packages/nlp/datasets/wmt14/c258d646f4f5870b0245f783b7aa0af85c7117e06aacf1e0340bd81935094de2/wmt14.py", line 21, in <module>
from .wmt_utils import Wmt, WmtConfig
File "/home/tom/.local/lib/python3.6/site-packages/nlp/datasets/wmt14/c258d646f4f5870b0245f783b7aa0af85c7117e06aacf1e0340bd81935094de2/wmt_utils.py", line 659
<<<<<<< HEAD
^
SyntaxError: invalid syntax
```
Python version:
`3.6.9 (default, Apr 18 2020, 01:56:04) [GCC 8.4.0]`
Running on Ubuntu 18.04, via a Jupyter notebook | 122 | SyntaxError with WMT datasets
The following snippet produces a syntax error:
```
import nlp
dataset = nlp.load_dataset('wmt14')
print(dataset['train'][0])
```
```
Traceback (most recent call last):
File "/home/tom/.local/lib/python3.6/site-packages/IPython/core/interactiveshell.py", line 3326, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "<ipython-input-8-3206959998b9>", line 3, in <module>
dataset = nlp.load_dataset('wmt14')
File "/home/tom/.local/lib/python3.6/site-packages/nlp/load.py", line 505, in load_dataset
builder_cls = import_main_class(module_path, dataset=True)
File "/home/tom/.local/lib/python3.6/site-packages/nlp/load.py", line 56, in import_main_class
module = importlib.import_module(module_path)
File "/usr/lib/python3.6/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 994, in _gcd_import
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 678, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/home/tom/.local/lib/python3.6/site-packages/nlp/datasets/wmt14/c258d646f4f5870b0245f783b7aa0af85c7117e06aacf1e0340bd81935094de2/wmt14.py", line 21, in <module>
from .wmt_utils import Wmt, WmtConfig
File "/home/tom/.local/lib/python3.6/site-packages/nlp/datasets/wmt14/c258d646f4f5870b0245f783b7aa0af85c7117e06aacf1e0340bd81935094de2/wmt_utils.py", line 659
<<<<<<< HEAD
^
SyntaxError: invalid syntax
```
Python version:
`3.6.9 (default, Apr 18 2020, 01:56:04) [GCC 8.4.0]`
Running on Ubuntu 18.04, via a Jupyter notebook
We plan to have something like a `requirements.txt` per dataset to prevent user from loading dataset with old version of `nlp` or any other libraries. Right now the solution is just to keep `nlp` up to date when you want to load a dataset that leverages the latests features of `nlp`.
For datasets that are on AWS but that use features that are not released yet we should be able to filter those from the `list_dataset` as soon as we have the `requirements.txt` feature on (filter datasets that need a future version of `nlp`).
Shall we rename this issue to be more explicit about the problem ?
Something like `Specify the minimum version of the nlp library required for each dataset` ? | [
-0.3297367394,
0.0324436054,
-0.0193531327,
0.0127458628,
0.2164736986,
-0.014922413,
0.3609465659,
0.5264437795,
0.1301546246,
-0.1121619493,
0.0932864547,
0.4350024164,
-0.3767535388,
0.1414317042,
0.1508706957,
-0.1754978597,
-0.0268027131,
0.1413965076,
-0.358635813,
0.1519567966,
-0.2946049273,
0.1583639681,
-0.4209617376,
0.2173395157,
-0.2542879283,
-0.0902358443,
-0.0211465582,
0.1449499279,
-0.1394592673,
-0.4628490806,
0.1408033073,
-0.0065227915,
0.2389949858,
0.3692950308,
-0.0001028357,
-0.0074910582,
0.1617365777,
-0.0390186757,
-0.3923015893,
-0.3421504796,
-0.4517920911,
-0.1481354982,
0.1438383758,
-0.2942017317,
0.0407955982,
-0.1019725502,
0.0120903281,
-0.2335638106,
0.5227857232,
0.4709783792,
0.2622492909,
0.4046526253,
-0.0788423568,
-0.1995572448,
0.0400842987,
0.1868067682,
-0.0251020659,
0.2721500099,
-0.0462757237,
-0.3078270555,
0.0443686098,
0.2844173908,
-0.0971550196,
0.2046326101,
0.228813231,
0.0462169684,
0.1737396717,
0.0146226287,
-0.1336926073,
0.1116889268,
0.376653403,
-0.334050864,
-0.1922970116,
-0.0254197773,
-0.0237152409,
-0.3796637058,
0.173744902,
0.2510082424,
-0.2430956215,
0.2042773515,
-0.2803638875,
0.0721920282,
-0.0495337285,
0.2802929282,
-0.0419158079,
0.728919208,
-0.15155527,
0.0830517635,
-0.0326684229,
-0.1897673905,
0.1182418168,
-0.0233936664,
-0.0012604583,
0.1437295973,
-0.069619447,
-0.0688927323,
0.281044811,
-0.0273934454,
-0.2340155691,
0.0267738793,
0.181695357,
-0.1459487677,
0.1988346428,
0.1966278106,
0.2838437557,
-0.0644871891,
0.0399040952,
-0.0328312181,
0.2843933403,
0.2534205914,
-0.0275104083,
0.047552947,
-0.1733618379,
-0.468991369,
-0.0253391583,
0.0136440163,
0.5950093865,
0.1803967655,
-0.2701009214,
-0.0289221071,
-0.2787002027,
-0.3027985394,
-0.0676976964,
0.2093277574,
0.121819824,
-0.1600494832,
0.3483575881,
0.0752086714,
-0.2440334111,
-0.1647191495,
-0.2930479944,
0.3408953547,
-0.3188332617,
-0.1684278548,
0.2188080549,
0.2253616303,
0.0922133476,
0.0471642986,
-0.0809150562,
-0.1988426,
0.1389290541,
-0.0077621276,
0.1081167683,
0.1051956564,
-0.1785956025,
0.0933399424,
0.2775602639,
-0.1004937813,
-0.0483995713,
0.2007461637,
-0.0364868008,
-0.0897132829,
-0.1614138186,
0.28895998,
-0.1801723242,
-0.0983837098,
0.0543796048,
0.0768854022,
0.255202651,
-0.087790668,
0.0312969089,
-0.3928903639,
-0.2555432022,
-0.1649034023,
0.1820679009,
0.4742362201,
-0.4417521358,
-0.194307059,
-0.1998417526,
-0.1128744408,
0.1960723698,
0.1654728353,
-0.1848081648,
0.6032978296,
-0.1668523103,
0.1821197718,
0.4813291132,
-0.2698023915,
0.1708315611,
0.0655023381,
-0.2529612482,
0.076276429,
-0.0907962844,
-0.0454186834,
-0.0019625914,
-0.0203297753,
0.3685541749,
0.257096529,
-0.0868278295,
-0.0704207122,
0.02580221,
0.0281275027,
0.5934321284,
0.0462835468,
-0.0008243832,
-0.2142315358,
0.0578707531,
0.4939415753,
0.2460768223,
-0.0577070378,
-0.0333488211,
-0.0137070911,
0.0170148574,
-0.1148450002,
-0.3352915347,
-0.2411741614,
-0.2232070863,
-0.109365277,
0.0478309654,
0.3630457222,
-0.1524046808,
0.2927410007,
-0.2438348383,
0.0848260522,
-0.2252931744,
-0.2423848957,
0.2631047964,
0.0465613455,
-0.2522634566,
-0.1086916327,
-0.0686345845,
-0.080072023,
0.0088360868,
0.0938630328,
-0.1322341859,
0.1556386352,
-0.2579878271,
-0.3206019402,
0.1305003464,
0.2569968104,
0.1654369831,
-0.0436953194,
-0.2140457928,
0.2780264914,
0.1649136394,
-0.0692976192,
-0.2854146957,
-0.0294153709,
-0.0743026882,
-0.1602806747,
0.1651480347,
0.1794784814,
0.1970851123,
-0.1973394305,
-0.2075013071,
0.1806470752,
-0.0234829001,
0.0752801374,
0.148913458,
0.1009815559,
0.1457810402,
0.0210331939,
0.0285008941,
-0.2971126735,
0.1780159026,
-0.0241098478,
-0.1505931169,
-0.0727761313,
-0.1188312247,
-0.105658181,
0.5293697715,
0.2276985645,
0.224109441,
-0.2177880257,
-0.2621046901,
-0.0811997801,
0.0782552212,
0.0705174431,
0.4799799919,
0.1782224923,
-0.0041788649,
0.1772152781,
-0.0156669095,
-0.2165575475,
0.2168711722,
0.1818332076,
0.0331382267,
-0.0351119861,
0.0385486186,
0.0851171836,
-0.1735183746,
-0.2818621397,
-0.0842829943,
0.1642438173,
-0.3306984305,
0.0497130342,
-0.4721487164,
-0.3931069374,
-0.4514599144,
-0.3841333985,
-0.1739956439,
-0.4288797677,
-0.1867689788,
-0.0351117216,
-0.2173171341,
0.3002479374,
-0.1404795349,
-0.0482546836,
0.1101875231,
0.066379264,
0.0988492742,
-0.2670577168,
-0.1530420631,
0.1411230862,
0.3205444813,
0.1450355947,
0.3701428771,
-0.0794280618,
0.0111536346,
0.0473324023,
-0.3408439457,
0.1160992384,
-0.100981988,
0.2626492977,
0.4324876666,
0.3414854109,
0.0838389695,
-0.2842499912,
0.4270728827,
-0.0637359396,
0.0510102436,
0.0498755984,
0.1940961629,
-0.1479693204,
-0.3029946983,
-0.4622399211,
-0.3657281995,
-0.4703691304,
-0.1216415539,
0.1440427154,
0.1319938749,
0.4903209507,
-0.0182415005,
0.3564137518,
-0.0871035382,
-0.0005424811,
0.0735501051,
0.0614892542,
0.2821261585,
-0.3124623597,
-0.1920034885,
0.0803079009,
0.035807021,
0.2169489264,
-0.171344623,
-0.2317764163,
0.1126878113,
-0.1056706011,
0.1334697455,
0.0481276214,
0.1015140116,
0.1759225279,
0.2410975099,
-0.2015780061,
-0.3006727099,
-0.346781373,
0.0994992554,
0.1069888771,
0.1258558333,
-0.101753071,
0.1422886848,
0.1000690684,
0.3848870993,
0.0874496549,
-0.1828736067,
0.3111948669,
0.0411569625,
0.3453079462,
-0.0618222877,
-0.3201504648,
0.2449907809,
-0.058773987,
0.1667981297,
0.2006138265,
-0.1382380128,
0.0803108811,
-0.2032090873,
-0.0921044946,
-0.0643966049,
-0.4186587334,
0.1118847057,
0.0074185291,
0.1880874336,
0.2058226466,
0.0365456119,
-0.1949252337,
0.0036354484,
-0.0097368266,
0.2998480201,
0.0105653005,
0.1356201321,
-0.1349021047,
-0.0225579794,
-0.3069859445,
0.1838999093,
0.2323765159,
0.4915711582,
-0.0271856785,
-0.1784803718,
-0.2188407332,
0.0941774026,
0.1146479771,
-0.1356559545,
0.1829946041,
0.457182318,
0.0663696527,
-0.2134141177,
-0.172186926,
-0.5033165216,
0.1326623708,
0.4361286163,
0.0677455887,
-0.0008685674,
-0.3626331985,
0.4444147944,
0.1816578954,
-0.1891020983,
-0.2773979306,
-0.0000777667,
-0.071603179,
-0.3365021348,
0.044152271,
0.0950582325,
0.1696864069,
0.2260650545,
0.0341114029,
0.1553544998,
0.0793136284,
0.1081612185,
0.1017454118,
-0.0415178351,
0.1275672466,
0.041358389,
-0.1016532928,
0.1490106881,
0.2546506822,
0.3937420845,
-0.1238747835,
-0.1940543354,
-0.1644194424,
0.0299258828,
0.3551035225,
0.0970902592,
-0.0819734186,
0.1334189773,
0.0647360757,
0.1381147206,
-0.2426777333,
0.2743782103,
0.2958749533,
0.1709006578,
-0.3747495711,
-0.3495922685,
-0.0297986921,
-0.0531898402,
0.1575483978,
0.1404523253,
-0.06189619,
-0.3537501693,
-0.0751760751,
-0.009429642,
0.5648846626,
0.1630989909,
0.2897146344,
0.4404498637,
-0.0870267376,
0.4734365344,
0.1777279377,
0.0051306565,
-0.2467222512,
0.1247944832,
0.0227171164,
-0.1888539791,
0.2077723444,
0.137724191,
-0.2474352717,
0.2713086605,
-0.0384191722,
0.2527680099,
0.0651764944,
0.0909023434,
0.3361057639,
-0.1986483783,
-0.409568876,
0.2058807313,
-0.4133999646,
0.0716985464,
-0.2496191561,
-0.3231572211,
0.159161523,
-0.250703305,
-0.2010602355,
0.177694425,
-0.2587881684,
0.2284643203,
0.0260749441,
-0.0663727522,
0.4716355801,
-0.1141983345,
-0.1069330126,
0.3006840646,
-0.047139246,
-0.0889479741,
-0.1888509691,
0.009424163,
-0.0697389245,
0.2475737333,
0.5000484586,
-0.1218191311,
-0.036887303,
-0.1750988662,
-0.0812498257,
0.1250167638,
0.0917121768,
0.2032328844,
0.1998405159,
-0.2620665133,
-0.2598941922,
-0.0320798904,
-0.177294299,
-0.2796156704,
0.2072874904,
0.0089061009,
-0.0291703772,
0.2409034222,
0.0525549017,
-0.1873457879,
-0.0364573188,
0.1764350384,
-0.17674613,
-0.0665929019,
0.5022161603,
0.4060558081,
-0.2406094968,
-0.3803833723,
0.1318948269,
-0.0628112927,
-0.2885807455,
0.3547706902,
0.1688402444,
0.3007947206,
0.0165440552,
0.3438565433,
0.0157204289,
-0.0099179689,
0.1101289615,
-0.3858225942,
-0.182272777,
0.0273887832,
-0.3424879313,
0.0165283997,
0.173354134,
0.6295425296,
0.1122878864,
0.0537230559,
-0.4009521008,
-0.1003774256,
-0.0929585248,
0.2274134904,
0.4283627868,
-0.1619133502,
-0.0227418132,
0.0861175731,
0.1760026515,
0.0346552618,
-0.2526119947,
-0.3148130476,
-0.2940257192,
0.0661310852,
0.1720107347,
-0.4291431904,
0.3799622059,
0.0724910498,
-0.0009614315,
-0.3068477511,
-0.1781095862,
0.089336738,
-0.1307529062,
0.3698423803,
0.1245564297,
0.1172237247,
0.175313279,
0.0280542057,
0.122926496,
0.109699443,
-0.0064219679,
0.1405477077,
0.0346084349,
-0.0513196252,
-0.1968660057,
0.0078801531,
0.0852089077,
0.2760113776,
0.1000635847,
-0.4387732446,
-0.1408095509,
-0.1907572299,
0.3313596547,
0.4964479506,
-0.2855861485,
-0.0179454796,
0.1170453802,
0.2279495895,
-0.431779623,
0.0991012901,
0.4069513977,
0.0616519861,
0.0558138005,
0.16057688,
-0.1963248998,
-0.0263520349,
-0.2005508393,
-0.0155230453,
-0.0812871903,
-0.2450971305,
0.1379801631,
0.2535308301,
-0.1621551067,
0.0723397806,
0.2234296799,
0.2248424888,
0.2094133198,
0.4411477745,
-0.0880136117,
0.033532314,
0.3215837479,
-0.1977277994,
0.0530195385,
-0.4163440466,
-0.2213224918,
0.0046017999,
0.155584082,
0.0431443453,
-0.030800622,
0.0894240588,
0.0554314926,
-0.0492897108,
0.091109097,
0.1842015088,
-0.175498113,
-0.0029798152,
0.0702132136,
0.1035521701,
-0.1834440678,
-0.2007073909,
-0.0523935705,
0.0233832151,
-0.0611662082,
0.0867938027,
0.1566934884,
-0.550983727,
-0.0985003412,
0.0284028444,
-0.3185493648,
-0.4562837481,
0.0733107179,
0.4109582305,
0.095485121,
-0.1203893647,
-0.007495149,
0.6174409389,
0.4333243668,
-0.0764669627,
-0.1840571016,
-0.2809351981,
-0.046759326,
-0.0322064199,
0.0866957009,
0.1216949373,
0.2625560462,
0.5520275831,
0.1766431481,
-0.1991809905,
0.1269986331,
0.2516283691,
-0.2234729826,
-0.1569372416,
0.2527379096,
-0.0195225347,
-0.1268070042,
-0.28254053,
0.1944850087,
-0.2954166532,
0.1875003427,
0.4098544121,
0.2683025599,
0.1570730805,
-0.1060612425,
0.1378096491,
0.1873126328,
0.5516353846,
0.1906978935,
0.3860895336,
-0.3571791947,
-0.0554284416,
-0.5711799264,
-0.0245897584,
-0.1053962931,
-0.0316515937,
-0.1443446428,
-0.0839930549,
0.0324574858,
0.2593311369,
0.1967315674,
0.1654992551,
0.1051032469,
-0.0875485167,
-0.2856193185,
-0.1786559373,
0.037755698,
-0.1408989429,
0.1282964945,
-0.2223505378,
-0.0397657081,
-0.4887034893,
0.1265329719,
-0.3787435591,
-0.220805347,
0.0734933764,
0.435713321,
0.2232681066,
0.2265579104,
0.5930401087,
-0.0317762457,
-0.0286307782,
-0.3275701106,
-0.2059123963,
-0.1545396,
0.3455996811,
0.0363040566,
0.4889933467,
-0.107165955,
-0.0158568565,
-0.3778455555,
0.1949939132,
-0.3336423635,
0.0198233947,
-0.1027709991,
0.1275239885,
-0.1381614953,
0.1817006767,
0.0611191429,
0.0021517754,
-0.1441735774,
0.2395444065,
-0.3893559873,
-0.4405486882,
0.5200939178,
-0.4261544645,
-0.6753060222,
-0.1937558502,
0.0424240716,
-0.245048359,
-0.1419902146,
-0.4619944096,
0.062090788,
0.2820004523,
-0.0690545663,
-0.2712807059,
0.3742439151,
-0.1549427062,
0.0212924313,
0.0864810497,
0.2581359446,
0.077080667,
-0.2606580257,
-0.2184215486,
-0.2339113504
] |
https://github.com/huggingface/datasets/issues/153 | Meta-datasets (GLUE/XTREME/...) – Special care to attributions and citations | As @yoavgo suggested, there should be the possibility to call a function like nlp.bib that outputs all bibtex ref from the datasets and models actually used and eventually nlp.bib.forreadme that would output the same info + versions numbers so they can be included in a readme.md file. | Meta-datasets are interesting in terms of standardized benchmarks but they also have specific behaviors, in particular in terms of attribution and authorship. It's very important that each specific dataset inside a meta dataset is properly referenced and the citation/specific homepage/etc are very visible and accessible and not only the generic citation of the meta-dataset itself.
Let's take GLUE as an example:
The configuration has the citation for each dataset included (e.g. [here](https://github.com/huggingface/nlp/blob/master/datasets/glue/glue.py#L154-L161)) but it should be copied inside the dataset info so that, when people access `dataset.info.citation` they get both the citation for GLUE and the citation for the specific datasets inside GLUE that they have loaded. | 47 | Meta-datasets (GLUE/XTREME/...) – Special care to attributions and citations
Meta-datasets are interesting in terms of standardized benchmarks but they also have specific behaviors, in particular in terms of attribution and authorship. It's very important that each specific dataset inside a meta dataset is properly referenced and the citation/specific homepage/etc are very visible and accessible and not only the generic citation of the meta-dataset itself.
Let's take GLUE as an example:
The configuration has the citation for each dataset included (e.g. [here](https://github.com/huggingface/nlp/blob/master/datasets/glue/glue.py#L154-L161)) but it should be copied inside the dataset info so that, when people access `dataset.info.citation` they get both the citation for GLUE and the citation for the specific datasets inside GLUE that they have loaded.
As @yoavgo suggested, there should be the possibility to call a function like nlp.bib that outputs all bibtex ref from the datasets and models actually used and eventually nlp.bib.forreadme that would output the same info + versions numbers so they can be included in a readme.md file. | [
0.0246245619,
0.1188307703,
-0.0451855846,
0.0450589061,
0.0441776253,
-0.037619736,
0.1662005782,
0.4080996215,
-0.016346585,
-0.0382258557,
-0.1563760489,
0.4495480955,
0.0651096851,
0.1650390029,
0.2494655997,
0.1432769001,
-0.083108753,
0.1260277182,
-0.0986575484,
-0.1266352683,
-0.0226356294,
-0.0005769364,
0.2753745317,
0.1213614047,
-0.072675094,
0.0683136061,
-0.0837134346,
-0.1722622365,
0.0561942719,
-0.3044900894,
0.0694036111,
0.2606019974,
-0.0170908943,
-0.2680613101,
-0.0000978849,
0.0377669074,
0.3440963626,
0.0101948306,
-0.3477294743,
-0.429287076,
-0.1936508119,
-0.1031002104,
0.1493566632,
-0.3307288289,
0.0033302235,
-0.0333790183,
0.2674752772,
-0.1879941523,
0.2923166156,
-0.0892808959,
0.2798752487,
0.1032135189,
-0.0715403035,
0.1634588391,
0.367985189,
0.3241042197,
0.0542783923,
0.108362712,
0.4975112081,
-0.0500439927,
-0.1755759269,
0.6305481195,
0.0459234342,
0.0036624421,
0.2669552863,
-0.0709659159,
0.5887316465,
-0.0492289588,
-0.0962989777,
0.5263553858,
0.2227199823,
-0.607483983,
-0.4398874938,
-0.3692811728,
0.0451756269,
0.2873603106,
-0.1065417752,
0.2674501538,
-0.0276880525,
0.1063173637,
-0.224041909,
-0.0661292598,
0.1180195585,
-0.048312638,
0.4212712049,
0.3543232381,
-0.1338101625,
0.119181104,
-0.0516938493,
-0.2293422818,
-0.0088687027,
-0.1549329609,
0.0400074497,
-0.0808938146,
0.1232387722,
-0.3047401309,
0.2001963556,
0.0923782885,
0.3088464141,
0.1367178708,
0.122009173,
0.0266146362,
-0.1460768282,
0.2947082818,
0.5069965124,
-0.1077481732,
0.083343938,
-0.1293120682,
0.4128333926,
-0.0750437677,
-0.0995053574,
0.1161194593,
0.0377845913,
0.277066648,
-0.4017127752,
-0.0321899541,
0.1351317316,
-0.3560896218,
-0.1103997007,
-0.2098339498,
-0.0043963236,
-0.1123193651,
-0.1871225685,
0.0738015845,
-0.0747262761,
0.0355081558,
-0.2478305697,
-0.0633664429,
-0.0975731984,
-0.2529427111,
-0.1559455395,
-0.0071639,
-0.4421661198,
0.062901184,
0.1075695157,
0.0717807487,
0.4380033314,
-0.1486309618,
-0.2177498937,
-0.0932366475,
0.0806351826,
-0.1154958531,
0.141805321,
0.0464001037,
-0.0120877828,
0.1354492605,
-0.0623425618,
-0.1585856676,
-0.5453760624,
-0.2812294364,
-0.2335349917,
-0.1142608598,
-0.1217739731,
0.2141001374,
-0.2378808409,
-0.0336710438,
-0.1656149626,
0.3436544538,
0.0028635077,
-0.2042077929,
-0.1521620303,
0.1259877682,
-0.1789656878,
-0.232176438,
0.1676274389,
0.4192043245,
0.0847230032,
-0.3906548023,
0.085702762,
-0.1678957641,
-0.2249336541,
0.0824189335,
-0.2435826957,
0.2264718562,
0.0546726994,
-0.0510309935,
0.4179316461,
-0.4451334476,
-0.2007091939,
0.1056295335,
0.0069581852,
-0.0058153342,
0.162991643,
0.26262936,
0.2648093998,
-0.4369668663,
0.1150824726,
0.2264186442,
-0.0909752995,
0.1131955087,
-0.0979320705,
-0.3599976897,
-0.1971426606,
0.1153205559,
-0.1953724325,
-0.1405659318,
0.3687633276,
0.2460269928,
0.2487064004,
-0.0708751976,
0.0915201306,
0.1125272959,
0.0391071402,
-0.1303311139,
-0.0861905292,
-0.1503328234,
-0.1870399714,
0.0249140691,
-0.096470803,
-0.0642910376,
0.2693208754,
-0.4242702723,
0.1844857633,
-0.0245299116,
0.0834134892,
-0.369556576,
0.3480745852,
0.1537958235,
0.1634937376,
0.1520510763,
-0.0422111303,
0.0655609816,
-0.331050992,
-0.0113127343,
-0.5354914665,
0.0942880213,
-0.1187248155,
0.0748173073,
0.3878873289,
0.474001646,
-0.0167374015,
0.1244139895,
0.0938350186,
0.1163709387,
-0.0099770892,
0.5856170058,
0.1358382106,
0.5444415212,
0.3542375863,
-0.2291154861,
0.1989942491,
-0.2761804461,
-0.0334052034,
-0.2197769284,
-0.2923257947,
0.0742765367,
0.0806696638,
0.1615870744,
0.2401180118,
-0.0031544182,
0.020698186,
-0.1276388764,
-0.3540005982,
-0.2646843493,
-0.1925270855,
0.2989503741,
0.1064231321,
0.2376116514,
-0.0457902662,
0.3892673254,
0.5887918472,
0.2582817972,
0.0722083747,
-0.1035116613,
-0.391862154,
-0.3607373834,
0.1827531755,
0.3668746352,
0.0106805339,
0.4147944748,
0.2208261192,
0.0703671575,
0.0306207836,
-0.007017449,
-0.0146292849,
0.0639668629,
0.003968528,
-0.102304928,
0.1829531789,
0.2220141888,
-0.0197273567,
0.050206162,
-0.085802108,
-0.2350772619,
-0.3454783857,
0.0444181934,
-0.1313552111,
-0.3264439702,
-0.3867819309,
-0.1903593242,
-0.1276939213,
-0.2918637097,
0.0501473695,
0.2012411207,
-0.2010382861,
0.2224685401,
0.1106225625,
0.2077449113,
-0.3440874517,
0.2071485072,
0.0854749382,
-0.3341498375,
-0.0840325132,
0.1393872648,
0.272541821,
0.2580164075,
0.3359659314,
-0.0646514222,
0.0261681248,
-0.4569428861,
-0.5159948468,
0.18272838,
-0.2701182961,
0.2415601313,
0.1568351835,
-0.460193336,
0.1228710711,
-0.1160470471,
-0.0507502183,
-0.1861075759,
-0.0536631867,
-0.0073614242,
-0.0501456037,
-0.1278603226,
-0.166864872,
-0.2610397041,
-0.2157841921,
-0.3370565474,
0.1664499193,
0.0380574167,
0.2831121087,
0.0774714202,
-0.271866709,
-0.036920283,
-0.4590598345,
0.4280959964,
-0.1247673631,
-0.313424468,
0.1134674475,
-0.2323607057,
-0.2886544466,
-0.1188956648,
0.0080539417,
0.0566304363,
-0.043539077,
-0.4064199328,
-0.3878156543,
0.1752029806,
-0.4479330182,
0.1624156535,
0.3990526795,
0.2329635769,
0.0885437131,
-0.1322379857,
-0.051309254,
-0.1691474915,
0.1176303476,
0.0073703825,
0.3056494594,
-0.0071055512,
-0.278019011,
0.2600046396,
0.4271394908,
0.3567823172,
-0.2190718949,
-0.0146383876,
0.1176845729,
0.1751933396,
0.2322542965,
-0.0309031103,
0.27357319,
-0.2118644565,
0.2610420287,
0.4443439245,
0.1279817671,
-0.1374715716,
-0.1472721845,
-0.0137354033,
-0.1451559812,
-0.3161197305,
-0.0702142194,
-0.1799120009,
0.0761961713,
0.2393659353,
0.1343639046,
-0.0113187302,
-0.0088717779,
0.0753618628,
0.0345781371,
0.003081464,
0.2330604792,
-0.1782841235,
-0.0808236524,
-0.2139747143,
-0.0003333882,
-0.0437255949,
-0.0955794752,
0.0804319233,
-0.2571638227,
0.0446791723,
0.0432964079,
0.0802353621,
-0.403522104,
0.0505080931,
0.0212403107,
-0.0759915486,
-0.2110486627,
0.2083839327,
-0.1404275596,
0.0276484713,
0.3837428689,
0.3798472583,
-0.3838362992,
-0.0999631286,
0.2218702585,
-0.2906837761,
-0.08537855,
0.012761143,
0.0433048196,
0.0845263898,
-0.1861721128,
-0.3346575499,
-0.2545768023,
-0.2915423214,
0.0688390955,
0.0817855075,
-0.0503190607,
0.1893039644,
0.2378098518,
0.5395801067,
0.0366062261,
-0.0214022417,
0.168048352,
0.2743471265,
0.2082950622,
0.0686152056,
0.4749734998,
-0.3105338514,
0.1759106964,
0.0048665269,
0.0305423178,
0.3277991414,
0.1406109929,
0.3335468173,
-0.2353599072,
-0.0730707124,
-0.3103369772,
-0.3443017006,
0.0666365176,
-0.1151015237,
-0.0017655446,
-0.3705742061,
-0.3775322437,
0.4986186326,
0.2680628598,
-0.209417209,
0.2011908889,
0.4137507975,
-0.2342971563,
0.2603650391,
0.2723672688,
0.9191638231,
0.1498697847,
0.1800039113,
-0.2219550312,
-0.1232443601,
0.7734659314,
-0.2378209233,
-0.1032316238,
-0.4030280411,
-0.0508896485,
-0.0875689834,
-0.0483463593,
-0.0609737001,
-0.0097106146,
-0.1562021822,
0.0388737954,
0.461021781,
0.0530402362,
-0.0207453556,
0.2822638452,
-0.0285834856,
-0.4216650426,
-0.3185437918,
0.1946774125,
-0.2890463769,
0.0545964092,
0.0236218125,
-0.3277183175,
0.1445381194,
0.0117117371,
-0.1225616187,
0.0325647444,
-0.2189267576,
-0.0182807557,
0.2351806164,
0.0059487261,
0.1287906021,
-0.0862660706,
0.4078098536,
0.176765278,
-0.1866822094,
-0.1501103044,
0.0778154358,
0.0461608432,
-0.0545197725,
-0.1122355834,
0.413903147,
0.051586058,
-0.0872310549,
-0.1600160003,
0.2364198267,
-0.1824627966,
0.0922740325,
-0.2390926033,
-0.0663059354,
0.0143178049,
0.1541273147,
0.4742467403,
-0.0743653625,
-0.1986969113,
0.1723301113,
0.0487576164,
-0.1633842438,
0.3867484927,
0.1621730328,
-0.0545147546,
-0.0019205344,
0.1609750986,
0.0643420517,
0.2746693194,
-0.1538704485,
0.01386311,
-0.0589305572,
-0.2367457598,
-0.168100968,
-0.2533481717,
-0.047772985,
-0.0620877072,
-0.1614844054,
-0.2547168434,
-0.1479820311,
0.4201219678,
0.2420389652,
0.0814243779,
0.0129985865,
-0.3477077186,
-0.1274089962,
0.5248768926,
-0.2895520031,
0.2338654846,
0.2778624296,
-0.0251269676,
-0.0746018514,
0.3528408706,
-0.456959486,
-0.2785534263,
-0.1057292446,
0.224124223,
0.2803425193,
-0.0470544398,
0.0641496778,
-0.1529432982,
0.0628762096,
0.2037902921,
-0.2687698901,
-0.2959520519,
-0.1975251734,
0.0467847399,
0.0747403502,
0.2488693446,
-0.0278539974,
0.1466546059,
-0.0155414632,
-0.1831371337,
0.2784826458,
0.0426167585,
0.074309282,
0.2869677544,
-0.2478322983,
0.0583491027,
0.0973378047,
0.1801583767,
0.0274760481,
0.0700869933,
-0.0790478364,
0.1992204785,
-0.264921695,
-0.0701617226,
-0.0950424001,
0.2005635947,
0.1385751814,
0.1087581292,
0.2033931017,
0.2841627002,
-0.1086218953,
0.2308535576,
0.3003302217,
0.2504826188,
-0.0701155886,
0.128827244,
0.0497631766,
0.2858296335,
-0.144391194,
0.0265502855,
0.1703902483,
-0.0648998097,
0.1966522187,
0.3415986001,
0.6348133683,
0.1437172294,
-0.0312791653,
0.0165653955,
0.431378454,
-0.3090530634,
0.1085075065,
-0.1150923893,
0.0771557763,
-0.03410393,
0.2147915214,
0.3228096664,
0.3315180242,
-0.1194633245,
0.1553511769,
0.4127909839,
0.3552705348,
-0.0143119991,
0.4019967616,
0.1914928257,
0.6244622469,
0.1322714835,
0.3288289011,
0.1824136078,
-0.0930977389,
0.0609371215,
0.2356581241,
-0.1685183197,
-0.1678880304,
0.1744084358,
0.1029071659,
-0.2838236094,
-0.0977063626,
-0.0319372937,
0.0447318777,
-0.1604593545,
-0.1514484435,
-0.3046037555,
0.2555144727,
-0.0021701637,
-0.0198317599,
-0.5262679458,
0.1322364658,
0.0754946545,
0.3279764652,
-0.2590015531,
0.1548559666,
-0.1746221483,
0.0382030047,
-0.031888932,
0.6182314754,
0.2011749893,
0.0509651117,
-0.0920286551,
-0.0575843528,
-0.1386910379,
0.0254333075,
-0.2176245004,
-0.0062839394,
0.0841071457,
-0.2035938501,
0.4979934692,
0.1799910516,
-0.0580430254,
0.0022596908,
-0.087829344,
-0.1749544144,
-0.0972587243,
0.1796771735,
0.110903278,
-0.0554573387,
-0.0902674273,
0.1233480275,
-0.3803673387,
-0.113438949,
0.5566617846,
-0.0536522828,
0.2002564669,
-0.3271697164,
0.1841357201,
0.1794320196,
0.2267821282,
0.4506828785,
-0.1333668828,
0.0914680809,
0.003849895,
-0.5929580927,
-0.0953757986,
0.0523441099,
-0.1913161874,
0.0228091795,
0.2161400318,
0.0670498535,
0.3399178982,
-0.2097519487,
-0.0620349012,
-0.2910604477,
-0.0899993405,
-0.1750150621,
-0.2186883986,
-0.5035049915,
-0.2248724699,
0.1228633747,
-0.1133476421,
-0.0700515658,
-0.0803340822,
0.1012629643,
-0.0910049453,
0.0183238219,
0.2306823879,
0.2187520266,
0.3465239704,
0.0849294513,
-0.0043654297,
0.0331291854,
-0.1806723177,
-0.3137550056,
-0.0466430113,
-0.1333763748,
-0.049501393,
-0.150132969,
0.1640448272,
-0.321497649,
-0.0536165163,
-0.1226253361,
-0.1029357687,
0.2095730603,
-0.0407543071,
-0.331140548,
-0.0751538202,
-0.1512630731,
0.0606623068,
0.0814386383,
0.33464697,
-0.1246188357,
0.032378912,
-0.0844904333,
-0.3636503816,
0.0457070842,
-0.4250532389,
-0.0730653331,
-0.1039498821,
0.440110743,
-0.1693580598,
-0.0339414701,
-0.8108166456,
0.0374919847,
0.3362652361,
-0.2119695693,
-0.0372978412,
0.1978937536,
-0.1053737924,
-0.1026732475,
-0.1749889553,
-0.2042028904,
-0.0627425909,
-0.2199335843,
-0.0327971876,
-0.3536890149
] |
https://github.com/huggingface/datasets/issues/153 | Meta-datasets (GLUE/XTREME/...) – Special care to attributions and citations | Actually, double checking with @mariamabarham, we already have this feature I think.
It's like this currently:
```python
>>> from nlp import load_dataset
>>>
>>> dataset = load_dataset('glue', 'cola', split='train')
>>> print(dataset.info.citation)
@article{warstadt2018neural,
title={Neural Network Acceptability Judgments},
author={Warstadt, Alex and Singh, Amanpreet and Bowman, Samuel R},
journal={arXiv preprint arXiv:1805.12471},
year={2018}
}
@inproceedings{wang2019glue,
title={{GLUE}: A Multi-Task Benchmark and Analysis Platform for Natural Language Understanding},
author={Wang, Alex and Singh, Amanpreet and Michael, Julian and Hill, Felix and Levy, Omer and Bowman, Samuel R.},
note={In the Proceedings of ICLR.},
year={2019}
}
Note that each GLUE dataset has its own citation. Please see the source to see
the correct citation for each contained dataset.
```
What do you think @dseddah? | Meta-datasets are interesting in terms of standardized benchmarks but they also have specific behaviors, in particular in terms of attribution and authorship. It's very important that each specific dataset inside a meta dataset is properly referenced and the citation/specific homepage/etc are very visible and accessible and not only the generic citation of the meta-dataset itself.
Let's take GLUE as an example:
The configuration has the citation for each dataset included (e.g. [here](https://github.com/huggingface/nlp/blob/master/datasets/glue/glue.py#L154-L161)) but it should be copied inside the dataset info so that, when people access `dataset.info.citation` they get both the citation for GLUE and the citation for the specific datasets inside GLUE that they have loaded. | 115 | Meta-datasets (GLUE/XTREME/...) – Special care to attributions and citations
Meta-datasets are interesting in terms of standardized benchmarks but they also have specific behaviors, in particular in terms of attribution and authorship. It's very important that each specific dataset inside a meta dataset is properly referenced and the citation/specific homepage/etc are very visible and accessible and not only the generic citation of the meta-dataset itself.
Let's take GLUE as an example:
The configuration has the citation for each dataset included (e.g. [here](https://github.com/huggingface/nlp/blob/master/datasets/glue/glue.py#L154-L161)) but it should be copied inside the dataset info so that, when people access `dataset.info.citation` they get both the citation for GLUE and the citation for the specific datasets inside GLUE that they have loaded.
Actually, double checking with @mariamabarham, we already have this feature I think.
It's like this currently:
```python
>>> from nlp import load_dataset
>>>
>>> dataset = load_dataset('glue', 'cola', split='train')
>>> print(dataset.info.citation)
@article{warstadt2018neural,
title={Neural Network Acceptability Judgments},
author={Warstadt, Alex and Singh, Amanpreet and Bowman, Samuel R},
journal={arXiv preprint arXiv:1805.12471},
year={2018}
}
@inproceedings{wang2019glue,
title={{GLUE}: A Multi-Task Benchmark and Analysis Platform for Natural Language Understanding},
author={Wang, Alex and Singh, Amanpreet and Michael, Julian and Hill, Felix and Levy, Omer and Bowman, Samuel R.},
note={In the Proceedings of ICLR.},
year={2019}
}
Note that each GLUE dataset has its own citation. Please see the source to see
the correct citation for each contained dataset.
```
What do you think @dseddah? | [
0.1459960192,
0.1260701865,
-0.0172190554,
0.0895722434,
0.0626267493,
-0.0980595797,
0.1901407689,
0.327424109,
-0.1365866512,
0.0089797759,
-0.1452715546,
0.5205234885,
0.1002959386,
0.0326512977,
0.3782191277,
0.1075442731,
-0.1473997235,
-0.0629666075,
0.0565607958,
-0.0082268184,
0.0059155342,
-0.1218895316,
0.2556424737,
-0.0212327112,
-0.0183690507,
0.1203052774,
-0.0975081101,
-0.2274173945,
0.1760930121,
-0.3408677578,
0.1228426099,
0.3797635734,
-0.0701437071,
-0.2853859365,
-0.0001086736,
0.1405758113,
0.4462242126,
0.0706145838,
-0.1845936626,
-0.4417580962,
-0.3292540908,
-0.2576585412,
0.1386142522,
-0.4017036557,
-0.044029586,
0.1185488775,
0.1867648214,
-0.2359996587,
0.2564882338,
-0.118417196,
0.1935308576,
0.2313034981,
-0.2722190619,
0.2109433413,
0.4602375925,
0.3790766299,
0.0113812331,
0.049614545,
0.3216420114,
-0.0529677607,
-0.1204490513,
0.562353909,
-0.1215751544,
0.0837367252,
0.2450886965,
-0.0117531354,
0.3204331398,
-0.0062417076,
-0.1649092287,
0.5180584192,
0.3185868561,
-0.4948657751,
-0.4512443841,
-0.5133798122,
0.1050350517,
0.4594183862,
-0.0621292926,
0.386555016,
0.0475593731,
0.1687432975,
-0.1067018434,
-0.0047660079,
0.1005402431,
0.0102563798,
0.3739122748,
0.155425474,
-0.1244879961,
0.1860374659,
-0.0194784366,
-0.0803718492,
0.0637964755,
-0.2097223848,
-0.0261023268,
-0.0222853813,
0.1380210966,
-0.1774203479,
0.1316172332,
0.0892142206,
0.2456714362,
0.315061003,
0.1443891674,
-0.0571824089,
-0.1413038671,
0.3117474616,
0.5554292798,
-0.1336811036,
-0.0731788799,
0.0855104476,
0.4026113153,
-0.0878941193,
-0.0893843248,
0.1603704691,
0.0179318022,
0.2412942797,
-0.4022681713,
-0.0895630717,
0.2245130092,
-0.2601107955,
-0.2941980958,
-0.1213132218,
-0.041515179,
-0.2908773124,
-0.249663949,
0.0559085086,
0.0048678564,
-0.064178504,
-0.2908427715,
0.1059356555,
0.0068277521,
-0.2634838521,
-0.2163224816,
0.1354011148,
-0.3099240959,
0.1489437073,
0.1042682156,
0.1488611698,
0.3708751798,
-0.1605484486,
-0.1067946702,
-0.1834674776,
0.0414252654,
-0.136402145,
0.1206369251,
0.1558706313,
-0.0061823749,
0.309396863,
0.0233882237,
-0.1726249605,
-0.4984374046,
0.0189275052,
-0.1504622549,
-0.0613015182,
0.1211766526,
0.120956175,
-0.4014959335,
-0.1249205768,
-0.3572140634,
0.3441358507,
0.0831249952,
-0.1271314174,
-0.0298277065,
0.0958377719,
-0.1046818942,
-0.2167440802,
0.2029967159,
0.603705883,
0.0944768637,
-0.3677792251,
0.0785751939,
0.0083182231,
-0.1182467192,
0.1067934111,
-0.231862545,
0.4463393092,
0.0463557839,
0.0373965278,
0.2166668326,
-0.5743622184,
-0.271887511,
0.1112948358,
-0.1332579553,
0.0907878131,
0.2957185209,
0.2834582329,
0.2771710753,
-0.4240315259,
0.054435093,
0.2461315244,
-0.0672729388,
0.1181527898,
-0.097887449,
-0.3014932573,
-0.046572879,
0.0463171601,
-0.2792063057,
0.0065150675,
0.2964582741,
0.2114418894,
0.3031520545,
0.1095387414,
0.0562263727,
0.0741517022,
0.0705617517,
-0.1719364971,
-0.0168909524,
-0.0143583212,
-0.1421348602,
-0.0081007788,
0.1352149844,
0.0016024092,
-0.0393484756,
-0.4302904308,
0.1437938213,
-0.0918549001,
-0.0512559339,
-0.3166415095,
0.202053979,
0.1330287158,
0.2059657127,
0.059566278,
0.0042646183,
0.1732722372,
-0.3910714984,
0.0728157088,
-0.4693700969,
0.1274825186,
-0.0700268075,
0.0972750485,
0.2877372801,
0.3687361777,
0.2272829562,
-0.050023023,
-0.0158357117,
0.1769270003,
0.1354345381,
0.6815312505,
-0.0163431782,
0.4602659047,
0.2904717922,
-0.5873610377,
0.1933741421,
-0.2625130415,
-0.0854332373,
-0.2483108044,
-0.3497186601,
0.1101983711,
-0.0919145644,
0.1990021914,
0.1812397391,
0.0126497801,
0.0414170437,
-0.1380123645,
-0.3803361952,
-0.4260339141,
-0.1419212073,
0.4059374332,
0.0526502915,
0.17698659,
-0.044414077,
0.36684075,
0.3053129613,
0.2437004298,
0.0134227742,
-0.1738655716,
-0.373598516,
-0.2639074028,
0.1856595427,
0.5812263489,
0.0588331223,
0.3410806954,
0.1458027959,
0.046287939,
0.05646367,
-0.1076055691,
0.0538326018,
0.0469716601,
-0.1568642408,
-0.1075315103,
0.1514113396,
0.2761742473,
0.0485637449,
0.1296950132,
-0.0437434651,
-0.2355320305,
-0.5040354729,
-0.0668785274,
-0.1607830673,
-0.3451219499,
-0.3923563957,
-0.2192250192,
0.0266350359,
-0.3359192312,
-0.0565617718,
0.1736796796,
-0.3128884137,
0.1817234159,
-0.0108180977,
0.2305709571,
-0.4563738406,
-0.0576599315,
0.113094762,
-0.2517158389,
0.2092415392,
0.061892245,
0.2074331641,
0.2063421309,
0.2276790291,
0.0069876057,
-0.0038600282,
-0.4430011809,
-0.4584122002,
0.1721506566,
-0.2430886775,
0.2237340808,
-0.0681844726,
-0.3812629879,
0.1325634271,
-0.1528229713,
0.0077382713,
-0.1640090048,
-0.0976220891,
0.0144633129,
0.0926721394,
-0.0532018282,
-0.119043082,
-0.107422851,
-0.354509443,
-0.2291744798,
0.1439631879,
0.0865286291,
0.1516398191,
0.1420311779,
-0.3330468833,
-0.0992255583,
-0.2470337301,
0.468960762,
-0.1464551389,
-0.432739228,
0.2442490757,
-0.3043131828,
-0.218807146,
-0.382504642,
-0.0708177313,
0.0686379075,
0.0416207686,
-0.3691648543,
-0.3203604519,
0.0656622723,
-0.3541069031,
0.0406554416,
0.4220490456,
0.139087677,
-0.003826194,
-0.0347152129,
-0.0433182828,
-0.1257905662,
0.0180328414,
0.0695181042,
0.0802452713,
-0.0301382076,
-0.4453702867,
0.238472417,
0.609310627,
0.3573829234,
-0.0821099132,
0.0699078664,
0.0932864919,
0.2277637869,
0.2781898081,
-0.1315301657,
0.2565014362,
-0.101891838,
0.1910362244,
0.3069964349,
0.0256321076,
-0.0925605968,
0.0231936537,
0.1315829903,
-0.2536819875,
-0.2625792921,
-0.1427265257,
-0.2425164729,
0.0999455601,
0.2951816916,
0.025195919,
-0.035367962,
-0.1885511726,
0.0486025698,
0.0317492783,
-0.0509755202,
0.1091303006,
-0.1552975923,
-0.1770075858,
-0.2219058275,
-0.0770826265,
-0.0770993307,
0.0108813057,
0.0537929423,
-0.2894572914,
0.0265578423,
0.0722324178,
0.2669828534,
-0.4505030513,
0.2121720016,
-0.0324199907,
0.10508506,
-0.3226861656,
0.0640611351,
-0.1325679868,
0.1368396878,
0.336932689,
0.2544021904,
-0.2235413641,
0.0444950424,
0.2816636562,
-0.2996259928,
-0.092803359,
-0.1158421636,
0.0406181738,
0.0177643225,
-0.0124283321,
-0.3173239827,
0.0742201954,
-0.1216428354,
0.0145626832,
0.0549927428,
-0.1626984924,
0.202365458,
0.2333436459,
0.3720487654,
0.0684484243,
0.0558961406,
0.3628768325,
0.4473118484,
0.0581355356,
0.0180229507,
0.7409002781,
-0.2952211499,
0.0563452169,
-0.147266224,
-0.1130053252,
0.3578371704,
0.146154955,
0.2450062335,
-0.1839853674,
-0.1946237534,
-0.3163897097,
-0.5575905442,
0.0014640919,
-0.1903021038,
-0.0404737778,
-0.3032288551,
-0.4608914554,
0.5262104869,
0.2745815217,
-0.1825014204,
0.2443662733,
0.4735276997,
-0.2609790564,
0.2932688892,
0.1494869739,
1.0307887793,
0.0836326182,
0.0950738117,
-0.282012254,
-0.0443103388,
0.8447419405,
-0.2465764284,
-0.1482635587,
-0.4357125759,
-0.1548206955,
-0.0630076826,
-0.1531617641,
0.0450282283,
0.1211145893,
-0.0931903347,
-0.0749626681,
0.3189807832,
0.1369542331,
-0.040942464,
0.3400012255,
0.0210306048,
-0.3488109708,
-0.1081470475,
0.1052884832,
-0.2712960839,
0.1158177555,
0.1484314948,
-0.1422667801,
0.0167672429,
0.0847000927,
-0.2729050815,
0.1285782009,
-0.3497879207,
0.047407873,
0.2040602565,
-0.0997399762,
0.2513722777,
-0.0815374628,
0.3626475036,
0.0766853243,
-0.0775243938,
-0.1095664725,
0.1261807531,
-0.0558621325,
-0.0091484552,
-0.107988134,
0.3444420099,
0.2466157973,
-0.1017064676,
-0.1256987751,
0.2732786238,
-0.3068851531,
0.2283777744,
-0.3318189681,
-0.0723538846,
-0.0460721515,
0.0602134913,
0.4835635424,
0.056153439,
-0.1791360378,
0.0989871174,
0.1726375073,
-0.1966995895,
0.39186427,
0.0239054151,
-0.0214621425,
0.1064642593,
0.2095683813,
0.1908181757,
0.3242695332,
-0.1016838625,
-0.0781858042,
-0.0653061718,
-0.1796933711,
-0.028509438,
-0.4060036242,
0.0183623768,
-0.0783495307,
-0.2472975552,
-0.0412864089,
-0.2350758314,
0.2162174881,
0.1541724205,
0.1411763728,
-0.1311466843,
-0.3797956407,
-0.1286261976,
0.3909106851,
-0.3289383352,
0.2858897448,
0.2250098437,
0.0502598323,
-0.0952635482,
0.5021759868,
-0.340957284,
-0.3235458732,
0.0221150164,
0.1368122548,
0.4950768948,
0.1555399895,
0.0880418345,
-0.2358871251,
-0.0016130307,
0.1939475387,
-0.1645644605,
-0.2098516971,
-0.2161640972,
0.090048939,
0.1563794017,
0.2249209136,
-0.1129645556,
0.1534245014,
0.1410470009,
-0.1431696117,
0.2750481963,
0.0476487502,
0.1550294161,
0.267200321,
-0.1416063607,
0.0867231041,
-0.0700108409,
0.2183842957,
0.0340062641,
0.0793861002,
0.0670534,
0.2422809899,
-0.2143165171,
0.0508970954,
-0.1181934103,
0.0671709254,
0.1286500692,
0.1199418604,
0.0316488296,
0.1299973875,
-0.195666939,
0.21874246,
0.2273794711,
0.2240438163,
-0.161178112,
0.0137801077,
0.0545647852,
0.1908656061,
-0.033282239,
0.0127063403,
0.1787576228,
-0.002034093,
0.2374039441,
0.393545866,
0.6818820238,
0.2885893583,
-0.2439574301,
-0.052739244,
0.6587561965,
-0.218649447,
0.2375546992,
-0.2637001574,
0.0659805834,
-0.0107326368,
0.2296000421,
0.2728576362,
0.3210791349,
-0.2714990079,
0.2206810266,
0.471192956,
0.4068388045,
-0.1425219476,
0.5252484083,
0.1469685882,
0.6082965136,
0.1113488004,
0.2239984423,
0.1076097712,
0.0341431312,
0.1358425468,
0.1710916609,
-0.0182898603,
-0.0725185126,
0.0644751117,
0.1435904503,
-0.393992424,
-0.1767216623,
-0.0251852851,
0.0049261106,
-0.1533124894,
-0.0583384596,
-0.4621625841,
0.4027007818,
0.0010419663,
0.0057615843,
-0.4525315166,
0.2401925921,
0.0155173959,
0.3872749209,
-0.2879733145,
0.0384003073,
-0.3626517057,
-0.0686879158,
-0.0212084297,
0.6027602553,
0.1913993806,
-0.0533112027,
0.0139935622,
-0.2052617371,
-0.1629514545,
-0.0150787132,
-0.1240519807,
0.1879220307,
-0.0923250094,
-0.4238505065,
0.4680990875,
0.1247906908,
-0.0221231319,
-0.0545004867,
0.4011560977,
-0.1949982494,
-0.0484511517,
0.2918999493,
0.0863602757,
-0.1618098617,
0.0571460724,
-0.0852500498,
-0.343018353,
-0.1911880821,
0.6582133174,
-0.2030204386,
0.1391561031,
-0.2320262492,
0.1199664623,
0.2266105264,
0.2377989739,
0.5384886861,
-0.0507963374,
-0.1292382926,
0.0027816608,
-0.6148334146,
0.0713939667,
-0.0069256667,
-0.4261505306,
0.1241676062,
0.3539778888,
0.1016863585,
0.4172503352,
-0.1787739992,
0.0932397246,
-0.3028383255,
-0.1100548878,
-0.260718286,
-0.1933710128,
-0.4956419766,
-0.1775759012,
0.0974056274,
-0.0375240259,
-0.1832968742,
-0.0242746267,
-0.027676139,
-0.1284870803,
-0.0492252856,
0.1767483652,
0.0764692873,
0.5610907078,
-0.1291886866,
0.1669999659,
0.0468154997,
-0.0033251909,
-0.2533147037,
-0.0164969414,
-0.2715820968,
0.1082312465,
-0.1755802184,
0.1581409872,
-0.3534297347,
0.0128837302,
-0.1633626372,
-0.2471807748,
0.1130568311,
-0.1065551564,
-0.2324266732,
-0.0351043232,
-0.1723585427,
0.1253803819,
0.0198150575,
0.2141256034,
-0.1107535064,
0.2137901932,
-0.0346704498,
-0.4619114399,
0.0293235835,
-0.5250603557,
0.0538855977,
0.0534542352,
0.4995156229,
-0.3100974858,
0.1177527308,
-0.8463419676,
0.0515846759,
0.4032824636,
-0.277438581,
0.0514607206,
0.1651726812,
0.0618404001,
-0.0724134892,
-0.1524949223,
-0.4583165944,
-0.0309896525,
-0.1332449466,
-0.2018908709,
-0.2705307901
] |
https://github.com/huggingface/datasets/issues/153 | Meta-datasets (GLUE/XTREME/...) – Special care to attributions and citations | Looks good but why would there be a difference between the ref in the source and the one to be printed? | Meta-datasets are interesting in terms of standardized benchmarks but they also have specific behaviors, in particular in terms of attribution and authorship. It's very important that each specific dataset inside a meta dataset is properly referenced and the citation/specific homepage/etc are very visible and accessible and not only the generic citation of the meta-dataset itself.
Let's take GLUE as an example:
The configuration has the citation for each dataset included (e.g. [here](https://github.com/huggingface/nlp/blob/master/datasets/glue/glue.py#L154-L161)) but it should be copied inside the dataset info so that, when people access `dataset.info.citation` they get both the citation for GLUE and the citation for the specific datasets inside GLUE that they have loaded. | 21 | Meta-datasets (GLUE/XTREME/...) – Special care to attributions and citations
Meta-datasets are interesting in terms of standardized benchmarks but they also have specific behaviors, in particular in terms of attribution and authorship. It's very important that each specific dataset inside a meta dataset is properly referenced and the citation/specific homepage/etc are very visible and accessible and not only the generic citation of the meta-dataset itself.
Let's take GLUE as an example:
The configuration has the citation for each dataset included (e.g. [here](https://github.com/huggingface/nlp/blob/master/datasets/glue/glue.py#L154-L161)) but it should be copied inside the dataset info so that, when people access `dataset.info.citation` they get both the citation for GLUE and the citation for the specific datasets inside GLUE that they have loaded.
Looks good but why would there be a difference between the ref in the source and the one to be printed? | [
0.3710707724,
-0.1895543188,
0.0191333164,
0.1910195351,
0.2161493897,
-0.2085571289,
0.1987184584,
0.1203199178,
-0.4126297832,
0.1728313267,
-0.0699001774,
0.2978675067,
0.5788614154,
-0.0941336751,
0.0515486598,
0.125373736,
0.0821741,
-0.0912784562,
0.0445880517,
-0.2442143261,
0.0848149285,
-0.0631177723,
0.0506392606,
-0.1104454547,
-0.2710995674,
0.2647356093,
0.0209034402,
-0.206914708,
0.0229565203,
-0.2019972056,
0.1122656912,
0.2317723632,
-0.1311113685,
-0.1376198828,
-0.0001118262,
0.1149283946,
0.5276106,
0.0706701949,
-0.2119960189,
-0.3199277818,
-0.529755652,
0.1398908496,
0.0771625936,
-0.2583320141,
0.0313994586,
0.1823126674,
0.1165362448,
-0.3529593349,
-0.0093296468,
-0.0394008383,
0.1819292307,
0.0825062394,
-0.2895174623,
0.1119412258,
0.5242990851,
0.4687559307,
-0.0029223259,
-0.0349704102,
0.3050573468,
0.1795526892,
-0.0236517787,
0.4301709235,
-0.0821438134,
0.1121850535,
0.3664802611,
-0.0346074551,
0.1556817293,
0.1016899496,
0.2127133161,
0.579289794,
0.5639746785,
-0.3503528833,
-0.4455969632,
-0.0643574446,
-0.2279414386,
0.7072246075,
0.0023289267,
0.3356458843,
0.2440560609,
0.1996306777,
-0.2165647447,
0.0758416578,
0.1721118391,
-0.0429943353,
0.1275490224,
0.0636766329,
-0.2236406952,
0.278963089,
-0.114293769,
0.1594838649,
0.0819844157,
-0.420992136,
-0.0768154263,
-0.0632449165,
0.137505278,
-0.0246545468,
0.1798441857,
0.2404076159,
0.1731198728,
0.3289602399,
0.1010553762,
-0.0538055748,
-0.1195122078,
0.213840723,
0.4652201533,
-0.0582951829,
-0.0239798464,
0.1139113903,
0.3770873249,
-0.098337613,
-0.1944267601,
0.0007586746,
0.1957947016,
0.1912994385,
-0.1929056942,
-0.1453934014,
0.162305519,
-0.4632855952,
-0.2766086459,
-0.0817649513,
-0.1609377414,
-0.1545790434,
-0.2178320885,
-0.0247255079,
-0.1249388382,
-0.1451705843,
-0.4038599133,
0.0624166541,
-0.0965503976,
-0.1777431518,
-0.2701952457,
0.0317753926,
-0.4211231768,
-0.0052372869,
-0.1362655014,
-0.0847612098,
0.459787339,
0.0404551141,
-0.156971246,
-0.2084575593,
-0.1347539127,
-0.3011265397,
0.1222964451,
0.2674721181,
-0.1152221337,
0.5308940411,
0.0520884022,
-0.0636467412,
-0.2705882788,
0.0262673423,
-0.2270464301,
-0.0266720578,
0.0976306424,
0.1063078195,
-0.30846861,
0.0589838587,
-0.2892630398,
-0.0296789445,
-0.0860863402,
-0.1939718574,
-0.0383016579,
0.0436108448,
-0.0529660806,
-0.3850646615,
0.2853825092,
0.4911711216,
-0.085713014,
-0.1355215907,
-0.0564726926,
-0.1587517411,
0.1264363229,
0.1260383278,
-0.1900236607,
0.3097702861,
-0.028181687,
-0.0969897956,
0.0837964043,
-0.6937301159,
-0.3254209161,
0.1508454233,
-0.1544985175,
0.1510368884,
0.2302343696,
0.3041198552,
0.2933086753,
-0.2983375192,
0.0998610333,
-0.0219014455,
-0.0387672782,
-0.023723729,
-0.1900504827,
0.1869902313,
-0.2530879974,
-0.2539644837,
-0.3992254138,
0.0562269427,
0.5640986562,
0.0704083517,
0.1283384562,
0.1379698366,
0.1192497462,
0.1941002607,
0.1917907596,
-0.0824426934,
0.0546216816,
0.1877617538,
-0.1661570817,
0.0924346894,
0.1991953999,
-0.0035539977,
0.0249021053,
-0.4276169837,
0.042705752,
0.0044618798,
0.0468667857,
-0.4431463778,
0.1442897767,
0.1915255636,
0.2306708843,
0.1354447007,
0.184679091,
0.1833567321,
-0.3653041422,
0.0683992431,
-0.283034265,
0.1996473968,
-0.079747878,
0.1337218136,
0.1323318779,
0.1372402459,
0.2207589149,
0.012050258,
-0.09858758,
0.3556072712,
0.3995120823,
0.5275140405,
0.1119195223,
0.5339220762,
0.1610895097,
-0.4089432359,
0.2597427964,
-0.3462624252,
0.0743694454,
-0.3508380055,
-0.3630339801,
-0.0470065661,
-0.0801866427,
0.13576819,
0.2215687931,
-0.0757958069,
-0.0397506393,
-0.0386021398,
-0.4364561439,
-0.3766800761,
-0.2181797177,
0.4416784942,
0.1016834676,
0.4957174659,
-0.1061612442,
0.3637822866,
0.4405106604,
0.1013623625,
-0.1691758335,
-0.1962750107,
-0.5381572247,
-0.3298220038,
0.1286328733,
0.5671322942,
0.2782899737,
0.2022488862,
0.1697900891,
-0.0425620601,
0.078748785,
-0.1126362309,
-0.0997968018,
0.0701485202,
-0.1495615989,
-0.2855082452,
0.0689724609,
0.2679751813,
0.1870441586,
0.2309087515,
-0.0301246233,
-0.2843520939,
-0.3232041597,
0.0430747308,
-0.3240041137,
-0.0407651588,
-0.5766683221,
-0.3918189108,
-0.0104558393,
-0.4315825403,
-0.1078246683,
0.1349768788,
-0.1740664393,
0.0823605582,
0.1595659852,
0.0688126087,
-0.2842486203,
-0.0293625537,
0.1395147741,
-0.1835511774,
-0.1281137615,
-0.0044220923,
0.0175672825,
0.1599949747,
0.0829470307,
-0.1667424738,
0.0687677488,
-0.4904105365,
-0.4789212942,
0.1207590327,
-0.2202393264,
0.320340842,
-0.0384617373,
-0.2237917036,
0.1036438048,
0.1945069581,
-0.001166152,
-0.0906017348,
-0.1277207881,
-0.0154322712,
0.0522624813,
-0.1932349801,
0.0065810522,
-0.1787864417,
0.0111027462,
-0.0925585628,
-0.1211537346,
-0.0922700912,
0.0162157137,
-0.0017530429,
-0.1606834233,
-0.2513111234,
-0.2981010377,
0.5867751241,
-0.1880422235,
-0.5385847092,
0.144054234,
-0.1071984693,
-0.363433063,
-0.1922981292,
0.0969534814,
0.1107209921,
0.0934633836,
-0.4405773878,
-0.2818561792,
-0.0758615658,
-0.3825753629,
0.0945300162,
0.5671176314,
0.1745610386,
-0.0541011393,
-0.0420437306,
-0.3272089958,
-0.2793990076,
-0.0696474165,
-0.0173728913,
0.1907827556,
0.0211144891,
-0.431502074,
0.1551576257,
0.7282775044,
0.1914072186,
-0.2086044252,
0.0034594361,
0.1567714959,
0.36372751,
0.041301094,
-0.0831239,
0.2958693206,
-0.0617817938,
0.1687473953,
0.3897433877,
0.1141486689,
0.0387117527,
0.0603013225,
0.0741801038,
-0.1394543499,
-0.2665952444,
-0.2029947042,
-0.141186446,
0.0127281249,
0.4299004376,
0.1416199058,
-0.0056187999,
0.0206395928,
0.0869597569,
0.0698440671,
0.0233843829,
0.2531621158,
-0.1308823973,
-0.2867666483,
-0.0971665606,
-0.0664033294,
-0.0387148373,
-0.0496753938,
0.1097010747,
-0.2118723392,
0.1932049394,
0.3003406227,
0.4350330532,
-0.4176191092,
0.0963035822,
-0.1038187891,
0.0313387811,
-0.3685770631,
-0.0163236149,
-0.0223167185,
0.1766918302,
0.3939035237,
0.1989230812,
-0.1897853017,
-0.1051553413,
0.246125564,
-0.2211570889,
0.0724719092,
0.0290190745,
-0.138759166,
0.0929427296,
-0.0739367455,
-0.6030510664,
0.0187372267,
-0.1044100374,
0.0593466051,
0.0096816011,
-0.1021585912,
0.32245785,
0.0391366221,
0.3551362455,
0.0348695256,
-0.0689313412,
0.2235222906,
0.4400111735,
0.2903814614,
0.2235564142,
0.7098865509,
-0.2559743524,
-0.0053989687,
-0.0037879136,
-0.0892185867,
0.1618132293,
0.0094793187,
0.3352268636,
-0.2692462504,
-0.1782660186,
-0.2961281836,
-0.3744949102,
0.0646157488,
0.0083034569,
0.2035892308,
-0.4331898093,
-0.4817039967,
0.3110720217,
0.2815313637,
-0.2063478529,
0.3583270311,
0.6577653885,
-0.0655943081,
0.0816555172,
0.0890256166,
0.9955167174,
0.2413370311,
0.0766952261,
-0.2699657381,
-0.2412136197,
0.4257274866,
-0.3257039785,
-0.1483793408,
-0.3584232926,
-0.2681058645,
-0.1424038112,
-0.2714770436,
0.0717015192,
0.0205780342,
-0.0349524468,
-0.0553456321,
0.2691438496,
0.3271938562,
0.1875396073,
0.165042147,
0.3169310093,
-0.1339176446,
0.2843641043,
0.0697753355,
-0.0130591262,
0.234934926,
0.0731812567,
-0.0077358228,
-0.2012020499,
0.0773549601,
-0.2886355221,
-0.0520208068,
-0.2754354775,
-0.0249540657,
0.371081382,
0.0561720803,
0.1464808583,
0.0981513187,
0.4332256317,
0.228112787,
0.0255287327,
0.1359020472,
0.3105173111,
0.0054032383,
-0.0137961898,
-0.1647187024,
0.3166965544,
0.1933375597,
-0.3221418858,
-0.1632475108,
-0.0083781788,
-0.1810972542,
0.1805637777,
-0.2429839969,
-0.1155784279,
-0.1082162708,
0.1011649743,
0.2719069421,
0.1162848249,
-0.1731322706,
0.0870801657,
0.059492927,
-0.0209990907,
0.4342001379,
0.0265938472,
-0.3213009536,
-0.0477681682,
0.3901550472,
0.166738078,
0.4073670208,
-0.230824843,
-0.143990472,
-0.1466343999,
-0.1201416925,
0.02695884,
-0.4322422445,
0.003158309,
-0.0467392541,
-0.3084058464,
-0.117351234,
-0.2169162184,
0.3540158272,
0.1399854869,
0.0820278302,
-0.1853621304,
-0.3884170651,
-0.0328476988,
0.1944945306,
-0.3568928242,
0.1773679256,
0.3129883409,
-0.1322019547,
-0.0110281138,
0.3492716253,
-0.3185352385,
-0.2000140846,
0.0586611666,
0.3657363653,
0.3873245418,
0.1077221856,
0.2268545032,
-0.0975843966,
0.0175082553,
-0.0145988632,
-0.1545724869,
-0.1769674867,
-0.0821051225,
0.0882216021,
-0.0011963466,
0.1507626623,
-0.1493170559,
0.0870344266,
0.110629797,
-0.11581745,
0.5244324207,
0.2708853781,
0.1177688166,
0.104574427,
-0.3514071703,
0.2301554084,
0.005918147,
0.1880843788,
0.0719176382,
0.2233792394,
0.0242966376,
-0.0159114935,
-0.0473981425,
-0.1082609743,
-0.0254389104,
0.0831868127,
0.0861198679,
0.0690010339,
0.0336106829,
0.0939614847,
0.1466306895,
0.1949996799,
0.1073073968,
-0.0318153091,
-0.1631298363,
-0.1450650543,
0.0851987302,
0.1608673781,
0.0558377169,
-0.1083913669,
0.2466589659,
0.0391712375,
0.2540228069,
0.2905914187,
0.6154165864,
0.2174605727,
-0.1451700777,
-0.1075325012,
0.5513704419,
-0.1269811243,
0.1778580993,
-0.1611257195,
0.0784480721,
0.130077675,
0.4158470631,
0.3707651198,
0.0569749996,
-0.0141049,
0.3265421689,
0.3966308832,
0.3768802285,
-0.1455523819,
0.4099494517,
0.020845741,
0.7864274979,
0.1345526129,
0.0224278364,
-0.0784279555,
-0.0664542019,
-0.20140782,
0.2849701345,
0.0579811186,
-0.1270244271,
-0.043957077,
0.0324939787,
-0.4116568863,
-0.2509119213,
-0.0901641399,
0.2941633761,
-0.1861131489,
-0.0275497343,
-0.201968506,
0.3964213133,
-0.1035466269,
-0.1722549945,
-0.3388822079,
0.3151676655,
-0.1727356762,
0.3633080125,
-0.0682506785,
-0.0829110071,
-0.4237009585,
0.0068070795,
0.1390764415,
0.5101337433,
0.1666077077,
0.1185484082,
0.2297815084,
-0.3136429191,
0.0034597262,
-0.1398486644,
-0.0611799397,
0.2551800013,
-0.1935106516,
-0.3489824533,
0.4559245706,
0.1366756409,
-0.0269264169,
-0.0449478403,
0.1454239935,
0.0375792459,
-0.1526241004,
0.155687049,
-0.2055646032,
0.0173784699,
-0.0842234567,
0.1623414308,
-0.2820926309,
-0.1711755991,
0.5271530151,
-0.4188022316,
0.0813424066,
-0.3827398717,
0.1020131186,
0.1935079247,
0.2114937603,
0.6204614043,
-0.103772752,
-0.1469075978,
-0.1095474586,
-0.4079176188,
0.1644622087,
-0.1582415104,
-0.318451792,
0.0875775144,
0.3191933036,
0.0396874994,
0.1900385022,
0.1147425249,
-0.0094540734,
-0.3201804459,
0.0919586867,
-0.0765097812,
-0.1971866637,
-0.6082587242,
-0.3756646812,
-0.0783490986,
-0.0393026359,
-0.0120837782,
-0.0698499158,
0.0790321752,
-0.1023752317,
0.1293749213,
0.2980472445,
-0.053659521,
0.5025129318,
0.0655844361,
0.1570374072,
0.1724781096,
-0.0988538861,
-0.2360392362,
0.1621496677,
-0.0947710648,
0.092025727,
-0.3200402558,
0.0492449887,
-0.1787627488,
-0.0936451852,
-0.1561881006,
-0.0930559486,
0.2712768316,
0.08556775,
-0.3052104115,
-0.0915410072,
-0.3662163913,
-0.0475922339,
0.1131278798,
0.1878005117,
-0.0185383819,
0.1009798422,
-0.0904690325,
-0.3305734992,
-0.0814051554,
-0.4412474632,
0.0493257381,
-0.0729332194,
0.3531401753,
-0.3964944482,
0.0092270533,
-0.8006337881,
0.0934303701,
0.38164711,
-0.2947747409,
-0.1552795768,
0.0444764011,
-0.044964686,
0.1206376702,
0.0081220008,
-0.3054714203,
-0.0722440779,
0.0304553248,
0.0071346997,
-0.1575198472
] |
https://github.com/huggingface/datasets/issues/153 | Meta-datasets (GLUE/XTREME/...) – Special care to attributions and citations | Yes, I think we should remove this warning @mariamabarham.
It's probably a relic of tfds which didn't have the same way to access citations. | Meta-datasets are interesting in terms of standardized benchmarks but they also have specific behaviors, in particular in terms of attribution and authorship. It's very important that each specific dataset inside a meta dataset is properly referenced and the citation/specific homepage/etc are very visible and accessible and not only the generic citation of the meta-dataset itself.
Let's take GLUE as an example:
The configuration has the citation for each dataset included (e.g. [here](https://github.com/huggingface/nlp/blob/master/datasets/glue/glue.py#L154-L161)) but it should be copied inside the dataset info so that, when people access `dataset.info.citation` they get both the citation for GLUE and the citation for the specific datasets inside GLUE that they have loaded. | 24 | Meta-datasets (GLUE/XTREME/...) – Special care to attributions and citations
Meta-datasets are interesting in terms of standardized benchmarks but they also have specific behaviors, in particular in terms of attribution and authorship. It's very important that each specific dataset inside a meta dataset is properly referenced and the citation/specific homepage/etc are very visible and accessible and not only the generic citation of the meta-dataset itself.
Let's take GLUE as an example:
The configuration has the citation for each dataset included (e.g. [here](https://github.com/huggingface/nlp/blob/master/datasets/glue/glue.py#L154-L161)) but it should be copied inside the dataset info so that, when people access `dataset.info.citation` they get both the citation for GLUE and the citation for the specific datasets inside GLUE that they have loaded.
Yes, I think we should remove this warning @mariamabarham.
It's probably a relic of tfds which didn't have the same way to access citations. | [
0.0700619072,
-0.144565925,
-0.0095196338,
0.015376335,
0.3223142922,
0.1147493124,
0.2942696512,
0.2142910361,
-0.0758147985,
0.2329560667,
-0.1995280683,
0.094711788,
0.2110273391,
-0.1058296561,
-0.024672173,
0.1326557249,
-0.094471477,
-0.0668340027,
0.006023264,
-0.0338111706,
-0.0002156979,
-0.1118190736,
0.1891225278,
0.4480978251,
-0.144909665,
0.0250755008,
0.0706489906,
-0.0829549879,
0.0318240412,
-0.6247044206,
0.1060623527,
0.21546188,
-0.1298780292,
-0.1473542154,
-0.0000993931,
0.248772949,
0.58835572,
0.0202403758,
-0.0434489027,
-0.1799242347,
-0.3961483538,
-0.1768084168,
0.1669311076,
-0.4316166639,
-0.0729645416,
-0.01084447,
0.166851595,
-0.2109293491,
0.0664902553,
-0.1339365393,
0.276897043,
0.3457240462,
-0.0828669742,
-0.0025878903,
0.4308307171,
0.2690135539,
-0.1015343666,
0.0697414726,
0.2587529719,
0.1499797553,
-0.1898742169,
0.5585032105,
-0.2547703981,
0.2304152697,
0.334361434,
-0.0307751112,
0.4076527953,
-0.1766726077,
-0.07845065,
0.551200211,
0.4213292003,
-0.2138156593,
-0.2104596198,
-0.3318563402,
-0.0781149641,
0.4283212423,
0.1161511242,
0.2647091746,
0.0232581235,
0.2159828842,
-0.0700548589,
-0.1256977469,
0.0333458036,
-0.1293750107,
0.3187440038,
0.1101646796,
-0.2037923485,
0.2475548387,
0.2031623572,
-0.02348895,
-0.0203431621,
0.0218576565,
-0.2034276724,
-0.1890847236,
0.1768643558,
-0.2052763104,
0.2073390335,
-0.0320458636,
0.3742007613,
0.1205044612,
0.0731947422,
-0.195558399,
0.0892422795,
0.2061319053,
0.5328940153,
-0.2574995756,
-0.0131411254,
-0.0194569025,
0.4737763107,
0.0001123688,
0.1296990812,
0.0355440378,
0.2302269936,
0.0140747624,
-0.3832715452,
0.1017333642,
0.3223791122,
-0.2117628455,
-0.3561384082,
-0.1078935713,
0.0404993817,
-0.2033009082,
-0.20487611,
0.0807846114,
0.1384628117,
-0.2026664913,
-0.310166955,
0.085920006,
0.0247679092,
-0.3047364354,
-0.3057552576,
0.087214604,
-0.4357519746,
0.0824752003,
-0.1928709596,
-0.0116644474,
0.2965303957,
-0.144845739,
-0.0302489996,
0.1089664251,
-0.1400482655,
-0.2112829238,
0.2341418564,
0.4489609599,
0.0946054757,
0.3177883327,
0.1769146174,
-0.0336500667,
-0.3718381524,
0.1521983892,
-0.3379710913,
-0.4900808036,
-0.0837175921,
0.2100348622,
-0.3496394753,
0.0844408497,
-0.3771424592,
0.1509405077,
0.1434283406,
0.0649409294,
0.0921903029,
0.1776472479,
-0.2130919695,
-0.3454889655,
-0.0422292873,
0.5463479757,
-0.0827618912,
-0.0866189301,
-0.0190957319,
-0.4698162079,
-0.1299044639,
0.260160327,
-0.4755263031,
0.3290539086,
-0.2679230273,
0.1474170238,
0.0395525768,
-0.4772800207,
-0.1736409962,
0.3119105697,
-0.1044777781,
-0.0479144938,
0.1176473796,
0.1089153737,
0.1658997536,
-0.5870685577,
-0.0304698739,
-0.1759408712,
0.1104891673,
0.119211629,
-0.1627026647,
-0.3829749525,
0.0566527396,
-0.2763586938,
-0.2641004622,
-0.012872695,
0.4228345454,
0.1209452003,
0.2197257131,
0.0305886772,
0.0377684645,
0.2376690954,
0.1482820809,
-0.1065010726,
-0.0714380071,
0.102949135,
-0.2082953453,
0.0652794689,
0.1450045407,
0.0664692447,
0.1364903301,
-0.4238218963,
0.0991499722,
-0.0161927436,
-0.1137726158,
-0.2195949852,
0.2538332343,
-0.0830102935,
0.0947015733,
0.1340947598,
-0.0194898695,
0.1364643872,
-0.6126281619,
0.0462038331,
-0.2305435389,
-0.1165876389,
-0.2976148129,
0.2311674953,
0.0554817021,
0.0804915875,
0.1117280722,
0.0237840824,
-0.0524695441,
0.3400124907,
0.0517708547,
0.394913733,
-0.0406736769,
0.6138721704,
0.2231798917,
-0.5713280439,
0.1378152072,
-0.2158349156,
-0.1533060223,
-0.1040811539,
-0.1582479477,
-0.135268271,
-0.0885923281,
0.0601087585,
0.0451332442,
0.0000661687,
0.0415530764,
-0.006742123,
-0.2508730292,
-0.4003401697,
-0.2829265893,
0.500272274,
-0.072399132,
0.2863228321,
-0.108521834,
0.2606109679,
0.3621716499,
0.0548167191,
-0.0393291488,
0.0296873394,
-0.0757629648,
-0.3197321892,
0.15591079,
0.4960691631,
0.2209616303,
0.3079427779,
0.14503254,
0.1003673077,
0.0301020443,
-0.2011735588,
0.0979582369,
0.1186490133,
-0.0690441802,
-0.1829249114,
0.0365336724,
0.3410841823,
-0.0014194637,
0.1646095663,
0.0206258334,
-0.038764134,
-0.6539144516,
-0.1158525795,
-0.1930621564,
-0.358048439,
-0.0513718762,
-0.0068286667,
-0.2454953939,
-0.4027353525,
0.1641925126,
0.0823665112,
-0.5194944739,
0.2355527878,
0.0435498431,
0.2066185474,
-0.1651602089,
0.1021999493,
-0.0209212266,
-0.1009681821,
-0.0554132164,
0.0996647775,
-0.0378539115,
0.0698286965,
0.2612136006,
-0.164296329,
-0.0497960635,
-0.5962057114,
-0.3823762834,
0.2521505952,
-0.3279666603,
0.2222899944,
0.1489730924,
-0.1134581119,
0.0981159136,
-0.1255474687,
-0.0929594636,
-0.1906376928,
-0.1266700029,
-0.090818204,
-0.0062616332,
-0.0350670442,
-0.1715419888,
-0.1666036099,
-0.2416957468,
-0.3181685507,
-0.1549540311,
-0.1906790882,
0.2219140679,
0.3152842224,
-0.1027836651,
-0.0827135518,
-0.2239647657,
0.3041279614,
-0.4019364715,
-0.504887104,
0.1658489853,
-0.2215513736,
-0.3774486482,
-0.0420890711,
0.0598329082,
0.122277014,
-0.1280857027,
-0.3601258695,
-0.4373357594,
-0.0798779875,
-0.3631135523,
0.0020133383,
0.2800777555,
0.2119287252,
-0.0499433242,
-0.1743849069,
-0.0333192609,
-0.0635367036,
0.1218525171,
-0.127162084,
0.2680667639,
-0.0562348813,
-0.3644717038,
0.2132200152,
0.5952410698,
0.1756830215,
0.0378455631,
0.1164052635,
-0.0386805683,
0.6246579885,
0.0095966542,
-0.1521574557,
0.2418381423,
0.0098851426,
0.0968593284,
0.2258622497,
-0.1410879493,
0.0289779045,
0.0751977563,
0.1054384261,
0.0982204154,
-0.373752445,
-0.1792003363,
-0.0816593766,
0.01805407,
0.2500851154,
0.0515306406,
0.2197840363,
-0.2101411521,
0.1943716705,
0.3538513184,
0.1270569265,
0.1666173637,
-0.1615898162,
0.0003352578,
-0.2080238312,
-0.1089846194,
-0.024652563,
-0.0357161984,
-0.1357506961,
-0.3393703699,
0.177638799,
0.2876364887,
0.2035371512,
-0.4313401878,
0.1474875361,
0.0751997828,
0.1250079721,
-0.2347595543,
-0.1022747159,
-0.10592594,
0.031735722,
0.3103688657,
0.2519682944,
-0.2847985327,
-0.2675502896,
0.1913032085,
-0.2784379721,
0.0206543896,
-0.0241042618,
-0.2883765697,
-0.0973784477,
-0.3232780099,
-0.1715880185,
0.2962931991,
-0.1423626393,
-0.1365234405,
0.0823552087,
0.0970975384,
0.1753093749,
0.1114526391,
0.2601167262,
0.0136225205,
0.0649727359,
0.0734224319,
0.3374757171,
0.1691446304,
0.1002796739,
0.6567738652,
-0.1104595885,
0.0931358114,
0.128273949,
-0.0122839035,
0.1127999127,
0.2854922712,
0.132607311,
-0.1569602638,
-0.239324674,
-0.1078428924,
-0.3550829291,
0.0783156082,
-0.0448402278,
-0.1880508661,
-0.1419252902,
-0.182645157,
0.3122475147,
0.1790774316,
-0.1519476622,
0.1807038486,
0.7234705687,
-0.1564106196,
0.129990533,
0.369056046,
1.0367548466,
0.0786097348,
0.1230297312,
0.0089300508,
0.052747,
0.7456654906,
-0.1144991592,
-0.1441479772,
-0.3573931754,
-0.2628282905,
-0.062242534,
-0.1339675039,
0.0957847089,
0.0564469546,
0.016495375,
-0.0189586878,
0.2072925121,
0.1737813354,
-0.1430291384,
0.2870818079,
0.0599221103,
-0.1960024387,
0.2088272125,
0.1840649098,
-0.1905965507,
0.2169746011,
0.1216050461,
-0.0859944224,
0.2198133022,
-0.1362178475,
-0.2206006944,
-0.0281084515,
-0.2595711648,
0.3074920774,
0.1501799673,
0.0294346139,
0.3491312861,
-0.0557835922,
0.4425502717,
0.1760610789,
-0.1409610659,
-0.062301334,
0.1516149789,
-0.1039144099,
-0.1533172429,
-0.1062071472,
0.3702367842,
0.1290437132,
-0.2317491621,
-0.1106465906,
0.0887442008,
-0.326295048,
0.048415307,
-0.3035497367,
-0.2184043825,
-0.2886969447,
0.0248747934,
0.2225872427,
0.041234117,
0.0508072115,
0.1517777592,
0.0382649675,
-0.1730938405,
0.242116496,
0.0426585637,
-0.3017170429,
0.1082694829,
0.2322666347,
0.1175739244,
0.1416341811,
-0.1748856604,
-0.1543358862,
-0.1903940886,
-0.2253006548,
-0.0359265544,
-0.1865977645,
-0.1278927475,
-0.053370025,
0.0019440624,
-0.1060339436,
-0.3190717697,
0.2784804404,
0.1176415533,
0.2540145814,
0.0294792019,
-0.1734064817,
-0.2294347137,
0.4788810015,
-0.5582045317,
0.2304533124,
0.1612427831,
0.0152699091,
0.0834113955,
0.2891394496,
-0.4294477701,
-0.1126134992,
-0.0422563329,
-0.0008414476,
0.4520379901,
0.0395566374,
0.1620163918,
-0.1332274377,
0.0221149791,
0.0787493959,
-0.3577290475,
-0.2111246288,
-0.1421762258,
0.1017502844,
0.1264156103,
0.1620752513,
0.0904514194,
-0.0684404299,
-0.0206578858,
0.1031249762,
0.4096180201,
0.2586765885,
0.1639597565,
0.2574078441,
-0.2574313581,
0.0512584075,
0.0071437997,
0.1007031575,
-0.0765479878,
0.2108146548,
-0.0785494521,
-0.0009626102,
-0.2708187699,
-0.1260650307,
-0.0733057931,
0.2384909391,
0.1439593732,
0.207913518,
-0.0476422049,
0.2139853984,
-0.0866487473,
0.1197581738,
0.2312684357,
-0.1606965512,
-0.2761586607,
-0.3324229121,
0.0647147,
0.2520397902,
-0.1905215532,
-0.0617570244,
0.0368075259,
0.1374166906,
0.0982213095,
0.3613866866,
0.7539803982,
0.3685589433,
0.1130198687,
0.0363461971,
0.6952109933,
-0.3063837588,
0.1092277467,
-0.1038415655,
-0.2854998708,
-0.0144359339,
0.3212291598,
0.1427947134,
0.381554693,
-0.0452329405,
0.1222539172,
0.3876750171,
0.3558711708,
-0.0638081804,
0.3027635217,
-0.1111483201,
0.6664069891,
0.1474335492,
0.0913890675,
-0.2211163342,
0.0329667106,
-0.099156186,
0.065741159,
0.0010136542,
-0.122151643,
0.0528851226,
-0.0396425426,
-0.1632839739,
0.0566709526,
0.0481025018,
0.0374542326,
-0.1255087256,
0.0347318351,
-0.2353890985,
0.3433110118,
-0.2406150103,
-0.1162591651,
-0.2253899127,
0.2782295048,
0.066547513,
0.3283775747,
-0.024905201,
-0.0077513508,
-0.2384948134,
-0.0517237149,
0.2002738416,
0.7102637887,
0.2245143354,
0.1078247875,
0.2929622531,
-0.2177311778,
-0.1748894155,
-0.0290931594,
0.0316333398,
0.216875717,
-0.0662582591,
-0.2111462355,
0.5035739541,
0.108108595,
-0.075425528,
-0.0261129383,
0.2137738466,
0.0172245838,
-0.007223967,
0.1925745457,
0.0698872283,
-0.0549636781,
0.0361172967,
0.000777433,
-0.2643547952,
-0.1431747377,
0.7343968749,
-0.2106709778,
0.1840775907,
-0.3899573684,
0.1711170524,
0.2917603254,
0.445994854,
0.5310925245,
-0.2351713479,
-0.2693162858,
0.1810176224,
-0.8228287697,
0.3952473402,
0.0089489622,
-0.0218157191,
0.242877543,
0.2482739836,
0.061853487,
0.3399045467,
0.0026376178,
-0.0453976467,
-0.3527443707,
-0.2476006448,
-0.0640814975,
-0.0895557478,
-0.4320931733,
-0.1581152678,
-0.002458554,
-0.0639320388,
0.0824958459,
0.0692595914,
0.0386226624,
-0.0147044277,
0.1479071379,
0.2448119819,
0.0497078039,
0.4475650787,
0.1053284034,
0.1756125391,
0.0448161177,
-0.0231366549,
-0.1482611001,
-0.0601250902,
-0.2957172096,
0.1472606659,
0.0451176129,
-0.0438432992,
-0.1834724247,
-0.1543105543,
-0.3483727872,
-0.137893796,
0.1143562272,
0.1803754717,
-0.3972216249,
0.092255719,
-0.0055905692,
0.1035326123,
0.0397805944,
-0.0528204255,
0.0071038054,
0.2563714385,
-0.1417807639,
-0.5460960865,
0.3538499177,
-0.2556177676,
0.0452883653,
-0.0195360426,
0.4716039002,
-0.1112154573,
0.0082437368,
-0.9045562744,
0.0236184895,
0.3609056175,
-0.1116672978,
-0.2511822581,
0.1106985882,
-0.129335627,
-0.1062829047,
-0.0434472226,
-0.2299892008,
-0.089758426,
-0.2852358222,
-0.0782155618,
-0.3147266209
] |
https://github.com/huggingface/datasets/issues/149 | [Feature request] Add Ubuntu Dialogue Corpus dataset | @AlphaMycelium the Ubuntu Dialogue Corpus [version 2]( https://github.com/rkadlec/ubuntu-ranking-dataset-creator) is added. Note that it requires a manual download by following the download instructions in the [repos]( https://github.com/rkadlec/ubuntu-ranking-dataset-creator).
Maybe we can close this issue for now? | https://github.com/rkadlec/ubuntu-ranking-dataset-creator or http://dataset.cs.mcgill.ca/ubuntu-corpus-1.0/ | 34 | [Feature request] Add Ubuntu Dialogue Corpus dataset
https://github.com/rkadlec/ubuntu-ranking-dataset-creator or http://dataset.cs.mcgill.ca/ubuntu-corpus-1.0/
@AlphaMycelium the Ubuntu Dialogue Corpus [version 2]( https://github.com/rkadlec/ubuntu-ranking-dataset-creator) is added. Note that it requires a manual download by following the download instructions in the [repos]( https://github.com/rkadlec/ubuntu-ranking-dataset-creator).
Maybe we can close this issue for now? | [
-0.1457339525,
0.2197995931,
-0.065371111,
-0.0233407244,
0.1595496833,
0.2317843884,
0.2344496846,
0.1404035836,
-0.0935522839,
0.2077976167,
-0.1967510283,
0.2113595158,
0.0908538327,
-0.0198899116,
-0.0083213327,
-0.2836080194,
-0.0770923197,
-0.0565562546,
-0.0296265744,
-0.151661694,
-0.553712368,
0.1925108284,
-0.3070519269,
-0.0567777529,
0.1344802082,
-0.1004217491,
0.0116870571,
0.0735564753,
-0.189256385,
-0.456953764,
-0.0369164981,
0.2100034356,
-0.3256536722,
0.1866215765,
-0.0000998173,
-0.2117408216,
0.3059579134,
0.0414144099,
-0.3893639743,
-0.345675081,
-0.1688473523,
0.070819065,
-0.1088222787,
0.0231405385,
-0.3398522735,
-0.0281687994,
0.0886453614,
-0.2531461716,
-0.1794049889,
0.1825010031,
0.3645730317,
0.0986468345,
0.0132905189,
-0.5131924748,
0.0464073345,
-0.0297201145,
-0.333840698,
0.176156953,
0.3506747484,
0.2348507047,
-0.2275697887,
0.3493559062,
-0.0850728303,
-0.0861074924,
-0.164172262,
-0.1617785841,
0.2012356967,
-0.2212985307,
0.2724962831,
0.0855338648,
0.8510786891,
-0.2054710984,
-0.1884161681,
0.0553840026,
0.2368638366,
-0.1846892983,
0.0259004571,
0.0517959036,
-0.1399548352,
-0.065955244,
-0.19073461,
-0.2145890594,
-0.1629606187,
0.1234753653,
0.0775853619,
0.2758606076,
-0.0982587188,
-0.1178448349,
-0.0648627281,
-0.0285701398,
0.1747390926,
0.0444262773,
0.0044976319,
-0.0994878113,
-0.450581044,
-0.1421778202,
0.2934461832,
-0.0139170829,
0.1805757433,
0.0792421922,
-0.0689621195,
0.1509004235,
0.2425782681,
-0.1074471474,
0.1982825696,
0.1836602986,
0.235785827,
0.1007083356,
0.2788401544,
0.1521481723,
0.0445495322,
0.0953175724,
-0.1455166638,
-0.1416529566,
0.0203809869,
0.2877107859,
0.0293091871,
-0.1949755549,
-0.209992826,
0.0331568979,
-0.0101437494,
0.1828420907,
0.0950177833,
0.3426789939,
-0.0702011287,
0.000830946,
0.0004483012,
0.1347321719,
-0.1633304954,
-0.2379312068,
-0.1635293663,
0.0435237102,
-0.3320835531,
0.0789925233,
0.3352042139,
0.1977039129,
0.0810480863,
-0.0731777772,
0.652639091,
-0.032559026,
0.0887613147,
-0.0946504921,
-0.1276350617,
-0.0256188046,
0.084944807,
0.1249081492,
0.1755468696,
0.1631165743,
-0.1329625398,
0.1215445995,
-0.0979458466,
-0.229285121,
-0.1485717893,
0.3541339338,
0.2843055427,
-0.345941335,
-0.2182155102,
0.1816515326,
0.0304691587,
-0.1242463961,
0.0360020213,
0.1793026477,
-0.5638615489,
-0.1198018417,
-0.1937253028,
0.1882115901,
-0.1440859586,
-0.0578091219,
-0.3757376373,
-0.0396627411,
-0.0179009028,
0.0567412749,
-0.0736382157,
0.1494023651,
-0.1456646025,
0.2531200647,
-0.0436911397,
-0.4407576025,
-0.4889679849,
0.1472562701,
-0.1796407402,
-0.2009970099,
0.0854588896,
0.0793596134,
0.4515787065,
-0.2775591314,
0.1006060168,
0.2259104848,
0.2275552601,
0.2256551683,
-0.0608957186,
-0.117345266,
-0.2582629919,
0.1127174795,
0.19650805,
0.1305610389,
0.0260702334,
0.0918691605,
0.1809974909,
-0.1875293553,
0.1367050558,
0.1900649071,
0.4828182757,
-0.0919793099,
0.3573670387,
-0.1160517409,
-0.0181475002,
-0.0106611205,
-0.2372463793,
0.3643133342,
0.0819885209,
-0.3734310865,
-0.3915190995,
0.0386185274,
-0.0672150254,
-0.14808622,
0.2796754241,
0.1446676403,
-0.2751811147,
-0.0765579417,
-0.1154841557,
0.0268471483,
-0.073822543,
0.0028136617,
0.0991958007,
0.029219633,
-0.0367991962,
0.0031725937,
0.3169911206,
0.1818196774,
0.0539358333,
0.2323712558,
-0.1097492203,
0.3216854036,
-0.0538824312,
0.1996229738,
0.0129269371,
-0.057182461,
0.0831375495,
-0.2413344234,
0.1716486365,
0.3142677546,
-0.1589087993,
0.0413433984,
-0.1335089356,
0.0982965156,
0.2431685925,
0.0151093286,
0.195519343,
0.1304553896,
0.1951568127,
-0.2241234928,
0.1276553124,
-0.3192675114,
0.0511936396,
0.2708049715,
0.1071855277,
-0.0309548192,
-0.2921259701,
0.2595492601,
0.3622591197,
-0.0280064195,
0.3814354837,
0.2174118012,
-0.1518544257,
-0.1470981836,
0.1664778888,
-0.264839232,
0.0843156055,
0.3542544246,
0.2902133465,
0.0116121685,
0.0655245334,
-0.3486016095,
0.0931584537,
-0.0934587419,
-0.1122279465,
0.413033694,
0.2647447288,
-0.0552237928,
-0.5771733522,
0.1376947612,
-0.052551765,
0.0329411477,
-0.2305871099,
-0.2867488563,
-0.155227229,
-0.4819122255,
0.2490711212,
0.02916242,
0.1454894394,
-0.109712787,
0.4188367426,
0.0285633095,
-0.0700842813,
0.471575588,
0.2065002024,
0.4535328746,
-0.0588379204,
0.0771489292,
0.2722302675,
-0.245077014,
-0.0844783634,
0.3063847423,
-0.2414112091,
-0.0267412066,
0.5109685063,
0.0541282222,
0.2273271084,
-0.3986753821,
-0.250207454,
0.2745242417,
0.2686486244,
0.2051807493,
0.1456253529,
-0.1614295393,
-0.2069335878,
-0.1343293339,
-0.1148728505,
-0.0758790299,
-0.3143539727,
0.0239252225,
-0.0332683101,
-0.1479965001,
-0.1009343415,
-0.4821461737,
0.2255836427,
-0.5429045558,
-0.0721460283,
-0.0649802163,
0.13990964,
0.0545006134,
-0.1080092043,
0.0203583091,
0.2380869836,
0.2772633135,
-0.289152503,
-0.0475999005,
0.3393504918,
-0.4837678373,
-0.3549011648,
-0.2117677629,
-0.1903628111,
0.1838321537,
0.0908525884,
-0.1896079332,
-0.0120775951,
0.0065510399,
0.078362748,
0.3021088243,
-0.0885490924,
0.3156243265,
0.0954381898,
-0.3790740669,
-0.2183195502,
-0.0315253437,
0.0434762388,
0.0937240198,
0.2295887917,
-0.1382551938,
0.1959203631,
0.1474936008,
0.2408274412,
0.2726471722,
0.3439341486,
0.1083917543,
0.1125004962,
0.1874088645,
-0.172317639,
-0.2078284919,
0.2516317368,
0.0688260421,
-0.078447409,
0.5799378157,
0.3527548909,
-0.3229681849,
-0.0441810153,
-0.2059842944,
-0.0949336067,
-0.2647584379,
-0.1428053975,
-0.0631784648,
0.4356006384,
-0.0135945641,
0.0417857766,
-0.1648343801,
-0.2783922553,
0.3895578682,
-0.051098153,
0.0315875076,
-0.3228039145,
0.2417615801,
0.5417659879,
-0.334285289,
0.2472960204,
0.1395981461,
-0.2831557095,
-0.2363409102,
-0.0312594511,
0.0474421009,
0.1733108014,
0.4277935922,
-0.3847167194,
0.1248623207,
0.1616610289,
0.0252456926,
0.2655966282,
0.3384224772,
-0.1732675284,
0.0109525118,
0.0534409918,
0.337805599,
-0.2153677046,
0.3740755916,
0.2895162106,
-0.1248383075,
-0.0601080172,
-0.26088202,
-0.030996358,
-0.0748174489,
-0.0637138486,
0.0653591082,
-0.183585912,
-0.0489764102,
0.1201499104,
-0.0919864103,
-0.0969497412,
-0.1271461546,
0.1077821106,
-0.0239681993,
0.0495238528,
0.3088514209,
0.2255604565,
-0.0301390607,
-0.271261096,
0.2891286016,
0.2875472903,
0.0030459512,
-0.3202452064,
-0.0187485944,
-0.2834387422,
-0.017780263,
0.2611629665,
-0.0801034868,
0.1032155752,
-0.2141302675,
0.0385245569,
0.0321225412,
-0.2263958454,
0.1077725887,
-0.0683879256,
-0.2188727856,
-0.4211245477,
0.3298642337,
-0.1022922695,
-0.2822284102,
0.1920568347,
0.0519664548,
-0.2273857296,
0.1053060889,
0.2425383031,
0.906268537,
-0.1012231112,
-0.145975098,
0.2176079005,
0.0047936458,
0.3197514117,
0.0895395428,
0.3081050217,
-0.1948553175,
-0.062123023,
0.0099995881,
0.049227722,
-0.0072246743,
0.2924643755,
-0.3950832784,
0.0660036057,
-0.0555661842,
-0.0773384571,
0.0592147782,
0.0383184999,
0.0392658636,
-0.39300102,
-0.0438487902,
0.3037890196,
0.1409313828,
0.0138190547,
-0.0424114615,
0.0637061223,
0.1813238263,
-0.0245168358,
-0.3403654695,
0.1083222553,
-0.0531965643,
0.2331749052,
0.1822420657,
-0.2906415164,
0.3123786747,
0.2073212117,
0.3979810476,
0.3287528753,
-0.2152676433,
0.198196888,
0.4791024625,
0.0006108556,
0.1144862473,
0.0868549198,
0.3496519327,
-0.2161880136,
-0.2021831125,
0.0250555351,
0.2770275176,
-0.2289784551,
-0.395316273,
-0.1918426007,
-0.0332473591,
-0.0389104187,
0.2239556611,
0.0829390511,
0.0776082799,
-0.3248806298,
0.2740040421,
-0.0897001848,
0.0833289996,
-0.0385384858,
0.1145119369,
-0.174588263,
-0.1383466572,
0.3227697909,
0.298044771,
-0.2873391211,
0.0797952563,
0.3821927011,
-0.3586540818,
-0.4391873777,
-0.3443106413,
-0.1838162839,
-0.0743348449,
0.2853102982,
0.0049284962,
-0.0564044006,
0.0785309076,
0.1789061129,
0.0126475869,
0.125992924,
-0.1419870257,
0.0705615282,
0.019204516,
0.0071514305,
-0.1402676404,
-0.1769066751,
-0.2083019912,
-0.1948186457,
0.2179621607,
-0.0506887361,
-0.4734624922,
-0.1639011949,
-0.3634223044,
-0.0077871298,
-0.026749203,
0.0167206191,
-0.0337221958,
0.0006394836,
0.2583468258,
-0.2795390189,
-0.2122948766,
-0.3477821648,
-0.3026464283,
0.0763725787,
-0.0170776304,
0.1839535087,
0.1910750419,
-0.0649076998,
-0.1648265868,
-0.189285472,
0.2007457167,
0.3675886095,
-0.0371027067,
-0.0127659403,
-0.1142709479,
0.0583862327,
0.245513916,
0.096690312,
0.0115864044,
-0.0399800949,
-0.0249285996,
-0.1150882691,
0.017332783,
0.0672492236,
0.0794697925,
0.1012894362,
0.2966344059,
-0.2234766334,
0.2667153776,
-0.0709161982,
0.1485749632,
0.2088932246,
0.3306438625,
-0.1091111451,
-0.0084631648,
-0.1643292308,
-0.0769791901,
0.3529308438,
-0.4000604749,
-0.1541783661,
-0.3860527277,
-0.2121092677,
0.1627433449,
0.1340811551,
-0.0262006875,
-0.0305794515,
0.3415962756,
0.1099041328,
0.2402596623,
-0.3467568755,
0.0539672226,
0.10171929,
0.144453913,
0.043443013,
0.2272930443,
0.0230859388,
0.1974095255,
-0.0081569506,
0.3512206078,
0.2209969759,
0.0893574432,
0.2808228433,
0.1898698509,
0.0683038756,
0.3816757798,
0.3104639053,
-0.1492517143,
-0.0836071819,
0.1683250815,
0.0751108155,
-0.0174037851,
0.1823728979,
-0.2535952628,
0.028578721,
-0.1589747518,
-0.1432739943,
-0.3131221235,
-0.2097186446,
-0.2728102803,
-0.0230277888,
-0.102428183,
-0.0237806514,
-0.1523751616,
-0.232727468,
0.0678309426,
-0.4618991613,
0.2440065593,
-0.1306284666,
0.2266203165,
-0.2389583439,
-0.0932063088,
-0.1087388247,
0.1765352786,
0.12688981,
0.5840153098,
0.0268172231,
0.2071468234,
-0.0601520315,
-0.1499149352,
-0.0992480293,
-0.0444230214,
-0.1103357226,
0.1674553156,
0.1072186008,
0.3521735072,
0.1139853597,
0.266569972,
-0.2999921143,
0.4324699342,
0.1590470374,
-0.0051831356,
-0.1671379656,
0.3814974725,
-0.1099774092,
-0.1448549181,
0.04266968,
-0.1786757261,
-0.3601488769,
-0.1388969719,
0.5247942209,
-0.121409975,
-0.061076656,
-0.3290763497,
0.2009472549,
0.046903532,
0.2586031854,
0.2924346924,
-0.0568689741,
0.0858513415,
-0.1661031246,
-0.4019681811,
0.4331299961,
0.193884626,
0.0503121428,
0.0095249517,
0.0127344495,
0.0714432746,
0.4110075831,
-0.371635288,
-0.3558704257,
-0.4108238518,
-0.0205848608,
-0.4024206996,
0.0023750854,
0.2220056504,
0.0762672052,
-0.020250909,
-0.1922043413,
-0.1259809285,
-0.0466452427,
0.2020659447,
-0.0103788543,
-0.1062006205,
0.2348825336,
-0.0697825998,
0.08837834,
0.0368864313,
0.3651399314,
-0.1855439097,
0.0432210155,
0.0604683086,
-0.3253748119,
-0.1535695046,
0.1066720784,
0.1067298725,
0.1684602499,
0.0724485144,
-0.1535843611,
0.1489976197,
0.0825602785,
0.1491422951,
-0.0495879576,
-0.2522645295,
0.2731969357,
0.0124628898,
-0.0587327182,
-0.1050487459,
0.0041216682,
-0.0167049617,
-0.0452458858,
-0.045575358,
-0.6543856263,
0.1914208084,
-0.4609658122,
-0.1696774215,
-0.1917188913,
0.4397035241,
-0.1815088242,
-0.4255833626,
-0.2430222929,
0.1648896039,
0.2478935421,
0.1533917189,
-0.1385323554,
0.2155101597,
-0.2603450716,
0.1555550247,
-0.1125278845,
0.3743799627,
0.1484688669,
-0.1316870153,
-0.2542993426,
-0.1657211632
] |
https://github.com/huggingface/datasets/issues/143 | ArrowTypeError in squad metrics | There was an issue in the format, thanks.
Now you can do
```python3
squad_dset = nlp.load_dataset("squad")
squad_metric = nlp.load_metric("/Users/quentinlhoest/Desktop/hf/nlp-bis/metrics/squad")
predictions = [
{"id": v["id"], "prediction_text": v["answers"]["text"][0]} # take first possible answer
for v in squad_dset["validation"]
]
squad_metric.compute(predictions, squad_dset["validation"])
```
and the expected format is
```
Args:
predictions: List of question-answers dictionaries with the following key-values:
- 'id': id of the question-answer pair as given in the references (see below)
- 'prediction_text': the text of the answer
references: List of question-answers dictionaries with the following key-values:
- 'id': id of the question-answer pair (see above),
- 'answers': a Dict {'text': list of possible texts for the answer, as a list of strings}
``` | `squad_metric.compute` is giving following error
```
ArrowTypeError: Could not convert [{'text': 'Denver Broncos'}, {'text': 'Denver Broncos'}, {'text': 'Denver Broncos'}] with type list: was not a dict, tuple, or recognized null value for conversion to struct type
```
This is how my predictions and references look like
```
predictions[0]
# {'id': '56be4db0acb8001400a502ec', 'prediction_text': 'Denver Broncos'}
```
```
references[0]
# {'answers': [{'text': 'Denver Broncos'},
{'text': 'Denver Broncos'},
{'text': 'Denver Broncos'}],
'id': '56be4db0acb8001400a502ec'}
```
These are structured as per the `squad_metric.compute` help string. | 112 | ArrowTypeError in squad metrics
`squad_metric.compute` is giving following error
```
ArrowTypeError: Could not convert [{'text': 'Denver Broncos'}, {'text': 'Denver Broncos'}, {'text': 'Denver Broncos'}] with type list: was not a dict, tuple, or recognized null value for conversion to struct type
```
This is how my predictions and references look like
```
predictions[0]
# {'id': '56be4db0acb8001400a502ec', 'prediction_text': 'Denver Broncos'}
```
```
references[0]
# {'answers': [{'text': 'Denver Broncos'},
{'text': 'Denver Broncos'},
{'text': 'Denver Broncos'}],
'id': '56be4db0acb8001400a502ec'}
```
These are structured as per the `squad_metric.compute` help string.
There was an issue in the format, thanks.
Now you can do
```python3
squad_dset = nlp.load_dataset("squad")
squad_metric = nlp.load_metric("/Users/quentinlhoest/Desktop/hf/nlp-bis/metrics/squad")
predictions = [
{"id": v["id"], "prediction_text": v["answers"]["text"][0]} # take first possible answer
for v in squad_dset["validation"]
]
squad_metric.compute(predictions, squad_dset["validation"])
```
and the expected format is
```
Args:
predictions: List of question-answers dictionaries with the following key-values:
- 'id': id of the question-answer pair as given in the references (see below)
- 'prediction_text': the text of the answer
references: List of question-answers dictionaries with the following key-values:
- 'id': id of the question-answer pair (see above),
- 'answers': a Dict {'text': list of possible texts for the answer, as a list of strings}
``` | [
0.0508039854,
0.0322120674,
-0.0459480435,
0.3747366965,
0.3514668643,
-0.1831917465,
0.1283159703,
0.2945097089,
-0.0273576658,
-0.0166042242,
0.0504659712,
0.7067572474,
-0.2432428449,
-0.1496465057,
-0.2859818041,
-0.1268265396,
-0.0782126337,
0.2369154841,
0.2221025229,
0.133142665,
-0.1069738269,
0.3732539713,
-0.2818195224,
0.0420603901,
-0.1871122867,
-0.0922679678,
0.1176645681,
-0.0180934053,
-0.4135130942,
-0.6164671183,
0.3017503917,
-0.2972589433,
0.0052364464,
0.3161637485,
-0.0001209839,
0.020221265,
0.3255315125,
-0.1212443113,
-0.0995188877,
-0.3624779582,
-0.1135786176,
-0.2849886417,
0.5184354186,
-0.2206498086,
-0.0529842637,
0.1079016626,
-0.298488915,
-0.3533738852,
0.39602229,
0.4213609695,
0.114591755,
0.5141720772,
0.1794424355,
0.0158360787,
0.2684790492,
0.0566134527,
-0.2425852269,
0.3037302196,
-0.0190501269,
0.0541985594,
0.2327839583,
0.1645567566,
-0.1349520385,
0.0857614651,
0.0732455403,
0.1215910539,
0.1143219993,
-0.27371943,
-0.3592943251,
-0.1007358432,
0.2150739431,
-0.2580162883,
-0.2781117558,
0.145379737,
0.1172599494,
-0.2204062641,
-0.1395784765,
-0.1348268539,
-0.1219678223,
-0.1400871426,
-0.0538090356,
0.0593285672,
-0.2679058015,
0.1362892538,
0.0089109913,
0.2972381711,
-0.1583651602,
0.0389316641,
0.0348842405,
-0.0563536659,
0.0081361318,
0.0158317424,
-0.0161510315,
0.0318318717,
-0.3313941061,
-0.3471525013,
-0.268804729,
-0.4717368782,
0.0875609964,
-0.2626973987,
0.4471973777,
0.1234181747,
0.311154902,
0.1956387311,
0.1954372078,
0.2209552377,
0.3190048039,
0.0902374685,
-0.0424141139,
0.0770393983,
0.0266694445,
-0.0146494173,
-0.1296214461,
-0.2506052852,
-0.0045462819,
0.1766949743,
0.2899590433,
-0.0501545779,
-0.4034968019,
-0.0299782772,
-0.1991442442,
0.1590969861,
0.1704538763,
0.07383091,
-0.0638080984,
0.5698379874,
0.1854056567,
0.3461948335,
-0.0511377268,
0.0961198732,
-0.0193670727,
0.0788623318,
-0.0096870242,
-0.1923854798,
-0.0270003695,
0.2162172049,
0.1956914961,
0.0224326048,
0.1642468423,
-0.3621157408,
-0.0669126138,
-0.2479944974,
0.1282311082,
0.0124067124,
-0.0250415206,
0.0036070626,
0.4638483822,
-0.4866756797,
0.05315933,
0.1031384692,
-0.255577594,
0.0349706933,
-0.2557269037,
0.0791721046,
-0.1247741878,
-0.0453167185,
-0.2481399477,
0.1151026562,
0.2089596987,
0.1211376116,
-0.1219430566,
-0.2758209109,
-0.1292761713,
-0.3359874785,
0.1065725088,
0.0315502062,
-0.4582895339,
0.0349680707,
0.1058815196,
0.1642004848,
0.0140303606,
0.3637441695,
0.0033612358,
0.2000978142,
0.1050296575,
0.0284749456,
0.8762319684,
-0.8044186831,
-0.0820786953,
-0.0090434989,
0.0012668878,
-0.2809945047,
-0.087311469,
-0.0220151823,
0.4402938783,
0.0533396453,
0.1420262754,
0.0503541455,
0.1453557611,
-0.0085405558,
-0.2638964057,
-0.1193143502,
0.1466754079,
-0.1425345391,
-0.1730222553,
0.1039284617,
-0.0797436088,
0.2684727907,
0.1105620563,
-0.0664786324,
0.0611141957,
0.1640528142,
0.4742421806,
-0.2778574228,
-0.0457403958,
-0.3377386034,
-0.3439451158,
-0.0655030534,
-0.548074007,
0.076905258,
-0.2180023938,
0.0058844318,
-0.4639630914,
0.0206555948,
-0.0563175306,
0.3359316885,
0.1233769059,
-0.1026300043,
0.0918414518,
-0.0935059711,
-0.255534023,
-0.6211904883,
-0.2620673478,
0.083038792,
0.1390779763,
0.3291443586,
-0.1463874727,
-0.3838293552,
0.1651631892,
0.4464733899,
0.2130031884,
0.0080682971,
-0.0658436939,
0.1213375703,
0.3540565372,
-0.1507593691,
0.0106925042,
-0.1044697687,
0.1438917518,
-0.2698315084,
-0.0107435863,
0.2080320716,
0.2057910562,
-0.2543961108,
-0.0049185283,
0.5869114399,
0.1077326015,
0.3149625063,
-0.2861791253,
0.3985176086,
0.1203038171,
0.1769507676,
-0.0821277574,
-0.2799807191,
-0.3304679394,
0.1522513628,
-0.0254361965,
-0.1620460451,
-0.0637870058,
-0.1675984412,
0.4572311938,
0.3228213787,
0.0994221196,
0.147813499,
0.0465437584,
0.0683185011,
-0.2657339573,
-0.1572828144,
0.3239284158,
0.005493891,
-0.0097191082,
-0.0885384455,
0.0001501097,
0.0225494299,
0.2572912574,
0.1510602236,
0.527533412,
0.1311568916,
0.3096666038,
-0.1022446826,
0.0693102479,
-0.0438628606,
0.0674387217,
0.1808803827,
-0.3641237319,
0.011157739,
-0.0118703349,
0.0072924974,
-0.2385106087,
-0.470731765,
-0.0267354511,
-0.4714012146,
-0.1158627272,
0.0100717712,
0.1432023644,
0.1250333339,
0.4857569039,
0.0345748328,
0.2919038534,
-0.1115059704,
0.0830252767,
-0.4020987749,
-0.0498579144,
-0.0003867201,
0.1272578835,
0.0320948884,
-0.1930102855,
-0.0936160609,
0.1062558964,
-0.2555803955,
-0.2851400375,
0.0597852319,
-0.3108467758,
0.2366628349,
0.3271428049,
0.2808580101,
-0.3724357784,
-0.1666133851,
0.3785737157,
-0.0288567264,
-0.1685848981,
0.2441929281,
-0.1426268965,
-0.0243622269,
-0.0988959521,
-0.1292325705,
-0.3072053194,
-0.3354569376,
0.0683567524,
0.3457455039,
0.3730773032,
0.053139329,
0.272443682,
0.4034453332,
0.0807916075,
-0.0001709976,
-0.0012308626,
-0.016443789,
0.3754096329,
-0.2786476016,
-0.3549693823,
0.1033587381,
-0.0014876412,
0.3966338634,
-0.1320364475,
-0.1763368249,
-0.4355769455,
0.0963416919,
-0.1231452301,
-0.0684967637,
0.0432271697,
0.1222133934,
0.1184093058,
-0.1052377596,
-0.1198865995,
-0.042860236,
0.2057044208,
0.2839808464,
0.2661152184,
0.0998690575,
0.0670479462,
0.1417686641,
0.6796895266,
0.5670323372,
-0.3287318349,
0.1067519113,
0.0736634508,
-0.0548757091,
0.1150362343,
-0.139359355,
-0.188928619,
-0.2117859721,
0.1986002922,
-0.0188458618,
0.0248567164,
-0.2308127284,
-0.0143505745,
0.329639107,
-0.2408664674,
-0.1322582513,
0.1366751641,
-0.4730261266,
0.1664984375,
-0.1369111836,
-0.0744422823,
-0.1887188703,
-0.0989012495,
-0.0806805715,
-0.0217034556,
-0.0713027343,
-0.0749705806,
-0.2790544629,
-0.1767880768,
-0.1064950824,
0.3435654938,
0.0650887117,
0.4897404611,
0.0626075491,
0.0999676511,
-0.1777792871,
0.00769865,
0.3392591178,
-0.0674401,
-0.2268362492,
0.2448601723,
0.2739027143,
-0.6055728793,
0.0356464274,
-0.4606864452,
0.3582713306,
0.3156462908,
0.3402143121,
-0.4001620114,
-0.1986037046,
-0.1345353872,
0.081014052,
-0.1265994608,
0.1817158461,
-0.3149042428,
-0.3180413246,
-0.08915741,
0.1461325884,
0.3113479018,
0.3501495421,
0.1483453214,
-0.2247531265,
-0.155491814,
-0.1953374594,
-0.0279310588,
-0.0508834682,
0.3561353981,
-0.0212170128,
-0.1980429143,
-0.092414543,
-0.0144238546,
-0.0264718197,
0.2210910171,
0.2409333736,
-0.0601794347,
0.1075479835,
-0.0482938997,
0.5898951888,
0.2381631434,
0.0565029569,
0.2755435705,
-0.2692464292,
0.0346875899,
0.1243369803,
-0.3535953164,
0.3631423712,
-0.0017890437,
-0.0033943127,
-0.1160988584,
0.398167491,
0.0824366063,
0.1899146438,
0.1251915246,
0.2695426643,
-0.0993054882,
0.5887527466,
0.5044382215,
1.0051788092,
-0.0487240553,
0.0159731135,
0.2873920202,
-0.2012465894,
0.7326350212,
0.3245356083,
0.0919513926,
-0.4316607118,
0.3172285259,
-0.030843569,
-0.2598414123,
0.1846166551,
0.1067726538,
-0.436099112,
0.186076045,
-0.4134885371,
0.1592616439,
-0.0080978982,
0.1717673838,
0.0267343987,
-0.2314115614,
-0.3901664615,
0.0879284218,
-0.312736392,
-0.2019165456,
-0.0495231152,
-0.2381230295,
-0.3815184534,
-0.0429041386,
-0.2148087323,
0.046914652,
-0.2930555344,
0.1425161809,
0.4490363896,
-0.436101228,
0.4553054571,
0.7702949643,
0.1273579895,
0.0408997387,
-0.143868044,
-0.0859151259,
0.0762469843,
-0.0254368596,
0.2017617226,
0.0004918568,
-0.049187474,
-0.167730391,
-0.1297775656,
0.1660689861,
-0.0436720438,
-0.3717534244,
0.3717103004,
0.2580519021,
-0.0624022111,
-0.2749510407,
-0.3037239909,
-0.1099399626,
-0.406961441,
-0.1118241251,
0.0860736743,
0.1400077194,
-0.3264704645,
0.4341599643,
0.368353188,
-0.0564821325,
0.4477923512,
0.0986705944,
0.0883864462,
0.1416401565,
0.4436475337,
0.1274260581,
-0.1814845651,
-0.2552117109,
-0.0645528734,
-0.4761033952,
-0.0928396806,
0.3286772668,
-0.0406083167,
-0.213104412,
-0.0108639086,
0.5669574738,
0.260689348,
0.5758245587,
-0.2606140971,
-0.4687612057,
-0.2717660666,
0.1897423714,
-0.0198520273,
0.0188738164,
-0.3593865335,
0.0818085372,
-0.0819116309,
-0.0139123313,
-0.2697998881,
0.2134246528,
-0.569680512,
0.3495381773,
-0.6191999316,
-0.4032842219,
0.1359456629,
-0.0089497827,
0.0068187853,
0.2225112319,
-0.0832765922,
-0.1549551785,
-0.0731138811,
0.1527771652,
0.1555105001,
-0.0514136925,
-0.0118822809,
0.1529569626,
-0.1409270167,
-0.1005182937,
-0.4417816103,
0.0856768563,
-0.067519471,
0.3428401053,
-0.1434999853,
0.1924025565,
0.2198771238,
-0.0856730863,
-0.0103808325,
0.1345744431,
-0.0955533087,
0.3077329397,
0.170032233,
-0.0654289871,
-0.0525704138,
0.2172366828,
0.0633550212,
0.0598932132,
0.2724039257,
-0.2143557221,
-0.1789779216,
0.09252996,
0.3538965285,
0.2754510939,
-0.1857606918,
0.1347741932,
-0.2238714844,
0.0362662002,
-0.1793580055,
-0.0393186025,
-0.0215974376,
0.1487631053,
-0.0412244387,
0.3793970942,
0.3718068302,
-0.0231435504,
-0.0803522691,
-0.0416757837,
0.1542372257,
-0.122721158,
0.2475917488,
-0.3958325982,
0.0751776919,
-0.024907615,
0.2735928893,
-0.123747699,
0.0956043452,
-0.2288333178,
-0.0142172417,
0.2819488347,
0.0854722038,
-0.0859704241,
0.1893067211,
0.3144549429,
0.1553158611,
0.1471988261,
0.222703442,
0.047715243,
0.085112758,
0.5225042701,
-0.228880927,
-0.0636966079,
-0.0335923024,
-0.0285828505,
-0.0177000817,
0.0306018665,
-0.4115177095,
-0.0992606878,
-0.0890588164,
-0.4046371877,
-0.0264151711,
-0.1401496679,
0.257819891,
0.1654347479,
0.1977566928,
-0.2232017368,
0.2746030092,
0.4362156689,
0.2820154727,
-0.254386723,
0.2374142706,
0.1238754019,
0.276156038,
-0.0829125941,
0.5080302954,
0.3289723694,
0.3917834461,
-0.4950327575,
-0.073256366,
-0.1334457844,
-0.3794182539,
0.2263945043,
0.0825959891,
0.1340557635,
-0.3469325304,
0.2593828142,
0.147841692,
-0.0690114349,
-0.1664567292,
-0.0432167388,
0.0238649361,
0.199479267,
0.5430542231,
-0.2604899406,
-0.1268407106,
-0.0791174173,
-0.1818795949,
-0.4427400529,
-0.1996076852,
0.1990773231,
-0.0479121394,
0.1301488429,
0.0324304439,
0.0542692915,
0.0615517832,
0.3101582527,
0.1081361324,
0.2539690435,
-0.302798152,
-0.1292400211,
-0.12632972,
0.0504745841,
0.1605039835,
0.0505027063,
0.2596036792,
0.4793990552,
-0.1471512616,
0.5145975351,
0.0665207505,
0.0356530137,
-0.1728393435,
-0.1022698581,
-0.6833412647,
0.0515286326,
0.171699807,
-0.0296038147,
0.1330193728,
-0.1457441896,
-0.0005712078,
0.057781741,
0.0241934247,
-0.3936920762,
-0.101792179,
0.0639712662,
0.2878843844,
-0.0906264707,
0.013407276,
0.4009189904,
0.1135181859,
-0.2874776423,
0.1107887402,
-0.2656003237,
-0.0452515706,
0.3098521829,
-0.0559049807,
0.5316380858,
-0.0672462061,
0.2168066204,
-0.1924795508,
0.0966424718,
-0.0552824736,
-0.258338511,
-0.4051496983,
0.2321386486,
-0.1943496168,
0.0025620763,
-0.2144561261,
0.2064038813,
-0.0294167809,
0.4374974966,
-0.3823653162,
-0.2853170037,
0.4036145806,
-0.1072979122,
-0.3715750277,
0.3903605044,
0.1150050312,
0.1893110275,
0.1503645182,
-0.6484136581,
-0.2527801692,
0.2446092814,
-0.0922935009,
-0.1966512799,
-0.0019909812,
-0.138649255,
-0.0159692839,
-0.0140754757,
0.1917027384,
-0.1523195952,
0.1952583045,
-0.320800215,
-0.3016758561
] |
https://github.com/huggingface/datasets/issues/138 | Consider renaming to nld | I would suggest `nlds`. NLP is a very general, broad and ambiguous term, the library is not about NLP (as in processing) per se, it is about accessing Natural Language related datasets. So the name should reflect its purpose.
| Hey :)
Just making a thread here recording what I said on Twitter, as it's impossible to follow discussion there. It's also just really not a good way to talk about this sort of thing.
The issue is that modules go into the global namespace, so you shouldn't use variable names that conflict with module names. This means the package makes `nlp` a bad variable name everywhere in the codebase. I've always used `nlp` as the canonical variable name of spaCy's `Language` objects, and this is a convention that a lot of other code has followed (Stanza, flair, etc). And actually, your `transformers` library uses `nlp` as the name for its `Pipeline` instance in your readme.
If you stick with the `nlp` name for this package, if anyone uses it then they should rewrite all of that code. If `nlp` is a bad choice of variable anywhere, it's a bad choice of variable everywhere --- because you shouldn't have to notice whether some other function uses a module when you're naming variables within a function. You want to have one convention that you can stick to everywhere.
If people use your `nlp` package and continue to use the `nlp` variable name, they'll find themselves with confusing bugs. There will be many many bits of code cut-and-paste from tutorials that give confusing results when combined with the data loading from the `nlp` library. The problem will be especially bad for shadowed modules (people might reasonably have a module named `nlp.py` within their codebase) and notebooks, as people might run notebook cells for data loading out-of-order.
I don't think it's an exaggeration to say that if your library becomes popular, we'll all be answering issues around this about once a week for the next few years. That seems pretty unideal, so I do hope you'll reconsider.
I suggest `nld` as a better name. It more accurately represents what the package actually does. It's pretty unideal to have a package named `nlp` that doesn't do any processing, and contains data about natural language generation or other non-NLP tasks. The name is equally short, and is sort of a visual pun on `nlp`, since a d is a rotated p. | 39 | Consider renaming to nld
Hey :)
Just making a thread here recording what I said on Twitter, as it's impossible to follow discussion there. It's also just really not a good way to talk about this sort of thing.
The issue is that modules go into the global namespace, so you shouldn't use variable names that conflict with module names. This means the package makes `nlp` a bad variable name everywhere in the codebase. I've always used `nlp` as the canonical variable name of spaCy's `Language` objects, and this is a convention that a lot of other code has followed (Stanza, flair, etc). And actually, your `transformers` library uses `nlp` as the name for its `Pipeline` instance in your readme.
If you stick with the `nlp` name for this package, if anyone uses it then they should rewrite all of that code. If `nlp` is a bad choice of variable anywhere, it's a bad choice of variable everywhere --- because you shouldn't have to notice whether some other function uses a module when you're naming variables within a function. You want to have one convention that you can stick to everywhere.
If people use your `nlp` package and continue to use the `nlp` variable name, they'll find themselves with confusing bugs. There will be many many bits of code cut-and-paste from tutorials that give confusing results when combined with the data loading from the `nlp` library. The problem will be especially bad for shadowed modules (people might reasonably have a module named `nlp.py` within their codebase) and notebooks, as people might run notebook cells for data loading out-of-order.
I don't think it's an exaggeration to say that if your library becomes popular, we'll all be answering issues around this about once a week for the next few years. That seems pretty unideal, so I do hope you'll reconsider.
I suggest `nld` as a better name. It more accurately represents what the package actually does. It's pretty unideal to have a package named `nlp` that doesn't do any processing, and contains data about natural language generation or other non-NLP tasks. The name is equally short, and is sort of a visual pun on `nlp`, since a d is a rotated p.
I would suggest `nlds`. NLP is a very general, broad and ambiguous term, the library is not about NLP (as in processing) per se, it is about accessing Natural Language related datasets. So the name should reflect its purpose.
| [
0.3546045423,
0.0250588749,
-0.0843050182,
-0.3304427564,
0.1876238436,
-0.236012876,
0.28185305,
0.2058826387,
-0.1652064472,
0.0582918562,
0.2198298872,
0.2940490246,
-0.3030350804,
0.124629885,
0.3023299575,
-0.2793754339,
0.208622247,
0.0491359942,
0.163286671,
-0.12861453,
-0.1061516404,
0.1799215823,
0.1566793174,
0.4202882648,
0.0016417105,
0.0405684784,
0.2510457635,
-0.1025931761,
0.0196671635,
-0.3666578829,
0.0917975232,
0.3173363805,
-0.0723684505,
0.0078899302,
-0.000103016,
-0.1667027324,
0.5983601809,
-0.0208174679,
-0.1951323301,
-0.2738524079,
0.349458456,
-0.4347409606,
0.0873835906,
-0.5374495387,
0.1049490124,
0.2493642569,
0.1611561775,
-0.276920408,
0.172302261,
-0.0842129886,
0.2791434824,
-0.0322702117,
-0.2336920351,
0.2664331794,
-0.0823111087,
0.1612643898,
-0.1856751591,
-0.1456343532,
0.1019585207,
-0.0416523814,
0.0535839908,
0.2429708838,
-0.1371390074,
0.0111302752,
0.4416790009,
0.1220084205,
0.3055425286,
0.0429872759,
-0.0890985131,
0.1462108791,
0.0160025489,
-0.3755002618,
-0.2275757641,
-0.1618047655,
0.0141654378,
-0.4211738706,
0.0508646294,
-0.0911910534,
-0.0744972825,
-0.0652685389,
0.3642607033,
-0.1167292595,
0.0555222332,
0.1869731098,
0.0563991144,
0.6406508088,
0.1287475675,
0.1855204552,
0.0186786726,
-0.2868245244,
0.1609269083,
0.171697408,
0.204897508,
0.0659399852,
0.1589836627,
-0.1076444536,
0.0360815637,
-0.0260849074,
-0.1019778028,
-0.0282881055,
-0.0157897808,
-0.0529253818,
0.1841490716,
-0.1026074737,
-0.0229199026,
-0.0395879969,
0.2494287044,
0.0680685639,
0.3340998292,
0.0483053438,
0.1616840214,
0.0051701008,
-0.0170283411,
0.113665022,
0.0018839892,
0.0539526232,
0.1125139669,
0.0556236021,
0.0231455527,
-0.0699976906,
0.1393642128,
-0.0318879411,
0.01228166,
0.2282055318,
0.0296435487,
0.4047166705,
0.1179115772,
-0.0512217507,
-0.0545106903,
0.0529051386,
-0.1768298298,
-0.0293127224,
-0.5875115991,
0.1920244396,
-0.0093171773,
0.5461201668,
0.3421473801,
-0.2364342809,
-0.1096443385,
0.0759178028,
-0.0507353917,
0.1224970073,
-0.035852395,
-0.0496277586,
-0.434293896,
0.1021535024,
-0.2238203585,
-0.3176432252,
-0.2762624025,
0.1289541274,
-0.2020070255,
0.093801558,
-0.1377501339,
0.302326262,
-0.285153389,
-0.0645211786,
0.4819486439,
0.1596667022,
0.1319607347,
-0.2455683649,
0.1019593477,
-0.0245485827,
0.1727489382,
-0.1681720912,
-0.2812473476,
0.0770908967,
0.1417668164,
-0.4519436359,
-0.563080132,
0.071245715,
0.3810741603,
0.0145661095,
-0.168133527,
-0.0279530082,
0.1246095598,
0.0463551097,
0.5702140331,
-0.377081275,
-0.1004940867,
0.1108656973,
-0.2571688294,
-0.1666594744,
0.0733328685,
0.172489956,
-0.0463333689,
-0.178151533,
0.2236124426,
0.4268015027,
0.1682260633,
0.1578954905,
-0.2671320438,
-0.1424055547,
0.3670619726,
0.020118827,
0.0713864565,
0.145018518,
-0.2018316686,
0.7421376109,
0.1609520614,
0.0481396988,
0.0549912527,
0.1300475299,
-0.0001047579,
0.2264645696,
0.0527036749,
-0.0485745184,
-0.2530001998,
-0.1717444062,
-0.3851438761,
0.2766964734,
-0.140701592,
-0.3179915845,
-0.0011529273,
-0.0611751825,
0.0840613469,
-0.2455077916,
0.314219296,
0.1664158404,
-0.0728964657,
-0.1845241189,
-0.3374125659,
0.2081884295,
0.1162086502,
0.0268576704,
-0.1347389817,
0.0125923324,
-0.0472035334,
-0.1227352098,
-0.0485320054,
0.4621074498,
0.0617955811,
0.0230287928,
-0.0187293049,
0.1212336943,
-0.0920707658,
-0.1717240959,
-0.1780797988,
0.3527117372,
0.1953413039,
0.0335728228,
0.1522720009,
0.2178539038,
0.00523917,
0.0609578341,
0.165421322,
0.0910021365,
-0.2310309857,
0.1728600115,
0.1610241234,
-0.1268762946,
0.2499849647,
-0.3104696572,
-0.3951841295,
-0.159494251,
0.2015538216,
-0.174465552,
0.3688203394,
0.2622096837,
-0.0718517005,
-0.0054821004,
0.7487165332,
-0.1023490727,
-0.0018589926,
0.0346929245,
0.0061897417,
0.0344389826,
-0.0982623473,
0.4255808592,
0.3692653775,
0.2573753297,
-0.2147238255,
0.0731224641,
-0.1584897041,
-0.23952429,
0.1479514986,
0.2729808688,
-0.0210607387,
-0.0159717128,
0.0722969398,
-0.0208247155,
-0.144223392,
-0.3758422732,
0.1088094786,
0.0435102955,
0.1615841091,
0.1969147772,
-0.2253729254,
-0.3355082572,
-0.3560677767,
-0.1077125445,
-0.5679334998,
-0.2122839987,
0.0389433429,
-0.3195095062,
-0.3220553696,
0.1848625392,
0.0278039724,
0.0538056381,
-0.3259669244,
-0.4077161849,
-0.2541847825,
-0.2610701621,
-0.2709333003,
0.1013535261,
-0.0553873442,
0.1212052479,
0.3438510895,
0.0752661079,
0.0450470224,
0.0797969028,
-0.4759515226,
0.019988196,
-0.0811675116,
0.2733126879,
0.2104488313,
-0.0825032741,
0.1517145932,
-0.466009289,
0.1668879986,
-0.2525930703,
0.1693016589,
0.0579312257,
0.1528622806,
-0.0486337692,
-0.3818203509,
-0.2003627717,
-0.4499172866,
-0.4317989051,
-0.1190715507,
-0.0393394046,
0.0792103261,
0.4727208912,
-0.575881958,
-0.0751318485,
0.1555480808,
0.2960142791,
-0.1504532844,
0.3245943785,
-0.0218336694,
-0.1896304786,
0.0030148681,
-0.37011832,
-0.4601127207,
0.5443203449,
-0.0602090955,
0.0033653879,
0.0939405188,
0.0620013997,
-0.1237866431,
0.2940616012,
-0.1174600795,
0.3699583709,
0.3588147163,
-0.1884727031,
-0.0632569268,
-0.1866521686,
0.1633794755,
-0.0045338394,
0.3885164857,
0.1221950203,
-0.1400720179,
-0.0451744832,
0.0210367367,
-0.2248966545,
-0.0801915824,
0.2310663462,
0.3564609885,
0.0327313878,
-0.0163829383,
-0.1170816869,
0.0942938104,
0.1725270003,
-0.1195731983,
0.2910574377,
-0.0843761191,
-0.2946410775,
-0.0038448521,
0.2169433534,
-0.1007226482,
-0.250341922,
0.1929997206,
0.0891835615,
0.2827474773,
0.1753284037,
-0.1619337052,
-0.1459892392,
-0.3150653243,
0.1284447163,
0.2256353199,
-0.2269298136,
0.0859745368,
-0.5130317211,
-0.3030592203,
-0.0854920298,
-0.0233057719,
-0.0840165988,
0.2252944857,
-0.0976991802,
-0.0682784021,
0.0381608494,
-0.0622194633,
0.1355438381,
0.0053457669,
-0.1475563198,
0.3124497831,
0.22030285,
-0.0112972818,
-0.2311529666,
-0.1663770676,
0.0577341467,
0.2586655021,
0.2246443778,
-0.5831879973,
-0.3143756688,
0.1958585083,
0.0615962222,
-0.1887238324,
-0.2447851002,
-0.4139582515,
-0.2432187796,
-0.2267661244,
-0.207563743,
-0.132857278,
0.3199290633,
0.0897642821,
0.0595341325,
0.1999860555,
-0.2511615455,
0.220259726,
0.1723578125,
0.1237166226,
0.0274909399,
-0.1680527031,
-0.0923232362,
0.2246273458,
-0.5235324502,
0.04502289,
-0.0399270318,
-0.0523350649,
-0.1777236164,
0.0533364825,
0.3100292683,
0.3402794003,
0.090030022,
0.2383214086,
-0.1819753796,
0.0640585646,
-0.0300180912,
0.2332524806,
0.1558600515,
0.0364177525,
-0.2073985338,
-0.4303264618,
0.2744524479,
0.2052862048,
-0.259929955,
-0.0256310366,
0.0207748171,
-0.3804276884,
0.5902325511,
0.1180908233,
1.0089895725,
-0.0025152152,
0.2391271591,
0.0166735742,
0.0414850973,
0.7351971865,
-0.2273073792,
0.0742216036,
-0.2871638536,
0.4338241816,
0.2762081623,
0.0291308649,
0.189319104,
0.1501967609,
-0.2432341725,
0.4527545273,
0.2205491513,
-0.3383808136,
0.0835848525,
0.4536226094,
0.1656157523,
-0.3907469809,
-0.1250924915,
0.1206354648,
-0.4738860726,
0.2193239927,
-0.1599497199,
-0.2089595348,
-0.1138748378,
-0.1106684431,
0.0419252664,
-0.0078130746,
-0.0255670156,
0.1110909358,
-0.1030503958,
0.1334173679,
-0.1465841979,
-0.2319065034,
0.3092883229,
0.445115447,
-0.041815795,
0.0672229975,
-0.2529368401,
0.0395185426,
0.1476796716,
0.2119449973,
0.3646719456,
-0.1735545099,
-0.1169806495,
-0.1212966368,
0.0693862438,
-0.0816582441,
-0.3511217833,
-0.1439374685,
0.3010073602,
-0.1273348182,
-0.0553539842,
0.2697060406,
-0.2059503496,
-0.0515001751,
0.2535748482,
0.1286809742,
-0.2365042567,
0.152215451,
0.2154998183,
-0.1379987299,
-0.0277185943,
-0.2845082283,
0.2966325283,
-0.262899071,
-0.0141334934,
-0.2800218761,
-0.1900841892,
-0.1783280522,
-0.2144163698,
-0.4408951104,
-0.2746848464,
0.2680206001,
0.3854090571,
-0.6574809551,
-0.1242856532,
-0.0738775879,
0.1040908322,
0.2993980944,
-0.3066924512,
-0.0836873278,
-0.2827759683,
0.4450171888,
-0.1112830788,
-0.0271211863,
0.0508927442,
0.6008218527,
-0.0077931653,
0.0307249986,
-0.411422044,
-0.2275702357,
-0.2836340368,
0.3503586948,
0.0242581256,
-0.406062156,
-0.2008110285,
0.1526447535,
0.1956526786,
0.0458801873,
-0.176434055,
-0.283590138,
-0.318883121,
0.1050616875,
0.0745702386,
0.1342766136,
0.0811202675,
-0.1392993629,
0.2841312885,
-0.0353496261,
-0.1470666826,
-0.078591831,
0.1584582329,
0.6412720084,
0.1998636276,
0.2127103209,
0.2033686042,
0.1251463741,
-0.0351963565,
0.2976450622,
0.0217047893,
0.2803504467,
0.0442091338,
-0.06221902,
-0.2232206911,
-0.14201729,
-0.2373427302,
0.3103161156,
0.01001509,
-0.1164273843,
-0.1670697927,
0.0692104846,
-0.036886435,
0.3586560488,
-0.1238266528,
-0.2624822855,
0.2713676989,
0.296916008,
-0.3307809234,
-0.0596150011,
-0.0284346528,
0.0032088428,
0.1284837723,
0.2637522817,
0.0675551519,
-0.083330743,
0.2330915928,
-0.0484738536,
0.403193891,
-0.3050515354,
0.0193954594,
0.1950926036,
0.0151601965,
0.1632584184,
0.3058250248,
0.0028247226,
0.0275519397,
0.3956400454,
0.1797771901,
0.1889588684,
0.361271143,
0.1213435531,
0.1256160289,
0.5455905795,
-0.229820177,
0.1712247282,
0.412938714,
0.3619436324,
0.1206743568,
-0.327588588,
0.0675621629,
-0.2218263149,
0.0876740441,
0.127533555,
-0.1785113811,
-0.2183449715,
0.200701952,
0.3497122526,
-0.4002244771,
-0.1088246033,
-0.0759373531,
-0.0582729168,
0.009368876,
0.0185794849,
0.0791207477,
-0.1426203996,
0.0956058055,
-0.0189037658,
0.1617903858,
-0.1936127543,
0.0031985175,
0.0838393271,
0.1933109015,
-0.058198601,
0.0555201396,
-0.0990939885,
0.086652495,
-0.2270683795,
-0.0916605443,
-0.2489610314,
0.0196249206,
-0.2773870826,
0.2346079051,
0.4263951182,
0.5700037479,
0.1071949974,
0.1036821231,
-0.2625008523,
-0.1466623843,
0.2125215977,
-0.3936909437,
-0.0943322107,
0.8848913312,
0.2048434764,
-0.1527254879,
-0.2799519598,
0.177399084,
-0.7367966175,
0.0776504427,
0.2374967486,
0.1197137535,
-0.0409560539,
-0.4269068837,
0.1364693046,
0.1251664013,
0.2762802243,
-0.0520890094,
0.412468195,
-0.0601217113,
-0.0616205074,
-0.4459727705,
0.0975325406,
-0.0362374373,
0.162829265,
0.0209498443,
-0.1065493301,
-0.0380696058,
0.0391868614,
-0.2933573425,
0.3067793548,
-0.3621274531,
-0.3427153826,
-0.245803684,
0.0772687495,
0.0146662937,
0.0181847047,
0.1471750587,
-0.2030317783,
-0.0983985811,
-0.1064852923,
0.0504437238,
-0.2307025492,
-0.1302488893,
0.482693553,
0.4234506488,
0.1074430197,
0.2676041722,
0.1654304862,
-0.1382890493,
-0.2191940099,
-0.2272737771,
-0.1517679989,
-0.2155966312,
0.1276093572,
0.1082276106,
0.1141461357,
0.1075205877,
0.094139114,
-0.29399243,
0.0820913613,
-0.1551929265,
0.0133393127,
-0.2642065585,
0.0743817538,
0.1357635409,
0.121591039,
-0.4070492387,
0.4321895838,
0.0068679284,
0.0536034703,
-0.1758132875,
-0.3169419765,
0.5040283799,
-0.0870553702,
-0.3847105205,
0.3119256198,
0.2451522052,
0.1422898769,
0.0038850899,
-0.3304693997,
-0.1347046942,
0.038281735,
0.0473494865,
-0.2229126394,
0.1495039761,
-0.0536105409,
-0.1715637296,
-0.0246993452,
0.0344610848,
0.1170689315,
-0.3060975075,
0.2864744067,
-0.2321722209
] |
https://github.com/huggingface/datasets/issues/138 | Consider renaming to nld | Chiming in to second everything @honnibal said, and to add that I think the current name is going to impact the discoverability of this library. People who are looking for "NLP Datasets" through a search engine are going to see a library called `nlp` and think it's too broad. People who are looking to do NLP in python are going to search "Python NLP" and end up here, confused that this is a collection of datasets.
The names of the other huggingface libraries work because they're the only game in town: there are not very many robust, distinct libraries for `tokenizers` or `transformers` in python, for example. But there are several options for NLP in python, and adding this as a possible search result for "python nlp" when datasets are likely not what someone is searching for adds noise and frustrates potential users. | Hey :)
Just making a thread here recording what I said on Twitter, as it's impossible to follow discussion there. It's also just really not a good way to talk about this sort of thing.
The issue is that modules go into the global namespace, so you shouldn't use variable names that conflict with module names. This means the package makes `nlp` a bad variable name everywhere in the codebase. I've always used `nlp` as the canonical variable name of spaCy's `Language` objects, and this is a convention that a lot of other code has followed (Stanza, flair, etc). And actually, your `transformers` library uses `nlp` as the name for its `Pipeline` instance in your readme.
If you stick with the `nlp` name for this package, if anyone uses it then they should rewrite all of that code. If `nlp` is a bad choice of variable anywhere, it's a bad choice of variable everywhere --- because you shouldn't have to notice whether some other function uses a module when you're naming variables within a function. You want to have one convention that you can stick to everywhere.
If people use your `nlp` package and continue to use the `nlp` variable name, they'll find themselves with confusing bugs. There will be many many bits of code cut-and-paste from tutorials that give confusing results when combined with the data loading from the `nlp` library. The problem will be especially bad for shadowed modules (people might reasonably have a module named `nlp.py` within their codebase) and notebooks, as people might run notebook cells for data loading out-of-order.
I don't think it's an exaggeration to say that if your library becomes popular, we'll all be answering issues around this about once a week for the next few years. That seems pretty unideal, so I do hope you'll reconsider.
I suggest `nld` as a better name. It more accurately represents what the package actually does. It's pretty unideal to have a package named `nlp` that doesn't do any processing, and contains data about natural language generation or other non-NLP tasks. The name is equally short, and is sort of a visual pun on `nlp`, since a d is a rotated p. | 143 | Consider renaming to nld
Hey :)
Just making a thread here recording what I said on Twitter, as it's impossible to follow discussion there. It's also just really not a good way to talk about this sort of thing.
The issue is that modules go into the global namespace, so you shouldn't use variable names that conflict with module names. This means the package makes `nlp` a bad variable name everywhere in the codebase. I've always used `nlp` as the canonical variable name of spaCy's `Language` objects, and this is a convention that a lot of other code has followed (Stanza, flair, etc). And actually, your `transformers` library uses `nlp` as the name for its `Pipeline` instance in your readme.
If you stick with the `nlp` name for this package, if anyone uses it then they should rewrite all of that code. If `nlp` is a bad choice of variable anywhere, it's a bad choice of variable everywhere --- because you shouldn't have to notice whether some other function uses a module when you're naming variables within a function. You want to have one convention that you can stick to everywhere.
If people use your `nlp` package and continue to use the `nlp` variable name, they'll find themselves with confusing bugs. There will be many many bits of code cut-and-paste from tutorials that give confusing results when combined with the data loading from the `nlp` library. The problem will be especially bad for shadowed modules (people might reasonably have a module named `nlp.py` within their codebase) and notebooks, as people might run notebook cells for data loading out-of-order.
I don't think it's an exaggeration to say that if your library becomes popular, we'll all be answering issues around this about once a week for the next few years. That seems pretty unideal, so I do hope you'll reconsider.
I suggest `nld` as a better name. It more accurately represents what the package actually does. It's pretty unideal to have a package named `nlp` that doesn't do any processing, and contains data about natural language generation or other non-NLP tasks. The name is equally short, and is sort of a visual pun on `nlp`, since a d is a rotated p.
Chiming in to second everything @honnibal said, and to add that I think the current name is going to impact the discoverability of this library. People who are looking for "NLP Datasets" through a search engine are going to see a library called `nlp` and think it's too broad. People who are looking to do NLP in python are going to search "Python NLP" and end up here, confused that this is a collection of datasets.
The names of the other huggingface libraries work because they're the only game in town: there are not very many robust, distinct libraries for `tokenizers` or `transformers` in python, for example. But there are several options for NLP in python, and adding this as a possible search result for "python nlp" when datasets are likely not what someone is searching for adds noise and frustrates potential users. | [
0.3546045423,
0.0250588749,
-0.0843050182,
-0.3304427564,
0.1876238436,
-0.236012876,
0.28185305,
0.2058826387,
-0.1652064472,
0.0582918562,
0.2198298872,
0.2940490246,
-0.3030350804,
0.124629885,
0.3023299575,
-0.2793754339,
0.208622247,
0.0491359942,
0.163286671,
-0.12861453,
-0.1061516404,
0.1799215823,
0.1566793174,
0.4202882648,
0.0016417105,
0.0405684784,
0.2510457635,
-0.1025931761,
0.0196671635,
-0.3666578829,
0.0917975232,
0.3173363805,
-0.0723684505,
0.0078899302,
-0.000103016,
-0.1667027324,
0.5983601809,
-0.0208174679,
-0.1951323301,
-0.2738524079,
0.349458456,
-0.4347409606,
0.0873835906,
-0.5374495387,
0.1049490124,
0.2493642569,
0.1611561775,
-0.276920408,
0.172302261,
-0.0842129886,
0.2791434824,
-0.0322702117,
-0.2336920351,
0.2664331794,
-0.0823111087,
0.1612643898,
-0.1856751591,
-0.1456343532,
0.1019585207,
-0.0416523814,
0.0535839908,
0.2429708838,
-0.1371390074,
0.0111302752,
0.4416790009,
0.1220084205,
0.3055425286,
0.0429872759,
-0.0890985131,
0.1462108791,
0.0160025489,
-0.3755002618,
-0.2275757641,
-0.1618047655,
0.0141654378,
-0.4211738706,
0.0508646294,
-0.0911910534,
-0.0744972825,
-0.0652685389,
0.3642607033,
-0.1167292595,
0.0555222332,
0.1869731098,
0.0563991144,
0.6406508088,
0.1287475675,
0.1855204552,
0.0186786726,
-0.2868245244,
0.1609269083,
0.171697408,
0.204897508,
0.0659399852,
0.1589836627,
-0.1076444536,
0.0360815637,
-0.0260849074,
-0.1019778028,
-0.0282881055,
-0.0157897808,
-0.0529253818,
0.1841490716,
-0.1026074737,
-0.0229199026,
-0.0395879969,
0.2494287044,
0.0680685639,
0.3340998292,
0.0483053438,
0.1616840214,
0.0051701008,
-0.0170283411,
0.113665022,
0.0018839892,
0.0539526232,
0.1125139669,
0.0556236021,
0.0231455527,
-0.0699976906,
0.1393642128,
-0.0318879411,
0.01228166,
0.2282055318,
0.0296435487,
0.4047166705,
0.1179115772,
-0.0512217507,
-0.0545106903,
0.0529051386,
-0.1768298298,
-0.0293127224,
-0.5875115991,
0.1920244396,
-0.0093171773,
0.5461201668,
0.3421473801,
-0.2364342809,
-0.1096443385,
0.0759178028,
-0.0507353917,
0.1224970073,
-0.035852395,
-0.0496277586,
-0.434293896,
0.1021535024,
-0.2238203585,
-0.3176432252,
-0.2762624025,
0.1289541274,
-0.2020070255,
0.093801558,
-0.1377501339,
0.302326262,
-0.285153389,
-0.0645211786,
0.4819486439,
0.1596667022,
0.1319607347,
-0.2455683649,
0.1019593477,
-0.0245485827,
0.1727489382,
-0.1681720912,
-0.2812473476,
0.0770908967,
0.1417668164,
-0.4519436359,
-0.563080132,
0.071245715,
0.3810741603,
0.0145661095,
-0.168133527,
-0.0279530082,
0.1246095598,
0.0463551097,
0.5702140331,
-0.377081275,
-0.1004940867,
0.1108656973,
-0.2571688294,
-0.1666594744,
0.0733328685,
0.172489956,
-0.0463333689,
-0.178151533,
0.2236124426,
0.4268015027,
0.1682260633,
0.1578954905,
-0.2671320438,
-0.1424055547,
0.3670619726,
0.020118827,
0.0713864565,
0.145018518,
-0.2018316686,
0.7421376109,
0.1609520614,
0.0481396988,
0.0549912527,
0.1300475299,
-0.0001047579,
0.2264645696,
0.0527036749,
-0.0485745184,
-0.2530001998,
-0.1717444062,
-0.3851438761,
0.2766964734,
-0.140701592,
-0.3179915845,
-0.0011529273,
-0.0611751825,
0.0840613469,
-0.2455077916,
0.314219296,
0.1664158404,
-0.0728964657,
-0.1845241189,
-0.3374125659,
0.2081884295,
0.1162086502,
0.0268576704,
-0.1347389817,
0.0125923324,
-0.0472035334,
-0.1227352098,
-0.0485320054,
0.4621074498,
0.0617955811,
0.0230287928,
-0.0187293049,
0.1212336943,
-0.0920707658,
-0.1717240959,
-0.1780797988,
0.3527117372,
0.1953413039,
0.0335728228,
0.1522720009,
0.2178539038,
0.00523917,
0.0609578341,
0.165421322,
0.0910021365,
-0.2310309857,
0.1728600115,
0.1610241234,
-0.1268762946,
0.2499849647,
-0.3104696572,
-0.3951841295,
-0.159494251,
0.2015538216,
-0.174465552,
0.3688203394,
0.2622096837,
-0.0718517005,
-0.0054821004,
0.7487165332,
-0.1023490727,
-0.0018589926,
0.0346929245,
0.0061897417,
0.0344389826,
-0.0982623473,
0.4255808592,
0.3692653775,
0.2573753297,
-0.2147238255,
0.0731224641,
-0.1584897041,
-0.23952429,
0.1479514986,
0.2729808688,
-0.0210607387,
-0.0159717128,
0.0722969398,
-0.0208247155,
-0.144223392,
-0.3758422732,
0.1088094786,
0.0435102955,
0.1615841091,
0.1969147772,
-0.2253729254,
-0.3355082572,
-0.3560677767,
-0.1077125445,
-0.5679334998,
-0.2122839987,
0.0389433429,
-0.3195095062,
-0.3220553696,
0.1848625392,
0.0278039724,
0.0538056381,
-0.3259669244,
-0.4077161849,
-0.2541847825,
-0.2610701621,
-0.2709333003,
0.1013535261,
-0.0553873442,
0.1212052479,
0.3438510895,
0.0752661079,
0.0450470224,
0.0797969028,
-0.4759515226,
0.019988196,
-0.0811675116,
0.2733126879,
0.2104488313,
-0.0825032741,
0.1517145932,
-0.466009289,
0.1668879986,
-0.2525930703,
0.1693016589,
0.0579312257,
0.1528622806,
-0.0486337692,
-0.3818203509,
-0.2003627717,
-0.4499172866,
-0.4317989051,
-0.1190715507,
-0.0393394046,
0.0792103261,
0.4727208912,
-0.575881958,
-0.0751318485,
0.1555480808,
0.2960142791,
-0.1504532844,
0.3245943785,
-0.0218336694,
-0.1896304786,
0.0030148681,
-0.37011832,
-0.4601127207,
0.5443203449,
-0.0602090955,
0.0033653879,
0.0939405188,
0.0620013997,
-0.1237866431,
0.2940616012,
-0.1174600795,
0.3699583709,
0.3588147163,
-0.1884727031,
-0.0632569268,
-0.1866521686,
0.1633794755,
-0.0045338394,
0.3885164857,
0.1221950203,
-0.1400720179,
-0.0451744832,
0.0210367367,
-0.2248966545,
-0.0801915824,
0.2310663462,
0.3564609885,
0.0327313878,
-0.0163829383,
-0.1170816869,
0.0942938104,
0.1725270003,
-0.1195731983,
0.2910574377,
-0.0843761191,
-0.2946410775,
-0.0038448521,
0.2169433534,
-0.1007226482,
-0.250341922,
0.1929997206,
0.0891835615,
0.2827474773,
0.1753284037,
-0.1619337052,
-0.1459892392,
-0.3150653243,
0.1284447163,
0.2256353199,
-0.2269298136,
0.0859745368,
-0.5130317211,
-0.3030592203,
-0.0854920298,
-0.0233057719,
-0.0840165988,
0.2252944857,
-0.0976991802,
-0.0682784021,
0.0381608494,
-0.0622194633,
0.1355438381,
0.0053457669,
-0.1475563198,
0.3124497831,
0.22030285,
-0.0112972818,
-0.2311529666,
-0.1663770676,
0.0577341467,
0.2586655021,
0.2246443778,
-0.5831879973,
-0.3143756688,
0.1958585083,
0.0615962222,
-0.1887238324,
-0.2447851002,
-0.4139582515,
-0.2432187796,
-0.2267661244,
-0.207563743,
-0.132857278,
0.3199290633,
0.0897642821,
0.0595341325,
0.1999860555,
-0.2511615455,
0.220259726,
0.1723578125,
0.1237166226,
0.0274909399,
-0.1680527031,
-0.0923232362,
0.2246273458,
-0.5235324502,
0.04502289,
-0.0399270318,
-0.0523350649,
-0.1777236164,
0.0533364825,
0.3100292683,
0.3402794003,
0.090030022,
0.2383214086,
-0.1819753796,
0.0640585646,
-0.0300180912,
0.2332524806,
0.1558600515,
0.0364177525,
-0.2073985338,
-0.4303264618,
0.2744524479,
0.2052862048,
-0.259929955,
-0.0256310366,
0.0207748171,
-0.3804276884,
0.5902325511,
0.1180908233,
1.0089895725,
-0.0025152152,
0.2391271591,
0.0166735742,
0.0414850973,
0.7351971865,
-0.2273073792,
0.0742216036,
-0.2871638536,
0.4338241816,
0.2762081623,
0.0291308649,
0.189319104,
0.1501967609,
-0.2432341725,
0.4527545273,
0.2205491513,
-0.3383808136,
0.0835848525,
0.4536226094,
0.1656157523,
-0.3907469809,
-0.1250924915,
0.1206354648,
-0.4738860726,
0.2193239927,
-0.1599497199,
-0.2089595348,
-0.1138748378,
-0.1106684431,
0.0419252664,
-0.0078130746,
-0.0255670156,
0.1110909358,
-0.1030503958,
0.1334173679,
-0.1465841979,
-0.2319065034,
0.3092883229,
0.445115447,
-0.041815795,
0.0672229975,
-0.2529368401,
0.0395185426,
0.1476796716,
0.2119449973,
0.3646719456,
-0.1735545099,
-0.1169806495,
-0.1212966368,
0.0693862438,
-0.0816582441,
-0.3511217833,
-0.1439374685,
0.3010073602,
-0.1273348182,
-0.0553539842,
0.2697060406,
-0.2059503496,
-0.0515001751,
0.2535748482,
0.1286809742,
-0.2365042567,
0.152215451,
0.2154998183,
-0.1379987299,
-0.0277185943,
-0.2845082283,
0.2966325283,
-0.262899071,
-0.0141334934,
-0.2800218761,
-0.1900841892,
-0.1783280522,
-0.2144163698,
-0.4408951104,
-0.2746848464,
0.2680206001,
0.3854090571,
-0.6574809551,
-0.1242856532,
-0.0738775879,
0.1040908322,
0.2993980944,
-0.3066924512,
-0.0836873278,
-0.2827759683,
0.4450171888,
-0.1112830788,
-0.0271211863,
0.0508927442,
0.6008218527,
-0.0077931653,
0.0307249986,
-0.411422044,
-0.2275702357,
-0.2836340368,
0.3503586948,
0.0242581256,
-0.406062156,
-0.2008110285,
0.1526447535,
0.1956526786,
0.0458801873,
-0.176434055,
-0.283590138,
-0.318883121,
0.1050616875,
0.0745702386,
0.1342766136,
0.0811202675,
-0.1392993629,
0.2841312885,
-0.0353496261,
-0.1470666826,
-0.078591831,
0.1584582329,
0.6412720084,
0.1998636276,
0.2127103209,
0.2033686042,
0.1251463741,
-0.0351963565,
0.2976450622,
0.0217047893,
0.2803504467,
0.0442091338,
-0.06221902,
-0.2232206911,
-0.14201729,
-0.2373427302,
0.3103161156,
0.01001509,
-0.1164273843,
-0.1670697927,
0.0692104846,
-0.036886435,
0.3586560488,
-0.1238266528,
-0.2624822855,
0.2713676989,
0.296916008,
-0.3307809234,
-0.0596150011,
-0.0284346528,
0.0032088428,
0.1284837723,
0.2637522817,
0.0675551519,
-0.083330743,
0.2330915928,
-0.0484738536,
0.403193891,
-0.3050515354,
0.0193954594,
0.1950926036,
0.0151601965,
0.1632584184,
0.3058250248,
0.0028247226,
0.0275519397,
0.3956400454,
0.1797771901,
0.1889588684,
0.361271143,
0.1213435531,
0.1256160289,
0.5455905795,
-0.229820177,
0.1712247282,
0.412938714,
0.3619436324,
0.1206743568,
-0.327588588,
0.0675621629,
-0.2218263149,
0.0876740441,
0.127533555,
-0.1785113811,
-0.2183449715,
0.200701952,
0.3497122526,
-0.4002244771,
-0.1088246033,
-0.0759373531,
-0.0582729168,
0.009368876,
0.0185794849,
0.0791207477,
-0.1426203996,
0.0956058055,
-0.0189037658,
0.1617903858,
-0.1936127543,
0.0031985175,
0.0838393271,
0.1933109015,
-0.058198601,
0.0555201396,
-0.0990939885,
0.086652495,
-0.2270683795,
-0.0916605443,
-0.2489610314,
0.0196249206,
-0.2773870826,
0.2346079051,
0.4263951182,
0.5700037479,
0.1071949974,
0.1036821231,
-0.2625008523,
-0.1466623843,
0.2125215977,
-0.3936909437,
-0.0943322107,
0.8848913312,
0.2048434764,
-0.1527254879,
-0.2799519598,
0.177399084,
-0.7367966175,
0.0776504427,
0.2374967486,
0.1197137535,
-0.0409560539,
-0.4269068837,
0.1364693046,
0.1251664013,
0.2762802243,
-0.0520890094,
0.412468195,
-0.0601217113,
-0.0616205074,
-0.4459727705,
0.0975325406,
-0.0362374373,
0.162829265,
0.0209498443,
-0.1065493301,
-0.0380696058,
0.0391868614,
-0.2933573425,
0.3067793548,
-0.3621274531,
-0.3427153826,
-0.245803684,
0.0772687495,
0.0146662937,
0.0181847047,
0.1471750587,
-0.2030317783,
-0.0983985811,
-0.1064852923,
0.0504437238,
-0.2307025492,
-0.1302488893,
0.482693553,
0.4234506488,
0.1074430197,
0.2676041722,
0.1654304862,
-0.1382890493,
-0.2191940099,
-0.2272737771,
-0.1517679989,
-0.2155966312,
0.1276093572,
0.1082276106,
0.1141461357,
0.1075205877,
0.094139114,
-0.29399243,
0.0820913613,
-0.1551929265,
0.0133393127,
-0.2642065585,
0.0743817538,
0.1357635409,
0.121591039,
-0.4070492387,
0.4321895838,
0.0068679284,
0.0536034703,
-0.1758132875,
-0.3169419765,
0.5040283799,
-0.0870553702,
-0.3847105205,
0.3119256198,
0.2451522052,
0.1422898769,
0.0038850899,
-0.3304693997,
-0.1347046942,
0.038281735,
0.0473494865,
-0.2229126394,
0.1495039761,
-0.0536105409,
-0.1715637296,
-0.0246993452,
0.0344610848,
0.1170689315,
-0.3060975075,
0.2864744067,
-0.2321722209
] |
https://github.com/huggingface/datasets/issues/138 | Consider renaming to nld | I'm also not sure whether the naming of `nlp` is the problem itself, as long as it comes with the appropriate identifier, so maybe something like `huggingface_nlp`? This is analogous to what @honnibal and spacy are doing for `spacy-transformers`. Of course, this is a "step back" from the recent changes/renaming of transformers, but may be some middle ground between a complete rebranding, and keeping it identifiable. | Hey :)
Just making a thread here recording what I said on Twitter, as it's impossible to follow discussion there. It's also just really not a good way to talk about this sort of thing.
The issue is that modules go into the global namespace, so you shouldn't use variable names that conflict with module names. This means the package makes `nlp` a bad variable name everywhere in the codebase. I've always used `nlp` as the canonical variable name of spaCy's `Language` objects, and this is a convention that a lot of other code has followed (Stanza, flair, etc). And actually, your `transformers` library uses `nlp` as the name for its `Pipeline` instance in your readme.
If you stick with the `nlp` name for this package, if anyone uses it then they should rewrite all of that code. If `nlp` is a bad choice of variable anywhere, it's a bad choice of variable everywhere --- because you shouldn't have to notice whether some other function uses a module when you're naming variables within a function. You want to have one convention that you can stick to everywhere.
If people use your `nlp` package and continue to use the `nlp` variable name, they'll find themselves with confusing bugs. There will be many many bits of code cut-and-paste from tutorials that give confusing results when combined with the data loading from the `nlp` library. The problem will be especially bad for shadowed modules (people might reasonably have a module named `nlp.py` within their codebase) and notebooks, as people might run notebook cells for data loading out-of-order.
I don't think it's an exaggeration to say that if your library becomes popular, we'll all be answering issues around this about once a week for the next few years. That seems pretty unideal, so I do hope you'll reconsider.
I suggest `nld` as a better name. It more accurately represents what the package actually does. It's pretty unideal to have a package named `nlp` that doesn't do any processing, and contains data about natural language generation or other non-NLP tasks. The name is equally short, and is sort of a visual pun on `nlp`, since a d is a rotated p. | 66 | Consider renaming to nld
Hey :)
Just making a thread here recording what I said on Twitter, as it's impossible to follow discussion there. It's also just really not a good way to talk about this sort of thing.
The issue is that modules go into the global namespace, so you shouldn't use variable names that conflict with module names. This means the package makes `nlp` a bad variable name everywhere in the codebase. I've always used `nlp` as the canonical variable name of spaCy's `Language` objects, and this is a convention that a lot of other code has followed (Stanza, flair, etc). And actually, your `transformers` library uses `nlp` as the name for its `Pipeline` instance in your readme.
If you stick with the `nlp` name for this package, if anyone uses it then they should rewrite all of that code. If `nlp` is a bad choice of variable anywhere, it's a bad choice of variable everywhere --- because you shouldn't have to notice whether some other function uses a module when you're naming variables within a function. You want to have one convention that you can stick to everywhere.
If people use your `nlp` package and continue to use the `nlp` variable name, they'll find themselves with confusing bugs. There will be many many bits of code cut-and-paste from tutorials that give confusing results when combined with the data loading from the `nlp` library. The problem will be especially bad for shadowed modules (people might reasonably have a module named `nlp.py` within their codebase) and notebooks, as people might run notebook cells for data loading out-of-order.
I don't think it's an exaggeration to say that if your library becomes popular, we'll all be answering issues around this about once a week for the next few years. That seems pretty unideal, so I do hope you'll reconsider.
I suggest `nld` as a better name. It more accurately represents what the package actually does. It's pretty unideal to have a package named `nlp` that doesn't do any processing, and contains data about natural language generation or other non-NLP tasks. The name is equally short, and is sort of a visual pun on `nlp`, since a d is a rotated p.
I'm also not sure whether the naming of `nlp` is the problem itself, as long as it comes with the appropriate identifier, so maybe something like `huggingface_nlp`? This is analogous to what @honnibal and spacy are doing for `spacy-transformers`. Of course, this is a "step back" from the recent changes/renaming of transformers, but may be some middle ground between a complete rebranding, and keeping it identifiable. | [
0.3546045423,
0.0250588749,
-0.0843050182,
-0.3304427564,
0.1876238436,
-0.236012876,
0.28185305,
0.2058826387,
-0.1652064472,
0.0582918562,
0.2198298872,
0.2940490246,
-0.3030350804,
0.124629885,
0.3023299575,
-0.2793754339,
0.208622247,
0.0491359942,
0.163286671,
-0.12861453,
-0.1061516404,
0.1799215823,
0.1566793174,
0.4202882648,
0.0016417105,
0.0405684784,
0.2510457635,
-0.1025931761,
0.0196671635,
-0.3666578829,
0.0917975232,
0.3173363805,
-0.0723684505,
0.0078899302,
-0.000103016,
-0.1667027324,
0.5983601809,
-0.0208174679,
-0.1951323301,
-0.2738524079,
0.349458456,
-0.4347409606,
0.0873835906,
-0.5374495387,
0.1049490124,
0.2493642569,
0.1611561775,
-0.276920408,
0.172302261,
-0.0842129886,
0.2791434824,
-0.0322702117,
-0.2336920351,
0.2664331794,
-0.0823111087,
0.1612643898,
-0.1856751591,
-0.1456343532,
0.1019585207,
-0.0416523814,
0.0535839908,
0.2429708838,
-0.1371390074,
0.0111302752,
0.4416790009,
0.1220084205,
0.3055425286,
0.0429872759,
-0.0890985131,
0.1462108791,
0.0160025489,
-0.3755002618,
-0.2275757641,
-0.1618047655,
0.0141654378,
-0.4211738706,
0.0508646294,
-0.0911910534,
-0.0744972825,
-0.0652685389,
0.3642607033,
-0.1167292595,
0.0555222332,
0.1869731098,
0.0563991144,
0.6406508088,
0.1287475675,
0.1855204552,
0.0186786726,
-0.2868245244,
0.1609269083,
0.171697408,
0.204897508,
0.0659399852,
0.1589836627,
-0.1076444536,
0.0360815637,
-0.0260849074,
-0.1019778028,
-0.0282881055,
-0.0157897808,
-0.0529253818,
0.1841490716,
-0.1026074737,
-0.0229199026,
-0.0395879969,
0.2494287044,
0.0680685639,
0.3340998292,
0.0483053438,
0.1616840214,
0.0051701008,
-0.0170283411,
0.113665022,
0.0018839892,
0.0539526232,
0.1125139669,
0.0556236021,
0.0231455527,
-0.0699976906,
0.1393642128,
-0.0318879411,
0.01228166,
0.2282055318,
0.0296435487,
0.4047166705,
0.1179115772,
-0.0512217507,
-0.0545106903,
0.0529051386,
-0.1768298298,
-0.0293127224,
-0.5875115991,
0.1920244396,
-0.0093171773,
0.5461201668,
0.3421473801,
-0.2364342809,
-0.1096443385,
0.0759178028,
-0.0507353917,
0.1224970073,
-0.035852395,
-0.0496277586,
-0.434293896,
0.1021535024,
-0.2238203585,
-0.3176432252,
-0.2762624025,
0.1289541274,
-0.2020070255,
0.093801558,
-0.1377501339,
0.302326262,
-0.285153389,
-0.0645211786,
0.4819486439,
0.1596667022,
0.1319607347,
-0.2455683649,
0.1019593477,
-0.0245485827,
0.1727489382,
-0.1681720912,
-0.2812473476,
0.0770908967,
0.1417668164,
-0.4519436359,
-0.563080132,
0.071245715,
0.3810741603,
0.0145661095,
-0.168133527,
-0.0279530082,
0.1246095598,
0.0463551097,
0.5702140331,
-0.377081275,
-0.1004940867,
0.1108656973,
-0.2571688294,
-0.1666594744,
0.0733328685,
0.172489956,
-0.0463333689,
-0.178151533,
0.2236124426,
0.4268015027,
0.1682260633,
0.1578954905,
-0.2671320438,
-0.1424055547,
0.3670619726,
0.020118827,
0.0713864565,
0.145018518,
-0.2018316686,
0.7421376109,
0.1609520614,
0.0481396988,
0.0549912527,
0.1300475299,
-0.0001047579,
0.2264645696,
0.0527036749,
-0.0485745184,
-0.2530001998,
-0.1717444062,
-0.3851438761,
0.2766964734,
-0.140701592,
-0.3179915845,
-0.0011529273,
-0.0611751825,
0.0840613469,
-0.2455077916,
0.314219296,
0.1664158404,
-0.0728964657,
-0.1845241189,
-0.3374125659,
0.2081884295,
0.1162086502,
0.0268576704,
-0.1347389817,
0.0125923324,
-0.0472035334,
-0.1227352098,
-0.0485320054,
0.4621074498,
0.0617955811,
0.0230287928,
-0.0187293049,
0.1212336943,
-0.0920707658,
-0.1717240959,
-0.1780797988,
0.3527117372,
0.1953413039,
0.0335728228,
0.1522720009,
0.2178539038,
0.00523917,
0.0609578341,
0.165421322,
0.0910021365,
-0.2310309857,
0.1728600115,
0.1610241234,
-0.1268762946,
0.2499849647,
-0.3104696572,
-0.3951841295,
-0.159494251,
0.2015538216,
-0.174465552,
0.3688203394,
0.2622096837,
-0.0718517005,
-0.0054821004,
0.7487165332,
-0.1023490727,
-0.0018589926,
0.0346929245,
0.0061897417,
0.0344389826,
-0.0982623473,
0.4255808592,
0.3692653775,
0.2573753297,
-0.2147238255,
0.0731224641,
-0.1584897041,
-0.23952429,
0.1479514986,
0.2729808688,
-0.0210607387,
-0.0159717128,
0.0722969398,
-0.0208247155,
-0.144223392,
-0.3758422732,
0.1088094786,
0.0435102955,
0.1615841091,
0.1969147772,
-0.2253729254,
-0.3355082572,
-0.3560677767,
-0.1077125445,
-0.5679334998,
-0.2122839987,
0.0389433429,
-0.3195095062,
-0.3220553696,
0.1848625392,
0.0278039724,
0.0538056381,
-0.3259669244,
-0.4077161849,
-0.2541847825,
-0.2610701621,
-0.2709333003,
0.1013535261,
-0.0553873442,
0.1212052479,
0.3438510895,
0.0752661079,
0.0450470224,
0.0797969028,
-0.4759515226,
0.019988196,
-0.0811675116,
0.2733126879,
0.2104488313,
-0.0825032741,
0.1517145932,
-0.466009289,
0.1668879986,
-0.2525930703,
0.1693016589,
0.0579312257,
0.1528622806,
-0.0486337692,
-0.3818203509,
-0.2003627717,
-0.4499172866,
-0.4317989051,
-0.1190715507,
-0.0393394046,
0.0792103261,
0.4727208912,
-0.575881958,
-0.0751318485,
0.1555480808,
0.2960142791,
-0.1504532844,
0.3245943785,
-0.0218336694,
-0.1896304786,
0.0030148681,
-0.37011832,
-0.4601127207,
0.5443203449,
-0.0602090955,
0.0033653879,
0.0939405188,
0.0620013997,
-0.1237866431,
0.2940616012,
-0.1174600795,
0.3699583709,
0.3588147163,
-0.1884727031,
-0.0632569268,
-0.1866521686,
0.1633794755,
-0.0045338394,
0.3885164857,
0.1221950203,
-0.1400720179,
-0.0451744832,
0.0210367367,
-0.2248966545,
-0.0801915824,
0.2310663462,
0.3564609885,
0.0327313878,
-0.0163829383,
-0.1170816869,
0.0942938104,
0.1725270003,
-0.1195731983,
0.2910574377,
-0.0843761191,
-0.2946410775,
-0.0038448521,
0.2169433534,
-0.1007226482,
-0.250341922,
0.1929997206,
0.0891835615,
0.2827474773,
0.1753284037,
-0.1619337052,
-0.1459892392,
-0.3150653243,
0.1284447163,
0.2256353199,
-0.2269298136,
0.0859745368,
-0.5130317211,
-0.3030592203,
-0.0854920298,
-0.0233057719,
-0.0840165988,
0.2252944857,
-0.0976991802,
-0.0682784021,
0.0381608494,
-0.0622194633,
0.1355438381,
0.0053457669,
-0.1475563198,
0.3124497831,
0.22030285,
-0.0112972818,
-0.2311529666,
-0.1663770676,
0.0577341467,
0.2586655021,
0.2246443778,
-0.5831879973,
-0.3143756688,
0.1958585083,
0.0615962222,
-0.1887238324,
-0.2447851002,
-0.4139582515,
-0.2432187796,
-0.2267661244,
-0.207563743,
-0.132857278,
0.3199290633,
0.0897642821,
0.0595341325,
0.1999860555,
-0.2511615455,
0.220259726,
0.1723578125,
0.1237166226,
0.0274909399,
-0.1680527031,
-0.0923232362,
0.2246273458,
-0.5235324502,
0.04502289,
-0.0399270318,
-0.0523350649,
-0.1777236164,
0.0533364825,
0.3100292683,
0.3402794003,
0.090030022,
0.2383214086,
-0.1819753796,
0.0640585646,
-0.0300180912,
0.2332524806,
0.1558600515,
0.0364177525,
-0.2073985338,
-0.4303264618,
0.2744524479,
0.2052862048,
-0.259929955,
-0.0256310366,
0.0207748171,
-0.3804276884,
0.5902325511,
0.1180908233,
1.0089895725,
-0.0025152152,
0.2391271591,
0.0166735742,
0.0414850973,
0.7351971865,
-0.2273073792,
0.0742216036,
-0.2871638536,
0.4338241816,
0.2762081623,
0.0291308649,
0.189319104,
0.1501967609,
-0.2432341725,
0.4527545273,
0.2205491513,
-0.3383808136,
0.0835848525,
0.4536226094,
0.1656157523,
-0.3907469809,
-0.1250924915,
0.1206354648,
-0.4738860726,
0.2193239927,
-0.1599497199,
-0.2089595348,
-0.1138748378,
-0.1106684431,
0.0419252664,
-0.0078130746,
-0.0255670156,
0.1110909358,
-0.1030503958,
0.1334173679,
-0.1465841979,
-0.2319065034,
0.3092883229,
0.445115447,
-0.041815795,
0.0672229975,
-0.2529368401,
0.0395185426,
0.1476796716,
0.2119449973,
0.3646719456,
-0.1735545099,
-0.1169806495,
-0.1212966368,
0.0693862438,
-0.0816582441,
-0.3511217833,
-0.1439374685,
0.3010073602,
-0.1273348182,
-0.0553539842,
0.2697060406,
-0.2059503496,
-0.0515001751,
0.2535748482,
0.1286809742,
-0.2365042567,
0.152215451,
0.2154998183,
-0.1379987299,
-0.0277185943,
-0.2845082283,
0.2966325283,
-0.262899071,
-0.0141334934,
-0.2800218761,
-0.1900841892,
-0.1783280522,
-0.2144163698,
-0.4408951104,
-0.2746848464,
0.2680206001,
0.3854090571,
-0.6574809551,
-0.1242856532,
-0.0738775879,
0.1040908322,
0.2993980944,
-0.3066924512,
-0.0836873278,
-0.2827759683,
0.4450171888,
-0.1112830788,
-0.0271211863,
0.0508927442,
0.6008218527,
-0.0077931653,
0.0307249986,
-0.411422044,
-0.2275702357,
-0.2836340368,
0.3503586948,
0.0242581256,
-0.406062156,
-0.2008110285,
0.1526447535,
0.1956526786,
0.0458801873,
-0.176434055,
-0.283590138,
-0.318883121,
0.1050616875,
0.0745702386,
0.1342766136,
0.0811202675,
-0.1392993629,
0.2841312885,
-0.0353496261,
-0.1470666826,
-0.078591831,
0.1584582329,
0.6412720084,
0.1998636276,
0.2127103209,
0.2033686042,
0.1251463741,
-0.0351963565,
0.2976450622,
0.0217047893,
0.2803504467,
0.0442091338,
-0.06221902,
-0.2232206911,
-0.14201729,
-0.2373427302,
0.3103161156,
0.01001509,
-0.1164273843,
-0.1670697927,
0.0692104846,
-0.036886435,
0.3586560488,
-0.1238266528,
-0.2624822855,
0.2713676989,
0.296916008,
-0.3307809234,
-0.0596150011,
-0.0284346528,
0.0032088428,
0.1284837723,
0.2637522817,
0.0675551519,
-0.083330743,
0.2330915928,
-0.0484738536,
0.403193891,
-0.3050515354,
0.0193954594,
0.1950926036,
0.0151601965,
0.1632584184,
0.3058250248,
0.0028247226,
0.0275519397,
0.3956400454,
0.1797771901,
0.1889588684,
0.361271143,
0.1213435531,
0.1256160289,
0.5455905795,
-0.229820177,
0.1712247282,
0.412938714,
0.3619436324,
0.1206743568,
-0.327588588,
0.0675621629,
-0.2218263149,
0.0876740441,
0.127533555,
-0.1785113811,
-0.2183449715,
0.200701952,
0.3497122526,
-0.4002244771,
-0.1088246033,
-0.0759373531,
-0.0582729168,
0.009368876,
0.0185794849,
0.0791207477,
-0.1426203996,
0.0956058055,
-0.0189037658,
0.1617903858,
-0.1936127543,
0.0031985175,
0.0838393271,
0.1933109015,
-0.058198601,
0.0555201396,
-0.0990939885,
0.086652495,
-0.2270683795,
-0.0916605443,
-0.2489610314,
0.0196249206,
-0.2773870826,
0.2346079051,
0.4263951182,
0.5700037479,
0.1071949974,
0.1036821231,
-0.2625008523,
-0.1466623843,
0.2125215977,
-0.3936909437,
-0.0943322107,
0.8848913312,
0.2048434764,
-0.1527254879,
-0.2799519598,
0.177399084,
-0.7367966175,
0.0776504427,
0.2374967486,
0.1197137535,
-0.0409560539,
-0.4269068837,
0.1364693046,
0.1251664013,
0.2762802243,
-0.0520890094,
0.412468195,
-0.0601217113,
-0.0616205074,
-0.4459727705,
0.0975325406,
-0.0362374373,
0.162829265,
0.0209498443,
-0.1065493301,
-0.0380696058,
0.0391868614,
-0.2933573425,
0.3067793548,
-0.3621274531,
-0.3427153826,
-0.245803684,
0.0772687495,
0.0146662937,
0.0181847047,
0.1471750587,
-0.2030317783,
-0.0983985811,
-0.1064852923,
0.0504437238,
-0.2307025492,
-0.1302488893,
0.482693553,
0.4234506488,
0.1074430197,
0.2676041722,
0.1654304862,
-0.1382890493,
-0.2191940099,
-0.2272737771,
-0.1517679989,
-0.2155966312,
0.1276093572,
0.1082276106,
0.1141461357,
0.1075205877,
0.094139114,
-0.29399243,
0.0820913613,
-0.1551929265,
0.0133393127,
-0.2642065585,
0.0743817538,
0.1357635409,
0.121591039,
-0.4070492387,
0.4321895838,
0.0068679284,
0.0536034703,
-0.1758132875,
-0.3169419765,
0.5040283799,
-0.0870553702,
-0.3847105205,
0.3119256198,
0.2451522052,
0.1422898769,
0.0038850899,
-0.3304693997,
-0.1347046942,
0.038281735,
0.0473494865,
-0.2229126394,
0.1495039761,
-0.0536105409,
-0.1715637296,
-0.0246993452,
0.0344610848,
0.1170689315,
-0.3060975075,
0.2864744067,
-0.2321722209
] |
https://github.com/huggingface/datasets/issues/138 | Consider renaming to nld | Interesting, thanks for sharing your thoughts.
As we’ll move toward a first non-beta release, we will pool the community of contributors/users of the library for their opinions on a good final name (like when we renamed the beautifully (?) named `pytorch-pretrained-bert`)
In the meantime, using `from nlp import load_dataset, load_metric` should work 😉 | Hey :)
Just making a thread here recording what I said on Twitter, as it's impossible to follow discussion there. It's also just really not a good way to talk about this sort of thing.
The issue is that modules go into the global namespace, so you shouldn't use variable names that conflict with module names. This means the package makes `nlp` a bad variable name everywhere in the codebase. I've always used `nlp` as the canonical variable name of spaCy's `Language` objects, and this is a convention that a lot of other code has followed (Stanza, flair, etc). And actually, your `transformers` library uses `nlp` as the name for its `Pipeline` instance in your readme.
If you stick with the `nlp` name for this package, if anyone uses it then they should rewrite all of that code. If `nlp` is a bad choice of variable anywhere, it's a bad choice of variable everywhere --- because you shouldn't have to notice whether some other function uses a module when you're naming variables within a function. You want to have one convention that you can stick to everywhere.
If people use your `nlp` package and continue to use the `nlp` variable name, they'll find themselves with confusing bugs. There will be many many bits of code cut-and-paste from tutorials that give confusing results when combined with the data loading from the `nlp` library. The problem will be especially bad for shadowed modules (people might reasonably have a module named `nlp.py` within their codebase) and notebooks, as people might run notebook cells for data loading out-of-order.
I don't think it's an exaggeration to say that if your library becomes popular, we'll all be answering issues around this about once a week for the next few years. That seems pretty unideal, so I do hope you'll reconsider.
I suggest `nld` as a better name. It more accurately represents what the package actually does. It's pretty unideal to have a package named `nlp` that doesn't do any processing, and contains data about natural language generation or other non-NLP tasks. The name is equally short, and is sort of a visual pun on `nlp`, since a d is a rotated p. | 53 | Consider renaming to nld
Hey :)
Just making a thread here recording what I said on Twitter, as it's impossible to follow discussion there. It's also just really not a good way to talk about this sort of thing.
The issue is that modules go into the global namespace, so you shouldn't use variable names that conflict with module names. This means the package makes `nlp` a bad variable name everywhere in the codebase. I've always used `nlp` as the canonical variable name of spaCy's `Language` objects, and this is a convention that a lot of other code has followed (Stanza, flair, etc). And actually, your `transformers` library uses `nlp` as the name for its `Pipeline` instance in your readme.
If you stick with the `nlp` name for this package, if anyone uses it then they should rewrite all of that code. If `nlp` is a bad choice of variable anywhere, it's a bad choice of variable everywhere --- because you shouldn't have to notice whether some other function uses a module when you're naming variables within a function. You want to have one convention that you can stick to everywhere.
If people use your `nlp` package and continue to use the `nlp` variable name, they'll find themselves with confusing bugs. There will be many many bits of code cut-and-paste from tutorials that give confusing results when combined with the data loading from the `nlp` library. The problem will be especially bad for shadowed modules (people might reasonably have a module named `nlp.py` within their codebase) and notebooks, as people might run notebook cells for data loading out-of-order.
I don't think it's an exaggeration to say that if your library becomes popular, we'll all be answering issues around this about once a week for the next few years. That seems pretty unideal, so I do hope you'll reconsider.
I suggest `nld` as a better name. It more accurately represents what the package actually does. It's pretty unideal to have a package named `nlp` that doesn't do any processing, and contains data about natural language generation or other non-NLP tasks. The name is equally short, and is sort of a visual pun on `nlp`, since a d is a rotated p.
Interesting, thanks for sharing your thoughts.
As we’ll move toward a first non-beta release, we will pool the community of contributors/users of the library for their opinions on a good final name (like when we renamed the beautifully (?) named `pytorch-pretrained-bert`)
In the meantime, using `from nlp import load_dataset, load_metric` should work 😉 | [
0.3546045423,
0.0250588749,
-0.0843050182,
-0.3304427564,
0.1876238436,
-0.236012876,
0.28185305,
0.2058826387,
-0.1652064472,
0.0582918562,
0.2198298872,
0.2940490246,
-0.3030350804,
0.124629885,
0.3023299575,
-0.2793754339,
0.208622247,
0.0491359942,
0.163286671,
-0.12861453,
-0.1061516404,
0.1799215823,
0.1566793174,
0.4202882648,
0.0016417105,
0.0405684784,
0.2510457635,
-0.1025931761,
0.0196671635,
-0.3666578829,
0.0917975232,
0.3173363805,
-0.0723684505,
0.0078899302,
-0.000103016,
-0.1667027324,
0.5983601809,
-0.0208174679,
-0.1951323301,
-0.2738524079,
0.349458456,
-0.4347409606,
0.0873835906,
-0.5374495387,
0.1049490124,
0.2493642569,
0.1611561775,
-0.276920408,
0.172302261,
-0.0842129886,
0.2791434824,
-0.0322702117,
-0.2336920351,
0.2664331794,
-0.0823111087,
0.1612643898,
-0.1856751591,
-0.1456343532,
0.1019585207,
-0.0416523814,
0.0535839908,
0.2429708838,
-0.1371390074,
0.0111302752,
0.4416790009,
0.1220084205,
0.3055425286,
0.0429872759,
-0.0890985131,
0.1462108791,
0.0160025489,
-0.3755002618,
-0.2275757641,
-0.1618047655,
0.0141654378,
-0.4211738706,
0.0508646294,
-0.0911910534,
-0.0744972825,
-0.0652685389,
0.3642607033,
-0.1167292595,
0.0555222332,
0.1869731098,
0.0563991144,
0.6406508088,
0.1287475675,
0.1855204552,
0.0186786726,
-0.2868245244,
0.1609269083,
0.171697408,
0.204897508,
0.0659399852,
0.1589836627,
-0.1076444536,
0.0360815637,
-0.0260849074,
-0.1019778028,
-0.0282881055,
-0.0157897808,
-0.0529253818,
0.1841490716,
-0.1026074737,
-0.0229199026,
-0.0395879969,
0.2494287044,
0.0680685639,
0.3340998292,
0.0483053438,
0.1616840214,
0.0051701008,
-0.0170283411,
0.113665022,
0.0018839892,
0.0539526232,
0.1125139669,
0.0556236021,
0.0231455527,
-0.0699976906,
0.1393642128,
-0.0318879411,
0.01228166,
0.2282055318,
0.0296435487,
0.4047166705,
0.1179115772,
-0.0512217507,
-0.0545106903,
0.0529051386,
-0.1768298298,
-0.0293127224,
-0.5875115991,
0.1920244396,
-0.0093171773,
0.5461201668,
0.3421473801,
-0.2364342809,
-0.1096443385,
0.0759178028,
-0.0507353917,
0.1224970073,
-0.035852395,
-0.0496277586,
-0.434293896,
0.1021535024,
-0.2238203585,
-0.3176432252,
-0.2762624025,
0.1289541274,
-0.2020070255,
0.093801558,
-0.1377501339,
0.302326262,
-0.285153389,
-0.0645211786,
0.4819486439,
0.1596667022,
0.1319607347,
-0.2455683649,
0.1019593477,
-0.0245485827,
0.1727489382,
-0.1681720912,
-0.2812473476,
0.0770908967,
0.1417668164,
-0.4519436359,
-0.563080132,
0.071245715,
0.3810741603,
0.0145661095,
-0.168133527,
-0.0279530082,
0.1246095598,
0.0463551097,
0.5702140331,
-0.377081275,
-0.1004940867,
0.1108656973,
-0.2571688294,
-0.1666594744,
0.0733328685,
0.172489956,
-0.0463333689,
-0.178151533,
0.2236124426,
0.4268015027,
0.1682260633,
0.1578954905,
-0.2671320438,
-0.1424055547,
0.3670619726,
0.020118827,
0.0713864565,
0.145018518,
-0.2018316686,
0.7421376109,
0.1609520614,
0.0481396988,
0.0549912527,
0.1300475299,
-0.0001047579,
0.2264645696,
0.0527036749,
-0.0485745184,
-0.2530001998,
-0.1717444062,
-0.3851438761,
0.2766964734,
-0.140701592,
-0.3179915845,
-0.0011529273,
-0.0611751825,
0.0840613469,
-0.2455077916,
0.314219296,
0.1664158404,
-0.0728964657,
-0.1845241189,
-0.3374125659,
0.2081884295,
0.1162086502,
0.0268576704,
-0.1347389817,
0.0125923324,
-0.0472035334,
-0.1227352098,
-0.0485320054,
0.4621074498,
0.0617955811,
0.0230287928,
-0.0187293049,
0.1212336943,
-0.0920707658,
-0.1717240959,
-0.1780797988,
0.3527117372,
0.1953413039,
0.0335728228,
0.1522720009,
0.2178539038,
0.00523917,
0.0609578341,
0.165421322,
0.0910021365,
-0.2310309857,
0.1728600115,
0.1610241234,
-0.1268762946,
0.2499849647,
-0.3104696572,
-0.3951841295,
-0.159494251,
0.2015538216,
-0.174465552,
0.3688203394,
0.2622096837,
-0.0718517005,
-0.0054821004,
0.7487165332,
-0.1023490727,
-0.0018589926,
0.0346929245,
0.0061897417,
0.0344389826,
-0.0982623473,
0.4255808592,
0.3692653775,
0.2573753297,
-0.2147238255,
0.0731224641,
-0.1584897041,
-0.23952429,
0.1479514986,
0.2729808688,
-0.0210607387,
-0.0159717128,
0.0722969398,
-0.0208247155,
-0.144223392,
-0.3758422732,
0.1088094786,
0.0435102955,
0.1615841091,
0.1969147772,
-0.2253729254,
-0.3355082572,
-0.3560677767,
-0.1077125445,
-0.5679334998,
-0.2122839987,
0.0389433429,
-0.3195095062,
-0.3220553696,
0.1848625392,
0.0278039724,
0.0538056381,
-0.3259669244,
-0.4077161849,
-0.2541847825,
-0.2610701621,
-0.2709333003,
0.1013535261,
-0.0553873442,
0.1212052479,
0.3438510895,
0.0752661079,
0.0450470224,
0.0797969028,
-0.4759515226,
0.019988196,
-0.0811675116,
0.2733126879,
0.2104488313,
-0.0825032741,
0.1517145932,
-0.466009289,
0.1668879986,
-0.2525930703,
0.1693016589,
0.0579312257,
0.1528622806,
-0.0486337692,
-0.3818203509,
-0.2003627717,
-0.4499172866,
-0.4317989051,
-0.1190715507,
-0.0393394046,
0.0792103261,
0.4727208912,
-0.575881958,
-0.0751318485,
0.1555480808,
0.2960142791,
-0.1504532844,
0.3245943785,
-0.0218336694,
-0.1896304786,
0.0030148681,
-0.37011832,
-0.4601127207,
0.5443203449,
-0.0602090955,
0.0033653879,
0.0939405188,
0.0620013997,
-0.1237866431,
0.2940616012,
-0.1174600795,
0.3699583709,
0.3588147163,
-0.1884727031,
-0.0632569268,
-0.1866521686,
0.1633794755,
-0.0045338394,
0.3885164857,
0.1221950203,
-0.1400720179,
-0.0451744832,
0.0210367367,
-0.2248966545,
-0.0801915824,
0.2310663462,
0.3564609885,
0.0327313878,
-0.0163829383,
-0.1170816869,
0.0942938104,
0.1725270003,
-0.1195731983,
0.2910574377,
-0.0843761191,
-0.2946410775,
-0.0038448521,
0.2169433534,
-0.1007226482,
-0.250341922,
0.1929997206,
0.0891835615,
0.2827474773,
0.1753284037,
-0.1619337052,
-0.1459892392,
-0.3150653243,
0.1284447163,
0.2256353199,
-0.2269298136,
0.0859745368,
-0.5130317211,
-0.3030592203,
-0.0854920298,
-0.0233057719,
-0.0840165988,
0.2252944857,
-0.0976991802,
-0.0682784021,
0.0381608494,
-0.0622194633,
0.1355438381,
0.0053457669,
-0.1475563198,
0.3124497831,
0.22030285,
-0.0112972818,
-0.2311529666,
-0.1663770676,
0.0577341467,
0.2586655021,
0.2246443778,
-0.5831879973,
-0.3143756688,
0.1958585083,
0.0615962222,
-0.1887238324,
-0.2447851002,
-0.4139582515,
-0.2432187796,
-0.2267661244,
-0.207563743,
-0.132857278,
0.3199290633,
0.0897642821,
0.0595341325,
0.1999860555,
-0.2511615455,
0.220259726,
0.1723578125,
0.1237166226,
0.0274909399,
-0.1680527031,
-0.0923232362,
0.2246273458,
-0.5235324502,
0.04502289,
-0.0399270318,
-0.0523350649,
-0.1777236164,
0.0533364825,
0.3100292683,
0.3402794003,
0.090030022,
0.2383214086,
-0.1819753796,
0.0640585646,
-0.0300180912,
0.2332524806,
0.1558600515,
0.0364177525,
-0.2073985338,
-0.4303264618,
0.2744524479,
0.2052862048,
-0.259929955,
-0.0256310366,
0.0207748171,
-0.3804276884,
0.5902325511,
0.1180908233,
1.0089895725,
-0.0025152152,
0.2391271591,
0.0166735742,
0.0414850973,
0.7351971865,
-0.2273073792,
0.0742216036,
-0.2871638536,
0.4338241816,
0.2762081623,
0.0291308649,
0.189319104,
0.1501967609,
-0.2432341725,
0.4527545273,
0.2205491513,
-0.3383808136,
0.0835848525,
0.4536226094,
0.1656157523,
-0.3907469809,
-0.1250924915,
0.1206354648,
-0.4738860726,
0.2193239927,
-0.1599497199,
-0.2089595348,
-0.1138748378,
-0.1106684431,
0.0419252664,
-0.0078130746,
-0.0255670156,
0.1110909358,
-0.1030503958,
0.1334173679,
-0.1465841979,
-0.2319065034,
0.3092883229,
0.445115447,
-0.041815795,
0.0672229975,
-0.2529368401,
0.0395185426,
0.1476796716,
0.2119449973,
0.3646719456,
-0.1735545099,
-0.1169806495,
-0.1212966368,
0.0693862438,
-0.0816582441,
-0.3511217833,
-0.1439374685,
0.3010073602,
-0.1273348182,
-0.0553539842,
0.2697060406,
-0.2059503496,
-0.0515001751,
0.2535748482,
0.1286809742,
-0.2365042567,
0.152215451,
0.2154998183,
-0.1379987299,
-0.0277185943,
-0.2845082283,
0.2966325283,
-0.262899071,
-0.0141334934,
-0.2800218761,
-0.1900841892,
-0.1783280522,
-0.2144163698,
-0.4408951104,
-0.2746848464,
0.2680206001,
0.3854090571,
-0.6574809551,
-0.1242856532,
-0.0738775879,
0.1040908322,
0.2993980944,
-0.3066924512,
-0.0836873278,
-0.2827759683,
0.4450171888,
-0.1112830788,
-0.0271211863,
0.0508927442,
0.6008218527,
-0.0077931653,
0.0307249986,
-0.411422044,
-0.2275702357,
-0.2836340368,
0.3503586948,
0.0242581256,
-0.406062156,
-0.2008110285,
0.1526447535,
0.1956526786,
0.0458801873,
-0.176434055,
-0.283590138,
-0.318883121,
0.1050616875,
0.0745702386,
0.1342766136,
0.0811202675,
-0.1392993629,
0.2841312885,
-0.0353496261,
-0.1470666826,
-0.078591831,
0.1584582329,
0.6412720084,
0.1998636276,
0.2127103209,
0.2033686042,
0.1251463741,
-0.0351963565,
0.2976450622,
0.0217047893,
0.2803504467,
0.0442091338,
-0.06221902,
-0.2232206911,
-0.14201729,
-0.2373427302,
0.3103161156,
0.01001509,
-0.1164273843,
-0.1670697927,
0.0692104846,
-0.036886435,
0.3586560488,
-0.1238266528,
-0.2624822855,
0.2713676989,
0.296916008,
-0.3307809234,
-0.0596150011,
-0.0284346528,
0.0032088428,
0.1284837723,
0.2637522817,
0.0675551519,
-0.083330743,
0.2330915928,
-0.0484738536,
0.403193891,
-0.3050515354,
0.0193954594,
0.1950926036,
0.0151601965,
0.1632584184,
0.3058250248,
0.0028247226,
0.0275519397,
0.3956400454,
0.1797771901,
0.1889588684,
0.361271143,
0.1213435531,
0.1256160289,
0.5455905795,
-0.229820177,
0.1712247282,
0.412938714,
0.3619436324,
0.1206743568,
-0.327588588,
0.0675621629,
-0.2218263149,
0.0876740441,
0.127533555,
-0.1785113811,
-0.2183449715,
0.200701952,
0.3497122526,
-0.4002244771,
-0.1088246033,
-0.0759373531,
-0.0582729168,
0.009368876,
0.0185794849,
0.0791207477,
-0.1426203996,
0.0956058055,
-0.0189037658,
0.1617903858,
-0.1936127543,
0.0031985175,
0.0838393271,
0.1933109015,
-0.058198601,
0.0555201396,
-0.0990939885,
0.086652495,
-0.2270683795,
-0.0916605443,
-0.2489610314,
0.0196249206,
-0.2773870826,
0.2346079051,
0.4263951182,
0.5700037479,
0.1071949974,
0.1036821231,
-0.2625008523,
-0.1466623843,
0.2125215977,
-0.3936909437,
-0.0943322107,
0.8848913312,
0.2048434764,
-0.1527254879,
-0.2799519598,
0.177399084,
-0.7367966175,
0.0776504427,
0.2374967486,
0.1197137535,
-0.0409560539,
-0.4269068837,
0.1364693046,
0.1251664013,
0.2762802243,
-0.0520890094,
0.412468195,
-0.0601217113,
-0.0616205074,
-0.4459727705,
0.0975325406,
-0.0362374373,
0.162829265,
0.0209498443,
-0.1065493301,
-0.0380696058,
0.0391868614,
-0.2933573425,
0.3067793548,
-0.3621274531,
-0.3427153826,
-0.245803684,
0.0772687495,
0.0146662937,
0.0181847047,
0.1471750587,
-0.2030317783,
-0.0983985811,
-0.1064852923,
0.0504437238,
-0.2307025492,
-0.1302488893,
0.482693553,
0.4234506488,
0.1074430197,
0.2676041722,
0.1654304862,
-0.1382890493,
-0.2191940099,
-0.2272737771,
-0.1517679989,
-0.2155966312,
0.1276093572,
0.1082276106,
0.1141461357,
0.1075205877,
0.094139114,
-0.29399243,
0.0820913613,
-0.1551929265,
0.0133393127,
-0.2642065585,
0.0743817538,
0.1357635409,
0.121591039,
-0.4070492387,
0.4321895838,
0.0068679284,
0.0536034703,
-0.1758132875,
-0.3169419765,
0.5040283799,
-0.0870553702,
-0.3847105205,
0.3119256198,
0.2451522052,
0.1422898769,
0.0038850899,
-0.3304693997,
-0.1347046942,
0.038281735,
0.0473494865,
-0.2229126394,
0.1495039761,
-0.0536105409,
-0.1715637296,
-0.0246993452,
0.0344610848,
0.1170689315,
-0.3060975075,
0.2864744067,
-0.2321722209
] |
https://github.com/huggingface/datasets/issues/138 | Consider renaming to nld | I feel like we are conflating two distinct subjects here:
1. @honnibal's point is that using `nlp` as a package name might break existing code and bring developer usability issues in the future
2. @pmbaumgartner's point is that the `nlp` package name is too broad and shouldn't be used by a package that exposes only datasets and metrics
(let me know if I mischaracterize your point)
I'll chime in to say that the first point is a bit silly IMO. As Python developers due to the limitations of the import system we already have to share:
- a single flat namespace for packages
- which also conflicts with local modules i.e. local files
If we add the constraint that this flat namespace also be shared with variable names this gets untractable pretty fast :)
I also think all Python software developers/ML engineers/scientists are capable of at least a subset of:
- importing only the methods that they need like @thomwolf suggested
- aliasing their import
- renaming a local variable | Hey :)
Just making a thread here recording what I said on Twitter, as it's impossible to follow discussion there. It's also just really not a good way to talk about this sort of thing.
The issue is that modules go into the global namespace, so you shouldn't use variable names that conflict with module names. This means the package makes `nlp` a bad variable name everywhere in the codebase. I've always used `nlp` as the canonical variable name of spaCy's `Language` objects, and this is a convention that a lot of other code has followed (Stanza, flair, etc). And actually, your `transformers` library uses `nlp` as the name for its `Pipeline` instance in your readme.
If you stick with the `nlp` name for this package, if anyone uses it then they should rewrite all of that code. If `nlp` is a bad choice of variable anywhere, it's a bad choice of variable everywhere --- because you shouldn't have to notice whether some other function uses a module when you're naming variables within a function. You want to have one convention that you can stick to everywhere.
If people use your `nlp` package and continue to use the `nlp` variable name, they'll find themselves with confusing bugs. There will be many many bits of code cut-and-paste from tutorials that give confusing results when combined with the data loading from the `nlp` library. The problem will be especially bad for shadowed modules (people might reasonably have a module named `nlp.py` within their codebase) and notebooks, as people might run notebook cells for data loading out-of-order.
I don't think it's an exaggeration to say that if your library becomes popular, we'll all be answering issues around this about once a week for the next few years. That seems pretty unideal, so I do hope you'll reconsider.
I suggest `nld` as a better name. It more accurately represents what the package actually does. It's pretty unideal to have a package named `nlp` that doesn't do any processing, and contains data about natural language generation or other non-NLP tasks. The name is equally short, and is sort of a visual pun on `nlp`, since a d is a rotated p. | 170 | Consider renaming to nld
Hey :)
Just making a thread here recording what I said on Twitter, as it's impossible to follow discussion there. It's also just really not a good way to talk about this sort of thing.
The issue is that modules go into the global namespace, so you shouldn't use variable names that conflict with module names. This means the package makes `nlp` a bad variable name everywhere in the codebase. I've always used `nlp` as the canonical variable name of spaCy's `Language` objects, and this is a convention that a lot of other code has followed (Stanza, flair, etc). And actually, your `transformers` library uses `nlp` as the name for its `Pipeline` instance in your readme.
If you stick with the `nlp` name for this package, if anyone uses it then they should rewrite all of that code. If `nlp` is a bad choice of variable anywhere, it's a bad choice of variable everywhere --- because you shouldn't have to notice whether some other function uses a module when you're naming variables within a function. You want to have one convention that you can stick to everywhere.
If people use your `nlp` package and continue to use the `nlp` variable name, they'll find themselves with confusing bugs. There will be many many bits of code cut-and-paste from tutorials that give confusing results when combined with the data loading from the `nlp` library. The problem will be especially bad for shadowed modules (people might reasonably have a module named `nlp.py` within their codebase) and notebooks, as people might run notebook cells for data loading out-of-order.
I don't think it's an exaggeration to say that if your library becomes popular, we'll all be answering issues around this about once a week for the next few years. That seems pretty unideal, so I do hope you'll reconsider.
I suggest `nld` as a better name. It more accurately represents what the package actually does. It's pretty unideal to have a package named `nlp` that doesn't do any processing, and contains data about natural language generation or other non-NLP tasks. The name is equally short, and is sort of a visual pun on `nlp`, since a d is a rotated p.
I feel like we are conflating two distinct subjects here:
1. @honnibal's point is that using `nlp` as a package name might break existing code and bring developer usability issues in the future
2. @pmbaumgartner's point is that the `nlp` package name is too broad and shouldn't be used by a package that exposes only datasets and metrics
(let me know if I mischaracterize your point)
I'll chime in to say that the first point is a bit silly IMO. As Python developers due to the limitations of the import system we already have to share:
- a single flat namespace for packages
- which also conflicts with local modules i.e. local files
If we add the constraint that this flat namespace also be shared with variable names this gets untractable pretty fast :)
I also think all Python software developers/ML engineers/scientists are capable of at least a subset of:
- importing only the methods that they need like @thomwolf suggested
- aliasing their import
- renaming a local variable | [
0.3546045423,
0.0250588749,
-0.0843050182,
-0.3304427564,
0.1876238436,
-0.236012876,
0.28185305,
0.2058826387,
-0.1652064472,
0.0582918562,
0.2198298872,
0.2940490246,
-0.3030350804,
0.124629885,
0.3023299575,
-0.2793754339,
0.208622247,
0.0491359942,
0.163286671,
-0.12861453,
-0.1061516404,
0.1799215823,
0.1566793174,
0.4202882648,
0.0016417105,
0.0405684784,
0.2510457635,
-0.1025931761,
0.0196671635,
-0.3666578829,
0.0917975232,
0.3173363805,
-0.0723684505,
0.0078899302,
-0.000103016,
-0.1667027324,
0.5983601809,
-0.0208174679,
-0.1951323301,
-0.2738524079,
0.349458456,
-0.4347409606,
0.0873835906,
-0.5374495387,
0.1049490124,
0.2493642569,
0.1611561775,
-0.276920408,
0.172302261,
-0.0842129886,
0.2791434824,
-0.0322702117,
-0.2336920351,
0.2664331794,
-0.0823111087,
0.1612643898,
-0.1856751591,
-0.1456343532,
0.1019585207,
-0.0416523814,
0.0535839908,
0.2429708838,
-0.1371390074,
0.0111302752,
0.4416790009,
0.1220084205,
0.3055425286,
0.0429872759,
-0.0890985131,
0.1462108791,
0.0160025489,
-0.3755002618,
-0.2275757641,
-0.1618047655,
0.0141654378,
-0.4211738706,
0.0508646294,
-0.0911910534,
-0.0744972825,
-0.0652685389,
0.3642607033,
-0.1167292595,
0.0555222332,
0.1869731098,
0.0563991144,
0.6406508088,
0.1287475675,
0.1855204552,
0.0186786726,
-0.2868245244,
0.1609269083,
0.171697408,
0.204897508,
0.0659399852,
0.1589836627,
-0.1076444536,
0.0360815637,
-0.0260849074,
-0.1019778028,
-0.0282881055,
-0.0157897808,
-0.0529253818,
0.1841490716,
-0.1026074737,
-0.0229199026,
-0.0395879969,
0.2494287044,
0.0680685639,
0.3340998292,
0.0483053438,
0.1616840214,
0.0051701008,
-0.0170283411,
0.113665022,
0.0018839892,
0.0539526232,
0.1125139669,
0.0556236021,
0.0231455527,
-0.0699976906,
0.1393642128,
-0.0318879411,
0.01228166,
0.2282055318,
0.0296435487,
0.4047166705,
0.1179115772,
-0.0512217507,
-0.0545106903,
0.0529051386,
-0.1768298298,
-0.0293127224,
-0.5875115991,
0.1920244396,
-0.0093171773,
0.5461201668,
0.3421473801,
-0.2364342809,
-0.1096443385,
0.0759178028,
-0.0507353917,
0.1224970073,
-0.035852395,
-0.0496277586,
-0.434293896,
0.1021535024,
-0.2238203585,
-0.3176432252,
-0.2762624025,
0.1289541274,
-0.2020070255,
0.093801558,
-0.1377501339,
0.302326262,
-0.285153389,
-0.0645211786,
0.4819486439,
0.1596667022,
0.1319607347,
-0.2455683649,
0.1019593477,
-0.0245485827,
0.1727489382,
-0.1681720912,
-0.2812473476,
0.0770908967,
0.1417668164,
-0.4519436359,
-0.563080132,
0.071245715,
0.3810741603,
0.0145661095,
-0.168133527,
-0.0279530082,
0.1246095598,
0.0463551097,
0.5702140331,
-0.377081275,
-0.1004940867,
0.1108656973,
-0.2571688294,
-0.1666594744,
0.0733328685,
0.172489956,
-0.0463333689,
-0.178151533,
0.2236124426,
0.4268015027,
0.1682260633,
0.1578954905,
-0.2671320438,
-0.1424055547,
0.3670619726,
0.020118827,
0.0713864565,
0.145018518,
-0.2018316686,
0.7421376109,
0.1609520614,
0.0481396988,
0.0549912527,
0.1300475299,
-0.0001047579,
0.2264645696,
0.0527036749,
-0.0485745184,
-0.2530001998,
-0.1717444062,
-0.3851438761,
0.2766964734,
-0.140701592,
-0.3179915845,
-0.0011529273,
-0.0611751825,
0.0840613469,
-0.2455077916,
0.314219296,
0.1664158404,
-0.0728964657,
-0.1845241189,
-0.3374125659,
0.2081884295,
0.1162086502,
0.0268576704,
-0.1347389817,
0.0125923324,
-0.0472035334,
-0.1227352098,
-0.0485320054,
0.4621074498,
0.0617955811,
0.0230287928,
-0.0187293049,
0.1212336943,
-0.0920707658,
-0.1717240959,
-0.1780797988,
0.3527117372,
0.1953413039,
0.0335728228,
0.1522720009,
0.2178539038,
0.00523917,
0.0609578341,
0.165421322,
0.0910021365,
-0.2310309857,
0.1728600115,
0.1610241234,
-0.1268762946,
0.2499849647,
-0.3104696572,
-0.3951841295,
-0.159494251,
0.2015538216,
-0.174465552,
0.3688203394,
0.2622096837,
-0.0718517005,
-0.0054821004,
0.7487165332,
-0.1023490727,
-0.0018589926,
0.0346929245,
0.0061897417,
0.0344389826,
-0.0982623473,
0.4255808592,
0.3692653775,
0.2573753297,
-0.2147238255,
0.0731224641,
-0.1584897041,
-0.23952429,
0.1479514986,
0.2729808688,
-0.0210607387,
-0.0159717128,
0.0722969398,
-0.0208247155,
-0.144223392,
-0.3758422732,
0.1088094786,
0.0435102955,
0.1615841091,
0.1969147772,
-0.2253729254,
-0.3355082572,
-0.3560677767,
-0.1077125445,
-0.5679334998,
-0.2122839987,
0.0389433429,
-0.3195095062,
-0.3220553696,
0.1848625392,
0.0278039724,
0.0538056381,
-0.3259669244,
-0.4077161849,
-0.2541847825,
-0.2610701621,
-0.2709333003,
0.1013535261,
-0.0553873442,
0.1212052479,
0.3438510895,
0.0752661079,
0.0450470224,
0.0797969028,
-0.4759515226,
0.019988196,
-0.0811675116,
0.2733126879,
0.2104488313,
-0.0825032741,
0.1517145932,
-0.466009289,
0.1668879986,
-0.2525930703,
0.1693016589,
0.0579312257,
0.1528622806,
-0.0486337692,
-0.3818203509,
-0.2003627717,
-0.4499172866,
-0.4317989051,
-0.1190715507,
-0.0393394046,
0.0792103261,
0.4727208912,
-0.575881958,
-0.0751318485,
0.1555480808,
0.2960142791,
-0.1504532844,
0.3245943785,
-0.0218336694,
-0.1896304786,
0.0030148681,
-0.37011832,
-0.4601127207,
0.5443203449,
-0.0602090955,
0.0033653879,
0.0939405188,
0.0620013997,
-0.1237866431,
0.2940616012,
-0.1174600795,
0.3699583709,
0.3588147163,
-0.1884727031,
-0.0632569268,
-0.1866521686,
0.1633794755,
-0.0045338394,
0.3885164857,
0.1221950203,
-0.1400720179,
-0.0451744832,
0.0210367367,
-0.2248966545,
-0.0801915824,
0.2310663462,
0.3564609885,
0.0327313878,
-0.0163829383,
-0.1170816869,
0.0942938104,
0.1725270003,
-0.1195731983,
0.2910574377,
-0.0843761191,
-0.2946410775,
-0.0038448521,
0.2169433534,
-0.1007226482,
-0.250341922,
0.1929997206,
0.0891835615,
0.2827474773,
0.1753284037,
-0.1619337052,
-0.1459892392,
-0.3150653243,
0.1284447163,
0.2256353199,
-0.2269298136,
0.0859745368,
-0.5130317211,
-0.3030592203,
-0.0854920298,
-0.0233057719,
-0.0840165988,
0.2252944857,
-0.0976991802,
-0.0682784021,
0.0381608494,
-0.0622194633,
0.1355438381,
0.0053457669,
-0.1475563198,
0.3124497831,
0.22030285,
-0.0112972818,
-0.2311529666,
-0.1663770676,
0.0577341467,
0.2586655021,
0.2246443778,
-0.5831879973,
-0.3143756688,
0.1958585083,
0.0615962222,
-0.1887238324,
-0.2447851002,
-0.4139582515,
-0.2432187796,
-0.2267661244,
-0.207563743,
-0.132857278,
0.3199290633,
0.0897642821,
0.0595341325,
0.1999860555,
-0.2511615455,
0.220259726,
0.1723578125,
0.1237166226,
0.0274909399,
-0.1680527031,
-0.0923232362,
0.2246273458,
-0.5235324502,
0.04502289,
-0.0399270318,
-0.0523350649,
-0.1777236164,
0.0533364825,
0.3100292683,
0.3402794003,
0.090030022,
0.2383214086,
-0.1819753796,
0.0640585646,
-0.0300180912,
0.2332524806,
0.1558600515,
0.0364177525,
-0.2073985338,
-0.4303264618,
0.2744524479,
0.2052862048,
-0.259929955,
-0.0256310366,
0.0207748171,
-0.3804276884,
0.5902325511,
0.1180908233,
1.0089895725,
-0.0025152152,
0.2391271591,
0.0166735742,
0.0414850973,
0.7351971865,
-0.2273073792,
0.0742216036,
-0.2871638536,
0.4338241816,
0.2762081623,
0.0291308649,
0.189319104,
0.1501967609,
-0.2432341725,
0.4527545273,
0.2205491513,
-0.3383808136,
0.0835848525,
0.4536226094,
0.1656157523,
-0.3907469809,
-0.1250924915,
0.1206354648,
-0.4738860726,
0.2193239927,
-0.1599497199,
-0.2089595348,
-0.1138748378,
-0.1106684431,
0.0419252664,
-0.0078130746,
-0.0255670156,
0.1110909358,
-0.1030503958,
0.1334173679,
-0.1465841979,
-0.2319065034,
0.3092883229,
0.445115447,
-0.041815795,
0.0672229975,
-0.2529368401,
0.0395185426,
0.1476796716,
0.2119449973,
0.3646719456,
-0.1735545099,
-0.1169806495,
-0.1212966368,
0.0693862438,
-0.0816582441,
-0.3511217833,
-0.1439374685,
0.3010073602,
-0.1273348182,
-0.0553539842,
0.2697060406,
-0.2059503496,
-0.0515001751,
0.2535748482,
0.1286809742,
-0.2365042567,
0.152215451,
0.2154998183,
-0.1379987299,
-0.0277185943,
-0.2845082283,
0.2966325283,
-0.262899071,
-0.0141334934,
-0.2800218761,
-0.1900841892,
-0.1783280522,
-0.2144163698,
-0.4408951104,
-0.2746848464,
0.2680206001,
0.3854090571,
-0.6574809551,
-0.1242856532,
-0.0738775879,
0.1040908322,
0.2993980944,
-0.3066924512,
-0.0836873278,
-0.2827759683,
0.4450171888,
-0.1112830788,
-0.0271211863,
0.0508927442,
0.6008218527,
-0.0077931653,
0.0307249986,
-0.411422044,
-0.2275702357,
-0.2836340368,
0.3503586948,
0.0242581256,
-0.406062156,
-0.2008110285,
0.1526447535,
0.1956526786,
0.0458801873,
-0.176434055,
-0.283590138,
-0.318883121,
0.1050616875,
0.0745702386,
0.1342766136,
0.0811202675,
-0.1392993629,
0.2841312885,
-0.0353496261,
-0.1470666826,
-0.078591831,
0.1584582329,
0.6412720084,
0.1998636276,
0.2127103209,
0.2033686042,
0.1251463741,
-0.0351963565,
0.2976450622,
0.0217047893,
0.2803504467,
0.0442091338,
-0.06221902,
-0.2232206911,
-0.14201729,
-0.2373427302,
0.3103161156,
0.01001509,
-0.1164273843,
-0.1670697927,
0.0692104846,
-0.036886435,
0.3586560488,
-0.1238266528,
-0.2624822855,
0.2713676989,
0.296916008,
-0.3307809234,
-0.0596150011,
-0.0284346528,
0.0032088428,
0.1284837723,
0.2637522817,
0.0675551519,
-0.083330743,
0.2330915928,
-0.0484738536,
0.403193891,
-0.3050515354,
0.0193954594,
0.1950926036,
0.0151601965,
0.1632584184,
0.3058250248,
0.0028247226,
0.0275519397,
0.3956400454,
0.1797771901,
0.1889588684,
0.361271143,
0.1213435531,
0.1256160289,
0.5455905795,
-0.229820177,
0.1712247282,
0.412938714,
0.3619436324,
0.1206743568,
-0.327588588,
0.0675621629,
-0.2218263149,
0.0876740441,
0.127533555,
-0.1785113811,
-0.2183449715,
0.200701952,
0.3497122526,
-0.4002244771,
-0.1088246033,
-0.0759373531,
-0.0582729168,
0.009368876,
0.0185794849,
0.0791207477,
-0.1426203996,
0.0956058055,
-0.0189037658,
0.1617903858,
-0.1936127543,
0.0031985175,
0.0838393271,
0.1933109015,
-0.058198601,
0.0555201396,
-0.0990939885,
0.086652495,
-0.2270683795,
-0.0916605443,
-0.2489610314,
0.0196249206,
-0.2773870826,
0.2346079051,
0.4263951182,
0.5700037479,
0.1071949974,
0.1036821231,
-0.2625008523,
-0.1466623843,
0.2125215977,
-0.3936909437,
-0.0943322107,
0.8848913312,
0.2048434764,
-0.1527254879,
-0.2799519598,
0.177399084,
-0.7367966175,
0.0776504427,
0.2374967486,
0.1197137535,
-0.0409560539,
-0.4269068837,
0.1364693046,
0.1251664013,
0.2762802243,
-0.0520890094,
0.412468195,
-0.0601217113,
-0.0616205074,
-0.4459727705,
0.0975325406,
-0.0362374373,
0.162829265,
0.0209498443,
-0.1065493301,
-0.0380696058,
0.0391868614,
-0.2933573425,
0.3067793548,
-0.3621274531,
-0.3427153826,
-0.245803684,
0.0772687495,
0.0146662937,
0.0181847047,
0.1471750587,
-0.2030317783,
-0.0983985811,
-0.1064852923,
0.0504437238,
-0.2307025492,
-0.1302488893,
0.482693553,
0.4234506488,
0.1074430197,
0.2676041722,
0.1654304862,
-0.1382890493,
-0.2191940099,
-0.2272737771,
-0.1517679989,
-0.2155966312,
0.1276093572,
0.1082276106,
0.1141461357,
0.1075205877,
0.094139114,
-0.29399243,
0.0820913613,
-0.1551929265,
0.0133393127,
-0.2642065585,
0.0743817538,
0.1357635409,
0.121591039,
-0.4070492387,
0.4321895838,
0.0068679284,
0.0536034703,
-0.1758132875,
-0.3169419765,
0.5040283799,
-0.0870553702,
-0.3847105205,
0.3119256198,
0.2451522052,
0.1422898769,
0.0038850899,
-0.3304693997,
-0.1347046942,
0.038281735,
0.0473494865,
-0.2229126394,
0.1495039761,
-0.0536105409,
-0.1715637296,
-0.0246993452,
0.0344610848,
0.1170689315,
-0.3060975075,
0.2864744067,
-0.2321722209
] |
https://github.com/huggingface/datasets/issues/138 | Consider renaming to nld | By the way, `nlp` will very likely not be only about datasets, and not even just about datasets and metrics.
I see it as a laboratory for testing several long-term ideas about how we could do NLP in terms of research as well as open-source and community sharing, most of these ideas being too experimental/big to fit in `transformers`.
Some of the directions we would like to explore are about sharing, traceability and more experimental models, as well as seeing a model as the community-based process of creating a composite entity from data, optimization, and code.
We'll see how these ideas end up being implemented and we'll better know how we should define the library when we start to dive into these topics. I'll try to get the `nlp` team to draft a roadmap on these topics at some point. | Hey :)
Just making a thread here recording what I said on Twitter, as it's impossible to follow discussion there. It's also just really not a good way to talk about this sort of thing.
The issue is that modules go into the global namespace, so you shouldn't use variable names that conflict with module names. This means the package makes `nlp` a bad variable name everywhere in the codebase. I've always used `nlp` as the canonical variable name of spaCy's `Language` objects, and this is a convention that a lot of other code has followed (Stanza, flair, etc). And actually, your `transformers` library uses `nlp` as the name for its `Pipeline` instance in your readme.
If you stick with the `nlp` name for this package, if anyone uses it then they should rewrite all of that code. If `nlp` is a bad choice of variable anywhere, it's a bad choice of variable everywhere --- because you shouldn't have to notice whether some other function uses a module when you're naming variables within a function. You want to have one convention that you can stick to everywhere.
If people use your `nlp` package and continue to use the `nlp` variable name, they'll find themselves with confusing bugs. There will be many many bits of code cut-and-paste from tutorials that give confusing results when combined with the data loading from the `nlp` library. The problem will be especially bad for shadowed modules (people might reasonably have a module named `nlp.py` within their codebase) and notebooks, as people might run notebook cells for data loading out-of-order.
I don't think it's an exaggeration to say that if your library becomes popular, we'll all be answering issues around this about once a week for the next few years. That seems pretty unideal, so I do hope you'll reconsider.
I suggest `nld` as a better name. It more accurately represents what the package actually does. It's pretty unideal to have a package named `nlp` that doesn't do any processing, and contains data about natural language generation or other non-NLP tasks. The name is equally short, and is sort of a visual pun on `nlp`, since a d is a rotated p. | 140 | Consider renaming to nld
Hey :)
Just making a thread here recording what I said on Twitter, as it's impossible to follow discussion there. It's also just really not a good way to talk about this sort of thing.
The issue is that modules go into the global namespace, so you shouldn't use variable names that conflict with module names. This means the package makes `nlp` a bad variable name everywhere in the codebase. I've always used `nlp` as the canonical variable name of spaCy's `Language` objects, and this is a convention that a lot of other code has followed (Stanza, flair, etc). And actually, your `transformers` library uses `nlp` as the name for its `Pipeline` instance in your readme.
If you stick with the `nlp` name for this package, if anyone uses it then they should rewrite all of that code. If `nlp` is a bad choice of variable anywhere, it's a bad choice of variable everywhere --- because you shouldn't have to notice whether some other function uses a module when you're naming variables within a function. You want to have one convention that you can stick to everywhere.
If people use your `nlp` package and continue to use the `nlp` variable name, they'll find themselves with confusing bugs. There will be many many bits of code cut-and-paste from tutorials that give confusing results when combined with the data loading from the `nlp` library. The problem will be especially bad for shadowed modules (people might reasonably have a module named `nlp.py` within their codebase) and notebooks, as people might run notebook cells for data loading out-of-order.
I don't think it's an exaggeration to say that if your library becomes popular, we'll all be answering issues around this about once a week for the next few years. That seems pretty unideal, so I do hope you'll reconsider.
I suggest `nld` as a better name. It more accurately represents what the package actually does. It's pretty unideal to have a package named `nlp` that doesn't do any processing, and contains data about natural language generation or other non-NLP tasks. The name is equally short, and is sort of a visual pun on `nlp`, since a d is a rotated p.
By the way, `nlp` will very likely not be only about datasets, and not even just about datasets and metrics.
I see it as a laboratory for testing several long-term ideas about how we could do NLP in terms of research as well as open-source and community sharing, most of these ideas being too experimental/big to fit in `transformers`.
Some of the directions we would like to explore are about sharing, traceability and more experimental models, as well as seeing a model as the community-based process of creating a composite entity from data, optimization, and code.
We'll see how these ideas end up being implemented and we'll better know how we should define the library when we start to dive into these topics. I'll try to get the `nlp` team to draft a roadmap on these topics at some point. | [
0.3546045423,
0.0250588749,
-0.0843050182,
-0.3304427564,
0.1876238436,
-0.236012876,
0.28185305,
0.2058826387,
-0.1652064472,
0.0582918562,
0.2198298872,
0.2940490246,
-0.3030350804,
0.124629885,
0.3023299575,
-0.2793754339,
0.208622247,
0.0491359942,
0.163286671,
-0.12861453,
-0.1061516404,
0.1799215823,
0.1566793174,
0.4202882648,
0.0016417105,
0.0405684784,
0.2510457635,
-0.1025931761,
0.0196671635,
-0.3666578829,
0.0917975232,
0.3173363805,
-0.0723684505,
0.0078899302,
-0.000103016,
-0.1667027324,
0.5983601809,
-0.0208174679,
-0.1951323301,
-0.2738524079,
0.349458456,
-0.4347409606,
0.0873835906,
-0.5374495387,
0.1049490124,
0.2493642569,
0.1611561775,
-0.276920408,
0.172302261,
-0.0842129886,
0.2791434824,
-0.0322702117,
-0.2336920351,
0.2664331794,
-0.0823111087,
0.1612643898,
-0.1856751591,
-0.1456343532,
0.1019585207,
-0.0416523814,
0.0535839908,
0.2429708838,
-0.1371390074,
0.0111302752,
0.4416790009,
0.1220084205,
0.3055425286,
0.0429872759,
-0.0890985131,
0.1462108791,
0.0160025489,
-0.3755002618,
-0.2275757641,
-0.1618047655,
0.0141654378,
-0.4211738706,
0.0508646294,
-0.0911910534,
-0.0744972825,
-0.0652685389,
0.3642607033,
-0.1167292595,
0.0555222332,
0.1869731098,
0.0563991144,
0.6406508088,
0.1287475675,
0.1855204552,
0.0186786726,
-0.2868245244,
0.1609269083,
0.171697408,
0.204897508,
0.0659399852,
0.1589836627,
-0.1076444536,
0.0360815637,
-0.0260849074,
-0.1019778028,
-0.0282881055,
-0.0157897808,
-0.0529253818,
0.1841490716,
-0.1026074737,
-0.0229199026,
-0.0395879969,
0.2494287044,
0.0680685639,
0.3340998292,
0.0483053438,
0.1616840214,
0.0051701008,
-0.0170283411,
0.113665022,
0.0018839892,
0.0539526232,
0.1125139669,
0.0556236021,
0.0231455527,
-0.0699976906,
0.1393642128,
-0.0318879411,
0.01228166,
0.2282055318,
0.0296435487,
0.4047166705,
0.1179115772,
-0.0512217507,
-0.0545106903,
0.0529051386,
-0.1768298298,
-0.0293127224,
-0.5875115991,
0.1920244396,
-0.0093171773,
0.5461201668,
0.3421473801,
-0.2364342809,
-0.1096443385,
0.0759178028,
-0.0507353917,
0.1224970073,
-0.035852395,
-0.0496277586,
-0.434293896,
0.1021535024,
-0.2238203585,
-0.3176432252,
-0.2762624025,
0.1289541274,
-0.2020070255,
0.093801558,
-0.1377501339,
0.302326262,
-0.285153389,
-0.0645211786,
0.4819486439,
0.1596667022,
0.1319607347,
-0.2455683649,
0.1019593477,
-0.0245485827,
0.1727489382,
-0.1681720912,
-0.2812473476,
0.0770908967,
0.1417668164,
-0.4519436359,
-0.563080132,
0.071245715,
0.3810741603,
0.0145661095,
-0.168133527,
-0.0279530082,
0.1246095598,
0.0463551097,
0.5702140331,
-0.377081275,
-0.1004940867,
0.1108656973,
-0.2571688294,
-0.1666594744,
0.0733328685,
0.172489956,
-0.0463333689,
-0.178151533,
0.2236124426,
0.4268015027,
0.1682260633,
0.1578954905,
-0.2671320438,
-0.1424055547,
0.3670619726,
0.020118827,
0.0713864565,
0.145018518,
-0.2018316686,
0.7421376109,
0.1609520614,
0.0481396988,
0.0549912527,
0.1300475299,
-0.0001047579,
0.2264645696,
0.0527036749,
-0.0485745184,
-0.2530001998,
-0.1717444062,
-0.3851438761,
0.2766964734,
-0.140701592,
-0.3179915845,
-0.0011529273,
-0.0611751825,
0.0840613469,
-0.2455077916,
0.314219296,
0.1664158404,
-0.0728964657,
-0.1845241189,
-0.3374125659,
0.2081884295,
0.1162086502,
0.0268576704,
-0.1347389817,
0.0125923324,
-0.0472035334,
-0.1227352098,
-0.0485320054,
0.4621074498,
0.0617955811,
0.0230287928,
-0.0187293049,
0.1212336943,
-0.0920707658,
-0.1717240959,
-0.1780797988,
0.3527117372,
0.1953413039,
0.0335728228,
0.1522720009,
0.2178539038,
0.00523917,
0.0609578341,
0.165421322,
0.0910021365,
-0.2310309857,
0.1728600115,
0.1610241234,
-0.1268762946,
0.2499849647,
-0.3104696572,
-0.3951841295,
-0.159494251,
0.2015538216,
-0.174465552,
0.3688203394,
0.2622096837,
-0.0718517005,
-0.0054821004,
0.7487165332,
-0.1023490727,
-0.0018589926,
0.0346929245,
0.0061897417,
0.0344389826,
-0.0982623473,
0.4255808592,
0.3692653775,
0.2573753297,
-0.2147238255,
0.0731224641,
-0.1584897041,
-0.23952429,
0.1479514986,
0.2729808688,
-0.0210607387,
-0.0159717128,
0.0722969398,
-0.0208247155,
-0.144223392,
-0.3758422732,
0.1088094786,
0.0435102955,
0.1615841091,
0.1969147772,
-0.2253729254,
-0.3355082572,
-0.3560677767,
-0.1077125445,
-0.5679334998,
-0.2122839987,
0.0389433429,
-0.3195095062,
-0.3220553696,
0.1848625392,
0.0278039724,
0.0538056381,
-0.3259669244,
-0.4077161849,
-0.2541847825,
-0.2610701621,
-0.2709333003,
0.1013535261,
-0.0553873442,
0.1212052479,
0.3438510895,
0.0752661079,
0.0450470224,
0.0797969028,
-0.4759515226,
0.019988196,
-0.0811675116,
0.2733126879,
0.2104488313,
-0.0825032741,
0.1517145932,
-0.466009289,
0.1668879986,
-0.2525930703,
0.1693016589,
0.0579312257,
0.1528622806,
-0.0486337692,
-0.3818203509,
-0.2003627717,
-0.4499172866,
-0.4317989051,
-0.1190715507,
-0.0393394046,
0.0792103261,
0.4727208912,
-0.575881958,
-0.0751318485,
0.1555480808,
0.2960142791,
-0.1504532844,
0.3245943785,
-0.0218336694,
-0.1896304786,
0.0030148681,
-0.37011832,
-0.4601127207,
0.5443203449,
-0.0602090955,
0.0033653879,
0.0939405188,
0.0620013997,
-0.1237866431,
0.2940616012,
-0.1174600795,
0.3699583709,
0.3588147163,
-0.1884727031,
-0.0632569268,
-0.1866521686,
0.1633794755,
-0.0045338394,
0.3885164857,
0.1221950203,
-0.1400720179,
-0.0451744832,
0.0210367367,
-0.2248966545,
-0.0801915824,
0.2310663462,
0.3564609885,
0.0327313878,
-0.0163829383,
-0.1170816869,
0.0942938104,
0.1725270003,
-0.1195731983,
0.2910574377,
-0.0843761191,
-0.2946410775,
-0.0038448521,
0.2169433534,
-0.1007226482,
-0.250341922,
0.1929997206,
0.0891835615,
0.2827474773,
0.1753284037,
-0.1619337052,
-0.1459892392,
-0.3150653243,
0.1284447163,
0.2256353199,
-0.2269298136,
0.0859745368,
-0.5130317211,
-0.3030592203,
-0.0854920298,
-0.0233057719,
-0.0840165988,
0.2252944857,
-0.0976991802,
-0.0682784021,
0.0381608494,
-0.0622194633,
0.1355438381,
0.0053457669,
-0.1475563198,
0.3124497831,
0.22030285,
-0.0112972818,
-0.2311529666,
-0.1663770676,
0.0577341467,
0.2586655021,
0.2246443778,
-0.5831879973,
-0.3143756688,
0.1958585083,
0.0615962222,
-0.1887238324,
-0.2447851002,
-0.4139582515,
-0.2432187796,
-0.2267661244,
-0.207563743,
-0.132857278,
0.3199290633,
0.0897642821,
0.0595341325,
0.1999860555,
-0.2511615455,
0.220259726,
0.1723578125,
0.1237166226,
0.0274909399,
-0.1680527031,
-0.0923232362,
0.2246273458,
-0.5235324502,
0.04502289,
-0.0399270318,
-0.0523350649,
-0.1777236164,
0.0533364825,
0.3100292683,
0.3402794003,
0.090030022,
0.2383214086,
-0.1819753796,
0.0640585646,
-0.0300180912,
0.2332524806,
0.1558600515,
0.0364177525,
-0.2073985338,
-0.4303264618,
0.2744524479,
0.2052862048,
-0.259929955,
-0.0256310366,
0.0207748171,
-0.3804276884,
0.5902325511,
0.1180908233,
1.0089895725,
-0.0025152152,
0.2391271591,
0.0166735742,
0.0414850973,
0.7351971865,
-0.2273073792,
0.0742216036,
-0.2871638536,
0.4338241816,
0.2762081623,
0.0291308649,
0.189319104,
0.1501967609,
-0.2432341725,
0.4527545273,
0.2205491513,
-0.3383808136,
0.0835848525,
0.4536226094,
0.1656157523,
-0.3907469809,
-0.1250924915,
0.1206354648,
-0.4738860726,
0.2193239927,
-0.1599497199,
-0.2089595348,
-0.1138748378,
-0.1106684431,
0.0419252664,
-0.0078130746,
-0.0255670156,
0.1110909358,
-0.1030503958,
0.1334173679,
-0.1465841979,
-0.2319065034,
0.3092883229,
0.445115447,
-0.041815795,
0.0672229975,
-0.2529368401,
0.0395185426,
0.1476796716,
0.2119449973,
0.3646719456,
-0.1735545099,
-0.1169806495,
-0.1212966368,
0.0693862438,
-0.0816582441,
-0.3511217833,
-0.1439374685,
0.3010073602,
-0.1273348182,
-0.0553539842,
0.2697060406,
-0.2059503496,
-0.0515001751,
0.2535748482,
0.1286809742,
-0.2365042567,
0.152215451,
0.2154998183,
-0.1379987299,
-0.0277185943,
-0.2845082283,
0.2966325283,
-0.262899071,
-0.0141334934,
-0.2800218761,
-0.1900841892,
-0.1783280522,
-0.2144163698,
-0.4408951104,
-0.2746848464,
0.2680206001,
0.3854090571,
-0.6574809551,
-0.1242856532,
-0.0738775879,
0.1040908322,
0.2993980944,
-0.3066924512,
-0.0836873278,
-0.2827759683,
0.4450171888,
-0.1112830788,
-0.0271211863,
0.0508927442,
0.6008218527,
-0.0077931653,
0.0307249986,
-0.411422044,
-0.2275702357,
-0.2836340368,
0.3503586948,
0.0242581256,
-0.406062156,
-0.2008110285,
0.1526447535,
0.1956526786,
0.0458801873,
-0.176434055,
-0.283590138,
-0.318883121,
0.1050616875,
0.0745702386,
0.1342766136,
0.0811202675,
-0.1392993629,
0.2841312885,
-0.0353496261,
-0.1470666826,
-0.078591831,
0.1584582329,
0.6412720084,
0.1998636276,
0.2127103209,
0.2033686042,
0.1251463741,
-0.0351963565,
0.2976450622,
0.0217047893,
0.2803504467,
0.0442091338,
-0.06221902,
-0.2232206911,
-0.14201729,
-0.2373427302,
0.3103161156,
0.01001509,
-0.1164273843,
-0.1670697927,
0.0692104846,
-0.036886435,
0.3586560488,
-0.1238266528,
-0.2624822855,
0.2713676989,
0.296916008,
-0.3307809234,
-0.0596150011,
-0.0284346528,
0.0032088428,
0.1284837723,
0.2637522817,
0.0675551519,
-0.083330743,
0.2330915928,
-0.0484738536,
0.403193891,
-0.3050515354,
0.0193954594,
0.1950926036,
0.0151601965,
0.1632584184,
0.3058250248,
0.0028247226,
0.0275519397,
0.3956400454,
0.1797771901,
0.1889588684,
0.361271143,
0.1213435531,
0.1256160289,
0.5455905795,
-0.229820177,
0.1712247282,
0.412938714,
0.3619436324,
0.1206743568,
-0.327588588,
0.0675621629,
-0.2218263149,
0.0876740441,
0.127533555,
-0.1785113811,
-0.2183449715,
0.200701952,
0.3497122526,
-0.4002244771,
-0.1088246033,
-0.0759373531,
-0.0582729168,
0.009368876,
0.0185794849,
0.0791207477,
-0.1426203996,
0.0956058055,
-0.0189037658,
0.1617903858,
-0.1936127543,
0.0031985175,
0.0838393271,
0.1933109015,
-0.058198601,
0.0555201396,
-0.0990939885,
0.086652495,
-0.2270683795,
-0.0916605443,
-0.2489610314,
0.0196249206,
-0.2773870826,
0.2346079051,
0.4263951182,
0.5700037479,
0.1071949974,
0.1036821231,
-0.2625008523,
-0.1466623843,
0.2125215977,
-0.3936909437,
-0.0943322107,
0.8848913312,
0.2048434764,
-0.1527254879,
-0.2799519598,
0.177399084,
-0.7367966175,
0.0776504427,
0.2374967486,
0.1197137535,
-0.0409560539,
-0.4269068837,
0.1364693046,
0.1251664013,
0.2762802243,
-0.0520890094,
0.412468195,
-0.0601217113,
-0.0616205074,
-0.4459727705,
0.0975325406,
-0.0362374373,
0.162829265,
0.0209498443,
-0.1065493301,
-0.0380696058,
0.0391868614,
-0.2933573425,
0.3067793548,
-0.3621274531,
-0.3427153826,
-0.245803684,
0.0772687495,
0.0146662937,
0.0181847047,
0.1471750587,
-0.2030317783,
-0.0983985811,
-0.1064852923,
0.0504437238,
-0.2307025492,
-0.1302488893,
0.482693553,
0.4234506488,
0.1074430197,
0.2676041722,
0.1654304862,
-0.1382890493,
-0.2191940099,
-0.2272737771,
-0.1517679989,
-0.2155966312,
0.1276093572,
0.1082276106,
0.1141461357,
0.1075205877,
0.094139114,
-0.29399243,
0.0820913613,
-0.1551929265,
0.0133393127,
-0.2642065585,
0.0743817538,
0.1357635409,
0.121591039,
-0.4070492387,
0.4321895838,
0.0068679284,
0.0536034703,
-0.1758132875,
-0.3169419765,
0.5040283799,
-0.0870553702,
-0.3847105205,
0.3119256198,
0.2451522052,
0.1422898769,
0.0038850899,
-0.3304693997,
-0.1347046942,
0.038281735,
0.0473494865,
-0.2229126394,
0.1495039761,
-0.0536105409,
-0.1715637296,
-0.0246993452,
0.0344610848,
0.1170689315,
-0.3060975075,
0.2864744067,
-0.2321722209
] |
https://github.com/huggingface/datasets/issues/138 | Consider renaming to nld | > If we add the constraint that this flat namespace also be shared with variable names this gets untractable pretty fast :)
I'm sort of confused by your point here. The namespace *is* shared by variable names. You should not use local variables that are named the same as modules, because then you cannot use the module within the scope of your function.
For instance,
```python
import nlp
import transformers
nlp = transformers.pipeline("sentiment-analysis")
```
This is a bug: you've just overwritten the module, so now you can't use it. Or instead:
```python
import transformers
nlp = transformers.pipeline("sentiment-analysis")
# (Later, e.g. in a notebook)
import nlp
```
This is also a bug: you've overwritten your variable with an import.
If you have a module named `nlp`, you should avoid using `nlp` as a variable, or you'll have bugs in some contexts and inconsistencies in other contexts. You'll have situations where you need to import differently in one module vs another, or name variables differently in one context vs another, which is bad.
> importing only the methods that they need like @thomwolf suggested
Okay but the same logic applies to naming the module *literally anything else*. There's absolutely no point in having a module name that's 3 letters if you always plan to do `import from`! It would be entirely better to name it `nlp_datasets` if you don't want people to do `import nlp`.
And finally:
> By the way, nlp will very likely not be only about datasets, and not even just about datasets and metrics.
So...it isn't a datasets library? https://twitter.com/Thom_Wolf/status/1261282491622731781
I'm confused 😕 | Hey :)
Just making a thread here recording what I said on Twitter, as it's impossible to follow discussion there. It's also just really not a good way to talk about this sort of thing.
The issue is that modules go into the global namespace, so you shouldn't use variable names that conflict with module names. This means the package makes `nlp` a bad variable name everywhere in the codebase. I've always used `nlp` as the canonical variable name of spaCy's `Language` objects, and this is a convention that a lot of other code has followed (Stanza, flair, etc). And actually, your `transformers` library uses `nlp` as the name for its `Pipeline` instance in your readme.
If you stick with the `nlp` name for this package, if anyone uses it then they should rewrite all of that code. If `nlp` is a bad choice of variable anywhere, it's a bad choice of variable everywhere --- because you shouldn't have to notice whether some other function uses a module when you're naming variables within a function. You want to have one convention that you can stick to everywhere.
If people use your `nlp` package and continue to use the `nlp` variable name, they'll find themselves with confusing bugs. There will be many many bits of code cut-and-paste from tutorials that give confusing results when combined with the data loading from the `nlp` library. The problem will be especially bad for shadowed modules (people might reasonably have a module named `nlp.py` within their codebase) and notebooks, as people might run notebook cells for data loading out-of-order.
I don't think it's an exaggeration to say that if your library becomes popular, we'll all be answering issues around this about once a week for the next few years. That seems pretty unideal, so I do hope you'll reconsider.
I suggest `nld` as a better name. It more accurately represents what the package actually does. It's pretty unideal to have a package named `nlp` that doesn't do any processing, and contains data about natural language generation or other non-NLP tasks. The name is equally short, and is sort of a visual pun on `nlp`, since a d is a rotated p. | 265 | Consider renaming to nld
Hey :)
Just making a thread here recording what I said on Twitter, as it's impossible to follow discussion there. It's also just really not a good way to talk about this sort of thing.
The issue is that modules go into the global namespace, so you shouldn't use variable names that conflict with module names. This means the package makes `nlp` a bad variable name everywhere in the codebase. I've always used `nlp` as the canonical variable name of spaCy's `Language` objects, and this is a convention that a lot of other code has followed (Stanza, flair, etc). And actually, your `transformers` library uses `nlp` as the name for its `Pipeline` instance in your readme.
If you stick with the `nlp` name for this package, if anyone uses it then they should rewrite all of that code. If `nlp` is a bad choice of variable anywhere, it's a bad choice of variable everywhere --- because you shouldn't have to notice whether some other function uses a module when you're naming variables within a function. You want to have one convention that you can stick to everywhere.
If people use your `nlp` package and continue to use the `nlp` variable name, they'll find themselves with confusing bugs. There will be many many bits of code cut-and-paste from tutorials that give confusing results when combined with the data loading from the `nlp` library. The problem will be especially bad for shadowed modules (people might reasonably have a module named `nlp.py` within their codebase) and notebooks, as people might run notebook cells for data loading out-of-order.
I don't think it's an exaggeration to say that if your library becomes popular, we'll all be answering issues around this about once a week for the next few years. That seems pretty unideal, so I do hope you'll reconsider.
I suggest `nld` as a better name. It more accurately represents what the package actually does. It's pretty unideal to have a package named `nlp` that doesn't do any processing, and contains data about natural language generation or other non-NLP tasks. The name is equally short, and is sort of a visual pun on `nlp`, since a d is a rotated p.
> If we add the constraint that this flat namespace also be shared with variable names this gets untractable pretty fast :)
I'm sort of confused by your point here. The namespace *is* shared by variable names. You should not use local variables that are named the same as modules, because then you cannot use the module within the scope of your function.
For instance,
```python
import nlp
import transformers
nlp = transformers.pipeline("sentiment-analysis")
```
This is a bug: you've just overwritten the module, so now you can't use it. Or instead:
```python
import transformers
nlp = transformers.pipeline("sentiment-analysis")
# (Later, e.g. in a notebook)
import nlp
```
This is also a bug: you've overwritten your variable with an import.
If you have a module named `nlp`, you should avoid using `nlp` as a variable, or you'll have bugs in some contexts and inconsistencies in other contexts. You'll have situations where you need to import differently in one module vs another, or name variables differently in one context vs another, which is bad.
> importing only the methods that they need like @thomwolf suggested
Okay but the same logic applies to naming the module *literally anything else*. There's absolutely no point in having a module name that's 3 letters if you always plan to do `import from`! It would be entirely better to name it `nlp_datasets` if you don't want people to do `import nlp`.
And finally:
> By the way, nlp will very likely not be only about datasets, and not even just about datasets and metrics.
So...it isn't a datasets library? https://twitter.com/Thom_Wolf/status/1261282491622731781
I'm confused 😕 | [
0.3546045423,
0.0250588749,
-0.0843050182,
-0.3304427564,
0.1876238436,
-0.236012876,
0.28185305,
0.2058826387,
-0.1652064472,
0.0582918562,
0.2198298872,
0.2940490246,
-0.3030350804,
0.124629885,
0.3023299575,
-0.2793754339,
0.208622247,
0.0491359942,
0.163286671,
-0.12861453,
-0.1061516404,
0.1799215823,
0.1566793174,
0.4202882648,
0.0016417105,
0.0405684784,
0.2510457635,
-0.1025931761,
0.0196671635,
-0.3666578829,
0.0917975232,
0.3173363805,
-0.0723684505,
0.0078899302,
-0.000103016,
-0.1667027324,
0.5983601809,
-0.0208174679,
-0.1951323301,
-0.2738524079,
0.349458456,
-0.4347409606,
0.0873835906,
-0.5374495387,
0.1049490124,
0.2493642569,
0.1611561775,
-0.276920408,
0.172302261,
-0.0842129886,
0.2791434824,
-0.0322702117,
-0.2336920351,
0.2664331794,
-0.0823111087,
0.1612643898,
-0.1856751591,
-0.1456343532,
0.1019585207,
-0.0416523814,
0.0535839908,
0.2429708838,
-0.1371390074,
0.0111302752,
0.4416790009,
0.1220084205,
0.3055425286,
0.0429872759,
-0.0890985131,
0.1462108791,
0.0160025489,
-0.3755002618,
-0.2275757641,
-0.1618047655,
0.0141654378,
-0.4211738706,
0.0508646294,
-0.0911910534,
-0.0744972825,
-0.0652685389,
0.3642607033,
-0.1167292595,
0.0555222332,
0.1869731098,
0.0563991144,
0.6406508088,
0.1287475675,
0.1855204552,
0.0186786726,
-0.2868245244,
0.1609269083,
0.171697408,
0.204897508,
0.0659399852,
0.1589836627,
-0.1076444536,
0.0360815637,
-0.0260849074,
-0.1019778028,
-0.0282881055,
-0.0157897808,
-0.0529253818,
0.1841490716,
-0.1026074737,
-0.0229199026,
-0.0395879969,
0.2494287044,
0.0680685639,
0.3340998292,
0.0483053438,
0.1616840214,
0.0051701008,
-0.0170283411,
0.113665022,
0.0018839892,
0.0539526232,
0.1125139669,
0.0556236021,
0.0231455527,
-0.0699976906,
0.1393642128,
-0.0318879411,
0.01228166,
0.2282055318,
0.0296435487,
0.4047166705,
0.1179115772,
-0.0512217507,
-0.0545106903,
0.0529051386,
-0.1768298298,
-0.0293127224,
-0.5875115991,
0.1920244396,
-0.0093171773,
0.5461201668,
0.3421473801,
-0.2364342809,
-0.1096443385,
0.0759178028,
-0.0507353917,
0.1224970073,
-0.035852395,
-0.0496277586,
-0.434293896,
0.1021535024,
-0.2238203585,
-0.3176432252,
-0.2762624025,
0.1289541274,
-0.2020070255,
0.093801558,
-0.1377501339,
0.302326262,
-0.285153389,
-0.0645211786,
0.4819486439,
0.1596667022,
0.1319607347,
-0.2455683649,
0.1019593477,
-0.0245485827,
0.1727489382,
-0.1681720912,
-0.2812473476,
0.0770908967,
0.1417668164,
-0.4519436359,
-0.563080132,
0.071245715,
0.3810741603,
0.0145661095,
-0.168133527,
-0.0279530082,
0.1246095598,
0.0463551097,
0.5702140331,
-0.377081275,
-0.1004940867,
0.1108656973,
-0.2571688294,
-0.1666594744,
0.0733328685,
0.172489956,
-0.0463333689,
-0.178151533,
0.2236124426,
0.4268015027,
0.1682260633,
0.1578954905,
-0.2671320438,
-0.1424055547,
0.3670619726,
0.020118827,
0.0713864565,
0.145018518,
-0.2018316686,
0.7421376109,
0.1609520614,
0.0481396988,
0.0549912527,
0.1300475299,
-0.0001047579,
0.2264645696,
0.0527036749,
-0.0485745184,
-0.2530001998,
-0.1717444062,
-0.3851438761,
0.2766964734,
-0.140701592,
-0.3179915845,
-0.0011529273,
-0.0611751825,
0.0840613469,
-0.2455077916,
0.314219296,
0.1664158404,
-0.0728964657,
-0.1845241189,
-0.3374125659,
0.2081884295,
0.1162086502,
0.0268576704,
-0.1347389817,
0.0125923324,
-0.0472035334,
-0.1227352098,
-0.0485320054,
0.4621074498,
0.0617955811,
0.0230287928,
-0.0187293049,
0.1212336943,
-0.0920707658,
-0.1717240959,
-0.1780797988,
0.3527117372,
0.1953413039,
0.0335728228,
0.1522720009,
0.2178539038,
0.00523917,
0.0609578341,
0.165421322,
0.0910021365,
-0.2310309857,
0.1728600115,
0.1610241234,
-0.1268762946,
0.2499849647,
-0.3104696572,
-0.3951841295,
-0.159494251,
0.2015538216,
-0.174465552,
0.3688203394,
0.2622096837,
-0.0718517005,
-0.0054821004,
0.7487165332,
-0.1023490727,
-0.0018589926,
0.0346929245,
0.0061897417,
0.0344389826,
-0.0982623473,
0.4255808592,
0.3692653775,
0.2573753297,
-0.2147238255,
0.0731224641,
-0.1584897041,
-0.23952429,
0.1479514986,
0.2729808688,
-0.0210607387,
-0.0159717128,
0.0722969398,
-0.0208247155,
-0.144223392,
-0.3758422732,
0.1088094786,
0.0435102955,
0.1615841091,
0.1969147772,
-0.2253729254,
-0.3355082572,
-0.3560677767,
-0.1077125445,
-0.5679334998,
-0.2122839987,
0.0389433429,
-0.3195095062,
-0.3220553696,
0.1848625392,
0.0278039724,
0.0538056381,
-0.3259669244,
-0.4077161849,
-0.2541847825,
-0.2610701621,
-0.2709333003,
0.1013535261,
-0.0553873442,
0.1212052479,
0.3438510895,
0.0752661079,
0.0450470224,
0.0797969028,
-0.4759515226,
0.019988196,
-0.0811675116,
0.2733126879,
0.2104488313,
-0.0825032741,
0.1517145932,
-0.466009289,
0.1668879986,
-0.2525930703,
0.1693016589,
0.0579312257,
0.1528622806,
-0.0486337692,
-0.3818203509,
-0.2003627717,
-0.4499172866,
-0.4317989051,
-0.1190715507,
-0.0393394046,
0.0792103261,
0.4727208912,
-0.575881958,
-0.0751318485,
0.1555480808,
0.2960142791,
-0.1504532844,
0.3245943785,
-0.0218336694,
-0.1896304786,
0.0030148681,
-0.37011832,
-0.4601127207,
0.5443203449,
-0.0602090955,
0.0033653879,
0.0939405188,
0.0620013997,
-0.1237866431,
0.2940616012,
-0.1174600795,
0.3699583709,
0.3588147163,
-0.1884727031,
-0.0632569268,
-0.1866521686,
0.1633794755,
-0.0045338394,
0.3885164857,
0.1221950203,
-0.1400720179,
-0.0451744832,
0.0210367367,
-0.2248966545,
-0.0801915824,
0.2310663462,
0.3564609885,
0.0327313878,
-0.0163829383,
-0.1170816869,
0.0942938104,
0.1725270003,
-0.1195731983,
0.2910574377,
-0.0843761191,
-0.2946410775,
-0.0038448521,
0.2169433534,
-0.1007226482,
-0.250341922,
0.1929997206,
0.0891835615,
0.2827474773,
0.1753284037,
-0.1619337052,
-0.1459892392,
-0.3150653243,
0.1284447163,
0.2256353199,
-0.2269298136,
0.0859745368,
-0.5130317211,
-0.3030592203,
-0.0854920298,
-0.0233057719,
-0.0840165988,
0.2252944857,
-0.0976991802,
-0.0682784021,
0.0381608494,
-0.0622194633,
0.1355438381,
0.0053457669,
-0.1475563198,
0.3124497831,
0.22030285,
-0.0112972818,
-0.2311529666,
-0.1663770676,
0.0577341467,
0.2586655021,
0.2246443778,
-0.5831879973,
-0.3143756688,
0.1958585083,
0.0615962222,
-0.1887238324,
-0.2447851002,
-0.4139582515,
-0.2432187796,
-0.2267661244,
-0.207563743,
-0.132857278,
0.3199290633,
0.0897642821,
0.0595341325,
0.1999860555,
-0.2511615455,
0.220259726,
0.1723578125,
0.1237166226,
0.0274909399,
-0.1680527031,
-0.0923232362,
0.2246273458,
-0.5235324502,
0.04502289,
-0.0399270318,
-0.0523350649,
-0.1777236164,
0.0533364825,
0.3100292683,
0.3402794003,
0.090030022,
0.2383214086,
-0.1819753796,
0.0640585646,
-0.0300180912,
0.2332524806,
0.1558600515,
0.0364177525,
-0.2073985338,
-0.4303264618,
0.2744524479,
0.2052862048,
-0.259929955,
-0.0256310366,
0.0207748171,
-0.3804276884,
0.5902325511,
0.1180908233,
1.0089895725,
-0.0025152152,
0.2391271591,
0.0166735742,
0.0414850973,
0.7351971865,
-0.2273073792,
0.0742216036,
-0.2871638536,
0.4338241816,
0.2762081623,
0.0291308649,
0.189319104,
0.1501967609,
-0.2432341725,
0.4527545273,
0.2205491513,
-0.3383808136,
0.0835848525,
0.4536226094,
0.1656157523,
-0.3907469809,
-0.1250924915,
0.1206354648,
-0.4738860726,
0.2193239927,
-0.1599497199,
-0.2089595348,
-0.1138748378,
-0.1106684431,
0.0419252664,
-0.0078130746,
-0.0255670156,
0.1110909358,
-0.1030503958,
0.1334173679,
-0.1465841979,
-0.2319065034,
0.3092883229,
0.445115447,
-0.041815795,
0.0672229975,
-0.2529368401,
0.0395185426,
0.1476796716,
0.2119449973,
0.3646719456,
-0.1735545099,
-0.1169806495,
-0.1212966368,
0.0693862438,
-0.0816582441,
-0.3511217833,
-0.1439374685,
0.3010073602,
-0.1273348182,
-0.0553539842,
0.2697060406,
-0.2059503496,
-0.0515001751,
0.2535748482,
0.1286809742,
-0.2365042567,
0.152215451,
0.2154998183,
-0.1379987299,
-0.0277185943,
-0.2845082283,
0.2966325283,
-0.262899071,
-0.0141334934,
-0.2800218761,
-0.1900841892,
-0.1783280522,
-0.2144163698,
-0.4408951104,
-0.2746848464,
0.2680206001,
0.3854090571,
-0.6574809551,
-0.1242856532,
-0.0738775879,
0.1040908322,
0.2993980944,
-0.3066924512,
-0.0836873278,
-0.2827759683,
0.4450171888,
-0.1112830788,
-0.0271211863,
0.0508927442,
0.6008218527,
-0.0077931653,
0.0307249986,
-0.411422044,
-0.2275702357,
-0.2836340368,
0.3503586948,
0.0242581256,
-0.406062156,
-0.2008110285,
0.1526447535,
0.1956526786,
0.0458801873,
-0.176434055,
-0.283590138,
-0.318883121,
0.1050616875,
0.0745702386,
0.1342766136,
0.0811202675,
-0.1392993629,
0.2841312885,
-0.0353496261,
-0.1470666826,
-0.078591831,
0.1584582329,
0.6412720084,
0.1998636276,
0.2127103209,
0.2033686042,
0.1251463741,
-0.0351963565,
0.2976450622,
0.0217047893,
0.2803504467,
0.0442091338,
-0.06221902,
-0.2232206911,
-0.14201729,
-0.2373427302,
0.3103161156,
0.01001509,
-0.1164273843,
-0.1670697927,
0.0692104846,
-0.036886435,
0.3586560488,
-0.1238266528,
-0.2624822855,
0.2713676989,
0.296916008,
-0.3307809234,
-0.0596150011,
-0.0284346528,
0.0032088428,
0.1284837723,
0.2637522817,
0.0675551519,
-0.083330743,
0.2330915928,
-0.0484738536,
0.403193891,
-0.3050515354,
0.0193954594,
0.1950926036,
0.0151601965,
0.1632584184,
0.3058250248,
0.0028247226,
0.0275519397,
0.3956400454,
0.1797771901,
0.1889588684,
0.361271143,
0.1213435531,
0.1256160289,
0.5455905795,
-0.229820177,
0.1712247282,
0.412938714,
0.3619436324,
0.1206743568,
-0.327588588,
0.0675621629,
-0.2218263149,
0.0876740441,
0.127533555,
-0.1785113811,
-0.2183449715,
0.200701952,
0.3497122526,
-0.4002244771,
-0.1088246033,
-0.0759373531,
-0.0582729168,
0.009368876,
0.0185794849,
0.0791207477,
-0.1426203996,
0.0956058055,
-0.0189037658,
0.1617903858,
-0.1936127543,
0.0031985175,
0.0838393271,
0.1933109015,
-0.058198601,
0.0555201396,
-0.0990939885,
0.086652495,
-0.2270683795,
-0.0916605443,
-0.2489610314,
0.0196249206,
-0.2773870826,
0.2346079051,
0.4263951182,
0.5700037479,
0.1071949974,
0.1036821231,
-0.2625008523,
-0.1466623843,
0.2125215977,
-0.3936909437,
-0.0943322107,
0.8848913312,
0.2048434764,
-0.1527254879,
-0.2799519598,
0.177399084,
-0.7367966175,
0.0776504427,
0.2374967486,
0.1197137535,
-0.0409560539,
-0.4269068837,
0.1364693046,
0.1251664013,
0.2762802243,
-0.0520890094,
0.412468195,
-0.0601217113,
-0.0616205074,
-0.4459727705,
0.0975325406,
-0.0362374373,
0.162829265,
0.0209498443,
-0.1065493301,
-0.0380696058,
0.0391868614,
-0.2933573425,
0.3067793548,
-0.3621274531,
-0.3427153826,
-0.245803684,
0.0772687495,
0.0146662937,
0.0181847047,
0.1471750587,
-0.2030317783,
-0.0983985811,
-0.1064852923,
0.0504437238,
-0.2307025492,
-0.1302488893,
0.482693553,
0.4234506488,
0.1074430197,
0.2676041722,
0.1654304862,
-0.1382890493,
-0.2191940099,
-0.2272737771,
-0.1517679989,
-0.2155966312,
0.1276093572,
0.1082276106,
0.1141461357,
0.1075205877,
0.094139114,
-0.29399243,
0.0820913613,
-0.1551929265,
0.0133393127,
-0.2642065585,
0.0743817538,
0.1357635409,
0.121591039,
-0.4070492387,
0.4321895838,
0.0068679284,
0.0536034703,
-0.1758132875,
-0.3169419765,
0.5040283799,
-0.0870553702,
-0.3847105205,
0.3119256198,
0.2451522052,
0.1422898769,
0.0038850899,
-0.3304693997,
-0.1347046942,
0.038281735,
0.0473494865,
-0.2229126394,
0.1495039761,
-0.0536105409,
-0.1715637296,
-0.0246993452,
0.0344610848,
0.1170689315,
-0.3060975075,
0.2864744067,
-0.2321722209
] |
https://github.com/huggingface/datasets/issues/138 | Consider renaming to nld | Dropping by as I noticed that the library has been renamed `datasets` so I wonder if the conversation above is settled (`nlp` not used anymore) :) | Hey :)
Just making a thread here recording what I said on Twitter, as it's impossible to follow discussion there. It's also just really not a good way to talk about this sort of thing.
The issue is that modules go into the global namespace, so you shouldn't use variable names that conflict with module names. This means the package makes `nlp` a bad variable name everywhere in the codebase. I've always used `nlp` as the canonical variable name of spaCy's `Language` objects, and this is a convention that a lot of other code has followed (Stanza, flair, etc). And actually, your `transformers` library uses `nlp` as the name for its `Pipeline` instance in your readme.
If you stick with the `nlp` name for this package, if anyone uses it then they should rewrite all of that code. If `nlp` is a bad choice of variable anywhere, it's a bad choice of variable everywhere --- because you shouldn't have to notice whether some other function uses a module when you're naming variables within a function. You want to have one convention that you can stick to everywhere.
If people use your `nlp` package and continue to use the `nlp` variable name, they'll find themselves with confusing bugs. There will be many many bits of code cut-and-paste from tutorials that give confusing results when combined with the data loading from the `nlp` library. The problem will be especially bad for shadowed modules (people might reasonably have a module named `nlp.py` within their codebase) and notebooks, as people might run notebook cells for data loading out-of-order.
I don't think it's an exaggeration to say that if your library becomes popular, we'll all be answering issues around this about once a week for the next few years. That seems pretty unideal, so I do hope you'll reconsider.
I suggest `nld` as a better name. It more accurately represents what the package actually does. It's pretty unideal to have a package named `nlp` that doesn't do any processing, and contains data about natural language generation or other non-NLP tasks. The name is equally short, and is sort of a visual pun on `nlp`, since a d is a rotated p. | 26 | Consider renaming to nld
Hey :)
Just making a thread here recording what I said on Twitter, as it's impossible to follow discussion there. It's also just really not a good way to talk about this sort of thing.
The issue is that modules go into the global namespace, so you shouldn't use variable names that conflict with module names. This means the package makes `nlp` a bad variable name everywhere in the codebase. I've always used `nlp` as the canonical variable name of spaCy's `Language` objects, and this is a convention that a lot of other code has followed (Stanza, flair, etc). And actually, your `transformers` library uses `nlp` as the name for its `Pipeline` instance in your readme.
If you stick with the `nlp` name for this package, if anyone uses it then they should rewrite all of that code. If `nlp` is a bad choice of variable anywhere, it's a bad choice of variable everywhere --- because you shouldn't have to notice whether some other function uses a module when you're naming variables within a function. You want to have one convention that you can stick to everywhere.
If people use your `nlp` package and continue to use the `nlp` variable name, they'll find themselves with confusing bugs. There will be many many bits of code cut-and-paste from tutorials that give confusing results when combined with the data loading from the `nlp` library. The problem will be especially bad for shadowed modules (people might reasonably have a module named `nlp.py` within their codebase) and notebooks, as people might run notebook cells for data loading out-of-order.
I don't think it's an exaggeration to say that if your library becomes popular, we'll all be answering issues around this about once a week for the next few years. That seems pretty unideal, so I do hope you'll reconsider.
I suggest `nld` as a better name. It more accurately represents what the package actually does. It's pretty unideal to have a package named `nlp` that doesn't do any processing, and contains data about natural language generation or other non-NLP tasks. The name is equally short, and is sort of a visual pun on `nlp`, since a d is a rotated p.
Dropping by as I noticed that the library has been renamed `datasets` so I wonder if the conversation above is settled (`nlp` not used anymore) :) | [
0.3546045423,
0.0250588749,
-0.0843050182,
-0.3304427564,
0.1876238436,
-0.236012876,
0.28185305,
0.2058826387,
-0.1652064472,
0.0582918562,
0.2198298872,
0.2940490246,
-0.3030350804,
0.124629885,
0.3023299575,
-0.2793754339,
0.208622247,
0.0491359942,
0.163286671,
-0.12861453,
-0.1061516404,
0.1799215823,
0.1566793174,
0.4202882648,
0.0016417105,
0.0405684784,
0.2510457635,
-0.1025931761,
0.0196671635,
-0.3666578829,
0.0917975232,
0.3173363805,
-0.0723684505,
0.0078899302,
-0.000103016,
-0.1667027324,
0.5983601809,
-0.0208174679,
-0.1951323301,
-0.2738524079,
0.349458456,
-0.4347409606,
0.0873835906,
-0.5374495387,
0.1049490124,
0.2493642569,
0.1611561775,
-0.276920408,
0.172302261,
-0.0842129886,
0.2791434824,
-0.0322702117,
-0.2336920351,
0.2664331794,
-0.0823111087,
0.1612643898,
-0.1856751591,
-0.1456343532,
0.1019585207,
-0.0416523814,
0.0535839908,
0.2429708838,
-0.1371390074,
0.0111302752,
0.4416790009,
0.1220084205,
0.3055425286,
0.0429872759,
-0.0890985131,
0.1462108791,
0.0160025489,
-0.3755002618,
-0.2275757641,
-0.1618047655,
0.0141654378,
-0.4211738706,
0.0508646294,
-0.0911910534,
-0.0744972825,
-0.0652685389,
0.3642607033,
-0.1167292595,
0.0555222332,
0.1869731098,
0.0563991144,
0.6406508088,
0.1287475675,
0.1855204552,
0.0186786726,
-0.2868245244,
0.1609269083,
0.171697408,
0.204897508,
0.0659399852,
0.1589836627,
-0.1076444536,
0.0360815637,
-0.0260849074,
-0.1019778028,
-0.0282881055,
-0.0157897808,
-0.0529253818,
0.1841490716,
-0.1026074737,
-0.0229199026,
-0.0395879969,
0.2494287044,
0.0680685639,
0.3340998292,
0.0483053438,
0.1616840214,
0.0051701008,
-0.0170283411,
0.113665022,
0.0018839892,
0.0539526232,
0.1125139669,
0.0556236021,
0.0231455527,
-0.0699976906,
0.1393642128,
-0.0318879411,
0.01228166,
0.2282055318,
0.0296435487,
0.4047166705,
0.1179115772,
-0.0512217507,
-0.0545106903,
0.0529051386,
-0.1768298298,
-0.0293127224,
-0.5875115991,
0.1920244396,
-0.0093171773,
0.5461201668,
0.3421473801,
-0.2364342809,
-0.1096443385,
0.0759178028,
-0.0507353917,
0.1224970073,
-0.035852395,
-0.0496277586,
-0.434293896,
0.1021535024,
-0.2238203585,
-0.3176432252,
-0.2762624025,
0.1289541274,
-0.2020070255,
0.093801558,
-0.1377501339,
0.302326262,
-0.285153389,
-0.0645211786,
0.4819486439,
0.1596667022,
0.1319607347,
-0.2455683649,
0.1019593477,
-0.0245485827,
0.1727489382,
-0.1681720912,
-0.2812473476,
0.0770908967,
0.1417668164,
-0.4519436359,
-0.563080132,
0.071245715,
0.3810741603,
0.0145661095,
-0.168133527,
-0.0279530082,
0.1246095598,
0.0463551097,
0.5702140331,
-0.377081275,
-0.1004940867,
0.1108656973,
-0.2571688294,
-0.1666594744,
0.0733328685,
0.172489956,
-0.0463333689,
-0.178151533,
0.2236124426,
0.4268015027,
0.1682260633,
0.1578954905,
-0.2671320438,
-0.1424055547,
0.3670619726,
0.020118827,
0.0713864565,
0.145018518,
-0.2018316686,
0.7421376109,
0.1609520614,
0.0481396988,
0.0549912527,
0.1300475299,
-0.0001047579,
0.2264645696,
0.0527036749,
-0.0485745184,
-0.2530001998,
-0.1717444062,
-0.3851438761,
0.2766964734,
-0.140701592,
-0.3179915845,
-0.0011529273,
-0.0611751825,
0.0840613469,
-0.2455077916,
0.314219296,
0.1664158404,
-0.0728964657,
-0.1845241189,
-0.3374125659,
0.2081884295,
0.1162086502,
0.0268576704,
-0.1347389817,
0.0125923324,
-0.0472035334,
-0.1227352098,
-0.0485320054,
0.4621074498,
0.0617955811,
0.0230287928,
-0.0187293049,
0.1212336943,
-0.0920707658,
-0.1717240959,
-0.1780797988,
0.3527117372,
0.1953413039,
0.0335728228,
0.1522720009,
0.2178539038,
0.00523917,
0.0609578341,
0.165421322,
0.0910021365,
-0.2310309857,
0.1728600115,
0.1610241234,
-0.1268762946,
0.2499849647,
-0.3104696572,
-0.3951841295,
-0.159494251,
0.2015538216,
-0.174465552,
0.3688203394,
0.2622096837,
-0.0718517005,
-0.0054821004,
0.7487165332,
-0.1023490727,
-0.0018589926,
0.0346929245,
0.0061897417,
0.0344389826,
-0.0982623473,
0.4255808592,
0.3692653775,
0.2573753297,
-0.2147238255,
0.0731224641,
-0.1584897041,
-0.23952429,
0.1479514986,
0.2729808688,
-0.0210607387,
-0.0159717128,
0.0722969398,
-0.0208247155,
-0.144223392,
-0.3758422732,
0.1088094786,
0.0435102955,
0.1615841091,
0.1969147772,
-0.2253729254,
-0.3355082572,
-0.3560677767,
-0.1077125445,
-0.5679334998,
-0.2122839987,
0.0389433429,
-0.3195095062,
-0.3220553696,
0.1848625392,
0.0278039724,
0.0538056381,
-0.3259669244,
-0.4077161849,
-0.2541847825,
-0.2610701621,
-0.2709333003,
0.1013535261,
-0.0553873442,
0.1212052479,
0.3438510895,
0.0752661079,
0.0450470224,
0.0797969028,
-0.4759515226,
0.019988196,
-0.0811675116,
0.2733126879,
0.2104488313,
-0.0825032741,
0.1517145932,
-0.466009289,
0.1668879986,
-0.2525930703,
0.1693016589,
0.0579312257,
0.1528622806,
-0.0486337692,
-0.3818203509,
-0.2003627717,
-0.4499172866,
-0.4317989051,
-0.1190715507,
-0.0393394046,
0.0792103261,
0.4727208912,
-0.575881958,
-0.0751318485,
0.1555480808,
0.2960142791,
-0.1504532844,
0.3245943785,
-0.0218336694,
-0.1896304786,
0.0030148681,
-0.37011832,
-0.4601127207,
0.5443203449,
-0.0602090955,
0.0033653879,
0.0939405188,
0.0620013997,
-0.1237866431,
0.2940616012,
-0.1174600795,
0.3699583709,
0.3588147163,
-0.1884727031,
-0.0632569268,
-0.1866521686,
0.1633794755,
-0.0045338394,
0.3885164857,
0.1221950203,
-0.1400720179,
-0.0451744832,
0.0210367367,
-0.2248966545,
-0.0801915824,
0.2310663462,
0.3564609885,
0.0327313878,
-0.0163829383,
-0.1170816869,
0.0942938104,
0.1725270003,
-0.1195731983,
0.2910574377,
-0.0843761191,
-0.2946410775,
-0.0038448521,
0.2169433534,
-0.1007226482,
-0.250341922,
0.1929997206,
0.0891835615,
0.2827474773,
0.1753284037,
-0.1619337052,
-0.1459892392,
-0.3150653243,
0.1284447163,
0.2256353199,
-0.2269298136,
0.0859745368,
-0.5130317211,
-0.3030592203,
-0.0854920298,
-0.0233057719,
-0.0840165988,
0.2252944857,
-0.0976991802,
-0.0682784021,
0.0381608494,
-0.0622194633,
0.1355438381,
0.0053457669,
-0.1475563198,
0.3124497831,
0.22030285,
-0.0112972818,
-0.2311529666,
-0.1663770676,
0.0577341467,
0.2586655021,
0.2246443778,
-0.5831879973,
-0.3143756688,
0.1958585083,
0.0615962222,
-0.1887238324,
-0.2447851002,
-0.4139582515,
-0.2432187796,
-0.2267661244,
-0.207563743,
-0.132857278,
0.3199290633,
0.0897642821,
0.0595341325,
0.1999860555,
-0.2511615455,
0.220259726,
0.1723578125,
0.1237166226,
0.0274909399,
-0.1680527031,
-0.0923232362,
0.2246273458,
-0.5235324502,
0.04502289,
-0.0399270318,
-0.0523350649,
-0.1777236164,
0.0533364825,
0.3100292683,
0.3402794003,
0.090030022,
0.2383214086,
-0.1819753796,
0.0640585646,
-0.0300180912,
0.2332524806,
0.1558600515,
0.0364177525,
-0.2073985338,
-0.4303264618,
0.2744524479,
0.2052862048,
-0.259929955,
-0.0256310366,
0.0207748171,
-0.3804276884,
0.5902325511,
0.1180908233,
1.0089895725,
-0.0025152152,
0.2391271591,
0.0166735742,
0.0414850973,
0.7351971865,
-0.2273073792,
0.0742216036,
-0.2871638536,
0.4338241816,
0.2762081623,
0.0291308649,
0.189319104,
0.1501967609,
-0.2432341725,
0.4527545273,
0.2205491513,
-0.3383808136,
0.0835848525,
0.4536226094,
0.1656157523,
-0.3907469809,
-0.1250924915,
0.1206354648,
-0.4738860726,
0.2193239927,
-0.1599497199,
-0.2089595348,
-0.1138748378,
-0.1106684431,
0.0419252664,
-0.0078130746,
-0.0255670156,
0.1110909358,
-0.1030503958,
0.1334173679,
-0.1465841979,
-0.2319065034,
0.3092883229,
0.445115447,
-0.041815795,
0.0672229975,
-0.2529368401,
0.0395185426,
0.1476796716,
0.2119449973,
0.3646719456,
-0.1735545099,
-0.1169806495,
-0.1212966368,
0.0693862438,
-0.0816582441,
-0.3511217833,
-0.1439374685,
0.3010073602,
-0.1273348182,
-0.0553539842,
0.2697060406,
-0.2059503496,
-0.0515001751,
0.2535748482,
0.1286809742,
-0.2365042567,
0.152215451,
0.2154998183,
-0.1379987299,
-0.0277185943,
-0.2845082283,
0.2966325283,
-0.262899071,
-0.0141334934,
-0.2800218761,
-0.1900841892,
-0.1783280522,
-0.2144163698,
-0.4408951104,
-0.2746848464,
0.2680206001,
0.3854090571,
-0.6574809551,
-0.1242856532,
-0.0738775879,
0.1040908322,
0.2993980944,
-0.3066924512,
-0.0836873278,
-0.2827759683,
0.4450171888,
-0.1112830788,
-0.0271211863,
0.0508927442,
0.6008218527,
-0.0077931653,
0.0307249986,
-0.411422044,
-0.2275702357,
-0.2836340368,
0.3503586948,
0.0242581256,
-0.406062156,
-0.2008110285,
0.1526447535,
0.1956526786,
0.0458801873,
-0.176434055,
-0.283590138,
-0.318883121,
0.1050616875,
0.0745702386,
0.1342766136,
0.0811202675,
-0.1392993629,
0.2841312885,
-0.0353496261,
-0.1470666826,
-0.078591831,
0.1584582329,
0.6412720084,
0.1998636276,
0.2127103209,
0.2033686042,
0.1251463741,
-0.0351963565,
0.2976450622,
0.0217047893,
0.2803504467,
0.0442091338,
-0.06221902,
-0.2232206911,
-0.14201729,
-0.2373427302,
0.3103161156,
0.01001509,
-0.1164273843,
-0.1670697927,
0.0692104846,
-0.036886435,
0.3586560488,
-0.1238266528,
-0.2624822855,
0.2713676989,
0.296916008,
-0.3307809234,
-0.0596150011,
-0.0284346528,
0.0032088428,
0.1284837723,
0.2637522817,
0.0675551519,
-0.083330743,
0.2330915928,
-0.0484738536,
0.403193891,
-0.3050515354,
0.0193954594,
0.1950926036,
0.0151601965,
0.1632584184,
0.3058250248,
0.0028247226,
0.0275519397,
0.3956400454,
0.1797771901,
0.1889588684,
0.361271143,
0.1213435531,
0.1256160289,
0.5455905795,
-0.229820177,
0.1712247282,
0.412938714,
0.3619436324,
0.1206743568,
-0.327588588,
0.0675621629,
-0.2218263149,
0.0876740441,
0.127533555,
-0.1785113811,
-0.2183449715,
0.200701952,
0.3497122526,
-0.4002244771,
-0.1088246033,
-0.0759373531,
-0.0582729168,
0.009368876,
0.0185794849,
0.0791207477,
-0.1426203996,
0.0956058055,
-0.0189037658,
0.1617903858,
-0.1936127543,
0.0031985175,
0.0838393271,
0.1933109015,
-0.058198601,
0.0555201396,
-0.0990939885,
0.086652495,
-0.2270683795,
-0.0916605443,
-0.2489610314,
0.0196249206,
-0.2773870826,
0.2346079051,
0.4263951182,
0.5700037479,
0.1071949974,
0.1036821231,
-0.2625008523,
-0.1466623843,
0.2125215977,
-0.3936909437,
-0.0943322107,
0.8848913312,
0.2048434764,
-0.1527254879,
-0.2799519598,
0.177399084,
-0.7367966175,
0.0776504427,
0.2374967486,
0.1197137535,
-0.0409560539,
-0.4269068837,
0.1364693046,
0.1251664013,
0.2762802243,
-0.0520890094,
0.412468195,
-0.0601217113,
-0.0616205074,
-0.4459727705,
0.0975325406,
-0.0362374373,
0.162829265,
0.0209498443,
-0.1065493301,
-0.0380696058,
0.0391868614,
-0.2933573425,
0.3067793548,
-0.3621274531,
-0.3427153826,
-0.245803684,
0.0772687495,
0.0146662937,
0.0181847047,
0.1471750587,
-0.2030317783,
-0.0983985811,
-0.1064852923,
0.0504437238,
-0.2307025492,
-0.1302488893,
0.482693553,
0.4234506488,
0.1074430197,
0.2676041722,
0.1654304862,
-0.1382890493,
-0.2191940099,
-0.2272737771,
-0.1517679989,
-0.2155966312,
0.1276093572,
0.1082276106,
0.1141461357,
0.1075205877,
0.094139114,
-0.29399243,
0.0820913613,
-0.1551929265,
0.0133393127,
-0.2642065585,
0.0743817538,
0.1357635409,
0.121591039,
-0.4070492387,
0.4321895838,
0.0068679284,
0.0536034703,
-0.1758132875,
-0.3169419765,
0.5040283799,
-0.0870553702,
-0.3847105205,
0.3119256198,
0.2451522052,
0.1422898769,
0.0038850899,
-0.3304693997,
-0.1347046942,
0.038281735,
0.0473494865,
-0.2229126394,
0.1495039761,
-0.0536105409,
-0.1715637296,
-0.0246993452,
0.0344610848,
0.1170689315,
-0.3060975075,
0.2864744067,
-0.2321722209
] |
https://github.com/huggingface/datasets/issues/138 | Consider renaming to nld | I'd argue that `datasets` is worse than `nlp`. Datasets should be a user specific decision and not encapsulate all of python (`pip install datasets`). If this package contained every dataset in the world (NLP / vision / etc) then it would make sense =/ | Hey :)
Just making a thread here recording what I said on Twitter, as it's impossible to follow discussion there. It's also just really not a good way to talk about this sort of thing.
The issue is that modules go into the global namespace, so you shouldn't use variable names that conflict with module names. This means the package makes `nlp` a bad variable name everywhere in the codebase. I've always used `nlp` as the canonical variable name of spaCy's `Language` objects, and this is a convention that a lot of other code has followed (Stanza, flair, etc). And actually, your `transformers` library uses `nlp` as the name for its `Pipeline` instance in your readme.
If you stick with the `nlp` name for this package, if anyone uses it then they should rewrite all of that code. If `nlp` is a bad choice of variable anywhere, it's a bad choice of variable everywhere --- because you shouldn't have to notice whether some other function uses a module when you're naming variables within a function. You want to have one convention that you can stick to everywhere.
If people use your `nlp` package and continue to use the `nlp` variable name, they'll find themselves with confusing bugs. There will be many many bits of code cut-and-paste from tutorials that give confusing results when combined with the data loading from the `nlp` library. The problem will be especially bad for shadowed modules (people might reasonably have a module named `nlp.py` within their codebase) and notebooks, as people might run notebook cells for data loading out-of-order.
I don't think it's an exaggeration to say that if your library becomes popular, we'll all be answering issues around this about once a week for the next few years. That seems pretty unideal, so I do hope you'll reconsider.
I suggest `nld` as a better name. It more accurately represents what the package actually does. It's pretty unideal to have a package named `nlp` that doesn't do any processing, and contains data about natural language generation or other non-NLP tasks. The name is equally short, and is sort of a visual pun on `nlp`, since a d is a rotated p. | 44 | Consider renaming to nld
Hey :)
Just making a thread here recording what I said on Twitter, as it's impossible to follow discussion there. It's also just really not a good way to talk about this sort of thing.
The issue is that modules go into the global namespace, so you shouldn't use variable names that conflict with module names. This means the package makes `nlp` a bad variable name everywhere in the codebase. I've always used `nlp` as the canonical variable name of spaCy's `Language` objects, and this is a convention that a lot of other code has followed (Stanza, flair, etc). And actually, your `transformers` library uses `nlp` as the name for its `Pipeline` instance in your readme.
If you stick with the `nlp` name for this package, if anyone uses it then they should rewrite all of that code. If `nlp` is a bad choice of variable anywhere, it's a bad choice of variable everywhere --- because you shouldn't have to notice whether some other function uses a module when you're naming variables within a function. You want to have one convention that you can stick to everywhere.
If people use your `nlp` package and continue to use the `nlp` variable name, they'll find themselves with confusing bugs. There will be many many bits of code cut-and-paste from tutorials that give confusing results when combined with the data loading from the `nlp` library. The problem will be especially bad for shadowed modules (people might reasonably have a module named `nlp.py` within their codebase) and notebooks, as people might run notebook cells for data loading out-of-order.
I don't think it's an exaggeration to say that if your library becomes popular, we'll all be answering issues around this about once a week for the next few years. That seems pretty unideal, so I do hope you'll reconsider.
I suggest `nld` as a better name. It more accurately represents what the package actually does. It's pretty unideal to have a package named `nlp` that doesn't do any processing, and contains data about natural language generation or other non-NLP tasks. The name is equally short, and is sort of a visual pun on `nlp`, since a d is a rotated p.
I'd argue that `datasets` is worse than `nlp`. Datasets should be a user specific decision and not encapsulate all of python (`pip install datasets`). If this package contained every dataset in the world (NLP / vision / etc) then it would make sense =/ | [
0.3546045423,
0.0250588749,
-0.0843050182,
-0.3304427564,
0.1876238436,
-0.236012876,
0.28185305,
0.2058826387,
-0.1652064472,
0.0582918562,
0.2198298872,
0.2940490246,
-0.3030350804,
0.124629885,
0.3023299575,
-0.2793754339,
0.208622247,
0.0491359942,
0.163286671,
-0.12861453,
-0.1061516404,
0.1799215823,
0.1566793174,
0.4202882648,
0.0016417105,
0.0405684784,
0.2510457635,
-0.1025931761,
0.0196671635,
-0.3666578829,
0.0917975232,
0.3173363805,
-0.0723684505,
0.0078899302,
-0.000103016,
-0.1667027324,
0.5983601809,
-0.0208174679,
-0.1951323301,
-0.2738524079,
0.349458456,
-0.4347409606,
0.0873835906,
-0.5374495387,
0.1049490124,
0.2493642569,
0.1611561775,
-0.276920408,
0.172302261,
-0.0842129886,
0.2791434824,
-0.0322702117,
-0.2336920351,
0.2664331794,
-0.0823111087,
0.1612643898,
-0.1856751591,
-0.1456343532,
0.1019585207,
-0.0416523814,
0.0535839908,
0.2429708838,
-0.1371390074,
0.0111302752,
0.4416790009,
0.1220084205,
0.3055425286,
0.0429872759,
-0.0890985131,
0.1462108791,
0.0160025489,
-0.3755002618,
-0.2275757641,
-0.1618047655,
0.0141654378,
-0.4211738706,
0.0508646294,
-0.0911910534,
-0.0744972825,
-0.0652685389,
0.3642607033,
-0.1167292595,
0.0555222332,
0.1869731098,
0.0563991144,
0.6406508088,
0.1287475675,
0.1855204552,
0.0186786726,
-0.2868245244,
0.1609269083,
0.171697408,
0.204897508,
0.0659399852,
0.1589836627,
-0.1076444536,
0.0360815637,
-0.0260849074,
-0.1019778028,
-0.0282881055,
-0.0157897808,
-0.0529253818,
0.1841490716,
-0.1026074737,
-0.0229199026,
-0.0395879969,
0.2494287044,
0.0680685639,
0.3340998292,
0.0483053438,
0.1616840214,
0.0051701008,
-0.0170283411,
0.113665022,
0.0018839892,
0.0539526232,
0.1125139669,
0.0556236021,
0.0231455527,
-0.0699976906,
0.1393642128,
-0.0318879411,
0.01228166,
0.2282055318,
0.0296435487,
0.4047166705,
0.1179115772,
-0.0512217507,
-0.0545106903,
0.0529051386,
-0.1768298298,
-0.0293127224,
-0.5875115991,
0.1920244396,
-0.0093171773,
0.5461201668,
0.3421473801,
-0.2364342809,
-0.1096443385,
0.0759178028,
-0.0507353917,
0.1224970073,
-0.035852395,
-0.0496277586,
-0.434293896,
0.1021535024,
-0.2238203585,
-0.3176432252,
-0.2762624025,
0.1289541274,
-0.2020070255,
0.093801558,
-0.1377501339,
0.302326262,
-0.285153389,
-0.0645211786,
0.4819486439,
0.1596667022,
0.1319607347,
-0.2455683649,
0.1019593477,
-0.0245485827,
0.1727489382,
-0.1681720912,
-0.2812473476,
0.0770908967,
0.1417668164,
-0.4519436359,
-0.563080132,
0.071245715,
0.3810741603,
0.0145661095,
-0.168133527,
-0.0279530082,
0.1246095598,
0.0463551097,
0.5702140331,
-0.377081275,
-0.1004940867,
0.1108656973,
-0.2571688294,
-0.1666594744,
0.0733328685,
0.172489956,
-0.0463333689,
-0.178151533,
0.2236124426,
0.4268015027,
0.1682260633,
0.1578954905,
-0.2671320438,
-0.1424055547,
0.3670619726,
0.020118827,
0.0713864565,
0.145018518,
-0.2018316686,
0.7421376109,
0.1609520614,
0.0481396988,
0.0549912527,
0.1300475299,
-0.0001047579,
0.2264645696,
0.0527036749,
-0.0485745184,
-0.2530001998,
-0.1717444062,
-0.3851438761,
0.2766964734,
-0.140701592,
-0.3179915845,
-0.0011529273,
-0.0611751825,
0.0840613469,
-0.2455077916,
0.314219296,
0.1664158404,
-0.0728964657,
-0.1845241189,
-0.3374125659,
0.2081884295,
0.1162086502,
0.0268576704,
-0.1347389817,
0.0125923324,
-0.0472035334,
-0.1227352098,
-0.0485320054,
0.4621074498,
0.0617955811,
0.0230287928,
-0.0187293049,
0.1212336943,
-0.0920707658,
-0.1717240959,
-0.1780797988,
0.3527117372,
0.1953413039,
0.0335728228,
0.1522720009,
0.2178539038,
0.00523917,
0.0609578341,
0.165421322,
0.0910021365,
-0.2310309857,
0.1728600115,
0.1610241234,
-0.1268762946,
0.2499849647,
-0.3104696572,
-0.3951841295,
-0.159494251,
0.2015538216,
-0.174465552,
0.3688203394,
0.2622096837,
-0.0718517005,
-0.0054821004,
0.7487165332,
-0.1023490727,
-0.0018589926,
0.0346929245,
0.0061897417,
0.0344389826,
-0.0982623473,
0.4255808592,
0.3692653775,
0.2573753297,
-0.2147238255,
0.0731224641,
-0.1584897041,
-0.23952429,
0.1479514986,
0.2729808688,
-0.0210607387,
-0.0159717128,
0.0722969398,
-0.0208247155,
-0.144223392,
-0.3758422732,
0.1088094786,
0.0435102955,
0.1615841091,
0.1969147772,
-0.2253729254,
-0.3355082572,
-0.3560677767,
-0.1077125445,
-0.5679334998,
-0.2122839987,
0.0389433429,
-0.3195095062,
-0.3220553696,
0.1848625392,
0.0278039724,
0.0538056381,
-0.3259669244,
-0.4077161849,
-0.2541847825,
-0.2610701621,
-0.2709333003,
0.1013535261,
-0.0553873442,
0.1212052479,
0.3438510895,
0.0752661079,
0.0450470224,
0.0797969028,
-0.4759515226,
0.019988196,
-0.0811675116,
0.2733126879,
0.2104488313,
-0.0825032741,
0.1517145932,
-0.466009289,
0.1668879986,
-0.2525930703,
0.1693016589,
0.0579312257,
0.1528622806,
-0.0486337692,
-0.3818203509,
-0.2003627717,
-0.4499172866,
-0.4317989051,
-0.1190715507,
-0.0393394046,
0.0792103261,
0.4727208912,
-0.575881958,
-0.0751318485,
0.1555480808,
0.2960142791,
-0.1504532844,
0.3245943785,
-0.0218336694,
-0.1896304786,
0.0030148681,
-0.37011832,
-0.4601127207,
0.5443203449,
-0.0602090955,
0.0033653879,
0.0939405188,
0.0620013997,
-0.1237866431,
0.2940616012,
-0.1174600795,
0.3699583709,
0.3588147163,
-0.1884727031,
-0.0632569268,
-0.1866521686,
0.1633794755,
-0.0045338394,
0.3885164857,
0.1221950203,
-0.1400720179,
-0.0451744832,
0.0210367367,
-0.2248966545,
-0.0801915824,
0.2310663462,
0.3564609885,
0.0327313878,
-0.0163829383,
-0.1170816869,
0.0942938104,
0.1725270003,
-0.1195731983,
0.2910574377,
-0.0843761191,
-0.2946410775,
-0.0038448521,
0.2169433534,
-0.1007226482,
-0.250341922,
0.1929997206,
0.0891835615,
0.2827474773,
0.1753284037,
-0.1619337052,
-0.1459892392,
-0.3150653243,
0.1284447163,
0.2256353199,
-0.2269298136,
0.0859745368,
-0.5130317211,
-0.3030592203,
-0.0854920298,
-0.0233057719,
-0.0840165988,
0.2252944857,
-0.0976991802,
-0.0682784021,
0.0381608494,
-0.0622194633,
0.1355438381,
0.0053457669,
-0.1475563198,
0.3124497831,
0.22030285,
-0.0112972818,
-0.2311529666,
-0.1663770676,
0.0577341467,
0.2586655021,
0.2246443778,
-0.5831879973,
-0.3143756688,
0.1958585083,
0.0615962222,
-0.1887238324,
-0.2447851002,
-0.4139582515,
-0.2432187796,
-0.2267661244,
-0.207563743,
-0.132857278,
0.3199290633,
0.0897642821,
0.0595341325,
0.1999860555,
-0.2511615455,
0.220259726,
0.1723578125,
0.1237166226,
0.0274909399,
-0.1680527031,
-0.0923232362,
0.2246273458,
-0.5235324502,
0.04502289,
-0.0399270318,
-0.0523350649,
-0.1777236164,
0.0533364825,
0.3100292683,
0.3402794003,
0.090030022,
0.2383214086,
-0.1819753796,
0.0640585646,
-0.0300180912,
0.2332524806,
0.1558600515,
0.0364177525,
-0.2073985338,
-0.4303264618,
0.2744524479,
0.2052862048,
-0.259929955,
-0.0256310366,
0.0207748171,
-0.3804276884,
0.5902325511,
0.1180908233,
1.0089895725,
-0.0025152152,
0.2391271591,
0.0166735742,
0.0414850973,
0.7351971865,
-0.2273073792,
0.0742216036,
-0.2871638536,
0.4338241816,
0.2762081623,
0.0291308649,
0.189319104,
0.1501967609,
-0.2432341725,
0.4527545273,
0.2205491513,
-0.3383808136,
0.0835848525,
0.4536226094,
0.1656157523,
-0.3907469809,
-0.1250924915,
0.1206354648,
-0.4738860726,
0.2193239927,
-0.1599497199,
-0.2089595348,
-0.1138748378,
-0.1106684431,
0.0419252664,
-0.0078130746,
-0.0255670156,
0.1110909358,
-0.1030503958,
0.1334173679,
-0.1465841979,
-0.2319065034,
0.3092883229,
0.445115447,
-0.041815795,
0.0672229975,
-0.2529368401,
0.0395185426,
0.1476796716,
0.2119449973,
0.3646719456,
-0.1735545099,
-0.1169806495,
-0.1212966368,
0.0693862438,
-0.0816582441,
-0.3511217833,
-0.1439374685,
0.3010073602,
-0.1273348182,
-0.0553539842,
0.2697060406,
-0.2059503496,
-0.0515001751,
0.2535748482,
0.1286809742,
-0.2365042567,
0.152215451,
0.2154998183,
-0.1379987299,
-0.0277185943,
-0.2845082283,
0.2966325283,
-0.262899071,
-0.0141334934,
-0.2800218761,
-0.1900841892,
-0.1783280522,
-0.2144163698,
-0.4408951104,
-0.2746848464,
0.2680206001,
0.3854090571,
-0.6574809551,
-0.1242856532,
-0.0738775879,
0.1040908322,
0.2993980944,
-0.3066924512,
-0.0836873278,
-0.2827759683,
0.4450171888,
-0.1112830788,
-0.0271211863,
0.0508927442,
0.6008218527,
-0.0077931653,
0.0307249986,
-0.411422044,
-0.2275702357,
-0.2836340368,
0.3503586948,
0.0242581256,
-0.406062156,
-0.2008110285,
0.1526447535,
0.1956526786,
0.0458801873,
-0.176434055,
-0.283590138,
-0.318883121,
0.1050616875,
0.0745702386,
0.1342766136,
0.0811202675,
-0.1392993629,
0.2841312885,
-0.0353496261,
-0.1470666826,
-0.078591831,
0.1584582329,
0.6412720084,
0.1998636276,
0.2127103209,
0.2033686042,
0.1251463741,
-0.0351963565,
0.2976450622,
0.0217047893,
0.2803504467,
0.0442091338,
-0.06221902,
-0.2232206911,
-0.14201729,
-0.2373427302,
0.3103161156,
0.01001509,
-0.1164273843,
-0.1670697927,
0.0692104846,
-0.036886435,
0.3586560488,
-0.1238266528,
-0.2624822855,
0.2713676989,
0.296916008,
-0.3307809234,
-0.0596150011,
-0.0284346528,
0.0032088428,
0.1284837723,
0.2637522817,
0.0675551519,
-0.083330743,
0.2330915928,
-0.0484738536,
0.403193891,
-0.3050515354,
0.0193954594,
0.1950926036,
0.0151601965,
0.1632584184,
0.3058250248,
0.0028247226,
0.0275519397,
0.3956400454,
0.1797771901,
0.1889588684,
0.361271143,
0.1213435531,
0.1256160289,
0.5455905795,
-0.229820177,
0.1712247282,
0.412938714,
0.3619436324,
0.1206743568,
-0.327588588,
0.0675621629,
-0.2218263149,
0.0876740441,
0.127533555,
-0.1785113811,
-0.2183449715,
0.200701952,
0.3497122526,
-0.4002244771,
-0.1088246033,
-0.0759373531,
-0.0582729168,
0.009368876,
0.0185794849,
0.0791207477,
-0.1426203996,
0.0956058055,
-0.0189037658,
0.1617903858,
-0.1936127543,
0.0031985175,
0.0838393271,
0.1933109015,
-0.058198601,
0.0555201396,
-0.0990939885,
0.086652495,
-0.2270683795,
-0.0916605443,
-0.2489610314,
0.0196249206,
-0.2773870826,
0.2346079051,
0.4263951182,
0.5700037479,
0.1071949974,
0.1036821231,
-0.2625008523,
-0.1466623843,
0.2125215977,
-0.3936909437,
-0.0943322107,
0.8848913312,
0.2048434764,
-0.1527254879,
-0.2799519598,
0.177399084,
-0.7367966175,
0.0776504427,
0.2374967486,
0.1197137535,
-0.0409560539,
-0.4269068837,
0.1364693046,
0.1251664013,
0.2762802243,
-0.0520890094,
0.412468195,
-0.0601217113,
-0.0616205074,
-0.4459727705,
0.0975325406,
-0.0362374373,
0.162829265,
0.0209498443,
-0.1065493301,
-0.0380696058,
0.0391868614,
-0.2933573425,
0.3067793548,
-0.3621274531,
-0.3427153826,
-0.245803684,
0.0772687495,
0.0146662937,
0.0181847047,
0.1471750587,
-0.2030317783,
-0.0983985811,
-0.1064852923,
0.0504437238,
-0.2307025492,
-0.1302488893,
0.482693553,
0.4234506488,
0.1074430197,
0.2676041722,
0.1654304862,
-0.1382890493,
-0.2191940099,
-0.2272737771,
-0.1517679989,
-0.2155966312,
0.1276093572,
0.1082276106,
0.1141461357,
0.1075205877,
0.094139114,
-0.29399243,
0.0820913613,
-0.1551929265,
0.0133393127,
-0.2642065585,
0.0743817538,
0.1357635409,
0.121591039,
-0.4070492387,
0.4321895838,
0.0068679284,
0.0536034703,
-0.1758132875,
-0.3169419765,
0.5040283799,
-0.0870553702,
-0.3847105205,
0.3119256198,
0.2451522052,
0.1422898769,
0.0038850899,
-0.3304693997,
-0.1347046942,
0.038281735,
0.0473494865,
-0.2229126394,
0.1495039761,
-0.0536105409,
-0.1715637296,
-0.0246993452,
0.0344610848,
0.1170689315,
-0.3060975075,
0.2864744067,
-0.2321722209
] |
https://github.com/huggingface/datasets/issues/138 | Consider renaming to nld | I can't speak for the HF team @jramapuram, but as member of the community it looks to me that HF wanted to avoid the past path of changing names as scope broadened over time:
Remember
https://github.com/huggingface/pytorch-openai-transformer-lm
https://github.com/huggingface/pytorch-pretrained-BERT
https://github.com/huggingface/pytorch-transformers
and now
https://github.com/huggingface/transformers
;)
Jokes aside, seems that the library is growing in a multi-modal direction (https://github.com/huggingface/datasets/pull/363) so the current name is not that implausible. Possibly HF ambition is really to grow its community and bring here a large chunk of datasets of the world (including tabular / vision / audio?). | Hey :)
Just making a thread here recording what I said on Twitter, as it's impossible to follow discussion there. It's also just really not a good way to talk about this sort of thing.
The issue is that modules go into the global namespace, so you shouldn't use variable names that conflict with module names. This means the package makes `nlp` a bad variable name everywhere in the codebase. I've always used `nlp` as the canonical variable name of spaCy's `Language` objects, and this is a convention that a lot of other code has followed (Stanza, flair, etc). And actually, your `transformers` library uses `nlp` as the name for its `Pipeline` instance in your readme.
If you stick with the `nlp` name for this package, if anyone uses it then they should rewrite all of that code. If `nlp` is a bad choice of variable anywhere, it's a bad choice of variable everywhere --- because you shouldn't have to notice whether some other function uses a module when you're naming variables within a function. You want to have one convention that you can stick to everywhere.
If people use your `nlp` package and continue to use the `nlp` variable name, they'll find themselves with confusing bugs. There will be many many bits of code cut-and-paste from tutorials that give confusing results when combined with the data loading from the `nlp` library. The problem will be especially bad for shadowed modules (people might reasonably have a module named `nlp.py` within their codebase) and notebooks, as people might run notebook cells for data loading out-of-order.
I don't think it's an exaggeration to say that if your library becomes popular, we'll all be answering issues around this about once a week for the next few years. That seems pretty unideal, so I do hope you'll reconsider.
I suggest `nld` as a better name. It more accurately represents what the package actually does. It's pretty unideal to have a package named `nlp` that doesn't do any processing, and contains data about natural language generation or other non-NLP tasks. The name is equally short, and is sort of a visual pun on `nlp`, since a d is a rotated p. | 89 | Consider renaming to nld
Hey :)
Just making a thread here recording what I said on Twitter, as it's impossible to follow discussion there. It's also just really not a good way to talk about this sort of thing.
The issue is that modules go into the global namespace, so you shouldn't use variable names that conflict with module names. This means the package makes `nlp` a bad variable name everywhere in the codebase. I've always used `nlp` as the canonical variable name of spaCy's `Language` objects, and this is a convention that a lot of other code has followed (Stanza, flair, etc). And actually, your `transformers` library uses `nlp` as the name for its `Pipeline` instance in your readme.
If you stick with the `nlp` name for this package, if anyone uses it then they should rewrite all of that code. If `nlp` is a bad choice of variable anywhere, it's a bad choice of variable everywhere --- because you shouldn't have to notice whether some other function uses a module when you're naming variables within a function. You want to have one convention that you can stick to everywhere.
If people use your `nlp` package and continue to use the `nlp` variable name, they'll find themselves with confusing bugs. There will be many many bits of code cut-and-paste from tutorials that give confusing results when combined with the data loading from the `nlp` library. The problem will be especially bad for shadowed modules (people might reasonably have a module named `nlp.py` within their codebase) and notebooks, as people might run notebook cells for data loading out-of-order.
I don't think it's an exaggeration to say that if your library becomes popular, we'll all be answering issues around this about once a week for the next few years. That seems pretty unideal, so I do hope you'll reconsider.
I suggest `nld` as a better name. It more accurately represents what the package actually does. It's pretty unideal to have a package named `nlp` that doesn't do any processing, and contains data about natural language generation or other non-NLP tasks. The name is equally short, and is sort of a visual pun on `nlp`, since a d is a rotated p.
I can't speak for the HF team @jramapuram, but as member of the community it looks to me that HF wanted to avoid the past path of changing names as scope broadened over time:
Remember
https://github.com/huggingface/pytorch-openai-transformer-lm
https://github.com/huggingface/pytorch-pretrained-BERT
https://github.com/huggingface/pytorch-transformers
and now
https://github.com/huggingface/transformers
;)
Jokes aside, seems that the library is growing in a multi-modal direction (https://github.com/huggingface/datasets/pull/363) so the current name is not that implausible. Possibly HF ambition is really to grow its community and bring here a large chunk of datasets of the world (including tabular / vision / audio?). | [
0.3546045423,
0.0250588749,
-0.0843050182,
-0.3304427564,
0.1876238436,
-0.236012876,
0.28185305,
0.2058826387,
-0.1652064472,
0.0582918562,
0.2198298872,
0.2940490246,
-0.3030350804,
0.124629885,
0.3023299575,
-0.2793754339,
0.208622247,
0.0491359942,
0.163286671,
-0.12861453,
-0.1061516404,
0.1799215823,
0.1566793174,
0.4202882648,
0.0016417105,
0.0405684784,
0.2510457635,
-0.1025931761,
0.0196671635,
-0.3666578829,
0.0917975232,
0.3173363805,
-0.0723684505,
0.0078899302,
-0.000103016,
-0.1667027324,
0.5983601809,
-0.0208174679,
-0.1951323301,
-0.2738524079,
0.349458456,
-0.4347409606,
0.0873835906,
-0.5374495387,
0.1049490124,
0.2493642569,
0.1611561775,
-0.276920408,
0.172302261,
-0.0842129886,
0.2791434824,
-0.0322702117,
-0.2336920351,
0.2664331794,
-0.0823111087,
0.1612643898,
-0.1856751591,
-0.1456343532,
0.1019585207,
-0.0416523814,
0.0535839908,
0.2429708838,
-0.1371390074,
0.0111302752,
0.4416790009,
0.1220084205,
0.3055425286,
0.0429872759,
-0.0890985131,
0.1462108791,
0.0160025489,
-0.3755002618,
-0.2275757641,
-0.1618047655,
0.0141654378,
-0.4211738706,
0.0508646294,
-0.0911910534,
-0.0744972825,
-0.0652685389,
0.3642607033,
-0.1167292595,
0.0555222332,
0.1869731098,
0.0563991144,
0.6406508088,
0.1287475675,
0.1855204552,
0.0186786726,
-0.2868245244,
0.1609269083,
0.171697408,
0.204897508,
0.0659399852,
0.1589836627,
-0.1076444536,
0.0360815637,
-0.0260849074,
-0.1019778028,
-0.0282881055,
-0.0157897808,
-0.0529253818,
0.1841490716,
-0.1026074737,
-0.0229199026,
-0.0395879969,
0.2494287044,
0.0680685639,
0.3340998292,
0.0483053438,
0.1616840214,
0.0051701008,
-0.0170283411,
0.113665022,
0.0018839892,
0.0539526232,
0.1125139669,
0.0556236021,
0.0231455527,
-0.0699976906,
0.1393642128,
-0.0318879411,
0.01228166,
0.2282055318,
0.0296435487,
0.4047166705,
0.1179115772,
-0.0512217507,
-0.0545106903,
0.0529051386,
-0.1768298298,
-0.0293127224,
-0.5875115991,
0.1920244396,
-0.0093171773,
0.5461201668,
0.3421473801,
-0.2364342809,
-0.1096443385,
0.0759178028,
-0.0507353917,
0.1224970073,
-0.035852395,
-0.0496277586,
-0.434293896,
0.1021535024,
-0.2238203585,
-0.3176432252,
-0.2762624025,
0.1289541274,
-0.2020070255,
0.093801558,
-0.1377501339,
0.302326262,
-0.285153389,
-0.0645211786,
0.4819486439,
0.1596667022,
0.1319607347,
-0.2455683649,
0.1019593477,
-0.0245485827,
0.1727489382,
-0.1681720912,
-0.2812473476,
0.0770908967,
0.1417668164,
-0.4519436359,
-0.563080132,
0.071245715,
0.3810741603,
0.0145661095,
-0.168133527,
-0.0279530082,
0.1246095598,
0.0463551097,
0.5702140331,
-0.377081275,
-0.1004940867,
0.1108656973,
-0.2571688294,
-0.1666594744,
0.0733328685,
0.172489956,
-0.0463333689,
-0.178151533,
0.2236124426,
0.4268015027,
0.1682260633,
0.1578954905,
-0.2671320438,
-0.1424055547,
0.3670619726,
0.020118827,
0.0713864565,
0.145018518,
-0.2018316686,
0.7421376109,
0.1609520614,
0.0481396988,
0.0549912527,
0.1300475299,
-0.0001047579,
0.2264645696,
0.0527036749,
-0.0485745184,
-0.2530001998,
-0.1717444062,
-0.3851438761,
0.2766964734,
-0.140701592,
-0.3179915845,
-0.0011529273,
-0.0611751825,
0.0840613469,
-0.2455077916,
0.314219296,
0.1664158404,
-0.0728964657,
-0.1845241189,
-0.3374125659,
0.2081884295,
0.1162086502,
0.0268576704,
-0.1347389817,
0.0125923324,
-0.0472035334,
-0.1227352098,
-0.0485320054,
0.4621074498,
0.0617955811,
0.0230287928,
-0.0187293049,
0.1212336943,
-0.0920707658,
-0.1717240959,
-0.1780797988,
0.3527117372,
0.1953413039,
0.0335728228,
0.1522720009,
0.2178539038,
0.00523917,
0.0609578341,
0.165421322,
0.0910021365,
-0.2310309857,
0.1728600115,
0.1610241234,
-0.1268762946,
0.2499849647,
-0.3104696572,
-0.3951841295,
-0.159494251,
0.2015538216,
-0.174465552,
0.3688203394,
0.2622096837,
-0.0718517005,
-0.0054821004,
0.7487165332,
-0.1023490727,
-0.0018589926,
0.0346929245,
0.0061897417,
0.0344389826,
-0.0982623473,
0.4255808592,
0.3692653775,
0.2573753297,
-0.2147238255,
0.0731224641,
-0.1584897041,
-0.23952429,
0.1479514986,
0.2729808688,
-0.0210607387,
-0.0159717128,
0.0722969398,
-0.0208247155,
-0.144223392,
-0.3758422732,
0.1088094786,
0.0435102955,
0.1615841091,
0.1969147772,
-0.2253729254,
-0.3355082572,
-0.3560677767,
-0.1077125445,
-0.5679334998,
-0.2122839987,
0.0389433429,
-0.3195095062,
-0.3220553696,
0.1848625392,
0.0278039724,
0.0538056381,
-0.3259669244,
-0.4077161849,
-0.2541847825,
-0.2610701621,
-0.2709333003,
0.1013535261,
-0.0553873442,
0.1212052479,
0.3438510895,
0.0752661079,
0.0450470224,
0.0797969028,
-0.4759515226,
0.019988196,
-0.0811675116,
0.2733126879,
0.2104488313,
-0.0825032741,
0.1517145932,
-0.466009289,
0.1668879986,
-0.2525930703,
0.1693016589,
0.0579312257,
0.1528622806,
-0.0486337692,
-0.3818203509,
-0.2003627717,
-0.4499172866,
-0.4317989051,
-0.1190715507,
-0.0393394046,
0.0792103261,
0.4727208912,
-0.575881958,
-0.0751318485,
0.1555480808,
0.2960142791,
-0.1504532844,
0.3245943785,
-0.0218336694,
-0.1896304786,
0.0030148681,
-0.37011832,
-0.4601127207,
0.5443203449,
-0.0602090955,
0.0033653879,
0.0939405188,
0.0620013997,
-0.1237866431,
0.2940616012,
-0.1174600795,
0.3699583709,
0.3588147163,
-0.1884727031,
-0.0632569268,
-0.1866521686,
0.1633794755,
-0.0045338394,
0.3885164857,
0.1221950203,
-0.1400720179,
-0.0451744832,
0.0210367367,
-0.2248966545,
-0.0801915824,
0.2310663462,
0.3564609885,
0.0327313878,
-0.0163829383,
-0.1170816869,
0.0942938104,
0.1725270003,
-0.1195731983,
0.2910574377,
-0.0843761191,
-0.2946410775,
-0.0038448521,
0.2169433534,
-0.1007226482,
-0.250341922,
0.1929997206,
0.0891835615,
0.2827474773,
0.1753284037,
-0.1619337052,
-0.1459892392,
-0.3150653243,
0.1284447163,
0.2256353199,
-0.2269298136,
0.0859745368,
-0.5130317211,
-0.3030592203,
-0.0854920298,
-0.0233057719,
-0.0840165988,
0.2252944857,
-0.0976991802,
-0.0682784021,
0.0381608494,
-0.0622194633,
0.1355438381,
0.0053457669,
-0.1475563198,
0.3124497831,
0.22030285,
-0.0112972818,
-0.2311529666,
-0.1663770676,
0.0577341467,
0.2586655021,
0.2246443778,
-0.5831879973,
-0.3143756688,
0.1958585083,
0.0615962222,
-0.1887238324,
-0.2447851002,
-0.4139582515,
-0.2432187796,
-0.2267661244,
-0.207563743,
-0.132857278,
0.3199290633,
0.0897642821,
0.0595341325,
0.1999860555,
-0.2511615455,
0.220259726,
0.1723578125,
0.1237166226,
0.0274909399,
-0.1680527031,
-0.0923232362,
0.2246273458,
-0.5235324502,
0.04502289,
-0.0399270318,
-0.0523350649,
-0.1777236164,
0.0533364825,
0.3100292683,
0.3402794003,
0.090030022,
0.2383214086,
-0.1819753796,
0.0640585646,
-0.0300180912,
0.2332524806,
0.1558600515,
0.0364177525,
-0.2073985338,
-0.4303264618,
0.2744524479,
0.2052862048,
-0.259929955,
-0.0256310366,
0.0207748171,
-0.3804276884,
0.5902325511,
0.1180908233,
1.0089895725,
-0.0025152152,
0.2391271591,
0.0166735742,
0.0414850973,
0.7351971865,
-0.2273073792,
0.0742216036,
-0.2871638536,
0.4338241816,
0.2762081623,
0.0291308649,
0.189319104,
0.1501967609,
-0.2432341725,
0.4527545273,
0.2205491513,
-0.3383808136,
0.0835848525,
0.4536226094,
0.1656157523,
-0.3907469809,
-0.1250924915,
0.1206354648,
-0.4738860726,
0.2193239927,
-0.1599497199,
-0.2089595348,
-0.1138748378,
-0.1106684431,
0.0419252664,
-0.0078130746,
-0.0255670156,
0.1110909358,
-0.1030503958,
0.1334173679,
-0.1465841979,
-0.2319065034,
0.3092883229,
0.445115447,
-0.041815795,
0.0672229975,
-0.2529368401,
0.0395185426,
0.1476796716,
0.2119449973,
0.3646719456,
-0.1735545099,
-0.1169806495,
-0.1212966368,
0.0693862438,
-0.0816582441,
-0.3511217833,
-0.1439374685,
0.3010073602,
-0.1273348182,
-0.0553539842,
0.2697060406,
-0.2059503496,
-0.0515001751,
0.2535748482,
0.1286809742,
-0.2365042567,
0.152215451,
0.2154998183,
-0.1379987299,
-0.0277185943,
-0.2845082283,
0.2966325283,
-0.262899071,
-0.0141334934,
-0.2800218761,
-0.1900841892,
-0.1783280522,
-0.2144163698,
-0.4408951104,
-0.2746848464,
0.2680206001,
0.3854090571,
-0.6574809551,
-0.1242856532,
-0.0738775879,
0.1040908322,
0.2993980944,
-0.3066924512,
-0.0836873278,
-0.2827759683,
0.4450171888,
-0.1112830788,
-0.0271211863,
0.0508927442,
0.6008218527,
-0.0077931653,
0.0307249986,
-0.411422044,
-0.2275702357,
-0.2836340368,
0.3503586948,
0.0242581256,
-0.406062156,
-0.2008110285,
0.1526447535,
0.1956526786,
0.0458801873,
-0.176434055,
-0.283590138,
-0.318883121,
0.1050616875,
0.0745702386,
0.1342766136,
0.0811202675,
-0.1392993629,
0.2841312885,
-0.0353496261,
-0.1470666826,
-0.078591831,
0.1584582329,
0.6412720084,
0.1998636276,
0.2127103209,
0.2033686042,
0.1251463741,
-0.0351963565,
0.2976450622,
0.0217047893,
0.2803504467,
0.0442091338,
-0.06221902,
-0.2232206911,
-0.14201729,
-0.2373427302,
0.3103161156,
0.01001509,
-0.1164273843,
-0.1670697927,
0.0692104846,
-0.036886435,
0.3586560488,
-0.1238266528,
-0.2624822855,
0.2713676989,
0.296916008,
-0.3307809234,
-0.0596150011,
-0.0284346528,
0.0032088428,
0.1284837723,
0.2637522817,
0.0675551519,
-0.083330743,
0.2330915928,
-0.0484738536,
0.403193891,
-0.3050515354,
0.0193954594,
0.1950926036,
0.0151601965,
0.1632584184,
0.3058250248,
0.0028247226,
0.0275519397,
0.3956400454,
0.1797771901,
0.1889588684,
0.361271143,
0.1213435531,
0.1256160289,
0.5455905795,
-0.229820177,
0.1712247282,
0.412938714,
0.3619436324,
0.1206743568,
-0.327588588,
0.0675621629,
-0.2218263149,
0.0876740441,
0.127533555,
-0.1785113811,
-0.2183449715,
0.200701952,
0.3497122526,
-0.4002244771,
-0.1088246033,
-0.0759373531,
-0.0582729168,
0.009368876,
0.0185794849,
0.0791207477,
-0.1426203996,
0.0956058055,
-0.0189037658,
0.1617903858,
-0.1936127543,
0.0031985175,
0.0838393271,
0.1933109015,
-0.058198601,
0.0555201396,
-0.0990939885,
0.086652495,
-0.2270683795,
-0.0916605443,
-0.2489610314,
0.0196249206,
-0.2773870826,
0.2346079051,
0.4263951182,
0.5700037479,
0.1071949974,
0.1036821231,
-0.2625008523,
-0.1466623843,
0.2125215977,
-0.3936909437,
-0.0943322107,
0.8848913312,
0.2048434764,
-0.1527254879,
-0.2799519598,
0.177399084,
-0.7367966175,
0.0776504427,
0.2374967486,
0.1197137535,
-0.0409560539,
-0.4269068837,
0.1364693046,
0.1251664013,
0.2762802243,
-0.0520890094,
0.412468195,
-0.0601217113,
-0.0616205074,
-0.4459727705,
0.0975325406,
-0.0362374373,
0.162829265,
0.0209498443,
-0.1065493301,
-0.0380696058,
0.0391868614,
-0.2933573425,
0.3067793548,
-0.3621274531,
-0.3427153826,
-0.245803684,
0.0772687495,
0.0146662937,
0.0181847047,
0.1471750587,
-0.2030317783,
-0.0983985811,
-0.1064852923,
0.0504437238,
-0.2307025492,
-0.1302488893,
0.482693553,
0.4234506488,
0.1074430197,
0.2676041722,
0.1654304862,
-0.1382890493,
-0.2191940099,
-0.2272737771,
-0.1517679989,
-0.2155966312,
0.1276093572,
0.1082276106,
0.1141461357,
0.1075205877,
0.094139114,
-0.29399243,
0.0820913613,
-0.1551929265,
0.0133393127,
-0.2642065585,
0.0743817538,
0.1357635409,
0.121591039,
-0.4070492387,
0.4321895838,
0.0068679284,
0.0536034703,
-0.1758132875,
-0.3169419765,
0.5040283799,
-0.0870553702,
-0.3847105205,
0.3119256198,
0.2451522052,
0.1422898769,
0.0038850899,
-0.3304693997,
-0.1347046942,
0.038281735,
0.0473494865,
-0.2229126394,
0.1495039761,
-0.0536105409,
-0.1715637296,
-0.0246993452,
0.0344610848,
0.1170689315,
-0.3060975075,
0.2864744067,
-0.2321722209
] |
https://github.com/huggingface/datasets/issues/138 | Consider renaming to nld | Yea I see your point. However, wouldn't scoping solve the entire problem?
```python
import huggingface.datasets as D
import huggingface.transformers as T
```
Calling something `datasets` is akin to saying I'm going to name my package `python` --> `import python` | Hey :)
Just making a thread here recording what I said on Twitter, as it's impossible to follow discussion there. It's also just really not a good way to talk about this sort of thing.
The issue is that modules go into the global namespace, so you shouldn't use variable names that conflict with module names. This means the package makes `nlp` a bad variable name everywhere in the codebase. I've always used `nlp` as the canonical variable name of spaCy's `Language` objects, and this is a convention that a lot of other code has followed (Stanza, flair, etc). And actually, your `transformers` library uses `nlp` as the name for its `Pipeline` instance in your readme.
If you stick with the `nlp` name for this package, if anyone uses it then they should rewrite all of that code. If `nlp` is a bad choice of variable anywhere, it's a bad choice of variable everywhere --- because you shouldn't have to notice whether some other function uses a module when you're naming variables within a function. You want to have one convention that you can stick to everywhere.
If people use your `nlp` package and continue to use the `nlp` variable name, they'll find themselves with confusing bugs. There will be many many bits of code cut-and-paste from tutorials that give confusing results when combined with the data loading from the `nlp` library. The problem will be especially bad for shadowed modules (people might reasonably have a module named `nlp.py` within their codebase) and notebooks, as people might run notebook cells for data loading out-of-order.
I don't think it's an exaggeration to say that if your library becomes popular, we'll all be answering issues around this about once a week for the next few years. That seems pretty unideal, so I do hope you'll reconsider.
I suggest `nld` as a better name. It more accurately represents what the package actually does. It's pretty unideal to have a package named `nlp` that doesn't do any processing, and contains data about natural language generation or other non-NLP tasks. The name is equally short, and is sort of a visual pun on `nlp`, since a d is a rotated p. | 39 | Consider renaming to nld
Hey :)
Just making a thread here recording what I said on Twitter, as it's impossible to follow discussion there. It's also just really not a good way to talk about this sort of thing.
The issue is that modules go into the global namespace, so you shouldn't use variable names that conflict with module names. This means the package makes `nlp` a bad variable name everywhere in the codebase. I've always used `nlp` as the canonical variable name of spaCy's `Language` objects, and this is a convention that a lot of other code has followed (Stanza, flair, etc). And actually, your `transformers` library uses `nlp` as the name for its `Pipeline` instance in your readme.
If you stick with the `nlp` name for this package, if anyone uses it then they should rewrite all of that code. If `nlp` is a bad choice of variable anywhere, it's a bad choice of variable everywhere --- because you shouldn't have to notice whether some other function uses a module when you're naming variables within a function. You want to have one convention that you can stick to everywhere.
If people use your `nlp` package and continue to use the `nlp` variable name, they'll find themselves with confusing bugs. There will be many many bits of code cut-and-paste from tutorials that give confusing results when combined with the data loading from the `nlp` library. The problem will be especially bad for shadowed modules (people might reasonably have a module named `nlp.py` within their codebase) and notebooks, as people might run notebook cells for data loading out-of-order.
I don't think it's an exaggeration to say that if your library becomes popular, we'll all be answering issues around this about once a week for the next few years. That seems pretty unideal, so I do hope you'll reconsider.
I suggest `nld` as a better name. It more accurately represents what the package actually does. It's pretty unideal to have a package named `nlp` that doesn't do any processing, and contains data about natural language generation or other non-NLP tasks. The name is equally short, and is sort of a visual pun on `nlp`, since a d is a rotated p.
Yea I see your point. However, wouldn't scoping solve the entire problem?
```python
import huggingface.datasets as D
import huggingface.transformers as T
```
Calling something `datasets` is akin to saying I'm going to name my package `python` --> `import python` | [
0.3546045423,
0.0250588749,
-0.0843050182,
-0.3304427564,
0.1876238436,
-0.236012876,
0.28185305,
0.2058826387,
-0.1652064472,
0.0582918562,
0.2198298872,
0.2940490246,
-0.3030350804,
0.124629885,
0.3023299575,
-0.2793754339,
0.208622247,
0.0491359942,
0.163286671,
-0.12861453,
-0.1061516404,
0.1799215823,
0.1566793174,
0.4202882648,
0.0016417105,
0.0405684784,
0.2510457635,
-0.1025931761,
0.0196671635,
-0.3666578829,
0.0917975232,
0.3173363805,
-0.0723684505,
0.0078899302,
-0.000103016,
-0.1667027324,
0.5983601809,
-0.0208174679,
-0.1951323301,
-0.2738524079,
0.349458456,
-0.4347409606,
0.0873835906,
-0.5374495387,
0.1049490124,
0.2493642569,
0.1611561775,
-0.276920408,
0.172302261,
-0.0842129886,
0.2791434824,
-0.0322702117,
-0.2336920351,
0.2664331794,
-0.0823111087,
0.1612643898,
-0.1856751591,
-0.1456343532,
0.1019585207,
-0.0416523814,
0.0535839908,
0.2429708838,
-0.1371390074,
0.0111302752,
0.4416790009,
0.1220084205,
0.3055425286,
0.0429872759,
-0.0890985131,
0.1462108791,
0.0160025489,
-0.3755002618,
-0.2275757641,
-0.1618047655,
0.0141654378,
-0.4211738706,
0.0508646294,
-0.0911910534,
-0.0744972825,
-0.0652685389,
0.3642607033,
-0.1167292595,
0.0555222332,
0.1869731098,
0.0563991144,
0.6406508088,
0.1287475675,
0.1855204552,
0.0186786726,
-0.2868245244,
0.1609269083,
0.171697408,
0.204897508,
0.0659399852,
0.1589836627,
-0.1076444536,
0.0360815637,
-0.0260849074,
-0.1019778028,
-0.0282881055,
-0.0157897808,
-0.0529253818,
0.1841490716,
-0.1026074737,
-0.0229199026,
-0.0395879969,
0.2494287044,
0.0680685639,
0.3340998292,
0.0483053438,
0.1616840214,
0.0051701008,
-0.0170283411,
0.113665022,
0.0018839892,
0.0539526232,
0.1125139669,
0.0556236021,
0.0231455527,
-0.0699976906,
0.1393642128,
-0.0318879411,
0.01228166,
0.2282055318,
0.0296435487,
0.4047166705,
0.1179115772,
-0.0512217507,
-0.0545106903,
0.0529051386,
-0.1768298298,
-0.0293127224,
-0.5875115991,
0.1920244396,
-0.0093171773,
0.5461201668,
0.3421473801,
-0.2364342809,
-0.1096443385,
0.0759178028,
-0.0507353917,
0.1224970073,
-0.035852395,
-0.0496277586,
-0.434293896,
0.1021535024,
-0.2238203585,
-0.3176432252,
-0.2762624025,
0.1289541274,
-0.2020070255,
0.093801558,
-0.1377501339,
0.302326262,
-0.285153389,
-0.0645211786,
0.4819486439,
0.1596667022,
0.1319607347,
-0.2455683649,
0.1019593477,
-0.0245485827,
0.1727489382,
-0.1681720912,
-0.2812473476,
0.0770908967,
0.1417668164,
-0.4519436359,
-0.563080132,
0.071245715,
0.3810741603,
0.0145661095,
-0.168133527,
-0.0279530082,
0.1246095598,
0.0463551097,
0.5702140331,
-0.377081275,
-0.1004940867,
0.1108656973,
-0.2571688294,
-0.1666594744,
0.0733328685,
0.172489956,
-0.0463333689,
-0.178151533,
0.2236124426,
0.4268015027,
0.1682260633,
0.1578954905,
-0.2671320438,
-0.1424055547,
0.3670619726,
0.020118827,
0.0713864565,
0.145018518,
-0.2018316686,
0.7421376109,
0.1609520614,
0.0481396988,
0.0549912527,
0.1300475299,
-0.0001047579,
0.2264645696,
0.0527036749,
-0.0485745184,
-0.2530001998,
-0.1717444062,
-0.3851438761,
0.2766964734,
-0.140701592,
-0.3179915845,
-0.0011529273,
-0.0611751825,
0.0840613469,
-0.2455077916,
0.314219296,
0.1664158404,
-0.0728964657,
-0.1845241189,
-0.3374125659,
0.2081884295,
0.1162086502,
0.0268576704,
-0.1347389817,
0.0125923324,
-0.0472035334,
-0.1227352098,
-0.0485320054,
0.4621074498,
0.0617955811,
0.0230287928,
-0.0187293049,
0.1212336943,
-0.0920707658,
-0.1717240959,
-0.1780797988,
0.3527117372,
0.1953413039,
0.0335728228,
0.1522720009,
0.2178539038,
0.00523917,
0.0609578341,
0.165421322,
0.0910021365,
-0.2310309857,
0.1728600115,
0.1610241234,
-0.1268762946,
0.2499849647,
-0.3104696572,
-0.3951841295,
-0.159494251,
0.2015538216,
-0.174465552,
0.3688203394,
0.2622096837,
-0.0718517005,
-0.0054821004,
0.7487165332,
-0.1023490727,
-0.0018589926,
0.0346929245,
0.0061897417,
0.0344389826,
-0.0982623473,
0.4255808592,
0.3692653775,
0.2573753297,
-0.2147238255,
0.0731224641,
-0.1584897041,
-0.23952429,
0.1479514986,
0.2729808688,
-0.0210607387,
-0.0159717128,
0.0722969398,
-0.0208247155,
-0.144223392,
-0.3758422732,
0.1088094786,
0.0435102955,
0.1615841091,
0.1969147772,
-0.2253729254,
-0.3355082572,
-0.3560677767,
-0.1077125445,
-0.5679334998,
-0.2122839987,
0.0389433429,
-0.3195095062,
-0.3220553696,
0.1848625392,
0.0278039724,
0.0538056381,
-0.3259669244,
-0.4077161849,
-0.2541847825,
-0.2610701621,
-0.2709333003,
0.1013535261,
-0.0553873442,
0.1212052479,
0.3438510895,
0.0752661079,
0.0450470224,
0.0797969028,
-0.4759515226,
0.019988196,
-0.0811675116,
0.2733126879,
0.2104488313,
-0.0825032741,
0.1517145932,
-0.466009289,
0.1668879986,
-0.2525930703,
0.1693016589,
0.0579312257,
0.1528622806,
-0.0486337692,
-0.3818203509,
-0.2003627717,
-0.4499172866,
-0.4317989051,
-0.1190715507,
-0.0393394046,
0.0792103261,
0.4727208912,
-0.575881958,
-0.0751318485,
0.1555480808,
0.2960142791,
-0.1504532844,
0.3245943785,
-0.0218336694,
-0.1896304786,
0.0030148681,
-0.37011832,
-0.4601127207,
0.5443203449,
-0.0602090955,
0.0033653879,
0.0939405188,
0.0620013997,
-0.1237866431,
0.2940616012,
-0.1174600795,
0.3699583709,
0.3588147163,
-0.1884727031,
-0.0632569268,
-0.1866521686,
0.1633794755,
-0.0045338394,
0.3885164857,
0.1221950203,
-0.1400720179,
-0.0451744832,
0.0210367367,
-0.2248966545,
-0.0801915824,
0.2310663462,
0.3564609885,
0.0327313878,
-0.0163829383,
-0.1170816869,
0.0942938104,
0.1725270003,
-0.1195731983,
0.2910574377,
-0.0843761191,
-0.2946410775,
-0.0038448521,
0.2169433534,
-0.1007226482,
-0.250341922,
0.1929997206,
0.0891835615,
0.2827474773,
0.1753284037,
-0.1619337052,
-0.1459892392,
-0.3150653243,
0.1284447163,
0.2256353199,
-0.2269298136,
0.0859745368,
-0.5130317211,
-0.3030592203,
-0.0854920298,
-0.0233057719,
-0.0840165988,
0.2252944857,
-0.0976991802,
-0.0682784021,
0.0381608494,
-0.0622194633,
0.1355438381,
0.0053457669,
-0.1475563198,
0.3124497831,
0.22030285,
-0.0112972818,
-0.2311529666,
-0.1663770676,
0.0577341467,
0.2586655021,
0.2246443778,
-0.5831879973,
-0.3143756688,
0.1958585083,
0.0615962222,
-0.1887238324,
-0.2447851002,
-0.4139582515,
-0.2432187796,
-0.2267661244,
-0.207563743,
-0.132857278,
0.3199290633,
0.0897642821,
0.0595341325,
0.1999860555,
-0.2511615455,
0.220259726,
0.1723578125,
0.1237166226,
0.0274909399,
-0.1680527031,
-0.0923232362,
0.2246273458,
-0.5235324502,
0.04502289,
-0.0399270318,
-0.0523350649,
-0.1777236164,
0.0533364825,
0.3100292683,
0.3402794003,
0.090030022,
0.2383214086,
-0.1819753796,
0.0640585646,
-0.0300180912,
0.2332524806,
0.1558600515,
0.0364177525,
-0.2073985338,
-0.4303264618,
0.2744524479,
0.2052862048,
-0.259929955,
-0.0256310366,
0.0207748171,
-0.3804276884,
0.5902325511,
0.1180908233,
1.0089895725,
-0.0025152152,
0.2391271591,
0.0166735742,
0.0414850973,
0.7351971865,
-0.2273073792,
0.0742216036,
-0.2871638536,
0.4338241816,
0.2762081623,
0.0291308649,
0.189319104,
0.1501967609,
-0.2432341725,
0.4527545273,
0.2205491513,
-0.3383808136,
0.0835848525,
0.4536226094,
0.1656157523,
-0.3907469809,
-0.1250924915,
0.1206354648,
-0.4738860726,
0.2193239927,
-0.1599497199,
-0.2089595348,
-0.1138748378,
-0.1106684431,
0.0419252664,
-0.0078130746,
-0.0255670156,
0.1110909358,
-0.1030503958,
0.1334173679,
-0.1465841979,
-0.2319065034,
0.3092883229,
0.445115447,
-0.041815795,
0.0672229975,
-0.2529368401,
0.0395185426,
0.1476796716,
0.2119449973,
0.3646719456,
-0.1735545099,
-0.1169806495,
-0.1212966368,
0.0693862438,
-0.0816582441,
-0.3511217833,
-0.1439374685,
0.3010073602,
-0.1273348182,
-0.0553539842,
0.2697060406,
-0.2059503496,
-0.0515001751,
0.2535748482,
0.1286809742,
-0.2365042567,
0.152215451,
0.2154998183,
-0.1379987299,
-0.0277185943,
-0.2845082283,
0.2966325283,
-0.262899071,
-0.0141334934,
-0.2800218761,
-0.1900841892,
-0.1783280522,
-0.2144163698,
-0.4408951104,
-0.2746848464,
0.2680206001,
0.3854090571,
-0.6574809551,
-0.1242856532,
-0.0738775879,
0.1040908322,
0.2993980944,
-0.3066924512,
-0.0836873278,
-0.2827759683,
0.4450171888,
-0.1112830788,
-0.0271211863,
0.0508927442,
0.6008218527,
-0.0077931653,
0.0307249986,
-0.411422044,
-0.2275702357,
-0.2836340368,
0.3503586948,
0.0242581256,
-0.406062156,
-0.2008110285,
0.1526447535,
0.1956526786,
0.0458801873,
-0.176434055,
-0.283590138,
-0.318883121,
0.1050616875,
0.0745702386,
0.1342766136,
0.0811202675,
-0.1392993629,
0.2841312885,
-0.0353496261,
-0.1470666826,
-0.078591831,
0.1584582329,
0.6412720084,
0.1998636276,
0.2127103209,
0.2033686042,
0.1251463741,
-0.0351963565,
0.2976450622,
0.0217047893,
0.2803504467,
0.0442091338,
-0.06221902,
-0.2232206911,
-0.14201729,
-0.2373427302,
0.3103161156,
0.01001509,
-0.1164273843,
-0.1670697927,
0.0692104846,
-0.036886435,
0.3586560488,
-0.1238266528,
-0.2624822855,
0.2713676989,
0.296916008,
-0.3307809234,
-0.0596150011,
-0.0284346528,
0.0032088428,
0.1284837723,
0.2637522817,
0.0675551519,
-0.083330743,
0.2330915928,
-0.0484738536,
0.403193891,
-0.3050515354,
0.0193954594,
0.1950926036,
0.0151601965,
0.1632584184,
0.3058250248,
0.0028247226,
0.0275519397,
0.3956400454,
0.1797771901,
0.1889588684,
0.361271143,
0.1213435531,
0.1256160289,
0.5455905795,
-0.229820177,
0.1712247282,
0.412938714,
0.3619436324,
0.1206743568,
-0.327588588,
0.0675621629,
-0.2218263149,
0.0876740441,
0.127533555,
-0.1785113811,
-0.2183449715,
0.200701952,
0.3497122526,
-0.4002244771,
-0.1088246033,
-0.0759373531,
-0.0582729168,
0.009368876,
0.0185794849,
0.0791207477,
-0.1426203996,
0.0956058055,
-0.0189037658,
0.1617903858,
-0.1936127543,
0.0031985175,
0.0838393271,
0.1933109015,
-0.058198601,
0.0555201396,
-0.0990939885,
0.086652495,
-0.2270683795,
-0.0916605443,
-0.2489610314,
0.0196249206,
-0.2773870826,
0.2346079051,
0.4263951182,
0.5700037479,
0.1071949974,
0.1036821231,
-0.2625008523,
-0.1466623843,
0.2125215977,
-0.3936909437,
-0.0943322107,
0.8848913312,
0.2048434764,
-0.1527254879,
-0.2799519598,
0.177399084,
-0.7367966175,
0.0776504427,
0.2374967486,
0.1197137535,
-0.0409560539,
-0.4269068837,
0.1364693046,
0.1251664013,
0.2762802243,
-0.0520890094,
0.412468195,
-0.0601217113,
-0.0616205074,
-0.4459727705,
0.0975325406,
-0.0362374373,
0.162829265,
0.0209498443,
-0.1065493301,
-0.0380696058,
0.0391868614,
-0.2933573425,
0.3067793548,
-0.3621274531,
-0.3427153826,
-0.245803684,
0.0772687495,
0.0146662937,
0.0181847047,
0.1471750587,
-0.2030317783,
-0.0983985811,
-0.1064852923,
0.0504437238,
-0.2307025492,
-0.1302488893,
0.482693553,
0.4234506488,
0.1074430197,
0.2676041722,
0.1654304862,
-0.1382890493,
-0.2191940099,
-0.2272737771,
-0.1517679989,
-0.2155966312,
0.1276093572,
0.1082276106,
0.1141461357,
0.1075205877,
0.094139114,
-0.29399243,
0.0820913613,
-0.1551929265,
0.0133393127,
-0.2642065585,
0.0743817538,
0.1357635409,
0.121591039,
-0.4070492387,
0.4321895838,
0.0068679284,
0.0536034703,
-0.1758132875,
-0.3169419765,
0.5040283799,
-0.0870553702,
-0.3847105205,
0.3119256198,
0.2451522052,
0.1422898769,
0.0038850899,
-0.3304693997,
-0.1347046942,
0.038281735,
0.0473494865,
-0.2229126394,
0.1495039761,
-0.0536105409,
-0.1715637296,
-0.0246993452,
0.0344610848,
0.1170689315,
-0.3060975075,
0.2864744067,
-0.2321722209
] |
https://github.com/huggingface/datasets/issues/137 | Tokenized BLEU considered harmful - Discussion on community-based process | I second this request. The bottom line is that **scores produced with different reference tokenizations are not comparable**. To discourage (even inadvertent) cheating, the user should never touch the reference. The `v13a` tokenization standard is not ideal, but at least it has been consistently used at matrix.statmt.org, facilitating comparisons.
Sacrebleu exposes [all its data sources](https://github.com/mjpost/sacrebleu/blob/master/sacrebleu/dataset.py) and additionally provides [an API](https://github.com/mjpost/sacrebleu/blob/master/sacrebleu/__init__.py) to accessing the references, which seem to fit within the spirit of your codebase. | https://github.com/huggingface/nlp/blob/7d1526dfeeb29248d832f1073192dbf03ad642da/metrics/bleu/bleu.py#L76 assumes the inputs are tokenized by the user. This is bad practice because the user's tokenizer is usually not the same as the one used by `mteval-v13a.pl`, the closest thing we have to a standard. Moreover, tokenizers are like window managers: they can be endlessly customized and nobody has quite the same options.
As @mjpost reported in https://www.aclweb.org/anthology/W18-6319.pdf BLEU configurations can vary by 1.8. Yet people are incorrectly putting non-comparable BLEU scores in the same table, such as Table 1 in https://arxiv.org/abs/2004.04902 .
There are a few use cases for tokenized BLEU like Thai. For Chinese, people seem to use character BLEU for better or worse.
The default easy option should be the one that's correct more often. And that is sacrebleu. Please don't make it easy for people to run what is usually the wrong option; it definitely shouldn't be `bleu`.
Also, I know this is inherited from TensorFlow and, paging @lmthang, they should discourage it too. | 74 | Tokenized BLEU considered harmful - Discussion on community-based process
https://github.com/huggingface/nlp/blob/7d1526dfeeb29248d832f1073192dbf03ad642da/metrics/bleu/bleu.py#L76 assumes the inputs are tokenized by the user. This is bad practice because the user's tokenizer is usually not the same as the one used by `mteval-v13a.pl`, the closest thing we have to a standard. Moreover, tokenizers are like window managers: they can be endlessly customized and nobody has quite the same options.
As @mjpost reported in https://www.aclweb.org/anthology/W18-6319.pdf BLEU configurations can vary by 1.8. Yet people are incorrectly putting non-comparable BLEU scores in the same table, such as Table 1 in https://arxiv.org/abs/2004.04902 .
There are a few use cases for tokenized BLEU like Thai. For Chinese, people seem to use character BLEU for better or worse.
The default easy option should be the one that's correct more often. And that is sacrebleu. Please don't make it easy for people to run what is usually the wrong option; it definitely shouldn't be `bleu`.
Also, I know this is inherited from TensorFlow and, paging @lmthang, they should discourage it too.
I second this request. The bottom line is that **scores produced with different reference tokenizations are not comparable**. To discourage (even inadvertent) cheating, the user should never touch the reference. The `v13a` tokenization standard is not ideal, but at least it has been consistently used at matrix.statmt.org, facilitating comparisons.
Sacrebleu exposes [all its data sources](https://github.com/mjpost/sacrebleu/blob/master/sacrebleu/dataset.py) and additionally provides [an API](https://github.com/mjpost/sacrebleu/blob/master/sacrebleu/__init__.py) to accessing the references, which seem to fit within the spirit of your codebase. | [
-0.2068959624,
-0.2239940464,
-0.0241724346,
-0.1960565895,
0.1427307278,
-0.2892453969,
0.2044683546,
0.242577523,
-0.5539252162,
0.4257796109,
-0.2530023754,
0.3626276255,
-0.0131676933,
-0.0787504688,
-0.1742029041,
0.1995100677,
0.1531563848,
0.1220689416,
0.5717876554,
-0.079607524,
-0.098993659,
-0.1696629375,
0.0176084861,
0.2470570505,
-0.3446576297,
0.3597023487,
0.2996476293,
-0.279486537,
-0.1673766375,
-0.2797946632,
-0.1365121454,
0.2227184474,
-0.2795311511,
0.2289046496,
-0.0001093052,
-0.3120647669,
-0.0601102859,
-0.0350931101,
-0.2654201686,
-0.4642709494,
0.2411647141,
0.0276449807,
-0.0554137491,
-0.1108257547,
-0.0504698418,
-0.242742613,
0.0456907041,
0.069631882,
0.3667048812,
-0.1348718554,
0.1769616306,
0.4290123284,
-0.4011062384,
0.1543278694,
0.1258074641,
0.2085045129,
-0.0327002257,
0.2672730982,
-0.0411468782,
0.3646015823,
0.0584653206,
0.0565017723,
-0.1211040542,
-0.1393248588,
0.135959819,
-0.05894484,
-0.2566535771,
0.0117943855,
0.2010882646,
0.4576729834,
-0.0228146557,
0.073774986,
-0.2328155786,
-0.1242057607,
0.090881601,
-0.357426852,
0.0922228172,
-0.0738504156,
0.1251290292,
-0.1752550155,
-0.0502340235,
0.3113987446,
0.1208133996,
0.0639462993,
0.1400025934,
0.0747228786,
-0.0462034978,
0.0561070815,
-0.0482491702,
-0.0372719355,
-0.1836458594,
0.1025796607,
0.0456451327,
0.0721750632,
-0.2898778021,
-0.1666920483,
-0.1875945926,
-0.5826486349,
0.1071782112,
0.0615430363,
0.5064806938,
0.2740063667,
-0.1688212901,
0.1206372082,
-0.1836244464,
0.0766871646,
-0.2666233778,
-0.0895994231,
0.3690305054,
0.0124739669,
0.2950677276,
0.2305249721,
0.2302125245,
-0.1735685915,
-0.186960116,
0.2104581445,
-0.3297915757,
-0.2119522989,
-0.6489791274,
0.024491841,
-0.209871307,
-0.0039328141,
-0.103574425,
0.1552010477,
-0.2394102663,
-0.1720016152,
-0.0923475027,
0.0038389503,
-0.1732508391,
-0.1808503419,
-0.0416511074,
-0.2452546358,
-0.1640870124,
-0.0652840361,
-0.0555019565,
0.0853481218,
0.2829969227,
0.0482710749,
0.5071293712,
-0.1670743972,
0.0395631418,
-0.1643654853,
0.1284259856,
-0.0809514374,
-0.3301097155,
-0.1837484986,
-0.1064812094,
-0.1753865182,
-0.0757573694,
0.1259742379,
-0.2650857866,
-0.1970326304,
0.2198709548,
0.1541852206,
0.108176209,
0.1301451176,
-0.4073214531,
0.098601833,
-0.1138289049,
-0.0174880382,
0.2405322641,
-0.1037747562,
-0.1610576361,
-0.2548729777,
0.2549301386,
-0.2436172515,
0.1269930005,
-0.184951961,
0.5565251708,
0.2552279532,
0.1769501865,
0.3732343018,
-0.2868904769,
0.2685478032,
0.0757660717,
0.1756891608,
0.024707146,
-0.0729765221,
-0.2471740693,
-0.1694586724,
-0.1363461316,
-0.2782009244,
0.0569720343,
-0.0022905129,
0.447694093,
-0.1601078212,
0.0129351532,
-0.0264290944,
0.1478297114,
-0.0873765126,
-0.3542246819,
-0.5578354597,
0.0816822201,
-0.1322260797,
0.0789174363,
-0.0438451618,
0.2843371332,
0.5939745903,
0.3166592717,
-0.3041428924,
-0.1074525639,
-0.282163769,
0.5762835741,
-0.0202748012,
0.0713058412,
0.1576717943,
0.4550968707,
0.1679540724,
-0.0573647954,
0.1576078832,
0.1244591549,
-0.4581420422,
-0.0465321615,
0.0162928291,
0.2220988423,
0.0366162471,
0.0769575015,
-0.1002093703,
-0.2054636031,
0.1872119308,
-0.4104691744,
-0.2364170104,
-0.5289869308,
0.1547193527,
0.1777647287,
-0.0728962421,
0.0320583619,
0.0623837337,
0.1361074895,
0.3638377488,
0.0351113416,
-0.0589806698,
-0.2578704059,
0.3002852798,
0.0624151602,
0.0660419315,
-0.3768452108,
0.689014554,
0.3303517699,
0.221590206,
-0.2227144688,
0.1267671734,
-0.1263358891,
0.1314388365,
0.3574001491,
0.5529800653,
0.021489745,
-0.076190263,
0.0505527444,
-0.2885351479,
-0.2127606869,
0.1523654759,
-0.0368537381,
-0.2658451796,
0.0508225635,
0.2942458391,
-0.2558175325,
0.113773264,
-0.1830154359,
-0.011964065,
0.1617597491,
0.0664128587,
0.0226847865,
0.0442923009,
0.3693779111,
-0.1273410171,
0.0505142882,
0.1427876651,
0.055640623,
0.0483267866,
0.0977223739,
0.1243293136,
-0.0088802911,
-0.3289554417,
-0.1426034123,
-0.0059860321,
0.028936008,
0.1889077425,
-0.0027063983,
0.329775542,
-0.0355944633,
0.0165129807,
-0.0441314764,
-0.1556866914,
-0.0953176618,
0.1654358804,
-0.2257622182,
0.2198488712,
-0.2951076627,
0.0351459458,
0.01704726,
-0.1059285179,
0.2216107398,
0.2815538645,
-0.1472130418,
0.3347758651,
0.0994494706,
0.6170318127,
-0.2452240586,
0.0372118689,
0.1176239848,
0.1728842854,
-0.3233580291,
0.071114108,
-0.1702133715,
-0.3984041512,
0.2559492588,
-0.1248627901,
-0.27550897,
-0.1597878784,
-0.5918518901,
0.0459025614,
0.0396381319,
0.0232889298,
0.14144288,
-0.5394569635,
-0.4638620317,
-0.2547605634,
-0.1199977249,
-0.2510249913,
-0.1145924479,
-0.0606336184,
-0.0050709029,
-0.1690467298,
0.0162938964,
-0.2947103381,
0.164323166,
0.1185221747,
0.1338733584,
-0.2773311436,
0.1693718731,
-0.2163564414,
0.0118126962,
0.1174277738,
0.164392367,
0.350138545,
-0.212271899,
0.1290462017,
0.1318793595,
-0.1976175159,
-0.3267777264,
-0.050323613,
0.0647123381,
0.4233525991,
0.1470817477,
-0.2939500511,
-0.273420006,
0.3738843799,
-0.1731689125,
-0.1254468411,
-0.2122830003,
-0.2605549395,
0.0583346337,
-0.1946226656,
0.1922215968,
0.1158098876,
0.2132235616,
-0.0956213474,
0.4491806626,
0.1187030002,
-0.0395867266,
0.6627025604,
0.6913074255,
0.1017227992,
-0.1586235762,
-0.0426353253,
0.1583466381,
-0.0875411183,
-0.0045997645,
0.0941019878,
0.1971176565,
-0.1294557601,
-0.2560726106,
0.3780325353,
-0.1585336179,
0.1232013181,
0.1082131267,
-0.1611287594,
0.2057591975,
-0.1643343121,
-0.0010711437,
-0.0017700311,
0.0950259343,
0.0110171959,
0.0680540353,
0.1290992945,
-0.4127894342,
0.315325141,
0.1577879936,
-0.2213695049,
-0.0144195957,
-0.2104134858,
0.0052281902,
-0.3326507807,
0.2889449596,
-0.0296187308,
0.6624239683,
0.0117719201,
0.0834731162,
0.1709176451,
-0.0997463465,
0.0504181348,
0.1579192281,
0.090320155,
-0.217595458,
-0.0257567912,
-0.1992521584,
-0.0704757869,
-0.0727048814,
-0.0990993381,
0.3267840445,
0.2176626027,
-0.3120602071,
-0.1621987969,
0.0194405783,
0.0851324201,
-0.1260425746,
0.1237161085,
-0.4543356299,
-0.0649407282,
-0.0557296313,
-0.0247003511,
-0.187299028,
0.0450348668,
-0.2511965632,
-0.0504624769,
-0.4296769202,
-0.0678879395,
0.2717932463,
0.0868357643,
-0.063186802,
0.1846378297,
0.0317051299,
0.0364549831,
0.3250901997,
0.2090857029,
-0.1376551539,
-0.2794862092,
-0.3214728534,
-0.1144845784,
-0.2028519064,
0.0953912586,
0.4196400642,
-0.1740463525,
0.4768793881,
-0.0157343466,
0.0112016741,
-0.2375888228,
0.3723276556,
-0.0375470333,
0.325984925,
0.1532136202,
-0.1466742456,
0.049343612,
0.1555637121,
-0.3171951771,
0.0094121508,
0.2422335148,
-0.1291574389,
0.6084894538,
0.7208909988,
0.8764433861,
0.1259094328,
0.1141560897,
0.2070011795,
-0.1199534684,
0.2565959692,
-0.6042691469,
0.2072225362,
-0.3428196013,
-0.4102156162,
0.0232141875,
-0.140076831,
-0.1746554673,
0.1369534582,
0.1619714946,
-0.0327282362,
-0.0903758854,
0.3012173474,
0.0788518637,
0.2614022493,
0.150623247,
-0.0877255872,
0.2132780105,
0.1011495888,
-0.151492089,
-0.0306141898,
-0.0826290399,
0.3527843356,
-0.2943230867,
0.1250687987,
0.1902913749,
-0.0342690311,
-0.3502193987,
0.1137003005,
0.1317371875,
0.1885913908,
0.2218078822,
0.2108036131,
0.8279293776,
0.433014214,
0.0082833357,
-0.1075670272,
0.0648679286,
0.133188948,
0.0712042749,
-0.353821665,
0.3103140891,
-0.06069123,
-0.1048766971,
0.2527483404,
0.5873186588,
-0.1746492386,
0.2403131723,
-0.2520070374,
0.0487119816,
-0.1159992293,
0.1788545102,
0.2137911916,
0.2173639387,
-0.0209004059,
0.1036423072,
-0.2565670907,
-0.2136922032,
-0.0037653996,
0.283305645,
-0.4414061904,
0.0381092727,
0.2712466419,
0.1722857803,
-0.3404610455,
0.1972756535,
-0.5864212513,
-0.0897703171,
0.022127267,
-0.0383998193,
-0.0596897937,
-0.0833162814,
-0.0765715837,
-0.4314345419,
-0.1352991015,
-0.2460096478,
0.5607563853,
0.6052767634,
-0.0774892047,
0.0336493813,
0.1354110837,
-0.1630395353,
0.2133653909,
0.1952000558,
0.2581731975,
0.0349084772,
0.0533158779,
-0.3790338933,
0.1731285453,
-0.2918668389,
0.0644075423,
-0.1013998911,
-0.0033602787,
-0.2342808843,
-0.0441531949,
0.0775412768,
0.1023195237,
-0.0481504723,
0.074354358,
-0.408038348,
-0.0953465328,
-0.3948293626,
0.1093238667,
0.2661674023,
-0.1497949362,
-0.3956966102,
-0.1315513104,
0.0635763928,
-0.1323182434,
0.1926938444,
0.1348090768,
0.1516891867,
0.1362865567,
-0.1986282915,
0.3296234012,
0.0634750649,
-0.1438188255,
0.1717551351,
0.2343726158,
0.3583292663,
0.1249588579,
0.1032913178,
-0.0910667405,
-0.0482544489,
0.1773390174,
0.2758863866,
-0.1333846748,
-0.1384397,
-0.134593457,
-0.1364496648,
-0.358206749,
0.0131532615,
0.2146361172,
-0.1268166602,
-0.7645155787,
0.4478643537,
0.1486925632,
-0.0601479448,
0.05318195,
-0.1367063671,
0.277669251,
-0.0705253631,
0.3877398074,
0.9065316916,
-0.0126676261,
-0.0706974044,
-0.0528648235,
-0.1292691678,
-0.4736330807,
0.1823347062,
-0.3895030022,
0.0389168113,
0.3486035168,
0.227983892,
-0.0590302721,
0.1209799498,
-0.1988399774,
-0.0722639039,
0.6388519406,
-0.0506132096,
0.0819868743,
0.1001697257,
0.2426889539,
0.4570911825,
0.1935916245,
-0.1912610233,
0.0571106225,
0.2640198767,
0.4476594627,
0.1914540231,
-0.3882976472,
-0.1500758678,
-0.0603225306,
-0.2087744027,
-0.2626775503,
-0.1044179127,
-0.2759132087,
-0.2582131922,
0.1911941618,
-0.1134684682,
0.1549496502,
-0.4421705902,
0.0690817386,
-0.0469768345,
0.1085622162,
-0.0824247673,
0.2035616636,
0.4655306637,
-0.1036634818,
-0.2561133206,
-0.2180811316,
0.223727271,
0.171498999,
0.2189150155,
-0.1410619318,
0.1432939321,
-0.142743662,
-0.4396962225,
-0.1719785929,
0.4242272079,
0.1891853064,
0.2286874354,
0.2140738517,
-0.3947887123,
0.3290734291,
0.0312091894,
-0.1289631277,
-0.2156379521,
0.2847795486,
0.1506447494,
-0.2831285,
0.1975284219,
0.1725682467,
0.1861096025,
0.1726136208,
0.1169577315,
-0.2801848352,
0.3426786363,
0.2673276663,
-0.1990315914,
0.2696445286,
-0.0757648647,
0.0998394564,
0.2321339548,
0.1680523902,
-0.0124237966,
-0.0129712718,
-0.1786152422,
0.1300778389,
-0.2532230318,
0.4477961063,
0.4378334582,
0.3089985251,
-0.0724686682,
0.0309738703,
-0.1884551942,
0.1401495337,
-0.1955520511,
-0.0951176807,
-0.2162395418,
-0.1527876407,
-0.1156388298,
-0.0487922877,
-0.3362257779,
-0.0385467596,
-0.2555797994,
-0.0223913379,
-0.0252563376,
-0.3975225091,
0.0080473209,
-0.3003572822,
-0.1571476907,
0.1437077671,
0.269433558,
0.495665431,
0.2392159551,
-0.1024478674,
0.2482334375,
-0.2371188253,
0.336122632,
0.2244513482,
-0.2408750355,
0.1394230276,
-0.0071254205,
-0.0012074526,
0.0741442889,
0.2098388672,
-0.2156433612,
0.4213054478,
0.4520273805,
-0.6470118165,
-0.2663901746,
0.0020059075,
0.2271243334,
-0.1412023157,
-0.0937134102,
0.4196791947,
0.162727803,
0.4252471328,
-0.1409704387,
0.1292598099,
0.24136962,
-0.4877030551,
0.2607188523,
-0.2052839398,
0.3699522018,
0.4345866144,
0.0155134685,
-0.6833723187,
-0.2294600159,
0.1836051345,
-0.0996365324,
-0.26576823,
0.2009209692,
-0.1180144101,
-0.1178950071,
-0.2908833325,
0.2428508401,
-0.2789720893,
-0.3123996258,
-0.0172796082,
-0.2478000224
] |
https://github.com/huggingface/datasets/issues/137 | Tokenized BLEU considered harmful - Discussion on community-based process | Didn't we have a slide and discussion at WMT admitting that, for production-quality models, BLEU doesn't correlate with human eval anyway?
| https://github.com/huggingface/nlp/blob/7d1526dfeeb29248d832f1073192dbf03ad642da/metrics/bleu/bleu.py#L76 assumes the inputs are tokenized by the user. This is bad practice because the user's tokenizer is usually not the same as the one used by `mteval-v13a.pl`, the closest thing we have to a standard. Moreover, tokenizers are like window managers: they can be endlessly customized and nobody has quite the same options.
As @mjpost reported in https://www.aclweb.org/anthology/W18-6319.pdf BLEU configurations can vary by 1.8. Yet people are incorrectly putting non-comparable BLEU scores in the same table, such as Table 1 in https://arxiv.org/abs/2004.04902 .
There are a few use cases for tokenized BLEU like Thai. For Chinese, people seem to use character BLEU for better or worse.
The default easy option should be the one that's correct more often. And that is sacrebleu. Please don't make it easy for people to run what is usually the wrong option; it definitely shouldn't be `bleu`.
Also, I know this is inherited from TensorFlow and, paging @lmthang, they should discourage it too. | 21 | Tokenized BLEU considered harmful - Discussion on community-based process
https://github.com/huggingface/nlp/blob/7d1526dfeeb29248d832f1073192dbf03ad642da/metrics/bleu/bleu.py#L76 assumes the inputs are tokenized by the user. This is bad practice because the user's tokenizer is usually not the same as the one used by `mteval-v13a.pl`, the closest thing we have to a standard. Moreover, tokenizers are like window managers: they can be endlessly customized and nobody has quite the same options.
As @mjpost reported in https://www.aclweb.org/anthology/W18-6319.pdf BLEU configurations can vary by 1.8. Yet people are incorrectly putting non-comparable BLEU scores in the same table, such as Table 1 in https://arxiv.org/abs/2004.04902 .
There are a few use cases for tokenized BLEU like Thai. For Chinese, people seem to use character BLEU for better or worse.
The default easy option should be the one that's correct more often. And that is sacrebleu. Please don't make it easy for people to run what is usually the wrong option; it definitely shouldn't be `bleu`.
Also, I know this is inherited from TensorFlow and, paging @lmthang, they should discourage it too.
Didn't we have a slide and discussion at WMT admitting that, for production-quality models, BLEU doesn't correlate with human eval anyway?
| [
-0.2491149306,
-0.3357779086,
-0.0347297043,
-0.3980178833,
0.186163336,
-0.223855868,
0.3552843928,
0.139535591,
-0.3892636597,
0.4466582835,
-0.0967211127,
0.2908812165,
-0.1527000517,
0.0279200096,
-0.1170514524,
0.204105854,
0.1373978704,
-0.0091412924,
0.6749676466,
-0.1052772477,
-0.115527913,
-0.2147946507,
0.0487759337,
0.3603989184,
-0.2367159724,
0.1981558949,
0.3498711288,
-0.2481338829,
-0.1169563681,
-0.2331205755,
-0.2685076594,
0.1880478561,
-0.1370757371,
0.0329766162,
-0.0001076734,
-0.3473200202,
0.0011732351,
0.0119110197,
-0.3443154097,
-0.4313926995,
0.1730445623,
-0.0576678067,
-0.073922731,
-0.0539854541,
0.101230748,
-0.0790878236,
0.1463136822,
0.075733766,
0.3050439656,
-0.0967883766,
0.1885268092,
0.3294901252,
-0.547293067,
0.2496244311,
-0.003957747,
0.2622883022,
-0.0547812432,
0.1251738071,
0.0734651983,
0.2872261405,
0.04715655,
-0.0566914044,
0.0409774184,
-0.2722395062,
0.0702086315,
-0.00978358,
-0.1277760267,
-0.1290708333,
0.1420107186,
0.5171826482,
-0.0779175311,
0.1853193194,
-0.2592957318,
-0.1646626443,
0.1634195745,
-0.4901649952,
0.145734027,
0.0001009455,
0.0894526392,
-0.1088161469,
-0.0343419239,
0.1923366785,
0.1737522483,
0.0310320854,
0.122849524,
0.1572471857,
-0.0906208605,
-0.0117216771,
-0.1866638958,
-0.0387263373,
-0.2872308195,
0.143411532,
0.02149936,
-0.0525687225,
-0.2434098423,
-0.0831257105,
-0.1516965181,
-0.4444979727,
0.0388032198,
0.0838737711,
0.4004847109,
0.2629838586,
-0.1080268323,
0.1032515094,
-0.1735085249,
0.1635311842,
-0.1840124726,
-0.2250752896,
0.3822990656,
0.0213677846,
0.3974561691,
0.1239962429,
0.1788042188,
-0.1456838697,
-0.1180795282,
0.1900232136,
-0.3556285501,
-0.1888513863,
-0.7770130038,
-0.0080198953,
-0.2706567645,
-0.0599769801,
0.003641841,
0.1757611334,
-0.2525808513,
-0.0737684444,
-0.1152369156,
0.0448659919,
-0.0611339062,
-0.2473633736,
-0.0125320842,
-0.3729315698,
-0.2087765187,
-0.1156874895,
-0.180707857,
0.00687902,
0.2841665149,
0.1106686592,
0.4803142846,
-0.1324010938,
-0.0027706877,
-0.1013511494,
-0.055522684,
-0.0896623507,
-0.3398228884,
-0.1305009127,
-0.1744974852,
-0.2144024819,
0.0574720241,
0.1234651655,
-0.2911874354,
-0.3235865235,
0.181112811,
0.1271610409,
0.1220851392,
0.130763635,
-0.3616899848,
0.2228198946,
0.033634007,
0.245950833,
0.2967771292,
-0.2095998377,
-0.0243235435,
-0.2422039658,
0.1906647682,
-0.3871697187,
0.0432692766,
-0.2791074514,
0.5192184448,
0.2964475453,
0.3169187307,
0.4025868773,
-0.2807276249,
0.3707182109,
0.0726590976,
0.2284860164,
0.114445366,
0.0976475403,
-0.0794751868,
-0.0209451113,
-0.142535165,
-0.1864725798,
0.0257969648,
-0.0516280569,
0.3966951668,
-0.1670403928,
0.0254639648,
0.0985417888,
0.0494869649,
-0.1148238331,
-0.3548198044,
-0.5579888821,
0.3521685898,
-0.1113124415,
0.1058297902,
-0.0760889277,
0.2169939578,
0.5703738928,
0.3297748566,
-0.3007260263,
-0.1977587938,
-0.4047830403,
0.6597765088,
0.0785533488,
0.1278493404,
0.316110909,
0.4889914393,
0.0977322534,
-0.1304497719,
0.1759993583,
0.1449163258,
-0.387923032,
0.0350165255,
0.0397130735,
0.2069051564,
0.0064133648,
0.0390688889,
0.0081257466,
-0.4279515445,
0.1908796132,
-0.5212846398,
-0.1482560933,
-0.5427176356,
0.1451872289,
0.1458370686,
-0.1477997452,
-0.0008315257,
0.1121124402,
-0.0124796964,
0.2398346514,
-0.0534301959,
-0.0295753069,
-0.2044361085,
0.252240777,
-0.0833940357,
0.0158802439,
-0.4189135432,
0.5335499048,
0.3664587736,
0.1977939457,
-0.351100862,
0.2762395144,
-0.1181575581,
0.1622235477,
0.3843787014,
0.4806502163,
0.1684253514,
-0.0413101465,
-0.0516032018,
-0.2080800235,
-0.105517678,
0.0972292051,
0.0367423221,
-0.1439658105,
0.1675715744,
0.1346843392,
-0.1431774497,
-0.092902109,
-0.2031820714,
-0.0054222732,
0.244196713,
0.0609390028,
0.1806292236,
0.0542812012,
0.5331862569,
-0.2062666714,
0.1067076698,
-0.0775809735,
-0.0115668261,
0.0520080216,
-0.0053720516,
0.1069081873,
-0.144277066,
-0.3583911955,
-0.0926378742,
0.0081977732,
-0.1586505026,
0.1531458795,
-0.0389769562,
0.3430190682,
-0.1362834424,
-0.1561334878,
-0.0443778671,
-0.1271745563,
-0.1358420849,
0.1161140427,
-0.219736442,
0.2930175364,
-0.0165715218,
0.1127934754,
-0.0896849856,
-0.1608656198,
0.2289373577,
0.0212385319,
-0.1587413996,
0.3358255923,
0.1481369585,
0.7075200677,
-0.2578314245,
0.189639613,
0.0150311077,
0.2776115835,
-0.384010613,
0.0889865607,
-0.1946352571,
-0.3346899152,
0.2537211776,
-0.1041298434,
-0.2548139989,
-0.0129502155,
-0.6315752268,
0.0518368259,
0.0044753826,
0.2070014924,
0.1606277227,
-0.5352048874,
-0.4766369164,
-0.1466357261,
-0.1487210095,
-0.1698225439,
-0.0632991418,
-0.0788986981,
0.0721123442,
-0.1897257864,
-0.0883985087,
-0.2601356804,
0.1102479249,
0.0771813765,
0.1701360196,
-0.3146589696,
0.05925804,
-0.1035384685,
-0.0372066088,
0.1083506718,
0.1465889961,
0.2767809331,
-0.1805102527,
0.1025463045,
0.0277048834,
-0.1088034213,
-0.2397816926,
-0.1181821153,
0.0440284088,
0.2457219958,
0.2073964328,
-0.3132623136,
-0.0961778909,
0.2511533499,
-0.1047441289,
-0.1060046405,
-0.1914811879,
-0.2781315744,
0.0661619306,
-0.1178402752,
0.1875627935,
0.0107329171,
0.2696739137,
0.1827254742,
0.6394483447,
0.1039487645,
0.2980147898,
0.6273651123,
0.5705072284,
-0.0594341829,
-0.0164148938,
0.0593585372,
0.1587061137,
0.0083986418,
0.0667038932,
0.0605468936,
0.3135681152,
-0.1482877582,
-0.3254035711,
0.45113343,
-0.1269153059,
0.227526471,
0.1028302312,
-0.183472991,
0.3342121542,
-0.1366464198,
0.1213154942,
0.0884221569,
0.0364704095,
-0.0104184225,
0.1635173261,
0.2236900032,
-0.2778143287,
0.3969776034,
0.2739137113,
-0.0166279171,
-0.0167516693,
-0.1216348112,
0.0847383663,
-0.3916295171,
0.2628650963,
-0.0066001383,
0.682107687,
-0.09340626,
0.0792738125,
0.0447299182,
-0.0611070096,
-0.1512620747,
-0.0286293086,
0.1222137287,
-0.2704930604,
-0.1011151224,
-0.0246297251,
-0.1035888121,
-0.1537909359,
-0.1808053404,
0.3842014372,
0.3214755356,
-0.2883850932,
-0.1265273243,
-0.1201011464,
0.0310468022,
-0.171557337,
0.0255026575,
-0.3829309642,
-0.1697029322,
-0.1091870293,
0.0862321928,
-0.1638846844,
-0.0306877941,
-0.280526638,
-0.016641546,
-0.4479311705,
-0.0697766468,
0.3496541679,
0.0713342279,
-0.2968043089,
0.0560243614,
-0.0998283029,
-0.1421016008,
0.3209998906,
0.0437865704,
-0.1180240735,
-0.2759183049,
-0.4726764262,
-0.0391826741,
-0.3159277737,
0.1876208335,
0.4698005021,
-0.1936871409,
0.4596890509,
0.1652483344,
0.1701923758,
-0.1093983129,
0.3558776677,
0.0933340415,
0.3376341462,
0.0883946493,
-0.1126321554,
-0.1156194955,
-0.0135779604,
-0.2385886908,
-0.0815634355,
0.0567913577,
-0.1895678639,
0.5808913708,
0.7374228835,
0.775637269,
0.178337425,
0.056587752,
0.2356173396,
-0.0151221063,
0.1067235395,
-0.6140140295,
0.1484861821,
-0.2301595658,
-0.24976255,
0.0240747891,
-0.043017447,
-0.039926216,
0.147668764,
0.0856009424,
0.016402917,
-0.0707677975,
0.3859111667,
0.2548271418,
0.2717234492,
0.005037358,
-0.0826181993,
0.103507936,
0.0934237689,
-0.1128808111,
-0.1070169881,
-0.1548114568,
0.1870468259,
-0.1098318025,
0.1068738475,
0.2101287693,
0.0572550185,
-0.457737267,
0.109142974,
0.0542706214,
0.2002636343,
0.3329735398,
0.1272501051,
0.8865144253,
0.4321016669,
0.0522493161,
-0.1075205132,
0.086895287,
0.1058642417,
0.1058273464,
-0.2122652829,
0.3860623538,
-0.1290136427,
0.0208047125,
0.2148113251,
0.4777835906,
-0.141424492,
0.068117708,
-0.1983743906,
0.1213901192,
-0.1612013876,
0.2055467218,
0.2079624683,
0.2873874903,
-0.0521352068,
0.0807133988,
-0.0847520456,
-0.1285315156,
0.0266623516,
0.2749695778,
-0.4813679755,
-0.1052288339,
-0.0779467449,
0.097487241,
-0.3360464275,
0.1934807003,
-0.6088612676,
-0.1146191657,
-0.0163585674,
-0.026394181,
0.0452103689,
-0.1461049616,
-0.0178298578,
-0.3392188847,
-0.2676385045,
-0.2369657308,
0.4567985237,
0.4852994978,
-0.1897080988,
-0.1219143271,
0.0583024062,
-0.1139341891,
0.1198730245,
0.1304613799,
0.0766293034,
-0.0425430611,
0.0220181402,
-0.236604318,
0.0770406574,
-0.2955486178,
-0.100350298,
-0.0611506738,
0.0482702851,
-0.3870337307,
-0.0554677248,
0.1917672455,
0.2615488172,
-0.0250999816,
0.024241183,
-0.3521005213,
-0.0983274132,
-0.4465917945,
0.0942737535,
0.309030652,
-0.0684354454,
-0.297988981,
-0.1364801377,
-0.0203423202,
-0.1440383494,
0.0725727379,
0.1827053577,
0.1109873131,
0.0628782362,
-0.0982584357,
0.3248749971,
0.0486987457,
-0.123682186,
0.1181348339,
0.2344575375,
0.2698456943,
0.0933328122,
0.0864963308,
-0.0431055203,
-0.1543612927,
0.1854563802,
0.3218781948,
0.0153115205,
-0.1317570508,
-0.3005586267,
-0.085459739,
-0.4511831105,
-0.1068734154,
0.2111313641,
-0.1489958912,
-0.6765805483,
0.5133197308,
0.1551616937,
-0.0166075565,
0.186309725,
-0.100345552,
0.2901723683,
-0.1238021404,
0.407145977,
0.8699002862,
-0.0672916397,
0.0254611038,
-0.1722704768,
-0.2336153537,
-0.4984543622,
0.065201968,
-0.2628172934,
-0.0970574692,
0.4935131669,
0.23575598,
-0.05868892,
0.1337692589,
-0.2070181072,
-0.0297146607,
0.5148481727,
0.017848406,
0.1681435704,
0.166158244,
0.1768046468,
0.3574437797,
0.0695941299,
-0.2493186146,
0.0858769193,
0.2473217547,
0.4950658679,
0.1484310478,
-0.3257380724,
-0.1173858345,
-0.1219856963,
-0.2884103954,
-0.1631171703,
0.0093744136,
-0.0569683425,
-0.3132691681,
0.1945052743,
-0.1368418485,
0.1540201008,
-0.7071643472,
0.0881195143,
-0.0194030553,
0.0836518705,
-0.2503425479,
0.1371779591,
0.4700474441,
-0.0295289718,
-0.1994045526,
-0.3230015337,
0.1716654897,
0.1711810976,
0.2245646119,
-0.0988536626,
0.3145774007,
-0.1097394601,
-0.3795018792,
-0.0909532458,
0.4449708462,
0.125759244,
0.2684619427,
0.3025091588,
-0.1292744577,
0.3866562545,
0.0088187531,
-0.139519766,
-0.1878396273,
0.1800677627,
0.0385489874,
-0.2090249062,
0.1225465536,
0.205160588,
0.2142788172,
0.0545149744,
0.0446709134,
-0.348316431,
0.3001550734,
0.3341038823,
-0.1491234004,
0.2284933031,
-0.1657893956,
0.1003110483,
0.2017821819,
0.0780841038,
0.0800427124,
0.050926432,
-0.0703283548,
0.3531655371,
-0.278978169,
0.408829093,
0.5149395466,
0.3129900694,
0.0254856367,
-0.0116534708,
-0.1138350591,
0.1585875601,
-0.14136751,
-0.0180658344,
-0.2098265588,
-0.2153181583,
-0.0428576283,
0.0292324461,
-0.0955212936,
0.1794954985,
-0.2284442931,
0.0105053158,
0.0080247428,
-0.3193148375,
-0.0018460874,
-0.3061868548,
-0.1885701567,
0.0242175795,
0.1980619729,
0.5790302157,
0.2496819049,
-0.1685444266,
0.1697679907,
-0.25932464,
0.3227333426,
0.1401123554,
-0.2081034034,
0.1342633963,
0.0774542019,
0.05449358,
0.1737288386,
0.1709424704,
-0.3139969409,
0.4748364985,
0.4173718393,
-0.6377522945,
-0.2072801739,
0.02896416,
0.2442899942,
-0.1809155643,
-0.0765071064,
0.379945457,
0.1829595864,
0.2499197274,
-0.103651464,
0.0794250667,
0.2229076326,
-0.4927933514,
0.1913879216,
-0.3053245842,
0.2832441032,
0.6400998235,
0.0169494394,
-0.6514304876,
-0.421772629,
0.0981688425,
-0.1173681319,
-0.2218720764,
0.1282018721,
-0.0157385897,
-0.0883965641,
-0.271174252,
0.1746768504,
-0.2746866941,
-0.3154577315,
0.0952092037,
-0.2452499717
] |
https://github.com/huggingface/datasets/issues/137 | Tokenized BLEU considered harmful - Discussion on community-based process | Yes, there are slides like that at WMT every year :) BLEU correlates with human judgment only at coarse levels, and it seems to be getting worse when people try to use it to do model selection among high-performing neural systems.
However, the point isn't whether BLEU is a good metric, but whether your BLEU score can be compared to other BLEU scores. They only can be compared if you use the same reference tokenization (similar to how you [can't compare LM perplexities across different segmentations](https://sjmielke.com/comparing-perplexities.htm)). sacrebleu was an attempt to get everyone to use WMT's reference tokenization (meaning, your system has to first remove its own tokenization) so that you could just compare across papers. This also prevents scores from being gamed. | https://github.com/huggingface/nlp/blob/7d1526dfeeb29248d832f1073192dbf03ad642da/metrics/bleu/bleu.py#L76 assumes the inputs are tokenized by the user. This is bad practice because the user's tokenizer is usually not the same as the one used by `mteval-v13a.pl`, the closest thing we have to a standard. Moreover, tokenizers are like window managers: they can be endlessly customized and nobody has quite the same options.
As @mjpost reported in https://www.aclweb.org/anthology/W18-6319.pdf BLEU configurations can vary by 1.8. Yet people are incorrectly putting non-comparable BLEU scores in the same table, such as Table 1 in https://arxiv.org/abs/2004.04902 .
There are a few use cases for tokenized BLEU like Thai. For Chinese, people seem to use character BLEU for better or worse.
The default easy option should be the one that's correct more often. And that is sacrebleu. Please don't make it easy for people to run what is usually the wrong option; it definitely shouldn't be `bleu`.
Also, I know this is inherited from TensorFlow and, paging @lmthang, they should discourage it too. | 123 | Tokenized BLEU considered harmful - Discussion on community-based process
https://github.com/huggingface/nlp/blob/7d1526dfeeb29248d832f1073192dbf03ad642da/metrics/bleu/bleu.py#L76 assumes the inputs are tokenized by the user. This is bad practice because the user's tokenizer is usually not the same as the one used by `mteval-v13a.pl`, the closest thing we have to a standard. Moreover, tokenizers are like window managers: they can be endlessly customized and nobody has quite the same options.
As @mjpost reported in https://www.aclweb.org/anthology/W18-6319.pdf BLEU configurations can vary by 1.8. Yet people are incorrectly putting non-comparable BLEU scores in the same table, such as Table 1 in https://arxiv.org/abs/2004.04902 .
There are a few use cases for tokenized BLEU like Thai. For Chinese, people seem to use character BLEU for better or worse.
The default easy option should be the one that's correct more often. And that is sacrebleu. Please don't make it easy for people to run what is usually the wrong option; it definitely shouldn't be `bleu`.
Also, I know this is inherited from TensorFlow and, paging @lmthang, they should discourage it too.
Yes, there are slides like that at WMT every year :) BLEU correlates with human judgment only at coarse levels, and it seems to be getting worse when people try to use it to do model selection among high-performing neural systems.
However, the point isn't whether BLEU is a good metric, but whether your BLEU score can be compared to other BLEU scores. They only can be compared if you use the same reference tokenization (similar to how you [can't compare LM perplexities across different segmentations](https://sjmielke.com/comparing-perplexities.htm)). sacrebleu was an attempt to get everyone to use WMT's reference tokenization (meaning, your system has to first remove its own tokenization) so that you could just compare across papers. This also prevents scores from being gamed. | [
-0.3135459721,
-0.2768906951,
-0.051837787,
-0.2917872965,
0.0934212729,
-0.2474936396,
0.2866831124,
0.2192000002,
-0.4277971983,
0.3128698766,
-0.207585901,
0.1104491577,
-0.1642136574,
-0.1205745637,
-0.1374368966,
0.1132957786,
0.1067670807,
-0.0139781153,
0.6649670601,
-0.0207698625,
-0.1770700365,
-0.187254101,
0.0037460893,
0.3304764628,
-0.3724299073,
0.2632550597,
0.2985367179,
-0.1913369149,
-0.1498091072,
-0.3490218222,
-0.2689945996,
0.2102923095,
-0.2063371837,
0.1252578944,
-0.0001022047,
-0.3871834576,
0.0541021377,
-0.0368931592,
-0.4439691007,
-0.3665276766,
0.1544647217,
-0.1669864953,
-0.1151912808,
-0.1171801835,
-0.0134161282,
-0.1435830593,
0.0401785225,
0.1061421484,
0.3251445591,
-0.105837591,
0.2449498773,
0.3034591675,
-0.4683806598,
0.1498444378,
0.0699933246,
0.2710109055,
-0.0925991982,
0.1770910174,
-0.0050249398,
0.3587900996,
0.0353531949,
-0.0747970119,
0.0237668008,
-0.0775673911,
0.0670092702,
-0.088006556,
-0.2721535861,
0.0045973137,
0.1218434796,
0.5070339441,
0.0015665377,
0.1673950255,
-0.3386725783,
-0.0811630636,
0.1015543714,
-0.4909127653,
0.0544762686,
-0.0133014256,
0.1520763636,
-0.0793089494,
0.0021795616,
0.28190732,
0.2130947709,
0.0366322137,
0.0277075749,
0.1824214756,
-0.1342665404,
0.0382129289,
-0.1514034867,
-0.0254612137,
-0.4478259683,
0.1136006787,
0.0265499912,
-0.0206224881,
-0.3019562066,
-0.1138958111,
-0.180983752,
-0.4280619025,
0.0257194638,
0.0539786853,
0.3792001307,
0.2382392287,
-0.0665692315,
0.0849430561,
-0.1064646915,
0.1340884566,
-0.2781982422,
-0.0645572767,
0.3806478679,
0.0334776267,
0.3261174262,
0.1682179421,
0.2315183431,
-0.1194343567,
-0.0887902007,
0.1709562838,
-0.355132848,
-0.1987961084,
-0.8085628748,
-0.0013847455,
-0.1617465168,
-0.1357215196,
0.0229597483,
0.2048790604,
-0.1913790852,
-0.2177049071,
-0.1282641739,
-0.0339847915,
-0.0903066844,
-0.1296689808,
-0.0855021477,
-0.3203369379,
-0.2990044951,
0.0311052278,
-0.1111092865,
0.2265415192,
0.2177427858,
-0.0664368346,
0.3926665783,
-0.0662087128,
0.0135620832,
-0.1394262612,
0.0663148984,
-0.104272075,
-0.4170201719,
-0.1082597822,
-0.1174196675,
-0.1446508765,
-0.0133491559,
-0.0166647229,
-0.2162433416,
-0.271001339,
0.1235540211,
0.1748417169,
0.0567966178,
0.215390265,
-0.3138511181,
0.2010302395,
0.0067013642,
0.0871111527,
0.3875295818,
-0.1698923707,
-0.1422988921,
-0.2447659373,
0.1321947128,
-0.2628275454,
0.0004183265,
-0.3629073501,
0.4552861452,
0.235448882,
0.2896307111,
0.4723252952,
-0.3027027547,
0.2717087269,
0.1163449883,
0.2523094416,
0.1024567932,
0.0904902145,
-0.1697994471,
-0.0509169921,
-0.0876501575,
-0.252535522,
-0.0231535677,
0.0607145689,
0.4108527303,
-0.1739975363,
0.0423739627,
-0.002321041,
0.1505368203,
-0.1329608411,
-0.3309362829,
-0.5472715497,
0.2306470275,
-0.0918668434,
0.0819598511,
-0.1068122089,
0.2979665101,
0.6883990765,
0.3179249167,
-0.2438721955,
-0.0879760385,
-0.3974708617,
0.5804694295,
-0.0651318803,
0.0949912444,
0.107622236,
0.4525400698,
0.1938539743,
-0.0534841269,
0.2195281982,
0.2961949706,
-0.3364751637,
0.0217117947,
0.0140829729,
0.2248197347,
-0.0177141,
0.1083812043,
0.0481033623,
-0.3625596762,
0.1451939642,
-0.4818157256,
-0.232088089,
-0.4947703481,
0.1124652624,
0.2530223429,
-0.1261917204,
0.0631494522,
0.0302841216,
0.0864323899,
0.3047131598,
-0.0851939544,
0.0517082326,
-0.2287273854,
0.1790738851,
0.0435497649,
0.0120683014,
-0.4284942746,
0.5606496334,
0.2933940589,
0.1943798959,
-0.2939880788,
0.2260263413,
-0.0991020352,
0.1268150359,
0.3718376458,
0.4526251256,
0.1289928406,
-0.1137036681,
0.0333750173,
-0.255538106,
-0.1390111297,
0.040377643,
-0.0013857686,
-0.1774315983,
0.1480556875,
0.1533438265,
-0.1985277981,
-0.0082235746,
-0.0935470611,
-0.113037236,
0.1701189578,
-0.031355679,
0.2223934829,
0.035133753,
0.4144183397,
-0.1636602879,
0.1096951589,
0.0765534788,
0.0223658774,
0.0529045984,
0.1112138703,
0.0436987951,
-0.0731371939,
-0.2892230749,
-0.1087960377,
0.0376402289,
-0.1532535404,
0.1441553384,
-0.0483639501,
0.356022805,
-0.0613278896,
-0.1281310618,
-0.0646711588,
-0.1471241564,
-0.0709934533,
0.1334353536,
-0.160614118,
0.3112224936,
-0.055084262,
0.120959051,
0.0132959345,
-0.1642046124,
0.1739343852,
0.0952125713,
-0.095449388,
0.3084384203,
-0.0024333443,
0.707400322,
-0.2083141357,
0.0458784029,
0.0995650366,
0.2048490644,
-0.2296586186,
0.1501952857,
-0.1422425658,
-0.1898704469,
0.2541303933,
-0.0357537791,
-0.2220231593,
-0.082637623,
-0.5311999321,
0.1318362206,
-0.0413249545,
0.1282414645,
0.2059588134,
-0.5025792718,
-0.4749951661,
-0.1504633576,
-0.0743287057,
-0.224839896,
-0.1113214642,
-0.0876679793,
-0.0031403741,
-0.243212834,
-0.0484581776,
-0.2018825114,
0.090864405,
-0.0008778028,
0.153813988,
-0.2386193275,
0.0360032953,
-0.1215343326,
-0.1984671652,
0.1900898218,
0.207591325,
0.1916429996,
-0.2571560442,
0.1882050633,
0.081555061,
-0.1382198334,
-0.2136996984,
-0.0471130386,
0.0370419025,
0.338159591,
0.128073588,
-0.3612490892,
-0.0142396782,
0.3136072457,
-0.1650911868,
0.0089936918,
-0.267355144,
-0.2607002258,
0.0362964198,
-0.2162789851,
0.1994869262,
0.0038545793,
0.1457367837,
0.1224853992,
0.641671598,
-0.0021231717,
-0.0264878962,
0.5659835935,
0.717969954,
0.0041279141,
-0.1526334435,
0.0798189044,
0.2234246433,
-0.0822398886,
0.0420578457,
0.0421514772,
0.405715853,
-0.1733710915,
-0.3698151708,
0.4804109633,
-0.1209398732,
0.0635356829,
0.0604744926,
-0.1702915579,
0.294231981,
-0.0911961272,
0.0525650792,
0.205978632,
0.0299621634,
-0.0783185139,
0.0455713086,
0.2988677919,
-0.3732351959,
0.3826486766,
0.2450174689,
-0.1451512426,
-0.0480048433,
-0.1520751417,
0.1740007699,
-0.3281799555,
0.2320008129,
-0.0149283977,
0.5163074136,
-0.045995269,
0.0073830131,
-0.0164374299,
-0.0909697786,
-0.229249388,
0.006714623,
0.1202261299,
-0.1380391717,
-0.0550658889,
0.0235483442,
-0.0674801469,
-0.1871847063,
-0.1754920781,
0.3741057515,
0.267032057,
-0.2924335301,
-0.0644138157,
-0.0704974905,
0.076105468,
-0.189318195,
0.0398722924,
-0.4901162982,
-0.0322924107,
-0.0888099745,
0.0647251531,
-0.2311671227,
-0.029166311,
-0.1579937786,
-0.0025014591,
-0.460350275,
-0.0593855791,
0.2877704799,
0.1344147027,
-0.3237523437,
0.1645166129,
0.0165825542,
-0.0550507158,
0.3421102166,
0.224314034,
-0.0592533424,
-0.2839717567,
-0.3086963296,
-0.0284666568,
-0.0766311511,
0.0317633823,
0.4103707075,
-0.1020364165,
0.4372869134,
0.1617633551,
0.1972983927,
-0.2993664443,
0.3632665277,
0.0522270091,
0.2916181684,
-0.0139054311,
-0.0761198848,
-0.0174424928,
0.0481396727,
-0.2702102661,
-0.0599427298,
0.3076433539,
-0.1373660117,
0.5109136701,
0.7239359021,
0.7825478911,
0.122141093,
0.1194022745,
0.1865380108,
0.0223678127,
0.1898474097,
-0.390562892,
0.1180923209,
-0.2003885806,
-0.1962486804,
0.0201403331,
-0.0396289714,
-0.0439194366,
0.0889305323,
0.0276267994,
0.0048428811,
-0.0461555794,
0.3588598669,
0.1058223695,
0.2374974191,
0.1095865443,
-0.0569516122,
0.1410302669,
0.18043226,
-0.2120289207,
-0.0806299075,
-0.1090537384,
0.2739861906,
-0.1722732633,
0.1797644943,
0.1267143488,
-0.0359191187,
-0.4334557652,
0.052467633,
0.0259464663,
0.152006194,
0.3283520043,
0.0159811955,
0.7727355361,
0.3557997048,
-0.0424423181,
0.0008840305,
-0.086660035,
0.144026801,
0.0325925983,
-0.3202248812,
0.4579422474,
-0.0804563537,
-0.0029428552,
0.2582782507,
0.5422331691,
-0.0991026163,
0.2184823453,
-0.1154131591,
0.1114744172,
-0.2073842883,
0.20634453,
0.1947824657,
0.2042613328,
-0.0815081969,
0.1459705681,
-0.1154577136,
-0.1760993153,
0.0336232074,
0.3827240467,
-0.4116395414,
-0.1374210566,
-0.0139682163,
0.0277260151,
-0.4150918722,
0.0931421369,
-0.5964987278,
-0.1652956009,
-0.0532292053,
-0.0029556246,
0.0427979752,
-0.1159625649,
-0.0431226641,
-0.3712252676,
-0.1380927712,
-0.1761666238,
0.5500763655,
0.5743539333,
-0.068038024,
-0.0840878338,
0.1526633203,
-0.1294336021,
0.1499758363,
0.0810382888,
0.2317016125,
-0.162360549,
-0.0262844879,
-0.2641329169,
0.2796527147,
-0.3633125424,
-0.0482712314,
-0.1661304682,
0.0123858014,
-0.3028206527,
-0.0695284307,
0.1298305541,
0.1473763436,
0.0080075124,
0.0723859817,
-0.3600256443,
-0.1478526443,
-0.4487480223,
0.0770940781,
0.3181327879,
-0.136517778,
-0.3683606386,
-0.0406298861,
0.0914734155,
-0.1284943521,
0.1236150786,
0.168154195,
0.1460050493,
0.094304055,
-0.2224007249,
0.1836116761,
0.0644031912,
-0.0988318771,
0.1749602407,
0.2933545411,
0.3220138252,
0.161505118,
0.1782367229,
-0.0752097964,
-0.1370180696,
0.1689588279,
0.3891145885,
0.035041824,
-0.0956609324,
-0.2563352287,
-0.1240464821,
-0.41729182,
0.0690467805,
0.2223415673,
-0.1401326656,
-0.6945355535,
0.4876029193,
0.2131174654,
-0.0483807661,
0.1338071525,
-0.1213916615,
0.266777277,
-0.0532375276,
0.3924632072,
0.7362114191,
-0.0372774489,
-0.1512632519,
-0.1831577271,
-0.2062221915,
-0.4393013716,
0.074402079,
-0.3138431907,
-0.0038278012,
0.4468528926,
0.3168329,
0.0150232213,
0.2523870468,
-0.0869462416,
-0.0798945278,
0.7330471873,
0.0549989156,
0.2388370782,
0.107382305,
0.3212558329,
0.4389114678,
0.110002175,
-0.3505595624,
-0.0311523303,
0.1314048916,
0.2895139456,
0.1229553819,
-0.3349922597,
-0.1196228564,
-0.0746511221,
-0.265231967,
-0.1657620668,
-0.087855123,
-0.134184286,
-0.2626985013,
0.1637267023,
-0.1358133256,
0.1129835621,
-0.4940952361,
0.0217208415,
0.0600211248,
0.1324971765,
-0.2049177736,
0.1868080944,
0.4067944586,
-0.0961912572,
-0.3172367215,
-0.1704370379,
0.2152712047,
0.1738676727,
0.2623378038,
-0.0425804108,
0.189367786,
-0.1666000932,
-0.3925199509,
-0.1494615525,
0.3882751167,
0.0997852087,
0.2310328484,
0.1746233106,
-0.3018231988,
0.4194815457,
0.0655083656,
-0.1832059026,
-0.1239531413,
0.1407374591,
-0.0470190942,
-0.3344613314,
0.1462148428,
0.0389604233,
0.2136740088,
0.0602509379,
0.1322595328,
-0.2523956299,
0.3149112463,
0.3648403883,
-0.2811655402,
0.2794993818,
-0.0469733886,
0.1297310293,
0.1206571236,
0.2035243064,
-0.0275658797,
0.0962565541,
-0.10820207,
0.3452295959,
-0.298946023,
0.367492646,
0.4220760763,
0.2841751277,
-0.1640427709,
0.0246415772,
-0.1880401224,
0.1937731653,
-0.1932514161,
-0.0404879861,
-0.1663773656,
-0.2015751153,
-0.0442332104,
-0.002389716,
-0.140488863,
0.1046605706,
-0.2722038329,
-0.0407934263,
-0.0068743355,
-0.4356755316,
-0.0047318484,
-0.2395194024,
-0.263361305,
0.125331223,
0.2563939095,
0.5456877351,
0.2020895928,
-0.0291165076,
0.1459059268,
-0.2464654893,
0.3427481651,
0.1208006889,
-0.0803656131,
0.0564775616,
0.0297699124,
0.1523704827,
0.238037169,
0.2812534273,
-0.2469467968,
0.4508233666,
0.3743040264,
-0.6172068119,
-0.2060280889,
-0.059408661,
0.2945281267,
-0.1835799515,
-0.0771441609,
0.3536558747,
0.2103451639,
0.3012429476,
-0.042462945,
0.0642011017,
0.2312903404,
-0.4930183291,
0.2911452055,
-0.2579021752,
0.2946457863,
0.5700721145,
-0.001590446,
-0.6685948372,
-0.3495565355,
0.1682344973,
-0.0531297214,
-0.3244285285,
0.1273412406,
0.0007561204,
-0.1607610583,
-0.2262654901,
0.1748574525,
-0.351477176,
-0.360573709,
0.0551533587,
-0.1777176559
] |
https://github.com/huggingface/datasets/issues/137 | Tokenized BLEU considered harmful - Discussion on community-based process | I do not consider as a sufficient solution switching this library's default metric from BLEU to the wrapper around SacreBLEU.
As currently implemented, the wrapper allows end users to toggle SacreBLEU options, but doesn't pass along the SacreBLEU signature. As @mjpost showed in [Post18](https://www.aclweb.org/anthology/W18-6319.pdf), it's simply not credible to assume that people will stick to the defaults, therefore, the signature is necessary to be explicit about what options were used.
In addition to the `v13a` or `intl` options for the SacreBLEU `tokenize` argument, which was pointed out earlier, papers frequently differ on whether they lowercase text before scoring (`lowercase`) and the smoothing method used (`smooth_method`). BLEU scores can differ substantially (over 1 BLEU) just by changing these options.
Losing the SacreBLEU signature is a regression in reproducibility and clarity.
(Perhaps this should belong in a separate issue?) | https://github.com/huggingface/nlp/blob/7d1526dfeeb29248d832f1073192dbf03ad642da/metrics/bleu/bleu.py#L76 assumes the inputs are tokenized by the user. This is bad practice because the user's tokenizer is usually not the same as the one used by `mteval-v13a.pl`, the closest thing we have to a standard. Moreover, tokenizers are like window managers: they can be endlessly customized and nobody has quite the same options.
As @mjpost reported in https://www.aclweb.org/anthology/W18-6319.pdf BLEU configurations can vary by 1.8. Yet people are incorrectly putting non-comparable BLEU scores in the same table, such as Table 1 in https://arxiv.org/abs/2004.04902 .
There are a few use cases for tokenized BLEU like Thai. For Chinese, people seem to use character BLEU for better or worse.
The default easy option should be the one that's correct more often. And that is sacrebleu. Please don't make it easy for people to run what is usually the wrong option; it definitely shouldn't be `bleu`.
Also, I know this is inherited from TensorFlow and, paging @lmthang, they should discourage it too. | 137 | Tokenized BLEU considered harmful - Discussion on community-based process
https://github.com/huggingface/nlp/blob/7d1526dfeeb29248d832f1073192dbf03ad642da/metrics/bleu/bleu.py#L76 assumes the inputs are tokenized by the user. This is bad practice because the user's tokenizer is usually not the same as the one used by `mteval-v13a.pl`, the closest thing we have to a standard. Moreover, tokenizers are like window managers: they can be endlessly customized and nobody has quite the same options.
As @mjpost reported in https://www.aclweb.org/anthology/W18-6319.pdf BLEU configurations can vary by 1.8. Yet people are incorrectly putting non-comparable BLEU scores in the same table, such as Table 1 in https://arxiv.org/abs/2004.04902 .
There are a few use cases for tokenized BLEU like Thai. For Chinese, people seem to use character BLEU for better or worse.
The default easy option should be the one that's correct more often. And that is sacrebleu. Please don't make it easy for people to run what is usually the wrong option; it definitely shouldn't be `bleu`.
Also, I know this is inherited from TensorFlow and, paging @lmthang, they should discourage it too.
I do not consider as a sufficient solution switching this library's default metric from BLEU to the wrapper around SacreBLEU.
As currently implemented, the wrapper allows end users to toggle SacreBLEU options, but doesn't pass along the SacreBLEU signature. As @mjpost showed in [Post18](https://www.aclweb.org/anthology/W18-6319.pdf), it's simply not credible to assume that people will stick to the defaults, therefore, the signature is necessary to be explicit about what options were used.
In addition to the `v13a` or `intl` options for the SacreBLEU `tokenize` argument, which was pointed out earlier, papers frequently differ on whether they lowercase text before scoring (`lowercase`) and the smoothing method used (`smooth_method`). BLEU scores can differ substantially (over 1 BLEU) just by changing these options.
Losing the SacreBLEU signature is a regression in reproducibility and clarity.
(Perhaps this should belong in a separate issue?) | [
-0.2754621804,
-0.2523215413,
0.0150290253,
-0.3404410481,
0.2117930949,
-0.3596955538,
0.1853222698,
0.3614327013,
-0.3344032764,
0.3967299461,
0.0437218472,
0.3229064643,
-0.1908611357,
0.0206782371,
-0.1860466003,
0.0257370993,
0.0594055429,
-0.0886750519,
0.6912767291,
-0.0719551295,
-0.1700498313,
-0.1265845448,
0.0087742703,
0.1469752789,
-0.1182375997,
0.3319084942,
0.3068476915,
-0.2342269421,
-0.3007889986,
-0.326002717,
-0.0953564197,
0.2849738002,
-0.2850319445,
0.1056506559,
-0.0001081686,
-0.3039608598,
0.0533858985,
-0.1401548833,
-0.1782736927,
-0.4625362754,
0.1213940531,
-0.2437462658,
-0.1138692498,
-0.154453665,
-0.0162541643,
-0.1707026958,
0.0801404342,
0.0198842119,
0.3460752666,
0.0222151224,
0.1744836718,
0.2951715887,
-0.4948261976,
0.189050436,
-0.0312422924,
0.2374393642,
-0.0844694898,
0.2880868912,
-0.0362243615,
0.3136651218,
-0.1438013464,
-0.0414783023,
-0.0263566393,
-0.094721362,
0.1497692317,
-0.0572513156,
-0.281672895,
0.0068681715,
0.0345946066,
0.493599683,
-0.0878520459,
-0.0055464753,
-0.2163963318,
-0.105345495,
0.0727965683,
-0.4867215455,
0.1393390298,
-0.0989823192,
0.1351223886,
-0.2426532954,
0.0057269731,
0.174647212,
0.0872157142,
0.1095080823,
-0.0680326521,
0.019090347,
-0.1622908115,
0.0086815869,
-0.0108172335,
0.0278704073,
-0.4833963811,
0.2477413714,
0.1340902746,
-0.0004386781,
-0.1850898117,
-0.0631029829,
-0.0277449358,
-0.5770325661,
-0.0194552541,
0.1403995901,
0.3119617105,
0.3449693024,
-0.2340866774,
0.1241529286,
-0.3108345866,
0.166584596,
-0.1009587795,
-0.2342417389,
0.4526523054,
0.1669718027,
0.4540479481,
0.0995848253,
0.2723418772,
-0.2017757446,
-0.0753202438,
0.2687523067,
-0.2019762993,
-0.1338175982,
-0.6423498988,
0.0248230044,
0.0201712307,
-0.1173329651,
0.1609816402,
0.1125366762,
-0.3188555539,
0.0448209308,
-0.024975339,
0.052574303,
-0.1805683076,
-0.0498968959,
-0.0631350726,
-0.1982994825,
-0.2298301607,
-0.0254419111,
-0.0078391051,
0.0413171276,
0.2758933306,
0.10149239,
0.5700215101,
-0.0659457296,
0.08500956,
-0.003418508,
0.0311564486,
-0.1083388999,
-0.4364650846,
-0.1272359937,
-0.0389608257,
-0.170579046,
-0.0058358582,
-0.0333690792,
-0.3677681386,
-0.3043262362,
0.1216994226,
0.1472864598,
-0.0167445727,
0.1506095231,
-0.4524775445,
0.1997805685,
-0.1081036106,
0.0593561195,
0.2417583913,
-0.1245699301,
-0.1582511812,
-0.2411295772,
0.2471062541,
-0.3424714506,
0.1747466773,
-0.3750630915,
0.4064897597,
0.1518935263,
0.2413394004,
0.2540330887,
-0.23836191,
0.1914659292,
0.1538758576,
0.2080124617,
0.1161468327,
-0.1404010355,
-0.2718496323,
-0.1948824525,
-0.0188464914,
-0.3495473266,
0.0538357683,
0.02476345,
0.4324913323,
-0.18818748,
-0.0882968009,
0.0986308903,
0.0389308445,
-0.1022560894,
-0.3629042804,
-0.6038556695,
0.0815445781,
-0.0762138888,
0.2625018656,
0.0183705315,
0.1317542791,
0.6068993807,
0.1456057131,
-0.1953678131,
-0.0812745467,
-0.2756706774,
0.6100923419,
-0.1888051629,
0.2301252186,
0.1286761463,
0.3836823106,
0.1247559488,
-0.104550831,
0.1484700143,
0.0867831185,
-0.3845896125,
-0.1050524637,
-0.0811832771,
0.3070403337,
0.1821349561,
0.0624114014,
-0.0500541702,
-0.4763344824,
0.1471548378,
-0.5149648786,
-0.208021611,
-0.4747826457,
0.2136284411,
0.1432300955,
-0.158978492,
0.1644805968,
0.1681166291,
0.1220599636,
0.3748022616,
0.0250546876,
-0.0488164686,
-0.2073415518,
0.2976346612,
0.0177840441,
0.1419629753,
-0.4085461497,
0.5593421459,
0.3624279797,
0.1577279717,
-0.3639056981,
0.1839716285,
-0.2214429677,
0.1356984675,
0.103171818,
0.586831212,
0.10481029,
-0.0521511585,
0.0152480491,
-0.1642199159,
-0.2311974168,
-0.0265011005,
-0.1726714373,
-0.2763185203,
0.0324626714,
-0.013800865,
-0.1483165771,
-0.0102155786,
-0.1258918941,
-0.0296059381,
0.211774528,
0.150381431,
0.1223945394,
0.2029441297,
0.5657807589,
-0.1657810062,
0.0235721804,
0.1294999421,
0.0724494606,
-0.031214416,
0.0524430238,
0.1006216928,
-0.0838458911,
-0.2964494526,
-0.1408364177,
-0.0505331866,
-0.2003327906,
0.1889407933,
-0.0410735346,
0.2605825365,
-0.1415334493,
0.0171236135,
0.0461694188,
-0.0348759741,
-0.1211703047,
0.1572965235,
-0.2206387669,
0.2652709484,
-0.0518266186,
-0.0629637763,
-0.0514929034,
-0.2756366432,
0.2165700197,
0.1610554904,
-0.2347651124,
0.3221915662,
0.0509922579,
0.7734153271,
-0.2841901183,
-0.0480797403,
0.080038555,
0.1919493377,
-0.1521675885,
0.0710824504,
-0.1971362084,
-0.28823331,
0.2453034967,
-0.123028703,
-0.1691331267,
-0.0259956568,
-0.6473639011,
0.0570210852,
0.0846213847,
0.1302386671,
0.2541701198,
-0.4206206799,
-0.3183861077,
-0.1246135533,
-0.0045478982,
-0.1607358605,
-0.0812280402,
-0.0185567141,
-0.0673045591,
-0.0994579494,
-0.1805820465,
-0.3190953434,
0.2195562273,
-0.024737617,
0.0741143897,
-0.2699486315,
0.1559746563,
-0.202283904,
-0.1049693674,
0.187756896,
0.3002032042,
0.2783683538,
-0.1742996871,
0.0282514933,
0.0802434981,
-0.1298370659,
-0.2182055116,
-0.0646494254,
0.0278466921,
0.5163826942,
0.1747504622,
-0.412368238,
-0.3798098266,
0.2071431428,
-0.0421927199,
-0.0351001769,
-0.2209964693,
-0.154241249,
0.0020487753,
-0.190115571,
0.0419291742,
0.0104150446,
0.241317302,
-0.0365923047,
0.5588753819,
0.0531290285,
0.0504405722,
0.6644157767,
0.7593042254,
-0.0096891867,
-0.1742101908,
0.0397706516,
0.2477198839,
0.0135214282,
0.1080682054,
0.0331628136,
0.3516508341,
-0.0321333259,
-0.1371164471,
0.2237672955,
-0.0456755906,
0.1619409919,
0.068517074,
-0.0137169501,
0.2787083685,
-0.2318699509,
0.1013231799,
0.0676321238,
0.0986976698,
-0.0711845681,
0.1271310151,
0.0789783299,
-0.2700660825,
0.4005423188,
0.3368864954,
-0.0587394126,
0.0102422442,
-0.1101641953,
0.1993377656,
-0.3824781477,
0.2657040656,
-0.0751998052,
0.57523489,
-0.0746021122,
-0.0240211803,
-0.0173617993,
-0.1876343191,
0.0007758519,
0.0691756532,
-0.025318658,
-0.0942798108,
0.066778861,
-0.1650066823,
-0.0758967176,
-0.0452966504,
0.0164157189,
0.3930718303,
0.3482967317,
-0.4058701992,
-0.1958321184,
-0.0629339889,
0.0570918955,
-0.0748101249,
0.069513686,
-0.4463498592,
-0.2412395924,
-0.0490482859,
0.1686135381,
-0.1845020801,
0.0791845992,
-0.1489431709,
0.1644649208,
-0.4173015058,
-0.2147605568,
0.25114429,
-0.041902788,
-0.1035648733,
0.0442010835,
-0.0292809159,
-0.1310569346,
0.2603242993,
0.1678569764,
-0.1522381008,
-0.2501450181,
-0.3347629607,
0.0205854364,
-0.145627439,
0.0475460775,
0.4614112973,
-0.2092405558,
0.5445095897,
0.1642322838,
0.3161983788,
-0.312500596,
0.5190659761,
0.0436016172,
0.1755461544,
0.0347887538,
-0.1021185666,
0.1291784942,
0.1523214728,
-0.2497830093,
0.06319502,
0.1665421575,
-0.0888472199,
0.4626338184,
0.740138948,
0.8428679705,
0.2177070379,
-0.0320534445,
0.2129055709,
-0.0446675047,
0.1443546563,
-0.5278512836,
0.133858189,
-0.1948660314,
-0.3230533302,
-0.0298950411,
-0.0854223594,
-0.1247150227,
-0.0828240961,
0.0162193775,
-0.0688037649,
-0.1390706301,
0.2516281009,
0.1149615571,
0.282792896,
-0.118962653,
-0.1095579788,
0.2673262656,
0.1080277935,
-0.2531188428,
-0.1006172821,
-0.0463678651,
0.1394368559,
0.0164076611,
0.0881399065,
0.10826502,
-0.0877602175,
-0.3123390079,
-0.1063388065,
0.1527081728,
0.2015446275,
0.3342869282,
0.0425666124,
0.9651345611,
0.385334909,
-0.1243094876,
0.0456685573,
-0.070199132,
0.2441376746,
0.1586636454,
-0.3231439888,
0.4519590139,
-0.0594233498,
0.0911645144,
0.1279835105,
0.5075562,
-0.0959440619,
0.2298791856,
-0.2519477308,
0.1899124682,
-0.2021711618,
0.221261248,
0.1844713986,
0.2525806129,
-0.0824064314,
0.110495761,
-0.0369910747,
-0.0545950606,
0.1019167304,
0.1210892126,
-0.4966748953,
-0.0397407599,
0.1212442145,
0.1668066829,
-0.5853478312,
0.0432196073,
-0.5460819006,
-0.0875242427,
-0.0140603678,
-0.1513988972,
0.0507147014,
-0.2165407538,
0.0371553227,
-0.330894053,
-0.1482489109,
-0.1380578876,
0.414191097,
0.3518090844,
-0.1259292811,
-0.0658847019,
0.049455598,
-0.191894576,
0.2395288497,
-0.0224026777,
0.2596872449,
-0.1047191024,
-0.0618474633,
-0.2455209792,
0.1223445386,
-0.3115982711,
0.1537913233,
-0.001735365,
0.0077155596,
-0.2866835296,
0.074749656,
0.1957451701,
0.0206993986,
-0.0793009251,
0.0688395649,
-0.3790502548,
-0.0977245346,
-0.5446701646,
0.12803635,
0.2180263251,
-0.1567626148,
-0.2039008588,
-0.0855124444,
-0.0936804637,
-0.1068140045,
0.1108098626,
0.2017198205,
0.0471960194,
0.0561058745,
-0.3299782872,
0.3696166575,
0.2226052582,
-0.2691074014,
0.3405195773,
0.2849810123,
0.2048348486,
0.1909549683,
-0.052900888,
-0.0580233745,
-0.0697702169,
0.1431017369,
0.3519707322,
-0.058514718,
-0.137223348,
-0.1452507377,
-0.1037767678,
-0.395381093,
0.0443784632,
0.1021110788,
-0.1861859113,
-0.5499743223,
0.3633192182,
0.1897131801,
0.0583072715,
0.1050949022,
-0.2831094563,
0.3252621889,
0.0049520149,
0.3199233711,
0.8110061288,
0.0550709181,
0.0376191102,
-0.1587774158,
-0.1927164197,
-0.4535202384,
0.2451011539,
-0.3284194767,
-0.1791835576,
0.3774271905,
0.3361743391,
-0.0284707546,
0.1215714887,
-0.1943570226,
0.1049060822,
0.7144163251,
0.1136486307,
0.1442252249,
-0.0147128692,
0.1472209841,
0.341580987,
0.1295297593,
-0.21777758,
0.1098510101,
0.2844252586,
0.5538893342,
0.0397788957,
-0.4556815624,
-0.0375085175,
-0.0527021512,
-0.2113132775,
-0.2396552861,
-0.1923447847,
-0.1665892005,
-0.3287784457,
0.2214091271,
-0.1422387809,
0.1728058755,
-0.5128061771,
0.0530704148,
0.0494404957,
0.0916843489,
-0.2885288298,
0.1962187737,
0.5878982544,
-0.0366566554,
-0.1349347234,
-0.219323352,
0.0615802519,
0.1573636532,
0.311217308,
-0.0482836664,
0.2059927285,
-0.0467672348,
-0.4113274217,
0.0115142344,
0.3745452464,
0.1042154357,
0.2700227499,
0.3401530981,
-0.276666522,
0.2666607499,
0.0687849224,
-0.156205073,
-0.0245248172,
0.0578131862,
0.0582389198,
-0.221509397,
0.3447812498,
0.3188419342,
0.2900840342,
0.0622412376,
-0.0034844715,
-0.3254078925,
0.1470030546,
0.3225289285,
-0.1050748378,
0.3041754663,
-0.2578831315,
0.1071747541,
0.3149328828,
0.0865032151,
-0.0894462243,
-0.0131633282,
-0.1644264609,
0.1942094415,
-0.2547185123,
0.3230779767,
0.596503675,
0.4035930037,
0.0537025854,
-0.0425283387,
-0.097950682,
0.1583047807,
-0.09846697,
0.0471698083,
-0.0377768427,
-0.3022097051,
-0.1488030106,
0.0870132521,
-0.113764964,
0.0482136272,
-0.2075437754,
-0.0428389795,
0.0288211722,
-0.4005047381,
0.0336142071,
-0.2890283763,
-0.1741443574,
0.0606938042,
0.2600747943,
0.4975218475,
0.262214154,
-0.1672335714,
0.1346782893,
-0.2747910321,
0.2201878428,
0.2679387033,
-0.3194968104,
0.00319668,
-0.0054447795,
0.2004410326,
0.2150099874,
0.1578170508,
-0.3420921564,
0.3807728887,
0.397405833,
-0.6234907508,
-0.2568432093,
0.0357194878,
0.1461794078,
-0.1603847146,
-0.0514154248,
0.4731211066,
0.1850258708,
0.4181154966,
-0.1391533762,
-0.0352266282,
0.2448301613,
-0.379057169,
0.294257462,
-0.1554787457,
0.3669972718,
0.5302298069,
0.0581173711,
-0.7508435845,
-0.3180315197,
0.047892537,
-0.0993854031,
-0.3459320068,
0.1738741398,
-0.0959160253,
-0.0435946025,
-0.3346837759,
0.3441050053,
-0.0979178548,
-0.3366892934,
0.0911637396,
-0.2112998068
] |
https://github.com/huggingface/datasets/issues/137 | Tokenized BLEU considered harmful - Discussion on community-based process | Thanks for sharing your thoughts. This is a very important discussion.
Also one of the first items on our mid-term roadmap (we will try to clean it and share it soon) is to introduce mechanisms to get high-quality traceability and reproducibility for all the processes related to the library.
So having the signature for `sacrebleu` is really important!
Regarding BLEU, I guess we can just remove it from the canonical metrics included in the repo itself (it won't prevent people to add it as "user-metrics" but at least we won't be promoting it).
On a more general note (definitely too large for the scope of this issue) we are wondering, with @srush in particular, how we could handle the selection of metrics/datasets with the most community-based and bottom-up approach possible. If you have opinions on this, please share! | https://github.com/huggingface/nlp/blob/7d1526dfeeb29248d832f1073192dbf03ad642da/metrics/bleu/bleu.py#L76 assumes the inputs are tokenized by the user. This is bad practice because the user's tokenizer is usually not the same as the one used by `mteval-v13a.pl`, the closest thing we have to a standard. Moreover, tokenizers are like window managers: they can be endlessly customized and nobody has quite the same options.
As @mjpost reported in https://www.aclweb.org/anthology/W18-6319.pdf BLEU configurations can vary by 1.8. Yet people are incorrectly putting non-comparable BLEU scores in the same table, such as Table 1 in https://arxiv.org/abs/2004.04902 .
There are a few use cases for tokenized BLEU like Thai. For Chinese, people seem to use character BLEU for better or worse.
The default easy option should be the one that's correct more often. And that is sacrebleu. Please don't make it easy for people to run what is usually the wrong option; it definitely shouldn't be `bleu`.
Also, I know this is inherited from TensorFlow and, paging @lmthang, they should discourage it too. | 138 | Tokenized BLEU considered harmful - Discussion on community-based process
https://github.com/huggingface/nlp/blob/7d1526dfeeb29248d832f1073192dbf03ad642da/metrics/bleu/bleu.py#L76 assumes the inputs are tokenized by the user. This is bad practice because the user's tokenizer is usually not the same as the one used by `mteval-v13a.pl`, the closest thing we have to a standard. Moreover, tokenizers are like window managers: they can be endlessly customized and nobody has quite the same options.
As @mjpost reported in https://www.aclweb.org/anthology/W18-6319.pdf BLEU configurations can vary by 1.8. Yet people are incorrectly putting non-comparable BLEU scores in the same table, such as Table 1 in https://arxiv.org/abs/2004.04902 .
There are a few use cases for tokenized BLEU like Thai. For Chinese, people seem to use character BLEU for better or worse.
The default easy option should be the one that's correct more often. And that is sacrebleu. Please don't make it easy for people to run what is usually the wrong option; it definitely shouldn't be `bleu`.
Also, I know this is inherited from TensorFlow and, paging @lmthang, they should discourage it too.
Thanks for sharing your thoughts. This is a very important discussion.
Also one of the first items on our mid-term roadmap (we will try to clean it and share it soon) is to introduce mechanisms to get high-quality traceability and reproducibility for all the processes related to the library.
So having the signature for `sacrebleu` is really important!
Regarding BLEU, I guess we can just remove it from the canonical metrics included in the repo itself (it won't prevent people to add it as "user-metrics" but at least we won't be promoting it).
On a more general note (definitely too large for the scope of this issue) we are wondering, with @srush in particular, how we could handle the selection of metrics/datasets with the most community-based and bottom-up approach possible. If you have opinions on this, please share! | [
-0.0818870068,
-0.1245273426,
-0.0124914898,
-0.2027842253,
0.1472495347,
-0.3798783123,
0.2327238768,
0.2167262584,
-0.3655439913,
0.4332472384,
-0.0330455415,
0.3025976121,
-0.1015590504,
-0.023105111,
-0.06225238,
0.0280107968,
0.0301388688,
-0.0420778692,
0.582521677,
-0.0730279684,
-0.2260935307,
-0.1260981858,
0.1246969253,
0.3257728219,
-0.1314589381,
0.1447941214,
0.3365075886,
-0.2166614532,
-0.3565537632,
-0.2769581079,
-0.1404506117,
0.3231076002,
-0.2540126145,
0.2577392459,
-0.0001069882,
-0.4084025025,
0.0452208333,
-0.0130942026,
-0.1912571937,
-0.4243075252,
0.159482643,
-0.0473006628,
-0.0152657432,
-0.118846871,
0.2306432128,
-0.0742477328,
-0.0054342868,
0.0063781394,
0.3002330959,
-0.0364048816,
0.1854625046,
0.4392628968,
-0.5508164167,
0.1971773803,
0.0340310074,
0.3261633813,
-0.1520133168,
0.2678830326,
0.2389595658,
0.3190006614,
-0.0405546501,
0.0115692476,
-0.035670273,
-0.1282537431,
0.1492724568,
-0.0841498598,
-0.1127898544,
-0.0924190059,
0.0481292047,
0.5816909075,
-0.0507142171,
0.0061403951,
-0.2000897825,
-0.1411980838,
0.136650458,
-0.6313545108,
0.1675871909,
-0.0666439906,
0.0785958469,
-0.17256926,
-0.0981674567,
0.1102956831,
0.0271077044,
0.1739037484,
0.1366736889,
0.1451787204,
-0.1113367975,
0.033086393,
-0.0647933558,
0.0700323507,
-0.314614743,
0.1770355701,
0.0844018161,
-0.0167074911,
-0.1335649043,
-0.1489965916,
-0.0528644212,
-0.4975381196,
0.1695334911,
0.1334263384,
0.273873359,
0.2115941942,
-0.1975946873,
0.1667268276,
-0.0983181745,
0.183269605,
-0.1140598953,
-0.2469257712,
0.5300055146,
0.1867014468,
0.5439881086,
0.2406796068,
0.1755177826,
-0.1962686926,
-0.1066871062,
0.2655932307,
-0.2863334715,
-0.2572816312,
-0.6572712064,
0.0352056101,
-0.0842981935,
-0.1380370706,
0.1935327351,
0.0698648617,
-0.2418752462,
0.0396696888,
-0.1248394176,
0.1039014533,
-0.1976496577,
0.0453195833,
-0.0443244539,
-0.2019355744,
-0.2791755497,
-0.030184608,
0.0450528078,
-0.0970881805,
0.3239655793,
0.0443930514,
0.5222079158,
-0.1612738371,
-0.0141980965,
-0.0665858015,
-0.1375817358,
0.0075466349,
-0.4400565326,
-0.0836923495,
-0.1814333647,
-0.1485815197,
-0.1542130113,
0.0515525416,
-0.3326389492,
-0.348035872,
0.0988400429,
0.091690205,
-0.0631539896,
0.1043325812,
-0.5079060197,
0.1652384698,
-0.0534171462,
0.3217257261,
0.3081630468,
-0.0437035933,
-0.1204959378,
-0.2699185908,
0.1820603758,
-0.267365545,
0.102195479,
-0.3500091732,
0.3089856505,
0.1232980564,
0.2470035702,
0.416269958,
-0.2819535136,
0.2708137631,
0.1471827626,
0.1384108365,
0.1858866513,
-0.1708895862,
-0.1119876653,
-0.1249221116,
-0.100658603,
-0.2894632816,
0.0726192743,
-0.0181345493,
0.3934050202,
-0.3221137226,
-0.0021631471,
0.0995085984,
-0.0746621713,
-0.0937060043,
-0.2949597836,
-0.6365936399,
0.1811715961,
-0.0640155226,
0.2618018389,
-0.0739235803,
0.1493518203,
0.5474885702,
0.1622540802,
-0.2383558154,
-0.0671943575,
-0.2915121019,
0.6991119385,
-0.056601651,
0.1714497656,
0.169024244,
0.3516166508,
0.0984459445,
-0.1594758332,
0.0942375734,
0.102467753,
-0.3705074489,
-0.1538806111,
0.085451901,
0.3287083507,
0.1383348703,
0.0405932553,
-0.1520901471,
-0.4923218191,
0.1525607705,
-0.5571347475,
-0.203698054,
-0.5812087655,
0.2410836667,
0.2647252977,
-0.1177807599,
0.0340830125,
0.1121774241,
0.1171179637,
0.3213677108,
0.0805637687,
-0.082517609,
-0.1740755886,
0.2082173675,
0.0185835306,
0.1545181423,
-0.2574834228,
0.6626389027,
0.5278888941,
0.2922982872,
-0.29538095,
0.002391472,
-0.2019234896,
0.1292420179,
0.2877387404,
0.5323764682,
-0.0018848827,
-0.0358635709,
-0.0381866135,
-0.1980606169,
-0.2115884125,
0.0169112757,
-0.0812576115,
-0.1598337442,
0.1188877448,
0.0781566054,
-0.2059928179,
0.0583184548,
-0.1707791239,
-0.0270366725,
0.3027318418,
0.1237441748,
0.0557777099,
0.1786349416,
0.5540726185,
-0.1804168075,
0.0339523107,
0.0605225042,
0.0683944896,
-0.0285852347,
0.0326615274,
0.0732316896,
-0.0773920044,
-0.3613892198,
-0.1430312544,
0.1695746779,
-0.1167991012,
0.1390596181,
-0.0318720639,
0.3440876305,
-0.1423461437,
0.0464830399,
-0.0277679358,
-0.0538762324,
-0.0934592485,
0.1594302803,
-0.190605402,
0.2088362277,
-0.0212826934,
0.013071931,
-0.1947474778,
-0.1988850236,
0.3032418489,
0.1695008427,
-0.2259408981,
0.3890612125,
0.2144980431,
0.7592885494,
-0.3860780597,
0.1463853717,
-0.0089945411,
0.1416172087,
-0.2407531589,
0.0906019285,
-0.0337106064,
-0.2865644097,
0.4852043092,
-0.0415744744,
-0.15119192,
-0.1072937697,
-0.7395251393,
0.1265030354,
-0.1127200797,
0.213320896,
0.0958523899,
-0.4332282841,
-0.423687011,
-0.1633213162,
-0.1294264197,
-0.2117458284,
-0.0064422623,
-0.1051590517,
-0.0112355733,
-0.0615269244,
-0.1734591573,
-0.3504237235,
0.0531868897,
-0.1200860888,
0.1620349139,
-0.2334783077,
0.1778959483,
-0.1647117734,
-0.1721255034,
0.1713186055,
0.2623413205,
0.2695657611,
-0.2081601322,
0.0154860895,
0.033048939,
-0.1602001339,
-0.2397184372,
0.0083256839,
0.1209513545,
0.3449017704,
0.1680002511,
-0.3970921934,
-0.5138254762,
0.4018009305,
-0.107752718,
0.0158451125,
-0.2317856103,
-0.1203457266,
0.0657152757,
-0.1335250288,
0.0531876273,
-0.1063813493,
0.2502328753,
0.1711598337,
0.583622992,
0.1228611916,
0.1070340574,
0.5068246126,
0.8114045262,
0.005395635,
-0.0740962997,
0.0504551269,
0.4288635552,
0.094258517,
0.0926598981,
0.1649818718,
0.3664278388,
-0.0541515313,
-0.1900215447,
0.3386756778,
0.0103480564,
0.1769567579,
0.1430217773,
0.0082040541,
0.1964697987,
-0.2486140579,
0.1646997184,
0.0811778381,
0.0679917037,
-0.0400023498,
0.0257303286,
0.0939837918,
-0.2488708645,
0.3483305871,
0.304579556,
0.0546901748,
0.0405346379,
-0.1039697677,
0.1161504015,
-0.4229325056,
0.2114216536,
-0.060451597,
0.5206589103,
-0.1848173141,
0.1132846624,
0.1800218374,
-0.0277349614,
-0.147923559,
-0.0034005763,
0.0157108456,
-0.1394663602,
-0.1521193534,
-0.0733043402,
0.0512400828,
-0.0800604448,
-0.0391258821,
0.2699655294,
0.3430531919,
-0.4303209484,
-0.3011677563,
-0.0452261083,
0.0184953753,
-0.1099383906,
-0.0034069254,
-0.2263354212,
-0.3198583126,
-0.1545669138,
0.0949595422,
-0.1078187674,
-0.0230288059,
-0.1868996024,
0.045980528,
-0.3090233505,
-0.0789215416,
0.3344668448,
-0.0043194476,
-0.2447858453,
0.1004080474,
-0.0108827809,
-0.0265456587,
0.227048263,
0.2180061489,
-0.157050088,
-0.2422675788,
-0.3172673881,
0.0060727717,
-0.2187597454,
0.1110729277,
0.5873728991,
-0.1476531327,
0.5054622889,
0.1277807802,
0.2469360977,
-0.2689010799,
0.4203837812,
0.1096117944,
0.2378645539,
-0.042612426,
-0.0586550683,
0.0642316416,
0.1824513525,
-0.3406456113,
0.1243080571,
0.0493108779,
-0.1399399936,
0.488119781,
0.6820533872,
0.9486029148,
0.048591163,
-0.0662659779,
0.2085429579,
-0.1202164814,
0.2622594535,
-0.6480966806,
0.0284752045,
-0.2240748703,
-0.111624822,
-0.0257986207,
-0.0222445503,
-0.0565815791,
-0.1320774108,
0.1193467602,
0.0120920232,
-0.1102347448,
0.2542642057,
0.1482195407,
0.2545380592,
0.0193995144,
-0.2727672756,
0.0965921879,
0.1027327627,
-0.2582749128,
-0.0273496863,
-0.0858016908,
0.1085177585,
-0.0950676128,
0.0794280469,
0.1427856833,
-0.1747994125,
-0.3708381951,
-0.0117370971,
0.1937058717,
0.0838192776,
0.3218393922,
0.0133665279,
1.0088200569,
0.280231446,
-0.0377495103,
0.1045230776,
-0.1014841571,
0.1387185454,
0.0913878977,
-0.1808186322,
0.3549823165,
-0.1826035529,
0.0734122023,
0.0921840146,
0.4235818088,
-0.1495435536,
0.1895076185,
-0.2699932158,
0.2245286554,
-0.0113022598,
0.3491824865,
0.1361858249,
0.268727392,
-0.0086235655,
0.1014510542,
0.0327436067,
-0.1309932917,
0.0639818162,
0.0913366079,
-0.4561840296,
-0.1453894377,
-0.1443600208,
0.158789292,
-0.5640887022,
0.0211052336,
-0.4806111157,
-0.092963241,
-0.047043778,
-0.209301725,
-0.0937465429,
-0.2119069844,
-0.0343817212,
-0.2623496652,
-0.3972581029,
-0.1727912724,
0.4780016243,
0.4465592802,
-0.1847449541,
-0.0732818544,
0.0263589453,
-0.2604837418,
0.1498878747,
0.024707675,
0.1687557101,
-0.1278528273,
-0.0761444494,
-0.2950933278,
0.1716805249,
-0.3109256923,
0.0143055264,
-0.1636410803,
0.0499811284,
-0.1476818025,
0.0125602465,
0.2107366025,
0.1065216735,
-0.0869776681,
-0.0155224614,
-0.5122631192,
-0.1248299032,
-0.5443795323,
0.1313415915,
0.2181087583,
-0.1643406898,
-0.1584192961,
-0.0501495004,
-0.065314725,
-0.0582471564,
0.1735431701,
0.1902838796,
0.0992499068,
0.0434955247,
-0.1439118385,
0.352876544,
0.2970356643,
-0.0670290962,
0.2380245328,
0.4041190445,
0.2627182007,
0.1373496503,
0.1009252965,
-0.0760800615,
-0.0886750668,
0.0872030258,
0.3086192012,
-0.0052411226,
-0.1128636301,
-0.113365829,
-0.0444419496,
-0.3166319132,
-0.013957385,
0.1433968246,
-0.2234318405,
-0.6269466877,
0.4784927368,
0.1365953684,
0.0922522619,
0.1207951233,
-0.1289561838,
0.3484457433,
-0.0992507935,
0.3846876323,
0.9073587656,
0.0232126471,
0.0948704258,
-0.1444478184,
-0.0668537542,
-0.4905070662,
0.2459784746,
-0.3952054381,
-0.168362096,
0.4017069042,
0.2897826731,
0.051758498,
0.1405250877,
-0.3349554241,
0.0645506755,
0.5856604576,
0.0408749543,
0.1640687287,
0.1820465922,
0.2152881026,
0.2936811745,
0.1227067932,
-0.1782299429,
-0.0386111289,
0.2500816286,
0.6316235662,
0.2004632801,
-0.4587745965,
-0.0536151454,
-0.0187725872,
-0.2213174999,
-0.1653883904,
-0.2391542345,
-0.0933973491,
-0.227987811,
0.164783597,
-0.1332664043,
0.1003109962,
-0.4623879194,
0.1629347354,
-0.025216056,
-0.0677805021,
-0.2709767818,
0.065930225,
0.4809461534,
0.054277651,
-0.1677126437,
-0.3265404701,
0.1090090722,
0.1438052058,
0.2817611694,
-0.1133835837,
0.1096931249,
-0.0980449691,
-0.3302259743,
-0.0046820235,
0.4351281524,
0.1858338863,
0.2620582581,
0.286901474,
-0.1878168881,
0.2493180186,
0.0133466143,
-0.144685179,
-0.1115253046,
0.026766628,
-0.0584782921,
-0.1519641429,
0.3079358935,
0.1857693344,
0.2157379985,
0.023984408,
-0.0553951971,
-0.2486843169,
0.2157903165,
0.3891347051,
-0.0930954143,
0.2307754159,
-0.2237198204,
0.1051015034,
0.1636087596,
0.1684736013,
-0.0344291553,
-0.0173892304,
-0.1156632751,
0.2329363078,
-0.376350373,
0.3879481256,
0.5590144396,
0.3002311587,
0.1045147702,
-0.1096532494,
-0.1282135993,
0.2044406682,
-0.1847601086,
-0.0133878822,
-0.0819418356,
-0.3096717894,
-0.2206021845,
0.035608191,
-0.0696328506,
-0.0186209921,
-0.1757167578,
0.0097310338,
0.0133416736,
-0.3776821196,
-0.0208002608,
-0.3679774702,
-0.2008003891,
0.1272328645,
0.3974535167,
0.5252463222,
0.3474842608,
-0.1461521089,
0.2490385771,
-0.3213899136,
0.2069023252,
0.0504210144,
-0.1658449769,
0.0028018185,
-0.0882348567,
0.1128154844,
0.0582918562,
0.2106524408,
-0.4103107452,
0.4649714828,
0.2110948265,
-0.6535016298,
-0.1779310703,
0.022219466,
0.2327961922,
-0.0758984834,
-0.0391967483,
0.4191891253,
0.2298196107,
0.3273513615,
-0.1562206447,
0.0431685373,
0.2353197038,
-0.4685608745,
0.113001965,
-0.1070156395,
0.2712564766,
0.5209813714,
-0.0823814645,
-0.7038670182,
-0.3048591614,
0.0180623122,
-0.1834254563,
-0.3575618863,
0.1855204403,
-0.2375339717,
-0.2151158899,
-0.1924313009,
0.093155548,
-0.1627409607,
-0.3355164826,
0.1316695213,
-0.1930135787
] |
https://github.com/huggingface/datasets/issues/137 | Tokenized BLEU considered harmful - Discussion on community-based process | Yeah, I would love to have discussions about ways this project can have an community-based, transparent process to arrive at strong default metrics. @kpu / @mjpost do you have any suggestions of how that might work or pointers to places where this is done right? Perhaps this question can be template for what is likely to be repeated for other datasets. | https://github.com/huggingface/nlp/blob/7d1526dfeeb29248d832f1073192dbf03ad642da/metrics/bleu/bleu.py#L76 assumes the inputs are tokenized by the user. This is bad practice because the user's tokenizer is usually not the same as the one used by `mteval-v13a.pl`, the closest thing we have to a standard. Moreover, tokenizers are like window managers: they can be endlessly customized and nobody has quite the same options.
As @mjpost reported in https://www.aclweb.org/anthology/W18-6319.pdf BLEU configurations can vary by 1.8. Yet people are incorrectly putting non-comparable BLEU scores in the same table, such as Table 1 in https://arxiv.org/abs/2004.04902 .
There are a few use cases for tokenized BLEU like Thai. For Chinese, people seem to use character BLEU for better or worse.
The default easy option should be the one that's correct more often. And that is sacrebleu. Please don't make it easy for people to run what is usually the wrong option; it definitely shouldn't be `bleu`.
Also, I know this is inherited from TensorFlow and, paging @lmthang, they should discourage it too. | 61 | Tokenized BLEU considered harmful - Discussion on community-based process
https://github.com/huggingface/nlp/blob/7d1526dfeeb29248d832f1073192dbf03ad642da/metrics/bleu/bleu.py#L76 assumes the inputs are tokenized by the user. This is bad practice because the user's tokenizer is usually not the same as the one used by `mteval-v13a.pl`, the closest thing we have to a standard. Moreover, tokenizers are like window managers: they can be endlessly customized and nobody has quite the same options.
As @mjpost reported in https://www.aclweb.org/anthology/W18-6319.pdf BLEU configurations can vary by 1.8. Yet people are incorrectly putting non-comparable BLEU scores in the same table, such as Table 1 in https://arxiv.org/abs/2004.04902 .
There are a few use cases for tokenized BLEU like Thai. For Chinese, people seem to use character BLEU for better or worse.
The default easy option should be the one that's correct more often. And that is sacrebleu. Please don't make it easy for people to run what is usually the wrong option; it definitely shouldn't be `bleu`.
Also, I know this is inherited from TensorFlow and, paging @lmthang, they should discourage it too.
Yeah, I would love to have discussions about ways this project can have an community-based, transparent process to arrive at strong default metrics. @kpu / @mjpost do you have any suggestions of how that might work or pointers to places where this is done right? Perhaps this question can be template for what is likely to be repeated for other datasets. | [
-0.1317215562,
-0.1521495134,
0.0231625233,
-0.2831539512,
0.1835172772,
-0.4405021667,
0.1937045008,
0.0987427235,
-0.3281911016,
0.5617697835,
0.0751188993,
0.3197996616,
-0.0818994343,
0.058384046,
-0.1340551376,
0.2278726548,
-0.0086308271,
0.0542875193,
0.513055861,
-0.0493563004,
-0.0386523455,
-0.2196661532,
0.0258150809,
0.3253952563,
-0.2940972149,
0.1930954456,
0.195101276,
-0.2362076789,
-0.3713636696,
-0.3428970575,
-0.0088307904,
0.3811077774,
-0.308562696,
0.2572025955,
-0.0001145226,
-0.6301749945,
-0.0216775872,
-0.0355614834,
-0.0958850458,
-0.4296733439,
0.1394098103,
-0.1895244867,
0.1505589187,
-0.1307041496,
0.0372199789,
-0.2564647496,
0.0646440834,
-0.0690383837,
0.4480719268,
-0.128550753,
0.0754714608,
0.2396066189,
-0.6704867482,
0.2017090321,
-0.2710969448,
0.4848404527,
-0.0352258198,
0.172689423,
0.1593184471,
0.0996099338,
-0.0320556611,
-0.1317352355,
0.0314788371,
-0.2312246412,
0.1595714539,
-0.0798825622,
-0.1958985031,
-0.2130768001,
0.0196533483,
0.6208429933,
-0.0205366593,
0.0141187254,
-0.0521381311,
-0.2381585538,
0.0941507518,
-0.3407893777,
0.0405824967,
-0.0104211681,
-0.0858966485,
-0.1650646329,
-0.0927202255,
0.0869042724,
0.0539110638,
0.0782721415,
0.1201413721,
0.1560005993,
-0.0716307312,
-0.0470868163,
-0.2539198697,
0.0088732252,
-0.2391778529,
0.0736632496,
0.247643888,
0.196390599,
-0.1704588234,
-0.2651331425,
0.1758609265,
-0.3175501227,
0.1600957513,
0.1721192896,
0.2469455898,
0.3688747585,
-0.329850167,
0.1381086558,
-0.2221656442,
0.0203367472,
-0.0540366583,
-0.2640294135,
0.5498659015,
0.0829502866,
0.3205848634,
0.2071527392,
0.0846225917,
-0.0641747862,
-0.0983874872,
0.3398282528,
-0.2787477374,
-0.2240519673,
-0.5955854654,
0.1028966606,
0.0405029953,
-0.0313931629,
0.2300078422,
0.0795437694,
-0.2954148352,
0.0870082974,
-0.1917359084,
0.2282931358,
-0.192493856,
-0.165540874,
-0.0242983326,
-0.3788320422,
-0.2206812054,
0.0180576332,
0.1756088585,
-0.0845322013,
0.3501527607,
0.1961226165,
0.5397788286,
-0.1819541752,
0.1251625121,
0.013276278,
-0.0413131826,
-0.162357673,
-0.3348378241,
-0.019948503,
0.0880883858,
-0.1897370219,
-0.0577017851,
0.0060544307,
-0.1901558638,
-0.4022370279,
0.1046912,
0.0129620293,
0.0042207353,
0.186567232,
-0.4194647372,
0.2759487629,
0.0240427181,
0.2129323184,
0.1609377265,
-0.0490427576,
-0.0290443692,
-0.2775923014,
0.3328247964,
-0.1258489937,
0.058726687,
-0.3050249517,
0.4064474106,
0.1433941424,
0.0249316357,
0.3754587173,
-0.2546947896,
0.3886649013,
0.1451203078,
0.0814347863,
0.0819282532,
0.0403047353,
-0.111559622,
-0.0964667201,
-0.1659021229,
-0.2990905643,
0.1548766345,
-0.0652784258,
0.4166329801,
-0.2565687895,
0.0135698365,
0.2856192887,
-0.0146810738,
-0.0663688034,
-0.2931022644,
-0.5398418307,
0.1623520106,
-0.1193591058,
0.230726108,
-0.0030943195,
0.2129999846,
0.4048297703,
0.1429205686,
-0.3293599784,
-0.0748440102,
-0.2866927981,
0.8072559834,
-0.0472331308,
0.2115935385,
0.1206555814,
0.4799893796,
0.0730223581,
-0.0094609307,
0.1464622915,
0.0227705128,
-0.4362930059,
-0.2402884215,
-0.0036761011,
0.292412132,
0.3435096741,
-0.0270518269,
0.0217132568,
-0.5986209512,
0.2004333586,
-0.5100761056,
-0.0765310749,
-0.6761408448,
0.2280258983,
0.278254807,
0.0366130136,
0.1347271651,
0.0282938667,
0.1308626384,
0.2619227171,
-0.0363817662,
0.037637271,
-0.1882142574,
0.3101920784,
0.0034289206,
0.345118314,
-0.2935292125,
0.6801661849,
0.4701672792,
0.0367691442,
-0.2388761342,
0.1942773163,
-0.2076038122,
0.1522772461,
0.0659184009,
0.6317344308,
-0.0831613168,
-0.0194508974,
-0.0466135368,
-0.1456830204,
-0.2612490356,
0.1453503072,
-0.1501729786,
-0.1219523549,
0.159524858,
-0.0031715804,
-0.0224013869,
0.0921911895,
-0.1080200002,
0.0781616867,
0.0624220744,
0.2085685581,
0.168654412,
0.0612688847,
0.553191781,
-0.292121917,
0.1145001203,
-0.0307372808,
-0.0142359762,
-0.016815573,
-0.0519745611,
0.0130427359,
-0.2535009682,
-0.1804719269,
-0.1561135799,
0.0416790806,
-0.1151289493,
0.2216658592,
0.0259583127,
0.3211396635,
-0.1789849848,
-0.0223926418,
-0.0044539799,
-0.0689853504,
-0.194925949,
0.016564725,
-0.1251770556,
0.2771683633,
0.0805469826,
0.0781258419,
0.0140540889,
-0.223878026,
0.2112266123,
0.0069617885,
-0.110619545,
0.395195812,
0.1587028056,
0.9091915488,
-0.1935370415,
0.0631671995,
0.0026727961,
0.0989365652,
-0.0681501254,
-0.0395332351,
-0.0933664143,
-0.1807139963,
0.2783333659,
-0.0459962562,
-0.001711884,
-0.0095600709,
-0.863989532,
0.0664968193,
-0.034252055,
0.3804613352,
0.1018428281,
-0.285838753,
-0.3674683273,
-0.1909760982,
-0.0965690315,
-0.2331637442,
-0.06820371,
-0.1002079546,
-0.0169140305,
-0.1037082672,
-0.0993806943,
-0.2951436937,
0.1288124919,
-0.0396172665,
0.0516294725,
-0.1908408105,
0.2184205651,
-0.3723987341,
-0.039893385,
0.1063477322,
0.186471507,
0.4068044126,
-0.0509277172,
-0.0777148157,
0.1177450195,
-0.3018658757,
-0.1925503165,
-0.2463870943,
0.0083975345,
0.1748574674,
0.1515842974,
-0.354562223,
-0.3071525991,
0.3153420985,
0.0824796408,
-0.0236575827,
-0.1282673925,
-0.0953917131,
0.1880737245,
-0.0482723005,
-0.0030244691,
-0.0281911921,
0.0706559494,
0.1070395336,
0.5871000886,
0.1151956692,
0.1844272316,
0.6375479698,
0.8891428113,
-0.0007613184,
-0.1633930206,
0.0511825755,
0.3028792143,
0.1601826698,
0.1029507294,
0.0815982744,
0.2571054399,
0.1289467663,
-0.1197659746,
0.4167869985,
0.1457355917,
0.2156979293,
0.0906539932,
-0.0239539277,
0.197006315,
-0.085427165,
-0.1111893356,
-0.2246176749,
0.18800807,
0.0435621105,
0.1278183162,
-0.1375354528,
-0.321179986,
0.2428236604,
0.2584260106,
0.0896542892,
0.0685441047,
-0.2249550521,
0.2045936286,
-0.3556159437,
0.0844413042,
-0.1366852373,
0.4513644576,
-0.1491571069,
0.1695672274,
0.119733654,
-0.0852375478,
-0.1516987085,
-0.0945377424,
-0.0530011803,
-0.2609041035,
-0.0596017987,
-0.1646459252,
0.1009160578,
0.0544803515,
-0.0627345145,
0.3288064301,
0.4255050123,
-0.503269136,
-0.2165860534,
-0.1952255219,
-0.0866937861,
-0.0723469406,
0.1607705802,
-0.1748056859,
-0.2509564757,
-0.0506848544,
0.138891995,
-0.2789742351,
-0.0109682409,
-0.2774153948,
0.2627334893,
-0.3664970398,
0.0645861775,
0.3063522577,
-0.0061463523,
-0.2401481569,
-0.0119032376,
-0.0181686673,
-0.0037608242,
0.2346488237,
0.0261544827,
-0.2223066837,
-0.1262037158,
-0.2266125679,
0.0377430022,
-0.2525555491,
0.2906058431,
0.5935212374,
-0.1272309124,
0.3823324442,
0.1300918013,
0.2303988338,
-0.315028578,
0.5367193222,
0.1276204437,
0.0791496709,
-0.004022324,
-0.0593619347,
0.1446078718,
0.098057732,
-0.4596039951,
0.2224506289,
0.128093183,
-0.1608808041,
0.7775844932,
0.6960656643,
0.9820846319,
0.0039518704,
-0.0721494332,
0.1592865586,
-0.0825304762,
0.1994282603,
-0.5290595293,
-0.1130350754,
-0.1436689347,
-0.2249890715,
-0.0384619497,
-0.1100104153,
-0.0650706589,
0.0460717641,
0.1236454099,
-0.0724263862,
-0.0467431583,
0.2753322423,
0.2509954274,
0.3288513124,
-0.0310060214,
-0.2136255205,
0.1472299844,
0.0207600594,
-0.1194539592,
-0.0915802196,
-0.1198373064,
0.1407979876,
-0.1180056706,
0.093162328,
0.1807109714,
-0.1499828845,
-0.1702412367,
-0.022803545,
0.3271113932,
0.0145223364,
0.3945673406,
0.3165233731,
1.02696383,
0.5743095875,
-0.2811959088,
0.0714818761,
0.0430504158,
0.1191387102,
0.2622564137,
-0.2490708977,
0.2586089075,
-0.0113669485,
0.0802520439,
-0.0578175113,
0.4538448155,
-0.126269415,
0.0497010909,
-0.4980682135,
0.3181201816,
-0.1468974501,
0.2496238202,
0.0851845071,
0.1826740801,
-0.1274157017,
0.0465359725,
0.0235978309,
-0.1247427315,
0.2199736387,
0.1748703718,
-0.3204935491,
-0.1589327306,
0.0713863224,
0.0423104167,
-0.5956211686,
0.0675254464,
-0.4984454215,
-0.083983615,
-0.032496009,
0.039384082,
0.0012560587,
-0.0194754414,
-0.1504119188,
-0.373550117,
-0.3433412611,
-0.0752501562,
0.5095214248,
0.5031795502,
-0.0972422138,
-0.0008874832,
-0.0953389332,
-0.2102210075,
0.2857159376,
0.0276877601,
0.1540140361,
-0.1543099135,
-0.1151622385,
-0.2759827077,
0.2546269894,
-0.2463448197,
0.0769506395,
-0.0853332281,
0.0626338422,
-0.2257121056,
0.0481402129,
-0.1233190745,
0.1022133604,
-0.099720113,
0.0495049022,
-0.2831116021,
-0.0458189957,
-0.4601475298,
0.1936976612,
0.275598526,
-0.1209092066,
-0.1152127087,
-0.1827188432,
-0.2387261093,
-0.1846672893,
0.0051861769,
0.1594103277,
-0.006973654,
-0.1387790442,
-0.1088001058,
0.3613181412,
0.1449436247,
-0.1934640259,
0.2268933058,
0.1107135043,
0.2526608407,
0.1844537407,
-0.0244159475,
-0.0828994066,
-0.0088780513,
0.3117851615,
0.4678499997,
-0.1286131889,
0.0326312408,
-0.2066216171,
-0.1152114868,
-0.4381731451,
0.1446433067,
0.0749287233,
-0.2063017637,
-0.4469507933,
0.4616006911,
0.0484655015,
0.0467184447,
0.1793041229,
-0.2502280772,
0.3303585351,
-0.0393887199,
0.4395039082,
1.0022842884,
-0.0217684694,
0.0498472638,
-0.1830811948,
0.0363971107,
-0.4998027384,
0.1945630908,
-0.3181962669,
-0.1974985898,
0.328212738,
0.4570225179,
-0.0053040362,
0.0269593224,
-0.2245131135,
0.1818573624,
0.5301964283,
0.0648684204,
0.0644670799,
0.0855074972,
0.1574230939,
0.4331812263,
-0.003011642,
-0.1559501886,
-0.1252390742,
0.1178639159,
0.667059958,
0.0246092845,
-0.2930507362,
-0.1094186157,
0.02931609,
-0.1487193853,
-0.306018889,
-0.4843787849,
-0.2215510458,
-0.0690991059,
0.0571749061,
-0.1304029226,
-0.0349589474,
-0.5705882311,
0.1345683187,
0.0988408923,
-0.1397086531,
-0.1329703629,
0.120160602,
0.5725660324,
0.0085576214,
-0.0652307868,
-0.4107310474,
0.1811183244,
0.1349815428,
0.423819989,
-0.1089937687,
0.2727342248,
-0.3250207007,
-0.3037954867,
-0.0341923237,
0.3719824851,
0.2607865036,
0.2767416537,
0.3163918555,
-0.253728956,
0.258705765,
-0.0347205661,
-0.1072571352,
-0.2261418849,
0.0305059087,
-0.0201507695,
-0.2125934809,
0.2808630764,
0.1410840303,
0.1751460284,
0.273083657,
-0.0957812443,
-0.2364907116,
0.2019381374,
0.292327404,
0.0150731886,
0.3490411639,
-0.2561850846,
0.065018408,
0.089045383,
0.0466661267,
0.0944809169,
0.1193937361,
-0.1784598082,
-0.0508388653,
-0.4504283965,
0.3851360679,
0.5483928919,
0.1136315167,
0.0287728347,
-0.0870809853,
-0.0440968014,
0.2510683835,
-0.3328100145,
0.0829497427,
-0.1790492535,
-0.1630083472,
-0.1391746253,
0.0519337691,
-0.0260231756,
0.1079451293,
-0.4039845169,
0.0211438909,
0.046003174,
-0.3065638542,
-0.0477998666,
-0.1658798009,
-0.0909436122,
0.1227343902,
0.3015193939,
0.4139881432,
0.2810031772,
-0.1094643623,
0.2570028901,
-0.2844337821,
0.084752053,
0.0271944571,
-0.1665120572,
0.0108845131,
-0.0228680111,
0.258867234,
0.0451127812,
0.0209864415,
-0.2498363256,
0.2707715929,
0.3818486929,
-0.6561613679,
-0.1667828858,
-0.2191915214,
0.0337468758,
-0.128628999,
0.0057156901,
0.3613286912,
0.0865599364,
0.5356078148,
-0.0908010826,
0.0742847621,
0.1018322334,
-0.4056443274,
0.0896814838,
-0.4716906846,
0.4330798388,
0.4989498258,
-0.113461867,
-0.3102814555,
-0.2785303891,
0.0997306108,
-0.234629944,
-0.2983544469,
0.0771565884,
-0.1645468026,
-0.1145866215,
-0.3277123868,
0.0726349056,
-0.2579043508,
-0.1299063861,
-0.0640186891,
-0.1937732249
] |
https://github.com/huggingface/datasets/issues/137 | Tokenized BLEU considered harmful - Discussion on community-based process | I think @bittlingmayer is referring to Figure 6 in http://statmt.org/wmt19/pdf/53/WMT02.pdf . When you look at Appendix A there are some cases where metrics fall apart at the high end and some where they correlate well. en-zh is arguably production-quality.
This could evolve into a metrics Bazaar where the value add is really the packaging and consistency: it installs/compiles the metrics for me, gives a reproducible name to use in publication (involve the authors; you don't want a different sacrebleu hash system), a version number, and evaluation of the metrics like http://ufallab.ms.mff.cuni.cz/~bojar/wmt19-metrics-task-package.tgz but run when code changes rather than once a year. | https://github.com/huggingface/nlp/blob/7d1526dfeeb29248d832f1073192dbf03ad642da/metrics/bleu/bleu.py#L76 assumes the inputs are tokenized by the user. This is bad practice because the user's tokenizer is usually not the same as the one used by `mteval-v13a.pl`, the closest thing we have to a standard. Moreover, tokenizers are like window managers: they can be endlessly customized and nobody has quite the same options.
As @mjpost reported in https://www.aclweb.org/anthology/W18-6319.pdf BLEU configurations can vary by 1.8. Yet people are incorrectly putting non-comparable BLEU scores in the same table, such as Table 1 in https://arxiv.org/abs/2004.04902 .
There are a few use cases for tokenized BLEU like Thai. For Chinese, people seem to use character BLEU for better or worse.
The default easy option should be the one that's correct more often. And that is sacrebleu. Please don't make it easy for people to run what is usually the wrong option; it definitely shouldn't be `bleu`.
Also, I know this is inherited from TensorFlow and, paging @lmthang, they should discourage it too. | 101 | Tokenized BLEU considered harmful - Discussion on community-based process
https://github.com/huggingface/nlp/blob/7d1526dfeeb29248d832f1073192dbf03ad642da/metrics/bleu/bleu.py#L76 assumes the inputs are tokenized by the user. This is bad practice because the user's tokenizer is usually not the same as the one used by `mteval-v13a.pl`, the closest thing we have to a standard. Moreover, tokenizers are like window managers: they can be endlessly customized and nobody has quite the same options.
As @mjpost reported in https://www.aclweb.org/anthology/W18-6319.pdf BLEU configurations can vary by 1.8. Yet people are incorrectly putting non-comparable BLEU scores in the same table, such as Table 1 in https://arxiv.org/abs/2004.04902 .
There are a few use cases for tokenized BLEU like Thai. For Chinese, people seem to use character BLEU for better or worse.
The default easy option should be the one that's correct more often. And that is sacrebleu. Please don't make it easy for people to run what is usually the wrong option; it definitely shouldn't be `bleu`.
Also, I know this is inherited from TensorFlow and, paging @lmthang, they should discourage it too.
I think @bittlingmayer is referring to Figure 6 in http://statmt.org/wmt19/pdf/53/WMT02.pdf . When you look at Appendix A there are some cases where metrics fall apart at the high end and some where they correlate well. en-zh is arguably production-quality.
This could evolve into a metrics Bazaar where the value add is really the packaging and consistency: it installs/compiles the metrics for me, gives a reproducible name to use in publication (involve the authors; you don't want a different sacrebleu hash system), a version number, and evaluation of the metrics like http://ufallab.ms.mff.cuni.cz/~bojar/wmt19-metrics-task-package.tgz but run when code changes rather than once a year. | [
-0.2435232103,
-0.3005849123,
-0.0543988273,
-0.2982111573,
0.0659076944,
-0.2633566558,
0.3223110735,
0.164746657,
-0.3544040024,
0.3798713982,
-0.0478950292,
0.2776408494,
0.0203533079,
0.0332898498,
-0.099128969,
0.1471894681,
0.0948517546,
0.0232937969,
0.4395559132,
-0.2320101857,
-0.1570617557,
-0.2324186862,
0.0439792126,
0.3475283682,
-0.0711239502,
0.3041615486,
0.2054768801,
-0.1155458465,
-0.2697204053,
-0.2693087459,
-0.1757280082,
0.2499206811,
-0.2212208062,
-0.0528265201,
-0.0001057406,
-0.4228650928,
0.0307958163,
-0.1002199426,
-0.3133637607,
-0.4734852314,
0.0775705129,
-0.3150501251,
-0.2302933633,
-0.224704206,
0.3282444775,
-0.1976822615,
0.0747189671,
0.0410480499,
0.2474140376,
-0.01852859,
0.1679523438,
0.4588981271,
-0.5752648711,
0.0494606756,
0.021606518,
0.1226705238,
-0.0413584225,
0.1909920722,
0.1126728579,
0.3767437637,
-0.1389329284,
-0.0326625593,
0.1147210225,
-0.2191135734,
0.129187718,
-0.0577258095,
0.1619861722,
-0.0667687282,
0.0551367439,
0.5585494041,
-0.0398037583,
0.1188731715,
-0.3280951977,
-0.038842041,
0.0573451668,
-0.4812348783,
-0.0124927089,
0.0695375279,
0.0995748043,
-0.1530031115,
-0.1505930126,
0.1242722496,
-0.0253840517,
0.1610426903,
0.1169871986,
0.2148504108,
-0.037926171,
0.0777445287,
-0.1787704974,
0.1447501034,
-0.1647800952,
-0.020199148,
-0.0308877341,
-0.1030919775,
-0.102011174,
-0.1833825111,
-0.0556739755,
-0.4369936883,
0.1886055171,
0.0985737815,
0.2170276493,
0.3052586615,
-0.0982055813,
0.1443403363,
-0.1386346966,
0.1883335263,
0.0615374111,
-0.3308636248,
0.3270785809,
0.0987470374,
0.4898578227,
0.1428254396,
0.1948435158,
-0.1527294815,
-0.0573221259,
0.1905161738,
-0.5074319839,
-0.3131022155,
-0.7329558134,
0.1527256817,
-0.0937250033,
-0.1700950116,
0.1190794334,
0.1927857548,
-0.2124166936,
-0.0652728453,
-0.2983237803,
0.172771126,
-0.1432593912,
-0.0799593776,
-0.0384170376,
-0.2377155274,
-0.2817411721,
-0.0238064826,
-0.1102033556,
0.0284593683,
0.3472850323,
0.1121464148,
0.5056605339,
-0.0675378665,
0.0374998562,
-0.0223303959,
0.0134177739,
-0.1105605885,
-0.3938733637,
-0.1357766837,
-0.0827028006,
-0.2144176066,
-0.0691756457,
-0.0673352778,
-0.4156736434,
-0.3330410123,
0.0599921905,
0.1190011352,
0.0205702242,
0.175370723,
-0.1397428513,
0.1198921949,
0.057757467,
0.1586414725,
0.3195587397,
-0.2251320481,
-0.1212940291,
-0.1884955317,
0.1353852749,
-0.3119524419,
0.0680032074,
-0.2918474376,
0.4261814356,
0.2250983864,
0.2090044469,
0.3553490341,
-0.3932774365,
0.3532282114,
0.1524048001,
0.034351673,
0.2255771607,
-0.359863013,
-0.2300915569,
-0.1324643046,
-0.00519124,
-0.3282726705,
0.039436657,
0.0217804853,
0.4474591911,
-0.3550920784,
0.1549873203,
-0.0488217175,
0.0130620385,
-0.2862184346,
-0.2684644163,
-0.4319381416,
0.183356449,
-0.0564961582,
0.2309051007,
-0.119095616,
0.2098733634,
0.5887308717,
0.1590448916,
-0.3271047771,
-0.0990320146,
-0.2509118617,
0.5768550038,
-0.1068919525,
0.1817074865,
0.1966938376,
0.416318804,
0.1697406471,
-0.3384236097,
0.1830937415,
0.1225442812,
-0.3341721296,
0.0349693112,
0.0486894101,
0.260468781,
-0.0303768869,
0.0571797341,
-0.0929934233,
-0.517275691,
0.1460869163,
-0.4348348379,
-0.1211320832,
-0.5203845501,
0.0551308207,
0.2200428545,
-0.0343095995,
-0.1001343951,
0.2275540233,
-0.0255617276,
0.3954463303,
-0.0854106545,
0.0379672274,
-0.2463261485,
0.1997845918,
0.0000616706,
-0.0702046156,
-0.1267819107,
0.5026576519,
0.4128744006,
0.1263278276,
-0.1499581337,
0.1077878997,
-0.1631533504,
0.1223774701,
0.1445952505,
0.5002865195,
0.0605950244,
-0.1426591575,
0.0556547903,
-0.2584557235,
-0.1794895381,
0.0480561778,
-0.168737784,
-0.2170420289,
0.2031290382,
-0.0375197008,
-0.2641672492,
0.0120411972,
-0.0362935662,
-0.0042355708,
0.5298199654,
0.0890454873,
0.0981056467,
0.0477169603,
0.4727903605,
-0.2430369258,
0.1521213651,
0.1712393463,
0.1517417729,
0.0604048558,
0.0962113813,
0.2173134089,
-0.2510477006,
-0.2809522748,
-0.1332305521,
0.1576149911,
-0.0904271007,
0.2553812563,
-0.0998250768,
0.4683688283,
-0.0611472353,
-0.1624717563,
-0.054712344,
-0.1097156629,
-0.0894947574,
0.1891578287,
-0.1510662585,
0.4585847855,
-0.0595226958,
-0.0563360862,
-0.1826071292,
-0.2930000722,
0.2888196111,
-0.0517311655,
-0.0868314877,
0.3431062698,
0.086358875,
0.6125347614,
-0.2508160472,
0.1708932668,
0.0203668363,
0.0727961287,
-0.2392215133,
0.0346355923,
-0.213791728,
-0.1237198189,
0.3305429518,
-0.0502123386,
-0.1832588166,
-0.1312792301,
-0.7176876664,
0.0469176732,
-0.0709979534,
0.2612710595,
0.1533103436,
-0.4949451983,
-0.5975627899,
-0.1073577926,
0.0488346666,
-0.0897790119,
-0.0834563747,
-0.001162608,
-0.0557503402,
-0.3762319088,
-0.0986453369,
-0.3364658654,
0.0467080548,
-0.1315041929,
-0.0529764853,
-0.2506546974,
0.0623446144,
0.0420720428,
-0.1769196689,
0.1221345663,
0.2492320836,
0.2456510067,
-0.2242903858,
0.0694020167,
0.1138117239,
-0.2636433244,
-0.3411218524,
-0.1655088663,
0.0977159888,
0.3935268223,
0.2329135686,
-0.3390340507,
-0.3138285577,
0.3934343755,
-0.1104433909,
-0.0339711159,
-0.1589856744,
-0.0925585553,
0.1727853119,
-0.1794541329,
-0.0242366418,
0.0970859826,
0.3053620458,
0.2019969672,
0.5900418758,
-0.0375420749,
0.1662781537,
0.6131904721,
0.6402317882,
0.1696105003,
-0.028570246,
0.1647348404,
0.3031338751,
0.2151878476,
0.0773574039,
0.030641418,
0.3047841787,
-0.0848557428,
-0.0923093036,
0.444563657,
-0.0694648623,
0.2872691453,
0.0495464839,
-0.1336145848,
0.4021221995,
-0.1581469178,
0.055746723,
0.0065334914,
0.0622396506,
-0.0458667129,
0.2046812475,
0.1008250937,
-0.2437961251,
0.4465906918,
0.1306040138,
-0.2133852988,
0.0429429412,
-0.2132990211,
0.1193670109,
-0.3069753051,
0.2397650331,
0.0184683129,
0.6185995936,
-0.1211644933,
0.1879018694,
0.0202079937,
-0.1702568084,
-0.2018503845,
-0.1748797894,
0.0748122483,
-0.2568159401,
-0.0122305341,
-0.3013003469,
-0.0416371487,
-0.1608271748,
-0.030620588,
0.2457719296,
0.3923413754,
-0.355240047,
-0.1640491933,
-0.032879658,
-0.0073480308,
-0.1909745932,
-0.0435129069,
-0.3017182052,
-0.2088459432,
-0.1884815246,
-0.0239129886,
-0.3137964904,
-0.0148678944,
-0.1688668877,
-0.0454511419,
-0.2747916877,
0.1033460796,
0.3190312982,
0.0205901954,
-0.4130380154,
-0.0418806188,
-0.0249934494,
-0.2193038911,
0.2226117104,
0.2926394641,
-0.0402608179,
-0.266959548,
-0.3590789139,
-0.0327227935,
-0.2441363335,
0.1974164993,
0.4649686217,
-0.0027601321,
0.1967923194,
0.2424976975,
0.2750260532,
-0.1388509721,
0.3099522591,
0.1948875636,
0.2987331152,
-0.2369795591,
0.0276011303,
0.0976965949,
0.0072551877,
-0.2170906365,
-0.0346043259,
0.1834509969,
-0.1264142394,
0.5017808676,
0.7122951746,
0.9287544489,
0.251503855,
0.0910658166,
0.1519111395,
0.0069028204,
0.1555330753,
-0.6266518831,
0.0212748237,
-0.2069052905,
-0.3031745255,
-0.0490291938,
-0.0868970677,
0.0510914773,
0.1322295219,
0.0170370601,
0.0770193711,
0.1021886244,
0.2828611434,
0.1404207796,
0.2446169108,
-0.0685039163,
-0.1947114766,
0.2222361714,
0.1003434211,
-0.0990999639,
-0.059404891,
-0.1588497907,
0.0864405781,
-0.2373167127,
0.1734232008,
0.2514423132,
-0.0805177093,
-0.1611945629,
0.17024073,
0.0391097888,
0.077224575,
0.3138068616,
-0.0125337727,
0.9258645773,
0.388294369,
-0.0377793163,
0.0006556803,
-0.1566762626,
0.1428187191,
0.2550014555,
-0.2980362475,
0.4793707728,
-0.200148806,
-0.0457982868,
0.2099069804,
0.4611562788,
0.0084431423,
0.1779865175,
-0.1972340196,
0.1296452582,
-0.0717750788,
0.2466273755,
0.2059277743,
0.2094622701,
-0.0797121227,
0.0913936049,
-0.0414937697,
-0.1508343518,
0.1583675295,
0.1381307989,
-0.4143413305,
-0.1061490104,
-0.0900033787,
0.0441560745,
-0.2025601715,
-0.1179728955,
-0.5925446153,
-0.1234825104,
-0.0317794643,
-0.0961131901,
0.023880003,
-0.218949616,
-0.1911743879,
-0.3086480796,
-0.1834498942,
-0.213228181,
0.4570014179,
0.5905835032,
-0.2766253054,
-0.0699189082,
0.0085557112,
-0.1150540859,
0.1853622049,
0.1301268339,
0.2473980039,
-0.0786291733,
-0.1963196546,
-0.2025488913,
0.257035315,
-0.331936419,
-0.064631559,
-0.1260303408,
0.0538070202,
-0.2714321911,
-0.0365147702,
0.1022509634,
0.0821416155,
-0.0650741607,
-0.10309764,
-0.5864484906,
-0.1108662784,
-0.4371494949,
0.1243136972,
0.3565573692,
-0.0725396201,
-0.1796939224,
-0.0323164053,
-0.0666690469,
-0.1997257024,
0.0696000159,
0.1717760414,
0.0666340142,
0.2180797607,
-0.0696016923,
0.4152752757,
0.1327679902,
-0.0613164753,
0.3083018363,
0.4883520007,
0.2198683769,
0.2059159577,
0.0483129732,
-0.0671827495,
-0.335375011,
0.2804247737,
0.4356293976,
-0.0782044977,
0.0479052141,
-0.1667794436,
0.0514189638,
-0.3711829185,
0.11097271,
0.2058674991,
-0.1694431454,
-0.6405306458,
0.4711535871,
0.1569983512,
-0.0250190869,
0.0025431649,
-0.0524792783,
0.2136242688,
-0.0841057152,
0.3174225986,
0.9295864701,
-0.227180928,
0.1400175691,
-0.1663310379,
0.016532857,
-0.5663512945,
0.1403525025,
-0.3035807014,
-0.0016455827,
0.4644858837,
0.281345278,
-0.0494695269,
0.260178715,
-0.0808805078,
0.1376143098,
0.6137871146,
0.261939317,
0.2576931715,
0.0514377989,
0.3690961599,
0.3331650198,
0.1753257662,
-0.1328469515,
-0.0645269081,
0.3387178779,
0.3999518454,
0.1680495292,
-0.3725417852,
-0.2459821105,
0.0877039507,
-0.250395596,
-0.1470986158,
0.0127505418,
-0.0871341228,
-0.1357268542,
0.2197871804,
0.0109244958,
0.0635635108,
-0.516467452,
0.2015511096,
0.0450631082,
0.0306920409,
-0.1617544591,
0.1428955644,
0.3391336203,
-0.0526365452,
-0.2491468787,
-0.1385201365,
0.0254377462,
-0.0300067235,
0.1781275868,
0.0066905664,
0.0554643609,
-0.1432781368,
-0.2987907827,
-0.0175475758,
0.3842498958,
0.152467683,
0.3373553753,
0.2429818809,
-0.2774232328,
0.396484077,
0.0460667238,
-0.1380787343,
-0.2208648026,
0.1454421282,
-0.2153348178,
-0.1817860901,
0.2156697661,
0.3408407271,
0.2087400854,
0.1939414293,
-0.0043208059,
-0.3412445486,
0.1143867821,
0.4114851356,
-0.155564934,
0.2408099473,
-0.2376059592,
0.1159142181,
0.1119894087,
0.0707863644,
0.0259178858,
0.1004325077,
-0.0963150337,
0.3075033724,
-0.3312199712,
0.3280597329,
0.452568084,
0.2827621102,
0.0231589526,
-0.0858399048,
-0.1080541238,
0.1935915351,
-0.0431347862,
0.0167221855,
-0.0409590788,
-0.2080364078,
-0.1309080869,
0.2298146337,
0.0387788489,
0.0189992469,
-0.2677190602,
-0.0503971875,
-0.018615352,
-0.4426840544,
-0.0158457514,
-0.2415635586,
-0.0676979348,
0.1904699504,
0.1778806895,
0.6185245514,
0.1885395348,
-0.0592795685,
0.2392131835,
-0.2515295446,
0.3539307415,
0.1815539449,
-0.0367931612,
0.0922112837,
-0.0303100143,
-0.0256263856,
0.1017008573,
0.0696415752,
-0.2569895089,
0.433909595,
0.3335089087,
-0.6859287024,
-0.219722271,
0.1127906144,
0.1804609001,
-0.1644691229,
-0.0388464034,
0.2896654904,
0.2651182413,
0.3415917158,
-0.0563000217,
-0.0133569445,
0.2013342828,
-0.3302741051,
0.1858412921,
-0.207636714,
0.3184792101,
0.4439649582,
0.0746591538,
-0.5812062621,
-0.4063217044,
0.1298278123,
-0.083737433,
-0.4195718169,
0.1802417487,
-0.0641494319,
-0.1641324013,
-0.2556307912,
0.1596223265,
-0.4075245559,
-0.5336329937,
0.1822567731,
-0.2612045407
] |
https://github.com/huggingface/datasets/issues/137 | Tokenized BLEU considered harmful - Discussion on community-based process | While a Bazaar setup works for models / datasets, I am not sure it is ideal for metrics ? Ideal from my perspective would be to have tasks with metrics moderated by experts who document, cite, and codify known pitchfalls (as above^) and make it non-trivial for beginners to mess it up. | https://github.com/huggingface/nlp/blob/7d1526dfeeb29248d832f1073192dbf03ad642da/metrics/bleu/bleu.py#L76 assumes the inputs are tokenized by the user. This is bad practice because the user's tokenizer is usually not the same as the one used by `mteval-v13a.pl`, the closest thing we have to a standard. Moreover, tokenizers are like window managers: they can be endlessly customized and nobody has quite the same options.
As @mjpost reported in https://www.aclweb.org/anthology/W18-6319.pdf BLEU configurations can vary by 1.8. Yet people are incorrectly putting non-comparable BLEU scores in the same table, such as Table 1 in https://arxiv.org/abs/2004.04902 .
There are a few use cases for tokenized BLEU like Thai. For Chinese, people seem to use character BLEU for better or worse.
The default easy option should be the one that's correct more often. And that is sacrebleu. Please don't make it easy for people to run what is usually the wrong option; it definitely shouldn't be `bleu`.
Also, I know this is inherited from TensorFlow and, paging @lmthang, they should discourage it too. | 52 | Tokenized BLEU considered harmful - Discussion on community-based process
https://github.com/huggingface/nlp/blob/7d1526dfeeb29248d832f1073192dbf03ad642da/metrics/bleu/bleu.py#L76 assumes the inputs are tokenized by the user. This is bad practice because the user's tokenizer is usually not the same as the one used by `mteval-v13a.pl`, the closest thing we have to a standard. Moreover, tokenizers are like window managers: they can be endlessly customized and nobody has quite the same options.
As @mjpost reported in https://www.aclweb.org/anthology/W18-6319.pdf BLEU configurations can vary by 1.8. Yet people are incorrectly putting non-comparable BLEU scores in the same table, such as Table 1 in https://arxiv.org/abs/2004.04902 .
There are a few use cases for tokenized BLEU like Thai. For Chinese, people seem to use character BLEU for better or worse.
The default easy option should be the one that's correct more often. And that is sacrebleu. Please don't make it easy for people to run what is usually the wrong option; it definitely shouldn't be `bleu`.
Also, I know this is inherited from TensorFlow and, paging @lmthang, they should discourage it too.
While a Bazaar setup works for models / datasets, I am not sure it is ideal for metrics ? Ideal from my perspective would be to have tasks with metrics moderated by experts who document, cite, and codify known pitchfalls (as above^) and make it non-trivial for beginners to mess it up. | [
-0.2716113031,
-0.0951526389,
0.0032679953,
-0.3119654357,
0.0734551102,
-0.3363659084,
0.4298068583,
0.1751321852,
-0.1235071123,
0.4883821905,
-0.2467202395,
0.3768926859,
0.0635003746,
-0.0168899819,
-0.1135297492,
0.0980852842,
0.0930720046,
-0.0550510511,
0.3823446631,
-0.0338680185,
0.0045133485,
-0.1527675539,
0.0314824954,
0.309019506,
-0.2237775922,
0.0283721983,
0.1682087481,
-0.2984610796,
-0.4094161391,
-0.3030360043,
-0.250305891,
0.3803890347,
-0.1480118483,
0.2917004526,
-0.0001151704,
-0.4013817608,
-0.0981757417,
-0.0590695664,
-0.3827990592,
-0.4775863886,
0.366587013,
-0.3013214469,
0.0795255974,
-0.1160106137,
-0.0342504904,
0.0047135698,
0.1514756531,
0.1454437971,
0.3491646945,
-0.2688574791,
0.1075735912,
0.0655706897,
-0.6408105493,
0.2294313908,
0.0010638939,
0.0314928815,
-0.1193253398,
0.3862390518,
0.1450563073,
0.3580458164,
-0.1749088764,
0.008454401,
-0.0281794723,
-0.2371226102,
0.0730594695,
-0.0983801261,
-0.1292038709,
-0.140380159,
-0.1035127416,
0.4384152889,
0.0049725049,
-0.0973153338,
-0.3281688392,
-0.2922055423,
0.1905195266,
-0.5373387933,
-0.0360237993,
0.023728583,
0.0971383452,
-0.0445607156,
-0.0681909025,
0.1502562016,
0.1634791642,
0.1564422697,
0.2562787235,
-0.1061413363,
0.025209289,
-0.0557945631,
-0.1979491264,
-0.0289135426,
-0.3988060951,
0.0176838767,
-0.1329600364,
0.1177843362,
-0.4859589636,
-0.2479261905,
-0.0482076295,
-0.1725312918,
0.1114022881,
0.229297474,
0.4899720848,
0.4232982099,
0.0896840692,
0.1236564964,
-0.0064931065,
0.1109313145,
-0.0501704179,
-0.5000489354,
0.4304539859,
0.0321423635,
0.5204980969,
0.1228312701,
0.0374303311,
-0.2252338827,
-0.111155197,
0.2451990694,
-0.2509510219,
-0.1593144238,
-0.5886034966,
-0.004327835,
0.0603516959,
-0.0698112845,
0.1557021439,
0.2324747294,
-0.3494310379,
-0.2075756639,
-0.1804874539,
0.273121655,
-0.1225873828,
-0.08260566,
0.0487324446,
-0.242915079,
-0.2589275241,
0.0374127142,
0.1405644715,
-0.152282536,
0.2905599475,
0.1604043096,
0.4069102407,
-0.1166668683,
0.0408541225,
-0.0850826129,
-0.1896255016,
-0.078815639,
-0.2262639105,
-0.1687243134,
-0.2212385535,
0.040054068,
-0.0979273915,
0.0506457575,
-0.5633573532,
-0.3021618724,
0.3407364488,
0.065912649,
-0.1206859574,
0.1320509911,
-0.2986837626,
0.2521052957,
0.0110188304,
0.0953461751,
0.2481516898,
0.0033087991,
0.1383830905,
-0.1485921293,
0.0209884532,
-0.3284707367,
0.1404002309,
-0.2713215947,
0.3406405449,
0.2785711288,
0.2445609868,
0.2890325487,
-0.2182177007,
0.5324127674,
0.1623591483,
0.2161557674,
0.5340869427,
-0.2281571329,
-0.2581607699,
-0.171030134,
-0.0924946591,
-0.2751017511,
0.171873942,
-0.006496001,
0.5837256908,
-0.3159645796,
0.2218965739,
-0.0814054161,
0.0416903012,
0.0293862149,
-0.2764898837,
-0.6142011881,
0.3131127059,
0.0284157656,
0.1810563356,
-0.1728827506,
0.2374771684,
0.6267757416,
0.2742648423,
-0.2361761779,
-0.1974801272,
-0.3107469976,
0.5519846678,
-0.1135752797,
0.2790033817,
-0.0315897688,
0.6670129299,
0.0853864998,
-0.2899166644,
0.3918997943,
0.29749313,
-0.4375244081,
-0.041709993,
-0.1009922549,
0.2452882081,
0.2353347242,
0.0026308,
-0.1728489101,
-0.4428907633,
-0.035821259,
-0.5390491486,
-0.2909195125,
-0.4662599862,
0.258112669,
0.2478226721,
-0.2186284512,
0.0027995971,
0.1067200452,
0.0158346724,
0.4310145974,
0.0987125114,
-0.0730319247,
-0.0549240224,
0.2245066166,
0.1114884987,
-0.0461936407,
-0.4230187237,
0.5532003641,
0.4567529559,
0.3584668636,
-0.3324282467,
0.1174089685,
-0.1097386032,
0.1080510169,
0.3026809394,
0.5004866719,
0.0299105123,
-0.0752138868,
-0.1159224957,
-0.3373017609,
-0.143930912,
0.1615448445,
-0.2121621668,
0.0259259455,
0.1985711753,
-0.1820228249,
-0.0841761902,
0.0348400958,
0.0897822082,
0.1336913407,
0.2881728709,
0.1314881295,
0.3784701228,
0.0170594659,
0.4983480871,
-0.0974342376,
0.0174651444,
-0.0808534697,
0.0640428439,
0.1013893485,
0.078371048,
0.1416006535,
-0.0842411891,
-0.3140436709,
-0.0360680558,
0.0506228507,
-0.265219152,
0.1510672867,
0.0040261368,
0.238401711,
-0.192563951,
-0.1132326201,
0.0547016487,
-0.0137849841,
-0.106157288,
0.0103834737,
-0.1112547442,
0.3257690966,
0.0154992193,
-0.0412038453,
-0.1149907336,
-0.0449264087,
0.4147251844,
0.1561969817,
-0.1513456553,
0.4686259925,
0.1331630945,
0.8898630142,
-0.3588173091,
0.1824445873,
0.036148563,
0.0746472627,
-0.1423604488,
0.0306678806,
-0.1382615268,
-0.2171804011,
0.206750676,
-0.1151794568,
-0.1540723145,
-0.090349026,
-0.5959185958,
0.1574499607,
0.016178688,
0.2387336791,
0.1615054011,
-0.4224113226,
-0.3875549734,
-0.0576561391,
-0.1962899417,
-0.0018592306,
-0.0774148256,
-0.0070115286,
-0.0564373396,
-0.264083147,
-0.1981953382,
-0.1449564099,
0.0665337965,
-0.215452522,
-0.0363832191,
-0.3496147692,
0.104495354,
-0.0434418544,
-0.1285258979,
0.0353556164,
0.1728193611,
0.3967494965,
-0.1508046687,
-0.1824909896,
0.1661069542,
-0.2788859606,
-0.3064621091,
-0.0038894829,
0.0966390744,
0.2173035443,
0.3234606087,
-0.0545763411,
-0.2681364417,
0.4015207589,
-0.2236782014,
0.2396696061,
-0.1192861795,
-0.118361026,
0.1183238328,
-0.0608623438,
0.0557309762,
-0.1162350923,
0.2423721254,
0.2551181316,
0.6405504942,
-0.0614353083,
-0.0171129331,
0.5148364305,
0.7666272521,
-0.0480538346,
0.0574711449,
0.0293509811,
0.3302817941,
0.242458716,
0.0963620022,
0.0738740414,
0.2383839935,
0.0485275872,
-0.1731743962,
0.539932251,
0.0569873378,
0.1875560582,
-0.0069723339,
-0.2128630877,
0.1256728768,
-0.2127613127,
0.1273830831,
-0.2768734396,
0.0255962983,
0.1039368659,
0.3611950576,
0.0558474064,
-0.3032552004,
0.3420774341,
0.2542438209,
0.0076068584,
0.0097133536,
-0.3011251092,
-0.0717284158,
-0.3700397313,
0.0960409641,
-0.114094846,
0.6226420999,
-0.2056156397,
0.1095122322,
0.0963867828,
-0.0412041843,
-0.1886871606,
-0.0084528988,
0.0644261986,
-0.3706534207,
-0.1643959433,
-0.121254839,
-0.0005469258,
-0.0766629502,
0.0823044255,
0.1608071178,
0.3635001183,
-0.4524729252,
-0.0515177473,
-0.194527775,
-0.0967378393,
-0.2220492065,
0.1207466647,
-0.3650093377,
-0.2577640116,
-0.1264395416,
0.0808783472,
-0.2026575357,
0.0230873283,
-0.2422654182,
0.1475727409,
-0.3873409629,
0.0930536985,
0.355901897,
0.1420834064,
-0.2137621641,
0.0310043134,
0.0007337313,
-0.0288171656,
0.3135268986,
0.0844774544,
-0.1006046385,
0.0444717333,
-0.448345989,
0.0712975264,
-0.2901820838,
0.168091774,
0.589230001,
-0.0501263365,
0.4563715756,
0.0410424434,
0.1389464736,
-0.1175755486,
0.2273773402,
0.0125187226,
0.3300779462,
-0.1189336926,
-0.0671245605,
-0.1357754171,
-0.0378440209,
-0.305688709,
0.0756607801,
-0.0748804584,
-0.1807440966,
0.6868855953,
0.5173199177,
1.0146073103,
0.0787370428,
-0.0212513842,
0.3734478056,
-0.0093974192,
0.2425411791,
-0.7861776352,
0.2814871967,
-0.2122103274,
-0.0778139904,
0.0191640351,
-0.0871707648,
-0.0081454581,
0.1584016532,
0.1307340115,
0.1510112584,
-0.0363256969,
0.2764058113,
0.0565408207,
0.2006921321,
-0.1347204447,
-0.2353449613,
0.0579283945,
0.0223404784,
-0.2455775291,
0.0298246238,
-0.2363340408,
0.1488296092,
-0.1936104745,
0.0741281584,
0.1551230252,
-0.1749054492,
0.0226380173,
-0.0027899744,
0.0246134959,
0.0327721089,
0.1727045625,
0.0954935253,
0.8078363538,
0.3346099555,
-0.022389479,
0.0486160517,
-0.2773946524,
0.0121138627,
0.1838238984,
-0.0739839002,
0.2357073128,
-0.1665160209,
-0.072234273,
0.123578012,
0.4882239103,
-0.1231640503,
0.215479821,
-0.0793339908,
0.2397373915,
-0.0945613757,
0.198304683,
0.1508797258,
0.2667446434,
-0.0931285843,
0.0235778112,
0.0221512876,
-0.1578656882,
0.1261939406,
0.2185702473,
-0.3450980186,
-0.1069146767,
0.0952891931,
0.1272651851,
-0.4926976264,
0.1087140366,
-0.6289336085,
-0.1132392362,
-0.0409730375,
-0.1492631733,
0.0094426647,
-0.0940174684,
-0.1626639515,
-0.2838167846,
-0.3629389703,
-0.1701835841,
0.4401835203,
0.5001074672,
-0.2889373899,
-0.2283188105,
-0.0966437832,
-0.0193130095,
0.3344839811,
0.2680681944,
0.1076017991,
0.0018625878,
-0.1334109604,
-0.1324549317,
0.0562287159,
-0.2366833389,
-0.0054784124,
-0.1397374272,
0.1391026676,
-0.3680700958,
0.0175797734,
-0.128509298,
0.1051102132,
-0.1527921557,
-0.1187515259,
-0.4795323908,
-0.0772051886,
-0.4588773549,
0.1516208649,
0.2532347441,
0.0194799826,
-0.2368890643,
-0.1563994884,
-0.0646226332,
-0.1802509576,
-0.0223042816,
0.2361233085,
0.1033842415,
0.0372080244,
0.025873065,
0.199301362,
0.031971056,
-0.0736459792,
0.3168278635,
0.1739190668,
0.2954162955,
0.1351007074,
-0.0611760095,
-0.0937800035,
0.0185368471,
0.2630786896,
0.5530714393,
-0.014635467,
-0.0177887045,
-0.2480933368,
0.1734482348,
-0.2884627581,
-0.0184250735,
0.1141862795,
-0.0781219676,
-0.5648807883,
0.4308209121,
0.0625795126,
-0.08220613,
0.075209178,
-0.094658725,
0.2422336638,
-0.0402170941,
0.4068409801,
0.7529959083,
-0.0795906037,
0.0255432017,
-0.1882150322,
0.1550855041,
-0.2804106474,
0.2354138941,
-0.2993744016,
-0.2011639774,
0.4214915335,
0.4120865166,
-0.0972426459,
0.1152781397,
-0.0703909174,
0.066741772,
0.7104310989,
0.1327816844,
0.0329426229,
-0.0580304228,
0.1763575673,
0.3949288428,
0.114003405,
-0.064123787,
-0.1775740385,
0.364651233,
0.4139312506,
0.1880566478,
-0.4847732186,
-0.0153215881,
-0.0688163415,
-0.304299891,
-0.064174816,
-0.1743085384,
-0.1911010295,
0.1235440746,
0.0249653533,
-0.0924861431,
0.1001884416,
-0.3238374889,
-0.0213371795,
0.166619435,
-0.0541969761,
-0.4020611346,
0.3309743106,
0.4432748556,
-0.0125339236,
-0.2154940516,
-0.3891786933,
0.0132994633,
0.1771955192,
0.4048062265,
-0.0600418113,
0.1703036129,
-0.1342035234,
-0.2803756297,
-0.1264841557,
0.4139948487,
0.0436045825,
0.2523823082,
0.3450064063,
-0.1774350852,
0.3462058902,
-0.0125082247,
-0.0972226933,
-0.1465277225,
0.1158096418,
-0.2892938256,
-0.1744135767,
0.2822031677,
0.196195811,
0.1369200945,
0.2372731119,
-0.0769482926,
-0.3263743222,
0.1698494107,
0.4115201533,
-0.1071408093,
0.2010270208,
-0.3317496181,
0.0844250321,
0.3444565535,
0.2096614242,
0.0686434805,
0.2270648926,
-0.083057709,
0.344119817,
-0.318824023,
0.2829728127,
0.1815320998,
0.489118576,
-0.011934733,
-0.1267027855,
0.0683196336,
0.4705052972,
-0.0840447247,
0.0952897146,
-0.1528709978,
-0.1357559115,
-0.2434610873,
0.0611322857,
-0.1101984084,
0.2194022238,
-0.2932598293,
-0.1439932287,
0.0557411835,
-0.2541646659,
-0.1065770164,
-0.1062937602,
-0.0946835354,
0.0392289869,
-0.1367757618,
0.5326122642,
0.1308068931,
-0.0100219762,
0.3000429571,
-0.1281924099,
0.1992918551,
0.0591077395,
0.0110042514,
0.1053410172,
-0.0249098055,
0.0346370898,
0.0779796094,
0.0038931987,
-0.1783270687,
0.3678908944,
0.2766424716,
-0.5722075701,
-0.0486139767,
0.1121277437,
0.094587408,
-0.0071760593,
-0.1297579408,
0.3596753478,
0.1004673839,
0.2457060516,
-0.1034886986,
0.1777022779,
0.2419720739,
-0.5511261225,
0.0983387008,
-0.3128455281,
0.5175264478,
0.5478050113,
-0.0443057492,
-0.5008807182,
-0.3835436106,
-0.0597349405,
-0.2204342335,
-0.2770812213,
0.1814485192,
-0.2653838992,
-0.226154536,
-0.238860473,
0.2256525606,
-0.323036164,
-0.275654912,
-0.0900103301,
-0.3829521239
] |
https://github.com/huggingface/datasets/issues/137 | Tokenized BLEU considered harmful - Discussion on community-based process | @srush @thomwolf
ModelFront could provide (automated, "QE-based") evaluation for all the pretrained translation models you host. Not bottom-up and not valid for claiming SoTA, but independent, practical for builders and not top-down.
For that I would also suggest some diverse benchmarks (so split it out into datasets with only user-generated data, or only constants, or only UI strings, or only READMEs) which tease out known trade-offs. Even hypothetical magic eval is limited if we always reduce it to a single number.
Realistically people want to know how a model compares to an API like Google Translate, Microsoft Translator, DeepL or Yandex (especially for a language pair like EN:RU, or for the many languages that only Yandex supports), and that could be done too.
| https://github.com/huggingface/nlp/blob/7d1526dfeeb29248d832f1073192dbf03ad642da/metrics/bleu/bleu.py#L76 assumes the inputs are tokenized by the user. This is bad practice because the user's tokenizer is usually not the same as the one used by `mteval-v13a.pl`, the closest thing we have to a standard. Moreover, tokenizers are like window managers: they can be endlessly customized and nobody has quite the same options.
As @mjpost reported in https://www.aclweb.org/anthology/W18-6319.pdf BLEU configurations can vary by 1.8. Yet people are incorrectly putting non-comparable BLEU scores in the same table, such as Table 1 in https://arxiv.org/abs/2004.04902 .
There are a few use cases for tokenized BLEU like Thai. For Chinese, people seem to use character BLEU for better or worse.
The default easy option should be the one that's correct more often. And that is sacrebleu. Please don't make it easy for people to run what is usually the wrong option; it definitely shouldn't be `bleu`.
Also, I know this is inherited from TensorFlow and, paging @lmthang, they should discourage it too. | 123 | Tokenized BLEU considered harmful - Discussion on community-based process
https://github.com/huggingface/nlp/blob/7d1526dfeeb29248d832f1073192dbf03ad642da/metrics/bleu/bleu.py#L76 assumes the inputs are tokenized by the user. This is bad practice because the user's tokenizer is usually not the same as the one used by `mteval-v13a.pl`, the closest thing we have to a standard. Moreover, tokenizers are like window managers: they can be endlessly customized and nobody has quite the same options.
As @mjpost reported in https://www.aclweb.org/anthology/W18-6319.pdf BLEU configurations can vary by 1.8. Yet people are incorrectly putting non-comparable BLEU scores in the same table, such as Table 1 in https://arxiv.org/abs/2004.04902 .
There are a few use cases for tokenized BLEU like Thai. For Chinese, people seem to use character BLEU for better or worse.
The default easy option should be the one that's correct more often. And that is sacrebleu. Please don't make it easy for people to run what is usually the wrong option; it definitely shouldn't be `bleu`.
Also, I know this is inherited from TensorFlow and, paging @lmthang, they should discourage it too.
@srush @thomwolf
ModelFront could provide (automated, "QE-based") evaluation for all the pretrained translation models you host. Not bottom-up and not valid for claiming SoTA, but independent, practical for builders and not top-down.
For that I would also suggest some diverse benchmarks (so split it out into datasets with only user-generated data, or only constants, or only UI strings, or only READMEs) which tease out known trade-offs. Even hypothetical magic eval is limited if we always reduce it to a single number.
Realistically people want to know how a model compares to an API like Google Translate, Microsoft Translator, DeepL or Yandex (especially for a language pair like EN:RU, or for the many languages that only Yandex supports), and that could be done too.
| [
-0.3010782003,
-0.3047811985,
-0.0611796752,
-0.3138871789,
0.1273147911,
-0.327370882,
0.3816561997,
0.1755339652,
-0.4096499681,
0.3841945827,
-0.1201143935,
0.1421946287,
-0.0175856464,
0.095563814,
-0.0426303595,
0.1114331409,
0.2059901655,
0.0186358374,
0.5584242344,
-0.1555034369,
-0.2218501866,
-0.1242717355,
0.0931644663,
0.4027061462,
-0.1611104906,
0.1850785017,
0.2451399863,
-0.2799307704,
-0.2717313766,
-0.2062996775,
-0.3766921461,
0.3417184949,
-0.1017316952,
0.1029788777,
-0.0001036643,
-0.2463438064,
0.013314194,
0.0624923259,
-0.4220635891,
-0.3517740965,
0.2042216212,
-0.001887323,
-0.1989039779,
-0.1293877363,
0.1683181971,
-0.0654819608,
0.0924512073,
-0.0769089162,
0.4604597092,
-0.0036923578,
0.1910533458,
0.2854011059,
-0.4029685557,
0.1959447265,
-0.0800037757,
0.0667357668,
-0.0438211299,
0.091897361,
0.0659917295,
0.3166936934,
-0.0174480844,
0.174299553,
0.1360619664,
-0.3998277485,
-0.0907146558,
-0.0763451383,
-0.0710829496,
-0.2661142349,
0.073797442,
0.6323916316,
-0.0693956763,
0.0650853962,
-0.5173419714,
-0.208291024,
0.0953331888,
-0.3892347217,
0.0115179373,
-0.086508669,
0.1589217633,
0.0082929507,
0.0806457028,
0.2467939854,
0.1504050791,
0.034828335,
-0.0706619322,
0.1887611151,
-0.0210123416,
-0.0120100882,
-0.0475757085,
-0.0762668177,
-0.3279491067,
0.0747205094,
-0.1095161736,
0.024523899,
-0.3229112029,
-0.152634874,
0.1233858019,
-0.4519010186,
0.0032076649,
-0.0374151878,
0.3347590864,
0.4413191676,
-0.361633569,
0.0896281078,
-0.1255674809,
0.3435745835,
-0.0596447885,
-0.0491023771,
0.4535951614,
-0.0634099618,
0.405498296,
0.1880564392,
0.0947801247,
-0.0840572938,
-0.3517466784,
0.2669508755,
-0.3329096437,
-0.1914093941,
-0.5132959485,
0.0346815847,
-0.1944802701,
-0.0897802562,
0.0164489262,
0.1560227424,
-0.2040170878,
0.1376793236,
-0.1604218185,
0.0174841136,
-0.0186057594,
-0.3845179081,
-0.0334107801,
-0.2106871009,
-0.2203494012,
-0.0961608291,
-0.1874137819,
0.0846681744,
0.2580227256,
-0.0988031775,
0.394230485,
-0.2225655764,
0.0133918291,
-0.2726569474,
0.0337811373,
-0.2382859737,
-0.2118431926,
-0.1812313199,
-0.2084268034,
-0.1865704507,
-0.0181800593,
-0.0470122732,
-0.1525340229,
-0.289927274,
0.2821365893,
0.184029147,
0.0047595995,
0.1546300203,
-0.4161117077,
0.5570936203,
-0.1702481359,
0.3113903403,
0.3434074521,
-0.1283846647,
-0.1843542308,
-0.1070309803,
0.1684686393,
0.0197691564,
-0.1154245958,
-0.1988825351,
0.4583141804,
0.1314862967,
0.2196231037,
0.3778915703,
-0.301466912,
0.3738221228,
0.1338274479,
0.2919659913,
0.1472804248,
0.2005860656,
0.0152870463,
-0.0110683907,
-0.074176833,
-0.2649730444,
-0.0135810468,
-0.1358347386,
0.4207937121,
-0.2460365295,
-0.0291043259,
0.2523931265,
0.0322385579,
0.0370516218,
-0.4075155556,
-0.4062933922,
0.2187839448,
0.0205368176,
0.1168177277,
-0.1498483419,
0.2145438194,
0.6380785108,
0.1009496674,
-0.4478611052,
-0.1879838556,
-0.3772437274,
0.4720916152,
-0.1045633033,
0.1327014118,
0.264772296,
0.3468116522,
0.224471435,
-0.0971408859,
0.2720698416,
0.2956108153,
-0.2033839226,
0.1709332466,
0.1735497862,
0.1529825926,
0.1029698998,
0.1602185071,
0.0174836051,
-0.2046833634,
0.2456157207,
-0.4802747071,
-0.2275651246,
-0.5535259247,
0.0107630277,
0.2309433371,
-0.1112871692,
0.081382893,
0.0827924088,
-0.0050032558,
0.3574960828,
-0.1463562995,
-0.0156821888,
-0.1896277219,
0.2357197553,
-0.0501511134,
0.1731042117,
-0.2341885418,
0.4826673567,
0.3344713748,
0.2200549841,
-0.2113865465,
0.1971501112,
-0.0720545948,
0.1580659151,
0.3045947254,
0.6122881174,
0.1674380451,
0.0662424043,
0.1328542382,
-0.4178975821,
0.0257424433,
0.1547710299,
-0.149104178,
-0.2237517387,
0.2564690113,
0.2144481987,
-0.1147009358,
0.0463885218,
-0.1337213218,
0.0569408312,
0.5578291416,
-0.1428239942,
0.2295326442,
0.1989189535,
0.5189014673,
-0.3050461113,
-0.0725496635,
0.01592285,
-0.1373864114,
0.0877700895,
0.2015789896,
0.1478749216,
-0.0273406841,
-0.2188293636,
0.1252615154,
0.015782807,
-0.1527895182,
0.1578862667,
-0.057247147,
0.2114067823,
-0.2554962337,
-0.1779025644,
-0.0976839513,
-0.0542229936,
-0.0601529144,
0.1648681015,
-0.1169075593,
0.1615853608,
-0.125360027,
-0.0872273445,
-0.1981624663,
-0.2564948201,
0.3206939101,
-0.294539988,
-0.1807957888,
0.2102751434,
0.1062845811,
0.5638190508,
-0.3794337809,
0.004739874,
0.0382162817,
0.0092612486,
-0.3987801969,
0.088999711,
0.0041585248,
-0.3560524881,
0.3400894105,
-0.1060510203,
-0.3122851551,
-0.0148052052,
-0.6370802522,
0.165457502,
-0.0358798131,
0.0560886525,
0.0953678042,
-0.5258800983,
-0.342861861,
-0.0420558974,
-0.0809342489,
-0.0219958611,
-0.1218087152,
0.1219162345,
0.0355794765,
-0.2740755975,
-0.1570347399,
-0.3323711753,
0.1546517909,
-0.0127201704,
0.2127462029,
-0.4659499526,
0.1562656611,
-0.1724226773,
0.0156062283,
0.1617345959,
0.0289316308,
0.2153356671,
-0.171378538,
0.138395071,
0.0528836884,
0.0204354152,
-0.1943563372,
-0.0703225732,
0.0171598736,
0.2441696823,
0.1987922937,
-0.240487963,
-0.1531135738,
0.2164016515,
-0.0376481637,
0.0399205089,
-0.1564818621,
-0.0306666922,
0.045114778,
-0.1633165479,
0.1383824795,
0.0089753494,
0.2126476914,
0.1522886306,
0.4314676821,
0.0553292744,
0.402992934,
0.5166794658,
0.4181678295,
-0.1030313298,
-0.1397066265,
0.1411387771,
0.2512728274,
-0.1293343306,
-0.0605844222,
0.138382867,
0.3226549923,
-0.1787819862,
-0.2134158611,
0.5223708749,
-0.1267058402,
-0.0794633031,
-0.0309165567,
-0.2024282813,
0.0861632377,
-0.1707435846,
0.2229555994,
-0.0606428348,
0.1329787374,
-0.1167043671,
-0.0526945516,
0.2400889695,
-0.1161269173,
0.4134404957,
0.1377024651,
-0.0786089823,
-0.0248050373,
-0.1858156919,
-0.0177488104,
-0.1989762634,
0.2066974789,
-0.0497015044,
0.6125745773,
-0.0224639513,
0.0415998548,
-0.0182194263,
-0.3017793894,
-0.132573545,
-0.0910972431,
0.0358235054,
-0.1997814626,
-0.1944391429,
-0.0023741808,
-0.0775746182,
-0.2604104877,
-0.2908526957,
0.3734754622,
0.3450252414,
-0.3941193521,
-0.1345342845,
-0.1737399548,
0.1843831241,
-0.1679183841,
0.225570485,
-0.488570869,
-0.1817591786,
0.003979817,
0.1672818959,
-0.2667726576,
-0.0977737978,
-0.0358691663,
0.0778496936,
-0.4336228669,
-0.0363896079,
0.2320014387,
0.3020261824,
-0.2426453829,
0.1992154121,
0.0103912717,
-0.1332960874,
0.2695195079,
-0.0817993358,
-0.0510798283,
-0.2775350511,
-0.4561477005,
-0.1318356097,
-0.2702734172,
0.096823886,
0.4356079996,
-0.1423232555,
0.4133486748,
0.0749866888,
0.1741436124,
-0.0798214749,
0.3434536457,
0.0658070445,
0.4377071559,
0.0558748059,
-0.1456005275,
-0.0263278577,
-0.0390201807,
-0.2419624776,
-0.0920765996,
0.1118782014,
-0.2722542286,
0.5859878659,
0.6461002231,
0.8278369308,
0.0803749859,
-0.0478749275,
0.2468945831,
-0.0552866533,
0.1243922338,
-0.5560687184,
0.0345645137,
-0.1392501593,
-0.0212093424,
0.0536285937,
0.1082494259,
0.0025431816,
0.118990317,
-0.1170469373,
0.0566631109,
0.1732518524,
0.1567190439,
0.2821531296,
0.2916400135,
-0.0329691246,
-0.2444657385,
-0.0386998877,
0.1101935953,
-0.1400665045,
-0.2128026783,
-0.1066355035,
0.1880791634,
0.0331032723,
0.0293954313,
0.0787012056,
0.0888461471,
-0.5987719893,
-0.0650128946,
-0.0856704414,
0.2696972489,
0.35806036,
-0.0188839827,
0.8316286802,
0.2832249105,
0.1191171706,
-0.1778424233,
-0.0494898334,
0.1510474384,
0.1721254289,
-0.3283568919,
0.3913447857,
-0.2600152194,
-0.0559407026,
0.199747771,
0.4209336042,
0.190862909,
-0.2129945606,
-0.1195624098,
0.1156528294,
0.0422235467,
0.2432254404,
0.4383272827,
0.1440797746,
-0.0786427334,
0.1281516254,
-0.1174272522,
-0.2338216603,
0.0916192606,
0.1162771583,
-0.5345737338,
-0.0330854356,
-0.1756122857,
0.0224824566,
-0.2264662683,
0.1342689991,
-0.4359615743,
-0.1769835353,
-0.1010554805,
-0.1604727507,
-0.0274051894,
-0.3208800554,
-0.0187317673,
-0.3615951538,
-0.3917419612,
-0.2454907,
0.3045249879,
0.3522574604,
-0.1608035564,
-0.009843058,
0.1152898595,
0.0346934311,
0.1334691048,
0.2729246914,
0.0233789552,
-0.1093131676,
-0.0115123922,
-0.1055806875,
0.1600702852,
-0.3418624103,
-0.0706232041,
-0.0519283712,
0.2057736814,
-0.4521647692,
-0.077500388,
0.2171662301,
0.1973766834,
-0.0114864865,
0.0005604064,
-0.3841931522,
-0.1844679564,
-0.4554781914,
0.0981120765,
0.2321024686,
0.0263407603,
-0.1257059574,
-0.0285963714,
0.079014346,
-0.1849725395,
0.0533489734,
0.0321025588,
-0.0278660413,
0.2553342283,
-0.0528881885,
0.4102687538,
-0.009944357,
-0.187107116,
0.1511583775,
0.3071474731,
0.3186531663,
0.2298204154,
0.1377828717,
-0.1820971072,
-0.1341097504,
0.2317278981,
0.1455394626,
0.0820587873,
-0.1794012934,
-0.1591877788,
0.0763330162,
-0.3153577447,
-0.0199869387,
0.2084306628,
-0.1109765545,
-0.6128418446,
0.5199990273,
0.1922834963,
-0.0951463357,
0.1334495097,
-0.0495554097,
0.0025590688,
0.0175717361,
0.4665991664,
0.6622137427,
0.0724931061,
0.1799517274,
-0.1895279586,
-0.2662144601,
-0.40755862,
0.0489829294,
-0.0582188182,
-0.0481621958,
0.4330040514,
0.1064981818,
-0.0178904515,
0.1348910183,
-0.1890155077,
-0.1548716873,
0.6038553715,
-0.0263804477,
0.2872193754,
0.057581909,
0.1438651383,
0.4932639599,
0.184705317,
-0.211464718,
0.1327317655,
0.147363022,
0.3855802715,
0.3346915245,
-0.288831085,
-0.1308002919,
0.0546635762,
-0.1389884055,
-0.3133110106,
-0.1855574697,
-0.0357174799,
-0.5018914938,
0.2657039464,
-0.0431043655,
0.1155029461,
-0.633898437,
0.2443314046,
0.0073592961,
0.0681275651,
-0.2131642103,
-0.0517547689,
0.50436306,
-0.1438053697,
-0.0407437123,
-0.0937771499,
0.0617832169,
0.0430581905,
0.211807549,
-0.2009400874,
0.1442923695,
-0.2338577509,
-0.0210404638,
-0.0939822942,
0.4442206621,
0.0067855488,
0.1781802177,
0.237249434,
0.045648694,
0.3661987185,
0.0389942452,
-0.2013031542,
-0.1067337021,
0.0866034999,
-0.0056920131,
-0.2740409374,
0.2464194447,
0.2823232412,
0.3083329797,
-0.1360839754,
0.1157034189,
-0.4452382028,
0.3003876507,
0.373136133,
-0.1089383587,
0.0536350124,
-0.1768933386,
0.1352116913,
0.3026173115,
0.2551554441,
0.1132304817,
0.16729559,
-0.0844836608,
0.298335731,
-0.1511465758,
0.185239777,
0.4153448641,
0.3259378374,
-0.0650974438,
0.0395725965,
0.0872731283,
0.3574020863,
-0.1685947627,
0.0177784171,
-0.3066980541,
-0.1291560531,
-0.0439795703,
0.0610174239,
-0.15766716,
0.2799115479,
-0.2105529904,
-0.117738083,
-0.115410164,
-0.2146641761,
0.0347235724,
-0.1586816013,
-0.2142565995,
0.1090107188,
0.1373439282,
0.4826806188,
0.3121455014,
-0.287876904,
0.1421315968,
-0.1687913984,
0.2134720385,
0.0941194221,
-0.2045437545,
0.1016779616,
0.1986632794,
0.0027233951,
0.1577430665,
0.0377341844,
-0.2912995219,
0.3116966486,
0.4283346236,
-0.5875478983,
-0.1743977368,
0.0046640211,
0.3589839935,
-0.2686442733,
-0.1424581856,
0.6110183597,
0.212461099,
0.1437300593,
-0.2312260568,
0.0382118672,
0.1179811284,
-0.5521718264,
0.2420515865,
-0.214217633,
0.2684106529,
0.5262132287,
0.0395513736,
-0.7220550776,
-0.2957609892,
0.1374918073,
-0.0636385903,
-0.3452254236,
0.203779012,
0.1262588352,
-0.0357220285,
-0.2306515127,
0.187337786,
-0.2571240664,
-0.3657436669,
0.1439214349,
-0.2025858164
] |
https://github.com/huggingface/datasets/issues/137 | Tokenized BLEU considered harmful - Discussion on community-based process | Very important discussion.
I am trying to understand the effects of tokenization.
I wanted to ask which is a good practice.
Sacrebleu should be used on top of the tokenized output, or detokenized(raw) text? | https://github.com/huggingface/nlp/blob/7d1526dfeeb29248d832f1073192dbf03ad642da/metrics/bleu/bleu.py#L76 assumes the inputs are tokenized by the user. This is bad practice because the user's tokenizer is usually not the same as the one used by `mteval-v13a.pl`, the closest thing we have to a standard. Moreover, tokenizers are like window managers: they can be endlessly customized and nobody has quite the same options.
As @mjpost reported in https://www.aclweb.org/anthology/W18-6319.pdf BLEU configurations can vary by 1.8. Yet people are incorrectly putting non-comparable BLEU scores in the same table, such as Table 1 in https://arxiv.org/abs/2004.04902 .
There are a few use cases for tokenized BLEU like Thai. For Chinese, people seem to use character BLEU for better or worse.
The default easy option should be the one that's correct more often. And that is sacrebleu. Please don't make it easy for people to run what is usually the wrong option; it definitely shouldn't be `bleu`.
Also, I know this is inherited from TensorFlow and, paging @lmthang, they should discourage it too. | 34 | Tokenized BLEU considered harmful - Discussion on community-based process
https://github.com/huggingface/nlp/blob/7d1526dfeeb29248d832f1073192dbf03ad642da/metrics/bleu/bleu.py#L76 assumes the inputs are tokenized by the user. This is bad practice because the user's tokenizer is usually not the same as the one used by `mteval-v13a.pl`, the closest thing we have to a standard. Moreover, tokenizers are like window managers: they can be endlessly customized and nobody has quite the same options.
As @mjpost reported in https://www.aclweb.org/anthology/W18-6319.pdf BLEU configurations can vary by 1.8. Yet people are incorrectly putting non-comparable BLEU scores in the same table, such as Table 1 in https://arxiv.org/abs/2004.04902 .
There are a few use cases for tokenized BLEU like Thai. For Chinese, people seem to use character BLEU for better or worse.
The default easy option should be the one that's correct more often. And that is sacrebleu. Please don't make it easy for people to run what is usually the wrong option; it definitely shouldn't be `bleu`.
Also, I know this is inherited from TensorFlow and, paging @lmthang, they should discourage it too.
Very important discussion.
I am trying to understand the effects of tokenization.
I wanted to ask which is a good practice.
Sacrebleu should be used on top of the tokenized output, or detokenized(raw) text? | [
-0.0534890406,
-0.3386298418,
-0.0087705124,
-0.3742045462,
-0.0085887508,
-0.2285600603,
0.3205291629,
0.0761311278,
-0.4184635878,
0.2326126993,
0.000928638,
0.2679920495,
-0.0949825868,
0.0452179238,
-0.1583248526,
0.1368268877,
0.2894060016,
-0.1308309883,
0.7297713757,
0.0212529339,
-0.0430663787,
-0.1947476417,
0.0014220424,
0.2860234082,
-0.3367883265,
0.1425236017,
0.2514049709,
-0.2285656631,
-0.0521239638,
-0.2923403382,
-0.2806226313,
0.2520862222,
-0.1373459399,
0.0093052471,
-0.0001160272,
-0.4126326442,
-0.1296648532,
-0.0198329668,
-0.142916888,
-0.4186008871,
0.1919953376,
-0.1563179642,
-0.0356621332,
0.0456134304,
0.0545154475,
-0.2076707631,
0.0848314539,
0.1671737134,
0.2774567306,
-0.3143966794,
0.0799154714,
0.2250907719,
-0.6144959331,
0.2736076713,
-0.0548389703,
0.2317453623,
0.0535065085,
-0.0118854381,
-0.0252937004,
0.4090674222,
0.0175444745,
-0.104171969,
-0.0559771843,
-0.3861663938,
0.1353250593,
0.0657963231,
-0.3352598548,
-0.0958414823,
0.2196236104,
0.2872525156,
0.0224595424,
0.1869002283,
-0.1534450799,
-0.2841990888,
0.0761336088,
-0.4379484355,
0.1803533733,
-0.0302006025,
0.2803534269,
-0.1332248002,
-0.0537090153,
0.0750860274,
0.1532896757,
0.1280846596,
-0.1029768735,
0.0057188887,
-0.1361022741,
-0.0367108397,
-0.2315273583,
-0.0838124156,
-0.4070290625,
0.0609028116,
-0.0091076791,
0.0110440096,
-0.0429760702,
-0.0523035266,
0.0025268563,
-0.7345790863,
-0.0853615031,
0.1489669532,
0.2097124308,
0.3566479087,
-0.1289371103,
0.159062326,
-0.0569492728,
0.1275479496,
-0.09877,
0.0199275147,
0.3785918355,
0.0142449895,
0.2808938622,
-0.0214222167,
0.0007673255,
0.2486759424,
-0.154878214,
0.1420985907,
-0.4082832634,
-0.3000938594,
-0.6668436527,
0.1036395654,
-0.2481211126,
0.0378221609,
-0.0483976863,
0.157275334,
-0.1483568549,
0.0623548739,
-0.1810036451,
0.1936270744,
0.1048922688,
-0.2167395353,
0.0502772518,
-0.3493445516,
-0.1972105652,
-0.0617684349,
-0.1969301254,
0.2116459906,
0.1839222163,
0.0738020614,
0.4163666368,
-0.2031271309,
0.031305138,
-0.2946104407,
0.1265488118,
0.0019551727,
-0.2798080742,
0.0322898105,
-0.2459757626,
-0.1797047555,
0.0388393626,
0.4029070735,
-0.1808571219,
-0.3273643851,
0.2659843862,
0.0760198236,
0.0202188995,
0.1035281494,
-0.4328778684,
0.2859941125,
0.1217672676,
0.1663895398,
0.2306156456,
-0.0684603974,
-0.0736714825,
-0.3263159692,
0.2303990722,
-0.3518734276,
-0.1408069134,
-0.2563327551,
0.5405229926,
0.1719581336,
0.3885607719,
0.4680668414,
-0.2848963439,
0.5760136247,
0.0932206437,
0.4495761395,
0.0189669803,
0.04859576,
-0.261914134,
-0.0025359108,
-0.1162558496,
-0.0547502227,
-0.0172039177,
-0.0843821466,
0.5590428114,
-0.0869393423,
0.1992366314,
0.076820001,
0.1631889492,
-0.2353544384,
-0.3542739153,
-0.3971368968,
0.2236182839,
-0.275886476,
0.1850800514,
0.096283637,
-0.0378315039,
0.527756691,
0.2873274386,
-0.0656036437,
-0.0629128069,
-0.2917067409,
0.6088620424,
0.083623454,
0.07105425,
0.1710274369,
0.4758088589,
0.0462912433,
-0.2629959285,
0.0352911204,
-0.1314118654,
-0.4512757063,
0.0885267183,
-0.1049223766,
0.0758572668,
-0.0942521319,
-0.0322296359,
0.0450402983,
-0.3564469516,
0.1642097682,
-0.5558925271,
-0.2223714143,
-0.4970418811,
0.296145469,
0.2391629219,
-0.0020706616,
0.1577321738,
-0.0906916112,
-0.0740425736,
0.1381115317,
0.011025616,
-0.1357455999,
-0.1228665188,
0.3264986873,
-0.046636451,
0.1250043362,
-0.522379458,
0.4003473818,
0.3916241229,
0.2758911848,
-0.2067258358,
0.2369771898,
-0.1858049631,
0.0750562176,
0.4041089714,
0.3920309246,
0.0217133295,
-0.1045066342,
-0.1196125448,
-0.3385769725,
-0.1596173346,
0.1461784691,
0.0319233686,
-0.3729408681,
-0.1031901091,
0.2717977762,
-0.1802097857,
-0.0249539502,
-0.1335629374,
0.1292450428,
0.1978730559,
-0.0696283579,
0.0122744553,
0.0273111556,
0.335627526,
-0.1597329825,
0.1968342066,
-0.0091651557,
0.0043590479,
-0.1094205007,
0.1001756415,
-0.0053066527,
0.0634326115,
-0.24717471,
-0.0943734124,
0.1103152335,
-0.1918457597,
0.2059089243,
-0.1342614293,
0.3183041513,
0.0353251696,
0.0935452804,
-0.118236728,
-0.1221438348,
-0.0409999974,
0.0142043447,
-0.1001667306,
0.017927099,
-0.0039316462,
0.0271519162,
-0.0183167513,
-0.1413635761,
0.1531794518,
0.0193893537,
-0.2313039601,
0.1562377214,
0.1821729243,
0.5524812341,
-0.3020157814,
0.1339546144,
0.1936062723,
0.3675566614,
-0.3302901685,
0.0363847092,
-0.2999412417,
-0.2240294367,
0.1970824152,
-0.0278862175,
-0.3574438691,
0.0504800193,
-0.4842433631,
0.0669598877,
0.1395798326,
0.027516719,
0.1065050289,
-0.3922311962,
-0.5467972755,
-0.1757950336,
-0.0042571491,
-0.0964547545,
0.0331299938,
-0.1423622817,
0.1674598902,
-0.0377140529,
0.0826196671,
-0.110222213,
0.1233958751,
0.1389751881,
0.153555885,
-0.3033346832,
0.0906351507,
-0.2730765343,
-0.1930270344,
0.0952648297,
0.1624789834,
0.197474882,
-0.1028224379,
-0.0607129373,
-0.0131074404,
-0.0805635676,
-0.211952284,
-0.1738860011,
0.0929425731,
0.162852928,
0.3696708679,
-0.1624284983,
0.0751218945,
0.2577896118,
0.0042397846,
-0.1037950069,
-0.2740028799,
-0.2035915107,
0.0812189206,
-0.0519023761,
0.1165925488,
0.0817930102,
0.2820692956,
0.076432541,
0.5138465762,
0.2153431326,
0.0580353327,
0.7999768853,
0.7114073038,
0.0817103013,
0.0359833464,
-0.1352853179,
0.2996605933,
-0.1601795107,
0.1094596311,
0.0748467445,
0.2245963514,
-0.1328704357,
-0.3674923778,
0.4549718201,
-0.0962664559,
0.2582735717,
0.2384828329,
-0.2086205781,
0.0582690202,
-0.127410695,
0.1739630103,
-0.0556664728,
0.1843210757,
-0.0986242443,
0.1526648849,
0.2859436572,
-0.1766542196,
0.3779895306,
0.2085444182,
0.0653848499,
-0.0473963432,
-0.3087043464,
0.1234573722,
-0.5473153591,
0.0934266523,
-0.0639093146,
0.5431888103,
0.0296074599,
-0.0022995807,
0.1439683139,
-0.1351860464,
-0.0970315337,
0.0714726523,
0.0417775996,
-0.2586293817,
-0.1854122579,
0.0914046392,
-0.1382635683,
-0.2102322578,
0.029081272,
0.5118282437,
0.2903951705,
-0.3197951913,
-0.0996140242,
-0.2138157487,
0.1121411622,
-0.0750299096,
0.0956911966,
-0.334577322,
0.0132237161,
-0.1412606239,
0.0880284011,
-0.145070985,
-0.07277219,
-0.169463262,
0.0055156751,
-0.2798150778,
-0.2080272436,
0.1647837907,
-0.0230040755,
-0.1223694235,
-0.0823843405,
0.0094243465,
-0.0722909048,
0.2724731863,
0.3115451038,
-0.2274413258,
-0.1168706864,
-0.4276040196,
-0.1647060066,
-0.1958160847,
0.1057075709,
0.398394227,
-0.1843333393,
0.5690668821,
0.0048115933,
0.1230712458,
-0.1870936006,
0.39801085,
0.0956770629,
0.2545207143,
0.0360729657,
-0.0995103419,
-0.1306924075,
0.0619063899,
-0.3289783299,
0.021771539,
0.1324125677,
-0.2924472988,
0.6204171181,
0.617893517,
0.830117166,
0.0846483931,
0.1251002252,
0.1030751243,
0.0327745602,
0.2072520554,
-0.6080393791,
0.2170163393,
-0.1936601102,
-0.1063489318,
0.0239129979,
-0.0080045974,
0.0482157506,
0.2031488121,
0.0128197353,
-0.1044121906,
-0.1504557282,
0.4825915396,
0.1195064411,
0.1735834628,
0.1527303308,
-0.1248427406,
0.139354527,
-0.0281602871,
-0.1646534503,
-0.0294522792,
-0.3362515271,
0.3733488023,
-0.0945146903,
0.2675046325,
0.2772247493,
0.0196560211,
-0.307372719,
0.0228390638,
-0.0109281549,
-0.0246547423,
0.1751667112,
0.210412249,
0.7899876833,
0.4659534097,
0.2458574623,
-0.0486487821,
0.1249254867,
-0.0467609689,
0.0160925873,
-0.2824116051,
0.3794051409,
-0.1792989522,
-0.1056235433,
0.1692980826,
0.4437360466,
0.0467778407,
0.0936777666,
-0.2310971767,
0.2133799493,
-0.3391325474,
0.0827497467,
0.4338932037,
0.2404440194,
-0.0835728347,
0.0179649405,
0.0970851928,
-0.2547542155,
-0.0175264329,
0.1035509706,
-0.2994260192,
-0.1116392985,
0.062458355,
0.1543575972,
-0.5081811547,
0.1533843279,
-0.5861124396,
-0.1312570423,
0.056773901,
0.1227250844,
-0.0542152412,
0.0861295983,
-0.0087826326,
-0.3815501332,
-0.1786795259,
-0.2653067708,
0.48156932,
0.4449790716,
-0.2063001692,
-0.1911073476,
0.2366995066,
-0.3283566535,
0.1744790077,
0.2197109014,
0.049858395,
0.0739631727,
0.0947087556,
-0.1963035166,
0.15039289,
-0.198608458,
0.0172988027,
-0.0096511692,
0.0963603482,
-0.407347858,
-0.1041630358,
0.1298938692,
0.136352092,
-0.0441095307,
0.1370588541,
-0.1685773581,
-0.0380904078,
-0.2837463617,
0.1469807327,
0.4286893904,
-0.3974759877,
-0.3142192662,
0.0536311939,
0.0646045804,
-0.0767824724,
0.3690260053,
0.185373351,
0.1484676152,
0.1393382549,
-0.1879214197,
0.3939816356,
-0.1106283963,
-0.156099692,
0.127450645,
0.2338509262,
0.3141627014,
0.1648478359,
0.1651277542,
-0.0950677246,
-0.1847109348,
0.1635127962,
0.3346986473,
0.0109324604,
0.0062638032,
-0.4087082744,
-0.0509609506,
-0.491042614,
0.0622510314,
0.2071519941,
-0.0036126212,
-0.7337756753,
0.4949359,
0.1029316857,
0.1583256721,
0.2687263489,
-0.131920591,
0.04466502,
-0.1563636959,
0.3830022812,
0.7513083816,
0.1102814898,
-0.1851554066,
-0.0803582594,
0.0365788117,
-0.453438133,
0.2319746614,
-0.2504217923,
-0.0887409523,
0.4726869762,
-0.0184534825,
0.0739924237,
0.1111713424,
-0.1799920499,
0.2386817485,
0.6313256025,
0.1956052929,
0.1330756992,
0.0964031592,
0.0562117621,
0.2380403727,
0.2916325629,
-0.3061416745,
0.0503401533,
0.2470411956,
0.3151420057,
0.1154832169,
-0.458478868,
0.2262700945,
0.119000949,
-0.3517935872,
-0.2572357357,
-0.1431502253,
-0.1280452609,
-0.1637376845,
0.2087207437,
-0.0065298253,
0.0363616012,
-0.7331237793,
0.0608991683,
-0.0053504873,
0.1665575057,
-0.0927114859,
-0.0820775926,
0.5893760324,
-0.0017919606,
-0.0726916641,
-0.2931447625,
0.2624198496,
0.2441455126,
0.1507081091,
-0.0842478424,
0.1998924315,
-0.1149913296,
-0.2833671868,
-0.1429376304,
0.4707006216,
0.0886060074,
0.3637770414,
0.2629126012,
-0.0730763152,
0.2400517762,
-0.0417576917,
-0.1373884082,
-0.2229872197,
0.3520810008,
-0.1452925205,
-0.2077228874,
0.1517060101,
0.0927270651,
-0.0673965514,
0.1797778308,
-0.2288271785,
-0.1746733189,
0.1131883562,
0.2865765691,
-0.1737412214,
0.2427580804,
-0.0289977863,
0.0552600585,
0.2686695755,
-0.1070954353,
0.188789472,
0.0644711256,
-0.0453248061,
0.1264551431,
-0.0885061249,
0.4814580977,
0.4274743795,
0.15641509,
-0.0851597935,
-0.0036629962,
-0.1007593274,
0.1328280419,
-0.166256398,
0.0295942742,
-0.2819784284,
-0.2470762581,
0.0164001044,
0.1808244139,
-0.3414705098,
0.2594130039,
-0.3715001643,
0.074662976,
-0.2038798332,
-0.0241519697,
-0.0495332666,
-0.0924312696,
-0.2136458606,
-0.1159370542,
-0.0197794531,
0.5663450956,
0.2626962364,
-0.1448653042,
0.1555149704,
-0.2822676003,
0.5056075454,
0.2490211278,
-0.3081421256,
0.1997314394,
0.0465039499,
0.1736229509,
0.1470648646,
0.3265780807,
-0.2225541174,
0.3439585865,
0.4440349042,
-0.5293256044,
-0.3123126626,
0.0500397906,
0.2352318764,
-0.3383471966,
0.0453187376,
0.5623499751,
0.1424376816,
0.3567666411,
-0.3271565437,
0.1723989397,
0.1337707937,
-0.4792154729,
0.2275815159,
-0.29205966,
0.1575167328,
0.5733790994,
0.0559308641,
-0.7430961132,
-0.4670757353,
0.1347174197,
-0.1734418124,
-0.3048740923,
-0.0742863491,
-0.0171921309,
-0.3328157663,
-0.2436644137,
0.3680659831,
-0.3271872401,
-0.3053835034,
0.1229450181,
-0.1342662722
] |
https://github.com/huggingface/datasets/issues/133 | [Question] Using/adding a local dataset | Hi @zphang,
So you can just give the local path to a dataset script file and it should work.
Here is an example:
- you can download one of the scripts in the `datasets` folder of the present repo (or clone the repo)
- then you can load it with `load_dataset('PATH/TO/YOUR/LOCAL/SCRIPT.py')`
Does it make sense? | Users may want to either create/modify a local copy of a dataset, or use a custom-built dataset with the same `Dataset` API as externally downloaded datasets.
It appears to be possible to point to a local dataset path rather than downloading the external ones, but I'm not exactly sure how to go about doing this.
A notebook/example script demonstrating this would be very helpful. | 55 | [Question] Using/adding a local dataset
Users may want to either create/modify a local copy of a dataset, or use a custom-built dataset with the same `Dataset` API as externally downloaded datasets.
It appears to be possible to point to a local dataset path rather than downloading the external ones, but I'm not exactly sure how to go about doing this.
A notebook/example script demonstrating this would be very helpful.
Hi @zphang,
So you can just give the local path to a dataset script file and it should work.
Here is an example:
- you can download one of the scripts in the `datasets` folder of the present repo (or clone the repo)
- then you can load it with `load_dataset('PATH/TO/YOUR/LOCAL/SCRIPT.py')`
Does it make sense? | [
-0.3090121448,
0.3447009623,
-0.0485155955,
-0.1978272945,
-0.0229687784,
0.0207582749,
0.188450098,
0.1586084515,
0.1726605892,
0.239925161,
0.0062492983,
0.3857522011,
0.0464573875,
0.2451038957,
0.3998592496,
0.0255310126,
-0.0244459249,
0.0700494573,
-0.1732784212,
-0.1373273432,
-0.364002198,
-0.2514445782,
0.3551022112,
0.2580878139,
0.1759758741,
0.0368697867,
-0.0416279845,
0.4159366786,
-0.1249529794,
-0.426315099,
0.3296691179,
0.2230904549,
0.2731530368,
0.5622922778,
-0.0001124956,
0.0487475172,
0.0971878618,
0.0915628597,
-0.3861497343,
-0.5210897923,
-0.4382894933,
-0.1007482484,
0.3260931373,
-0.3913040757,
0.0804672614,
-0.2756781876,
0.2364043593,
-0.6570722461,
0.2124788016,
0.3346178234,
0.1648002565,
0.1231685057,
-0.2467633039,
-0.2063305825,
0.1589163691,
0.4795046449,
-0.1128520295,
0.2791861892,
0.44738397,
-0.1877631843,
0.2337215245,
-0.1688643247,
-0.0824528784,
0.1349941492,
0.6063193083,
0.0902401954,
-0.0422740653,
-0.1100495234,
0.2116334885,
0.2509287,
0.752558291,
-0.4354601502,
-0.4185046852,
-0.1471859217,
-0.1568043679,
-0.0201355927,
-0.0830314234,
0.1686900705,
-0.1593194306,
0.3493254185,
-0.2758410871,
-0.379021883,
-0.3844534755,
0.4024393857,
0.0384801514,
0.0108320154,
0.2473139614,
0.1539152414,
0.0587830506,
0.0556051917,
0.292114675,
-0.278150022,
0.4651039839,
0.2353746444,
0.2413293719,
0.1399906427,
0.1555411965,
0.0300890356,
0.2262862027,
0.0460030511,
0.0414504707,
-0.0955521837,
-0.3153200448,
0.1158603728,
0.1871738732,
-0.1279510856,
-0.0290783495,
0.286554873,
0.1502453387,
-0.1007894278,
0.2262395471,
-0.1162561253,
-0.2261371762,
-0.1064449027,
-0.1391729563,
-0.0561171472,
0.3408099115,
-0.3458411992,
0.1678491384,
-0.205803439,
0.0207199771,
-0.1034032404,
-0.0321567394,
0.1876644194,
0.0221795421,
-0.0610920861,
-0.1767024249,
0.2906900346,
-0.0174833555,
0.0387222469,
-0.0492262654,
0.0404998474,
-0.1510085315,
0.2130773962,
-0.0267858189,
0.0682646856,
0.341742456,
-0.2578416467,
-0.0675447658,
0.1835033894,
0.3229321241,
0.0549262352,
-0.0518588014,
0.1016048342,
0.0698421672,
0.232779637,
0.0810618922,
-0.2629656792,
-0.3304675519,
0.2878434658,
0.0846009701,
-0.5126125813,
-0.2862549722,
0.1179921478,
-0.1039313897,
-0.3487533331,
-0.0508179143,
-0.1008579955,
-0.0907145068,
-0.1254525334,
-0.3346059024,
0.0529803745,
-0.2649670243,
-0.2240500003,
0.2608110905,
0.4978342354,
-0.6259245872,
-0.0063598803,
-0.2309514582,
-0.1024578959,
0.0164716374,
0.099395588,
-0.5138141513,
0.4445573092,
-0.0029954065,
0.0540964156,
0.4258202016,
-0.5522387028,
-0.2102413774,
0.3178723454,
-0.3017858267,
-0.1860095412,
0.1405570656,
0.2060303688,
0.0486142933,
-0.0618531778,
0.0390187651,
0.4804838598,
-0.1015204117,
0.1506305039,
-0.1494634449,
-0.4203812778,
-0.0839731768,
0.1870279759,
0.1132035777,
0.2471871525,
0.3971060812,
-0.1075001583,
0.1809026599,
-0.3337996006,
0.0671205148,
-0.1638283134,
0.566372931,
0.0118481815,
-0.2202934772,
0.1150466204,
-0.4672928452,
0.3003493249,
-0.124066256,
-0.0614871457,
-0.1178946793,
-0.3920166194,
-0.5102700591,
0.0492816046,
-0.1401500106,
0.1149685085,
0.0089604091,
0.2614186406,
0.1601192504,
-0.0975658745,
-0.4219168425,
-0.1015221477,
-0.1182909012,
0.1643477231,
-0.0410114788,
0.264551729,
0.0092752092,
0.2183255255,
-0.1034362391,
0.0791502893,
0.0184263177,
-0.1062569767,
0.0431232117,
0.4312106371,
-0.1817667931,
0.3442498446,
0.3935142457,
0.4217565656,
0.1872560233,
-0.0497745275,
0.3038970232,
-0.0257911012,
0.2131174207,
0.1154724732,
-0.4095540047,
0.082039237,
-0.1498389244,
0.3559700847,
0.0774018168,
0.068854183,
0.1919160038,
-0.1492986977,
-0.209076792,
-0.0831065997,
-0.137632668,
0.1600795388,
0.3063043952,
0.002111288,
-0.2828631103,
0.2838186622,
-0.2052481771,
-0.1391824931,
0.1246976852,
-0.0414201729,
-0.1701614559,
0.1188541576,
0.1547648609,
0.6942638755,
0.2962359488,
0.1909160614,
0.2645975649,
0.278221935,
-0.1092055216,
-0.1568906009,
-0.1746371239,
0.0094226161,
-0.1520842165,
-0.0372979157,
-0.1935873777,
-0.1481097341,
0.1039800718,
0.0082542626,
-0.0298513602,
0.2094393522,
-0.2639261186,
-0.0796203911,
-0.4523696303,
-0.300814867,
-0.4785172343,
-0.3388304114,
0.1356677413,
-0.2946912944,
0.077436693,
0.0399069972,
-0.2128746957,
0.0000550311,
0.0094633959,
0.3449992836,
-0.4868345559,
-0.4742687643,
0.1611767113,
-0.280446738,
-0.0841308758,
0.0790377334,
0.5324954987,
0.2608546615,
0.4012040198,
-0.3653787971,
0.0251295436,
-0.4508329332,
0.1964252591,
0.0116488058,
0.2860531211,
0.3462804854,
-0.0934293643,
0.1495045722,
0.1924405247,
-0.164076671,
0.1141790375,
0.0246385764,
0.2139935195,
-0.446677953,
-0.082979843,
-0.0619535893,
-0.0256235935,
-0.389765203,
-0.4546718299,
-0.2127763629,
0.2069659829,
0.3351814449,
0.2323654294,
-0.1442606449,
0.2647135258,
0.3041372597,
0.0645774454,
-0.0183746349,
0.1228379458,
-0.4090553224,
0.2555212379,
-0.3162049055,
-0.2879955471,
0.1857585013,
-0.0576962642,
0.0905841589,
0.1595321149,
-0.3731525242,
-0.383095175,
-0.0730349571,
0.4951601624,
0.2606618404,
0.2412661016,
0.3888583183,
-0.0440209508,
-0.011995363,
0.0503385179,
-0.3888963163,
0.2352427393,
0.062407583,
0.0916619003,
0.2631762922,
0.298997581,
-0.0743818283,
0.8578980565,
-0.1455603391,
-0.1107754931,
0.1480318904,
-0.3166591823,
0.2757999599,
-0.1176743954,
-0.0122442236,
-0.1448897421,
-0.0289505254,
-0.3250272274,
0.1221096367,
0.2036120296,
-0.0890103132,
-0.1741443127,
-0.0853782445,
-0.4541613162,
-0.2337510437,
0.0254913587,
-0.053408917,
0.1687840968,
0.2771442831,
-0.1507515162,
-0.3245591223,
0.1861573458,
-0.0036031946,
0.2770046294,
0.1198661029,
0.1058980972,
-0.5349533558,
0.1628436744,
-0.5217795968,
0.2875428498,
-0.0446010455,
-0.0548370183,
-0.0213947799,
-0.1630277187,
0.1599022001,
-0.1261882931,
0.0439269803,
-0.1828111857,
-0.1097601801,
-0.0068711904,
-0.1080964059,
-0.3330808282,
0.1410887241,
0.2833203375,
0.2643320262,
-0.2453428954,
0.2438479662,
-0.0562429987,
0.0445475057,
0.2595143318,
0.3111402094,
-0.165002197,
-0.0057194177,
0.2337888479,
-0.4701071382,
-0.2506866157,
-0.1330284327,
-0.3484063745,
-0.04406197,
0.3391865492,
0.156136319,
-0.0916159824,
0.1820577085,
-0.0224276502,
0.0625034794,
0.1596191227,
0.1343282759,
0.1258121133,
0.2432863116,
0.1354043335,
0.3282777667,
0.5877699852,
-0.3588279784,
-0.2533798814,
-0.1741583645,
-0.1767532825,
0.2243777961,
0.329205215,
0.1252002269,
-0.1337905675,
0.3102718294,
-0.2872840762,
-0.1254226416,
0.2608675957,
-0.1050271019,
-0.1434649527,
0.0244968757,
-0.8044287562,
0.2895267904,
0.1553311944,
-0.2432936728,
0.266842097,
0.0078170719,
-0.1743749529,
0.2095234841,
0.1629422158,
0.7579630017,
-0.443743825,
0.1145595014,
0.124109894,
-0.4018703401,
0.0330544971,
-0.2425464541,
-0.3431084454,
-0.3062451184,
0.0938953385,
-0.1047331765,
-0.105399996,
0.1476493925,
0.2390691936,
0.131431967,
0.2230503112,
-0.0568475053,
0.3353705704,
0.0288253184,
0.333769381,
0.1361621171,
-0.2415828407,
0.0377577096,
0.1356450766,
0.0677472726,
0.0438891388,
-0.0665083602,
0.085072808,
-0.2782540917,
-0.0189434197,
0.0477678441,
-0.1156930178,
-0.1494703889,
-0.1841486394,
-0.2691522539,
-0.2467089891,
-0.0767549127,
0.4303749502,
0.416723907,
0.0722393841,
-0.3530827463,
-0.1185157746,
-0.1004868969,
0.0056708488,
-0.03549603,
-0.0554672889,
-0.0404177308,
-0.1505733728,
-0.1983324289,
0.2179647535,
-0.1036982536,
-0.3711071312,
0.0277003683,
-0.1833137721,
0.5654060841,
-0.0788401365,
-0.3157851696,
0.3617786765,
0.2291214168,
-0.059753038,
0.0932734162,
0.2492666543,
0.0130074956,
0.027454216,
-0.1529623419,
-0.1657793373,
-0.1468955725,
0.0095033608,
0.0281961914,
-0.1100360975,
0.3025348783,
-0.1202009618,
0.1202399805,
-0.1613373011,
0.2237160653,
0.2726374865,
-0.1207313091,
-0.3481001258,
-0.0674351305,
0.0865757838,
-0.2907438576,
0.1579111218,
0.3332560062,
0.008762246,
-0.1873579323,
-0.1596954912,
-0.3220473826,
0.0357327238,
0.1746587306,
0.3953210711,
0.1721735448,
-0.1684343815,
0.0949208587,
-0.144310385,
-0.2775056064,
0.0315797888,
0.0918971375,
-0.0086685577,
0.4190230668,
0.332351923,
0.1582545042,
-0.2569830418,
0.0122306431,
-0.3626360893,
-0.2923771739,
-0.1488959938,
-0.0217140652,
0.1732618809,
0.0727508888,
-0.1938297302,
-0.0358958878,
-0.3776190281,
0.085322395,
-0.0042174053,
-0.014368155,
0.3106653392,
-0.1886312813,
0.0378821157,
0.3566710055,
-0.0390637815,
-0.1609394103,
0.3279901147,
0.1095999703,
0.1133506671,
-0.031718839,
0.3117021322,
-0.2322440445,
-0.2384359688,
0.2176868618,
0.0534634143,
0.1450154185,
0.3599784374,
0.0809575394,
-0.1786692291,
0.2529163361,
0.0985225439,
0.3109072745,
0.1625378728,
-0.1273651123,
0.2371990979,
0.5944065452,
0.1551053673,
-0.0100594237,
0.0452671275,
0.4078792334,
-0.0945122316,
0.1689715236,
0.356808275,
0.3670761585,
0.0080305627,
-0.0850100592,
-0.1580797881,
0.2763578296,
-0.0155330915,
0.1728954911,
0.4302865267,
-0.1704940796,
0.0022107619,
-0.2089141458,
0.5364077091,
0.1826847792,
0.1012002379,
-0.3112931252,
0.2255074084,
0.23898004,
0.0445957854,
-0.021851588,
-0.3141855597,
0.449392736,
-0.1371201873,
0.0697223693,
-0.2145035714,
0.1119650826,
0.3023661673,
-0.0259370971,
0.0698579922,
-0.0393653028,
0.225037694,
0.3174157739,
-0.3979130685,
-0.5131574273,
-0.2063061148,
0.0943449661,
-0.1360857636,
-0.1871700883,
-0.3797956109,
-0.0526379421,
-0.3703562021,
0.146851778,
-0.0262234304,
0.3386092782,
-0.0082069719,
-0.3097351491,
0.0072238124,
-0.0132662151,
-0.1417607367,
0.134534955,
0.0774540752,
0.2011661232,
0.0318014845,
0.2910662293,
0.0656176507,
0.1547472179,
-0.0896608829,
0.1127418578,
-0.0500758477,
-0.3120881915,
-0.2572542429,
0.097496435,
0.5104214549,
0.1776401848,
-0.1427344978,
0.2959184349,
-0.282982707,
0.2022324502,
-0.1543824524,
0.0820170715,
0.2602856159,
-0.2395669371,
0.1110526025,
0.1815537959,
-0.1238752007,
-0.1938824654,
0.5840382576,
-0.155645743,
0.1547324806,
-0.1188832074,
0.073282823,
0.0356059559,
0.3977751434,
0.2855276167,
0.3457952142,
-0.2175604552,
-0.1462509185,
-0.6215121746,
0.0547002703,
-0.3261854947,
-0.3606290221,
-0.0897470489,
0.0179488957,
0.2037894726,
0.4190506935,
0.0250483379,
0.0577828363,
-0.3072551787,
0.2750275731,
0.1199232191,
-0.3218165338,
-0.1491021514,
0.1752469391,
0.0802075416,
-0.2508782744,
-0.0228303168,
-0.0424544625,
0.0099296439,
0.0608877055,
-0.0181422215,
0.2218648642,
-0.2996993363,
0.3189224899,
-0.1086552814,
0.1874166131,
0.1608806103,
0.1467810869,
-0.1272590756,
0.0153377857,
-0.4648639262,
0.0709753484,
-0.3032179773,
0.0352576487,
-0.4548551738,
0.0857746527,
-0.2342858464,
-0.1904196888,
0.0644101351,
0.0428802036,
0.1759913415,
-0.0478283651,
-0.0736400187,
-0.1847976148,
0.2476386875,
0.058562696,
0.0441951156,
0.2459206581,
-0.0293019935,
0.0700093955,
0.3953745365,
-0.1033556312,
0.0685856044,
0.1040188372,
0.0215661936,
-0.1921865344,
-0.0868415162,
-0.182187438,
0.1563752145,
0.3387642503,
-0.073750332,
0.19432199,
-0.0017365045,
-0.1784484535,
0.0873630643,
-0.1296693832,
0.194075942,
-0.220512569,
-0.0282895546,
-0.4687396288,
-0.4691468775
] |
https://github.com/huggingface/datasets/issues/133 | [Question] Using/adding a local dataset | Could you give a more concrete example, please?
I looked up wikitext dataset script from the repo. Should I just overwrite the `data_file` on line 98 to point to the local dataset directory? Would it work for different configurations of wikitext (wikitext2, wikitext103 etc.)?
Or maybe we can use DownloadManager to specify local dataset location? In that case, where do we use DownloadManager instance?
Thanks | Users may want to either create/modify a local copy of a dataset, or use a custom-built dataset with the same `Dataset` API as externally downloaded datasets.
It appears to be possible to point to a local dataset path rather than downloading the external ones, but I'm not exactly sure how to go about doing this.
A notebook/example script demonstrating this would be very helpful. | 65 | [Question] Using/adding a local dataset
Users may want to either create/modify a local copy of a dataset, or use a custom-built dataset with the same `Dataset` API as externally downloaded datasets.
It appears to be possible to point to a local dataset path rather than downloading the external ones, but I'm not exactly sure how to go about doing this.
A notebook/example script demonstrating this would be very helpful.
Could you give a more concrete example, please?
I looked up wikitext dataset script from the repo. Should I just overwrite the `data_file` on line 98 to point to the local dataset directory? Would it work for different configurations of wikitext (wikitext2, wikitext103 etc.)?
Or maybe we can use DownloadManager to specify local dataset location? In that case, where do we use DownloadManager instance?
Thanks | [
-0.2011065185,
0.1899252981,
-0.0032562944,
-0.2242403626,
-0.1611983925,
0.0761197507,
0.1614467651,
0.0639025196,
0.3210600913,
0.2902062833,
0.1616270095,
0.3396967351,
0.0044045947,
0.1784156263,
0.3171546161,
0.0068331985,
0.0992786959,
0.0957336798,
-0.3213841319,
-0.0826753229,
-0.4165585637,
-0.2904862463,
0.1600190997,
0.2514013648,
-0.0237605795,
0.001826306,
-0.0335626975,
0.2927273214,
-0.1446347088,
-0.4297893643,
0.248342976,
0.0722853318,
0.2206123322,
0.4754657447,
-0.0001182133,
-0.0005180185,
0.104293488,
0.1279480457,
-0.3687493205,
-0.3679016829,
-0.5386095047,
-0.152867496,
0.3830011785,
-0.3592466712,
0.1713760793,
-0.2725838423,
0.3547172546,
-0.5175004005,
0.1106042415,
0.3297718167,
0.0845135152,
0.0164466985,
-0.3243151009,
-0.0814011395,
-0.0194651075,
0.3938505948,
-0.1172909662,
0.0927804336,
0.5590111613,
-0.1517003775,
0.1013464406,
-0.1845554262,
0.0188764222,
0.0987390652,
0.7326968908,
0.1822926253,
-0.1331816167,
-0.1888923943,
0.2656270862,
0.275215894,
0.9787489176,
-0.48840487,
-0.307888329,
-0.196776405,
-0.1440264434,
0.1702156067,
0.1675822586,
0.0440689586,
-0.2567722201,
0.338314414,
-0.2870934308,
-0.3765917122,
-0.3952593207,
0.3760221899,
-0.0365994722,
0.1612858325,
0.2452767938,
0.1619728357,
-0.05026659,
0.1000687853,
0.3769277036,
-0.4633914232,
0.533257544,
0.2898095846,
0.2012472898,
0.0762998089,
0.0185709149,
0.2050854713,
0.1075656265,
0.0456787869,
0.0935306922,
-0.1151160225,
-0.2197816521,
0.1503827423,
0.1955342591,
-0.1072269082,
0.058099661,
0.0583120324,
-0.0129447682,
-0.1241885871,
0.2272546291,
-0.205203414,
-0.0919413939,
-0.1886605024,
-0.0670248494,
-0.1223851293,
0.1509943455,
-0.1734289229,
0.1557188481,
-0.1623833776,
0.1865758151,
-0.0444907062,
0.0042568929,
0.0590121411,
0.0116431667,
-0.0666118339,
-0.2304314822,
0.2163505256,
-0.1007297933,
0.1422899812,
-0.002303448,
0.1083589867,
-0.1681966782,
0.2011041939,
-0.0141534861,
0.1593434215,
0.3369290829,
-0.1070682779,
-0.2198597193,
0.2733106911,
0.3086563349,
0.0411726497,
-0.0588239618,
-0.000256408,
0.0013234708,
0.4736918509,
-0.0012953499,
-0.2111901641,
-0.3106510937,
0.280978173,
-0.0066264998,
-0.4388180673,
-0.2618162334,
0.0476114117,
-0.0542421974,
-0.3454585969,
0.0852807537,
-0.0601729266,
-0.1355479509,
-0.2552622557,
-0.2472645938,
0.061234396,
-0.3180572689,
-0.2794023156,
0.1472723782,
0.4335567951,
-0.6197720766,
0.1046252176,
-0.3968457878,
-0.0975055024,
-0.0415218621,
0.0253652725,
-0.5023852587,
0.6443157196,
-0.0937029272,
0.1674819589,
0.5209028721,
-0.5649001002,
-0.3592700958,
0.3398554623,
-0.4539186656,
-0.1321177185,
0.0977256671,
0.2600649595,
0.0936465636,
-0.1097516567,
-0.0989371762,
0.4697244465,
-0.1129037663,
0.2188135237,
-0.1347547024,
-0.4183903337,
-0.0843810514,
-0.015787458,
0.0025853305,
0.221138373,
0.3674027622,
-0.0033049721,
0.1627335548,
-0.2260329127,
0.2156275213,
-0.1381241679,
0.3959727883,
-0.0033241806,
-0.4116643965,
0.0530094616,
-0.5292722583,
0.2987863719,
-0.0821761861,
-0.2978419065,
-0.0617120191,
-0.2491995096,
-0.4075194895,
-0.0099815484,
-0.1845236272,
0.1506022513,
0.0044378517,
0.2695953846,
0.2963565588,
0.0519345477,
-0.4162102938,
-0.1334282309,
-0.0967295095,
0.1747344732,
0.0542282015,
0.1159510538,
0.1357029378,
0.2156602889,
-0.2228405476,
-0.1024401262,
-0.0811591819,
-0.052687522,
-0.0750326514,
0.4124058187,
-0.1210078448,
0.3154418766,
0.3610309362,
0.3907227516,
0.0826730207,
-0.0380303673,
0.3107644022,
-0.0806858465,
0.2622422278,
-0.0040191016,
-0.4382067919,
-0.089832291,
-0.2542897165,
0.3789342046,
-0.0098820208,
0.0602175258,
0.0066506187,
-0.1252068877,
0.0367148705,
-0.1321916282,
-0.2798059583,
0.1747566164,
0.368437469,
0.0706077367,
-0.0385743082,
0.2817547023,
-0.0782720298,
-0.0912841409,
0.1970614195,
0.0334143266,
-0.1778915823,
0.0533278398,
0.1861424595,
0.6401776671,
0.3523538113,
0.0190554988,
0.3730778098,
0.226535961,
-0.065994449,
-0.1597479135,
-0.080778785,
0.0429388285,
-0.2280529141,
0.0812426284,
-0.3045519888,
-0.1317314059,
0.2525742054,
0.1863313168,
0.0300051533,
0.1881731749,
-0.1252737641,
-0.1555031538,
-0.5117796063,
-0.133625865,
-0.4786207378,
-0.1955776066,
0.1407467723,
-0.3628892899,
0.0656998828,
0.1614758223,
-0.1322315931,
-0.1513797194,
-0.0597911552,
0.3881179094,
-0.4753083587,
-0.3518948853,
0.1394779831,
-0.1854701638,
-0.2374276817,
0.0315734781,
0.611548245,
0.446393311,
0.3382504582,
-0.2882734537,
0.1297726184,
-0.4036674201,
0.2660571337,
0.0261179861,
0.2925160229,
0.3645950556,
-0.0750442743,
0.2648327053,
-0.0450084209,
-0.2584795952,
0.0405014232,
0.0190759767,
0.2235125303,
-0.436073035,
0.0972263739,
0.0809807852,
0.128053382,
-0.2775897682,
-0.4195916355,
-0.0940383822,
0.1597173363,
0.094189398,
0.1976953,
-0.3276098669,
0.2694449425,
0.288751483,
-0.0299179405,
0.0139776515,
0.177430138,
-0.5027781725,
0.1432037205,
-0.3212494552,
-0.3227062523,
0.1215479001,
-0.0575175099,
0.0851604939,
0.1391379833,
-0.3284093142,
-0.3233731985,
-0.1079701185,
0.4302555621,
0.2456708997,
0.2824123502,
0.4292850196,
-0.0518873036,
0.0977899656,
0.0105850054,
-0.1871977895,
0.2799856067,
0.0446821786,
0.1223632917,
0.4100356102,
0.1412942559,
-0.021201212,
0.8346470594,
-0.0451971777,
-0.0149270659,
0.172093749,
-0.1510706693,
0.1046922132,
-0.1567701697,
0.0099294372,
0.028863417,
0.1644712538,
-0.172655791,
0.261954397,
0.1630267799,
-0.023836961,
-0.1079986691,
-0.0019460042,
-0.6516390443,
-0.2815017104,
0.1576977223,
0.0779748932,
0.1179108098,
0.1506606489,
-0.1593615264,
-0.3685024679,
0.0843605623,
0.0596061498,
0.3265195489,
0.0653828457,
0.2057807297,
-0.5275418162,
-0.0217871256,
-0.4887797236,
0.1494191736,
0.1151234955,
0.0102095567,
-0.0593723953,
-0.1659352332,
0.2630721629,
0.0466138385,
0.017136015,
-0.3798719049,
-0.2030288279,
-0.1739843935,
-0.0245625675,
-0.3165879846,
0.1540760845,
0.1968533844,
0.3650212288,
-0.3394564092,
-0.0869270191,
0.0256621614,
-0.0603917167,
0.0684169456,
0.3307766318,
-0.1495116055,
0.002293146,
0.3297541738,
-0.3381730914,
-0.0906087235,
-0.174262777,
-0.3632779121,
-0.043992836,
0.2933522165,
0.1321928352,
-0.1658267379,
0.2575239241,
-0.0628169551,
-0.0434786044,
0.061550647,
0.1208432019,
0.0758472532,
0.1748594493,
0.2589617372,
0.3091346025,
0.4725777507,
-0.2592530251,
-0.2494719923,
-0.1277250648,
-0.1911687255,
0.2383448184,
0.3395715356,
0.0862146169,
-0.0512473397,
0.21601969,
-0.2398548126,
-0.1491381079,
0.4135979116,
0.0208384693,
-0.1216602623,
-0.0528115481,
-0.5506031513,
0.4123479128,
0.1758912802,
-0.2676661611,
0.4514496922,
0.1657425761,
-0.2359359711,
0.0756051913,
0.2379731238,
0.6936482787,
-0.3097133338,
0.0802346319,
0.0272934102,
-0.330006063,
0.1457707435,
-0.2029700428,
-0.2584661245,
-0.2801541686,
0.0056253509,
-0.1864777505,
-0.066482313,
0.2095679045,
0.3264793754,
0.1327620149,
0.1352020204,
-0.1065574288,
0.4445718825,
-0.0459574535,
0.3641991317,
-0.0763153806,
-0.1981815994,
0.2768373489,
0.0686808378,
0.1540251225,
0.0718906373,
-0.1086257696,
0.1333894432,
-0.3500999808,
0.065073058,
0.0456932709,
-0.2884736359,
-0.2221193165,
-0.1750268787,
-0.3311594129,
-0.2256613821,
0.086642839,
0.5593302846,
0.3667833209,
-0.0627468824,
-0.363265276,
-0.1484798938,
-0.2045289129,
0.0321371444,
-0.0109099988,
-0.1073166579,
-0.0927570388,
-0.1285811365,
-0.2543648481,
0.2171222717,
-0.0968962237,
-0.1919464171,
0.1000000313,
-0.1579967886,
0.5252966285,
-0.1653542966,
-0.5256082416,
0.1742154956,
0.1905508637,
0.0368739776,
0.0375825018,
0.0699381232,
0.1399576068,
0.1634887159,
-0.198480323,
-0.0739288554,
-0.1062671617,
0.0556707382,
-0.081946075,
-0.2178381532,
0.3355741203,
-0.2186210603,
0.1150697321,
-0.1149399728,
0.3450756073,
0.2544178665,
-0.0306779314,
-0.470859468,
-0.0176131427,
0.1544542015,
-0.2405827343,
0.242703557,
0.3589855433,
0.0093311435,
-0.2977696955,
-0.0323532559,
-0.2179203928,
0.1263132244,
0.2344697416,
0.366986692,
-0.0639409423,
-0.1821252853,
0.2110611647,
-0.101585649,
-0.1906232536,
0.0003961934,
0.2516079545,
0.0104194311,
0.3795418143,
0.4396513402,
0.0391277112,
-0.1012218595,
-0.0470709875,
-0.2827145159,
-0.2453542203,
-0.0945763141,
0.0638761371,
0.2048187405,
0.1819134653,
-0.2764331698,
0.0072123227,
-0.3616901636,
0.1659702808,
-0.0349282734,
-0.0330118835,
0.1484007239,
-0.2603636384,
0.1269670725,
0.4068418145,
-0.0565661676,
-0.2221178561,
0.3254332244,
0.0639168099,
0.1191481799,
-0.1064424366,
0.2400222272,
-0.0784543976,
-0.2176355422,
0.240197435,
0.1209965199,
0.1508858651,
0.2979299426,
-0.0415276811,
-0.160188213,
0.2301123291,
0.1253979802,
0.1095733866,
0.1534787714,
-0.0760620087,
0.0315717869,
0.6513590217,
0.0897538364,
0.2572366893,
-0.1281398684,
0.4234577417,
-0.080242306,
0.1287794262,
0.2507909536,
0.3465700448,
-0.1704729199,
-0.2700291574,
-0.246724993,
0.190102607,
0.0330273248,
0.0979626998,
0.5943109989,
-0.1580967456,
0.0035579791,
-0.2296648175,
0.5587202311,
0.1998937577,
0.1838400364,
-0.2704483867,
0.2301087976,
0.0386980623,
0.1439985931,
-0.0744857714,
-0.4671472013,
0.5340023041,
-0.1560764462,
-0.072502844,
-0.140762791,
0.1164828762,
0.1071742326,
-0.0234851111,
-0.0369570404,
-0.1162526682,
0.187891379,
0.2257581353,
-0.3190582395,
-0.5075491071,
-0.259065479,
0.2057563961,
-0.0734732524,
-0.169173792,
-0.407173425,
0.0426335186,
-0.3005789816,
0.1249655336,
0.0526027232,
0.2633955181,
0.0351425596,
-0.1760599464,
0.08645726,
-0.0337919444,
-0.1701624691,
0.1610926837,
0.0302216914,
0.194331333,
-0.120131664,
0.3845151067,
-0.0404020809,
0.0399166495,
-0.1322110146,
0.1113829687,
-0.0112479525,
-0.2357885838,
-0.3786448538,
-0.052241791,
0.4906334579,
0.1209497005,
-0.0634205788,
0.0866600648,
-0.2259223759,
0.0904833972,
-0.149825424,
-0.1556235254,
0.2959862351,
-0.1465162635,
0.2571232617,
0.2059733272,
-0.2123652399,
-0.246820733,
0.4340803623,
-0.1987021714,
0.187605679,
-0.0905915946,
0.0302089043,
0.0852278173,
0.4398600459,
0.2210970819,
0.2189481407,
-0.2097180933,
-0.3358188868,
-0.5563828349,
-0.0022014391,
-0.2462023944,
-0.3601617217,
-0.0721919313,
-0.0268877279,
-0.0603751279,
0.3827115297,
0.0915344059,
0.3271606565,
-0.3082079589,
0.5737891793,
0.1382455677,
-0.1990300864,
-0.095475696,
0.1498658806,
-0.0002132717,
-0.2718091011,
0.0871361271,
-0.0924968645,
-0.0473984033,
0.0550044402,
0.1706444621,
0.100548096,
-0.4378384352,
0.3770072758,
-0.0032646528,
0.1779548526,
0.108073689,
0.1435929686,
-0.0703196824,
0.2697399855,
-0.5151309967,
0.1531901956,
-0.3629552722,
0.0959678292,
-0.4167468548,
0.1517496854,
-0.1196896583,
-0.2285774201,
0.1843283772,
0.2477381825,
0.1524385959,
-0.2565479279,
-0.0983576551,
-0.0676252246,
0.5636065006,
0.1586190313,
0.0167138036,
0.26354599,
-0.0313637182,
0.0390518866,
0.2246013284,
-0.0727228671,
0.0968284532,
0.0811695606,
0.1358647496,
-0.2718604803,
-0.0182825271,
-0.1314017326,
0.0559090264,
0.3561336696,
-0.1358776093,
0.3260550797,
0.0356967598,
-0.1461342275,
0.0269033294,
-0.089880608,
0.1970142722,
-0.2921510041,
0.087732248,
-0.4093597531,
-0.4107895195
] |
https://github.com/huggingface/datasets/issues/133 | [Question] Using/adding a local dataset | Hi @MaveriQ , although what I am doing is to commit a new dataset, but I think looking at imdb script might help.
You may want to use `dl_manager.download_custom`, give it a url(arbitrary string), a custom_download(arbitrary function) and return a path, and finally use _get sample to fetch a sample. | Users may want to either create/modify a local copy of a dataset, or use a custom-built dataset with the same `Dataset` API as externally downloaded datasets.
It appears to be possible to point to a local dataset path rather than downloading the external ones, but I'm not exactly sure how to go about doing this.
A notebook/example script demonstrating this would be very helpful. | 50 | [Question] Using/adding a local dataset
Users may want to either create/modify a local copy of a dataset, or use a custom-built dataset with the same `Dataset` API as externally downloaded datasets.
It appears to be possible to point to a local dataset path rather than downloading the external ones, but I'm not exactly sure how to go about doing this.
A notebook/example script demonstrating this would be very helpful.
Hi @MaveriQ , although what I am doing is to commit a new dataset, but I think looking at imdb script might help.
You may want to use `dl_manager.download_custom`, give it a url(arbitrary string), a custom_download(arbitrary function) and return a path, and finally use _get sample to fetch a sample. | [
-0.3848370016,
0.4261918664,
-0.0582929365,
-0.0622869618,
-0.1617801189,
-0.0290352255,
0.1196392849,
0.0627900288,
0.225906685,
0.2672969401,
-0.1065551341,
0.3037170172,
-0.1359495521,
0.2354282588,
0.3147618771,
0.0563902631,
-0.1727444977,
0.0608875453,
-0.2876502275,
-0.1493896842,
-0.436707288,
-0.139520511,
0.3666728735,
0.0160692465,
0.0315404981,
-0.0743040591,
-0.0310811065,
0.431217581,
-0.1881702095,
-0.4960770309,
0.115617618,
0.0801916644,
0.3331569731,
0.4255266786,
-0.0001110298,
-0.1615568846,
0.1255317628,
0.0057523381,
-0.3756665587,
-0.2831615508,
-0.4848709404,
-0.0562205538,
0.3235410452,
-0.301894784,
0.1678413898,
-0.1485855728,
0.1979244798,
-0.625315547,
0.1218308136,
0.2712391913,
0.2022998184,
0.0922854394,
-0.4306545258,
-0.3477677405,
0.1746297479,
0.410042882,
0.0017399435,
0.3648222983,
0.5526693463,
-0.1044885665,
0.0418212563,
-0.1705147177,
-0.1301361322,
0.090018034,
0.5631844401,
0.1887884587,
-0.0688500702,
-0.2714110613,
0.2703506052,
0.3865032792,
0.818743825,
-0.339553237,
-0.260116756,
-0.1455863863,
-0.0715407878,
-0.0685559437,
-0.0204076283,
0.1074621752,
-0.2264567018,
0.2696595788,
-0.1549884081,
-0.2469827086,
-0.304423511,
0.2749161124,
-0.0413943194,
-0.0181669928,
0.2146753669,
0.063686423,
0.1867268085,
0.0977478772,
0.331212163,
-0.2048025727,
0.351619035,
0.1316547245,
0.2721080184,
0.0842460319,
0.0519599132,
0.0258223843,
0.1119040549,
0.1751169562,
0.1289791912,
-0.1803897172,
-0.2821823955,
0.0377658121,
0.0307115056,
-0.0086096786,
-0.0257195588,
0.1011315733,
0.2328979969,
-0.0870419517,
0.1616343558,
-0.0817734078,
-0.1669722944,
-0.0070390771,
-0.073182486,
-0.0299174562,
0.0432662144,
-0.1567645073,
0.0560783148,
-0.083348088,
0.1362370104,
-0.0285521764,
-0.0489856414,
0.310406357,
0.0150915598,
-0.2721307874,
-0.0798954368,
0.2013556808,
0.1322696209,
-0.0393842161,
-0.0412745439,
0.0199240204,
-0.1046458334,
0.2363115549,
0.1470881999,
0.162757948,
0.2879632413,
-0.2300511152,
-0.1614209712,
0.2307301462,
0.4086378217,
-0.0029011292,
0.1960333735,
0.0644332021,
0.2319625318,
0.3098811805,
-0.077588968,
-0.3319490254,
-0.2738494277,
0.1951437443,
0.3463363349,
-0.4770011306,
-0.4734294713,
0.1855375916,
-0.1103100479,
-0.42357862,
0.0389089175,
0.0183147192,
-0.2762013674,
-0.089792341,
-0.2889489233,
0.225598678,
-0.1902702153,
-0.2724779844,
0.1481333673,
0.6925088763,
-0.7137828469,
0.1149783954,
-0.3483239412,
-0.089690119,
0.0683887079,
0.1120433137,
-0.3913526833,
0.3761354983,
-0.1457839459,
0.2146041244,
0.4088517725,
-0.6111470461,
-0.1721388698,
0.3494310677,
-0.403850168,
-0.1963206083,
0.2511587143,
0.3222970963,
0.4519779682,
0.066643469,
-0.0624450259,
0.3906952441,
-0.0220193695,
0.1316787601,
-0.1510140747,
-0.3051365912,
-0.0586399958,
0.0699215904,
0.2266172767,
0.2623306215,
0.457416147,
0.0484190695,
0.1695823669,
-0.1636099219,
0.1698448211,
-0.1448373944,
0.427944243,
0.0851068944,
-0.3243452609,
0.0992945954,
-0.4985302687,
0.2049118131,
-0.1063701659,
0.0182877071,
0.0512504019,
-0.3985584378,
-0.4555649161,
0.0084445393,
-0.0241553802,
0.0394432247,
0.0740873143,
0.409887284,
0.1116038933,
-0.0808669552,
-0.3878560066,
-0.1711487025,
-0.0823817626,
0.0974680185,
-0.0757941231,
0.1349366307,
-0.0323765352,
0.0282299984,
-0.1085282117,
-0.0606006607,
0.0247235205,
-0.1131196544,
0.0316504948,
0.347810477,
-0.1357046962,
0.2376405001,
0.4116073251,
0.5253427625,
0.2657346725,
0.0615927801,
0.4397467673,
-0.1330983639,
0.2462783158,
0.0374047086,
-0.3912299871,
0.0947270393,
-0.1505209655,
0.2330701649,
0.1097807214,
0.1505800039,
0.2660109401,
-0.2243694663,
-0.0378056951,
-0.3007342517,
-0.1880718172,
0.1886541843,
0.2170047909,
0.1190807745,
-0.3386599123,
0.3036049902,
-0.2050983459,
-0.1305982769,
0.2531042099,
-0.0729731917,
-0.1957225502,
0.1222396716,
0.2651913166,
0.7192823887,
0.257367909,
0.2213437408,
0.4219481945,
0.1621900052,
0.0460409969,
-0.2819210887,
-0.083726503,
-0.1377348006,
-0.203448385,
0.2263740301,
-0.1388095468,
-0.1602101773,
0.1037715077,
0.0657158196,
0.0637393892,
0.132529363,
-0.2115389258,
-0.2972093523,
-0.5328251719,
-0.4521932602,
-0.4715780914,
-0.2514732778,
0.1549421251,
-0.2584537268,
0.0688429698,
0.187096402,
-0.2059520036,
-0.0985750481,
0.0135410177,
0.3428130746,
-0.5756483078,
-0.3648794591,
0.1012744308,
-0.1248010471,
-0.0904800296,
0.1322445869,
0.5557699203,
0.2368974239,
0.41063416,
-0.2774344981,
0.1927790791,
-0.5172346234,
0.2275175452,
0.1171503365,
0.2604716718,
0.3032297492,
0.0053088921,
0.0604222491,
0.2300999314,
-0.3323423564,
-0.1318967491,
0.0288816597,
0.1702225208,
-0.4290677309,
-0.2287549675,
-0.0765336454,
0.0283664465,
-0.3620599806,
-0.386800319,
-0.1854600012,
0.1082481816,
0.3310578763,
0.204164803,
-0.2248838693,
0.1045311317,
0.295486033,
0.1064797565,
-0.0391986668,
0.0378970802,
-0.2959045768,
0.2268672287,
-0.5191515684,
-0.3212380707,
0.2769159377,
-0.1316582114,
0.1797228158,
-0.0842028409,
-0.393415004,
-0.4176707864,
0.0114077525,
0.4556055963,
0.1660173982,
0.1292219758,
0.3921353221,
-0.0643505305,
-0.0798713416,
0.0666898414,
-0.339839071,
0.3800732493,
0.1752508432,
0.1266069412,
0.1159878448,
0.2497953922,
-0.057917919,
0.6440165043,
-0.1830209792,
-0.0704620853,
0.21756275,
-0.3027663231,
0.3039294481,
-0.1950046867,
0.0160665642,
-0.1849908382,
0.0593994446,
-0.3080710173,
0.1053066552,
0.106376566,
-0.2208045423,
-0.1077623293,
0.0710952505,
-0.5568804145,
-0.2189278454,
0.1655975878,
-0.07017003,
-0.0457323566,
0.1608371139,
-0.1061758995,
-0.2573775053,
0.040234156,
0.0179617945,
0.2764769495,
0.1145893335,
0.0426731259,
-0.4099330604,
0.2472344041,
-0.4953666329,
0.3042175174,
0.0162103623,
-0.0775231943,
-0.1177610606,
-0.2123426497,
0.2518219948,
-0.0044417442,
0.1961314529,
-0.3412709832,
-0.1208584681,
-0.069304496,
-0.1481300145,
-0.272431612,
0.1889244467,
0.2091512233,
0.0962157026,
-0.0688105226,
-0.0275924839,
0.0772210434,
0.1207815334,
0.2681332529,
0.1969596446,
-0.1796226352,
0.0488435514,
0.2749689221,
-0.4902127981,
-0.3052375913,
-0.1285991073,
-0.380408287,
-0.1004881188,
0.3143919408,
-0.0193942059,
-0.0093049221,
0.1335305125,
-0.011981545,
0.097772792,
0.0215976611,
0.2703413367,
0.1306140721,
0.1557268351,
0.2251377851,
0.2261180133,
0.4576108158,
-0.5124970078,
0.0661022663,
0.0373424962,
-0.2493049055,
0.2425737977,
0.5589843392,
0.1534708589,
-0.1143529192,
0.1337859035,
-0.3730233908,
-0.1092104018,
0.2899786234,
-0.1280824095,
-0.2938512266,
0.0737989545,
-0.581383884,
0.2530481219,
0.0172075965,
-0.3314667344,
0.2307874858,
0.0136137623,
-0.1772202104,
0.2753063738,
0.2678606808,
0.8365147114,
-0.4570673108,
0.1030183285,
0.0011448894,
-0.3318507075,
0.0465559736,
-0.173344031,
-0.3231114745,
-0.414760679,
0.0445170067,
-0.0893559307,
0.0026176388,
-0.0699600577,
0.2252668291,
0.1070017815,
0.1200771928,
-0.0926555097,
0.3599126637,
-0.1197258085,
0.5791423321,
-0.0485456735,
-0.269015193,
0.2073567063,
0.1682009846,
0.2366119772,
0.0454038084,
-0.1314856857,
0.0847709551,
-0.3010175228,
0.1168323234,
-0.1397567689,
-0.2063901424,
-0.2243941277,
-0.2509868741,
-0.3670593202,
-0.2147750705,
-0.2897576392,
0.4370845854,
0.1813790351,
0.0487442799,
-0.2492343783,
-0.151350379,
-0.0564192608,
0.0952758566,
0.2041542083,
-0.0742771178,
0.079426527,
-0.186946094,
-0.1399562806,
0.3438457251,
0.0996903107,
-0.3000400662,
0.1464682221,
-0.1366905421,
0.3839762211,
-0.110288918,
-0.3345851302,
0.2412902564,
0.103576906,
-0.0345636904,
0.1176462322,
0.0803998634,
0.0547618195,
-0.0088792285,
-0.0843755156,
-0.1235311329,
-0.2258912325,
0.0984867662,
-0.0630129278,
-0.0329019539,
0.0670763627,
-0.0384742394,
0.1117518991,
-0.2123567164,
0.2502033412,
0.191392988,
-0.1529754549,
-0.2262978405,
-0.0672004893,
-0.05835348,
-0.1503169686,
0.3297860622,
0.5043992996,
0.0446601994,
-0.2884416878,
-0.0395109616,
-0.3051751852,
0.1208177209,
0.1991970241,
0.3645033836,
-0.1128467247,
-0.1020557657,
0.0982348025,
-0.0357392244,
-0.3419883847,
0.0324807353,
0.0278014429,
0.0813555345,
0.3493487537,
0.3374615908,
0.1446842104,
-0.1031707153,
0.0259710122,
-0.2057398409,
-0.2100815326,
-0.1573517919,
0.0012235019,
0.1340416223,
-0.0000424289,
-0.248004213,
-0.1373690665,
-0.3587093055,
0.0457348786,
-0.0177551042,
0.1086431965,
0.1591471285,
-0.2690214515,
0.1355029643,
0.2857584953,
-0.0394926853,
-0.0789087266,
0.4189856946,
0.1688014567,
0.2427675575,
-0.1434379667,
0.3528723717,
-0.2446469814,
-0.2967459857,
0.3589385748,
0.039806053,
0.0226753894,
0.3075048923,
0.0224843696,
0.0471262038,
0.1039673984,
0.2862001956,
0.2158546448,
0.1134560779,
-0.0325704403,
0.1587415189,
0.4928454459,
0.2049650699,
0.0844577029,
0.0483492576,
0.2964138389,
-0.0804203302,
0.1584670097,
0.4488152564,
0.549203217,
-0.0297651459,
-0.1080663428,
-0.2132349014,
0.294046402,
0.0685779601,
0.070608519,
0.3314425945,
-0.2698526978,
0.0526082255,
-0.0960480347,
0.4973637462,
0.2098039538,
0.1848236173,
-0.2710793912,
0.3261644542,
0.0744943321,
0.0849044397,
0.1035944894,
-0.4527050257,
0.526468575,
-0.1542582512,
0.164417699,
0.0150644975,
0.0815414265,
0.1382869631,
-0.1083252057,
0.0551918298,
-0.1803572774,
0.2047862709,
0.2272734046,
-0.2318091244,
-0.466673553,
-0.3928041458,
0.079888925,
0.0555023998,
-0.1574798077,
-0.4056292474,
-0.1510345489,
-0.1940855384,
0.0578313209,
0.0605832636,
0.2785733938,
-0.1412669718,
-0.2922284603,
-0.1030337885,
-0.0668307245,
-0.0191858504,
0.2330530882,
0.1710578054,
0.1807076782,
0.0117063122,
0.2945525646,
-0.0442337468,
0.1430574358,
-0.1285064518,
0.1688939631,
-0.1636389345,
-0.1438399851,
-0.1164137349,
0.1027715504,
0.5037032962,
0.1779296398,
-0.1836161315,
0.1393098682,
-0.1325045526,
0.0603374839,
-0.0068655494,
-0.0011449563,
0.3038974106,
-0.205575496,
-0.0140964035,
0.1673091799,
-0.1579138935,
-0.2071570903,
0.4206865132,
-0.4214175045,
0.2027396709,
-0.1293613762,
0.0933696553,
0.0240691993,
0.4000599682,
0.1421525627,
0.3937475681,
-0.2291723788,
-0.1997947097,
-0.6256086826,
0.0719338804,
-0.0309103169,
-0.2188179195,
-0.1814702153,
0.2008781433,
0.0258027017,
0.3286497891,
-0.0908541083,
0.3316738009,
-0.1790325195,
0.4084462523,
0.094650507,
-0.258682549,
-0.1537326276,
0.0619966052,
-0.0393064767,
-0.1248532087,
-0.0020094265,
-0.2757777572,
0.0361882821,
0.0092469612,
-0.2016096711,
0.2079781443,
0.050370615,
0.5563034415,
-0.1002470553,
0.3293507695,
-0.0786158293,
0.1105792597,
-0.1071063578,
0.0856864601,
-0.5030031204,
-0.077181302,
-0.1009546742,
-0.0053002355,
-0.258487165,
0.3241890967,
-0.2446035445,
0.0442471802,
0.0628967509,
0.2049734592,
-0.1208749413,
-0.2290637195,
-0.1516966969,
-0.1979351938,
0.3643098176,
0.1954903603,
0.0609968826,
0.2987619936,
-0.0381926633,
0.0587617792,
0.3519358933,
0.0225910209,
0.2312604189,
-0.0169117562,
0.0948236734,
-0.0622315072,
-0.0154618341,
-0.2078006417,
0.0430319719,
0.2420941442,
-0.1457241923,
0.2573821545,
0.0028637454,
-0.2082132399,
0.0160816405,
-0.1767825484,
0.0718662217,
-0.1037821099,
-0.0878307968,
-0.5066398382,
-0.4559907913
] |
https://github.com/huggingface/datasets/issues/133 | [Question] Using/adding a local dataset | The download manager supports local directories. You can specify a local directory instead of a url and it should work. | Users may want to either create/modify a local copy of a dataset, or use a custom-built dataset with the same `Dataset` API as externally downloaded datasets.
It appears to be possible to point to a local dataset path rather than downloading the external ones, but I'm not exactly sure how to go about doing this.
A notebook/example script demonstrating this would be very helpful. | 20 | [Question] Using/adding a local dataset
Users may want to either create/modify a local copy of a dataset, or use a custom-built dataset with the same `Dataset` API as externally downloaded datasets.
It appears to be possible to point to a local dataset path rather than downloading the external ones, but I'm not exactly sure how to go about doing this.
A notebook/example script demonstrating this would be very helpful.
The download manager supports local directories. You can specify a local directory instead of a url and it should work. | [
-0.3328150809,
0.3316178322,
-0.0937175155,
-0.1150166094,
-0.0208439771,
-0.01579546,
0.1370426416,
-0.0018575246,
0.2311637402,
0.2999221683,
-0.215514347,
0.3249566853,
-0.0286776833,
0.2468102574,
0.2563113272,
-0.0198876336,
-0.0942599028,
-0.0035388328,
-0.304269284,
-0.0223879796,
-0.3524807096,
-0.2041260898,
0.2866287827,
0.0946041271,
0.110976845,
0.0382469706,
-0.1240866259,
0.3648512959,
-0.2470918,
-0.5490740538,
0.1527570784,
0.1418218911,
0.2310724109,
0.4377869368,
-0.0001046002,
0.0189365651,
0.0589841269,
0.0831923112,
-0.3596255183,
-0.3652909994,
-0.4895197451,
-0.1823949665,
0.2321391404,
-0.3313548565,
0.1816502362,
-0.2091438621,
0.2616906166,
-0.4603244364,
0.1957478374,
0.2347233742,
0.2444290817,
0.1967380494,
-0.3012835383,
-0.2777361572,
0.151349321,
0.3050218225,
-0.0953639597,
0.3225676715,
0.4807717502,
0.027089417,
0.048766505,
-0.1207922176,
0.0089252554,
0.2245357335,
0.5624611378,
0.1625576168,
-0.0116052441,
-0.1680625379,
0.1289845854,
0.2235560417,
0.833912015,
-0.250511378,
-0.2758903503,
-0.1794391721,
-0.1428815424,
0.0745865926,
0.1766536683,
0.1667137146,
-0.2424694598,
0.3480573297,
-0.2073037028,
-0.331810236,
-0.4209994078,
0.3002484441,
-0.0823549032,
0.090130575,
0.1480432153,
0.0346380547,
0.1784926206,
0.1505464762,
0.3084106147,
-0.2626874149,
0.4867875874,
0.1493739188,
0.3469061852,
0.0186689086,
0.0091671525,
0.0597289167,
0.0581501797,
0.0049296841,
0.0845638216,
-0.2019641101,
-0.250128448,
0.101282075,
0.1947651505,
-0.1616324335,
-0.1639880389,
0.0453507453,
0.1655000895,
-0.1145338714,
0.264003545,
-0.1346504688,
-0.0474774688,
-0.1054485217,
-0.2436893731,
-0.0482266955,
0.1499400288,
-0.2155677229,
0.1587686539,
-0.1933261901,
0.1431439966,
-0.0827110931,
-0.1080665737,
0.1716114879,
-0.0643271208,
-0.1997916996,
-0.1747718304,
0.1752838045,
0.0788826793,
-0.0031747785,
-0.032512106,
0.0397610068,
-0.1757470071,
0.1771127284,
0.0922845826,
0.1191453114,
0.2410402596,
-0.2445325851,
-0.1945559531,
0.2696327567,
0.3167910874,
0.0556186102,
0.0812006965,
0.0831421614,
0.1498278677,
0.2602835,
-0.1244604513,
-0.2472459823,
-0.2761301696,
0.1556811929,
0.121081166,
-0.4608033001,
-0.3467477858,
0.2225116342,
-0.0693981051,
-0.4279254973,
0.1279612333,
-0.0919031501,
-0.3035587072,
-0.1095277071,
-0.3762882352,
0.2411280274,
-0.2823703587,
-0.2036433667,
0.0614444241,
0.4221624136,
-0.5632276535,
0.0680268928,
-0.3140806854,
-0.1536072344,
0.0812082365,
0.0673321187,
-0.4035092592,
0.4359644055,
-0.0880139694,
0.1984986961,
0.4498339891,
-0.3739209771,
-0.248434782,
0.2898444831,
-0.4758915901,
-0.2750287354,
0.1604036689,
0.2817878127,
0.2360333353,
-0.127283752,
-0.0010095668,
0.4449626207,
-0.0301013477,
0.1336783916,
-0.1492886394,
-0.3828785121,
-0.1846957058,
0.165844202,
0.0935241282,
0.2740212381,
0.4902618527,
-0.0867760405,
0.1048770696,
-0.2554168701,
0.1711499244,
-0.1441420317,
0.3760519624,
0.0958575234,
-0.3978231549,
0.1025022641,
-0.4131019413,
0.2748026252,
-0.2554860413,
0.01730044,
-0.0387646891,
-0.3529527187,
-0.4677004814,
-0.0808893889,
-0.0483336411,
0.1280555576,
0.1403772831,
0.3553269207,
0.1730307639,
-0.042149879,
-0.2173706442,
-0.135510698,
0.0085206702,
0.0731842667,
0.0879560336,
0.1203846112,
-0.1296136826,
0.1671658754,
-0.0807572827,
-0.1476219296,
-0.0683534145,
-0.0872268304,
0.0538804196,
0.3684261739,
-0.3002168536,
0.3217326105,
0.42001912,
0.3561282456,
0.2749057412,
0.0053006299,
0.3201116621,
0.0622732155,
0.2744007707,
0.0814504772,
-0.4459672868,
0.0579806082,
-0.0812318847,
0.123615168,
0.135577634,
0.1881990284,
0.3140021861,
-0.1872359514,
0.0499426536,
-0.1889363527,
-0.136440143,
0.2132398933,
0.2067408115,
0.1099324226,
-0.2441467047,
0.3518174589,
-0.2140485793,
-0.0292854309,
0.1516516805,
0.0076448349,
-0.2025776356,
0.146320805,
0.2122211754,
0.7142145634,
0.3711215556,
0.2744207084,
0.5198999643,
0.3103624582,
-0.0486615561,
-0.3117120862,
-0.0655756146,
-0.0484365001,
-0.3203290999,
0.1223464087,
-0.1544589698,
-0.1924377531,
0.0023625838,
0.1162003726,
0.0746061951,
0.1901595891,
-0.204482913,
-0.2033991963,
-0.4943545759,
-0.4443026483,
-0.3851741254,
-0.1764763892,
0.1432521194,
-0.3896023929,
0.2325004786,
0.298071146,
-0.3325257003,
-0.0755391419,
-0.0236256775,
0.4244073331,
-0.5079962015,
-0.2385827452,
0.0261592157,
-0.1457482576,
-0.1004974395,
0.1987194121,
0.6238669753,
0.1396588534,
0.4617750049,
-0.3050396144,
0.1750435531,
-0.5360557437,
0.2101888955,
0.0862437338,
0.2917476594,
0.2679598629,
-0.0695424154,
0.1421790123,
0.134663865,
-0.1786258817,
0.0194229856,
-0.0481259488,
0.0891555399,
-0.4775238335,
-0.0579291061,
-0.0515684634,
-0.0693866462,
-0.4508681297,
-0.4622932971,
-0.2281162441,
0.1067738608,
0.229400903,
0.2104959488,
-0.1482412219,
0.1822174191,
0.2864891887,
-0.0247468669,
-0.0642585829,
-0.0540310703,
-0.4249994457,
0.3460866511,
-0.4094591737,
-0.3963731825,
0.263420403,
-0.0048494763,
0.0607355274,
0.1270436049,
-0.3452188373,
-0.2589053214,
-0.0152641451,
0.4125747085,
0.2224728167,
0.3128189445,
0.3615956604,
-0.0700526908,
-0.1416071355,
0.0418695249,
-0.1188233271,
0.2748986185,
0.1181516126,
0.1624616534,
0.1214212626,
0.0242040828,
0.0413866825,
0.7666496038,
-0.2841893435,
0.0296370517,
0.3063006103,
-0.2404667884,
0.2930563092,
-0.1120333895,
0.05487445,
-0.0382474102,
-0.0130245872,
-0.2256659716,
0.2389037013,
0.246276319,
-0.2232906818,
-0.2001857162,
-0.0035671601,
-0.4502513409,
-0.2875755727,
0.0985797495,
0.2173651755,
0.1011387631,
0.2530359924,
-0.230932489,
-0.2907758653,
0.0605343543,
0.0862619579,
0.26324597,
0.0246932413,
0.0811339766,
-0.4827650189,
0.2218230069,
-0.5248214602,
0.2419670075,
0.1376826763,
-0.1598443538,
-0.0748455003,
-0.1912311018,
0.2349521369,
-0.0130825667,
0.1374211311,
-0.3182955384,
-0.1204764694,
-0.0853929967,
-0.0559155978,
-0.1883336902,
0.1953864992,
0.1754145175,
0.1091787666,
-0.1051428467,
0.0247981884,
0.0241364911,
0.0601253211,
0.1284389347,
0.1796248406,
-0.1894997507,
-0.1080820858,
0.2534786761,
-0.4953241646,
-0.2434186339,
-0.1111788675,
-0.3200092316,
-0.1051260531,
0.382006377,
0.0263363849,
-0.0429681465,
0.2296729982,
-0.0256570391,
0.0640232265,
0.0140571231,
0.2018829584,
0.0301006846,
0.2087986767,
0.3099249005,
0.2337270677,
0.5688287616,
-0.255294919,
-0.1323393285,
0.0049196319,
-0.3658303022,
0.1158283353,
0.4357493222,
0.1503395289,
-0.136877656,
0.2269543111,
-0.2468608767,
-0.1247576624,
0.388769269,
-0.1464826018,
-0.197825104,
0.1140441075,
-0.5458563566,
0.2291251421,
0.1126791015,
-0.2533118129,
0.3556563258,
0.0142330937,
-0.1803979576,
-0.0342327878,
0.2393798381,
0.8441691995,
-0.3914886713,
0.1342204064,
0.1728968173,
-0.448731631,
0.0640469864,
-0.1675947905,
-0.1599898487,
-0.1990222633,
0.0475850105,
-0.19617486,
-0.0012953036,
0.1033268273,
0.2738251388,
0.1472556591,
0.1584475189,
0.1287865788,
0.3942498863,
0.0401094705,
0.4644724429,
-0.0648258328,
-0.3008776009,
0.1104111522,
0.1808762103,
0.1821759939,
0.0285438783,
-0.1747425795,
0.0234292317,
-0.1436663419,
0.0528765544,
0.1441978514,
-0.1073759645,
-0.1736646593,
-0.2426132709,
-0.3312176168,
-0.0961975977,
-0.1404304504,
0.3021619916,
0.2317494452,
-0.1153028756,
-0.3340066373,
-0.1055552289,
-0.2329511642,
0.1065128967,
0.084160082,
-0.1033118442,
-0.0349668153,
-0.2349572927,
-0.0964191556,
0.2735931575,
0.0137448162,
-0.3880423307,
0.1033768505,
-0.0830753073,
0.3187540174,
-0.0601774827,
-0.2184087187,
0.1928030103,
0.0720680878,
-0.0842297375,
0.1714804769,
0.0040411907,
0.0638185069,
0.0323038436,
-0.0927062854,
-0.1283198744,
-0.2378641367,
0.1213053539,
-0.0376543328,
-0.1120580211,
0.1412198842,
-0.1316527426,
0.0228832494,
-0.2296517938,
0.2076694369,
-0.0647615939,
-0.0941107944,
-0.211278826,
-0.0986711308,
0.0131401634,
-0.3099611402,
0.2925909758,
0.4640968144,
0.0650696158,
-0.2433969378,
-0.0453475416,
-0.3601170778,
0.0367978252,
0.1390078813,
0.2664692402,
0.0454235151,
-0.0703884065,
0.2597785592,
-0.2342160791,
-0.3999509513,
-0.0085376175,
0.1805462837,
-0.0074773277,
0.2454083413,
0.2613686323,
0.135555312,
-0.1929589212,
0.0586796142,
-0.2924510539,
-0.3188833296,
-0.1917701662,
0.0480895787,
0.1074440181,
0.0741115138,
-0.3049525023,
-0.036765527,
-0.419557333,
0.0747931004,
0.1151765734,
-0.0306944735,
0.2161247283,
-0.2699198127,
-0.0341943316,
0.2148443758,
-0.0833456293,
-0.1578921676,
0.361554563,
0.1708091944,
0.2164478451,
-0.084117204,
0.3144187033,
-0.2583165765,
-0.2349189818,
0.2791965008,
0.094893463,
0.1129549071,
0.2756837606,
0.134462297,
-0.1123438329,
0.0850342065,
0.2172554731,
0.248440221,
0.1143141165,
-0.0378027149,
0.1662724018,
0.5602957606,
0.2351335138,
-0.024215648,
0.0052660299,
0.2990368307,
-0.0792753771,
0.2069279701,
0.3484202623,
0.461401701,
-0.0520194136,
-0.1128153726,
-0.120528087,
0.2037848383,
0.1180576757,
0.0149877938,
0.4109710753,
-0.2127861828,
0.0593319237,
-0.0772001371,
0.4835880399,
0.1506010145,
0.1024384722,
-0.2601335943,
0.3067752719,
0.1027875543,
0.0971296132,
-0.1219797805,
-0.3945371509,
0.3556651473,
-0.1409202963,
0.0882924274,
-0.0705766752,
0.160979107,
0.049355194,
-0.0906499326,
-0.0427051261,
-0.1498491168,
0.1929711103,
0.2787308097,
-0.2605361044,
-0.5395201445,
-0.3284620941,
0.1070909873,
0.1022426561,
-0.0866558552,
-0.357624948,
0.0754334331,
-0.3292024434,
0.1798387617,
-0.0610151514,
0.2364042103,
-0.0184435528,
-0.2858760953,
-0.1096457615,
-0.0603126064,
-0.0596978255,
0.0980015025,
0.0946279392,
0.2085941434,
0.0144420583,
0.2151188254,
0.0339631923,
-0.0314734243,
-0.1862133592,
0.0961280987,
-0.2353510112,
-0.1415177286,
-0.0941005722,
0.0512997024,
0.5619298816,
0.2237607986,
-0.235991016,
0.3325534165,
-0.2451446801,
0.0877618045,
-0.0076323766,
-0.0057698451,
0.3148100674,
-0.1601538211,
0.1945455074,
0.0263815131,
-0.2031203806,
-0.1971875131,
0.4323666692,
-0.3405085802,
0.2886345983,
-0.1056369767,
0.1221228316,
0.1379061192,
0.4599786401,
0.2430539876,
0.3819715977,
-0.1633377969,
-0.2031960338,
-0.7250156999,
0.0014587977,
-0.2276556939,
-0.2019017935,
-0.2462694645,
0.0608273484,
0.183145389,
0.5207518339,
0.0384064429,
0.2574202418,
-0.1446758807,
0.2845543921,
0.095690012,
-0.2066713572,
0.0241014399,
0.2100527883,
-0.0414225385,
-0.263338238,
0.0799542889,
-0.1722468585,
0.0905364752,
0.0933066383,
0.0456164069,
0.017292859,
-0.1484567374,
0.4618346691,
-0.1388926059,
0.2116681486,
-0.0301938951,
0.0760779753,
-0.1233420447,
0.1470335424,
-0.4226233363,
-0.1421387643,
-0.1032993272,
0.02951161,
-0.4267243743,
0.3114056289,
-0.2295434773,
-0.1130966917,
0.0896332785,
0.3376249075,
0.0192064308,
-0.0996324345,
-0.1746706367,
-0.060594324,
0.2805764079,
0.1080291271,
0.0237144474,
0.133037284,
-0.0562866256,
-0.0110769384,
0.3543697,
0.0755475238,
0.0758681074,
0.0505731814,
0.002405656,
-0.0291857366,
0.0282700956,
-0.1315642297,
0.0883866996,
0.2798039615,
-0.1602361649,
0.2538670301,
0.0465173647,
-0.190081194,
0.0160288233,
-0.1646512747,
0.1697910279,
-0.1910299957,
-0.0753481686,
-0.466511488,
-0.3920328021
] |
https://github.com/huggingface/datasets/issues/131 | [Feature request] Add Toronto BookCorpus dataset | As far as I understand, `wikitext` is refer to `WikiText-103` and `WikiText-2` that created by researchers in Salesforce, and mostly used in traditional language modeling.
You might want to say `wikipedia`, a dump from wikimedia foundation.
Also I would like to have Toronto BookCorpus too ! Though it involves copyright problem... | I know the copyright/distribution of this one is complex, but it would be great to have! That, combined with the existing `wikitext`, would provide a complete dataset for pretraining models like BERT. | 51 | [Feature request] Add Toronto BookCorpus dataset
I know the copyright/distribution of this one is complex, but it would be great to have! That, combined with the existing `wikitext`, would provide a complete dataset for pretraining models like BERT.
As far as I understand, `wikitext` is refer to `WikiText-103` and `WikiText-2` that created by researchers in Salesforce, and mostly used in traditional language modeling.
You might want to say `wikipedia`, a dump from wikimedia foundation.
Also I would like to have Toronto BookCorpus too ! Though it involves copyright problem... | [
-0.1203032732,
-0.0427295789,
-0.0033753994,
-0.0371078402,
-0.0014095673,
0.2495967746,
0.2591406107,
0.078760162,
-0.1759212464,
0.1513455212,
-0.1105385423,
0.3519929349,
-0.2013262063,
0.3885523677,
0.2654998899,
-0.3297360539,
0.1974351704,
0.315286994,
0.1295727342,
-0.3444737494,
-0.2801200747,
0.170148626,
-0.1321319938,
-0.0258767661,
-0.2297752202,
-0.0898813233,
-0.2280262113,
-0.1708960682,
-0.1450003684,
-0.2987958193,
0.1079744548,
0.2312184125,
0.232990101,
0.3308148086,
-0.0001178023,
-0.1292996705,
-0.0035568203,
-0.199311614,
-0.1886768788,
0.0027899651,
-0.1899902821,
-0.0180445407,
0.068351835,
-0.1603115946,
-0.2583996058,
0.0763195083,
0.1850882918,
-0.1007542387,
0.0858062655,
0.3434336483,
0.1010185406,
0.0015433317,
0.0614227019,
-0.0526096076,
0.1530389935,
0.1496794373,
-0.3662743866,
-0.0291987509,
0.6788928509,
0.0175578985,
0.0982919484,
0.3453904986,
0.2276424915,
-0.4172409177,
0.4147024751,
0.0883816108,
0.1217895001,
-0.5105024576,
0.0668934584,
0.6966726184,
0.7019847631,
-0.2438402772,
-0.3179565668,
0.0559540465,
0.2425314486,
0.1563393623,
-0.044853203,
0.2160190493,
0.2315980941,
0.2801142037,
-0.2702525556,
-0.5717226267,
-0.2372367978,
0.2509015799,
-0.0221446007,
0.5618984103,
0.0817076415,
-0.1417111903,
-0.0033400578,
-0.0242396817,
-0.0552432425,
-0.0694842413,
-0.0548122637,
0.1566242725,
-0.0169132818,
-0.6129307151,
0.0411334746,
0.2980648577,
-0.0926303789,
-0.3859571517,
-0.0651954934,
-0.0231581982,
-0.4463920295,
-0.0368638597,
0.1946205944,
-0.1564633995,
0.273041755,
0.2248611748,
0.0094604837,
-0.1019399911,
-0.1289754361,
-0.0116829164,
-0.0784888491,
0.4305072129,
-0.2459731698,
-0.1600880176,
-0.0489460081,
-0.2302555144,
0.1001332849,
0.2012498975,
0.145567134,
0.059258692,
0.1095893458,
0.1507769674,
0.0652141124,
-0.031445086,
-0.235608235,
0.2275936753,
-0.0804414675,
-0.1276541501,
-0.0036913129,
0.2066090405,
-0.1258389801,
0.1776730865,
0.207840398,
0.0144338766,
0.1936469823,
-0.0902618766,
-0.2388185114,
0.3665221632,
0.1816200167,
-0.1185823977,
0.163149789,
-0.1314094514,
-0.1708646864,
0.1456829756,
-0.197374925,
0.1564052701,
-0.5758010745,
0.1816929579,
-0.4668944776,
-0.3915767074,
-0.5993225574,
0.1410559267,
0.1419876963,
-0.5276523829,
0.236271888,
0.8123848438,
0.0642047301,
-0.500954628,
0.3067882061,
-0.0126402713,
-0.4330205023,
-0.0228662975,
-0.0258895084,
0.2668813765,
-0.6962558031,
-0.1327310652,
-0.3971265852,
-0.0115826651,
0.0968689844,
-0.0610352717,
-0.3117046952,
0.2618775666,
0.1716333628,
0.2281699032,
0.0753212944,
0.2323232293,
-0.1851021349,
-0.1036178097,
0.0874260068,
-0.1750546843,
-0.1340027452,
0.2259522378,
-0.1113840863,
-0.0359233841,
-0.0478877462,
0.3111110628,
-0.1302884817,
-0.0960220769,
0.0157368407,
-0.4841166735,
0.3188105822,
0.3002840877,
0.2722980976,
-0.1253349483,
0.0118793976,
0.2225662321,
0.0961412713,
-0.1108681932,
0.1566894799,
0.2868021429,
0.3329586983,
0.1994371414,
0.0469311886,
-0.3570227623,
-0.1672733724,
0.0165462624,
-0.2720005512,
0.1726184934,
0.2039351761,
-0.3268773556,
-0.0627510101,
-0.1004493982,
-0.0350231342,
-0.1459439248,
0.0689657331,
0.0011792141,
-0.0445476435,
0.3509027958,
-0.1993520558,
-0.4671763182,
-0.2539493144,
-0.2026207447,
-0.0942984,
0.1319111735,
-0.1313410103,
0.0148437973,
-0.1028534472,
0.3714751601,
-0.1952740252,
0.0429733172,
0.0932418033,
0.0261618756,
-0.0709654465,
0.2398359478,
0.5780488253,
0.2656174302,
0.3966756761,
-0.340257138,
-0.1551369429,
0.2055177242,
0.0773994923,
-0.1563782394,
-0.3925900161,
0.2254051417,
0.5341237783,
-0.0376358256,
-0.0605876222,
0.053570915,
-0.1059392244,
-0.0207489599,
0.1491305679,
-0.3045209348,
-0.0067129568,
0.049715586,
0.0128580946,
-0.0142344581,
0.0356465615,
0.2842806876,
0.4608009756,
0.0758397654,
0.2276085615,
0.2138712704,
-0.0931186825,
-0.1594767123,
0.1642936617,
-0.6020973325,
0.0047436599,
0.1380546838,
0.06685175,
-0.1709866822,
0.2515237927,
0.0364651494,
0.2573100626,
0.1864291281,
-0.439530462,
-0.1851503998,
0.0494306907,
0.1068217233,
-0.2343506068,
-0.1974149197,
0.0767162219,
0.1004615426,
0.1266269088,
0.0548215844,
0.0118364999,
0.208855629,
0.1573199034,
-0.384942919,
-0.185869351,
-0.061580956,
0.4406635463,
-0.1395951658,
-0.1214396581,
0.053873457,
-0.3997397721,
0.7127895355,
-0.0584128127,
-0.1999065578,
-0.0424080715,
-0.4109725654,
-0.2314405143,
0.1995387524,
0.076830253,
-0.1943106651,
0.3325205445,
-0.1586371064,
-0.0028333534,
-0.1757369041,
-0.6405137777,
0.0662711412,
-0.2856983542,
0.1069426462,
0.1301273853,
-0.0954243168,
-0.4952319264,
-0.6794486046,
-0.0619295798,
-0.1864669174,
-0.1427811086,
-0.1929036826,
-0.049792897,
-0.1747596115,
-0.0376342945,
-0.2620524466,
-0.2260609865,
-0.0736268833,
0.0616542883,
0.1563368142,
-0.1010698825,
-0.0249272045,
-0.1283664107,
0.1685890555,
-0.1529407799,
0.1515383273,
-0.0851019025,
-0.0959617347,
0.356325835,
-0.1869835258,
-0.0367285162,
-0.0954206288,
-0.3324649334,
-0.0849368572,
-0.1198140606,
-0.5708932281,
0.0190488473,
-0.3292811513,
0.2812104523,
0.1669230312,
0.2473454028,
0.2538970113,
0.2934453189,
-0.0000011516,
0.0077694701,
-0.2143922895,
0.08336851,
0.4451695383,
0.2463772446,
-0.243133381,
-0.4042195976,
-0.4259377122,
0.9085751772,
0.1068758368,
-0.0638641044,
0.3335602582,
0.106984131,
0.184930861,
-0.3890581727,
-0.398550868,
0.3437674642,
0.0076480266,
0.1845643669,
0.6781778336,
0.1935610473,
-0.4262856245,
-0.1212161779,
-0.0828761533,
-0.3206273019,
-0.298235178,
0.1666897386,
-0.0389204845,
0.3487040699,
-0.1588194668,
-0.0854739398,
-0.2506276369,
-0.4194842577,
0.201939553,
0.2093778998,
-0.0223289169,
0.0369571932,
-0.1125408113,
-0.0446526073,
-0.3651693165,
-0.0709728673,
0.2231381536,
-0.0861497,
-0.3378551006,
0.0023912601,
0.0161747485,
0.3255721629,
0.1124800816,
-0.3400228024,
-0.4251872301,
0.090305157,
-0.0814474523,
0.3436068296,
0.0666732788,
-0.33590433,
0.0442591012,
0.0270874109,
0.3047458231,
-0.2475651205,
0.3161988854,
0.1803214252,
0.0627989843,
-0.2615937591,
-0.0206120163,
0.0859702453,
0.1520076245,
0.009369879,
0.1521781087,
-0.1388440728,
0.2524560392,
0.1712993681,
0.0154287023,
0.0630826056,
0.1046417654,
0.4216130078,
0.2655829191,
0.1079314575,
0.3327847719,
0.3009248674,
-0.2129465044,
-0.2090460956,
0.2195746601,
0.3560739458,
-0.2384301275,
-0.2108798325,
0.0228042081,
-0.4178277552,
0.3979943097,
0.2973997593,
0.2010069489,
0.2210659832,
0.3151342571,
-0.2512995005,
-0.0383729823,
0.3850080073,
0.1623441279,
-0.1294194013,
-0.6602053642,
-0.3214538395,
0.39411515,
-0.0947411433,
-0.0545481816,
0.2971245348,
0.7003639936,
-0.22307235,
0.3394843936,
0.0942499638,
1.2495229244,
0.1217971593,
0.2638053894,
-0.102757141,
0.4040847421,
0.4660694599,
-0.2418932021,
0.2373076379,
-0.0360521525,
-0.1895726025,
-0.1081972048,
0.094493784,
-0.2266772389,
0.1481454372,
-0.4586884975,
-0.0527452976,
0.0114849815,
0.1850903183,
-0.0073277713,
0.1905524135,
0.1831702441,
-0.2310637236,
0.1273108721,
0.0228652637,
0.2265527844,
0.1893735379,
-0.0929234251,
-0.3157697916,
0.0324304961,
0.1278492063,
-0.4980016947,
-0.2815515995,
0.0249727815,
0.1483407319,
-0.0530509427,
-0.338738054,
0.5112303495,
0.0929109603,
0.4893564582,
0.3941794336,
-0.6226497889,
0.1022604033,
-0.0717202649,
-0.1073731259,
-0.1507453769,
-0.058061298,
0.1940758526,
-0.0611591488,
-0.0825771391,
0.3468393087,
-0.0433919504,
-0.1836771667,
-0.6170402169,
-0.0909302905,
0.3270128071,
-0.2303513438,
-0.1068831086,
0.3243519962,
-0.0353590362,
-0.2372576892,
0.0805064589,
-0.0059944699,
0.0026254233,
0.0350049846,
0.1640796065,
-0.1183574423,
-0.3099953234,
0.084173575,
0.3252533674,
-0.0996685997,
0.4742273986,
0.0861172378,
-0.1129944995,
-0.2319324464,
-0.0448296927,
0.4195477068,
-0.2819787562,
0.0197987482,
0.2061311901,
-0.2327861786,
-0.0839590356,
0.4906168878,
0.2861109376,
-0.0229896419,
0.0821240246,
0.0601215772,
-0.2261490673,
-0.0554720424,
-0.2626164556,
0.4064218104,
0.0816569254,
0.1091464907,
0.1652398854,
0.33667171,
-0.2688126564,
0.0010865413,
-0.1642524451,
0.1797139645,
-0.0653522983,
-0.00685036,
-0.3436769843,
0.0330644511,
-0.07670331,
-0.3228811026,
-0.1143824309,
-0.0593982525,
-0.3355406225,
0.1810092032,
0.1219649613,
0.006908292,
-0.0323199406,
0.0321048535,
-0.1256711632,
-0.0758566931,
0.0010257552,
-0.0158408489,
0.1976877153,
0.4515358806,
0.3089944124,
-0.1009599939,
-0.3155782819,
0.1131054088,
0.1481799632,
0.2062326372,
0.3296627998,
0.1669560671,
0.1293246001,
-0.1134044155,
0.2945020497,
0.4461603761,
0.0404467732,
0.0471048541,
0.0449859351,
0.3489354253,
0.2054124177,
0.2897987962,
0.0164017659,
0.295461446,
-0.1370497346,
0.0868136436,
0.4369343817,
0.1470104456,
-0.4036331475,
-0.331317991,
0.3603763282,
-0.2228191793,
0.156547159,
0.1027681306,
0.1354365945,
0.0339057408,
0.4411043227,
0.0601486899,
-0.4326859415,
0.2289250791,
0.2286009341,
0.5060858727,
-0.0302600358,
-0.0213916693,
0.2700181901,
0.2049044073,
0.0924476981,
0.2611296475,
-0.0638321489,
0.3037700653,
-0.032992132,
0.1306121498,
0.4755949974,
-0.0753739327,
0.2632482946,
-0.4242354631,
0.1863835007,
0.2121647298,
0.2218837738,
0.2924068868,
-0.2385532558,
-0.1996549815,
-0.4172306359,
0.0582758896,
-0.2770192921,
-0.1028919518,
0.2746732235,
-0.3297052681,
0.0710522234,
0.07459566,
-0.0042714719,
-0.0868161023,
0.1716753691,
0.0161286388,
-0.079866752,
-0.2260410041,
0.2717640102,
0.0839500055,
0.2781050801,
-0.1794232279,
0.0297809094,
-0.2411810458,
-0.1518137157,
-0.0983170867,
0.2840468585,
-0.1001975164,
0.1047797948,
-0.0664559975,
0.1172979176,
-0.051269345,
-0.0188819971,
0.0610760786,
0.3471690416,
0.3465960026,
0.117033422,
0.3457553685,
-0.0296343286,
-0.052540157,
0.1200157255,
0.1163761914,
0.149210915,
-0.1890671104,
-0.1836675853,
0.2674721181,
-0.1307187974,
-0.279553473,
0.2237783521,
-0.1392240822,
0.2970336378,
0.2243642956,
0.0423463099,
-0.0313697234,
-0.1629263014,
0.0301333144,
0.1524745077,
0.4141492546,
0.5447959304,
-0.1703629643,
-0.3880799711,
-0.0804082528,
-0.1971431375,
0.0741245747,
-0.0081353197,
0.2461231798,
0.041356355,
0.0459554493,
0.098835215,
0.3108891547,
-0.184807986,
0.0753267929,
-0.5170522928,
0.1700900793,
-0.3715030551,
0.0418563485,
-0.1737041026,
0.0655957013,
-0.0548095442,
0.1317089945,
0.3381567299,
-0.17050533,
-0.0524503812,
-0.2627620697,
-0.4465302825,
0.1718929559,
0.1726237386,
0.3508760929,
0.0367631689,
0.1563945413,
-0.3625408113,
0.0843450278,
-0.1391147226,
-0.1857398003,
-0.0621959753,
-0.0658126771,
0.3058332205,
0.1891339421,
-0.3044051528,
-0.1787874252,
0.0287977178,
0.4081339836,
0.3072484732,
0.2441804558,
-0.2350319326,
-0.0048554027,
-0.0840900019,
-0.1166808382,
0.2761300504,
0.3668233156,
-0.0337454416,
-0.2301009595,
0.043489255,
-0.3992782235,
0.2303058505,
-0.031671308,
-0.2247757614,
-0.3862751126,
-0.1471913755,
0.2313432097,
0.1427813619,
-0.6531752348,
0.0309710428,
0.2807718813,
-0.1503991485,
-0.1293621063,
0.3325279057,
0.0073558018,
0.0614838377,
-0.2657533884,
0.3298507333,
-0.0010021855,
-0.0641316324,
-0.1747636199,
-0.292882055
] |
https://github.com/huggingface/datasets/issues/130 | Loading GLUE dataset loads CoLA by default | As a follow-up to this: It looks like the actual GLUE task name is supplied as the `name` argument. Is there a way to check what `name`s/sub-datasets are available under a grouping like GLUE? That information doesn't seem to be readily available in info from `nlp.list_datasets()`.
Edit: I found the info under `Glue.BUILDER_CONFIGS` | If I run:
```python
dataset = nlp.load_dataset('glue')
```
The resultant dataset seems to be CoLA be default, without throwing any error. This is in contrast to calling:
```python
metric = nlp.load_metric("glue")
```
which throws an error telling the user that they need to specify a task in GLUE. Should the same apply for loading datasets? | 53 | Loading GLUE dataset loads CoLA by default
If I run:
```python
dataset = nlp.load_dataset('glue')
```
The resultant dataset seems to be CoLA be default, without throwing any error. This is in contrast to calling:
```python
metric = nlp.load_metric("glue")
```
which throws an error telling the user that they need to specify a task in GLUE. Should the same apply for loading datasets?
As a follow-up to this: It looks like the actual GLUE task name is supplied as the `name` argument. Is there a way to check what `name`s/sub-datasets are available under a grouping like GLUE? That information doesn't seem to be readily available in info from `nlp.list_datasets()`.
Edit: I found the info under `Glue.BUILDER_CONFIGS` | [
-0.1725945175,
-0.2484225184,
0.0658994317,
0.3159227669,
-0.0194631554,
0.0501955263,
0.376293987,
-0.1403567642,
0.7129030824,
0.1203572974,
-0.2811449766,
0.5193802714,
0.081803821,
0.0636687279,
0.2311221659,
0.0292404927,
0.0766590834,
0.1667408943,
-0.1115131229,
-0.1865057796,
-0.4865835011,
0.3221148551,
-0.3004100323,
0.2563777566,
-0.1656360924,
-0.0245173238,
-0.1407756209,
0.1467225701,
-0.1083861217,
-0.2313848734,
0.4261038005,
0.4168223739,
0.1703008413,
-0.1210094541,
-0.0001230206,
-0.0875957906,
0.6260712743,
-0.1760388911,
-0.1699006259,
-0.2148625702,
-0.6149532795,
-0.3502326906,
0.4615489542,
-0.240935728,
0.1219706982,
0.3319017887,
0.3726021349,
-0.1849739701,
0.0137703205,
0.0481357388,
0.0500271134,
0.5045631528,
-0.3903689086,
-0.0787918493,
-0.0217170548,
-0.114073433,
-0.0577432476,
0.6744439006,
-0.0432515144,
-0.3659254313,
0.0440581851,
-0.056574285,
-0.0486898087,
0.3303422034,
0.3373462558,
0.0048554442,
0.0214751977,
-0.4663361907,
-0.1145743653,
0.5373287201,
0.2077331096,
-0.1874141246,
-0.1875196695,
-0.3060941398,
0.1226776168,
-0.0138647659,
0.2320161313,
0.311307162,
0.0170251727,
0.0447691418,
0.1531568617,
0.0357266665,
0.1865295768,
0.3109622598,
-0.1849830598,
0.5227513909,
-0.1189949811,
0.269203037,
0.2278758436,
-0.0366255529,
-0.139961347,
-0.3156049848,
-0.2983659506,
0.1015646681,
-0.3652480245,
-0.063513726,
0.0324660391,
0.5708156824,
0.1710641384,
0.0076590171,
0.2041781396,
0.0784854367,
0.0654914156,
0.3932665586,
0.3801899254,
0.1246890426,
0.4200632274,
-0.0918591395,
0.0543452837,
-0.06282074,
-0.1029409021,
0.1196002215,
-0.3057980537,
0.0590024553,
-0.1013352126,
-0.2553477585,
0.1419203728,
-0.0149533143,
-0.4296118617,
-0.235443607,
-0.0931800678,
-0.1769381464,
0.1591099054,
0.2330815196,
0.0021017706,
0.1385071576,
-0.3767081797,
0.3707321882,
-0.1587340385,
-0.0748587102,
-0.1385858953,
-0.0942316726,
-0.3390647769,
0.1342392415,
0.206061855,
-0.0339635722,
0.2835072875,
-0.1634258777,
0.0305537339,
0.1382159442,
0.1435979307,
0.0048816502,
0.1341761053,
0.2735055983,
0.3071856201,
0.0825896785,
0.0443133675,
-0.4303754866,
-0.3361851275,
0.056199614,
-0.2327113152,
-0.2623212934,
0.082142733,
0.0417890809,
-0.6383652091,
-0.0251226462,
-0.6208204627,
0.3129180074,
-0.0949080586,
0.1121771336,
-0.0261937659,
-0.1705808342,
-0.2382143587,
-0.2332175821,
-0.0261173304,
0.3035363853,
-0.0929570347,
-0.3242762387,
-0.2786444128,
-0.2820479274,
-0.0983203202,
0.0907393321,
-0.1283427179,
-0.0189783238,
-0.1342946738,
0.0695967153,
0.4640238583,
-0.1827949435,
-0.3434996009,
0.1787414402,
0.048387181,
0.0153113911,
-0.0854014233,
0.1239226311,
0.0589951314,
-0.050953351,
0.4281708002,
0.494315356,
0.0499851704,
-0.0940641016,
0.0150878411,
-0.0785887241,
0.1891937256,
0.0466196314,
-0.0622825846,
0.2793147266,
0.0416076742,
-0.0561059192,
0.014674197,
0.3411321938,
-0.4115761817,
-0.0953840241,
-0.0471464843,
-0.2374938875,
0.1808027476,
0.051219821,
-0.4635835588,
0.2720180154,
0.0998445004,
0.0805386156,
0.2446930557,
-0.1569922715,
-0.1589940041,
0.1996584833,
-0.0505541451,
0.35576123,
-0.0723997429,
0.312301755,
0.1252313703,
-0.2424221784,
-0.2602818906,
0.6475878954,
-0.2580869198,
0.1739527434,
-0.1627794802,
0.183073014,
0.2841739953,
0.0428683944,
0.0041614473,
0.2706501484,
0.0965239331,
-0.0510826334,
0.041619394,
0.3302463591,
0.2279450744,
-0.02036383,
0.1437882036,
-0.0672411472,
-0.0037750576,
-0.0256035011,
0.1983070374,
0.0699306428,
0.0402125567,
0.0673236996,
-0.0200363919,
0.3690298498,
0.0603730604,
0.2613089681,
-0.021271931,
0.052185677,
0.1354757994,
0.1276660711,
-0.5614259243,
-0.2807865143,
0.0287648328,
0.0829130337,
0.5041065216,
0.3679534495,
-0.3384756446,
-0.1453407556,
0.4069746137,
-0.0604141802,
0.1469538361,
-0.1286326945,
-0.3089123964,
-0.0977874547,
0.2786588967,
0.4591607153,
0.587223947,
0.1190100685,
0.0607878678,
-0.2157075256,
-0.1917216182,
-0.2105319351,
0.0080240546,
0.2727661431,
0.0106360922,
-0.2120889276,
0.319417417,
-0.10294386,
-0.4509444237,
0.3798743188,
-0.0225263368,
-0.1781172454,
-0.2922337651,
0.0603942648,
-0.0216051396,
-0.6061502099,
0.0375325084,
-0.2433526069,
-0.2842607796,
-0.4053377807,
-0.125133574,
-0.1692966521,
0.0879080072,
0.1985606849,
0.2002054155,
0.4580504894,
-0.4821961522,
-0.1907385439,
0.0049894024,
-0.0888832957,
-0.1672083586,
-0.092318736,
-0.0698059425,
0.282612592,
0.1935006082,
-0.2446644902,
0.0474126302,
0.1971145272,
-0.1925167888,
0.329113096,
-0.1074581146,
0.5722261667,
0.1572947055,
-0.0895837471,
0.0413080454,
-0.1016609892,
0.1898088455,
-0.1826378107,
0.0339048095,
-0.2854734957,
0.0542667285,
0.0052301446,
-0.1092134491,
0.0582991913,
-0.5250712633,
-0.2473230511,
0.0293148588,
0.1289641857,
-0.0038832047,
0.1676344275,
-0.4640072286,
-0.0216192286,
0.1260853559,
-0.0622137338,
-0.2979719043,
-0.1379566491,
0.2206341922,
-0.1228187382,
-0.1601768881,
-0.0570607632,
-0.3852189183,
0.1511648297,
0.0822593197,
-0.0723713711,
-0.5357010365,
-0.1538149714,
-0.0764899775,
0.3229403496,
-0.0198658127,
-0.0556154139,
-0.1602954268,
0.2289458513,
-0.1405752599,
-0.378647387,
0.001255244,
0.3115510941,
0.1157939807,
0.1630406976,
0.0895354524,
-0.1561246216,
0.4338524938,
-0.1202090979,
-0.3725534976,
0.2616611719,
-0.1179797202,
0.572000742,
0.16392079,
-0.1120458171,
0.0150120798,
0.2438838482,
0.1999144107,
0.4289884865,
0.131276533,
-0.5775893927,
-0.1473947465,
0.3481875062,
-0.2173977792,
-0.0927845687,
-0.1649269164,
-0.1839097738,
0.0381599553,
0.2785156667,
0.1254335493,
-0.2404964268,
-0.2598406374,
-0.2579221427,
0.5730077028,
0.1214920953,
-0.0010676648,
-0.0006984179,
-0.1881999224,
-0.4797839224,
0.339648515,
-0.1379381269,
0.2610196173,
0.0711836293,
-0.1808649004,
0.0545028597,
0.0282282066,
0.4136382639,
-0.4197870791,
-0.1091816053,
0.2105711102,
0.2621338964,
-0.539537549,
-0.2534891963,
-0.1327020079,
0.161636278,
0.283182025,
0.3954245746,
-0.1778283566,
-0.3551358283,
0.1704837084,
0.0274274014,
-0.0411035381,
-0.3452650011,
-0.4882954359,
-0.056672845,
0.0115762595,
-0.153635025,
-0.3646243215,
0.0242676605,
0.1641967893,
0.1713281274,
-0.2304842025,
-0.0268833525,
0.2792696953,
0.3903974891,
0.3077054918,
0.3962611854,
0.0455124639,
0.0234218519,
0.3396554887,
-0.2034999728,
0.2640026212,
-0.2735618353,
0.0892027915,
0.0983523056,
0.219960615,
0.4898400903,
0.1392573565,
-0.1975557953,
-0.2086831927,
-0.3556484878,
-0.1930099428,
-0.2211499214,
0.5052552819,
0.28688851,
0.1124190688,
-0.3608320653,
-0.4029763639,
0.6374167204,
0.316722542,
-0.3363935351,
0.1907069236,
-0.1471170634,
-0.2147848755,
0.2114690542,
-0.1332716793,
0.6008558273,
-0.2714726925,
-0.0229020566,
0.2934979498,
-0.0912839845,
0.5923179984,
0.1955217123,
0.0557716489,
-0.1681607962,
-0.3279606402,
0.0124273393,
-0.1805080175,
-0.0889321864,
0.4985410869,
-0.064022027,
0.3416547775,
0.1716861725,
0.0928530395,
0.1293148398,
0.4685433805,
-0.133417204,
-0.4109864831,
-0.3210079372,
-0.0561121404,
-0.1951424927,
0.3181065619,
-0.1777683049,
0.0801917985,
0.2733339667,
0.0147981122,
-0.227047354,
-0.1246654466,
-0.1243030056,
-0.2731579244,
0.2614935338,
-0.1384985447,
-0.0948750824,
0.0144328102,
0.0576811209,
0.2713039815,
-0.0127282962,
0.336031884,
0.0560381375,
0.0094606346,
0.0741546378,
0.0778450444,
0.2644198239,
0.2621595562,
0.1019130573,
-0.3572232723,
0.0781083629,
0.0508942567,
-0.1172808558,
0.2615501583,
-0.0818523318,
-0.078253597,
-0.3958770633,
0.0864311457,
0.1346023381,
0.1327537894,
0.0166733991,
0.014006814,
0.0466091298,
0.2174343616,
-0.0068892026,
-0.4923043549,
-0.117488198,
0.1458956599,
0.0056935195,
-0.1417082101,
-0.1675385833,
-0.2822413146,
0.0204147566,
-0.05218824,
-0.0765816271,
-0.1556702703,
0.0530718267,
0.1401907057,
0.1982684731,
-0.1143058091,
-0.0026668857,
0.0962615311,
0.2301118821,
-0.0851896182,
-0.0016915355,
-0.4102165401,
-0.0616996959,
0.3642497957,
-0.2124477923,
0.1922758669,
0.1400478333,
-0.2225619853,
0.2793599069,
0.0068775355,
-0.1233970821,
-0.0267786775,
-0.2066755742,
0.0513305664,
0.4680589437,
0.2214336097,
-0.0004541562,
-0.1304057389,
-0.0374144278,
-0.1361542642,
-0.2074684054,
-0.0940701365,
0.0528180599,
0.228522554,
-0.0060464689,
0.0739199892,
0.1231036931,
-0.2868136168,
-0.0283007827,
-0.3816316128,
0.229545027,
-0.1392905116,
-0.2746684253,
-0.1037014276,
0.2368360609,
0.2031374574,
-0.0131377568,
0.3210720122,
0.0591190495,
0.2595498562,
0.1804193705,
0.0758329555,
-0.0321284831,
0.1945054829,
0.0709736794,
0.1289190799,
0.1149741486,
-0.0108191576,
-0.1177630126,
-0.1611793488,
-0.0711770058,
-0.2137154788,
0.2505788207,
0.1549587697,
-0.0079258177,
-0.0201233886,
-0.074639298,
-0.0352766253,
-0.1552858353,
0.0498860329,
0.485563904,
0.0985367298,
0.293694675,
0.441509217,
0.4212814867,
0.2450570315,
0.1583519131,
-0.1554616839,
0.4559430778,
0.1695653349,
0.2591847181,
-0.0204202496,
-0.0706862882,
0.3534203172,
0.4438769519,
0.0906872898,
0.0828978196,
0.1025341302,
0.4269813895,
0.3597857356,
0.4493693709,
0.020705102,
0.4012003243,
-0.3365101814,
-0.02492797,
0.2151342034,
0.0700941309,
0.1877699792,
0.1934136301,
0.3586153984,
-0.4535295367,
-0.1445497125,
-0.2608299255,
-0.1262643039,
-0.0567817688,
-0.3152935803,
-0.06319464,
-0.0281349272,
-0.2097602636,
0.1032831296,
-0.0767306909,
-0.3128423691,
0.227343604,
-0.1764270663,
0.2926800549,
-0.031011425,
-0.0866287202,
0.2989383936,
-0.0908517018,
-0.197550714,
0.2206457853,
-0.6988406777,
0.1629045755,
0.186883837,
0.22962901,
0.2515775859,
0.1685348451,
-0.0951668993,
-0.2500784099,
0.1212637722,
0.0343983844,
-0.3038609922,
0.1564112455,
0.2277081609,
0.0262301806,
0.3221805692,
0.0666869357,
-0.0435385667,
-0.0528643839,
-0.0116810417,
-0.1098032147,
-0.335627526,
0.3870967627,
-0.1120917648,
0.0079675559,
-0.0141073158,
0.1596940905,
-0.3824215531,
0.2323531061,
0.1740885079,
0.0809749812,
0.0868359134,
-0.1557411402,
0.0172702093,
-0.0826463848,
0.6005554795,
0.2271196842,
0.5752952099,
-0.2252590209,
-0.3279744089,
-0.700120151,
0.0368191861,
-0.2132430524,
0.0002161544,
0.2314880192,
-0.0133431712,
0.1313793957,
0.3090603352,
-0.213135168,
0.6716578603,
0.0967314467,
-0.3353391886,
-0.2283658832,
-0.2301149219,
-0.2177294493,
-0.2783159316,
-0.16904369,
-0.3825411201,
-0.2863837183,
-0.3098651767,
-0.1817478389,
0.0221983958,
-0.1952805221,
0.2178574502,
0.3884986341,
0.2519211173,
0.0594375655,
0.5966928601,
-0.0084710084,
0.3643213511,
-0.0634281859,
-0.459059298,
-0.1905648559,
0.1081527323,
-0.357714951,
-0.0781209394,
-0.1493206322,
0.3721563816,
0.0095066009,
-0.148674503,
0.1301594377,
0.2861029208,
0.1310577542,
-0.1102914065,
-0.4144436419,
-0.110841237,
0.0648287013,
0.3997950852,
0.197549969,
-0.1892719418,
0.2745088935,
0.0350963511,
0.1692057848,
-0.438228488,
-0.3190025687,
-0.2125056386,
0.2093899995,
-0.0648908839,
-0.0385555662,
-0.3037866354,
-0.1511374712,
0.4055891037,
-0.2444159091,
-0.1811447889,
0.0704868585,
0.0627479553,
-0.0557158031,
-0.2137464881,
-0.2511053085,
0.1618839651,
-0.3231651187,
-0.1326724589,
-0.2384337932
] |
https://github.com/huggingface/datasets/issues/130 | Loading GLUE dataset loads CoLA by default | Yes so the first config is loaded by default when no `name` is supplied but for GLUE this should probably throw an error indeed.
We can probably just add an `__init__` at the top of the `class Glue(nlp.GeneratorBasedBuilder)` in the `glue.py` script which does this check:
```
class Glue(nlp.GeneratorBasedBuilder):
def __init__(self, *args, **kwargs):
assert 'name' in kwargs and kwargs[name] is not None, "Glue has to be called with a configuration name"
super(Glue, self).__init__(*args, **kwargs)
``` | If I run:
```python
dataset = nlp.load_dataset('glue')
```
The resultant dataset seems to be CoLA be default, without throwing any error. This is in contrast to calling:
```python
metric = nlp.load_metric("glue")
```
which throws an error telling the user that they need to specify a task in GLUE. Should the same apply for loading datasets? | 75 | Loading GLUE dataset loads CoLA by default
If I run:
```python
dataset = nlp.load_dataset('glue')
```
The resultant dataset seems to be CoLA be default, without throwing any error. This is in contrast to calling:
```python
metric = nlp.load_metric("glue")
```
which throws an error telling the user that they need to specify a task in GLUE. Should the same apply for loading datasets?
Yes so the first config is loaded by default when no `name` is supplied but for GLUE this should probably throw an error indeed.
We can probably just add an `__init__` at the top of the `class Glue(nlp.GeneratorBasedBuilder)` in the `glue.py` script which does this check:
```
class Glue(nlp.GeneratorBasedBuilder):
def __init__(self, *args, **kwargs):
assert 'name' in kwargs and kwargs[name] is not None, "Glue has to be called with a configuration name"
super(Glue, self).__init__(*args, **kwargs)
``` | [
-0.1694331914,
-0.1131426543,
0.1923100948,
0.1447666585,
0.1055871993,
-0.1608264297,
0.324606061,
-0.241668418,
0.4928925931,
0.2975999415,
0.0066171736,
0.5925444365,
0.0851709023,
0.0806322619,
0.1479725242,
0.087144196,
-0.0673542842,
0.3852502406,
-0.2322342098,
-0.1193545237,
-0.4771753252,
0.2173206657,
-0.214981094,
0.2020162493,
-0.2388357818,
0.028457066,
-0.0420783199,
0.2567210793,
-0.1525190771,
-0.3225888908,
0.5009708405,
0.4004226923,
0.0480065681,
-0.0071248468,
-0.0001277717,
-0.0651667416,
0.6264620423,
-0.2052077204,
0.004431406,
-0.1768510491,
-0.5791390538,
-0.3032612205,
0.4434994161,
-0.3734255731,
0.0086700553,
0.5683814287,
0.2329165787,
-0.1811607182,
0.1121181026,
-0.0361292996,
0.0350639746,
0.2749433517,
-0.3470977843,
-0.1134788021,
-0.1467453688,
-0.020201413,
-0.045123335,
0.8158908486,
-0.236458391,
-0.4017541707,
0.0876227543,
0.071173057,
-0.1125768647,
0.2932897508,
0.5203598738,
0.0533092804,
0.2042465508,
-0.3093041778,
-0.0650204793,
0.5827367306,
0.1253231317,
-0.311070472,
-0.0930167735,
-0.2010278851,
0.290548861,
-0.309430331,
0.3871704042,
0.1643278897,
-0.1318155527,
0.1253420413,
0.0307995006,
-0.1639343351,
0.1551112086,
0.2616843879,
-0.1995372772,
0.3903367221,
-0.0643595532,
0.2511920333,
0.1560224891,
0.0305497423,
0.0102959089,
-0.4243232012,
-0.2983725369,
0.006756207,
-0.1055010557,
-0.0589881428,
-0.0094817802,
0.477257967,
0.0725095123,
-0.1048418954,
0.1459958702,
-0.0078612622,
0.1422873884,
0.3124378622,
0.1497373581,
0.1795003116,
0.4674266577,
0.0466186367,
0.1715821475,
0.081407845,
-0.1534211785,
0.0676888078,
0.0424034186,
-0.0310721155,
0.0605364405,
-0.1745248884,
0.2021005452,
-0.1210566908,
-0.0995604098,
-0.1149303913,
0.0140529945,
-0.1394962519,
0.0938220322,
0.3139576912,
-0.1833717376,
0.2045087665,
-0.2903825343,
0.4254966378,
-0.2119330764,
0.0371898748,
-0.1563828737,
-0.0690171197,
-0.2381930947,
0.3441038728,
0.2139392644,
-0.0218732767,
0.2847320139,
-0.1093068272,
0.0480423532,
0.1019343287,
0.2422239482,
-0.093161732,
0.1004790962,
0.3126707077,
0.1332192272,
0.0953531042,
0.0670014247,
-0.5786067247,
-0.2952353358,
0.1635294408,
-0.334377557,
-0.3553066254,
0.2480689883,
0.0628694892,
-0.708632946,
0.0345575251,
-0.4189409018,
0.2075430453,
0.0170403998,
-0.187137574,
-0.1002303883,
-0.1505235881,
-0.2170739025,
-0.3105584383,
0.1083692461,
0.4598323405,
-0.1007287204,
-0.3130806088,
-0.1742130071,
-0.1292669177,
0.0828601494,
-0.1217453331,
-0.270791471,
0.1485442072,
-0.1997080594,
-0.0768886656,
0.6406314969,
-0.3604438603,
-0.3108128011,
0.0916324407,
-0.0039356207,
0.1509332061,
0.040751569,
0.1100214124,
-0.0455564223,
-0.043168325,
0.4982179999,
0.3668847978,
0.1026641354,
0.0229518507,
-0.0810715258,
-0.2251186073,
0.068902798,
-0.0152988862,
0.0260325,
0.3120305836,
0.0078263031,
0.0009664479,
0.0331269726,
0.1660285741,
-0.4011258483,
-0.0215979107,
0.0519483835,
-0.2292003781,
0.0509481244,
0.2154650092,
-0.3800516725,
0.2970751226,
0.0964181945,
0.1881466061,
0.1825900972,
-0.1498968899,
-0.0632587597,
0.0635970533,
-0.1701560766,
0.2489452958,
-0.0731582493,
0.2950998843,
-0.0338747427,
-0.1346231848,
-0.2492023855,
0.5403075218,
-0.3059584796,
0.234062314,
-0.2367592901,
0.1333030313,
0.2101884037,
0.0561618395,
-0.2033624202,
0.1293229759,
0.0567600466,
-0.1223504096,
-0.0068925307,
0.4079773426,
0.2588040531,
-0.0673182756,
-0.0300813727,
-0.056121964,
0.086149551,
-0.0556969568,
0.0633731186,
0.0601268671,
0.122192055,
-0.1220949218,
-0.114565298,
0.429038614,
0.1284839809,
0.2546579838,
-0.0721652284,
-0.0801661834,
0.0726670995,
-0.0405239984,
-0.6427881122,
-0.3399477601,
-0.0774793625,
0.1088024676,
0.3928145468,
0.3404851854,
-0.1719954312,
-0.3024608493,
0.4272814691,
0.1237080842,
0.170777604,
-0.1698994637,
-0.12434268,
-0.0518662781,
0.2336390465,
0.4314949512,
0.7753478289,
0.1059536487,
-0.1193499044,
-0.0878806338,
-0.2527441084,
-0.180458039,
0.1540832967,
0.1202421263,
0.208647728,
-0.1038479581,
0.2253829986,
-0.0485091954,
-0.3323349357,
0.2384044826,
0.0789695978,
-0.2373333722,
-0.3911011815,
0.0130335186,
0.0378920361,
-0.4379421473,
-0.0596231185,
-0.1697869748,
-0.2356129587,
-0.2868681848,
-0.2006107569,
-0.1280091852,
0.0884270594,
0.2005222291,
0.1486909688,
0.3373686075,
-0.4282751083,
-0.5522498488,
0.0601778962,
-0.1075856909,
-0.2194832712,
-0.1756981164,
-0.1533195227,
0.0817979872,
0.0827825665,
-0.2737566531,
-0.0729153976,
0.2294440269,
-0.3642035127,
0.3472115993,
0.0735496581,
0.5990024805,
0.2174130529,
-0.1311402917,
0.1475275308,
-0.0990216732,
0.3466441035,
-0.0230740085,
0.1609725654,
-0.1113975942,
0.0236250814,
-0.0147374701,
-0.2133249044,
0.0832199454,
-0.3554652929,
-0.2513577938,
-0.1286614835,
0.2116761059,
-0.0156703629,
0.3157361448,
-0.178321749,
-0.109788917,
0.0914318487,
0.0718855634,
-0.1312551498,
-0.1693263799,
0.2335377187,
-0.0578246266,
-0.1815221161,
-0.1683600694,
-0.4493403733,
0.2137179971,
0.0865026638,
-0.2035408169,
-0.6979244351,
-0.164445594,
0.139433682,
0.1271077842,
0.1680632383,
-0.0026599809,
0.0592414215,
0.170766592,
-0.105199255,
-0.4053519666,
0.1375134885,
0.2413713783,
0.2316522151,
0.2321866006,
0.148928836,
-0.2921330035,
0.2373865843,
-0.1976981014,
-0.3449136913,
0.3137611151,
-0.1818260103,
0.7343224287,
0.0804425776,
-0.0825397074,
-0.0600862615,
0.33416453,
0.0770704597,
0.3019990921,
0.0270407852,
-0.3756340742,
-0.3720228672,
0.1613941193,
-0.1581160128,
-0.2394888699,
-0.1362719983,
-0.2108807266,
-0.0219352357,
0.3651623428,
0.2551848292,
-0.235474512,
-0.1455222666,
-0.2013724297,
0.5163023472,
-0.0129533932,
0.0295676216,
-0.0201272387,
-0.2774999142,
-0.5343543291,
0.2455601692,
-0.1463554353,
0.1572121382,
0.1345402151,
-0.1922780722,
-0.007250072,
-0.0329218432,
0.4484992325,
-0.4122417569,
-0.0996282399,
0.2113330066,
0.2511306107,
-0.3981359899,
-0.2474794686,
-0.1553961486,
0.1741592437,
0.3201669455,
0.4943861961,
-0.2636163235,
-0.2303314954,
0.0899359509,
0.1175078601,
-0.1248112917,
-0.4126550257,
-0.6122552752,
-0.2123478204,
0.0279973708,
-0.216138199,
-0.4284983575,
0.1542116106,
0.1133213043,
0.1765399277,
-0.3216022551,
0.0860448107,
0.3135075867,
0.5341845751,
0.2590315938,
0.2268691063,
0.0850273594,
-0.1945070922,
0.1815156788,
-0.1779826134,
0.2631504238,
-0.1842771173,
0.0911118239,
-0.0229094811,
0.1386464089,
0.4430512786,
0.2633046806,
-0.1904393584,
-0.2521760762,
-0.3842643201,
0.0120930029,
-0.088651441,
0.424421519,
0.2282300442,
0.0691797808,
-0.4083650708,
-0.4107195139,
0.7090913653,
0.2342595011,
-0.3464304209,
0.2325848788,
0.0968146101,
-0.2642559111,
0.2385287732,
-0.0687903687,
0.821739316,
-0.1572081149,
0.0378650278,
0.4619807601,
-0.0843756124,
0.8485871553,
0.2168825269,
0.0733860806,
-0.2406608313,
-0.2776120603,
0.0754706785,
-0.2156395465,
0.0073834062,
0.3476287723,
-0.2095759362,
0.433181107,
0.1528298557,
-0.0585145988,
0.143722564,
0.3877588212,
-0.1268002987,
-0.3651953936,
-0.3336220682,
-0.0929782987,
-0.1426858157,
0.3854745626,
-0.2091260552,
0.0100322841,
0.217532292,
-0.2441762984,
0.0640757531,
0.005311498,
-0.3357226551,
-0.1467764527,
0.1981846392,
0.0420957431,
-0.1830549836,
0.095242396,
0.0516487062,
0.5375211239,
-0.0338202342,
0.2843132615,
0.1906494498,
0.0319074616,
0.0976017043,
0.130513519,
0.1728518158,
0.1522520781,
0.0914794132,
-0.2071563154,
-0.2150569558,
0.0594870746,
0.0880547091,
0.1970218718,
0.0150059154,
-0.0814500377,
-0.3930113912,
0.1681260169,
0.1702822596,
0.179889217,
-0.006012687,
-0.0813502818,
0.0563098453,
0.3447434008,
0.048787076,
-0.6621543169,
-0.0542147867,
0.1478797644,
0.0002175838,
-0.1335231513,
-0.0022436848,
-0.625978291,
0.0941377804,
-0.0127481176,
-0.0586570688,
-0.3170334995,
-0.0323304571,
0.0398208275,
0.4780425429,
-0.1849785745,
0.0811522752,
0.1349265128,
0.269997865,
-0.0187516548,
0.1475009918,
-0.3171008527,
-0.0256845988,
0.2583191693,
-0.1051417142,
0.1135639697,
0.295876503,
-0.0457140692,
0.0959489048,
0.076181367,
-0.1169668064,
-0.0398204103,
-0.0438472107,
0.0436802059,
0.3629106879,
0.2305176705,
-0.0599699728,
-0.0625939444,
0.0021004227,
-0.2558605075,
-0.2553119063,
-0.0671653599,
-0.0285250898,
0.2817901075,
-0.0392716937,
0.0817243159,
0.0318439864,
-0.3207901716,
-0.0137258461,
-0.3447391689,
0.2159489989,
-0.0390915126,
-0.2512977719,
-0.1333875209,
0.2346272618,
0.2099355757,
-0.1666314155,
0.4368414581,
0.0915490538,
0.1507894695,
-0.0342855975,
0.1278308928,
-0.1758310497,
0.1013851762,
0.1230716035,
0.0533456281,
-0.0466477238,
0.0449267477,
-0.0983750969,
-0.2339440286,
0.1022054702,
-0.1674124599,
0.1383025497,
0.2927307487,
-0.0598354302,
-0.034877114,
-0.1222481951,
-0.0147356177,
-0.183272779,
0.041126471,
0.2083770633,
0.0906111374,
0.2829053998,
0.5284818411,
0.2885519862,
0.1527937502,
0.0795445815,
-0.2467986494,
0.4222287238,
0.2285949737,
0.2029922456,
0.0729551017,
-0.1283060461,
0.298045516,
0.4683027565,
0.1064260453,
0.0582004376,
0.0640889332,
0.3717336953,
0.2807999849,
0.3173821568,
-0.0448243842,
0.2279087752,
-0.5367949009,
0.1424013972,
0.1578689963,
-0.0403629988,
0.0215255823,
0.1811543852,
0.2548322976,
-0.5046083927,
-0.1440713108,
-0.2625886798,
-0.1749141961,
0.006593307,
-0.2983583808,
-0.054081995,
0.0035192946,
-0.1413202584,
-0.0033877848,
-0.1103819162,
-0.1116216853,
0.2767397165,
0.0200334657,
0.1978140771,
-0.0182346869,
0.0003216484,
0.2182855159,
0.0053634034,
-0.2908354104,
0.2773527503,
-0.4761326611,
0.1482859403,
0.0949408561,
0.3791992664,
0.3747545779,
0.338196218,
0.1080378518,
-0.2391612381,
0.1539079696,
0.0631621256,
-0.2858419716,
0.0304328259,
0.4256488383,
-0.0481042266,
0.3314394951,
0.0815429464,
-0.0818150267,
-0.0502745546,
0.0206825491,
-0.003284662,
-0.2690692842,
0.3264236152,
0.0490601212,
0.1140370294,
-0.0136945229,
0.2425744832,
-0.4371362329,
0.2823237479,
0.2107556909,
0.0228381585,
0.0363070965,
-0.1995205879,
0.0093811983,
-0.0806469992,
0.4938761294,
0.2020368725,
0.3574382663,
-0.3710488975,
-0.2412195802,
-0.7887625694,
0.0977466777,
-0.2246287167,
-0.1129088029,
0.1279347837,
-0.0284429565,
0.1264047176,
0.2226119339,
-0.4586651027,
0.6459435821,
0.0432607271,
-0.3621831238,
-0.2518528402,
-0.2155231833,
-0.1494946927,
-0.3778804541,
-0.126338467,
-0.554250598,
-0.1973571479,
-0.3510096371,
-0.095845066,
0.118584089,
-0.0323181897,
0.2601845562,
0.4510056376,
0.3935415149,
0.1403742135,
0.6321727037,
0.0271029826,
0.1805553734,
0.0666144118,
-0.3282630146,
-0.2012848258,
0.0727163032,
-0.1741975546,
-0.0222712569,
-0.0957803428,
0.340000689,
-0.0634004772,
0.0831930637,
0.0744195282,
0.1784867048,
0.1372773498,
-0.1144180819,
-0.3300216198,
0.0174729284,
0.0189869385,
0.3895492554,
0.098460339,
0.1057167426,
0.068749696,
-0.1156832352,
0.4444268346,
-0.3427819312,
-0.1141093001,
-0.2470721453,
0.3522531986,
-0.0088457717,
-0.0612934083,
-0.3550991416,
-0.0582103767,
0.3809677064,
-0.254419148,
-0.3067002296,
0.1960639358,
-0.2356845289,
-0.0591070466,
-0.2299783677,
-0.1528534144,
-0.0320815295,
-0.3341138959,
-0.396376282,
-0.1641498506
] |
https://github.com/huggingface/datasets/issues/130 | Loading GLUE dataset loads CoLA by default | An error is raised if the sub-dataset is not specified :)
```
ValueError: Config name is missing.
Please pick one among the available configs: ['cola', 'sst2', 'mrpc', 'qqp', 'stsb', 'mnli', 'mnli_mismatched', 'mnli_matched', 'qnli', 'rte', 'wnli', 'ax']
Example of usage:
`load_dataset('glue', 'cola')`
``` | If I run:
```python
dataset = nlp.load_dataset('glue')
```
The resultant dataset seems to be CoLA be default, without throwing any error. This is in contrast to calling:
```python
metric = nlp.load_metric("glue")
```
which throws an error telling the user that they need to specify a task in GLUE. Should the same apply for loading datasets? | 42 | Loading GLUE dataset loads CoLA by default
If I run:
```python
dataset = nlp.load_dataset('glue')
```
The resultant dataset seems to be CoLA be default, without throwing any error. This is in contrast to calling:
```python
metric = nlp.load_metric("glue")
```
which throws an error telling the user that they need to specify a task in GLUE. Should the same apply for loading datasets?
An error is raised if the sub-dataset is not specified :)
```
ValueError: Config name is missing.
Please pick one among the available configs: ['cola', 'sst2', 'mrpc', 'qqp', 'stsb', 'mnli', 'mnli_mismatched', 'mnli_matched', 'qnli', 'rte', 'wnli', 'ax']
Example of usage:
`load_dataset('glue', 'cola')`
``` | [
-0.1234982461,
-0.2316409796,
0.1299612671,
0.1788024604,
-0.0260566641,
0.0349778533,
0.447948724,
-0.2386649698,
0.6000367999,
0.1970046908,
-0.1358671784,
0.5252869129,
0.1504835486,
0.1636871397,
0.1363488734,
-0.0717557967,
0.0006627274,
0.1845783442,
-0.2312727422,
-0.1488693655,
-0.5079346895,
0.2756890655,
-0.3465513587,
0.1943187118,
-0.1970530003,
0.0579491891,
-0.0876901224,
0.1988680065,
-0.1275697798,
-0.2630568743,
0.5758829117,
0.1909217983,
0.2315264791,
-0.0689437687,
-0.0001251231,
-0.0415129401,
0.5903521776,
-0.2156630456,
-0.0600044653,
-0.2415104657,
-0.6910243034,
-0.3064955175,
0.5161477327,
-0.2989684343,
0.1165502965,
0.413462013,
0.2769863009,
-0.2617210746,
0.0181755107,
0.0331444293,
0.0619105473,
0.4095021784,
-0.3501495421,
-0.1138349771,
-0.1835405976,
-0.2181191593,
-0.0447623543,
0.8315681815,
-0.1410435736,
-0.3725716174,
0.094274655,
-0.0238962788,
-0.0733997822,
0.2983857393,
0.4873612523,
0.0610512346,
0.1099266857,
-0.3827920854,
-0.0399280675,
0.4658717811,
0.2723919451,
-0.3111101091,
-0.1319311559,
-0.2014098018,
0.0698196292,
-0.1846677065,
0.2438082993,
0.2750250399,
-0.0093278661,
0.106203042,
0.0593750849,
-0.0998043418,
0.1585218608,
0.2778339088,
-0.2515945733,
0.4114091396,
-0.0927318856,
0.2883328795,
0.0994252115,
0.009653328,
-0.0466162823,
-0.4762982428,
-0.2465340644,
-0.0385520719,
-0.3014805913,
0.0425024889,
-0.0595231764,
0.3228661716,
0.0277491249,
0.0063541573,
0.2096153647,
0.0352415852,
0.1282931715,
0.3927741349,
0.3041249514,
0.2012163848,
0.4864662886,
0.0798441172,
0.0103813531,
-0.1019410342,
-0.0146403667,
0.0106120659,
-0.0358130224,
0.0316042267,
0.0298986286,
-0.1671722382,
0.0716420412,
-0.064241372,
-0.3528069556,
-0.183600083,
-0.0994027257,
-0.1517703533,
0.0608580075,
0.2100565284,
-0.1752354652,
0.233947739,
-0.3219707012,
0.5184215903,
-0.2057175934,
0.0290760752,
-0.1946339309,
-0.056797944,
-0.289601177,
0.2027561516,
0.1402872354,
-0.024153797,
0.3323246539,
-0.2252150178,
0.0736500025,
0.1254807562,
0.2058141083,
-0.0744057596,
0.0132717853,
0.2799832523,
0.3132459521,
0.0741686299,
0.0476091132,
-0.4513416588,
-0.2670765817,
0.2466627359,
-0.3530206382,
-0.3260577619,
0.1507557184,
0.0712694451,
-0.6081247926,
-0.1257824749,
-0.5980647802,
0.2011921108,
-0.0330208838,
-0.0957994685,
-0.1258771718,
-0.1952589899,
-0.2787997723,
-0.3485417962,
0.0488442555,
0.3585063517,
-0.1044197381,
-0.2893979251,
-0.11595916,
-0.1736199111,
0.1300074011,
0.0689162612,
-0.2402688861,
0.1021810025,
-0.136358723,
0.0296851248,
0.5617925525,
-0.4231230617,
-0.3428966403,
0.1687547117,
0.0245063975,
0.0866549611,
-0.0903095603,
0.1507559121,
0.0957415178,
-0.000875532,
0.515042901,
0.3908317387,
0.1038894653,
0.0325809643,
-0.0275330003,
-0.1966055483,
0.1574231386,
0.1146838889,
0.0487472191,
0.350782901,
0.0906138569,
-0.0561981797,
0.0775562972,
0.2598615885,
-0.3014618158,
-0.0272427704,
0.0217308104,
-0.1713619083,
0.0665826872,
0.131191656,
-0.3722840846,
0.2801188827,
0.1047653258,
0.1512984037,
0.3379480541,
-0.0076632509,
-0.1042712778,
0.1097759008,
-0.1633643955,
0.1957186759,
-0.0947121158,
0.220807448,
-0.0034285411,
-0.1852049679,
-0.2477205992,
0.7136368155,
-0.2071397454,
0.2480588108,
-0.3053857088,
0.2926472127,
0.174435854,
0.0416669399,
-0.1472860277,
0.2093915194,
0.0162383653,
-0.0904517919,
-0.0169346947,
0.423720032,
0.2346641868,
-0.0982946828,
0.0180239119,
-0.1781239808,
0.1551900953,
-0.1540308297,
0.1796036512,
0.0569761619,
0.1660908461,
-0.0245176964,
-0.1312088668,
0.2916745245,
0.1013283059,
0.2943254113,
-0.045160383,
-0.0105010681,
-0.068462126,
0.1183269545,
-0.5679362416,
-0.321479708,
-0.0514615253,
0.1028147712,
0.3370563686,
0.3288536668,
-0.1660838127,
-0.2440535426,
0.3693021536,
-0.0020391739,
0.1345631033,
-0.0618422888,
-0.2000744939,
-0.1146794483,
0.2307558209,
0.4542497694,
0.7809933424,
0.1426455528,
-0.0287822429,
-0.1476745605,
-0.1922797412,
-0.2099160999,
0.1177241206,
0.1805900484,
0.0754992291,
-0.1641799212,
0.2235136479,
-0.031568639,
-0.2807989419,
0.3340435922,
0.0296086799,
-0.1554500312,
-0.3178506494,
0.0475429855,
-0.1117243245,
-0.4101984203,
0.0206770338,
-0.2049304992,
-0.1609472632,
-0.3836707473,
-0.2601155341,
-0.1813655943,
0.1334933192,
0.1927683651,
0.1012803093,
0.2962875366,
-0.400151521,
-0.4196326137,
0.1201058924,
-0.0600767843,
-0.2728140652,
-0.1278373599,
-0.2320305705,
0.2656526566,
0.1116807759,
-0.31391415,
0.0864863247,
0.1176200435,
-0.2783775032,
0.3208668232,
0.0015639183,
0.597789824,
0.2011017352,
-0.0882597417,
0.1285960525,
-0.1251037568,
0.3491458893,
0.0017467653,
0.1210570261,
-0.1546036899,
0.0655654222,
-0.0204657484,
-0.0379848592,
-0.0115172016,
-0.4604465365,
-0.2555038333,
-0.0506606251,
0.1130418852,
-0.0491564386,
0.2361868024,
-0.1544956118,
-0.1646801084,
0.0937772021,
0.0169662535,
-0.1407374144,
-0.178999573,
0.1827666909,
-0.1058649793,
-0.2507733703,
-0.190501377,
-0.2628194392,
0.2189360857,
0.1154184937,
-0.19000718,
-0.6095159054,
-0.213640362,
0.0528342947,
0.1841752678,
0.1485555172,
-0.0460240692,
-0.1051724777,
0.220977217,
-0.0925368965,
-0.5195087194,
0.1842218786,
0.3203352094,
0.1941150725,
0.2446213812,
0.2085209489,
-0.2775197029,
0.2897791564,
-0.0849905089,
-0.3120296896,
0.3616761863,
-0.1904332787,
0.7031654716,
0.0129344771,
-0.1393978894,
0.0729868487,
0.2007298172,
0.1995622367,
0.3539253175,
0.0539099388,
-0.4473096132,
-0.331104368,
0.1006532013,
-0.1744275689,
-0.1516624093,
-0.1699433476,
-0.1528659612,
0.0169213116,
0.3365589678,
0.2076561004,
-0.2597450614,
-0.1404964775,
-0.2507317364,
0.5781275034,
0.0702036694,
0.0374327376,
-0.0382413454,
-0.2341484576,
-0.5961069465,
0.2702554762,
-0.1358285993,
0.3426011205,
0.1182701662,
-0.2289820313,
-0.0021412354,
0.0184905231,
0.3585399389,
-0.4094828963,
-0.0682689846,
0.0962971672,
0.2511443496,
-0.5397168398,
-0.19265683,
-0.1136873886,
0.2541306913,
0.2612884939,
0.4388516247,
-0.179716751,
-0.2849874794,
0.0872998387,
0.0643098056,
-0.0630418584,
-0.4691221714,
-0.6102339625,
-0.1010914668,
-0.0645726845,
-0.3660080433,
-0.3468433022,
0.180156514,
0.201635927,
0.1500582695,
-0.2731434703,
-0.0162034873,
0.25270015,
0.3925919235,
0.2719096839,
0.1817425638,
0.184546262,
-0.1595916599,
0.2297363579,
-0.056408301,
0.280777812,
-0.3542156518,
-0.0151206283,
0.1904880702,
0.1704808623,
0.4698702991,
0.1108673811,
-0.1613738388,
-0.2684817612,
-0.2951905727,
-0.097274594,
-0.0785636529,
0.3524288237,
0.2164836228,
0.1594810784,
-0.3811661899,
-0.4419954121,
0.6043345332,
0.2233276069,
-0.2405328304,
0.1876073033,
-0.0667407662,
-0.2117958665,
0.2143483907,
-0.066970557,
0.5985327959,
-0.128490895,
0.0916655213,
0.3695643246,
-0.124365449,
0.623749733,
0.2063854337,
0.0759056136,
-0.2269100696,
-0.3838103414,
0.0506905094,
-0.1940048635,
0.0028887815,
0.2968001068,
-0.054907348,
0.4263044298,
0.1700823307,
0.0083505074,
0.1928050667,
0.3605599701,
-0.0489435643,
-0.3714995384,
-0.2259424329,
-0.0528009534,
-0.0827039704,
0.3465655446,
-0.2169739753,
0.0431170538,
0.1682090461,
-0.1101051271,
-0.0678090528,
-0.0234708451,
-0.2826138139,
-0.1039945483,
0.2303594798,
-0.0313927084,
-0.0792729333,
0.1958859712,
0.0613818765,
0.3434625864,
0.0009839572,
0.2596990764,
0.087442942,
-0.0194611214,
0.0819291323,
0.1264110953,
0.1152312309,
0.1161386967,
-0.0388716348,
-0.2807233036,
-0.1271611899,
-0.0238105319,
-0.025351122,
0.3009960353,
-0.1114903241,
-0.0929966643,
-0.4669119418,
0.1423486322,
0.1914149672,
0.1634112746,
0.0115317432,
-0.0426533781,
0.1352909952,
0.344422847,
0.0088967187,
-0.6847137809,
-0.0675042048,
0.1736075133,
0.0209340584,
-0.1076222733,
-0.0012278504,
-0.4774571061,
0.036844369,
-0.0020239381,
-0.0172327049,
-0.2136153132,
0.104287602,
0.0255871862,
0.2290693969,
-0.0791653246,
0.0066936994,
0.1148321107,
0.248920396,
-0.1500469148,
0.1294597685,
-0.402964443,
-0.0795957595,
0.3129900992,
-0.2300514281,
0.0742010325,
0.1916969717,
-0.0439085849,
0.2274302989,
-0.0690703541,
-0.1235838979,
0.06531661,
-0.0522515252,
0.00895207,
0.5287426114,
0.1569639593,
-0.0210095178,
-0.0435689762,
-0.0112621086,
-0.1743115038,
-0.1910107583,
-0.0618027262,
0.0024227372,
0.2551752329,
0.0011205367,
-0.0146849174,
0.0184635334,
-0.3101027906,
-0.174723953,
-0.3459264934,
0.2098681778,
0.0033630852,
-0.2649258375,
-0.1162272394,
0.1137508526,
0.138500914,
-0.1187483445,
0.4296661317,
0.1253477931,
0.195764944,
0.045907367,
0.0943779796,
-0.045626536,
0.1868712455,
0.0879960507,
0.045032572,
0.0660444945,
0.0409798361,
-0.1049305946,
-0.2854746282,
0.150599435,
-0.1932395846,
0.2039228827,
0.2462192029,
-0.0559260547,
-0.0440676771,
-0.1102958545,
-0.0094900988,
-0.1574670821,
0.0320288427,
0.3289687335,
0.1058954746,
0.2635231614,
0.4555968642,
0.3814670444,
0.2769704461,
0.1282117218,
-0.2218066305,
0.4917276502,
0.2261066586,
0.2155487984,
0.0987667367,
-0.1463599056,
0.3802173734,
0.4052406847,
0.1994756013,
0.0747833773,
0.2466496974,
0.4022906125,
0.3567190766,
0.4274442196,
-0.0589063987,
0.1925160438,
-0.5156712532,
0.0274080373,
0.1548265219,
-0.0806978643,
0.0456086174,
0.1194174737,
0.2797238827,
-0.5002765656,
-0.1349912137,
-0.2369684726,
-0.1610697955,
-0.0834137946,
-0.3425094485,
-0.0503798984,
-0.0827669725,
-0.2414560616,
0.0232106652,
-0.1896063834,
-0.2008663267,
0.202777192,
-0.1356224865,
0.2215154618,
-0.0626321435,
-0.1490357965,
0.2326160818,
-0.1483922452,
-0.150953263,
0.3486498892,
-0.5462235808,
0.0526322536,
0.1990115047,
0.3418711126,
0.3917397261,
0.3730883002,
0.0622666217,
-0.251126796,
0.1511781663,
0.0322659537,
-0.2045392245,
0.1231364086,
0.4545446932,
-0.0257383715,
0.3601790667,
0.0834038854,
-0.0871941745,
0.0170115493,
0.1199713796,
-0.0551813394,
-0.3951904178,
0.2881289721,
-0.0877289921,
0.1066806912,
0.0497437045,
0.2013333738,
-0.5093897581,
0.2851923704,
0.1834151745,
0.0092076156,
0.0748610869,
-0.1200309619,
0.0115831867,
-0.1305599809,
0.6386971474,
0.2398785502,
0.4619357586,
-0.2891972959,
-0.1900739372,
-0.7429808378,
0.0833728984,
-0.186205864,
-0.0205534156,
0.15572837,
-0.1198330894,
0.1317611784,
0.303211987,
-0.2857263386,
0.8249192238,
0.0994754508,
-0.3034419119,
-0.2338259369,
-0.2445174903,
-0.0684638545,
-0.2900050282,
-0.1076961011,
-0.5415430069,
-0.2475465536,
-0.2017034441,
-0.1008102968,
-0.0254447646,
-0.139608264,
0.197648555,
0.2801487744,
0.444722563,
0.1520670205,
0.7404742241,
0.007793379,
0.1641881913,
0.0688156113,
-0.4169100225,
-0.1511934996,
0.0532520786,
-0.2265489995,
-0.0972031653,
-0.1434021294,
0.3322530687,
-0.0547997542,
0.0224725436,
0.132880643,
0.1327275932,
0.014693547,
-0.1066538319,
-0.2414737791,
-0.1502702534,
0.0459967144,
0.4398674369,
0.1370453089,
0.0483139791,
0.1230975986,
0.052300632,
0.3566414416,
-0.3256353736,
-0.1902868003,
-0.2003344744,
0.1451601833,
0.0799773037,
0.0199827459,
-0.3159399927,
-0.0165487733,
0.4208722711,
-0.2796033323,
-0.269628644,
0.166829139,
-0.1810708791,
-0.1116521433,
-0.1702020466,
-0.1608198732,
0.0220315568,
-0.429268688,
-0.2138601691,
-0.1999558508
] |
https://github.com/huggingface/datasets/issues/129 | [Feature request] Add Google Natural Question dataset | Still work in progress :)
The idea is to have the dataset already processed somewhere so that the user only have to download the processed files. I'm also doing it for wikipedia. | Would be great to have https://github.com/google-research-datasets/natural-questions as an alternative to SQuAD. | 32 | [Feature request] Add Google Natural Question dataset
Would be great to have https://github.com/google-research-datasets/natural-questions as an alternative to SQuAD.
Still work in progress :)
The idea is to have the dataset already processed somewhere so that the user only have to download the processed files. I'm also doing it for wikipedia. | [
-0.1264828146,
0.1183222458,
-0.2279913276,
-0.2916734815,
-0.0624215007,
0.2136780471,
0.2895943224,
0.1539699882,
-0.0013704619,
0.1868421286,
-0.0968557373,
0.3380505741,
-0.2951550484,
0.1478503644,
0.5057771206,
0.0203669127,
0.1696390659,
0.0553917214,
0.2871236205,
-0.0953791738,
-0.2698320746,
0.0765786171,
-0.1687618345,
-0.2782276273,
0.1056089699,
-0.1428770572,
-0.0722407252,
0.1143309921,
0.0274860207,
-0.4552848637,
-0.2237550467,
0.2545962036,
-0.1129965782,
0.2231184244,
-0.0001096427,
-0.2789278626,
0.222636193,
0.1123190299,
-0.3725147545,
-0.1047185212,
-0.0413000099,
-0.1243513823,
-0.0853373036,
0.0625226051,
-0.0817400292,
-0.1325051188,
0.3818159401,
-0.6124863625,
-0.0268361717,
0.3899210393,
0.1220781654,
-0.1998518854,
-0.190206632,
-0.1897235513,
0.3511376381,
0.460878253,
-0.2872080207,
0.1540663987,
0.3880570531,
0.0529772751,
0.2539666295,
-0.0058899806,
-0.0131474594,
-0.2195430547,
0.2016467005,
0.1184512675,
-0.2630251944,
-0.7430917621,
-0.0995848924,
0.2322647125,
0.6047318578,
-0.0574459881,
-0.1416893899,
-0.157946676,
0.1478343755,
0.1208297387,
-0.1835998148,
0.3654568195,
-0.3039936125,
0.0501605645,
-0.0627105609,
-0.6823120117,
-0.1605511606,
-0.0132765602,
0.3328064084,
0.0657696128,
0.1374446899,
-0.0156132495,
-0.0974983722,
0.0450186171,
0.2130231559,
-0.0901879743,
0.0328704193,
0.2595643699,
-0.3627636135,
-0.5124522448,
0.0899484977,
-0.1171925142,
0.3360567689,
0.3056876659,
0.0137719,
0.0356599614,
-0.0117772594,
-0.1386510283,
0.2288575917,
-0.4270023108,
0.3070000112,
-0.0288839899,
0.2250987142,
-0.2379026115,
0.0268371459,
0.0528689288,
0.1061939001,
-0.0000616127,
-0.0319908485,
0.0561248362,
0.5262046456,
-0.0002248145,
0.1605976224,
0.0187636632,
0.1277629733,
-0.1333842129,
-0.1766401976,
-0.0510193817,
0.0360507183,
-0.224682048,
-0.1994835436,
0.3086478412,
0.2672204971,
-0.4665066302,
0.0621694177,
-0.0965680107,
0.1323515922,
0.4155915678,
0.4051398635,
-0.2413121164,
0.1698972136,
0.0360415801,
-0.0391488895,
0.1876737624,
0.3271619678,
-0.1256583035,
-0.0916791335,
-0.1870538443,
-0.0007801767,
-0.213249445,
-0.1154735535,
0.0056675388,
-0.2466759235,
0.2631090283,
-0.1965471506,
-0.271458298,
-0.4861049652,
0.1716240644,
-0.0501409285,
-0.3752220571,
0.0850144327,
0.5833501816,
-0.2131749988,
-0.4421690404,
-0.0384580754,
0.3340290785,
-0.3543672562,
-0.1925548315,
-0.1020904556,
0.339412719,
-0.2921147048,
0.1228873208,
-0.2250702977,
0.1788441241,
-0.117910035,
-0.0456073657,
0.0647220239,
0.3149300814,
-0.0886254162,
0.0736360177,
0.4298564792,
-0.0873508453,
-0.1254734546,
0.0056468891,
-0.3732475638,
-0.1461571753,
-0.2327253073,
0.4704757631,
0.0164360646,
-0.0243042111,
0.1361234784,
0.6209532022,
-0.1872266531,
-0.0575591177,
-0.0665313527,
-0.2913664281,
0.2745901644,
0.4272628427,
-0.0473467186,
0.1423153281,
0.4425694942,
-0.4155983329,
-0.1925050914,
-0.0963219851,
-0.1358816326,
0.0439680927,
0.5920687318,
-0.0666087195,
0.0486058258,
-0.3970465958,
-0.6555461287,
0.0584425293,
-0.5253998041,
0.4157305658,
0.1717706621,
-0.3447128534,
-0.1906331629,
-0.1787099987,
-0.0554473363,
-0.0577211864,
0.1324526966,
0.0833627656,
-0.2101319581,
0.3074820936,
-0.2489637285,
-0.087537095,
-0.0911920071,
0.1868051589,
-0.0371297114,
0.2840295434,
0.019364519,
0.0078887362,
-0.0581406616,
0.1011119112,
0.0558955781,
0.1696423292,
0.161847949,
0.1474399716,
-0.266338855,
0.3004567921,
0.789297998,
-0.1025380343,
0.0999990031,
-0.4333243072,
-0.0779075027,
0.2329799533,
-0.0746342465,
-0.0570600219,
-0.5146203637,
-0.0429198332,
0.1678943187,
-0.1031113192,
-0.2638573647,
0.1069281325,
-0.0922851488,
-0.0043123369,
0.1987275332,
0.1549774259,
-0.2380851805,
0.3278707564,
0.2002806067,
-0.3042113483,
-0.1979807317,
0.282592386,
0.3525799513,
-0.0804719105,
0.2441766709,
0.1669813991,
-0.0494248532,
-0.2179889679,
0.3993864954,
-0.2034089416,
0.3370553255,
0.195210889,
0.1115920171,
0.2344421893,
0.0354742967,
0.03143996,
-0.0775912032,
0.0398466736,
0.0043040607,
-0.0123270787,
0.3985613286,
0.1814755499,
-0.196593076,
-0.0778733119,
0.0317702591,
0.0802362412,
-0.0097110178,
-0.1559301615,
0.0805395395,
0.0196419545,
0.1897777915,
0.3993787766,
-0.2257108241,
-0.2347691506,
0.3144592643,
-0.1198321357,
-0.1439291686,
0.0316771381,
0.0501621552,
0.8729275465,
-0.0273240674,
-0.5442194343,
-0.0153270904,
0.0397062898,
0.0890804157,
0.1639344245,
0.2189651132,
0.0372848809,
0.5934820771,
-0.1173359603,
0.2164491862,
-0.617813766,
-0.3918795288,
0.1022074968,
0.0896867737,
0.7107861042,
-0.1210798994,
0.1686469316,
-0.0542223379,
-0.0059999274,
-0.1753213406,
-0.1285114437,
-0.1234856769,
-0.3988274634,
0.1177425385,
0.1473961174,
-0.106814526,
-0.5827357173,
-0.2150993645,
-0.2387955487,
0.2752921879,
0.0514023155,
0.0896682963,
0.1455763876,
-0.0885476843,
-0.037075717,
0.095231764,
0.1224287897,
-0.1380491257,
0.0188017655,
0.1814914197,
-0.3380020857,
0.0206104442,
-0.014553776,
-0.0074493545,
-0.207956031,
0.1188183576,
-0.4295732975,
0.1003183722,
-0.0406880118,
0.5455445647,
-0.0113008954,
-0.1634618193,
0.4637940824,
0.0664936453,
-0.0375899114,
0.0745829418,
-0.2076437026,
0.0464943387,
0.4402963221,
0.0109204203,
0.3696686924,
0.1138626486,
0.0918769687,
0.777443707,
-0.0929285884,
0.1655036807,
0.1381971538,
-0.2433731407,
0.3671022356,
-0.0329845287,
-0.2301271409,
0.257126838,
0.039533712,
-0.0457947738,
0.2923859358,
0.3140206337,
-0.540517509,
-0.1084460616,
-0.0975291505,
-0.2241244465,
0.0787615702,
-0.0909119919,
0.0495342985,
0.1687608212,
-0.0146234538,
-0.3095277548,
-0.2697107494,
-0.4782190025,
0.0006554754,
0.1415157318,
0.3210873306,
-0.0214648303,
-0.799079299,
0.2610267699,
-0.2326616645,
0.2963691652,
0.358694911,
-0.168346718,
-0.2834873199,
-0.0251545906,
-0.0751444995,
0.1055548713,
0.0950825438,
-0.6820043325,
-0.3342577815,
-0.0939256921,
0.3469978571,
0.2276744992,
0.1512899399,
0.1537063271,
0.2113018632,
0.1694775373,
0.3991979659,
-0.1164275408,
0.0147710219,
0.4677458405,
0.2445377856,
0.0231523998,
-0.2225552201,
0.14109689,
-0.0984070227,
-0.0531165712,
0.0483176373,
0.089800097,
-0.0382600948,
0.0054522087,
-0.3349081278,
0.0222196281,
0.1141528934,
0.2640431523,
-0.0694897994,
-0.1289881468,
0.277702719,
-0.0161063131,
-0.0457966812,
-0.2402307689,
-0.2297031581,
0.3972445726,
-0.0402559154,
-0.1828675568,
0.0759656206,
-0.3203581572,
0.465218991,
0.2720452249,
0.2872103751,
0.1312910467,
0.0119019188,
-0.0484234281,
0.0305479653,
0.168113634,
0.1870983392,
-0.2057364881,
-0.266366601,
-0.3575919569,
0.3968105018,
0.0434701778,
-0.2392148077,
0.3576794863,
0.0763994381,
0.0213087238,
-0.2220415324,
0.1333398372,
0.8947167993,
-0.0358984284,
0.0528781563,
-0.0447073951,
-0.240279004,
0.5133489966,
-0.2384700179,
0.1108825877,
-0.2768152058,
-0.202858299,
0.0088016335,
-0.1200222671,
0.0389480814,
0.210342586,
-0.1931475401,
0.2788774073,
0.2045096755,
0.5296327472,
0.3737517297,
0.7291475534,
0.1295300275,
-0.0700048506,
0.4096056819,
0.1770170182,
-0.0639943704,
0.1121309847,
-0.1489972025,
-0.1916512549,
0.0413911156,
0.0596119836,
-0.3205525875,
0.1084134653,
0.0594032332,
-0.1732534766,
-0.0464013964,
-0.4129358232,
0.2577244639,
0.3421126902,
0.3003042638,
0.3664965928,
-0.2876016498,
-0.0446531549,
-0.0216339268,
0.1876137555,
0.0895210877,
-0.0286895223,
0.2355442047,
-0.2369134724,
-0.2917117774,
0.3072365522,
0.0121785365,
-0.541051507,
-0.7716209292,
0.1476326883,
-0.1288667321,
-0.2002551258,
0.0093945619,
0.1515381783,
0.0769799948,
-0.2013295144,
0.1030309796,
-0.0029129619,
0.2968447804,
-0.1928765923,
0.2775413692,
0.0477331653,
-0.216756314,
-0.2681978941,
0.1629426479,
-0.470015794,
0.1171532199,
-0.0344330445,
-0.0447845608,
-0.327724278,
0.0771814138,
-0.3348858654,
-0.1297086328,
-0.0249945391,
-0.2824252546,
-0.1224711537,
-0.1122541949,
-0.2110598087,
-0.1402383298,
-0.0135643119,
0.1458728909,
-0.0593236871,
-0.0550621301,
-0.0300885271,
-0.231118381,
0.2259328514,
0.1825268567,
-0.3293654621,
0.1830654144,
0.0149291726,
-0.3160926104,
0.0486818291,
-0.1452115625,
-0.0063240132,
-0.0528490059,
0.042739708,
-0.21278207,
-0.2501590848,
-0.0078135617,
-0.4964263439,
-0.0221403372,
-0.1543387622,
0.1246523932,
0.1322606802,
0.0031426728,
0.1324241906,
-0.1171661094,
-0.2033441961,
-0.0442001745,
0.1001463309,
-0.0077484278,
-0.2282253057,
-0.0361073725,
0.1218542755,
0.177794531,
-0.0034433722,
0.0384112932,
0.4273821414,
-0.0316996723,
0.0171849746,
-0.0129490914,
0.2087150216,
0.0780418143,
-0.0089410944,
-0.1340423375,
0.2957901657,
0.4136580229,
0.1380590498,
0.1150139347,
-0.2549239993,
-0.1582357138,
0.0589899421,
-0.1757806987,
-0.1221648753,
-0.3631981015,
0.3854269981,
0.2200688273,
0.1688581556,
-0.1993879676,
-0.1094223037,
0.4071271122,
-0.0431786142,
0.0932109728,
0.2248275727,
0.1803924143,
0.0600447692,
0.5306476951,
0.142516613,
0.2679506838,
-0.0027294881,
0.281570673,
-0.2442649454,
-0.0057951459,
-0.0698049143,
0.1937904358,
0.0935270786,
-0.2080991119,
0.065886721,
0.0137775587,
-0.0094903214,
0.1928472966,
-0.0599223003,
0.4543340802,
0.2252909243,
0.2847164869,
0.2496799827,
0.1088790074,
0.1621688604,
0.4742130637,
0.5453694463,
-0.1347165406,
-0.2987949252,
-0.1159653813,
0.2142251432,
0.0841615275,
0.2528364956,
-0.1838057041,
-0.1715759486,
0.1785867363,
0.0249803681,
0.0176924206,
-0.5543305874,
-0.27133587,
-0.0649454147,
-0.0385675132,
0.3036854267,
0.5384796262,
0.2075598389,
0.096176371,
-0.0577883199,
-0.1321078688,
-0.3161457181,
0.0671726391,
0.1705610752,
0.2660113871,
-0.2431787997,
0.2275884002,
-0.4661040604,
-0.0193290301,
-0.1350450069,
-0.0441152789,
0.1105106324,
-0.0269774683,
0.0380790234,
-0.1401669085,
0.2725397646,
0.1590076089,
-0.0692600086,
0.2817727029,
0.1698112786,
0.0800342187,
-0.4773032665,
-0.0394716635,
-0.0188469086,
-0.2353260964,
0.1025565341,
-0.0457150862,
-0.0405278876,
-0.1752205342,
0.2825730741,
-0.0891312286,
-0.0471124984,
-0.0324287005,
0.1031922847,
-0.025537869,
-0.1508352011,
0.2183916867,
0.2567393184,
0.0751331821,
-0.1158792824,
-0.4217971563,
0.0160842445,
0.1543068737,
0.0546209402,
0.1882623434,
-0.020369444,
0.0373380519,
0.4303064942,
-0.1522465199,
-0.2357444465,
-0.3084613681,
-0.0191211514,
-0.4197780788,
-0.0007805114,
-0.3621886075,
0.24396649,
-0.0121728648,
-0.1025443003,
0.1342565268,
-0.1396339983,
-0.0383386388,
-0.0095762443,
-0.0967921913,
-0.082181409,
-0.1409670115,
0.3854475617,
-0.0765446573,
0.4136481285,
-0.144494921,
-0.1302660406,
-0.0255282242,
-0.157926783,
-0.1202983558,
-0.0604782514,
0.0392655581,
0.2337162793,
-0.1245403886,
-0.1382562071,
0.2238859832,
0.4119001925,
0.2467156947,
0.2627677917,
-0.2406848967,
-0.0000553666,
0.066013664,
0.1587696671,
-0.0062567703,
-0.1299205869,
-0.1807848215,
-0.1478938609,
-0.0897653624,
0.0770089403,
0.3406491578,
0.00479247,
-0.219323203,
-0.1407267004,
0.0838684812,
0.2768308222,
0.0240297541,
-0.009143129,
-0.3159789443,
0.35544312,
0.0442925319,
0.2519074976,
0.3673365712,
-0.1636930108,
0.0251701549,
-0.1388675272,
-0.2067333013,
-0.0635091066,
-0.0509291589,
-0.3128146827,
-0.3202609122
] |
https://github.com/huggingface/datasets/issues/129 | [Feature request] Add Google Natural Question dataset | Super appreciate your hard work !!
I'll cross my fingers and hope easily loadable wikipedia dataset will come soon. | Would be great to have https://github.com/google-research-datasets/natural-questions as an alternative to SQuAD. | 19 | [Feature request] Add Google Natural Question dataset
Would be great to have https://github.com/google-research-datasets/natural-questions as an alternative to SQuAD.
Super appreciate your hard work !!
I'll cross my fingers and hope easily loadable wikipedia dataset will come soon. | [
-0.2017223835,
0.125656113,
-0.2436525077,
-0.1397189796,
-0.0242803134,
0.1866628677,
0.3122389615,
0.2764436305,
0.2076870054,
0.1970581859,
-0.171297729,
0.4047229588,
-0.2165551484,
0.0521144792,
0.4223890007,
-0.0738181099,
0.0963117182,
0.0344125703,
0.1412131041,
-0.0688865259,
-0.2413298041,
0.1189087406,
-0.2048508078,
-0.3114300668,
0.1137435734,
-0.0265879724,
0.0056279227,
0.1296855658,
-0.0191481933,
-0.4647489786,
-0.1019497141,
0.2669219375,
-0.0335930921,
0.058936201,
-0.0001016455,
-0.3032362759,
0.4032798409,
0.077984117,
-0.516882062,
-0.0655965805,
-0.0521264113,
-0.1856775731,
0.0872990489,
-0.0902727768,
-0.0940551609,
-0.0729103163,
0.3084502816,
-0.4208052158,
-0.0311200675,
0.1934426278,
0.216304943,
-0.2274320275,
-0.0540455617,
-0.2763383985,
0.4652508795,
0.2870283425,
-0.2524530292,
0.1178006828,
0.2060125768,
-0.1705204248,
0.0489435866,
0.138665989,
-0.1220482737,
-0.1587687731,
0.2546661794,
0.0132164555,
-0.2298582643,
-0.6946883798,
0.0819797888,
0.3509276211,
0.6737276316,
-0.0681869611,
0.0174818933,
-0.0835055411,
0.0691687986,
0.3169356287,
-0.0121148881,
0.2640858591,
-0.2805956006,
-0.0260664783,
0.0806756094,
-0.5248840451,
-0.135351941,
0.0794723853,
0.1235965565,
0.2329440564,
0.0704729781,
-0.0491512455,
0.07046251,
-0.1361279786,
0.1218798012,
-0.0182032622,
0.0354021043,
0.2897123396,
-0.2823016644,
-0.3730688393,
0.1729205698,
-0.0806742311,
0.433446914,
0.14347969,
-0.1820994318,
0.0895424485,
0.0697137192,
-0.1381903738,
0.3977140784,
-0.4390158355,
0.2682746649,
0.0185328275,
0.3492512405,
-0.1019775569,
-0.0591323487,
0.1783822626,
0.0601322018,
-0.0503686294,
-0.0196789764,
0.0031636916,
0.4461961985,
-0.1417483538,
0.066461876,
0.0695008934,
0.099648349,
-0.2425523996,
-0.2930368781,
0.1231224909,
-0.0758644342,
-0.1061743945,
-0.1502656043,
0.1875164807,
0.0976302177,
-0.3231854737,
0.0109539675,
-0.0869040862,
0.0609171279,
0.331310451,
0.3955783248,
-0.2209328264,
0.1768433899,
-0.0045005539,
0.0399463512,
0.1234161332,
0.1304861009,
-0.0674802884,
-0.0571335666,
-0.0708311275,
0.1281125247,
-0.1609140038,
-0.0249506868,
-0.2242382765,
-0.2743984759,
0.260912329,
-0.172043696,
-0.2196111828,
-0.4405389428,
0.2128854543,
-0.0390663631,
-0.2638795972,
0.0377217606,
0.6213995218,
-0.2066449374,
-0.3917209506,
-0.0943401828,
0.3771166205,
-0.2746259868,
-0.1994200647,
0.0378395431,
0.3590113223,
-0.2019738555,
0.0762340575,
0.0023042744,
0.2200213671,
-0.1345560998,
-0.0042749369,
-0.0283834748,
0.19910492,
-0.0155626805,
0.0061413851,
0.3151330352,
-0.116455853,
-0.1977727264,
0.0492178835,
-0.1604312062,
-0.1088205352,
-0.298830539,
0.3654626012,
0.205001086,
0.0367247462,
0.1548395157,
0.6484240294,
-0.0959140658,
0.0700784177,
-0.1999339163,
-0.346796602,
0.2524615824,
0.4127126336,
0.1526069492,
0.0555255674,
0.4181651771,
0.0242203455,
-0.0879716873,
-0.0933703855,
-0.1246290058,
0.1427961737,
0.4049690068,
-0.0752712116,
0.1650158316,
-0.2869382501,
-0.7554089427,
0.007073361,
-0.3759454489,
0.4506389797,
0.1198990792,
-0.3328284323,
-0.2033617646,
-0.1555900276,
-0.0963465869,
-0.017371092,
0.2725462615,
-0.0232197065,
-0.2063341737,
0.3823436499,
-0.0413551964,
-0.2588642538,
-0.0988851264,
0.0557650663,
-0.0398644432,
0.3208879232,
-0.0731616169,
0.0140762562,
0.0993167385,
0.1940566152,
0.1240269393,
0.1539311707,
0.0964251459,
0.0013574881,
-0.1384820789,
0.2336904556,
0.6280087233,
-0.1288904399,
0.1499204487,
-0.4823335111,
-0.0783836842,
0.2492703795,
-0.1126050651,
-0.1443093121,
-0.5968994498,
0.0453749821,
0.1952259094,
-0.0277761687,
-0.2514407039,
0.157611534,
0.0838196874,
-0.0013671698,
0.1719455123,
0.0266573839,
-0.275231868,
0.3787716627,
0.09277758,
-0.2781858444,
-0.2066000104,
0.3358211517,
0.3354868889,
-0.0571715534,
0.2678934038,
0.2196597308,
-0.1162183732,
-0.3279957473,
0.3910806775,
-0.3272390366,
0.0438270234,
0.2073225826,
0.1478291005,
0.1060358584,
-0.0045650206,
-0.0442676544,
-0.0006881882,
0.0218429267,
0.1484498829,
0.0149372974,
0.348983258,
0.178684935,
-0.3392164707,
-0.0444475785,
-0.0846967921,
0.1069921777,
-0.0341459922,
-0.1682207584,
0.1050998867,
-0.014314726,
0.3418890238,
0.3167032599,
-0.2188689113,
-0.3700166047,
0.2243958116,
-0.0030725955,
-0.0534686446,
0.0210658107,
0.1321426779,
0.7668566108,
0.0815998316,
-0.2681780457,
0.0104915984,
-0.3074513674,
0.0731092617,
0.2322457433,
0.3219349384,
-0.0507352948,
0.4783684313,
-0.012726699,
0.1537483186,
-0.5923330188,
-0.4827511013,
0.1192220896,
0.1201201379,
0.5215229392,
-0.0767152011,
0.2746659219,
-0.1981056333,
-0.0962232649,
-0.1624540091,
-0.1311425418,
-0.049970571,
-0.2253643423,
-0.0815585852,
0.1146077886,
-0.0186095219,
-0.5942139626,
-0.1366323531,
-0.2467778027,
0.2635305822,
0.1249778643,
0.0920456499,
0.202957809,
-0.0379217565,
-0.0611100085,
0.1131452024,
0.1624170095,
-0.2250623256,
0.0724947676,
0.2097477466,
-0.3217256069,
-0.1396625787,
-0.0905294791,
-0.0590846501,
-0.1587044746,
0.037507847,
-0.5024469495,
0.1750741005,
0.0547255799,
0.5136930943,
0.0465578139,
-0.0670346394,
0.2833910584,
0.1509446204,
-0.14493002,
0.1244262159,
-0.0931254849,
-0.0735590979,
0.3112140894,
-0.0499765538,
0.3407295346,
0.0626764148,
0.1072977632,
0.86264956,
0.0262242854,
0.2461061627,
0.0816388503,
-0.148622483,
0.2170802057,
-0.0418422483,
-0.1956439614,
0.2293416709,
-0.0688148886,
0.0712458566,
0.3811710775,
0.3485943675,
-0.7127806544,
-0.1322437674,
0.0294275824,
-0.1491145194,
-0.0603664741,
0.077801764,
0.0541736484,
0.0699848905,
0.0360004902,
-0.1101414636,
-0.2480120063,
-0.5357372761,
0.1295742989,
0.0482936166,
0.1851277649,
-0.0859132931,
-0.5935698748,
0.1470864117,
-0.3421042562,
0.1983749419,
0.2628054023,
-0.2051068693,
-0.2329393327,
-0.0915079787,
-0.043025218,
0.1226266772,
-0.0472905114,
-0.5968508124,
-0.1789012849,
0.0909115523,
0.3216103911,
0.0200853422,
0.1138467342,
-0.0045612594,
0.1625007987,
0.2883405089,
0.2708816826,
-0.2645640075,
-0.0858377293,
0.4172808528,
0.1865869015,
-0.0441890657,
-0.2176686376,
0.1468116641,
-0.0735189319,
-0.1281826794,
0.0271380097,
0.0516685396,
0.0792042837,
-0.0753627941,
-0.2486678064,
-0.0119475294,
0.2135809809,
0.0522740707,
0.0291559193,
0.008177395,
0.4452055693,
-0.0595231727,
0.059198793,
-0.1756770611,
-0.2734087408,
0.3783250153,
-0.1988497078,
-0.1228885055,
0.0863264054,
-0.3101260662,
0.1966830641,
0.280585587,
0.2280436307,
0.0192760117,
-0.0044817114,
-0.068099387,
-0.0929079652,
0.0332277603,
0.0595761761,
-0.2315209061,
-0.1461090446,
-0.4073536396,
0.5744867921,
-0.0246707853,
-0.2062193751,
0.4350852966,
0.1027261168,
-0.0777832866,
-0.0194738805,
0.2194955498,
0.8299011588,
-0.1335150301,
-0.0075182565,
0.0636938736,
-0.0539617762,
0.4576729834,
-0.2505891323,
0.0735538527,
-0.4168210924,
-0.0084921345,
0.0456063226,
0.0198428351,
-0.1410610974,
0.1322646588,
-0.316958189,
0.2361896038,
0.1621439159,
0.4432865977,
0.2552443147,
0.6676920652,
0.242491588,
-0.1550121605,
0.1867096871,
0.2357004732,
-0.0828566775,
0.1624565721,
-0.1243337542,
-0.1255700588,
0.1676033586,
0.0658546984,
-0.3938298523,
0.1224130467,
0.104501754,
0.1199978366,
-0.0506297834,
-0.442189455,
0.1672288477,
0.3943254352,
0.1877705753,
0.2768916786,
-0.3447802067,
-0.1187878475,
-0.0482080281,
0.0517186522,
0.0695093125,
0.0050470307,
0.3263138235,
-0.2268957049,
-0.2697198987,
0.2798437774,
-0.0280682202,
-0.3937921226,
-0.7479724288,
0.1891155243,
-0.1511423737,
-0.2068120837,
0.0146404458,
0.0870556533,
-0.0576681532,
-0.2293116003,
0.1886187345,
-0.0282723513,
0.3348194957,
-0.0941610783,
0.5585499406,
0.0249893162,
-0.1245562732,
-0.0176534392,
0.2369758487,
-0.306542486,
0.0392977484,
0.1258614212,
-0.2271725833,
-0.3767748773,
0.0916153565,
-0.3147225976,
-0.1326135546,
-0.0033262495,
-0.2733911574,
-0.0575553291,
-0.0747800469,
-0.0820465833,
-0.1083170623,
-0.0323699787,
0.1667632759,
-0.0741986632,
0.0460745618,
0.1443844736,
-0.3038457632,
0.1990855187,
0.269833982,
-0.4061631858,
0.145499751,
0.101582475,
-0.3921448886,
0.097048834,
-0.1440386474,
0.0267850906,
-0.0550876074,
-0.0830565244,
-0.262512356,
-0.1238800809,
0.0842672288,
-0.5643659234,
-0.0247325394,
-0.2464052439,
0.1013983414,
0.0770659521,
-0.0061126314,
0.1267726719,
-0.2499564588,
-0.2763822675,
-0.0238529611,
-0.0266977847,
0.1340636611,
-0.2562165856,
-0.0630079359,
0.1146489903,
0.0420221388,
0.1150593758,
0.0218586288,
0.3890402019,
-0.0226264857,
0.082187362,
0.0305916369,
0.1802601516,
0.0513877049,
-0.0341732316,
-0.1873385757,
0.4169665277,
0.319512248,
0.0212560166,
0.150674969,
-0.2277189493,
-0.1770613492,
0.1769989282,
-0.2267285287,
-0.0846477821,
-0.3461988866,
0.2979512215,
0.0658283457,
0.2433161587,
-0.1541793942,
-0.1555652469,
0.2816893458,
-0.0220124237,
0.1283847541,
0.1932568103,
0.2165100574,
-0.2247623354,
0.461283505,
0.1914697737,
0.1502158195,
-0.0829281732,
0.1770391762,
-0.3337227404,
0.0258025415,
-0.1233357042,
0.0699182749,
0.1436952651,
-0.1244453713,
0.0552731082,
0.1204428747,
-0.0291241743,
0.1607770771,
0.0560956299,
0.3877537549,
0.1583574563,
0.3579882979,
0.2694164813,
-0.0543299802,
-0.0004017455,
0.3794998527,
0.4973190427,
-0.0085078552,
-0.2578887343,
-0.1455723643,
0.1235435605,
-0.0840486288,
0.134350583,
-0.1973330677,
-0.2540833056,
0.2803652883,
0.0516728051,
-0.0954667777,
-0.5176733136,
-0.1210093349,
0.0048649036,
0.0199108273,
0.0933805406,
0.5804944038,
0.2324517667,
0.1397991031,
-0.0496820994,
-0.068987608,
-0.2643328011,
0.1004766449,
0.0505644046,
0.2765887976,
-0.1153286397,
0.2246718854,
-0.5835822225,
-0.0967258886,
-0.0239767823,
-0.1582597494,
0.0730104372,
-0.1432617456,
0.0423462316,
-0.2617450058,
0.3171429038,
0.2427725941,
-0.1557133198,
0.1199159026,
0.3222716153,
0.0269384906,
-0.1829209328,
-0.3265076578,
0.0956235006,
-0.1970596462,
0.1611656845,
-0.0911293253,
-0.136139676,
-0.1043127999,
0.2041633576,
0.0825362876,
0.068239063,
-0.1296534836,
0.1413918436,
0.1740397215,
0.0687722042,
0.1836818904,
0.1966718733,
0.0824553892,
-0.1812617332,
-0.4225732684,
0.0702465922,
0.0128514487,
0.056525737,
0.3268132508,
0.1963737905,
0.0592327826,
0.4628650546,
-0.2050183117,
-0.3977901042,
-0.0790098161,
-0.0306948628,
-0.5302980542,
-0.0237282366,
-0.0909197256,
0.1974271387,
-0.1180872321,
-0.0832889751,
0.1738405675,
-0.1959286034,
0.0899704546,
-0.2011752725,
0.008213317,
-0.0598204546,
0.0493351817,
0.258613497,
-0.163077876,
0.420611918,
-0.170748964,
-0.2628891766,
-0.0634047315,
-0.2587563396,
0.0949070752,
-0.0358781926,
0.0971379578,
0.2370990068,
0.0201055817,
-0.277177453,
0.2679743469,
0.3956776559,
0.1753612161,
0.3635543585,
-0.3275950551,
0.0337467976,
0.1932551563,
0.1581034362,
-0.183208555,
-0.0189898554,
-0.2257446796,
-0.1279948503,
-0.0483814292,
-0.1600065976,
0.1892320961,
-0.0581818558,
-0.2753031254,
-0.1643753499,
0.0284316018,
0.163392812,
0.1353292167,
-0.0095462417,
-0.1871438771,
0.2839348912,
-0.0327427574,
0.029129453,
0.3169106245,
0.0377592221,
0.084267661,
-0.3207292259,
-0.3377171457,
0.0936820731,
-0.0635254309,
-0.4468117356,
-0.3785191178
] |
https://github.com/huggingface/datasets/issues/129 | [Feature request] Add Google Natural Question dataset | Quick update on NQ: due to some limitations I met using apache beam + parquet I was not able to use the dataset in a nested parquet structure in python to convert it to our Apache Arrow format yet.
However we had planned to change this conversion step anyways so we'll make just sure that it enables to process and convert the NQ dataset to arrow. | Would be great to have https://github.com/google-research-datasets/natural-questions as an alternative to SQuAD. | 66 | [Feature request] Add Google Natural Question dataset
Would be great to have https://github.com/google-research-datasets/natural-questions as an alternative to SQuAD.
Quick update on NQ: due to some limitations I met using apache beam + parquet I was not able to use the dataset in a nested parquet structure in python to convert it to our Apache Arrow format yet.
However we had planned to change this conversion step anyways so we'll make just sure that it enables to process and convert the NQ dataset to arrow. | [
-0.2953701317,
0.2493466586,
-0.2129655033,
-0.2288989574,
-0.2177683264,
-0.0077631567,
0.1600125134,
0.2642011344,
0.0725729913,
0.2330665737,
-0.1219621673,
0.4617760479,
-0.3594292998,
0.3047492504,
0.6277963519,
-0.1398962885,
0.1091499552,
0.1171830446,
0.1310337484,
0.0052733212,
-0.317882359,
0.2159188986,
-0.2996281087,
-0.1805972606,
0.3880343139,
-0.2200264335,
-0.0794762745,
0.0181823,
-0.0265260935,
-0.5745173693,
-0.3112953901,
0.047309462,
0.0476760641,
0.0400438979,
-0.0001121784,
-0.2186171561,
0.1742672026,
0.0672691241,
-0.4605726898,
0.0060873036,
-0.0046945768,
-0.2376578599,
0.1306653321,
0.1122266576,
-0.2582047284,
-0.474896431,
0.3113419712,
-0.5965598822,
0.1519039124,
0.5919365883,
0.1091721803,
0.0871777758,
-0.1037188098,
-0.0694532245,
0.3513968587,
0.0548788384,
-0.3796563148,
0.0306327529,
0.2878673375,
0.0260601752,
0.0931190625,
0.0747286752,
0.1412569433,
-0.2341369689,
0.0540359281,
0.1074217632,
-0.2296620905,
-0.588848114,
-0.196265161,
0.2286001295,
0.5203669071,
-0.133505404,
-0.1554475129,
-0.1241945922,
0.1033762246,
0.0856696293,
-0.2679817677,
0.4884106517,
-0.3231520355,
0.1151643246,
0.0538653098,
-0.5424548984,
-0.2480219454,
-0.001397317,
0.2195855081,
0.2661553919,
0.1762824655,
0.0917406827,
-0.1932391226,
-0.1051127464,
0.3093808293,
0.1191861033,
0.0989953056,
0.1564708501,
-0.539349556,
-0.4150443673,
-0.0024331964,
-0.1480291635,
0.2973624468,
0.386184603,
0.1967418492,
0.0959155485,
0.1803382039,
-0.0841744468,
0.2228100151,
-0.422526747,
0.3411366045,
0.057457421,
0.0475357845,
-0.2187977433,
0.0957732499,
0.0870955139,
0.0985736921,
-0.1406968236,
-0.1046524569,
0.0877153054,
0.4028622508,
0.1496584862,
0.0862814561,
0.0376029871,
-0.0851919204,
-0.0380428433,
-0.19588615,
0.1254627556,
0.0850968659,
-0.195589751,
-0.1212322861,
0.4383507073,
0.159933269,
-0.5843248963,
0.0355459861,
0.0209727362,
0.113696605,
0.2827500105,
0.3090484142,
0.0690913945,
0.0580868311,
-0.0036550118,
0.2363467813,
0.2372780591,
0.2920582891,
0.168034777,
0.0874804258,
-0.1461004168,
-0.0065882332,
-0.3226617575,
-0.0357297398,
0.0072312024,
-0.2910199463,
0.2138698399,
-0.2787837088,
-0.2301322967,
-0.4146446288,
0.0961110741,
0.0838128179,
-0.3740873337,
0.0682297423,
0.4454981685,
-0.325989902,
-0.3123781085,
-0.0269229524,
0.1304175407,
-0.2292337418,
-0.2364095747,
-0.0510752797,
0.2156181037,
-0.3670800328,
0.0269612409,
-0.1518087387,
0.2874580026,
-0.1973644048,
0.087819986,
0.0525867008,
0.1360738277,
-0.1900932491,
0.0223348886,
0.6011226773,
-0.2211755365,
-0.0514518917,
0.0367666893,
-0.2813920379,
-0.1744875908,
-0.3171967566,
0.3433484435,
0.1696348488,
0.0938419104,
0.0310204215,
0.6536280513,
-0.0924193934,
-0.0391358435,
-0.0390107855,
-0.2272119224,
0.1995580345,
0.4691125453,
-0.173594594,
0.0021729774,
0.3657010794,
-0.554209888,
-0.0867783725,
-0.1103411242,
-0.0544897057,
-0.0242102128,
0.4067527354,
-0.2000360489,
0.1616886854,
-0.2515702248,
-0.7552247643,
0.0615145788,
-0.7966165543,
0.4462404251,
-0.0178985316,
-0.1940712631,
-0.257864058,
0.0020974139,
-0.1257832944,
-0.1862556487,
0.1563041061,
-0.0292649865,
-0.2549139857,
0.2231777906,
-0.2163217664,
0.0227223411,
0.1051912531,
0.2016457617,
-0.1075951234,
0.2680727541,
-0.0149882203,
-0.0398050211,
0.1759323776,
0.1753743142,
0.120135352,
0.1826215237,
0.2836144567,
0.1856958568,
-0.2828621566,
0.2047652006,
0.5085206032,
-0.1221346185,
0.0383014344,
-0.5743352771,
-0.007763654,
0.3941747546,
-0.2608613074,
-0.0196069404,
-0.3717058897,
0.3392559588,
0.2843260467,
0.106869638,
-0.3091539145,
0.2991067767,
-0.0987703726,
0.0346748456,
-0.047897011,
0.1723693758,
-0.2749814689,
0.3048973978,
0.1159952879,
-0.3796657026,
-0.2862069011,
0.2668561935,
0.3423601985,
-0.0679126084,
0.351267606,
0.0810951144,
-0.0843965933,
-0.1377172321,
0.4772306979,
-0.1296390146,
0.1275275052,
0.207084164,
0.1430482268,
0.2882403731,
0.0135388356,
-0.0293025561,
-0.0542868711,
-0.0626637414,
0.093021825,
-0.0140053704,
0.5086835623,
0.1663034111,
-0.2894743383,
-0.086659804,
-0.1338920146,
-0.0666267574,
-0.1769341975,
0.018287167,
-0.0329754353,
0.1535912305,
0.0673317015,
0.4362243414,
-0.2621744871,
-0.3076348007,
0.4359920919,
-0.2957399487,
-0.1318916976,
0.1456818432,
0.129908666,
0.7573102117,
0.1741634458,
-0.5157594085,
-0.1659682244,
-0.0387544259,
0.0553569347,
0.1897802502,
0.0895483866,
0.0912858173,
0.5234965086,
0.0052644247,
0.3065761924,
-0.5940281749,
-0.3140815198,
0.1414430737,
0.0698327944,
0.6522311568,
0.0418389253,
0.1898487955,
-0.2482079864,
0.0367496423,
-0.139464274,
-0.1734528393,
-0.2007226497,
-0.1394866705,
-0.0364917517,
0.3687528074,
0.0009651943,
-0.7123110294,
-0.3366532028,
-0.3728920221,
0.2275633961,
0.1590357572,
0.1532225162,
0.0394757167,
-0.1863055229,
-0.0669424459,
-0.0216843393,
0.0722762048,
0.0361985303,
0.221810624,
0.3625459373,
-0.4247933328,
-0.0341425985,
-0.0311214458,
-0.2124652416,
0.0582346544,
0.2095235288,
-0.3300026953,
0.2758334577,
0.0560238287,
0.4175789356,
0.0385386124,
-0.1555836052,
0.4633901715,
0.0285182204,
-0.0280736517,
0.0548764318,
0.0071406225,
-0.000317465,
0.4249235988,
0.0339548029,
0.4035646617,
0.171717301,
0.0728461593,
0.8291464448,
-0.1018854454,
0.2454565167,
0.1981821954,
-0.3811303973,
0.1926145703,
-0.094975017,
0.0792263895,
0.159558937,
0.0482382663,
0.0363799967,
0.2618751526,
0.2772429883,
-0.2642030418,
-0.0219518784,
-0.0085883243,
-0.2737037539,
-0.0691513345,
0.0772754923,
-0.1758166552,
0.208435908,
-0.0571992211,
-0.3028358519,
-0.0077575706,
-0.3353803754,
0.0962580889,
-0.0371428877,
0.2221386284,
-0.0566496663,
-0.520175457,
0.2741070092,
-0.2561058104,
0.3044740558,
0.1520832032,
0.0187372994,
-0.0972887501,
-0.1100973636,
0.0510126613,
0.0260028299,
0.2799515128,
-0.585088551,
-0.2880300581,
-0.0004768333,
0.2919865549,
-0.1805933416,
0.1485686451,
-0.1216203496,
-0.1709076762,
-0.0084622689,
0.2437309325,
-0.2748575211,
0.025614351,
0.2547241449,
0.1436052173,
-0.0830470845,
-0.0870348141,
0.0610058494,
0.0038118472,
-0.0679193735,
0.0861342251,
0.1751765758,
0.0368138328,
0.0221581068,
-0.3207512498,
-0.1898105592,
0.0385236256,
0.0654066429,
-0.0426951274,
0.1252104193,
0.0773342624,
-0.119738251,
-0.0457899384,
-0.1115373224,
-0.2641517222,
0.3890095651,
0.0105826976,
-0.1641116142,
0.0933909193,
-0.0709336251,
0.5043095946,
0.2509231567,
0.2337358743,
0.0052512302,
-0.109580256,
0.0317119248,
0.0412798747,
-0.0287784468,
0.0354562476,
-0.3161976635,
-0.1466637701,
-0.2415973246,
0.6507228017,
0.0372222736,
-0.2402263582,
0.2970204651,
0.4208498895,
0.0302588046,
0.1934561133,
0.2243906707,
0.8491643071,
-0.1841994524,
0.2300494015,
0.3015238643,
-0.5155705214,
0.4732293189,
-0.2944481671,
0.0363535248,
-0.512824297,
0.0509697571,
0.0217956509,
-0.2157736719,
0.0110963108,
0.3124728501,
-0.3961856067,
0.3208964169,
0.3178908229,
0.2970659435,
0.2469936311,
0.5372268558,
0.1069165319,
0.019001713,
-0.0334401689,
0.1644963473,
-0.16714935,
-0.0511108413,
-0.1643354148,
-0.2703465223,
0.0554557592,
-0.0509195179,
-0.0999384522,
0.1822419614,
-0.0203764532,
-0.1326398849,
0.1385701746,
-0.6162403822,
0.3407853842,
0.3981691003,
0.1293950677,
0.221239686,
-0.3203513622,
0.0915322676,
0.0743871555,
0.0871158987,
0.1228629798,
0.0445484258,
0.1474002451,
-0.1661928445,
-0.1829893142,
0.3560413122,
-0.0840281919,
-0.5819593072,
-0.5803856254,
0.2874084413,
0.0599015243,
-0.0519096777,
0.0874740854,
-0.0114846751,
0.0312287044,
-0.1485453993,
0.101768434,
-0.1339639276,
0.2199298739,
-0.289860487,
0.5137260556,
0.0661385134,
-0.091977559,
-0.2159299999,
0.1337403357,
-0.2603697777,
0.1668198556,
0.2180063576,
-0.0852473527,
-0.3821597397,
0.0981838033,
0.1488299072,
-0.2141094357,
0.056008637,
-0.3263072371,
-0.168658644,
0.0470837876,
-0.1273077577,
-0.1296937615,
-0.1492376775,
0.0034555725,
0.0149490274,
0.011673891,
0.1407547742,
-0.36819911,
0.20261316,
0.3773682117,
-0.4822433889,
0.085431844,
-0.0428499468,
-0.3180077672,
0.01142768,
-0.0445799679,
0.1263404042,
-0.0620596074,
0.0007135486,
-0.1197288558,
0.0260777362,
-0.0179866888,
-0.4380295575,
-0.1060770601,
-0.1333417743,
0.1605289727,
0.1040503085,
0.051158797,
0.2821304798,
-0.1498063058,
-0.1852013916,
-0.1185879111,
-0.0300843772,
0.0556870215,
-0.334762007,
-0.0019840042,
0.0977142453,
0.3494841754,
-0.0445079356,
-0.1010223627,
0.3270165622,
-0.0091348542,
-0.0247054044,
-0.0248528551,
0.1827060133,
0.0151352528,
-0.1065311134,
-0.1402987093,
0.3998174071,
0.4279952347,
0.0667520836,
0.1130568311,
-0.2174634337,
-0.3045726717,
-0.2593292892,
0.0946191922,
-0.1802098006,
-0.2480641305,
0.1867717654,
0.1791694164,
0.1481643021,
-0.2058573216,
0.0145485103,
0.1814022958,
-0.0175495781,
0.1872913241,
0.2526590526,
0.1082975715,
-0.1395990103,
0.2712238431,
0.0994568169,
0.0944781154,
-0.1087878123,
0.1274225265,
-0.1205446497,
0.0775219053,
-0.2013966143,
0.2472887784,
-0.0433118567,
-0.1436529011,
0.1596129388,
-0.137327686,
0.2263965607,
0.4787701964,
-0.0233067069,
0.3734983802,
0.4101335704,
0.0915486887,
0.218501389,
0.2861807644,
0.0649858788,
0.4564540684,
0.5201385617,
0.305172056,
-0.3560701311,
-0.1103179529,
0.2189995199,
0.0466101617,
0.1319054067,
-0.1664598733,
-0.045798853,
-0.0366335139,
-0.0358386375,
-0.1343390495,
-0.5893672705,
-0.1926734447,
0.0665657073,
0.2404342592,
0.1041242629,
0.5153940916,
0.150959596,
-0.0223059151,
-0.0879775807,
0.0629825965,
-0.2974986136,
0.1008124724,
0.0913929492,
0.137338683,
-0.0905937329,
0.0450598896,
-0.5651190877,
0.0931613669,
-0.0444076881,
-0.1106405109,
0.0804784074,
-0.2457736731,
0.0204878189,
-0.1154545173,
0.4060716033,
0.1286480576,
-0.1022803858,
0.1689956486,
0.2748248279,
0.0741766542,
-0.4765067399,
0.0160643961,
-0.1441311389,
-0.178205803,
0.0199070368,
-0.0834219977,
-0.1489897221,
-0.1782406718,
0.0712679923,
-0.1267169714,
-0.0334695429,
-0.0527067259,
0.0983263403,
0.0045978585,
0.1004149243,
0.2653537989,
0.3687856793,
0.0852377713,
-0.2007395774,
-0.4986417294,
0.0696995258,
0.0808592811,
0.0986252576,
0.1873316318,
0.0979688913,
0.1143833846,
0.4632999897,
-0.2479229718,
0.0577325225,
-0.3735257983,
0.148249954,
-0.4224087894,
-0.0023331963,
-0.1219205335,
0.3359937072,
0.0025945252,
0.0205016471,
0.1152349785,
-0.0752214417,
-0.0232455637,
0.0893218443,
-0.2059790492,
0.0207433272,
-0.3161964118,
0.4156788588,
-0.0646221936,
0.278108865,
-0.1155628636,
-0.214696303,
-0.0343844928,
-0.2159999609,
-0.0555057228,
0.0031663252,
-0.0039881095,
0.3707585633,
-0.024490485,
-0.191949442,
0.295943886,
0.1552347839,
0.1495913267,
0.2460538894,
-0.1522096246,
0.2334622741,
0.1154715866,
0.2583086193,
-0.2823132575,
-0.1274645329,
-0.0627356246,
-0.0903529152,
0.0303444117,
-0.1563046426,
0.3553382456,
-0.0998722166,
-0.2949935794,
0.1143990308,
0.0260068756,
0.0625384003,
-0.0148760052,
-0.0783557221,
-0.2674862146,
0.2445235848,
-0.0303305201,
0.2791244388,
0.2451993823,
0.0041032452,
-0.0061918255,
-0.2805903852,
-0.1679354757,
0.1617101729,
0.0688721538,
-0.4143074453,
-0.4462715089
] |
https://github.com/huggingface/datasets/issues/128 | Some error inside nlp.load_dataset() | Google colab has an old version of Apache Arrow built-in.
Be sure you execute the "pip install" cell and restart the notebook environment if the colab asks for it. | First of all, nice work!
I am going through [this overview notebook](https://colab.research.google.com/github/huggingface/nlp/blob/master/notebooks/Overview.ipynb)
In simple step `dataset = nlp.load_dataset('squad', split='validation[:10%]')`
I get an error, which is connected with some inner code, I think:
```
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-8-d848d3a99b8c> in <module>()
1 # Downloading and loading a dataset
2
----> 3 dataset = nlp.load_dataset('squad', split='validation[:10%]')
8 frames
/usr/local/lib/python3.6/dist-packages/nlp/load.py in load_dataset(path, name, version, data_dir, data_files, split, cache_dir, download_config, download_mode, ignore_verifications, save_infos, **config_kwargs)
515 download_mode=download_mode,
516 ignore_verifications=ignore_verifications,
--> 517 save_infos=save_infos,
518 )
519
/usr/local/lib/python3.6/dist-packages/nlp/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, save_infos, dl_manager, **download_and_prepare_kwargs)
361 verify_infos = not save_infos and not ignore_verifications
362 self._download_and_prepare(
--> 363 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
364 )
365 # Sync info
/usr/local/lib/python3.6/dist-packages/nlp/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
414 try:
415 # Prepare split will record examples associated to the split
--> 416 self._prepare_split(split_generator, **prepare_split_kwargs)
417 except OSError:
418 raise OSError("Cannot find data file. " + (self.MANUAL_DOWNLOAD_INSTRUCTIONS or ""))
/usr/local/lib/python3.6/dist-packages/nlp/builder.py in _prepare_split(self, split_generator)
585 fname = "{}-{}.arrow".format(self.name, split_generator.name)
586 fpath = os.path.join(self._cache_dir, fname)
--> 587 examples_type = self.info.features.type
588 writer = ArrowWriter(data_type=examples_type, path=fpath, writer_batch_size=self._writer_batch_size)
589
/usr/local/lib/python3.6/dist-packages/nlp/features.py in type(self)
460 @property
461 def type(self):
--> 462 return get_nested_type(self)
463
464 @classmethod
/usr/local/lib/python3.6/dist-packages/nlp/features.py in get_nested_type(schema)
370 # Nested structures: we allow dict, list/tuples, sequences
371 if isinstance(schema, dict):
--> 372 return pa.struct({key: get_nested_type(value) for key, value in schema.items()})
373 elif isinstance(schema, (list, tuple)):
374 assert len(schema) == 1, "We defining list feature, you should just provide one example of the inner type"
/usr/local/lib/python3.6/dist-packages/nlp/features.py in <dictcomp>(.0)
370 # Nested structures: we allow dict, list/tuples, sequences
371 if isinstance(schema, dict):
--> 372 return pa.struct({key: get_nested_type(value) for key, value in schema.items()})
373 elif isinstance(schema, (list, tuple)):
374 assert len(schema) == 1, "We defining list feature, you should just provide one example of the inner type"
/usr/local/lib/python3.6/dist-packages/nlp/features.py in get_nested_type(schema)
379 # We allow to reverse list of dict => dict of list for compatiblity with tfds
380 if isinstance(inner_type, pa.StructType):
--> 381 return pa.struct(dict((f.name, pa.list_(f.type, schema.length)) for f in inner_type))
382 return pa.list_(inner_type, schema.length)
383
/usr/local/lib/python3.6/dist-packages/nlp/features.py in <genexpr>(.0)
379 # We allow to reverse list of dict => dict of list for compatiblity with tfds
380 if isinstance(inner_type, pa.StructType):
--> 381 return pa.struct(dict((f.name, pa.list_(f.type, schema.length)) for f in inner_type))
382 return pa.list_(inner_type, schema.length)
383
TypeError: list_() takes exactly one argument (2 given)
``` | 29 | Some error inside nlp.load_dataset()
First of all, nice work!
I am going through [this overview notebook](https://colab.research.google.com/github/huggingface/nlp/blob/master/notebooks/Overview.ipynb)
In simple step `dataset = nlp.load_dataset('squad', split='validation[:10%]')`
I get an error, which is connected with some inner code, I think:
```
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-8-d848d3a99b8c> in <module>()
1 # Downloading and loading a dataset
2
----> 3 dataset = nlp.load_dataset('squad', split='validation[:10%]')
8 frames
/usr/local/lib/python3.6/dist-packages/nlp/load.py in load_dataset(path, name, version, data_dir, data_files, split, cache_dir, download_config, download_mode, ignore_verifications, save_infos, **config_kwargs)
515 download_mode=download_mode,
516 ignore_verifications=ignore_verifications,
--> 517 save_infos=save_infos,
518 )
519
/usr/local/lib/python3.6/dist-packages/nlp/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, save_infos, dl_manager, **download_and_prepare_kwargs)
361 verify_infos = not save_infos and not ignore_verifications
362 self._download_and_prepare(
--> 363 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
364 )
365 # Sync info
/usr/local/lib/python3.6/dist-packages/nlp/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
414 try:
415 # Prepare split will record examples associated to the split
--> 416 self._prepare_split(split_generator, **prepare_split_kwargs)
417 except OSError:
418 raise OSError("Cannot find data file. " + (self.MANUAL_DOWNLOAD_INSTRUCTIONS or ""))
/usr/local/lib/python3.6/dist-packages/nlp/builder.py in _prepare_split(self, split_generator)
585 fname = "{}-{}.arrow".format(self.name, split_generator.name)
586 fpath = os.path.join(self._cache_dir, fname)
--> 587 examples_type = self.info.features.type
588 writer = ArrowWriter(data_type=examples_type, path=fpath, writer_batch_size=self._writer_batch_size)
589
/usr/local/lib/python3.6/dist-packages/nlp/features.py in type(self)
460 @property
461 def type(self):
--> 462 return get_nested_type(self)
463
464 @classmethod
/usr/local/lib/python3.6/dist-packages/nlp/features.py in get_nested_type(schema)
370 # Nested structures: we allow dict, list/tuples, sequences
371 if isinstance(schema, dict):
--> 372 return pa.struct({key: get_nested_type(value) for key, value in schema.items()})
373 elif isinstance(schema, (list, tuple)):
374 assert len(schema) == 1, "We defining list feature, you should just provide one example of the inner type"
/usr/local/lib/python3.6/dist-packages/nlp/features.py in <dictcomp>(.0)
370 # Nested structures: we allow dict, list/tuples, sequences
371 if isinstance(schema, dict):
--> 372 return pa.struct({key: get_nested_type(value) for key, value in schema.items()})
373 elif isinstance(schema, (list, tuple)):
374 assert len(schema) == 1, "We defining list feature, you should just provide one example of the inner type"
/usr/local/lib/python3.6/dist-packages/nlp/features.py in get_nested_type(schema)
379 # We allow to reverse list of dict => dict of list for compatiblity with tfds
380 if isinstance(inner_type, pa.StructType):
--> 381 return pa.struct(dict((f.name, pa.list_(f.type, schema.length)) for f in inner_type))
382 return pa.list_(inner_type, schema.length)
383
/usr/local/lib/python3.6/dist-packages/nlp/features.py in <genexpr>(.0)
379 # We allow to reverse list of dict => dict of list for compatiblity with tfds
380 if isinstance(inner_type, pa.StructType):
--> 381 return pa.struct(dict((f.name, pa.list_(f.type, schema.length)) for f in inner_type))
382 return pa.list_(inner_type, schema.length)
383
TypeError: list_() takes exactly one argument (2 given)
```
Google colab has an old version of Apache Arrow built-in.
Be sure you execute the "pip install" cell and restart the notebook environment if the colab asks for it. | [
-0.0670082048,
0.0724995136,
-0.0823870823,
0.1897586584,
0.2675674558,
0.0750563815,
0.2924348116,
0.3888992667,
0.0351886526,
-0.1877865344,
-0.1114237607,
0.2747960687,
-0.0162892137,
0.064321056,
0.2407229692,
-0.2864511907,
-0.1546425372,
0.2549159825,
-0.0124720428,
0.1232353598,
-0.2655296922,
0.116680786,
-0.339871496,
0.3442744911,
-0.0802768096,
-0.1929236501,
-0.0296071433,
0.3408280313,
-0.2490503043,
-0.5879952908,
0.3756800592,
-0.1130222008,
0.2241374701,
0.1312045902,
-0.0001051211,
0.036686562,
0.4223829508,
-0.0525459759,
-0.4962967634,
-0.2144065797,
-0.2681882679,
-0.1776149869,
0.2765499353,
-0.50718081,
0.3534994721,
0.0584657863,
0.1453214884,
0.1726182997,
0.4719082415,
0.3926604688,
0.3172274232,
0.4065116048,
0.1332877129,
-0.0378220938,
-0.0242808741,
-0.0132258786,
0.0424992964,
0.3613389134,
-0.0597003363,
-0.2916480899,
-0.1058746353,
0.1836793125,
-0.0739914402,
0.08228679,
0.2149082422,
-0.0782493427,
0.1761751473,
-0.2062112987,
-0.2290772051,
0.076453194,
0.3108659983,
-0.3317782283,
-0.1878500432,
-0.2332881838,
0.1658894271,
-0.2867987454,
0.2173206806,
0.2049750686,
-0.2205487639,
-0.0430261716,
-0.1023473889,
0.0367132723,
-0.1697549969,
0.2968502045,
0.1530662179,
0.1422132701,
-0.0430708043,
0.0544456169,
0.1611633748,
0.0255566798,
0.1349270642,
-0.1027901471,
-0.011979281,
0.3151761591,
-0.3757240474,
-0.2236607671,
0.0898647085,
0.1502705067,
0.0355189033,
0.042300839,
0.1994195133,
-0.1857153475,
0.0624955222,
0.3097721934,
0.3490636349,
0.2397695184,
0.3099018931,
0.1482293904,
0.1110981107,
0.2224609852,
0.077801235,
0.0408169404,
-0.0988590419,
-0.2621631324,
0.2397560477,
0.0685239434,
0.3718976378,
-0.0113207512,
-0.4528191388,
0.0513459258,
-0.2397605032,
-0.0740909204,
0.1411998719,
0.2162543535,
0.0511003025,
0.0173274484,
0.2893837392,
0.0570257343,
-0.2770856619,
-0.3184552193,
-0.1165349483,
0.2498123348,
-0.3269897997,
0.0069971248,
0.1883510798,
0.0352809839,
0.3087345958,
0.0512831882,
-0.0036527691,
-0.125955373,
0.2600572705,
-0.1636987925,
-0.2521982491,
0.1093501598,
-0.0698629096,
-0.1896069944,
0.1693445295,
-0.2162503302,
-0.090449065,
-0.0141088227,
-0.1204685196,
-0.316998601,
-0.2073783726,
0.271933049,
-0.1719688922,
0.0835193396,
-0.1735840142,
-0.1093322262,
0.2492954582,
-0.3055494726,
0.0167164337,
-0.3455446362,
-0.1564008743,
-0.1015431806,
0.0918392986,
0.3969189525,
0.0699039698,
-0.1808039397,
-0.2149001658,
-0.2028657198,
-0.0220353995,
0.2457960993,
-0.2600754797,
0.622546792,
-0.19592233,
0.2986059189,
0.6382417679,
-0.3533471227,
-0.2437378615,
0.2599745989,
-0.0882795975,
0.0478560627,
-0.2249870598,
0.0980273485,
0.1081011966,
-0.066747278,
0.3803535402,
0.5108783245,
-0.1190072969,
0.0474858396,
-0.1602506042,
0.0501509979,
0.2901408076,
0.1346268058,
-0.0792287961,
0.1688668877,
0.0797368884,
0.6542682648,
0.0420448557,
-0.027695559,
-0.1052354276,
-0.0001349633,
-0.0991272479,
-0.1206662878,
-0.1381549835,
-0.2238784581,
-0.5490891933,
-0.0626134276,
-0.4242878854,
0.0873746574,
-0.0138779124,
-0.013869334,
-0.4102630019,
0.0395543948,
-0.2429814637,
-0.1580200642,
0.2333462238,
0.1386093646,
-0.1312865466,
-0.1246054173,
-0.0883769467,
0.3406803906,
-0.3272356093,
0.0233294368,
-0.5331029892,
0.2011085749,
-0.2686675489,
-0.1432892978,
0.1279351264,
0.28014341,
0.0276370589,
-0.0509064719,
-0.1709378809,
0.4143425822,
-0.0930753946,
0.0388935097,
0.0303057544,
-0.1917447597,
-0.0529046282,
-0.0611756518,
0.0195935853,
0.1188742295,
0.275911808,
-0.082046099,
0.141054824,
0.2947697341,
-0.0729207397,
0.0711486787,
0.0039900024,
0.1084021553,
0.1370729953,
-0.1486366093,
-0.0938239917,
-0.0202757455,
0.3909057081,
0.2834860384,
0.2081479281,
-0.0288625062,
-0.2282043695,
-0.1797695905,
0.4322505593,
-0.0689733401,
0.1922805607,
0.20285438,
0.1720709652,
-0.1804119796,
-0.0145858787,
-0.0284017604,
0.5414628983,
0.038919352,
-0.3035568595,
0.2416814566,
-0.0952254757,
-0.0702836365,
0.2528951466,
0.0630307496,
0.1794160753,
0.2073057145,
0.1111280397,
0.1453694105,
-0.3022249639,
-0.243438378,
0.1295955926,
0.386508882,
-0.3687130511,
0.3285268247,
-0.0910151526,
-0.5053384304,
-0.1362622976,
-0.0972982049,
-0.1995760798,
-0.3681539297,
-0.2554412782,
0.1976408064,
0.0036710706,
0.0604118668,
-0.0738963485,
0.1609850973,
0.0796252862,
0.0558328889,
-0.0202162806,
-0.2739416063,
-0.1665542275,
0.0571617559,
0.4820738137,
0.0963713154,
0.3322121799,
-0.2350909561,
-0.2184936255,
0.0778687894,
-0.3148481548,
0.0317500159,
-0.0699619949,
0.2388780713,
0.3108827174,
0.2182895392,
-0.0963024423,
-0.2679319382,
0.3181727827,
-0.0013899218,
-0.3025508225,
0.1445504129,
0.0671870261,
0.0353901386,
-0.11479076,
-0.448780477,
-0.4314320385,
-0.416079998,
0.1686739028,
-0.1568618417,
0.2440703362,
0.4337668717,
-0.2115263343,
0.3001111746,
-0.1510652006,
-0.0303635206,
-0.1450505257,
-0.0210046507,
0.1397486031,
-0.2263175845,
-0.3450112939,
-0.2016337812,
-0.0866465271,
0.2221895456,
-0.2155758739,
-0.4385277033,
-0.0517627746,
-0.0057825968,
0.1955134422,
-0.2977803349,
-0.1599109024,
0.2887177169,
-0.0905650705,
-0.1065407544,
-0.0167715251,
-0.1417759955,
-0.0614284202,
0.0821510851,
0.3034347594,
-0.135195896,
0.4471292198,
-0.123174794,
0.2869756818,
0.0732988566,
-0.1082972288,
0.3293795288,
0.1539562792,
0.2039955407,
-0.2005157918,
-0.4926660061,
0.2181331813,
-0.1572078317,
0.0515012071,
0.0287216455,
-0.3280372024,
-0.3047071993,
-0.2021842599,
-0.1398533583,
-0.3305560648,
-0.2503878176,
0.2730175853,
-0.0773450136,
0.1714758128,
0.1585312337,
-0.0780504346,
-0.2217251062,
-0.0377911627,
-0.2130163163,
0.3197604716,
0.1046184674,
-0.0584280826,
-0.2979863286,
-0.2966350913,
-0.1739125997,
0.1791525334,
0.2524515092,
0.4256489873,
-0.1788266152,
0.1140433177,
0.0183621589,
0.067862995,
0.1849155128,
0.1055374667,
0.1085021123,
0.3210602701,
0.0974961147,
-0.3292141259,
-0.0738475174,
-0.3257382214,
0.5837909579,
0.5781295896,
0.0980624706,
-0.275233984,
-0.0338026434,
0.4834588766,
0.0486779138,
-0.2065959573,
-0.3602989614,
-0.2959500253,
-0.1465179771,
-0.3288709223,
-0.0246359017,
-0.0255208537,
0.2704153657,
0.0710087419,
0.2534432411,
0.121634528,
0.0927046165,
0.0010232667,
0.0216789637,
0.0657799542,
0.1994556785,
-0.063053228,
-0.2098068297,
0.1590035856,
-0.0702687129,
0.3327350616,
0.0725932866,
-0.2050614655,
0.1818729788,
0.0516672656,
0.2031392753,
0.1788521558,
0.0591574535,
0.0491884165,
-0.0848669037,
0.0960112214,
-0.0209742952,
0.1371418238,
0.3824806511,
0.025547104,
-0.2554465234,
-0.3978531659,
0.4386376739,
-0.3213835955,
0.097641632,
0.3634881377,
-0.2074613273,
-0.2057625651,
0.1143071204,
0.0049699061,
0.750171721,
0.2101754397,
0.2123607248,
0.5577790737,
0.0075994278,
0.4680122733,
0.095107384,
0.2008807212,
-0.3666546047,
0.1826377213,
0.0357552543,
-0.1490109712,
0.0260926057,
-0.0038817935,
-0.2142943144,
0.1134229302,
-0.0457023494,
-0.0226697028,
0.1832746416,
0.4041077495,
-0.0750436783,
-0.1945251077,
-0.6791554093,
0.2014896721,
-0.4122565687,
0.1889533401,
-0.2822135389,
-0.2469038069,
0.0997456834,
-0.1837926209,
-0.2537026107,
0.205518499,
-0.0916898027,
0.3260078132,
0.1200042143,
-0.1432432979,
0.2602951229,
0.2704222202,
0.05253217,
-0.0416508801,
-0.0289465077,
-0.0233648699,
-0.1941993088,
-0.1629675329,
0.0426980965,
0.1213914752,
0.3357354403,
-0.192871511,
-0.3291579783,
0.1110835895,
-0.0343964957,
-0.3594437242,
0.1536707282,
0.1568349898,
0.1917544901,
-0.3811148107,
-0.3047454655,
-0.2029926181,
-0.1436665803,
-0.151440084,
0.2000861913,
0.0843162835,
-0.2529888153,
0.0350684859,
-0.0092350049,
-0.2911498845,
0.1802425086,
0.2770356536,
0.0140180252,
0.0106044458,
0.7288352847,
0.0609151572,
-0.1173975691,
-0.3024676144,
0.31761989,
-0.0881228149,
-0.3163419366,
0.103336446,
-0.0070593255,
0.1721569598,
-0.2600636482,
0.2397175282,
-0.0039601382,
0.202088058,
0.2013680488,
-0.7033929229,
-0.3221526444,
0.1701673418,
-0.1725693792,
-0.0260472465,
0.2704145014,
0.2691509724,
0.1669465452,
0.1838987619,
-0.3495568335,
-0.1555118859,
-0.339802146,
0.2904284596,
0.2434927672,
-0.318308562,
-0.0067414879,
-0.0603755824,
0.1436002553,
0.1854970753,
-0.1724687815,
-0.3484416902,
-0.0325863846,
0.1216216981,
0.0408616327,
-0.0962840691,
0.0424280949,
-0.0707945377,
-0.1155120358,
-0.0079110451,
-0.1634435654,
-0.170186162,
0.0744744837,
0.3102093637,
0.017027732,
0.2306424826,
0.1136412621,
0.1596212685,
-0.1087767556,
0.1454429924,
-0.0863039568,
0.2423230559,
-0.0232039578,
0.0559722595,
-0.3918281496,
-0.101323843,
-0.0728680268,
0.2174201459,
0.1941602975,
-0.4284442365,
0.0244407468,
-0.203637436,
0.0187181719,
0.4487908185,
-0.3464200795,
-0.0054863673,
-0.0533490479,
0.1968190819,
-0.2553155422,
0.2166374028,
0.341032058,
0.0716984868,
-0.1447332352,
-0.0323972926,
-0.1158759072,
0.045765385,
-0.0180206504,
0.0056248093,
0.1477855444,
-0.0067929593,
0.1899333298,
0.2149689347,
-0.0566864125,
0.0528803654,
0.1113122478,
0.1312789023,
0.1339769959,
0.2176306248,
-0.1340118349,
0.1117196232,
-0.1489599049,
0.1516863257,
0.1375525296,
-0.2686522305,
-0.2173860818,
0.3156462312,
0.2006192952,
0.1304236948,
0.0018123899,
0.37661919,
-0.1620229483,
-0.1020944342,
-0.0075149466,
0.1957174391,
-0.1902850121,
0.0911128148,
-0.5262411833,
0.0250649173,
-0.1287004203,
-0.0458879881,
-0.0549714789,
0.0364599712,
0.2260542661,
0.2589625418,
-0.2998777926,
-0.3869465888,
0.1207437515,
0.3827263117,
-0.120920755,
-0.3748803735,
0.2868901193,
0.2392375618,
0.1293735206,
0.0250823721,
0.604056716,
0.5194362402,
0.4611821771,
-0.2293999195,
0.0646777824,
-0.1322269887,
-0.0579321161,
0.0723032057,
0.0647798628,
0.3152109981,
0.1912101656,
0.2648988962,
0.1848496646,
-0.1656358093,
0.1554616988,
0.3279311359,
-0.2607156336,
-0.1104300693,
0.4586729407,
-0.0041559171,
-0.0905644447,
-0.3590589762,
0.2188562453,
-0.3501580954,
0.2154808789,
0.2738783658,
0.3120321929,
0.0712651163,
-0.1063841879,
0.1089192107,
-0.1599286199,
0.7038535476,
0.3672450483,
0.1457676888,
-0.5256857872,
-0.2018237263,
-0.7177897692,
0.1828652024,
-0.0225403886,
-0.1378792822,
0.2886984944,
0.0494954512,
-0.1539878994,
0.2997171879,
-0.0527191497,
0.0517333224,
-0.0982843339,
-0.0538514666,
-0.3332028985,
-0.1750536561,
0.1419280469,
0.0070066024,
-0.1369070262,
-0.3033786714,
0.0991408452,
-0.2753921449,
0.0693372861,
-0.1080027372,
-0.1901943237,
0.0246992689,
0.4402839243,
0.0714420155,
0.1907030195,
0.5019020438,
-0.0452676043,
-0.0860019326,
-0.0191512182,
-0.2989412844,
-0.0921264961,
0.2473772764,
0.1353032291,
0.3523184955,
-0.1346610188,
0.1831389368,
-0.442394197,
0.4959532917,
-0.277638495,
-0.3152655661,
-0.2573377788,
-0.1072195247,
-0.0311581418,
0.2137937844,
0.0032329829,
0.1233839616,
-0.0819339082,
0.2954354584,
-0.4231439829,
-0.303830266,
0.5512320399,
-0.4347352684,
-0.2962920666,
0.1676253974,
0.2419221103,
-0.124083139,
-0.1673005819,
-0.5922070742,
0.042458985,
0.3712546527,
-0.1085438579,
-0.2428870797,
0.229710117,
-0.1221713871,
0.1525462717,
0.0340049528,
0.3174513578,
0.0109063145,
-0.2272162884,
0.0310516339,
-0.3468202353
] |
https://github.com/huggingface/datasets/issues/120 | 🐛 `map` not working | I didn't assign the output 🤦♂️
```python
dataset.map(test)
```
should be :
```python
dataset = dataset.map(test)
``` | I'm trying to run a basic example (mapping function to add a prefix).
[Here is the colab notebook I'm using.](https://colab.research.google.com/drive/1YH4JCAy0R1MMSc-k_Vlik_s1LEzP_t1h?usp=sharing)
```python
import nlp
dataset = nlp.load_dataset('squad', split='validation[:10%]')
def test(sample):
sample['title'] = "test prefix @@@ " + sample["title"]
return sample
print(dataset[0]['title'])
dataset.map(test)
print(dataset[0]['title'])
```
Output :
> Super_Bowl_50
Super_Bowl_50
Expected output :
> Super_Bowl_50
test prefix @@@ Super_Bowl_50 | 17 | 🐛 `map` not working
I'm trying to run a basic example (mapping function to add a prefix).
[Here is the colab notebook I'm using.](https://colab.research.google.com/drive/1YH4JCAy0R1MMSc-k_Vlik_s1LEzP_t1h?usp=sharing)
```python
import nlp
dataset = nlp.load_dataset('squad', split='validation[:10%]')
def test(sample):
sample['title'] = "test prefix @@@ " + sample["title"]
return sample
print(dataset[0]['title'])
dataset.map(test)
print(dataset[0]['title'])
```
Output :
> Super_Bowl_50
Super_Bowl_50
Expected output :
> Super_Bowl_50
test prefix @@@ Super_Bowl_50
I didn't assign the output 🤦♂️
```python
dataset.map(test)
```
should be :
```python
dataset = dataset.map(test)
``` | [
-0.1308910251,
-0.288844496,
-0.0395004712,
-0.0892403573,
0.1618370116,
0.0317667834,
0.0189051535,
0.2528118789,
0.3727516234,
0.1373796165,
0.23242037,
0.6317355037,
-0.0919270664,
0.101572223,
0.1246008798,
0.0128666703,
0.1166425422,
0.2223275304,
-0.0682750568,
-0.0151178036,
-0.4552710056,
0.1827888191,
-0.345292002,
0.3195169866,
-0.1788798571,
-0.0197324194,
0.0069234776,
-0.1686055511,
-0.1507204026,
-0.1539473385,
0.080838412,
-0.1376016736,
-0.1134998873,
0.3354358673,
-0.0001208801,
-0.1301515847,
0.3381018937,
-0.0655615181,
-0.2692093849,
-0.7517464757,
-0.3737793863,
0.1315032542,
0.1735261232,
-0.1138141751,
-0.1845376492,
0.2965351045,
0.4201625884,
-0.2645870447,
0.1648978889,
0.3474883735,
0.1447360218,
-0.139945671,
0.0086322045,
-0.0474372655,
0.073238343,
0.2379056066,
-0.1838502139,
0.2487775534,
0.3222712576,
-0.3623717129,
0.3922862411,
0.1185219139,
-0.0787293985,
-0.1327401996,
0.1144521534,
0.2852785587,
0.2475355715,
-0.2126545906,
0.1879269332,
-0.0303249471,
-0.048200991,
-0.2822024226,
0.0334668458,
0.0580716692,
-0.1231698096,
-0.5438140631,
0.0971132591,
-0.049842339,
-0.0030331144,
-0.0620927662,
-0.2048738748,
-0.0853236988,
0.2212244868,
0.6745915413,
0.1022634879,
0.954864502,
-0.1163380295,
0.2279542834,
0.3377545774,
-0.0999908894,
0.0041733752,
-0.0862774104,
0.0673138499,
0.376660198,
0.0692681,
0.1327456236,
0.1648406088,
-0.0948003307,
-0.2642453015,
-0.6372031569,
0.1999681592,
0.0101576,
-0.1684218496,
0.3996456861,
0.020142084,
0.2257401943,
0.4909592867,
0.3822182119,
0.117504023,
0.0059170993,
-0.2318650484,
-0.1034120098,
-0.0083994018,
0.0281143542,
-0.3582538962,
0.1919239908,
0.1363416463,
0.1164992973,
0.0773293003,
0.0594360232,
-0.4156872928,
-0.0138431787,
0.081227161,
0.3200684488,
-0.0052133105,
-0.3745112717,
-0.0273592491,
0.1046241224,
0.0708694831,
0.1158995777,
-0.1659529358,
0.1215725765,
-0.6696618795,
-0.1169032678,
-0.0992713496,
0.1459354907,
0.3452652991,
-0.146715939,
0.0364236832,
-0.0586835817,
0.0628521517,
-0.2476707101,
0.4761579037,
0.0555968396,
-0.1343474239,
0.4023708999,
0.3105253875,
-0.5544051528,
-0.0962490216,
0.419636637,
-0.1514538378,
-0.0798981339,
-0.1413526684,
0.0859789848,
-0.1877979189,
0.0859408081,
-0.3463784158,
0.3524731398,
0.3490438759,
-0.3453373313,
0.1195523143,
-0.1349667311,
-0.6410389543,
-0.1959416419,
0.1157923117,
0.0416707359,
-0.3937191069,
-0.044694379,
-0.2229498029,
0.410256207,
0.0790215805,
0.1991876811,
-0.1474321187,
0.4485394955,
-0.1345475018,
0.4181541502,
0.3669396341,
-0.3884116411,
-0.3279595971,
-0.0438185558,
-0.2272125483,
-0.1566494405,
-0.3628613949,
0.0593839511,
0.0771250427,
0.0182604101,
0.3440065682,
0.0222453643,
0.0512007438,
0.0110289007,
-0.0668046325,
-0.1032929793,
0.266087085,
-0.0949476361,
-0.0731073394,
0.1685609221,
-0.0119152684,
-0.0485044904,
0.2499533296,
-0.1668199897,
0.0707980841,
-0.1735837311,
0.2821959853,
0.0722113848,
-0.1749942005,
-0.0447286963,
-0.1231508628,
0.0357341617,
-0.1855428964,
-0.0179977231,
-0.0927850008,
-0.0023259933,
-0.1579926163,
0.044844728,
-0.1641955227,
-0.0482515506,
0.0877191871,
0.0776942447,
0.0191213209,
0.0309900176,
-0.0614587963,
0.1095888019,
0.1743951142,
0.1306147277,
-0.5375676751,
-0.110938549,
0.0721309111,
-0.3122582734,
-0.3377266824,
0.2627843618,
0.2720012069,
-0.0913677365,
-0.1593883932,
0.182632491,
0.0240380764,
-0.1603485942,
-0.0225019306,
-0.2081048936,
0.1836199015,
-0.1446668059,
-0.0301503502,
0.5182894468,
0.2055364102,
-0.2129921019,
-0.035031911,
0.1274993867,
0.1038666666,
0.2728380263,
-0.0886464566,
0.0565797091,
-0.0319980159,
-0.0433970354,
-0.0903622732,
-0.1823167056,
-0.014329182,
0.0340849347,
-0.0532755665,
0.0036532022,
0.0778257996,
-0.1119716614,
0.4006414711,
0.0231646337,
0.3708415031,
0.0209430009,
-0.1153280213,
0.1659086645,
0.1863714457,
-0.0547927395,
0.5865680575,
0.0131232897,
-0.0254017226,
0.1955807358,
0.0845862031,
-0.1995898038,
0.1008771434,
-0.1404297054,
0.066597186,
-0.2407292277,
0.1284890622,
-0.1666508168,
-0.0924958959,
0.0569094829,
0.0684150159,
0.2624979317,
-0.2354491055,
-0.0236497894,
-0.1048639938,
-0.2389109135,
0.1042295098,
-0.4910828769,
-0.1033510566,
-0.549619019,
-0.0612195581,
0.2564049661,
0.0575670823,
0.2079387456,
0.2172444314,
-0.3307379782,
-0.0395486094,
-0.4727920294,
0.0556709133,
-0.3682711422,
-0.257545352,
0.0285214763,
-0.2591771483,
-0.1270316839,
-0.0272987727,
0.1257537156,
-0.0760786533,
0.0362053178,
-0.5919944048,
0.1960735619,
-0.137331903,
0.0644340739,
0.1637121737,
-0.2298817784,
-0.5939881206,
-0.4168900251,
0.3337337673,
-0.0796894059,
-0.0332237892,
-0.1684315801,
0.0010462555,
-0.3191902936,
-0.3106954396,
-0.0520265475,
-0.1261584908,
-0.310380429,
0.4487833679,
-0.1254449934,
0.2938329875,
0.342857182,
-0.1564955115,
0.3314343691,
-0.1706444621,
-0.3483969569,
-0.2987543344,
-0.0064588459,
0.3493938148,
-0.3635312617,
-0.1489144564,
0.0703561455,
-0.1867864728,
0.1822555363,
-0.070119448,
-0.1043677032,
-0.2003177553,
-0.0184745882,
-0.0312951282,
0.3904741108,
0.2745313048,
0.0836585388,
-0.0805730075,
-0.0049564699,
-0.1555368304,
-0.592997551,
0.278049618,
0.651322484,
0.5089284778,
0.1921819001,
0.2489901632,
-0.0075509963,
0.5325371623,
0.1618038267,
-0.212564975,
0.2115816325,
-0.3211398125,
-0.0320386216,
-0.1424283683,
-0.4234915674,
0.0245852116,
-0.0067757452,
-0.1400481015,
0.2757478952,
0.016660938,
-0.2540221512,
-0.0493891835,
0.2344818115,
-0.4783281088,
-0.2111423761,
0.097993128,
-0.1960961968,
0.0742845163,
0.1765291542,
-0.002118926,
-0.2126139551,
-0.2381563038,
-0.0159715489,
-0.2040698081,
0.0938437283,
-0.0728586093,
-0.0798606128,
-0.5401271582,
-0.4879361391,
0.4711796939,
0.046223186,
0.2800811529,
-0.4085738361,
-0.0222519301,
-0.1019745469,
0.3389693201,
0.720477283,
-0.4146661758,
-0.1517052352,
-0.1285319179,
0.026633719,
-0.3732299507,
0.0504205935,
-0.138764441,
0.7048390508,
0.2851271927,
0.4269517958,
-0.0718692988,
0.1912507713,
0.384540379,
-0.3727276027,
0.051559519,
0.0104765305,
-0.4230522215,
-0.3403426111,
-0.1365095675,
0.0031710963,
0.1901311874,
-0.0638539642,
0.4496661127,
-0.1266026944,
0.1970551163,
-0.0817783177,
0.3633244634,
0.222888276,
0.2051605135,
0.4692051113,
-0.2191530615,
0.141852513,
-0.1080158576,
-0.4818496704,
0.1222381741,
-0.0705552697,
-0.1371371895,
0.0297260527,
-0.1465837955,
0.709635675,
0.3122917116,
-0.1099986434,
0.0616008565,
-0.1118348688,
0.0894453079,
0.0629384592,
0.1518034339,
0.3356263041,
0.2160641402,
-0.2308476567,
-0.3069337904,
0.373940587,
0.2010593563,
-0.2294182479,
0.4848845601,
-0.2888380289,
-0.3693415821,
0.4401733875,
-0.0552506484,
0.8812678456,
-0.328882426,
-0.0781106204,
0.0262057781,
-0.0904381499,
0.3551360071,
0.3642561436,
0.2386023551,
-0.2705540061,
-0.2682388127,
-0.0676916167,
-0.0946345851,
0.1115433574,
0.2740829587,
-0.5248664618,
0.361148864,
0.013629809,
0.3058548272,
0.1772103906,
-0.1273940802,
0.3114949167,
-0.1406897604,
-0.377022624,
0.0788080022,
-0.0949941874,
0.272318691,
-0.1273157746,
-0.0706701577,
-0.4240266383,
-0.2328912616,
-0.0435346849,
0.2279336154,
-0.7580815554,
-0.0378287323,
0.2483014166,
-0.0059417817,
0.1336125731,
0.4042815566,
0.2174763083,
0.3187230229,
-0.0584830157,
-0.0241897292,
0.2432532609,
0.1190763563,
-0.2066168934,
0.0010833674,
-0.2842409909,
0.0681238621,
-0.2223668098,
0.1566006839,
0.1069241762,
-0.1556614935,
-0.1290681213,
0.2709936798,
0.112593621,
-0.1063869223,
-0.4957403243,
0.1158183739,
-0.2005818337,
0.0929067582,
0.0137986317,
-0.0961243063,
-0.257294178,
0.1917706877,
0.0472916104,
-0.4564112723,
0.1453086138,
0.3444760442,
-0.0730796382,
0.0976232588,
0.315487355,
0.0668098927,
0.029346481,
-0.0775229409,
-0.2012251616,
0.035997998,
0.2118709087,
0.1406423897,
0.0459909402,
-0.2244904488,
0.080628857,
0.3399588466,
-0.0683124661,
0.0892964676,
-0.2238082439,
-0.2267853171,
-0.2857346237,
0.2419134974,
0.1176858395,
0.004289411,
0.3015348911,
0.1707769185,
0.4359314442,
0.1129636467,
-0.2406932861,
0.0985799283,
0.0716505125,
0.3849244714,
0.2092825919,
0.0064113364,
0.2786641121,
-0.0815782771,
0.0873331428,
0.1576545388,
-0.3437965214,
-0.2149541974,
-0.1669620723,
0.152494818,
0.3685130775,
0.1399247944,
-0.3078057468,
-0.1329807043,
0.0144404601,
-0.3739822507,
0.0259652659,
0.1786466241,
-0.1250320226,
0.3014210165,
-0.0177775472,
0.0482220203,
0.1343895197,
-0.0410703421,
-0.1205487326,
0.17402713,
0.2187936604,
0.1700946242,
0.0065052127,
-0.0358887054,
0.1499828398,
-0.1678549647,
-0.0587956011,
0.0520401075,
0.2513245344,
-0.2683350444,
0.0198335666,
-0.1027355939,
0.2284677625,
-0.15001522,
-0.0869466513,
-0.1159961075,
-0.0329864621,
0.0066998322,
-0.2695995271,
0.1006248295,
0.5648445487,
0.2089279741,
0.3598715365,
0.3155956566,
0.1374087334,
0.0718386024,
-0.2548120618,
-0.1165947095,
0.1607795209,
-0.1605863273,
0.1015517712,
0.5504280329,
-0.1623870134,
0.3152948618,
0.1901964098,
-0.0635565221,
-0.0931726992,
0.389621526,
0.3885451257,
0.4714004397,
0.2708857059,
0.0840097964,
0.3230816722,
-0.0734594017,
0.1270560175,
0.2542307079,
-0.0447485633,
0.4074876904,
0.2904057503,
0.3753794432,
-0.2979836166,
0.0869580582,
0.2490665317,
-0.0140676415,
-0.1390674263,
-0.1929687262,
-0.1051259339,
0.1869532317,
-0.3700266778,
-0.192406252,
-0.0126229022,
-0.1224952862,
0.6040126085,
0.0263605118,
0.1525219083,
0.1616510898,
-0.1923265755,
0.1634815782,
0.1731297821,
-0.1715730876,
0.2526204288,
-0.4696705937,
0.1061889008,
-0.210182935,
0.3927231133,
0.1896382123,
0.4295222163,
-0.4504500926,
0.4053704441,
-0.1087128744,
-0.2128286362,
0.0145012755,
0.2407448292,
0.6244418621,
0.1723869741,
0.0321059749,
0.1274468899,
-0.088869676,
0.2410170585,
0.2507746518,
0.1872515827,
0.3839380741,
0.2080908567,
0.0156712867,
-0.3604925275,
-0.2400271297,
-0.0676504076,
-0.4239915013,
-0.0014067627,
0.4004197717,
-0.2318477035,
0.2212593853,
-0.1460824162,
0.0396970958,
0.2456215918,
0.2564710677,
0.2404113561,
0.2309992909,
-0.4548287988,
-0.2035090327,
-0.4605845213,
0.0590334237,
-0.1616380066,
0.1461368352,
-0.0401878282,
-0.1157579124,
0.1455263942,
0.2692285478,
0.0079545779,
-0.3788707852,
-0.15164648,
0.1226704568,
0.2159106433,
-0.1012306288,
-0.1711682826,
0.1346288323,
0.1686707288,
-0.2212590873,
-0.0315539949,
-0.2509443462,
-0.0465141237,
-0.3802006543,
-0.1483201832,
-0.1365132481,
0.0572494306,
0.5121201277,
0.2238946408,
0.2454636842,
-0.2290040851,
0.1886906922,
0.1829680949,
0.0321733393,
-0.0377368666,
0.2693754733,
0.1605891883,
0.2671963573,
-0.0952200443,
0.0121025229,
-0.151328668,
-0.0638698041,
0.2292648554,
-0.2815912366,
-0.3133396506,
0.0606126152,
-0.1826199442,
-0.0654367879,
-0.0771829337,
0.4257068336,
-0.2217241675,
0.2012739927,
0.0630281046,
-0.2539879084,
0.5734156966,
-0.4769707918,
-0.4723159373,
0.0201121438,
0.1540260464,
-0.0972416699,
-0.3128694892,
-0.4151428342,
-0.217945084,
0.1861939728,
-0.1381082684,
-0.1734428704,
0.082390599,
-0.2065386921,
0.0544589944,
-0.1094940901,
0.334384799,
0.1170888469,
-0.118992582,
0.0300847031,
-0.397005558
] |
https://github.com/huggingface/datasets/issues/119 | 🐛 Colab : type object 'pyarrow.lib.RecordBatch' has no attribute 'from_struct_array' | It's strange, after installing `nlp` on Colab, the `pyarrow` version seems fine from `pip` but not from python :
```python
import pyarrow
!pip show pyarrow
print("version = {}".format(pyarrow.__version__))
```
> Name: pyarrow
Version: 0.17.0
Summary: Python library for Apache Arrow
Home-page: https://arrow.apache.org/
Author: None
Author-email: None
License: Apache License, Version 2.0
Location: /usr/local/lib/python3.6/dist-packages
Requires: numpy
Required-by: nlp, feather-format
>
> version = 0.14.1 | I'm trying to load CNN/DM dataset on Colab.
[Colab notebook](https://colab.research.google.com/drive/11Mf7iNhIyt6GpgA1dBEtg3cyMHmMhtZS?usp=sharing)
But I meet this error :
> AttributeError: type object 'pyarrow.lib.RecordBatch' has no attribute 'from_struct_array'
| 63 | 🐛 Colab : type object 'pyarrow.lib.RecordBatch' has no attribute 'from_struct_array'
I'm trying to load CNN/DM dataset on Colab.
[Colab notebook](https://colab.research.google.com/drive/11Mf7iNhIyt6GpgA1dBEtg3cyMHmMhtZS?usp=sharing)
But I meet this error :
> AttributeError: type object 'pyarrow.lib.RecordBatch' has no attribute 'from_struct_array'
It's strange, after installing `nlp` on Colab, the `pyarrow` version seems fine from `pip` but not from python :
```python
import pyarrow
!pip show pyarrow
print("version = {}".format(pyarrow.__version__))
```
> Name: pyarrow
Version: 0.17.0
Summary: Python library for Apache Arrow
Home-page: https://arrow.apache.org/
Author: None
Author-email: None
License: Apache License, Version 2.0
Location: /usr/local/lib/python3.6/dist-packages
Requires: numpy
Required-by: nlp, feather-format
>
> version = 0.14.1 | [
-0.22734119,
-0.0230960008,
-0.0340330563,
0.1723941565,
0.0568677299,
-0.0996635258,
0.2892406881,
0.1857036352,
-0.0378172733,
0.0181548689,
0.0521484353,
0.5537127852,
-0.2503231764,
0.04018135,
0.0903166234,
-0.0751873404,
0.0834169835,
0.2587282062,
0.1037928537,
-0.1277677268,
-0.150226593,
0.1527521908,
-0.3422147036,
0.1068570465,
-0.1202109456,
-0.0682896599,
0.131863445,
-0.0488614552,
-0.0279789772,
-0.4014872611,
0.4233359396,
-0.2384955883,
0.1887149662,
0.0650479719,
-0.00012701,
0.0349694677,
0.3435482085,
-0.1084544957,
-0.3555705249,
-0.3720349967,
-0.0547562316,
-0.3115213513,
0.6195497513,
-0.198648572,
0.0884623304,
-0.2497639805,
0.0505231768,
0.1458187103,
0.1289472431,
0.2576722801,
0.094454281,
0.2429255992,
0.2680718303,
0.0369401984,
0.3030454814,
0.1586973071,
-0.3170248568,
0.8054746985,
0.1521747112,
-0.0587135777,
0.382928282,
0.183598429,
-0.2928482294,
0.3461204767,
0.2409612536,
0.0738401115,
0.1236339733,
0.0077698142,
-0.0241100006,
0.0774944723,
0.210963577,
-0.1711880565,
-0.1291352063,
0.129755199,
0.2963545024,
-0.0788978636,
-0.0245226678,
0.377925694,
-0.1516044438,
0.2225838751,
-0.0472585596,
-0.0163574498,
-0.1646343023,
0.2858160138,
-0.028814422,
0.4169041812,
-0.1104344279,
0.2412731051,
0.0684092343,
0.1585390568,
0.6358140111,
0.141075328,
0.00207067,
0.0277525354,
0.2584029138,
0.204713285,
-0.133551538,
0.0248884484,
-0.1483683735,
-0.0341493376,
0.424151957,
-0.0339719653,
0.1124259904,
0.3810020387,
-0.1169994324,
0.2114290893,
-0.1434636116,
-0.0326820873,
0.113899,
0.1078753397,
-0.2203143388,
-0.0274419468,
-0.1393737942,
0.064694494,
0.1614462882,
-0.2065259963,
0.431830585,
-0.1551337242,
-0.2683377266,
-0.2181942612,
-0.6080414653,
-0.0528715514,
-0.057834357,
0.3415185511,
-0.2353796661,
0.1496038884,
-0.012465273,
0.1326831728,
-0.2515058219,
-0.0333085991,
-0.0183441881,
0.1815013587,
-0.2161067873,
-0.1014050767,
0.1927569807,
0.1430154145,
0.2412783951,
-0.2968479693,
-0.015242652,
0.0636146963,
-0.0285641663,
-0.219632104,
0.34015131,
0.4856800735,
0.2516526282,
0.0694476739,
0.1663331687,
-0.3547967076,
-0.270444721,
0.4337785542,
-0.425013572,
-0.3489814997,
-0.3356359899,
0.0175476316,
-0.2543329597,
-0.0735766441,
-0.6186376214,
-0.1014826,
-0.0699016601,
-0.3670166135,
-0.0782160312,
-0.2841023207,
0.06423603,
-0.3631085455,
0.0506575815,
-0.0715754107,
-0.4645733833,
-0.1888563335,
-0.0797863081,
0.1347515285,
0.3948148787,
0.1182141751,
-0.1718866676,
0.0022835545,
0.1080578119,
-0.0528080687,
0.547783494,
-0.1122542769,
-0.4989868701,
0.0723113194,
0.1771613657,
-0.1638531685,
0.1235998422,
0.1389467716,
-0.0887593925,
0.0787824839,
0.1198104993,
0.299110353,
0.2241267711,
-0.0311968531,
-0.3039518893,
-0.2279964089,
0.1243876964,
0.1765523553,
0.0341259167,
0.0752058029,
0.1721458733,
-0.1110519692,
0.0999014899,
-0.1193796992,
-0.1763896942,
-0.0833874792,
0.4347943664,
-0.2393116504,
-0.1224692464,
-0.0388046168,
-0.1566135734,
0.0591579452,
-0.0501151308,
0.0320109464,
-0.3557713628,
0.0814567208,
-0.1497157216,
0.2907840014,
-0.0839048997,
-0.1440978497,
-0.0464460179,
0.1238589957,
-0.0979457647,
0.1587979496,
-0.1432305127,
0.0955517739,
0.0379796736,
0.0007207989,
0.0401451252,
0.4449917972,
-0.2541393042,
-0.3926948607,
-0.192711398,
0.2269201428,
0.0311875027,
0.0506372154,
-0.0732017234,
0.0104070399,
-0.1712108105,
-0.2361268103,
-0.2261317223,
-0.0824143142,
0.1172056347,
-0.432495147,
0.2024827749,
0.0100952666,
0.2400811613,
0.0297520887,
0.4912242293,
0.3507764339,
0.0764875412,
0.208092764,
0.1864203364,
0.1246434599,
0.0424823724,
0.2603166997,
0.2519018948,
-0.0253161006,
0.0110196788,
0.1153655276,
0.3049447536,
-0.0108501222,
-0.3738087714,
0.0419934243,
0.3567776382,
0.0520190969,
0.3117729723,
-0.0289481208,
-0.4617629647,
-0.0467039011,
0.3583238125,
-0.0207968242,
0.4363684952,
0.1499244422,
-0.0362162329,
-0.1294046044,
-0.1859623194,
-0.1250638813,
0.2618963122,
0.0913860723,
0.430808723,
-0.102147691,
0.2690837979,
0.0374616906,
-0.2176921219,
-0.4670946896,
-0.0732085705,
0.2502448857,
-0.1811104715,
0.3723164499,
-0.2413854003,
-0.3120752275,
-0.2413724363,
-0.6629671454,
-0.0929161757,
-0.2774530053,
-0.1045312062,
0.3510592282,
0.3144062161,
0.1537213773,
0.0195626337,
-0.1171678677,
0.0267096125,
-0.2134514004,
0.0538338348,
-0.2400432974,
-0.5079848766,
-0.0529070869,
0.2017823607,
0.239581421,
-0.0820832402,
-0.0431279726,
0.0429026447,
0.0961110368,
-0.2651327252,
0.1731734276,
0.0140413474,
0.3970396221,
0.0427247919,
0.0957161337,
-0.5648790598,
-0.4018703997,
0.2459124327,
-0.2879650593,
-0.1525152773,
0.1136722788,
-0.1439350396,
-0.2020978779,
-0.1280076951,
-0.0126298573,
-0.5180628896,
-0.20050551,
0.2381248921,
0.2256009132,
0.214619562,
0.4167954624,
0.3670896888,
0.2150800824,
0.377959162,
0.2771594524,
0.0209941622,
0.0206596721,
0.3824829161,
-0.1830043942,
-0.4004825652,
0.0813308582,
-0.2128259242,
0.1986139119,
0.1585610956,
-0.3589482903,
-0.4112568498,
-0.0249770172,
-0.0041584508,
-0.0937108621,
0.0064301873,
0.0887774453,
0.136812821,
0.1269626617,
-0.0449981801,
-0.1077919528,
-0.2498569191,
-0.0095352419,
0.0352975056,
-0.0117596928,
-0.044366762,
-0.1510632187,
0.7354232669,
-0.3515361845,
-0.1901340187,
0.431317091,
-0.1782584041,
0.2434396297,
-0.1233831421,
-0.4283338189,
-0.0222811885,
-0.0430827141,
-0.0439550504,
0.3376122415,
-0.0383599587,
-0.581355691,
-0.2494645715,
0.076508835,
-0.3812821507,
-0.1667688638,
0.1639200151,
0.2693313658,
0.0802889541,
0.0635844618,
0.0131601309,
-0.1439975053,
-0.2827735245,
-0.1369051486,
0.0401426703,
-0.295296371,
-0.0084826639,
0.2029006779,
-0.76260674,
-0.2404387593,
0.4146561325,
0.2852494717,
0.2476835549,
0.0957963467,
-0.2617837489,
0.2249392867,
0.009156378,
0.1963603646,
0.1493833959,
0.0703932196,
0.1387869418,
0.1577406824,
-0.397182405,
-0.3087799251,
-0.1306080818,
0.1879561096,
0.0510879159,
-0.1844021529,
0.0000071905,
0.0832097605,
0.3705041111,
0.1232461631,
0.0100008054,
0.2355451882,
-0.440890789,
-0.45331195,
-0.1411571354,
-0.3123081326,
-0.1471471936,
0.2033476382,
-0.0009569325,
0.1586321741,
-0.4254466295,
-0.1607302427,
0.054000102,
0.3005602658,
0.2176220715,
0.0466298647,
-0.2314697206,
-0.3876486421,
0.2860001922,
0.3504627347,
0.417173326,
0.1805098653,
-0.1292833388,
0.0856092349,
0.1106188893,
0.4416958392,
0.2249230593,
-0.0695793927,
-0.12653099,
-0.0970631093,
-0.011401928,
0.4370568991,
0.0542674251,
0.0889443681,
-0.1472563595,
-0.2033502758,
-0.1235710084,
0.6838407516,
0.2170871347,
-0.0134124896,
-0.1140809432,
-0.0493063778,
-0.1263768077,
0.5223556161,
0.0907216147,
1.1277740002,
-0.0168283861,
0.2786809504,
0.5416381359,
0.032945592,
0.1964479089,
0.0991411209,
0.1452175677,
-0.3288158476,
-0.3356904089,
-0.1960800588,
-0.1755405515,
0.1738836765,
-0.0160500724,
-0.1755656153,
0.227125138,
0.1601858437,
0.1184721887,
0.2924121022,
-0.1929073483,
-0.0311455075,
0.0040187147,
-0.7307002544,
-0.0800054818,
-0.202438727,
-0.0205601174,
-0.1546239853,
-0.2079704106,
-0.2679945529,
-0.1427354366,
-0.148925364,
0.1014360636,
-0.4181275368,
0.2435355932,
0.3503920138,
-0.4392762184,
-0.1902578026,
0.0290637612,
-0.1314984113,
-0.1416891217,
-0.0977682322,
0.0657414868,
0.2824074626,
-0.1570530832,
-0.0103085265,
0.039431449,
0.510584414,
-0.1625654399,
-0.0910734385,
0.1391652972,
-0.0809103027,
-0.2074138969,
0.2585532367,
0.3215405643,
0.3235282004,
-0.0793282837,
-0.3273748755,
-0.0956702977,
0.0364731625,
0.0193071216,
-0.0172786675,
0.0058726412,
-0.1353968084,
0.2033463269,
0.4123049676,
-0.2906858921,
0.0073784105,
0.2270128578,
0.1058577821,
0.4746153951,
0.3311204612,
-0.0327577479,
-0.1588603407,
-0.0273475032,
-0.1565061957,
-0.1622810066,
-0.6085410118,
0.1317340434,
0.136295408,
-0.0720682368,
0.154060483,
0.601354897,
0.285777837,
0.3519012332,
-0.2581934631,
-0.5689374804,
-0.0420025997,
0.4747061431,
0.0831553042,
-0.0886553004,
0.1389103383,
0.3322611749,
0.2429053187,
-0.2398932874,
-0.1197659895,
0.0642971024,
-0.0183639172,
0.1527053565,
-0.4946874976,
-0.049925562,
0.1966671497,
0.0385363437,
-0.0119264415,
-0.0322411135,
-0.1452205777,
-0.0958789438,
0.0005226653,
0.2258653641,
0.1175616086,
-0.1088456959,
-0.278796941,
-0.1316891611,
-0.0239327829,
-0.1247399449,
-0.1053431481,
-0.0863507167,
-0.1400218606,
0.0613650754,
0.3017142415,
0.2998565137,
-0.2401325107,
0.3917768598,
-0.2197307497,
0.4072298408,
0.1668903828,
0.0009867869,
0.0527913533,
0.2019522786,
0.0988079384,
-0.168295607,
-0.4009713233,
-0.0271107033,
0.4216027856,
-0.4594901502,
0.0482775085,
-0.3398029506,
0.2195535898,
0.0650743991,
0.0874506682,
-0.2689522207,
0.2230323553,
-0.0287290253,
-0.4750308394,
0.1333153993,
0.3614909053,
0.2084883451,
-0.055254437,
0.5162525177,
0.0567835718,
-0.057689175,
-0.2037609071,
0.186117366,
-0.0415658206,
0.1579684317,
0.0125616984,
0.1212776452,
0.0556828305,
0.3084236979,
0.0516013131,
0.1649402082,
0.3111004531,
0.1194987595,
-0.2167818099,
0.2646997571,
0.1837635934,
-0.1751279235,
0.2735767663,
-0.1673995405,
0.0443946086,
0.2159030437,
0.3815397918,
0.1580121964,
0.25198856,
0.6099209189,
-0.1743108481,
-0.035668008,
-0.0002903881,
0.2645959854,
-0.0474117398,
0.0049219811,
0.0395860337,
0.1466854215,
-0.1381271333,
0.0263000354,
-0.1146908998,
-0.120069854,
0.3901211619,
0.4043673277,
-0.2081293017,
-0.2560167611,
0.0645351708,
0.362275362,
0.0507557653,
-0.0023779769,
0.1668567359,
-0.0628160164,
-0.0786487907,
-0.0965231657,
0.3266451955,
0.4390621185,
0.2800064385,
-0.3530531824,
-0.2642433047,
0.0318521969,
-0.2656359375,
-0.1086102203,
-0.0279230028,
0.595580399,
0.4304152429,
0.0805692375,
0.0338496007,
0.0643020794,
0.5642914772,
0.0825946331,
-0.0700508431,
-0.0192244146,
0.3611953855,
-0.1765238792,
-0.3979324698,
-0.2160346806,
0.0124515556,
-0.3533465862,
0.1628705859,
-0.0022760381,
-0.0497093387,
-0.0197369829,
0.0037852668,
-0.0626513138,
0.0078442814,
0.4651233554,
0.5102043748,
0.5972774029,
-0.0888892636,
-0.0550816096,
-0.3583951592,
0.2906205356,
-0.1737475395,
-0.1128832847,
-0.0008925467,
0.0702752993,
0.0200493783,
0.3194639385,
-0.0278346892,
0.2376911044,
0.0380402803,
0.0470658392,
-0.4800140858,
-0.3692430258,
-0.0701727867,
-0.195754081,
-0.1922410578,
-0.276676327,
-0.0515354611,
-0.6590490341,
-0.1110505387,
-0.1873238683,
-0.4949403405,
0.0823889971,
0.5267122388,
0.4822757244,
-0.0843050927,
0.6200250387,
0.0461411551,
0.0247675236,
0.1293891519,
-0.3383227289,
0.0459195785,
0.4102164507,
0.1468989998,
0.3305650949,
-0.0211173613,
0.4421657622,
-0.0969299823,
0.4875068069,
-0.056302499,
0.0907250568,
-0.1164380014,
0.0269849766,
-0.3615285158,
-0.0369276628,
-0.2916856408,
-0.0247046463,
-0.0811633915,
0.0831445083,
-0.3877421021,
-0.3685861528,
0.5129169226,
-0.5418524146,
-0.2893012166,
0.0782181323,
0.1129933596,
0.0209934637,
-0.0002947575,
-0.5997760296,
-0.1234178171,
0.2359541953,
-0.0325047411,
-0.135968253,
0.1711454093,
-0.0848159492,
0.0840403214,
-0.2127678394,
0.6645118594,
-0.2815566063,
-0.229453072,
-0.4506705701,
-0.2799397111
] |
https://github.com/huggingface/datasets/issues/119 | 🐛 Colab : type object 'pyarrow.lib.RecordBatch' has no attribute 'from_struct_array' | Ok I just had to restart the runtime after installing `nlp`. After restarting, the version of `pyarrow` is fine. | I'm trying to load CNN/DM dataset on Colab.
[Colab notebook](https://colab.research.google.com/drive/11Mf7iNhIyt6GpgA1dBEtg3cyMHmMhtZS?usp=sharing)
But I meet this error :
> AttributeError: type object 'pyarrow.lib.RecordBatch' has no attribute 'from_struct_array'
| 19 | 🐛 Colab : type object 'pyarrow.lib.RecordBatch' has no attribute 'from_struct_array'
I'm trying to load CNN/DM dataset on Colab.
[Colab notebook](https://colab.research.google.com/drive/11Mf7iNhIyt6GpgA1dBEtg3cyMHmMhtZS?usp=sharing)
But I meet this error :
> AttributeError: type object 'pyarrow.lib.RecordBatch' has no attribute 'from_struct_array'
Ok I just had to restart the runtime after installing `nlp`. After restarting, the version of `pyarrow` is fine. | [
-0.2835428715,
0.044781588,
0.0172027331,
0.226200223,
0.1537765563,
-0.0492426232,
0.2736165524,
0.1078586802,
-0.0629181787,
0.0287807696,
0.0899543539,
0.4489679933,
-0.3376853466,
0.2220074683,
0.2667759955,
-0.1032790318,
0.040154621,
0.3651624322,
0.1162212268,
-0.0348989144,
-0.1869617552,
0.1577654481,
-0.4699400365,
0.0938813016,
-0.2458849847,
-0.1728025824,
0.0579282939,
0.0365405269,
-0.0127621191,
-0.4258049428,
0.4096871316,
-0.2087131292,
0.2067957073,
0.0492358282,
-0.0001234279,
-0.000960438,
0.346847713,
-0.1835939735,
-0.3806511462,
-0.2610021234,
-0.0870176703,
-0.0719363391,
0.5392196178,
-0.1955817342,
0.0109689878,
-0.2137584537,
0.0638212711,
0.1740894467,
0.0559797771,
0.2633333206,
0.1195242479,
0.1398738921,
0.243753925,
0.0178373791,
0.1536605656,
0.187236324,
-0.2336518764,
0.7389295101,
0.162229985,
-0.1054732651,
0.369130969,
0.0969698727,
-0.2743653655,
0.2058786601,
0.3785059452,
0.0671670586,
0.0230646655,
-0.0656103194,
-0.0372650772,
0.1121521741,
0.302211076,
-0.2212340236,
-0.0021401416,
0.1088492274,
0.4271303415,
-0.2622927129,
0.0225426275,
0.3496266305,
-0.193069458,
0.1046568677,
-0.1546208262,
-0.1691000462,
-0.1028714404,
0.2732112408,
0.0031535886,
0.2862987518,
-0.0820576996,
0.1322263628,
0.2594427764,
0.1244037151,
0.5737618804,
0.1832591295,
-0.0675808936,
0.0166732017,
0.1255556643,
0.116664879,
-0.1151923016,
0.0048529757,
-0.1534456611,
-0.2217022181,
0.3211809397,
-0.1065699682,
0.1329922378,
0.3500324786,
-0.0483984351,
0.3419390619,
-0.0776826367,
-0.0088761635,
0.0688885599,
0.0841946378,
-0.3237354159,
0.026187839,
-0.2106641233,
0.0583895631,
0.1557640731,
-0.1791134775,
0.3839302361,
-0.1505263895,
-0.1758472323,
-0.2368792444,
-0.533542037,
-0.0388215818,
0.1062477827,
0.4182966352,
-0.1107631698,
0.0536779165,
0.0200203322,
0.0310179256,
-0.1992996931,
-0.1668625474,
-0.1107778028,
0.3120346069,
-0.349057883,
-0.0040701153,
0.2279455662,
0.1600240916,
0.1629525423,
-0.2321519107,
0.0262950249,
0.0044045663,
-0.0706850067,
-0.2387652695,
0.2301056236,
0.5033143759,
0.1659331471,
-0.0782708749,
0.1211171523,
-0.3699181676,
-0.1916522831,
0.554893434,
-0.391585201,
-0.4941690862,
-0.3462761343,
0.0253201835,
-0.3040958047,
-0.1140842661,
-0.7277988195,
0.0179968905,
-0.0531850606,
-0.3441115022,
-0.1538481563,
-0.3110785186,
0.0408109054,
-0.2952146232,
0.1350387037,
0.0812665001,
-0.482912004,
-0.1567834914,
-0.0012834971,
0.0355812274,
0.4002496898,
0.0959423259,
-0.2945822775,
0.1581177562,
0.0410974845,
-0.0093369903,
0.4867191017,
-0.0099853752,
-0.3840336204,
-0.0328743197,
0.1367971897,
-0.1818749309,
-0.0236536879,
0.131323263,
0.01617839,
0.1076827124,
0.0527138859,
0.3254430592,
0.1134635657,
0.0453517251,
-0.3021542132,
-0.1602827013,
0.2848572731,
0.272996217,
0.1056292579,
0.2323066443,
0.0395341404,
0.0595539697,
0.1080310121,
-0.1597008258,
-0.2057555169,
-0.1156278551,
0.4424151778,
-0.259305656,
-0.0949247852,
-0.1033823043,
-0.200037539,
0.0993314907,
0.0219704807,
0.1486600041,
-0.2642742693,
0.0987183452,
-0.0018056214,
0.2425143123,
-0.0544150323,
-0.0932021886,
-0.0472624935,
0.1068521068,
-0.1139087528,
0.0855095685,
-0.2942037582,
0.1732182503,
-0.0855096132,
-0.0591215566,
0.1172951385,
0.4961349964,
-0.2210563123,
-0.4288744628,
-0.14419128,
0.2088763863,
0.0196503587,
-0.001765182,
-0.1202740297,
0.0807259679,
-0.1485062391,
-0.2879563272,
-0.2266211212,
-0.076342985,
0.0713799745,
-0.3917329907,
0.1217707619,
-0.2625127733,
0.189256385,
0.011122412,
0.6011770368,
0.231267482,
0.0353087075,
0.0962721258,
0.1675922275,
0.0979727805,
0.1538680345,
0.0913398936,
0.41081056,
0.0572187193,
0.0587005764,
0.0357717909,
0.1198372096,
0.0239027105,
-0.530084908,
0.0398728102,
0.4848030806,
0.0172757823,
0.2846192718,
0.0506548882,
-0.3280877173,
-0.091134958,
0.256359905,
0.0343007222,
0.4824925363,
0.1402959675,
-0.2031363547,
-0.0206074715,
-0.165212363,
-0.1110758111,
0.2602688372,
0.0133423517,
0.537263751,
-0.1529496312,
0.1179371402,
0.0928596184,
-0.2979286015,
-0.5027726889,
0.0765950531,
0.4357074201,
-0.1862329096,
0.2490390092,
-0.2526432276,
-0.4363844097,
-0.1391376704,
-0.4521752,
-0.0466638692,
-0.1742420495,
-0.1480227858,
0.2751823366,
0.3541747332,
0.1759913564,
0.055683516,
0.1341070682,
-0.0363580994,
-0.0861923993,
0.1157096401,
-0.2787902653,
-0.4251942933,
-0.0438835435,
0.3219064176,
0.2654452026,
-0.1445865631,
-0.0429667607,
0.060935244,
0.2248013914,
-0.2154297382,
0.1809119433,
0.0597255416,
0.3478372693,
0.0290864911,
0.1726852655,
-0.6037278771,
-0.4763200879,
0.1973821819,
-0.2548492551,
-0.1514296979,
0.2011634856,
-0.1185198277,
-0.2979260683,
-0.1392681599,
-0.0399453603,
-0.5196633935,
-0.2402305305,
0.1384039521,
0.0515497625,
0.2625724375,
0.4227851927,
0.2467347085,
0.2516055405,
0.2856171131,
0.278249383,
0.0416848175,
-0.0272826049,
0.2060463578,
-0.226669848,
-0.3076449335,
0.1467668861,
-0.177543804,
0.1536620855,
0.0756454021,
-0.5399980545,
-0.390514344,
-0.011958045,
-0.1464469284,
-0.1086417437,
-0.1064013094,
0.1131100357,
0.1331324577,
0.1270312667,
0.0461500995,
-0.2463927716,
-0.1610317379,
0.1056983396,
0.0864792541,
-0.0364231914,
-0.0304752383,
-0.2092967331,
0.569378674,
-0.4026013911,
-0.2776997983,
0.4051410854,
-0.144075498,
0.2460667491,
-0.0895985663,
-0.5039295554,
0.0884150714,
0.0083329324,
-0.0451652184,
0.3507304192,
-0.1640149057,
-0.6471258998,
-0.2834519744,
-0.0200890917,
-0.3335894644,
-0.1855002642,
0.230166316,
0.221015498,
0.1495529115,
0.016024841,
-0.1176652014,
-0.1176843271,
-0.2408017069,
-0.2220292836,
0.0213850569,
-0.1458093971,
-0.0059302868,
0.0796285346,
-0.8123748302,
-0.165966332,
0.2598355412,
0.234223634,
0.3524182439,
-0.0374382213,
-0.0922249183,
0.1741700023,
0.0196220875,
0.3843093514,
0.1001143456,
0.0802242532,
0.1886648983,
0.0988740474,
-0.1602254659,
-0.276057601,
-0.0472394638,
0.2767830789,
0.0847612843,
-0.0996067077,
-0.0005060951,
0.125831157,
0.435641855,
0.1801765263,
-0.0695371628,
0.0788684711,
-0.4101524353,
-0.49194327,
-0.1469110847,
-0.1934158504,
-0.1702409983,
0.3370667696,
0.0920145884,
0.1263027936,
-0.3354412913,
-0.2364564538,
0.0757111534,
0.3256473839,
0.2640869319,
0.245394513,
-0.1104423925,
-0.4127435684,
0.1787741035,
0.3454216421,
0.4031329155,
0.0899152458,
-0.0048782127,
0.1280053258,
0.099611558,
0.5552995801,
0.2658323646,
-0.1084294245,
-0.0626027882,
-0.0699038729,
0.0412329026,
0.4241518676,
0.0864907578,
0.0685790926,
-0.0943542272,
-0.2509577572,
-0.1393637061,
0.4788406789,
0.0622920543,
0.0435182825,
-0.1303564608,
0.0010191584,
-0.1650122106,
0.5379964709,
0.1355879903,
1.2302484512,
-0.0798117444,
0.1135107651,
0.427278012,
0.0972904712,
0.3440582156,
0.1468311399,
0.2983438075,
-0.3297368586,
-0.540335536,
-0.1466912925,
-0.2585092783,
0.108406499,
-0.0777802393,
-0.2165907323,
0.0931950286,
0.1336765885,
0.0605882742,
0.2407917082,
-0.072450377,
0.1816533208,
-0.0860438049,
-0.6862669587,
-0.0634383336,
-0.3170796037,
-0.0801265836,
-0.1443851292,
-0.2058358788,
-0.0329396278,
0.0021593249,
-0.2719334066,
0.168413192,
-0.351605773,
0.1474135965,
0.381662637,
-0.2477460951,
-0.0673007444,
0.098350063,
-0.0222044997,
-0.0337440223,
-0.0974003673,
0.0890251547,
0.2403404564,
-0.1929231733,
-0.0155286761,
0.0943442807,
0.5773584247,
-0.1882115155,
-0.1423969567,
0.1596546322,
-0.029780807,
-0.2199527621,
0.2198912352,
0.1586841941,
0.1554418504,
-0.071424745,
-0.3738241196,
0.0186095685,
0.0511663519,
-0.0071010226,
0.0193584524,
0.0567209013,
-0.2727185786,
0.2915139198,
0.360283047,
-0.2769804597,
0.0117140487,
0.1982058436,
0.216607213,
0.5088036656,
0.3107893467,
0.1555577517,
-0.1226475239,
-0.0622746758,
-0.2113237083,
-0.1434187293,
-0.5613013506,
0.2085902244,
0.214437753,
-0.0192413982,
0.1904453337,
0.6016796231,
0.2383435816,
0.4067665339,
-0.1961830258,
-0.5690780282,
-0.0830448493,
0.3884066045,
0.070428066,
-0.0219320748,
0.2153733969,
0.4697772563,
0.2040326446,
-0.041186031,
-0.1725407094,
0.027670607,
-0.2810370326,
0.1568968594,
-0.3452843428,
-0.0871521905,
0.148828119,
-0.0540606864,
-0.008037026,
0.0230865162,
-0.0838177502,
-0.1111237854,
0.0463640876,
0.2178962082,
0.1191330552,
-0.0201097019,
-0.2711078525,
-0.2300772667,
-0.0756809711,
-0.055360537,
-0.1189888716,
-0.1715864837,
-0.2497190535,
0.0661627352,
0.2646787167,
0.1477046162,
-0.2316977978,
0.3580916226,
-0.1722727418,
0.3114064038,
0.1581254005,
0.0033551636,
0.0392440818,
0.1404025704,
0.0489908494,
-0.1449488699,
-0.4863517284,
-0.0621225759,
0.4573002756,
-0.4543424249,
0.0370990448,
-0.2756277025,
0.1962376237,
-0.0416429974,
0.0504071154,
-0.1343410462,
0.3328247666,
-0.0076250485,
-0.4974964559,
0.0592228584,
0.3732173443,
0.2192757726,
-0.1509864926,
0.5697950125,
0.0828200653,
-0.088012889,
-0.2487199306,
0.1719938815,
0.1382820755,
0.1886370629,
0.0161366835,
0.0571783334,
-0.1314996332,
0.186376363,
0.0826921687,
0.2691396177,
0.2436383963,
0.2580544949,
-0.2570931911,
0.1916870028,
0.0885264277,
-0.1264071316,
0.2733307481,
-0.268920809,
0.197731629,
0.3990252018,
0.3675202727,
0.020429315,
0.0263473615,
0.596452415,
-0.1848977506,
-0.1633170545,
0.0365583971,
0.4003456533,
-0.1985927522,
0.2459596694,
0.013610404,
0.1564842612,
-0.1456434429,
0.0391397327,
-0.0670529306,
-0.1625819355,
0.3168178201,
0.3569121063,
-0.2791525424,
-0.1688154042,
0.0278109349,
0.3662380576,
-0.0032699683,
-0.0418249182,
0.2396449,
-0.1418606341,
-0.1152705774,
-0.0356536917,
0.3584589362,
0.3520519137,
0.4302455783,
-0.2706185281,
-0.1951932311,
0.1002784595,
-0.1823780686,
-0.0459234677,
-0.0653903633,
0.7172915339,
0.5224658847,
0.0196236353,
0.0389849097,
0.0533649102,
0.5616176724,
0.1299624294,
0.0132285468,
0.0963449776,
0.2652918994,
0.022060629,
-0.3668478131,
-0.2870572805,
0.0700065568,
-0.3549192846,
0.1026444137,
0.0585617609,
-0.1038261428,
0.0053130691,
0.0027305777,
-0.0356078371,
0.0250226986,
0.5348513126,
0.4581923485,
0.592117548,
-0.2136775702,
-0.1385887116,
-0.420838505,
0.2827702165,
-0.1084439307,
-0.1752830744,
0.1029846296,
0.0226849131,
-0.054675635,
0.2285360992,
-0.1192308441,
0.3515228927,
-0.0360824652,
-0.0729370862,
-0.5151737928,
-0.3620359004,
-0.1695678085,
-0.1291204989,
-0.244566977,
-0.1161459982,
0.0950785428,
-0.7269616723,
-0.0848274454,
-0.162462458,
-0.4739106596,
-0.0573200285,
0.580080986,
0.3454461992,
-0.1207526177,
0.7166891694,
0.0790599659,
0.138137579,
0.2532732189,
-0.3978871703,
-0.0601039231,
0.2693286836,
0.2259959579,
0.321933955,
-0.0466300212,
0.5462446213,
-0.2087994665,
0.3317686617,
-0.0491802581,
0.205409959,
-0.2002654523,
0.0489458963,
-0.2735574245,
-0.0352358632,
-0.0208944157,
0.0293857474,
-0.1030027941,
-0.0169485081,
-0.3844216168,
-0.2835634351,
0.6003674865,
-0.4355753362,
-0.3089821637,
0.0686279461,
0.0962732136,
-0.025247613,
-0.0457263961,
-0.5969153047,
-0.1464794576,
0.1604410559,
0.0224277787,
-0.1952165365,
0.2663177848,
-0.1609739363,
0.1292504966,
-0.1807332933,
0.480912447,
-0.2284745574,
-0.253415525,
-0.4889085293,
-0.2165663689
] |
https://github.com/huggingface/datasets/issues/116 | 🐛 Trying to use ROUGE metric : pyarrow.lib.ArrowInvalid: Column 1 named references expected length 534 but got length 323 | Sure, [here is a Colab notebook](https://colab.research.google.com/drive/1uiS89fnHMG7HV_cYxp3r-_LqJQvNNKs9?usp=sharing) reproducing the error.
> ArrowInvalid: Column 1 named references expected length 36 but got length 56 | I'm trying to use rouge metric.
I have to files : `test.pred.tokenized` and `test.gold.tokenized` with each line containing a sentence.
I tried :
```python
import nlp
rouge = nlp.load_metric('rouge')
with open("test.pred.tokenized") as p, open("test.gold.tokenized") as g:
for lp, lg in zip(p, g):
rouge.add(lp, lg)
```
But I meet following error :
> pyarrow.lib.ArrowInvalid: Column 1 named references expected length 534 but got length 323
---
Full stack-trace :
```
Traceback (most recent call last):
File "<stdin>", line 3, in <module>
File "/home/me/.venv/transformers/lib/python3.6/site-packages/nlp/metric.py", line 224, in add
self.writer.write_batch(batch)
File "/home/me/.venv/transformers/lib/python3.6/site-packages/nlp/arrow_writer.py", line 148, in write_batch
pa_table: pa.Table = pa.Table.from_pydict(batch_examples, schema=self._schema)
File "pyarrow/table.pxi", line 1550, in pyarrow.lib.Table.from_pydict
File "pyarrow/table.pxi", line 1503, in pyarrow.lib.Table.from_arrays
File "pyarrow/public-api.pxi", line 390, in pyarrow.lib.pyarrow_wrap_table
File "pyarrow/error.pxi", line 85, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Column 1 named references expected length 534 but got length 323
```
(`nlp` installed from source) | 22 | 🐛 Trying to use ROUGE metric : pyarrow.lib.ArrowInvalid: Column 1 named references expected length 534 but got length 323
I'm trying to use rouge metric.
I have to files : `test.pred.tokenized` and `test.gold.tokenized` with each line containing a sentence.
I tried :
```python
import nlp
rouge = nlp.load_metric('rouge')
with open("test.pred.tokenized") as p, open("test.gold.tokenized") as g:
for lp, lg in zip(p, g):
rouge.add(lp, lg)
```
But I meet following error :
> pyarrow.lib.ArrowInvalid: Column 1 named references expected length 534 but got length 323
---
Full stack-trace :
```
Traceback (most recent call last):
File "<stdin>", line 3, in <module>
File "/home/me/.venv/transformers/lib/python3.6/site-packages/nlp/metric.py", line 224, in add
self.writer.write_batch(batch)
File "/home/me/.venv/transformers/lib/python3.6/site-packages/nlp/arrow_writer.py", line 148, in write_batch
pa_table: pa.Table = pa.Table.from_pydict(batch_examples, schema=self._schema)
File "pyarrow/table.pxi", line 1550, in pyarrow.lib.Table.from_pydict
File "pyarrow/table.pxi", line 1503, in pyarrow.lib.Table.from_arrays
File "pyarrow/public-api.pxi", line 390, in pyarrow.lib.pyarrow_wrap_table
File "pyarrow/error.pxi", line 85, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Column 1 named references expected length 534 but got length 323
```
(`nlp` installed from source)
Sure, [here is a Colab notebook](https://colab.research.google.com/drive/1uiS89fnHMG7HV_cYxp3r-_LqJQvNNKs9?usp=sharing) reproducing the error.
> ArrowInvalid: Column 1 named references expected length 36 but got length 56 | [
-0.0459096767,
0.1151691675,
-0.0150177768,
0.2721494138,
0.2404059023,
-0.263548255,
0.0431785174,
0.2833087742,
-0.4245962203,
0.2897651792,
-0.1165680662,
0.613515079,
0.002956209,
-0.4883935153,
0.0284865648,
-0.1368684471,
-0.0081864297,
0.2913642526,
0.4083459675,
0.1040180251,
-0.2367762774,
0.4247639179,
-0.2803149819,
0.2404750288,
-0.2772249281,
-0.0431662798,
-0.1409140378,
0.0241194349,
-0.3879238367,
-0.4071285427,
-0.0969800875,
-0.1294226944,
0.1402387768,
0.2845338583,
-0.0001243008,
-0.1726978272,
0.2185770273,
-0.0763505325,
-0.0784562081,
-0.355471164,
0.0908432826,
-0.4335227609,
0.4626730978,
-0.4217269421,
0.1493797004,
-0.4445480406,
-0.2770911455,
0.2346976101,
0.3155119121,
0.4180500209,
0.0594261251,
0.0443488732,
0.1355343163,
-0.14069812,
0.3923070729,
-0.3124580085,
-0.0148893828,
0.9393876195,
0.4045061171,
-0.1233437285,
0.00884513,
0.283978641,
0.0636884868,
0.0859925896,
0.3879432976,
-0.030290179,
0.2522355616,
0.2284368575,
-0.0218093395,
0.2644379139,
-0.101903148,
-0.4539360702,
-0.1760016233,
-0.0415138341,
0.2107227892,
-0.8138438463,
-0.1296513081,
0.2143553942,
-0.0087866755,
-0.0206668191,
-0.167119056,
0.0948060751,
-0.1624213904,
0.2428711951,
0.0433369838,
0.1015646085,
-0.1131136939,
0.1020045206,
0.1957405806,
-0.0519758463,
-0.100067623,
0.2911120355,
-0.3222542107,
0.02516995,
-0.2827193737,
0.1632132679,
-0.0535844304,
0.2278418392,
0.151659891,
-0.0624881238,
0.4369317889,
-0.1569254547,
0.0929233432,
0.1149881035,
-0.2760959566,
0.6949791908,
0.2233356237,
0.1840930432,
-0.1416843832,
0.1369487643,
-0.0960069522,
-0.2293880582,
-0.186022535,
-0.4802269638,
0.0426831804,
0.2551446557,
-0.0416477732,
-0.1482475698,
-0.3896526694,
-0.1070984304,
-0.4597562551,
-0.0251152012,
0.1216921508,
0.3067444861,
-0.1807581186,
0.1014438048,
0.0864018351,
0.3240641952,
-0.1184369326,
-0.1620373875,
-0.0594236031,
0.2187089175,
-0.5450319648,
0.2406786084,
0.100699462,
0.4013178647,
0.2102111131,
-0.1323681027,
0.2888315916,
-0.3561971486,
0.0973297879,
-0.2760157585,
-0.1638507396,
-0.2382120341,
-0.0878213421,
-0.1219403148,
0.0132115707,
-0.5898448229,
-0.1037445962,
0.1584692895,
-0.3831335902,
-0.174361065,
-0.1052632257,
0.0049846978,
-0.1634495705,
0.1234572232,
0.0272969902,
0.2212394327,
0.2564774156,
-0.4194495976,
0.1893671453,
-0.113066949,
-0.1574190259,
-0.2067608088,
0.1711914986,
-0.0747365654,
-0.3710002601,
-0.0177111086,
0.4077172875,
0.5180054307,
0.2838174105,
0.5089688301,
0.0264925305,
0.326120913,
0.0735976696,
-0.0801497921,
0.6995399594,
-0.630097568,
-0.290577203,
0.0334737524,
-0.08518897,
-0.3690971136,
0.2691862583,
-0.2439285219,
0.0441663712,
-0.0133523606,
0.5227805972,
-0.1308210343,
0.0557933375,
-0.2241366059,
-0.3720875978,
0.0364080071,
0.0222387835,
-0.0950127169,
-0.2133186758,
-0.0826493278,
-0.0538706221,
-0.1896584183,
0.3228633404,
-0.1274835914,
0.0176561214,
0.3466717601,
-0.0873063505,
0.1222029179,
0.2171978354,
0.0220380444,
-0.0281906612,
-0.2014203966,
-0.6301741004,
-0.1126512438,
-0.4318722486,
-0.3525094688,
-0.3410969973,
0.1011865586,
0.3651587367,
-0.0013933817,
-0.0714072958,
0.0488338284,
0.0420672819,
0.1768307537,
0.0685998276,
-0.2902735174,
-0.2386570424,
0.0704259425,
-0.0020120658,
-0.1128122434,
-0.115313217,
-0.3228532374,
0.2446821332,
0.5144621134,
0.2985489964,
0.2018041462,
-0.0622774735,
0.2856212854,
0.0043484801,
-0.065483816,
-0.0669204444,
0.1077352241,
0.2339476943,
-0.3387620747,
0.072614111,
-0.1530008763,
0.2296395451,
-0.1233318076,
-0.0984922722,
0.2231535614,
-0.279037565,
0.2572298348,
-0.115382731,
-0.215266183,
0.0184746273,
0.0237297732,
-0.2799609601,
-0.1046838239,
0.2680797279,
0.2856265306,
0.171165064,
0.0939780623,
-0.0549583733,
-0.13995336,
0.5200074911,
0.2920410037,
-0.0245911982,
0.0778038204,
-0.1622530073,
0.007155085,
0.1081200615,
-0.4270862043,
0.3236560524,
0.3229581714,
-0.0640647188,
-0.0057759313,
-0.0237932913,
-0.371956557,
-0.060403496,
0.1462894529,
0.0762991086,
0.3581413925,
0.5070212483,
-0.0947276056,
-0.0556468256,
-0.3841946721,
0.1101763621,
0.0933389962,
-0.2602671683,
0.1308111548,
-0.0515707545,
-0.1690996438,
-0.0970342457,
-0.6012462974,
0.1804674864,
-0.0802454352,
-0.0359986685,
0.0063300855,
0.1556383222,
0.2581207752,
0.3968036473,
0.1313306093,
0.157966584,
0.012058665,
-0.0660514161,
-0.3850287199,
-0.1293901652,
-0.0779899359,
-0.0796598792,
0.0326126367,
0.0482354462,
-0.1015557349,
0.0065348642,
0.103342101,
-0.4134377241,
0.0513205491,
0.007253489,
0.1206090972,
0.2042335868,
-0.1892070323,
-0.4775633514,
0.0355367884,
0.4449719489,
0.1436421424,
-0.0621073507,
0.1123719811,
-0.3018161058,
-0.0244502984,
-0.0187462103,
0.0003440274,
0.0026019274,
-0.5757026076,
0.4874511063,
0.1324091852,
0.0313990451,
0.2158801854,
0.1193304211,
0.1397524029,
0.1555221677,
0.1511527002,
0.1885482073,
0.2938365936,
0.3376951814,
-0.2272806019,
-0.3196128905,
-0.0752935857,
-0.1763195843,
0.0593583323,
-0.1004609019,
-0.0242940132,
-0.449742794,
0.0767453462,
0.0626863986,
-0.1489299834,
-0.0185110439,
0.2936416864,
-0.1113280654,
-0.0409676991,
-0.2013935149,
-0.0951747224,
0.2215321958,
-0.1303655356,
0.3529987633,
-0.0387266167,
0.288271457,
0.0644609779,
0.2265388966,
0.2385143042,
-0.0950825587,
0.1198190376,
-0.2171100527,
0.058107473,
-0.0009195502,
-0.0051778178,
-0.1468930393,
0.032314904,
-0.0584758297,
0.3397777975,
0.0088870628,
0.054376632,
0.04461281,
0.0703491718,
-0.1768776029,
0.0167973787,
0.1315167695,
-0.343131572,
0.1045738161,
0.0665164888,
-0.2047303617,
-0.1528977156,
-0.1957310438,
-0.0199008603,
-0.1526230723,
-0.1908107102,
0.0952244103,
-0.082950525,
-0.3003456295,
-0.5376388431,
0.4880764186,
0.2718829811,
0.0394323431,
0.0597289801,
0.1059131622,
0.1667041034,
-0.1199394017,
0.2913590372,
0.1649094671,
-0.1399455369,
0.3811171055,
0.0911114886,
-0.7312482595,
0.0372769348,
-0.1806713045,
0.1050301865,
0.4936746359,
0.1741347611,
-0.3769853413,
0.2013273388,
0.2614141405,
-0.020131465,
-0.0615324154,
-0.117947191,
-0.3705136478,
-0.2486401349,
0.0301803295,
0.0106778191,
0.1410235614,
0.5643627048,
0.3776752949,
-0.092902787,
0.0685541108,
-0.2486027628,
0.0542127304,
0.0503445268,
0.3621605635,
-0.0843936875,
-0.2571892142,
-0.211995095,
0.1519053131,
0.0750095993,
0.1960413009,
-0.1450621337,
-0.3731329143,
0.0012288784,
-0.1362249255,
0.4701751471,
0.2824200392,
-0.1490754783,
0.1118766516,
-0.4701266885,
0.2755336165,
0.2338599712,
0.158136934,
0.2137176245,
-0.0551840439,
-0.1201670691,
-0.0093365647,
0.3632325232,
0.2750258148,
-0.1148686334,
0.3932287395,
-0.1611336917,
-0.1602805108,
0.3675290048,
0.012702846,
1.2714102268,
0.0975429565,
0.0793967694,
0.3910428286,
-0.1035359502,
0.5623703003,
-0.4354496896,
0.1505537778,
-0.337223947,
-0.0208263062,
0.1981647462,
-0.1487898678,
-0.2604247034,
0.0542307161,
-0.190270707,
0.1042469516,
0.0511453487,
-0.0547913387,
0.0623583123,
0.1138230413,
0.0617330298,
-0.0636808723,
-0.1832270324,
-0.0996170416,
-0.0773857087,
-0.2662289143,
-0.2663743794,
-0.1875156164,
-0.4289106131,
-0.1219713911,
-0.0295868665,
-0.0172173139,
-0.3545281589,
0.1140031144,
0.2464302629,
-0.3073642552,
-0.2577999532,
0.42451635,
0.1749412566,
0.0302232075,
-0.1034401879,
0.3559257388,
-0.0102874897,
-0.2247639745,
0.0141632687,
0.1017746553,
-0.078961648,
-0.1271597594,
-0.0435361899,
0.1797400713,
0.0908437148,
-0.2109034061,
0.0210868847,
0.1918749809,
0.1124202535,
-0.0391529873,
-0.0934676677,
-0.1108880192,
-0.0429539345,
-0.1440029144,
0.0203763079,
0.1023553908,
-0.2453036308,
0.1471948624,
0.1183387116,
-0.4757423997,
0.1392678022,
0.1966350228,
0.027529994,
0.0539887771,
0.1919197887,
0.1149581745,
0.0123341763,
-0.0416638032,
-0.2283476144,
-0.1194727123,
-0.6108918786,
0.2342525423,
0.2643495798,
0.2683447599,
0.1053334773,
0.7349306345,
0.4408644438,
0.31016469,
0.1042268425,
-0.4634285867,
-0.1832593828,
0.3580045998,
-0.0033853913,
0.0080309333,
0.0990696326,
0.2240067869,
0.1526343077,
0.4532803893,
-0.1785029173,
-0.1258414537,
-0.2407491356,
0.264547497,
-0.0056412304,
-0.1428900212,
-0.0223507024,
0.2614608705,
-0.0678479597,
0.4470048547,
-0.0577816814,
-0.126111716,
-0.1382829547,
0.1772471517,
0.1550780535,
0.1593079716,
-0.1568725407,
-0.0480728075,
0.1710493863,
-0.291918546,
-0.1099197194,
0.0438836664,
0.0842030793,
0.0323541984,
-0.0337266102,
0.2420573682,
-0.0670756027,
0.1501718014,
0.0654650331,
0.1689886302,
-0.119560428,
0.0390875004,
0.1156013012,
0.012183886,
-0.069227159,
-0.1027959734,
0.0157409944,
-0.164098531,
0.0536841825,
-0.062091317,
0.1002120152,
-0.3933309913,
0.268068701,
0.222345978,
-0.1340811104,
0.0152252754,
-0.1619177759,
0.0142182559,
-0.2476194948,
0.1726639718,
-0.1349609494,
0.1790928543,
-0.0944841057,
0.1975021958,
0.2050221115,
-0.1447598189,
-0.0439682044,
-0.0366870463,
0.0615687408,
0.0083009414,
-0.4156884849,
-0.0991103873,
0.0441411696,
0.0513109155,
0.5212091804,
0.3527197242,
0.3001064062,
0.2329672128,
-0.0012871324,
0.1306745112,
0.246890977,
0.1943111718,
-0.1645901799,
0.0354854055,
-0.3330205381,
0.2299550027,
0.291893214,
-0.3531014621,
-0.2284731865,
0.4662561119,
0.3584325612,
-0.0544254109,
0.2475522012,
0.3130889833,
0.0678820536,
-0.2025712579,
-0.5934310555,
0.0560357347,
-0.2338708043,
-0.228530407,
0.0355643444,
0.3799596727,
0.2097530365,
0.1671242714,
0.0456028469,
-0.3228610754,
-0.059786085,
0.3357735872,
0.2310251743,
-0.3742824793,
0.4791252017,
0.0166128594,
0.1928633451,
0.0226327516,
0.3341036141,
0.5191258192,
0.3489402235,
-0.0174194109,
-0.3148102462,
-0.5039314628,
0.0106528131,
0.0554373749,
0.3430716693,
0.655264914,
0.0480340198,
0.2076672614,
-0.0326168351,
-0.1121251658,
0.5894536972,
-0.073518917,
-0.1071109697,
0.003750344,
0.205131501,
-0.0056833187,
-0.3008822203,
-0.3026952147,
-0.0356635787,
-0.3989061415,
0.11450506,
-0.1866626292,
-0.1142667904,
0.1240374297,
-0.2243679315,
-0.0001947248,
0.0147107653,
0.0164381433,
0.4261870384,
0.443774581,
-0.3615903556,
-0.4749903977,
-0.2958476841,
0.060512498,
-0.2756671011,
-0.2944255471,
0.0337538421,
0.2232062221,
-0.0990085453,
0.1113526225,
-0.105138883,
0.7662668824,
-0.2335248291,
0.2276915908,
-0.4450762868,
0.2036020458,
-0.0293539241,
-0.1003778279,
0.0260399804,
-0.0760597065,
-0.0351047926,
-0.3225161433,
-0.1146168113,
-0.1549393833,
-0.2491512448,
0.1952333897,
0.673479259,
0.6036806703,
-0.028457569,
0.6332762241,
0.1161305755,
0.2928338647,
0.1177118719,
-0.1052153334,
0.093041718,
0.2406360209,
0.1585989147,
0.1079435349,
-0.2546257675,
0.0573631562,
0.1524137557,
0.5619993806,
-0.2601135969,
-0.4716577828,
0.0167367682,
-0.1678408831,
-0.0719887987,
0.1382742375,
-0.1904108971,
0.1949079037,
0.0541489348,
0.2557867467,
-0.278621763,
-0.4741183519,
0.5731933713,
-0.4175244272,
-0.2266869396,
0.4212970734,
0.4433151484,
0.5793070793,
-0.1704611331,
-0.2849518955,
-0.1100479886,
0.4246285558,
0.3773313463,
-0.2665537596,
0.1867272854,
-0.0989619493,
0.1017553657,
-0.1822585464,
-0.0169708095,
-0.1173921674,
-0.021397382,
-0.4595494568,
-0.4233962893
] |
https://github.com/huggingface/datasets/issues/116 | 🐛 Trying to use ROUGE metric : pyarrow.lib.ArrowInvalid: Column 1 named references expected length 534 but got length 323 | This is because `add` takes as input a batch of elements and you provided only one. I think we should have `add` for one prediction/reference and `add_batch` for a batch of predictions/references. This would make it more coherent with the way we use Arrow.
Let me do this change | I'm trying to use rouge metric.
I have to files : `test.pred.tokenized` and `test.gold.tokenized` with each line containing a sentence.
I tried :
```python
import nlp
rouge = nlp.load_metric('rouge')
with open("test.pred.tokenized") as p, open("test.gold.tokenized") as g:
for lp, lg in zip(p, g):
rouge.add(lp, lg)
```
But I meet following error :
> pyarrow.lib.ArrowInvalid: Column 1 named references expected length 534 but got length 323
---
Full stack-trace :
```
Traceback (most recent call last):
File "<stdin>", line 3, in <module>
File "/home/me/.venv/transformers/lib/python3.6/site-packages/nlp/metric.py", line 224, in add
self.writer.write_batch(batch)
File "/home/me/.venv/transformers/lib/python3.6/site-packages/nlp/arrow_writer.py", line 148, in write_batch
pa_table: pa.Table = pa.Table.from_pydict(batch_examples, schema=self._schema)
File "pyarrow/table.pxi", line 1550, in pyarrow.lib.Table.from_pydict
File "pyarrow/table.pxi", line 1503, in pyarrow.lib.Table.from_arrays
File "pyarrow/public-api.pxi", line 390, in pyarrow.lib.pyarrow_wrap_table
File "pyarrow/error.pxi", line 85, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Column 1 named references expected length 534 but got length 323
```
(`nlp` installed from source) | 49 | 🐛 Trying to use ROUGE metric : pyarrow.lib.ArrowInvalid: Column 1 named references expected length 534 but got length 323
I'm trying to use rouge metric.
I have to files : `test.pred.tokenized` and `test.gold.tokenized` with each line containing a sentence.
I tried :
```python
import nlp
rouge = nlp.load_metric('rouge')
with open("test.pred.tokenized") as p, open("test.gold.tokenized") as g:
for lp, lg in zip(p, g):
rouge.add(lp, lg)
```
But I meet following error :
> pyarrow.lib.ArrowInvalid: Column 1 named references expected length 534 but got length 323
---
Full stack-trace :
```
Traceback (most recent call last):
File "<stdin>", line 3, in <module>
File "/home/me/.venv/transformers/lib/python3.6/site-packages/nlp/metric.py", line 224, in add
self.writer.write_batch(batch)
File "/home/me/.venv/transformers/lib/python3.6/site-packages/nlp/arrow_writer.py", line 148, in write_batch
pa_table: pa.Table = pa.Table.from_pydict(batch_examples, schema=self._schema)
File "pyarrow/table.pxi", line 1550, in pyarrow.lib.Table.from_pydict
File "pyarrow/table.pxi", line 1503, in pyarrow.lib.Table.from_arrays
File "pyarrow/public-api.pxi", line 390, in pyarrow.lib.pyarrow_wrap_table
File "pyarrow/error.pxi", line 85, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Column 1 named references expected length 534 but got length 323
```
(`nlp` installed from source)
This is because `add` takes as input a batch of elements and you provided only one. I think we should have `add` for one prediction/reference and `add_batch` for a batch of predictions/references. This would make it more coherent with the way we use Arrow.
Let me do this change | [
-0.0529838912,
0.1234705225,
-0.0156167932,
0.2224007249,
0.2445524037,
-0.2058068216,
0.0348035246,
0.2737763524,
-0.2766896486,
0.2284604907,
-0.0470919088,
0.5116130114,
-0.0322656557,
-0.5062630177,
0.1793057323,
-0.2050361782,
0.0496256463,
0.2373667359,
0.376671046,
0.0053774565,
-0.2605623007,
0.3032191992,
-0.188075766,
0.1640558094,
-0.2273846865,
-0.0277237836,
-0.2081150413,
-0.0000730599,
-0.3736782968,
-0.513692677,
-0.1865488887,
-0.1602295339,
0.0929600596,
0.2773667574,
-0.0001235569,
-0.1549438983,
0.1491880119,
-0.0811498612,
-0.0515882485,
-0.2576406002,
0.069885619,
-0.4877813756,
0.2812322378,
-0.3927666247,
0.2623866796,
-0.5535247922,
-0.2693207562,
0.1205663681,
0.3221307695,
0.3828634918,
0.0593123846,
0.1814615577,
0.1997825503,
-0.1504540443,
0.4799139798,
-0.2872896492,
0.0270545781,
0.8451248407,
0.4745264947,
-0.1043578088,
0.0101641137,
0.2115781158,
0.0698360652,
-0.0083952947,
0.4609831274,
-0.0085364915,
0.322050333,
0.2491591126,
-0.1645760238,
0.2763651609,
-0.0685750023,
-0.4503372312,
-0.242693767,
-0.1303239614,
0.2197298408,
-0.8170558214,
-0.2259737849,
0.1794522256,
-0.0250251386,
-0.1299294382,
-0.1462098658,
-0.0006308563,
-0.1770027578,
0.359649092,
0.1693442017,
-0.0147992056,
-0.0118940417,
0.1285105348,
0.1847853959,
-0.0393697955,
-0.2734959722,
0.2802455127,
-0.3638677597,
0.1397889405,
-0.3178015351,
0.1936397105,
0.0414400809,
0.0906877518,
0.2250479609,
-0.0171072055,
0.4222171605,
-0.1388157606,
0.0712491572,
0.1222761497,
-0.2013107091,
0.6905143857,
0.2165013403,
0.1341722012,
-0.3007672429,
0.0094193537,
0.077484481,
-0.2331832051,
-0.1528364271,
-0.4813550413,
0.0929706767,
0.2240238339,
-0.0433336385,
-0.0264969971,
-0.3014727235,
-0.0460718274,
-0.3360154331,
-0.1674298197,
0.0867104977,
0.3681385219,
-0.0388477147,
0.0624951161,
0.1104903966,
0.4761025012,
-0.0439198241,
-0.1354419142,
-0.0921948254,
0.2260676324,
-0.5083329678,
0.2136930376,
0.099761188,
0.3832256794,
0.176361829,
-0.0730577111,
0.2946141362,
-0.3448924124,
0.0870140269,
-0.1961718351,
-0.0883423239,
-0.2993739247,
-0.040242549,
-0.0425538942,
0.0300055221,
-0.4934624434,
-0.0675722957,
0.1587443501,
-0.3589678407,
-0.1973159015,
-0.114904277,
0.0197512284,
-0.0926989391,
0.0835312605,
0.0243343655,
0.2035320401,
0.3013350666,
-0.3963019252,
0.1792043746,
-0.1033514291,
-0.0777111799,
-0.2220207006,
0.1725851893,
0.0104020555,
-0.3534254432,
-0.0505665652,
0.4460210204,
0.4284259677,
0.2195178419,
0.512249887,
0.0170857366,
0.4416692555,
0.0511136129,
-0.0548068136,
0.8497802019,
-0.6675332189,
-0.2030711919,
0.1031762809,
-0.1517940909,
-0.3849721253,
0.2442356944,
-0.1403272003,
0.0424470007,
0.0017695336,
0.5252923369,
-0.1263541728,
0.0111441445,
-0.2413899302,
-0.2935152352,
0.1216427684,
0.0770449415,
-0.0832396075,
-0.2776448727,
-0.042448435,
-0.0174255837,
-0.2651268244,
0.3154613078,
-0.1855461746,
0.0940312222,
0.436260134,
-0.1067252383,
0.1817871034,
0.1525936127,
-0.0213386267,
-0.037082877,
-0.1872521639,
-0.7418587804,
-0.15193367,
-0.3425429761,
-0.313615799,
-0.3647015095,
0.1320694685,
0.3085980415,
0.0722290948,
-0.065481849,
0.0243034661,
0.0326468535,
0.0266354382,
0.0122132031,
-0.3676484525,
-0.207621783,
0.0716270953,
-0.1128772125,
-0.1675752252,
-0.1139454618,
-0.3280251026,
0.2027522922,
0.5103158355,
0.3298409879,
0.1804867089,
0.0027422337,
0.3516780138,
-0.101633586,
-0.0717662796,
-0.1064505279,
0.0596691668,
0.1854148805,
-0.2278646231,
0.0522932373,
-0.2333274633,
0.2378192693,
-0.2452936023,
-0.1454574019,
0.1176464036,
-0.2477839291,
0.2879172266,
-0.1668798923,
-0.1577743292,
0.0029122571,
0.0201163292,
-0.2688772976,
-0.1750834137,
0.2672447264,
0.2518252432,
0.2535240352,
-0.0183253475,
0.0237804968,
-0.2061976492,
0.4903862476,
0.2490000129,
0.011721679,
0.1085846052,
-0.1672788858,
0.0327811502,
-0.0337135494,
-0.4581753016,
0.2858691812,
0.3511742055,
-0.0713109151,
-0.0535920262,
-0.0323590897,
-0.3229382038,
-0.1007630751,
0.1633614898,
-0.0217883177,
0.4516547024,
0.4819220006,
-0.0829906687,
-0.0522980206,
-0.2824617624,
0.1565768868,
0.0922543555,
-0.3211487532,
0.1029350832,
0.0322972983,
-0.0499639772,
-0.1294698268,
-0.6580085158,
0.1291846037,
-0.1266931593,
0.0177925769,
-0.0792980939,
0.116370067,
0.2354957014,
0.3414895535,
0.1112764776,
0.1976395994,
-0.0952701941,
-0.0614365228,
-0.3655000627,
-0.0988828391,
-0.0739975423,
-0.0825133547,
0.0339728743,
0.1985399127,
0.0282312576,
0.0514330193,
0.0575689413,
-0.3675533533,
-0.026735004,
-0.0360471904,
0.1037498638,
0.183659777,
-0.1784431636,
-0.3185209036,
-0.0348143205,
0.4909922779,
0.1498888135,
-0.0801964104,
0.1976708323,
-0.2899656594,
-0.1214712858,
-0.0277306028,
-0.1028287113,
0.0555748083,
-0.6066271663,
0.4826381207,
0.2180043608,
0.0196516365,
0.1390758008,
0.161531806,
0.133726269,
0.1015783474,
0.1502329707,
0.1884873509,
0.2855365872,
0.3695699871,
-0.2453287542,
-0.3526137471,
-0.0996480659,
-0.2127586454,
0.0100674173,
-0.0160778705,
0.0084738415,
-0.3637003601,
0.028734047,
0.1017536297,
-0.1553878784,
0.099248305,
0.3726505041,
-0.1118817478,
-0.0563923307,
-0.2225678861,
-0.0112456856,
0.2974612117,
-0.0985558406,
0.338360846,
-0.1027388722,
0.341211468,
0.0712850913,
0.3087328374,
0.2600162327,
-0.0898884162,
0.2145280689,
-0.2634682059,
0.1250748634,
0.0214320589,
-0.077577278,
-0.1835477501,
-0.0070343059,
0.0651080906,
0.1468191892,
-0.0149854608,
0.0971956775,
0.0405044183,
0.1509206742,
-0.1699977517,
0.0514251962,
0.1844322979,
-0.4027772844,
0.1682160199,
0.0393504612,
-0.2191618383,
-0.2926401198,
-0.1878985614,
-0.003785202,
-0.2331760675,
-0.0678836331,
0.0419049077,
-0.3083758354,
-0.2258056551,
-0.561357379,
0.5143631697,
0.2656938434,
0.1224108487,
0.0351367034,
0.029420374,
0.1295228302,
-0.1196371391,
0.4070134759,
0.0622384101,
-0.1854684353,
0.3979620636,
0.2533798814,
-0.7920085192,
0.088114202,
-0.2422907203,
0.1198913381,
0.5328470469,
0.1347442716,
-0.4058460593,
0.2194059491,
0.2460752726,
0.0621094145,
-0.0940242112,
-0.1332761794,
-0.3536238372,
-0.160384208,
-0.0559744798,
0.0075834701,
0.1301683038,
0.5748971701,
0.4040496647,
-0.0979498625,
0.100828439,
-0.147195667,
0.0985401198,
-0.0460637212,
0.3488910794,
-0.0430456474,
-0.2175788432,
-0.2036947012,
0.1121960282,
0.0683083236,
0.1961614341,
-0.1751303673,
-0.3364208341,
-0.012686207,
-0.1817175746,
0.4985189438,
0.2646092176,
-0.0381799974,
0.1476732194,
-0.4133813083,
0.2689516544,
0.145388484,
0.1187985763,
0.3516077697,
-0.114142552,
-0.1327002943,
-0.0537575334,
0.3737564087,
0.2154421806,
-0.1038031057,
0.4574334621,
-0.1623683423,
-0.1398937255,
0.3795524538,
-0.046668198,
1.2245264053,
0.1065462604,
0.1257055402,
0.4437687397,
-0.073207289,
0.5044653416,
-0.4942466915,
0.135680154,
-0.3452023566,
0.0526586622,
0.1872797161,
-0.2526928484,
-0.1908870786,
0.1537224203,
-0.1415639669,
0.1200094745,
-0.0190731157,
0.0004697018,
0.0279734526,
0.2141706645,
0.0780110136,
-0.1477119476,
-0.0649258494,
-0.089172326,
0.046823442,
-0.2853759825,
-0.2525687516,
-0.1806266457,
-0.3987857997,
-0.1978797913,
-0.081620276,
-0.0249774233,
-0.1934522241,
0.0791226774,
0.2814870477,
-0.2885400355,
-0.2183075249,
0.4451545775,
0.160786435,
0.0353194028,
-0.0677490085,
0.367239356,
0.0054889559,
-0.1944259107,
0.0791479126,
0.0584228076,
-0.1378002167,
-0.0912397429,
-0.072385788,
0.3397006691,
0.0489694215,
-0.2909993827,
-0.1121115461,
0.2122797966,
0.0954594091,
-0.1694049984,
-0.1494036019,
-0.0012264542,
-0.0458359532,
-0.1597698182,
0.0027228836,
0.1189911813,
-0.2679601908,
0.1396853626,
0.0382474698,
-0.4058614373,
0.1576605737,
0.1739561409,
0.0133693181,
-0.0927387327,
0.1960029304,
0.1420604438,
0.040985465,
-0.0514810048,
-0.2509517968,
0.0064279553,
-0.6246699691,
0.130044356,
0.3372041285,
0.2366601825,
0.0571026914,
0.5329241753,
0.339943707,
0.3049384654,
0.1352112889,
-0.4270898104,
-0.2202935666,
0.2987324893,
0.100227125,
0.0221985802,
0.0831799582,
0.1857975721,
0.112941213,
0.6304267049,
-0.1873938739,
-0.1925974637,
-0.1350555271,
0.3047330976,
0.0813757405,
-0.1175722182,
0.0184588563,
0.2227164507,
-0.0670712963,
0.3135066628,
-0.0954196751,
-0.1269563735,
-0.105432339,
0.1703343987,
0.1472406238,
0.138858214,
-0.0746196508,
-0.0503380522,
0.207829982,
-0.2769307792,
-0.065486297,
0.0310655683,
-0.0053383438,
0.0142427916,
0.0108612068,
0.2386567295,
-0.0158687849,
0.1210260168,
0.0165697802,
0.1443899274,
-0.1419911385,
0.0147411563,
0.1334252954,
-0.0300459061,
-0.2427770197,
-0.0422282219,
0.1408336908,
-0.1586283445,
0.0725358427,
-0.1146460846,
0.0446701832,
-0.3494177759,
0.2841542661,
0.2033734918,
-0.2037121952,
0.161555931,
-0.2249833196,
0.0506673232,
-0.257810384,
0.0797746256,
-0.1561124772,
0.1253433675,
-0.0308499262,
0.1467741728,
0.224947542,
-0.2415274978,
-0.0554380938,
-0.0418145768,
0.0138772875,
-0.0724342689,
-0.4040735662,
-0.0099066934,
0.0720862895,
-0.0764175802,
0.4535537958,
0.3923399448,
0.2871936262,
0.2297507674,
-0.004643396,
0.1363931447,
0.2878877223,
0.1203810498,
-0.2763404548,
0.0090058297,
-0.3835597932,
0.2529485226,
0.3319789171,
-0.2469131947,
-0.1659372747,
0.4449225068,
0.4305506647,
-0.0974192023,
0.2416949719,
0.3374012411,
0.1081165895,
-0.177917853,
-0.6260394454,
0.0332708396,
-0.2198949009,
-0.2954454422,
0.0575809889,
0.2543740869,
0.1096745208,
0.1720698178,
0.0758073553,
-0.3366906047,
0.0180771835,
0.2719966769,
0.1824454516,
-0.4048290849,
0.4678038359,
0.1012816504,
0.1793562174,
0.1541535109,
0.2735800743,
0.5501375794,
0.3750272393,
0.0532440767,
-0.1164385527,
-0.5201438665,
-0.0328993723,
0.0351073258,
0.3914088607,
0.5328315496,
0.0087493705,
0.2254721373,
-0.0226206444,
-0.1150095388,
0.4778462052,
-0.0926893726,
-0.0166103058,
-0.0508368351,
0.3062939048,
-0.0524582975,
-0.3750990033,
-0.3568494916,
-0.0904024392,
-0.4538402557,
0.0688740015,
-0.0712362826,
-0.0935444459,
0.1073967814,
-0.2740224004,
0.0096903853,
0.0120881479,
0.0106807612,
0.4688243568,
0.4138970971,
-0.3861910701,
-0.4042209685,
-0.3711746335,
0.0177392513,
-0.3070272505,
-0.2642475665,
-0.0213969052,
0.2950700521,
-0.0288526509,
0.1103488728,
-0.0030995137,
0.7121218443,
-0.3157080412,
0.2841112018,
-0.4020728171,
0.2923107147,
-0.0185886864,
0.0423711836,
0.0393848717,
-0.079931356,
-0.0461328104,
-0.2612858415,
-0.0898223519,
-0.1520295292,
-0.2171119452,
0.1971557289,
0.714482069,
0.5996636748,
-0.018361181,
0.6578072309,
0.1130571365,
0.2553169727,
0.0129337795,
-0.1389684975,
0.0389079712,
0.2253324389,
0.1198836938,
0.1031524688,
-0.3069996834,
-0.0306272451,
0.1291936636,
0.5416573286,
-0.2737934887,
-0.4963232875,
-0.0378849208,
-0.0884248763,
-0.1001898497,
0.2050063312,
-0.0978759453,
0.1428104788,
0.116109021,
0.2808983922,
-0.2200463712,
-0.4489736855,
0.5190479755,
-0.3741154373,
-0.2154399157,
0.3690957129,
0.4454105198,
0.5610112548,
-0.0898232013,
-0.2587348223,
-0.1160247996,
0.4629224241,
0.4017499685,
-0.2320598513,
0.181324482,
-0.1719187051,
0.0393691584,
-0.1715845317,
-0.08575093,
-0.1080272272,
-0.0240792315,
-0.39685148,
-0.433147788
] |
https://github.com/huggingface/datasets/issues/115 | AttributeError: 'dict' object has no attribute 'info' | I could access the info by first accessing the different splits :
```python
import nlp
cnn_dm = nlp.load_dataset('cnn_dailymail')
print(cnn_dm['train'].info)
```
Information seems to be duplicated between the subsets :
```python
print(cnn_dm["train"].info == cnn_dm["test"].info == cnn_dm["validation"].info)
# True
```
Is it expected ? | I'm trying to access the information of CNN/DM dataset :
```python
cnn_dm = nlp.load_dataset('cnn_dailymail')
print(cnn_dm.info)
```
returns :
> AttributeError: 'dict' object has no attribute 'info' | 42 | AttributeError: 'dict' object has no attribute 'info'
I'm trying to access the information of CNN/DM dataset :
```python
cnn_dm = nlp.load_dataset('cnn_dailymail')
print(cnn_dm.info)
```
returns :
> AttributeError: 'dict' object has no attribute 'info'
I could access the info by first accessing the different splits :
```python
import nlp
cnn_dm = nlp.load_dataset('cnn_dailymail')
print(cnn_dm['train'].info)
```
Information seems to be duplicated between the subsets :
```python
print(cnn_dm["train"].info == cnn_dm["test"].info == cnn_dm["validation"].info)
# True
```
Is it expected ? | [
0.1249499768,
-0.4288876057,
-0.0755955502,
0.6906058192,
0.0929053873,
0.0969588384,
0.2694359124,
0.0933502391,
-0.0262439493,
0.3825283647,
-0.1993027925,
0.2700486481,
-0.0093514975,
0.1719217002,
-0.0433853157,
-0.210740611,
-0.1371985674,
0.1066758111,
0.073227182,
-0.2672345936,
-0.2168747187,
0.0030045665,
-0.2907535434,
0.0620871708,
-0.2430921793,
-0.0518735349,
-0.1551666111,
0.2124345899,
0.1969709843,
-0.3359894156,
0.0689537078,
-0.2129001766,
-0.0541770495,
0.159178555,
-0.0001246873,
0.2159626335,
0.325949192,
0.0212660544,
-0.429055661,
-0.2216003239,
-0.3981965482,
-0.3013715446,
0.3539859653,
-0.4983977079,
-0.0128479842,
-0.238062337,
0.1509518027,
-0.2423049808,
0.4023639858,
0.0351479053,
0.0804313496,
0.0912049785,
-0.0358197093,
0.1423138529,
0.0212015323,
0.2588217854,
0.2370945662,
0.1636528522,
-0.2527903616,
0.0627270415,
0.1914432049,
0.4251291156,
0.044026956,
0.3171999156,
-0.191828534,
0.5741865039,
0.1710591465,
-0.2567908764,
0.095927991,
0.2467699051,
0.17067267,
-0.1224949211,
-0.4816112816,
-0.3179220259,
0.1392760277,
-0.2829394042,
-0.0797849596,
0.220745638,
-0.0475854389,
0.1868588328,
-0.2426730692,
-0.0948003083,
-0.2555110753,
0.3441191614,
-0.3710779548,
0.2993046045,
-0.1208857,
0.2345956713,
-0.1352391541,
-0.0211659931,
0.0597956069,
-0.0942321867,
-0.0770023465,
-0.0593116991,
0.0755458623,
-0.1603481472,
-0.0168614909,
-0.3014568686,
-0.3027261794,
0.2690217197,
0.0478203259,
-0.1880152076,
-0.0445900708,
0.0476633981,
0.4869713187,
-0.0001093997,
-0.0382665172,
0.6492269635,
0.1455631256,
-0.0843477249,
-0.3494218886,
-0.1001154855,
-0.0615427457,
0.3459919989,
0.0822186694,
0.0042109429,
0.6258031726,
-0.0217754319,
-0.3278492093,
-0.0295969211,
-0.3862672448,
-0.3342375755,
-0.0254538301,
0.3758755028,
-0.2405266166,
0.2571178973,
-0.0810014009,
0.1662138999,
-0.1648442894,
0.0016578543,
-0.2084466517,
0.1559553295,
-0.2232464552,
-0.0478441603,
0.060990572,
0.1417700797,
0.328335017,
-0.1531534344,
0.1377356201,
-0.3344842494,
0.0545238927,
-0.1950103641,
0.1769054979,
0.2727209032,
0.1509708762,
0.2214313,
0.3293370605,
0.0471368507,
-0.1581558734,
0.0576175749,
-0.2800482512,
-0.3939582109,
0.0948269665,
0.1257057637,
0.1640482098,
0.1380670369,
0.2096284181,
0.2284053266,
0.0393174216,
-0.2172419578,
-0.0862125605,
0.1584495008,
-0.2489690632,
-0.3260109425,
0.0923233107,
0.3571793139,
-0.3308547139,
-0.1999844909,
-0.1797041446,
0.0452080183,
0.2457808405,
0.2800106108,
-0.2833351791,
0.0341763161,
-0.0315479152,
0.0204125065,
0.532530427,
-0.5967901349,
-0.4960958958,
0.2557238638,
-0.012002157,
0.0755671486,
0.3176009953,
0.2206093967,
0.243834272,
0.1747238189,
0.2448199689,
0.3377787173,
0.0100640161,
-0.2427794337,
0.1311956048,
-0.0188456997,
0.5743767023,
0.0246278271,
-0.182791546,
0.1722545773,
0.1793224514,
0.215742141,
0.3071214855,
0.118407391,
-0.1560167521,
-0.0024092721,
-0.015238056,
0.0578808598,
-0.0360678583,
-0.2658933401,
0.0435577706,
0.1698504239,
-0.0126619898,
-0.1012091339,
0.0056869164,
-0.1509735584,
-0.2884413302,
0.0347991921,
-0.2785722315,
-0.4914938807,
0.0957368612,
0.2937067151,
0.1070410162,
0.0497997217,
-0.383841455,
0.1931143105,
-0.1739235669,
0.0594510846,
-0.2641107738,
0.2616458535,
-0.0712469742,
0.1353572309,
-0.2566056252,
0.5610601902,
0.2033924609,
0.1142710075,
0.0233578086,
0.203462854,
0.2300904095,
-0.0946372524,
-0.1387586296,
-0.1457541287,
0.2576643229,
-0.400257349,
0.0830498636,
0.1750846654,
0.2735490203,
-0.1525909156,
0.0078619253,
0.3907418251,
0.3698184788,
0.4349887669,
0.242224291,
0.2169765234,
0.0280832089,
0.0046050488,
0.1426947117,
-0.4672392905,
-0.1400224566,
-0.2043557763,
0.1088456288,
-0.1078542918,
-0.3479726315,
0.2861693799,
0.4567404687,
0.0138228424,
0.0307957362,
-0.2911538184,
-0.310855478,
-0.0372545719,
-0.0782843977,
0.2733251452,
0.4840683639,
0.2343030572,
0.0746500194,
0.085528709,
-0.0124238124,
0.0048269881,
0.1198430657,
0.1941521913,
0.2420472652,
0.1419253498,
0.1857102066,
0.0966678038,
0.1877738684,
-0.2721669376,
0.2104975432,
0.3406483233,
-0.3003821969,
0.1629359275,
-0.4099976122,
-0.4880045056,
0.0144570963,
-0.342397511,
0.0018420654,
-0.5070483088,
-0.0561671108,
-0.0347429216,
0.1162317023,
-0.0149055682,
-0.0840855911,
-0.133191064,
0.0325235389,
0.2032119483,
0.1661234349,
-0.3341937065,
-0.2673005462,
-0.0231222231,
-0.0567046702,
0.2377942055,
0.0999237671,
0.0279001221,
-0.1892513484,
0.0388244428,
-0.0848395079,
0.2069587857,
0.0250349939,
0.2025088668,
0.1381626129,
0.2134176046,
0.0887722373,
-0.1765597016,
0.1649944782,
0.292933166,
-0.344507575,
0.2239864767,
0.1372477561,
-0.0419557057,
0.0637380257,
-0.3967237771,
-0.646479249,
-0.208321467,
0.1116249561,
-0.0307405815,
0.3225347996,
0.3150753081,
-0.401143074,
0.1219072118,
0.0677898601,
0.3995664716,
-0.3273163736,
0.004643301,
0.0294394866,
-0.2837052643,
-0.1603328288,
-0.0964623392,
-0.272226721,
0.129374221,
-0.0154743204,
-0.407918483,
-0.2342714518,
-0.3203286529,
-0.2996290028,
-0.0103181722,
0.0460456796,
0.2568387389,
-0.0417733975,
-0.0756422654,
0.0562417097,
-0.0911548659,
0.0311827976,
0.1106235236,
-0.071816884,
-0.1087997407,
0.0765247121,
-0.0211606212,
0.2974597812,
0.3613354564,
0.2205085009,
-0.092190735,
-0.341999948,
0.1614143252,
0.1079074219,
-0.6722038388,
-0.1568455398,
0.0324359611,
-0.1027039066,
0.2190038711,
-0.0459264517,
-0.1950477064,
-0.2466961592,
-0.2480785996,
-0.6623728275,
-0.2552471757,
-0.2224982828,
-0.1908549517,
0.0593467876,
0.1209388748,
0.2826322019,
-0.1851935834,
-0.0073139477,
-0.4037664235,
0.1687470078,
-0.1218699738,
-0.1089017391,
-0.2181364596,
-0.6910568476,
-0.0773040205,
0.1956618279,
0.0323372632,
0.4622493386,
-0.0999984816,
-0.0388960131,
0.3081653118,
0.0503736064,
0.4035011828,
-0.3674362004,
0.0445706621,
0.1530433744,
-0.4430543184,
-0.3725540042,
-0.0338470079,
-0.3618169427,
0.1378146112,
0.1949040741,
0.1364648938,
-0.2649856806,
-0.0264043678,
0.5953832269,
-0.0804160237,
-0.3547804058,
-0.0740957633,
-0.1484931409,
-0.0780682936,
-0.2052741647,
-0.3540734947,
-0.1436257064,
0.3512364924,
0.2910941541,
0.2157934606,
-0.4060232341,
-0.1949334443,
0.5014383197,
0.2625548542,
0.0735822618,
0.0825916603,
-0.0869192109,
0.2178042978,
0.3571123481,
-0.2109904736,
0.6885296702,
-0.0523780175,
-0.3731908798,
-0.0004462927,
0.0574517697,
0.549757719,
0.4288545251,
-0.1412374526,
0.1208151877,
-0.0982720256,
-0.1491338313,
-0.2115516812,
-0.2318598181,
0.3229675591,
0.0726094767,
-0.3635560572,
-0.488404274,
0.2722448111,
-0.0849140659,
-0.0906401575,
0.1458918452,
0.0629894435,
-0.2087937146,
0.3545900285,
-0.3809763193,
0.990362525,
0.3292769492,
0.4495566487,
0.3513561487,
0.135490641,
0.7351762056,
0.1041000187,
0.258238703,
-0.286429286,
-0.1503848732,
-0.2274813056,
-0.1266020536,
0.1126267537,
0.0128644118,
-0.1182798669,
0.2837455571,
-0.3521837294,
0.0155713195,
-0.175376147,
0.2185530365,
0.1026428267,
0.1495238841,
-0.3357540965,
-0.0622501448,
-0.0671953782,
0.3927619457,
0.1136746854,
-0.1045119464,
-0.3019219339,
-0.0686691925,
-0.3666781485,
0.0615557805,
0.0243279319,
0.4778870046,
-0.0292011872,
-0.4192873538,
-0.2649334669,
0.228444159,
0.1736294627,
0.1698459238,
-0.0976154059,
-0.0065579726,
-0.1813509911,
-0.028641453,
0.0009760271,
0.0205424521,
0.3865456283,
0.042764131,
-0.4486109018,
0.2900667191,
-0.0063760066,
0.0870846584,
-0.1067262664,
0.4001533985,
0.0151131153,
-0.3704200089,
-0.2464217842,
0.1145144776,
-0.2462418079,
-0.2208715379,
-0.0222668555,
-0.190909937,
-0.4741311371,
0.0980499387,
0.0997470319,
-0.3421036005,
0.0581395738,
0.1928589791,
0.5048798919,
0.2213870287,
0.4437156022,
-0.1308048069,
-0.1161544248,
-0.1307453364,
0.1097263545,
0.0628416538,
-0.0933686942,
0.1050203219,
0.037905708,
0.2710077465,
-0.05839248,
-0.0869441554,
0.0529423319,
0.3689320683,
-0.339818716,
-0.7617676258,
-0.0953110978,
0.4501470625,
-0.0682354495,
0.2793731987,
-0.082631655,
0.4166555405,
-0.0972739011,
0.4496216774,
-0.1855597794,
0.0874326974,
-0.2266392559,
0.1080843508,
0.1004182026,
-0.1510283649,
0.3465952575,
0.2598977983,
0.1185414568,
-0.0120903905,
0.1103913337,
-0.0956455618,
-0.259861201,
0.2280461937,
-0.0838567242,
-0.1230565384,
0.0620281994,
-0.2112433165,
0.0025271333,
-0.0480793193,
-0.0685605705,
0.2314648777,
0.2323456556,
0.4411838353,
0.1262158602,
0.2127236873,
-0.1653216481,
0.4683233798,
-0.2051686198,
0.4228178263,
0.0863541588,
0.1467077434,
-0.0884290934,
-0.0318224691,
-0.3322872519,
-0.232284531,
-0.2675160468,
-0.2130782455,
0.1666943282,
-0.1475894749,
0.2354432046,
-0.1891665608,
0.4142749906,
0.2301895171,
0.0721535385,
0.193638429,
0.1391348243,
0.0371112302,
-0.4144484997,
0.148835808,
0.4549932182,
0.1194750071,
0.023628315,
0.4790080786,
-0.2553528547,
0.3260783851,
-0.2668019533,
-0.1055664122,
-0.037064936,
-0.1044923067,
0.2279456407,
0.3263758123,
-0.0481503196,
-0.1252165139,
-0.0117481751,
0.3561752737,
0.1935327202,
0.5997102261,
-0.0381316766,
0.2293096334,
0.0385160148,
-0.0413723476,
0.2349706441,
-0.2034696937,
0.2185641229,
0.0990774259,
-0.1482097507,
0.0345255844,
-0.104738839,
0.2622844279,
-0.1495843679,
0.2826264203,
0.0317237899,
0.3951664865,
-0.0697276965,
-0.1697364897,
0.0825273842,
0.0043175225,
0.109088853,
-0.2155873328,
0.1921229959,
-0.3596953154,
0.1351115406,
0.0958111063,
-0.0060214619,
-0.5095933676,
0.2014564127,
0.3303106725,
0.1504410356,
-0.2705942988,
0.0683199242,
0.2008244246,
0.1757638454,
0.4342277944,
0.3533490598,
0.2161447853,
0.0241982229,
-0.3509184122,
0.0147406589,
-0.0097056208,
-0.4079249799,
0.0778092742,
0.1098094359,
0.1038501039,
0.1833730489,
0.394148469,
0.0116243036,
0.0506091453,
0.0069068624,
0.278845638,
-0.135618791,
-0.3819635212,
0.7057722807,
-0.1346541941,
-0.030284863,
-0.0852228776,
0.0394842215,
-0.7841268182,
-0.4474330246,
0.2592220902,
0.2150041312,
0.2384359241,
0.1179919466,
-0.0187268388,
-0.183349967,
0.2197685838,
0.32945472,
0.5710618496,
-0.2078904659,
0.0956083685,
-0.391330868,
0.1525499672,
-0.2456970364,
-0.4644717574,
0.0544781722,
0.3647100627,
-0.2238105237,
0.1497277319,
0.0324507244,
0.2397392243,
0.0054364237,
0.2687498927,
-0.3348237872,
-0.4904116392,
-0.1722480953,
-0.0827263817,
-0.1528235674,
-0.1034831852,
0.0875312313,
-0.1272982508,
-0.1334444731,
0.0049408618,
0.0592920259,
0.0846505687,
0.4907219708,
-0.2772696316,
0.3279722929,
0.7240935564,
0.0451792628,
0.0452402681,
-0.0002587268,
-0.2852589786,
-0.0813493282,
0.4049206376,
0.3777350187,
0.4518817067,
-0.294205308,
-0.1741610169,
-0.0510409735,
0.053542532,
-0.0227200631,
-0.1496456861,
-0.0280042887,
0.2312568426,
0.0170165189,
0.2565079033,
0.0652557909,
0.1513558328,
-0.006485004,
0.1476942301,
0.0025765055,
-0.4071927369,
0.572511673,
-0.4473524094,
-0.371668458,
-0.0119447699,
0.1999330074,
-0.146021679,
0.1406576186,
-0.5610470176,
-0.2154171765,
0.604880631,
-0.1615286171,
-0.0200688373,
0.0389876105,
0.021991808,
-0.1745166332,
-0.0873247385,
0.1239534765,
0.013977685,
-0.1805025041,
-0.0339616239,
-0.1548307538
] |
https://github.com/huggingface/datasets/issues/115 | AttributeError: 'dict' object has no attribute 'info' | Good point @Colanim ! What happens under the hood when running:
```python
import nlp
cnn_dm = nlp.load_dataset('cnn_dailymail')
```
is that for every split in `cnn_dailymail`, a different dataset object (which all holds the same info) is created. This has the advantages that the datasets are easily separable in a training setup.
Also note that you can load e.g. only the `train` split of the dataset via:
```python
cnn_dm_train = nlp.load_dataset('cnn_dailymail', split="train")
print(cnn_dm_train.info)
```
I think we should make the `info` object slightly different when creating the dataset for each split - at the moment it contains for example the variable `splits` which should maybe be renamed to `split` and contain only one `SplitInfo` object ...
| I'm trying to access the information of CNN/DM dataset :
```python
cnn_dm = nlp.load_dataset('cnn_dailymail')
print(cnn_dm.info)
```
returns :
> AttributeError: 'dict' object has no attribute 'info' | 115 | AttributeError: 'dict' object has no attribute 'info'
I'm trying to access the information of CNN/DM dataset :
```python
cnn_dm = nlp.load_dataset('cnn_dailymail')
print(cnn_dm.info)
```
returns :
> AttributeError: 'dict' object has no attribute 'info'
Good point @Colanim ! What happens under the hood when running:
```python
import nlp
cnn_dm = nlp.load_dataset('cnn_dailymail')
```
is that for every split in `cnn_dailymail`, a different dataset object (which all holds the same info) is created. This has the advantages that the datasets are easily separable in a training setup.
Also note that you can load e.g. only the `train` split of the dataset via:
```python
cnn_dm_train = nlp.load_dataset('cnn_dailymail', split="train")
print(cnn_dm_train.info)
```
I think we should make the `info` object slightly different when creating the dataset for each split - at the moment it contains for example the variable `splits` which should maybe be renamed to `split` and contain only one `SplitInfo` object ...
| [
0.0860446692,
-0.2287645191,
-0.0386711992,
0.5566274524,
0.2393110245,
0.082007058,
0.2878682911,
0.2890191376,
-0.0095847547,
0.1997733116,
-0.0262701139,
0.3800337911,
-0.2866001427,
0.3110383153,
-0.1329597831,
-0.3128982782,
-0.0617806241,
0.0819351077,
0.0685541853,
-0.1877296865,
-0.2176921666,
-0.0186453648,
-0.2146316618,
0.0927673206,
-0.3512637019,
-0.1529840678,
-0.1275161952,
0.1742338538,
0.1626360416,
-0.3590454161,
0.2186697274,
-0.0824094489,
0.0676051825,
0.1456323564,
-0.0001200967,
0.1501245201,
0.393764019,
-0.0132752536,
-0.4775069356,
-0.1808104068,
-0.3652685285,
-0.4784735441,
0.4104360044,
-0.4279999137,
0.0141704613,
-0.1955829412,
0.0614125095,
-0.2636317611,
0.2931583524,
0.3056741357,
0.1423610598,
-0.0766032785,
0.0717007369,
0.071274206,
-0.0116628939,
0.2337172627,
0.1357191503,
0.0999802053,
-0.1666555852,
-0.1774169356,
0.2367300242,
0.3461393118,
-0.0575504713,
0.2939853668,
0.1243031248,
0.5018522143,
0.2756030858,
-0.3079267144,
-0.1120864004,
0.2656948864,
0.3015533686,
-0.1667887568,
-0.4109061658,
-0.4024980962,
0.3017543256,
-0.362231791,
-0.0417768247,
0.2056695819,
-0.1510542184,
0.1317649037,
-0.1509328336,
-0.1629334092,
-0.3153491914,
0.4602555633,
-0.1868044287,
0.1968058646,
-0.0741697624,
0.2910076678,
-0.1482137144,
0.0615462884,
0.1554132849,
-0.0048561348,
-0.0361908227,
-0.064291589,
0.1266233772,
-0.1908596158,
0.0237801243,
-0.3372941315,
-0.230487898,
0.1992776394,
0.0300011784,
-0.2213549316,
-0.0144098885,
0.1017792746,
0.4677256942,
0.0468040295,
0.0606656224,
0.543048203,
0.0864747465,
-0.0984053016,
-0.3730100691,
-0.0996486321,
-0.1022701934,
0.2678647637,
0.041054748,
0.0573246256,
0.6547589898,
0.1710322648,
-0.2175795734,
0.0475257188,
-0.2916193902,
-0.1841301769,
0.0196712445,
0.4202068448,
-0.3758161068,
0.3166827559,
-0.002354526,
0.2598299086,
-0.1711180657,
-0.1351028085,
-0.1672390103,
0.1883716583,
-0.1644890904,
-0.0454339683,
0.0658375919,
0.2751301825,
0.1876866668,
-0.1203981861,
0.1502534598,
-0.2108029872,
0.0118783489,
-0.1996325999,
0.1468948424,
0.2428477257,
-0.0314815491,
0.1773032248,
0.3328696489,
-0.1857573688,
-0.2288422287,
0.0898407921,
-0.3860597014,
-0.4279597998,
-0.0504817367,
0.1436498463,
0.0643264726,
0.0010245844,
0.1183591932,
0.4320579767,
-0.0101193562,
-0.2594804168,
-0.1091433838,
0.0236567818,
-0.2464593351,
-0.3293700516,
0.1277024448,
0.3755085766,
-0.3210709691,
-0.1966145933,
-0.2238684297,
0.0265125241,
0.2153687477,
0.0777888075,
-0.2941025496,
0.3019196391,
0.157410413,
-0.1787677854,
0.5169858932,
-0.5471842289,
-0.4087114334,
0.2692840993,
0.0725371763,
0.1466144621,
0.1654191315,
0.1860267222,
0.1700223982,
0.1644584537,
0.2275981903,
0.536419034,
-0.1210604608,
-0.1559237093,
0.1025621891,
-0.0822922736,
0.4554800093,
0.1035023853,
-0.173770979,
0.3286603689,
0.1283843964,
0.3014739752,
0.202749446,
0.0885993615,
0.0090020765,
-0.0317893513,
0.0372529961,
0.1113416255,
-0.1425650269,
-0.1299977899,
-0.2095661759,
0.1428063661,
0.1349205971,
0.1513654143,
-0.1725531369,
-0.1128300056,
-0.1440570652,
-0.0348042138,
-0.2341736257,
-0.5324175954,
0.1261229515,
0.0717902333,
-0.0386833809,
0.0219993554,
-0.4613386095,
0.3799106181,
-0.1166355982,
0.0741723403,
-0.2674676478,
0.1598744839,
0.0243002139,
0.0912194997,
-0.2332623452,
0.4407404363,
0.0516264103,
0.0769978762,
-0.0225504916,
0.2596834302,
0.1651899517,
-0.2301407754,
-0.0918689147,
0.0093697812,
0.1660282463,
-0.3179226816,
0.1193695888,
0.1209878847,
0.2671664059,
-0.1914660633,
0.0119789336,
0.378929466,
0.3295070529,
0.4914184213,
0.0843809023,
0.2783164978,
0.0613165274,
-0.0651725754,
0.1059277058,
-0.3576054573,
-0.1298238188,
-0.2990136743,
0.1558815539,
-0.1758945733,
-0.31901142,
0.0923188031,
0.3692847192,
0.1103921756,
0.0295219123,
-0.0391083881,
-0.2058975548,
0.0333848745,
-0.2275181115,
0.3525833786,
0.5222455859,
0.2023169696,
-0.1882100105,
0.1882205606,
-0.0132412091,
0.0064637545,
0.134575069,
0.2327062041,
0.368583858,
0.0253143497,
0.0892615169,
0.1285707951,
0.2245949656,
-0.5728700161,
0.1887018383,
0.5563446879,
-0.304497838,
0.1860844642,
-0.1966259927,
-0.42676121,
-0.0486707948,
-0.342112273,
-0.044855088,
-0.3559027314,
-0.103885904,
-0.1297444701,
0.0746125206,
-0.0035418391,
-0.1313949525,
-0.0159504637,
0.0439390726,
-0.0229039062,
0.1642870754,
-0.4431053698,
-0.2144472003,
-0.0498672426,
0.0450736396,
0.1782765538,
0.1592860818,
-0.0440745726,
-0.0607201532,
0.1528819799,
-0.0486728735,
0.0986359641,
-0.0524644405,
0.3286849558,
0.2460147142,
0.2065272182,
0.0840367451,
-0.2817552388,
0.2767192721,
0.0393046625,
-0.1586168557,
0.2133670449,
0.1367473006,
0.109608762,
0.105488345,
-0.5136440992,
-0.6235826612,
-0.2743560374,
0.0848081484,
-0.0427187867,
0.3290718496,
0.467461586,
-0.0300893243,
0.0797977298,
0.1688729674,
0.4912847281,
-0.118261233,
-0.1812793314,
0.0237382129,
-0.3036912382,
-0.1763625294,
-0.1564724147,
-0.2721150517,
0.0525375605,
-0.0739746764,
-0.4470915496,
-0.2999523878,
-0.2285853773,
-0.2480924278,
-0.0880078599,
0.0601937808,
0.1543687582,
0.0106970239,
-0.0379680246,
0.0280984696,
-0.2343034893,
0.0801363885,
0.1232222989,
-0.0749571845,
0.0110725295,
0.1864682883,
-0.1427343488,
0.194556579,
0.1889092028,
0.0911902934,
-0.0227016266,
-0.2615151703,
0.1633205265,
0.0860736668,
-0.6142838001,
-0.074487038,
0.0496808551,
-0.1890933365,
0.1765647382,
-0.0135552324,
-0.2396261096,
-0.3505910635,
-0.0822798535,
-0.4367036521,
-0.3019209504,
0.0377712287,
-0.3499500751,
-0.0031302723,
-0.0234197937,
0.2088105083,
-0.2183729857,
-0.0478228554,
-0.2737944424,
0.183497265,
-0.2656945586,
-0.0467954576,
-0.3311159611,
-0.6209937334,
-0.1874491423,
0.2123217732,
-0.038957987,
0.5240561366,
-0.0960634574,
-0.0959112495,
0.2434386015,
0.187769264,
0.3413785994,
-0.3294025362,
-0.2207901031,
0.1993754953,
-0.3081077933,
-0.2661581933,
-0.0125896418,
-0.262473911,
0.2308900952,
0.0840222985,
0.1518732309,
-0.2635539472,
-0.2725988328,
0.4996644258,
-0.0474112108,
-0.3775452673,
-0.1506830603,
-0.1242493317,
-0.1735736728,
-0.262961179,
-0.3738565147,
-0.1396510899,
0.3977638483,
0.3071325123,
0.2809030116,
-0.4559300542,
-0.0161798019,
0.5261113048,
0.1319099516,
-0.0191649683,
0.1588789523,
-0.0147516206,
0.2452946454,
0.3480108082,
-0.1547146291,
0.6451735497,
-0.2067791224,
-0.446426779,
-0.2170444429,
0.0967787579,
0.5147435665,
0.3108336627,
0.0173719544,
0.040619649,
-0.1535697132,
-0.0493386686,
-0.2197560519,
0.0758717358,
0.2726364136,
-0.084442839,
-0.5733373165,
-0.7434116602,
0.3695499897,
-0.0310382843,
0.0652468503,
0.150686875,
0.050681863,
-0.2200977355,
0.5178818107,
-0.2569654584,
0.9998459816,
0.1222016662,
0.4613045454,
0.3156254292,
0.0823383927,
0.7598273754,
-0.063325271,
0.2366247773,
-0.2869425416,
-0.1132773757,
-0.0995152369,
-0.0225575455,
0.1267462373,
0.0571397431,
-0.020935325,
0.2738406062,
-0.3052709699,
-0.2133145332,
-0.1185839251,
0.4240011573,
0.1744490713,
-0.087997824,
-0.3775710166,
-0.0073222998,
-0.1439825892,
0.2474929094,
0.0678813085,
-0.2410566956,
-0.2992664874,
-0.0153946551,
-0.2301788181,
-0.0690461919,
-0.0014923504,
0.3913456798,
0.1123484075,
-0.4293935001,
-0.1548963785,
0.2263777703,
0.1400164813,
-0.0001001978,
-0.1346223205,
0.0734715089,
-0.2021019459,
-0.0619431622,
0.0565337501,
-0.0294130985,
0.5450218916,
0.1291371435,
-0.3338744938,
0.2432878762,
-0.0680090562,
-0.0829131305,
-0.0214940123,
0.1990617365,
0.1631254405,
-0.390888989,
-0.2767758071,
0.0643762201,
-0.107701309,
-0.1513023823,
0.0519833006,
0.0644568577,
-0.4446582496,
0.2857235074,
0.1659428477,
-0.3559824824,
0.0334117003,
-0.0293753743,
0.3441929519,
0.1920978576,
0.417925328,
-0.0483346693,
0.0034174251,
-0.1632782072,
0.2689674199,
0.2116615176,
-0.0965424702,
0.1407293081,
0.2174392641,
0.2164722979,
-0.051137384,
-0.039868772,
-0.0640029311,
0.3094507456,
-0.1029321402,
-0.6809613109,
-0.2260454744,
0.3558226526,
-0.0888814554,
0.2200125009,
-0.0879906639,
0.3695599139,
-0.0372144282,
0.4045433104,
-0.2320103645,
-0.0864967331,
-0.1375003755,
0.0756260902,
0.2385260165,
-0.0305665005,
0.3629401326,
0.1003729776,
0.0797180459,
-0.2587347627,
0.047966063,
-0.1424856335,
-0.3373846114,
0.2134510279,
0.0242025293,
-0.0830627084,
0.0481109321,
-0.2655970752,
-0.040638186,
-0.172041595,
-0.1661500186,
0.2982858121,
-0.0029608989,
0.6121308804,
0.035043221,
0.3176386654,
-0.125247553,
0.3119828999,
-0.0618794709,
0.3593982458,
0.0486886501,
0.1033122465,
-0.0997076929,
0.0335167348,
-0.1895169318,
-0.1363864094,
-0.4034406841,
-0.1352076828,
0.2273535728,
-0.1296815425,
0.3118282557,
-0.0196359158,
0.2376514673,
0.4144007564,
-0.1229048595,
0.2113858908,
0.3546826541,
0.0849059895,
-0.2380660027,
0.2278732806,
0.3830397427,
0.1268706024,
-0.0226749685,
0.4299110174,
-0.3232187927,
0.2512196004,
-0.6819217205,
0.0088798115,
-0.0659788325,
-0.0778627098,
0.1492553651,
0.3625010252,
-0.0338527113,
-0.1559128612,
0.1123943701,
0.3487479985,
0.141575262,
0.7695287466,
-0.0935689211,
0.1783147305,
0.1059762686,
-0.159585014,
0.1738318801,
-0.1006758213,
0.2519039512,
0.1397708058,
-0.0410987064,
-0.0888485461,
-0.1140482128,
0.3358056545,
-0.1596237719,
0.1119445562,
0.0988331288,
0.20861727,
-0.0073174257,
-0.1386511922,
0.0531154722,
0.0646686852,
0.0841271952,
-0.2945112586,
0.0844567716,
-0.477304399,
0.239462465,
0.1333764941,
-0.1010262892,
-0.4834126234,
0.2167516351,
0.3828241527,
0.1768937111,
-0.270391643,
-0.1381628215,
0.0654558465,
0.0354035832,
0.3502777219,
0.2074099481,
0.3174918294,
0.3150427043,
-0.3788136542,
0.0372986495,
0.0596940555,
-0.3285832107,
-0.0161814094,
0.1548209339,
0.1722811908,
0.2621049881,
0.2520404458,
0.0226562526,
0.0306116585,
0.06223296,
0.2664443552,
-0.1000989154,
-0.2283050865,
0.7168127298,
0.0259241126,
-0.012507665,
-0.0889937282,
0.0663418323,
-0.6105390191,
-0.4724334776,
0.4058849216,
0.2474892884,
0.2331459522,
0.0243960302,
-0.0183272772,
-0.1358532757,
0.3031720817,
0.2887056172,
0.4536978602,
-0.2951973677,
0.1704636365,
-0.4494922757,
0.0891910419,
-0.1738182157,
-0.4273292422,
0.036642503,
0.2685402036,
-0.1610112488,
0.1174895912,
-0.2216640711,
0.0648125932,
0.0111657837,
0.2018962353,
-0.3736798167,
-0.4560362101,
-0.336625278,
0.1669434309,
-0.0198305063,
-0.1136479229,
-0.0316366255,
-0.1077486724,
-0.0775699019,
-0.1166221797,
0.0480958857,
0.1713345647,
0.4316166043,
-0.1280902326,
0.2200972885,
0.699480474,
-0.070403941,
0.1590993255,
-0.1255276352,
-0.2694272697,
-0.1652317196,
0.3658244908,
0.2203819305,
0.403408438,
-0.2829340696,
0.0553559773,
-0.1666609645,
0.0688510537,
-0.0296465568,
-0.1650470197,
-0.1649487466,
0.3107208908,
0.1461277902,
0.2835080922,
-0.0227957312,
0.2195110917,
-0.0578627959,
0.1536683887,
-0.1119300872,
-0.4060958922,
0.5831543803,
-0.3409292996,
-0.4388335943,
0.0932766199,
0.2884218395,
-0.087667644,
0.190659076,
-0.5406759977,
-0.1418126822,
0.463483721,
-0.1775231361,
-0.2315239459,
0.1272877008,
0.1137925759,
-0.1065552756,
-0.0174287632,
0.2092205286,
-0.1040871367,
-0.1821132004,
-0.0223514475,
-0.1531525254
] |
https://github.com/huggingface/datasets/issues/38 | [Checksums] Error for some datasets | Fixed with 06882b4
Now your command works :)
Note that you can also do
```
nlp-cli test datasets/nlp/xnli --save_checksums
```
So that it will save the checksums directly in the right directory. | The checksums command works very nicely for `squad`. But for `crime_and_punish` and `xnli`,
the same bug happens:
When running:
```
python nlp-cli nlp-cli test xnli --save_checksums
```
leads to:
```
File "nlp-cli", line 33, in <module>
service.run()
File "/home/patrick/python_bin/nlp/commands/test.py", line 61, in run
ignore_checksums=self._ignore_checksums,
File "/home/patrick/python_bin/nlp/builder.py", line 383, in download_and_prepare
self._download_and_prepare(dl_manager=dl_manager, download_config=download_config)
File "/home/patrick/python_bin/nlp/builder.py", line 627, in _download_and_prepare
dl_manager=dl_manager, max_examples_per_split=download_config.max_examples_per_split,
File "/home/patrick/python_bin/nlp/builder.py", line 431, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/home/patrick/python_bin/nlp/datasets/xnli/8bf4185a2da1ef2a523186dd660d9adcf0946189e7fa5942ea31c63c07b68a7f/xnli.py", line 95, in _split_generators
dl_dir = dl_manager.download_and_extract(_DATA_URL)
File "/home/patrick/python_bin/nlp/utils/download_manager.py", line 246, in download_and_extract
return self.extract(self.download(url_or_urls))
File "/home/patrick/python_bin/nlp/utils/download_manager.py", line 186, in download
self._record_sizes_checksums(url_or_urls, downloaded_path_or_paths)
File "/home/patrick/python_bin/nlp/utils/download_manager.py", line 166, in _record_sizes_checksums
self._recorded_sizes_checksums[url] = get_size_checksum(path)
File "/home/patrick/python_bin/nlp/utils/checksums_utils.py", line 81, in get_size_checksum
with open(path, "rb") as f:
TypeError: expected str, bytes or os.PathLike object, not tuple
```
| 32 | [Checksums] Error for some datasets
The checksums command works very nicely for `squad`. But for `crime_and_punish` and `xnli`,
the same bug happens:
When running:
```
python nlp-cli nlp-cli test xnli --save_checksums
```
leads to:
```
File "nlp-cli", line 33, in <module>
service.run()
File "/home/patrick/python_bin/nlp/commands/test.py", line 61, in run
ignore_checksums=self._ignore_checksums,
File "/home/patrick/python_bin/nlp/builder.py", line 383, in download_and_prepare
self._download_and_prepare(dl_manager=dl_manager, download_config=download_config)
File "/home/patrick/python_bin/nlp/builder.py", line 627, in _download_and_prepare
dl_manager=dl_manager, max_examples_per_split=download_config.max_examples_per_split,
File "/home/patrick/python_bin/nlp/builder.py", line 431, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/home/patrick/python_bin/nlp/datasets/xnli/8bf4185a2da1ef2a523186dd660d9adcf0946189e7fa5942ea31c63c07b68a7f/xnli.py", line 95, in _split_generators
dl_dir = dl_manager.download_and_extract(_DATA_URL)
File "/home/patrick/python_bin/nlp/utils/download_manager.py", line 246, in download_and_extract
return self.extract(self.download(url_or_urls))
File "/home/patrick/python_bin/nlp/utils/download_manager.py", line 186, in download
self._record_sizes_checksums(url_or_urls, downloaded_path_or_paths)
File "/home/patrick/python_bin/nlp/utils/download_manager.py", line 166, in _record_sizes_checksums
self._recorded_sizes_checksums[url] = get_size_checksum(path)
File "/home/patrick/python_bin/nlp/utils/checksums_utils.py", line 81, in get_size_checksum
with open(path, "rb") as f:
TypeError: expected str, bytes or os.PathLike object, not tuple
```
Fixed with 06882b4
Now your command works :)
Note that you can also do
```
nlp-cli test datasets/nlp/xnli --save_checksums
```
So that it will save the checksums directly in the right directory. | [
-0.0627012625,
0.4912027419,
0.0221911091,
0.0352558307,
0.1421763003,
-0.106048584,
0.2264273316,
0.5860052705,
0.0751722381,
-0.0241698287,
-0.1206225008,
0.3043448925,
0.1317292899,
-0.1162972301,
-0.0193385985,
0.2671162486,
0.1346077025,
0.113117516,
0.1048001423,
-0.108330451,
-0.1602602899,
0.0813891068,
-0.0319693722,
-0.0533659086,
-0.1634705216,
0.0185002871,
0.0922334269,
0.1823871136,
-0.2103382945,
-0.3178813159,
0.1828083694,
0.2279717773,
0.1180135086,
0.1371125877,
-0.0001219498,
-0.051647298,
0.3258026838,
-0.0858074725,
-0.3152630031,
0.097438857,
-0.2606828213,
-0.3950638175,
-0.0185790397,
-0.4255897999,
0.3720510602,
0.3203901649,
0.0684395432,
-0.0244944841,
0.2928696871,
0.2679955959,
0.1374267489,
0.5577477217,
-0.1816012114,
0.0434501767,
0.1389744729,
0.0707659274,
-0.1192682236,
0.208267048,
0.2688106894,
-0.0789423287,
0.1626290232,
0.148845762,
-0.3349232078,
-0.3724063635,
-0.0468124636,
-0.1594826132,
0.4003407657,
-0.0175614525,
-0.127844736,
0.2270000279,
-0.3293232024,
-0.2747109234,
-0.2557940185,
-0.185275197,
0.1262194663,
-0.4058309495,
0.3126734793,
0.36159271,
-0.1322479546,
-0.385650456,
-0.2356782556,
0.3625900149,
0.1786393821,
0.1741922647,
0.2103234828,
0.3407011926,
0.2603714168,
0.1711851805,
0.2275179923,
-0.0792823285,
-0.2172361463,
0.0797711983,
-0.2267629355,
0.1732077301,
-0.7504246831,
0.0182807148,
0.1907794774,
0.1760833561,
0.1984282434,
0.4816949964,
0.1958574653,
-0.1018323228,
0.0663767457,
0.2116572112,
0.0479925498,
0.1656826586,
0.5243514776,
0.3478690088,
0.4528413415,
0.1817322224,
0.0125047145,
0.1110056937,
0.1427176744,
-0.0208088737,
0.0522173196,
0.2191820294,
-0.1132477,
-0.2716454566,
-0.441868186,
0.1631051004,
0.1084633619,
-0.1463723183,
0.4707312286,
0.2857308984,
0.0684389174,
-0.035705857,
-0.1219875962,
0.4323752522,
-0.0990940332,
-0.1009935439,
-0.1348178238,
-0.144782722,
-0.298879236,
-0.0133954762,
0.3063561022,
0.0413430147,
0.241115585,
-0.1284283549,
0.1660991013,
-0.0986432806,
-0.026974177,
-0.133972019,
-0.2190334052,
0.1573348343,
0.0276568215,
-0.1535788625,
0.0760041475,
-0.184638083,
-0.1296412647,
0.1298685819,
-0.1619164497,
0.1030447856,
0.0288053323,
0.146762833,
-0.3563663363,
-0.0005754958,
0.2564970851,
-0.3233271241,
0.375901401,
-0.3198786974,
0.1601621956,
-0.1939736605,
-0.0694033653,
-0.2678242326,
0.0827549919,
0.1281572133,
-0.0813920647,
0.0126430709,
-0.1524863392,
-0.282845974,
0.2618386447,
0.3076508045,
-0.0190557633,
0.1066117212,
-0.2534819841,
0.3117203116,
0.6236256361,
-0.5391953588,
-0.348959446,
-0.1038224772,
0.2453110069,
-0.2230146825,
0.0535942838,
0.1916657686,
0.2072511017,
-0.3625616431,
-0.4169751406,
0.2400108874,
0.0361243784,
0.2027408779,
-0.2288202047,
-0.0826068521,
0.248199597,
0.0433601663,
-0.0329148695,
-0.0492721833,
0.171743378,
0.1826474071,
0.2804699838,
-0.1512975246,
0.1541959941,
-0.0797669441,
0.3585598767,
-0.0942277387,
0.0306896474,
-0.1185662448,
-0.2086602449,
0.1897595376,
-0.6152541041,
0.1698649377,
-0.0682331324,
-0.1599048227,
-0.225860849,
-0.0769622996,
-0.1803465188,
0.0999577269,
0.1058684662,
0.2672637403,
0.2386161983,
0.0891882777,
0.0061849267,
0.1085719541,
-0.6231615543,
0.0500972681,
-0.166664958,
0.3818548918,
-0.1093884483,
-0.4351028502,
-0.0777803808,
0.3842040598,
-0.039311979,
0.2114494294,
-0.284596771,
0.4408490658,
0.0782611892,
0.0158713013,
0.0451838598,
0.1725317687,
0.0855830312,
-0.2168511897,
0.0500734113,
0.6702575088,
0.2047980279,
-0.0931501612,
-0.1812060475,
0.1928210407,
-0.0809175819,
0.0449227504,
-0.0232683662,
0.0919855759,
0.2223756313,
-0.2604336441,
-0.2387333959,
-0.216954276,
0.1933982968,
0.24661538,
0.3714806437,
-0.0275689233,
0.0609265007,
-0.0080920495,
0.220279187,
-0.0130478721,
0.1423615813,
0.0530196242,
0.4494903386,
0.0485339314,
-0.152338773,
0.4089900255,
0.4403446615,
-0.0473461971,
-0.0382509902,
-0.0022967232,
-0.1980332434,
-0.1626870483,
0.0150017506,
-0.1399281323,
0.1665213108,
0.2899985313,
0.2119668424,
0.0607976429,
-0.1362026781,
-0.0183635764,
-0.0110557741,
0.2668963075,
-0.2982129753,
-0.0645030588,
-0.3084881008,
-0.4670232534,
-0.1548493356,
0.0802347213,
-0.4626788795,
-0.4291220009,
0.038176775,
-0.0912970454,
-0.2140588462,
0.11404939,
-0.3381961584,
0.1988056302,
0.0887016058,
0.1420770884,
0.302960217,
-0.2489285022,
-0.1107927859,
-0.05270987,
0.4460253417,
0.2166841328,
0.4916330278,
-0.1002861559,
-0.1132466942,
-0.112851277,
-0.3865993321,
0.0523087569,
-0.1023957953,
0.1059585512,
0.3008182049,
-0.0112963477,
-0.3379218578,
-0.3600875437,
0.3471971452,
-0.174216032,
-0.1782205999,
0.3479776978,
0.0316544175,
-0.0400287025,
-0.2230277508,
0.1262024939,
-0.1741141975,
-0.3688489795,
-0.0119618475,
0.0021297149,
0.2077801526,
0.1534917653,
-0.2540106177,
0.2515189946,
-0.2722300589,
0.19602938,
-0.034482602,
-0.2537587583,
0.2185489088,
-0.1037998125,
-0.5492886901,
-0.2848458588,
0.0491532497,
0.0365569219,
-0.0146184778,
-0.3372526169,
-0.0577523112,
-0.2105456889,
0.1740270257,
0.308375448,
0.0900358632,
0.129518345,
-0.2349826396,
0.0549374372,
-0.3663521111,
-0.0224972777,
0.2733778059,
0.0242557488,
0.6932615638,
-0.1040634736,
-0.0190500859,
0.0218200739,
-0.168979764,
0.5697200894,
0.0551939495,
0.4835470319,
0.2954323888,
0.2614167929,
0.1313004196,
-0.1737047881,
0.3005038798,
0.2075378448,
-0.0891061351,
0.0702407286,
0.0197216552,
-0.1144009903,
-0.1642324477,
0.0631453544,
-0.0991116315,
-0.3288483024,
0.0574322455,
-0.2308802158,
0.2036144584,
-0.0569809936,
0.0050393245,
-0.0520035364,
-0.2992756665,
-0.1895920485,
0.4029570222,
0.0352074355,
0.0825005546,
-0.8941779137,
-0.3734433055,
-0.0580199212,
-0.0230485462,
0.1503071487,
0.4448050261,
-0.052957397,
-0.0915122628,
-0.0444778427,
-0.1056421027,
0.1772994548,
-0.0168645475,
0.2455534339,
0.1647072136,
0.4618463516,
-0.4230661094,
-0.3309162557,
-0.1746821254,
-0.2900446355,
0.7728810906,
0.1094584167,
-0.347377032,
0.0844293237,
0.0181527529,
0.2628786862,
-0.1098704413,
-0.4754608274,
-0.3432271183,
-0.0321214758,
-0.5686994195,
0.0901676714,
-0.1974218041,
0.2255198509,
-0.2028979808,
-0.0075692246,
0.1711054742,
-0.1430687308,
0.2128363997,
0.107475318,
0.3902182579,
0.1014432535,
0.1900576651,
-0.6925092936,
-0.0128676416,
-0.3469014466,
0.4314151406,
-0.3060939312,
-0.071996145,
0.0285655037,
-0.2489467114,
0.2488692701,
0.2073637247,
0.0063015339,
-0.0379811451,
-0.1942692697,
-0.0786800086,
0.2778101563,
-0.1101281047,
0.0465851501,
-0.146779716,
0.0360383503,
0.1356884241,
0.0634812191,
0.0873838961,
0.1289667189,
0.0959914401,
-0.139447391,
0.0520356409,
0.1729334593,
0.2594871223,
0.8522506356,
0.1870822161,
-0.0413956493,
0.3224920034,
0.043689575,
0.5114989877,
0.2631317377,
-0.045972839,
-0.3159873784,
-0.2445196062,
0.2126173973,
-0.1158059612,
0.0311514661,
0.002639327,
-0.1369068176,
0.0526394621,
-0.3026596904,
0.0340922959,
0.0386014245,
0.1042211279,
-0.2920204401,
-0.1956306249,
-0.2934520543,
0.1118567511,
-0.0340619609,
-0.0716124177,
-0.1246582866,
-0.0158206932,
-0.2190474868,
-0.1162916496,
-0.241841048,
0.3268518448,
0.3751326501,
0.2795347571,
0.3088381588,
-0.1053697467,
-0.172169432,
0.430839926,
0.3833263516,
0.324115485,
-0.0469213612,
-0.0500256084,
0.2153293639,
0.1384760141,
0.114516601,
0.0529845133,
0.4081782997,
-0.2819084823,
-0.3036106825,
-0.2963477671,
0.0005155209,
-0.3420429826,
-0.0163206719,
0.0408509746,
-0.3057284653,
-0.0060490007,
-0.1209775656,
-0.1276035011,
-0.1601530612,
-0.1505136341,
0.0940362662,
0.3216530383,
-0.1465228349,
0.4087112248,
-0.1629144847,
-0.0995130986,
0.0657530352,
0.2217114717,
0.1253991723,
-0.1519167274,
0.3232161403,
0.1185117215,
-0.0750733018,
-0.2994792461,
-0.2114420086,
-0.2859400809,
-0.3340993226,
0.0424085893,
-0.3305132985,
-0.1347118318,
-0.0309966803,
0.3189558089,
0.051088158,
0.0008769971,
0.1723090708,
-0.8057904243,
-0.3234642446,
-0.0176723748,
0.1075911149,
0.1114090756,
-0.1055115983,
0.1768844575,
0.063017942,
0.0597596169,
-0.2304638326,
-0.193659991,
-0.4387559295,
0.2453925461,
0.308621347,
-0.0234146677,
-0.146453768,
-0.0446067005,
0.021250803,
0.1878373623,
-0.2749354541,
-0.1673558801,
-0.2905705273,
0.1769853383,
0.1942324638,
-0.2884046435,
0.209500432,
-0.1954601854,
-0.0210173409,
-0.1284173876,
-0.2279643416,
-0.2874650061,
-0.1371353865,
0.2967793047,
-0.069697611,
0.3016504645,
0.3740833998,
0.1151089072,
-0.1468936503,
-0.1791381687,
0.0058007035,
0.3783901036,
-0.0323107578,
-0.050401397,
-0.3996291161,
-0.0413642041,
-0.1118230596,
0.3709050119,
0.2230169475,
-0.1674646586,
-0.0073873303,
-0.0221951287,
0.1894584447,
0.5158631206,
-0.2272296399,
-0.011160301,
0.218818441,
0.1058459878,
-0.3579703867,
0.0742271692,
0.1458032578,
0.3003219664,
-0.1130560264,
0.1453094035,
0.3144003153,
-0.5344159007,
0.0374047235,
-0.125132516,
0.220083639,
-0.0348913409,
0.1869911253,
0.6134514809,
0.0214275047,
-0.026158426,
-0.0164434649,
-0.5574674606,
-0.175976932,
-0.272754401,
-0.1565749794,
0.5726575851,
-0.0191967767,
0.3378191888,
0.2952502966,
-0.1438744068,
0.3550580442,
0.0667523816,
-0.082517989,
-0.0492110662,
0.0309753623,
0.6170877218,
-0.1240669042,
-0.0032550914,
-0.2620033622,
0.4167792499,
0.0118922275,
0.0029245103,
-0.7036756277,
-0.1225206926,
0.053018786,
-0.1440849453,
0.0717610717,
0.218335554,
-0.0618507154,
0.2090265155,
-0.1070681587,
-0.3118743896,
-0.0474275649,
0.113950491,
-0.0056266072,
-0.2752244771,
0.2127087563,
0.2968199551,
0.096461691,
0.0482514836,
0.2512210906,
0.5173321962,
0.6780071259,
0.4037901163,
-0.0311536472,
0.0277380086,
0.0893185288,
-0.1917225868,
0.4383189678,
0.3782944977,
0.121113129,
0.3705336452,
0.0227353051,
-0.0717986077,
-0.37267223,
0.0469348468,
-0.1442015022,
0.3953691721,
0.6808130741,
0.2013914585,
0.0490980595,
-0.205537498,
0.0190037247,
-0.4090507329,
0.0908681005,
0.1557381451,
0.1374777704,
0.392341733,
-0.2375064641,
0.0626278594,
-0.0439575016,
0.4432857037,
0.0786583275,
-0.2222790718,
-0.2107691616,
-0.3914448619,
-0.5945703387,
0.3091803789,
-0.0900206342,
-0.1103117689,
0.0388354883,
0.1946267933,
-0.3591996133,
0.043338757,
0.2884757221,
0.0080682198,
0.010747443,
-0.1215258315,
-0.305639714,
0.0861878097,
-0.121024631,
-0.1555229872,
0.0220308695,
-0.2280656695,
0.1425571293,
0.0081494199,
0.0296610668,
0.0584043935,
-0.3096064329,
-0.1291689128,
0.2887797952,
0.2433727533,
0.33754462,
0.7790845633,
-0.0342985503,
-0.2687159479,
-0.274437964,
0.1235166788,
-0.0708818138,
-0.0984067917,
-0.1125384942,
0.1817463934,
-0.1458389461,
0.3906443417,
-0.2668605745,
0.4579820037,
0.0540483668,
-0.457149297,
-0.2478499711,
-0.0685178787,
-0.0613560528,
0.1012253612,
0.059222918,
-0.0084166303,
-0.034431003,
0.345783323,
-0.2023303211,
-0.2825431824,
0.3413538337,
0.0277228821,
-0.02807221,
-0.3101081252,
0.2275163531,
-0.3426462114,
0.1476489455,
-0.8451422453,
-0.1373261213,
0.1091175601,
-0.1255628914,
-0.049803596,
0.1818449497,
-0.1117395163,
0.0617350303,
0.0560519509,
-0.4437300861,
0.100038439,
-0.2363802046,
0.2210974395,
-0.0943479687
] |
https://github.com/huggingface/datasets/issues/6 | Error when citation is not given in the DatasetInfo | Yes looks good to me.
Note that we may refactor quite strongly the `info.py` to make it a lot simpler (it's very complicated for basically a dictionary of info I think) | The following error is raised when the `citation` parameter is missing when we instantiate a `DatasetInfo`:
```
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/jplu/dev/jplu/datasets/src/nlp/info.py", line 338, in __repr__
citation_pprint = _indent('"""{}"""'.format(self.citation.strip()))
AttributeError: 'NoneType' object has no attribute 'strip'
```
I propose to do the following change in the `info.py` file. The method:
```python
def __repr__(self):
splits_pprint = _indent("\n".join(["{"] + [
" '{}': {},".format(k, split.num_examples)
for k, split in sorted(self.splits.items())
] + ["}"]))
features_pprint = _indent(repr(self.features))
citation_pprint = _indent('"""{}"""'.format(self.citation.strip()))
return INFO_STR.format(
name=self.name,
version=self.version,
description=self.description,
total_num_examples=self.splits.total_num_examples,
features=features_pprint,
splits=splits_pprint,
citation=citation_pprint,
homepage=self.homepage,
supervised_keys=self.supervised_keys,
# Proto add a \n that we strip.
license=str(self.license).strip())
```
Becomes:
```python
def __repr__(self):
splits_pprint = _indent("\n".join(["{"] + [
" '{}': {},".format(k, split.num_examples)
for k, split in sorted(self.splits.items())
] + ["}"]))
features_pprint = _indent(repr(self.features))
## the strip is done only is the citation is given
citation_pprint = self.citation
if self.citation:
citation_pprint = _indent('"""{}"""'.format(self.citation.strip()))
return INFO_STR.format(
name=self.name,
version=self.version,
description=self.description,
total_num_examples=self.splits.total_num_examples,
features=features_pprint,
splits=splits_pprint,
citation=citation_pprint,
homepage=self.homepage,
supervised_keys=self.supervised_keys,
# Proto add a \n that we strip.
license=str(self.license).strip())
```
And now it is ok. @thomwolf are you ok with this fix? | 31 | Error when citation is not given in the DatasetInfo
The following error is raised when the `citation` parameter is missing when we instantiate a `DatasetInfo`:
```
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/jplu/dev/jplu/datasets/src/nlp/info.py", line 338, in __repr__
citation_pprint = _indent('"""{}"""'.format(self.citation.strip()))
AttributeError: 'NoneType' object has no attribute 'strip'
```
I propose to do the following change in the `info.py` file. The method:
```python
def __repr__(self):
splits_pprint = _indent("\n".join(["{"] + [
" '{}': {},".format(k, split.num_examples)
for k, split in sorted(self.splits.items())
] + ["}"]))
features_pprint = _indent(repr(self.features))
citation_pprint = _indent('"""{}"""'.format(self.citation.strip()))
return INFO_STR.format(
name=self.name,
version=self.version,
description=self.description,
total_num_examples=self.splits.total_num_examples,
features=features_pprint,
splits=splits_pprint,
citation=citation_pprint,
homepage=self.homepage,
supervised_keys=self.supervised_keys,
# Proto add a \n that we strip.
license=str(self.license).strip())
```
Becomes:
```python
def __repr__(self):
splits_pprint = _indent("\n".join(["{"] + [
" '{}': {},".format(k, split.num_examples)
for k, split in sorted(self.splits.items())
] + ["}"]))
features_pprint = _indent(repr(self.features))
## the strip is done only is the citation is given
citation_pprint = self.citation
if self.citation:
citation_pprint = _indent('"""{}"""'.format(self.citation.strip()))
return INFO_STR.format(
name=self.name,
version=self.version,
description=self.description,
total_num_examples=self.splits.total_num_examples,
features=features_pprint,
splits=splits_pprint,
citation=citation_pprint,
homepage=self.homepage,
supervised_keys=self.supervised_keys,
# Proto add a \n that we strip.
license=str(self.license).strip())
```
And now it is ok. @thomwolf are you ok with this fix?
Yes looks good to me.
Note that we may refactor quite strongly the `info.py` to make it a lot simpler (it's very complicated for basically a dictionary of info I think) | [
0.2855115235,
0.0732320994,
0.1477970779,
0.1601160914,
0.28277722,
0.2352982759,
0.2543575466,
0.4805192351,
-0.4466490746,
0.1662403196,
0.4036864936,
0.3917038143,
0.0535712391,
-0.2033304572,
-0.0758437067,
-0.3508138061,
-0.1062088683,
0.2190295756,
0.3720495701,
-0.0522516854,
-0.3091629446,
0.165400967,
-0.3137938976,
-0.0903739333,
-0.2572649121,
-0.1726610661,
-0.2614686191,
0.2065149993,
-0.3102678359,
-0.5589753389,
0.1857401729,
0.0635506362,
0.0325641558,
0.014665124,
-0.0001185848,
0.0302900951,
0.3959795535,
-0.1021314636,
-0.2354654074,
-0.2480827272,
-0.5433374643,
-0.2237133533,
-0.0299770329,
-0.3961986601,
-0.1640134305,
-0.0125305122,
-0.1367192268,
0.1232260913,
0.1175464466,
0.2436018735,
0.1624840647,
0.0612456389,
0.0864231959,
-0.3654048741,
0.0225187894,
0.4103298187,
-0.0947480351,
-0.2211682051,
-0.026220357,
0.077310726,
0.0846516117,
0.253425926,
-0.1967160553,
-0.1238168404,
0.4814615846,
-0.0951771289,
-0.0258708261,
-0.0744221658,
-0.0097685931,
0.1676390022,
0.5024430752,
-0.2813962996,
-0.5132008195,
-0.01630437,
0.2781537175,
-0.021277139,
-0.0074700792,
0.0304121133,
-0.0812078565,
0.0895342603,
0.2815131843,
-0.2978963256,
-0.0270236991,
-0.1198629886,
0.0443735234,
0.2116343826,
0.0791527405,
0.1897021532,
0.0061700121,
-0.119170405,
-0.1341096759,
-0.0683481246,
-0.2433663011,
0.1042294651,
-0.0947712362,
-0.2623224854,
0.3013676107,
-0.1240371466,
0.3263942003,
0.2747796178,
-0.0126671502,
-0.3645196259,
0.1062229201,
0.1398008466,
0.2596131861,
0.0484169982,
-0.0095626013,
0.2912045717,
0.380836904,
-0.2724869251,
-0.0530267656,
-0.0224928968,
0.1467386931,
-0.0760318264,
0.1871121228,
0.3163544834,
0.6639338136,
-0.2459217906,
-0.2278142273,
0.0181364138,
-0.4110317528,
0.0834342092,
-0.0681848004,
0.1200494394,
0.0531695262,
0.181180343,
0.0788509846,
0.1461927891,
0.0442110673,
-0.3349075019,
-0.3145992458,
0.2601853609,
-0.1411742568,
-0.1581095457,
0.0291047841,
0.3195925951,
0.3016163707,
0.0878601521,
-0.2863541842,
-0.1176710427,
0.0519985035,
-0.355563432,
-0.1510316133,
0.248195827,
-0.1378615052,
0.0533520505,
0.3309008181,
-0.3365868032,
-0.2073498517,
0.5098428726,
-0.2286174446,
-0.3707090914,
-0.1757763028,
0.1305075437,
-0.2939587533,
-0.1857749373,
-0.0267877541,
0.1469056457,
0.0339363664,
-0.2264345735,
-0.158671841,
-0.1596159041,
-0.1011698246,
-0.1808521301,
0.2104245573,
0.7028291821,
-0.2065770924,
-0.2376953214,
-0.1792687923,
0.006601105,
0.3217360377,
0.0637398437,
-0.2051240951,
0.4242264926,
-0.1891367882,
0.3097800016,
0.4551814795,
-0.5058348179,
-0.2645927072,
0.0924513936,
-0.0901543498,
-0.1495330632,
0.3402814865,
0.0750062317,
0.3930951357,
-0.3331330419,
0.175207898,
0.1514255404,
-0.1647031009,
-0.0128043676,
-0.2054263651,
-0.0252166521,
0.2687395811,
-0.0305355024,
0.1777627766,
0.4301314354,
0.0266651604,
0.2354377657,
0.0071865306,
-0.0845383406,
0.0959234014,
0.6712448597,
0.4971640706,
-0.0815782174,
0.0407694727,
0.0891509801,
0.1425518841,
-0.0065859342,
-0.0049519059,
0.513589561,
-0.4911937714,
-0.3580028713,
-0.2441372573,
-0.0477070734,
0.0384990871,
-0.1283961982,
0.0801429972,
0.1488384455,
0.2277501225,
0.1530404091,
-0.1139561757,
0.034183152,
-0.3096471131,
0.1729863435,
-0.2149270773,
0.070907481,
-0.0962565765,
-0.1759298146,
0.2824999094,
0.4030957818,
0.3565140367,
0.1395496875,
-0.2577133775,
0.2078028023,
0.3365242481,
-0.084073253,
0.3318352699,
-0.0264526941,
0.2214432508,
-0.5601443052,
-0.1064448506,
0.1312950253,
0.2259837389,
-0.0394203626,
-0.1677944213,
0.1209987849,
-0.0971578881,
0.1369835287,
0.0983096957,
0.2548844516,
0.2972358763,
-0.1475792229,
-0.2540404201,
-0.1345715672,
-0.4073708653,
0.3577824533,
0.0442950986,
0.1807565242,
-0.3323707581,
-0.06579981,
0.2814857364,
0.0483953506,
-0.0834364295,
0.0813502669,
-0.2417710871,
-0.0494089611,
0.0345414095,
0.50436306,
0.5588220358,
0.2867322564,
-0.1355880648,
0.0329402238,
0.0807512626,
0.0325012207,
0.1965013295,
0.1724262387,
0.0140459854,
0.1181469634,
0.0886255354,
0.2647516429,
-0.0481834188,
-0.3537191749,
0.2952136695,
0.457752645,
-0.2807687521,
-0.150439173,
-0.3010822833,
-0.3772717714,
-0.2303930521,
-0.1566965878,
0.1558210254,
-0.2895431817,
-0.1114747599,
0.0278519988,
-0.2261853516,
0.2793827355,
-0.217655912,
0.0751800388,
0.1010246202,
-0.2260201275,
-0.0099928109,
-0.1933923364,
0.0566481724,
-0.0408326536,
-0.0482503474,
0.2714772224,
0.2608515322,
0.031236168,
0.0936890692,
-0.4852136075,
-0.4991576672,
0.1850651801,
-0.2016004324,
0.2247463018,
0.3787460923,
0.25416857,
-0.056391634,
-0.1754275858,
0.3002545834,
0.189056024,
-0.0711905211,
0.2082999945,
-0.2221644372,
-0.1809338182,
-0.1976262927,
-0.4478680789,
-0.1524799913,
-0.3519620001,
-0.3242321312,
0.0325692557,
-0.1595593095,
0.5114239454,
-0.0376601182,
0.1078790724,
0.4586963952,
0.3906832933,
0.0442582592,
0.0350527689,
0.326302439,
-0.1154825017,
-0.3304881454,
0.1488805264,
-0.2420459837,
0.0507308766,
0.1023527533,
-0.1610191911,
-0.405407697,
0.085415259,
0.2321097255,
-0.0968377292,
0.2345748842,
0.3909749091,
0.2886581421,
-0.1030012444,
-0.1418349296,
-0.2641216516,
0.0721987188,
0.0509950444,
0.2560447156,
0.1619250774,
0.1512389928,
-0.006899741,
0.3923110664,
0.1909053326,
0.0996041149,
0.2211282253,
-0.0202334356,
0.1393009871,
0.0169180781,
-0.0862641037,
-0.0371093079,
0.2619734108,
-0.1297570914,
0.0234720595,
-0.0368065983,
-0.1350054294,
-0.0652678311,
-0.2120335698,
-0.2937169075,
-0.2581720948,
-0.1676617712,
-0.2041823119,
0.5298535228,
0.1539094895,
0.0566982292,
-0.215020895,
0.1116408929,
0.039882198,
0.397865355,
0.4186892211,
-0.0655550733,
-0.1002215892,
-0.1168365851,
-0.4247887135,
0.007928527,
0.0285913069,
0.2898785174,
-0.0292110089,
-0.1184241995,
0.117629908,
0.1090157777,
0.4440206289,
-0.3201775849,
-0.0942389369,
0.2171334922,
-0.0520305522,
-0.0749424398,
0.0966637731,
-0.1407676935,
0.326513797,
0.1625845134,
-0.0012650042,
-0.343159914,
-0.1991195828,
0.5652011633,
0.0161457509,
-0.0239479914,
0.0118606752,
-0.0996704325,
-0.5567365885,
-0.289375484,
0.0074643688,
-0.0616963021,
0.3286769092,
0.4054487348,
0.03579567,
-0.3641445339,
-0.0787936002,
0.0652355328,
0.1031479239,
0.4205918312,
-0.0471301936,
0.1016337574,
-0.2359841466,
-0.1014061719,
0.1652704626,
0.2810602784,
-0.0035396004,
-0.4454728365,
-0.1814172119,
-0.091166392,
0.2103849798,
0.0349843986,
-0.1234336793,
0.2475429028,
0.0253233463,
-0.0295027699,
-0.1880523711,
-0.3054904044,
0.1771834046,
-0.2179387063,
-0.3578873575,
-0.4102498591,
0.0567888245,
0.2962571681,
0.0033550712,
0.169974044,
0.6390142441,
-0.3207843006,
0.36013785,
0.0156329814,
1.0747798681,
0.2924574614,
-0.2725104988,
0.2915844321,
0.0433296748,
0.5590183735,
0.2358975112,
0.2341376096,
-0.4298230112,
-0.3786419928,
-0.0747426301,
-0.0519500226,
0.2784280777,
-0.0809198171,
-0.5020384789,
0.1756700277,
-0.1523384303,
0.0022326733,
0.1220385581,
0.0872594491,
0.0060307188,
-0.2312283963,
-0.2017601132,
0.067015864,
-0.1527359784,
0.3128903806,
-0.0857257321,
-0.2435338199,
-0.1070019081,
-0.3578907251,
-0.2665626705,
0.0008039233,
-0.0181010496,
0.2025057673,
0.1674944758,
-0.281868875,
-0.019320365,
0.2606437802,
0.3911965489,
0.1438504457,
-0.1460817158,
0.1348208636,
-0.3412264884,
0.0674621835,
0.0010563593,
0.3297887444,
0.663510859,
0.0570277423,
-0.2791727483,
0.0722952932,
-0.3045297265,
-0.2996291518,
0.2755071819,
-0.3606640697,
-0.2726457715,
-0.1459129602,
-0.3561815023,
0.186503619,
-0.1307550222,
-0.3097571731,
0.1204931065,
0.1125205606,
-0.2872118354,
0.1730938256,
0.0209985375,
-0.1482331604,
0.0887123421,
0.1320440471,
0.431978941,
0.5363360643,
0.352291584,
-0.0066532549,
0.0746257305,
-0.1703941971,
0.0755945072,
-0.2000355572,
-0.2088156343,
0.4038467109,
0.0661251023,
0.3287600279,
-0.0338514596,
0.3243111074,
-0.1475848258,
0.2115741819,
-0.2455798388,
-0.3820871115,
-0.1751211137,
0.2641634941,
-0.149431169,
-0.0163526777,
-0.035631571,
0.2395953536,
0.0800131261,
-0.1487661749,
-0.2949715853,
-0.0097230515,
-0.4209564626,
0.2777431011,
0.3176943958,
0.2704792023,
0.0551023446,
-0.0695452914,
0.0922539011,
0.042399779,
0.0950590149,
-0.079263024,
-0.3869245648,
0.1389072835,
0.1080892235,
0.2912573814,
-0.083302781,
-0.1454296857,
-0.1910989285,
-0.0237107165,
0.0475818142,
0.23992984,
-0.0320062339,
0.3826498687,
-0.3793173134,
0.1382133663,
-0.2307714373,
0.0374536552,
0.1142779142,
0.1407284886,
0.0325585529,
0.1824620515,
0.0813173279,
-0.0186538659,
-0.5630631447,
0.1317279488,
-0.1979644895,
-0.1241240948,
0.3146760166,
0.0093681198,
0.1651305407,
0.2314258069,
-0.0144516388,
-0.0592809208,
-0.1193886325,
0.2787911296,
0.0533663966,
0.1493475586,
-0.4110961854,
-0.0266344361,
0.1290837973,
-0.1473091543,
0.138792783,
0.2995393872,
0.0316387489,
0.0877543688,
-0.0951117724,
-0.1150847748,
0.7280264497,
-0.3307802975,
0.1762422621,
0.4804487526,
0.0208483171,
0.1105091721,
-0.0597956218,
0.1357880682,
0.1895600855,
0.1926505268,
0.0215182807,
0.321955204,
0.0450905561,
-0.1167584434,
0.056382224,
-0.2132246047,
0.7372806668,
0.4240520298,
0.2802538574,
-0.2031775713,
0.0000220606,
0.3681064844,
-0.1852523535,
-0.0167538226,
-0.0322264172,
0.1175443828,
-0.1886275411,
0.1395933628,
-0.3298097551,
-0.0430393443,
-0.2036426663,
-0.2156832069,
0.1195984259,
0.0806260854,
0.0927328989,
-0.1072930098,
-0.0609588996,
-0.4254481792,
0.3382220268,
0.2237197161,
0.1118543074,
-0.3376896977,
-0.1360162199,
-0.1737664789,
-0.1550248712,
0.1986852139,
0.6460390091,
0.3805178404,
0.2580197752,
0.2946339846,
-0.3353048861,
-0.1101618931,
-0.273888737,
0.1492373645,
0.1907609105,
0.0334806144,
0.2015861273,
0.0069944728,
0.0584824383,
-0.0647766069,
0.1245981306,
0.128916055,
-0.1045881659,
-0.1857668906,
0.6569803357,
0.0692303851,
-0.3637076318,
0.1040506959,
0.1762641221,
-0.356489718,
0.0153630245,
0.2813158333,
0.2383053154,
-0.036146801,
0.0326531231,
0.0407718681,
-0.1304047704,
-0.0026092504,
0.5073680878,
-0.4390853941,
-0.2159505486,
-0.0833728984,
-0.5888125896,
-0.0206926186,
0.1485566795,
-0.3750438094,
0.1395827085,
0.0455850437,
-0.0831532106,
0.143159762,
-0.1116363779,
-0.2610346675,
-0.1053234264,
-0.1459403932,
-0.1304328293,
-0.3108998239,
-0.3554877341,
-0.2258845717,
-0.2022145838,
-0.1785322875,
-0.0908832625,
0.0453529321,
0.0243955944,
-0.1597585976,
-0.1778943837,
0.1169615015,
-0.2261748165,
0.4319361746,
0.3429264128,
0.4568072557,
-0.0935687274,
-0.1591011882,
0.0939475819,
-0.1951588392,
-0.2731353045,
0.1776690781,
0.0527603999,
0.568574667,
0.0545593984,
-0.1818616539,
-0.2560171485,
0.1016359478,
-0.0009114518,
-0.036325112,
-0.6818227768,
0.3935560882,
-0.2956719398,
0.1442217082,
0.1971508563,
-0.0676481277,
-0.0124600194,
0.2009124011,
-0.2974280715,
-0.3067867756,
0.444824636,
-0.1353921443,
-0.1814392656,
-0.1826212704,
0.4639230967,
-0.3398220241,
-0.0658369586,
-0.7032311559,
0.0131410081,
0.2306144536,
0.0301837586,
-0.332704097,
0.230028227,
0.2124576271,
0.0812509954,
0.1095383093,
-0.2603388429,
-0.1833194047,
-0.055259198,
0.0039654849,
0.0284389351
] |
https://github.com/huggingface/datasets/issues/5 | ValueError when a split is empty | To fix this I propose to modify only the file `arrow_reader.py` with few updates. First update, the following method:
```python
def _make_file_instructions_from_absolutes(
name,
name2len,
absolute_instructions,
):
"""Returns the files instructions from the absolute instructions list."""
# For each split, return the files instruction (skip/take)
file_instructions = []
num_examples = 0
for abs_instr in absolute_instructions:
length = name2len[abs_instr.splitname]
if not length:
raise ValueError(
'Split empty. This might means that dataset hasn\'t been generated '
'yet and info not restored from GCS, or that legacy dataset is used.')
filename = filename_for_dataset_split(
dataset_name=name,
split=abs_instr.splitname,
filetype_suffix='arrow')
from_ = 0 if abs_instr.from_ is None else abs_instr.from_
to = length if abs_instr.to is None else abs_instr.to
num_examples += to - from_
single_file_instructions = [{"filename": filename, "skip": from_, "take": to - from_}]
file_instructions.extend(single_file_instructions)
return FileInstructions(
num_examples=num_examples,
file_instructions=file_instructions,
)
```
Becomes:
```python
def _make_file_instructions_from_absolutes(
name,
name2len,
absolute_instructions,
):
"""Returns the files instructions from the absolute instructions list."""
# For each split, return the files instruction (skip/take)
file_instructions = []
num_examples = 0
for abs_instr in absolute_instructions:
length = name2len[abs_instr.splitname]
## Delete the if not length and the raise
filename = filename_for_dataset_split(
dataset_name=name,
split=abs_instr.splitname,
filetype_suffix='arrow')
from_ = 0 if abs_instr.from_ is None else abs_instr.from_
to = length if abs_instr.to is None else abs_instr.to
num_examples += to - from_
single_file_instructions = [{"filename": filename, "skip": from_, "take": to - from_}]
file_instructions.extend(single_file_instructions)
return FileInstructions(
num_examples=num_examples,
file_instructions=file_instructions,
)
```
Second update the following method:
```python
def _read_files(files, info):
"""Returns Dataset for given file instructions.
Args:
files: List[dict(filename, skip, take)], the files information.
The filenames contain the absolute path, not relative.
skip/take indicates which example read in the file: `ds.slice(skip, take)`
"""
pa_batches = []
for f_dict in files:
pa_table: pa.Table = _get_dataset_from_filename(f_dict)
pa_batches.extend(pa_table.to_batches())
pa_table = pa.Table.from_batches(pa_batches)
ds = Dataset(arrow_table=pa_table, data_files=files, info=info)
return ds
```
Becomes:
```python
def _read_files(files, info):
"""Returns Dataset for given file instructions.
Args:
files: List[dict(filename, skip, take)], the files information.
The filenames contain the absolute path, not relative.
skip/take indicates which example read in the file: `ds.slice(skip, take)`
"""
pa_batches = []
for f_dict in files:
pa_table: pa.Table = _get_dataset_from_filename(f_dict)
pa_batches.extend(pa_table.to_batches())
## we modify the table only if there are some batches
if pa_batches:
pa_table = pa.Table.from_batches(pa_batches)
ds = Dataset(arrow_table=pa_table, data_files=files, info=info)
return ds
```
With these two updates it works now. @thomwolf are you ok with this changes? | When a split is empty either TEST, VALIDATION or TRAIN I get the following error:
```
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/jplu/dev/jplu/datasets/src/nlp/load.py", line 295, in load
ds = dbuilder.as_dataset(**as_dataset_kwargs)
File "/home/jplu/dev/jplu/datasets/src/nlp/builder.py", line 587, in as_dataset
datasets = utils.map_nested(build_single_dataset, split, map_tuple=True)
File "/home/jplu/dev/jplu/datasets/src/nlp/utils/py_utils.py", line 158, in map_nested
for k, v in data_struct.items()
File "/home/jplu/dev/jplu/datasets/src/nlp/utils/py_utils.py", line 158, in <dictcomp>
for k, v in data_struct.items()
File "/home/jplu/dev/jplu/datasets/src/nlp/utils/py_utils.py", line 172, in map_nested
return function(data_struct)
File "/home/jplu/dev/jplu/datasets/src/nlp/builder.py", line 601, in _build_single_dataset
split=split,
File "/home/jplu/dev/jplu/datasets/src/nlp/builder.py", line 625, in _as_dataset
split_infos=self.info.splits.values(),
File "/home/jplu/dev/jplu/datasets/src/nlp/arrow_reader.py", line 200, in read
return py_utils.map_nested(_read_instruction_to_ds, instructions)
File "/home/jplu/dev/jplu/datasets/src/nlp/utils/py_utils.py", line 172, in map_nested
return function(data_struct)
File "/home/jplu/dev/jplu/datasets/src/nlp/arrow_reader.py", line 191, in _read_instruction_to_ds
file_instructions = make_file_instructions(name, split_infos, instruction)
File "/home/jplu/dev/jplu/datasets/src/nlp/arrow_reader.py", line 104, in make_file_instructions
absolute_instructions=absolute_instructions,
File "/home/jplu/dev/jplu/datasets/src/nlp/arrow_reader.py", line 122, in _make_file_instructions_from_absolutes
'Split empty. This might means that dataset hasn\'t been generated '
ValueError: Split empty. This might means that dataset hasn't been generated yet and info not restored from GCS, or that legacy dataset is used.
```
How to reproduce:
```python
import csv
import nlp
class Bbc(nlp.GeneratorBasedBuilder):
VERSION = nlp.Version("1.0.0")
def __init__(self, **config):
self.train = config.pop("train", None)
self.validation = config.pop("validation", None)
super(Bbc, self).__init__(**config)
def _info(self):
return nlp.DatasetInfo(builder=self, description="bla", features=nlp.features.FeaturesDict({"id": nlp.int32, "text": nlp.string, "label": nlp.string}))
def _split_generators(self, dl_manager):
return [nlp.SplitGenerator(name=nlp.Split.TRAIN, gen_kwargs={"filepath": self.train}),
nlp.SplitGenerator(name=nlp.Split.VALIDATION, gen_kwargs={"filepath": self.validation}),
nlp.SplitGenerator(name=nlp.Split.TEST, gen_kwargs={"filepath": None})]
def _generate_examples(self, filepath):
if not filepath:
return None, {}
with open(filepath) as f:
reader = csv.reader(f, delimiter=',', quotechar="\"")
lines = list(reader)[1:]
for idx, line in enumerate(lines):
yield idx, {"id": idx, "text": line[1], "label": line[0]}
```
```python
import nlp
dataset = nlp.load("bbc", builder_kwargs={"train": "bbc/data/train.csv", "validation": "bbc/data/test.csv"})
``` | 379 | ValueError when a split is empty
When a split is empty either TEST, VALIDATION or TRAIN I get the following error:
```
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/jplu/dev/jplu/datasets/src/nlp/load.py", line 295, in load
ds = dbuilder.as_dataset(**as_dataset_kwargs)
File "/home/jplu/dev/jplu/datasets/src/nlp/builder.py", line 587, in as_dataset
datasets = utils.map_nested(build_single_dataset, split, map_tuple=True)
File "/home/jplu/dev/jplu/datasets/src/nlp/utils/py_utils.py", line 158, in map_nested
for k, v in data_struct.items()
File "/home/jplu/dev/jplu/datasets/src/nlp/utils/py_utils.py", line 158, in <dictcomp>
for k, v in data_struct.items()
File "/home/jplu/dev/jplu/datasets/src/nlp/utils/py_utils.py", line 172, in map_nested
return function(data_struct)
File "/home/jplu/dev/jplu/datasets/src/nlp/builder.py", line 601, in _build_single_dataset
split=split,
File "/home/jplu/dev/jplu/datasets/src/nlp/builder.py", line 625, in _as_dataset
split_infos=self.info.splits.values(),
File "/home/jplu/dev/jplu/datasets/src/nlp/arrow_reader.py", line 200, in read
return py_utils.map_nested(_read_instruction_to_ds, instructions)
File "/home/jplu/dev/jplu/datasets/src/nlp/utils/py_utils.py", line 172, in map_nested
return function(data_struct)
File "/home/jplu/dev/jplu/datasets/src/nlp/arrow_reader.py", line 191, in _read_instruction_to_ds
file_instructions = make_file_instructions(name, split_infos, instruction)
File "/home/jplu/dev/jplu/datasets/src/nlp/arrow_reader.py", line 104, in make_file_instructions
absolute_instructions=absolute_instructions,
File "/home/jplu/dev/jplu/datasets/src/nlp/arrow_reader.py", line 122, in _make_file_instructions_from_absolutes
'Split empty. This might means that dataset hasn\'t been generated '
ValueError: Split empty. This might means that dataset hasn't been generated yet and info not restored from GCS, or that legacy dataset is used.
```
How to reproduce:
```python
import csv
import nlp
class Bbc(nlp.GeneratorBasedBuilder):
VERSION = nlp.Version("1.0.0")
def __init__(self, **config):
self.train = config.pop("train", None)
self.validation = config.pop("validation", None)
super(Bbc, self).__init__(**config)
def _info(self):
return nlp.DatasetInfo(builder=self, description="bla", features=nlp.features.FeaturesDict({"id": nlp.int32, "text": nlp.string, "label": nlp.string}))
def _split_generators(self, dl_manager):
return [nlp.SplitGenerator(name=nlp.Split.TRAIN, gen_kwargs={"filepath": self.train}),
nlp.SplitGenerator(name=nlp.Split.VALIDATION, gen_kwargs={"filepath": self.validation}),
nlp.SplitGenerator(name=nlp.Split.TEST, gen_kwargs={"filepath": None})]
def _generate_examples(self, filepath):
if not filepath:
return None, {}
with open(filepath) as f:
reader = csv.reader(f, delimiter=',', quotechar="\"")
lines = list(reader)[1:]
for idx, line in enumerate(lines):
yield idx, {"id": idx, "text": line[1], "label": line[0]}
```
```python
import nlp
dataset = nlp.load("bbc", builder_kwargs={"train": "bbc/data/train.csv", "validation": "bbc/data/test.csv"})
```
To fix this I propose to modify only the file `arrow_reader.py` with few updates. First update, the following method:
```python
def _make_file_instructions_from_absolutes(
name,
name2len,
absolute_instructions,
):
"""Returns the files instructions from the absolute instructions list."""
# For each split, return the files instruction (skip/take)
file_instructions = []
num_examples = 0
for abs_instr in absolute_instructions:
length = name2len[abs_instr.splitname]
if not length:
raise ValueError(
'Split empty. This might means that dataset hasn\'t been generated '
'yet and info not restored from GCS, or that legacy dataset is used.')
filename = filename_for_dataset_split(
dataset_name=name,
split=abs_instr.splitname,
filetype_suffix='arrow')
from_ = 0 if abs_instr.from_ is None else abs_instr.from_
to = length if abs_instr.to is None else abs_instr.to
num_examples += to - from_
single_file_instructions = [{"filename": filename, "skip": from_, "take": to - from_}]
file_instructions.extend(single_file_instructions)
return FileInstructions(
num_examples=num_examples,
file_instructions=file_instructions,
)
```
Becomes:
```python
def _make_file_instructions_from_absolutes(
name,
name2len,
absolute_instructions,
):
"""Returns the files instructions from the absolute instructions list."""
# For each split, return the files instruction (skip/take)
file_instructions = []
num_examples = 0
for abs_instr in absolute_instructions:
length = name2len[abs_instr.splitname]
## Delete the if not length and the raise
filename = filename_for_dataset_split(
dataset_name=name,
split=abs_instr.splitname,
filetype_suffix='arrow')
from_ = 0 if abs_instr.from_ is None else abs_instr.from_
to = length if abs_instr.to is None else abs_instr.to
num_examples += to - from_
single_file_instructions = [{"filename": filename, "skip": from_, "take": to - from_}]
file_instructions.extend(single_file_instructions)
return FileInstructions(
num_examples=num_examples,
file_instructions=file_instructions,
)
```
Second update the following method:
```python
def _read_files(files, info):
"""Returns Dataset for given file instructions.
Args:
files: List[dict(filename, skip, take)], the files information.
The filenames contain the absolute path, not relative.
skip/take indicates which example read in the file: `ds.slice(skip, take)`
"""
pa_batches = []
for f_dict in files:
pa_table: pa.Table = _get_dataset_from_filename(f_dict)
pa_batches.extend(pa_table.to_batches())
pa_table = pa.Table.from_batches(pa_batches)
ds = Dataset(arrow_table=pa_table, data_files=files, info=info)
return ds
```
Becomes:
```python
def _read_files(files, info):
"""Returns Dataset for given file instructions.
Args:
files: List[dict(filename, skip, take)], the files information.
The filenames contain the absolute path, not relative.
skip/take indicates which example read in the file: `ds.slice(skip, take)`
"""
pa_batches = []
for f_dict in files:
pa_table: pa.Table = _get_dataset_from_filename(f_dict)
pa_batches.extend(pa_table.to_batches())
## we modify the table only if there are some batches
if pa_batches:
pa_table = pa.Table.from_batches(pa_batches)
ds = Dataset(arrow_table=pa_table, data_files=files, info=info)
return ds
```
With these two updates it works now. @thomwolf are you ok with this changes? | [
-0.2972345054,
-0.0131540755,
-0.1030680835,
0.293113023,
0.0207598414,
-0.0219011754,
0.6005368829,
0.47498402,
-0.0488540046,
0.4204657972,
0.0286983997,
0.2306585461,
-0.3276995718,
0.1830052733,
-0.4715830386,
-0.2210289836,
-0.062096972,
0.403324753,
0.0316318534,
0.0022022389,
-0.2077700645,
0.1781738997,
-0.3489647806,
0.2001751214,
-0.4412804842,
-0.3235145807,
-0.0962039009,
0.0336119235,
-0.1655959934,
-0.5333557129,
0.2795562148,
-0.315582484,
-0.210861966,
0.438343972,
-0.0001089997,
0.2471229434,
0.3216661215,
0.0212962572,
-0.2349681109,
-0.1730071306,
-0.2148886025,
0.0468610823,
-0.0701178014,
-0.1868548691,
-0.1008068249,
-0.2197804302,
-0.3655616939,
0.0298771877,
0.2869432271,
0.2550379634,
0.196602881,
0.1572323292,
0.024917569,
-0.1763807982,
0.0856721029,
-0.1056944653,
0.0970318466,
0.0854186267,
-0.1803481877,
-0.2269462347,
-0.1018458158,
0.2128953934,
-0.0124386353,
0.0009041753,
-0.2380747497,
0.1348018795,
0.2368194908,
-0.3553720117,
-0.1338814944,
0.0872520506,
-0.0105637321,
-0.002415403,
-0.1980993301,
-0.3114364147,
0.0216912497,
-0.3575949371,
0.0597176738,
0.2921062708,
-0.1286968887,
0.1240952909,
0.228433311,
0.1736135781,
-0.2168528736,
-0.0249616075,
-0.3034920692,
0.3541931808,
-0.0313312374,
0.0348217748,
0.2476860136,
-0.0247120559,
0.0857292488,
-0.0367393941,
-0.2185789347,
0.1155374944,
-0.2246415019,
-0.3038745821,
-0.1532901376,
-0.3125606477,
-0.0919001475,
-0.0317807719,
0.0276311375,
-0.1767441034,
0.1064910069,
0.408811152,
0.3043406606,
-0.053491246,
0.3710523248,
0.4308699369,
0.0564231388,
0.150334239,
0.0145206125,
0.0291581545,
0.0300027579,
-0.2769691944,
0.0414249562,
0.1946728528,
0.4200004637,
0.077633135,
-0.3998927176,
-0.0317490622,
-0.2662961483,
-0.0253006369,
0.2187400758,
0.377743125,
0.0436375588,
0.1135603189,
-0.0598016717,
0.1989059299,
-0.0594730712,
-0.4426793158,
-0.3030685484,
0.3334762454,
-0.1042800695,
-0.317753464,
0.0193638597,
-0.0207898766,
0.1957090348,
0.21913822,
-0.1739815474,
-0.0592373163,
0.1233525127,
-0.4605063498,
0.1437608302,
0.3618826568,
-0.0033450963,
-0.2083799541,
0.2578763366,
-0.209417209,
0.0035282266,
0.2536199689,
-0.0682574213,
-0.355948776,
-0.0321291089,
0.3377677798,
0.1614763737,
0.1738892198,
-0.1163772196,
0.1625700146,
0.3533759117,
-0.2079336047,
0.0242774747,
-0.0858380422,
-0.2200116515,
-0.2932094932,
0.1470616311,
0.3619222641,
-0.3413057327,
-0.1330837458,
-0.1345358044,
-0.1824869066,
0.0983032733,
0.0809265673,
-0.1797881126,
0.3938575387,
-0.238693729,
0.5446957946,
0.4584333599,
-0.2361294031,
-0.0809234306,
0.3233039379,
-0.036727827,
-0.2104672045,
-0.0367174223,
-0.179826349,
0.1973540038,
0.0377614535,
0.1241148636,
0.0272632614,
-0.2770869434,
-0.1476685703,
-0.2296880484,
0.035151355,
0.3037279248,
0.0866829902,
0.2002632171,
-0.213245675,
-0.0600377955,
0.0495814122,
-0.0122901872,
-0.0569790713,
0.1059751883,
0.251163125,
0.2062111348,
-0.2719922066,
-0.1631948948,
-0.1595900953,
-0.2165904343,
0.1562371701,
-0.4682895243,
0.0489554219,
-0.1579334438,
-0.1106652096,
-0.158621788,
0.1668359488,
-0.3561004996,
-0.3218685091,
0.2448066026,
-0.0483384989,
0.0161141511,
0.1176603734,
-0.3002465069,
-0.0519225337,
-0.19772017,
0.2331566364,
-0.0668307692,
0.4000049531,
-0.2685911059,
-0.2137828022,
-0.1045412645,
0.1410853863,
0.1222289205,
-0.0281016342,
-0.001392163,
0.5620465279,
0.3317558467,
-0.1843186915,
-0.132033065,
-0.4199967384,
0.2186244279,
0.08010865,
-0.0030810616,
0.0431584343,
0.1956192851,
-0.1354966313,
0.0702925175,
0.4215483069,
-0.1646191627,
0.0998703763,
0.0960526615,
0.1102361158,
0.0731213912,
-0.1226165071,
0.1938956082,
-0.1256380379,
-0.1501625031,
-0.6316095591,
0.10660813,
0.0297480915,
-0.1727100909,
-0.1840965301,
0.3182248771,
-0.0157900453,
0.1076052934,
-0.0694290772,
0.0899708346,
-0.0430511311,
0.0124481358,
0.4540238678,
0.3595222533,
0.1093107611,
0.0691784173,
-0.026388716,
0.1020537913,
0.004379563,
0.2359508872,
-0.0829028711,
0.2125871629,
0.4033501148,
-0.2370359749,
-0.1057200208,
-0.0774154812,
-0.0378508233,
0.2675488889,
0.3059706986,
-0.099827528,
-0.1649615616,
-0.109630309,
-0.0298334863,
0.0824985802,
-0.0792457685,
-0.2058334649,
-0.3919479549,
0.0027048707,
0.0255113095,
-0.1684822738,
0.2499873489,
-0.044841297,
-0.0304832906,
0.3654892743,
-0.0320748128,
-0.0872665644,
-0.0385824665,
-0.3025595546,
0.1351387948,
-0.0923736691,
0.1497680247,
0.1493163854,
0.2277187109,
-0.1718715131,
0.1362488717,
-0.153834179,
0.1338604838,
-0.2160102129,
-0.0281834528,
0.4562614262,
0.1762323827,
0.1133827791,
-0.292543143,
0.3600920439,
-0.1658400148,
-0.2999571264,
0.1651653945,
0.3752209246,
0.1846019179,
-0.310233295,
-0.2788726687,
-0.3881150484,
-0.4727134705,
-0.0969040617,
-0.1738378704,
0.1903255135,
0.1340663731,
0.2356196344,
0.2885962129,
0.185778141,
-0.2718161941,
0.0637558848,
0.1844049692,
0.0797057599,
-0.1597718745,
-0.1220593452,
0.1154369712,
-0.3134942055,
0.479427278,
-0.2793751359,
-0.3259856403,
-0.0821820423,
0.0239238031,
0.2465984076,
-0.1440029591,
-0.1793990582,
0.209183678,
0.2842230499,
-0.1756091565,
0.0167780239,
-0.0508550219,
0.2462120354,
-0.1252520829,
0.0307021681,
-0.0990922004,
0.3232717514,
0.2634008229,
0.4122441411,
0.2139678448,
-0.1056069657,
0.0975425616,
-0.0699538589,
0.1825751066,
-0.0814448521,
-0.479200393,
-0.2696221471,
0.1803123802,
-0.0901965722,
0.0706486106,
-0.2812639475,
-0.1435807049,
-0.2160852253,
-0.4142451882,
-0.1067024916,
-0.1011579037,
0.0656695589,
-0.3637962639,
0.2715674043,
-0.3162961602,
0.0702566803,
0.173154071,
0.2696449161,
-0.0772329345,
-0.050392013,
0.1772665381,
-0.2216293067,
-0.1413160414,
0.2567233145,
-0.1036249846,
0.349812001,
0.1539376825,
0.067313239,
-0.0289437249,
-0.0545441359,
-0.1466884166,
-0.0163866244,
0.5797003508,
-0.2601288855,
0.0176652633,
0.1643369794,
-0.1536816657,
0.0434214957,
-0.0261436552,
-0.2320131063,
0.1479611695,
0.2719550133,
0.3046005368,
-0.3562911451,
-0.2492524981,
0.5426257253,
-0.197694838,
-0.0373906642,
-0.0235337038,
-0.160967648,
-0.1525469571,
-0.1793017685,
0.2017105669,
0.1008620486,
0.3100734353,
0.1250272542,
-0.1130566522,
-0.1938488483,
-0.2577959299,
0.1798549294,
0.0540495366,
0.3140080869,
-0.3528226912,
0.1488122493,
-0.1904229522,
-0.002610462,
0.4281253517,
0.4972417951,
-0.1910153925,
-0.1812521517,
0.0633945987,
-0.0569696128,
0.4667569101,
0.2683847547,
-0.1765776575,
0.2876426876,
-0.1283184588,
0.2308447808,
0.0327773839,
0.0581570268,
0.2633813918,
-0.0705239847,
-0.3526118398,
-0.2683503926,
0.0413162448,
-0.203484863,
0.2236244529,
-0.0684948042,
0.0261805542,
-0.1003902853,
0.4952726364,
-0.0874895528,
0.5495755076,
0.307204932,
0.0596138798,
0.5087493062,
0.0492098629,
0.0741654187,
-0.0918360576,
0.1703945249,
-0.3895153701,
-0.1453877985,
-0.0813767463,
-0.0178872533,
0.2603548467,
0.2991540432,
-0.3176335096,
0.1703549773,
-0.0689570382,
0.3271093667,
-0.0951449275,
0.127929166,
-0.1128713936,
0.137305215,
-0.1373913735,
0.152843073,
-0.1778104007,
-0.0433915108,
-0.0117512932,
-0.2617190778,
0.0929749236,
-0.3384665847,
0.0450526252,
0.1761832535,
-0.2778228521,
0.3936637044,
0.0898808986,
-0.0701066628,
-0.0150362924,
0.3869256675,
-0.2067173123,
0.2277071029,
0.2768901885,
0.0989973024,
-0.0945707187,
-0.0682177767,
-0.0461661145,
0.1985014081,
0.5305134058,
0.0187034328,
-0.2373163104,
0.2738575637,
-0.3552471399,
-0.2206635773,
0.0997031108,
0.2115418613,
-0.1121065542,
-0.5431800485,
-0.2876385152,
-0.1500452161,
-0.1843277663,
-0.1001695916,
0.1664669216,
-0.0357038081,
-0.5352674723,
-0.0308120493,
-0.0213692915,
-0.384149462,
0.0178022645,
0.1560044438,
0.116690442,
0.2432753891,
0.6686916351,
-0.1233045608,
0.0458797663,
-0.4059031606,
0.2833763957,
0.5040174127,
-0.4621734023,
0.5352695584,
-0.0003103839,
-0.0040415372,
0.1493382901,
0.0950820073,
0.2635624707,
0.4651305974,
-0.0686905086,
-0.30382967,
-0.2341788262,
0.1192497909,
-0.0470511615,
0.3636305928,
0.0785160065,
0.3002312183,
-0.0873512253,
0.1233466268,
-0.3635304272,
0.2422538251,
-0.5364353657,
0.2647239864,
-0.1799979359,
-0.2914522886,
0.2737427354,
0.0470662303,
0.2638892829,
0.1261843294,
-0.072479248,
-0.244896397,
-0.0077671558,
0.0940875709,
-0.0158844832,
0.1719730049,
-0.0965202823,
-0.0099470969,
-0.282669723,
0.0163262635,
-0.0709557012,
-0.1472243071,
-0.0752623528,
0.3406225741,
0.205466345,
0.3667326272,
-0.0849790201,
0.0152906552,
-0.245666936,
-0.0473571941,
-0.0918311402,
0.1580787003,
-0.1518213004,
-0.1001185998,
0.2340717763,
-0.0137566328,
-0.2714755535,
-0.3891199827,
0.364778161,
-0.3388309479,
-0.0315139368,
-0.2740295231,
0.3758508265,
0.1427515894,
-0.1823081076,
0.1834772378,
0.0731684864,
0.2262781113,
-0.3055285513,
0.2211138159,
0.0991859287,
0.0586700551,
0.2623974979,
0.3369345069,
0.0075355042,
0.2085572332,
-0.1443814188,
0.2394002974,
0.1947532594,
-0.3221792281,
0.2501595616,
0.7153090239,
-0.3566302955,
0.0208051167,
0.3262009621,
0.1710801125,
0.1138688773,
0.3657099903,
-0.145445317,
0.3020301759,
-0.0067226337,
-0.2384234816,
0.0666033849,
-0.3710922301,
-0.2538036704,
0.4186915159,
-0.0792866051,
-0.1696758717,
0.0349570997,
0.1818403006,
-0.2336432636,
-0.3206706643,
0.1634918153,
0.1981225014,
-0.3836750984,
0.2351746857,
-0.0976284444,
-0.1467549056,
-0.4992575943,
-0.2183256894,
0.3450300992,
-0.0672333091,
0.065198034,
0.1184729189,
-0.0711433291,
-0.0004675125,
0.0417845696,
0.3717815578,
0.0315411352,
-0.4196260571,
0.2352453023,
0.5135620832,
0.1162740663,
0.1104368046,
0.2298838794,
0.6503501534,
0.3178335428,
-0.3951146901,
0.0024222138,
0.0518528894,
-0.2850607038,
0.1031488925,
0.06710843,
0.0683469325,
0.4216352999,
0.4693386257,
0.1729320288,
-0.1969882101,
0.1244505346,
0.1749677658,
0.2270067483,
-0.1749567091,
0.5054810643,
0.1467599124,
-0.0751848891,
-0.3003477156,
-0.0588062666,
-0.580725193,
-0.2967451811,
0.2346037775,
0.0357338041,
0.2273807377,
0.0481619239,
0.1050072536,
0.0746003166,
0.2745177448,
0.3521288633,
-0.0363086909,
-0.4053150117,
-0.0144132189,
-0.3202984035,
-0.1394308358,
-0.2130360007,
0.0831123516,
-0.1005975828,
0.1630856693,
0.0160823315,
0.0117899934,
0.0935773626,
0.042846702,
0.0924523175,
0.0422075167,
-0.328333348,
0.0516575016,
0.0035040344,
-0.0702392533,
0.097096093,
-0.31984061,
-0.0519566387,
0.0440271832,
0.0714520514,
0.2712696493,
-0.1841311902,
0.1653145105,
0.0590150394,
-0.0674508289,
0.1311156452,
0.2758323848,
0.027796803,
0.0532533117,
0.071678713,
-0.0929614156,
-0.2856593132,
0.2750597,
0.4175401032,
0.4672613442,
0.1319552511,
-0.1317618191,
-0.2883381248,
0.1405081153,
0.0122158313,
0.0503442958,
-0.1526642293,
0.216841802,
0.1254860163,
0.046647545,
0.1734497398,
-0.098699145,
-0.2047879845,
0.0616951473,
-0.4222970605,
-0.4047439098,
0.35021469,
-0.1958708167,
-0.2600914836,
-0.0018099598,
0.0211871713,
0.4787606895,
0.1570663303,
-0.63428092,
-0.2474754751,
0.3716075122,
-0.2042854875,
-0.3200726509,
-0.033796113,
0.1368301064,
-0.0045460481,
0.0947799757,
-0.1115362942,
0.055827409,
-0.2615490258,
0.2261003107,
-0.2754900455
] |
https://github.com/huggingface/datasets/issues/5 | ValueError when a split is empty | Yes sounds good to me!
Do you want to make a PR? or I can do it as well | When a split is empty either TEST, VALIDATION or TRAIN I get the following error:
```
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/jplu/dev/jplu/datasets/src/nlp/load.py", line 295, in load
ds = dbuilder.as_dataset(**as_dataset_kwargs)
File "/home/jplu/dev/jplu/datasets/src/nlp/builder.py", line 587, in as_dataset
datasets = utils.map_nested(build_single_dataset, split, map_tuple=True)
File "/home/jplu/dev/jplu/datasets/src/nlp/utils/py_utils.py", line 158, in map_nested
for k, v in data_struct.items()
File "/home/jplu/dev/jplu/datasets/src/nlp/utils/py_utils.py", line 158, in <dictcomp>
for k, v in data_struct.items()
File "/home/jplu/dev/jplu/datasets/src/nlp/utils/py_utils.py", line 172, in map_nested
return function(data_struct)
File "/home/jplu/dev/jplu/datasets/src/nlp/builder.py", line 601, in _build_single_dataset
split=split,
File "/home/jplu/dev/jplu/datasets/src/nlp/builder.py", line 625, in _as_dataset
split_infos=self.info.splits.values(),
File "/home/jplu/dev/jplu/datasets/src/nlp/arrow_reader.py", line 200, in read
return py_utils.map_nested(_read_instruction_to_ds, instructions)
File "/home/jplu/dev/jplu/datasets/src/nlp/utils/py_utils.py", line 172, in map_nested
return function(data_struct)
File "/home/jplu/dev/jplu/datasets/src/nlp/arrow_reader.py", line 191, in _read_instruction_to_ds
file_instructions = make_file_instructions(name, split_infos, instruction)
File "/home/jplu/dev/jplu/datasets/src/nlp/arrow_reader.py", line 104, in make_file_instructions
absolute_instructions=absolute_instructions,
File "/home/jplu/dev/jplu/datasets/src/nlp/arrow_reader.py", line 122, in _make_file_instructions_from_absolutes
'Split empty. This might means that dataset hasn\'t been generated '
ValueError: Split empty. This might means that dataset hasn't been generated yet and info not restored from GCS, or that legacy dataset is used.
```
How to reproduce:
```python
import csv
import nlp
class Bbc(nlp.GeneratorBasedBuilder):
VERSION = nlp.Version("1.0.0")
def __init__(self, **config):
self.train = config.pop("train", None)
self.validation = config.pop("validation", None)
super(Bbc, self).__init__(**config)
def _info(self):
return nlp.DatasetInfo(builder=self, description="bla", features=nlp.features.FeaturesDict({"id": nlp.int32, "text": nlp.string, "label": nlp.string}))
def _split_generators(self, dl_manager):
return [nlp.SplitGenerator(name=nlp.Split.TRAIN, gen_kwargs={"filepath": self.train}),
nlp.SplitGenerator(name=nlp.Split.VALIDATION, gen_kwargs={"filepath": self.validation}),
nlp.SplitGenerator(name=nlp.Split.TEST, gen_kwargs={"filepath": None})]
def _generate_examples(self, filepath):
if not filepath:
return None, {}
with open(filepath) as f:
reader = csv.reader(f, delimiter=',', quotechar="\"")
lines = list(reader)[1:]
for idx, line in enumerate(lines):
yield idx, {"id": idx, "text": line[1], "label": line[0]}
```
```python
import nlp
dataset = nlp.load("bbc", builder_kwargs={"train": "bbc/data/train.csv", "validation": "bbc/data/test.csv"})
``` | 19 | ValueError when a split is empty
When a split is empty either TEST, VALIDATION or TRAIN I get the following error:
```
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/jplu/dev/jplu/datasets/src/nlp/load.py", line 295, in load
ds = dbuilder.as_dataset(**as_dataset_kwargs)
File "/home/jplu/dev/jplu/datasets/src/nlp/builder.py", line 587, in as_dataset
datasets = utils.map_nested(build_single_dataset, split, map_tuple=True)
File "/home/jplu/dev/jplu/datasets/src/nlp/utils/py_utils.py", line 158, in map_nested
for k, v in data_struct.items()
File "/home/jplu/dev/jplu/datasets/src/nlp/utils/py_utils.py", line 158, in <dictcomp>
for k, v in data_struct.items()
File "/home/jplu/dev/jplu/datasets/src/nlp/utils/py_utils.py", line 172, in map_nested
return function(data_struct)
File "/home/jplu/dev/jplu/datasets/src/nlp/builder.py", line 601, in _build_single_dataset
split=split,
File "/home/jplu/dev/jplu/datasets/src/nlp/builder.py", line 625, in _as_dataset
split_infos=self.info.splits.values(),
File "/home/jplu/dev/jplu/datasets/src/nlp/arrow_reader.py", line 200, in read
return py_utils.map_nested(_read_instruction_to_ds, instructions)
File "/home/jplu/dev/jplu/datasets/src/nlp/utils/py_utils.py", line 172, in map_nested
return function(data_struct)
File "/home/jplu/dev/jplu/datasets/src/nlp/arrow_reader.py", line 191, in _read_instruction_to_ds
file_instructions = make_file_instructions(name, split_infos, instruction)
File "/home/jplu/dev/jplu/datasets/src/nlp/arrow_reader.py", line 104, in make_file_instructions
absolute_instructions=absolute_instructions,
File "/home/jplu/dev/jplu/datasets/src/nlp/arrow_reader.py", line 122, in _make_file_instructions_from_absolutes
'Split empty. This might means that dataset hasn\'t been generated '
ValueError: Split empty. This might means that dataset hasn't been generated yet and info not restored from GCS, or that legacy dataset is used.
```
How to reproduce:
```python
import csv
import nlp
class Bbc(nlp.GeneratorBasedBuilder):
VERSION = nlp.Version("1.0.0")
def __init__(self, **config):
self.train = config.pop("train", None)
self.validation = config.pop("validation", None)
super(Bbc, self).__init__(**config)
def _info(self):
return nlp.DatasetInfo(builder=self, description="bla", features=nlp.features.FeaturesDict({"id": nlp.int32, "text": nlp.string, "label": nlp.string}))
def _split_generators(self, dl_manager):
return [nlp.SplitGenerator(name=nlp.Split.TRAIN, gen_kwargs={"filepath": self.train}),
nlp.SplitGenerator(name=nlp.Split.VALIDATION, gen_kwargs={"filepath": self.validation}),
nlp.SplitGenerator(name=nlp.Split.TEST, gen_kwargs={"filepath": None})]
def _generate_examples(self, filepath):
if not filepath:
return None, {}
with open(filepath) as f:
reader = csv.reader(f, delimiter=',', quotechar="\"")
lines = list(reader)[1:]
for idx, line in enumerate(lines):
yield idx, {"id": idx, "text": line[1], "label": line[0]}
```
```python
import nlp
dataset = nlp.load("bbc", builder_kwargs={"train": "bbc/data/train.csv", "validation": "bbc/data/test.csv"})
```
Yes sounds good to me!
Do you want to make a PR? or I can do it as well | [
-0.2972345054,
-0.0131540755,
-0.1030680835,
0.293113023,
0.0207598414,
-0.0219011754,
0.6005368829,
0.47498402,
-0.0488540046,
0.4204657972,
0.0286983997,
0.2306585461,
-0.3276995718,
0.1830052733,
-0.4715830386,
-0.2210289836,
-0.062096972,
0.403324753,
0.0316318534,
0.0022022389,
-0.2077700645,
0.1781738997,
-0.3489647806,
0.2001751214,
-0.4412804842,
-0.3235145807,
-0.0962039009,
0.0336119235,
-0.1655959934,
-0.5333557129,
0.2795562148,
-0.315582484,
-0.210861966,
0.438343972,
-0.0001089997,
0.2471229434,
0.3216661215,
0.0212962572,
-0.2349681109,
-0.1730071306,
-0.2148886025,
0.0468610823,
-0.0701178014,
-0.1868548691,
-0.1008068249,
-0.2197804302,
-0.3655616939,
0.0298771877,
0.2869432271,
0.2550379634,
0.196602881,
0.1572323292,
0.024917569,
-0.1763807982,
0.0856721029,
-0.1056944653,
0.0970318466,
0.0854186267,
-0.1803481877,
-0.2269462347,
-0.1018458158,
0.2128953934,
-0.0124386353,
0.0009041753,
-0.2380747497,
0.1348018795,
0.2368194908,
-0.3553720117,
-0.1338814944,
0.0872520506,
-0.0105637321,
-0.002415403,
-0.1980993301,
-0.3114364147,
0.0216912497,
-0.3575949371,
0.0597176738,
0.2921062708,
-0.1286968887,
0.1240952909,
0.228433311,
0.1736135781,
-0.2168528736,
-0.0249616075,
-0.3034920692,
0.3541931808,
-0.0313312374,
0.0348217748,
0.2476860136,
-0.0247120559,
0.0857292488,
-0.0367393941,
-0.2185789347,
0.1155374944,
-0.2246415019,
-0.3038745821,
-0.1532901376,
-0.3125606477,
-0.0919001475,
-0.0317807719,
0.0276311375,
-0.1767441034,
0.1064910069,
0.408811152,
0.3043406606,
-0.053491246,
0.3710523248,
0.4308699369,
0.0564231388,
0.150334239,
0.0145206125,
0.0291581545,
0.0300027579,
-0.2769691944,
0.0414249562,
0.1946728528,
0.4200004637,
0.077633135,
-0.3998927176,
-0.0317490622,
-0.2662961483,
-0.0253006369,
0.2187400758,
0.377743125,
0.0436375588,
0.1135603189,
-0.0598016717,
0.1989059299,
-0.0594730712,
-0.4426793158,
-0.3030685484,
0.3334762454,
-0.1042800695,
-0.317753464,
0.0193638597,
-0.0207898766,
0.1957090348,
0.21913822,
-0.1739815474,
-0.0592373163,
0.1233525127,
-0.4605063498,
0.1437608302,
0.3618826568,
-0.0033450963,
-0.2083799541,
0.2578763366,
-0.209417209,
0.0035282266,
0.2536199689,
-0.0682574213,
-0.355948776,
-0.0321291089,
0.3377677798,
0.1614763737,
0.1738892198,
-0.1163772196,
0.1625700146,
0.3533759117,
-0.2079336047,
0.0242774747,
-0.0858380422,
-0.2200116515,
-0.2932094932,
0.1470616311,
0.3619222641,
-0.3413057327,
-0.1330837458,
-0.1345358044,
-0.1824869066,
0.0983032733,
0.0809265673,
-0.1797881126,
0.3938575387,
-0.238693729,
0.5446957946,
0.4584333599,
-0.2361294031,
-0.0809234306,
0.3233039379,
-0.036727827,
-0.2104672045,
-0.0367174223,
-0.179826349,
0.1973540038,
0.0377614535,
0.1241148636,
0.0272632614,
-0.2770869434,
-0.1476685703,
-0.2296880484,
0.035151355,
0.3037279248,
0.0866829902,
0.2002632171,
-0.213245675,
-0.0600377955,
0.0495814122,
-0.0122901872,
-0.0569790713,
0.1059751883,
0.251163125,
0.2062111348,
-0.2719922066,
-0.1631948948,
-0.1595900953,
-0.2165904343,
0.1562371701,
-0.4682895243,
0.0489554219,
-0.1579334438,
-0.1106652096,
-0.158621788,
0.1668359488,
-0.3561004996,
-0.3218685091,
0.2448066026,
-0.0483384989,
0.0161141511,
0.1176603734,
-0.3002465069,
-0.0519225337,
-0.19772017,
0.2331566364,
-0.0668307692,
0.4000049531,
-0.2685911059,
-0.2137828022,
-0.1045412645,
0.1410853863,
0.1222289205,
-0.0281016342,
-0.001392163,
0.5620465279,
0.3317558467,
-0.1843186915,
-0.132033065,
-0.4199967384,
0.2186244279,
0.08010865,
-0.0030810616,
0.0431584343,
0.1956192851,
-0.1354966313,
0.0702925175,
0.4215483069,
-0.1646191627,
0.0998703763,
0.0960526615,
0.1102361158,
0.0731213912,
-0.1226165071,
0.1938956082,
-0.1256380379,
-0.1501625031,
-0.6316095591,
0.10660813,
0.0297480915,
-0.1727100909,
-0.1840965301,
0.3182248771,
-0.0157900453,
0.1076052934,
-0.0694290772,
0.0899708346,
-0.0430511311,
0.0124481358,
0.4540238678,
0.3595222533,
0.1093107611,
0.0691784173,
-0.026388716,
0.1020537913,
0.004379563,
0.2359508872,
-0.0829028711,
0.2125871629,
0.4033501148,
-0.2370359749,
-0.1057200208,
-0.0774154812,
-0.0378508233,
0.2675488889,
0.3059706986,
-0.099827528,
-0.1649615616,
-0.109630309,
-0.0298334863,
0.0824985802,
-0.0792457685,
-0.2058334649,
-0.3919479549,
0.0027048707,
0.0255113095,
-0.1684822738,
0.2499873489,
-0.044841297,
-0.0304832906,
0.3654892743,
-0.0320748128,
-0.0872665644,
-0.0385824665,
-0.3025595546,
0.1351387948,
-0.0923736691,
0.1497680247,
0.1493163854,
0.2277187109,
-0.1718715131,
0.1362488717,
-0.153834179,
0.1338604838,
-0.2160102129,
-0.0281834528,
0.4562614262,
0.1762323827,
0.1133827791,
-0.292543143,
0.3600920439,
-0.1658400148,
-0.2999571264,
0.1651653945,
0.3752209246,
0.1846019179,
-0.310233295,
-0.2788726687,
-0.3881150484,
-0.4727134705,
-0.0969040617,
-0.1738378704,
0.1903255135,
0.1340663731,
0.2356196344,
0.2885962129,
0.185778141,
-0.2718161941,
0.0637558848,
0.1844049692,
0.0797057599,
-0.1597718745,
-0.1220593452,
0.1154369712,
-0.3134942055,
0.479427278,
-0.2793751359,
-0.3259856403,
-0.0821820423,
0.0239238031,
0.2465984076,
-0.1440029591,
-0.1793990582,
0.209183678,
0.2842230499,
-0.1756091565,
0.0167780239,
-0.0508550219,
0.2462120354,
-0.1252520829,
0.0307021681,
-0.0990922004,
0.3232717514,
0.2634008229,
0.4122441411,
0.2139678448,
-0.1056069657,
0.0975425616,
-0.0699538589,
0.1825751066,
-0.0814448521,
-0.479200393,
-0.2696221471,
0.1803123802,
-0.0901965722,
0.0706486106,
-0.2812639475,
-0.1435807049,
-0.2160852253,
-0.4142451882,
-0.1067024916,
-0.1011579037,
0.0656695589,
-0.3637962639,
0.2715674043,
-0.3162961602,
0.0702566803,
0.173154071,
0.2696449161,
-0.0772329345,
-0.050392013,
0.1772665381,
-0.2216293067,
-0.1413160414,
0.2567233145,
-0.1036249846,
0.349812001,
0.1539376825,
0.067313239,
-0.0289437249,
-0.0545441359,
-0.1466884166,
-0.0163866244,
0.5797003508,
-0.2601288855,
0.0176652633,
0.1643369794,
-0.1536816657,
0.0434214957,
-0.0261436552,
-0.2320131063,
0.1479611695,
0.2719550133,
0.3046005368,
-0.3562911451,
-0.2492524981,
0.5426257253,
-0.197694838,
-0.0373906642,
-0.0235337038,
-0.160967648,
-0.1525469571,
-0.1793017685,
0.2017105669,
0.1008620486,
0.3100734353,
0.1250272542,
-0.1130566522,
-0.1938488483,
-0.2577959299,
0.1798549294,
0.0540495366,
0.3140080869,
-0.3528226912,
0.1488122493,
-0.1904229522,
-0.002610462,
0.4281253517,
0.4972417951,
-0.1910153925,
-0.1812521517,
0.0633945987,
-0.0569696128,
0.4667569101,
0.2683847547,
-0.1765776575,
0.2876426876,
-0.1283184588,
0.2308447808,
0.0327773839,
0.0581570268,
0.2633813918,
-0.0705239847,
-0.3526118398,
-0.2683503926,
0.0413162448,
-0.203484863,
0.2236244529,
-0.0684948042,
0.0261805542,
-0.1003902853,
0.4952726364,
-0.0874895528,
0.5495755076,
0.307204932,
0.0596138798,
0.5087493062,
0.0492098629,
0.0741654187,
-0.0918360576,
0.1703945249,
-0.3895153701,
-0.1453877985,
-0.0813767463,
-0.0178872533,
0.2603548467,
0.2991540432,
-0.3176335096,
0.1703549773,
-0.0689570382,
0.3271093667,
-0.0951449275,
0.127929166,
-0.1128713936,
0.137305215,
-0.1373913735,
0.152843073,
-0.1778104007,
-0.0433915108,
-0.0117512932,
-0.2617190778,
0.0929749236,
-0.3384665847,
0.0450526252,
0.1761832535,
-0.2778228521,
0.3936637044,
0.0898808986,
-0.0701066628,
-0.0150362924,
0.3869256675,
-0.2067173123,
0.2277071029,
0.2768901885,
0.0989973024,
-0.0945707187,
-0.0682177767,
-0.0461661145,
0.1985014081,
0.5305134058,
0.0187034328,
-0.2373163104,
0.2738575637,
-0.3552471399,
-0.2206635773,
0.0997031108,
0.2115418613,
-0.1121065542,
-0.5431800485,
-0.2876385152,
-0.1500452161,
-0.1843277663,
-0.1001695916,
0.1664669216,
-0.0357038081,
-0.5352674723,
-0.0308120493,
-0.0213692915,
-0.384149462,
0.0178022645,
0.1560044438,
0.116690442,
0.2432753891,
0.6686916351,
-0.1233045608,
0.0458797663,
-0.4059031606,
0.2833763957,
0.5040174127,
-0.4621734023,
0.5352695584,
-0.0003103839,
-0.0040415372,
0.1493382901,
0.0950820073,
0.2635624707,
0.4651305974,
-0.0686905086,
-0.30382967,
-0.2341788262,
0.1192497909,
-0.0470511615,
0.3636305928,
0.0785160065,
0.3002312183,
-0.0873512253,
0.1233466268,
-0.3635304272,
0.2422538251,
-0.5364353657,
0.2647239864,
-0.1799979359,
-0.2914522886,
0.2737427354,
0.0470662303,
0.2638892829,
0.1261843294,
-0.072479248,
-0.244896397,
-0.0077671558,
0.0940875709,
-0.0158844832,
0.1719730049,
-0.0965202823,
-0.0099470969,
-0.282669723,
0.0163262635,
-0.0709557012,
-0.1472243071,
-0.0752623528,
0.3406225741,
0.205466345,
0.3667326272,
-0.0849790201,
0.0152906552,
-0.245666936,
-0.0473571941,
-0.0918311402,
0.1580787003,
-0.1518213004,
-0.1001185998,
0.2340717763,
-0.0137566328,
-0.2714755535,
-0.3891199827,
0.364778161,
-0.3388309479,
-0.0315139368,
-0.2740295231,
0.3758508265,
0.1427515894,
-0.1823081076,
0.1834772378,
0.0731684864,
0.2262781113,
-0.3055285513,
0.2211138159,
0.0991859287,
0.0586700551,
0.2623974979,
0.3369345069,
0.0075355042,
0.2085572332,
-0.1443814188,
0.2394002974,
0.1947532594,
-0.3221792281,
0.2501595616,
0.7153090239,
-0.3566302955,
0.0208051167,
0.3262009621,
0.1710801125,
0.1138688773,
0.3657099903,
-0.145445317,
0.3020301759,
-0.0067226337,
-0.2384234816,
0.0666033849,
-0.3710922301,
-0.2538036704,
0.4186915159,
-0.0792866051,
-0.1696758717,
0.0349570997,
0.1818403006,
-0.2336432636,
-0.3206706643,
0.1634918153,
0.1981225014,
-0.3836750984,
0.2351746857,
-0.0976284444,
-0.1467549056,
-0.4992575943,
-0.2183256894,
0.3450300992,
-0.0672333091,
0.065198034,
0.1184729189,
-0.0711433291,
-0.0004675125,
0.0417845696,
0.3717815578,
0.0315411352,
-0.4196260571,
0.2352453023,
0.5135620832,
0.1162740663,
0.1104368046,
0.2298838794,
0.6503501534,
0.3178335428,
-0.3951146901,
0.0024222138,
0.0518528894,
-0.2850607038,
0.1031488925,
0.06710843,
0.0683469325,
0.4216352999,
0.4693386257,
0.1729320288,
-0.1969882101,
0.1244505346,
0.1749677658,
0.2270067483,
-0.1749567091,
0.5054810643,
0.1467599124,
-0.0751848891,
-0.3003477156,
-0.0588062666,
-0.580725193,
-0.2967451811,
0.2346037775,
0.0357338041,
0.2273807377,
0.0481619239,
0.1050072536,
0.0746003166,
0.2745177448,
0.3521288633,
-0.0363086909,
-0.4053150117,
-0.0144132189,
-0.3202984035,
-0.1394308358,
-0.2130360007,
0.0831123516,
-0.1005975828,
0.1630856693,
0.0160823315,
0.0117899934,
0.0935773626,
0.042846702,
0.0924523175,
0.0422075167,
-0.328333348,
0.0516575016,
0.0035040344,
-0.0702392533,
0.097096093,
-0.31984061,
-0.0519566387,
0.0440271832,
0.0714520514,
0.2712696493,
-0.1841311902,
0.1653145105,
0.0590150394,
-0.0674508289,
0.1311156452,
0.2758323848,
0.027796803,
0.0532533117,
0.071678713,
-0.0929614156,
-0.2856593132,
0.2750597,
0.4175401032,
0.4672613442,
0.1319552511,
-0.1317618191,
-0.2883381248,
0.1405081153,
0.0122158313,
0.0503442958,
-0.1526642293,
0.216841802,
0.1254860163,
0.046647545,
0.1734497398,
-0.098699145,
-0.2047879845,
0.0616951473,
-0.4222970605,
-0.4047439098,
0.35021469,
-0.1958708167,
-0.2600914836,
-0.0018099598,
0.0211871713,
0.4787606895,
0.1570663303,
-0.63428092,
-0.2474754751,
0.3716075122,
-0.2042854875,
-0.3200726509,
-0.033796113,
0.1368301064,
-0.0045460481,
0.0947799757,
-0.1115362942,
0.055827409,
-0.2615490258,
0.2261003107,
-0.2754900455
] |
https://github.com/huggingface/datasets/issues/4 | [Feature] Keep the list of labels of a dataset as metadata | Yes! I see mostly two options for this:
- a `Feature` approach like currently (but we might deprecate features)
- wrapping in a smart way the Dictionary arrays of Arrow: https://arrow.apache.org/docs/python/data.html?highlight=dictionary%20encode#dictionary-arrays | It would be useful to keep the list of the labels of a dataset as metadata. Either directly in the `DatasetInfo` or in the Arrow metadata. | 31 | [Feature] Keep the list of labels of a dataset as metadata
It would be useful to keep the list of the labels of a dataset as metadata. Either directly in the `DatasetInfo` or in the Arrow metadata.
Yes! I see mostly two options for this:
- a `Feature` approach like currently (but we might deprecate features)
- wrapping in a smart way the Dictionary arrays of Arrow: https://arrow.apache.org/docs/python/data.html?highlight=dictionary%20encode#dictionary-arrays | [
0.1531038284,
-0.0619826838,
-0.1409769952,
0.0409963802,
0.1746007353,
0.1912367493,
0.2029763162,
0.2303461134,
-0.0681682974,
0.0453066081,
-0.0701302215,
0.5808178186,
-0.3312078118,
0.1982668191,
0.0061327382,
-0.1212564111,
-0.0128118051,
-0.027239684,
0.0372482091,
-0.0533796586,
-0.1979879588,
-0.3048541546,
0.1820648313,
-0.0400752723,
-0.2287414968,
-0.0672598183,
0.1197464913,
-0.3560016453,
0.0509824827,
-0.6830214858,
-0.1670465618,
-0.005046288,
-0.0410597771,
-0.1845038384,
-0.0001063943,
-0.0223296024,
0.2254125625,
-0.0063492404,
-0.3393563032,
0.0036050021,
-0.3735339344,
-0.2526662946,
0.2441437989,
-0.2920619547,
0.0635793731,
-0.4220447242,
-0.2341688126,
-0.3475585878,
0.0337779149,
0.073179923,
0.294555068,
-0.0099701742,
-0.0633412674,
0.1987441182,
0.4615861773,
0.3243835568,
-0.4491934776,
-0.0578368418,
0.2165962607,
0.1747603118,
0.1609932035,
0.6276298761,
-0.1296105087,
-0.2748527527,
0.486866802,
0.0433792286,
0.0539183766,
-0.2967993021,
-0.0868218243,
0.0617773533,
1.0295808315,
-0.3937678933,
-0.3564585447,
-0.1362314522,
0.0429887958,
-0.2480101287,
-0.0468660556,
0.1938486099,
0.0802291408,
0.3612406552,
0.1168773994,
-0.3947035372,
-0.1558551341,
0.0775376633,
0.0123683307,
0.5747610927,
0.0079299705,
0.0069954377,
-0.0464660153,
-0.119231537,
0.1567904651,
-0.1131044254,
-0.078289628,
0.0232754741,
0.0664360076,
-0.2106245905,
-0.1160640121,
-0.2866199315,
0.2796506584,
0.4982936382,
0.0537300818,
-0.1367437243,
-0.3827083409,
0.1011157483,
0.2913880348,
-0.0538902022,
0.5860030651,
0.1966703683,
0.221889466,
-0.3975262046,
0.0835799426,
-0.0928670689,
-0.0077864663,
0.3977664113,
0.5791301131,
-0.0366723724,
0.4260239601,
-0.2016583085,
-0.0679508597,
0.1524393559,
-0.2635849118,
-0.1534394473,
0.1068717986,
0.2219762951,
0.1317169815,
0.2757698894,
-0.1244162992,
0.06582167,
0.5456816554,
-0.1063388735,
-0.0713843182,
-0.0793322176,
0.0519186035,
0.1652716547,
-0.0826038942,
0.0689333156,
0.450421989,
-0.1267028749,
0.1890276074,
-0.0640789568,
0.2548246384,
-0.0590056181,
0.239519164,
0.220073387,
-0.3890978992,
0.2038201839,
-0.0463676043,
0.1786969453,
-0.3816194236,
0.3463994265,
-0.0534162149,
-0.2060552537,
-0.1616810113,
0.2132514119,
0.1692089289,
-0.1648846418,
-0.1126016229,
0.0359026343,
0.0138852643,
0.2280047685,
0.3043180704,
0.163572669,
-0.0215764306,
-0.398511678,
-0.2363696843,
0.0136661343,
-0.342595011,
-0.0080060111,
0.2239617258,
0.1316719353,
-0.2075074166,
0.2535152733,
-0.2940643132,
0.1013359129,
-0.0034679945,
0.0235081557,
0.3565423787,
-0.4369631708,
-0.2732066512,
-0.0279667117,
0.1864793748,
-0.1035629734,
0.0481276885,
0.4568348527,
0.1580265611,
-0.2445970774,
-0.0531275645,
0.1354698241,
-0.1033435464,
0.1129798144,
0.0414429568,
-0.0668414906,
0.1230785772,
-0.018022377,
-0.3156913519,
-0.1023204699,
-0.1786923259,
-0.1581580937,
0.2403326482,
-0.0035173891,
0.1564742476,
0.455190599,
0.4405416846,
0.1935772449,
-0.004188275,
-0.2268557847,
-0.3842478096,
-0.058112558,
0.2511891723,
-0.1381985396,
-0.3032628894,
-0.6113616228,
-0.1767913401,
0.2631886899,
-0.0754908174,
0.0055045108,
0.2138353884,
-0.1993266493,
-0.2779327631,
0.0624177456,
-0.2574976087,
0.0297129508,
0.0468114354,
0.1070217192,
0.0149146654,
0.1145127341,
0.0927566811,
0.0290385801,
-0.1173440889,
0.2132788002,
0.0408872068,
0.082988143,
-0.0345226191,
0.1453126669,
0.3163555861,
-0.3232553005,
0.1213528961,
0.4607741833,
0.3032996356,
-0.5314984918,
0.0622611344,
0.1226723939,
0.0218912996,
-0.0518396869,
-0.2709651291,
-0.0260818563,
0.1027442589,
0.362781167,
-0.0343950316,
0.2423750758,
0.1144367903,
0.1110746935,
-0.3544943929,
-0.2036376148,
-0.3353033066,
-0.0867557973,
0.1358723342,
0.1299474537,
-0.3200688362,
0.4843470156,
0.6123462319,
0.0640559867,
0.2658023834,
0.0981487781,
-0.3526421785,
0.1297811717,
0.2959809601,
-0.1598253101,
-0.0144373886,
0.3183601797,
-0.000838379,
-0.0637732744,
0.0819301084,
0.1354636103,
0.3058954775,
0.2960717082,
0.3277532756,
-0.1924917549,
0.0786261484,
-0.0426278859,
0.0444989763,
-0.3453595042,
-0.1589877009,
-0.2152091563,
0.0066775088,
0.0380661264,
-0.2455755472,
-0.1123291925,
-0.0882886723,
-0.5619065762,
-0.4075858593,
-0.3165305853,
0.0344985873,
0.1153462678,
-0.3554004729,
0.3305263817,
-0.3464924097,
0.0453389026,
0.0523468629,
-0.2609802783,
-0.1679685861,
-0.386916697,
0.1574690938,
0.0538235828,
0.0889512002,
-0.0401542969,
0.5392516255,
0.3545881808,
0.1594023705,
-0.610340476,
-0.2528913915,
0.1790263951,
0.0170621034,
-0.2253207564,
0.1091635451,
0.1069797426,
-0.139318645,
-0.069733642,
-0.0014456647,
0.0785160288,
-0.0372331664,
-0.0896274373,
0.2730151713,
-0.0314974971,
-0.0204617269,
-0.3882804215,
-0.4076155126,
-0.405592531,
0.3017728329,
0.1276454031,
0.1697412729,
0.1785373688,
-0.2694989145,
0.0260158498,
-0.1096282229,
0.0952152386,
-0.1074526533,
0.1441746354,
0.2464602739,
-0.136002779,
-0.0080134952,
0.087486662,
-0.138994053,
0.1711544544,
0.0423162021,
-0.0191366673,
-0.1977374256,
-0.0855146348,
0.3730427623,
-0.106564112,
0.1364078671,
0.2442819476,
0.3777545393,
-0.1017338261,
-0.0099786473,
-0.1178261265,
0.23352696,
-0.0354424827,
0.0896847844,
0.0194220934,
0.0804448426,
-0.1720804274,
0.4238515198,
0.018735772,
0.1440927535,
-0.0549171418,
0.053797856,
0.0363465957,
-0.0803150386,
0.0127989054,
-0.2057106048,
-0.0890099406,
-0.0760112628,
0.0934892446,
0.1513706297,
-0.1037447602,
0.157605201,
0.1566734165,
-0.1015148908,
-0.1684867293,
0.0172241852,
-0.1306104213,
0.1751760989,
-0.0098245461,
0.0268271081,
-0.0372490399,
0.0644018427,
0.2442504615,
0.0227098912,
0.0414308049,
-0.1529837847,
-0.4404375553,
-0.0904364586,
-0.4571636915,
-0.0186685603,
0.1574329883,
0.0673328564,
0.1258167475,
-0.1683335006,
-0.0783452839,
0.2440272272,
0.2816131115,
-0.1813261062,
-0.4476848543,
-0.0188777149,
0.1774277091,
-0.0620649531,
0.0060738567,
-0.1370529979,
0.0500409938,
0.0479591116,
0.0873181373,
-0.3140091002,
-0.1462477893,
0.1048217118,
0.0610031448,
-0.1581060141,
-0.0232596416,
-0.1054871827,
-0.3103757203,
-0.0722101107,
-0.1279832423,
0.3736523688,
-0.2280056626,
0.1150807217,
-0.0935126618,
-0.1260615587,
-0.2332113385,
0.0052716858,
-0.0157449096,
0.430623889,
0.0259549003,
0.1231586635,
0.024017971,
0.4069705606,
0.2633194625,
0.509657383,
-0.0239817444,
-0.5610498786,
-0.390372932,
-0.3155613542,
0.4798540175,
-0.0757959709,
0.0816516206,
0.2385449857,
-0.5130556226,
-0.1403169334,
-0.2198769748,
-0.1562793404,
-0.1549162269,
-0.0766615793,
-0.3003172576,
-0.4329049587,
0.8527728319,
0.1414794028,
-0.1323336959,
0.5135408044,
0.085834071,
-0.2635056674,
0.3207177818,
0.3549795747,
0.9080423117,
0.134063229,
0.2197118253,
0.2137011588,
-0.1758755744,
0.5592676401,
-0.2411005944,
-0.0584962443,
-0.4896416962,
-0.1990528107,
-0.1038563028,
-0.0818371326,
-0.0474384688,
0.1922319233,
-0.3542008996,
0.137383908,
-0.2455496639,
-0.1133811399,
-0.0277618896,
0.0846345946,
0.0244095027,
-0.3767656088,
-0.0888488889,
0.1496561766,
-0.2634575963,
-0.0647318661,
-0.1604021341,
-0.1854317188,
-0.1244846657,
0.0089534,
0.0690331981,
0.0361813083,
-0.0694403946,
0.3164689839,
-0.0331776924,
0.0394297726,
0.1400252134,
-0.29491359,
0.3375793993,
-0.0080004912,
-0.0537774041,
0.0220294278,
0.1087082773,
0.174150601,
-0.0164034441,
-0.0383144803,
0.3151320219,
0.084761329,
-0.0962396562,
0.1527510732,
-0.0826108977,
-0.3614309132,
-0.2051610649,
-0.1234937087,
0.2789392173,
-0.1750293225,
0.0053630788,
0.2863709033,
-0.4388437569,
-0.1329393536,
0.1619928628,
0.2034304887,
-0.160174489,
0.2107394338,
0.0597956404,
0.0342131667,
-0.0103302496,
-0.2540882528,
0.3012006581,
0.0377206765,
0.0974837169,
-0.1277720928,
-0.1516403258,
-0.2891376913,
0.3465971649,
0.0953674167,
-0.1828104556,
0.1077961251,
0.0206007492,
-0.0663896427,
-0.2406284362,
0.1129576564,
0.035187766,
0.0675413087,
-0.3194274902,
0.0896998569,
-0.4712826014,
0.4018771648,
0.0008573324,
0.2631208003,
-0.2690041363,
-0.0221457072,
-0.1851150244,
-0.0290774498,
-0.3835369051,
-0.377613008,
0.032424368,
0.0163846519,
0.2647836804,
0.1624726951,
-0.0006887774,
-0.0971000567,
0.1627366841,
0.0842978731,
0.0273616165,
-0.2790385187,
-0.1625831723,
0.0456123017,
0.1223417521,
-0.0057716863,
-0.2549293339,
-0.1305669695,
0.0186503176,
-0.1509663612,
-0.1034641936,
0.0977511257,
0.1634014994,
0.302757144,
-0.0969428495,
-0.0073340703,
-0.1510327607,
0.2586007714,
0.0882661045,
0.0381170586,
0.0888105333,
0.2020590901,
-0.1580035239,
-0.0724753439,
-0.1776502132,
0.1159783676,
-0.2789203227,
0.0626972765,
0.1140850261,
-0.0370477811,
0.0618272051,
0.3791281283,
0.1837724,
0.1133085042,
-0.1546558887,
-0.0656302795,
0.2212627828,
0.4003601968,
-0.286190033,
-0.4286290109,
0.0216549132,
0.053979557,
0.218330726,
0.3217287362,
0.1728086323,
0.3737813234,
0.0311292168,
-0.0377847925,
-0.0741269886,
-0.2500039041,
0.0995300934,
0.3859385848,
0.2482807636,
-0.0500041358,
0.4153281152,
0.3016578257,
0.4897960126,
0.3244734704,
0.1961949915,
0.5447494388,
0.5794216394,
-0.1124874428,
0.2589477301,
0.2721156478,
-0.1472968757,
0.0009825202,
0.0080812508,
0.1034233421,
0.2910741866,
-0.0611258708,
0.1336738616,
-0.5219962597,
0.0359726697,
0.1585479975,
-0.0772999153,
0.0589157008,
0.0387309417,
0.0738621578,
0.0119210472,
-0.3031669557,
0.0556815937,
-0.3524499238,
0.2914429009,
-0.0364605673,
0.3144469261,
-0.2338737696,
0.0263110083,
0.2244737893,
0.4883761108,
-0.0834986046,
-0.256059885,
-0.1256843358,
-0.1655033231,
-0.1606786847,
0.0785376504,
-0.1051096022,
0.0427173413,
0.1470712274,
0.1667231023,
-0.3128277063,
-0.1395055354,
0.0200568996,
-0.0416332185,
0.026139807,
-0.2553181946,
0.216188699,
0.1669333577,
-0.0802818611,
0.207963869,
-0.0241289791,
-0.1080367193,
-0.0740812123,
0.0546034575,
0.3698731363,
-0.6536046267,
0.0966495126,
0.0538567603,
-0.1759698093,
-0.2538165748,
0.6161907911,
0.0870840773,
0.0965220258,
-0.1378525496,
0.1350958347,
-0.0521587022,
0.2209245116,
0.2347933501,
0.0537723675,
0.0318048,
0.0512794331,
-0.2802793682,
-0.0921996683,
-0.1210637391,
-0.5091292262,
0.3963055611,
0.0596043095,
0.1690884084,
0.4241622388,
0.1171317846,
-0.0809314474,
0.1277048439,
-0.07033813,
-0.3348050416,
0.0001404906,
0.1554786712,
0.349424839,
0.0199728478,
-0.1777936071,
0.0416198969,
0.1490761787,
0.1344933659,
-0.4543762803,
0.0134990718,
0.1714757532,
0.3090112209,
0.4693941176,
-0.1916483641,
0.0279901866,
0.0782830492,
-0.1085648537,
0.1821727455,
-0.3972954154,
-0.0272015482,
0.0350831375,
0.0457651168,
0.325399816,
-0.1416347325,
0.0597179979,
-0.2752210498,
0.1590812355,
-0.1686424017,
-0.0186355393,
-0.2717112303,
0.1797591001,
-0.0870109722,
0.1033277214,
-0.0918987319,
0.3254533708,
-0.0733682439,
-0.0042082169,
-0.0479812548,
-0.2741734087,
0.4397291243,
0.2359516472,
-0.3103938699,
0.1537981033,
0.2523866892,
0.2476752996,
-0.0316913724,
-0.4815121293,
-0.1608422697,
0.3907753825,
-0.0851693004,
-0.2077006549,
-0.0706799701,
0.1268516183,
0.038436573,
-0.1619018316,
0.3741301596,
-0.2902052104,
0.0696641356,
-0.1280389577,
-0.2311174572
] |
https://github.com/huggingface/datasets/issues/4 | [Feature] Keep the list of labels of a dataset as metadata | This should be accessible now as a feature in dataset.info.features (and even have the mapping methods). | It would be useful to keep the list of the labels of a dataset as metadata. Either directly in the `DatasetInfo` or in the Arrow metadata. | 16 | [Feature] Keep the list of labels of a dataset as metadata
It would be useful to keep the list of the labels of a dataset as metadata. Either directly in the `DatasetInfo` or in the Arrow metadata.
This should be accessible now as a feature in dataset.info.features (and even have the mapping methods). | [
-0.0496051498,
-0.0984713584,
-0.1723788828,
-0.0273313224,
0.1680131108,
0.1654706597,
0.3242642283,
0.2305075675,
-0.0478425734,
0.2778838873,
-0.2302711904,
0.4928883612,
-0.1844333112,
0.2717520595,
-0.0722043812,
0.0264096037,
-0.1009540185,
0.0530565232,
0.041412428,
-0.0347817913,
-0.3080713153,
-0.1635332108,
0.1349450946,
0.0643811673,
-0.2375002652,
-0.0460764095,
0.1412657797,
-0.1954508424,
-0.0466825813,
-0.600949049,
-0.1726687998,
0.2099639922,
-0.0750789866,
-0.1280408204,
-0.0000924084,
-0.1215023473,
0.139908269,
0.0204978269,
-0.2751191556,
0.0876630992,
-0.4400592446,
-0.0634488612,
0.1277536154,
-0.3124091029,
-0.0303015485,
-0.1620435715,
0.0217022803,
-0.2083200216,
-0.1103460491,
0.0456910692,
0.4085198045,
0.0035762885,
0.0009512549,
-0.0858164132,
0.4976729155,
0.1833199561,
-0.4111301899,
-0.0564071797,
0.2255615592,
0.1022935584,
0.0467006601,
0.5869674683,
-0.0641266778,
-0.152445063,
0.3551448882,
0.0096307993,
0.112163946,
-0.332459569,
0.0456432812,
0.1028479263,
0.9027408957,
-0.308391124,
-0.2470872998,
-0.1317893416,
-0.0125021525,
-0.1988036931,
0.0801151171,
0.0526472442,
0.0992973,
0.1977139264,
0.0551456921,
-0.3937343955,
-0.1392280608,
-0.0967758447,
-0.0178305712,
0.4943386018,
-0.1232156381,
-0.0832452029,
0.1033810079,
-0.2010063678,
0.1059984863,
-0.019134827,
-0.049544625,
-0.0015813052,
0.0675469339,
-0.244141534,
0.0989898518,
-0.1532107592,
0.2423736602,
0.3187514246,
-0.0798827559,
-0.0288355947,
-0.3631314337,
0.1258136183,
0.2099363804,
-0.0072109085,
0.4834261537,
0.1031985879,
0.2926646769,
-0.2207581848,
-0.1145366654,
-0.1516708732,
0.0008642493,
0.2730924487,
0.3092396259,
-0.007115372,
0.3624814749,
-0.3352710903,
-0.2529607415,
-0.0697744787,
0.0482398681,
-0.1187165454,
0.1934690475,
0.3123272955,
0.0354917198,
0.0471756868,
-0.2396336496,
-0.0242578872,
0.266962558,
-0.1388697177,
-0.2123288959,
-0.1292961538,
-0.0829123259,
0.0255029779,
0.0194383748,
0.0227202475,
0.3629744351,
-0.1533166766,
-0.0136336461,
-0.0287379846,
0.1597516388,
-0.0463825539,
0.2886559665,
0.1537842155,
-0.240883112,
0.1265989691,
-0.0432016402,
0.0505391397,
-0.3477986455,
0.0889651701,
-0.2663638592,
-0.2532557547,
-0.2703176141,
0.3592046201,
0.1903044432,
-0.189977631,
-0.0029619564,
0.1976010799,
-0.0891304687,
0.0178296939,
0.0847131461,
0.134401992,
-0.1058999971,
-0.269737184,
-0.1391244233,
0.0331960283,
-0.3472648859,
-0.0254423004,
0.1159434766,
-0.1032408476,
-0.0487672538,
0.1077131554,
-0.3057387769,
0.0840150416,
-0.1304384023,
0.1342796683,
0.2191059589,
-0.1828378141,
-0.2081879973,
-0.0410219021,
-0.0110608656,
-0.2209462672,
-0.0191749949,
0.3735283613,
0.1456192732,
-0.2916695774,
-0.0252592973,
-0.0990170613,
-0.0725702718,
0.1471473873,
-0.0109407622,
-0.0757464692,
0.1559708565,
-0.0825420767,
-0.2193496525,
0.120521009,
0.0938541442,
0.1087629572,
0.0994633511,
-0.0693746731,
0.1036930308,
0.4537684619,
0.4328600168,
0.173799172,
-0.095423162,
-0.2658982277,
-0.3110406697,
-0.0317868367,
0.0627562255,
-0.0624679364,
0.0312345717,
-0.5854986906,
-0.1437661797,
0.1872644126,
-0.0144014191,
0.0042473162,
0.3816922605,
0.1099590212,
-0.3010727465,
-0.0189691912,
-0.2340237945,
-0.0605974309,
-0.0038256426,
-0.043161761,
-0.051966507,
-0.0022550914,
0.0235310383,
0.0451431498,
0.0022893101,
0.1355996579,
0.1382025778,
0.0514882207,
-0.0487502664,
0.2879354954,
0.201581195,
-0.1524143219,
0.1315052509,
0.4913335443,
0.2677471638,
-0.3744822741,
-0.1273799539,
0.0072630919,
-0.0027250606,
0.0269385353,
-0.3750002682,
0.0071979295,
0.1368162781,
0.1164635569,
0.1178022474,
0.1408797652,
0.2169954479,
0.0723884702,
-0.176757887,
-0.3400180042,
-0.2923744321,
-0.1043406203,
-0.0824241862,
0.0987218991,
-0.4779791832,
0.5590275526,
0.7271509171,
0.1874971688,
0.2642274499,
0.0688681751,
-0.2115926445,
0.0219864789,
0.3479870558,
-0.0654759854,
0.0490360484,
0.4268994629,
0.2220215052,
-0.0561690554,
-0.0363546312,
-0.0129511831,
0.2276464105,
0.1589511484,
0.1350107044,
-0.1153642908,
0.1157374382,
-0.080516085,
-0.127499938,
-0.298596859,
-0.0738098472,
-0.0514242798,
-0.0466168672,
-0.1763065159,
-0.3657179475,
-0.1905112118,
0.029067032,
-0.2515900731,
-0.3413635194,
-0.3003249168,
0.2787345946,
0.2025240511,
-0.3914100826,
0.4054633081,
-0.2809785008,
0.18006666,
-0.0128090838,
-0.0476997644,
-0.0472427905,
-0.2777006626,
0.0947753116,
0.2540523112,
-0.0370875262,
0.079837732,
0.4506226182,
0.1521617323,
0.2697620988,
-0.6478306651,
-0.3487974405,
0.2086026222,
0.0181230642,
-0.0781257004,
0.1263720989,
0.1510207504,
-0.1446933597,
-0.0811225548,
-0.0505005568,
-0.0534175895,
-0.1017615423,
-0.1608786434,
0.1139836162,
-0.0897726789,
-0.1069201827,
-0.4496890008,
-0.1781232953,
-0.5046769977,
0.2615948021,
0.0235694442,
0.2280349582,
0.179664433,
-0.2393414378,
0.141004771,
-0.1516531706,
0.1815713197,
-0.2869572341,
-0.1689716876,
0.1275098771,
-0.2683322132,
-0.1008080468,
0.1138844937,
0.0540678613,
0.0919375122,
-0.0693852603,
-0.0575256161,
-0.1977216899,
-0.106479615,
0.3291490972,
0.1518096477,
0.1072695032,
0.3619348109,
0.317442894,
-0.2667704225,
-0.0292521026,
-0.2264194936,
0.2773752511,
0.0564538278,
0.1877759248,
-0.0833344012,
-0.0693660751,
-0.1662255824,
0.2725534737,
-0.0823972374,
0.0848291293,
0.066214852,
-0.0174633022,
0.2688057125,
-0.1162871197,
-0.1365409493,
0.0221417714,
-0.0684012696,
0.0213084612,
0.2833124995,
0.1046237871,
-0.1605486572,
0.0719439536,
0.0609423593,
-0.0409465581,
-0.2158067375,
-0.045120921,
0.0695248246,
0.1812650561,
0.0980483666,
-0.0176503174,
-0.1575074643,
-0.0406274907,
0.153433308,
0.0189442113,
0.0940211117,
-0.1688889414,
-0.6407892704,
-0.0228613913,
-0.2375493199,
-0.0048510227,
0.0799655542,
-0.1354019493,
-0.0997041985,
-0.2216231376,
-0.1857284606,
0.1717875153,
0.2978361845,
-0.2914413512,
-0.1940683275,
0.0473773181,
0.174042508,
0.1496273726,
0.1061804816,
-0.1042315066,
0.072166644,
0.1377888471,
0.3421628177,
-0.2507078052,
-0.1300929338,
0.2145003676,
0.0027839374,
-0.1060274616,
0.0286507625,
-0.0539326333,
-0.2279932797,
-0.1222899631,
0.0036643764,
0.1679655015,
-0.1264899075,
0.023100432,
-0.0387709588,
-0.1081668213,
-0.1523589343,
0.0796497315,
0.2087119669,
0.2823013961,
0.1310624033,
0.0923201814,
0.0415389091,
0.3975784481,
0.2388136089,
0.4212315977,
-0.08045993,
-0.3947166204,
-0.0684074312,
-0.2574703693,
0.3553961813,
-0.01324498,
0.0715202317,
0.1550484449,
-0.3175728321,
-0.0690393448,
-0.2352419645,
0.0467912182,
-0.0560232103,
-0.0785977915,
-0.205613628,
-0.2625402808,
0.5939213037,
-0.0425710343,
-0.1731755883,
0.3066680133,
0.0504120477,
-0.2644335032,
0.1184928566,
0.3276306987,
0.860601306,
0.1222232878,
-0.0537579395,
0.0809400827,
-0.0648091137,
0.524774909,
-0.147549957,
0.0755362958,
-0.4238332808,
-0.3841572404,
-0.0377390981,
0.0851705223,
-0.0223442465,
0.1731524915,
-0.2174613625,
0.0564648956,
-0.034087643,
0.1059448496,
-0.0818722248,
0.1296476126,
0.1797145307,
-0.4037364125,
-0.0829450339,
0.3114579618,
-0.1685132831,
-0.0216140747,
-0.0532037616,
-0.1298719645,
0.1390579045,
0.0984612107,
0.0490274504,
0.1109281927,
-0.0927612334,
0.147949636,
0.0158536229,
0.1491801739,
-0.0347530022,
-0.1864571571,
0.4739911556,
0.089760989,
-0.1023960635,
0.0387798622,
0.1525943726,
0.119360812,
-0.0934807286,
0.0345100611,
0.3152235448,
-0.0283827838,
-0.1218998879,
0.0688555613,
0.0050387774,
-0.2486804724,
-0.2861433923,
-0.1798698753,
0.173343122,
-0.1654538363,
0.1035723165,
0.16752702,
-0.2941786349,
-0.3173499405,
0.2873852551,
0.0916209817,
-0.0947531015,
0.1600700468,
0.1074647978,
0.1371639222,
-0.1262546927,
-0.0400856473,
0.0961311162,
0.082353808,
0.0036406843,
-0.157265082,
-0.1986840814,
-0.4302117527,
0.2172505856,
0.056150157,
-0.1555857658,
0.1959597617,
-0.0319295302,
-0.2095275968,
-0.0483822003,
0.1660513431,
-0.0033531222,
0.0846331194,
-0.1702110767,
0.1072602123,
-0.4351983368,
0.270696789,
-0.1829455495,
0.3454108536,
-0.2357184738,
0.0502329692,
-0.0859367922,
-0.0480711125,
-0.5581709743,
-0.2756899893,
-0.2299215496,
0.0350651555,
0.2522655427,
0.0905505419,
0.00819444,
-0.066672653,
0.257753402,
0.0664045289,
0.0030392418,
-0.4120518863,
-0.2192263007,
-0.0005247722,
-0.0515117347,
0.1661141515,
-0.2192688286,
-0.0418002903,
-0.1061745882,
-0.1460495591,
-0.016992636,
0.0699339956,
0.1038956642,
0.3313810825,
-0.2029774338,
-0.0209296159,
0.0031162612,
0.1315289736,
0.2356397361,
0.0610735193,
0.0241902918,
0.0824209377,
-0.3954673111,
-0.0931767449,
-0.1182156131,
0.2054080069,
-0.2415839732,
0.0571340621,
0.1239665672,
-0.0197929498,
0.0389058292,
0.4792377353,
0.1772831976,
-0.1627842635,
-0.0241418127,
-0.1127081811,
0.2879498303,
0.4854299128,
-0.3828673363,
-0.3012910187,
0.147442013,
-0.0106519628,
0.3686860502,
0.3350857496,
0.2474939823,
0.2425526381,
0.2311016917,
0.0421506763,
0.0638675764,
-0.3651691973,
0.0823838115,
0.3219588995,
0.1054731533,
0.0369811244,
0.423850894,
0.3885627389,
0.4059869647,
0.3636250794,
0.2105580568,
0.4172863364,
0.4277817309,
-0.0787118003,
0.3518083394,
0.1038474217,
-0.0642449632,
0.144138217,
-0.0626458526,
0.1139073744,
0.1288523674,
-0.0965228751,
-0.1344094723,
-0.3736049831,
-0.0066510588,
0.2293716371,
-0.1778656989,
-0.0393970199,
-0.0244953036,
-0.1111563072,
0.0197920147,
-0.2580576241,
0.0502886027,
-0.1362707466,
0.2617528141,
-0.3673519194,
0.3187538981,
-0.2376466393,
0.0193834379,
0.0612944812,
0.3824276924,
0.0097050024,
0.0181862153,
-0.1317523867,
-0.1554830074,
0.03693901,
0.2386712432,
-0.0669498593,
0.0630166456,
0.2173569947,
0.0632433742,
-0.2458052933,
-0.2655650079,
-0.1004001647,
-0.0394910537,
0.0020971461,
-0.1866284013,
0.3683697879,
0.2563748062,
-0.2082833648,
0.353844136,
-0.0572594367,
0.0278933179,
0.0193739869,
-0.0197794735,
0.4352954626,
-0.4933035672,
0.0994582921,
-0.0483453199,
-0.1053132787,
-0.3252820671,
0.5150408149,
0.026929887,
0.1437045485,
-0.1438026726,
0.2109610289,
0.0787256584,
0.2407086194,
0.1314757764,
-0.1165204495,
0.0942088068,
-0.0172769856,
-0.4910582304,
0.0508873835,
-0.0163881797,
-0.3304606974,
0.2815281749,
0.1093788743,
0.1281302124,
0.2880233824,
0.050975915,
-0.3023863435,
0.1641386449,
-0.1748102158,
-0.2904702127,
-0.0192542467,
0.137674287,
0.1960677505,
0.0584706366,
-0.1869937927,
0.1094980538,
-0.0065718982,
0.212216109,
-0.2828083038,
0.078360118,
0.0352970064,
0.2787853181,
0.3351292014,
-0.0861839429,
0.0458693579,
-0.183117941,
-0.0132580614,
0.0696534514,
-0.3647837639,
-0.0705903396,
-0.1177369803,
0.1854349375,
0.3088001907,
-0.0070980261,
0.0952208191,
-0.2999936938,
0.0367260613,
0.0878408626,
0.1955060214,
-0.271028161,
0.3101604879,
0.0018105531,
-0.0283744615,
0.0632260218,
0.2170795649,
0.0452683903,
-0.0553322583,
-0.0132550849,
-0.3287934661,
0.4158829153,
0.1384561658,
-0.3457224965,
0.0865019485,
0.2781177163,
0.2457080483,
-0.0114863673,
-0.4668859839,
-0.0847873688,
0.4394420981,
-0.1099125445,
-0.2286853045,
0.0237506628,
-0.0242875982,
0.0577274002,
-0.1100800112,
0.2805045247,
0.0308378581,
0.0172546748,
0.0041125747,
-0.1801847219
] |
https://github.com/huggingface/datasets/issues/4 | [Feature] Keep the list of labels of a dataset as metadata | Hi,
I hope we could get a better documentation.
It took me more than 1 hour to found this way to get the label information. | It would be useful to keep the list of the labels of a dataset as metadata. Either directly in the `DatasetInfo` or in the Arrow metadata. | 25 | [Feature] Keep the list of labels of a dataset as metadata
It would be useful to keep the list of the labels of a dataset as metadata. Either directly in the `DatasetInfo` or in the Arrow metadata.
Hi,
I hope we could get a better documentation.
It took me more than 1 hour to found this way to get the label information. | [
-0.0012371235,
-0.164871186,
-0.1444353461,
0.0895125195,
0.1662276089,
0.1849586815,
0.3181915879,
0.0862609893,
-0.0790703148,
0.3192558289,
-0.1647142768,
0.5471565127,
-0.2006158084,
0.2491293848,
-0.1022705436,
0.0059490539,
-0.1573646963,
0.0784157217,
0.1580573916,
-0.1261556894,
-0.1806288958,
-0.1693414003,
0.0251518209,
0.0729989186,
-0.357034713,
-0.0805932954,
0.2116433978,
-0.2055699378,
-0.1756670773,
-0.5510211587,
-0.13532269,
0.0937982127,
-0.0786831081,
-0.2112112194,
-0.0000956425,
-0.0900049657,
0.243776232,
-0.0806704089,
-0.1377635896,
0.0274875872,
-0.450014025,
-0.0306214932,
0.1355545968,
-0.267037183,
-0.0036934754,
-0.0796644017,
-0.0997264311,
-0.2003890127,
-0.2043869197,
0.0457960591,
0.3885519505,
-0.0868357047,
0.0493130907,
-0.0398687273,
0.504148066,
0.2530725896,
-0.4126290083,
-0.0206846856,
0.2439531386,
0.1936399192,
0.1692545712,
0.6853997111,
0.0045040161,
-0.2017081827,
0.3443517685,
-0.0197565816,
0.043613445,
-0.4302620888,
0.1069988683,
0.0780439675,
1.1487183571,
-0.2577241063,
-0.1661703289,
0.0348855965,
0.0135568557,
-0.258320123,
-0.0203068685,
0.1106653661,
0.0717396066,
0.1847582906,
0.0073041888,
-0.3757536709,
-0.2281250656,
-0.1638334692,
0.068420127,
0.5441601276,
-0.1537512541,
-0.0204878822,
0.1099065244,
-0.1912330091,
0.0578919426,
0.0710083693,
-0.1205026656,
-0.0050512305,
-0.0082444604,
-0.19725658,
-0.0211166572,
-0.1875524521,
0.2372862399,
0.4003068209,
-0.1271064728,
-0.0959066451,
-0.2914322615,
0.1521318555,
0.192505002,
0.0913547948,
0.6101217866,
0.0721338689,
0.19422324,
-0.3319149911,
-0.0696623251,
-0.1991145909,
-0.0890012383,
0.3325091898,
0.3371144831,
-0.0426591374,
0.3909406066,
-0.4748961031,
-0.2659725845,
-0.0422987044,
-0.079811126,
-0.160330072,
0.1977969259,
0.333894074,
0.0164153967,
0.0565251186,
-0.3122140467,
-0.1739888489,
0.3510822952,
-0.2051128149,
-0.184549734,
-0.0596305095,
-0.1094474122,
0.0480873026,
-0.0730430633,
-0.0498027541,
0.4779725373,
-0.1632074714,
0.0568899289,
-0.0626576021,
0.1679089814,
-0.1796262413,
0.2364337295,
0.2492838949,
-0.1773933023,
0.1520494074,
-0.1059271991,
0.0674740076,
-0.3431613445,
0.1716541946,
-0.3339011669,
-0.3239250481,
-0.3281527758,
0.3036519289,
0.2867658436,
-0.1956074536,
-0.081105046,
0.132376641,
-0.0781576782,
0.1557226032,
0.1960145235,
0.1929069757,
-0.0881435797,
-0.3573960066,
-0.208981216,
-0.0679308176,
-0.3548080921,
0.0634035841,
0.1835014522,
-0.0971571505,
0.0263428129,
0.1660446376,
-0.3402354121,
0.1804991961,
-0.0747927278,
0.1529985666,
0.2817380428,
-0.3045761883,
-0.1977696121,
-0.0991869122,
0.0565671772,
-0.3040275276,
0.0313153192,
0.3571994007,
0.1371991634,
-0.2525863945,
-0.0379890241,
-0.1192592159,
-0.1827458739,
0.1229211763,
0.0769780055,
-0.0729241222,
0.1534150839,
-0.0192938056,
-0.3171246946,
-0.0344869867,
0.0391568691,
0.1229164898,
0.2025412768,
-0.0204834435,
0.0531005748,
0.5952309966,
0.5330176353,
0.1924235821,
-0.0073459418,
-0.127493456,
-0.2925900817,
-0.0048786243,
0.1233347952,
0.0435003936,
-0.0476257987,
-0.562397778,
-0.1672822535,
0.2020260394,
-0.0502536111,
-0.1356934458,
0.3412768543,
0.0692976117,
-0.1592823267,
0.0307356939,
-0.2348346412,
-0.0835727528,
-0.1016057432,
-0.1031383574,
-0.0791600719,
-0.0126527902,
0.0224932116,
0.0734018534,
0.0195242912,
0.0770113766,
0.1528436095,
0.0858819559,
-0.0826206282,
0.2503278553,
0.364276737,
-0.1911370456,
0.0896235555,
0.4628485739,
0.2029889673,
-0.5049225092,
-0.1265564561,
-0.1045886502,
-0.0068426002,
0.074111402,
-0.3349621892,
-0.1465950757,
0.1267174929,
0.1205836162,
-0.0052571911,
0.1091273502,
0.1501394659,
0.0851367638,
-0.181124121,
-0.2047688812,
-0.2610882521,
-0.1227953136,
-0.0545930937,
0.1272090375,
-0.4433561862,
0.6448718309,
0.8193069696,
0.1280817091,
0.1116259173,
0.0814263597,
-0.1565681845,
-0.0312815346,
0.387450695,
-0.1714459956,
-0.0298579615,
0.3746445477,
0.0640372783,
-0.1203875989,
-0.0335311964,
0.0954780206,
0.2456455976,
0.1229070947,
0.2739793658,
-0.192318067,
0.025168756,
-0.1045748144,
-0.0531104431,
-0.3405826986,
-0.0375664458,
-0.0243001524,
0.0644434392,
-0.1721327007,
-0.3638795614,
-0.2382691205,
-0.0409298614,
-0.3866482675,
-0.3366091251,
-0.2427175194,
0.1281423569,
0.1403515488,
-0.2408832312,
0.4542853534,
-0.2238085121,
0.2266671956,
0.01226654,
0.1140896305,
-0.0426630117,
-0.207557708,
0.0608811229,
0.2083188891,
-0.0507897772,
0.0117372321,
0.4336637855,
0.1324026138,
0.2497446835,
-0.5540035963,
-0.3498835266,
0.2959486246,
-0.0070696245,
-0.1748353094,
0.0527373292,
0.1413440406,
-0.1761556864,
-0.0824228078,
-0.1549873948,
-0.0203714985,
-0.1302683949,
-0.2336315513,
0.1079983935,
-0.1518327892,
-0.1235054061,
-0.4730251729,
-0.311847955,
-0.3345970809,
0.2471401244,
0.0232421644,
0.2466921508,
0.2528493702,
-0.3076381087,
0.2085215747,
-0.1585283577,
0.1713124514,
-0.2391829193,
-0.1494201869,
0.0749916211,
-0.2606089711,
-0.1155942231,
0.2041755468,
0.1375213414,
0.0843720809,
-0.2092921287,
-0.0700518638,
-0.233405903,
-0.0555214062,
0.2725539207,
0.0570353195,
0.1138927341,
0.3041982353,
0.2385291755,
-0.1843322217,
-0.0857886821,
-0.2510440052,
0.3567959666,
-0.0861883461,
0.2458525747,
-0.0341415145,
-0.1150797904,
-0.1341922283,
0.3058533967,
-0.0768331513,
0.0881061256,
-0.0944924653,
-0.0230640303,
0.2096022964,
-0.0614357516,
-0.0265808124,
0.0251487587,
-0.0652383715,
-0.0395391434,
0.2249218673,
0.0600648299,
-0.1194645315,
0.1041641086,
0.111560896,
0.0047303755,
-0.1024365351,
-0.0938312113,
0.1650919765,
0.1451712698,
0.0665779933,
-0.015923867,
-0.0180986468,
-0.0130034043,
0.2016477734,
0.0971340314,
0.092256099,
-0.1459080428,
-0.5941454172,
-0.0588248745,
-0.2968177497,
-0.1020797566,
0.1661740094,
-0.1209907606,
-0.1129441336,
-0.0747667849,
-0.0998608321,
0.1974825412,
0.2224694043,
-0.2555693388,
-0.1733751595,
0.0044723866,
0.1745814383,
0.2703570724,
0.0569523647,
-0.1367482543,
0.0740190968,
0.1512487382,
0.2651044428,
-0.2215266526,
-0.2185598463,
0.202830717,
-0.1147375107,
-0.1887829304,
0.0338842869,
-0.0532907322,
-0.3151337504,
-0.0555494577,
-0.064681001,
0.2114091069,
-0.079106994,
-0.015470569,
0.0376381353,
-0.0672190115,
-0.1249922663,
0.0175751522,
0.1285693496,
0.358856678,
0.1678732187,
0.0796647295,
0.035486199,
0.4213565588,
0.3082742989,
0.4567632675,
-0.0362387113,
-0.3652469516,
-0.0549166016,
-0.3048214316,
0.359927386,
-0.0508864895,
0.0300818253,
0.2228411436,
-0.4036855996,
-0.0858380124,
-0.1862982213,
0.0141543942,
-0.031485118,
-0.060636431,
-0.1824000925,
-0.2255864739,
0.606502831,
-0.031031616,
-0.1482856423,
0.3782888055,
0.1398420185,
-0.2171355486,
0.0844928175,
0.436986357,
0.9195868373,
0.2937504947,
-0.1067114025,
0.0844582096,
-0.1077139974,
0.4760146439,
-0.2062113881,
-0.0425348729,
-0.4645939767,
-0.4050451517,
-0.0478518791,
0.0685213134,
-0.1141044497,
0.0732412338,
-0.2745035291,
0.0024095606,
-0.0741710886,
0.0284497384,
-0.0318055302,
0.1433516294,
0.2166121602,
-0.3721880913,
0.0722674355,
0.2561983168,
-0.144385621,
-0.0086840969,
-0.0669337288,
-0.1190869883,
0.1041477099,
0.0687935576,
-0.0215210281,
0.0928886533,
-0.0396413356,
0.2475080639,
0.0046421168,
0.2571247518,
-0.012518636,
-0.246233806,
0.4121075869,
0.1033276916,
-0.1521439552,
0.0583821908,
0.2776152492,
0.0871054754,
-0.1127848774,
-0.038204778,
0.3457882404,
-0.0559504554,
-0.1426963955,
0.0610190704,
-0.0773513168,
-0.2373097241,
-0.2455613017,
-0.2331225276,
0.1190003604,
-0.053512536,
0.0234285798,
0.2704651952,
-0.3187796474,
-0.1941489726,
0.2453618497,
0.1659115106,
-0.1222819611,
0.181270197,
0.0899960697,
0.073530376,
-0.1401903331,
-0.1178976446,
0.2483602762,
0.0603414774,
-0.0290227812,
-0.157422334,
-0.1389187723,
-0.3266372681,
0.3035320938,
0.0681062937,
-0.2784834802,
0.066902481,
-0.0191359352,
-0.0039055711,
-0.0589889809,
0.2535938323,
0.0287112594,
0.0881969333,
-0.2199207097,
0.01050945,
-0.4449215829,
0.3048160076,
-0.2428062558,
0.2791713774,
-0.2988985479,
-0.0400787108,
-0.028939791,
-0.0025082356,
-0.5056154132,
-0.3050807416,
-0.2678803504,
0.0716245919,
0.3104783893,
0.0639393181,
0.068362087,
-0.0452100709,
0.1877837777,
0.1508856863,
0.0330270156,
-0.344617188,
-0.2024810612,
0.0183730107,
0.0463421457,
0.1228948683,
-0.305321157,
-0.1195163429,
-0.1498737484,
0.1034254655,
-0.0127861649,
0.0593537688,
0.1396948546,
0.2568349838,
-0.1656394005,
0.000645696,
-0.1029189155,
0.1477174461,
0.2645992935,
0.0748075619,
0.0030838936,
0.081236504,
-0.3653031886,
-0.0929748416,
-0.2094046026,
0.1605013758,
-0.1986073852,
0.0196452495,
0.1048587933,
-0.0261651184,
0.1322057843,
0.3114331067,
0.1559105664,
-0.1090624854,
-0.1002719626,
-0.1722403169,
0.3041318059,
0.4529170394,
-0.294244498,
-0.3027316928,
-0.0992137119,
-0.0347644798,
0.2156744599,
0.3279439211,
0.293431133,
0.4048694372,
0.3351890743,
0.0780648291,
0.0476001799,
-0.2987959981,
-0.0002298104,
0.2654297352,
0.0078933761,
0.0940516815,
0.5532250404,
0.431389004,
0.4667009413,
0.1995992959,
0.2376893759,
0.4809705019,
0.4447412789,
-0.0968545154,
0.3799721897,
0.1630189121,
-0.0923213512,
0.1164421439,
-0.0926213264,
0.0603367761,
0.0875145495,
-0.1604097486,
-0.0309883133,
-0.4357773066,
-0.0316676497,
0.2741468847,
-0.1772164404,
0.0448566563,
-0.0410770141,
-0.0920217857,
-0.0446954891,
-0.1975095868,
0.101828143,
-0.071032472,
0.137583673,
-0.3624086678,
0.1395973116,
-0.0862417817,
-0.092448324,
0.1920212954,
0.4139567316,
0.0493414402,
0.0206730459,
-0.2146124244,
-0.0767427385,
-0.0649267882,
0.2935520113,
-0.0297303349,
0.1483550519,
0.2943933904,
-0.0371967107,
-0.1158064157,
-0.2497950345,
0.0679293871,
0.0402476415,
0.0486518964,
-0.2836842537,
0.34215644,
0.2083596587,
-0.1644159406,
0.3860663176,
-0.0611930415,
0.0855275318,
0.0496995486,
-0.1185663864,
0.4763045907,
-0.462659508,
-0.0060804635,
0.0001810059,
-0.1738996655,
-0.2168462873,
0.4887298644,
0.127983734,
0.1148268208,
-0.2230089754,
0.186453715,
-0.0178238917,
0.31019333,
0.1780804247,
-0.0462340601,
0.0877067372,
-0.0644421503,
-0.3680132031,
0.0221314542,
0.074585326,
-0.441594243,
0.3512911797,
0.0816532597,
0.1450375915,
0.3208817542,
0.0781862885,
-0.2648009062,
0.1972448081,
-0.1202232167,
-0.361898303,
0.0410245359,
0.1647650898,
0.1985957026,
0.0445909873,
-0.1590081602,
0.1538600028,
0.018591471,
0.1810942143,
-0.361050725,
0.0255804788,
0.0831687748,
0.3645094633,
0.3108388484,
-0.1341506392,
0.0127661312,
-0.1271162778,
-0.0687106848,
0.0942867473,
-0.3083776534,
-0.0817373171,
-0.167257905,
0.2020458877,
0.2749414742,
0.05150019,
0.1004325226,
-0.375793308,
0.0677643046,
0.0364500135,
0.1660327762,
-0.2816429734,
0.2044068575,
-0.0710696131,
-0.0331354812,
0.1783468723,
0.1479924917,
0.1054490209,
-0.0864952505,
-0.1680942774,
-0.288972646,
0.5036250949,
0.2576979995,
-0.2148966491,
0.0834672451,
0.2721809745,
0.3186980486,
-0.0604455955,
-0.5303119421,
-0.0699998289,
0.442114532,
-0.1397155076,
-0.2328904867,
-0.0145275816,
0.0453348942,
0.0968218148,
-0.1318295002,
0.2383093536,
-0.0106116282,
0.0122847771,
-0.0843882635,
-0.1290216297
] |
https://github.com/huggingface/datasets/issues/4 | [Feature] Keep the list of labels of a dataset as metadata | Yes we are working on the doc right now, should be in the next release quite soon. | It would be useful to keep the list of the labels of a dataset as metadata. Either directly in the `DatasetInfo` or in the Arrow metadata. | 17 | [Feature] Keep the list of labels of a dataset as metadata
It would be useful to keep the list of the labels of a dataset as metadata. Either directly in the `DatasetInfo` or in the Arrow metadata.
Yes we are working on the doc right now, should be in the next release quite soon. | [
0.0434393957,
-0.0362069793,
-0.1563859284,
-0.0524543561,
0.1223034486,
0.220848009,
0.2759692073,
0.178853482,
0.0087437415,
0.2267383635,
-0.1574053168,
0.5626071095,
-0.2707874179,
0.2366515547,
-0.0232620221,
0.0165952444,
-0.0474640504,
0.020963395,
0.1306463331,
-0.0336884037,
-0.2415296137,
-0.1698798835,
0.1512939185,
-0.0532029383,
-0.2328321934,
-0.0394081771,
0.1785150617,
-0.2916419506,
-0.1576614082,
-0.5575759411,
-0.1708636135,
0.2196195275,
-0.070872061,
-0.1691180617,
-0.0000974572,
-0.1273913532,
0.1770219654,
-0.0230435226,
-0.1470952481,
-0.0159271918,
-0.4960758984,
-0.0295408145,
0.1479245126,
-0.1194486246,
0.0284158308,
-0.0955271497,
-0.0997411534,
-0.3222860992,
-0.1836414784,
0.0122564938,
0.3661126196,
-0.0640483797,
-0.0614345968,
0.0069509554,
0.4805951416,
0.2897693515,
-0.4747668207,
0.0097432947,
0.2417717427,
0.1432864815,
0.1520197541,
0.6420621872,
-0.0295928773,
-0.251032114,
0.3693679571,
0.0115172239,
0.0201354492,
-0.36882478,
0.0242836718,
0.0691426471,
1.0715811253,
-0.3872752488,
-0.1921416521,
-0.0374776199,
0.0414032377,
-0.3004674017,
0.0241512526,
0.0755016655,
0.0969066843,
0.214542821,
0.0616904795,
-0.5372311473,
-0.1946927607,
-0.0914591998,
0.0487756021,
0.5409661531,
-0.0751591474,
-0.1670040786,
0.1555884331,
-0.1719274074,
0.1570845395,
-0.0032778324,
-0.1599090248,
-0.0129471477,
-0.0063081537,
-0.2228291482,
-0.095837824,
-0.157214582,
0.2525977194,
0.4223832488,
-0.0732689649,
-0.0907002464,
-0.3351195157,
0.123592265,
0.2955762446,
0.0198884178,
0.624694407,
0.0946139842,
0.2880924046,
-0.4285324812,
0.0352326334,
-0.1624549031,
-0.0993715674,
0.3854802549,
0.2950222492,
-0.0776431859,
0.3249310553,
-0.4315892458,
-0.1809602082,
-0.045222681,
0.003980313,
-0.1701398492,
0.1890343875,
0.2550528347,
0.1284544021,
0.1242191195,
-0.2564404309,
-0.0217118151,
0.4035781622,
-0.1800672859,
-0.114364706,
-0.1187712625,
-0.0754055381,
0.123991549,
0.000037706,
-0.0456721149,
0.3899737298,
-0.1539159566,
0.0750824735,
-0.0887626261,
0.1447477192,
-0.0744214579,
0.2771873772,
0.1985366046,
-0.3157619536,
0.1249480471,
-0.1547253728,
0.0169927217,
-0.3274435401,
0.283043474,
-0.2704173326,
-0.2312247455,
-0.402066797,
0.2658467889,
0.2844425142,
-0.3097572327,
-0.1067962348,
0.1678141803,
0.0092425803,
0.091192238,
0.2200799286,
0.1911846399,
-0.0632187352,
-0.2448176593,
-0.3248764277,
-0.0201816782,
-0.3555794954,
0.0212507267,
0.161293298,
-0.0053831129,
-0.1127400324,
0.1281255484,
-0.279053092,
0.1148024648,
-0.0166739542,
0.1989627331,
0.2150046974,
-0.3138137162,
-0.1832923591,
-0.140606612,
0.0891033933,
-0.2974984646,
-0.0027125578,
0.3696071208,
0.1509944499,
-0.3287329376,
-0.0952906907,
-0.1117074192,
-0.1460362077,
0.1848976016,
0.0566563234,
-0.0997143015,
0.1577634662,
-0.0430922993,
-0.282604754,
-0.0194786787,
0.0270491466,
0.1429832131,
0.1487598568,
-0.0547488853,
0.0540670119,
0.5306124091,
0.5022463202,
0.1811079979,
-0.0339319296,
-0.1936637759,
-0.3577801287,
-0.1424720585,
0.1433424205,
-0.1000239328,
-0.023233626,
-0.5768049359,
-0.1213207543,
0.142217055,
-0.0736326948,
-0.0558605306,
0.288931787,
0.0115035605,
-0.3270289302,
0.1184313074,
-0.3359764814,
-0.1061219946,
-0.0946167335,
-0.0481745042,
-0.0669816434,
0.0370244831,
0.0716620237,
0.0317733027,
0.0576180108,
0.1245612353,
0.0394378081,
0.0424984619,
-0.0618643984,
0.2732850611,
0.3557746708,
-0.1737658381,
0.1408222616,
0.5224784017,
0.3935515583,
-0.444553405,
-0.0970880687,
-0.0675665215,
-0.0928999856,
0.0059174034,
-0.4204336703,
-0.1387983263,
0.0643700138,
0.1765263379,
-0.0108583309,
0.0879017115,
0.1306762248,
0.0643801391,
-0.2210182548,
-0.2471513897,
-0.3081647754,
-0.1115168035,
0.0108661242,
0.0825834572,
-0.4147005677,
0.6170594096,
0.7159019113,
0.1884170026,
0.1927087307,
0.1729831696,
-0.1423831731,
0.0155094974,
0.3298496902,
-0.1325003505,
0.0031865782,
0.3548626304,
0.1074499786,
-0.1206545606,
0.0597315058,
-0.0086462218,
0.2671054602,
0.141038835,
0.2787778676,
-0.0590397306,
0.0770414248,
-0.0987056866,
-0.1839789152,
-0.2230005562,
-0.065946959,
-0.0925991908,
0.0474025756,
-0.1751674265,
-0.4039582312,
-0.2162210196,
-0.0144816721,
-0.4419519603,
-0.4217892587,
-0.2748585343,
0.2110533118,
0.2215564698,
-0.3491574824,
0.4842574,
-0.2305957377,
0.3170522749,
-0.0948728919,
0.0737083033,
-0.1031875461,
-0.3096196651,
0.1940344125,
0.1684673131,
0.0646789446,
-0.0462103859,
0.4901988506,
0.2274285555,
0.2941663265,
-0.6255380511,
-0.3937921524,
0.2680426538,
0.1080577448,
-0.2010457516,
0.0211652722,
0.06010608,
-0.1602723598,
-0.1049769148,
-0.1912261099,
-0.071413666,
-0.1114471555,
-0.2610789239,
0.1679466516,
-0.0486779697,
-0.094375968,
-0.4127306044,
-0.319693327,
-0.3933530152,
0.3229830563,
0.0477982089,
0.1956525445,
0.2367883474,
-0.2738617063,
0.110907495,
-0.2667826414,
0.0560954213,
-0.2118017375,
-0.1464275867,
0.0401888303,
-0.3039527237,
-0.0693354979,
0.1233008578,
0.1781904548,
0.1063383296,
-0.1853940785,
-0.0211832263,
-0.1820603758,
0.0329698436,
0.2561913729,
0.1078865081,
0.0982025713,
0.2715083361,
0.3025496304,
-0.1601308882,
-0.0782745555,
-0.2235369235,
0.303480953,
-0.0258759279,
0.2311403155,
-0.0255305264,
-0.1827390492,
-0.1518348008,
0.2487510741,
-0.0658459812,
0.121062167,
-0.0589039847,
0.0601908341,
0.2668934166,
-0.1118387729,
-0.0111770947,
0.0304731224,
-0.0972396433,
-0.0587644652,
0.2651950121,
0.134764269,
-0.184483245,
0.2004961669,
0.1009732783,
0.0333160348,
-0.0763026848,
-0.1122860014,
0.0593860038,
0.0727923065,
0.1100732908,
-0.0937861726,
-0.028882334,
-0.0867159218,
0.2341370583,
0.0882662311,
0.1332019717,
-0.1511579454,
-0.4961045384,
-0.0867209584,
-0.3261428177,
-0.1356000751,
0.1741980165,
-0.0836372375,
-0.0742303357,
-0.0959639624,
-0.1763463765,
0.2213134915,
0.2468969971,
-0.2746394873,
-0.3400364518,
-0.0794513673,
0.2384649217,
0.3246186078,
0.1152686104,
-0.0302220639,
0.0080618663,
0.1005547792,
0.2541943192,
-0.1792629212,
-0.1938323826,
0.2142209709,
-0.1171865016,
-0.1312998384,
-0.0480095595,
-0.0321343988,
-0.264259696,
-0.0507317632,
0.0047000907,
0.2307538688,
-0.1946416497,
0.0197140295,
-0.0166254621,
0.0100510316,
-0.2149720192,
0.0083157476,
0.0952982232,
0.3919171393,
0.192238763,
0.0882560387,
0.0017750695,
0.3346698582,
0.40270105,
0.4051617682,
-0.1491683871,
-0.3887193501,
-0.0762824416,
-0.3767279088,
0.4026462138,
-0.1080433726,
0.1047670543,
0.2102489024,
-0.3953934312,
-0.1026770473,
-0.202572614,
-0.0433469899,
-0.1292920411,
-0.1171876118,
-0.1737460643,
-0.2503151,
0.7172231078,
0.0203566905,
-0.112092793,
0.5130611062,
0.0829410702,
-0.2472290397,
0.0864142478,
0.4482965469,
0.8322606087,
0.2280028164,
-0.0528047197,
0.0237782057,
-0.151347816,
0.4931337535,
-0.2395316362,
0.0114550916,
-0.4578917921,
-0.3646808267,
-0.0469420515,
0.1008851901,
-0.0444333628,
0.0961262584,
-0.2933894396,
-0.0768101513,
-0.0855771452,
0.1010479331,
-0.0362257101,
0.1480326205,
0.2260169387,
-0.4164175987,
0.0874068365,
0.2416805625,
-0.1608041376,
-0.1103580222,
-0.1180242598,
-0.1503987908,
0.1359770298,
0.1578753293,
0.0194364339,
0.0825117752,
0.0534790233,
0.2472418994,
-0.0511248112,
0.2083417922,
0.0534808002,
-0.233853206,
0.4566831589,
0.0253253728,
-0.1820275933,
0.1007107273,
0.2212893963,
0.1215672866,
-0.1458112448,
-0.0431772135,
0.2938300073,
-0.0340799615,
-0.0782394707,
-0.0266609956,
-0.0056683621,
-0.3166437447,
-0.295729816,
-0.2071874887,
0.1741411388,
-0.0244428944,
0.1757752895,
0.3065812886,
-0.3132877648,
-0.2669220865,
0.2318620533,
0.1378938109,
-0.0916738138,
0.1622439921,
0.0242808647,
0.0810887814,
-0.1824704409,
-0.104154326,
0.2632160187,
-0.0078619234,
-0.015017258,
-0.1065797582,
-0.2068450898,
-0.3972658813,
0.3107145429,
0.0443362258,
-0.1850655973,
0.1632596403,
-0.056431137,
-0.1413290054,
-0.0493739322,
0.2088932097,
0.0147229414,
0.0290501546,
-0.2001446038,
0.1005952805,
-0.3834919035,
0.2265596092,
-0.2507711947,
0.328546226,
-0.335252583,
-0.0198476166,
-0.0424778424,
-0.035499081,
-0.4664962292,
-0.3121860921,
-0.167740196,
0.0158840716,
0.3144161701,
0.1175070554,
0.0002262521,
-0.1307318658,
0.1292647719,
0.1647518724,
0.071184285,
-0.3367095292,
-0.2378468364,
0.0206528828,
0.0642882288,
0.1974439621,
-0.2520068288,
-0.0365506485,
-0.1360206306,
-0.0062985099,
-0.0214355364,
0.0665379837,
0.1169796512,
0.2628070712,
-0.0627682954,
-0.0530670583,
0.0545101948,
0.158596918,
0.3177576959,
0.0519033782,
0.0091195563,
0.1115511954,
-0.3326874375,
-0.0045490293,
-0.0989476889,
0.1941010207,
-0.1683586538,
0.0285616908,
0.0911919922,
-0.1114882454,
0.0643992499,
0.3876012266,
0.1390179992,
-0.0124379126,
-0.0604136884,
-0.1483980864,
0.269487381,
0.4179908931,
-0.2249197513,
-0.3678026199,
0.0189448372,
-0.0062453831,
0.1890119463,
0.2914515734,
0.3563765585,
0.341866225,
0.242462337,
0.1027165502,
0.0587759204,
-0.3888029754,
0.131199345,
0.2608470321,
0.0531238914,
0.0675649121,
0.4775681198,
0.3761874139,
0.4159616232,
0.2490595281,
0.2351548076,
0.4531283379,
0.4466481805,
-0.142121613,
0.3544518948,
0.2385442853,
-0.0762028769,
0.1016238108,
-0.0155795347,
0.0840306133,
0.2076199353,
-0.0984834582,
0.0064949915,
-0.5115830898,
-0.021425942,
0.2802043855,
-0.0889279917,
-0.0108709382,
-0.0475596227,
-0.0755882934,
0.0692011267,
-0.2171293497,
0.0890484154,
-0.1171613783,
0.2474508137,
-0.2408568412,
0.2792402506,
-0.1811424345,
-0.0920728743,
0.1192623451,
0.3826778531,
0.0472018346,
-0.0246766787,
-0.2306438237,
-0.1663960069,
-0.0187213197,
0.2783015966,
-0.1242558658,
0.0902312249,
0.3227207065,
0.0015384427,
-0.2542090416,
-0.2029976696,
0.0883399993,
0.0786239281,
0.0293895304,
-0.2283681333,
0.3250938654,
0.2124478221,
-0.1215018779,
0.4036475718,
-0.0172289256,
0.0364034511,
0.0660316497,
-0.140779689,
0.5390023589,
-0.4593968391,
0.0848292038,
-0.0046446365,
-0.1158536747,
-0.2132766694,
0.5708602667,
0.0442865156,
0.0722282827,
-0.1337332726,
0.1802088618,
0.0906193554,
0.3319391906,
0.1743140966,
-0.1310204566,
0.0620351695,
-0.0890993625,
-0.327516824,
0.0419921987,
0.037259724,
-0.3228785396,
0.3510720134,
0.0857379809,
0.1607894599,
0.3787336946,
0.0880781785,
-0.2828834653,
0.1609385312,
-0.2028874159,
-0.3434160352,
0.0972483829,
0.1517733335,
0.2282912731,
0.0468577817,
-0.1009309366,
0.1427977681,
0.0792725831,
0.1364848763,
-0.383813113,
0.130028531,
0.0139514534,
0.3490138054,
0.3182297647,
-0.1503993124,
-0.0340050571,
-0.09329243,
-0.0818852261,
0.0732898563,
-0.4288825393,
-0.125548929,
-0.1211812794,
0.1574780196,
0.2775982618,
-0.0780612901,
0.0220225472,
-0.351293087,
0.0584910586,
-0.0090995366,
0.2142270803,
-0.3489821255,
0.2006735802,
0.0022645649,
0.0270618163,
0.1181815341,
0.1586289853,
0.0363151506,
0.0254804417,
-0.094806917,
-0.2343761027,
0.3852598369,
0.2222096175,
-0.2268877625,
0.1126203611,
0.2603060901,
0.2899000049,
-0.0853698999,
-0.5906240344,
-0.1029808074,
0.4209430814,
-0.0888775662,
-0.1769329011,
0.0716726929,
0.0451236591,
0.0964051262,
-0.1804308295,
0.2323369235,
0.0496095344,
0.0416402631,
-0.0830898359,
-0.1776940078
] |
https://github.com/huggingface/datasets/issues/3 | [Feature] More dataset outputs | Yes!
- pandas will be a one-liner in `arrow_dataset`: https://arrow.apache.org/docs/python/generated/pyarrow.Table.html#pyarrow.Table.to_pandas
- for Spark I have no idea. let's investigate that at some point | Add the following dataset outputs:
- Spark
- Pandas | 23 | [Feature] More dataset outputs
Add the following dataset outputs:
- Spark
- Pandas
Yes!
- pandas will be a one-liner in `arrow_dataset`: https://arrow.apache.org/docs/python/generated/pyarrow.Table.html#pyarrow.Table.to_pandas
- for Spark I have no idea. let's investigate that at some point | [
-0.4236602783,
-0.0618052967,
-0.250079155,
0.0073684147,
0.3025445044,
0.1241440102,
0.2948099673,
0.370973289,
-0.1464987546,
0.016603265,
-0.2502678335,
0.7553215623,
-0.0170541443,
0.3141037226,
0.2778238654,
-0.1931229979,
0.094296366,
0.1060331017,
-0.2115755081,
-0.066208005,
-0.2025430799,
0.0692164376,
0.1552253664,
0.1883413345,
-0.3077114224,
0.0542250238,
-0.2953983247,
-0.3888697624,
-0.0519563742,
-0.4054458737,
-0.0291128047,
-0.0066004684,
0.0361478589,
0.0782574117,
-0.000105874,
-0.0859250426,
0.2928691506,
0.018920511,
-0.0985232294,
-0.1385444999,
0.0015436426,
-0.2957568765,
0.4588673711,
-0.2712087929,
0.0664703771,
-0.476164192,
0.182020098,
0.1816088855,
0.3071880639,
0.181648016,
0.3140155375,
0.277203232,
0.0876400918,
-0.0478978865,
0.4405782819,
0.1783978045,
-0.1809588671,
0.2180858999,
0.0357543416,
-0.1531905383,
-0.2881404757,
0.2587611675,
-0.0024935892,
0.0705226064,
0.1081707776,
0.2521232069,
-0.0431852974,
-0.2616991401,
-0.014233293,
0.2416139543,
0.5697917938,
-0.4277185202,
-0.2202008069,
-0.1016319767,
-0.0081956191,
-0.153710559,
-0.0653765947,
0.1404831409,
-0.0338151939,
0.1592040062,
0.237284556,
-0.1483446658,
-0.1802540869,
0.0324248113,
0.0428768061,
0.5674203634,
0.0350543372,
0.0761026964,
0.2279884368,
0.2201832086,
0.2787984014,
-0.0737671182,
-0.0235873926,
-0.098984994,
-0.1824268997,
-0.0830926299,
0.0241273642,
-0.1216843575,
0.0777469426,
0.187850818,
0.2261746526,
0.201834619,
0.0698910505,
0.1147331223,
0.1123694107,
-0.2256427705,
-0.0564352162,
0.1779747605,
0.3263492286,
-0.2604709864,
0.1060848385,
-0.1591231972,
-0.0053732027,
-0.2194370627,
0.272642225,
-0.0774716139,
0.0982926637,
0.1101391092,
-0.1355003715,
-0.0550320596,
-0.0814181864,
-0.1464678794,
-0.1554452181,
0.2199736238,
-0.0913153738,
0.020855451,
-0.1420198083,
0.2134456336,
0.1208522618,
-0.060104806,
-0.1055601239,
0.064792037,
-0.089036651,
-0.0799131393,
0.0018248645,
-0.0327110849,
0.2158912718,
0.0448190942,
0.0356357694,
0.4225836694,
0.1090575606,
-0.052354712,
0.169574976,
0.1312262714,
0.0576994047,
0.0786735639,
-0.0038994383,
0.0589623414,
-0.2611331046,
0.0690428689,
-0.088562943,
-0.0840343535,
-0.46203354,
0.2259626538,
-0.0248057805,
-0.2002502233,
-0.392552048,
0.4292556345,
-0.1183582842,
-0.0206985213,
0.2050464898,
-0.0127048744,
0.1893755645,
-0.3556746542,
0.0144591043,
0.1952512413,
-0.5921706557,
0.0633016527,
0.0456995666,
-0.1552541256,
-0.0064761755,
0.0487557538,
-0.2209916264,
0.0197526626,
-0.1579331011,
0.2981353998,
0.4279000461,
-0.0897898078,
-0.1441702545,
0.0430088453,
0.0285685007,
-0.1067303717,
0.2111122906,
0.2186040878,
0.1423525065,
0.2711952925,
0.0414087288,
0.0939133391,
-0.1085530743,
-0.1136267707,
-0.0003041226,
-0.1391507834,
0.1358142644,
-0.0325310752,
0.3364760876,
-0.1443517953,
0.1346237361,
-0.4724794924,
0.2639564574,
-0.0048690173,
0.0789877921,
-0.0003531792,
0.4330606759,
0.212147817,
0.1850802004,
-0.3109676838,
-0.103264153,
-0.0511829481,
0.180147469,
0.083006978,
-0.3254923224,
-0.3626220822,
-0.0088907257,
0.2873339057,
-0.0360436924,
0.0348480232,
0.2639264166,
-0.1477842778,
0.1388920546,
-0.0211566146,
-0.0720008835,
-0.0205897335,
-0.0253081061,
0.1436194628,
-0.0922503248,
0.4329186082,
-0.1188876629,
-0.2623589933,
0.0483898856,
-0.2049250603,
-0.1334923953,
0.1075001955,
0.0801312476,
0.3656722307,
-0.0655183569,
0.1203394234,
0.2987858951,
0.3121610284,
0.1776938885,
-0.3076854348,
0.0522704907,
0.0754823759,
-0.0292483959,
0.1495369524,
-0.1281574816,
0.3464219272,
-0.0796329528,
0.0508352891,
-0.0992205963,
0.2070186883,
0.2490616143,
0.2576342225,
-0.1731716096,
0.0004904867,
-0.287049979,
0.137906611,
0.1510299146,
-0.0820544809,
-0.5496092439,
0.2932036817,
0.3700989485,
0.0327970535,
0.3454674184,
-0.0250068866,
-0.4014434218,
-0.110582307,
0.5292950273,
0.0525183976,
0.0905277431,
0.4710193872,
-0.0126016615,
-0.2390516847,
-0.4071600437,
-0.1375521421,
0.1281999499,
0.2362998426,
0.27114591,
0.0875640661,
0.146827966,
-0.191391319,
-0.4449611604,
-0.1730957627,
-0.126228407,
0.0899346694,
-0.2430401146,
0.1468866169,
-0.1808815002,
-0.2581597269,
0.0371696539,
-0.1066882312,
0.00256742,
-0.3480190337,
0.2545682788,
0.1055139527,
-0.2233172804,
0.2132596225,
-0.0406425409,
-0.1390573829,
0.0891875625,
-0.0437627137,
-0.4960607886,
-0.2942952812,
-0.0096844397,
0.2562079132,
0.0207222141,
0.0339410417,
0.2570439577,
-0.0365064926,
0.2048764676,
-0.4996930957,
-0.3178367913,
0.0938514844,
-0.2857541442,
0.2574906647,
0.1663201749,
-0.0129057821,
-0.2927208245,
-0.2263267189,
0.2496740073,
-0.260525912,
-0.0466352105,
-0.0209558848,
-0.1518793851,
0.1266610026,
0.0478391796,
-0.1570948362,
-0.096963957,
-0.3295821548,
0.277069211,
0.2057904452,
0.0709745139,
-0.3107308745,
0.4204163551,
0.1273532361,
-0.002118543,
-0.1289889216,
-0.1200924292,
0.2234215885,
0.5940717459,
-0.2815122008,
-0.2537542284,
-0.0943996161,
-0.2281400263,
0.1199763045,
-0.0334274285,
-0.1439122111,
-0.2743971944,
-0.0952565223,
0.5558851361,
0.0151024228,
0.2108994424,
0.2947684228,
0.2981846929,
-0.235391289,
0.0143891759,
0.0349208452,
-0.0512358174,
0.1449638307,
-0.0265647918,
-0.1152962819,
0.3901531696,
-0.1239050031,
0.6111704111,
-0.4408531487,
-0.1811610758,
0.3107132912,
-0.3898287416,
0.3139989972,
-0.0590238981,
-0.0743199214,
-0.4171911478,
-0.3363458216,
0.1835570931,
0.0288896021,
-0.0978000686,
-0.0701974034,
0.0535304211,
-0.0173597448,
-0.3781405687,
-0.1496723592,
0.3706862926,
-0.382617563,
-0.0449077226,
-0.0318745524,
0.061661955,
-0.2474867105,
-0.0242294986,
0.1295417845,
-0.1503229439,
0.1282161027,
-0.1866504848,
-0.1595189571,
-0.1391902417,
-0.5074171424,
0.2244950682,
0.088345997,
-0.3453114927,
0.1501647681,
-0.2426864356,
0.0441009626,
-0.1037173644,
0.7440726161,
-0.1512458026,
-0.4287917614,
0.0065502757,
-0.1091931984,
-0.4215223193,
-0.0463162735,
-0.4652467668,
-0.0164195038,
-0.1166237667,
0.2729661465,
-0.3619235158,
-0.0509217903,
0.2919289768,
0.0509537272,
-0.170160979,
0.0673450381,
-0.2369607389,
0.0373368114,
-0.2488287836,
0.0919300988,
0.108317636,
-0.0848514438,
-0.1848135144,
-0.3347018659,
-0.1315173656,
-0.2330950499,
-0.0510706455,
0.2955830097,
0.2444737703,
-0.1521162987,
-0.0414709449,
-0.0711246133,
0.0722672194,
0.2425003946,
0.2282216549,
-0.0261797998,
-0.2925853431,
0.1497313082,
-0.1393754184,
0.3812771142,
-0.0219434407,
-0.0449751988,
0.2856174111,
-0.2105940431,
-0.0285497326,
-0.0717061758,
-0.0063277814,
0.285615027,
0.2338725477,
-0.0286579598,
-0.4190360606,
0.513784349,
0.0793267861,
-0.0663889199,
0.4169153869,
0.1874302626,
-0.1192049384,
0.4170823991,
0.291056186,
0.8528813124,
-0.3674775958,
0.1441675574,
0.2792284191,
-0.2981655002,
0.3815590441,
-0.0733483508,
0.1263207346,
-0.3640952408,
-0.0649178326,
-0.0619071499,
0.0030823098,
0.0039405609,
0.1856358498,
-0.0547005683,
0.0131366551,
0.0989298299,
0.2386175543,
-0.0860850364,
0.1927901953,
-0.0799529329,
-0.1208281592,
-0.2532429993,
0.1723968983,
0.0492233634,
-0.2195204794,
-0.1580895185,
-0.2827791274,
-0.2058537006,
-0.1249757037,
-0.0509362444,
-0.1033992618,
-0.1315757632,
0.3394503891,
-0.0046162796,
-0.5491873026,
-0.2443902493,
0.2781841755,
-0.1453274637,
-0.0514825247,
-0.0131185092,
0.0061973967,
0.1524533331,
-0.0414575301,
-0.0371628962,
-0.1098246574,
0.0374340266,
-0.0328304954,
-0.3800389767,
0.3853590488,
0.2410808057,
-0.5668441057,
0.1609780341,
-0.0169087499,
0.2184247524,
-0.2202436775,
0.1394705325,
-0.0754646286,
-0.4161066413,
-0.2774187028,
0.1953768283,
0.1262560338,
0.0463337675,
0.2286077291,
0.2153231651,
-0.0742993802,
-0.2823753357,
0.0974318683,
0.0339880139,
0.4001074135,
0.0114467889,
0.1470699459,
-0.3426955044,
-0.2413803786,
-0.0467288978,
0.3023666441,
-0.6356938481,
0.1141930372,
0.0490900874,
0.0380221754,
-0.0995163992,
0.036856737,
0.1409468949,
0.1654650867,
-0.3828512728,
0.0914215297,
-0.3278030157,
0.509962976,
0.1044448242,
0.2158037722,
0.2300738096,
-0.21735771,
0.0876061842,
0.0678537786,
-0.4121638834,
-0.2144199312,
0.067929633,
0.1426178068,
-0.0907981321,
0.0899497569,
0.0608391315,
0.0438594185,
0.2920070291,
0.105018951,
0.0492109619,
-0.3632780313,
0.0336145014,
0.0325688384,
-0.0775839314,
0.087194562,
-0.1540616304,
0.0951246098,
-0.2058447897,
-0.2835696638,
0.0083015896,
0.0809053183,
-0.1132796258,
0.0956986323,
0.5496818423,
-0.13126643,
-0.0233380329,
0.0118748639,
-0.1684228778,
0.1172574237,
-0.0229233727,
0.2631510496,
0.0754966065,
-0.0470000692,
0.1029870957,
0.1477090865,
0.0002248343,
-0.1104510948,
0.2196852714,
0.1343409717,
-0.2223712355,
-0.1797739267,
0.3855788708,
0.145597741,
0.1459495723,
-0.0591584928,
0.2067235112,
0.3235146403,
-0.4859023392,
-0.1007405668,
-0.2156101763,
-0.1383680701,
0.3315484822,
0.2487021834,
0.3619479239,
0.1890192777,
0.1776089072,
0.0943158939,
-0.0886648372,
0.048438713,
0.0201540496,
0.6003822088,
0.124089852,
0.1301894933,
0.602078557,
0.0362828597,
0.1585395634,
0.1191586107,
-0.0292070638,
0.2612558007,
0.2183486521,
-0.1731970012,
0.3991559744,
0.0464421138,
-0.1838893592,
-0.3725123703,
0.0199001059,
0.0921854526,
0.4171240926,
0.3947755098,
0.2483378202,
-0.0407499447,
-0.2025272548,
0.1162444055,
-0.207896322,
-0.0644784719,
-0.0614176095,
-0.1641443223,
-0.043622274,
0.1553642601,
-0.0065032407,
-0.230866015,
0.4870079756,
-0.1198437735,
0.1445411742,
-0.0890761465,
0.526489377,
0.0031993957,
0.1854020357,
-0.0827389508,
-0.2578557134,
-0.0145935966,
-0.1432344764,
-0.2359839231,
0.2723372579,
0.2560084164,
-0.1224137619,
-0.0381277688,
0.1001227871,
-0.0988263711,
-0.1525483131,
-0.1079178751,
-0.1098880246,
0.3089719415,
0.0051677632,
0.0478056706,
0.3477052748,
-0.2107414007,
0.1764133275,
0.0003710694,
0.0005047227,
-0.0676337704,
0.1346571594,
0.2658909857,
-0.4134854674,
-0.0095931021,
-0.0151891187,
-0.2957988083,
-0.0114336452,
0.3258180618,
-0.1867858171,
-0.194266215,
-0.2431714535,
0.1492812783,
0.0415520631,
0.3240579069,
0.2847059071,
0.3985263407,
-0.1352051347,
0.0422854982,
-0.376268059,
0.1351501942,
-0.1144200638,
-0.0440748408,
-0.1052159145,
0.2420791388,
0.2215885073,
0.269356668,
0.2978171408,
-0.1322228909,
-0.1728217453,
0.3995062411,
-0.2361764908,
0.0924456641,
-0.1232868955,
0.214040041,
0.0107210493,
-0.0861670971,
0.1957565397,
-0.1794978529,
0.2275642902,
-0.3031544685,
-0.1252720356,
0.2259434909,
0.0071533844,
0.7032318115,
-0.1147767156,
0.2997303009,
-0.2697787881,
0.1901409477,
-0.1035612971,
-0.282387495,
-0.1613537967,
0.3027569652,
0.059002623,
0.1038329974,
0.0345878564,
-0.1951785833,
-0.0299111828,
0.2045648694,
0.0181102697,
0.1058941931,
0.1295784861,
-0.0003533509,
-0.0422811061,
-0.2819918096,
-0.1773633361,
0.0588662885,
0.1037275121,
-0.2369868606,
-0.145903036,
-0.3007538617,
0.0751756728,
-0.3455226719,
-0.217293933,
-0.3983815908,
-0.0591065027,
0.6210554838,
0.1470745057,
-0.2711719871,
-0.1042650491,
0.3030770719,
0.1299691945,
-0.0202265289,
0.1612376422,
0.1881452203,
0.2072907239,
-0.2551643252,
0.0694878623,
-0.1023019105,
-0.043577835,
-0.4129002392,
-0.5805795789
] |
https://github.com/huggingface/datasets/issues/3 | [Feature] More dataset outputs | For Spark it looks to be pretty straightforward as well https://spark.apache.org/docs/latest/sql-pyspark-pandas-with-arrow.html but looks to be having a dependency to Spark is necessary, then nevermind we can skip it | Add the following dataset outputs:
- Spark
- Pandas | 28 | [Feature] More dataset outputs
Add the following dataset outputs:
- Spark
- Pandas
For Spark it looks to be pretty straightforward as well https://spark.apache.org/docs/latest/sql-pyspark-pandas-with-arrow.html but looks to be having a dependency to Spark is necessary, then nevermind we can skip it | [
-0.5538603067,
-0.1469929814,
-0.2703718543,
0.060532406,
0.2588167191,
0.1869446337,
0.2700171471,
0.4753180742,
0.0849914625,
0.1245463043,
-0.0857297108,
0.6752995253,
-0.1100905165,
0.399535805,
0.0250176676,
-0.2358332276,
-0.1084426045,
-0.0002743146,
-0.2984127402,
0.0295077842,
-0.2555410862,
0.1111406609,
0.2057297528,
0.1062297523,
-0.3432413936,
-0.0539070554,
-0.2266674936,
-0.2679170668,
0.0396039672,
-0.3622858226,
0.0098007284,
-0.0368886963,
0.0572328158,
0.242730692,
-0.0000990341,
-0.1879157573,
0.2158855498,
0.0625417307,
-0.0935504436,
-0.1431123912,
-0.0893053114,
-0.2987641692,
0.4993409812,
-0.3274194598,
-0.0017605141,
-0.2864935696,
0.0751593933,
-0.0492321849,
0.2396622151,
0.0574653558,
0.3537534177,
0.2032939345,
-0.0505122766,
-0.0931667089,
0.011724472,
-0.044365555,
-0.0704854578,
0.0733082741,
0.0989313945,
-0.0770637542,
-0.3784052432,
0.3305185139,
-0.0419839434,
-0.0166582819,
-0.0480701625,
0.0941856429,
0.1756504178,
-0.2204090059,
0.0856404677,
0.1887378544,
0.4700119495,
-0.3086573482,
-0.2739351988,
-0.286924243,
-0.1321467608,
-0.1571961492,
-0.1652585417,
0.2294097394,
0.0613916256,
0.2063028216,
0.1382098943,
-0.0838116333,
-0.2593553066,
-0.0061438442,
-0.157468006,
0.4023461044,
0.109123446,
-0.0698471963,
0.2539540231,
0.0650713667,
0.090452455,
0.0741669536,
-0.0713789538,
-0.0784914121,
-0.2035106719,
-0.2129988968,
0.0559783876,
-0.291308552,
0.0196785163,
0.1325109601,
0.134748742,
0.2045747936,
0.0218057111,
0.1224140748,
0.1788022369,
-0.265558511,
0.0724896938,
0.2539016008,
0.2871672809,
-0.2409293652,
0.1024183258,
-0.1289285123,
-0.0519945063,
-0.2499616444,
-0.0389688201,
0.0761709139,
-0.0099057332,
0.0484882332,
-0.2422316074,
-0.039120473,
0.0224280488,
-0.080641076,
-0.1209586188,
0.3000916541,
-0.0717794448,
0.0651732236,
-0.0388906002,
0.1913030446,
0.0923087075,
-0.0686772764,
-0.1064644232,
0.1821027696,
-0.0188116152,
-0.1073069274,
-0.0210038908,
0.0676508993,
0.2616624832,
0.0312226675,
-0.1493035555,
0.3017956614,
0.1890589148,
-0.0231656879,
-0.0656421781,
0.0899258703,
0.1306272298,
-0.0397867076,
0.104799591,
0.0877233446,
-0.2037498057,
-0.0406653881,
0.0616202503,
-0.284614116,
-0.5234966278,
0.3075757027,
0.0326080844,
-0.2044958472,
-0.2381453216,
0.5409140587,
-0.1498937905,
0.0261264872,
0.073621206,
0.1660896838,
0.1113574728,
-0.2901496291,
0.0518778786,
0.3494932353,
-0.6666465402,
-0.0364146382,
-0.0275492612,
0.0539662354,
-0.014002216,
-0.0442774966,
-0.1260465533,
0.0602850877,
-0.2055068612,
0.0935073122,
0.3954157233,
-0.1698444337,
0.0932529122,
0.251226902,
-0.1106656343,
-0.164651826,
0.2606687546,
0.2550144196,
0.2499961704,
0.2460158765,
-0.1078322008,
0.2227351069,
-0.1699500829,
-0.0648783967,
0.0481150635,
-0.197218731,
0.1155435368,
0.0525968373,
0.387093544,
-0.0340707079,
0.2210069597,
-0.2865004539,
0.310336113,
-0.0058453819,
0.0196933243,
0.1366246045,
0.395447731,
0.2225945294,
-0.0588594861,
-0.4964849651,
0.0338163711,
0.0449425653,
0.1493111998,
0.0796362907,
-0.2523969412,
-0.3368172348,
-0.0894296393,
0.1325582713,
0.0984068364,
0.0260066222,
0.3033662736,
-0.2732365131,
-0.0066492488,
-0.0025286949,
-0.0424775817,
0.1733340621,
0.1019581407,
0.0758346394,
-0.153186515,
0.2987890244,
-0.136487186,
-0.1301482171,
0.1363055855,
-0.1347594708,
0.011367972,
0.0759535059,
0.1194991469,
0.3512018025,
-0.0334724113,
0.1418432146,
0.4699140191,
0.3609054387,
0.1935825199,
-0.0714736134,
0.0232461989,
0.0834303722,
-0.1012846231,
0.0524639674,
-0.1680173427,
0.5050486922,
0.0285407901,
0.0658488646,
-0.0646448582,
0.2344291508,
0.3114735484,
0.1539529562,
-0.1260728091,
-0.1162483096,
-0.2289197296,
0.0588115081,
-0.1082052216,
-0.1587496847,
-0.5301883817,
0.3296276033,
0.1728729755,
0.0653065145,
0.2982242405,
-0.0369403176,
-0.2525239289,
0.0748355091,
0.5008335114,
0.2263536602,
-0.0477877147,
0.5283269882,
-0.0352787003,
-0.1022377685,
-0.2568716109,
-0.0895504802,
0.2588434815,
0.1919326633,
0.0886875764,
0.0245170258,
0.0556645505,
-0.1531889141,
-0.3598846793,
-0.2306942195,
-0.1705385894,
-0.0150525477,
-0.1025402024,
-0.0200322922,
-0.2984922528,
-0.3917219043,
0.2167875022,
-0.1473572999,
0.0638988987,
-0.3715458512,
0.1317879409,
0.2747735977,
-0.2373943627,
0.3069716394,
-0.22295627,
0.1047444791,
0.2739240229,
-0.0615650304,
-0.1887934357,
-0.1890192926,
-0.0125591103,
0.2616712749,
-0.0673961937,
0.1524404883,
0.4395677447,
0.0669551715,
0.2104681879,
-0.5713219643,
-0.2410608828,
0.0058486462,
-0.1094825044,
0.1648472697,
0.2017239481,
0.0509250648,
-0.2241851538,
-0.2447013259,
0.1638810784,
-0.137271449,
0.0477253348,
-0.0188019909,
-0.0957384408,
0.099838376,
0.0703516603,
-0.1633325219,
-0.1662694812,
-0.5500904322,
0.0828614905,
0.1865297407,
0.1722969711,
-0.3770776689,
0.2456803173,
-0.0064160959,
-0.0042386889,
-0.1589739919,
-0.1405054182,
0.1762323678,
0.5741927624,
-0.2814624012,
-0.2942429483,
0.0368867703,
-0.2076486945,
0.0857884511,
-0.1217318252,
-0.2171173543,
-0.2361733019,
-0.1228896379,
0.4963287711,
0.0257592183,
0.1940103173,
0.3538025022,
0.3066566586,
-0.193848893,
0.094741419,
-0.144615218,
0.0669935942,
0.1638545692,
0.1552443951,
-0.1388579309,
0.5101759434,
-0.0036208823,
0.3623264432,
-0.159682557,
-0.1353383064,
0.2480470836,
-0.4136277735,
0.1829378456,
0.0529923514,
-0.1954567134,
-0.4070475996,
-0.2088874876,
0.0792469904,
0.1046091691,
-0.0215934943,
0.1064469367,
-0.0426929854,
0.1092934683,
-0.4261373878,
-0.1591201127,
0.1760044396,
-0.599812448,
-0.0185942445,
-0.1473728865,
0.1710505784,
-0.4020422399,
0.1407187879,
0.1962787658,
-0.0827495307,
0.209779948,
-0.1657092273,
-0.0217232853,
0.1618665904,
-0.3959145546,
0.2811083496,
-0.0157676302,
-0.2961773276,
0.0769509301,
-0.1391290724,
-0.0845749676,
0.0637778863,
0.7977223992,
-0.094201833,
-0.3272270262,
-0.1421580464,
-0.4589717984,
-0.4927673936,
0.049179595,
-0.4003294706,
-0.1040406898,
0.0499265753,
0.2751607001,
-0.3529362679,
0.0817846432,
0.2856051028,
-0.0333224609,
-0.3227696717,
-0.1220462844,
-0.0563029833,
0.0124278963,
-0.1439657509,
0.0038631451,
0.1078341231,
0.0371837206,
-0.0827963278,
-0.4590065181,
-0.1218596548,
-0.2888572216,
0.1653407365,
0.2567784786,
0.2770819664,
-0.1532192528,
0.1080460027,
-0.0738959536,
0.1903036088,
0.181701228,
0.1720702946,
-0.0119927907,
-0.1438141167,
0.1125289723,
-0.2174851298,
0.4146214426,
0.0601012893,
-0.0197893474,
0.4138476253,
-0.1720750928,
-0.0474325903,
-0.1397333294,
-0.0289311893,
0.219426915,
0.3861896992,
0.0908283219,
-0.4624679089,
0.3850288987,
0.0525398329,
-0.0734121874,
0.2635188401,
-0.0065077385,
-0.1166540012,
0.4208480418,
0.178148061,
0.6603943706,
-0.246448487,
0.021226678,
0.2166663557,
-0.1932485849,
0.5082378387,
0.0458226241,
0.1675452441,
-0.4494051635,
-0.08823888,
-0.0032244618,
-0.0208327677,
-0.0487345532,
0.1761500984,
-0.1165791303,
0.1440373808,
0.0389281362,
0.0252572335,
-0.0963330865,
0.1879377365,
-0.0851207748,
-0.1762481034,
-0.3370994627,
0.2434592694,
-0.0363453254,
-0.2323081344,
-0.2233272344,
-0.1924234927,
-0.0084551647,
-0.0551236942,
-0.1408629566,
-0.1851429939,
-0.0445708968,
0.3750236928,
-0.0438326783,
-0.3344651759,
-0.1694513261,
0.2673596442,
-0.1261738539,
0.109248817,
0.0039807567,
-0.0005694506,
-0.0059607099,
-0.0760791749,
-0.0963568538,
0.075435698,
0.0905629322,
-0.0184681546,
-0.3136182427,
0.3293156326,
0.2190897167,
-0.5377389789,
0.1065101251,
-0.0581549183,
0.0350751057,
-0.2206357718,
-0.0327826291,
-0.125502944,
-0.2831251323,
-0.3058262169,
0.2333240062,
0.2005996704,
-0.0552860983,
0.2352710813,
0.3613858521,
0.0522262603,
-0.230964005,
0.1197607219,
-0.0991700515,
0.1457155943,
-0.0590486415,
0.2901025414,
-0.3653230667,
-0.2521645427,
-0.0394929796,
0.1479848474,
-0.2624277771,
0.1793014407,
-0.0067106104,
-0.166186586,
-0.0007606774,
-0.0954089165,
0.3354938924,
0.2000450194,
-0.2635276616,
-0.0343285128,
-0.4292805493,
0.4129948318,
-0.1874206513,
0.2908357978,
0.0477418266,
-0.166030243,
-0.1871522963,
0.0321103036,
-0.4850105941,
-0.2301728278,
-0.0357290022,
0.0593256876,
0.0069927238,
-0.0477638431,
0.0056666778,
0.0631514639,
0.3455853164,
-0.0027797327,
-0.0034310499,
-0.3484048247,
-0.0082271202,
0.0137174344,
-0.080424428,
0.1694185734,
-0.0967041999,
-0.082788296,
-0.3235597908,
-0.1857090443,
-0.0599632375,
0.277192533,
-0.1297048479,
0.1470704973,
0.429548353,
-0.3150498569,
-0.0670118481,
0.052850198,
-0.065261215,
0.2217628509,
0.0057285521,
0.2473479062,
0.0480536409,
-0.0362059474,
0.2022474706,
0.1298314035,
0.0967273861,
-0.0383807272,
0.2857318819,
0.0813596547,
-0.2511015534,
0.0581489466,
0.5268172026,
0.0920796618,
0.0782794431,
0.0456990339,
0.2018511444,
0.4354126453,
-0.5172771215,
-0.0245170519,
-0.1613010168,
-0.2021867335,
0.4359530807,
0.2774686813,
0.288675338,
0.0237154961,
-0.0110468762,
0.1545764059,
0.0888691619,
-0.0540199578,
-0.0214468427,
0.4221894443,
0.1871908456,
-0.0488417596,
0.5675743818,
0.2676725388,
0.0662399009,
0.1882765293,
0.0367022492,
0.1498597711,
0.3013269901,
-0.1763531715,
0.2299537212,
0.0140132299,
-0.0185259636,
-0.2787469625,
-0.1560725719,
-0.1053985134,
0.3894235194,
0.1704964638,
0.033648815,
-0.1212963611,
-0.1965689659,
-0.002007057,
-0.1634240448,
0.0229375549,
-0.0623773895,
-0.1905083209,
0.0014821892,
0.0027371119,
0.1688667536,
-0.2232736498,
0.3259577155,
-0.1593617499,
0.2217887342,
-0.1897017658,
0.3834524453,
-0.0696082115,
0.2390522957,
-0.1094116569,
-0.1997213066,
-0.0254956447,
-0.0693788305,
-0.1552635282,
0.3439959884,
0.1947229505,
-0.1392543912,
-0.0998405144,
0.0485639013,
-0.2059305608,
-0.1380548179,
-0.1576259136,
-0.1479860842,
0.1985812634,
-0.008696679,
0.2110638171,
0.3714939356,
-0.2656694949,
0.291420877,
0.0902618691,
0.1243374795,
-0.0337071121,
0.2203861773,
0.2795265615,
-0.3818407059,
0.0499217287,
-0.1054140106,
-0.298430413,
-0.212967217,
0.4633645713,
-0.2778488994,
-0.0615499951,
-0.0243083369,
0.2047195584,
0.0068234238,
0.0913383216,
0.2940888703,
0.2840596437,
-0.0201186594,
0.0968309045,
-0.34039253,
0.15233244,
0.0418288894,
-0.138981685,
-0.1681737155,
0.1672585756,
0.2638449669,
0.1836080849,
0.2422300279,
-0.0132133579,
-0.0441720933,
0.3362063169,
-0.3135396242,
-0.0912040621,
-0.0634545237,
0.2471348494,
-0.017458545,
-0.0245793499,
0.1253472567,
-0.1420980096,
0.2855965495,
-0.1601233631,
0.0010202681,
0.097610563,
-0.0884985179,
0.3796853721,
0.0489384048,
0.3516633213,
-0.339368999,
0.2192281783,
-0.0766994581,
-0.2807762623,
-0.1411433816,
0.1555172056,
0.1545362622,
0.1638949513,
0.112981014,
-0.2505368888,
-0.083179839,
0.1967106014,
0.0114987763,
-0.1834107786,
-0.0000353164,
0.2110733241,
-0.0429030918,
-0.1575334221,
-0.1589935571,
0.1991968155,
0.0546980426,
-0.0331355035,
0.0876630694,
-0.2895199358,
0.0712423176,
-0.2618826032,
-0.334638983,
-0.2955848277,
0.0571168661,
0.4148206413,
0.2260581404,
-0.0717806816,
-0.1028657034,
0.2282876521,
-0.0454058088,
-0.0539884083,
0.2059535831,
0.0364881866,
0.0366007946,
-0.1425172538,
0.0098954896,
0.0355809405,
-0.0189329684,
-0.330278337,
-0.4358123243
] |
https://github.com/huggingface/datasets/issues/2 | Issue to read a local dataset | Ok, there are some news, most good than bad :laughing:
The dataset script now became:
```python
import csv
import nlp
class Bbc(nlp.GeneratorBasedBuilder):
VERSION = nlp.Version("1.0.0")
def __init__(self, **config):
self.train = config.pop("train", None)
self.validation = config.pop("validation", None)
super(Bbc, self).__init__(**config)
def _info(self):
return nlp.DatasetInfo(builder=self, description="bla", features=nlp.features.FeaturesDict({"id": nlp.int32, "text": nlp.string, "label": nlp.string}))
def _split_generators(self, dl_manager):
return [nlp.SplitGenerator(name=nlp.Split.TRAIN, gen_kwargs={"filepath": self.train}),
nlp.SplitGenerator(name=nlp.Split.VALIDATION, gen_kwargs={"filepath": self.validation})]
def _generate_examples(self, filepath):
with open(filepath) as f:
reader = csv.reader(f, delimiter=',', quotechar="\"")
lines = list(reader)[1:]
for idx, line in enumerate(lines):
yield idx, {"id": idx, "text": line[1], "label": line[0]}
```
And the dataset folder becomes:
```
.
├── bbc
│ ├── bbc.py
│ └── data
│ ├── test.csv
│ └── train.csv
```
I can load the dataset by using the keywords arguments like this:
```python
import nlp
dataset = nlp.load("bbc", builder_kwargs={"train": "bbc/data/train.csv", "validation": "bbc/data/test.csv"})
```
That was the good part ^^ Because it took me some time to understand that the script itself is put in cache in `datasets/src/nlp/datasets/some-hash/bbc.py` which is very difficult to discover without checking the source code. It means that doesn't matter the changes you do to your original script it is taken into account. I think instead of doing a hash on the name (I suppose it is the name), a hash on the content of the script itself should be a better solution.
Then by diving a bit in the code I found the `force_reload` parameter [here](https://github.com/huggingface/datasets/blob/master/src/nlp/load.py#L50) but the call of this `load_dataset` method is done with the `builder_kwargs` as seen [here](https://github.com/huggingface/datasets/blob/master/src/nlp/load.py#L166) which is ok until the call to the builder is done as the builder do not have this `force_reload` parameter. To show as example, the previous load becomes:
```python
import nlp
dataset = nlp.load("bbc", builder_kwargs={"train": "bbc/data/train.csv", "validation": "bbc/data/test.csv", "force_reload": True})
```
Raises
```
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/jplu/dev/jplu/datasets/src/nlp/load.py", line 283, in load
dbuilder: DatasetBuilder = builder(path, name, data_dir=data_dir, **builder_kwargs)
File "/home/jplu/dev/jplu/datasets/src/nlp/load.py", line 170, in builder
builder_instance = builder_cls(**builder_kwargs)
File "/home/jplu/dev/jplu/datasets/src/nlp/datasets/84d638d2a8ca919d1021a554e741766f50679dc6553d5a0612b6094311babd39/bbc.py", line 12, in __init__
super(Bbc, self).__init__(**config)
TypeError: __init__() got an unexpected keyword argument 'force_reload'
```
So yes the cache is refreshed with the new script but then raises this error. | Hello,
As proposed by @thomwolf, I open an issue to explain what I'm trying to do without success. What I want to do is to create and load a local dataset, the script I have done is the following:
```python
import os
import csv
import nlp
class BbcConfig(nlp.BuilderConfig):
def __init__(self, **kwargs):
super(BbcConfig, self).__init__(**kwargs)
class Bbc(nlp.GeneratorBasedBuilder):
_DIR = "./data"
_DEV_FILE = "test.csv"
_TRAINING_FILE = "train.csv"
BUILDER_CONFIGS = [BbcConfig(name="bbc", version=nlp.Version("1.0.0"))]
def _info(self):
return nlp.DatasetInfo(builder=self, features=nlp.features.FeaturesDict({"id": nlp.string, "text": nlp.string, "label": nlp.string}))
def _split_generators(self, dl_manager):
files = {"train": os.path.join(self._DIR, self._TRAINING_FILE), "dev": os.path.join(self._DIR, self._DEV_FILE)}
return [nlp.SplitGenerator(name=nlp.Split.TRAIN, gen_kwargs={"filepath": files["train"]}),
nlp.SplitGenerator(name=nlp.Split.VALIDATION, gen_kwargs={"filepath": files["dev"]})]
def _generate_examples(self, filepath):
with open(filepath) as f:
reader = csv.reader(f, delimiter=',', quotechar="\"")
lines = list(reader)[1:]
for idx, line in enumerate(lines):
yield idx, {"idx": idx, "text": line[1], "label": line[0]}
```
The dataset is attached to this issue as well:
[data.zip](https://github.com/huggingface/datasets/files/4476928/data.zip)
Now the steps to reproduce what I would like to do:
1. unzip data locally (I know the nlp lib can detect and extract archives but I want to reduce and facilitate the reproduction as much as possible)
2. create the `bbc.py` script as above at the same location than the unziped `data` folder.
Now I try to load the dataset in three different ways and none works, the first one with the name of the dataset like I would do with TFDS:
```python
import nlp
from bbc import Bbc
dataset = nlp.load("bbc")
```
I get:
```
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/opt/anaconda3/envs/transformers/lib/python3.7/site-packages/nlp/load.py", line 280, in load
dbuilder: DatasetBuilder = builder(path, name, data_dir=data_dir, **builder_kwargs)
File "/opt/anaconda3/envs/transformers/lib/python3.7/site-packages/nlp/load.py", line 166, in builder
builder_cls = load_dataset(path, name=name, **builder_kwargs)
File "/opt/anaconda3/envs/transformers/lib/python3.7/site-packages/nlp/load.py", line 88, in load_dataset
local_files_only=local_files_only,
File "/opt/anaconda3/envs/transformers/lib/python3.7/site-packages/nlp/utils/file_utils.py", line 214, in cached_path
if not is_zipfile(output_path) and not tarfile.is_tarfile(output_path):
File "/opt/anaconda3/envs/transformers/lib/python3.7/zipfile.py", line 203, in is_zipfile
with open(filename, "rb") as fp:
TypeError: expected str, bytes or os.PathLike object, not NoneType
```
But @thomwolf told me that no need to import the script, just put the path of it, then I tried three different way to do:
```python
import nlp
dataset = nlp.load("bbc.py")
```
And
```python
import nlp
dataset = nlp.load("./bbc.py")
```
And
```python
import nlp
dataset = nlp.load("/absolute/path/to/bbc.py")
```
These three ways gives me:
```
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/opt/anaconda3/envs/transformers/lib/python3.7/site-packages/nlp/load.py", line 280, in load
dbuilder: DatasetBuilder = builder(path, name, data_dir=data_dir, **builder_kwargs)
File "/opt/anaconda3/envs/transformers/lib/python3.7/site-packages/nlp/load.py", line 166, in builder
builder_cls = load_dataset(path, name=name, **builder_kwargs)
File "/opt/anaconda3/envs/transformers/lib/python3.7/site-packages/nlp/load.py", line 124, in load_dataset
dataset_module = importlib.import_module(module_path)
File "/opt/anaconda3/envs/transformers/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 965, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'nlp.datasets.2fd72627d92c328b3e9c4a3bf7ec932c48083caca09230cebe4c618da6e93688.bbc'
```
Any idea of what I'm missing? or I might have spot a bug :) | 353 | Issue to read a local dataset
Hello,
As proposed by @thomwolf, I open an issue to explain what I'm trying to do without success. What I want to do is to create and load a local dataset, the script I have done is the following:
```python
import os
import csv
import nlp
class BbcConfig(nlp.BuilderConfig):
def __init__(self, **kwargs):
super(BbcConfig, self).__init__(**kwargs)
class Bbc(nlp.GeneratorBasedBuilder):
_DIR = "./data"
_DEV_FILE = "test.csv"
_TRAINING_FILE = "train.csv"
BUILDER_CONFIGS = [BbcConfig(name="bbc", version=nlp.Version("1.0.0"))]
def _info(self):
return nlp.DatasetInfo(builder=self, features=nlp.features.FeaturesDict({"id": nlp.string, "text": nlp.string, "label": nlp.string}))
def _split_generators(self, dl_manager):
files = {"train": os.path.join(self._DIR, self._TRAINING_FILE), "dev": os.path.join(self._DIR, self._DEV_FILE)}
return [nlp.SplitGenerator(name=nlp.Split.TRAIN, gen_kwargs={"filepath": files["train"]}),
nlp.SplitGenerator(name=nlp.Split.VALIDATION, gen_kwargs={"filepath": files["dev"]})]
def _generate_examples(self, filepath):
with open(filepath) as f:
reader = csv.reader(f, delimiter=',', quotechar="\"")
lines = list(reader)[1:]
for idx, line in enumerate(lines):
yield idx, {"idx": idx, "text": line[1], "label": line[0]}
```
The dataset is attached to this issue as well:
[data.zip](https://github.com/huggingface/datasets/files/4476928/data.zip)
Now the steps to reproduce what I would like to do:
1. unzip data locally (I know the nlp lib can detect and extract archives but I want to reduce and facilitate the reproduction as much as possible)
2. create the `bbc.py` script as above at the same location than the unziped `data` folder.
Now I try to load the dataset in three different ways and none works, the first one with the name of the dataset like I would do with TFDS:
```python
import nlp
from bbc import Bbc
dataset = nlp.load("bbc")
```
I get:
```
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/opt/anaconda3/envs/transformers/lib/python3.7/site-packages/nlp/load.py", line 280, in load
dbuilder: DatasetBuilder = builder(path, name, data_dir=data_dir, **builder_kwargs)
File "/opt/anaconda3/envs/transformers/lib/python3.7/site-packages/nlp/load.py", line 166, in builder
builder_cls = load_dataset(path, name=name, **builder_kwargs)
File "/opt/anaconda3/envs/transformers/lib/python3.7/site-packages/nlp/load.py", line 88, in load_dataset
local_files_only=local_files_only,
File "/opt/anaconda3/envs/transformers/lib/python3.7/site-packages/nlp/utils/file_utils.py", line 214, in cached_path
if not is_zipfile(output_path) and not tarfile.is_tarfile(output_path):
File "/opt/anaconda3/envs/transformers/lib/python3.7/zipfile.py", line 203, in is_zipfile
with open(filename, "rb") as fp:
TypeError: expected str, bytes or os.PathLike object, not NoneType
```
But @thomwolf told me that no need to import the script, just put the path of it, then I tried three different way to do:
```python
import nlp
dataset = nlp.load("bbc.py")
```
And
```python
import nlp
dataset = nlp.load("./bbc.py")
```
And
```python
import nlp
dataset = nlp.load("/absolute/path/to/bbc.py")
```
These three ways gives me:
```
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/opt/anaconda3/envs/transformers/lib/python3.7/site-packages/nlp/load.py", line 280, in load
dbuilder: DatasetBuilder = builder(path, name, data_dir=data_dir, **builder_kwargs)
File "/opt/anaconda3/envs/transformers/lib/python3.7/site-packages/nlp/load.py", line 166, in builder
builder_cls = load_dataset(path, name=name, **builder_kwargs)
File "/opt/anaconda3/envs/transformers/lib/python3.7/site-packages/nlp/load.py", line 124, in load_dataset
dataset_module = importlib.import_module(module_path)
File "/opt/anaconda3/envs/transformers/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 965, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'nlp.datasets.2fd72627d92c328b3e9c4a3bf7ec932c48083caca09230cebe4c618da6e93688.bbc'
```
Any idea of what I'm missing? or I might have spot a bug :)
Ok, there are some news, most good than bad :laughing:
The dataset script now became:
```python
import csv
import nlp
class Bbc(nlp.GeneratorBasedBuilder):
VERSION = nlp.Version("1.0.0")
def __init__(self, **config):
self.train = config.pop("train", None)
self.validation = config.pop("validation", None)
super(Bbc, self).__init__(**config)
def _info(self):
return nlp.DatasetInfo(builder=self, description="bla", features=nlp.features.FeaturesDict({"id": nlp.int32, "text": nlp.string, "label": nlp.string}))
def _split_generators(self, dl_manager):
return [nlp.SplitGenerator(name=nlp.Split.TRAIN, gen_kwargs={"filepath": self.train}),
nlp.SplitGenerator(name=nlp.Split.VALIDATION, gen_kwargs={"filepath": self.validation})]
def _generate_examples(self, filepath):
with open(filepath) as f:
reader = csv.reader(f, delimiter=',', quotechar="\"")
lines = list(reader)[1:]
for idx, line in enumerate(lines):
yield idx, {"id": idx, "text": line[1], "label": line[0]}
```
And the dataset folder becomes:
```
.
├── bbc
│ ├── bbc.py
│ └── data
│ ├── test.csv
│ └── train.csv
```
I can load the dataset by using the keywords arguments like this:
```python
import nlp
dataset = nlp.load("bbc", builder_kwargs={"train": "bbc/data/train.csv", "validation": "bbc/data/test.csv"})
```
That was the good part ^^ Because it took me some time to understand that the script itself is put in cache in `datasets/src/nlp/datasets/some-hash/bbc.py` which is very difficult to discover without checking the source code. It means that doesn't matter the changes you do to your original script it is taken into account. I think instead of doing a hash on the name (I suppose it is the name), a hash on the content of the script itself should be a better solution.
Then by diving a bit in the code I found the `force_reload` parameter [here](https://github.com/huggingface/datasets/blob/master/src/nlp/load.py#L50) but the call of this `load_dataset` method is done with the `builder_kwargs` as seen [here](https://github.com/huggingface/datasets/blob/master/src/nlp/load.py#L166) which is ok until the call to the builder is done as the builder do not have this `force_reload` parameter. To show as example, the previous load becomes:
```python
import nlp
dataset = nlp.load("bbc", builder_kwargs={"train": "bbc/data/train.csv", "validation": "bbc/data/test.csv", "force_reload": True})
```
Raises
```
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/jplu/dev/jplu/datasets/src/nlp/load.py", line 283, in load
dbuilder: DatasetBuilder = builder(path, name, data_dir=data_dir, **builder_kwargs)
File "/home/jplu/dev/jplu/datasets/src/nlp/load.py", line 170, in builder
builder_instance = builder_cls(**builder_kwargs)
File "/home/jplu/dev/jplu/datasets/src/nlp/datasets/84d638d2a8ca919d1021a554e741766f50679dc6553d5a0612b6094311babd39/bbc.py", line 12, in __init__
super(Bbc, self).__init__(**config)
TypeError: __init__() got an unexpected keyword argument 'force_reload'
```
So yes the cache is refreshed with the new script but then raises this error. | [
-0.271961689,
0.1254661232,
-0.0766851977,
0.2568113208,
0.3318960369,
0.0312694162,
0.2642412484,
0.3003318012,
0.3266818225,
0.2098685652,
0.1191099212,
0.2447595596,
-0.2942000926,
0.122020781,
0.1568033695,
-0.1723629832,
-0.1275068969,
0.3326410651,
0.1501984596,
-0.3661574423,
-0.2760430574,
0.1413950473,
-0.1191337034,
0.1533623487,
-0.2043230832,
0.0607060231,
-0.0366457291,
0.4012749791,
-0.2069402486,
-0.2449603379,
0.189446941,
0.0119974166,
0.2054081112,
0.1224095598,
-0.0001004647,
0.1904103011,
0.2995988131,
0.0436599851,
-0.1575903445,
-0.3649295568,
-0.05874715,
-0.3323359787,
0.2688181102,
-0.3986444771,
-0.3326912224,
-0.1401538253,
0.0905133635,
-0.4378165305,
0.4685542285,
0.3634627759,
0.3068140149,
0.1048853621,
-0.0699260533,
0.146365419,
0.1952122599,
0.1521473378,
-0.087304987,
0.2656305432,
0.0319154933,
-0.2012286633,
-0.1960861236,
0.1223725677,
-0.222295627,
0.0449409597,
0.2718259096,
0.1370851547,
0.1820528209,
-0.1032302082,
-0.0327711515,
-0.001834605,
0.376916647,
-0.249201104,
-0.2248519808,
-0.1355940253,
0.0572932251,
-0.2591863573,
0.0394321345,
0.3424645364,
-0.3498964608,
0.3455860615,
-0.2791965604,
0.1082819104,
-0.3008818328,
0.2382964492,
0.1193012372,
0.3104303777,
-0.0768899918,
0.1048836708,
0.0907402933,
0.2240545303,
0.1786537021,
-0.1133792177,
0.2185332924,
0.2561585009,
-0.0302852988,
0.0967433304,
0.3372042477,
0.0830670595,
-0.0235991925,
-0.0186837595,
0.1047984138,
0.0249036551,
0.0130939418,
0.3297558427,
0.1096324399,
0.1400411725,
0.1735097468,
0.0876803622,
0.0717137903,
-0.062279392,
-0.20976834,
0.0256421305,
-0.1461680979,
-0.2834391296,
0.0297456924,
0.2404008359,
0.4468614459,
-0.1885110438,
-0.1420502216,
0.2193933874,
-0.2050480247,
-0.0884668902,
0.1696828753,
0.4059307575,
-0.0357790142,
0.2412725687,
0.1384446621,
0.0997358337,
-0.3508430719,
-0.1973963976,
-0.3274969459,
-0.0029658538,
-0.2937142849,
-0.0887343735,
0.3137898743,
0.0290608834,
0.3492821753,
-0.0983312577,
-0.2490222007,
-0.0062913876,
0.1585660279,
-0.2560243607,
0.1404401064,
0.138631925,
0.0651842356,
0.0348210335,
0.2272037715,
-0.4230361581,
-0.1299739033,
0.216541633,
0.0924715251,
-0.4230500758,
-0.1779254824,
0.3226447999,
-0.0838611349,
0.1769315749,
0.1805747449,
0.1790372282,
0.1407808065,
-0.0362492763,
-0.2524119318,
-0.021590041,
-0.4596057236,
-0.2430504113,
0.2107184678,
0.3516463637,
-0.4640028775,
0.0853263289,
-0.1640366912,
-0.1117870584,
0.3510993421,
0.2487839907,
-0.3300902843,
0.4454451799,
-0.101736024,
0.1409198046,
0.6580391526,
-0.3004139662,
-0.3807194233,
0.6322370172,
-0.3527040184,
-0.1465917528,
0.0498829782,
0.0073252283,
-0.0018454761,
0.2033673078,
0.2166674733,
0.3950746357,
-0.1738851666,
0.1002998352,
-0.4054657519,
-0.1520864815,
0.1437029839,
0.1029602885,
-0.0783377141,
0.1322499663,
0.1525423825,
-0.0517456718,
0.4970274568,
-0.138927862,
0.1745274961,
0.3185681999,
0.2489014268,
-0.008944137,
-0.1572513729,
-0.0782214478,
-0.2163549513,
0.0472731479,
-0.1540115923,
-0.0111838914,
-0.1268219054,
-0.1966492087,
-0.3752777874,
0.102470167,
-0.416154176,
-0.0244456977,
0.2532123625,
0.2463393807,
0.0947188959,
0.009241553,
-0.0782994926,
-0.1027995124,
-0.1485023946,
-0.2201791853,
-0.3223360479,
0.2954412103,
-0.3488664329,
-0.1378358603,
0.1312767863,
0.3829960227,
0.1777833253,
-0.1002678946,
-0.0520529598,
0.2365419865,
-0.0244585611,
0.0325129069,
0.0145482356,
-0.1853817552,
-0.0120613398,
-0.2796402872,
0.1465236247,
0.0235883202,
0.3483983576,
0.0077596707,
-0.3682602644,
0.3775373697,
-0.0371983647,
0.0586498529,
-0.0751952752,
-0.0948599428,
0.3058989346,
-0.2762517631,
-0.0493954197,
-0.0236396436,
0.2183712572,
0.0369678959,
0.1693605483,
0.0412955582,
-0.3924957216,
0.0471647643,
0.3549180031,
-0.0725369155,
-0.173110202,
0.0018171248,
0.0174869113,
-0.0824427679,
0.1646268964,
0.2774142623,
0.3839056492,
0.2610783279,
0.066232875,
0.1700645983,
-0.2135237455,
-0.183110863,
-0.0547694489,
-0.0941863209,
-0.0275942553,
0.3564701974,
0.1723605543,
-0.1707369238,
-0.3508791924,
0.0280964896,
0.1553041935,
0.365197897,
-0.1970969439,
0.2237508297,
-0.2249523401,
-0.2432209104,
-0.3664652705,
-0.0820037201,
0.0938911363,
-0.3452373743,
-0.1890167892,
0.197851941,
-0.107149221,
-0.1096805781,
-0.1519419551,
-0.0034871253,
0.0685044825,
-0.1828072518,
0.0319251195,
-0.297262311,
-0.4607278407,
0.1170992926,
0.3691140711,
0.3623127341,
0.4312876761,
0.0150137367,
-0.1073619351,
0.0393666364,
-0.0697978362,
0.076720953,
-0.1008956507,
0.4542247653,
-0.0569394864,
0.0416783318,
-0.2283504456,
-0.4602436423,
0.5433729291,
-0.0930565894,
-0.1630838662,
0.0036413239,
0.1127770543,
-0.2605373859,
-0.2423969358,
-0.5966647863,
-0.3765790164,
-0.377520144,
0.2393841594,
0.2145242393,
0.2878387868,
0.3024252057,
0.0545425601,
0.2275841981,
0.2486262321,
0.022036897,
-0.1577893198,
-0.2745800316,
0.1092551053,
-0.3437812924,
-0.3863988519,
-0.0418256782,
-0.2934793532,
0.2532536685,
-0.1771196723,
-0.505372107,
0.1061595827,
-0.2085332572,
0.1759869605,
0.1183273345,
-0.075683549,
0.3462192118,
0.0716120377,
-0.0953158066,
-0.1507953852,
-0.1724996716,
0.1742012799,
0.0590064749,
0.0601393022,
0.0603191853,
0.2799822986,
-0.1291004419,
0.4796224236,
0.0056984103,
0.0647448674,
0.2293584347,
-0.1257219613,
0.0351174809,
-0.0269690808,
-0.5060184002,
0.0983491838,
0.1094465554,
-0.3240751326,
0.2393594384,
-0.0309577435,
-0.3329504132,
-0.2473927736,
0.0161874145,
-0.5706440806,
-0.3236040175,
0.0986714289,
-0.0077604256,
0.1682424396,
0.0484662987,
-0.0216585919,
-0.19728598,
-0.0092987111,
-0.1825923026,
0.2409343719,
0.0875303298,
0.0187798403,
-0.3264674246,
-0.0633295104,
-0.5391076803,
0.1027070284,
0.0346255898,
0.3136317432,
-0.1360365748,
-0.1588586867,
0.2374023497,
-0.1259418726,
0.355168432,
-0.1997643113,
0.1949020922,
0.2806989849,
0.0566504672,
-0.2779285312,
0.0598577149,
-0.082807906,
0.1944078058,
0.0551684164,
0.1930948943,
-0.0358044654,
-0.2404816002,
0.3322657645,
0.0861656815,
-0.3055276871,
-0.411495775,
-0.155119434,
-0.2620899677,
-0.1998127848,
-0.0636808202,
-0.2033233792,
0.3930028379,
-0.008745756,
-0.0178830102,
0.0776314959,
0.0366085768,
0.1659791172,
0.0659315363,
0.1444854736,
0.1646542847,
0.1758184284,
0.0877506211,
0.428834945,
-0.1880308241,
0.6513575315,
-0.07449238,
-0.1693410277,
0.0129823284,
-0.1879098564,
0.2662379146,
0.2502309084,
-0.1011858806,
-0.2100190818,
0.166636005,
-0.1118043661,
-0.1770980358,
0.3948363066,
0.1075217873,
-0.1158340201,
-0.0676744357,
-0.5222007036,
0.3811994493,
-0.114735119,
-0.0565007292,
-0.0064785327,
-0.1909908056,
-0.1881239563,
0.5036739707,
0.1323153675,
0.8643971682,
-0.1980929673,
0.0349103659,
0.4668905735,
0.0077845841,
0.1646996289,
-0.1840791106,
0.2341463119,
-0.570138216,
0.019398436,
0.0076869335,
-0.0287061408,
0.1016460955,
0.2519912124,
-0.0923879892,
0.0385434404,
0.1525755525,
-0.1554612368,
-0.1020385697,
0.2830421329,
0.0544175655,
-0.1383445561,
-0.3233304322,
0.2222986817,
-0.0313627422,
0.1917643994,
0.0116049992,
-0.2589570582,
-0.1316406429,
-0.1493984312,
0.0529660508,
0.1751307845,
-0.1544433236,
-0.0379617736,
-0.0486807339,
-0.3220744729,
0.0414557345,
0.3110917807,
0.153746888,
0.2356784195,
-0.2747210264,
-0.1066583768,
-0.0653962418,
-0.1012916788,
-0.1185327768,
0.0051975045,
0.1416033804,
0.0174177997,
-0.4252745509,
-0.0209826306,
-0.0953731015,
-0.1059340015,
0.128332004,
0.1576503366,
0.2031960338,
-0.3334442973,
-0.4064559042,
0.047722619,
-0.1087375954,
-0.060051661,
0.227812767,
-0.0217112973,
-0.1207552925,
-0.1074451804,
0.0386741944,
-0.2580273151,
0.0760375634,
0.3284547031,
0.2618005574,
0.1757756025,
0.3383726478,
0.1642872095,
-0.0343140066,
-0.3920806348,
-0.0356168672,
0.0704317465,
-0.2614104152,
-0.1708100289,
0.1431284845,
0.0959376022,
0.2589939833,
0.3358263969,
0.0868118554,
0.0314115062,
-0.026418943,
-0.4197936356,
-0.4787347913,
-0.1564756334,
-0.0960421115,
0.2361434251,
0.3992725909,
0.3505228162,
0.0761039332,
0.1712293029,
-0.4348986447,
-0.1582424194,
-0.3672049344,
0.09724278,
0.1091152728,
-0.1289700568,
0.0431214646,
-0.0544743203,
0.231937632,
-0.0266496371,
-0.1715814024,
-0.351231277,
0.0337689966,
0.0571923815,
0.1569817066,
-0.1603882611,
-0.1263563931,
-0.1384025812,
-0.0374558046,
-0.0434974618,
-0.0566053204,
0.1242899671,
-0.066867955,
0.4345207214,
-0.009828276,
0.1701685339,
-0.0747042671,
0.0009314382,
-0.2399916649,
0.1899889708,
-0.0329512767,
0.042324625,
0.1744866967,
-0.0874912366,
-0.1508780122,
-0.0646028519,
-0.0523427054,
0.3434986174,
0.4014252424,
-0.313248992,
-0.0029766897,
0.1609407961,
0.3720912933,
0.1368872374,
-0.06679032,
0.1870813966,
0.3331492543,
0.3209902346,
-0.2170784622,
-0.0078464616,
0.176823169,
0.0243659429,
0.1571125835,
0.2079402059,
0.1602824926,
-0.1185155883,
-0.0839414671,
0.0089580249,
0.2199585885,
0.026943339,
-0.1726029366,
0.5578837991,
-0.1069679409,
0.0147088561,
0.015359709,
0.2626159489,
0.150347665,
0.3625153005,
0.0332685225,
-0.0691112801,
-0.0515282154,
0.3558599055,
-0.24515374,
-0.4928424954,
0.2119536698,
0.1049969196,
-0.1381625086,
0.0064496389,
-0.1462259144,
0.2908703387,
0.0504664332,
-0.0450467207,
-0.058693774,
0.4341705739,
-0.2295294255,
-0.1355333924,
-0.4413934946,
-0.072062768,
-0.298684299,
-0.0694366619,
0.0210932028,
0.143849656,
-0.0314354971,
0.0074019781,
-0.0485218316,
-0.1798207611,
0.1309194416,
0.2044498026,
-0.1366576999,
-0.3524979651,
0.3145771325,
0.1482192725,
0.1692371964,
-0.1363147646,
0.1530728489,
0.2172754705,
0.4162556231,
-0.1909389794,
0.0166430958,
-0.1435082406,
-0.1691755205,
-0.3510361016,
0.2251786143,
0.0193293914,
0.3033942878,
0.5757570863,
0.2563101947,
-0.1848144233,
0.2783586681,
0.1571855396,
0.0825568363,
0.0694975033,
0.2987569571,
0.15718925,
-0.1272758394,
-0.2587656081,
-0.1263579428,
-0.482509464,
-0.0734841153,
0.337828815,
0.0948292911,
0.5023239255,
-0.2306266576,
0.1396727413,
-0.12460915,
0.4588421583,
0.2693643868,
0.168547824,
-0.4026034176,
-0.2152404785,
-0.5258612037,
0.0776552781,
-0.0867537484,
-0.2213983238,
-0.0802539289,
0.2547660768,
0.0406549796,
0.1811078489,
-0.5375033021,
0.1512549371,
-0.1450659335,
0.2304360121,
-0.0383697636,
-0.1621063203,
-0.1003011093,
-0.0384931788,
-0.0739432797,
-0.4356856048,
0.1343758255,
-0.1064989194,
0.2026228607,
-0.2383626848,
0.0076442431,
-0.0351860151,
0.0809182003,
0.033377286,
0.2150259316,
0.3726360202,
-0.2444088757,
0.2414366007,
-0.212580204,
0.0813361332,
-0.2655959129,
0.1747842729,
0.138896808,
0.5628279448,
-0.2568780184,
0.2340293378,
-0.3165407181,
0.0263360925,
0.0514675826,
0.0794782713,
-0.0276822783,
0.1196672246,
-0.3101904094,
0.1019593626,
0.1867545545,
0.158185333,
0.0220817365,
0.1333450228,
-0.2682807446,
-0.2907095551,
0.4097489715,
-0.2822918594,
-0.2055119127,
0.1762141585,
0.1532309502,
-0.0029167582,
-0.04028574,
-0.4433353841,
0.025486473,
0.3729542196,
-0.1966754645,
0.0635943189,
0.2106605917,
0.063840352,
0.0155625036,
-0.024085125,
-0.1181436405,
0.1259867251,
-0.0181904621,
-0.1313413233,
-0.2844592929
] |
https://github.com/huggingface/datasets/issues/2 | Issue to read a local dataset | Ok great, so as discussed today, let's:
- have a main dataset directory inside the lib with sub-directories hashed by the content of the file
- keep a cache for downloading the scripts from S3 for now
- later: add methods to list and clean the local versions of the datasets (and the distant versions on S3 as well)
Side question: do you often use `builder_kwargs` for other things than supplying file paths? I was thinking about having a more easy to read and remember `data_files` argument maybe. | Hello,
As proposed by @thomwolf, I open an issue to explain what I'm trying to do without success. What I want to do is to create and load a local dataset, the script I have done is the following:
```python
import os
import csv
import nlp
class BbcConfig(nlp.BuilderConfig):
def __init__(self, **kwargs):
super(BbcConfig, self).__init__(**kwargs)
class Bbc(nlp.GeneratorBasedBuilder):
_DIR = "./data"
_DEV_FILE = "test.csv"
_TRAINING_FILE = "train.csv"
BUILDER_CONFIGS = [BbcConfig(name="bbc", version=nlp.Version("1.0.0"))]
def _info(self):
return nlp.DatasetInfo(builder=self, features=nlp.features.FeaturesDict({"id": nlp.string, "text": nlp.string, "label": nlp.string}))
def _split_generators(self, dl_manager):
files = {"train": os.path.join(self._DIR, self._TRAINING_FILE), "dev": os.path.join(self._DIR, self._DEV_FILE)}
return [nlp.SplitGenerator(name=nlp.Split.TRAIN, gen_kwargs={"filepath": files["train"]}),
nlp.SplitGenerator(name=nlp.Split.VALIDATION, gen_kwargs={"filepath": files["dev"]})]
def _generate_examples(self, filepath):
with open(filepath) as f:
reader = csv.reader(f, delimiter=',', quotechar="\"")
lines = list(reader)[1:]
for idx, line in enumerate(lines):
yield idx, {"idx": idx, "text": line[1], "label": line[0]}
```
The dataset is attached to this issue as well:
[data.zip](https://github.com/huggingface/datasets/files/4476928/data.zip)
Now the steps to reproduce what I would like to do:
1. unzip data locally (I know the nlp lib can detect and extract archives but I want to reduce and facilitate the reproduction as much as possible)
2. create the `bbc.py` script as above at the same location than the unziped `data` folder.
Now I try to load the dataset in three different ways and none works, the first one with the name of the dataset like I would do with TFDS:
```python
import nlp
from bbc import Bbc
dataset = nlp.load("bbc")
```
I get:
```
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/opt/anaconda3/envs/transformers/lib/python3.7/site-packages/nlp/load.py", line 280, in load
dbuilder: DatasetBuilder = builder(path, name, data_dir=data_dir, **builder_kwargs)
File "/opt/anaconda3/envs/transformers/lib/python3.7/site-packages/nlp/load.py", line 166, in builder
builder_cls = load_dataset(path, name=name, **builder_kwargs)
File "/opt/anaconda3/envs/transformers/lib/python3.7/site-packages/nlp/load.py", line 88, in load_dataset
local_files_only=local_files_only,
File "/opt/anaconda3/envs/transformers/lib/python3.7/site-packages/nlp/utils/file_utils.py", line 214, in cached_path
if not is_zipfile(output_path) and not tarfile.is_tarfile(output_path):
File "/opt/anaconda3/envs/transformers/lib/python3.7/zipfile.py", line 203, in is_zipfile
with open(filename, "rb") as fp:
TypeError: expected str, bytes or os.PathLike object, not NoneType
```
But @thomwolf told me that no need to import the script, just put the path of it, then I tried three different way to do:
```python
import nlp
dataset = nlp.load("bbc.py")
```
And
```python
import nlp
dataset = nlp.load("./bbc.py")
```
And
```python
import nlp
dataset = nlp.load("/absolute/path/to/bbc.py")
```
These three ways gives me:
```
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/opt/anaconda3/envs/transformers/lib/python3.7/site-packages/nlp/load.py", line 280, in load
dbuilder: DatasetBuilder = builder(path, name, data_dir=data_dir, **builder_kwargs)
File "/opt/anaconda3/envs/transformers/lib/python3.7/site-packages/nlp/load.py", line 166, in builder
builder_cls = load_dataset(path, name=name, **builder_kwargs)
File "/opt/anaconda3/envs/transformers/lib/python3.7/site-packages/nlp/load.py", line 124, in load_dataset
dataset_module = importlib.import_module(module_path)
File "/opt/anaconda3/envs/transformers/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 965, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'nlp.datasets.2fd72627d92c328b3e9c4a3bf7ec932c48083caca09230cebe4c618da6e93688.bbc'
```
Any idea of what I'm missing? or I might have spot a bug :) | 88 | Issue to read a local dataset
Hello,
As proposed by @thomwolf, I open an issue to explain what I'm trying to do without success. What I want to do is to create and load a local dataset, the script I have done is the following:
```python
import os
import csv
import nlp
class BbcConfig(nlp.BuilderConfig):
def __init__(self, **kwargs):
super(BbcConfig, self).__init__(**kwargs)
class Bbc(nlp.GeneratorBasedBuilder):
_DIR = "./data"
_DEV_FILE = "test.csv"
_TRAINING_FILE = "train.csv"
BUILDER_CONFIGS = [BbcConfig(name="bbc", version=nlp.Version("1.0.0"))]
def _info(self):
return nlp.DatasetInfo(builder=self, features=nlp.features.FeaturesDict({"id": nlp.string, "text": nlp.string, "label": nlp.string}))
def _split_generators(self, dl_manager):
files = {"train": os.path.join(self._DIR, self._TRAINING_FILE), "dev": os.path.join(self._DIR, self._DEV_FILE)}
return [nlp.SplitGenerator(name=nlp.Split.TRAIN, gen_kwargs={"filepath": files["train"]}),
nlp.SplitGenerator(name=nlp.Split.VALIDATION, gen_kwargs={"filepath": files["dev"]})]
def _generate_examples(self, filepath):
with open(filepath) as f:
reader = csv.reader(f, delimiter=',', quotechar="\"")
lines = list(reader)[1:]
for idx, line in enumerate(lines):
yield idx, {"idx": idx, "text": line[1], "label": line[0]}
```
The dataset is attached to this issue as well:
[data.zip](https://github.com/huggingface/datasets/files/4476928/data.zip)
Now the steps to reproduce what I would like to do:
1. unzip data locally (I know the nlp lib can detect and extract archives but I want to reduce and facilitate the reproduction as much as possible)
2. create the `bbc.py` script as above at the same location than the unziped `data` folder.
Now I try to load the dataset in three different ways and none works, the first one with the name of the dataset like I would do with TFDS:
```python
import nlp
from bbc import Bbc
dataset = nlp.load("bbc")
```
I get:
```
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/opt/anaconda3/envs/transformers/lib/python3.7/site-packages/nlp/load.py", line 280, in load
dbuilder: DatasetBuilder = builder(path, name, data_dir=data_dir, **builder_kwargs)
File "/opt/anaconda3/envs/transformers/lib/python3.7/site-packages/nlp/load.py", line 166, in builder
builder_cls = load_dataset(path, name=name, **builder_kwargs)
File "/opt/anaconda3/envs/transformers/lib/python3.7/site-packages/nlp/load.py", line 88, in load_dataset
local_files_only=local_files_only,
File "/opt/anaconda3/envs/transformers/lib/python3.7/site-packages/nlp/utils/file_utils.py", line 214, in cached_path
if not is_zipfile(output_path) and not tarfile.is_tarfile(output_path):
File "/opt/anaconda3/envs/transformers/lib/python3.7/zipfile.py", line 203, in is_zipfile
with open(filename, "rb") as fp:
TypeError: expected str, bytes or os.PathLike object, not NoneType
```
But @thomwolf told me that no need to import the script, just put the path of it, then I tried three different way to do:
```python
import nlp
dataset = nlp.load("bbc.py")
```
And
```python
import nlp
dataset = nlp.load("./bbc.py")
```
And
```python
import nlp
dataset = nlp.load("/absolute/path/to/bbc.py")
```
These three ways gives me:
```
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/opt/anaconda3/envs/transformers/lib/python3.7/site-packages/nlp/load.py", line 280, in load
dbuilder: DatasetBuilder = builder(path, name, data_dir=data_dir, **builder_kwargs)
File "/opt/anaconda3/envs/transformers/lib/python3.7/site-packages/nlp/load.py", line 166, in builder
builder_cls = load_dataset(path, name=name, **builder_kwargs)
File "/opt/anaconda3/envs/transformers/lib/python3.7/site-packages/nlp/load.py", line 124, in load_dataset
dataset_module = importlib.import_module(module_path)
File "/opt/anaconda3/envs/transformers/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 965, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'nlp.datasets.2fd72627d92c328b3e9c4a3bf7ec932c48083caca09230cebe4c618da6e93688.bbc'
```
Any idea of what I'm missing? or I might have spot a bug :)
Ok great, so as discussed today, let's:
- have a main dataset directory inside the lib with sub-directories hashed by the content of the file
- keep a cache for downloading the scripts from S3 for now
- later: add methods to list and clean the local versions of the datasets (and the distant versions on S3 as well)
Side question: do you often use `builder_kwargs` for other things than supplying file paths? I was thinking about having a more easy to read and remember `data_files` argument maybe. | [
-0.271961689,
0.1254661232,
-0.0766851977,
0.2568113208,
0.3318960369,
0.0312694162,
0.2642412484,
0.3003318012,
0.3266818225,
0.2098685652,
0.1191099212,
0.2447595596,
-0.2942000926,
0.122020781,
0.1568033695,
-0.1723629832,
-0.1275068969,
0.3326410651,
0.1501984596,
-0.3661574423,
-0.2760430574,
0.1413950473,
-0.1191337034,
0.1533623487,
-0.2043230832,
0.0607060231,
-0.0366457291,
0.4012749791,
-0.2069402486,
-0.2449603379,
0.189446941,
0.0119974166,
0.2054081112,
0.1224095598,
-0.0001004647,
0.1904103011,
0.2995988131,
0.0436599851,
-0.1575903445,
-0.3649295568,
-0.05874715,
-0.3323359787,
0.2688181102,
-0.3986444771,
-0.3326912224,
-0.1401538253,
0.0905133635,
-0.4378165305,
0.4685542285,
0.3634627759,
0.3068140149,
0.1048853621,
-0.0699260533,
0.146365419,
0.1952122599,
0.1521473378,
-0.087304987,
0.2656305432,
0.0319154933,
-0.2012286633,
-0.1960861236,
0.1223725677,
-0.222295627,
0.0449409597,
0.2718259096,
0.1370851547,
0.1820528209,
-0.1032302082,
-0.0327711515,
-0.001834605,
0.376916647,
-0.249201104,
-0.2248519808,
-0.1355940253,
0.0572932251,
-0.2591863573,
0.0394321345,
0.3424645364,
-0.3498964608,
0.3455860615,
-0.2791965604,
0.1082819104,
-0.3008818328,
0.2382964492,
0.1193012372,
0.3104303777,
-0.0768899918,
0.1048836708,
0.0907402933,
0.2240545303,
0.1786537021,
-0.1133792177,
0.2185332924,
0.2561585009,
-0.0302852988,
0.0967433304,
0.3372042477,
0.0830670595,
-0.0235991925,
-0.0186837595,
0.1047984138,
0.0249036551,
0.0130939418,
0.3297558427,
0.1096324399,
0.1400411725,
0.1735097468,
0.0876803622,
0.0717137903,
-0.062279392,
-0.20976834,
0.0256421305,
-0.1461680979,
-0.2834391296,
0.0297456924,
0.2404008359,
0.4468614459,
-0.1885110438,
-0.1420502216,
0.2193933874,
-0.2050480247,
-0.0884668902,
0.1696828753,
0.4059307575,
-0.0357790142,
0.2412725687,
0.1384446621,
0.0997358337,
-0.3508430719,
-0.1973963976,
-0.3274969459,
-0.0029658538,
-0.2937142849,
-0.0887343735,
0.3137898743,
0.0290608834,
0.3492821753,
-0.0983312577,
-0.2490222007,
-0.0062913876,
0.1585660279,
-0.2560243607,
0.1404401064,
0.138631925,
0.0651842356,
0.0348210335,
0.2272037715,
-0.4230361581,
-0.1299739033,
0.216541633,
0.0924715251,
-0.4230500758,
-0.1779254824,
0.3226447999,
-0.0838611349,
0.1769315749,
0.1805747449,
0.1790372282,
0.1407808065,
-0.0362492763,
-0.2524119318,
-0.021590041,
-0.4596057236,
-0.2430504113,
0.2107184678,
0.3516463637,
-0.4640028775,
0.0853263289,
-0.1640366912,
-0.1117870584,
0.3510993421,
0.2487839907,
-0.3300902843,
0.4454451799,
-0.101736024,
0.1409198046,
0.6580391526,
-0.3004139662,
-0.3807194233,
0.6322370172,
-0.3527040184,
-0.1465917528,
0.0498829782,
0.0073252283,
-0.0018454761,
0.2033673078,
0.2166674733,
0.3950746357,
-0.1738851666,
0.1002998352,
-0.4054657519,
-0.1520864815,
0.1437029839,
0.1029602885,
-0.0783377141,
0.1322499663,
0.1525423825,
-0.0517456718,
0.4970274568,
-0.138927862,
0.1745274961,
0.3185681999,
0.2489014268,
-0.008944137,
-0.1572513729,
-0.0782214478,
-0.2163549513,
0.0472731479,
-0.1540115923,
-0.0111838914,
-0.1268219054,
-0.1966492087,
-0.3752777874,
0.102470167,
-0.416154176,
-0.0244456977,
0.2532123625,
0.2463393807,
0.0947188959,
0.009241553,
-0.0782994926,
-0.1027995124,
-0.1485023946,
-0.2201791853,
-0.3223360479,
0.2954412103,
-0.3488664329,
-0.1378358603,
0.1312767863,
0.3829960227,
0.1777833253,
-0.1002678946,
-0.0520529598,
0.2365419865,
-0.0244585611,
0.0325129069,
0.0145482356,
-0.1853817552,
-0.0120613398,
-0.2796402872,
0.1465236247,
0.0235883202,
0.3483983576,
0.0077596707,
-0.3682602644,
0.3775373697,
-0.0371983647,
0.0586498529,
-0.0751952752,
-0.0948599428,
0.3058989346,
-0.2762517631,
-0.0493954197,
-0.0236396436,
0.2183712572,
0.0369678959,
0.1693605483,
0.0412955582,
-0.3924957216,
0.0471647643,
0.3549180031,
-0.0725369155,
-0.173110202,
0.0018171248,
0.0174869113,
-0.0824427679,
0.1646268964,
0.2774142623,
0.3839056492,
0.2610783279,
0.066232875,
0.1700645983,
-0.2135237455,
-0.183110863,
-0.0547694489,
-0.0941863209,
-0.0275942553,
0.3564701974,
0.1723605543,
-0.1707369238,
-0.3508791924,
0.0280964896,
0.1553041935,
0.365197897,
-0.1970969439,
0.2237508297,
-0.2249523401,
-0.2432209104,
-0.3664652705,
-0.0820037201,
0.0938911363,
-0.3452373743,
-0.1890167892,
0.197851941,
-0.107149221,
-0.1096805781,
-0.1519419551,
-0.0034871253,
0.0685044825,
-0.1828072518,
0.0319251195,
-0.297262311,
-0.4607278407,
0.1170992926,
0.3691140711,
0.3623127341,
0.4312876761,
0.0150137367,
-0.1073619351,
0.0393666364,
-0.0697978362,
0.076720953,
-0.1008956507,
0.4542247653,
-0.0569394864,
0.0416783318,
-0.2283504456,
-0.4602436423,
0.5433729291,
-0.0930565894,
-0.1630838662,
0.0036413239,
0.1127770543,
-0.2605373859,
-0.2423969358,
-0.5966647863,
-0.3765790164,
-0.377520144,
0.2393841594,
0.2145242393,
0.2878387868,
0.3024252057,
0.0545425601,
0.2275841981,
0.2486262321,
0.022036897,
-0.1577893198,
-0.2745800316,
0.1092551053,
-0.3437812924,
-0.3863988519,
-0.0418256782,
-0.2934793532,
0.2532536685,
-0.1771196723,
-0.505372107,
0.1061595827,
-0.2085332572,
0.1759869605,
0.1183273345,
-0.075683549,
0.3462192118,
0.0716120377,
-0.0953158066,
-0.1507953852,
-0.1724996716,
0.1742012799,
0.0590064749,
0.0601393022,
0.0603191853,
0.2799822986,
-0.1291004419,
0.4796224236,
0.0056984103,
0.0647448674,
0.2293584347,
-0.1257219613,
0.0351174809,
-0.0269690808,
-0.5060184002,
0.0983491838,
0.1094465554,
-0.3240751326,
0.2393594384,
-0.0309577435,
-0.3329504132,
-0.2473927736,
0.0161874145,
-0.5706440806,
-0.3236040175,
0.0986714289,
-0.0077604256,
0.1682424396,
0.0484662987,
-0.0216585919,
-0.19728598,
-0.0092987111,
-0.1825923026,
0.2409343719,
0.0875303298,
0.0187798403,
-0.3264674246,
-0.0633295104,
-0.5391076803,
0.1027070284,
0.0346255898,
0.3136317432,
-0.1360365748,
-0.1588586867,
0.2374023497,
-0.1259418726,
0.355168432,
-0.1997643113,
0.1949020922,
0.2806989849,
0.0566504672,
-0.2779285312,
0.0598577149,
-0.082807906,
0.1944078058,
0.0551684164,
0.1930948943,
-0.0358044654,
-0.2404816002,
0.3322657645,
0.0861656815,
-0.3055276871,
-0.411495775,
-0.155119434,
-0.2620899677,
-0.1998127848,
-0.0636808202,
-0.2033233792,
0.3930028379,
-0.008745756,
-0.0178830102,
0.0776314959,
0.0366085768,
0.1659791172,
0.0659315363,
0.1444854736,
0.1646542847,
0.1758184284,
0.0877506211,
0.428834945,
-0.1880308241,
0.6513575315,
-0.07449238,
-0.1693410277,
0.0129823284,
-0.1879098564,
0.2662379146,
0.2502309084,
-0.1011858806,
-0.2100190818,
0.166636005,
-0.1118043661,
-0.1770980358,
0.3948363066,
0.1075217873,
-0.1158340201,
-0.0676744357,
-0.5222007036,
0.3811994493,
-0.114735119,
-0.0565007292,
-0.0064785327,
-0.1909908056,
-0.1881239563,
0.5036739707,
0.1323153675,
0.8643971682,
-0.1980929673,
0.0349103659,
0.4668905735,
0.0077845841,
0.1646996289,
-0.1840791106,
0.2341463119,
-0.570138216,
0.019398436,
0.0076869335,
-0.0287061408,
0.1016460955,
0.2519912124,
-0.0923879892,
0.0385434404,
0.1525755525,
-0.1554612368,
-0.1020385697,
0.2830421329,
0.0544175655,
-0.1383445561,
-0.3233304322,
0.2222986817,
-0.0313627422,
0.1917643994,
0.0116049992,
-0.2589570582,
-0.1316406429,
-0.1493984312,
0.0529660508,
0.1751307845,
-0.1544433236,
-0.0379617736,
-0.0486807339,
-0.3220744729,
0.0414557345,
0.3110917807,
0.153746888,
0.2356784195,
-0.2747210264,
-0.1066583768,
-0.0653962418,
-0.1012916788,
-0.1185327768,
0.0051975045,
0.1416033804,
0.0174177997,
-0.4252745509,
-0.0209826306,
-0.0953731015,
-0.1059340015,
0.128332004,
0.1576503366,
0.2031960338,
-0.3334442973,
-0.4064559042,
0.047722619,
-0.1087375954,
-0.060051661,
0.227812767,
-0.0217112973,
-0.1207552925,
-0.1074451804,
0.0386741944,
-0.2580273151,
0.0760375634,
0.3284547031,
0.2618005574,
0.1757756025,
0.3383726478,
0.1642872095,
-0.0343140066,
-0.3920806348,
-0.0356168672,
0.0704317465,
-0.2614104152,
-0.1708100289,
0.1431284845,
0.0959376022,
0.2589939833,
0.3358263969,
0.0868118554,
0.0314115062,
-0.026418943,
-0.4197936356,
-0.4787347913,
-0.1564756334,
-0.0960421115,
0.2361434251,
0.3992725909,
0.3505228162,
0.0761039332,
0.1712293029,
-0.4348986447,
-0.1582424194,
-0.3672049344,
0.09724278,
0.1091152728,
-0.1289700568,
0.0431214646,
-0.0544743203,
0.231937632,
-0.0266496371,
-0.1715814024,
-0.351231277,
0.0337689966,
0.0571923815,
0.1569817066,
-0.1603882611,
-0.1263563931,
-0.1384025812,
-0.0374558046,
-0.0434974618,
-0.0566053204,
0.1242899671,
-0.066867955,
0.4345207214,
-0.009828276,
0.1701685339,
-0.0747042671,
0.0009314382,
-0.2399916649,
0.1899889708,
-0.0329512767,
0.042324625,
0.1744866967,
-0.0874912366,
-0.1508780122,
-0.0646028519,
-0.0523427054,
0.3434986174,
0.4014252424,
-0.313248992,
-0.0029766897,
0.1609407961,
0.3720912933,
0.1368872374,
-0.06679032,
0.1870813966,
0.3331492543,
0.3209902346,
-0.2170784622,
-0.0078464616,
0.176823169,
0.0243659429,
0.1571125835,
0.2079402059,
0.1602824926,
-0.1185155883,
-0.0839414671,
0.0089580249,
0.2199585885,
0.026943339,
-0.1726029366,
0.5578837991,
-0.1069679409,
0.0147088561,
0.015359709,
0.2626159489,
0.150347665,
0.3625153005,
0.0332685225,
-0.0691112801,
-0.0515282154,
0.3558599055,
-0.24515374,
-0.4928424954,
0.2119536698,
0.1049969196,
-0.1381625086,
0.0064496389,
-0.1462259144,
0.2908703387,
0.0504664332,
-0.0450467207,
-0.058693774,
0.4341705739,
-0.2295294255,
-0.1355333924,
-0.4413934946,
-0.072062768,
-0.298684299,
-0.0694366619,
0.0210932028,
0.143849656,
-0.0314354971,
0.0074019781,
-0.0485218316,
-0.1798207611,
0.1309194416,
0.2044498026,
-0.1366576999,
-0.3524979651,
0.3145771325,
0.1482192725,
0.1692371964,
-0.1363147646,
0.1530728489,
0.2172754705,
0.4162556231,
-0.1909389794,
0.0166430958,
-0.1435082406,
-0.1691755205,
-0.3510361016,
0.2251786143,
0.0193293914,
0.3033942878,
0.5757570863,
0.2563101947,
-0.1848144233,
0.2783586681,
0.1571855396,
0.0825568363,
0.0694975033,
0.2987569571,
0.15718925,
-0.1272758394,
-0.2587656081,
-0.1263579428,
-0.482509464,
-0.0734841153,
0.337828815,
0.0948292911,
0.5023239255,
-0.2306266576,
0.1396727413,
-0.12460915,
0.4588421583,
0.2693643868,
0.168547824,
-0.4026034176,
-0.2152404785,
-0.5258612037,
0.0776552781,
-0.0867537484,
-0.2213983238,
-0.0802539289,
0.2547660768,
0.0406549796,
0.1811078489,
-0.5375033021,
0.1512549371,
-0.1450659335,
0.2304360121,
-0.0383697636,
-0.1621063203,
-0.1003011093,
-0.0384931788,
-0.0739432797,
-0.4356856048,
0.1343758255,
-0.1064989194,
0.2026228607,
-0.2383626848,
0.0076442431,
-0.0351860151,
0.0809182003,
0.033377286,
0.2150259316,
0.3726360202,
-0.2444088757,
0.2414366007,
-0.212580204,
0.0813361332,
-0.2655959129,
0.1747842729,
0.138896808,
0.5628279448,
-0.2568780184,
0.2340293378,
-0.3165407181,
0.0263360925,
0.0514675826,
0.0794782713,
-0.0276822783,
0.1196672246,
-0.3101904094,
0.1019593626,
0.1867545545,
0.158185333,
0.0220817365,
0.1333450228,
-0.2682807446,
-0.2907095551,
0.4097489715,
-0.2822918594,
-0.2055119127,
0.1762141585,
0.1532309502,
-0.0029167582,
-0.04028574,
-0.4433353841,
0.025486473,
0.3729542196,
-0.1966754645,
0.0635943189,
0.2106605917,
0.063840352,
0.0155625036,
-0.024085125,
-0.1181436405,
0.1259867251,
-0.0181904621,
-0.1313413233,
-0.2844592929
] |
https://github.com/huggingface/datasets/issues/2 | Issue to read a local dataset | Good plan!
Yes I do use `builder_kwargs` for other things such as:
- dataset name
- properties to know how to properly read a CSV file: do I have to skip the first line in a CSV, which delimiter is used, and the columns ids to use.
- properties to know how to properly read a JSON file: which properties in a JSON object to read | Hello,
As proposed by @thomwolf, I open an issue to explain what I'm trying to do without success. What I want to do is to create and load a local dataset, the script I have done is the following:
```python
import os
import csv
import nlp
class BbcConfig(nlp.BuilderConfig):
def __init__(self, **kwargs):
super(BbcConfig, self).__init__(**kwargs)
class Bbc(nlp.GeneratorBasedBuilder):
_DIR = "./data"
_DEV_FILE = "test.csv"
_TRAINING_FILE = "train.csv"
BUILDER_CONFIGS = [BbcConfig(name="bbc", version=nlp.Version("1.0.0"))]
def _info(self):
return nlp.DatasetInfo(builder=self, features=nlp.features.FeaturesDict({"id": nlp.string, "text": nlp.string, "label": nlp.string}))
def _split_generators(self, dl_manager):
files = {"train": os.path.join(self._DIR, self._TRAINING_FILE), "dev": os.path.join(self._DIR, self._DEV_FILE)}
return [nlp.SplitGenerator(name=nlp.Split.TRAIN, gen_kwargs={"filepath": files["train"]}),
nlp.SplitGenerator(name=nlp.Split.VALIDATION, gen_kwargs={"filepath": files["dev"]})]
def _generate_examples(self, filepath):
with open(filepath) as f:
reader = csv.reader(f, delimiter=',', quotechar="\"")
lines = list(reader)[1:]
for idx, line in enumerate(lines):
yield idx, {"idx": idx, "text": line[1], "label": line[0]}
```
The dataset is attached to this issue as well:
[data.zip](https://github.com/huggingface/datasets/files/4476928/data.zip)
Now the steps to reproduce what I would like to do:
1. unzip data locally (I know the nlp lib can detect and extract archives but I want to reduce and facilitate the reproduction as much as possible)
2. create the `bbc.py` script as above at the same location than the unziped `data` folder.
Now I try to load the dataset in three different ways and none works, the first one with the name of the dataset like I would do with TFDS:
```python
import nlp
from bbc import Bbc
dataset = nlp.load("bbc")
```
I get:
```
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/opt/anaconda3/envs/transformers/lib/python3.7/site-packages/nlp/load.py", line 280, in load
dbuilder: DatasetBuilder = builder(path, name, data_dir=data_dir, **builder_kwargs)
File "/opt/anaconda3/envs/transformers/lib/python3.7/site-packages/nlp/load.py", line 166, in builder
builder_cls = load_dataset(path, name=name, **builder_kwargs)
File "/opt/anaconda3/envs/transformers/lib/python3.7/site-packages/nlp/load.py", line 88, in load_dataset
local_files_only=local_files_only,
File "/opt/anaconda3/envs/transformers/lib/python3.7/site-packages/nlp/utils/file_utils.py", line 214, in cached_path
if not is_zipfile(output_path) and not tarfile.is_tarfile(output_path):
File "/opt/anaconda3/envs/transformers/lib/python3.7/zipfile.py", line 203, in is_zipfile
with open(filename, "rb") as fp:
TypeError: expected str, bytes or os.PathLike object, not NoneType
```
But @thomwolf told me that no need to import the script, just put the path of it, then I tried three different way to do:
```python
import nlp
dataset = nlp.load("bbc.py")
```
And
```python
import nlp
dataset = nlp.load("./bbc.py")
```
And
```python
import nlp
dataset = nlp.load("/absolute/path/to/bbc.py")
```
These three ways gives me:
```
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/opt/anaconda3/envs/transformers/lib/python3.7/site-packages/nlp/load.py", line 280, in load
dbuilder: DatasetBuilder = builder(path, name, data_dir=data_dir, **builder_kwargs)
File "/opt/anaconda3/envs/transformers/lib/python3.7/site-packages/nlp/load.py", line 166, in builder
builder_cls = load_dataset(path, name=name, **builder_kwargs)
File "/opt/anaconda3/envs/transformers/lib/python3.7/site-packages/nlp/load.py", line 124, in load_dataset
dataset_module = importlib.import_module(module_path)
File "/opt/anaconda3/envs/transformers/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 965, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'nlp.datasets.2fd72627d92c328b3e9c4a3bf7ec932c48083caca09230cebe4c618da6e93688.bbc'
```
Any idea of what I'm missing? or I might have spot a bug :) | 66 | Issue to read a local dataset
Hello,
As proposed by @thomwolf, I open an issue to explain what I'm trying to do without success. What I want to do is to create and load a local dataset, the script I have done is the following:
```python
import os
import csv
import nlp
class BbcConfig(nlp.BuilderConfig):
def __init__(self, **kwargs):
super(BbcConfig, self).__init__(**kwargs)
class Bbc(nlp.GeneratorBasedBuilder):
_DIR = "./data"
_DEV_FILE = "test.csv"
_TRAINING_FILE = "train.csv"
BUILDER_CONFIGS = [BbcConfig(name="bbc", version=nlp.Version("1.0.0"))]
def _info(self):
return nlp.DatasetInfo(builder=self, features=nlp.features.FeaturesDict({"id": nlp.string, "text": nlp.string, "label": nlp.string}))
def _split_generators(self, dl_manager):
files = {"train": os.path.join(self._DIR, self._TRAINING_FILE), "dev": os.path.join(self._DIR, self._DEV_FILE)}
return [nlp.SplitGenerator(name=nlp.Split.TRAIN, gen_kwargs={"filepath": files["train"]}),
nlp.SplitGenerator(name=nlp.Split.VALIDATION, gen_kwargs={"filepath": files["dev"]})]
def _generate_examples(self, filepath):
with open(filepath) as f:
reader = csv.reader(f, delimiter=',', quotechar="\"")
lines = list(reader)[1:]
for idx, line in enumerate(lines):
yield idx, {"idx": idx, "text": line[1], "label": line[0]}
```
The dataset is attached to this issue as well:
[data.zip](https://github.com/huggingface/datasets/files/4476928/data.zip)
Now the steps to reproduce what I would like to do:
1. unzip data locally (I know the nlp lib can detect and extract archives but I want to reduce and facilitate the reproduction as much as possible)
2. create the `bbc.py` script as above at the same location than the unziped `data` folder.
Now I try to load the dataset in three different ways and none works, the first one with the name of the dataset like I would do with TFDS:
```python
import nlp
from bbc import Bbc
dataset = nlp.load("bbc")
```
I get:
```
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/opt/anaconda3/envs/transformers/lib/python3.7/site-packages/nlp/load.py", line 280, in load
dbuilder: DatasetBuilder = builder(path, name, data_dir=data_dir, **builder_kwargs)
File "/opt/anaconda3/envs/transformers/lib/python3.7/site-packages/nlp/load.py", line 166, in builder
builder_cls = load_dataset(path, name=name, **builder_kwargs)
File "/opt/anaconda3/envs/transformers/lib/python3.7/site-packages/nlp/load.py", line 88, in load_dataset
local_files_only=local_files_only,
File "/opt/anaconda3/envs/transformers/lib/python3.7/site-packages/nlp/utils/file_utils.py", line 214, in cached_path
if not is_zipfile(output_path) and not tarfile.is_tarfile(output_path):
File "/opt/anaconda3/envs/transformers/lib/python3.7/zipfile.py", line 203, in is_zipfile
with open(filename, "rb") as fp:
TypeError: expected str, bytes or os.PathLike object, not NoneType
```
But @thomwolf told me that no need to import the script, just put the path of it, then I tried three different way to do:
```python
import nlp
dataset = nlp.load("bbc.py")
```
And
```python
import nlp
dataset = nlp.load("./bbc.py")
```
And
```python
import nlp
dataset = nlp.load("/absolute/path/to/bbc.py")
```
These three ways gives me:
```
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/opt/anaconda3/envs/transformers/lib/python3.7/site-packages/nlp/load.py", line 280, in load
dbuilder: DatasetBuilder = builder(path, name, data_dir=data_dir, **builder_kwargs)
File "/opt/anaconda3/envs/transformers/lib/python3.7/site-packages/nlp/load.py", line 166, in builder
builder_cls = load_dataset(path, name=name, **builder_kwargs)
File "/opt/anaconda3/envs/transformers/lib/python3.7/site-packages/nlp/load.py", line 124, in load_dataset
dataset_module = importlib.import_module(module_path)
File "/opt/anaconda3/envs/transformers/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 965, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'nlp.datasets.2fd72627d92c328b3e9c4a3bf7ec932c48083caca09230cebe4c618da6e93688.bbc'
```
Any idea of what I'm missing? or I might have spot a bug :)
Good plan!
Yes I do use `builder_kwargs` for other things such as:
- dataset name
- properties to know how to properly read a CSV file: do I have to skip the first line in a CSV, which delimiter is used, and the columns ids to use.
- properties to know how to properly read a JSON file: which properties in a JSON object to read | [
-0.271961689,
0.1254661232,
-0.0766851977,
0.2568113208,
0.3318960369,
0.0312694162,
0.2642412484,
0.3003318012,
0.3266818225,
0.2098685652,
0.1191099212,
0.2447595596,
-0.2942000926,
0.122020781,
0.1568033695,
-0.1723629832,
-0.1275068969,
0.3326410651,
0.1501984596,
-0.3661574423,
-0.2760430574,
0.1413950473,
-0.1191337034,
0.1533623487,
-0.2043230832,
0.0607060231,
-0.0366457291,
0.4012749791,
-0.2069402486,
-0.2449603379,
0.189446941,
0.0119974166,
0.2054081112,
0.1224095598,
-0.0001004647,
0.1904103011,
0.2995988131,
0.0436599851,
-0.1575903445,
-0.3649295568,
-0.05874715,
-0.3323359787,
0.2688181102,
-0.3986444771,
-0.3326912224,
-0.1401538253,
0.0905133635,
-0.4378165305,
0.4685542285,
0.3634627759,
0.3068140149,
0.1048853621,
-0.0699260533,
0.146365419,
0.1952122599,
0.1521473378,
-0.087304987,
0.2656305432,
0.0319154933,
-0.2012286633,
-0.1960861236,
0.1223725677,
-0.222295627,
0.0449409597,
0.2718259096,
0.1370851547,
0.1820528209,
-0.1032302082,
-0.0327711515,
-0.001834605,
0.376916647,
-0.249201104,
-0.2248519808,
-0.1355940253,
0.0572932251,
-0.2591863573,
0.0394321345,
0.3424645364,
-0.3498964608,
0.3455860615,
-0.2791965604,
0.1082819104,
-0.3008818328,
0.2382964492,
0.1193012372,
0.3104303777,
-0.0768899918,
0.1048836708,
0.0907402933,
0.2240545303,
0.1786537021,
-0.1133792177,
0.2185332924,
0.2561585009,
-0.0302852988,
0.0967433304,
0.3372042477,
0.0830670595,
-0.0235991925,
-0.0186837595,
0.1047984138,
0.0249036551,
0.0130939418,
0.3297558427,
0.1096324399,
0.1400411725,
0.1735097468,
0.0876803622,
0.0717137903,
-0.062279392,
-0.20976834,
0.0256421305,
-0.1461680979,
-0.2834391296,
0.0297456924,
0.2404008359,
0.4468614459,
-0.1885110438,
-0.1420502216,
0.2193933874,
-0.2050480247,
-0.0884668902,
0.1696828753,
0.4059307575,
-0.0357790142,
0.2412725687,
0.1384446621,
0.0997358337,
-0.3508430719,
-0.1973963976,
-0.3274969459,
-0.0029658538,
-0.2937142849,
-0.0887343735,
0.3137898743,
0.0290608834,
0.3492821753,
-0.0983312577,
-0.2490222007,
-0.0062913876,
0.1585660279,
-0.2560243607,
0.1404401064,
0.138631925,
0.0651842356,
0.0348210335,
0.2272037715,
-0.4230361581,
-0.1299739033,
0.216541633,
0.0924715251,
-0.4230500758,
-0.1779254824,
0.3226447999,
-0.0838611349,
0.1769315749,
0.1805747449,
0.1790372282,
0.1407808065,
-0.0362492763,
-0.2524119318,
-0.021590041,
-0.4596057236,
-0.2430504113,
0.2107184678,
0.3516463637,
-0.4640028775,
0.0853263289,
-0.1640366912,
-0.1117870584,
0.3510993421,
0.2487839907,
-0.3300902843,
0.4454451799,
-0.101736024,
0.1409198046,
0.6580391526,
-0.3004139662,
-0.3807194233,
0.6322370172,
-0.3527040184,
-0.1465917528,
0.0498829782,
0.0073252283,
-0.0018454761,
0.2033673078,
0.2166674733,
0.3950746357,
-0.1738851666,
0.1002998352,
-0.4054657519,
-0.1520864815,
0.1437029839,
0.1029602885,
-0.0783377141,
0.1322499663,
0.1525423825,
-0.0517456718,
0.4970274568,
-0.138927862,
0.1745274961,
0.3185681999,
0.2489014268,
-0.008944137,
-0.1572513729,
-0.0782214478,
-0.2163549513,
0.0472731479,
-0.1540115923,
-0.0111838914,
-0.1268219054,
-0.1966492087,
-0.3752777874,
0.102470167,
-0.416154176,
-0.0244456977,
0.2532123625,
0.2463393807,
0.0947188959,
0.009241553,
-0.0782994926,
-0.1027995124,
-0.1485023946,
-0.2201791853,
-0.3223360479,
0.2954412103,
-0.3488664329,
-0.1378358603,
0.1312767863,
0.3829960227,
0.1777833253,
-0.1002678946,
-0.0520529598,
0.2365419865,
-0.0244585611,
0.0325129069,
0.0145482356,
-0.1853817552,
-0.0120613398,
-0.2796402872,
0.1465236247,
0.0235883202,
0.3483983576,
0.0077596707,
-0.3682602644,
0.3775373697,
-0.0371983647,
0.0586498529,
-0.0751952752,
-0.0948599428,
0.3058989346,
-0.2762517631,
-0.0493954197,
-0.0236396436,
0.2183712572,
0.0369678959,
0.1693605483,
0.0412955582,
-0.3924957216,
0.0471647643,
0.3549180031,
-0.0725369155,
-0.173110202,
0.0018171248,
0.0174869113,
-0.0824427679,
0.1646268964,
0.2774142623,
0.3839056492,
0.2610783279,
0.066232875,
0.1700645983,
-0.2135237455,
-0.183110863,
-0.0547694489,
-0.0941863209,
-0.0275942553,
0.3564701974,
0.1723605543,
-0.1707369238,
-0.3508791924,
0.0280964896,
0.1553041935,
0.365197897,
-0.1970969439,
0.2237508297,
-0.2249523401,
-0.2432209104,
-0.3664652705,
-0.0820037201,
0.0938911363,
-0.3452373743,
-0.1890167892,
0.197851941,
-0.107149221,
-0.1096805781,
-0.1519419551,
-0.0034871253,
0.0685044825,
-0.1828072518,
0.0319251195,
-0.297262311,
-0.4607278407,
0.1170992926,
0.3691140711,
0.3623127341,
0.4312876761,
0.0150137367,
-0.1073619351,
0.0393666364,
-0.0697978362,
0.076720953,
-0.1008956507,
0.4542247653,
-0.0569394864,
0.0416783318,
-0.2283504456,
-0.4602436423,
0.5433729291,
-0.0930565894,
-0.1630838662,
0.0036413239,
0.1127770543,
-0.2605373859,
-0.2423969358,
-0.5966647863,
-0.3765790164,
-0.377520144,
0.2393841594,
0.2145242393,
0.2878387868,
0.3024252057,
0.0545425601,
0.2275841981,
0.2486262321,
0.022036897,
-0.1577893198,
-0.2745800316,
0.1092551053,
-0.3437812924,
-0.3863988519,
-0.0418256782,
-0.2934793532,
0.2532536685,
-0.1771196723,
-0.505372107,
0.1061595827,
-0.2085332572,
0.1759869605,
0.1183273345,
-0.075683549,
0.3462192118,
0.0716120377,
-0.0953158066,
-0.1507953852,
-0.1724996716,
0.1742012799,
0.0590064749,
0.0601393022,
0.0603191853,
0.2799822986,
-0.1291004419,
0.4796224236,
0.0056984103,
0.0647448674,
0.2293584347,
-0.1257219613,
0.0351174809,
-0.0269690808,
-0.5060184002,
0.0983491838,
0.1094465554,
-0.3240751326,
0.2393594384,
-0.0309577435,
-0.3329504132,
-0.2473927736,
0.0161874145,
-0.5706440806,
-0.3236040175,
0.0986714289,
-0.0077604256,
0.1682424396,
0.0484662987,
-0.0216585919,
-0.19728598,
-0.0092987111,
-0.1825923026,
0.2409343719,
0.0875303298,
0.0187798403,
-0.3264674246,
-0.0633295104,
-0.5391076803,
0.1027070284,
0.0346255898,
0.3136317432,
-0.1360365748,
-0.1588586867,
0.2374023497,
-0.1259418726,
0.355168432,
-0.1997643113,
0.1949020922,
0.2806989849,
0.0566504672,
-0.2779285312,
0.0598577149,
-0.082807906,
0.1944078058,
0.0551684164,
0.1930948943,
-0.0358044654,
-0.2404816002,
0.3322657645,
0.0861656815,
-0.3055276871,
-0.411495775,
-0.155119434,
-0.2620899677,
-0.1998127848,
-0.0636808202,
-0.2033233792,
0.3930028379,
-0.008745756,
-0.0178830102,
0.0776314959,
0.0366085768,
0.1659791172,
0.0659315363,
0.1444854736,
0.1646542847,
0.1758184284,
0.0877506211,
0.428834945,
-0.1880308241,
0.6513575315,
-0.07449238,
-0.1693410277,
0.0129823284,
-0.1879098564,
0.2662379146,
0.2502309084,
-0.1011858806,
-0.2100190818,
0.166636005,
-0.1118043661,
-0.1770980358,
0.3948363066,
0.1075217873,
-0.1158340201,
-0.0676744357,
-0.5222007036,
0.3811994493,
-0.114735119,
-0.0565007292,
-0.0064785327,
-0.1909908056,
-0.1881239563,
0.5036739707,
0.1323153675,
0.8643971682,
-0.1980929673,
0.0349103659,
0.4668905735,
0.0077845841,
0.1646996289,
-0.1840791106,
0.2341463119,
-0.570138216,
0.019398436,
0.0076869335,
-0.0287061408,
0.1016460955,
0.2519912124,
-0.0923879892,
0.0385434404,
0.1525755525,
-0.1554612368,
-0.1020385697,
0.2830421329,
0.0544175655,
-0.1383445561,
-0.3233304322,
0.2222986817,
-0.0313627422,
0.1917643994,
0.0116049992,
-0.2589570582,
-0.1316406429,
-0.1493984312,
0.0529660508,
0.1751307845,
-0.1544433236,
-0.0379617736,
-0.0486807339,
-0.3220744729,
0.0414557345,
0.3110917807,
0.153746888,
0.2356784195,
-0.2747210264,
-0.1066583768,
-0.0653962418,
-0.1012916788,
-0.1185327768,
0.0051975045,
0.1416033804,
0.0174177997,
-0.4252745509,
-0.0209826306,
-0.0953731015,
-0.1059340015,
0.128332004,
0.1576503366,
0.2031960338,
-0.3334442973,
-0.4064559042,
0.047722619,
-0.1087375954,
-0.060051661,
0.227812767,
-0.0217112973,
-0.1207552925,
-0.1074451804,
0.0386741944,
-0.2580273151,
0.0760375634,
0.3284547031,
0.2618005574,
0.1757756025,
0.3383726478,
0.1642872095,
-0.0343140066,
-0.3920806348,
-0.0356168672,
0.0704317465,
-0.2614104152,
-0.1708100289,
0.1431284845,
0.0959376022,
0.2589939833,
0.3358263969,
0.0868118554,
0.0314115062,
-0.026418943,
-0.4197936356,
-0.4787347913,
-0.1564756334,
-0.0960421115,
0.2361434251,
0.3992725909,
0.3505228162,
0.0761039332,
0.1712293029,
-0.4348986447,
-0.1582424194,
-0.3672049344,
0.09724278,
0.1091152728,
-0.1289700568,
0.0431214646,
-0.0544743203,
0.231937632,
-0.0266496371,
-0.1715814024,
-0.351231277,
0.0337689966,
0.0571923815,
0.1569817066,
-0.1603882611,
-0.1263563931,
-0.1384025812,
-0.0374558046,
-0.0434974618,
-0.0566053204,
0.1242899671,
-0.066867955,
0.4345207214,
-0.009828276,
0.1701685339,
-0.0747042671,
0.0009314382,
-0.2399916649,
0.1899889708,
-0.0329512767,
0.042324625,
0.1744866967,
-0.0874912366,
-0.1508780122,
-0.0646028519,
-0.0523427054,
0.3434986174,
0.4014252424,
-0.313248992,
-0.0029766897,
0.1609407961,
0.3720912933,
0.1368872374,
-0.06679032,
0.1870813966,
0.3331492543,
0.3209902346,
-0.2170784622,
-0.0078464616,
0.176823169,
0.0243659429,
0.1571125835,
0.2079402059,
0.1602824926,
-0.1185155883,
-0.0839414671,
0.0089580249,
0.2199585885,
0.026943339,
-0.1726029366,
0.5578837991,
-0.1069679409,
0.0147088561,
0.015359709,
0.2626159489,
0.150347665,
0.3625153005,
0.0332685225,
-0.0691112801,
-0.0515282154,
0.3558599055,
-0.24515374,
-0.4928424954,
0.2119536698,
0.1049969196,
-0.1381625086,
0.0064496389,
-0.1462259144,
0.2908703387,
0.0504664332,
-0.0450467207,
-0.058693774,
0.4341705739,
-0.2295294255,
-0.1355333924,
-0.4413934946,
-0.072062768,
-0.298684299,
-0.0694366619,
0.0210932028,
0.143849656,
-0.0314354971,
0.0074019781,
-0.0485218316,
-0.1798207611,
0.1309194416,
0.2044498026,
-0.1366576999,
-0.3524979651,
0.3145771325,
0.1482192725,
0.1692371964,
-0.1363147646,
0.1530728489,
0.2172754705,
0.4162556231,
-0.1909389794,
0.0166430958,
-0.1435082406,
-0.1691755205,
-0.3510361016,
0.2251786143,
0.0193293914,
0.3033942878,
0.5757570863,
0.2563101947,
-0.1848144233,
0.2783586681,
0.1571855396,
0.0825568363,
0.0694975033,
0.2987569571,
0.15718925,
-0.1272758394,
-0.2587656081,
-0.1263579428,
-0.482509464,
-0.0734841153,
0.337828815,
0.0948292911,
0.5023239255,
-0.2306266576,
0.1396727413,
-0.12460915,
0.4588421583,
0.2693643868,
0.168547824,
-0.4026034176,
-0.2152404785,
-0.5258612037,
0.0776552781,
-0.0867537484,
-0.2213983238,
-0.0802539289,
0.2547660768,
0.0406549796,
0.1811078489,
-0.5375033021,
0.1512549371,
-0.1450659335,
0.2304360121,
-0.0383697636,
-0.1621063203,
-0.1003011093,
-0.0384931788,
-0.0739432797,
-0.4356856048,
0.1343758255,
-0.1064989194,
0.2026228607,
-0.2383626848,
0.0076442431,
-0.0351860151,
0.0809182003,
0.033377286,
0.2150259316,
0.3726360202,
-0.2444088757,
0.2414366007,
-0.212580204,
0.0813361332,
-0.2655959129,
0.1747842729,
0.138896808,
0.5628279448,
-0.2568780184,
0.2340293378,
-0.3165407181,
0.0263360925,
0.0514675826,
0.0794782713,
-0.0276822783,
0.1196672246,
-0.3101904094,
0.1019593626,
0.1867545545,
0.158185333,
0.0220817365,
0.1333450228,
-0.2682807446,
-0.2907095551,
0.4097489715,
-0.2822918594,
-0.2055119127,
0.1762141585,
0.1532309502,
-0.0029167582,
-0.04028574,
-0.4433353841,
0.025486473,
0.3729542196,
-0.1966754645,
0.0635943189,
0.2106605917,
0.063840352,
0.0155625036,
-0.024085125,
-0.1181436405,
0.1259867251,
-0.0181904621,
-0.1313413233,
-0.2844592929
] |