html_url
stringlengths 48
51
| title
stringlengths 5
268
| comments
stringlengths 70
51.8k
| body
stringlengths 0
29.8k
| comment_length
int64 16
1.52k
| text
stringlengths 164
54.1k
| embeddings
sequence |
---|---|---|---|---|---|---|
https://github.com/huggingface/datasets/issues/824 | Discussion using datasets in offline mode | here is my way to load a dataset offline, but it **requires** an online machine
1. (online machine)
```
import datasets
data = datasets.load_dataset(...)
data.save_to_disk(/YOUR/DATASET/DIR)
```
2. copy the dir from online to the offline machine
3. (offline machine)
```
import datasets
data = datasets.load_from_disk(/SAVED/DATA/DIR)
```
HTH. | `datasets.load_dataset("csv", ...)` breaks if you have no connection (There is already this issue https://github.com/huggingface/datasets/issues/761 about it). It seems to be the same for metrics too.
I create this ticket to discuss a bit and gather what you have in mind or other propositions.
Here are some points to open discussion:
- if you want to prepare your code/datasets on your machine (having internet connexion) but run it on another offline machine (not having internet connexion), it won't work as is, even if you have all files locally on this machine.
- AFAIK, you can make it work if you manually put the python files (csv.py for example) on this offline machine and change your code to `datasets.load_dataset("MY_PATH/csv.py", ...)`. But it would be much better if you could run ths same code without modification if files are available locally.
- I've also been considering the requirement of downloading Python code and execute on your machine to use datasets. This can be an issue in a professional context. Downloading a CSV/H5 file is acceptable, downloading an executable script can open many security issues. We certainly need a mechanism to at least "freeze" the dataset code you retrieved once so that you can review it if you want and then be sure you use this one everywhere and not a version dowloaded from internet.
WDYT? (thks)
| 47 | Discussion using datasets in offline mode
`datasets.load_dataset("csv", ...)` breaks if you have no connection (There is already this issue https://github.com/huggingface/datasets/issues/761 about it). It seems to be the same for metrics too.
I create this ticket to discuss a bit and gather what you have in mind or other propositions.
Here are some points to open discussion:
- if you want to prepare your code/datasets on your machine (having internet connexion) but run it on another offline machine (not having internet connexion), it won't work as is, even if you have all files locally on this machine.
- AFAIK, you can make it work if you manually put the python files (csv.py for example) on this offline machine and change your code to `datasets.load_dataset("MY_PATH/csv.py", ...)`. But it would be much better if you could run ths same code without modification if files are available locally.
- I've also been considering the requirement of downloading Python code and execute on your machine to use datasets. This can be an issue in a professional context. Downloading a CSV/H5 file is acceptable, downloading an executable script can open many security issues. We certainly need a mechanism to at least "freeze" the dataset code you retrieved once so that you can review it if you want and then be sure you use this one everywhere and not a version dowloaded from internet.
WDYT? (thks)
here is my way to load a dataset offline, but it **requires** an online machine
1. (online machine)
```
import datasets
data = datasets.load_dataset(...)
data.save_to_disk(/YOUR/DATASET/DIR)
```
2. copy the dir from online to the offline machine
3. (offline machine)
```
import datasets
data = datasets.load_from_disk(/SAVED/DATA/DIR)
```
HTH. | [
-0.4902575016,
0.228895992,
-0.0332207307,
0.1388732046,
0.2363726199,
-0.0891150534,
0.5481942296,
0.0673725754,
0.2955960631,
0.2450514436,
-0.010174159,
-0.0694925338,
0.0276255757,
0.382728219,
-0.1057184488,
-0.0218466651,
-0.1530394554,
0.0536616556,
-0.1772285551,
0.0896227956,
-0.1652290076,
-0.0921337828,
-0.4337233305,
-0.0704060793,
-0.0181333106,
-0.1504259706,
-0.0832122415,
0.2194386572,
-0.166124925,
-0.2807516456,
0.2388210893,
0.1633140296,
0.2291972935,
0.4750614166,
-0.0001033812,
0.0263174474,
0.0082088541,
-0.0013798736,
-0.2269735932,
-0.4025883675,
-0.2158047259,
-0.528504312,
0.1796488166,
-0.4550705254,
-0.2032036185,
-0.0582041517,
-0.0745971128,
-0.4929271936,
0.3164803982,
0.3498671353,
0.2593776882,
0.5757413507,
-0.1358265281,
-0.2754446864,
-0.1606791317,
-0.1514875442,
-0.1493046135,
0.4366156459,
-0.014577236,
-0.0082132332,
-0.002577316,
0.0952332765,
-0.1961562634,
0.0413858108,
0.3163410425,
0.058681149,
-0.1016097218,
-0.101817742,
0.2198022306,
0.3930848241,
0.4261618257,
-0.2737804055,
-0.2470033467,
-0.3390045464,
-0.002341453,
-0.4567474425,
0.0788484961,
0.1836713552,
0.0242283866,
0.224884063,
-0.3797211051,
-0.3182395101,
-0.3313249946,
0.1638136655,
-0.3214629889,
0.0111696422,
-0.2536790967,
0.0693015605,
-0.0612446107,
0.0913350731,
-0.1768202633,
-0.2851530612,
0.0739112124,
-0.0619470812,
-0.259450078,
0.0268558636,
0.1183790267,
0.0684492439,
0.1312050968,
0.065205127,
0.2398014665,
-0.0188179947,
0.0791068226,
0.0497343354,
0.4407640696,
0.2978356183,
0.0075796153,
-0.1768718064,
0.5290127993,
0.0910337642,
-0.0241947919,
-0.298907429,
0.2565966845,
-0.3073078394,
0.1321208924,
0.013797991,
0.365409255,
-0.3048081398,
-0.1587882489,
-0.0139989052,
0.1392610371,
-0.0424630791,
0.1689323932,
0.2522922456,
-0.2716253102,
0.045141805,
0.0697744638,
0.3969353437,
-0.2989780605,
-0.2657656074,
-0.0589484647,
-0.1259197295,
-0.1128112897,
0.0637709945,
0.1789906472,
0.0000603851,
0.0520434976,
-0.0411281064,
0.2421655059,
-0.0735089928,
0.2981469631,
-0.0951725319,
0.0823781937,
0.2353081703,
0.2750584781,
-0.0874180123,
0.0769162476,
-0.2003218681,
0.0379156768,
0.0387906432,
-0.1426274031,
-0.3582572341,
0.1706569791,
0.2765567005,
-0.6289309263,
-0.1753666252,
-0.3216256499,
0.036759831,
-0.3161136508,
-0.1942733228,
-0.0308536477,
-0.0616712607,
-0.1780044734,
-0.2453662157,
0.3240106106,
0.5668387413,
-0.3839697242,
0.1050266922,
0.0844061002,
-0.160434112,
-0.1781923175,
0.0233988799,
-0.3148404956,
0.5233699083,
-0.013056282,
-0.3010380864,
0.5681836009,
-0.3550918102,
-0.2651602924,
0.2487460375,
-0.1917607188,
-0.1059658006,
-0.1038615704,
0.0901147425,
0.4400764406,
0.075048551,
-0.0843936652,
0.2890105844,
-0.0351712182,
0.0004677549,
-0.2186109722,
-0.2369782627,
0.167317763,
0.2837589085,
0.2555621862,
0.1129003465,
0.3047426641,
-0.1972569525,
0.0391630642,
-0.2821212113,
0.119166173,
0.1654856503,
0.1697202176,
0.1023967713,
-0.0442081504,
-0.182814911,
-0.4893229604,
0.2718417943,
0.0478837937,
0.1571957618,
-0.1992017031,
-0.1379158497,
-0.0203887746,
-0.1831315756,
-0.1769698411,
0.0272822306,
0.1410640329,
-0.1107873544,
0.1724626422,
0.1293684393,
-0.2598983645,
0.1782925874,
0.0107884333,
0.0024605952,
-0.1300738007,
0.2903398573,
-0.0492371991,
0.0645998716,
-0.0289289877,
0.088146925,
0.058180958,
-0.1937223822,
-0.1185830534,
0.5259699225,
-0.0300909504,
0.0616295636,
0.2687849998,
0.3818563521,
0.3064639568,
-0.012045607,
0.5338502526,
-0.0427262783,
0.3334376514,
-0.0925103724,
-0.3228543103,
0.7542520165,
-0.152575478,
0.2171272486,
0.102525942,
0.0183238387,
0.2599793077,
0.0012785867,
-0.4040776491,
-0.0359522179,
0.1184483021,
0.002245428,
0.1811370254,
-0.0850737095,
-0.3064594865,
-0.0152910985,
0.3312465549,
-0.0188397095,
0.1778850853,
-0.066074416,
-0.0304851793,
0.130604744,
-0.0831734315,
0.088768743,
0.5169286132,
0.2506964803,
0.0519571602,
0.2298255712,
-0.0313784443,
-0.2562144697,
0.1325668097,
0.2321357429,
0.0492411107,
0.0684338063,
0.1004821584,
-0.0237271003,
-0.2063811272,
-0.0520828813,
-0.0547189526,
0.0232720021,
-0.2868105173,
0.2843016088,
-0.2516607642,
-0.0163154155,
0.0470518097,
0.110789001,
-0.4484032989,
-0.2002997547,
0.0647203028,
0.0776966363,
-0.2318822294,
0.1336181462,
-0.1268716455,
0.3907523155,
-0.2403125912,
-0.238858059,
0.2622438073,
-0.4872460663,
-0.1227764189,
0.1072287858,
0.3064813912,
0.1311013848,
0.5087967515,
0.0214201435,
-0.0971538946,
-0.3305740952,
-0.15721789,
0.0155846924,
-0.0659363568,
0.277890712,
0.0809208825,
0.0578194782,
-0.0453807302,
0.3248305321,
0.3875049353,
-0.337492764,
0.2036763877,
0.1821807176,
-0.0564876422,
-0.0917128175,
-0.3432078958,
-0.4313036799,
-0.4415459931,
-0.3976590633,
0.1741934568,
0.0349773765,
-0.0529259034,
0.1827897877,
0.1519729495,
0.1029269546,
0.0166771337,
0.1853228807,
-0.1828434169,
-0.46745193,
0.1784860045,
-0.1808056533,
-0.6038360596,
0.2909510732,
0.2311564982,
0.1528016925,
0.3490707278,
-0.4436718225,
-0.3765626848,
0.0681064799,
0.415607065,
0.108577095,
0.3436668217,
0.343449235,
-0.0702811778,
-0.0382861346,
-0.0923798233,
0.0928399637,
0.176946938,
0.0589720458,
-0.1342714429,
0.03360622,
0.2543355227,
-0.0294251591,
0.3790818453,
-0.0375482477,
0.0918620899,
0.2364588231,
-0.1578765064,
0.6929187775,
-0.1827818453,
-0.1525170654,
-0.0394783355,
-0.05371131,
-0.3249541521,
0.2491017878,
0.0245229863,
0.0068163741,
-0.6647505164,
-0.0420179255,
-0.3744180799,
-0.4079520106,
0.0988640413,
0.1220590696,
0.3661220968,
0.1131863669,
0.2727555037,
-0.2575814128,
-0.0872168615,
-0.0868244246,
0.2532113791,
0.0775295123,
-0.0718221739,
-0.2494611293,
0.024586726,
-0.364916116,
0.380789876,
-0.1454291791,
0.19983235,
-0.0346334577,
-0.0230425522,
-0.0126951188,
-0.168279469,
0.3438606858,
-0.316939801,
-0.0129382275,
0.2967361212,
-0.067940414,
-0.3190102279,
0.065651156,
-0.2115929723,
-0.0245798025,
0.1876069009,
0.1661459208,
-0.1067496538,
-0.3034742177,
0.0126636364,
0.4440042377,
-0.2934579551,
-0.197615549,
-0.234057337,
-0.1652711928,
-0.344830513,
-0.0077201724,
-0.2022226751,
0.0696702451,
-0.1204333529,
0.1846715808,
-0.2544874847,
0.168771565,
-0.0028253645,
0.1041492969,
0.1279093623,
-0.2341516614,
0.2522113919,
0.2547444105,
0.1065212488,
0.3232455552,
0.3494310379,
-0.0530191548,
-0.2862736881,
0.168159619,
-0.0160190724,
0.3586545587,
0.3766715527,
-0.0966336951,
-0.1404377073,
0.1375193298,
0.2744403481,
-0.4191711843,
-0.1013085097,
0.1470345259,
0.1796004176,
-0.1190665066,
-0.3914576173,
0.2641131282,
0.1082140282,
-0.0258152038,
-0.0286950245,
0.1335443854,
-0.2077489197,
0.1910680234,
-0.111764811,
0.7465308309,
-0.0877657682,
0.2242861092,
0.2535331845,
0.0000773594,
0.4418724477,
-0.2145643532,
-0.0392789915,
-0.0410999358,
-0.2529998422,
-0.0048274323,
-0.0833427683,
0.4119869769,
0.0042821397,
-0.0889123231,
0.5612852573,
-0.0295867771,
0.2540517449,
-0.3048312366,
0.2157214731,
-0.023164209,
-0.2204273343,
-0.5347031951,
0.2236425281,
0.1193528771,
0.1017458737,
-0.195608899,
-0.2288062871,
0.0823681056,
0.0736491829,
0.0393218398,
-0.0716274977,
-0.0051055215,
0.0971569046,
-0.251177609,
-0.0116193816,
-0.0075244829,
0.1421697885,
0.3566615283,
0.1451169699,
-0.3017604649,
0.0237519424,
-0.3742337227,
0.1623162478,
0.0489316992,
0.2389557362,
0.1713682711,
-0.2298680842,
-0.2295825779,
0.0770820379,
-0.0900077671,
-0.0092648566,
0.4244616628,
-0.0489097163,
-0.0092920177,
-0.2348198742,
0.14177154,
0.1884101629,
0.1909559071,
-0.1208172888,
0.1698992848,
0.2535117865,
0.0531004295,
0.3266042471,
-0.1133796498,
-0.2221559286,
-0.2290590256,
0.324675709,
-0.1461772472,
-0.2163643539,
-0.0281654205,
0.2071456909,
-0.175781846,
-0.3009600043,
0.2828657627,
-0.0069940723,
-0.125973314,
0.233174637,
0.3803785145,
0.3927214742,
-0.1148346663,
0.2829951048,
0.0184743311,
-0.2470531166,
-0.0675078183,
-0.3831625581,
-0.2631473541,
0.204870224,
0.4791602194,
0.1200162694,
0.1498098522,
-0.0835260898,
0.0403612629,
-0.2564296424,
-0.4158099294,
0.0577496067,
-0.0461968444,
0.045512449,
0.2434918284,
-0.1222790331,
0.3542177379,
-0.2156260908,
0.0992887467,
-0.2353147566,
-0.3157809675,
-0.2837584913,
-0.0089735799,
0.1735138297,
-0.046274323,
-0.3089571595,
-0.0029456876,
-0.6132440567,
-0.3331041336,
-0.1570518911,
0.2411421835,
0.4147744477,
-0.1820588708,
-0.0197102129,
-0.1957207471,
0.4264013767,
-0.1901152581,
0.1095878035,
0.0468602702,
0.2768316865,
-0.0304182395,
0.275718689,
-0.0449676886,
0.0424676761,
-0.0480308793,
0.0965556055,
0.1639405787,
0.0903308839,
0.3923717141,
-0.2577674091,
0.154377073,
0.2673696876,
0.5688076019,
0.1975027025,
-0.0605363362,
0.2026238143,
0.1057219207,
0.2705930173,
-0.387204349,
0.0592557974,
-0.0068900827,
0.1027033478,
0.3957235515,
0.0998353064,
0.3355098963,
0.108952567,
-0.096362561,
-0.0129123405,
0.3361460268,
-0.1054277644,
0.2378422022,
0.1243171841,
0.0390204042,
0.1391028315,
0.0136831906,
0.4197915792,
-0.010713473,
0.3140262067,
-0.3290992975,
0.2428224236,
0.1165319979,
0.0871020555,
-0.297940582,
-0.4573817253,
0.2896074057,
0.0214379281,
-0.0385114439,
-0.1695444882,
-0.258063972,
0.1817522198,
-0.5244922638,
-0.0815280825,
-0.1498387158,
0.1035995483,
-0.0662675947,
0.0504696704,
-0.4011796415,
-0.3024998903,
-0.0331325084,
0.1197492853,
0.0892832428,
-0.0883324891,
-0.0261480696,
0.0244440269,
0.1078768298,
-0.2080109864,
0.1284508109,
0.0660773814,
0.0618914254,
-0.0348123983,
0.0230818633,
0.2032921314,
0.0634406507,
0.1143962592,
0.4303235412,
0.3389601409,
0.0386465192,
-0.1788983941,
0.1777809113,
-0.0188886449,
-0.1237885803,
-0.0961964577,
0.0878960788,
0.0156530105,
0.1670671403,
0.3728032112,
0.1951123029,
-0.2173009664,
0.3377451897,
-0.0706463307,
-0.1390173435,
-0.4647114277,
0.2669892907,
0.1912840754,
-0.1077179983,
-0.1194823906,
-0.2801832259,
-0.1833825856,
-0.1093610451,
0.3616842628,
0.0254850499,
0.1069909185,
-0.1845502555,
0.1272707134,
0.093040511,
0.4290939569,
0.182192713,
0.3078638911,
-0.2852387428,
0.111360088,
-0.8087353706,
-0.1501584798,
-0.1427769065,
0.2350053191,
-0.0523451716,
0.1085451841,
0.0847964436,
0.4387231767,
0.065914087,
0.1579317153,
0.1626467407,
-0.1813368797,
-0.2886348367,
-0.1446582526,
-0.0816257894,
-0.0860895291,
-0.0314257592,
-0.329349488,
0.0789925009,
-0.3852583468,
0.0262910277,
0.0775821805,
0.1974055767,
-0.2024393082,
-0.1328170747,
0.4599532485,
0.0243592765,
0.406457305,
0.156412825,
-0.1124191582,
-0.0652246624,
0.0353193097,
-0.0577739179,
0.1724693477,
-0.0338676125,
-0.0269053578,
-0.1379750073,
-0.1405132413,
-0.1662111878,
0.2008036971,
0.0666891783,
-0.0119729117,
-0.1137938499,
-0.03599976,
0.0867949128,
0.1418626457,
0.0072062165,
0.0431736521,
-0.1489286721,
0.2132106721,
-0.2026588023,
0.0453286171,
0.3393828273,
-0.0350234509,
0.012711674,
-0.3722335696,
0.3923755884,
0.1644824296,
0.0008877777,
-0.480407536,
0.2365407348,
0.3327224255,
-0.1532104313,
-0.1472788453,
0.3244406581,
-0.2522745728,
-0.2001630813,
0.007166937,
0.2544195056,
-0.2700772882,
-0.3051461279,
0.0650708824,
-0.140967682
] |
https://github.com/huggingface/datasets/issues/824 | Discussion using datasets in offline mode | > here is my way to load a dataset offline, but it **requires** an online machine
>
> 1. (online machine)
>
> ```
>
> import datasets
>
> data = datasets.load_dataset(...)
>
> data.save_to_disk(/YOUR/DATASET/DIR)
>
> ```
>
> 2. copy the dir from online to the offline machine
>
> 3. (offline machine)
>
> ```
>
> import datasets
>
> data = datasets.load_from_disk(/SAVED/DATA/DIR)
>
> ```
>
>
>
> HTH.
| `datasets.load_dataset("csv", ...)` breaks if you have no connection (There is already this issue https://github.com/huggingface/datasets/issues/761 about it). It seems to be the same for metrics too.
I create this ticket to discuss a bit and gather what you have in mind or other propositions.
Here are some points to open discussion:
- if you want to prepare your code/datasets on your machine (having internet connexion) but run it on another offline machine (not having internet connexion), it won't work as is, even if you have all files locally on this machine.
- AFAIK, you can make it work if you manually put the python files (csv.py for example) on this offline machine and change your code to `datasets.load_dataset("MY_PATH/csv.py", ...)`. But it would be much better if you could run ths same code without modification if files are available locally.
- I've also been considering the requirement of downloading Python code and execute on your machine to use datasets. This can be an issue in a professional context. Downloading a CSV/H5 file is acceptable, downloading an executable script can open many security issues. We certainly need a mechanism to at least "freeze" the dataset code you retrieved once so that you can review it if you want and then be sure you use this one everywhere and not a version dowloaded from internet.
WDYT? (thks)
| 76 | Discussion using datasets in offline mode
`datasets.load_dataset("csv", ...)` breaks if you have no connection (There is already this issue https://github.com/huggingface/datasets/issues/761 about it). It seems to be the same for metrics too.
I create this ticket to discuss a bit and gather what you have in mind or other propositions.
Here are some points to open discussion:
- if you want to prepare your code/datasets on your machine (having internet connexion) but run it on another offline machine (not having internet connexion), it won't work as is, even if you have all files locally on this machine.
- AFAIK, you can make it work if you manually put the python files (csv.py for example) on this offline machine and change your code to `datasets.load_dataset("MY_PATH/csv.py", ...)`. But it would be much better if you could run ths same code without modification if files are available locally.
- I've also been considering the requirement of downloading Python code and execute on your machine to use datasets. This can be an issue in a professional context. Downloading a CSV/H5 file is acceptable, downloading an executable script can open many security issues. We certainly need a mechanism to at least "freeze" the dataset code you retrieved once so that you can review it if you want and then be sure you use this one everywhere and not a version dowloaded from internet.
WDYT? (thks)
> here is my way to load a dataset offline, but it **requires** an online machine
>
> 1. (online machine)
>
> ```
>
> import datasets
>
> data = datasets.load_dataset(...)
>
> data.save_to_disk(/YOUR/DATASET/DIR)
>
> ```
>
> 2. copy the dir from online to the offline machine
>
> 3. (offline machine)
>
> ```
>
> import datasets
>
> data = datasets.load_from_disk(/SAVED/DATA/DIR)
>
> ```
>
>
>
> HTH.
| [
-0.4992600083,
0.2269977331,
-0.0324693024,
0.1418719739,
0.2369507551,
-0.1029172316,
0.5442943573,
0.0744110718,
0.2753630877,
0.244288221,
-0.0088337958,
-0.0665395111,
0.0280855931,
0.3756227791,
-0.0988997519,
-0.0419556126,
-0.1623333395,
0.056354966,
-0.1830364764,
0.1076542586,
-0.1633778065,
-0.0869514346,
-0.4333002269,
-0.0625078529,
-0.01593858,
-0.1606817842,
-0.0798979253,
0.2115719467,
-0.1717495322,
-0.2845187783,
0.2436341643,
0.166500926,
0.1988917738,
0.4731352627,
-0.0001034733,
0.0370239317,
0.0119213238,
0.0104892775,
-0.2277318984,
-0.38495785,
-0.2243471444,
-0.514649272,
0.1638062894,
-0.4546643794,
-0.2070111483,
-0.0379571207,
-0.06889119,
-0.5084750652,
0.3095599711,
0.3518120348,
0.2570661306,
0.5904164314,
-0.1282706261,
-0.2792428136,
-0.1558482349,
-0.1522630602,
-0.1556978524,
0.4283838868,
-0.0172952414,
0.0013685562,
-0.0222436674,
0.1041299924,
-0.175234735,
0.0346601903,
0.3222214282,
0.0672788844,
-0.1097401306,
-0.0845902562,
0.2206330299,
0.3967527151,
0.4247177839,
-0.2884345651,
-0.2519188821,
-0.3396162987,
-0.0075889863,
-0.4678500295,
0.0960983038,
0.1565520018,
0.0217527188,
0.2291809916,
-0.39443174,
-0.3091627359,
-0.3443602026,
0.1524473876,
-0.3242220581,
0.0023708455,
-0.2609035671,
0.0710142627,
-0.061125122,
0.0929870978,
-0.197912246,
-0.2828267813,
0.0606515482,
-0.0742604285,
-0.2604793012,
0.0141299143,
0.1201806068,
0.0637012422,
0.1402422637,
0.0588374659,
0.2486956418,
-0.009835097,
0.097968854,
0.0510388389,
0.4422776997,
0.2957023382,
0.0074488893,
-0.189539209,
0.541659832,
0.0993705764,
-0.0075668544,
-0.2980294228,
0.2820798159,
-0.3101066649,
0.1336490512,
0.0073756054,
0.3609675467,
-0.2954883277,
-0.1674436629,
-0.0125403311,
0.1405458599,
-0.0426561236,
0.1835254282,
0.2483589053,
-0.2873736918,
0.0299903117,
0.0637681484,
0.3856898844,
-0.2997949123,
-0.2546655834,
-0.0616325177,
-0.1359128505,
-0.129157871,
0.0727538243,
0.1864257157,
0.0080416873,
0.0445537642,
-0.0334911346,
0.2402401268,
-0.0691182166,
0.3054916263,
-0.1039342135,
0.0785031021,
0.2336847484,
0.2520387173,
-0.0957671627,
0.0624966212,
-0.1969118118,
0.0382461995,
0.0410585776,
-0.1074668616,
-0.3596407473,
0.1783694178,
0.2726854086,
-0.6226012111,
-0.171065405,
-0.3079633713,
0.0581853762,
-0.306432277,
-0.1984428018,
-0.015349742,
-0.0460299477,
-0.1935951561,
-0.2405312359,
0.3376948833,
0.5559728146,
-0.3982941508,
0.0968976989,
0.0791641176,
-0.1771890521,
-0.1863670051,
0.0195539258,
-0.3082571924,
0.5199756026,
-0.0187853165,
-0.2941871881,
0.5648751259,
-0.3655904531,
-0.2701429725,
0.2469821274,
-0.1869647801,
-0.1120412871,
-0.0934416056,
0.0912888125,
0.4447421134,
0.0852879584,
-0.095922932,
0.2809373736,
-0.0458618104,
-0.0005543381,
-0.2211628109,
-0.2394605726,
0.1544380337,
0.2881149054,
0.2723817527,
0.0969029665,
0.309170723,
-0.19527255,
0.0280248597,
-0.2787553072,
0.1350964606,
0.1634457111,
0.1533003747,
0.0920097977,
-0.0438160002,
-0.1929366142,
-0.4884026647,
0.2647081614,
0.0410781875,
0.1632883996,
-0.2042589784,
-0.1388628185,
-0.0210514329,
-0.1890709996,
-0.1622338593,
0.0133328885,
0.1397611499,
-0.1002768502,
0.1611436158,
0.1137792915,
-0.2563471794,
0.179952696,
0.0201561376,
0.0074800923,
-0.1385114938,
0.2693669796,
-0.05760362,
0.0668185353,
-0.0368149094,
0.0932567269,
0.0424022414,
-0.1958926767,
-0.1061080173,
0.5290291309,
-0.0309693404,
0.0468528681,
0.2650732994,
0.3803908825,
0.3248946667,
-0.0113374293,
0.5266869664,
-0.0440166369,
0.3241904974,
-0.0970289707,
-0.3409504294,
0.7555661201,
-0.152432248,
0.2127020955,
0.111229226,
0.0115106925,
0.2655914128,
0.0024922565,
-0.4044695497,
-0.0297387689,
0.103205815,
0.0016842131,
0.1952836365,
-0.0857538804,
-0.3268736601,
-0.002108641,
0.34893924,
-0.0138922371,
0.1751537621,
-0.0613358878,
-0.0318149105,
0.1201427579,
-0.0734538957,
0.0859295651,
0.5219721794,
0.2544084191,
0.0612385683,
0.230702281,
-0.0414705314,
-0.2559100986,
0.1367945075,
0.2250436842,
0.0342359878,
0.0703129023,
0.0828345716,
-0.0354550518,
-0.2182727903,
-0.0521008298,
-0.0413507,
0.016514698,
-0.2833808959,
0.2871288061,
-0.2482630461,
-0.0287770331,
0.0571508147,
0.132700637,
-0.449996084,
-0.1922507882,
0.0758110359,
0.0834263414,
-0.2347822487,
0.1367863715,
-0.1147690266,
0.4157852232,
-0.2417860031,
-0.2162093818,
0.2557032108,
-0.4892721772,
-0.1254086047,
0.1139195636,
0.2904764116,
0.1211071908,
0.5174891353,
0.0182193145,
-0.0972280651,
-0.3355351985,
-0.161065504,
0.0355823897,
-0.0712831616,
0.2829787135,
0.0933508128,
0.0530735515,
-0.0671635866,
0.3253513277,
0.3937316239,
-0.3271920085,
0.1934456825,
0.1792645305,
-0.0497173853,
-0.0871892869,
-0.3529947996,
-0.4282161593,
-0.4320698977,
-0.3919802904,
0.1926204264,
0.0132440999,
-0.0574365966,
0.1898371428,
0.1482217759,
0.1165279895,
0.0058472678,
0.1889000237,
-0.1883191317,
-0.4760990441,
0.1688492596,
-0.1892997175,
-0.601670146,
0.2806209922,
0.2295088172,
0.1657631993,
0.3582721949,
-0.4448156059,
-0.3781501949,
0.0732920393,
0.4401057065,
0.1102425233,
0.3342655897,
0.35336411,
-0.0593588948,
-0.0430469587,
-0.0973871872,
0.0781203955,
0.1909290552,
0.051617682,
-0.1234369278,
0.0378183201,
0.2629092038,
-0.0286334939,
0.4023732245,
-0.0331205912,
0.0967803895,
0.2285628319,
-0.1566260755,
0.700389564,
-0.1845093071,
-0.1487711668,
-0.0188667811,
-0.0512378514,
-0.3176402748,
0.2477184683,
0.0202706195,
0.0034447256,
-0.6579141021,
-0.0308889039,
-0.3640888631,
-0.4101667702,
0.1023245007,
0.1237965897,
0.3612009883,
0.1131154522,
0.284620285,
-0.2655316591,
-0.0806794912,
-0.0837900266,
0.2637240887,
0.0705903396,
-0.0821332037,
-0.2368570417,
0.0353906713,
-0.3795099854,
0.3788214922,
-0.1252357513,
0.1993347853,
-0.0494947173,
-0.0205664225,
-0.015860904,
-0.1601909101,
0.3575392962,
-0.3219276369,
-0.0184351355,
0.3051732779,
-0.0723782778,
-0.3048910201,
0.0750041455,
-0.2185465097,
-0.0187091902,
0.1801495105,
0.169519797,
-0.1195449978,
-0.3004765511,
0.016726356,
0.4310731888,
-0.2822126746,
-0.1958411634,
-0.2220247239,
-0.1508186907,
-0.3353961706,
0.0113306604,
-0.1939941347,
0.0724308044,
-0.104258433,
0.1709121466,
-0.2531688809,
0.1641309857,
-0.0168911442,
0.112128675,
0.1209592968,
-0.2463968545,
0.2492659986,
0.2544645667,
0.1075445488,
0.315895915,
0.336990118,
-0.0578447767,
-0.2881177068,
0.1851858497,
-0.0216394141,
0.3540463448,
0.3804877996,
-0.1084252074,
-0.1297906637,
0.156283468,
0.2772310972,
-0.4221794009,
-0.1058234572,
0.1520665884,
0.1899353713,
-0.1318843067,
-0.3830702305,
0.2421083301,
0.1058468372,
-0.0428113788,
-0.0279098526,
0.1405663788,
-0.2162886113,
0.1657758653,
-0.1204747558,
0.746324122,
-0.0853947923,
0.2261953205,
0.2716044188,
-0.0105990916,
0.4589013457,
-0.21827057,
-0.0172339249,
-0.0299439877,
-0.2580791712,
-0.0018669739,
-0.0838018581,
0.410569638,
0.0120972283,
-0.1015061662,
0.5569255352,
0.002353698,
0.262174964,
-0.3156483769,
0.2068288773,
-0.0262681432,
-0.2241600603,
-0.5295380354,
0.2227850556,
0.1116932705,
0.0908095837,
-0.196596846,
-0.2296914458,
0.0892055333,
0.0733066127,
0.0209832639,
-0.0881580859,
-0.0147265568,
0.0910441875,
-0.2471249998,
-0.0113250017,
0.0023110658,
0.1168783009,
0.3662894964,
0.1540873647,
-0.3008586764,
0.04076989,
-0.3916715682,
0.1758880466,
0.0431925096,
0.2353015244,
0.1732372046,
-0.2316588163,
-0.2294980586,
0.0711229369,
-0.0932987332,
-0.022983402,
0.44661358,
-0.0534591749,
-0.0299994536,
-0.2270330489,
0.1701969355,
0.1872000694,
0.1742007285,
-0.127259165,
0.169012785,
0.2469744086,
0.0646357834,
0.3324846625,
-0.1185626537,
-0.223436296,
-0.2319292426,
0.3323864937,
-0.1481752098,
-0.2163783163,
-0.0340101831,
0.2127753794,
-0.1911339909,
-0.3022421896,
0.2718288302,
0.0050802641,
-0.1282937229,
0.2343994379,
0.3882582486,
0.3762426376,
-0.1151657328,
0.2702777386,
0.0319873691,
-0.2423065603,
-0.0731430054,
-0.3703364134,
-0.2799701989,
0.2077269852,
0.4752344191,
0.1235134602,
0.1477684528,
-0.0800834,
0.0471661612,
-0.2568989992,
-0.4148227274,
0.0427973196,
-0.0579890907,
0.0490952916,
0.2588079572,
-0.1258110553,
0.3629029691,
-0.2199745774,
0.0944313854,
-0.2352961302,
-0.3346164823,
-0.283824712,
-0.0065520294,
0.1733447164,
-0.044216305,
-0.3215040565,
-0.0092090964,
-0.5947594643,
-0.33346802,
-0.1524946988,
0.2498437464,
0.4137350619,
-0.1798788905,
-0.0268013142,
-0.1973176152,
0.4317833781,
-0.1764412224,
0.0949152261,
0.063005887,
0.2877398431,
-0.0342387855,
0.2798077464,
-0.0504023321,
0.0382332057,
-0.0291260779,
0.1064662412,
0.1639819443,
0.0792929679,
0.3910474181,
-0.2540488839,
0.1430633962,
0.2583361268,
0.5726849437,
0.1912140697,
-0.0539068021,
0.1875458956,
0.0983947515,
0.271559,
-0.3790972233,
0.0600377731,
-0.0015359763,
0.1076109111,
0.4134905934,
0.0845968798,
0.3291352391,
0.1103392094,
-0.0963396132,
-0.0093081482,
0.3304799795,
-0.1119161174,
0.2232806385,
0.1307686418,
0.0439185426,
0.1417953521,
0.0311190691,
0.4378814995,
-0.0079676136,
0.3239935637,
-0.3390363157,
0.2351371497,
0.1155499071,
0.112771973,
-0.2816658318,
-0.4408524036,
0.287896961,
0.0305656567,
-0.0485544242,
-0.182086423,
-0.2464104146,
0.1819260567,
-0.526037991,
-0.0845426023,
-0.1453717947,
0.0936667472,
-0.0773523599,
0.0639609993,
-0.4059836268,
-0.3086444139,
-0.0317538455,
0.1227743551,
0.0772297829,
-0.0736874342,
-0.0024295002,
0.0145098688,
0.1101319864,
-0.2059515864,
0.1357243806,
0.0530861579,
0.0674323738,
-0.0314456895,
0.0315848812,
0.2038816214,
0.0759632513,
0.1162949353,
0.4558699727,
0.325094521,
0.0279589295,
-0.1732876748,
0.1791210175,
-0.0174091756,
-0.1257012337,
-0.108502239,
0.096777156,
0.0271149836,
0.1316804439,
0.3657480478,
0.1895967871,
-0.2076843977,
0.3444927335,
-0.0761375129,
-0.150482893,
-0.4568807483,
0.2505192161,
0.1846468896,
-0.1169919968,
-0.1064551771,
-0.2874949276,
-0.1889009774,
-0.108304657,
0.3725975454,
0.0194761716,
0.1105333716,
-0.1914427131,
0.1280117631,
0.1018798053,
0.4391469359,
0.1733889282,
0.2939248979,
-0.2876732945,
0.115993619,
-0.8045651913,
-0.1493819505,
-0.1259219795,
0.2573931813,
-0.051809296,
0.1091891378,
0.0875612348,
0.4373387694,
0.0744641647,
0.1585407257,
0.1727097034,
-0.1801649928,
-0.3003026843,
-0.1347000748,
-0.0624393485,
-0.1002139747,
-0.0315277912,
-0.3196187019,
0.0919972956,
-0.3633931875,
0.0229151174,
0.0673180148,
0.2042247802,
-0.2061326504,
-0.1297552288,
0.441678226,
0.0433068722,
0.395085752,
0.1441103965,
-0.1122507155,
-0.0528953522,
0.037974976,
-0.0639389008,
0.1701035351,
-0.0361086056,
-0.032888636,
-0.1144764125,
-0.1413639784,
-0.1595003605,
0.2147668898,
0.0632856041,
-0.0111291744,
-0.1094944924,
-0.0361577123,
0.0775910094,
0.133577913,
0.0008275062,
0.0445997119,
-0.1451620013,
0.2125578672,
-0.2044011056,
0.0314982086,
0.3339626789,
-0.0340642557,
0.0181129053,
-0.3719016612,
0.383459568,
0.1742334366,
-0.0068175998,
-0.4931707978,
0.2285160124,
0.3217989206,
-0.1685985625,
-0.1405644417,
0.3053507209,
-0.2599487901,
-0.1895598471,
0.0004527643,
0.2614337802,
-0.2595775127,
-0.2974054515,
0.0570859537,
-0.1473937631
] |
https://github.com/huggingface/datasets/issues/824 | Discussion using datasets in offline mode | I opened a PR that allows to reload modules that have already been loaded once even if there's no internet.
Let me know if you know other ways that can make the offline mode experience better. I'd be happy to add them :)
I already note the "freeze" modules option, to prevent local modules updates. It would be a cool feature.
----------
> @mandubian's second bullet point suggests that there's a workaround allowing you to use your offline (custom?) dataset with `datasets`. Could you please elaborate on how that should look like?
Indeed `load_dataset` allows to load remote dataset script (squad, glue, etc.) but also you own local ones.
For example if you have a dataset script at `./my_dataset/my_dataset.py` then you can do
```python
load_dataset("./my_dataset")
```
and the dataset script will generate your dataset once and for all.
----------
About I'm looking into having `csv`, `json`, `text`, `pandas` dataset builders already included in the `datasets` package, so that they are available offline by default, as opposed to the other datasets that require the script to be downloaded.
cf #1724 | `datasets.load_dataset("csv", ...)` breaks if you have no connection (There is already this issue https://github.com/huggingface/datasets/issues/761 about it). It seems to be the same for metrics too.
I create this ticket to discuss a bit and gather what you have in mind or other propositions.
Here are some points to open discussion:
- if you want to prepare your code/datasets on your machine (having internet connexion) but run it on another offline machine (not having internet connexion), it won't work as is, even if you have all files locally on this machine.
- AFAIK, you can make it work if you manually put the python files (csv.py for example) on this offline machine and change your code to `datasets.load_dataset("MY_PATH/csv.py", ...)`. But it would be much better if you could run ths same code without modification if files are available locally.
- I've also been considering the requirement of downloading Python code and execute on your machine to use datasets. This can be an issue in a professional context. Downloading a CSV/H5 file is acceptable, downloading an executable script can open many security issues. We certainly need a mechanism to at least "freeze" the dataset code you retrieved once so that you can review it if you want and then be sure you use this one everywhere and not a version dowloaded from internet.
WDYT? (thks)
| 179 | Discussion using datasets in offline mode
`datasets.load_dataset("csv", ...)` breaks if you have no connection (There is already this issue https://github.com/huggingface/datasets/issues/761 about it). It seems to be the same for metrics too.
I create this ticket to discuss a bit and gather what you have in mind or other propositions.
Here are some points to open discussion:
- if you want to prepare your code/datasets on your machine (having internet connexion) but run it on another offline machine (not having internet connexion), it won't work as is, even if you have all files locally on this machine.
- AFAIK, you can make it work if you manually put the python files (csv.py for example) on this offline machine and change your code to `datasets.load_dataset("MY_PATH/csv.py", ...)`. But it would be much better if you could run ths same code without modification if files are available locally.
- I've also been considering the requirement of downloading Python code and execute on your machine to use datasets. This can be an issue in a professional context. Downloading a CSV/H5 file is acceptable, downloading an executable script can open many security issues. We certainly need a mechanism to at least "freeze" the dataset code you retrieved once so that you can review it if you want and then be sure you use this one everywhere and not a version dowloaded from internet.
WDYT? (thks)
I opened a PR that allows to reload modules that have already been loaded once even if there's no internet.
Let me know if you know other ways that can make the offline mode experience better. I'd be happy to add them :)
I already note the "freeze" modules option, to prevent local modules updates. It would be a cool feature.
----------
> @mandubian's second bullet point suggests that there's a workaround allowing you to use your offline (custom?) dataset with `datasets`. Could you please elaborate on how that should look like?
Indeed `load_dataset` allows to load remote dataset script (squad, glue, etc.) but also you own local ones.
For example if you have a dataset script at `./my_dataset/my_dataset.py` then you can do
```python
load_dataset("./my_dataset")
```
and the dataset script will generate your dataset once and for all.
----------
About I'm looking into having `csv`, `json`, `text`, `pandas` dataset builders already included in the `datasets` package, so that they are available offline by default, as opposed to the other datasets that require the script to be downloaded.
cf #1724 | [
-0.4716480076,
0.2902275026,
-0.0476719961,
0.1334419996,
0.2106888145,
-0.2122252285,
0.5858260393,
0.0534164049,
0.2833414078,
0.1841127574,
0.0310597196,
0.0326386429,
0.0011812896,
0.3333255649,
-0.0721438676,
-0.0585421398,
-0.1905427128,
-0.0051049367,
-0.1658581644,
0.0827916414,
-0.0870347396,
-0.1724686623,
-0.4247154891,
-0.1195316166,
-0.0675604194,
-0.168815136,
-0.0242114812,
0.2116723955,
-0.1926145852,
-0.4453734457,
0.2666608691,
0.200029254,
0.1570939124,
0.4229854047,
-0.000104336,
0.0591885746,
0.0797743648,
0.0126057714,
-0.2829336822,
-0.3505375981,
-0.2376177013,
-0.4724885821,
0.2454895377,
-0.4179921448,
-0.1765558422,
-0.031971246,
-0.1149641201,
-0.496465534,
0.2549799085,
0.3332006335,
0.2521954179,
0.5795012116,
-0.1773816943,
-0.2577660382,
-0.0930707902,
-0.0455759913,
-0.2170030475,
0.4130178392,
0.1451811939,
-0.0119967833,
-0.0917474329,
0.0427965559,
-0.2056657076,
0.0555353463,
0.3426392972,
0.0692111552,
-0.1012875587,
-0.0757474303,
0.1654936969,
0.4096831381,
0.4384511709,
-0.2788177431,
-0.233787626,
-0.3661538064,
-0.0599905178,
-0.415805757,
0.0579963252,
0.0842629373,
-0.0501416549,
0.2703290582,
-0.4178497195,
-0.2782535851,
-0.3631695807,
0.1871723086,
-0.2958257794,
0.0800979808,
-0.2190461457,
0.0571910664,
-0.0345733128,
0.1217103302,
-0.1603944898,
-0.2874975801,
0.1231969297,
-0.0552335605,
-0.2458189428,
-0.0483221933,
0.173365891,
0.0262079407,
0.1455964744,
0.1075296253,
0.1663128436,
0.0554695018,
0.0069582909,
0.0516368598,
0.4685063958,
0.2116458118,
0.011062542,
-0.2097330987,
0.549405396,
0.1489726007,
0.0090583712,
-0.2340755314,
0.2657731473,
-0.2524653077,
0.0911978632,
0.0700878873,
0.3765209913,
-0.321493119,
-0.022985369,
0.035314098,
0.1597324461,
-0.0621038638,
0.1616376787,
0.1747794747,
-0.2847245932,
0.0129403919,
-0.0295247808,
0.3609694839,
-0.277133882,
-0.3468533456,
-0.0389764532,
-0.211864382,
-0.1780508757,
0.0920446143,
0.245518446,
0.030936528,
0.0510608181,
-0.0147728473,
0.2424400151,
-0.0368466079,
0.3018394113,
-0.0809502825,
0.0659481734,
0.2120589912,
0.1196173579,
-0.076570034,
0.1248596907,
-0.1560156643,
0.006711632,
0.0666681826,
-0.0514347143,
-0.4386139214,
0.2374289483,
0.2237864584,
-0.6274785995,
-0.1871653795,
-0.1969017684,
0.0777900591,
-0.3017686605,
-0.1738763303,
0.0214955322,
0.0755848289,
-0.1690935791,
-0.2382546961,
0.2987492383,
0.6010070443,
-0.5180040598,
0.0819054395,
0.0458037183,
-0.1816395819,
-0.1889690012,
0.0283212028,
-0.3945122063,
0.5864567161,
0.0039407164,
-0.3889361024,
0.5678291917,
-0.3095942438,
-0.3093517423,
0.2875798047,
-0.1802514344,
-0.0595032349,
-0.0382035933,
0.1196887717,
0.4773572981,
0.0809496939,
-0.0078137517,
0.2666750848,
-0.0770241618,
-0.009541966,
-0.2956811786,
-0.2896498144,
0.0985428393,
0.296525836,
0.2704699337,
0.1280690581,
0.3454582691,
-0.2366927862,
0.0276604537,
-0.1362003088,
0.136351198,
0.0990997106,
0.2330275476,
0.1239426583,
-0.069523409,
-0.1321178228,
-0.5115548968,
0.3242625594,
0.0397506356,
0.1621358097,
-0.2056601793,
-0.1533108056,
-0.0401655063,
-0.2169201374,
-0.1385663897,
-0.0377863422,
0.1234515384,
-0.0895905644,
0.0869744644,
0.1763070822,
-0.2977672219,
0.1351611316,
-0.0182936899,
-0.0051477812,
-0.1500220001,
0.3400149941,
-0.0314369574,
0.0565063469,
-0.1015016437,
0.0904148519,
0.0123004615,
-0.1740995049,
-0.1055455804,
0.483792305,
0.0415285081,
0.1183544844,
0.2707462013,
0.423281759,
0.3186860085,
0.0245527327,
0.560336411,
-0.1271900237,
0.3274111748,
-0.1185180247,
-0.3417671323,
0.7027894258,
-0.1783435643,
0.2728158534,
0.1150311977,
-0.0340052024,
0.2038814723,
-0.0940223262,
-0.404440999,
-0.0952031761,
0.06635499,
0.0030856263,
0.1993394047,
0.0168771576,
-0.2931218445,
0.0504618883,
0.3374172449,
0.0135316551,
0.1364232004,
-0.0604641549,
-0.0171774141,
0.1130497754,
-0.0254901461,
0.1378798485,
0.5132738352,
0.2308205664,
0.0430373102,
0.3077919185,
0.0352876931,
-0.2593404353,
0.118897289,
0.168757543,
-0.0185088273,
0.1212385222,
0.0963390768,
-0.0117987152,
-0.1399934441,
-0.031938199,
0.0038124621,
0.0590351894,
-0.3146698475,
0.2902596593,
-0.3545606732,
-0.0279134177,
0.0130219758,
0.1309273988,
-0.4807071984,
-0.2102814764,
0.1170057356,
0.0569219589,
-0.2447338104,
0.1712927669,
-0.0877071172,
0.4514833391,
-0.2693451047,
-0.2608879805,
0.2427782416,
-0.5937600732,
-0.065543592,
0.0848004594,
0.3401409984,
0.1822127253,
0.5658237934,
0.0593990535,
-0.1411338747,
-0.2710399926,
-0.1447019875,
0.0892938375,
-0.0116075743,
0.3152151108,
0.1083982661,
0.0203313939,
0.0270705596,
0.400249809,
0.3858611584,
-0.2979999781,
0.1902171969,
0.1272394359,
-0.0945449919,
-0.0322717093,
-0.3383328319,
-0.4963890016,
-0.3992333412,
-0.4677612185,
0.1700814366,
-0.0527769476,
0.0107021593,
0.2297783047,
0.2038753927,
0.1109458059,
-0.0705158412,
0.1104865596,
-0.1722418517,
-0.4613297284,
0.1450522393,
-0.1792817414,
-0.4937445521,
0.2537625432,
0.2192483842,
0.1917006522,
0.3427469432,
-0.5899967551,
-0.3177877069,
0.1043316424,
0.3914315701,
0.1040236205,
0.2679331899,
0.393320322,
-0.0794319808,
-0.0585554652,
-0.0903850421,
0.0574980676,
0.2076744735,
0.056401711,
-0.109103322,
0.1494558454,
0.2685925066,
0.0167623311,
0.5026165843,
-0.0798342153,
0.1098169759,
0.2587999701,
-0.1174222007,
0.7056581974,
-0.1825233102,
-0.1671549827,
-0.0413852818,
0.0148816854,
-0.3247095048,
0.1728411466,
-0.0179822482,
-0.015906753,
-0.6336122751,
-0.0798165202,
-0.2484520078,
-0.4550783038,
0.1834677011,
0.1597406417,
0.324778378,
0.1058614254,
0.2193621099,
-0.2707965374,
-0.0256444868,
-0.0919203162,
0.263263166,
-0.0149523579,
-0.0774900168,
-0.2507241368,
0.1369999945,
-0.3115709424,
0.2955724597,
-0.1352506578,
0.2162644863,
-0.04390705,
-0.0313426405,
0.0826731771,
-0.0391840562,
0.2991418242,
-0.4082177877,
-0.094369188,
0.3293498755,
-0.0216433927,
-0.3531906903,
0.0764371008,
-0.1722094715,
0.0019432567,
0.1599158049,
0.1581934988,
-0.0679431409,
-0.3483628631,
-0.0060394248,
0.3597087264,
-0.2774301171,
-0.2177669406,
-0.200128004,
-0.0423306227,
-0.4275079072,
-0.005213879,
-0.2545890808,
-0.0984356254,
-0.0803569108,
0.1182887405,
-0.154492408,
0.2191765755,
-0.1380104423,
0.0739965662,
0.1102331504,
-0.3203084171,
0.2273413241,
0.2977681756,
0.0553013049,
0.3309392333,
0.3506477475,
-0.1181177199,
-0.1482795626,
0.2086241841,
-0.043347016,
0.4113819897,
0.4854651093,
-0.0095936991,
-0.0846013576,
0.1447084099,
0.2892352939,
-0.4037903845,
-0.1615220606,
0.1078801379,
0.0592983477,
-0.1000854969,
-0.4673404396,
0.1834893227,
-0.0405341238,
-0.0738387257,
-0.0035254676,
0.1294171214,
-0.1851623356,
0.2416016757,
-0.0919819698,
0.8122491837,
0.0263651554,
0.2219541371,
0.1739804745,
-0.0078910664,
0.4734131098,
-0.3028859198,
-0.0455840901,
-0.0602654889,
-0.0436437279,
0.0182211399,
-0.0760405138,
0.4410828054,
0.0106896795,
-0.2054697275,
0.4934929311,
-0.0749414414,
0.2824132144,
-0.3375299871,
0.1076016352,
0.0202242304,
-0.2264789939,
-0.520398438,
0.202824235,
0.1081513166,
0.1028199419,
-0.1851933002,
-0.2435836047,
0.0342527255,
0.1493041217,
0.0095667243,
-0.1898498833,
-0.052605886,
0.030810222,
-0.2059031725,
0.0560679734,
0.0032340661,
0.0450263545,
0.3648869097,
0.1468628198,
-0.3398709297,
0.0138867218,
-0.3556907773,
0.1691974401,
0.0360776037,
0.1752618253,
0.1566659063,
-0.1985950619,
-0.3344649374,
0.0011107679,
-0.1116640344,
-0.0255517811,
0.4310034811,
-0.0548416674,
0.0942339003,
-0.2805890441,
0.1767488867,
0.2303110361,
0.2608221471,
-0.093561396,
0.1746455431,
0.2110821158,
0.0750602484,
0.388412267,
-0.1253615916,
-0.2212530822,
-0.2144704312,
0.3347359896,
-0.1247461289,
-0.1553387493,
-0.0833653957,
0.2226355076,
-0.1695811152,
-0.3365005851,
0.3025309741,
-0.0054208823,
-0.2230083942,
0.1986406744,
0.3504718542,
0.2963170409,
-0.0260180999,
0.2046553791,
0.0102532366,
-0.1880025715,
-0.1679407507,
-0.2753775716,
-0.3178844452,
0.1660074294,
0.453355521,
0.1563887596,
0.0473574027,
-0.0970103294,
-0.0148070231,
-0.2212061435,
-0.4241659343,
0.066050142,
-0.0683548525,
0.0864296705,
0.2857180536,
-0.1539194882,
0.3005246818,
-0.28752321,
0.0720486492,
-0.2119684666,
-0.4271265864,
-0.2759726644,
-0.0565469265,
0.1780340225,
-0.0375333242,
-0.3255495429,
-0.0270782225,
-0.5326867104,
-0.3123993278,
-0.1282407045,
0.2727521658,
0.4409958124,
-0.1296403855,
0.0053060465,
-0.2117780596,
0.5039593577,
-0.1466332078,
0.162312299,
0.029629549,
0.3317890465,
0.0089616142,
0.2038320303,
-0.0991155431,
0.0761971921,
0.0818032771,
0.1574379206,
0.2122735977,
0.1228736192,
0.4452154934,
-0.1462512016,
0.1563674659,
0.2498921752,
0.5009363294,
0.162901938,
-0.0704719871,
0.121659182,
0.2080477029,
0.2638336122,
-0.3340936303,
0.006575413,
0.073872596,
0.1430095434,
0.3401827216,
0.1444491744,
0.4526940286,
0.0953586847,
0.005178893,
0.0126381181,
0.3435199559,
-0.0753499269,
0.2237221301,
0.0738918185,
0.0469857901,
0.0596652851,
-0.0378163531,
0.3901122808,
0.047124669,
0.2782618403,
-0.3217487037,
0.2200016677,
0.0860397071,
0.1509742588,
-0.2448892295,
-0.4754568338,
0.4114567637,
0.0712679029,
-0.1015758738,
-0.1877400428,
-0.2861891091,
0.2244448066,
-0.3701641858,
-0.0536599383,
-0.0775002018,
0.0845381767,
-0.0699012876,
0.088595055,
-0.3811102509,
-0.3510328829,
-0.0735944659,
0.1183508039,
0.0528443754,
-0.0241109952,
0.0272614043,
-0.0347059034,
0.0938966572,
-0.3102188706,
0.1447045356,
0.0402175859,
0.0982590467,
-0.0307616629,
0.0310808662,
0.1860678792,
0.0218682084,
0.1400455236,
0.4324547648,
0.2805571556,
0.0885330141,
-0.1821985245,
0.1789680421,
0.0096467882,
-0.0614572652,
-0.1308431476,
0.0728377402,
0.0065970905,
0.1147892922,
0.3294236958,
0.158629179,
-0.1999017447,
0.358838439,
-0.130503282,
-0.2217883468,
-0.497071892,
0.2396004945,
0.2392929792,
-0.1237455606,
-0.0584076196,
-0.2656488717,
-0.2500069141,
-0.2632139027,
0.4473288655,
-0.009919472,
0.149507761,
-0.2325066179,
0.110477224,
-0.0039673727,
0.4872246087,
0.1359926909,
0.2626900375,
-0.2467207015,
0.1591036022,
-0.8487068415,
-0.1010246873,
-0.1350576878,
0.2625235021,
-0.0060986746,
0.0703934655,
0.1294201165,
0.4974672794,
0.0732406378,
0.1348398924,
0.1989407539,
-0.1726143956,
-0.3112727404,
-0.1594678909,
-0.0758784413,
-0.0788232535,
-0.068321906,
-0.2402741909,
0.0617131293,
-0.3475411534,
-0.0013598353,
0.0275617428,
0.1004273444,
-0.0879149064,
-0.0120238699,
0.5188183188,
0.0286141392,
0.3453912735,
0.3027182817,
-0.1201031357,
-0.1079943776,
0.0716170147,
-0.0232582912,
0.0583465882,
-0.0380430222,
-0.0517745465,
-0.1984517276,
-0.2123388052,
-0.2314855307,
0.2240797877,
0.0803290978,
0.0231621191,
-0.0777488053,
-0.0508503467,
0.0900445804,
0.1569568813,
-0.0631008744,
0.0342962332,
-0.0961916149,
0.2404282838,
-0.2528862655,
0.0804956779,
0.3342809081,
0.0179552697,
0.0175154209,
-0.376180768,
0.3429670334,
0.2321784794,
0.0176306907,
-0.5226223469,
0.0929992646,
0.3145463765,
-0.1564721912,
-0.043336954,
0.325845927,
-0.2541508973,
-0.1967096031,
0.0114061385,
0.2230952084,
-0.2774822116,
-0.2227729261,
0.0650162101,
-0.117977269
] |
https://github.com/huggingface/datasets/issues/824 | Discussion using datasets in offline mode | The local dataset builders (csv, text , json and pandas) are now part of the `datasets` package since #1726 :)
You can now use them offline
```python
datasets = load_dataset('text', data_files=data_files)
```
We'll do a new release soon | `datasets.load_dataset("csv", ...)` breaks if you have no connection (There is already this issue https://github.com/huggingface/datasets/issues/761 about it). It seems to be the same for metrics too.
I create this ticket to discuss a bit and gather what you have in mind or other propositions.
Here are some points to open discussion:
- if you want to prepare your code/datasets on your machine (having internet connexion) but run it on another offline machine (not having internet connexion), it won't work as is, even if you have all files locally on this machine.
- AFAIK, you can make it work if you manually put the python files (csv.py for example) on this offline machine and change your code to `datasets.load_dataset("MY_PATH/csv.py", ...)`. But it would be much better if you could run ths same code without modification if files are available locally.
- I've also been considering the requirement of downloading Python code and execute on your machine to use datasets. This can be an issue in a professional context. Downloading a CSV/H5 file is acceptable, downloading an executable script can open many security issues. We certainly need a mechanism to at least "freeze" the dataset code you retrieved once so that you can review it if you want and then be sure you use this one everywhere and not a version dowloaded from internet.
WDYT? (thks)
| 38 | Discussion using datasets in offline mode
`datasets.load_dataset("csv", ...)` breaks if you have no connection (There is already this issue https://github.com/huggingface/datasets/issues/761 about it). It seems to be the same for metrics too.
I create this ticket to discuss a bit and gather what you have in mind or other propositions.
Here are some points to open discussion:
- if you want to prepare your code/datasets on your machine (having internet connexion) but run it on another offline machine (not having internet connexion), it won't work as is, even if you have all files locally on this machine.
- AFAIK, you can make it work if you manually put the python files (csv.py for example) on this offline machine and change your code to `datasets.load_dataset("MY_PATH/csv.py", ...)`. But it would be much better if you could run ths same code without modification if files are available locally.
- I've also been considering the requirement of downloading Python code and execute on your machine to use datasets. This can be an issue in a professional context. Downloading a CSV/H5 file is acceptable, downloading an executable script can open many security issues. We certainly need a mechanism to at least "freeze" the dataset code you retrieved once so that you can review it if you want and then be sure you use this one everywhere and not a version dowloaded from internet.
WDYT? (thks)
The local dataset builders (csv, text , json and pandas) are now part of the `datasets` package since #1726 :)
You can now use them offline
```python
datasets = load_dataset('text', data_files=data_files)
```
We'll do a new release soon | [
-0.4490856528,
0.2095054239,
-0.0598190427,
0.1293509007,
0.2621913552,
-0.1312853545,
0.5469624996,
0.094926253,
0.3154378533,
0.229429841,
0.0510416031,
-0.0031601824,
0.0479415469,
0.4036771059,
-0.1032219082,
-0.1191791892,
-0.1096809506,
0.0806225017,
-0.1709274352,
0.0925045013,
-0.1816659868,
-0.0897297785,
-0.375077188,
-0.02556438,
-0.1049849689,
-0.1746608615,
-0.1071388125,
0.1566955298,
-0.2103749961,
-0.3327203393,
0.2491126955,
0.117587395,
0.1634250879,
0.4241682589,
-0.0000999822,
0.0421327725,
0.1069070622,
0.0379947647,
-0.2203463465,
-0.4199149311,
-0.1981753409,
-0.4793080688,
0.2418377995,
-0.4018018246,
-0.1757843792,
-0.1275007129,
-0.0598851666,
-0.4807882905,
0.2974671423,
0.3426453769,
0.2918210626,
0.5356068015,
-0.0803364068,
-0.281391561,
-0.1216638014,
-0.0586191006,
-0.1778593361,
0.4252822101,
0.073358506,
-0.0123805404,
-0.0838819146,
0.088844955,
-0.153162837,
0.0956418365,
0.3111797571,
0.0713059753,
-0.0924656987,
-0.1528345197,
0.20285514,
0.3944055736,
0.4603191912,
-0.3109179735,
-0.2949765921,
-0.3411377072,
-0.0479006954,
-0.4361877739,
0.1274559945,
0.144174546,
0.0090279803,
0.2339818329,
-0.363272965,
-0.2975681722,
-0.3418585062,
0.1694958955,
-0.2816992998,
0.0181082264,
-0.251675427,
0.0413686484,
-0.0832414106,
0.0752856582,
-0.1551527977,
-0.3205256462,
0.0986209214,
-0.0793623775,
-0.1888290942,
-0.0165280253,
0.1534261703,
0.0081908107,
0.1217982993,
0.0751492232,
0.1525348574,
-0.0060459464,
0.0926287174,
0.0680219308,
0.4427144229,
0.3181470633,
0.0188532434,
-0.2447728366,
0.5638325214,
0.0607472919,
-0.0046465471,
-0.288261205,
0.32976228,
-0.2873257101,
0.0361538008,
-0.016087845,
0.3358915746,
-0.2712703943,
-0.091683954,
0.060436435,
0.1495237499,
-0.0821655542,
0.1536676884,
0.2071380764,
-0.2203722298,
0.0295785964,
0.0346230939,
0.3958788812,
-0.2415042222,
-0.2347961217,
-0.1089485586,
-0.1066202223,
-0.1055880561,
0.0744719654,
0.1888151765,
-0.0131082628,
0.1214133799,
-0.0402391739,
0.2105216682,
-0.0341557302,
0.2786375284,
-0.1574519575,
0.0479973145,
0.250037998,
0.1872583032,
-0.1062333584,
0.056779746,
-0.235569641,
0.0381216258,
-0.0035798904,
-0.0436259732,
-0.4049872756,
0.0963068604,
0.2798323035,
-0.5623067617,
-0.1680534035,
-0.254843235,
0.1297742128,
-0.2823056281,
-0.0971257836,
0.0206760503,
-0.0097446479,
-0.144950822,
-0.1983081996,
0.2390826344,
0.5462023616,
-0.4452932179,
0.0876849294,
0.1217833683,
-0.1871847808,
-0.1759931445,
0.0642030686,
-0.3430987298,
0.5343937278,
0.0517566055,
-0.2778854668,
0.5229828954,
-0.3582612872,
-0.2345204204,
0.2888363898,
-0.1610274166,
-0.1441385746,
-0.0667054951,
0.0498311482,
0.3899848461,
0.1192974523,
0.0001431927,
0.2431016713,
-0.0564482138,
0.0195684358,
-0.25364393,
-0.3235280812,
0.1407216042,
0.2494025826,
0.306522578,
0.1239901483,
0.2792353034,
-0.2578687072,
-0.0405987725,
-0.2623429,
0.1654424071,
0.1579187661,
0.2099306285,
0.1023166776,
-0.0483680554,
-0.2059115916,
-0.4760777652,
0.2252600193,
0.0336995348,
0.2320871949,
-0.2302146554,
-0.1496609002,
-0.0083721019,
-0.1797088087,
-0.1597638726,
-0.0425266027,
0.169149816,
-0.1388688684,
0.1849660277,
0.1760530323,
-0.3189760149,
0.1439104676,
-0.0562649556,
0.0259878747,
-0.1155405641,
0.2796706855,
-0.0809458569,
0.0231990479,
0.0426412374,
0.0838679969,
-0.0070755053,
-0.1859929115,
-0.1073730886,
0.4920403361,
-0.0600105971,
0.050864324,
0.3152619302,
0.3613802791,
0.3560881317,
0.0397633165,
0.5095074177,
-0.1218387708,
0.3111968338,
-0.077045396,
-0.3356870413,
0.6987389922,
-0.1456816494,
0.2038486302,
0.09568277,
0.0029152855,
0.3142011464,
-0.0028086901,
-0.3935574889,
-0.0653397143,
0.0797716677,
-0.044440344,
0.2148955464,
-0.06781023,
-0.3889366388,
-0.0229988061,
0.3756245971,
-0.0001697615,
0.18453224,
-0.0001414609,
0.0194932111,
0.0627444535,
-0.0596954674,
0.0841191933,
0.5141712427,
0.2386393696,
0.037967559,
0.2522862852,
-0.0703072846,
-0.3152326941,
0.139531672,
0.2154927701,
0.0092462786,
0.0789782405,
0.0899726003,
-0.0033897422,
-0.3099718392,
-0.0535688885,
-0.0292127635,
0.0814722255,
-0.2326785922,
0.2459435016,
-0.3154211938,
-0.0520226359,
0.0422405116,
0.1119520515,
-0.4437068999,
-0.2312447727,
0.0868268311,
0.0358302854,
-0.284226656,
0.1475003213,
-0.0897431821,
0.452481091,
-0.2049714327,
-0.1387585849,
0.127931878,
-0.5095143318,
-0.1033305228,
0.1338715553,
0.3391271532,
0.147960633,
0.4992557168,
0.0086944401,
-0.077284947,
-0.2907173336,
-0.1874981821,
0.0661976039,
-0.0880846977,
0.3189201951,
0.0668637305,
0.0481219701,
-0.0487564877,
0.2254384011,
0.4193472266,
-0.3061969876,
0.1707164347,
0.0855855569,
-0.0520993657,
-0.1553401947,
-0.3459168673,
-0.4872056246,
-0.4130055904,
-0.4035481811,
0.2704852223,
0.0267378688,
-0.0292493813,
0.1243088543,
0.1580390036,
0.1001050174,
-0.0176100787,
0.2050558925,
-0.2188566774,
-0.4933137,
0.1240407974,
-0.2316742092,
-0.5781066418,
0.2055903077,
0.196812436,
0.1813328266,
0.2394962758,
-0.4866478145,
-0.3747960329,
0.0422544032,
0.3973845243,
0.1870752424,
0.3177501261,
0.3660064936,
-0.0246633627,
-0.0766314417,
-0.0784318522,
0.0246570334,
0.2000741214,
0.0979022086,
-0.125400126,
0.0741907805,
0.3168510199,
-0.0595364831,
0.4317925572,
-0.0111076199,
0.049613595,
0.2642005384,
-0.1114135012,
0.6812884212,
-0.2694678009,
-0.1440416873,
0.0132908002,
-0.0587884337,
-0.2512542605,
0.2106077969,
0.0157656968,
-0.0362559445,
-0.6542548537,
-0.0097010881,
-0.4030842781,
-0.3856416941,
0.0840889737,
0.1315909624,
0.3249264657,
0.122077018,
0.2325806171,
-0.280195415,
0.007006567,
-0.0742467344,
0.2477314174,
0.0617588572,
-0.0998938605,
-0.2681432962,
0.0095031448,
-0.3775519133,
0.3366510868,
-0.1258386523,
0.2580757439,
-0.0771155655,
-0.0305211283,
0.0071712658,
-0.1293208897,
0.3594410419,
-0.3762840033,
-0.161465764,
0.2891311646,
-0.0968552381,
-0.2732842863,
0.0844875872,
-0.1972354949,
0.0496089309,
0.1447999626,
0.276050657,
-0.0842938945,
-0.3076014817,
0.0610600896,
0.3504801691,
-0.2497555465,
-0.1882374436,
-0.1717923284,
-0.1545350403,
-0.3299387693,
0.0528566986,
-0.231711328,
0.0491167307,
-0.0869799703,
0.1136036143,
-0.1949682832,
0.1558349729,
-0.0642605722,
0.0974737555,
0.0733734071,
-0.2716411948,
0.227279067,
0.2307700515,
0.116103135,
0.3351898491,
0.3377731144,
-0.1233747229,
-0.2471135855,
0.1811087132,
-0.0564751178,
0.3620426059,
0.4465488195,
-0.0729881674,
-0.0975173712,
0.1527468115,
0.2758130729,
-0.4200823009,
-0.1456191093,
0.2055273056,
0.1781525165,
-0.0686931387,
-0.3760145605,
0.2442404926,
0.1129938066,
-0.053322807,
0.0150266355,
0.1230348647,
-0.1884620786,
0.221402958,
-0.0593033396,
0.7759783268,
-0.0680398345,
0.1573245674,
0.228528887,
-0.0460275225,
0.4807917178,
-0.3189831078,
0.0172790512,
-0.0401393771,
-0.194119364,
0.0036330372,
-0.1070230976,
0.4337171316,
-0.0415781662,
-0.0733081996,
0.5114356279,
0.0493931472,
0.3181041777,
-0.3153349161,
0.243824482,
-0.0738770589,
-0.207910195,
-0.5192411542,
0.2445136905,
0.118478246,
0.0833027214,
-0.2140756547,
-0.2424926758,
0.0730287954,
0.0449504629,
-0.0016670227,
-0.168386966,
0.0244139656,
0.090091452,
-0.1606263369,
-0.0268595219,
-0.0101532079,
0.1060672253,
0.4375315905,
0.1366584748,
-0.3299782574,
0.0077859759,
-0.3949729204,
0.1577673256,
0.0260522068,
0.2085132599,
0.2068136036,
-0.21949476,
-0.2341139615,
0.0194649473,
-0.1111904532,
-0.0431633517,
0.3716796041,
-0.0979481339,
-0.0760405138,
-0.2462711632,
0.1823982298,
0.202929914,
0.1959367841,
-0.1174173579,
0.2011953294,
0.2146030962,
0.1222192347,
0.3525843322,
-0.1376917809,
-0.2014675587,
-0.293789804,
0.3205302358,
-0.0845632404,
-0.1777494848,
-0.0722344518,
0.210657537,
-0.235344246,
-0.3138155043,
0.2293092906,
0.0463148765,
-0.1134408265,
0.2572052181,
0.3315890431,
0.2462124377,
-0.1465494037,
0.2690944076,
0.0718532652,
-0.1856535524,
-0.0777810514,
-0.3274829388,
-0.3413882256,
0.2560742795,
0.4513745308,
0.1558259428,
0.1147599071,
-0.0552762374,
0.0866395161,
-0.1971689016,
-0.4408750534,
0.0679853484,
-0.1029257998,
0.066028595,
0.2493935227,
-0.1730813682,
0.3766612411,
-0.1902837157,
0.105073534,
-0.171530351,
-0.3376750648,
-0.3105431199,
0.0400700346,
0.145928055,
-0.0123580918,
-0.296729058,
-0.025279941,
-0.5543740988,
-0.3203248084,
-0.1349170357,
0.2085363269,
0.4151899219,
-0.1913513541,
0.0276022218,
-0.1867490262,
0.3740750551,
-0.0389037505,
0.0819929391,
0.0325931497,
0.3030620515,
-0.0030835122,
0.2432995439,
-0.029510824,
0.0430571437,
0.0253945328,
0.1072603613,
0.085173279,
0.1314204931,
0.4154763818,
-0.2244158983,
0.1076884121,
0.2965526581,
0.5483068824,
0.214541629,
-0.0864289328,
0.1891993433,
0.1614544243,
0.300129503,
-0.363579452,
0.0032811388,
0.024339959,
0.136928767,
0.3610410094,
0.0615081042,
0.4126155674,
0.0223248154,
-0.079930976,
0.0220954232,
0.3285092711,
-0.1095593274,
0.2245308459,
0.1235150769,
0.063542068,
0.1075258404,
0.082286194,
0.4751993418,
0.0161654428,
0.3380535841,
-0.2761099935,
0.1901884973,
0.0358075462,
0.1610103399,
-0.1996581405,
-0.380330205,
0.3735855818,
0.0126123205,
-0.0909584165,
-0.2275027782,
-0.2277348787,
0.2517726719,
-0.4506417513,
-0.061012961,
-0.1715684533,
0.1333214343,
-0.1218127087,
0.0248820968,
-0.3979064822,
-0.317638278,
0.0156256855,
0.1247269213,
0.0711784661,
-0.0480275862,
0.0062546022,
-0.0422288142,
0.077286467,
-0.1869500726,
0.1966547817,
-0.0445922054,
0.0962103382,
-0.0109024197,
0.0259185713,
0.2208538949,
-0.0055051818,
0.0531308427,
0.4975897372,
0.3380309641,
0.0415273197,
-0.2303497493,
0.1456164718,
-0.0522004887,
-0.1474361122,
-0.1049357951,
0.1791232973,
0.037331976,
0.1159128025,
0.3794887364,
0.2081172168,
-0.2256068289,
0.3958682716,
-0.1164236665,
-0.1157171056,
-0.428956002,
0.2367640436,
0.2151344419,
-0.1547249258,
-0.041834943,
-0.3053733706,
-0.1934446692,
-0.1661631763,
0.4117173553,
-0.0005021282,
0.1332308054,
-0.2520871758,
0.1497873217,
0.100720793,
0.4505889416,
0.1846734434,
0.2423730195,
-0.2392033041,
0.0792943239,
-0.6985381842,
-0.1670781374,
-0.1281258166,
0.3263780475,
-0.0735842437,
0.105752781,
0.11156784,
0.4124394059,
-0.0063054636,
0.1760139316,
0.059698198,
-0.2131682038,
-0.3156426549,
-0.0660587549,
-0.1222008988,
-0.1291182041,
0.0074624494,
-0.2276922762,
0.1430801302,
-0.3369759321,
0.0381982476,
0.0014547911,
0.2213782519,
-0.1770866513,
-0.1268333048,
0.4185492098,
0.1040813401,
0.3364288509,
0.1634541452,
-0.0826342329,
-0.0467553474,
-0.002988115,
-0.0648395419,
0.1943532377,
-0.0771052167,
-0.0347645991,
-0.169500187,
-0.174857825,
-0.1651415676,
0.1906276494,
0.0405407101,
0.0237383395,
-0.1428372562,
-0.0490610413,
0.0587351918,
0.0616862401,
0.0528451279,
0.0825136453,
-0.1166020259,
0.2132485658,
-0.1673639715,
0.0156507194,
0.3196125627,
-0.069375433,
0.0099123493,
-0.3681221008,
0.2837967277,
0.2504242957,
-0.034255214,
-0.4602264166,
0.1561256349,
0.2961422503,
-0.1832103431,
-0.1591358483,
0.297079742,
-0.2199119329,
-0.1853585541,
-0.0506603196,
0.1897989511,
-0.2244892418,
-0.2536678016,
0.0138352364,
-0.1592070609
] |
https://github.com/huggingface/datasets/issues/823 | how processing in batch works in datasets | Hi I don’t think this is a request for a dataset like you labeled it.
I also think this would be better suited for the forum at https://discuss.huggingface.co. we try to keep the issue for the repo for bug reports and new features/dataset requests and have usage questions discussed on the forum. Thanks. | Hi,
I need to process my datasets before it is passed to dataloader in batch,
here is my codes
```
class AbstractTask(ABC):
task_name: str = NotImplemented
preprocessor: Callable = NotImplemented
split_to_data_split: Mapping[str, str] = NotImplemented
tokenizer: Callable = NotImplemented
max_source_length: str = NotImplemented
max_target_length: str = NotImplemented
# TODO: should not be a task item, but cannot see other ways.
tpu_num_cores: int = None
# The arguments set are for all tasks and needs to be kept common.
def __init__(self, config):
self.max_source_length = config['max_source_length']
self.max_target_length = config['max_target_length']
self.tokenizer = config['tokenizer']
self.tpu_num_cores = config['tpu_num_cores']
def _encode(self, batch) -> Dict[str, torch.Tensor]:
batch_encoding = self.tokenizer.prepare_seq2seq_batch(
[x["src_texts"] for x in batch],
tgt_texts=[x["tgt_texts"] for x in batch],
max_length=self.max_source_length,
max_target_length=self.max_target_length,
padding="max_length" if self.tpu_num_cores is not None else "longest", # TPU hack
return_tensors="pt"
)
return batch_encoding.data
def data_split(self, split):
return self.split_to_data_split[split]
def get_dataset(self, split, n_obs=None):
split = self.data_split(split)
if n_obs is not None:
split = split+"[:{}]".format(n_obs)
dataset = load_dataset(self.task_name, split=split)
dataset = dataset.map(self.preprocessor, remove_columns=dataset.column_names)
dataset = dataset.map(lambda batch: self._encode(batch), batched=True)
dataset.set_format(type="torch", columns=['input_ids', 'token_type_ids', 'attention_mask', 'label'])
return dataset
```
I call it like
`AutoTask.get(task, train_dataset_config).get_dataset(split="train", n_obs=data_args.n_train)
`
This gives the following error, to me because the data inside the dataset = dataset.map(lambda batch: self._encode(batch), batched=True) is not processed in batch, could you tell me how I can process dataset in batch inside my function? thanks
File "finetune_multitask_trainer.py", line 192, in main
if training_args.do_train else None
File "finetune_multitask_trainer.py", line 191, in <dictcomp>
split="train", n_obs=data_args.n_train) for task in data_args.task}
File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks.py", line 56, in get_dataset
dataset = dataset.map(lambda batch: self._encode(batch), batched=True)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1236, in map
update_data = does_function_return_dict(test_inputs, test_indices)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1207, in does_function_return_dict
function(*fn_args, indices, **fn_kwargs) if with_indices else function(*fn_args, **fn_kwargs)
File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks.py", line 56, in <lambda>
dataset = dataset.map(lambda batch: self._encode(batch), batched=True)
File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks.py", line 37, in _encode
[x["src_texts"] for x in batch],
File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks.py", line 37, in <listcomp>
[x["src_texts"] for x in batch],
TypeError: string indices must be integers
| 53 | how processing in batch works in datasets
Hi,
I need to process my datasets before it is passed to dataloader in batch,
here is my codes
```
class AbstractTask(ABC):
task_name: str = NotImplemented
preprocessor: Callable = NotImplemented
split_to_data_split: Mapping[str, str] = NotImplemented
tokenizer: Callable = NotImplemented
max_source_length: str = NotImplemented
max_target_length: str = NotImplemented
# TODO: should not be a task item, but cannot see other ways.
tpu_num_cores: int = None
# The arguments set are for all tasks and needs to be kept common.
def __init__(self, config):
self.max_source_length = config['max_source_length']
self.max_target_length = config['max_target_length']
self.tokenizer = config['tokenizer']
self.tpu_num_cores = config['tpu_num_cores']
def _encode(self, batch) -> Dict[str, torch.Tensor]:
batch_encoding = self.tokenizer.prepare_seq2seq_batch(
[x["src_texts"] for x in batch],
tgt_texts=[x["tgt_texts"] for x in batch],
max_length=self.max_source_length,
max_target_length=self.max_target_length,
padding="max_length" if self.tpu_num_cores is not None else "longest", # TPU hack
return_tensors="pt"
)
return batch_encoding.data
def data_split(self, split):
return self.split_to_data_split[split]
def get_dataset(self, split, n_obs=None):
split = self.data_split(split)
if n_obs is not None:
split = split+"[:{}]".format(n_obs)
dataset = load_dataset(self.task_name, split=split)
dataset = dataset.map(self.preprocessor, remove_columns=dataset.column_names)
dataset = dataset.map(lambda batch: self._encode(batch), batched=True)
dataset.set_format(type="torch", columns=['input_ids', 'token_type_ids', 'attention_mask', 'label'])
return dataset
```
I call it like
`AutoTask.get(task, train_dataset_config).get_dataset(split="train", n_obs=data_args.n_train)
`
This gives the following error, to me because the data inside the dataset = dataset.map(lambda batch: self._encode(batch), batched=True) is not processed in batch, could you tell me how I can process dataset in batch inside my function? thanks
File "finetune_multitask_trainer.py", line 192, in main
if training_args.do_train else None
File "finetune_multitask_trainer.py", line 191, in <dictcomp>
split="train", n_obs=data_args.n_train) for task in data_args.task}
File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks.py", line 56, in get_dataset
dataset = dataset.map(lambda batch: self._encode(batch), batched=True)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1236, in map
update_data = does_function_return_dict(test_inputs, test_indices)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1207, in does_function_return_dict
function(*fn_args, indices, **fn_kwargs) if with_indices else function(*fn_args, **fn_kwargs)
File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks.py", line 56, in <lambda>
dataset = dataset.map(lambda batch: self._encode(batch), batched=True)
File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks.py", line 37, in _encode
[x["src_texts"] for x in batch],
File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks.py", line 37, in <listcomp>
[x["src_texts"] for x in batch],
TypeError: string indices must be integers
Hi I don’t think this is a request for a dataset like you labeled it.
I also think this would be better suited for the forum at https://discuss.huggingface.co. we try to keep the issue for the repo for bug reports and new features/dataset requests and have usage questions discussed on the forum. Thanks. | [
-0.5023795962,
-0.1743946373,
-0.2295022607,
0.1301574856,
0.1780351698,
0.0317949429,
0.2955617309,
0.1713046879,
-0.1484706402,
0.1780764759,
0.0091216601,
0.1247807667,
0.0641203597,
0.2456233948,
-0.0561649241,
-0.0358914286,
-0.0745974705,
0.0483772233,
0.109609209,
0.0072341412,
-0.3676090837,
0.0689974129,
-0.4043072462,
0.0522340983,
-0.2230466604,
-0.2693564594,
-0.0612451322,
-0.0392568074,
-0.0044130441,
-0.1525889635,
-0.0022256896,
0.2334949672,
0.2088392973,
0.4326501489,
-0.0001049565,
0.07853093,
0.2467756122,
0.0393825397,
-0.2903358638,
0.2226278782,
-0.0494008623,
-0.1695531607,
-0.1062983572,
-0.3042086959,
-0.1008368433,
-0.0860009193,
-0.1385593414,
-0.3374301195,
0.3848309219,
0.1753831804,
0.2844721079,
0.2802548707,
-0.1476053298,
0.1414174289,
0.061004363,
0.0714531988,
0.0851127356,
-0.3902094066,
0.0682317764,
0.1479270756,
-0.0484065339,
0.149620384,
-0.2720300257,
0.0859411061,
-0.255097419,
0.0218880586,
0.0260984655,
-0.3847027123,
0.0884851888,
-0.1349759102,
0.2846593559,
-0.2123627365,
-0.2440749556,
-0.3842583001,
-0.2724654675,
-0.4653170109,
-0.026979018,
0.1131324843,
-0.0684821904,
0.1012711301,
-0.078587763,
0.2408466339,
-0.0737225488,
-0.1666946113,
0.1114269346,
0.2568108737,
-0.2119236588,
0.2198818475,
0.0700411201,
0.0887887925,
0.164814949,
-0.2350717932,
-0.0004336915,
0.2723603249,
-0.4907974005,
-0.0871191248,
-0.1117742956,
-0.1519906223,
-0.140895471,
0.0541604944,
-0.1284126192,
0.127230227,
0.3161277771,
0.1564185023,
-0.0295963027,
0.1643565297,
0.1187210828,
0.2562066615,
-0.0771183595,
-0.305059731,
-0.2260432094,
0.0277570654,
-0.0785890073,
-0.3298463821,
0.1471388042,
0.3610410094,
0.2499244362,
0.0302776545,
-0.4871647358,
-0.0903921351,
-0.0190419927,
-0.0580976233,
0.1420927942,
0.2845918536,
-0.2407626808,
0.2508463264,
-0.0810258165,
-0.1523168981,
-0.2926350534,
-0.0461962782,
-0.3027382791,
-0.1152572408,
-0.1496195048,
0.0702789053,
0.1349774152,
-0.1721605659,
0.3239180148,
0.0755831152,
0.0962862223,
-0.1746602356,
0.5014523864,
-0.3949417174,
0.2224127501,
0.2599139512,
0.1795817763,
0.2426500618,
0.0532014184,
0.209766373,
0.0399613976,
0.0737814531,
-0.6257677674,
-0.1791180074,
0.2474630326,
0.3138490915,
-0.0505519807,
0.0014610155,
-0.5935840607,
-0.0869222134,
0.321326822,
0.0906266943,
0.1197095513,
-0.1754255295,
-0.1859958768,
-0.1946794987,
0.2003967911,
0.0852582902,
-0.4504100084,
0.067932941,
-0.1153643578,
-0.3227444291,
0.5454283357,
0.1242685989,
-0.1138667464,
0.6199546456,
-0.3095549345,
0.3783025742,
0.1937190741,
-0.3189391196,
-0.2815087438,
0.5390693545,
-0.2575122118,
0.0180870369,
0.0398206897,
0.0325070769,
0.5586621165,
-0.0602870621,
0.0362302326,
0.3787435591,
-0.1192288175,
0.0902984962,
-0.0995702371,
0.1156373546,
0.0859537572,
-0.0174081475,
0.1038927585,
0.0438636392,
-0.2167431712,
-0.0445536897,
0.1737816036,
0.053499002,
0.2965996265,
0.2496743053,
0.0114941541,
0.2087978125,
0.1932464391,
-0.0454121307,
-0.2964653969,
0.0957320482,
-0.0203326046,
-0.1832335293,
0.0405644067,
-0.3565834761,
-0.1427382082,
0.1464837343,
-0.4080841839,
-0.1703143716,
0.2187933922,
0.0912242681,
0.0223606601,
-0.3133271337,
0.0051414147,
0.3289262056,
-0.0184368193,
0.032012485,
-0.1938539445,
-0.0220454633,
0.0078475513,
-0.150763616,
-0.0613339394,
-0.0791999996,
0.2228214294,
0.0074301772,
-0.0493341684,
0.3533653319,
0.2747452557,
0.0639956072,
-0.0365162119,
-0.1238466501,
-0.0102489349,
0.1141476482,
-0.0905263573,
-0.035854429,
0.2171732783,
-0.1256068349,
0.2478307486,
0.4252819121,
-0.0469337367,
0.265758574,
-0.0382557698,
-0.2736453414,
0.2264526337,
-0.0702167004,
-0.0428676084,
0.1976915449,
-0.0458722711,
0.0015260465,
0.3408340216,
0.0440049767,
-0.0559479706,
0.1770871729,
0.4273034334,
-0.0043448508,
-0.1692030877,
-0.0192306787,
-0.208304897,
0.1080088168,
0.1594959199,
-0.0258412808,
0.1219081208,
0.1693718582,
0.1196483374,
-0.1023143083,
0.1045234501,
-0.0379633941,
0.082029961,
0.3170749545,
0.1805197746,
0.1618742645,
-0.0916256979,
-0.0561813824,
-0.0036793724,
-0.1100692004,
0.1913621277,
0.2398844957,
-0.3654332161,
0.2132199109,
-0.1459296495,
-0.0898105204,
-0.1511178166,
-0.0314461924,
0.1613284051,
-0.1398266256,
-0.0764071047,
0.2173888385,
-0.1582914889,
0.0283090565,
-0.0862445086,
0.0393376797,
0.2715222836,
-0.3807460964,
-0.1608629823,
-0.0596178472,
-0.1818825603,
0.2018621415,
0.0678684711,
0.1080865338,
0.4683222771,
0.0514344573,
0.038785059,
-0.1155500561,
-0.152218014,
0.0778786838,
-0.1976523697,
0.176710248,
0.0169448629,
0.1401748359,
-0.1079594195,
-0.3839945495,
0.1391076446,
-0.1839411557,
-0.3313494623,
-0.0855728164,
-0.0173466485,
0.0405007638,
-0.2087074965,
-0.4318085909,
-0.2330214828,
-0.1791113317,
0.021623617,
-0.0695499927,
0.2032479346,
-0.0093693919,
-0.0178896189,
0.1497214586,
0.2623845637,
-0.1572468281,
-0.0877213776,
-0.4881262183,
0.1246122122,
-0.2836301327,
-0.0197323598,
-0.0922572464,
-0.1024709046,
0.4223549962,
0.3086385429,
-0.1903934181,
0.1180603206,
-0.0889259875,
0.2408320308,
-0.097753793,
-0.0265350919,
0.195407629,
-0.0789329708,
-0.0996646285,
-0.1173350811,
0.0736230686,
0.117698051,
-0.2414382994,
0.0647149831,
-0.0177846588,
0.6492410302,
-0.019282721,
0.911616087,
0.0870947987,
-0.087478362,
0.1329249442,
0.0044230446,
-0.1579395682,
-0.0129762627,
-0.3009169102,
0.090745315,
0.0279778168,
-0.1869364977,
0.1928883195,
-0.1721879542,
-0.0085579138,
0.0702765584,
-0.0171477944,
-0.6442946196,
-0.0674670041,
0.0769529641,
0.0041395598,
0.3435700834,
-0.1565952599,
0.0682595223,
-0.2833535373,
-0.0590693504,
-0.0908283964,
0.0464697108,
0.2381595075,
-0.1836911291,
-0.3598335981,
0.0888357162,
-0.2709054351,
0.2956252396,
0.0668395087,
0.3335527778,
0.02760344,
-0.0400169119,
0.1112623662,
-0.1317254901,
0.7860841751,
-0.044302173,
0.067516759,
0.0571945086,
-0.2433979213,
-0.1615102589,
-0.0845037699,
-0.3391534686,
0.2083998024,
0.5520213246,
0.2944177389,
-0.2110377848,
-0.3628802299,
0.0173127465,
-0.1886416078,
-0.1648464203,
-0.2995321453,
-0.3377783,
-0.1493662596,
-0.3823867142,
0.3109838367,
0.2597948909,
0.1134822816,
-0.4368880093,
-0.371288836,
-0.305701375,
-0.0896343142,
0.1953642666,
-0.066538468,
0.0286606513,
0.0238973461,
0.2161181718,
0.0219963677,
0.2875387669,
0.3828946352,
0.2126959264,
-0.1729637384,
-0.3372835815,
0.1827809364,
-0.0983873904,
0.4843108952,
0.0285965316,
-0.2987979054,
0.3437285423,
-0.0373795554,
0.1920201033,
-0.4507605135,
0.5018007755,
0.4323754311,
0.1806504875,
-0.5321657658,
-0.5739415288,
0.1534674168,
0.3390219212,
-0.0980344862,
0.1371525675,
-0.2328920215,
-0.2770262957,
0.100988239,
0.1951021254,
0.6205470562,
-0.0256135687,
-0.0886719376,
0.101747781,
0.2892378867,
0.0658003241,
-0.2064577341,
0.102658242,
-0.3231613636,
0.0041053817,
0.0323343873,
-0.1772435158,
0.2091562003,
0.4043453336,
-0.135270372,
0.1973560899,
-0.1509762704,
0.2151624858,
-0.1551907212,
0.3089810014,
0.0421414003,
-0.2329290211,
-0.0506950729,
0.2430501282,
-0.1315610409,
0.2198933363,
-0.1560653001,
-0.1121163443,
0.1223983541,
-0.1048333496,
0.202997297,
0.0285315067,
-0.4526077807,
-0.0327907354,
-0.1833139807,
-0.1597457975,
0.0133771673,
-0.0820377171,
0.3468177915,
0.2518925071,
0.18600142,
-0.004145484,
0.0332504325,
0.142751053,
-0.0088196155,
-0.3308890462,
0.3472425044,
-0.0457744524,
-0.1752589345,
0.0488170609,
0.0530346632,
-0.2700376511,
-0.0171609074,
-0.0162132122,
0.4081456065,
-0.4375679493,
-0.0731345415,
-0.0617683344,
-0.1597321332,
-0.0974128097,
0.1880708635,
-0.081999287,
-0.2776880264,
0.445333004,
-0.1918441951,
-0.2045330554,
-0.0458535664,
0.170138061,
0.2722020745,
-0.2661234438,
0.5271487236,
-0.0081693903,
-0.2039593458,
-0.2986087799,
0.1181666851,
0.2406756431,
-0.1789260805,
0.3072324991,
0.1491335034,
0.1801613569,
0.2399327457,
0.0652854443,
-0.2452691346,
0.0456205383,
-0.1946117282,
-0.2512212396,
-0.4587340355,
-0.2272526324,
-0.1453613937,
0.2936919332,
0.312630415,
0.2828493714,
-0.0498393141,
0.3358580172,
-0.4065794647,
-0.1149408445,
-0.1531322449,
0.2728176117,
0.1524819434,
0.0128615648,
-0.0067067407,
0.2280719578,
0.1662233174,
0.2789081037,
-0.0558063388,
-0.3985134363,
0.0245181546,
0.0459398627,
-0.1330242157,
-0.0621521696,
0.0371135809,
-0.0218337551,
-0.2458428442,
-0.1073629633,
0.2516540289,
0.0131632909,
0.131815508,
0.2092588842,
0.4427996874,
0.3391919732,
0.1198221743,
0.1046172231,
-0.1400851309,
0.0519424863,
0.0390864052,
0.2915997505,
0.0728551745,
-0.0097595751,
-0.0087767206,
-0.2714516222,
0.6143184304,
0.0637843087,
0.0193377845,
-0.3935502172,
-0.2791871428,
0.1281479746,
0.0886592865,
0.2924181819,
0.057500463,
-0.2814280093,
0.3145100772,
0.356189698,
0.037448518,
0.3104785383,
0.169152692,
-0.1325734258,
0.1291972995,
0.1397575438,
-0.0616449267,
0.2524921298,
0.1008176953,
0.1690557003,
0.2947506905,
-0.2797975242,
0.128876999,
0.1937779784,
0.0881131515,
0.0643603504,
0.3061843812,
0.0950234905,
0.0919642001,
0.4118395746,
0.1421424448,
0.5869660378,
0.1562699974,
0.1330235153,
0.0360657424,
-0.4071055055,
-0.3413543701,
0.2097715437,
-0.3046946228,
0.1884253621,
-0.0142172575,
0.218209222,
0.1494463384,
-0.1891222447,
-0.0878643095,
0.3838884234,
-0.4658756256,
-0.1196663678,
-0.5270377994,
-0.0618736744,
0.0470669195,
-0.1525253057,
0.1422008574,
0.0003344119,
-0.0268424638,
0.0209395923,
-0.0446054414,
0.0361097157,
-0.287539959,
0.2877539694,
-0.0674866438,
-0.1569443047,
0.0797995329,
-0.0260499828,
0.1523933262,
-0.0068784053,
0.2188948244,
0.3761071563,
0.3229935467,
-0.1922145933,
-0.0940964222,
0.0517290533,
-0.0628712922,
-0.1619848907,
0.2549490929,
-0.1922802031,
-0.0053927214,
0.3815494776,
0.2739575803,
-0.2499832213,
-0.3349293172,
0.0257081892,
-0.0218389165,
-0.0413478985,
0.4966605604,
0.1191577539,
-0.1086806357,
-0.2861168683,
-0.0260956436,
-0.4254946113,
-0.0493842475,
0.5210598707,
-0.4102798402,
0.1081941575,
-0.1843962669,
0.1237969548,
-0.2985060215,
0.4248546362,
0.3058855534,
0.2850419581,
-0.4672280252,
0.0159205347,
-0.2836147845,
0.2286422849,
-0.0501087494,
0.0008191913,
-0.2460904419,
0.2427740395,
-0.2073605061,
0.0642418712,
-0.0658616722,
-0.1411860883,
0.0898483843,
0.389061898,
-0.3444702625,
0.0781766698,
-0.3071108758,
-0.0271444041,
0.1391095817,
-0.3164843321,
0.16173774,
0.1141604483,
0.1574422419,
-0.1564969122,
0.027107738,
0.2952471972,
-0.1897253692,
0.2510139048,
0.2174008936,
0.3563933671,
-0.2116018087,
0.4840890169,
-0.0992438644,
0.0562533252,
-0.3012341857,
-0.1634409577,
0.1430545747,
0.1765760779,
0.0225726441,
0.0269492567,
-0.2492116392,
-0.0863267407,
0.0803807303,
-0.1846029311,
0.0331373736,
0.0671215057,
-0.0580930635,
0.0357011333,
0.0681238845,
0.1903718859,
0.2587813139,
0.2300124764,
-0.4224675298,
-0.4245305061,
0.4023638368,
-0.3883863688,
-0.301353842,
-0.3631494343,
0.2955275476,
0.0590144917,
0.0962253734,
-0.1573043764,
0.0010295957,
0.444521606,
-0.0583706051,
-0.0071650818,
0.377520293,
0.1706830114,
0.2029898763,
-0.17770648,
-0.1100155637,
0.1193485186,
-0.002677381,
0.0720624477,
-0.3162926435
] |
https://github.com/huggingface/datasets/issues/823 | how processing in batch works in datasets | Hi Thomas,
what I do not get from documentation is that why when you set batched=True,
this is processed in batch, while data is not divided to batched
beforehand, basically this is a question on the documentation and I do not
get the batched=True, but sure, if you think this is more appropriate in
forum I will post it there.
thanks
Best
Rabeeh
On Tue, Nov 10, 2020 at 12:21 PM Thomas Wolf <[email protected]>
wrote:
> Hi I don’t think this is a request for a dataset like you labeled it.
>
> I also think this would be better suited for the forum at
> https://discuss.huggingface.co. we try to keep the issue for the repo for
> bug reports and new features/dataset requests and have usage questions
> discussed on the forum. Thanks.
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <https://github.com/huggingface/datasets/issues/823#issuecomment-724639476>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ARPXHH4FIPFHVVUHANAE4F3SPEO2JANCNFSM4TQQVEXQ>
> .
>
| Hi,
I need to process my datasets before it is passed to dataloader in batch,
here is my codes
```
class AbstractTask(ABC):
task_name: str = NotImplemented
preprocessor: Callable = NotImplemented
split_to_data_split: Mapping[str, str] = NotImplemented
tokenizer: Callable = NotImplemented
max_source_length: str = NotImplemented
max_target_length: str = NotImplemented
# TODO: should not be a task item, but cannot see other ways.
tpu_num_cores: int = None
# The arguments set are for all tasks and needs to be kept common.
def __init__(self, config):
self.max_source_length = config['max_source_length']
self.max_target_length = config['max_target_length']
self.tokenizer = config['tokenizer']
self.tpu_num_cores = config['tpu_num_cores']
def _encode(self, batch) -> Dict[str, torch.Tensor]:
batch_encoding = self.tokenizer.prepare_seq2seq_batch(
[x["src_texts"] for x in batch],
tgt_texts=[x["tgt_texts"] for x in batch],
max_length=self.max_source_length,
max_target_length=self.max_target_length,
padding="max_length" if self.tpu_num_cores is not None else "longest", # TPU hack
return_tensors="pt"
)
return batch_encoding.data
def data_split(self, split):
return self.split_to_data_split[split]
def get_dataset(self, split, n_obs=None):
split = self.data_split(split)
if n_obs is not None:
split = split+"[:{}]".format(n_obs)
dataset = load_dataset(self.task_name, split=split)
dataset = dataset.map(self.preprocessor, remove_columns=dataset.column_names)
dataset = dataset.map(lambda batch: self._encode(batch), batched=True)
dataset.set_format(type="torch", columns=['input_ids', 'token_type_ids', 'attention_mask', 'label'])
return dataset
```
I call it like
`AutoTask.get(task, train_dataset_config).get_dataset(split="train", n_obs=data_args.n_train)
`
This gives the following error, to me because the data inside the dataset = dataset.map(lambda batch: self._encode(batch), batched=True) is not processed in batch, could you tell me how I can process dataset in batch inside my function? thanks
File "finetune_multitask_trainer.py", line 192, in main
if training_args.do_train else None
File "finetune_multitask_trainer.py", line 191, in <dictcomp>
split="train", n_obs=data_args.n_train) for task in data_args.task}
File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks.py", line 56, in get_dataset
dataset = dataset.map(lambda batch: self._encode(batch), batched=True)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1236, in map
update_data = does_function_return_dict(test_inputs, test_indices)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1207, in does_function_return_dict
function(*fn_args, indices, **fn_kwargs) if with_indices else function(*fn_args, **fn_kwargs)
File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks.py", line 56, in <lambda>
dataset = dataset.map(lambda batch: self._encode(batch), batched=True)
File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks.py", line 37, in _encode
[x["src_texts"] for x in batch],
File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks.py", line 37, in <listcomp>
[x["src_texts"] for x in batch],
TypeError: string indices must be integers
| 167 | how processing in batch works in datasets
Hi,
I need to process my datasets before it is passed to dataloader in batch,
here is my codes
```
class AbstractTask(ABC):
task_name: str = NotImplemented
preprocessor: Callable = NotImplemented
split_to_data_split: Mapping[str, str] = NotImplemented
tokenizer: Callable = NotImplemented
max_source_length: str = NotImplemented
max_target_length: str = NotImplemented
# TODO: should not be a task item, but cannot see other ways.
tpu_num_cores: int = None
# The arguments set are for all tasks and needs to be kept common.
def __init__(self, config):
self.max_source_length = config['max_source_length']
self.max_target_length = config['max_target_length']
self.tokenizer = config['tokenizer']
self.tpu_num_cores = config['tpu_num_cores']
def _encode(self, batch) -> Dict[str, torch.Tensor]:
batch_encoding = self.tokenizer.prepare_seq2seq_batch(
[x["src_texts"] for x in batch],
tgt_texts=[x["tgt_texts"] for x in batch],
max_length=self.max_source_length,
max_target_length=self.max_target_length,
padding="max_length" if self.tpu_num_cores is not None else "longest", # TPU hack
return_tensors="pt"
)
return batch_encoding.data
def data_split(self, split):
return self.split_to_data_split[split]
def get_dataset(self, split, n_obs=None):
split = self.data_split(split)
if n_obs is not None:
split = split+"[:{}]".format(n_obs)
dataset = load_dataset(self.task_name, split=split)
dataset = dataset.map(self.preprocessor, remove_columns=dataset.column_names)
dataset = dataset.map(lambda batch: self._encode(batch), batched=True)
dataset.set_format(type="torch", columns=['input_ids', 'token_type_ids', 'attention_mask', 'label'])
return dataset
```
I call it like
`AutoTask.get(task, train_dataset_config).get_dataset(split="train", n_obs=data_args.n_train)
`
This gives the following error, to me because the data inside the dataset = dataset.map(lambda batch: self._encode(batch), batched=True) is not processed in batch, could you tell me how I can process dataset in batch inside my function? thanks
File "finetune_multitask_trainer.py", line 192, in main
if training_args.do_train else None
File "finetune_multitask_trainer.py", line 191, in <dictcomp>
split="train", n_obs=data_args.n_train) for task in data_args.task}
File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks.py", line 56, in get_dataset
dataset = dataset.map(lambda batch: self._encode(batch), batched=True)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1236, in map
update_data = does_function_return_dict(test_inputs, test_indices)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1207, in does_function_return_dict
function(*fn_args, indices, **fn_kwargs) if with_indices else function(*fn_args, **fn_kwargs)
File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks.py", line 56, in <lambda>
dataset = dataset.map(lambda batch: self._encode(batch), batched=True)
File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks.py", line 37, in _encode
[x["src_texts"] for x in batch],
File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks.py", line 37, in <listcomp>
[x["src_texts"] for x in batch],
TypeError: string indices must be integers
Hi Thomas,
what I do not get from documentation is that why when you set batched=True,
this is processed in batch, while data is not divided to batched
beforehand, basically this is a question on the documentation and I do not
get the batched=True, but sure, if you think this is more appropriate in
forum I will post it there.
thanks
Best
Rabeeh
On Tue, Nov 10, 2020 at 12:21 PM Thomas Wolf <[email protected]>
wrote:
> Hi I don’t think this is a request for a dataset like you labeled it.
>
> I also think this would be better suited for the forum at
> https://discuss.huggingface.co. we try to keep the issue for the repo for
> bug reports and new features/dataset requests and have usage questions
> discussed on the forum. Thanks.
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <https://github.com/huggingface/datasets/issues/823#issuecomment-724639476>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ARPXHH4FIPFHVVUHANAE4F3SPEO2JANCNFSM4TQQVEXQ>
> .
>
| [
-0.5023795962,
-0.1743946373,
-0.2295022607,
0.1301574856,
0.1780351698,
0.0317949429,
0.2955617309,
0.1713046879,
-0.1484706402,
0.1780764759,
0.0091216601,
0.1247807667,
0.0641203597,
0.2456233948,
-0.0561649241,
-0.0358914286,
-0.0745974705,
0.0483772233,
0.109609209,
0.0072341412,
-0.3676090837,
0.0689974129,
-0.4043072462,
0.0522340983,
-0.2230466604,
-0.2693564594,
-0.0612451322,
-0.0392568074,
-0.0044130441,
-0.1525889635,
-0.0022256896,
0.2334949672,
0.2088392973,
0.4326501489,
-0.0001049565,
0.07853093,
0.2467756122,
0.0393825397,
-0.2903358638,
0.2226278782,
-0.0494008623,
-0.1695531607,
-0.1062983572,
-0.3042086959,
-0.1008368433,
-0.0860009193,
-0.1385593414,
-0.3374301195,
0.3848309219,
0.1753831804,
0.2844721079,
0.2802548707,
-0.1476053298,
0.1414174289,
0.061004363,
0.0714531988,
0.0851127356,
-0.3902094066,
0.0682317764,
0.1479270756,
-0.0484065339,
0.149620384,
-0.2720300257,
0.0859411061,
-0.255097419,
0.0218880586,
0.0260984655,
-0.3847027123,
0.0884851888,
-0.1349759102,
0.2846593559,
-0.2123627365,
-0.2440749556,
-0.3842583001,
-0.2724654675,
-0.4653170109,
-0.026979018,
0.1131324843,
-0.0684821904,
0.1012711301,
-0.078587763,
0.2408466339,
-0.0737225488,
-0.1666946113,
0.1114269346,
0.2568108737,
-0.2119236588,
0.2198818475,
0.0700411201,
0.0887887925,
0.164814949,
-0.2350717932,
-0.0004336915,
0.2723603249,
-0.4907974005,
-0.0871191248,
-0.1117742956,
-0.1519906223,
-0.140895471,
0.0541604944,
-0.1284126192,
0.127230227,
0.3161277771,
0.1564185023,
-0.0295963027,
0.1643565297,
0.1187210828,
0.2562066615,
-0.0771183595,
-0.305059731,
-0.2260432094,
0.0277570654,
-0.0785890073,
-0.3298463821,
0.1471388042,
0.3610410094,
0.2499244362,
0.0302776545,
-0.4871647358,
-0.0903921351,
-0.0190419927,
-0.0580976233,
0.1420927942,
0.2845918536,
-0.2407626808,
0.2508463264,
-0.0810258165,
-0.1523168981,
-0.2926350534,
-0.0461962782,
-0.3027382791,
-0.1152572408,
-0.1496195048,
0.0702789053,
0.1349774152,
-0.1721605659,
0.3239180148,
0.0755831152,
0.0962862223,
-0.1746602356,
0.5014523864,
-0.3949417174,
0.2224127501,
0.2599139512,
0.1795817763,
0.2426500618,
0.0532014184,
0.209766373,
0.0399613976,
0.0737814531,
-0.6257677674,
-0.1791180074,
0.2474630326,
0.3138490915,
-0.0505519807,
0.0014610155,
-0.5935840607,
-0.0869222134,
0.321326822,
0.0906266943,
0.1197095513,
-0.1754255295,
-0.1859958768,
-0.1946794987,
0.2003967911,
0.0852582902,
-0.4504100084,
0.067932941,
-0.1153643578,
-0.3227444291,
0.5454283357,
0.1242685989,
-0.1138667464,
0.6199546456,
-0.3095549345,
0.3783025742,
0.1937190741,
-0.3189391196,
-0.2815087438,
0.5390693545,
-0.2575122118,
0.0180870369,
0.0398206897,
0.0325070769,
0.5586621165,
-0.0602870621,
0.0362302326,
0.3787435591,
-0.1192288175,
0.0902984962,
-0.0995702371,
0.1156373546,
0.0859537572,
-0.0174081475,
0.1038927585,
0.0438636392,
-0.2167431712,
-0.0445536897,
0.1737816036,
0.053499002,
0.2965996265,
0.2496743053,
0.0114941541,
0.2087978125,
0.1932464391,
-0.0454121307,
-0.2964653969,
0.0957320482,
-0.0203326046,
-0.1832335293,
0.0405644067,
-0.3565834761,
-0.1427382082,
0.1464837343,
-0.4080841839,
-0.1703143716,
0.2187933922,
0.0912242681,
0.0223606601,
-0.3133271337,
0.0051414147,
0.3289262056,
-0.0184368193,
0.032012485,
-0.1938539445,
-0.0220454633,
0.0078475513,
-0.150763616,
-0.0613339394,
-0.0791999996,
0.2228214294,
0.0074301772,
-0.0493341684,
0.3533653319,
0.2747452557,
0.0639956072,
-0.0365162119,
-0.1238466501,
-0.0102489349,
0.1141476482,
-0.0905263573,
-0.035854429,
0.2171732783,
-0.1256068349,
0.2478307486,
0.4252819121,
-0.0469337367,
0.265758574,
-0.0382557698,
-0.2736453414,
0.2264526337,
-0.0702167004,
-0.0428676084,
0.1976915449,
-0.0458722711,
0.0015260465,
0.3408340216,
0.0440049767,
-0.0559479706,
0.1770871729,
0.4273034334,
-0.0043448508,
-0.1692030877,
-0.0192306787,
-0.208304897,
0.1080088168,
0.1594959199,
-0.0258412808,
0.1219081208,
0.1693718582,
0.1196483374,
-0.1023143083,
0.1045234501,
-0.0379633941,
0.082029961,
0.3170749545,
0.1805197746,
0.1618742645,
-0.0916256979,
-0.0561813824,
-0.0036793724,
-0.1100692004,
0.1913621277,
0.2398844957,
-0.3654332161,
0.2132199109,
-0.1459296495,
-0.0898105204,
-0.1511178166,
-0.0314461924,
0.1613284051,
-0.1398266256,
-0.0764071047,
0.2173888385,
-0.1582914889,
0.0283090565,
-0.0862445086,
0.0393376797,
0.2715222836,
-0.3807460964,
-0.1608629823,
-0.0596178472,
-0.1818825603,
0.2018621415,
0.0678684711,
0.1080865338,
0.4683222771,
0.0514344573,
0.038785059,
-0.1155500561,
-0.152218014,
0.0778786838,
-0.1976523697,
0.176710248,
0.0169448629,
0.1401748359,
-0.1079594195,
-0.3839945495,
0.1391076446,
-0.1839411557,
-0.3313494623,
-0.0855728164,
-0.0173466485,
0.0405007638,
-0.2087074965,
-0.4318085909,
-0.2330214828,
-0.1791113317,
0.021623617,
-0.0695499927,
0.2032479346,
-0.0093693919,
-0.0178896189,
0.1497214586,
0.2623845637,
-0.1572468281,
-0.0877213776,
-0.4881262183,
0.1246122122,
-0.2836301327,
-0.0197323598,
-0.0922572464,
-0.1024709046,
0.4223549962,
0.3086385429,
-0.1903934181,
0.1180603206,
-0.0889259875,
0.2408320308,
-0.097753793,
-0.0265350919,
0.195407629,
-0.0789329708,
-0.0996646285,
-0.1173350811,
0.0736230686,
0.117698051,
-0.2414382994,
0.0647149831,
-0.0177846588,
0.6492410302,
-0.019282721,
0.911616087,
0.0870947987,
-0.087478362,
0.1329249442,
0.0044230446,
-0.1579395682,
-0.0129762627,
-0.3009169102,
0.090745315,
0.0279778168,
-0.1869364977,
0.1928883195,
-0.1721879542,
-0.0085579138,
0.0702765584,
-0.0171477944,
-0.6442946196,
-0.0674670041,
0.0769529641,
0.0041395598,
0.3435700834,
-0.1565952599,
0.0682595223,
-0.2833535373,
-0.0590693504,
-0.0908283964,
0.0464697108,
0.2381595075,
-0.1836911291,
-0.3598335981,
0.0888357162,
-0.2709054351,
0.2956252396,
0.0668395087,
0.3335527778,
0.02760344,
-0.0400169119,
0.1112623662,
-0.1317254901,
0.7860841751,
-0.044302173,
0.067516759,
0.0571945086,
-0.2433979213,
-0.1615102589,
-0.0845037699,
-0.3391534686,
0.2083998024,
0.5520213246,
0.2944177389,
-0.2110377848,
-0.3628802299,
0.0173127465,
-0.1886416078,
-0.1648464203,
-0.2995321453,
-0.3377783,
-0.1493662596,
-0.3823867142,
0.3109838367,
0.2597948909,
0.1134822816,
-0.4368880093,
-0.371288836,
-0.305701375,
-0.0896343142,
0.1953642666,
-0.066538468,
0.0286606513,
0.0238973461,
0.2161181718,
0.0219963677,
0.2875387669,
0.3828946352,
0.2126959264,
-0.1729637384,
-0.3372835815,
0.1827809364,
-0.0983873904,
0.4843108952,
0.0285965316,
-0.2987979054,
0.3437285423,
-0.0373795554,
0.1920201033,
-0.4507605135,
0.5018007755,
0.4323754311,
0.1806504875,
-0.5321657658,
-0.5739415288,
0.1534674168,
0.3390219212,
-0.0980344862,
0.1371525675,
-0.2328920215,
-0.2770262957,
0.100988239,
0.1951021254,
0.6205470562,
-0.0256135687,
-0.0886719376,
0.101747781,
0.2892378867,
0.0658003241,
-0.2064577341,
0.102658242,
-0.3231613636,
0.0041053817,
0.0323343873,
-0.1772435158,
0.2091562003,
0.4043453336,
-0.135270372,
0.1973560899,
-0.1509762704,
0.2151624858,
-0.1551907212,
0.3089810014,
0.0421414003,
-0.2329290211,
-0.0506950729,
0.2430501282,
-0.1315610409,
0.2198933363,
-0.1560653001,
-0.1121163443,
0.1223983541,
-0.1048333496,
0.202997297,
0.0285315067,
-0.4526077807,
-0.0327907354,
-0.1833139807,
-0.1597457975,
0.0133771673,
-0.0820377171,
0.3468177915,
0.2518925071,
0.18600142,
-0.004145484,
0.0332504325,
0.142751053,
-0.0088196155,
-0.3308890462,
0.3472425044,
-0.0457744524,
-0.1752589345,
0.0488170609,
0.0530346632,
-0.2700376511,
-0.0171609074,
-0.0162132122,
0.4081456065,
-0.4375679493,
-0.0731345415,
-0.0617683344,
-0.1597321332,
-0.0974128097,
0.1880708635,
-0.081999287,
-0.2776880264,
0.445333004,
-0.1918441951,
-0.2045330554,
-0.0458535664,
0.170138061,
0.2722020745,
-0.2661234438,
0.5271487236,
-0.0081693903,
-0.2039593458,
-0.2986087799,
0.1181666851,
0.2406756431,
-0.1789260805,
0.3072324991,
0.1491335034,
0.1801613569,
0.2399327457,
0.0652854443,
-0.2452691346,
0.0456205383,
-0.1946117282,
-0.2512212396,
-0.4587340355,
-0.2272526324,
-0.1453613937,
0.2936919332,
0.312630415,
0.2828493714,
-0.0498393141,
0.3358580172,
-0.4065794647,
-0.1149408445,
-0.1531322449,
0.2728176117,
0.1524819434,
0.0128615648,
-0.0067067407,
0.2280719578,
0.1662233174,
0.2789081037,
-0.0558063388,
-0.3985134363,
0.0245181546,
0.0459398627,
-0.1330242157,
-0.0621521696,
0.0371135809,
-0.0218337551,
-0.2458428442,
-0.1073629633,
0.2516540289,
0.0131632909,
0.131815508,
0.2092588842,
0.4427996874,
0.3391919732,
0.1198221743,
0.1046172231,
-0.1400851309,
0.0519424863,
0.0390864052,
0.2915997505,
0.0728551745,
-0.0097595751,
-0.0087767206,
-0.2714516222,
0.6143184304,
0.0637843087,
0.0193377845,
-0.3935502172,
-0.2791871428,
0.1281479746,
0.0886592865,
0.2924181819,
0.057500463,
-0.2814280093,
0.3145100772,
0.356189698,
0.037448518,
0.3104785383,
0.169152692,
-0.1325734258,
0.1291972995,
0.1397575438,
-0.0616449267,
0.2524921298,
0.1008176953,
0.1690557003,
0.2947506905,
-0.2797975242,
0.128876999,
0.1937779784,
0.0881131515,
0.0643603504,
0.3061843812,
0.0950234905,
0.0919642001,
0.4118395746,
0.1421424448,
0.5869660378,
0.1562699974,
0.1330235153,
0.0360657424,
-0.4071055055,
-0.3413543701,
0.2097715437,
-0.3046946228,
0.1884253621,
-0.0142172575,
0.218209222,
0.1494463384,
-0.1891222447,
-0.0878643095,
0.3838884234,
-0.4658756256,
-0.1196663678,
-0.5270377994,
-0.0618736744,
0.0470669195,
-0.1525253057,
0.1422008574,
0.0003344119,
-0.0268424638,
0.0209395923,
-0.0446054414,
0.0361097157,
-0.287539959,
0.2877539694,
-0.0674866438,
-0.1569443047,
0.0797995329,
-0.0260499828,
0.1523933262,
-0.0068784053,
0.2188948244,
0.3761071563,
0.3229935467,
-0.1922145933,
-0.0940964222,
0.0517290533,
-0.0628712922,
-0.1619848907,
0.2549490929,
-0.1922802031,
-0.0053927214,
0.3815494776,
0.2739575803,
-0.2499832213,
-0.3349293172,
0.0257081892,
-0.0218389165,
-0.0413478985,
0.4966605604,
0.1191577539,
-0.1086806357,
-0.2861168683,
-0.0260956436,
-0.4254946113,
-0.0493842475,
0.5210598707,
-0.4102798402,
0.1081941575,
-0.1843962669,
0.1237969548,
-0.2985060215,
0.4248546362,
0.3058855534,
0.2850419581,
-0.4672280252,
0.0159205347,
-0.2836147845,
0.2286422849,
-0.0501087494,
0.0008191913,
-0.2460904419,
0.2427740395,
-0.2073605061,
0.0642418712,
-0.0658616722,
-0.1411860883,
0.0898483843,
0.389061898,
-0.3444702625,
0.0781766698,
-0.3071108758,
-0.0271444041,
0.1391095817,
-0.3164843321,
0.16173774,
0.1141604483,
0.1574422419,
-0.1564969122,
0.027107738,
0.2952471972,
-0.1897253692,
0.2510139048,
0.2174008936,
0.3563933671,
-0.2116018087,
0.4840890169,
-0.0992438644,
0.0562533252,
-0.3012341857,
-0.1634409577,
0.1430545747,
0.1765760779,
0.0225726441,
0.0269492567,
-0.2492116392,
-0.0863267407,
0.0803807303,
-0.1846029311,
0.0331373736,
0.0671215057,
-0.0580930635,
0.0357011333,
0.0681238845,
0.1903718859,
0.2587813139,
0.2300124764,
-0.4224675298,
-0.4245305061,
0.4023638368,
-0.3883863688,
-0.301353842,
-0.3631494343,
0.2955275476,
0.0590144917,
0.0962253734,
-0.1573043764,
0.0010295957,
0.444521606,
-0.0583706051,
-0.0071650818,
0.377520293,
0.1706830114,
0.2029898763,
-0.17770648,
-0.1100155637,
0.1193485186,
-0.002677381,
0.0720624477,
-0.3162926435
] |
https://github.com/huggingface/datasets/issues/823 | how processing in batch works in datasets | Yes the forum is perfect for that. You can post in the `datasets` section.
Thanks a lot! | Hi,
I need to process my datasets before it is passed to dataloader in batch,
here is my codes
```
class AbstractTask(ABC):
task_name: str = NotImplemented
preprocessor: Callable = NotImplemented
split_to_data_split: Mapping[str, str] = NotImplemented
tokenizer: Callable = NotImplemented
max_source_length: str = NotImplemented
max_target_length: str = NotImplemented
# TODO: should not be a task item, but cannot see other ways.
tpu_num_cores: int = None
# The arguments set are for all tasks and needs to be kept common.
def __init__(self, config):
self.max_source_length = config['max_source_length']
self.max_target_length = config['max_target_length']
self.tokenizer = config['tokenizer']
self.tpu_num_cores = config['tpu_num_cores']
def _encode(self, batch) -> Dict[str, torch.Tensor]:
batch_encoding = self.tokenizer.prepare_seq2seq_batch(
[x["src_texts"] for x in batch],
tgt_texts=[x["tgt_texts"] for x in batch],
max_length=self.max_source_length,
max_target_length=self.max_target_length,
padding="max_length" if self.tpu_num_cores is not None else "longest", # TPU hack
return_tensors="pt"
)
return batch_encoding.data
def data_split(self, split):
return self.split_to_data_split[split]
def get_dataset(self, split, n_obs=None):
split = self.data_split(split)
if n_obs is not None:
split = split+"[:{}]".format(n_obs)
dataset = load_dataset(self.task_name, split=split)
dataset = dataset.map(self.preprocessor, remove_columns=dataset.column_names)
dataset = dataset.map(lambda batch: self._encode(batch), batched=True)
dataset.set_format(type="torch", columns=['input_ids', 'token_type_ids', 'attention_mask', 'label'])
return dataset
```
I call it like
`AutoTask.get(task, train_dataset_config).get_dataset(split="train", n_obs=data_args.n_train)
`
This gives the following error, to me because the data inside the dataset = dataset.map(lambda batch: self._encode(batch), batched=True) is not processed in batch, could you tell me how I can process dataset in batch inside my function? thanks
File "finetune_multitask_trainer.py", line 192, in main
if training_args.do_train else None
File "finetune_multitask_trainer.py", line 191, in <dictcomp>
split="train", n_obs=data_args.n_train) for task in data_args.task}
File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks.py", line 56, in get_dataset
dataset = dataset.map(lambda batch: self._encode(batch), batched=True)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1236, in map
update_data = does_function_return_dict(test_inputs, test_indices)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1207, in does_function_return_dict
function(*fn_args, indices, **fn_kwargs) if with_indices else function(*fn_args, **fn_kwargs)
File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks.py", line 56, in <lambda>
dataset = dataset.map(lambda batch: self._encode(batch), batched=True)
File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks.py", line 37, in _encode
[x["src_texts"] for x in batch],
File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks.py", line 37, in <listcomp>
[x["src_texts"] for x in batch],
TypeError: string indices must be integers
| 17 | how processing in batch works in datasets
Hi,
I need to process my datasets before it is passed to dataloader in batch,
here is my codes
```
class AbstractTask(ABC):
task_name: str = NotImplemented
preprocessor: Callable = NotImplemented
split_to_data_split: Mapping[str, str] = NotImplemented
tokenizer: Callable = NotImplemented
max_source_length: str = NotImplemented
max_target_length: str = NotImplemented
# TODO: should not be a task item, but cannot see other ways.
tpu_num_cores: int = None
# The arguments set are for all tasks and needs to be kept common.
def __init__(self, config):
self.max_source_length = config['max_source_length']
self.max_target_length = config['max_target_length']
self.tokenizer = config['tokenizer']
self.tpu_num_cores = config['tpu_num_cores']
def _encode(self, batch) -> Dict[str, torch.Tensor]:
batch_encoding = self.tokenizer.prepare_seq2seq_batch(
[x["src_texts"] for x in batch],
tgt_texts=[x["tgt_texts"] for x in batch],
max_length=self.max_source_length,
max_target_length=self.max_target_length,
padding="max_length" if self.tpu_num_cores is not None else "longest", # TPU hack
return_tensors="pt"
)
return batch_encoding.data
def data_split(self, split):
return self.split_to_data_split[split]
def get_dataset(self, split, n_obs=None):
split = self.data_split(split)
if n_obs is not None:
split = split+"[:{}]".format(n_obs)
dataset = load_dataset(self.task_name, split=split)
dataset = dataset.map(self.preprocessor, remove_columns=dataset.column_names)
dataset = dataset.map(lambda batch: self._encode(batch), batched=True)
dataset.set_format(type="torch", columns=['input_ids', 'token_type_ids', 'attention_mask', 'label'])
return dataset
```
I call it like
`AutoTask.get(task, train_dataset_config).get_dataset(split="train", n_obs=data_args.n_train)
`
This gives the following error, to me because the data inside the dataset = dataset.map(lambda batch: self._encode(batch), batched=True) is not processed in batch, could you tell me how I can process dataset in batch inside my function? thanks
File "finetune_multitask_trainer.py", line 192, in main
if training_args.do_train else None
File "finetune_multitask_trainer.py", line 191, in <dictcomp>
split="train", n_obs=data_args.n_train) for task in data_args.task}
File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks.py", line 56, in get_dataset
dataset = dataset.map(lambda batch: self._encode(batch), batched=True)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1236, in map
update_data = does_function_return_dict(test_inputs, test_indices)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1207, in does_function_return_dict
function(*fn_args, indices, **fn_kwargs) if with_indices else function(*fn_args, **fn_kwargs)
File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks.py", line 56, in <lambda>
dataset = dataset.map(lambda batch: self._encode(batch), batched=True)
File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks.py", line 37, in _encode
[x["src_texts"] for x in batch],
File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks.py", line 37, in <listcomp>
[x["src_texts"] for x in batch],
TypeError: string indices must be integers
Yes the forum is perfect for that. You can post in the `datasets` section.
Thanks a lot! | [
-0.5023795962,
-0.1743946373,
-0.2295022607,
0.1301574856,
0.1780351698,
0.0317949429,
0.2955617309,
0.1713046879,
-0.1484706402,
0.1780764759,
0.0091216601,
0.1247807667,
0.0641203597,
0.2456233948,
-0.0561649241,
-0.0358914286,
-0.0745974705,
0.0483772233,
0.109609209,
0.0072341412,
-0.3676090837,
0.0689974129,
-0.4043072462,
0.0522340983,
-0.2230466604,
-0.2693564594,
-0.0612451322,
-0.0392568074,
-0.0044130441,
-0.1525889635,
-0.0022256896,
0.2334949672,
0.2088392973,
0.4326501489,
-0.0001049565,
0.07853093,
0.2467756122,
0.0393825397,
-0.2903358638,
0.2226278782,
-0.0494008623,
-0.1695531607,
-0.1062983572,
-0.3042086959,
-0.1008368433,
-0.0860009193,
-0.1385593414,
-0.3374301195,
0.3848309219,
0.1753831804,
0.2844721079,
0.2802548707,
-0.1476053298,
0.1414174289,
0.061004363,
0.0714531988,
0.0851127356,
-0.3902094066,
0.0682317764,
0.1479270756,
-0.0484065339,
0.149620384,
-0.2720300257,
0.0859411061,
-0.255097419,
0.0218880586,
0.0260984655,
-0.3847027123,
0.0884851888,
-0.1349759102,
0.2846593559,
-0.2123627365,
-0.2440749556,
-0.3842583001,
-0.2724654675,
-0.4653170109,
-0.026979018,
0.1131324843,
-0.0684821904,
0.1012711301,
-0.078587763,
0.2408466339,
-0.0737225488,
-0.1666946113,
0.1114269346,
0.2568108737,
-0.2119236588,
0.2198818475,
0.0700411201,
0.0887887925,
0.164814949,
-0.2350717932,
-0.0004336915,
0.2723603249,
-0.4907974005,
-0.0871191248,
-0.1117742956,
-0.1519906223,
-0.140895471,
0.0541604944,
-0.1284126192,
0.127230227,
0.3161277771,
0.1564185023,
-0.0295963027,
0.1643565297,
0.1187210828,
0.2562066615,
-0.0771183595,
-0.305059731,
-0.2260432094,
0.0277570654,
-0.0785890073,
-0.3298463821,
0.1471388042,
0.3610410094,
0.2499244362,
0.0302776545,
-0.4871647358,
-0.0903921351,
-0.0190419927,
-0.0580976233,
0.1420927942,
0.2845918536,
-0.2407626808,
0.2508463264,
-0.0810258165,
-0.1523168981,
-0.2926350534,
-0.0461962782,
-0.3027382791,
-0.1152572408,
-0.1496195048,
0.0702789053,
0.1349774152,
-0.1721605659,
0.3239180148,
0.0755831152,
0.0962862223,
-0.1746602356,
0.5014523864,
-0.3949417174,
0.2224127501,
0.2599139512,
0.1795817763,
0.2426500618,
0.0532014184,
0.209766373,
0.0399613976,
0.0737814531,
-0.6257677674,
-0.1791180074,
0.2474630326,
0.3138490915,
-0.0505519807,
0.0014610155,
-0.5935840607,
-0.0869222134,
0.321326822,
0.0906266943,
0.1197095513,
-0.1754255295,
-0.1859958768,
-0.1946794987,
0.2003967911,
0.0852582902,
-0.4504100084,
0.067932941,
-0.1153643578,
-0.3227444291,
0.5454283357,
0.1242685989,
-0.1138667464,
0.6199546456,
-0.3095549345,
0.3783025742,
0.1937190741,
-0.3189391196,
-0.2815087438,
0.5390693545,
-0.2575122118,
0.0180870369,
0.0398206897,
0.0325070769,
0.5586621165,
-0.0602870621,
0.0362302326,
0.3787435591,
-0.1192288175,
0.0902984962,
-0.0995702371,
0.1156373546,
0.0859537572,
-0.0174081475,
0.1038927585,
0.0438636392,
-0.2167431712,
-0.0445536897,
0.1737816036,
0.053499002,
0.2965996265,
0.2496743053,
0.0114941541,
0.2087978125,
0.1932464391,
-0.0454121307,
-0.2964653969,
0.0957320482,
-0.0203326046,
-0.1832335293,
0.0405644067,
-0.3565834761,
-0.1427382082,
0.1464837343,
-0.4080841839,
-0.1703143716,
0.2187933922,
0.0912242681,
0.0223606601,
-0.3133271337,
0.0051414147,
0.3289262056,
-0.0184368193,
0.032012485,
-0.1938539445,
-0.0220454633,
0.0078475513,
-0.150763616,
-0.0613339394,
-0.0791999996,
0.2228214294,
0.0074301772,
-0.0493341684,
0.3533653319,
0.2747452557,
0.0639956072,
-0.0365162119,
-0.1238466501,
-0.0102489349,
0.1141476482,
-0.0905263573,
-0.035854429,
0.2171732783,
-0.1256068349,
0.2478307486,
0.4252819121,
-0.0469337367,
0.265758574,
-0.0382557698,
-0.2736453414,
0.2264526337,
-0.0702167004,
-0.0428676084,
0.1976915449,
-0.0458722711,
0.0015260465,
0.3408340216,
0.0440049767,
-0.0559479706,
0.1770871729,
0.4273034334,
-0.0043448508,
-0.1692030877,
-0.0192306787,
-0.208304897,
0.1080088168,
0.1594959199,
-0.0258412808,
0.1219081208,
0.1693718582,
0.1196483374,
-0.1023143083,
0.1045234501,
-0.0379633941,
0.082029961,
0.3170749545,
0.1805197746,
0.1618742645,
-0.0916256979,
-0.0561813824,
-0.0036793724,
-0.1100692004,
0.1913621277,
0.2398844957,
-0.3654332161,
0.2132199109,
-0.1459296495,
-0.0898105204,
-0.1511178166,
-0.0314461924,
0.1613284051,
-0.1398266256,
-0.0764071047,
0.2173888385,
-0.1582914889,
0.0283090565,
-0.0862445086,
0.0393376797,
0.2715222836,
-0.3807460964,
-0.1608629823,
-0.0596178472,
-0.1818825603,
0.2018621415,
0.0678684711,
0.1080865338,
0.4683222771,
0.0514344573,
0.038785059,
-0.1155500561,
-0.152218014,
0.0778786838,
-0.1976523697,
0.176710248,
0.0169448629,
0.1401748359,
-0.1079594195,
-0.3839945495,
0.1391076446,
-0.1839411557,
-0.3313494623,
-0.0855728164,
-0.0173466485,
0.0405007638,
-0.2087074965,
-0.4318085909,
-0.2330214828,
-0.1791113317,
0.021623617,
-0.0695499927,
0.2032479346,
-0.0093693919,
-0.0178896189,
0.1497214586,
0.2623845637,
-0.1572468281,
-0.0877213776,
-0.4881262183,
0.1246122122,
-0.2836301327,
-0.0197323598,
-0.0922572464,
-0.1024709046,
0.4223549962,
0.3086385429,
-0.1903934181,
0.1180603206,
-0.0889259875,
0.2408320308,
-0.097753793,
-0.0265350919,
0.195407629,
-0.0789329708,
-0.0996646285,
-0.1173350811,
0.0736230686,
0.117698051,
-0.2414382994,
0.0647149831,
-0.0177846588,
0.6492410302,
-0.019282721,
0.911616087,
0.0870947987,
-0.087478362,
0.1329249442,
0.0044230446,
-0.1579395682,
-0.0129762627,
-0.3009169102,
0.090745315,
0.0279778168,
-0.1869364977,
0.1928883195,
-0.1721879542,
-0.0085579138,
0.0702765584,
-0.0171477944,
-0.6442946196,
-0.0674670041,
0.0769529641,
0.0041395598,
0.3435700834,
-0.1565952599,
0.0682595223,
-0.2833535373,
-0.0590693504,
-0.0908283964,
0.0464697108,
0.2381595075,
-0.1836911291,
-0.3598335981,
0.0888357162,
-0.2709054351,
0.2956252396,
0.0668395087,
0.3335527778,
0.02760344,
-0.0400169119,
0.1112623662,
-0.1317254901,
0.7860841751,
-0.044302173,
0.067516759,
0.0571945086,
-0.2433979213,
-0.1615102589,
-0.0845037699,
-0.3391534686,
0.2083998024,
0.5520213246,
0.2944177389,
-0.2110377848,
-0.3628802299,
0.0173127465,
-0.1886416078,
-0.1648464203,
-0.2995321453,
-0.3377783,
-0.1493662596,
-0.3823867142,
0.3109838367,
0.2597948909,
0.1134822816,
-0.4368880093,
-0.371288836,
-0.305701375,
-0.0896343142,
0.1953642666,
-0.066538468,
0.0286606513,
0.0238973461,
0.2161181718,
0.0219963677,
0.2875387669,
0.3828946352,
0.2126959264,
-0.1729637384,
-0.3372835815,
0.1827809364,
-0.0983873904,
0.4843108952,
0.0285965316,
-0.2987979054,
0.3437285423,
-0.0373795554,
0.1920201033,
-0.4507605135,
0.5018007755,
0.4323754311,
0.1806504875,
-0.5321657658,
-0.5739415288,
0.1534674168,
0.3390219212,
-0.0980344862,
0.1371525675,
-0.2328920215,
-0.2770262957,
0.100988239,
0.1951021254,
0.6205470562,
-0.0256135687,
-0.0886719376,
0.101747781,
0.2892378867,
0.0658003241,
-0.2064577341,
0.102658242,
-0.3231613636,
0.0041053817,
0.0323343873,
-0.1772435158,
0.2091562003,
0.4043453336,
-0.135270372,
0.1973560899,
-0.1509762704,
0.2151624858,
-0.1551907212,
0.3089810014,
0.0421414003,
-0.2329290211,
-0.0506950729,
0.2430501282,
-0.1315610409,
0.2198933363,
-0.1560653001,
-0.1121163443,
0.1223983541,
-0.1048333496,
0.202997297,
0.0285315067,
-0.4526077807,
-0.0327907354,
-0.1833139807,
-0.1597457975,
0.0133771673,
-0.0820377171,
0.3468177915,
0.2518925071,
0.18600142,
-0.004145484,
0.0332504325,
0.142751053,
-0.0088196155,
-0.3308890462,
0.3472425044,
-0.0457744524,
-0.1752589345,
0.0488170609,
0.0530346632,
-0.2700376511,
-0.0171609074,
-0.0162132122,
0.4081456065,
-0.4375679493,
-0.0731345415,
-0.0617683344,
-0.1597321332,
-0.0974128097,
0.1880708635,
-0.081999287,
-0.2776880264,
0.445333004,
-0.1918441951,
-0.2045330554,
-0.0458535664,
0.170138061,
0.2722020745,
-0.2661234438,
0.5271487236,
-0.0081693903,
-0.2039593458,
-0.2986087799,
0.1181666851,
0.2406756431,
-0.1789260805,
0.3072324991,
0.1491335034,
0.1801613569,
0.2399327457,
0.0652854443,
-0.2452691346,
0.0456205383,
-0.1946117282,
-0.2512212396,
-0.4587340355,
-0.2272526324,
-0.1453613937,
0.2936919332,
0.312630415,
0.2828493714,
-0.0498393141,
0.3358580172,
-0.4065794647,
-0.1149408445,
-0.1531322449,
0.2728176117,
0.1524819434,
0.0128615648,
-0.0067067407,
0.2280719578,
0.1662233174,
0.2789081037,
-0.0558063388,
-0.3985134363,
0.0245181546,
0.0459398627,
-0.1330242157,
-0.0621521696,
0.0371135809,
-0.0218337551,
-0.2458428442,
-0.1073629633,
0.2516540289,
0.0131632909,
0.131815508,
0.2092588842,
0.4427996874,
0.3391919732,
0.1198221743,
0.1046172231,
-0.1400851309,
0.0519424863,
0.0390864052,
0.2915997505,
0.0728551745,
-0.0097595751,
-0.0087767206,
-0.2714516222,
0.6143184304,
0.0637843087,
0.0193377845,
-0.3935502172,
-0.2791871428,
0.1281479746,
0.0886592865,
0.2924181819,
0.057500463,
-0.2814280093,
0.3145100772,
0.356189698,
0.037448518,
0.3104785383,
0.169152692,
-0.1325734258,
0.1291972995,
0.1397575438,
-0.0616449267,
0.2524921298,
0.1008176953,
0.1690557003,
0.2947506905,
-0.2797975242,
0.128876999,
0.1937779784,
0.0881131515,
0.0643603504,
0.3061843812,
0.0950234905,
0.0919642001,
0.4118395746,
0.1421424448,
0.5869660378,
0.1562699974,
0.1330235153,
0.0360657424,
-0.4071055055,
-0.3413543701,
0.2097715437,
-0.3046946228,
0.1884253621,
-0.0142172575,
0.218209222,
0.1494463384,
-0.1891222447,
-0.0878643095,
0.3838884234,
-0.4658756256,
-0.1196663678,
-0.5270377994,
-0.0618736744,
0.0470669195,
-0.1525253057,
0.1422008574,
0.0003344119,
-0.0268424638,
0.0209395923,
-0.0446054414,
0.0361097157,
-0.287539959,
0.2877539694,
-0.0674866438,
-0.1569443047,
0.0797995329,
-0.0260499828,
0.1523933262,
-0.0068784053,
0.2188948244,
0.3761071563,
0.3229935467,
-0.1922145933,
-0.0940964222,
0.0517290533,
-0.0628712922,
-0.1619848907,
0.2549490929,
-0.1922802031,
-0.0053927214,
0.3815494776,
0.2739575803,
-0.2499832213,
-0.3349293172,
0.0257081892,
-0.0218389165,
-0.0413478985,
0.4966605604,
0.1191577539,
-0.1086806357,
-0.2861168683,
-0.0260956436,
-0.4254946113,
-0.0493842475,
0.5210598707,
-0.4102798402,
0.1081941575,
-0.1843962669,
0.1237969548,
-0.2985060215,
0.4248546362,
0.3058855534,
0.2850419581,
-0.4672280252,
0.0159205347,
-0.2836147845,
0.2286422849,
-0.0501087494,
0.0008191913,
-0.2460904419,
0.2427740395,
-0.2073605061,
0.0642418712,
-0.0658616722,
-0.1411860883,
0.0898483843,
0.389061898,
-0.3444702625,
0.0781766698,
-0.3071108758,
-0.0271444041,
0.1391095817,
-0.3164843321,
0.16173774,
0.1141604483,
0.1574422419,
-0.1564969122,
0.027107738,
0.2952471972,
-0.1897253692,
0.2510139048,
0.2174008936,
0.3563933671,
-0.2116018087,
0.4840890169,
-0.0992438644,
0.0562533252,
-0.3012341857,
-0.1634409577,
0.1430545747,
0.1765760779,
0.0225726441,
0.0269492567,
-0.2492116392,
-0.0863267407,
0.0803807303,
-0.1846029311,
0.0331373736,
0.0671215057,
-0.0580930635,
0.0357011333,
0.0681238845,
0.1903718859,
0.2587813139,
0.2300124764,
-0.4224675298,
-0.4245305061,
0.4023638368,
-0.3883863688,
-0.301353842,
-0.3631494343,
0.2955275476,
0.0590144917,
0.0962253734,
-0.1573043764,
0.0010295957,
0.444521606,
-0.0583706051,
-0.0071650818,
0.377520293,
0.1706830114,
0.2029898763,
-0.17770648,
-0.1100155637,
0.1193485186,
-0.002677381,
0.0720624477,
-0.3162926435
] |
https://github.com/huggingface/datasets/issues/822 | datasets freezes | Pytorch is unable to convert strings to tensors unfortunately.
You can use `set_format(type="torch")` on columns that can be converted to tensors, such as token ids.
This makes me think that we should probably raise an error or at least a warning when one tries to create pytorch tensors out of text columns | Hi, I want to load these two datasets and convert them to Dataset format in torch and the code freezes for me, could you have a look please? thanks
dataset1 = load_dataset("squad", split="train[:10]")
dataset1 = dataset1.set_format(type='torch', columns=['context', 'answers', 'question'])
dataset2 = load_dataset("imdb", split="train[:10]")
dataset2 = dataset2.set_format(type="torch", columns=["text", "label"])
print(len(dataset1))
| 52 | datasets freezes
Hi, I want to load these two datasets and convert them to Dataset format in torch and the code freezes for me, could you have a look please? thanks
dataset1 = load_dataset("squad", split="train[:10]")
dataset1 = dataset1.set_format(type='torch', columns=['context', 'answers', 'question'])
dataset2 = load_dataset("imdb", split="train[:10]")
dataset2 = dataset2.set_format(type="torch", columns=["text", "label"])
print(len(dataset1))
Pytorch is unable to convert strings to tensors unfortunately.
You can use `set_format(type="torch")` on columns that can be converted to tensors, such as token ids.
This makes me think that we should probably raise an error or at least a warning when one tries to create pytorch tensors out of text columns | [
-0.16190961,
-0.3347921968,
-0.0465797894,
0.5367454886,
0.3581035137,
0.212521106,
0.5072593689,
0.3903238773,
-0.0151284672,
0.1207222193,
-0.2165181637,
0.2929007113,
-0.1185358018,
-0.1630848497,
-0.1131299138,
-0.5349529386,
0.1154314429,
-0.0951831192,
-0.3404093385,
0.099049449,
0.0500865281,
0.0638207868,
-0.151589781,
-0.147848919,
-0.4358989596,
0.0075120665,
0.0953072384,
0.0503920093,
-0.135975793,
-0.067702122,
0.1145446897,
-0.0718166679,
0.0865181088,
0.7834656835,
-0.0001211927,
0.0531440675,
0.3045334518,
0.1574760079,
-0.1029470339,
-0.1995552182,
0.3838465512,
-0.1363196969,
0.1754233986,
-0.218167603,
-0.1345923245,
0.0102509409,
-0.2882256508,
-0.6952759624,
0.3244413137,
0.4434758723,
0.0937086493,
0.5506082177,
0.0422828346,
0.0736014694,
0.3115716875,
-0.0100872666,
-0.2093129754,
-0.1175047085,
0.3612825572,
0.1951307356,
0.1336319,
0.2532553673,
-0.4077239633,
-0.0682553351,
0.0949571207,
0.0732890144,
-0.6647974849,
-0.4644116759,
0.0864162967,
0.3095065057,
0.5834821463,
-0.4591072202,
-0.1308528185,
-0.1118454412,
0.0003554858,
0.0143292621,
0.0995945632,
0.146079272,
-0.1873876154,
-0.0970855653,
-0.3416729867,
-0.1862385869,
-0.2447264791,
0.2388884127,
-0.1802271754,
-0.1747255474,
0.0037157387,
0.192447111,
0.1358712167,
-0.0270290393,
0.4467360377,
-0.304233849,
0.1853561997,
-0.0435121395,
-0.3819195032,
-0.0245088264,
-0.5991335511,
-0.3232550919,
-0.0219161212,
-0.0832416564,
-0.0257247631,
0.1993785501,
0.0594957396,
0.1835238338,
-0.0041056089,
0.2055943459,
0.0165228955,
0.3655206263,
0.1646522731,
-0.4713941514,
-0.0830715671,
0.1285178512,
-0.0653170347,
-0.5972936153,
-0.0566868633,
-0.1479664743,
0.1452046186,
-0.2821496129,
-0.2286584675,
0.0399437062,
-0.2544414401,
0.016060926,
0.1840371639,
0.390899688,
-0.2808790803,
0.2990473509,
0.3615896702,
0.1452339888,
-0.2739696205,
-0.012022987,
-0.0326123051,
0.129748404,
-0.1249794066,
-0.0447369851,
0.26289922,
-0.4223606884,
-0.0743072554,
0.3290850222,
0.1034981161,
0.1094255298,
0.2540251315,
-0.2438570261,
0.2168103606,
0.0404196084,
0.0672832876,
0.201582104,
0.0806757659,
0.3792653978,
-0.0123766139,
0.3443978131,
-0.2613654137,
0.1523283869,
-0.2981985509,
0.060374707,
0.0591148138,
0.0105314553,
0.0715913847,
0.1019401997,
0.3803876638,
-0.1368478984,
0.2131638527,
-0.2690626383,
-0.1227548718,
-0.0398498401,
0.1607141644,
0.3656432927,
-0.2027439922,
0.080682531,
0.50471735,
0.0049646739,
-0.0276202187,
0.3383372128,
-0.1661796868,
-0.0340985954,
0.0272392705,
-0.1163116693,
0.3451948762,
-0.279283464,
0.0360594839,
0.0829467475,
-0.0611118302,
-0.0769844055,
0.1463356018,
0.1638706774,
0.1401910931,
-0.0225379821,
0.2774906158,
0.1859400123,
-0.1286251843,
0.0115316585,
-0.1566432118,
-0.0132691413,
0.5077599287,
0.0647813901,
0.0822658688,
-0.0090030879,
-0.2542731464,
0.2098658383,
-0.0629279912,
-0.188198328,
0.0560245141,
0.4037212133,
-0.3440681994,
0.0713155866,
0.0562158301,
-0.4236244261,
-0.4435559213,
0.0634105653,
0.2090815455,
0.1549614668,
0.1222558171,
-0.0100057051,
-0.0060079359,
-0.1404088289,
0.0333747566,
0.2474486083,
-0.0741907135,
-0.3382629454,
0.0578818768,
0.0056779757,
-0.0865049362,
0.3033383489,
-0.1110072732,
0.2547244728,
-0.2904971838,
0.3031732738,
-0.0561938658,
-0.3207974136,
-0.088334851,
0.2030964494,
0.0999127179,
-0.070132561,
-0.090361774,
0.2229851633,
-0.0041752979,
0.0624923147,
-0.4371137023,
-0.151140213,
0.2752561867,
-0.1057287529,
0.3364077508,
0.0070383772,
-0.0124845393,
-0.1347417086,
-0.1144408733,
0.1100075692,
-0.1437339038,
0.2196326852,
-0.038226895,
0.0104150325,
-0.2166304886,
0.1087432504,
-0.1233973578,
0.0373596177,
0.309133172,
-0.1157440022,
0.2992348075,
0.0862629265,
-0.6952056885,
-0.0541115217,
0.3723340631,
-0.0515539646,
0.0357351229,
0.0595979504,
-0.2202146947,
0.128003642,
0.1781385839,
-0.3011559248,
0.2373429686,
0.1993240714,
0.0374270305,
-0.0060504125,
-0.307022661,
-0.1291006804,
0.2157093138,
0.1472152174,
0.0153890215,
0.0693673342,
0.0225957297,
-0.1770962477,
-0.023974061,
0.1697227508,
0.1075287834,
0.0790483728,
-0.3709748387,
0.1485445797,
-0.085123688,
0.0055118427,
-0.2897942066,
-0.0226650015,
-0.2290743887,
-0.2103302479,
-0.084840402,
0.3650324643,
0.201814726,
0.0982012004,
0.1191344261,
-0.200209856,
0.2110097408,
-0.1640933305,
-0.1957547516,
-0.215616405,
-0.157966584,
-0.019952137,
0.4141776562,
-0.0392513424,
0.266119957,
-0.0810978636,
0.1195301563,
-0.309435606,
-0.1037662178,
0.139234364,
-0.2589540184,
-0.1265079826,
-0.1212613061,
0.2966690958,
-0.0175367743,
-0.065034084,
0.1117537767,
0.0458012149,
-0.0447584689,
0.2886177599,
0.0960975289,
-0.0350136459,
-0.0744960234,
-0.5995058417,
-0.2112913728,
-0.1445088387,
-0.0621449053,
-0.3863688111,
-0.0292697102,
-0.1203251332,
0.4604271948,
0.2548901439,
0.0141043589,
0.1126453504,
-0.0298505221,
-0.2954285741,
0.5208234191,
-0.2749047279,
-0.4628773332,
-0.0779243857,
0.2729066014,
-0.0477545224,
0.315407306,
-0.1507889926,
0.0254722722,
-0.4094623625,
0.0454139113,
-0.1422854811,
-0.0549075678,
0.4183912873,
0.1074017435,
0.0682941973,
-0.0847117081,
0.0460313931,
-0.031850908,
-0.1916356385,
0.097107619,
-0.072892487,
0.3707446158,
0.0162026733,
0.4566968083,
-0.1325985789,
-0.4772812426,
0.1253284663,
-0.1024670601,
0.33996436,
-0.0632664561,
-0.4580647647,
0.0325972103,
-0.1638096571,
0.0203834847,
-0.1377482414,
-0.0733872801,
-0.1564055979,
-0.2065340132,
0.2494827807,
0.0467860848,
-0.1162742972,
0.2099993229,
-0.50378865,
0.0899973512,
-0.119448781,
0.3503583074,
-0.2200538516,
-0.2446115613,
0.0894980207,
-0.026219029,
0.0932114422,
0.045253586,
-0.5232166052,
-0.0482226498,
-0.3011491001,
0.327544421,
0.2851087451,
0.3945768774,
-0.1878954321,
0.0880642533,
0.1405410767,
-0.0121411663,
0.5735451579,
0.0773104206,
-0.3306097984,
0.071465075,
-0.065498203,
-0.6979699135,
0.1823855937,
-0.1450956017,
0.1250781417,
0.0778572783,
0.3985332251,
-0.2446838766,
-0.5145682096,
0.166102767,
0.5513160229,
-0.0679396763,
-0.1278382838,
-0.1222827137,
-0.0074195787,
-0.3731989563,
-0.0467733219,
0.3043912351,
0.1292805672,
-0.3400326073,
-0.3042583466,
-0.1497846991,
0.0717579126,
0.4278432131,
-0.0078840479,
0.1984149814,
-0.1825613379,
0.3117379546,
0.1805599183,
0.336394012,
0.2041885853,
0.1429824531,
-0.2641712427,
0.0028306916,
0.1976447403,
0.1578179002,
0.3143097758,
0.1388795823,
-0.0275352467,
0.0444600582,
-0.322571665,
0.1053725928,
-0.1478790194,
0.3770978451,
0.4117918611,
0.4101706147,
-0.5693949461,
-0.4581962228,
0.1601796448,
0.2949399352,
0.1253014505,
0.5142189264,
-0.1398284286,
-0.1602346003,
0.2174321413,
0.1858225912,
0.9097235799,
-0.5160062313,
0.3435384631,
0.1018017083,
-0.1608802527,
0.3924467266,
-0.4085100293,
0.0474888012,
-0.4014603794,
-0.0857330561,
-0.0788029358,
-0.3112158179,
0.3145550191,
-0.1096248478,
-0.2194162309,
0.1111755818,
-0.285261035,
0.3628262877,
-0.1312672794,
0.4157396555,
-0.256492883,
-0.3052507937,
0.0096838176,
0.1124138609,
-0.1420693696,
0.0391998887,
0.1307405531,
0.0171864219,
-0.2372531146,
0.0918159038,
-0.2067212909,
0.1955276132,
-0.3046237528,
0.0834034383,
-0.2852321267,
-0.6679528952,
0.2832602262,
0.807321012,
0.3981667161,
0.0669002831,
-0.0834552124,
0.0971856043,
-0.1695283949,
-0.2504494786,
0.0269059353,
-0.3444750011,
0.2013789564,
0.0798744112,
-0.1297059059,
0.2350294888,
0.0575708486,
-0.1077379659,
-0.0895993486,
-0.0086022764,
0.2334493399,
-0.4762618542,
-0.2683626115,
0.0145066828,
0.0258033872,
-0.0851542503,
0.0587985702,
0.0282175764,
0.0383640304,
0.1562392414,
-0.0542334542,
-0.1352989227,
0.0846429169,
0.6563453078,
-0.006126726,
-0.0961023271,
0.5771401525,
0.621327281,
-0.2204686254,
-0.2095316947,
0.2048726976,
0.4002886713,
-0.319152236,
0.0689036474,
-0.16019696,
-0.1529138982,
-0.1304023266,
0.0528425127,
-0.1703874916,
-0.1908479482,
-0.0382954068,
-0.0024240687,
-0.5649744272,
0.0948403925,
0.2658153772,
0.4143567979,
0.1766459346,
0.0676170439,
-0.2299853563,
-0.1004003063,
-0.1700627804,
0.1461406648,
0.0186310709,
0.1811940074,
0.1692637205,
-0.1351483762,
0.1340317726,
-0.4327133596,
-0.0117483959,
0.2693085372,
0.1207040101,
-0.1611533463,
0.0037204698,
0.0609982684,
-0.1493926048,
-0.2178908587,
-0.2222032249,
-0.3654770255,
0.1486219466,
-0.1958627403,
0.2625585794,
0.5388063192,
-0.1317018718,
0.0577051267,
-0.1244097948,
0.2113129497,
-0.068003267,
0.0010777088,
-0.1793114841,
0.0337105319,
0.0958345905,
0.0973700881,
0.3113966584,
-0.0363970175,
-0.3601104021,
0.1446570456,
0.4241940677,
-0.0860700309,
0.0985021964,
-0.2135945261,
0.0952602029,
-0.0058069788,
0.1979546845,
0.3417717218,
-0.1832291782,
-0.0298401527,
0.2780561745,
0.0876778811,
0.0256876796,
-0.0857884437,
-0.3014294505,
-0.1910790205,
-0.0677776486,
0.0360643826,
-0.0907769948,
0.4408112764,
-0.1841946393,
0.2449501753,
0.2201439291,
-0.0537630804,
0.1670486927,
0.3690190315,
0.1142242774,
-0.0323901214,
0.2292594761,
0.1114541292,
-0.038272664,
-0.0421533622,
0.1451997608,
0.6161937714,
0.3098065257,
0.2715210021,
0.3532732427,
0.0654800758,
-0.2112427503,
-0.0687884837,
0.039396923,
-0.0224068314,
-0.0484438762,
0.4712452888,
-0.1950105429,
-0.4782598019,
-0.0793803334,
0.1935921162,
-0.2054060102,
-0.0167617202,
-0.155836463,
-0.1668984592,
0.1748679131,
-0.0170218125,
-0.058065597,
-0.0894873813,
0.3186839819,
0.3166032135,
-0.0515857413,
-0.0481537804,
0.1059053838,
0.2006663233,
-0.0935685337,
0.0305728093,
0.1262202263,
0.1343726814,
-0.1311130226,
0.0214788318,
0.2105252147,
0.3595523238,
0.1974032074,
-0.3775435984,
0.1038368046,
0.0788815171,
-0.1375027448,
0.4146792889,
0.2447693944,
-0.0010710917,
0.0035327543,
0.3206643164,
0.1115696803,
-0.1362183094,
-0.1674807966,
-0.0720983744,
0.0024066605,
-0.2286163568,
0.3632540405,
-0.1428266466,
-0.2521867156,
-0.2247457206,
-0.2958548367,
-0.3985681534,
-0.0584643222,
0.6664864421,
-0.1330007911,
-0.1282683909,
-0.0228909273,
0.0111746341,
0.2890183628,
0.5228796005,
0.0561602749,
0.2366772443,
-0.3511779308,
0.0257968605,
-0.2219411284,
-0.0386844128,
-0.0867254883,
0.0581286922,
-0.0493375622,
0.0415672436,
0.1033096164,
0.3067890108,
0.0808419734,
-0.0879521146,
0.1135653704,
0.2893976271,
-0.3699814081,
-0.0638180375,
-0.0227775052,
0.101789996,
0.1345223188,
-0.3856551051,
0.2077292949,
0.1359435022,
-0.0244490951,
-0.367621243,
0.1786265969,
0.1885699928,
-0.0352406017,
0.20211339,
-0.0608665794,
0.6809903383,
0.1546275765,
0.00142432,
0.1001372635,
-0.2080873549,
-0.0296401978,
0.0288340598,
0.0372900143,
0.2259256542,
-0.1935018897,
-0.2897951007,
-0.2599356472,
0.4156821668,
-0.0505483709,
-0.0398918316,
-0.1345123351,
0.109374322,
0.0320103392,
0.1095596105,
0.272598803,
0.5703676343,
0.0921329409,
0.4067798853,
-0.3857578933,
-0.1645227075,
0.5223590732,
-0.2746145725,
-0.3560433984,
-0.0018263385,
-0.0017385483,
0.5570203662,
0.0881889537,
-0.7385705709,
-0.0915500224,
-0.0065585896,
-0.2329976112,
0.04508169,
0.2087853253,
0.1827593893,
0.1478168517,
-0.1287043095,
0.352814436,
0.0756198466,
-0.002041474,
-0.256773144,
-0.2446461469
] |
https://github.com/huggingface/datasets/issues/816 | [Caching] Dill globalvars() output order is not deterministic and can cause cache issues. | To show the issue:
```
python -c "from datasets.fingerprint import Hasher; a=[]; func = lambda : len(a); print(Hasher.hash(func))"
```
doesn't always return the same ouput since `globs` is a dictionary with "a" and "len" as keys but sometimes not in the same order | Dill uses `dill.detect.globalvars` to get the globals used by a function in a recursive dump. `globalvars` returns a dictionary of all the globals that a dumped function needs. However the order of the keys in this dict is not deterministic and can cause caching issues.
To fix that one could register an implementation of dill's `save_function` in the `datasets` pickler that sorts the globals keys before dumping a function. | 43 | [Caching] Dill globalvars() output order is not deterministic and can cause cache issues.
Dill uses `dill.detect.globalvars` to get the globals used by a function in a recursive dump. `globalvars` returns a dictionary of all the globals that a dumped function needs. However the order of the keys in this dict is not deterministic and can cause caching issues.
To fix that one could register an implementation of dill's `save_function` in the `datasets` pickler that sorts the globals keys before dumping a function.
To show the issue:
```
python -c "from datasets.fingerprint import Hasher; a=[]; func = lambda : len(a); print(Hasher.hash(func))"
```
doesn't always return the same ouput since `globs` is a dictionary with "a" and "len" as keys but sometimes not in the same order | [
-0.0819264352,
-0.0495188832,
-0.0879311264,
0.121614635,
0.0892915055,
-0.1563625038,
0.1671692729,
0.2433263659,
-0.0996842906,
0.0803643987,
-0.0827870667,
0.2674161494,
-0.1859901249,
-0.2689157724,
0.0077189915,
0.3598431051,
-0.0797577351,
0.0291418452,
-0.4379900396,
-0.2746309638,
-0.2619418204,
-0.0908105373,
-0.1203613654,
-0.1932394803,
-0.421674788,
0.0018893871,
-0.0498693809,
0.246716693,
0.0397862419,
-0.34216699,
-0.1833329797,
0.1572593451,
0.0308243036,
0.1896596849,
-0.0001114966,
-0.1850806177,
0.2640142441,
-0.0081460662,
-0.2726578116,
0.0902216285,
0.0154269859,
0.1384180933,
-0.040975228,
-0.2122767568,
0.1143217385,
-0.1681278646,
0.0286573339,
-0.6539844871,
0.0326686502,
0.0999310687,
0.2772490978,
0.1996293664,
-0.138913095,
0.1366505921,
0.328856647,
-0.0815244913,
-0.00222601,
0.2885019481,
0.010409059,
-0.0936942101,
-0.3071181476,
0.281321466,
-0.1913656294,
0.0808457285,
0.3518432379,
0.1796073765,
0.0172837805,
0.0677473545,
0.1912312061,
0.0597437806,
0.3375328183,
-0.5688877106,
-0.4461807013,
-0.253459394,
-0.1146054491,
-0.0763150603,
0.1631677896,
-0.1536453217,
0.1536258161,
0.1698359549,
-0.1345390677,
0.0991548896,
0.2495270222,
0.0985693187,
-0.0092676878,
0.1577008963,
0.0677677691,
-0.0419674702,
0.016090367,
-0.1232827976,
0.2864696085,
-0.2080321908,
0.1085585058,
-0.0559337996,
0.0168904848,
-0.0224736556,
0.3788662255,
0.1954948604,
0.1477335542,
0.0638354346,
0.0911783874,
0.0182210617,
0.1135692298,
0.0352340117,
0.1287696362,
0.2473441809,
0.1520801634,
0.357517451,
0.3471332788,
-0.5027480125,
-0.3569698334,
0.1133539081,
0.2867191434,
-0.0380506217,
0.6074770689,
0.1303845197,
-0.0743753165,
-0.0495638214,
-0.0314394012,
0.326649636,
-0.0200539157,
-0.2020177841,
0.2717584968,
0.4664558172,
-0.3419176936,
0.198201865,
-0.0471670963,
-0.2786377072,
-0.1859294176,
0.3082938194,
-0.3718246222,
-0.154163301,
-0.1405807734,
0.2501675487,
0.0095405132,
-0.1329054683,
0.1580963433,
0.1285110414,
0.2983816266,
0.1937912554,
0.0873247087,
-0.3041605353,
0.393050015,
0.1353821605,
-0.0953307003,
0.2159695625,
0.0472164787,
-0.0636443943,
-0.4521886408,
0.0486172289,
-0.0159860142,
-0.2103937566,
-0.0230900403,
0.284732163,
-0.238686353,
0.0968030766,
0.191235885,
-0.2342093587,
0.2490409613,
-0.1804464459,
-0.0749650896,
-0.3261180818,
-0.3251352608,
-0.4191173911,
0.0944069847,
0.4102353156,
-0.3341305852,
-0.0940671489,
-0.1776915789,
0.2597625852,
0.1473856568,
0.1098356768,
-0.0282691661,
-0.0454401709,
-0.3166434169,
0.2087909877,
0.0650048405,
-0.3961064219,
-0.5688531995,
0.0614080355,
-0.1132695004,
0.2327503711,
-0.0886430368,
0.1138272062,
0.4595198929,
-0.0851630569,
0.1303595901,
0.2083604485,
0.2607240677,
0.2012593746,
-0.3684206009,
-0.0376232862,
0.0532563441,
-0.0696238279,
-0.0592399612,
-0.0664019436,
0.1056604683,
-0.1016228199,
0.0801988468,
-0.0615176633,
0.0204898939,
0.138024509,
0.3963463604,
0.0872471035,
0.2272404432,
-0.0892871693,
-0.6030644774,
0.3717263937,
-0.0349174514,
-0.4906651676,
-0.2042221129,
-0.3759240508,
0.1311757863,
0.1593646109,
-0.0334558263,
0.0759954378,
0.0885329321,
0.3169270158,
0.2658632696,
0.2659104764,
0.0573767275,
0.1314190626,
-0.1487328112,
-0.2696956694,
0.0122146681,
0.0469746962,
-0.1958998442,
-0.2563337982,
0.0352158472,
0.0014541335,
0.0427273735,
0.0691585243,
-0.1159347296,
0.2138013691,
0.1877533048,
-0.0765464157,
0.0036100075,
0.3865775466,
-0.171390757,
-0.0223203376,
0.2390534282,
0.1847988963,
0.064140141,
-0.148322165,
-0.1509418637,
0.680660367,
0.1176841408,
0.0892539993,
-0.0601301044,
-0.1575535685,
-0.0774334893,
0.0911974162,
0.0173606426,
-0.4390442371,
0.0523103476,
-0.1941666305,
0.6369011998,
0.3142584562,
-0.2441954464,
0.418931067,
0.6483612657,
0.040000841,
0.2394365966,
0.1224158034,
0.0175776705,
-0.2655008137,
0.1121725067,
-0.1683277041,
0.4186323285,
0.2538228333,
0.1602879763,
-0.0879487842,
0.0060970373,
-0.1408473551,
0.0432095975,
-0.243365705,
-0.0574140474,
0.2297235727,
0.1816813052,
-0.078730993,
-0.1304654479,
0.0715683848,
-0.0922228694,
0.1561158895,
-0.1333820224,
0.0872979313,
-0.4846898913,
0.1538641006,
0.0726691335,
-0.1994605511,
-0.2668471038,
-0.282163322,
0.1082780361,
0.0481428392,
-0.1991004497,
0.1922542304,
-0.2088040262,
0.1449299306,
0.2055568099,
-0.3224637508,
-0.2208681852,
-0.1914170384,
-0.2088927329,
0.00586785,
0.1395240575,
-0.1580911875,
0.3791801929,
0.0502017811,
-0.143288523,
-0.2470650822,
-0.195889771,
-0.0793744326,
0.1651480049,
0.0886351988,
0.0485241227,
-0.2080034912,
-0.2918452024,
-0.3191619813,
0.1711025685,
-0.3942878544,
-0.3049256504,
-0.268091768,
0.1064395308,
0.0693451613,
-0.0969771743,
-0.0972777382,
-0.1017938256,
-0.2493076771,
-0.119463861,
0.0802556574,
0.2488237619,
-0.0363948531,
-0.1088805422,
-0.0146396682,
0.0594105534,
0.1286456287,
-0.4220733047,
-0.3723149002,
0.3654731512,
-0.2404799163,
-0.2015719712,
-0.2894233763,
-0.2820837498,
-0.2084702104,
0.1274227798,
-0.4713214934,
-0.4080055654,
-0.2187340707,
0.3893479109,
0.1095758229,
0.0051509682,
0.1764835864,
-0.0399256162,
-0.0563619323,
-0.223070845,
-0.2313830256,
0.0313621685,
-0.0464049764,
0.1364596784,
0.026224941,
-0.0058430149,
0.0798951983,
0.8998243809,
-0.0113258585,
-0.3779033422,
0.0146307712,
0.1756104231,
0.3247358203,
-0.2775584757,
-0.2364737689,
0.1491017044,
0.0812692642,
0.1021386981,
0.3682432175,
-0.0651275516,
-0.2316619605,
0.0626735091,
0.276961267,
-0.4035153091,
-0.2864980102,
0.1481479257,
-0.3117346168,
-0.1262225509,
0.1735557914,
0.3351282775,
-0.2934385538,
0.0429752953,
0.0211328566,
-0.1494348049,
0.2826307416,
-0.0590809174,
-0.0108064339,
0.2990711927,
-0.3614233732,
0.3434771895,
0.235840857,
0.1108583733,
0.0882394761,
-0.401043117,
0.143425405,
-0.1349487007,
0.5495228767,
-0.1641125083,
0.1260452718,
0.1582792699,
-0.484235853,
-0.0956233442,
-0.0304000489,
0.1184853762,
0.1968016475,
0.2551359534,
0.0388440154,
-0.3402622342,
0.0498503,
-0.0500084199,
0.0486907363,
-0.0687910616,
-0.321480304,
-0.2081471235,
-0.037243098,
0.0294930711,
0.0547012128,
-0.211448878,
0.1144880876,
-0.1402605176,
-0.0664143711,
-0.2791723907,
-0.2111036479,
0.1920107305,
0.0755912066,
0.3900789618,
-0.1225340813,
0.414575696,
0.2395907342,
0.4274956584,
0.0329535753,
0.1387426406,
-0.3923276663,
-0.1195819378,
0.1017705649,
0.0948025435,
-0.158209011,
0.3111719191,
-0.0407912433,
-0.022208482,
0.0554259159,
0.0218417458,
-0.1187237799,
0.1140559316,
0.0108845308,
0.1072778702,
-0.3166206479,
-0.4029176831,
0.2768452466,
0.2825392485,
-0.1167238727,
0.5915078521,
-0.1340255439,
-0.1336924583,
0.1936591864,
0.4005242288,
1.1834964752,
-0.2322787941,
0.2383719981,
0.0206899196,
0.1786905676,
0.0663910955,
0.2275194824,
-0.0020098891,
-0.419783175,
-0.227865994,
0.1450520158,
-0.1376361102,
-0.0428062715,
-0.1463012099,
-0.2276194692,
0.02682155,
-0.3041322827,
0.3562987149,
-0.1215878651,
0.2969778776,
-0.050946638,
-0.0515764579,
0.3112770319,
0.2058668435,
0.1518609822,
0.1217871979,
-0.0988249928,
0.1393097192,
-0.122469306,
-0.1717008352,
0.0069991648,
-0.000060223,
-0.0879222006,
0.4257007837,
0.0290252753,
-0.3966644406,
-0.4203561544,
0.4777067304,
0.1334199607,
0.2134616226,
0.035522148,
0.1281352341,
0.0422879048,
0.3417686522,
0.0404706821,
-0.2964969873,
0.1377903223,
0.1243945658,
-0.0929036364,
-0.0122522488,
0.25149858,
-0.4036676884,
-0.2988366485,
0.4665338099,
-0.197962746,
-0.0991266966,
-0.0215116255,
0.0649684146,
-0.1109246612,
-0.1502814889,
0.1958771497,
0.359541744,
-0.0462892503,
0.5922558308,
-0.2799727917,
-0.1550388485,
-0.2139160335,
0.6729288101,
0.2095047534,
0.3016415834,
0.0368693322,
0.0176524743,
-0.4765996933,
-0.1334563196,
-0.1271632016,
-0.4220749736,
0.136696443,
0.4294392467,
-0.0695432499,
-0.0391995907,
-0.1124986708,
-0.0852753073,
-0.0871283859,
0.1773778349,
-0.3132678866,
-0.0296300948,
-0.1486728191,
-0.0450391062,
-0.1579335481,
0.2434313893,
-0.0159739107,
0.1389189661,
-0.3936753869,
0.333286345,
-0.4051204622,
-0.1230916977,
-0.2080713212,
0.0440109,
-0.1888353676,
-0.2565602064,
0.1808724403,
-0.144714728,
0.227992624,
0.2750187814,
-0.1062994301,
-0.2835399508,
-0.0280253254,
0.0919839293,
-0.0844925791,
0.1104623303,
-0.0389811806,
-0.0929505304,
-0.0075979484,
-0.3970495462,
0.2798281014,
0.5578253865,
0.0309446976,
0.0972243771,
0.0877608582,
-0.1142403632,
0.3257339299,
0.285826236,
-0.2543868423,
0.1293894947,
-0.2279170156,
0.3314226866,
-0.0536842495,
-0.082950756,
0.3215905726,
0.0306043923,
-0.0861039013,
-0.1676232517,
0.297496438,
0.0400655977,
-0.2399724126,
0.2387816459,
0.4261128902,
0.1939099431,
-0.0205077827,
-0.4133688807,
0.3929365277,
0.23046875,
-0.1804400235,
-0.3763193488,
0.0591883138,
0.0784869641,
0.1060817987,
0.132766664,
-0.0895822644,
-0.0144723877,
-0.0005609728,
-0.0446503833,
0.2314901799,
-0.1061652675,
0.1497289389,
0.1725639105,
0.3157947063,
0.0230834726,
0.4607911408,
0.1874251068,
0.1809666157,
0.3305384815,
-0.1241101921,
0.1913287193,
-0.18209593,
0.0102817593,
0.0088984687,
-0.5474198461,
0.4308395684,
0.3629769683,
-0.1097004861,
0.2956850529,
0.0735183805,
0.183211863,
0.0164284483,
0.1066220552,
-0.1848501265,
0.1507457346,
-0.2467527986,
-0.0344878957,
0.111354813,
-0.0215219185,
0.1639778018,
0.070409514,
-0.0889811516,
-0.2862013578,
0.3403049707,
0.1530382335,
-0.0340164937,
-0.2817851007,
0.2028589845,
-0.322922498,
0.2571032941,
-0.1704563797,
-0.0473236665,
0.1258998066,
0.1614992619,
-0.1658187509,
0.1366128623,
0.245037958,
0.5118282437,
-0.0608612522,
0.1065679193,
-0.0077794082,
-0.0586206391,
-0.4952118993,
0.3433314264,
-0.3125851154,
-0.3157381415,
0.3530359268,
0.209296152,
-0.2533222437,
0.0642436892,
0.0696772784,
0.2718551457,
0.2033100575,
0.1590229869,
0.0150678009,
0.1130049527,
0.0240573287,
0.2794404626,
-0.2663087249,
-0.2240268141,
0.3107806146,
0.0132213384,
0.1472039521,
-0.2555629313,
0.0890769437,
-0.1660216451,
0.3152882159,
0.3831396699,
0.3086489737,
-0.1163452715,
0.0531301796,
-0.3521822691,
0.3837220669,
-0.1386060715,
-0.001588583,
-0.080075413,
0.4194470942,
-0.1131012142,
-0.1083754748,
0.071257636,
0.3192205429,
-0.0017823316,
0.3947656751,
-0.4328180552,
0.1371632218,
-0.5196852088,
-0.2913023233,
0.1394791305,
-0.5391646624,
0.1958772689,
-0.0349055566,
0.204813078,
-0.284093231,
0.1139303148,
-0.0007825792,
0.1637156457,
0.5047896504,
0.3265341222,
0.2440894544,
-0.1214170679,
0.0880952552,
-0.0405599363,
-0.100420326,
-0.0561727509,
-0.2300751507,
0.0645583645,
0.1127055362,
-0.310934037,
-0.346867919,
-0.1534580886,
0.6476136446,
0.0630397797,
-0.0504760221,
0.0664478242,
-0.0019152723,
-0.2814871669,
0.0068401545,
-0.1915133744,
0.3433916569,
0.0192118324,
0.1441070139,
-0.2024854422,
-0.3411548734,
0.6150747538,
-0.0810096115,
0.0345463827,
-0.244335115,
0.287325263,
0.2199005336,
-0.1681069285,
-0.2365333736,
-0.159469381,
0.2943345904,
0.1065889448,
-0.1817378551,
0.0841092467,
0.0291777477,
0.21672979,
-0.1901468188,
-0.0664684325,
-0.0346955992,
-0.2794094682,
0.1684291363,
-0.3506390452
] |
https://github.com/huggingface/datasets/issues/815 | Is dataset iterative or not? | Hello !
Could you give more details ?
If you mean iter through one dataset then yes, `Dataset` object does implement the `__iter__` method so you can use
```python
for example in dataset:
# do something
```
If you want to iter through several datasets you can first concatenate them
```python
from datasets import concatenate_datasets
new_dataset = concatenate_datasets([dataset1, dataset2])
```
Let me know if this helps ! | Hi
I want to use your library for large-scale training, I am not sure if this is implemented as iterative datasets or not?
could you provide me with example how I can use datasets as iterative datasets?
thanks | 67 | Is dataset iterative or not?
Hi
I want to use your library for large-scale training, I am not sure if this is implemented as iterative datasets or not?
could you provide me with example how I can use datasets as iterative datasets?
thanks
Hello !
Could you give more details ?
If you mean iter through one dataset then yes, `Dataset` object does implement the `__iter__` method so you can use
```python
for example in dataset:
# do something
```
If you want to iter through several datasets you can first concatenate them
```python
from datasets import concatenate_datasets
new_dataset = concatenate_datasets([dataset1, dataset2])
```
Let me know if this helps ! | [
-0.2620129883,
-0.2916283607,
-0.1804153621,
0.11397098,
0.0606512092,
-0.0265369713,
0.2819752097,
0.1687741578,
0.1109020561,
0.0845516995,
0.1554597318,
0.2481859624,
-0.3554360569,
0.3489526212,
0.171100229,
-0.0656196028,
0.0205351301,
0.1369706392,
-0.6233141422,
-0.0821493939,
0.0825395957,
-0.127439484,
-0.2666276097,
-0.1741285622,
0.0523187406,
-0.3682795763,
-0.3957517445,
-0.142244488,
-0.2242217213,
-0.3630470634,
0.2143727541,
0.2408524454,
0.4066431522,
0.5543973446,
-0.000103148,
-0.1346856356,
0.1404356211,
-0.0824475512,
-0.1723605841,
-0.2457788885,
-0.1541205794,
-0.267306447,
0.0849708393,
-0.4197583795,
-0.0327184796,
-0.1310341656,
0.0873624161,
-0.3289755881,
0.2696438134,
0.1327248812,
0.2795181572,
-0.2198542058,
0.1302629113,
-0.0211496279,
-0.0317634791,
0.072619237,
-0.0583842844,
0.220533222,
0.1717948914,
0.1565462053,
0.1211118624,
0.0287261494,
0.1655883491,
-0.0035966169,
0.3876420557,
-0.0965652168,
-0.0442574657,
-0.4276582599,
-0.1730998158,
0.0660026893,
0.8125041723,
-0.4412546158,
-0.3938426673,
0.049085781,
0.043076966,
-0.5168248415,
-0.1527067125,
0.1491914093,
0.0641433448,
0.0586711951,
-0.1348235458,
-0.2621480823,
-0.2698771954,
0.1240683496,
-0.1202692091,
0.1766417325,
-0.1396184117,
0.0977384448,
0.1554125994,
-0.1787712127,
0.3191448748,
-0.0058363657,
0.1843647659,
0.2849906683,
-0.56351614,
-0.3246939778,
0.0088888947,
0.3077011704,
0.3426324129,
0.38453722,
0.0610333569,
-0.0531118773,
-0.1638742983,
0.2153864801,
0.5052186251,
-0.0575833246,
-0.096765995,
0.0773623586,
0.1371306479,
-0.0746226907,
-0.1787652075,
-0.0850113332,
-0.2036226094,
-0.235118866,
0.135438323,
-0.1673396826,
-0.0108032562,
-0.0898147002,
-0.0006079897,
-0.2141323835,
-0.2479063421,
-0.2665737569,
0.1642466187,
0.2358458489,
-0.2475820333,
0.1832306683,
-0.271871835,
-0.1247226521,
0.0381810591,
0.2522243559,
-0.1004245132,
0.4507004917,
-0.3770987988,
0.0321810842,
-0.0641271174,
-0.3635902107,
0.0666289181,
0.0946309566,
0.1086150408,
-0.0891534835,
0.1355139613,
-0.272885263,
0.3756601512,
-0.0038802177,
-0.0490063243,
-0.0022546723,
-0.1385651976,
0.0565217882,
-0.4262948334,
0.0191204976,
-0.3938418627,
-0.0465500429,
-0.0372906402,
0.2154170573,
-0.183113426,
-0.2176528424,
0.0798006654,
0.1534951031,
0.0734745264,
-0.112354815,
0.0158816241,
-0.1077264249,
-0.033881478,
-0.2993709743,
0.0883342549,
0.1641409993,
-0.3570516109,
0.0776654631,
0.0804294124,
0.0491956435,
0.1362267882,
0.2218890041,
-0.2568957508,
0.2136598825,
-0.2126915455,
-0.0707968622,
0.5765585899,
-0.2613779008,
-0.1435529441,
0.2921447158,
0.0746690705,
-0.002798833,
0.1206456423,
0.1994356215,
-0.0524058715,
-0.016934175,
-0.1686788946,
0.2380017787,
-0.0114636086,
-0.1006746441,
-0.0052552223,
0.1009074822,
0.1932466924,
0.0401521921,
0.0893868357,
0.2351980507,
0.0582369789,
0.1127638221,
0.4554217458,
-0.2984417975,
0.1082943007,
0.2104291469,
0.3090746403,
0.1148997694,
0.1462789029,
-0.3679889143,
0.1484364569,
0.0986366048,
0.2785970271,
0.0520480201,
0.2340694219,
-0.0693482459,
-0.0442875028,
0.0764070824,
-0.215916723,
-0.057886906,
0.1884935051,
0.1673409641,
0.1742748022,
-0.1189607084,
-0.589941144,
0.2185589522,
-0.2163224816,
-0.1184477806,
-0.5084570646,
0.2147316337,
0.1542230844,
-0.010816779,
0.0965033621,
0.1169576198,
-0.184694767,
-0.434378624,
0.2691549659,
0.2770813406,
0.0440994613,
-0.0713124126,
0.0792737007,
0.3585063815,
0.2771755159,
-0.1215387061,
0.0665500462,
-0.1913223565,
0.3170201778,
-0.0304635987,
0.2445867211,
0.4754383862,
-0.1599057615,
0.189233318,
0.4515470266,
-0.1398740411,
0.0697890148,
-0.0783413351,
-0.3781234622,
0.1251232177,
-0.1108884066,
-0.1647181809,
0.4323982596,
-0.1913582534,
-0.4387001693,
-0.2600630224,
0.4845893085,
-0.0010405257,
-0.0046965145,
0.065474987,
-0.0733864456,
0.0072840601,
-0.0527891219,
0.1374269277,
0.3874974251,
0.0551787056,
0.2038330436,
0.0640800297,
0.0119077601,
0.1259279251,
0.1537789702,
0.0687422529,
0.313061893,
-0.0194037668,
0.0347605124,
0.0564903878,
-0.1635873914,
-0.3934366405,
-0.0763188154,
0.1618541032,
-0.0211358964,
0.3687207699,
-0.3297154307,
-0.3494108915,
-0.3988716006,
-0.2384469807,
0.1140258014,
0.0361569598,
-0.2951515019,
-0.0410352908,
0.3395085335,
0.1355221421,
0.1492674351,
0.1712174118,
0.0856722295,
0.0247136001,
0.0559496582,
-0.024967676,
-0.0153805241,
0.1965170056,
0.2742661536,
-0.1589586139,
0.5873373151,
0.0007301122,
-0.0804169625,
-0.3680337369,
-0.1861911416,
0.1703967899,
-0.0128432382,
0.0351402164,
0.2513343394,
-0.0045825839,
-0.0489990823,
-0.091822736,
0.0235354677,
-0.3367697597,
0.1729477942,
-0.2204841971,
-0.1017428339,
0.1009222865,
0.0909779221,
-0.2924438715,
-0.5083230734,
-0.2475087792,
0.2429559678,
0.4355326295,
0.2685109377,
0.1604336202,
0.0689343587,
0.2123545408,
0.1988352537,
0.0773472786,
0.0226621814,
-0.2997833788,
0.1812628955,
-0.3456684947,
-0.2615368962,
-0.0005996749,
-0.0124737769,
0.4389666617,
0.1449294388,
-0.2703375816,
-0.1131630093,
0.007862132,
-0.0164934844,
0.0693445802,
0.5041061044,
0.1270899177,
-0.226827383,
-0.0835566148,
-0.0664391518,
0.0531284586,
-0.0664719641,
-0.1430536062,
0.2096244693,
0.454849571,
0.3592882752,
-0.046001792,
0.3433164358,
0.2341690809,
-0.4142981172,
0.358722657,
-0.3138971329,
-0.1621468514,
-0.0567740723,
-0.2992811799,
0.0955501124,
-0.3289946318,
-0.2866766453,
0.0765290484,
-0.1328622103,
-0.3404942751,
-0.33776173,
0.1142510846,
0.014496401,
-0.0170974657,
-0.0081661018,
-0.333650589,
0.2520328462,
-0.2462819368,
-0.1816346347,
-0.1159573793,
0.0789186507,
-0.0262020268,
0.099978447,
0.1092673689,
-0.1281918138,
-0.539781332,
-0.1871839464,
-0.283196032,
0.0810424313,
-0.1094381288,
0.2423328906,
0.3701022863,
-0.1744753122,
0.0719156787,
-0.3205094934,
0.3552827835,
-0.0110203056,
-0.5156713128,
0.0702783912,
-0.4106994569,
0.0827034339,
0.11707481,
-0.3059649169,
0.5226400495,
0.1802409887,
-0.0700214058,
-0.1232785955,
-0.2890223861,
0.3584616482,
0.1638959497,
0.0033585727,
-0.2747868598,
-0.025492698,
-0.2516488433,
-0.2371177971,
-0.1153582335,
-0.1130124778,
0.0015424006,
-0.0715369135,
-0.0634524003,
-0.2532049417,
0.0591781884,
0.2296277881,
-0.0585728697,
0.0305902474,
-0.0187706389,
0.1887830198,
0.0589880496,
0.3322998285,
0.3582285345,
0.3531623483,
-0.1257247627,
-0.0742666721,
0.1878254563,
0.2395171374,
0.4375710785,
0.0094461702,
-0.0741963461,
0.1853925735,
-0.219852984,
-0.0161873028,
-0.3805893958,
-0.0386220254,
0.3348109722,
-0.0018568747,
-0.6414476037,
-0.8713591695,
0.5688748956,
0.2613632083,
0.0040652305,
0.3360824287,
-0.1226271242,
-0.1023519486,
-0.0902928412,
0.1467001289,
0.6982845664,
0.0836786181,
0.0944307446,
0.1957822591,
0.2910908461,
0.4742544591,
-0.023176685,
0.0957147628,
-0.4712148905,
-0.2424993515,
-0.1576358974,
-0.1352897286,
0.3274860978,
0.0973744094,
-0.2673662901,
0.4617576599,
0.0861323476,
-0.0191616099,
-0.0781332776,
0.2627311945,
-0.2957570851,
-0.1491945088,
-0.3420796096,
0.2087102234,
0.1375454962,
0.1305046678,
-0.1679984629,
-0.1962711811,
0.3250439763,
0.1217647046,
-0.0259974599,
-0.147004053,
-0.1014486104,
0.0157760009,
0.1271653473,
-0.3621408939,
0.292429626,
0.1912249029,
0.2234525532,
-0.0133159831,
-0.0412633866,
0.0281852335,
-0.1452393681,
-0.0370999724,
-0.0228265636,
0.1572776437,
0.5331597924,
-0.0537826419,
-0.064875409,
0.2946962714,
0.0965829045,
-0.0767129511,
-0.083732225,
0.2173758447,
0.2105667591,
-0.1378242373,
-0.136859864,
0.4520660341,
-0.1138687283,
-0.0730501637,
0.1984200329,
0.1927947402,
-0.2502838969,
0.4345500469,
-0.0265245344,
-0.1206347793,
-0.1684547812,
0.1748001426,
0.2953974605,
-0.1548338532,
0.271171689,
0.0277813971,
-0.2030160427,
-0.2583884597,
0.1134039238,
0.188751474,
0.0470321029,
0.035775397,
0.0563850515,
0.364164114,
0.2256294489,
0.1616131365,
-0.0040460462,
0.0757432431,
-0.352245152,
-0.1699045449,
-0.2105129361,
0.0448398367,
0.1735903174,
0.3234496117,
-0.050631132,
-0.0821363479,
0.1715502739,
0.0824960321,
-0.3810792863,
-0.0656669438,
-0.1518848538,
0.1120757088,
0.0901950449,
0.0344071575,
-0.2411401421,
0.3060912192,
0.1729074717,
0.1513151973,
-0.2065103948,
-0.279961586,
-0.0027318671,
0.0741401687,
-0.0406976715,
-0.0506378487,
0.1484756619,
-0.1919182539,
-0.2478050441,
-0.0839612633,
0.1618692875,
-0.0411011055,
0.0048892926,
0.2155013829,
0.1861736178,
-0.3800095022,
-0.0785850212,
-0.0580971278,
0.1399793923,
-0.0120564252,
0.1560511589,
0.3166590035,
0.0141460299,
-0.2948204875,
-0.233885169,
0.1436721385,
0.2659362555,
-0.1882646382,
0.3587213159,
-0.2616414726,
0.169154793,
0.0873797685,
0.4440038502,
0.6819087267,
-0.1831483841,
0.1529594213,
0.2660347223,
0.251412183,
-0.131991297,
-0.064438656,
-0.0242324807,
-0.0962675065,
0.0915644839,
0.2693862319,
0.1511515677,
0.112254858,
-0.2158709019,
-0.2792432606,
0.1278319061,
-0.2928749621,
0.1434126198,
0.2993029356,
-0.0822093636,
-0.1124624237,
0.2549159229,
0.4423458278,
0.1981949359,
0.5453624129,
-0.0141146854,
0.6302163005,
0.1067552865,
-0.1112339646,
-0.0250928216,
-0.1928501129,
-0.0242172033,
0.2076983601,
0.1615586132,
0.0700050592,
-0.031154424,
0.2256404907,
0.1823238581,
-0.102730751,
0.0183730945,
0.3125154674,
0.0823237449,
-0.1238413602,
-0.2100812048,
-0.1635658741,
-0.1809418797,
-0.0708310902,
-0.1897085011,
-0.11256589,
0.2526172996,
0.0850833282,
0.2983182073,
-0.4108552933,
0.3159436584,
-0.1058568954,
0.3703706264,
-0.2970693707,
0.2014586627,
-0.0724238604,
0.1050314009,
-0.3055815101,
0.1716099381,
0.3079664111,
0.4848973155,
0.1029261649,
0.0477104783,
-0.2340179831,
-0.1359865367,
0.1141851395,
0.003201047,
-0.0817964971,
-0.0514169447,
0.4961348772,
0.1336662471,
-0.0962805301,
0.4675199091,
0.0762166083,
-0.0275228769,
-0.8000186086,
0.0478103049,
0.083297953,
-0.0378125533,
-0.0930339545,
0.2179274112,
-0.4655720592,
-0.0468703806,
0.4806191027,
-0.4441667497,
-0.0073585473,
-0.1756755263,
0.1024015322,
-0.3210001886,
0.6157895327,
0.1939950883,
0.5805898309,
-0.0145387836,
-0.3817856014,
-0.3062664866,
-0.0336709842,
-0.086671792,
-0.1495527029,
-0.0763069019,
0.1704980135,
0.1077196002,
0.0987850577,
-0.1735312045,
-0.4373113513,
-0.202902019,
0.4054432809,
-0.2589815259,
-0.244092077,
-0.4298055768,
0.363833338,
0.0726838559,
-0.1971219629,
-0.0425101742,
-0.4353249967,
0.0534014329,
0.0012334716,
0.1778694093,
0.1927582771,
-0.2071615607,
0.4288682342,
-0.0192674175,
0.3466536105,
-0.1509358287,
0.0377651975,
-0.1243557334,
-0.1971429884,
-0.199779287,
0.3828835785,
0.1541646719,
0.0247665346,
-0.0930312127,
-0.0408335328,
-0.000695426,
0.0192727707,
0.0890782028,
0.0188278183,
-0.0209812559,
-0.2271889746,
0.1004728153,
-0.038276121,
0.0966301858,
0.6581117511,
-0.1470128894,
0.0655410141,
-0.2018073499,
-0.0885172784,
0.26304847,
-0.1844276488,
-0.1997632682,
-0.3186930716,
0.0300831273,
0.0652609617,
-0.1534788758,
-0.4477346838,
0.0825769752,
0.4290879071,
-0.0004234314,
-0.2846859694,
0.3960923553,
0.3302380145,
0.0554770827,
-0.0614907295,
0.1827526838,
-0.0785410255,
-0.1147848815,
-0.0152919143,
-0.2455782592
] |
https://github.com/huggingface/datasets/issues/815 | Is dataset iterative or not? | Hi Huggingface/Datasets team,
I want to use the datasets inside Seq2SeqDataset here
https://github.com/huggingface/transformers/blob/master/examples/seq2seq/utils.py
and there I need to return back each line from the datasets and I am not
sure how to access each line and implement this?
It seems it also has get_item attribute? so I was not sure if this is
iterative dataset? or if this is non-iterable datasets?
thanks.
On Mon, Nov 9, 2020 at 10:18 AM Quentin Lhoest <[email protected]>
wrote:
> Hello !
> Could you give more details ?
>
> If you mean iter through one dataset then yes, Dataset object does
> implement the __iter__ method so you can use
>
> for example in dataset:
> # do something
>
> If you want to iter through several datasets you can first concatenate them
>
> from datasets import concatenate_datasets
> new_dataset = concatenate_datasets([dataset1, dataset2])
>
> Let me know if this helps !
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <https://github.com/huggingface/datasets/issues/815#issuecomment-723881199>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ARPXHHYRLSSYW6NZN2HYDBTSO6XV5ANCNFSM4TPB7OWA>
> .
>
| Hi
I want to use your library for large-scale training, I am not sure if this is implemented as iterative datasets or not?
could you provide me with example how I can use datasets as iterative datasets?
thanks | 185 | Is dataset iterative or not?
Hi
I want to use your library for large-scale training, I am not sure if this is implemented as iterative datasets or not?
could you provide me with example how I can use datasets as iterative datasets?
thanks
Hi Huggingface/Datasets team,
I want to use the datasets inside Seq2SeqDataset here
https://github.com/huggingface/transformers/blob/master/examples/seq2seq/utils.py
and there I need to return back each line from the datasets and I am not
sure how to access each line and implement this?
It seems it also has get_item attribute? so I was not sure if this is
iterative dataset? or if this is non-iterable datasets?
thanks.
On Mon, Nov 9, 2020 at 10:18 AM Quentin Lhoest <[email protected]>
wrote:
> Hello !
> Could you give more details ?
>
> If you mean iter through one dataset then yes, Dataset object does
> implement the __iter__ method so you can use
>
> for example in dataset:
> # do something
>
> If you want to iter through several datasets you can first concatenate them
>
> from datasets import concatenate_datasets
> new_dataset = concatenate_datasets([dataset1, dataset2])
>
> Let me know if this helps !
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <https://github.com/huggingface/datasets/issues/815#issuecomment-723881199>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ARPXHHYRLSSYW6NZN2HYDBTSO6XV5ANCNFSM4TPB7OWA>
> .
>
| [
-0.0225438774,
-0.3792025447,
-0.0717195496,
0.37931481,
0.079459548,
-0.154981941,
0.2763754725,
0.0828173757,
0.0711620748,
-0.1428879052,
-0.0643623918,
0.0111189745,
-0.2454967499,
0.3429042697,
0.1579365879,
-0.070299685,
-0.1000306755,
0.0074632019,
-0.7639588714,
-0.0446303412,
0.0603362322,
0.2321564853,
-0.2711443901,
-0.0109247752,
-0.0369479507,
-0.2411500663,
-0.326510936,
-0.0627731159,
-0.2232872397,
-0.3062739968,
0.3705845475,
0.2676632106,
0.3039011955,
0.505975008,
-0.0001149826,
-0.0865792334,
-0.0136715509,
-0.1119052097,
-0.2605411708,
-0.2602418363,
-0.2470694482,
-0.1210111082,
0.1278485954,
-0.3559494019,
-0.0455692187,
0.037800502,
0.1667557806,
-0.3080899119,
0.6174600124,
0.1739710867,
0.1636670381,
0.1257341504,
0.0991591141,
-0.0202110615,
-0.0610702448,
0.2306852639,
0.0680699572,
0.1013276577,
0.2460481972,
0.1616701484,
0.0873167962,
0.1419125646,
0.169095695,
-0.1322488636,
0.2284313738,
0.0251349956,
-0.1097565517,
-0.3999994993,
-0.0769668072,
0.2307675332,
0.7655303478,
-0.4036308229,
-0.4934123755,
-0.2389011681,
-0.0845848396,
-0.3491234481,
-0.0607266352,
0.0878347829,
0.0615789331,
0.2074185908,
-0.2750283182,
-0.1799228787,
-0.2871974707,
-0.0714750364,
-0.0842040777,
-0.1233076155,
-0.3571075499,
0.0375433862,
0.136841774,
-0.2389593273,
-0.1284435391,
0.1822867095,
0.1119001955,
0.3583672643,
-0.6574570537,
-0.1644619405,
0.0324657112,
0.2509856522,
0.5292326808,
0.5199732184,
0.0708165392,
-0.0728315562,
-0.0595636442,
0.1355993152,
0.3547316194,
0.2167763412,
0.1332968622,
0.0148369111,
-0.0468347594,
-0.0156759694,
0.0080924481,
-0.1874767095,
-0.1975457668,
-0.263307482,
-0.0288975909,
-0.1812647134,
0.1243743151,
-0.1571440101,
-0.0886651278,
-0.1423646808,
-0.2186682075,
-0.2480700761,
0.2155745327,
0.1797959805,
0.0147844627,
-0.0092713386,
-0.1977041811,
0.1596265435,
0.0233293772,
0.1618882716,
-0.0899939388,
0.2939063013,
-0.3323540092,
0.3278651237,
-0.1063365489,
-0.5168434381,
0.1241304129,
-0.0498064682,
-0.0145231038,
-0.1895647049,
0.0131152645,
-0.1561180055,
0.238970682,
0.0416878276,
-0.1350610554,
0.1681134552,
-0.103813529,
-0.0063431934,
-0.4026479721,
-0.362033546,
-0.2837928236,
-0.2724313736,
-0.004769912,
0.0828317255,
-0.2892346382,
-0.0493361689,
0.001767166,
0.2995199859,
0.0428516008,
-0.0531393513,
0.1576125175,
-0.0021383064,
-0.2632713318,
-0.0274781119,
0.138746053,
0.5703586936,
-0.5171877146,
-0.1693523228,
0.190170154,
-0.0613864064,
0.0647265688,
0.4910537302,
-0.1845665276,
0.2792845964,
-0.2950100303,
0.1451634616,
0.4489833117,
-0.1201358289,
-0.3379769325,
0.3601588905,
-0.0514761806,
0.1209130958,
0.2169084549,
-0.0967275351,
0.1411952972,
0.0771341026,
-0.1310060918,
0.0307138413,
0.1012065262,
-0.2649407983,
-0.0493884012,
-0.0764738694,
0.1218605042,
-0.0727326348,
-0.0181676894,
0.3623617291,
0.0806528479,
0.1890700758,
0.4062776864,
-0.2153888643,
0.2619223595,
0.2413791865,
0.1841721684,
0.156609267,
0.1263940185,
-0.3120625913,
-0.2084098011,
0.1497215033,
0.1003220379,
-0.0974682793,
-0.0270918719,
-0.0313609615,
-0.2901251316,
0.0899075568,
-0.2494387627,
-0.2793980241,
0.1004122049,
0.2482921779,
0.3779502809,
-0.0617013723,
-0.4771334529,
0.5368736386,
0.0398987457,
0.1137708277,
-0.820933938,
0.2269504666,
0.2916394472,
-0.0419198424,
0.0092740208,
0.2299201041,
-0.0443534441,
-0.3739891052,
0.4070419371,
0.2918507457,
-0.2554703653,
0.1345614195,
0.1751821339,
0.4138704538,
0.2163656801,
-0.0493226908,
-0.030618662,
-0.3302222192,
0.2782608271,
-0.0702291727,
0.1413685232,
0.4477908909,
-0.2019178718,
0.400138855,
0.2018060386,
-0.0399867371,
-0.0388884395,
-0.0268120691,
-0.6704294086,
0.1082906798,
0.0874224976,
-0.1647339761,
0.494192481,
-0.137752071,
-0.2760533094,
-0.1087183803,
0.413820684,
-0.0944042131,
-0.0200495683,
0.2225458622,
-0.1451562047,
-0.0746290907,
0.057468161,
-0.0752749145,
0.2247611433,
-0.0499064401,
0.2173968256,
0.0197041128,
0.1520124972,
0.0490658991,
0.0343684815,
0.137561962,
0.2676272988,
-0.0630832762,
0.0223444216,
0.0916072801,
-0.1821551472,
-0.3705840111,
-0.1461515725,
0.0357506946,
-0.2060860395,
0.4430927336,
-0.2589528263,
-0.2633573711,
-0.4498880208,
-0.0666275173,
0.0132168159,
0.0169123709,
-0.3413527906,
-0.087752901,
0.3287210763,
0.027492106,
0.1229678392,
0.3827255964,
0.2354795337,
0.0622022077,
-0.223038137,
-0.0625783801,
0.1404516846,
0.0504578389,
0.1174332798,
-0.1744206846,
0.4147767723,
-0.0110876746,
0.0203942582,
-0.3350253403,
-0.2326262295,
0.3629406095,
-0.0303243697,
0.2029055804,
0.2526980937,
0.0050781071,
-0.0727123916,
-0.2006012797,
-0.0021755248,
-0.1680450439,
-0.02417209,
0.0551482886,
-0.0846828073,
0.2222287953,
0.1161014587,
-0.26895836,
-0.3376809657,
-0.10862609,
0.7068122625,
0.0823257864,
0.1625308543,
0.2160710692,
-0.1467020959,
0.3742019832,
-0.1792027652,
0.242526859,
-0.0822485983,
-0.4794170856,
0.2723618746,
-0.3086797893,
-0.207045272,
-0.0615934245,
-0.111496076,
0.5452194214,
0.047416646,
-0.2879162431,
-0.2418960631,
-0.0889614746,
-0.0576904006,
0.1043203473,
0.2547336221,
0.3147213459,
-0.2180019021,
0.0530305058,
0.0392932594,
-0.0398625992,
0.1431074739,
-0.0296653323,
0.1179031283,
0.3721634746,
0.6116313338,
0.2033927441,
0.5283325911,
0.5597800016,
0.0441526733,
0.1339010894,
-0.2030179352,
-0.1482435018,
-0.0539472513,
-0.4497836232,
0.1008926183,
-0.3520361185,
-0.2242037356,
0.103258431,
-0.0820934027,
-0.007276332,
-0.1764744222,
0.234340176,
-0.3153306246,
-0.1751327515,
-0.1159478575,
-0.0524546392,
0.2276578546,
-0.1514526606,
-0.1010068506,
-0.0028499626,
0.116638571,
-0.062475469,
0.2495338619,
0.2291751355,
0.1404864192,
-0.4873247743,
-0.1191733927,
-0.5276036859,
0.0991174653,
-0.0658046454,
0.081622079,
0.1764951944,
-0.1703935564,
0.2090613246,
-0.1972825527,
0.7068561912,
0.3709078133,
-0.4413895607,
0.0167109221,
-0.6154153943,
-0.0944967568,
0.251573801,
-0.3018532693,
0.2464170456,
0.4119477868,
-0.1115325242,
-0.4199147224,
-0.2527616918,
0.1832802296,
-0.0398678035,
-0.0615242384,
-0.1657915115,
0.1237146109,
-0.1315442622,
-0.177913025,
-0.0346640237,
-0.0297945216,
0.143157348,
-0.0613071434,
0.0167558119,
-0.1951409876,
-0.1009066626,
0.2924518585,
0.0021703392,
0.1355211139,
-0.0717054605,
0.1020828187,
0.3970294893,
0.1857030988,
0.1829593629,
0.5120192766,
0.0045758821,
-0.0163417421,
0.2443135083,
0.1149490774,
0.3713564575,
0.2297398448,
-0.2243173867,
0.1311879009,
-0.208290413,
0.0624607392,
-0.4876967967,
-0.0646546856,
0.3882620931,
0.0042076372,
-0.4003356099,
-0.567047894,
0.4350755513,
0.0636786819,
-0.0679373369,
-0.1132920384,
0.2199296653,
-0.2193500698,
-0.0635295138,
-0.0480279885,
0.8930827379,
-0.0798636824,
0.1776342988,
0.2711480856,
0.3125709295,
0.6791240573,
-0.1045411453,
0.0373732038,
-0.3593168557,
-0.1283752024,
-0.176179409,
-0.1432954371,
0.2393953204,
0.2416952252,
-0.3168787956,
0.4740022123,
0.2364817262,
-0.087634109,
-0.2001954019,
0.134182021,
-0.250530988,
-0.1713343561,
-0.5428107977,
0.0797574073,
0.1976351291,
0.3496428728,
-0.2035434842,
-0.1589898765,
0.387213558,
0.0108766779,
-0.1957823485,
-0.1961765587,
-0.1912957877,
-0.1198798567,
0.310816884,
-0.4503107071,
0.2483723462,
0.2719878852,
0.3074176311,
-0.0202803053,
-0.2337438911,
-0.1706655473,
-0.1715365946,
-0.0575990677,
-0.0443537571,
0.1191493869,
0.5094353557,
0.086216405,
0.009827584,
0.252454102,
0.1227697581,
0.0552144051,
-0.1233932003,
0.0279914308,
0.0247119628,
-0.3799901009,
0.0445735082,
0.4037040472,
0.0138998926,
-0.0751766562,
0.0709160864,
0.354855299,
-0.1962819248,
0.205476746,
-0.0224685445,
-0.1437733173,
-0.1721855253,
0.3500188291,
-0.1183035076,
-0.1491503417,
0.4499128461,
0.2053413391,
-0.2025936991,
-0.1555680037,
0.1078349948,
0.3016613424,
-0.553958118,
-0.0551478565,
0.0158117823,
0.2955100834,
0.1231880933,
0.2468170822,
0.1575184762,
-0.1966635883,
-0.1688224524,
-0.3144053817,
-0.1128089875,
0.2498925924,
0.1568761766,
0.2673360705,
0.0133146495,
-0.0962865949,
0.0466281846,
0.219075352,
-0.2746022642,
0.0008876063,
-0.1824959815,
0.0270252861,
0.3159903586,
-0.1311346591,
0.1340765506,
0.2994025648,
0.0049858578,
0.2990653813,
-0.2860028744,
-0.1493282616,
-0.1430831254,
0.1100988314,
-0.0432760008,
-0.1182492673,
0.1256172508,
0.0538480878,
-0.1396160126,
-0.1766373515,
0.373131305,
0.1063205451,
0.2922564149,
0.287368834,
0.3195649683,
-0.1883181185,
-0.1875493824,
0.0244980231,
0.2193180025,
-0.0319582149,
0.1633569896,
0.3162523508,
-0.3384663463,
-0.2343710512,
-0.1301618516,
0.4080595672,
0.4407759309,
-0.2145987749,
0.3446983397,
-0.3372783661,
0.0115617812,
0.0162494108,
0.5546605587,
0.5000158548,
-0.1114779264,
0.1232733577,
0.2385497242,
0.1289217621,
-0.0131411143,
0.1448390335,
-0.1646961868,
-0.0155055542,
0.0392156243,
0.3914721906,
-0.0636791736,
0.1908528358,
0.3073043227,
-0.1546215415,
0.2058759928,
-0.2311472148,
0.0248275436,
0.1402019411,
-0.0052893758,
-0.0466806777,
0.3599811196,
0.5259150863,
0.2698197365,
0.3038619459,
-0.1987414956,
0.3367416561,
-0.2960056067,
0.3056205511,
0.15450643,
-0.1887049675,
-0.26692909,
0.2299318612,
0.1297982484,
0.0332547575,
-0.320491761,
0.5874294639,
0.2111532986,
0.0050558224,
-0.0595760122,
0.4466041923,
0.0898110121,
-0.4591881931,
-0.0746888518,
-0.2179274708,
-0.1943542808,
-0.1487868428,
-0.223769471,
-0.1877893806,
0.2310132235,
-0.0714441314,
0.4418849647,
-0.5277566314,
0.0358833857,
-0.0264720041,
0.0527190678,
-0.2840575576,
0.2444787621,
-0.07459452,
0.1100019366,
-0.0017723176,
0.3280362785,
0.2134839892,
0.1244836524,
0.0427427515,
0.1268680692,
-0.2345496714,
-0.1080713868,
-0.0262486711,
0.1887276173,
-0.2101011723,
-0.1202225685,
0.5229050517,
-0.0081960987,
-0.0220616292,
0.2686906159,
-0.1294374764,
0.0905607194,
-0.9172279239,
0.2284287214,
-0.1415838897,
0.013080664,
-0.1373817921,
0.0940608233,
-0.4923455715,
0.0472626835,
0.1562889963,
-0.4805274606,
0.1494233906,
-0.090292722,
0.0486968309,
-0.2270438671,
0.4418411255,
0.3467176259,
0.396827966,
-0.00142706,
-0.1602834463,
-0.286387682,
-0.1142132133,
0.1662475169,
-0.010550946,
0.0262267962,
0.332488209,
-0.0263187587,
0.0976143777,
-0.244381398,
-0.5556644201,
-0.4309265316,
0.2382341325,
-0.1723212302,
-0.1835772097,
-0.3301454186,
0.2728576064,
0.0861760676,
0.0668267161,
0.1457107961,
-0.3383134604,
-0.096450761,
-0.0013657287,
0.2898554206,
-0.0888066739,
-0.2830110192,
0.1289149225,
0.1943983287,
0.0226774216,
-0.0549046509,
0.1512880027,
-0.3607628644,
-0.369964242,
-0.0088430233,
0.2426396906,
-0.0101734241,
0.2483732104,
-0.2000074089,
-0.2119711339,
-0.0647170097,
0.0107856654,
0.1808033288,
-0.1111470312,
-0.0816976056,
-0.0053942204,
-0.0315476209,
-0.0651745722,
0.0553354174,
0.6036369205,
-0.0209294297,
0.2141371071,
-0.0475203469,
-0.1800525784,
0.4160073102,
-0.4784715474,
-0.0407218672,
-0.0385175422,
0.0972359031,
0.3208355308,
-0.4703528285,
-0.4702593982,
0.1263057888,
0.3914021552,
0.0702912956,
-0.1530092359,
0.1964987218,
0.274702698,
-0.0594077483,
-0.2626428902,
0.3028576076,
0.1639411151,
0.0323692188,
0.1523396671,
-0.2388471961
] |
https://github.com/huggingface/datasets/issues/815 | Is dataset iterative or not? | could you tell me please if datasets also has __getitem__ any idea on how
to integrate it with Seq2SeqDataset is appreciated thanks
On Mon, Nov 9, 2020 at 10:22 AM Rabeeh Karimi Mahabadi <[email protected]>
wrote:
> Hi Huggingface/Datasets team,
> I want to use the datasets inside Seq2SeqDataset here
> https://github.com/huggingface/transformers/blob/master/examples/seq2seq/utils.py
> and there I need to return back each line from the datasets and I am not
> sure how to access each line and implement this?
> It seems it also has get_item attribute? so I was not sure if this is
> iterative dataset? or if this is non-iterable datasets?
> thanks.
>
>
>
> On Mon, Nov 9, 2020 at 10:18 AM Quentin Lhoest <[email protected]>
> wrote:
>
>> Hello !
>> Could you give more details ?
>>
>> If you mean iter through one dataset then yes, Dataset object does
>> implement the __iter__ method so you can use
>>
>> for example in dataset:
>> # do something
>>
>> If you want to iter through several datasets you can first concatenate
>> them
>>
>> from datasets import concatenate_datasets
>> new_dataset = concatenate_datasets([dataset1, dataset2])
>>
>> Let me know if this helps !
>>
>> —
>> You are receiving this because you authored the thread.
>> Reply to this email directly, view it on GitHub
>> <https://github.com/huggingface/datasets/issues/815#issuecomment-723881199>,
>> or unsubscribe
>> <https://github.com/notifications/unsubscribe-auth/ARPXHHYRLSSYW6NZN2HYDBTSO6XV5ANCNFSM4TPB7OWA>
>> .
>>
>
| Hi
I want to use your library for large-scale training, I am not sure if this is implemented as iterative datasets or not?
could you provide me with example how I can use datasets as iterative datasets?
thanks | 236 | Is dataset iterative or not?
Hi
I want to use your library for large-scale training, I am not sure if this is implemented as iterative datasets or not?
could you provide me with example how I can use datasets as iterative datasets?
thanks
could you tell me please if datasets also has __getitem__ any idea on how
to integrate it with Seq2SeqDataset is appreciated thanks
On Mon, Nov 9, 2020 at 10:22 AM Rabeeh Karimi Mahabadi <[email protected]>
wrote:
> Hi Huggingface/Datasets team,
> I want to use the datasets inside Seq2SeqDataset here
> https://github.com/huggingface/transformers/blob/master/examples/seq2seq/utils.py
> and there I need to return back each line from the datasets and I am not
> sure how to access each line and implement this?
> It seems it also has get_item attribute? so I was not sure if this is
> iterative dataset? or if this is non-iterable datasets?
> thanks.
>
>
>
> On Mon, Nov 9, 2020 at 10:18 AM Quentin Lhoest <[email protected]>
> wrote:
>
>> Hello !
>> Could you give more details ?
>>
>> If you mean iter through one dataset then yes, Dataset object does
>> implement the __iter__ method so you can use
>>
>> for example in dataset:
>> # do something
>>
>> If you want to iter through several datasets you can first concatenate
>> them
>>
>> from datasets import concatenate_datasets
>> new_dataset = concatenate_datasets([dataset1, dataset2])
>>
>> Let me know if this helps !
>>
>> —
>> You are receiving this because you authored the thread.
>> Reply to this email directly, view it on GitHub
>> <https://github.com/huggingface/datasets/issues/815#issuecomment-723881199>,
>> or unsubscribe
>> <https://github.com/notifications/unsubscribe-auth/ARPXHHYRLSSYW6NZN2HYDBTSO6XV5ANCNFSM4TPB7OWA>
>> .
>>
>
| [
-0.1425885856,
-0.3471770287,
-0.1183146387,
0.3518550396,
0.0803464726,
-0.0877769291,
0.2236454189,
0.2374292612,
0.0332366005,
-0.1268831342,
-0.0385067873,
0.0500973761,
-0.2673036754,
0.363090843,
0.075975351,
-0.0330849625,
-0.0817346424,
-0.0110199116,
-0.7120338082,
-0.0541851111,
0.0636999458,
0.2144562304,
-0.2781910002,
-0.0741708279,
-0.0047891438,
-0.2388826162,
-0.3776046932,
-0.0251138173,
-0.206804812,
-0.3644316196,
0.2285368145,
0.2593216002,
0.2990612984,
0.5007330775,
-0.0001083229,
-0.1844809055,
0.0241036452,
-0.0698913261,
-0.3096706271,
-0.2250892967,
-0.2824630737,
-0.2135334015,
0.0689909533,
-0.3665151596,
-0.054031603,
0.0273777284,
0.1581241488,
-0.3098547459,
0.5706962347,
0.1549824625,
0.2261646688,
0.13554582,
0.0920443684,
-0.0505274534,
-0.0746737123,
0.1321905851,
0.0607589707,
0.1077911556,
0.2328060269,
0.1501888931,
0.0214258917,
0.1485864669,
0.0968898684,
-0.1199044436,
0.2620963454,
-0.0519877002,
-0.1156983972,
-0.3440946341,
-0.0209761336,
0.1512999386,
0.7606990933,
-0.3858968616,
-0.5661015511,
-0.3009555936,
-0.0400618985,
-0.4118646383,
-0.0546104126,
0.1472490877,
0.0820056498,
0.1540424079,
-0.2121726274,
-0.1637291759,
-0.2180506438,
-0.138769716,
-0.0414789766,
-0.0969728604,
-0.3794797957,
-0.0211918727,
0.0490676612,
-0.223761186,
-0.1534067988,
0.1326575577,
0.1087394282,
0.3603591621,
-0.6488003731,
-0.2567496896,
0.0532765687,
0.3321325481,
0.5177852511,
0.5682508945,
0.0786653385,
-0.0219275169,
-0.0438607149,
0.138057515,
0.3656167388,
0.1424450576,
0.1061022803,
-0.0619186945,
-0.0528921708,
0.03911414,
0.0796754658,
-0.126000613,
-0.1406912357,
-0.2216002196,
-0.0771192685,
-0.1565036923,
0.083206743,
-0.1770688891,
-0.1023253649,
-0.165223226,
-0.1618961841,
-0.2160278559,
0.1148153096,
0.149684906,
-0.1081653386,
-0.0370214954,
-0.2981788814,
0.084159188,
-0.0231004171,
0.1277360618,
-0.120452106,
0.3016718626,
-0.2454103827,
0.2856009603,
-0.13888219,
-0.5510952473,
0.1653592736,
0.0034501813,
-0.0500820465,
-0.0972497389,
-0.0386767276,
-0.2035279274,
0.1337123364,
0.0107536204,
-0.0971941575,
0.1757564247,
-0.1511567086,
-0.0482366383,
-0.4053094387,
-0.3546987474,
-0.2803291678,
-0.1745541394,
0.0428337529,
0.145517543,
-0.2266245782,
-0.0543786474,
0.0425452888,
0.3436608911,
0.0179278851,
-0.1024761349,
0.1268295348,
0.049463544,
-0.3142502308,
-0.0543958247,
0.1424336135,
0.5140597224,
-0.4476075768,
-0.2488470376,
0.1939013302,
-0.0189502724,
0.0248291641,
0.4461156726,
-0.1179489344,
0.2248836458,
-0.2795751989,
0.1410649866,
0.367335856,
-0.1072316095,
-0.2978149951,
0.3310320377,
-0.1225785688,
0.1277453601,
0.2151694596,
-0.1188946515,
0.1472860873,
0.0209823288,
-0.1125126183,
0.0276412517,
0.009555364,
-0.2397180051,
-0.1244159415,
-0.0534945428,
0.0133728627,
-0.0317951404,
-0.0155019369,
0.225613147,
0.1291156113,
0.1652713865,
0.43206653,
-0.1759161949,
0.2170920074,
0.2566936612,
0.2220910788,
0.0498516709,
0.0886925682,
-0.2924875617,
-0.2623609304,
0.1929328144,
0.1236288175,
-0.0143334437,
-0.0734221339,
-0.0174051113,
-0.2349372506,
0.0079408064,
-0.2194014043,
-0.323040545,
0.1734454036,
0.2221040875,
0.3988912702,
-0.0537920706,
-0.4686819017,
0.517308712,
0.0457804203,
0.1597618759,
-0.8009344339,
0.1625420451,
0.2433849722,
-0.0265647545,
0.0728497207,
0.1985827237,
-0.0902726129,
-0.3639825284,
0.3573996425,
0.2823084295,
-0.1799614429,
0.1475441456,
0.1906578243,
0.4468782842,
0.2049322426,
0.0259633064,
-0.0192388017,
-0.3458396196,
0.2969488502,
-0.043674998,
0.0461216792,
0.4764792919,
-0.1672105342,
0.3203335702,
0.2574346066,
-0.0481922887,
0.0035502017,
-0.0402697697,
-0.5831555128,
0.1241913736,
0.1108984053,
0.017006956,
0.4671846032,
-0.1074707136,
-0.282787621,
-0.0736333728,
0.3593043983,
-0.1044111401,
-0.0366751403,
0.1507014781,
-0.1847527623,
-0.1070028245,
0.1077760458,
-0.0739279091,
0.2477791756,
0.0068556368,
0.2435870469,
0.0406482667,
0.1717317253,
0.0214139409,
0.0621024556,
0.1553300619,
0.1925956905,
-0.0365205221,
0.0750451237,
0.127471298,
-0.1554529071,
-0.3518769741,
-0.1105528846,
0.057045944,
-0.1778410375,
0.3865461349,
-0.2391075492,
-0.2566681504,
-0.3890227973,
0.1047529653,
-0.056525588,
0.0039649457,
-0.2241476625,
-0.0742111132,
0.3099522293,
0.05569987,
0.1141189337,
0.4600072503,
0.2347171903,
0.0880563185,
-0.179524526,
-0.0620845482,
0.1543691903,
0.12188638,
0.1859988421,
-0.134382084,
0.5079184175,
-0.0053069293,
-0.0006818995,
-0.3153592348,
-0.2890058756,
0.3099223971,
-0.1156778857,
0.2322623432,
0.1817794442,
-0.0603310317,
-0.06148386,
-0.1326134354,
-0.0467311405,
-0.1158415079,
-0.0954234153,
-0.0402133055,
-0.0446164981,
0.2140873075,
0.1073505655,
-0.2305366546,
-0.2717319131,
-0.2117006332,
0.7207013369,
0.1371041834,
0.224639073,
0.1908038259,
-0.1179902628,
0.3346857727,
-0.1943357587,
0.3252695799,
-0.0625201911,
-0.478777498,
0.3021918237,
-0.3026354015,
-0.1847881526,
-0.1038353294,
-0.1253805757,
0.6247448325,
0.0419879705,
-0.3094744086,
-0.2259997278,
-0.0541655868,
0.0536925495,
0.1094729602,
0.2407761812,
0.3135152757,
-0.1626959294,
-0.0329300687,
0.0371292681,
0.0101287663,
0.0426245518,
-0.0473838262,
0.089351736,
0.3445408046,
0.5481716394,
0.2190327644,
0.5223554373,
0.5356540084,
0.0138920536,
0.140053153,
-0.0983516872,
-0.0980428308,
-0.0277521797,
-0.4531844258,
0.1973806024,
-0.3463816345,
-0.2529506087,
0.1570411325,
-0.0951181054,
-0.0656506047,
-0.2182155252,
0.1941531748,
-0.2358368933,
-0.1959586143,
-0.1057219803,
0.0122245802,
0.2226583958,
-0.2190307528,
-0.1003997028,
0.0521243438,
0.1372749656,
0.0047714114,
0.2026719302,
0.1884460002,
0.0563496053,
-0.5617641211,
-0.0057132095,
-0.4896622002,
0.1085177511,
-0.036333479,
0.0070990287,
0.2339687645,
-0.2241964638,
0.1268603802,
-0.2134835422,
0.5830466151,
0.3160965145,
-0.4566283822,
-0.0202445462,
-0.5475598574,
-0.0474628955,
0.2805724144,
-0.2953295708,
0.2513091862,
0.3468486369,
-0.0295148827,
-0.457998842,
-0.3302731812,
0.1355595589,
0.0209404789,
-0.0461241677,
-0.1347161382,
0.1114865392,
-0.1327067167,
-0.2398452759,
0.0322487243,
-0.0017581582,
0.1818425208,
-0.0706359595,
0.0369972289,
-0.2385933101,
-0.1215206832,
0.2413260043,
-0.0531451553,
0.1067715734,
-0.0217646938,
0.2209533155,
0.3449822962,
0.1826760769,
0.1949138492,
0.5341267586,
-0.040116407,
-0.0637312382,
0.2419627607,
0.1099616513,
0.3433792889,
0.2787805498,
-0.1187916771,
0.1542902589,
-0.1969991624,
0.1371665597,
-0.4949755669,
-0.0650096163,
0.3207853436,
0.021466352,
-0.3879271746,
-0.5668641329,
0.397965312,
0.0945354849,
-0.0297924429,
-0.1114824265,
0.1785351634,
-0.1891279668,
-0.1138753965,
-0.0083274581,
0.8772630692,
0.0319275483,
0.132940039,
0.2381800711,
0.284137845,
0.6234853268,
-0.0280073136,
0.0178285763,
-0.3746923208,
-0.2490862906,
-0.1163340509,
-0.1235604361,
0.2895082235,
0.2170462012,
-0.3202974796,
0.5073506832,
0.2475791276,
-0.1227075309,
-0.1606151909,
0.2131127268,
-0.2810669839,
-0.2357784659,
-0.5983778834,
0.1458412111,
0.1600376368,
0.2836304307,
-0.1796884835,
-0.1390869915,
0.4076881409,
-0.0017840192,
-0.1486613005,
-0.234931469,
-0.247778371,
-0.1041991711,
0.224199146,
-0.4196968675,
0.2544492781,
0.2264539897,
0.2770262361,
0.0333959796,
-0.2222716659,
-0.1569136679,
-0.1830391437,
0.0029033795,
-0.005330842,
0.0556920469,
0.6071686745,
0.0503936931,
0.1515835375,
0.2582307458,
0.0890814885,
0.0571657717,
-0.0774364769,
-0.0198140517,
-0.1026988924,
-0.3565376401,
0.0067700483,
0.3971953392,
0.00905931,
-0.0701592192,
0.1332821846,
0.3546113968,
-0.1463983655,
0.2365440577,
0.0434921421,
-0.1403742135,
-0.191248253,
0.4071799219,
-0.1181034073,
-0.1983419955,
0.4554190636,
0.1661763936,
-0.2287352234,
-0.2077706903,
0.1140212119,
0.322791934,
-0.4184868336,
-0.0639823824,
-0.0201238841,
0.2953795195,
0.0926592648,
0.2044046372,
0.1547839195,
-0.1619636118,
-0.0641450658,
-0.224610433,
-0.1052450836,
0.3154663444,
0.227019608,
0.255022049,
-0.0240131915,
-0.1522892416,
0.0329789668,
0.2615963817,
-0.358460784,
-0.0105182081,
-0.1734000295,
0.0665031746,
0.3252339661,
-0.0954421759,
0.1232602745,
0.2710688114,
0.1061673313,
0.2823153734,
-0.3206468821,
-0.2339218408,
-0.1526692957,
0.0869123191,
0.0169796646,
-0.0633451268,
0.105492264,
0.0557910055,
-0.1318685412,
-0.2105322331,
0.3006533384,
0.0091100112,
0.2976892292,
0.2314930558,
0.3964724839,
-0.1185306683,
-0.1576303542,
0.0600556433,
0.1846354604,
-0.0466668457,
0.1568505466,
0.288402468,
-0.3015138209,
-0.2241452038,
-0.0560047105,
0.3923471272,
0.4073378444,
-0.2339117676,
0.3088851273,
-0.2933988571,
-0.0103806034,
0.1303738654,
0.51883775,
0.5250540972,
-0.1241682917,
0.0555373281,
0.2879220545,
0.2092598677,
-0.0727563053,
0.1112759113,
-0.2497941852,
-0.0984957367,
0.1296976507,
0.383282125,
-0.0850634128,
0.1669870019,
0.2132774889,
-0.1150756478,
0.1987614334,
-0.2142685056,
0.0188859925,
0.0797780827,
0.0300599784,
-0.0799140409,
0.3738006353,
0.4228507578,
0.2139606178,
0.2633858323,
-0.2759993672,
0.397323966,
-0.226455301,
0.2418709844,
0.1715239584,
-0.1857382357,
-0.1389621645,
0.2813617289,
0.1532006562,
-0.0042249784,
-0.24049595,
0.5388871431,
0.1678979695,
-0.0543511398,
0.009778887,
0.4228827357,
0.0503139645,
-0.3581233025,
-0.0711407363,
-0.2430216819,
-0.2250374258,
-0.1238202006,
-0.2629260719,
-0.2353129089,
0.2613812089,
-0.0566110946,
0.3644624949,
-0.5372338295,
0.0038966238,
-0.0219979957,
0.1132596731,
-0.3350178897,
0.1712705642,
-0.0511972234,
0.0864296183,
-0.0958900675,
0.3389082551,
0.2542081475,
0.1117470711,
0.0073344819,
0.0347143486,
-0.2352548987,
-0.1012960225,
-0.0062688626,
0.1274975538,
-0.2548769712,
-0.139112711,
0.5069288611,
0.0564198159,
-0.0876504928,
0.2528475225,
-0.0787244812,
0.0096899681,
-0.9196887612,
0.2116185427,
-0.0865176767,
0.0649559349,
-0.1183390319,
0.0958190933,
-0.5051104426,
0.0817722678,
0.1601701975,
-0.4940125346,
0.0981381536,
-0.0870595574,
0.1044276506,
-0.1923288554,
0.4898712933,
0.3311974406,
0.3033388853,
-0.0329315811,
-0.1535872072,
-0.3243841529,
-0.1424015015,
0.1704662591,
0.0346863195,
-0.0449093878,
0.3771387935,
0.0564844161,
0.1602364033,
-0.2984936237,
-0.5570549369,
-0.3035137653,
0.2498382032,
-0.2531629503,
-0.1206756011,
-0.3716825247,
0.2428577244,
0.1048691273,
0.0782129467,
0.1468791664,
-0.3805565536,
-0.0289532542,
-0.0192324389,
0.2883638144,
-0.0651247799,
-0.320183754,
0.1772941202,
0.1361570954,
0.005562257,
-0.1212323233,
0.0008982271,
-0.3256332576,
-0.3225669563,
-0.1099896654,
0.3711658716,
-0.0431339145,
0.2471925765,
-0.1225266531,
-0.2282948196,
-0.0202581007,
0.1438216865,
0.134394303,
-0.1148289889,
-0.0591501296,
-0.0152184181,
0.0624646544,
-0.022819357,
-0.0204009712,
0.5253513455,
-0.022559464,
0.2398402393,
-0.1348944604,
-0.2718347311,
0.3910022974,
-0.439278543,
0.0391685516,
-0.1211600974,
0.1023643091,
0.2544709444,
-0.4025706053,
-0.40008986,
0.1132173538,
0.4312736988,
0.0453593954,
-0.14513731,
0.2790008485,
0.284240514,
-0.0681634545,
-0.2841486335,
0.3456372619,
0.104129836,
-0.0624756515,
0.1874963641,
-0.2553835511
] |
https://github.com/huggingface/datasets/issues/815 | Is dataset iterative or not? | `datasets.Dataset` objects implement indeed `__getitem__`. It returns a dictionary with one field per column.
We've not added the integration of the datasets library for the seq2seq utilities yet. The current seq2seq utilities are based on text files.
However as soon as you have a `datasets.Dataset` with columns "tgt_texts" (str), "src_texts" (str), and "id" (int) you should be able to implement your own Seq2SeqDataset class that wraps your dataset object. Does that make sense to you ? | Hi
I want to use your library for large-scale training, I am not sure if this is implemented as iterative datasets or not?
could you provide me with example how I can use datasets as iterative datasets?
thanks | 76 | Is dataset iterative or not?
Hi
I want to use your library for large-scale training, I am not sure if this is implemented as iterative datasets or not?
could you provide me with example how I can use datasets as iterative datasets?
thanks
`datasets.Dataset` objects implement indeed `__getitem__`. It returns a dictionary with one field per column.
We've not added the integration of the datasets library for the seq2seq utilities yet. The current seq2seq utilities are based on text files.
However as soon as you have a `datasets.Dataset` with columns "tgt_texts" (str), "src_texts" (str), and "id" (int) you should be able to implement your own Seq2SeqDataset class that wraps your dataset object. Does that make sense to you ? | [
-0.1060155928,
-0.0653583109,
-0.0744618475,
0.2728960216,
0.0212031677,
-0.0095436499,
0.2350495458,
0.2607477307,
0.017850019,
-0.1811223924,
0.200777024,
0.2117641568,
-0.3875655532,
0.1963475645,
0.0909052268,
0.009915187,
-0.1221981794,
0.0177186094,
-0.6584700346,
-0.133117184,
-0.0125518739,
0.1090282872,
-0.37339288,
-0.0125811175,
-0.0573373996,
-0.2997430861,
-0.3547762334,
-0.0941224992,
-0.3227388859,
-0.3790439665,
0.1680091321,
0.324462235,
0.4530280828,
0.3990262747,
-0.000104547,
-0.3836460114,
0.0271536652,
-0.0992269218,
-0.2510544658,
-0.1770191193,
-0.2945178151,
-0.2617831528,
0.1364851296,
-0.4748809636,
-0.0804627016,
-0.0584189743,
0.0909328684,
-0.3703354299,
0.2763313055,
0.0961014256,
0.2760342956,
-0.4248444438,
-0.0344232395,
-0.0648902804,
0.0225603469,
0.0496649519,
-0.0703689829,
-0.0418415926,
0.3111679554,
0.3059272766,
-0.0155923218,
-0.031184895,
0.1218773946,
-0.1981258541,
0.3405269384,
-0.0772941932,
-0.0879149884,
-0.3361753225,
0.002359286,
0.0840367526,
1.1303725243,
-0.2262821943,
-0.3061946034,
0.0234379247,
-0.0152312201,
-0.4028501511,
-0.164085269,
0.2946573198,
0.1456301808,
0.1291963458,
-0.2035062313,
-0.3969233036,
-0.2363086045,
-0.1007130444,
-0.1262231767,
-0.0489159636,
-0.1681758761,
0.0840758383,
-0.0203480944,
-0.2884938419,
0.1532578468,
0.1695321053,
0.0152814537,
0.2250158787,
-0.6152797341,
-0.3189677,
0.0359661356,
0.3883176148,
0.4129836559,
0.3702382743,
0.0624873936,
0.0317515805,
0.0029435083,
0.2047528028,
0.4332895875,
0.0117599107,
0.0783103257,
0.0479106717,
0.0488205627,
-0.1845352948,
-0.205026269,
-0.0807030648,
-0.216611892,
-0.1597899348,
0.1061507612,
-0.1645497233,
-0.1567518711,
-0.1790118217,
-0.0017531216,
0.000093855,
-0.2421877384,
-0.1376676857,
0.1298843771,
0.109362185,
-0.0902500972,
-0.0274748486,
-0.1273266226,
0.1498543173,
0.1142809242,
-0.020785816,
-0.0622128844,
0.4749679267,
-0.2980025709,
0.0847257823,
-0.0686668605,
-0.3925185204,
0.0734554231,
0.0530897193,
-0.1771769822,
-0.0755126253,
0.0849154368,
-0.2322216034,
0.1744034141,
-0.1072447672,
-0.1682422161,
0.1184786707,
-0.1914856434,
-0.1652152985,
-0.4168971181,
-0.153021276,
-0.3378539383,
-0.1186841726,
-0.1220386699,
0.1512052566,
-0.1720934808,
-0.190055564,
0.1995151937,
0.4862646461,
-0.0187178664,
-0.1701807976,
0.0455387086,
-0.1141482368,
-0.2942237556,
-0.1201192588,
-0.0273047313,
0.4135947227,
-0.715223968,
0.1127029881,
0.017728202,
0.1990045458,
0.0440052226,
0.3204879165,
-0.1433266252,
0.2875398993,
-0.1735818386,
0.0832265317,
0.4689074457,
0.0261820555,
-0.2216173708,
0.1995012313,
-0.1015401781,
-0.1679412723,
0.1796109676,
0.0820494294,
0.2748188078,
-0.0586648956,
-0.1135251001,
0.0100043751,
0.026189385,
-0.2152170092,
-0.1232686192,
-0.0396793447,
0.1559772193,
0.0144439265,
0.0755371302,
0.2684826255,
0.1918974221,
0.2799928486,
0.2079635412,
-0.1532556415,
0.244838357,
0.0787207186,
0.3107306361,
-0.0092804432,
0.1097956449,
-0.1822762191,
-0.0991680175,
0.1989348233,
0.3425955176,
-0.0336223207,
0.0973455757,
0.0093337521,
-0.1202998012,
-0.033879105,
-0.1323506832,
-0.1853949428,
0.1936356276,
-0.0194623061,
0.3257055283,
-0.1215666905,
-0.3612468839,
0.2648516893,
-0.0278108679,
-0.071654886,
-0.6356142163,
0.1184780821,
0.237214461,
-0.0631387085,
0.1188145429,
0.1731705964,
-0.1699398756,
-0.2727327347,
0.3001483083,
0.3359159231,
-0.035995353,
-0.0734904036,
0.2832368016,
0.5574193001,
0.117781952,
0.002602607,
0.2196706831,
-0.4144702852,
0.2916940451,
0.0419199839,
-0.0218467712,
0.4437410235,
-0.1784734428,
0.1090887412,
0.136990428,
-0.0261686705,
0.0741576254,
0.0160718635,
-0.5682398677,
0.0849422514,
-0.2583653927,
0.1411113143,
0.2531076074,
-0.0921330601,
-0.3893499672,
-0.1187009364,
0.4135905206,
0.024784483,
0.0798387527,
0.1774077415,
-0.1116079688,
-0.1065044254,
-0.0296095405,
-0.0075327456,
0.3253001273,
-0.039089676,
0.1885776669,
-0.01951297,
0.0985071957,
0.0713534653,
0.1269075274,
0.0737547278,
0.1753560901,
-0.1058324277,
0.0945660919,
0.0835998803,
-0.1805024445,
-0.2936789393,
0.0505961478,
0.2180809975,
-0.0557901561,
0.3049526215,
-0.4185895324,
-0.1184837744,
-0.3756102026,
0.2154708654,
0.2625837624,
0.0878838375,
-0.0428276472,
-0.1942447722,
0.4051316977,
0.0120762698,
-0.0770670474,
0.5587695837,
0.2348255515,
0.0640680417,
-0.066364646,
-0.111896351,
0.0384161212,
0.1578055322,
0.1735128909,
-0.0893601477,
0.5077775717,
0.048773855,
0.240232721,
-0.406003803,
-0.3096456528,
0.3122243583,
-0.0110638496,
0.246325627,
0.2539360821,
-0.1717475206,
-0.0561877154,
-0.1773163974,
-0.0335280672,
-0.2286290228,
0.0861988142,
0.0113952309,
-0.0456722602,
0.0788046643,
0.0978552997,
-0.3836060464,
-0.1660968959,
-0.1279615462,
0.4235079288,
0.219193846,
0.3020017743,
-0.0476004928,
-0.0579889603,
0.2834452093,
-0.031226933,
0.1959005594,
-0.1284116656,
-0.4388583302,
0.3763957024,
-0.2919610441,
-0.1978155375,
0.0604932904,
-0.1055093855,
0.6279435754,
0.0679764897,
-0.2470660061,
0.1047996581,
0.1767356098,
0.1371097565,
0.252368927,
0.1300071776,
0.2665622234,
-0.1598164141,
-0.0430794805,
0.037589252,
-0.1077144593,
0.2246945202,
0.2038492262,
0.2265098691,
0.3720070422,
0.6611021757,
0.0368405357,
0.4294275343,
0.3031007051,
-0.2027748376,
0.2296592295,
-0.0535760075,
-0.2370571196,
-0.048728101,
-0.2013124228,
0.2020185739,
-0.3556553125,
-0.4386448562,
0.2825661302,
-0.1113414541,
-0.3914490938,
-0.2349855155,
0.4713566601,
-0.3060867786,
-0.0637123361,
-0.0891980603,
-0.2912816703,
0.1065607667,
-0.139103502,
-0.1137617528,
0.0909136385,
0.0534704775,
-0.0448538885,
0.0933410153,
0.1892966777,
0.0122023076,
-0.5341047645,
-0.1590789855,
-0.2637726963,
0.0319081433,
-0.3149483204,
0.1258900464,
0.3008850515,
-0.2130639702,
0.2733725011,
-0.2154858112,
0.3534601331,
0.0385161862,
-0.520889163,
0.0226396844,
-0.3992441893,
0.0477927774,
0.0145366564,
-0.2505376041,
0.2993893027,
0.3013771176,
-0.1759858727,
-0.4163495302,
-0.25571841,
0.138334021,
-0.0987201631,
-0.1172993779,
-0.2326555848,
0.1805448979,
-0.0896568373,
-0.0827385634,
-0.0147185586,
-0.1037466228,
0.0314400867,
-0.1423358619,
-0.1396664083,
-0.2243328542,
-0.0871972889,
0.1617321223,
-0.0342010073,
0.0619013123,
0.0406254195,
0.2935371399,
0.2934238315,
0.2970146835,
0.1757421941,
0.3449496031,
0.0146717504,
0.3328717351,
0.5411556959,
-0.086991176,
0.4087319076,
0.0927110985,
-0.1379283816,
0.1165255681,
-0.4787020087,
-0.0522701852,
-0.4371343255,
-0.2746165395,
0.4635879993,
-0.1199736595,
-0.3364785612,
-0.6614845395,
0.4097933173,
0.0774951428,
-0.1066132039,
-0.1306640655,
-0.0899975002,
-0.1915472746,
-0.026228264,
0.349160403,
0.7590574026,
-0.1307477653,
-0.0448021442,
0.0450960808,
0.2970719934,
0.6364306211,
-0.2961925268,
0.0231917389,
-0.6081207395,
-0.1643239409,
-0.1351260841,
-0.096324265,
0.2675539851,
0.3350674212,
-0.4736580253,
0.4287882447,
0.1272195578,
-0.1528365612,
-0.1092241108,
0.3182110786,
-0.1011966392,
-0.1116531119,
-0.246597901,
0.1743551493,
0.0811899006,
0.0533642285,
-0.2265842259,
-0.0237982105,
0.3006131053,
0.1477134079,
-0.1413563639,
-0.2302381843,
0.1132758632,
-0.0134400716,
0.1637128294,
-0.3163623214,
0.4583556652,
0.2964681387,
0.1053093672,
0.1151623577,
-0.249094978,
-0.077518031,
0.0167334452,
0.099530533,
0.1977814734,
0.0973371342,
0.5548222065,
0.0285495371,
0.1249643266,
0.3597327769,
0.001149755,
0.0049219206,
-0.1626740694,
-0.0178956687,
0.1485936791,
-0.3025825322,
-0.1348324865,
0.3531953096,
0.0456091315,
-0.0448978357,
0.1735304743,
0.3285719156,
-0.0790311694,
0.4723215401,
0.0573697649,
-0.1232922748,
-0.1456580013,
0.2969471514,
0.0554352887,
-0.0328127667,
0.3297345936,
0.0898149312,
-0.1387702525,
-0.2093992084,
0.2170033455,
0.2161768973,
-0.2025474459,
-0.1739450097,
-0.090443477,
0.215317741,
0.3713043332,
0.1287774295,
0.067700848,
-0.14506118,
-0.2804510593,
-0.1708844006,
-0.1562745273,
0.1291253567,
0.1656691581,
0.121677801,
-0.1157603785,
-0.3182609081,
0.044649452,
0.2772838771,
-0.3766228557,
0.0246582329,
-0.1277282834,
0.2063357681,
0.0793086812,
0.0711804777,
-0.2723812163,
0.3149994612,
0.0793945789,
0.1331262141,
-0.2244428694,
-0.1894850731,
-0.0707057938,
0.0689678341,
0.0498471558,
0.0368005484,
0.1204812378,
-0.174566716,
-0.3809264898,
-0.0627048165,
0.1292877048,
-0.088831313,
0.1195097417,
0.2746081352,
0.4228078723,
-0.3086165786,
-0.1767042577,
-0.0247147232,
0.1111768261,
-0.0180242695,
0.1713852882,
0.3880266845,
-0.1527144313,
-0.3117511868,
-0.1822995245,
0.4856968522,
0.1304291189,
-0.192096591,
0.5589891076,
-0.220316425,
0.2540807724,
0.2254094034,
0.3742897511,
0.7063238025,
-0.1053048149,
-0.1500676274,
0.2866019905,
0.2389709204,
-0.0559885278,
0.0108432025,
-0.333494097,
0.0441768877,
-0.0118428543,
0.3476693034,
0.0535375625,
0.0318178385,
-0.0273017548,
-0.2289728373,
0.1374919415,
-0.2728149891,
0.02673655,
0.3164135814,
-0.0272722766,
-0.0846009403,
0.4505912364,
0.2930504084,
0.1773283929,
0.4294736683,
0.0442479327,
0.4079272449,
0.0812660232,
0.2050414383,
0.0839115158,
-0.1520217359,
-0.0152880298,
0.2997795939,
0.2001308501,
-0.0682496727,
-0.1755219996,
0.4081976116,
0.339928925,
-0.0029965937,
-0.2276376486,
0.2862156332,
-0.0447304919,
-0.3045307696,
-0.28244555,
-0.4127626419,
-0.2404185086,
0.0070384964,
-0.4302241206,
-0.0106575619,
0.1558202356,
-0.03507502,
0.3782493174,
-0.4300778806,
0.2995274365,
-0.1636084765,
0.0305790696,
-0.3516189158,
0.2129739374,
-0.1583886445,
0.0427323282,
0.1224056929,
0.199477762,
0.0034866943,
0.4258716702,
-0.105093129,
-0.1495062858,
-0.2400680333,
-0.1211315095,
0.0517935455,
0.200223431,
-0.0645291582,
-0.2436399758,
0.5186989903,
0.0383189693,
-0.0564180724,
0.3666833639,
0.0617589056,
0.0538380407,
-0.8294041157,
0.0074731484,
0.2230871916,
-0.0308529884,
0.0967528522,
0.0852526799,
-0.2967815399,
-0.0864659399,
0.1451617926,
-0.4347527325,
0.0169295371,
-0.1616189927,
0.1182417125,
-0.2994230688,
0.5220737457,
0.1555450261,
0.1369383335,
-0.0087489262,
-0.2753685713,
-0.2950526476,
-0.0729638934,
0.1384555995,
0.0468282178,
0.0191169195,
0.4880798757,
0.1408644319,
0.185400784,
-0.4162909389,
-0.400313586,
-0.4876225889,
0.4227484167,
-0.2096907198,
-0.0771628916,
-0.4475937486,
0.2959062159,
-0.093042165,
0.1126062721,
0.0568126179,
-0.381595999,
0.0128302351,
-0.007427237,
0.1237922013,
0.0027806163,
-0.3025193214,
0.3909685314,
0.0033507645,
-0.0014866628,
-0.0579906963,
0.1699955612,
-0.2926510572,
-0.2134747356,
-0.0951059237,
0.3746213913,
0.0295180194,
0.1459093243,
0.0756727532,
0.1762551069,
0.0559029318,
0.0100220777,
0.0112852678,
-0.0517374724,
-0.2107520401,
-0.1740846634,
-0.0035117939,
0.061943952,
-0.005361177,
0.579505682,
0.0160582885,
0.1983938366,
-0.172298491,
-0.062805824,
0.2013782561,
-0.1721058339,
-0.0550856888,
-0.2402299047,
0.1379250884,
0.2016528696,
-0.2732508183,
-0.1337057352,
-0.0182904825,
0.4118083417,
0.0264308378,
-0.0824640617,
0.1440284252,
0.361061275,
0.059081465,
-0.2883608937,
0.285218209,
-0.0256626196,
0.0656938106,
-0.0844893232,
-0.2586917877
] |
https://github.com/huggingface/datasets/issues/815 | Is dataset iterative or not? | Hi
I am sorry for asking it multiple times but I am not getting the dataloader
type, could you confirm if the dataset library returns back an iterable
type dataloader or a mapping type one where one has access to __getitem__,
in the former case, one can iterate with __iter__, and how I can configure
it to return the data back as the iterative type? I am dealing with
large-scale datasets and I do not want to bring all in memory
thanks for your help
Best regards
Rabeeh
On Mon, Nov 9, 2020 at 11:17 AM Quentin Lhoest <[email protected]>
wrote:
> datasets.Dataset objects implement indeed __getitem__. It returns a
> dictionary with one field per column.
>
> We've not added the integration of the datasets library for the seq2seq
> utilities yet. The current seq2seq utilities are based on text files.
>
> However as soon as you have a datasets.Dataset with columns "tgt_texts"
> (str), "src_texts" (str), and "id" (int) you should be able to implement
> your own Seq2SeqDataset class that wraps your dataset object. Does that
> make sense ?
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <https://github.com/huggingface/datasets/issues/815#issuecomment-723915556>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ARPXHHYOC22EM7F666BZSOTSO66R3ANCNFSM4TPB7OWA>
> .
>
| Hi
I want to use your library for large-scale training, I am not sure if this is implemented as iterative datasets or not?
could you provide me with example how I can use datasets as iterative datasets?
thanks | 217 | Is dataset iterative or not?
Hi
I want to use your library for large-scale training, I am not sure if this is implemented as iterative datasets or not?
could you provide me with example how I can use datasets as iterative datasets?
thanks
Hi
I am sorry for asking it multiple times but I am not getting the dataloader
type, could you confirm if the dataset library returns back an iterable
type dataloader or a mapping type one where one has access to __getitem__,
in the former case, one can iterate with __iter__, and how I can configure
it to return the data back as the iterative type? I am dealing with
large-scale datasets and I do not want to bring all in memory
thanks for your help
Best regards
Rabeeh
On Mon, Nov 9, 2020 at 11:17 AM Quentin Lhoest <[email protected]>
wrote:
> datasets.Dataset objects implement indeed __getitem__. It returns a
> dictionary with one field per column.
>
> We've not added the integration of the datasets library for the seq2seq
> utilities yet. The current seq2seq utilities are based on text files.
>
> However as soon as you have a datasets.Dataset with columns "tgt_texts"
> (str), "src_texts" (str), and "id" (int) you should be able to implement
> your own Seq2SeqDataset class that wraps your dataset object. Does that
> make sense ?
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <https://github.com/huggingface/datasets/issues/815#issuecomment-723915556>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ARPXHHYOC22EM7F666BZSOTSO66R3ANCNFSM4TPB7OWA>
> .
>
| [
-0.1699587405,
-0.1714061201,
-0.0689311624,
0.2923886776,
0.1009493396,
-0.084524855,
0.3338167071,
0.2466904372,
0.1797014177,
-0.1265342236,
0.0680098981,
0.144248873,
-0.378885895,
0.4128888547,
0.1700596362,
-0.0318091512,
-0.0919880718,
0.0115778409,
-0.6868852377,
-0.1174983531,
0.0290252492,
0.1487231702,
-0.284576416,
-0.0396398641,
-0.0925768614,
-0.2904195189,
-0.2832887173,
0.0088118063,
-0.3676562607,
-0.3626949489,
0.3347044885,
0.2895673215,
0.4941838682,
0.504362464,
-0.000105784,
-0.2772065997,
0.0528092571,
-0.1300346851,
-0.2246703953,
-0.2106570601,
-0.241229564,
-0.2051683068,
0.1279397458,
-0.3685278893,
-0.0445307642,
-0.085979782,
0.0379855633,
-0.324301213,
0.328445971,
0.0755738616,
0.2515380383,
-0.2350955606,
0.0400568247,
-0.0884434581,
-0.0125628226,
0.1745031625,
-0.0649380609,
0.0631418228,
0.2634143233,
0.1847223043,
-0.1005842984,
-0.0201258939,
0.1368312687,
-0.1201770306,
0.3518401384,
-0.11171332,
-0.1345440298,
-0.3502723575,
-0.0687430054,
0.1795234084,
1.1247751713,
-0.2266198099,
-0.3315280378,
-0.1051940769,
-0.1077042818,
-0.384303689,
0.0519697294,
0.1613957137,
0.1376383454,
0.0931484252,
-0.2176338881,
-0.2320617139,
-0.2463387549,
-0.0989345163,
-0.1977274567,
-0.218505457,
-0.3083754778,
0.0284800082,
0.1063968837,
-0.3117008805,
-0.0058237612,
0.1124447137,
0.1506896168,
0.284599185,
-0.6823302507,
-0.3560845852,
-0.0164676495,
0.2891711593,
0.4668387473,
0.372445941,
0.0903386474,
-0.0460711084,
-0.142962724,
0.1361735314,
0.4857326746,
0.1536506712,
0.0914226919,
-0.0331863873,
0.0548189282,
-0.0040670633,
0.011173293,
-0.0994319916,
-0.2033262849,
-0.1721978784,
0.0453473181,
-0.1871925145,
-0.0844533592,
-0.243603766,
0.0123192593,
-0.0572085828,
-0.0694758892,
-0.1390125155,
0.1348974109,
0.1547201872,
-0.0590074733,
0.1231465414,
-0.1120082065,
0.0874821991,
0.0184103027,
0.001346387,
-0.0628623888,
0.3680282533,
-0.3997498155,
0.1252014637,
-0.0149138272,
-0.4068547189,
0.0481101573,
0.1276566535,
-0.1941363215,
0.017159164,
-0.0430657156,
-0.223880291,
0.1048339307,
-0.072557345,
-0.2010730356,
0.2333639264,
-0.21675919,
0.0247236639,
-0.3907792568,
-0.1400687397,
-0.3842138052,
-0.0907067508,
-0.100561507,
0.1538314074,
-0.2043937892,
-0.23097381,
-0.1431589574,
0.3670682907,
-0.0654409379,
-0.1174170747,
0.0704512,
-0.1015899032,
-0.2147192955,
-0.108575061,
0.0136708543,
0.4157606065,
-0.7381818295,
-0.0744675547,
0.0410948731,
-0.0164119527,
0.1620525271,
0.414224714,
-0.1477149427,
0.2711120248,
-0.2453813255,
0.1480751634,
0.3742133677,
0.0069466233,
-0.2698087394,
0.2698870599,
-0.0603349544,
0.0054402947,
0.119287543,
0.0076574385,
0.2325146794,
-0.082540594,
-0.1676665694,
0.1485362351,
0.080386281,
-0.1396996677,
-0.1522192657,
-0.1051232517,
0.1615739614,
0.0591257364,
0.0720555633,
0.2700532079,
0.1509656757,
0.2775501907,
0.2225802541,
-0.1702854037,
0.2985443175,
0.0976851583,
0.2949631214,
0.0548565127,
0.0704540759,
-0.2696397007,
-0.226295501,
0.2209365219,
0.1445794106,
-0.0016942034,
0.1903554201,
0.0931609645,
-0.1611177623,
-0.0879651681,
-0.2035264671,
-0.1719706059,
0.1766105592,
0.0991627201,
0.284912467,
-0.0842204019,
-0.4242131114,
0.3340342641,
-0.1232870668,
-0.0024321489,
-0.7031782866,
0.1637269258,
0.3130322695,
-0.0872310549,
0.0873478651,
0.1098694429,
-0.1471637189,
-0.2829942405,
0.2350479364,
0.3226819634,
-0.0962363705,
0.1296239495,
0.2510298193,
0.488144964,
0.1757104546,
0.0233464092,
0.2103522867,
-0.4388237,
0.2086123526,
-0.0578278005,
0.081730254,
0.416271925,
-0.2419124842,
0.1187946573,
0.11143215,
-0.0289151818,
0.0098035112,
-0.0222699195,
-0.4933257103,
0.2212380618,
-0.0613503866,
0.0618071035,
0.2879595459,
-0.090160124,
-0.2579861581,
-0.1866321266,
0.4187480807,
-0.0632647723,
0.00464682,
0.2310643494,
-0.2082143873,
-0.0975414068,
0.0669205189,
-0.0333191752,
0.3083373904,
-0.0466552004,
0.262288332,
-0.0572668687,
0.1278197467,
0.0857335776,
0.1289166808,
0.0169780739,
0.2707157135,
0.0105033014,
0.0580166206,
0.0779035687,
-0.2738215923,
-0.2194690108,
-0.0109607168,
0.1313217133,
-0.0874415785,
0.1833932698,
-0.4029297829,
-0.1049547791,
-0.3309220076,
0.1238509491,
0.0387213826,
0.0642086864,
-0.1184802949,
-0.0965834036,
0.4058251679,
0.0656916052,
-0.022972066,
0.527607739,
0.294449836,
0.0137874428,
-0.1694497466,
0.0357918628,
0.0432926677,
0.1796343476,
0.2374719381,
-0.2035423666,
0.468432188,
0.0262029767,
0.0783145204,
-0.4120455384,
-0.2755686641,
0.327804476,
-0.1076434404,
0.251553148,
0.306438297,
0.0044725798,
-0.020618178,
-0.0463247895,
0.0341680087,
-0.3438083231,
-0.0050211512,
-0.0264043398,
-0.0640739724,
0.245398134,
0.0882141516,
-0.4056175053,
-0.2220086008,
-0.2096966803,
0.5581912398,
0.2181430459,
0.2245462835,
0.1635542214,
-0.0632681251,
0.3151679337,
-0.0617826767,
0.2107882053,
-0.2140312046,
-0.5315761566,
0.3878296316,
-0.2561227083,
-0.2005531192,
0.040655762,
-0.0047410354,
0.5716431737,
0.0240641907,
-0.3571440578,
0.0166936144,
0.041993998,
0.111948505,
0.187350899,
0.2401827872,
0.2688877583,
-0.2422915548,
-0.0287386905,
0.0596929789,
-0.0924319923,
0.158922255,
0.1621718407,
0.3196928501,
0.4330102503,
0.5967091918,
0.0411422178,
0.5284714699,
0.3443602324,
-0.1735187024,
0.2482474297,
-0.0325029455,
-0.2144199014,
-0.1131129414,
-0.2672352195,
0.2950755656,
-0.3456630409,
-0.2737658024,
0.1929452866,
-0.1302110553,
-0.3075447083,
-0.1988606751,
0.3118451834,
-0.1982480437,
-0.0239248425,
0.0483291522,
-0.108372502,
0.120537892,
-0.2476435751,
-0.1920785159,
0.0079595298,
0.0128112398,
0.0604690053,
0.1921091527,
0.2455522418,
0.0608973093,
-0.6099677086,
0.0582395345,
-0.3910827935,
0.0739469677,
-0.2808956802,
0.0219320543,
0.1650063843,
-0.2415872663,
0.2220960855,
-0.1012187302,
0.5630610585,
0.109844394,
-0.5177435875,
-0.0360051244,
-0.4384683967,
0.0871368498,
0.0322223082,
-0.2800098658,
0.2983270586,
0.250344485,
-0.1287992895,
-0.4448178411,
-0.2425333411,
0.1333974004,
-0.0708027482,
-0.0454372875,
-0.3161965013,
0.1628023684,
-0.0371814631,
-0.1041878015,
0.0087772198,
-0.0863756165,
0.0807398558,
-0.1742279232,
-0.156479001,
-0.177813381,
-0.0205602981,
0.2238784283,
-0.0342713818,
0.121320948,
0.0417349637,
0.221703738,
0.4037610292,
0.3132402003,
0.275837034,
0.4043902159,
0.0106411017,
0.2390819639,
0.5203079581,
0.0507804863,
0.3208161592,
0.1847977936,
-0.1532654464,
0.0453215986,
-0.2774813473,
0.0296791289,
-0.6391441822,
-0.2000181526,
0.4938613176,
-0.0547904409,
-0.3791225553,
-0.6322646737,
0.5206335187,
0.1117025241,
-0.0500366613,
-0.032270629,
0.0409659669,
-0.2090243697,
-0.1775490642,
0.2071645856,
0.8239887357,
-0.2135828137,
-0.0438239053,
0.1120209023,
0.4150188267,
0.6200092435,
-0.2753098905,
0.0017930809,
-0.4699942172,
-0.1857350916,
-0.1635933518,
-0.1298053861,
0.2541490793,
0.2704185545,
-0.3658440113,
0.4825977385,
0.1902742535,
-0.0750205442,
-0.1667436361,
0.3217440248,
-0.1960281581,
-0.242968142,
-0.4122353196,
0.1731428653,
0.0524774119,
0.137844488,
-0.1709500551,
-0.0485200882,
0.3666974902,
0.0627636686,
-0.1055114865,
-0.229922384,
-0.1149456352,
-0.1376872659,
0.2727746069,
-0.2581343651,
0.4700637758,
0.2415484339,
0.0990082622,
0.031700395,
-0.2596074641,
-0.1158438176,
-0.0806151628,
0.1089255512,
0.1270155907,
0.0883717015,
0.6001086235,
0.0133096129,
0.1390310079,
0.2249471694,
0.0109506473,
-0.0401241817,
-0.1303883642,
-0.0579482615,
0.1187091321,
-0.4455760419,
-0.0670789853,
0.2809092999,
0.0769586489,
0.001568675,
0.1574689299,
0.3391579092,
-0.0816184431,
0.3666169047,
0.1040873528,
-0.0705436468,
-0.1703123152,
0.3324107528,
0.0692650527,
-0.1404188275,
0.421854496,
0.1557645947,
-0.2226467431,
-0.151833266,
0.1414207965,
0.3399429619,
-0.2813920379,
-0.0539528355,
-0.0102007873,
0.1473528743,
0.205212906,
0.2366081625,
0.1382708848,
-0.1978295743,
-0.2085974216,
-0.1866781563,
-0.1838697195,
0.1925513297,
0.0223175623,
0.2390883267,
-0.0170479268,
-0.2921168208,
0.1026849821,
0.1451329589,
-0.3657820821,
0.0849658847,
-0.1126860976,
0.1498847455,
0.1255354285,
-0.0142160151,
-0.0405604467,
0.2896201909,
0.0711742193,
0.1406241059,
-0.2981958091,
-0.2043915838,
-0.051988665,
0.0834468678,
0.0235456526,
-0.052292414,
0.154659152,
-0.1482751966,
-0.2841724753,
-0.1003716588,
0.210514769,
-0.153662622,
0.0982102305,
0.2074407637,
0.3586411774,
-0.3746778965,
-0.1585950553,
0.07845667,
0.1911978722,
-0.0816998482,
0.1215364039,
0.340609014,
-0.1940487325,
-0.3026097417,
-0.2282730192,
0.5108467937,
0.2922613323,
-0.1336012036,
0.4713008106,
-0.3304162621,
0.0564009547,
0.2789522111,
0.5351670384,
0.6012010574,
-0.151458472,
-0.0880293995,
0.1812178046,
0.2208258659,
-0.0255820118,
0.1370271742,
-0.1873176843,
0.0337841548,
0.0326966494,
0.3433181047,
0.1192840934,
0.0253991485,
0.1265501976,
-0.1984065622,
0.1594919413,
-0.2759272158,
0.086249277,
0.2314589471,
-0.1305206567,
-0.0285995416,
0.5951689482,
0.3472750783,
0.0456606485,
0.3939048946,
-0.0250830799,
0.2953464091,
-0.0612818189,
0.2569733262,
0.0952453911,
-0.3001561761,
-0.0845785141,
0.3915069103,
0.0978901163,
0.0029346896,
-0.2082811147,
0.5517612696,
0.1346992552,
-0.1131886542,
-0.2175142169,
0.2635157406,
-0.1359244883,
-0.2410645783,
-0.283913523,
-0.3782044649,
-0.272536397,
-0.0196674243,
-0.4187792838,
-0.0917320102,
0.2842942476,
-0.0472545363,
0.2933643758,
-0.5206664801,
0.1271157861,
-0.1305074394,
0.0793394819,
-0.3140779138,
0.3320920765,
-0.1968689263,
0.0830753148,
0.0245196968,
0.3627672493,
0.0794946924,
0.3440088928,
0.0241477638,
-0.0531607829,
-0.1260973811,
-0.0811888874,
0.1318766177,
0.2379000187,
-0.1564374268,
-0.2195754945,
0.4602530599,
0.0706410035,
-0.0613159537,
0.2296074331,
-0.1103057116,
0.1432418674,
-0.8062823415,
-0.0414232686,
0.1084206179,
0.1404688358,
-0.0649566054,
0.0720155612,
-0.4094017744,
-0.0231507197,
0.177035749,
-0.459013164,
0.0971072167,
-0.1491706371,
0.1216287091,
-0.2849757075,
0.4401838183,
0.2593488097,
0.0721051767,
-0.0150863221,
-0.1601325423,
-0.2753869593,
-0.0681058317,
0.1776992083,
0.0814498663,
-0.0326997414,
0.4383947551,
0.1972638518,
0.1426799446,
-0.2345997393,
-0.5380965471,
-0.3567993939,
0.3172579408,
-0.2102691233,
-0.0598602332,
-0.3488930166,
0.3244600296,
-0.0278825946,
0.0478278697,
0.1658546478,
-0.2729412615,
-0.0488029234,
0.0191641971,
0.2362475842,
-0.0749063119,
-0.3555978239,
0.3192622364,
0.12846829,
0.0383891352,
-0.0466248542,
0.0327395126,
-0.3662337363,
-0.3125422001,
-0.1299943775,
0.2862896025,
-0.0575804487,
0.2802180052,
-0.0103680864,
0.0820518658,
-0.0783562586,
0.0465467237,
-0.0317768827,
-0.0440902188,
-0.291826427,
-0.1778579652,
-0.0064860508,
-0.1045863926,
0.0302175321,
0.5602523088,
0.0226528998,
0.1567510366,
-0.1889246851,
-0.1842008829,
0.2402456105,
-0.2860480249,
-0.0586622208,
-0.0946224704,
0.0349201784,
0.2588538229,
-0.1969829649,
-0.3583437204,
0.1509937197,
0.3538049459,
0.0106138326,
-0.0384418443,
0.1908850819,
0.2333615571,
0.0560335219,
-0.2807216644,
0.2072649598,
0.0476629212,
0.0948215276,
0.0134481192,
-0.2773855329
] |
https://github.com/huggingface/datasets/issues/815 | Is dataset iterative or not? | `datasets.Dataset` objects are both iterative and mapping types: it has both `__iter__` and `__getitem__`
For example you can do
```python
for example in dataset:
# do something
```
or
```python
for i in range(len(dataset)):
example = dataset[i]
# do something
```
When you do that, one and only one example is loaded into memory at a time. | Hi
I want to use your library for large-scale training, I am not sure if this is implemented as iterative datasets or not?
could you provide me with example how I can use datasets as iterative datasets?
thanks | 57 | Is dataset iterative or not?
Hi
I want to use your library for large-scale training, I am not sure if this is implemented as iterative datasets or not?
could you provide me with example how I can use datasets as iterative datasets?
thanks
`datasets.Dataset` objects are both iterative and mapping types: it has both `__iter__` and `__getitem__`
For example you can do
```python
for example in dataset:
# do something
```
or
```python
for i in range(len(dataset)):
example = dataset[i]
# do something
```
When you do that, one and only one example is loaded into memory at a time. | [
-0.1967029572,
-0.4120613933,
-0.1522584707,
0.1939139962,
0.0503937453,
0.0091603696,
0.2521876395,
0.0610392541,
0.1378218681,
-0.0013326034,
0.2277507186,
0.2708901167,
-0.4278082252,
0.176947698,
0.202440694,
-0.0889547765,
0.0129828602,
0.0472294688,
-0.618796289,
-0.0078371614,
0.1369360536,
-0.0778278708,
-0.3001039028,
-0.1672135293,
0.0571093634,
-0.4246664941,
-0.3100515008,
-0.1855564862,
-0.1906790733,
-0.4267379344,
0.26555264,
0.1786024421,
0.412758559,
0.5190774202,
-0.0001068608,
-0.2087261677,
0.172429651,
-0.0724192485,
-0.1570535451,
-0.2525888681,
-0.1945834756,
-0.1432824135,
-0.0132760666,
-0.3930826783,
-0.077855818,
-0.2569580674,
0.161887899,
-0.3726499677,
0.2177618593,
0.0823897198,
0.2613910139,
-0.2673077583,
0.0140857473,
-0.0343471915,
0.0291365255,
0.1420087218,
-0.1895929277,
0.3146387041,
0.2581836283,
0.2592707276,
0.0707307905,
-0.0838772804,
0.1835323572,
-0.0293514468,
0.5176251531,
-0.1810385138,
-0.028457664,
-0.378105402,
-0.1316806078,
0.1800668538,
0.9738002419,
-0.3325408995,
-0.1805681437,
0.0925097466,
0.0783945769,
-0.4161491394,
-0.0789301097,
0.2087812722,
0.0914724842,
0.1689751744,
-0.3774551749,
-0.215858236,
-0.2636706233,
0.1569268107,
-0.0114711374,
0.0202188399,
-0.1483394057,
0.1454469264,
0.14696908,
-0.222716853,
0.3494541347,
-0.0374086425,
0.0956723914,
0.2934468389,
-0.3548891544,
-0.3146656752,
-0.0452598408,
0.4222280979,
0.478659153,
0.3207345605,
0.2023727,
-0.11104846,
-0.2233711779,
0.28425017,
0.4751825631,
0.003990218,
-0.0489847511,
0.0934272408,
0.1161992848,
-0.0192665383,
-0.1462731957,
-0.0210603252,
-0.214152053,
-0.0789510161,
0.3076207936,
-0.2920461893,
-0.1230150163,
-0.0697306469,
0.0273174047,
-0.1093936935,
-0.2524136603,
-0.1942874044,
0.26120314,
0.2329010069,
-0.1484912634,
0.1340865344,
-0.3233175278,
-0.0912755653,
0.109437786,
0.2910443842,
-0.0449732989,
0.4422124922,
-0.5005633831,
0.0238532946,
-0.0357487798,
-0.2278590798,
0.2085995078,
0.1532032639,
-0.135008499,
-0.1078493595,
0.1483566463,
-0.3669768274,
0.4331792593,
-0.0354758538,
-0.1922496706,
0.0064362437,
-0.299988538,
0.1547478735,
-0.3955387175,
0.0480350107,
-0.2260349244,
0.0580670536,
-0.042960722,
0.1644731611,
-0.205689013,
-0.252720058,
-0.0254762694,
0.3109799027,
0.1215805113,
-0.1092040017,
0.1143790185,
-0.2127530724,
-0.1631636769,
-0.3115357459,
0.0765100792,
0.2239904404,
-0.3857713342,
0.1330494285,
0.0314942598,
0.0469469391,
0.1477143019,
0.2904068232,
-0.2406657934,
0.2274695784,
-0.1616247892,
-0.1182229444,
0.4186879992,
-0.1354310364,
-0.1791636348,
0.3351470828,
0.2016320527,
-0.0980947092,
0.0681596249,
0.2971672714,
-0.0122086909,
0.0224209726,
-0.2033891231,
0.21343638,
0.0243254919,
-0.1471533775,
-0.0023537278,
-0.0215296373,
0.172394067,
0.0104992688,
0.0406940281,
0.2140856385,
0.0902526081,
0.1390070617,
0.2731761932,
-0.239156276,
0.1900430024,
0.2386131883,
0.3220147192,
0.049202688,
0.0945584178,
-0.4822584093,
0.0254883859,
0.1556339562,
0.1861520559,
-0.157834962,
0.2956632376,
-0.0067589134,
-0.1262248755,
0.0798644125,
-0.1618826985,
-0.0565621667,
0.125680536,
0.0663361996,
0.2056295872,
-0.0901577696,
-0.5047394037,
0.0998198241,
-0.2030545771,
-0.2080512345,
-0.5096100569,
0.1290674508,
0.2270847708,
-0.0779468343,
0.0327605605,
0.0152864465,
-0.2983106673,
-0.4979235232,
0.2777375579,
0.3969456851,
0.156083405,
-0.0079220571,
0.1019599736,
0.3819926977,
0.3212147951,
-0.1746239513,
0.1462097615,
-0.1991004944,
0.2882044017,
-0.0181854367,
0.100704506,
0.4194484949,
-0.2194590122,
0.0578729138,
0.3707639575,
-0.1672391742,
0.0571277142,
-0.0573669784,
-0.4465523362,
0.1243523359,
-0.1040652692,
-0.1959182024,
0.4206410646,
-0.1265024394,
-0.3818366826,
-0.3234950602,
0.4590500593,
-0.030902084,
0.0291666687,
0.0501575209,
-0.1086961627,
-0.066785939,
0.0552261844,
0.0299289376,
0.3643387556,
-0.0167238135,
0.2228466868,
0.0211024825,
0.0027691349,
0.1936894804,
0.1838862896,
-0.0213656947,
0.3514575362,
-0.1670282334,
-0.0330469608,
0.0232646875,
-0.2684540153,
-0.3299871087,
0.0165296793,
0.1501982212,
0.0575455427,
0.29632622,
-0.4058505595,
-0.1907159984,
-0.3694968224,
-0.1114164591,
0.2052115053,
0.1090966165,
-0.3205465078,
0.0424284935,
0.4008632302,
0.1220253557,
0.0850850269,
0.2148124427,
0.0583883598,
0.0247809943,
-0.0603261814,
0.009147685,
-0.1000977308,
0.1860868335,
0.2878302038,
-0.2173031271,
0.6166128516,
0.09098465,
-0.0911397859,
-0.4059428275,
-0.1621187627,
0.1468189806,
0.0502728671,
0.0921221003,
0.2490789741,
-0.0362271704,
-0.1754499972,
-0.0418331251,
0.0035597123,
-0.4967639446,
0.159012109,
-0.1841693521,
-0.1201961711,
0.041362226,
0.0619919896,
-0.1926463842,
-0.3554747999,
-0.1489831805,
0.324544549,
0.3947949708,
0.1792880595,
0.1702625453,
0.0526025109,
0.3306017518,
0.1137498543,
0.0347363949,
-0.0312973782,
-0.3998977542,
0.1823967695,
-0.3657858372,
-0.2789265215,
0.0530233011,
0.0544119775,
0.4394409657,
0.1919808239,
-0.3579127192,
-0.0264598057,
-0.0615793392,
0.0533850044,
0.0929173529,
0.3949342668,
0.0913500786,
-0.2753691375,
-0.0266987272,
-0.0448275208,
-0.0533397421,
0.0777134001,
-0.0599416569,
0.3174918592,
0.5418897271,
0.3369606435,
-0.0612849332,
0.5106341243,
0.3213927746,
-0.4664497077,
0.3819261193,
-0.2949081063,
-0.2295009345,
-0.1006762385,
-0.180418551,
0.123894766,
-0.2533704937,
-0.2882225215,
0.1376107335,
-0.08531674,
-0.5046299696,
-0.2860321701,
0.1899847835,
0.0075037405,
0.0854135528,
-0.0680204928,
-0.4584960043,
0.2238843441,
-0.3123108745,
-0.1672612727,
-0.0839591324,
-0.0351223275,
-0.0037935376,
0.1022480503,
0.106319651,
0.0255273767,
-0.6367223859,
-0.0780714229,
-0.2195496857,
-0.0160043165,
-0.2293446064,
0.2284075767,
0.2031738311,
-0.1550876796,
0.209058702,
-0.2704059184,
0.3464507461,
0.0255891439,
-0.3695512712,
-0.0154665411,
-0.3388346434,
0.1033636406,
0.1139866039,
-0.2592839897,
0.5021615624,
0.1661726236,
-0.0499619618,
-0.0905011222,
-0.2015232891,
0.2595630586,
-0.0000616126,
0.058348909,
-0.4264299572,
0.0912700146,
-0.1913369894,
-0.0521200076,
-0.1042878777,
-0.0256590359,
-0.15692693,
0.0598532036,
-0.2274881154,
-0.2387856841,
0.0925382227,
0.2368409336,
-0.0191256106,
-0.0704298466,
0.0218055733,
0.1799089611,
0.156161502,
0.2901681364,
0.2923647761,
0.2780873179,
-0.0688934326,
0.0968552381,
0.2517822087,
0.2262893319,
0.329222858,
-0.0746603012,
-0.0640476197,
0.0011876673,
-0.0950277597,
-0.0137509368,
-0.4295497537,
-0.070277378,
0.3990364373,
-0.0285467822,
-0.6849339604,
-0.8001817465,
0.5862554312,
0.2033588141,
-0.0424132794,
0.4010372162,
-0.1833681762,
-0.1230543032,
-0.0882994384,
0.1937611699,
0.7383267283,
-0.1139425337,
0.0490074269,
0.1444422603,
0.3099933267,
0.459079951,
-0.016373232,
-0.0530817956,
-0.4539553523,
-0.1515323073,
-0.1391630173,
-0.1917887181,
0.2685101628,
0.186399892,
-0.2638261318,
0.3906111717,
0.1017137617,
0.0696837157,
-0.1579682827,
0.3008531034,
-0.2609701753,
-0.0858929306,
-0.332444638,
0.2069455385,
0.1299759746,
0.1009468585,
-0.1899982691,
-0.0860721618,
0.3169943392,
0.2821398377,
-0.1255445331,
-0.1276727021,
-0.1094578654,
0.0689667612,
0.1239277571,
-0.2988599539,
0.4001437128,
0.2613199949,
0.1422268152,
-0.0604146868,
-0.1662522852,
0.0632451177,
-0.097513549,
-0.0383407474,
0.0007145107,
0.1794937402,
0.4892552793,
-0.0808951631,
-0.0325545669,
0.262341857,
0.1185247377,
-0.0352167338,
-0.1141912788,
0.1386706531,
0.2433789074,
-0.1255540699,
-0.2266969979,
0.4080355167,
-0.0530636907,
0.0059412867,
0.165106371,
0.2601031065,
-0.1499895304,
0.4505729079,
-0.0252891853,
-0.0643577054,
-0.187654376,
0.1663485765,
0.2450579703,
-0.0924245119,
0.2225716859,
0.0322861373,
-0.177978605,
-0.2087043673,
0.2494393289,
0.2526234984,
-0.0492021739,
0.0156588256,
0.0679646581,
0.2703875303,
0.2758464515,
0.1312402487,
0.1232998297,
-0.1012085825,
-0.3609984517,
-0.1127123684,
-0.3696660101,
0.0109423939,
0.0922773629,
0.2632910907,
-0.0785032064,
-0.2278164327,
0.2112398893,
0.0889502466,
-0.3270404637,
0.0319066867,
-0.1110575497,
0.1568699628,
0.0402876809,
-0.0438274667,
-0.252756834,
0.2932385206,
0.104841277,
-0.003678483,
-0.3037315309,
-0.2058588713,
-0.0077895522,
0.093329154,
-0.034221895,
-0.1223047003,
0.1276140362,
-0.3852503896,
-0.2536258101,
-0.1441393048,
0.1645812094,
-0.0073976517,
0.0032501873,
0.2268618941,
0.2301968932,
-0.3531456888,
-0.0700023621,
-0.0088681895,
0.1202044114,
-0.1476110518,
0.1063460708,
0.2929708064,
0.1295566857,
-0.3645485044,
-0.4189186394,
0.2302252054,
0.2601175308,
-0.2266231775,
0.4598795176,
-0.1836039126,
0.2835585475,
0.1864102185,
0.389970839,
0.5834115744,
-0.1510751992,
0.0721963122,
0.1697526425,
0.2021751553,
-0.0104205608,
-0.0618005022,
-0.0680201501,
0.0693425238,
0.0310972705,
0.1741321087,
0.1325965971,
0.1397887021,
-0.3049246967,
-0.319658339,
0.1743727475,
-0.4326548576,
0.0685202032,
0.3156370223,
-0.0505415574,
-0.0920170993,
0.3491539359,
0.5144851208,
0.2512199283,
0.4923086166,
0.2163974345,
0.5837100148,
0.1487665027,
0.0795081407,
0.1027700454,
-0.2135764211,
-0.0669472218,
0.3401176929,
0.1138997227,
0.170792982,
-0.0026379861,
0.2510222793,
0.2171028256,
-0.1438944042,
-0.1152105033,
0.1553005427,
0.0560762659,
-0.2364281416,
-0.2033424526,
-0.1576824784,
-0.1710404009,
-0.0708007291,
-0.3268949389,
-0.0628486201,
0.3587141633,
0.0965185016,
0.2263887227,
-0.3642050028,
0.4352074564,
-0.1042161211,
0.332823813,
-0.3009598255,
0.2857180238,
-0.23622109,
0.1262672693,
-0.335714668,
0.1477476656,
0.1616248786,
0.4522749484,
0.0784207955,
0.0637698025,
-0.1715225577,
-0.134634316,
0.0348258913,
0.1807404757,
0.0055234395,
-0.150340721,
0.4830393195,
0.0787824839,
-0.0299643036,
0.431776166,
0.0392984748,
-0.0490112305,
-0.7619779706,
0.0308073629,
-0.0738829449,
-0.1040821001,
0.0386136509,
0.2058885843,
-0.3588980734,
0.0310159996,
0.349498421,
-0.5118246078,
0.0112847425,
-0.1281151474,
0.0908082277,
-0.4438215494,
0.5806398988,
0.2358210981,
0.3683759868,
0.0646321103,
-0.3547830284,
-0.2148439288,
-0.00000301,
-0.0646086633,
0.0330116302,
0.0023925863,
0.2600568533,
0.0479097255,
0.0815377906,
-0.2101935893,
-0.4015119076,
-0.3318650126,
0.4715474546,
-0.1407270581,
-0.1185666695,
-0.5041666627,
0.4238238633,
0.0688325465,
-0.1372983307,
0.0028388323,
-0.4769557714,
-0.0566715673,
-0.0586551353,
0.1339174509,
0.1711047441,
-0.2130334824,
0.4344696999,
0.0502152815,
0.1733377725,
-0.0409564823,
0.0506234244,
-0.200286597,
-0.2317833006,
-0.0560713261,
0.4207937717,
0.0936153829,
0.0182344615,
-0.1480519772,
0.0300529636,
0.1506400555,
0.0072689988,
-0.0172870234,
0.0251362324,
-0.0987885594,
-0.4087800384,
-0.0384173095,
-0.014157515,
0.1612669528,
0.7226047516,
-0.1982649565,
-0.0007434562,
-0.1763436198,
0.0555884242,
0.1908270717,
-0.1202914417,
-0.1176183373,
-0.1891215742,
-0.0056442991,
0.0931230336,
-0.2571719289,
-0.458137393,
0.1177975833,
0.4690544605,
-0.0787138194,
-0.199742645,
0.3155784011,
0.2660446465,
0.0640995502,
-0.0137259066,
0.3568964005,
-0.1605862528,
-0.1009710506,
0.0214618668,
-0.2646005154
] |
https://github.com/huggingface/datasets/issues/815 | Is dataset iterative or not? | Hi there,
Here is what I am trying, this is not working for me in map-style datasets, could you please tell me how to use datasets with being able to access ___getitem__ ? could you assist me please correcting this example? I need map-style datasets which is formed from concatenation of two datasets from your library. thanks
```
import datasets
dataset1 = load_dataset("squad", split="train[:10]")
dataset1 = dataset1.map(lambda example: {"src_texts": "question: {0} context: {1} ".format(
example["question"], example["context"]),
"tgt_texts": example["answers"]["text"][0]}, remove_columns=dataset1.column_names)
dataset2 = load_dataset("imdb", split="train[:10]")
dataset2 = dataset2.map(lambda example: {"src_texts": "imdb: " + example["text"],
"tgt_texts": str(example["label"])}, remove_columns=dataset2.column_names)
train_dataset = datasets.concatenate_datasets([dataset1, dataset2])
train_dataset.set_format(type='torch', columns=['src_texts', 'tgt_texts'])
dataloader = torch.utils.data.DataLoader(train_dataset, batch_size=32)
for id, batch in enumerate(dataloader):
print(batch)
``` | Hi
I want to use your library for large-scale training, I am not sure if this is implemented as iterative datasets or not?
could you provide me with example how I can use datasets as iterative datasets?
thanks | 113 | Is dataset iterative or not?
Hi
I want to use your library for large-scale training, I am not sure if this is implemented as iterative datasets or not?
could you provide me with example how I can use datasets as iterative datasets?
thanks
Hi there,
Here is what I am trying, this is not working for me in map-style datasets, could you please tell me how to use datasets with being able to access ___getitem__ ? could you assist me please correcting this example? I need map-style datasets which is formed from concatenation of two datasets from your library. thanks
```
import datasets
dataset1 = load_dataset("squad", split="train[:10]")
dataset1 = dataset1.map(lambda example: {"src_texts": "question: {0} context: {1} ".format(
example["question"], example["context"]),
"tgt_texts": example["answers"]["text"][0]}, remove_columns=dataset1.column_names)
dataset2 = load_dataset("imdb", split="train[:10]")
dataset2 = dataset2.map(lambda example: {"src_texts": "imdb: " + example["text"],
"tgt_texts": str(example["label"])}, remove_columns=dataset2.column_names)
train_dataset = datasets.concatenate_datasets([dataset1, dataset2])
train_dataset.set_format(type='torch', columns=['src_texts', 'tgt_texts'])
dataloader = torch.utils.data.DataLoader(train_dataset, batch_size=32)
for id, batch in enumerate(dataloader):
print(batch)
``` | [
-0.3016707897,
-0.3916234374,
-0.1244997233,
0.4045019746,
0.1218659803,
0.0815264359,
0.2345810235,
0.1949104965,
-0.0445441194,
-0.0258441046,
0.0440255776,
0.3346887827,
-0.3416883349,
0.0193578005,
-0.0354217775,
-0.1522006989,
-0.1350666136,
-0.1091270447,
-0.5712971091,
-0.094194755,
0.1644257009,
-0.0607801899,
-0.3945017457,
-0.1852224916,
-0.015444275,
-0.4847182035,
-0.2174986154,
0.0037644231,
-0.1276626885,
-0.3302405477,
0.1825330257,
0.028214626,
0.4424456656,
0.6334046721,
-0.0001107979,
-0.1362614632,
0.1161463931,
-0.1768818498,
-0.1535315365,
-0.3136423826,
-0.0109614432,
-0.1165112257,
-0.0174041539,
-0.4819850624,
-0.1775072217,
-0.1292105317,
0.0617715567,
-0.5960794091,
0.360530436,
0.174767822,
0.196525842,
-0.1608912051,
0.0373759493,
-0.0517340712,
0.1932123899,
0.1550514251,
-0.0881121755,
0.2196960449,
0.4312992096,
0.2817696333,
-0.0150337368,
0.0472453497,
0.0915916637,
-0.0721106604,
0.1525731087,
0.0000496171,
-0.2120262682,
-0.4927814007,
-0.0110821193,
0.1845875233,
0.9366425872,
-0.2746396661,
-0.2969926,
-0.0351297855,
0.0168176182,
-0.1741644442,
-0.068911761,
0.2412092388,
0.0703456402,
0.144149825,
-0.3334393799,
-0.1051561534,
-0.186052978,
0.2216386497,
0.0751472488,
0.2418792993,
0.0030304939,
0.2312335074,
0.0462206081,
-0.2195008695,
0.4654040933,
-0.1329300106,
0.0892364308,
0.3992209136,
-0.4541888535,
-0.1844449937,
-0.0349402912,
0.214480266,
0.4375278056,
0.2616202235,
0.1651032865,
-0.1079953462,
-0.2650260627,
0.2307072878,
0.2453351319,
0.0775086433,
-0.0132842809,
0.2721360028,
0.0922987238,
-0.1410163939,
-0.0108395368,
0.0221031848,
-0.2615160644,
-0.4489363134,
0.0846842974,
0.0368222333,
-0.1015717238,
0.0349569619,
-0.0030914024,
-0.2123387456,
-0.28905797,
-0.2483495176,
0.3508871198,
0.2104175091,
-0.2113456726,
0.0223549418,
-0.1101627722,
0.1763291955,
0.2847446203,
0.3477303088,
-0.0633523464,
0.402361989,
-0.4622745514,
-0.0274970718,
0.0432806462,
-0.3923404217,
0.1161286682,
0.1986757219,
-0.1707924902,
0.0677614808,
0.1151256636,
-0.3227115273,
0.424360007,
-0.1387718916,
0.0229634643,
0.0071933866,
-0.0757018775,
0.2180228531,
-0.322684437,
0.0705005527,
-0.4101574421,
-0.0100663975,
-0.1824009567,
0.1245951056,
-0.0685806721,
-0.1054998413,
-0.1791862994,
0.1854764372,
0.2596293092,
-0.1445376873,
0.2509694695,
0.0507897884,
-0.1488241255,
-0.2530640662,
0.0971311182,
0.3796827197,
-0.3504396081,
0.043640554,
0.3202685118,
0.1515732706,
0.1543486416,
0.3483070731,
-0.3904180527,
0.2539188862,
-0.3402404189,
-0.1352611631,
0.7417567968,
-0.363509506,
-0.1803585887,
0.236492753,
-0.0599690527,
-0.2498014867,
0.3100489974,
0.0061492436,
-0.0729992837,
0.0717942864,
0.1928377151,
0.1711918265,
0.0321155041,
-0.1606428921,
0.0101481751,
-0.0285592899,
0.3351587653,
-0.0254405141,
0.0790981352,
0.1570300609,
0.276131779,
-0.0619236864,
0.4041700065,
-0.2901451588,
0.1881708801,
0.2839528322,
0.0180364437,
-0.1514428258,
0.0510787703,
-0.1703202426,
-0.2152461112,
0.2737479508,
0.0589002818,
-0.194993332,
0.1100768894,
0.0161978826,
0.0288130417,
-0.1400699317,
-0.2077913582,
-0.0491937548,
0.0650476366,
0.1235970855,
0.2050935924,
-0.2752658129,
-0.3432310224,
0.0536302403,
-0.2269366384,
-0.1522424519,
-0.5957729816,
0.2830942571,
0.1569338888,
-0.1839174181,
0.0886460617,
0.1052314788,
-0.0220430568,
-0.3450832963,
0.1771087945,
0.3911453784,
-0.04035642,
0.1695434451,
0.1876877844,
0.2503108382,
0.3719843626,
-0.0435762927,
0.154435426,
-0.3036033809,
0.2019955814,
-0.1644172668,
0.1088792086,
0.417555809,
-0.1789998412,
0.139086619,
0.2945196629,
-0.1620004475,
0.050043337,
0.0338672921,
-0.3456019461,
0.0951103121,
-0.1028614491,
0.0285398364,
0.4338847399,
-0.221848622,
-0.4662247598,
-0.2694392204,
0.312509656,
0.0944650471,
0.0498280525,
-0.0394717753,
-0.1615008265,
0.007087037,
0.2433338016,
-0.2581151128,
0.4800899923,
0.0130744763,
0.2423739582,
0.0065549947,
0.1503531337,
0.0643306375,
0.1935144067,
0.0452769622,
0.3508189619,
0.1702409685,
0.2046920359,
0.1170994192,
-0.0401205495,
-0.313716352,
0.0163488314,
0.0010911115,
-0.1328433901,
0.238516748,
-0.2977777719,
0.0241626203,
-0.4486708641,
-0.1598944366,
0.1747913957,
0.0770022571,
-0.3366315067,
0.0492518581,
0.4261990488,
0.1866769493,
0.1212245226,
0.0822215155,
0.326572448,
-0.1102487147,
-0.0354742855,
-0.1402104199,
0.0021171635,
0.1468573213,
0.2564623654,
-0.3135666549,
0.5114414096,
0.0465419739,
-0.0001487955,
-0.5351347327,
-0.1205405593,
0.3685365319,
-0.1301973313,
-0.0973263532,
0.2938464582,
-0.1601388156,
-0.1209715232,
-0.1281897277,
0.0786625147,
-0.2453057468,
0.0866096616,
-0.1101553291,
-0.221160233,
-0.0738408044,
0.0910162404,
-0.3345847726,
-0.5138569474,
-0.2599233091,
0.2739359438,
0.3042727709,
0.1782874167,
0.1947639883,
0.1513939649,
0.4163946807,
0.2766896188,
0.1746632457,
-0.134550184,
-0.5078076124,
0.4365927279,
-0.443394959,
-0.3223357797,
-0.0671113282,
-0.0891144797,
0.4015444815,
0.2927373052,
-0.2275419235,
-0.0919916108,
0.0641634911,
0.2196817547,
-0.0644264743,
0.4492759407,
0.3778799176,
-0.1747941226,
-0.0332649648,
-0.046486903,
0.1320671141,
-0.0183786973,
0.0769089609,
0.5140585899,
0.4622368515,
0.3192092776,
0.0564481691,
0.7233352065,
0.236875996,
-0.4231698513,
0.4203615785,
-0.2912540436,
-0.2060448229,
-0.1417575628,
-0.3200320601,
0.1163160652,
-0.2672156394,
-0.2039100975,
0.0829528049,
-0.2075925171,
-0.4504372478,
-0.3630997539,
0.1615893543,
-0.1345400363,
-0.0364127755,
-0.0008958783,
-0.4431043863,
0.1519377977,
-0.3746409416,
-0.0247338116,
-0.144449681,
-0.0664899349,
0.0708442926,
-0.0481187217,
0.02680723,
-0.0074907616,
-0.5318667293,
-0.0776732117,
-0.2226395905,
0.286803484,
0.0426202901,
0.09285146,
0.3301159739,
-0.1033716053,
0.1380601227,
-0.1811047643,
0.50426054,
-0.0617238656,
-0.2357167751,
-0.0273925439,
-0.2021422088,
-0.0198552273,
0.0730182827,
-0.2566611171,
0.4214023352,
0.3614583015,
0.1236879528,
-0.1362920552,
-0.2726888061,
0.1096012294,
-0.227916494,
0.1190546453,
-0.2491506785,
0.0845934376,
0.0185749307,
-0.297239393,
-0.1471711695,
0.0812164322,
0.0196294151,
0.0006556213,
-0.1931228936,
-0.253000468,
0.0150098354,
0.1761226952,
-0.0630650371,
0.1344304085,
0.1655203253,
0.164026767,
0.3385928571,
0.4019489288,
0.3491042852,
0.4574620128,
-0.0497171842,
0.1240925714,
0.3840079308,
0.1247084886,
0.3458282948,
0.1229040325,
-0.1199506074,
-0.0857483149,
-0.3532602787,
-0.0542010032,
-0.315410614,
-0.0091281757,
0.3837418556,
-0.0855127126,
-0.6794342399,
-0.7689768672,
0.4015046358,
0.2226501703,
-0.1336443126,
0.3440217376,
-0.3819897473,
-0.3183284402,
-0.0910500437,
0.2710523605,
0.8402194977,
0.0322993733,
0.1525249183,
0.0226315558,
0.3366402388,
0.2843593359,
0.0305874646,
0.0468818769,
-0.5196399689,
-0.1365142316,
-0.2416652143,
-0.3081582487,
0.2897692621,
0.2748754323,
-0.3071196079,
0.4338351786,
-0.0896795243,
0.2778541744,
-0.1443510801,
0.2908054888,
-0.1449638158,
-0.2122605741,
-0.3896152973,
0.0986082554,
0.1021101326,
0.1109260023,
-0.1567332745,
-0.1271933615,
0.033391133,
0.0483813286,
-0.0917540789,
-0.0442283154,
-0.5501811504,
0.2739234567,
0.1598560065,
-0.5914467573,
0.2946890593,
0.6760752797,
0.1154298633,
-0.0119794011,
-0.1408447027,
0.0384402424,
0.2060933411,
-0.1562191993,
-0.0725085214,
0.09753488,
0.4758124053,
0.0528439358,
0.0048446059,
0.4223834574,
0.1397082061,
-0.0095876753,
-0.1689722985,
0.1133895665,
0.282872498,
-0.2784457207,
-0.2333347648,
0.3246428967,
-0.0805049986,
0.0151671022,
0.0909759104,
0.2167086154,
-0.1675380915,
0.2051580101,
0.1029295325,
-0.0848164856,
-0.0763307959,
0.4706708789,
0.1202263981,
-0.0981320664,
0.2479029745,
0.129538089,
-0.1596689522,
-0.1234744936,
0.2534741163,
0.2145290226,
-0.1498479247,
-0.1539315283,
0.0741661787,
0.1245173961,
0.2328958064,
0.2849791348,
0.12007083,
0.0664465725,
-0.1610539258,
-0.1804711223,
-0.3888454437,
0.0610885099,
0.1004845724,
0.3253470957,
0.1052880138,
-0.2224453092,
0.0293281972,
0.0768356845,
-0.2823281884,
0.0249239057,
0.0109966621,
0.1962830275,
0.1364854872,
-0.1093959734,
-0.1034339964,
0.135565713,
0.0608208179,
0.1372398436,
-0.2650087774,
-0.1954612732,
-0.0620844625,
0.095493719,
-0.0102300756,
-0.1716786325,
0.0155685954,
-0.4823222756,
-0.1556379199,
-0.1742753834,
0.2260724306,
0.0972961932,
0.1488033235,
0.0438316017,
0.2419625968,
-0.2362679243,
-0.0809504315,
-0.0554111227,
0.0508829504,
-0.1584216654,
0.1208490282,
0.3051263392,
-0.0701839626,
-0.2784440815,
-0.2976559699,
0.1620577425,
0.4519221187,
0.0673506856,
0.2465283275,
-0.2574518621,
0.0997180194,
0.0909813121,
0.2638568282,
0.4230268598,
-0.1600360572,
0.0520504788,
0.1256245822,
0.1248597801,
-0.0970331728,
-0.0173534844,
-0.2267059833,
0.0293073729,
0.1059301198,
0.2214534879,
0.079763025,
0.1818276644,
-0.3765724897,
-0.2088659555,
0.2212150097,
-0.3223404288,
0.1888607442,
0.3121753931,
-0.0248016119,
-0.1189258993,
0.3131510615,
0.4781961739,
0.1840547025,
0.1127863005,
-0.0069754124,
0.5928164124,
0.2599864602,
-0.0700438321,
0.1810560375,
-0.238440752,
-0.1235949546,
0.1346120536,
0.0786682814,
0.1764678061,
-0.1358976215,
0.5692293644,
0.2992447317,
-0.1604917049,
0.0906639621,
0.3686589301,
0.1135783568,
-0.2999247611,
-0.3345409632,
-0.2354025096,
-0.138302058,
-0.1145284995,
-0.2687355578,
-0.0343326218,
0.3106895089,
0.1526480913,
0.3058912456,
-0.2136782408,
0.3738528192,
-0.0776966214,
0.1008846462,
-0.3142166138,
0.3480850756,
-0.1641643941,
0.1437534839,
-0.2153375745,
0.083231166,
0.2506154478,
0.3648096919,
-0.1423471421,
-0.0112881251,
-0.0685289502,
-0.1197923422,
0.110562101,
0.0994915739,
0.0256873555,
-0.37523821,
0.5009595752,
0.0727347881,
-0.0831469893,
0.336227566,
0.0254893117,
-0.0860904157,
-0.517175734,
0.0285150893,
-0.0760776177,
-0.1616052091,
-0.0029652892,
0.0322172716,
-0.3494994044,
-0.0534800626,
0.3596714437,
-0.4814478755,
0.1096546501,
-0.071243763,
0.0676144212,
-0.2086929381,
0.5480343103,
0.2112805843,
0.3716071248,
-0.043883875,
-0.1701907665,
-0.1988396049,
-0.0692155883,
0.1777985841,
0.0427608788,
-0.1237590089,
0.241692543,
0.0362841338,
0.1109812409,
-0.0082405731,
-0.5410217047,
-0.2205157429,
0.4227230549,
-0.1820375919,
-0.2194940448,
-0.3366204798,
0.402009666,
0.0884030089,
-0.3076235652,
-0.0263845138,
-0.3074908257,
-0.0361728519,
-0.2024127841,
0.0237072706,
0.0249543861,
-0.2743130028,
0.5059764981,
-0.1371537894,
0.3993720114,
-0.193569988,
0.1127052233,
-0.2125449181,
-0.37147367,
0.0528380945,
0.370061487,
0.2980943322,
0.2023141384,
-0.2437049598,
-0.0731873065,
0.0878391936,
0.0888534337,
0.1197977811,
-0.0743532106,
-0.1931870282,
-0.2361481488,
0.0032977238,
-0.0590876974,
-0.0359156057,
0.6751525402,
-0.1143775284,
0.211920023,
-0.1191650108,
-0.3494871855,
0.4321638346,
-0.2436608672,
-0.1623466313,
-0.089705199,
-0.1091444045,
0.2427258939,
0.0134390984,
-0.4573637545,
0.091728121,
0.4157387614,
-0.069137454,
-0.1967608929,
0.1873582453,
0.2847014666,
0.0736472458,
-0.1682556272,
0.1744574159,
-0.1274974197,
-0.1221860498,
-0.1616958231,
-0.3481249809
] |
https://github.com/huggingface/datasets/issues/813 | How to implement DistributedSampler with datasets | Hi Apparently I need to shard the data and give one host a chunk, could you provide me please with examples on how to do it? I want to use it jointly with finetune_trainer.py in huggingface repo seq2seq examples. thanks. | Hi,
I am using your datasets to define my dataloaders, and I am training finetune_trainer.py in huggingface repo on them.
I need a distributedSampler to be able to train the models on TPUs being able to distribute the load across the TPU cores. Could you tell me how I can implement the distribued sampler when using datasets in which datasets are iterative? To give you more context, I have multiple of datasets and I need to write sampler for this case. thanks. | 40 | How to implement DistributedSampler with datasets
Hi,
I am using your datasets to define my dataloaders, and I am training finetune_trainer.py in huggingface repo on them.
I need a distributedSampler to be able to train the models on TPUs being able to distribute the load across the TPU cores. Could you tell me how I can implement the distribued sampler when using datasets in which datasets are iterative? To give you more context, I have multiple of datasets and I need to write sampler for this case. thanks.
Hi Apparently I need to shard the data and give one host a chunk, could you provide me please with examples on how to do it? I want to use it jointly with finetune_trainer.py in huggingface repo seq2seq examples. thanks. | [
-0.1762314737,
-0.212982893,
0.041827932,
0.1458273083,
0.2960067391,
-0.2145046294,
0.2066302747,
-0.0596600957,
0.0736605376,
0.3631319404,
-0.149435699,
0.2770130634,
-0.3263446391,
0.1506611407,
-0.0292028226,
-0.5932825804,
-0.0871205032,
0.230809629,
-0.2494451851,
-0.0329344273,
0.2496521622,
-0.0033957623,
-0.1133744121,
-0.0734544769,
-0.1053176671,
-0.1739122868,
-0.3590157032,
-0.0182642657,
-0.1748257279,
-0.258024931,
0.4371857345,
0.3987309635,
0.6609316468,
0.4599102139,
-0.0001257403,
0.0744620785,
0.101833567,
-0.1535166055,
-0.2574949861,
-0.142491892,
0.054534331,
0.2479480654,
0.1367186308,
-0.2322049737,
-0.1759760976,
0.0377362333,
0.1900281608,
0.0264717191,
0.5198249221,
-0.1474682093,
0.0699759275,
-0.0524419919,
-0.2422244698,
-0.2215246558,
-0.1993650049,
0.3077511191,
-0.0410107784,
0.2077390999,
0.3981786072,
-0.0075882636,
-0.4323905408,
-0.0242205355,
0.0330285802,
0.2175628245,
0.0072184466,
-0.1358050406,
-0.2036305368,
-0.2351315022,
-0.3969819546,
0.1602645963,
0.6051864624,
-0.2570731044,
-0.3713672757,
-0.1774276048,
-0.2501271963,
0.0500188097,
-0.1925210506,
0.051046297,
-0.183778286,
0.2823153734,
-0.1530065686,
-0.1160470098,
-0.3117052615,
0.1274692714,
-0.1568292528,
0.4186401069,
-0.1393886507,
0.1281809509,
0.0936495811,
0.20983693,
0.1063384414,
0.0415879898,
0.2194649875,
0.1438560188,
-0.2232537568,
-0.3640882969,
0.0095437979,
0.2747440934,
0.4882166982,
0.5775047541,
0.049915906,
-0.0942467526,
-0.0080486685,
-0.0070616174,
0.3743902445,
-0.0001488477,
-0.1673380435,
0.4795021415,
0.0228307825,
0.2750387788,
-0.0266581327,
-0.1354805827,
-0.1654911339,
0.0668157339,
0.0090898797,
-0.1441901475,
0.0008445233,
-0.1314394623,
0.0769863501,
-0.4496330917,
0.2652005553,
-0.2379103601,
-0.1790023893,
0.1799646318,
-0.1000175476,
0.0708163083,
-0.1266994774,
0.1342821568,
-0.0206946656,
-0.1132472157,
-0.1113281623,
0.129712075,
-0.2131317258,
0.2274447978,
-0.0074112415,
-0.3920823932,
0.376080662,
-0.0981839448,
0.3529300094,
0.0478644073,
0.1421641111,
-0.1291486919,
-0.1584920138,
-0.0873792768,
-0.0718234777,
0.1139057502,
-0.1525044292,
0.3168797493,
-0.2817805409,
0.0391249806,
-0.4134102166,
-0.3401996493,
0.1583732367,
-0.0231165439,
-0.2817360759,
-0.2267813087,
-0.2778107226,
0.2035529017,
0.0177873448,
0.0099341199,
-0.0463817753,
-0.0578020178,
-0.1742766947,
-0.1528570503,
0.2357306033,
0.4027372897,
-0.2060619891,
-0.2215590179,
-0.0437946431,
-0.1560463011,
0.3560594022,
0.2536258101,
-0.1780752391,
0.3056143224,
-0.1869757175,
0.1814290285,
0.4120998383,
-0.4824194312,
-0.4623405039,
0.3475469947,
-0.1774095744,
0.0841417164,
0.3403618932,
-0.0765789449,
0.4955595732,
-0.1990615278,
-0.3674888313,
0.5588446856,
-0.2115415484,
-0.1284407675,
-0.1992323101,
-0.2120350599,
0.1296757758,
0.3994770646,
0.0963895917,
0.388404578,
0.0329114236,
0.0927873552,
0.3912807703,
-0.0111885834,
0.5302360058,
-0.0398256145,
0.1653410494,
0.0933414102,
0.1260011941,
-0.3339464366,
0.0291714221,
0.0882042944,
0.1346916258,
0.1638710201,
0.1431140155,
-0.0069237798,
0.0181157924,
-0.2439244092,
-0.440256834,
-0.1933106631,
-0.0643390492,
0.2180068791,
0.6305693388,
-0.3245465159,
-0.3223574758,
-0.0564466156,
0.0957118645,
0.0224032626,
-0.3555356264,
0.4854134321,
0.1750118136,
-0.137886256,
-0.0623986647,
-0.1549346149,
-0.2792491615,
-0.3736248016,
0.1042343602,
0.2754531801,
-0.0492902845,
0.137474224,
0.2444843054,
-0.1144606546,
0.1196562052,
-0.2800711393,
0.144788295,
0.151702106,
0.0262997001,
-0.03692054,
0.1056536585,
0.4488396347,
-0.1263542026,
0.1596806943,
-0.0317608267,
0.1220784932,
0.2391721308,
-0.0615851991,
-0.2905209959,
0.0944518447,
0.0107967621,
-0.2886221707,
0.2336170375,
-0.1802550107,
-0.3940915763,
-0.008953765,
-0.1615928113,
-0.1977669597,
0.0055996114,
0.0927679017,
-0.0583696701,
0.2213345468,
0.1153957024,
0.2206602544,
0.4545038342,
0.014321927,
0.1267328262,
0.0229573306,
0.2172505856,
0.0328647122,
-0.0622268841,
-0.0104033463,
-0.0782877281,
0.0800554603,
-0.2320337445,
0.0293570049,
0.0692367181,
-0.3264914751,
-0.0312446672,
0.103500098,
-0.0159064904,
-0.0558411255,
-0.2748685479,
-0.1262638867,
-0.4773797989,
-0.0857993811,
0.1158197671,
0.284018755,
-0.2343591154,
0.1120978072,
0.225727126,
0.2018770725,
0.0999611318,
0.686142683,
-0.0681137368,
0.2938068807,
-0.0379981175,
-0.0865909308,
0.0861784071,
0.0325731337,
-0.005466193,
0.0172471702,
0.3180841208,
-0.1071855426,
-0.1507677138,
-0.1421569884,
0.1396573335,
0.1572735906,
-0.0061133378,
0.1908631325,
0.2596528828,
0.0942712724,
0.0147714242,
0.3015550077,
-0.0144247115,
-0.1850944161,
-0.0725712776,
0.0200592801,
-0.02200187,
0.1053400561,
0.0714205131,
0.1350693107,
-0.5741363168,
-0.1103194654,
0.1514459848,
0.4341513216,
0.1620615721,
-0.3081140518,
0.0741548538,
-0.2046817988,
-0.0837838352,
0.061139226,
0.1934661418,
-0.6808115244,
0.2450156361,
-0.2307177931,
-0.1710985899,
-0.2517697811,
-0.0022165328,
0.0215870216,
0.3401455283,
-0.214941293,
-0.3724907637,
0.1669087857,
0.1288240254,
0.1506883055,
0.4997434914,
0.3359589875,
0.0185599625,
0.2461107373,
-0.1261477917,
-0.0985610187,
0.3742192984,
-0.0322941691,
0.1080245972,
0.3546367288,
0.2177002728,
-0.062769942,
0.6847812533,
0.3673390746,
-0.00727878,
0.2519356012,
0.060462229,
-0.3771798909,
0.2624776065,
0.0532166287,
0.3872339725,
-0.0692636222,
-0.0042584538,
0.3896636963,
0.0688655227,
0.2607904375,
-0.3597663045,
-0.1988829672,
-0.0109389052,
0.0732273757,
-0.1000317708,
-0.2645084858,
0.2502066493,
-0.3910617232,
-0.2263169736,
-0.0937709957,
0.120652467,
-0.0165996738,
0.2696187794,
0.4421624243,
0.2345455289,
-0.3730181456,
0.2232344896,
-0.2388772517,
-0.123792395,
-0.0817797855,
-0.0156754497,
0.2256261259,
0.0217446983,
0.3156934083,
-0.0126431268,
0.3779906034,
-0.2337818742,
-0.0938327685,
-0.4844170511,
-0.4311335087,
0.1122262627,
-0.0873305798,
-0.3538041711,
0.446277827,
-0.5912211537,
0.1568503231,
-0.3123338223,
-0.151869759,
0.115038082,
-0.0043514967,
-0.376422286,
-0.2770942152,
-0.1194541454,
-0.4327888489,
-0.0640124604,
-0.1120809317,
-0.0450906157,
-0.0622284859,
-0.0481271334,
0.1054454744,
-0.2978598177,
0.1372377574,
0.150485456,
-0.0514174253,
0.0223480612,
-0.1955289841,
0.1062997058,
0.3705878258,
0.3044516444,
0.3851688802,
0.448928535,
-0.4912437797,
-0.3860995471,
-0.0408706814,
0.1253970116,
0.2308131009,
0.0087954737,
0.0827497765,
0.3002048731,
-0.0572648309,
-0.0678589493,
-0.5000573993,
-0.2672559321,
0.0244620703,
0.0200946145,
-0.472827673,
-0.714718163,
0.2241021395,
0.152246356,
-0.1368088871,
-0.0321774967,
-0.0694761723,
-0.261202842,
0.2622135282,
0.2249399573,
0.8707521558,
-0.1021599397,
-0.0420662649,
0.0738405287,
0.2748677731,
0.7067088485,
0.3199180067,
0.1001651883,
-0.2827220559,
-0.3105246723,
-0.1979127228,
-0.110906668,
-0.0057182554,
0.5164136887,
-0.5429207683,
0.3605951667,
0.0219282806,
-0.0996975824,
0.1444532424,
0.0936710238,
0.1357543617,
-0.1352728605,
-0.3015864789,
0.0253905691,
-0.1955167949,
0.2485635579,
-0.1389928013,
-0.2632385492,
0.1933847368,
0.2051691413,
0.2074277103,
-0.0668178648,
-0.0121258795,
-0.1047033072,
0.4981983006,
-0.0849520713,
0.2454432845,
0.0036706058,
0.3181897402,
-0.2570709884,
0.0013377629,
-0.0576540567,
-0.1081550792,
-0.1082594693,
-0.0360560045,
0.0641897321,
0.4372730255,
0.0569119155,
-0.2256890684,
0.2304376066,
0.1575964689,
-0.2838335931,
-0.1787344813,
-0.203913793,
0.1599762738,
-0.3195157647,
-0.1481687129,
-0.022608608,
0.0651267171,
-0.034876436,
-0.0800833181,
0.3441613019,
-0.3170127273,
0.3526713848,
0.0027463427,
0.1089173704,
-0.1081154048,
0.2389676571,
0.2448529899,
-0.0683451369,
0.0795946196,
-0.1228294,
0.0393765792,
0.0055264309,
-0.3198080659,
0.1380526572,
-0.543418169,
0.2638342083,
-0.1851096749,
0.2479448169,
-0.1067715585,
0.2094827741,
0.2634002268,
-0.0644767359,
-0.2166616917,
-0.3531405032,
-0.3530884981,
-0.1570395231,
-0.0442430675,
0.128451854,
0.0706514269,
0.046319671,
-0.0158348754,
0.275793016,
-0.161055088,
-0.1002326906,
-0.0341599546,
0.1060391665,
0.3885422945,
0.2384244353,
-0.3457790315,
0.2648671269,
-0.1020126417,
0.1118478626,
-0.0135228597,
0.0236104354,
-0.0651640296,
0.2168443203,
0.2107199132,
-0.2215079367,
-0.0826413184,
0.0160095543,
-0.143512696,
-0.0845790431,
0.1811004579,
-0.0206932873,
-0.1497686356,
0.2486900538,
0.7305862904,
-0.4384989738,
-0.4540957212,
0.400184989,
0.2096709013,
-0.1351139694,
0.0673501045,
0.3071459532,
0.1754897535,
-0.2053290159,
-0.0024764538,
0.2844803035,
0.6360449195,
0.1042024046,
0.321251452,
-0.2410333306,
0.3320277929,
-0.0104446821,
0.4907310009,
0.4158392549,
-0.1445629448,
0.0061384961,
0.3453766108,
0.0719081759,
-0.0637942404,
0.1239280701,
0.1777506471,
0.1627658606,
-0.1147234887,
0.5678812265,
-0.2439212501,
-0.0187722668,
-0.3228302002,
0.0691767111,
0.402353853,
0.1933407485,
-0.0950639993,
0.3029851913,
0.2483906597,
0.0796129182,
0.2700077593,
0.3157448769,
0.1950948387,
-0.0959003568,
-0.2032368928,
0.7602374554,
-0.2201541513,
-0.1591704488,
-0.0294408165,
-0.4686167836,
0.3586602509,
0.3634356558,
0.2123480439,
-0.0684420615,
-0.1370844394,
0.5740575194,
-0.1270174384,
-0.2321820408,
-0.0025763288,
0.3248005509,
0.0606998093,
-0.3778527975,
-0.3409526944,
-0.1854118109,
-0.1240254492,
0.0476573706,
-0.1081502289,
0.0553421006,
0.5609671474,
-0.119045943,
0.0711849555,
-0.526139915,
-0.3453161418,
0.3194195628,
0.1149638593,
-0.074240528,
0.258495599,
-0.0626597852,
0.0744229108,
0.130841434,
0.4096459746,
0.0194161199,
0.2499276698,
0.0096587837,
0.0382860862,
-0.0724942088,
0.1148359552,
0.089268513,
0.1026838124,
-0.2961394787,
-0.1933685988,
0.4360485971,
-0.0594251528,
0.0231244005,
0.1797004491,
0.1417746246,
-0.1073038876,
-0.472967118,
0.1520293951,
0.0211263448,
-0.0499814413,
0.2113034427,
0.1267898977,
-0.3962584138,
-0.0587539449,
0.0734535903,
-0.5963242054,
0.03794498,
-0.1534638107,
-0.0325331949,
-0.1356426775,
0.495205462,
0.4738099873,
0.1462250054,
-0.1124513671,
-0.3779447675,
-0.2596483231,
0.2536069751,
-0.1999993324,
-0.3475923538,
-0.2860643566,
-0.0203973167,
0.0625810102,
0.1093229577,
-0.5165180564,
0.2676759958,
0.0154998377,
0.6406422257,
-0.0078480169,
-0.3341736495,
-0.2320219725,
0.4174195826,
0.1265350878,
-0.1967195868,
-0.0851982981,
0.1007866412,
-0.1088241339,
0.0788636431,
0.2305403352,
0.1126678735,
-0.3531214297,
0.1094876528,
0.1274300665,
0.3620072603,
-0.0593733005,
0.1948191822,
0.0756579265,
0.1606429517,
-0.3826028109,
-0.1971901059,
0.0656107068,
0.0794167668,
-0.1215260848,
0.1512838602,
-0.3343379498,
-0.2985705435,
0.2322644591,
0.1794832051,
-0.1885070652,
0.0176030844,
-0.2611691356,
-0.0382784046,
0.4513545632,
0.27865991,
-0.0830286145,
-0.0083432272,
-0.1770679951,
-0.0689453855,
0.243275851,
-0.3367722929,
-0.0019334853,
-0.2429524511,
-0.0359775499,
-0.3963630497,
-0.3386980295,
-0.6620281935,
0.1587565988,
0.2287369072,
-0.0071006957,
0.0644010678,
0.2964569926,
0.2667249441,
-0.0461761765,
-0.0840351433,
0.1205635071,
0.0632560849,
-0.062865831,
0.0216285288,
-0.1302151978
] |
https://github.com/huggingface/datasets/issues/812 | Too much logging | Hi ! Thanks for reporting :)
I agree these one should be hidden when the logging level is warning, we'll fix that | I'm doing this in the beginning of my script:
from datasets.utils import logging as datasets_logging
datasets_logging.set_verbosity_warning()
but I'm still getting these logs:
[2020-11-07 15:45:41,908][filelock][INFO] - Lock 139958278886176 acquired on /home/username/.cache/huggingface/datasets/cfe20ffaa80ef1c145a0a210d5b9cdce2b60002831e6ed0edc7ab9275d6f0d48.1bd4ccbce9de3dad0698d84674a19d6cc66a84db736a6398110bd196795dde7e.py.lock
[2020-11-07 15:45:41,909][filelock][INFO] - Lock 139958278886176 released on /home/username/.cache/huggingface/datasets/cfe20ffaa80ef1c145a0a210d5b9cdce2b60002831e6ed0edc7ab9275d6f0d48.1bd4ccbce9de3dad0698d84674a19d6cc66a84db736a6398110bd196795dde7e.py.lock
using datasets version = 1.1.2 | 22 | Too much logging
I'm doing this in the beginning of my script:
from datasets.utils import logging as datasets_logging
datasets_logging.set_verbosity_warning()
but I'm still getting these logs:
[2020-11-07 15:45:41,908][filelock][INFO] - Lock 139958278886176 acquired on /home/username/.cache/huggingface/datasets/cfe20ffaa80ef1c145a0a210d5b9cdce2b60002831e6ed0edc7ab9275d6f0d48.1bd4ccbce9de3dad0698d84674a19d6cc66a84db736a6398110bd196795dde7e.py.lock
[2020-11-07 15:45:41,909][filelock][INFO] - Lock 139958278886176 released on /home/username/.cache/huggingface/datasets/cfe20ffaa80ef1c145a0a210d5b9cdce2b60002831e6ed0edc7ab9275d6f0d48.1bd4ccbce9de3dad0698d84674a19d6cc66a84db736a6398110bd196795dde7e.py.lock
using datasets version = 1.1.2
Hi ! Thanks for reporting :)
I agree these one should be hidden when the logging level is warning, we'll fix that | [
-0.093955785,
-0.1382927746,
-0.1109821871,
0.117905207,
0.3646459579,
0.1386169046,
0.3069937229,
0.5121554732,
0.1688754261,
-0.0100428089,
0.0955122933,
0.0601680949,
-0.4101090431,
0.0572797135,
-0.2360523343,
0.2184812874,
0.0992702544,
-0.1177202538,
-0.231096983,
-0.1383837461,
-0.0463394038,
-0.0264286678,
-0.0634163916,
0.0502455086,
-0.7488372922,
-0.1222363189,
0.2166902423,
0.0171179306,
-0.1799692363,
-0.4650104344,
-0.0918774679,
0.2049916983,
0.1833454221,
0.2377513349,
-0.0001085635,
-0.2062124014,
0.3049528599,
0.0561280772,
-0.294862628,
0.3130479455,
-0.1765791625,
-0.4536094368,
0.2646348178,
-0.1287498772,
-0.0320019126,
-0.5764784217,
0.1200486571,
-0.5471833348,
0.1971038133,
0.2420774549,
0.2531928122,
0.1721661985,
-0.1171072498,
0.1836513579,
0.1604666114,
0.1954944879,
-0.0464434549,
-0.0426944643,
0.2407289594,
-0.1449798048,
-0.2897661626,
0.5247575641,
-0.2106174976,
-0.0936638787,
0.2563082874,
0.0742957592,
-0.0066657718,
-0.4359253347,
0.2002309412,
0.2293612361,
0.250516206,
-0.4348900318,
-0.2396634072,
-0.5395966768,
0.1525106132,
-0.2023011744,
-0.0393042266,
0.1188084409,
0.02594411,
0.2967509329,
-0.3168108463,
-0.1253172606,
0.0727278143,
-0.1946345717,
0.281453371,
0.0904518738,
-0.0954422057,
-0.0199597143,
0.2426549345,
-0.203173697,
-0.0055370219,
0.0190862343,
-0.1287661642,
0.0733046383,
-0.368399024,
-0.1760261655,
0.2714225948,
0.4546543062,
-0.0106762052,
0.1569294482,
-0.5877221227,
0.0308094323,
0.1449275464,
-0.0687159002,
0.2483413965,
0.0682762563,
0.381524682,
0.4842717946,
0.0695502013,
0.0023661107,
0.2182522714,
0.1636324525,
0.3279187381,
-0.3859714568,
0.5891597867,
0.093415603,
0.4714003801,
-0.2433212996,
-0.0503412932,
-0.0017934777,
-0.0907608867,
-0.1449495554,
0.0998376012,
0.2186501175,
0.2573611736,
-0.1124920845,
-0.0209495835,
0.1804552227,
-0.1787157357,
-0.1113089174,
-0.3608377576,
0.2265654206,
-0.0386889167,
0.1814368367,
0.1555700749,
-0.0132072568,
-0.0337050259,
0.1645655632,
-0.0999963805,
-0.0064753145,
0.2545644343,
-0.0888236761,
0.1127234697,
0.4412616193,
-0.2111653388,
0.129346624,
0.0744355023,
-0.1091435105,
-0.217254281,
-0.009576885,
0.0266518779,
-0.3440963626,
-0.1174658537,
0.2434982657,
-0.3380616307,
0.0631736666,
0.0415721163,
0.0605499297,
0.2659909725,
0.2676564753,
0.2104017437,
-0.1764072031,
-0.1235791594,
-0.1606829464,
0.0469206199,
0.7568489313,
-0.1010418534,
-0.1524251103,
-0.154476583,
-0.3426132202,
0.3341264129,
0.2843777835,
0.0356809385,
0.2831245065,
-0.3132160902,
0.1170725673,
-0.0723761469,
-0.3900970221,
-0.0120040942,
0.3230900764,
-0.2881064415,
0.1007579789,
0.5861544609,
0.1028015465,
0.0012949556,
-0.2383529246,
0.0093687885,
-0.1693769246,
0.0935041457,
-0.0579393208,
-0.2075728774,
-0.1830705702,
-0.0157597046,
0.1808308363,
-0.1068215594,
-0.220210731,
-0.0464310944,
0.0053203888,
0.3438034058,
-0.1056677103,
0.0014571771,
0.2216457427,
0.2044258714,
-0.1354946345,
-0.1259180605,
-0.1356044561,
-0.3863963485,
-0.0477212258,
-0.0831305832,
0.0528705269,
-0.4278621078,
-0.5052877665,
0.0825893208,
0.0003731996,
-0.1854663342,
-0.2281103283,
0.130896911,
0.0035780035,
-0.2127635926,
-0.1032313108,
-0.2443546951,
0.3279070258,
-0.0935138911,
0.2245456278,
-0.3384844065,
-0.3394960761,
0.0967409462,
-0.1239865348,
0.3080796599,
0.0880162194,
0.337641865,
0.0235523209,
0.2304947674,
0.279966861,
-0.0227969773,
0.691298604,
0.0908787474,
0.3066891134,
0.0518685803,
0.106157735,
0.1213444993,
-0.091763556,
-0.2069845945,
-0.0415723398,
0.0172878895,
0.345580548,
0.090902023,
0.0299077816,
-0.2113507688,
-0.0423979014,
-0.1206109971,
-0.0728123039,
-0.1242457181,
-0.54773736,
0.3308846653,
0.0519311763,
0.0606077164,
0.2649485171,
0.0394689366,
0.3360197544,
0.4038292468,
-0.2107299864,
0.1244593412,
0.0845002383,
0.0159382671,
0.0463408083,
0.175711751,
0.154177174,
0.1422483623,
0.3217692077,
0.0495249555,
0.2399302274,
0.2244521827,
-0.2068877369,
0.2346290499,
0.0124484971,
-0.1978019625,
-0.0443736538,
-0.2063254714,
-0.2044217288,
-0.1408553869,
-0.1601753235,
-0.3429881036,
0.2901280224,
-0.3985349536,
0.0035820827,
-0.3858214617,
-0.2859234214,
-0.193507269,
0.0809363574,
0.0804827362,
-0.2955827415,
0.2598422766,
-0.0968646482,
-0.3056243658,
0.2036595941,
-0.1606089771,
0.0606578663,
0.1127742156,
0.1230947822,
-0.1839647591,
0.1099289805,
-0.0364183187,
0.0853303894,
0.0721571073,
-0.0706836134,
0.4171565771,
-0.1239204407,
-0.053624019,
-0.1975159794,
-0.2242770791,
-0.0322813764,
-0.2084121108,
0.0298858155,
0.2623639703,
0.0961002633,
0.1462894976,
-0.0539730787,
-0.3215299249,
0.0295730755,
0.1425771415,
-0.0307252035,
-0.1538361162,
0.0601688623,
-0.168592751,
-0.3298369944,
-0.205204457,
-0.2479127198,
0.1057198346,
-0.0258243866,
0.0914526805,
0.3211141229,
-0.106598109,
0.1568307877,
-0.3661246896,
0.3012651205,
-0.0286126193,
-0.2743653655,
0.2313610315,
0.0794463828,
-0.0137226246,
0.0065792575,
0.00033582,
-0.3040707707,
-0.2560657561,
-0.5025678277,
-0.1028374508,
-0.4806150198,
-0.0817896873,
-0.1125075966,
0.1075823158,
0.2545312941,
0.2832551301,
-0.2098627239,
0.0634867847,
0.1032880545,
-0.0417311527,
-0.4492864907,
0.1921851784,
-0.2249038219,
0.2574487031,
0.1716221273,
0.2437793016,
0.6294995546,
0.0763812363,
-0.0625269935,
-0.0662858561,
0.5207748413,
-0.0275089033,
-0.2754184008,
-0.0688881576,
0.2339809239,
-0.2732110023,
0.0331291705,
0.0283683725,
0.3133289516,
0.0314498022,
-0.0786369517,
0.1196461245,
-0.3498459458,
-0.0324781947,
0.1352696717,
-0.1261871457,
-0.1991605908,
0.2758155167,
0.0850864947,
-0.1263506263,
-0.0174962431,
0.3585093915,
0.1847479194,
-0.0199919324,
-0.2938169837,
0.1961057782,
-0.6184142828,
0.2171831429,
-0.1861789823,
-0.175695315,
-0.2718885243,
-0.2114417851,
0.0554849133,
0.356210947,
0.2229141444,
-0.1450010389,
0.1960818172,
0.003594704,
0.1036259457,
-0.2364576906,
0.0014579967,
-0.3731634915,
0.2473730743,
0.5612370372,
0.2165386528,
-0.1743341088,
-0.2276819199,
0.208488673,
0.2237482071,
0.0535887107,
-0.3068558872,
-0.2949360013,
-0.1452510059,
-0.3326516747,
0.0871565789,
0.1866645664,
-0.03431499,
-0.2662408948,
-0.0546182096,
0.2502052486,
-0.2360361665,
0.4416202605,
-0.251219511,
0.1626156718,
0.0465069674,
0.2130650729,
0.0570294894,
0.0740486085,
0.1904067248,
0.4802786112,
0.0943290591,
-0.2119492888,
-0.1666475087,
-0.0299107637,
0.2081237286,
0.4218246937,
-0.2831207216,
0.2068609595,
0.2284540236,
0.4665277004,
-0.207207799,
0.0717766955,
0.2487657964,
0.0010952689,
-0.2626175582,
-0.0239353366,
0.2868357003,
0.3003081381,
-0.1352035403,
0.3484826386,
0.2236121446,
-0.3694550693,
0.0369407311,
0.0067663305,
0.8249830008,
-0.1158919781,
0.1240964308,
0.0340900719,
-0.2363859117,
0.483571291,
0.1011433527,
-0.0739333034,
-0.1816162169,
-0.2403104007,
0.1836621612,
-0.0452957451,
0.2229615152,
-0.2261367738,
-0.108303763,
0.2367770225,
-0.503836453,
-0.05483317,
-0.3217778802,
0.5082203746,
-0.4011692107,
-0.1209337488,
-0.1482983232,
0.1056726649,
-0.0943692997,
0.2023950815,
-0.0155993365,
-0.1245628819,
0.3061546087,
-0.1772097051,
-0.1929210722,
-0.1682959795,
0.1928418279,
-0.0087254327,
-0.2535125017,
-0.0676526874,
-0.0216439888,
0.1862488091,
0.2338097245,
0.3983848691,
-0.0748143345,
-0.1149246842,
0.0396526605,
0.1570653617,
0.0170801729,
0.0275556669,
0.3977655172,
0.0857750326,
-0.2672384977,
0.0658209771,
0.1803514808,
-0.1707695723,
-0.2267666906,
-0.1777759194,
-0.083226189,
-0.2662025094,
0.1297424883,
0.0929613113,
-0.2065984309,
0.0840085223,
0.1887382418,
0.4445772767,
-0.0216285158,
0.1824270487,
-0.0548385754,
-0.4765106738,
-0.3952400684,
0.504040122,
0.1510433853,
-0.1266812086,
0.5556838512,
0.2504143715,
-0.3811904192,
-0.355245769,
0.1111970246,
0.343537271,
-0.0773276165,
0.0663198382,
0.2360482961,
0.0889008939,
0.0891180336,
-0.1712624431,
0.0418540798,
-0.0376886129,
-0.0416646674,
-0.1587856561,
-0.6313866377,
0.2076012939,
-0.2095308304,
0.2792847753,
-0.1171593368,
-0.0032089334,
-0.0582863875,
0.0690881684,
-0.3741520345,
-0.2777663469,
0.0515775979,
-0.1663176119,
0.2583636343,
0.0489935428,
0.3095759749,
-0.0568152033,
0.1622139961,
-0.1277164221,
-0.2946115732,
-0.2139981687,
0.0317860395,
0.0622517169,
-0.3852055967,
0.034021847,
-0.0096544959,
-0.1907471716,
0.0100178085,
-0.0825327933,
0.2864016294,
0.5032943487,
0.2410666198,
0.3299828172,
-0.0650277957,
-0.173788026,
0.0901245177,
-0.3782748282,
-0.0790194273,
-0.0189158805,
-0.1019778848,
-0.0092229387,
-0.0875606239,
0.0033158138,
0.0400347449,
0.0569199473,
0.0982398838,
0.2117703259,
0.0139171742,
0.1633587331,
-0.1465504766,
0.4369924068,
0.3946345448,
0.0505327061,
-0.245754987,
-0.2233485878,
-0.1581209004,
0.2508952916,
-0.1108825654,
-0.1131799594,
-0.1043810695,
0.3248179257,
-0.0688688457,
0.3823313117,
-0.195205614,
-0.0537762567,
0.4082464576,
0.1821786761,
0.0427000709,
-0.31164819,
0.1041912884,
-0.1105656475,
-0.2489745915,
-0.2402358949,
0.3837440312,
0.209957689,
0.1874792427,
0.3255284727,
-0.2500396967,
0.4886871874,
-0.0836319327,
0.0282430835,
-0.1258107573,
-0.1916556954,
0.1283935159,
0.4202007055,
-0.3408842981,
-0.2257042676,
0.1094432846,
0.1003071815,
0.0910665095,
0.1164525896,
-0.0592877604,
0.0206262544,
-0.1105682924,
0.065200448,
0.5272234082,
0.1469574869,
-0.0223204717,
-0.1454700381,
0.000211413,
-0.1507517993,
0.0020221062,
0.0691602677,
-0.0758541301,
-0.0888679102,
0.395603478,
-0.1575433016,
0.5541145802,
-0.2218863964,
-0.1620529741,
0.0254402161,
0.1349114627,
0.2545055449,
0.2312452346,
0.6053712368,
0.321675092,
0.2831217051,
0.2745064795,
-0.0613173395,
0.0074725002,
-0.0845507905,
0.4589728117,
-0.1363326609,
0.1556655765,
0.1265351623,
0.1685231924,
-0.1802563965,
0.1641698033,
0.0789167881,
-0.0232049935,
-0.197009638,
0.5414173603,
0.1035411358,
-0.2683020234,
-0.2237719893,
0.0505936779,
-0.2667416632,
-0.1599801481,
0.3896867633,
0.1084452868,
0.0784003213,
-0.4151424468,
0.0978070721,
-0.1514094472,
0.0709750205,
0.2777143121,
-0.0226126201,
-0.3228413463,
0.2279048413,
-0.3644595444,
0.1353074312,
-0.0462399162,
-0.25018543,
-0.1109026372,
-0.0260764807,
-0.1400712729,
0.240004167,
0.328468442,
-0.2272968292,
-0.0551453903,
-0.412909925,
-0.1118053794,
-0.0292402264,
0.013213235,
-0.0522256941,
0.0636383593,
-0.0837535635,
0.4917399585,
-0.5058588386,
0.1113730073,
-0.1033638418,
0.0078776032,
0.1151102483,
0.2492210269,
0.2712680399,
0.1212185174,
0.2057714313,
-0.1138903946,
-0.0524765179,
-0.3292319477,
0.0383194685,
-0.2527837455,
0.1710238606,
0.1203141063,
0.1378357261,
-0.3307655454,
-0.3593443036,
-0.2284507453,
0.4239183366,
-0.0458417647,
-0.2112403512,
-0.0408496596,
0.0943301395,
0.2376455665,
0.0177994855,
0.0140664317,
0.159643203,
0.0941283181,
0.2866966724,
-0.0830888152,
-0.6573038101,
0.5842892528,
-0.3260941505,
-0.0806080624,
0.0214555971,
0.6829881668,
0.2588313222,
-0.2425113022,
-0.6747084856,
0.1540485024,
0.1601793766,
-0.1886598319,
0.0084411576,
0.4398556352,
-0.2275976986,
0.0170995146,
0.1593378633,
0.2672634423,
0.1233647093,
0.1450194716,
0.0384279191,
-0.3869265318
] |
https://github.com/huggingface/datasets/issues/812 | Too much logging | +1, the amount of logging is excessive.
Most of it indeed comes from `filelock.py`, though there are occasionally messages from other sources too. Below is an example (all of these messages were logged after I already called `datasets.logging.set_verbosity_error()`)
```
I1109 21:26:01.742688 139785006901056 filelock.py:318] Lock 139778216292192 released on /home/kitaev/.cache/huggingface/datasets/9ed4f2e133395826175a892c70611f68522c7bc61a35476e8b51a31afb76e4bf.e6f3e3f3e3875a07469d1cfd32e16e1d06b149616b11eef2d081c43d515b492d.py.lock
I1109 21:26:01.747898 139785006901056 filelock.py:274] Lock 139778216290176 acquired on /home/kitaev/.cache/huggingface/datasets/_home_kitaev_.cache_huggingface_datasets_glue_mnli_1.0.0_7c99657241149a24692c402a5c3f34d4c9f1df5ac2e4c3759fadea38f6cb29c4.lock
I1109 21:26:01.748258 139785006901056 filelock.py:318] Lock 139778216290176 released on /home/kitaev/.cache/huggingface/datasets/_home_kitaev_.cache_huggingface_datasets_glue_mnli_1.0.0_7c99657241149a24692c402a5c3f34d4c9f1df5ac2e4c3759fadea38f6cb29c4.lock
I1109 21:26:01.748412 139785006901056 filelock.py:274] Lock 139778215853024 acquired on /home/kitaev/.cache/huggingface/datasets/_home_kitaev_.cache_huggingface_datasets_glue_mnli_1.0.0_7c99657241149a24692c402a5c3f34d4c9f1df5ac2e4c3759fadea38f6cb29c4.lock
I1109 21:26:01.748497 139785006901056 filelock.py:318] Lock 139778215853024 released on /home/kitaev/.cache/huggingface/datasets/_home_kitaev_.cache_huggingface_datasets_glue_mnli_1.0.0_7c99657241149a24692c402a5c3f34d4c9f1df5ac2e4c3759fadea38f6cb29c4.lock
I1109 21:07:17.029001 140301730502464 filelock.py:274] Lock 140289479304360 acquired on /home/kitaev/.cache/huggingface/datasets/b16d3a04bf2cad1346896852bf120ba846ea1bebb1cd60255bb3a1a2bbcc3a67.ec871b06a00118091ec63eff0a641fddcb8d3c7cd52e855bbb2be28944df4b82.py.lock
I1109 21:07:17.029341 140301730502464 filelock.py:318] Lock 140289479304360 released on /home/kitaev/.cache/huggingface/datasets/b16d3a04bf2cad1346896852bf120ba846ea1bebb1cd60255bb3a1a2bbcc3a67.ec871b06a00118091ec63eff0a641fddcb8d3c7cd52e855bbb2be28944df4b82.py.lock
I1109 21:07:17.058964 140301730502464 filelock.py:274] Lock 140251889388120 acquired on /home/kitaev/.cache/huggingface/metrics/glue/mnli/default_experiment-1-0.arrow.lock
I1109 21:07:17.060933 140301730502464 filelock.py:318] Lock 140251889388120 released on /home/kitaev/.cache/huggingface/metrics/glue/mnli/default_experiment-1-0.arrow.lock
I1109 21:07:17.061067 140301730502464 filelock.py:274] Lock 140296072521488 acquired on /home/kitaev/.cache/huggingface/metrics/glue/mnli/default_experiment-1-0.arrow.lock
I1109 21:07:17.069736 140301730502464 metric.py:400] Removing /home/kitaev/.cache/huggingface/metrics/glue/mnli/default_experiment-1-0.arrow
I1109 21:07:17.069949 140301730502464 filelock.py:318] Lock 140296072521488 released on /home/kitaev/.cache/huggingface/metrics/glue/mnli/default_experiment-1-0.arrow.lock
``` | I'm doing this in the beginning of my script:
from datasets.utils import logging as datasets_logging
datasets_logging.set_verbosity_warning()
but I'm still getting these logs:
[2020-11-07 15:45:41,908][filelock][INFO] - Lock 139958278886176 acquired on /home/username/.cache/huggingface/datasets/cfe20ffaa80ef1c145a0a210d5b9cdce2b60002831e6ed0edc7ab9275d6f0d48.1bd4ccbce9de3dad0698d84674a19d6cc66a84db736a6398110bd196795dde7e.py.lock
[2020-11-07 15:45:41,909][filelock][INFO] - Lock 139958278886176 released on /home/username/.cache/huggingface/datasets/cfe20ffaa80ef1c145a0a210d5b9cdce2b60002831e6ed0edc7ab9275d6f0d48.1bd4ccbce9de3dad0698d84674a19d6cc66a84db736a6398110bd196795dde7e.py.lock
using datasets version = 1.1.2 | 145 | Too much logging
I'm doing this in the beginning of my script:
from datasets.utils import logging as datasets_logging
datasets_logging.set_verbosity_warning()
but I'm still getting these logs:
[2020-11-07 15:45:41,908][filelock][INFO] - Lock 139958278886176 acquired on /home/username/.cache/huggingface/datasets/cfe20ffaa80ef1c145a0a210d5b9cdce2b60002831e6ed0edc7ab9275d6f0d48.1bd4ccbce9de3dad0698d84674a19d6cc66a84db736a6398110bd196795dde7e.py.lock
[2020-11-07 15:45:41,909][filelock][INFO] - Lock 139958278886176 released on /home/username/.cache/huggingface/datasets/cfe20ffaa80ef1c145a0a210d5b9cdce2b60002831e6ed0edc7ab9275d6f0d48.1bd4ccbce9de3dad0698d84674a19d6cc66a84db736a6398110bd196795dde7e.py.lock
using datasets version = 1.1.2
+1, the amount of logging is excessive.
Most of it indeed comes from `filelock.py`, though there are occasionally messages from other sources too. Below is an example (all of these messages were logged after I already called `datasets.logging.set_verbosity_error()`)
```
I1109 21:26:01.742688 139785006901056 filelock.py:318] Lock 139778216292192 released on /home/kitaev/.cache/huggingface/datasets/9ed4f2e133395826175a892c70611f68522c7bc61a35476e8b51a31afb76e4bf.e6f3e3f3e3875a07469d1cfd32e16e1d06b149616b11eef2d081c43d515b492d.py.lock
I1109 21:26:01.747898 139785006901056 filelock.py:274] Lock 139778216290176 acquired on /home/kitaev/.cache/huggingface/datasets/_home_kitaev_.cache_huggingface_datasets_glue_mnli_1.0.0_7c99657241149a24692c402a5c3f34d4c9f1df5ac2e4c3759fadea38f6cb29c4.lock
I1109 21:26:01.748258 139785006901056 filelock.py:318] Lock 139778216290176 released on /home/kitaev/.cache/huggingface/datasets/_home_kitaev_.cache_huggingface_datasets_glue_mnli_1.0.0_7c99657241149a24692c402a5c3f34d4c9f1df5ac2e4c3759fadea38f6cb29c4.lock
I1109 21:26:01.748412 139785006901056 filelock.py:274] Lock 139778215853024 acquired on /home/kitaev/.cache/huggingface/datasets/_home_kitaev_.cache_huggingface_datasets_glue_mnli_1.0.0_7c99657241149a24692c402a5c3f34d4c9f1df5ac2e4c3759fadea38f6cb29c4.lock
I1109 21:26:01.748497 139785006901056 filelock.py:318] Lock 139778215853024 released on /home/kitaev/.cache/huggingface/datasets/_home_kitaev_.cache_huggingface_datasets_glue_mnli_1.0.0_7c99657241149a24692c402a5c3f34d4c9f1df5ac2e4c3759fadea38f6cb29c4.lock
I1109 21:07:17.029001 140301730502464 filelock.py:274] Lock 140289479304360 acquired on /home/kitaev/.cache/huggingface/datasets/b16d3a04bf2cad1346896852bf120ba846ea1bebb1cd60255bb3a1a2bbcc3a67.ec871b06a00118091ec63eff0a641fddcb8d3c7cd52e855bbb2be28944df4b82.py.lock
I1109 21:07:17.029341 140301730502464 filelock.py:318] Lock 140289479304360 released on /home/kitaev/.cache/huggingface/datasets/b16d3a04bf2cad1346896852bf120ba846ea1bebb1cd60255bb3a1a2bbcc3a67.ec871b06a00118091ec63eff0a641fddcb8d3c7cd52e855bbb2be28944df4b82.py.lock
I1109 21:07:17.058964 140301730502464 filelock.py:274] Lock 140251889388120 acquired on /home/kitaev/.cache/huggingface/metrics/glue/mnli/default_experiment-1-0.arrow.lock
I1109 21:07:17.060933 140301730502464 filelock.py:318] Lock 140251889388120 released on /home/kitaev/.cache/huggingface/metrics/glue/mnli/default_experiment-1-0.arrow.lock
I1109 21:07:17.061067 140301730502464 filelock.py:274] Lock 140296072521488 acquired on /home/kitaev/.cache/huggingface/metrics/glue/mnli/default_experiment-1-0.arrow.lock
I1109 21:07:17.069736 140301730502464 metric.py:400] Removing /home/kitaev/.cache/huggingface/metrics/glue/mnli/default_experiment-1-0.arrow
I1109 21:07:17.069949 140301730502464 filelock.py:318] Lock 140296072521488 released on /home/kitaev/.cache/huggingface/metrics/glue/mnli/default_experiment-1-0.arrow.lock
``` | [
-0.074594304,
-0.0315373987,
-0.0513727665,
0.1314178258,
0.2844703794,
0.217928797,
0.2618089318,
0.483884871,
0.0517458096,
-0.1740336716,
0.1080990508,
0.0136715397,
-0.4307381511,
-0.0791793913,
-0.1534982324,
0.1896950752,
0.0866655335,
-0.213825956,
-0.2665449679,
-0.0811806098,
0.0343075246,
0.0029075984,
0.0677583963,
0.0736545175,
-0.8763465881,
-0.1577259302,
0.1634813845,
0.0411979482,
-0.1345585585,
-0.3958103657,
-0.1170414239,
0.217202723,
0.1443825215,
0.2253054678,
-0.0001129851,
-0.246720612,
0.2506770492,
0.090449214,
-0.3506260514,
0.3797376752,
-0.0783605501,
-0.4808193445,
0.2577621937,
-0.0923961699,
0.110449858,
-0.5984717607,
0.1523717195,
-0.5589931607,
0.2384315282,
0.2718780935,
0.1834261864,
0.1516071707,
0.0547523499,
0.0827176422,
0.1596717536,
0.3057549596,
0.0517395064,
0.0208020434,
0.3077192903,
-0.12238428,
-0.2875323594,
0.4429542124,
-0.1540036947,
-0.1464919299,
0.3328664899,
-0.0242482331,
-0.0548646078,
-0.3220507205,
0.20324561,
0.303786248,
0.2530050278,
-0.4261760116,
-0.3371697366,
-0.6361060143,
0.1488004327,
-0.1059590876,
-0.0772847384,
0.1271359771,
-0.0251313932,
0.3121364713,
-0.1953440309,
-0.1719776392,
0.123256892,
-0.2216965109,
0.2597729266,
-0.0053380728,
-0.063995041,
-0.0270454437,
0.3266189992,
-0.1445754617,
-0.0301965177,
0.0324760452,
-0.1313665956,
-0.0420442261,
-0.4276963174,
-0.0721248537,
0.3259894252,
0.3903734684,
0.0073608309,
0.1643507481,
-0.5164461732,
0.0500927046,
0.1268523335,
-0.1393425763,
0.3606740236,
0.0856674016,
0.2658693492,
0.5355186462,
0.0115283895,
-0.0776604861,
0.1887792349,
0.1849963218,
0.3528626263,
-0.4127816856,
0.6333886385,
-0.0439092405,
0.3881658018,
-0.183270514,
-0.0560885519,
0.0786953121,
-0.1461779475,
-0.0709002167,
0.1323028207,
0.1157304198,
0.1893904507,
-0.1116278544,
-0.0326277986,
0.216139853,
-0.1818703711,
-0.0952510461,
-0.2570808828,
0.2912867665,
-0.061974939,
0.2372435927,
0.1315512508,
-0.0919224545,
-0.1203427315,
0.1508067548,
-0.1984521449,
-0.1433123648,
0.1449324787,
-0.0918433815,
0.0544103608,
0.2532404363,
-0.1634288132,
0.1583195627,
0.1093848199,
-0.0930436999,
-0.2132110298,
-0.1570730358,
-0.0029680952,
-0.4197714329,
-0.1508746296,
0.1769854724,
-0.3609288335,
0.1228161007,
0.0573320054,
0.0382684954,
0.2015437186,
0.2192129195,
0.1270129383,
-0.1874303818,
0.0474025607,
-0.0919262022,
0.0688472092,
0.8149479032,
-0.1338519156,
-0.1149421558,
-0.199236542,
-0.2495590299,
0.211494714,
0.3670783341,
0.0883116722,
0.4535952806,
-0.275811106,
0.1275874078,
-0.131085664,
-0.3799782395,
-0.0529378504,
0.2603456378,
-0.3433257341,
0.1315960437,
0.5908982158,
0.1757715046,
0.0965022743,
-0.1554006785,
0.1957789212,
-0.1910149008,
0.1259526312,
-0.1410336494,
-0.1325219572,
-0.1077743322,
-0.148636356,
0.2916975021,
-0.1531302631,
-0.3589290679,
0.0563394949,
0.1525659263,
0.2883654535,
-0.1712486744,
-0.0581980683,
0.3116378784,
0.1786777675,
0.0267671086,
-0.1798518598,
-0.1012191176,
-0.3404587805,
-0.0530149266,
-0.122672379,
-0.0383120775,
-0.4733015001,
-0.3894546628,
0.0773144066,
0.0842120796,
-0.1481725425,
-0.1231566742,
0.0824632496,
0.1649749279,
-0.22239393,
-0.1105734184,
-0.1733957231,
0.5379332304,
-0.2286851704,
0.2063635588,
-0.3914618194,
-0.3222683072,
0.1621666998,
-0.2050782442,
0.3768683076,
0.2321708202,
0.1237567663,
-0.0448713824,
0.3035087883,
0.293569237,
0.1105193943,
0.7735784054,
0.1506026536,
0.2828683257,
0.0450517237,
0.0371115953,
0.0559082553,
-0.102771312,
-0.2085748464,
-0.0622852072,
-0.1143948287,
0.2769282162,
0.064120695,
0.0131072812,
-0.1927529871,
0.017503731,
-0.0604066104,
-0.0479674861,
-0.1571537852,
-0.4694755077,
0.388425678,
0.0354196914,
0.1513439417,
0.3073639572,
0.0933590308,
0.2709866464,
0.3807007372,
-0.3204110265,
0.2158669829,
0.1895165443,
-0.0337898023,
-0.0532428771,
0.0926935896,
0.172896713,
0.1485680789,
0.2563019693,
0.0606389083,
0.2134079039,
0.2705397606,
-0.150098294,
0.2070965171,
-0.0006093159,
-0.2361586988,
-0.0310837999,
-0.1758467257,
-0.1036933661,
-0.0950702503,
-0.1284282804,
-0.336371094,
0.3529497385,
-0.4624252021,
0.0696307123,
-0.4349547625,
-0.1110905856,
-0.209022373,
0.2291614562,
0.0648025945,
-0.4513130486,
0.1271878481,
-0.0272101481,
-0.2379028797,
0.0569798201,
-0.0679088607,
0.0843498632,
0.2101686746,
0.0175130647,
-0.0816573352,
-0.0884811431,
-0.103188172,
0.008628305,
0.1440273672,
-0.0204747319,
0.376758635,
-0.1795286536,
0.0304737762,
-0.2623321414,
-0.2368261516,
-0.03198893,
-0.1196213216,
0.111149855,
0.3146395087,
0.1130472645,
0.0980317518,
-0.1044175923,
-0.3348393142,
0.0784270391,
0.1560448259,
0.0541007593,
-0.2534638643,
-0.0549038686,
0.0237654299,
-0.2233607322,
-0.2945464253,
-0.2709875107,
0.2620929182,
-0.0507088304,
0.0254695099,
0.3799550533,
-0.0819753259,
0.258539021,
-0.4855403304,
0.4720436037,
0.0324536636,
-0.1948690712,
0.246724546,
0.1571187377,
-0.0181053858,
-0.0250265077,
0.0343117118,
-0.3609284163,
-0.1947156191,
-0.5805231929,
-0.0669260025,
-0.418448329,
-0.0779099241,
-0.0549526438,
0.1938615292,
0.1924901754,
0.2107668519,
-0.1480479836,
0.1688169837,
0.0595318526,
0.0140636563,
-0.3548664153,
0.1852604747,
-0.2460647672,
0.1779491901,
0.2643880248,
0.1877125204,
0.72773242,
0.0353033878,
-0.0418432653,
-0.1223060191,
0.6265463829,
-0.1064638495,
-0.3333913088,
-0.0343918353,
0.137960583,
-0.2627514005,
0.0293821022,
0.0989600867,
0.4334070385,
0.0009446815,
-0.1464272439,
0.0377934426,
-0.5074549913,
0.0541749373,
0.1758880466,
0.0315819643,
-0.2065461427,
0.3023810983,
0.0383988097,
-0.1740317345,
0.0583885983,
0.3313586414,
0.1977048069,
0.0018869787,
-0.2859816849,
0.193988353,
-0.4752540886,
0.3170706928,
-0.1866373271,
-0.0570913181,
-0.3711292446,
-0.1716538519,
-0.0279305875,
0.2896538377,
0.117573902,
-0.0137530752,
0.1020943522,
-0.1267558485,
0.1449099779,
-0.37119627,
0.0183534175,
-0.3257527947,
0.1876350641,
0.5697363615,
0.2430300266,
-0.2658625841,
-0.0286304317,
0.0451286249,
0.2988792658,
-0.0259165466,
-0.2542478144,
-0.0148700997,
-0.2185211778,
-0.2875643671,
0.014140971,
0.0502197146,
0.0327842236,
0.1181927547,
-0.0466404483,
0.2007246464,
-0.2478128225,
0.4309013188,
-0.2870560586,
0.2200918496,
-0.0109678209,
0.1372260153,
0.0054601068,
0.0665270686,
0.2136291564,
0.3995427489,
0.0992327109,
-0.1674849689,
-0.1256907433,
-0.1075528562,
0.1943859309,
0.475928843,
-0.2531187832,
0.1103115529,
0.2523982525,
0.3625328541,
-0.2590714097,
0.1302038431,
0.3083061576,
0.0562574789,
-0.2572055161,
-0.0783733651,
0.177704066,
0.3756892681,
-0.0566730648,
0.3477582335,
0.2891748548,
-0.3465951085,
0.040070191,
0.0503162928,
0.8999303579,
-0.0925032347,
0.114737846,
0.1190014184,
-0.2670379877,
0.5149242878,
0.0153373703,
-0.134263128,
-0.0883745402,
-0.230979681,
0.21347633,
-0.1205795556,
0.2270933688,
-0.2072021812,
-0.0472169518,
0.1816926301,
-0.5165396333,
-0.1573137343,
-0.3318088651,
0.5256661177,
-0.4885503948,
-0.2017860711,
-0.2265625,
0.0999487713,
-0.1294718087,
0.0825481415,
0.0132375434,
-0.1196897924,
0.3383236527,
-0.106632337,
-0.3534635007,
-0.2431923896,
0.2296743542,
-0.0642426759,
-0.1778325886,
0.0051142424,
-0.0952357128,
0.0843713284,
0.1877572984,
0.4290837049,
-0.003918129,
-0.0873907208,
-0.0480198674,
0.1664818823,
0.1477642953,
-0.0788519382,
0.4667824209,
0.1206842512,
-0.1423260272,
0.0436773226,
0.1445870548,
-0.2751359642,
-0.1225850135,
-0.2105622441,
-0.1163175032,
-0.1738649458,
0.0548232161,
0.1270007193,
-0.3204523325,
0.1629693359,
0.153724134,
0.5195235014,
-0.0784758478,
0.2295349985,
-0.3311522007,
-0.4457035661,
-0.3362947404,
0.4338269234,
-0.0239049047,
-0.1791463196,
0.544834733,
0.3414300084,
-0.3074027896,
-0.2703459263,
0.222233966,
0.4122692347,
-0.1188802719,
-0.0120399613,
0.1202388555,
0.1167801917,
0.1398663819,
-0.1841652393,
0.2481606603,
-0.0416446812,
-0.0311379805,
-0.2110671997,
-0.5866547823,
0.2237887979,
-0.0795904547,
0.2755914032,
-0.0428284481,
-0.0358389504,
-0.1454813033,
0.1687012762,
-0.316031605,
-0.367079705,
0.0413453951,
-0.1166431308,
0.3834860027,
-0.1087865233,
0.2567989528,
-0.1550722867,
0.1498804539,
-0.0877144262,
-0.233444795,
-0.1553083956,
-0.047939837,
0.0670777783,
-0.2971939743,
0.0807243064,
0.0234922022,
-0.3290579915,
0.0254596919,
-0.206429258,
0.1208835691,
0.531044364,
0.1693325639,
0.1067398563,
-0.1382098943,
-0.1064065248,
0.0611084849,
-0.4175786972,
-0.0476972908,
0.0317198522,
-0.0102500282,
-0.0424824692,
-0.0830195397,
-0.0113729984,
-0.1795107722,
0.2315698564,
0.2190893739,
0.072726354,
0.0272214431,
0.1846973449,
-0.1117703468,
0.4301353693,
0.4489691854,
0.1083128154,
-0.1653655916,
-0.1348164976,
-0.1361066103,
0.1662263274,
-0.0152435862,
-0.1649347395,
-0.1768234968,
0.294275701,
-0.1706869304,
0.3220433295,
-0.1476409286,
-0.1159132868,
0.2302759737,
0.1660151184,
0.0898007303,
-0.2617785037,
0.1857284606,
-0.0085955597,
-0.2405255139,
-0.2137366533,
0.3052316904,
0.2049967796,
0.1911839545,
0.3457426429,
-0.353446722,
0.4051068723,
-0.1604710072,
0.0363292247,
0.0316594914,
-0.1979001164,
0.208111167,
0.4416001141,
-0.1858690977,
-0.0913225934,
-0.0101759583,
0.1298868954,
-0.0519711897,
0.1838619113,
-0.1689811349,
0.1603249311,
-0.0887482166,
0.1397988051,
0.5731916428,
0.1216395795,
-0.0264406875,
-0.0852918178,
0.0082865581,
-0.2131766975,
-0.1158264056,
0.1446963847,
-0.124928087,
-0.1700256765,
0.299759984,
-0.2238065004,
0.5274555683,
-0.2927849293,
-0.166426748,
0.070540756,
0.0523048639,
0.2441108823,
0.2015494704,
0.609413743,
0.2762211859,
0.2836933732,
0.3810275495,
-0.0556574129,
0.0009147376,
-0.0881973132,
0.3948675096,
-0.2048928291,
0.0218595639,
0.1150427014,
0.1665734649,
-0.184494406,
0.1279640198,
-0.0217358395,
0.0872500241,
-0.2614972889,
0.5596358776,
0.0769850761,
-0.1684875339,
-0.2072387338,
0.1250966489,
-0.2793933749,
-0.2924644947,
0.4331856966,
0.1771562994,
0.0425746739,
-0.3949587941,
0.0702256486,
-0.1825059652,
0.1641778946,
0.3775790036,
-0.1003871486,
-0.30241552,
0.2173936218,
-0.3926461339,
0.0719694123,
-0.0692621917,
-0.3006961346,
-0.04507358,
-0.0540904775,
-0.0868346989,
0.2786555588,
0.2691417933,
-0.273144424,
-0.1238445118,
-0.3865237236,
-0.0790503919,
-0.0171068087,
0.1688850671,
-0.0770207644,
0.0011856109,
-0.015832141,
0.5374279618,
-0.5230344534,
0.1071823165,
-0.0257077292,
-0.060585402,
0.0098462179,
0.2962514758,
0.2023199201,
0.0959274694,
0.1849058867,
-0.071183987,
-0.1287660599,
-0.4769386947,
-0.0060592368,
-0.1987169832,
0.2148759961,
0.0223255865,
0.1559685022,
-0.2797213495,
-0.4530616999,
-0.2887827158,
0.4550154507,
-0.0072686821,
-0.3219812214,
-0.0748840049,
0.0224794745,
0.1311857998,
0.0952370167,
0.2487839162,
0.2188133597,
0.1311003715,
0.3162853122,
-0.1064392626,
-0.5914748311,
0.4044464231,
-0.4396308362,
-0.0449230149,
0.0510892086,
0.639175415,
0.2168329954,
-0.2373140156,
-0.4576912522,
0.1311212927,
0.1609736979,
-0.2020822167,
0.0410865247,
0.3844125271,
-0.2066681832,
-0.0029252917,
0.1318025142,
0.1915698498,
0.1770693213,
0.0624667481,
0.0541636646,
-0.331464678
] |
https://github.com/huggingface/datasets/issues/812 | Too much logging | In the latest version of the lib the logs about locks are at the DEBUG level so you won't see them by default.
Also `set_verbosity_warning` does take into account these logs now.
Can you try to update the lib ?
```
pip install --upgrade datasets
``` | I'm doing this in the beginning of my script:
from datasets.utils import logging as datasets_logging
datasets_logging.set_verbosity_warning()
but I'm still getting these logs:
[2020-11-07 15:45:41,908][filelock][INFO] - Lock 139958278886176 acquired on /home/username/.cache/huggingface/datasets/cfe20ffaa80ef1c145a0a210d5b9cdce2b60002831e6ed0edc7ab9275d6f0d48.1bd4ccbce9de3dad0698d84674a19d6cc66a84db736a6398110bd196795dde7e.py.lock
[2020-11-07 15:45:41,909][filelock][INFO] - Lock 139958278886176 released on /home/username/.cache/huggingface/datasets/cfe20ffaa80ef1c145a0a210d5b9cdce2b60002831e6ed0edc7ab9275d6f0d48.1bd4ccbce9de3dad0698d84674a19d6cc66a84db736a6398110bd196795dde7e.py.lock
using datasets version = 1.1.2 | 46 | Too much logging
I'm doing this in the beginning of my script:
from datasets.utils import logging as datasets_logging
datasets_logging.set_verbosity_warning()
but I'm still getting these logs:
[2020-11-07 15:45:41,908][filelock][INFO] - Lock 139958278886176 acquired on /home/username/.cache/huggingface/datasets/cfe20ffaa80ef1c145a0a210d5b9cdce2b60002831e6ed0edc7ab9275d6f0d48.1bd4ccbce9de3dad0698d84674a19d6cc66a84db736a6398110bd196795dde7e.py.lock
[2020-11-07 15:45:41,909][filelock][INFO] - Lock 139958278886176 released on /home/username/.cache/huggingface/datasets/cfe20ffaa80ef1c145a0a210d5b9cdce2b60002831e6ed0edc7ab9275d6f0d48.1bd4ccbce9de3dad0698d84674a19d6cc66a84db736a6398110bd196795dde7e.py.lock
using datasets version = 1.1.2
In the latest version of the lib the logs about locks are at the DEBUG level so you won't see them by default.
Also `set_verbosity_warning` does take into account these logs now.
Can you try to update the lib ?
```
pip install --upgrade datasets
``` | [
-0.3842003345,
-0.1210571155,
-0.0782300308,
0.1213072985,
0.3027050793,
0.0185213685,
0.1953246444,
0.3992015719,
0.2092470527,
-0.0036377087,
0.0869947299,
0.2293004543,
-0.3797938526,
-0.0543081462,
-0.1946717501,
0.12470828,
0.0595849566,
-0.0120906271,
-0.2965028584,
-0.0548448898,
-0.0047584027,
0.1723805666,
-0.0426926464,
-0.0422267988,
-0.6513230205,
-0.0713218674,
0.2296183258,
0.0982799977,
-0.3177293241,
-0.5122995377,
0.0021842346,
0.321341306,
0.0933956504,
0.3480687737,
-0.0001114561,
-0.200807631,
0.3850498199,
0.0813149512,
-0.3874273002,
0.1584530026,
-0.1273754388,
-0.6889068484,
0.3180128932,
-0.1518695951,
-0.013295114,
-0.3914666474,
0.1741178185,
-0.4228615761,
0.3276724815,
0.2203638554,
0.2372914702,
0.2560477853,
0.1950729042,
-0.0656678975,
0.1696546525,
0.1276337653,
-0.1257696152,
0.0613509081,
0.3956287801,
0.0216282681,
-0.2153386474,
0.4811872542,
-0.2172436416,
-0.018227974,
0.1597385406,
0.0684906244,
-0.1942412555,
-0.2886527777,
0.2093295455,
0.3352799118,
0.297159642,
-0.4165315628,
-0.4168951213,
-0.4985828698,
0.1036062837,
-0.1400537193,
0.0120785497,
0.0399665162,
-0.043275658,
0.2632346153,
-0.2367275208,
-0.2274619639,
0.117849052,
-0.0880375504,
0.3674965501,
0.0152488556,
-0.1200141013,
-0.0643429756,
0.3860506415,
-0.1922384948,
-0.0838979334,
0.2320230901,
-0.1648689508,
-0.0848812759,
-0.3075757325,
-0.0059676841,
0.2617581189,
0.5459192991,
0.0173494294,
0.2318050712,
-0.4413785338,
0.1197398305,
0.1755082309,
-0.0772827119,
0.1295023561,
0.0951480269,
0.2877981365,
0.4277959168,
0.1300463974,
0.1100872681,
0.0666892678,
0.0680093765,
0.3630871773,
-0.4080977142,
0.4865085483,
0.0096884295,
0.4269074202,
-0.2582692802,
0.0138989165,
0.0117206536,
0.0211144164,
-0.1405649483,
0.0885047615,
0.3236781359,
0.0389576294,
-0.1044980511,
0.0325598568,
0.1472505629,
-0.3150572479,
-0.0125618801,
-0.272506088,
0.1832266897,
-0.104833588,
0.1756085455,
0.1836133301,
-0.1565754116,
0.2222397178,
0.2806103528,
-0.0470450111,
-0.0109791532,
0.0808318034,
0.0555735528,
-0.0364442877,
0.3621891439,
-0.1134300232,
0.1094322801,
-0.0041413833,
-0.121642828,
-0.1617452204,
-0.0908531025,
0.0200264473,
-0.3312014341,
-0.2264626026,
0.1802597493,
-0.3200675845,
0.0009693289,
0.1256014258,
0.0405627228,
0.1751791537,
0.0196827203,
0.1185607612,
-0.2449596077,
0.0220147073,
-0.1212942079,
0.1891784519,
0.7124808431,
-0.1160553247,
-0.1059547365,
-0.2146637887,
-0.2846232057,
0.1850433648,
0.2023046464,
0.077396363,
0.1450670362,
-0.1617025733,
0.0507671684,
-0.0373745561,
-0.4824725688,
-0.2755782306,
0.1520287842,
-0.1536351144,
0.023588866,
0.5440298915,
0.1484096348,
0.1424225271,
-0.0662036911,
-0.0997481942,
-0.2115713358,
0.1937682182,
-0.1589093208,
-0.1838150024,
-0.1617065221,
-0.1949254572,
0.1878436804,
-0.1351662576,
-0.2437298894,
0.0579747148,
0.2588115036,
0.2267552018,
-0.1032231003,
-0.1416473389,
0.3722046614,
0.325673759,
0.124263525,
-0.1412418783,
-0.2158424407,
-0.4205309749,
0.0231687352,
-0.0652114451,
0.0638564676,
-0.3778139353,
-0.3627588153,
-0.0519607514,
0.071015723,
-0.1508543491,
-0.2055117488,
0.1037456468,
0.1855560243,
-0.0640471056,
-0.0086808056,
-0.2316906899,
0.4891940355,
-0.1248554885,
0.235614717,
-0.4816493094,
-0.2807700038,
-0.0231932923,
-0.2656395435,
0.2748299837,
0.2632425129,
0.148699224,
-0.0271447524,
0.1757054627,
0.3804514706,
0.0298850313,
0.6424677968,
-0.0139935277,
0.1570060253,
0.0326065719,
0.1046305746,
0.1406439841,
-0.1251662225,
-0.2521865964,
0.0302477628,
-0.0197071619,
0.2708446085,
0.0190183725,
0.0220349897,
-0.1444373727,
-0.0326222554,
-0.0307910554,
-0.1097347364,
-0.1263530254,
-0.4837383926,
0.4376626909,
-0.0284980349,
0.2203831673,
0.1991185844,
-0.0573325269,
0.1922786236,
0.5509567261,
-0.1026852727,
0.2122148126,
0.1574654281,
0.00639138,
0.0618391782,
0.190449506,
0.1744951308,
0.2084708959,
0.3503153622,
0.0116698984,
0.2073845565,
0.1112732813,
-0.1860410571,
0.1864981055,
-0.0509207174,
-0.3102303743,
0.0356195532,
-0.1938987523,
-0.1716838926,
-0.2291988581,
-0.0639287531,
-0.4013715386,
0.3197188675,
-0.3461955786,
-0.0856333598,
-0.4944000542,
-0.0459208153,
-0.1702395529,
-0.0059613697,
0.0087138005,
-0.3549366593,
0.2253210545,
0.0546039306,
-0.1508047283,
0.2046788931,
-0.0311175734,
-0.0979534984,
0.0676515996,
0.0417158455,
-0.1886264682,
-0.0165106636,
-0.1442103237,
0.025931716,
0.0992545336,
0.011596147,
0.3698412776,
-0.1825217605,
0.0071974471,
-0.2161284983,
-0.3328986764,
-0.0864983052,
-0.3166134953,
0.2226392776,
0.3451012671,
0.218699947,
0.1186479777,
-0.0733522773,
-0.0937789828,
-0.0263982974,
0.0352338254,
-0.0686821938,
-0.1568098515,
-0.0560354143,
-0.1092873812,
-0.4498691559,
-0.2963136137,
-0.4060599506,
0.3338100314,
-0.0031316951,
0.0861224011,
0.3134582043,
0.0736863911,
0.267902106,
-0.4539485574,
0.4992465377,
0.0025513396,
-0.208409667,
0.2432997525,
0.0237042345,
-0.0945893377,
-0.0157250389,
0.1261737049,
-0.2033744156,
-0.2979956269,
-0.4741599262,
-0.215249002,
-0.4398392737,
0.0482866168,
-0.0393982157,
0.2068232,
0.3207934201,
0.1873241663,
-0.197133705,
-0.0205135643,
0.0013086945,
-0.0330721065,
-0.3698884845,
0.2065553218,
-0.1743269116,
0.290225327,
0.0709296614,
0.2890475392,
0.6024179459,
-0.0093563301,
0.0520619452,
-0.1885504723,
0.6065214276,
-0.2101408839,
-0.4003714919,
-0.1404460073,
0.1428539753,
-0.1776547432,
0.0030566752,
0.0743750632,
0.400626123,
-0.0758653656,
0.0622791201,
0.0110469609,
-0.4428912997,
-0.0294375457,
0.2006863654,
-0.0829348713,
-0.1694948971,
0.4223034382,
0.1286730766,
-0.1203921884,
0.0783363581,
0.2934123576,
-0.0003819019,
-0.0087830722,
-0.2260132432,
0.0914292634,
-0.5675856471,
0.3230776787,
-0.1862262189,
-0.0358641781,
-0.3785840571,
-0.1563176513,
0.0676025003,
0.2389381975,
0.1644757688,
-0.1255972236,
0.0340730473,
-0.0593377613,
0.0716859102,
-0.3205619454,
0.0409764275,
-0.4133747816,
0.1680274606,
0.5538195372,
0.2187896967,
-0.4402221441,
-0.0963385105,
0.1497093588,
0.2032132,
0.0424951315,
-0.1779589206,
-0.2302888334,
-0.1540988684,
-0.3952031434,
0.1186629683,
0.0868061557,
0.0124115944,
-0.0390126444,
-0.0634459332,
0.197707504,
-0.2458831072,
0.3211679757,
-0.1554300636,
0.2738793194,
-0.0506214052,
0.1528331786,
0.0439742841,
0.010364335,
0.1142114922,
0.5003359318,
-0.126922667,
-0.0673246086,
-0.2192167342,
-0.0036702901,
0.1662026048,
0.3981052637,
-0.2110256255,
0.1152882501,
0.3053014278,
0.4079304934,
-0.1593985707,
0.106562674,
0.3676128983,
0.1567259282,
-0.1973278672,
-0.0805218145,
0.3228186667,
0.3746470809,
-0.0800313875,
0.3842606544,
0.2945859134,
-0.2395424694,
0.123145327,
0.0106873419,
0.8338341713,
-0.0529668368,
0.0665991902,
0.0949239135,
-0.2706331015,
0.4882987738,
0.0560973063,
-0.1770414412,
-0.1328649819,
-0.1968456358,
0.1891279817,
0.0212024003,
0.2278800458,
-0.3805386722,
-0.3188480437,
0.2096365094,
-0.3555576801,
-0.026558226,
-0.3779295683,
0.4703406394,
-0.5139926076,
-0.1669332236,
-0.1779046208,
0.1617202461,
-0.1075899601,
0.217007935,
-0.0518062934,
-0.1411406994,
0.2018684149,
-0.1970669478,
-0.5171786547,
-0.122281298,
0.0933081806,
-0.0480531342,
-0.0954963267,
-0.1800892651,
-0.0442672446,
0.1278615147,
0.1890404224,
0.4562101662,
-0.1590246409,
0.0397504158,
-0.115887478,
0.0600807704,
0.055458229,
-0.0308992863,
0.3943157792,
0.0699736625,
-0.2352160513,
-0.0508996807,
0.0684569851,
-0.2278548926,
-0.0601516962,
-0.087258026,
-0.119382605,
-0.2786219716,
-0.0296493284,
0.1004620865,
-0.2291878164,
0.0236487463,
0.1905823499,
0.351919353,
-0.0079432279,
0.3124555945,
-0.0720814914,
-0.4334871769,
-0.351742357,
0.5259715915,
-0.0411587693,
-0.1152188927,
0.5203579664,
0.3307608366,
-0.3719976842,
-0.26829198,
-0.0019069016,
0.269818902,
-0.2570613623,
0.0599381067,
0.1953254342,
0.0193522274,
0.30730775,
-0.1209065169,
0.1388233304,
-0.1146340296,
-0.1912715733,
-0.2003658861,
-0.5947338939,
0.2515933812,
-0.134184882,
0.3578060567,
-0.0507519506,
-0.1388090998,
-0.0105761476,
0.1137608364,
-0.3678403497,
-0.2975863218,
-0.0328447074,
-0.1245169416,
0.4510899484,
-0.0954396725,
0.3745183051,
-0.0978111774,
0.1554636061,
0.1099659652,
-0.359421432,
-0.1913676262,
-0.0146618076,
0.0748744607,
-0.2906978726,
0.1637739837,
-0.1543094516,
-0.2334353775,
0.0883498266,
-0.155734852,
0.1895465255,
0.4521875679,
0.132658422,
0.2487798929,
-0.1210599467,
0.0438907817,
0.2011241913,
-0.3045768142,
-0.0797945857,
-0.0337636694,
-0.0070997253,
-0.0129313208,
-0.0079209842,
0.0274971128,
-0.0652923733,
0.112945497,
0.2750232518,
0.094513163,
0.0813546032,
0.1038772762,
-0.0638842732,
0.4160510302,
0.5061019063,
0.1523868889,
-0.0532419048,
-0.1462576538,
-0.0198969208,
0.2374398559,
-0.1275089979,
-0.0834043324,
-0.0136377355,
0.3474411666,
-0.0645247996,
0.2793579102,
-0.0807398409,
-0.0690293387,
0.3258931339,
0.2143790424,
0.1791691631,
-0.3216131032,
0.2039737552,
0.0435349159,
-0.1933200508,
-0.1793674976,
0.3450177014,
0.183821246,
0.144982174,
0.3770672679,
-0.3118777275,
0.5273202062,
-0.1330572665,
0.1501946449,
-0.0078299157,
-0.1290219575,
0.0946426019,
0.2455666661,
-0.0418728217,
-0.1048135459,
-0.0254209191,
0.3819458187,
-0.1224859804,
0.1320405304,
-0.1750385463,
0.2013735473,
-0.1989211887,
-0.0781992972,
0.5095502138,
0.1346433163,
-0.0471682325,
-0.0738076046,
0.0545244776,
-0.146452412,
0.0552891344,
0.1259680092,
-0.1458955109,
-0.3475187123,
0.2371223271,
-0.1874283552,
0.4338353276,
-0.1879198402,
0.031335935,
0.0992280319,
-0.0288842134,
0.1070847213,
0.3526526093,
0.682269156,
0.2854701877,
0.2022929192,
0.2540796399,
-0.1048099846,
0.0227652341,
-0.1309241652,
0.474393785,
-0.1250692606,
0.1397269666,
0.1326146275,
0.16739586,
-0.2666593194,
0.1741358936,
-0.0964724943,
0.0576637648,
-0.1789551526,
0.5616606474,
0.0397816338,
-0.2426109761,
-0.2239870578,
0.0867283717,
-0.3847686648,
-0.145962283,
0.3230121732,
0.1246515512,
-0.0189327635,
-0.5199956298,
0.0988149047,
-0.0991553292,
0.2348689735,
0.335375309,
0.0044650733,
-0.2047855854,
0.1303915977,
-0.5033679605,
0.0234637298,
-0.0397754312,
-0.266472578,
-0.1572216898,
0.0197521299,
-0.1950365007,
0.2984102964,
0.3773123622,
-0.3138504326,
0.0501934811,
-0.2426932454,
-0.1993447989,
0.0837260336,
0.1342658699,
-0.1894589961,
0.1656031609,
0.0313540399,
0.3460465074,
-0.4697659612,
0.0481718853,
-0.1129009277,
-0.041201584,
0.1014003009,
0.2144021839,
0.224988699,
0.1070277691,
0.2256127894,
-0.1252798885,
-0.1326645315,
-0.4260479808,
-0.0651868731,
-0.1742411852,
0.1416390538,
0.0835429281,
0.2157320976,
-0.3106635213,
-0.3851439059,
-0.3129427433,
0.437809974,
-0.0415196307,
-0.2413825691,
0.0373810306,
-0.0521590225,
0.1979451925,
0.0089822374,
0.1308050454,
0.1892094612,
0.0927535444,
0.3730068207,
-0.2739176452,
-0.6905540228,
0.5269714594,
-0.3244992793,
0.0147658587,
0.0947720259,
0.4946198463,
0.2482430041,
-0.3155158758,
-0.7181566954,
0.1357465237,
0.0534839667,
-0.1045396551,
0.0733515173,
0.4127821326,
-0.1984712183,
0.0815457553,
0.0882645547,
0.3735576868,
0.1968111694,
0.0937991887,
0.1009649485,
-0.2316858172
] |
https://github.com/huggingface/datasets/issues/812 | Too much logging | Thanks. For some reason I have to use the older version. Is that possible I can fix this by some surface-level trick?
I'm still using 1.13 version datasets. | I'm doing this in the beginning of my script:
from datasets.utils import logging as datasets_logging
datasets_logging.set_verbosity_warning()
but I'm still getting these logs:
[2020-11-07 15:45:41,908][filelock][INFO] - Lock 139958278886176 acquired on /home/username/.cache/huggingface/datasets/cfe20ffaa80ef1c145a0a210d5b9cdce2b60002831e6ed0edc7ab9275d6f0d48.1bd4ccbce9de3dad0698d84674a19d6cc66a84db736a6398110bd196795dde7e.py.lock
[2020-11-07 15:45:41,909][filelock][INFO] - Lock 139958278886176 released on /home/username/.cache/huggingface/datasets/cfe20ffaa80ef1c145a0a210d5b9cdce2b60002831e6ed0edc7ab9275d6f0d48.1bd4ccbce9de3dad0698d84674a19d6cc66a84db736a6398110bd196795dde7e.py.lock
using datasets version = 1.1.2 | 28 | Too much logging
I'm doing this in the beginning of my script:
from datasets.utils import logging as datasets_logging
datasets_logging.set_verbosity_warning()
but I'm still getting these logs:
[2020-11-07 15:45:41,908][filelock][INFO] - Lock 139958278886176 acquired on /home/username/.cache/huggingface/datasets/cfe20ffaa80ef1c145a0a210d5b9cdce2b60002831e6ed0edc7ab9275d6f0d48.1bd4ccbce9de3dad0698d84674a19d6cc66a84db736a6398110bd196795dde7e.py.lock
[2020-11-07 15:45:41,909][filelock][INFO] - Lock 139958278886176 released on /home/username/.cache/huggingface/datasets/cfe20ffaa80ef1c145a0a210d5b9cdce2b60002831e6ed0edc7ab9275d6f0d48.1bd4ccbce9de3dad0698d84674a19d6cc66a84db736a6398110bd196795dde7e.py.lock
using datasets version = 1.1.2
Thanks. For some reason I have to use the older version. Is that possible I can fix this by some surface-level trick?
I'm still using 1.13 version datasets. | [
-0.1845475733,
-0.0496452749,
-0.0627770871,
0.1152711958,
0.3269053102,
0.2235254943,
0.2482605577,
0.5285161734,
0.0655083805,
-0.1148343012,
0.0331853777,
0.0734859854,
-0.3805563152,
0.0945335925,
-0.1415008157,
0.0496980436,
0.0995935798,
-0.1345145106,
-0.2368710935,
-0.004086189,
0.0368101448,
-0.0554204956,
-0.0283104107,
-0.0276661851,
-0.6987546086,
-0.0575594679,
0.1499659121,
-0.0849990696,
-0.1258636415,
-0.4327805042,
0.0435505584,
0.2825655639,
0.3471220434,
0.2078098357,
-0.0001142335,
-0.1720218062,
0.4031154513,
0.091662854,
-0.301463753,
0.3300531507,
-0.0656788573,
-0.4610650837,
0.2376311421,
-0.0499525815,
-0.0254254825,
-0.5238724351,
0.1842403263,
-0.483191967,
0.3442487717,
0.1456301361,
0.2353027016,
0.1066778451,
0.0380544439,
0.0139942206,
0.090373829,
0.3014706373,
-0.0019081384,
0.0512063615,
0.3469893932,
-0.1349480748,
-0.1935211569,
0.4127214551,
-0.1736092567,
-0.1043013036,
0.3182494342,
0.0128090903,
-0.0742242187,
-0.2959925532,
0.3224022686,
0.2155656368,
0.2681916356,
-0.3811314404,
-0.3995742202,
-0.5169015527,
0.0863061249,
-0.2460651547,
-0.0616004243,
0.0412020758,
-0.0013890713,
0.3254365921,
-0.2809000909,
-0.3249801993,
0.1087713912,
-0.1722454876,
0.2617555261,
0.0027786344,
-0.0368904881,
-0.0374572612,
0.3654304147,
-0.1419896185,
0.085422352,
0.2243276834,
-0.1866134107,
-0.1186127514,
-0.4022974968,
-0.0864094645,
0.2720981836,
0.5041311979,
-0.0741478503,
0.2894927263,
-0.6020701528,
0.0333602801,
0.1272957474,
-0.2467955649,
0.2720282078,
0.0735769346,
0.3732914329,
0.5536037683,
0.0765607283,
-0.0217361338,
0.1850699484,
0.0759655833,
0.291380316,
-0.4003844559,
0.6298021674,
-0.0334343538,
0.4733228087,
-0.2939384282,
0.1994023323,
-0.1041652709,
-0.093650043,
-0.0824799985,
0.0064305477,
0.2301988006,
0.2105494887,
-0.1513171643,
0.0179952607,
0.2042636722,
-0.1932064295,
-0.2217479348,
-0.2325342149,
0.2259945571,
0.0028698146,
0.207652837,
0.2626854181,
-0.1796611845,
-0.1444168091,
0.1959082335,
-0.2313893586,
-0.0759729445,
0.1347897053,
-0.0709472299,
-0.0010417663,
0.2148304582,
-0.1866117269,
0.1901024282,
-0.0359653607,
-0.1311171502,
-0.260117054,
-0.0466416106,
-0.0500820801,
-0.3688071966,
-0.1743072122,
0.1516401023,
-0.2515846491,
0.000514891,
-0.0462862924,
0.1082536578,
0.1905439645,
0.2031272501,
0.05815617,
-0.20599401,
-0.2135687917,
-0.0273733884,
0.0847040042,
0.7543079257,
-0.1837235838,
-0.107411027,
-0.321038276,
-0.2445935607,
0.1847119182,
0.2475204319,
0.120059967,
0.3297621608,
-0.2883555293,
0.0214670002,
-0.0718073323,
-0.4368188083,
-0.2153704464,
0.1418337673,
-0.18013978,
0.0469523445,
0.5603653789,
0.1465421468,
0.2135160267,
-0.2289570272,
0.0564916506,
-0.1778759062,
0.0707222149,
-0.1444959939,
-0.1745426655,
-0.1741804183,
-0.0578507558,
0.2597695291,
-0.0377273634,
-0.1251599044,
0.0109421834,
0.0561600439,
0.3013899028,
-0.2052969933,
0.0062511191,
0.3207727671,
0.2069018632,
-0.101997003,
-0.1961971819,
-0.1875395775,
-0.4523918629,
-0.0530888774,
-0.0805826411,
0.0437466502,
-0.3083764017,
-0.5036982298,
-0.0187297016,
-0.0284758992,
-0.1009284854,
-0.1177567244,
0.0384825394,
0.1760459989,
-0.0963705033,
-0.1906674802,
-0.0979925096,
0.3941918314,
-0.1013596579,
0.1274788231,
-0.4881790876,
-0.2294755578,
0.0685022697,
-0.1784319133,
0.4208115935,
0.1858518124,
0.1870515645,
-0.0038345307,
0.2205536067,
0.240707621,
-0.0329660587,
0.7907802463,
0.0644709021,
0.337153554,
-0.0882410929,
0.1161918044,
0.0621469095,
-0.0583437681,
-0.2887875438,
-0.0298369229,
-0.0413099378,
0.4230464995,
0.2049777806,
0.1118842363,
-0.1287044585,
0.0438719913,
-0.1169310361,
-0.1507567465,
-0.0841364712,
-0.5032491088,
0.4043026865,
-0.0699335486,
0.1761558503,
0.2005902082,
-0.0713343471,
0.3584004641,
0.4714875519,
-0.2176749408,
0.2357913852,
0.2873408794,
-0.0208744705,
0.0213780701,
0.1399317086,
0.1880246252,
0.1088554934,
0.2872412205,
0.0148915527,
0.3430371284,
0.3121268749,
-0.0554930158,
0.3003984988,
-0.0318192393,
-0.24436602,
-0.1732457131,
-0.0298623741,
-0.1476179063,
-0.0066399723,
0.0383541062,
-0.4003475606,
0.3763831258,
-0.4999674559,
0.0595464855,
-0.6568228006,
-0.2970498204,
-0.2544571757,
0.1902562231,
0.0392693095,
-0.3844948411,
0.1392337233,
0.0904714167,
-0.1452604383,
0.1740478277,
-0.0440058857,
0.1154809967,
0.0897043645,
0.1575213671,
-0.3321357369,
-0.0229361951,
-0.1803105325,
0.0299766362,
0.2657263577,
-0.0059440508,
0.4097063243,
-0.200605303,
-0.0513241142,
-0.2849324048,
-0.3416579366,
-0.0627894849,
-0.1004975736,
0.1743467152,
0.2368713766,
0.1116311699,
0.0671491325,
0.0330288,
-0.1913241744,
-0.0941476375,
0.0959197953,
-0.0322464593,
-0.2914227247,
0.1275750697,
-0.0760292113,
-0.3276403248,
-0.2210873067,
-0.2438617945,
0.3612038195,
-0.0425977744,
0.1103073508,
0.3691273034,
-0.1180831417,
0.0815079659,
-0.4132012725,
0.4220191836,
-0.0115910526,
-0.2237790376,
0.254720211,
0.099854365,
-0.0389035903,
-0.069369711,
0.0822913349,
-0.3534401357,
-0.2201090157,
-0.5487347841,
-0.2341196984,
-0.4150404632,
-0.093943812,
-0.0649742633,
0.1855561882,
0.2899772823,
0.1923265606,
-0.0875973403,
0.1645504236,
-0.055161722,
-0.0478193685,
-0.3874911666,
0.1405471563,
-0.0966753885,
0.2842618227,
0.197635144,
0.3441007137,
0.5574741364,
0.0424780548,
-0.0754355788,
-0.2141034156,
0.57188344,
-0.2818309069,
-0.3039306998,
-0.1314201355,
0.1156018525,
-0.1821355522,
-0.0945817456,
0.0998168588,
0.3431898355,
-0.0591261014,
-0.1497658789,
0.0663819984,
-0.507879734,
-0.0191526935,
0.2249499559,
-0.0265607797,
-0.1209882945,
0.287861824,
0.0156215429,
-0.2363460511,
0.1701832116,
0.2459602803,
0.1029068083,
0.0323908031,
-0.4344900548,
0.16644907,
-0.7213897705,
0.4466555417,
-0.1041035652,
0.0341231748,
-0.2104398608,
-0.1561365277,
0.0077643506,
0.3723126054,
0.2193948925,
-0.1493702829,
0.2264130414,
-0.0196224824,
0.0373183861,
-0.3274552822,
0.0153567567,
-0.349752605,
0.2822163403,
0.5570355654,
0.1623632312,
-0.1792655885,
-0.1803705096,
0.1766923666,
0.2699890137,
-0.0373566486,
-0.194912672,
-0.1092564464,
-0.1963043362,
-0.2780586779,
-0.0031819195,
0.1013183072,
0.0660796762,
-0.0230641626,
0.0405232757,
0.0406475291,
-0.3104872704,
0.3731944263,
-0.337785989,
0.2481720001,
0.0325403549,
0.2477480769,
0.0192486234,
0.1079975516,
0.2164221555,
0.3639293909,
0.0886838585,
-0.2177182883,
-0.1563560069,
-0.0123327374,
0.2017846107,
0.4631594419,
-0.2448461354,
0.2231055349,
0.181595251,
0.3818923235,
-0.3454277515,
0.0008879974,
0.1865536571,
0.1166727841,
-0.2835582495,
-0.0918461829,
0.2894295156,
0.3648079038,
-0.1354426593,
0.4223407209,
0.2825653255,
-0.4037981331,
0.059598729,
-0.0134286508,
1.0228250027,
-0.0958487988,
0.0820839703,
0.0964182019,
-0.2569853663,
0.4764892161,
0.1928962767,
-0.0476425812,
-0.2166038305,
-0.3129031062,
0.1542138308,
-0.0362485051,
0.1545397043,
-0.3156775534,
0.0204744413,
0.3621279597,
-0.4943403006,
-0.0015034277,
-0.265455544,
0.4618157744,
-0.3782166541,
-0.1574310213,
-0.3005764186,
0.0780270547,
-0.0972104743,
0.0793012977,
-0.0983290672,
-0.0861013681,
0.3254989684,
-0.1586668938,
-0.3358665109,
-0.2780641019,
0.2462989092,
-0.1289517432,
-0.0743103027,
-0.0947829038,
-0.0116024464,
0.0951546282,
0.2536322773,
0.3788900971,
-0.1345602572,
-0.086473763,
-0.1825805157,
0.1769082993,
0.1770613939,
-0.0751286745,
0.2750738561,
0.0701154321,
-0.1578245461,
-0.0040237401,
0.1588582397,
-0.3066465557,
-0.1811253577,
-0.1831431985,
-0.0824747235,
-0.140290454,
0.0432117209,
0.0777519047,
-0.2249748707,
0.0777296573,
0.1457720846,
0.2886357605,
0.0971758068,
0.1494162977,
-0.1460627615,
-0.3254292607,
-0.3056716621,
0.5781705379,
0.0622146018,
-0.0449515358,
0.5925281048,
0.3270189762,
-0.2988739908,
-0.2708673477,
0.087144345,
0.3117559552,
-0.2120979577,
0.0858569145,
0.086473465,
0.1492683589,
0.2055316269,
-0.1347444057,
0.0223294888,
-0.0177576616,
-0.0332336985,
-0.2165284455,
-0.576238811,
0.2602947652,
-0.1569846421,
0.2617209256,
-0.0903238282,
-0.0142185558,
-0.1747015119,
0.1199704036,
-0.32744959,
-0.3087000847,
0.2129468918,
-0.1259735227,
0.3004691601,
-0.056787312,
0.2129829824,
-0.1967763007,
0.0944231153,
0.0855097398,
-0.2549474239,
-0.1676030755,
0.0385935009,
0.0978062376,
-0.4013961554,
0.0355882794,
0.0576628968,
-0.2081136554,
-0.0697719753,
-0.1869594306,
0.1242231876,
0.5811997652,
0.1784980744,
0.2072704732,
-0.1150247827,
-0.0837634802,
0.0948127881,
-0.26711905,
0.0116614532,
0.1067254394,
-0.0739569888,
0.0972133875,
-0.0397531651,
0.0958202183,
-0.0369276106,
0.1255936921,
0.1979067922,
0.0852532685,
0.0882782117,
0.2324174643,
-0.1626404226,
0.5327464342,
0.4566958547,
0.0835585743,
-0.2391477972,
-0.1167794168,
-0.0306131691,
0.1834724247,
-0.1348664463,
-0.070027411,
-0.0358435735,
0.2857694626,
-0.2206102461,
0.4170998335,
-0.1020319313,
-0.1228815913,
0.2743915617,
0.1356434226,
0.0889698789,
-0.25867486,
0.2499245256,
-0.0118152536,
-0.1307218969,
-0.3220934868,
0.4062693119,
0.2319777161,
0.1693903208,
0.3233455718,
-0.2802147865,
0.3817970753,
-0.116732657,
0.2175145745,
-0.0006154031,
-0.2654289007,
0.1276232302,
0.519583106,
-0.1552279443,
-0.0818761438,
-0.0869219452,
0.1188353002,
0.1133862436,
0.0546954535,
-0.2093764544,
0.1882799566,
-0.0151240872,
-0.0388145819,
0.5575551987,
0.1163372248,
-0.040795818,
-0.0006745979,
-0.0272407178,
-0.2548864186,
-0.0662177503,
0.1104630977,
-0.0752440691,
-0.2503231466,
0.3213797808,
-0.1419882029,
0.6471573114,
-0.2481480539,
-0.1184149534,
-0.0314651392,
-0.0207133181,
0.2452709824,
0.248162657,
0.6147252321,
0.1973528415,
0.2949054241,
0.3833201826,
-0.0775427371,
0.0347490609,
-0.0457638986,
0.3528988957,
-0.0421321467,
0.0435266495,
0.0527077876,
0.1348373294,
-0.0971956626,
0.2719749212,
-0.1069202125,
0.1292626262,
-0.4247207344,
0.5578890443,
0.124948062,
-0.1892279387,
-0.1546586901,
0.0768139958,
-0.1417117119,
-0.2965763807,
0.4082414806,
0.1766599715,
0.0283533223,
-0.3209652603,
0.0760010332,
-0.2978374958,
0.1563446969,
0.3977252543,
-0.0668806434,
-0.2303670049,
0.0655094981,
-0.3557759523,
0.0461472943,
-0.0248777606,
-0.1748917103,
-0.0113254059,
-0.048621729,
-0.0889655054,
0.1923787147,
0.3781261742,
-0.3197568655,
0.0550168827,
-0.3638291955,
-0.0571340024,
-0.02377267,
0.0704445988,
-0.0915813223,
0.1109788492,
-0.1278047115,
0.483525902,
-0.5077931881,
0.050892055,
-0.0503234193,
0.0080067217,
0.0118283555,
0.2130626291,
0.2893227339,
0.1443715841,
0.1605489254,
-0.0331976376,
-0.0812244862,
-0.4489465058,
-0.0131015349,
-0.30248034,
0.3007676899,
-0.0522000194,
0.1398363709,
-0.3996767402,
-0.3157457113,
-0.3180856109,
0.4130199552,
-0.0654372573,
-0.2322544456,
-0.1681163013,
0.0659504458,
0.0782137215,
0.0738447607,
0.1094260216,
0.1592605263,
0.0564104766,
0.3194158673,
-0.2590789199,
-0.5449334979,
0.5200136304,
-0.398548156,
-0.0734975114,
0.0006203465,
0.6537176371,
0.2560561299,
-0.346439451,
-0.5534005761,
0.0777347684,
0.1594489813,
-0.1088630557,
0.1241919994,
0.4242928028,
-0.2983648479,
0.13547194,
0.1167238802,
0.3301058412,
0.1954037249,
0.0571989566,
0.0780384094,
-0.3463287354
] |
https://github.com/huggingface/datasets/issues/809 | Add Google Taskmaster dataset | Hey @yjernite. Was going to start working on this but found taskmaster 1,2 & 3 in the datasets library already so think this can be closed now? | ## Adding a Dataset
- **Name:** Taskmaster
- **Description:** A large dataset of task-oriented dialogue with annotated goals (55K dialogues covering entertainment and travel reservations)
- **Paper:** https://arxiv.org/abs/1909.05358
- **Data:** https://github.com/google-research-datasets/Taskmaster
- **Motivation:** One of few annotated datasets of this size for goal-oriented dialogue
Instructions to add a new dataset can be found [here](https://huggingface.co/docs/datasets/share_dataset.html).
| 27 | Add Google Taskmaster dataset
## Adding a Dataset
- **Name:** Taskmaster
- **Description:** A large dataset of task-oriented dialogue with annotated goals (55K dialogues covering entertainment and travel reservations)
- **Paper:** https://arxiv.org/abs/1909.05358
- **Data:** https://github.com/google-research-datasets/Taskmaster
- **Motivation:** One of few annotated datasets of this size for goal-oriented dialogue
Instructions to add a new dataset can be found [here](https://huggingface.co/docs/datasets/share_dataset.html).
Hey @yjernite. Was going to start working on this but found taskmaster 1,2 & 3 in the datasets library already so think this can be closed now? | [
-0.2614889741,
0.0552470088,
-0.1595137715,
0.2156596482,
0.1674284935,
-0.0379509777,
0.3336219788,
0.0670080408,
0.1323192865,
0.1240411177,
-0.2129538953,
0.2662529647,
-0.48644045,
0.528316617,
0.1895258129,
-0.0497275889,
0.0831427202,
-0.0871641785,
0.1714655459,
0.1660842299,
-0.1717768013,
0.0900839344,
-0.1450604051,
0.023762282,
-0.198492825,
-0.2001336366,
0.0279077366,
-0.0120170824,
-0.192409426,
-0.313172102,
-0.0301321633,
0.3213689327,
-0.0966231748,
0.70435673,
-0.0001007273,
-0.3078630567,
0.154203102,
-0.1997465491,
-0.3623099923,
-0.0376221836,
-0.1035004556,
0.0397057757,
-0.1769137532,
-0.0062242597,
-0.2134982347,
-0.1862121671,
0.0373939425,
0.063121438,
0.1247559264,
0.479237169,
0.2868831456,
0.0314497948,
0.0237887204,
-0.3139027357,
-0.0892798454,
0.1673173159,
-0.3250295222,
0.1835336238,
0.2450787276,
0.0302085951,
-0.1205399334,
0.3014369309,
-0.1818486601,
-0.1398771852,
0.2054292858,
-0.2605780959,
-0.1797821522,
-0.2628007233,
0.1561327428,
0.3817878067,
0.578803122,
-0.1634548455,
-0.129009515,
-0.4247137904,
-0.028870007,
-0.1403263658,
-0.1643440723,
0.2142511308,
-0.1045959443,
0.1322000027,
-0.2390736639,
-0.3919073641,
-0.0509703159,
0.0245201644,
0.0453481674,
0.1810946316,
-0.2719652951,
-0.1165954173,
0.1177233011,
-0.2911087871,
-0.1091820747,
0.024692785,
-0.1397090107,
-0.0661734194,
-0.5199308991,
-0.3846783638,
0.3971691728,
0.2486702055,
0.3383378685,
0.1867453456,
0.1201627702,
-0.0119866068,
0.0094059408,
-0.0615287349,
0.4166886508,
0.1292001009,
0.0020517372,
-0.061957527,
0.1798337996,
0.236433059,
0.1209971458,
0.256090343,
-0.172796756,
-0.0051424392,
-0.067267336,
-0.0164519977,
-0.0275287367,
0.1008455157,
-0.3065924942,
0.205840826,
-0.1520988196,
0.04448881,
0.1388907433,
0.2740322053,
-0.2231863886,
0.0721611604,
-0.0989487246,
0.1962261796,
0.0454922915,
-0.008953426,
-0.0678543895,
0.1156095341,
-0.2882879078,
0.3044952154,
0.1619832069,
0.2245103121,
0.0406724885,
-0.1672492474,
-0.0642296672,
-0.0941344649,
0.1624990404,
-0.1709163785,
-0.0306093916,
-0.111882098,
0.0123425946,
-0.3497444689,
-0.2084515691,
0.008968398,
-0.1720943302,
-0.0218164362,
0.1849717051,
-0.2141786516,
-0.1163011268,
0.2941467762,
-0.159095481,
-0.2059999555,
-0.3234017789,
0.7503318787,
-0.0713441819,
-0.0585386977,
0.2222452313,
0.2418697923,
-0.3724503517,
-0.1413064897,
-0.0511276871,
0.3489099443,
0.0621128231,
-0.0115335435,
-0.1397536099,
-0.1462150812,
-0.4228975177,
0.3107079268,
0.0636392087,
0.4232718349,
-0.1566382945,
0.0577301681,
-0.0616491884,
-0.2638651431,
-0.2786200643,
0.17033723,
-0.5045645237,
0.0620138422,
0.2612504661,
0.1390811503,
0.4737358391,
-0.4069030583,
0.5480498672,
0.235035181,
-0.1516468525,
0.0258383378,
-0.1084816307,
-0.3002910614,
0.0096797161,
0.3743724525,
0.1809773445,
-0.2353052497,
-0.1113970652,
-0.1721188724,
0.0077166092,
-0.1511418074,
0.0177357495,
0.1571630388,
0.3781968951,
0.144808054,
-0.0746476352,
-0.3520781398,
-0.4401955605,
-0.2714779079,
0.0580167398,
0.1237807646,
0.2761166096,
-0.4302571714,
-0.1637155563,
-0.0106255859,
-0.0130669381,
-0.1467054337,
0.2628628016,
0.1287086755,
0.0623060614,
-0.1343759596,
-0.1763132513,
0.5124227405,
-0.1791612804,
-0.0888973176,
0.1272494495,
0.0461915359,
0.0050451458,
-0.0523159243,
0.2747650743,
0.4075894058,
-0.0309083797,
0.1027135551,
0.2287936211,
0.1635102183,
-0.0730130449,
0.250826478,
0.2525399625,
0.4002341032,
-0.0040866043,
-0.2029565871,
-0.0149968788,
0.2142478824,
0.0235823132,
-0.0960368216,
-0.2542680204,
0.268188715,
0.2542665005,
0.0910765976,
0.082185775,
0.1735060215,
0.1134503856,
-0.2093386352,
-0.183289811,
0.0298005641,
0.187393114,
0.2138006389,
-0.0630107149,
0.1144268811,
-0.6919631958,
0.1650876552,
0.3536657691,
-0.0179387368,
0.4091231525,
0.1830296367,
-0.1275766343,
-0.30613029,
-0.0035227034,
-0.3534866571,
0.1044597477,
0.4246431887,
0.0630820692,
-0.0029151849,
0.2378720939,
-0.166538313,
0.1324299574,
0.0892467052,
0.0002087504,
0.2678323686,
0.284003377,
-0.0470412187,
-0.2962803841,
-0.2191296965,
-0.0053093359,
0.0315588117,
-0.1969404221,
-0.1997756362,
0.1438697577,
-0.281778276,
-0.0144886412,
-0.0204760097,
-0.0104613118,
-0.0066532902,
0.2491913587,
0.1484096646,
-0.062519908,
0.1598894894,
0.2966146469,
0.5640655756,
-0.238078922,
0.0970343202,
-0.1008224562,
-0.5919599533,
0.0034707561,
0.2379781902,
0.1573928148,
-0.2912110388,
0.5987551808,
-0.0476845503,
0.1234841719,
-0.5213546157,
-0.4303773642,
0.2126309276,
-0.313664943,
0.2960092127,
0.163302213,
0.0663066283,
-0.0380842127,
0.0635017753,
-0.2227795869,
0.1621681452,
-0.06548962,
-0.2262500226,
-0.1913326085,
0.0895261094,
-0.015522778,
-0.3140386045,
-0.0792754814,
-0.6464052796,
0.5182400346,
-0.1646693647,
0.1542175412,
0.3452109098,
-0.1528857648,
0.1042079926,
-0.112969704,
0.0673099309,
-0.3176526427,
0.1281556785,
0.1276369989,
-0.2890617549,
-0.1419184953,
-0.2176159322,
-0.2709982395,
0.1267266572,
-0.0954336375,
-0.3981799483,
0.1359137297,
-0.0661588758,
0.0953586996,
-0.0531420223,
-0.220790267,
0.2568975687,
-0.0169484429,
-0.2660769224,
-0.0653651878,
-0.3890550733,
0.1412204206,
0.2797256112,
0.067974031,
0.068081364,
0.0780955404,
0.0350671634,
0.2983909547,
-0.0397372767,
0.2279607356,
0.1530382186,
0.0089080259,
0.3236819208,
-0.0899432376,
-0.2734912634,
0.5499247313,
0.2022094131,
-0.0500393547,
0.4199291766,
0.0643063188,
-0.1487183124,
-0.0776424631,
-0.1573591828,
-0.077662617,
-0.1441313624,
0.1170258448,
-0.1653678417,
0.231035918,
-0.2109772116,
-0.1682573259,
-0.2618765235,
-0.0410389043,
-0.0105373971,
0.1600435972,
0.0578892864,
-0.2461483479,
-0.1157540232,
0.3369306624,
-0.3425081372,
0.1058337688,
-0.0220842902,
-0.0903129727,
-0.262933135,
0.1058386117,
-0.1920101643,
0.0367215201,
0.4593256712,
-0.0843131766,
-0.2236307859,
-0.0058128089,
0.320274204,
-0.0442818739,
0.3011354208,
0.013720274,
0.0952120274,
0.2548999488,
0.6941003799,
-0.3379405737,
0.0444247499,
0.416678369,
-0.0531415343,
0.1003897786,
-0.0756770372,
0.0354474485,
-0.2737956643,
-0.0657206103,
0.4045337737,
0.1714751422,
0.1080610156,
0.4278352857,
-0.128521204,
0.1964717209,
-0.0749865547,
0.2083277106,
-0.281450808,
0.0158277228,
0.2705779672,
0.1865023524,
-0.1502010822,
-0.0852076039,
0.2100271434,
0.3960528672,
0.1659187973,
-0.1972726285,
0.1441335976,
-0.2553132176,
0.3726992905,
0.2760239542,
0.2314087749,
0.1951171756,
-0.0132768862,
0.4930599332,
-0.2513540685,
0.1069019884,
0.091018334,
-0.0045255311,
-0.517916441,
-0.4419855773,
0.1323386431,
0.1544008702,
-0.0653378665,
0.4278349578,
-0.0870079398,
-0.1938180178,
-0.2065759152,
0.0495645106,
0.9224184752,
0.004204087,
0.211958304,
0.4051852226,
-0.5795307755,
0.0694967359,
-0.2566626668,
0.1229210049,
-0.0451141335,
0.2835308909,
0.0615989715,
0.0527592599,
-0.1864239872,
0.1910011768,
-0.4328397512,
0.0930373222,
0.0615274757,
0.1465492249,
0.1344946623,
0.4971318245,
-0.1569571346,
-0.3890838623,
-0.2649883926,
0.2539275885,
-0.1405626982,
-0.0713889077,
-0.0638073012,
-0.1614771187,
0.0310059711,
-0.05307924,
-0.5341100097,
-0.1280453801,
-0.2671847343,
-0.1989196539,
0.0845621377,
-0.5190027952,
0.2743313313,
-0.1211944818,
0.0168520659,
0.1504996419,
-0.3063870966,
0.1029705331,
0.0461024232,
0.0080744959,
-0.0130422153,
-0.0769604072,
0.4476044178,
-0.0306448005,
-0.0582414865,
0.0667871311,
0.2132111788,
-0.1285063028,
-0.5471848249,
0.0972175747,
0.0421946049,
-0.1174713671,
0.0141498744,
0.1093633473,
-0.1167789102,
-0.2550390661,
0.2261781245,
0.112906903,
0.0214297101,
-0.0700397342,
0.0169776492,
-0.1325224638,
-0.2255843878,
0.056398131,
0.1370145082,
-0.1952794492,
0.1854112446,
0.4506287575,
-0.1530921906,
-0.5877164602,
0.0059719011,
0.2940580845,
0.0000028983,
0.269641459,
0.091422841,
-0.2956958413,
0.0464397147,
0.3118738532,
0.0237879045,
-0.0398305841,
0.0400150567,
-0.0107820556,
-0.44494012,
0.2384040058,
-0.3241705298,
0.1604293585,
-0.1441946626,
-0.0213199928,
0.2203154862,
0.0423804373,
-0.4860436618,
-0.0637270883,
-0.4109107554,
0.0673709586,
0.3359673321,
-0.1816317141,
-0.0566218272,
0.0057616159,
0.2004770637,
-0.1914740801,
-0.2832295299,
-0.3187802136,
-0.1769900471,
0.0831012502,
0.0346601531,
0.2209994793,
0.0055383593,
0.0053612441,
-0.3474760056,
-0.0585804284,
0.3122031987,
0.3366636336,
-0.0110063292,
-0.1279552877,
-0.3325208426,
-0.0652845204,
0.2533951998,
-0.1236494184,
0.1806527972,
0.1077035293,
0.0346107595,
-0.0085132355,
0.2483480126,
-0.0588273667,
-0.1101662815,
0.4326217771,
0.4296228588,
-0.0656217486,
0.1655568182,
0.0395488665,
-0.0317776911,
0.2534836233,
0.1656468809,
-0.0127337538,
-0.0342914276,
0.0483633429,
0.1087710187,
0.3111405671,
-0.0967460275,
0.2382245064,
0.1319252253,
-0.3640675545,
0.2468381971,
0.1856055856,
-0.0028978139,
0.2447802126,
0.087536037,
0.1429650486,
0.0931357592,
0.0603964925,
0.1990290731,
-0.1532161683,
0.0971815735,
-0.0641131848,
0.5701426864,
0.1783618629,
0.3212884665,
0.0907507613,
0.2958140969,
0.246468097,
0.0606441461,
0.1194169819,
0.4031066597,
-0.0200181603,
-0.1044333875,
-0.1590248793,
-0.1592031568,
-0.048653163,
-0.0868868381,
0.5234047771,
-0.2786830068,
0.1393798888,
-0.0019495413,
0.0124192666,
-0.2311099172,
0.1900733411,
-0.0240692981,
-0.2697420418,
-0.1429319084,
0.0223108754,
0.0209666193,
-0.1166476831,
0.1573183239,
-0.0206567496,
0.0962160379,
-0.2094018459,
0.1180358082,
0.2326322943,
0.1462398469,
-0.3240094781,
0.0697671771,
-0.2487802804,
0.130309552,
0.0985717699,
0.5581967235,
0.1926462948,
0.1127709299,
-0.331320703,
0.058808092,
-0.2364316434,
-0.1330974102,
-0.0621243119,
0.1594277173,
0.2089762986,
0.067075491,
0.2844003141,
0.2394437492,
-0.2812749743,
0.2649779618,
0.2016083896,
-0.4137316048,
-0.358422935,
-0.0328577012,
-0.0273716599,
-0.257031709,
-0.2707477212,
-0.0777751282,
-0.477409929,
-0.1650237441,
0.1326692998,
-0.0494085848,
0.0154930577,
-0.3788841963,
0.1565181911,
-0.1011173949,
0.3919011056,
0.3475650549,
0.4866903722,
-0.0984482914,
-0.1428847909,
-0.3140198588,
0.1523293853,
-0.0063520893,
-0.1410081536,
-0.0102800298,
-0.0432211608,
0.0756920427,
0.3448821306,
-0.1129555255,
-0.0117367245,
-0.0404543206,
-0.0593643077,
-0.3465918601,
0.2285217047,
0.3738495111,
0.2461615205,
0.1255488247,
-0.0747677535,
-0.0023519006,
0.0123155601,
0.1539683044,
-0.2139322907,
-0.0713592321,
0.0829254091,
-0.169450134,
0.2467193007,
-0.28515625,
0.3618656695,
-0.1637967229,
-0.1217431575,
-0.1098739207,
0.1035011783,
-0.1392454058,
-0.1859432459,
0.1150814742,
0.3691795468,
-0.1166031137,
-0.057677757,
-0.0611319877,
-0.0294612907,
-0.0412595868,
0.2865527272,
0.0700431019,
0.1787758172,
0.0487965867,
-0.0715589672,
-0.0751324371,
0.1126110554,
-0.0251287818,
-0.0660498664,
-0.0930083543,
-0.3622233868,
0.2840492725,
-0.0295285657,
-0.4029163718,
-0.1293283254,
0.2246694863,
0.048118677,
-0.1693310142,
-0.5357698202,
0.1112418771,
0.2190645933,
0.2421080023,
0.0319208354,
0.3021370173,
-0.1388210654,
-0.0703434944,
-0.0344766192,
0.0103811063,
0.0269465372,
0.1642327458,
-0.2071320564,
-0.3559955359
] |
https://github.com/huggingface/datasets/issues/807 | load_dataset for LOCAL CSV files report CONNECTION ERROR | Hi !
The url works on my side.
Is the url working in your navigator ?
Are you connected to internet ? Does your network block access to `raw.githubusercontent.com` ? | ## load_dataset for LOCAL CSV files report CONNECTION ERROR
- **Description:**
A local demo csv file:
```
import pandas as pd
import numpy as np
from datasets import load_dataset
import torch
import transformers
df = pd.DataFrame(np.arange(1200).reshape(300,4))
df.to_csv('test.csv', header=False, index=False)
print('datasets version: ', datasets.__version__)
print('pytorch version: ', torch.__version__)
print('transformers version: ', transformers.__version__)
# output:
datasets version: 1.1.2
pytorch version: 1.5.0
transformers version: 3.2.0
```
when I load data through `dataset`:
```
dataset = load_dataset('csv', data_files='./test.csv', delimiter=',', autogenerate_column_names=False)
```
Error infos:
```
ConnectionError Traceback (most recent call last)
<ipython-input-17-bbdadb9a0c78> in <module>
----> 1 dataset = load_dataset('csv', data_files='./test.csv', delimiter=',', autogenerate_column_names=False)
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, save_infos, script_version, **config_kwargs)
588 # Download/copy dataset processing script
589 module_path, hash = prepare_module(
--> 590 path, script_version=script_version, download_config=download_config, download_mode=download_mode, dataset=True
591 )
592
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/load.py in prepare_module(path, script_version, download_config, download_mode, dataset, force_local_path, **download_kwargs)
266 file_path = hf_github_url(path=path, name=name, dataset=dataset, version=script_version)
267 try:
--> 268 local_path = cached_path(file_path, download_config=download_config)
269 except FileNotFoundError:
270 if script_version is not None:
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/utils/file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs)
306 user_agent=download_config.user_agent,
307 local_files_only=download_config.local_files_only,
--> 308 use_etag=download_config.use_etag,
309 )
310 elif os.path.exists(url_or_filename):
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/utils/file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag)
473 elif response is not None and response.status_code == 404:
474 raise FileNotFoundError("Couldn't find file at {}".format(url))
--> 475 raise ConnectionError("Couldn't reach {}".format(url))
476
477 # Try a second time
ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py
```
And I try to connect to the site with requests:
```
import requests
requests.head("https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py")
```
Similarly Error occurs:
```
---------------------------------------------------------------------------
ConnectionRefusedError Traceback (most recent call last)
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in _new_conn(self)
159 conn = connection.create_connection(
--> 160 (self._dns_host, self.port), self.timeout, **extra_kw
161 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options)
83 if err is not None:
---> 84 raise err
85
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options)
73 sock.bind(source_address)
---> 74 sock.connect(sa)
75 return sock
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
NewConnectionError Traceback (most recent call last)
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
676 headers=headers,
--> 677 chunked=chunked,
678 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw)
380 try:
--> 381 self._validate_conn(conn)
382 except (SocketTimeout, BaseSSLError) as e:
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in _validate_conn(self, conn)
975 if not getattr(conn, "sock", None): # AppEngine might not have `.sock`
--> 976 conn.connect()
977
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in connect(self)
307 # Add certificate verification
--> 308 conn = self._new_conn()
309 hostname = self.host
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in _new_conn(self)
171 raise NewConnectionError(
--> 172 self, "Failed to establish a new connection: %s" % e
173 )
NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
MaxRetryError Traceback (most recent call last)
~/.conda/envs/py36/lib/python3.6/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
448 retries=self.max_retries,
--> 449 timeout=timeout
450 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
724 retries = retries.increment(
--> 725 method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
726 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/retry.py in increment(self, method, url, response, error, _pool, _stacktrace)
438 if new_retry.is_exhausted():
--> 439 raise MaxRetryError(_pool, url, error or ResponseError(cause))
440
MaxRetryError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/1.1.2/datasets/csv/csv.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused',))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last)
<ipython-input-20-18cc3eb4a049> in <module>
1 import requests
2
----> 3 requests.head("https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py")
~/.conda/envs/py36/lib/python3.6/site-packages/requests/api.py in head(url, **kwargs)
102
103 kwargs.setdefault('allow_redirects', False)
--> 104 return request('head', url, **kwargs)
105
106
~/.conda/envs/py36/lib/python3.6/site-packages/requests/api.py in request(method, url, **kwargs)
59 # cases, and look like a memory leak in others.
60 with sessions.Session() as session:
---> 61 return session.request(method=method, url=url, **kwargs)
62
63
~/.conda/envs/py36/lib/python3.6/site-packages/requests/sessions.py in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json)
528 }
529 send_kwargs.update(settings)
--> 530 resp = self.send(prep, **send_kwargs)
531
532 return resp
~/.conda/envs/py36/lib/python3.6/site-packages/requests/sessions.py in send(self, request, **kwargs)
641
642 # Send the request
--> 643 r = adapter.send(request, **kwargs)
644
645 # Total elapsed time of the request (approximately)
~/.conda/envs/py36/lib/python3.6/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
514 raise SSLError(e, request=request)
515
--> 516 raise ConnectionError(e, request=request)
517
518 except ClosedPoolError as e:
ConnectionError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/1.1.2/datasets/csv/csv.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused',))
``` | 30 | load_dataset for LOCAL CSV files report CONNECTION ERROR
## load_dataset for LOCAL CSV files report CONNECTION ERROR
- **Description:**
A local demo csv file:
```
import pandas as pd
import numpy as np
from datasets import load_dataset
import torch
import transformers
df = pd.DataFrame(np.arange(1200).reshape(300,4))
df.to_csv('test.csv', header=False, index=False)
print('datasets version: ', datasets.__version__)
print('pytorch version: ', torch.__version__)
print('transformers version: ', transformers.__version__)
# output:
datasets version: 1.1.2
pytorch version: 1.5.0
transformers version: 3.2.0
```
when I load data through `dataset`:
```
dataset = load_dataset('csv', data_files='./test.csv', delimiter=',', autogenerate_column_names=False)
```
Error infos:
```
ConnectionError Traceback (most recent call last)
<ipython-input-17-bbdadb9a0c78> in <module>
----> 1 dataset = load_dataset('csv', data_files='./test.csv', delimiter=',', autogenerate_column_names=False)
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, save_infos, script_version, **config_kwargs)
588 # Download/copy dataset processing script
589 module_path, hash = prepare_module(
--> 590 path, script_version=script_version, download_config=download_config, download_mode=download_mode, dataset=True
591 )
592
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/load.py in prepare_module(path, script_version, download_config, download_mode, dataset, force_local_path, **download_kwargs)
266 file_path = hf_github_url(path=path, name=name, dataset=dataset, version=script_version)
267 try:
--> 268 local_path = cached_path(file_path, download_config=download_config)
269 except FileNotFoundError:
270 if script_version is not None:
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/utils/file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs)
306 user_agent=download_config.user_agent,
307 local_files_only=download_config.local_files_only,
--> 308 use_etag=download_config.use_etag,
309 )
310 elif os.path.exists(url_or_filename):
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/utils/file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag)
473 elif response is not None and response.status_code == 404:
474 raise FileNotFoundError("Couldn't find file at {}".format(url))
--> 475 raise ConnectionError("Couldn't reach {}".format(url))
476
477 # Try a second time
ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py
```
And I try to connect to the site with requests:
```
import requests
requests.head("https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py")
```
Similarly Error occurs:
```
---------------------------------------------------------------------------
ConnectionRefusedError Traceback (most recent call last)
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in _new_conn(self)
159 conn = connection.create_connection(
--> 160 (self._dns_host, self.port), self.timeout, **extra_kw
161 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options)
83 if err is not None:
---> 84 raise err
85
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options)
73 sock.bind(source_address)
---> 74 sock.connect(sa)
75 return sock
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
NewConnectionError Traceback (most recent call last)
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
676 headers=headers,
--> 677 chunked=chunked,
678 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw)
380 try:
--> 381 self._validate_conn(conn)
382 except (SocketTimeout, BaseSSLError) as e:
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in _validate_conn(self, conn)
975 if not getattr(conn, "sock", None): # AppEngine might not have `.sock`
--> 976 conn.connect()
977
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in connect(self)
307 # Add certificate verification
--> 308 conn = self._new_conn()
309 hostname = self.host
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in _new_conn(self)
171 raise NewConnectionError(
--> 172 self, "Failed to establish a new connection: %s" % e
173 )
NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
MaxRetryError Traceback (most recent call last)
~/.conda/envs/py36/lib/python3.6/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
448 retries=self.max_retries,
--> 449 timeout=timeout
450 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
724 retries = retries.increment(
--> 725 method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
726 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/retry.py in increment(self, method, url, response, error, _pool, _stacktrace)
438 if new_retry.is_exhausted():
--> 439 raise MaxRetryError(_pool, url, error or ResponseError(cause))
440
MaxRetryError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/1.1.2/datasets/csv/csv.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused',))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last)
<ipython-input-20-18cc3eb4a049> in <module>
1 import requests
2
----> 3 requests.head("https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py")
~/.conda/envs/py36/lib/python3.6/site-packages/requests/api.py in head(url, **kwargs)
102
103 kwargs.setdefault('allow_redirects', False)
--> 104 return request('head', url, **kwargs)
105
106
~/.conda/envs/py36/lib/python3.6/site-packages/requests/api.py in request(method, url, **kwargs)
59 # cases, and look like a memory leak in others.
60 with sessions.Session() as session:
---> 61 return session.request(method=method, url=url, **kwargs)
62
63
~/.conda/envs/py36/lib/python3.6/site-packages/requests/sessions.py in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json)
528 }
529 send_kwargs.update(settings)
--> 530 resp = self.send(prep, **send_kwargs)
531
532 return resp
~/.conda/envs/py36/lib/python3.6/site-packages/requests/sessions.py in send(self, request, **kwargs)
641
642 # Send the request
--> 643 r = adapter.send(request, **kwargs)
644
645 # Total elapsed time of the request (approximately)
~/.conda/envs/py36/lib/python3.6/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
514 raise SSLError(e, request=request)
515
--> 516 raise ConnectionError(e, request=request)
517
518 except ClosedPoolError as e:
ConnectionError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/1.1.2/datasets/csv/csv.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused',))
```
Hi !
The url works on my side.
Is the url working in your navigator ?
Are you connected to internet ? Does your network block access to `raw.githubusercontent.com` ? | [
-0.3247123361,
0.0161048025,
-0.1088049263,
0.0260047894,
0.2420428693,
0.0198688582,
0.7173693776,
0.3756365776,
0.2509220243,
0.1337040812,
-0.0342322588,
0.1497046649,
0.0797995478,
0.0211835206,
-0.1269314885,
-0.1772823036,
-0.1271574795,
0.2743315697,
-0.4187992811,
0.0144972131,
-0.1248852834,
-0.0023575779,
-0.0349383801,
0.1405337155,
-0.2024639249,
-0.0062389812,
0.1157819852,
0.131277144,
-0.0276921988,
-0.4939195514,
0.3365219831,
0.0402497724,
0.3237728179,
0.3632174134,
-0.0001060309,
0.2135235369,
0.2517406642,
-0.0288666114,
-0.427908659,
-0.4611107707,
-0.1089925617,
-0.3690281808,
0.4228134155,
-0.3986178339,
0.0005742982,
-0.1198976636,
-0.0673584267,
-0.3161988854,
0.4313886464,
0.4785012901,
0.2786397934,
0.4154754877,
0.0165832266,
-0.1110344827,
0.0718219727,
0.0555340014,
-0.0624924079,
0.4061278105,
0.0516242273,
-0.1849910319,
-0.2426784933,
0.0846121535,
-0.1926986128,
0.3955325186,
0.1906039417,
0.0830964446,
0.0377706066,
-0.1966335624,
0.1252264678,
0.1076833904,
0.4764898717,
-0.2314555347,
-0.2321468741,
-0.0584993213,
-0.1994820088,
-0.1881569028,
0.1660739779,
0.0867307782,
-0.1683378518,
0.1474406272,
-0.2638413608,
0.0990802199,
-0.3907521665,
0.1494553834,
-0.1105122343,
0.1547572613,
-0.067184031,
0.1947449744,
0.1582646817,
-0.0564834513,
0.4036886692,
-0.2070344985,
0.1916096658,
0.127662763,
-0.3377638459,
0.1311572939,
0.1394049823,
-0.3861347139,
-0.1064568609,
0.0498940982,
-0.0361736454,
-0.0535907038,
0.1335503757,
0.2916468084,
0.1983622611,
0.0791433603,
-0.1308654249,
0.2947738469,
0.2687247992,
0.1325624138,
0.0422616452,
-0.06248492,
-0.0800575614,
-0.3558064699,
0.1634978503,
0.1999797225,
0.4894589186,
-0.0474283397,
-0.2816002369,
0.1326405704,
0.0129100829,
-0.1073728949,
0.018969439,
0.3589312732,
-0.08796826,
0.2043160647,
0.0424529389,
0.0136887487,
-0.2235276103,
0.0845433101,
-0.2120841295,
0.037955571,
-0.1193307936,
-0.0695322379,
0.381331414,
-0.0790899321,
0.0466330424,
-0.0146685168,
0.0989308655,
0.0503489971,
0.2611701488,
-0.2932828665,
0.0491828322,
0.4129322469,
0.0561540276,
0.2478839457,
0.4095255435,
-0.1842339784,
-0.1060606241,
0.0865908191,
-0.2045432031,
-0.3371694088,
-0.338547945,
0.2402115613,
0.0368899927,
0.1089415699,
-0.0184666477,
-0.3302740753,
0.0986591503,
-0.2747160792,
-0.1541593969,
-0.3237558901,
-0.0389049351,
-0.2159914374,
0.3081871867,
0.6463353038,
-0.4303182662,
0.042956233,
0.0566365495,
-0.1299163401,
0.141459927,
0.2508479953,
-0.3076962531,
0.0851257443,
-0.2284610868,
-0.0966765881,
0.2314823866,
-0.3093753457,
-0.3032815456,
0.5005193353,
-0.2373454273,
-0.0729435831,
0.2169772089,
0.0126163065,
0.2910564542,
0.1858280897,
0.2615151703,
0.300047636,
-0.1007599086,
0.1175526902,
-0.079923287,
-0.2225607783,
0.1973580718,
0.1164560169,
0.0098164212,
0.2231839895,
0.3249673545,
-0.2579790056,
0.1741140485,
-0.0768724382,
0.1447919607,
0.1345078796,
0.173971951,
0.0419842787,
-0.0606002249,
-0.0216644071,
-0.5085176229,
0.1381557584,
0.131092459,
0.0903008729,
-0.4376564324,
-0.016269058,
-0.3771231472,
0.005172275,
-0.2671601176,
-0.0302422959,
0.2100170702,
0.3415310383,
-0.0191594549,
-0.0523176938,
-0.0488571003,
0.3256911337,
-0.1166131869,
-0.0192559678,
-0.4156304598,
0.3395552933,
-0.3544685841,
-0.0690030828,
0.0523540229,
-0.0314199738,
0.1626497507,
-0.1825554669,
-0.2719685137,
0.3561236858,
-0.0955852717,
0.2182244062,
0.0170495138,
-0.0044383109,
0.0526204929,
-0.2450992167,
0.032377407,
0.0311137661,
0.1533316225,
0.0431828797,
-0.2613136172,
0.3525987267,
-0.0953490734,
0.1633696854,
0.0506538972,
0.0704122409,
0.451421231,
0.0119943395,
-0.1140477806,
-0.1085088775,
0.1054949313,
0.2389211655,
0.2262360454,
0.0491033345,
-0.180272162,
-0.1886239499,
0.2018590122,
-0.1532274336,
0.0116078872,
0.0923531502,
-0.1086221337,
-0.0442814827,
0.214684695,
0.2319190353,
0.5149136186,
0.1026021913,
-0.1526021361,
-0.0183212329,
-0.050323505,
-0.133823052,
0.1102776229,
-0.0386922359,
0.0448775776,
0.3272632957,
0.0759821832,
0.106980443,
-0.2410075068,
-0.3630866408,
-0.0419490263,
0.2638893127,
-0.3493006825,
0.2479265928,
-0.1645682454,
0.0182820931,
-0.2659018636,
-0.0503299907,
-0.1105000228,
-0.1780741811,
-0.3695808351,
0.3607574999,
-0.0763825253,
0.2372517139,
-0.279001534,
-0.0516412556,
0.3879841864,
-0.4498327374,
-0.073059842,
-0.2081663162,
-0.160145998,
0.0924806669,
0.0935097486,
-0.1568923295,
0.3031651378,
-0.0989922062,
0.0205263309,
-0.161062479,
-0.0238345936,
-0.0821167827,
0.0125280395,
0.1283057779,
0.1878543645,
0.4475226104,
0.1206025183,
-0.5035607815,
0.3184548914,
-0.0834971517,
0.0481938496,
0.1964567006,
-0.0537021868,
-0.2032558173,
0.0006877333,
-0.6345353127,
-0.5991460681,
-0.4698643684,
0.1375345141,
0.0665088445,
0.213231653,
0.2955248356,
0.2269019037,
0.2099234164,
0.0866583288,
0.0757487267,
-0.0596129894,
-0.1591840684,
0.3499987423,
-0.2349600941,
-0.3570281863,
-0.1133958623,
-0.1152547151,
0.1219444722,
0.1364866644,
-0.4447760582,
-0.0236160941,
-0.1746836454,
0.3565402031,
-0.0467240848,
0.0517050326,
0.4662777483,
0.1686569005,
-0.1706289053,
0.1126607358,
-0.2441870868,
-0.1408114135,
0.19425641,
0.0843702108,
0.0044111069,
0.4593693316,
-0.1589592993,
0.6532874107,
-0.0798087344,
-0.1897099614,
0.2884310782,
-0.1362252682,
0.342966795,
-0.1845075488,
-0.6308504343,
-0.0917782113,
-0.3062296808,
-0.2018837184,
0.0107531957,
-0.229728967,
-0.2305865884,
-0.3641995788,
0.0186994895,
-0.3049328327,
-0.3137823939,
0.1363258511,
-0.1196977943,
0.3635419011,
0.0468817055,
-0.0130359977,
-0.2529371083,
-0.0600581095,
-0.2486276627,
0.3659865558,
-0.0062222742,
-0.093166098,
-0.2668783665,
0.1069132537,
-0.2810814977,
0.2432363331,
0.0800496489,
0.5622869134,
-0.2027089596,
-0.1867957264,
-0.037793126,
0.0581579693,
0.4028223753,
0.0884442106,
0.0874636769,
0.2563878894,
-0.0515907966,
-0.3120605648,
-0.0862112939,
-0.088684231,
0.22119537,
0.2276991457,
0.4607944787,
0.0591155738,
-0.1269775033,
0.3169067204,
0.2359133363,
-0.0872560292,
-0.179053694,
-0.2838753462,
-0.0508109294,
-0.3215521276,
-0.1053740755,
-0.1118416339,
0.1790323257,
-0.1732904613,
-0.1281273663,
0.0737239197,
-0.1710193753,
0.0011047982,
0.1193198115,
-0.1456996202,
0.0959774703,
0.2179177999,
0.1906980872,
0.2628869116,
0.2021608949,
0.4429311454,
-0.2094502896,
-0.5551644564,
0.1772617847,
-0.0145552345,
0.107831195,
0.1052372754,
-0.1369357109,
-0.148758322,
0.1752744019,
0.1808559597,
-0.1539574564,
0.1938526928,
0.2498670667,
-0.1166541502,
-0.3529872894,
-0.4148067832,
0.1314439476,
-0.2005928159,
-0.0967517868,
0.1951030493,
-0.3385472894,
-0.0635158122,
0.2595237494,
-0.1583104432,
0.669519186,
-0.1268932223,
0.1809172332,
0.1628528982,
-0.1345140785,
0.4483828843,
-0.1574921161,
0.1192622781,
-0.3441150188,
-0.2360043377,
-0.0994973779,
-0.2498577386,
0.321854651,
0.0098682111,
-0.096961394,
0.2364210784,
-0.0614167824,
0.2813481688,
0.0652795136,
0.2203808874,
0.0612793863,
-0.2302691191,
-0.1830086559,
0.1901202649,
-0.0931364298,
0.4134555459,
0.0299710073,
-0.1137414426,
-0.0124851018,
-0.3615665138,
-0.0431396291,
0.0593215376,
-0.2830665112,
0.4136628211,
0.0488294065,
-0.3536546826,
-0.0551412143,
0.1381697357,
-0.1533754468,
0.078329742,
-0.1498510987,
-0.0794562995,
-0.108091481,
-0.0611959063,
-0.116901055,
-0.0029087029,
0.1473996192,
0.0824842453,
-0.2685492039,
0.275572449,
-0.1178315729,
-0.3403717875,
0.1828362346,
0.2773402333,
0.2622920275,
-0.5065496564,
-0.1399479955,
-0.3102686107,
-0.1075607389,
-0.1293205172,
0.200531885,
-0.1123934239,
0.0256724395,
0.0055954307,
-0.0878890529,
-0.3105520308,
-0.0419632941,
0.6014829874,
-0.0718145296,
-0.0663498938,
0.3271545768,
0.0624913573,
-0.1843171269,
-0.2428676486,
0.1990405321,
-0.004432261,
-0.467797786,
-0.093008019,
0.068779856,
0.0586961806,
-0.1138907149,
0.071775943,
0.2206759751,
0.1031342298,
0.0357835889,
-0.4803102314,
-0.5924566984,
-0.0901233926,
-0.0120881088,
0.1493127197,
0.4447920024,
0.223069638,
0.0557790995,
0.1090676039,
-0.3599543273,
-0.0675610825,
-0.1895692647,
0.1576154232,
0.5117646456,
-0.2647096217,
0.1770651639,
-0.1552707255,
0.2409110814,
-0.1429233551,
-0.1262868792,
-0.3133457601,
0.0018987805,
0.0618450418,
0.0202442408,
-0.3433458507,
-0.3376549482,
-0.2684758604,
-0.0148098581,
-0.0740636885,
-0.000341475,
0.2130772769,
-0.1187316179,
0.2121611238,
-0.2453934252,
0.0810143799,
-0.1340084523,
0.1350560635,
-0.2799660563,
0.2402765006,
0.027082596,
0.2827393115,
-0.0718642697,
-0.0194424465,
-0.4871895313,
-0.0540026613,
0.0109265707,
0.0986868292,
0.3070953488,
-0.1801374257,
-0.137321189,
0.0053288788,
0.399123311,
0.2806530297,
-0.2605661452,
0.0164486319,
0.1206056252,
0.3077167869,
-0.2169091702,
-0.112417683,
0.1596364826,
0.0255127065,
0.2056991607,
-0.0233399421,
0.0817392692,
-0.194660157,
0.2731686532,
0.0354822651,
0.4447304606,
-0.0881809145,
0.2025936991,
0.6118389368,
0.0197392628,
-0.002939878,
0.161792174,
0.1720684916,
0.1941982806,
0.427090466,
-0.1792922616,
-0.0874078274,
-0.0603711121,
0.1699081361,
-0.178252995,
-0.473313868,
0.143280521,
-0.1597067267,
-0.2988284528,
-0.0670231879,
0.0496744998,
0.2803229094,
-0.2598398924,
0.0749867558,
-0.1056552231,
0.1608564854,
-0.0922898352,
-0.1408544183,
0.0897712409,
-0.073097147,
-0.1290262192,
-0.0425560437,
0.1132717133,
0.0838868096,
0.2775799334,
0.2630509138,
-0.0881880075,
-0.2006155401,
0.1970884651,
0.2208368778,
-0.0557489768,
-0.1138676479,
0.1557370722,
0.3445363343,
0.1739408225,
-0.1311291903,
0.1761197597,
0.6315096021,
0.3470623195,
0.0025092885,
0.2030486763,
-0.1124483719,
-0.1424657851,
-0.0864443034,
0.0251590386,
-0.0924743563,
0.2070284039,
0.3563941717,
0.321375519,
-0.1901988536,
0.3339132071,
-0.0463945605,
-0.1453464627,
-0.1938876212,
0.3707818985,
0.0753011703,
-0.2841670513,
-0.1254213005,
0.0150403343,
-0.4021414518,
0.0693430603,
0.4656213522,
0.0106837526,
0.2924724817,
0.0018881038,
0.1094438434,
-0.0905620456,
0.4269733727,
0.1445120126,
0.3763490319,
-0.4452264011,
0.0112879276,
-0.5027254224,
0.1829466075,
-0.0391800031,
0.0534200296,
-0.0442362018,
0.1701688021,
0.0105170794,
0.202702865,
-0.1474990398,
-0.0566703938,
0.0178524368,
0.1256342083,
0.026939936,
-0.1631550193,
-0.2020684928,
0.0583003312,
-0.0021006279,
-0.3904862702,
0.2174810469,
0.0210844055,
0.1405796409,
-0.2631098926,
-0.0637242272,
0.1954774559,
0.1273898631,
0.3907390535,
0.1600240171,
0.6441076398,
-0.1056480855,
0.0829368904,
-0.0683097094,
-0.2543078363,
0.0151444711,
0.1953170598,
0.2678669393,
0.2144359797,
-0.0889866352,
-0.3141359091,
-0.4714732468,
0.399718076,
-0.0541139357,
-0.085738197,
-0.0444331318,
-0.1015132666,
-0.029540576,
0.0428922661,
0.0381941572,
-0.0330939554,
0.0117345769,
0.2108487189,
-0.176004678,
-0.4096620679,
0.4183119535,
-0.2643620968,
-0.2504860163,
-0.1710996628,
0.278177619,
-0.046329204,
0.2893787026,
-0.2773313522,
0.295822978,
0.4524030387,
-0.211067766,
-0.2147777826,
0.2234392911,
0.0190693475,
0.2123970389,
-0.0396618843,
0.4695011675,
0.1008587778,
-0.242797032,
-0.1551303118,
-0.2195901722
] |
https://github.com/huggingface/datasets/issues/807 | load_dataset for LOCAL CSV files report CONNECTION ERROR | > Hi !
> The url works on my side.
>
> Is the url working in your navigator ?
> Are you connected to internet ? Does your network block access to `raw.githubusercontent.com` ?
I tried another server, it's working now. Thanks a lot.
And I'm curious about why download things from "github" when I load dataset from local files ? Dose datasets work if my network crashed? | ## load_dataset for LOCAL CSV files report CONNECTION ERROR
- **Description:**
A local demo csv file:
```
import pandas as pd
import numpy as np
from datasets import load_dataset
import torch
import transformers
df = pd.DataFrame(np.arange(1200).reshape(300,4))
df.to_csv('test.csv', header=False, index=False)
print('datasets version: ', datasets.__version__)
print('pytorch version: ', torch.__version__)
print('transformers version: ', transformers.__version__)
# output:
datasets version: 1.1.2
pytorch version: 1.5.0
transformers version: 3.2.0
```
when I load data through `dataset`:
```
dataset = load_dataset('csv', data_files='./test.csv', delimiter=',', autogenerate_column_names=False)
```
Error infos:
```
ConnectionError Traceback (most recent call last)
<ipython-input-17-bbdadb9a0c78> in <module>
----> 1 dataset = load_dataset('csv', data_files='./test.csv', delimiter=',', autogenerate_column_names=False)
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, save_infos, script_version, **config_kwargs)
588 # Download/copy dataset processing script
589 module_path, hash = prepare_module(
--> 590 path, script_version=script_version, download_config=download_config, download_mode=download_mode, dataset=True
591 )
592
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/load.py in prepare_module(path, script_version, download_config, download_mode, dataset, force_local_path, **download_kwargs)
266 file_path = hf_github_url(path=path, name=name, dataset=dataset, version=script_version)
267 try:
--> 268 local_path = cached_path(file_path, download_config=download_config)
269 except FileNotFoundError:
270 if script_version is not None:
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/utils/file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs)
306 user_agent=download_config.user_agent,
307 local_files_only=download_config.local_files_only,
--> 308 use_etag=download_config.use_etag,
309 )
310 elif os.path.exists(url_or_filename):
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/utils/file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag)
473 elif response is not None and response.status_code == 404:
474 raise FileNotFoundError("Couldn't find file at {}".format(url))
--> 475 raise ConnectionError("Couldn't reach {}".format(url))
476
477 # Try a second time
ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py
```
And I try to connect to the site with requests:
```
import requests
requests.head("https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py")
```
Similarly Error occurs:
```
---------------------------------------------------------------------------
ConnectionRefusedError Traceback (most recent call last)
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in _new_conn(self)
159 conn = connection.create_connection(
--> 160 (self._dns_host, self.port), self.timeout, **extra_kw
161 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options)
83 if err is not None:
---> 84 raise err
85
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options)
73 sock.bind(source_address)
---> 74 sock.connect(sa)
75 return sock
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
NewConnectionError Traceback (most recent call last)
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
676 headers=headers,
--> 677 chunked=chunked,
678 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw)
380 try:
--> 381 self._validate_conn(conn)
382 except (SocketTimeout, BaseSSLError) as e:
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in _validate_conn(self, conn)
975 if not getattr(conn, "sock", None): # AppEngine might not have `.sock`
--> 976 conn.connect()
977
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in connect(self)
307 # Add certificate verification
--> 308 conn = self._new_conn()
309 hostname = self.host
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in _new_conn(self)
171 raise NewConnectionError(
--> 172 self, "Failed to establish a new connection: %s" % e
173 )
NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
MaxRetryError Traceback (most recent call last)
~/.conda/envs/py36/lib/python3.6/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
448 retries=self.max_retries,
--> 449 timeout=timeout
450 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
724 retries = retries.increment(
--> 725 method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
726 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/retry.py in increment(self, method, url, response, error, _pool, _stacktrace)
438 if new_retry.is_exhausted():
--> 439 raise MaxRetryError(_pool, url, error or ResponseError(cause))
440
MaxRetryError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/1.1.2/datasets/csv/csv.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused',))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last)
<ipython-input-20-18cc3eb4a049> in <module>
1 import requests
2
----> 3 requests.head("https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py")
~/.conda/envs/py36/lib/python3.6/site-packages/requests/api.py in head(url, **kwargs)
102
103 kwargs.setdefault('allow_redirects', False)
--> 104 return request('head', url, **kwargs)
105
106
~/.conda/envs/py36/lib/python3.6/site-packages/requests/api.py in request(method, url, **kwargs)
59 # cases, and look like a memory leak in others.
60 with sessions.Session() as session:
---> 61 return session.request(method=method, url=url, **kwargs)
62
63
~/.conda/envs/py36/lib/python3.6/site-packages/requests/sessions.py in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json)
528 }
529 send_kwargs.update(settings)
--> 530 resp = self.send(prep, **send_kwargs)
531
532 return resp
~/.conda/envs/py36/lib/python3.6/site-packages/requests/sessions.py in send(self, request, **kwargs)
641
642 # Send the request
--> 643 r = adapter.send(request, **kwargs)
644
645 # Total elapsed time of the request (approximately)
~/.conda/envs/py36/lib/python3.6/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
514 raise SSLError(e, request=request)
515
--> 516 raise ConnectionError(e, request=request)
517
518 except ClosedPoolError as e:
ConnectionError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/1.1.2/datasets/csv/csv.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused',))
``` | 69 | load_dataset for LOCAL CSV files report CONNECTION ERROR
## load_dataset for LOCAL CSV files report CONNECTION ERROR
- **Description:**
A local demo csv file:
```
import pandas as pd
import numpy as np
from datasets import load_dataset
import torch
import transformers
df = pd.DataFrame(np.arange(1200).reshape(300,4))
df.to_csv('test.csv', header=False, index=False)
print('datasets version: ', datasets.__version__)
print('pytorch version: ', torch.__version__)
print('transformers version: ', transformers.__version__)
# output:
datasets version: 1.1.2
pytorch version: 1.5.0
transformers version: 3.2.0
```
when I load data through `dataset`:
```
dataset = load_dataset('csv', data_files='./test.csv', delimiter=',', autogenerate_column_names=False)
```
Error infos:
```
ConnectionError Traceback (most recent call last)
<ipython-input-17-bbdadb9a0c78> in <module>
----> 1 dataset = load_dataset('csv', data_files='./test.csv', delimiter=',', autogenerate_column_names=False)
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, save_infos, script_version, **config_kwargs)
588 # Download/copy dataset processing script
589 module_path, hash = prepare_module(
--> 590 path, script_version=script_version, download_config=download_config, download_mode=download_mode, dataset=True
591 )
592
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/load.py in prepare_module(path, script_version, download_config, download_mode, dataset, force_local_path, **download_kwargs)
266 file_path = hf_github_url(path=path, name=name, dataset=dataset, version=script_version)
267 try:
--> 268 local_path = cached_path(file_path, download_config=download_config)
269 except FileNotFoundError:
270 if script_version is not None:
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/utils/file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs)
306 user_agent=download_config.user_agent,
307 local_files_only=download_config.local_files_only,
--> 308 use_etag=download_config.use_etag,
309 )
310 elif os.path.exists(url_or_filename):
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/utils/file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag)
473 elif response is not None and response.status_code == 404:
474 raise FileNotFoundError("Couldn't find file at {}".format(url))
--> 475 raise ConnectionError("Couldn't reach {}".format(url))
476
477 # Try a second time
ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py
```
And I try to connect to the site with requests:
```
import requests
requests.head("https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py")
```
Similarly Error occurs:
```
---------------------------------------------------------------------------
ConnectionRefusedError Traceback (most recent call last)
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in _new_conn(self)
159 conn = connection.create_connection(
--> 160 (self._dns_host, self.port), self.timeout, **extra_kw
161 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options)
83 if err is not None:
---> 84 raise err
85
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options)
73 sock.bind(source_address)
---> 74 sock.connect(sa)
75 return sock
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
NewConnectionError Traceback (most recent call last)
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
676 headers=headers,
--> 677 chunked=chunked,
678 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw)
380 try:
--> 381 self._validate_conn(conn)
382 except (SocketTimeout, BaseSSLError) as e:
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in _validate_conn(self, conn)
975 if not getattr(conn, "sock", None): # AppEngine might not have `.sock`
--> 976 conn.connect()
977
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in connect(self)
307 # Add certificate verification
--> 308 conn = self._new_conn()
309 hostname = self.host
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in _new_conn(self)
171 raise NewConnectionError(
--> 172 self, "Failed to establish a new connection: %s" % e
173 )
NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
MaxRetryError Traceback (most recent call last)
~/.conda/envs/py36/lib/python3.6/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
448 retries=self.max_retries,
--> 449 timeout=timeout
450 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
724 retries = retries.increment(
--> 725 method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
726 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/retry.py in increment(self, method, url, response, error, _pool, _stacktrace)
438 if new_retry.is_exhausted():
--> 439 raise MaxRetryError(_pool, url, error or ResponseError(cause))
440
MaxRetryError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/1.1.2/datasets/csv/csv.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused',))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last)
<ipython-input-20-18cc3eb4a049> in <module>
1 import requests
2
----> 3 requests.head("https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py")
~/.conda/envs/py36/lib/python3.6/site-packages/requests/api.py in head(url, **kwargs)
102
103 kwargs.setdefault('allow_redirects', False)
--> 104 return request('head', url, **kwargs)
105
106
~/.conda/envs/py36/lib/python3.6/site-packages/requests/api.py in request(method, url, **kwargs)
59 # cases, and look like a memory leak in others.
60 with sessions.Session() as session:
---> 61 return session.request(method=method, url=url, **kwargs)
62
63
~/.conda/envs/py36/lib/python3.6/site-packages/requests/sessions.py in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json)
528 }
529 send_kwargs.update(settings)
--> 530 resp = self.send(prep, **send_kwargs)
531
532 return resp
~/.conda/envs/py36/lib/python3.6/site-packages/requests/sessions.py in send(self, request, **kwargs)
641
642 # Send the request
--> 643 r = adapter.send(request, **kwargs)
644
645 # Total elapsed time of the request (approximately)
~/.conda/envs/py36/lib/python3.6/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
514 raise SSLError(e, request=request)
515
--> 516 raise ConnectionError(e, request=request)
517
518 except ClosedPoolError as e:
ConnectionError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/1.1.2/datasets/csv/csv.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused',))
```
> Hi !
> The url works on my side.
>
> Is the url working in your navigator ?
> Are you connected to internet ? Does your network block access to `raw.githubusercontent.com` ?
I tried another server, it's working now. Thanks a lot.
And I'm curious about why download things from "github" when I load dataset from local files ? Dose datasets work if my network crashed? | [
-0.3247123361,
0.0161048025,
-0.1088049263,
0.0260047894,
0.2420428693,
0.0198688582,
0.7173693776,
0.3756365776,
0.2509220243,
0.1337040812,
-0.0342322588,
0.1497046649,
0.0797995478,
0.0211835206,
-0.1269314885,
-0.1772823036,
-0.1271574795,
0.2743315697,
-0.4187992811,
0.0144972131,
-0.1248852834,
-0.0023575779,
-0.0349383801,
0.1405337155,
-0.2024639249,
-0.0062389812,
0.1157819852,
0.131277144,
-0.0276921988,
-0.4939195514,
0.3365219831,
0.0402497724,
0.3237728179,
0.3632174134,
-0.0001060309,
0.2135235369,
0.2517406642,
-0.0288666114,
-0.427908659,
-0.4611107707,
-0.1089925617,
-0.3690281808,
0.4228134155,
-0.3986178339,
0.0005742982,
-0.1198976636,
-0.0673584267,
-0.3161988854,
0.4313886464,
0.4785012901,
0.2786397934,
0.4154754877,
0.0165832266,
-0.1110344827,
0.0718219727,
0.0555340014,
-0.0624924079,
0.4061278105,
0.0516242273,
-0.1849910319,
-0.2426784933,
0.0846121535,
-0.1926986128,
0.3955325186,
0.1906039417,
0.0830964446,
0.0377706066,
-0.1966335624,
0.1252264678,
0.1076833904,
0.4764898717,
-0.2314555347,
-0.2321468741,
-0.0584993213,
-0.1994820088,
-0.1881569028,
0.1660739779,
0.0867307782,
-0.1683378518,
0.1474406272,
-0.2638413608,
0.0990802199,
-0.3907521665,
0.1494553834,
-0.1105122343,
0.1547572613,
-0.067184031,
0.1947449744,
0.1582646817,
-0.0564834513,
0.4036886692,
-0.2070344985,
0.1916096658,
0.127662763,
-0.3377638459,
0.1311572939,
0.1394049823,
-0.3861347139,
-0.1064568609,
0.0498940982,
-0.0361736454,
-0.0535907038,
0.1335503757,
0.2916468084,
0.1983622611,
0.0791433603,
-0.1308654249,
0.2947738469,
0.2687247992,
0.1325624138,
0.0422616452,
-0.06248492,
-0.0800575614,
-0.3558064699,
0.1634978503,
0.1999797225,
0.4894589186,
-0.0474283397,
-0.2816002369,
0.1326405704,
0.0129100829,
-0.1073728949,
0.018969439,
0.3589312732,
-0.08796826,
0.2043160647,
0.0424529389,
0.0136887487,
-0.2235276103,
0.0845433101,
-0.2120841295,
0.037955571,
-0.1193307936,
-0.0695322379,
0.381331414,
-0.0790899321,
0.0466330424,
-0.0146685168,
0.0989308655,
0.0503489971,
0.2611701488,
-0.2932828665,
0.0491828322,
0.4129322469,
0.0561540276,
0.2478839457,
0.4095255435,
-0.1842339784,
-0.1060606241,
0.0865908191,
-0.2045432031,
-0.3371694088,
-0.338547945,
0.2402115613,
0.0368899927,
0.1089415699,
-0.0184666477,
-0.3302740753,
0.0986591503,
-0.2747160792,
-0.1541593969,
-0.3237558901,
-0.0389049351,
-0.2159914374,
0.3081871867,
0.6463353038,
-0.4303182662,
0.042956233,
0.0566365495,
-0.1299163401,
0.141459927,
0.2508479953,
-0.3076962531,
0.0851257443,
-0.2284610868,
-0.0966765881,
0.2314823866,
-0.3093753457,
-0.3032815456,
0.5005193353,
-0.2373454273,
-0.0729435831,
0.2169772089,
0.0126163065,
0.2910564542,
0.1858280897,
0.2615151703,
0.300047636,
-0.1007599086,
0.1175526902,
-0.079923287,
-0.2225607783,
0.1973580718,
0.1164560169,
0.0098164212,
0.2231839895,
0.3249673545,
-0.2579790056,
0.1741140485,
-0.0768724382,
0.1447919607,
0.1345078796,
0.173971951,
0.0419842787,
-0.0606002249,
-0.0216644071,
-0.5085176229,
0.1381557584,
0.131092459,
0.0903008729,
-0.4376564324,
-0.016269058,
-0.3771231472,
0.005172275,
-0.2671601176,
-0.0302422959,
0.2100170702,
0.3415310383,
-0.0191594549,
-0.0523176938,
-0.0488571003,
0.3256911337,
-0.1166131869,
-0.0192559678,
-0.4156304598,
0.3395552933,
-0.3544685841,
-0.0690030828,
0.0523540229,
-0.0314199738,
0.1626497507,
-0.1825554669,
-0.2719685137,
0.3561236858,
-0.0955852717,
0.2182244062,
0.0170495138,
-0.0044383109,
0.0526204929,
-0.2450992167,
0.032377407,
0.0311137661,
0.1533316225,
0.0431828797,
-0.2613136172,
0.3525987267,
-0.0953490734,
0.1633696854,
0.0506538972,
0.0704122409,
0.451421231,
0.0119943395,
-0.1140477806,
-0.1085088775,
0.1054949313,
0.2389211655,
0.2262360454,
0.0491033345,
-0.180272162,
-0.1886239499,
0.2018590122,
-0.1532274336,
0.0116078872,
0.0923531502,
-0.1086221337,
-0.0442814827,
0.214684695,
0.2319190353,
0.5149136186,
0.1026021913,
-0.1526021361,
-0.0183212329,
-0.050323505,
-0.133823052,
0.1102776229,
-0.0386922359,
0.0448775776,
0.3272632957,
0.0759821832,
0.106980443,
-0.2410075068,
-0.3630866408,
-0.0419490263,
0.2638893127,
-0.3493006825,
0.2479265928,
-0.1645682454,
0.0182820931,
-0.2659018636,
-0.0503299907,
-0.1105000228,
-0.1780741811,
-0.3695808351,
0.3607574999,
-0.0763825253,
0.2372517139,
-0.279001534,
-0.0516412556,
0.3879841864,
-0.4498327374,
-0.073059842,
-0.2081663162,
-0.160145998,
0.0924806669,
0.0935097486,
-0.1568923295,
0.3031651378,
-0.0989922062,
0.0205263309,
-0.161062479,
-0.0238345936,
-0.0821167827,
0.0125280395,
0.1283057779,
0.1878543645,
0.4475226104,
0.1206025183,
-0.5035607815,
0.3184548914,
-0.0834971517,
0.0481938496,
0.1964567006,
-0.0537021868,
-0.2032558173,
0.0006877333,
-0.6345353127,
-0.5991460681,
-0.4698643684,
0.1375345141,
0.0665088445,
0.213231653,
0.2955248356,
0.2269019037,
0.2099234164,
0.0866583288,
0.0757487267,
-0.0596129894,
-0.1591840684,
0.3499987423,
-0.2349600941,
-0.3570281863,
-0.1133958623,
-0.1152547151,
0.1219444722,
0.1364866644,
-0.4447760582,
-0.0236160941,
-0.1746836454,
0.3565402031,
-0.0467240848,
0.0517050326,
0.4662777483,
0.1686569005,
-0.1706289053,
0.1126607358,
-0.2441870868,
-0.1408114135,
0.19425641,
0.0843702108,
0.0044111069,
0.4593693316,
-0.1589592993,
0.6532874107,
-0.0798087344,
-0.1897099614,
0.2884310782,
-0.1362252682,
0.342966795,
-0.1845075488,
-0.6308504343,
-0.0917782113,
-0.3062296808,
-0.2018837184,
0.0107531957,
-0.229728967,
-0.2305865884,
-0.3641995788,
0.0186994895,
-0.3049328327,
-0.3137823939,
0.1363258511,
-0.1196977943,
0.3635419011,
0.0468817055,
-0.0130359977,
-0.2529371083,
-0.0600581095,
-0.2486276627,
0.3659865558,
-0.0062222742,
-0.093166098,
-0.2668783665,
0.1069132537,
-0.2810814977,
0.2432363331,
0.0800496489,
0.5622869134,
-0.2027089596,
-0.1867957264,
-0.037793126,
0.0581579693,
0.4028223753,
0.0884442106,
0.0874636769,
0.2563878894,
-0.0515907966,
-0.3120605648,
-0.0862112939,
-0.088684231,
0.22119537,
0.2276991457,
0.4607944787,
0.0591155738,
-0.1269775033,
0.3169067204,
0.2359133363,
-0.0872560292,
-0.179053694,
-0.2838753462,
-0.0508109294,
-0.3215521276,
-0.1053740755,
-0.1118416339,
0.1790323257,
-0.1732904613,
-0.1281273663,
0.0737239197,
-0.1710193753,
0.0011047982,
0.1193198115,
-0.1456996202,
0.0959774703,
0.2179177999,
0.1906980872,
0.2628869116,
0.2021608949,
0.4429311454,
-0.2094502896,
-0.5551644564,
0.1772617847,
-0.0145552345,
0.107831195,
0.1052372754,
-0.1369357109,
-0.148758322,
0.1752744019,
0.1808559597,
-0.1539574564,
0.1938526928,
0.2498670667,
-0.1166541502,
-0.3529872894,
-0.4148067832,
0.1314439476,
-0.2005928159,
-0.0967517868,
0.1951030493,
-0.3385472894,
-0.0635158122,
0.2595237494,
-0.1583104432,
0.669519186,
-0.1268932223,
0.1809172332,
0.1628528982,
-0.1345140785,
0.4483828843,
-0.1574921161,
0.1192622781,
-0.3441150188,
-0.2360043377,
-0.0994973779,
-0.2498577386,
0.321854651,
0.0098682111,
-0.096961394,
0.2364210784,
-0.0614167824,
0.2813481688,
0.0652795136,
0.2203808874,
0.0612793863,
-0.2302691191,
-0.1830086559,
0.1901202649,
-0.0931364298,
0.4134555459,
0.0299710073,
-0.1137414426,
-0.0124851018,
-0.3615665138,
-0.0431396291,
0.0593215376,
-0.2830665112,
0.4136628211,
0.0488294065,
-0.3536546826,
-0.0551412143,
0.1381697357,
-0.1533754468,
0.078329742,
-0.1498510987,
-0.0794562995,
-0.108091481,
-0.0611959063,
-0.116901055,
-0.0029087029,
0.1473996192,
0.0824842453,
-0.2685492039,
0.275572449,
-0.1178315729,
-0.3403717875,
0.1828362346,
0.2773402333,
0.2622920275,
-0.5065496564,
-0.1399479955,
-0.3102686107,
-0.1075607389,
-0.1293205172,
0.200531885,
-0.1123934239,
0.0256724395,
0.0055954307,
-0.0878890529,
-0.3105520308,
-0.0419632941,
0.6014829874,
-0.0718145296,
-0.0663498938,
0.3271545768,
0.0624913573,
-0.1843171269,
-0.2428676486,
0.1990405321,
-0.004432261,
-0.467797786,
-0.093008019,
0.068779856,
0.0586961806,
-0.1138907149,
0.071775943,
0.2206759751,
0.1031342298,
0.0357835889,
-0.4803102314,
-0.5924566984,
-0.0901233926,
-0.0120881088,
0.1493127197,
0.4447920024,
0.223069638,
0.0557790995,
0.1090676039,
-0.3599543273,
-0.0675610825,
-0.1895692647,
0.1576154232,
0.5117646456,
-0.2647096217,
0.1770651639,
-0.1552707255,
0.2409110814,
-0.1429233551,
-0.1262868792,
-0.3133457601,
0.0018987805,
0.0618450418,
0.0202442408,
-0.3433458507,
-0.3376549482,
-0.2684758604,
-0.0148098581,
-0.0740636885,
-0.000341475,
0.2130772769,
-0.1187316179,
0.2121611238,
-0.2453934252,
0.0810143799,
-0.1340084523,
0.1350560635,
-0.2799660563,
0.2402765006,
0.027082596,
0.2827393115,
-0.0718642697,
-0.0194424465,
-0.4871895313,
-0.0540026613,
0.0109265707,
0.0986868292,
0.3070953488,
-0.1801374257,
-0.137321189,
0.0053288788,
0.399123311,
0.2806530297,
-0.2605661452,
0.0164486319,
0.1206056252,
0.3077167869,
-0.2169091702,
-0.112417683,
0.1596364826,
0.0255127065,
0.2056991607,
-0.0233399421,
0.0817392692,
-0.194660157,
0.2731686532,
0.0354822651,
0.4447304606,
-0.0881809145,
0.2025936991,
0.6118389368,
0.0197392628,
-0.002939878,
0.161792174,
0.1720684916,
0.1941982806,
0.427090466,
-0.1792922616,
-0.0874078274,
-0.0603711121,
0.1699081361,
-0.178252995,
-0.473313868,
0.143280521,
-0.1597067267,
-0.2988284528,
-0.0670231879,
0.0496744998,
0.2803229094,
-0.2598398924,
0.0749867558,
-0.1056552231,
0.1608564854,
-0.0922898352,
-0.1408544183,
0.0897712409,
-0.073097147,
-0.1290262192,
-0.0425560437,
0.1132717133,
0.0838868096,
0.2775799334,
0.2630509138,
-0.0881880075,
-0.2006155401,
0.1970884651,
0.2208368778,
-0.0557489768,
-0.1138676479,
0.1557370722,
0.3445363343,
0.1739408225,
-0.1311291903,
0.1761197597,
0.6315096021,
0.3470623195,
0.0025092885,
0.2030486763,
-0.1124483719,
-0.1424657851,
-0.0864443034,
0.0251590386,
-0.0924743563,
0.2070284039,
0.3563941717,
0.321375519,
-0.1901988536,
0.3339132071,
-0.0463945605,
-0.1453464627,
-0.1938876212,
0.3707818985,
0.0753011703,
-0.2841670513,
-0.1254213005,
0.0150403343,
-0.4021414518,
0.0693430603,
0.4656213522,
0.0106837526,
0.2924724817,
0.0018881038,
0.1094438434,
-0.0905620456,
0.4269733727,
0.1445120126,
0.3763490319,
-0.4452264011,
0.0112879276,
-0.5027254224,
0.1829466075,
-0.0391800031,
0.0534200296,
-0.0442362018,
0.1701688021,
0.0105170794,
0.202702865,
-0.1474990398,
-0.0566703938,
0.0178524368,
0.1256342083,
0.026939936,
-0.1631550193,
-0.2020684928,
0.0583003312,
-0.0021006279,
-0.3904862702,
0.2174810469,
0.0210844055,
0.1405796409,
-0.2631098926,
-0.0637242272,
0.1954774559,
0.1273898631,
0.3907390535,
0.1600240171,
0.6441076398,
-0.1056480855,
0.0829368904,
-0.0683097094,
-0.2543078363,
0.0151444711,
0.1953170598,
0.2678669393,
0.2144359797,
-0.0889866352,
-0.3141359091,
-0.4714732468,
0.399718076,
-0.0541139357,
-0.085738197,
-0.0444331318,
-0.1015132666,
-0.029540576,
0.0428922661,
0.0381941572,
-0.0330939554,
0.0117345769,
0.2108487189,
-0.176004678,
-0.4096620679,
0.4183119535,
-0.2643620968,
-0.2504860163,
-0.1710996628,
0.278177619,
-0.046329204,
0.2893787026,
-0.2773313522,
0.295822978,
0.4524030387,
-0.211067766,
-0.2147777826,
0.2234392911,
0.0190693475,
0.2123970389,
-0.0396618843,
0.4695011675,
0.1008587778,
-0.242797032,
-0.1551303118,
-0.2195901722
] |
https://github.com/huggingface/datasets/issues/807 | load_dataset for LOCAL CSV files report CONNECTION ERROR |
> > Hi !
> > The url works on my side.
> > Is the url working in your navigator ?
> > Are you connected to internet ? Does your network block access to `raw.githubusercontent.com` ?
>
> I tried another server, it's working now. Thanks a lot.
>
> And I'm curious about why download things from "github" when I load dataset from local files ? Dose datasets work if my network crashed?
I download the scripts `https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py` and move it to the package dir `*/datasets/` solved the problem. Could you please put the file `datasets/datasets/csv/csv.py` to `datasets/src/datasets/`?
Thanks :D | ## load_dataset for LOCAL CSV files report CONNECTION ERROR
- **Description:**
A local demo csv file:
```
import pandas as pd
import numpy as np
from datasets import load_dataset
import torch
import transformers
df = pd.DataFrame(np.arange(1200).reshape(300,4))
df.to_csv('test.csv', header=False, index=False)
print('datasets version: ', datasets.__version__)
print('pytorch version: ', torch.__version__)
print('transformers version: ', transformers.__version__)
# output:
datasets version: 1.1.2
pytorch version: 1.5.0
transformers version: 3.2.0
```
when I load data through `dataset`:
```
dataset = load_dataset('csv', data_files='./test.csv', delimiter=',', autogenerate_column_names=False)
```
Error infos:
```
ConnectionError Traceback (most recent call last)
<ipython-input-17-bbdadb9a0c78> in <module>
----> 1 dataset = load_dataset('csv', data_files='./test.csv', delimiter=',', autogenerate_column_names=False)
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, save_infos, script_version, **config_kwargs)
588 # Download/copy dataset processing script
589 module_path, hash = prepare_module(
--> 590 path, script_version=script_version, download_config=download_config, download_mode=download_mode, dataset=True
591 )
592
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/load.py in prepare_module(path, script_version, download_config, download_mode, dataset, force_local_path, **download_kwargs)
266 file_path = hf_github_url(path=path, name=name, dataset=dataset, version=script_version)
267 try:
--> 268 local_path = cached_path(file_path, download_config=download_config)
269 except FileNotFoundError:
270 if script_version is not None:
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/utils/file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs)
306 user_agent=download_config.user_agent,
307 local_files_only=download_config.local_files_only,
--> 308 use_etag=download_config.use_etag,
309 )
310 elif os.path.exists(url_or_filename):
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/utils/file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag)
473 elif response is not None and response.status_code == 404:
474 raise FileNotFoundError("Couldn't find file at {}".format(url))
--> 475 raise ConnectionError("Couldn't reach {}".format(url))
476
477 # Try a second time
ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py
```
And I try to connect to the site with requests:
```
import requests
requests.head("https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py")
```
Similarly Error occurs:
```
---------------------------------------------------------------------------
ConnectionRefusedError Traceback (most recent call last)
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in _new_conn(self)
159 conn = connection.create_connection(
--> 160 (self._dns_host, self.port), self.timeout, **extra_kw
161 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options)
83 if err is not None:
---> 84 raise err
85
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options)
73 sock.bind(source_address)
---> 74 sock.connect(sa)
75 return sock
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
NewConnectionError Traceback (most recent call last)
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
676 headers=headers,
--> 677 chunked=chunked,
678 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw)
380 try:
--> 381 self._validate_conn(conn)
382 except (SocketTimeout, BaseSSLError) as e:
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in _validate_conn(self, conn)
975 if not getattr(conn, "sock", None): # AppEngine might not have `.sock`
--> 976 conn.connect()
977
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in connect(self)
307 # Add certificate verification
--> 308 conn = self._new_conn()
309 hostname = self.host
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in _new_conn(self)
171 raise NewConnectionError(
--> 172 self, "Failed to establish a new connection: %s" % e
173 )
NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
MaxRetryError Traceback (most recent call last)
~/.conda/envs/py36/lib/python3.6/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
448 retries=self.max_retries,
--> 449 timeout=timeout
450 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
724 retries = retries.increment(
--> 725 method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
726 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/retry.py in increment(self, method, url, response, error, _pool, _stacktrace)
438 if new_retry.is_exhausted():
--> 439 raise MaxRetryError(_pool, url, error or ResponseError(cause))
440
MaxRetryError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/1.1.2/datasets/csv/csv.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused',))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last)
<ipython-input-20-18cc3eb4a049> in <module>
1 import requests
2
----> 3 requests.head("https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py")
~/.conda/envs/py36/lib/python3.6/site-packages/requests/api.py in head(url, **kwargs)
102
103 kwargs.setdefault('allow_redirects', False)
--> 104 return request('head', url, **kwargs)
105
106
~/.conda/envs/py36/lib/python3.6/site-packages/requests/api.py in request(method, url, **kwargs)
59 # cases, and look like a memory leak in others.
60 with sessions.Session() as session:
---> 61 return session.request(method=method, url=url, **kwargs)
62
63
~/.conda/envs/py36/lib/python3.6/site-packages/requests/sessions.py in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json)
528 }
529 send_kwargs.update(settings)
--> 530 resp = self.send(prep, **send_kwargs)
531
532 return resp
~/.conda/envs/py36/lib/python3.6/site-packages/requests/sessions.py in send(self, request, **kwargs)
641
642 # Send the request
--> 643 r = adapter.send(request, **kwargs)
644
645 # Total elapsed time of the request (approximately)
~/.conda/envs/py36/lib/python3.6/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
514 raise SSLError(e, request=request)
515
--> 516 raise ConnectionError(e, request=request)
517
518 except ClosedPoolError as e:
ConnectionError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/1.1.2/datasets/csv/csv.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused',))
``` | 103 | load_dataset for LOCAL CSV files report CONNECTION ERROR
## load_dataset for LOCAL CSV files report CONNECTION ERROR
- **Description:**
A local demo csv file:
```
import pandas as pd
import numpy as np
from datasets import load_dataset
import torch
import transformers
df = pd.DataFrame(np.arange(1200).reshape(300,4))
df.to_csv('test.csv', header=False, index=False)
print('datasets version: ', datasets.__version__)
print('pytorch version: ', torch.__version__)
print('transformers version: ', transformers.__version__)
# output:
datasets version: 1.1.2
pytorch version: 1.5.0
transformers version: 3.2.0
```
when I load data through `dataset`:
```
dataset = load_dataset('csv', data_files='./test.csv', delimiter=',', autogenerate_column_names=False)
```
Error infos:
```
ConnectionError Traceback (most recent call last)
<ipython-input-17-bbdadb9a0c78> in <module>
----> 1 dataset = load_dataset('csv', data_files='./test.csv', delimiter=',', autogenerate_column_names=False)
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, save_infos, script_version, **config_kwargs)
588 # Download/copy dataset processing script
589 module_path, hash = prepare_module(
--> 590 path, script_version=script_version, download_config=download_config, download_mode=download_mode, dataset=True
591 )
592
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/load.py in prepare_module(path, script_version, download_config, download_mode, dataset, force_local_path, **download_kwargs)
266 file_path = hf_github_url(path=path, name=name, dataset=dataset, version=script_version)
267 try:
--> 268 local_path = cached_path(file_path, download_config=download_config)
269 except FileNotFoundError:
270 if script_version is not None:
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/utils/file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs)
306 user_agent=download_config.user_agent,
307 local_files_only=download_config.local_files_only,
--> 308 use_etag=download_config.use_etag,
309 )
310 elif os.path.exists(url_or_filename):
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/utils/file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag)
473 elif response is not None and response.status_code == 404:
474 raise FileNotFoundError("Couldn't find file at {}".format(url))
--> 475 raise ConnectionError("Couldn't reach {}".format(url))
476
477 # Try a second time
ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py
```
And I try to connect to the site with requests:
```
import requests
requests.head("https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py")
```
Similarly Error occurs:
```
---------------------------------------------------------------------------
ConnectionRefusedError Traceback (most recent call last)
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in _new_conn(self)
159 conn = connection.create_connection(
--> 160 (self._dns_host, self.port), self.timeout, **extra_kw
161 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options)
83 if err is not None:
---> 84 raise err
85
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options)
73 sock.bind(source_address)
---> 74 sock.connect(sa)
75 return sock
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
NewConnectionError Traceback (most recent call last)
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
676 headers=headers,
--> 677 chunked=chunked,
678 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw)
380 try:
--> 381 self._validate_conn(conn)
382 except (SocketTimeout, BaseSSLError) as e:
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in _validate_conn(self, conn)
975 if not getattr(conn, "sock", None): # AppEngine might not have `.sock`
--> 976 conn.connect()
977
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in connect(self)
307 # Add certificate verification
--> 308 conn = self._new_conn()
309 hostname = self.host
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in _new_conn(self)
171 raise NewConnectionError(
--> 172 self, "Failed to establish a new connection: %s" % e
173 )
NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
MaxRetryError Traceback (most recent call last)
~/.conda/envs/py36/lib/python3.6/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
448 retries=self.max_retries,
--> 449 timeout=timeout
450 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
724 retries = retries.increment(
--> 725 method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
726 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/retry.py in increment(self, method, url, response, error, _pool, _stacktrace)
438 if new_retry.is_exhausted():
--> 439 raise MaxRetryError(_pool, url, error or ResponseError(cause))
440
MaxRetryError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/1.1.2/datasets/csv/csv.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused',))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last)
<ipython-input-20-18cc3eb4a049> in <module>
1 import requests
2
----> 3 requests.head("https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py")
~/.conda/envs/py36/lib/python3.6/site-packages/requests/api.py in head(url, **kwargs)
102
103 kwargs.setdefault('allow_redirects', False)
--> 104 return request('head', url, **kwargs)
105
106
~/.conda/envs/py36/lib/python3.6/site-packages/requests/api.py in request(method, url, **kwargs)
59 # cases, and look like a memory leak in others.
60 with sessions.Session() as session:
---> 61 return session.request(method=method, url=url, **kwargs)
62
63
~/.conda/envs/py36/lib/python3.6/site-packages/requests/sessions.py in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json)
528 }
529 send_kwargs.update(settings)
--> 530 resp = self.send(prep, **send_kwargs)
531
532 return resp
~/.conda/envs/py36/lib/python3.6/site-packages/requests/sessions.py in send(self, request, **kwargs)
641
642 # Send the request
--> 643 r = adapter.send(request, **kwargs)
644
645 # Total elapsed time of the request (approximately)
~/.conda/envs/py36/lib/python3.6/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
514 raise SSLError(e, request=request)
515
--> 516 raise ConnectionError(e, request=request)
517
518 except ClosedPoolError as e:
ConnectionError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/1.1.2/datasets/csv/csv.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused',))
```
> > Hi !
> > The url works on my side.
> > Is the url working in your navigator ?
> > Are you connected to internet ? Does your network block access to `raw.githubusercontent.com` ?
>
> I tried another server, it's working now. Thanks a lot.
>
> And I'm curious about why download things from "github" when I load dataset from local files ? Dose datasets work if my network crashed?
I download the scripts `https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py` and move it to the package dir `*/datasets/` solved the problem. Could you please put the file `datasets/datasets/csv/csv.py` to `datasets/src/datasets/`?
Thanks :D | [
-0.3247123361,
0.0161048025,
-0.1088049263,
0.0260047894,
0.2420428693,
0.0198688582,
0.7173693776,
0.3756365776,
0.2509220243,
0.1337040812,
-0.0342322588,
0.1497046649,
0.0797995478,
0.0211835206,
-0.1269314885,
-0.1772823036,
-0.1271574795,
0.2743315697,
-0.4187992811,
0.0144972131,
-0.1248852834,
-0.0023575779,
-0.0349383801,
0.1405337155,
-0.2024639249,
-0.0062389812,
0.1157819852,
0.131277144,
-0.0276921988,
-0.4939195514,
0.3365219831,
0.0402497724,
0.3237728179,
0.3632174134,
-0.0001060309,
0.2135235369,
0.2517406642,
-0.0288666114,
-0.427908659,
-0.4611107707,
-0.1089925617,
-0.3690281808,
0.4228134155,
-0.3986178339,
0.0005742982,
-0.1198976636,
-0.0673584267,
-0.3161988854,
0.4313886464,
0.4785012901,
0.2786397934,
0.4154754877,
0.0165832266,
-0.1110344827,
0.0718219727,
0.0555340014,
-0.0624924079,
0.4061278105,
0.0516242273,
-0.1849910319,
-0.2426784933,
0.0846121535,
-0.1926986128,
0.3955325186,
0.1906039417,
0.0830964446,
0.0377706066,
-0.1966335624,
0.1252264678,
0.1076833904,
0.4764898717,
-0.2314555347,
-0.2321468741,
-0.0584993213,
-0.1994820088,
-0.1881569028,
0.1660739779,
0.0867307782,
-0.1683378518,
0.1474406272,
-0.2638413608,
0.0990802199,
-0.3907521665,
0.1494553834,
-0.1105122343,
0.1547572613,
-0.067184031,
0.1947449744,
0.1582646817,
-0.0564834513,
0.4036886692,
-0.2070344985,
0.1916096658,
0.127662763,
-0.3377638459,
0.1311572939,
0.1394049823,
-0.3861347139,
-0.1064568609,
0.0498940982,
-0.0361736454,
-0.0535907038,
0.1335503757,
0.2916468084,
0.1983622611,
0.0791433603,
-0.1308654249,
0.2947738469,
0.2687247992,
0.1325624138,
0.0422616452,
-0.06248492,
-0.0800575614,
-0.3558064699,
0.1634978503,
0.1999797225,
0.4894589186,
-0.0474283397,
-0.2816002369,
0.1326405704,
0.0129100829,
-0.1073728949,
0.018969439,
0.3589312732,
-0.08796826,
0.2043160647,
0.0424529389,
0.0136887487,
-0.2235276103,
0.0845433101,
-0.2120841295,
0.037955571,
-0.1193307936,
-0.0695322379,
0.381331414,
-0.0790899321,
0.0466330424,
-0.0146685168,
0.0989308655,
0.0503489971,
0.2611701488,
-0.2932828665,
0.0491828322,
0.4129322469,
0.0561540276,
0.2478839457,
0.4095255435,
-0.1842339784,
-0.1060606241,
0.0865908191,
-0.2045432031,
-0.3371694088,
-0.338547945,
0.2402115613,
0.0368899927,
0.1089415699,
-0.0184666477,
-0.3302740753,
0.0986591503,
-0.2747160792,
-0.1541593969,
-0.3237558901,
-0.0389049351,
-0.2159914374,
0.3081871867,
0.6463353038,
-0.4303182662,
0.042956233,
0.0566365495,
-0.1299163401,
0.141459927,
0.2508479953,
-0.3076962531,
0.0851257443,
-0.2284610868,
-0.0966765881,
0.2314823866,
-0.3093753457,
-0.3032815456,
0.5005193353,
-0.2373454273,
-0.0729435831,
0.2169772089,
0.0126163065,
0.2910564542,
0.1858280897,
0.2615151703,
0.300047636,
-0.1007599086,
0.1175526902,
-0.079923287,
-0.2225607783,
0.1973580718,
0.1164560169,
0.0098164212,
0.2231839895,
0.3249673545,
-0.2579790056,
0.1741140485,
-0.0768724382,
0.1447919607,
0.1345078796,
0.173971951,
0.0419842787,
-0.0606002249,
-0.0216644071,
-0.5085176229,
0.1381557584,
0.131092459,
0.0903008729,
-0.4376564324,
-0.016269058,
-0.3771231472,
0.005172275,
-0.2671601176,
-0.0302422959,
0.2100170702,
0.3415310383,
-0.0191594549,
-0.0523176938,
-0.0488571003,
0.3256911337,
-0.1166131869,
-0.0192559678,
-0.4156304598,
0.3395552933,
-0.3544685841,
-0.0690030828,
0.0523540229,
-0.0314199738,
0.1626497507,
-0.1825554669,
-0.2719685137,
0.3561236858,
-0.0955852717,
0.2182244062,
0.0170495138,
-0.0044383109,
0.0526204929,
-0.2450992167,
0.032377407,
0.0311137661,
0.1533316225,
0.0431828797,
-0.2613136172,
0.3525987267,
-0.0953490734,
0.1633696854,
0.0506538972,
0.0704122409,
0.451421231,
0.0119943395,
-0.1140477806,
-0.1085088775,
0.1054949313,
0.2389211655,
0.2262360454,
0.0491033345,
-0.180272162,
-0.1886239499,
0.2018590122,
-0.1532274336,
0.0116078872,
0.0923531502,
-0.1086221337,
-0.0442814827,
0.214684695,
0.2319190353,
0.5149136186,
0.1026021913,
-0.1526021361,
-0.0183212329,
-0.050323505,
-0.133823052,
0.1102776229,
-0.0386922359,
0.0448775776,
0.3272632957,
0.0759821832,
0.106980443,
-0.2410075068,
-0.3630866408,
-0.0419490263,
0.2638893127,
-0.3493006825,
0.2479265928,
-0.1645682454,
0.0182820931,
-0.2659018636,
-0.0503299907,
-0.1105000228,
-0.1780741811,
-0.3695808351,
0.3607574999,
-0.0763825253,
0.2372517139,
-0.279001534,
-0.0516412556,
0.3879841864,
-0.4498327374,
-0.073059842,
-0.2081663162,
-0.160145998,
0.0924806669,
0.0935097486,
-0.1568923295,
0.3031651378,
-0.0989922062,
0.0205263309,
-0.161062479,
-0.0238345936,
-0.0821167827,
0.0125280395,
0.1283057779,
0.1878543645,
0.4475226104,
0.1206025183,
-0.5035607815,
0.3184548914,
-0.0834971517,
0.0481938496,
0.1964567006,
-0.0537021868,
-0.2032558173,
0.0006877333,
-0.6345353127,
-0.5991460681,
-0.4698643684,
0.1375345141,
0.0665088445,
0.213231653,
0.2955248356,
0.2269019037,
0.2099234164,
0.0866583288,
0.0757487267,
-0.0596129894,
-0.1591840684,
0.3499987423,
-0.2349600941,
-0.3570281863,
-0.1133958623,
-0.1152547151,
0.1219444722,
0.1364866644,
-0.4447760582,
-0.0236160941,
-0.1746836454,
0.3565402031,
-0.0467240848,
0.0517050326,
0.4662777483,
0.1686569005,
-0.1706289053,
0.1126607358,
-0.2441870868,
-0.1408114135,
0.19425641,
0.0843702108,
0.0044111069,
0.4593693316,
-0.1589592993,
0.6532874107,
-0.0798087344,
-0.1897099614,
0.2884310782,
-0.1362252682,
0.342966795,
-0.1845075488,
-0.6308504343,
-0.0917782113,
-0.3062296808,
-0.2018837184,
0.0107531957,
-0.229728967,
-0.2305865884,
-0.3641995788,
0.0186994895,
-0.3049328327,
-0.3137823939,
0.1363258511,
-0.1196977943,
0.3635419011,
0.0468817055,
-0.0130359977,
-0.2529371083,
-0.0600581095,
-0.2486276627,
0.3659865558,
-0.0062222742,
-0.093166098,
-0.2668783665,
0.1069132537,
-0.2810814977,
0.2432363331,
0.0800496489,
0.5622869134,
-0.2027089596,
-0.1867957264,
-0.037793126,
0.0581579693,
0.4028223753,
0.0884442106,
0.0874636769,
0.2563878894,
-0.0515907966,
-0.3120605648,
-0.0862112939,
-0.088684231,
0.22119537,
0.2276991457,
0.4607944787,
0.0591155738,
-0.1269775033,
0.3169067204,
0.2359133363,
-0.0872560292,
-0.179053694,
-0.2838753462,
-0.0508109294,
-0.3215521276,
-0.1053740755,
-0.1118416339,
0.1790323257,
-0.1732904613,
-0.1281273663,
0.0737239197,
-0.1710193753,
0.0011047982,
0.1193198115,
-0.1456996202,
0.0959774703,
0.2179177999,
0.1906980872,
0.2628869116,
0.2021608949,
0.4429311454,
-0.2094502896,
-0.5551644564,
0.1772617847,
-0.0145552345,
0.107831195,
0.1052372754,
-0.1369357109,
-0.148758322,
0.1752744019,
0.1808559597,
-0.1539574564,
0.1938526928,
0.2498670667,
-0.1166541502,
-0.3529872894,
-0.4148067832,
0.1314439476,
-0.2005928159,
-0.0967517868,
0.1951030493,
-0.3385472894,
-0.0635158122,
0.2595237494,
-0.1583104432,
0.669519186,
-0.1268932223,
0.1809172332,
0.1628528982,
-0.1345140785,
0.4483828843,
-0.1574921161,
0.1192622781,
-0.3441150188,
-0.2360043377,
-0.0994973779,
-0.2498577386,
0.321854651,
0.0098682111,
-0.096961394,
0.2364210784,
-0.0614167824,
0.2813481688,
0.0652795136,
0.2203808874,
0.0612793863,
-0.2302691191,
-0.1830086559,
0.1901202649,
-0.0931364298,
0.4134555459,
0.0299710073,
-0.1137414426,
-0.0124851018,
-0.3615665138,
-0.0431396291,
0.0593215376,
-0.2830665112,
0.4136628211,
0.0488294065,
-0.3536546826,
-0.0551412143,
0.1381697357,
-0.1533754468,
0.078329742,
-0.1498510987,
-0.0794562995,
-0.108091481,
-0.0611959063,
-0.116901055,
-0.0029087029,
0.1473996192,
0.0824842453,
-0.2685492039,
0.275572449,
-0.1178315729,
-0.3403717875,
0.1828362346,
0.2773402333,
0.2622920275,
-0.5065496564,
-0.1399479955,
-0.3102686107,
-0.1075607389,
-0.1293205172,
0.200531885,
-0.1123934239,
0.0256724395,
0.0055954307,
-0.0878890529,
-0.3105520308,
-0.0419632941,
0.6014829874,
-0.0718145296,
-0.0663498938,
0.3271545768,
0.0624913573,
-0.1843171269,
-0.2428676486,
0.1990405321,
-0.004432261,
-0.467797786,
-0.093008019,
0.068779856,
0.0586961806,
-0.1138907149,
0.071775943,
0.2206759751,
0.1031342298,
0.0357835889,
-0.4803102314,
-0.5924566984,
-0.0901233926,
-0.0120881088,
0.1493127197,
0.4447920024,
0.223069638,
0.0557790995,
0.1090676039,
-0.3599543273,
-0.0675610825,
-0.1895692647,
0.1576154232,
0.5117646456,
-0.2647096217,
0.1770651639,
-0.1552707255,
0.2409110814,
-0.1429233551,
-0.1262868792,
-0.3133457601,
0.0018987805,
0.0618450418,
0.0202442408,
-0.3433458507,
-0.3376549482,
-0.2684758604,
-0.0148098581,
-0.0740636885,
-0.000341475,
0.2130772769,
-0.1187316179,
0.2121611238,
-0.2453934252,
0.0810143799,
-0.1340084523,
0.1350560635,
-0.2799660563,
0.2402765006,
0.027082596,
0.2827393115,
-0.0718642697,
-0.0194424465,
-0.4871895313,
-0.0540026613,
0.0109265707,
0.0986868292,
0.3070953488,
-0.1801374257,
-0.137321189,
0.0053288788,
0.399123311,
0.2806530297,
-0.2605661452,
0.0164486319,
0.1206056252,
0.3077167869,
-0.2169091702,
-0.112417683,
0.1596364826,
0.0255127065,
0.2056991607,
-0.0233399421,
0.0817392692,
-0.194660157,
0.2731686532,
0.0354822651,
0.4447304606,
-0.0881809145,
0.2025936991,
0.6118389368,
0.0197392628,
-0.002939878,
0.161792174,
0.1720684916,
0.1941982806,
0.427090466,
-0.1792922616,
-0.0874078274,
-0.0603711121,
0.1699081361,
-0.178252995,
-0.473313868,
0.143280521,
-0.1597067267,
-0.2988284528,
-0.0670231879,
0.0496744998,
0.2803229094,
-0.2598398924,
0.0749867558,
-0.1056552231,
0.1608564854,
-0.0922898352,
-0.1408544183,
0.0897712409,
-0.073097147,
-0.1290262192,
-0.0425560437,
0.1132717133,
0.0838868096,
0.2775799334,
0.2630509138,
-0.0881880075,
-0.2006155401,
0.1970884651,
0.2208368778,
-0.0557489768,
-0.1138676479,
0.1557370722,
0.3445363343,
0.1739408225,
-0.1311291903,
0.1761197597,
0.6315096021,
0.3470623195,
0.0025092885,
0.2030486763,
-0.1124483719,
-0.1424657851,
-0.0864443034,
0.0251590386,
-0.0924743563,
0.2070284039,
0.3563941717,
0.321375519,
-0.1901988536,
0.3339132071,
-0.0463945605,
-0.1453464627,
-0.1938876212,
0.3707818985,
0.0753011703,
-0.2841670513,
-0.1254213005,
0.0150403343,
-0.4021414518,
0.0693430603,
0.4656213522,
0.0106837526,
0.2924724817,
0.0018881038,
0.1094438434,
-0.0905620456,
0.4269733727,
0.1445120126,
0.3763490319,
-0.4452264011,
0.0112879276,
-0.5027254224,
0.1829466075,
-0.0391800031,
0.0534200296,
-0.0442362018,
0.1701688021,
0.0105170794,
0.202702865,
-0.1474990398,
-0.0566703938,
0.0178524368,
0.1256342083,
0.026939936,
-0.1631550193,
-0.2020684928,
0.0583003312,
-0.0021006279,
-0.3904862702,
0.2174810469,
0.0210844055,
0.1405796409,
-0.2631098926,
-0.0637242272,
0.1954774559,
0.1273898631,
0.3907390535,
0.1600240171,
0.6441076398,
-0.1056480855,
0.0829368904,
-0.0683097094,
-0.2543078363,
0.0151444711,
0.1953170598,
0.2678669393,
0.2144359797,
-0.0889866352,
-0.3141359091,
-0.4714732468,
0.399718076,
-0.0541139357,
-0.085738197,
-0.0444331318,
-0.1015132666,
-0.029540576,
0.0428922661,
0.0381941572,
-0.0330939554,
0.0117345769,
0.2108487189,
-0.176004678,
-0.4096620679,
0.4183119535,
-0.2643620968,
-0.2504860163,
-0.1710996628,
0.278177619,
-0.046329204,
0.2893787026,
-0.2773313522,
0.295822978,
0.4524030387,
-0.211067766,
-0.2147777826,
0.2234392911,
0.0190693475,
0.2123970389,
-0.0396618843,
0.4695011675,
0.1008587778,
-0.242797032,
-0.1551303118,
-0.2195901722
] |
https://github.com/huggingface/datasets/issues/807 | load_dataset for LOCAL CSV files report CONNECTION ERROR | hello, how did you solve this problems?
> > > Hi !
> > > The url works on my side.
> > > Is the url working in your navigator ?
> > > Are you connected to internet ? Does your network block access to `raw.githubusercontent.com` ?
> >
> >
> > I tried another server, it's working now. Thanks a lot.
> > And I'm curious about why download things from "github" when I load dataset from local files ? Dose datasets work if my network crashed?
>
> I download the scripts `https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py` and move it to the package dir `*/datasets/` solved the problem. Could you please put the file `datasets/datasets/csv/csv.py` to `datasets/src/datasets/`?
>
> Thanks :D
hello, I tried this. but it still failed. how do you fix this error? | ## load_dataset for LOCAL CSV files report CONNECTION ERROR
- **Description:**
A local demo csv file:
```
import pandas as pd
import numpy as np
from datasets import load_dataset
import torch
import transformers
df = pd.DataFrame(np.arange(1200).reshape(300,4))
df.to_csv('test.csv', header=False, index=False)
print('datasets version: ', datasets.__version__)
print('pytorch version: ', torch.__version__)
print('transformers version: ', transformers.__version__)
# output:
datasets version: 1.1.2
pytorch version: 1.5.0
transformers version: 3.2.0
```
when I load data through `dataset`:
```
dataset = load_dataset('csv', data_files='./test.csv', delimiter=',', autogenerate_column_names=False)
```
Error infos:
```
ConnectionError Traceback (most recent call last)
<ipython-input-17-bbdadb9a0c78> in <module>
----> 1 dataset = load_dataset('csv', data_files='./test.csv', delimiter=',', autogenerate_column_names=False)
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, save_infos, script_version, **config_kwargs)
588 # Download/copy dataset processing script
589 module_path, hash = prepare_module(
--> 590 path, script_version=script_version, download_config=download_config, download_mode=download_mode, dataset=True
591 )
592
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/load.py in prepare_module(path, script_version, download_config, download_mode, dataset, force_local_path, **download_kwargs)
266 file_path = hf_github_url(path=path, name=name, dataset=dataset, version=script_version)
267 try:
--> 268 local_path = cached_path(file_path, download_config=download_config)
269 except FileNotFoundError:
270 if script_version is not None:
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/utils/file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs)
306 user_agent=download_config.user_agent,
307 local_files_only=download_config.local_files_only,
--> 308 use_etag=download_config.use_etag,
309 )
310 elif os.path.exists(url_or_filename):
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/utils/file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag)
473 elif response is not None and response.status_code == 404:
474 raise FileNotFoundError("Couldn't find file at {}".format(url))
--> 475 raise ConnectionError("Couldn't reach {}".format(url))
476
477 # Try a second time
ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py
```
And I try to connect to the site with requests:
```
import requests
requests.head("https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py")
```
Similarly Error occurs:
```
---------------------------------------------------------------------------
ConnectionRefusedError Traceback (most recent call last)
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in _new_conn(self)
159 conn = connection.create_connection(
--> 160 (self._dns_host, self.port), self.timeout, **extra_kw
161 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options)
83 if err is not None:
---> 84 raise err
85
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options)
73 sock.bind(source_address)
---> 74 sock.connect(sa)
75 return sock
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
NewConnectionError Traceback (most recent call last)
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
676 headers=headers,
--> 677 chunked=chunked,
678 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw)
380 try:
--> 381 self._validate_conn(conn)
382 except (SocketTimeout, BaseSSLError) as e:
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in _validate_conn(self, conn)
975 if not getattr(conn, "sock", None): # AppEngine might not have `.sock`
--> 976 conn.connect()
977
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in connect(self)
307 # Add certificate verification
--> 308 conn = self._new_conn()
309 hostname = self.host
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in _new_conn(self)
171 raise NewConnectionError(
--> 172 self, "Failed to establish a new connection: %s" % e
173 )
NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
MaxRetryError Traceback (most recent call last)
~/.conda/envs/py36/lib/python3.6/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
448 retries=self.max_retries,
--> 449 timeout=timeout
450 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
724 retries = retries.increment(
--> 725 method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
726 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/retry.py in increment(self, method, url, response, error, _pool, _stacktrace)
438 if new_retry.is_exhausted():
--> 439 raise MaxRetryError(_pool, url, error or ResponseError(cause))
440
MaxRetryError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/1.1.2/datasets/csv/csv.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused',))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last)
<ipython-input-20-18cc3eb4a049> in <module>
1 import requests
2
----> 3 requests.head("https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py")
~/.conda/envs/py36/lib/python3.6/site-packages/requests/api.py in head(url, **kwargs)
102
103 kwargs.setdefault('allow_redirects', False)
--> 104 return request('head', url, **kwargs)
105
106
~/.conda/envs/py36/lib/python3.6/site-packages/requests/api.py in request(method, url, **kwargs)
59 # cases, and look like a memory leak in others.
60 with sessions.Session() as session:
---> 61 return session.request(method=method, url=url, **kwargs)
62
63
~/.conda/envs/py36/lib/python3.6/site-packages/requests/sessions.py in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json)
528 }
529 send_kwargs.update(settings)
--> 530 resp = self.send(prep, **send_kwargs)
531
532 return resp
~/.conda/envs/py36/lib/python3.6/site-packages/requests/sessions.py in send(self, request, **kwargs)
641
642 # Send the request
--> 643 r = adapter.send(request, **kwargs)
644
645 # Total elapsed time of the request (approximately)
~/.conda/envs/py36/lib/python3.6/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
514 raise SSLError(e, request=request)
515
--> 516 raise ConnectionError(e, request=request)
517
518 except ClosedPoolError as e:
ConnectionError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/1.1.2/datasets/csv/csv.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused',))
``` | 136 | load_dataset for LOCAL CSV files report CONNECTION ERROR
## load_dataset for LOCAL CSV files report CONNECTION ERROR
- **Description:**
A local demo csv file:
```
import pandas as pd
import numpy as np
from datasets import load_dataset
import torch
import transformers
df = pd.DataFrame(np.arange(1200).reshape(300,4))
df.to_csv('test.csv', header=False, index=False)
print('datasets version: ', datasets.__version__)
print('pytorch version: ', torch.__version__)
print('transformers version: ', transformers.__version__)
# output:
datasets version: 1.1.2
pytorch version: 1.5.0
transformers version: 3.2.0
```
when I load data through `dataset`:
```
dataset = load_dataset('csv', data_files='./test.csv', delimiter=',', autogenerate_column_names=False)
```
Error infos:
```
ConnectionError Traceback (most recent call last)
<ipython-input-17-bbdadb9a0c78> in <module>
----> 1 dataset = load_dataset('csv', data_files='./test.csv', delimiter=',', autogenerate_column_names=False)
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, save_infos, script_version, **config_kwargs)
588 # Download/copy dataset processing script
589 module_path, hash = prepare_module(
--> 590 path, script_version=script_version, download_config=download_config, download_mode=download_mode, dataset=True
591 )
592
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/load.py in prepare_module(path, script_version, download_config, download_mode, dataset, force_local_path, **download_kwargs)
266 file_path = hf_github_url(path=path, name=name, dataset=dataset, version=script_version)
267 try:
--> 268 local_path = cached_path(file_path, download_config=download_config)
269 except FileNotFoundError:
270 if script_version is not None:
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/utils/file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs)
306 user_agent=download_config.user_agent,
307 local_files_only=download_config.local_files_only,
--> 308 use_etag=download_config.use_etag,
309 )
310 elif os.path.exists(url_or_filename):
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/utils/file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag)
473 elif response is not None and response.status_code == 404:
474 raise FileNotFoundError("Couldn't find file at {}".format(url))
--> 475 raise ConnectionError("Couldn't reach {}".format(url))
476
477 # Try a second time
ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py
```
And I try to connect to the site with requests:
```
import requests
requests.head("https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py")
```
Similarly Error occurs:
```
---------------------------------------------------------------------------
ConnectionRefusedError Traceback (most recent call last)
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in _new_conn(self)
159 conn = connection.create_connection(
--> 160 (self._dns_host, self.port), self.timeout, **extra_kw
161 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options)
83 if err is not None:
---> 84 raise err
85
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options)
73 sock.bind(source_address)
---> 74 sock.connect(sa)
75 return sock
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
NewConnectionError Traceback (most recent call last)
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
676 headers=headers,
--> 677 chunked=chunked,
678 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw)
380 try:
--> 381 self._validate_conn(conn)
382 except (SocketTimeout, BaseSSLError) as e:
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in _validate_conn(self, conn)
975 if not getattr(conn, "sock", None): # AppEngine might not have `.sock`
--> 976 conn.connect()
977
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in connect(self)
307 # Add certificate verification
--> 308 conn = self._new_conn()
309 hostname = self.host
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in _new_conn(self)
171 raise NewConnectionError(
--> 172 self, "Failed to establish a new connection: %s" % e
173 )
NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
MaxRetryError Traceback (most recent call last)
~/.conda/envs/py36/lib/python3.6/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
448 retries=self.max_retries,
--> 449 timeout=timeout
450 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
724 retries = retries.increment(
--> 725 method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
726 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/retry.py in increment(self, method, url, response, error, _pool, _stacktrace)
438 if new_retry.is_exhausted():
--> 439 raise MaxRetryError(_pool, url, error or ResponseError(cause))
440
MaxRetryError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/1.1.2/datasets/csv/csv.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused',))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last)
<ipython-input-20-18cc3eb4a049> in <module>
1 import requests
2
----> 3 requests.head("https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py")
~/.conda/envs/py36/lib/python3.6/site-packages/requests/api.py in head(url, **kwargs)
102
103 kwargs.setdefault('allow_redirects', False)
--> 104 return request('head', url, **kwargs)
105
106
~/.conda/envs/py36/lib/python3.6/site-packages/requests/api.py in request(method, url, **kwargs)
59 # cases, and look like a memory leak in others.
60 with sessions.Session() as session:
---> 61 return session.request(method=method, url=url, **kwargs)
62
63
~/.conda/envs/py36/lib/python3.6/site-packages/requests/sessions.py in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json)
528 }
529 send_kwargs.update(settings)
--> 530 resp = self.send(prep, **send_kwargs)
531
532 return resp
~/.conda/envs/py36/lib/python3.6/site-packages/requests/sessions.py in send(self, request, **kwargs)
641
642 # Send the request
--> 643 r = adapter.send(request, **kwargs)
644
645 # Total elapsed time of the request (approximately)
~/.conda/envs/py36/lib/python3.6/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
514 raise SSLError(e, request=request)
515
--> 516 raise ConnectionError(e, request=request)
517
518 except ClosedPoolError as e:
ConnectionError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/1.1.2/datasets/csv/csv.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused',))
```
hello, how did you solve this problems?
> > > Hi !
> > > The url works on my side.
> > > Is the url working in your navigator ?
> > > Are you connected to internet ? Does your network block access to `raw.githubusercontent.com` ?
> >
> >
> > I tried another server, it's working now. Thanks a lot.
> > And I'm curious about why download things from "github" when I load dataset from local files ? Dose datasets work if my network crashed?
>
> I download the scripts `https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py` and move it to the package dir `*/datasets/` solved the problem. Could you please put the file `datasets/datasets/csv/csv.py` to `datasets/src/datasets/`?
>
> Thanks :D
hello, I tried this. but it still failed. how do you fix this error? | [
-0.3247123361,
0.0161048025,
-0.1088049263,
0.0260047894,
0.2420428693,
0.0198688582,
0.7173693776,
0.3756365776,
0.2509220243,
0.1337040812,
-0.0342322588,
0.1497046649,
0.0797995478,
0.0211835206,
-0.1269314885,
-0.1772823036,
-0.1271574795,
0.2743315697,
-0.4187992811,
0.0144972131,
-0.1248852834,
-0.0023575779,
-0.0349383801,
0.1405337155,
-0.2024639249,
-0.0062389812,
0.1157819852,
0.131277144,
-0.0276921988,
-0.4939195514,
0.3365219831,
0.0402497724,
0.3237728179,
0.3632174134,
-0.0001060309,
0.2135235369,
0.2517406642,
-0.0288666114,
-0.427908659,
-0.4611107707,
-0.1089925617,
-0.3690281808,
0.4228134155,
-0.3986178339,
0.0005742982,
-0.1198976636,
-0.0673584267,
-0.3161988854,
0.4313886464,
0.4785012901,
0.2786397934,
0.4154754877,
0.0165832266,
-0.1110344827,
0.0718219727,
0.0555340014,
-0.0624924079,
0.4061278105,
0.0516242273,
-0.1849910319,
-0.2426784933,
0.0846121535,
-0.1926986128,
0.3955325186,
0.1906039417,
0.0830964446,
0.0377706066,
-0.1966335624,
0.1252264678,
0.1076833904,
0.4764898717,
-0.2314555347,
-0.2321468741,
-0.0584993213,
-0.1994820088,
-0.1881569028,
0.1660739779,
0.0867307782,
-0.1683378518,
0.1474406272,
-0.2638413608,
0.0990802199,
-0.3907521665,
0.1494553834,
-0.1105122343,
0.1547572613,
-0.067184031,
0.1947449744,
0.1582646817,
-0.0564834513,
0.4036886692,
-0.2070344985,
0.1916096658,
0.127662763,
-0.3377638459,
0.1311572939,
0.1394049823,
-0.3861347139,
-0.1064568609,
0.0498940982,
-0.0361736454,
-0.0535907038,
0.1335503757,
0.2916468084,
0.1983622611,
0.0791433603,
-0.1308654249,
0.2947738469,
0.2687247992,
0.1325624138,
0.0422616452,
-0.06248492,
-0.0800575614,
-0.3558064699,
0.1634978503,
0.1999797225,
0.4894589186,
-0.0474283397,
-0.2816002369,
0.1326405704,
0.0129100829,
-0.1073728949,
0.018969439,
0.3589312732,
-0.08796826,
0.2043160647,
0.0424529389,
0.0136887487,
-0.2235276103,
0.0845433101,
-0.2120841295,
0.037955571,
-0.1193307936,
-0.0695322379,
0.381331414,
-0.0790899321,
0.0466330424,
-0.0146685168,
0.0989308655,
0.0503489971,
0.2611701488,
-0.2932828665,
0.0491828322,
0.4129322469,
0.0561540276,
0.2478839457,
0.4095255435,
-0.1842339784,
-0.1060606241,
0.0865908191,
-0.2045432031,
-0.3371694088,
-0.338547945,
0.2402115613,
0.0368899927,
0.1089415699,
-0.0184666477,
-0.3302740753,
0.0986591503,
-0.2747160792,
-0.1541593969,
-0.3237558901,
-0.0389049351,
-0.2159914374,
0.3081871867,
0.6463353038,
-0.4303182662,
0.042956233,
0.0566365495,
-0.1299163401,
0.141459927,
0.2508479953,
-0.3076962531,
0.0851257443,
-0.2284610868,
-0.0966765881,
0.2314823866,
-0.3093753457,
-0.3032815456,
0.5005193353,
-0.2373454273,
-0.0729435831,
0.2169772089,
0.0126163065,
0.2910564542,
0.1858280897,
0.2615151703,
0.300047636,
-0.1007599086,
0.1175526902,
-0.079923287,
-0.2225607783,
0.1973580718,
0.1164560169,
0.0098164212,
0.2231839895,
0.3249673545,
-0.2579790056,
0.1741140485,
-0.0768724382,
0.1447919607,
0.1345078796,
0.173971951,
0.0419842787,
-0.0606002249,
-0.0216644071,
-0.5085176229,
0.1381557584,
0.131092459,
0.0903008729,
-0.4376564324,
-0.016269058,
-0.3771231472,
0.005172275,
-0.2671601176,
-0.0302422959,
0.2100170702,
0.3415310383,
-0.0191594549,
-0.0523176938,
-0.0488571003,
0.3256911337,
-0.1166131869,
-0.0192559678,
-0.4156304598,
0.3395552933,
-0.3544685841,
-0.0690030828,
0.0523540229,
-0.0314199738,
0.1626497507,
-0.1825554669,
-0.2719685137,
0.3561236858,
-0.0955852717,
0.2182244062,
0.0170495138,
-0.0044383109,
0.0526204929,
-0.2450992167,
0.032377407,
0.0311137661,
0.1533316225,
0.0431828797,
-0.2613136172,
0.3525987267,
-0.0953490734,
0.1633696854,
0.0506538972,
0.0704122409,
0.451421231,
0.0119943395,
-0.1140477806,
-0.1085088775,
0.1054949313,
0.2389211655,
0.2262360454,
0.0491033345,
-0.180272162,
-0.1886239499,
0.2018590122,
-0.1532274336,
0.0116078872,
0.0923531502,
-0.1086221337,
-0.0442814827,
0.214684695,
0.2319190353,
0.5149136186,
0.1026021913,
-0.1526021361,
-0.0183212329,
-0.050323505,
-0.133823052,
0.1102776229,
-0.0386922359,
0.0448775776,
0.3272632957,
0.0759821832,
0.106980443,
-0.2410075068,
-0.3630866408,
-0.0419490263,
0.2638893127,
-0.3493006825,
0.2479265928,
-0.1645682454,
0.0182820931,
-0.2659018636,
-0.0503299907,
-0.1105000228,
-0.1780741811,
-0.3695808351,
0.3607574999,
-0.0763825253,
0.2372517139,
-0.279001534,
-0.0516412556,
0.3879841864,
-0.4498327374,
-0.073059842,
-0.2081663162,
-0.160145998,
0.0924806669,
0.0935097486,
-0.1568923295,
0.3031651378,
-0.0989922062,
0.0205263309,
-0.161062479,
-0.0238345936,
-0.0821167827,
0.0125280395,
0.1283057779,
0.1878543645,
0.4475226104,
0.1206025183,
-0.5035607815,
0.3184548914,
-0.0834971517,
0.0481938496,
0.1964567006,
-0.0537021868,
-0.2032558173,
0.0006877333,
-0.6345353127,
-0.5991460681,
-0.4698643684,
0.1375345141,
0.0665088445,
0.213231653,
0.2955248356,
0.2269019037,
0.2099234164,
0.0866583288,
0.0757487267,
-0.0596129894,
-0.1591840684,
0.3499987423,
-0.2349600941,
-0.3570281863,
-0.1133958623,
-0.1152547151,
0.1219444722,
0.1364866644,
-0.4447760582,
-0.0236160941,
-0.1746836454,
0.3565402031,
-0.0467240848,
0.0517050326,
0.4662777483,
0.1686569005,
-0.1706289053,
0.1126607358,
-0.2441870868,
-0.1408114135,
0.19425641,
0.0843702108,
0.0044111069,
0.4593693316,
-0.1589592993,
0.6532874107,
-0.0798087344,
-0.1897099614,
0.2884310782,
-0.1362252682,
0.342966795,
-0.1845075488,
-0.6308504343,
-0.0917782113,
-0.3062296808,
-0.2018837184,
0.0107531957,
-0.229728967,
-0.2305865884,
-0.3641995788,
0.0186994895,
-0.3049328327,
-0.3137823939,
0.1363258511,
-0.1196977943,
0.3635419011,
0.0468817055,
-0.0130359977,
-0.2529371083,
-0.0600581095,
-0.2486276627,
0.3659865558,
-0.0062222742,
-0.093166098,
-0.2668783665,
0.1069132537,
-0.2810814977,
0.2432363331,
0.0800496489,
0.5622869134,
-0.2027089596,
-0.1867957264,
-0.037793126,
0.0581579693,
0.4028223753,
0.0884442106,
0.0874636769,
0.2563878894,
-0.0515907966,
-0.3120605648,
-0.0862112939,
-0.088684231,
0.22119537,
0.2276991457,
0.4607944787,
0.0591155738,
-0.1269775033,
0.3169067204,
0.2359133363,
-0.0872560292,
-0.179053694,
-0.2838753462,
-0.0508109294,
-0.3215521276,
-0.1053740755,
-0.1118416339,
0.1790323257,
-0.1732904613,
-0.1281273663,
0.0737239197,
-0.1710193753,
0.0011047982,
0.1193198115,
-0.1456996202,
0.0959774703,
0.2179177999,
0.1906980872,
0.2628869116,
0.2021608949,
0.4429311454,
-0.2094502896,
-0.5551644564,
0.1772617847,
-0.0145552345,
0.107831195,
0.1052372754,
-0.1369357109,
-0.148758322,
0.1752744019,
0.1808559597,
-0.1539574564,
0.1938526928,
0.2498670667,
-0.1166541502,
-0.3529872894,
-0.4148067832,
0.1314439476,
-0.2005928159,
-0.0967517868,
0.1951030493,
-0.3385472894,
-0.0635158122,
0.2595237494,
-0.1583104432,
0.669519186,
-0.1268932223,
0.1809172332,
0.1628528982,
-0.1345140785,
0.4483828843,
-0.1574921161,
0.1192622781,
-0.3441150188,
-0.2360043377,
-0.0994973779,
-0.2498577386,
0.321854651,
0.0098682111,
-0.096961394,
0.2364210784,
-0.0614167824,
0.2813481688,
0.0652795136,
0.2203808874,
0.0612793863,
-0.2302691191,
-0.1830086559,
0.1901202649,
-0.0931364298,
0.4134555459,
0.0299710073,
-0.1137414426,
-0.0124851018,
-0.3615665138,
-0.0431396291,
0.0593215376,
-0.2830665112,
0.4136628211,
0.0488294065,
-0.3536546826,
-0.0551412143,
0.1381697357,
-0.1533754468,
0.078329742,
-0.1498510987,
-0.0794562995,
-0.108091481,
-0.0611959063,
-0.116901055,
-0.0029087029,
0.1473996192,
0.0824842453,
-0.2685492039,
0.275572449,
-0.1178315729,
-0.3403717875,
0.1828362346,
0.2773402333,
0.2622920275,
-0.5065496564,
-0.1399479955,
-0.3102686107,
-0.1075607389,
-0.1293205172,
0.200531885,
-0.1123934239,
0.0256724395,
0.0055954307,
-0.0878890529,
-0.3105520308,
-0.0419632941,
0.6014829874,
-0.0718145296,
-0.0663498938,
0.3271545768,
0.0624913573,
-0.1843171269,
-0.2428676486,
0.1990405321,
-0.004432261,
-0.467797786,
-0.093008019,
0.068779856,
0.0586961806,
-0.1138907149,
0.071775943,
0.2206759751,
0.1031342298,
0.0357835889,
-0.4803102314,
-0.5924566984,
-0.0901233926,
-0.0120881088,
0.1493127197,
0.4447920024,
0.223069638,
0.0557790995,
0.1090676039,
-0.3599543273,
-0.0675610825,
-0.1895692647,
0.1576154232,
0.5117646456,
-0.2647096217,
0.1770651639,
-0.1552707255,
0.2409110814,
-0.1429233551,
-0.1262868792,
-0.3133457601,
0.0018987805,
0.0618450418,
0.0202442408,
-0.3433458507,
-0.3376549482,
-0.2684758604,
-0.0148098581,
-0.0740636885,
-0.000341475,
0.2130772769,
-0.1187316179,
0.2121611238,
-0.2453934252,
0.0810143799,
-0.1340084523,
0.1350560635,
-0.2799660563,
0.2402765006,
0.027082596,
0.2827393115,
-0.0718642697,
-0.0194424465,
-0.4871895313,
-0.0540026613,
0.0109265707,
0.0986868292,
0.3070953488,
-0.1801374257,
-0.137321189,
0.0053288788,
0.399123311,
0.2806530297,
-0.2605661452,
0.0164486319,
0.1206056252,
0.3077167869,
-0.2169091702,
-0.112417683,
0.1596364826,
0.0255127065,
0.2056991607,
-0.0233399421,
0.0817392692,
-0.194660157,
0.2731686532,
0.0354822651,
0.4447304606,
-0.0881809145,
0.2025936991,
0.6118389368,
0.0197392628,
-0.002939878,
0.161792174,
0.1720684916,
0.1941982806,
0.427090466,
-0.1792922616,
-0.0874078274,
-0.0603711121,
0.1699081361,
-0.178252995,
-0.473313868,
0.143280521,
-0.1597067267,
-0.2988284528,
-0.0670231879,
0.0496744998,
0.2803229094,
-0.2598398924,
0.0749867558,
-0.1056552231,
0.1608564854,
-0.0922898352,
-0.1408544183,
0.0897712409,
-0.073097147,
-0.1290262192,
-0.0425560437,
0.1132717133,
0.0838868096,
0.2775799334,
0.2630509138,
-0.0881880075,
-0.2006155401,
0.1970884651,
0.2208368778,
-0.0557489768,
-0.1138676479,
0.1557370722,
0.3445363343,
0.1739408225,
-0.1311291903,
0.1761197597,
0.6315096021,
0.3470623195,
0.0025092885,
0.2030486763,
-0.1124483719,
-0.1424657851,
-0.0864443034,
0.0251590386,
-0.0924743563,
0.2070284039,
0.3563941717,
0.321375519,
-0.1901988536,
0.3339132071,
-0.0463945605,
-0.1453464627,
-0.1938876212,
0.3707818985,
0.0753011703,
-0.2841670513,
-0.1254213005,
0.0150403343,
-0.4021414518,
0.0693430603,
0.4656213522,
0.0106837526,
0.2924724817,
0.0018881038,
0.1094438434,
-0.0905620456,
0.4269733727,
0.1445120126,
0.3763490319,
-0.4452264011,
0.0112879276,
-0.5027254224,
0.1829466075,
-0.0391800031,
0.0534200296,
-0.0442362018,
0.1701688021,
0.0105170794,
0.202702865,
-0.1474990398,
-0.0566703938,
0.0178524368,
0.1256342083,
0.026939936,
-0.1631550193,
-0.2020684928,
0.0583003312,
-0.0021006279,
-0.3904862702,
0.2174810469,
0.0210844055,
0.1405796409,
-0.2631098926,
-0.0637242272,
0.1954774559,
0.1273898631,
0.3907390535,
0.1600240171,
0.6441076398,
-0.1056480855,
0.0829368904,
-0.0683097094,
-0.2543078363,
0.0151444711,
0.1953170598,
0.2678669393,
0.2144359797,
-0.0889866352,
-0.3141359091,
-0.4714732468,
0.399718076,
-0.0541139357,
-0.085738197,
-0.0444331318,
-0.1015132666,
-0.029540576,
0.0428922661,
0.0381941572,
-0.0330939554,
0.0117345769,
0.2108487189,
-0.176004678,
-0.4096620679,
0.4183119535,
-0.2643620968,
-0.2504860163,
-0.1710996628,
0.278177619,
-0.046329204,
0.2893787026,
-0.2773313522,
0.295822978,
0.4524030387,
-0.211067766,
-0.2147777826,
0.2234392911,
0.0190693475,
0.2123970389,
-0.0396618843,
0.4695011675,
0.1008587778,
-0.242797032,
-0.1551303118,
-0.2195901722
] |
https://github.com/huggingface/datasets/issues/807 | load_dataset for LOCAL CSV files report CONNECTION ERROR | > hello, how did you solve this problems?
>
> > > > Hi !
> > > > The url works on my side.
> > > > Is the url working in your navigator ?
> > > > Are you connected to internet ? Does your network block access to `raw.githubusercontent.com` ?
> > >
> > >
> > > I tried another server, it's working now. Thanks a lot.
> > > And I'm curious about why download things from "github" when I load dataset from local files ? Dose datasets work if my network crashed?
> >
> >
> > I download the scripts `https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py` and move it to the package dir `*/datasets/` solved the problem. Could you please put the file `datasets/datasets/csv/csv.py` to `datasets/src/datasets/`?
> > Thanks :D
>
> hello, I tried this. but it still failed. how do you fix this error?
你把那个脚本下载到你本地安装目录下,然后 `load_dataset(csv_script_path, data_fiels)`
| ## load_dataset for LOCAL CSV files report CONNECTION ERROR
- **Description:**
A local demo csv file:
```
import pandas as pd
import numpy as np
from datasets import load_dataset
import torch
import transformers
df = pd.DataFrame(np.arange(1200).reshape(300,4))
df.to_csv('test.csv', header=False, index=False)
print('datasets version: ', datasets.__version__)
print('pytorch version: ', torch.__version__)
print('transformers version: ', transformers.__version__)
# output:
datasets version: 1.1.2
pytorch version: 1.5.0
transformers version: 3.2.0
```
when I load data through `dataset`:
```
dataset = load_dataset('csv', data_files='./test.csv', delimiter=',', autogenerate_column_names=False)
```
Error infos:
```
ConnectionError Traceback (most recent call last)
<ipython-input-17-bbdadb9a0c78> in <module>
----> 1 dataset = load_dataset('csv', data_files='./test.csv', delimiter=',', autogenerate_column_names=False)
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, save_infos, script_version, **config_kwargs)
588 # Download/copy dataset processing script
589 module_path, hash = prepare_module(
--> 590 path, script_version=script_version, download_config=download_config, download_mode=download_mode, dataset=True
591 )
592
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/load.py in prepare_module(path, script_version, download_config, download_mode, dataset, force_local_path, **download_kwargs)
266 file_path = hf_github_url(path=path, name=name, dataset=dataset, version=script_version)
267 try:
--> 268 local_path = cached_path(file_path, download_config=download_config)
269 except FileNotFoundError:
270 if script_version is not None:
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/utils/file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs)
306 user_agent=download_config.user_agent,
307 local_files_only=download_config.local_files_only,
--> 308 use_etag=download_config.use_etag,
309 )
310 elif os.path.exists(url_or_filename):
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/utils/file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag)
473 elif response is not None and response.status_code == 404:
474 raise FileNotFoundError("Couldn't find file at {}".format(url))
--> 475 raise ConnectionError("Couldn't reach {}".format(url))
476
477 # Try a second time
ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py
```
And I try to connect to the site with requests:
```
import requests
requests.head("https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py")
```
Similarly Error occurs:
```
---------------------------------------------------------------------------
ConnectionRefusedError Traceback (most recent call last)
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in _new_conn(self)
159 conn = connection.create_connection(
--> 160 (self._dns_host, self.port), self.timeout, **extra_kw
161 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options)
83 if err is not None:
---> 84 raise err
85
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options)
73 sock.bind(source_address)
---> 74 sock.connect(sa)
75 return sock
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
NewConnectionError Traceback (most recent call last)
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
676 headers=headers,
--> 677 chunked=chunked,
678 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw)
380 try:
--> 381 self._validate_conn(conn)
382 except (SocketTimeout, BaseSSLError) as e:
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in _validate_conn(self, conn)
975 if not getattr(conn, "sock", None): # AppEngine might not have `.sock`
--> 976 conn.connect()
977
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in connect(self)
307 # Add certificate verification
--> 308 conn = self._new_conn()
309 hostname = self.host
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in _new_conn(self)
171 raise NewConnectionError(
--> 172 self, "Failed to establish a new connection: %s" % e
173 )
NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
MaxRetryError Traceback (most recent call last)
~/.conda/envs/py36/lib/python3.6/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
448 retries=self.max_retries,
--> 449 timeout=timeout
450 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
724 retries = retries.increment(
--> 725 method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
726 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/retry.py in increment(self, method, url, response, error, _pool, _stacktrace)
438 if new_retry.is_exhausted():
--> 439 raise MaxRetryError(_pool, url, error or ResponseError(cause))
440
MaxRetryError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/1.1.2/datasets/csv/csv.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused',))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last)
<ipython-input-20-18cc3eb4a049> in <module>
1 import requests
2
----> 3 requests.head("https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py")
~/.conda/envs/py36/lib/python3.6/site-packages/requests/api.py in head(url, **kwargs)
102
103 kwargs.setdefault('allow_redirects', False)
--> 104 return request('head', url, **kwargs)
105
106
~/.conda/envs/py36/lib/python3.6/site-packages/requests/api.py in request(method, url, **kwargs)
59 # cases, and look like a memory leak in others.
60 with sessions.Session() as session:
---> 61 return session.request(method=method, url=url, **kwargs)
62
63
~/.conda/envs/py36/lib/python3.6/site-packages/requests/sessions.py in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json)
528 }
529 send_kwargs.update(settings)
--> 530 resp = self.send(prep, **send_kwargs)
531
532 return resp
~/.conda/envs/py36/lib/python3.6/site-packages/requests/sessions.py in send(self, request, **kwargs)
641
642 # Send the request
--> 643 r = adapter.send(request, **kwargs)
644
645 # Total elapsed time of the request (approximately)
~/.conda/envs/py36/lib/python3.6/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
514 raise SSLError(e, request=request)
515
--> 516 raise ConnectionError(e, request=request)
517
518 except ClosedPoolError as e:
ConnectionError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/1.1.2/datasets/csv/csv.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused',))
``` | 155 | load_dataset for LOCAL CSV files report CONNECTION ERROR
## load_dataset for LOCAL CSV files report CONNECTION ERROR
- **Description:**
A local demo csv file:
```
import pandas as pd
import numpy as np
from datasets import load_dataset
import torch
import transformers
df = pd.DataFrame(np.arange(1200).reshape(300,4))
df.to_csv('test.csv', header=False, index=False)
print('datasets version: ', datasets.__version__)
print('pytorch version: ', torch.__version__)
print('transformers version: ', transformers.__version__)
# output:
datasets version: 1.1.2
pytorch version: 1.5.0
transformers version: 3.2.0
```
when I load data through `dataset`:
```
dataset = load_dataset('csv', data_files='./test.csv', delimiter=',', autogenerate_column_names=False)
```
Error infos:
```
ConnectionError Traceback (most recent call last)
<ipython-input-17-bbdadb9a0c78> in <module>
----> 1 dataset = load_dataset('csv', data_files='./test.csv', delimiter=',', autogenerate_column_names=False)
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, save_infos, script_version, **config_kwargs)
588 # Download/copy dataset processing script
589 module_path, hash = prepare_module(
--> 590 path, script_version=script_version, download_config=download_config, download_mode=download_mode, dataset=True
591 )
592
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/load.py in prepare_module(path, script_version, download_config, download_mode, dataset, force_local_path, **download_kwargs)
266 file_path = hf_github_url(path=path, name=name, dataset=dataset, version=script_version)
267 try:
--> 268 local_path = cached_path(file_path, download_config=download_config)
269 except FileNotFoundError:
270 if script_version is not None:
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/utils/file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs)
306 user_agent=download_config.user_agent,
307 local_files_only=download_config.local_files_only,
--> 308 use_etag=download_config.use_etag,
309 )
310 elif os.path.exists(url_or_filename):
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/utils/file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag)
473 elif response is not None and response.status_code == 404:
474 raise FileNotFoundError("Couldn't find file at {}".format(url))
--> 475 raise ConnectionError("Couldn't reach {}".format(url))
476
477 # Try a second time
ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py
```
And I try to connect to the site with requests:
```
import requests
requests.head("https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py")
```
Similarly Error occurs:
```
---------------------------------------------------------------------------
ConnectionRefusedError Traceback (most recent call last)
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in _new_conn(self)
159 conn = connection.create_connection(
--> 160 (self._dns_host, self.port), self.timeout, **extra_kw
161 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options)
83 if err is not None:
---> 84 raise err
85
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options)
73 sock.bind(source_address)
---> 74 sock.connect(sa)
75 return sock
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
NewConnectionError Traceback (most recent call last)
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
676 headers=headers,
--> 677 chunked=chunked,
678 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw)
380 try:
--> 381 self._validate_conn(conn)
382 except (SocketTimeout, BaseSSLError) as e:
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in _validate_conn(self, conn)
975 if not getattr(conn, "sock", None): # AppEngine might not have `.sock`
--> 976 conn.connect()
977
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in connect(self)
307 # Add certificate verification
--> 308 conn = self._new_conn()
309 hostname = self.host
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in _new_conn(self)
171 raise NewConnectionError(
--> 172 self, "Failed to establish a new connection: %s" % e
173 )
NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
MaxRetryError Traceback (most recent call last)
~/.conda/envs/py36/lib/python3.6/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
448 retries=self.max_retries,
--> 449 timeout=timeout
450 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
724 retries = retries.increment(
--> 725 method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
726 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/retry.py in increment(self, method, url, response, error, _pool, _stacktrace)
438 if new_retry.is_exhausted():
--> 439 raise MaxRetryError(_pool, url, error or ResponseError(cause))
440
MaxRetryError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/1.1.2/datasets/csv/csv.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused',))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last)
<ipython-input-20-18cc3eb4a049> in <module>
1 import requests
2
----> 3 requests.head("https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py")
~/.conda/envs/py36/lib/python3.6/site-packages/requests/api.py in head(url, **kwargs)
102
103 kwargs.setdefault('allow_redirects', False)
--> 104 return request('head', url, **kwargs)
105
106
~/.conda/envs/py36/lib/python3.6/site-packages/requests/api.py in request(method, url, **kwargs)
59 # cases, and look like a memory leak in others.
60 with sessions.Session() as session:
---> 61 return session.request(method=method, url=url, **kwargs)
62
63
~/.conda/envs/py36/lib/python3.6/site-packages/requests/sessions.py in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json)
528 }
529 send_kwargs.update(settings)
--> 530 resp = self.send(prep, **send_kwargs)
531
532 return resp
~/.conda/envs/py36/lib/python3.6/site-packages/requests/sessions.py in send(self, request, **kwargs)
641
642 # Send the request
--> 643 r = adapter.send(request, **kwargs)
644
645 # Total elapsed time of the request (approximately)
~/.conda/envs/py36/lib/python3.6/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
514 raise SSLError(e, request=request)
515
--> 516 raise ConnectionError(e, request=request)
517
518 except ClosedPoolError as e:
ConnectionError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/1.1.2/datasets/csv/csv.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused',))
```
> hello, how did you solve this problems?
>
> > > > Hi !
> > > > The url works on my side.
> > > > Is the url working in your navigator ?
> > > > Are you connected to internet ? Does your network block access to `raw.githubusercontent.com` ?
> > >
> > >
> > > I tried another server, it's working now. Thanks a lot.
> > > And I'm curious about why download things from "github" when I load dataset from local files ? Dose datasets work if my network crashed?
> >
> >
> > I download the scripts `https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py` and move it to the package dir `*/datasets/` solved the problem. Could you please put the file `datasets/datasets/csv/csv.py` to `datasets/src/datasets/`?
> > Thanks :D
>
> hello, I tried this. but it still failed. how do you fix this error?
你把那个脚本下载到你本地安装目录下,然后 `load_dataset(csv_script_path, data_fiels)`
| [
-0.3247123361,
0.0161048025,
-0.1088049263,
0.0260047894,
0.2420428693,
0.0198688582,
0.7173693776,
0.3756365776,
0.2509220243,
0.1337040812,
-0.0342322588,
0.1497046649,
0.0797995478,
0.0211835206,
-0.1269314885,
-0.1772823036,
-0.1271574795,
0.2743315697,
-0.4187992811,
0.0144972131,
-0.1248852834,
-0.0023575779,
-0.0349383801,
0.1405337155,
-0.2024639249,
-0.0062389812,
0.1157819852,
0.131277144,
-0.0276921988,
-0.4939195514,
0.3365219831,
0.0402497724,
0.3237728179,
0.3632174134,
-0.0001060309,
0.2135235369,
0.2517406642,
-0.0288666114,
-0.427908659,
-0.4611107707,
-0.1089925617,
-0.3690281808,
0.4228134155,
-0.3986178339,
0.0005742982,
-0.1198976636,
-0.0673584267,
-0.3161988854,
0.4313886464,
0.4785012901,
0.2786397934,
0.4154754877,
0.0165832266,
-0.1110344827,
0.0718219727,
0.0555340014,
-0.0624924079,
0.4061278105,
0.0516242273,
-0.1849910319,
-0.2426784933,
0.0846121535,
-0.1926986128,
0.3955325186,
0.1906039417,
0.0830964446,
0.0377706066,
-0.1966335624,
0.1252264678,
0.1076833904,
0.4764898717,
-0.2314555347,
-0.2321468741,
-0.0584993213,
-0.1994820088,
-0.1881569028,
0.1660739779,
0.0867307782,
-0.1683378518,
0.1474406272,
-0.2638413608,
0.0990802199,
-0.3907521665,
0.1494553834,
-0.1105122343,
0.1547572613,
-0.067184031,
0.1947449744,
0.1582646817,
-0.0564834513,
0.4036886692,
-0.2070344985,
0.1916096658,
0.127662763,
-0.3377638459,
0.1311572939,
0.1394049823,
-0.3861347139,
-0.1064568609,
0.0498940982,
-0.0361736454,
-0.0535907038,
0.1335503757,
0.2916468084,
0.1983622611,
0.0791433603,
-0.1308654249,
0.2947738469,
0.2687247992,
0.1325624138,
0.0422616452,
-0.06248492,
-0.0800575614,
-0.3558064699,
0.1634978503,
0.1999797225,
0.4894589186,
-0.0474283397,
-0.2816002369,
0.1326405704,
0.0129100829,
-0.1073728949,
0.018969439,
0.3589312732,
-0.08796826,
0.2043160647,
0.0424529389,
0.0136887487,
-0.2235276103,
0.0845433101,
-0.2120841295,
0.037955571,
-0.1193307936,
-0.0695322379,
0.381331414,
-0.0790899321,
0.0466330424,
-0.0146685168,
0.0989308655,
0.0503489971,
0.2611701488,
-0.2932828665,
0.0491828322,
0.4129322469,
0.0561540276,
0.2478839457,
0.4095255435,
-0.1842339784,
-0.1060606241,
0.0865908191,
-0.2045432031,
-0.3371694088,
-0.338547945,
0.2402115613,
0.0368899927,
0.1089415699,
-0.0184666477,
-0.3302740753,
0.0986591503,
-0.2747160792,
-0.1541593969,
-0.3237558901,
-0.0389049351,
-0.2159914374,
0.3081871867,
0.6463353038,
-0.4303182662,
0.042956233,
0.0566365495,
-0.1299163401,
0.141459927,
0.2508479953,
-0.3076962531,
0.0851257443,
-0.2284610868,
-0.0966765881,
0.2314823866,
-0.3093753457,
-0.3032815456,
0.5005193353,
-0.2373454273,
-0.0729435831,
0.2169772089,
0.0126163065,
0.2910564542,
0.1858280897,
0.2615151703,
0.300047636,
-0.1007599086,
0.1175526902,
-0.079923287,
-0.2225607783,
0.1973580718,
0.1164560169,
0.0098164212,
0.2231839895,
0.3249673545,
-0.2579790056,
0.1741140485,
-0.0768724382,
0.1447919607,
0.1345078796,
0.173971951,
0.0419842787,
-0.0606002249,
-0.0216644071,
-0.5085176229,
0.1381557584,
0.131092459,
0.0903008729,
-0.4376564324,
-0.016269058,
-0.3771231472,
0.005172275,
-0.2671601176,
-0.0302422959,
0.2100170702,
0.3415310383,
-0.0191594549,
-0.0523176938,
-0.0488571003,
0.3256911337,
-0.1166131869,
-0.0192559678,
-0.4156304598,
0.3395552933,
-0.3544685841,
-0.0690030828,
0.0523540229,
-0.0314199738,
0.1626497507,
-0.1825554669,
-0.2719685137,
0.3561236858,
-0.0955852717,
0.2182244062,
0.0170495138,
-0.0044383109,
0.0526204929,
-0.2450992167,
0.032377407,
0.0311137661,
0.1533316225,
0.0431828797,
-0.2613136172,
0.3525987267,
-0.0953490734,
0.1633696854,
0.0506538972,
0.0704122409,
0.451421231,
0.0119943395,
-0.1140477806,
-0.1085088775,
0.1054949313,
0.2389211655,
0.2262360454,
0.0491033345,
-0.180272162,
-0.1886239499,
0.2018590122,
-0.1532274336,
0.0116078872,
0.0923531502,
-0.1086221337,
-0.0442814827,
0.214684695,
0.2319190353,
0.5149136186,
0.1026021913,
-0.1526021361,
-0.0183212329,
-0.050323505,
-0.133823052,
0.1102776229,
-0.0386922359,
0.0448775776,
0.3272632957,
0.0759821832,
0.106980443,
-0.2410075068,
-0.3630866408,
-0.0419490263,
0.2638893127,
-0.3493006825,
0.2479265928,
-0.1645682454,
0.0182820931,
-0.2659018636,
-0.0503299907,
-0.1105000228,
-0.1780741811,
-0.3695808351,
0.3607574999,
-0.0763825253,
0.2372517139,
-0.279001534,
-0.0516412556,
0.3879841864,
-0.4498327374,
-0.073059842,
-0.2081663162,
-0.160145998,
0.0924806669,
0.0935097486,
-0.1568923295,
0.3031651378,
-0.0989922062,
0.0205263309,
-0.161062479,
-0.0238345936,
-0.0821167827,
0.0125280395,
0.1283057779,
0.1878543645,
0.4475226104,
0.1206025183,
-0.5035607815,
0.3184548914,
-0.0834971517,
0.0481938496,
0.1964567006,
-0.0537021868,
-0.2032558173,
0.0006877333,
-0.6345353127,
-0.5991460681,
-0.4698643684,
0.1375345141,
0.0665088445,
0.213231653,
0.2955248356,
0.2269019037,
0.2099234164,
0.0866583288,
0.0757487267,
-0.0596129894,
-0.1591840684,
0.3499987423,
-0.2349600941,
-0.3570281863,
-0.1133958623,
-0.1152547151,
0.1219444722,
0.1364866644,
-0.4447760582,
-0.0236160941,
-0.1746836454,
0.3565402031,
-0.0467240848,
0.0517050326,
0.4662777483,
0.1686569005,
-0.1706289053,
0.1126607358,
-0.2441870868,
-0.1408114135,
0.19425641,
0.0843702108,
0.0044111069,
0.4593693316,
-0.1589592993,
0.6532874107,
-0.0798087344,
-0.1897099614,
0.2884310782,
-0.1362252682,
0.342966795,
-0.1845075488,
-0.6308504343,
-0.0917782113,
-0.3062296808,
-0.2018837184,
0.0107531957,
-0.229728967,
-0.2305865884,
-0.3641995788,
0.0186994895,
-0.3049328327,
-0.3137823939,
0.1363258511,
-0.1196977943,
0.3635419011,
0.0468817055,
-0.0130359977,
-0.2529371083,
-0.0600581095,
-0.2486276627,
0.3659865558,
-0.0062222742,
-0.093166098,
-0.2668783665,
0.1069132537,
-0.2810814977,
0.2432363331,
0.0800496489,
0.5622869134,
-0.2027089596,
-0.1867957264,
-0.037793126,
0.0581579693,
0.4028223753,
0.0884442106,
0.0874636769,
0.2563878894,
-0.0515907966,
-0.3120605648,
-0.0862112939,
-0.088684231,
0.22119537,
0.2276991457,
0.4607944787,
0.0591155738,
-0.1269775033,
0.3169067204,
0.2359133363,
-0.0872560292,
-0.179053694,
-0.2838753462,
-0.0508109294,
-0.3215521276,
-0.1053740755,
-0.1118416339,
0.1790323257,
-0.1732904613,
-0.1281273663,
0.0737239197,
-0.1710193753,
0.0011047982,
0.1193198115,
-0.1456996202,
0.0959774703,
0.2179177999,
0.1906980872,
0.2628869116,
0.2021608949,
0.4429311454,
-0.2094502896,
-0.5551644564,
0.1772617847,
-0.0145552345,
0.107831195,
0.1052372754,
-0.1369357109,
-0.148758322,
0.1752744019,
0.1808559597,
-0.1539574564,
0.1938526928,
0.2498670667,
-0.1166541502,
-0.3529872894,
-0.4148067832,
0.1314439476,
-0.2005928159,
-0.0967517868,
0.1951030493,
-0.3385472894,
-0.0635158122,
0.2595237494,
-0.1583104432,
0.669519186,
-0.1268932223,
0.1809172332,
0.1628528982,
-0.1345140785,
0.4483828843,
-0.1574921161,
0.1192622781,
-0.3441150188,
-0.2360043377,
-0.0994973779,
-0.2498577386,
0.321854651,
0.0098682111,
-0.096961394,
0.2364210784,
-0.0614167824,
0.2813481688,
0.0652795136,
0.2203808874,
0.0612793863,
-0.2302691191,
-0.1830086559,
0.1901202649,
-0.0931364298,
0.4134555459,
0.0299710073,
-0.1137414426,
-0.0124851018,
-0.3615665138,
-0.0431396291,
0.0593215376,
-0.2830665112,
0.4136628211,
0.0488294065,
-0.3536546826,
-0.0551412143,
0.1381697357,
-0.1533754468,
0.078329742,
-0.1498510987,
-0.0794562995,
-0.108091481,
-0.0611959063,
-0.116901055,
-0.0029087029,
0.1473996192,
0.0824842453,
-0.2685492039,
0.275572449,
-0.1178315729,
-0.3403717875,
0.1828362346,
0.2773402333,
0.2622920275,
-0.5065496564,
-0.1399479955,
-0.3102686107,
-0.1075607389,
-0.1293205172,
0.200531885,
-0.1123934239,
0.0256724395,
0.0055954307,
-0.0878890529,
-0.3105520308,
-0.0419632941,
0.6014829874,
-0.0718145296,
-0.0663498938,
0.3271545768,
0.0624913573,
-0.1843171269,
-0.2428676486,
0.1990405321,
-0.004432261,
-0.467797786,
-0.093008019,
0.068779856,
0.0586961806,
-0.1138907149,
0.071775943,
0.2206759751,
0.1031342298,
0.0357835889,
-0.4803102314,
-0.5924566984,
-0.0901233926,
-0.0120881088,
0.1493127197,
0.4447920024,
0.223069638,
0.0557790995,
0.1090676039,
-0.3599543273,
-0.0675610825,
-0.1895692647,
0.1576154232,
0.5117646456,
-0.2647096217,
0.1770651639,
-0.1552707255,
0.2409110814,
-0.1429233551,
-0.1262868792,
-0.3133457601,
0.0018987805,
0.0618450418,
0.0202442408,
-0.3433458507,
-0.3376549482,
-0.2684758604,
-0.0148098581,
-0.0740636885,
-0.000341475,
0.2130772769,
-0.1187316179,
0.2121611238,
-0.2453934252,
0.0810143799,
-0.1340084523,
0.1350560635,
-0.2799660563,
0.2402765006,
0.027082596,
0.2827393115,
-0.0718642697,
-0.0194424465,
-0.4871895313,
-0.0540026613,
0.0109265707,
0.0986868292,
0.3070953488,
-0.1801374257,
-0.137321189,
0.0053288788,
0.399123311,
0.2806530297,
-0.2605661452,
0.0164486319,
0.1206056252,
0.3077167869,
-0.2169091702,
-0.112417683,
0.1596364826,
0.0255127065,
0.2056991607,
-0.0233399421,
0.0817392692,
-0.194660157,
0.2731686532,
0.0354822651,
0.4447304606,
-0.0881809145,
0.2025936991,
0.6118389368,
0.0197392628,
-0.002939878,
0.161792174,
0.1720684916,
0.1941982806,
0.427090466,
-0.1792922616,
-0.0874078274,
-0.0603711121,
0.1699081361,
-0.178252995,
-0.473313868,
0.143280521,
-0.1597067267,
-0.2988284528,
-0.0670231879,
0.0496744998,
0.2803229094,
-0.2598398924,
0.0749867558,
-0.1056552231,
0.1608564854,
-0.0922898352,
-0.1408544183,
0.0897712409,
-0.073097147,
-0.1290262192,
-0.0425560437,
0.1132717133,
0.0838868096,
0.2775799334,
0.2630509138,
-0.0881880075,
-0.2006155401,
0.1970884651,
0.2208368778,
-0.0557489768,
-0.1138676479,
0.1557370722,
0.3445363343,
0.1739408225,
-0.1311291903,
0.1761197597,
0.6315096021,
0.3470623195,
0.0025092885,
0.2030486763,
-0.1124483719,
-0.1424657851,
-0.0864443034,
0.0251590386,
-0.0924743563,
0.2070284039,
0.3563941717,
0.321375519,
-0.1901988536,
0.3339132071,
-0.0463945605,
-0.1453464627,
-0.1938876212,
0.3707818985,
0.0753011703,
-0.2841670513,
-0.1254213005,
0.0150403343,
-0.4021414518,
0.0693430603,
0.4656213522,
0.0106837526,
0.2924724817,
0.0018881038,
0.1094438434,
-0.0905620456,
0.4269733727,
0.1445120126,
0.3763490319,
-0.4452264011,
0.0112879276,
-0.5027254224,
0.1829466075,
-0.0391800031,
0.0534200296,
-0.0442362018,
0.1701688021,
0.0105170794,
0.202702865,
-0.1474990398,
-0.0566703938,
0.0178524368,
0.1256342083,
0.026939936,
-0.1631550193,
-0.2020684928,
0.0583003312,
-0.0021006279,
-0.3904862702,
0.2174810469,
0.0210844055,
0.1405796409,
-0.2631098926,
-0.0637242272,
0.1954774559,
0.1273898631,
0.3907390535,
0.1600240171,
0.6441076398,
-0.1056480855,
0.0829368904,
-0.0683097094,
-0.2543078363,
0.0151444711,
0.1953170598,
0.2678669393,
0.2144359797,
-0.0889866352,
-0.3141359091,
-0.4714732468,
0.399718076,
-0.0541139357,
-0.085738197,
-0.0444331318,
-0.1015132666,
-0.029540576,
0.0428922661,
0.0381941572,
-0.0330939554,
0.0117345769,
0.2108487189,
-0.176004678,
-0.4096620679,
0.4183119535,
-0.2643620968,
-0.2504860163,
-0.1710996628,
0.278177619,
-0.046329204,
0.2893787026,
-0.2773313522,
0.295822978,
0.4524030387,
-0.211067766,
-0.2147777826,
0.2234392911,
0.0190693475,
0.2123970389,
-0.0396618843,
0.4695011675,
0.1008587778,
-0.242797032,
-0.1551303118,
-0.2195901722
] |
https://github.com/huggingface/datasets/issues/807 | load_dataset for LOCAL CSV files report CONNECTION ERROR | > > hello, how did you solve this problems?
> > > > > Hi !
> > > > > The url works on my side.
> > > > > Is the url working in your navigator ?
> > > > > Are you connected to internet ? Does your network block access to `raw.githubusercontent.com` ?
> > > >
> > > >
> > > > I tried another server, it's working now. Thanks a lot.
> > > > And I'm curious about why download things from "github" when I load dataset from local files ? Dose datasets work if my network crashed?
> > >
> > >
> > > I download the scripts `https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py` and move it to the package dir `*/datasets/` solved the problem. Could you please put the file `datasets/datasets/csv/csv.py` to `datasets/src/datasets/`?
> > > Thanks :D
> >
> >
> > hello, I tried this. but it still failed. how do you fix this error?
>
> 你把那个脚本下载到你本地安装目录下,然后 `load_dataset(csv_script_path, data_fiels)`
好的好的!解决了,感谢感谢!!! | ## load_dataset for LOCAL CSV files report CONNECTION ERROR
- **Description:**
A local demo csv file:
```
import pandas as pd
import numpy as np
from datasets import load_dataset
import torch
import transformers
df = pd.DataFrame(np.arange(1200).reshape(300,4))
df.to_csv('test.csv', header=False, index=False)
print('datasets version: ', datasets.__version__)
print('pytorch version: ', torch.__version__)
print('transformers version: ', transformers.__version__)
# output:
datasets version: 1.1.2
pytorch version: 1.5.0
transformers version: 3.2.0
```
when I load data through `dataset`:
```
dataset = load_dataset('csv', data_files='./test.csv', delimiter=',', autogenerate_column_names=False)
```
Error infos:
```
ConnectionError Traceback (most recent call last)
<ipython-input-17-bbdadb9a0c78> in <module>
----> 1 dataset = load_dataset('csv', data_files='./test.csv', delimiter=',', autogenerate_column_names=False)
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, save_infos, script_version, **config_kwargs)
588 # Download/copy dataset processing script
589 module_path, hash = prepare_module(
--> 590 path, script_version=script_version, download_config=download_config, download_mode=download_mode, dataset=True
591 )
592
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/load.py in prepare_module(path, script_version, download_config, download_mode, dataset, force_local_path, **download_kwargs)
266 file_path = hf_github_url(path=path, name=name, dataset=dataset, version=script_version)
267 try:
--> 268 local_path = cached_path(file_path, download_config=download_config)
269 except FileNotFoundError:
270 if script_version is not None:
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/utils/file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs)
306 user_agent=download_config.user_agent,
307 local_files_only=download_config.local_files_only,
--> 308 use_etag=download_config.use_etag,
309 )
310 elif os.path.exists(url_or_filename):
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/utils/file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag)
473 elif response is not None and response.status_code == 404:
474 raise FileNotFoundError("Couldn't find file at {}".format(url))
--> 475 raise ConnectionError("Couldn't reach {}".format(url))
476
477 # Try a second time
ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py
```
And I try to connect to the site with requests:
```
import requests
requests.head("https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py")
```
Similarly Error occurs:
```
---------------------------------------------------------------------------
ConnectionRefusedError Traceback (most recent call last)
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in _new_conn(self)
159 conn = connection.create_connection(
--> 160 (self._dns_host, self.port), self.timeout, **extra_kw
161 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options)
83 if err is not None:
---> 84 raise err
85
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options)
73 sock.bind(source_address)
---> 74 sock.connect(sa)
75 return sock
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
NewConnectionError Traceback (most recent call last)
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
676 headers=headers,
--> 677 chunked=chunked,
678 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw)
380 try:
--> 381 self._validate_conn(conn)
382 except (SocketTimeout, BaseSSLError) as e:
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in _validate_conn(self, conn)
975 if not getattr(conn, "sock", None): # AppEngine might not have `.sock`
--> 976 conn.connect()
977
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in connect(self)
307 # Add certificate verification
--> 308 conn = self._new_conn()
309 hostname = self.host
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in _new_conn(self)
171 raise NewConnectionError(
--> 172 self, "Failed to establish a new connection: %s" % e
173 )
NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
MaxRetryError Traceback (most recent call last)
~/.conda/envs/py36/lib/python3.6/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
448 retries=self.max_retries,
--> 449 timeout=timeout
450 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
724 retries = retries.increment(
--> 725 method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
726 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/retry.py in increment(self, method, url, response, error, _pool, _stacktrace)
438 if new_retry.is_exhausted():
--> 439 raise MaxRetryError(_pool, url, error or ResponseError(cause))
440
MaxRetryError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/1.1.2/datasets/csv/csv.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused',))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last)
<ipython-input-20-18cc3eb4a049> in <module>
1 import requests
2
----> 3 requests.head("https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py")
~/.conda/envs/py36/lib/python3.6/site-packages/requests/api.py in head(url, **kwargs)
102
103 kwargs.setdefault('allow_redirects', False)
--> 104 return request('head', url, **kwargs)
105
106
~/.conda/envs/py36/lib/python3.6/site-packages/requests/api.py in request(method, url, **kwargs)
59 # cases, and look like a memory leak in others.
60 with sessions.Session() as session:
---> 61 return session.request(method=method, url=url, **kwargs)
62
63
~/.conda/envs/py36/lib/python3.6/site-packages/requests/sessions.py in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json)
528 }
529 send_kwargs.update(settings)
--> 530 resp = self.send(prep, **send_kwargs)
531
532 return resp
~/.conda/envs/py36/lib/python3.6/site-packages/requests/sessions.py in send(self, request, **kwargs)
641
642 # Send the request
--> 643 r = adapter.send(request, **kwargs)
644
645 # Total elapsed time of the request (approximately)
~/.conda/envs/py36/lib/python3.6/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
514 raise SSLError(e, request=request)
515
--> 516 raise ConnectionError(e, request=request)
517
518 except ClosedPoolError as e:
ConnectionError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/1.1.2/datasets/csv/csv.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused',))
``` | 174 | load_dataset for LOCAL CSV files report CONNECTION ERROR
## load_dataset for LOCAL CSV files report CONNECTION ERROR
- **Description:**
A local demo csv file:
```
import pandas as pd
import numpy as np
from datasets import load_dataset
import torch
import transformers
df = pd.DataFrame(np.arange(1200).reshape(300,4))
df.to_csv('test.csv', header=False, index=False)
print('datasets version: ', datasets.__version__)
print('pytorch version: ', torch.__version__)
print('transformers version: ', transformers.__version__)
# output:
datasets version: 1.1.2
pytorch version: 1.5.0
transformers version: 3.2.0
```
when I load data through `dataset`:
```
dataset = load_dataset('csv', data_files='./test.csv', delimiter=',', autogenerate_column_names=False)
```
Error infos:
```
ConnectionError Traceback (most recent call last)
<ipython-input-17-bbdadb9a0c78> in <module>
----> 1 dataset = load_dataset('csv', data_files='./test.csv', delimiter=',', autogenerate_column_names=False)
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, save_infos, script_version, **config_kwargs)
588 # Download/copy dataset processing script
589 module_path, hash = prepare_module(
--> 590 path, script_version=script_version, download_config=download_config, download_mode=download_mode, dataset=True
591 )
592
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/load.py in prepare_module(path, script_version, download_config, download_mode, dataset, force_local_path, **download_kwargs)
266 file_path = hf_github_url(path=path, name=name, dataset=dataset, version=script_version)
267 try:
--> 268 local_path = cached_path(file_path, download_config=download_config)
269 except FileNotFoundError:
270 if script_version is not None:
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/utils/file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs)
306 user_agent=download_config.user_agent,
307 local_files_only=download_config.local_files_only,
--> 308 use_etag=download_config.use_etag,
309 )
310 elif os.path.exists(url_or_filename):
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/utils/file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag)
473 elif response is not None and response.status_code == 404:
474 raise FileNotFoundError("Couldn't find file at {}".format(url))
--> 475 raise ConnectionError("Couldn't reach {}".format(url))
476
477 # Try a second time
ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py
```
And I try to connect to the site with requests:
```
import requests
requests.head("https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py")
```
Similarly Error occurs:
```
---------------------------------------------------------------------------
ConnectionRefusedError Traceback (most recent call last)
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in _new_conn(self)
159 conn = connection.create_connection(
--> 160 (self._dns_host, self.port), self.timeout, **extra_kw
161 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options)
83 if err is not None:
---> 84 raise err
85
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options)
73 sock.bind(source_address)
---> 74 sock.connect(sa)
75 return sock
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
NewConnectionError Traceback (most recent call last)
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
676 headers=headers,
--> 677 chunked=chunked,
678 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw)
380 try:
--> 381 self._validate_conn(conn)
382 except (SocketTimeout, BaseSSLError) as e:
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in _validate_conn(self, conn)
975 if not getattr(conn, "sock", None): # AppEngine might not have `.sock`
--> 976 conn.connect()
977
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in connect(self)
307 # Add certificate verification
--> 308 conn = self._new_conn()
309 hostname = self.host
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in _new_conn(self)
171 raise NewConnectionError(
--> 172 self, "Failed to establish a new connection: %s" % e
173 )
NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
MaxRetryError Traceback (most recent call last)
~/.conda/envs/py36/lib/python3.6/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
448 retries=self.max_retries,
--> 449 timeout=timeout
450 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
724 retries = retries.increment(
--> 725 method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
726 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/retry.py in increment(self, method, url, response, error, _pool, _stacktrace)
438 if new_retry.is_exhausted():
--> 439 raise MaxRetryError(_pool, url, error or ResponseError(cause))
440
MaxRetryError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/1.1.2/datasets/csv/csv.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused',))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last)
<ipython-input-20-18cc3eb4a049> in <module>
1 import requests
2
----> 3 requests.head("https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py")
~/.conda/envs/py36/lib/python3.6/site-packages/requests/api.py in head(url, **kwargs)
102
103 kwargs.setdefault('allow_redirects', False)
--> 104 return request('head', url, **kwargs)
105
106
~/.conda/envs/py36/lib/python3.6/site-packages/requests/api.py in request(method, url, **kwargs)
59 # cases, and look like a memory leak in others.
60 with sessions.Session() as session:
---> 61 return session.request(method=method, url=url, **kwargs)
62
63
~/.conda/envs/py36/lib/python3.6/site-packages/requests/sessions.py in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json)
528 }
529 send_kwargs.update(settings)
--> 530 resp = self.send(prep, **send_kwargs)
531
532 return resp
~/.conda/envs/py36/lib/python3.6/site-packages/requests/sessions.py in send(self, request, **kwargs)
641
642 # Send the request
--> 643 r = adapter.send(request, **kwargs)
644
645 # Total elapsed time of the request (approximately)
~/.conda/envs/py36/lib/python3.6/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
514 raise SSLError(e, request=request)
515
--> 516 raise ConnectionError(e, request=request)
517
518 except ClosedPoolError as e:
ConnectionError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/1.1.2/datasets/csv/csv.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused',))
```
> > hello, how did you solve this problems?
> > > > > Hi !
> > > > > The url works on my side.
> > > > > Is the url working in your navigator ?
> > > > > Are you connected to internet ? Does your network block access to `raw.githubusercontent.com` ?
> > > >
> > > >
> > > > I tried another server, it's working now. Thanks a lot.
> > > > And I'm curious about why download things from "github" when I load dataset from local files ? Dose datasets work if my network crashed?
> > >
> > >
> > > I download the scripts `https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py` and move it to the package dir `*/datasets/` solved the problem. Could you please put the file `datasets/datasets/csv/csv.py` to `datasets/src/datasets/`?
> > > Thanks :D
> >
> >
> > hello, I tried this. but it still failed. how do you fix this error?
>
> 你把那个脚本下载到你本地安装目录下,然后 `load_dataset(csv_script_path, data_fiels)`
好的好的!解决了,感谢感谢!!! | [
-0.3247123361,
0.0161048025,
-0.1088049263,
0.0260047894,
0.2420428693,
0.0198688582,
0.7173693776,
0.3756365776,
0.2509220243,
0.1337040812,
-0.0342322588,
0.1497046649,
0.0797995478,
0.0211835206,
-0.1269314885,
-0.1772823036,
-0.1271574795,
0.2743315697,
-0.4187992811,
0.0144972131,
-0.1248852834,
-0.0023575779,
-0.0349383801,
0.1405337155,
-0.2024639249,
-0.0062389812,
0.1157819852,
0.131277144,
-0.0276921988,
-0.4939195514,
0.3365219831,
0.0402497724,
0.3237728179,
0.3632174134,
-0.0001060309,
0.2135235369,
0.2517406642,
-0.0288666114,
-0.427908659,
-0.4611107707,
-0.1089925617,
-0.3690281808,
0.4228134155,
-0.3986178339,
0.0005742982,
-0.1198976636,
-0.0673584267,
-0.3161988854,
0.4313886464,
0.4785012901,
0.2786397934,
0.4154754877,
0.0165832266,
-0.1110344827,
0.0718219727,
0.0555340014,
-0.0624924079,
0.4061278105,
0.0516242273,
-0.1849910319,
-0.2426784933,
0.0846121535,
-0.1926986128,
0.3955325186,
0.1906039417,
0.0830964446,
0.0377706066,
-0.1966335624,
0.1252264678,
0.1076833904,
0.4764898717,
-0.2314555347,
-0.2321468741,
-0.0584993213,
-0.1994820088,
-0.1881569028,
0.1660739779,
0.0867307782,
-0.1683378518,
0.1474406272,
-0.2638413608,
0.0990802199,
-0.3907521665,
0.1494553834,
-0.1105122343,
0.1547572613,
-0.067184031,
0.1947449744,
0.1582646817,
-0.0564834513,
0.4036886692,
-0.2070344985,
0.1916096658,
0.127662763,
-0.3377638459,
0.1311572939,
0.1394049823,
-0.3861347139,
-0.1064568609,
0.0498940982,
-0.0361736454,
-0.0535907038,
0.1335503757,
0.2916468084,
0.1983622611,
0.0791433603,
-0.1308654249,
0.2947738469,
0.2687247992,
0.1325624138,
0.0422616452,
-0.06248492,
-0.0800575614,
-0.3558064699,
0.1634978503,
0.1999797225,
0.4894589186,
-0.0474283397,
-0.2816002369,
0.1326405704,
0.0129100829,
-0.1073728949,
0.018969439,
0.3589312732,
-0.08796826,
0.2043160647,
0.0424529389,
0.0136887487,
-0.2235276103,
0.0845433101,
-0.2120841295,
0.037955571,
-0.1193307936,
-0.0695322379,
0.381331414,
-0.0790899321,
0.0466330424,
-0.0146685168,
0.0989308655,
0.0503489971,
0.2611701488,
-0.2932828665,
0.0491828322,
0.4129322469,
0.0561540276,
0.2478839457,
0.4095255435,
-0.1842339784,
-0.1060606241,
0.0865908191,
-0.2045432031,
-0.3371694088,
-0.338547945,
0.2402115613,
0.0368899927,
0.1089415699,
-0.0184666477,
-0.3302740753,
0.0986591503,
-0.2747160792,
-0.1541593969,
-0.3237558901,
-0.0389049351,
-0.2159914374,
0.3081871867,
0.6463353038,
-0.4303182662,
0.042956233,
0.0566365495,
-0.1299163401,
0.141459927,
0.2508479953,
-0.3076962531,
0.0851257443,
-0.2284610868,
-0.0966765881,
0.2314823866,
-0.3093753457,
-0.3032815456,
0.5005193353,
-0.2373454273,
-0.0729435831,
0.2169772089,
0.0126163065,
0.2910564542,
0.1858280897,
0.2615151703,
0.300047636,
-0.1007599086,
0.1175526902,
-0.079923287,
-0.2225607783,
0.1973580718,
0.1164560169,
0.0098164212,
0.2231839895,
0.3249673545,
-0.2579790056,
0.1741140485,
-0.0768724382,
0.1447919607,
0.1345078796,
0.173971951,
0.0419842787,
-0.0606002249,
-0.0216644071,
-0.5085176229,
0.1381557584,
0.131092459,
0.0903008729,
-0.4376564324,
-0.016269058,
-0.3771231472,
0.005172275,
-0.2671601176,
-0.0302422959,
0.2100170702,
0.3415310383,
-0.0191594549,
-0.0523176938,
-0.0488571003,
0.3256911337,
-0.1166131869,
-0.0192559678,
-0.4156304598,
0.3395552933,
-0.3544685841,
-0.0690030828,
0.0523540229,
-0.0314199738,
0.1626497507,
-0.1825554669,
-0.2719685137,
0.3561236858,
-0.0955852717,
0.2182244062,
0.0170495138,
-0.0044383109,
0.0526204929,
-0.2450992167,
0.032377407,
0.0311137661,
0.1533316225,
0.0431828797,
-0.2613136172,
0.3525987267,
-0.0953490734,
0.1633696854,
0.0506538972,
0.0704122409,
0.451421231,
0.0119943395,
-0.1140477806,
-0.1085088775,
0.1054949313,
0.2389211655,
0.2262360454,
0.0491033345,
-0.180272162,
-0.1886239499,
0.2018590122,
-0.1532274336,
0.0116078872,
0.0923531502,
-0.1086221337,
-0.0442814827,
0.214684695,
0.2319190353,
0.5149136186,
0.1026021913,
-0.1526021361,
-0.0183212329,
-0.050323505,
-0.133823052,
0.1102776229,
-0.0386922359,
0.0448775776,
0.3272632957,
0.0759821832,
0.106980443,
-0.2410075068,
-0.3630866408,
-0.0419490263,
0.2638893127,
-0.3493006825,
0.2479265928,
-0.1645682454,
0.0182820931,
-0.2659018636,
-0.0503299907,
-0.1105000228,
-0.1780741811,
-0.3695808351,
0.3607574999,
-0.0763825253,
0.2372517139,
-0.279001534,
-0.0516412556,
0.3879841864,
-0.4498327374,
-0.073059842,
-0.2081663162,
-0.160145998,
0.0924806669,
0.0935097486,
-0.1568923295,
0.3031651378,
-0.0989922062,
0.0205263309,
-0.161062479,
-0.0238345936,
-0.0821167827,
0.0125280395,
0.1283057779,
0.1878543645,
0.4475226104,
0.1206025183,
-0.5035607815,
0.3184548914,
-0.0834971517,
0.0481938496,
0.1964567006,
-0.0537021868,
-0.2032558173,
0.0006877333,
-0.6345353127,
-0.5991460681,
-0.4698643684,
0.1375345141,
0.0665088445,
0.213231653,
0.2955248356,
0.2269019037,
0.2099234164,
0.0866583288,
0.0757487267,
-0.0596129894,
-0.1591840684,
0.3499987423,
-0.2349600941,
-0.3570281863,
-0.1133958623,
-0.1152547151,
0.1219444722,
0.1364866644,
-0.4447760582,
-0.0236160941,
-0.1746836454,
0.3565402031,
-0.0467240848,
0.0517050326,
0.4662777483,
0.1686569005,
-0.1706289053,
0.1126607358,
-0.2441870868,
-0.1408114135,
0.19425641,
0.0843702108,
0.0044111069,
0.4593693316,
-0.1589592993,
0.6532874107,
-0.0798087344,
-0.1897099614,
0.2884310782,
-0.1362252682,
0.342966795,
-0.1845075488,
-0.6308504343,
-0.0917782113,
-0.3062296808,
-0.2018837184,
0.0107531957,
-0.229728967,
-0.2305865884,
-0.3641995788,
0.0186994895,
-0.3049328327,
-0.3137823939,
0.1363258511,
-0.1196977943,
0.3635419011,
0.0468817055,
-0.0130359977,
-0.2529371083,
-0.0600581095,
-0.2486276627,
0.3659865558,
-0.0062222742,
-0.093166098,
-0.2668783665,
0.1069132537,
-0.2810814977,
0.2432363331,
0.0800496489,
0.5622869134,
-0.2027089596,
-0.1867957264,
-0.037793126,
0.0581579693,
0.4028223753,
0.0884442106,
0.0874636769,
0.2563878894,
-0.0515907966,
-0.3120605648,
-0.0862112939,
-0.088684231,
0.22119537,
0.2276991457,
0.4607944787,
0.0591155738,
-0.1269775033,
0.3169067204,
0.2359133363,
-0.0872560292,
-0.179053694,
-0.2838753462,
-0.0508109294,
-0.3215521276,
-0.1053740755,
-0.1118416339,
0.1790323257,
-0.1732904613,
-0.1281273663,
0.0737239197,
-0.1710193753,
0.0011047982,
0.1193198115,
-0.1456996202,
0.0959774703,
0.2179177999,
0.1906980872,
0.2628869116,
0.2021608949,
0.4429311454,
-0.2094502896,
-0.5551644564,
0.1772617847,
-0.0145552345,
0.107831195,
0.1052372754,
-0.1369357109,
-0.148758322,
0.1752744019,
0.1808559597,
-0.1539574564,
0.1938526928,
0.2498670667,
-0.1166541502,
-0.3529872894,
-0.4148067832,
0.1314439476,
-0.2005928159,
-0.0967517868,
0.1951030493,
-0.3385472894,
-0.0635158122,
0.2595237494,
-0.1583104432,
0.669519186,
-0.1268932223,
0.1809172332,
0.1628528982,
-0.1345140785,
0.4483828843,
-0.1574921161,
0.1192622781,
-0.3441150188,
-0.2360043377,
-0.0994973779,
-0.2498577386,
0.321854651,
0.0098682111,
-0.096961394,
0.2364210784,
-0.0614167824,
0.2813481688,
0.0652795136,
0.2203808874,
0.0612793863,
-0.2302691191,
-0.1830086559,
0.1901202649,
-0.0931364298,
0.4134555459,
0.0299710073,
-0.1137414426,
-0.0124851018,
-0.3615665138,
-0.0431396291,
0.0593215376,
-0.2830665112,
0.4136628211,
0.0488294065,
-0.3536546826,
-0.0551412143,
0.1381697357,
-0.1533754468,
0.078329742,
-0.1498510987,
-0.0794562995,
-0.108091481,
-0.0611959063,
-0.116901055,
-0.0029087029,
0.1473996192,
0.0824842453,
-0.2685492039,
0.275572449,
-0.1178315729,
-0.3403717875,
0.1828362346,
0.2773402333,
0.2622920275,
-0.5065496564,
-0.1399479955,
-0.3102686107,
-0.1075607389,
-0.1293205172,
0.200531885,
-0.1123934239,
0.0256724395,
0.0055954307,
-0.0878890529,
-0.3105520308,
-0.0419632941,
0.6014829874,
-0.0718145296,
-0.0663498938,
0.3271545768,
0.0624913573,
-0.1843171269,
-0.2428676486,
0.1990405321,
-0.004432261,
-0.467797786,
-0.093008019,
0.068779856,
0.0586961806,
-0.1138907149,
0.071775943,
0.2206759751,
0.1031342298,
0.0357835889,
-0.4803102314,
-0.5924566984,
-0.0901233926,
-0.0120881088,
0.1493127197,
0.4447920024,
0.223069638,
0.0557790995,
0.1090676039,
-0.3599543273,
-0.0675610825,
-0.1895692647,
0.1576154232,
0.5117646456,
-0.2647096217,
0.1770651639,
-0.1552707255,
0.2409110814,
-0.1429233551,
-0.1262868792,
-0.3133457601,
0.0018987805,
0.0618450418,
0.0202442408,
-0.3433458507,
-0.3376549482,
-0.2684758604,
-0.0148098581,
-0.0740636885,
-0.000341475,
0.2130772769,
-0.1187316179,
0.2121611238,
-0.2453934252,
0.0810143799,
-0.1340084523,
0.1350560635,
-0.2799660563,
0.2402765006,
0.027082596,
0.2827393115,
-0.0718642697,
-0.0194424465,
-0.4871895313,
-0.0540026613,
0.0109265707,
0.0986868292,
0.3070953488,
-0.1801374257,
-0.137321189,
0.0053288788,
0.399123311,
0.2806530297,
-0.2605661452,
0.0164486319,
0.1206056252,
0.3077167869,
-0.2169091702,
-0.112417683,
0.1596364826,
0.0255127065,
0.2056991607,
-0.0233399421,
0.0817392692,
-0.194660157,
0.2731686532,
0.0354822651,
0.4447304606,
-0.0881809145,
0.2025936991,
0.6118389368,
0.0197392628,
-0.002939878,
0.161792174,
0.1720684916,
0.1941982806,
0.427090466,
-0.1792922616,
-0.0874078274,
-0.0603711121,
0.1699081361,
-0.178252995,
-0.473313868,
0.143280521,
-0.1597067267,
-0.2988284528,
-0.0670231879,
0.0496744998,
0.2803229094,
-0.2598398924,
0.0749867558,
-0.1056552231,
0.1608564854,
-0.0922898352,
-0.1408544183,
0.0897712409,
-0.073097147,
-0.1290262192,
-0.0425560437,
0.1132717133,
0.0838868096,
0.2775799334,
0.2630509138,
-0.0881880075,
-0.2006155401,
0.1970884651,
0.2208368778,
-0.0557489768,
-0.1138676479,
0.1557370722,
0.3445363343,
0.1739408225,
-0.1311291903,
0.1761197597,
0.6315096021,
0.3470623195,
0.0025092885,
0.2030486763,
-0.1124483719,
-0.1424657851,
-0.0864443034,
0.0251590386,
-0.0924743563,
0.2070284039,
0.3563941717,
0.321375519,
-0.1901988536,
0.3339132071,
-0.0463945605,
-0.1453464627,
-0.1938876212,
0.3707818985,
0.0753011703,
-0.2841670513,
-0.1254213005,
0.0150403343,
-0.4021414518,
0.0693430603,
0.4656213522,
0.0106837526,
0.2924724817,
0.0018881038,
0.1094438434,
-0.0905620456,
0.4269733727,
0.1445120126,
0.3763490319,
-0.4452264011,
0.0112879276,
-0.5027254224,
0.1829466075,
-0.0391800031,
0.0534200296,
-0.0442362018,
0.1701688021,
0.0105170794,
0.202702865,
-0.1474990398,
-0.0566703938,
0.0178524368,
0.1256342083,
0.026939936,
-0.1631550193,
-0.2020684928,
0.0583003312,
-0.0021006279,
-0.3904862702,
0.2174810469,
0.0210844055,
0.1405796409,
-0.2631098926,
-0.0637242272,
0.1954774559,
0.1273898631,
0.3907390535,
0.1600240171,
0.6441076398,
-0.1056480855,
0.0829368904,
-0.0683097094,
-0.2543078363,
0.0151444711,
0.1953170598,
0.2678669393,
0.2144359797,
-0.0889866352,
-0.3141359091,
-0.4714732468,
0.399718076,
-0.0541139357,
-0.085738197,
-0.0444331318,
-0.1015132666,
-0.029540576,
0.0428922661,
0.0381941572,
-0.0330939554,
0.0117345769,
0.2108487189,
-0.176004678,
-0.4096620679,
0.4183119535,
-0.2643620968,
-0.2504860163,
-0.1710996628,
0.278177619,
-0.046329204,
0.2893787026,
-0.2773313522,
0.295822978,
0.4524030387,
-0.211067766,
-0.2147777826,
0.2234392911,
0.0190693475,
0.2123970389,
-0.0396618843,
0.4695011675,
0.1008587778,
-0.242797032,
-0.1551303118,
-0.2195901722
] |
https://github.com/huggingface/datasets/issues/807 | load_dataset for LOCAL CSV files report CONNECTION ERROR | >
>
> > hello, how did you solve this problems?
> > > > > Hi !
> > > > > The url works on my side.
> > > > > Is the url working in your navigator ?
> > > > > Are you connected to internet ? Does your network block access to `raw.githubusercontent.com` ?
> > > >
> > > >
> > > > I tried another server, it's working now. Thanks a lot.
> > > > And I'm curious about why download things from "github" when I load dataset from local files ? Dose datasets work if my network crashed?
> > >
> > >
> > > I download the scripts `https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py` and move it to the package dir `*/datasets/` solved the problem. Could you please put the file `datasets/datasets/csv/csv.py` to `datasets/src/datasets/`?
> > > Thanks :D
> >
> >
> > hello, I tried this. but it still failed. how do you fix this error?
>
> 你把那个脚本下载到你本地安装目录下,然后 `load_dataset(csv_script_path, data_fiels)`
我照着做了,然后报错。
ValueError: unable to parse C:/Software/Anaconda/envs/ptk_gpu2/Lib/site-packages/datasets\dataset_infos.json as a URL or as a local path
`---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-5-fd2106a3f053> in <module>
----> 1 dataset = load_dataset('C:/Software/Anaconda/envs/ptk_gpu2/Lib/site-packages/datasets/csv.py', data_files='./test.csv', delimiter=',', autogenerate_column_names=False)
C:\Software\Anaconda\envs\ptk_gpu2\lib\site-packages\datasets\load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, save_infos, script_version, **config_kwargs)
588 # Download/copy dataset processing script
589 module_path, hash = prepare_module(
--> 590 path, script_version=script_version, download_config=download_config, download_mode=download_mode, dataset=True
591 )
592
C:\Software\Anaconda\envs\ptk_gpu2\lib\site-packages\datasets\load.py in prepare_module(path, script_version, download_config, download_mode, dataset, force_local_path, **download_kwargs)
296 local_dataset_infos_path = cached_path(
297 dataset_infos,
--> 298 download_config=download_config,
299 )
300 except (FileNotFoundError, ConnectionError):
C:\Software\Anaconda\envs\ptk_gpu2\lib\site-packages\datasets\utils\file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs)
316 else:
317 # Something unknown
--> 318 raise ValueError("unable to parse {} as a URL or as a local path".format(url_or_filename))
319
320 if download_config.extract_compressed_file and output_path is not None:
ValueError: unable to parse C:/Software/Anaconda/envs/ptk_gpu2/Lib/site-packages/datasets\dataset_infos.json as a URL or as a local path
` | ## load_dataset for LOCAL CSV files report CONNECTION ERROR
- **Description:**
A local demo csv file:
```
import pandas as pd
import numpy as np
from datasets import load_dataset
import torch
import transformers
df = pd.DataFrame(np.arange(1200).reshape(300,4))
df.to_csv('test.csv', header=False, index=False)
print('datasets version: ', datasets.__version__)
print('pytorch version: ', torch.__version__)
print('transformers version: ', transformers.__version__)
# output:
datasets version: 1.1.2
pytorch version: 1.5.0
transformers version: 3.2.0
```
when I load data through `dataset`:
```
dataset = load_dataset('csv', data_files='./test.csv', delimiter=',', autogenerate_column_names=False)
```
Error infos:
```
ConnectionError Traceback (most recent call last)
<ipython-input-17-bbdadb9a0c78> in <module>
----> 1 dataset = load_dataset('csv', data_files='./test.csv', delimiter=',', autogenerate_column_names=False)
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, save_infos, script_version, **config_kwargs)
588 # Download/copy dataset processing script
589 module_path, hash = prepare_module(
--> 590 path, script_version=script_version, download_config=download_config, download_mode=download_mode, dataset=True
591 )
592
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/load.py in prepare_module(path, script_version, download_config, download_mode, dataset, force_local_path, **download_kwargs)
266 file_path = hf_github_url(path=path, name=name, dataset=dataset, version=script_version)
267 try:
--> 268 local_path = cached_path(file_path, download_config=download_config)
269 except FileNotFoundError:
270 if script_version is not None:
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/utils/file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs)
306 user_agent=download_config.user_agent,
307 local_files_only=download_config.local_files_only,
--> 308 use_etag=download_config.use_etag,
309 )
310 elif os.path.exists(url_or_filename):
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/utils/file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag)
473 elif response is not None and response.status_code == 404:
474 raise FileNotFoundError("Couldn't find file at {}".format(url))
--> 475 raise ConnectionError("Couldn't reach {}".format(url))
476
477 # Try a second time
ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py
```
And I try to connect to the site with requests:
```
import requests
requests.head("https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py")
```
Similarly Error occurs:
```
---------------------------------------------------------------------------
ConnectionRefusedError Traceback (most recent call last)
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in _new_conn(self)
159 conn = connection.create_connection(
--> 160 (self._dns_host, self.port), self.timeout, **extra_kw
161 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options)
83 if err is not None:
---> 84 raise err
85
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options)
73 sock.bind(source_address)
---> 74 sock.connect(sa)
75 return sock
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
NewConnectionError Traceback (most recent call last)
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
676 headers=headers,
--> 677 chunked=chunked,
678 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw)
380 try:
--> 381 self._validate_conn(conn)
382 except (SocketTimeout, BaseSSLError) as e:
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in _validate_conn(self, conn)
975 if not getattr(conn, "sock", None): # AppEngine might not have `.sock`
--> 976 conn.connect()
977
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in connect(self)
307 # Add certificate verification
--> 308 conn = self._new_conn()
309 hostname = self.host
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in _new_conn(self)
171 raise NewConnectionError(
--> 172 self, "Failed to establish a new connection: %s" % e
173 )
NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
MaxRetryError Traceback (most recent call last)
~/.conda/envs/py36/lib/python3.6/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
448 retries=self.max_retries,
--> 449 timeout=timeout
450 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
724 retries = retries.increment(
--> 725 method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
726 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/retry.py in increment(self, method, url, response, error, _pool, _stacktrace)
438 if new_retry.is_exhausted():
--> 439 raise MaxRetryError(_pool, url, error or ResponseError(cause))
440
MaxRetryError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/1.1.2/datasets/csv/csv.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused',))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last)
<ipython-input-20-18cc3eb4a049> in <module>
1 import requests
2
----> 3 requests.head("https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py")
~/.conda/envs/py36/lib/python3.6/site-packages/requests/api.py in head(url, **kwargs)
102
103 kwargs.setdefault('allow_redirects', False)
--> 104 return request('head', url, **kwargs)
105
106
~/.conda/envs/py36/lib/python3.6/site-packages/requests/api.py in request(method, url, **kwargs)
59 # cases, and look like a memory leak in others.
60 with sessions.Session() as session:
---> 61 return session.request(method=method, url=url, **kwargs)
62
63
~/.conda/envs/py36/lib/python3.6/site-packages/requests/sessions.py in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json)
528 }
529 send_kwargs.update(settings)
--> 530 resp = self.send(prep, **send_kwargs)
531
532 return resp
~/.conda/envs/py36/lib/python3.6/site-packages/requests/sessions.py in send(self, request, **kwargs)
641
642 # Send the request
--> 643 r = adapter.send(request, **kwargs)
644
645 # Total elapsed time of the request (approximately)
~/.conda/envs/py36/lib/python3.6/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
514 raise SSLError(e, request=request)
515
--> 516 raise ConnectionError(e, request=request)
517
518 except ClosedPoolError as e:
ConnectionError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/1.1.2/datasets/csv/csv.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused',))
``` | 316 | load_dataset for LOCAL CSV files report CONNECTION ERROR
## load_dataset for LOCAL CSV files report CONNECTION ERROR
- **Description:**
A local demo csv file:
```
import pandas as pd
import numpy as np
from datasets import load_dataset
import torch
import transformers
df = pd.DataFrame(np.arange(1200).reshape(300,4))
df.to_csv('test.csv', header=False, index=False)
print('datasets version: ', datasets.__version__)
print('pytorch version: ', torch.__version__)
print('transformers version: ', transformers.__version__)
# output:
datasets version: 1.1.2
pytorch version: 1.5.0
transformers version: 3.2.0
```
when I load data through `dataset`:
```
dataset = load_dataset('csv', data_files='./test.csv', delimiter=',', autogenerate_column_names=False)
```
Error infos:
```
ConnectionError Traceback (most recent call last)
<ipython-input-17-bbdadb9a0c78> in <module>
----> 1 dataset = load_dataset('csv', data_files='./test.csv', delimiter=',', autogenerate_column_names=False)
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, save_infos, script_version, **config_kwargs)
588 # Download/copy dataset processing script
589 module_path, hash = prepare_module(
--> 590 path, script_version=script_version, download_config=download_config, download_mode=download_mode, dataset=True
591 )
592
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/load.py in prepare_module(path, script_version, download_config, download_mode, dataset, force_local_path, **download_kwargs)
266 file_path = hf_github_url(path=path, name=name, dataset=dataset, version=script_version)
267 try:
--> 268 local_path = cached_path(file_path, download_config=download_config)
269 except FileNotFoundError:
270 if script_version is not None:
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/utils/file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs)
306 user_agent=download_config.user_agent,
307 local_files_only=download_config.local_files_only,
--> 308 use_etag=download_config.use_etag,
309 )
310 elif os.path.exists(url_or_filename):
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/utils/file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag)
473 elif response is not None and response.status_code == 404:
474 raise FileNotFoundError("Couldn't find file at {}".format(url))
--> 475 raise ConnectionError("Couldn't reach {}".format(url))
476
477 # Try a second time
ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py
```
And I try to connect to the site with requests:
```
import requests
requests.head("https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py")
```
Similarly Error occurs:
```
---------------------------------------------------------------------------
ConnectionRefusedError Traceback (most recent call last)
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in _new_conn(self)
159 conn = connection.create_connection(
--> 160 (self._dns_host, self.port), self.timeout, **extra_kw
161 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options)
83 if err is not None:
---> 84 raise err
85
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options)
73 sock.bind(source_address)
---> 74 sock.connect(sa)
75 return sock
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
NewConnectionError Traceback (most recent call last)
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
676 headers=headers,
--> 677 chunked=chunked,
678 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw)
380 try:
--> 381 self._validate_conn(conn)
382 except (SocketTimeout, BaseSSLError) as e:
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in _validate_conn(self, conn)
975 if not getattr(conn, "sock", None): # AppEngine might not have `.sock`
--> 976 conn.connect()
977
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in connect(self)
307 # Add certificate verification
--> 308 conn = self._new_conn()
309 hostname = self.host
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in _new_conn(self)
171 raise NewConnectionError(
--> 172 self, "Failed to establish a new connection: %s" % e
173 )
NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
MaxRetryError Traceback (most recent call last)
~/.conda/envs/py36/lib/python3.6/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
448 retries=self.max_retries,
--> 449 timeout=timeout
450 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
724 retries = retries.increment(
--> 725 method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
726 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/retry.py in increment(self, method, url, response, error, _pool, _stacktrace)
438 if new_retry.is_exhausted():
--> 439 raise MaxRetryError(_pool, url, error or ResponseError(cause))
440
MaxRetryError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/1.1.2/datasets/csv/csv.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused',))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last)
<ipython-input-20-18cc3eb4a049> in <module>
1 import requests
2
----> 3 requests.head("https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py")
~/.conda/envs/py36/lib/python3.6/site-packages/requests/api.py in head(url, **kwargs)
102
103 kwargs.setdefault('allow_redirects', False)
--> 104 return request('head', url, **kwargs)
105
106
~/.conda/envs/py36/lib/python3.6/site-packages/requests/api.py in request(method, url, **kwargs)
59 # cases, and look like a memory leak in others.
60 with sessions.Session() as session:
---> 61 return session.request(method=method, url=url, **kwargs)
62
63
~/.conda/envs/py36/lib/python3.6/site-packages/requests/sessions.py in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json)
528 }
529 send_kwargs.update(settings)
--> 530 resp = self.send(prep, **send_kwargs)
531
532 return resp
~/.conda/envs/py36/lib/python3.6/site-packages/requests/sessions.py in send(self, request, **kwargs)
641
642 # Send the request
--> 643 r = adapter.send(request, **kwargs)
644
645 # Total elapsed time of the request (approximately)
~/.conda/envs/py36/lib/python3.6/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
514 raise SSLError(e, request=request)
515
--> 516 raise ConnectionError(e, request=request)
517
518 except ClosedPoolError as e:
ConnectionError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/1.1.2/datasets/csv/csv.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused',))
```
>
>
> > hello, how did you solve this problems?
> > > > > Hi !
> > > > > The url works on my side.
> > > > > Is the url working in your navigator ?
> > > > > Are you connected to internet ? Does your network block access to `raw.githubusercontent.com` ?
> > > >
> > > >
> > > > I tried another server, it's working now. Thanks a lot.
> > > > And I'm curious about why download things from "github" when I load dataset from local files ? Dose datasets work if my network crashed?
> > >
> > >
> > > I download the scripts `https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py` and move it to the package dir `*/datasets/` solved the problem. Could you please put the file `datasets/datasets/csv/csv.py` to `datasets/src/datasets/`?
> > > Thanks :D
> >
> >
> > hello, I tried this. but it still failed. how do you fix this error?
>
> 你把那个脚本下载到你本地安装目录下,然后 `load_dataset(csv_script_path, data_fiels)`
我照着做了,然后报错。
ValueError: unable to parse C:/Software/Anaconda/envs/ptk_gpu2/Lib/site-packages/datasets\dataset_infos.json as a URL or as a local path
`---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-5-fd2106a3f053> in <module>
----> 1 dataset = load_dataset('C:/Software/Anaconda/envs/ptk_gpu2/Lib/site-packages/datasets/csv.py', data_files='./test.csv', delimiter=',', autogenerate_column_names=False)
C:\Software\Anaconda\envs\ptk_gpu2\lib\site-packages\datasets\load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, save_infos, script_version, **config_kwargs)
588 # Download/copy dataset processing script
589 module_path, hash = prepare_module(
--> 590 path, script_version=script_version, download_config=download_config, download_mode=download_mode, dataset=True
591 )
592
C:\Software\Anaconda\envs\ptk_gpu2\lib\site-packages\datasets\load.py in prepare_module(path, script_version, download_config, download_mode, dataset, force_local_path, **download_kwargs)
296 local_dataset_infos_path = cached_path(
297 dataset_infos,
--> 298 download_config=download_config,
299 )
300 except (FileNotFoundError, ConnectionError):
C:\Software\Anaconda\envs\ptk_gpu2\lib\site-packages\datasets\utils\file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs)
316 else:
317 # Something unknown
--> 318 raise ValueError("unable to parse {} as a URL or as a local path".format(url_or_filename))
319
320 if download_config.extract_compressed_file and output_path is not None:
ValueError: unable to parse C:/Software/Anaconda/envs/ptk_gpu2/Lib/site-packages/datasets\dataset_infos.json as a URL or as a local path
` | [
-0.3247123361,
0.0161048025,
-0.1088049263,
0.0260047894,
0.2420428693,
0.0198688582,
0.7173693776,
0.3756365776,
0.2509220243,
0.1337040812,
-0.0342322588,
0.1497046649,
0.0797995478,
0.0211835206,
-0.1269314885,
-0.1772823036,
-0.1271574795,
0.2743315697,
-0.4187992811,
0.0144972131,
-0.1248852834,
-0.0023575779,
-0.0349383801,
0.1405337155,
-0.2024639249,
-0.0062389812,
0.1157819852,
0.131277144,
-0.0276921988,
-0.4939195514,
0.3365219831,
0.0402497724,
0.3237728179,
0.3632174134,
-0.0001060309,
0.2135235369,
0.2517406642,
-0.0288666114,
-0.427908659,
-0.4611107707,
-0.1089925617,
-0.3690281808,
0.4228134155,
-0.3986178339,
0.0005742982,
-0.1198976636,
-0.0673584267,
-0.3161988854,
0.4313886464,
0.4785012901,
0.2786397934,
0.4154754877,
0.0165832266,
-0.1110344827,
0.0718219727,
0.0555340014,
-0.0624924079,
0.4061278105,
0.0516242273,
-0.1849910319,
-0.2426784933,
0.0846121535,
-0.1926986128,
0.3955325186,
0.1906039417,
0.0830964446,
0.0377706066,
-0.1966335624,
0.1252264678,
0.1076833904,
0.4764898717,
-0.2314555347,
-0.2321468741,
-0.0584993213,
-0.1994820088,
-0.1881569028,
0.1660739779,
0.0867307782,
-0.1683378518,
0.1474406272,
-0.2638413608,
0.0990802199,
-0.3907521665,
0.1494553834,
-0.1105122343,
0.1547572613,
-0.067184031,
0.1947449744,
0.1582646817,
-0.0564834513,
0.4036886692,
-0.2070344985,
0.1916096658,
0.127662763,
-0.3377638459,
0.1311572939,
0.1394049823,
-0.3861347139,
-0.1064568609,
0.0498940982,
-0.0361736454,
-0.0535907038,
0.1335503757,
0.2916468084,
0.1983622611,
0.0791433603,
-0.1308654249,
0.2947738469,
0.2687247992,
0.1325624138,
0.0422616452,
-0.06248492,
-0.0800575614,
-0.3558064699,
0.1634978503,
0.1999797225,
0.4894589186,
-0.0474283397,
-0.2816002369,
0.1326405704,
0.0129100829,
-0.1073728949,
0.018969439,
0.3589312732,
-0.08796826,
0.2043160647,
0.0424529389,
0.0136887487,
-0.2235276103,
0.0845433101,
-0.2120841295,
0.037955571,
-0.1193307936,
-0.0695322379,
0.381331414,
-0.0790899321,
0.0466330424,
-0.0146685168,
0.0989308655,
0.0503489971,
0.2611701488,
-0.2932828665,
0.0491828322,
0.4129322469,
0.0561540276,
0.2478839457,
0.4095255435,
-0.1842339784,
-0.1060606241,
0.0865908191,
-0.2045432031,
-0.3371694088,
-0.338547945,
0.2402115613,
0.0368899927,
0.1089415699,
-0.0184666477,
-0.3302740753,
0.0986591503,
-0.2747160792,
-0.1541593969,
-0.3237558901,
-0.0389049351,
-0.2159914374,
0.3081871867,
0.6463353038,
-0.4303182662,
0.042956233,
0.0566365495,
-0.1299163401,
0.141459927,
0.2508479953,
-0.3076962531,
0.0851257443,
-0.2284610868,
-0.0966765881,
0.2314823866,
-0.3093753457,
-0.3032815456,
0.5005193353,
-0.2373454273,
-0.0729435831,
0.2169772089,
0.0126163065,
0.2910564542,
0.1858280897,
0.2615151703,
0.300047636,
-0.1007599086,
0.1175526902,
-0.079923287,
-0.2225607783,
0.1973580718,
0.1164560169,
0.0098164212,
0.2231839895,
0.3249673545,
-0.2579790056,
0.1741140485,
-0.0768724382,
0.1447919607,
0.1345078796,
0.173971951,
0.0419842787,
-0.0606002249,
-0.0216644071,
-0.5085176229,
0.1381557584,
0.131092459,
0.0903008729,
-0.4376564324,
-0.016269058,
-0.3771231472,
0.005172275,
-0.2671601176,
-0.0302422959,
0.2100170702,
0.3415310383,
-0.0191594549,
-0.0523176938,
-0.0488571003,
0.3256911337,
-0.1166131869,
-0.0192559678,
-0.4156304598,
0.3395552933,
-0.3544685841,
-0.0690030828,
0.0523540229,
-0.0314199738,
0.1626497507,
-0.1825554669,
-0.2719685137,
0.3561236858,
-0.0955852717,
0.2182244062,
0.0170495138,
-0.0044383109,
0.0526204929,
-0.2450992167,
0.032377407,
0.0311137661,
0.1533316225,
0.0431828797,
-0.2613136172,
0.3525987267,
-0.0953490734,
0.1633696854,
0.0506538972,
0.0704122409,
0.451421231,
0.0119943395,
-0.1140477806,
-0.1085088775,
0.1054949313,
0.2389211655,
0.2262360454,
0.0491033345,
-0.180272162,
-0.1886239499,
0.2018590122,
-0.1532274336,
0.0116078872,
0.0923531502,
-0.1086221337,
-0.0442814827,
0.214684695,
0.2319190353,
0.5149136186,
0.1026021913,
-0.1526021361,
-0.0183212329,
-0.050323505,
-0.133823052,
0.1102776229,
-0.0386922359,
0.0448775776,
0.3272632957,
0.0759821832,
0.106980443,
-0.2410075068,
-0.3630866408,
-0.0419490263,
0.2638893127,
-0.3493006825,
0.2479265928,
-0.1645682454,
0.0182820931,
-0.2659018636,
-0.0503299907,
-0.1105000228,
-0.1780741811,
-0.3695808351,
0.3607574999,
-0.0763825253,
0.2372517139,
-0.279001534,
-0.0516412556,
0.3879841864,
-0.4498327374,
-0.073059842,
-0.2081663162,
-0.160145998,
0.0924806669,
0.0935097486,
-0.1568923295,
0.3031651378,
-0.0989922062,
0.0205263309,
-0.161062479,
-0.0238345936,
-0.0821167827,
0.0125280395,
0.1283057779,
0.1878543645,
0.4475226104,
0.1206025183,
-0.5035607815,
0.3184548914,
-0.0834971517,
0.0481938496,
0.1964567006,
-0.0537021868,
-0.2032558173,
0.0006877333,
-0.6345353127,
-0.5991460681,
-0.4698643684,
0.1375345141,
0.0665088445,
0.213231653,
0.2955248356,
0.2269019037,
0.2099234164,
0.0866583288,
0.0757487267,
-0.0596129894,
-0.1591840684,
0.3499987423,
-0.2349600941,
-0.3570281863,
-0.1133958623,
-0.1152547151,
0.1219444722,
0.1364866644,
-0.4447760582,
-0.0236160941,
-0.1746836454,
0.3565402031,
-0.0467240848,
0.0517050326,
0.4662777483,
0.1686569005,
-0.1706289053,
0.1126607358,
-0.2441870868,
-0.1408114135,
0.19425641,
0.0843702108,
0.0044111069,
0.4593693316,
-0.1589592993,
0.6532874107,
-0.0798087344,
-0.1897099614,
0.2884310782,
-0.1362252682,
0.342966795,
-0.1845075488,
-0.6308504343,
-0.0917782113,
-0.3062296808,
-0.2018837184,
0.0107531957,
-0.229728967,
-0.2305865884,
-0.3641995788,
0.0186994895,
-0.3049328327,
-0.3137823939,
0.1363258511,
-0.1196977943,
0.3635419011,
0.0468817055,
-0.0130359977,
-0.2529371083,
-0.0600581095,
-0.2486276627,
0.3659865558,
-0.0062222742,
-0.093166098,
-0.2668783665,
0.1069132537,
-0.2810814977,
0.2432363331,
0.0800496489,
0.5622869134,
-0.2027089596,
-0.1867957264,
-0.037793126,
0.0581579693,
0.4028223753,
0.0884442106,
0.0874636769,
0.2563878894,
-0.0515907966,
-0.3120605648,
-0.0862112939,
-0.088684231,
0.22119537,
0.2276991457,
0.4607944787,
0.0591155738,
-0.1269775033,
0.3169067204,
0.2359133363,
-0.0872560292,
-0.179053694,
-0.2838753462,
-0.0508109294,
-0.3215521276,
-0.1053740755,
-0.1118416339,
0.1790323257,
-0.1732904613,
-0.1281273663,
0.0737239197,
-0.1710193753,
0.0011047982,
0.1193198115,
-0.1456996202,
0.0959774703,
0.2179177999,
0.1906980872,
0.2628869116,
0.2021608949,
0.4429311454,
-0.2094502896,
-0.5551644564,
0.1772617847,
-0.0145552345,
0.107831195,
0.1052372754,
-0.1369357109,
-0.148758322,
0.1752744019,
0.1808559597,
-0.1539574564,
0.1938526928,
0.2498670667,
-0.1166541502,
-0.3529872894,
-0.4148067832,
0.1314439476,
-0.2005928159,
-0.0967517868,
0.1951030493,
-0.3385472894,
-0.0635158122,
0.2595237494,
-0.1583104432,
0.669519186,
-0.1268932223,
0.1809172332,
0.1628528982,
-0.1345140785,
0.4483828843,
-0.1574921161,
0.1192622781,
-0.3441150188,
-0.2360043377,
-0.0994973779,
-0.2498577386,
0.321854651,
0.0098682111,
-0.096961394,
0.2364210784,
-0.0614167824,
0.2813481688,
0.0652795136,
0.2203808874,
0.0612793863,
-0.2302691191,
-0.1830086559,
0.1901202649,
-0.0931364298,
0.4134555459,
0.0299710073,
-0.1137414426,
-0.0124851018,
-0.3615665138,
-0.0431396291,
0.0593215376,
-0.2830665112,
0.4136628211,
0.0488294065,
-0.3536546826,
-0.0551412143,
0.1381697357,
-0.1533754468,
0.078329742,
-0.1498510987,
-0.0794562995,
-0.108091481,
-0.0611959063,
-0.116901055,
-0.0029087029,
0.1473996192,
0.0824842453,
-0.2685492039,
0.275572449,
-0.1178315729,
-0.3403717875,
0.1828362346,
0.2773402333,
0.2622920275,
-0.5065496564,
-0.1399479955,
-0.3102686107,
-0.1075607389,
-0.1293205172,
0.200531885,
-0.1123934239,
0.0256724395,
0.0055954307,
-0.0878890529,
-0.3105520308,
-0.0419632941,
0.6014829874,
-0.0718145296,
-0.0663498938,
0.3271545768,
0.0624913573,
-0.1843171269,
-0.2428676486,
0.1990405321,
-0.004432261,
-0.467797786,
-0.093008019,
0.068779856,
0.0586961806,
-0.1138907149,
0.071775943,
0.2206759751,
0.1031342298,
0.0357835889,
-0.4803102314,
-0.5924566984,
-0.0901233926,
-0.0120881088,
0.1493127197,
0.4447920024,
0.223069638,
0.0557790995,
0.1090676039,
-0.3599543273,
-0.0675610825,
-0.1895692647,
0.1576154232,
0.5117646456,
-0.2647096217,
0.1770651639,
-0.1552707255,
0.2409110814,
-0.1429233551,
-0.1262868792,
-0.3133457601,
0.0018987805,
0.0618450418,
0.0202442408,
-0.3433458507,
-0.3376549482,
-0.2684758604,
-0.0148098581,
-0.0740636885,
-0.000341475,
0.2130772769,
-0.1187316179,
0.2121611238,
-0.2453934252,
0.0810143799,
-0.1340084523,
0.1350560635,
-0.2799660563,
0.2402765006,
0.027082596,
0.2827393115,
-0.0718642697,
-0.0194424465,
-0.4871895313,
-0.0540026613,
0.0109265707,
0.0986868292,
0.3070953488,
-0.1801374257,
-0.137321189,
0.0053288788,
0.399123311,
0.2806530297,
-0.2605661452,
0.0164486319,
0.1206056252,
0.3077167869,
-0.2169091702,
-0.112417683,
0.1596364826,
0.0255127065,
0.2056991607,
-0.0233399421,
0.0817392692,
-0.194660157,
0.2731686532,
0.0354822651,
0.4447304606,
-0.0881809145,
0.2025936991,
0.6118389368,
0.0197392628,
-0.002939878,
0.161792174,
0.1720684916,
0.1941982806,
0.427090466,
-0.1792922616,
-0.0874078274,
-0.0603711121,
0.1699081361,
-0.178252995,
-0.473313868,
0.143280521,
-0.1597067267,
-0.2988284528,
-0.0670231879,
0.0496744998,
0.2803229094,
-0.2598398924,
0.0749867558,
-0.1056552231,
0.1608564854,
-0.0922898352,
-0.1408544183,
0.0897712409,
-0.073097147,
-0.1290262192,
-0.0425560437,
0.1132717133,
0.0838868096,
0.2775799334,
0.2630509138,
-0.0881880075,
-0.2006155401,
0.1970884651,
0.2208368778,
-0.0557489768,
-0.1138676479,
0.1557370722,
0.3445363343,
0.1739408225,
-0.1311291903,
0.1761197597,
0.6315096021,
0.3470623195,
0.0025092885,
0.2030486763,
-0.1124483719,
-0.1424657851,
-0.0864443034,
0.0251590386,
-0.0924743563,
0.2070284039,
0.3563941717,
0.321375519,
-0.1901988536,
0.3339132071,
-0.0463945605,
-0.1453464627,
-0.1938876212,
0.3707818985,
0.0753011703,
-0.2841670513,
-0.1254213005,
0.0150403343,
-0.4021414518,
0.0693430603,
0.4656213522,
0.0106837526,
0.2924724817,
0.0018881038,
0.1094438434,
-0.0905620456,
0.4269733727,
0.1445120126,
0.3763490319,
-0.4452264011,
0.0112879276,
-0.5027254224,
0.1829466075,
-0.0391800031,
0.0534200296,
-0.0442362018,
0.1701688021,
0.0105170794,
0.202702865,
-0.1474990398,
-0.0566703938,
0.0178524368,
0.1256342083,
0.026939936,
-0.1631550193,
-0.2020684928,
0.0583003312,
-0.0021006279,
-0.3904862702,
0.2174810469,
0.0210844055,
0.1405796409,
-0.2631098926,
-0.0637242272,
0.1954774559,
0.1273898631,
0.3907390535,
0.1600240171,
0.6441076398,
-0.1056480855,
0.0829368904,
-0.0683097094,
-0.2543078363,
0.0151444711,
0.1953170598,
0.2678669393,
0.2144359797,
-0.0889866352,
-0.3141359091,
-0.4714732468,
0.399718076,
-0.0541139357,
-0.085738197,
-0.0444331318,
-0.1015132666,
-0.029540576,
0.0428922661,
0.0381941572,
-0.0330939554,
0.0117345769,
0.2108487189,
-0.176004678,
-0.4096620679,
0.4183119535,
-0.2643620968,
-0.2504860163,
-0.1710996628,
0.278177619,
-0.046329204,
0.2893787026,
-0.2773313522,
0.295822978,
0.4524030387,
-0.211067766,
-0.2147777826,
0.2234392911,
0.0190693475,
0.2123970389,
-0.0396618843,
0.4695011675,
0.1008587778,
-0.242797032,
-0.1551303118,
-0.2195901722
] |
https://github.com/huggingface/datasets/issues/807 | load_dataset for LOCAL CSV files report CONNECTION ERROR | I also experienced this issue this morning. Looks like something specific to windows.
I'm working on a fix | ## load_dataset for LOCAL CSV files report CONNECTION ERROR
- **Description:**
A local demo csv file:
```
import pandas as pd
import numpy as np
from datasets import load_dataset
import torch
import transformers
df = pd.DataFrame(np.arange(1200).reshape(300,4))
df.to_csv('test.csv', header=False, index=False)
print('datasets version: ', datasets.__version__)
print('pytorch version: ', torch.__version__)
print('transformers version: ', transformers.__version__)
# output:
datasets version: 1.1.2
pytorch version: 1.5.0
transformers version: 3.2.0
```
when I load data through `dataset`:
```
dataset = load_dataset('csv', data_files='./test.csv', delimiter=',', autogenerate_column_names=False)
```
Error infos:
```
ConnectionError Traceback (most recent call last)
<ipython-input-17-bbdadb9a0c78> in <module>
----> 1 dataset = load_dataset('csv', data_files='./test.csv', delimiter=',', autogenerate_column_names=False)
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, save_infos, script_version, **config_kwargs)
588 # Download/copy dataset processing script
589 module_path, hash = prepare_module(
--> 590 path, script_version=script_version, download_config=download_config, download_mode=download_mode, dataset=True
591 )
592
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/load.py in prepare_module(path, script_version, download_config, download_mode, dataset, force_local_path, **download_kwargs)
266 file_path = hf_github_url(path=path, name=name, dataset=dataset, version=script_version)
267 try:
--> 268 local_path = cached_path(file_path, download_config=download_config)
269 except FileNotFoundError:
270 if script_version is not None:
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/utils/file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs)
306 user_agent=download_config.user_agent,
307 local_files_only=download_config.local_files_only,
--> 308 use_etag=download_config.use_etag,
309 )
310 elif os.path.exists(url_or_filename):
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/utils/file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag)
473 elif response is not None and response.status_code == 404:
474 raise FileNotFoundError("Couldn't find file at {}".format(url))
--> 475 raise ConnectionError("Couldn't reach {}".format(url))
476
477 # Try a second time
ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py
```
And I try to connect to the site with requests:
```
import requests
requests.head("https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py")
```
Similarly Error occurs:
```
---------------------------------------------------------------------------
ConnectionRefusedError Traceback (most recent call last)
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in _new_conn(self)
159 conn = connection.create_connection(
--> 160 (self._dns_host, self.port), self.timeout, **extra_kw
161 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options)
83 if err is not None:
---> 84 raise err
85
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options)
73 sock.bind(source_address)
---> 74 sock.connect(sa)
75 return sock
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
NewConnectionError Traceback (most recent call last)
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
676 headers=headers,
--> 677 chunked=chunked,
678 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw)
380 try:
--> 381 self._validate_conn(conn)
382 except (SocketTimeout, BaseSSLError) as e:
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in _validate_conn(self, conn)
975 if not getattr(conn, "sock", None): # AppEngine might not have `.sock`
--> 976 conn.connect()
977
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in connect(self)
307 # Add certificate verification
--> 308 conn = self._new_conn()
309 hostname = self.host
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in _new_conn(self)
171 raise NewConnectionError(
--> 172 self, "Failed to establish a new connection: %s" % e
173 )
NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
MaxRetryError Traceback (most recent call last)
~/.conda/envs/py36/lib/python3.6/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
448 retries=self.max_retries,
--> 449 timeout=timeout
450 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
724 retries = retries.increment(
--> 725 method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
726 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/retry.py in increment(self, method, url, response, error, _pool, _stacktrace)
438 if new_retry.is_exhausted():
--> 439 raise MaxRetryError(_pool, url, error or ResponseError(cause))
440
MaxRetryError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/1.1.2/datasets/csv/csv.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused',))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last)
<ipython-input-20-18cc3eb4a049> in <module>
1 import requests
2
----> 3 requests.head("https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py")
~/.conda/envs/py36/lib/python3.6/site-packages/requests/api.py in head(url, **kwargs)
102
103 kwargs.setdefault('allow_redirects', False)
--> 104 return request('head', url, **kwargs)
105
106
~/.conda/envs/py36/lib/python3.6/site-packages/requests/api.py in request(method, url, **kwargs)
59 # cases, and look like a memory leak in others.
60 with sessions.Session() as session:
---> 61 return session.request(method=method, url=url, **kwargs)
62
63
~/.conda/envs/py36/lib/python3.6/site-packages/requests/sessions.py in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json)
528 }
529 send_kwargs.update(settings)
--> 530 resp = self.send(prep, **send_kwargs)
531
532 return resp
~/.conda/envs/py36/lib/python3.6/site-packages/requests/sessions.py in send(self, request, **kwargs)
641
642 # Send the request
--> 643 r = adapter.send(request, **kwargs)
644
645 # Total elapsed time of the request (approximately)
~/.conda/envs/py36/lib/python3.6/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
514 raise SSLError(e, request=request)
515
--> 516 raise ConnectionError(e, request=request)
517
518 except ClosedPoolError as e:
ConnectionError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/1.1.2/datasets/csv/csv.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused',))
``` | 18 | load_dataset for LOCAL CSV files report CONNECTION ERROR
## load_dataset for LOCAL CSV files report CONNECTION ERROR
- **Description:**
A local demo csv file:
```
import pandas as pd
import numpy as np
from datasets import load_dataset
import torch
import transformers
df = pd.DataFrame(np.arange(1200).reshape(300,4))
df.to_csv('test.csv', header=False, index=False)
print('datasets version: ', datasets.__version__)
print('pytorch version: ', torch.__version__)
print('transformers version: ', transformers.__version__)
# output:
datasets version: 1.1.2
pytorch version: 1.5.0
transformers version: 3.2.0
```
when I load data through `dataset`:
```
dataset = load_dataset('csv', data_files='./test.csv', delimiter=',', autogenerate_column_names=False)
```
Error infos:
```
ConnectionError Traceback (most recent call last)
<ipython-input-17-bbdadb9a0c78> in <module>
----> 1 dataset = load_dataset('csv', data_files='./test.csv', delimiter=',', autogenerate_column_names=False)
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, save_infos, script_version, **config_kwargs)
588 # Download/copy dataset processing script
589 module_path, hash = prepare_module(
--> 590 path, script_version=script_version, download_config=download_config, download_mode=download_mode, dataset=True
591 )
592
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/load.py in prepare_module(path, script_version, download_config, download_mode, dataset, force_local_path, **download_kwargs)
266 file_path = hf_github_url(path=path, name=name, dataset=dataset, version=script_version)
267 try:
--> 268 local_path = cached_path(file_path, download_config=download_config)
269 except FileNotFoundError:
270 if script_version is not None:
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/utils/file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs)
306 user_agent=download_config.user_agent,
307 local_files_only=download_config.local_files_only,
--> 308 use_etag=download_config.use_etag,
309 )
310 elif os.path.exists(url_or_filename):
~/.conda/envs/py36/lib/python3.6/site-packages/datasets/utils/file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag)
473 elif response is not None and response.status_code == 404:
474 raise FileNotFoundError("Couldn't find file at {}".format(url))
--> 475 raise ConnectionError("Couldn't reach {}".format(url))
476
477 # Try a second time
ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py
```
And I try to connect to the site with requests:
```
import requests
requests.head("https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py")
```
Similarly Error occurs:
```
---------------------------------------------------------------------------
ConnectionRefusedError Traceback (most recent call last)
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in _new_conn(self)
159 conn = connection.create_connection(
--> 160 (self._dns_host, self.port), self.timeout, **extra_kw
161 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options)
83 if err is not None:
---> 84 raise err
85
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options)
73 sock.bind(source_address)
---> 74 sock.connect(sa)
75 return sock
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
NewConnectionError Traceback (most recent call last)
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
676 headers=headers,
--> 677 chunked=chunked,
678 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw)
380 try:
--> 381 self._validate_conn(conn)
382 except (SocketTimeout, BaseSSLError) as e:
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in _validate_conn(self, conn)
975 if not getattr(conn, "sock", None): # AppEngine might not have `.sock`
--> 976 conn.connect()
977
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in connect(self)
307 # Add certificate verification
--> 308 conn = self._new_conn()
309 hostname = self.host
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connection.py in _new_conn(self)
171 raise NewConnectionError(
--> 172 self, "Failed to establish a new connection: %s" % e
173 )
NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
MaxRetryError Traceback (most recent call last)
~/.conda/envs/py36/lib/python3.6/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
448 retries=self.max_retries,
--> 449 timeout=timeout
450 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
724 retries = retries.increment(
--> 725 method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
726 )
~/.conda/envs/py36/lib/python3.6/site-packages/urllib3/util/retry.py in increment(self, method, url, response, error, _pool, _stacktrace)
438 if new_retry.is_exhausted():
--> 439 raise MaxRetryError(_pool, url, error or ResponseError(cause))
440
MaxRetryError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/1.1.2/datasets/csv/csv.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused',))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last)
<ipython-input-20-18cc3eb4a049> in <module>
1 import requests
2
----> 3 requests.head("https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/csv/csv.py")
~/.conda/envs/py36/lib/python3.6/site-packages/requests/api.py in head(url, **kwargs)
102
103 kwargs.setdefault('allow_redirects', False)
--> 104 return request('head', url, **kwargs)
105
106
~/.conda/envs/py36/lib/python3.6/site-packages/requests/api.py in request(method, url, **kwargs)
59 # cases, and look like a memory leak in others.
60 with sessions.Session() as session:
---> 61 return session.request(method=method, url=url, **kwargs)
62
63
~/.conda/envs/py36/lib/python3.6/site-packages/requests/sessions.py in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json)
528 }
529 send_kwargs.update(settings)
--> 530 resp = self.send(prep, **send_kwargs)
531
532 return resp
~/.conda/envs/py36/lib/python3.6/site-packages/requests/sessions.py in send(self, request, **kwargs)
641
642 # Send the request
--> 643 r = adapter.send(request, **kwargs)
644
645 # Total elapsed time of the request (approximately)
~/.conda/envs/py36/lib/python3.6/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
514 raise SSLError(e, request=request)
515
--> 516 raise ConnectionError(e, request=request)
517
518 except ClosedPoolError as e:
ConnectionError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/1.1.2/datasets/csv/csv.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f3cceda5e48>: Failed to establish a new connection: [Errno 111] Connection refused',))
```
I also experienced this issue this morning. Looks like something specific to windows.
I'm working on a fix | [
-0.3247123361,
0.0161048025,
-0.1088049263,
0.0260047894,
0.2420428693,
0.0198688582,
0.7173693776,
0.3756365776,
0.2509220243,
0.1337040812,
-0.0342322588,
0.1497046649,
0.0797995478,
0.0211835206,
-0.1269314885,
-0.1772823036,
-0.1271574795,
0.2743315697,
-0.4187992811,
0.0144972131,
-0.1248852834,
-0.0023575779,
-0.0349383801,
0.1405337155,
-0.2024639249,
-0.0062389812,
0.1157819852,
0.131277144,
-0.0276921988,
-0.4939195514,
0.3365219831,
0.0402497724,
0.3237728179,
0.3632174134,
-0.0001060309,
0.2135235369,
0.2517406642,
-0.0288666114,
-0.427908659,
-0.4611107707,
-0.1089925617,
-0.3690281808,
0.4228134155,
-0.3986178339,
0.0005742982,
-0.1198976636,
-0.0673584267,
-0.3161988854,
0.4313886464,
0.4785012901,
0.2786397934,
0.4154754877,
0.0165832266,
-0.1110344827,
0.0718219727,
0.0555340014,
-0.0624924079,
0.4061278105,
0.0516242273,
-0.1849910319,
-0.2426784933,
0.0846121535,
-0.1926986128,
0.3955325186,
0.1906039417,
0.0830964446,
0.0377706066,
-0.1966335624,
0.1252264678,
0.1076833904,
0.4764898717,
-0.2314555347,
-0.2321468741,
-0.0584993213,
-0.1994820088,
-0.1881569028,
0.1660739779,
0.0867307782,
-0.1683378518,
0.1474406272,
-0.2638413608,
0.0990802199,
-0.3907521665,
0.1494553834,
-0.1105122343,
0.1547572613,
-0.067184031,
0.1947449744,
0.1582646817,
-0.0564834513,
0.4036886692,
-0.2070344985,
0.1916096658,
0.127662763,
-0.3377638459,
0.1311572939,
0.1394049823,
-0.3861347139,
-0.1064568609,
0.0498940982,
-0.0361736454,
-0.0535907038,
0.1335503757,
0.2916468084,
0.1983622611,
0.0791433603,
-0.1308654249,
0.2947738469,
0.2687247992,
0.1325624138,
0.0422616452,
-0.06248492,
-0.0800575614,
-0.3558064699,
0.1634978503,
0.1999797225,
0.4894589186,
-0.0474283397,
-0.2816002369,
0.1326405704,
0.0129100829,
-0.1073728949,
0.018969439,
0.3589312732,
-0.08796826,
0.2043160647,
0.0424529389,
0.0136887487,
-0.2235276103,
0.0845433101,
-0.2120841295,
0.037955571,
-0.1193307936,
-0.0695322379,
0.381331414,
-0.0790899321,
0.0466330424,
-0.0146685168,
0.0989308655,
0.0503489971,
0.2611701488,
-0.2932828665,
0.0491828322,
0.4129322469,
0.0561540276,
0.2478839457,
0.4095255435,
-0.1842339784,
-0.1060606241,
0.0865908191,
-0.2045432031,
-0.3371694088,
-0.338547945,
0.2402115613,
0.0368899927,
0.1089415699,
-0.0184666477,
-0.3302740753,
0.0986591503,
-0.2747160792,
-0.1541593969,
-0.3237558901,
-0.0389049351,
-0.2159914374,
0.3081871867,
0.6463353038,
-0.4303182662,
0.042956233,
0.0566365495,
-0.1299163401,
0.141459927,
0.2508479953,
-0.3076962531,
0.0851257443,
-0.2284610868,
-0.0966765881,
0.2314823866,
-0.3093753457,
-0.3032815456,
0.5005193353,
-0.2373454273,
-0.0729435831,
0.2169772089,
0.0126163065,
0.2910564542,
0.1858280897,
0.2615151703,
0.300047636,
-0.1007599086,
0.1175526902,
-0.079923287,
-0.2225607783,
0.1973580718,
0.1164560169,
0.0098164212,
0.2231839895,
0.3249673545,
-0.2579790056,
0.1741140485,
-0.0768724382,
0.1447919607,
0.1345078796,
0.173971951,
0.0419842787,
-0.0606002249,
-0.0216644071,
-0.5085176229,
0.1381557584,
0.131092459,
0.0903008729,
-0.4376564324,
-0.016269058,
-0.3771231472,
0.005172275,
-0.2671601176,
-0.0302422959,
0.2100170702,
0.3415310383,
-0.0191594549,
-0.0523176938,
-0.0488571003,
0.3256911337,
-0.1166131869,
-0.0192559678,
-0.4156304598,
0.3395552933,
-0.3544685841,
-0.0690030828,
0.0523540229,
-0.0314199738,
0.1626497507,
-0.1825554669,
-0.2719685137,
0.3561236858,
-0.0955852717,
0.2182244062,
0.0170495138,
-0.0044383109,
0.0526204929,
-0.2450992167,
0.032377407,
0.0311137661,
0.1533316225,
0.0431828797,
-0.2613136172,
0.3525987267,
-0.0953490734,
0.1633696854,
0.0506538972,
0.0704122409,
0.451421231,
0.0119943395,
-0.1140477806,
-0.1085088775,
0.1054949313,
0.2389211655,
0.2262360454,
0.0491033345,
-0.180272162,
-0.1886239499,
0.2018590122,
-0.1532274336,
0.0116078872,
0.0923531502,
-0.1086221337,
-0.0442814827,
0.214684695,
0.2319190353,
0.5149136186,
0.1026021913,
-0.1526021361,
-0.0183212329,
-0.050323505,
-0.133823052,
0.1102776229,
-0.0386922359,
0.0448775776,
0.3272632957,
0.0759821832,
0.106980443,
-0.2410075068,
-0.3630866408,
-0.0419490263,
0.2638893127,
-0.3493006825,
0.2479265928,
-0.1645682454,
0.0182820931,
-0.2659018636,
-0.0503299907,
-0.1105000228,
-0.1780741811,
-0.3695808351,
0.3607574999,
-0.0763825253,
0.2372517139,
-0.279001534,
-0.0516412556,
0.3879841864,
-0.4498327374,
-0.073059842,
-0.2081663162,
-0.160145998,
0.0924806669,
0.0935097486,
-0.1568923295,
0.3031651378,
-0.0989922062,
0.0205263309,
-0.161062479,
-0.0238345936,
-0.0821167827,
0.0125280395,
0.1283057779,
0.1878543645,
0.4475226104,
0.1206025183,
-0.5035607815,
0.3184548914,
-0.0834971517,
0.0481938496,
0.1964567006,
-0.0537021868,
-0.2032558173,
0.0006877333,
-0.6345353127,
-0.5991460681,
-0.4698643684,
0.1375345141,
0.0665088445,
0.213231653,
0.2955248356,
0.2269019037,
0.2099234164,
0.0866583288,
0.0757487267,
-0.0596129894,
-0.1591840684,
0.3499987423,
-0.2349600941,
-0.3570281863,
-0.1133958623,
-0.1152547151,
0.1219444722,
0.1364866644,
-0.4447760582,
-0.0236160941,
-0.1746836454,
0.3565402031,
-0.0467240848,
0.0517050326,
0.4662777483,
0.1686569005,
-0.1706289053,
0.1126607358,
-0.2441870868,
-0.1408114135,
0.19425641,
0.0843702108,
0.0044111069,
0.4593693316,
-0.1589592993,
0.6532874107,
-0.0798087344,
-0.1897099614,
0.2884310782,
-0.1362252682,
0.342966795,
-0.1845075488,
-0.6308504343,
-0.0917782113,
-0.3062296808,
-0.2018837184,
0.0107531957,
-0.229728967,
-0.2305865884,
-0.3641995788,
0.0186994895,
-0.3049328327,
-0.3137823939,
0.1363258511,
-0.1196977943,
0.3635419011,
0.0468817055,
-0.0130359977,
-0.2529371083,
-0.0600581095,
-0.2486276627,
0.3659865558,
-0.0062222742,
-0.093166098,
-0.2668783665,
0.1069132537,
-0.2810814977,
0.2432363331,
0.0800496489,
0.5622869134,
-0.2027089596,
-0.1867957264,
-0.037793126,
0.0581579693,
0.4028223753,
0.0884442106,
0.0874636769,
0.2563878894,
-0.0515907966,
-0.3120605648,
-0.0862112939,
-0.088684231,
0.22119537,
0.2276991457,
0.4607944787,
0.0591155738,
-0.1269775033,
0.3169067204,
0.2359133363,
-0.0872560292,
-0.179053694,
-0.2838753462,
-0.0508109294,
-0.3215521276,
-0.1053740755,
-0.1118416339,
0.1790323257,
-0.1732904613,
-0.1281273663,
0.0737239197,
-0.1710193753,
0.0011047982,
0.1193198115,
-0.1456996202,
0.0959774703,
0.2179177999,
0.1906980872,
0.2628869116,
0.2021608949,
0.4429311454,
-0.2094502896,
-0.5551644564,
0.1772617847,
-0.0145552345,
0.107831195,
0.1052372754,
-0.1369357109,
-0.148758322,
0.1752744019,
0.1808559597,
-0.1539574564,
0.1938526928,
0.2498670667,
-0.1166541502,
-0.3529872894,
-0.4148067832,
0.1314439476,
-0.2005928159,
-0.0967517868,
0.1951030493,
-0.3385472894,
-0.0635158122,
0.2595237494,
-0.1583104432,
0.669519186,
-0.1268932223,
0.1809172332,
0.1628528982,
-0.1345140785,
0.4483828843,
-0.1574921161,
0.1192622781,
-0.3441150188,
-0.2360043377,
-0.0994973779,
-0.2498577386,
0.321854651,
0.0098682111,
-0.096961394,
0.2364210784,
-0.0614167824,
0.2813481688,
0.0652795136,
0.2203808874,
0.0612793863,
-0.2302691191,
-0.1830086559,
0.1901202649,
-0.0931364298,
0.4134555459,
0.0299710073,
-0.1137414426,
-0.0124851018,
-0.3615665138,
-0.0431396291,
0.0593215376,
-0.2830665112,
0.4136628211,
0.0488294065,
-0.3536546826,
-0.0551412143,
0.1381697357,
-0.1533754468,
0.078329742,
-0.1498510987,
-0.0794562995,
-0.108091481,
-0.0611959063,
-0.116901055,
-0.0029087029,
0.1473996192,
0.0824842453,
-0.2685492039,
0.275572449,
-0.1178315729,
-0.3403717875,
0.1828362346,
0.2773402333,
0.2622920275,
-0.5065496564,
-0.1399479955,
-0.3102686107,
-0.1075607389,
-0.1293205172,
0.200531885,
-0.1123934239,
0.0256724395,
0.0055954307,
-0.0878890529,
-0.3105520308,
-0.0419632941,
0.6014829874,
-0.0718145296,
-0.0663498938,
0.3271545768,
0.0624913573,
-0.1843171269,
-0.2428676486,
0.1990405321,
-0.004432261,
-0.467797786,
-0.093008019,
0.068779856,
0.0586961806,
-0.1138907149,
0.071775943,
0.2206759751,
0.1031342298,
0.0357835889,
-0.4803102314,
-0.5924566984,
-0.0901233926,
-0.0120881088,
0.1493127197,
0.4447920024,
0.223069638,
0.0557790995,
0.1090676039,
-0.3599543273,
-0.0675610825,
-0.1895692647,
0.1576154232,
0.5117646456,
-0.2647096217,
0.1770651639,
-0.1552707255,
0.2409110814,
-0.1429233551,
-0.1262868792,
-0.3133457601,
0.0018987805,
0.0618450418,
0.0202442408,
-0.3433458507,
-0.3376549482,
-0.2684758604,
-0.0148098581,
-0.0740636885,
-0.000341475,
0.2130772769,
-0.1187316179,
0.2121611238,
-0.2453934252,
0.0810143799,
-0.1340084523,
0.1350560635,
-0.2799660563,
0.2402765006,
0.027082596,
0.2827393115,
-0.0718642697,
-0.0194424465,
-0.4871895313,
-0.0540026613,
0.0109265707,
0.0986868292,
0.3070953488,
-0.1801374257,
-0.137321189,
0.0053288788,
0.399123311,
0.2806530297,
-0.2605661452,
0.0164486319,
0.1206056252,
0.3077167869,
-0.2169091702,
-0.112417683,
0.1596364826,
0.0255127065,
0.2056991607,
-0.0233399421,
0.0817392692,
-0.194660157,
0.2731686532,
0.0354822651,
0.4447304606,
-0.0881809145,
0.2025936991,
0.6118389368,
0.0197392628,
-0.002939878,
0.161792174,
0.1720684916,
0.1941982806,
0.427090466,
-0.1792922616,
-0.0874078274,
-0.0603711121,
0.1699081361,
-0.178252995,
-0.473313868,
0.143280521,
-0.1597067267,
-0.2988284528,
-0.0670231879,
0.0496744998,
0.2803229094,
-0.2598398924,
0.0749867558,
-0.1056552231,
0.1608564854,
-0.0922898352,
-0.1408544183,
0.0897712409,
-0.073097147,
-0.1290262192,
-0.0425560437,
0.1132717133,
0.0838868096,
0.2775799334,
0.2630509138,
-0.0881880075,
-0.2006155401,
0.1970884651,
0.2208368778,
-0.0557489768,
-0.1138676479,
0.1557370722,
0.3445363343,
0.1739408225,
-0.1311291903,
0.1761197597,
0.6315096021,
0.3470623195,
0.0025092885,
0.2030486763,
-0.1124483719,
-0.1424657851,
-0.0864443034,
0.0251590386,
-0.0924743563,
0.2070284039,
0.3563941717,
0.321375519,
-0.1901988536,
0.3339132071,
-0.0463945605,
-0.1453464627,
-0.1938876212,
0.3707818985,
0.0753011703,
-0.2841670513,
-0.1254213005,
0.0150403343,
-0.4021414518,
0.0693430603,
0.4656213522,
0.0106837526,
0.2924724817,
0.0018881038,
0.1094438434,
-0.0905620456,
0.4269733727,
0.1445120126,
0.3763490319,
-0.4452264011,
0.0112879276,
-0.5027254224,
0.1829466075,
-0.0391800031,
0.0534200296,
-0.0442362018,
0.1701688021,
0.0105170794,
0.202702865,
-0.1474990398,
-0.0566703938,
0.0178524368,
0.1256342083,
0.026939936,
-0.1631550193,
-0.2020684928,
0.0583003312,
-0.0021006279,
-0.3904862702,
0.2174810469,
0.0210844055,
0.1405796409,
-0.2631098926,
-0.0637242272,
0.1954774559,
0.1273898631,
0.3907390535,
0.1600240171,
0.6441076398,
-0.1056480855,
0.0829368904,
-0.0683097094,
-0.2543078363,
0.0151444711,
0.1953170598,
0.2678669393,
0.2144359797,
-0.0889866352,
-0.3141359091,
-0.4714732468,
0.399718076,
-0.0541139357,
-0.085738197,
-0.0444331318,
-0.1015132666,
-0.029540576,
0.0428922661,
0.0381941572,
-0.0330939554,
0.0117345769,
0.2108487189,
-0.176004678,
-0.4096620679,
0.4183119535,
-0.2643620968,
-0.2504860163,
-0.1710996628,
0.278177619,
-0.046329204,
0.2893787026,
-0.2773313522,
0.295822978,
0.4524030387,
-0.211067766,
-0.2147777826,
0.2234392911,
0.0190693475,
0.2123970389,
-0.0396618843,
0.4695011675,
0.1008587778,
-0.242797032,
-0.1551303118,
-0.2195901722
] |
https://github.com/huggingface/datasets/issues/806 | Quail dataset urls are out of date | Hi ! Thanks for reporting.
We should fix the urls and use quail 1.3.
If you want to contribute feel free to fix the urls and open a PR :) | <h3>Code</h3>
```
from datasets import load_dataset
quail = load_dataset('quail')
```
<h3>Error</h3>
```
FileNotFoundError: Couldn't find file at https://raw.githubusercontent.com/text-machine-lab/quail/master/quail_v1.2/xml/ordered/quail_1.2_train.xml
```
As per [quail v1.3 commit](https://github.com/text-machine-lab/quail/commit/506501cfa34d9ec6c042d31026ba6fea6bcec8ff) it looks like the location and suggested ordering has changed. In [https://github.com/huggingface/datasets/blob/master/datasets/quail/quail.py#L52-L58](https://github.com/huggingface/datasets/blob/master/datasets/quail/quail.py#L52-L58) the quail v1.2 datasets are being pointed to, which don't exist anymore. | 30 | Quail dataset urls are out of date
<h3>Code</h3>
```
from datasets import load_dataset
quail = load_dataset('quail')
```
<h3>Error</h3>
```
FileNotFoundError: Couldn't find file at https://raw.githubusercontent.com/text-machine-lab/quail/master/quail_v1.2/xml/ordered/quail_1.2_train.xml
```
As per [quail v1.3 commit](https://github.com/text-machine-lab/quail/commit/506501cfa34d9ec6c042d31026ba6fea6bcec8ff) it looks like the location and suggested ordering has changed. In [https://github.com/huggingface/datasets/blob/master/datasets/quail/quail.py#L52-L58](https://github.com/huggingface/datasets/blob/master/datasets/quail/quail.py#L52-L58) the quail v1.2 datasets are being pointed to, which don't exist anymore.
Hi ! Thanks for reporting.
We should fix the urls and use quail 1.3.
If you want to contribute feel free to fix the urls and open a PR :) | [
0.1114193052,
0.2604740858,
-0.0615226813,
0.0869145766,
0.055291459,
0.1165681556,
-0.1039381847,
0.2843017876,
-0.1458044946,
-0.0269258618,
-0.0500935167,
-0.1096019745,
0.0617605448,
0.0529490337,
0.0366899371,
0.0992363915,
0.0957511142,
-0.1073766202,
-0.4846738279,
-0.1207499057,
-0.2975238264,
0.332778722,
-0.1629835665,
0.0764411241,
-0.3429382443,
0.1360029876,
-0.2239771038,
0.2833049893,
-0.2790637612,
-0.4246108234,
0.2327842861,
0.0262777321,
0.2541757226,
0.4004101157,
-0.0001059034,
-0.0236906335,
0.2455450296,
0.0927898064,
-0.1204445213,
-0.1295035481,
-0.3578025103,
-0.1204459071,
0.0305394158,
-0.0633291006,
-0.0723090917,
-0.0293331966,
-0.0699054897,
-0.1218352839,
0.214851588,
0.4633689225,
0.2901187539,
0.0463869795,
0.0949816555,
-0.208357349,
0.2387119085,
-0.3106751144,
-0.0641398951,
0.312881887,
0.1509220004,
0.0517904088,
0.262489289,
0.4207626283,
0.0320330188,
-0.2172013223,
0.1415033191,
0.062082395,
0.1603160203,
-0.2267243862,
-0.1460567415,
0.0553171299,
0.2769092023,
-0.1575437188,
-0.5258879662,
-0.0571360588,
0.0928649902,
-0.5297967792,
0.1648578793,
-0.073829636,
0.2400809526,
0.2522782087,
-0.1442541927,
-0.0496899933,
-0.0288188607,
0.2217442244,
0.0636482537,
0.1838531345,
-0.0920951813,
-0.1047555804,
-0.0881481171,
-0.0482810549,
0.2248367667,
0.1113289073,
-0.0977199376,
0.073755011,
-0.2285220474,
-0.0461668447,
0.0385252684,
0.1469056755,
-0.0280781984,
0.2144789994,
0.0104719177,
-0.1232720315,
0.0661565363,
-0.1730083078,
0.1355982274,
0.3790613115,
0.1448471248,
-0.3184603453,
0.151891768,
0.4618672132,
-0.1842030287,
-0.0007188986,
0.0595939271,
-0.5326233506,
-0.2876176238,
0.0397345275,
0.2821306288,
-0.3005318642,
-0.0254516639,
-0.0513358936,
-0.2908763289,
-0.0297414903,
0.0198012367,
0.2492843568,
-0.221618861,
0.107191816,
0.0233610347,
0.1979822814,
-0.0525344536,
-0.2585786879,
-0.2975826859,
0.0306349695,
-0.0917570367,
0.0891402587,
-0.2212430537,
-0.182270363,
0.2391891181,
0.0033658184,
0.2054984123,
-0.0999540985,
-0.1102366075,
0.1654512584,
-0.1795854121,
0.1693438143,
0.004581973,
0.2769616842,
0.2565432787,
-0.0907027274,
-0.1499935687,
-0.0387397483,
-0.5298551917,
-0.4499751329,
0.087247774,
0.2952364087,
-0.1409650147,
-0.2585275769,
-0.0653967783,
-0.0385105908,
-0.1615040749,
-0.0347941592,
0.0278654657,
-0.2688952684,
-0.1562506557,
-0.1804730892,
0.0838651955,
0.2679862678,
0.0515943021,
0.0013738647,
-0.0037770905,
0.0785497501,
-0.0651077032,
0.1783443689,
-0.1268854737,
-0.090519689,
-0.2397110462,
-0.1852679849,
0.344042778,
-0.4733639359,
-0.1089771017,
-0.0084116571,
-0.1969915926,
-0.0493406579,
-0.2570845187,
0.04294727,
-0.1960622519,
-0.1369912922,
0.169259131,
0.0898358226,
0.2092838734,
-0.1185132265,
-0.3340956569,
-0.4222734571,
-0.3132747412,
0.0398766845,
-0.0930713564,
0.1723687649,
0.0642235428,
-0.1694262624,
0.2052769214,
-0.0010919478,
-0.0983716547,
0.7106881142,
0.4781782627,
0.3526974916,
-0.049466148,
-0.0677529648,
-0.1924733371,
0.3061390519,
-0.0722021013,
0.2881502211,
0.1848903894,
-0.1361591667,
-0.1398891062,
-0.0058653466,
-0.2005149126,
-0.2296421081,
0.1698445678,
-0.138051033,
0.2528868318,
0.3219496608,
-0.1977851093,
0.2368818372,
-0.1812588722,
0.2085904032,
-0.2242491692,
0.2781150341,
-0.0638108477,
0.0624588802,
0.2114022076,
0.2979293764,
0.2014216334,
0.0791988671,
0.011929132,
0.3588084579,
-0.0972495973,
0.1709811687,
0.3310308456,
0.3559352756,
0.0828733966,
-0.2367124856,
-0.1930481791,
0.0890203491,
-0.2096584439,
0.2908059061,
0.1785556525,
0.4742395282,
-0.1554953158,
0.129475534,
0.2113696188,
0.1168811992,
0.0017113388,
-0.097808145,
0.0756445155,
-0.3420620263,
0.1594596505,
0.2844245136,
0.2542979717,
0.0259376746,
-0.1137984321,
0.306962043,
0.4033266008,
0.0230392739,
-0.0536019579,
0.0925994813,
-0.1973938346,
0.0209064558,
0.0125498045,
0.4818214774,
0.0471955426,
0.2399191707,
0.0522003733,
0.1905371398,
-0.0257106572,
-0.3361626565,
0.2026156336,
0.0240993798,
0.2085720599,
-0.1078712568,
0.2298175693,
0.0393149443,
-0.36513412,
-0.0157521665,
-0.0204766318,
0.1602081656,
-0.2130167186,
-0.1076083705,
-0.4700710475,
-0.2990793884,
-0.4573796093,
-0.4193025827,
-0.5098840594,
-0.4655088782,
0.3162053823,
-0.1503545046,
-0.1422875822,
0.2490208447,
-0.2312076688,
-0.0797577649,
-0.0933568478,
-0.0661017075,
-0.005224064,
0.090627268,
-0.3036707938,
0.1049536094,
0.0305691846,
-0.014089033,
0.0448411033,
-0.154291749,
0.1043545604,
-0.342695564,
-0.4059763551,
-0.0775822997,
-0.084352985,
0.5491737723,
0.101750493,
0.0014882609,
-0.1084430516,
0.0805079415,
0.3233982921,
-0.067547597,
-0.1165401489,
-0.0543075316,
-0.0253549255,
0.2058882117,
0.1120979637,
-0.3937989771,
-0.0122760497,
-0.2286996096,
0.0206467472,
-0.0292606317,
-0.0596243031,
0.1615994573,
0.0350463092,
0.182186082,
-0.1096380129,
-0.0502593331,
-0.0775306448,
-0.6021643281,
0.3979026675,
-0.161203295,
-0.2727681994,
0.0399368703,
0.225916937,
0.1621508002,
-0.165692687,
-0.5440135598,
-0.4649568796,
-0.1229070798,
0.1300372928,
0.3275331855,
-0.160951212,
0.3047890067,
-0.0547414273,
-0.2606643438,
-0.0574706085,
-0.0353730395,
0.0941734612,
0.1546819508,
0.2533337474,
-0.069173336,
0.6103909016,
0.0846166611,
0.8092588186,
0.2597022355,
0.3382930458,
0.2470414639,
-0.1527681053,
0.2351429909,
-0.0168953985,
-0.0565725416,
0.0515858904,
-0.1241090745,
-0.055576317,
0.0963983014,
0.3787657619,
0.6186666489,
-0.0697961897,
0.2015710473,
-0.2937103212,
-0.0371194892,
-0.175522998,
0.2090339512,
0.2424323112,
0.0591367334,
-0.1537002623,
0.0078310817,
-0.1437823176,
0.2146516889,
0.2838855088,
-0.1120321378,
0.1823238581,
-0.6854106784,
-0.1131685376,
-0.2481709272,
0.4097758532,
-0.0106777437,
0.0811439306,
0.0955093652,
-0.0941070467,
0.0324124247,
-0.1074969545,
0.3626112342,
-0.069667615,
0.068117097,
0.1899085641,
-0.3169657588,
-0.1392087936,
-0.1725101471,
0.0236051083,
-0.2791006863,
0.4109920263,
0.3146064878,
-0.0197662041,
-0.3156175911,
0.0546962656,
-0.089984104,
-0.1812010407,
0.1167712212,
-0.3629794717,
-0.382422924,
-0.0023275092,
-0.3053698838,
-0.0203204677,
0.1160423756,
-0.219176501,
-0.0269890092,
0.1659959257,
-0.1291847676,
-0.0373840854,
-0.001379557,
0.2292928249,
0.1055950671,
0.007170938,
0.1888493299,
-0.0121672153,
0.402880609,
0.6721407175,
-0.1860486716,
-0.5906387568,
-0.2913393974,
0.2249022722,
0.2447506189,
0.3056875467,
-0.0362484381,
0.3247108757,
0.2009163499,
0.0997392684,
-0.0396569371,
0.0445981398,
0.4839008451,
-0.068959862,
-0.1399424523,
-0.499594003,
0.656870842,
0.0978091583,
0.0137365311,
0.2668356895,
0.2461107522,
-0.1783277988,
-0.1669570357,
0.1724598855,
0.8291386366,
-0.0409685969,
0.2310602516,
0.3960911334,
-0.4848232865,
0.5719251037,
0.120262824,
0.1941403151,
-0.3730401397,
-0.0633785576,
-0.0080903843,
-0.0919921622,
0.0135274306,
0.0094934432,
-0.0071856007,
0.3337571025,
-0.1416925043,
0.0603104383,
-0.1129810214,
0.0118250921,
-0.1428668052,
0.2773574889,
-0.515390873,
0.2148795724,
0.1652461886,
0.2382723689,
-0.1999228299,
-0.2056627721,
-0.103756696,
-0.0922959521,
0.0242445767,
0.1859454364,
-0.3815821111,
0.2116109431,
0.0849454403,
-0.2099082768,
-0.3028818369,
0.4327216148,
0.1628584564,
-0.1900702715,
-0.2635914981,
0.3623175025,
0.2731157541,
-0.0681038797,
0.1615026593,
-0.0301415436,
0.2988241017,
-0.303568095,
-0.0553887859,
0.2854468524,
0.0279559903,
-0.537661016,
-0.2894961834,
-0.072266385,
-0.3765804172,
-0.1507780105,
-0.1321436167,
0.12797001,
0.2519580424,
-0.3033633232,
0.1605209261,
0.1552581191,
0.1556304097,
-0.2645989358,
0.0567703582,
-0.2391587198,
-0.1719484478,
0.3282779455,
-0.1123785079,
0.001801841,
0.4858092964,
0.3341837525,
0.0392558426,
-0.1379558444,
0.012378037,
0.2258205116,
-0.2358328104,
0.197334826,
-0.0433264412,
0.2427886128,
0.2512148619,
0.4615600109,
0.1652023196,
-0.1867063344,
0.0350044444,
-0.1815743744,
0.0094837248,
0.4817071855,
0.1577066481,
-0.008812882,
-0.1952922046,
0.1823574305,
-0.0750709772,
-0.2257032096,
-0.3950366974,
0.203849107,
-0.143901974,
-0.2771149874,
-0.3582423627,
0.0014215955,
0.2592719197,
0.1789798886,
0.0973576605,
-0.2925743163,
-0.3537396193,
-0.1660477817,
-0.1708533764,
0.0708606988,
0.0334238186,
-0.0888590068,
0.0984103978,
-0.2000893503,
-0.062746495,
0.0128013194,
-0.1373794675,
0.3463507295,
0.0812528804,
0.1052272245,
-0.0027637938,
-0.1182603911,
0.1221793443,
0.0165884346,
0.0341541469,
-0.0321344137,
0.2820424736,
0.098818779,
-0.047556024,
0.0455970243,
0.1392198354,
-0.0188554302,
-0.2877015173,
-0.0232755207,
0.2466732562,
-0.3490713239,
0.0197909474,
0.4390015304,
0.4129157662,
0.3339142799,
-0.2336784601,
-0.0659421384,
0.033958748,
0.2542688251,
-0.2860071361,
-0.0536646321,
-0.3654847741,
0.1874475777,
-0.1943540573,
-0.0131097585,
0.0715932399,
0.0668575019,
0.1099220365,
0.3007769883,
0.2003923059,
-0.0254671425,
0.339809835,
-0.1550864577,
0.0749492124,
0.1195510328,
0.3186764419,
-0.0308235046,
0.146272704,
0.1211035103,
0.1183242276,
0.2409099936,
0.1301385611,
0.1085388064,
-0.0022802204,
-0.187073186,
0.008457615,
0.2893755436,
-0.1413892657,
-0.0005285908,
-0.0831540152,
0.4072687328,
-0.3353337944,
-0.0297646746,
-0.3718999028,
0.1679223776,
-0.0418686904,
-0.1575570554,
0.1652292609,
-0.1897245347,
0.1079779267,
0.0576376319,
-0.1431669295,
-0.2384099066,
-0.0464771315,
-0.0566878058,
-0.2598980069,
-0.5065023303,
-0.2689236403,
0.1722846031,
0.3049837947,
0.0092845857,
0.1346587092,
0.2707108557,
-0.2390354127,
0.2845740914,
0.4439421296,
0.3326486349,
0.1932353079,
0.1335196793,
-0.1142107099,
0.0171820968,
-0.0114428215,
0.0906792432,
0.1613946706,
0.1812470555,
0.1034264266,
0.3300357163,
0.2458970547,
-0.2124290913,
0.1631971747,
-0.2599747181,
0.2762045562,
-0.4183763862,
0.4726521969,
-0.1954815388,
0.0301967412,
-0.1352808177,
0.2122770697,
-0.3365430236,
0.0922620073,
0.3247302175,
-0.1356581151,
-0.1607272625,
-0.1237220839,
0.138381198,
0.1564608812,
0.3751397729,
0.616961956,
0.100704819,
-0.1028801724,
-0.4628230333,
-0.6122589111,
0.0200035423,
-0.1122746319,
0.1951151192,
-0.0145683233,
-0.0792069659,
-0.0571737811,
-0.0858109742,
0.2085533142,
-0.2471513152,
-0.3349535167,
-0.2094246447,
-0.3358881474,
0.1395667195,
-0.1603654772,
0.128080979,
-0.0205314979,
0.0371930003,
0.0284701157,
0.0694418401,
0.0452214777,
0.1195852086,
0.0844079778,
0.0082626119,
-0.3566027284,
0.2902091742,
0.1418780684,
0.0494370498,
0.1012413055,
-0.2747137547,
-0.3510787785,
-0.600617826,
-0.1752639711,
0.2137154639,
-0.3993288875,
0.3152039945,
-0.1192759275,
-0.1663544178,
-0.2479839325,
0.3971482813,
0.0729335546,
-0.3265809417,
-0.1988490224,
0.1087142006,
0.1168077067,
0.0223370232,
0.2624645531,
0.4446202815,
0.041253075,
0.1693061143,
-0.1308509707,
-0.2479740381,
0.4088897109,
-0.5502560139,
0.1254832149,
-0.1424400657,
0.2096134126,
0.3931017518,
-0.067917943,
-0.431203723,
-0.1493132859,
0.4588046372,
0.4916496873,
-0.2030234784,
0.4504621923,
-0.0185017418,
-0.0781896859,
-0.0022151023,
0.4493299425,
-0.0151744308,
-0.3239266276,
0.1513315886,
-0.0947425142
] |
https://github.com/huggingface/datasets/issues/806 | Quail dataset urls are out of date | Done! PR [https://github.com/huggingface/datasets/pull/820](https://github.com/huggingface/datasets/pull/820)
Updated links and also regenerated the metadata and dummy data for v1.3 in order to pass verifications as described here: [https://huggingface.co/docs/datasets/share_dataset.html#adding-tests-and-metadata-to-the-dataset](https://huggingface.co/docs/datasets/share_dataset.html#adding-tests-and-metadata-to-the-dataset). | <h3>Code</h3>
```
from datasets import load_dataset
quail = load_dataset('quail')
```
<h3>Error</h3>
```
FileNotFoundError: Couldn't find file at https://raw.githubusercontent.com/text-machine-lab/quail/master/quail_v1.2/xml/ordered/quail_1.2_train.xml
```
As per [quail v1.3 commit](https://github.com/text-machine-lab/quail/commit/506501cfa34d9ec6c042d31026ba6fea6bcec8ff) it looks like the location and suggested ordering has changed. In [https://github.com/huggingface/datasets/blob/master/datasets/quail/quail.py#L52-L58](https://github.com/huggingface/datasets/blob/master/datasets/quail/quail.py#L52-L58) the quail v1.2 datasets are being pointed to, which don't exist anymore. | 24 | Quail dataset urls are out of date
<h3>Code</h3>
```
from datasets import load_dataset
quail = load_dataset('quail')
```
<h3>Error</h3>
```
FileNotFoundError: Couldn't find file at https://raw.githubusercontent.com/text-machine-lab/quail/master/quail_v1.2/xml/ordered/quail_1.2_train.xml
```
As per [quail v1.3 commit](https://github.com/text-machine-lab/quail/commit/506501cfa34d9ec6c042d31026ba6fea6bcec8ff) it looks like the location and suggested ordering has changed. In [https://github.com/huggingface/datasets/blob/master/datasets/quail/quail.py#L52-L58](https://github.com/huggingface/datasets/blob/master/datasets/quail/quail.py#L52-L58) the quail v1.2 datasets are being pointed to, which don't exist anymore.
Done! PR [https://github.com/huggingface/datasets/pull/820](https://github.com/huggingface/datasets/pull/820)
Updated links and also regenerated the metadata and dummy data for v1.3 in order to pass verifications as described here: [https://huggingface.co/docs/datasets/share_dataset.html#adding-tests-and-metadata-to-the-dataset](https://huggingface.co/docs/datasets/share_dataset.html#adding-tests-and-metadata-to-the-dataset). | [
0.1814383715,
0.2633911669,
-0.0307958741,
0.0592454895,
0.0418909378,
0.1230022311,
-0.123968035,
0.2763622403,
-0.193677783,
-0.0339007527,
-0.0796775073,
-0.064638637,
0.049629502,
0.0543347076,
0.0547168404,
0.1128323898,
0.0695690066,
-0.1595676839,
-0.4316188395,
-0.108742483,
-0.191398263,
0.2826838791,
-0.1356841922,
-0.0009309687,
-0.3394689262,
0.1508263648,
-0.2323251963,
0.3646856844,
-0.3322315812,
-0.4802741706,
0.2540862262,
0.0976134911,
0.1320036948,
0.4148572981,
-0.0001096011,
-0.0329767019,
0.2606875896,
0.0720773935,
-0.3000723124,
-0.2538610399,
-0.3303824663,
-0.0534779392,
0.0642533302,
0.0051975697,
-0.1115037873,
0.008726418,
-0.1095505059,
-0.1580019146,
0.2263865471,
0.4945189953,
0.2406267524,
0.1653035432,
0.1251360625,
-0.2052199692,
0.1658790857,
-0.2156869918,
-0.02300331,
0.4426383972,
0.1209791079,
0.1489258111,
0.1896127313,
0.4562257528,
0.0909187123,
-0.1802686006,
0.1911190748,
-0.0242547002,
0.0599370785,
-0.1483262032,
-0.1277469099,
0.0273971334,
0.2083009034,
-0.1990527213,
-0.5881255865,
-0.176021114,
0.0165029205,
-0.4174695909,
0.1901534498,
-0.0808430463,
0.1551345438,
0.2480663359,
-0.2717455029,
-0.0539406426,
-0.0046207458,
0.1716925502,
0.0638780445,
0.1718870401,
-0.1085075736,
-0.0988063216,
0.0124231344,
-0.0263069905,
0.1257362515,
0.0749671757,
-0.1273313761,
0.0849021077,
-0.1319328845,
-0.03597885,
0.1138862669,
0.1978077739,
0.1343403608,
0.2857430577,
-0.0385013483,
-0.147422418,
0.0258239955,
-0.1968911439,
0.061847508,
0.3826504946,
0.1576800942,
-0.270206213,
0.0801090598,
0.5797711015,
-0.1599888504,
-0.0159529671,
0.1051410139,
-0.4348550141,
-0.3297364712,
0.0925481766,
0.2865136862,
-0.3187013865,
-0.0632404909,
0.0108159631,
-0.3502394557,
-0.0768397897,
0.0638163239,
0.2661100328,
-0.1927780658,
0.0190292671,
0.0102393478,
0.1783716083,
-0.0718515515,
-0.2222540975,
-0.258959353,
0.0936971381,
-0.0632135272,
0.1031196713,
-0.0797803849,
-0.2712109089,
0.301489532,
0.0433485843,
0.2006926388,
-0.1985327005,
-0.0881212279,
0.1705404371,
-0.0275038444,
0.1518931687,
-0.0345387831,
0.2503410578,
0.2580698431,
-0.131642729,
-0.1506108195,
-0.1688245833,
-0.4042609036,
-0.4505808353,
0.1156922206,
0.2677433193,
-0.2115437984,
-0.2300758064,
-0.0241175555,
-0.0581055246,
-0.226420328,
-0.0449962318,
0.0595387109,
-0.0966744721,
-0.1148602664,
-0.1025138795,
0.191026479,
0.4267815351,
0.0651887953,
-0.0261199251,
0.0257125348,
0.0380404778,
-0.2048700899,
0.1064183637,
-0.0868134946,
-0.0654599369,
-0.3349542618,
-0.2091577351,
0.1974398792,
-0.5608180761,
-0.094202444,
0.0485448688,
-0.1807420254,
0.093672879,
-0.162736237,
-0.1018606573,
-0.2574155331,
-0.1729728729,
0.0969288051,
0.0059843659,
0.1815549284,
-0.1735568792,
-0.3533759713,
-0.3301098049,
-0.3004468083,
0.0161604658,
-0.0834333003,
0.1149522513,
0.076456815,
-0.1423190534,
0.233359471,
-0.0752680302,
-0.0558655709,
0.6734697223,
0.4449433386,
0.3045356274,
-0.1210881025,
-0.0760172158,
-0.2076108903,
0.3075021505,
-0.0486546494,
0.3698554039,
0.0529563054,
-0.2197632641,
-0.2623218894,
-0.0322502665,
-0.1872365326,
-0.3644116521,
0.1521928608,
0.0017654169,
0.3293638825,
0.3688012958,
-0.1308610141,
0.2453604341,
-0.0927001685,
0.2844386101,
-0.3363265097,
0.2050414383,
-0.0753417015,
0.1298637986,
0.1803189516,
0.3316288292,
0.1685499251,
-0.0470928736,
0.0621582158,
0.4803513885,
0.0241097882,
0.2260792404,
0.2993499041,
0.3887957931,
0.1408172995,
-0.1528512686,
-0.265907526,
0.0504739545,
-0.1981075108,
0.2852497399,
0.0042882883,
0.5125675201,
-0.2272350043,
0.0437140912,
0.3117084503,
0.0802917704,
-0.0253985897,
-0.1287052929,
-0.063053973,
-0.3391028941,
0.1343838871,
0.1905377209,
0.2555981874,
0.0694107488,
-0.0865647495,
0.2544048727,
0.3082244992,
0.0007833764,
-0.1199910492,
0.043902602,
-0.1633098722,
-0.0302388221,
0.036218904,
0.4918467402,
0.0463037603,
0.1890508831,
0.1436039954,
0.2670881748,
-0.1065992638,
-0.3105115294,
0.207212925,
-0.0025301687,
0.1240765229,
-0.0794557407,
0.1605028361,
0.0790011585,
-0.3271410465,
-0.010496214,
0.0667406097,
0.1396940649,
-0.3313038349,
-0.0737125203,
-0.4184129238,
-0.3264890015,
-0.4596145451,
-0.4717079699,
-0.5129227042,
-0.4499327838,
0.2855214775,
-0.0565387346,
-0.1617544889,
0.2672254443,
-0.2155948281,
-0.0531655252,
-0.0735491142,
-0.1525689065,
-0.0285652354,
0.1614376009,
-0.2533705533,
0.0804100707,
0.0947549343,
0.0047856346,
0.0835870802,
-0.1914667636,
0.074206382,
-0.3723449707,
-0.4635861516,
-0.0564412214,
-0.14089863,
0.5550059676,
0.1813011169,
-0.021527037,
-0.1195014864,
0.0860506147,
0.2670640647,
-0.0964374244,
-0.147089228,
-0.0960969925,
0.0041289218,
0.2165306807,
-0.0191943757,
-0.3963406682,
0.0923182517,
-0.1952122003,
0.1519498229,
0.0069098845,
-0.1381202787,
0.2225100547,
0.0484433398,
0.2165599763,
-0.1757254452,
-0.0094171539,
-0.1496474445,
-0.5822514892,
0.2848047316,
-0.1767050028,
-0.2390969545,
0.0257046819,
0.1659632325,
0.2770974636,
-0.1885910928,
-0.4924696684,
-0.570995152,
-0.0644248575,
0.1746458709,
0.2372263819,
-0.1355830729,
0.3587381244,
-0.0854974538,
-0.2194234431,
-0.0985165238,
-0.0537884459,
0.0614869371,
-0.0216502622,
0.2505015135,
-0.1885725707,
0.4891976118,
0.1769677699,
0.8431835771,
0.2600775361,
0.2609490156,
0.2362291217,
-0.1968094558,
0.3244538605,
0.0472131148,
-0.0810237452,
0.0727616549,
-0.1016947925,
-0.0037915036,
0.0429976769,
0.3066650629,
0.7679777145,
-0.0914558843,
0.1827274114,
-0.3247425258,
-0.1310318261,
-0.1817192137,
0.0356879495,
0.3020511568,
0.1169663146,
-0.0425445065,
0.0171982348,
-0.1026649624,
0.2317437232,
0.3316001296,
-0.0135302059,
0.173232317,
-0.6399106383,
-0.0365073122,
-0.3518027067,
0.3797100484,
0.0645186678,
0.1396473348,
0.0556263179,
-0.1233764291,
-0.0507147387,
-0.1160817146,
0.4085844159,
-0.0691761151,
0.1059037745,
0.1350662261,
-0.3020002544,
-0.2461178899,
-0.0885842368,
-0.0272302479,
-0.3619995117,
0.4575109184,
0.4446382523,
-0.1656658947,
-0.3098145127,
0.0562440082,
-0.1417031884,
-0.0532332286,
0.2052561194,
-0.3486959934,
-0.4430468082,
-0.0546428114,
-0.2301964313,
-0.0071740001,
0.1470792294,
-0.2678344548,
0.0868050009,
0.1913799047,
-0.0677242205,
0.0639550984,
0.0318150073,
0.2438021451,
0.1417738348,
0.0198608115,
0.2720103264,
0.0153752305,
0.4065674245,
0.6914363503,
-0.1354544759,
-0.4697494507,
-0.3509449959,
0.2945725024,
0.2590722442,
0.3263114989,
-0.0476586558,
0.3299763799,
0.1912797689,
0.0777611285,
-0.209371984,
0.1048559919,
0.4534514248,
-0.0409374759,
-0.0853037834,
-0.3975664973,
0.5780673027,
0.0859422758,
0.0281031281,
0.2531375885,
0.3308800161,
-0.2443989217,
-0.1855501384,
0.2200328708,
0.8425857425,
0.0273277573,
0.2498831004,
0.4652483761,
-0.4865774512,
0.6284455061,
0.1138915047,
0.1167908758,
-0.3304569125,
-0.0622640625,
-0.0057840534,
-0.1061193421,
0.0082026431,
-0.0639030039,
-0.1377875507,
0.2658025622,
-0.0602784604,
0.0859859735,
-0.0679703653,
0.1801136136,
-0.2645607591,
0.2733730972,
-0.4418807924,
0.2128524482,
0.2451350242,
0.2972659469,
-0.2224356979,
-0.2004104406,
-0.1561026871,
-0.1980499625,
-0.0180063322,
0.1851612478,
-0.3557876348,
0.1390529722,
0.1724865735,
-0.1021338254,
-0.2756610811,
0.3033571243,
0.2223786563,
-0.0762576088,
-0.2680268884,
0.4168859124,
0.1282348782,
-0.0431416221,
0.1861748546,
-0.0340023413,
0.3404321074,
-0.2331408262,
-0.0630676672,
0.1382154226,
-0.0767261386,
-0.439155221,
-0.2390262634,
-0.1183926761,
-0.4430554807,
-0.205671072,
-0.0422481932,
0.0694176555,
0.1149648577,
-0.2710416913,
0.1299428046,
0.047997538,
0.1040009037,
-0.307675153,
0.0699526519,
-0.2854259014,
-0.1601448357,
0.4254311323,
-0.3218722343,
-0.0067445487,
0.4813891053,
0.2502382994,
0.1123088598,
-0.1110352725,
-0.0371991023,
0.2380976081,
-0.2929172516,
0.1611119211,
-0.0172077604,
0.2694164813,
0.1723060906,
0.4040857553,
0.237652272,
-0.0955926627,
0.0836972445,
-0.2066097558,
0.0278001353,
0.4206290245,
0.1170641184,
0.0566003397,
-0.2326493263,
0.3210022449,
0.0009797812,
-0.1152568534,
-0.3622205257,
0.2478494048,
-0.1676051915,
-0.1988891363,
-0.2702732682,
-0.057368286,
0.2942202091,
0.0823204666,
0.0673329383,
-0.1960426867,
-0.3853552341,
-0.1269192845,
-0.2115197182,
0.0900652111,
0.0398109145,
-0.1216629371,
0.062150985,
-0.0562658794,
-0.0648768693,
-0.0032027233,
-0.1305011958,
0.3166626692,
0.031810753,
0.0892098844,
-0.0135129895,
-0.0400497057,
0.1037705839,
-0.1322864145,
0.1011286303,
-0.0129037648,
0.234183982,
0.0758781582,
-0.1952822059,
0.0338550359,
0.1749708652,
0.1117260605,
-0.1557747871,
-0.0663066655,
0.2309957743,
-0.1855956763,
-0.0536368228,
0.3081521392,
0.4672927558,
0.3777962327,
-0.2285105884,
0.0026174411,
0.0609018579,
0.2245689929,
-0.2025838196,
0.0307429396,
-0.3618756533,
0.1536622792,
-0.0639064312,
0.005317159,
0.1485767066,
0.091324836,
0.186455369,
0.2460994571,
0.2154446244,
0.0055518374,
0.3046574891,
-0.160741508,
-0.0349445865,
0.0800448954,
0.3350790441,
-0.1089570522,
0.1698317975,
-0.004171886,
0.1120946258,
0.2956155539,
-0.0068132058,
0.152940914,
0.0102919247,
-0.1873323768,
-0.0332225263,
0.2469591796,
-0.1338677406,
0.0300430451,
-0.0903743282,
0.4863061905,
-0.4023510516,
-0.0568595156,
-0.3628669977,
0.1842983365,
0.0369330645,
-0.1936807185,
0.1198693663,
-0.2513341904,
0.0177055597,
0.0370142907,
-0.0421492383,
-0.2770991027,
0.0040445179,
-0.0828765631,
-0.2485534549,
-0.5583952665,
-0.3507039547,
0.2220550179,
0.3133892417,
-0.020680584,
0.196670711,
0.3626985252,
-0.2110579163,
0.3159110844,
0.4462772608,
0.3888228834,
0.0895375013,
0.197193414,
-0.0478761569,
-0.09101969,
0.0438548401,
0.1091190949,
0.2886356413,
0.1897923052,
-0.0025092736,
0.418423444,
0.2127278745,
-0.1955217719,
0.0928409919,
-0.2901560664,
0.2178246677,
-0.485585928,
0.5161005259,
-0.2369038761,
0.0915005282,
-0.1825550348,
0.2203061581,
-0.3714238405,
0.144079268,
0.2604113519,
-0.1047091484,
-0.0537454821,
-0.1721443534,
0.1095535159,
0.2026280761,
0.4219173789,
0.6534841061,
0.0887692571,
-0.1786468923,
-0.5586009026,
-0.686691165,
-0.0761821717,
-0.0874831378,
0.1036495864,
-0.0977807641,
-0.0571173802,
-0.0961703807,
-0.0689979047,
0.0769330412,
-0.2398115695,
-0.2191072404,
-0.2407480478,
-0.3112719655,
0.161643967,
-0.2100401521,
0.0585404336,
0.0036476478,
0.0539029092,
0.0561277717,
0.0510279648,
0.0360844508,
0.196017921,
0.1249700636,
-0.0187995918,
-0.271078378,
0.2645249665,
0.1476807296,
0.1295085251,
0.042392008,
-0.3390611708,
-0.4437514842,
-0.430364877,
-0.1474564373,
0.2299004048,
-0.3755775988,
0.3490491807,
-0.0557293259,
-0.227375254,
-0.2384175658,
0.4388744533,
0.1461502016,
-0.31559062,
-0.2409461141,
0.1113786772,
-0.0185970068,
0.1104483753,
0.2772141993,
0.5209019184,
-0.0310766995,
0.2682861388,
-0.1945826709,
-0.2983019352,
0.5188690424,
-0.5274546146,
0.1273460388,
-0.1431817263,
0.2442847937,
0.2939404845,
-0.1605309993,
-0.50922966,
-0.0787196234,
0.4858418107,
0.4363699257,
-0.218098551,
0.4078378975,
-0.0699500442,
-0.0490434095,
0.0053985864,
0.505484283,
0.0244075879,
-0.2426122427,
0.266394645,
-0.0170517527
] |
https://github.com/huggingface/datasets/issues/805 | On loading a metric from datasets, I get the following error | Hi ! We support only pyarrow > 0.17.1 so that we have access to the `PyExtensionType` object.
Could you update pyarrow and try again ?
```
pip install --upgrade pyarrow
``` | `from datasets import load_metric`
`metric = load_metric('bleurt')`
Traceback:
210 class _ArrayXDExtensionType(pa.PyExtensionType):
211
212 ndims: int = None
AttributeError: module 'pyarrow' has no attribute 'PyExtensionType'
Any help will be appreciated. Thank you. | 31 | On loading a metric from datasets, I get the following error
`from datasets import load_metric`
`metric = load_metric('bleurt')`
Traceback:
210 class _ArrayXDExtensionType(pa.PyExtensionType):
211
212 ndims: int = None
AttributeError: module 'pyarrow' has no attribute 'PyExtensionType'
Any help will be appreciated. Thank you.
Hi ! We support only pyarrow > 0.17.1 so that we have access to the `PyExtensionType` object.
Could you update pyarrow and try again ?
```
pip install --upgrade pyarrow
``` | [
-0.4477342367,
0.0432359427,
-0.0295896493,
0.4208570123,
0.5251891613,
0.1035730094,
0.164776817,
0.1940904856,
0.1096886694,
0.1362631619,
-0.109651871,
0.3368697762,
-0.0627769455,
-0.1668594033,
0.1410338283,
-0.2463781834,
-0.027194649,
0.1920604557,
0.0922095701,
-0.003633298,
-0.3685498238,
-0.1364815086,
-0.3558760285,
0.145697087,
-0.1629059911,
0.2254021019,
0.1931555867,
0.0090093231,
-0.3982920647,
-0.7526153326,
0.3747632205,
-0.1119993925,
0.3816021085,
0.3474772573,
-0.0001240613,
-0.0532214046,
0.4694948792,
0.0690528527,
-0.0325648412,
-0.1555885822,
-0.0472494662,
-0.5924617648,
0.4746725261,
-0.2663750648,
0.1151425689,
-0.3819154501,
-0.0803709626,
0.0106821805,
0.0000427105,
0.3255780637,
0.1146777272,
0.2620678842,
0.1725228727,
-0.0434031822,
0.231204778,
-0.2000415325,
-0.0261910371,
0.7022867203,
0.3933599889,
-0.0741879791,
0.0453939475,
-0.1326176822,
-0.2683163285,
0.3054685891,
0.6438336968,
0.0471060127,
0.7276006341,
0.1125337183,
-0.0025625527,
0.2077436,
0.5605256557,
-0.3992996812,
-0.1872150004,
-0.0055951998,
0.1198052764,
-0.5990044475,
-0.0057856701,
0.155477643,
-0.0863239244,
-0.0297744218,
-0.1559569538,
-0.2771829069,
-0.3049781322,
0.3827387094,
-0.4256871343,
0.1999415159,
-0.0028615184,
0.1904509068,
0.0421305373,
0.1036916375,
0.3612973988,
0.1235064268,
-0.0343153216,
0.32064569,
-0.1970832199,
0.339615345,
-0.01339278,
0.0045503415,
0.1632938236,
0.0130460896,
-0.1188291907,
0.0183441006,
0.2028713673,
0.3485451341,
0.1614827067,
0.3077957332,
0.1672464013,
0.0110293664,
0.055971846,
-0.0040244721,
0.0830655694,
-0.0670679361,
-0.2160409987,
-0.4661626816,
0.5968540311,
0.0668008029,
0.301245749,
-0.1160362884,
-0.4341298044,
-0.1129993498,
-0.0865911394,
-0.0943883955,
0.0497984961,
0.2513808906,
-0.1997382343,
0.0912388116,
0.0677677393,
0.3696973324,
-0.2501343489,
-0.1857693046,
-0.1952726543,
0.1066116616,
-0.2625356615,
0.0000294186,
0.0891800895,
-0.056816902,
0.0568077713,
0.0030257776,
0.0976197124,
-0.1197638959,
-0.0368678644,
0.0555888377,
-0.3641155362,
0.2943822742,
-0.0207621455,
0.0673538744,
0.1551134884,
-0.2252224088,
-0.2445801347,
0.4579230547,
-0.6061687469,
-0.2087028176,
-0.1568137854,
0.1332366914,
-0.3736670017,
-0.1092547178,
-0.3528386652,
0.0116290115,
0.0077765174,
-0.4129946828,
-0.0713237152,
-0.3113195002,
-0.1520628035,
-0.3541128933,
0.2045820653,
-0.0227162689,
-0.5203089118,
-0.3517712653,
-0.0129672848,
-0.2946340144,
0.2751322985,
-0.0584547259,
-0.16627042,
0.3013262153,
0.0159814581,
0.1851956546,
0.6382396221,
-0.4752626419,
-0.3443495631,
-0.1950332075,
-0.0009904429,
-0.2643796206,
-0.1600801945,
0.0409101956,
0.1501142979,
0.0641754568,
0.2980700135,
0.2062176019,
-0.0031769052,
-0.1594296992,
-0.1733083278,
-0.283282578,
0.4397917986,
0.3413210213,
0.3044850826,
-0.0591275133,
0.1699138433,
-0.1738013923,
0.1014139503,
-0.0718532056,
-0.1542692184,
0.1848923117,
0.3217557371,
-0.0357235074,
0.0550462455,
-0.4485321641,
-0.1258917004,
0.1892150044,
-0.3106268048,
-0.1679631174,
0.0042410605,
0.1094834879,
-0.434689939,
0.2367290705,
-0.1108593792,
0.3339414299,
-0.0271152984,
-0.2589212954,
-0.2148228288,
0.1870916486,
-0.2771652341,
-0.1958678961,
-0.0949809551,
0.1448464096,
0.0309311189,
0.3782994747,
-0.0787290037,
-0.2414982021,
-0.0593732782,
0.25610888,
0.3077491224,
0.0221541412,
-0.1537632346,
0.2603690326,
0.1600508988,
0.0808941126,
-0.213843897,
0.3093134761,
0.1825263053,
-0.4685378671,
0.1197993606,
-0.0668742061,
0.0494304933,
-0.0901232585,
0.4214504361,
0.3279108703,
0.235151574,
0.1385500133,
-0.2111465037,
0.0676796734,
-0.0596082546,
0.1601523012,
0.1424190402,
-0.0854181945,
0.2626125216,
0.0419948846,
0.1380292624,
-0.1082080752,
0.2867135406,
-0.3000458479,
0.2892780006,
-0.1676274836,
0.310126245,
0.0500694737,
-0.4673429728,
-0.0493842214,
-0.0922979191,
-0.4501457214,
0.3805409372,
0.1928175241,
-0.1406977773,
0.2333018035,
-0.0476167984,
-0.0548883006,
0.1000477597,
0.1550489366,
0.1539152414,
0.2955875099,
0.1372584105,
-0.0522827432,
-0.2871319652,
0.0765532106,
0.007502459,
0.3762494028,
-0.4939354956,
0.0020113438,
-0.2372110188,
0.3236037493,
0.1041833907,
-0.6289689541,
-0.2238147855,
-0.2210230529,
-0.0082974257,
0.0773930997,
0.2758725882,
0.2762281895,
0.0756509751,
0.0263561457,
0.1077223048,
-0.339680016,
-0.0453540683,
-0.4383220971,
-0.2347653061,
-0.0768534914,
0.0777076557,
0.1192525998,
0.209879756,
-0.3348414302,
0.273045361,
-0.190192312,
-0.2635511756,
-0.1309445202,
0.0219960399,
0.479318738,
0.1622715443,
0.1729495674,
0.0853077173,
0.1829315424,
0.5639778376,
-0.3476027548,
-0.0682467446,
0.3482562304,
-0.4411281645,
-0.0449692421,
0.0662384778,
-0.0566096976,
-0.3273489177,
-0.2449301183,
-0.1256792694,
0.2227714211,
0.017766038,
0.061355073,
0.2782218754,
0.2475698888,
0.1272648424,
0.0482378155,
-0.214144066,
-0.0603619367,
0.2959454358,
-0.1059389859,
-0.3464952409,
0.2384506762,
0.0630743504,
0.1560285836,
0.1219248027,
-0.2076561004,
-0.5688387156,
0.0659228265,
0.4641948938,
-0.1530639976,
0.0602014512,
0.2451776117,
0.0405856818,
0.0811166167,
-0.1358041465,
-0.1196375936,
-0.1869876236,
0.0505611338,
0.2026738226,
-0.2258230448,
0.0787332803,
-0.3294832706,
0.5184357762,
-0.0982307494,
-0.0923545361,
0.2856253982,
-0.2308760285,
0.2227144837,
0.0457645878,
-0.2934778333,
0.116418317,
0.0845763758,
-0.0986220688,
0.1352088898,
-0.0932727307,
-0.121923849,
-0.0720165297,
-0.1641137004,
-0.1699743122,
-0.0842035711,
-0.0153139606,
0.1153473035,
0.2311874479,
-0.0752972215,
0.0969206169,
-0.375187546,
-0.1673186123,
0.1090277806,
0.1622147262,
-0.0680233538,
-0.0152938217,
0.0940638781,
-0.3395544887,
-0.1821203083,
0.3705578446,
0.1456340849,
0.0941570103,
-0.0666496605,
0.2181901485,
0.2654327154,
0.0250835195,
0.4870405197,
-0.1097778454,
0.0895298272,
0.1871180832,
0.2904038429,
-0.7096181512,
-0.1157722324,
-0.0955758467,
-0.1859761626,
-0.1485859454,
0.0202712864,
-0.2645127177,
-0.0277643837,
0.1452292949,
0.4343498349,
-0.2057579309,
-0.1839663982,
-0.3783519864,
-0.3793309927,
-0.1207829714,
-0.2427343279,
-0.1333239675,
0.5662707686,
0.2243226469,
0.0947567374,
-0.249936983,
-0.0046910122,
0.1537572592,
0.0757437497,
0.2325026393,
-0.3217102587,
-0.1023776829,
0.132873565,
-0.2103892267,
0.4325805604,
0.3238075376,
0.1668313146,
-0.6007298231,
-0.0192839243,
0.2132885009,
0.4657882452,
-0.0689152032,
-0.1712119579,
-0.0001081415,
-0.2439331114,
0.0699209422,
-0.0859470814,
0.0014573149,
0.4349579513,
0.1507767141,
-0.2472896576,
-0.1691262722,
0.7192627192,
0.2362062782,
-0.0063844919,
0.2447105646,
0.1861101985,
-0.1508256346,
0.0386650302,
0.2608061433,
0.8751798868,
-0.1485059857,
-0.0356447734,
0.6681912541,
0.0653143153,
-0.0434385315,
-0.2077665478,
-0.0441977121,
-0.3461954594,
-0.0706759766,
-0.1325065643,
-0.1745799482,
0.2734085321,
-0.1651375741,
-0.0012435764,
0.1631551981,
-0.3736900389,
0.128374368,
0.2024358511,
-0.1762662679,
0.0211017337,
0.0203246176,
-0.147498697,
0.073339954,
-0.3176966012,
0.0513554141,
-0.201273188,
0.0791233405,
0.0257731602,
0.0428313017,
-0.1739719212,
-0.1566653848,
-0.2334019989,
0.0920030177,
0.16689381,
-0.3158762455,
-0.0182065405,
0.3153300881,
0.1252099425,
-0.1986956,
-0.2998595238,
0.330616653,
-0.3592632413,
-0.1649208367,
0.0045820735,
0.1117534637,
0.0692863539,
-0.1395101696,
-0.3670636117,
0.359373033,
-0.0130405277,
-0.0593051836,
0.1710722297,
0.1315307021,
0.2078846991,
-0.2934137881,
-0.1184198707,
-0.3731441498,
0.4853235781,
-0.1437182873,
0.0763512924,
0.2060138136,
-0.1366909444,
0.2870105505,
0.1414490342,
-0.2749724686,
0.0407081284,
0.2111573219,
0.0784195289,
-0.1541561484,
0.3545113504,
-0.010618031,
-0.0145594105,
-0.1102426052,
0.0509977937,
0.1905712187,
-0.2955193818,
0.154209733,
0.3862249851,
0.3326418102,
-0.0159647614,
0.4168635905,
0.2138178498,
-0.2462375462,
-0.124096714,
-0.5434439182,
-0.123355329,
0.3222773969,
0.0183342807,
0.0243111309,
-0.0960982218,
0.1499975026,
-0.0457150079,
-0.0219497271,
-0.2024070323,
0.2412580252,
0.0232407674,
0.0797860026,
-0.1143789515,
0.0139665566,
-0.0038552172,
-0.038378641,
0.0483502224,
-0.2340010703,
-0.1978697479,
-0.1549495757,
-0.176566124,
0.2169445604,
0.0259697437,
0.0501727834,
0.196322456,
-0.125427857,
-0.1540233195,
-0.0930950791,
-0.0482308641,
0.1811447293,
-0.1759060174,
0.2702624202,
0.3743326664,
0.1791906059,
-0.2139280736,
0.1777565777,
0.0246974844,
0.4639776945,
-0.0739620179,
0.015664164,
0.0910837948,
0.1506348252,
-0.0454973727,
0.0857107565,
0.3387265503,
-0.2733122408,
0.3574761152,
-0.3903363645,
0.3122913241,
-0.1171354055,
0.1881558448,
0.2142785639,
-0.3070134521,
0.1832172573,
0.0186599083,
0.1243307814,
-0.3278881609,
-0.0417941734,
0.3054870665,
0.0874367058,
-0.1000352502,
0.101876989,
0.1763716042,
0.0101022869,
0.0436569676,
-0.030396957,
0.3371594548,
0.0731967539,
-0.0185379758,
0.4552451968,
0.0324991569,
0.0711440891,
0.5597202182,
0.2887054682,
0.107841298,
0.449783802,
-0.3665195704,
0.396181047,
-0.1166436598,
0.1072622389,
-0.1334353983,
-0.3418036699,
-0.0803090781,
0.0999022648,
0.146904856,
-0.2909871936,
-0.109511897,
0.5688399673,
-0.1233118773,
-0.1263169646,
-0.2314774096,
0.2086848617,
-0.0223887488,
-0.003034018,
-0.2800157666,
-0.0393801481,
0.0638282597,
-0.1271585822,
-0.0191893298,
-0.2286753058,
0.0651931316,
0.1237074658,
-0.1528436989,
-0.4439596832,
0.1534468383,
0.3328965604,
-0.0695673674,
0.000924401,
0.1420510113,
0.0221315734,
-0.0431054495,
0.1155202016,
0.3692893982,
0.4402984977,
0.2888293266,
-0.2557516098,
-0.1645847112,
-0.2727385461,
-0.1934593022,
0.0214600563,
0.2022657543,
0.2829781175,
0.120871827,
0.0573234782,
0.142239362,
-0.117505908,
0.2880814672,
-0.0509857759,
0.0716108233,
-0.1648776829,
0.371629864,
-0.1357868761,
-0.2858301103,
-0.3438401222,
-0.2297124416,
-0.1930757165,
0.18203336,
0.4044190645,
0.2193540782,
-0.0469587594,
-0.0238009132,
-0.0090365261,
-0.108141765,
0.3285022676,
0.3346219063,
0.4529924393,
-0.3661454618,
-0.0021700412,
-0.7485201359,
0.3343605101,
-0.1507087797,
0.0019641072,
0.4247775972,
-0.0297554061,
-0.2588006854,
0.3020584285,
0.2716749012,
0.4656414986,
0.2638263702,
-0.0160763301,
-0.4723948836,
-0.2278304547,
0.0790036172,
-0.0950914025,
-0.2266482115,
-0.2480528206,
0.1562418938,
-0.643368721,
-0.0659798458,
-0.1106950864,
0.0169835687,
0.0531066284,
0.3780278862,
0.6841911674,
-0.0489703678,
0.8348819017,
0.1760096848,
0.3336002231,
-0.0811977163,
-0.2964092493,
-0.1233663559,
0.1439042389,
-0.188848272,
0.0180383474,
-0.2053118199,
-0.0396406017,
-0.1567750424,
0.4555691481,
-0.0951710194,
-0.2828136683,
-0.2444699258,
0.1347701997,
-0.098814182,
0.1209569573,
-0.0876732171,
-0.1292892396,
0.117070429,
0.3384656906,
-0.1873058677,
-0.2736491859,
0.5236207247,
-0.2739262283,
-0.3627234697,
0.1666280627,
0.1733130515,
0.1041227505,
-0.1606007665,
-0.5872601271,
0.0850028396,
0.5146580338,
0.01952729,
-0.2608085275,
0.2799980342,
-0.1740923822,
0.0932865739,
-0.0409779325,
0.3139175177,
-0.1361715198,
-0.0201244466,
-0.20533216,
-0.1722044647
] |
https://github.com/huggingface/datasets/issues/804 | Empty output/answer in TriviaQA test set (both in 'kilt_tasks' and 'trivia_qa') | Yes: TriviaQA has a private test set for the leaderboard [here](https://competitions.codalab.org/competitions/17208)
For the KILT training and validation portions, you need to link the examples from the TriviaQA dataset as detailed here:
https://github.com/huggingface/datasets/blob/master/datasets/kilt_tasks/README.md | # The issue
It's all in the title, it appears to be fine on the train and validation sets.
Is there some kind of mapping to do like for the questions (see https://github.com/huggingface/datasets/blob/master/datasets/kilt_tasks/README.md) ?
# How to reproduce
```py
from datasets import load_dataset
kilt_tasks = load_dataset("kilt_tasks")
trivia_qa = load_dataset('trivia_qa', 'unfiltered.nocontext')
# both in "kilt_tasks"
In [18]: any([output['answer'] for output in kilt_tasks['test_triviaqa']['output']])
Out[18]: False
# and "trivia_qa"
In [13]: all([answer['value'] == '<unk>' for answer in trivia_qa['test']['answer']])
Out[13]: True
# appears to be fine on the train and validation sets.
In [14]: all([answer['value'] == '<unk>' for answer in trivia_qa['train']['answer']])
Out[14]: False
In [15]: all([answer['value'] == '<unk>' for answer in trivia_qa['validation']['answer']])
Out[15]: False
In [16]: any([output['answer'] for output in kilt_tasks['train_triviaqa']['output']])
Out[16]: True
In [17]: any([output['answer'] for output in kilt_tasks['validation_triviaqa']['output']])
Out[17]: True
``` | 32 | Empty output/answer in TriviaQA test set (both in 'kilt_tasks' and 'trivia_qa')
# The issue
It's all in the title, it appears to be fine on the train and validation sets.
Is there some kind of mapping to do like for the questions (see https://github.com/huggingface/datasets/blob/master/datasets/kilt_tasks/README.md) ?
# How to reproduce
```py
from datasets import load_dataset
kilt_tasks = load_dataset("kilt_tasks")
trivia_qa = load_dataset('trivia_qa', 'unfiltered.nocontext')
# both in "kilt_tasks"
In [18]: any([output['answer'] for output in kilt_tasks['test_triviaqa']['output']])
Out[18]: False
# and "trivia_qa"
In [13]: all([answer['value'] == '<unk>' for answer in trivia_qa['test']['answer']])
Out[13]: True
# appears to be fine on the train and validation sets.
In [14]: all([answer['value'] == '<unk>' for answer in trivia_qa['train']['answer']])
Out[14]: False
In [15]: all([answer['value'] == '<unk>' for answer in trivia_qa['validation']['answer']])
Out[15]: False
In [16]: any([output['answer'] for output in kilt_tasks['train_triviaqa']['output']])
Out[16]: True
In [17]: any([output['answer'] for output in kilt_tasks['validation_triviaqa']['output']])
Out[17]: True
```
Yes: TriviaQA has a private test set for the leaderboard [here](https://competitions.codalab.org/competitions/17208)
For the KILT training and validation portions, you need to link the examples from the TriviaQA dataset as detailed here:
https://github.com/huggingface/datasets/blob/master/datasets/kilt_tasks/README.md | [
0.434687376,
-0.345241785,
-0.0812814981,
0.1217558831,
0.2600177824,
-0.0797689706,
0.4260965884,
0.4618620872,
0.1329815388,
0.2688279748,
0.0946825445,
0.2613140047,
-0.0670851097,
0.5240864754,
0.0683323666,
0.2598779202,
-0.1134258807,
0.080870077,
-0.1446945518,
-0.2219869494,
-0.2116924524,
0.0270458218,
-0.216855675,
-0.1244957075,
-0.3129108548,
0.0097970683,
-0.0458585471,
-0.0411906764,
0.0488025099,
-0.379342854,
0.2050959766,
0.0018791622,
-0.4776952863,
0.2508027554,
-0.0001265892,
-0.0889237151,
0.1993868947,
-0.1674760878,
-0.4454842806,
-0.144167915,
-0.6783225536,
0.0141279697,
0.1704037935,
-0.2482230961,
-0.3704458475,
0.332406342,
0.00452042,
-0.3541150689,
0.3715061247,
0.4303572476,
0.0710942149,
0.3091679215,
-0.3334424198,
-0.1123590618,
-0.0177276507,
0.0783429593,
-0.228089869,
0.0803652406,
0.2197626084,
-0.1270764172,
0.0533198193,
0.3302707076,
0.1531336904,
0.1341962516,
-0.0423492938,
0.1115848646,
0.1451227069,
-0.5243433714,
0.271194905,
0.4891030788,
0.1355248094,
-0.0259981286,
-0.4715604782,
-0.3702863455,
-0.0004939288,
-0.2080956548,
0.2873296142,
0.3626281023,
-0.273127377,
-0.0013896497,
-0.3779553175,
0.0880938023,
-0.198720932,
-0.031892512,
-0.6022470593,
0.2828428149,
-0.0419524014,
0.056307666,
-0.2972771525,
0.0585993603,
-0.1214954033,
-0.2579811513,
0.0553125665,
0.2168536931,
-0.5435731411,
-0.0804849789,
0.2416574955,
-0.1061614603,
0.0211681128,
-0.1563096493,
0.0860014409,
0.0318802707,
-0.247733444,
0.1339727193,
0.4812693,
0.4112276733,
0.4215260446,
0.119241111,
0.1123544574,
0.0562163033,
-0.1539954841,
0.07447166,
0.0348180272,
0.1464506686,
-0.1980707943,
0.0675946847,
0.3355775774,
-0.4146649539,
-0.5860324502,
0.1421544254,
-0.3326154053,
0.0864443779,
-0.1067221537,
0.3205633461,
-0.2858101428,
0.2536135316,
-0.1336441338,
0.4243001342,
-0.2777158618,
0.079558447,
-0.1509982347,
-0.0046979114,
-0.2762501836,
0.1931226104,
0.2247045338,
0.0346416086,
0.1216206998,
0.1096358076,
0.0274164472,
-0.09197779,
0.1531843245,
-0.2339356393,
0.4344158173,
0.1880722642,
0.1408804953,
0.118904911,
0.2922723889,
-0.1410395205,
0.0318256915,
0.4630867839,
-0.0387345962,
-0.1531053185,
0.2196507752,
0.1176871806,
-0.5361981392,
0.0612283014,
-0.069755137,
0.3681986332,
0.2204563171,
0.0522886366,
0.0639484599,
-0.1759741306,
-0.0918820724,
-0.152644515,
0.2948550582,
0.1581318676,
-0.4779413939,
-0.1072317064,
0.216258049,
0.0987292677,
-0.1795668602,
0.083439827,
-0.005962342,
0.3908630908,
-0.237522766,
0.0595925897,
0.1495538652,
-0.5808669925,
-0.0491991676,
-0.2524281442,
0.0109698027,
0.3100384176,
-0.0182243995,
-0.1082026064,
0.1928694546,
0.1797242016,
0.0380761437,
0.0307711288,
-0.0385317653,
-0.1282064617,
-0.2770303488,
-0.0048104152,
0.2065396011,
0.1226963997,
0.2405063808,
-0.0155215003,
-0.1409454197,
0.0033424124,
0.1804188341,
0.0150428526,
0.134963423,
0.0477367342,
0.4159698188,
-0.0334042124,
-0.0810119286,
0.143511191,
-0.2264645696,
0.2795404196,
-0.0904853418,
0.4886127114,
-0.0579415858,
-0.2643122673,
-0.271205008,
-0.1003055498,
-0.5140526891,
-0.6296905875,
0.0657848716,
0.0423358642,
0.0234564021,
0.0934636444,
-0.1782009304,
0.0506213382,
0.0379334539,
-0.1656878144,
-0.3817001879,
0.2512592077,
0.0596450567,
0.0076800473,
-0.3221115768,
0.5083583593,
-0.0573298857,
0.0728076398,
0.101271823,
-0.0902488232,
0.0823971033,
-0.0617131367,
0.1081170291,
0.3362763226,
0.3323971629,
-0.1298761219,
-0.2818246186,
0.348218739,
0.0935202092,
-0.247985661,
-0.5444378853,
0.5965663791,
0.0071429247,
0.4199708402,
0.0516377985,
0.0222858116,
-0.0676894337,
-0.2766864896,
-0.2188321203,
-0.1478289515,
-0.0463497639,
-0.2262968123,
0.1864349544,
0.1002462804,
-0.2956451774,
0.2027984262,
0.4188891053,
0.021040827,
0.2085371017,
-0.3053346574,
0.0180462599,
-0.0307685621,
0.1842897683,
0.0231523886,
0.4413944185,
0.0845806152,
0.2386825979,
0.0726952255,
0.1604369432,
-0.243535772,
0.1527135372,
-0.0230275579,
0.1729790419,
0.3898736238,
0.3559092283,
-0.1646556854,
-0.0903521329,
0.3359055519,
0.0750360191,
0.1385470629,
-0.3268063664,
-0.1666367948,
-0.1502795219,
-0.0419877358,
-0.1752010882,
0.0523343273,
0.0248415805,
-0.4100831449,
0.3285832703,
-0.0310883243,
-0.2622551322,
0.2447645962,
-0.0283535942,
0.1885130554,
-0.0595245436,
-0.3672977686,
-0.0129039362,
-0.5210822225,
-0.2430392802,
0.1383782476,
-0.1649946868,
-0.1913991421,
0.1399035156,
-0.113265276,
-0.5428168774,
-0.2194761336,
-0.4293461442,
0.1460483074,
-0.2055823356,
0.3748725653,
0.074111931,
0.4747897387,
-0.3547730148,
-0.0322882086,
0.5146631598,
0.0218662173,
-0.369289279,
0.0120951757,
0.1577626914,
0.0929035768,
-0.1327739507,
-0.748693645,
-0.1053438112,
-0.293763876,
0.2660327554,
-0.0860604122,
0.1985885501,
0.3975972533,
-0.1153229475,
-0.0399760716,
-0.1941640079,
-0.1932610273,
-0.1947051585,
0.0486536026,
0.1662122458,
-0.1380498409,
-0.3828946352,
0.0876780599,
-0.2003524899,
0.5566000938,
-0.0043728948,
-0.4171015918,
-0.4424284399,
0.0046638437,
0.5091125369,
0.2116531134,
-0.1150770187,
0.2026954144,
0.0264125951,
-0.0459441915,
-0.1555680633,
0.0131562427,
0.5017891526,
0.3555319011,
0.1079331636,
0.0652408525,
0.0248001181,
0.3510315418,
0.641597867,
0.3786247075,
0.3638952971,
0.1289848834,
-0.2493528724,
0.3066881001,
-0.3129513264,
-0.3488162756,
0.3050558567,
0.1317902654,
-0.0871137828,
0.3041988611,
0.023939725,
0.4075450599,
-0.2044970989,
0.269341737,
-0.5056166649,
-0.3185827136,
0.0499684438,
-0.3135149479,
0.1914498657,
0.1279784888,
0.2195841968,
0.1310320348,
-0.1225957572,
0.051667504,
-0.0825518519,
0.1423895657,
-0.0420483835,
-0.4506003559,
-0.2251458168,
-0.18298015,
0.1323271096,
0.0155581199,
0.1016554087,
-0.160811767,
-0.2590689063,
0.2262767851,
0.1118172854,
0.866363883,
-0.002316067,
-0.0271389354,
-0.0249184147,
-0.1305042356,
-0.3616461754,
-0.0936800465,
-0.3786870241,
-0.1035999358,
0.0740303993,
0.2937022448,
-0.2711280882,
-0.1167269051,
-0.0729566216,
0.0201094672,
-0.1635792851,
-0.0270102993,
-0.3407826126,
-0.2246471941,
-0.0129656419,
0.1619564295,
0.0700420141,
0.4928734303,
-0.3183730543,
-0.1965544522,
-0.0594209991,
0.0894156843,
0.2854489684,
0.3582050204,
0.295915246,
-0.0059019476,
0.1324220449,
-0.0149632711,
-0.1460428983,
-0.144663468,
0.4854561985,
-0.0010809321,
0.0362759084,
0.1864043921,
-0.2770251334,
0.3975394368,
0.4037609398,
0.1326677948,
0.1354078501,
-0.2506319582,
-0.0152143575,
-0.1475255787,
0.1111453027,
0.0727036521,
-0.0618530251,
0.0788980424,
-0.4128291011,
0.2229207158,
-0.0405777097,
-0.1696253717,
0.2048560232,
0.0768691748,
-0.2017410696,
-0.035131231,
0.0974615961,
0.8919274211,
-0.066211313,
0.4134544134,
0.6620018482,
0.2334072292,
0.3648490906,
-0.0069403723,
0.282178998,
-0.3736187518,
-0.1121033132,
0.0200375691,
-0.1316889971,
-0.026899606,
0.2928864658,
-0.1461332887,
0.6321945786,
-0.0056279153,
0.5025166869,
-0.0048429631,
-0.3010722399,
-0.0134275081,
0.2009552717,
-0.5890644789,
0.0264615566,
0.0050041182,
0.4218771756,
-0.141874209,
-0.0885390788,
-0.3659602702,
-0.0504756048,
-0.0132303685,
0.2754778862,
-0.4245262742,
-0.0454657003,
0.3758046329,
-0.3739204407,
-0.2352230102,
0.5581882596,
0.009952968,
0.1803456247,
-0.1730199903,
0.204806298,
0.0845000297,
0.3016399145,
0.2449369729,
0.252638191,
0.2085362226,
-0.1569750011,
-0.3818918169,
0.2623745799,
-0.2410901636,
0.2431211174,
-0.2989963293,
0.4151667058,
0.2272371799,
-0.1952877939,
-0.4141253233,
-0.0060978606,
0.2115726769,
-0.1560895443,
0.0661166683,
-0.1261325032,
-0.239851445,
0.2514292002,
0.0196975749,
-0.287394315,
0.1271051913,
0.273132652,
0.1748238206,
0.0525538623,
0.7209166884,
-0.0428948067,
0.0004571453,
-0.2384640872,
0.0822173804,
0.1635750085,
-0.0944213271,
0.2792903185,
0.1726959497,
-0.1365729868,
-0.0052634738,
0.5161392689,
0.076822333,
0.0829379708,
-0.0560747571,
-0.3959754109,
0.0580969304,
0.2901720405,
-0.0414156429,
0.1876642108,
-0.1468653083,
0.0004631393,
0.2005599141,
-0.180032745,
-0.251233995,
-0.2729476988,
-0.4118520319,
0.4171561003,
0.0375249721,
0.0428509563,
0.288303405,
-0.108339712,
0.0845078528,
-0.3131253719,
-0.3429972529,
-0.2158809006,
0.0343309939,
0.1953562796,
0.2434574664,
0.1520543993,
0.0318912342,
0.0267943442,
-0.0017876606,
-0.219028756,
0.3636837304,
0.2121642381,
-0.0104555823,
0.2798035741,
-0.0637832657,
0.3293096423,
-0.2127487063,
0.0035480242,
0.0396360904,
-0.1352976561,
0.2089323252,
-0.1167585775,
0.0492622256,
-0.0300232098,
0.1665130854,
0.1337015927,
-0.0454158559,
-0.0679200962,
-0.0298077315,
-0.2352176458,
0.0124888793,
-0.0512319282,
0.1661792397,
0.2602643371,
-0.2053523213,
0.2154128551,
-0.0571054183,
0.1771770418,
-0.296995014,
0.3653950989,
-0.0021924153,
0.118278414,
0.1346945316,
0.2747140527,
0.1755051613,
-0.4053778052,
0.3537337184,
0.1953545064,
-0.1874178052,
-0.5741314292,
0.2870947123,
0.4074599445,
-0.107114397,
0.0490606166,
0.0404187366,
-0.3518249989,
-0.3844276667,
0.0369488001,
-0.0083212778,
0.3608303368,
0.0497737229,
-0.165788874,
0.2071955204,
0.0841386318,
-0.0662979633,
0.0219837129,
-0.2879245579,
-0.0601488277,
0.1251443177,
0.2944068015,
-0.1905692369,
-0.2490133643,
0.1038474515,
-0.1933702976,
-0.1430123597,
-0.0769763589,
-0.1141201183,
-0.2166651636,
-0.0340948328,
-0.1444529444,
0.0658541396,
-0.3297700584,
0.4357935488,
-0.0282856189,
0.0185011048,
-0.3719083965,
0.0090901013,
0.46414572,
0.3565842807,
0.1119120568,
0.5008340478,
0.2157175392,
0.1341403872,
0.2078403682,
0.6149322391,
0.2586733699,
0.341924727,
-0.3233907819,
0.1192589998,
-0.0336961113,
-0.2811513543,
0.0290108249,
0.2035484612,
0.1608705968,
-0.0742119104,
0.3146437109,
0.081755504,
-0.0466073006,
0.2061836123,
0.1415971518,
-0.1039576381,
-0.2096672803,
0.3489556611,
0.0770477653,
-0.1407623291,
0.108167693,
-0.0765820444,
-0.5496802926,
-0.1222209781,
0.0663464516,
0.2608989477,
0.2080576122,
-0.0133956037,
0.0482255295,
-0.084074609,
0.1265185922,
0.1357901394,
0.2407107502,
-0.3984417021,
0.2194608152,
-0.5065746903,
0.2775188982,
0.1063657999,
-0.1580077112,
-0.2228919417,
0.1281234175,
-0.0125847086,
0.0807102919,
-0.1649160385,
-0.2625877261,
0.3132311106,
-0.0272876211,
-0.6367028952,
-0.0326888561,
0.2390698791,
-0.0783295557,
-0.0863593295,
-0.2787928879,
0.0069236686,
-0.0296368469,
-0.1167241931,
0.2831625342,
0.0622325912,
0.0659658462,
0.1093875244,
0.0391214266,
0.2266277522,
0.59977144,
0.0350954458,
0.112269178,
-0.0781704783,
-0.0843577608,
-0.0785216391,
0.1004510745,
0.0732874572,
0.2886972427,
0.2508956194,
-0.2273734361,
0.0480622686,
0.2219938338,
0.2241439521,
-0.0424579084,
0.0655512661,
0.0978979543,
0.12459144,
-0.0345967337,
0.0319903791,
0.0805554464,
-0.0692719519,
0.0166462138,
-0.2565063238,
-0.4255896509,
0.3637282848,
-0.5796006322,
-0.3352659047,
-0.2134288698,
0.1866196394,
0.0342828855,
-0.2241683155,
-0.9314982295,
-0.1921287477,
0.3569230735,
-0.2097529918,
-0.0426325127,
0.1456321776,
-0.2674563825,
-0.1038008481,
-0.1568582803,
0.1217677444,
0.0308607556,
-0.0544657223,
-0.1367149651,
-0.4222464859
] |
https://github.com/huggingface/datasets/issues/804 | Empty output/answer in TriviaQA test set (both in 'kilt_tasks' and 'trivia_qa') | Oh ok, I guess I read the paper too fast 😅, thank you for your answer! | # The issue
It's all in the title, it appears to be fine on the train and validation sets.
Is there some kind of mapping to do like for the questions (see https://github.com/huggingface/datasets/blob/master/datasets/kilt_tasks/README.md) ?
# How to reproduce
```py
from datasets import load_dataset
kilt_tasks = load_dataset("kilt_tasks")
trivia_qa = load_dataset('trivia_qa', 'unfiltered.nocontext')
# both in "kilt_tasks"
In [18]: any([output['answer'] for output in kilt_tasks['test_triviaqa']['output']])
Out[18]: False
# and "trivia_qa"
In [13]: all([answer['value'] == '<unk>' for answer in trivia_qa['test']['answer']])
Out[13]: True
# appears to be fine on the train and validation sets.
In [14]: all([answer['value'] == '<unk>' for answer in trivia_qa['train']['answer']])
Out[14]: False
In [15]: all([answer['value'] == '<unk>' for answer in trivia_qa['validation']['answer']])
Out[15]: False
In [16]: any([output['answer'] for output in kilt_tasks['train_triviaqa']['output']])
Out[16]: True
In [17]: any([output['answer'] for output in kilt_tasks['validation_triviaqa']['output']])
Out[17]: True
``` | 16 | Empty output/answer in TriviaQA test set (both in 'kilt_tasks' and 'trivia_qa')
# The issue
It's all in the title, it appears to be fine on the train and validation sets.
Is there some kind of mapping to do like for the questions (see https://github.com/huggingface/datasets/blob/master/datasets/kilt_tasks/README.md) ?
# How to reproduce
```py
from datasets import load_dataset
kilt_tasks = load_dataset("kilt_tasks")
trivia_qa = load_dataset('trivia_qa', 'unfiltered.nocontext')
# both in "kilt_tasks"
In [18]: any([output['answer'] for output in kilt_tasks['test_triviaqa']['output']])
Out[18]: False
# and "trivia_qa"
In [13]: all([answer['value'] == '<unk>' for answer in trivia_qa['test']['answer']])
Out[13]: True
# appears to be fine on the train and validation sets.
In [14]: all([answer['value'] == '<unk>' for answer in trivia_qa['train']['answer']])
Out[14]: False
In [15]: all([answer['value'] == '<unk>' for answer in trivia_qa['validation']['answer']])
Out[15]: False
In [16]: any([output['answer'] for output in kilt_tasks['train_triviaqa']['output']])
Out[16]: True
In [17]: any([output['answer'] for output in kilt_tasks['validation_triviaqa']['output']])
Out[17]: True
```
Oh ok, I guess I read the paper too fast 😅, thank you for your answer! | [
0.4681181312,
-0.4883505702,
-0.1169175953,
0.0633336455,
0.3016144633,
-0.0618817322,
0.5027797818,
0.441729784,
0.14432998,
0.2951970398,
0.1505075693,
0.2478299737,
-0.105816707,
0.4204438925,
0.0343293995,
0.2040221393,
-0.0182279684,
0.1341047287,
-0.2242500931,
-0.2463575751,
-0.249460727,
-0.0017763171,
-0.2310017645,
-0.1340511441,
-0.3148828149,
0.0192817617,
-0.0183744878,
-0.0441292673,
-0.0066699479,
-0.2820158899,
0.296469003,
0.0416834131,
-0.5087097287,
0.2796165943,
-0.0001253977,
0.017659992,
0.1655433476,
-0.1627590358,
-0.3021450639,
-0.269097805,
-0.5443482995,
0.0034596622,
0.200938642,
-0.2457509488,
-0.3536375165,
0.2595875859,
-0.0016623158,
-0.2429090738,
0.3208565712,
0.4414469004,
0.0885335654,
0.3402522206,
-0.2983178496,
-0.0976913273,
0.1007723063,
0.1736644059,
-0.2127651423,
0.1006114334,
0.3349821866,
-0.1839224398,
0.0661552697,
0.4312543571,
0.1157487929,
0.0765573531,
-0.0095209852,
0.0850534588,
0.1928474605,
-0.5020101666,
0.2259553671,
0.4908395112,
0.1194549799,
0.0117056612,
-0.4616631866,
-0.3616984487,
-0.0677122176,
-0.1615847647,
0.2391576171,
0.2563343644,
-0.3226281404,
0.0545230061,
-0.3806762695,
0.0091282614,
-0.1806762069,
-0.015692085,
-0.530687511,
0.3866959214,
-0.0629001856,
0.0666505098,
-0.2340060622,
0.0058014505,
-0.0944490209,
-0.2278281599,
0.1065995395,
0.1917997599,
-0.4877147377,
-0.0786599889,
0.2468913943,
-0.1749943495,
0.0170607641,
-0.1575657725,
0.1409421563,
-0.0101388264,
-0.2379292101,
0.1809383035,
0.4561160803,
0.371773988,
0.3836916983,
0.1170967966,
0.1253917068,
0.0248825848,
-0.1779974103,
0.068301104,
-0.0132522844,
0.1049454808,
-0.1730801463,
0.0444737412,
0.3815127015,
-0.3759960532,
-0.546097517,
0.1028345823,
-0.3343901634,
0.0862019137,
-0.1280482411,
0.4136288762,
-0.2671591043,
0.3237054646,
-0.1753740907,
0.4848086238,
-0.2423686683,
0.1622788459,
-0.1694841534,
0.0083820708,
-0.2954887152,
0.0338303298,
0.1820197552,
0.0345720612,
0.1677877456,
0.0791901797,
-0.0682365745,
-0.0843576714,
0.1491900086,
-0.2916160822,
0.5289240479,
0.2174313813,
0.108658433,
0.137198925,
0.3113140166,
-0.1387365162,
-0.0306905434,
0.4569894075,
-0.1073437035,
-0.0885390118,
0.1621472687,
0.1351394206,
-0.4702075422,
0.000082978,
0.0173495933,
0.3994842768,
0.2739621103,
0.0624445081,
0.1275002211,
-0.1487629116,
-0.035249494,
-0.1899268329,
0.2055666149,
0.1585929841,
-0.3715778291,
-0.1733776182,
0.3192167878,
0.0479403399,
-0.1288816929,
0.0926910192,
-0.0432992876,
0.4183740318,
-0.2419095933,
0.0545516461,
0.1526179612,
-0.6342749596,
-0.0166909434,
-0.2027662694,
-0.008007966,
0.3960760832,
0.0161043145,
-0.1464111805,
0.1910925508,
0.2044420242,
0.2436324656,
-0.04924931,
-0.0163898151,
-0.1014124751,
-0.2839250863,
-0.02789177,
0.2803297043,
0.0384861901,
0.2653219998,
-0.0381521359,
-0.1428513527,
-0.0613706596,
0.2356458008,
-0.0408077538,
0.0899872184,
0.149465248,
0.433616519,
-0.0053796619,
-0.0390722156,
0.0198612735,
-0.2733372748,
0.1653863192,
-0.0145292729,
0.4395506084,
-0.014358785,
-0.2540388107,
-0.2323453724,
-0.1023679823,
-0.4545462132,
-0.5898599625,
0.0748976469,
0.01474752,
-0.0367927216,
0.0872115344,
-0.1551973075,
0.0207577571,
0.0445899144,
-0.1249774694,
-0.341430068,
0.3159350455,
0.058934994,
0.0288900062,
-0.357426703,
0.3923302591,
-0.0711157992,
0.0870086849,
0.110909164,
-0.0962954313,
0.1215809733,
-0.0367222279,
0.0171240307,
0.3487406075,
0.3160441518,
-0.1571754515,
-0.333968997,
0.2780617476,
0.1288727522,
-0.2391917259,
-0.5651099682,
0.5706460476,
-0.0154834669,
0.422793299,
0.1110911816,
0.0158537477,
0.0158126876,
-0.3055433035,
-0.2595432401,
-0.1548806131,
0.0180577151,
-0.2967332304,
0.1731818467,
0.1353034526,
-0.3907077909,
0.1122879386,
0.4177011251,
0.0491052121,
0.2202720046,
-0.2979328334,
-0.0175314695,
-0.0396432057,
0.1566833407,
-0.0367523059,
0.4276130199,
0.1694590747,
0.2256356031,
0.0127891432,
0.2090921998,
-0.2430088818,
0.1855027974,
-0.0402711257,
0.2182819843,
0.4549242556,
0.3547091186,
-0.12468642,
-0.1934621185,
0.2973785102,
0.0703042522,
0.1383932531,
-0.3260529637,
-0.2424036413,
-0.1273445189,
0.0182373077,
-0.1301854551,
0.0313249342,
0.0962652043,
-0.3991005123,
0.3158456385,
0.0024838848,
-0.3320239782,
0.2252088636,
-0.1030019745,
0.163310349,
-0.0388347097,
-0.3680042326,
-0.0482130982,
-0.4899753928,
-0.2169426531,
0.1613852084,
-0.1952278614,
-0.136851415,
0.1412718594,
-0.1272916496,
-0.5312892199,
-0.1544173211,
-0.5428309441,
0.1698828787,
-0.2221180797,
0.3141138256,
0.130521059,
0.4695053399,
-0.339537859,
-0.0461447984,
0.4725043178,
0.0025176033,
-0.402210176,
0.0161708519,
0.160145402,
0.0788677633,
-0.1604305208,
-0.7739169002,
-0.0642811358,
-0.3372272253,
0.2867166996,
-0.1638679355,
0.1809035838,
0.4482076168,
-0.0710510686,
-0.0587876625,
-0.2128799856,
-0.1925419569,
-0.1631088108,
0.0021031499,
0.1418824792,
-0.0721009672,
-0.3668024838,
0.0077783912,
-0.2205585688,
0.365429312,
0.0932493582,
-0.4009134769,
-0.4107282758,
-0.0315599293,
0.4304033518,
0.2287759036,
-0.0975351185,
0.2679588199,
-0.0008602627,
-0.0774442032,
-0.2450525463,
0.0018967614,
0.5727339983,
0.334830761,
0.046968244,
0.1178129017,
-0.0271699782,
0.3268128037,
0.5415539742,
0.3504084945,
0.3235522509,
0.182245478,
-0.2408674806,
0.3834408224,
-0.2624069154,
-0.3972395658,
0.2047516853,
0.1588827223,
-0.1285178959,
0.2511806488,
0.0158950873,
0.3036913872,
-0.2424142808,
0.1569146961,
-0.5188208222,
-0.2767138183,
0.1316633373,
-0.3602771163,
0.1044783071,
0.1489856243,
0.1482104212,
0.096497491,
-0.0558833107,
0.0600435175,
0.0161812082,
0.2040059417,
-0.0765057802,
-0.5741506815,
-0.2322174609,
-0.2483030558,
0.1044031829,
0.0497251227,
0.0934289545,
-0.1396415979,
-0.2572354972,
0.2230918705,
0.0743568689,
0.9841881394,
-0.1124542132,
-0.0223982874,
-0.016352579,
-0.1371794343,
-0.357750237,
-0.0575905815,
-0.4521740973,
-0.0635491237,
0.1953746676,
0.4829492271,
-0.2719299197,
-0.1840407401,
-0.0610234253,
-0.0780670196,
-0.1377320737,
-0.0551750772,
-0.2825162411,
-0.2471380532,
0.0243511945,
0.1792375892,
0.1969055831,
0.4291003346,
-0.2604789138,
-0.3233051598,
-0.1244603992,
0.1280681789,
0.3246284425,
0.326387614,
0.2666053772,
-0.06627132,
0.0842256993,
-0.082568571,
-0.0721119195,
0.0257789101,
0.5085000396,
-0.1403202266,
-0.0239043795,
0.2063491642,
-0.2590042949,
0.4047755599,
0.365105927,
0.1447874308,
0.1355722994,
-0.2059096694,
-0.0182251334,
-0.1303578019,
0.0782128125,
0.1164330542,
0.0254861005,
-0.0361101888,
-0.3983117938,
0.1516762972,
-0.003575027,
-0.1881570369,
0.2331041098,
0.0684021264,
-0.2754637897,
0.0854396746,
0.0674017966,
0.9151233435,
-0.0583750643,
0.3912840486,
0.6253461242,
0.1934915185,
0.3975287378,
-0.0712793469,
0.2521809042,
-0.2924404442,
-0.1937761456,
0.0185149387,
-0.1295038462,
-0.0091079343,
0.3428016901,
-0.2154775113,
0.5422405005,
0.0139140785,
0.5060144067,
-0.0369402431,
-0.3477803469,
-0.0369486436,
0.2454440445,
-0.6066042185,
0.0199467167,
0.090316318,
0.4494952857,
-0.1545341611,
-0.106821239,
-0.3858296871,
-0.1560796201,
-0.0228124484,
0.2315668911,
-0.4061104655,
-0.0109606497,
0.3604067564,
-0.2347047925,
-0.2855454683,
0.4578834474,
-0.0436790511,
0.2006643116,
-0.2060181499,
0.1875187457,
0.0958186984,
0.320233047,
0.211615026,
0.229778111,
0.3145467937,
-0.132501483,
-0.4006198049,
0.1819068789,
-0.2952145934,
0.1937136799,
-0.2160977423,
0.3912729025,
0.11765147,
-0.2437205166,
-0.4899362028,
0.0495041236,
0.2228687555,
-0.2034311146,
0.0622600466,
-0.1620173603,
-0.2052844465,
0.2987907529,
0.0618485883,
-0.3066729009,
0.1303573847,
0.2504446507,
0.271474421,
-0.0283009745,
0.7059749365,
-0.0800248086,
-0.0637379512,
-0.3099610209,
0.0705993995,
0.2637482882,
-0.1664154828,
0.3383423984,
0.1393619031,
-0.1203230694,
0.0208790861,
0.4957884252,
0.0764523149,
0.1481768489,
-0.1019187495,
-0.4340779781,
0.0048642009,
0.3871414363,
-0.0407837965,
0.2559142411,
-0.0730895251,
0.0107490122,
0.2000337243,
-0.1717742383,
-0.2846942544,
-0.2280094922,
-0.3947721124,
0.4053116441,
0.0206163451,
0.0339996517,
0.2809012532,
-0.1246355101,
0.1063429117,
-0.3126682639,
-0.3165105879,
-0.2303076982,
0.0233014077,
0.194791317,
0.1834421754,
0.1439163983,
0.0407310799,
0.0159112737,
-0.0184930675,
-0.2311228812,
0.3753027916,
0.355882287,
0.0073425677,
0.2380228043,
0.0011619604,
0.3851647079,
-0.16367957,
0.0180246718,
0.0536323637,
-0.1786248535,
0.2189992368,
-0.123406589,
0.0861572921,
0.0103214234,
0.1456641704,
0.1310778111,
-0.0173465386,
-0.0707163513,
-0.0687465593,
-0.2028091997,
0.00878793,
-0.0472323373,
0.1345520914,
0.2589520216,
-0.1851590276,
0.2671402097,
-0.0103210974,
0.2198474258,
-0.3239837885,
0.3387544453,
0.119108662,
0.0781585872,
0.1221269071,
0.1845977306,
0.1412795633,
-0.3834757805,
0.3110419512,
0.2137465775,
-0.1532915682,
-0.3943417668,
0.2703732252,
0.4016447365,
-0.0494835861,
0.002494948,
-0.0100785978,
-0.271043241,
-0.2409231067,
0.0042643873,
0.0656295344,
0.3041703701,
0.0251283087,
-0.1227372512,
0.1586381495,
0.0234345421,
-0.0066123186,
0.0212235525,
-0.3439191878,
-0.028794609,
0.123576045,
0.2682910264,
-0.0385916084,
-0.2265938967,
0.1016576812,
-0.0892053246,
-0.1853417307,
-0.1691820771,
-0.0796571076,
-0.2356615365,
-0.0160277262,
-0.1868147254,
0.0669321567,
-0.315030843,
0.4789042175,
-0.0453367569,
0.0214855168,
-0.3790133297,
0.0813251734,
0.3750396669,
0.3184188902,
0.0898190588,
0.5027278662,
0.2552708387,
0.0881298855,
0.1871244758,
0.6208721995,
0.3228019476,
0.401438266,
-0.17185992,
0.0328339674,
-0.0612048432,
-0.3069050312,
-0.068333827,
0.26218009,
0.2224467397,
-0.0030694455,
0.3125359118,
0.1099697053,
-0.0754206777,
0.3012111187,
0.1460098624,
-0.0650469512,
-0.1963528991,
0.2436025739,
0.0570651963,
-0.0841097683,
0.0970192105,
-0.0905793011,
-0.5747669339,
-0.1879493147,
0.0915043429,
0.1847904623,
0.2719124854,
-0.0292707719,
0.0529378541,
-0.0763229728,
0.0537514575,
0.1515025795,
0.1362342536,
-0.3360588551,
0.2409195155,
-0.4618493915,
0.2489723414,
0.0628408492,
-0.0488857143,
-0.2233599126,
0.1597940922,
0.0144206472,
0.0276799686,
-0.1524362862,
-0.1517513692,
0.3210309744,
0.0558782034,
-0.6173192263,
0.0694776624,
0.2226673365,
-0.0316430032,
0.0072423294,
-0.3014618754,
-0.0318911299,
0.0041655265,
-0.1023186445,
0.1885466874,
0.1236169636,
0.0946245641,
0.055021625,
0.0796707869,
0.2517281771,
0.6537089348,
-0.0398855731,
0.0944280773,
-0.0759165138,
-0.1857727766,
-0.1136378422,
0.0784746706,
0.1745885015,
0.273756057,
0.1905510426,
-0.2834948301,
0.1479642391,
0.1163097546,
0.1791387051,
-0.1351216137,
0.0713689253,
0.1045636982,
0.1388779432,
-0.0669210106,
0.0154687092,
0.0287794769,
-0.024065502,
-0.0409308746,
-0.2523092031,
-0.5186457634,
0.3893425465,
-0.5014824271,
-0.3424699306,
-0.2832127213,
0.1933733523,
0.1038310006,
-0.1890993267,
-1.0374100208,
-0.1832493395,
0.3999884129,
-0.1623473763,
-0.025782004,
0.2184674144,
-0.2688957453,
-0.1232359111,
-0.1669477373,
0.0554084368,
0.0288156159,
-0.1088835821,
-0.1726087481,
-0.461289525
] |
https://github.com/huggingface/datasets/issues/801 | How to join two datasets? | Hi ! Currently the only way to add new fields to a dataset is by using `.map` and picking items from the other dataset
| Hi,
I'm wondering if it's possible to join two (preprocessed) datasets with the same number of rows but different labels?
I'm currently trying to create paired sentences for BERT from `wikipedia/'20200501.en`, and I couldn't figure out a way to create a paired sentence using `.map()` where the second sentence is **not** the next sentence (i.e., from a different article) of the first sentence.
Thanks! | 24 | How to join two datasets?
Hi,
I'm wondering if it's possible to join two (preprocessed) datasets with the same number of rows but different labels?
I'm currently trying to create paired sentences for BERT from `wikipedia/'20200501.en`, and I couldn't figure out a way to create a paired sentence using `.map()` where the second sentence is **not** the next sentence (i.e., from a different article) of the first sentence.
Thanks!
Hi ! Currently the only way to add new fields to a dataset is by using `.map` and picking items from the other dataset
| [
-0.0807136893,
-0.0231979787,
-0.008703988,
0.0758329034,
-0.0804638565,
0.1938631237,
-0.0964455605,
0.1502997726,
0.0917023122,
-0.137248829,
-0.1564024687,
0.2632102966,
0.2652061582,
0.0553943366,
0.0318243876,
-0.1623481959,
0.2753705084,
0.1366875172,
-0.1497536302,
0.0182727054,
0.0281479359,
0.0739851743,
-0.1760731041,
-0.0964745358,
-0.2948454022,
0.0638358071,
-0.1693757176,
-0.2055220902,
-0.0074808728,
-0.1788518131,
0.1081668288,
0.2946754396,
0.0237622336,
0.501259625,
-0.0001200251,
-0.1821819693,
0.1482319236,
-0.1188672334,
-0.0978063792,
-0.5917365551,
-0.4379101992,
-0.1937704086,
-0.0372157954,
-0.2641339898,
-0.17093651,
-0.2597177029,
-0.0092756702,
-0.3962282836,
0.1879963726,
-0.0077904202,
0.0517812893,
-0.2181005329,
0.3178333342,
-0.289911747,
0.368132174,
0.0600766987,
0.2313916683,
0.2046359628,
0.466786176,
0.09246061,
0.3536233008,
0.0318278559,
-0.2515159547,
-0.1778285801,
0.265696764,
0.1065583304,
-0.2725188732,
-0.5039497018,
0.1312268376,
0.5253692865,
0.8458811641,
-0.1958155334,
-0.2037550509,
-0.1436984539,
0.2615862191,
0.16773808,
-0.1626796573,
0.0655561984,
0.0571825355,
-0.1085785255,
-0.0172954649,
-0.4783709049,
-0.0146891773,
0.1460678279,
-0.0518700182,
0.4198278785,
0.1197788715,
0.1123553738,
-0.1201639473,
-0.3536271453,
-0.0021786578,
-0.1028886735,
-0.2314323634,
0.3964159787,
-0.1357270628,
-0.3579375744,
-0.4266595542,
-0.2076861709,
0.2877583802,
-0.2325141728,
-0.1093991399,
-0.1312532723,
-0.3093340397,
0.2262610793,
0.4135231078,
-0.1765183359,
0.4025965333,
0.1679810435,
-0.1497793794,
-0.2919573188,
-0.6388096213,
-0.0956268162,
0.0734441578,
-0.2497819066,
-0.0123187006,
-0.1612838954,
0.1232292801,
-0.0954734087,
0.1156069711,
0.1166562885,
-0.3803676963,
-0.1796399057,
-0.4582118392,
-0.0172269903,
0.047373794,
-0.17916812,
-0.0947114229,
0.3156732321,
0.0625577196,
-0.2051768303,
0.0225614309,
-0.0225596055,
0.0753081292,
0.1359441876,
-0.3133121133,
0.0678396523,
0.2115234733,
0.2421738207,
0.1165319085,
-0.0914430693,
0.1404801756,
-0.3214637935,
0.0882015675,
-0.2670932412,
0.2662132084,
0.364828229,
0.0332867354,
-0.36616382,
-0.07746806,
0.3192600608,
-0.3424717188,
0.0919072926,
-0.1811611801,
0.050341785,
-0.0347729363,
-0.3690576553,
0.1503406763,
0.473444283,
0.2010737062,
-0.3792191744,
-0.0435688235,
0.188842684,
-0.443276763,
-0.1435355246,
0.099591583,
0.0958326161,
-0.6108904481,
-0.2467772365,
0.1305356026,
0.1838458925,
-0.219919607,
0.273576051,
0.0045823604,
0.4709968567,
0.0193590298,
0.0979581624,
0.2940154672,
0.0065492541,
-0.1389173269,
0.2382594794,
-0.0610197969,
-0.1116311401,
-0.0856144801,
0.3941871822,
0.3761969209,
-0.1148845702,
0.2615607083,
0.1333842427,
-0.2054037005,
-0.240452379,
0.1724511385,
-0.2500690818,
0.2003568113,
-0.3064522445,
-0.0209766552,
-0.0451242514,
0.2041325122,
0.0940573141,
0.1203062758,
-0.2302705646,
0.2388393581,
0.3612503707,
0.0425794385,
0.4038475454,
-0.1544981599,
-0.3849768937,
-0.3576690257,
-0.0640166551,
-0.1553388536,
0.2091979235,
0.3712137043,
-0.2315186858,
-0.1918839812,
-0.3699704707,
0.333296299,
-0.0095572695,
0.0069704354,
-0.1931197494,
-0.11519631,
-0.1268467009,
-0.1134819984,
-0.0729125291,
0.2275787294,
-0.1046024859,
-0.2657742798,
0.2795611024,
0.139168933,
-0.0043341555,
-0.2493185699,
0.3853372633,
0.0872624815,
0.1868845075,
0.1661545485,
0.0304408986,
-0.0998967588,
0.3716398478,
0.2493600845,
-0.2330424488,
0.009554388,
-0.5110834837,
-0.1398497671,
-0.2362092286,
-0.0440368503,
-0.2656451464,
-0.2391250879,
0.1430876553,
-0.0139343357,
0.241730243,
0.1318980753,
-0.0250230879,
0.1806059182,
-0.0407009311,
-0.0761869699,
-0.2563688755,
-0.0506179072,
0.1348452121,
0.1929736733,
0.3609313667,
-0.2296915352,
0.0628189445,
0.0342493653,
0.0914988071,
0.189991042,
-0.2439329177,
-0.4683240354,
0.0066168904,
-0.2882343233,
0.0960117877,
0.1645243615,
0.3466563225,
0.1398829073,
0.0730471015,
-0.0421124026,
-0.0236185603,
0.0177690685,
0.0443215743,
0.3303329349,
0.1095841974,
0.256780535,
0.0742072314,
0.3293250203,
0.2420231551,
0.122482501,
-0.1384053677,
-0.1348121613,
-0.2841988206,
0.1067584008,
-0.2484177053,
-0.4215635359,
-0.1875656694,
-0.184540987,
-0.1230122298,
-0.0149273835,
0.1865078509,
-0.0561991408,
0.1403870881,
0.0554290265,
0.1559766382,
-0.1527741551,
-0.0191214718,
0.1331454217,
-0.5160626173,
0.2592286766,
0.1565912217,
0.1139577404,
0.1209733188,
0.472194612,
-0.1159629822,
-0.2033680081,
-0.5184369087,
-0.5585826039,
0.0390002802,
-0.1104810387,
0.2622466683,
-0.1279795766,
0.1481088996,
-0.1493076533,
-0.0289612543,
0.2102093101,
0.2862324119,
0.0190502927,
-0.337053597,
-0.1956279725,
0.076698944,
0.2599276304,
-0.4277598858,
-0.1802714765,
0.0028602853,
0.1875529289,
0.0680032372,
0.0265831575,
-0.4053645134,
0.1125633046,
-0.1220626384,
-0.1676354259,
0.0574354604,
-0.091936931,
-0.3873734772,
0.2161987126,
-0.0784546584,
-0.2595169842,
0.1928521246,
-0.0159029737,
-0.0558190085,
-0.2051001489,
0.126777634,
0.1307674348,
-0.1578678489,
0.1032416895,
0.2249049395,
0.1547758579,
0.1833475977,
0.1117327511,
0.0685982704,
-0.1756865382,
-0.1481728405,
0.268507421,
0.0928249061,
0.111873284,
-0.0606017299,
0.222219497,
-0.3472219706,
0.3986661434,
0.5254827142,
0.1192850769,
-0.0594920404,
-0.2288455963,
0.3587067723,
-0.2458243072,
-0.105610773,
-0.2335340381,
0.1408099979,
-0.1052917838,
0.1787993312,
0.0762342513,
-0.136723116,
-0.1691934168,
0.0806476325,
-0.2816326916,
-0.046996329,
0.1670807898,
-0.4001511931,
0.2265845686,
-0.049096182,
-0.4898153543,
-0.3174821138,
-0.323274672,
-0.1970892251,
-0.3505021036,
0.2054463029,
-0.080445379,
-0.4070581198,
-0.0595488399,
-0.2789440155,
0.194385156,
0.3742375374,
-0.0190006122,
-0.0954912454,
-0.0674533546,
-0.1392034888,
0.2143232226,
0.1779636741,
-0.5429997444,
-0.2740232348,
0.0634254962,
0.3556330204,
-0.09078224,
0.284460485,
-0.1493006349,
-0.1365789622,
0.2212073207,
0.3323827684,
-0.274954617,
0.1516239792,
0.2588716745,
0.3530672491,
-0.2272438556,
-0.0717942566,
0.1638050079,
0.185469985,
-0.3372767568,
-0.1539020538,
0.1404723525,
-0.0018167607,
0.3170559108,
-0.1068640426,
0.1011035442,
0.2996174693,
0.4610781968,
0.1862190813,
0.0585757717,
0.1290239841,
0.1960827112,
0.3700785041,
-0.097630769,
0.0814770609,
0.6518191099,
-0.2090461701,
-0.3070388734,
-0.1877332628,
-0.22840029,
0.6691730618,
-0.061402835,
0.3683288097,
0.3365747631,
0.0028095022,
-0.0528601408,
-0.131280601,
-0.107872203,
0.1989744604,
0.1381974965,
-0.6152012944,
-0.4491059184,
0.2315101326,
0.1934201121,
-0.3068054914,
-0.1744422466,
0.1185636818,
-0.2160876393,
0.5841512084,
0.0494880639,
1.0757396221,
0.0293673873,
0.0874435529,
-0.3162234128,
-0.1883552074,
1.0178574324,
0.1305322349,
-0.1236898303,
-0.1478768885,
-0.0850097835,
-0.2294461876,
-0.1666277349,
-0.0572980084,
0.5215895176,
-0.2304564118,
0.3305692673,
0.1110761911,
0.2486627251,
0.1022544503,
0.0712079704,
0.4821210206,
-0.0573538765,
0.0192611217,
0.0158689916,
0.104401499,
-0.2079252005,
-0.1785884053,
0.0272911303,
-0.280731082,
0.0825843811,
-0.4025102854,
-0.0166644678,
0.1252087653,
-0.0403475761,
0.0672268346,
-0.1790911853,
0.1475470066,
0.622215867,
0.3884710073,
0.2047896385,
-0.2520730793,
0.181126371,
-0.049987793,
0.0590855069,
0.1429444402,
-0.1582106352,
0.2772469819,
0.177270636,
-0.3260654807,
0.2746417522,
0.0858250558,
-0.1454247981,
-0.4181192517,
-0.051404655,
0.185131982,
-0.1382942945,
-0.5660068393,
0.40743047,
0.1603226364,
-0.3235923648,
0.0023534303,
-0.0015482176,
0.0556905046,
0.0581133738,
0.1035229415,
-0.3034130335,
0.0461767092,
0.3858908415,
0.3112261891,
0.0276319236,
0.4255212247,
0.3808838129,
0.1432448179,
-0.0935775116,
0.0510323942,
0.0641203523,
-0.4438185394,
-0.2619380355,
0.2240644097,
0.1107019037,
-0.2755553126,
0.0275218152,
0.2948082983,
0.2812789679,
0.1131926179,
-0.1540005058,
-0.3026462197,
0.298366487,
0.1990270764,
0.1886816174,
0.1341685504,
0.1064022109,
-0.0667063072,
0.6051509976,
-0.1955352128,
0.1030364037,
0.0947636738,
0.2416863739,
0.5612390637,
0.3211014867,
-0.3037016094,
-0.3529644907,
0.0524256974,
-0.2563046217,
0.368034482,
-0.1653797179,
-0.0343196802,
0.1800290495,
0.1391876042,
0.0141357854,
-0.1297422647,
-0.2268848717,
0.3054665029,
-0.3553521633,
0.1036896557,
0.2047755718,
0.1460906565,
-0.1658949256,
0.2882987857,
0.1458712667,
-0.6236057281,
0.3157990575,
0.1428550333,
0.1566025019,
-0.2186438143,
-0.1664492637,
0.2113180459,
-0.0294228718,
0.2234199941,
0.0287346989,
0.424315989,
-0.0088732643,
0.0212810487,
-0.0118979551,
0.064159736,
0.2644204199,
0.246322453,
-0.256418556,
0.0390676372,
0.0752101317,
0.1435422003,
0.1195018515,
-0.324965775,
-0.0525957793,
0.5134177804,
-0.1326962411,
0.0561389774,
0.0678659827,
-0.1298232675,
0.3916150331,
-0.2596843243,
0.0113475993,
0.0583179221,
-0.1029910222,
0.211931169,
0.4004091322,
0.4970455766,
-0.08682964,
0.0304795448,
0.1863883138,
0.20960401,
0.2692555785,
0.2416103035,
0.1177024096,
0.5011900663,
0.1195440292,
0.5809912086,
0.1392070502,
0.3784673512,
0.3143641949,
0.3798810244,
-0.3143437207,
-0.0398888849,
0.103448838,
0.2028984576,
-0.2574539483,
0.1483078748,
0.4723991156,
-0.0298806652,
-0.2976965606,
-0.0858094767,
-0.3873432279,
0.0948560983,
-0.0732985809,
-0.0769007802,
-0.3153760433,
0.1335422248,
-0.1397842169,
0.1501652151,
-0.1131896973,
0.0524014235,
-0.090574123,
-0.0022758096,
-0.2257421911,
0.3338589072,
-0.1965187043,
-0.0932017043,
0.2818794549,
0.6687042713,
0.1901694834,
0.1966961622,
-0.0468817689,
0.4440401196,
0.0426711105,
-0.1884840429,
0.1407415271,
-0.0543255806,
-0.0936094597,
-0.4418235421,
0.2229226232,
0.1742856503,
-0.0512589402,
0.1346772909,
0.0311520528,
0.3035238981,
-0.0694842413,
-0.1697517633,
-0.0649954677,
-0.1368067563,
0.0962802768,
-0.0222409293,
-0.3277294934,
-0.0021434724,
0.1096535027,
-0.246652171,
0.047279641,
0.0412828922,
0.0517096147,
0.0994186029,
0.2816912532,
0.4313204885,
0.0839763135,
-0.2127907574,
-0.1945228279,
-0.5713772178,
0.0890259296,
-0.1803852618,
0.0644971728,
-0.4097460508,
-0.0178546943,
0.3409056664,
0.118875131,
0.2114408165,
0.0123335496,
-0.3273977637,
0.0921842977,
-0.1394606084,
-0.3116665483,
0.1199036241,
0.0357651412,
-0.092187576,
0.0851912647,
0.0246654451,
0.1429479271,
-0.1299193799,
-0.0156782046,
-0.1433279216,
0.107795693,
-0.2914769351,
0.0785337985,
0.0836483687,
0.7063449025,
-0.3609150648,
0.0404674038,
0.4582170248,
-0.3141152561,
-0.078845039,
0.5984270573,
0.0694170296,
0.2488773763,
-0.3487597108,
0.1082890481,
0.2200301439,
-0.4537162185,
-0.3922598064,
0.1436920017,
-0.6623860598,
-0.0504211709,
-0.0922137871,
-0.0260315072,
-0.0347722322,
0.1968841106,
0.0055903946,
0.3021910191,
0.2433604896,
-0.151622206,
0.0402157456,
-0.1162696481,
-0.2251850814,
-0.2587265372,
-0.0455803424,
0.2406250536,
-0.08683265,
-0.3463813663,
0.0724973083,
0.4907076359,
0.1102974638,
0.0547940582,
0.1335086524,
-0.0682990327,
0.0065600574,
-0.2171512097,
0.2488213629,
0.019088015,
0.0077921152,
-0.4408719242,
-0.3627167046
] |
https://github.com/huggingface/datasets/issues/801 | How to join two datasets? | Closing this one. Feel free to re-open if you have other questions about this issue.
Also linking another discussion about joining datasets: #853 | Hi,
I'm wondering if it's possible to join two (preprocessed) datasets with the same number of rows but different labels?
I'm currently trying to create paired sentences for BERT from `wikipedia/'20200501.en`, and I couldn't figure out a way to create a paired sentence using `.map()` where the second sentence is **not** the next sentence (i.e., from a different article) of the first sentence.
Thanks! | 23 | How to join two datasets?
Hi,
I'm wondering if it's possible to join two (preprocessed) datasets with the same number of rows but different labels?
I'm currently trying to create paired sentences for BERT from `wikipedia/'20200501.en`, and I couldn't figure out a way to create a paired sentence using `.map()` where the second sentence is **not** the next sentence (i.e., from a different article) of the first sentence.
Thanks!
Closing this one. Feel free to re-open if you have other questions about this issue.
Also linking another discussion about joining datasets: #853 | [
-0.0025698915,
-0.0501230657,
0.0077044666,
0.0776304752,
-0.0018987665,
0.1729739308,
-0.0592135005,
0.1528545916,
-0.0238947645,
-0.1077588722,
-0.2796119153,
0.228430599,
0.3064371943,
0.0511663482,
0.0457662456,
-0.2121215612,
0.2977071404,
0.0878455192,
-0.1395895183,
0.0677663907,
0.0877422839,
0.1052056625,
-0.2417862415,
-0.079610303,
-0.3017892838,
0.1389433593,
-0.106539011,
-0.178644076,
0.0257562846,
-0.0823390558,
0.2509199381,
0.2338494509,
0.0578638464,
0.5224132538,
-0.0001189344,
-0.1573142409,
0.1734096259,
-0.1755608171,
-0.0674429089,
-0.6412493587,
-0.4305659533,
-0.1681634486,
-0.0630626008,
-0.2254205048,
-0.1610949039,
-0.1915008426,
-0.0141817294,
-0.3776863813,
0.2850195169,
-0.0464441553,
0.0730514154,
-0.2338421345,
0.3569043577,
-0.2776046097,
0.2534075975,
0.1100588739,
0.2291912585,
0.2513779998,
0.405372411,
-0.0196345896,
0.3723790944,
0.0401944257,
-0.2859002054,
-0.111281693,
0.2673868239,
0.0482695624,
-0.2433438599,
-0.5618751049,
0.1242508069,
0.5158061385,
0.8751180768,
-0.1637458205,
-0.1189343408,
-0.1058144197,
0.2280832827,
0.2984707654,
-0.1458123475,
0.125710845,
0.0739403665,
-0.0743973404,
-0.0713710785,
-0.3805040121,
-0.0199614242,
0.0570358075,
-0.1911931336,
0.3875512779,
0.1164397746,
0.0835291296,
-0.115177229,
-0.385750562,
0.0374711901,
-0.0749260634,
-0.1794654876,
0.320514977,
-0.1373664588,
-0.3005452752,
-0.4265525937,
-0.0406181961,
0.3847049475,
-0.2180026621,
-0.1096992716,
-0.1719014645,
-0.2832716405,
0.1812515855,
0.4421009719,
-0.1709418893,
0.3890826404,
0.2038498521,
-0.1573476791,
-0.2631588578,
-0.7858474851,
-0.0141698271,
0.0385820791,
-0.3469095528,
-0.0002777651,
-0.145392701,
0.0557261109,
-0.1759080291,
0.060125865,
0.1142938286,
-0.5267907381,
-0.1042300761,
-0.4912879467,
-0.0284896642,
0.0544895753,
-0.1384903938,
-0.0492657162,
0.3209947944,
-0.0293860435,
-0.214548856,
0.0017576404,
-0.0458911657,
0.0329554081,
0.0926205367,
-0.2935265899,
0.012367785,
0.1479327679,
0.2374414802,
0.1795551479,
-0.1296129227,
0.1128563657,
-0.2888923883,
0.1297531724,
-0.2324273735,
0.2570161521,
0.3389838934,
0.083673358,
-0.2809276581,
-0.0974409878,
0.3202990592,
-0.3467894197,
0.0968272686,
-0.0751116052,
0.0482256711,
-0.1077680886,
-0.3144006133,
0.1393893659,
0.3638128936,
0.1911331564,
-0.392011106,
-0.0591251105,
0.0474587753,
-0.4272731543,
-0.1695652157,
0.1270520389,
0.0835981146,
-0.5973303914,
-0.2113655806,
0.1870443076,
0.1715714037,
-0.1690767854,
0.3093142509,
-0.0003778897,
0.4118531048,
0.0478399321,
0.1017802656,
0.1883347332,
-0.0319394395,
-0.2228379101,
0.2945311964,
-0.1456035674,
-0.067813471,
-0.10441982,
0.3420463502,
0.3204125464,
-0.1875416487,
0.3151753843,
0.1449415684,
-0.174581781,
-0.208520323,
0.1155623123,
-0.2270267606,
0.157245785,
-0.3124383986,
-0.0611692108,
-0.1168109328,
0.1118061766,
0.0585077889,
0.1921533048,
-0.1500457972,
0.1555636823,
0.3324892223,
0.0116774514,
0.3420876265,
-0.0901243836,
-0.2835847735,
-0.3240117729,
-0.0644665286,
-0.0928676948,
0.1528823823,
0.2960215509,
-0.2420350909,
-0.192474544,
-0.4010330141,
0.3508933187,
0.009866029,
0.0145943053,
-0.2698223293,
-0.1220162958,
-0.0657828301,
-0.0629408509,
-0.0144887418,
0.2110168785,
-0.150410682,
-0.3179163933,
0.387209475,
0.1176401749,
0.057158459,
-0.1679106951,
0.3586962223,
0.0484529436,
0.2030505538,
0.1642743349,
-0.0272343811,
-0.2241766602,
0.3396662772,
0.2753731012,
-0.2568636239,
-0.02501476,
-0.6368869543,
-0.12419644,
-0.2141598761,
-0.0337924771,
-0.3123408556,
-0.235254243,
0.1731514484,
-0.0345406644,
0.271597892,
0.0634435415,
0.0401524454,
0.1113937646,
-0.0591189191,
-0.1764664352,
-0.1673033535,
0.0902202576,
0.0907129571,
0.1448713541,
0.3844324052,
-0.2436366081,
0.0482860394,
-0.028450422,
0.0764814317,
0.1372898519,
-0.3264172375,
-0.4592154622,
0.007492654,
-0.2270468771,
0.1214903295,
0.208240822,
0.349242866,
0.1527170986,
0.0456987545,
-0.092182219,
-0.0213659965,
-0.0105894804,
0.0681033209,
0.3793617785,
0.0219300613,
0.2481972873,
0.0916104019,
0.3852548897,
0.2168069929,
0.0136740357,
-0.2023301274,
-0.169655323,
-0.2334575653,
0.0689237192,
-0.278601408,
-0.373954922,
-0.1919830889,
-0.2463328391,
-0.1471287906,
-0.0810215548,
0.1199394017,
-0.0407526381,
0.1887602508,
-0.0296873152,
0.1275855899,
-0.2064576149,
-0.1042081937,
0.165407747,
-0.4634034634,
0.2584106624,
0.1879548281,
0.1876950264,
0.1774712205,
0.4568805099,
-0.2174546421,
-0.1817056835,
-0.4573141038,
-0.4930148721,
0.0420009531,
-0.15479967,
0.2963696718,
-0.1615112126,
0.1329653412,
-0.2619120479,
0.042155236,
0.2144403458,
0.3131143153,
0.0053431019,
-0.3617566824,
-0.1295344681,
0.1523980796,
0.2682895064,
-0.3597660065,
-0.1527061909,
0.0125950426,
0.1549459547,
-0.0277928971,
0.0147464545,
-0.4901633859,
0.0906728655,
-0.1672898531,
-0.1309008598,
-0.0067184418,
-0.1017035395,
-0.3829993606,
0.2168265581,
-0.0516360663,
-0.2362248003,
0.2038919926,
0.0279138088,
-0.0117245493,
-0.2106574327,
0.0760314688,
0.1673896164,
-0.154104948,
0.0374531224,
0.2276540548,
0.1397214532,
0.0923877209,
0.1287390292,
0.05645518,
-0.1926451623,
-0.1596467197,
0.216640085,
0.061634969,
0.1089246571,
-0.0098428447,
0.1810976714,
-0.3064340949,
0.440648675,
0.5961540937,
0.0669471622,
-0.1543180645,
-0.0552445874,
0.3191206455,
-0.2241166085,
-0.1444145739,
-0.2162663937,
0.1355164051,
-0.1104241759,
0.2012255043,
0.1469837576,
-0.2011133432,
-0.2267200053,
0.0276123881,
-0.2966862917,
-0.0866996944,
0.1483124495,
-0.3616516292,
0.2280011624,
0.0028279275,
-0.4828453064,
-0.2542800605,
-0.2783202529,
-0.1992050558,
-0.2758312523,
0.3278147578,
-0.0452022813,
-0.35288167,
-0.0166931264,
-0.3142631054,
0.240650475,
0.3664999306,
-0.0843387097,
-0.0907222629,
-0.0604189485,
-0.1292156428,
0.2606253922,
0.1542929113,
-0.5128048658,
-0.1633433104,
0.1516361833,
0.4062102735,
-0.0650437474,
0.2887910903,
-0.0917119086,
-0.1130861193,
0.2488006651,
0.2509049177,
-0.2583780289,
0.1570632458,
0.2447040975,
0.4032775164,
-0.1736410558,
-0.1313843429,
0.2057293355,
0.1652617604,
-0.2362171113,
-0.0962600112,
0.1956251115,
-0.0006142929,
0.2740317583,
-0.0693940744,
0.0365956724,
0.2171509713,
0.5396986604,
0.1209779382,
0.081152454,
0.0803796202,
0.2357331216,
0.4530341923,
-0.0320292525,
0.1378338784,
0.6700578928,
-0.2145473659,
-0.3292793334,
-0.1934354901,
-0.1311743259,
0.6428803205,
0.0062160976,
0.3512898088,
0.1989216059,
0.0188851766,
-0.1209157407,
-0.0490796827,
-0.2452424765,
0.0792127475,
0.1984338015,
-0.7353707552,
-0.4121162593,
0.2752215862,
0.2985342145,
-0.33700037,
-0.2035914212,
0.111207068,
-0.2003129721,
0.4947105646,
0.0612145066,
1.162571311,
0.0410087407,
0.1179919988,
-0.3089979589,
-0.1229391694,
0.9703683257,
0.1930098087,
-0.1272208095,
-0.0968468934,
-0.1137189791,
-0.2565714419,
-0.2248203307,
-0.137561053,
0.5079173446,
-0.1840535402,
0.3734821379,
0.0310732126,
0.1875920296,
0.1369577348,
-0.0327432677,
0.5116969943,
0.0012901109,
-0.0064744744,
0.0229875296,
0.1152577996,
-0.0902242064,
-0.1849838793,
-0.0297499076,
-0.3025939465,
0.1189250201,
-0.3847563267,
0.0003965944,
0.0650694966,
-0.0481356047,
0.0850294828,
-0.2355200201,
0.1955158114,
0.7198809385,
0.356329143,
0.1922264099,
-0.2848259509,
0.1726629734,
-0.00922231,
0.0049918927,
0.162931785,
-0.1281560063,
0.2780496776,
0.1617682427,
-0.2777025402,
0.1949974895,
0.1021158397,
-0.0899805427,
-0.4744355977,
0.0123074334,
0.0980077386,
-0.0945380256,
-0.5388149023,
0.3663736284,
0.1767820269,
-0.1856524348,
0.0132000037,
0.0001880769,
0.0749188662,
0.0935517326,
0.1123004109,
-0.3210186958,
0.0606168136,
0.3731019795,
0.3647236824,
-0.0629593581,
0.3424705267,
0.3815137744,
0.0855752826,
-0.0872850716,
0.0814717114,
0.0288085938,
-0.3980551958,
-0.1969990283,
0.105775252,
0.2387942672,
-0.3082543612,
-0.0100201517,
0.3829270005,
0.1897432655,
0.172296375,
-0.1259192824,
-0.2626470327,
0.3369969726,
0.1391754746,
0.1633087248,
0.0490513891,
0.0862307698,
-0.0101355277,
0.5093476772,
-0.2070426345,
0.1580709815,
0.0907078907,
0.200630486,
0.5335079432,
0.3277241886,
-0.3454566896,
-0.3669420779,
0.0643303841,
-0.2048444152,
0.3108891249,
-0.1922220588,
0.0480893329,
0.1692543924,
0.1016222537,
0.0221288055,
-0.0469611846,
-0.2170204222,
0.3040752411,
-0.3163800836,
0.0354828909,
0.2301061302,
0.2214182466,
-0.2630119026,
0.2981280088,
0.1858421415,
-0.5612171888,
0.365136534,
0.1390033215,
0.1313629895,
-0.3120279908,
-0.2273173332,
0.2362158746,
-0.0268929154,
0.2411728948,
-0.0294412374,
0.3321397901,
0.0570385531,
-0.0083751585,
-0.0273227617,
-0.0005372241,
0.2442921996,
0.3078635931,
-0.2212412953,
-0.024001874,
0.1011855528,
0.1767581105,
0.1289905906,
-0.2226727009,
-0.0394650325,
0.5133666396,
-0.0380397029,
-0.0375017636,
0.0438094996,
-0.1290796101,
0.3635984957,
-0.2724663913,
0.0844296217,
0.1232993454,
-0.130945757,
0.1443679333,
0.413951695,
0.5091973543,
-0.0637899488,
0.043280974,
0.1681566685,
0.234241724,
0.2636004388,
0.2262664586,
0.1249125078,
0.5415758491,
0.1831620038,
0.6217488647,
0.2145631909,
0.2305884063,
0.3615838289,
0.2951470017,
-0.3101606667,
-0.0733565688,
0.1703621745,
0.1269234717,
-0.2907982171,
0.1274167299,
0.4434102774,
0.0040869648,
-0.2422982156,
-0.0603943393,
-0.4170535803,
0.1044447869,
-0.0596786514,
-0.0944368839,
-0.2965033352,
0.2017252445,
-0.1277419925,
0.1328471005,
-0.1001607627,
0.0389208272,
-0.081516251,
0.0456889756,
-0.2055386752,
0.2178045958,
-0.2609114945,
-0.0936178863,
0.2776680887,
0.6427243352,
0.2933253348,
0.1303419769,
-0.1099643856,
0.3280540705,
0.0163040385,
-0.1135227829,
0.1416663229,
-0.014613281,
-0.0806668624,
-0.5470135808,
0.2632037401,
0.173025012,
-0.0409363732,
0.1357988566,
-0.0137347169,
0.325507015,
-0.1209612265,
-0.1709829718,
-0.2564879954,
-0.0963708684,
0.0807461664,
-0.0569786169,
-0.2953189611,
0.0591470152,
0.058542341,
-0.1512658745,
0.0465598889,
0.0381094739,
0.0607063137,
0.0433833376,
0.1929326355,
0.4572066665,
0.1805943251,
-0.2380099446,
-0.2230484933,
-0.6116511226,
0.1156006157,
-0.2424536049,
0.0879889056,
-0.4129202664,
-0.0658174008,
0.3155343235,
0.1827477813,
0.1582339704,
0.0365643501,
-0.3021132052,
0.1524005234,
-0.1534944028,
-0.3242207468,
0.1552173644,
-0.0207843129,
-0.1128109694,
0.0763470456,
0.0181958694,
0.0454513282,
-0.114411138,
0.0254976414,
-0.1378242373,
0.1756381392,
-0.1870415509,
0.088994965,
0.1502764076,
0.7541152239,
-0.3090141714,
0.0606666952,
0.4328767359,
-0.3222762048,
-0.0024947226,
0.6328270435,
0.0188938007,
0.2234550118,
-0.3817554414,
0.1293927729,
0.2589630485,
-0.5065023899,
-0.3396412134,
0.3446268737,
-0.6829177141,
-0.2021072656,
-0.0883289278,
-0.0181745607,
-0.091723837,
0.2266777307,
-0.0303806029,
0.2706246972,
0.2221622616,
-0.1556905061,
0.1092998236,
-0.1322835684,
-0.2360173762,
-0.2123875767,
-0.0463722572,
0.2906600535,
-0.0349211507,
-0.3357987404,
0.0541262627,
0.4443775415,
0.12320894,
0.062367186,
0.1291296333,
-0.0715737268,
0.0446418971,
-0.2311868519,
0.1862353981,
-0.0285791848,
-0.0046888217,
-0.4483373761,
-0.337303102
] |
https://github.com/huggingface/datasets/issues/798 | Cannot load TREC dataset: ConnectionError | Hi ! Indeed there's an issue with those links.
We should probably use the target urls of the redirections instead | ## Problem
I cannot load "trec" dataset, it results with ConnectionError as shown below. I've tried on both Google Colab and locally.
* `requests.head('http://cogcomp.org/Data/QA/QC/train_5500.label')` returns <Response [302]>.
* `requests.head('http://cogcomp.org/Data/QA/QC/train_5500.label', allow_redirects=True)` raises `requests.exceptions.TooManyRedirects: Exceeded 30 redirects.`
* Opening `http://cogcomp.org/Data/QA/QC/train_5500.label' in a browser works, but opens a different address
* Increasing max_redirects to 100 doesn't help
Also, while debugging I've seen that requesting 'https://storage.googleapis.com/huggingface-nlp/cache/datasets/trec/default/1.1.0/dataset_info.json' returns <Response [404]> before, but it doesn't raise any errors. Not sure if that's relevant.
* datasets.__version__ == '1.1.2'
* requests.__version__ == '2.24.0'
## Error trace
```
>>> import datasets
>>> datasets.__version__
'1.1.2'
>>> dataset = load_dataset("trec", split="train")
Using custom data configuration default
Downloading and preparing dataset trec/default (download: 350.79 KiB, generated: 403.39 KiB, post-processed: Unknown size, total: 754.18 KiB) to /home/przemyslaw/.cache/huggingface/datasets/trec/default/1.1.0/ca4248481ad244f235f4cf277186cad2ee8769f975119a2bbfc41b8932b88bd7...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/builder.py", line 531, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/home/przemyslaw/.cache/huggingface/modules/datasets_modules/datasets/trec/ca4248481ad244f235f4cf277186cad2ee8769f975119a2bbfc41b8932b88bd7/trec.py", line 140, in _split_generators
dl_files = dl_manager.download_and_extract(_URLs)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 254, in download_and_extract
return self.extract(self.download(url_or_urls))
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 179, in download
num_proc=download_config.num_proc,
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in map_nested
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in <listcomp>
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 163, in _single_map_nested
return function(data_struct)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 308, in cached_path
use_etag=download_config.use_etag,
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 475, in get_from_cache
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach http://cogcomp.org/Data/QA/QC/train_5500.label
```
I would appreciate some suggestions here. | 20 | Cannot load TREC dataset: ConnectionError
## Problem
I cannot load "trec" dataset, it results with ConnectionError as shown below. I've tried on both Google Colab and locally.
* `requests.head('http://cogcomp.org/Data/QA/QC/train_5500.label')` returns <Response [302]>.
* `requests.head('http://cogcomp.org/Data/QA/QC/train_5500.label', allow_redirects=True)` raises `requests.exceptions.TooManyRedirects: Exceeded 30 redirects.`
* Opening `http://cogcomp.org/Data/QA/QC/train_5500.label' in a browser works, but opens a different address
* Increasing max_redirects to 100 doesn't help
Also, while debugging I've seen that requesting 'https://storage.googleapis.com/huggingface-nlp/cache/datasets/trec/default/1.1.0/dataset_info.json' returns <Response [404]> before, but it doesn't raise any errors. Not sure if that's relevant.
* datasets.__version__ == '1.1.2'
* requests.__version__ == '2.24.0'
## Error trace
```
>>> import datasets
>>> datasets.__version__
'1.1.2'
>>> dataset = load_dataset("trec", split="train")
Using custom data configuration default
Downloading and preparing dataset trec/default (download: 350.79 KiB, generated: 403.39 KiB, post-processed: Unknown size, total: 754.18 KiB) to /home/przemyslaw/.cache/huggingface/datasets/trec/default/1.1.0/ca4248481ad244f235f4cf277186cad2ee8769f975119a2bbfc41b8932b88bd7...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/builder.py", line 531, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/home/przemyslaw/.cache/huggingface/modules/datasets_modules/datasets/trec/ca4248481ad244f235f4cf277186cad2ee8769f975119a2bbfc41b8932b88bd7/trec.py", line 140, in _split_generators
dl_files = dl_manager.download_and_extract(_URLs)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 254, in download_and_extract
return self.extract(self.download(url_or_urls))
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 179, in download
num_proc=download_config.num_proc,
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in map_nested
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in <listcomp>
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 163, in _single_map_nested
return function(data_struct)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 308, in cached_path
use_etag=download_config.use_etag,
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 475, in get_from_cache
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach http://cogcomp.org/Data/QA/QC/train_5500.label
```
I would appreciate some suggestions here.
Hi ! Indeed there's an issue with those links.
We should probably use the target urls of the redirections instead | [
-0.1691725254,
0.0168357641,
0.0626650527,
0.3633996546,
0.2918770611,
-0.1796785593,
0.2199586779,
-0.0434449129,
-0.1838139296,
0.0629581809,
-0.3238996863,
0.1360176504,
0.0722287893,
0.1577587128,
-0.0579133779,
-0.0945275053,
-0.1901097149,
-0.2000558078,
-0.0688834339,
0.2535367608,
-0.1328545213,
0.4753990471,
-0.2073135823,
0.2046912462,
-0.4112500846,
0.0120672062,
0.2174304724,
0.4217191041,
-0.2242176235,
-0.6152896881,
0.4672034681,
0.0918212086,
0.2583207488,
0.6301939487,
-0.0001212188,
0.0438779593,
0.3747946322,
-0.0809115916,
-0.3682200313,
-0.5027561784,
-0.5078123808,
-0.0790520087,
0.2648389935,
0.2292862833,
-0.3196889162,
0.4285565615,
0.0791531056,
-0.3250601292,
0.3382041156,
0.6332944036,
0.0820837319,
-0.0768374354,
0.0945121199,
-0.1623593867,
0.3016188741,
-0.1488977671,
-0.0706103295,
0.4869536757,
0.215513736,
-0.0386379287,
0.0549374856,
-0.0216431804,
-0.0271046273,
-0.0117050372,
0.1798273325,
-0.0742921606,
-0.1101850495,
-0.434096992,
0.4241300523,
0.352265209,
0.64021492,
-0.1733741462,
-0.227268815,
0.1454132497,
-0.0812641978,
-0.4302356839,
0.3003185391,
0.3217076957,
-0.1221239865,
0.1870262772,
-0.4078291059,
-0.2597643435,
-0.3686290979,
0.0043726135,
-0.4164091945,
0.1270345598,
-0.2663987279,
0.1315304339,
0.2910036445,
0.015294861,
0.3388897181,
0.2237245739,
-0.4470450878,
-0.0075070709,
-0.6929897666,
0.1829682738,
-0.1482105851,
-0.0363467522,
0.0934942961,
0.3697323799,
0.3174380362,
0.0368968956,
-0.2863056958,
0.40656811,
0.0869920552,
0.3421802521,
0.0432390012,
0.1872975975,
0.3242339194,
0.1837181747,
-0.013221249,
-0.0930790305,
-0.1950833201,
-0.2066058964,
-0.1330895275,
0.1809047759,
0.0973417461,
-0.2702093124,
-0.3912981153,
0.1465581059,
-0.4139408171,
0.0091934986,
0.1225643307,
0.454131186,
-0.2755915225,
-0.0242433585,
-0.0385251679,
0.2208219022,
-0.0965708867,
-0.1626554728,
-0.0660127029,
0.2261448205,
-0.2326459885,
0.1317700744,
0.3381001353,
-0.1813089997,
0.1413072497,
-0.1649177969,
-0.0668444932,
-0.2156006098,
-0.0086506121,
-0.2676546872,
-0.1067192852,
0.4307491779,
0.0776933134,
0.0562675595,
0.1243787855,
-0.3719577491,
-0.0352642909,
0.0133795384,
-0.5714358687,
-0.3518610001,
0.062116228,
0.0705779195,
-0.1204288453,
0.0219032019,
-0.3443547189,
0.0012690215,
-0.004354082,
-0.1800429374,
-0.1748715043,
-0.2704451382,
-0.3334645629,
-0.3149197102,
0.3458769023,
0.4514563084,
-0.5566043258,
-0.0270751864,
0.0968401432,
0.0743102729,
0.1674600393,
0.3314803541,
-0.1907549202,
-0.0951526091,
-0.2181226611,
-0.1000666171,
0.0956015661,
-0.3112878799,
-0.2985932231,
-0.0033583194,
-0.0194072947,
-0.0483565629,
-0.2369236797,
-0.1034136489,
0.0137750357,
0.0616032667,
0.6465605497,
0.2157904357,
-0.1283170134,
-0.1761938035,
-0.1502933204,
-0.2762143612,
-0.2542471588,
0.0869561583,
0.1214701235,
0.0059733726,
0.2363968641,
-0.476413697,
0.0702287108,
0.0418811738,
-0.0073058046,
0.3011593223,
0.3711309731,
-0.0534161143,
-0.1965112537,
0.2541641891,
-0.4512375891,
0.3701871037,
-0.0718612969,
0.2864062488,
-0.253454566,
0.1539354324,
-0.2667069733,
0.1449397355,
-0.0538808033,
-0.133841753,
-0.0591718741,
0.0979989246,
0.2250684649,
0.240124926,
-0.119985655,
0.5677844286,
0.1352923512,
0.1387479007,
-0.2335022539,
0.2586082816,
0.0218196679,
0.068807736,
0.1329161525,
0.010632515,
0.2142104954,
-0.217055738,
-0.0641217604,
0.318633914,
0.2173625827,
0.0417963043,
0.0574614964,
0.1577194333,
0.2542845011,
-0.3891920447,
-0.0997395068,
0.0472880974,
-0.0086245015,
-0.0252698138,
-0.0405541472,
0.2425726056,
0.0648596734,
0.4205705225,
0.1400239468,
0.0894203708,
0.3215748668,
0.0298587531,
-0.0160042979,
0.1794742644,
0.1751998663,
0.2178916931,
0.0230622366,
-0.0838503242,
-0.3602315187,
0.1493654102,
-0.1642056406,
0.0495586395,
-0.1129639074,
0.1247551665,
-0.1547976732,
-0.0220804848,
0.0700038075,
0.3708667755,
0.220127359,
0.0490481257,
-0.2005207539,
0.1874100566,
0.0605275184,
-0.2058151662,
-0.0445010215,
0.1096538156,
0.3646667302,
0.265583545,
0.4266873598,
-0.0487633422,
-0.0951086134,
-0.3787637949,
-0.0358974673,
0.2614512146,
-0.27078861,
0.4008775949,
-0.2434713542,
-0.3584274352,
0.0938046947,
-0.3161961138,
-0.3449478149,
-0.2649384141,
-0.1177100763,
0.4375140965,
0.1163086742,
0.0623286888,
-0.2111104131,
0.3716549873,
0.0254304782,
-0.5300382972,
-0.0236887038,
-0.2573985755,
-0.3198367953,
0.0159244165,
0.3333908021,
-0.2213880569,
0.069861643,
-0.254704237,
0.0297966897,
-0.1255461723,
-0.2030433118,
0.1615647674,
0.1523071676,
0.3011630476,
-0.0669808835,
0.2267765701,
-0.2425041199,
0.0940603018,
0.2751002312,
0.0679613128,
0.1023402885,
0.0489342809,
-0.0400865525,
0.0441083834,
0.024912104,
-0.2555713654,
-0.4800464511,
-0.3582802415,
0.1784225702,
0.0196136162,
0.3458849192,
0.2960090637,
0.0382491834,
-0.0866621584,
0.0641805306,
-0.07696376,
-0.1533749998,
-0.3865545392,
0.1724121124,
-0.2786796689,
-0.2431340814,
0.2509685755,
0.0747396201,
0.384760201,
0.0763949156,
-0.6094398499,
-0.1564109772,
-0.1264607608,
0.1048997119,
0.0258260388,
-0.28259179,
0.3334425092,
-0.088208288,
-0.0051479153,
0.2160646915,
-0.4404525757,
0.0323338769,
0.3356821239,
0.3913239837,
0.2737469077,
0.3707467616,
-0.1709446609,
0.4239256978,
0.2026098073,
0.0485433601,
0.3296658695,
-0.1572239101,
0.3341205716,
-0.089217782,
-0.2969241738,
-0.2172840238,
-0.2103475034,
-0.3245610595,
0.1617722809,
0.2636646926,
-0.0344152674,
-0.4967105389,
0.1173625141,
-0.080140315,
-0.327688098,
0.055648461,
0.1679749191,
0.1110877544,
0.0038788095,
-0.0378259942,
0.2212287039,
-0.2119385153,
-0.3172353506,
0.3629993498,
0.0803812817,
0.072549209,
-0.1304667294,
-0.0161196999,
-0.8267486691,
0.3045908213,
0.0043533444,
0.3990238905,
-0.3158362508,
0.0614300817,
0.0791890249,
-0.1068058014,
0.1192458272,
-0.3070541024,
-0.0818269402,
0.3087827563,
0.0600855798,
-0.2109731585,
-0.2092312276,
0.1269947886,
0.1855375171,
0.432766825,
0.36028409,
0.0136945993,
0.0053407289,
0.0741607919,
0.1480064541,
-0.0896287188,
0.023082871,
-0.3215018511,
-0.48048985,
-0.2376380861,
-0.0714278296,
-0.0627245381,
0.2982814312,
0.1305001974,
0.0849200413,
0.2911791503,
-0.2723358274,
0.208102107,
0.0922953859,
0.0188675486,
0.1057648659,
0.1027645245,
0.09913899,
0.0624908805,
0.3354114294,
0.9395037293,
0.1009223759,
-0.1204157472,
0.3544931114,
0.3962076902,
0.0735517368,
0.2287352383,
-0.0518338978,
0.1031669825,
-0.0455486067,
0.131072402,
0.0472778827,
0.3104486763,
-0.2412311584,
-0.0123401545,
-0.8446326852,
-0.1633533239,
0.3940390646,
-0.1157397851,
-0.0963780209,
-0.0885316506,
0.1918693185,
-0.1223825514,
0.0664270967,
-0.0798335075,
0.938986063,
-0.2157413363,
-0.1139467955,
0.0964189842,
-0.1470548958,
0.4845153093,
-0.5781702399,
0.478051722,
-0.3271453381,
-0.1596904546,
-0.2196510732,
-0.2689325213,
-0.1141614616,
-0.1754054427,
-0.0028666705,
0.4294500649,
-0.1375027299,
0.1797112823,
0.4103511572,
0.0312494636,
0.1668052673,
0.0313801914,
-0.156322673,
0.0742265806,
-0.0684729964,
0.379514575,
-0.0753372237,
-0.0879743844,
-0.2208289057,
-0.0232577994,
-0.3305443823,
0.2558437586,
-0.7046297789,
0.0951706097,
0.0003455896,
-0.202798903,
0.138729021,
0.1491006613,
0.2019767761,
0.1502191722,
-0.3103255033,
0.2650387883,
-0.0473068692,
-0.1506278813,
-0.0097021982,
-0.0158758424,
0.0106165782,
-0.0578824952,
-0.0800180361,
0.4451652467,
-0.0131923966,
-0.401688695,
0.0497703403,
0.0414259806,
0.015600862,
-0.0672005117,
0.1310199499,
-0.0913957357,
0.0334718972,
0.0690084323,
0.0271309335,
0.1205179691,
0.1539874375,
-0.0196321234,
0.2282922119,
-0.2593365908,
-0.0157156251,
0.3636076748,
-0.0135960672,
-0.0319508538,
0.1860429198,
0.4898224771,
-0.0020254031,
-0.0705310926,
-0.1395796835,
0.2126884311,
-0.3972612619,
0.1164027303,
-0.0432343967,
0.1496534497,
0.0333797485,
0.347281456,
0.3143410683,
0.0317262746,
0.3876162171,
-0.5564649701,
-0.2944401205,
0.0544477478,
-0.1690245122,
0.1841664612,
0.1040882319,
-0.1632936746,
-0.2276391685,
-0.0018325448,
-0.1922601163,
0.0723113716,
-0.3587888479,
-0.1759030521,
0.1726369858,
-0.1161859408,
0.5185426474,
-0.136828348,
-0.0479449295,
-0.0184053555,
-0.3581273556,
-0.0564917885,
-0.0145605803,
0.2017893493,
0.1712416112,
-0.4430921674,
-0.1755432636,
-0.0775279552,
0.0485686883,
0.0543947257,
0.1847440004,
0.1984398812,
-0.1803074628,
-0.3293848038,
-0.4175058007,
0.0081549184,
-0.3177672625,
0.3675782979,
0.2319297493,
0.460667491,
0.2174212933,
0.243566215,
-0.0169108622,
-0.1336590648,
-0.1176588386,
0.2129968852,
-0.0535100773,
-0.2645332217,
0.1965233088,
-0.4327825606,
0.0601591319,
-0.2405549586,
0.2324357629,
0.0786647424,
-0.2138749659,
0.1428771317,
0.1881433129,
0.0525172651,
-0.0704043359,
-0.0328338668,
0.1413883418,
-0.0272034146,
0.0310487449,
0.2250308096,
0.3868734241,
-0.1784223914,
0.0799677819,
0.245906204,
0.5618063807,
0.1223890558,
0.1421125531,
-0.1236974448,
-0.123705551,
0.1257033348,
0.409453094,
0.0089926962,
0.0327678621,
0.0211197343,
-0.3650708497,
-0.0349255763,
-0.0059555313,
0.0183140282,
0.0332746729,
-0.5767638683,
0.1064380854,
0.141176492,
-0.1795785129,
-0.1717036664,
-0.089422524,
0.4524858594,
-0.2100298703,
-0.0174036361,
-0.3908973932,
0.1880070418,
-0.0242396723,
-0.0397138931,
0.1182920188,
-0.4415912926,
-0.1305990517,
0.2427268773,
0.0069916686,
-0.1593959779,
-0.0046675205,
0.0859767795,
-0.238829419,
-0.3000752032,
-0.0755935013,
0.3069648445,
-0.0426476113,
-0.0936476886,
0.4497713149,
0.0273360908,
-0.1706610024,
0.1557036191,
0.0153893996,
0.6272588968,
0.2654241323,
0.182375282,
0.108768478,
-0.1266421676,
0.0071308464,
0.1697154939,
0.0883648396,
0.1900409609,
-0.3322165608,
0.1685409993,
0.0786483362,
0.0258462764,
0.2831474841,
-0.0928126574,
0.312107563,
0.0294574462,
0.0179791972,
-0.1460421383,
0.1118160635,
-0.1592100412,
0.0422840975,
-0.3145129383,
0.1783578992,
0.3862513304,
-0.1402853429,
0.2693824172,
0.1543029845,
0.0086424164,
-0.1780066192,
0.4599912167,
0.3405542374,
0.2323291302,
-0.3487296104,
-0.1899101585,
-0.2473534197,
-0.005519297,
-0.1115458682,
0.2073096931,
-0.0416926593,
0.1502740383,
-0.2046354115,
0.3032638133,
-0.1217941642,
0.3058778346,
0.0848773345,
0.0063984524,
-0.2651686072,
0.0663422048,
0.0090941768,
0.0498307049,
-0.153773725,
-0.2624773383,
0.0815576017,
-0.3734007776,
-0.0794992074,
-0.1199193299,
0.151141569,
0.0426995233,
-0.2643913627,
0.2991390228,
0.2458395362,
0.7336869836,
0.2630756199,
-0.0093747862,
-0.1382427812,
-0.3809230924,
-0.0225654952,
0.0093688713,
0.3737496138,
0.2838226557,
0.08536686,
-0.2404978424,
-0.3851114511,
0.4988895655,
0.0652472377,
0.2366226614,
0.165057987,
-0.0864073709,
-0.0182053447,
0.0852972567,
-0.0759950653,
-0.1094401479,
0.1904141605,
0.1407319009,
-0.1363413632,
-0.3142248988,
0.5675711632,
-0.3454419971,
0.1128249913,
-0.1528614759,
0.2606034875,
0.3078807294,
0.0205606911,
-0.2705270946,
0.1239755899,
0.2145231366,
-0.1328070015,
-0.4126020074,
0.3355355561,
-0.2914165854,
-0.064807862,
-0.061146047,
0.1464548409,
0.0038935989,
-0.3008679748,
-0.2765823603,
-0.0266715325
] |
https://github.com/huggingface/datasets/issues/798 | Cannot load TREC dataset: ConnectionError | Hi, the same issue here, could you tell me how to download it through datasets? thanks | ## Problem
I cannot load "trec" dataset, it results with ConnectionError as shown below. I've tried on both Google Colab and locally.
* `requests.head('http://cogcomp.org/Data/QA/QC/train_5500.label')` returns <Response [302]>.
* `requests.head('http://cogcomp.org/Data/QA/QC/train_5500.label', allow_redirects=True)` raises `requests.exceptions.TooManyRedirects: Exceeded 30 redirects.`
* Opening `http://cogcomp.org/Data/QA/QC/train_5500.label' in a browser works, but opens a different address
* Increasing max_redirects to 100 doesn't help
Also, while debugging I've seen that requesting 'https://storage.googleapis.com/huggingface-nlp/cache/datasets/trec/default/1.1.0/dataset_info.json' returns <Response [404]> before, but it doesn't raise any errors. Not sure if that's relevant.
* datasets.__version__ == '1.1.2'
* requests.__version__ == '2.24.0'
## Error trace
```
>>> import datasets
>>> datasets.__version__
'1.1.2'
>>> dataset = load_dataset("trec", split="train")
Using custom data configuration default
Downloading and preparing dataset trec/default (download: 350.79 KiB, generated: 403.39 KiB, post-processed: Unknown size, total: 754.18 KiB) to /home/przemyslaw/.cache/huggingface/datasets/trec/default/1.1.0/ca4248481ad244f235f4cf277186cad2ee8769f975119a2bbfc41b8932b88bd7...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/builder.py", line 531, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/home/przemyslaw/.cache/huggingface/modules/datasets_modules/datasets/trec/ca4248481ad244f235f4cf277186cad2ee8769f975119a2bbfc41b8932b88bd7/trec.py", line 140, in _split_generators
dl_files = dl_manager.download_and_extract(_URLs)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 254, in download_and_extract
return self.extract(self.download(url_or_urls))
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 179, in download
num_proc=download_config.num_proc,
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in map_nested
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in <listcomp>
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 163, in _single_map_nested
return function(data_struct)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 308, in cached_path
use_etag=download_config.use_etag,
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 475, in get_from_cache
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach http://cogcomp.org/Data/QA/QC/train_5500.label
```
I would appreciate some suggestions here. | 16 | Cannot load TREC dataset: ConnectionError
## Problem
I cannot load "trec" dataset, it results with ConnectionError as shown below. I've tried on both Google Colab and locally.
* `requests.head('http://cogcomp.org/Data/QA/QC/train_5500.label')` returns <Response [302]>.
* `requests.head('http://cogcomp.org/Data/QA/QC/train_5500.label', allow_redirects=True)` raises `requests.exceptions.TooManyRedirects: Exceeded 30 redirects.`
* Opening `http://cogcomp.org/Data/QA/QC/train_5500.label' in a browser works, but opens a different address
* Increasing max_redirects to 100 doesn't help
Also, while debugging I've seen that requesting 'https://storage.googleapis.com/huggingface-nlp/cache/datasets/trec/default/1.1.0/dataset_info.json' returns <Response [404]> before, but it doesn't raise any errors. Not sure if that's relevant.
* datasets.__version__ == '1.1.2'
* requests.__version__ == '2.24.0'
## Error trace
```
>>> import datasets
>>> datasets.__version__
'1.1.2'
>>> dataset = load_dataset("trec", split="train")
Using custom data configuration default
Downloading and preparing dataset trec/default (download: 350.79 KiB, generated: 403.39 KiB, post-processed: Unknown size, total: 754.18 KiB) to /home/przemyslaw/.cache/huggingface/datasets/trec/default/1.1.0/ca4248481ad244f235f4cf277186cad2ee8769f975119a2bbfc41b8932b88bd7...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/builder.py", line 531, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/home/przemyslaw/.cache/huggingface/modules/datasets_modules/datasets/trec/ca4248481ad244f235f4cf277186cad2ee8769f975119a2bbfc41b8932b88bd7/trec.py", line 140, in _split_generators
dl_files = dl_manager.download_and_extract(_URLs)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 254, in download_and_extract
return self.extract(self.download(url_or_urls))
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 179, in download
num_proc=download_config.num_proc,
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in map_nested
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in <listcomp>
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 163, in _single_map_nested
return function(data_struct)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 308, in cached_path
use_etag=download_config.use_etag,
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 475, in get_from_cache
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach http://cogcomp.org/Data/QA/QC/train_5500.label
```
I would appreciate some suggestions here.
Hi, the same issue here, could you tell me how to download it through datasets? thanks | [
-0.1691725254,
0.0168357641,
0.0626650527,
0.3633996546,
0.2918770611,
-0.1796785593,
0.2199586779,
-0.0434449129,
-0.1838139296,
0.0629581809,
-0.3238996863,
0.1360176504,
0.0722287893,
0.1577587128,
-0.0579133779,
-0.0945275053,
-0.1901097149,
-0.2000558078,
-0.0688834339,
0.2535367608,
-0.1328545213,
0.4753990471,
-0.2073135823,
0.2046912462,
-0.4112500846,
0.0120672062,
0.2174304724,
0.4217191041,
-0.2242176235,
-0.6152896881,
0.4672034681,
0.0918212086,
0.2583207488,
0.6301939487,
-0.0001212188,
0.0438779593,
0.3747946322,
-0.0809115916,
-0.3682200313,
-0.5027561784,
-0.5078123808,
-0.0790520087,
0.2648389935,
0.2292862833,
-0.3196889162,
0.4285565615,
0.0791531056,
-0.3250601292,
0.3382041156,
0.6332944036,
0.0820837319,
-0.0768374354,
0.0945121199,
-0.1623593867,
0.3016188741,
-0.1488977671,
-0.0706103295,
0.4869536757,
0.215513736,
-0.0386379287,
0.0549374856,
-0.0216431804,
-0.0271046273,
-0.0117050372,
0.1798273325,
-0.0742921606,
-0.1101850495,
-0.434096992,
0.4241300523,
0.352265209,
0.64021492,
-0.1733741462,
-0.227268815,
0.1454132497,
-0.0812641978,
-0.4302356839,
0.3003185391,
0.3217076957,
-0.1221239865,
0.1870262772,
-0.4078291059,
-0.2597643435,
-0.3686290979,
0.0043726135,
-0.4164091945,
0.1270345598,
-0.2663987279,
0.1315304339,
0.2910036445,
0.015294861,
0.3388897181,
0.2237245739,
-0.4470450878,
-0.0075070709,
-0.6929897666,
0.1829682738,
-0.1482105851,
-0.0363467522,
0.0934942961,
0.3697323799,
0.3174380362,
0.0368968956,
-0.2863056958,
0.40656811,
0.0869920552,
0.3421802521,
0.0432390012,
0.1872975975,
0.3242339194,
0.1837181747,
-0.013221249,
-0.0930790305,
-0.1950833201,
-0.2066058964,
-0.1330895275,
0.1809047759,
0.0973417461,
-0.2702093124,
-0.3912981153,
0.1465581059,
-0.4139408171,
0.0091934986,
0.1225643307,
0.454131186,
-0.2755915225,
-0.0242433585,
-0.0385251679,
0.2208219022,
-0.0965708867,
-0.1626554728,
-0.0660127029,
0.2261448205,
-0.2326459885,
0.1317700744,
0.3381001353,
-0.1813089997,
0.1413072497,
-0.1649177969,
-0.0668444932,
-0.2156006098,
-0.0086506121,
-0.2676546872,
-0.1067192852,
0.4307491779,
0.0776933134,
0.0562675595,
0.1243787855,
-0.3719577491,
-0.0352642909,
0.0133795384,
-0.5714358687,
-0.3518610001,
0.062116228,
0.0705779195,
-0.1204288453,
0.0219032019,
-0.3443547189,
0.0012690215,
-0.004354082,
-0.1800429374,
-0.1748715043,
-0.2704451382,
-0.3334645629,
-0.3149197102,
0.3458769023,
0.4514563084,
-0.5566043258,
-0.0270751864,
0.0968401432,
0.0743102729,
0.1674600393,
0.3314803541,
-0.1907549202,
-0.0951526091,
-0.2181226611,
-0.1000666171,
0.0956015661,
-0.3112878799,
-0.2985932231,
-0.0033583194,
-0.0194072947,
-0.0483565629,
-0.2369236797,
-0.1034136489,
0.0137750357,
0.0616032667,
0.6465605497,
0.2157904357,
-0.1283170134,
-0.1761938035,
-0.1502933204,
-0.2762143612,
-0.2542471588,
0.0869561583,
0.1214701235,
0.0059733726,
0.2363968641,
-0.476413697,
0.0702287108,
0.0418811738,
-0.0073058046,
0.3011593223,
0.3711309731,
-0.0534161143,
-0.1965112537,
0.2541641891,
-0.4512375891,
0.3701871037,
-0.0718612969,
0.2864062488,
-0.253454566,
0.1539354324,
-0.2667069733,
0.1449397355,
-0.0538808033,
-0.133841753,
-0.0591718741,
0.0979989246,
0.2250684649,
0.240124926,
-0.119985655,
0.5677844286,
0.1352923512,
0.1387479007,
-0.2335022539,
0.2586082816,
0.0218196679,
0.068807736,
0.1329161525,
0.010632515,
0.2142104954,
-0.217055738,
-0.0641217604,
0.318633914,
0.2173625827,
0.0417963043,
0.0574614964,
0.1577194333,
0.2542845011,
-0.3891920447,
-0.0997395068,
0.0472880974,
-0.0086245015,
-0.0252698138,
-0.0405541472,
0.2425726056,
0.0648596734,
0.4205705225,
0.1400239468,
0.0894203708,
0.3215748668,
0.0298587531,
-0.0160042979,
0.1794742644,
0.1751998663,
0.2178916931,
0.0230622366,
-0.0838503242,
-0.3602315187,
0.1493654102,
-0.1642056406,
0.0495586395,
-0.1129639074,
0.1247551665,
-0.1547976732,
-0.0220804848,
0.0700038075,
0.3708667755,
0.220127359,
0.0490481257,
-0.2005207539,
0.1874100566,
0.0605275184,
-0.2058151662,
-0.0445010215,
0.1096538156,
0.3646667302,
0.265583545,
0.4266873598,
-0.0487633422,
-0.0951086134,
-0.3787637949,
-0.0358974673,
0.2614512146,
-0.27078861,
0.4008775949,
-0.2434713542,
-0.3584274352,
0.0938046947,
-0.3161961138,
-0.3449478149,
-0.2649384141,
-0.1177100763,
0.4375140965,
0.1163086742,
0.0623286888,
-0.2111104131,
0.3716549873,
0.0254304782,
-0.5300382972,
-0.0236887038,
-0.2573985755,
-0.3198367953,
0.0159244165,
0.3333908021,
-0.2213880569,
0.069861643,
-0.254704237,
0.0297966897,
-0.1255461723,
-0.2030433118,
0.1615647674,
0.1523071676,
0.3011630476,
-0.0669808835,
0.2267765701,
-0.2425041199,
0.0940603018,
0.2751002312,
0.0679613128,
0.1023402885,
0.0489342809,
-0.0400865525,
0.0441083834,
0.024912104,
-0.2555713654,
-0.4800464511,
-0.3582802415,
0.1784225702,
0.0196136162,
0.3458849192,
0.2960090637,
0.0382491834,
-0.0866621584,
0.0641805306,
-0.07696376,
-0.1533749998,
-0.3865545392,
0.1724121124,
-0.2786796689,
-0.2431340814,
0.2509685755,
0.0747396201,
0.384760201,
0.0763949156,
-0.6094398499,
-0.1564109772,
-0.1264607608,
0.1048997119,
0.0258260388,
-0.28259179,
0.3334425092,
-0.088208288,
-0.0051479153,
0.2160646915,
-0.4404525757,
0.0323338769,
0.3356821239,
0.3913239837,
0.2737469077,
0.3707467616,
-0.1709446609,
0.4239256978,
0.2026098073,
0.0485433601,
0.3296658695,
-0.1572239101,
0.3341205716,
-0.089217782,
-0.2969241738,
-0.2172840238,
-0.2103475034,
-0.3245610595,
0.1617722809,
0.2636646926,
-0.0344152674,
-0.4967105389,
0.1173625141,
-0.080140315,
-0.327688098,
0.055648461,
0.1679749191,
0.1110877544,
0.0038788095,
-0.0378259942,
0.2212287039,
-0.2119385153,
-0.3172353506,
0.3629993498,
0.0803812817,
0.072549209,
-0.1304667294,
-0.0161196999,
-0.8267486691,
0.3045908213,
0.0043533444,
0.3990238905,
-0.3158362508,
0.0614300817,
0.0791890249,
-0.1068058014,
0.1192458272,
-0.3070541024,
-0.0818269402,
0.3087827563,
0.0600855798,
-0.2109731585,
-0.2092312276,
0.1269947886,
0.1855375171,
0.432766825,
0.36028409,
0.0136945993,
0.0053407289,
0.0741607919,
0.1480064541,
-0.0896287188,
0.023082871,
-0.3215018511,
-0.48048985,
-0.2376380861,
-0.0714278296,
-0.0627245381,
0.2982814312,
0.1305001974,
0.0849200413,
0.2911791503,
-0.2723358274,
0.208102107,
0.0922953859,
0.0188675486,
0.1057648659,
0.1027645245,
0.09913899,
0.0624908805,
0.3354114294,
0.9395037293,
0.1009223759,
-0.1204157472,
0.3544931114,
0.3962076902,
0.0735517368,
0.2287352383,
-0.0518338978,
0.1031669825,
-0.0455486067,
0.131072402,
0.0472778827,
0.3104486763,
-0.2412311584,
-0.0123401545,
-0.8446326852,
-0.1633533239,
0.3940390646,
-0.1157397851,
-0.0963780209,
-0.0885316506,
0.1918693185,
-0.1223825514,
0.0664270967,
-0.0798335075,
0.938986063,
-0.2157413363,
-0.1139467955,
0.0964189842,
-0.1470548958,
0.4845153093,
-0.5781702399,
0.478051722,
-0.3271453381,
-0.1596904546,
-0.2196510732,
-0.2689325213,
-0.1141614616,
-0.1754054427,
-0.0028666705,
0.4294500649,
-0.1375027299,
0.1797112823,
0.4103511572,
0.0312494636,
0.1668052673,
0.0313801914,
-0.156322673,
0.0742265806,
-0.0684729964,
0.379514575,
-0.0753372237,
-0.0879743844,
-0.2208289057,
-0.0232577994,
-0.3305443823,
0.2558437586,
-0.7046297789,
0.0951706097,
0.0003455896,
-0.202798903,
0.138729021,
0.1491006613,
0.2019767761,
0.1502191722,
-0.3103255033,
0.2650387883,
-0.0473068692,
-0.1506278813,
-0.0097021982,
-0.0158758424,
0.0106165782,
-0.0578824952,
-0.0800180361,
0.4451652467,
-0.0131923966,
-0.401688695,
0.0497703403,
0.0414259806,
0.015600862,
-0.0672005117,
0.1310199499,
-0.0913957357,
0.0334718972,
0.0690084323,
0.0271309335,
0.1205179691,
0.1539874375,
-0.0196321234,
0.2282922119,
-0.2593365908,
-0.0157156251,
0.3636076748,
-0.0135960672,
-0.0319508538,
0.1860429198,
0.4898224771,
-0.0020254031,
-0.0705310926,
-0.1395796835,
0.2126884311,
-0.3972612619,
0.1164027303,
-0.0432343967,
0.1496534497,
0.0333797485,
0.347281456,
0.3143410683,
0.0317262746,
0.3876162171,
-0.5564649701,
-0.2944401205,
0.0544477478,
-0.1690245122,
0.1841664612,
0.1040882319,
-0.1632936746,
-0.2276391685,
-0.0018325448,
-0.1922601163,
0.0723113716,
-0.3587888479,
-0.1759030521,
0.1726369858,
-0.1161859408,
0.5185426474,
-0.136828348,
-0.0479449295,
-0.0184053555,
-0.3581273556,
-0.0564917885,
-0.0145605803,
0.2017893493,
0.1712416112,
-0.4430921674,
-0.1755432636,
-0.0775279552,
0.0485686883,
0.0543947257,
0.1847440004,
0.1984398812,
-0.1803074628,
-0.3293848038,
-0.4175058007,
0.0081549184,
-0.3177672625,
0.3675782979,
0.2319297493,
0.460667491,
0.2174212933,
0.243566215,
-0.0169108622,
-0.1336590648,
-0.1176588386,
0.2129968852,
-0.0535100773,
-0.2645332217,
0.1965233088,
-0.4327825606,
0.0601591319,
-0.2405549586,
0.2324357629,
0.0786647424,
-0.2138749659,
0.1428771317,
0.1881433129,
0.0525172651,
-0.0704043359,
-0.0328338668,
0.1413883418,
-0.0272034146,
0.0310487449,
0.2250308096,
0.3868734241,
-0.1784223914,
0.0799677819,
0.245906204,
0.5618063807,
0.1223890558,
0.1421125531,
-0.1236974448,
-0.123705551,
0.1257033348,
0.409453094,
0.0089926962,
0.0327678621,
0.0211197343,
-0.3650708497,
-0.0349255763,
-0.0059555313,
0.0183140282,
0.0332746729,
-0.5767638683,
0.1064380854,
0.141176492,
-0.1795785129,
-0.1717036664,
-0.089422524,
0.4524858594,
-0.2100298703,
-0.0174036361,
-0.3908973932,
0.1880070418,
-0.0242396723,
-0.0397138931,
0.1182920188,
-0.4415912926,
-0.1305990517,
0.2427268773,
0.0069916686,
-0.1593959779,
-0.0046675205,
0.0859767795,
-0.238829419,
-0.3000752032,
-0.0755935013,
0.3069648445,
-0.0426476113,
-0.0936476886,
0.4497713149,
0.0273360908,
-0.1706610024,
0.1557036191,
0.0153893996,
0.6272588968,
0.2654241323,
0.182375282,
0.108768478,
-0.1266421676,
0.0071308464,
0.1697154939,
0.0883648396,
0.1900409609,
-0.3322165608,
0.1685409993,
0.0786483362,
0.0258462764,
0.2831474841,
-0.0928126574,
0.312107563,
0.0294574462,
0.0179791972,
-0.1460421383,
0.1118160635,
-0.1592100412,
0.0422840975,
-0.3145129383,
0.1783578992,
0.3862513304,
-0.1402853429,
0.2693824172,
0.1543029845,
0.0086424164,
-0.1780066192,
0.4599912167,
0.3405542374,
0.2323291302,
-0.3487296104,
-0.1899101585,
-0.2473534197,
-0.005519297,
-0.1115458682,
0.2073096931,
-0.0416926593,
0.1502740383,
-0.2046354115,
0.3032638133,
-0.1217941642,
0.3058778346,
0.0848773345,
0.0063984524,
-0.2651686072,
0.0663422048,
0.0090941768,
0.0498307049,
-0.153773725,
-0.2624773383,
0.0815576017,
-0.3734007776,
-0.0794992074,
-0.1199193299,
0.151141569,
0.0426995233,
-0.2643913627,
0.2991390228,
0.2458395362,
0.7336869836,
0.2630756199,
-0.0093747862,
-0.1382427812,
-0.3809230924,
-0.0225654952,
0.0093688713,
0.3737496138,
0.2838226557,
0.08536686,
-0.2404978424,
-0.3851114511,
0.4988895655,
0.0652472377,
0.2366226614,
0.165057987,
-0.0864073709,
-0.0182053447,
0.0852972567,
-0.0759950653,
-0.1094401479,
0.1904141605,
0.1407319009,
-0.1363413632,
-0.3142248988,
0.5675711632,
-0.3454419971,
0.1128249913,
-0.1528614759,
0.2606034875,
0.3078807294,
0.0205606911,
-0.2705270946,
0.1239755899,
0.2145231366,
-0.1328070015,
-0.4126020074,
0.3355355561,
-0.2914165854,
-0.064807862,
-0.061146047,
0.1464548409,
0.0038935989,
-0.3008679748,
-0.2765823603,
-0.0266715325
] |
https://github.com/huggingface/datasets/issues/798 | Cannot load TREC dataset: ConnectionError | Actually it's already fixed on the master branch since #740
I'll do the 1.1.3 release soon | ## Problem
I cannot load "trec" dataset, it results with ConnectionError as shown below. I've tried on both Google Colab and locally.
* `requests.head('http://cogcomp.org/Data/QA/QC/train_5500.label')` returns <Response [302]>.
* `requests.head('http://cogcomp.org/Data/QA/QC/train_5500.label', allow_redirects=True)` raises `requests.exceptions.TooManyRedirects: Exceeded 30 redirects.`
* Opening `http://cogcomp.org/Data/QA/QC/train_5500.label' in a browser works, but opens a different address
* Increasing max_redirects to 100 doesn't help
Also, while debugging I've seen that requesting 'https://storage.googleapis.com/huggingface-nlp/cache/datasets/trec/default/1.1.0/dataset_info.json' returns <Response [404]> before, but it doesn't raise any errors. Not sure if that's relevant.
* datasets.__version__ == '1.1.2'
* requests.__version__ == '2.24.0'
## Error trace
```
>>> import datasets
>>> datasets.__version__
'1.1.2'
>>> dataset = load_dataset("trec", split="train")
Using custom data configuration default
Downloading and preparing dataset trec/default (download: 350.79 KiB, generated: 403.39 KiB, post-processed: Unknown size, total: 754.18 KiB) to /home/przemyslaw/.cache/huggingface/datasets/trec/default/1.1.0/ca4248481ad244f235f4cf277186cad2ee8769f975119a2bbfc41b8932b88bd7...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/builder.py", line 531, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/home/przemyslaw/.cache/huggingface/modules/datasets_modules/datasets/trec/ca4248481ad244f235f4cf277186cad2ee8769f975119a2bbfc41b8932b88bd7/trec.py", line 140, in _split_generators
dl_files = dl_manager.download_and_extract(_URLs)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 254, in download_and_extract
return self.extract(self.download(url_or_urls))
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 179, in download
num_proc=download_config.num_proc,
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in map_nested
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in <listcomp>
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 163, in _single_map_nested
return function(data_struct)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 308, in cached_path
use_etag=download_config.use_etag,
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 475, in get_from_cache
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach http://cogcomp.org/Data/QA/QC/train_5500.label
```
I would appreciate some suggestions here. | 16 | Cannot load TREC dataset: ConnectionError
## Problem
I cannot load "trec" dataset, it results with ConnectionError as shown below. I've tried on both Google Colab and locally.
* `requests.head('http://cogcomp.org/Data/QA/QC/train_5500.label')` returns <Response [302]>.
* `requests.head('http://cogcomp.org/Data/QA/QC/train_5500.label', allow_redirects=True)` raises `requests.exceptions.TooManyRedirects: Exceeded 30 redirects.`
* Opening `http://cogcomp.org/Data/QA/QC/train_5500.label' in a browser works, but opens a different address
* Increasing max_redirects to 100 doesn't help
Also, while debugging I've seen that requesting 'https://storage.googleapis.com/huggingface-nlp/cache/datasets/trec/default/1.1.0/dataset_info.json' returns <Response [404]> before, but it doesn't raise any errors. Not sure if that's relevant.
* datasets.__version__ == '1.1.2'
* requests.__version__ == '2.24.0'
## Error trace
```
>>> import datasets
>>> datasets.__version__
'1.1.2'
>>> dataset = load_dataset("trec", split="train")
Using custom data configuration default
Downloading and preparing dataset trec/default (download: 350.79 KiB, generated: 403.39 KiB, post-processed: Unknown size, total: 754.18 KiB) to /home/przemyslaw/.cache/huggingface/datasets/trec/default/1.1.0/ca4248481ad244f235f4cf277186cad2ee8769f975119a2bbfc41b8932b88bd7...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/builder.py", line 531, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/home/przemyslaw/.cache/huggingface/modules/datasets_modules/datasets/trec/ca4248481ad244f235f4cf277186cad2ee8769f975119a2bbfc41b8932b88bd7/trec.py", line 140, in _split_generators
dl_files = dl_manager.download_and_extract(_URLs)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 254, in download_and_extract
return self.extract(self.download(url_or_urls))
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 179, in download
num_proc=download_config.num_proc,
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in map_nested
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in <listcomp>
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 163, in _single_map_nested
return function(data_struct)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 308, in cached_path
use_etag=download_config.use_etag,
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 475, in get_from_cache
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach http://cogcomp.org/Data/QA/QC/train_5500.label
```
I would appreciate some suggestions here.
Actually it's already fixed on the master branch since #740
I'll do the 1.1.3 release soon | [
-0.1691725254,
0.0168357641,
0.0626650527,
0.3633996546,
0.2918770611,
-0.1796785593,
0.2199586779,
-0.0434449129,
-0.1838139296,
0.0629581809,
-0.3238996863,
0.1360176504,
0.0722287893,
0.1577587128,
-0.0579133779,
-0.0945275053,
-0.1901097149,
-0.2000558078,
-0.0688834339,
0.2535367608,
-0.1328545213,
0.4753990471,
-0.2073135823,
0.2046912462,
-0.4112500846,
0.0120672062,
0.2174304724,
0.4217191041,
-0.2242176235,
-0.6152896881,
0.4672034681,
0.0918212086,
0.2583207488,
0.6301939487,
-0.0001212188,
0.0438779593,
0.3747946322,
-0.0809115916,
-0.3682200313,
-0.5027561784,
-0.5078123808,
-0.0790520087,
0.2648389935,
0.2292862833,
-0.3196889162,
0.4285565615,
0.0791531056,
-0.3250601292,
0.3382041156,
0.6332944036,
0.0820837319,
-0.0768374354,
0.0945121199,
-0.1623593867,
0.3016188741,
-0.1488977671,
-0.0706103295,
0.4869536757,
0.215513736,
-0.0386379287,
0.0549374856,
-0.0216431804,
-0.0271046273,
-0.0117050372,
0.1798273325,
-0.0742921606,
-0.1101850495,
-0.434096992,
0.4241300523,
0.352265209,
0.64021492,
-0.1733741462,
-0.227268815,
0.1454132497,
-0.0812641978,
-0.4302356839,
0.3003185391,
0.3217076957,
-0.1221239865,
0.1870262772,
-0.4078291059,
-0.2597643435,
-0.3686290979,
0.0043726135,
-0.4164091945,
0.1270345598,
-0.2663987279,
0.1315304339,
0.2910036445,
0.015294861,
0.3388897181,
0.2237245739,
-0.4470450878,
-0.0075070709,
-0.6929897666,
0.1829682738,
-0.1482105851,
-0.0363467522,
0.0934942961,
0.3697323799,
0.3174380362,
0.0368968956,
-0.2863056958,
0.40656811,
0.0869920552,
0.3421802521,
0.0432390012,
0.1872975975,
0.3242339194,
0.1837181747,
-0.013221249,
-0.0930790305,
-0.1950833201,
-0.2066058964,
-0.1330895275,
0.1809047759,
0.0973417461,
-0.2702093124,
-0.3912981153,
0.1465581059,
-0.4139408171,
0.0091934986,
0.1225643307,
0.454131186,
-0.2755915225,
-0.0242433585,
-0.0385251679,
0.2208219022,
-0.0965708867,
-0.1626554728,
-0.0660127029,
0.2261448205,
-0.2326459885,
0.1317700744,
0.3381001353,
-0.1813089997,
0.1413072497,
-0.1649177969,
-0.0668444932,
-0.2156006098,
-0.0086506121,
-0.2676546872,
-0.1067192852,
0.4307491779,
0.0776933134,
0.0562675595,
0.1243787855,
-0.3719577491,
-0.0352642909,
0.0133795384,
-0.5714358687,
-0.3518610001,
0.062116228,
0.0705779195,
-0.1204288453,
0.0219032019,
-0.3443547189,
0.0012690215,
-0.004354082,
-0.1800429374,
-0.1748715043,
-0.2704451382,
-0.3334645629,
-0.3149197102,
0.3458769023,
0.4514563084,
-0.5566043258,
-0.0270751864,
0.0968401432,
0.0743102729,
0.1674600393,
0.3314803541,
-0.1907549202,
-0.0951526091,
-0.2181226611,
-0.1000666171,
0.0956015661,
-0.3112878799,
-0.2985932231,
-0.0033583194,
-0.0194072947,
-0.0483565629,
-0.2369236797,
-0.1034136489,
0.0137750357,
0.0616032667,
0.6465605497,
0.2157904357,
-0.1283170134,
-0.1761938035,
-0.1502933204,
-0.2762143612,
-0.2542471588,
0.0869561583,
0.1214701235,
0.0059733726,
0.2363968641,
-0.476413697,
0.0702287108,
0.0418811738,
-0.0073058046,
0.3011593223,
0.3711309731,
-0.0534161143,
-0.1965112537,
0.2541641891,
-0.4512375891,
0.3701871037,
-0.0718612969,
0.2864062488,
-0.253454566,
0.1539354324,
-0.2667069733,
0.1449397355,
-0.0538808033,
-0.133841753,
-0.0591718741,
0.0979989246,
0.2250684649,
0.240124926,
-0.119985655,
0.5677844286,
0.1352923512,
0.1387479007,
-0.2335022539,
0.2586082816,
0.0218196679,
0.068807736,
0.1329161525,
0.010632515,
0.2142104954,
-0.217055738,
-0.0641217604,
0.318633914,
0.2173625827,
0.0417963043,
0.0574614964,
0.1577194333,
0.2542845011,
-0.3891920447,
-0.0997395068,
0.0472880974,
-0.0086245015,
-0.0252698138,
-0.0405541472,
0.2425726056,
0.0648596734,
0.4205705225,
0.1400239468,
0.0894203708,
0.3215748668,
0.0298587531,
-0.0160042979,
0.1794742644,
0.1751998663,
0.2178916931,
0.0230622366,
-0.0838503242,
-0.3602315187,
0.1493654102,
-0.1642056406,
0.0495586395,
-0.1129639074,
0.1247551665,
-0.1547976732,
-0.0220804848,
0.0700038075,
0.3708667755,
0.220127359,
0.0490481257,
-0.2005207539,
0.1874100566,
0.0605275184,
-0.2058151662,
-0.0445010215,
0.1096538156,
0.3646667302,
0.265583545,
0.4266873598,
-0.0487633422,
-0.0951086134,
-0.3787637949,
-0.0358974673,
0.2614512146,
-0.27078861,
0.4008775949,
-0.2434713542,
-0.3584274352,
0.0938046947,
-0.3161961138,
-0.3449478149,
-0.2649384141,
-0.1177100763,
0.4375140965,
0.1163086742,
0.0623286888,
-0.2111104131,
0.3716549873,
0.0254304782,
-0.5300382972,
-0.0236887038,
-0.2573985755,
-0.3198367953,
0.0159244165,
0.3333908021,
-0.2213880569,
0.069861643,
-0.254704237,
0.0297966897,
-0.1255461723,
-0.2030433118,
0.1615647674,
0.1523071676,
0.3011630476,
-0.0669808835,
0.2267765701,
-0.2425041199,
0.0940603018,
0.2751002312,
0.0679613128,
0.1023402885,
0.0489342809,
-0.0400865525,
0.0441083834,
0.024912104,
-0.2555713654,
-0.4800464511,
-0.3582802415,
0.1784225702,
0.0196136162,
0.3458849192,
0.2960090637,
0.0382491834,
-0.0866621584,
0.0641805306,
-0.07696376,
-0.1533749998,
-0.3865545392,
0.1724121124,
-0.2786796689,
-0.2431340814,
0.2509685755,
0.0747396201,
0.384760201,
0.0763949156,
-0.6094398499,
-0.1564109772,
-0.1264607608,
0.1048997119,
0.0258260388,
-0.28259179,
0.3334425092,
-0.088208288,
-0.0051479153,
0.2160646915,
-0.4404525757,
0.0323338769,
0.3356821239,
0.3913239837,
0.2737469077,
0.3707467616,
-0.1709446609,
0.4239256978,
0.2026098073,
0.0485433601,
0.3296658695,
-0.1572239101,
0.3341205716,
-0.089217782,
-0.2969241738,
-0.2172840238,
-0.2103475034,
-0.3245610595,
0.1617722809,
0.2636646926,
-0.0344152674,
-0.4967105389,
0.1173625141,
-0.080140315,
-0.327688098,
0.055648461,
0.1679749191,
0.1110877544,
0.0038788095,
-0.0378259942,
0.2212287039,
-0.2119385153,
-0.3172353506,
0.3629993498,
0.0803812817,
0.072549209,
-0.1304667294,
-0.0161196999,
-0.8267486691,
0.3045908213,
0.0043533444,
0.3990238905,
-0.3158362508,
0.0614300817,
0.0791890249,
-0.1068058014,
0.1192458272,
-0.3070541024,
-0.0818269402,
0.3087827563,
0.0600855798,
-0.2109731585,
-0.2092312276,
0.1269947886,
0.1855375171,
0.432766825,
0.36028409,
0.0136945993,
0.0053407289,
0.0741607919,
0.1480064541,
-0.0896287188,
0.023082871,
-0.3215018511,
-0.48048985,
-0.2376380861,
-0.0714278296,
-0.0627245381,
0.2982814312,
0.1305001974,
0.0849200413,
0.2911791503,
-0.2723358274,
0.208102107,
0.0922953859,
0.0188675486,
0.1057648659,
0.1027645245,
0.09913899,
0.0624908805,
0.3354114294,
0.9395037293,
0.1009223759,
-0.1204157472,
0.3544931114,
0.3962076902,
0.0735517368,
0.2287352383,
-0.0518338978,
0.1031669825,
-0.0455486067,
0.131072402,
0.0472778827,
0.3104486763,
-0.2412311584,
-0.0123401545,
-0.8446326852,
-0.1633533239,
0.3940390646,
-0.1157397851,
-0.0963780209,
-0.0885316506,
0.1918693185,
-0.1223825514,
0.0664270967,
-0.0798335075,
0.938986063,
-0.2157413363,
-0.1139467955,
0.0964189842,
-0.1470548958,
0.4845153093,
-0.5781702399,
0.478051722,
-0.3271453381,
-0.1596904546,
-0.2196510732,
-0.2689325213,
-0.1141614616,
-0.1754054427,
-0.0028666705,
0.4294500649,
-0.1375027299,
0.1797112823,
0.4103511572,
0.0312494636,
0.1668052673,
0.0313801914,
-0.156322673,
0.0742265806,
-0.0684729964,
0.379514575,
-0.0753372237,
-0.0879743844,
-0.2208289057,
-0.0232577994,
-0.3305443823,
0.2558437586,
-0.7046297789,
0.0951706097,
0.0003455896,
-0.202798903,
0.138729021,
0.1491006613,
0.2019767761,
0.1502191722,
-0.3103255033,
0.2650387883,
-0.0473068692,
-0.1506278813,
-0.0097021982,
-0.0158758424,
0.0106165782,
-0.0578824952,
-0.0800180361,
0.4451652467,
-0.0131923966,
-0.401688695,
0.0497703403,
0.0414259806,
0.015600862,
-0.0672005117,
0.1310199499,
-0.0913957357,
0.0334718972,
0.0690084323,
0.0271309335,
0.1205179691,
0.1539874375,
-0.0196321234,
0.2282922119,
-0.2593365908,
-0.0157156251,
0.3636076748,
-0.0135960672,
-0.0319508538,
0.1860429198,
0.4898224771,
-0.0020254031,
-0.0705310926,
-0.1395796835,
0.2126884311,
-0.3972612619,
0.1164027303,
-0.0432343967,
0.1496534497,
0.0333797485,
0.347281456,
0.3143410683,
0.0317262746,
0.3876162171,
-0.5564649701,
-0.2944401205,
0.0544477478,
-0.1690245122,
0.1841664612,
0.1040882319,
-0.1632936746,
-0.2276391685,
-0.0018325448,
-0.1922601163,
0.0723113716,
-0.3587888479,
-0.1759030521,
0.1726369858,
-0.1161859408,
0.5185426474,
-0.136828348,
-0.0479449295,
-0.0184053555,
-0.3581273556,
-0.0564917885,
-0.0145605803,
0.2017893493,
0.1712416112,
-0.4430921674,
-0.1755432636,
-0.0775279552,
0.0485686883,
0.0543947257,
0.1847440004,
0.1984398812,
-0.1803074628,
-0.3293848038,
-0.4175058007,
0.0081549184,
-0.3177672625,
0.3675782979,
0.2319297493,
0.460667491,
0.2174212933,
0.243566215,
-0.0169108622,
-0.1336590648,
-0.1176588386,
0.2129968852,
-0.0535100773,
-0.2645332217,
0.1965233088,
-0.4327825606,
0.0601591319,
-0.2405549586,
0.2324357629,
0.0786647424,
-0.2138749659,
0.1428771317,
0.1881433129,
0.0525172651,
-0.0704043359,
-0.0328338668,
0.1413883418,
-0.0272034146,
0.0310487449,
0.2250308096,
0.3868734241,
-0.1784223914,
0.0799677819,
0.245906204,
0.5618063807,
0.1223890558,
0.1421125531,
-0.1236974448,
-0.123705551,
0.1257033348,
0.409453094,
0.0089926962,
0.0327678621,
0.0211197343,
-0.3650708497,
-0.0349255763,
-0.0059555313,
0.0183140282,
0.0332746729,
-0.5767638683,
0.1064380854,
0.141176492,
-0.1795785129,
-0.1717036664,
-0.089422524,
0.4524858594,
-0.2100298703,
-0.0174036361,
-0.3908973932,
0.1880070418,
-0.0242396723,
-0.0397138931,
0.1182920188,
-0.4415912926,
-0.1305990517,
0.2427268773,
0.0069916686,
-0.1593959779,
-0.0046675205,
0.0859767795,
-0.238829419,
-0.3000752032,
-0.0755935013,
0.3069648445,
-0.0426476113,
-0.0936476886,
0.4497713149,
0.0273360908,
-0.1706610024,
0.1557036191,
0.0153893996,
0.6272588968,
0.2654241323,
0.182375282,
0.108768478,
-0.1266421676,
0.0071308464,
0.1697154939,
0.0883648396,
0.1900409609,
-0.3322165608,
0.1685409993,
0.0786483362,
0.0258462764,
0.2831474841,
-0.0928126574,
0.312107563,
0.0294574462,
0.0179791972,
-0.1460421383,
0.1118160635,
-0.1592100412,
0.0422840975,
-0.3145129383,
0.1783578992,
0.3862513304,
-0.1402853429,
0.2693824172,
0.1543029845,
0.0086424164,
-0.1780066192,
0.4599912167,
0.3405542374,
0.2323291302,
-0.3487296104,
-0.1899101585,
-0.2473534197,
-0.005519297,
-0.1115458682,
0.2073096931,
-0.0416926593,
0.1502740383,
-0.2046354115,
0.3032638133,
-0.1217941642,
0.3058778346,
0.0848773345,
0.0063984524,
-0.2651686072,
0.0663422048,
0.0090941768,
0.0498307049,
-0.153773725,
-0.2624773383,
0.0815576017,
-0.3734007776,
-0.0794992074,
-0.1199193299,
0.151141569,
0.0426995233,
-0.2643913627,
0.2991390228,
0.2458395362,
0.7336869836,
0.2630756199,
-0.0093747862,
-0.1382427812,
-0.3809230924,
-0.0225654952,
0.0093688713,
0.3737496138,
0.2838226557,
0.08536686,
-0.2404978424,
-0.3851114511,
0.4988895655,
0.0652472377,
0.2366226614,
0.165057987,
-0.0864073709,
-0.0182053447,
0.0852972567,
-0.0759950653,
-0.1094401479,
0.1904141605,
0.1407319009,
-0.1363413632,
-0.3142248988,
0.5675711632,
-0.3454419971,
0.1128249913,
-0.1528614759,
0.2606034875,
0.3078807294,
0.0205606911,
-0.2705270946,
0.1239755899,
0.2145231366,
-0.1328070015,
-0.4126020074,
0.3355355561,
-0.2914165854,
-0.064807862,
-0.061146047,
0.1464548409,
0.0038935989,
-0.3008679748,
-0.2765823603,
-0.0266715325
] |
https://github.com/huggingface/datasets/issues/798 | Cannot load TREC dataset: ConnectionError | Hi
thanks, but I did tried to install from the pip install git+... and it does
not work for me,. thanks for the help. I have the same issue with wmt16,
"ro-en"
thanks.
Best
Rabeeh
On Mon, Nov 16, 2020 at 10:29 AM Quentin Lhoest <[email protected]>
wrote:
> Actually it's already fixed on the master branch since #740
> <https://github.com/huggingface/datasets/pull/740>
> I'll do the 1.1.3 release soon
>
> —
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub
> <https://github.com/huggingface/datasets/issues/798#issuecomment-727854736>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ABP4ZCEUBJKPOCLABXCKMPDSQDWH3ANCNFSM4TJBUKSA>
> .
>
| ## Problem
I cannot load "trec" dataset, it results with ConnectionError as shown below. I've tried on both Google Colab and locally.
* `requests.head('http://cogcomp.org/Data/QA/QC/train_5500.label')` returns <Response [302]>.
* `requests.head('http://cogcomp.org/Data/QA/QC/train_5500.label', allow_redirects=True)` raises `requests.exceptions.TooManyRedirects: Exceeded 30 redirects.`
* Opening `http://cogcomp.org/Data/QA/QC/train_5500.label' in a browser works, but opens a different address
* Increasing max_redirects to 100 doesn't help
Also, while debugging I've seen that requesting 'https://storage.googleapis.com/huggingface-nlp/cache/datasets/trec/default/1.1.0/dataset_info.json' returns <Response [404]> before, but it doesn't raise any errors. Not sure if that's relevant.
* datasets.__version__ == '1.1.2'
* requests.__version__ == '2.24.0'
## Error trace
```
>>> import datasets
>>> datasets.__version__
'1.1.2'
>>> dataset = load_dataset("trec", split="train")
Using custom data configuration default
Downloading and preparing dataset trec/default (download: 350.79 KiB, generated: 403.39 KiB, post-processed: Unknown size, total: 754.18 KiB) to /home/przemyslaw/.cache/huggingface/datasets/trec/default/1.1.0/ca4248481ad244f235f4cf277186cad2ee8769f975119a2bbfc41b8932b88bd7...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/builder.py", line 531, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/home/przemyslaw/.cache/huggingface/modules/datasets_modules/datasets/trec/ca4248481ad244f235f4cf277186cad2ee8769f975119a2bbfc41b8932b88bd7/trec.py", line 140, in _split_generators
dl_files = dl_manager.download_and_extract(_URLs)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 254, in download_and_extract
return self.extract(self.download(url_or_urls))
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 179, in download
num_proc=download_config.num_proc,
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in map_nested
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in <listcomp>
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 163, in _single_map_nested
return function(data_struct)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 308, in cached_path
use_etag=download_config.use_etag,
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 475, in get_from_cache
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach http://cogcomp.org/Data/QA/QC/train_5500.label
```
I would appreciate some suggestions here. | 98 | Cannot load TREC dataset: ConnectionError
## Problem
I cannot load "trec" dataset, it results with ConnectionError as shown below. I've tried on both Google Colab and locally.
* `requests.head('http://cogcomp.org/Data/QA/QC/train_5500.label')` returns <Response [302]>.
* `requests.head('http://cogcomp.org/Data/QA/QC/train_5500.label', allow_redirects=True)` raises `requests.exceptions.TooManyRedirects: Exceeded 30 redirects.`
* Opening `http://cogcomp.org/Data/QA/QC/train_5500.label' in a browser works, but opens a different address
* Increasing max_redirects to 100 doesn't help
Also, while debugging I've seen that requesting 'https://storage.googleapis.com/huggingface-nlp/cache/datasets/trec/default/1.1.0/dataset_info.json' returns <Response [404]> before, but it doesn't raise any errors. Not sure if that's relevant.
* datasets.__version__ == '1.1.2'
* requests.__version__ == '2.24.0'
## Error trace
```
>>> import datasets
>>> datasets.__version__
'1.1.2'
>>> dataset = load_dataset("trec", split="train")
Using custom data configuration default
Downloading and preparing dataset trec/default (download: 350.79 KiB, generated: 403.39 KiB, post-processed: Unknown size, total: 754.18 KiB) to /home/przemyslaw/.cache/huggingface/datasets/trec/default/1.1.0/ca4248481ad244f235f4cf277186cad2ee8769f975119a2bbfc41b8932b88bd7...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/builder.py", line 531, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/home/przemyslaw/.cache/huggingface/modules/datasets_modules/datasets/trec/ca4248481ad244f235f4cf277186cad2ee8769f975119a2bbfc41b8932b88bd7/trec.py", line 140, in _split_generators
dl_files = dl_manager.download_and_extract(_URLs)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 254, in download_and_extract
return self.extract(self.download(url_or_urls))
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 179, in download
num_proc=download_config.num_proc,
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in map_nested
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in <listcomp>
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 163, in _single_map_nested
return function(data_struct)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 308, in cached_path
use_etag=download_config.use_etag,
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 475, in get_from_cache
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach http://cogcomp.org/Data/QA/QC/train_5500.label
```
I would appreciate some suggestions here.
Hi
thanks, but I did tried to install from the pip install git+... and it does
not work for me,. thanks for the help. I have the same issue with wmt16,
"ro-en"
thanks.
Best
Rabeeh
On Mon, Nov 16, 2020 at 10:29 AM Quentin Lhoest <[email protected]>
wrote:
> Actually it's already fixed on the master branch since #740
> <https://github.com/huggingface/datasets/pull/740>
> I'll do the 1.1.3 release soon
>
> —
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub
> <https://github.com/huggingface/datasets/issues/798#issuecomment-727854736>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ABP4ZCEUBJKPOCLABXCKMPDSQDWH3ANCNFSM4TJBUKSA>
> .
>
| [
-0.1691725254,
0.0168357641,
0.0626650527,
0.3633996546,
0.2918770611,
-0.1796785593,
0.2199586779,
-0.0434449129,
-0.1838139296,
0.0629581809,
-0.3238996863,
0.1360176504,
0.0722287893,
0.1577587128,
-0.0579133779,
-0.0945275053,
-0.1901097149,
-0.2000558078,
-0.0688834339,
0.2535367608,
-0.1328545213,
0.4753990471,
-0.2073135823,
0.2046912462,
-0.4112500846,
0.0120672062,
0.2174304724,
0.4217191041,
-0.2242176235,
-0.6152896881,
0.4672034681,
0.0918212086,
0.2583207488,
0.6301939487,
-0.0001212188,
0.0438779593,
0.3747946322,
-0.0809115916,
-0.3682200313,
-0.5027561784,
-0.5078123808,
-0.0790520087,
0.2648389935,
0.2292862833,
-0.3196889162,
0.4285565615,
0.0791531056,
-0.3250601292,
0.3382041156,
0.6332944036,
0.0820837319,
-0.0768374354,
0.0945121199,
-0.1623593867,
0.3016188741,
-0.1488977671,
-0.0706103295,
0.4869536757,
0.215513736,
-0.0386379287,
0.0549374856,
-0.0216431804,
-0.0271046273,
-0.0117050372,
0.1798273325,
-0.0742921606,
-0.1101850495,
-0.434096992,
0.4241300523,
0.352265209,
0.64021492,
-0.1733741462,
-0.227268815,
0.1454132497,
-0.0812641978,
-0.4302356839,
0.3003185391,
0.3217076957,
-0.1221239865,
0.1870262772,
-0.4078291059,
-0.2597643435,
-0.3686290979,
0.0043726135,
-0.4164091945,
0.1270345598,
-0.2663987279,
0.1315304339,
0.2910036445,
0.015294861,
0.3388897181,
0.2237245739,
-0.4470450878,
-0.0075070709,
-0.6929897666,
0.1829682738,
-0.1482105851,
-0.0363467522,
0.0934942961,
0.3697323799,
0.3174380362,
0.0368968956,
-0.2863056958,
0.40656811,
0.0869920552,
0.3421802521,
0.0432390012,
0.1872975975,
0.3242339194,
0.1837181747,
-0.013221249,
-0.0930790305,
-0.1950833201,
-0.2066058964,
-0.1330895275,
0.1809047759,
0.0973417461,
-0.2702093124,
-0.3912981153,
0.1465581059,
-0.4139408171,
0.0091934986,
0.1225643307,
0.454131186,
-0.2755915225,
-0.0242433585,
-0.0385251679,
0.2208219022,
-0.0965708867,
-0.1626554728,
-0.0660127029,
0.2261448205,
-0.2326459885,
0.1317700744,
0.3381001353,
-0.1813089997,
0.1413072497,
-0.1649177969,
-0.0668444932,
-0.2156006098,
-0.0086506121,
-0.2676546872,
-0.1067192852,
0.4307491779,
0.0776933134,
0.0562675595,
0.1243787855,
-0.3719577491,
-0.0352642909,
0.0133795384,
-0.5714358687,
-0.3518610001,
0.062116228,
0.0705779195,
-0.1204288453,
0.0219032019,
-0.3443547189,
0.0012690215,
-0.004354082,
-0.1800429374,
-0.1748715043,
-0.2704451382,
-0.3334645629,
-0.3149197102,
0.3458769023,
0.4514563084,
-0.5566043258,
-0.0270751864,
0.0968401432,
0.0743102729,
0.1674600393,
0.3314803541,
-0.1907549202,
-0.0951526091,
-0.2181226611,
-0.1000666171,
0.0956015661,
-0.3112878799,
-0.2985932231,
-0.0033583194,
-0.0194072947,
-0.0483565629,
-0.2369236797,
-0.1034136489,
0.0137750357,
0.0616032667,
0.6465605497,
0.2157904357,
-0.1283170134,
-0.1761938035,
-0.1502933204,
-0.2762143612,
-0.2542471588,
0.0869561583,
0.1214701235,
0.0059733726,
0.2363968641,
-0.476413697,
0.0702287108,
0.0418811738,
-0.0073058046,
0.3011593223,
0.3711309731,
-0.0534161143,
-0.1965112537,
0.2541641891,
-0.4512375891,
0.3701871037,
-0.0718612969,
0.2864062488,
-0.253454566,
0.1539354324,
-0.2667069733,
0.1449397355,
-0.0538808033,
-0.133841753,
-0.0591718741,
0.0979989246,
0.2250684649,
0.240124926,
-0.119985655,
0.5677844286,
0.1352923512,
0.1387479007,
-0.2335022539,
0.2586082816,
0.0218196679,
0.068807736,
0.1329161525,
0.010632515,
0.2142104954,
-0.217055738,
-0.0641217604,
0.318633914,
0.2173625827,
0.0417963043,
0.0574614964,
0.1577194333,
0.2542845011,
-0.3891920447,
-0.0997395068,
0.0472880974,
-0.0086245015,
-0.0252698138,
-0.0405541472,
0.2425726056,
0.0648596734,
0.4205705225,
0.1400239468,
0.0894203708,
0.3215748668,
0.0298587531,
-0.0160042979,
0.1794742644,
0.1751998663,
0.2178916931,
0.0230622366,
-0.0838503242,
-0.3602315187,
0.1493654102,
-0.1642056406,
0.0495586395,
-0.1129639074,
0.1247551665,
-0.1547976732,
-0.0220804848,
0.0700038075,
0.3708667755,
0.220127359,
0.0490481257,
-0.2005207539,
0.1874100566,
0.0605275184,
-0.2058151662,
-0.0445010215,
0.1096538156,
0.3646667302,
0.265583545,
0.4266873598,
-0.0487633422,
-0.0951086134,
-0.3787637949,
-0.0358974673,
0.2614512146,
-0.27078861,
0.4008775949,
-0.2434713542,
-0.3584274352,
0.0938046947,
-0.3161961138,
-0.3449478149,
-0.2649384141,
-0.1177100763,
0.4375140965,
0.1163086742,
0.0623286888,
-0.2111104131,
0.3716549873,
0.0254304782,
-0.5300382972,
-0.0236887038,
-0.2573985755,
-0.3198367953,
0.0159244165,
0.3333908021,
-0.2213880569,
0.069861643,
-0.254704237,
0.0297966897,
-0.1255461723,
-0.2030433118,
0.1615647674,
0.1523071676,
0.3011630476,
-0.0669808835,
0.2267765701,
-0.2425041199,
0.0940603018,
0.2751002312,
0.0679613128,
0.1023402885,
0.0489342809,
-0.0400865525,
0.0441083834,
0.024912104,
-0.2555713654,
-0.4800464511,
-0.3582802415,
0.1784225702,
0.0196136162,
0.3458849192,
0.2960090637,
0.0382491834,
-0.0866621584,
0.0641805306,
-0.07696376,
-0.1533749998,
-0.3865545392,
0.1724121124,
-0.2786796689,
-0.2431340814,
0.2509685755,
0.0747396201,
0.384760201,
0.0763949156,
-0.6094398499,
-0.1564109772,
-0.1264607608,
0.1048997119,
0.0258260388,
-0.28259179,
0.3334425092,
-0.088208288,
-0.0051479153,
0.2160646915,
-0.4404525757,
0.0323338769,
0.3356821239,
0.3913239837,
0.2737469077,
0.3707467616,
-0.1709446609,
0.4239256978,
0.2026098073,
0.0485433601,
0.3296658695,
-0.1572239101,
0.3341205716,
-0.089217782,
-0.2969241738,
-0.2172840238,
-0.2103475034,
-0.3245610595,
0.1617722809,
0.2636646926,
-0.0344152674,
-0.4967105389,
0.1173625141,
-0.080140315,
-0.327688098,
0.055648461,
0.1679749191,
0.1110877544,
0.0038788095,
-0.0378259942,
0.2212287039,
-0.2119385153,
-0.3172353506,
0.3629993498,
0.0803812817,
0.072549209,
-0.1304667294,
-0.0161196999,
-0.8267486691,
0.3045908213,
0.0043533444,
0.3990238905,
-0.3158362508,
0.0614300817,
0.0791890249,
-0.1068058014,
0.1192458272,
-0.3070541024,
-0.0818269402,
0.3087827563,
0.0600855798,
-0.2109731585,
-0.2092312276,
0.1269947886,
0.1855375171,
0.432766825,
0.36028409,
0.0136945993,
0.0053407289,
0.0741607919,
0.1480064541,
-0.0896287188,
0.023082871,
-0.3215018511,
-0.48048985,
-0.2376380861,
-0.0714278296,
-0.0627245381,
0.2982814312,
0.1305001974,
0.0849200413,
0.2911791503,
-0.2723358274,
0.208102107,
0.0922953859,
0.0188675486,
0.1057648659,
0.1027645245,
0.09913899,
0.0624908805,
0.3354114294,
0.9395037293,
0.1009223759,
-0.1204157472,
0.3544931114,
0.3962076902,
0.0735517368,
0.2287352383,
-0.0518338978,
0.1031669825,
-0.0455486067,
0.131072402,
0.0472778827,
0.3104486763,
-0.2412311584,
-0.0123401545,
-0.8446326852,
-0.1633533239,
0.3940390646,
-0.1157397851,
-0.0963780209,
-0.0885316506,
0.1918693185,
-0.1223825514,
0.0664270967,
-0.0798335075,
0.938986063,
-0.2157413363,
-0.1139467955,
0.0964189842,
-0.1470548958,
0.4845153093,
-0.5781702399,
0.478051722,
-0.3271453381,
-0.1596904546,
-0.2196510732,
-0.2689325213,
-0.1141614616,
-0.1754054427,
-0.0028666705,
0.4294500649,
-0.1375027299,
0.1797112823,
0.4103511572,
0.0312494636,
0.1668052673,
0.0313801914,
-0.156322673,
0.0742265806,
-0.0684729964,
0.379514575,
-0.0753372237,
-0.0879743844,
-0.2208289057,
-0.0232577994,
-0.3305443823,
0.2558437586,
-0.7046297789,
0.0951706097,
0.0003455896,
-0.202798903,
0.138729021,
0.1491006613,
0.2019767761,
0.1502191722,
-0.3103255033,
0.2650387883,
-0.0473068692,
-0.1506278813,
-0.0097021982,
-0.0158758424,
0.0106165782,
-0.0578824952,
-0.0800180361,
0.4451652467,
-0.0131923966,
-0.401688695,
0.0497703403,
0.0414259806,
0.015600862,
-0.0672005117,
0.1310199499,
-0.0913957357,
0.0334718972,
0.0690084323,
0.0271309335,
0.1205179691,
0.1539874375,
-0.0196321234,
0.2282922119,
-0.2593365908,
-0.0157156251,
0.3636076748,
-0.0135960672,
-0.0319508538,
0.1860429198,
0.4898224771,
-0.0020254031,
-0.0705310926,
-0.1395796835,
0.2126884311,
-0.3972612619,
0.1164027303,
-0.0432343967,
0.1496534497,
0.0333797485,
0.347281456,
0.3143410683,
0.0317262746,
0.3876162171,
-0.5564649701,
-0.2944401205,
0.0544477478,
-0.1690245122,
0.1841664612,
0.1040882319,
-0.1632936746,
-0.2276391685,
-0.0018325448,
-0.1922601163,
0.0723113716,
-0.3587888479,
-0.1759030521,
0.1726369858,
-0.1161859408,
0.5185426474,
-0.136828348,
-0.0479449295,
-0.0184053555,
-0.3581273556,
-0.0564917885,
-0.0145605803,
0.2017893493,
0.1712416112,
-0.4430921674,
-0.1755432636,
-0.0775279552,
0.0485686883,
0.0543947257,
0.1847440004,
0.1984398812,
-0.1803074628,
-0.3293848038,
-0.4175058007,
0.0081549184,
-0.3177672625,
0.3675782979,
0.2319297493,
0.460667491,
0.2174212933,
0.243566215,
-0.0169108622,
-0.1336590648,
-0.1176588386,
0.2129968852,
-0.0535100773,
-0.2645332217,
0.1965233088,
-0.4327825606,
0.0601591319,
-0.2405549586,
0.2324357629,
0.0786647424,
-0.2138749659,
0.1428771317,
0.1881433129,
0.0525172651,
-0.0704043359,
-0.0328338668,
0.1413883418,
-0.0272034146,
0.0310487449,
0.2250308096,
0.3868734241,
-0.1784223914,
0.0799677819,
0.245906204,
0.5618063807,
0.1223890558,
0.1421125531,
-0.1236974448,
-0.123705551,
0.1257033348,
0.409453094,
0.0089926962,
0.0327678621,
0.0211197343,
-0.3650708497,
-0.0349255763,
-0.0059555313,
0.0183140282,
0.0332746729,
-0.5767638683,
0.1064380854,
0.141176492,
-0.1795785129,
-0.1717036664,
-0.089422524,
0.4524858594,
-0.2100298703,
-0.0174036361,
-0.3908973932,
0.1880070418,
-0.0242396723,
-0.0397138931,
0.1182920188,
-0.4415912926,
-0.1305990517,
0.2427268773,
0.0069916686,
-0.1593959779,
-0.0046675205,
0.0859767795,
-0.238829419,
-0.3000752032,
-0.0755935013,
0.3069648445,
-0.0426476113,
-0.0936476886,
0.4497713149,
0.0273360908,
-0.1706610024,
0.1557036191,
0.0153893996,
0.6272588968,
0.2654241323,
0.182375282,
0.108768478,
-0.1266421676,
0.0071308464,
0.1697154939,
0.0883648396,
0.1900409609,
-0.3322165608,
0.1685409993,
0.0786483362,
0.0258462764,
0.2831474841,
-0.0928126574,
0.312107563,
0.0294574462,
0.0179791972,
-0.1460421383,
0.1118160635,
-0.1592100412,
0.0422840975,
-0.3145129383,
0.1783578992,
0.3862513304,
-0.1402853429,
0.2693824172,
0.1543029845,
0.0086424164,
-0.1780066192,
0.4599912167,
0.3405542374,
0.2323291302,
-0.3487296104,
-0.1899101585,
-0.2473534197,
-0.005519297,
-0.1115458682,
0.2073096931,
-0.0416926593,
0.1502740383,
-0.2046354115,
0.3032638133,
-0.1217941642,
0.3058778346,
0.0848773345,
0.0063984524,
-0.2651686072,
0.0663422048,
0.0090941768,
0.0498307049,
-0.153773725,
-0.2624773383,
0.0815576017,
-0.3734007776,
-0.0794992074,
-0.1199193299,
0.151141569,
0.0426995233,
-0.2643913627,
0.2991390228,
0.2458395362,
0.7336869836,
0.2630756199,
-0.0093747862,
-0.1382427812,
-0.3809230924,
-0.0225654952,
0.0093688713,
0.3737496138,
0.2838226557,
0.08536686,
-0.2404978424,
-0.3851114511,
0.4988895655,
0.0652472377,
0.2366226614,
0.165057987,
-0.0864073709,
-0.0182053447,
0.0852972567,
-0.0759950653,
-0.1094401479,
0.1904141605,
0.1407319009,
-0.1363413632,
-0.3142248988,
0.5675711632,
-0.3454419971,
0.1128249913,
-0.1528614759,
0.2606034875,
0.3078807294,
0.0205606911,
-0.2705270946,
0.1239755899,
0.2145231366,
-0.1328070015,
-0.4126020074,
0.3355355561,
-0.2914165854,
-0.064807862,
-0.061146047,
0.1464548409,
0.0038935989,
-0.3008679748,
-0.2765823603,
-0.0266715325
] |
https://github.com/huggingface/datasets/issues/798 | Cannot load TREC dataset: ConnectionError | I just tested on google colab using
```python
!pip install git+https://github.com/huggingface/datasets.git
from datasets import load_dataset
load_dataset("trec")
```
and it works.
Can you detail how you got the issue even when using the latest version on master ?
Also about wmt we'll look into it, thanks for reporting ! | ## Problem
I cannot load "trec" dataset, it results with ConnectionError as shown below. I've tried on both Google Colab and locally.
* `requests.head('http://cogcomp.org/Data/QA/QC/train_5500.label')` returns <Response [302]>.
* `requests.head('http://cogcomp.org/Data/QA/QC/train_5500.label', allow_redirects=True)` raises `requests.exceptions.TooManyRedirects: Exceeded 30 redirects.`
* Opening `http://cogcomp.org/Data/QA/QC/train_5500.label' in a browser works, but opens a different address
* Increasing max_redirects to 100 doesn't help
Also, while debugging I've seen that requesting 'https://storage.googleapis.com/huggingface-nlp/cache/datasets/trec/default/1.1.0/dataset_info.json' returns <Response [404]> before, but it doesn't raise any errors. Not sure if that's relevant.
* datasets.__version__ == '1.1.2'
* requests.__version__ == '2.24.0'
## Error trace
```
>>> import datasets
>>> datasets.__version__
'1.1.2'
>>> dataset = load_dataset("trec", split="train")
Using custom data configuration default
Downloading and preparing dataset trec/default (download: 350.79 KiB, generated: 403.39 KiB, post-processed: Unknown size, total: 754.18 KiB) to /home/przemyslaw/.cache/huggingface/datasets/trec/default/1.1.0/ca4248481ad244f235f4cf277186cad2ee8769f975119a2bbfc41b8932b88bd7...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/builder.py", line 531, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/home/przemyslaw/.cache/huggingface/modules/datasets_modules/datasets/trec/ca4248481ad244f235f4cf277186cad2ee8769f975119a2bbfc41b8932b88bd7/trec.py", line 140, in _split_generators
dl_files = dl_manager.download_and_extract(_URLs)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 254, in download_and_extract
return self.extract(self.download(url_or_urls))
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 179, in download
num_proc=download_config.num_proc,
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in map_nested
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in <listcomp>
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 163, in _single_map_nested
return function(data_struct)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 308, in cached_path
use_etag=download_config.use_etag,
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 475, in get_from_cache
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach http://cogcomp.org/Data/QA/QC/train_5500.label
```
I would appreciate some suggestions here. | 48 | Cannot load TREC dataset: ConnectionError
## Problem
I cannot load "trec" dataset, it results with ConnectionError as shown below. I've tried on both Google Colab and locally.
* `requests.head('http://cogcomp.org/Data/QA/QC/train_5500.label')` returns <Response [302]>.
* `requests.head('http://cogcomp.org/Data/QA/QC/train_5500.label', allow_redirects=True)` raises `requests.exceptions.TooManyRedirects: Exceeded 30 redirects.`
* Opening `http://cogcomp.org/Data/QA/QC/train_5500.label' in a browser works, but opens a different address
* Increasing max_redirects to 100 doesn't help
Also, while debugging I've seen that requesting 'https://storage.googleapis.com/huggingface-nlp/cache/datasets/trec/default/1.1.0/dataset_info.json' returns <Response [404]> before, but it doesn't raise any errors. Not sure if that's relevant.
* datasets.__version__ == '1.1.2'
* requests.__version__ == '2.24.0'
## Error trace
```
>>> import datasets
>>> datasets.__version__
'1.1.2'
>>> dataset = load_dataset("trec", split="train")
Using custom data configuration default
Downloading and preparing dataset trec/default (download: 350.79 KiB, generated: 403.39 KiB, post-processed: Unknown size, total: 754.18 KiB) to /home/przemyslaw/.cache/huggingface/datasets/trec/default/1.1.0/ca4248481ad244f235f4cf277186cad2ee8769f975119a2bbfc41b8932b88bd7...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/builder.py", line 531, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/home/przemyslaw/.cache/huggingface/modules/datasets_modules/datasets/trec/ca4248481ad244f235f4cf277186cad2ee8769f975119a2bbfc41b8932b88bd7/trec.py", line 140, in _split_generators
dl_files = dl_manager.download_and_extract(_URLs)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 254, in download_and_extract
return self.extract(self.download(url_or_urls))
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/download_manager.py", line 179, in download
num_proc=download_config.num_proc,
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in map_nested
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in <listcomp>
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 163, in _single_map_nested
return function(data_struct)
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 308, in cached_path
use_etag=download_config.use_etag,
File "/home/przemyslaw/.local/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 475, in get_from_cache
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach http://cogcomp.org/Data/QA/QC/train_5500.label
```
I would appreciate some suggestions here.
I just tested on google colab using
```python
!pip install git+https://github.com/huggingface/datasets.git
from datasets import load_dataset
load_dataset("trec")
```
and it works.
Can you detail how you got the issue even when using the latest version on master ?
Also about wmt we'll look into it, thanks for reporting ! | [
-0.1691725254,
0.0168357641,
0.0626650527,
0.3633996546,
0.2918770611,
-0.1796785593,
0.2199586779,
-0.0434449129,
-0.1838139296,
0.0629581809,
-0.3238996863,
0.1360176504,
0.0722287893,
0.1577587128,
-0.0579133779,
-0.0945275053,
-0.1901097149,
-0.2000558078,
-0.0688834339,
0.2535367608,
-0.1328545213,
0.4753990471,
-0.2073135823,
0.2046912462,
-0.4112500846,
0.0120672062,
0.2174304724,
0.4217191041,
-0.2242176235,
-0.6152896881,
0.4672034681,
0.0918212086,
0.2583207488,
0.6301939487,
-0.0001212188,
0.0438779593,
0.3747946322,
-0.0809115916,
-0.3682200313,
-0.5027561784,
-0.5078123808,
-0.0790520087,
0.2648389935,
0.2292862833,
-0.3196889162,
0.4285565615,
0.0791531056,
-0.3250601292,
0.3382041156,
0.6332944036,
0.0820837319,
-0.0768374354,
0.0945121199,
-0.1623593867,
0.3016188741,
-0.1488977671,
-0.0706103295,
0.4869536757,
0.215513736,
-0.0386379287,
0.0549374856,
-0.0216431804,
-0.0271046273,
-0.0117050372,
0.1798273325,
-0.0742921606,
-0.1101850495,
-0.434096992,
0.4241300523,
0.352265209,
0.64021492,
-0.1733741462,
-0.227268815,
0.1454132497,
-0.0812641978,
-0.4302356839,
0.3003185391,
0.3217076957,
-0.1221239865,
0.1870262772,
-0.4078291059,
-0.2597643435,
-0.3686290979,
0.0043726135,
-0.4164091945,
0.1270345598,
-0.2663987279,
0.1315304339,
0.2910036445,
0.015294861,
0.3388897181,
0.2237245739,
-0.4470450878,
-0.0075070709,
-0.6929897666,
0.1829682738,
-0.1482105851,
-0.0363467522,
0.0934942961,
0.3697323799,
0.3174380362,
0.0368968956,
-0.2863056958,
0.40656811,
0.0869920552,
0.3421802521,
0.0432390012,
0.1872975975,
0.3242339194,
0.1837181747,
-0.013221249,
-0.0930790305,
-0.1950833201,
-0.2066058964,
-0.1330895275,
0.1809047759,
0.0973417461,
-0.2702093124,
-0.3912981153,
0.1465581059,
-0.4139408171,
0.0091934986,
0.1225643307,
0.454131186,
-0.2755915225,
-0.0242433585,
-0.0385251679,
0.2208219022,
-0.0965708867,
-0.1626554728,
-0.0660127029,
0.2261448205,
-0.2326459885,
0.1317700744,
0.3381001353,
-0.1813089997,
0.1413072497,
-0.1649177969,
-0.0668444932,
-0.2156006098,
-0.0086506121,
-0.2676546872,
-0.1067192852,
0.4307491779,
0.0776933134,
0.0562675595,
0.1243787855,
-0.3719577491,
-0.0352642909,
0.0133795384,
-0.5714358687,
-0.3518610001,
0.062116228,
0.0705779195,
-0.1204288453,
0.0219032019,
-0.3443547189,
0.0012690215,
-0.004354082,
-0.1800429374,
-0.1748715043,
-0.2704451382,
-0.3334645629,
-0.3149197102,
0.3458769023,
0.4514563084,
-0.5566043258,
-0.0270751864,
0.0968401432,
0.0743102729,
0.1674600393,
0.3314803541,
-0.1907549202,
-0.0951526091,
-0.2181226611,
-0.1000666171,
0.0956015661,
-0.3112878799,
-0.2985932231,
-0.0033583194,
-0.0194072947,
-0.0483565629,
-0.2369236797,
-0.1034136489,
0.0137750357,
0.0616032667,
0.6465605497,
0.2157904357,
-0.1283170134,
-0.1761938035,
-0.1502933204,
-0.2762143612,
-0.2542471588,
0.0869561583,
0.1214701235,
0.0059733726,
0.2363968641,
-0.476413697,
0.0702287108,
0.0418811738,
-0.0073058046,
0.3011593223,
0.3711309731,
-0.0534161143,
-0.1965112537,
0.2541641891,
-0.4512375891,
0.3701871037,
-0.0718612969,
0.2864062488,
-0.253454566,
0.1539354324,
-0.2667069733,
0.1449397355,
-0.0538808033,
-0.133841753,
-0.0591718741,
0.0979989246,
0.2250684649,
0.240124926,
-0.119985655,
0.5677844286,
0.1352923512,
0.1387479007,
-0.2335022539,
0.2586082816,
0.0218196679,
0.068807736,
0.1329161525,
0.010632515,
0.2142104954,
-0.217055738,
-0.0641217604,
0.318633914,
0.2173625827,
0.0417963043,
0.0574614964,
0.1577194333,
0.2542845011,
-0.3891920447,
-0.0997395068,
0.0472880974,
-0.0086245015,
-0.0252698138,
-0.0405541472,
0.2425726056,
0.0648596734,
0.4205705225,
0.1400239468,
0.0894203708,
0.3215748668,
0.0298587531,
-0.0160042979,
0.1794742644,
0.1751998663,
0.2178916931,
0.0230622366,
-0.0838503242,
-0.3602315187,
0.1493654102,
-0.1642056406,
0.0495586395,
-0.1129639074,
0.1247551665,
-0.1547976732,
-0.0220804848,
0.0700038075,
0.3708667755,
0.220127359,
0.0490481257,
-0.2005207539,
0.1874100566,
0.0605275184,
-0.2058151662,
-0.0445010215,
0.1096538156,
0.3646667302,
0.265583545,
0.4266873598,
-0.0487633422,
-0.0951086134,
-0.3787637949,
-0.0358974673,
0.2614512146,
-0.27078861,
0.4008775949,
-0.2434713542,
-0.3584274352,
0.0938046947,
-0.3161961138,
-0.3449478149,
-0.2649384141,
-0.1177100763,
0.4375140965,
0.1163086742,
0.0623286888,
-0.2111104131,
0.3716549873,
0.0254304782,
-0.5300382972,
-0.0236887038,
-0.2573985755,
-0.3198367953,
0.0159244165,
0.3333908021,
-0.2213880569,
0.069861643,
-0.254704237,
0.0297966897,
-0.1255461723,
-0.2030433118,
0.1615647674,
0.1523071676,
0.3011630476,
-0.0669808835,
0.2267765701,
-0.2425041199,
0.0940603018,
0.2751002312,
0.0679613128,
0.1023402885,
0.0489342809,
-0.0400865525,
0.0441083834,
0.024912104,
-0.2555713654,
-0.4800464511,
-0.3582802415,
0.1784225702,
0.0196136162,
0.3458849192,
0.2960090637,
0.0382491834,
-0.0866621584,
0.0641805306,
-0.07696376,
-0.1533749998,
-0.3865545392,
0.1724121124,
-0.2786796689,
-0.2431340814,
0.2509685755,
0.0747396201,
0.384760201,
0.0763949156,
-0.6094398499,
-0.1564109772,
-0.1264607608,
0.1048997119,
0.0258260388,
-0.28259179,
0.3334425092,
-0.088208288,
-0.0051479153,
0.2160646915,
-0.4404525757,
0.0323338769,
0.3356821239,
0.3913239837,
0.2737469077,
0.3707467616,
-0.1709446609,
0.4239256978,
0.2026098073,
0.0485433601,
0.3296658695,
-0.1572239101,
0.3341205716,
-0.089217782,
-0.2969241738,
-0.2172840238,
-0.2103475034,
-0.3245610595,
0.1617722809,
0.2636646926,
-0.0344152674,
-0.4967105389,
0.1173625141,
-0.080140315,
-0.327688098,
0.055648461,
0.1679749191,
0.1110877544,
0.0038788095,
-0.0378259942,
0.2212287039,
-0.2119385153,
-0.3172353506,
0.3629993498,
0.0803812817,
0.072549209,
-0.1304667294,
-0.0161196999,
-0.8267486691,
0.3045908213,
0.0043533444,
0.3990238905,
-0.3158362508,
0.0614300817,
0.0791890249,
-0.1068058014,
0.1192458272,
-0.3070541024,
-0.0818269402,
0.3087827563,
0.0600855798,
-0.2109731585,
-0.2092312276,
0.1269947886,
0.1855375171,
0.432766825,
0.36028409,
0.0136945993,
0.0053407289,
0.0741607919,
0.1480064541,
-0.0896287188,
0.023082871,
-0.3215018511,
-0.48048985,
-0.2376380861,
-0.0714278296,
-0.0627245381,
0.2982814312,
0.1305001974,
0.0849200413,
0.2911791503,
-0.2723358274,
0.208102107,
0.0922953859,
0.0188675486,
0.1057648659,
0.1027645245,
0.09913899,
0.0624908805,
0.3354114294,
0.9395037293,
0.1009223759,
-0.1204157472,
0.3544931114,
0.3962076902,
0.0735517368,
0.2287352383,
-0.0518338978,
0.1031669825,
-0.0455486067,
0.131072402,
0.0472778827,
0.3104486763,
-0.2412311584,
-0.0123401545,
-0.8446326852,
-0.1633533239,
0.3940390646,
-0.1157397851,
-0.0963780209,
-0.0885316506,
0.1918693185,
-0.1223825514,
0.0664270967,
-0.0798335075,
0.938986063,
-0.2157413363,
-0.1139467955,
0.0964189842,
-0.1470548958,
0.4845153093,
-0.5781702399,
0.478051722,
-0.3271453381,
-0.1596904546,
-0.2196510732,
-0.2689325213,
-0.1141614616,
-0.1754054427,
-0.0028666705,
0.4294500649,
-0.1375027299,
0.1797112823,
0.4103511572,
0.0312494636,
0.1668052673,
0.0313801914,
-0.156322673,
0.0742265806,
-0.0684729964,
0.379514575,
-0.0753372237,
-0.0879743844,
-0.2208289057,
-0.0232577994,
-0.3305443823,
0.2558437586,
-0.7046297789,
0.0951706097,
0.0003455896,
-0.202798903,
0.138729021,
0.1491006613,
0.2019767761,
0.1502191722,
-0.3103255033,
0.2650387883,
-0.0473068692,
-0.1506278813,
-0.0097021982,
-0.0158758424,
0.0106165782,
-0.0578824952,
-0.0800180361,
0.4451652467,
-0.0131923966,
-0.401688695,
0.0497703403,
0.0414259806,
0.015600862,
-0.0672005117,
0.1310199499,
-0.0913957357,
0.0334718972,
0.0690084323,
0.0271309335,
0.1205179691,
0.1539874375,
-0.0196321234,
0.2282922119,
-0.2593365908,
-0.0157156251,
0.3636076748,
-0.0135960672,
-0.0319508538,
0.1860429198,
0.4898224771,
-0.0020254031,
-0.0705310926,
-0.1395796835,
0.2126884311,
-0.3972612619,
0.1164027303,
-0.0432343967,
0.1496534497,
0.0333797485,
0.347281456,
0.3143410683,
0.0317262746,
0.3876162171,
-0.5564649701,
-0.2944401205,
0.0544477478,
-0.1690245122,
0.1841664612,
0.1040882319,
-0.1632936746,
-0.2276391685,
-0.0018325448,
-0.1922601163,
0.0723113716,
-0.3587888479,
-0.1759030521,
0.1726369858,
-0.1161859408,
0.5185426474,
-0.136828348,
-0.0479449295,
-0.0184053555,
-0.3581273556,
-0.0564917885,
-0.0145605803,
0.2017893493,
0.1712416112,
-0.4430921674,
-0.1755432636,
-0.0775279552,
0.0485686883,
0.0543947257,
0.1847440004,
0.1984398812,
-0.1803074628,
-0.3293848038,
-0.4175058007,
0.0081549184,
-0.3177672625,
0.3675782979,
0.2319297493,
0.460667491,
0.2174212933,
0.243566215,
-0.0169108622,
-0.1336590648,
-0.1176588386,
0.2129968852,
-0.0535100773,
-0.2645332217,
0.1965233088,
-0.4327825606,
0.0601591319,
-0.2405549586,
0.2324357629,
0.0786647424,
-0.2138749659,
0.1428771317,
0.1881433129,
0.0525172651,
-0.0704043359,
-0.0328338668,
0.1413883418,
-0.0272034146,
0.0310487449,
0.2250308096,
0.3868734241,
-0.1784223914,
0.0799677819,
0.245906204,
0.5618063807,
0.1223890558,
0.1421125531,
-0.1236974448,
-0.123705551,
0.1257033348,
0.409453094,
0.0089926962,
0.0327678621,
0.0211197343,
-0.3650708497,
-0.0349255763,
-0.0059555313,
0.0183140282,
0.0332746729,
-0.5767638683,
0.1064380854,
0.141176492,
-0.1795785129,
-0.1717036664,
-0.089422524,
0.4524858594,
-0.2100298703,
-0.0174036361,
-0.3908973932,
0.1880070418,
-0.0242396723,
-0.0397138931,
0.1182920188,
-0.4415912926,
-0.1305990517,
0.2427268773,
0.0069916686,
-0.1593959779,
-0.0046675205,
0.0859767795,
-0.238829419,
-0.3000752032,
-0.0755935013,
0.3069648445,
-0.0426476113,
-0.0936476886,
0.4497713149,
0.0273360908,
-0.1706610024,
0.1557036191,
0.0153893996,
0.6272588968,
0.2654241323,
0.182375282,
0.108768478,
-0.1266421676,
0.0071308464,
0.1697154939,
0.0883648396,
0.1900409609,
-0.3322165608,
0.1685409993,
0.0786483362,
0.0258462764,
0.2831474841,
-0.0928126574,
0.312107563,
0.0294574462,
0.0179791972,
-0.1460421383,
0.1118160635,
-0.1592100412,
0.0422840975,
-0.3145129383,
0.1783578992,
0.3862513304,
-0.1402853429,
0.2693824172,
0.1543029845,
0.0086424164,
-0.1780066192,
0.4599912167,
0.3405542374,
0.2323291302,
-0.3487296104,
-0.1899101585,
-0.2473534197,
-0.005519297,
-0.1115458682,
0.2073096931,
-0.0416926593,
0.1502740383,
-0.2046354115,
0.3032638133,
-0.1217941642,
0.3058778346,
0.0848773345,
0.0063984524,
-0.2651686072,
0.0663422048,
0.0090941768,
0.0498307049,
-0.153773725,
-0.2624773383,
0.0815576017,
-0.3734007776,
-0.0794992074,
-0.1199193299,
0.151141569,
0.0426995233,
-0.2643913627,
0.2991390228,
0.2458395362,
0.7336869836,
0.2630756199,
-0.0093747862,
-0.1382427812,
-0.3809230924,
-0.0225654952,
0.0093688713,
0.3737496138,
0.2838226557,
0.08536686,
-0.2404978424,
-0.3851114511,
0.4988895655,
0.0652472377,
0.2366226614,
0.165057987,
-0.0864073709,
-0.0182053447,
0.0852972567,
-0.0759950653,
-0.1094401479,
0.1904141605,
0.1407319009,
-0.1363413632,
-0.3142248988,
0.5675711632,
-0.3454419971,
0.1128249913,
-0.1528614759,
0.2606034875,
0.3078807294,
0.0205606911,
-0.2705270946,
0.1239755899,
0.2145231366,
-0.1328070015,
-0.4126020074,
0.3355355561,
-0.2914165854,
-0.064807862,
-0.061146047,
0.1464548409,
0.0038935989,
-0.3008679748,
-0.2765823603,
-0.0266715325
] |
https://github.com/huggingface/datasets/issues/796 | Seq2Seq Metrics QOL: Bleu, Rouge | Hi ! Thanks for letting us know your experience :)
We should at least improve the error messages indeed | Putting all my QOL issues here, idt I will have time to propose fixes, but I didn't want these to be lost, in case they are useful. I tried using `rouge` and `bleu` for the first time and wrote down everything I didn't immediately understand:
+ Bleu expects tokenization, can I just kwarg it like sacrebleu?
+ different signatures, means that I would have had to add a lot of conditionals + pre and post processing: if I were going to replace the `calculate_rouge` and `calculate_bleu` functions here: https://github.com/huggingface/transformers/blob/master/examples/seq2seq/utils.py#L61
#### What I tried
Rouge experience:
```python
rouge = load_metric('rouge')
rouge.add_batch(['hi im sam'], ['im daniel']) # fails
rouge.add_batch(predictions=['hi im sam'], references=['im daniel']) # works
rouge.compute() # huge messy output, but reasonable. Not worth integrating b/c don't want to rewrite all the postprocessing.
```
BLEU experience:
```python
bleu = load_metric('bleu')
bleu.add_batch(predictions=['hi im sam'], references=['im daniel'])
bleu.add_batch(predictions=[['hi im sam']], references=[['im daniel']])
bleu.add_batch(predictions=[['hi im sam']], references=[['im daniel']])
```
All of these raise `ValueError: Got a string but expected a list instead: 'im daniel'`
#### Doc Typo
This says `dataset=load_metric(...)` which seems wrong, will cause `NameError`
![image](https://user-images.githubusercontent.com/6045025/98004483-ff0d0580-1dbd-11eb-9f35-6f35904611bb.png)
cc @lhoestq, feel free to ignore. | 19 | Seq2Seq Metrics QOL: Bleu, Rouge
Putting all my QOL issues here, idt I will have time to propose fixes, but I didn't want these to be lost, in case they are useful. I tried using `rouge` and `bleu` for the first time and wrote down everything I didn't immediately understand:
+ Bleu expects tokenization, can I just kwarg it like sacrebleu?
+ different signatures, means that I would have had to add a lot of conditionals + pre and post processing: if I were going to replace the `calculate_rouge` and `calculate_bleu` functions here: https://github.com/huggingface/transformers/blob/master/examples/seq2seq/utils.py#L61
#### What I tried
Rouge experience:
```python
rouge = load_metric('rouge')
rouge.add_batch(['hi im sam'], ['im daniel']) # fails
rouge.add_batch(predictions=['hi im sam'], references=['im daniel']) # works
rouge.compute() # huge messy output, but reasonable. Not worth integrating b/c don't want to rewrite all the postprocessing.
```
BLEU experience:
```python
bleu = load_metric('bleu')
bleu.add_batch(predictions=['hi im sam'], references=['im daniel'])
bleu.add_batch(predictions=[['hi im sam']], references=[['im daniel']])
bleu.add_batch(predictions=[['hi im sam']], references=[['im daniel']])
```
All of these raise `ValueError: Got a string but expected a list instead: 'im daniel'`
#### Doc Typo
This says `dataset=load_metric(...)` which seems wrong, will cause `NameError`
![image](https://user-images.githubusercontent.com/6045025/98004483-ff0d0580-1dbd-11eb-9f35-6f35904611bb.png)
cc @lhoestq, feel free to ignore.
Hi ! Thanks for letting us know your experience :)
We should at least improve the error messages indeed | [
0.176953733,
-0.0281661153,
-0.0853118896,
0.0595531762,
0.1316639632,
-0.2772909403,
0.0935507789,
0.1194601357,
-0.0715429857,
0.0205884688,
-0.237328589,
0.0115102082,
-0.1035930365,
-0.0028772205,
0.0880224183,
-0.2312070131,
-0.0192947723,
0.05647875,
0.0220843498,
-0.2092478424,
-0.2625802159,
0.3527040482,
-0.021722205,
0.2763139009,
-0.2073203772,
0.2331517786,
-0.0639110282,
0.2056543827,
-0.2941872478,
-0.1854021549,
0.0096483231,
0.3292579353,
0.0186899602,
0.2050485164,
-0.0001137066,
-0.3125212193,
0.0184411258,
-0.1469954252,
-0.1234472021,
-0.1045940295,
-0.1109410524,
-0.1959448755,
0.0969133526,
-0.1325438768,
-0.0355384313,
0.1201135516,
-0.3182255924,
-0.0693274736,
0.5164248943,
-0.0813497603,
0.1686477065,
-0.0962301567,
-0.1875776798,
-0.1486990005,
0.3641570508,
-0.107058607,
0.0575780571,
0.0045554303,
0.2955906391,
-0.0346819982,
-0.1117431,
0.2009180486,
0.0118584484,
-0.2140557766,
0.199601531,
0.0452660732,
0.2193309516,
-0.1476969421,
-0.1681335568,
0.2540253699,
0.1309775412,
-0.0490118861,
-0.4720956385,
0.0694949552,
-0.0954871178,
-0.7001904249,
-0.0471169539,
-0.2837665677,
0.1515048295,
-0.1515443027,
-0.125564754,
0.0069695376,
0.1390459239,
-0.2734937668,
-0.136484161,
0.0243613347,
-0.1411271542,
-0.0774001926,
0.1040127128,
-0.1568870246,
-0.6167761087,
0.2696431875,
-0.1904055327,
0.033667881,
-0.5840448737,
0.0813069046,
0.0431836694,
0.1194150895,
-0.1405091882,
0.4723140895,
0.1637539864,
0.0697109774,
0.1093149334,
0.0862751156,
-0.3274794519,
0.8337019086,
0.0874964744,
0.0176880844,
0.1399511546,
-0.005224254,
0.1916355342,
-0.0466973893,
0.0865588039,
-0.5624170303,
-0.0675761402,
0.3009650111,
-0.2086917311,
-0.4418407083,
-0.4798850417,
0.1379340738,
-0.2506815791,
-0.1557813436,
0.3023252785,
0.3863402605,
-0.3358678818,
0.0597460419,
0.4099587798,
0.3697023094,
-0.2531629503,
-0.1009762585,
-0.167919144,
0.0602376647,
-0.2565957308,
0.2256271392,
0.0209778249,
0.0801945403,
0.3454346061,
0.0971024707,
0.3335018158,
0.0042421222,
0.1434872895,
0.057545878,
-0.2455938756,
-0.1922014505,
-0.1943176091,
0.0088599175,
0.0848354697,
-0.2524261475,
-0.016199246,
-0.3828210235,
-0.3244465292,
-0.1584510207,
0.060307987,
0.1470858753,
-0.1753461957,
0.1231857017,
-0.0035432242,
0.3194283545,
-0.0393085852,
-0.1132977903,
0.0053625405,
0.1049259901,
-0.2670652866,
-0.0042275339,
0.4935557842,
-0.0255887061,
-0.3216416836,
-0.3817741871,
0.4146697819,
0.1683200002,
-0.0606814921,
0.2700882256,
0.0352222547,
0.2871844471,
0.0276342556,
-0.180442363,
0.3904254436,
-0.5985484123,
-0.0689608604,
-0.0158592314,
-0.0115919709,
-0.2362426817,
0.2013262808,
-0.1834619939,
0.3161440492,
-0.1831454933,
0.4822330475,
0.1010600552,
0.065393731,
-0.2801434398,
-0.2663800418,
-0.1388559043,
0.1392518729,
-0.0844182521,
0.1085979491,
0.1279085726,
-0.2155476362,
0.3492254317,
0.0701877922,
-0.2282511294,
0.0856474862,
0.0376855172,
0.1824709475,
0.033166904,
0.2077790499,
0.3472883105,
0.1417555809,
0.1336543113,
-0.6976096034,
0.1592133939,
0.0037084222,
0.0860562399,
-0.3027499914,
-0.2085742354,
0.022713514,
-0.4090460837,
0.13548702,
-0.2492712736,
0.2036939263,
0.1237618551,
0.0019242913,
0.1244988441,
0.2435032278,
0.182469964,
-0.2680424154,
-0.1919855177,
0.2025811076,
0.001564648,
0.0111754984,
0.4812695384,
0.2334777415,
0.1712277979,
0.0437590964,
0.28322649,
0.0035682283,
0.1227551103,
0.1778897047,
0.2196916342,
0.2059093118,
0.0626964942,
0.15327847,
-0.0062188562,
0.1477897167,
-0.2205668986,
-0.0119058527,
0.4550426304,
-0.4066661298,
0.1981160045,
-0.2130471766,
-0.0134293325,
-0.0060456172,
0.0274148658,
-0.3535485268,
0.0184350461,
0.3251859546,
0.1578260809,
0.4982279837,
-0.2068050951,
0.2832618952,
-0.1557312757,
0.0057611917,
-0.1006079316,
0.0947463736,
-0.0406294167,
0.1436415613,
-0.0996467918,
-0.0770211667,
-0.4216922522,
0.0819060281,
0.1051406115,
-0.1054544449,
0.0385689214,
-0.0031587332,
-0.098897934,
-0.1584775001,
-0.0599148199,
-0.2916542292,
0.0378777087,
0.2082577348,
0.1982463002,
0.2047155052,
-0.3442963958,
-0.2024779916,
-0.057646241,
-0.3000858426,
0.144936949,
-0.0344879702,
0.5397523642,
0.260850966,
0.102704078,
-0.2336452901,
-0.3465654552,
0.3593018949,
-0.0398256741,
0.0450824946,
0.1441111863,
0.0771826431,
0.4756243527,
0.0388999954,
-0.0621119067,
-0.036674358,
-0.1377661079,
0.0031251134,
0.0776272267,
-0.3016473949,
0.1216314286,
0.1167253107,
-0.3648529649,
0.2510651946,
0.1978718042,
-0.5468523502,
0.1241144091,
-0.1195821315,
0.5138995647,
0.3033764362,
-0.3014567196,
0.0231693909,
-0.0888203159,
0.237155363,
-0.0323476866,
-0.2406720817,
0.3399662375,
-0.0452198759,
0.1214820668,
-0.0695556998,
-0.1393464506,
0.0858443603,
-0.2094723433,
0.3407856524,
-0.0766742006,
-0.2421108633,
-0.1812710166,
-0.094968304,
0.2206554264,
0.1995647848,
0.4270272255,
-0.1554477215,
-0.2086053938,
0.3116023242,
-0.1577574462,
-0.2221231759,
-0.2294905186,
-0.1876646578,
0.4910137653,
-0.1489207149,
-0.0511645526,
-0.3940581977,
0.1894481778,
-0.1001680046,
0.2220210731,
-0.0307295844,
0.1455083489,
0.1064648926,
-0.1404236108,
-0.0989814699,
-0.1612588763,
0.1910225749,
0.1008730307,
0.4178523421,
-0.2088982761,
0.3396975994,
-0.0117484555,
0.6103150249,
0.1115435585,
0.2892512083,
0.1768062264,
0.3831203878,
0.1211189479,
-0.0213043429,
-0.207516551,
0.0879763141,
-0.0352794155,
-0.2933489084,
0.131935209,
0.0984316394,
0.441455096,
-0.2185959518,
0.3410234749,
-0.2103943974,
-0.1881788373,
0.1058162078,
-0.2011754215,
-0.0989174098,
-0.1430131793,
0.0723318607,
0.1112955958,
-0.0060308352,
0.2412922084,
0.1390666962,
0.3017921448,
0.0698097944,
-0.2126362175,
0.1514587998,
-0.3834171295,
0.4566948712,
-0.243722409,
-0.203820616,
-0.2165651023,
-0.101350747,
-0.1215605438,
-0.0875825286,
0.2147546113,
0.0374687687,
-0.2363128066,
0.1458825469,
-0.5916591883,
-0.4131349623,
-0.0120861232,
-0.2095867544,
-0.1605080664,
0.2359594852,
0.0095178336,
-0.4821445644,
-0.0756693482,
-0.2295520455,
0.0576560423,
-0.3014697433,
-0.0373363309,
-0.2727274001,
-0.1172620356,
-0.0696870834,
0.0924731418,
-0.2291589975,
0.2875806689,
-0.2921277881,
0.1601524502,
-0.156498149,
-0.0742771775,
0.307015419,
0.1465413868,
0.1504178494,
-0.3316685557,
0.0785015151,
0.2081437409,
-0.1293837428,
-0.1273932904,
0.1969533563,
-0.2532329857,
-0.2951293886,
0.3716383278,
0.0178299136,
0.2221780419,
0.2946828008,
-0.234299317,
0.094495967,
-0.3147594929,
0.3028073013,
-0.3613411486,
-0.0944889933,
0.3689980209,
0.1033307537,
0.0125510991,
-0.22991997,
0.0690529943,
0.1653677374,
-0.3130489886,
-0.3780956566,
-0.0152907483,
-0.2785443664,
0.5295835137,
0.2223317474,
0.965284586,
0.0470922925,
0.0763822347,
0.1551992148,
0.0962855965,
0.4637108147,
-0.5718901157,
-0.035101071,
-0.3878887892,
-0.0913155079,
0.0291723236,
0.0367922708,
-0.117058441,
-0.0540099889,
-0.3936683536,
0.4557966292,
-0.2637163401,
-0.200510323,
-0.1655346155,
-0.0229667574,
0.1302415431,
-0.2507966459,
-0.3668767214,
0.1868800372,
0.0889847726,
0.0542570837,
-0.2669871747,
-0.0393870771,
-0.2502805293,
-0.0585815087,
0.0858373493,
0.0232326537,
-0.021234978,
0.1083103269,
-0.0477350168,
-0.1540641785,
-0.1582444906,
0.5442357063,
0.577368021,
0.2172057778,
-0.0208209176,
0.0600921325,
-0.1236233711,
0.5404776335,
0.0934724808,
-0.2224393487,
0.2294901609,
-0.0243547298,
-0.020823136,
0.3062648177,
0.0182666555,
-0.0775452629,
-0.1989148408,
-0.1544185877,
-0.325825572,
-0.3220329285,
0.4116710126,
0.223238498,
0.2346819341,
-0.0311754197,
0.0928961113,
0.4529190361,
-0.3160114884,
0.187112689,
0.1644584537,
-0.328373909,
0.0176812503,
0.1569292247,
-0.2035152912,
-0.2034178376,
0.144707039,
-0.122293435,
0.0662493855,
-0.1050124466,
-0.2246525586,
0.3282242417,
-0.6158258915,
0.1495269835,
-0.0137531124,
-0.2014418244,
0.107967943,
0.5085458755,
0.3355739713,
-0.1233520061,
0.3740538955,
-0.1671468616,
-0.2427298874,
0.4513658583,
0.061603874,
0.1218223572,
-0.2861670852,
-0.3142951131,
-0.3326705992,
0.6031282544,
-0.3359349966,
-0.2359316647,
-0.4539042115,
0.1343767941,
-0.3620433211,
-0.2385996282,
0.2074177265,
0.2969813049,
0.0096485242,
0.1842312515,
-0.3344163299,
-0.1230727285,
-0.4081400633,
0.1003050804,
-0.1193290502,
0.2269996107,
-0.0668594465,
0.4527091384,
0.2298659831,
-0.2671134174,
0.1697510928,
0.1802746803,
0.2975306511,
0.2053432167,
0.0191488527,
0.2244737744,
-0.0069987997,
-0.0262909494,
0.2954409122,
0.1316294223,
0.1685134172,
0.0559651256,
-0.2218062431,
-0.1717917323,
0.3374059796,
0.1799138486,
0.2362014651,
-0.0936960429,
0.1139822751,
-0.0410218649,
0.0842021108,
-0.2749201655,
0.3915099502,
0.3128083348,
-0.0195629299,
-0.079653129,
-0.1372185946,
0.2240025699,
0.024485141,
0.3415914476,
-0.1490014791,
0.2489685714,
-0.0112863854,
0.3523804843,
0.1521828026,
0.0147116333,
0.4298761785,
-0.0189228579,
-0.0702098459,
-0.2236606777,
0.1153165549,
-0.2348209023,
-0.1815800965,
0.3596546054,
0.4222203493,
0.0077240355,
0.0152923763,
-0.0210296623,
-0.1447947323,
0.254504472,
-0.3928196132,
0.6502038836,
0.2231902927,
0.0503744632,
-0.1527457237,
0.2164509296,
0.0517555997,
-0.2472671866,
-0.2434280813,
0.4218264222,
0.0581700951,
-0.3403602242,
-0.3058311343,
0.3959473968,
-0.0788399577,
-0.4969255924,
-0.0322635584,
-0.3686675131,
-0.2251704633,
-0.1759876311,
0.0558963232,
0.0035124561,
-0.1908201277,
0.0639134496,
0.198969245,
-0.2763510942,
-0.5920050144,
0.1823779345,
0.0905694813,
-0.0429585092,
-0.007743788,
0.383471489,
0.0954967588,
0.5452122688,
0.4397695959,
0.2471135855,
0.1698272526,
-0.416221261,
0.0099132434,
-0.0941652283,
0.1179097444,
-0.1178862676,
0.426987648,
0.2142496705,
-0.3480430245,
0.1749590039,
0.1014096439,
-0.1391797513,
0.226349622,
-0.2509037256,
0.2887145281,
-0.1855389923,
0.4289952517,
0.110249877,
0.3845457435,
-0.2034666538,
-0.0546119437,
-0.4368283749,
0.0242950805,
-0.2412266284,
-0.0238135196,
0.1368948072,
0.1685839146,
0.0787074119,
0.1651515514,
0.035378933,
0.0816262141,
0.1796220094,
-0.2963190377,
0.2632244229,
-0.1453600228,
-0.0498373322,
0.1904268563,
0.3427990675,
-0.347930938,
0.2818306983,
0.1530397236,
0.2411678433,
-0.1471677274,
0.0867019892,
-0.1079351902,
0.1036501974,
-0.4891260862,
0.2790877223,
-0.0577861629,
0.0819782689,
0.0164200142,
0.1622752547,
-0.2522096038,
-0.0308857169,
0.0889543444,
-0.0395874381,
-0.219846189,
0.1205384731,
0.4369190633,
0.3809591532,
0.4347174466,
0.2746353149,
0.0491109341,
-0.0917206705,
-0.0348362736,
-0.2374586463,
0.0091846809,
-0.1451221853,
-0.0991913378,
0.1483567953,
0.1272277832,
-0.0981933028,
-0.2859272659,
0.7760736942,
0.1080329865,
-0.5372212529,
-0.4522248507,
0.102232933,
0.2105948031,
-0.0174014233,
-0.2600539625,
0.3088752329,
-0.014705034,
0.6009326577,
-0.1941379905,
-0.1132750511,
0.4475610256,
-0.4307900667,
0.3061504364,
0.1107733101,
0.3764394224,
0.4347322285,
-0.0453523248,
-0.1358399987,
0.0445138961,
0.0719927922,
0.08791437,
-0.0069220439,
0.172903806,
0.2557844222,
-0.0846855417,
-0.2360914648,
-0.2595788538,
0.0349607207,
0.0786984786,
0.0781523436,
-0.236334458
] |
https://github.com/huggingface/datasets/issues/796 | Seq2Seq Metrics QOL: Bleu, Rouge | prediction = [['Hey', 'how', 'are', 'you', '?']]
reference=[['Hey', 'how', 'are', 'you', '?']]
bleu.compute(predictions=prediction,references=reference)
also tried this kind of things lol
I definitely need help too | Putting all my QOL issues here, idt I will have time to propose fixes, but I didn't want these to be lost, in case they are useful. I tried using `rouge` and `bleu` for the first time and wrote down everything I didn't immediately understand:
+ Bleu expects tokenization, can I just kwarg it like sacrebleu?
+ different signatures, means that I would have had to add a lot of conditionals + pre and post processing: if I were going to replace the `calculate_rouge` and `calculate_bleu` functions here: https://github.com/huggingface/transformers/blob/master/examples/seq2seq/utils.py#L61
#### What I tried
Rouge experience:
```python
rouge = load_metric('rouge')
rouge.add_batch(['hi im sam'], ['im daniel']) # fails
rouge.add_batch(predictions=['hi im sam'], references=['im daniel']) # works
rouge.compute() # huge messy output, but reasonable. Not worth integrating b/c don't want to rewrite all the postprocessing.
```
BLEU experience:
```python
bleu = load_metric('bleu')
bleu.add_batch(predictions=['hi im sam'], references=['im daniel'])
bleu.add_batch(predictions=[['hi im sam']], references=[['im daniel']])
bleu.add_batch(predictions=[['hi im sam']], references=[['im daniel']])
```
All of these raise `ValueError: Got a string but expected a list instead: 'im daniel'`
#### Doc Typo
This says `dataset=load_metric(...)` which seems wrong, will cause `NameError`
![image](https://user-images.githubusercontent.com/6045025/98004483-ff0d0580-1dbd-11eb-9f35-6f35904611bb.png)
cc @lhoestq, feel free to ignore. | 25 | Seq2Seq Metrics QOL: Bleu, Rouge
Putting all my QOL issues here, idt I will have time to propose fixes, but I didn't want these to be lost, in case they are useful. I tried using `rouge` and `bleu` for the first time and wrote down everything I didn't immediately understand:
+ Bleu expects tokenization, can I just kwarg it like sacrebleu?
+ different signatures, means that I would have had to add a lot of conditionals + pre and post processing: if I were going to replace the `calculate_rouge` and `calculate_bleu` functions here: https://github.com/huggingface/transformers/blob/master/examples/seq2seq/utils.py#L61
#### What I tried
Rouge experience:
```python
rouge = load_metric('rouge')
rouge.add_batch(['hi im sam'], ['im daniel']) # fails
rouge.add_batch(predictions=['hi im sam'], references=['im daniel']) # works
rouge.compute() # huge messy output, but reasonable. Not worth integrating b/c don't want to rewrite all the postprocessing.
```
BLEU experience:
```python
bleu = load_metric('bleu')
bleu.add_batch(predictions=['hi im sam'], references=['im daniel'])
bleu.add_batch(predictions=[['hi im sam']], references=[['im daniel']])
bleu.add_batch(predictions=[['hi im sam']], references=[['im daniel']])
```
All of these raise `ValueError: Got a string but expected a list instead: 'im daniel'`
#### Doc Typo
This says `dataset=load_metric(...)` which seems wrong, will cause `NameError`
![image](https://user-images.githubusercontent.com/6045025/98004483-ff0d0580-1dbd-11eb-9f35-6f35904611bb.png)
cc @lhoestq, feel free to ignore.
prediction = [['Hey', 'how', 'are', 'you', '?']]
reference=[['Hey', 'how', 'are', 'you', '?']]
bleu.compute(predictions=prediction,references=reference)
also tried this kind of things lol
I definitely need help too | [
0.176953733,
-0.0281661153,
-0.0853118896,
0.0595531762,
0.1316639632,
-0.2772909403,
0.0935507789,
0.1194601357,
-0.0715429857,
0.0205884688,
-0.237328589,
0.0115102082,
-0.1035930365,
-0.0028772205,
0.0880224183,
-0.2312070131,
-0.0192947723,
0.05647875,
0.0220843498,
-0.2092478424,
-0.2625802159,
0.3527040482,
-0.021722205,
0.2763139009,
-0.2073203772,
0.2331517786,
-0.0639110282,
0.2056543827,
-0.2941872478,
-0.1854021549,
0.0096483231,
0.3292579353,
0.0186899602,
0.2050485164,
-0.0001137066,
-0.3125212193,
0.0184411258,
-0.1469954252,
-0.1234472021,
-0.1045940295,
-0.1109410524,
-0.1959448755,
0.0969133526,
-0.1325438768,
-0.0355384313,
0.1201135516,
-0.3182255924,
-0.0693274736,
0.5164248943,
-0.0813497603,
0.1686477065,
-0.0962301567,
-0.1875776798,
-0.1486990005,
0.3641570508,
-0.107058607,
0.0575780571,
0.0045554303,
0.2955906391,
-0.0346819982,
-0.1117431,
0.2009180486,
0.0118584484,
-0.2140557766,
0.199601531,
0.0452660732,
0.2193309516,
-0.1476969421,
-0.1681335568,
0.2540253699,
0.1309775412,
-0.0490118861,
-0.4720956385,
0.0694949552,
-0.0954871178,
-0.7001904249,
-0.0471169539,
-0.2837665677,
0.1515048295,
-0.1515443027,
-0.125564754,
0.0069695376,
0.1390459239,
-0.2734937668,
-0.136484161,
0.0243613347,
-0.1411271542,
-0.0774001926,
0.1040127128,
-0.1568870246,
-0.6167761087,
0.2696431875,
-0.1904055327,
0.033667881,
-0.5840448737,
0.0813069046,
0.0431836694,
0.1194150895,
-0.1405091882,
0.4723140895,
0.1637539864,
0.0697109774,
0.1093149334,
0.0862751156,
-0.3274794519,
0.8337019086,
0.0874964744,
0.0176880844,
0.1399511546,
-0.005224254,
0.1916355342,
-0.0466973893,
0.0865588039,
-0.5624170303,
-0.0675761402,
0.3009650111,
-0.2086917311,
-0.4418407083,
-0.4798850417,
0.1379340738,
-0.2506815791,
-0.1557813436,
0.3023252785,
0.3863402605,
-0.3358678818,
0.0597460419,
0.4099587798,
0.3697023094,
-0.2531629503,
-0.1009762585,
-0.167919144,
0.0602376647,
-0.2565957308,
0.2256271392,
0.0209778249,
0.0801945403,
0.3454346061,
0.0971024707,
0.3335018158,
0.0042421222,
0.1434872895,
0.057545878,
-0.2455938756,
-0.1922014505,
-0.1943176091,
0.0088599175,
0.0848354697,
-0.2524261475,
-0.016199246,
-0.3828210235,
-0.3244465292,
-0.1584510207,
0.060307987,
0.1470858753,
-0.1753461957,
0.1231857017,
-0.0035432242,
0.3194283545,
-0.0393085852,
-0.1132977903,
0.0053625405,
0.1049259901,
-0.2670652866,
-0.0042275339,
0.4935557842,
-0.0255887061,
-0.3216416836,
-0.3817741871,
0.4146697819,
0.1683200002,
-0.0606814921,
0.2700882256,
0.0352222547,
0.2871844471,
0.0276342556,
-0.180442363,
0.3904254436,
-0.5985484123,
-0.0689608604,
-0.0158592314,
-0.0115919709,
-0.2362426817,
0.2013262808,
-0.1834619939,
0.3161440492,
-0.1831454933,
0.4822330475,
0.1010600552,
0.065393731,
-0.2801434398,
-0.2663800418,
-0.1388559043,
0.1392518729,
-0.0844182521,
0.1085979491,
0.1279085726,
-0.2155476362,
0.3492254317,
0.0701877922,
-0.2282511294,
0.0856474862,
0.0376855172,
0.1824709475,
0.033166904,
0.2077790499,
0.3472883105,
0.1417555809,
0.1336543113,
-0.6976096034,
0.1592133939,
0.0037084222,
0.0860562399,
-0.3027499914,
-0.2085742354,
0.022713514,
-0.4090460837,
0.13548702,
-0.2492712736,
0.2036939263,
0.1237618551,
0.0019242913,
0.1244988441,
0.2435032278,
0.182469964,
-0.2680424154,
-0.1919855177,
0.2025811076,
0.001564648,
0.0111754984,
0.4812695384,
0.2334777415,
0.1712277979,
0.0437590964,
0.28322649,
0.0035682283,
0.1227551103,
0.1778897047,
0.2196916342,
0.2059093118,
0.0626964942,
0.15327847,
-0.0062188562,
0.1477897167,
-0.2205668986,
-0.0119058527,
0.4550426304,
-0.4066661298,
0.1981160045,
-0.2130471766,
-0.0134293325,
-0.0060456172,
0.0274148658,
-0.3535485268,
0.0184350461,
0.3251859546,
0.1578260809,
0.4982279837,
-0.2068050951,
0.2832618952,
-0.1557312757,
0.0057611917,
-0.1006079316,
0.0947463736,
-0.0406294167,
0.1436415613,
-0.0996467918,
-0.0770211667,
-0.4216922522,
0.0819060281,
0.1051406115,
-0.1054544449,
0.0385689214,
-0.0031587332,
-0.098897934,
-0.1584775001,
-0.0599148199,
-0.2916542292,
0.0378777087,
0.2082577348,
0.1982463002,
0.2047155052,
-0.3442963958,
-0.2024779916,
-0.057646241,
-0.3000858426,
0.144936949,
-0.0344879702,
0.5397523642,
0.260850966,
0.102704078,
-0.2336452901,
-0.3465654552,
0.3593018949,
-0.0398256741,
0.0450824946,
0.1441111863,
0.0771826431,
0.4756243527,
0.0388999954,
-0.0621119067,
-0.036674358,
-0.1377661079,
0.0031251134,
0.0776272267,
-0.3016473949,
0.1216314286,
0.1167253107,
-0.3648529649,
0.2510651946,
0.1978718042,
-0.5468523502,
0.1241144091,
-0.1195821315,
0.5138995647,
0.3033764362,
-0.3014567196,
0.0231693909,
-0.0888203159,
0.237155363,
-0.0323476866,
-0.2406720817,
0.3399662375,
-0.0452198759,
0.1214820668,
-0.0695556998,
-0.1393464506,
0.0858443603,
-0.2094723433,
0.3407856524,
-0.0766742006,
-0.2421108633,
-0.1812710166,
-0.094968304,
0.2206554264,
0.1995647848,
0.4270272255,
-0.1554477215,
-0.2086053938,
0.3116023242,
-0.1577574462,
-0.2221231759,
-0.2294905186,
-0.1876646578,
0.4910137653,
-0.1489207149,
-0.0511645526,
-0.3940581977,
0.1894481778,
-0.1001680046,
0.2220210731,
-0.0307295844,
0.1455083489,
0.1064648926,
-0.1404236108,
-0.0989814699,
-0.1612588763,
0.1910225749,
0.1008730307,
0.4178523421,
-0.2088982761,
0.3396975994,
-0.0117484555,
0.6103150249,
0.1115435585,
0.2892512083,
0.1768062264,
0.3831203878,
0.1211189479,
-0.0213043429,
-0.207516551,
0.0879763141,
-0.0352794155,
-0.2933489084,
0.131935209,
0.0984316394,
0.441455096,
-0.2185959518,
0.3410234749,
-0.2103943974,
-0.1881788373,
0.1058162078,
-0.2011754215,
-0.0989174098,
-0.1430131793,
0.0723318607,
0.1112955958,
-0.0060308352,
0.2412922084,
0.1390666962,
0.3017921448,
0.0698097944,
-0.2126362175,
0.1514587998,
-0.3834171295,
0.4566948712,
-0.243722409,
-0.203820616,
-0.2165651023,
-0.101350747,
-0.1215605438,
-0.0875825286,
0.2147546113,
0.0374687687,
-0.2363128066,
0.1458825469,
-0.5916591883,
-0.4131349623,
-0.0120861232,
-0.2095867544,
-0.1605080664,
0.2359594852,
0.0095178336,
-0.4821445644,
-0.0756693482,
-0.2295520455,
0.0576560423,
-0.3014697433,
-0.0373363309,
-0.2727274001,
-0.1172620356,
-0.0696870834,
0.0924731418,
-0.2291589975,
0.2875806689,
-0.2921277881,
0.1601524502,
-0.156498149,
-0.0742771775,
0.307015419,
0.1465413868,
0.1504178494,
-0.3316685557,
0.0785015151,
0.2081437409,
-0.1293837428,
-0.1273932904,
0.1969533563,
-0.2532329857,
-0.2951293886,
0.3716383278,
0.0178299136,
0.2221780419,
0.2946828008,
-0.234299317,
0.094495967,
-0.3147594929,
0.3028073013,
-0.3613411486,
-0.0944889933,
0.3689980209,
0.1033307537,
0.0125510991,
-0.22991997,
0.0690529943,
0.1653677374,
-0.3130489886,
-0.3780956566,
-0.0152907483,
-0.2785443664,
0.5295835137,
0.2223317474,
0.965284586,
0.0470922925,
0.0763822347,
0.1551992148,
0.0962855965,
0.4637108147,
-0.5718901157,
-0.035101071,
-0.3878887892,
-0.0913155079,
0.0291723236,
0.0367922708,
-0.117058441,
-0.0540099889,
-0.3936683536,
0.4557966292,
-0.2637163401,
-0.200510323,
-0.1655346155,
-0.0229667574,
0.1302415431,
-0.2507966459,
-0.3668767214,
0.1868800372,
0.0889847726,
0.0542570837,
-0.2669871747,
-0.0393870771,
-0.2502805293,
-0.0585815087,
0.0858373493,
0.0232326537,
-0.021234978,
0.1083103269,
-0.0477350168,
-0.1540641785,
-0.1582444906,
0.5442357063,
0.577368021,
0.2172057778,
-0.0208209176,
0.0600921325,
-0.1236233711,
0.5404776335,
0.0934724808,
-0.2224393487,
0.2294901609,
-0.0243547298,
-0.020823136,
0.3062648177,
0.0182666555,
-0.0775452629,
-0.1989148408,
-0.1544185877,
-0.325825572,
-0.3220329285,
0.4116710126,
0.223238498,
0.2346819341,
-0.0311754197,
0.0928961113,
0.4529190361,
-0.3160114884,
0.187112689,
0.1644584537,
-0.328373909,
0.0176812503,
0.1569292247,
-0.2035152912,
-0.2034178376,
0.144707039,
-0.122293435,
0.0662493855,
-0.1050124466,
-0.2246525586,
0.3282242417,
-0.6158258915,
0.1495269835,
-0.0137531124,
-0.2014418244,
0.107967943,
0.5085458755,
0.3355739713,
-0.1233520061,
0.3740538955,
-0.1671468616,
-0.2427298874,
0.4513658583,
0.061603874,
0.1218223572,
-0.2861670852,
-0.3142951131,
-0.3326705992,
0.6031282544,
-0.3359349966,
-0.2359316647,
-0.4539042115,
0.1343767941,
-0.3620433211,
-0.2385996282,
0.2074177265,
0.2969813049,
0.0096485242,
0.1842312515,
-0.3344163299,
-0.1230727285,
-0.4081400633,
0.1003050804,
-0.1193290502,
0.2269996107,
-0.0668594465,
0.4527091384,
0.2298659831,
-0.2671134174,
0.1697510928,
0.1802746803,
0.2975306511,
0.2053432167,
0.0191488527,
0.2244737744,
-0.0069987997,
-0.0262909494,
0.2954409122,
0.1316294223,
0.1685134172,
0.0559651256,
-0.2218062431,
-0.1717917323,
0.3374059796,
0.1799138486,
0.2362014651,
-0.0936960429,
0.1139822751,
-0.0410218649,
0.0842021108,
-0.2749201655,
0.3915099502,
0.3128083348,
-0.0195629299,
-0.079653129,
-0.1372185946,
0.2240025699,
0.024485141,
0.3415914476,
-0.1490014791,
0.2489685714,
-0.0112863854,
0.3523804843,
0.1521828026,
0.0147116333,
0.4298761785,
-0.0189228579,
-0.0702098459,
-0.2236606777,
0.1153165549,
-0.2348209023,
-0.1815800965,
0.3596546054,
0.4222203493,
0.0077240355,
0.0152923763,
-0.0210296623,
-0.1447947323,
0.254504472,
-0.3928196132,
0.6502038836,
0.2231902927,
0.0503744632,
-0.1527457237,
0.2164509296,
0.0517555997,
-0.2472671866,
-0.2434280813,
0.4218264222,
0.0581700951,
-0.3403602242,
-0.3058311343,
0.3959473968,
-0.0788399577,
-0.4969255924,
-0.0322635584,
-0.3686675131,
-0.2251704633,
-0.1759876311,
0.0558963232,
0.0035124561,
-0.1908201277,
0.0639134496,
0.198969245,
-0.2763510942,
-0.5920050144,
0.1823779345,
0.0905694813,
-0.0429585092,
-0.007743788,
0.383471489,
0.0954967588,
0.5452122688,
0.4397695959,
0.2471135855,
0.1698272526,
-0.416221261,
0.0099132434,
-0.0941652283,
0.1179097444,
-0.1178862676,
0.426987648,
0.2142496705,
-0.3480430245,
0.1749590039,
0.1014096439,
-0.1391797513,
0.226349622,
-0.2509037256,
0.2887145281,
-0.1855389923,
0.4289952517,
0.110249877,
0.3845457435,
-0.2034666538,
-0.0546119437,
-0.4368283749,
0.0242950805,
-0.2412266284,
-0.0238135196,
0.1368948072,
0.1685839146,
0.0787074119,
0.1651515514,
0.035378933,
0.0816262141,
0.1796220094,
-0.2963190377,
0.2632244229,
-0.1453600228,
-0.0498373322,
0.1904268563,
0.3427990675,
-0.347930938,
0.2818306983,
0.1530397236,
0.2411678433,
-0.1471677274,
0.0867019892,
-0.1079351902,
0.1036501974,
-0.4891260862,
0.2790877223,
-0.0577861629,
0.0819782689,
0.0164200142,
0.1622752547,
-0.2522096038,
-0.0308857169,
0.0889543444,
-0.0395874381,
-0.219846189,
0.1205384731,
0.4369190633,
0.3809591532,
0.4347174466,
0.2746353149,
0.0491109341,
-0.0917206705,
-0.0348362736,
-0.2374586463,
0.0091846809,
-0.1451221853,
-0.0991913378,
0.1483567953,
0.1272277832,
-0.0981933028,
-0.2859272659,
0.7760736942,
0.1080329865,
-0.5372212529,
-0.4522248507,
0.102232933,
0.2105948031,
-0.0174014233,
-0.2600539625,
0.3088752329,
-0.014705034,
0.6009326577,
-0.1941379905,
-0.1132750511,
0.4475610256,
-0.4307900667,
0.3061504364,
0.1107733101,
0.3764394224,
0.4347322285,
-0.0453523248,
-0.1358399987,
0.0445138961,
0.0719927922,
0.08791437,
-0.0069220439,
0.172903806,
0.2557844222,
-0.0846855417,
-0.2360914648,
-0.2595788538,
0.0349607207,
0.0786984786,
0.0781523436,
-0.236334458
] |
https://github.com/huggingface/datasets/issues/796 | Seq2Seq Metrics QOL: Bleu, Rouge | Hi !
As described in the documentation for `bleu`:
```
Args:
predictions: list of translations to score.
Each translation should be tokenized into a list of tokens.
references: list of lists of references for each translation.
Each reference should be tokenized into a list of tokens.
```
Therefore you can use this metric this way:
```python
from datasets import load_metric
predictions = [
["hello", "there", "general", "kenobi"], # tokenized prediction of the first sample
["foo", "bar", "foobar"] # tokenized prediction of the second sample
]
references = [
[["hello", "there", "general", "kenobi"], ["hello", "there", "!"]], # tokenized references for the first sample (2 references)
[["foo", "bar", "foobar"]] # tokenized references for the second sample (1 reference)
]
bleu = load_metric("bleu")
bleu.compute(predictions=predictions, references=references)
# Or you can also add batches before calling compute()
# bleu.add_batch(predictions=predictions, references=references)
# bleu.compute()
```
Hope this helps :) | Putting all my QOL issues here, idt I will have time to propose fixes, but I didn't want these to be lost, in case they are useful. I tried using `rouge` and `bleu` for the first time and wrote down everything I didn't immediately understand:
+ Bleu expects tokenization, can I just kwarg it like sacrebleu?
+ different signatures, means that I would have had to add a lot of conditionals + pre and post processing: if I were going to replace the `calculate_rouge` and `calculate_bleu` functions here: https://github.com/huggingface/transformers/blob/master/examples/seq2seq/utils.py#L61
#### What I tried
Rouge experience:
```python
rouge = load_metric('rouge')
rouge.add_batch(['hi im sam'], ['im daniel']) # fails
rouge.add_batch(predictions=['hi im sam'], references=['im daniel']) # works
rouge.compute() # huge messy output, but reasonable. Not worth integrating b/c don't want to rewrite all the postprocessing.
```
BLEU experience:
```python
bleu = load_metric('bleu')
bleu.add_batch(predictions=['hi im sam'], references=['im daniel'])
bleu.add_batch(predictions=[['hi im sam']], references=[['im daniel']])
bleu.add_batch(predictions=[['hi im sam']], references=[['im daniel']])
```
All of these raise `ValueError: Got a string but expected a list instead: 'im daniel'`
#### Doc Typo
This says `dataset=load_metric(...)` which seems wrong, will cause `NameError`
![image](https://user-images.githubusercontent.com/6045025/98004483-ff0d0580-1dbd-11eb-9f35-6f35904611bb.png)
cc @lhoestq, feel free to ignore. | 142 | Seq2Seq Metrics QOL: Bleu, Rouge
Putting all my QOL issues here, idt I will have time to propose fixes, but I didn't want these to be lost, in case they are useful. I tried using `rouge` and `bleu` for the first time and wrote down everything I didn't immediately understand:
+ Bleu expects tokenization, can I just kwarg it like sacrebleu?
+ different signatures, means that I would have had to add a lot of conditionals + pre and post processing: if I were going to replace the `calculate_rouge` and `calculate_bleu` functions here: https://github.com/huggingface/transformers/blob/master/examples/seq2seq/utils.py#L61
#### What I tried
Rouge experience:
```python
rouge = load_metric('rouge')
rouge.add_batch(['hi im sam'], ['im daniel']) # fails
rouge.add_batch(predictions=['hi im sam'], references=['im daniel']) # works
rouge.compute() # huge messy output, but reasonable. Not worth integrating b/c don't want to rewrite all the postprocessing.
```
BLEU experience:
```python
bleu = load_metric('bleu')
bleu.add_batch(predictions=['hi im sam'], references=['im daniel'])
bleu.add_batch(predictions=[['hi im sam']], references=[['im daniel']])
bleu.add_batch(predictions=[['hi im sam']], references=[['im daniel']])
```
All of these raise `ValueError: Got a string but expected a list instead: 'im daniel'`
#### Doc Typo
This says `dataset=load_metric(...)` which seems wrong, will cause `NameError`
![image](https://user-images.githubusercontent.com/6045025/98004483-ff0d0580-1dbd-11eb-9f35-6f35904611bb.png)
cc @lhoestq, feel free to ignore.
Hi !
As described in the documentation for `bleu`:
```
Args:
predictions: list of translations to score.
Each translation should be tokenized into a list of tokens.
references: list of lists of references for each translation.
Each reference should be tokenized into a list of tokens.
```
Therefore you can use this metric this way:
```python
from datasets import load_metric
predictions = [
["hello", "there", "general", "kenobi"], # tokenized prediction of the first sample
["foo", "bar", "foobar"] # tokenized prediction of the second sample
]
references = [
[["hello", "there", "general", "kenobi"], ["hello", "there", "!"]], # tokenized references for the first sample (2 references)
[["foo", "bar", "foobar"]] # tokenized references for the second sample (1 reference)
]
bleu = load_metric("bleu")
bleu.compute(predictions=predictions, references=references)
# Or you can also add batches before calling compute()
# bleu.add_batch(predictions=predictions, references=references)
# bleu.compute()
```
Hope this helps :) | [
0.176953733,
-0.0281661153,
-0.0853118896,
0.0595531762,
0.1316639632,
-0.2772909403,
0.0935507789,
0.1194601357,
-0.0715429857,
0.0205884688,
-0.237328589,
0.0115102082,
-0.1035930365,
-0.0028772205,
0.0880224183,
-0.2312070131,
-0.0192947723,
0.05647875,
0.0220843498,
-0.2092478424,
-0.2625802159,
0.3527040482,
-0.021722205,
0.2763139009,
-0.2073203772,
0.2331517786,
-0.0639110282,
0.2056543827,
-0.2941872478,
-0.1854021549,
0.0096483231,
0.3292579353,
0.0186899602,
0.2050485164,
-0.0001137066,
-0.3125212193,
0.0184411258,
-0.1469954252,
-0.1234472021,
-0.1045940295,
-0.1109410524,
-0.1959448755,
0.0969133526,
-0.1325438768,
-0.0355384313,
0.1201135516,
-0.3182255924,
-0.0693274736,
0.5164248943,
-0.0813497603,
0.1686477065,
-0.0962301567,
-0.1875776798,
-0.1486990005,
0.3641570508,
-0.107058607,
0.0575780571,
0.0045554303,
0.2955906391,
-0.0346819982,
-0.1117431,
0.2009180486,
0.0118584484,
-0.2140557766,
0.199601531,
0.0452660732,
0.2193309516,
-0.1476969421,
-0.1681335568,
0.2540253699,
0.1309775412,
-0.0490118861,
-0.4720956385,
0.0694949552,
-0.0954871178,
-0.7001904249,
-0.0471169539,
-0.2837665677,
0.1515048295,
-0.1515443027,
-0.125564754,
0.0069695376,
0.1390459239,
-0.2734937668,
-0.136484161,
0.0243613347,
-0.1411271542,
-0.0774001926,
0.1040127128,
-0.1568870246,
-0.6167761087,
0.2696431875,
-0.1904055327,
0.033667881,
-0.5840448737,
0.0813069046,
0.0431836694,
0.1194150895,
-0.1405091882,
0.4723140895,
0.1637539864,
0.0697109774,
0.1093149334,
0.0862751156,
-0.3274794519,
0.8337019086,
0.0874964744,
0.0176880844,
0.1399511546,
-0.005224254,
0.1916355342,
-0.0466973893,
0.0865588039,
-0.5624170303,
-0.0675761402,
0.3009650111,
-0.2086917311,
-0.4418407083,
-0.4798850417,
0.1379340738,
-0.2506815791,
-0.1557813436,
0.3023252785,
0.3863402605,
-0.3358678818,
0.0597460419,
0.4099587798,
0.3697023094,
-0.2531629503,
-0.1009762585,
-0.167919144,
0.0602376647,
-0.2565957308,
0.2256271392,
0.0209778249,
0.0801945403,
0.3454346061,
0.0971024707,
0.3335018158,
0.0042421222,
0.1434872895,
0.057545878,
-0.2455938756,
-0.1922014505,
-0.1943176091,
0.0088599175,
0.0848354697,
-0.2524261475,
-0.016199246,
-0.3828210235,
-0.3244465292,
-0.1584510207,
0.060307987,
0.1470858753,
-0.1753461957,
0.1231857017,
-0.0035432242,
0.3194283545,
-0.0393085852,
-0.1132977903,
0.0053625405,
0.1049259901,
-0.2670652866,
-0.0042275339,
0.4935557842,
-0.0255887061,
-0.3216416836,
-0.3817741871,
0.4146697819,
0.1683200002,
-0.0606814921,
0.2700882256,
0.0352222547,
0.2871844471,
0.0276342556,
-0.180442363,
0.3904254436,
-0.5985484123,
-0.0689608604,
-0.0158592314,
-0.0115919709,
-0.2362426817,
0.2013262808,
-0.1834619939,
0.3161440492,
-0.1831454933,
0.4822330475,
0.1010600552,
0.065393731,
-0.2801434398,
-0.2663800418,
-0.1388559043,
0.1392518729,
-0.0844182521,
0.1085979491,
0.1279085726,
-0.2155476362,
0.3492254317,
0.0701877922,
-0.2282511294,
0.0856474862,
0.0376855172,
0.1824709475,
0.033166904,
0.2077790499,
0.3472883105,
0.1417555809,
0.1336543113,
-0.6976096034,
0.1592133939,
0.0037084222,
0.0860562399,
-0.3027499914,
-0.2085742354,
0.022713514,
-0.4090460837,
0.13548702,
-0.2492712736,
0.2036939263,
0.1237618551,
0.0019242913,
0.1244988441,
0.2435032278,
0.182469964,
-0.2680424154,
-0.1919855177,
0.2025811076,
0.001564648,
0.0111754984,
0.4812695384,
0.2334777415,
0.1712277979,
0.0437590964,
0.28322649,
0.0035682283,
0.1227551103,
0.1778897047,
0.2196916342,
0.2059093118,
0.0626964942,
0.15327847,
-0.0062188562,
0.1477897167,
-0.2205668986,
-0.0119058527,
0.4550426304,
-0.4066661298,
0.1981160045,
-0.2130471766,
-0.0134293325,
-0.0060456172,
0.0274148658,
-0.3535485268,
0.0184350461,
0.3251859546,
0.1578260809,
0.4982279837,
-0.2068050951,
0.2832618952,
-0.1557312757,
0.0057611917,
-0.1006079316,
0.0947463736,
-0.0406294167,
0.1436415613,
-0.0996467918,
-0.0770211667,
-0.4216922522,
0.0819060281,
0.1051406115,
-0.1054544449,
0.0385689214,
-0.0031587332,
-0.098897934,
-0.1584775001,
-0.0599148199,
-0.2916542292,
0.0378777087,
0.2082577348,
0.1982463002,
0.2047155052,
-0.3442963958,
-0.2024779916,
-0.057646241,
-0.3000858426,
0.144936949,
-0.0344879702,
0.5397523642,
0.260850966,
0.102704078,
-0.2336452901,
-0.3465654552,
0.3593018949,
-0.0398256741,
0.0450824946,
0.1441111863,
0.0771826431,
0.4756243527,
0.0388999954,
-0.0621119067,
-0.036674358,
-0.1377661079,
0.0031251134,
0.0776272267,
-0.3016473949,
0.1216314286,
0.1167253107,
-0.3648529649,
0.2510651946,
0.1978718042,
-0.5468523502,
0.1241144091,
-0.1195821315,
0.5138995647,
0.3033764362,
-0.3014567196,
0.0231693909,
-0.0888203159,
0.237155363,
-0.0323476866,
-0.2406720817,
0.3399662375,
-0.0452198759,
0.1214820668,
-0.0695556998,
-0.1393464506,
0.0858443603,
-0.2094723433,
0.3407856524,
-0.0766742006,
-0.2421108633,
-0.1812710166,
-0.094968304,
0.2206554264,
0.1995647848,
0.4270272255,
-0.1554477215,
-0.2086053938,
0.3116023242,
-0.1577574462,
-0.2221231759,
-0.2294905186,
-0.1876646578,
0.4910137653,
-0.1489207149,
-0.0511645526,
-0.3940581977,
0.1894481778,
-0.1001680046,
0.2220210731,
-0.0307295844,
0.1455083489,
0.1064648926,
-0.1404236108,
-0.0989814699,
-0.1612588763,
0.1910225749,
0.1008730307,
0.4178523421,
-0.2088982761,
0.3396975994,
-0.0117484555,
0.6103150249,
0.1115435585,
0.2892512083,
0.1768062264,
0.3831203878,
0.1211189479,
-0.0213043429,
-0.207516551,
0.0879763141,
-0.0352794155,
-0.2933489084,
0.131935209,
0.0984316394,
0.441455096,
-0.2185959518,
0.3410234749,
-0.2103943974,
-0.1881788373,
0.1058162078,
-0.2011754215,
-0.0989174098,
-0.1430131793,
0.0723318607,
0.1112955958,
-0.0060308352,
0.2412922084,
0.1390666962,
0.3017921448,
0.0698097944,
-0.2126362175,
0.1514587998,
-0.3834171295,
0.4566948712,
-0.243722409,
-0.203820616,
-0.2165651023,
-0.101350747,
-0.1215605438,
-0.0875825286,
0.2147546113,
0.0374687687,
-0.2363128066,
0.1458825469,
-0.5916591883,
-0.4131349623,
-0.0120861232,
-0.2095867544,
-0.1605080664,
0.2359594852,
0.0095178336,
-0.4821445644,
-0.0756693482,
-0.2295520455,
0.0576560423,
-0.3014697433,
-0.0373363309,
-0.2727274001,
-0.1172620356,
-0.0696870834,
0.0924731418,
-0.2291589975,
0.2875806689,
-0.2921277881,
0.1601524502,
-0.156498149,
-0.0742771775,
0.307015419,
0.1465413868,
0.1504178494,
-0.3316685557,
0.0785015151,
0.2081437409,
-0.1293837428,
-0.1273932904,
0.1969533563,
-0.2532329857,
-0.2951293886,
0.3716383278,
0.0178299136,
0.2221780419,
0.2946828008,
-0.234299317,
0.094495967,
-0.3147594929,
0.3028073013,
-0.3613411486,
-0.0944889933,
0.3689980209,
0.1033307537,
0.0125510991,
-0.22991997,
0.0690529943,
0.1653677374,
-0.3130489886,
-0.3780956566,
-0.0152907483,
-0.2785443664,
0.5295835137,
0.2223317474,
0.965284586,
0.0470922925,
0.0763822347,
0.1551992148,
0.0962855965,
0.4637108147,
-0.5718901157,
-0.035101071,
-0.3878887892,
-0.0913155079,
0.0291723236,
0.0367922708,
-0.117058441,
-0.0540099889,
-0.3936683536,
0.4557966292,
-0.2637163401,
-0.200510323,
-0.1655346155,
-0.0229667574,
0.1302415431,
-0.2507966459,
-0.3668767214,
0.1868800372,
0.0889847726,
0.0542570837,
-0.2669871747,
-0.0393870771,
-0.2502805293,
-0.0585815087,
0.0858373493,
0.0232326537,
-0.021234978,
0.1083103269,
-0.0477350168,
-0.1540641785,
-0.1582444906,
0.5442357063,
0.577368021,
0.2172057778,
-0.0208209176,
0.0600921325,
-0.1236233711,
0.5404776335,
0.0934724808,
-0.2224393487,
0.2294901609,
-0.0243547298,
-0.020823136,
0.3062648177,
0.0182666555,
-0.0775452629,
-0.1989148408,
-0.1544185877,
-0.325825572,
-0.3220329285,
0.4116710126,
0.223238498,
0.2346819341,
-0.0311754197,
0.0928961113,
0.4529190361,
-0.3160114884,
0.187112689,
0.1644584537,
-0.328373909,
0.0176812503,
0.1569292247,
-0.2035152912,
-0.2034178376,
0.144707039,
-0.122293435,
0.0662493855,
-0.1050124466,
-0.2246525586,
0.3282242417,
-0.6158258915,
0.1495269835,
-0.0137531124,
-0.2014418244,
0.107967943,
0.5085458755,
0.3355739713,
-0.1233520061,
0.3740538955,
-0.1671468616,
-0.2427298874,
0.4513658583,
0.061603874,
0.1218223572,
-0.2861670852,
-0.3142951131,
-0.3326705992,
0.6031282544,
-0.3359349966,
-0.2359316647,
-0.4539042115,
0.1343767941,
-0.3620433211,
-0.2385996282,
0.2074177265,
0.2969813049,
0.0096485242,
0.1842312515,
-0.3344163299,
-0.1230727285,
-0.4081400633,
0.1003050804,
-0.1193290502,
0.2269996107,
-0.0668594465,
0.4527091384,
0.2298659831,
-0.2671134174,
0.1697510928,
0.1802746803,
0.2975306511,
0.2053432167,
0.0191488527,
0.2244737744,
-0.0069987997,
-0.0262909494,
0.2954409122,
0.1316294223,
0.1685134172,
0.0559651256,
-0.2218062431,
-0.1717917323,
0.3374059796,
0.1799138486,
0.2362014651,
-0.0936960429,
0.1139822751,
-0.0410218649,
0.0842021108,
-0.2749201655,
0.3915099502,
0.3128083348,
-0.0195629299,
-0.079653129,
-0.1372185946,
0.2240025699,
0.024485141,
0.3415914476,
-0.1490014791,
0.2489685714,
-0.0112863854,
0.3523804843,
0.1521828026,
0.0147116333,
0.4298761785,
-0.0189228579,
-0.0702098459,
-0.2236606777,
0.1153165549,
-0.2348209023,
-0.1815800965,
0.3596546054,
0.4222203493,
0.0077240355,
0.0152923763,
-0.0210296623,
-0.1447947323,
0.254504472,
-0.3928196132,
0.6502038836,
0.2231902927,
0.0503744632,
-0.1527457237,
0.2164509296,
0.0517555997,
-0.2472671866,
-0.2434280813,
0.4218264222,
0.0581700951,
-0.3403602242,
-0.3058311343,
0.3959473968,
-0.0788399577,
-0.4969255924,
-0.0322635584,
-0.3686675131,
-0.2251704633,
-0.1759876311,
0.0558963232,
0.0035124561,
-0.1908201277,
0.0639134496,
0.198969245,
-0.2763510942,
-0.5920050144,
0.1823779345,
0.0905694813,
-0.0429585092,
-0.007743788,
0.383471489,
0.0954967588,
0.5452122688,
0.4397695959,
0.2471135855,
0.1698272526,
-0.416221261,
0.0099132434,
-0.0941652283,
0.1179097444,
-0.1178862676,
0.426987648,
0.2142496705,
-0.3480430245,
0.1749590039,
0.1014096439,
-0.1391797513,
0.226349622,
-0.2509037256,
0.2887145281,
-0.1855389923,
0.4289952517,
0.110249877,
0.3845457435,
-0.2034666538,
-0.0546119437,
-0.4368283749,
0.0242950805,
-0.2412266284,
-0.0238135196,
0.1368948072,
0.1685839146,
0.0787074119,
0.1651515514,
0.035378933,
0.0816262141,
0.1796220094,
-0.2963190377,
0.2632244229,
-0.1453600228,
-0.0498373322,
0.1904268563,
0.3427990675,
-0.347930938,
0.2818306983,
0.1530397236,
0.2411678433,
-0.1471677274,
0.0867019892,
-0.1079351902,
0.1036501974,
-0.4891260862,
0.2790877223,
-0.0577861629,
0.0819782689,
0.0164200142,
0.1622752547,
-0.2522096038,
-0.0308857169,
0.0889543444,
-0.0395874381,
-0.219846189,
0.1205384731,
0.4369190633,
0.3809591532,
0.4347174466,
0.2746353149,
0.0491109341,
-0.0917206705,
-0.0348362736,
-0.2374586463,
0.0091846809,
-0.1451221853,
-0.0991913378,
0.1483567953,
0.1272277832,
-0.0981933028,
-0.2859272659,
0.7760736942,
0.1080329865,
-0.5372212529,
-0.4522248507,
0.102232933,
0.2105948031,
-0.0174014233,
-0.2600539625,
0.3088752329,
-0.014705034,
0.6009326577,
-0.1941379905,
-0.1132750511,
0.4475610256,
-0.4307900667,
0.3061504364,
0.1107733101,
0.3764394224,
0.4347322285,
-0.0453523248,
-0.1358399987,
0.0445138961,
0.0719927922,
0.08791437,
-0.0069220439,
0.172903806,
0.2557844222,
-0.0846855417,
-0.2360914648,
-0.2595788538,
0.0349607207,
0.0786984786,
0.0781523436,
-0.236334458
] |
https://github.com/huggingface/datasets/issues/792 | KILT dataset: empty string in triviaqa input field | Just found out about https://github.com/huggingface/datasets/blob/master/datasets/kilt_tasks/README.md
(Not very clear in https://huggingface.co/datasets/kilt_tasks links to http://github.com/huggingface/datasets/datasets/kilt_tasks/README.md which is dead, closing the issue though :)) | # What happened
Both train and test splits of the triviaqa dataset (part of the KILT benchmark) seem to have empty string in their input field (unlike the natural questions dataset, part of the same benchmark)
# Versions
KILT version is `1.0.0`
`datasets` version is `1.1.2`
[more here](https://gist.github.com/PaulLerner/3768c8d25f723edbac20d99b6a4056c1)
# How to reproduce
```py
In [1]: from datasets import load_dataset
In [4]: dataset = load_dataset("kilt_tasks")
# everything works fine, removed output for a better readibility
Dataset kilt_tasks downloaded and prepared to /people/lerner/.cache/huggingface/datasets/kilt_tasks/all_tasks/1.0.0/821c4295a2c35db2847585918d9c47d7f028f1a26b78825d8e77cd3aeb2621a1. Subsequent calls will reuse this data.
# empty string in triviaqa input field
In [36]: dataset['train_triviaqa'][0]
Out[36]:
{'id': 'dpql_5197',
'input': '',
'meta': {'left_context': '',
'mention': '',
'obj_surface': {'text': []},
'partial_evidence': {'end_paragraph_id': [],
'meta': [],
'section': [],
'start_paragraph_id': [],
'title': [],
'wikipedia_id': []},
'right_context': '',
'sub_surface': {'text': []},
'subj_aliases': {'text': []},
'template_questions': {'text': []}},
'output': {'answer': ['five £', '5 £', '£5', 'five £'],
'meta': [],
'provenance': [{'bleu_score': [1.0],
'end_character': [248],
'end_paragraph_id': [30],
'meta': [],
'section': ['Section::::Question of legal tender.\n'],
'start_character': [246],
'start_paragraph_id': [30],
'title': ['Banknotes of the pound sterling'],
'wikipedia_id': ['270680']}]}}
In [35]: dataset['train_triviaqa']['input'][:10]
Out[35]: ['', '', '', '', '', '', '', '', '', '']
# same with test set
In [37]: dataset['test_triviaqa']['input'][:10]
Out[37]: ['', '', '', '', '', '', '', '', '', '']
# works fine with natural questions
In [34]: dataset['train_nq']['input'][:10]
Out[34]:
['how i.met your mother who is the mother',
'who had the most wins in the nfl',
'who played mantis guardians of the galaxy 2',
'what channel is the premier league on in france',
"god's not dead a light in the darkness release date",
'who is the current president of un general assembly',
'when do the eclipse supposed to take place',
'what is the name of the sea surrounding dubai',
'who holds the nba record for most points in a career',
'when did the new maze runner movie come out']
```
Stay safe :) | 21 | KILT dataset: empty string in triviaqa input field
# What happened
Both train and test splits of the triviaqa dataset (part of the KILT benchmark) seem to have empty string in their input field (unlike the natural questions dataset, part of the same benchmark)
# Versions
KILT version is `1.0.0`
`datasets` version is `1.1.2`
[more here](https://gist.github.com/PaulLerner/3768c8d25f723edbac20d99b6a4056c1)
# How to reproduce
```py
In [1]: from datasets import load_dataset
In [4]: dataset = load_dataset("kilt_tasks")
# everything works fine, removed output for a better readibility
Dataset kilt_tasks downloaded and prepared to /people/lerner/.cache/huggingface/datasets/kilt_tasks/all_tasks/1.0.0/821c4295a2c35db2847585918d9c47d7f028f1a26b78825d8e77cd3aeb2621a1. Subsequent calls will reuse this data.
# empty string in triviaqa input field
In [36]: dataset['train_triviaqa'][0]
Out[36]:
{'id': 'dpql_5197',
'input': '',
'meta': {'left_context': '',
'mention': '',
'obj_surface': {'text': []},
'partial_evidence': {'end_paragraph_id': [],
'meta': [],
'section': [],
'start_paragraph_id': [],
'title': [],
'wikipedia_id': []},
'right_context': '',
'sub_surface': {'text': []},
'subj_aliases': {'text': []},
'template_questions': {'text': []}},
'output': {'answer': ['five £', '5 £', '£5', 'five £'],
'meta': [],
'provenance': [{'bleu_score': [1.0],
'end_character': [248],
'end_paragraph_id': [30],
'meta': [],
'section': ['Section::::Question of legal tender.\n'],
'start_character': [246],
'start_paragraph_id': [30],
'title': ['Banknotes of the pound sterling'],
'wikipedia_id': ['270680']}]}}
In [35]: dataset['train_triviaqa']['input'][:10]
Out[35]: ['', '', '', '', '', '', '', '', '', '']
# same with test set
In [37]: dataset['test_triviaqa']['input'][:10]
Out[37]: ['', '', '', '', '', '', '', '', '', '']
# works fine with natural questions
In [34]: dataset['train_nq']['input'][:10]
Out[34]:
['how i.met your mother who is the mother',
'who had the most wins in the nfl',
'who played mantis guardians of the galaxy 2',
'what channel is the premier league on in france',
"god's not dead a light in the darkness release date",
'who is the current president of un general assembly',
'when do the eclipse supposed to take place',
'what is the name of the sea surrounding dubai',
'who holds the nba record for most points in a career',
'when did the new maze runner movie come out']
```
Stay safe :)
Just found out about https://github.com/huggingface/datasets/blob/master/datasets/kilt_tasks/README.md
(Not very clear in https://huggingface.co/datasets/kilt_tasks links to http://github.com/huggingface/datasets/datasets/kilt_tasks/README.md which is dead, closing the issue though :)) | [
0.415424943,
-0.3093398511,
-0.0309625696,
0.0308452696,
0.2169785351,
0.0481553376,
0.6097394228,
0.4196389318,
0.1841183007,
0.1952490509,
0.3654613197,
0.5179553628,
-0.0468076915,
0.4430814981,
0.0452620201,
0.0297369082,
0.0262946337,
0.0816091746,
0.2449792475,
-0.134907946,
-0.0702610835,
0.1185156628,
-0.5049003959,
-0.3920862675,
-0.6020741463,
0.0715129822,
-0.1471184492,
0.1056131124,
0.1308468878,
-0.3451225162,
0.2047570348,
-0.1966236383,
-0.2979111671,
0.2347993255,
-0.0001233155,
-0.1518162042,
0.4405512512,
-0.1911161542,
-0.5569394231,
-0.2748934031,
-0.5155436993,
0.041487053,
0.1126812324,
-0.3192619681,
-0.0520289987,
0.3783488274,
-0.0556889027,
-0.5345301628,
0.1037188992,
0.3284580708,
0.082818836,
0.2482210845,
-0.4270980358,
-0.0155320577,
0.0678358674,
0.2325285673,
-0.0963374004,
-0.188725099,
-0.0307343677,
0.0090681091,
-0.0292264745,
0.3749614656,
0.055250518,
0.0512047112,
-0.0871714428,
0.1463880837,
-0.1052400768,
-0.5381208062,
0.4375944138,
0.4902978837,
0.0022715181,
-0.0752101019,
-0.3428651392,
-0.3614495993,
0.0746594816,
0.0352612808,
0.1127898246,
0.458781749,
-0.1910826713,
-0.128039822,
-0.0515871793,
0.0197216049,
-0.0616242588,
-0.046787899,
-0.5572408438,
0.3227187395,
0.0275500603,
-0.0352288522,
-0.1186474562,
-0.0792262554,
0.0615168326,
-0.3293150663,
-0.2264246345,
0.1363898814,
-0.4327517748,
-0.0133392662,
0.0735010654,
0.0046053641,
0.0714487433,
-0.0606745109,
0.0952836424,
0.1380964667,
0.0809556693,
0.0362242013,
0.3264834583,
0.2131466269,
0.6067310572,
-0.2336504459,
-0.1019394919,
-0.014645908,
-0.289934814,
0.0237062406,
0.0154170655,
0.2261017114,
-0.1452406943,
-0.1047834605,
0.5170951486,
-0.163851127,
-0.4324897826,
0.1947111636,
-0.3115719557,
0.000084877,
-0.2510179877,
0.118045643,
-0.2242431194,
0.4553078711,
-0.2690631747,
0.3509601355,
-0.1322487593,
-0.3637270331,
-0.2435651273,
0.082548745,
0.0769861042,
0.0719892532,
0.1621543616,
-0.3181547523,
0.2477091104,
0.1627959758,
-0.0797332972,
-0.1926609874,
0.3062609136,
-0.2796264887,
0.1648171395,
0.2342653871,
0.1821508557,
0.1010708958,
0.2721574306,
-0.1779697239,
0.1281516701,
0.4900317788,
-0.2172442824,
-0.1591303647,
-0.1640295982,
0.0902909115,
-0.5352232456,
-0.1692021638,
0.0077250898,
0.3015998006,
-0.0443644859,
-0.0157210454,
-0.0389804281,
-0.0784886777,
-0.0181760341,
-0.1367530376,
0.3983203769,
0.4051302671,
-0.6290894151,
-0.0194265172,
-0.1245944723,
0.4337547719,
0.0284347758,
-0.0846945196,
0.0023018681,
0.4501263797,
0.0450163558,
0.4883407056,
0.1594998389,
-0.6424002647,
0.1234372258,
0.1109093279,
0.0765336305,
0.2729056776,
0.0170960985,
-0.1520427912,
0.2271611989,
0.3121139705,
0.1535470933,
0.0757144392,
-0.1106448248,
-0.0357704461,
-0.4687983394,
-0.2415016592,
0.3733983636,
0.1570776701,
0.0501448698,
-0.1175259352,
-0.0163034573,
0.3112975061,
0.144343704,
0.0159369875,
0.1407603025,
0.2728124857,
0.4098912776,
-0.1147983521,
-0.0665837526,
0.0518391877,
-0.4112519026,
0.1828292459,
0.0253061727,
0.42655316,
0.0540689081,
-0.2753804922,
-0.3356619775,
-0.0422767997,
-0.366150856,
-0.5387895107,
0.0638961047,
-0.0977969617,
0.0266560242,
0.279116869,
-0.2297953367,
0.049998574,
-0.0683450177,
0.0233629271,
-0.418879807,
0.1438495666,
0.1057638377,
-0.0649686903,
-0.3397311568,
0.4472500682,
0.0299083982,
-0.027710611,
0.0762489885,
0.2349159569,
0.3358783722,
0.0155418813,
0.393942982,
-0.1505120844,
0.223167479,
-0.1009625942,
-0.0389686823,
0.2608836889,
0.2673654556,
-0.2982001305,
-0.5522267818,
0.4946860075,
0.0474160835,
0.1908843368,
-0.1122227535,
0.0049033836,
-0.2117700577,
-0.1756968796,
-0.1037320718,
-0.0738084987,
-0.0485364087,
-0.4181036353,
0.0915502831,
0.0548915341,
-0.2473302633,
0.2331141531,
0.3761447072,
0.1827237308,
0.1425496787,
-0.1430836618,
-0.2738609612,
-0.1377913058,
0.1052864119,
0.1902401447,
0.2923647463,
0.133227095,
0.0850077644,
-0.198643133,
0.2707416415,
-0.1987443268,
0.2556270063,
0.2737279236,
0.0222737156,
0.3003897965,
0.2671946585,
0.0109337159,
-0.0619638711,
0.2227358967,
0.2534606457,
0.1360458583,
-0.1222360134,
-0.0501957163,
-0.2849495113,
-0.1190201268,
-0.0362400077,
-0.0462102592,
-0.1145283133,
-0.5389602184,
-0.0615607277,
-0.1473471224,
-0.0517595261,
0.0327145532,
-0.1225994825,
0.2000131756,
0.1589457095,
-0.4246271253,
-0.290756166,
-0.4309134781,
-0.2542897761,
0.0144866258,
0.0569267198,
0.0548991039,
-0.0078119151,
0.0646722764,
-0.1538104862,
-0.1130123958,
-0.5093660951,
-0.0147379916,
-0.3350980878,
0.4982029498,
0.0131056048,
0.4966795146,
-0.3786387146,
-0.0884269029,
0.3220567703,
0.0506735072,
-0.2215314209,
0.1099404246,
0.1743040383,
0.130715996,
-0.4416177273,
-0.7334837317,
-0.0226351544,
-0.0964591727,
0.0566736236,
0.0583064705,
-0.1101085767,
0.4022307396,
-0.0306141116,
0.3108608425,
0.0632258505,
-0.3287021518,
-0.151358515,
-0.15706864,
0.3093296885,
-0.0767927244,
-0.3370244503,
0.2594740987,
-0.2156603336,
0.4304481447,
-0.1713770926,
-0.454192698,
-0.1187740713,
-0.014037597,
0.4953699112,
0.1077459902,
-0.2205436975,
0.1702055335,
-0.041014649,
0.0568225682,
-0.1034190059,
0.0223845392,
0.2761442661,
0.2957691252,
0.2035991848,
-0.0116866371,
0.125398159,
0.2966402173,
0.4599236846,
0.0736205205,
0.3123475313,
0.1346441209,
-0.3639743328,
0.278357327,
-0.2543645501,
-0.0631805286,
0.2531130314,
0.0127648339,
0.0002653599,
0.3142952025,
-0.0756886452,
0.3516100347,
-0.1441332698,
0.2436690629,
-0.4402593374,
-0.2558324337,
0.0311886724,
-0.3067447245,
0.1770626903,
0.1730919629,
0.3619165421,
-0.0012296662,
-0.2652312517,
-0.0778279379,
-0.2306249738,
0.1061032787,
-0.0954855382,
-0.2690649629,
0.0621837787,
-0.2401294112,
0.1976778954,
0.2481330037,
0.2003751546,
0.0504090041,
-0.3557698727,
0.14613989,
-0.0704360381,
0.7759655714,
-0.0856231973,
-0.1360181272,
0.1071126163,
0.060443759,
-0.4118791521,
-0.0626498237,
-0.2942464948,
-0.1385631561,
0.2875733972,
0.2528026998,
-0.2654586732,
-0.0095641948,
0.1142153293,
0.2417780757,
-0.1778233796,
0.1597912908,
-0.3231334388,
-0.289019376,
0.0330561176,
-0.1219751015,
-0.0633419976,
0.5701516271,
-0.1483331919,
0.0315103605,
-0.209376663,
0.0593040735,
0.3717397451,
0.1712848842,
0.5655802488,
-0.1246211082,
0.2135389298,
-0.0758488104,
-0.3037152588,
-0.2119698226,
0.3906048536,
0.0980000049,
0.0490787439,
0.078046456,
-0.3931385577,
0.4202155769,
0.4430992305,
0.1791416854,
0.3714132011,
-0.2220450044,
-0.0331356823,
-0.186025247,
0.1904964447,
0.083321549,
-0.1519440711,
-0.0232095681,
-0.2001503706,
0.2331857234,
-0.1087858379,
0.1211943179,
0.1551268697,
0.1107930988,
-0.0085572395,
0.278483212,
0.1261937171,
0.8262000084,
0.1877864003,
0.3258032501,
0.4941945672,
0.2213573903,
0.2021895051,
-0.2013832182,
0.0570374168,
-0.4586982727,
-0.0392896906,
-0.0270803794,
0.0808950961,
0.2617102265,
0.0104312841,
-0.2232198864,
0.1786381006,
-0.0291299075,
0.3884907365,
0.0265638418,
0.0543491766,
-0.1113886014,
0.0684938729,
-0.0016608816,
0.0688229501,
-0.0286208913,
0.1248943657,
0.081386283,
-0.1425545961,
-0.2323156744,
-0.0525589585,
-0.0902596414,
0.2771009207,
-0.1811249405,
-0.0206348822,
0.4377573729,
-0.2984697819,
-0.1590679884,
0.6575036645,
0.1915821135,
0.155842483,
-0.1707691103,
0.3402538896,
0.1424962431,
0.055643294,
0.3146828413,
0.1460885108,
0.1573824733,
0.0270129144,
-0.3823416829,
0.3358509541,
-0.3731910586,
0.2302523851,
-0.4702820778,
0.285764575,
0.1192928031,
-0.2572234869,
-0.5466192961,
-0.048477456,
0.1750347912,
-0.10812217,
0.0601017624,
-0.2077104598,
-0.0742997527,
0.1068055555,
-0.0123083144,
-0.3217715621,
0.0258913413,
0.1559457928,
-0.0144760031,
0.1936580539,
0.6203402877,
-0.0312075391,
0.0547927767,
-0.2772302628,
0.3882182837,
-0.1792589426,
-0.0877215862,
0.1648571789,
0.1916457862,
-0.0352728367,
0.0381988809,
0.4818540514,
-0.1220282316,
-0.0431361049,
-0.1034763232,
-0.288536489,
0.1736023128,
0.267167151,
-0.0728946254,
0.162969768,
0.1281932741,
-0.0150425564,
0.1816092134,
0.0585283712,
-0.1931366175,
0.1472180486,
-0.2093850374,
0.3508728147,
-0.1339954585,
-0.0659424365,
0.5642384291,
-0.1818601042,
0.0584105514,
0.0066461582,
0.1339649558,
-0.1970189512,
-0.2558172047,
0.1585150361,
0.1788582802,
0.2830892205,
-0.0859067366,
0.0186237097,
-0.0393617079,
-0.1434950531,
0.1618817002,
0.0761123598,
-0.0985505134,
0.3253031969,
0.2054098845,
0.4561518431,
-0.4297523499,
-0.046274934,
0.0225315876,
-0.0728758276,
0.1214918047,
0.0392027199,
0.0421897918,
0.1383531988,
0.0407989956,
0.0577993728,
-0.1012857705,
-0.3686122298,
0.0466553941,
-0.415779084,
0.0677365363,
-0.1016995758,
-0.0981460214,
0.2605662942,
-0.3660265505,
0.1142996922,
0.0204202421,
0.1428683996,
-0.1888909191,
0.3221551776,
-0.1179341674,
0.1958062351,
0.0714627057,
0.2107000351,
0.1286305487,
-0.1363973916,
0.2871671915,
0.117580153,
0.0364160426,
-0.666467309,
0.3755866289,
0.3628863394,
-0.0350857526,
0.0309829693,
-0.0771123692,
-0.2520349026,
-0.3919236958,
0.450619489,
0.0629536435,
0.4828096032,
0.1476822793,
-0.2308727801,
-0.1054596454,
-0.007099174,
0.0878534019,
0.1100845188,
-0.2691179514,
0.0139352065,
0.1670454293,
0.589068532,
0.01499689,
-0.304474026,
-0.005516082,
-0.2003389597,
-0.2105047703,
-0.1267281473,
-0.0836271197,
-0.1083176732,
-0.0754744411,
-0.0436582975,
0.2366988212,
-0.1012167558,
0.1387131214,
0.21776326,
-0.032705795,
-0.2060093582,
-0.1638245583,
0.336845547,
0.3360430896,
-0.0687319785,
0.329507947,
0.1154531464,
0.0655892789,
0.3455822468,
0.2013692111,
0.2794662416,
0.142392382,
-0.4256038368,
0.0391972661,
-0.0918236822,
-0.2768029571,
0.2572434545,
0.1200451702,
0.1936915219,
0.2200850844,
0.4399840236,
0.0890709758,
-0.0737404078,
-0.066883713,
0.3249744177,
-0.1388743967,
-0.3395925462,
0.3811064065,
0.0413786508,
-0.0053411126,
-0.067585431,
-0.0224711448,
-0.4967589378,
-0.0474368967,
-0.0220720284,
0.3517432213,
0.0326016918,
-0.0114299804,
0.0394003913,
-0.0662377998,
0.1697605997,
0.1508942395,
-0.0164641272,
-0.2606027126,
-0.0459896922,
-0.714171052,
-0.0054462031,
-0.0581674613,
-0.2517245114,
0.018905744,
0.164165616,
-0.1548177451,
-0.0626189709,
-0.3487445712,
-0.2288344055,
0.1530581117,
-0.1076024473,
-0.6533305645,
-0.0671839416,
-0.0007707346,
-0.2528153658,
-0.0974927396,
-0.2104123235,
0.0520488732,
0.0282571353,
-0.1157069653,
0.1471559852,
-0.2626266778,
0.065545544,
0.07913737,
-0.2817265391,
-0.1671253145,
0.4770954847,
0.1151686534,
0.0676664934,
-0.1748857051,
0.0807636976,
-0.0295651294,
0.0588540062,
0.1463176906,
0.3296325505,
0.1459771395,
-0.1990504861,
0.1463582069,
0.4578505158,
0.2763279676,
-0.011740081,
-0.1037373543,
0.1773372591,
-0.0981270075,
0.1541681886,
0.1440640837,
0.2231407017,
-0.1246733218,
0.2193227857,
-0.1163199097,
-0.2539955378,
0.2665929794,
-0.5438081622,
-0.3536891639,
-0.2601946294,
0.104940258,
0.0536958128,
-0.1772626787,
-0.9156138301,
-0.293112725,
0.2973382771,
-0.0863227993,
0.008624658,
0.1512213349,
-0.0172128454,
0.0925925747,
-0.2654482722,
-0.159766674,
0.0733579695,
0.0531111658,
0.0430422127,
-0.2308627069
] |
https://github.com/huggingface/datasets/issues/790 | Error running pip install -e ".[dev]" on MacOS 10.13.6: faiss/python does not exist | I saw that `faiss-cpu` 1.6.4.post2 was released recently to fix the installation on macos. It should work now | I was following along with https://huggingface.co/docs/datasets/share_dataset.html#adding-tests-and-metadata-to-the-dataset when I ran into this error.
```sh
git clone https://github.com/huggingface/datasets
cd datasets
virtualenv venv -p python3 --system-site-packages
source venv/bin/activate
pip install -e ".[dev]"
```
![image](https://user-images.githubusercontent.com/59632/97868518-72871800-1cd5-11eb-9cd2-37d4e9d20b39.png)
![image](https://user-images.githubusercontent.com/59632/97868592-977b8b00-1cd5-11eb-8f3c-0c409616149c.png)
Python 3.7.7
| 18 | Error running pip install -e ".[dev]" on MacOS 10.13.6: faiss/python does not exist
I was following along with https://huggingface.co/docs/datasets/share_dataset.html#adding-tests-and-metadata-to-the-dataset when I ran into this error.
```sh
git clone https://github.com/huggingface/datasets
cd datasets
virtualenv venv -p python3 --system-site-packages
source venv/bin/activate
pip install -e ".[dev]"
```
![image](https://user-images.githubusercontent.com/59632/97868518-72871800-1cd5-11eb-9cd2-37d4e9d20b39.png)
![image](https://user-images.githubusercontent.com/59632/97868592-977b8b00-1cd5-11eb-8f3c-0c409616149c.png)
Python 3.7.7
I saw that `faiss-cpu` 1.6.4.post2 was released recently to fix the installation on macos. It should work now | [
-0.0769134313,
-0.4744409323,
-0.1149003953,
-0.0313249379,
0.0470356233,
0.0747046694,
-0.2394819558,
0.2321128547,
0.3420978785,
0.0246699862,
-0.0713813007,
0.2375312001,
0.0024274364,
0.0662581474,
0.0126582459,
0.0398927964,
0.4198972285,
0.2260308266,
-0.0316484906,
-0.2329013944,
0.0014593452,
0.3070568442,
-0.0191777796,
0.0570395775,
-0.1384631395,
0.0629521534,
-0.2245896012,
0.0982489362,
-0.2784337997,
-0.4324710369,
0.1324750483,
-0.1166827753,
0.0231350139,
0.4486966729,
-0.0001248198,
0.1516884565,
0.2149830759,
0.0974139422,
-0.2460972071,
-0.3716697693,
-0.1054945439,
-0.3073155284,
0.1879499555,
-0.0491279513,
0.1565122008,
-0.0496590957,
0.0473566502,
-0.1054644063,
0.2997089624,
0.1950039566,
0.1107114255,
0.4596008658,
0.3656333685,
-0.1996755898,
0.0875820071,
0.1747204363,
-0.232346639,
0.1902423799,
0.2368944585,
0.1777073443,
0.524268806,
0.1032261476,
-0.024086047,
-0.0498315357,
0.0052528176,
-0.0410644524,
0.2971590161,
-0.2509603798,
-0.1255889237,
0.0883225799,
-0.0781334043,
-0.2779023945,
-0.4838898182,
-0.1123396009,
0.1949888915,
-0.147577554,
0.2691462636,
0.2406690121,
-0.2661559284,
0.2806166708,
-0.0845105648,
-0.5820127726,
-0.1115580648,
0.077385284,
0.1476294398,
0.0403322205,
-0.1895346045,
0.0433258824,
0.2459105551,
0.0419016816,
-0.3036503792,
0.0213176198,
0.2408441454,
0.2564200461,
-0.2195349783,
-0.1184684709,
-0.0794373304,
-0.0824058354,
0.0761009529,
-0.2071831673,
-0.6648664474,
-0.3138444126,
-0.2615453899,
0.2230482399,
-0.0323680378,
-0.0902223438,
-0.0856784508,
-0.005655203,
-0.0009374069,
0.0231708549,
0.2461709082,
0.0166703444,
-0.1541396528,
-0.135224089,
-0.7007263899,
-0.3548826277,
0.2498070896,
-0.1318223774,
-0.4621342421,
0.1604495496,
0.0744873434,
0.0655441731,
0.0822719783,
0.3852747381,
0.0288051404,
-0.1056586355,
0.1026319936,
0.2561386824,
-0.237770766,
0.1440690905,
-0.0480729677,
0.1899400055,
-0.1215002015,
-0.0111382958,
0.1212951988,
-0.3222524822,
0.3431434929,
0.1137486398,
0.0346560329,
0.1365531534,
-0.2019346505,
0.1111454219,
-0.2067694962,
0.5875925422,
0.0539904684,
0.179409802,
0.1431519836,
0.1792559326,
-0.1760356724,
0.1573632509,
-0.2410852611,
-0.2445088923,
-0.2892551124,
0.0698316246,
-0.239005506,
-0.1153462604,
-0.0618095472,
-0.2575480342,
-0.0898602456,
0.1062232852,
0.0646144152,
-0.0425122529,
0.1820686907,
-0.1051481962,
0.1427768469,
0.0718974695,
-0.1721667647,
-0.2253898829,
-0.2511171699,
-0.1698783338,
-0.093329668,
0.3640253544,
0.2783348858,
0.220058918,
-0.2688329816,
-0.1268993318,
0.4351513684,
-0.5085305572,
0.0122089237,
0.2115217298,
0.0271881297,
-0.1193127632,
0.1028825045,
-0.1287749261,
-0.4710628688,
0.1020346358,
-0.0978004932,
0.0465044938,
-0.0181764346,
-0.2232404947,
-0.1655160785,
-0.5149329901,
-0.0163658373,
0.3023717999,
0.1532715261,
-0.0726738274,
-0.0383702591,
-0.3819715977,
0.1565913111,
-0.0442995653,
0.0273571387,
0.4160863161,
0.8438923359,
0.521322906,
-0.0873946398,
-0.3666566312,
0.2548882365,
0.2190488577,
0.0821945816,
0.0615979247,
-0.4336167574,
-0.1164685786,
-0.1909638792,
0.4214518666,
0.0527327955,
-0.18179138,
-0.0493553393,
-0.0084571578,
0.2206206471,
0.2580860853,
-0.3192430735,
0.2147800922,
-0.0341656581,
0.3442053199,
-0.4534941614,
0.1650848985,
-0.2749231458,
-0.0954193175,
-0.1468307227,
0.3459377587,
-0.0019028177,
-0.0620548129,
0.0765881389,
0.289416492,
0.0595694073,
-0.2615383565,
0.2932677567,
-0.0617160723,
0.0749861822,
-0.2080417573,
0.1504720896,
-0.0534187704,
-0.0314482674,
0.3963765204,
0.0543087833,
0.0109214261,
-0.0260631349,
0.135711804,
0.2305483222,
0.2402283698,
0.2736194134,
0.0662930757,
0.0941660553,
-0.2988329232,
0.3442800641,
0.0353484042,
0.3008335829,
-0.1841423959,
0.1190160587,
-0.0637626797,
0.1355282366,
-0.0006027743,
0.0433989242,
0.2118342519,
-0.0962957218,
0.249870941,
0.0397550762,
-0.3664266169,
0.5468246341,
0.0831656009,
-0.2761649489,
0.1839735806,
-0.0554184914,
-0.0488275252,
0.2700512707,
0.0076513123,
0.0988887399,
-0.104802236,
-0.0599190779,
-0.0862976387,
-0.2169668972,
-0.4104290903,
-0.0999901295,
0.2072316706,
-0.3612686098,
-0.0186499134,
-0.0393622555,
0.0769584626,
-0.1209061146,
-0.3665560782,
-0.4147289395,
-0.1603592485,
0.2663109899,
0.0446304753,
0.0994489342,
0.2024787962,
-0.0282270983,
0.0350037068,
0.0785412639,
-0.1282933503,
-0.2449281812,
-0.0739495754,
0.0042507537,
-0.0038533062,
-0.1449311972,
0.0087598115,
0.3355324566,
-0.1896275133,
-0.1491669714,
-0.3814896643,
-0.3965196609,
0.2551425695,
-0.4297251105,
0.4415015578,
0.3835312426,
0.072114788,
-0.0986623093,
0.0896865129,
0.2708005607,
-0.3785281181,
-0.3092986047,
-0.05528019,
0.033928711,
-0.275046736,
-0.194258064,
-0.2093296945,
-0.3411788642,
-0.0950078145,
0.3561178446,
-0.0179160684,
-0.08848463,
0.1934185028,
0.3617042601,
0.1097225696,
-0.0950982571,
0.0694146305,
-0.3011159003,
-0.3425507843,
0.0825264007,
-0.2646844089,
-0.238473773,
0.3331689835,
0.1514115781,
0.4445258379,
0.0719860792,
-0.3710216582,
-0.2489837408,
-0.2236432135,
0.4790896773,
-0.1239092574,
0.6306276917,
0.18990089,
0.0088171139,
0.0424110889,
-0.1913036853,
0.1098370701,
-0.1345636249,
-0.1592763066,
0.2964016795,
-0.1310560703,
0.4414907992,
-0.153994292,
0.8269537091,
0.3067981303,
0.0285531227,
0.2114058137,
-0.2127243727,
0.6402570009,
-0.0050479844,
-0.2645456195,
0.1621616334,
0.3845386505,
0.0281234831,
0.0711057782,
0.0809926689,
0.3834082186,
-0.0617694035,
0.1307184994,
-0.3502660692,
0.012170583,
-0.1711341292,
0.0333109275,
0.4369103909,
-0.1325213909,
0.0167510062,
-0.092144303,
-0.0246128887,
0.0159829445,
0.4872440398,
0.2405375093,
0.1135438234,
-0.0113857538,
-0.4339259863,
-0.4145160019,
0.1889892817,
-0.1134176031,
0.3609559536,
-0.1997368932,
0.1450020671,
0.2208951712,
0.1292620748,
0.7559735775,
-0.0684155524,
-0.2122817934,
-0.0792637393,
-0.0276478082,
-0.6903045774,
-0.1361580044,
-0.1578814089,
0.0670237094,
0.4556035101,
0.0213150308,
-0.2783056498,
-0.1888046563,
0.3221388757,
0.0266919807,
0.0881487429,
-0.367164582,
-0.4545158148,
-0.4209934473,
-0.326536864,
-0.0843289495,
0.0937029496,
-0.0363886803,
-0.1579377204,
0.2681915164,
-0.0576957539,
0.1077917814,
0.1095709875,
0.0996329039,
0.0358026512,
-0.2422956973,
0.2098242342,
0.1346708834,
-0.0248493962,
0.1933076084,
0.5703619719,
-0.0988546312,
-0.6263926029,
-0.107273832,
0.1094893664,
0.3423615098,
0.2046228945,
-0.1804569811,
0.0336654857,
0.1568721831,
0.2679291368,
-0.0799072236,
-0.0983624756,
0.3739107847,
0.2174786329,
-0.0990066379,
-0.0926614404,
0.2381319404,
0.3819631636,
0.1373057067,
-0.1019658521,
0.3287504911,
-0.0422443971,
0.2344635129,
-0.105983153,
0.7789879441,
-0.0867024213,
0.1590817571,
0.6274837255,
-0.0765037537,
0.893111527,
-0.3930598497,
0.0722028315,
-0.233035773,
0.0784886777,
0.0208486468,
-0.1331032813,
0.4661638737,
-0.028378766,
-0.1705219448,
0.2575986981,
0.3362355232,
-0.1226142272,
0.1674826443,
0.062643066,
-0.1270911545,
-0.1052536666,
-0.3380537629,
0.1101871282,
0.0485470258,
0.3355699778,
-0.1552786529,
0.2116864324,
-0.3033240736,
-0.1789357364,
-0.3892084956,
-0.0364008173,
0.0443953089,
0.3537196219,
0.4338513613,
-0.0443853438,
0.2167692035,
-0.21524176,
0.6817359924,
0.1902542859,
-0.326030314,
0.3821085393,
-0.2835858464,
-0.2325629443,
0.0873812214,
0.0371801779,
0.0813595504,
-0.149885416,
-0.4112210274,
0.0643610954,
-0.1144300103,
-0.1316246092,
-0.2042658478,
-0.0707616284,
-0.2570992708,
-0.1815522015,
-0.3102242351,
-0.0528332256,
0.2538766265,
-0.0137303397,
0.005024109,
0.2653236389,
-0.2492888272,
0.2417333871,
-0.2785976827,
-0.0418084487,
-0.2203864157,
0.157494992,
0.1125855744,
-0.318297267,
0.0629968196,
0.0499428213,
-0.1636690497,
-0.0395620316,
-0.3638560176,
-0.1107878387,
-0.2669746876,
-0.0840691477,
0.3426754177,
-0.2099532485,
-0.0303033311,
0.0186717845,
0.1352367401,
-0.302470237,
0.0215457603,
-0.3745931089,
-0.015157219,
0.1055135801,
-0.1055933163,
0.1561019719,
0.2724726796,
0.2867541313,
-0.0114068612,
-0.1035012379,
-0.1404444575,
0.0588219464,
0.0497312024,
-0.0730719417,
0.2619274855,
-0.0282082297,
0.2338467538,
-0.2521375716,
0.0764389411,
-0.1887473166,
-0.1489496529,
-0.0388766862,
0.044918038,
0.1710526049,
0.0894265175,
0.0066133961,
0.0042441264,
-0.0406662859,
-0.2779263854,
-0.0815339386,
0.1986552626,
0.1787801385,
-0.2327163815,
0.2087050527,
-0.4240726531,
-0.0751488507,
0.0302081704,
0.1574314088,
0.0957506299,
0.3788106143,
0.207585007,
0.2072232068,
-0.124037236,
0.1277693063,
-0.1183499768,
-0.0022444651,
0.120542191,
0.1774628758,
0.154958725,
-0.289274931,
-0.1221727058,
-0.1425923109,
0.3925552666,
0.3052445054,
-0.1155147403,
0.1737234294,
0.4368032217,
0.0998251289,
-0.3585015535,
0.0340150557,
0.4373784661,
0.028970588,
-0.017687656,
0.2994977534,
0.2153300941,
-0.0105130672,
0.2599744499,
0.2954026461,
0.2535754442,
0.1891104579,
0.1018960252,
-0.1194957495,
0.1733826697,
0.0737444907,
-0.0307609737,
0.1063572168,
0.1197479963,
0.5863199234,
-0.192363739,
0.1603043377,
-0.1387949586,
0.1327588558,
0.1539234519,
-0.2321937829,
0.1293734014,
-0.2308661491,
0.1097542048,
-0.061226435,
-0.1860147119,
0.2869600952,
-0.2451806664,
-0.2856751978,
-0.2843365669,
0.3253024817,
-0.1350785494,
-0.0787957832,
0.2950962782,
0.0836122036,
-0.0231722221,
-0.0377522595,
0.2906119823,
-0.4265964925,
0.1664596498,
0.3014776409,
-0.0952509493,
-0.4780475497,
-0.0592676997,
0.451956749,
0.0746057481,
0.0984162837,
0.2571077049,
-0.0159451924,
-0.3997569382,
-0.1361054778,
0.3688997626,
0.7117068172,
0.1954545826,
0.1044973284,
0.1515868455,
-0.2034652084,
0.149074778,
-0.0896823481,
0.1261640787,
-0.110612303,
0.3228428066,
0.0242028981,
0.0970538855,
-0.0205111317,
-0.3307760656,
-0.0061043305,
0.2146986425,
-0.278203696,
0.1584507078,
-0.2380262613,
-0.0854861885,
-0.0862475336,
0.0479845405,
-0.6899209023,
0.1493896842,
0.2461605668,
0.1270478368,
-0.1731128544,
-0.321834445,
-0.0119329765,
-0.100067094,
0.1747179031,
0.6672797203,
0.3155686259,
-0.2467532605,
-0.1719848663,
-0.3748021722,
0.1280722618,
-0.2415082306,
-0.2867250144,
0.0783743411,
0.0326478928,
-0.0608054399,
0.1358947158,
0.322925061,
-0.0712391287,
-0.0536541343,
0.0441731811,
-0.0927750841,
-0.1543511301,
-0.163869977,
-0.2126146853,
0.2131003886,
0.0746028721,
-0.0040109418,
-0.1527811438,
-0.1440477371,
-0.1683675051,
0.1801645011,
-0.0409720764,
-0.3412228525,
0.5376924276,
0.2197141051,
0.2743598223,
-0.0054462105,
-0.3348968625,
-0.2708341181,
-0.2661762238,
-0.1113563925,
0.3895551562,
-0.1045996845,
0.0746271461,
-0.363681972,
-0.3409651518,
-0.3371859491,
0.4985396564,
0.2556685209,
-0.4602462351,
0.019607909,
0.3215571344,
-0.3260339499,
0.4232560694,
0.1707066298,
0.2509987354,
-0.1147207916,
0.5524261594,
-0.2126501501,
-0.1802526563,
0.3853513002,
-0.1864646822,
-0.2123773992,
-0.1088997498,
0.2661766112,
0.2009278387,
-0.1819356233,
-0.8109849691,
0.0378589779,
0.1709185243,
0.2873196304,
-0.1208507121,
0.1078975797,
-0.0183059741,
-0.0817393586,
-0.0000583753,
0.4948093891,
-0.1948237568,
-0.0330202989,
0.4954167604,
-0.0978309289
] |
https://github.com/huggingface/datasets/issues/786 | feat(dataset): multiprocessing _generate_examples | I agree that would be cool :)
Right now the only distributed dataset builder is based on Apache Beam so you can use distributed processing frameworks like Dataflow, Spark, Flink etc. to build your dataset but it's not really well suited for single-worker parallel processing afaik | forking this out of #741, this issue is only regarding multiprocessing
I'd love if there was a dataset configuration parameter `workers`, where when it is `1` it behaves as it does right now, and when its `>1` maybe `_generate_examples` can also get the `pool` and return an iterable using the pool.
In my use case, I would instead of:
```python
for datum in data:
yield self.load_datum(datum)
```
do:
```python
return pool.map(self.load_datum, data)
```
As the dataset in question, as an example, has **only** 7000 rows, and takes 10 seconds to load each row on average, it takes almost 20 hours to load the entire dataset.
If this was a larger dataset (and many such datasets exist), it would take multiple days to complete.
Using multiprocessing, for example, 40 cores, could speed it up dramatically. For this dataset, hopefully to fully load in under an hour. | 46 | feat(dataset): multiprocessing _generate_examples
forking this out of #741, this issue is only regarding multiprocessing
I'd love if there was a dataset configuration parameter `workers`, where when it is `1` it behaves as it does right now, and when its `>1` maybe `_generate_examples` can also get the `pool` and return an iterable using the pool.
In my use case, I would instead of:
```python
for datum in data:
yield self.load_datum(datum)
```
do:
```python
return pool.map(self.load_datum, data)
```
As the dataset in question, as an example, has **only** 7000 rows, and takes 10 seconds to load each row on average, it takes almost 20 hours to load the entire dataset.
If this was a larger dataset (and many such datasets exist), it would take multiple days to complete.
Using multiprocessing, for example, 40 cores, could speed it up dramatically. For this dataset, hopefully to fully load in under an hour.
I agree that would be cool :)
Right now the only distributed dataset builder is based on Apache Beam so you can use distributed processing frameworks like Dataflow, Spark, Flink etc. to build your dataset but it's not really well suited for single-worker parallel processing afaik | [
-0.5645691156,
-0.1257421225,
-0.1173854768,
-0.1666329503,
-0.0713060647,
-0.0848813206,
0.3084896207,
0.3450714052,
0.1016157717,
0.4008845091,
0.2586759627,
0.1760062128,
0.0299799256,
0.1242405698,
0.1066482663,
0.0938057601,
0.0195516646,
0.1313363016,
-0.2605700791,
-0.0488939919,
-0.3563634157,
-0.0217419136,
-0.0285442024,
-0.1431760937,
-0.3056103885,
-0.1653452665,
-0.0860955492,
0.0822234303,
0.0034815632,
-0.2213502228,
0.1820406616,
0.5444226265,
0.2789004445,
0.4126893282,
-0.0001032015,
-0.0390750691,
0.2969442904,
0.0052960739,
-0.3610213995,
-0.1338658035,
-0.1356738806,
-0.316005975,
0.020559229,
-0.2597045302,
0.0211864188,
-0.1879756302,
0.2461586297,
-0.4733567238,
0.0596728623,
-0.1250499785,
0.2303161621,
0.3476171792,
-0.2190501094,
-0.2033668309,
-0.154028818,
-0.0212982632,
-0.1601625383,
0.1414247304,
0.5995054245,
-0.3429677486,
-0.1796413809,
0.1688997895,
-0.026812207,
0.3214693666,
0.2588698268,
0.0280344374,
0.2928670347,
-0.4736999869,
-0.032228332,
0.2586962581,
0.3223201931,
-0.0653721467,
-0.4411689043,
-0.4137693048,
0.1503238231,
-0.1780724525,
0.0981074572,
0.4271345139,
-0.3625377715,
0.1794995964,
-0.3271012902,
0.0309628882,
-0.0444258675,
-0.0228913911,
0.0459825099,
0.4582169056,
0.1388121247,
0.1611203849,
0.2576365471,
0.0965295285,
0.3622556627,
-0.1368416101,
0.3720155656,
0.093911916,
-0.3785069585,
-0.0503509007,
0.1009612083,
-0.1761665493,
0.249861449,
-0.0211281702,
0.2596452832,
-0.0036763288,
-0.0463216566,
0.2976036668,
0.3191949129,
-0.3273789883,
-0.1877824664,
-0.0794776082,
0.2441906631,
-0.1838878095,
-0.0110037848,
0.0401750319,
-0.0484519638,
-0.2198257595,
0.2778866887,
0.0812507719,
0.0187792331,
0.1621411443,
-0.1537269056,
-0.2023273855,
0.0209044069,
-0.0703687444,
0.0725857466,
0.0811424106,
-0.0497734882,
0.5781407952,
-0.144365266,
0.0651179552,
-0.202837944,
-0.194552958,
-0.0828362554,
0.0311298706,
-0.220689863,
0.2142316103,
0.3574274182,
0.0354162119,
0.0963304415,
0.2090108991,
0.2967507839,
-0.0109736398,
0.4788136184,
-0.1122944728,
0.147423625,
0.1567318588,
0.0870101154,
-0.1228973567,
-0.1640131176,
-0.1195183024,
-0.2253353894,
0.1451943219,
-0.0699561983,
-0.4257087708,
-0.1593766958,
0.2495116293,
-0.0554909781,
0.1053341627,
-0.1263080388,
0.2614252269,
0.1310814768,
0.1803332716,
-0.0915225297,
-0.1575552821,
-0.2608852983,
-0.0602517501,
0.3258072436,
0.2831624746,
-0.1300889254,
0.2780073285,
0.0442510135,
0.0856355205,
0.1165905893,
0.1238761917,
-0.1102689728,
0.2128217369,
-0.1414509416,
-0.0521496907,
0.2380712032,
-0.1173015535,
-0.081239745,
0.3136307895,
-0.0579980202,
0.038903527,
0.161793977,
0.1347352266,
0.297061801,
-0.0906536579,
0.2421375215,
0.4703310728,
-0.3758900762,
0.2193627954,
-0.211672157,
-0.1738858372,
-0.1688483208,
0.2470005006,
0.156802386,
0.2567704022,
-0.0740775466,
-0.2490073293,
0.485902369,
-0.2836574912,
0.2944051921,
-0.0935088992,
-0.0824323148,
0.1030861512,
0.13913396,
-0.4160616696,
-0.2420695126,
0.3760921359,
0.169799149,
-0.0567645952,
0.0959129483,
-0.1960014701,
0.054476209,
0.1322982609,
-0.0876028538,
0.1565963775,
0.1157928482,
0.102667138,
-0.0603533536,
-0.4413430691,
-0.3751507998,
0.1957874745,
-0.0584251173,
-0.1846156418,
-0.1708140224,
0.1369485706,
0.2126252353,
-0.245749861,
0.1578000933,
0.0827548727,
-0.031887617,
-0.1456853747,
0.0526386984,
0.2507563531,
-0.0995185673,
0.3289549351,
0.1844169199,
0.3626993001,
0.1138873771,
0.1689614505,
0.0548266023,
0.0197907202,
0.0313608646,
-0.0820289701,
-0.156528607,
0.4870262146,
-0.3659533262,
0.3455126584,
0.1757376194,
0.1759543419,
0.4313525558,
0.1570577174,
-0.1642202139,
0.0836197659,
0.0856313258,
-0.0001002867,
0.3367017508,
-0.0109575884,
-0.4514662623,
0.3199448586,
0.1571623981,
-0.1823918372,
0.0331960879,
0.0422899686,
0.3300046623,
-0.1101243943,
0.144879818,
0.2291254699,
0.5229939222,
0.215485692,
0.2187858224,
-0.1615589261,
-0.1944315732,
-0.0688631684,
0.1502070874,
-0.0102945678,
0.320904851,
0.0703947395,
0.1357900947,
-0.2369158566,
-0.3364009261,
-0.3829322159,
0.1167748496,
0.0366259068,
-0.0017937273,
0.1108321622,
-0.0108284503,
0.1982710958,
-0.2554685175,
0.2144107819,
-0.0470127575,
-0.3205994964,
-0.0406118631,
0.543767333,
-0.0995171517,
0.1028354391,
-0.057021793,
0.2325582802,
-0.1785201728,
0.1215940192,
-0.1859093606,
-0.0988349244,
-0.0075362278,
0.0907952636,
-0.0857534632,
0.0673554838,
0.4577215016,
-0.0036935583,
-0.1043282598,
-0.4235869348,
0.1313674897,
0.0695391744,
0.0352149233,
0.1806469709,
0.210024029,
0.0348649323,
0.1539574713,
-0.2294794321,
0.1865985543,
-0.2671280205,
0.1010822654,
-0.1395899057,
-0.1501678824,
-0.0437800288,
-0.0780356601,
-0.0934932977,
-0.3203547001,
-0.4222767353,
0.1101504862,
-0.0202856474,
0.236502707,
-0.2105716914,
0.0797267258,
-0.1382806003,
0.3285046518,
-0.0509297848,
-0.1423626691,
-0.6931465864,
0.2833698392,
-0.265466392,
-0.1514151394,
-0.1869239956,
-0.1685640216,
0.0771843791,
0.4729092121,
-0.1621152163,
-0.0578050204,
-0.233481437,
0.1905857325,
-0.1642943919,
0.099854067,
0.2369589061,
0.1101683378,
-0.0786668211,
-0.1919139624,
-0.1630766988,
0.0809299648,
0.0563185848,
-0.1001630574,
0.1788741946,
0.2567814291,
0.0413922817,
0.7725027204,
0.2194133103,
0.1988107562,
0.2402209193,
0.0078342874,
-0.0833365023,
0.0221497752,
-0.2844357193,
0.0830956027,
-0.2348843813,
-0.0329471901,
0.0559265912,
0.0616143793,
-0.3387683034,
-0.020814389,
0.0103654265,
-0.2248633206,
-0.2632093728,
0.1790869087,
-0.3586714268,
0.3584164977,
0.0024201572,
0.0339502394,
-0.4918848872,
0.1724940538,
-0.1960073411,
-0.0399305746,
0.3679133952,
-0.1098932177,
-0.2278316915,
0.0442346148,
-0.6570864916,
0.0778432786,
0.0862709358,
0.304276824,
0.3668856919,
-0.0175184608,
0.0984902531,
-0.1723391265,
0.741086781,
-0.2485457957,
0.1069444567,
0.0468893126,
-0.4014096558,
-0.1866682172,
-0.129987523,
-0.0900291353,
0.5101510286,
-0.0021258602,
0.1709706336,
-0.2782420516,
-0.3481649756,
0.3125015795,
0.0452575386,
-0.1466347724,
-0.4707900286,
-0.2848755121,
-0.3556037247,
-0.1581221074,
0.1461620778,
0.0710197166,
0.2442391217,
-0.1179488003,
-0.2693721652,
-0.1128314212,
0.0451566651,
0.1888671964,
0.2391283959,
-0.1960515827,
-0.0799751654,
0.3443270028,
0.3194953799,
-0.1129853278,
-0.0440429375,
0.2980949581,
-0.2402563244,
-0.1970483959,
0.2273579538,
-0.1342853755,
0.3759772182,
0.279330641,
0.0216840468,
-0.0937472582,
0.0857072473,
0.2703035474,
-0.4555909634,
-0.1594093293,
0.1810455918,
0.0273317359,
-0.260070622,
-0.7640817761,
0.3955162466,
0.13336128,
-0.0282456726,
0.5454919934,
-0.4678732753,
-0.0673909634,
0.2504840791,
0.1616751552,
0.671631813,
-0.4381502271,
-0.0096945046,
-0.0543324463,
0.1736840755,
0.2533311546,
-0.406873554,
0.373517096,
-0.2473711967,
-0.4962445498,
0.0433147103,
-0.0401770584,
-0.0403908119,
0.5621013045,
-0.104796432,
0.263728857,
0.2577424645,
-0.0986188725,
-0.1023866162,
0.5208846331,
-0.4047094285,
-0.4902949631,
-0.3534136415,
0.1612682641,
0.144407168,
-0.1542769074,
-0.2018207312,
-0.0491421148,
0.3302106857,
0.0352741852,
-0.2761580348,
-0.0581102781,
0.0308565088,
0.1420061886,
0.1724434495,
-0.1520051509,
0.0007069707,
-0.0017292686,
-0.0600594617,
-0.0428904779,
-0.0431802943,
0.0672825873,
-0.0735357851,
0.3222304285,
-0.0456902198,
-0.1448188424,
0.1478891224,
-0.1173669547,
-0.3560069799,
-0.0174215548,
0.0659023672,
-0.2980071008,
-0.0524389744,
0.087612614,
0.1900137067,
0.0776734501,
0.1739652008,
0.2207458168,
-0.0774760246,
-0.2634599209,
0.1773032546,
0.259215951,
-0.1591294557,
0.4121065438,
-0.1334679276,
-0.1721583605,
-0.0717409328,
0.0189811345,
0.1435149014,
0.298317194,
0.197550118,
0.228143692,
-0.1307230294,
-0.2915334702,
-0.096161902,
-0.0146206766,
-0.2505440116,
0.3830241263,
-0.1070124805,
-0.2170334905,
0.1276377141,
0.0363723561,
0.1422407627,
-0.0898071975,
-0.1092830896,
-0.3186970949,
0.0299314111,
-0.0589665622,
-0.0572342388,
0.120449543,
0.1106843874,
0.0627136379,
0.1337473989,
0.1623997837,
-0.4223908782,
-0.2437303364,
-0.3316537142,
0.203082338,
-0.0897187442,
-0.0881296024,
-0.3060042262,
0.15482907,
0.184359163,
0.0427530035,
-0.1568904966,
-0.2756624818,
-0.1421666443,
0.1092786789,
-0.2088005394,
-0.0420717075,
0.3286162019,
-0.1136606261,
-0.4773368835,
-0.4502694011,
0.0990395769,
-0.0168696791,
-0.101727359,
-0.0424433202,
0.4718868732,
-0.0475665182,
-0.1252270192,
0.0859648585,
0.0560657196,
0.0705878884,
-0.204803437,
0.408660531,
0.3737768829,
-0.1439298987,
0.2186105251,
0.0627008229,
0.0857832283,
0.0712895319,
0.371137321,
0.0988221765,
-0.021230042,
0.1842220277,
0.4321990907,
0.3389214277,
0.0768691748,
0.1310526729,
0.0768426359,
0.3061863184,
-0.2509643137,
-0.2406507432,
0.1940490305,
0.0534909032,
0.3035958707,
0.3634155393,
0.0604068041,
-0.0709594339,
0.1178136244,
-0.0013648719,
0.1401931643,
-0.5134747028,
0.0488400497,
-0.0716382712,
0.1603371799,
0.0301356576,
0.2439597398,
-0.0188758485,
0.0672635138,
0.31095469,
0.0954862088,
0.4005775154,
0.2080336809,
0.1054891795,
0.1709964871,
-0.3073979616,
0.0586873628,
-0.0687563568,
-0.1944049001,
0.1913817525,
0.0423528887,
0.0321911834,
-0.581371069,
0.1025580019,
-0.3715052009,
0.0990830362,
-0.0097250221,
-0.1769031286,
-0.0922106057,
-0.2176013142,
-0.0591436401,
-0.0530651957,
-0.0142720994,
-0.0228078477,
0.6877745986,
-0.0163431019,
0.3382549286,
-0.3257787526,
0.1143597811,
-0.1425333023,
0.3084832132,
-0.3558642268,
-0.0218262356,
0.1639090925,
-0.1802689433,
-0.1380155981,
0.4435684085,
0.2227335423,
0.5573070049,
-0.1642800868,
0.2105741948,
-0.2797247469,
0.0043359548,
-0.4294219017,
0.1043738872,
-0.0820269138,
0.0729997158,
0.3381587565,
0.1928336322,
-0.1412855685,
-0.153568536,
0.1815541387,
-0.1677207202,
-0.4397655129,
0.2338458151,
0.2389795631,
-0.184984073,
0.0335124694,
0.2120639086,
-0.1895167828,
-0.0347715802,
0.4634002447,
-0.3911523521,
0.030899182,
-0.0786003917,
0.1328497827,
-0.1313944608,
0.6261085272,
0.0333568975,
0.1973293424,
-0.2347289324,
-0.0686429963,
-0.4603086114,
-0.0685926825,
-0.3893318772,
0.0762337968,
0.191521883,
0.4422731102,
0.0096241161,
0.2547316551,
0.0306569114,
0.0915273577,
-0.0673318058,
0.4843100309,
-0.2087248862,
-0.3480142355,
-0.0406164229,
0.1016360745,
0.0375812873,
-0.5921885967,
0.2953980863,
-0.1419313252,
0.1797691286,
-0.1234492362,
-0.0392189473,
0.4771952629,
-0.1351536363,
0.2389726043,
0.1778977364,
0.139862895,
-0.2325796336,
-0.0292729847,
-0.2865023017,
0.0202240609,
-0.2869167924,
0.1610231549,
0.0441067033,
0.068696633,
-0.2110840678,
0.1074416414,
-0.3195217848,
0.0339685939,
-0.1048384979,
0.1596550941,
-0.1011453271,
0.1625239551,
-0.1785961092,
0.1942609996,
-0.0893849283,
0.3384363651,
-0.0071136169,
0.0096895844,
-0.1954772174,
-0.2716715634,
0.1582386345,
-0.4215093255,
-0.588342905,
-0.5599811077,
0.2254883051,
-0.0359878503,
0.1533372253,
-0.1941949129,
-0.0357685909,
0.2993849218,
-0.0229389258,
-0.1977116317,
0.2384682596,
0.1119247079,
-0.2339146435,
-0.1713932455,
0.1260726452,
-0.0226454884,
-0.4274656773,
0.015132308,
-0.3583347499
] |
https://github.com/huggingface/datasets/issues/784 | Issue with downloading Wikipedia data for low resource language | Hello, maybe you could ty to use another date for the wikipedia dump (see the available [dates](https://dumps.wikimedia.org/jvwiki) here for `jv`) ? | Hi, I tried to download Sundanese and Javanese wikipedia data with the following snippet
```
jv_wiki = datasets.load_dataset('wikipedia', '20200501.jv', beam_runner='DirectRunner')
su_wiki = datasets.load_dataset('wikipedia', '20200501.su', beam_runner='DirectRunner')
```
And I get the following error for these two languages:
Javanese
```
FileNotFoundError: Couldn't find file at https://dumps.wikimedia.org/jvwiki/20200501/dumpstatus.json
```
Sundanese
```
FileNotFoundError: Couldn't find file at https://dumps.wikimedia.org/suwiki/20200501/dumpstatus.json
```
I found from https://github.com/huggingface/datasets/issues/577#issuecomment-688435085 that for small languages, they are directly downloaded and parsed from the Wikipedia dump site, but both of `https://dumps.wikimedia.org/jvwiki/20200501/dumpstatus.json` and `https://dumps.wikimedia.org/suwiki/20200501/dumpstatus.json` are no longer valid.
Any suggestions on how to handle this issue? Thanks! | 21 | Issue with downloading Wikipedia data for low resource language
Hi, I tried to download Sundanese and Javanese wikipedia data with the following snippet
```
jv_wiki = datasets.load_dataset('wikipedia', '20200501.jv', beam_runner='DirectRunner')
su_wiki = datasets.load_dataset('wikipedia', '20200501.su', beam_runner='DirectRunner')
```
And I get the following error for these two languages:
Javanese
```
FileNotFoundError: Couldn't find file at https://dumps.wikimedia.org/jvwiki/20200501/dumpstatus.json
```
Sundanese
```
FileNotFoundError: Couldn't find file at https://dumps.wikimedia.org/suwiki/20200501/dumpstatus.json
```
I found from https://github.com/huggingface/datasets/issues/577#issuecomment-688435085 that for small languages, they are directly downloaded and parsed from the Wikipedia dump site, but both of `https://dumps.wikimedia.org/jvwiki/20200501/dumpstatus.json` and `https://dumps.wikimedia.org/suwiki/20200501/dumpstatus.json` are no longer valid.
Any suggestions on how to handle this issue? Thanks!
Hello, maybe you could ty to use another date for the wikipedia dump (see the available [dates](https://dumps.wikimedia.org/jvwiki) here for `jv`) ? | [
0.1947146207,
-0.0537341833,
0.0254637673,
0.442694217,
0.1626283675,
0.0445553958,
0.0317906067,
0.4150586724,
0.0690618902,
-0.0053410456,
-0.2461342812,
-0.157081604,
0.383926183,
-0.2293257117,
-0.1017464101,
-0.5121182799,
0.1875390708,
0.0159036368,
0.0008712281,
-0.0452765226,
-0.1995978951,
-0.0525327735,
-0.1849025041,
0.032915663,
-0.251963973,
-0.0589048564,
-0.0247846581,
-0.0309203081,
-0.3356665969,
-0.2533815503,
0.2615024149,
0.1938854754,
0.3040903807,
0.3966019452,
-0.000123272,
-0.0804196149,
0.5516075492,
-0.0958508104,
-0.5192888379,
0.1004577503,
-0.2622406185,
-0.4349927902,
-0.2489450574,
-0.4146050811,
0.1061191112,
-0.1654886156,
0.2590548992,
-0.2643607259,
0.2706871629,
-0.0570042245,
0.1158644259,
0.1668394804,
0.0364763588,
-0.2329781651,
0.4131914377,
0.1898481101,
0.0390349105,
0.0292669684,
-0.1451529711,
0.0636959299,
0.0542549156,
0.2319208682,
-0.2538940012,
-0.0225602575,
0.1514423192,
0.0082279332,
-0.3298272491,
-0.4701971412,
0.4426454604,
0.4518272281,
0.9045659304,
-0.0191261098,
-0.564050436,
0.0585730597,
-0.123735413,
0.0984341651,
0.2193088084,
0.0888864696,
0.051430162,
0.0775279328,
0.2321285158,
-0.2720437348,
-0.1656736434,
0.5533049107,
-0.0247976929,
0.2829127014,
-0.0562557876,
0.0581288077,
-0.1414849162,
-0.371118933,
-0.1817738116,
-0.35215801,
-0.0746123791,
0.416182369,
0.0065643336,
-0.0056546926,
-0.0606310479,
0.0483589545,
0.1835198253,
-0.3325107694,
-0.0941732302,
0.0016860487,
-0.1492665857,
0.0613804311,
0.3583226204,
-0.3411812782,
0.1615508348,
-0.0928152502,
0.6022837162,
0.2045959383,
0.340293318,
-0.1207569167,
0.1436590105,
-0.2561023235,
-0.4732502103,
-0.1315379441,
0.3441406488,
-0.3749164045,
-0.0217505172,
0.2255957574,
-0.2683689594,
-0.1382701397,
-0.1619246304,
0.2328363955,
-0.1926215887,
0.4905366004,
0.2641061246,
0.3150092363,
-0.3032972217,
-0.2604722679,
-0.036503125,
0.2098364234,
0.0697662309,
0.1154753193,
0.1212363839,
0.1254825294,
0.3096586466,
0.1305265725,
-0.4090054929,
-0.1776621491,
-0.1842099726,
-0.3713511825,
-0.3349811137,
0.1222099438,
0.1611675918,
0.6101638079,
-0.1969009191,
-0.0326288864,
-0.1864064783,
0.0577009656,
-0.3059119284,
0.047169894,
0.0331950262,
0.065131627,
-0.3300113678,
0.1294767261,
-0.1013422459,
0.2805505395,
0.113820225,
-0.0870753452,
-0.0420230925,
0.1421463192,
-0.5038462877,
-0.2322124541,
0.3121337593,
0.573897481,
-0.2841926217,
-0.2117310017,
-0.2771613896,
-0.0527618974,
0.3993551731,
0.328574121,
-0.1766907275,
0.5292117596,
-0.138820231,
0.3341926038,
0.3454708457,
0.0033035874,
-0.2640665174,
0.3298970163,
0.0933334529,
-0.0103240535,
0.1576755643,
0.0565588512,
0.3707056344,
-0.2029203773,
0.0256963149,
0.4108988643,
0.1730249971,
-0.0056000799,
-0.4627688527,
-0.1843357533,
0.1190937385,
0.0089062005,
0.4738458395,
-0.1573352814,
0.2517452836,
0.8539654613,
0.1662378013,
-0.076420173,
0.3380643725,
0.4670496285,
-0.1945728958,
-0.0828920901,
0.0862237066,
0.0015235692,
-0.0667467713,
0.1740827709,
-0.0128848106,
0.0722473264,
-0.048151806,
-0.0805419162,
-0.4336926341,
-0.1321928948,
0.0781157911,
0.2217120379,
0.0627875701,
0.0161708742,
0.1256843209,
0.4031231999,
0.3853699267,
-0.2860013247,
0.0274521932,
-0.0765146241,
-0.2527936995,
0.3991634548,
-0.1151901931,
0.135763526,
0.1157582626,
-0.1102617458,
0.4241469502,
0.0914000049,
-0.0832198784,
0.1222257316,
0.1489982307,
0.2598075271,
0.1998367459,
-0.2001919448,
0.4503696859,
-0.104810819,
0.3533114791,
0.5322104692,
0.3143365383,
-0.1873883605,
-0.0633391216,
0.4248916507,
-0.093071036,
-0.0543666482,
-0.1247330904,
0.0032046288,
0.4307143986,
-0.0187592804,
0.2190229297,
-0.1407553703,
0.2445389181,
0.3082444668,
-0.1421489567,
0.1383507848,
-0.4233989716,
-0.163849771,
0.2858457565,
-0.1843139827,
0.2433813363,
-0.0408221669,
-0.2044896632,
-0.0603388138,
0.2206228077,
-0.059147153,
0.1275750697,
0.1027461886,
0.2328385264,
-0.2996247709,
0.2365117669,
-0.2004733533,
0.116777882,
0.2346574515,
0.2534106374,
0.1489508152,
0.0707728416,
0.0559614412,
-0.1311326623,
0.3252005875,
0.0034001842,
0.3112408519,
-0.1408686638,
-0.181725651,
-0.3317095637,
-0.3425331116,
-0.2265743762,
0.0998417884,
-0.3634951115,
-0.3806310296,
0.1673059314,
0.1290307343,
-0.370767653,
0.0389680043,
-0.2124536932,
-0.1553744972,
0.0196424201,
0.0361522585,
-0.2018183768,
-0.2261244357,
-0.2062616199,
-0.0452431999,
0.4151241779,
0.2590595484,
0.1206602603,
-0.1163292825,
-0.4247238636,
-0.5023557544,
-0.1835588217,
0.077384226,
0.0999759138,
0.1563132554,
-0.0653545111,
0.5579108,
-0.0510462672,
-0.0452510156,
0.1225927323,
-0.0061211511,
-0.0857526585,
0.1155772433,
-0.0713457838,
0.1899272949,
-0.145557791,
-0.2589740455,
-0.1714497209,
-0.3056756854,
-0.0707053915,
-0.0572110862,
0.1168037057,
-0.295966804,
0.1875058711,
-0.0181983076,
0.2588421106,
0.222754389,
-0.2554255128,
-0.0984866992,
0.5742368698,
-0.0838486329,
-0.4717200994,
0.1295842975,
-0.1484834552,
0.0076135043,
0.1879815459,
-0.2797021866,
0.1219322383,
0.1180792078,
0.1706919074,
0.2602599263,
0.0907299444,
0.0554288849,
-0.2978808284,
0.1081659198,
-0.0524972863,
0.2223841399,
-0.1497193426,
-0.1731572151,
0.4568737447,
0.379493773,
0.4606595039,
0.0042095557,
0.7833340168,
0.0899350494,
0.2961521745,
0.3146289289,
0.4288243055,
0.2446362227,
0.1249082983,
0.0123607963,
0.0148987509,
0.0630347952,
-0.0058771223,
0.3074191809,
0.0647478551,
-0.2191386521,
-0.3265358806,
-0.4428031445,
-0.3569613397,
-0.3261870146,
-0.1451660246,
0.1818221956,
0.2052358538,
0.0387001336,
0.3887413144,
-0.0583280697,
-0.3096981943,
0.2100347579,
0.2091157436,
0.2057550848,
0.2603682876,
-0.2030286044,
0.0200102925,
-0.6251598597,
0.3266808689,
0.0376291238,
0.4489032328,
0.1211347133,
-0.0426092744,
-0.0064908229,
-0.0114129372,
0.191158995,
-0.2258456051,
0.2486801147,
-0.0369806588,
0.00498797,
-0.3369860351,
0.030682005,
-0.220684275,
0.3259131312,
0.5136585236,
0.1297412813,
-0.6778852344,
-0.2252326459,
0.0436099991,
0.2859041095,
-0.0816387609,
-0.0003023669,
-0.123926118,
-0.3683080077,
-0.1982910186,
-0.0900635421,
-0.0220521167,
0.1623125821,
-0.1682664454,
0.2582771778,
-0.2203196883,
0.3745953143,
0.0511456132,
0.0659218505,
0.2008269727,
0.0151015893,
0.1974335462,
0.2343123853,
-0.0045969887,
0.284635365,
0.3751891255,
0.1319921166,
-0.2874946594,
-0.042127043,
-0.0891855806,
-0.2077367306,
0.2224480808,
-0.0696757436,
0.2212250531,
0.2267777026,
-0.1486574411,
-0.0479206704,
-0.0220698081,
0.1886216849,
-0.0827187076,
-0.3992479146,
-0.1423583031,
0.4184013903,
0.1938904822,
-0.0800281614,
-0.1462794393,
0.1373909116,
-0.2048896104,
0.0422975197,
0.1178169996,
0.9017557502,
-0.137893334,
0.1099581271,
-0.0084330048,
0.0048326999,
0.749771893,
-0.0360590294,
0.0383360125,
-0.3155218959,
0.0912693441,
-0.043776527,
0.3415215015,
0.1126815528,
0.0354243293,
-0.1919226944,
0.4076779485,
0.1949480623,
0.2575367987,
0.0163745433,
0.4060836434,
0.0624972805,
-0.2345498204,
-0.5463209152,
0.0462049767,
-0.3144659996,
0.4104985595,
-0.2353579849,
-0.2359813005,
-0.206797272,
-0.2671508789,
-0.056683965,
0.1418093443,
-0.0346805453,
0.2981498539,
-0.0713733435,
-0.4402925968,
0.1721670032,
0.2931362689,
0.1163969114,
0.2252399325,
-0.2450676411,
0.0552954897,
-0.5325855613,
-0.380613178,
-0.1697798371,
0.1576578021,
0.1166550443,
-0.0257620439,
-0.1954662204,
0.0903371051,
-0.1123017222,
0.1175315529,
-0.2212730646,
0.0041599628,
-0.3834607005,
0.0532953963,
-0.4173181951,
-0.0947326943,
-0.1572707444,
-0.2040211558,
0.068851769,
0.1082765013,
0.019343093,
-0.1349883229,
0.0942509919,
-0.063398838,
-0.027746195,
0.5898220539,
0.2064316124,
0.2121423334,
0.4350484312,
0.1797180176,
-0.456369251,
-0.1493014395,
-0.0309252441,
-0.5784881115,
-0.2278081477,
-0.0356230028,
-0.2284299582,
0.1857259274,
-0.2033201754,
-0.1642291099,
0.0463216528,
-0.3468268812,
0.2272442877,
-0.4120409191,
-0.1529068202,
0.424554795,
0.0086029191,
0.0053233025,
0.1962221861,
-0.1225243807,
0.0411097333,
0.0502697453,
-0.1607210934,
0.1442897022,
-0.290543586,
0.201525256,
0.2590176761,
0.0922574252,
-0.0789047182,
-0.095203355,
-0.013244234,
-0.1834615618,
-0.0543057993,
-0.011722669,
-0.1304045022,
0.1948338151,
0.1145077199,
-0.1623736918,
0.208894372,
-0.320648551,
0.1475625336,
-0.1380582452,
-0.1336165071,
0.2696509361,
-0.0293819271,
0.187120989,
0.2766978741,
0.2042605877,
-0.2710436583,
0.3788250089,
0.0792827904,
0.4594861865,
-0.011710085,
0.3862804174,
0.4423730969,
-0.0254814103,
-0.2803550661,
0.0266862605,
-0.035966333,
-0.2174689323,
0.3051565289,
-0.1816092432,
-0.0556702092,
0.4315660298,
0.1015965044,
0.2603607774,
-0.0156100914,
0.0855964199,
0.1956904233,
0.0698102415,
-0.3646600842,
-0.1519404352,
0.4377318919,
-0.0203533582,
-0.1107000932,
0.2261766791,
0.0932675451,
-0.2287780643,
0.0955597311,
0.1222153082,
-0.0529529192,
-0.0097083449,
0.2100514174,
0.1276111603,
0.4284837246,
0.1411616206,
0.0625452176,
-0.1187041402,
0.0098215193,
-0.0578230694,
-0.0774039924,
0.2355454266,
0.0742840543,
0.1460343599,
-0.2558205724,
-0.4492253065,
-0.0968899429,
0.3846181333,
-0.2090793252,
0.0910648108,
-0.091814898,
0.1347711086,
0.2871341109,
-0.0784624964,
-0.2468202263,
0.2137851268,
-0.1107966453,
-0.1801240295,
-0.3408868611,
-0.3482741714,
-0.1132458076,
0.1399227381,
0.0625813007,
-0.3009448051,
0.3215265274,
0.2096985579,
-0.1300749034,
-0.518147707,
0.6111896634,
0.1073774472,
0.1182980686,
-0.3415503204,
-0.0192421135,
-0.1715457141,
-0.1120224521,
0.0544974878,
0.3561191559,
0.2328450829,
0.1988467127,
-0.2760937512,
-0.0859763473,
0.2533799112,
-0.0229251347,
0.0836347044,
0.0606669895,
0.1258859187,
0.0147506557,
0.4033437371,
0.021388758,
-0.0314347111,
-0.2144181877,
0.3113029897,
-0.077947855,
-0.0563142821,
-0.0922849104,
-0.2281105816,
-0.0808213502,
-0.0537989624,
-0.1917758733,
-0.4238054752,
0.0264817104,
-0.0189956985,
0.1561600119,
0.2094826102,
-0.1527032554,
-0.0066618528,
-0.2599541545,
0.2386314124,
0.3384189904,
0.0721742958,
-0.2710244358,
-0.1018830016,
-0.4817110598,
-0.0005999245,
-0.5397926569,
0.0505526811,
-0.0656441823,
0.3469387293,
-0.0686808378,
0.0769367069,
0.100894846,
-0.1663617939,
0.0166302845,
0.1990393102,
-0.3084483147,
-0.1713159829,
-0.1275110841,
0.0138699841,
-0.2212381959,
-0.4771666825,
0.2828765512,
-0.3365031481,
-0.0790847689,
-0.0288127419,
-0.0130414888,
0.0311751366,
0.2563146949,
0.2192021906,
0.1050930247,
0.1111665294,
-0.1393062621,
-0.0927666873,
-0.2995744646,
-0.1683183461,
-0.0625778064,
0.292865485,
-0.1225751713,
0.4750664532,
-0.1518025696,
0.1282859296,
-0.174840644,
0.4684756994,
-0.2808567882,
0.1735430807,
-0.1457724869,
0.0948002115,
-0.361630559,
0.0534705259,
-0.0626032948,
0.0130310636,
-0.2021164298,
0.1032491624,
-0.4907826483,
-0.1533178389,
0.1849151105,
-0.2853300273,
-0.1076995954,
-0.280659914,
0.0994233266,
0.2337033451,
0.2223947197,
-0.4161419272,
0.1807073802,
0.2665100396,
-0.0033002831,
-0.091663152,
-0.0789960474,
-0.0880525559,
-0.3081299365,
-0.0442834646,
-0.0599302128,
0.0284392796,
-0.4647625089,
-0.0302376561,
-0.2713392377
] |
https://github.com/huggingface/datasets/issues/784 | Issue with downloading Wikipedia data for low resource language | @lhoestq
I've tried `load_dataset('wikipedia', '20200501.zh', beam_runner='DirectRunner')` and got the same `FileNotFoundError` as @SamuelCahyawijaya.
Also, using another date (e.g. `load_dataset('wikipedia', '20201120.zh', beam_runner='DirectRunner')`) will give the following error message.
```
ValueError: BuilderConfig 20201120.zh not found. Available: ['20200501.aa', '20200501.ab', '20200501.ace', '20200501.ady', '20200501.af', '20200501.ak', '20200501.als', '20200501.am', '20200501.an', '20200501.ang', '20200501.ar', '20200501.arc', '20200501.arz', '20200501.as', '20200501.ast', '20200501.atj', '20200501.av', '20200501.ay', '20200501.az', '20200501.azb', '20200501.ba', '20200501.bar', '20200501.bat-smg', '20200501.bcl', '20200501.be', '20200501.be-x-old', '20200501.bg', '20200501.bh', '20200501.bi', '20200501.bjn', '20200501.bm', '20200501.bn', '20200501.bo', '20200501.bpy', '20200501.br', '20200501.bs', '20200501.bug', '20200501.bxr', '20200501.ca', '20200501.cbk-zam', '20200501.cdo', '20200501.ce', '20200501.ceb', '20200501.ch', '20200501.cho', '20200501.chr', '20200501.chy', '20200501.ckb', '20200501.co', '20200501.cr', '20200501.crh', '20200501.cs', '20200501.csb', '20200501.cu', '20200501.cv', '20200501.cy', '20200501.da', '20200501.de', '20200501.din', '20200501.diq', '20200501.dsb', '20200501.dty', '20200501.dv', '20200501.dz', '20200501.ee', '20200501.el', '20200501.eml', '20200501.en', '20200501.eo', '20200501.es', '20200501.et', '20200501.eu', '20200501.ext', '20200501.fa', '20200501.ff', '20200501.fi', '20200501.fiu-vro', '20200501.fj', '20200501.fo', '20200501.fr', '20200501.frp', '20200501.frr', '20200501.fur', '20200501.fy', '20200501.ga', '20200501.gag', '20200501.gan', '20200501.gd', '20200501.gl', '20200501.glk', '20200501.gn', '20200501.gom', '20200501.gor', '20200501.got', '20200501.gu', '20200501.gv', '20200501.ha', '20200501.hak', '20200501.haw', '20200501.he', '20200501.hi', '20200501.hif', '20200501.ho', '20200501.hr', '20200501.hsb', '20200501.ht', '20200501.hu', '20200501.hy', '20200501.ia', '20200501.id', '20200501.ie', '20200501.ig', '20200501.ii', '20200501.ik', '20200501.ilo', '20200501.inh', '20200501.io', '20200501.is', '20200501.it', '20200501.iu', '20200501.ja', '20200501.jam', '20200501.jbo', '20200501.jv', '20200501.ka', '20200501.kaa', '20200501.kab', '20200501.kbd', '20200501.kbp', '20200501.kg', '20200501.ki', '20200501.kj', '20200501.kk', '20200501.kl', '20200501.km', '20200501.kn', '20200501.ko', '20200501.koi', '20200501.krc', '20200501.ks', '20200501.ksh', '20200501.ku', '20200501.kv', '20200501.kw', '20200501.ky', '20200501.la', '20200501.lad', '20200501.lb', '20200501.lbe', '20200501.lez', '20200501.lfn', '20200501.lg', '20200501.li', '20200501.lij', '20200501.lmo', '20200501.ln', '20200501.lo', '20200501.lrc', '20200501.lt', '20200501.ltg', '20200501.lv', '20200501.mai', '20200501.map-bms', '20200501.mdf', '20200501.mg', '20200501.mh', '20200501.mhr', '20200501.mi', '20200501.min', '20200501.mk', '20200501.ml', '20200501.mn', '20200501.mr', '20200501.mrj', '20200501.ms', '20200501.mt', '20200501.mus', '20200501.mwl', '20200501.my', '20200501.myv', '20200501.mzn', '20200501.na', '20200501.nah', '20200501.nap', '20200501.nds', '20200501.nds-nl', '20200501.ne', '20200501.new', '20200501.ng', '20200501.nl', '20200501.nn', '20200501.no', '20200501.nov', '20200501.nrm', '20200501.nso', '20200501.nv', '20200501.ny', '20200501.oc', '20200501.olo', '20200501.om', '20200501.or', '20200501.os', '20200501.pa', '20200501.pag', '20200501.pam', '20200501.pap', '20200501.pcd', '20200501.pdc', '20200501.pfl', '20200501.pi', '20200501.pih', '20200501.pl', '20200501.pms', '20200501.pnb', '20200501.pnt', '20200501.ps', '20200501.pt', '20200501.qu', '20200501.rm', '20200501.rmy', '20200501.rn', '20200501.ro', '20200501.roa-rup', '20200501.roa-tara', '20200501.ru', '20200501.rue', '20200501.rw', '20200501.sa', '20200501.sah', '20200501.sat', '20200501.sc', '20200501.scn', '20200501.sco', '20200501.sd', '20200501.se', '20200501.sg', '20200501.sh', '20200501.si', '20200501.simple', '20200501.sk', '20200501.sl', '20200501.sm', '20200501.sn', '20200501.so', '20200501.sq', '20200501.sr', '20200501.srn', '20200501.ss', '20200501.st', '20200501.stq', '20200501.su', '20200501.sv', '20200501.sw', '20200501.szl', '20200501.ta', '20200501.tcy', '20200501.te', '20200501.tet', '20200501.tg', '20200501.th', '20200501.ti', '20200501.tk', '20200501.tl', '20200501.tn', '20200501.to', '20200501.tpi', '20200501.tr', '20200501.ts', '20200501.tt', '20200501.tum', '20200501.tw', '20200501.ty', '20200501.tyv', '20200501.udm', '20200501.ug', '20200501.uk', '20200501.ur', '20200501.uz', '20200501.ve', '20200501.vec', '20200501.vep', '20200501.vi', '20200501.vls', '20200501.vo', '20200501.wa', '20200501.war', '20200501.wo', '20200501.wuu', '20200501.xal', '20200501.xh', '20200501.xmf', '20200501.yi', '20200501.yo', '20200501.za', '20200501.zea', '20200501.zh', '20200501.zh-classical', '20200501.zh-min-nan', '20200501.zh-yue', '20200501.zu']
```
I am pretty sure that `https://dumps.wikimedia.org/enwiki/20201120/dumpstatus.json` exists. | Hi, I tried to download Sundanese and Javanese wikipedia data with the following snippet
```
jv_wiki = datasets.load_dataset('wikipedia', '20200501.jv', beam_runner='DirectRunner')
su_wiki = datasets.load_dataset('wikipedia', '20200501.su', beam_runner='DirectRunner')
```
And I get the following error for these two languages:
Javanese
```
FileNotFoundError: Couldn't find file at https://dumps.wikimedia.org/jvwiki/20200501/dumpstatus.json
```
Sundanese
```
FileNotFoundError: Couldn't find file at https://dumps.wikimedia.org/suwiki/20200501/dumpstatus.json
```
I found from https://github.com/huggingface/datasets/issues/577#issuecomment-688435085 that for small languages, they are directly downloaded and parsed from the Wikipedia dump site, but both of `https://dumps.wikimedia.org/jvwiki/20200501/dumpstatus.json` and `https://dumps.wikimedia.org/suwiki/20200501/dumpstatus.json` are no longer valid.
Any suggestions on how to handle this issue? Thanks! | 342 | Issue with downloading Wikipedia data for low resource language
Hi, I tried to download Sundanese and Javanese wikipedia data with the following snippet
```
jv_wiki = datasets.load_dataset('wikipedia', '20200501.jv', beam_runner='DirectRunner')
su_wiki = datasets.load_dataset('wikipedia', '20200501.su', beam_runner='DirectRunner')
```
And I get the following error for these two languages:
Javanese
```
FileNotFoundError: Couldn't find file at https://dumps.wikimedia.org/jvwiki/20200501/dumpstatus.json
```
Sundanese
```
FileNotFoundError: Couldn't find file at https://dumps.wikimedia.org/suwiki/20200501/dumpstatus.json
```
I found from https://github.com/huggingface/datasets/issues/577#issuecomment-688435085 that for small languages, they are directly downloaded and parsed from the Wikipedia dump site, but both of `https://dumps.wikimedia.org/jvwiki/20200501/dumpstatus.json` and `https://dumps.wikimedia.org/suwiki/20200501/dumpstatus.json` are no longer valid.
Any suggestions on how to handle this issue? Thanks!
@lhoestq
I've tried `load_dataset('wikipedia', '20200501.zh', beam_runner='DirectRunner')` and got the same `FileNotFoundError` as @SamuelCahyawijaya.
Also, using another date (e.g. `load_dataset('wikipedia', '20201120.zh', beam_runner='DirectRunner')`) will give the following error message.
```
ValueError: BuilderConfig 20201120.zh not found. Available: ['20200501.aa', '20200501.ab', '20200501.ace', '20200501.ady', '20200501.af', '20200501.ak', '20200501.als', '20200501.am', '20200501.an', '20200501.ang', '20200501.ar', '20200501.arc', '20200501.arz', '20200501.as', '20200501.ast', '20200501.atj', '20200501.av', '20200501.ay', '20200501.az', '20200501.azb', '20200501.ba', '20200501.bar', '20200501.bat-smg', '20200501.bcl', '20200501.be', '20200501.be-x-old', '20200501.bg', '20200501.bh', '20200501.bi', '20200501.bjn', '20200501.bm', '20200501.bn', '20200501.bo', '20200501.bpy', '20200501.br', '20200501.bs', '20200501.bug', '20200501.bxr', '20200501.ca', '20200501.cbk-zam', '20200501.cdo', '20200501.ce', '20200501.ceb', '20200501.ch', '20200501.cho', '20200501.chr', '20200501.chy', '20200501.ckb', '20200501.co', '20200501.cr', '20200501.crh', '20200501.cs', '20200501.csb', '20200501.cu', '20200501.cv', '20200501.cy', '20200501.da', '20200501.de', '20200501.din', '20200501.diq', '20200501.dsb', '20200501.dty', '20200501.dv', '20200501.dz', '20200501.ee', '20200501.el', '20200501.eml', '20200501.en', '20200501.eo', '20200501.es', '20200501.et', '20200501.eu', '20200501.ext', '20200501.fa', '20200501.ff', '20200501.fi', '20200501.fiu-vro', '20200501.fj', '20200501.fo', '20200501.fr', '20200501.frp', '20200501.frr', '20200501.fur', '20200501.fy', '20200501.ga', '20200501.gag', '20200501.gan', '20200501.gd', '20200501.gl', '20200501.glk', '20200501.gn', '20200501.gom', '20200501.gor', '20200501.got', '20200501.gu', '20200501.gv', '20200501.ha', '20200501.hak', '20200501.haw', '20200501.he', '20200501.hi', '20200501.hif', '20200501.ho', '20200501.hr', '20200501.hsb', '20200501.ht', '20200501.hu', '20200501.hy', '20200501.ia', '20200501.id', '20200501.ie', '20200501.ig', '20200501.ii', '20200501.ik', '20200501.ilo', '20200501.inh', '20200501.io', '20200501.is', '20200501.it', '20200501.iu', '20200501.ja', '20200501.jam', '20200501.jbo', '20200501.jv', '20200501.ka', '20200501.kaa', '20200501.kab', '20200501.kbd', '20200501.kbp', '20200501.kg', '20200501.ki', '20200501.kj', '20200501.kk', '20200501.kl', '20200501.km', '20200501.kn', '20200501.ko', '20200501.koi', '20200501.krc', '20200501.ks', '20200501.ksh', '20200501.ku', '20200501.kv', '20200501.kw', '20200501.ky', '20200501.la', '20200501.lad', '20200501.lb', '20200501.lbe', '20200501.lez', '20200501.lfn', '20200501.lg', '20200501.li', '20200501.lij', '20200501.lmo', '20200501.ln', '20200501.lo', '20200501.lrc', '20200501.lt', '20200501.ltg', '20200501.lv', '20200501.mai', '20200501.map-bms', '20200501.mdf', '20200501.mg', '20200501.mh', '20200501.mhr', '20200501.mi', '20200501.min', '20200501.mk', '20200501.ml', '20200501.mn', '20200501.mr', '20200501.mrj', '20200501.ms', '20200501.mt', '20200501.mus', '20200501.mwl', '20200501.my', '20200501.myv', '20200501.mzn', '20200501.na', '20200501.nah', '20200501.nap', '20200501.nds', '20200501.nds-nl', '20200501.ne', '20200501.new', '20200501.ng', '20200501.nl', '20200501.nn', '20200501.no', '20200501.nov', '20200501.nrm', '20200501.nso', '20200501.nv', '20200501.ny', '20200501.oc', '20200501.olo', '20200501.om', '20200501.or', '20200501.os', '20200501.pa', '20200501.pag', '20200501.pam', '20200501.pap', '20200501.pcd', '20200501.pdc', '20200501.pfl', '20200501.pi', '20200501.pih', '20200501.pl', '20200501.pms', '20200501.pnb', '20200501.pnt', '20200501.ps', '20200501.pt', '20200501.qu', '20200501.rm', '20200501.rmy', '20200501.rn', '20200501.ro', '20200501.roa-rup', '20200501.roa-tara', '20200501.ru', '20200501.rue', '20200501.rw', '20200501.sa', '20200501.sah', '20200501.sat', '20200501.sc', '20200501.scn', '20200501.sco', '20200501.sd', '20200501.se', '20200501.sg', '20200501.sh', '20200501.si', '20200501.simple', '20200501.sk', '20200501.sl', '20200501.sm', '20200501.sn', '20200501.so', '20200501.sq', '20200501.sr', '20200501.srn', '20200501.ss', '20200501.st', '20200501.stq', '20200501.su', '20200501.sv', '20200501.sw', '20200501.szl', '20200501.ta', '20200501.tcy', '20200501.te', '20200501.tet', '20200501.tg', '20200501.th', '20200501.ti', '20200501.tk', '20200501.tl', '20200501.tn', '20200501.to', '20200501.tpi', '20200501.tr', '20200501.ts', '20200501.tt', '20200501.tum', '20200501.tw', '20200501.ty', '20200501.tyv', '20200501.udm', '20200501.ug', '20200501.uk', '20200501.ur', '20200501.uz', '20200501.ve', '20200501.vec', '20200501.vep', '20200501.vi', '20200501.vls', '20200501.vo', '20200501.wa', '20200501.war', '20200501.wo', '20200501.wuu', '20200501.xal', '20200501.xh', '20200501.xmf', '20200501.yi', '20200501.yo', '20200501.za', '20200501.zea', '20200501.zh', '20200501.zh-classical', '20200501.zh-min-nan', '20200501.zh-yue', '20200501.zu']
```
I am pretty sure that `https://dumps.wikimedia.org/enwiki/20201120/dumpstatus.json` exists. | [
0.0533475429,
0.0374850035,
0.0597835481,
0.486929059,
0.1705369204,
0.0233598799,
0.0932298899,
0.4074782133,
0.1669998616,
0.1014820561,
-0.1808925122,
-0.1391496062,
0.4188606739,
-0.173271805,
-0.0940442085,
-0.4950675964,
0.1877744347,
0.0399842188,
0.0126656508,
-0.0655115098,
-0.2115678489,
-0.0480744094,
-0.1926139593,
0.0627114028,
-0.3057107329,
-0.0056305863,
0.0016470253,
-0.0364644565,
-0.3302688599,
-0.2426016927,
0.2610395849,
0.1820007414,
0.2705384493,
0.414835006,
-0.0001278781,
-0.0497072265,
0.5732788444,
-0.1151506007,
-0.5644016862,
0.0889674947,
-0.2109941244,
-0.4145146906,
-0.1965324283,
-0.3739252687,
0.039236553,
-0.1627886295,
0.2340760976,
-0.2813853621,
0.2931889892,
-0.0290633589,
0.0679255947,
0.1302412152,
0.1000647098,
-0.2170469165,
0.3911063373,
0.1138220578,
0.04637447,
0.017776683,
-0.0791448951,
0.0869454443,
0.0281144399,
0.2152746171,
-0.2444000244,
-0.0413645059,
0.2111816406,
-0.0207845569,
-0.2214752138,
-0.5394380093,
0.4275811911,
0.506501317,
0.987385273,
-0.034115348,
-0.5420721769,
0.0208636075,
-0.088443093,
0.1717966348,
0.2517361343,
0.0773007125,
-0.0216554217,
0.0064190542,
0.190842092,
-0.3481393158,
-0.1752082258,
0.5972663164,
-0.0458158255,
0.3435459435,
-0.0293706805,
0.124483034,
-0.1325076222,
-0.4068509042,
-0.1964532584,
-0.427118659,
-0.0505388603,
0.4434015155,
0.0007423852,
0.0057798028,
-0.1001870036,
0.0649931878,
0.1602074951,
-0.289512217,
-0.0883791745,
0.0405814424,
-0.1443118751,
0.1057483032,
0.2951692343,
-0.2529045343,
0.1639975011,
-0.1666969955,
0.6046064496,
0.1877866387,
0.326843679,
-0.0606866516,
0.0451205261,
-0.2781883776,
-0.5877597928,
-0.1193335801,
0.234195739,
-0.3487767577,
-0.0475726537,
0.188838169,
-0.2759742737,
-0.1863065362,
-0.149003014,
0.2405672073,
-0.2268441617,
0.4528813958,
0.3064106107,
0.2869042158,
-0.3019838333,
-0.2889590561,
-0.0044380836,
0.2404557168,
0.0577963218,
0.1191030592,
0.1557950526,
0.0076084398,
0.2810478806,
0.1295274794,
-0.3599657714,
-0.1727763116,
-0.2213958204,
-0.2736275196,
-0.328810513,
0.1263089925,
0.1419121027,
0.5926675797,
-0.1778510809,
-0.1102341264,
-0.1915977895,
0.0599344186,
-0.3075917959,
0.0290115923,
-0.0388543904,
0.0066990061,
-0.3058396876,
0.1448860168,
-0.1023365855,
0.2594456971,
0.0931880027,
-0.1298282743,
-0.0810646564,
0.1333625615,
-0.4865556657,
-0.2310166359,
0.4018516541,
0.6183562279,
-0.3419443965,
-0.2550345659,
-0.2246881574,
-0.037940219,
0.3226382434,
0.240582943,
-0.1962711513,
0.5838983059,
-0.1156999469,
0.1431095898,
0.3990395069,
-0.0626015887,
-0.2451797724,
0.341645062,
0.1305206865,
-0.0190299228,
0.1855220199,
0.0644037873,
0.278416574,
-0.1964817345,
0.0487370715,
0.4077765942,
0.1818937212,
-0.0078273937,
-0.3822373748,
-0.2369910181,
0.1355566084,
0.0746715367,
0.4870288968,
-0.094096899,
0.248682797,
0.8490914702,
0.2026954591,
-0.0856897309,
0.3260678649,
0.4646954536,
-0.3252148926,
-0.0939506292,
0.0796762556,
0.0160331503,
-0.0819023475,
0.2273689806,
-0.0334088579,
0.0444447808,
0.0221869536,
-0.0124820173,
-0.3875284791,
-0.1059807986,
0.0293924864,
0.2333383858,
0.0024629273,
0.0668142587,
0.1838381439,
0.358846575,
0.3215932548,
-0.1883114725,
0.0001829565,
-0.087395981,
-0.2711071968,
0.4411354363,
-0.0971422121,
0.1178860962,
0.1242605448,
-0.065824762,
0.4569525123,
0.0373951271,
-0.0878358036,
0.1333162785,
0.1280238777,
0.230077818,
0.0969766825,
-0.1452694982,
0.4124616385,
-0.0279228613,
0.3956122994,
0.5580114722,
0.2673858404,
-0.1624314487,
-0.0820198208,
0.4217675626,
-0.023517834,
0.0680850595,
-0.0762694925,
0.0021345466,
0.3455209136,
-0.0045461506,
0.2148862481,
-0.1222807914,
0.2748680115,
0.3064385653,
-0.1189005673,
0.1761006266,
-0.4096236527,
-0.1404211223,
0.3270945847,
-0.166104123,
0.205876708,
-0.0424851105,
-0.2158711553,
-0.0264977254,
0.2504026592,
-0.0422123596,
0.0219619311,
0.0933740437,
0.1414165199,
-0.2690081,
0.1856571287,
-0.1909544766,
0.1178743839,
0.2861931324,
0.361367166,
0.2144424766,
0.0326793119,
0.0631784648,
-0.0983968005,
0.2702796459,
0.0177614614,
0.2583782077,
-0.1833215505,
-0.162047714,
-0.3506142497,
-0.3741490841,
-0.2871039212,
0.0854785815,
-0.3898090124,
-0.3666172028,
0.1491400748,
0.1553397477,
-0.2938450277,
0.132436946,
-0.156815812,
-0.1100081801,
-0.0155157857,
-0.0630767643,
-0.213937372,
-0.2459357381,
-0.2690546513,
-0.1106630266,
0.4098203778,
0.1954002082,
0.0575197563,
-0.1600295603,
-0.3849403858,
-0.5117304325,
-0.1947422028,
0.1738584489,
0.0831753314,
0.178712368,
-0.0822415352,
0.5658928752,
0.0030054897,
-0.0505430698,
0.1183450371,
0.0240443721,
-0.0823359936,
0.1118150428,
-0.1079548001,
0.1611091197,
-0.1291732341,
-0.2555246949,
-0.1848213375,
-0.3549535871,
-0.1326253563,
0.0402965918,
0.1444684565,
-0.1802947223,
0.1903788447,
-0.0165347531,
0.3194539547,
0.2845263183,
-0.183226943,
-0.141690895,
0.5626687407,
-0.0918636322,
-0.4536192119,
0.1298023909,
-0.1563429236,
-0.0148344962,
0.1588098258,
-0.3009738326,
0.2276774645,
0.1487456709,
0.1069901437,
0.2487144172,
0.0975349024,
0.08492814,
-0.2770103812,
0.1548020542,
-0.0610631481,
0.1394802928,
-0.1391173005,
-0.1906077266,
0.4748789668,
0.43919608,
0.4500228763,
-0.0618051812,
0.7416900992,
0.13546516,
0.2463319898,
0.313691169,
0.3680105507,
0.2478984296,
0.0193918906,
0.0227029473,
0.1015526503,
0.1270371825,
0.0443569049,
0.3230543137,
0.0436067209,
-0.1844173074,
-0.391053617,
-0.4620250165,
-0.2502819598,
-0.3246951401,
-0.1803737581,
0.0865729004,
0.2444779575,
0.034470588,
0.4447143972,
-0.1163267344,
-0.3504456282,
0.2178050578,
0.1891650856,
0.231696099,
0.2817644477,
-0.1259289086,
-0.0661060736,
-0.5629534721,
0.3282524943,
0.0698232353,
0.4110629559,
0.0179470181,
-0.0059716702,
0.0319737718,
-0.0275530089,
0.2141030133,
-0.2173385322,
0.2254905403,
0.0406878069,
-0.030443605,
-0.4630869627,
-0.0115975589,
-0.1469059885,
0.3091900349,
0.4478083849,
0.1146974787,
-0.693403244,
-0.313642621,
0.0711744428,
0.3581554592,
-0.1145720929,
0.0238106325,
-0.1017409489,
-0.2344865352,
-0.3066961765,
-0.125287503,
-0.1091522127,
0.2267966717,
-0.125094831,
0.2264001071,
-0.1811088026,
0.3791965246,
0.0265087523,
0.0661097541,
0.2037885487,
0.0909415483,
0.1747337878,
0.2588308156,
0.061641749,
0.2426661551,
0.3315389752,
0.1963543445,
-0.1387938857,
0.0138744824,
-0.1242531389,
-0.197668761,
0.2619455755,
-0.0786776543,
0.1416078508,
0.2371560633,
-0.1181489453,
-0.0922538191,
-0.0754845291,
0.1806949079,
-0.1116925403,
-0.4302587509,
-0.1690330505,
0.4821285605,
0.1846795976,
-0.0995528847,
-0.0832200497,
0.1816087663,
-0.1851883531,
0.0870917886,
0.1557228863,
0.9597750306,
-0.1339157671,
0.1392340809,
-0.0139014916,
0.0420071855,
0.7529654503,
-0.1289320588,
0.056846302,
-0.3687587976,
0.1460502893,
-0.0803368837,
0.3275388479,
0.1196126938,
0.0341819376,
-0.1696020067,
0.4756480753,
0.1736363769,
0.2811531126,
-0.0096622277,
0.4018618464,
0.0217162464,
-0.2601259947,
-0.4872601926,
-0.0073101632,
-0.2932378948,
0.4567651153,
-0.2152502537,
-0.2132640481,
-0.1895176917,
-0.2626000047,
-0.0869099349,
0.190997541,
-0.0871392861,
0.3240567148,
-0.0048378794,
-0.4457885027,
0.1779005229,
0.3298438787,
0.1616209745,
0.1972562671,
-0.2407042533,
0.0811975449,
-0.5297272205,
-0.3864919245,
-0.1677401364,
0.1796521842,
0.2071366608,
-0.0624723583,
-0.230926618,
0.1035088152,
-0.1793389916,
0.0926470757,
-0.2239646018,
-0.0617021173,
-0.233101964,
0.1321624219,
-0.3695798516,
-0.0716164857,
-0.1525003612,
-0.2029371113,
0.0266377162,
0.0352566205,
0.0339633338,
-0.1284424365,
0.0965875983,
-0.0923714787,
0.0047386177,
0.5840379,
0.1734894961,
0.2268545181,
0.4951575696,
0.2195610255,
-0.436714232,
-0.1338247359,
-0.0482275188,
-0.4838817716,
-0.2081251591,
-0.0898370296,
-0.1886030138,
0.1479990333,
-0.1888010204,
0.0197456609,
-0.0024591475,
-0.3703351617,
0.1932289302,
-0.4431478381,
-0.1510880888,
0.380610466,
-0.0277293511,
0.0423926115,
0.2279707789,
-0.0980443805,
0.0965980291,
-0.0128569491,
-0.112401478,
0.0797957778,
-0.3406741023,
0.1945512593,
0.301006645,
0.1971978098,
-0.1028867364,
-0.0432372466,
-0.0749796405,
-0.269251883,
-0.0939337686,
0.0452760085,
-0.1220032871,
0.224048987,
0.1475180984,
-0.1261537671,
0.2464758903,
-0.3998474479,
0.0873424113,
-0.1955203563,
-0.0513409898,
0.1589801908,
-0.0559086353,
0.1787538081,
0.196009174,
0.2117495388,
-0.3149053454,
0.3788196743,
0.1158756167,
0.5302124619,
-0.0128993206,
0.3653714955,
0.3719917834,
-0.0265793428,
-0.3628426194,
0.1002209038,
-0.0864365846,
-0.2152412385,
0.3673943877,
-0.2350912094,
-0.0242954493,
0.3940367699,
0.0838516206,
0.2159753591,
-0.0255266652,
0.0932179838,
0.139502272,
-0.0043542841,
-0.3624990582,
-0.1738432199,
0.5092689395,
-0.0150028765,
-0.0885134339,
0.2642080784,
0.1587807685,
-0.297344178,
0.1971723437,
0.1173843369,
-0.0105728507,
-0.1101457179,
0.1757885963,
0.1708858907,
0.4562655389,
0.1897691041,
0.058932364,
-0.0892682448,
0.014299538,
0.0067838924,
-0.0889346153,
0.2076753676,
0.0953659713,
0.1460131407,
-0.2269901633,
-0.4386491179,
0.0295365527,
0.3851930201,
-0.1301939189,
-0.0124929789,
-0.1177861094,
0.1243201941,
0.288228929,
-0.0849065185,
-0.3104220033,
0.2391563654,
-0.0978327692,
-0.1753342748,
-0.4473357201,
-0.3883264959,
-0.0926384926,
0.1555449218,
0.1127264053,
-0.2999773622,
0.2941491604,
0.2409373224,
-0.1209258139,
-0.5600197315,
0.6237097979,
0.1035370082,
0.0964277089,
-0.3249093294,
0.1133986488,
-0.2321371287,
-0.0669257641,
0.0839915499,
0.3659836948,
0.2763703167,
0.1966902763,
-0.3062682748,
-0.0782818049,
0.234359622,
-0.0261937194,
0.0934017748,
0.0172870085,
0.0709715337,
-0.0038414588,
0.4331745505,
-0.0164176282,
0.0059205443,
-0.2877870798,
0.3169851005,
-0.0339479037,
-0.0657154396,
-0.0700165182,
-0.1899706721,
-0.0451920331,
-0.0729161799,
-0.1918237954,
-0.4208930731,
0.0570518449,
-0.0258307792,
0.2027056217,
0.1951411664,
-0.1792077124,
-0.0339697711,
-0.2826880813,
0.2591370642,
0.23609218,
0.0933160484,
-0.2518789172,
-0.1341608167,
-0.4866867661,
-0.058719933,
-0.4086301923,
0.070817396,
-0.0541620143,
0.2985703349,
-0.0427921116,
0.0542754233,
0.1404774934,
-0.2052309513,
0.0477352515,
0.1422237456,
-0.3190619349,
-0.1981560588,
-0.0381387137,
0.0567876175,
-0.2491874695,
-0.4527919888,
0.2786124647,
-0.3910552263,
-0.127645731,
0.0341985561,
-0.0678336844,
0.0969119594,
0.1439945847,
0.2436263859,
0.019980194,
0.1572602987,
-0.1167751625,
-0.0487134047,
-0.2996519208,
-0.1257106811,
-0.0596662574,
0.2554558814,
-0.1438672543,
0.5094135404,
-0.2220045626,
0.1459828019,
-0.2453880459,
0.3832650483,
-0.266160816,
0.2020356655,
-0.1202319041,
0.0843220726,
-0.4251118898,
0.1710021496,
-0.019015044,
0.0046249586,
-0.1791450083,
0.1041808575,
-0.5216527581,
-0.0987193733,
0.2311318517,
-0.2941541076,
-0.1555873305,
-0.2660242021,
0.0603285655,
0.2114708871,
0.1888339818,
-0.3588397801,
0.2253999263,
0.241547212,
-0.0320402719,
-0.1188903973,
-0.133767724,
-0.1148088276,
-0.2388497889,
-0.0629510656,
-0.1781380177,
0.0128489453,
-0.46067518,
-0.1186597869,
-0.2578943968
] |
https://github.com/huggingface/datasets/issues/778 | Unexpected behavior when loading cached csv file? | Hi ! Thanks for reporting.
The same issue was reported in #730 (but with the encodings instead of the delimiter). It was fixed by #770 .
The fix will be available in the next release :) | I read a csv file from disk and forgot so specify the right delimiter. When i read the csv file again specifying the right delimiter it had no effect since it was using the cached dataset. I am not sure if this is unwanted behavior since i can always specify `download_mode="force_redownload"`. But i think it would be nice if the information what `delimiter` or what `column_names` were used would influence the identifier of the cached dataset.
Small snippet to reproduce the behavior:
```python
import datasets
with open("dummy_data.csv", "w") as file:
file.write("test,this;text\n")
print(datasets.load_dataset("csv", data_files="dummy_data.csv", split="train").column_names)
# ["test", "this;text"]
print(datasets.load_dataset("csv", data_files="dummy_data.csv", split="train", delimiter=";").column_names)
# still ["test", "this;text"]
```
By the way, thanks a lot for this amazing library! :) | 36 | Unexpected behavior when loading cached csv file?
I read a csv file from disk and forgot so specify the right delimiter. When i read the csv file again specifying the right delimiter it had no effect since it was using the cached dataset. I am not sure if this is unwanted behavior since i can always specify `download_mode="force_redownload"`. But i think it would be nice if the information what `delimiter` or what `column_names` were used would influence the identifier of the cached dataset.
Small snippet to reproduce the behavior:
```python
import datasets
with open("dummy_data.csv", "w") as file:
file.write("test,this;text\n")
print(datasets.load_dataset("csv", data_files="dummy_data.csv", split="train").column_names)
# ["test", "this;text"]
print(datasets.load_dataset("csv", data_files="dummy_data.csv", split="train", delimiter=";").column_names)
# still ["test", "this;text"]
```
By the way, thanks a lot for this amazing library! :)
Hi ! Thanks for reporting.
The same issue was reported in #730 (but with the encodings instead of the delimiter). It was fixed by #770 .
The fix will be available in the next release :) | [
0.1203237623,
-0.1472446918,
-0.1446630657,
0.3973074853,
0.0596906692,
0.1563188434,
0.7675095797,
-0.1010702103,
0.3270579576,
0.0822041333,
-0.0324487202,
-0.0013561696,
0.1088029444,
-0.2761224508,
-0.116261676,
0.1431806833,
0.1974259317,
0.138489157,
-0.0753112882,
-0.07117185,
-0.2949310541,
0.2251481563,
-0.1458895206,
-0.1837261766,
-0.0212596618,
0.3673403859,
-0.0063923821,
0.2704253197,
0.1843005121,
-0.3755671084,
0.445294261,
0.2041805387,
0.270993799,
0.3557013273,
-0.0001234261,
-0.0847295076,
0.0421751887,
-0.2460637242,
-0.1824995577,
-0.2576673627,
-0.3444092274,
-0.3255290389,
0.1659786403,
-0.6405022144,
-0.0831278041,
0.4193375707,
0.0104722567,
-0.3650927544,
0.0418626443,
0.2899885178,
0.164239794,
-0.2764175832,
-0.4180563688,
0.3066488206,
0.2418937385,
-0.1092139632,
-0.2015372366,
0.1077691168,
-0.0016695932,
0.2170140445,
-0.0673586428,
0.0988660008,
-0.269513607,
0.3476354182,
0.3233603239,
0.2655833066,
-0.1112888455,
0.1209459305,
0.2490373105,
0.0957704633,
0.5434874296,
-0.016090285,
-0.1401778162,
-0.3993290663,
-0.1829320937,
-0.9000106454,
0.4474707842,
0.1172695458,
0.2949038744,
0.2847468853,
-0.1221222281,
0.174939245,
0.0017122403,
-0.027042985,
-0.2510726154,
0.00428297,
-0.3040361702,
0.1181049198,
-0.1376945972,
0.0799037814,
0.2939622104,
-0.3672235608,
-0.0892910063,
0.088835761,
-0.2034030557,
0.2997891307,
-0.1713490933,
0.0527134612,
-0.1950711012,
0.0510884523,
0.151930809,
-0.0921815336,
0.0524524227,
0.0886829346,
-0.0951908901,
0.2707784772,
0.1342919171,
0.1440230608,
0.1321518123,
0.0277065039,
-0.3610528111,
-0.1131921262,
-0.0404703654,
-0.0574660264,
0.7582940459,
-0.0240593925,
-0.1336692721,
-0.1446202248,
-0.2497697622,
0.1310020387,
-0.0539614558,
-0.1943703294,
-0.3105027676,
0.1582722962,
-0.0937407464,
0.0074114017,
-0.2572184503,
0.1283314228,
-0.1247398257,
-0.1262661368,
0.0137806013,
-0.2658877075,
-0.2747735679,
-0.0999715701,
0.1676565111,
-0.035434179,
0.1349234283,
0.0876380503,
-0.2041488439,
-0.3977510929,
-0.0401848331,
-0.0400936641,
0.4941187501,
0.1790119112,
-0.0341455117,
0.3948506117,
0.2257196158,
-0.7923144102,
-0.1296624392,
0.2836396694,
-0.4482903481,
-0.1099786535,
0.0770926923,
0.0487055071,
-0.4173685312,
-0.0573837496,
-0.2408275008,
0.1323025823,
0.4306557477,
-0.2343614101,
0.0749176443,
-0.279586643,
-0.318885386,
-0.4057263136,
-0.1243100613,
0.5804480314,
-0.6152838469,
-0.1354852021,
-0.2932509184,
0.045496922,
0.0796199292,
0.2107525021,
-0.02807259,
-0.3229222298,
-0.4087450504,
0.0544601679,
0.1152574793,
-0.1735106111,
-0.5145967603,
-0.0387592576,
-0.1684633046,
0.5907821655,
0.3413653374,
0.0757715702,
0.4065316021,
-0.0589030087,
0.1259221733,
0.2793927193,
0.2539739907,
0.0203924477,
-0.1249639541,
-0.0629515201,
0.3729766607,
-0.0367326252,
-0.0246832632,
0.2701403499,
0.3431217074,
-0.4709172249,
0.2977421284,
0.1017794386,
-0.1056781858,
0.1167057157,
-0.1657938063,
0.1936217546,
0.2169582099,
-0.0856486633,
-0.4177289307,
0.1580457538,
0.1372047067,
-0.3520216048,
-0.1161360145,
-0.0502138473,
-0.2620420456,
-0.1570705324,
-0.1790105551,
-0.0666503683,
0.0170435831,
0.2542369962,
0.0228168964,
-0.0022814348,
0.0898881406,
0.4797987342,
0.0068738237,
0.1321926713,
-0.2679719031,
-0.2331030369,
0.0207110792,
-0.0352905132,
-0.5559321642,
-0.0199756399,
0.2322301269,
-0.1991238147,
-0.2429983616,
0.4130985439,
0.2121967077,
0.3052723408,
-0.0656285509,
0.1739777625,
0.0271647703,
0.2331710607,
0.11749468,
-0.0087337866,
0.1551889628,
-0.1189424694,
0.1674255431,
0.5678290725,
0.0782880187,
0.2709798813,
-0.2086475194,
-0.1889793873,
0.3382748663,
-0.0512223132,
0.0360134766,
-0.3398999572,
0.1569095999,
0.0934803337,
0.0617585033,
0.2420660108,
-0.1884280294,
-0.0971818417,
0.2958265245,
-0.1709133685,
-0.0693110079,
-0.0697167814,
-0.3157297373,
0.0640434325,
0.1098500341,
0.4225112796,
0.5408828855,
0.0355893821,
-0.0270280428,
-0.1226390377,
0.0877395794,
-0.3477232158,
0.2842810154,
0.0567689762,
-0.0782583877,
0.2036445588,
0.2016818821,
-0.0129735768,
-0.3612755835,
0.2047887743,
0.1962143928,
-0.3082535863,
-0.3972664475,
0.2769382,
-0.4201708734,
0.0169210285,
-0.2480185777,
-0.0532403141,
-0.196526736,
-0.217743963,
-0.2575782537,
0.3369184136,
0.1936832219,
-0.1185880303,
-0.3190778494,
0.4337725043,
-0.1746450961,
-0.5059757233,
0.1377481967,
-0.0415901728,
-0.2272440642,
-0.0512920171,
-0.0573534407,
-0.1890226603,
-0.0249267407,
-0.1329490393,
0.0726284236,
0.0894685462,
-0.1508388817,
-0.157742992,
0.1279166639,
0.277548939,
-0.1862483621,
0.0429016016,
0.0478853956,
-0.005169563,
-0.0678488016,
0.2459174991,
0.2164948732,
-0.0260627456,
0.176884532,
-0.0759266019,
-0.0018827766,
-0.2840177715,
-0.3081314564,
0.0247397125,
0.0312394872,
0.0404083282,
0.1132462025,
-0.0014864989,
-0.3966308832,
-0.1957972646,
0.1762912273,
0.121672824,
-0.4113669693,
-0.3755251765,
0.4756686389,
-0.2218316942,
-0.0878490135,
0.1451058984,
-0.0337923989,
-0.0669073313,
-0.043366991,
-0.3657752275,
0.4310227036,
-0.2626766562,
0.2542520463,
0.234696582,
-0.2392582893,
0.2565965056,
-0.0234660599,
0.2168570757,
-0.21948421,
-0.3927708864,
0.1954288185,
0.1232837439,
0.3100215793,
0.1594950259,
0.1339702159,
-0.0279373899,
0.7450906038,
-0.1718229353,
-0.0983114764,
0.3850101829,
0.0750987604,
0.3412342668,
-0.0181274973,
-0.0712050945,
-0.0378129706,
-0.1265807599,
-0.3021030128,
0.283418864,
0.1066194102,
-0.2146603614,
-0.1131847799,
0.198718071,
-0.2486715317,
-0.3150980473,
-0.0045068692,
-0.1817230731,
-0.0972390398,
0.3563120663,
0.0614511296,
-0.2178489417,
-0.2576109469,
-0.214637503,
0.4987210035,
0.2452058196,
-0.0813575536,
0.0362474471,
-0.0781248361,
-0.0385514013,
0.2863278687,
0.2001433969,
0.1760805398,
0.0247725472,
-0.1757690907,
0.1913095266,
0.2136431783,
0.7930592895,
-0.2811442316,
0.1568860859,
0.0941016972,
0.0994807109,
0.0205856785,
-0.2948549986,
0.0798061639,
0.1979429573,
0.0210835896,
0.2169814408,
0.0903883129,
0.1625835449,
-0.0634287447,
0.288549602,
-0.1760797799,
-0.4301861227,
-0.1813442111,
0.22665672,
0.0245673358,
-0.0818468258,
-0.1082708761,
0.1065232754,
-0.3259196579,
0.0175329223,
-0.155733183,
0.1471206993,
0.056986291,
0.0696724951,
0.1517106593,
-0.0355038345,
-0.017528899,
0.2442265749,
0.1019755974,
0.1202897206,
0.4538984597,
-0.2612043619,
-0.3922267854,
-0.000703631,
-0.1960950494,
0.027452901,
0.1697649658,
-0.1067797244,
0.2334297597,
-0.0790707022,
-0.2604859173,
-0.0035099611,
-0.1814677417,
0.1122139171,
0.2038197368,
-0.4512124956,
-0.4058628082,
0.3258875012,
-0.0554784946,
-0.2559296489,
0.1496507376,
-0.094992213,
-0.4765547514,
0.3897120953,
-0.214107275,
0.7907218337,
-0.078291215,
0.2348372042,
-0.2794219255,
-0.3538900614,
0.0862285346,
0.0383170098,
0.1260598749,
-0.2394666523,
-0.4958380461,
-0.1892157942,
0.1001505405,
0.3439462185,
0.2582061291,
0.13796103,
0.3105575442,
-0.403496176,
0.4532231688,
-0.0289510693,
-0.1205710992,
0.0407458171,
-0.1886202395,
-0.0197522528,
0.0188002624,
0.0391597301,
0.2214197963,
0.0735888332,
0.1305430532,
-0.0330980793,
0.0506794453,
-0.2418764532,
-0.1328679174,
-0.042451527,
0.0774862394,
-0.2033523321,
-0.5004665256,
0.1164987609,
0.4811638892,
0.0956181437,
0.0697051585,
0.0979125649,
0.2905623019,
0.4477481842,
0.204431504,
0.042295821,
-0.1440745741,
0.0852389261,
0.2692617774,
-0.0308076143,
0.0312862955,
-0.2342546582,
-0.2706255317,
0.0721681416,
0.2193855345,
-0.0028328057,
-0.2397051752,
-0.4396778643,
-0.3141617179,
0.0672017187,
-0.0320407785,
0.0251179412,
-0.1814770252,
0.0804362893,
0.1577831358,
-0.2707767487,
-0.6040499806,
-0.2527256012,
0.4860739112,
0.13384597,
-0.2265943438,
0.4920775294,
-0.2527627349,
-0.1719788015,
0.0251069814,
0.1729394346,
-0.1921677291,
-0.0706513897,
0.1088250875,
0.0554747321,
0.1779816896,
-0.0406764075,
-0.0561647527,
0.1289060861,
0.1894943863,
-0.1891900599,
-0.5128537416,
-0.0139782541,
-0.2773659229,
-0.1763150096,
-0.0321369246,
0.3331452012,
-0.3526581228,
-0.0927773118,
-0.1866699755,
-0.1470012218,
0.2397239953,
0.2396582067,
0.0713045076,
0.308734268,
0.2459814698,
0.0709196925,
-0.0696478561,
0.0592728928,
0.0721110404,
0.0686558038,
-0.112738803,
-0.3264074624,
0.2004228383,
-0.0409803018,
0.1022215486,
-0.2532327473,
-0.3742200732,
0.100825727,
-0.3272666931,
0.1454121768,
0.3303660154,
0.0903071016,
0.1455648839,
0.0393872634,
0.1486797482,
-0.3327027261,
0.1666130126,
-0.3360443711,
0.1882568598,
0.1342082024,
0.1283868998,
-0.3437958956,
0.2336548567,
-0.3437275887,
-0.0905326307,
-0.2087257206,
0.1693560928,
0.3830246925,
-0.3520566225,
0.2139894962,
0.4557959139,
0.2927400768,
0.2756811678,
-0.1129900962,
-0.2772302628,
0.1314343214,
0.036126066,
-0.0282361619,
-0.1241686046,
0.159576267,
0.0667330995,
-0.0311175808,
0.3678380847,
0.2150235623,
0.0445861816,
0.0652377307,
-0.0151629113,
0.7256931663,
-0.2609650493,
0.4738335609,
0.4797540903,
0.2778432369,
0.3633271456,
0.4889659286,
0.0182025097,
-0.056457296,
0.7593055367,
0.1222183853,
0.1837303787,
0.5540965199,
0.0704659373,
-0.3536397517,
-0.5032399893,
0.2317383587,
0.1406024694,
-0.4301655889,
0.562718153,
0.3728711605,
0.1879159808,
-0.3548079729,
0.0179298446,
-0.3499875963,
-0.1077628508,
-0.1346458346,
-0.3442688882,
0.1918270588,
-0.1022472903,
0.0610236526,
0.1465800703,
-0.2583982348,
0.1731939614,
0.2608609498,
-0.0037710778,
-0.0425368547,
-0.4601888955,
0.0837597325,
-0.1845097542,
0.4517953992,
-0.1802875996,
0.0952512994,
-0.0390575007,
-0.0451595262,
0.4648666978,
-0.3121072352,
0.301879853,
0.2521139979,
0.3326147795,
-0.227738291,
-0.0551611558,
-0.032427229,
0.0382372588,
0.3212354183,
0.128771618,
0.020046141,
0.1461444795,
0.089189887,
-0.0379310809,
0.5240584016,
0.4534055889,
0.2770945728,
-0.520778656,
-0.3061745763,
0.0269799195,
0.0006316379,
-0.2785093188,
-0.0913929343,
-0.0344319269,
0.094351545,
0.2659897506,
0.0418442525,
0.3121054471,
0.2237242311,
0.0124190859,
0.261202395,
0.1443606913,
0.2328301519,
-0.0991443545,
-0.2329227328,
0.2141772509,
-0.7888926268,
0.0532444082,
0.2286846638,
0.1859428585,
-0.0124667808,
0.0698957294,
-0.0053086765,
0.0196039714,
0.130302012,
0.0490171462,
0.2602851689,
0.4160324931,
-0.0297500081,
-0.3272877932,
0.1327350736,
-0.1052250639,
-0.2089360356,
-0.3332625628,
0.1337275803,
0.2565191686,
-0.0738353655,
-0.1368063539,
-0.0006604418,
0.1504465938,
0.3459360301,
0.3318855762,
0.0089831296,
0.475273937,
0.0264079422,
0.1231703907,
-0.1790117472,
-0.0965863764,
-0.250138253,
0.1303343624,
0.0363452248,
0.1360016912,
-0.3375629187,
0.0401222371,
0.010268338,
0.3192101121,
0.1589882225,
-0.075591743,
-0.3314595222,
-0.1442619413,
-0.1662585139,
0.0904365778,
0.0469600521,
0.2856376469,
0.0346993506,
0.4123386145,
0.1802213937,
-0.1800528616,
0.1023081541,
-0.1942432076,
-0.1762608886,
0.126919508,
0.2522341013,
0.0130311437,
-0.098386243,
-0.2418583184,
0.0179553181,
0.5038875341,
-0.2512525618,
-0.1480124444,
0.1206952631,
-0.0764409006,
0.1261560619,
-0.2026414573,
0.4905100167,
0.3065369129,
-0.3316524327,
-0.0554146394,
-0.2716312706
] |
https://github.com/huggingface/datasets/issues/778 | Unexpected behavior when loading cached csv file? | Thanks for the prompt reply and terribly sorry for the spam!
Looking forward to the new release! | I read a csv file from disk and forgot so specify the right delimiter. When i read the csv file again specifying the right delimiter it had no effect since it was using the cached dataset. I am not sure if this is unwanted behavior since i can always specify `download_mode="force_redownload"`. But i think it would be nice if the information what `delimiter` or what `column_names` were used would influence the identifier of the cached dataset.
Small snippet to reproduce the behavior:
```python
import datasets
with open("dummy_data.csv", "w") as file:
file.write("test,this;text\n")
print(datasets.load_dataset("csv", data_files="dummy_data.csv", split="train").column_names)
# ["test", "this;text"]
print(datasets.load_dataset("csv", data_files="dummy_data.csv", split="train", delimiter=";").column_names)
# still ["test", "this;text"]
```
By the way, thanks a lot for this amazing library! :) | 17 | Unexpected behavior when loading cached csv file?
I read a csv file from disk and forgot so specify the right delimiter. When i read the csv file again specifying the right delimiter it had no effect since it was using the cached dataset. I am not sure if this is unwanted behavior since i can always specify `download_mode="force_redownload"`. But i think it would be nice if the information what `delimiter` or what `column_names` were used would influence the identifier of the cached dataset.
Small snippet to reproduce the behavior:
```python
import datasets
with open("dummy_data.csv", "w") as file:
file.write("test,this;text\n")
print(datasets.load_dataset("csv", data_files="dummy_data.csv", split="train").column_names)
# ["test", "this;text"]
print(datasets.load_dataset("csv", data_files="dummy_data.csv", split="train", delimiter=";").column_names)
# still ["test", "this;text"]
```
By the way, thanks a lot for this amazing library! :)
Thanks for the prompt reply and terribly sorry for the spam!
Looking forward to the new release! | [
0.0635634065,
-0.1376712471,
-0.1611227393,
0.3697886765,
0.0240295976,
0.1698584557,
0.7317378521,
-0.0952794105,
0.3456762135,
0.0621815659,
-0.0196885206,
0.0263576135,
0.0926187783,
-0.251698494,
-0.1203586459,
0.1674455106,
0.2184596658,
0.1518634856,
-0.1047642827,
-0.0766080692,
-0.2986094654,
0.2335492224,
-0.1557900012,
-0.2052042484,
0.0038213246,
0.3678062856,
0.0094523281,
0.2638165951,
0.1474742293,
-0.3517830372,
0.4878265858,
0.2849022448,
0.2567982674,
0.3535687923,
-0.0001240682,
-0.1025350839,
0.0330847427,
-0.2503724694,
-0.1672683656,
-0.2247181386,
-0.3010956943,
-0.3242632151,
0.1865068525,
-0.6597772837,
-0.0849222839,
0.420676738,
0.0141710024,
-0.3834718466,
-0.0065421388,
0.2676973641,
0.1516819298,
-0.2033159435,
-0.423882097,
0.2895325124,
0.3160741925,
-0.1204253137,
-0.2209732085,
0.1117422134,
0.0116423648,
0.2073913515,
-0.0646741688,
0.1226588041,
-0.2582231164,
0.3790098727,
0.4034819603,
0.2493325919,
-0.1564849019,
0.1434738189,
0.2393334508,
0.1148699075,
0.6052806377,
-0.0586436018,
-0.1364406645,
-0.4068748653,
-0.1744259149,
-0.8670361638,
0.4361382127,
0.0539967641,
0.3069907725,
0.246776104,
-0.1264297068,
0.1484863758,
-0.0315542221,
-0.0197896175,
-0.2462924719,
0.0236229133,
-0.2951022685,
0.1403374374,
-0.1081193089,
0.1042861342,
0.289193064,
-0.3306134045,
-0.104782179,
0.11542207,
-0.2247296423,
0.2880319059,
-0.1413269043,
0.063645795,
-0.1719521135,
0.1004808098,
0.1826489717,
-0.0790000111,
0.050377477,
0.0490897559,
-0.0287298523,
0.2890385389,
0.1269852966,
0.120860897,
0.1639620811,
-0.0074730106,
-0.355107069,
-0.1157699376,
-0.0323824435,
-0.0672995672,
0.7882552147,
-0.050297495,
-0.1280409396,
-0.1559326351,
-0.233063072,
0.1018707454,
-0.0144270658,
-0.2141041309,
-0.2598352432,
0.1710569263,
-0.1039734185,
0.0490734912,
-0.2729886472,
0.0823000968,
-0.1471870542,
-0.0479468927,
0.0177312717,
-0.2720466554,
-0.3006335795,
-0.1074335724,
0.1478463858,
-0.0366419964,
0.1687696278,
0.0754716545,
-0.2045572698,
-0.3488111794,
0.00925228,
-0.0401291698,
0.4940221906,
0.2162912488,
-0.0531946942,
0.4039781988,
0.1593115777,
-0.7147270441,
-0.1518325657,
0.2730325162,
-0.4315806627,
-0.1569108963,
0.0763361156,
0.0492023528,
-0.3940649629,
-0.0674637705,
-0.221747458,
0.1151744723,
0.4086596966,
-0.2435841858,
0.1309193522,
-0.2905107737,
-0.2552415729,
-0.4207429886,
-0.1456503868,
0.5577816367,
-0.6230272651,
-0.1625298113,
-0.3136778772,
-0.0159264952,
0.0115608685,
0.1959096342,
-0.0412419625,
-0.3160281181,
-0.4081628323,
0.0511098355,
0.1888677031,
-0.2318178415,
-0.500605762,
-0.0646828413,
-0.1167155132,
0.5130482912,
0.3648192883,
0.1294814944,
0.3524498343,
-0.036737375,
0.1297386289,
0.2571268082,
0.2665061355,
-0.0025443137,
-0.0771075338,
-0.0675278977,
0.3431976438,
-0.0246574245,
-0.0168967508,
0.246047765,
0.3091092706,
-0.4324562848,
0.2762365639,
0.1057216972,
-0.1308592707,
0.0779493153,
-0.1777843088,
0.2233597338,
0.2501085103,
-0.1072753966,
-0.4229776859,
0.156869188,
0.1533777714,
-0.3806134462,
-0.0688584149,
-0.0861038715,
-0.2696951628,
-0.1501079947,
-0.1360622942,
-0.0737995654,
-0.0055735409,
0.2782973349,
0.0510585755,
-0.0540147051,
0.0189770535,
0.4882961512,
-0.002306141,
0.1475074291,
-0.3020293117,
-0.2891511321,
0.0296075512,
-0.0281030498,
-0.5489795208,
-0.0158302784,
0.2357132435,
-0.2063468248,
-0.1993588507,
0.4474980235,
0.2140795588,
0.3029054403,
-0.0488798432,
0.1910491884,
0.0259767715,
0.3004654348,
0.1206993908,
-0.0338540561,
0.1411738843,
-0.1210452765,
0.1655181348,
0.5786078572,
0.0464110337,
0.2709971666,
-0.1822340786,
-0.1857109219,
0.3285138011,
-0.0327109918,
0.0395493433,
-0.3351760209,
0.1468866765,
0.1117738932,
0.0877484754,
0.2042727768,
-0.1907062382,
-0.1030515879,
0.2695426941,
-0.1807533205,
-0.0829333216,
-0.1325069368,
-0.3261303604,
0.0357437506,
0.132252112,
0.4256301522,
0.554050386,
0.0465918295,
-0.0194568634,
-0.1137773246,
0.0336300991,
-0.3271061182,
0.3168641627,
0.0437981822,
-0.1439072341,
0.1917712539,
0.1746735275,
-0.072650075,
-0.4310672879,
0.1965799928,
0.2052828074,
-0.3256498277,
-0.3820694983,
0.2823596895,
-0.3616985977,
-0.0112228841,
-0.211798504,
-0.0639660805,
-0.1837896109,
-0.208883673,
-0.2568309009,
0.3508308828,
0.1859333217,
-0.1418525279,
-0.3276413679,
0.4634443223,
-0.1766599417,
-0.4898560941,
0.1285750568,
-0.0669389144,
-0.1974188536,
-0.0571518913,
-0.1172992513,
-0.1658730954,
0.0224386472,
-0.1532195956,
0.0854036137,
0.0578614995,
-0.1726201475,
-0.1545438319,
0.1547124535,
0.2643899322,
-0.0985085517,
0.0352150947,
0.1134879366,
0.0029836819,
-0.1029514223,
0.2151021361,
0.2049871981,
-0.0899738148,
0.1729823351,
-0.0393679366,
-0.0015087277,
-0.289640516,
-0.2656745017,
0.033652015,
0.038593661,
0.0936555415,
0.11152789,
0.0407924242,
-0.4411359429,
-0.1720251143,
0.1978138685,
0.1351344287,
-0.4718317389,
-0.3725624681,
0.4636904001,
-0.2460994422,
-0.0603992455,
0.1453407705,
-0.0254067406,
-0.0932396725,
0.0253036059,
-0.346701324,
0.3654435575,
-0.2504653037,
0.2698563635,
0.2420419753,
-0.2039549947,
0.2793783545,
-0.0469127446,
0.2026347816,
-0.2383541763,
-0.3993454576,
0.1840857714,
0.1458318681,
0.3319691122,
0.1404756159,
0.0835791901,
-0.0853042901,
0.7569003105,
-0.2657803297,
-0.1096806601,
0.4194289744,
0.0669879466,
0.3835327625,
-0.0114383101,
-0.0806446522,
-0.0420295037,
-0.1353836209,
-0.3232306242,
0.2571460903,
0.1152185127,
-0.2303030342,
-0.1356866956,
0.184488833,
-0.2355636656,
-0.2845563591,
-0.0371874943,
-0.154018268,
-0.0991358906,
0.3531800508,
0.0655870736,
-0.242533654,
-0.2362828255,
-0.1866886169,
0.540658474,
0.2278036177,
-0.0869031101,
0.0188934356,
-0.0698981062,
-0.0342896283,
0.2807681561,
0.1706695259,
0.1107892692,
0.0488950461,
-0.2249497771,
0.2076177448,
0.1762590706,
0.8500134349,
-0.3017200232,
0.1375032663,
0.1269574165,
0.1223959029,
0.0215548947,
-0.3088840842,
0.0773892254,
0.2468487173,
0.0460800081,
0.2135673761,
0.1007381082,
0.1525953263,
-0.0400832444,
0.2730452716,
-0.1604162753,
-0.433727175,
-0.1859289706,
0.1993875206,
0.0514734462,
-0.0831767544,
-0.1386317909,
0.0528630763,
-0.2383345366,
0.020453237,
-0.1870723218,
0.0975984409,
0.0552864894,
0.1373880804,
0.1846156269,
-0.0090539418,
-0.0318528228,
0.2525264919,
0.1103548855,
0.0802549049,
0.4240500331,
-0.2737779021,
-0.3302913904,
-0.023626199,
-0.1315260381,
0.0048068874,
0.1606252789,
-0.1355067194,
0.2559552193,
-0.1172236949,
-0.2612062395,
-0.0024594776,
-0.1361792982,
0.135482192,
0.1744656712,
-0.4639263749,
-0.4767586887,
0.3936650157,
-0.0294942111,
-0.2998777032,
0.1450926363,
-0.0846488401,
-0.4775096774,
0.3497648835,
-0.1961151809,
0.7891481519,
-0.0871268362,
0.2582276762,
-0.2649726868,
-0.3750717044,
0.1874127686,
-0.005763039,
0.1413217336,
-0.2242703587,
-0.4079174399,
-0.1849194169,
0.0973902196,
0.3535408676,
0.2116338015,
0.1636778116,
0.3410293758,
-0.385042429,
0.4457184672,
-0.0862530395,
-0.0807002932,
0.0339006409,
-0.1628032476,
-0.0581449643,
0.0111837089,
0.0680221468,
0.2422318757,
0.0425452739,
0.1523141563,
0.0202688426,
0.0615142435,
-0.2251262069,
-0.2366583347,
-0.0081435256,
0.0796068683,
-0.2383482903,
-0.4841559231,
0.0456716493,
0.464289546,
0.1064681932,
0.0661358088,
0.0910857022,
0.3285366893,
0.4149172902,
0.1834983826,
0.0273444131,
-0.1332663,
0.1205571815,
0.258736372,
-0.0125688612,
-0.0029491819,
-0.2334614992,
-0.3164699972,
0.0615178645,
0.2487824857,
0.0067434907,
-0.2406787425,
-0.4430218935,
-0.2619332075,
0.0514281243,
-0.029436145,
0.0135702528,
-0.1599304676,
0.1055689231,
0.2052899003,
-0.2814006805,
-0.5869443417,
-0.2842291892,
0.4930379987,
0.1405243874,
-0.2589586973,
0.4142861366,
-0.2807939649,
-0.1433472037,
0.044057481,
0.1567831635,
-0.1718549728,
-0.043955937,
0.1365942061,
0.0878812596,
0.1142447442,
-0.0062848367,
-0.0296534747,
0.1100325286,
0.1960734725,
-0.2149220407,
-0.5005056262,
-0.0566537641,
-0.2965900898,
-0.1602217853,
0.0069441576,
0.3611191809,
-0.3827983737,
-0.0757138208,
-0.2007720023,
-0.1371496767,
0.2301629782,
0.2385776788,
0.0901949927,
0.3121226132,
0.2519565821,
0.085799098,
-0.0643094331,
0.0509354472,
0.0634991378,
0.0298830383,
-0.1041646451,
-0.3534561992,
0.2112171501,
-0.0843501538,
0.0853286311,
-0.2347503603,
-0.3963416219,
0.1231642514,
-0.3324134946,
0.206586197,
0.3151218891,
0.1087852418,
0.1266504973,
0.0285764262,
0.1004781574,
-0.3587027788,
0.1733619273,
-0.2975001335,
0.1408247352,
0.145712167,
0.1496671289,
-0.3840326071,
0.2196988165,
-0.2868723869,
-0.0941990018,
-0.2059144378,
0.1303634942,
0.3181655407,
-0.2837616503,
0.1729041338,
0.4548777044,
0.3350811005,
0.3565507233,
-0.0920302123,
-0.2812874019,
0.0975181013,
0.0202412438,
-0.0355745666,
-0.1689876318,
0.0808815509,
0.0242506154,
0.0017578378,
0.3426402807,
0.2381058633,
0.0890927762,
0.0593752265,
-0.0445888676,
0.706767261,
-0.2251772732,
0.4917103648,
0.5061526299,
0.2745918632,
0.3542858362,
0.5110502243,
0.0552958138,
-0.0622368567,
0.8159396052,
0.1131000221,
0.2301757336,
0.5932113528,
0.0600905865,
-0.3401615322,
-0.4667783678,
0.2498338521,
0.175190866,
-0.407556355,
0.5800361633,
0.3924193084,
0.1885272264,
-0.3639143407,
0.0339203887,
-0.3551179171,
-0.123966746,
-0.1373890936,
-0.4192867577,
0.2092300057,
-0.1127922535,
0.1046054661,
0.1503664553,
-0.259322077,
0.1763901263,
0.2875086367,
-0.0324247703,
0.006604813,
-0.4523359239,
0.1276134551,
-0.238790378,
0.4864198565,
-0.1691359878,
0.0776886791,
-0.0531557836,
-0.0248338208,
0.4844307899,
-0.2887792587,
0.3032095134,
0.2217226923,
0.3409118354,
-0.2214238793,
-0.0586366579,
-0.0433511175,
0.0088817105,
0.2829448879,
0.1242281348,
-0.0098378249,
0.1609075367,
0.0716844574,
-0.0147773586,
0.5873551369,
0.4030327797,
0.2435991466,
-0.5450231433,
-0.3061106503,
0.027220659,
-0.0067698881,
-0.2705371976,
-0.0504448451,
-0.0404727831,
0.0560705252,
0.2388051599,
0.0350366011,
0.2924754322,
0.1901610643,
0.0105318241,
0.2531071901,
0.2173403949,
0.200266555,
-0.080363445,
-0.1816770881,
0.2082998604,
-0.8221271038,
0.0112592429,
0.2440930158,
0.1712552309,
-0.0040073171,
0.0789774656,
-0.0287955254,
0.0089652594,
0.1912526488,
0.0268274024,
0.2903030813,
0.3698179126,
-0.0227639824,
-0.327732116,
0.0798025131,
-0.1364519,
-0.1759259701,
-0.3469600677,
0.1330259591,
0.2561320662,
-0.1076903194,
-0.1383013725,
0.0438507199,
0.2025583088,
0.3548042178,
0.3398695588,
-0.0307315234,
0.4765973091,
0.0161877871,
0.132248804,
-0.1990057826,
-0.0862092376,
-0.2432598174,
0.0814134032,
0.0601313598,
0.110894233,
-0.3156265914,
0.0690523162,
0.0587654859,
0.3522514403,
0.1713688374,
-0.0699585378,
-0.3251213431,
-0.1448877752,
-0.187533617,
0.0587781444,
0.0332417525,
0.3184866011,
0.0365314558,
0.3696568012,
0.13527973,
-0.192396313,
0.105898425,
-0.2028212249,
-0.1624309421,
0.0901484638,
0.2283805013,
0.0470426828,
-0.073848635,
-0.3213832974,
0.0497561991,
0.4919182658,
-0.2325768173,
-0.1498885006,
0.1395070404,
-0.0885124356,
0.1234908998,
-0.2168568075,
0.4710741937,
0.3272688687,
-0.3144699037,
-0.0552009717,
-0.2917205095
] |
https://github.com/huggingface/datasets/issues/771 | Using `Dataset.map` with `n_proc>1` print multiple progress bars | Yes it allows to monitor the speed of each process. Currently each process takes care of one shard of the dataset.
At one point we can consider using streaming batches to a pool of processes instead of sharding the dataset in `num_proc` parts. At that point it will be easy to use only one progress bar | When using `Dataset.map` with `n_proc > 1`, only one of the processes should print a progress bar (to make the output readable). Right now, `n_proc` progress bars are printed. | 56 | Using `Dataset.map` with `n_proc>1` print multiple progress bars
When using `Dataset.map` with `n_proc > 1`, only one of the processes should print a progress bar (to make the output readable). Right now, `n_proc` progress bars are printed.
Yes it allows to monitor the speed of each process. Currently each process takes care of one shard of the dataset.
At one point we can consider using streaming batches to a pool of processes instead of sharding the dataset in `num_proc` parts. At that point it will be easy to use only one progress bar | [
-0.4709306061,
-0.308660388,
-0.2045883834,
0.028243959,
-0.1614848077,
-0.0598896965,
0.4274543226,
0.195497945,
-0.1440223157,
0.5090811253,
0.0353115201,
0.218555212,
0.1020266414,
0.5341002345,
0.0146907642,
-0.0062400382,
0.0625614747,
0.1021449566,
-0.0488367565,
0.2574521303,
-0.0931534022,
-0.0605297908,
0.0501902997,
0.0376354381,
-0.0566339567,
0.1142690331,
-0.0659438521,
-0.2918228507,
0.2581534982,
-0.6436378956,
-0.0705320314,
0.4315350056,
0.1479462683,
0.2352977842,
-0.0001087357,
0.0400768593,
0.4632193744,
0.1836578846,
-0.1190843731,
0.0478733145,
-0.3992360532,
-0.4790294468,
0.1656674892,
-0.504508853,
0.2479818463,
-0.0170507655,
0.347995162,
-0.2314992249,
0.1535723954,
-0.083943896,
0.223287493,
0.2877655625,
-0.459203124,
0.0202863887,
0.1309509873,
-0.1544235647,
-0.0351944454,
-0.2405850887,
0.4689825177,
0.3584712148,
-0.3671169877,
0.3515625298,
0.0340408757,
0.1914625764,
0.0236288067,
0.1282079369,
0.6972885132,
-0.4359755814,
0.0484608524,
0.2073630393,
0.1045904756,
-0.284971565,
-0.0844793618,
-0.3046000898,
-0.1938551664,
-0.2056358159,
-0.4532281756,
0.1575135142,
0.0647705793,
0.0178038906,
-0.6200435758,
0.1119636297,
-0.1470357627,
-0.1840855181,
0.1084483564,
0.006743364,
0.0264973417,
0.4649553299,
-0.0114117153,
0.4518719316,
-0.0388084836,
-0.2027374804,
0.1169733107,
-0.213753581,
-0.2411208153,
0.0346874297,
0.1544518918,
0.0547252372,
0.0288697779,
0.0516920574,
-0.0968001261,
0.1749567986,
0.1914673746,
0.2314074039,
0.2765748203,
-0.2618947625,
0.4729350805,
-0.1703928262,
0.2630071044,
-0.2552232742,
0.0469890982,
0.1240872666,
0.2900396287,
-0.0927149877,
0.1685596108,
0.2086962461,
-0.2425429374,
-0.1615764797,
0.0094219297,
0.0010095686,
0.2904829979,
-0.2892686129,
0.0285684131,
0.3051283062,
0.1149001718,
0.0218193568,
-0.3511647582,
-0.0229732767,
-0.0496000946,
-0.1967033446,
-0.1722452343,
-0.1653998345,
-0.2894491255,
0.218325004,
-0.2506635189,
-0.0741725489,
0.08144366,
-0.1543470323,
-0.0386419073,
0.2655334175,
0.1757424474,
-0.339612335,
0.3054897487,
0.1419826448,
0.0801867396,
0.2001366913,
0.0496959798,
0.27865237,
-0.292856276,
0.2514975965,
0.0229023118,
-0.2703838944,
0.1072917283,
0.1575705111,
-0.153510198,
0.2138029784,
-0.4039466977,
0.5481809974,
0.0917498022,
-0.3025374413,
-0.1266032308,
-0.0488538444,
-0.6243525147,
-0.2712553144,
0.0405889526,
0.1322114021,
-0.2416713238,
-0.0713705495,
-0.0160468407,
-0.469797343,
0.3007003069,
0.1141306758,
-0.2179167569,
-0.146421805,
-0.0874193013,
0.3367350101,
0.0742599219,
-0.3036817908,
-0.2639028132,
0.3852698505,
-0.0571712293,
-0.2511281073,
0.4734431505,
0.2763563395,
0.3704318702,
-0.3024574518,
-0.3997047544,
-0.0985456258,
-0.2268816084,
0.1177965477,
-0.059659332,
-0.0823587775,
-0.0747475028,
0.1807520241,
0.0954397693,
0.0563103631,
0.2851857841,
-0.5802690983,
0.5668186545,
-0.0123186205,
0.3039402962,
-0.0066162297,
0.0904613063,
-0.2783015966,
-0.1680067629,
-0.0736056045,
-0.1742736995,
0.3511590362,
-0.3102019429,
-0.1334916353,
0.1653240323,
-0.189437449,
0.1740194261,
-0.0404677913,
0.1339491457,
0.0983713716,
0.0937824696,
0.0987957045,
0.0879107267,
-0.2542563081,
-0.0760832056,
0.2311393619,
-0.4155817628,
-0.4498785138,
-0.1657536924,
0.2748686969,
0.1072593257,
-0.1088304669,
-0.0145295188,
-0.1064907312,
-0.109367989,
-0.0450531989,
0.1098113656,
0.1773905754,
-0.0653681904,
0.3082703054,
0.0906936973,
0.3370725513,
0.1831720769,
0.0336818397,
-0.0647952482,
-0.2131908983,
-0.0464833938,
-0.1356779337,
-0.0577806905,
0.1218630522,
0.0721359253,
0.2871168554,
0.1541024745,
-0.1059594005,
0.0830244794,
0.1000436693,
-0.2972299159,
-0.2367682159,
0.1199105233,
0.4398562014,
0.2085002065,
-0.1657768041,
-0.0968091339,
0.4711033702,
0.6808502674,
0.1080577001,
-0.3228966892,
0.074497655,
-0.0657467097,
-0.0953096077,
0.3842846751,
0.2983469069,
0.40659073,
0.427660495,
0.2452057898,
-0.0813860297,
-0.1607412249,
-0.1940166652,
-0.1250540316,
-0.0150071122,
0.0925907046,
-0.0729607344,
-0.0337654501,
-0.2909651995,
-0.0688745826,
-0.4779722095,
0.0624380335,
-0.0120142754,
0.0565491021,
-0.1840170324,
-0.1028186828,
-0.1075433418,
-0.1546378434,
0.0755565614,
0.2769265473,
-0.368219614,
0.0886845887,
0.3004534543,
-0.173761636,
0.1589631289,
0.3338919878,
-0.038223356,
-0.1383945346,
0.4887758493,
-0.3873394132,
-0.3365316987,
-0.0283086393,
0.0608987138,
0.025571838,
0.1921039373,
0.4016202986,
-0.1541721225,
0.0286472738,
-0.5659897923,
0.1881169677,
0.0100373533,
-0.2315944433,
0.0740463883,
-0.1519623697,
0.0504130051,
-0.1466158777,
0.1371090263,
0.1928317845,
-0.4140230417,
-0.0366276875,
-0.1570466906,
-0.0845531523,
-0.2458760887,
-0.0915626287,
0.0465401895,
-0.5235553384,
-0.3526059091,
0.1706469953,
-0.0176658295,
0.3490065038,
-0.3921487629,
-0.212051928,
0.252513051,
0.103681162,
-0.0600115433,
-0.1542236954,
-0.473819375,
-0.1403233856,
-0.0414546579,
-0.2489227802,
-0.0744529516,
0.1832369715,
-0.0684682429,
0.1845674068,
-0.335062474,
-0.140323475,
-0.3038953245,
0.2524099052,
0.2147921324,
0.2422605306,
0.3234029412,
-0.0331823714,
-0.1720405519,
0.0375236943,
-0.1058015227,
0.1440331787,
0.0208566412,
0.0050096624,
-0.0978924036,
0.1340554804,
0.029406637,
0.5478230715,
0.437844336,
-0.3881166577,
0.0392036065,
-0.1871100217,
0.0481576696,
-0.0191755556,
0.0773203,
0.1866523176,
-0.1598360538,
-0.0833102316,
0.2705335021,
-0.1076517329,
-0.1935265958,
0.0353364721,
0.2834668458,
-0.096998021,
-0.1716634184,
-0.096648559,
0.1232762784,
0.2239532769,
-0.0467756018,
0.0259044319,
-0.0451238565,
-0.0510886125,
-0.3012230396,
0.0600422956,
0.354840219,
-0.1982382983,
-0.1405565888,
-0.1563340425,
-0.75235641,
0.3945202827,
0.1789794266,
-0.2582483888,
-0.0577144809,
-0.0581943691,
0.0475284792,
-0.0013055392,
0.4540849328,
-0.2986179292,
-0.13087219,
0.0290294737,
-0.2905184925,
-0.1905003339,
-0.10941948,
-0.2077121735,
0.3212666512,
0.1919550896,
0.1171799153,
-0.2532634139,
-0.0952735469,
0.0392367803,
0.0910210907,
-0.139530167,
-0.3234475255,
-0.3122165799,
0.0280115977,
-0.0952094495,
0.1391065121,
-0.2067492604,
-0.1781120002,
-0.3750585318,
-0.4214894772,
0.1731846929,
0.0366112143,
-0.0659494996,
0.2938272953,
0.0106503926,
0.136657238,
0.1566674709,
-0.0006717741,
0.3739664853,
0.230782181,
-0.0054619983,
-0.0372015908,
0.0880711824,
0.3376570344,
-0.2517062426,
0.1992790699,
0.2213505208,
0.1350203753,
0.2246278971,
0.2069752961,
0.3590280712,
-0.1791722327,
-0.0434532352,
-0.0544578359,
0.1770002991,
-0.3458551168,
-0.1547008753,
0.3590991795,
0.266407907,
-0.1463783085,
0.3667653203,
-0.4146935344,
-0.0973806083,
-0.0846939236,
0.0067300312,
0.6404385567,
-0.6624415517,
-0.0012042494,
-0.0647820234,
-0.095127888,
0.208450675,
0.1365949214,
0.0811420307,
-0.513269186,
-0.346544534,
0.0587398857,
-0.0803441405,
0.1771934479,
0.3014800251,
-0.4407895207,
0.1053333133,
0.3916268051,
0.0018316931,
-0.2904693484,
0.1066152677,
0.1912129372,
-0.0743320584,
-0.2516305447,
0.1422360092,
0.0133030806,
-0.3869443536,
-0.1404529214,
0.1109568626,
0.1591569632,
0.0576251894,
-0.0779483765,
-0.2499791682,
0.2778434455,
0.2395842969,
-0.1950542033,
-0.27633968,
-0.1448336095,
0.2340302169,
0.0931277722,
-0.2261740714,
-0.048587203,
-0.052820351,
0.1196552962,
0.2626810372,
-0.0149984527,
-0.2381755412,
-0.0223774575,
-0.1648024917,
-0.3957275152,
0.4399856925,
0.0107972063,
-0.5087301135,
-0.092629686,
0.4703205824,
0.2749840617,
0.2117154151,
0.2134134024,
0.3843767345,
-0.4483097196,
-0.1238316149,
0.0901228786,
0.3654625416,
-0.3199885488,
0.6993050575,
-0.1303528398,
-0.3771055341,
-0.1530619115,
0.0531109646,
0.1262801737,
0.2108530402,
-0.2507434189,
0.074058041,
-0.12650913,
-0.2178711891,
-0.0359619856,
-0.0132289473,
0.0612446964,
0.1062274873,
0.070489049,
0.1761896908,
0.0199554898,
0.133025974,
-0.034077201,
0.2667894959,
-0.242392838,
-0.1095245332,
-0.4801990688,
-0.0197230279,
-0.1943639219,
0.4233627319,
0.097843416,
0.0701467097,
0.0185036287,
0.2261428982,
-0.3720759153,
-0.2011395693,
-0.3223801851,
0.380959183,
0.0674003512,
0.0509366207,
-0.0165478885,
0.0326884575,
0.1133495271,
0.2673209608,
-0.5762637854,
-0.2781189084,
0.1331929713,
0.1279918104,
-0.1458606869,
0.0397992954,
-0.1244825944,
0.252982229,
-0.0980200022,
-0.1641075313,
0.2600607276,
0.2658550143,
-0.0876693428,
0.0391847864,
0.3612808883,
-0.0274145007,
-0.1187921464,
0.0602249838,
0.0727330297,
0.2029425204,
-0.268740207,
0.4438776076,
-0.0692411363,
-0.0369620323,
0.2527554333,
-0.0771591663,
0.4333481789,
0.3147989511,
-0.1164797172,
0.1425154954,
0.1690789163,
-0.1300197393,
0.6643266082,
0.2362798154,
0.0557557978,
-0.2299120724,
0.1429083347,
0.2428238839,
-0.0022660494,
0.076853089,
0.4340242445,
-0.0005966574,
0.4263563156,
0.1969957054,
0.253264606,
0.1968129873,
0.2387290299,
0.0222465135,
0.0909249336,
-0.4251675308,
-0.0452213399,
0.037661586,
0.235675931,
0.109623313,
0.2234320343,
0.0046120454,
0.0234791897,
0.1442655325,
-0.0361307524,
0.6295456886,
0.0342196077,
0.0963840038,
-0.1208273321,
0.1012350023,
-0.0883340687,
0.1687152088,
-0.4824107289,
0.0089085223,
0.1505182385,
0.3759706616,
-0.1967577934,
-0.0613399968,
-0.111912787,
0.1956705451,
0.0537947975,
-0.177087158,
-0.1809974909,
-0.0394153148,
0.0887821317,
0.1929961294,
0.1651943326,
0.2455891222,
0.6638799906,
0.1000954658,
0.2418382168,
-0.1280752867,
-0.0973650515,
-0.0180218257,
0.3237376511,
-0.1522716433,
-0.2086371034,
-0.1455534995,
0.096107617,
0.1927005649,
0.0040111206,
0.0950799733,
0.0377643332,
-0.0075850394,
0.0366204754,
0.0180716254,
0.0439562723,
-0.2682689726,
-0.0291491151,
0.2027616352,
-0.1386902779,
0.3927564621,
0.1640308052,
-0.1708240807,
0.4104484916,
0.036322251,
0.044845134,
-0.2567977309,
0.3423309922,
0.0226627886,
-0.2043817937,
0.0877962112,
-0.110241197,
-0.253087461,
0.0432954021,
0.4033911824,
-0.5760537386,
0.083831057,
-0.0725015551,
0.1238422394,
-0.2732954919,
0.4418151975,
0.0909440666,
0.5844124556,
-0.2890384793,
-0.1479345858,
-0.2420906723,
0.0854984,
0.0594620034,
0.0200900957,
-0.1961837858,
0.3414388001,
-0.0361191444,
0.4042433798,
0.4936389923,
-0.2218495309,
-0.1770956963,
0.3003435731,
-0.2015594691,
0.1698971987,
-0.129244715,
-0.1051199958,
0.0681947693,
-0.2566548884,
0.2003930807,
0.0981535092,
0.1799390912,
0.030790031,
0.0592925549,
0.3669610023,
0.0161053203,
0.4975045025,
0.0005672462,
0.3057104051,
-0.2027688473,
0.1349600554,
0.0104378201,
0.0972572267,
-0.0923424736,
0.1135527566,
0.0688800216,
0.3002983332,
-0.2168045789,
0.2165967524,
-0.0770045668,
0.1311835498,
0.2174635828,
0.0848719552,
0.300878793,
-0.1078955382,
0.0197879672,
0.0333396159,
-0.1427421719,
0.2304474413,
0.2945034802,
0.0949377641,
-0.0765368417,
0.0933339521,
0.1654151082,
-0.381416589,
-0.2248795629,
-0.2506603599,
0.1779885888,
-0.2140319496,
-0.0164401159,
-0.2841696739,
-0.3223105371,
0.2579375505,
-0.1390103996,
-0.3697531819,
0.1706743836,
-0.0640493557,
-0.3540692329,
0.0441493243,
0.0142032346,
0.1825510561,
-0.2490622103,
-0.3193568885,
-0.4881697893
] |
https://github.com/huggingface/datasets/issues/769 | How to choose proper download_mode in function load_dataset? | `download_mode=datasets.GenerateMode.FORCE_REDOWNLOAD` should work.
This makes me think we we should rename this to DownloadMode.FORCE_REDOWNLOAD. Currently that's confusing | Hi, I am a beginner to datasets and I try to use datasets to load my csv file.
my csv file looks like this
```
text,label
"Effective but too-tepid biopic",3
"If you sometimes like to go to the movies to have fun , Wasabi is a good place to start .",4
"Emerges as something rare , an issue movie that 's so honest and keenly observed that it does n't feel like one .",5
```
First I try to use this command to load my csv file .
``` python
dataset=load_dataset('csv', data_files=['sst_test.csv'])
```
It seems good, but when i try to overwrite the convert_options to convert 'label' columns from int64 to float32 like this.
``` python
import pyarrow as pa
from pyarrow import csv
read_options = csv.ReadOptions(block_size=1024*1024)
parse_options = csv.ParseOptions()
convert_options = csv.ConvertOptions(column_types={'text': pa.string(), 'label': pa.float32()})
dataset = load_dataset('csv', data_files=['sst_test.csv'], read_options=read_options,
parse_options=parse_options, convert_options=convert_options)
```
It keeps the same:
```shell
Dataset(features: {'text': Value(dtype='string', id=None), 'label': Value(dtype='int64', id=None)}, num_rows: 2210)
```
I think this issue is caused by the parameter "download_mode" Default to REUSE_DATASET_IF_EXISTS because after I delete the cache_dir, it seems right.
Is it a bug? How to choose proper download_mode to avoid this issue?
| 17 | How to choose proper download_mode in function load_dataset?
Hi, I am a beginner to datasets and I try to use datasets to load my csv file.
my csv file looks like this
```
text,label
"Effective but too-tepid biopic",3
"If you sometimes like to go to the movies to have fun , Wasabi is a good place to start .",4
"Emerges as something rare , an issue movie that 's so honest and keenly observed that it does n't feel like one .",5
```
First I try to use this command to load my csv file .
``` python
dataset=load_dataset('csv', data_files=['sst_test.csv'])
```
It seems good, but when i try to overwrite the convert_options to convert 'label' columns from int64 to float32 like this.
``` python
import pyarrow as pa
from pyarrow import csv
read_options = csv.ReadOptions(block_size=1024*1024)
parse_options = csv.ParseOptions()
convert_options = csv.ConvertOptions(column_types={'text': pa.string(), 'label': pa.float32()})
dataset = load_dataset('csv', data_files=['sst_test.csv'], read_options=read_options,
parse_options=parse_options, convert_options=convert_options)
```
It keeps the same:
```shell
Dataset(features: {'text': Value(dtype='string', id=None), 'label': Value(dtype='int64', id=None)}, num_rows: 2210)
```
I think this issue is caused by the parameter "download_mode" Default to REUSE_DATASET_IF_EXISTS because after I delete the cache_dir, it seems right.
Is it a bug? How to choose proper download_mode to avoid this issue?
`download_mode=datasets.GenerateMode.FORCE_REDOWNLOAD` should work.
This makes me think we we should rename this to DownloadMode.FORCE_REDOWNLOAD. Currently that's confusing | [
-0.2590152919,
-0.1065788642,
-0.0324915871,
0.0735093951,
0.3922299445,
-0.0588002354,
0.4731937647,
0.0939230025,
0.1750782728,
-0.08836025,
-0.2146193385,
0.1605180651,
0.2840966582,
0.1457755268,
-0.0188389309,
0.0348512679,
0.1505483538,
0.0791149363,
-0.2978680134,
0.0446996987,
-0.4603429735,
-0.0685207173,
-0.2154769897,
-0.1834252477,
0.1294441819,
0.1641886532,
0.167755127,
0.1845181435,
-0.150362283,
-0.4337636828,
0.4201340973,
0.1227664053,
0.4481951594,
0.0825555921,
-0.0001264689,
0.0161512792,
0.2499263138,
-0.3601167798,
-0.1838917583,
-0.3393195271,
-0.187048614,
-0.2415879816,
0.2389958501,
-0.3605294824,
0.0253111571,
-0.1680580229,
0.0001142435,
-0.1210172623,
0.1644960791,
0.3842560053,
0.1007683128,
0.0781160891,
-0.118841216,
0.1853101552,
0.1774170846,
0.1141072363,
-0.0534455553,
0.4895188212,
0.3477609754,
0.2589946985,
0.0926228464,
0.0057657771,
-0.2732251287,
0.1277932823,
0.4341211915,
0.0734033585,
0.5844095945,
-0.2041934133,
-0.0044306861,
-0.0334150903,
0.8179600239,
-0.2546541989,
-0.1575487256,
-0.2335109711,
0.0608677715,
-0.3556727767,
0.1805979759,
0.0530937836,
-0.0197087415,
0.2729559243,
-0.3150650263,
-0.1112685204,
-0.0100992396,
0.3499968052,
0.0204174444,
0.0267177243,
-0.1969671249,
0.3487561941,
0.2979357541,
0.0454991125,
0.2575612664,
-0.417383939,
0.2050903141,
0.0337816291,
-0.3376113176,
0.1275114119,
-0.1520016342,
0.2336505204,
0.2249236107,
0.2109155059,
-0.1419792473,
-0.1402303874,
-0.0618303753,
0.0403220579,
0.2665918171,
0.0689635128,
0.1517965645,
-0.3156388998,
0.0201867819,
0.0933014229,
0.2016440183,
0.078651011,
-0.0195760801,
-0.2522192895,
0.5681583881,
0.0203412361,
0.1890550703,
-0.1091509983,
-0.2952100635,
-0.1585885584,
-0.0716224611,
-0.1131574064,
-0.0582124442,
0.3231156766,
0.0163157284,
0.1556693017,
-0.1274559498,
0.4184003472,
-0.2559094131,
-0.1300953776,
-0.0085907169,
-0.185862869,
-0.2180098742,
-0.1199807003,
0.3201863766,
-0.2929285169,
0.2597479224,
0.390403986,
-0.1863561124,
-0.1730379164,
-0.0431317911,
-0.0347853079,
0.0328733996,
0.4530650079,
0.0829751715,
0.2083438635,
0.2178871036,
-0.1803501695,
-0.0289742276,
0.577611506,
-0.3491700292,
-0.4118052423,
0.0366013348,
0.0541905575,
-0.2928561866,
0.0450676717,
-0.3806698024,
0.1129914075,
0.065472573,
-0.2287004739,
0.0757199675,
-0.3123000264,
-0.0028018057,
-0.3451227546,
-0.0431127548,
0.7118003368,
-0.5010122657,
-0.0086218044,
-0.2906817496,
-0.280680865,
0.3792179823,
0.00949944,
-0.3852300346,
-0.0082768165,
-0.2139979303,
-0.1566238105,
0.4293204546,
-0.2520582974,
-0.5417470932,
0.2455404997,
-0.0221252143,
0.0183113739,
0.2990801334,
0.21416758,
0.1585569978,
-0.1784642935,
-0.1892068684,
0.2094288915,
0.0773765668,
0.148195982,
-0.0499618687,
-0.2345116735,
0.2615919411,
0.045915775,
-0.245391503,
0.2021596283,
0.0001854748,
-0.2519764304,
0.1741706431,
0.0604266748,
-0.1360566616,
0.014371071,
0.1059252247,
0.1329714656,
-0.1386199296,
0.1003472656,
-0.7810969949,
-0.0219679624,
0.2704708278,
-0.2892315686,
-0.2882657647,
-0.1170225516,
-0.4807580411,
-0.1440789402,
-0.2776656449,
0.0687074214,
-0.0466014408,
0.2238104939,
0.1725720018,
-0.0634524226,
-0.1081570014,
0.2495521754,
-0.2250650227,
0.2756275833,
-0.0094522089,
0.207964927,
0.0840709209,
-0.0544581562,
0.0670939088,
-0.3101551831,
0.344011873,
-0.2031057626,
-0.1752130091,
0.573730588,
0.2345302701,
0.2890974283,
-0.5119720101,
0.0518640429,
0.1824991256,
0.1577416956,
-0.0079131387,
-0.0924289003,
0.234343037,
0.041608654,
-0.2178075761,
0.1471989304,
-0.2413249761,
0.0972041935,
-0.1732244194,
-0.1812309474,
0.2972186804,
0.0828675926,
-0.1139895171,
-0.1572599858,
-0.1486054957,
0.1153391153,
0.2650653124,
0.187907666,
-0.1227844283,
0.0679868534,
0.3652750552,
-0.2784504294,
0.1460532397,
0.1251478195,
-0.0094353333,
-0.2080769539,
0.3465997577,
0.1289142817,
0.6112675667,
0.0654186606,
-0.0754427165,
-0.0606172234,
-0.1442534328,
-0.2393883318,
0.4105067253,
-0.0799899697,
0.3619146049,
0.1431762278,
-0.0048229583,
-0.380191654,
-0.4402507544,
0.2052969337,
0.3782948256,
0.2404873818,
-0.4643078446,
0.0005682632,
-0.3054568768,
-0.1668853015,
-0.1141233295,
0.0788457245,
0.1046217158,
-0.1976699531,
-0.310896337,
0.3138915598,
0.0799463168,
0.2038166523,
-0.2323595881,
-0.1495494395,
0.0818996653,
-0.7005098462,
0.0314335078,
-0.0007051788,
-0.318924576,
-0.1002831012,
0.2216481119,
-0.1986533701,
0.1419192255,
-0.3100056648,
-0.002307862,
-0.3742951155,
0.0458805859,
-0.0204489529,
0.0504448414,
0.2778351009,
0.0114177503,
0.3690235019,
0.0027452707,
0.1271581948,
0.201746881,
-0.0212167986,
0.0861168504,
0.1441335082,
-0.1074907333,
0.1517083943,
-0.1264478415,
-0.6500135064,
-0.2897948623,
-0.1877050847,
-0.1765021235,
0.0215184093,
-0.0308009088,
0.1151904389,
0.2868538499,
-0.1826749295,
0.1109596938,
0.1347942203,
-0.3872717023,
-0.1322165579,
0.4630841017,
0.1229641885,
-0.1389096528,
-0.098570168,
-0.0331155844,
-0.0166520029,
0.3244378865,
-0.2626567781,
-0.2504926622,
-0.1454026401,
0.3590504527,
-0.052016452,
0.3368939161,
0.2954984605,
0.0277533606,
0.1441575885,
-0.0169327483,
-0.2331855148,
0.0601133481,
0.2177975476,
0.1577085704,
0.3307510912,
0.4238833487,
-0.17383641,
0.4840952158,
0.153159678,
-0.0859378204,
0.3802890778,
-0.14450638,
0.3086200953,
0.1956124455,
-0.144371897,
-0.047114443,
-0.1648572683,
0.0203243941,
0.2302614152,
-0.1398410052,
-0.183841303,
-0.1184367836,
0.1428221017,
-0.5527739525,
-0.3069432974,
0.103321299,
0.3018541038,
0.1691404879,
0.0940615088,
0.2061567008,
-0.1130310297,
-0.0955074131,
-0.017524194,
0.5914147496,
0.1602537036,
0.192405194,
-0.1053316295,
0.1548232585,
-0.1293422133,
0.2942939401,
0.1301004887,
0.5032504201,
0.2339007556,
-0.0042750016,
0.1287278235,
-0.0633388311,
0.8413119912,
-0.1583164036,
0.186167866,
0.0334563181,
0.3317714334,
-0.2436379194,
-0.1645717323,
-0.1117372811,
0.1501458883,
0.008176202,
0.0972548351,
-0.3879665136,
-0.1228454188,
-0.0531564951,
0.4365914762,
-0.0659546331,
-0.4471815825,
-0.2841567099,
-0.4376521409,
-0.4462881088,
-0.0384516343,
0.017905049,
0.0549998432,
-0.2249458432,
0.0436705351,
0.1634765863,
0.0042292029,
0.0384980664,
-0.0271527693,
0.1122300774,
0.1543845981,
-0.0148829184,
0.0019934848,
-0.3943805993,
0.2264146805,
0.5883176923,
-0.2196047604,
-0.3321847916,
0.0661515445,
0.0548971966,
0.1920357198,
0.1493555903,
-0.2415277511,
-0.076754719,
-0.103072308,
-0.0792036429,
-0.1488852352,
0.0430941619,
0.2652293444,
-0.0753983855,
-0.1187168211,
-0.8903483152,
0.5784327388,
-0.0845572203,
-0.1509041339,
0.0467398725,
0.252681613,
-0.1398814917,
-0.0810651481,
0.0712350756,
0.7645348907,
-0.2446298599,
-0.0281875506,
0.3306537271,
-0.0313087478,
0.5819001198,
-0.2537858486,
0.1236414388,
-0.2166162878,
0.1507579684,
-0.023589164,
-0.2288698852,
0.3793827295,
0.1672845632,
-0.1164104566,
0.4459979832,
-0.1671119928,
0.4117124677,
0.0936773866,
0.1271076798,
-0.3512286842,
-0.2483048439,
-0.2595973313,
0.0272982605,
-0.2073262781,
0.1427219957,
0.0314564407,
0.1156668365,
0.058483541,
0.1598693132,
-0.0451959446,
-0.1212364733,
-0.229578793,
0.00179068,
-0.3966820836,
-0.272035569,
0.1914280057,
0.5301152468,
-0.0140770152,
-0.0348486081,
-0.0856882632,
0.0302889869,
0.0427077338,
0.1711214781,
-0.1391274035,
-0.0649029091,
0.310939461,
0.0959453434,
-0.2223523855,
0.1240219846,
0.0232860632,
0.0939393267,
-0.0355421752,
-0.1313208342,
0.2292875499,
-0.4811423719,
-0.5293101668,
-0.0353394859,
0.1185797974,
0.0136948898,
-0.0309409797,
-0.0769598931,
0.1665365696,
0.2045460492,
-0.3246527016,
-0.3708273172,
-0.2980577946,
0.3471219242,
0.1109896302,
0.1481262147,
0.0971215069,
0.0001109019,
-0.1615224481,
-0.0228978395,
0.0979117453,
-0.3864876628,
-0.4743148685,
0.1178058535,
0.0866523013,
0.2270767391,
-0.1768538356,
0.0574982502,
0.1341667175,
-0.0762520134,
0.052652508,
-0.2332752198,
-0.2053673565,
-0.0183456019,
0.2304299027,
0.0131688211,
0.3149641752,
-0.1650412679,
0.111776121,
-0.5403917432,
-0.1521465033,
0.0065380633,
0.2150777131,
0.1250234842,
0.1544850618,
0.1720166802,
-0.0364372432,
-0.1557386965,
-0.0178513415,
-0.0280960053,
-0.2507571876,
-0.0906893015,
-0.2075922787,
0.2264264971,
0.0391301289,
-0.1974165738,
-0.0468598716,
-0.4403029084,
-0.0294080805,
-0.176154092,
0.2162544727,
0.2070030719,
-0.0021214671,
0.1487756968,
-0.1941695511,
-0.116510883,
-0.4289854169,
0.0431866609,
-0.2956336439,
0.2552610636,
0.2014313042,
0.2439677268,
0.0786945224,
0.0370715261,
-0.4545848072,
0.0401396863,
0.1246690899,
0.1746946573,
0.1457859725,
-0.2142536044,
0.2793748379,
0.0259602405,
0.2397790551,
0.5284754634,
-0.1379822493,
-0.1658488959,
0.1686351299,
0.0423346311,
-0.2324795425,
-0.0726399347,
-0.1131525636,
0.0683515519,
0.0421705469,
0.4152802229,
0.1428386718,
0.1111134738,
-0.0356443375,
-0.1007112637,
0.5492891073,
0.20587264,
0.0787734538,
0.7013626099,
0.105908975,
0.1620966196,
0.3812279999,
0.2146878988,
0.0375311673,
0.2751407623,
-0.0656057447,
0.0851576477,
0.1346250921,
0.1996566951,
-0.2870312333,
-0.5832771063,
0.3192640245,
0.4408169687,
-0.5928213596,
0.1920887828,
0.3697038293,
0.2482478321,
-0.2218414247,
-0.0297820978,
-0.2140139937,
0.1440793723,
-0.1356635094,
-0.3109326661,
-0.0124058872,
-0.3898655474,
-0.0671017021,
0.3456320167,
-0.3711062074,
-0.2835859954,
0.1845793873,
0.1933748126,
-0.0784090459,
-0.5394614935,
0.0342945382,
-0.0206877626,
0.2379595041,
-0.0495139696,
0.3212912977,
0.3100028336,
-0.0349973999,
0.1355138719,
-0.0280304365,
0.3714963794,
0.1949168146,
0.1508665085,
-0.2217589617,
0.2618807256,
0.0822882503,
-0.0570816807,
0.0875389427,
0.1370288134,
0.4188597798,
0.2379578948,
0.1006565467,
-0.0418211594,
0.0913757384,
0.2075312585,
-0.3471574187,
-0.3320117891,
0.0766509771,
-0.0371061265,
0.0312491357,
0.0664570034,
0.0859543681,
-0.1704255491,
-0.071607627,
0.3773829639,
0.0223165005,
0.1777162701,
0.0167678222,
0.0174006,
0.0680171698,
0.156742394,
-0.0432052463,
-0.0552344806,
-0.3518211842,
0.2130559683,
-0.7748299241,
-0.1737463176,
-0.0107038878,
-0.2574956417,
0.1445356309,
-0.0978596509,
0.0943775475,
0.4485421181,
0.1237154901,
-0.001875028,
0.4510883391,
0.2833922505,
0.2019163072,
-0.3725009263,
-0.0247978568,
0.0199978109,
-0.2211813778,
-0.5889336467,
0.2781898081,
-0.2334428728,
-0.046106182,
-0.3980059922,
0.0939548463,
0.3640526831,
-0.0353138037,
0.5893185139,
0.064381294,
0.4532057345,
0.0070296824,
0.0586425662,
0.1992734671,
0.2542237639,
-0.0262674633,
-0.0073237363,
-0.2787486911,
0.2373548001,
-0.2713416517,
0.2070482373,
-0.2745245695,
0.2398114055,
0.2244436294,
0.0214671083,
-0.2905826569,
-0.0523136407,
-0.1326316446,
-0.3739032447,
0.0139941797,
0.3103610575,
-0.1122550368,
0.4573248923,
-0.1265621632,
-0.1473311335,
0.3881327808,
-0.0494087413,
-0.176943019,
0.0829062909,
0.1278463155,
0.362418592,
0.1884073317,
-0.4318869114,
0.3127401471,
0.3188147247,
-0.2238083035,
-0.3838650882,
0.4087831676,
-0.2351436168,
0.096461162,
-0.037832275,
0.440051198,
0.1302728951,
-0.3078211844,
0.0186474621,
-0.2998793125
] |
https://github.com/huggingface/datasets/issues/769 | How to choose proper download_mode in function load_dataset? | Indeed you should use `features` in this case.
```python
features = Features({'text': Value('string'), 'label': Value('float32')})
dataset = load_dataset('csv', data_files=['sst_test.csv'], features=features)
```
Note that because of an issue with the caching when you change the features (see #750 ) you still need to specify the `FORCE_REDOWNLOAD ` flag. I'm working on a fix for this one | Hi, I am a beginner to datasets and I try to use datasets to load my csv file.
my csv file looks like this
```
text,label
"Effective but too-tepid biopic",3
"If you sometimes like to go to the movies to have fun , Wasabi is a good place to start .",4
"Emerges as something rare , an issue movie that 's so honest and keenly observed that it does n't feel like one .",5
```
First I try to use this command to load my csv file .
``` python
dataset=load_dataset('csv', data_files=['sst_test.csv'])
```
It seems good, but when i try to overwrite the convert_options to convert 'label' columns from int64 to float32 like this.
``` python
import pyarrow as pa
from pyarrow import csv
read_options = csv.ReadOptions(block_size=1024*1024)
parse_options = csv.ParseOptions()
convert_options = csv.ConvertOptions(column_types={'text': pa.string(), 'label': pa.float32()})
dataset = load_dataset('csv', data_files=['sst_test.csv'], read_options=read_options,
parse_options=parse_options, convert_options=convert_options)
```
It keeps the same:
```shell
Dataset(features: {'text': Value(dtype='string', id=None), 'label': Value(dtype='int64', id=None)}, num_rows: 2210)
```
I think this issue is caused by the parameter "download_mode" Default to REUSE_DATASET_IF_EXISTS because after I delete the cache_dir, it seems right.
Is it a bug? How to choose proper download_mode to avoid this issue?
| 55 | How to choose proper download_mode in function load_dataset?
Hi, I am a beginner to datasets and I try to use datasets to load my csv file.
my csv file looks like this
```
text,label
"Effective but too-tepid biopic",3
"If you sometimes like to go to the movies to have fun , Wasabi is a good place to start .",4
"Emerges as something rare , an issue movie that 's so honest and keenly observed that it does n't feel like one .",5
```
First I try to use this command to load my csv file .
``` python
dataset=load_dataset('csv', data_files=['sst_test.csv'])
```
It seems good, but when i try to overwrite the convert_options to convert 'label' columns from int64 to float32 like this.
``` python
import pyarrow as pa
from pyarrow import csv
read_options = csv.ReadOptions(block_size=1024*1024)
parse_options = csv.ParseOptions()
convert_options = csv.ConvertOptions(column_types={'text': pa.string(), 'label': pa.float32()})
dataset = load_dataset('csv', data_files=['sst_test.csv'], read_options=read_options,
parse_options=parse_options, convert_options=convert_options)
```
It keeps the same:
```shell
Dataset(features: {'text': Value(dtype='string', id=None), 'label': Value(dtype='int64', id=None)}, num_rows: 2210)
```
I think this issue is caused by the parameter "download_mode" Default to REUSE_DATASET_IF_EXISTS because after I delete the cache_dir, it seems right.
Is it a bug? How to choose proper download_mode to avoid this issue?
Indeed you should use `features` in this case.
```python
features = Features({'text': Value('string'), 'label': Value('float32')})
dataset = load_dataset('csv', data_files=['sst_test.csv'], features=features)
```
Note that because of an issue with the caching when you change the features (see #750 ) you still need to specify the `FORCE_REDOWNLOAD ` flag. I'm working on a fix for this one | [
-0.257139802,
-0.2127030641,
-0.040239986,
0.1630152762,
0.4040100276,
-0.0686796904,
0.4393959641,
0.0929248482,
0.2167058587,
-0.0813828111,
-0.2033499032,
0.1510443687,
0.2890437543,
0.2188754678,
-0.0475557894,
-0.0434880629,
0.1723635197,
0.0663753971,
-0.3534501195,
0.0588456839,
-0.438092351,
-0.0215163324,
-0.2259059548,
-0.2040408701,
0.1186360866,
0.1169724539,
0.1479002535,
0.1589903533,
-0.1337800026,
-0.3780210018,
0.3889071643,
0.0531566292,
0.4369565248,
0.0253362283,
-0.0001253529,
0.009092018,
0.2151530832,
-0.3684228659,
-0.1690395474,
-0.2970290184,
-0.1894734502,
-0.2959619761,
0.2958133221,
-0.3904573321,
0.0227867365,
-0.1693538427,
-0.047135897,
-0.0768368766,
0.1460933685,
0.3617569208,
0.1143756807,
0.1577691883,
-0.0766455233,
0.1977396607,
0.2081693113,
0.0930887088,
-0.086841315,
0.3931896985,
0.3226600885,
0.2978897095,
0.1851443946,
0.0464102812,
-0.3264558911,
0.0901593119,
0.4344961345,
0.0826565549,
0.5438581705,
-0.2351290584,
0.0120474268,
-0.0455431789,
0.7830660939,
-0.1429340541,
-0.1257713139,
-0.2601627111,
-0.0080017596,
-0.3558513224,
0.182985723,
0.0512510911,
0.027959276,
0.2612244189,
-0.3293582201,
-0.0617428347,
-0.0040016323,
0.3507045209,
-0.0163139105,
-0.0037297532,
-0.1991260946,
0.3501982391,
0.2780066431,
0.0251899362,
0.1337102652,
-0.4628357887,
0.1859643459,
0.0551591627,
-0.3747673929,
0.119713068,
-0.1101627946,
0.2270290256,
0.2134391069,
0.2350174338,
-0.1731291562,
-0.1056644768,
-0.0790384114,
0.0543876737,
0.330521524,
0.1084476039,
0.0923050344,
-0.3073597252,
-0.0159134865,
0.0750558823,
0.1939515918,
0.0455882587,
-0.007097695,
-0.2097706348,
0.5614815354,
-0.0100339483,
0.2120889872,
-0.1557591856,
-0.2577975392,
-0.1193054542,
-0.1015519574,
-0.0093438067,
-0.0417829752,
0.3487725258,
-0.0212359652,
0.1670536995,
-0.1175338328,
0.4232868552,
-0.2588958442,
-0.1044205576,
-0.0268055052,
-0.1692231148,
-0.1096671447,
-0.1769728065,
0.305777669,
-0.2919174433,
0.2943977118,
0.3564922214,
-0.1896512806,
-0.1925505996,
-0.0382144526,
-0.0922376439,
-0.0098296441,
0.4289134145,
0.1095343679,
0.2218270302,
0.2428340167,
-0.1180534363,
-0.0441171676,
0.5599557757,
-0.3410295844,
-0.4236625433,
0.0073515475,
0.0734669939,
-0.3567695022,
0.0191643238,
-0.3555148244,
0.1227712855,
0.0327584967,
-0.2373165488,
0.0837809518,
-0.3370420933,
-0.0787451267,
-0.3249075413,
-0.0326402485,
0.674734652,
-0.4708647132,
-0.0143058077,
-0.1925152242,
-0.25155586,
0.3785530329,
0.0774228871,
-0.4031010568,
-0.0403580405,
-0.1870812476,
-0.0902749747,
0.4304097891,
-0.2198913246,
-0.5396740437,
0.2700544894,
0.0350186676,
0.0890856907,
0.3254162669,
0.257817328,
0.2394130826,
-0.1552544534,
-0.2509273887,
0.3023547232,
0.0893180519,
0.1630810797,
-0.1126746982,
-0.1849410534,
0.3365391493,
0.0209903494,
-0.2687708735,
0.2023788095,
-0.0638906062,
-0.2422067523,
0.1783636212,
0.0243129283,
-0.1316059828,
0.0361189805,
0.1187476218,
0.2286571264,
-0.1529629976,
0.0663992539,
-0.6884861588,
-0.0347267389,
0.2795579433,
-0.2823960781,
-0.2883075774,
-0.1402547061,
-0.4521225691,
-0.1210739613,
-0.3010733724,
0.081807822,
-0.0375693329,
0.1825787723,
0.1832838655,
-0.0370617844,
-0.0729632601,
0.2751714885,
-0.1564928293,
0.246296674,
-0.0133048538,
0.2497579753,
0.1108406335,
-0.0725679994,
0.1476353407,
-0.2571155429,
0.3647031784,
-0.211682111,
-0.1865237057,
0.4816062152,
0.2214024812,
0.2470842153,
-0.5143998861,
0.0678614229,
0.1991438866,
0.1813843995,
0.0015189778,
-0.0353657417,
0.2897430658,
0.0388438031,
-0.286120683,
0.203115344,
-0.1808381677,
0.1022403091,
-0.1256675124,
-0.1688034087,
0.3344344497,
0.0932300389,
-0.1076359972,
-0.1208642051,
-0.1085530519,
0.0665091276,
0.1763238013,
0.2263209671,
-0.2570771873,
0.1120338067,
0.3664930761,
-0.2465100884,
0.15775612,
0.1405531615,
-0.0184936374,
-0.2118010074,
0.3660089076,
-0.033438541,
0.5430471301,
0.0791772008,
-0.0656061918,
-0.0924278274,
-0.0947405994,
-0.223243922,
0.4322994649,
-0.090178743,
0.3930633664,
0.0928276777,
0.0567188337,
-0.3744745851,
-0.3599194586,
0.1701304317,
0.3153667748,
0.2394777089,
-0.4751330614,
0.0356781706,
-0.3608299792,
-0.2496359646,
-0.1142445356,
0.0489516146,
0.1525537968,
-0.2344697714,
-0.2881453931,
0.3770528436,
0.0880211443,
0.1681328118,
-0.2675403953,
-0.1980843991,
0.1541352272,
-0.7329843044,
0.084513858,
0.0342932343,
-0.3322187066,
-0.0932077616,
0.2178360671,
-0.1219765693,
0.1280554384,
-0.2368910611,
-0.0129101351,
-0.3798915446,
0.0522335321,
-0.0185539871,
0.0284672156,
0.2587383687,
-0.0064339787,
0.4116536379,
0.0028292239,
0.1528277695,
0.2606509328,
0.0493852273,
0.1308382452,
0.240466401,
-0.0796578899,
0.0912174433,
-0.1080134362,
-0.6392266154,
-0.3208781779,
-0.18062374,
-0.1476210803,
0.0652216449,
-0.0250945538,
0.064618513,
0.3264110386,
-0.1983586699,
0.1241693497,
0.1098170877,
-0.3587358594,
-0.068869397,
0.5512462854,
0.1337308139,
-0.1682956964,
-0.0622907877,
0.0134629682,
-0.058124356,
0.2615851164,
-0.2785103917,
-0.2853083909,
-0.1439529508,
0.4526163638,
-0.0660180002,
0.2976059616,
0.2848196328,
-0.0180754513,
0.1427214146,
0.0206978172,
-0.1765646487,
0.0578629561,
0.1887421608,
0.1285846084,
0.2652294338,
0.4068439007,
-0.1923155785,
0.4521814287,
0.1233737469,
-0.0381090492,
0.3927264512,
-0.1760506928,
0.2472159564,
0.1235026717,
-0.1327908039,
-0.0638444424,
-0.20238702,
-0.0143622868,
0.2485175729,
-0.1247900426,
-0.2157243788,
-0.118593365,
0.1108172014,
-0.56932199,
-0.2923107743,
0.154826045,
0.3429580331,
0.2171760201,
0.0642766207,
0.2186962664,
-0.1193917096,
-0.125150755,
-0.0268506221,
0.6019417048,
0.1677829623,
0.1966412663,
-0.1799767911,
0.0977295637,
-0.1179955453,
0.2893595099,
0.0846621245,
0.5040073991,
0.2042645216,
-0.0134955496,
0.0957149714,
-0.0743032172,
0.8621495962,
-0.0778499991,
0.230622381,
0.0169230327,
0.2369261682,
-0.3040494919,
-0.1977230757,
-0.1489272863,
0.1329702735,
-0.0191022325,
0.1518368274,
-0.3600396514,
-0.1250207275,
-0.0437091738,
0.4756934941,
-0.1013358682,
-0.4211808145,
-0.2916680276,
-0.437874496,
-0.4540201128,
-0.0558929257,
0.0120006055,
0.0790908486,
-0.2337286323,
0.0254927129,
0.1000573784,
0.0465207696,
-0.0006262846,
-0.0486602597,
0.1596669555,
0.0804438591,
0.0307936966,
-0.06061057,
-0.3898471892,
0.1367277205,
0.5804675817,
-0.1231640726,
-0.4300063848,
0.0780541003,
0.0023522153,
0.1949390471,
0.1240271032,
-0.2761417031,
-0.0230704583,
-0.0561562032,
-0.0612985007,
-0.1533516049,
-0.0169717968,
0.313621223,
-0.0065540895,
-0.0639151931,
-0.8783689737,
0.5908769965,
-0.0470533781,
-0.1228184551,
-0.0681613237,
0.1936957836,
-0.1371007264,
0.0068528466,
0.0088330992,
0.7403279543,
-0.1477390826,
-0.0234255642,
0.4106373787,
0.0165234804,
0.6323754787,
-0.2574593425,
0.1452034265,
-0.2199907303,
0.1368509978,
-0.0592443831,
-0.2123483121,
0.3720147014,
0.0788654983,
-0.1590980142,
0.4722997248,
-0.2580109835,
0.3843175769,
0.0349203721,
0.1149367094,
-0.2998349965,
-0.2017108947,
-0.2972394228,
0.043728672,
-0.1808032095,
0.1441551,
0.0489719845,
0.0881343931,
0.0088872239,
0.142319262,
-0.0402464122,
-0.105111368,
-0.2145476639,
0.00285854,
-0.2828825116,
-0.2913125753,
0.1696635783,
0.4940201938,
-0.072922349,
-0.027958164,
-0.0893947035,
-0.0332274735,
0.0269721448,
0.1663254797,
-0.1406579316,
-0.0422089733,
0.257943213,
0.0400789827,
-0.2443520129,
0.1300706863,
0.0104615726,
0.1088610515,
0.0024222136,
-0.1839750111,
0.1504511237,
-0.5237011909,
-0.6343916655,
-0.050585743,
0.1304316968,
0.0128202438,
-0.0131848641,
-0.1037012041,
0.1341369003,
0.207993418,
-0.203194961,
-0.3364051878,
-0.3015030026,
0.3213739693,
0.0739850253,
0.2300240695,
0.1035769433,
0.0923122391,
-0.2006055564,
-0.0208336674,
0.0716892481,
-0.3993092179,
-0.4469235241,
0.0379944257,
0.0748234987,
0.249431029,
-0.2763227224,
0.1764595211,
0.12840572,
-0.1219974011,
0.0491509885,
-0.301352948,
-0.1138836294,
0.046875149,
0.2838813663,
-0.0032971865,
0.2612093091,
-0.15715985,
0.0932507291,
-0.5119243264,
-0.1655476987,
-0.0171330422,
0.1885731071,
0.1145522669,
0.1965779811,
0.1997134537,
-0.0309412554,
-0.1614880115,
0.0120450519,
-0.0239460729,
-0.2194660902,
-0.102314055,
-0.189074561,
0.2198647857,
0.0047948305,
-0.2370147556,
-0.0781523436,
-0.4396763444,
-0.0063918969,
-0.1508439183,
0.213418752,
0.2114852071,
-0.0225066133,
0.119133316,
-0.3444988132,
-0.1300969422,
-0.4444692433,
0.0951453298,
-0.2700436115,
0.2525138557,
0.2192473114,
0.2146098763,
0.119479686,
0.0346095562,
-0.4590880871,
0.0269876607,
0.0676205382,
0.1436439902,
0.1754938513,
-0.2141359448,
0.3252046108,
0.0704740435,
0.2229964733,
0.484541744,
-0.1388934404,
-0.1331434101,
0.1473708302,
0.0626071468,
-0.2442163378,
-0.1162256896,
-0.0963732302,
0.0584986545,
0.0248967037,
0.4365079999,
0.2103260458,
0.1385760903,
-0.0232627764,
-0.0939512402,
0.5303488374,
0.2382718176,
0.0530144572,
0.5988230109,
0.0372677147,
0.1260792613,
0.3304840922,
0.2008470297,
0.0249210522,
0.2706525922,
-0.0549687855,
0.0294170771,
0.2067644,
0.196665436,
-0.2933323383,
-0.5684546828,
0.2525373101,
0.3639093041,
-0.6029017568,
0.191914767,
0.3080991507,
0.3266708255,
-0.2500049174,
-0.0425352007,
-0.2119198889,
0.1807707697,
-0.1514454484,
-0.257317692,
-0.0307765044,
-0.4313881993,
-0.1392444968,
0.3422460556,
-0.348572135,
-0.2752635479,
0.2215130776,
0.1923906207,
-0.0687969327,
-0.5239713788,
0.0820435733,
-0.0109853977,
0.2564551532,
-0.0744186342,
0.3178034425,
0.3104492426,
-0.0251561813,
0.1266566366,
-0.030223269,
0.3832309842,
0.1735895872,
0.1232966036,
-0.2349729687,
0.2047334015,
0.054849796,
-0.0312471129,
0.0443174988,
0.1425590962,
0.4424269795,
0.2582494915,
0.098692514,
-0.0493015423,
0.1906913817,
0.165211156,
-0.382843107,
-0.3693990111,
0.0812260956,
-0.0412444398,
0.0211108625,
0.0820621699,
-0.0193277486,
-0.1319549978,
-0.0609377548,
0.3863161802,
0.1033050418,
0.2183606178,
0.0937747657,
0.0164575465,
0.0454542339,
0.1778824925,
-0.0822125226,
-0.0131136905,
-0.3509374857,
0.2613559663,
-0.7569330335,
-0.179202497,
-0.0720733255,
-0.3162716031,
0.2269176841,
-0.0680762604,
0.0832487941,
0.4920192957,
0.1015994251,
-0.0779435039,
0.4903147519,
0.2357794344,
0.1611434221,
-0.3786870837,
-0.046272032,
0.0556925014,
-0.2231166214,
-0.5922362804,
0.3191399574,
-0.3066430986,
-0.0053919405,
-0.3925583363,
0.0455305949,
0.2697090507,
-0.0871834159,
0.5793070197,
0.0889640078,
0.493971765,
0.0061495975,
0.080196999,
0.2767911255,
0.2586167753,
-0.0210694373,
-0.0076073632,
-0.3024642169,
0.2936032414,
-0.2321772575,
0.2348770797,
-0.2624462247,
0.2284344584,
0.2493196577,
-0.0449302308,
-0.2544180155,
-0.0677944794,
-0.1488249153,
-0.3843571246,
0.0296917185,
0.3405501842,
-0.1550569534,
0.4002465606,
-0.1127436832,
-0.1097002327,
0.3859418929,
-0.0091186576,
-0.1762109399,
0.0742672831,
0.093931511,
0.4447633922,
0.2256974131,
-0.465225637,
0.2522892952,
0.3160279989,
-0.1756312102,
-0.3445520103,
0.3969542086,
-0.182955116,
0.0570501238,
0.0019051284,
0.4485103488,
0.0847406387,
-0.3051197231,
0.0118317381,
-0.3302128315
] |
https://github.com/huggingface/datasets/issues/768 | Add a `lazy_map` method to `Dataset` and `DatasetDict` | This is cool! I think some aspects to think about and decide in terms of API are:
- do we allow several methods (chained i guess)
- how do we inspect the currently set method(s)
- how do we control/reset them | The library is great, but it would be even more awesome with a `lazy_map` method implemented on `Dataset` and `DatasetDict`. This would apply a function on a give item but when the item is requested. Two use cases:
1. load image on the fly
2. apply a random function and get different outputs at each epoch (like data augmentation or randomly masking a part of a sentence for BERT-like objectives). | 41 | Add a `lazy_map` method to `Dataset` and `DatasetDict`
The library is great, but it would be even more awesome with a `lazy_map` method implemented on `Dataset` and `DatasetDict`. This would apply a function on a give item but when the item is requested. Two use cases:
1. load image on the fly
2. apply a random function and get different outputs at each epoch (like data augmentation or randomly masking a part of a sentence for BERT-like objectives).
This is cool! I think some aspects to think about and decide in terms of API are:
- do we allow several methods (chained i guess)
- how do we inspect the currently set method(s)
- how do we control/reset them | [
-0.0316453725,
0.0137581378,
-0.2658604383,
0.0116507057,
-0.1261352599,
-0.1206699386,
0.0822108537,
0.315966785,
0.385645926,
0.1577916294,
0.0908182561,
0.4605908096,
-0.3150092661,
-0.0637617558,
-0.0990350544,
-0.0476132892,
-0.059097711,
0.1570820808,
-0.1722941697,
-0.1399808675,
-0.1990465075,
-0.1581523865,
-0.0754313171,
-0.1457816064,
0.1748659313,
-0.2872926593,
-0.2392603457,
-0.18797414,
-0.3999474049,
-0.1362814009,
-0.0379623435,
0.6174532771,
-0.0462141931,
0.0646635145,
-0.0001012224,
-0.1686680168,
0.2313543856,
0.085456036,
-0.0684587806,
-0.0441984236,
-0.2537709475,
-0.1252304912,
0.2018480748,
-0.5509761572,
-0.0584174991,
-0.2714447975,
0.4295843542,
-0.4214331508,
0.5393212438,
-0.0856239721,
0.2302742004,
-0.0530726127,
-0.3106281757,
0.0365994498,
0.3807837665,
0.1583934277,
-0.0576469451,
-0.0953386575,
0.4525524974,
0.1018309668,
-0.124577418,
0.292532593,
-0.155933395,
0.1263547987,
0.478433609,
0.0078928918,
-0.4412189722,
-0.4262875617,
-0.1540482044,
0.0608588345,
0.532435298,
-0.1861352772,
-0.2275101244,
-0.1035420522,
-0.0565499514,
-0.0125658363,
-0.2463452071,
-0.0079958271,
0.2070350647,
0.2098946869,
-0.2132601738,
-0.17709288,
-0.23589468,
0.257963866,
0.2851656079,
0.0231090151,
0.049454432,
0.1578089744,
-0.061906822,
-0.0088357888,
0.1775439382,
-0.1693767011,
-0.0915951282,
0.3831127584,
0.0738331825,
-0.2585500181,
0.1556255817,
0.0686063766,
0.3009393811,
0.3678820729,
0.4818529487,
0.2997099459,
-0.540418148,
0.2487291694,
0.3010675907,
-0.1054355353,
-0.1393643022,
0.0496151485,
0.3160535395,
-0.0766109005,
0.080386728,
0.0165330991,
0.1527779102,
0.1714903712,
0.1464109272,
-0.1503851265,
0.0439565331,
-0.0677959621,
0.1476469636,
-0.1441452205,
0.0641757548,
-0.1750658453,
-0.1025171578,
0.2155334949,
-0.1002133042,
0.1461664438,
0.148103416,
-0.0722142011,
0.3096320629,
0.0257676095,
-0.0828994066,
-0.0079528224,
0.0490435958,
0.1977217197,
0.1436966211,
0.159826383,
0.0956066474,
0.107143119,
-0.2972556949,
0.0631074235,
0.7239738107,
-0.2636156082,
0.4300806224,
-0.1151480824,
-0.1545204818,
-0.2465789765,
-0.1759555638,
0.2088588774,
-0.4214296341,
0.1569105983,
-0.4271492362,
-0.1343190074,
0.0897206664,
0.2743908465,
-0.0737847015,
0.0397367254,
-0.1317951679,
0.6621152759,
-0.027593866,
-0.1764547825,
0.3585615754,
0.1350756586,
-0.297065556,
-0.2560354769,
-0.1324667335,
0.3818054795,
0.0152171403,
-0.1152828336,
-0.0775804818,
0.0068319235,
-0.2633752227,
0.0767957568,
-0.3004281819,
0.232462123,
-0.1032155454,
0.037917912,
0.5653918982,
-0.4251790345,
-0.2009770125,
0.1914837956,
0.1012702584,
0.0121791288,
0.0566216558,
0.4613976479,
0.2702681422,
-0.0736533999,
0.1159668714,
0.2803696394,
-0.0191992782,
-0.0063708574,
0.0200870335,
-0.5893144011,
0.042112641,
0.2601279616,
0.0152672604,
0.0322852954,
0.2342327386,
-0.0375200659,
0.1960206628,
-0.1750435382,
0.0870558843,
-0.3264835477,
0.2651810348,
-0.0300463699,
-0.0183052495,
-0.2506522238,
-0.4685739279,
0.0288647935,
0.0278265551,
-0.0176961459,
0.0963469148,
-0.2850390077,
0.389565587,
-0.1420196444,
-0.1039260179,
0.0119634345,
0.2112868726,
-0.0756066963,
-0.0767590255,
-0.0496202223,
-0.3771494627,
-0.0185876992,
0.0087940246,
0.0086952299,
-0.3124376535,
0.0176008567,
0.236019358,
0.0682337508,
-0.1141872704,
-0.0841502324,
-0.2094913125,
-0.0732256174,
0.0805928558,
0.1130605638,
0.4026203454,
0.1198883429,
-0.0088409726,
0.3823276758,
0.331790477,
-0.0653146878,
0.3423098624,
0.2478311062,
0.1485618949,
-0.0943941474,
-0.2361266911,
0.1199823767,
-0.242738992,
0.0815190375,
-0.0334260762,
-0.1496857703,
0.2441018224,
-0.0081077516,
-0.3279361427,
-0.252127558,
-0.0721689165,
0.2961581349,
0.3833502531,
-0.0039718226,
-0.0957821757,
0.0504415631,
0.2785754502,
-0.0491423607,
0.0562415607,
0.1528507173,
0.3605254889,
-0.0903854817,
0.2327755839,
0.0485900491,
0.3236718178,
0.254142195,
-0.2183730304,
-0.0732037574,
0.2605609596,
0.0174725763,
0.0921621472,
0.1772111207,
0.193593502,
-0.2423487008,
0.3541028202,
0.1604021192,
-0.1092864797,
-0.6076208949,
0.1243431717,
-0.138572216,
0.238700375,
-0.0957702249,
0.0831853449,
-0.0339874662,
0.0074488781,
-0.1499918401,
0.0651144385,
0.0129222572,
0.2524852753,
-0.0130215837,
-0.4675894082,
0.002951026,
-0.2462661713,
0.6607556343,
-0.2335274518,
-0.1446957886,
-0.2904372215,
-0.1868735105,
0.2194750011,
0.1533401906,
0.0763653368,
0.0247764587,
0.6802102923,
-0.0467182025,
-0.0210892521,
-0.2449751645,
-0.4454803467,
0.1895518899,
0.0219033621,
0.0836613849,
0.2553391755,
-0.2629786134,
0.1285719573,
-0.1577276736,
-0.0089159384,
-0.1806892753,
0.004598178,
-0.4637440443,
-0.0139711611,
-0.016113691,
-0.3169599175,
-0.0770589709,
-0.3230467737,
-0.5011575818,
0.4366030693,
0.1657424867,
0.3440573514,
-0.0191954803,
0.0011949092,
0.0038692281,
0.2962949574,
0.1945663542,
-0.2044895142,
-0.3378012776,
0.130323559,
-0.3507658243,
-0.2318698764,
-0.2668492794,
-0.137950927,
0.0826426297,
0.3081727028,
-0.4109921157,
-0.5004566312,
-0.1030671671,
0.3629431427,
0.1154216453,
0.0040315352,
0.1514194608,
0.3908299208,
-0.1510016918,
-0.0657531396,
-0.1858522594,
0.3007413447,
0.0845985562,
-0.303817302,
0.4934714437,
0.0059864298,
-0.1796163917,
0.4737222195,
-0.0612437576,
-0.1227844954,
0.6362369061,
0.1666854918,
0.186920628,
-0.1618530601,
-0.0220694467,
-0.1229342297,
0.0153927431,
-0.1732437909,
0.1689975858,
-0.0143933324,
-0.4332823753,
-0.210808754,
-0.0895451158,
-0.3204254508,
-0.1249472648,
0.177377969,
-0.1927105635,
-0.1760845482,
-0.0012911633,
0.0785415918,
-0.3619860113,
0.0555809662,
0.3197858632,
-0.0887710974,
0.3706777692,
-0.2170150578,
-0.2395541072,
0.0721359551,
-0.2971969545,
0.3878660798,
-0.0153107606,
-0.177942276,
0.0673951358,
-0.1837062836,
-0.0415271521,
-0.2121751308,
0.3732041121,
-0.1810094267,
-0.2871503532,
-0.0875942484,
-0.2525027394,
0.0918019265,
0.2313672155,
-0.2248196602,
-0.2691423595,
-0.1314211786,
0.500082314,
-0.3117642403,
-0.0302946344,
0.0825477839,
-0.022826042,
-0.1114176735,
-0.2034701705,
0.0398611575,
-0.2650544941,
-0.3558035493,
-0.2392142862,
-0.1007635519,
-0.2114698887,
0.1179205477,
-0.4718101025,
-0.2868668735,
0.2348797023,
-0.0000958145,
0.1809698343,
0.0895443857,
-0.0455647111,
0.1941201836,
0.1056024432,
-0.0448658876,
0.070480153,
0.3506194353,
-0.4467806816,
-0.1341321021,
0.0475538038,
-0.0452934764,
0.0003355742,
0.1973541677,
0.2177896351,
0.3083337843,
0.1552435309,
0.1554038078,
-0.4040936232,
0.1636750996,
0.2215839922,
-0.0303744469,
-0.2600875795,
-0.881329596,
0.4342657328,
0.1939167976,
-0.3777365088,
0.5089740753,
-0.2627509236,
-0.3286872804,
0.577254355,
0.4083501399,
0.8184034228,
-0.0983375609,
0.1716858745,
0.0122323334,
-0.1836482286,
0.7522252202,
-0.0472685061,
-0.0118856393,
-0.2200187594,
-0.1830985844,
-0.0496231541,
-0.0183229521,
0.0103893857,
0.0384048931,
-0.4283996224,
0.0952544361,
0.401655972,
0.0883128792,
-0.2598720491,
0.4192354381,
-0.389759928,
-0.3177866638,
-0.3965379596,
0.2290992141,
0.057706546,
-0.056892775,
-0.2013415545,
-0.1468289644,
-0.0216847435,
-0.1450177133,
0.1410875618,
-0.0497244,
-0.0982013047,
0.2889792919,
-0.2026168108,
-0.061784178,
-0.1000947505,
-0.0405116342,
-0.1206941605,
0.2051264346,
-0.2008714527,
0.0101789776,
0.0540814847,
0.1703217477,
-0.009511862,
-0.2149823308,
0.3916641474,
-0.0903270468,
-0.120635666,
0.1506975144,
0.084368363,
-0.3436558545,
-0.3285521567,
0.095608145,
0.2398020327,
-0.0266485047,
-0.3221817613,
0.2734156549,
-0.1842144579,
0.0300226808,
0.1777679175,
0.1538801044,
0.1435182542,
0.341430366,
0.0145319887,
-0.0362869948,
-0.1141589135,
0.0221976675,
0.099727869,
-0.1149288937,
0.0972164199,
-0.1554388702,
0.0116545781,
-0.3061264157,
-0.0144721866,
0.3259465098,
-0.2271260619,
0.1405774504,
-0.0424366742,
-0.2730096281,
-0.1316499114,
0.3220626116,
0.0462202281,
0.1609131396,
-0.0436263047,
-0.0265118852,
-0.4319008291,
0.4262453914,
0.269898355,
0.5220264196,
0.0628463924,
-0.3603260219,
-0.0722210333,
0.2898750603,
-0.4333049953,
-0.0434109271,
-0.0606927425,
0.1139058396,
-0.2334897965,
0.1204821765,
-0.268612355,
0.107772395,
0.1110159382,
0.2047243863,
-0.3214473724,
-0.2745409012,
-0.2825699449,
0.1382749379,
-0.0045824591,
0.0800473541,
-0.0675566643,
-0.3578969538,
-0.1589348316,
-0.2625756264,
0.0855759233,
-0.1021585166,
-0.1191415861,
-0.0682690814,
0.2984777689,
0.0095483325,
-0.134447515,
0.3815538585,
0.0871393234,
0.1423791349,
0.0975192636,
0.149838686,
-0.197489053,
-0.177163437,
0.3952691257,
0.1929667741,
0.2850929797,
0.1449057311,
0.1226115674,
0.3286501765,
0.1575084329,
0.1026384383,
0.3508156538,
0.3296615481,
-0.1900774091,
-0.0669349506,
0.1558896005,
0.3266317248,
-0.2356422693,
-0.0083128475,
0.0163213424,
-0.0832167566,
0.1398476213,
0.1998022497,
-0.1729812473,
0.0740864426,
-0.1409595609,
0.0248277783,
0.3546093106,
-0.2582050264,
-0.0061140247,
-0.1341192424,
-0.1970200241,
-0.0595913567,
0.2059369087,
0.2577481568,
0.2602254748,
0.0806213543,
-0.1177506,
0.4487952292,
0.191656962,
0.1141951084,
0.2455383539,
0.0187026039,
0.3160086274,
0.4250283539,
0.2525938153,
0.5317397714,
0.3590684533,
-0.0213174075,
0.1426804215,
-0.1604798734,
-0.0961519107,
0.2260680795,
0.1921571195,
0.037152715,
-0.0375725627,
-0.1719563305,
0.0304732472,
0.0237920508,
0.0455731153,
-0.205573529,
0.5976639986,
0.2425036132,
0.0016858205,
-0.1537797898,
0.061167907,
-0.0503878333,
0.3446067274,
-0.2554202974,
-0.0170027949,
0.1320172399,
-0.1450254619,
0.2190372497,
0.3608762622,
-0.0550077818,
0.3974846005,
0.0111283325,
0.3629966378,
-0.0713227838,
-0.0821654424,
-0.3574267626,
0.2183415443,
0.2614523172,
-0.1214352101,
0.2981264293,
0.1965662986,
-0.2094758898,
0.0629979447,
0.0139500005,
0.0031709336,
-0.24514319,
0.2634295523,
0.3895851672,
-0.3707018495,
0.1628739834,
0.0396958403,
-0.4488159418,
0.0132014342,
-0.075839147,
-0.3752384782,
0.007830888,
-0.0192505363,
0.132920295,
-0.1248860806,
0.2074127495,
0.0773230344,
0.4497221708,
-0.1364654005,
-0.1437559128,
-0.4140062034,
0.2090255022,
0.0366396159,
-0.1769730151,
-0.0558738783,
-0.0564511195,
0.1387465149,
0.0441670083,
-0.0253306553,
-0.2873389423,
0.0377663001,
0.0703253895,
-0.3291044235,
0.0735040754,
-0.0150873624,
0.1148950532,
0.0628169104,
-0.3707206249,
0.0946095586,
-0.266374886,
0.0631345063,
-0.1402844787,
0.0729797482,
0.1142407507,
-0.1053734496,
0.7482130527,
0.2279092073,
-0.0328715481,
-0.2948719859,
0.0191608816,
0.0244483873,
-0.044572942,
-0.2085470259,
0.0011635982,
0.271705538,
0.0931547284,
-0.0104418285,
0.0511712581,
-0.1470230073,
0.1538027376,
-0.0686118156,
0.1370601505,
-0.1405923665,
0.0735398605,
0.0568240955,
-0.2435266376,
-0.2090393007,
0.3722027242,
0.1220260262,
-0.0956753641,
-0.0523084402,
-0.0328487381,
0.3887145519,
-0.5408637524,
-0.0991330221,
-0.120303452,
0.10363511,
-0.1390573084,
-0.0125478664,
-0.4450724721,
-0.069733426,
0.2892310619,
-0.100346528,
-0.1196116433,
0.4591068625,
0.2960063815,
-0.1567552686,
-0.207593888,
0.3705031276,
0.0094873663,
-0.3057681918,
0.0125033408,
-0.3759893775
] |
https://github.com/huggingface/datasets/issues/767 | Add option for named splits when using ds.train_test_split | Yes definitely we should give more flexibility to control the name of the splits outputted by `train_test_split`.
Related is the very interesting feedback from @bramvanroy on how we should improve this method: https://discuss.huggingface.co/t/how-to-split-main-dataset-into-train-dev-test-as-datasetdict/1090/5
And in particular that it should advantageously be able to split in 3 splits as well instead of just 2 like we copied from sklearn. | ### Feature Request 🚀
Can we add a way to name your splits when using the `.train_test_split` function?
In almost every use case I've come across, I have a `train` and a `test` split in my `DatasetDict`, and I want to create a `validation` split. Therefore, its kinda useless to get a `test` split back from `train_test_split`, as it'll just overwrite my real `test` split that I intended to keep.
### Workaround
this is my hack for dealin with this, for now :slightly_smiling_face:
```python
from datasets import load_dataset
ds = load_dataset('imdb')
ds['train'], ds['validation'] = ds['train'].train_test_split(.1).values()
```
| 58 | Add option for named splits when using ds.train_test_split
### Feature Request 🚀
Can we add a way to name your splits when using the `.train_test_split` function?
In almost every use case I've come across, I have a `train` and a `test` split in my `DatasetDict`, and I want to create a `validation` split. Therefore, its kinda useless to get a `test` split back from `train_test_split`, as it'll just overwrite my real `test` split that I intended to keep.
### Workaround
this is my hack for dealin with this, for now :slightly_smiling_face:
```python
from datasets import load_dataset
ds = load_dataset('imdb')
ds['train'], ds['validation'] = ds['train'].train_test_split(.1).values()
```
Yes definitely we should give more flexibility to control the name of the splits outputted by `train_test_split`.
Related is the very interesting feedback from @bramvanroy on how we should improve this method: https://discuss.huggingface.co/t/how-to-split-main-dataset-into-train-dev-test-as-datasetdict/1090/5
And in particular that it should advantageously be able to split in 3 splits as well instead of just 2 like we copied from sklearn. | [
0.072573483,
-0.0852899775,
-0.1180250496,
-0.0458655208,
0.1546687037,
0.2035395652,
0.6252446175,
0.1981320381,
0.1147507727,
0.3940243721,
0.0419958457,
0.3692273498,
-0.2435896844,
0.2782405913,
0.1914985478,
-0.4520203471,
0.0777252838,
-0.2225459218,
0.2795635164,
0.1441613883,
-0.1701510996,
0.0290895347,
-0.109894596,
0.248847276,
-0.4482493103,
0.05218786,
-0.0278835259,
-0.0407914631,
0.0729057565,
-0.4732066393,
0.0694574788,
0.5114648938,
-0.0923280343,
0.459721446,
-0.0001201279,
-0.2272787094,
0.3921887577,
-0.163406074,
-0.360424161,
-0.2719931006,
-0.272100091,
-0.050875634,
0.1910671443,
-0.3920919895,
-0.014088966,
-0.0546339005,
-0.0692302138,
-0.2750484943,
0.1217137873,
0.2252166569,
0.127521947,
-0.0359689333,
-0.1207834482,
-0.0023301542,
0.0822661072,
0.4533887208,
-0.3355133832,
0.1411754638,
0.0616263114,
-0.0589847974,
0.2678494751,
0.0353973173,
0.0078432336,
-0.1759857833,
-0.0337526686,
0.0686550662,
-0.152192235,
-0.222763136,
-0.0949150547,
0.4006629884,
0.3223873079,
-0.3291946054,
-0.4078102708,
-0.4338805079,
0.1580448896,
-0.2891123891,
-0.004349988,
-0.061006289,
0.0068466365,
0.256934613,
-0.1519076675,
-0.0383317545,
-0.1391974241,
0.1504181176,
0.1679886431,
0.2730536461,
0.1757127643,
0.1539537013,
0.4608618319,
0.0318741091,
0.2671246231,
-0.2759011984,
0.1429983824,
0.0135917999,
-0.1820889115,
-0.2353999615,
-0.3166778982,
-0.4003138542,
-0.0385821499,
0.2578308284,
-0.0899043754,
0.0029254062,
-0.1185063273,
-0.0362000763,
0.1213353425,
0.2042186558,
0.1922020316,
0.7993484139,
0.1940679699,
0.1425667405,
-0.0509874001,
-0.0838257596,
-0.0732701719,
-0.2198159844,
0.1319385171,
0.1173523217,
-0.1480458677,
0.0972705781,
-0.2157282084,
-0.1622211337,
-0.3056787848,
-0.1607533246,
0.262124747,
0.239413023,
0.0350663364,
0.086906299,
-0.0795197114,
0.0568443686,
0.1468179524,
-0.0548603497,
-0.1057785153,
0.0489811711,
-0.2527082264,
0.1430670917,
0.2551352978,
-0.020210471,
0.0251753032,
-0.1186654121,
0.242772609,
-0.2523255944,
-0.0712956265,
-0.0101480074,
0.3710733056,
0.1764824986,
-0.256514132,
-0.0895714536,
-0.2148700356,
-0.0413801819,
-0.1269136965,
0.0241173692,
-0.1833626926,
-0.4484344721,
0.0184308719,
0.0609599464,
-0.1824512184,
0.000276668,
-0.0470027328,
0.2932842374,
0.2690387368,
0.0702128708,
0.1655518413,
0.0346123017,
-0.1679069996,
-0.0667345971,
0.3896132708,
0.0874218568,
-0.3150944114,
-0.1640777588,
-0.3378524184,
0.0888537392,
0.0349268094,
0.0031335782,
-0.0557396486,
0.2230696082,
-0.070229888,
0.2400988042,
0.3350119889,
-0.171423167,
0.0440314561,
0.0458577201,
0.0866498202,
-0.0092958808,
0.2888077199,
-0.1559597999,
0.1066179872,
-0.0329782441,
-0.1210659444,
0.1750896275,
-0.3245233893,
-0.1972152591,
0.0226153433,
-0.0928213522,
0.3992805779,
0.1736495793,
0.0248097498,
-0.154838711,
-0.2240210176,
0.2639464736,
0.43561849,
-0.0077088233,
0.0810169205,
-0.2269660234,
0.3232060373,
0.4250837862,
0.126910001,
-0.4314451814,
-0.1730946898,
0.1214079857,
0.1779444069,
-0.1334393024,
-0.1241065711,
-0.3705472946,
-0.3022027612,
-0.1747015715,
-0.0957438499,
0.0025738776,
0.0565088727,
-0.1349780858,
0.1169963703,
-0.0912774056,
-0.3370677829,
0.0810625851,
-0.4117370844,
0.2173946202,
-0.0233671069,
0.3630814552,
0.3540457785,
-0.005977273,
-0.4311007559,
0.4017514884,
0.1534220427,
-0.1506372094,
-0.1249692738,
0.4914852679,
0.5371120572,
-0.1535212696,
-0.1335531175,
-0.0277759731,
0.002996916,
-0.1223407686,
0.0540126115,
0.2383952439,
-0.1113676876,
-0.1098863706,
-0.163032487,
0.3751423359,
-0.4445955455,
0.381692946,
-0.164129585,
0.0651183352,
-0.1421229839,
-0.2247089446,
-0.4564578533,
-0.3743860126,
-0.2848770022,
-0.5980316997,
0.165364325,
-0.3122046292,
-0.2530175447,
-0.2069651186,
0.3411169052,
-0.1814828515,
0.0084392941,
-0.1815951914,
0.2201618701,
0.1874463856,
-0.0904239342,
0.4492092133,
0.3208993077,
0.1303463578,
-0.0994144678,
-0.1213773265,
-0.0566753335,
-0.0879040956,
0.1856532991,
0.3309949636,
-0.0504076183,
0.1269754469,
-0.2277493179,
-0.2841597795,
0.0142250732,
-0.1667644083,
0.295353055,
-0.2170962542,
-0.272870034,
-0.0041687936,
-0.3148604631,
-0.1530623883,
-0.3443502486,
-0.1824578941,
-0.1817965806,
-0.3793222308,
0.0949559957,
0.0957831889,
-0.3661891818,
0.327218473,
-0.093680121,
0.1565568745,
-0.3529230356,
-0.3120747507,
0.0425677299,
-0.1919182837,
0.0191950891,
0.0373652577,
-0.0636335537,
0.0886314139,
0.447389394,
0.0682875812,
-0.2181129754,
-0.2077766657,
-0.2186672091,
-0.0882750303,
-0.1306660175,
0.0344410464,
0.3023154736,
-0.0576476492,
0.2030574679,
-0.3977275491,
-0.0184555817,
0.1599649787,
-0.0437739566,
-0.3815745413,
0.3924477398,
0.1830075383,
-0.229436785,
-0.3533361852,
-0.326146543,
-0.1929230392,
0.4223923981,
-0.525503397,
-0.024162285,
0.0357885696,
-0.2785820067,
0.1127693877,
0.1251914948,
-0.1200393811,
-0.1015919596,
0.310477376,
0.0435892195,
-0.2384753227,
0.2072959095,
0.1077674031,
-0.2218757868,
0.0217227712,
-0.3567280769,
0.0503738523,
0.0290432423,
0.0944010094,
0.277042985,
0.1614022702,
-0.0828794017,
0.0974330455,
0.0858205631,
0.1860564649,
-0.0896665752,
-0.2755863667,
0.1496618539,
0.2805894017,
0.2331834733,
0.2243523598,
0.2292753309,
-0.0630432591,
0.5140991211,
0.2080076188,
0.0556257106,
-0.1041478813,
-0.0233319029,
-0.1820421219,
0.0050474722,
-0.47819224,
-0.0282479599,
-0.1414565444,
-0.3043088913,
0.0748206675,
-0.1577547193,
0.0144816134,
-0.0594565496,
0.1999995261,
0.0677570552,
-0.4575799406,
0.0303166229,
-0.5357939005,
0.2113290578,
-0.1650371701,
0.0746637955,
0.0475668386,
-0.0800645649,
-0.0441264473,
0.1198734343,
0.2014360428,
-0.2043305039,
-0.4229977727,
-0.1509081572,
-0.1587825119,
0.1874196827,
0.2792786956,
0.0823588595,
-0.0913565531,
0.0013254136,
0.0624870323,
0.4954943359,
0.7230035663,
-0.2819221318,
-0.2045080662,
0.1420886666,
-0.266038239,
0.0259142965,
-0.2045835555,
0.063412495,
-0.0938839614,
0.0959154963,
0.228405267,
-0.2615970373,
-0.2743299305,
0.7737311125,
0.3482442498,
-0.0437667295,
-0.3818062544,
0.0405439883,
0.1989292651,
0.1722827107,
0.1197552755,
0.3067525029,
0.1788457781,
-0.263659209,
0.1035737991,
0.0802274719,
-0.1090174541,
0.3623278141,
0.0943778008,
0.2493736744,
-0.0701746792,
0.4353821576,
0.2356793582,
0.1063679606,
0.1392607242,
0.2227813154,
-0.6137983203,
-0.3588296771,
-0.0213637892,
0.0092539079,
0.772919476,
0.4099296331,
0.004096806,
0.0827446729,
0.0602407716,
0.1202035099,
-0.1783584058,
0.2659524381,
0.3220496178,
-0.0594889112,
-0.5040188432,
-0.7637932897,
0.3296658099,
0.183243528,
-0.1185743362,
0.3174261451,
0.1097893715,
-0.586191535,
0.356387943,
-0.0307512842,
0.8402534723,
0.1252985001,
-0.1269397587,
-0.1279688925,
-0.1924711615,
0.2156064808,
-0.1647611558,
0.0591560341,
-0.1754288226,
-0.1701664925,
0.0659288168,
0.0700344071,
0.1669831425,
0.3497169018,
-0.0723995864,
0.2874289751,
-0.0611944124,
0.3150922954,
-0.2372086346,
0.3600489497,
0.2801637948,
-0.2505975664,
0.0356524289,
-0.0113716535,
0.0727741569,
-0.2413553596,
0.2442022562,
-0.0484637357,
-0.0896627754,
0.1317903697,
-0.3172537982,
-0.2060521692,
-0.1675032675,
0.0700302571,
-0.0590143912,
-0.1223875731,
0.3028968275,
0.2367864847,
0.531236589,
0.3700747192,
0.0490423217,
0.2635014951,
0.2412392497,
0.2013229877,
-0.323586762,
-0.047324799,
0.4290896356,
0.1332022548,
-0.3335012794,
0.0428417698,
0.0747989118,
-0.2521355748,
-0.3842039108,
0.1104770899,
0.3876133561,
-0.6543738842,
-0.0626044273,
-0.1125043482,
0.3201399744,
-0.2469780147,
0.1250055432,
0.0599188209,
-0.442355305,
0.1899297535,
-0.1507730484,
-0.1416675597,
-0.2008636594,
-0.0343131721,
-0.1398940086,
0.0420773178,
0.2589148581,
-0.1256492585,
-0.0968634188,
-0.1337193847,
0.2407981753,
0.2073114365,
-0.25335145,
0.3469284177,
0.0773178637,
-0.2552935481,
-0.0869386047,
0.0673063472,
0.1135153696,
0.2626498342,
-0.3044111431,
0.1077473015,
-0.2245468199,
0.1135282069,
0.2546490729,
0.5764339566,
-0.2348309606,
0.2845921516,
-0.428589642,
-0.1029544249,
-0.2131630033,
-0.1262362599,
0.085715659,
0.1994172931,
-0.12263643,
0.0781809017,
0.2479046732,
-0.2391082942,
0.1612110287,
0.1463838816,
0.1289466172,
-0.1457269192,
-0.3270041645,
0.1392778456,
-0.0562939495,
0.2425657511,
-0.2842197716,
-0.1260062456,
-0.0555742607,
-0.3837485611,
0.1106065884,
0.3372879326,
0.1458010674,
0.5945239663,
0.3972747326,
-0.1521608829,
0.1135403067,
0.0934748873,
-0.1003343165,
0.3577883244,
0.0185505934,
0.2664892673,
-0.0210024323,
0.0388520584,
-0.2621862292,
-0.0964427665,
-0.0161898099,
-0.0803798437,
-0.0262338184,
0.0726047084,
-0.216414839,
-0.1017520726,
0.374994874,
0.6219154,
-0.0251163989,
-0.1903733313,
0.4380893409,
0.125127852,
-0.0155327506,
-0.0055576153,
0.2794886231,
0.0093911663,
0.0778251737,
0.5012417436,
0.012659438,
0.3346581757,
-0.133153677,
-0.0422243103,
0.1388972402,
0.0729200244,
0.616725266,
0.603295505,
0.0429682434,
0.1051752046,
0.0790361091,
-0.0545432121,
-0.0081057586,
0.2645597458,
0.1413599551,
0.3694076538,
0.0159687493,
0.069922477,
0.6006396413,
0.3650572896,
-0.1086030975,
-0.2764747739,
-0.6752749085,
0.1378991753,
0.0035046749,
0.4029045701,
-0.5035103559,
-0.4012947977,
-0.1975803673,
-0.031997852,
0.0060274461,
-0.1104462147,
0.0063265935,
-0.1201000214,
-0.1787227094,
-0.0517512411,
0.1769791692,
-0.2383185625,
0.4209336936,
-0.0876793116,
0.2677018642,
0.090659298,
0.0492170267,
0.1982456595,
0.5991565585,
-0.3150802851,
-0.3227381706,
-0.069899112,
-0.0842413306,
0.2238160968,
-0.1887880713,
-0.0286732875,
-0.0362358615,
-0.0037655551,
-0.3235391676,
-0.0474775583,
-0.0433064178,
0.2021856904,
0.2306502014,
-0.0169334225,
-0.0884166509,
0.3804460764,
0.1166616231,
-0.0080759041,
-0.0487261899,
0.1965476573,
0.2034024,
-0.6443551779,
0.5633996725,
0.064152509,
-0.0380407721,
-0.1440712214,
-0.0020377524,
0.0053901374,
-0.3700367212,
0.2464805543,
-0.0466666259,
0.0320866294,
-0.0453153327,
0.0182370767,
-0.198201552,
0.428231746,
-0.0705242455,
-0.120803684,
-0.255595088,
-0.0896406323,
0.0743727684,
-0.2915915549,
-0.0037947004,
-0.2765482962,
0.1966209561,
-0.291682899,
-0.0787368566,
-0.0342496037,
-0.0117221326,
-0.0290265605,
0.1444286704,
0.3947259784,
-0.3441643119,
-0.3122903109,
-0.1738017648,
0.1536168754,
0.3368339539,
-0.1341689527,
-0.2430787086,
0.1341224164,
-0.3172352016,
0.0556537099,
-0.1340085268,
0.501989305,
0.5471751094,
0.2083574831,
0.0402882993,
0.4481992126,
-0.0253648199,
0.1909371018,
0.0970262587,
-0.0596520752,
-0.2668218911,
0.3416195512,
0.009407755,
0.2608261704,
0.0513367876,
-0.1047208756,
-0.1050297171,
0.3171875775,
0.1245829761,
-0.2176761627,
-0.1637942344,
-0.1256078035,
0.0263714343,
-0.0855356604,
0.269767642,
0.2940779924,
-0.2826082706,
0.1645586491,
0.3829663694,
-0.2912108898,
0.4963202477,
0.0327722877,
-0.3277797699,
-0.1031859666,
0.1062437147,
0.2823022604,
-0.0633066073,
-0.6950253248,
-0.3996462822,
0.2895873487,
-0.0610680133,
0.0544716194,
0.2236006856,
0.2504689991,
0.0640295148,
0.0995940939,
0.2653725147,
0.0949118957,
0.0886416361,
0.1532570273,
-0.2677425146
] |
https://github.com/huggingface/datasets/issues/761 | Downloaded datasets are not usable offline | Yes currently you need an internet connection because the lib tries to check for the etag of the dataset script online to see if you don't have it locally already.
If we add a way to store the etag/hash locally after the first download, it would allow users to first download the dataset with an internet connection, and still have it working without an internet connection.
I'll let you know when we add this feature. | I've been trying to use the IMDB dataset offline, but after downloading it and turning off the internet it still raises an error from the ```requests``` library trying to reach for the online dataset.
Is this the intended behavior ?
(Sorry, I wrote the the first version of this issue while still on nlp 0.3.0). | 75 | Downloaded datasets are not usable offline
I've been trying to use the IMDB dataset offline, but after downloading it and turning off the internet it still raises an error from the ```requests``` library trying to reach for the online dataset.
Is this the intended behavior ?
(Sorry, I wrote the the first version of this issue while still on nlp 0.3.0).
Yes currently you need an internet connection because the lib tries to check for the etag of the dataset script online to see if you don't have it locally already.
If we add a way to store the etag/hash locally after the first download, it would allow users to first download the dataset with an internet connection, and still have it working without an internet connection.
I'll let you know when we add this feature. | [
-0.2098324895,
0.2670387328,
-0.0017678961,
0.1898877621,
-0.0595398992,
-0.0748804063,
0.3903469145,
-0.0172844287,
0.1707935631,
-0.0225022584,
0.123799555,
0.0126204491,
-0.0386801474,
0.0756760836,
0.0625315011,
0.1871639043,
-0.1557507217,
0.2216935456,
-0.125221014,
-0.0784502104,
-0.1236614287,
0.1148992851,
-0.4275745749,
-0.0501413234,
-0.1870034039,
-0.3171656728,
-0.0034038946,
-0.0439861529,
-0.1552307159,
-0.2724389136,
0.421871841,
0.084847182,
0.2210721523,
-0.1517104506,
-0.0001220543,
-0.2454778701,
0.4161515832,
-0.1439788193,
-0.434936285,
-0.3407864869,
-0.2752384841,
-0.130432725,
0.2988803685,
-0.5066428185,
0.0441146269,
0.1309671849,
0.3384898603,
-0.4647703767,
-0.1303230077,
0.150898844,
0.0914960504,
0.1822046041,
-0.0067802593,
0.0909338146,
0.4891791344,
0.079825297,
-0.2148954868,
0.1665274948,
0.115289703,
0.019102484,
0.1782423556,
0.0184437744,
-0.1545058787,
0.0909675285,
0.3861878812,
0.1950401217,
-0.1535573304,
-0.2642569542,
-0.0379809812,
0.3704017997,
0.5538474917,
-0.1437786222,
-0.2343482971,
-0.361073494,
0.0763948336,
-0.2982942462,
0.1947353035,
0.2515515685,
-0.0451299623,
0.1533566117,
-0.3593320847,
-0.4431595206,
-0.1371429414,
0.5251792669,
0.0860982239,
0.2136145532,
-0.1137970984,
0.1065243632,
0.0008925486,
0.0111899488,
0.0522399135,
-0.3040780127,
0.1637427956,
-0.0952316001,
0.2223510295,
-0.0641375706,
0.1375613362,
0.472458601,
-0.1811280102,
0.3028618097,
0.1037674099,
-0.0921731591,
-0.1592960656,
0.2099302113,
0.5247610807,
0.3245606124,
0.3381831646,
-0.2607774138,
0.5273813605,
0.2759960592,
-0.0852577388,
-0.1607044339,
0.1783449799,
0.1802045554,
0.0469963551,
-0.112627551,
0.2839219272,
-0.3313291967,
-0.1025824994,
-0.1161460578,
-0.0363386869,
0.0267834105,
0.2100472003,
0.0840594023,
-0.2664494216,
-0.1593923867,
0.0865494758,
0.2714381516,
-0.1823124588,
-0.4581657648,
0.0118206367,
-0.2709529698,
-0.140425235,
-0.07691098,
0.4374879897,
0.003634911,
0.3053945303,
-0.2534537315,
-0.0913343579,
-0.0206228048,
0.4746436775,
-0.2036606073,
0.3540553451,
0.21409823,
0.3410397768,
0.0610175952,
-0.0455780439,
-0.0827938095,
-0.0744459927,
0.2547933459,
-0.0524523333,
-0.4573018551,
0.0692087337,
0.0919584408,
-0.4702426493,
-0.3144264519,
-0.2976517677,
-0.088111341,
0.0970743224,
-0.5006312132,
0.0282154381,
0.0839832723,
-0.1873991489,
0.0166355744,
0.0249640346,
0.470362246,
-0.3674838841,
-0.0657190979,
-0.4391420484,
-0.1759605408,
-0.0243707485,
0.267121762,
-0.4254219234,
0.3243424296,
-0.320443958,
0.1207298338,
0.6827143431,
-0.1885613799,
-0.6827121377,
0.3701707423,
-0.0995326862,
-0.1788524687,
-0.0034110993,
0.3794587851,
0.4256158769,
-0.0089576468,
-0.4156359136,
0.526924789,
0.0929820016,
0.0212120265,
-0.2327952683,
-0.1643288136,
0.2605101466,
-0.0170766562,
0.0112660667,
0.3139618039,
0.3630165458,
0.1670650989,
0.1006167009,
0.3052432239,
0.3341988623,
-0.1018297151,
0.074224636,
0.3801195323,
-0.1144175753,
-0.0251528993,
-0.49663046,
0.020099923,
-0.1487758756,
0.098789379,
-0.5461813211,
-0.4241185784,
-0.0341128148,
-0.2377704531,
-0.0445403159,
0.2871570885,
-0.0388878435,
0.1060241312,
0.0273684934,
0.1294898242,
-0.3869742751,
-0.0304971412,
-0.0898809955,
-0.0513926409,
-0.528449297,
0.25669083,
-0.1686316729,
0.0119885541,
-0.1151868105,
-0.0856629163,
-0.0241340697,
-0.1413842291,
-0.1097176671,
0.3671102226,
-0.2565328181,
0.0871690065,
0.189196974,
0.2710215449,
0.2855146825,
-0.3220528066,
0.497392565,
-0.0081950184,
0.2154597044,
-0.0381351933,
-0.3263992965,
0.4724676013,
-0.0683584064,
0.2161987275,
0.1441252977,
0.005358763,
0.3300652206,
-0.1547802389,
-0.2518300116,
-0.5828146338,
0.0283666998,
0.2074075341,
0.0082334578,
-0.072547026,
-0.1747863442,
0.1800657809,
0.5578532219,
0.2726838887,
0.2287421525,
0.0783200115,
0.0125847878,
-0.2767375708,
0.0853909329,
0.1471388787,
0.318325758,
0.1985954493,
0.3152206242,
0.1368162036,
-0.0074228086,
-0.4224089086,
-0.0591060519,
0.0887958854,
-0.0197894443,
-0.0263548829,
0.0225591287,
-0.0377115346,
-0.3606550395,
-0.0614189133,
0.2296978831,
0.2251729369,
-0.2382854819,
-0.0716264546,
-0.6653860211,
-0.7250331044,
0.0148603432,
-0.0738794804,
-0.4821615517,
-0.2052153051,
0.0278107524,
0.4159468412,
-0.1507526785,
0.0593608394,
-0.2272672653,
0.5010203123,
-0.3477631807,
-0.2220644355,
-0.0665616095,
-0.3527731895,
-0.248633936,
-0.0017851181,
0.3669332564,
0.1794334054,
0.4034475982,
-0.114275828,
-0.1231461093,
-0.2343119979,
0.0056438595,
0.0564889759,
0.3319590092,
0.0723531991,
-0.0066343062,
-0.1072020009,
-0.1433564574,
0.0088691004,
0.1476003826,
-0.3277747035,
0.0985143036,
-0.0497356728,
-0.0195474438,
0.0176217593,
-0.3477730453,
-0.4379719198,
-0.2635902762,
-0.1216425374,
0.1585335732,
0.1391202807,
0.1520958096,
0.0390636064,
-0.1247998774,
0.2505193651,
-0.1376257837,
0.0951221213,
-0.0327170938,
-0.4872591197,
0.1624239385,
-0.3436885476,
-0.2576622367,
0.4373548031,
0.0587733388,
0.1389329135,
0.2758123577,
-0.6511324644,
0.0503680184,
0.0381959826,
0.1697410792,
0.3652425408,
0.001605412,
0.5040279627,
-0.2468521446,
0.0363386571,
0.0136331394,
0.0794105828,
0.382986486,
0.1882002056,
0.2508429885,
0.2320655137,
0.3819535077,
0.1213088036,
0.1898978353,
-0.1730672866,
0.1170409024,
0.6550409794,
0.0645187274,
0.4792507887,
-0.308283627,
0.0291578993,
-0.1174156219,
0.122053571,
-0.2058033794,
0.1454467177,
0.1693545133,
-0.400172174,
-0.3892102242,
-0.0038686693,
-0.5113555789,
-0.3278266191,
-0.0678064972,
-0.2261492461,
0.1589134932,
0.364777565,
0.0479076579,
-0.0485216044,
-0.3160043061,
-0.2498841584,
0.1579231024,
0.2608879209,
0.0561421737,
-0.1440250874,
0.1137699336,
-0.1902496815,
0.222592473,
-0.0877937824,
0.5331954956,
-0.0404456407,
0.1176539063,
0.3277541399,
0.1139677912,
0.2481106222,
-0.3441396952,
0.171117425,
0.1130054221,
0.0209714919,
-0.43589589,
0.1319626272,
-0.1606540382,
-0.0598655418,
0.5046319366,
0.0172551014,
-0.0680069402,
-0.0099958964,
-0.0377483964,
-0.0325023904,
-0.1555778384,
-0.2539769411,
-0.2267000228,
-0.0264637098,
-0.538950026,
-0.0416598357,
-0.2059029788,
-0.096466586,
0.0205959082,
0.0667406917,
-0.0529207885,
0.1670691222,
-0.2818743587,
-0.0671861619,
-0.0584719367,
0.1195120364,
0.042449154,
0.0909697413,
0.0887783691,
0.1651582271,
0.4254353344,
-0.0219531544,
0.0714312568,
0.1875521988,
0.034563411,
-0.001699917,
0.2828835845,
0.0066326037,
-0.2516590953,
0.215204224,
-0.0694360733,
0.0846595317,
-0.0642760098,
0.2071262449,
-0.5104783773,
0.1333307326,
-0.4468948245,
0.2959701121,
-0.0045054406,
-0.033987537,
0.0833550394,
0.3659514189,
-0.1276035309,
0.215405643,
-0.0442438833,
0.8948524594,
-0.0578306578,
0.2072690725,
-0.1336589307,
0.0899428874,
0.7640867233,
-0.1290887743,
0.2141268998,
-0.136711359,
-0.0039029103,
-0.1508295983,
-0.0863254964,
0.3068040907,
0.4187225699,
-0.101470165,
0.269223392,
-0.1646232754,
0.2183363736,
-0.2511997819,
0.3323088288,
-0.3463965356,
-0.1656758934,
-0.1386071146,
0.0241277963,
0.0648590773,
0.3463321626,
-0.1581466943,
-0.0619407371,
0.0075491741,
0.1318494678,
-0.1311005354,
0.2823042274,
0.2811916173,
0.1110349298,
-0.3716670275,
0.1312392205,
-0.0454712249,
0.2234468907,
0.3521394134,
0.0173893068,
-0.3721259534,
-0.1389575303,
-0.0207040533,
-0.1765762269,
0.2591638565,
0.1892560571,
0.3392988145,
-0.2422880828,
-0.2942516208,
0.0028854311,
0.1207222044,
-0.1234666556,
0.4066613317,
0.0089006145,
-0.0970203355,
-0.1011500508,
-0.1687724143,
0.2969224751,
0.0419695824,
-0.0036159083,
0.0299583972,
0.1280792654,
0.18554461,
0.0686009973,
-0.1168610752,
-0.2107695788,
-0.1453317404,
0.5676352382,
-0.0454492941,
0.0304636583,
0.144707799,
0.0587552413,
-0.1140619665,
-0.1490966976,
0.1853624582,
-0.3498149216,
-0.378354311,
0.1002667695,
0.2122080326,
0.4764329791,
-0.0790759921,
0.1829326749,
-0.1413032264,
0.2391066998,
-0.2073707134,
-0.3093142509,
-0.2009138465,
0.1761248708,
0.2414706051,
0.0257364828,
0.0215903223,
-0.1163561195,
0.5522450209,
-0.1803209484,
-0.2020921409,
0.2219246924,
0.0396477133,
0.3655423522,
0.210083276,
0.0063195052,
0.0308532007,
-0.1672135592,
-0.0977069959,
-0.0158761274,
-0.2581118345,
-0.0951534808,
0.0318225175,
0.2842287123,
0.262571156,
-0.5424135327,
-0.3297525048,
-0.640756309,
-0.2728311718,
0.0241430849,
-0.0947713032,
0.4041729867,
0.0400395952,
0.1986290962,
0.357786715,
0.1495355666,
-0.2055559903,
0.1183984727,
-0.1634664536,
0.2850664556,
-0.096931152,
0.1948295534,
-0.004272379,
0.040136084,
-0.272135973,
-0.0828467757,
-0.0581495985,
0.1644284576,
0.5369651914,
-0.2493019402,
0.2751133442,
0.1975861192,
0.4544935822,
0.2595002353,
0.1570686251,
-0.2199493945,
0.3323817849,
0.0507628433,
-0.2865043581,
0.1005188376,
0.3589013219,
0.4310479462,
-0.1354836822,
0.1744442731,
0.4315046668,
0.116271764,
-0.1053691208,
-0.1573920548,
0.3952952623,
-0.2768720686,
0.1150014699,
0.0184407402,
-0.2657099068,
-0.0092563815,
-0.0511721373,
0.2096354216,
0.2432672381,
0.2710627019,
-0.1154280081,
0.0126863513,
0.1891111135,
0.3074529767,
-0.1063926965,
-0.4238240719,
-0.1150290072,
0.1230164245,
0.1771201193,
0.0514836274,
-0.1880190074,
0.1199187785,
-0.1349380612,
0.1401920468,
-0.1819644868,
0.4822350442,
-0.0093497867,
0.0067446716,
-0.4403427243,
-0.245046407,
-0.0685572252,
0.1366955787,
-0.2170642912,
0.0558838174,
-0.1265667379,
0.226883918,
-0.0778877288,
-0.370829165,
0.375498116,
-0.0852473304,
0.1979827732,
-0.2669508457,
0.1558914334,
-0.0620209984,
0.2027588934,
0.2308395058,
0.3019270599,
0.1709935367,
0.2111991644,
-0.0228941217,
0.1909481436,
0.0558774807,
-0.0773330778,
-0.3302191198,
0.2316431403,
0.6044890285,
0.5322271585,
0.2374632657,
-0.0431615189,
-0.0579139218,
0.4244401753,
-0.0598475747,
0.2562648654,
-0.074633494,
0.4026710391,
0.0032637827,
-0.1355201453,
-0.16521056,
0.0201936774,
-0.2610507011,
-0.3235001266,
0.2602366507,
-0.3222094476,
0.1295645088,
-0.447062701,
-0.021649424,
-0.2157452703,
0.5108919144,
0.4062939584,
0.3394338787,
-0.1166095659,
-0.2419131994,
-0.7239391804,
-0.0030536279,
-0.0680555552,
0.1875718385,
-0.0414259844,
0.451348573,
-0.1687246859,
0.2156718671,
-0.3415599763,
0.1776648909,
-0.0359165221,
-0.0597205982,
-0.0325578451,
-0.0526741929,
-0.3596998155,
0.0883640572,
-0.1332341135,
-0.2659158707,
0.0844651759,
-0.3811704218,
-0.1640298069,
0.1246904731,
-0.2449237704,
-0.2417311668,
0.3652910888,
0.5970697403,
0.1111265272,
0.4610144198,
0.0763034821,
-0.0047113225,
-0.2299117148,
0.0996699482,
-0.3166601062,
0.079156667,
0.0090576187,
0.0214249715,
-0.2934355736,
0.4062310457,
-0.0983730331,
0.2165820897,
-0.0734509751,
0.3182059526,
-0.1857281476,
-0.3723779321,
-0.2545109391,
0.1021007597,
-0.0136551671,
-0.1437831521,
0.1199754477,
0.0732647255,
-0.4484456778,
0.0452969372,
0.5243941545,
0.1416595131,
0.2392501682,
-0.3593873382,
0.4845656157,
0.3935534656,
-0.2534208,
-0.4270008504,
-0.0509542823,
0.451091975,
-0.1463804245,
0.0994956344,
0.0373734571,
-0.1538918763,
0.1346615255,
-0.0968449786,
0.4045372307,
-0.1079009771,
-0.3252620995,
-0.1765977889,
-0.2115279436
] |
https://github.com/huggingface/datasets/issues/759 | (Load dataset failure) ConnectionError: Couldn’t reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py | Does this HEAD request return 200 on your machine ?
```python
import requests
requests.head("https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py")
```
If it returns 200, could you try again to load the dataset ? | Hey, I want to load the cnn-dailymail dataset for fine-tune.
I write the code like this
from datasets import load_dataset
test_dataset = load_dataset(“cnn_dailymail”, “3.0.0”, split=“train”)
And I got the following errors.
Traceback (most recent call last):
File “test.py”, line 7, in
test_dataset = load_dataset(“cnn_dailymail”, “3.0.0”, split=“test”)
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py”, line 589, in load_dataset
module_path, hash = prepare_module(
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py”, line 268, in prepare_module
local_path = cached_path(file_path, download_config=download_config)
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py”, line 300, in cached_path
output_path = get_from_cache(
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py”, line 475, in get_from_cache
raise ConnectionError(“Couldn’t reach {}”.format(url))
ConnectionError: Couldn’t reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py
How can I fix this ? | 28 | (Load dataset failure) ConnectionError: Couldn’t reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py
Hey, I want to load the cnn-dailymail dataset for fine-tune.
I write the code like this
from datasets import load_dataset
test_dataset = load_dataset(“cnn_dailymail”, “3.0.0”, split=“train”)
And I got the following errors.
Traceback (most recent call last):
File “test.py”, line 7, in
test_dataset = load_dataset(“cnn_dailymail”, “3.0.0”, split=“test”)
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py”, line 589, in load_dataset
module_path, hash = prepare_module(
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py”, line 268, in prepare_module
local_path = cached_path(file_path, download_config=download_config)
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py”, line 300, in cached_path
output_path = get_from_cache(
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py”, line 475, in get_from_cache
raise ConnectionError(“Couldn’t reach {}”.format(url))
ConnectionError: Couldn’t reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py
How can I fix this ?
Does this HEAD request return 200 on your machine ?
```python
import requests
requests.head("https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py")
```
If it returns 200, could you try again to load the dataset ? | [
-0.172620669,
-0.0845812187,
-0.097337462,
0.1288862675,
0.4222564995,
0.2019443661,
0.3426601887,
0.0621945783,
-0.0575584024,
0.0043577477,
-0.1423110664,
0.082496576,
-0.0660598949,
0.2489194274,
0.1123089641,
-0.1254213154,
-0.0808452815,
-0.1146303192,
-0.229117021,
0.0067147687,
-0.2098105103,
0.1440935433,
-0.2096494883,
0.0432116613,
-0.4213041067,
-0.1652374119,
0.0861221328,
0.3555387855,
-0.0301730614,
-0.2586031258,
0.3710349798,
0.0136735495,
0.0507147573,
0.4067727923,
-0.0001109412,
0.2821536958,
0.4214934707,
-0.0077435635,
-0.4700695574,
-0.4119874835,
0.0286167189,
-0.2524265051,
0.2036122084,
-0.1215822324,
-0.0896932855,
-0.0993359089,
-0.0485143661,
-0.2351500541,
0.4430736601,
0.4244680703,
0.2697090209,
0.2736965716,
0.3110576868,
-0.0948242247,
-0.3082552552,
-0.2242910713,
0.0436809883,
0.5262340903,
-0.3041550517,
-0.0550038517,
0.2369494438,
0.1852679998,
-0.1102641225,
0.0394288674,
0.1027928889,
0.0368393175,
-0.0811181813,
-0.3631625473,
0.0167238154,
0.0721938461,
0.2434539348,
-0.2260054797,
-0.4658712447,
-0.1638948619,
0.0304692015,
-0.3523119688,
0.2059643418,
0.0724936426,
-0.1310379803,
0.1562265456,
-0.4081345201,
-0.1662251204,
-0.2331793755,
0.4767996669,
-0.083470799,
-0.0691656694,
-0.101345323,
0.1568792164,
0.2081463337,
-0.0147653595,
0.2456073761,
0.016396109,
0.3304593265,
0.2135432512,
-0.4810214937,
0.115841046,
0.0163755454,
0.1395891607,
0.1358591467,
0.2361457795,
0.0839774981,
-0.0570866652,
-0.1238576397,
0.0851526707,
0.0606347583,
0.2453830987,
0.0089368653,
0.1387268603,
0.1872472018,
0.3058449328,
-0.0122887194,
0.0348716266,
-0.1371919364,
-0.2628457844,
-0.0847604647,
0.126672402,
0.4672964811,
-0.0668150559,
-0.1457814574,
0.2286660969,
-0.2497208565,
-0.0773124993,
0.1255283654,
0.5078195333,
-0.2459856421,
0.1030794457,
-0.0911056176,
0.2443114519,
-0.0984815732,
0.0281401016,
-0.2782626748,
0.1583172828,
-0.1469017565,
0.1858578473,
0.420938611,
-0.4283128977,
0.3650211096,
-0.0827950537,
0.1328938305,
-0.2651251256,
0.0727619901,
-0.0731364787,
-0.2295966297,
0.331556648,
-0.0128486231,
0.1878603697,
0.3255274296,
0.2198993266,
-0.0086202025,
-0.0932958275,
-0.2572560906,
-0.535946846,
0.2843954861,
0.2346500158,
-0.1325824857,
-0.2377673686,
-0.1039847359,
-0.0701876134,
-0.0855134726,
0.0499908254,
-0.2254376709,
-0.0758889467,
-0.0001021028,
-0.1851737499,
0.4579846859,
0.4795652032,
-0.3562657237,
-0.1318827569,
-0.0889207944,
-0.1993903965,
0.1022752672,
0.2505486906,
-0.210256353,
0.2678247988,
-0.0300623775,
-0.2001928985,
0.3244517446,
-0.2567798495,
-0.4303715825,
0.2295985222,
-0.1415838897,
0.0772202238,
-0.1597949117,
-0.0198280495,
-0.230043605,
0.0976684242,
0.2224140912,
0.4544762969,
-0.2219422311,
-0.0075087696,
-0.0761365667,
-0.2887580991,
0.1971732229,
0.3495085835,
0.1905548424,
0.0837120265,
0.112290509,
-0.1229669005,
0.1389330029,
0.0792720094,
-0.1288710386,
0.2222593129,
-0.0730449557,
0.0600964539,
0.0057933368,
0.1931333244,
-0.4456617832,
0.2171621025,
0.2575124502,
0.2054390311,
-0.1591735333,
0.0718008503,
-0.331431061,
0.0644789934,
-0.3276310265,
-0.1017317027,
0.1681315452,
0.1100920662,
0.1149900183,
0.1487408578,
-0.3477539122,
0.5853899121,
-0.2807267904,
0.1544780433,
-0.3642602563,
0.3336732686,
-0.1378068477,
0.0208098479,
0.0532537624,
0.1948695928,
0.2270953059,
-0.2124796212,
-0.1230692938,
0.3350650668,
-0.097088173,
0.1396981478,
0.1005697399,
0.0206222981,
0.0887212381,
-0.2732222378,
-0.00759175,
0.1752091348,
-0.0484226905,
-0.0636551529,
0.2221709937,
0.2624589801,
-0.0824367926,
0.3350197971,
0.1653447896,
-0.0167162567,
0.1557746232,
0.082278274,
-0.0725755394,
-0.0804377198,
0.3488464057,
-0.2823638022,
0.4914529622,
-0.1779358238,
-0.1883531511,
-0.2142965347,
0.1073013842,
-0.2060755342,
0.036799673,
0.1807587743,
-0.1527463645,
-0.1959126294,
-0.1415820569,
0.2285893559,
0.3831124306,
0.1266690642,
0.017403964,
0.3330522478,
-0.1124231741,
-0.1255554557,
0.2139613032,
0.1642094105,
0.2534166574,
0.1256902516,
-0.1063406616,
0.0876750648,
-0.3335896134,
-0.2977260053,
0.0457497165,
0.2940999866,
-0.3505651951,
-0.0266051888,
-0.2348109484,
-0.1075838357,
0.0410014391,
-0.4958513081,
-0.1831308603,
-0.4478103518,
-0.1630500853,
-0.0245090537,
0.1001084,
0.1913428158,
-0.1383035332,
0.2042532116,
0.2681009769,
-0.175707683,
-0.1990249753,
-0.1413164735,
-0.1222065389,
0.0425471812,
0.1909828782,
-0.2497789711,
0.2615088224,
-0.1237754524,
-0.1931111813,
-0.1338965595,
-0.0432524011,
0.0448915139,
-0.0807590261,
0.4253887236,
0.041504696,
0.5178231001,
0.1474954933,
-0.052728191,
0.3786587715,
-0.0750784129,
0.0525867417,
0.0137069672,
-0.0126738157,
0.1713646352,
0.1054249257,
-0.4197514057,
-0.5957532525,
-0.3186042607,
0.1332791895,
-0.1404163688,
0.1600907445,
0.4751752615,
0.1390491426,
0.072823301,
-0.0277653225,
0.324347645,
-0.2952395082,
-0.5784929991,
0.3427507281,
-0.4262582958,
-0.3999854922,
0.0517778695,
0.2337380499,
0.158530876,
-0.136862874,
-0.4911378622,
-0.2912991345,
-0.02103181,
-0.2082523853,
-0.1408884674,
0.0342516676,
-0.0817869157,
-0.1706445217,
-0.0807221234,
0.0528548211,
-0.2153962702,
0.0207661893,
-0.189779833,
0.105955407,
0.0540589839,
0.5800536275,
-0.2069239616,
0.4104644656,
0.2627966404,
-0.0999404564,
0.4304723442,
-0.1017872393,
0.298207432,
-0.0337928832,
-0.5136098266,
-0.0390390866,
-0.0248872042,
-0.0493594557,
0.2467013597,
0.1183116287,
-0.1750104129,
-0.4023715258,
-0.182328701,
-0.4465425909,
-0.1094004735,
-0.0297657922,
0.1102360487,
0.0683863163,
0.0337714553,
0.1174005419,
-0.1562559158,
-0.0286272261,
0.0233905427,
0.3478068411,
-0.0388782658,
0.1180433929,
0.00673908,
-0.0921746194,
-0.4314181209,
0.3346542418,
-0.1744609177,
0.4283650517,
-0.1977281719,
0.0767521039,
-0.0671714842,
-0.0039035641,
0.6058325768,
-0.2651655972,
0.1158641279,
0.0965195447,
0.0104378015,
-0.3042712212,
-0.0939211249,
-0.0325784981,
0.2487047464,
0.1657652855,
0.4472000003,
-0.0785695389,
-0.1675606221,
0.3270871639,
0.2548516989,
-0.1390842795,
-0.3214133978,
-0.1426793486,
-0.3935247064,
-0.228112638,
-0.2242880315,
-0.3400648832,
0.3046939969,
-0.034138184,
-0.1692193151,
0.0657263771,
-0.0941390023,
0.1747616827,
0.0775278062,
0.1345155537,
0.094573915,
0.1138609648,
0.3893187642,
0.0514725931,
0.1969857365,
0.6876196265,
-0.1747293621,
-0.2818041444,
0.0031070597,
0.2653587461,
0.1266304106,
0.2776091695,
-0.2134698629,
-0.1107278019,
0.1917883605,
0.1974568665,
-0.0059068166,
0.2809211612,
0.3785069585,
0.0910989195,
-0.5953508019,
-0.5943182707,
0.4862523973,
-0.094910495,
0.1161979437,
0.1835696846,
-0.1201062351,
-0.1307160109,
0.1753081977,
-0.1871679127,
0.7539359927,
-0.0516214855,
0.0220215861,
0.2660263777,
0.2764646709,
0.4896036983,
-0.314195931,
0.0171410255,
-0.2213474661,
-0.3019836545,
-0.0965612903,
-0.1128649861,
0.1232143044,
0.2790020704,
0.0411607102,
0.4529606104,
-0.139798671,
-0.0076719038,
0.1203011498,
0.2758706212,
-0.0123657612,
-0.0990978852,
-0.6099659801,
0.2349268943,
-0.1152765751,
0.2859084308,
-0.1456052661,
-0.0266548041,
0.0189347193,
-0.2011069655,
-0.1252482682,
0.11030747,
-0.5258551836,
0.3352455199,
-0.110322386,
-0.192140311,
-0.2348800898,
0.1402756274,
0.2428162843,
0.020909287,
-0.1805031896,
-0.0164312385,
-0.1787301004,
-0.2422133237,
-0.1114929393,
0.0066053718,
0.33495754,
-0.1443487406,
-0.2299135029,
0.096463345,
-0.1250464022,
-0.3004517853,
0.1181725562,
-0.070910953,
-0.1080979407,
-0.1321868747,
-0.2444407493,
-0.1845483333,
0.0862775445,
-0.1746639609,
0.1367530823,
0.0688007474,
-0.0828411207,
0.1016881764,
0.149476245,
-0.2983341813,
-0.1130416319,
0.3407583833,
-0.2677853405,
-0.2979258001,
0.4692344368,
0.35197258,
-0.1586271673,
-0.1613220274,
0.1176546663,
0.2354240268,
-0.2757169008,
0.0287931785,
0.1620016843,
0.3008444905,
-0.0093473271,
0.3109228313,
0.3056403399,
0.1008466706,
0.0073338524,
-0.720699966,
-0.3249889016,
0.1946193278,
0.127166912,
0.2861981392,
0.1761255562,
0.1147450954,
0.0217655599,
-0.1419667304,
-0.3108201027,
0.0563896522,
-0.1930017024,
-0.2246219218,
0.2044874281,
-0.1960637718,
0.5058367252,
0.096174702,
0.2353151888,
-0.1862322092,
-0.2238083035,
-0.2522973716,
0.0125974342,
0.1250666827,
-0.0072050206,
-0.1599042565,
0.0766847953,
-0.0989362001,
-0.1071701422,
-0.1015126258,
0.1909555197,
0.1383956522,
0.0687802881,
-0.0787462592,
0.1001253128,
0.0301095266,
-0.1907967329,
0.0285083465,
-0.0251340643,
0.3009052575,
0.2265716493,
0.0618353859,
0.0241579451,
-0.0533063561,
-0.0746176541,
-0.1121771634,
-0.0414069779,
-0.0779633373,
0.3595579267,
-0.3970216513,
-0.0275719091,
0.2810699046,
0.4986273944,
0.3485303819,
-0.3341703117,
0.1404316574,
0.0982498676,
0.2008362114,
-0.2418049574,
-0.1320367157,
0.1866643131,
-0.03183892,
0.0309767723,
0.1233273819,
-0.0581409968,
0.0505557656,
-0.2328443825,
0.0567092076,
0.5290331841,
0.092461139,
0.2249318361,
0.1308489442,
-0.0185667872,
0.0669222027,
0.065001063,
0.036055088,
0.1229092479,
0.2920597792,
-0.3495813906,
0.1462304294,
-0.0567595102,
0.0684006065,
-0.1147468239,
-0.6289653182,
0.3336821795,
0.1689160168,
-0.319177568,
0.0878434479,
-0.2449119538,
0.4515691698,
-0.2186648995,
0.051713638,
-0.2908118069,
0.3248184919,
0.0535501838,
-0.0619033799,
0.1166534349,
-0.261392802,
-0.1222895533,
-0.0241961181,
0.0592861138,
-0.3378444314,
0.2547754049,
0.1873701811,
-0.1702091843,
-0.2505170703,
-0.0514736958,
0.2003883421,
-0.0278916322,
-0.1070361361,
0.3322897255,
0.3139645457,
-0.107597068,
-0.0052597495,
0.2078180313,
0.5430833101,
0.3638230264,
0.0598819181,
0.2568229437,
0.1145389527,
-0.1374526769,
0.0676151365,
0.0322947577,
0.2886669338,
0.0836924016,
0.3812454939,
0.2170442939,
-0.1802069396,
0.1671675593,
-0.0198580548,
0.1490116268,
-0.2210002095,
0.3357276917,
-0.0727913976,
0.0364464447,
-0.3704915047,
0.0609769002,
-0.6276518106,
-0.07641083,
0.4593775272,
-0.0112022422,
0.0094914287,
-0.0697319135,
0.0808876231,
-0.1090030298,
0.7130910158,
0.3730812967,
0.408192724,
-0.4481307268,
-0.0922092497,
-0.5804844499,
0.0778251067,
-0.0238746237,
0.1688779593,
0.0909520239,
-0.1451890022,
0.022688454,
0.2757076919,
0.2652716041,
0.0849520564,
0.1511731446,
0.0965434611,
-0.1795461178,
-0.1153763533,
0.0229087658,
0.0601161867,
-0.0376164839,
-0.2377486825,
0.0560075864,
-0.5345260501,
-0.005566299,
-0.0041367859,
-0.0563897453,
-0.0108248517,
-0.0782609135,
0.3397464156,
0.0779526383,
0.7522107959,
0.0061271712,
-0.1257435977,
-0.3982895911,
-0.3299318552,
-0.1280595362,
0.1461878717,
-0.0317725241,
0.2351618856,
-0.1075726897,
-0.3375988901,
-0.3766065836,
0.1866865158,
0.0496851355,
-0.2255177498,
-0.1647087485,
0.0524487272,
0.0788071156,
0.0078811422,
0.1963617206,
0.0920484141,
-0.034826111,
0.3125104904,
-0.1061563641,
-0.3599562049,
0.6798820496,
-0.2259569168,
-0.0474054664,
-0.1042581424,
0.036588762,
0.0912000388,
0.0880401134,
-0.5794770718,
0.1991290748,
0.3769949973,
0.1134660766,
-0.4397309721,
0.2614186406,
-0.0718322992,
0.011539571,
0.0349880606,
0.1389213502,
0.0321028642,
-0.2739159465,
-0.0249954537,
-0.1567310691
] |
https://github.com/huggingface/datasets/issues/759 | (Load dataset failure) ConnectionError: Couldn’t reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py | Thank you very much for your response.
When I run
```
import requests
requests.head("https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py")
```
It returns 200.
And I try again to load the dataset. I got the following errors again.
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py", line 608, in load_dataset
builder_instance.download_and_prepare(
File "C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\builder.py", line 475, in download_and_prepare
self._download_and_prepare(
File "C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\builder.py", line 531, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "C:\Users\666666\.cache\huggingface\modules\datasets_modules\datasets\cnn_dailymail\0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602\cnn_dailymail.py", line 253, in _split_generators
dl_paths = dl_manager.download_and_extract(_DL_URLS)
File "C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\download_manager.py", line 254, in download_and_extract
return self.extract(self.download(url_or_urls))
File "C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\download_manager.py", line 175, in download
downloaded_path_or_paths = map_nested(
File "C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\py_utils.py", line 224, in map_nested
mapped = [
File "C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\py_utils.py", line 225, in <listcomp>
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\py_utils.py", line 163, in _single_map_nested
return function(data_struct)
File "C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py", line 300, in cached_path
output_path = get_from_cache(
File "C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py", line 475, in get_from_cache
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach https://drive.google.com/uc?export=download&id=0BwmD_VLjROrfTHk4NFg2SndKcjQ
Connection error happened but the url was different.
I add the following code.
```
requests.head("https://drive.google.com/uc?export=download&id=0BwmD_VLjROrfTHk4NFg2SndKcjQ")
```
This didn't return 200
It returned like this:
Traceback (most recent call last):
File "C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\urllib3\connection.py", line 159, in _new_conn
conn = connection.create_connection(
File "C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\urllib3\util\connection.py", line 84, in create_connection
raise err
File "C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\urllib3\util\connection.py", line 74, in create_connection
sock.connect(sa)
TimeoutError: [WinError 10060]
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\urllib3\connectionpool.py", line 670, in urlopen
httplib_response = self._make_request(
File "C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\urllib3\connectionpool.py", line 381, in _make_request
self._validate_conn(conn)
File "C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\urllib3\connectionpool.py", line 978, in _validate_conn
conn.connect()
File "C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\urllib3\connection.py", line 309, in connect
conn = self._new_conn()
File "C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\urllib3\connection.py", line 171, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x000001F6060618E0>: Failed to establish a new connection: [WinError 10060] | Hey, I want to load the cnn-dailymail dataset for fine-tune.
I write the code like this
from datasets import load_dataset
test_dataset = load_dataset(“cnn_dailymail”, “3.0.0”, split=“train”)
And I got the following errors.
Traceback (most recent call last):
File “test.py”, line 7, in
test_dataset = load_dataset(“cnn_dailymail”, “3.0.0”, split=“test”)
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py”, line 589, in load_dataset
module_path, hash = prepare_module(
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py”, line 268, in prepare_module
local_path = cached_path(file_path, download_config=download_config)
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py”, line 300, in cached_path
output_path = get_from_cache(
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py”, line 475, in get_from_cache
raise ConnectionError(“Couldn’t reach {}”.format(url))
ConnectionError: Couldn’t reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py
How can I fix this ? | 272 | (Load dataset failure) ConnectionError: Couldn’t reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py
Hey, I want to load the cnn-dailymail dataset for fine-tune.
I write the code like this
from datasets import load_dataset
test_dataset = load_dataset(“cnn_dailymail”, “3.0.0”, split=“train”)
And I got the following errors.
Traceback (most recent call last):
File “test.py”, line 7, in
test_dataset = load_dataset(“cnn_dailymail”, “3.0.0”, split=“test”)
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py”, line 589, in load_dataset
module_path, hash = prepare_module(
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py”, line 268, in prepare_module
local_path = cached_path(file_path, download_config=download_config)
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py”, line 300, in cached_path
output_path = get_from_cache(
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py”, line 475, in get_from_cache
raise ConnectionError(“Couldn’t reach {}”.format(url))
ConnectionError: Couldn’t reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py
How can I fix this ?
Thank you very much for your response.
When I run
```
import requests
requests.head("https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py")
```
It returns 200.
And I try again to load the dataset. I got the following errors again.
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py", line 608, in load_dataset
builder_instance.download_and_prepare(
File "C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\builder.py", line 475, in download_and_prepare
self._download_and_prepare(
File "C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\builder.py", line 531, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "C:\Users\666666\.cache\huggingface\modules\datasets_modules\datasets\cnn_dailymail\0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602\cnn_dailymail.py", line 253, in _split_generators
dl_paths = dl_manager.download_and_extract(_DL_URLS)
File "C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\download_manager.py", line 254, in download_and_extract
return self.extract(self.download(url_or_urls))
File "C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\download_manager.py", line 175, in download
downloaded_path_or_paths = map_nested(
File "C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\py_utils.py", line 224, in map_nested
mapped = [
File "C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\py_utils.py", line 225, in <listcomp>
_single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm)
File "C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\py_utils.py", line 163, in _single_map_nested
return function(data_struct)
File "C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py", line 300, in cached_path
output_path = get_from_cache(
File "C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py", line 475, in get_from_cache
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach https://drive.google.com/uc?export=download&id=0BwmD_VLjROrfTHk4NFg2SndKcjQ
Connection error happened but the url was different.
I add the following code.
```
requests.head("https://drive.google.com/uc?export=download&id=0BwmD_VLjROrfTHk4NFg2SndKcjQ")
```
This didn't return 200
It returned like this:
Traceback (most recent call last):
File "C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\urllib3\connection.py", line 159, in _new_conn
conn = connection.create_connection(
File "C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\urllib3\util\connection.py", line 84, in create_connection
raise err
File "C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\urllib3\util\connection.py", line 74, in create_connection
sock.connect(sa)
TimeoutError: [WinError 10060]
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\urllib3\connectionpool.py", line 670, in urlopen
httplib_response = self._make_request(
File "C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\urllib3\connectionpool.py", line 381, in _make_request
self._validate_conn(conn)
File "C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\urllib3\connectionpool.py", line 978, in _validate_conn
conn.connect()
File "C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\urllib3\connection.py", line 309, in connect
conn = self._new_conn()
File "C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\urllib3\connection.py", line 171, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x000001F6060618E0>: Failed to establish a new connection: [WinError 10060] | [
-0.172620669,
-0.0845812187,
-0.097337462,
0.1288862675,
0.4222564995,
0.2019443661,
0.3426601887,
0.0621945783,
-0.0575584024,
0.0043577477,
-0.1423110664,
0.082496576,
-0.0660598949,
0.2489194274,
0.1123089641,
-0.1254213154,
-0.0808452815,
-0.1146303192,
-0.229117021,
0.0067147687,
-0.2098105103,
0.1440935433,
-0.2096494883,
0.0432116613,
-0.4213041067,
-0.1652374119,
0.0861221328,
0.3555387855,
-0.0301730614,
-0.2586031258,
0.3710349798,
0.0136735495,
0.0507147573,
0.4067727923,
-0.0001109412,
0.2821536958,
0.4214934707,
-0.0077435635,
-0.4700695574,
-0.4119874835,
0.0286167189,
-0.2524265051,
0.2036122084,
-0.1215822324,
-0.0896932855,
-0.0993359089,
-0.0485143661,
-0.2351500541,
0.4430736601,
0.4244680703,
0.2697090209,
0.2736965716,
0.3110576868,
-0.0948242247,
-0.3082552552,
-0.2242910713,
0.0436809883,
0.5262340903,
-0.3041550517,
-0.0550038517,
0.2369494438,
0.1852679998,
-0.1102641225,
0.0394288674,
0.1027928889,
0.0368393175,
-0.0811181813,
-0.3631625473,
0.0167238154,
0.0721938461,
0.2434539348,
-0.2260054797,
-0.4658712447,
-0.1638948619,
0.0304692015,
-0.3523119688,
0.2059643418,
0.0724936426,
-0.1310379803,
0.1562265456,
-0.4081345201,
-0.1662251204,
-0.2331793755,
0.4767996669,
-0.083470799,
-0.0691656694,
-0.101345323,
0.1568792164,
0.2081463337,
-0.0147653595,
0.2456073761,
0.016396109,
0.3304593265,
0.2135432512,
-0.4810214937,
0.115841046,
0.0163755454,
0.1395891607,
0.1358591467,
0.2361457795,
0.0839774981,
-0.0570866652,
-0.1238576397,
0.0851526707,
0.0606347583,
0.2453830987,
0.0089368653,
0.1387268603,
0.1872472018,
0.3058449328,
-0.0122887194,
0.0348716266,
-0.1371919364,
-0.2628457844,
-0.0847604647,
0.126672402,
0.4672964811,
-0.0668150559,
-0.1457814574,
0.2286660969,
-0.2497208565,
-0.0773124993,
0.1255283654,
0.5078195333,
-0.2459856421,
0.1030794457,
-0.0911056176,
0.2443114519,
-0.0984815732,
0.0281401016,
-0.2782626748,
0.1583172828,
-0.1469017565,
0.1858578473,
0.420938611,
-0.4283128977,
0.3650211096,
-0.0827950537,
0.1328938305,
-0.2651251256,
0.0727619901,
-0.0731364787,
-0.2295966297,
0.331556648,
-0.0128486231,
0.1878603697,
0.3255274296,
0.2198993266,
-0.0086202025,
-0.0932958275,
-0.2572560906,
-0.535946846,
0.2843954861,
0.2346500158,
-0.1325824857,
-0.2377673686,
-0.1039847359,
-0.0701876134,
-0.0855134726,
0.0499908254,
-0.2254376709,
-0.0758889467,
-0.0001021028,
-0.1851737499,
0.4579846859,
0.4795652032,
-0.3562657237,
-0.1318827569,
-0.0889207944,
-0.1993903965,
0.1022752672,
0.2505486906,
-0.210256353,
0.2678247988,
-0.0300623775,
-0.2001928985,
0.3244517446,
-0.2567798495,
-0.4303715825,
0.2295985222,
-0.1415838897,
0.0772202238,
-0.1597949117,
-0.0198280495,
-0.230043605,
0.0976684242,
0.2224140912,
0.4544762969,
-0.2219422311,
-0.0075087696,
-0.0761365667,
-0.2887580991,
0.1971732229,
0.3495085835,
0.1905548424,
0.0837120265,
0.112290509,
-0.1229669005,
0.1389330029,
0.0792720094,
-0.1288710386,
0.2222593129,
-0.0730449557,
0.0600964539,
0.0057933368,
0.1931333244,
-0.4456617832,
0.2171621025,
0.2575124502,
0.2054390311,
-0.1591735333,
0.0718008503,
-0.331431061,
0.0644789934,
-0.3276310265,
-0.1017317027,
0.1681315452,
0.1100920662,
0.1149900183,
0.1487408578,
-0.3477539122,
0.5853899121,
-0.2807267904,
0.1544780433,
-0.3642602563,
0.3336732686,
-0.1378068477,
0.0208098479,
0.0532537624,
0.1948695928,
0.2270953059,
-0.2124796212,
-0.1230692938,
0.3350650668,
-0.097088173,
0.1396981478,
0.1005697399,
0.0206222981,
0.0887212381,
-0.2732222378,
-0.00759175,
0.1752091348,
-0.0484226905,
-0.0636551529,
0.2221709937,
0.2624589801,
-0.0824367926,
0.3350197971,
0.1653447896,
-0.0167162567,
0.1557746232,
0.082278274,
-0.0725755394,
-0.0804377198,
0.3488464057,
-0.2823638022,
0.4914529622,
-0.1779358238,
-0.1883531511,
-0.2142965347,
0.1073013842,
-0.2060755342,
0.036799673,
0.1807587743,
-0.1527463645,
-0.1959126294,
-0.1415820569,
0.2285893559,
0.3831124306,
0.1266690642,
0.017403964,
0.3330522478,
-0.1124231741,
-0.1255554557,
0.2139613032,
0.1642094105,
0.2534166574,
0.1256902516,
-0.1063406616,
0.0876750648,
-0.3335896134,
-0.2977260053,
0.0457497165,
0.2940999866,
-0.3505651951,
-0.0266051888,
-0.2348109484,
-0.1075838357,
0.0410014391,
-0.4958513081,
-0.1831308603,
-0.4478103518,
-0.1630500853,
-0.0245090537,
0.1001084,
0.1913428158,
-0.1383035332,
0.2042532116,
0.2681009769,
-0.175707683,
-0.1990249753,
-0.1413164735,
-0.1222065389,
0.0425471812,
0.1909828782,
-0.2497789711,
0.2615088224,
-0.1237754524,
-0.1931111813,
-0.1338965595,
-0.0432524011,
0.0448915139,
-0.0807590261,
0.4253887236,
0.041504696,
0.5178231001,
0.1474954933,
-0.052728191,
0.3786587715,
-0.0750784129,
0.0525867417,
0.0137069672,
-0.0126738157,
0.1713646352,
0.1054249257,
-0.4197514057,
-0.5957532525,
-0.3186042607,
0.1332791895,
-0.1404163688,
0.1600907445,
0.4751752615,
0.1390491426,
0.072823301,
-0.0277653225,
0.324347645,
-0.2952395082,
-0.5784929991,
0.3427507281,
-0.4262582958,
-0.3999854922,
0.0517778695,
0.2337380499,
0.158530876,
-0.136862874,
-0.4911378622,
-0.2912991345,
-0.02103181,
-0.2082523853,
-0.1408884674,
0.0342516676,
-0.0817869157,
-0.1706445217,
-0.0807221234,
0.0528548211,
-0.2153962702,
0.0207661893,
-0.189779833,
0.105955407,
0.0540589839,
0.5800536275,
-0.2069239616,
0.4104644656,
0.2627966404,
-0.0999404564,
0.4304723442,
-0.1017872393,
0.298207432,
-0.0337928832,
-0.5136098266,
-0.0390390866,
-0.0248872042,
-0.0493594557,
0.2467013597,
0.1183116287,
-0.1750104129,
-0.4023715258,
-0.182328701,
-0.4465425909,
-0.1094004735,
-0.0297657922,
0.1102360487,
0.0683863163,
0.0337714553,
0.1174005419,
-0.1562559158,
-0.0286272261,
0.0233905427,
0.3478068411,
-0.0388782658,
0.1180433929,
0.00673908,
-0.0921746194,
-0.4314181209,
0.3346542418,
-0.1744609177,
0.4283650517,
-0.1977281719,
0.0767521039,
-0.0671714842,
-0.0039035641,
0.6058325768,
-0.2651655972,
0.1158641279,
0.0965195447,
0.0104378015,
-0.3042712212,
-0.0939211249,
-0.0325784981,
0.2487047464,
0.1657652855,
0.4472000003,
-0.0785695389,
-0.1675606221,
0.3270871639,
0.2548516989,
-0.1390842795,
-0.3214133978,
-0.1426793486,
-0.3935247064,
-0.228112638,
-0.2242880315,
-0.3400648832,
0.3046939969,
-0.034138184,
-0.1692193151,
0.0657263771,
-0.0941390023,
0.1747616827,
0.0775278062,
0.1345155537,
0.094573915,
0.1138609648,
0.3893187642,
0.0514725931,
0.1969857365,
0.6876196265,
-0.1747293621,
-0.2818041444,
0.0031070597,
0.2653587461,
0.1266304106,
0.2776091695,
-0.2134698629,
-0.1107278019,
0.1917883605,
0.1974568665,
-0.0059068166,
0.2809211612,
0.3785069585,
0.0910989195,
-0.5953508019,
-0.5943182707,
0.4862523973,
-0.094910495,
0.1161979437,
0.1835696846,
-0.1201062351,
-0.1307160109,
0.1753081977,
-0.1871679127,
0.7539359927,
-0.0516214855,
0.0220215861,
0.2660263777,
0.2764646709,
0.4896036983,
-0.314195931,
0.0171410255,
-0.2213474661,
-0.3019836545,
-0.0965612903,
-0.1128649861,
0.1232143044,
0.2790020704,
0.0411607102,
0.4529606104,
-0.139798671,
-0.0076719038,
0.1203011498,
0.2758706212,
-0.0123657612,
-0.0990978852,
-0.6099659801,
0.2349268943,
-0.1152765751,
0.2859084308,
-0.1456052661,
-0.0266548041,
0.0189347193,
-0.2011069655,
-0.1252482682,
0.11030747,
-0.5258551836,
0.3352455199,
-0.110322386,
-0.192140311,
-0.2348800898,
0.1402756274,
0.2428162843,
0.020909287,
-0.1805031896,
-0.0164312385,
-0.1787301004,
-0.2422133237,
-0.1114929393,
0.0066053718,
0.33495754,
-0.1443487406,
-0.2299135029,
0.096463345,
-0.1250464022,
-0.3004517853,
0.1181725562,
-0.070910953,
-0.1080979407,
-0.1321868747,
-0.2444407493,
-0.1845483333,
0.0862775445,
-0.1746639609,
0.1367530823,
0.0688007474,
-0.0828411207,
0.1016881764,
0.149476245,
-0.2983341813,
-0.1130416319,
0.3407583833,
-0.2677853405,
-0.2979258001,
0.4692344368,
0.35197258,
-0.1586271673,
-0.1613220274,
0.1176546663,
0.2354240268,
-0.2757169008,
0.0287931785,
0.1620016843,
0.3008444905,
-0.0093473271,
0.3109228313,
0.3056403399,
0.1008466706,
0.0073338524,
-0.720699966,
-0.3249889016,
0.1946193278,
0.127166912,
0.2861981392,
0.1761255562,
0.1147450954,
0.0217655599,
-0.1419667304,
-0.3108201027,
0.0563896522,
-0.1930017024,
-0.2246219218,
0.2044874281,
-0.1960637718,
0.5058367252,
0.096174702,
0.2353151888,
-0.1862322092,
-0.2238083035,
-0.2522973716,
0.0125974342,
0.1250666827,
-0.0072050206,
-0.1599042565,
0.0766847953,
-0.0989362001,
-0.1071701422,
-0.1015126258,
0.1909555197,
0.1383956522,
0.0687802881,
-0.0787462592,
0.1001253128,
0.0301095266,
-0.1907967329,
0.0285083465,
-0.0251340643,
0.3009052575,
0.2265716493,
0.0618353859,
0.0241579451,
-0.0533063561,
-0.0746176541,
-0.1121771634,
-0.0414069779,
-0.0779633373,
0.3595579267,
-0.3970216513,
-0.0275719091,
0.2810699046,
0.4986273944,
0.3485303819,
-0.3341703117,
0.1404316574,
0.0982498676,
0.2008362114,
-0.2418049574,
-0.1320367157,
0.1866643131,
-0.03183892,
0.0309767723,
0.1233273819,
-0.0581409968,
0.0505557656,
-0.2328443825,
0.0567092076,
0.5290331841,
0.092461139,
0.2249318361,
0.1308489442,
-0.0185667872,
0.0669222027,
0.065001063,
0.036055088,
0.1229092479,
0.2920597792,
-0.3495813906,
0.1462304294,
-0.0567595102,
0.0684006065,
-0.1147468239,
-0.6289653182,
0.3336821795,
0.1689160168,
-0.319177568,
0.0878434479,
-0.2449119538,
0.4515691698,
-0.2186648995,
0.051713638,
-0.2908118069,
0.3248184919,
0.0535501838,
-0.0619033799,
0.1166534349,
-0.261392802,
-0.1222895533,
-0.0241961181,
0.0592861138,
-0.3378444314,
0.2547754049,
0.1873701811,
-0.1702091843,
-0.2505170703,
-0.0514736958,
0.2003883421,
-0.0278916322,
-0.1070361361,
0.3322897255,
0.3139645457,
-0.107597068,
-0.0052597495,
0.2078180313,
0.5430833101,
0.3638230264,
0.0598819181,
0.2568229437,
0.1145389527,
-0.1374526769,
0.0676151365,
0.0322947577,
0.2886669338,
0.0836924016,
0.3812454939,
0.2170442939,
-0.1802069396,
0.1671675593,
-0.0198580548,
0.1490116268,
-0.2210002095,
0.3357276917,
-0.0727913976,
0.0364464447,
-0.3704915047,
0.0609769002,
-0.6276518106,
-0.07641083,
0.4593775272,
-0.0112022422,
0.0094914287,
-0.0697319135,
0.0808876231,
-0.1090030298,
0.7130910158,
0.3730812967,
0.408192724,
-0.4481307268,
-0.0922092497,
-0.5804844499,
0.0778251067,
-0.0238746237,
0.1688779593,
0.0909520239,
-0.1451890022,
0.022688454,
0.2757076919,
0.2652716041,
0.0849520564,
0.1511731446,
0.0965434611,
-0.1795461178,
-0.1153763533,
0.0229087658,
0.0601161867,
-0.0376164839,
-0.2377486825,
0.0560075864,
-0.5345260501,
-0.005566299,
-0.0041367859,
-0.0563897453,
-0.0108248517,
-0.0782609135,
0.3397464156,
0.0779526383,
0.7522107959,
0.0061271712,
-0.1257435977,
-0.3982895911,
-0.3299318552,
-0.1280595362,
0.1461878717,
-0.0317725241,
0.2351618856,
-0.1075726897,
-0.3375988901,
-0.3766065836,
0.1866865158,
0.0496851355,
-0.2255177498,
-0.1647087485,
0.0524487272,
0.0788071156,
0.0078811422,
0.1963617206,
0.0920484141,
-0.034826111,
0.3125104904,
-0.1061563641,
-0.3599562049,
0.6798820496,
-0.2259569168,
-0.0474054664,
-0.1042581424,
0.036588762,
0.0912000388,
0.0880401134,
-0.5794770718,
0.1991290748,
0.3769949973,
0.1134660766,
-0.4397309721,
0.2614186406,
-0.0718322992,
0.011539571,
0.0349880606,
0.1389213502,
0.0321028642,
-0.2739159465,
-0.0249954537,
-0.1567310691
] |
https://github.com/huggingface/datasets/issues/759 | (Load dataset failure) ConnectionError: Couldn’t reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py | I can browse the google drive through google chrome. It's weird. I can download the dataset through google drive manually. | Hey, I want to load the cnn-dailymail dataset for fine-tune.
I write the code like this
from datasets import load_dataset
test_dataset = load_dataset(“cnn_dailymail”, “3.0.0”, split=“train”)
And I got the following errors.
Traceback (most recent call last):
File “test.py”, line 7, in
test_dataset = load_dataset(“cnn_dailymail”, “3.0.0”, split=“test”)
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py”, line 589, in load_dataset
module_path, hash = prepare_module(
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py”, line 268, in prepare_module
local_path = cached_path(file_path, download_config=download_config)
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py”, line 300, in cached_path
output_path = get_from_cache(
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py”, line 475, in get_from_cache
raise ConnectionError(“Couldn’t reach {}”.format(url))
ConnectionError: Couldn’t reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py
How can I fix this ? | 20 | (Load dataset failure) ConnectionError: Couldn’t reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py
Hey, I want to load the cnn-dailymail dataset for fine-tune.
I write the code like this
from datasets import load_dataset
test_dataset = load_dataset(“cnn_dailymail”, “3.0.0”, split=“train”)
And I got the following errors.
Traceback (most recent call last):
File “test.py”, line 7, in
test_dataset = load_dataset(“cnn_dailymail”, “3.0.0”, split=“test”)
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py”, line 589, in load_dataset
module_path, hash = prepare_module(
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py”, line 268, in prepare_module
local_path = cached_path(file_path, download_config=download_config)
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py”, line 300, in cached_path
output_path = get_from_cache(
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py”, line 475, in get_from_cache
raise ConnectionError(“Couldn’t reach {}”.format(url))
ConnectionError: Couldn’t reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py
How can I fix this ?
I can browse the google drive through google chrome. It's weird. I can download the dataset through google drive manually. | [
-0.172620669,
-0.0845812187,
-0.097337462,
0.1288862675,
0.4222564995,
0.2019443661,
0.3426601887,
0.0621945783,
-0.0575584024,
0.0043577477,
-0.1423110664,
0.082496576,
-0.0660598949,
0.2489194274,
0.1123089641,
-0.1254213154,
-0.0808452815,
-0.1146303192,
-0.229117021,
0.0067147687,
-0.2098105103,
0.1440935433,
-0.2096494883,
0.0432116613,
-0.4213041067,
-0.1652374119,
0.0861221328,
0.3555387855,
-0.0301730614,
-0.2586031258,
0.3710349798,
0.0136735495,
0.0507147573,
0.4067727923,
-0.0001109412,
0.2821536958,
0.4214934707,
-0.0077435635,
-0.4700695574,
-0.4119874835,
0.0286167189,
-0.2524265051,
0.2036122084,
-0.1215822324,
-0.0896932855,
-0.0993359089,
-0.0485143661,
-0.2351500541,
0.4430736601,
0.4244680703,
0.2697090209,
0.2736965716,
0.3110576868,
-0.0948242247,
-0.3082552552,
-0.2242910713,
0.0436809883,
0.5262340903,
-0.3041550517,
-0.0550038517,
0.2369494438,
0.1852679998,
-0.1102641225,
0.0394288674,
0.1027928889,
0.0368393175,
-0.0811181813,
-0.3631625473,
0.0167238154,
0.0721938461,
0.2434539348,
-0.2260054797,
-0.4658712447,
-0.1638948619,
0.0304692015,
-0.3523119688,
0.2059643418,
0.0724936426,
-0.1310379803,
0.1562265456,
-0.4081345201,
-0.1662251204,
-0.2331793755,
0.4767996669,
-0.083470799,
-0.0691656694,
-0.101345323,
0.1568792164,
0.2081463337,
-0.0147653595,
0.2456073761,
0.016396109,
0.3304593265,
0.2135432512,
-0.4810214937,
0.115841046,
0.0163755454,
0.1395891607,
0.1358591467,
0.2361457795,
0.0839774981,
-0.0570866652,
-0.1238576397,
0.0851526707,
0.0606347583,
0.2453830987,
0.0089368653,
0.1387268603,
0.1872472018,
0.3058449328,
-0.0122887194,
0.0348716266,
-0.1371919364,
-0.2628457844,
-0.0847604647,
0.126672402,
0.4672964811,
-0.0668150559,
-0.1457814574,
0.2286660969,
-0.2497208565,
-0.0773124993,
0.1255283654,
0.5078195333,
-0.2459856421,
0.1030794457,
-0.0911056176,
0.2443114519,
-0.0984815732,
0.0281401016,
-0.2782626748,
0.1583172828,
-0.1469017565,
0.1858578473,
0.420938611,
-0.4283128977,
0.3650211096,
-0.0827950537,
0.1328938305,
-0.2651251256,
0.0727619901,
-0.0731364787,
-0.2295966297,
0.331556648,
-0.0128486231,
0.1878603697,
0.3255274296,
0.2198993266,
-0.0086202025,
-0.0932958275,
-0.2572560906,
-0.535946846,
0.2843954861,
0.2346500158,
-0.1325824857,
-0.2377673686,
-0.1039847359,
-0.0701876134,
-0.0855134726,
0.0499908254,
-0.2254376709,
-0.0758889467,
-0.0001021028,
-0.1851737499,
0.4579846859,
0.4795652032,
-0.3562657237,
-0.1318827569,
-0.0889207944,
-0.1993903965,
0.1022752672,
0.2505486906,
-0.210256353,
0.2678247988,
-0.0300623775,
-0.2001928985,
0.3244517446,
-0.2567798495,
-0.4303715825,
0.2295985222,
-0.1415838897,
0.0772202238,
-0.1597949117,
-0.0198280495,
-0.230043605,
0.0976684242,
0.2224140912,
0.4544762969,
-0.2219422311,
-0.0075087696,
-0.0761365667,
-0.2887580991,
0.1971732229,
0.3495085835,
0.1905548424,
0.0837120265,
0.112290509,
-0.1229669005,
0.1389330029,
0.0792720094,
-0.1288710386,
0.2222593129,
-0.0730449557,
0.0600964539,
0.0057933368,
0.1931333244,
-0.4456617832,
0.2171621025,
0.2575124502,
0.2054390311,
-0.1591735333,
0.0718008503,
-0.331431061,
0.0644789934,
-0.3276310265,
-0.1017317027,
0.1681315452,
0.1100920662,
0.1149900183,
0.1487408578,
-0.3477539122,
0.5853899121,
-0.2807267904,
0.1544780433,
-0.3642602563,
0.3336732686,
-0.1378068477,
0.0208098479,
0.0532537624,
0.1948695928,
0.2270953059,
-0.2124796212,
-0.1230692938,
0.3350650668,
-0.097088173,
0.1396981478,
0.1005697399,
0.0206222981,
0.0887212381,
-0.2732222378,
-0.00759175,
0.1752091348,
-0.0484226905,
-0.0636551529,
0.2221709937,
0.2624589801,
-0.0824367926,
0.3350197971,
0.1653447896,
-0.0167162567,
0.1557746232,
0.082278274,
-0.0725755394,
-0.0804377198,
0.3488464057,
-0.2823638022,
0.4914529622,
-0.1779358238,
-0.1883531511,
-0.2142965347,
0.1073013842,
-0.2060755342,
0.036799673,
0.1807587743,
-0.1527463645,
-0.1959126294,
-0.1415820569,
0.2285893559,
0.3831124306,
0.1266690642,
0.017403964,
0.3330522478,
-0.1124231741,
-0.1255554557,
0.2139613032,
0.1642094105,
0.2534166574,
0.1256902516,
-0.1063406616,
0.0876750648,
-0.3335896134,
-0.2977260053,
0.0457497165,
0.2940999866,
-0.3505651951,
-0.0266051888,
-0.2348109484,
-0.1075838357,
0.0410014391,
-0.4958513081,
-0.1831308603,
-0.4478103518,
-0.1630500853,
-0.0245090537,
0.1001084,
0.1913428158,
-0.1383035332,
0.2042532116,
0.2681009769,
-0.175707683,
-0.1990249753,
-0.1413164735,
-0.1222065389,
0.0425471812,
0.1909828782,
-0.2497789711,
0.2615088224,
-0.1237754524,
-0.1931111813,
-0.1338965595,
-0.0432524011,
0.0448915139,
-0.0807590261,
0.4253887236,
0.041504696,
0.5178231001,
0.1474954933,
-0.052728191,
0.3786587715,
-0.0750784129,
0.0525867417,
0.0137069672,
-0.0126738157,
0.1713646352,
0.1054249257,
-0.4197514057,
-0.5957532525,
-0.3186042607,
0.1332791895,
-0.1404163688,
0.1600907445,
0.4751752615,
0.1390491426,
0.072823301,
-0.0277653225,
0.324347645,
-0.2952395082,
-0.5784929991,
0.3427507281,
-0.4262582958,
-0.3999854922,
0.0517778695,
0.2337380499,
0.158530876,
-0.136862874,
-0.4911378622,
-0.2912991345,
-0.02103181,
-0.2082523853,
-0.1408884674,
0.0342516676,
-0.0817869157,
-0.1706445217,
-0.0807221234,
0.0528548211,
-0.2153962702,
0.0207661893,
-0.189779833,
0.105955407,
0.0540589839,
0.5800536275,
-0.2069239616,
0.4104644656,
0.2627966404,
-0.0999404564,
0.4304723442,
-0.1017872393,
0.298207432,
-0.0337928832,
-0.5136098266,
-0.0390390866,
-0.0248872042,
-0.0493594557,
0.2467013597,
0.1183116287,
-0.1750104129,
-0.4023715258,
-0.182328701,
-0.4465425909,
-0.1094004735,
-0.0297657922,
0.1102360487,
0.0683863163,
0.0337714553,
0.1174005419,
-0.1562559158,
-0.0286272261,
0.0233905427,
0.3478068411,
-0.0388782658,
0.1180433929,
0.00673908,
-0.0921746194,
-0.4314181209,
0.3346542418,
-0.1744609177,
0.4283650517,
-0.1977281719,
0.0767521039,
-0.0671714842,
-0.0039035641,
0.6058325768,
-0.2651655972,
0.1158641279,
0.0965195447,
0.0104378015,
-0.3042712212,
-0.0939211249,
-0.0325784981,
0.2487047464,
0.1657652855,
0.4472000003,
-0.0785695389,
-0.1675606221,
0.3270871639,
0.2548516989,
-0.1390842795,
-0.3214133978,
-0.1426793486,
-0.3935247064,
-0.228112638,
-0.2242880315,
-0.3400648832,
0.3046939969,
-0.034138184,
-0.1692193151,
0.0657263771,
-0.0941390023,
0.1747616827,
0.0775278062,
0.1345155537,
0.094573915,
0.1138609648,
0.3893187642,
0.0514725931,
0.1969857365,
0.6876196265,
-0.1747293621,
-0.2818041444,
0.0031070597,
0.2653587461,
0.1266304106,
0.2776091695,
-0.2134698629,
-0.1107278019,
0.1917883605,
0.1974568665,
-0.0059068166,
0.2809211612,
0.3785069585,
0.0910989195,
-0.5953508019,
-0.5943182707,
0.4862523973,
-0.094910495,
0.1161979437,
0.1835696846,
-0.1201062351,
-0.1307160109,
0.1753081977,
-0.1871679127,
0.7539359927,
-0.0516214855,
0.0220215861,
0.2660263777,
0.2764646709,
0.4896036983,
-0.314195931,
0.0171410255,
-0.2213474661,
-0.3019836545,
-0.0965612903,
-0.1128649861,
0.1232143044,
0.2790020704,
0.0411607102,
0.4529606104,
-0.139798671,
-0.0076719038,
0.1203011498,
0.2758706212,
-0.0123657612,
-0.0990978852,
-0.6099659801,
0.2349268943,
-0.1152765751,
0.2859084308,
-0.1456052661,
-0.0266548041,
0.0189347193,
-0.2011069655,
-0.1252482682,
0.11030747,
-0.5258551836,
0.3352455199,
-0.110322386,
-0.192140311,
-0.2348800898,
0.1402756274,
0.2428162843,
0.020909287,
-0.1805031896,
-0.0164312385,
-0.1787301004,
-0.2422133237,
-0.1114929393,
0.0066053718,
0.33495754,
-0.1443487406,
-0.2299135029,
0.096463345,
-0.1250464022,
-0.3004517853,
0.1181725562,
-0.070910953,
-0.1080979407,
-0.1321868747,
-0.2444407493,
-0.1845483333,
0.0862775445,
-0.1746639609,
0.1367530823,
0.0688007474,
-0.0828411207,
0.1016881764,
0.149476245,
-0.2983341813,
-0.1130416319,
0.3407583833,
-0.2677853405,
-0.2979258001,
0.4692344368,
0.35197258,
-0.1586271673,
-0.1613220274,
0.1176546663,
0.2354240268,
-0.2757169008,
0.0287931785,
0.1620016843,
0.3008444905,
-0.0093473271,
0.3109228313,
0.3056403399,
0.1008466706,
0.0073338524,
-0.720699966,
-0.3249889016,
0.1946193278,
0.127166912,
0.2861981392,
0.1761255562,
0.1147450954,
0.0217655599,
-0.1419667304,
-0.3108201027,
0.0563896522,
-0.1930017024,
-0.2246219218,
0.2044874281,
-0.1960637718,
0.5058367252,
0.096174702,
0.2353151888,
-0.1862322092,
-0.2238083035,
-0.2522973716,
0.0125974342,
0.1250666827,
-0.0072050206,
-0.1599042565,
0.0766847953,
-0.0989362001,
-0.1071701422,
-0.1015126258,
0.1909555197,
0.1383956522,
0.0687802881,
-0.0787462592,
0.1001253128,
0.0301095266,
-0.1907967329,
0.0285083465,
-0.0251340643,
0.3009052575,
0.2265716493,
0.0618353859,
0.0241579451,
-0.0533063561,
-0.0746176541,
-0.1121771634,
-0.0414069779,
-0.0779633373,
0.3595579267,
-0.3970216513,
-0.0275719091,
0.2810699046,
0.4986273944,
0.3485303819,
-0.3341703117,
0.1404316574,
0.0982498676,
0.2008362114,
-0.2418049574,
-0.1320367157,
0.1866643131,
-0.03183892,
0.0309767723,
0.1233273819,
-0.0581409968,
0.0505557656,
-0.2328443825,
0.0567092076,
0.5290331841,
0.092461139,
0.2249318361,
0.1308489442,
-0.0185667872,
0.0669222027,
0.065001063,
0.036055088,
0.1229092479,
0.2920597792,
-0.3495813906,
0.1462304294,
-0.0567595102,
0.0684006065,
-0.1147468239,
-0.6289653182,
0.3336821795,
0.1689160168,
-0.319177568,
0.0878434479,
-0.2449119538,
0.4515691698,
-0.2186648995,
0.051713638,
-0.2908118069,
0.3248184919,
0.0535501838,
-0.0619033799,
0.1166534349,
-0.261392802,
-0.1222895533,
-0.0241961181,
0.0592861138,
-0.3378444314,
0.2547754049,
0.1873701811,
-0.1702091843,
-0.2505170703,
-0.0514736958,
0.2003883421,
-0.0278916322,
-0.1070361361,
0.3322897255,
0.3139645457,
-0.107597068,
-0.0052597495,
0.2078180313,
0.5430833101,
0.3638230264,
0.0598819181,
0.2568229437,
0.1145389527,
-0.1374526769,
0.0676151365,
0.0322947577,
0.2886669338,
0.0836924016,
0.3812454939,
0.2170442939,
-0.1802069396,
0.1671675593,
-0.0198580548,
0.1490116268,
-0.2210002095,
0.3357276917,
-0.0727913976,
0.0364464447,
-0.3704915047,
0.0609769002,
-0.6276518106,
-0.07641083,
0.4593775272,
-0.0112022422,
0.0094914287,
-0.0697319135,
0.0808876231,
-0.1090030298,
0.7130910158,
0.3730812967,
0.408192724,
-0.4481307268,
-0.0922092497,
-0.5804844499,
0.0778251067,
-0.0238746237,
0.1688779593,
0.0909520239,
-0.1451890022,
0.022688454,
0.2757076919,
0.2652716041,
0.0849520564,
0.1511731446,
0.0965434611,
-0.1795461178,
-0.1153763533,
0.0229087658,
0.0601161867,
-0.0376164839,
-0.2377486825,
0.0560075864,
-0.5345260501,
-0.005566299,
-0.0041367859,
-0.0563897453,
-0.0108248517,
-0.0782609135,
0.3397464156,
0.0779526383,
0.7522107959,
0.0061271712,
-0.1257435977,
-0.3982895911,
-0.3299318552,
-0.1280595362,
0.1461878717,
-0.0317725241,
0.2351618856,
-0.1075726897,
-0.3375988901,
-0.3766065836,
0.1866865158,
0.0496851355,
-0.2255177498,
-0.1647087485,
0.0524487272,
0.0788071156,
0.0078811422,
0.1963617206,
0.0920484141,
-0.034826111,
0.3125104904,
-0.1061563641,
-0.3599562049,
0.6798820496,
-0.2259569168,
-0.0474054664,
-0.1042581424,
0.036588762,
0.0912000388,
0.0880401134,
-0.5794770718,
0.1991290748,
0.3769949973,
0.1134660766,
-0.4397309721,
0.2614186406,
-0.0718322992,
0.011539571,
0.0349880606,
0.1389213502,
0.0321028642,
-0.2739159465,
-0.0249954537,
-0.1567310691
] |
https://github.com/huggingface/datasets/issues/759 | (Load dataset failure) ConnectionError: Couldn’t reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py | Is it possible I download the dataset manually from google drive and use it for further test ? How can I do this ? I want to reproduce the model in this link https://huggingface.co/patrickvonplaten/bert2bert-cnn_dailymail-fp16. But I can't download the dataset through load_dataset method . I have tried many times and the connection error always happens .
| Hey, I want to load the cnn-dailymail dataset for fine-tune.
I write the code like this
from datasets import load_dataset
test_dataset = load_dataset(“cnn_dailymail”, “3.0.0”, split=“train”)
And I got the following errors.
Traceback (most recent call last):
File “test.py”, line 7, in
test_dataset = load_dataset(“cnn_dailymail”, “3.0.0”, split=“test”)
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py”, line 589, in load_dataset
module_path, hash = prepare_module(
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py”, line 268, in prepare_module
local_path = cached_path(file_path, download_config=download_config)
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py”, line 300, in cached_path
output_path = get_from_cache(
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py”, line 475, in get_from_cache
raise ConnectionError(“Couldn’t reach {}”.format(url))
ConnectionError: Couldn’t reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py
How can I fix this ? | 56 | (Load dataset failure) ConnectionError: Couldn’t reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py
Hey, I want to load the cnn-dailymail dataset for fine-tune.
I write the code like this
from datasets import load_dataset
test_dataset = load_dataset(“cnn_dailymail”, “3.0.0”, split=“train”)
And I got the following errors.
Traceback (most recent call last):
File “test.py”, line 7, in
test_dataset = load_dataset(“cnn_dailymail”, “3.0.0”, split=“test”)
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py”, line 589, in load_dataset
module_path, hash = prepare_module(
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py”, line 268, in prepare_module
local_path = cached_path(file_path, download_config=download_config)
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py”, line 300, in cached_path
output_path = get_from_cache(
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py”, line 475, in get_from_cache
raise ConnectionError(“Couldn’t reach {}”.format(url))
ConnectionError: Couldn’t reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py
How can I fix this ?
Is it possible I download the dataset manually from google drive and use it for further test ? How can I do this ? I want to reproduce the model in this link https://huggingface.co/patrickvonplaten/bert2bert-cnn_dailymail-fp16. But I can't download the dataset through load_dataset method . I have tried many times and the connection error always happens .
| [
-0.172620669,
-0.0845812187,
-0.097337462,
0.1288862675,
0.4222564995,
0.2019443661,
0.3426601887,
0.0621945783,
-0.0575584024,
0.0043577477,
-0.1423110664,
0.082496576,
-0.0660598949,
0.2489194274,
0.1123089641,
-0.1254213154,
-0.0808452815,
-0.1146303192,
-0.229117021,
0.0067147687,
-0.2098105103,
0.1440935433,
-0.2096494883,
0.0432116613,
-0.4213041067,
-0.1652374119,
0.0861221328,
0.3555387855,
-0.0301730614,
-0.2586031258,
0.3710349798,
0.0136735495,
0.0507147573,
0.4067727923,
-0.0001109412,
0.2821536958,
0.4214934707,
-0.0077435635,
-0.4700695574,
-0.4119874835,
0.0286167189,
-0.2524265051,
0.2036122084,
-0.1215822324,
-0.0896932855,
-0.0993359089,
-0.0485143661,
-0.2351500541,
0.4430736601,
0.4244680703,
0.2697090209,
0.2736965716,
0.3110576868,
-0.0948242247,
-0.3082552552,
-0.2242910713,
0.0436809883,
0.5262340903,
-0.3041550517,
-0.0550038517,
0.2369494438,
0.1852679998,
-0.1102641225,
0.0394288674,
0.1027928889,
0.0368393175,
-0.0811181813,
-0.3631625473,
0.0167238154,
0.0721938461,
0.2434539348,
-0.2260054797,
-0.4658712447,
-0.1638948619,
0.0304692015,
-0.3523119688,
0.2059643418,
0.0724936426,
-0.1310379803,
0.1562265456,
-0.4081345201,
-0.1662251204,
-0.2331793755,
0.4767996669,
-0.083470799,
-0.0691656694,
-0.101345323,
0.1568792164,
0.2081463337,
-0.0147653595,
0.2456073761,
0.016396109,
0.3304593265,
0.2135432512,
-0.4810214937,
0.115841046,
0.0163755454,
0.1395891607,
0.1358591467,
0.2361457795,
0.0839774981,
-0.0570866652,
-0.1238576397,
0.0851526707,
0.0606347583,
0.2453830987,
0.0089368653,
0.1387268603,
0.1872472018,
0.3058449328,
-0.0122887194,
0.0348716266,
-0.1371919364,
-0.2628457844,
-0.0847604647,
0.126672402,
0.4672964811,
-0.0668150559,
-0.1457814574,
0.2286660969,
-0.2497208565,
-0.0773124993,
0.1255283654,
0.5078195333,
-0.2459856421,
0.1030794457,
-0.0911056176,
0.2443114519,
-0.0984815732,
0.0281401016,
-0.2782626748,
0.1583172828,
-0.1469017565,
0.1858578473,
0.420938611,
-0.4283128977,
0.3650211096,
-0.0827950537,
0.1328938305,
-0.2651251256,
0.0727619901,
-0.0731364787,
-0.2295966297,
0.331556648,
-0.0128486231,
0.1878603697,
0.3255274296,
0.2198993266,
-0.0086202025,
-0.0932958275,
-0.2572560906,
-0.535946846,
0.2843954861,
0.2346500158,
-0.1325824857,
-0.2377673686,
-0.1039847359,
-0.0701876134,
-0.0855134726,
0.0499908254,
-0.2254376709,
-0.0758889467,
-0.0001021028,
-0.1851737499,
0.4579846859,
0.4795652032,
-0.3562657237,
-0.1318827569,
-0.0889207944,
-0.1993903965,
0.1022752672,
0.2505486906,
-0.210256353,
0.2678247988,
-0.0300623775,
-0.2001928985,
0.3244517446,
-0.2567798495,
-0.4303715825,
0.2295985222,
-0.1415838897,
0.0772202238,
-0.1597949117,
-0.0198280495,
-0.230043605,
0.0976684242,
0.2224140912,
0.4544762969,
-0.2219422311,
-0.0075087696,
-0.0761365667,
-0.2887580991,
0.1971732229,
0.3495085835,
0.1905548424,
0.0837120265,
0.112290509,
-0.1229669005,
0.1389330029,
0.0792720094,
-0.1288710386,
0.2222593129,
-0.0730449557,
0.0600964539,
0.0057933368,
0.1931333244,
-0.4456617832,
0.2171621025,
0.2575124502,
0.2054390311,
-0.1591735333,
0.0718008503,
-0.331431061,
0.0644789934,
-0.3276310265,
-0.1017317027,
0.1681315452,
0.1100920662,
0.1149900183,
0.1487408578,
-0.3477539122,
0.5853899121,
-0.2807267904,
0.1544780433,
-0.3642602563,
0.3336732686,
-0.1378068477,
0.0208098479,
0.0532537624,
0.1948695928,
0.2270953059,
-0.2124796212,
-0.1230692938,
0.3350650668,
-0.097088173,
0.1396981478,
0.1005697399,
0.0206222981,
0.0887212381,
-0.2732222378,
-0.00759175,
0.1752091348,
-0.0484226905,
-0.0636551529,
0.2221709937,
0.2624589801,
-0.0824367926,
0.3350197971,
0.1653447896,
-0.0167162567,
0.1557746232,
0.082278274,
-0.0725755394,
-0.0804377198,
0.3488464057,
-0.2823638022,
0.4914529622,
-0.1779358238,
-0.1883531511,
-0.2142965347,
0.1073013842,
-0.2060755342,
0.036799673,
0.1807587743,
-0.1527463645,
-0.1959126294,
-0.1415820569,
0.2285893559,
0.3831124306,
0.1266690642,
0.017403964,
0.3330522478,
-0.1124231741,
-0.1255554557,
0.2139613032,
0.1642094105,
0.2534166574,
0.1256902516,
-0.1063406616,
0.0876750648,
-0.3335896134,
-0.2977260053,
0.0457497165,
0.2940999866,
-0.3505651951,
-0.0266051888,
-0.2348109484,
-0.1075838357,
0.0410014391,
-0.4958513081,
-0.1831308603,
-0.4478103518,
-0.1630500853,
-0.0245090537,
0.1001084,
0.1913428158,
-0.1383035332,
0.2042532116,
0.2681009769,
-0.175707683,
-0.1990249753,
-0.1413164735,
-0.1222065389,
0.0425471812,
0.1909828782,
-0.2497789711,
0.2615088224,
-0.1237754524,
-0.1931111813,
-0.1338965595,
-0.0432524011,
0.0448915139,
-0.0807590261,
0.4253887236,
0.041504696,
0.5178231001,
0.1474954933,
-0.052728191,
0.3786587715,
-0.0750784129,
0.0525867417,
0.0137069672,
-0.0126738157,
0.1713646352,
0.1054249257,
-0.4197514057,
-0.5957532525,
-0.3186042607,
0.1332791895,
-0.1404163688,
0.1600907445,
0.4751752615,
0.1390491426,
0.072823301,
-0.0277653225,
0.324347645,
-0.2952395082,
-0.5784929991,
0.3427507281,
-0.4262582958,
-0.3999854922,
0.0517778695,
0.2337380499,
0.158530876,
-0.136862874,
-0.4911378622,
-0.2912991345,
-0.02103181,
-0.2082523853,
-0.1408884674,
0.0342516676,
-0.0817869157,
-0.1706445217,
-0.0807221234,
0.0528548211,
-0.2153962702,
0.0207661893,
-0.189779833,
0.105955407,
0.0540589839,
0.5800536275,
-0.2069239616,
0.4104644656,
0.2627966404,
-0.0999404564,
0.4304723442,
-0.1017872393,
0.298207432,
-0.0337928832,
-0.5136098266,
-0.0390390866,
-0.0248872042,
-0.0493594557,
0.2467013597,
0.1183116287,
-0.1750104129,
-0.4023715258,
-0.182328701,
-0.4465425909,
-0.1094004735,
-0.0297657922,
0.1102360487,
0.0683863163,
0.0337714553,
0.1174005419,
-0.1562559158,
-0.0286272261,
0.0233905427,
0.3478068411,
-0.0388782658,
0.1180433929,
0.00673908,
-0.0921746194,
-0.4314181209,
0.3346542418,
-0.1744609177,
0.4283650517,
-0.1977281719,
0.0767521039,
-0.0671714842,
-0.0039035641,
0.6058325768,
-0.2651655972,
0.1158641279,
0.0965195447,
0.0104378015,
-0.3042712212,
-0.0939211249,
-0.0325784981,
0.2487047464,
0.1657652855,
0.4472000003,
-0.0785695389,
-0.1675606221,
0.3270871639,
0.2548516989,
-0.1390842795,
-0.3214133978,
-0.1426793486,
-0.3935247064,
-0.228112638,
-0.2242880315,
-0.3400648832,
0.3046939969,
-0.034138184,
-0.1692193151,
0.0657263771,
-0.0941390023,
0.1747616827,
0.0775278062,
0.1345155537,
0.094573915,
0.1138609648,
0.3893187642,
0.0514725931,
0.1969857365,
0.6876196265,
-0.1747293621,
-0.2818041444,
0.0031070597,
0.2653587461,
0.1266304106,
0.2776091695,
-0.2134698629,
-0.1107278019,
0.1917883605,
0.1974568665,
-0.0059068166,
0.2809211612,
0.3785069585,
0.0910989195,
-0.5953508019,
-0.5943182707,
0.4862523973,
-0.094910495,
0.1161979437,
0.1835696846,
-0.1201062351,
-0.1307160109,
0.1753081977,
-0.1871679127,
0.7539359927,
-0.0516214855,
0.0220215861,
0.2660263777,
0.2764646709,
0.4896036983,
-0.314195931,
0.0171410255,
-0.2213474661,
-0.3019836545,
-0.0965612903,
-0.1128649861,
0.1232143044,
0.2790020704,
0.0411607102,
0.4529606104,
-0.139798671,
-0.0076719038,
0.1203011498,
0.2758706212,
-0.0123657612,
-0.0990978852,
-0.6099659801,
0.2349268943,
-0.1152765751,
0.2859084308,
-0.1456052661,
-0.0266548041,
0.0189347193,
-0.2011069655,
-0.1252482682,
0.11030747,
-0.5258551836,
0.3352455199,
-0.110322386,
-0.192140311,
-0.2348800898,
0.1402756274,
0.2428162843,
0.020909287,
-0.1805031896,
-0.0164312385,
-0.1787301004,
-0.2422133237,
-0.1114929393,
0.0066053718,
0.33495754,
-0.1443487406,
-0.2299135029,
0.096463345,
-0.1250464022,
-0.3004517853,
0.1181725562,
-0.070910953,
-0.1080979407,
-0.1321868747,
-0.2444407493,
-0.1845483333,
0.0862775445,
-0.1746639609,
0.1367530823,
0.0688007474,
-0.0828411207,
0.1016881764,
0.149476245,
-0.2983341813,
-0.1130416319,
0.3407583833,
-0.2677853405,
-0.2979258001,
0.4692344368,
0.35197258,
-0.1586271673,
-0.1613220274,
0.1176546663,
0.2354240268,
-0.2757169008,
0.0287931785,
0.1620016843,
0.3008444905,
-0.0093473271,
0.3109228313,
0.3056403399,
0.1008466706,
0.0073338524,
-0.720699966,
-0.3249889016,
0.1946193278,
0.127166912,
0.2861981392,
0.1761255562,
0.1147450954,
0.0217655599,
-0.1419667304,
-0.3108201027,
0.0563896522,
-0.1930017024,
-0.2246219218,
0.2044874281,
-0.1960637718,
0.5058367252,
0.096174702,
0.2353151888,
-0.1862322092,
-0.2238083035,
-0.2522973716,
0.0125974342,
0.1250666827,
-0.0072050206,
-0.1599042565,
0.0766847953,
-0.0989362001,
-0.1071701422,
-0.1015126258,
0.1909555197,
0.1383956522,
0.0687802881,
-0.0787462592,
0.1001253128,
0.0301095266,
-0.1907967329,
0.0285083465,
-0.0251340643,
0.3009052575,
0.2265716493,
0.0618353859,
0.0241579451,
-0.0533063561,
-0.0746176541,
-0.1121771634,
-0.0414069779,
-0.0779633373,
0.3595579267,
-0.3970216513,
-0.0275719091,
0.2810699046,
0.4986273944,
0.3485303819,
-0.3341703117,
0.1404316574,
0.0982498676,
0.2008362114,
-0.2418049574,
-0.1320367157,
0.1866643131,
-0.03183892,
0.0309767723,
0.1233273819,
-0.0581409968,
0.0505557656,
-0.2328443825,
0.0567092076,
0.5290331841,
0.092461139,
0.2249318361,
0.1308489442,
-0.0185667872,
0.0669222027,
0.065001063,
0.036055088,
0.1229092479,
0.2920597792,
-0.3495813906,
0.1462304294,
-0.0567595102,
0.0684006065,
-0.1147468239,
-0.6289653182,
0.3336821795,
0.1689160168,
-0.319177568,
0.0878434479,
-0.2449119538,
0.4515691698,
-0.2186648995,
0.051713638,
-0.2908118069,
0.3248184919,
0.0535501838,
-0.0619033799,
0.1166534349,
-0.261392802,
-0.1222895533,
-0.0241961181,
0.0592861138,
-0.3378444314,
0.2547754049,
0.1873701811,
-0.1702091843,
-0.2505170703,
-0.0514736958,
0.2003883421,
-0.0278916322,
-0.1070361361,
0.3322897255,
0.3139645457,
-0.107597068,
-0.0052597495,
0.2078180313,
0.5430833101,
0.3638230264,
0.0598819181,
0.2568229437,
0.1145389527,
-0.1374526769,
0.0676151365,
0.0322947577,
0.2886669338,
0.0836924016,
0.3812454939,
0.2170442939,
-0.1802069396,
0.1671675593,
-0.0198580548,
0.1490116268,
-0.2210002095,
0.3357276917,
-0.0727913976,
0.0364464447,
-0.3704915047,
0.0609769002,
-0.6276518106,
-0.07641083,
0.4593775272,
-0.0112022422,
0.0094914287,
-0.0697319135,
0.0808876231,
-0.1090030298,
0.7130910158,
0.3730812967,
0.408192724,
-0.4481307268,
-0.0922092497,
-0.5804844499,
0.0778251067,
-0.0238746237,
0.1688779593,
0.0909520239,
-0.1451890022,
0.022688454,
0.2757076919,
0.2652716041,
0.0849520564,
0.1511731446,
0.0965434611,
-0.1795461178,
-0.1153763533,
0.0229087658,
0.0601161867,
-0.0376164839,
-0.2377486825,
0.0560075864,
-0.5345260501,
-0.005566299,
-0.0041367859,
-0.0563897453,
-0.0108248517,
-0.0782609135,
0.3397464156,
0.0779526383,
0.7522107959,
0.0061271712,
-0.1257435977,
-0.3982895911,
-0.3299318552,
-0.1280595362,
0.1461878717,
-0.0317725241,
0.2351618856,
-0.1075726897,
-0.3375988901,
-0.3766065836,
0.1866865158,
0.0496851355,
-0.2255177498,
-0.1647087485,
0.0524487272,
0.0788071156,
0.0078811422,
0.1963617206,
0.0920484141,
-0.034826111,
0.3125104904,
-0.1061563641,
-0.3599562049,
0.6798820496,
-0.2259569168,
-0.0474054664,
-0.1042581424,
0.036588762,
0.0912000388,
0.0880401134,
-0.5794770718,
0.1991290748,
0.3769949973,
0.1134660766,
-0.4397309721,
0.2614186406,
-0.0718322992,
0.011539571,
0.0349880606,
0.1389213502,
0.0321028642,
-0.2739159465,
-0.0249954537,
-0.1567310691
] |
https://github.com/huggingface/datasets/issues/759 | (Load dataset failure) ConnectionError: Couldn’t reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py | The head request should definitely work, not sure what's going on on your side.
If you find a way to make it work, please post it here since other users might encounter the same issue.
If you don't manage to fix it you can use `load_dataset` on google colab and then save it using `dataset.save_to_disk("path/to/dataset")`.
Then you can download the directory on your machine and do
```python
from datasets import load_from_disk
dataset = load_from_disk("path/to/local/dataset")
``` | Hey, I want to load the cnn-dailymail dataset for fine-tune.
I write the code like this
from datasets import load_dataset
test_dataset = load_dataset(“cnn_dailymail”, “3.0.0”, split=“train”)
And I got the following errors.
Traceback (most recent call last):
File “test.py”, line 7, in
test_dataset = load_dataset(“cnn_dailymail”, “3.0.0”, split=“test”)
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py”, line 589, in load_dataset
module_path, hash = prepare_module(
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py”, line 268, in prepare_module
local_path = cached_path(file_path, download_config=download_config)
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py”, line 300, in cached_path
output_path = get_from_cache(
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py”, line 475, in get_from_cache
raise ConnectionError(“Couldn’t reach {}”.format(url))
ConnectionError: Couldn’t reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py
How can I fix this ? | 75 | (Load dataset failure) ConnectionError: Couldn’t reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py
Hey, I want to load the cnn-dailymail dataset for fine-tune.
I write the code like this
from datasets import load_dataset
test_dataset = load_dataset(“cnn_dailymail”, “3.0.0”, split=“train”)
And I got the following errors.
Traceback (most recent call last):
File “test.py”, line 7, in
test_dataset = load_dataset(“cnn_dailymail”, “3.0.0”, split=“test”)
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py”, line 589, in load_dataset
module_path, hash = prepare_module(
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py”, line 268, in prepare_module
local_path = cached_path(file_path, download_config=download_config)
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py”, line 300, in cached_path
output_path = get_from_cache(
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py”, line 475, in get_from_cache
raise ConnectionError(“Couldn’t reach {}”.format(url))
ConnectionError: Couldn’t reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py
How can I fix this ?
The head request should definitely work, not sure what's going on on your side.
If you find a way to make it work, please post it here since other users might encounter the same issue.
If you don't manage to fix it you can use `load_dataset` on google colab and then save it using `dataset.save_to_disk("path/to/dataset")`.
Then you can download the directory on your machine and do
```python
from datasets import load_from_disk
dataset = load_from_disk("path/to/local/dataset")
``` | [
-0.172620669,
-0.0845812187,
-0.097337462,
0.1288862675,
0.4222564995,
0.2019443661,
0.3426601887,
0.0621945783,
-0.0575584024,
0.0043577477,
-0.1423110664,
0.082496576,
-0.0660598949,
0.2489194274,
0.1123089641,
-0.1254213154,
-0.0808452815,
-0.1146303192,
-0.229117021,
0.0067147687,
-0.2098105103,
0.1440935433,
-0.2096494883,
0.0432116613,
-0.4213041067,
-0.1652374119,
0.0861221328,
0.3555387855,
-0.0301730614,
-0.2586031258,
0.3710349798,
0.0136735495,
0.0507147573,
0.4067727923,
-0.0001109412,
0.2821536958,
0.4214934707,
-0.0077435635,
-0.4700695574,
-0.4119874835,
0.0286167189,
-0.2524265051,
0.2036122084,
-0.1215822324,
-0.0896932855,
-0.0993359089,
-0.0485143661,
-0.2351500541,
0.4430736601,
0.4244680703,
0.2697090209,
0.2736965716,
0.3110576868,
-0.0948242247,
-0.3082552552,
-0.2242910713,
0.0436809883,
0.5262340903,
-0.3041550517,
-0.0550038517,
0.2369494438,
0.1852679998,
-0.1102641225,
0.0394288674,
0.1027928889,
0.0368393175,
-0.0811181813,
-0.3631625473,
0.0167238154,
0.0721938461,
0.2434539348,
-0.2260054797,
-0.4658712447,
-0.1638948619,
0.0304692015,
-0.3523119688,
0.2059643418,
0.0724936426,
-0.1310379803,
0.1562265456,
-0.4081345201,
-0.1662251204,
-0.2331793755,
0.4767996669,
-0.083470799,
-0.0691656694,
-0.101345323,
0.1568792164,
0.2081463337,
-0.0147653595,
0.2456073761,
0.016396109,
0.3304593265,
0.2135432512,
-0.4810214937,
0.115841046,
0.0163755454,
0.1395891607,
0.1358591467,
0.2361457795,
0.0839774981,
-0.0570866652,
-0.1238576397,
0.0851526707,
0.0606347583,
0.2453830987,
0.0089368653,
0.1387268603,
0.1872472018,
0.3058449328,
-0.0122887194,
0.0348716266,
-0.1371919364,
-0.2628457844,
-0.0847604647,
0.126672402,
0.4672964811,
-0.0668150559,
-0.1457814574,
0.2286660969,
-0.2497208565,
-0.0773124993,
0.1255283654,
0.5078195333,
-0.2459856421,
0.1030794457,
-0.0911056176,
0.2443114519,
-0.0984815732,
0.0281401016,
-0.2782626748,
0.1583172828,
-0.1469017565,
0.1858578473,
0.420938611,
-0.4283128977,
0.3650211096,
-0.0827950537,
0.1328938305,
-0.2651251256,
0.0727619901,
-0.0731364787,
-0.2295966297,
0.331556648,
-0.0128486231,
0.1878603697,
0.3255274296,
0.2198993266,
-0.0086202025,
-0.0932958275,
-0.2572560906,
-0.535946846,
0.2843954861,
0.2346500158,
-0.1325824857,
-0.2377673686,
-0.1039847359,
-0.0701876134,
-0.0855134726,
0.0499908254,
-0.2254376709,
-0.0758889467,
-0.0001021028,
-0.1851737499,
0.4579846859,
0.4795652032,
-0.3562657237,
-0.1318827569,
-0.0889207944,
-0.1993903965,
0.1022752672,
0.2505486906,
-0.210256353,
0.2678247988,
-0.0300623775,
-0.2001928985,
0.3244517446,
-0.2567798495,
-0.4303715825,
0.2295985222,
-0.1415838897,
0.0772202238,
-0.1597949117,
-0.0198280495,
-0.230043605,
0.0976684242,
0.2224140912,
0.4544762969,
-0.2219422311,
-0.0075087696,
-0.0761365667,
-0.2887580991,
0.1971732229,
0.3495085835,
0.1905548424,
0.0837120265,
0.112290509,
-0.1229669005,
0.1389330029,
0.0792720094,
-0.1288710386,
0.2222593129,
-0.0730449557,
0.0600964539,
0.0057933368,
0.1931333244,
-0.4456617832,
0.2171621025,
0.2575124502,
0.2054390311,
-0.1591735333,
0.0718008503,
-0.331431061,
0.0644789934,
-0.3276310265,
-0.1017317027,
0.1681315452,
0.1100920662,
0.1149900183,
0.1487408578,
-0.3477539122,
0.5853899121,
-0.2807267904,
0.1544780433,
-0.3642602563,
0.3336732686,
-0.1378068477,
0.0208098479,
0.0532537624,
0.1948695928,
0.2270953059,
-0.2124796212,
-0.1230692938,
0.3350650668,
-0.097088173,
0.1396981478,
0.1005697399,
0.0206222981,
0.0887212381,
-0.2732222378,
-0.00759175,
0.1752091348,
-0.0484226905,
-0.0636551529,
0.2221709937,
0.2624589801,
-0.0824367926,
0.3350197971,
0.1653447896,
-0.0167162567,
0.1557746232,
0.082278274,
-0.0725755394,
-0.0804377198,
0.3488464057,
-0.2823638022,
0.4914529622,
-0.1779358238,
-0.1883531511,
-0.2142965347,
0.1073013842,
-0.2060755342,
0.036799673,
0.1807587743,
-0.1527463645,
-0.1959126294,
-0.1415820569,
0.2285893559,
0.3831124306,
0.1266690642,
0.017403964,
0.3330522478,
-0.1124231741,
-0.1255554557,
0.2139613032,
0.1642094105,
0.2534166574,
0.1256902516,
-0.1063406616,
0.0876750648,
-0.3335896134,
-0.2977260053,
0.0457497165,
0.2940999866,
-0.3505651951,
-0.0266051888,
-0.2348109484,
-0.1075838357,
0.0410014391,
-0.4958513081,
-0.1831308603,
-0.4478103518,
-0.1630500853,
-0.0245090537,
0.1001084,
0.1913428158,
-0.1383035332,
0.2042532116,
0.2681009769,
-0.175707683,
-0.1990249753,
-0.1413164735,
-0.1222065389,
0.0425471812,
0.1909828782,
-0.2497789711,
0.2615088224,
-0.1237754524,
-0.1931111813,
-0.1338965595,
-0.0432524011,
0.0448915139,
-0.0807590261,
0.4253887236,
0.041504696,
0.5178231001,
0.1474954933,
-0.052728191,
0.3786587715,
-0.0750784129,
0.0525867417,
0.0137069672,
-0.0126738157,
0.1713646352,
0.1054249257,
-0.4197514057,
-0.5957532525,
-0.3186042607,
0.1332791895,
-0.1404163688,
0.1600907445,
0.4751752615,
0.1390491426,
0.072823301,
-0.0277653225,
0.324347645,
-0.2952395082,
-0.5784929991,
0.3427507281,
-0.4262582958,
-0.3999854922,
0.0517778695,
0.2337380499,
0.158530876,
-0.136862874,
-0.4911378622,
-0.2912991345,
-0.02103181,
-0.2082523853,
-0.1408884674,
0.0342516676,
-0.0817869157,
-0.1706445217,
-0.0807221234,
0.0528548211,
-0.2153962702,
0.0207661893,
-0.189779833,
0.105955407,
0.0540589839,
0.5800536275,
-0.2069239616,
0.4104644656,
0.2627966404,
-0.0999404564,
0.4304723442,
-0.1017872393,
0.298207432,
-0.0337928832,
-0.5136098266,
-0.0390390866,
-0.0248872042,
-0.0493594557,
0.2467013597,
0.1183116287,
-0.1750104129,
-0.4023715258,
-0.182328701,
-0.4465425909,
-0.1094004735,
-0.0297657922,
0.1102360487,
0.0683863163,
0.0337714553,
0.1174005419,
-0.1562559158,
-0.0286272261,
0.0233905427,
0.3478068411,
-0.0388782658,
0.1180433929,
0.00673908,
-0.0921746194,
-0.4314181209,
0.3346542418,
-0.1744609177,
0.4283650517,
-0.1977281719,
0.0767521039,
-0.0671714842,
-0.0039035641,
0.6058325768,
-0.2651655972,
0.1158641279,
0.0965195447,
0.0104378015,
-0.3042712212,
-0.0939211249,
-0.0325784981,
0.2487047464,
0.1657652855,
0.4472000003,
-0.0785695389,
-0.1675606221,
0.3270871639,
0.2548516989,
-0.1390842795,
-0.3214133978,
-0.1426793486,
-0.3935247064,
-0.228112638,
-0.2242880315,
-0.3400648832,
0.3046939969,
-0.034138184,
-0.1692193151,
0.0657263771,
-0.0941390023,
0.1747616827,
0.0775278062,
0.1345155537,
0.094573915,
0.1138609648,
0.3893187642,
0.0514725931,
0.1969857365,
0.6876196265,
-0.1747293621,
-0.2818041444,
0.0031070597,
0.2653587461,
0.1266304106,
0.2776091695,
-0.2134698629,
-0.1107278019,
0.1917883605,
0.1974568665,
-0.0059068166,
0.2809211612,
0.3785069585,
0.0910989195,
-0.5953508019,
-0.5943182707,
0.4862523973,
-0.094910495,
0.1161979437,
0.1835696846,
-0.1201062351,
-0.1307160109,
0.1753081977,
-0.1871679127,
0.7539359927,
-0.0516214855,
0.0220215861,
0.2660263777,
0.2764646709,
0.4896036983,
-0.314195931,
0.0171410255,
-0.2213474661,
-0.3019836545,
-0.0965612903,
-0.1128649861,
0.1232143044,
0.2790020704,
0.0411607102,
0.4529606104,
-0.139798671,
-0.0076719038,
0.1203011498,
0.2758706212,
-0.0123657612,
-0.0990978852,
-0.6099659801,
0.2349268943,
-0.1152765751,
0.2859084308,
-0.1456052661,
-0.0266548041,
0.0189347193,
-0.2011069655,
-0.1252482682,
0.11030747,
-0.5258551836,
0.3352455199,
-0.110322386,
-0.192140311,
-0.2348800898,
0.1402756274,
0.2428162843,
0.020909287,
-0.1805031896,
-0.0164312385,
-0.1787301004,
-0.2422133237,
-0.1114929393,
0.0066053718,
0.33495754,
-0.1443487406,
-0.2299135029,
0.096463345,
-0.1250464022,
-0.3004517853,
0.1181725562,
-0.070910953,
-0.1080979407,
-0.1321868747,
-0.2444407493,
-0.1845483333,
0.0862775445,
-0.1746639609,
0.1367530823,
0.0688007474,
-0.0828411207,
0.1016881764,
0.149476245,
-0.2983341813,
-0.1130416319,
0.3407583833,
-0.2677853405,
-0.2979258001,
0.4692344368,
0.35197258,
-0.1586271673,
-0.1613220274,
0.1176546663,
0.2354240268,
-0.2757169008,
0.0287931785,
0.1620016843,
0.3008444905,
-0.0093473271,
0.3109228313,
0.3056403399,
0.1008466706,
0.0073338524,
-0.720699966,
-0.3249889016,
0.1946193278,
0.127166912,
0.2861981392,
0.1761255562,
0.1147450954,
0.0217655599,
-0.1419667304,
-0.3108201027,
0.0563896522,
-0.1930017024,
-0.2246219218,
0.2044874281,
-0.1960637718,
0.5058367252,
0.096174702,
0.2353151888,
-0.1862322092,
-0.2238083035,
-0.2522973716,
0.0125974342,
0.1250666827,
-0.0072050206,
-0.1599042565,
0.0766847953,
-0.0989362001,
-0.1071701422,
-0.1015126258,
0.1909555197,
0.1383956522,
0.0687802881,
-0.0787462592,
0.1001253128,
0.0301095266,
-0.1907967329,
0.0285083465,
-0.0251340643,
0.3009052575,
0.2265716493,
0.0618353859,
0.0241579451,
-0.0533063561,
-0.0746176541,
-0.1121771634,
-0.0414069779,
-0.0779633373,
0.3595579267,
-0.3970216513,
-0.0275719091,
0.2810699046,
0.4986273944,
0.3485303819,
-0.3341703117,
0.1404316574,
0.0982498676,
0.2008362114,
-0.2418049574,
-0.1320367157,
0.1866643131,
-0.03183892,
0.0309767723,
0.1233273819,
-0.0581409968,
0.0505557656,
-0.2328443825,
0.0567092076,
0.5290331841,
0.092461139,
0.2249318361,
0.1308489442,
-0.0185667872,
0.0669222027,
0.065001063,
0.036055088,
0.1229092479,
0.2920597792,
-0.3495813906,
0.1462304294,
-0.0567595102,
0.0684006065,
-0.1147468239,
-0.6289653182,
0.3336821795,
0.1689160168,
-0.319177568,
0.0878434479,
-0.2449119538,
0.4515691698,
-0.2186648995,
0.051713638,
-0.2908118069,
0.3248184919,
0.0535501838,
-0.0619033799,
0.1166534349,
-0.261392802,
-0.1222895533,
-0.0241961181,
0.0592861138,
-0.3378444314,
0.2547754049,
0.1873701811,
-0.1702091843,
-0.2505170703,
-0.0514736958,
0.2003883421,
-0.0278916322,
-0.1070361361,
0.3322897255,
0.3139645457,
-0.107597068,
-0.0052597495,
0.2078180313,
0.5430833101,
0.3638230264,
0.0598819181,
0.2568229437,
0.1145389527,
-0.1374526769,
0.0676151365,
0.0322947577,
0.2886669338,
0.0836924016,
0.3812454939,
0.2170442939,
-0.1802069396,
0.1671675593,
-0.0198580548,
0.1490116268,
-0.2210002095,
0.3357276917,
-0.0727913976,
0.0364464447,
-0.3704915047,
0.0609769002,
-0.6276518106,
-0.07641083,
0.4593775272,
-0.0112022422,
0.0094914287,
-0.0697319135,
0.0808876231,
-0.1090030298,
0.7130910158,
0.3730812967,
0.408192724,
-0.4481307268,
-0.0922092497,
-0.5804844499,
0.0778251067,
-0.0238746237,
0.1688779593,
0.0909520239,
-0.1451890022,
0.022688454,
0.2757076919,
0.2652716041,
0.0849520564,
0.1511731446,
0.0965434611,
-0.1795461178,
-0.1153763533,
0.0229087658,
0.0601161867,
-0.0376164839,
-0.2377486825,
0.0560075864,
-0.5345260501,
-0.005566299,
-0.0041367859,
-0.0563897453,
-0.0108248517,
-0.0782609135,
0.3397464156,
0.0779526383,
0.7522107959,
0.0061271712,
-0.1257435977,
-0.3982895911,
-0.3299318552,
-0.1280595362,
0.1461878717,
-0.0317725241,
0.2351618856,
-0.1075726897,
-0.3375988901,
-0.3766065836,
0.1866865158,
0.0496851355,
-0.2255177498,
-0.1647087485,
0.0524487272,
0.0788071156,
0.0078811422,
0.1963617206,
0.0920484141,
-0.034826111,
0.3125104904,
-0.1061563641,
-0.3599562049,
0.6798820496,
-0.2259569168,
-0.0474054664,
-0.1042581424,
0.036588762,
0.0912000388,
0.0880401134,
-0.5794770718,
0.1991290748,
0.3769949973,
0.1134660766,
-0.4397309721,
0.2614186406,
-0.0718322992,
0.011539571,
0.0349880606,
0.1389213502,
0.0321028642,
-0.2739159465,
-0.0249954537,
-0.1567310691
] |
https://github.com/huggingface/datasets/issues/759 | (Load dataset failure) ConnectionError: Couldn’t reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py | Hi
I want to know if this problem has been solved because I encountered a similar issue. Thanks.
`train_data = datasets.load_dataset("xsum", `split="train")`
`ConnectionError:` Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/1.1.3/datasets/xsum/xsum.py` | Hey, I want to load the cnn-dailymail dataset for fine-tune.
I write the code like this
from datasets import load_dataset
test_dataset = load_dataset(“cnn_dailymail”, “3.0.0”, split=“train”)
And I got the following errors.
Traceback (most recent call last):
File “test.py”, line 7, in
test_dataset = load_dataset(“cnn_dailymail”, “3.0.0”, split=“test”)
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py”, line 589, in load_dataset
module_path, hash = prepare_module(
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py”, line 268, in prepare_module
local_path = cached_path(file_path, download_config=download_config)
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py”, line 300, in cached_path
output_path = get_from_cache(
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py”, line 475, in get_from_cache
raise ConnectionError(“Couldn’t reach {}”.format(url))
ConnectionError: Couldn’t reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py
How can I fix this ? | 26 | (Load dataset failure) ConnectionError: Couldn’t reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py
Hey, I want to load the cnn-dailymail dataset for fine-tune.
I write the code like this
from datasets import load_dataset
test_dataset = load_dataset(“cnn_dailymail”, “3.0.0”, split=“train”)
And I got the following errors.
Traceback (most recent call last):
File “test.py”, line 7, in
test_dataset = load_dataset(“cnn_dailymail”, “3.0.0”, split=“test”)
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py”, line 589, in load_dataset
module_path, hash = prepare_module(
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py”, line 268, in prepare_module
local_path = cached_path(file_path, download_config=download_config)
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py”, line 300, in cached_path
output_path = get_from_cache(
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py”, line 475, in get_from_cache
raise ConnectionError(“Couldn’t reach {}”.format(url))
ConnectionError: Couldn’t reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py
How can I fix this ?
Hi
I want to know if this problem has been solved because I encountered a similar issue. Thanks.
`train_data = datasets.load_dataset("xsum", `split="train")`
`ConnectionError:` Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/1.1.3/datasets/xsum/xsum.py` | [
-0.172620669,
-0.0845812187,
-0.097337462,
0.1288862675,
0.4222564995,
0.2019443661,
0.3426601887,
0.0621945783,
-0.0575584024,
0.0043577477,
-0.1423110664,
0.082496576,
-0.0660598949,
0.2489194274,
0.1123089641,
-0.1254213154,
-0.0808452815,
-0.1146303192,
-0.229117021,
0.0067147687,
-0.2098105103,
0.1440935433,
-0.2096494883,
0.0432116613,
-0.4213041067,
-0.1652374119,
0.0861221328,
0.3555387855,
-0.0301730614,
-0.2586031258,
0.3710349798,
0.0136735495,
0.0507147573,
0.4067727923,
-0.0001109412,
0.2821536958,
0.4214934707,
-0.0077435635,
-0.4700695574,
-0.4119874835,
0.0286167189,
-0.2524265051,
0.2036122084,
-0.1215822324,
-0.0896932855,
-0.0993359089,
-0.0485143661,
-0.2351500541,
0.4430736601,
0.4244680703,
0.2697090209,
0.2736965716,
0.3110576868,
-0.0948242247,
-0.3082552552,
-0.2242910713,
0.0436809883,
0.5262340903,
-0.3041550517,
-0.0550038517,
0.2369494438,
0.1852679998,
-0.1102641225,
0.0394288674,
0.1027928889,
0.0368393175,
-0.0811181813,
-0.3631625473,
0.0167238154,
0.0721938461,
0.2434539348,
-0.2260054797,
-0.4658712447,
-0.1638948619,
0.0304692015,
-0.3523119688,
0.2059643418,
0.0724936426,
-0.1310379803,
0.1562265456,
-0.4081345201,
-0.1662251204,
-0.2331793755,
0.4767996669,
-0.083470799,
-0.0691656694,
-0.101345323,
0.1568792164,
0.2081463337,
-0.0147653595,
0.2456073761,
0.016396109,
0.3304593265,
0.2135432512,
-0.4810214937,
0.115841046,
0.0163755454,
0.1395891607,
0.1358591467,
0.2361457795,
0.0839774981,
-0.0570866652,
-0.1238576397,
0.0851526707,
0.0606347583,
0.2453830987,
0.0089368653,
0.1387268603,
0.1872472018,
0.3058449328,
-0.0122887194,
0.0348716266,
-0.1371919364,
-0.2628457844,
-0.0847604647,
0.126672402,
0.4672964811,
-0.0668150559,
-0.1457814574,
0.2286660969,
-0.2497208565,
-0.0773124993,
0.1255283654,
0.5078195333,
-0.2459856421,
0.1030794457,
-0.0911056176,
0.2443114519,
-0.0984815732,
0.0281401016,
-0.2782626748,
0.1583172828,
-0.1469017565,
0.1858578473,
0.420938611,
-0.4283128977,
0.3650211096,
-0.0827950537,
0.1328938305,
-0.2651251256,
0.0727619901,
-0.0731364787,
-0.2295966297,
0.331556648,
-0.0128486231,
0.1878603697,
0.3255274296,
0.2198993266,
-0.0086202025,
-0.0932958275,
-0.2572560906,
-0.535946846,
0.2843954861,
0.2346500158,
-0.1325824857,
-0.2377673686,
-0.1039847359,
-0.0701876134,
-0.0855134726,
0.0499908254,
-0.2254376709,
-0.0758889467,
-0.0001021028,
-0.1851737499,
0.4579846859,
0.4795652032,
-0.3562657237,
-0.1318827569,
-0.0889207944,
-0.1993903965,
0.1022752672,
0.2505486906,
-0.210256353,
0.2678247988,
-0.0300623775,
-0.2001928985,
0.3244517446,
-0.2567798495,
-0.4303715825,
0.2295985222,
-0.1415838897,
0.0772202238,
-0.1597949117,
-0.0198280495,
-0.230043605,
0.0976684242,
0.2224140912,
0.4544762969,
-0.2219422311,
-0.0075087696,
-0.0761365667,
-0.2887580991,
0.1971732229,
0.3495085835,
0.1905548424,
0.0837120265,
0.112290509,
-0.1229669005,
0.1389330029,
0.0792720094,
-0.1288710386,
0.2222593129,
-0.0730449557,
0.0600964539,
0.0057933368,
0.1931333244,
-0.4456617832,
0.2171621025,
0.2575124502,
0.2054390311,
-0.1591735333,
0.0718008503,
-0.331431061,
0.0644789934,
-0.3276310265,
-0.1017317027,
0.1681315452,
0.1100920662,
0.1149900183,
0.1487408578,
-0.3477539122,
0.5853899121,
-0.2807267904,
0.1544780433,
-0.3642602563,
0.3336732686,
-0.1378068477,
0.0208098479,
0.0532537624,
0.1948695928,
0.2270953059,
-0.2124796212,
-0.1230692938,
0.3350650668,
-0.097088173,
0.1396981478,
0.1005697399,
0.0206222981,
0.0887212381,
-0.2732222378,
-0.00759175,
0.1752091348,
-0.0484226905,
-0.0636551529,
0.2221709937,
0.2624589801,
-0.0824367926,
0.3350197971,
0.1653447896,
-0.0167162567,
0.1557746232,
0.082278274,
-0.0725755394,
-0.0804377198,
0.3488464057,
-0.2823638022,
0.4914529622,
-0.1779358238,
-0.1883531511,
-0.2142965347,
0.1073013842,
-0.2060755342,
0.036799673,
0.1807587743,
-0.1527463645,
-0.1959126294,
-0.1415820569,
0.2285893559,
0.3831124306,
0.1266690642,
0.017403964,
0.3330522478,
-0.1124231741,
-0.1255554557,
0.2139613032,
0.1642094105,
0.2534166574,
0.1256902516,
-0.1063406616,
0.0876750648,
-0.3335896134,
-0.2977260053,
0.0457497165,
0.2940999866,
-0.3505651951,
-0.0266051888,
-0.2348109484,
-0.1075838357,
0.0410014391,
-0.4958513081,
-0.1831308603,
-0.4478103518,
-0.1630500853,
-0.0245090537,
0.1001084,
0.1913428158,
-0.1383035332,
0.2042532116,
0.2681009769,
-0.175707683,
-0.1990249753,
-0.1413164735,
-0.1222065389,
0.0425471812,
0.1909828782,
-0.2497789711,
0.2615088224,
-0.1237754524,
-0.1931111813,
-0.1338965595,
-0.0432524011,
0.0448915139,
-0.0807590261,
0.4253887236,
0.041504696,
0.5178231001,
0.1474954933,
-0.052728191,
0.3786587715,
-0.0750784129,
0.0525867417,
0.0137069672,
-0.0126738157,
0.1713646352,
0.1054249257,
-0.4197514057,
-0.5957532525,
-0.3186042607,
0.1332791895,
-0.1404163688,
0.1600907445,
0.4751752615,
0.1390491426,
0.072823301,
-0.0277653225,
0.324347645,
-0.2952395082,
-0.5784929991,
0.3427507281,
-0.4262582958,
-0.3999854922,
0.0517778695,
0.2337380499,
0.158530876,
-0.136862874,
-0.4911378622,
-0.2912991345,
-0.02103181,
-0.2082523853,
-0.1408884674,
0.0342516676,
-0.0817869157,
-0.1706445217,
-0.0807221234,
0.0528548211,
-0.2153962702,
0.0207661893,
-0.189779833,
0.105955407,
0.0540589839,
0.5800536275,
-0.2069239616,
0.4104644656,
0.2627966404,
-0.0999404564,
0.4304723442,
-0.1017872393,
0.298207432,
-0.0337928832,
-0.5136098266,
-0.0390390866,
-0.0248872042,
-0.0493594557,
0.2467013597,
0.1183116287,
-0.1750104129,
-0.4023715258,
-0.182328701,
-0.4465425909,
-0.1094004735,
-0.0297657922,
0.1102360487,
0.0683863163,
0.0337714553,
0.1174005419,
-0.1562559158,
-0.0286272261,
0.0233905427,
0.3478068411,
-0.0388782658,
0.1180433929,
0.00673908,
-0.0921746194,
-0.4314181209,
0.3346542418,
-0.1744609177,
0.4283650517,
-0.1977281719,
0.0767521039,
-0.0671714842,
-0.0039035641,
0.6058325768,
-0.2651655972,
0.1158641279,
0.0965195447,
0.0104378015,
-0.3042712212,
-0.0939211249,
-0.0325784981,
0.2487047464,
0.1657652855,
0.4472000003,
-0.0785695389,
-0.1675606221,
0.3270871639,
0.2548516989,
-0.1390842795,
-0.3214133978,
-0.1426793486,
-0.3935247064,
-0.228112638,
-0.2242880315,
-0.3400648832,
0.3046939969,
-0.034138184,
-0.1692193151,
0.0657263771,
-0.0941390023,
0.1747616827,
0.0775278062,
0.1345155537,
0.094573915,
0.1138609648,
0.3893187642,
0.0514725931,
0.1969857365,
0.6876196265,
-0.1747293621,
-0.2818041444,
0.0031070597,
0.2653587461,
0.1266304106,
0.2776091695,
-0.2134698629,
-0.1107278019,
0.1917883605,
0.1974568665,
-0.0059068166,
0.2809211612,
0.3785069585,
0.0910989195,
-0.5953508019,
-0.5943182707,
0.4862523973,
-0.094910495,
0.1161979437,
0.1835696846,
-0.1201062351,
-0.1307160109,
0.1753081977,
-0.1871679127,
0.7539359927,
-0.0516214855,
0.0220215861,
0.2660263777,
0.2764646709,
0.4896036983,
-0.314195931,
0.0171410255,
-0.2213474661,
-0.3019836545,
-0.0965612903,
-0.1128649861,
0.1232143044,
0.2790020704,
0.0411607102,
0.4529606104,
-0.139798671,
-0.0076719038,
0.1203011498,
0.2758706212,
-0.0123657612,
-0.0990978852,
-0.6099659801,
0.2349268943,
-0.1152765751,
0.2859084308,
-0.1456052661,
-0.0266548041,
0.0189347193,
-0.2011069655,
-0.1252482682,
0.11030747,
-0.5258551836,
0.3352455199,
-0.110322386,
-0.192140311,
-0.2348800898,
0.1402756274,
0.2428162843,
0.020909287,
-0.1805031896,
-0.0164312385,
-0.1787301004,
-0.2422133237,
-0.1114929393,
0.0066053718,
0.33495754,
-0.1443487406,
-0.2299135029,
0.096463345,
-0.1250464022,
-0.3004517853,
0.1181725562,
-0.070910953,
-0.1080979407,
-0.1321868747,
-0.2444407493,
-0.1845483333,
0.0862775445,
-0.1746639609,
0.1367530823,
0.0688007474,
-0.0828411207,
0.1016881764,
0.149476245,
-0.2983341813,
-0.1130416319,
0.3407583833,
-0.2677853405,
-0.2979258001,
0.4692344368,
0.35197258,
-0.1586271673,
-0.1613220274,
0.1176546663,
0.2354240268,
-0.2757169008,
0.0287931785,
0.1620016843,
0.3008444905,
-0.0093473271,
0.3109228313,
0.3056403399,
0.1008466706,
0.0073338524,
-0.720699966,
-0.3249889016,
0.1946193278,
0.127166912,
0.2861981392,
0.1761255562,
0.1147450954,
0.0217655599,
-0.1419667304,
-0.3108201027,
0.0563896522,
-0.1930017024,
-0.2246219218,
0.2044874281,
-0.1960637718,
0.5058367252,
0.096174702,
0.2353151888,
-0.1862322092,
-0.2238083035,
-0.2522973716,
0.0125974342,
0.1250666827,
-0.0072050206,
-0.1599042565,
0.0766847953,
-0.0989362001,
-0.1071701422,
-0.1015126258,
0.1909555197,
0.1383956522,
0.0687802881,
-0.0787462592,
0.1001253128,
0.0301095266,
-0.1907967329,
0.0285083465,
-0.0251340643,
0.3009052575,
0.2265716493,
0.0618353859,
0.0241579451,
-0.0533063561,
-0.0746176541,
-0.1121771634,
-0.0414069779,
-0.0779633373,
0.3595579267,
-0.3970216513,
-0.0275719091,
0.2810699046,
0.4986273944,
0.3485303819,
-0.3341703117,
0.1404316574,
0.0982498676,
0.2008362114,
-0.2418049574,
-0.1320367157,
0.1866643131,
-0.03183892,
0.0309767723,
0.1233273819,
-0.0581409968,
0.0505557656,
-0.2328443825,
0.0567092076,
0.5290331841,
0.092461139,
0.2249318361,
0.1308489442,
-0.0185667872,
0.0669222027,
0.065001063,
0.036055088,
0.1229092479,
0.2920597792,
-0.3495813906,
0.1462304294,
-0.0567595102,
0.0684006065,
-0.1147468239,
-0.6289653182,
0.3336821795,
0.1689160168,
-0.319177568,
0.0878434479,
-0.2449119538,
0.4515691698,
-0.2186648995,
0.051713638,
-0.2908118069,
0.3248184919,
0.0535501838,
-0.0619033799,
0.1166534349,
-0.261392802,
-0.1222895533,
-0.0241961181,
0.0592861138,
-0.3378444314,
0.2547754049,
0.1873701811,
-0.1702091843,
-0.2505170703,
-0.0514736958,
0.2003883421,
-0.0278916322,
-0.1070361361,
0.3322897255,
0.3139645457,
-0.107597068,
-0.0052597495,
0.2078180313,
0.5430833101,
0.3638230264,
0.0598819181,
0.2568229437,
0.1145389527,
-0.1374526769,
0.0676151365,
0.0322947577,
0.2886669338,
0.0836924016,
0.3812454939,
0.2170442939,
-0.1802069396,
0.1671675593,
-0.0198580548,
0.1490116268,
-0.2210002095,
0.3357276917,
-0.0727913976,
0.0364464447,
-0.3704915047,
0.0609769002,
-0.6276518106,
-0.07641083,
0.4593775272,
-0.0112022422,
0.0094914287,
-0.0697319135,
0.0808876231,
-0.1090030298,
0.7130910158,
0.3730812967,
0.408192724,
-0.4481307268,
-0.0922092497,
-0.5804844499,
0.0778251067,
-0.0238746237,
0.1688779593,
0.0909520239,
-0.1451890022,
0.022688454,
0.2757076919,
0.2652716041,
0.0849520564,
0.1511731446,
0.0965434611,
-0.1795461178,
-0.1153763533,
0.0229087658,
0.0601161867,
-0.0376164839,
-0.2377486825,
0.0560075864,
-0.5345260501,
-0.005566299,
-0.0041367859,
-0.0563897453,
-0.0108248517,
-0.0782609135,
0.3397464156,
0.0779526383,
0.7522107959,
0.0061271712,
-0.1257435977,
-0.3982895911,
-0.3299318552,
-0.1280595362,
0.1461878717,
-0.0317725241,
0.2351618856,
-0.1075726897,
-0.3375988901,
-0.3766065836,
0.1866865158,
0.0496851355,
-0.2255177498,
-0.1647087485,
0.0524487272,
0.0788071156,
0.0078811422,
0.1963617206,
0.0920484141,
-0.034826111,
0.3125104904,
-0.1061563641,
-0.3599562049,
0.6798820496,
-0.2259569168,
-0.0474054664,
-0.1042581424,
0.036588762,
0.0912000388,
0.0880401134,
-0.5794770718,
0.1991290748,
0.3769949973,
0.1134660766,
-0.4397309721,
0.2614186406,
-0.0718322992,
0.011539571,
0.0349880606,
0.1389213502,
0.0321028642,
-0.2739159465,
-0.0249954537,
-0.1567310691
] |
https://github.com/huggingface/datasets/issues/759 | (Load dataset failure) ConnectionError: Couldn’t reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py | Hi @smile0925 ! Do you have an internet connection ? Are you using some kind of proxy that may block the access to this file ?
Otherwise you can try to update `datasets` since we introduced retries for http requests in the 1.2.0 version
```
pip install --upgrade datasets
```
Let me know if that helps. | Hey, I want to load the cnn-dailymail dataset for fine-tune.
I write the code like this
from datasets import load_dataset
test_dataset = load_dataset(“cnn_dailymail”, “3.0.0”, split=“train”)
And I got the following errors.
Traceback (most recent call last):
File “test.py”, line 7, in
test_dataset = load_dataset(“cnn_dailymail”, “3.0.0”, split=“test”)
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py”, line 589, in load_dataset
module_path, hash = prepare_module(
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py”, line 268, in prepare_module
local_path = cached_path(file_path, download_config=download_config)
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py”, line 300, in cached_path
output_path = get_from_cache(
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py”, line 475, in get_from_cache
raise ConnectionError(“Couldn’t reach {}”.format(url))
ConnectionError: Couldn’t reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py
How can I fix this ? | 56 | (Load dataset failure) ConnectionError: Couldn’t reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py
Hey, I want to load the cnn-dailymail dataset for fine-tune.
I write the code like this
from datasets import load_dataset
test_dataset = load_dataset(“cnn_dailymail”, “3.0.0”, split=“train”)
And I got the following errors.
Traceback (most recent call last):
File “test.py”, line 7, in
test_dataset = load_dataset(“cnn_dailymail”, “3.0.0”, split=“test”)
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py”, line 589, in load_dataset
module_path, hash = prepare_module(
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py”, line 268, in prepare_module
local_path = cached_path(file_path, download_config=download_config)
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py”, line 300, in cached_path
output_path = get_from_cache(
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py”, line 475, in get_from_cache
raise ConnectionError(“Couldn’t reach {}”.format(url))
ConnectionError: Couldn’t reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py
How can I fix this ?
Hi @smile0925 ! Do you have an internet connection ? Are you using some kind of proxy that may block the access to this file ?
Otherwise you can try to update `datasets` since we introduced retries for http requests in the 1.2.0 version
```
pip install --upgrade datasets
```
Let me know if that helps. | [
-0.172620669,
-0.0845812187,
-0.097337462,
0.1288862675,
0.4222564995,
0.2019443661,
0.3426601887,
0.0621945783,
-0.0575584024,
0.0043577477,
-0.1423110664,
0.082496576,
-0.0660598949,
0.2489194274,
0.1123089641,
-0.1254213154,
-0.0808452815,
-0.1146303192,
-0.229117021,
0.0067147687,
-0.2098105103,
0.1440935433,
-0.2096494883,
0.0432116613,
-0.4213041067,
-0.1652374119,
0.0861221328,
0.3555387855,
-0.0301730614,
-0.2586031258,
0.3710349798,
0.0136735495,
0.0507147573,
0.4067727923,
-0.0001109412,
0.2821536958,
0.4214934707,
-0.0077435635,
-0.4700695574,
-0.4119874835,
0.0286167189,
-0.2524265051,
0.2036122084,
-0.1215822324,
-0.0896932855,
-0.0993359089,
-0.0485143661,
-0.2351500541,
0.4430736601,
0.4244680703,
0.2697090209,
0.2736965716,
0.3110576868,
-0.0948242247,
-0.3082552552,
-0.2242910713,
0.0436809883,
0.5262340903,
-0.3041550517,
-0.0550038517,
0.2369494438,
0.1852679998,
-0.1102641225,
0.0394288674,
0.1027928889,
0.0368393175,
-0.0811181813,
-0.3631625473,
0.0167238154,
0.0721938461,
0.2434539348,
-0.2260054797,
-0.4658712447,
-0.1638948619,
0.0304692015,
-0.3523119688,
0.2059643418,
0.0724936426,
-0.1310379803,
0.1562265456,
-0.4081345201,
-0.1662251204,
-0.2331793755,
0.4767996669,
-0.083470799,
-0.0691656694,
-0.101345323,
0.1568792164,
0.2081463337,
-0.0147653595,
0.2456073761,
0.016396109,
0.3304593265,
0.2135432512,
-0.4810214937,
0.115841046,
0.0163755454,
0.1395891607,
0.1358591467,
0.2361457795,
0.0839774981,
-0.0570866652,
-0.1238576397,
0.0851526707,
0.0606347583,
0.2453830987,
0.0089368653,
0.1387268603,
0.1872472018,
0.3058449328,
-0.0122887194,
0.0348716266,
-0.1371919364,
-0.2628457844,
-0.0847604647,
0.126672402,
0.4672964811,
-0.0668150559,
-0.1457814574,
0.2286660969,
-0.2497208565,
-0.0773124993,
0.1255283654,
0.5078195333,
-0.2459856421,
0.1030794457,
-0.0911056176,
0.2443114519,
-0.0984815732,
0.0281401016,
-0.2782626748,
0.1583172828,
-0.1469017565,
0.1858578473,
0.420938611,
-0.4283128977,
0.3650211096,
-0.0827950537,
0.1328938305,
-0.2651251256,
0.0727619901,
-0.0731364787,
-0.2295966297,
0.331556648,
-0.0128486231,
0.1878603697,
0.3255274296,
0.2198993266,
-0.0086202025,
-0.0932958275,
-0.2572560906,
-0.535946846,
0.2843954861,
0.2346500158,
-0.1325824857,
-0.2377673686,
-0.1039847359,
-0.0701876134,
-0.0855134726,
0.0499908254,
-0.2254376709,
-0.0758889467,
-0.0001021028,
-0.1851737499,
0.4579846859,
0.4795652032,
-0.3562657237,
-0.1318827569,
-0.0889207944,
-0.1993903965,
0.1022752672,
0.2505486906,
-0.210256353,
0.2678247988,
-0.0300623775,
-0.2001928985,
0.3244517446,
-0.2567798495,
-0.4303715825,
0.2295985222,
-0.1415838897,
0.0772202238,
-0.1597949117,
-0.0198280495,
-0.230043605,
0.0976684242,
0.2224140912,
0.4544762969,
-0.2219422311,
-0.0075087696,
-0.0761365667,
-0.2887580991,
0.1971732229,
0.3495085835,
0.1905548424,
0.0837120265,
0.112290509,
-0.1229669005,
0.1389330029,
0.0792720094,
-0.1288710386,
0.2222593129,
-0.0730449557,
0.0600964539,
0.0057933368,
0.1931333244,
-0.4456617832,
0.2171621025,
0.2575124502,
0.2054390311,
-0.1591735333,
0.0718008503,
-0.331431061,
0.0644789934,
-0.3276310265,
-0.1017317027,
0.1681315452,
0.1100920662,
0.1149900183,
0.1487408578,
-0.3477539122,
0.5853899121,
-0.2807267904,
0.1544780433,
-0.3642602563,
0.3336732686,
-0.1378068477,
0.0208098479,
0.0532537624,
0.1948695928,
0.2270953059,
-0.2124796212,
-0.1230692938,
0.3350650668,
-0.097088173,
0.1396981478,
0.1005697399,
0.0206222981,
0.0887212381,
-0.2732222378,
-0.00759175,
0.1752091348,
-0.0484226905,
-0.0636551529,
0.2221709937,
0.2624589801,
-0.0824367926,
0.3350197971,
0.1653447896,
-0.0167162567,
0.1557746232,
0.082278274,
-0.0725755394,
-0.0804377198,
0.3488464057,
-0.2823638022,
0.4914529622,
-0.1779358238,
-0.1883531511,
-0.2142965347,
0.1073013842,
-0.2060755342,
0.036799673,
0.1807587743,
-0.1527463645,
-0.1959126294,
-0.1415820569,
0.2285893559,
0.3831124306,
0.1266690642,
0.017403964,
0.3330522478,
-0.1124231741,
-0.1255554557,
0.2139613032,
0.1642094105,
0.2534166574,
0.1256902516,
-0.1063406616,
0.0876750648,
-0.3335896134,
-0.2977260053,
0.0457497165,
0.2940999866,
-0.3505651951,
-0.0266051888,
-0.2348109484,
-0.1075838357,
0.0410014391,
-0.4958513081,
-0.1831308603,
-0.4478103518,
-0.1630500853,
-0.0245090537,
0.1001084,
0.1913428158,
-0.1383035332,
0.2042532116,
0.2681009769,
-0.175707683,
-0.1990249753,
-0.1413164735,
-0.1222065389,
0.0425471812,
0.1909828782,
-0.2497789711,
0.2615088224,
-0.1237754524,
-0.1931111813,
-0.1338965595,
-0.0432524011,
0.0448915139,
-0.0807590261,
0.4253887236,
0.041504696,
0.5178231001,
0.1474954933,
-0.052728191,
0.3786587715,
-0.0750784129,
0.0525867417,
0.0137069672,
-0.0126738157,
0.1713646352,
0.1054249257,
-0.4197514057,
-0.5957532525,
-0.3186042607,
0.1332791895,
-0.1404163688,
0.1600907445,
0.4751752615,
0.1390491426,
0.072823301,
-0.0277653225,
0.324347645,
-0.2952395082,
-0.5784929991,
0.3427507281,
-0.4262582958,
-0.3999854922,
0.0517778695,
0.2337380499,
0.158530876,
-0.136862874,
-0.4911378622,
-0.2912991345,
-0.02103181,
-0.2082523853,
-0.1408884674,
0.0342516676,
-0.0817869157,
-0.1706445217,
-0.0807221234,
0.0528548211,
-0.2153962702,
0.0207661893,
-0.189779833,
0.105955407,
0.0540589839,
0.5800536275,
-0.2069239616,
0.4104644656,
0.2627966404,
-0.0999404564,
0.4304723442,
-0.1017872393,
0.298207432,
-0.0337928832,
-0.5136098266,
-0.0390390866,
-0.0248872042,
-0.0493594557,
0.2467013597,
0.1183116287,
-0.1750104129,
-0.4023715258,
-0.182328701,
-0.4465425909,
-0.1094004735,
-0.0297657922,
0.1102360487,
0.0683863163,
0.0337714553,
0.1174005419,
-0.1562559158,
-0.0286272261,
0.0233905427,
0.3478068411,
-0.0388782658,
0.1180433929,
0.00673908,
-0.0921746194,
-0.4314181209,
0.3346542418,
-0.1744609177,
0.4283650517,
-0.1977281719,
0.0767521039,
-0.0671714842,
-0.0039035641,
0.6058325768,
-0.2651655972,
0.1158641279,
0.0965195447,
0.0104378015,
-0.3042712212,
-0.0939211249,
-0.0325784981,
0.2487047464,
0.1657652855,
0.4472000003,
-0.0785695389,
-0.1675606221,
0.3270871639,
0.2548516989,
-0.1390842795,
-0.3214133978,
-0.1426793486,
-0.3935247064,
-0.228112638,
-0.2242880315,
-0.3400648832,
0.3046939969,
-0.034138184,
-0.1692193151,
0.0657263771,
-0.0941390023,
0.1747616827,
0.0775278062,
0.1345155537,
0.094573915,
0.1138609648,
0.3893187642,
0.0514725931,
0.1969857365,
0.6876196265,
-0.1747293621,
-0.2818041444,
0.0031070597,
0.2653587461,
0.1266304106,
0.2776091695,
-0.2134698629,
-0.1107278019,
0.1917883605,
0.1974568665,
-0.0059068166,
0.2809211612,
0.3785069585,
0.0910989195,
-0.5953508019,
-0.5943182707,
0.4862523973,
-0.094910495,
0.1161979437,
0.1835696846,
-0.1201062351,
-0.1307160109,
0.1753081977,
-0.1871679127,
0.7539359927,
-0.0516214855,
0.0220215861,
0.2660263777,
0.2764646709,
0.4896036983,
-0.314195931,
0.0171410255,
-0.2213474661,
-0.3019836545,
-0.0965612903,
-0.1128649861,
0.1232143044,
0.2790020704,
0.0411607102,
0.4529606104,
-0.139798671,
-0.0076719038,
0.1203011498,
0.2758706212,
-0.0123657612,
-0.0990978852,
-0.6099659801,
0.2349268943,
-0.1152765751,
0.2859084308,
-0.1456052661,
-0.0266548041,
0.0189347193,
-0.2011069655,
-0.1252482682,
0.11030747,
-0.5258551836,
0.3352455199,
-0.110322386,
-0.192140311,
-0.2348800898,
0.1402756274,
0.2428162843,
0.020909287,
-0.1805031896,
-0.0164312385,
-0.1787301004,
-0.2422133237,
-0.1114929393,
0.0066053718,
0.33495754,
-0.1443487406,
-0.2299135029,
0.096463345,
-0.1250464022,
-0.3004517853,
0.1181725562,
-0.070910953,
-0.1080979407,
-0.1321868747,
-0.2444407493,
-0.1845483333,
0.0862775445,
-0.1746639609,
0.1367530823,
0.0688007474,
-0.0828411207,
0.1016881764,
0.149476245,
-0.2983341813,
-0.1130416319,
0.3407583833,
-0.2677853405,
-0.2979258001,
0.4692344368,
0.35197258,
-0.1586271673,
-0.1613220274,
0.1176546663,
0.2354240268,
-0.2757169008,
0.0287931785,
0.1620016843,
0.3008444905,
-0.0093473271,
0.3109228313,
0.3056403399,
0.1008466706,
0.0073338524,
-0.720699966,
-0.3249889016,
0.1946193278,
0.127166912,
0.2861981392,
0.1761255562,
0.1147450954,
0.0217655599,
-0.1419667304,
-0.3108201027,
0.0563896522,
-0.1930017024,
-0.2246219218,
0.2044874281,
-0.1960637718,
0.5058367252,
0.096174702,
0.2353151888,
-0.1862322092,
-0.2238083035,
-0.2522973716,
0.0125974342,
0.1250666827,
-0.0072050206,
-0.1599042565,
0.0766847953,
-0.0989362001,
-0.1071701422,
-0.1015126258,
0.1909555197,
0.1383956522,
0.0687802881,
-0.0787462592,
0.1001253128,
0.0301095266,
-0.1907967329,
0.0285083465,
-0.0251340643,
0.3009052575,
0.2265716493,
0.0618353859,
0.0241579451,
-0.0533063561,
-0.0746176541,
-0.1121771634,
-0.0414069779,
-0.0779633373,
0.3595579267,
-0.3970216513,
-0.0275719091,
0.2810699046,
0.4986273944,
0.3485303819,
-0.3341703117,
0.1404316574,
0.0982498676,
0.2008362114,
-0.2418049574,
-0.1320367157,
0.1866643131,
-0.03183892,
0.0309767723,
0.1233273819,
-0.0581409968,
0.0505557656,
-0.2328443825,
0.0567092076,
0.5290331841,
0.092461139,
0.2249318361,
0.1308489442,
-0.0185667872,
0.0669222027,
0.065001063,
0.036055088,
0.1229092479,
0.2920597792,
-0.3495813906,
0.1462304294,
-0.0567595102,
0.0684006065,
-0.1147468239,
-0.6289653182,
0.3336821795,
0.1689160168,
-0.319177568,
0.0878434479,
-0.2449119538,
0.4515691698,
-0.2186648995,
0.051713638,
-0.2908118069,
0.3248184919,
0.0535501838,
-0.0619033799,
0.1166534349,
-0.261392802,
-0.1222895533,
-0.0241961181,
0.0592861138,
-0.3378444314,
0.2547754049,
0.1873701811,
-0.1702091843,
-0.2505170703,
-0.0514736958,
0.2003883421,
-0.0278916322,
-0.1070361361,
0.3322897255,
0.3139645457,
-0.107597068,
-0.0052597495,
0.2078180313,
0.5430833101,
0.3638230264,
0.0598819181,
0.2568229437,
0.1145389527,
-0.1374526769,
0.0676151365,
0.0322947577,
0.2886669338,
0.0836924016,
0.3812454939,
0.2170442939,
-0.1802069396,
0.1671675593,
-0.0198580548,
0.1490116268,
-0.2210002095,
0.3357276917,
-0.0727913976,
0.0364464447,
-0.3704915047,
0.0609769002,
-0.6276518106,
-0.07641083,
0.4593775272,
-0.0112022422,
0.0094914287,
-0.0697319135,
0.0808876231,
-0.1090030298,
0.7130910158,
0.3730812967,
0.408192724,
-0.4481307268,
-0.0922092497,
-0.5804844499,
0.0778251067,
-0.0238746237,
0.1688779593,
0.0909520239,
-0.1451890022,
0.022688454,
0.2757076919,
0.2652716041,
0.0849520564,
0.1511731446,
0.0965434611,
-0.1795461178,
-0.1153763533,
0.0229087658,
0.0601161867,
-0.0376164839,
-0.2377486825,
0.0560075864,
-0.5345260501,
-0.005566299,
-0.0041367859,
-0.0563897453,
-0.0108248517,
-0.0782609135,
0.3397464156,
0.0779526383,
0.7522107959,
0.0061271712,
-0.1257435977,
-0.3982895911,
-0.3299318552,
-0.1280595362,
0.1461878717,
-0.0317725241,
0.2351618856,
-0.1075726897,
-0.3375988901,
-0.3766065836,
0.1866865158,
0.0496851355,
-0.2255177498,
-0.1647087485,
0.0524487272,
0.0788071156,
0.0078811422,
0.1963617206,
0.0920484141,
-0.034826111,
0.3125104904,
-0.1061563641,
-0.3599562049,
0.6798820496,
-0.2259569168,
-0.0474054664,
-0.1042581424,
0.036588762,
0.0912000388,
0.0880401134,
-0.5794770718,
0.1991290748,
0.3769949973,
0.1134660766,
-0.4397309721,
0.2614186406,
-0.0718322992,
0.011539571,
0.0349880606,
0.1389213502,
0.0321028642,
-0.2739159465,
-0.0249954537,
-0.1567310691
] |
https://github.com/huggingface/datasets/issues/759 | (Load dataset failure) ConnectionError: Couldn’t reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py | Hi @lhoestq
Oh, may be you are right. I find that my server uses some kind of proxy that block the access to this file.
![image](https://user-images.githubusercontent.com/46243662/106456211-2ca24180-64c8-11eb-831e-47e9b40e7da4.png)
| Hey, I want to load the cnn-dailymail dataset for fine-tune.
I write the code like this
from datasets import load_dataset
test_dataset = load_dataset(“cnn_dailymail”, “3.0.0”, split=“train”)
And I got the following errors.
Traceback (most recent call last):
File “test.py”, line 7, in
test_dataset = load_dataset(“cnn_dailymail”, “3.0.0”, split=“test”)
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py”, line 589, in load_dataset
module_path, hash = prepare_module(
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py”, line 268, in prepare_module
local_path = cached_path(file_path, download_config=download_config)
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py”, line 300, in cached_path
output_path = get_from_cache(
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py”, line 475, in get_from_cache
raise ConnectionError(“Couldn’t reach {}”.format(url))
ConnectionError: Couldn’t reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py
How can I fix this ? | 26 | (Load dataset failure) ConnectionError: Couldn’t reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py
Hey, I want to load the cnn-dailymail dataset for fine-tune.
I write the code like this
from datasets import load_dataset
test_dataset = load_dataset(“cnn_dailymail”, “3.0.0”, split=“train”)
And I got the following errors.
Traceback (most recent call last):
File “test.py”, line 7, in
test_dataset = load_dataset(“cnn_dailymail”, “3.0.0”, split=“test”)
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py”, line 589, in load_dataset
module_path, hash = prepare_module(
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py”, line 268, in prepare_module
local_path = cached_path(file_path, download_config=download_config)
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py”, line 300, in cached_path
output_path = get_from_cache(
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py”, line 475, in get_from_cache
raise ConnectionError(“Couldn’t reach {}”.format(url))
ConnectionError: Couldn’t reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py
How can I fix this ?
Hi @lhoestq
Oh, may be you are right. I find that my server uses some kind of proxy that block the access to this file.
![image](https://user-images.githubusercontent.com/46243662/106456211-2ca24180-64c8-11eb-831e-47e9b40e7da4.png)
| [
-0.172620669,
-0.0845812187,
-0.097337462,
0.1288862675,
0.4222564995,
0.2019443661,
0.3426601887,
0.0621945783,
-0.0575584024,
0.0043577477,
-0.1423110664,
0.082496576,
-0.0660598949,
0.2489194274,
0.1123089641,
-0.1254213154,
-0.0808452815,
-0.1146303192,
-0.229117021,
0.0067147687,
-0.2098105103,
0.1440935433,
-0.2096494883,
0.0432116613,
-0.4213041067,
-0.1652374119,
0.0861221328,
0.3555387855,
-0.0301730614,
-0.2586031258,
0.3710349798,
0.0136735495,
0.0507147573,
0.4067727923,
-0.0001109412,
0.2821536958,
0.4214934707,
-0.0077435635,
-0.4700695574,
-0.4119874835,
0.0286167189,
-0.2524265051,
0.2036122084,
-0.1215822324,
-0.0896932855,
-0.0993359089,
-0.0485143661,
-0.2351500541,
0.4430736601,
0.4244680703,
0.2697090209,
0.2736965716,
0.3110576868,
-0.0948242247,
-0.3082552552,
-0.2242910713,
0.0436809883,
0.5262340903,
-0.3041550517,
-0.0550038517,
0.2369494438,
0.1852679998,
-0.1102641225,
0.0394288674,
0.1027928889,
0.0368393175,
-0.0811181813,
-0.3631625473,
0.0167238154,
0.0721938461,
0.2434539348,
-0.2260054797,
-0.4658712447,
-0.1638948619,
0.0304692015,
-0.3523119688,
0.2059643418,
0.0724936426,
-0.1310379803,
0.1562265456,
-0.4081345201,
-0.1662251204,
-0.2331793755,
0.4767996669,
-0.083470799,
-0.0691656694,
-0.101345323,
0.1568792164,
0.2081463337,
-0.0147653595,
0.2456073761,
0.016396109,
0.3304593265,
0.2135432512,
-0.4810214937,
0.115841046,
0.0163755454,
0.1395891607,
0.1358591467,
0.2361457795,
0.0839774981,
-0.0570866652,
-0.1238576397,
0.0851526707,
0.0606347583,
0.2453830987,
0.0089368653,
0.1387268603,
0.1872472018,
0.3058449328,
-0.0122887194,
0.0348716266,
-0.1371919364,
-0.2628457844,
-0.0847604647,
0.126672402,
0.4672964811,
-0.0668150559,
-0.1457814574,
0.2286660969,
-0.2497208565,
-0.0773124993,
0.1255283654,
0.5078195333,
-0.2459856421,
0.1030794457,
-0.0911056176,
0.2443114519,
-0.0984815732,
0.0281401016,
-0.2782626748,
0.1583172828,
-0.1469017565,
0.1858578473,
0.420938611,
-0.4283128977,
0.3650211096,
-0.0827950537,
0.1328938305,
-0.2651251256,
0.0727619901,
-0.0731364787,
-0.2295966297,
0.331556648,
-0.0128486231,
0.1878603697,
0.3255274296,
0.2198993266,
-0.0086202025,
-0.0932958275,
-0.2572560906,
-0.535946846,
0.2843954861,
0.2346500158,
-0.1325824857,
-0.2377673686,
-0.1039847359,
-0.0701876134,
-0.0855134726,
0.0499908254,
-0.2254376709,
-0.0758889467,
-0.0001021028,
-0.1851737499,
0.4579846859,
0.4795652032,
-0.3562657237,
-0.1318827569,
-0.0889207944,
-0.1993903965,
0.1022752672,
0.2505486906,
-0.210256353,
0.2678247988,
-0.0300623775,
-0.2001928985,
0.3244517446,
-0.2567798495,
-0.4303715825,
0.2295985222,
-0.1415838897,
0.0772202238,
-0.1597949117,
-0.0198280495,
-0.230043605,
0.0976684242,
0.2224140912,
0.4544762969,
-0.2219422311,
-0.0075087696,
-0.0761365667,
-0.2887580991,
0.1971732229,
0.3495085835,
0.1905548424,
0.0837120265,
0.112290509,
-0.1229669005,
0.1389330029,
0.0792720094,
-0.1288710386,
0.2222593129,
-0.0730449557,
0.0600964539,
0.0057933368,
0.1931333244,
-0.4456617832,
0.2171621025,
0.2575124502,
0.2054390311,
-0.1591735333,
0.0718008503,
-0.331431061,
0.0644789934,
-0.3276310265,
-0.1017317027,
0.1681315452,
0.1100920662,
0.1149900183,
0.1487408578,
-0.3477539122,
0.5853899121,
-0.2807267904,
0.1544780433,
-0.3642602563,
0.3336732686,
-0.1378068477,
0.0208098479,
0.0532537624,
0.1948695928,
0.2270953059,
-0.2124796212,
-0.1230692938,
0.3350650668,
-0.097088173,
0.1396981478,
0.1005697399,
0.0206222981,
0.0887212381,
-0.2732222378,
-0.00759175,
0.1752091348,
-0.0484226905,
-0.0636551529,
0.2221709937,
0.2624589801,
-0.0824367926,
0.3350197971,
0.1653447896,
-0.0167162567,
0.1557746232,
0.082278274,
-0.0725755394,
-0.0804377198,
0.3488464057,
-0.2823638022,
0.4914529622,
-0.1779358238,
-0.1883531511,
-0.2142965347,
0.1073013842,
-0.2060755342,
0.036799673,
0.1807587743,
-0.1527463645,
-0.1959126294,
-0.1415820569,
0.2285893559,
0.3831124306,
0.1266690642,
0.017403964,
0.3330522478,
-0.1124231741,
-0.1255554557,
0.2139613032,
0.1642094105,
0.2534166574,
0.1256902516,
-0.1063406616,
0.0876750648,
-0.3335896134,
-0.2977260053,
0.0457497165,
0.2940999866,
-0.3505651951,
-0.0266051888,
-0.2348109484,
-0.1075838357,
0.0410014391,
-0.4958513081,
-0.1831308603,
-0.4478103518,
-0.1630500853,
-0.0245090537,
0.1001084,
0.1913428158,
-0.1383035332,
0.2042532116,
0.2681009769,
-0.175707683,
-0.1990249753,
-0.1413164735,
-0.1222065389,
0.0425471812,
0.1909828782,
-0.2497789711,
0.2615088224,
-0.1237754524,
-0.1931111813,
-0.1338965595,
-0.0432524011,
0.0448915139,
-0.0807590261,
0.4253887236,
0.041504696,
0.5178231001,
0.1474954933,
-0.052728191,
0.3786587715,
-0.0750784129,
0.0525867417,
0.0137069672,
-0.0126738157,
0.1713646352,
0.1054249257,
-0.4197514057,
-0.5957532525,
-0.3186042607,
0.1332791895,
-0.1404163688,
0.1600907445,
0.4751752615,
0.1390491426,
0.072823301,
-0.0277653225,
0.324347645,
-0.2952395082,
-0.5784929991,
0.3427507281,
-0.4262582958,
-0.3999854922,
0.0517778695,
0.2337380499,
0.158530876,
-0.136862874,
-0.4911378622,
-0.2912991345,
-0.02103181,
-0.2082523853,
-0.1408884674,
0.0342516676,
-0.0817869157,
-0.1706445217,
-0.0807221234,
0.0528548211,
-0.2153962702,
0.0207661893,
-0.189779833,
0.105955407,
0.0540589839,
0.5800536275,
-0.2069239616,
0.4104644656,
0.2627966404,
-0.0999404564,
0.4304723442,
-0.1017872393,
0.298207432,
-0.0337928832,
-0.5136098266,
-0.0390390866,
-0.0248872042,
-0.0493594557,
0.2467013597,
0.1183116287,
-0.1750104129,
-0.4023715258,
-0.182328701,
-0.4465425909,
-0.1094004735,
-0.0297657922,
0.1102360487,
0.0683863163,
0.0337714553,
0.1174005419,
-0.1562559158,
-0.0286272261,
0.0233905427,
0.3478068411,
-0.0388782658,
0.1180433929,
0.00673908,
-0.0921746194,
-0.4314181209,
0.3346542418,
-0.1744609177,
0.4283650517,
-0.1977281719,
0.0767521039,
-0.0671714842,
-0.0039035641,
0.6058325768,
-0.2651655972,
0.1158641279,
0.0965195447,
0.0104378015,
-0.3042712212,
-0.0939211249,
-0.0325784981,
0.2487047464,
0.1657652855,
0.4472000003,
-0.0785695389,
-0.1675606221,
0.3270871639,
0.2548516989,
-0.1390842795,
-0.3214133978,
-0.1426793486,
-0.3935247064,
-0.228112638,
-0.2242880315,
-0.3400648832,
0.3046939969,
-0.034138184,
-0.1692193151,
0.0657263771,
-0.0941390023,
0.1747616827,
0.0775278062,
0.1345155537,
0.094573915,
0.1138609648,
0.3893187642,
0.0514725931,
0.1969857365,
0.6876196265,
-0.1747293621,
-0.2818041444,
0.0031070597,
0.2653587461,
0.1266304106,
0.2776091695,
-0.2134698629,
-0.1107278019,
0.1917883605,
0.1974568665,
-0.0059068166,
0.2809211612,
0.3785069585,
0.0910989195,
-0.5953508019,
-0.5943182707,
0.4862523973,
-0.094910495,
0.1161979437,
0.1835696846,
-0.1201062351,
-0.1307160109,
0.1753081977,
-0.1871679127,
0.7539359927,
-0.0516214855,
0.0220215861,
0.2660263777,
0.2764646709,
0.4896036983,
-0.314195931,
0.0171410255,
-0.2213474661,
-0.3019836545,
-0.0965612903,
-0.1128649861,
0.1232143044,
0.2790020704,
0.0411607102,
0.4529606104,
-0.139798671,
-0.0076719038,
0.1203011498,
0.2758706212,
-0.0123657612,
-0.0990978852,
-0.6099659801,
0.2349268943,
-0.1152765751,
0.2859084308,
-0.1456052661,
-0.0266548041,
0.0189347193,
-0.2011069655,
-0.1252482682,
0.11030747,
-0.5258551836,
0.3352455199,
-0.110322386,
-0.192140311,
-0.2348800898,
0.1402756274,
0.2428162843,
0.020909287,
-0.1805031896,
-0.0164312385,
-0.1787301004,
-0.2422133237,
-0.1114929393,
0.0066053718,
0.33495754,
-0.1443487406,
-0.2299135029,
0.096463345,
-0.1250464022,
-0.3004517853,
0.1181725562,
-0.070910953,
-0.1080979407,
-0.1321868747,
-0.2444407493,
-0.1845483333,
0.0862775445,
-0.1746639609,
0.1367530823,
0.0688007474,
-0.0828411207,
0.1016881764,
0.149476245,
-0.2983341813,
-0.1130416319,
0.3407583833,
-0.2677853405,
-0.2979258001,
0.4692344368,
0.35197258,
-0.1586271673,
-0.1613220274,
0.1176546663,
0.2354240268,
-0.2757169008,
0.0287931785,
0.1620016843,
0.3008444905,
-0.0093473271,
0.3109228313,
0.3056403399,
0.1008466706,
0.0073338524,
-0.720699966,
-0.3249889016,
0.1946193278,
0.127166912,
0.2861981392,
0.1761255562,
0.1147450954,
0.0217655599,
-0.1419667304,
-0.3108201027,
0.0563896522,
-0.1930017024,
-0.2246219218,
0.2044874281,
-0.1960637718,
0.5058367252,
0.096174702,
0.2353151888,
-0.1862322092,
-0.2238083035,
-0.2522973716,
0.0125974342,
0.1250666827,
-0.0072050206,
-0.1599042565,
0.0766847953,
-0.0989362001,
-0.1071701422,
-0.1015126258,
0.1909555197,
0.1383956522,
0.0687802881,
-0.0787462592,
0.1001253128,
0.0301095266,
-0.1907967329,
0.0285083465,
-0.0251340643,
0.3009052575,
0.2265716493,
0.0618353859,
0.0241579451,
-0.0533063561,
-0.0746176541,
-0.1121771634,
-0.0414069779,
-0.0779633373,
0.3595579267,
-0.3970216513,
-0.0275719091,
0.2810699046,
0.4986273944,
0.3485303819,
-0.3341703117,
0.1404316574,
0.0982498676,
0.2008362114,
-0.2418049574,
-0.1320367157,
0.1866643131,
-0.03183892,
0.0309767723,
0.1233273819,
-0.0581409968,
0.0505557656,
-0.2328443825,
0.0567092076,
0.5290331841,
0.092461139,
0.2249318361,
0.1308489442,
-0.0185667872,
0.0669222027,
0.065001063,
0.036055088,
0.1229092479,
0.2920597792,
-0.3495813906,
0.1462304294,
-0.0567595102,
0.0684006065,
-0.1147468239,
-0.6289653182,
0.3336821795,
0.1689160168,
-0.319177568,
0.0878434479,
-0.2449119538,
0.4515691698,
-0.2186648995,
0.051713638,
-0.2908118069,
0.3248184919,
0.0535501838,
-0.0619033799,
0.1166534349,
-0.261392802,
-0.1222895533,
-0.0241961181,
0.0592861138,
-0.3378444314,
0.2547754049,
0.1873701811,
-0.1702091843,
-0.2505170703,
-0.0514736958,
0.2003883421,
-0.0278916322,
-0.1070361361,
0.3322897255,
0.3139645457,
-0.107597068,
-0.0052597495,
0.2078180313,
0.5430833101,
0.3638230264,
0.0598819181,
0.2568229437,
0.1145389527,
-0.1374526769,
0.0676151365,
0.0322947577,
0.2886669338,
0.0836924016,
0.3812454939,
0.2170442939,
-0.1802069396,
0.1671675593,
-0.0198580548,
0.1490116268,
-0.2210002095,
0.3357276917,
-0.0727913976,
0.0364464447,
-0.3704915047,
0.0609769002,
-0.6276518106,
-0.07641083,
0.4593775272,
-0.0112022422,
0.0094914287,
-0.0697319135,
0.0808876231,
-0.1090030298,
0.7130910158,
0.3730812967,
0.408192724,
-0.4481307268,
-0.0922092497,
-0.5804844499,
0.0778251067,
-0.0238746237,
0.1688779593,
0.0909520239,
-0.1451890022,
0.022688454,
0.2757076919,
0.2652716041,
0.0849520564,
0.1511731446,
0.0965434611,
-0.1795461178,
-0.1153763533,
0.0229087658,
0.0601161867,
-0.0376164839,
-0.2377486825,
0.0560075864,
-0.5345260501,
-0.005566299,
-0.0041367859,
-0.0563897453,
-0.0108248517,
-0.0782609135,
0.3397464156,
0.0779526383,
0.7522107959,
0.0061271712,
-0.1257435977,
-0.3982895911,
-0.3299318552,
-0.1280595362,
0.1461878717,
-0.0317725241,
0.2351618856,
-0.1075726897,
-0.3375988901,
-0.3766065836,
0.1866865158,
0.0496851355,
-0.2255177498,
-0.1647087485,
0.0524487272,
0.0788071156,
0.0078811422,
0.1963617206,
0.0920484141,
-0.034826111,
0.3125104904,
-0.1061563641,
-0.3599562049,
0.6798820496,
-0.2259569168,
-0.0474054664,
-0.1042581424,
0.036588762,
0.0912000388,
0.0880401134,
-0.5794770718,
0.1991290748,
0.3769949973,
0.1134660766,
-0.4397309721,
0.2614186406,
-0.0718322992,
0.011539571,
0.0349880606,
0.1389213502,
0.0321028642,
-0.2739159465,
-0.0249954537,
-0.1567310691
] |
https://github.com/huggingface/datasets/issues/759 | (Load dataset failure) ConnectionError: Couldn’t reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py | > Hi @lhoestq
> Oh, may be you are right. I find that my server uses some kind of proxy that block the access to this file.
> ![image](https://user-images.githubusercontent.com/46243662/106456211-2ca24180-64c8-11eb-831e-47e9b40e7da4.png)
I have the same problem, have you solved it? Many thanks | Hey, I want to load the cnn-dailymail dataset for fine-tune.
I write the code like this
from datasets import load_dataset
test_dataset = load_dataset(“cnn_dailymail”, “3.0.0”, split=“train”)
And I got the following errors.
Traceback (most recent call last):
File “test.py”, line 7, in
test_dataset = load_dataset(“cnn_dailymail”, “3.0.0”, split=“test”)
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py”, line 589, in load_dataset
module_path, hash = prepare_module(
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py”, line 268, in prepare_module
local_path = cached_path(file_path, download_config=download_config)
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py”, line 300, in cached_path
output_path = get_from_cache(
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py”, line 475, in get_from_cache
raise ConnectionError(“Couldn’t reach {}”.format(url))
ConnectionError: Couldn’t reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py
How can I fix this ? | 40 | (Load dataset failure) ConnectionError: Couldn’t reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py
Hey, I want to load the cnn-dailymail dataset for fine-tune.
I write the code like this
from datasets import load_dataset
test_dataset = load_dataset(“cnn_dailymail”, “3.0.0”, split=“train”)
And I got the following errors.
Traceback (most recent call last):
File “test.py”, line 7, in
test_dataset = load_dataset(“cnn_dailymail”, “3.0.0”, split=“test”)
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py”, line 589, in load_dataset
module_path, hash = prepare_module(
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py”, line 268, in prepare_module
local_path = cached_path(file_path, download_config=download_config)
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py”, line 300, in cached_path
output_path = get_from_cache(
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py”, line 475, in get_from_cache
raise ConnectionError(“Couldn’t reach {}”.format(url))
ConnectionError: Couldn’t reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py
How can I fix this ?
> Hi @lhoestq
> Oh, may be you are right. I find that my server uses some kind of proxy that block the access to this file.
> ![image](https://user-images.githubusercontent.com/46243662/106456211-2ca24180-64c8-11eb-831e-47e9b40e7da4.png)
I have the same problem, have you solved it? Many thanks | [
-0.172620669,
-0.0845812187,
-0.097337462,
0.1288862675,
0.4222564995,
0.2019443661,
0.3426601887,
0.0621945783,
-0.0575584024,
0.0043577477,
-0.1423110664,
0.082496576,
-0.0660598949,
0.2489194274,
0.1123089641,
-0.1254213154,
-0.0808452815,
-0.1146303192,
-0.229117021,
0.0067147687,
-0.2098105103,
0.1440935433,
-0.2096494883,
0.0432116613,
-0.4213041067,
-0.1652374119,
0.0861221328,
0.3555387855,
-0.0301730614,
-0.2586031258,
0.3710349798,
0.0136735495,
0.0507147573,
0.4067727923,
-0.0001109412,
0.2821536958,
0.4214934707,
-0.0077435635,
-0.4700695574,
-0.4119874835,
0.0286167189,
-0.2524265051,
0.2036122084,
-0.1215822324,
-0.0896932855,
-0.0993359089,
-0.0485143661,
-0.2351500541,
0.4430736601,
0.4244680703,
0.2697090209,
0.2736965716,
0.3110576868,
-0.0948242247,
-0.3082552552,
-0.2242910713,
0.0436809883,
0.5262340903,
-0.3041550517,
-0.0550038517,
0.2369494438,
0.1852679998,
-0.1102641225,
0.0394288674,
0.1027928889,
0.0368393175,
-0.0811181813,
-0.3631625473,
0.0167238154,
0.0721938461,
0.2434539348,
-0.2260054797,
-0.4658712447,
-0.1638948619,
0.0304692015,
-0.3523119688,
0.2059643418,
0.0724936426,
-0.1310379803,
0.1562265456,
-0.4081345201,
-0.1662251204,
-0.2331793755,
0.4767996669,
-0.083470799,
-0.0691656694,
-0.101345323,
0.1568792164,
0.2081463337,
-0.0147653595,
0.2456073761,
0.016396109,
0.3304593265,
0.2135432512,
-0.4810214937,
0.115841046,
0.0163755454,
0.1395891607,
0.1358591467,
0.2361457795,
0.0839774981,
-0.0570866652,
-0.1238576397,
0.0851526707,
0.0606347583,
0.2453830987,
0.0089368653,
0.1387268603,
0.1872472018,
0.3058449328,
-0.0122887194,
0.0348716266,
-0.1371919364,
-0.2628457844,
-0.0847604647,
0.126672402,
0.4672964811,
-0.0668150559,
-0.1457814574,
0.2286660969,
-0.2497208565,
-0.0773124993,
0.1255283654,
0.5078195333,
-0.2459856421,
0.1030794457,
-0.0911056176,
0.2443114519,
-0.0984815732,
0.0281401016,
-0.2782626748,
0.1583172828,
-0.1469017565,
0.1858578473,
0.420938611,
-0.4283128977,
0.3650211096,
-0.0827950537,
0.1328938305,
-0.2651251256,
0.0727619901,
-0.0731364787,
-0.2295966297,
0.331556648,
-0.0128486231,
0.1878603697,
0.3255274296,
0.2198993266,
-0.0086202025,
-0.0932958275,
-0.2572560906,
-0.535946846,
0.2843954861,
0.2346500158,
-0.1325824857,
-0.2377673686,
-0.1039847359,
-0.0701876134,
-0.0855134726,
0.0499908254,
-0.2254376709,
-0.0758889467,
-0.0001021028,
-0.1851737499,
0.4579846859,
0.4795652032,
-0.3562657237,
-0.1318827569,
-0.0889207944,
-0.1993903965,
0.1022752672,
0.2505486906,
-0.210256353,
0.2678247988,
-0.0300623775,
-0.2001928985,
0.3244517446,
-0.2567798495,
-0.4303715825,
0.2295985222,
-0.1415838897,
0.0772202238,
-0.1597949117,
-0.0198280495,
-0.230043605,
0.0976684242,
0.2224140912,
0.4544762969,
-0.2219422311,
-0.0075087696,
-0.0761365667,
-0.2887580991,
0.1971732229,
0.3495085835,
0.1905548424,
0.0837120265,
0.112290509,
-0.1229669005,
0.1389330029,
0.0792720094,
-0.1288710386,
0.2222593129,
-0.0730449557,
0.0600964539,
0.0057933368,
0.1931333244,
-0.4456617832,
0.2171621025,
0.2575124502,
0.2054390311,
-0.1591735333,
0.0718008503,
-0.331431061,
0.0644789934,
-0.3276310265,
-0.1017317027,
0.1681315452,
0.1100920662,
0.1149900183,
0.1487408578,
-0.3477539122,
0.5853899121,
-0.2807267904,
0.1544780433,
-0.3642602563,
0.3336732686,
-0.1378068477,
0.0208098479,
0.0532537624,
0.1948695928,
0.2270953059,
-0.2124796212,
-0.1230692938,
0.3350650668,
-0.097088173,
0.1396981478,
0.1005697399,
0.0206222981,
0.0887212381,
-0.2732222378,
-0.00759175,
0.1752091348,
-0.0484226905,
-0.0636551529,
0.2221709937,
0.2624589801,
-0.0824367926,
0.3350197971,
0.1653447896,
-0.0167162567,
0.1557746232,
0.082278274,
-0.0725755394,
-0.0804377198,
0.3488464057,
-0.2823638022,
0.4914529622,
-0.1779358238,
-0.1883531511,
-0.2142965347,
0.1073013842,
-0.2060755342,
0.036799673,
0.1807587743,
-0.1527463645,
-0.1959126294,
-0.1415820569,
0.2285893559,
0.3831124306,
0.1266690642,
0.017403964,
0.3330522478,
-0.1124231741,
-0.1255554557,
0.2139613032,
0.1642094105,
0.2534166574,
0.1256902516,
-0.1063406616,
0.0876750648,
-0.3335896134,
-0.2977260053,
0.0457497165,
0.2940999866,
-0.3505651951,
-0.0266051888,
-0.2348109484,
-0.1075838357,
0.0410014391,
-0.4958513081,
-0.1831308603,
-0.4478103518,
-0.1630500853,
-0.0245090537,
0.1001084,
0.1913428158,
-0.1383035332,
0.2042532116,
0.2681009769,
-0.175707683,
-0.1990249753,
-0.1413164735,
-0.1222065389,
0.0425471812,
0.1909828782,
-0.2497789711,
0.2615088224,
-0.1237754524,
-0.1931111813,
-0.1338965595,
-0.0432524011,
0.0448915139,
-0.0807590261,
0.4253887236,
0.041504696,
0.5178231001,
0.1474954933,
-0.052728191,
0.3786587715,
-0.0750784129,
0.0525867417,
0.0137069672,
-0.0126738157,
0.1713646352,
0.1054249257,
-0.4197514057,
-0.5957532525,
-0.3186042607,
0.1332791895,
-0.1404163688,
0.1600907445,
0.4751752615,
0.1390491426,
0.072823301,
-0.0277653225,
0.324347645,
-0.2952395082,
-0.5784929991,
0.3427507281,
-0.4262582958,
-0.3999854922,
0.0517778695,
0.2337380499,
0.158530876,
-0.136862874,
-0.4911378622,
-0.2912991345,
-0.02103181,
-0.2082523853,
-0.1408884674,
0.0342516676,
-0.0817869157,
-0.1706445217,
-0.0807221234,
0.0528548211,
-0.2153962702,
0.0207661893,
-0.189779833,
0.105955407,
0.0540589839,
0.5800536275,
-0.2069239616,
0.4104644656,
0.2627966404,
-0.0999404564,
0.4304723442,
-0.1017872393,
0.298207432,
-0.0337928832,
-0.5136098266,
-0.0390390866,
-0.0248872042,
-0.0493594557,
0.2467013597,
0.1183116287,
-0.1750104129,
-0.4023715258,
-0.182328701,
-0.4465425909,
-0.1094004735,
-0.0297657922,
0.1102360487,
0.0683863163,
0.0337714553,
0.1174005419,
-0.1562559158,
-0.0286272261,
0.0233905427,
0.3478068411,
-0.0388782658,
0.1180433929,
0.00673908,
-0.0921746194,
-0.4314181209,
0.3346542418,
-0.1744609177,
0.4283650517,
-0.1977281719,
0.0767521039,
-0.0671714842,
-0.0039035641,
0.6058325768,
-0.2651655972,
0.1158641279,
0.0965195447,
0.0104378015,
-0.3042712212,
-0.0939211249,
-0.0325784981,
0.2487047464,
0.1657652855,
0.4472000003,
-0.0785695389,
-0.1675606221,
0.3270871639,
0.2548516989,
-0.1390842795,
-0.3214133978,
-0.1426793486,
-0.3935247064,
-0.228112638,
-0.2242880315,
-0.3400648832,
0.3046939969,
-0.034138184,
-0.1692193151,
0.0657263771,
-0.0941390023,
0.1747616827,
0.0775278062,
0.1345155537,
0.094573915,
0.1138609648,
0.3893187642,
0.0514725931,
0.1969857365,
0.6876196265,
-0.1747293621,
-0.2818041444,
0.0031070597,
0.2653587461,
0.1266304106,
0.2776091695,
-0.2134698629,
-0.1107278019,
0.1917883605,
0.1974568665,
-0.0059068166,
0.2809211612,
0.3785069585,
0.0910989195,
-0.5953508019,
-0.5943182707,
0.4862523973,
-0.094910495,
0.1161979437,
0.1835696846,
-0.1201062351,
-0.1307160109,
0.1753081977,
-0.1871679127,
0.7539359927,
-0.0516214855,
0.0220215861,
0.2660263777,
0.2764646709,
0.4896036983,
-0.314195931,
0.0171410255,
-0.2213474661,
-0.3019836545,
-0.0965612903,
-0.1128649861,
0.1232143044,
0.2790020704,
0.0411607102,
0.4529606104,
-0.139798671,
-0.0076719038,
0.1203011498,
0.2758706212,
-0.0123657612,
-0.0990978852,
-0.6099659801,
0.2349268943,
-0.1152765751,
0.2859084308,
-0.1456052661,
-0.0266548041,
0.0189347193,
-0.2011069655,
-0.1252482682,
0.11030747,
-0.5258551836,
0.3352455199,
-0.110322386,
-0.192140311,
-0.2348800898,
0.1402756274,
0.2428162843,
0.020909287,
-0.1805031896,
-0.0164312385,
-0.1787301004,
-0.2422133237,
-0.1114929393,
0.0066053718,
0.33495754,
-0.1443487406,
-0.2299135029,
0.096463345,
-0.1250464022,
-0.3004517853,
0.1181725562,
-0.070910953,
-0.1080979407,
-0.1321868747,
-0.2444407493,
-0.1845483333,
0.0862775445,
-0.1746639609,
0.1367530823,
0.0688007474,
-0.0828411207,
0.1016881764,
0.149476245,
-0.2983341813,
-0.1130416319,
0.3407583833,
-0.2677853405,
-0.2979258001,
0.4692344368,
0.35197258,
-0.1586271673,
-0.1613220274,
0.1176546663,
0.2354240268,
-0.2757169008,
0.0287931785,
0.1620016843,
0.3008444905,
-0.0093473271,
0.3109228313,
0.3056403399,
0.1008466706,
0.0073338524,
-0.720699966,
-0.3249889016,
0.1946193278,
0.127166912,
0.2861981392,
0.1761255562,
0.1147450954,
0.0217655599,
-0.1419667304,
-0.3108201027,
0.0563896522,
-0.1930017024,
-0.2246219218,
0.2044874281,
-0.1960637718,
0.5058367252,
0.096174702,
0.2353151888,
-0.1862322092,
-0.2238083035,
-0.2522973716,
0.0125974342,
0.1250666827,
-0.0072050206,
-0.1599042565,
0.0766847953,
-0.0989362001,
-0.1071701422,
-0.1015126258,
0.1909555197,
0.1383956522,
0.0687802881,
-0.0787462592,
0.1001253128,
0.0301095266,
-0.1907967329,
0.0285083465,
-0.0251340643,
0.3009052575,
0.2265716493,
0.0618353859,
0.0241579451,
-0.0533063561,
-0.0746176541,
-0.1121771634,
-0.0414069779,
-0.0779633373,
0.3595579267,
-0.3970216513,
-0.0275719091,
0.2810699046,
0.4986273944,
0.3485303819,
-0.3341703117,
0.1404316574,
0.0982498676,
0.2008362114,
-0.2418049574,
-0.1320367157,
0.1866643131,
-0.03183892,
0.0309767723,
0.1233273819,
-0.0581409968,
0.0505557656,
-0.2328443825,
0.0567092076,
0.5290331841,
0.092461139,
0.2249318361,
0.1308489442,
-0.0185667872,
0.0669222027,
0.065001063,
0.036055088,
0.1229092479,
0.2920597792,
-0.3495813906,
0.1462304294,
-0.0567595102,
0.0684006065,
-0.1147468239,
-0.6289653182,
0.3336821795,
0.1689160168,
-0.319177568,
0.0878434479,
-0.2449119538,
0.4515691698,
-0.2186648995,
0.051713638,
-0.2908118069,
0.3248184919,
0.0535501838,
-0.0619033799,
0.1166534349,
-0.261392802,
-0.1222895533,
-0.0241961181,
0.0592861138,
-0.3378444314,
0.2547754049,
0.1873701811,
-0.1702091843,
-0.2505170703,
-0.0514736958,
0.2003883421,
-0.0278916322,
-0.1070361361,
0.3322897255,
0.3139645457,
-0.107597068,
-0.0052597495,
0.2078180313,
0.5430833101,
0.3638230264,
0.0598819181,
0.2568229437,
0.1145389527,
-0.1374526769,
0.0676151365,
0.0322947577,
0.2886669338,
0.0836924016,
0.3812454939,
0.2170442939,
-0.1802069396,
0.1671675593,
-0.0198580548,
0.1490116268,
-0.2210002095,
0.3357276917,
-0.0727913976,
0.0364464447,
-0.3704915047,
0.0609769002,
-0.6276518106,
-0.07641083,
0.4593775272,
-0.0112022422,
0.0094914287,
-0.0697319135,
0.0808876231,
-0.1090030298,
0.7130910158,
0.3730812967,
0.408192724,
-0.4481307268,
-0.0922092497,
-0.5804844499,
0.0778251067,
-0.0238746237,
0.1688779593,
0.0909520239,
-0.1451890022,
0.022688454,
0.2757076919,
0.2652716041,
0.0849520564,
0.1511731446,
0.0965434611,
-0.1795461178,
-0.1153763533,
0.0229087658,
0.0601161867,
-0.0376164839,
-0.2377486825,
0.0560075864,
-0.5345260501,
-0.005566299,
-0.0041367859,
-0.0563897453,
-0.0108248517,
-0.0782609135,
0.3397464156,
0.0779526383,
0.7522107959,
0.0061271712,
-0.1257435977,
-0.3982895911,
-0.3299318552,
-0.1280595362,
0.1461878717,
-0.0317725241,
0.2351618856,
-0.1075726897,
-0.3375988901,
-0.3766065836,
0.1866865158,
0.0496851355,
-0.2255177498,
-0.1647087485,
0.0524487272,
0.0788071156,
0.0078811422,
0.1963617206,
0.0920484141,
-0.034826111,
0.3125104904,
-0.1061563641,
-0.3599562049,
0.6798820496,
-0.2259569168,
-0.0474054664,
-0.1042581424,
0.036588762,
0.0912000388,
0.0880401134,
-0.5794770718,
0.1991290748,
0.3769949973,
0.1134660766,
-0.4397309721,
0.2614186406,
-0.0718322992,
0.011539571,
0.0349880606,
0.1389213502,
0.0321028642,
-0.2739159465,
-0.0249954537,
-0.1567310691
] |
https://github.com/huggingface/datasets/issues/759 | (Load dataset failure) ConnectionError: Couldn’t reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py | Hi @ZhengxiangShi
You can first try whether your network can access these files. I need to use VPN to access these files, so I download the files that cannot be accessed to the local in advance, and then use them in the code. Like this,
`train_data = datasets.load_dataset("xsum.py", split="train")` | Hey, I want to load the cnn-dailymail dataset for fine-tune.
I write the code like this
from datasets import load_dataset
test_dataset = load_dataset(“cnn_dailymail”, “3.0.0”, split=“train”)
And I got the following errors.
Traceback (most recent call last):
File “test.py”, line 7, in
test_dataset = load_dataset(“cnn_dailymail”, “3.0.0”, split=“test”)
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py”, line 589, in load_dataset
module_path, hash = prepare_module(
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py”, line 268, in prepare_module
local_path = cached_path(file_path, download_config=download_config)
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py”, line 300, in cached_path
output_path = get_from_cache(
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py”, line 475, in get_from_cache
raise ConnectionError(“Couldn’t reach {}”.format(url))
ConnectionError: Couldn’t reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py
How can I fix this ? | 49 | (Load dataset failure) ConnectionError: Couldn’t reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py
Hey, I want to load the cnn-dailymail dataset for fine-tune.
I write the code like this
from datasets import load_dataset
test_dataset = load_dataset(“cnn_dailymail”, “3.0.0”, split=“train”)
And I got the following errors.
Traceback (most recent call last):
File “test.py”, line 7, in
test_dataset = load_dataset(“cnn_dailymail”, “3.0.0”, split=“test”)
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py”, line 589, in load_dataset
module_path, hash = prepare_module(
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\load.py”, line 268, in prepare_module
local_path = cached_path(file_path, download_config=download_config)
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py”, line 300, in cached_path
output_path = get_from_cache(
File “C:\Users\666666\AppData\Local\Programs\Python\Python38\lib\site-packages\datasets\utils\file_utils.py”, line 475, in get_from_cache
raise ConnectionError(“Couldn’t reach {}”.format(url))
ConnectionError: Couldn’t reach https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/cnn_dailymail/cnn_dailymail.py
How can I fix this ?
Hi @ZhengxiangShi
You can first try whether your network can access these files. I need to use VPN to access these files, so I download the files that cannot be accessed to the local in advance, and then use them in the code. Like this,
`train_data = datasets.load_dataset("xsum.py", split="train")` | [
-0.172620669,
-0.0845812187,
-0.097337462,
0.1288862675,
0.4222564995,
0.2019443661,
0.3426601887,
0.0621945783,
-0.0575584024,
0.0043577477,
-0.1423110664,
0.082496576,
-0.0660598949,
0.2489194274,
0.1123089641,
-0.1254213154,
-0.0808452815,
-0.1146303192,
-0.229117021,
0.0067147687,
-0.2098105103,
0.1440935433,
-0.2096494883,
0.0432116613,
-0.4213041067,
-0.1652374119,
0.0861221328,
0.3555387855,
-0.0301730614,
-0.2586031258,
0.3710349798,
0.0136735495,
0.0507147573,
0.4067727923,
-0.0001109412,
0.2821536958,
0.4214934707,
-0.0077435635,
-0.4700695574,
-0.4119874835,
0.0286167189,
-0.2524265051,
0.2036122084,
-0.1215822324,
-0.0896932855,
-0.0993359089,
-0.0485143661,
-0.2351500541,
0.4430736601,
0.4244680703,
0.2697090209,
0.2736965716,
0.3110576868,
-0.0948242247,
-0.3082552552,
-0.2242910713,
0.0436809883,
0.5262340903,
-0.3041550517,
-0.0550038517,
0.2369494438,
0.1852679998,
-0.1102641225,
0.0394288674,
0.1027928889,
0.0368393175,
-0.0811181813,
-0.3631625473,
0.0167238154,
0.0721938461,
0.2434539348,
-0.2260054797,
-0.4658712447,
-0.1638948619,
0.0304692015,
-0.3523119688,
0.2059643418,
0.0724936426,
-0.1310379803,
0.1562265456,
-0.4081345201,
-0.1662251204,
-0.2331793755,
0.4767996669,
-0.083470799,
-0.0691656694,
-0.101345323,
0.1568792164,
0.2081463337,
-0.0147653595,
0.2456073761,
0.016396109,
0.3304593265,
0.2135432512,
-0.4810214937,
0.115841046,
0.0163755454,
0.1395891607,
0.1358591467,
0.2361457795,
0.0839774981,
-0.0570866652,
-0.1238576397,
0.0851526707,
0.0606347583,
0.2453830987,
0.0089368653,
0.1387268603,
0.1872472018,
0.3058449328,
-0.0122887194,
0.0348716266,
-0.1371919364,
-0.2628457844,
-0.0847604647,
0.126672402,
0.4672964811,
-0.0668150559,
-0.1457814574,
0.2286660969,
-0.2497208565,
-0.0773124993,
0.1255283654,
0.5078195333,
-0.2459856421,
0.1030794457,
-0.0911056176,
0.2443114519,
-0.0984815732,
0.0281401016,
-0.2782626748,
0.1583172828,
-0.1469017565,
0.1858578473,
0.420938611,
-0.4283128977,
0.3650211096,
-0.0827950537,
0.1328938305,
-0.2651251256,
0.0727619901,
-0.0731364787,
-0.2295966297,
0.331556648,
-0.0128486231,
0.1878603697,
0.3255274296,
0.2198993266,
-0.0086202025,
-0.0932958275,
-0.2572560906,
-0.535946846,
0.2843954861,
0.2346500158,
-0.1325824857,
-0.2377673686,
-0.1039847359,
-0.0701876134,
-0.0855134726,
0.0499908254,
-0.2254376709,
-0.0758889467,
-0.0001021028,
-0.1851737499,
0.4579846859,
0.4795652032,
-0.3562657237,
-0.1318827569,
-0.0889207944,
-0.1993903965,
0.1022752672,
0.2505486906,
-0.210256353,
0.2678247988,
-0.0300623775,
-0.2001928985,
0.3244517446,
-0.2567798495,
-0.4303715825,
0.2295985222,
-0.1415838897,
0.0772202238,
-0.1597949117,
-0.0198280495,
-0.230043605,
0.0976684242,
0.2224140912,
0.4544762969,
-0.2219422311,
-0.0075087696,
-0.0761365667,
-0.2887580991,
0.1971732229,
0.3495085835,
0.1905548424,
0.0837120265,
0.112290509,
-0.1229669005,
0.1389330029,
0.0792720094,
-0.1288710386,
0.2222593129,
-0.0730449557,
0.0600964539,
0.0057933368,
0.1931333244,
-0.4456617832,
0.2171621025,
0.2575124502,
0.2054390311,
-0.1591735333,
0.0718008503,
-0.331431061,
0.0644789934,
-0.3276310265,
-0.1017317027,
0.1681315452,
0.1100920662,
0.1149900183,
0.1487408578,
-0.3477539122,
0.5853899121,
-0.2807267904,
0.1544780433,
-0.3642602563,
0.3336732686,
-0.1378068477,
0.0208098479,
0.0532537624,
0.1948695928,
0.2270953059,
-0.2124796212,
-0.1230692938,
0.3350650668,
-0.097088173,
0.1396981478,
0.1005697399,
0.0206222981,
0.0887212381,
-0.2732222378,
-0.00759175,
0.1752091348,
-0.0484226905,
-0.0636551529,
0.2221709937,
0.2624589801,
-0.0824367926,
0.3350197971,
0.1653447896,
-0.0167162567,
0.1557746232,
0.082278274,
-0.0725755394,
-0.0804377198,
0.3488464057,
-0.2823638022,
0.4914529622,
-0.1779358238,
-0.1883531511,
-0.2142965347,
0.1073013842,
-0.2060755342,
0.036799673,
0.1807587743,
-0.1527463645,
-0.1959126294,
-0.1415820569,
0.2285893559,
0.3831124306,
0.1266690642,
0.017403964,
0.3330522478,
-0.1124231741,
-0.1255554557,
0.2139613032,
0.1642094105,
0.2534166574,
0.1256902516,
-0.1063406616,
0.0876750648,
-0.3335896134,
-0.2977260053,
0.0457497165,
0.2940999866,
-0.3505651951,
-0.0266051888,
-0.2348109484,
-0.1075838357,
0.0410014391,
-0.4958513081,
-0.1831308603,
-0.4478103518,
-0.1630500853,
-0.0245090537,
0.1001084,
0.1913428158,
-0.1383035332,
0.2042532116,
0.2681009769,
-0.175707683,
-0.1990249753,
-0.1413164735,
-0.1222065389,
0.0425471812,
0.1909828782,
-0.2497789711,
0.2615088224,
-0.1237754524,
-0.1931111813,
-0.1338965595,
-0.0432524011,
0.0448915139,
-0.0807590261,
0.4253887236,
0.041504696,
0.5178231001,
0.1474954933,
-0.052728191,
0.3786587715,
-0.0750784129,
0.0525867417,
0.0137069672,
-0.0126738157,
0.1713646352,
0.1054249257,
-0.4197514057,
-0.5957532525,
-0.3186042607,
0.1332791895,
-0.1404163688,
0.1600907445,
0.4751752615,
0.1390491426,
0.072823301,
-0.0277653225,
0.324347645,
-0.2952395082,
-0.5784929991,
0.3427507281,
-0.4262582958,
-0.3999854922,
0.0517778695,
0.2337380499,
0.158530876,
-0.136862874,
-0.4911378622,
-0.2912991345,
-0.02103181,
-0.2082523853,
-0.1408884674,
0.0342516676,
-0.0817869157,
-0.1706445217,
-0.0807221234,
0.0528548211,
-0.2153962702,
0.0207661893,
-0.189779833,
0.105955407,
0.0540589839,
0.5800536275,
-0.2069239616,
0.4104644656,
0.2627966404,
-0.0999404564,
0.4304723442,
-0.1017872393,
0.298207432,
-0.0337928832,
-0.5136098266,
-0.0390390866,
-0.0248872042,
-0.0493594557,
0.2467013597,
0.1183116287,
-0.1750104129,
-0.4023715258,
-0.182328701,
-0.4465425909,
-0.1094004735,
-0.0297657922,
0.1102360487,
0.0683863163,
0.0337714553,
0.1174005419,
-0.1562559158,
-0.0286272261,
0.0233905427,
0.3478068411,
-0.0388782658,
0.1180433929,
0.00673908,
-0.0921746194,
-0.4314181209,
0.3346542418,
-0.1744609177,
0.4283650517,
-0.1977281719,
0.0767521039,
-0.0671714842,
-0.0039035641,
0.6058325768,
-0.2651655972,
0.1158641279,
0.0965195447,
0.0104378015,
-0.3042712212,
-0.0939211249,
-0.0325784981,
0.2487047464,
0.1657652855,
0.4472000003,
-0.0785695389,
-0.1675606221,
0.3270871639,
0.2548516989,
-0.1390842795,
-0.3214133978,
-0.1426793486,
-0.3935247064,
-0.228112638,
-0.2242880315,
-0.3400648832,
0.3046939969,
-0.034138184,
-0.1692193151,
0.0657263771,
-0.0941390023,
0.1747616827,
0.0775278062,
0.1345155537,
0.094573915,
0.1138609648,
0.3893187642,
0.0514725931,
0.1969857365,
0.6876196265,
-0.1747293621,
-0.2818041444,
0.0031070597,
0.2653587461,
0.1266304106,
0.2776091695,
-0.2134698629,
-0.1107278019,
0.1917883605,
0.1974568665,
-0.0059068166,
0.2809211612,
0.3785069585,
0.0910989195,
-0.5953508019,
-0.5943182707,
0.4862523973,
-0.094910495,
0.1161979437,
0.1835696846,
-0.1201062351,
-0.1307160109,
0.1753081977,
-0.1871679127,
0.7539359927,
-0.0516214855,
0.0220215861,
0.2660263777,
0.2764646709,
0.4896036983,
-0.314195931,
0.0171410255,
-0.2213474661,
-0.3019836545,
-0.0965612903,
-0.1128649861,
0.1232143044,
0.2790020704,
0.0411607102,
0.4529606104,
-0.139798671,
-0.0076719038,
0.1203011498,
0.2758706212,
-0.0123657612,
-0.0990978852,
-0.6099659801,
0.2349268943,
-0.1152765751,
0.2859084308,
-0.1456052661,
-0.0266548041,
0.0189347193,
-0.2011069655,
-0.1252482682,
0.11030747,
-0.5258551836,
0.3352455199,
-0.110322386,
-0.192140311,
-0.2348800898,
0.1402756274,
0.2428162843,
0.020909287,
-0.1805031896,
-0.0164312385,
-0.1787301004,
-0.2422133237,
-0.1114929393,
0.0066053718,
0.33495754,
-0.1443487406,
-0.2299135029,
0.096463345,
-0.1250464022,
-0.3004517853,
0.1181725562,
-0.070910953,
-0.1080979407,
-0.1321868747,
-0.2444407493,
-0.1845483333,
0.0862775445,
-0.1746639609,
0.1367530823,
0.0688007474,
-0.0828411207,
0.1016881764,
0.149476245,
-0.2983341813,
-0.1130416319,
0.3407583833,
-0.2677853405,
-0.2979258001,
0.4692344368,
0.35197258,
-0.1586271673,
-0.1613220274,
0.1176546663,
0.2354240268,
-0.2757169008,
0.0287931785,
0.1620016843,
0.3008444905,
-0.0093473271,
0.3109228313,
0.3056403399,
0.1008466706,
0.0073338524,
-0.720699966,
-0.3249889016,
0.1946193278,
0.127166912,
0.2861981392,
0.1761255562,
0.1147450954,
0.0217655599,
-0.1419667304,
-0.3108201027,
0.0563896522,
-0.1930017024,
-0.2246219218,
0.2044874281,
-0.1960637718,
0.5058367252,
0.096174702,
0.2353151888,
-0.1862322092,
-0.2238083035,
-0.2522973716,
0.0125974342,
0.1250666827,
-0.0072050206,
-0.1599042565,
0.0766847953,
-0.0989362001,
-0.1071701422,
-0.1015126258,
0.1909555197,
0.1383956522,
0.0687802881,
-0.0787462592,
0.1001253128,
0.0301095266,
-0.1907967329,
0.0285083465,
-0.0251340643,
0.3009052575,
0.2265716493,
0.0618353859,
0.0241579451,
-0.0533063561,
-0.0746176541,
-0.1121771634,
-0.0414069779,
-0.0779633373,
0.3595579267,
-0.3970216513,
-0.0275719091,
0.2810699046,
0.4986273944,
0.3485303819,
-0.3341703117,
0.1404316574,
0.0982498676,
0.2008362114,
-0.2418049574,
-0.1320367157,
0.1866643131,
-0.03183892,
0.0309767723,
0.1233273819,
-0.0581409968,
0.0505557656,
-0.2328443825,
0.0567092076,
0.5290331841,
0.092461139,
0.2249318361,
0.1308489442,
-0.0185667872,
0.0669222027,
0.065001063,
0.036055088,
0.1229092479,
0.2920597792,
-0.3495813906,
0.1462304294,
-0.0567595102,
0.0684006065,
-0.1147468239,
-0.6289653182,
0.3336821795,
0.1689160168,
-0.319177568,
0.0878434479,
-0.2449119538,
0.4515691698,
-0.2186648995,
0.051713638,
-0.2908118069,
0.3248184919,
0.0535501838,
-0.0619033799,
0.1166534349,
-0.261392802,
-0.1222895533,
-0.0241961181,
0.0592861138,
-0.3378444314,
0.2547754049,
0.1873701811,
-0.1702091843,
-0.2505170703,
-0.0514736958,
0.2003883421,
-0.0278916322,
-0.1070361361,
0.3322897255,
0.3139645457,
-0.107597068,
-0.0052597495,
0.2078180313,
0.5430833101,
0.3638230264,
0.0598819181,
0.2568229437,
0.1145389527,
-0.1374526769,
0.0676151365,
0.0322947577,
0.2886669338,
0.0836924016,
0.3812454939,
0.2170442939,
-0.1802069396,
0.1671675593,
-0.0198580548,
0.1490116268,
-0.2210002095,
0.3357276917,
-0.0727913976,
0.0364464447,
-0.3704915047,
0.0609769002,
-0.6276518106,
-0.07641083,
0.4593775272,
-0.0112022422,
0.0094914287,
-0.0697319135,
0.0808876231,
-0.1090030298,
0.7130910158,
0.3730812967,
0.408192724,
-0.4481307268,
-0.0922092497,
-0.5804844499,
0.0778251067,
-0.0238746237,
0.1688779593,
0.0909520239,
-0.1451890022,
0.022688454,
0.2757076919,
0.2652716041,
0.0849520564,
0.1511731446,
0.0965434611,
-0.1795461178,
-0.1153763533,
0.0229087658,
0.0601161867,
-0.0376164839,
-0.2377486825,
0.0560075864,
-0.5345260501,
-0.005566299,
-0.0041367859,
-0.0563897453,
-0.0108248517,
-0.0782609135,
0.3397464156,
0.0779526383,
0.7522107959,
0.0061271712,
-0.1257435977,
-0.3982895911,
-0.3299318552,
-0.1280595362,
0.1461878717,
-0.0317725241,
0.2351618856,
-0.1075726897,
-0.3375988901,
-0.3766065836,
0.1866865158,
0.0496851355,
-0.2255177498,
-0.1647087485,
0.0524487272,
0.0788071156,
0.0078811422,
0.1963617206,
0.0920484141,
-0.034826111,
0.3125104904,
-0.1061563641,
-0.3599562049,
0.6798820496,
-0.2259569168,
-0.0474054664,
-0.1042581424,
0.036588762,
0.0912000388,
0.0880401134,
-0.5794770718,
0.1991290748,
0.3769949973,
0.1134660766,
-0.4397309721,
0.2614186406,
-0.0718322992,
0.011539571,
0.0349880606,
0.1389213502,
0.0321028642,
-0.2739159465,
-0.0249954537,
-0.1567310691
] |
https://github.com/huggingface/datasets/issues/758 | Process 0 very slow when using num_procs with map to tokenizer | Hi ! Thanks for reporting.
Is the distribution of text length of your data evenly distributed across your dataset ? I mean, could it be because the examples in the first part of your dataset are slower to process ?
Also could how many CPUs can you use for multiprocessing ?
```python
import multiprocessing
print(multiprocessing.cpu_count())
```
Which tokenizer are you using ? | <img width="721" alt="image" src="https://user-images.githubusercontent.com/17930170/97066109-776d0d00-15ed-11eb-8bba-bb4d2e0fcc33.png">
The code I am using is
```
dataset = load_dataset("text", data_files=[file_path], split='train')
dataset = dataset.map(lambda ex: tokenizer(ex["text"], add_special_tokens=True,
truncation=True, max_length=args.block_size), num_proc=8)
dataset.set_format(type='torch', columns=['input_ids'])
dataset.save_to_disk(file_path+'.arrow')
```
| 62 | Process 0 very slow when using num_procs with map to tokenizer
<img width="721" alt="image" src="https://user-images.githubusercontent.com/17930170/97066109-776d0d00-15ed-11eb-8bba-bb4d2e0fcc33.png">
The code I am using is
```
dataset = load_dataset("text", data_files=[file_path], split='train')
dataset = dataset.map(lambda ex: tokenizer(ex["text"], add_special_tokens=True,
truncation=True, max_length=args.block_size), num_proc=8)
dataset.set_format(type='torch', columns=['input_ids'])
dataset.save_to_disk(file_path+'.arrow')
```
Hi ! Thanks for reporting.
Is the distribution of text length of your data evenly distributed across your dataset ? I mean, could it be because the examples in the first part of your dataset are slower to process ?
Also could how many CPUs can you use for multiprocessing ?
```python
import multiprocessing
print(multiprocessing.cpu_count())
```
Which tokenizer are you using ? | [
-0.4953112602,
-0.5315654278,
-0.1695286036,
0.2302866429,
0.125616461,
-0.3297326565,
0.3093047738,
0.160646975,
-0.3321194649,
0.2106941342,
0.3402481675,
0.2400160879,
-0.1036698371,
-0.0406739414,
-0.5593128204,
0.0361173674,
-0.0464157574,
-0.0402567461,
0.5563800931,
-0.0004831329,
-0.1627462059,
0.1379325539,
-0.3582851291,
-0.082688272,
-0.6165251136,
-0.2573293149,
0.0004950687,
0.0575366504,
-0.0524367243,
-0.294913739,
-0.6529916525,
-0.0069849617,
0.0474833921,
0.3515734076,
-0.0001153085,
-0.133537069,
0.0726514012,
0.2212062329,
0.1563179791,
0.0101909041,
0.3781882823,
-0.4317015707,
-0.0839630514,
-0.3196579814,
0.1087614745,
0.0827161968,
0.1891490221,
-0.0064335912,
0.337762028,
0.3044477999,
0.2040828466,
0.2162095159,
-0.1863322854,
0.2537360489,
-0.2040133476,
0.2132376283,
0.0725450069,
-0.1697108001,
0.2893606722,
0.2883343399,
-0.0408061519,
0.2808980048,
-0.2223012149,
-0.0609902516,
0.0724741518,
-0.0260828361,
0.3007547855,
-0.6823168993,
0.3525351584,
0.1850751787,
0.0784427077,
0.1566150039,
-0.1315239072,
-0.3089891076,
-0.0853450745,
-0.5059006214,
-0.0867827982,
0.2549690604,
-0.2516716719,
-0.1617124528,
-0.4387649894,
0.2242857069,
0.0581688583,
-0.2230467349,
-0.2645808458,
0.2633951902,
0.1062758565,
0.2124120146,
0.0047160159,
-0.184131369,
-0.2799610496,
-0.2286386937,
0.2434159219,
0.152760148,
-0.1565138102,
0.0398825258,
-0.1100488901,
-0.2451605946,
-0.1466780901,
0.0842856765,
-0.3905347586,
0.4203824103,
0.05379593,
0.0610826798,
-0.0953724831,
-0.1121990532,
0.1583883911,
0.1098181605,
0.1482043266,
-0.213392213,
-0.2921490669,
-0.0550903268,
-0.0397291891,
-0.2578708529,
0.2200278938,
0.0208390206,
-0.2356413901,
-0.0229300037,
-0.2340060174,
-0.0849551558,
0.0402272344,
0.0965620503,
0.20335114,
0.2396940291,
0.049567081,
0.5489522219,
-0.2180415392,
-0.0619764365,
-0.4051898718,
-0.0309105553,
-0.1467275769,
-0.1142650992,
-0.1594429612,
0.0469061956,
-0.1378863454,
0.1525101662,
0.001293499,
-0.0196401216,
0.3199876249,
-0.174258545,
0.0151705518,
-0.4309886694,
0.0693969354,
0.0789843798,
-0.0225592628,
0.2723821402,
-0.0778324008,
-0.1469167918,
-0.4247122109,
0.3230876625,
-0.4733676314,
-0.1793968976,
0.0462476835,
0.1082271188,
0.0358786657,
0.1713529378,
-0.078688845,
0.1096758097,
0.3484976292,
0.132720381,
-0.0248957165,
-0.2907632887,
-0.4852851629,
-0.2281448245,
0.0602701008,
0.192258209,
0.0579522848,
0.0291656107,
0.4639880359,
0.1940548569,
0.6476489305,
0.5497220755,
0.1571918428,
0.0773861408,
-0.035874024,
0.5512919426,
0.1163758337,
-0.1133765429,
-0.4488642216,
0.2650894225,
-0.2791209221,
-0.3341401219,
0.2636806071,
0.1984434128,
0.3769231737,
-0.015223287,
0.2889906168,
0.226331383,
0.0917105526,
0.4347141385,
-0.3345436454,
-0.0326939747,
0.1791485995,
0.125974685,
-0.0471313857,
-0.3097909391,
-0.0765229315,
-0.2440912873,
0.1196051836,
-0.1575353146,
0.0428707823,
0.296205163,
0.0219669063,
-0.1225075126,
-0.0653337315,
-0.0063167885,
0.2425468117,
0.2852154076,
0.0202552602,
0.3112220764,
-0.1868072301,
-0.031023711,
0.2466639429,
0.1015820876,
-0.1156053096,
-0.1957662404,
0.0660162419,
-0.1719336808,
-0.0385443605,
0.1197183281,
0.1025743932,
0.2863752842,
-0.0821421668,
0.0805877224,
0.2190673649,
-0.0325036645,
-0.0987993628,
-0.3095048964,
-0.1771300286,
0.0805087537,
0.3629032671,
0.0737584233,
-0.086593464,
0.2838692367,
0.3752441406,
-0.0114852302,
-0.3486467004,
0.019776918,
0.4422861934,
0.0011339784,
0.3061339855,
-0.1134734079,
-0.1244743913,
-0.025276728,
0.2055549622,
0.4379800558,
0.1963790357,
0.3408122063,
0.2434749752,
0.0326313674,
0.024082765,
0.1747346222,
0.250009954,
0.0186409205,
0.149200201,
0.4589805603,
0.2119394094,
0.174525097,
-0.1839994639,
0.308334291,
0.4346734583,
-0.0011618882,
-0.1568810642,
0.3453221917,
-0.1326973736,
0.0322506353,
0.2280593216,
-0.5205903053,
0.1883369535,
0.3040077686,
0.0177530348,
-0.0917440876,
-0.1519123614,
-0.0713324994,
0.0493675098,
0.1606239974,
0.0290362015,
0.0950754136,
0.2052951753,
0.1799434423,
-0.239256084,
-0.3200101852,
0.0207465813,
0.242974475,
-0.0013512969,
0.0810668021,
-0.185299173,
0.3129559159,
-0.0443005189,
0.0234781913,
-0.2518496513,
-0.1960190833,
0.1010061055,
0.1181092113,
0.1571974158,
-0.0073514692,
0.0690250248,
-0.0020893067,
0.2708705366,
0.0460139066,
-0.0574384034,
0.056955006,
-0.2451062948,
-0.0337211154,
0.3722382784,
0.0790442377,
0.372094214,
-0.0797706395,
-0.0757288486,
-0.1691734791,
-0.3268736601,
0.0174457245,
0.0113237351,
-0.1011029407,
-0.0361478291,
0.0515642837,
-0.1560921371,
-0.0931713879,
0.2367041558,
-0.3002384901,
-0.2327295691,
0.0292149037,
-0.0520458333,
-0.4248184264,
0.0050975159,
0.208257705,
-0.4068977237,
-0.0667258352,
0.1968752444,
0.3057451546,
0.4399699867,
-0.1341745406,
0.1866541207,
0.0175137073,
0.2654110491,
0.0374072418,
-0.0729924887,
-0.088127479,
0.2479170561,
-0.0408943966,
-0.1777163446,
-0.2335485369,
0.0500518829,
-0.0702621192,
0.2776541412,
-0.0354015231,
-0.1698897481,
-0.3668976128,
0.4108220339,
-0.2165418118,
0.0544038862,
0.4076308906,
0.1833177507,
-0.1927211285,
0.2562758327,
0.0459657684,
-0.0532863103,
-0.2195075452,
0.0115289949,
-0.0571602583,
0.2237250358,
0.1973439306,
0.5768961906,
0.2344726026,
-0.5633327961,
0.2002486885,
-0.2848828435,
-0.2870130539,
0.0133938454,
-0.059087269,
0.4472937882,
0.1093297675,
0.0086578056,
0.2384130657,
-0.0138360467,
-0.2939454913,
0.0700015426,
0.0657204315,
-0.2700677514,
-0.1444713771,
0.0597491115,
0.0912715793,
0.2420790941,
-0.190456897,
0.0679848045,
-0.3495046496,
-0.1937392354,
-0.2141735554,
-0.0551050641,
-0.1080436856,
-0.4080318809,
-0.5878000855,
-0.0678426772,
-0.7291847467,
0.5164378881,
0.3962758183,
0.1549689919,
0.1175734177,
-0.0569427907,
0.1957086325,
-0.304911375,
0.6568154693,
-0.0021267738,
-0.1984631717,
0.0401750207,
-0.3029319644,
-0.3522106707,
0.0171920061,
-0.0218966529,
0.323972255,
0.3868618309,
0.8028348684,
-0.0870437101,
-0.2673940361,
-0.1531684995,
-0.1316915751,
0.0950847864,
-0.1812618971,
-0.2314997315,
-0.2156763077,
-0.3307570517,
0.3650011122,
0.0735837519,
0.4053304195,
-0.2350697517,
-0.3139358759,
-0.1081780493,
-0.1134594753,
0.3099853694,
0.0232446976,
0.2032971978,
-0.1580937058,
0.0333792195,
0.0740525499,
0.1792844832,
0.1955317557,
-0.1693629771,
0.1570606232,
-0.1679612994,
0.0412202366,
0.0416857861,
0.1953940541,
0.4357804358,
0.0437918156,
0.1081306189,
-0.341627717,
0.7598040104,
-0.0696408153,
0.3424259424,
0.1069181263,
0.3957116008,
-0.359736979,
0.1138606891,
-0.0476061255,
0.3227455616,
0.0472926646,
0.0249577519,
-0.5631778836,
-0.0555257797,
-0.0977513492,
0.4544781446,
1.0650628805,
-0.2870720625,
0.1448947638,
-0.2320349216,
0.0827211738,
0.1771811694,
-0.4226152301,
0.1026194841,
-0.5460085869,
-0.1650374383,
0.0591854081,
-0.13425228,
0.3077513576,
0.1799540967,
0.0870337337,
0.1531486511,
0.2224726528,
0.1601033658,
-0.1453620493,
0.476996839,
-0.055989895,
-0.3710184991,
0.1172494218,
0.1382145286,
0.0543055907,
-0.1033851355,
0.1092978716,
0.0246715024,
-0.1572264284,
-0.1643769294,
-0.2060374618,
-0.1709193438,
-0.4102355242,
0.3210150003,
0.2067406476,
0.0411213487,
-0.0279723592,
0.3484243155,
0.1181502938,
0.2764465809,
0.0397455096,
0.2110108286,
0.1361618042,
0.0295993835,
0.2098141611,
-0.3426696062,
0.0637551919,
-0.1972800195,
-0.1635497957,
-0.0958657712,
0.0544139817,
0.0214748234,
-0.2595751882,
-0.0013826061,
0.468352437,
0.1173838228,
-0.0985033587,
-0.0263529867,
-0.3687488139,
-0.158929497,
0.0924813077,
-0.0453759022,
-0.2404425442,
0.4379300177,
-0.0298692379,
-0.2830432951,
0.0253054537,
0.2725923657,
-0.0286682136,
-0.110683158,
0.2649388909,
-0.1724041104,
-0.3740753531,
-0.1781919599,
0.3151311576,
-0.2960153222,
0.0108423978,
-0.0633534491,
0.0155355893,
-0.2265298814,
0.0385527089,
0.0790208057,
-0.1980658621,
0.0118858283,
-0.0477744155,
-0.2924392223,
-0.5503083467,
-0.2980763614,
-0.2731847763,
0.0654854253,
-0.0155581385,
0.1982995272,
-0.245894596,
0.0351964757,
-0.2807806134,
0.0488864034,
-0.2467908114,
0.2797229886,
-0.1689923108,
-0.3845108449,
-0.3008624911,
0.0526495986,
0.2130946219,
0.5159614086,
-0.1575535834,
-0.2491378486,
-0.0155146085,
0.1241657436,
0.1078745276,
-0.3995266855,
0.1141861081,
0.1762262732,
-0.2904111445,
-0.2819704711,
0.0141656846,
0.0386116952,
-0.153778851,
-0.2576295435,
0.3884230554,
0.2164826393,
0.0658443347,
0.2312608808,
-0.1386736184,
0.3107285798,
0.1447475702,
0.2480477244,
0.1469514668,
0.0634006262,
0.0029559135,
0.0393639356,
0.5078852773,
-0.110428907,
0.0072406,
-0.1157700196,
-0.1256219745,
0.1650374532,
0.0608493686,
0.2264766395,
-0.1681411266,
-0.2976416349,
0.3968756795,
0.2429957539,
-0.1949480027,
-0.1240110397,
0.3900763988,
-0.178814739,
0.0872256458,
0.1557323486,
0.2607522011,
0.1711999774,
-0.2070621699,
0.0470713079,
0.2873018086,
-0.4762454927,
-0.3216888607,
-0.1156006455,
0.0869912356,
0.0641736686,
0.4179251492,
0.0104690082,
0.0260185115,
0.3452898562,
-0.0258642174,
0.5836874843,
-0.0170059763,
0.3134095669,
-0.1671294123,
-0.0566674992,
-0.1695800424,
0.2938799262,
-0.0251536518,
0.1789567322,
-0.1078280881,
0.1764779091,
-0.1166065037,
-0.2088208497,
0.0280814767,
0.5991232395,
-0.3017577529,
-0.2441849709,
-0.1127300188,
-0.0059687942,
-0.2675644159,
0.0405526757,
0.0563714616,
0.017829366,
0.1266623735,
0.3407021761,
0.0284132808,
-0.1761397123,
-0.180521071,
-0.0431927294,
0.2790889442,
-0.2988130152,
0.1856257319,
0.0152858347,
0.286273241,
0.092854619,
-0.1117146835,
0.5503320098,
0.4608728886,
-0.4589524567,
-0.0628081486,
-0.1084597409,
0.116597183,
0.0476760939,
0.2200516015,
0.0298720095,
0.2477379739,
0.112817347,
0.0021529533,
-0.2931624651,
-0.3562102318,
-0.0105449893,
-0.0149189439,
0.1450188011,
0.3033880293,
-0.0318257362,
-0.363111347,
-0.1850338876,
0.0589165539,
-0.3338306248,
0.029133793,
0.1870931685,
-0.327778995,
0.1497631967,
0.0080985054,
0.0680175945,
-0.1722187102,
0.2430776209,
0.1725540161,
0.3001841307,
-0.2175516784,
-0.1257346272,
-0.5043822527,
0.0843531042,
0.0822479054,
-0.3333672285,
-0.0831629783,
0.1216531768,
0.1011620909,
0.126302883,
0.0969701856,
0.290078938,
0.0721936822,
0.4266233444,
-0.4099588394,
0.62907058,
-0.1745354086,
-0.1619637758,
0.143854022,
-0.4980401397,
0.4280368686,
-0.0921036899,
0.1016479507,
-0.1212154627,
0.252484709,
-0.2613581121,
0.2489539087,
0.3376574814,
0.1373836845,
0.3791017532,
-0.0641287342,
0.0380619392,
0.0848207995,
0.4413318932,
-0.2321866453,
0.0826507211,
0.0833215266,
0.183119759,
0.0546410456,
0.1247582585,
-0.1352436543,
0.1376787126,
0.0462844968,
-0.4186747074,
-0.1336525381,
-0.0341652967,
-0.0455419123,
0.2542330623,
-0.2590351105,
0.2475592643,
0.1833342314,
-0.0444638506,
-0.2448835373,
-0.2327112257,
0.3662108183,
-0.368989557,
-0.2968351543,
-0.3429132402,
0.1519064605,
0.1632054895,
0.3504226804,
0.0330879986,
-0.1743747592,
0.3958963454,
-0.1429534554,
-0.507832706,
0.3442976177,
-0.0517101996,
-0.3934431374,
-0.1015947461,
0.0064040571,
-0.2152474672,
0.0475872383,
-0.1189566255,
-0.2414661646
] |
https://github.com/huggingface/datasets/issues/758 | Process 0 very slow when using num_procs with map to tokenizer | Using pre trained HF tokenizer. The result is the same with tokenizer multiprocessing off and on.
I have (absolutely) no idea about the distribution, but since this issue occurs on all of my datasets(regardless of files), I don't think distribution is the problems.
I can use up to 16 cores. | <img width="721" alt="image" src="https://user-images.githubusercontent.com/17930170/97066109-776d0d00-15ed-11eb-8bba-bb4d2e0fcc33.png">
The code I am using is
```
dataset = load_dataset("text", data_files=[file_path], split='train')
dataset = dataset.map(lambda ex: tokenizer(ex["text"], add_special_tokens=True,
truncation=True, max_length=args.block_size), num_proc=8)
dataset.set_format(type='torch', columns=['input_ids'])
dataset.save_to_disk(file_path+'.arrow')
```
| 50 | Process 0 very slow when using num_procs with map to tokenizer
<img width="721" alt="image" src="https://user-images.githubusercontent.com/17930170/97066109-776d0d00-15ed-11eb-8bba-bb4d2e0fcc33.png">
The code I am using is
```
dataset = load_dataset("text", data_files=[file_path], split='train')
dataset = dataset.map(lambda ex: tokenizer(ex["text"], add_special_tokens=True,
truncation=True, max_length=args.block_size), num_proc=8)
dataset.set_format(type='torch', columns=['input_ids'])
dataset.save_to_disk(file_path+'.arrow')
```
Using pre trained HF tokenizer. The result is the same with tokenizer multiprocessing off and on.
I have (absolutely) no idea about the distribution, but since this issue occurs on all of my datasets(regardless of files), I don't think distribution is the problems.
I can use up to 16 cores. | [
-0.4506950676,
-0.3895403743,
-0.0472825207,
0.162931636,
0.1149334759,
-0.2815489173,
0.2656874359,
0.2587324977,
-0.3923634887,
0.1888350248,
0.0629076958,
0.3718956709,
-0.0890705436,
-0.2105108202,
-0.5482547283,
0.2360698283,
0.0839329064,
-0.0310933478,
0.544575274,
-0.118110925,
-0.1754408479,
0.1773724854,
-0.2817246914,
0.0584397428,
-0.5508935452,
-0.1075036302,
0.0991640463,
0.2062432468,
-0.0079598203,
-0.3365162909,
-0.6048410535,
-0.0062394459,
-0.0067064464,
0.2380295396,
-0.0001208894,
-0.0261877403,
-0.0501441285,
0.3045716584,
0.1773630083,
0.1757737994,
0.5087661743,
-0.2677302659,
-0.2065650672,
-0.0814368352,
0.0717617571,
-0.1732415557,
0.1646706015,
0.1108720526,
0.3598262966,
0.3113968968,
0.1259146482,
0.3464171886,
-0.2695308924,
0.1674761772,
-0.3548647463,
0.1909780204,
0.0127338842,
-0.1612078249,
0.1026978791,
0.1404281259,
-0.0731380135,
0.1114660427,
-0.2069514096,
0.0112682395,
0.1181674302,
-0.0765310228,
0.334056735,
-0.531791389,
0.3109230399,
0.1555506885,
-0.1304644197,
0.2259660959,
-0.0447754674,
-0.2271239758,
-0.1173183769,
-0.4069027901,
-0.0659300834,
0.1536652446,
-0.2233642936,
-0.2492576987,
-0.2870897353,
0.2072080672,
0.1220586002,
-0.185397625,
-0.1608424932,
0.1784254313,
0.2193148434,
0.1878381968,
0.0917402506,
-0.0794804245,
-0.3464467227,
-0.1899971068,
0.0932572931,
0.1641350687,
-0.264839828,
0.0863495469,
0.0162886921,
-0.2284551859,
-0.1790197492,
-0.0498304777,
-0.4908621907,
0.5438280106,
-0.0379490778,
0.1100392416,
-0.0540819988,
-0.0507319346,
0.0711292326,
0.1073806733,
0.3145230412,
-0.0370388553,
-0.2704121768,
0.0606522188,
-0.1888573915,
-0.2157375962,
0.1591999382,
-0.1182657182,
-0.4101759195,
-0.0712795556,
-0.3443180025,
-0.0421154723,
0.0616886243,
0.2465011477,
0.1357423514,
0.2784374356,
0.1164705008,
0.6079634428,
-0.2985527217,
-0.1146473736,
-0.478865087,
0.0308695473,
-0.0656969175,
-0.0983154699,
-0.1533273458,
0.1412197948,
-0.0580745935,
0.0928090736,
-0.0424261913,
0.1374466866,
0.2228022069,
-0.0566170923,
0.1432547867,
-0.3872432411,
0.1344199777,
0.1969752908,
-0.090541169,
0.3274351358,
0.0075171925,
-0.1662391126,
-0.3650254309,
0.1921855062,
-0.5542649031,
-0.154451713,
-0.1172214523,
0.0300152525,
-0.025694143,
0.332110554,
-0.126588881,
0.0659265965,
0.0601635948,
-0.0067131966,
-0.1519169211,
-0.4198387861,
-0.5100108981,
-0.130907625,
0.0354385898,
0.2284731567,
0.0076893196,
-0.0061620399,
0.4147741497,
0.1895891726,
0.6329800487,
0.640368402,
0.0365297683,
0.0456752405,
-0.2062080353,
0.4334466755,
0.0078637898,
-0.1366573125,
-0.3977269828,
0.2765935063,
-0.2492130995,
-0.2269994766,
0.1242456958,
0.083922863,
0.2745403051,
-0.062526986,
0.1646544635,
0.0608776622,
0.1374640614,
0.3524214923,
-0.3490791023,
0.0038467199,
-0.0185442828,
0.0742787197,
-0.0408972763,
-0.1899456233,
-0.0398686677,
-0.2290842533,
0.0277229175,
-0.1095842794,
0.0088471435,
0.2146682441,
0.1113793105,
-0.1869169474,
0.042484466,
0.1480468512,
0.28149122,
0.3698045611,
-0.2151996046,
0.259908855,
-0.0825199932,
-0.029724896,
0.2806518972,
0.1298110634,
-0.1157191396,
-0.2477758378,
-0.0031915531,
-0.1168284863,
-0.2420946062,
0.0901821852,
0.0670363232,
0.3922361732,
0.1027472988,
-0.0189812835,
0.2864286304,
-0.0789331421,
-0.103420727,
-0.2746040225,
-0.2179025561,
-0.004062986,
0.3598758578,
0.0206881501,
-0.0209824294,
0.1538752764,
0.297990948,
-0.1021207795,
-0.2200791538,
0.107378751,
0.3305096626,
0.0649025887,
0.1737663448,
-0.1327227354,
-0.1296591461,
-0.1472829431,
0.2585274875,
0.4864605963,
0.2330117226,
0.2920907736,
0.1635448635,
-0.0365974233,
0.0878183767,
0.1875592172,
0.4652352929,
0.1040157825,
0.1991212964,
0.6450462341,
0.1737257689,
0.2268474698,
-0.1009364724,
0.4220353365,
0.3750987053,
0.0383583903,
-0.2353630066,
0.3845767081,
-0.141310513,
-0.0957233608,
0.3067462444,
-0.5021468997,
0.254432261,
0.0890976489,
-0.0221227258,
-0.0148406047,
-0.2461812645,
-0.0257798359,
-0.0438661799,
0.1368959844,
0.1569814682,
0.1807009131,
0.156802699,
0.2176475972,
-0.3013877273,
-0.3200891018,
0.131355226,
0.289008528,
-0.17997998,
0.0986568332,
-0.2343868017,
0.5450379252,
0.029059235,
0.1898014247,
-0.2035870105,
-0.3212852478,
0.1369778216,
0.3257722855,
0.2375267744,
0.0229059421,
-0.0110989735,
0.0008423775,
0.0958476663,
0.0120938215,
-0.1002331153,
0.0772535726,
-0.4060465991,
-0.1035228074,
0.4133101106,
-0.0200194493,
0.1561089456,
0.0215085745,
-0.1393605322,
-0.1392408907,
-0.3856172264,
0.0294844713,
0.0673705935,
0.0429116264,
-0.0571672916,
-0.0194593258,
-0.2499809712,
-0.0217318349,
0.2867524922,
-0.3686538935,
-0.1650758386,
0.1257063299,
-0.2890627086,
-0.3887498677,
-0.0040579736,
0.3380642533,
-0.2690819204,
0.0169429556,
0.0769799352,
0.0362953991,
0.3447988629,
-0.0609912276,
-0.0147448443,
0.0760452002,
0.2177589685,
-0.1731929332,
-0.0493854284,
-0.1005866528,
0.2364499271,
-0.0065879263,
-0.1847717166,
-0.1687863767,
0.0533466935,
-0.0592525937,
0.1908754408,
-0.0932112113,
-0.0675299391,
-0.2792488337,
0.5511068106,
-0.2200593948,
-0.1358429939,
0.3535012305,
0.2189850509,
-0.2078608871,
0.1770900041,
-0.0537380837,
0.1026756912,
-0.2086285353,
-0.079608202,
-0.02216045,
0.1777783781,
0.2634578943,
0.6565590501,
0.1694373637,
-0.5546486974,
0.460419625,
-0.1575147659,
-0.1610365659,
0.0329054706,
-0.0412069336,
0.3707015216,
0.107076481,
0.0640258938,
0.2123037428,
0.0450255312,
-0.3682765663,
0.178533569,
0.151574865,
-0.0836991668,
-0.1060363501,
0.1239336804,
0.0961199552,
0.1262584776,
-0.1447351575,
0.0562663823,
-0.3013883233,
-0.2197114527,
-0.0354734436,
0.0004956685,
0.0039478391,
-0.4213123918,
-0.5623946786,
-0.080874376,
-0.6648814082,
0.3926234543,
0.2515885234,
0.3031944633,
0.0463697612,
0.0459656566,
0.2508898675,
-0.3131645918,
0.7168610692,
0.0974352658,
-0.0989006013,
0.1996331513,
-0.3248126209,
-0.4253255427,
-0.0893374607,
0.1086112708,
0.3160223961,
0.2753638923,
0.9014767408,
-0.0413427204,
-0.4147047997,
-0.2874909043,
-0.1901809126,
0.0496881306,
-0.147125572,
-0.1574975252,
-0.2463569939,
-0.1956478357,
0.2643304765,
0.011449419,
0.2582146823,
-0.2203471065,
-0.2466585785,
-0.0617919937,
-0.0987262428,
0.3484373987,
-0.0170232542,
0.1559095234,
0.016718436,
0.1187138259,
0.1637179852,
0.1730431914,
0.2385936528,
-0.291900903,
0.2931392491,
-0.1807392389,
0.1343402863,
0.1393648982,
0.0168271363,
0.4543556273,
0.0459159762,
0.1290719807,
-0.4070776403,
0.6302621365,
0.0490671694,
0.3861466646,
0.1993941218,
0.3371493816,
-0.3774445057,
0.3004015684,
-0.0296044648,
0.2843734026,
-0.0492790863,
0.101846233,
-0.4722983539,
0.1241329461,
0.0038174391,
0.5101214647,
0.9462084174,
-0.3860387504,
0.1506649107,
-0.2742772698,
-0.0172014162,
0.163990885,
-0.4686096311,
0.1010446772,
-0.4557463527,
-0.3033405244,
0.0086002275,
-0.0756167471,
0.3385691941,
0.1963633597,
0.2635622025,
0.1289666146,
0.1450031102,
0.1547421515,
-0.0322186574,
0.3646081984,
0.2569511533,
-0.3616512716,
0.2099122703,
0.0865084454,
0.1023162156,
-0.0712675229,
0.1038281173,
0.018619217,
-0.1536649317,
0.0483250618,
-0.1398186535,
-0.0889380127,
-0.3795031011,
0.3293958008,
0.2940431535,
0.2540569305,
-0.012970455,
0.2836949229,
0.1130829751,
0.0257873628,
-0.0259230323,
0.2413248271,
0.2427601367,
0.0285983682,
0.2847897112,
-0.4256591499,
0.0792293623,
-0.2082633674,
-0.0765725002,
-0.1313893795,
-0.0191265531,
-0.03958923,
-0.2956019044,
0.0481028147,
0.483363986,
0.3967642784,
0.0377286635,
-0.0651779771,
-0.2590230405,
-0.1406300366,
0.0191148371,
-0.0755596459,
-0.1697641313,
0.3989986479,
-0.1596684605,
-0.2789793611,
0.0549475849,
0.3190863132,
-0.17582497,
-0.0476926863,
0.2904016078,
-0.2413259298,
-0.2966604233,
-0.0782152265,
0.2210615277,
-0.1975941956,
0.022478044,
-0.0851417854,
0.0315318257,
-0.3125322461,
0.175653249,
-0.0263851248,
-0.1682735831,
-0.1190612018,
-0.1653356254,
-0.1714161783,
-0.5735746026,
-0.475664258,
-0.4286084473,
-0.0276447609,
0.0256059915,
0.0915376395,
-0.2318776846,
0.0014345758,
-0.2034561634,
-0.0040850714,
-0.2192679346,
0.2226076573,
-0.350140065,
-0.2844923735,
-0.1789341271,
-0.0394423231,
0.134763211,
0.4382517636,
-0.118547678,
-0.164727509,
-0.113214165,
0.1871750653,
0.0996445864,
-0.4745826125,
0.1656765342,
0.2503249645,
-0.4242204428,
-0.2861308455,
0.043825686,
0.0710105151,
-0.2203970551,
-0.2785336077,
0.4803013206,
0.0463770628,
0.1537211835,
0.2163339853,
0.0373792201,
0.3629662097,
0.1119820625,
0.1945254803,
0.0304202847,
-0.0573160723,
-0.0880847573,
0.0203560032,
0.3967162371,
-0.0861903206,
0.0864864588,
-0.1419194937,
-0.1733752489,
0.0906083435,
0.0666428506,
0.1409448683,
-0.0879263282,
-0.4116293192,
0.5136474371,
0.0784528106,
-0.1498869658,
-0.2812046409,
0.2699751258,
-0.096309945,
-0.0326203667,
0.0240412503,
0.4211637378,
0.0776927918,
-0.0321284756,
0.0739573911,
0.2720720172,
-0.5317791104,
-0.2952336073,
-0.1408237666,
0.0701701269,
0.1684835106,
0.4127981961,
-0.1448288411,
-0.0542104095,
0.2911917865,
0.0599383339,
0.5728487372,
0.1703594327,
0.4189445972,
-0.1204413921,
-0.2007471919,
-0.2446844876,
0.3875007927,
-0.0211610496,
0.2297844589,
-0.1253005415,
0.1403180808,
-0.1662501991,
-0.4690253735,
-0.0589979365,
0.6085992455,
-0.3707398176,
-0.2414244115,
-0.0472475477,
0.030761838,
-0.1974385232,
0.1610164046,
-0.01122675,
0.060700696,
0.1706569493,
0.3910301924,
-0.1183741242,
-0.0886758119,
-0.3024643362,
0.0086970292,
0.3411856592,
-0.123459518,
0.1405358613,
-0.1475324184,
0.1245082393,
0.0321459733,
-0.1595977992,
0.6055904627,
0.5521275401,
-0.3411701322,
-0.1187716573,
-0.1353086978,
0.1968235672,
0.0527878031,
0.1682764292,
-0.1112031639,
0.1252187043,
-0.0026616901,
-0.1213410795,
-0.2243859172,
-0.4974944592,
-0.076558888,
0.1628838778,
0.2405465245,
0.304907769,
-0.0492761359,
-0.2310688794,
-0.0280053467,
0.167440623,
0.0098614991,
0.069676213,
0.2245882899,
-0.2460328639,
0.1521101743,
0.0025103204,
0.0438818559,
-0.1660661101,
0.2478760034,
0.0387675799,
0.1136818528,
-0.2455687225,
-0.0506362766,
-0.5876190662,
0.1819277555,
0.115316391,
-0.1236985773,
0.0707055628,
0.0245343968,
0.019817559,
-0.0872881338,
0.1267777681,
0.2281830311,
0.2938811481,
0.4610560238,
-0.4185813069,
0.6147735715,
-0.2220790535,
-0.1689705253,
0.0884755701,
-0.4843537211,
0.5632550716,
-0.0318485722,
0.0487951264,
0.0099401213,
0.1435695589,
-0.2666409612,
0.36951828,
0.444391042,
0.1392315626,
0.344424814,
-0.0397046842,
0.0122155175,
0.0898189694,
0.5262334943,
-0.2202478647,
-0.1035790145,
-0.077151224,
0.1054726094,
0.0977566391,
0.1441345066,
-0.1994736195,
-0.0298767183,
0.1257635951,
-0.3371973336,
-0.2527494431,
0.0993977785,
-0.0942590088,
0.3721279204,
-0.1503157169,
0.3240286708,
0.242354244,
-0.0549164303,
-0.3557981253,
-0.1633715928,
0.3820389211,
-0.4133448303,
-0.1988783181,
-0.3727409244,
0.2103744447,
-0.0255497023,
0.2667754591,
0.196172446,
-0.2702806592,
0.2786149681,
-0.0668813884,
-0.5310511589,
0.2898271382,
-0.2048012018,
-0.2587735951,
-0.1606619656,
-0.0317396633,
-0.1840336174,
-0.0887730718,
-0.0115606114,
-0.0237790979
] |
https://github.com/huggingface/datasets/issues/758 | Process 0 very slow when using num_procs with map to tokenizer | Ok weird, I don't manage to reproduce this issue on my side.
Does it happen even with `num_proc=2` for example ?
Also could you provide more details about your OS and the versions of tokenizers/datasets/multiprocess that you're using ? | <img width="721" alt="image" src="https://user-images.githubusercontent.com/17930170/97066109-776d0d00-15ed-11eb-8bba-bb4d2e0fcc33.png">
The code I am using is
```
dataset = load_dataset("text", data_files=[file_path], split='train')
dataset = dataset.map(lambda ex: tokenizer(ex["text"], add_special_tokens=True,
truncation=True, max_length=args.block_size), num_proc=8)
dataset.set_format(type='torch', columns=['input_ids'])
dataset.save_to_disk(file_path+'.arrow')
```
| 39 | Process 0 very slow when using num_procs with map to tokenizer
<img width="721" alt="image" src="https://user-images.githubusercontent.com/17930170/97066109-776d0d00-15ed-11eb-8bba-bb4d2e0fcc33.png">
The code I am using is
```
dataset = load_dataset("text", data_files=[file_path], split='train')
dataset = dataset.map(lambda ex: tokenizer(ex["text"], add_special_tokens=True,
truncation=True, max_length=args.block_size), num_proc=8)
dataset.set_format(type='torch', columns=['input_ids'])
dataset.save_to_disk(file_path+'.arrow')
```
Ok weird, I don't manage to reproduce this issue on my side.
Does it happen even with `num_proc=2` for example ?
Also could you provide more details about your OS and the versions of tokenizers/datasets/multiprocess that you're using ? | [
-0.4499235749,
-0.3384661674,
-0.0881831497,
0.155391708,
0.0886593983,
-0.303383559,
0.2761159837,
0.2488263845,
-0.4145074487,
0.1561551094,
0.2132180631,
0.3615121245,
-0.2245150805,
-0.106232591,
-0.5425728559,
0.2070079148,
0.0648822114,
0.0284318104,
0.4975786507,
0.0339273885,
-0.2033853233,
0.1207497269,
-0.3736267686,
0.0247502066,
-0.5798377991,
-0.145462662,
0.1142510474,
0.1221126914,
-0.1154537424,
-0.3299311399,
-0.647097528,
-0.0766081065,
-0.0318850651,
0.3341849744,
-0.0001155862,
-0.04633867,
0.1090577245,
0.34091717,
0.0598880164,
0.0577897541,
0.372191608,
-0.3562235236,
-0.1680820286,
-0.1338618696,
0.0659419149,
-0.1426611394,
0.1589433551,
0.0322811529,
0.3406351209,
0.4026559293,
0.1911497265,
0.3179591298,
-0.2708781362,
0.2543511689,
-0.2134600878,
0.1684642732,
-0.0395517722,
-0.2626492083,
0.1379914582,
0.2332988977,
0.0755678564,
0.1713538766,
-0.2536709309,
-0.179693535,
0.0796081498,
-0.0737384334,
0.3969675303,
-0.5955145955,
0.3338229358,
0.0688480586,
-0.0498031452,
0.2084264159,
-0.1226276085,
-0.2446283847,
-0.1194126308,
-0.3561384082,
-0.0315733999,
0.1177542955,
-0.1459308565,
-0.1997267306,
-0.4144131243,
0.1733221412,
0.0927782357,
-0.0780107081,
-0.2313116789,
0.134221971,
0.1872864366,
0.1875691414,
0.0374250822,
-0.2165008187,
-0.2947060168,
-0.2338626087,
0.0464586914,
0.2533203363,
-0.2309341878,
0.0660235286,
0.015279036,
-0.1303661913,
-0.2016307116,
0.0667564198,
-0.4654316306,
0.4875845015,
0.0327737071,
0.143469587,
-0.1114959568,
0.0285726003,
0.1709275544,
0.1275353581,
0.3001178205,
-0.2543090284,
-0.2343517989,
0.0001799474,
-0.1543804407,
-0.1821837127,
0.2154283822,
-0.0612585209,
-0.2682189941,
-0.0233409479,
-0.3308348656,
-0.01154764,
0.0873357207,
0.2619651556,
0.2996673882,
0.2002886981,
0.0622582994,
0.5214752555,
-0.2556760609,
-0.1215847954,
-0.4594751596,
0.1133482158,
-0.0815637559,
-0.1647174656,
-0.1865515411,
0.1378511935,
-0.0613125488,
0.1771667898,
-0.0054519735,
0.0253579728,
0.1104043871,
0.0252896696,
0.1823236644,
-0.3223146796,
0.1147366315,
0.2022773623,
-0.0671100765,
0.3035328984,
-0.102945134,
-0.1617827415,
-0.3697654605,
0.238141045,
-0.5384537578,
-0.1524564922,
-0.1589483619,
0.0934767127,
-0.127931565,
0.2658378482,
-0.2042577714,
0.0647619516,
0.0831186175,
-0.0184914097,
-0.1679267883,
-0.3296148479,
-0.5520944595,
-0.1329561621,
-0.0274988152,
0.1706847548,
0.0621938258,
-0.0064918473,
0.4061863124,
0.1375057697,
0.5677409172,
0.4764059782,
0.0807369947,
-0.0067315623,
-0.1896292865,
0.4975836575,
0.1461084038,
-0.0847521946,
-0.3920010328,
0.2247669399,
-0.3435598612,
-0.2591390312,
0.1443515122,
0.1934026778,
0.2961146235,
-0.0813636705,
0.1891619712,
0.1684513092,
0.1706657708,
0.4236150682,
-0.34472543,
0.1150198728,
0.0540289171,
0.0510681421,
-0.1712331623,
-0.2077014148,
-0.1022621095,
-0.2073800862,
-0.0755190551,
-0.1466234922,
0.0673182756,
0.2143205106,
0.0944845676,
-0.1933384687,
0.0748751611,
0.0299660787,
0.1912520379,
0.325284481,
-0.1010336578,
0.1861100793,
-0.133622691,
-0.0344638638,
0.2596729696,
0.1267644465,
-0.1248529702,
-0.1466649026,
0.0586642958,
-0.187217474,
-0.2034929991,
0.1582453847,
0.1260848641,
0.3644273579,
0.0801940709,
-0.0583210513,
0.2455106974,
-0.0991181657,
-0.1141909808,
-0.2937937081,
-0.1932030618,
0.0026083197,
0.3814735711,
0.0125687569,
-0.0252913032,
0.2470207065,
0.3813346624,
0.0205007363,
-0.2337237895,
0.1055131704,
0.4118440747,
0.0603029728,
0.2026036233,
-0.0950053483,
-0.0862971321,
-0.1775082946,
0.2709071934,
0.5127888322,
0.2094571888,
0.2903516591,
0.1432606727,
0.0554516837,
0.0688227937,
0.1647233963,
0.2425819933,
0.0216359645,
0.1735885739,
0.6222239733,
0.2241015881,
0.2362845987,
-0.0152285546,
0.3324321508,
0.3139472306,
0.0017891899,
-0.1696568578,
0.3111467957,
-0.1845456958,
-0.0576298088,
0.2842710912,
-0.4943205118,
0.2353969663,
0.2080537379,
-0.0235126354,
-0.0208483227,
-0.1996221095,
-0.078173466,
0.0861454159,
0.1754343361,
0.142956987,
0.0968640596,
0.2540305257,
0.1578582972,
-0.2692857385,
-0.2531767488,
0.0884562805,
0.3354816437,
-0.1019078493,
0.1001665071,
-0.1687546968,
0.4012037814,
0.0715171918,
0.0944315344,
-0.174117431,
-0.317132473,
0.1304928064,
0.2831197381,
0.1585761011,
0.1246606261,
-0.029783804,
0.0023998022,
0.1902006119,
0.0668635219,
-0.0829568207,
0.0202425942,
-0.3556159437,
-0.0494644344,
0.4389980733,
-0.016216211,
0.2940426171,
-0.009238489,
0.0038731173,
-0.2317301333,
-0.4556836784,
0.003174773,
0.0413918011,
0.0255135465,
-0.0680913255,
-0.062108092,
-0.2358980626,
0.0194187909,
0.2480586469,
-0.3583417535,
-0.21802634,
0.1097901613,
-0.2262156904,
-0.3725876212,
-0.0686941072,
0.3364557624,
-0.2102841735,
0.0757505894,
0.1448754221,
0.066020295,
0.3742145896,
-0.0085039157,
0.1516023874,
0.1291854382,
0.2616475224,
-0.1156104431,
-0.0668546855,
-0.0575703047,
0.2586349249,
-0.0262194537,
-0.1741722226,
-0.109884724,
0.0847539231,
-0.1114985198,
0.2365142852,
-0.0075677857,
-0.2055546641,
-0.3503778279,
0.479775846,
-0.18036744,
-0.1561065018,
0.3318632543,
0.2220032811,
-0.2312348634,
0.1933970898,
-0.0816722587,
-0.0534406379,
-0.241655618,
-0.0583509654,
-0.0153227001,
0.1631849408,
0.2545315325,
0.5217766762,
0.1270964444,
-0.5550820231,
0.2751224637,
-0.241237238,
-0.1587436199,
0.0387796983,
-0.1154575273,
0.3504107296,
0.2130518556,
0.0414601937,
0.1716653109,
0.0892033577,
-0.4674319029,
0.0982111543,
0.0906486064,
-0.1467725188,
-0.1113885865,
0.0176664945,
-0.0280589573,
0.094885543,
-0.1602465212,
0.0541885644,
-0.3582012355,
-0.1800775379,
-0.1543653756,
-0.029882092,
0.0212046672,
-0.4966041148,
-0.6432385445,
-0.0315765962,
-0.7037485838,
0.4059983194,
0.2911790013,
0.2319969535,
0.1531507075,
-0.0340891704,
0.2259283364,
-0.2468260527,
0.7638767362,
0.0278599281,
-0.1418034434,
0.1673065275,
-0.2136554271,
-0.5546603203,
-0.0383732989,
0.1784721613,
0.3922826946,
0.3510374427,
0.934482336,
0.017037645,
-0.3225591183,
-0.2903117239,
-0.1400999427,
0.0864271969,
-0.1478820592,
-0.2009086311,
-0.1770839691,
-0.1991246641,
0.2782624662,
-0.0200457238,
0.2604210973,
-0.1195323467,
-0.3668779433,
-0.1575032771,
-0.1159372181,
0.2841860652,
-0.0570019111,
0.2025181204,
-0.0913923383,
0.181049943,
0.1577022821,
0.2029874176,
0.2023250908,
-0.2983584106,
0.28040272,
-0.1743220091,
0.1097657233,
0.1640723646,
0.0676615685,
0.3864981532,
0.0313139297,
0.0984008908,
-0.4779428542,
0.5437564254,
0.070365265,
0.4488619268,
0.1909616292,
0.3199560344,
-0.3200166225,
0.270540297,
-0.0118832178,
0.3681927025,
-0.0130440593,
0.0603403375,
-0.4594019949,
0.002053231,
-0.0132885091,
0.4890927374,
0.940027833,
-0.3060776889,
0.2133761048,
-0.1931506097,
-0.0184857547,
0.1113676205,
-0.2814568281,
0.0406490639,
-0.4389476776,
-0.1258585751,
0.041532591,
-0.0911837369,
0.2763581276,
0.0752055794,
0.1529974192,
0.0236574858,
0.1620559543,
0.2183239162,
-0.090410769,
0.3808497488,
0.180697456,
-0.3440167904,
0.192446813,
0.1494548321,
0.1738920808,
-0.1192566007,
0.1402196288,
0.0078363195,
-0.1601860374,
0.0186567381,
-0.1336498559,
-0.1067331433,
-0.3419566751,
0.3004215062,
0.2267999351,
0.1218818873,
-0.1603554785,
0.3938630819,
0.0186711922,
0.1552833617,
-0.0950718224,
0.2904057205,
0.1818507761,
0.0560352579,
0.1889544725,
-0.4750976264,
-0.0106143467,
-0.2037191689,
0.0104182065,
-0.0543442555,
0.0256802328,
0.0624061301,
-0.2789148092,
0.0811031237,
0.4807522595,
0.3518824279,
-0.0614794269,
-0.0926857591,
-0.2849011421,
-0.1550024152,
0.092308566,
-0.091754809,
-0.1146119833,
0.3365734518,
-0.0994291008,
-0.3127009571,
0.0610960685,
0.3479285836,
-0.1225398779,
-0.1190599054,
0.3216856122,
-0.2689373195,
-0.2803424597,
-0.1252524257,
0.2756991088,
-0.291020453,
0.0451864302,
-0.0733115226,
0.152338922,
-0.2231270671,
0.1914173365,
-0.0689253211,
-0.2240124643,
-0.0658599213,
-0.1013902202,
-0.113081187,
-0.5481936336,
-0.4265354574,
-0.3993569314,
0.0397686921,
-0.0814385191,
0.0588101,
-0.2969697416,
-0.1574760824,
-0.2581764162,
0.0441187695,
-0.2127572298,
0.245994851,
-0.2213792354,
-0.2583945692,
-0.2013218999,
-0.0869790912,
0.196178332,
0.3586952686,
-0.1027747318,
-0.2256507874,
-0.0482555963,
0.1419333518,
0.1489542723,
-0.5315015912,
0.1496793628,
0.2843881249,
-0.4086697698,
-0.3168080747,
0.0190232098,
0.1879045367,
-0.272800684,
-0.3082477748,
0.3944229186,
0.1001095176,
0.2289352268,
0.1660898477,
-0.094224371,
0.3499568701,
0.0723190904,
0.2149963081,
0.0402828455,
-0.0236299708,
0.078356564,
0.0154486112,
0.3958338499,
-0.0450426303,
0.0588572882,
-0.1191261411,
-0.1441309899,
0.1718427837,
-0.0324360728,
0.1243384182,
-0.1295390427,
-0.3658832014,
0.4708156586,
0.1685203463,
-0.0764751509,
-0.214103058,
0.3278605044,
-0.1524693221,
0.019335188,
0.0183175206,
0.2888771594,
0.1424134821,
-0.0052005053,
0.0909813121,
0.2107023746,
-0.4735334814,
-0.2761489749,
-0.1802961826,
0.0596439689,
0.0376942009,
0.4591518939,
-0.101893574,
-0.0324464962,
0.3655967116,
-0.0302578248,
0.5474577546,
0.1747729629,
0.405316025,
-0.1785576046,
-0.0343225524,
-0.293432653,
0.3591293693,
-0.0543821007,
0.2230079472,
-0.0498657152,
0.11069417,
-0.1132998168,
-0.3018489778,
-0.0353637785,
0.6377307177,
-0.350856632,
-0.2562389672,
-0.1169731915,
0.0019784868,
-0.1625105739,
0.1244660541,
-0.0368130691,
0.0718310624,
0.012783356,
0.3527552783,
-0.1232698858,
-0.0989838243,
-0.2599735558,
0.0705929399,
0.2637037933,
-0.1159013286,
0.1439372003,
-0.2477951497,
0.1988350153,
0.0508374088,
-0.0602231622,
0.6009985209,
0.6137850881,
-0.4024627805,
-0.0945189148,
-0.0573267043,
0.0654837638,
0.0428196043,
0.297577858,
-0.1064924002,
0.0445686355,
0.0193126053,
-0.0360825919,
-0.280865252,
-0.4103230238,
-0.1531277001,
-0.0051795933,
0.2156580538,
0.2116220891,
-0.1012037769,
-0.2952635288,
-0.1231215671,
0.1760960668,
-0.0192740187,
-0.0587597191,
0.2348759025,
-0.2314609885,
0.1348614544,
-0.0089757815,
0.0745463744,
-0.2175697535,
0.2754805088,
0.1463982463,
0.2293231487,
-0.2204811424,
-0.0933709294,
-0.557826519,
0.1520800889,
0.0814376026,
-0.1484389007,
-0.0096612237,
0.0127662718,
-0.0402445234,
0.0563467257,
0.1488926709,
0.3091361523,
0.2066031694,
0.3167965114,
-0.4335677326,
0.6727851629,
-0.0681329668,
-0.233949706,
0.0665891096,
-0.533195436,
0.4914660454,
-0.0902964473,
0.1155217513,
-0.0538881235,
0.2237469256,
-0.3717536032,
0.4269132316,
0.5173204541,
0.1495980024,
0.3735644519,
-0.0100634843,
0.064554207,
0.0330896378,
0.4389159977,
-0.2294115275,
-0.1510958523,
-0.0262138695,
0.0054042265,
0.0434773639,
0.1580456644,
-0.1662985682,
0.0185096823,
0.1677066386,
-0.3099860251,
-0.1790643334,
0.088806361,
-0.0960521698,
0.3011550605,
-0.3251376748,
0.1892917752,
0.2122378349,
-0.0346655548,
-0.2913623452,
-0.1555498838,
0.369911015,
-0.3290712833,
-0.1448327452,
-0.3039192557,
0.199442178,
0.0776515752,
0.3248169422,
0.1124936491,
-0.230351463,
0.3438748717,
-0.1254345477,
-0.5179370642,
0.3420324028,
-0.1467755884,
-0.2482201755,
-0.1574876159,
-0.0366522856,
-0.1720846891,
0.021748811,
-0.0030953139,
-0.0453714207
] |
https://github.com/huggingface/datasets/issues/758 | Process 0 very slow when using num_procs with map to tokenizer | Yes, I can confirm it also happens with ```num_proc=2```.
```
tokenizers 0.9.2
datasets 1.1.2
multiprocess 0.70.10
```
```
Linux nipa2020-0629 4.4.0-178-generic #208-Ubuntu SMP Sun Apr 5 23:45:10 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
``` | <img width="721" alt="image" src="https://user-images.githubusercontent.com/17930170/97066109-776d0d00-15ed-11eb-8bba-bb4d2e0fcc33.png">
The code I am using is
```
dataset = load_dataset("text", data_files=[file_path], split='train')
dataset = dataset.map(lambda ex: tokenizer(ex["text"], add_special_tokens=True,
truncation=True, max_length=args.block_size), num_proc=8)
dataset.set_format(type='torch', columns=['input_ids'])
dataset.save_to_disk(file_path+'.arrow')
```
| 34 | Process 0 very slow when using num_procs with map to tokenizer
<img width="721" alt="image" src="https://user-images.githubusercontent.com/17930170/97066109-776d0d00-15ed-11eb-8bba-bb4d2e0fcc33.png">
The code I am using is
```
dataset = load_dataset("text", data_files=[file_path], split='train')
dataset = dataset.map(lambda ex: tokenizer(ex["text"], add_special_tokens=True,
truncation=True, max_length=args.block_size), num_proc=8)
dataset.set_format(type='torch', columns=['input_ids'])
dataset.save_to_disk(file_path+'.arrow')
```
Yes, I can confirm it also happens with ```num_proc=2```.
```
tokenizers 0.9.2
datasets 1.1.2
multiprocess 0.70.10
```
```
Linux nipa2020-0629 4.4.0-178-generic #208-Ubuntu SMP Sun Apr 5 23:45:10 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
``` | [
-0.4147123098,
-0.2900137305,
-0.1402390003,
0.1775932163,
0.0856038928,
-0.3098763824,
0.3165903687,
0.2695382237,
-0.4015318751,
0.1938362718,
0.1718187481,
0.4401445091,
-0.1775082946,
-0.1734133661,
-0.4684063494,
0.1972345859,
0.0476886854,
0.0190267637,
0.4751035869,
0.0531508178,
-0.2164156139,
0.2401548922,
-0.3768129349,
0.0269497149,
-0.4960839748,
-0.0982433185,
0.1989468336,
0.1213027984,
-0.1391695291,
-0.3674747348,
-0.6068888307,
-0.1121931449,
-0.0563680157,
0.21197851,
-0.0001163926,
-0.0296949223,
0.0646125004,
0.2730701268,
0.1113587618,
0.0883959606,
0.3482661247,
-0.3627751768,
-0.2092968076,
-0.1784973592,
0.0755580813,
-0.1697575152,
0.1654168069,
0.0946602076,
0.3169890344,
0.3889228404,
0.1781580448,
0.3117567897,
-0.2135266662,
0.2594029307,
-0.277130872,
0.1019631177,
-0.0687713251,
-0.2140851319,
0.0303772427,
0.2499023378,
0.0425847732,
0.2547706366,
-0.2161939442,
-0.1262563765,
0.015944466,
-0.033681944,
0.3718966842,
-0.554659605,
0.2848030925,
0.0327239446,
-0.1297373027,
0.2146372944,
-0.0601822622,
-0.1541351676,
-0.1885574609,
-0.3445384502,
-0.045315329,
0.1204930991,
-0.2108678371,
-0.2227787673,
-0.3741156757,
0.1841551811,
0.0840207338,
-0.0709077418,
-0.1827476174,
0.1372275651,
0.179920122,
0.2410600483,
0.0588668361,
-0.2258036435,
-0.2731664181,
-0.2224005312,
0.1319561899,
0.2197852284,
-0.2365806699,
0.0364628881,
0.0125433337,
-0.1788614988,
-0.2265865207,
0.0610880069,
-0.3848721087,
0.4795626998,
0.0413384959,
0.2088335156,
-0.2314834148,
-0.0097557977,
0.1830860525,
0.1602275223,
0.2368336022,
-0.1341392994,
-0.1728897989,
0.0311933234,
-0.1120948941,
-0.1960591078,
0.2113964111,
0.0130276978,
-0.2358990163,
0.017114751,
-0.3119624555,
0.0140121467,
0.0905453414,
0.1994939446,
0.268367976,
0.2375327051,
0.1195802465,
0.425252974,
-0.2917689681,
-0.175411731,
-0.4300310612,
0.1039830893,
-0.0970265716,
-0.1099702269,
-0.1193572953,
0.0670903102,
-0.0476064198,
0.2187539935,
0.0155166686,
-0.0447667912,
0.1537348628,
0.0297058672,
0.1537377685,
-0.3857295215,
0.1910876036,
0.2379960567,
-0.0603854768,
0.2763992548,
-0.069545947,
-0.1646359116,
-0.3798221648,
0.2488515228,
-0.4449460804,
-0.0545312949,
-0.0999008119,
0.1063409075,
-0.013218835,
0.2420075387,
-0.0977019072,
0.0103092678,
0.1538998485,
-0.1459279954,
-0.0659779459,
-0.2974437475,
-0.5686417818,
-0.1623961031,
-0.0126864947,
0.1474441886,
0.0966634452,
-0.0690116584,
0.4687348902,
0.1338398904,
0.6333214641,
0.475965023,
0.0957217813,
-0.0273746736,
-0.1826711595,
0.5199816227,
0.205658406,
-0.0890085176,
-0.4167576432,
0.1860777736,
-0.2954652011,
-0.3388357759,
0.1845508963,
0.1925988197,
0.2760441899,
-0.0736088157,
0.152774334,
0.1710796654,
0.218103826,
0.3887584805,
-0.3401801586,
0.0432674661,
0.0579451248,
0.0052662343,
-0.1439915597,
-0.2692909241,
-0.0136552677,
-0.1358415335,
-0.1160061061,
-0.1086737514,
0.0707350001,
0.1403701007,
0.0405131392,
-0.2887232006,
0.0357701033,
0.03969381,
0.1362643391,
0.267501384,
-0.2048278153,
0.1992259026,
-0.1795548797,
-0.0568986647,
0.2130098343,
0.110573329,
-0.0963903666,
-0.2223662883,
0.0520984903,
-0.14098607,
-0.0806375593,
0.1275233775,
0.1280658245,
0.3340399563,
-0.0087753534,
-0.0142839961,
0.2048281729,
-0.0602166876,
-0.188298434,
-0.2748570442,
-0.2319175899,
0.0195151996,
0.3814217448,
-0.0707417056,
-0.0461665653,
0.2635863423,
0.2881622016,
0.0682804585,
-0.2523231804,
0.0121111423,
0.3966020942,
0.0402955264,
0.1687041223,
-0.0676359311,
-0.0248789638,
-0.1205535531,
0.253433466,
0.4735649228,
0.1911376119,
0.2915653288,
0.2026227564,
-0.0064274184,
0.0646828264,
0.1991948783,
0.2518368065,
-0.1087465286,
0.0632861406,
0.7362857461,
0.1480686367,
0.2410645187,
0.0143504217,
0.3129014075,
0.4191809297,
0.0435566083,
-0.1877629161,
0.3188771904,
-0.1470637321,
-0.0989780948,
0.2996335626,
-0.4021478891,
0.2188610584,
0.2113529742,
0.0284016933,
-0.0751191229,
-0.1632570624,
-0.1046005934,
0.1323331147,
0.1673818827,
0.1391258836,
0.1631519794,
0.239171505,
0.1598872244,
-0.3626338542,
-0.2156473696,
0.1362678111,
0.2745378017,
-0.0113992542,
0.0717992783,
-0.1668406725,
0.3841636181,
0.1069369316,
0.0126776248,
-0.097936675,
-0.2654923201,
0.1053295285,
0.2229982466,
0.1926707923,
0.1570715606,
-0.0243050791,
-0.0396592021,
0.2687874138,
0.0549106151,
-0.1527597606,
0.1180009693,
-0.2908623815,
-0.0477983057,
0.3717550933,
-0.0466332808,
0.3291926682,
-0.0740021691,
-0.0497359596,
-0.2217087448,
-0.4487154484,
0.0687726215,
0.0453878567,
-0.0049514845,
-0.037432,
-0.0763191879,
-0.2055063844,
0.0315735117,
0.2338887453,
-0.308858633,
-0.2734472156,
0.0143821165,
-0.1928641796,
-0.2959948778,
-0.0909075812,
0.2817855775,
-0.2543783486,
-0.0103560612,
0.0863192528,
0.1400080919,
0.4790598154,
0.0132500082,
0.0994254202,
0.1158329099,
0.2477498353,
-0.0649584979,
-0.1200694591,
-0.0427148938,
0.2542875707,
-0.0453787297,
-0.1241727471,
-0.1803468466,
0.0653555095,
-0.0297833774,
0.1603385061,
0.0569861457,
-0.2868965864,
-0.3649913669,
0.550455451,
-0.1587026566,
-0.1019767448,
0.4046474993,
0.2637844682,
-0.2704053819,
0.2251257598,
-0.0688942447,
-0.036119923,
-0.2399602532,
-0.1305756569,
0.0161141902,
0.2189335376,
0.2953401208,
0.4784658551,
0.1764703393,
-0.6153281331,
0.3364477754,
-0.2446140498,
-0.1234953851,
0.0053258911,
-0.1004125476,
0.3539536893,
0.2251968235,
0.0864549801,
0.1184324399,
-0.0002785735,
-0.3927921653,
0.1327162832,
0.1379473209,
-0.1562546939,
0.0196579099,
0.0123997759,
0.1647293121,
0.1075726002,
-0.1255676746,
0.0337744281,
-0.3275459111,
-0.1538695246,
-0.2002697736,
-0.003602013,
0.0448772162,
-0.462770015,
-0.6620950699,
0.0109437481,
-0.7336007357,
0.447673887,
0.3246119022,
0.2894564867,
0.0942430198,
-0.0669177473,
0.2772777081,
-0.3210553229,
0.7273994684,
0.040290691,
-0.110560976,
0.1507586837,
-0.1687195301,
-0.5041905046,
-0.018639259,
0.1345016658,
0.3634617925,
0.3612505496,
0.9468920827,
0.0104199499,
-0.3450060189,
-0.1934400797,
-0.180358842,
0.0897501558,
-0.1380216479,
-0.2206705511,
-0.1580165625,
-0.302062422,
0.2238354385,
-0.0461465307,
0.2723905146,
-0.0113406032,
-0.4036681056,
-0.1229083985,
-0.2363975942,
0.2057241499,
-0.0100025944,
0.1728122532,
0.0497631244,
0.1275154501,
0.0655402988,
0.148069486,
0.1801038384,
-0.3304215968,
0.2216950655,
-0.0839643702,
0.1015434489,
0.2097089887,
-0.0073930398,
0.3432664573,
-0.0332053043,
0.0733464211,
-0.4329697788,
0.5720506907,
0.0549246781,
0.4549362063,
0.1713410914,
0.3446986675,
-0.2337745279,
0.2966983616,
0.029707035,
0.3458828926,
-0.0601865426,
-0.0055449968,
-0.4889618158,
-0.044474341,
-0.0668480992,
0.4607110322,
0.8917253017,
-0.2397612929,
0.2062510103,
-0.165915668,
-0.0210575536,
0.1621925235,
-0.2714110613,
0.0365186371,
-0.3896451592,
-0.1325186491,
-0.0069337375,
-0.1025190726,
0.2989654839,
0.0224774517,
0.1291530132,
0.0697841197,
0.209883213,
0.2526233792,
-0.0702300966,
0.3553847671,
0.1373199672,
-0.341986686,
0.1720631868,
0.1230013892,
0.1367602348,
-0.1139205545,
0.154233411,
0.0394428931,
-0.1398705691,
-0.0649957433,
-0.0191087499,
-0.0732491761,
-0.364613384,
0.4183247983,
0.1932606697,
0.0933814645,
-0.2395738214,
0.4018905461,
-0.0070006624,
0.085128352,
-0.0032065567,
0.2591146231,
0.1997065544,
0.0484697893,
0.0990619212,
-0.3905660808,
0.0217533354,
-0.2086932212,
0.0682059377,
-0.0247488283,
-0.0074603669,
0.0552498326,
-0.2507557869,
0.1249546409,
0.5679703951,
0.3063178658,
-0.1537465751,
-0.1191845685,
-0.4213727117,
-0.2262270153,
0.0785810128,
-0.1657259911,
-0.1487759203,
0.299674809,
-0.0420698039,
-0.3072767258,
0.1031314135,
0.3724085987,
-0.0656659678,
-0.0549708754,
0.3066339195,
-0.350478977,
-0.3216536641,
-0.1695223451,
0.2203721106,
-0.3156822622,
-0.0300315246,
-0.0820052996,
0.1802491099,
-0.2183587551,
0.1481050104,
-0.0514578409,
-0.2333099246,
-0.0034377761,
-0.1631019413,
-0.140085429,
-0.5985136628,
-0.4524353743,
-0.4788418412,
0.0775933266,
-0.006582588,
0.0323687643,
-0.3689261377,
-0.0931764692,
-0.2567002177,
0.0747388676,
-0.2269090116,
0.2328595072,
-0.1825970262,
-0.3429650366,
-0.2174154967,
-0.0178749599,
0.2077482492,
0.4402098954,
-0.1981147528,
-0.2322367132,
-0.0115630142,
0.123637259,
0.091009751,
-0.5356763601,
0.1012621373,
0.3338400424,
-0.383757174,
-0.2721378207,
0.0243250132,
-0.0006905273,
-0.2361636758,
-0.2305087894,
0.3917294741,
0.0685486495,
0.2969130874,
0.1387379766,
-0.123886928,
0.3315963447,
0.0436571352,
0.2184186727,
0.0057536215,
-0.0165228695,
-0.0097493902,
-0.0041033328,
0.4135790765,
-0.1210054457,
0.0820512325,
-0.0716067404,
-0.2191261202,
0.1075767949,
0.0023455545,
0.0992528945,
-0.1673143506,
-0.4050677717,
0.3858732283,
0.1673626602,
-0.1224883646,
-0.2120354623,
0.3046745062,
-0.1509653926,
0.086642012,
0.0125595406,
0.2928391099,
0.1308480501,
0.0111530479,
0.1331163049,
0.1800607145,
-0.4440460205,
-0.2878638208,
-0.1062029004,
0.1063469201,
0.1254697144,
0.4623204172,
-0.167771101,
-0.0226483718,
0.3262931406,
-0.1280935854,
0.6531365514,
0.1967156827,
0.4684250951,
-0.1613353044,
-0.0570564345,
-0.1884213984,
0.3861743808,
-0.0950250849,
0.2422856092,
0.0119457245,
0.150463596,
-0.0132037904,
-0.219508186,
-0.0053429455,
0.6526273489,
-0.3278415203,
-0.3698411584,
-0.1431082338,
-0.0239281282,
-0.1746341735,
0.1361029893,
-0.0119877774,
0.0564166754,
0.0192650501,
0.3377073407,
-0.1200222299,
-0.048192881,
-0.2910833061,
0.0628820062,
0.2389508784,
-0.1606960595,
0.2387546748,
-0.1345283091,
0.2236471772,
-0.0656878799,
-0.0269115008,
0.6454127431,
0.526904285,
-0.2857977152,
-0.064106755,
-0.0504820608,
0.074301064,
-0.0067114457,
0.2845503092,
-0.1009721681,
0.0349358171,
-0.0482497439,
-0.0318317823,
-0.2941147685,
-0.4370774925,
-0.0570171028,
-0.0528928824,
0.2819963098,
0.2470998019,
-0.0916362703,
-0.2933861017,
-0.1078816578,
0.1764711291,
-0.1165528223,
-0.0134156179,
0.1211393028,
-0.2631141841,
0.178280592,
0.0049772188,
0.0632242411,
-0.2402897775,
0.2864077985,
0.0018526735,
0.1694777459,
-0.1832758188,
-0.1148008555,
-0.4960201979,
0.1073501557,
0.2139244974,
-0.1393530667,
-0.1253381073,
0.0636214912,
-0.0505607389,
0.0377205797,
0.1999998242,
0.2938375175,
0.3271346092,
0.3384618163,
-0.4123343825,
0.7688539028,
-0.03417404,
-0.2421049327,
0.0951438546,
-0.6103773713,
0.4780235887,
-0.1345041245,
0.1196136624,
-0.0700359941,
0.2151151896,
-0.3757581413,
0.3962630033,
0.5963897705,
0.1870026439,
0.340397507,
-0.122001715,
0.0530664995,
0.0965487212,
0.5001575351,
-0.1907626092,
-0.1072808057,
0.0201642215,
0.0784715042,
0.0902174488,
0.1068733782,
-0.1552943885,
0.0336106494,
0.0775832757,
-0.3671543002,
-0.1219525561,
0.0768136457,
-0.0977123231,
0.2395675033,
-0.3372309804,
0.1748057753,
0.2785285711,
-0.0663786903,
-0.3390505314,
-0.2964257598,
0.3573905826,
-0.2921609282,
-0.1247853935,
-0.2662938833,
0.1766948402,
0.0284447111,
0.2948843539,
0.0678193867,
-0.1883571595,
0.3833016753,
-0.1505485028,
-0.4722621441,
0.4093289971,
-0.1440522969,
-0.2408436537,
-0.1465680301,
-0.0105967559,
-0.1326970309,
-0.0035107434,
-0.101962626,
-0.1442955136
] |
https://github.com/huggingface/datasets/issues/758 | Process 0 very slow when using num_procs with map to tokenizer | I can't reproduce on my side unfortunately with the same versions.
Do you have issues when doing multiprocessing with python ?
```python
from tqdm.auto import tqdm
from multiprocess import Pool, RLock
def process_data(shard):
# implement
num_proc = 8
shards = [] # implement, this must be a list of size num_proc
with Pool(num_proc, initargs=(RLock(),), initializer=tqdm.set_lock) as pool:
results = [pool.apply_async(process_data, shard=shard) for shard in shards]
transformed_shards = [r.get() for r in results]
``` | <img width="721" alt="image" src="https://user-images.githubusercontent.com/17930170/97066109-776d0d00-15ed-11eb-8bba-bb4d2e0fcc33.png">
The code I am using is
```
dataset = load_dataset("text", data_files=[file_path], split='train')
dataset = dataset.map(lambda ex: tokenizer(ex["text"], add_special_tokens=True,
truncation=True, max_length=args.block_size), num_proc=8)
dataset.set_format(type='torch', columns=['input_ids'])
dataset.save_to_disk(file_path+'.arrow')
```
| 73 | Process 0 very slow when using num_procs with map to tokenizer
<img width="721" alt="image" src="https://user-images.githubusercontent.com/17930170/97066109-776d0d00-15ed-11eb-8bba-bb4d2e0fcc33.png">
The code I am using is
```
dataset = load_dataset("text", data_files=[file_path], split='train')
dataset = dataset.map(lambda ex: tokenizer(ex["text"], add_special_tokens=True,
truncation=True, max_length=args.block_size), num_proc=8)
dataset.set_format(type='torch', columns=['input_ids'])
dataset.save_to_disk(file_path+'.arrow')
```
I can't reproduce on my side unfortunately with the same versions.
Do you have issues when doing multiprocessing with python ?
```python
from tqdm.auto import tqdm
from multiprocess import Pool, RLock
def process_data(shard):
# implement
num_proc = 8
shards = [] # implement, this must be a list of size num_proc
with Pool(num_proc, initargs=(RLock(),), initializer=tqdm.set_lock) as pool:
results = [pool.apply_async(process_data, shard=shard) for shard in shards]
transformed_shards = [r.get() for r in results]
``` | [
-0.3621357083,
-0.5087303519,
-0.1394250095,
0.0749779493,
0.0402239524,
-0.3560976088,
0.3881991506,
0.141815871,
-0.4626857936,
0.2230350822,
0.0311759487,
0.3382247686,
-0.2334189117,
-0.087560311,
-0.4083906412,
0.1022368968,
0.0076494701,
-0.1594915241,
0.2531304359,
0.032625258,
-0.1771968007,
0.2042718083,
-0.3319112062,
-0.0055948086,
-0.6348928213,
-0.170225054,
0.058643125,
0.2909308374,
0.0616430268,
-0.2190773487,
-0.6123354435,
0.0709187463,
-0.1117319018,
0.3896761239,
-0.0001135373,
-0.0468340293,
0.0159826521,
0.2007141113,
0.2702914476,
0.2192211151,
0.3434351683,
-0.3710713685,
-0.1273700595,
-0.2034922242,
0.0797318518,
0.0695009679,
0.055539757,
0.1417085677,
0.4168216884,
0.1280534714,
0.203948617,
0.5180534124,
-0.1577168107,
0.3365241587,
-0.2163354307,
-0.1263157427,
-0.1170368493,
-0.2264712155,
0.3812011778,
0.2920643687,
-0.0488049313,
0.4048930407,
-0.2574478984,
0.0048068669,
-0.075503096,
-0.0256647877,
0.3905304074,
-0.6222290993,
0.2957594395,
0.0915027708,
-0.1952247024,
0.1449883878,
-0.2645462751,
-0.105436787,
-0.1821674854,
-0.4467233717,
-0.0244197696,
0.1261488497,
-0.1433105767,
-0.1415113509,
-0.5341368318,
0.0735083073,
0.1497884095,
-0.2030867487,
-0.1841884553,
0.133823052,
0.1804545969,
0.173815906,
-0.0526166297,
-0.2131348997,
-0.286965996,
-0.1519464254,
0.2450893521,
0.0610681213,
-0.3582468629,
-0.0217571706,
0.0150987348,
-0.1594711989,
-0.2735795379,
0.0945431739,
-0.3346867859,
0.6400341988,
0.1284670383,
0.1383741796,
-0.227902174,
-0.1701494455,
0.036643032,
-0.0220996141,
0.2077167332,
-0.3187614679,
-0.2897851765,
0.0965854526,
0.0173372477,
-0.2958788872,
0.2639728785,
0.0739422888,
-0.1910461038,
0.063717559,
-0.1770786196,
-0.0365509838,
0.2190354615,
0.2024123967,
0.1830809414,
0.2976762056,
0.1855955869,
0.4982711673,
-0.303158015,
0.0021316092,
-0.4452207088,
-0.1513816118,
-0.1632451117,
-0.1266250163,
-0.0921149775,
0.0348825902,
-0.1104716882,
0.226744175,
-0.1102703661,
0.0132160261,
0.4914780259,
-0.0523900799,
0.2614608407,
-0.2932784259,
0.144641012,
0.3133214116,
-0.0084737763,
0.1547651589,
-0.0946156457,
-0.2155817151,
-0.2673732936,
0.1971886605,
-0.4755027592,
-0.1252942085,
-0.0142280068,
0.1151568666,
0.0019121319,
0.3380802572,
-0.069763951,
0.0178975128,
0.2934837043,
0.2063700855,
-0.1937806606,
-0.3681373894,
-0.4264441133,
-0.2172582746,
0.0611190423,
0.1044017076,
0.1582089961,
0.0513370633,
0.3336831331,
0.1277468503,
0.4713522196,
0.5424495339,
0.1154186055,
0.041791413,
-0.0256375968,
0.4444891214,
0.2932838798,
-0.1252950728,
-0.3540529311,
0.289121449,
-0.260430634,
-0.2326419652,
0.2232981026,
0.2062401325,
0.3754862845,
-0.0470184907,
0.2187001854,
0.155038774,
0.0404801369,
0.4499571323,
-0.3326164484,
0.0179053918,
-0.028835902,
0.090639919,
0.1248634309,
-0.2718465626,
-0.0265724845,
-0.340380013,
-0.0024567526,
-0.0861337483,
0.0460290089,
0.1847893745,
0.0244428609,
-0.2166291624,
-0.009274099,
-0.0815282464,
0.0575691946,
0.3631339371,
-0.1907761544,
0.2156137526,
-0.1590052247,
0.0149136782,
0.3050498664,
0.1014956832,
-0.2248275727,
-0.128292501,
0.1212934256,
-0.0976706892,
-0.0827975571,
-0.0777846128,
0.0200113431,
0.2593533993,
0.1543825567,
-0.0542899221,
0.289396733,
0.0681314617,
-0.0803179815,
-0.4340829253,
-0.254419744,
0.0692352206,
0.3470929861,
-0.068774119,
0.0581309758,
0.2605253458,
0.2913329005,
0.0728141516,
0.0302233957,
0.1023274958,
0.3324843645,
0.0144099146,
0.1362328827,
-0.0702340379,
-0.1539851427,
-0.1466696858,
0.3840998113,
0.5922679901,
0.0784227178,
0.2981656194,
0.1087243333,
0.1097748429,
0.0894448087,
0.0530195832,
0.2039071023,
0.0658646226,
0.1775875688,
0.5067193508,
-0.0242258497,
0.0737215504,
-0.161668092,
0.3329646885,
0.3019839525,
0.0647389516,
-0.1266437769,
0.1125892997,
0.0120349247,
0.0771591067,
0.1308265477,
-0.3062315583,
0.2695822716,
0.2243548036,
-0.0358173437,
-0.0356408432,
-0.2221835703,
-0.108719252,
0.0581650063,
0.2047242075,
0.0137568004,
0.2202901095,
0.255068481,
0.0539957397,
-0.1373398453,
-0.2441286147,
0.1931726635,
0.1583590209,
-0.0990217626,
0.1024989858,
-0.178075999,
0.598184526,
0.0530726314,
0.0544362515,
-0.1519257426,
-0.3918465376,
0.1261688769,
0.2221517116,
0.0655583143,
0.1626024544,
0.0847123489,
-0.1941846311,
0.1956420392,
0.0266868901,
-0.0524277836,
0.0328530557,
-0.1817345768,
-0.0556355901,
0.4671281576,
-0.0657509193,
0.346768856,
-0.2140845507,
-0.1339967549,
-0.3127365708,
-0.3596590161,
0.0138720609,
-0.0464473888,
0.1118472815,
-0.0844396725,
-0.1321334839,
-0.2101774216,
-0.0616514087,
0.3838852942,
-0.2451172024,
-0.182463333,
0.1848252565,
-0.1050727665,
-0.4156939983,
-0.0517986491,
0.1632779539,
-0.2007571161,
0.0415546596,
0.0667126477,
0.0860702768,
0.4626767337,
-0.1805193424,
0.0466810465,
0.0833032727,
0.114229314,
-0.0243653543,
-0.0521155819,
-0.0890167952,
0.2752707303,
-0.0479846373,
-0.2823194861,
-0.0810269862,
-0.0195020959,
0.0616553128,
0.2946308255,
0.0788059607,
-0.268538475,
-0.218076244,
0.419675827,
-0.0750632584,
-0.0371213406,
0.2952262163,
0.229913339,
-0.2754558623,
0.284627825,
0.0524861813,
-0.1074733213,
-0.1358475685,
-0.0922817364,
0.0228645653,
0.1707636118,
0.257833302,
0.8335021734,
0.1053366512,
-0.3736726642,
0.1181059554,
-0.2024865448,
-0.2785542011,
0.0446262956,
-0.1367221773,
0.2043665648,
0.033970885,
0.0279804468,
0.0777294412,
-0.0069426075,
-0.2329617739,
0.1226839647,
0.2657169104,
-0.2766136825,
-0.1160091832,
0.0890838727,
-0.0251193345,
0.2085810006,
-0.0599843264,
-0.0496156365,
-0.2193581164,
-0.1357399374,
-0.1355384886,
0.139767006,
-0.1594330519,
-0.5324472785,
-0.5082415342,
0.0124837682,
-0.5454756021,
0.5083019733,
0.2737246156,
0.1928674728,
0.1510093063,
-0.1070458367,
0.3085049093,
-0.3585406244,
0.5831416845,
-0.0358354896,
-0.1943232417,
0.1549631953,
-0.5109229684,
-0.3739168048,
-0.0847529024,
-0.1013151556,
0.3901566565,
0.4315740168,
0.775105834,
-0.0408925638,
-0.3296206892,
-0.3171954751,
-0.1898131967,
-0.0759422854,
-0.0733935162,
-0.3145385087,
-0.2553103268,
-0.3619529009,
0.3135709763,
-0.0463147834,
0.2629354,
-0.1495233178,
-0.2197108418,
-0.1490087509,
-0.2139435858,
0.3350399733,
0.0112664849,
0.1755580306,
-0.1104612052,
0.1834636182,
-0.0883741304,
0.0649588257,
-0.0225628577,
-0.321644336,
0.2395231873,
0.0170022007,
0.1262521148,
-0.0186623447,
0.1967799664,
0.4264133871,
0.0258306339,
0.1372719258,
-0.3804464042,
0.6753236651,
0.079481706,
0.2024177611,
0.2228011787,
0.3210679293,
-0.0504432358,
0.3414318264,
-0.0597269237,
0.0975773633,
-0.039486289,
0.0543484464,
-0.4334500432,
0.0717542991,
0.0213813856,
0.436811626,
1.0347921848,
-0.4358526468,
0.1840894669,
-0.1924215406,
0.0834789723,
-0.1007280797,
-0.3134059906,
0.1369256526,
-0.3445005119,
-0.1754266918,
0.0421191901,
-0.1647891551,
0.2886515558,
0.1133080721,
0.0367742181,
0.1739535779,
0.092562899,
0.0989116207,
-0.0623236448,
0.320603013,
0.2186330855,
-0.3813771307,
0.1290141642,
0.1123656183,
0.1768196374,
-0.2750995755,
0.077192314,
-0.0579502583,
-0.1002491564,
0.0317642093,
-0.1086462215,
-0.1455239654,
-0.2593297958,
0.4093880951,
0.3598006964,
-0.0098445415,
-0.175146386,
0.3499307036,
0.0123371687,
0.0349985436,
0.029767992,
0.2201572061,
0.3177928329,
0.0949144512,
0.1105693281,
-0.3497493267,
0.0134543981,
-0.2003431916,
-0.0784498155,
0.1306767464,
0.070853889,
-0.0052538067,
-0.2097006738,
0.2090207785,
0.4415952861,
0.3092518449,
0.0101626031,
0.0367165841,
-0.3541878164,
-0.1117399037,
0.1057372317,
0.0339356586,
-0.2966080308,
0.4594812989,
-0.0079577174,
-0.2622578144,
0.0560865812,
0.1852651387,
0.0278342515,
0.0182013065,
0.2954872847,
-0.2277006954,
-0.3295257092,
-0.1689151078,
0.1978019476,
-0.5355449915,
0.045922339,
0.0405766778,
0.0183425061,
-0.2097240686,
0.1152485535,
-0.0047398303,
-0.1750834733,
-0.0084920153,
-0.2897955179,
-0.1205672026,
-0.4316259325,
-0.2958341837,
-0.3127340674,
-0.0246874336,
-0.1550569236,
0.317630291,
-0.2068933249,
0.0822604522,
-0.3004502654,
0.0303120762,
-0.3680620193,
0.2349939048,
-0.0730731934,
-0.4186653793,
-0.2548904419,
0.0349328667,
0.2051483244,
0.3331360221,
-0.283868432,
-0.2526036203,
-0.0174227953,
0.1183077395,
0.0069771968,
-0.3224287033,
0.0711074173,
0.3588574827,
-0.2826042771,
-0.1976977289,
0.0328669325,
0.0944508538,
-0.2486623377,
-0.2427312285,
0.4648455083,
-0.0264091529,
0.0024899691,
0.0809749812,
-0.1304354072,
0.266195029,
-0.0161992423,
0.0968655422,
0.0903723538,
-0.0383186266,
-0.0171175413,
0.0095337983,
0.312461257,
-0.1557529569,
0.1602586508,
-0.1301524788,
-0.1964569092,
0.0054128207,
0.0661674291,
0.0643635392,
-0.1989088356,
-0.391279161,
0.3398145735,
0.170918107,
-0.1451823413,
-0.1648744494,
0.273242116,
-0.0731097758,
0.1227292717,
0.1467125565,
0.2926250696,
0.1291104108,
0.0293510463,
0.2141937017,
0.0854708478,
-0.6312884092,
-0.3609912097,
-0.3290000856,
0.0278361291,
0.1639047861,
0.4400306046,
-0.1444063932,
-0.1780834645,
0.2677778602,
-0.0944198966,
0.6451376081,
-0.0538249128,
0.3378819525,
-0.0794797391,
-0.059952341,
-0.0833438188,
0.1656213403,
-0.0078390911,
0.2094670832,
-0.1221731752,
0.1142320782,
0.0292199142,
-0.2197521776,
-0.1352490485,
0.7050783634,
-0.3179022372,
-0.3046841025,
0.0875300616,
0.0079260916,
-0.1542817354,
0.121214807,
0.0719908923,
0.2372305393,
0.4211828113,
0.3638753295,
0.0921756476,
-0.0196363945,
-0.2525715828,
-0.0456362143,
0.1920476407,
-0.200683713,
0.2195596993,
0.0583877899,
0.1918110251,
0.043435555,
-0.0627753809,
0.5542597771,
0.4263670743,
-0.4307264686,
-0.0321961418,
-0.0631467849,
0.0459776595,
0.0214260891,
0.2826530337,
-0.1687495261,
0.1781713068,
0.0393702388,
0.0198883638,
-0.3380831182,
-0.5042130947,
-0.0376181975,
0.0465953015,
0.1441509426,
0.3209766746,
-0.0669130087,
-0.3010901213,
0.0428711958,
0.1848433763,
-0.3054602146,
-0.1848951131,
0.3300395608,
-0.3622607887,
0.1010542661,
0.0227026865,
0.0802270025,
-0.1056891084,
0.3916595876,
0.0542833768,
0.2547252476,
-0.2889434695,
-0.0571129546,
-0.5728093982,
0.1688041687,
0.1001292616,
-0.1853970885,
0.0557680093,
0.3687537909,
-0.0032701008,
0.2638691366,
0.2638878226,
-0.0217772238,
0.0840346739,
0.4047760069,
-0.5053956509,
0.6482887268,
-0.1292982548,
-0.1600790173,
0.1227156222,
-0.4431539476,
0.4912438691,
0.0863198042,
0.1505400389,
-0.0308373421,
0.1532616913,
-0.109543398,
0.4072919786,
0.2263589501,
0.1058965921,
0.393953979,
-0.099069722,
-0.0053789392,
0.1252939552,
0.3513064682,
-0.0730175227,
-0.1500098109,
-0.0505194105,
0.0579583049,
0.1224644706,
0.1014471874,
-0.117423676,
0.1152981818,
0.0493202507,
-0.2682155669,
-0.1101317257,
0.0493659005,
0.0971314684,
0.2865617275,
-0.2756015062,
0.3383459151,
0.1794985682,
0.0900952742,
-0.3465448916,
-0.275618434,
0.4185202122,
-0.3566581011,
-0.2835139632,
-0.3566049337,
0.2087512165,
-0.1479453892,
0.3784296811,
-0.0455316007,
-0.2098757029,
0.2967393994,
-0.0251556374,
-0.4643778801,
0.3824311495,
-0.0555942655,
-0.3912914395,
-0.1442773044,
-0.1995297074,
-0.2414439917,
-0.0288867392,
-0.2539630234,
0.0108246878
] |
https://github.com/huggingface/datasets/issues/757 | CUDA out of memory | ```python
tokenizer = FunnelTokenizer.from_pretrained('funnel-transformer/small')
def tokenize(batch):
return tokenizer(batch['text'], padding='max_length', truncation=True,max_length=512)
dataset = load_dataset("bookcorpus",split='train[:1000]').shuffle()
dataset = dataset.map(tokenize, batched=True, batch_size=512)
# dataset = LineByLineTextDataset(
# tokenizer=tokenizer,
# file_path="./wiki1000.txt",
# block_size=128
# )
data_collator = DataCollatorForLanguageModeling(
tokenizer=tokenizer, mlm=True, mlm_probability=0.15
)
config=FunnelConfig(
return_dict=True
)
model= FunnelForMaskedLM(config=config)
training_args = TrainingArguments(
output_dir="./checkpoints",
overwrite_output_dir=True,
do_train=True,
num_train_epochs=1,
per_device_train_batch_size=16,
per_device_eval_batch_size=16,
save_steps=10000,
logging_dir='./ptlogs'
)
trainer = Trainer(
model=model,
args=training_args,
data_collator=data_collator,
train_dataset=dataset,
)
trainer.train()
``` | In your dataset ,cuda run out of memory as long as the trainer begins:
however, without changing any other element/parameter,just switch dataset to `LineByLineTextDataset`,everything becames OK.
| 64 | CUDA out of memory
In your dataset ,cuda run out of memory as long as the trainer begins:
however, without changing any other element/parameter,just switch dataset to `LineByLineTextDataset`,everything becames OK.
```python
tokenizer = FunnelTokenizer.from_pretrained('funnel-transformer/small')
def tokenize(batch):
return tokenizer(batch['text'], padding='max_length', truncation=True,max_length=512)
dataset = load_dataset("bookcorpus",split='train[:1000]').shuffle()
dataset = dataset.map(tokenize, batched=True, batch_size=512)
# dataset = LineByLineTextDataset(
# tokenizer=tokenizer,
# file_path="./wiki1000.txt",
# block_size=128
# )
data_collator = DataCollatorForLanguageModeling(
tokenizer=tokenizer, mlm=True, mlm_probability=0.15
)
config=FunnelConfig(
return_dict=True
)
model= FunnelForMaskedLM(config=config)
training_args = TrainingArguments(
output_dir="./checkpoints",
overwrite_output_dir=True,
do_train=True,
num_train_epochs=1,
per_device_train_batch_size=16,
per_device_eval_batch_size=16,
save_steps=10000,
logging_dir='./ptlogs'
)
trainer = Trainer(
model=model,
args=training_args,
data_collator=data_collator,
train_dataset=dataset,
)
trainer.train()
``` | [
-0.3100787103,
-0.1292370409,
-0.1342047453,
0.1175395548,
0.4688264132,
-0.1441978365,
0.2783527374,
0.099878937,
-0.2433772087,
0.3591910601,
0.0829845667,
-0.0730311796,
-0.1192089692,
0.3212788999,
-0.1076371074,
-0.1704483777,
0.0092365406,
-0.0881269127,
0.0153182726,
0.0442903936,
0.0046651065,
0.015446974,
-0.2489062697,
-0.0319561288,
-0.2206836343,
-0.1371233463,
0.098574549,
-0.0503235683,
-0.1877261102,
-0.39462322,
0.0375735238,
0.1146168038,
0.2151950747,
0.4167883396,
-0.0001027996,
0.1001791805,
0.0244874619,
-0.1405443847,
-0.420407176,
-0.0440919921,
0.2414932698,
-0.2798281908,
0.0506280065,
-0.2537197173,
-0.2172141373,
0.2278189361,
-0.1378429383,
0.1720429808,
0.4584762454,
0.3797527552,
0.343577534,
0.1088276729,
0.0585625619,
-0.0294915512,
0.0538176075,
0.0755454823,
-0.094014205,
0.0066135414,
0.110910967,
-0.1369545162,
0.0238308683,
0.3242061436,
0.0113585293,
-0.0089150798,
-0.0367022231,
-0.0341679975,
0.2736228108,
-0.2479081154,
0.1470224857,
-0.0891442969,
0.1329367459,
-0.3035681844,
-0.0373581722,
-0.1541065276,
-0.0806474388,
-0.4634775519,
0.1043731719,
0.1010241508,
-0.4107734859,
0.0172619745,
-0.0603895783,
-0.0050986074,
-0.013899222,
0.0261219107,
-0.0662514865,
0.5225923061,
-0.1053637415,
-0.0356147364,
0.170846045,
-0.1355097294,
0.4120983779,
0.085305661,
-0.1276613027,
0.0237403177,
-0.2587938011,
-0.187581405,
-0.0713279992,
-0.19863002,
0.0711451918,
-0.1124359444,
0.1579910964,
-0.0060245916,
0.4859351218,
0.0080660023,
0.098006323,
0.3584092855,
-0.1202131957,
0.3187828064,
0.0360644944,
0.1946544051,
-0.21764943,
-0.1244596392,
-0.1859422028,
-0.3380062282,
0.0242839903,
0.0381145962,
-0.0462806746,
0.0161912739,
-0.127180025,
0.168438822,
-0.2535947561,
0.2734712064,
0.1817775667,
0.457090795,
-0.0964736715,
0.2302168906,
0.1769118309,
0.0394962691,
-0.2093317807,
-0.0818558782,
-0.2425554842,
0.1164507419,
-0.3404504061,
-0.1421798915,
0.1027911007,
0.2205394506,
0.3251738846,
-0.1931245923,
0.0395619199,
-0.3057801723,
0.0956946015,
-0.2383188605,
0.0056538992,
0.120123297,
0.3433281779,
0.0877018496,
0.0954148918,
-0.2783067822,
0.1181036904,
0.207596302,
-0.2924017906,
-0.2291510999,
0.2030311674,
0.3269713223,
0.2827208936,
0.168613717,
-0.3689678907,
-0.0063975416,
0.2053465992,
0.1965653896,
0.0562734939,
-0.3184037507,
-0.2173920572,
-0.1352855414,
0.2781274319,
0.3030324876,
-0.190277487,
-0.2108451724,
0.0214640275,
-0.031519793,
0.3774220347,
0.3584522009,
-0.3117790818,
0.4580084682,
-0.067583546,
-0.0518544242,
0.5453791618,
-0.5652977824,
-0.2127520591,
0.1543049216,
-0.1909198165,
0.0454589874,
-0.2386425138,
-0.2231658548,
0.4829890132,
0.0969781652,
0.3733595014,
0.2380768955,
-0.0351434723,
0.1896499097,
-0.2864001393,
0.0090549588,
-0.0297915526,
-0.0055248402,
0.0487133823,
-0.0527740866,
-0.2343463898,
0.1280329674,
0.2338199914,
-0.0104774218,
0.2677805424,
0.3582983315,
0.3073621392,
0.1169661358,
-0.121527575,
0.1936757267,
0.1673586965,
-0.0115870982,
-0.0309381112,
0.1239465326,
-0.0786429495,
-0.2058527172,
-0.0455841571,
0.0828074589,
-0.0156986788,
-0.3593002558,
0.3384871781,
0.0375350416,
0.0266572013,
0.0191311836,
0.1235711873,
0.2986924946,
-0.3541118801,
0.2222426981,
0.2377440184,
0.0852838159,
-0.1885532737,
-0.1800915003,
0.052453734,
0.1183928251,
0.2418251187,
0.0297302641,
-0.0986904651,
0.2562616467,
-0.0663086846,
-0.0891712904,
-0.0937253684,
-0.1130931973,
0.0153394397,
0.0903210491,
-0.0647252649,
-0.020623805,
0.165508613,
0.0199046433,
0.3511835933,
0.2012839317,
0.3272457719,
0.1273165643,
0.2046371102,
-0.0206220411,
0.2332147658,
-0.0857418478,
0.1878331006,
0.0592326075,
0.2610836625,
-0.0133152399,
0.1250681281,
0.0058280639,
-0.223613292,
0.108405605,
0.2264300883,
0.0882092863,
-0.0231085531,
0.2589933872,
-0.2839829028,
0.0118712485,
-0.0420019105,
0.058263123,
0.0772990286,
0.2125341743,
0.1205849126,
0.0230363254,
0.0700102597,
-0.1982044429,
0.2579904497,
0.0380879305,
-0.0887699872,
0.009604278,
0.1740598381,
-0.1931755841,
-0.3281933069,
-0.1449999809,
0.1208067387,
0.4868706763,
-0.1175011843,
0.0966288894,
-0.0272012241,
-0.1130647585,
-0.2430840433,
-0.0940625295,
0.1485601962,
-0.0184286274,
0.0436269753,
0.421328187,
-0.0010327995,
0.3150790036,
0.3121338785,
0.2186198086,
0.1445562243,
-0.0231679566,
0.0133007616,
-0.1335751712,
-0.2880647779,
0.2566813827,
0.219699055,
0.04278161,
0.1171906814,
0.06286183,
-0.0104831867,
-0.0288041756,
-0.0449761972,
-0.0162395258,
0.0228474978,
0.1572991461,
-0.1653054208,
0.2963696122,
-0.2617642879,
-0.4079512656,
0.1808434278,
-0.0604465492,
-0.2805642486,
-0.1905061156,
-0.0001221262,
-0.2679700851,
-0.2092572302,
-0.2167571783,
-0.2778627276,
-0.4542639256,
-0.0103372037,
0.0486838445,
0.0854049176,
-0.0741243958,
0.2338188887,
0.2066885084,
0.212724641,
0.0140998624,
-0.0412976444,
-0.2158884406,
0.0728688836,
-0.2318144888,
-0.1928958893,
0.0099312589,
-0.1537412107,
0.3478006423,
0.156103164,
-0.4876746535,
0.3729530871,
-0.074180387,
-0.2712355554,
-0.1000493839,
-0.0658702701,
0.3611464798,
0.105203867,
-0.2213787735,
0.1072301269,
-0.1624222398,
-0.0407602042,
-0.2125344574,
0.2935685217,
-0.3540355265,
0.6404049993,
0.1446555555,
0.8162136674,
-0.0796793029,
0.0347616971,
0.1796442121,
-0.0052893599,
0.0840146989,
-0.15344356,
-0.2790310383,
0.2999061048,
-0.0641300008,
-0.1879597157,
0.2040009946,
-0.0071198475,
-0.3185493052,
-0.0618810877,
0.0575091392,
-0.2475689948,
-0.397837013,
0.2112483531,
0.1501995623,
0.2670521438,
-0.0949290991,
0.0659342706,
-0.1520653069,
-0.0933322608,
-0.140484482,
-0.0002466403,
-0.2391548902,
-0.0435562655,
-0.3146160841,
-0.0192612652,
-0.5928470492,
0.0117927231,
0.0448499657,
0.2776107788,
-0.0176499709,
-0.0586581603,
0.0439760834,
-0.1235128716,
0.7291724682,
0.1925560385,
-0.0641696155,
0.0535027869,
-0.2891407907,
-0.1317946166,
-0.0719976872,
-0.2500882745,
-0.0896916389,
0.2495449781,
0.1464290321,
-0.0683420002,
-0.0660944209,
-0.0443850867,
-0.1496639252,
-0.0953737721,
0.1433292776,
-0.0345513485,
-0.3247776926,
-0.3178598285,
0.4709647,
0.2082360387,
0.2264200896,
-0.0420390889,
-0.2081310153,
-0.0624820888,
-0.181087926,
0.1463858038,
0.0344938189,
0.2394468635,
0.1030667573,
0.1047033817,
-0.2255033553,
0.1473953277,
0.3487258554,
0.056993179,
0.2948226035,
-0.2132101357,
0.0019886866,
0.1858611107,
0.24237746,
0.3444126248,
0.1217528805,
0.3838117123,
-0.1805281043,
0.3563896418,
-0.0233823545,
0.5706769824,
0.1339720339,
0.2940817773,
-0.5356919765,
-0.1441347301,
-0.0733004287,
-0.0229519419,
0.1358524859,
0.3842633963,
-0.2950779498,
-0.4676643312,
0.2749306262,
0.0158592705,
0.8640154004,
0.0037843399,
0.2327531427,
0.2273002565,
-0.1183487251,
-0.0840130299,
-0.4700306654,
0.1709435582,
-0.1486389935,
0.0223434679,
0.073108092,
-0.01756832,
0.1096456498,
0.0520219095,
-0.2435225546,
0.0195083432,
-0.1968874633,
0.0436731279,
-0.1842476577,
0.0784864351,
0.1523486674,
-0.2294081748,
-0.158288613,
0.3006845117,
0.0136540569,
-0.0153819388,
-0.1721970886,
0.1416708827,
0.1015125066,
-0.1955586374,
-0.1096818,
-0.0296463594,
-0.6171454191,
-0.0148990583,
-0.0467372611,
-0.4415020347,
-0.0558968149,
0.1309692413,
0.2249737382,
0.3476775885,
-0.0277320761,
0.4075203538,
0.1552724838,
-0.0709674805,
0.0084358416,
0.0882743299,
0.2131492198,
-0.146382466,
-0.2049344778,
0.2800981402,
-0.0239803866,
-0.245844543,
-0.1298464537,
-0.0052153692,
0.0893297419,
-0.3025334775,
-0.1445053071,
0.1670949757,
-0.2835958004,
-0.1976291984,
0.2629663944,
-0.1794407666,
-0.345163703,
-0.0516927317,
0.2241318226,
-0.1548500061,
-0.1165102273,
0.1556388587,
0.1142619699,
0.0887873918,
0.4982994795,
0.0722694546,
-0.1852855682,
-0.3376314938,
-0.099650085,
0.3330568075,
0.2025567591,
0.1904194802,
0.1405811906,
-0.178684622,
0.0843879431,
0.2934963405,
-0.0304420888,
0.1074916869,
-0.0709208697,
-0.1166765541,
-0.5866554976,
-0.0473162234,
-0.065633148,
0.0548392124,
0.0482312217,
0.6134431362,
-0.048916053,
0.0141097438,
-0.4224279523,
0.1629425436,
-0.4016976953,
0.3556699157,
-0.3384855986,
-0.2318290174,
0.0710264295,
0.1506135017,
0.2422724366,
0.3419396281,
-0.1139195263,
-0.4090701342,
-0.1222185418,
0.0248393118,
0.1291027367,
-0.1395439506,
0.1018722057,
-0.0636720881,
-0.1137401313,
-0.2677372098,
0.1700219512,
0.2002907693,
0.0035484675,
-0.1849631071,
0.0020733867,
0.2846565843,
0.0880319476,
-0.0798813775,
0.0733500719,
-0.0980492234,
0.2036529034,
-0.0998680964,
0.1082953364,
0.0222570449,
-0.3535290062,
0.0179361925,
0.0953890905,
0.170788765,
-0.0110187512,
-0.153804034,
-0.2709652185,
0.058976192,
0.0929038227,
0.1874953061,
-0.1579523683,
-0.0051910691,
0.602673173,
0.3695811331,
-0.2009858638,
0.1199313849,
-0.0933580175,
-0.2630319297,
0.1861789227,
0.1145233214,
-0.2968791127,
-0.1913565099,
0.0389552787,
0.2686977684,
-0.0513365939,
-0.3590492606,
0.1856439263,
-0.1367129534,
-0.1490941048,
0.0012122598,
0.0390713662,
-0.0112080351,
0.2023047507,
0.4113551676,
0.0242126361,
0.223420009,
-0.0093107391,
0.0759715587,
-0.2070942819,
-0.1292758882,
-0.4814422131,
0.1469445527,
-0.1471956521,
0.1422040761,
-0.1822512299,
0.0924174488,
0.0629551113,
-0.3733500838,
-0.2284041047,
-0.0257235877,
-0.4991272092,
-0.1693497598,
-0.1390728951,
0.0932764485,
-0.0430419967,
0.1080243811,
0.2271231115,
-0.227285713,
-0.002161175,
-0.0101460665,
-0.2188066244,
-0.0737403408,
-0.0802895129,
0.2493524104,
0.0023891367,
-0.2413364649,
0.1899196357,
-0.1874285787,
-0.1118921638,
-0.1612053216,
0.0446364358,
0.3779860735,
0.360488236,
-0.0842974335,
0.0188741162,
-0.1190738678,
-0.0572737344,
-0.2295381874,
0.1885080636,
0.5024800897,
0.3665908575,
0.0358610414,
0.2906793356,
-0.3719215095,
0.0271871686,
0.2588149905,
-0.1794045717,
-0.1993596107,
0.1815937757,
0.1272801757,
0.0256970823,
-0.3239848912,
0.0107725784,
-0.4952420592,
0.1463080347,
0.188674897,
-0.0784360468,
0.1943071634,
-0.1073897108,
0.1361710131,
-0.1501719356,
0.353618294,
0.0934941322,
-0.0816854835,
-0.2944379747,
-0.2529090643,
-0.2216196954,
0.0027101561,
-0.2570442557,
0.2615670562,
-0.2474881709,
0.1016445905,
-0.1807217151,
0.0619050823,
-0.2251427472,
-0.1818198711,
-0.1386443824,
-0.1433752477,
-0.4553713799,
0.0009005151,
-0.3338021338,
0.2049724162,
0.2946282029,
-0.271535933,
0.1546804011,
-0.204543218,
0.1988460124,
0.200481385,
0.1226142198,
0.0814025849,
0.0494871959,
0.2690640092,
-0.1180237457,
0.2488262802,
0.0066955462,
0.2343771458,
-0.127274856,
-0.2208385766,
-0.1644575298,
-0.1328841448,
0.2034689784,
0.3435234427,
-0.151296854,
-0.1147878319,
-0.1901461929,
0.0819564611,
0.2690297961,
-0.091813013,
0.1933836341,
0.2084005326,
0.2739051878,
0.1507563591,
0.0112293661,
0.3407839835,
-0.0216362067,
0.0838732421,
-0.3645594716,
-0.3167022467,
0.5697757006,
-0.3233435154,
-0.3560693562,
0.0281232633,
0.0793675631,
0.3703939319,
-0.103385359,
-0.600409925,
0.0551451147,
0.0919702947,
0.0242194422,
-0.4487529397,
0.3624129593,
-0.2732499242,
0.1349339038,
0.0062523112,
0.5045968294,
-0.029455997,
-0.1434838176,
0.1576817483,
-0.2444411069
] |
https://github.com/huggingface/datasets/issues/757 | CUDA out of memory | `RuntimeError: CUDA out of memory. Tried to allocate 954.00 MiB (GPU 0; 15.90 GiB total capacity; 14.35 GiB already allocated; 753.75 MiB free; 14.39 GiB reserved in total by PyTorch)
Exception raised from malloc at /pytorch/c10/cuda/CUDACachingAllocator.cpp:272 (most recent call first):`
part of error output | In your dataset ,cuda run out of memory as long as the trainer begins:
however, without changing any other element/parameter,just switch dataset to `LineByLineTextDataset`,everything becames OK.
| 44 | CUDA out of memory
In your dataset ,cuda run out of memory as long as the trainer begins:
however, without changing any other element/parameter,just switch dataset to `LineByLineTextDataset`,everything becames OK.
`RuntimeError: CUDA out of memory. Tried to allocate 954.00 MiB (GPU 0; 15.90 GiB total capacity; 14.35 GiB already allocated; 753.75 MiB free; 14.39 GiB reserved in total by PyTorch)
Exception raised from malloc at /pytorch/c10/cuda/CUDACachingAllocator.cpp:272 (most recent call first):`
part of error output | [
-0.2118012905,
-0.1436041594,
-0.1251239479,
0.3756680489,
0.4871857464,
0.0221622437,
0.2372638285,
0.1879339069,
-0.0591315813,
0.3615152836,
0.2032217681,
0.0899499953,
-0.1103606001,
0.061556913,
-0.0812174976,
-0.2425248325,
-0.1598562151,
-0.0211354382,
-0.2000564486,
0.0185324326,
-0.0547572672,
0.0996785387,
-0.2718255222,
0.018651057,
-0.4758868217,
-0.2184394449,
0.0810011998,
0.1155063659,
0.1469691545,
-0.2040055692,
0.0754878968,
-0.259085089,
0.0466847271,
0.5353174806,
-0.0000942944,
-0.0917868167,
0.0012608599,
-0.0493776426,
-0.1668543518,
-0.0935568586,
0.2256602198,
-0.0973297656,
0.1699951291,
-0.3079277277,
-0.2159548998,
0.1849446446,
-0.1372166574,
-0.238329649,
0.287345767,
0.449896276,
0.3909004331,
-0.0431756005,
0.0861905664,
-0.1659831703,
-0.0875584856,
-0.1732177734,
-0.0146955959,
0.0005476549,
0.138157934,
-0.0281153712,
-0.0035987608,
0.1856386662,
0.0475579351,
0.0354329795,
0.0543557517,
0.0449393317,
-0.0405001938,
-0.2167179286,
0.0772738159,
-0.0306699537,
0.1178380772,
-0.2315412462,
0.0958704352,
-0.038761884,
0.0093951002,
-0.413179189,
0.1378810257,
0.1859948784,
-0.3922761083,
0.0164076053,
-0.2586278319,
-0.0303193647,
-0.0934138298,
0.0631962568,
-0.1956586838,
0.00808933,
-0.1182058305,
0.0632064566,
0.2467139214,
-0.0173122361,
0.2066461593,
0.0911495239,
0.0142325209,
-0.0221963897,
-0.2829048038,
-0.0232097432,
-0.1080686525,
-0.3290320635,
0.0293363631,
-0.1882707179,
0.227649644,
0.0041553527,
0.1609885097,
0.0526033677,
0.1466837972,
0.3722297251,
-0.3857886791,
0.0974768102,
0.0332978144,
0.086517483,
-0.3276965618,
-0.2392991483,
-0.0550299473,
-0.3216644526,
0.0693225861,
-0.0124911116,
0.0669359416,
-0.1325986385,
-0.1062623188,
0.2111892104,
-0.2619425654,
0.2171587795,
0.1159811839,
0.2579931617,
-0.1407434195,
0.143176645,
0.1726023555,
-0.0793246925,
-0.1121671125,
-0.0890851542,
-0.3556942046,
0.1650256515,
-0.3696237206,
-0.0468621254,
0.1952003837,
0.012224745,
0.3212686181,
-0.1181157231,
0.2026346624,
-0.4704038799,
0.0320863426,
-0.3434740007,
0.0106649883,
0.064737469,
0.1504802853,
0.0602487847,
0.0967099965,
-0.0062756613,
0.2173628956,
0.3751480877,
-0.2610057592,
-0.3041602671,
-0.0635330677,
0.3546235561,
0.2509841621,
0.1194562614,
0.0315395519,
0.000118829,
0.2730513513,
0.0621280968,
0.0361012444,
-0.1540492773,
-0.0545565411,
-0.1836686879,
0.347176075,
0.1888012886,
-0.2707558274,
0.0562874973,
0.2198929638,
0.0580808744,
0.1811885685,
0.4126348197,
-0.3015066087,
0.1460336,
-0.1990499794,
-0.1652382463,
0.2115194052,
-0.168420881,
-0.2656311095,
0.033698488,
-0.0929883793,
-0.1253864467,
-0.1957144737,
0.0292375758,
0.2991102934,
0.2234297246,
0.2497169375,
0.1406294256,
-0.2569423616,
0.0725274757,
-0.3540613651,
-0.1874578744,
0.1888195127,
0.05513414,
0.315944463,
-0.0105229393,
-0.2614679337,
0.1066226959,
0.1901459247,
-0.057961937,
-0.0212718118,
0.1260484159,
0.3186983466,
-0.0929766223,
-0.0987952873,
-0.0475212671,
0.0558385476,
0.0396545008,
0.066314511,
0.1411863565,
-0.1820720285,
0.004149504,
-0.0556849353,
-0.0952627361,
0.0390259549,
-0.2896197736,
0.3484511673,
0.0579233021,
-0.1184399426,
-0.0052982047,
-0.0020452514,
0.3104231656,
-0.4857843518,
0.0727452263,
0.0900417864,
0.1761502922,
-0.2769615352,
-0.2281683534,
0.0018617809,
0.1827632636,
0.1517068446,
-0.0721074343,
-0.1934699416,
0.2518943846,
-0.0209871642,
-0.203734532,
-0.1180720404,
-0.0767886043,
0.1183429882,
-0.0845875889,
-0.0492651165,
0.0054366123,
0.1151403934,
-0.0370788798,
0.127740711,
0.0058230907,
0.1121654809,
0.0126650184,
0.0891129225,
-0.0318652168,
0.1537890434,
-0.0675355941,
0.3522222638,
-0.0360479951,
0.0746682435,
0.2333029658,
0.2196899354,
0.0484547764,
-0.3491225839,
-0.0526745692,
0.3689390421,
0.1791173667,
-0.0128229372,
0.2499062717,
-0.1032722741,
0.0485810786,
-0.0381969362,
-0.1489260197,
-0.0114669129,
0.2289576977,
0.0813970864,
0.170239076,
-0.001485344,
-0.1016813964,
0.1454585791,
0.1066217348,
0.2321871966,
-0.1190154776,
0.0962336212,
-0.0347756371,
-0.20559147,
-0.1354939342,
0.2554320693,
0.4957813621,
-0.1811135858,
-0.0380416065,
-0.1817544997,
-0.1290147007,
-0.1607398391,
-0.0649126172,
-0.0140387537,
-0.0476050228,
0.0061220806,
0.2428814471,
0.0315908268,
0.3472574055,
0.1770737618,
0.2584714592,
0.1215741262,
0.152034983,
0.202197656,
-0.2745968699,
-0.1216749251,
0.2975050807,
0.2598124743,
-0.0124940909,
0.1879578084,
0.1682830453,
0.0326672681,
0.1049640775,
-0.0073339492,
-0.114093028,
0.0201443043,
0.1777548492,
-0.2008754015,
0.1997719854,
-0.1199363619,
-0.2861015797,
0.2192392796,
0.0083032548,
-0.1159450412,
-0.0851342753,
0.1891162097,
-0.1369486153,
-0.15084216,
-0.2441035211,
-0.1137450412,
-0.3596757948,
-0.0707693994,
-0.0618628673,
0.1203526407,
-0.1065526307,
0.3134255707,
0.382746011,
0.0811478347,
0.0531453788,
-0.1908713877,
-0.1974185407,
-0.08662498,
-0.135098815,
-0.2241241932,
0.012901403,
0.1013910025,
0.4695521295,
0.0152682066,
-0.6003519297,
0.029169295,
-0.0662458315,
-0.054073073,
-0.0895544812,
-0.172244668,
0.4207228124,
0.0196295641,
-0.2582043409,
0.1793516278,
-0.1991145164,
0.0609939322,
-0.122990869,
0.166445002,
-0.2458260059,
0.6156349182,
0.2445937246,
0.580391407,
0.0293948948,
-0.1628428996,
0.1924741864,
-0.1467559487,
0.1456642747,
-0.2136935592,
-0.3373976648,
0.3285888433,
-0.2230759561,
-0.372250855,
-0.0171128437,
-0.2398682088,
-0.2466320992,
-0.2296698689,
0.0987698436,
-0.1799256206,
-0.2937253118,
0.1986032724,
0.0552717336,
0.180899173,
-0.1025267094,
0.0867988095,
-0.0677145123,
0.0408193991,
-0.0348981321,
-0.1857334822,
-0.0566517338,
-0.1185686588,
-0.172561273,
-0.1408479214,
-0.2354024649,
0.1992799938,
-0.0753853619,
0.231415242,
-0.1360680163,
-0.0095633641,
0.06424997,
-0.093590945,
0.5463865995,
0.4751860499,
-0.2689294815,
0.1434053034,
-0.3233283758,
-0.0171128176,
-0.0441881604,
-0.1852473617,
0.1693896055,
0.2353737354,
0.1539681554,
-0.0898827612,
-0.0436336063,
0.0779501274,
-0.0135366544,
-0.1640753299,
0.0817307234,
-0.041062288,
-0.1666168869,
-0.2393948138,
0.3663628399,
0.068989642,
0.3136426806,
0.0140892155,
-0.284758389,
-0.0850649625,
-0.3089562953,
0.0584316477,
-0.0208030492,
0.3193124533,
0.0104777142,
0.1350443065,
-0.2640311718,
0.2954732776,
0.1380929798,
0.030128194,
0.1311090589,
0.231734544,
0.1520991623,
-0.0048915371,
0.3407326937,
0.1574313939,
0.0023291335,
0.0391833633,
-0.0219142772,
0.3902663291,
-0.1159142703,
0.3335331678,
0.2773240805,
0.2140949517,
-0.3580306172,
-0.2283449918,
0.1492251009,
0.0847176909,
0.123562932,
0.5383536816,
-0.0797041208,
-0.2866716087,
0.0895335376,
0.2135760337,
0.8268971443,
-0.1299594641,
0.102219075,
0.202688396,
-0.1659128368,
0.2399532646,
-0.0622143149,
0.2329430282,
-0.2149166018,
-0.139324531,
0.0242632106,
-0.0390881673,
0.1224852726,
-0.0461102128,
-0.2585183978,
-0.0151258186,
-0.2253756523,
-0.0566123053,
-0.1153114215,
0.0038394108,
0.2276585251,
-0.2236822546,
-0.0902878568,
0.3301520646,
-0.1999337822,
-0.1413723528,
-0.0961848199,
0.1016441733,
0.2570006251,
0.1042393446,
-0.3447308838,
-0.0503951423,
-0.5622709394,
0.0710709393,
-0.2664098442,
-0.4682616591,
0.0003383532,
-0.028303355,
0.212062344,
0.2580198348,
0.0051961485,
0.2802524567,
-0.0005391631,
-0.0636647865,
0.0032795481,
0.2407023907,
0.4479747713,
-0.1849562526,
-0.2873692811,
0.5506262779,
0.0019772872,
-0.2876964808,
0.1027589142,
-0.007673312,
-0.0647219047,
-0.395223856,
-0.3604305089,
0.1480996609,
-0.1487224102,
-0.2114573866,
0.3057724535,
0.1042608023,
-0.2607137859,
0.0723365471,
0.10138423,
-0.2181289196,
-0.1287755072,
0.1555969566,
0.2336169481,
-0.0123213381,
0.4842815399,
0.2296358645,
-0.1145040393,
-0.2515180409,
-0.2586406469,
0.3390381932,
-0.0731497854,
0.1311487556,
-0.0318764411,
-0.0501877964,
0.1253538579,
0.3023047745,
0.1005001962,
0.2856652737,
-0.1165958643,
-0.0184924081,
-0.7076212168,
-0.0653290525,
-0.0600253567,
0.218603611,
0.0235089064,
0.3910015821,
0.0562733784,
0.0909729004,
-0.4736712575,
0.177046746,
-0.5639107227,
0.2904714644,
-0.25666219,
-0.2054287642,
0.0416060016,
0.0040292516,
0.2464374751,
0.4243369699,
-0.0476633608,
-0.4267261028,
0.0216062218,
-0.0419054329,
0.1166374758,
-0.1029612795,
-0.0304949731,
-0.2445809543,
-0.1433238387,
-0.1361955702,
0.1577349603,
0.1895405054,
-0.0476866812,
0.1194984615,
-0.109606877,
-0.0695389956,
0.0237497687,
-0.1213800907,
0.0675211027,
0.1495756656,
0.3131263554,
-0.0734326094,
0.1248151511,
-0.0373872593,
-0.4617176652,
0.0833918974,
-0.0993267298,
0.1193156391,
0.0694815814,
-0.3183685839,
-0.2227094173,
0.1084953696,
0.1746730506,
-0.0177029148,
-0.1391635984,
0.0164276138,
0.3587085903,
0.4299485683,
-0.2469258159,
0.2003047168,
-0.144324109,
-0.1612069756,
0.139800474,
0.1216746494,
-0.1282647252,
-0.1331650019,
0.0532888882,
0.2242799103,
0.0956678689,
-0.3333974183,
0.090654403,
-0.0894695967,
-0.1064483076,
-0.1372925788,
0.1221796721,
0.1889847964,
0.2547171116,
0.4937034547,
-0.1295209229,
0.268976301,
0.0964153111,
0.0695051551,
-0.0760657564,
-0.1202312484,
-0.2427152991,
0.1334981024,
-0.1890619248,
0.0296561401,
-0.3137654364,
0.191295445,
-0.1022822708,
-0.425188154,
-0.1854678839,
0.1470761448,
-0.50793612,
0.136040926,
0.0604729578,
-0.1074743718,
0.0550124422,
0.1124254912,
0.1630517989,
-0.2354059219,
0.2463977337,
0.0221468695,
-0.3643347323,
0.0353301316,
-0.0773713142,
0.2141332924,
0.038622003,
-0.1875312924,
0.3076167107,
0.1620954573,
-0.2236950547,
-0.1291544139,
0.2275909036,
0.3513894677,
0.3235750496,
-0.0998088121,
0.1433091015,
0.0217639618,
-0.0817325786,
-0.0720934272,
0.0789102316,
0.4305180311,
0.2887812555,
0.1629037708,
0.3104508817,
-0.2854379117,
0.199496448,
0.2230199426,
0.1595558375,
-0.3771573603,
0.1278301179,
0.0198393147,
-0.1377461702,
-0.2737796009,
-0.024592448,
-0.3497671485,
0.1815813929,
0.1511023939,
-0.2821188271,
-0.0140581056,
0.0394456312,
0.1760408282,
-0.0886110589,
0.5066297054,
0.1213655621,
0.0465276614,
-0.4374960661,
-0.3422834277,
-0.2839966416,
0.1650444567,
-0.1825188249,
0.256449312,
-0.0810850188,
0.1938934028,
-0.0959535018,
-0.1081768647,
-0.0486620441,
0.0746899322,
-0.0253947116,
-0.091033563,
-0.4974970818,
-0.0855907127,
-0.364212364,
-0.0255064741,
0.1854836345,
0.0089819729,
0.1564376354,
-0.2137865871,
0.2555189729,
0.1485173553,
0.1038044989,
-0.030718945,
0.2767016292,
0.3055877686,
-0.1157961041,
0.1302893311,
0.2141683102,
0.1882018447,
-0.0287707187,
-0.2173265517,
-0.0955251083,
0.0016782638,
0.3564402163,
0.2714662552,
-0.1065702289,
-0.0464788936,
-0.2048799992,
0.2488591671,
0.1599500775,
-0.2749100924,
0.1392543018,
0.0183737278,
0.2895312607,
0.0470944121,
0.3179521561,
0.476344645,
0.0271087158,
0.031096831,
-0.3615965843,
-0.2376407981,
0.504350841,
-0.0995832607,
-0.3100988567,
-0.1498209834,
0.0823995098,
0.2493330687,
-0.1075265557,
-0.7183139324,
-0.1950539947,
0.1931871027,
-0.0899087787,
-0.3274354339,
0.1808324009,
-0.2372246534,
0.0768354386,
0.1003221944,
0.3857812583,
-0.0535828471,
-0.108403489,
0.0701346695,
-0.2166675031
] |
https://github.com/huggingface/datasets/issues/757 | CUDA out of memory | from funnel model to bert model : error still happened
from your dataset to LineByLineTextDataset : error disapeared | In your dataset ,cuda run out of memory as long as the trainer begins:
however, without changing any other element/parameter,just switch dataset to `LineByLineTextDataset`,everything becames OK.
| 18 | CUDA out of memory
In your dataset ,cuda run out of memory as long as the trainer begins:
however, without changing any other element/parameter,just switch dataset to `LineByLineTextDataset`,everything becames OK.
from funnel model to bert model : error still happened
from your dataset to LineByLineTextDataset : error disapeared | [
-0.2429935932,
-0.0383690894,
-0.0662144795,
0.1940218061,
0.5733141303,
-0.0968496725,
0.3483142555,
0.0940258056,
-0.0914316177,
0.4046832919,
0.0462235808,
0.0135815553,
-0.0812720954,
0.3208118677,
-0.1960564852,
-0.3946532011,
-0.0328097343,
0.0102435537,
-0.1957314461,
-0.0121694058,
-0.0123564675,
-0.0033931341,
-0.1592793167,
0.0870995075,
-0.1410437375,
-0.0377283655,
0.0021219626,
0.009035239,
-0.1163757816,
-0.2628358305,
0.0889436305,
-0.0642802268,
0.1672819406,
0.3281093538,
-0.0001007679,
0.133954227,
0.1042969674,
-0.1116643697,
-0.2635500431,
-0.172959134,
-0.1789838374,
-0.1399425864,
0.2102271914,
-0.2823681235,
-0.1664159894,
0.4420575798,
-0.0516922325,
0.0337315202,
0.5577890873,
0.4128129184,
0.335689038,
0.1212379709,
0.1510003358,
-0.2648307681,
0.2176370472,
-0.0050716549,
-0.042560067,
-0.040778853,
0.1038936079,
-0.0698298514,
-0.0774987265,
0.3561422825,
0.132995218,
0.148511216,
0.154726848,
-0.0627808273,
0.1188861281,
-0.2141758949,
0.1081305295,
0.1221960783,
0.1534585953,
-0.1914736927,
-0.0599849112,
0.0532140583,
0.0153943039,
-0.318294704,
0.1467737556,
-0.0166956596,
-0.3548558056,
0.0946362466,
-0.1052351445,
-0.2175525725,
-0.1025776267,
-0.1140933484,
-0.1665933728,
0.1490672976,
-0.0371917598,
-0.0587537512,
0.2903484702,
-0.125405252,
0.3205075562,
0.1537185609,
0.0427100733,
-0.0738140941,
-0.2277665287,
-0.1170419753,
-0.0533464774,
-0.1595799178,
0.0571264848,
-0.3830278814,
0.2500422895,
-0.1162568927,
0.1959921122,
0.0353543684,
0.3170462251,
0.2862796485,
-0.3701384664,
0.2391141206,
0.0503856316,
0.1746370941,
-0.3613768816,
-0.2272458076,
-0.1112042442,
-0.3267974257,
-0.080059275,
-0.0327491984,
0.0792790651,
-0.1619872153,
-0.2722685635,
0.1725319922,
-0.2548823357,
0.2640635967,
0.2559899092,
0.4726041853,
0.0060154423,
0.2089018524,
0.1321830302,
0.0104281623,
-0.0713888258,
-0.0696887225,
-0.2688013017,
0.0624104477,
-0.3850223124,
-0.1537840068,
0.1105827317,
0.0035169479,
0.2379929125,
-0.102634117,
0.0520371199,
-0.1890202165,
0.0747668073,
-0.320900768,
0.0013835356,
0.1301467419,
0.3464880288,
0.0360811949,
0.0200099219,
-0.0249870941,
0.2250244319,
0.2758369446,
-0.4562956393,
-0.3984078765,
0.0950752124,
0.2998204529,
0.3816589117,
0.0991172791,
-0.1765723675,
0.1599656045,
0.1963943094,
-0.0491388775,
-0.0305245109,
-0.2006738037,
-0.0990438312,
-0.1039263606,
0.3158837259,
0.3916211426,
-0.4216261804,
-0.1140595376,
-0.1328942031,
-0.0142196864,
0.3896187842,
0.5055036545,
-0.4047174752,
0.1558744758,
-0.0543605946,
0.0269640163,
0.335577935,
-0.2730365396,
-0.2073610127,
0.1021933183,
0.0825999007,
-0.0646452382,
-0.2675145864,
-0.2481892407,
0.3915964365,
0.0264493376,
0.2502967417,
0.0818308145,
-0.258081466,
0.1815285683,
-0.2347031385,
-0.0493546575,
0.1143745631,
-0.0836781859,
0.2223151326,
0.0171531849,
-0.228884995,
0.3926403224,
0.0965139121,
-0.1182947755,
0.1400401592,
0.287497431,
0.3379264176,
0.009010829,
-0.0741015524,
0.1534021497,
-0.0264255628,
-0.0433662757,
-0.0966738164,
0.0782344639,
-0.0732003078,
-0.1002271324,
-0.0470797047,
0.0761651173,
0.0329090059,
-0.2485425919,
0.3355543017,
0.0063600037,
-0.2455240339,
-0.0719643906,
0.0238837972,
0.061783053,
-0.4273533821,
0.1283401549,
0.2538414001,
0.1770504266,
-0.3252506554,
-0.064697966,
0.0731211007,
0.1953130066,
0.1215330362,
0.0226772837,
-0.1938195676,
0.2192294449,
-0.0949142426,
-0.005696699,
0.132139802,
-0.2101240456,
0.0761881545,
-0.1818876863,
-0.1389002502,
-0.0490955934,
0.2414444983,
0.0396054313,
0.0389333889,
-0.0427989364,
0.2721201181,
0.1030701846,
0.274695158,
0.0665909871,
0.3181392252,
0.0306629241,
0.2861679494,
-0.1076057479,
0.1705531478,
0.130548209,
0.316926837,
0.0225527082,
-0.3410428166,
0.0226455554,
0.4099620283,
0.2349960953,
0.032431718,
0.2992374301,
-0.1192657351,
-0.1215240359,
-0.056028299,
-0.0252684355,
0.0644887388,
0.1640001684,
0.1957207471,
0.0184661616,
-0.0664574951,
-0.1216933951,
0.2433013171,
0.094361186,
0.0452733561,
-0.1018355489,
0.1776281446,
-0.1306375861,
-0.2493301779,
-0.0861567631,
0.232369259,
0.4989033639,
-0.228473857,
0.0629907176,
-0.0876248777,
-0.0317606367,
-0.1993571371,
-0.3456010818,
-0.0594016761,
-0.0510535538,
0.1763632894,
0.2323435396,
-0.086849913,
0.300381124,
0.3504379988,
0.2910867631,
0.0862325206,
0.3323000073,
-0.0694114044,
-0.2761392593,
-0.1076880395,
0.2419591248,
0.2913652062,
0.0424759574,
0.045102641,
0.0642616823,
0.0696690381,
0.0128547866,
-0.1309444904,
0.0154972468,
0.0609393083,
0.2333248109,
-0.0094482377,
0.3017678857,
-0.2326460183,
-0.3526657522,
0.221034497,
0.0122784898,
-0.2054138184,
-0.0669535175,
0.0479297712,
-0.1271323562,
-0.1160667688,
-0.2654437721,
-0.1898764074,
-0.414649874,
-0.1663345844,
-0.1074047387,
0.0727819949,
-0.2737416029,
0.2912784219,
0.3617986739,
0.2805694342,
-0.0100736842,
-0.0860191807,
-0.1375759393,
-0.1062792391,
-0.2191570699,
-0.2372314483,
-0.0587486327,
0.1296005696,
0.3659158051,
0.0628581345,
-0.4608675838,
0.2224969715,
-0.0445925742,
-0.3251988888,
0.0333272107,
-0.125855267,
0.3331926167,
0.1592571586,
-0.251731962,
0.0018172488,
-0.0933879614,
0.0826420933,
-0.2295020521,
0.2506912947,
-0.4444754124,
0.6022289991,
0.0526819378,
0.8941943645,
-0.1279268414,
-0.0536748767,
0.3798965216,
0.0599210858,
0.1554173827,
-0.3653227389,
-0.281101346,
0.2810937166,
-0.1616919041,
-0.217843771,
0.0793063864,
-0.21245794,
-0.3545597494,
-0.2142680585,
0.0506603867,
-0.1614796519,
-0.3749132454,
0.1603237092,
0.1664028466,
0.2591390014,
0.0793324411,
0.0330845788,
-0.0824035257,
-0.0262372196,
-0.061865449,
-0.0066176727,
-0.0404132605,
-0.1220668554,
-0.021758303,
-0.2404597402,
-0.5254936814,
0.2049482614,
-0.0368580557,
0.1265742928,
-0.210607335,
-0.0097339377,
0.0357162841,
-0.2114922702,
0.6061284542,
0.2060276419,
-0.2061776817,
-0.0451470688,
-0.1212495416,
-0.0043880418,
0.0452688113,
-0.2596741319,
-0.0493763536,
0.2248397768,
0.1728411317,
-0.1016691774,
-0.0797531605,
0.0945250914,
-0.1879914701,
-0.1370825022,
0.1349073946,
-0.0498631187,
-0.0842897743,
-0.3133472204,
0.3950281739,
0.0774300545,
0.1835725009,
-0.0899281949,
-0.2849118114,
-0.1212123632,
-0.113836199,
0.0061074607,
0.0708376318,
0.2786098421,
0.0029744431,
0.1523187757,
-0.2993788421,
0.3828772604,
0.5157997012,
0.119018048,
-0.0874170214,
-0.1902520061,
0.185858652,
0.1249069497,
0.1454901993,
0.2861868441,
0.1257539988,
0.18245399,
0.0727725923,
0.2340397388,
0.1402715147,
0.4638525248,
0.2891493142,
0.2993735075,
-0.4249512553,
-0.1256251037,
0.0856914818,
-0.0340141058,
0.0835330039,
0.2930767834,
0.0490732454,
-0.3022392988,
0.3243860602,
0.0870446414,
0.863928318,
-0.0792955086,
0.180226326,
0.1918716282,
-0.1709982753,
0.1523241103,
-0.0937044844,
0.1080512106,
-0.1515618414,
-0.0322040021,
-0.0175328478,
0.0499060974,
0.03765551,
-0.0029825829,
-0.3940144777,
0.0134874955,
-0.2069326937,
-0.1053627506,
-0.2126816511,
-0.0633781552,
0.2877334952,
-0.1858208477,
-0.2617963254,
0.268819809,
0.0012028096,
-0.0332704484,
-0.1494916528,
-0.1048862338,
0.3056619763,
-0.144726932,
-0.2445027083,
0.029904671,
-0.5581150055,
0.0275690742,
-0.1809766889,
-0.5129506588,
0.1047143117,
-0.0081555508,
0.297390461,
0.1603410691,
-0.1886996925,
0.4027434587,
0.1041326374,
-0.0309404377,
-0.0584829897,
0.2015682757,
0.3738809824,
-0.2004857212,
-0.2093764842,
0.3739481866,
-0.1468417943,
-0.2974855304,
0.0071602166,
-0.0817927718,
0.2527706623,
-0.3473980129,
-0.2459540814,
0.2132870704,
-0.1670851558,
-0.2638562322,
0.2789064944,
-0.1355577111,
-0.1837315857,
-0.075605616,
0.0795595348,
-0.1285529286,
-0.0947051048,
0.0497824103,
0.0582109876,
0.290992707,
0.5716345906,
0.1200142056,
-0.1638105661,
-0.2546852231,
-0.2172005773,
0.5439649224,
-0.0571182184,
0.2054127455,
0.0880155116,
-0.1192772016,
0.0942575485,
0.3280457258,
-0.0314899571,
0.1516569257,
-0.0771692172,
-0.0861446634,
-0.6292022467,
-0.0080257319,
-0.1333274394,
0.1587744951,
0.0317225978,
0.3995530903,
0.1359018683,
0.0740638599,
-0.4038145244,
0.1854002476,
-0.4803616703,
0.2574848831,
-0.3123628199,
-0.2211487293,
0.1500569582,
0.0183975063,
0.1983168423,
0.3915613592,
-0.0878055394,
-0.3881204128,
-0.0516214147,
0.0129222721,
0.0536251254,
-0.0444263145,
-0.0242948364,
-0.0771127492,
-0.1646130681,
-0.1381660104,
0.160572812,
0.1419169307,
-0.0070240051,
-0.1002928913,
0.0486866087,
0.0814609826,
0.0218539238,
-0.0666424111,
0.3228676915,
-0.0471476205,
0.0425884165,
-0.020396255,
0.0444234386,
-0.1182851195,
-0.3260059655,
0.0615038313,
0.0719490275,
0.2459678352,
-0.0139944106,
-0.1344071627,
-0.1172320545,
0.0094733201,
0.2008040547,
0.0664601028,
-0.081657894,
0.0826827362,
0.5198848248,
0.3543415964,
-0.3999354839,
0.136789903,
-0.1783646643,
-0.2301889658,
0.0403736383,
-0.0616371632,
-0.2664191723,
0.017592743,
0.1138856634,
0.2983409464,
-0.2819610238,
-0.2614426315,
0.0145400539,
0.0535261557,
-0.2307029665,
0.0569042154,
0.0776648968,
0.0807905048,
0.2725350857,
0.5964996815,
-0.0889119953,
0.2089633495,
-0.0151844351,
0.0499990024,
0.0881483257,
-0.2211847454,
-0.4366444647,
0.1212516204,
-0.1020082533,
0.1862651706,
-0.2001476586,
0.2823792696,
-0.0579347387,
-0.5546738505,
-0.2274596989,
0.1214079112,
-0.455727905,
-0.2373718321,
-0.0775246918,
-0.0684666336,
0.1123586297,
0.1091135293,
0.0812029988,
0.0438426211,
0.2696997523,
0.0330017954,
-0.1880845129,
-0.0353125036,
-0.0883553773,
0.3132318556,
-0.0430993363,
-0.145501554,
0.3132099807,
-0.0304949582,
-0.3657897711,
-0.0081722206,
0.1843428612,
0.3374366462,
0.3683412671,
-0.0031500105,
-0.0410466343,
0.0691154748,
-0.1306321621,
-0.1171271279,
0.0389342643,
0.6038050652,
0.3613379598,
0.1704289317,
0.2067406774,
-0.269808501,
0.2160952836,
0.1742770076,
0.2378055751,
-0.2703258097,
0.1327988803,
0.0880893022,
0.007496357,
-0.3903083205,
0.0345643125,
-0.4844127595,
0.2789464295,
0.1059465781,
-0.2162210345,
0.0070466101,
-0.0284635331,
0.132655561,
-0.0766894519,
0.4783807099,
0.1406689733,
-0.0817658827,
-0.4501722157,
-0.2213837206,
-0.320456475,
0.080149658,
-0.1993785053,
0.4961870611,
-0.131259501,
0.1748057604,
-0.1713668704,
-0.0546036623,
0.1064720601,
-0.1912441403,
-0.2039955705,
-0.0729132295,
-0.5115633607,
-0.0568437837,
-0.4868825674,
-0.0484145209,
0.2784799039,
-0.1454188824,
0.2637949586,
-0.0652624667,
0.177910924,
0.2398304939,
0.1373199672,
0.1342186928,
0.2333136201,
0.2523615956,
-0.1193417162,
0.2122929096,
0.0845306218,
0.187246725,
-0.0177742578,
-0.3345732391,
-0.16545555,
-0.1605000496,
0.3346557319,
0.2071073055,
-0.2151176929,
-0.1514474154,
-0.2727841735,
0.0322609395,
0.1696405113,
-0.240768373,
-0.0566636622,
0.0915064514,
0.3267951012,
-0.0081627965,
0.1193368286,
0.3521055877,
-0.0016528815,
-0.0191668458,
-0.4411460459,
-0.2393818796,
0.6260104179,
-0.165012598,
-0.2551418543,
-0.0921271518,
-0.0154954568,
0.4361370206,
-0.1941233873,
-0.9336690903,
-0.0760515481,
0.0727673769,
0.0200700685,
-0.4387418628,
0.0850871205,
-0.1784353852,
0.2450275272,
-0.0705036893,
0.4420765638,
0.0784839988,
-0.2192121595,
0.2160794139,
-0.1709848195
] |
https://github.com/huggingface/datasets/issues/757 | CUDA out of memory | Since you're using a data collator you don't need to tokenizer the dataset using `map`. Could you try not to use `map` and only the data collator instead ? The data collator is supposed to pad to the longest sequence in each batch afaik, instead of padding to 512.
Also cc @sgugger | In your dataset ,cuda run out of memory as long as the trainer begins:
however, without changing any other element/parameter,just switch dataset to `LineByLineTextDataset`,everything becames OK.
| 52 | CUDA out of memory
In your dataset ,cuda run out of memory as long as the trainer begins:
however, without changing any other element/parameter,just switch dataset to `LineByLineTextDataset`,everything becames OK.
Since you're using a data collator you don't need to tokenizer the dataset using `map`. Could you try not to use `map` and only the data collator instead ? The data collator is supposed to pad to the longest sequence in each batch afaik, instead of padding to 512.
Also cc @sgugger | [
-0.3538848162,
-0.0687036067,
-0.1432431787,
0.3057077527,
0.5980898738,
-0.0301803276,
0.4453641474,
0.2957352102,
-0.0621403307,
0.4082167745,
0.2172661275,
0.0536228567,
-0.0748178884,
0.1507745981,
-0.1334300488,
-0.1775918454,
-0.0540918857,
0.0361538902,
-0.0717042834,
0.0324879438,
-0.0345169641,
0.0090632848,
-0.2618727088,
-0.0872588158,
-0.4492589235,
-0.0958237052,
0.0632595494,
-0.0474193655,
0.0135207679,
-0.2511957884,
-0.050187543,
-0.0768317431,
0.1226607412,
0.4445251822,
-0.0000950249,
-0.008997716,
0.0488269031,
-0.0793756247,
-0.1593960524,
0.0037029982,
0.0010662675,
-0.1991860271,
0.0680233315,
-0.3073747754,
-0.3009666204,
0.2325589806,
-0.0483178496,
-0.1761004329,
0.4668057561,
0.3489147425,
0.4058133364,
0.0642161667,
-0.0480914824,
-0.1667485535,
0.0934196413,
-0.1008734405,
-0.0437049046,
-0.0739789754,
0.2798736095,
-0.0510344431,
-0.1639374793,
0.2283996344,
0.0955837667,
-0.0248311646,
0.0088261664,
0.0286431685,
0.1250680387,
-0.1874312609,
0.1657485515,
-0.0107832905,
0.1392262578,
-0.1024775729,
0.0851275697,
0.015501529,
-0.1246236861,
-0.4965886474,
0.1401784271,
0.0640604943,
-0.3090766966,
0.0835064724,
-0.1675763726,
0.1029406264,
-0.0650884956,
-0.0328301713,
-0.2521700561,
0.2495862246,
-0.1194062531,
-0.0043268315,
0.1522545666,
-0.1460784227,
0.1584292352,
0.0882801563,
-0.0002287403,
0.0289948508,
-0.2778504789,
-0.0494477898,
-0.0506688356,
-0.2739794254,
0.1108095348,
-0.1995372176,
0.1692322046,
0.1295819581,
0.2328850031,
0.0386406034,
0.1223049909,
0.3336033821,
-0.123715587,
0.013423536,
0.0688939318,
0.1866416931,
-0.3788160086,
-0.1959580034,
-0.1081423461,
-0.3177535534,
-0.008256264,
0.1122583598,
-0.140973717,
-0.0693290308,
-0.0615465827,
0.2887710035,
-0.1936709136,
0.1201416329,
0.0923150629,
0.3297210634,
-0.0462105833,
0.0614214689,
0.0122293681,
-0.0794340819,
-0.0581314713,
-0.1534135789,
-0.2928470671,
-0.079678677,
-0.423368454,
-0.0175389163,
0.17412664,
0.1073103398,
0.2736075521,
-0.0849091336,
0.0604408346,
-0.3291586041,
0.0684491098,
-0.2856379747,
0.1045872718,
0.0019265395,
0.2612719238,
0.0498300865,
0.0454898104,
-0.138489753,
0.2103124708,
0.2335582972,
-0.1626400501,
-0.1971838176,
-0.1050039455,
0.3500038087,
0.3678774536,
0.2698630989,
-0.0442563593,
0.0073637958,
0.2607892454,
0.1084064543,
0.0064528212,
-0.1018998027,
-0.1260547936,
-0.1532544792,
0.2914363146,
0.2016894072,
-0.3154523373,
-0.0260049254,
0.1940802634,
0.0753098428,
0.2819881439,
0.4822388291,
-0.3072267175,
0.1555388272,
-0.1969339252,
0.1619752347,
0.2056473792,
-0.2838627994,
-0.2273935527,
0.1544956714,
-0.2635686398,
-0.0734118894,
-0.1839419752,
-0.1002918631,
0.5489268303,
0.0863065645,
0.3641423881,
0.1814378053,
-0.1500036418,
0.0459711477,
-0.3630646765,
-0.1224118024,
0.1280617863,
0.0573731959,
0.179444313,
-0.0891333967,
-0.1700427234,
-0.0015276335,
0.1990641057,
-0.1354992688,
0.1784701496,
0.2134155929,
0.3221105933,
0.0361044072,
-0.1397633404,
0.1699186414,
0.0245384686,
0.0455419868,
0.1107643768,
0.1084510088,
-0.1470890641,
-0.1655828953,
-0.0250586849,
-0.1039784998,
-0.0178107582,
-0.2041491568,
0.3734978437,
-0.058643721,
-0.1204765141,
0.0145027936,
0.0387139097,
0.1495335698,
-0.4618001878,
0.1477302611,
0.1302770972,
0.0800374523,
-0.2617274821,
-0.1296991259,
0.0376940146,
0.2047874928,
0.1960292459,
-0.1215371937,
-0.107802853,
0.2921036184,
0.1026140302,
-0.2014153749,
-0.0868221372,
-0.0230328888,
0.0566488206,
0.0194746405,
-0.1182485595,
-0.0796518922,
-0.0015653558,
-0.0857053027,
0.0124381753,
0.1006002575,
0.2694787979,
0.0959018171,
0.0480763316,
0.0103645772,
0.3586983979,
-0.1140573993,
0.1640129685,
-0.1487574577,
0.0851368532,
0.2405932695,
0.1001323313,
0.1569626629,
-0.2406004816,
0.0131232142,
0.3567016423,
0.1434331387,
0.0106122661,
0.2353610694,
-0.1175423265,
0.0115697086,
-0.0241487492,
-0.0806039125,
-0.1070520431,
0.2489945292,
0.1102842987,
0.0638681874,
0.0392747782,
-0.1660854667,
0.128366217,
0.0325572602,
0.0714566857,
-0.1245190203,
0.1260453165,
-0.1098837331,
-0.2454170287,
-0.0022666305,
0.1472184956,
0.4225443304,
-0.1127471924,
-0.093151316,
-0.1891929656,
-0.1160900071,
-0.0977402627,
-0.080191955,
0.0199677516,
-0.0049276501,
0.0364934988,
0.159583658,
0.0110063031,
0.4099166989,
0.2289890051,
0.3758628964,
0.1902044415,
0.2441901118,
0.0989733934,
-0.2734330893,
-0.1997943372,
0.2843849957,
0.3823622763,
-0.0000640005,
0.1524183452,
0.0594177023,
0.0819922462,
-0.0315728784,
-0.1147620454,
-0.0479231738,
-0.0653528124,
0.1442676038,
-0.0940346792,
0.3292439878,
-0.2314815819,
-0.2863689661,
0.1959938556,
0.0621237308,
-0.1783340424,
-0.2070909292,
0.1329570413,
-0.2569444776,
-0.2753172517,
-0.1090549007,
-0.0758215338,
-0.3809901774,
-0.0540907793,
-0.0438664109,
0.0942373425,
-0.1224952489,
0.2664971948,
0.2440907955,
0.0497473776,
-0.1020129547,
-0.174149394,
-0.2536876798,
0.0660756379,
-0.2427297682,
-0.2249824554,
-0.0060496554,
0.085396409,
0.5231485963,
0.0444662385,
-0.5343629718,
0.1466069371,
-0.0581691787,
0.0312941745,
0.0156114036,
-0.1462977231,
0.3653269708,
0.0678780228,
-0.2486968637,
0.0843081549,
-0.2163974345,
0.176311627,
-0.2280782163,
0.1031284854,
-0.2819195092,
0.5773178935,
0.1775275767,
0.650857091,
-0.0862183571,
-0.2206744254,
0.2745223939,
-0.1354079843,
0.1569600552,
-0.2709427476,
-0.2667553127,
0.305084914,
-0.1458317339,
-0.172873795,
0.2063252032,
-0.1714202762,
-0.2792167664,
-0.0277968682,
0.172962606,
-0.2085361332,
-0.3922801018,
0.2551880181,
-0.0207872782,
0.2042923272,
-0.0058910251,
0.1315241158,
-0.147825107,
-0.0500061363,
-0.0046174861,
-0.2329568267,
-0.07464955,
-0.2474722564,
-0.2771758437,
0.0280428454,
-0.388384372,
0.1505201161,
0.0546479449,
0.2861518264,
-0.1500145793,
-0.1118377596,
0.0644527301,
-0.0936582983,
0.7823351622,
0.2042613328,
-0.2611230314,
0.0629382879,
-0.1595553905,
-0.0211344548,
-0.0055561289,
-0.1316348612,
0.1276699156,
0.2425469458,
0.3826504946,
-0.1022983491,
-0.1320969313,
0.0025561005,
-0.0479669608,
-0.1053621173,
0.0349550843,
-0.0143247172,
-0.018823877,
-0.3001774549,
0.3913337588,
0.1144842356,
0.2752558887,
-0.0381480753,
-0.409035027,
-0.1154563054,
-0.2068898827,
0.0979673341,
0.0398758836,
0.3180323243,
0.0902368277,
0.1538381428,
-0.1518669426,
0.243921116,
0.1580740809,
-0.1134221703,
0.0096572954,
0.0622028112,
0.0988897234,
-0.2057332695,
0.3376144767,
0.2864977717,
0.06464497,
0.1591659188,
-0.0700830817,
0.3968049288,
-0.0992701799,
0.3956971765,
0.3567791283,
0.2163240612,
-0.4749739766,
-0.1481387466,
0.0088899154,
0.0897902101,
0.1118636429,
0.4182058871,
-0.0859782994,
-0.323579073,
0.2160567939,
0.2096793503,
0.8515173197,
-0.1282592416,
0.1934070438,
0.0857784301,
-0.0494305082,
0.1198040247,
-0.190857172,
0.1594128907,
-0.2709291279,
-0.2158922404,
-0.0053510666,
0.0670854598,
0.0734828711,
0.1007450074,
-0.2985439599,
-0.1148411632,
-0.2420419157,
0.2059369534,
-0.2007932961,
-0.0606807359,
0.2365563661,
-0.4092285633,
-0.2159013599,
0.336620152,
0.0250641033,
-0.2348303944,
-0.1664671451,
0.040650554,
0.1540884972,
-0.0858795643,
-0.1135170311,
-0.0651403069,
-0.54726547,
0.0305750929,
-0.1110364199,
-0.2965449095,
-0.0454846881,
0.0024609324,
0.3210060596,
0.3504115641,
-0.0374636911,
0.3197167814,
0.1968782395,
0.0088999644,
0.0480725914,
0.0419995673,
0.2444523275,
-0.0612894408,
-0.1383038908,
0.3267180026,
0.0412621312,
-0.2219101042,
-0.0039600581,
0.0022163019,
0.1148077846,
-0.3608171642,
-0.307297051,
0.1309196949,
-0.0943894759,
-0.2317423522,
0.3246448636,
-0.1180547029,
-0.2070477307,
0.0923193544,
0.1686408073,
-0.1416132301,
-0.0677460581,
0.1560577899,
0.0390852802,
-0.0217386819,
0.4916594625,
0.280505538,
-0.1319648325,
-0.3513337672,
-0.1413224936,
0.3831878901,
-0.1091905832,
0.095089376,
0.0252764151,
-0.1052055359,
0.10530442,
0.3492065072,
0.0430461131,
0.0727331191,
-0.0052798837,
-0.0628239661,
-0.6887541413,
-0.1755337864,
-0.0744028687,
0.2248654813,
0.0487098545,
0.3843529522,
-0.0564287007,
0.0756996572,
-0.4959676266,
0.2193605006,
-0.5408853889,
0.3170781136,
-0.198132202,
-0.1573371887,
0.0791444182,
0.0071352236,
0.2550956309,
0.4369692206,
-0.1066217571,
-0.4734306037,
-0.0444895439,
-0.0278032869,
0.1258877963,
-0.1045934185,
0.0343579613,
-0.0124307349,
-0.1867100596,
-0.2628526092,
0.109270364,
0.0853817686,
-0.0364034846,
-0.0833308995,
0.0957245231,
0.1358406544,
-0.0031878799,
-0.1440232098,
0.0927833468,
0.2048113495,
0.2161943763,
-0.1022168845,
0.0665898919,
0.0020528212,
-0.1708849669,
0.1673739552,
0.1186638772,
0.1209045798,
0.0366823785,
-0.2211582661,
-0.270093888,
0.2185981721,
0.146306172,
0.0635443479,
-0.1977745742,
-0.1002416089,
0.4072954357,
0.4704898298,
-0.2390293181,
0.1033436954,
0.0320848748,
-0.1943846047,
0.1942331493,
0.1395997852,
-0.0920068026,
-0.1526376307,
0.0075534619,
0.2622355521,
0.0186195336,
-0.3551521897,
0.1178147048,
0.0326393768,
-0.034984991,
-0.0391603597,
0.0502264053,
0.1195848435,
0.2119368017,
0.5023725033,
-0.0060723685,
0.3215266466,
0.0628099814,
0.0257032812,
-0.1420886368,
-0.2357933223,
-0.1566656232,
0.2672965229,
-0.1019147784,
0.0380775779,
-0.1926586628,
0.3080668449,
-0.0372760817,
-0.4703215957,
-0.2891820371,
0.1532073617,
-0.5186834931,
0.0103963204,
-0.1042399332,
-0.0209075958,
-0.0538060293,
0.1113288552,
0.1576839387,
0.0044833273,
0.1431535184,
0.0038087703,
-0.1930522621,
-0.0180153027,
-0.1817860007,
0.1559148729,
0.0765523016,
-0.1863312423,
0.3365654945,
-0.0710550547,
-0.1482813954,
0.0015257357,
0.111111261,
0.3467004895,
0.4203843474,
-0.0579400063,
0.030173488,
-0.0327791497,
-0.0219851322,
-0.2057778537,
0.1491649747,
0.3884341419,
0.2333977818,
0.1835654229,
0.3134997487,
-0.3399814665,
0.1441178918,
0.2320033461,
0.0603804775,
-0.120447211,
-0.0974945873,
0.0998406708,
-0.1227228716,
-0.3545719087,
-0.0971659273,
-0.3997305036,
0.1740502268,
0.1012746543,
-0.2028766423,
0.1588524133,
-0.1019737273,
0.180130735,
-0.1071236208,
0.5011606216,
0.1388695091,
-0.0256979391,
-0.4887698591,
-0.4422719479,
-0.4006252587,
0.1141266376,
-0.2080054134,
0.2612010539,
-0.2109656781,
0.1496304721,
-0.0620721914,
-0.1585180759,
-0.0386680961,
-0.0583041906,
-0.1338526309,
-0.174240917,
-0.5670874119,
0.0746913552,
-0.2965662777,
-0.0312130637,
0.1268420368,
-0.1103565544,
0.3521362245,
-0.170913443,
0.2749557495,
0.1290584803,
0.1577440202,
-0.0920081437,
0.0661805794,
0.3151901364,
-0.122037366,
0.0438804105,
0.0789469928,
0.2435207963,
-0.088553451,
-0.0638369918,
-0.104580909,
-0.0615074597,
0.3914674819,
0.272062242,
-0.1656998992,
-0.0123305628,
-0.2234523892,
0.1061285734,
0.2691362202,
-0.0650158525,
0.0776105225,
0.1415109783,
0.1761374474,
-0.0450097471,
0.2141919434,
0.3716605604,
0.0165969133,
0.1116268858,
-0.37868312,
-0.2809375525,
0.4669595659,
-0.3317545056,
-0.3854000568,
-0.0718254521,
0.0286344886,
0.1684821844,
-0.1871621013,
-0.5829004049,
-0.1516564339,
0.1221457347,
-0.0802416131,
-0.3954403996,
0.2426404804,
-0.1927640587,
0.0949656069,
-0.036626149,
0.1453106999,
0.0766769499,
-0.1085128486,
0.0523127615,
-0.2184521258
] |
https://github.com/huggingface/datasets/issues/751 | Error loading ms_marco v2.1 using load_dataset() | There was a similar issue in #294
Clearing the cache and download again the dataset did the job. Could you try to clear your cache and download the dataset again ? | Code:
`dataset = load_dataset('ms_marco', 'v2.1')`
Error:
```
`---------------------------------------------------------------------------
JSONDecodeError Traceback (most recent call last)
<ipython-input-16-34378c057212> in <module>()
9
10 # Downloading and loading a dataset
---> 11 dataset = load_dataset('ms_marco', 'v2.1')
10 frames
/usr/lib/python3.6/json/decoder.py in raw_decode(self, s, idx)
353 """
354 try:
--> 355 obj, end = self.scan_once(s, idx)
356 except StopIteration as err:
357 raise JSONDecodeError("Expecting value", s, err.value) from None
JSONDecodeError: Unterminated string starting at: line 1 column 388988661 (char 388988660)
`
``` | 31 | Error loading ms_marco v2.1 using load_dataset()
Code:
`dataset = load_dataset('ms_marco', 'v2.1')`
Error:
```
`---------------------------------------------------------------------------
JSONDecodeError Traceback (most recent call last)
<ipython-input-16-34378c057212> in <module>()
9
10 # Downloading and loading a dataset
---> 11 dataset = load_dataset('ms_marco', 'v2.1')
10 frames
/usr/lib/python3.6/json/decoder.py in raw_decode(self, s, idx)
353 """
354 try:
--> 355 obj, end = self.scan_once(s, idx)
356 except StopIteration as err:
357 raise JSONDecodeError("Expecting value", s, err.value) from None
JSONDecodeError: Unterminated string starting at: line 1 column 388988661 (char 388988660)
`
```
There was a similar issue in #294
Clearing the cache and download again the dataset did the job. Could you try to clear your cache and download the dataset again ? | [
0.0103684589,
0.1111897528,
-0.1000254154,
0.3606891036,
0.4273392558,
0.0519153029,
0.2879598737,
0.5654805899,
0.0125492588,
0.3217279911,
-0.0122819059,
0.5649032593,
-0.0228347443,
0.2471554279,
-0.1524104476,
-0.3327513635,
-0.0393441506,
0.3240629137,
0.1306520104,
0.1089467108,
-0.0823307708,
0.2334582508,
-0.1433685422,
0.2349626571,
0.0887251943,
0.1099614203,
0.0444125384,
0.1186437979,
-0.3717557788,
-0.6237431169,
0.239581421,
-0.0147979194,
0.3841392994,
0.4122722447,
-0.0001079264,
0.2034293562,
0.4274069667,
-0.1497964561,
-0.3283526599,
-0.6941393614,
-0.5283311009,
-0.0733870119,
0.3302684426,
-0.0713752359,
-0.0157218874,
0.0518313274,
-0.2022551745,
-0.4683447778,
0.7235794663,
0.3449124396,
0.2332077622,
0.098400265,
0.2272277176,
-0.0567689389,
0.1948497742,
0.1532227844,
0.0622137561,
0.2472884208,
-0.1464815438,
0.2154762298,
0.2918558121,
0.2464018464,
-0.1134710386,
0.3241587281,
0.157353729,
0.1225414723,
0.3648793399,
-0.4494424164,
0.3054105341,
0.143831268,
0.6902778149,
-0.1550350785,
-0.2551621795,
0.0767485946,
0.1294799447,
-0.4748284817,
0.3319579959,
0.064320676,
-0.2432659268,
0.1752776802,
-0.0887582004,
0.0134898275,
-0.2744027376,
0.0100893928,
-0.1931985319,
0.0089538693,
-0.1390666962,
0.1527302265,
0.341930747,
-0.2617518902,
0.0862086341,
0.0477186441,
-0.2760579586,
0.1573707461,
-0.1932173371,
-0.1091300249,
-0.1569620967,
-0.4858179688,
-0.0533561781,
0.0962758809,
0.2548747063,
0.0609165393,
0.3814302385,
0.0362791941,
0.6026728153,
0.0255676284,
-0.1211965606,
0.0345728807,
0.1222293824,
0.0011009611,
0.0688749477,
-0.0803016722,
-0.273103863,
0.0020019598,
0.1748583615,
0.1447973102,
0.3112102747,
-0.2800495625,
-0.338255465,
0.1514058858,
-0.5848350525,
-0.2422354668,
-0.225405395,
0.3102695048,
0.0200360455,
0.243372798,
0.0605809912,
0.2738600671,
0.0199084878,
-0.3459858894,
-0.0432903171,
-0.1516474187,
-0.0346635059,
-0.1455737948,
0.272892952,
-0.0849436522,
0.1361091435,
0.0872812122,
0.1812021434,
-0.3393522203,
0.3095947504,
-0.2254336923,
0.09953399,
0.3220711946,
0.2754568458,
0.0525141656,
0.1816453338,
-0.1673367918,
-0.0530321598,
0.3141588569,
-0.293810904,
-0.2666987479,
-0.272241205,
0.2071202397,
0.0013435334,
-0.171164155,
-0.2540106773,
0.0457334556,
-0.0178010985,
-0.0603866056,
-0.3778083324,
-0.1667080969,
0.0880218148,
-0.1780564189,
0.393245995,
0.2161404788,
-0.3279465735,
0.039406538,
-0.0959153175,
-0.1318074465,
0.2154318392,
0.1643891931,
-0.314208895,
0.5403989553,
-0.0388911441,
-0.1691241562,
0.098614648,
-0.3066721857,
-0.2937811017,
0.3694312871,
0.0046839491,
0.1591135412,
0.0017894991,
-0.2512534261,
0.3732081056,
0.1588674188,
0.1945875287,
0.061809212,
-0.1427409947,
0.0913997516,
-0.0991631001,
-0.2575180531,
0.0906346217,
0.3011377454,
0.0775807947,
0.0796926171,
-0.0985765457,
0.2593406737,
0.1528243273,
-0.115299426,
0.1257848144,
0.1634825319,
-0.1097195297,
0.1635204554,
0.0510325171,
0.1401446611,
-0.2065712959,
0.0699191988,
0.0415858179,
0.2281043082,
-0.3960618377,
0.0385790989,
-0.3178729117,
0.0104323924,
-0.3651974797,
0.1068749726,
0.248711735,
0.1227119565,
0.0558310449,
0.1275045425,
-0.3013747334,
-0.027470978,
0.3916781843,
0.1682392806,
-0.0519135669,
0.2938364148,
-0.1912591159,
-0.2941614687,
0.1120566577,
-0.044208467,
0.0378198624,
-0.1330126524,
-0.3254246414,
0.2377406955,
0.1895782053,
0.2034041584,
-0.1667608321,
-0.1456788182,
0.1348055899,
-0.3300463259,
0.0838043466,
0.5397524834,
0.168004781,
-0.0221344754,
-0.1026690081,
0.1981105506,
-0.0855677873,
0.1137719378,
-0.0782795399,
-0.0304030403,
0.3267221153,
0.0816083848,
-0.1759708673,
-0.2072333694,
0.2624558806,
-0.0087882914,
0.0951394588,
-0.1814565361,
-0.2600825429,
-0.2177458704,
0.2487666458,
-0.0782856271,
-0.0508636013,
0.1320005804,
-0.0949898064,
0.0630508214,
-0.2078436464,
0.0244821012,
0.2064060271,
0.0302205011,
-0.2265803367,
0.1264622062,
0.1852022707,
-0.0127631985,
0.2005791515,
0.189739868,
0.3189218938,
0.273775667,
-0.0581553169,
0.0075664707,
-0.2234514058,
-0.1390786916,
-0.1103494912,
0.450410068,
-0.2590265274,
0.1004735008,
-0.2818915546,
-0.0750757232,
-0.1346452981,
-0.4714362621,
-0.0931166708,
-0.0985967964,
-0.2331869602,
0.1405065209,
0.0831356794,
0.0812236145,
-0.1027527899,
0.0702488646,
0.1847392321,
0.0335135832,
-0.1212211624,
-0.30004251,
-0.2222502381,
0.050141409,
0.3008954227,
-0.3179346919,
-0.0289158747,
-0.4022515714,
0.0792943388,
0.2344599217,
-0.2420562804,
0.2829410732,
-0.2433235049,
0.1071463004,
0.0976634324,
0.3463148773,
-0.0807697549,
-0.1787152737,
0.2980033159,
-0.0336280093,
-0.0701223612,
0.2351944894,
-0.0247646868,
0.0044142082,
-0.0345520489,
-0.6003319025,
-0.2259490192,
-0.1773615181,
0.0844048858,
0.0945693254,
0.0720444024,
0.2071627527,
0.2518556714,
0.1329910457,
0.1408312172,
0.2209941745,
-0.2139880657,
-0.4691377282,
0.1890761256,
-0.1856190115,
-0.2885922492,
0.3380989134,
0.1319408715,
0.3926617205,
-0.3039437532,
-0.3875097632,
0.3119333684,
0.1138058081,
-0.1046723202,
-0.4057463109,
-0.3225395977,
0.1243585944,
0.1816706657,
0.0121640563,
-0.0981235802,
-0.257853359,
0.235549286,
-0.051554732,
0.1400613785,
-0.0608263537,
0.8555184007,
-0.0773985311,
0.3287207484,
0.2119131982,
0.1571446955,
0.2867908776,
-0.0260026976,
0.047457967,
-0.09311717,
-0.1263147742,
-0.0346653014,
-0.1132032871,
-0.1697464734,
0.1050456762,
-0.1065763831,
-0.2495368868,
-0.3681686223,
0.1578817964,
-0.1875192225,
-0.1722089648,
0.1125243753,
-0.0683633611,
0.2198684067,
0.0455242395,
0.2872371376,
-0.1594827473,
-0.0221998226,
-0.0674556941,
0.0986637995,
0.274168998,
0.0888987035,
-0.5317466855,
-0.2367527634,
-0.4396632314,
0.1123363227,
0.0749683976,
0.4724262953,
-0.1391907036,
-0.0173864365,
0.2341492772,
-0.2088271081,
0.4418923259,
-0.0526612774,
0.0111637963,
0.1830282509,
0.001739569,
-0.2354272306,
-0.0946631432,
-0.3305486441,
0.3097438216,
0.1387424469,
0.2339217514,
-0.2818980217,
-0.1609294713,
0.3215725124,
0.0054151528,
-0.2038937807,
-0.1696622372,
-0.503123939,
-0.3280936778,
-0.5201476812,
-0.1598602831,
-0.1911194623,
0.4015158415,
0.168620795,
-0.0311870649,
0.138033554,
-0.0285759754,
-0.0021822117,
0.422221154,
0.2703426778,
0.0837392807,
0.1865046322,
0.395831883,
-0.1319776326,
0.4243674576,
0.550801158,
0.1134040952,
-0.6399223804,
0.0512189269,
-0.2962982357,
0.0976137221,
0.0014405251,
-0.0816592872,
-0.0493806452,
-0.1000894457,
-0.020987194,
-0.408626765,
-0.0042959973,
0.5303218365,
-0.2322348356,
-0.4098722339,
-0.4350344539,
0.1329606473,
-0.1702179313,
0.0353073478,
0.0269355886,
0.033498954,
-0.2144714445,
0.3636549413,
0.1855355352,
0.7658939362,
-0.0235152766,
0.0016506037,
0.3066607714,
-0.4282898903,
0.0305051878,
0.0277304724,
0.2228553444,
-0.2719285488,
0.070047155,
-0.0694498122,
-0.0195542574,
0.2279201746,
0.0355341733,
-0.426145643,
-0.0436725207,
-0.04458794,
0.1533709764,
0.0718815699,
0.2442648858,
0.0587792024,
-0.1275698245,
-0.2995490432,
0.1998347342,
-0.4082095027,
0.1917601079,
-0.1199817806,
-0.2695818841,
-0.00863038,
-0.2286146879,
-0.1836057305,
0.0741829574,
-0.1076033264,
0.1494811773,
-0.0748658553,
-0.2504876852,
-0.0508270524,
-0.1125718951,
0.0799789801,
-0.0627261102,
-0.1535193473,
0.1907378733,
-0.1253458261,
-0.0745962784,
-0.007702902,
0.2273986638,
0.0108062048,
-0.0616295822,
-0.3674406409,
0.3495847881,
0.0062729344,
-0.3701889813,
-0.0235794485,
-0.0904284418,
0.096181035,
-0.0933391228,
0.0004799403,
-0.1861483902,
0.0908048823,
-0.0614478216,
0.1880190074,
0.0396144837,
-0.1077995151,
0.0597768463,
-0.0855286121,
-0.3417266011,
-0.0222803541,
0.4954526424,
0.074451074,
0.0424283072,
0.672642231,
0.1097136363,
0.023311682,
-0.2028912157,
0.4121146202,
-0.1919959933,
-0.1603666544,
0.1369837523,
-0.1618549824,
0.2158027887,
-0.0246124789,
0.3283052146,
0.1497761458,
-0.1560214162,
0.1812470257,
-0.398331672,
-0.3593773842,
0.0801866204,
0.0996655077,
0.0890296921,
0.2458859086,
0.1987777054,
0.0193015635,
-0.1460972577,
-0.3054215312,
0.1012095511,
-0.021104265,
0.0389341898,
0.0735513121,
-0.1596218497,
0.1458530128,
-0.0804150403,
0.1671366096,
0.1694601774,
-0.1528193504,
-0.199351877,
-0.0595715865,
0.0871388018,
-0.0703358576,
-0.3041720986,
-0.1647040993,
-0.126210019,
-0.1425152719,
-0.0565402582,
0.0619090647,
0.0322710201,
0.0487485863,
0.0251142941,
-0.085643962,
0.0832654387,
-0.0585486777,
-0.068721205,
0.1066512167,
0.4175851643,
0.2003386915,
0.2956331074,
0.0155432113,
-0.0098340511,
-0.1680745184,
0.1084366664,
0.1326770186,
-0.0601215214,
0.489921242,
-0.5844717622,
0.3093327284,
0.152593106,
0.0641689003,
0.3737843633,
-0.3491539955,
0.1438475251,
-0.0257819537,
0.2500729859,
-0.0072487295,
-0.0197770577,
-0.0187706985,
-0.0589520857,
-0.251237154,
0.1292738467,
0.0368148759,
0.064311102,
0.0658235028,
0.1855470985,
0.5413076282,
0.0205546021,
0.1777001172,
0.444988966,
-0.2651415467,
0.0103179682,
0.1070831344,
0.0288879313,
0.1508512199,
0.5691819787,
-0.252165705,
0.3656856716,
0.0674660951,
0.189184323,
-0.0689478815,
-0.2857246697,
-0.1911570877,
0.1283740401,
-0.1039632633,
0.2056526542,
0.1605812013,
-0.0411467999,
-0.2754296958,
-0.1645671427,
-0.4454320073,
-0.0433725826,
-0.1581481397,
-0.1651981771,
-0.3046610951,
-0.2379548252,
-0.2086987495,
0.1694152802,
-0.0964411497,
0.0689790994,
-0.1310563534,
0.3181930482,
-0.133746475,
-0.4816062152,
-0.4851027727,
0.1531970799,
-0.0802620202,
-0.2274023294,
0.4024294615,
0.3622742891,
-0.1449485719,
0.1752590984,
0.2373049706,
0.458150059,
0.4365475178,
-0.3334040642,
-0.0051346794,
-0.147554785,
-0.1388261616,
0.0681251511,
0.1469893008,
0.14748317,
0.464626193,
0.1928109974,
0.2086627185,
-0.1399306655,
-0.0940295607,
0.2734105289,
0.2114673406,
-0.2410976589,
0.1022984684,
-0.083340928,
0.2694026232,
0.011460891,
-0.117809698,
-0.5373736024,
0.0016912408,
0.10486269,
0.3085603714,
-0.0383596346,
-0.0835507363,
0.0941587612,
-0.0242481846,
0.3664714098,
-0.0224205963,
0.0643891096,
-0.3836487234,
-0.1501822621,
-0.4316812158,
0.1047256589,
-0.1395381987,
-0.0761611834,
0.0795030221,
0.0511159673,
0.1058835462,
0.3559513092,
0.13892892,
-0.0680265799,
0.1070761532,
-0.031924855,
-0.1835425496,
-0.1068295389,
0.2802387178,
0.0560278893,
-0.1562605351,
-0.160048455,
0.3295812011,
0.0734454542,
0.0841553062,
-0.3527588844,
-0.2275988013,
-0.1116230041,
-0.0061711138,
0.5378035903,
0.1319494396,
0.4072890878,
-0.0044390038,
-0.2568789124,
-0.1435837746,
-0.1493092179,
-0.089122884,
0.2212724835,
0.1980075091,
0.4451332688,
-0.2095819265,
0.1915100068,
-0.5001686811,
0.0465381965,
-0.1751572639,
-0.1508638114,
-0.5225545168,
-0.0235569961,
0.0313596055,
0.1359849274,
-0.1398650855,
0.2121207118,
0.1611677706,
0.2831196785,
-0.3213101029,
0.0549394488,
0.4070504904,
-0.4105952084,
-0.4109964073,
-0.0811071172,
-0.1445980519,
-0.3138810098,
0.0372827798,
-0.6443095803,
0.2687259316,
0.2179949582,
-0.1473026574,
-0.3369534314,
0.2057899088,
0.2618827522,
0.0653924197,
-0.0011065379,
0.3464147449,
0.1690857708,
-0.1502876282,
0.0528866053,
-0.2060888708
] |
https://github.com/huggingface/datasets/issues/751 | Error loading ms_marco v2.1 using load_dataset() | I was able to load the dataset successfully, I'm pretty sure it's just a cache issue that you have.
Let me know if clearing your cache fixes the problem | Code:
`dataset = load_dataset('ms_marco', 'v2.1')`
Error:
```
`---------------------------------------------------------------------------
JSONDecodeError Traceback (most recent call last)
<ipython-input-16-34378c057212> in <module>()
9
10 # Downloading and loading a dataset
---> 11 dataset = load_dataset('ms_marco', 'v2.1')
10 frames
/usr/lib/python3.6/json/decoder.py in raw_decode(self, s, idx)
353 """
354 try:
--> 355 obj, end = self.scan_once(s, idx)
356 except StopIteration as err:
357 raise JSONDecodeError("Expecting value", s, err.value) from None
JSONDecodeError: Unterminated string starting at: line 1 column 388988661 (char 388988660)
`
``` | 29 | Error loading ms_marco v2.1 using load_dataset()
Code:
`dataset = load_dataset('ms_marco', 'v2.1')`
Error:
```
`---------------------------------------------------------------------------
JSONDecodeError Traceback (most recent call last)
<ipython-input-16-34378c057212> in <module>()
9
10 # Downloading and loading a dataset
---> 11 dataset = load_dataset('ms_marco', 'v2.1')
10 frames
/usr/lib/python3.6/json/decoder.py in raw_decode(self, s, idx)
353 """
354 try:
--> 355 obj, end = self.scan_once(s, idx)
356 except StopIteration as err:
357 raise JSONDecodeError("Expecting value", s, err.value) from None
JSONDecodeError: Unterminated string starting at: line 1 column 388988661 (char 388988660)
`
```
I was able to load the dataset successfully, I'm pretty sure it's just a cache issue that you have.
Let me know if clearing your cache fixes the problem | [
-0.0129363239,
0.1030106544,
-0.1228330508,
0.3122574687,
0.3983422816,
0.0521113425,
0.2968252301,
0.568559289,
0.02055756,
0.321077466,
-0.0469788015,
0.5231744647,
0.0632519498,
0.190086782,
-0.1655184627,
-0.2574038208,
-0.0236324593,
0.3507926166,
0.0692262501,
0.074520126,
-0.0900938809,
0.1957165748,
-0.1244621575,
0.2141238302,
0.0591254011,
0.0740996376,
0.0389383957,
0.115204215,
-0.3439751565,
-0.6365220547,
0.1919738054,
-0.0079319719,
0.3155696988,
0.4043070972,
-0.0001020064,
0.1777644902,
0.4454359412,
-0.0689876825,
-0.3125961125,
-0.582008481,
-0.5053095818,
-0.1171029359,
0.3165390193,
-0.1282914877,
-0.1209803671,
0.1134014428,
-0.1850690842,
-0.4382014871,
0.6948316693,
0.3881030381,
0.3028867543,
0.1351644397,
0.230193764,
-0.1009387225,
0.2550450563,
0.1251535416,
0.0138986781,
0.2112886757,
-0.1272656024,
0.2033331692,
0.2619908452,
0.287645638,
-0.0855983123,
0.3251774907,
0.1399061382,
0.1585073769,
0.3314506412,
-0.3463332951,
0.2681955099,
0.1036737487,
0.643029511,
-0.1307169199,
-0.276263237,
0.0868243128,
0.0796731263,
-0.5477731228,
0.3189707696,
0.0929363221,
-0.2067409605,
0.1782435626,
-0.0895709097,
0.0375674292,
-0.1832724512,
0.0019572992,
-0.2085379064,
0.0816442668,
-0.1336176991,
0.0782066137,
0.3002836108,
-0.2424610704,
0.074683845,
0.081230998,
-0.2699530721,
0.1097847372,
-0.1803837866,
-0.0948032662,
-0.0430229232,
-0.4446946979,
-0.119946748,
0.1145339757,
0.2236435711,
0.0987931788,
0.377132684,
-0.0008454025,
0.4639416337,
0.0501385741,
-0.1559505463,
0.0771149546,
0.1845826805,
0.0444035046,
-0.002985172,
-0.1039419621,
-0.2111137211,
0.0192598104,
0.1602073312,
0.1095813438,
0.3138605356,
-0.2204989791,
-0.2839262486,
0.0783532709,
-0.4800007343,
-0.1939748526,
-0.1975455135,
0.3207297921,
-0.0632952824,
0.2304753959,
0.0567356795,
0.2245041877,
-0.0679010078,
-0.2256982028,
-0.1210090667,
-0.131233871,
-0.0852741823,
-0.1201664284,
0.274713397,
-0.0853873044,
0.1471428275,
0.0709503517,
0.1519602239,
-0.2827929556,
0.3410671949,
-0.2363017797,
0.1135587096,
0.3298213482,
0.2770091891,
0.070173353,
0.1819366068,
-0.1325309724,
-0.0961142257,
0.249123469,
-0.2524719834,
-0.28024441,
-0.1876835376,
0.2855275273,
0.0113281012,
-0.1512571424,
-0.2134174109,
-0.0533779077,
0.0100039095,
-0.0807726458,
-0.3593397737,
-0.171425581,
0.0606311634,
-0.2019232661,
0.3621022105,
0.2705248594,
-0.2723313868,
0.0733098388,
-0.1354019791,
-0.0922608674,
0.1877467781,
0.2017705142,
-0.3014400899,
0.4362953901,
-0.0464412831,
-0.1566222161,
0.1402226686,
-0.320235908,
-0.324088186,
0.3028960228,
-0.0329793319,
0.0878279954,
0.0258689802,
-0.1924052984,
0.3647067845,
0.153706044,
0.1992158294,
0.0544422418,
-0.0356809795,
0.1235385612,
-0.1245330125,
-0.258677125,
0.018174367,
0.2463354468,
0.0644570142,
0.0442391448,
-0.1041807979,
0.2037005126,
0.1403641403,
-0.1245174631,
0.1137159094,
0.2085633278,
-0.1304855496,
0.1713307202,
0.029908929,
0.1364282519,
-0.1399663985,
0.1214683577,
0.0259296298,
0.1900323033,
-0.2726622522,
0.0064860061,
-0.3014551401,
0.0316111445,
-0.3687095344,
0.1013639122,
0.3043013811,
0.1964474022,
0.1233297288,
0.1316629648,
-0.2749219537,
-0.0110118445,
0.4417960346,
0.107048519,
-0.1180401444,
0.26190871,
-0.2515701056,
-0.2915501595,
0.1108599976,
-0.0367100909,
0.0580893271,
-0.0801602975,
-0.303694129,
0.1816573739,
0.2036079317,
0.24957335,
-0.1795326918,
-0.1363854408,
0.0791235268,
-0.2600407302,
0.1992521882,
0.5228091478,
0.1202225536,
-0.0249727815,
-0.0676701367,
0.238771379,
-0.0229308996,
0.1125958115,
-0.0246521756,
-0.0547816046,
0.3964396119,
0.0283730403,
-0.1547791362,
-0.2609419227,
0.2471834719,
0.0534546413,
0.1135939285,
-0.1151225194,
-0.3128589392,
-0.15588893,
0.3872979283,
-0.0367330201,
0.0159022771,
0.1358817518,
-0.1428262591,
0.0166945606,
-0.216579482,
-0.0299249142,
0.1951276362,
0.0888655931,
-0.1606719643,
0.0816550106,
0.1995746195,
-0.0875950903,
0.2196180522,
0.2029739469,
0.2804161608,
0.172602281,
0.0355345272,
-0.0301928241,
-0.2262344062,
-0.0232359469,
-0.1176519468,
0.3725838363,
-0.2375444025,
0.0849525556,
-0.3510684669,
-0.0531920195,
-0.1461599767,
-0.5117496252,
-0.0538692661,
-0.1060149819,
-0.1435576677,
0.1756747961,
0.0639039278,
0.1328896135,
-0.0974531025,
0.0262347907,
0.1760559082,
-0.0128643094,
-0.1240895689,
-0.3575334549,
-0.2978413403,
0.1148163229,
0.2390879989,
-0.3049161434,
0.0696582273,
-0.431252718,
0.0471264161,
0.1855137646,
-0.2506828308,
0.257073164,
-0.1656755805,
0.0676147342,
0.0843774229,
0.2562083006,
-0.038787514,
-0.19737795,
0.3516508341,
-0.1273055375,
-0.1333611906,
0.2202692479,
-0.0234850701,
0.0086863376,
-0.0370713361,
-0.6399900913,
-0.2237053365,
-0.2604728639,
0.1010654196,
0.1509130746,
0.0356117263,
0.1985671073,
0.1864265352,
0.1326585114,
0.0938303024,
0.2327873111,
-0.2737102509,
-0.4300874472,
0.2375006974,
-0.2297222912,
-0.3239221573,
0.3098138571,
0.0468386486,
0.3736921251,
-0.3118447661,
-0.4044918716,
0.207085371,
0.020604955,
-0.0509723574,
-0.3278871775,
-0.2940305173,
0.2029004395,
0.1398704052,
-0.0699763298,
-0.0671645105,
-0.2701519132,
0.1653959453,
-0.0801306814,
0.1338670254,
-0.1019448787,
0.8502925038,
-0.1222681552,
0.408911705,
0.1821502745,
0.1215499043,
0.284196198,
-0.0286710188,
0.0892628133,
-0.1776071191,
-0.1607206166,
-0.0405221842,
-0.0886683092,
-0.1416831911,
0.117983304,
-0.0766927302,
-0.3244698048,
-0.3877325654,
0.147369355,
-0.1907783896,
-0.2491628826,
0.1173727363,
-0.069596529,
0.243742317,
0.1065363884,
0.3213147521,
-0.1834320426,
-0.0783203542,
-0.0409556627,
0.0246640947,
0.1784259528,
0.0543771796,
-0.5196166635,
-0.2184453607,
-0.3971503079,
0.0976875946,
0.0944587141,
0.3790025115,
-0.1187818572,
-0.1332828104,
0.2848419547,
-0.1996551901,
0.4548555613,
0.0156906825,
0.022590166,
0.2308396101,
-0.0406472385,
-0.2477572262,
-0.1033170596,
-0.3119056225,
0.2619573474,
0.224847883,
0.2912772894,
-0.2751757503,
-0.1617020965,
0.3189948797,
0.0325335041,
-0.1961505413,
-0.142571792,
-0.5580506325,
-0.2862576246,
-0.511734128,
-0.1522889286,
-0.1444849521,
0.3319622576,
0.1333819926,
-0.0510137267,
0.1158996224,
-0.0506248325,
-0.0743989646,
0.4398439229,
0.3376660645,
0.0571109764,
0.2137265205,
0.3307420909,
-0.0897984952,
0.3472661972,
0.5509921312,
0.0874865204,
-0.564702034,
0.0252583697,
-0.2308286279,
0.0376106836,
0.0295324214,
-0.0426540114,
-0.052369453,
-0.0759931356,
0.0193472579,
-0.3702815473,
0.0444805287,
0.449875176,
-0.2386075854,
-0.362821877,
-0.4035475552,
0.1759885699,
-0.1488457918,
0.0461871773,
-0.0261903442,
-0.0236488283,
-0.1656990051,
0.3092260659,
0.2021732777,
0.7795625925,
0.0041693058,
0.0423513427,
0.3334951997,
-0.4208031297,
0.0586380437,
0.0567662641,
0.2716710567,
-0.3065958917,
0.1043090373,
-0.0283184685,
-0.0435963832,
0.1442019641,
0.0286616925,
-0.3659762442,
-0.0277143456,
0.0079401582,
0.2052157372,
0.0679555088,
0.2323818356,
0.0098968726,
-0.1805930883,
-0.30902946,
0.2660911083,
-0.3243825436,
0.178902477,
-0.078796491,
-0.2388205528,
0.0093732402,
-0.2156898379,
-0.1426716447,
0.1112604141,
-0.0953650326,
0.2175241858,
-0.0990180671,
-0.3454366028,
-0.1483259499,
-0.1479491889,
0.0657234117,
0.0122390157,
-0.1350321919,
0.1931801587,
-0.093606405,
-0.0968426168,
-0.019329248,
0.2205015719,
0.0276891198,
-0.1507610381,
-0.3855763078,
0.2976348698,
-0.0065851472,
-0.3523638546,
-0.0291638076,
-0.0187394619,
0.1215565354,
-0.0503314212,
-0.0066625774,
-0.1516208947,
0.0931438506,
-0.0834324658,
0.2480465174,
-0.0020350106,
-0.0652902424,
0.0928144306,
-0.1238284111,
-0.307795763,
-0.0492699295,
0.4987153411,
0.120465681,
0.103087917,
0.6825526357,
0.1222135723,
-0.0367000736,
-0.2413408011,
0.311747551,
-0.2639374733,
-0.0966205597,
0.1311968714,
-0.1354557872,
0.1641071439,
0.0188413747,
0.2660931051,
0.1431496739,
-0.1831005514,
0.1255338937,
-0.3727389574,
-0.3420339525,
0.0853065476,
0.0867968649,
0.0365236141,
0.3154532909,
0.2218176872,
0.0249407291,
-0.1445482522,
-0.3769084215,
0.0968958288,
-0.0546056852,
0.0498189405,
0.0529910773,
-0.2355288416,
0.1326882243,
-0.0485051908,
0.2245551497,
0.125654608,
-0.1869513094,
-0.2962937951,
-0.0257776193,
0.0505656004,
-0.137913093,
-0.2670505047,
-0.1554029733,
-0.1380646378,
-0.1070194542,
-0.0943811536,
0.0379410461,
0.0420826077,
0.0546769761,
-0.0086765662,
-0.1130882204,
0.0625440776,
0.0154544041,
-0.0258996934,
0.0415077358,
0.3601212502,
0.1232103854,
0.2862482667,
0.0048702285,
-0.0090659931,
-0.1393584311,
0.0529399216,
0.1061157137,
-0.062522158,
0.4956173301,
-0.5514345169,
0.2296753824,
0.205764547,
0.0518742874,
0.3414043486,
-0.2846624255,
0.0875459164,
-0.0317554846,
0.3160978556,
-0.0697550476,
-0.0543362498,
-0.0581458062,
-0.1145484,
-0.1619735509,
0.0740739778,
0.0659964383,
0.0969428569,
0.0974299014,
0.2289814055,
0.5092586279,
-0.0384555645,
0.1326852441,
0.3509935141,
-0.2204764485,
-0.025668405,
0.1550640315,
0.0337027088,
0.1524449736,
0.5504530668,
-0.1738505214,
0.3638175428,
0.0467281453,
0.2301940918,
-0.0908971578,
-0.272854507,
-0.1792766154,
0.0543197989,
-0.1145458966,
0.1795696318,
0.172670871,
-0.0131102651,
-0.2915279269,
-0.1167618334,
-0.51160115,
-0.0274864417,
-0.1898691803,
-0.1445577294,
-0.2732618153,
-0.1898443997,
-0.1252176315,
0.1707195044,
-0.0580858625,
0.0919248462,
-0.0969294012,
0.314352423,
-0.1261970997,
-0.4820242524,
-0.3915016055,
0.0809078291,
-0.0292963721,
-0.2216843963,
0.4314951897,
0.330871284,
-0.1228766143,
0.1327255666,
0.2395050675,
0.4572741985,
0.3687527776,
-0.2967998981,
-0.0131787527,
-0.1482019424,
-0.2029775828,
-0.0427319892,
0.1434617043,
0.2300139964,
0.4531635642,
0.1332663894,
0.2887103558,
-0.2089294493,
-0.016674323,
0.181016013,
0.2182871252,
-0.2215470821,
0.1298511922,
-0.0419784635,
0.1686279029,
-0.0074696541,
-0.088515535,
-0.5434635282,
0.0401477553,
0.1592126191,
0.288908571,
-0.0623681396,
-0.1588570029,
0.1310418844,
-0.0189991519,
0.3759169579,
-0.0097481254,
0.0368048623,
-0.3365984261,
-0.129978165,
-0.4362043142,
0.1682825089,
-0.1909893006,
-0.022006698,
0.038022954,
0.1199908555,
0.1020137221,
0.3278620839,
0.1788885295,
-0.1205592453,
0.0284022391,
-0.0729250237,
-0.2259824872,
-0.082577765,
0.2572516501,
-0.0021914374,
-0.1161155403,
-0.2137536705,
0.3117862344,
0.001922708,
0.1452404261,
-0.3561686873,
-0.202980727,
-0.0674704164,
0.0280014668,
0.5374517441,
0.1623467207,
0.3618908823,
-0.0228520483,
-0.2558178604,
-0.1589376628,
-0.2314825058,
-0.1078366637,
0.1982892305,
0.167437017,
0.4172363579,
-0.1999168098,
0.1303412616,
-0.4659354091,
0.0804221183,
-0.1563738883,
-0.158622995,
-0.4202130735,
-0.0610853024,
0.0501154214,
0.1049485058,
-0.1206998825,
0.2867713273,
0.1374482065,
0.2191433907,
-0.3230118155,
-0.0361344814,
0.3846176863,
-0.3938947618,
-0.3895450234,
-0.0443840437,
-0.0917499214,
-0.2922386527,
0.0420933962,
-0.5770187378,
0.3236662745,
0.2290090919,
-0.1083640158,
-0.3024743497,
0.2415041775,
0.2241238356,
0.1163617671,
-0.0124491155,
0.3833834827,
0.1507357955,
-0.1480347663,
0.0213336647,
-0.1592854261
] |
https://github.com/huggingface/datasets/issues/749 | [XGLUE] Adding new dataset | Small poll @thomwolf @yjernite @lhoestq @JetRunner @qiweizhen .
As stated in the XGLUE paper: https://arxiv.org/pdf/2004.01401.pdf , for each of the 11 down-stream tasks training data is only available in English, whereas development and test data is available in multiple different language *cf.* here:
![Screenshot from 2020-11-04 15-02-17](https://user-images.githubusercontent.com/23423619/98120893-d7499a80-1eae-11eb-9d0b-57dfe5d4ee68.png)
So, I'd suggest to have exactly 11 "language-independent" configs: "ner", "pos", ... and give the sample in each dataset in the config a "language" label being one of "ar", "bg", .... => To me this makes more sense than making languaga specific config, *e.g.* "ner-de", ...especially because training data is only available in English. Do you guys agree? | XGLUE is a multilingual GLUE like dataset propesed in this [paper](https://arxiv.org/pdf/2004.01401.pdf).
I'm planning on adding the dataset to the library myself in a couple of weeks.
Also tagging @JetRunner @qiweizhen in case I need some guidance | 105 | [XGLUE] Adding new dataset
XGLUE is a multilingual GLUE like dataset propesed in this [paper](https://arxiv.org/pdf/2004.01401.pdf).
I'm planning on adding the dataset to the library myself in a couple of weeks.
Also tagging @JetRunner @qiweizhen in case I need some guidance
Small poll @thomwolf @yjernite @lhoestq @JetRunner @qiweizhen .
As stated in the XGLUE paper: https://arxiv.org/pdf/2004.01401.pdf , for each of the 11 down-stream tasks training data is only available in English, whereas development and test data is available in multiple different language *cf.* here:
![Screenshot from 2020-11-04 15-02-17](https://user-images.githubusercontent.com/23423619/98120893-d7499a80-1eae-11eb-9d0b-57dfe5d4ee68.png)
So, I'd suggest to have exactly 11 "language-independent" configs: "ner", "pos", ... and give the sample in each dataset in the config a "language" label being one of "ar", "bg", .... => To me this makes more sense than making languaga specific config, *e.g.* "ner-de", ...especially because training data is only available in English. Do you guys agree? | [
-0.1428690702,
0.0099275112,
-0.0491098985,
0.169831574,
-0.0771437883,
-0.2269946337,
0.3096126616,
-0.0059922328,
-0.1106404811,
0.026588805,
-0.0933471173,
-0.109279491,
0.0642141551,
0.3641542494,
0.2442416996,
0.005411563,
-0.0701901913,
-0.2135340571,
0.1959690452,
-0.1101958603,
-0.1925242841,
0.207330659,
0.0093112737,
0.0382779464,
-0.1812145412,
-0.3838917315,
-0.1454202384,
-0.0401202701,
-0.2106133401,
-0.1362015903,
-0.0949115902,
0.2998590171,
-0.0450544283,
-0.135719195,
-0.0001101672,
-0.1455020607,
0.0337632373,
-0.2893486619,
0.0777748078,
0.0766479671,
-0.5392186642,
-0.4189272523,
-0.210025847,
0.0218821168,
-0.1322230995,
-0.0703947842,
0.0398567915,
-0.3876661658,
0.015085496,
0.2009892911,
0.1243593842,
-0.1307043433,
-0.0916959047,
0.0022769608,
0.1724184602,
-0.0599795729,
-0.0712105632,
0.2573901713,
0.6603617668,
0.118026413,
-0.1897400767,
0.4227790534,
0.1062072366,
-0.2274498492,
-0.2512738109,
-0.1123051345,
0.0275757834,
-0.5208722353,
-0.0307947677,
0.7121626139,
0.0944149494,
-0.2192556411,
-0.3764992952,
-0.5085291862,
0.2311371565,
-0.1060141549,
-0.0385444909,
0.3316166997,
0.1360911727,
0.1246427149,
0.281339705,
-0.4833072722,
-0.0645143911,
0.1144298762,
0.0272161216,
0.3500626385,
-0.0517748557,
0.1554930806,
0.0582314581,
0.2205417454,
0.090846397,
-0.1914833635,
-0.2028793991,
-0.1587757617,
-0.2737717927,
0.0238597617,
0.1089217737,
0.1924333721,
0.2820927501,
0.0103116818,
0.0504967608,
0.2658740282,
0.0358599611,
0.0092024803,
0.0958340019,
0.1696858108,
0.3132936954,
-0.0710077882,
0.389337182,
-0.2828631401,
0.0175497234,
0.0768343061,
0.1171838567,
-0.0472929291,
-0.5885557532,
0.1953619719,
0.0552476346,
-0.1350182295,
-0.1649698764,
0.0188803896,
-0.2845041156,
-0.2749777436,
0.1250262856,
0.0475594774,
0.2360587269,
0.2134108841,
-0.2342139184,
0.4277411401,
-0.2416111529,
-0.7489877939,
-0.0678647608,
0.1831589937,
-0.2963540256,
0.0628100187,
-0.0161671937,
-0.0169058964,
-0.0826982409,
0.5410317183,
-0.1015981734,
-0.123005107,
0.3408746123,
-0.2684746981,
0.0758990422,
-0.1212970316,
-0.141421333,
0.0661510602,
0.058392778,
-0.2884203196,
-0.3733742833,
-0.0477203391,
-0.0855763182,
-0.3151537776,
0.0327205807,
0.1235512495,
-0.1183030978,
-0.1122062504,
0.0821987912,
0.9992448688,
0.0727829337,
0.1342612952,
0.2505102754,
-0.2038619071,
0.0183529556,
-0.3103569746,
-0.1085830405,
0.402430445,
-0.6962324977,
-0.0611517131,
0.2866933048,
-0.1877840757,
0.2729091346,
0.0335708708,
-0.3144290447,
0.020433031,
-0.1424880922,
0.3152842522,
0.3137671947,
-0.1194132715,
-0.0993401557,
0.1415378898,
0.0063684583,
0.0358396843,
0.0838429034,
0.132358551,
0.2332867086,
0.1201408803,
-0.2324823439,
0.5208761096,
-0.1417696327,
-0.1645274907,
-0.171830073,
-0.1081950516,
0.1924679428,
0.2677875757,
-0.129140377,
-0.2747170329,
0.1060365289,
-0.2061805576,
0.1472237408,
-0.2873650193,
0.1071480736,
0.1919690967,
0.0442442186,
-0.0178577416,
-0.1327812523,
0.3083822131,
-0.5418761969,
0.1860675216,
-0.1032324284,
0.5869048834,
0.2990987897,
-0.0234108977,
0.426078409,
-0.3329880238,
-0.3582533002,
-0.4428257048,
0.1009380296,
0.2809550464,
-0.0295407884,
0.1378972232,
-0.3276754022,
0.7076434493,
-0.3452910781,
0.0027657524,
-0.4479751289,
-0.0915758312,
0.0930151045,
0.0227046497,
0.0056793243,
0.0761759579,
-0.0997641534,
-0.3386254311,
-0.0859094411,
0.1294832528,
0.2044922411,
0.2254514694,
0.1732317805,
0.213970691,
0.339040488,
0.1038615778,
0.2929345965,
-0.1664488614,
-0.1128628999,
-0.183356747,
0.4820531607,
0.6298456192,
0.2662585676,
0.2163889408,
-0.1045629755,
-0.0403344221,
0.2494564056,
0.0179535523,
-0.4191429317,
-0.0703290701,
0.3541179895,
-0.036446929,
0.6003258228,
0.2047509402,
-0.6425074935,
0.3023059964,
0.482670635,
0.0564567745,
0.050608959,
-0.1181974784,
0.1667408645,
0.0330386162,
0.2556284666,
0.6512217522,
0.2741759717,
0.2426812798,
0.2308562249,
-0.0964263007,
-0.2540906668,
-0.2738218904,
0.0713032857,
-0.192588836,
0.0294660181,
0.0707009733,
-0.2881259918,
-0.2493152022,
-0.379234612,
0.0157704949,
0.0477977172,
-0.0397262648,
0.007628046,
-0.0560176522,
-0.1628449261,
-0.4510362744,
-0.34549281,
-0.1865977645,
-0.6983682513,
-0.109042123,
0.2895421088,
-0.6256929636,
-0.1746238768,
0.3286411762,
-0.124504894,
0.1849990487,
-0.6705851555,
-0.345769465,
0.2005440891,
-0.0656347051,
-0.4162080288,
0.0572258607,
0.3163968623,
0.1030965149,
0.2832970917,
-0.0476401336,
-0.1945649981,
0.014633514,
-0.4240469635,
0.2005155683,
-0.1981101334,
0.1131809428,
-0.0054037943,
-0.2507763803,
-0.080851011,
-0.1278043389,
0.1899141073,
-0.0978042632,
0.0012916327,
-0.1677270532,
-0.0949391946,
0.1115407124,
-0.0865341276,
-0.7437156439,
-0.5412387848,
-0.3228507936,
0.1131124347,
-0.2410253286,
0.1418780684,
0.2627956271,
-0.0575281754,
0.0206515118,
-0.0202818941,
-0.0362937748,
-0.2076791227,
-0.2961928248,
-0.0374756902,
-0.0135561153,
-0.181202352,
-0.0514453612,
-0.0529959127,
0.3328413963,
0.3901850283,
-0.1726879179,
0.165959999,
-0.0591807216,
-0.0047127083,
0.1148092225,
0.1560313255,
0.2730444968,
0.0309686624,
0.0631560087,
-0.0121305734,
-0.029384017,
0.4256520867,
0.2989345193,
0.0689523965,
0.2517805398,
0.0168337096,
-0.0664108172,
0.2445133328,
0.3209447861,
0.3493476808,
0.3737211823,
0.0874530151,
0.3018292189,
-0.1075808555,
-0.2019777298,
0.4385578036,
0.1080709472,
-0.0664284304,
0.2356901169,
0.0161511451,
-0.3635127544,
-0.2256160229,
0.1721406281,
0.0423556492,
-0.273273617,
0.3677726686,
0.0257310849,
0.1816158593,
-0.1625986248,
-0.2604586482,
0.088537395,
0.2066213638,
0.0591915511,
-0.0404698104,
-0.1929956824,
0.2956125736,
-0.4144999385,
0.0610369891,
-0.3991523981,
0.2309012562,
0.0371928774,
0.2656212151,
-0.1830394268,
0.0845904127,
0.132357806,
0.1686958075,
0.1794895381,
-0.7963296175,
-0.5081317425,
0.2580792904,
-0.0412725732,
-0.139090687,
-0.0831523091,
-0.288330704,
-0.1484972835,
0.4331048131,
0.0448708087,
-0.4176845849,
-0.2206397355,
-0.1583039761,
0.3739383221,
0.1010928378,
0.2104704678,
-0.1974392235,
-0.1782926023,
-0.1170190573,
0.2660336196,
0.1186479032,
-0.1181284934,
0.304287076,
0.0779820532,
0.0410202667,
0.1341978163,
0.1456560493,
0.1758655012,
-0.0906777382,
0.0889823139,
-0.1730852723,
0.0043388549,
0.077119559,
0.1129127815,
0.3774050772,
-0.197386682,
-0.1878219545,
0.0458314046,
-0.198435396,
0.4541036785,
0.3063156009,
0.3032433391,
0.0627223253,
-0.1367661059,
-0.1835804284,
-0.1374142021,
0.1951071173,
0.0464616567,
0.30574435,
-0.4204001725,
-0.4959655106,
0.0062680636,
0.217268452,
-0.1160677969,
0.6183968186,
0.1820370406,
-0.3637962639,
0.0239384286,
0.126007542,
0.9849290252,
0.0476908535,
-0.0739722997,
0.0827906355,
-0.3355007768,
0.239618212,
-0.3381160498,
0.2396824807,
-0.3148292899,
-0.2635336816,
-0.0513518564,
-0.0874923915,
0.3884125352,
0.2145522833,
-0.148576051,
0.171299696,
0.201947704,
0.0042493502,
-0.1619073153,
0.4123128355,
-0.251999855,
-0.2226082385,
0.0543111973,
0.0794549584,
-0.0743557513,
-0.1005910262,
-0.0212403536,
-0.0743887573,
-0.0881815627,
0.0843420178,
-0.1392338276,
0.0377073064,
-0.5448745489,
0.0035330169,
-0.3147046566,
-0.4152886868,
0.1437130421,
0.1752533019,
0.0847180784,
-0.2490737885,
0.2143057734,
0.0554811396,
0.0298298672,
0.0860661566,
0.2507681549,
-0.3000154793,
0.3130247593,
-0.0505437702,
-0.3360149264,
-0.0765107721,
-0.1037968695,
-0.0291360468,
-0.4604721069,
-0.0021136105,
-0.0890014917,
-0.0638961419,
0.0474108383,
0.501191318,
0.2137594521,
-0.1229201183,
0.0853984579,
0.1309883296,
-0.0093306266,
0.2678689063,
-0.3505834639,
-0.1870653033,
-0.4241064787,
-0.3487687409,
0.1348616034,
0.2235313505,
-0.1319107264,
0.0799197704,
-0.0816700906,
-0.1965602934,
0.4011842906,
0.5465691686,
-0.0879473463,
-0.245146364,
0.0401033834,
-0.3437678218,
-0.1185658425,
-0.0462438911,
0.0961438417,
0.2671129704,
0.2269536406,
-0.1093565673,
-0.1220851392,
0.2045992911,
0.0560420975,
0.1586215794,
-0.1716844738,
-0.2304514647,
0.2959859669,
0.2857680619,
-0.2842214108,
-0.1052114069,
-0.0574470237,
0.0814911723,
0.0322754867,
0.1359031051,
-0.0090278648,
0.2274610698,
0.0398167595,
-0.2499084473,
-0.2717951536,
-0.051471509,
-0.0815997645,
0.1058993787,
0.1697380543,
0.1716054231,
0.3742369115,
-0.2249575108,
-0.0880227536,
-0.0770930052,
0.3085911274,
0.1879905015,
-0.0275250748,
0.1648975313,
-0.1111715585,
0.0813966393,
-0.0637394339,
0.217033416,
0.1264248639,
-0.0327553228,
0.4839589,
0.0760215372,
0.1110295057,
-0.15191634,
0.0326543152,
0.2393972129,
-0.0714385882,
0.0702329725,
-0.4901865721,
0.1066787317,
0.2584306896,
0.3129652143,
0.2199156135,
0.3236779571,
-0.1063199639,
0.1365758926,
0.2814669907,
0.1494237334,
-0.217226088,
0.0081287026,
0.4324060678,
-0.1141851097,
0.1893191934,
0.6332742572,
0.5160238743,
0.0638530254,
0.3735548258,
-0.3664913177,
0.0195513815,
-0.1580125093,
0.2876551151,
0.1989525557,
-0.3435722291,
-0.0083468687,
0.4673802853,
0.2608582079,
0.0131729059,
-0.0204509422,
-0.370290041,
0.1684005558,
0.4748404622,
0.2019538283,
0.0955996662,
-0.1417230964,
-0.0462933034,
0.4105333686,
-0.0688811839,
-0.1218323112,
-0.0768226013,
0.2128554434,
-0.1870402247,
-0.2848091722,
0.2531353533,
0.1109504029,
-0.2646321952,
0.113984406,
-0.0329072885,
-0.0848695263,
-0.2566360831,
0.1382216513,
0.0882046297,
-0.3035601974,
0.3480522037,
0.2333992869,
0.1001541913,
-0.1707012951,
0.194010973,
-0.203185007,
0.0243389625,
-0.1241456121,
0.4189013541,
-0.1969902217,
0.0209345482,
0.0248298086,
0.3182600737,
0.0532477722,
-0.0070855236,
0.0305492058,
0.2666794658,
0.0592818968,
0.2132052779,
-0.0238648094,
0.2628644109,
0.2646436393,
0.1775676459,
0.3684822321,
-0.0195249673,
-0.0437361524,
-0.2275280356,
0.1963339448,
-0.2719419003,
-0.0888733417,
0.0641222,
0.0273785107,
0.0274815261,
-0.1904760748,
0.1537704468,
-0.2445715815,
0.0825684369,
0.319080174,
-0.1334519982,
-0.0575569272,
0.0144636929,
0.0764834061,
-0.0535369143,
0.0364791416,
-0.1369409263,
0.1068810523,
-0.2773875296,
-0.3973071575,
-0.5407935381,
0.0473797768,
-0.0731298029,
-0.1428751647,
-0.2532853782,
0.1221584827,
0.4480462968,
0.2421813607,
-0.0225997493,
0.30971843,
0.2443049103,
0.0017365371,
-0.3667012453,
0.2064489275,
0.0931752473,
0.3003847599,
-0.0071129389,
0.0821963325,
-0.0121720936,
0.2777651548,
-0.0754387379,
-0.0177315287,
-0.0172351524,
0.1883178353,
-0.0081600258,
0.3189551234,
0.1656631976,
0.2753291726,
-0.0120375901,
-0.0335238986,
-0.2090339214,
-0.0022410676,
-0.4333557487,
0.4266465604,
-0.0440646484,
0.1827370673,
-0.2122014016,
-0.1623464227,
-0.2630764842,
0.1672796309,
0.0798289478,
0.2675009966,
-0.0244210251,
0.3098955452,
0.359069705,
-0.0127311945,
0.0631134883,
0.3329381943,
0.2044287622,
-0.1286716461,
-0.1421046555,
-0.1900205314,
-0.0214150846,
0.3513059914,
0.0433107316,
0.035018485,
0.1487541497,
0.4033875465,
0.1723923385,
-0.5031599998,
0.0182695687,
0.1999261975,
-0.14168109,
-0.0927899182,
0.2862269282,
0.146264866,
-0.3139475584,
-0.0572577119,
-0.1617417783,
0.0820256323,
-0.1910755932,
0.1697110534,
-0.1253716201
] |
https://github.com/huggingface/datasets/issues/749 | [XGLUE] Adding new dataset | In this case we should have named splits, so config `ner` has splits `train`, `validation`, `test-en`, `test-ar`, `test-bg`, etc...
This is more in the spirit of the task afaiu, and will avoid making users do the filtering step themselves when testing different models or different configurations of the same model. | XGLUE is a multilingual GLUE like dataset propesed in this [paper](https://arxiv.org/pdf/2004.01401.pdf).
I'm planning on adding the dataset to the library myself in a couple of weeks.
Also tagging @JetRunner @qiweizhen in case I need some guidance | 50 | [XGLUE] Adding new dataset
XGLUE is a multilingual GLUE like dataset propesed in this [paper](https://arxiv.org/pdf/2004.01401.pdf).
I'm planning on adding the dataset to the library myself in a couple of weeks.
Also tagging @JetRunner @qiweizhen in case I need some guidance
In this case we should have named splits, so config `ner` has splits `train`, `validation`, `test-en`, `test-ar`, `test-bg`, etc...
This is more in the spirit of the task afaiu, and will avoid making users do the filtering step themselves when testing different models or different configurations of the same model. | [
-0.4026008546,
-0.0958496556,
-0.100319989,
-0.1407157183,
-0.1486178786,
-0.1347501427,
0.2657961249,
0.3144336343,
0.0133645311,
0.1866728663,
-0.1717516482,
0.0889779478,
-0.0634423941,
0.3414170742,
0.3362111449,
-0.0489127152,
-0.0718723685,
0.1033512652,
0.2111004591,
-0.0516762733,
-0.0687025934,
0.2674791515,
0.0762643665,
0.1808436215,
-0.1707198918,
-0.3964274824,
-0.0069610402,
0.1819522828,
-0.0863823816,
-0.3037912846,
-0.0648694113,
0.236116454,
-0.264785856,
0.2227278054,
-0.0001021952,
0.0186399072,
0.0620972887,
-0.1218782216,
0.095085904,
-0.0929757506,
-0.2374880612,
-0.2317352891,
-0.069872722,
-0.0005481243,
-0.3907123804,
0.1390843987,
-0.0086090975,
-0.3298977911,
0.3266132772,
0.3445440531,
0.2371619344,
0.1790289432,
-0.1479174495,
-0.1607902646,
0.2258081287,
-0.0567051023,
-0.0942567661,
0.1117311791,
0.4271666706,
0.1156871021,
-0.2336816043,
0.481033951,
0.3760599196,
-0.123986885,
-0.1967465281,
-0.0698353946,
0.1162238345,
-0.2355746031,
-0.2229490578,
0.6634973288,
-0.0900198296,
-0.1845545024,
-0.4045479894,
-0.1773200333,
-0.0388093293,
-0.2991456389,
0.1057847962,
0.2563798428,
-0.157285735,
0.098082304,
0.2095353901,
-0.5304239988,
-0.1012646481,
-0.0068214741,
-0.1744520962,
0.5518788099,
0.0126466081,
-0.0335030742,
0.1698783487,
0.0689379424,
-0.1111649126,
-0.0333245397,
-0.1056860238,
-0.1299830824,
-0.3020144701,
-0.1565746069,
-0.0306326263,
0.1455109119,
0.113394931,
0.0860128552,
0.100548476,
0.2182040811,
0.1289456338,
0.1670176983,
-0.1857682467,
0.0559552945,
0.2164851874,
0.0193347968,
0.279815048,
-0.1669443548,
-0.1872885227,
0.0404679738,
0.168081373,
-0.0744645745,
-0.4383298457,
-0.0118651371,
-0.1712934673,
-0.1781160831,
-0.3314334154,
0.0247974955,
-0.0068881661,
-0.143626675,
0.2092065364,
0.2793003917,
0.0224496722,
-0.1478821486,
-0.1934199035,
0.1645050645,
-0.2525926828,
-0.3452319503,
-0.1880887449,
0.4269103408,
-0.2951267362,
-0.049464412,
0.0286361724,
-0.086824514,
0.1208116859,
0.0471362807,
-0.1909851134,
0.0883195698,
0.3627955616,
-0.0257854518,
0.0616967529,
0.1848796606,
0.0155419111,
-0.1087417156,
0.034966927,
-0.183204025,
-0.3418174386,
-0.2202506214,
0.0020330902,
-0.2498939335,
-0.2068323344,
0.2593638301,
-0.1927218139,
-0.1097694784,
0.5019008517,
0.7477042079,
-0.1138682365,
-0.3097320199,
0.0103495158,
0.0722303987,
-0.1551328152,
-0.1781287491,
0.142340228,
0.234819591,
-0.7939330339,
-0.4151143432,
-0.1149812192,
-0.3740383983,
0.2320400774,
0.0306627899,
-0.1746027768,
-0.1790687442,
-0.0676403046,
0.5377994776,
0.4789311588,
-0.0326394141,
-0.1506251693,
0.1968883723,
-0.3211740553,
-0.0246893056,
0.3203321397,
0.1018750072,
0.0402512699,
-0.0075321943,
-0.1099250615,
0.5292526484,
-0.3676406741,
-0.3368197083,
-0.2437321246,
0.0249284953,
0.3988684416,
0.1669459343,
0.2497590035,
-0.3429688811,
0.1850261837,
0.0071819872,
0.0768770874,
-0.2135213315,
0.052917935,
0.1174660027,
0.3316628933,
-0.1416357011,
-0.1905554831,
-0.179857403,
-0.1615655571,
0.0233862624,
-0.4569209814,
0.3356410861,
0.2028001249,
-0.1793416142,
-0.0773241669,
-0.2438416779,
-0.2253040224,
-0.2563344538,
0.2326022685,
0.2952124774,
0.1288314015,
0.132858634,
-0.1517304778,
0.3488108516,
-0.2325494587,
0.1285132766,
-0.3362824023,
0.1396403909,
-0.118668355,
-0.1851195395,
-0.1478705108,
0.1360010654,
-0.1948615611,
-0.2928481698,
0.0158038363,
0.4303456843,
0.1253079921,
-0.0231994614,
0.2271463424,
0.0917504579,
0.2911507487,
-0.0336013287,
0.1174272224,
-0.0836508274,
-0.0812101141,
0.0772666484,
-0.0643260777,
0.5886887312,
0.2394320071,
-0.1911157072,
0.1892772317,
0.0202028826,
0.3595639765,
-0.1796153635,
-0.1154733151,
-0.2785172462,
0.3284756541,
-0.0679827332,
0.1604867727,
0.1114514247,
-0.4790664315,
-0.0094286092,
0.4859452546,
0.0590870976,
0.3648811281,
-0.0237301029,
0.129761219,
-0.10837394,
0.0682210252,
0.4315475821,
0.1073838994,
0.2848712504,
0.2683021128,
-0.0328880548,
-0.377515316,
-0.2526906729,
0.1884734333,
-0.1644176394,
-0.0211052522,
0.2314583212,
-0.1786975116,
-0.4338042736,
-0.4670212865,
-0.1032854766,
0.2745411396,
-0.0487774163,
-0.140962854,
-0.1502779722,
-0.1997583807,
-0.2132202387,
-0.3502657413,
-0.0971340984,
-0.3460001945,
-0.1867787838,
0.518222928,
-0.2924462259,
-0.1760050058,
0.3785412312,
-0.15981251,
0.3075081706,
-0.2044345737,
-0.0438870117,
0.0040382966,
-0.0985974222,
-0.3283255696,
0.2513147891,
0.1908451319,
0.2258792818,
0.3649794459,
-0.0743881315,
0.0986498371,
0.071600616,
-0.7308651209,
0.1624784321,
-0.1577547193,
0.2988200486,
0.1267986,
-0.1182795167,
0.1131326854,
-0.286873281,
0.210350439,
-0.2408053279,
-0.1970638037,
0.0792608261,
-0.0407165959,
0.0391068347,
-0.2071116716,
-0.8082505465,
-0.4853228629,
-0.3589680791,
-0.1158561558,
-0.1579069495,
0.114827618,
0.1002135426,
0.0731067508,
0.1114849374,
-0.2805960178,
0.0076129884,
-0.1510395408,
-0.1234073639,
0.116369471,
-0.2014591247,
-0.1243723482,
-0.0786938816,
-0.2079161108,
0.1581923366,
0.0877098143,
-0.128659144,
-0.03068888,
-0.0390451998,
0.1243708432,
0.4112744629,
-0.0139589757,
0.3051306009,
-0.0276302435,
-0.1860747337,
-0.2051464915,
-0.0044553578,
0.335655719,
0.0322707966,
0.1974274814,
-0.1203246862,
0.3349352479,
0.1339775026,
0.3058950305,
-0.0827450529,
-0.034838859,
0.3734639585,
0.0061594062,
0.1780784428,
-0.0371431932,
-0.1299081743,
0.2221926451,
0.0400745124,
0.1338744164,
0.1958669573,
-0.0403218791,
-0.3794885278,
-0.0636170134,
0.050812915,
0.0142223611,
-0.245677188,
0.2767378986,
-0.0690669268,
0.2330413312,
-0.0647960827,
-0.2957938612,
0.0468136892,
0.0790786073,
0.0880559981,
0.0216556247,
-0.0771385878,
-0.0655038357,
-0.6089607477,
0.0905620605,
-0.0617354847,
0.3322023451,
0.2150346786,
0.2362169772,
-0.3545501828,
-0.2137061059,
0.0067059956,
-0.0045263246,
0.4245502055,
-0.6387292743,
-0.3257997036,
0.1251166612,
-0.1791616082,
-0.1754112989,
-0.0034701154,
-0.4442122281,
-0.2253205776,
0.4683686495,
0.1449168175,
-0.3436179161,
-0.2765908241,
0.1827063262,
0.0970708579,
-0.2005444914,
0.2465617955,
-0.1700361967,
-0.0871615335,
-0.2539559603,
0.4257579446,
-0.1659009308,
0.062220335,
0.2831773162,
-0.1150993556,
0.0646722838,
-0.0397013463,
0.3100996315,
0.4098553658,
-0.0249955207,
0.0888766944,
-0.17913571,
-0.0712956637,
0.1417740583,
-0.1259773672,
0.2017912418,
-0.2762452662,
-0.0261720531,
0.1000605449,
-0.2319994122,
0.3551784158,
0.312563628,
0.1280041188,
0.3205571473,
0.0494507924,
-0.0521536954,
-0.084223792,
0.4497030079,
0.0158805139,
0.2580981851,
-0.3180541396,
-0.3337845206,
-0.0661653429,
0.2285649925,
-0.2107953131,
0.2800614536,
0.2676202059,
-0.231814146,
0.1874694675,
0.1028197855,
0.9224635363,
0.0598706529,
-0.1200505197,
0.1358323693,
-0.1968903989,
0.1186687201,
-0.3971565962,
0.1130548045,
-0.2436853945,
-0.3141517043,
-0.1351843327,
0.0055968165,
0.4562392533,
0.1878723055,
-0.2996573746,
0.2148269564,
0.135868609,
-0.0031979077,
-0.0746263862,
0.3480919003,
-0.1192141026,
-0.1294189543,
-0.0360306911,
0.1912574023,
0.0044820742,
-0.1313328892,
0.0667046607,
-0.1764064133,
0.0329358876,
-0.0699044839,
-0.1038202494,
0.041348204,
-0.1775308996,
0.1177049279,
-0.0536806062,
-0.1844180524,
0.1092245579,
-0.0690410063,
0.1380470246,
0.1580836177,
0.1200251803,
0.2941996455,
-0.0762504935,
0.1471017152,
0.1365594715,
-0.1427119821,
0.6267645955,
-0.1289559603,
-0.3069669604,
0.2094913721,
0.0562661886,
-0.1752727628,
-0.1619964987,
-0.0475410223,
0.0762055367,
-0.2443704009,
-0.0056422204,
0.2292587608,
0.0134979337,
-0.4274724126,
0.200614959,
0.0614405386,
-0.4205587506,
0.1520061493,
0.0173502024,
-0.1653869599,
-0.2778962851,
-0.25562644,
0.1216322184,
0.3193447888,
0.0448105522,
0.0902810544,
-0.0682642385,
-0.3680656254,
0.0006735399,
0.787629962,
-0.3748196065,
0.1325341165,
-0.0687296242,
-0.5916545987,
0.0773958117,
0.0315191075,
0.3649027944,
0.3213344812,
-0.0512355007,
-0.1956504583,
-0.0381202176,
0.0758212656,
0.0719575733,
0.4078859091,
-0.0805040821,
0.0682990104,
-0.0274342187,
0.4570304155,
-0.4596619606,
-0.1192252487,
-0.3372141421,
0.2345483601,
-0.2614816427,
0.0434475243,
0.0987607166,
0.1737752706,
0.2200475037,
-0.0975529402,
-0.2103376687,
-0.2379670143,
-0.1600090712,
0.0657835975,
-0.1205593199,
0.2012430727,
0.2070000321,
0.1868962944,
0.0833775923,
0.0131905489,
0.3018625975,
-0.2768756747,
-0.0208707862,
0.177252546,
0.0810483396,
-0.2472325861,
0.1071168929,
-0.0407218114,
-0.0892872363,
-0.0021474548,
0.2132823169,
0.1496021748,
0.0403960049,
-0.1936970353,
-0.0163375847,
0.2318392098,
0.1679386199,
-0.0342717469,
-0.3017487526,
0.0924232751,
0.0133814737,
0.0927656144,
0.3654085696,
0.1559432298,
0.0438666493,
0.2086666524,
0.2636064291,
0.3418989778,
-0.3398109674,
-0.0437321365,
0.5402927399,
-0.1636396199,
0.4729084074,
0.3172204196,
0.3986677527,
0.436591953,
0.3079836965,
-0.1262674332,
-0.0659620613,
-0.0754211396,
0.2586030364,
0.4109568596,
-0.0899896994,
0.0364706367,
0.4287821949,
-0.0308456887,
0.0710815117,
0.188633278,
0.0119575132,
0.484559238,
0.1763229221,
0.3700488508,
0.1930939257,
-0.1433775425,
0.0301438104,
0.1022958234,
-0.0258100592,
0.1754261851,
0.0862090439,
0.2275401503,
-0.1140876263,
-0.2702918351,
-0.085916765,
0.2736181915,
-0.1358743906,
-0.1678970009,
-0.2852208912,
-0.2245148569,
-0.2584622204,
0.119212389,
0.3195638955,
-0.0634584129,
0.1701211929,
0.1603121758,
0.1590656787,
-0.0753976554,
0.2455548793,
-0.0336565003,
-0.0297228359,
-0.3305517733,
0.3696350157,
0.1434023827,
-0.0854763687,
0.0771524608,
0.0752735361,
0.1206653565,
-0.2689929307,
-0.0746613592,
0.1485328972,
-0.0547174253,
-0.0543556139,
-0.1038949341,
0.239879638,
0.2367776036,
0.4322723746,
0.3460185528,
0.1975117326,
-0.2211992145,
0.0832739025,
0.1107623279,
-0.1613856405,
-0.1416667551,
0.2433819473,
0.188316077,
0.2390523404,
-0.4731660783,
0.0350849442,
-0.4495849609,
0.0903760865,
0.3246406615,
-0.2897536159,
-0.0027567334,
-0.0898315459,
0.1125624925,
0.1293249726,
0.3142217696,
-0.1294061542,
0.0516741872,
-0.1591432393,
-0.2019967735,
-0.4413147569,
0.0547311269,
-0.0403840579,
-0.1835622787,
-0.2636708021,
0.3045914173,
0.2783792317,
0.0368915088,
-0.1825134456,
0.1389003694,
0.0346688442,
0.0216564462,
-0.397192359,
0.2674285769,
0.0383199602,
0.2621860802,
0.0511259139,
-0.048759535,
-0.0300921947,
-0.0213440917,
0.0624183267,
0.0825680345,
-0.2733351588,
0.3914414346,
-0.0397450253,
0.1981400698,
0.0442068651,
0.5657783747,
-0.1486567557,
0.0834050849,
-0.1370040923,
-0.0643250942,
-0.4202278554,
0.1341945678,
0.242426306,
0.5128123164,
0.1195676103,
-0.1767279208,
-0.1290865541,
0.3237069845,
0.124218896,
0.0261499658,
0.0069245026,
0.2358241081,
0.210790351,
-0.160304606,
0.3413084447,
0.5047714114,
0.1459011137,
-0.1016613692,
0.0846766979,
-0.3917711973,
0.1512983143,
0.0446775705,
-0.0946693942,
-0.1255574822,
0.0433894545,
0.396292448,
0.0148866158,
-0.4677680135,
-0.1340254247,
0.1449149251,
-0.0399574675,
-0.0277339332,
0.2085358351,
0.4323601723,
-0.0117173195,
-0.0592452735,
-0.3107559085,
0.1372045875,
-0.2201347351,
-0.0102340132,
-0.2752773166
] |
https://github.com/huggingface/datasets/issues/749 | [XGLUE] Adding new dataset | I see your point!
I think this would be quite feasible to do and makes sense to me as well! In the paper results are reported per language, so it seems more natural to do it this way.
Good for me @yjernite ! What do the others think? @lhoestq
| XGLUE is a multilingual GLUE like dataset propesed in this [paper](https://arxiv.org/pdf/2004.01401.pdf).
I'm planning on adding the dataset to the library myself in a couple of weeks.
Also tagging @JetRunner @qiweizhen in case I need some guidance | 49 | [XGLUE] Adding new dataset
XGLUE is a multilingual GLUE like dataset propesed in this [paper](https://arxiv.org/pdf/2004.01401.pdf).
I'm planning on adding the dataset to the library myself in a couple of weeks.
Also tagging @JetRunner @qiweizhen in case I need some guidance
I see your point!
I think this would be quite feasible to do and makes sense to me as well! In the paper results are reported per language, so it seems more natural to do it this way.
Good for me @yjernite ! What do the others think? @lhoestq
| [
-0.0309355631,
-0.0157451928,
-0.1258900911,
-0.100520134,
-0.1579118669,
-0.1708758324,
0.5267760158,
0.0056055486,
0.0238732323,
0.0956134945,
-0.0717837885,
0.0040150099,
-0.0292198062,
0.2641971409,
0.4696395099,
-0.0064959293,
0.0179229192,
-0.0927427113,
0.1055237129,
-0.0311874449,
-0.2255669534,
0.0408765152,
0.1934886724,
0.1281032264,
-0.1308085024,
-0.2262522876,
-0.1815521717,
0.0034790905,
-0.1671008468,
-0.1984765232,
-0.1351338923,
0.1272178143,
-0.2173868716,
0.0498538427,
-0.0001046478,
-0.0820353031,
0.1216270328,
-0.0414646529,
0.3431466818,
0.0987390205,
-0.2769544423,
-0.5269671082,
-0.3578152657,
-0.2653223872,
-0.0164588913,
-0.1502899677,
-0.0198336355,
-0.5409761667,
-0.2230929136,
-0.083134912,
0.2834677398,
0.0115480721,
-0.0138970464,
-0.0006386787,
0.3840335011,
-0.2163022161,
-0.101703845,
0.3516215086,
0.6787542105,
0.1997826844,
-0.062256299,
0.5023943186,
0.1719844937,
-0.3639404774,
-0.1554908454,
0.1548493207,
-0.0157571249,
-0.1777896732,
0.0044579571,
0.4887837768,
0.1732272357,
-0.2198898792,
-0.5166096687,
-0.1510896236,
-0.0256640967,
0.145608604,
-0.1370283514,
0.3663788438,
0.3165971041,
0.0604456849,
0.3006011248,
-0.5922687054,
-0.0474885106,
0.0295656249,
-0.0114815757,
0.3938574195,
-0.0192895867,
0.2202582657,
-0.0696593449,
0.1565402299,
0.0442248397,
-0.0453591831,
-0.2047824562,
-0.1475444287,
-0.042723842,
-0.0027037635,
0.0609701872,
0.2228374779,
0.2347802222,
-0.216790095,
0.1660681069,
0.1159698069,
-0.1366975307,
0.1365008652,
0.0484068766,
-0.0670579299,
0.1184437722,
-0.1217698976,
0.1872106791,
-0.4778737426,
0.1259692609,
-0.0056064925,
0.1264991015,
-0.0169192627,
-0.2524392009,
0.0758057684,
-0.1182873845,
-0.1687626541,
-0.1406300962,
0.0159836896,
-0.167064786,
-0.2575620115,
-0.1345190257,
0.1522018015,
0.1174124479,
0.0314530618,
-0.0274041928,
0.3192718625,
-0.003003072,
-0.2601382136,
-0.0182074178,
0.4555559158,
-0.3091599345,
-0.0275300927,
-0.1148489416,
0.0074087456,
-0.2264330089,
0.1829278767,
0.1247550547,
-0.0296652466,
0.2931869924,
-0.0992412269,
0.1960194111,
-0.2719398737,
0.0791906193,
0.1489208043,
-0.0673974454,
-0.1974614561,
-0.3425368965,
0.1498019248,
-0.0699455217,
-0.0092684254,
-0.4532346725,
0.1946404725,
-0.031701602,
-0.3639159203,
0.2336076647,
0.6543380618,
0.0268251859,
-0.1571779847,
0.3393570781,
0.1094692647,
-0.1671152711,
-0.3618364334,
-0.1114997119,
0.1597099006,
-0.581481874,
-0.2036402524,
0.1548272967,
-0.1097599119,
0.2220730782,
0.0983591825,
-0.3220052719,
0.0248714723,
-0.1704876423,
0.4339233637,
0.2253320217,
-0.3000762165,
-0.1407327801,
0.0266585909,
-0.3058371842,
-0.0017784834,
0.3271746337,
0.2802769542,
0.0364675857,
-0.0436033979,
0.0005735364,
0.2896568775,
-0.1517329663,
0.0055790842,
-0.2849938869,
-0.2372043431,
0.382145226,
0.1792828143,
0.0955132544,
-0.2297505438,
0.4316016734,
-0.0239209644,
0.1088686734,
-0.4153650403,
0.1452232301,
0.0073804632,
0.3876380026,
-0.1258905232,
-0.254812181,
-0.116397135,
-0.1892573088,
0.1494082212,
-0.1739999056,
0.3878808618,
0.2392867804,
-0.3596979976,
0.1090214103,
-0.3047988415,
-0.0997585878,
-0.2800358236,
0.222536087,
0.2846927345,
0.0505985916,
0.2357278913,
-0.1798369288,
0.5148309469,
-0.0650086477,
-0.2156125009,
-0.2844981253,
0.2719512582,
0.0615566969,
0.0166400298,
-0.30196926,
0.3540425897,
-0.2673732638,
-0.1714290828,
0.2249209434,
0.2003873885,
-0.2806516886,
0.200784862,
0.3705323637,
0.2134396285,
0.3387432694,
-0.03681916,
0.4451642632,
-0.2990200818,
-0.0064349361,
-0.0507417843,
0.2629063427,
0.5275498629,
0.3378439844,
-0.0201777406,
0.0635632575,
-0.0839886218,
0.1785040796,
-0.0665991753,
-0.2512602508,
-0.1478615552,
0.2185913473,
0.1833829433,
0.3503825068,
-0.0147362631,
-0.5163173676,
0.3014978766,
0.6254870296,
-0.0292421207,
0.3895091414,
-0.0920933187,
0.0192963257,
0.0229828507,
0.0512352958,
0.3502867818,
0.2437912971,
0.3249135315,
0.2395409197,
-0.1220973283,
-0.0230477042,
-0.0875406638,
-0.0093190148,
-0.2209283412,
-0.0916001797,
0.1658772975,
0.0760681629,
-0.1549376249,
-0.5849465132,
0.0798437595,
0.0261384174,
-0.3220532238,
0.0485666692,
-0.0801824033,
0.0610071272,
-0.3757743239,
-0.4289929271,
-0.251262933,
-0.3670115471,
-0.1011629403,
0.2450068295,
-0.5446113944,
-0.1156205237,
0.0839172453,
0.135759294,
0.2886966467,
-0.4931297004,
-0.088857986,
0.0717835277,
0.0521641709,
-0.120833084,
0.215043366,
0.0649469718,
0.0613450631,
0.6506125331,
-0.0297608338,
0.213144958,
-0.3529449403,
-0.5960318446,
0.0957659781,
-0.2590043843,
0.0248190481,
0.1024246439,
-0.4434503019,
0.0465818942,
-0.139516592,
0.2609795332,
-0.2049954385,
-0.0151071735,
-0.230530113,
-0.0953527987,
0.0693264455,
-0.1832615584,
-0.4359948635,
-0.6468159556,
-0.3434994221,
0.2010113746,
-0.0807761624,
0.0785352588,
-0.224363938,
-0.1936886013,
0.2031640261,
-0.1049617231,
-0.1506705135,
-0.3018169999,
-0.2455630004,
0.0002138922,
-0.1281710118,
-0.2957012355,
-0.1156472862,
-0.0906984955,
0.1820829511,
0.1190915033,
-0.1470338404,
-0.0806307495,
-0.0669407323,
0.0293896049,
0.2819399536,
0.4289916754,
0.2110097408,
-0.0370902196,
-0.1518272012,
-0.1413823515,
-0.038781032,
0.0877368525,
0.1865487397,
-0.0784780532,
0.1115676165,
0.1964419335,
0.2549844086,
0.098198168,
-0.0094354749,
0.0713193417,
0.4470978379,
-0.0311266892,
0.3983820975,
-0.2327969968,
-0.3313073516,
0.2287496328,
-0.18431288,
0.1617481709,
0.1289572418,
0.0806173757,
-0.4328382611,
-0.1319629103,
0.1240722835,
-0.2155030519,
-0.1229893342,
0.2715330422,
0.1218843758,
0.1368042976,
0.0268950239,
-0.5252273083,
-0.0980469882,
0.0657740384,
0.19271487,
0.0876699984,
0.1008323431,
0.0204320401,
-0.4529146254,
0.1035577357,
-0.6617622972,
0.3235162497,
0.3332975805,
0.0845974386,
-0.1681656241,
-0.0269714557,
0.0699745268,
-0.0831563324,
0.165253818,
-0.7830035686,
-0.403886646,
0.2012944221,
-0.1501504183,
-0.0906752795,
0.0944577605,
-0.4324658513,
-0.012222711,
0.4249148667,
0.1434319168,
-0.4903402328,
0.0758597404,
0.1031940579,
0.2933273315,
-0.0366542935,
0.1504916698,
-0.1315777153,
-0.2456533611,
-0.2036442012,
0.0841039866,
0.0898025781,
0.0225347988,
0.434754312,
-0.2493484765,
-0.0478663146,
-0.0738414824,
0.1002015769,
-0.0376443118,
-0.2105491012,
0.2348744422,
-0.1014235988,
-0.136915192,
0.1677588224,
-0.289970696,
0.4333428741,
-0.2037700862,
0.1332356483,
0.1908706129,
-0.4832284153,
0.4973563254,
0.2202976346,
0.2189731002,
0.2997466922,
-0.1233194843,
-0.1388923824,
-0.142891109,
0.1032073647,
0.1299715638,
0.4290406108,
-0.4069592357,
-0.365621984,
0.2014389783,
0.2321172059,
-0.0997956395,
0.5052690506,
0.3039488792,
-0.4377231002,
-0.0691269711,
0.0089063868,
1.0040180683,
-0.2564150691,
0.195946455,
0.0578910969,
-0.1796464771,
0.3725500703,
-0.3016743362,
-0.16164805,
-0.2634379268,
-0.2750138342,
-0.1262904406,
-0.0533951446,
0.3447173834,
0.1411759704,
-0.2564910054,
0.0261156224,
0.199685216,
-0.0821727663,
-0.0594160259,
0.509442687,
-0.1630375087,
-0.2448428571,
-0.0712763071,
0.1428415477,
0.1211064234,
-0.1961435378,
-0.2274867445,
-0.0276076142,
-0.1567520797,
-0.0975118876,
-0.2363921553,
-0.0394492149,
-0.0526487306,
0.1502735317,
-0.2101891786,
-0.2341325432,
0.2122026682,
-0.2232470363,
0.191112861,
0.0326596498,
0.168278873,
-0.0387046486,
-0.0087647997,
0.1832387298,
0.4271746874,
-0.2175195366,
0.2066280395,
-0.0606683977,
-0.1605679095,
0.2272231877,
0.0343400426,
-0.525343895,
-0.5132184625,
0.2669926882,
-0.0754741728,
-0.1264095008,
-0.0614987873,
0.6240118146,
-0.0211323723,
-0.2172412723,
0.1606661826,
0.3921791315,
-0.0677849948,
0.1104491651,
-0.1601873338,
-0.2068915367,
-0.3168250918,
-0.1244885921,
0.2557013929,
0.0967899263,
-0.3670568466,
0.0462519526,
-0.1559274495,
-0.1189374551,
0.1399718374,
0.6067631841,
-0.3782590628,
-0.2883729339,
-0.0039126799,
-0.3069786429,
-0.2110751122,
0.0479433276,
0.1665585637,
0.2156905532,
-0.087901555,
-0.1916357279,
0.0870062485,
0.3477583826,
0.1552591622,
0.1503541917,
0.0880589336,
0.0033457726,
-0.0401520729,
0.1060585603,
-0.406850338,
-0.0001905188,
0.1143755391,
0.1226807088,
0.1580337286,
0.0464222394,
0.1341831088,
0.1589016318,
0.1971454024,
0.02104396,
-0.0517609268,
-0.1954435259,
0.0383405238,
0.0593884811,
0.0830747113,
0.1936602294,
0.3436831534,
-0.1540675759,
0.0578894876,
0.071437493,
0.325804323,
0.0293074995,
-0.2294363081,
0.0416928753,
-0.1714077294,
-0.0834431425,
0.1062694937,
0.2818498611,
0.0851333514,
0.0294382144,
0.0412163958,
0.1196717471,
0.1314350218,
-0.0701945499,
0.2505354881,
0.2301360518,
0.1264225096,
0.3121955395,
-0.155015111,
0.0587661266,
0.3654407263,
0.1273472607,
0.482750237,
0.0336058959,
-0.1689762026,
0.0823082849,
0.0709681809,
0.3136574626,
-0.2416970432,
-0.2967021167,
0.2061613947,
-0.2194768786,
0.3902000189,
0.5765987039,
0.569005847,
0.263263166,
0.4004571736,
-0.4132811725,
0.1162248775,
-0.0859437436,
0.0182971917,
0.0456551909,
-0.212473765,
0.0696040466,
0.28313604,
0.1888387203,
-0.0315792039,
0.2012165189,
0.1611322463,
0.2795372903,
0.4283174276,
0.2462068647,
0.0271935351,
0.1925106645,
0.338196218,
0.1764977723,
0.2595508993,
0.1481249332,
0.1729335785,
0.2318248153,
-0.1147493124,
-0.0794657916,
0.1311267167,
0.1838273406,
-0.0495329387,
0.0149041153,
0.2187449336,
-0.0903744698,
-0.242603004,
0.0026586726,
-0.1728192717,
-0.1071861088,
0.0830359608,
0.0575162284,
0.287307173,
-0.0143339336,
0.1595524848,
-0.1490686536,
0.1236341894,
-0.2348012626,
0.2202049941,
-0.1538408399,
0.1885551363,
-0.0892923325,
0.4514083564,
0.0201954097,
-0.029359404,
0.0048571452,
0.3698183596,
-0.2189736217,
0.1569336355,
-0.1249351054,
0.1338540316,
0.2747659087,
0.1748585701,
0.3241956532,
0.1354685277,
-0.2330462188,
0.0122820074,
0.1976198554,
-0.0397356339,
-0.3034675717,
0.0021588095,
-0.2225870341,
0.0124682412,
-0.2757616639,
0.0758447498,
-0.5223265886,
-0.0902156979,
0.2235927582,
-0.3513813615,
-0.0257020164,
-0.1148736104,
0.1095340252,
0.0350923166,
0.1946722269,
0.0465825871,
0.4593776464,
-0.1099380925,
-0.3727733195,
-0.4824967384,
0.2873209715,
0.0362297483,
-0.0898960233,
-0.3536241055,
0.1818207651,
0.4511237741,
0.2547107935,
0.0121642873,
0.2115441412,
-0.1300234795,
-0.158355087,
-0.2679616213,
0.1299415827,
0.2145314366,
0.2390739769,
0.0139875263,
-0.0470985733,
-0.0220195502,
0.094101198,
0.1614576876,
-0.2123521864,
-0.1392055005,
0.0058387369,
-0.0993595272,
0.4858989716,
0.0645319745,
0.4056454897,
-0.213744849,
-0.1554319412,
-0.1162481755,
-0.2418536246,
-0.1959829777,
0.485273242,
0.0653432906,
0.2561365962,
0.0638887659,
-0.2525370717,
-0.0699635744,
0.1303885579,
0.1136338711,
0.3501699567,
-0.0011431724,
0.3119928539,
0.1250368655,
-0.2902595699,
0.0264783762,
0.4481163919,
0.1819459796,
-0.0777806565,
-0.0206536129,
-0.2677199543,
-0.1471845508,
0.0398594067,
-0.0697125271,
0.0591698214,
0.2188386768,
0.1532177031,
-0.1139373332,
-0.4214037657,
-0.0756932646,
0.3150253296,
0.1775719821,
0.0155045912,
0.1421086937,
0.0229909271,
-0.3856190443,
-0.0903417021,
-0.0870597214,
-0.005237205,
-0.1229973361,
0.1273497641,
-0.3738956451
] |
https://github.com/huggingface/datasets/issues/749 | [XGLUE] Adding new dataset | Okey actually not that easy to add things like `test-de` to `datasets` => this would be the first dataset to have this.
See: https://github.com/huggingface/datasets/pull/802 | XGLUE is a multilingual GLUE like dataset propesed in this [paper](https://arxiv.org/pdf/2004.01401.pdf).
I'm planning on adding the dataset to the library myself in a couple of weeks.
Also tagging @JetRunner @qiweizhen in case I need some guidance | 24 | [XGLUE] Adding new dataset
XGLUE is a multilingual GLUE like dataset propesed in this [paper](https://arxiv.org/pdf/2004.01401.pdf).
I'm planning on adding the dataset to the library myself in a couple of weeks.
Also tagging @JetRunner @qiweizhen in case I need some guidance
Okey actually not that easy to add things like `test-de` to `datasets` => this would be the first dataset to have this.
See: https://github.com/huggingface/datasets/pull/802 | [
-0.1846340895,
-0.2418595552,
-0.1847651899,
-0.1303508282,
-0.051817134,
0.0069965124,
0.2505633831,
0.11135941,
0.1802295148,
0.1449398696,
-0.1167487651,
0.101267159,
0.0485732257,
0.39057675,
0.6209656596,
-0.178280592,
0.1267163903,
0.0511755124,
-0.0147037134,
-0.0934562236,
-0.1027879864,
0.2167289257,
0.1080805659,
-0.0527152941,
-0.1677284688,
-0.2435366064,
-0.2842395008,
0.1435451508,
-0.0887117907,
-0.3312162459,
-0.0131605193,
0.2882208526,
-0.1768379211,
0.1054637432,
-0.0001009602,
-0.1696678102,
0.1100731194,
-0.089515999,
-0.0204101093,
-0.0245751292,
-0.2445186824,
-0.4427776337,
-0.1438602209,
-0.0647224337,
-0.1366016269,
-0.0817897618,
0.1576749235,
-0.5114188194,
0.0948301554,
0.1543591172,
0.2733411193,
0.2456283867,
-0.0281452388,
-0.2357835472,
0.3271293342,
0.0656343699,
-0.1248784363,
0.2170628458,
0.7011630535,
0.1104023382,
0.0426899604,
0.2003496289,
0.1661867648,
-0.0251013413,
-0.0942071527,
0.0687785149,
-0.1166617349,
-0.129090175,
-0.0265674572,
0.6269079447,
0.1902132332,
-0.4049749076,
-0.4105318785,
-0.1999892443,
0.0986911133,
-0.0529233739,
0.0897816271,
0.0726022944,
0.1213969588,
0.0318281502,
0.1945578307,
-0.4966181815,
-0.0597506687,
0.1288610995,
0.0036634132,
0.2533254921,
-0.1540230662,
-0.0024563111,
0.17598629,
0.0424558148,
-0.1609520614,
0.028761711,
-0.2005238533,
0.1064115465,
-0.0968634635,
-0.04448089,
0.0238624699,
0.1938484907,
0.4159872234,
0.0361159258,
0.0447770618,
0.2233371735,
-0.2803291082,
0.1791000068,
-0.1463027894,
0.0760989487,
0.2867688537,
-0.4129460156,
0.3636011481,
-0.2374963611,
0.2125657797,
-0.006558802,
-0.0568498597,
0.014151074,
-0.3175009489,
-0.0082489382,
-0.0268739611,
-0.0502896607,
-0.1470523775,
0.0037647635,
0.0486517251,
-0.1039879471,
-0.0061709974,
0.2225235701,
0.0996545404,
-0.1233040392,
-0.1621114165,
0.3138154149,
-0.0012072921,
-0.3761255741,
-0.0911939591,
0.3496197462,
-0.2690583766,
0.1013751999,
-0.0004971623,
-0.1953831017,
0.1036227793,
0.1846349537,
0.0611574464,
0.0986917242,
0.2261886597,
0.0720733404,
0.1173689216,
-0.1074072272,
-0.0736708194,
0.0463800356,
0.0098898988,
-0.3629234135,
-0.3809714317,
-0.2105388939,
0.0378626622,
0.0682307929,
-0.5171691775,
0.2253206819,
-0.1216332316,
-0.3320922852,
0.0610729866,
0.7353154421,
-0.2060721219,
-0.1873331666,
0.3742210269,
0.1848042607,
0.0606342331,
-0.1820904166,
0.1231321171,
0.3011279106,
-0.7084855437,
-0.3878899217,
0.0161899664,
-0.3116716146,
0.0150244609,
-0.0072133774,
-0.0522166565,
-0.1488978565,
-0.2193847299,
0.3566608429,
0.3074156046,
-0.2631288469,
-0.1048191264,
0.1527159214,
-0.1363545209,
0.0324211791,
0.1493160576,
0.2461183369,
0.0076192431,
0.0819622576,
-0.2284458429,
0.4928712845,
-0.1376857758,
-0.0693279356,
-0.0171898082,
-0.1178916991,
0.1163969487,
0.2341869473,
-0.0177364312,
-0.1847669184,
0.3748794496,
-0.0480547473,
0.0143027343,
-0.2178457677,
0.082310684,
0.2338496298,
0.2585247457,
0.0419751853,
-0.1527704895,
-0.3222054243,
-0.3203321695,
0.1178400218,
-0.0965883508,
0.2303481251,
0.1352090836,
-0.2790808678,
-0.0196154267,
-0.0212945715,
-0.2056715339,
-0.2783052921,
0.1957813203,
0.3253354132,
0.1568977237,
0.3068618178,
-0.1636472642,
0.2912966311,
0.0270693302,
0.0393407755,
-0.3820661902,
0.1652244478,
0.1009416878,
-0.0487699285,
-0.2471421361,
0.2708753943,
-0.2948076129,
-0.3454169035,
0.0475606434,
0.4005275965,
-0.0562773347,
0.3210211992,
0.434052527,
0.3132546842,
0.3498570621,
-0.0516702943,
0.2166532725,
-0.1477488577,
0.059307579,
-0.0179116428,
0.0331999436,
0.3806254864,
0.2867746353,
-0.1806422323,
0.0645803958,
0.0515146032,
0.3325464725,
-0.0578963086,
-0.0247551017,
-0.2705189586,
0.3214470744,
-0.0682071969,
0.4620570242,
-0.0891149789,
-0.4519282877,
-0.0041487291,
0.5400695205,
-0.206995815,
0.5007695556,
-0.0385679007,
-0.2486330569,
-0.1093041003,
0.2232334316,
0.2447237074,
0.1789741665,
0.2782120705,
0.2959161997,
-0.0094851488,
-0.1759134233,
-0.2030112147,
0.1238843128,
-0.2936111689,
-0.206803754,
0.060017582,
0.0018414371,
-0.2386069894,
-0.6312518716,
-0.1454912275,
0.0645726174,
-0.0627527535,
0.017226778,
-0.1164714247,
-0.2509184778,
-0.3461492062,
-0.2239780426,
-0.2117839456,
-0.4119903445,
-0.2713960707,
0.3582320511,
-0.3860489726,
-0.1014061347,
0.2287200987,
0.1626431793,
0.3069648147,
-0.3231982589,
-0.2430469394,
-0.3107087016,
-0.2273841798,
-0.132076934,
0.2030257881,
0.0638732016,
0.0810735375,
0.5975707173,
-0.1493801326,
0.3434204459,
-0.3206498921,
-0.6411497593,
0.1712259352,
-0.2336114645,
0.3255999088,
0.2272586972,
-0.1397526264,
0.1338932961,
-0.0364697054,
0.193048358,
-0.3736987114,
-0.1994304061,
-0.1343021989,
-0.1690984964,
0.0130694136,
-0.1824685931,
-0.4047188461,
-0.4013569355,
-0.3103555441,
0.3401176035,
-0.1355203241,
-0.103355974,
0.0624949262,
-0.1144503653,
0.4457504451,
-0.1651323885,
0.0383792818,
-0.3390416503,
-0.3150511682,
0.0420127138,
-0.3130303323,
-0.2071702629,
-0.1308931708,
-0.083227545,
0.1937598884,
-0.1042838097,
-0.2162325084,
-0.2951601148,
-0.2080212981,
0.3043593764,
0.2436635196,
0.260361284,
0.2636737823,
-0.0056837685,
-0.1536727548,
-0.1816168875,
-0.1033955887,
0.1106699482,
0.1836387664,
-0.1427585334,
-0.0462079048,
0.2588559389,
0.0358112827,
0.3167627752,
-0.1313969791,
-0.0619769618,
0.4659317434,
-0.1548796743,
0.4611415565,
-0.2192609012,
-0.1756649613,
0.2025174946,
-0.0464684218,
0.3559701145,
0.1662428081,
0.059358526,
-0.1939753443,
-0.0081263632,
0.0799496174,
-0.0653869957,
-0.0245028809,
0.0498042703,
-0.2300819606,
-0.0210224241,
-0.1630599499,
-0.3697710037,
-0.1072554812,
0.0006033666,
0.2522925436,
0.0814652294,
-0.1705516875,
-0.0207875986,
-0.5745230913,
0.03112543,
-0.3425475359,
0.4614948034,
0.2403460741,
0.0498221107,
-0.3317691684,
-0.0788036659,
0.0167604163,
-0.0146970227,
0.340190202,
-0.7034700513,
-0.3920471668,
0.1245712936,
-0.173447594,
-0.1693348587,
0.1326393336,
-0.4778980017,
0.0108440854,
0.2867745161,
0.1882964373,
-0.2953968644,
-0.0790120661,
0.1735622436,
0.2449521869,
0.0073733479,
0.1449946761,
-0.0871879756,
-0.2766907215,
-0.3222582936,
0.1501882374,
-0.1172309145,
0.0369661823,
0.5093618631,
-0.1349498928,
-0.1290972531,
0.0091321617,
0.1853180826,
0.312479198,
-0.2047712356,
0.2354229689,
-0.1029847413,
0.0458191708,
0.0343782082,
-0.1046587974,
0.2496348917,
-0.2602442801,
-0.108736977,
0.0472427607,
-0.2257299274,
0.4998914301,
0.0635028034,
0.243442893,
0.3960294127,
-0.1816021055,
-0.1033770964,
-0.4619449973,
0.4287550747,
0.2030681372,
0.5127567649,
-0.3543936014,
-0.2824344635,
0.1989816725,
0.1494351476,
-0.1407778561,
0.5283777118,
0.2236379534,
-0.3452455997,
0.074975431,
-0.0176570229,
0.8527341485,
-0.2429270744,
0.1053049266,
0.034723267,
-0.1981408745,
0.3081975579,
-0.3240334392,
-0.0729881227,
-0.2227025181,
-0.3267221749,
-0.1645402163,
0.0058660656,
0.372155875,
0.0501758009,
-0.3208469152,
0.0604900606,
0.2180283964,
0.1049018949,
-0.0844885707,
0.3619773388,
-0.2068520784,
-0.2756370902,
-0.1969659925,
0.2479062378,
0.0991239995,
-0.0737508833,
-0.0998445675,
-0.0280159339,
0.0922902599,
-0.0161177069,
-0.3070306182,
-0.0946008116,
-0.2411387563,
0.0730490834,
0.0579345785,
-0.1569430679,
0.0994086191,
0.0679136813,
0.3513991535,
0.1998204589,
0.0058282968,
0.1908431649,
-0.1399709433,
0.1001736224,
0.1871104538,
-0.0880347639,
0.3409439027,
-0.0073427036,
-0.2477321625,
0.2806873918,
0.0567600541,
-0.1837934256,
-0.2904186845,
0.0760108232,
-0.2216186225,
-0.0401400849,
-0.0003993548,
0.2231271714,
0.1862411201,
-0.384999156,
0.1687088013,
0.2530965805,
-0.2087426484,
-0.0268260539,
-0.06506221,
-0.2486868054,
-0.3631857336,
-0.0296368226,
-0.1757623255,
0.0355608091,
-0.0354002863,
0.1423133612,
-0.0627778769,
-0.3454820514,
0.290741086,
0.6144679785,
-0.3988983631,
-0.0256388616,
-0.0218595117,
-0.5254502296,
-0.125225395,
0.1311188638,
0.2892466784,
0.0651878119,
-0.0017299429,
-0.1653303802,
-0.1337582767,
0.0964200795,
0.202655077,
0.4214720428,
0.129496634,
-0.1154476255,
0.0959628671,
0.3398857713,
-0.4340874255,
-0.0085883215,
-0.1618076861,
0.0188086741,
0.1833841205,
0.088282384,
0.3379586637,
0.0983434394,
0.2130497098,
-0.117585063,
-0.1208428815,
-0.2233334631,
-0.257925868,
0.0717112198,
-0.237013787,
0.1891638935,
0.3106761575,
0.0677388683,
0.1408632398,
-0.2422080934,
0.384164989,
-0.0748244449,
-0.1034874618,
0.1999958903,
0.0842382908,
-0.1229718775,
0.2088068128,
0.0343964286,
0.0824559182,
0.0929295048,
0.1213832572,
0.0487043075,
0.0149397589,
-0.1842787117,
0.311776489,
0.4180962741,
0.3014643192,
-0.1611477435,
-0.1428304464,
0.1835545152,
0.1057183444,
0.2218571156,
0.3776783943,
-0.063755393,
-0.1747800112,
0.2375531793,
0.2852987349,
0.2506442964,
-0.205885455,
-0.2343481481,
0.4367410541,
-0.074376367,
0.4397979379,
0.3935503662,
0.403657794,
0.3437793851,
0.4054283798,
-0.3494434357,
0.044757016,
-0.0479859263,
0.2133397758,
0.1163634732,
-0.1503826827,
-0.0357877687,
0.2522675693,
0.208474502,
0.0992720276,
0.2140416354,
-0.0287270024,
0.3963956535,
0.1795137227,
0.2958673835,
0.244305253,
-0.0552625507,
0.1920821518,
0.0173488781,
0.0954188854,
0.2742877007,
0.1217974424,
0.5185917616,
-0.2648633122,
-0.0779418871,
-0.0724583566,
0.253895551,
-0.0582275912,
-0.2553239763,
0.2280028611,
-0.083093904,
-0.2353250831,
-0.0134177282,
0.1339756995,
-0.2005643249,
0.195674628,
-0.0318537205,
0.333076179,
-0.2071230263,
0.2693575621,
-0.0690682605,
-0.0569589399,
-0.1648179293,
0.3427709937,
-0.0086141452,
-0.0757127404,
-0.0116375238,
0.3626713157,
0.1208776385,
-0.2137693316,
-0.0657000691,
0.4346230626,
-0.3557918072,
0.0674973652,
-0.0108752958,
0.2708675563,
0.0738671422,
0.3266425133,
0.3112014532,
0.1924104542,
-0.171051845,
-0.0774529576,
0.0605593659,
-0.2026013732,
-0.2428014576,
0.1121416241,
-0.1197672561,
0.0963718519,
-0.4614645839,
0.1329242587,
-0.4521277547,
-0.0432649665,
0.3228744268,
-0.2712716162,
-0.0590007827,
-0.0097449124,
0.1391969323,
0.0850890428,
0.361780405,
0.2722503841,
0.3546930254,
0.1040631831,
-0.3671026826,
-0.5847007632,
0.085419327,
0.1345133334,
-0.2198190242,
-0.222293511,
0.0091503486,
0.4471950233,
0.008729646,
0.066651836,
0.1300782114,
0.119074285,
-0.2491855323,
-0.3235988319,
0.1706231236,
0.0405222625,
0.1078920513,
0.1124061123,
0.0585381538,
-0.1096153185,
0.094153665,
0.0735966638,
-0.2597959042,
0.0547441542,
-0.1511447132,
-0.2828806043,
0.4270502925,
-0.0038171392,
0.4883859158,
-0.3071038127,
0.0392457694,
-0.1248998344,
-0.298440069,
-0.2123714834,
0.3169867396,
-0.0084682349,
0.164086774,
-0.0682516918,
-0.3227051497,
-0.0810524896,
0.3033623993,
0.1809957772,
0.2069408447,
-0.1580898315,
0.1864402443,
-0.0598235987,
-0.2287282348,
0.1990085542,
0.3820850253,
0.0345330276,
0.0233499482,
0.2187623233,
-0.229760766,
0.0560142398,
0.0270905793,
-0.0925478116,
0.031327825,
0.0093062073,
0.2244934142,
-0.0694353208,
-0.4996803105,
0.074170351,
0.3074281812,
0.1963987648,
-0.1526352763,
0.297727257,
0.0619610026,
-0.1063740328,
-0.0995226055,
0.0301192682,
0.2739198804,
-0.0940961018,
0.1999078393,
-0.3941316903
] |
https://github.com/huggingface/datasets/issues/749 | [XGLUE] Adding new dataset | IMO we should have one config per language. That's what we're doing for xnli, xtreme etc.
Having split names that depend on the language seems wrong. We should try to avoid split names that are not train/val/test.
Sorry for late response on this one | XGLUE is a multilingual GLUE like dataset propesed in this [paper](https://arxiv.org/pdf/2004.01401.pdf).
I'm planning on adding the dataset to the library myself in a couple of weeks.
Also tagging @JetRunner @qiweizhen in case I need some guidance | 44 | [XGLUE] Adding new dataset
XGLUE is a multilingual GLUE like dataset propesed in this [paper](https://arxiv.org/pdf/2004.01401.pdf).
I'm planning on adding the dataset to the library myself in a couple of weeks.
Also tagging @JetRunner @qiweizhen in case I need some guidance
IMO we should have one config per language. That's what we're doing for xnli, xtreme etc.
Having split names that depend on the language seems wrong. We should try to avoid split names that are not train/val/test.
Sorry for late response on this one | [
-0.1462260783,
-0.1761126667,
-0.0905722678,
0.0123517532,
-0.0241257958,
-0.1703826487,
0.4644284248,
0.2293006182,
0.0064149052,
0.1897846907,
-0.0784216225,
-0.0123209003,
0.0637150928,
0.3173592687,
0.3393554389,
-0.147365272,
0.0648741648,
-0.1207683384,
0.185790807,
-0.1410234571,
-0.1970850378,
0.1646758914,
0.1416784525,
0.2563765049,
-0.3061512113,
-0.2510169148,
-0.1212387979,
0.1231266707,
-0.0533280298,
-0.2636437416,
-0.13277255,
0.0994950458,
-0.1483212709,
0.1550782025,
-0.0000984329,
-0.176302433,
0.157073155,
-0.1662795097,
0.3259853423,
0.0369414203,
-0.3540748954,
-0.4925276041,
-0.216653198,
-0.2867807746,
-0.0726137906,
0.0749668553,
0.0203133542,
-0.4325008988,
0.0292527527,
0.0513050109,
0.2826533616,
-0.0485950038,
-0.1415355057,
-0.0816420391,
0.2933575809,
-0.2213197798,
-0.1784569919,
0.0020784382,
0.5535994768,
0.2362465411,
-0.1021503806,
0.3790181875,
0.09966176,
-0.1741276681,
-0.0846166313,
0.0462373644,
-0.05096687,
-0.3432505429,
-0.0554945841,
0.6024340391,
0.0136223529,
-0.2653128207,
-0.1561050117,
-0.2016576231,
0.0942968056,
-0.2133092284,
0.3548095524,
0.1433289498,
0.1954393983,
-0.0333733819,
0.313855052,
-0.4838634431,
0.0441256613,
0.0608956218,
0.0301382691,
0.6080754995,
-0.0815608352,
0.2101164907,
0.0818185061,
-0.0044065802,
0.0556074455,
0.0181051195,
-0.1166882962,
-0.1805523038,
-0.2781935036,
0.0348438174,
-0.1338137984,
0.0385021009,
0.1513521373,
-0.0915093347,
-0.1049460024,
0.1773043871,
0.1033562124,
0.1640122384,
-0.0740814358,
0.0739102364,
0.3556382656,
-0.141862601,
0.3384211659,
-0.3893522918,
0.0308438316,
0.0682728291,
0.0302111395,
-0.1210895479,
-0.3905892968,
-0.0484876782,
-0.2725442946,
-0.0133916289,
-0.0945800096,
0.0500220843,
-0.0857802629,
-0.2024819553,
0.1805743426,
0.1018225104,
0.0545383096,
-0.0015526526,
-0.2859129906,
0.2533298135,
-0.0977324322,
-0.3352462947,
-0.1552730054,
0.36969769,
-0.4024463296,
0.0887353793,
-0.0924174339,
0.0822388679,
0.0640987083,
0.1878529191,
-0.0102433302,
-0.04252268,
0.2050229907,
-0.0539440066,
-0.0014976934,
-0.0343510136,
0.0269424841,
0.0131017044,
-0.0330026932,
-0.1650326699,
-0.4244991243,
-0.2159923315,
-0.2676056027,
-0.1515640467,
-0.193826884,
0.2565616965,
-0.0661882982,
-0.1259266734,
0.3019111753,
0.6030249596,
0.0658158362,
-0.005551368,
0.2308280021,
0.0461863615,
0.0359372646,
-0.3438420594,
-0.0265951604,
0.1573951989,
-0.5607885718,
-0.2898285389,
0.0050518773,
-0.2177068293,
0.2166292369,
0.1000579,
-0.1918094307,
-0.2419544011,
-0.1731522977,
0.497255832,
0.4736793041,
-0.2406948656,
0.0017587692,
0.1395377666,
-0.226359576,
-0.2233426571,
0.3514539003,
0.1564724296,
0.1404681653,
-0.006743338,
-0.0991057307,
0.3637704849,
-0.2389215529,
-0.168241784,
-0.1799532175,
-0.3024238348,
0.0140929203,
0.2203176916,
-0.0066398447,
-0.4272899628,
0.1903280914,
-0.0931606218,
0.0925678015,
-0.146126613,
0.1340757012,
0.1512355506,
0.2007114589,
0.0783999413,
-0.1671222448,
0.0491225123,
-0.2886479199,
0.0849826261,
-0.1902271509,
0.2473540902,
0.3146637678,
-0.1260804534,
0.124284327,
-0.4120951593,
-0.307710439,
-0.225172624,
0.246768117,
0.3807687163,
-0.0058760792,
0.0702527091,
-0.3039516211,
0.4216484725,
-0.0748281553,
0.0373809487,
-0.3291949332,
-0.0068225563,
-0.0320978761,
-0.1438954771,
-0.106408067,
0.2375400066,
-0.1356837451,
-0.3920332193,
0.0525944531,
0.4568065107,
0.0867199004,
0.0595485307,
0.2669984698,
0.1823761165,
0.3151246607,
0.0306575298,
0.41223526,
-0.3238601089,
-0.1963976175,
-0.2101337612,
0.216552645,
0.4376224577,
0.1735750437,
-0.0046035312,
-0.0977388695,
0.0390914306,
0.272116065,
-0.184520632,
-0.1671705544,
-0.2693995833,
0.135359019,
0.0334486105,
0.4870147109,
0.1121012941,
-0.5374772549,
0.0372516662,
0.7857862115,
-0.059236981,
0.2184428722,
-0.0784685612,
0.1287999004,
0.0427696332,
0.1004863456,
0.4957653284,
0.1081285849,
0.2882476747,
0.0216907449,
-0.1542694718,
-0.2354765981,
-0.2799209356,
0.0978767574,
-0.1289459765,
0.0073646158,
-0.005740229,
-0.2545625567,
-0.2525959313,
-0.3949923515,
-0.1950167865,
0.1849539876,
-0.1311200261,
0.112004742,
-0.1308684647,
-0.1418881714,
-0.3241764307,
-0.3846462965,
-0.2120255828,
-0.617667973,
-0.2648651898,
0.2558196783,
-0.6583396792,
-0.1273488402,
0.3772859871,
0.0395400003,
0.0717263147,
-0.3906762004,
-0.3015215695,
-0.0437557399,
-0.072079733,
-0.4109972715,
0.1710174978,
0.1405229568,
0.0250372514,
0.4922409058,
-0.0793912485,
0.1855519712,
-0.0745001957,
-0.5724859238,
0.2775665224,
-0.4036215842,
0.0977483094,
0.1708715856,
-0.3082919121,
0.0878909528,
-0.3493947089,
0.3390375078,
-0.1168491989,
0.1387782097,
-0.0910423398,
0.0008447543,
-0.1255895197,
-0.001869373,
-0.6168109179,
-0.5302243829,
-0.3577507138,
0.0649175048,
-0.2152605057,
0.0530568287,
0.0140567347,
-0.2009964436,
0.2050771713,
-0.2021888196,
-0.0735038295,
-0.1877884567,
-0.3085242808,
0.0390861444,
-0.1799978167,
-0.1100342497,
0.0209614635,
0.035164997,
0.4360464513,
-0.0134432949,
-0.1864356995,
0.0974278674,
-0.1578868032,
0.2900024652,
0.4185097218,
0.2342796624,
0.1832296252,
0.1810412705,
-0.1444857121,
-0.0840474963,
-0.1266100705,
0.2406162918,
0.1379866898,
0.2461363673,
0.128582865,
0.1883560866,
-0.0293927193,
0.2568421364,
-0.0068727396,
0.1052489877,
0.4177753627,
0.0217583571,
0.1973076463,
-0.2238930315,
-0.2783102095,
0.4182806015,
-0.0201442167,
0.1917502731,
0.249304533,
0.0366869159,
-0.3029432893,
-0.2026095986,
0.1793304682,
0.0589085668,
-0.2773950994,
0.1101570204,
0.0364847854,
0.0889331698,
-0.1228725687,
-0.2811177969,
-0.0412502326,
0.0089711621,
0.2130238712,
0.1249706894,
-0.3043185771,
0.0758678466,
-0.5326240063,
0.0725216717,
-0.2875140905,
0.2076585293,
0.183106482,
0.1627008617,
-0.1951342672,
-0.1184330881,
-0.0212423317,
0.1403122395,
0.2180918455,
-0.6130011678,
-0.4700457454,
0.2924252748,
0.0222416893,
0.0317457542,
0.0676589385,
-0.3907155395,
-0.1742922366,
0.6021926403,
0.1423160732,
-0.329918772,
-0.24012959,
0.2197657675,
0.2776792943,
-0.0095864832,
0.0851048678,
-0.1398836374,
-0.1039840654,
-0.1854955107,
0.0212370176,
-0.1654780507,
-0.0353622586,
0.4166638553,
-0.1096865237,
0.0290725175,
-0.3474701643,
0.2417776585,
0.2491859049,
-0.1018166021,
-0.0015166216,
-0.099885717,
-0.0325592831,
0.1437212825,
-0.164727971,
0.2211935371,
-0.3730179667,
-0.0413096026,
0.160675332,
-0.4128873646,
0.4341971874,
0.2145681977,
0.1774014831,
0.2229924202,
-0.3140595853,
0.0970987454,
-0.0133321378,
0.271594435,
0.1935470104,
0.3252152205,
-0.4524235427,
-0.4648650587,
0.2338778079,
0.2749260366,
-0.1879256964,
0.5551059842,
0.2615847588,
-0.3070251346,
0.01850757,
0.0871615633,
1.0130929947,
-0.0665272698,
-0.0320995338,
0.1240569949,
-0.1468685269,
0.2870383859,
-0.3465816379,
0.0044147931,
-0.2121764719,
-0.1168293282,
-0.0076456405,
0.0637090132,
0.4263188243,
0.1828868985,
-0.2988040447,
0.2446150184,
0.1877580136,
-0.1389591843,
-0.3435706198,
0.4902934432,
-0.2128346711,
-0.428830117,
-0.0554881431,
0.1969966888,
0.0424996316,
-0.1195895821,
0.0172151104,
-0.0604139119,
-0.0423929319,
0.0951644927,
-0.112655282,
-0.0568947494,
-0.1916466504,
0.1518829465,
-0.1991344839,
-0.2050964534,
0.108130604,
-0.1030362695,
0.2312945873,
0.0377983488,
0.1768636256,
0.2509279251,
0.1662869155,
-0.0290799141,
0.1491760463,
-0.1886832118,
0.3108360469,
-0.0743235797,
-0.2626556754,
0.1429659724,
0.0153477937,
-0.0575438514,
-0.473885268,
0.0995389223,
0.015434362,
-0.1869215965,
0.0646903515,
0.3470923901,
0.1042924076,
-0.2016886771,
0.221280843,
0.1342333108,
-0.1066628098,
0.180157274,
-0.2058049738,
-0.2673104405,
-0.4408112466,
-0.2474432886,
0.1526272893,
0.0741648227,
-0.1696611345,
0.1126615182,
-0.048233144,
-0.247979179,
0.3831702471,
0.4610035717,
-0.2728409171,
-0.2808829844,
-0.0260931123,
-0.6038408279,
-0.0128136463,
0.0397432782,
0.3965602517,
0.2652051449,
0.1307493895,
-0.0010355487,
-0.132071346,
0.134731859,
0.1667660624,
0.2131153941,
-0.0842904299,
0.0817788392,
0.1480275989,
0.1975750029,
-0.4271974564,
-0.120359458,
-0.1311841756,
0.0853155404,
0.0615264401,
-0.0055332342,
0.2368800789,
0.2738027573,
0.2482171208,
-0.2009925693,
-0.1902613342,
-0.1815943867,
-0.2109782696,
0.0351683944,
-0.0612027273,
0.0691284612,
0.1474357098,
-0.126522094,
0.0697393268,
-0.0203312784,
0.310106039,
-0.0406603515,
-0.0212695785,
0.221235171,
-0.0368288979,
-0.2369240522,
0.2370632142,
0.1390258074,
0.0758239925,
0.2203007936,
0.2095202208,
0.1347356737,
-0.0029807575,
-0.2144670486,
0.1195200235,
0.3670916259,
0.038465336,
0.0667796507,
-0.3033997118,
0.057651002,
0.2281786799,
0.2372744679,
0.1905232519,
0.3459753096,
-0.0879655331,
-0.0574204065,
0.3325531185,
0.3427844644,
-0.152900666,
-0.2157158256,
0.2266253829,
0.106510371,
0.4202781916,
0.5838718414,
0.4350993335,
0.2854171693,
0.2471593767,
-0.2668683827,
0.1988413185,
-0.1636256874,
0.1349111199,
0.2016615868,
-0.2208580077,
0.0675409138,
0.5029201508,
0.1542476267,
0.0893121287,
0.3030200899,
0.0422183275,
0.3530849516,
0.418813616,
0.4055214226,
0.1972194314,
0.0351755396,
0.0403027721,
0.1591699719,
-0.1290497333,
0.109259367,
0.0181389749,
0.3010974526,
-0.208265841,
-0.2138484567,
0.0754544362,
0.2279539704,
-0.1240231991,
-0.0842730328,
0.0544372797,
-0.102756232,
-0.3516125083,
0.0516850501,
0.0991108418,
-0.0377657413,
0.2453122586,
0.2175560892,
0.1678799689,
-0.1135485843,
0.220488295,
-0.0661540478,
0.0834216177,
-0.2337682992,
0.3854661584,
0.002305042,
-0.0819233507,
-0.0665483773,
0.1008753181,
0.0661212206,
-0.0585439168,
0.0252404287,
0.1825352907,
0.032313861,
0.0240090266,
-0.0823515952,
0.1625451744,
0.1854986846,
0.402844429,
0.3717903495,
0.184821099,
-0.2366013974,
-0.19637312,
0.1103987992,
-0.1333550513,
-0.0876799971,
0.1387680173,
-0.0674081743,
-0.0267453864,
-0.372415036,
0.0236276016,
-0.6408743262,
0.090723291,
0.3472354114,
-0.2498903275,
-0.0363753736,
-0.1081306636,
0.1391493231,
0.0205911472,
0.2904624939,
-0.2054855078,
0.1605263948,
-0.1513399631,
-0.3798656762,
-0.3629662991,
0.068690829,
-0.0741145834,
-0.2374185622,
-0.3008518219,
0.1499516517,
0.2086905986,
-0.043090716,
-0.0213476121,
0.1685631573,
0.1100888252,
-0.075536631,
-0.3630596995,
0.1835388243,
0.0967719629,
0.3167695403,
0.1844223291,
-0.0548718721,
0.0051199105,
0.1395044774,
0.0582031682,
-0.2079133391,
-0.1573345363,
0.3688468337,
-0.0546831787,
0.31001243,
0.1430500746,
0.3413969874,
-0.1951652765,
-0.0823991075,
-0.2316165864,
-0.2218695134,
-0.3323300779,
0.2775378525,
0.1269991249,
0.1420237273,
-0.0280279238,
-0.0776404962,
-0.277282238,
0.4186032414,
0.0982593149,
0.3743472695,
-0.0265423954,
0.3106999993,
0.2739527822,
-0.0954768136,
0.1657668948,
0.5336945057,
0.1344618499,
0.0001991242,
0.0348072499,
-0.2444980145,
0.0066156387,
0.3034050763,
-0.0619243681,
0.0352333263,
0.1215716302,
0.3006125391,
0.1463199109,
-0.4625611305,
-0.0849028975,
0.2468045652,
0.052288413,
-0.3042315245,
0.1125003174,
0.2204036415,
-0.3317741454,
0.0073491782,
-0.1698814034,
0.2085608095,
-0.3166733086,
0.2862680256,
-0.0598955341
] |
https://github.com/huggingface/datasets/issues/749 | [XGLUE] Adding new dataset | @lhoestq agreed on having one config per language, but we also need to be able to have different split names and people are going to want to use hyphens, so we should at the very least warn them why it's failing :) E.g. for ANLI with different stages of data (currently using underscores) or https://www.tau-nlp.org/commonsenseqa with their train-sanity or dev-sanity splits | XGLUE is a multilingual GLUE like dataset propesed in this [paper](https://arxiv.org/pdf/2004.01401.pdf).
I'm planning on adding the dataset to the library myself in a couple of weeks.
Also tagging @JetRunner @qiweizhen in case I need some guidance | 61 | [XGLUE] Adding new dataset
XGLUE is a multilingual GLUE like dataset propesed in this [paper](https://arxiv.org/pdf/2004.01401.pdf).
I'm planning on adding the dataset to the library myself in a couple of weeks.
Also tagging @JetRunner @qiweizhen in case I need some guidance
@lhoestq agreed on having one config per language, but we also need to be able to have different split names and people are going to want to use hyphens, so we should at the very least warn them why it's failing :) E.g. for ANLI with different stages of data (currently using underscores) or https://www.tau-nlp.org/commonsenseqa with their train-sanity or dev-sanity splits | [
-0.2000912428,
-0.1522807479,
-0.1069087163,
-0.1123530567,
-0.0792811289,
-0.200001657,
0.5592647791,
0.1603518873,
0.1297947764,
0.197267428,
-0.0472675338,
0.0549893454,
0.0048437677,
0.30742383,
0.300499469,
-0.2359764278,
0.0617929399,
-0.0328124166,
0.1070402116,
-0.0768820196,
-0.1448190361,
0.1187251285,
0.1501041949,
0.0642675683,
-0.2914259136,
-0.3140032589,
-0.2087101936,
0.116467461,
-0.0417365283,
-0.2866326869,
-0.1831396818,
0.2181477845,
-0.1481360644,
0.0460788831,
-0.0000994877,
-0.167461589,
0.1176849306,
-0.175472185,
0.2268093377,
-0.0554831326,
-0.4276821911,
-0.5850600004,
-0.1877808422,
-0.1727512181,
-0.0764965639,
0.0747531652,
0.1615256071,
-0.3223181963,
0.1621860564,
-0.0168514103,
0.2486221045,
-0.0356812477,
0.0158525631,
-0.0933980197,
0.2921181023,
-0.125825271,
-0.1625910401,
0.1111360714,
0.5344120264,
0.0421689898,
-0.1167419255,
0.2462140173,
0.0771800131,
-0.1617515385,
-0.2693606615,
-0.0677690059,
-0.0696931481,
-0.2593420148,
-0.0977882892,
0.6707049012,
0.0018181428,
-0.2552487254,
-0.2341101021,
-0.2518295944,
0.142924428,
-0.1198726445,
0.2260707021,
0.2438059747,
0.0440099984,
0.0016492161,
0.3162365556,
-0.4904373586,
-0.0035798624,
0.2545974851,
0.1498421729,
0.4481434226,
0.0083514079,
0.0914835706,
0.1814767718,
-0.0291999616,
-0.1529130489,
0.129547745,
-0.0814180896,
-0.134000808,
-0.319414854,
-0.0192974508,
-0.0664458647,
-0.0460373312,
0.1971564889,
-0.1193256974,
-0.081512332,
0.2506911159,
-0.121513769,
0.28268224,
-0.0358218886,
0.0253944881,
0.2486377358,
-0.1062542722,
0.353379339,
-0.2628124654,
0.0464550406,
0.0820842162,
-0.0214690641,
-0.1186305657,
-0.4098241329,
0.0041324031,
-0.2621777952,
0.0790794715,
-0.1390136182,
-0.0721229762,
-0.1061049476,
-0.0694442391,
0.0607370399,
0.0999150872,
0.1349299252,
-0.0380973145,
-0.2698525488,
0.3025584519,
-0.108538501,
-0.317969799,
-0.0852046311,
0.3406923711,
-0.3904687464,
0.2825714648,
-0.0011107847,
0.1071576029,
0.0306002572,
0.2661172152,
-0.261683166,
-0.0092198625,
0.2431920767,
-0.0255250484,
0.1116452366,
-0.0860615671,
0.0445120409,
-0.0805907622,
-0.1204369888,
-0.3179932833,
-0.4474070668,
-0.1331008673,
-0.1393800229,
-0.047432106,
-0.536962986,
0.2319706976,
-0.1346975118,
-0.2424329519,
0.3213678896,
0.702580452,
0.1054735482,
-0.1079341322,
0.3025409579,
0.0773232132,
0.0856089294,
-0.2831873894,
-0.0854459703,
0.2961884141,
-0.5839096904,
-0.3671291471,
-0.042309016,
-0.1428715885,
0.1852105409,
0.2240880132,
-0.0939924568,
-0.2408590466,
-0.0905017704,
0.5788305402,
0.2949935794,
-0.0800254047,
-0.043766655,
0.048372779,
-0.2129261941,
-0.2295114547,
0.4102590084,
0.2193472981,
0.1522822976,
-0.1028388888,
-0.1026311368,
0.5329891443,
-0.1997342855,
-0.1920308471,
-0.2687574923,
-0.3714088798,
-0.0669604838,
0.2908563018,
-0.1108100265,
-0.4445999861,
0.2499767989,
-0.1283313781,
0.0342379473,
-0.2165669501,
0.1971202791,
0.1866380274,
0.1733619571,
0.1198034659,
-0.1649482548,
-0.1606716812,
-0.2717195451,
-0.0421764776,
-0.145833686,
0.3109085262,
0.1103108972,
-0.2175169736,
0.0918079466,
-0.3954268694,
-0.2288378924,
-0.0556196757,
0.2442548871,
0.3357700109,
-0.0485517457,
0.2046449929,
-0.2657516301,
0.3758609295,
0.0656331182,
0.0459027067,
-0.2742503881,
0.108770676,
-0.0235381946,
-0.1934511364,
-0.0413712822,
0.4167002738,
-0.1104966104,
-0.2737939358,
0.1936376393,
0.4694648981,
-0.0133420676,
0.2094617039,
0.2545446754,
0.1569457054,
0.3164723217,
0.0097723082,
0.4155243635,
-0.3414925635,
-0.1877509356,
-0.1871415079,
0.1694923341,
0.3568232656,
0.2377650291,
-0.0222445466,
0.0605882108,
0.0200409144,
0.2959123254,
-0.249752745,
-0.0891411006,
-0.3473984003,
0.2146886289,
-0.1290703565,
0.3781505823,
0.0310071129,
-0.5096860528,
0.1320848465,
0.799998641,
-0.0392745323,
0.5096136332,
-0.0744290203,
-0.0220922455,
-0.026702296,
0.0924341604,
0.3850874305,
0.0828877091,
0.3525217474,
0.0537569262,
-0.2341551036,
-0.2267882973,
-0.3653762937,
0.1503825039,
-0.2305918038,
-0.0933861881,
0.1149937734,
-0.1172458082,
-0.2532337606,
-0.4707603455,
-0.1996028125,
0.0749975964,
-0.1893983781,
0.1460271627,
-0.1899923682,
-0.1876576394,
-0.4007490575,
-0.3989219069,
-0.3629320264,
-0.5685098171,
-0.260099411,
0.35449332,
-0.5420057774,
-0.1989032626,
0.4133729935,
0.0592001081,
0.1492995918,
-0.4386816621,
-0.2791973352,
-0.0675601959,
-0.2322136462,
-0.3018973768,
0.1828038841,
0.1581469476,
-0.0470945686,
0.4090436399,
0.0335786417,
0.0718931407,
-0.0733385682,
-0.5325055718,
0.2297293395,
-0.2416842729,
0.0931289494,
0.1921672821,
-0.2887467146,
0.1889666617,
-0.4706894159,
0.2868527174,
-0.0119840465,
0.0934709385,
-0.0222061798,
-0.0688300282,
-0.0162259676,
-0.1070674285,
-0.4447103739,
-0.4915526211,
-0.4010545909,
0.1596662253,
-0.320764631,
-0.011916196,
0.0915317759,
-0.0613048151,
0.178711161,
-0.1809265018,
-0.0398537442,
-0.2107492238,
-0.177682966,
0.0296905749,
-0.2467579991,
-0.0975079983,
-0.0743639246,
-0.0030585676,
0.2528923154,
0.0278941244,
-0.1953129768,
0.0266533196,
-0.2030614316,
0.1726285964,
0.3333503902,
0.2352802306,
0.2445559502,
0.1802092195,
-0.2039492428,
-0.0323087573,
-0.1615828574,
0.1644462794,
0.080800049,
0.2233292758,
0.0131586157,
0.1674287915,
0.2213265896,
0.2721560001,
-0.0015130565,
0.0654093474,
0.4926971793,
0.0336889699,
0.2852626443,
-0.1993742883,
-0.1522397101,
0.3591723442,
-0.0646159425,
0.1802010536,
0.1841149032,
0.0539194383,
-0.4981171191,
-0.1273750067,
0.0945335925,
-0.15064542,
-0.3248206079,
0.1541626006,
-0.0401579998,
0.1239839643,
-0.0951656327,
-0.3498980999,
0.0426198319,
-0.0896914601,
0.2541392148,
0.1558099985,
-0.2382899374,
-0.0408664569,
-0.503411293,
-0.0654516965,
-0.2861919999,
0.3564996421,
0.208193779,
0.265704304,
-0.3406349421,
-0.1893959343,
-0.0595184155,
0.1341716051,
0.1475782543,
-0.705264926,
-0.3108758628,
0.2482823282,
0.2551715672,
-0.0351362601,
0.1081286147,
-0.3380488157,
-0.0579076186,
0.4620372653,
0.1651177108,
-0.365999788,
-0.1376526058,
0.2716057897,
0.1894516647,
0.0914008096,
0.0595886856,
-0.0273279026,
-0.1717240512,
-0.1447700709,
0.0563174784,
-0.2224401236,
-0.0263785794,
0.4388486147,
-0.1601875871,
-0.0143556846,
-0.3033635616,
0.2234650254,
0.1760693192,
-0.1793837696,
0.0400886908,
-0.0872563571,
-0.0311552249,
-0.0244035833,
-0.0464478917,
0.2221961021,
-0.3324348032,
-0.0447666943,
0.1119778901,
-0.341373533,
0.491805017,
0.1527476311,
0.3442552388,
0.2925674617,
-0.1617771685,
0.0586717129,
-0.0644988045,
0.2131451219,
0.138206929,
0.3538112938,
-0.5049097538,
-0.3253121078,
0.2326057553,
0.3477410674,
-0.1057607457,
0.4562176168,
0.2530543208,
-0.3633550107,
0.2816961706,
0.0046308301,
0.9073784351,
-0.1592374295,
0.0663195252,
-0.0131729925,
-0.2073616087,
0.4077243805,
-0.3071690798,
0.0126648322,
-0.2316268831,
-0.0525068939,
-0.0314996466,
0.1162348241,
0.372448355,
0.2617297471,
-0.4031895399,
0.1282770187,
0.1052319258,
-0.0297359042,
-0.2424730062,
0.4963007867,
-0.2735047638,
-0.4457586408,
-0.1557410657,
0.1923014373,
0.0387300476,
-0.2478263378,
0.0037272125,
-0.131608665,
0.0787881985,
0.1053310931,
-0.3344311714,
-0.0245852582,
-0.1835360229,
0.083816722,
-0.183396697,
-0.1816045344,
0.2296939641,
-0.1530428231,
0.149991706,
-0.0009480008,
0.1856345981,
0.1846390814,
0.0655902773,
-0.0768922195,
0.1543821692,
-0.1598837823,
0.42457214,
-0.0769166499,
-0.194467023,
0.1506232321,
0.1532031298,
-0.0731140003,
-0.5054072738,
0.1016764641,
0.0147130713,
-0.141327396,
0.1182186529,
0.292265445,
0.0873075873,
-0.204597041,
0.2007820308,
0.1990915686,
-0.0027951002,
0.1231184229,
-0.1729196012,
-0.2294320762,
-0.3548348248,
-0.2141829431,
0.0717000365,
0.061922431,
-0.1518594176,
0.099938184,
-0.0621285811,
-0.3110249043,
0.2243012637,
0.3248920441,
-0.3135172129,
-0.2035947442,
-0.0149542522,
-0.5611592531,
-0.031638518,
0.0489400327,
0.2902246118,
0.2276907563,
0.0714249909,
-0.2066072822,
0.0279340968,
0.272783637,
0.0022745477,
0.3183097541,
-0.048914548,
0.0769052804,
0.0972462371,
0.2931251824,
-0.4255703092,
-0.0918626189,
-0.0994078442,
0.0639566407,
-0.0310466159,
-0.0595783405,
0.2252211869,
0.1836123019,
0.2673659623,
-0.1263179779,
-0.1126417518,
-0.2048866749,
-0.2327112108,
0.0449275896,
-0.0455986261,
0.2447638214,
0.1332667023,
-0.173230052,
0.102710478,
-0.0981096178,
0.2340752184,
-0.006762512,
-0.1562598944,
0.3492745757,
0.0658078715,
-0.0304316729,
0.2229417861,
0.0730591193,
0.1538513303,
0.1939471364,
0.232074827,
0.1487441361,
-0.0079510733,
-0.0711521357,
0.2236996293,
0.4041438401,
0.2519884109,
0.0371972732,
-0.27127406,
0.084302187,
-0.0215313137,
0.0744256973,
0.2611338198,
0.2806001902,
-0.0766164809,
-0.045005668,
0.3252578974,
0.3334693313,
-0.1243688613,
-0.1631985009,
0.3182971478,
-0.0139756482,
0.420430243,
0.4839693904,
0.4422836304,
0.1772606671,
0.2632225752,
-0.2364406437,
0.0219293535,
-0.1194808334,
0.1380639374,
0.0977174342,
-0.2348602414,
-0.0554499626,
0.3983246088,
0.1041610241,
0.1517786235,
0.1233951971,
0.1996935755,
0.225780502,
0.4948225021,
0.3259194493,
0.2280330062,
0.0527300388,
0.0314610824,
0.1201630533,
0.012214724,
0.167964384,
0.0551328212,
0.5647085309,
-0.1505908966,
-0.1659447253,
0.179660365,
0.2376627922,
-0.0135356635,
-0.1544376612,
0.0737020224,
-0.020639956,
-0.3714702129,
-0.0858862922,
0.0995201096,
-0.1106289923,
0.3970493078,
0.1965214312,
0.2857394516,
-0.1417671889,
0.18137981,
0.1122642308,
0.2467516959,
-0.2470306009,
0.350484103,
0.0195940398,
-0.1192038134,
-0.1085192487,
0.0991257951,
0.2237402946,
-0.1180720404,
-0.1607850492,
0.2019587159,
-0.2517105043,
-0.0079952031,
-0.0457954928,
0.2725598216,
0.2854667604,
0.2857907414,
0.3367884159,
0.1849636734,
-0.201308012,
-0.1097559333,
0.2182751745,
-0.0986415967,
-0.1151620001,
0.1749025285,
-0.0541744716,
-0.1403587759,
-0.2893492877,
-0.0321444124,
-0.5881888866,
-0.1756471545,
0.3687170148,
-0.2487142384,
-0.0288493354,
-0.1787040532,
0.1249967217,
0.0950520486,
0.3284764886,
0.0534805581,
0.2066304386,
0.0587492362,
-0.3791373372,
-0.3151339889,
0.0004416555,
-0.1313315481,
-0.220582664,
-0.3215104938,
0.2591944635,
0.2777637541,
0.1195500493,
-0.010550797,
0.3541168272,
0.1241326183,
0.0134105626,
-0.3721805215,
0.2482224703,
0.0209266543,
0.1585823596,
0.1502379179,
-0.1453204155,
-0.0784854442,
0.0602994785,
0.0443591028,
-0.2087064385,
-0.1215169728,
0.3126521111,
-0.0396511406,
0.440426439,
0.1888224781,
0.3760470748,
-0.2245993912,
-0.1751361787,
-0.323101759,
-0.2360532284,
-0.3889352679,
0.237441048,
0.1850438714,
0.218152374,
-0.1174865589,
-0.0293770898,
-0.1189846992,
0.3965699673,
0.0227113888,
0.2944969237,
-0.0015138239,
0.1962411106,
0.2674981058,
-0.1677459925,
0.0743265674,
0.573852241,
0.0561532415,
0.0317841321,
0.0877575874,
-0.3447563946,
-0.0165465176,
0.2008777559,
-0.0890749693,
0.1210013181,
0.176899448,
0.2702556849,
0.1854372919,
-0.4542296827,
-0.0464488119,
0.2504993975,
0.2181607783,
-0.2288095653,
0.2579585016,
0.1778255105,
-0.2444922477,
0.0192547068,
0.0247733742,
0.2521754503,
-0.3240345716,
0.2067227215,
-0.2375120223
] |
https://github.com/huggingface/datasets/issues/749 | [XGLUE] Adding new dataset | Really cool dataset 👍 btw. does Transformers support all 11 tasks 🤔 would be awesome to have a xglue script (like the "normal" glue one) | XGLUE is a multilingual GLUE like dataset propesed in this [paper](https://arxiv.org/pdf/2004.01401.pdf).
I'm planning on adding the dataset to the library myself in a couple of weeks.
Also tagging @JetRunner @qiweizhen in case I need some guidance | 25 | [XGLUE] Adding new dataset
XGLUE is a multilingual GLUE like dataset propesed in this [paper](https://arxiv.org/pdf/2004.01401.pdf).
I'm planning on adding the dataset to the library myself in a couple of weeks.
Also tagging @JetRunner @qiweizhen in case I need some guidance
Really cool dataset 👍 btw. does Transformers support all 11 tasks 🤔 would be awesome to have a xglue script (like the "normal" glue one) | [
-0.3609885573,
-0.2430479527,
-0.133338809,
-0.1087902486,
-0.0488195978,
-0.1585717648,
0.4023332596,
0.1078705192,
0.1723615825,
0.0442129523,
-0.0323642977,
0.0167612582,
-0.1374106705,
0.3313925862,
0.5176855326,
-0.238422811,
0.137001425,
-0.0414835401,
-0.2136697471,
-0.1239044517,
-0.2755304277,
0.1441283524,
-0.013041243,
0.0020677,
-0.3241947889,
-0.3382696807,
-0.2491800785,
0.0200914983,
0.0855366662,
-0.0490065664,
-0.1051614583,
0.2372087836,
-0.1000934094,
0.1456028968,
-0.0001029017,
-0.2386932969,
0.1524557173,
-0.0855206549,
0.1233777255,
0.146513164,
-0.4335062504,
-0.5227150917,
-0.2843219638,
-0.1264839321,
-0.0534857437,
0.1218108684,
0.2125723809,
-0.1292348504,
0.2736060917,
0.0016653351,
0.2837966681,
0.236449793,
0.0420415252,
-0.1583896428,
0.3880887926,
0.0325442292,
-0.088849932,
-0.1677186489,
0.8024858236,
0.024499625,
-0.1415564865,
0.1799801737,
-0.1484934539,
-0.3167272508,
-0.1134843603,
-0.1171216741,
-0.1555602849,
-0.2585978806,
-0.0800481141,
0.5484519601,
0.1892143488,
-0.2312719524,
-0.3534981012,
-0.1925369203,
-0.1706316769,
0.1413887143,
-0.1134961545,
0.2801833153,
0.114985913,
-0.1105147302,
0.2131236196,
-0.4164274335,
-0.0800764412,
0.0479948297,
0.0213419497,
0.5528360605,
-0.1332029998,
0.0807977393,
0.2142959982,
0.0414794013,
0.0381488055,
-0.0028294232,
-0.0836118758,
0.1186089143,
-0.3118959963,
-0.1651517153,
0.0856065452,
0.0546371564,
0.161531508,
0.1043575704,
0.1731625646,
0.3329557478,
-0.0175850242,
0.2472936213,
0.0191554427,
0.0790556744,
-0.0230054073,
-0.0928768814,
0.2940821946,
-0.468203187,
0.1120843366,
0.005607333,
-0.1300605834,
0.0141567923,
-0.3059466183,
0.1412536651,
-0.0782056376,
0.0545210242,
-0.0553623438,
-0.061357826,
0.2052801996,
-0.0639326274,
-0.0996133685,
0.1323672831,
0.1529038399,
0.0511072502,
-0.1864058673,
0.298668772,
0.0478518605,
-0.275470674,
-0.0506897047,
0.3398031592,
-0.1761931181,
-0.0852604061,
0.0325040519,
0.2464816272,
-0.1237424314,
0.2510393262,
-0.1529010236,
0.099149093,
0.4014102519,
-0.0238536224,
0.1298345923,
0.1362224072,
-0.1011757031,
0.0525083914,
-0.0508184209,
-0.1687993109,
-0.3668779433,
-0.0154536106,
0.0796930864,
-0.0815573037,
-0.3735298812,
0.2293699235,
-0.2696939707,
-0.3449990451,
0.0861407071,
0.6289963126,
-0.0880314261,
0.004977107,
0.2904127538,
0.1050073206,
0.2124744207,
-0.3345422447,
-0.092995584,
0.3001297712,
-0.4730133116,
-0.3338139057,
-0.0290500857,
-0.2311616242,
-0.0021570623,
0.0520140119,
-0.0440516323,
-0.0961744711,
-0.0073744394,
0.2651540339,
0.2889784575,
-0.2647589743,
-0.2074531615,
0.2098602206,
-0.1930576414,
-0.0273487866,
0.2175818235,
0.4717183113,
0.2743143439,
-0.1260920167,
-0.3171697259,
0.6667867899,
-0.151997596,
0.0343480334,
-0.0801533163,
-0.2497336268,
0.1098252237,
0.3647828102,
0.2909836471,
-0.2167261243,
0.1439430416,
0.0396682583,
-0.0432227887,
-0.1433191001,
0.141575247,
0.2905840278,
0.2136435807,
-0.0768427253,
-0.0356036127,
-0.3173745275,
-0.5034192801,
-0.0827657729,
-0.1377800554,
0.2258932292,
0.0800665468,
-0.1218504086,
0.1599667668,
-0.0953993201,
-0.1808452308,
-0.2863191366,
0.2205736786,
0.1641149074,
0.139745608,
-0.0252315588,
-0.2686025202,
0.4233843386,
0.3195320964,
0.007503055,
-0.3495754302,
-0.0012605488,
0.0281368066,
-0.0337245315,
-0.0981784388,
0.1319553107,
-0.079559207,
-0.4043678343,
0.1795040369,
0.2557621002,
-0.1880484372,
0.3382912874,
0.2561553717,
0.6219776869,
0.3133590817,
-0.0191651657,
0.3991298676,
0.0698498264,
0.0090059675,
-0.1501578838,
0.0675852671,
0.3907512426,
0.1409370899,
0.018282041,
-0.0826654434,
0.2094753385,
0.2510531545,
-0.1255114079,
-0.1356682926,
0.063803345,
0.3023630977,
0.0520371273,
0.3860330582,
-0.0337324217,
-0.1731179506,
0.1216314584,
0.6009008288,
-0.1979757249,
0.5357918143,
-0.0756157786,
-0.3768769205,
0.0995146632,
0.0751877502,
0.4574152827,
-0.0352167338,
0.3183377385,
0.1094111651,
-0.0901599377,
-0.0832098797,
-0.1180771589,
0.1242980957,
-0.1158257723,
-0.1036300585,
0.0889114588,
-0.0943763852,
-0.2065750957,
-0.4662321806,
-0.2011835575,
0.0638098866,
-0.0539059713,
0.1487092972,
-0.0733555779,
0.1418776363,
-0.2242622972,
-0.3412422836,
-0.2206404209,
-0.377214998,
-0.220918268,
0.2375551164,
-0.3334907889,
-0.2636541724,
0.2999640703,
0.0928901583,
0.3302303553,
-0.3172258437,
-0.258176595,
-0.2700489759,
-0.292068243,
-0.0477996208,
0.2156933993,
0.0847445801,
-0.0897061229,
0.3635440767,
0.0333962813,
0.381205678,
-0.0919454172,
-0.5689721107,
0.1191644967,
-0.1226816401,
0.0685384199,
0.1305504292,
-0.1295524538,
0.1467071474,
-0.2462764978,
0.1192118227,
-0.2974479198,
0.059424825,
-0.0277624317,
-0.1027414948,
-0.135448575,
-0.112760365,
-0.2742824852,
-0.4515148401,
-0.3990276456,
0.4014703631,
-0.1385787725,
0.0809628367,
0.0772028416,
-0.0410938561,
0.1876619607,
-0.0107724424,
-0.1963227689,
-0.1856985837,
-0.1812000424,
0.229537189,
-0.1653046757,
-0.23285079,
-0.3834366798,
-0.3701708317,
0.140929386,
0.17191872,
-0.043437086,
0.0923863351,
-0.4001676738,
-0.0342918634,
0.3072667122,
0.4078636169,
0.3317822218,
0.0975072011,
-0.1154505685,
-0.1843905896,
0.0087154582,
0.0510744266,
0.2351144552,
-0.1191021055,
0.0116799194,
0.1188954562,
0.0949406624,
0.3151740432,
-0.2041481733,
0.0975989252,
0.3520654738,
0.0841609314,
0.2209137231,
-0.0726859719,
-0.270491004,
0.1274236739,
-0.1682580113,
0.1681062281,
-0.0417463556,
0.0772243887,
-0.3364410996,
-0.049673751,
-0.0152916238,
-0.2027970254,
-0.1033515409,
0.3815233111,
-0.0514092594,
0.1208208948,
-0.0068345815,
-0.3145821691,
-0.2032822669,
-0.0024619736,
0.317786932,
-0.1241956353,
-0.0532719269,
-0.0749128461,
-0.3606045246,
0.1025643498,
-0.4060280323,
0.4150724709,
0.0535135716,
0.0381958373,
-0.1957624555,
-0.1038285196,
-0.1164113283,
-0.0720750242,
0.5585852861,
-0.7669780254,
-0.2477972806,
0.267175734,
-0.1752995253,
-0.2825008631,
0.0456873327,
-0.6122173667,
-0.1853536367,
0.3356100619,
0.2638908923,
-0.2619713545,
0.0222218819,
0.1353658736,
0.2076645046,
-0.0366968885,
0.1109814346,
-0.0739147812,
-0.2088599652,
-0.3884418309,
0.1725717783,
0.1043165103,
-0.1245153248,
0.416259706,
-0.0996795967,
-0.144826442,
-0.0257686898,
0.1814983785,
0.0621257462,
-0.2512046397,
0.0350443162,
-0.2351838946,
-0.0061822827,
-0.1770448685,
-0.3659860492,
0.1819808334,
0.0489047207,
-0.0261669159,
0.1500627846,
-0.3189905882,
0.5837525129,
0.0618361831,
0.4266435206,
0.1943755001,
-0.0578183159,
0.0082541797,
-0.4315266609,
0.1220740676,
0.0495350733,
0.436293453,
-0.5069689751,
-0.2749758363,
0.3288795054,
0.2196709514,
-0.2500655651,
0.3241351247,
0.0630875528,
-0.1747760773,
0.23111251,
0.0590973273,
1.0470573902,
-0.285387069,
0.0825850889,
-0.0768946409,
-0.3744663,
0.3689415157,
-0.4711639881,
0.1320773661,
-0.4165919423,
-0.4293304086,
-0.1159039736,
-0.1274815798,
0.1884614378,
0.2491800487,
-0.4533571303,
0.1104433537,
0.0337644219,
0.2077458799,
-0.0778501332,
0.4188007414,
-0.2352681011,
-0.3907490671,
0.1043953598,
0.2456567883,
0.0125924097,
0.1032886505,
-0.2052793056,
-0.1338419467,
0.1223030612,
-0.038256146,
-0.4704653621,
0.2153525501,
-0.0674791485,
0.2509668469,
-0.0331183448,
-0.1206816211,
0.0749348179,
-0.2031740695,
0.112659961,
0.0963340104,
0.0640141144,
0.1682972014,
-0.0994524211,
0.0459484532,
0.2933208942,
-0.057346981,
0.3924862146,
-0.0306719393,
-0.198386699,
0.163690716,
0.1191079021,
-0.1707440615,
-0.4024884105,
0.0486910641,
-0.0601888038,
0.0203218125,
0.0897642151,
0.3942230344,
-0.0316866077,
-0.2778939605,
0.1909075975,
0.1337261796,
-0.084406279,
0.2934397161,
-0.1149672195,
-0.106984362,
-0.2799264789,
-0.1366923004,
0.1460371315,
-0.0961656868,
-0.0794296116,
0.3056714833,
-0.1349849403,
-0.4338504374,
0.2840722203,
0.6293208003,
-0.4850786924,
0.0036915205,
-0.3216129541,
-0.6450654268,
-0.1130219921,
0.1339284927,
0.250341177,
0.1212665439,
-0.1605266035,
-0.139365539,
-0.2133236825,
0.2515175045,
0.2450022995,
0.2780742049,
-0.1337165236,
-0.1324386597,
0.2573316991,
0.40484339,
-0.4375584722,
-0.0829918608,
-0.1618520319,
0.1344715506,
0.3316449821,
-0.1460801959,
0.1819201708,
0.1513402164,
0.1655955911,
-0.0386901945,
-0.1681571007,
-0.2187852263,
-0.2697500587,
0.0720075518,
-0.0865028352,
0.1566186547,
0.1791735291,
0.0378601179,
0.0818518102,
-0.16963844,
0.2937635183,
-0.0619393177,
-0.1026089564,
0.2647131681,
-0.0327844694,
-0.0574535802,
0.1438624412,
0.0093400385,
0.046773538,
-0.010986276,
0.1935271621,
0.1348608583,
0.3256728649,
-0.1500690877,
0.0536518544,
0.3959354162,
0.4930192232,
-0.1005027965,
-0.0145374332,
0.1071010157,
0.0501959622,
0.2038671374,
0.2401396483,
-0.1264395565,
-0.002732072,
0.1049308181,
0.1144298613,
0.3260231018,
-0.2255145013,
-0.2132745683,
0.2950289547,
-0.0916678905,
0.3021837473,
0.455968678,
0.2727415562,
0.074863106,
0.4452637732,
-0.2198542058,
0.4396692514,
-0.2672581375,
0.3010183275,
0.1515913755,
-0.1996718943,
-0.1657266915,
0.3411107361,
0.1333608925,
0.0590923019,
0.2153359354,
0.0762525648,
0.0807504803,
0.4413007796,
0.2158815563,
0.3455502391,
0.0495136529,
0.0585018583,
0.1124445647,
0.2237919867,
0.3284394443,
0.1237661242,
0.1969253272,
-0.1285903156,
0.0466523953,
-0.0742896572,
0.3286125064,
-0.2025380135,
-0.043969281,
0.4355280995,
-0.070443064,
-0.2919858992,
0.08138033,
0.1336534023,
-0.2037664801,
0.4764043093,
0.0273859799,
0.367036134,
0.0936612636,
0.38178581,
0.0440278649,
0.0127917156,
-0.3642975986,
0.2106716037,
0.094561331,
0.0458099991,
-0.1554961801,
0.3691647649,
0.2344435155,
-0.0413457789,
-0.3102599978,
0.5758238435,
-0.3054921627,
0.0054961145,
-0.0814948753,
0.2868721485,
0.1579227597,
0.4094849527,
0.1979363561,
0.1584171951,
-0.1892089695,
-0.2466736883,
0.0180137362,
-0.2632716894,
0.054619208,
0.1511258185,
-0.1083958074,
-0.2024660707,
-0.3343573213,
0.1445023566,
-0.5961223841,
-0.2081916481,
0.2707665563,
-0.3062336743,
0.0033911467,
-0.0259529725,
0.1164576411,
0.0409545228,
0.3355061412,
0.1505190581,
0.441290319,
-0.104600966,
-0.2439604253,
-0.37434268,
0.0297327936,
0.1027983353,
-0.1452237666,
-0.1690422893,
0.0720210895,
0.3530842662,
0.1691124737,
-0.0904693455,
0.2801838517,
-0.0896501467,
-0.1212620288,
-0.2620972395,
0.4705159068,
0.2503425479,
0.2977393568,
0.1526471972,
-0.0619148314,
-0.0834917575,
0.1330939829,
0.1720968783,
-0.308657378,
-0.1317840219,
-0.0311155021,
-0.2584131062,
0.3762413263,
0.0574528277,
0.4025653303,
-0.2408713847,
-0.07904578,
-0.2328091264,
-0.2008939981,
-0.2569523156,
0.1051391661,
0.132986486,
0.1505862772,
-0.0286007654,
-0.1116520241,
-0.181727767,
-0.0419373214,
-0.0280584767,
0.5094857216,
-0.1684680432,
0.1310402006,
-0.0654512793,
-0.0967621058,
0.0321710445,
0.2447137684,
0.1230118126,
-0.04561878,
0.015796423,
-0.2617708445,
0.0546610504,
0.1993360072,
-0.4142242074,
-0.1303805113,
0.0549482852,
0.0566851683,
0.206424728,
-0.3133172989,
0.0007217824,
0.1439416707,
0.0925227031,
-0.0868831277,
0.1879673749,
0.2319285572,
-0.3672060072,
-0.0741347,
-0.1359802634,
0.1137864441,
-0.2101168036,
-0.0523657687,
-0.3238995671
] |
https://github.com/huggingface/datasets/issues/749 | [XGLUE] Adding new dataset | Just to make sure this is what we want here. If we add one config per language,
this means that this dataset ends up with well over 100 different configs most of which will have the same `train` split. The train split is always in English. Also, I'm not sure whether it's better for the user to be honest.
I think it could be quite confusing for the user to have
```python
train_dataset = load_dataset("xglue", "ner-de", split="train")
```
in English even though it's `ner-de`.
To be honest, I'd prefer:
```python
train_dataset = load_dataset("xglue", "ner", split="train")
test_dataset_de = load_dataset("xglue", "ner", split="test-de")
test_dataset_fr = load_dataset("xglue", "ner", split="test-fr")
```
here | XGLUE is a multilingual GLUE like dataset propesed in this [paper](https://arxiv.org/pdf/2004.01401.pdf).
I'm planning on adding the dataset to the library myself in a couple of weeks.
Also tagging @JetRunner @qiweizhen in case I need some guidance | 107 | [XGLUE] Adding new dataset
XGLUE is a multilingual GLUE like dataset propesed in this [paper](https://arxiv.org/pdf/2004.01401.pdf).
I'm planning on adding the dataset to the library myself in a couple of weeks.
Also tagging @JetRunner @qiweizhen in case I need some guidance
Just to make sure this is what we want here. If we add one config per language,
this means that this dataset ends up with well over 100 different configs most of which will have the same `train` split. The train split is always in English. Also, I'm not sure whether it's better for the user to be honest.
I think it could be quite confusing for the user to have
```python
train_dataset = load_dataset("xglue", "ner-de", split="train")
```
in English even though it's `ner-de`.
To be honest, I'd prefer:
```python
train_dataset = load_dataset("xglue", "ner", split="train")
test_dataset_de = load_dataset("xglue", "ner", split="test-de")
test_dataset_fr = load_dataset("xglue", "ner", split="test-fr")
```
here | [
-0.1910265982,
0.0532001257,
-0.077692464,
0.0108434241,
0.0387279466,
-0.0806756318,
0.5347974896,
0.0377282612,
-0.0204799473,
0.1416442096,
-0.1144325733,
0.0680523291,
-0.1843291223,
0.2480088472,
0.3943486214,
-0.1348955631,
0.0209184699,
-0.1578742117,
0.2138727456,
-0.1265165806,
-0.1170298383,
0.1462668329,
0.2255788893,
0.0706292987,
-0.3789373338,
-0.2115485221,
-0.1750748158,
0.0153063908,
0.0442245454,
-0.2807620168,
0.0263563618,
0.0578122362,
-0.0484579839,
0.1628399938,
-0.0001036719,
0.1411676258,
-0.0540860929,
-0.0771505833,
0.1324317455,
-0.1961729527,
-0.273622781,
-0.4907412231,
-0.0753001124,
-0.1089987382,
-0.1303656399,
-0.0766441971,
0.0178503785,
-0.4681306779,
0.1797653735,
0.1816546321,
0.2313518077,
-0.0988326296,
-0.4710575938,
-0.0546996593,
0.1543904841,
-0.1809718311,
-0.0108408332,
0.2446626425,
0.2024462521,
0.167357415,
-0.2104751319,
0.4398649335,
0.1683363616,
-0.231373325,
-0.1968749315,
0.1649381518,
-0.1484712362,
-0.2361786366,
-0.1522668004,
0.5677230954,
0.0808057338,
-0.3228996396,
-0.3928545117,
-0.270452559,
0.1999153197,
-0.288887471,
0.0518831834,
0.211303696,
0.2176041305,
0.175131768,
0.2317299396,
-0.6836285591,
0.0540123135,
0.1356298923,
-0.0971829891,
0.5137052536,
-0.0015302971,
0.2439486086,
0.0815679282,
0.1402275711,
0.0208347179,
-0.0078434683,
-0.0897863209,
-0.1002548039,
-0.240917936,
0.1066808179,
-0.1642868072,
-0.0150394477,
0.0946132243,
-0.0935693458,
0.0727482438,
0.1536907852,
0.1089787707,
0.205089435,
0.1776738763,
0.1180368066,
0.236634925,
0.0627683029,
0.2887327075,
-0.4710454345,
-0.0778060853,
0.0195075553,
0.0746850073,
-0.1912413239,
-0.1727141887,
-0.045946449,
0.0269847214,
0.0663522258,
-0.0959773585,
0.1052939743,
-0.2061983347,
-0.2935823798,
0.0990044624,
0.1449009925,
0.1277308464,
0.1413605213,
-0.2030745298,
0.3725823462,
-0.2662520111,
-0.2571803033,
-0.2277457714,
0.3409708142,
-0.3748531044,
0.0921018645,
-0.2021756619,
-0.0808231235,
-0.0476232395,
0.3292246759,
-0.1071463898,
-0.158049643,
0.0915868804,
-0.1337835491,
0.0519524142,
-0.1247288585,
0.0125547275,
0.1580184996,
0.057018768,
-0.3566269279,
-0.4626466036,
-0.0300366655,
-0.2527824938,
-0.2549270988,
-0.2875265777,
0.2056724131,
-0.1694247127,
-0.2321386486,
0.2545636296,
0.739115715,
0.1273802519,
-0.1175598428,
0.2827652395,
-0.1243181378,
-0.1663300097,
-0.2764618695,
-0.0702711865,
0.2362782508,
-0.5743149519,
-0.4132931828,
0.2253565937,
-0.1976186335,
0.2069159746,
0.1966435611,
-0.3473394513,
0.0109949168,
-0.1177358031,
0.353420645,
0.5970430374,
-0.2923468351,
-0.1303870678,
0.2141416818,
-0.2635834813,
0.0889388472,
0.2357153744,
0.2031343132,
0.1027274281,
0.1982204318,
0.0678460598,
0.4630223513,
-0.0053030923,
-0.15738675,
-0.140219748,
-0.1902843714,
0.3542566895,
0.2323130667,
-0.0381513983,
-0.2863728106,
0.1947168112,
0.0899081826,
0.2390927672,
-0.1426829398,
0.0964535922,
0.2986017466,
0.0468665995,
0.0179023743,
-0.1953503489,
-0.0708426163,
-0.3336547911,
0.147062853,
0.0368674621,
0.3827441335,
0.2917511165,
-0.2662766576,
0.1779703498,
-0.342145741,
-0.4258974791,
-0.3459896445,
0.1614496261,
0.2230117321,
-0.0680404678,
0.2329869866,
-0.2800183296,
0.5938705206,
0.0390462577,
0.1116576344,
-0.3817917109,
0.0530276522,
0.0686301738,
-0.1893721223,
-0.2376472652,
0.2393786907,
-0.1718096584,
-0.2405154109,
-0.0398930982,
0.4583501518,
0.2323987335,
0.0488368683,
-0.0718664527,
0.1190839708,
0.3836652637,
0.1094573438,
0.1813322902,
-0.2294233739,
-0.1822822541,
-0.1237250045,
0.0827200264,
0.5217267275,
0.3244667351,
0.1004312634,
-0.1075853705,
0.0357734784,
0.1910137832,
-0.0415981524,
-0.3569167852,
-0.2650182545,
0.0556679107,
0.0556832626,
0.4347802401,
0.1592082381,
-0.579193294,
-0.0712529868,
0.7180761099,
0.0097677633,
0.1693634987,
-0.0693665147,
0.0558391176,
0.1011972725,
0.1895569414,
0.520197928,
0.2122920454,
0.2389432341,
0.2982462645,
-0.0165145118,
-0.1940761507,
-0.1828315854,
-0.1059381366,
-0.2370996177,
0.0795015544,
-0.036292091,
-0.2030071616,
-0.2575029135,
-0.4082721472,
-0.1509490758,
0.147193253,
-0.02923242,
-0.0294270962,
0.0245033354,
-0.300519377,
-0.1801535487,
-0.5986666083,
-0.3013353944,
-0.6115763187,
-0.1811364591,
0.2447137237,
-0.6047819853,
-0.0467015877,
0.4229426384,
-0.1425319612,
-0.0406717211,
-0.4698756933,
-0.5025680661,
0.2565770745,
-0.0421059132,
-0.4064778388,
0.09187866,
0.157980606,
-0.032724563,
0.2512929142,
-0.1421439946,
-0.0645048022,
0.1113222614,
-0.4008820057,
0.1825395525,
-0.2062155604,
0.1482294202,
0.1005490273,
-0.3347792327,
-0.0572909154,
-0.3021550179,
0.3210501969,
0.015002504,
0.1456758976,
-0.064671129,
0.0767857879,
0.0475417748,
-0.0653712228,
-0.7204000354,
-0.5405853987,
-0.1982037276,
0.0103970086,
-0.1640194207,
0.1104089469,
0.2534589171,
0.089055717,
0.0119739436,
-0.1456246525,
-0.0044968538,
-0.2257571518,
-0.3820061088,
-0.0291854031,
-0.1099888235,
-0.1568064094,
-0.030467689,
-0.0716735348,
0.2077925354,
0.1767009497,
-0.1378646195,
0.0166730359,
-0.1939051002,
0.2275471836,
0.0353253633,
0.4253296554,
0.1598970741,
0.1543308794,
-0.0326045156,
-0.0435754843,
-0.1585963517,
0.3780444264,
0.2033305019,
0.0127776414,
-0.0691450238,
0.0634467602,
0.059462145,
0.2326342762,
0.1773546338,
0.0641299337,
0.2799991667,
-0.338076055,
0.3977769911,
-0.1409876496,
-0.2067121565,
0.2182900012,
-0.0323909745,
0.0140595064,
0.1528442502,
0.0271883942,
-0.3039855957,
-0.0851359591,
0.0778564736,
-0.0166707039,
-0.3773219287,
0.3567852974,
-0.1539150923,
0.032072667,
-0.1507054865,
-0.1522398591,
0.1029479802,
0.1817680299,
0.0295736641,
0.0969725177,
-0.3498258591,
0.183231771,
-0.5369265676,
-0.0991419926,
-0.2999082804,
0.1079708934,
0.1305075586,
0.2762562037,
-0.1866476983,
0.0029907376,
0.0175065808,
0.0150313415,
0.3966658115,
-0.4808495045,
-0.4820996225,
0.2004494071,
0.0212571993,
-0.1305935383,
-0.0855680853,
-0.3278744817,
-0.0188421682,
0.3498183489,
0.0562955663,
-0.3079891801,
-0.1586358994,
0.0676219538,
0.3820746541,
-0.2028709203,
0.060727641,
-0.2034720182,
-0.1728473306,
-0.0992191806,
0.1970161498,
0.0209773481,
0.1204798669,
0.2889883816,
-0.1223187149,
0.0317439362,
-0.0846941918,
0.1988638192,
0.146478653,
0.091712743,
0.1164061651,
-0.1610088646,
0.0501023158,
0.067659162,
-0.148519367,
0.4402643144,
-0.3087306917,
-0.2286413163,
0.078777805,
-0.082953006,
0.4901843667,
0.263142705,
0.1338199079,
0.0982675701,
0.0177668072,
-0.085102886,
-0.0298895519,
0.3046809435,
0.2123529166,
0.3413002193,
-0.5329064727,
-0.7967944145,
0.218546927,
0.3822431862,
-0.0536776111,
0.3410783112,
0.1901211888,
-0.4465327859,
0.2073234171,
-0.0830266178,
0.901111722,
-0.1306343079,
0.2235772759,
0.1495050639,
-0.1318374872,
0.3479494154,
-0.3285905719,
0.0038764663,
-0.2408125848,
-0.0437445007,
-0.0364984162,
0.0516547859,
0.4080273807,
0.1710564196,
-0.3253443837,
0.2190811932,
-0.0632045493,
-0.0246656518,
-0.2653279901,
0.538980186,
-0.3405441344,
-0.3104389012,
0.011744149,
0.1211124957,
0.016459411,
-0.1240205094,
-0.0320046395,
-0.0346306227,
-0.1027092189,
-0.0499444455,
-0.2220512629,
-0.0139933154,
-0.3344770968,
0.2656897902,
-0.2952317297,
-0.3578468561,
0.0453359708,
0.2026156783,
-0.0023019835,
-0.0105986409,
0.2655402124,
0.0741095468,
0.1182729751,
0.0995844156,
0.225941658,
-0.2287580222,
0.4069570303,
0.0496983975,
-0.4066696763,
0.1384824663,
-0.0037559718,
-0.0418351069,
-0.2877301574,
0.1658206731,
-0.0140049122,
-0.3451162279,
-0.0867621973,
0.5174045563,
0.1695557982,
-0.1511256099,
0.1396111399,
0.226004824,
-0.1892262548,
0.1703297943,
-0.1977107525,
-0.3133748174,
-0.3624937534,
-0.1934813261,
0.3652396798,
0.0774340108,
0.0183698032,
-0.0373929664,
-0.0392577127,
-0.1547611356,
0.3754972816,
0.6007122993,
-0.2000180185,
-0.260006994,
0.0255492851,
-0.1986388266,
-0.1310257912,
-0.0964416787,
0.0995766446,
0.2887747884,
-0.0135681257,
-0.1367732733,
-0.0293979459,
0.1859990805,
0.2647143006,
0.235660255,
0.060353823,
0.1310639083,
0.0571036562,
0.1626470536,
-0.3480125666,
-0.1127504334,
0.0621661022,
0.0632515028,
-0.0794921219,
0.1583418697,
0.1201240495,
0.0510214791,
0.2173430026,
-0.2318614274,
-0.0895737559,
-0.1527542025,
-0.2958569527,
0.0701781362,
0.0311055742,
0.2595134079,
0.2123282701,
-0.0669623911,
0.254661262,
-0.0671433657,
0.4487276375,
0.3342232108,
-0.0203398392,
0.3825974464,
0.0965795517,
0.0775319189,
0.0216042027,
0.0777430385,
0.0062757675,
0.091987595,
0.3465150595,
0.2132038474,
-0.0094084553,
-0.0684604421,
0.1386407018,
0.1333215684,
0.0467713438,
0.1533383876,
-0.5616034269,
-0.1983239204,
0.232937932,
0.1103417948,
0.3073978722,
0.5193898082,
-0.2277441174,
0.0489991903,
0.2958117723,
0.246362254,
-0.1652407348,
-0.1334264129,
0.3222331107,
-0.1974415779,
0.3228984475,
0.6079252362,
0.3969995975,
0.3502965271,
0.1784864366,
-0.388710767,
-0.0774661899,
-0.0573846623,
0.3764551878,
0.3210878372,
-0.277259171,
-0.0390722118,
0.3862940967,
0.2131921053,
0.0836510062,
0.1898491532,
-0.2030176818,
0.2447145879,
0.4480059445,
0.2559127212,
-0.0196451545,
-0.1803528368,
0.1119465381,
0.1226975024,
-0.0923087299,
-0.0242621042,
-0.0230914541,
0.3833847642,
-0.1555441022,
-0.1396635175,
0.2985609174,
0.2837639749,
-0.1940129697,
-0.1534998119,
0.1968222111,
0.051173687,
-0.2921154499,
0.132324934,
-0.0847920179,
-0.38208583,
0.1012463346,
0.2282997221,
0.1256139874,
-0.0172215588,
0.1757410169,
-0.0920662805,
-0.0584925078,
-0.1508607566,
0.3755713701,
-0.081373021,
-0.0365997776,
-0.0309988931,
0.0649983808,
0.1281388998,
-0.0776266158,
0.1141752303,
0.2989530861,
0.0123911351,
0.1952899843,
0.0215531588,
0.0813496709,
0.2636424899,
0.2784679234,
0.3846482635,
0.1433397532,
-0.1800048798,
-0.1037965864,
0.1969034076,
-0.1185326129,
-0.2046390921,
0.4069384038,
0.0168794543,
0.1484296173,
-0.3007177413,
0.1054489315,
-0.5907669067,
-0.1081682593,
0.4824227989,
-0.1324924231,
-0.0243051201,
-0.1197232157,
0.1084382832,
0.1769620329,
0.1353199035,
-0.1425591409,
0.2858888507,
-0.1633036137,
-0.0971365497,
-0.5655860901,
0.0163473301,
-0.2357182205,
-0.222258538,
-0.3270241916,
0.1791229546,
0.2547141016,
0.146902889,
-0.025016509,
0.3019024134,
0.0407263562,
-0.0222037882,
-0.2168003619,
0.2168513238,
0.0339499302,
0.3752876222,
0.0588302165,
-0.0458978079,
-0.0710564554,
0.1366903186,
-0.0337914601,
-0.1267011166,
-0.0554820821,
0.1835242361,
-0.1502083987,
0.4845891297,
0.0721931979,
0.3468744755,
-0.0968672112,
0.0449642539,
-0.3203823566,
-0.1027015597,
-0.4841051996,
0.3530172706,
0.0704814345,
0.1793077588,
-0.1841544211,
-0.1012342721,
-0.2685379982,
0.3025502861,
0.1291613281,
0.0757253915,
0.1334384382,
0.2273638695,
0.3005338907,
-0.1105147004,
0.0799837261,
0.6495320797,
0.1090994328,
0.0263889953,
-0.0370239913,
-0.2057639956,
0.0126174241,
0.1199869961,
-0.1545428932,
0.1037764996,
0.1777691096,
0.3171556294,
0.1134345382,
-0.5646630526,
0.0775780827,
0.3290458918,
-0.0124457441,
-0.1623533666,
0.1617171466,
0.1916936338,
-0.1885299385,
-0.0747933313,
-0.0379163958,
0.1036523208,
-0.2620891631,
0.1151693612,
-0.343202889
] |
https://github.com/huggingface/datasets/issues/749 | [XGLUE] Adding new dataset | Oh yes right I didn't notice the train set was always in english sorry.
Moreover it seems that the way this dataset is used is to pick a pretrained multilingual model, fine-tune it on the english train set and then evaluate on each test set (one per language).
So to better fit the usual usage of this dataset, I agree that it's better to have one test split per language.
Something like your latest example patrick is fine imo :
```python
train_dataset = load_dataset("xglue", "ner", split="train")
test_dataset_de = load_dataset("xglue", "ner", split="test.de")
```
I just replace test-de with test.de since `-` is not allowed for split names (it has to follow the `\w+` regex), and usually we specify the language after a point. | XGLUE is a multilingual GLUE like dataset propesed in this [paper](https://arxiv.org/pdf/2004.01401.pdf).
I'm planning on adding the dataset to the library myself in a couple of weeks.
Also tagging @JetRunner @qiweizhen in case I need some guidance | 122 | [XGLUE] Adding new dataset
XGLUE is a multilingual GLUE like dataset propesed in this [paper](https://arxiv.org/pdf/2004.01401.pdf).
I'm planning on adding the dataset to the library myself in a couple of weeks.
Also tagging @JetRunner @qiweizhen in case I need some guidance
Oh yes right I didn't notice the train set was always in english sorry.
Moreover it seems that the way this dataset is used is to pick a pretrained multilingual model, fine-tune it on the english train set and then evaluate on each test set (one per language).
So to better fit the usual usage of this dataset, I agree that it's better to have one test split per language.
Something like your latest example patrick is fine imo :
```python
train_dataset = load_dataset("xglue", "ner", split="train")
test_dataset_de = load_dataset("xglue", "ner", split="test.de")
```
I just replace test-de with test.de since `-` is not allowed for split names (it has to follow the `\w+` regex), and usually we specify the language after a point. | [
-0.1850291491,
-0.0132668912,
-0.148690924,
0.0019630864,
0.0076404251,
0.0446559191,
0.5710828304,
0.227843821,
0.0795824528,
-0.0067038462,
-0.0968191475,
0.0388207659,
-0.1122408286,
0.261508435,
0.3110356927,
-0.2384134829,
-0.0684591904,
-0.056533616,
0.1240935624,
-0.1399793178,
-0.2046367228,
0.1350340545,
-0.0491297022,
0.1263543665,
-0.2888019681,
-0.2710749209,
-0.2809759676,
0.1510727257,
0.0982093588,
-0.3324355781,
-0.0145564936,
0.0820208788,
-0.1000957936,
0.2394533902,
-0.0000984545,
0.0035832673,
0.0116474349,
-0.1343544126,
0.0931769758,
-0.246842742,
-0.1667537242,
-0.3409180045,
-0.0839923173,
-0.2314071953,
-0.1988064051,
-0.2100842744,
-0.0071409419,
-0.4129567742,
0.2574448586,
0.4221241176,
0.2658776045,
0.0925966725,
-0.4435320795,
-0.0577485226,
0.0836896151,
-0.2422900796,
-0.0142652281,
0.3178781271,
0.3424071074,
0.0916493237,
-0.2131612003,
0.4722451866,
0.214787662,
-0.2140097171,
-0.3749870956,
0.2226094157,
0.1621938944,
-0.2566308081,
-0.2446122319,
0.5190035105,
0.0885882229,
-0.1996839494,
-0.4328457415,
-0.3251273036,
0.1437958479,
-0.2628547251,
-0.0695553422,
0.13110286,
0.16541031,
0.1995815784,
0.2035406083,
-0.4648977518,
-0.0041477606,
-0.0275465287,
-0.0512330867,
0.4490270913,
0.0837485343,
0.2335713655,
0.0661157221,
0.1411512345,
0.0701013207,
-0.0458780564,
-0.0986159891,
0.0553030223,
-0.3070974648,
0.0117037147,
-0.1072815657,
0.0474772826,
0.0492761284,
-0.0513092242,
0.0577570088,
0.149897784,
-0.0426057652,
0.0831402689,
0.1448105127,
0.1986084878,
0.2610928118,
-0.0025000647,
0.2398756295,
-0.2484663129,
-0.159571141,
0.044702176,
-0.0625418797,
-0.2378836274,
-0.0981822163,
0.1467841715,
0.0020359233,
-0.0192321017,
-0.2591942549,
0.0218806677,
-0.2672095299,
-0.2567575574,
0.1375151426,
0.3601801991,
0.1010514349,
0.178355515,
-0.1949616075,
0.4000521302,
-0.2575907707,
-0.3261204958,
-0.2360520363,
0.4139588177,
-0.3500257134,
-0.1115134656,
-0.1663128734,
-0.0035029482,
0.0561321527,
0.2235702574,
-0.0694183931,
-0.2711366713,
0.2184351236,
-0.1956033856,
0.0430456847,
-0.1566673815,
0.1363712251,
0.1480956972,
0.0551050492,
-0.2610816658,
-0.2872414291,
0.124961555,
-0.2613191307,
-0.2190706134,
-0.1309770644,
0.2636015415,
-0.0556391962,
-0.2025935799,
0.1537780613,
0.6856273413,
0.067944169,
-0.0829038098,
0.1622473598,
-0.1698953062,
-0.2368928492,
-0.1498967558,
0.060418345,
0.2283629626,
-0.4998067617,
-0.2230637223,
0.1563811153,
-0.1898707747,
0.2398959994,
0.1788356751,
-0.3093419969,
0.1431643218,
-0.1819399297,
0.3296812773,
0.4337343574,
-0.1968709081,
0.0012612231,
0.1648807973,
-0.2769864202,
0.1439600289,
0.0981916785,
0.0963476673,
-0.0398085788,
0.0914684087,
-0.1129776984,
0.4214549363,
-0.1313757747,
-0.0832724571,
-0.2045926154,
0.051858373,
0.4903116226,
0.1938473135,
0.0115591278,
-0.2899576724,
0.0232221205,
0.2018412948,
0.4168175161,
-0.2848473787,
-0.0102515407,
0.1488901079,
0.035693232,
-0.1913882941,
-0.1631720811,
-0.0502903163,
-0.2708037198,
0.2367835343,
-0.0572081059,
0.3583613634,
0.2925867736,
-0.1614952981,
-0.0340897664,
-0.2929207683,
-0.3429953456,
-0.3280103803,
0.1961517632,
0.1275320351,
-0.0183658451,
0.2233020663,
-0.1144111007,
0.4993131459,
-0.2044027448,
0.0379449241,
-0.2293878496,
0.069077827,
0.0574299097,
-0.0924550146,
-0.1822474152,
0.2621297538,
-0.0277301669,
-0.264283061,
-0.073008202,
0.4596441388,
0.2617920339,
0.0888959393,
0.0312580317,
-0.0496135205,
0.293315202,
0.0038489774,
0.0808961391,
-0.049272351,
-0.057169009,
-0.0665820986,
0.0750344545,
0.6284970641,
0.2595185339,
0.0366195217,
0.0453429967,
0.021936059,
0.1795025766,
-0.1326719224,
-0.1585243195,
-0.1459658593,
0.177964896,
-0.0484448746,
0.3755078912,
0.0467370301,
-0.5525541306,
-0.039533779,
0.6682411432,
-0.0861358345,
0.2210562229,
-0.1629423648,
0.0032059439,
0.012865372,
0.0814101994,
0.4090774655,
0.1975964904,
0.192612946,
0.3233122826,
0.0363063142,
-0.2348086834,
-0.1850534528,
-0.0121338069,
-0.1885350198,
-0.0220246557,
-0.007299982,
-0.022728879,
-0.3276415169,
-0.3438842297,
-0.0637874678,
0.2475374639,
0.0396654829,
-0.1704258025,
0.0497674942,
-0.1639366001,
-0.0924925506,
-0.5131720901,
-0.1697529852,
-0.2990207672,
-0.275583744,
0.2779986858,
-0.4795276821,
-0.1530559659,
0.3516798615,
0.0142614022,
-0.0065271407,
-0.2841564715,
-0.2699314058,
0.2208056301,
-0.094073981,
-0.3664019406,
0.2050340176,
0.2037618458,
0.0812527314,
0.3301103413,
-0.234419018,
-0.1691032946,
0.0525087118,
-0.3607347608,
0.1120210439,
-0.3015365601,
0.2112489641,
-0.0038541518,
-0.2363390177,
-0.077220507,
-0.0966503397,
0.2910980582,
-0.2559053302,
0.0668351203,
0.0072895139,
0.1401246488,
0.0815490931,
-0.1243100613,
-0.864256978,
-0.4875789583,
-0.1643185616,
-0.0253246315,
-0.1726875901,
0.1272611618,
0.1203695238,
-0.0235027,
0.0834428221,
-0.1305625588,
-0.1321271658,
-0.1328826547,
-0.3648802638,
0.054183308,
-0.1330412775,
-0.2362874597,
-0.000524424,
-0.1073925942,
0.1918780953,
0.0102634951,
-0.0284331515,
-0.1482357979,
-0.0269307662,
0.1684061587,
0.0729791969,
0.2140500396,
0.1686770767,
0.0360343046,
-0.0599839278,
-0.1326554716,
0.1027209908,
0.3575432301,
0.2007723153,
0.0179579444,
-0.0859694406,
0.1646140218,
0.1144308001,
0.3161393404,
0.1050372422,
0.0751700997,
0.347378552,
-0.294936955,
0.0827237815,
-0.0996647328,
-0.2263886631,
0.1534625143,
-0.0825009272,
-0.0072271228,
0.2077982128,
-0.0784923062,
-0.2769230604,
-0.0320978202,
0.1027439982,
-0.1094155759,
-0.3094548285,
0.3692905009,
-0.2520235181,
0.1452081352,
-0.0956943333,
-0.0400847793,
0.0871161968,
0.1184850559,
0.0704562068,
-0.1126700193,
-0.1533164084,
0.0615470745,
-0.5243782997,
0.0631781071,
-0.4058928192,
0.2378017455,
0.2078356594,
0.276401639,
-0.074061662,
-0.0548349693,
0.0277638286,
-0.0255988203,
0.4136492014,
-0.5377340317,
-0.300013423,
0.1335585415,
-0.1395605057,
-0.1210924685,
-0.0396730825,
-0.4901553988,
0.0567328446,
0.3245157897,
0.0268929824,
-0.2364983112,
-0.235019058,
0.0957178921,
0.4035209715,
-0.2324523032,
0.1144093871,
-0.2139938474,
-0.2013908327,
-0.0795557871,
0.3560836911,
0.1235736758,
0.1735671014,
0.0661981329,
-0.0526298955,
0.0362092629,
0.0801757127,
0.2874005437,
0.236744687,
0.1805155724,
0.0960929245,
-0.0152197555,
0.0856456831,
0.1028416306,
-0.1949978173,
0.5514806509,
-0.279574126,
-0.1800481677,
0.0751629323,
-0.2313218862,
0.492017746,
0.315875411,
0.0637912452,
0.054275915,
-0.1470230073,
-0.0298242532,
-0.1273117959,
0.495249927,
0.3691212833,
0.3038398027,
-0.5208019018,
-0.7163478136,
0.0763604194,
0.1433677524,
-0.0718169734,
0.3379654884,
0.0801026821,
-0.4435580969,
0.3029434383,
-0.1379788816,
0.8299779296,
-0.154733181,
0.1495673954,
0.2511035204,
-0.0103378966,
0.1198968589,
-0.2770322561,
0.0504340194,
-0.3902564645,
-0.181677103,
-0.0185418501,
0.0266718566,
0.3309810758,
0.2546288073,
-0.1719596833,
0.3106064796,
0.0629122853,
-0.0823836401,
-0.1602983624,
0.5479096174,
-0.1836718619,
-0.1779922694,
-0.055475466,
0.207378298,
0.1209597737,
-0.2522976398,
-0.0005772747,
0.0440300666,
-0.1167809069,
-0.1211788803,
-0.149024725,
0.0681141093,
-0.3145231903,
0.1270882189,
-0.3392324746,
-0.4663168788,
0.1525371969,
0.2302164435,
0.0238433797,
0.041480165,
0.2004447579,
0.2233334482,
-0.0361076333,
0.2259843946,
0.2869744599,
-0.216196537,
0.4443504214,
0.0769712478,
-0.4147387445,
0.1529236436,
-0.0429296382,
-0.1553613096,
-0.3987051249,
0.1413906068,
-0.0879080147,
-0.3317213356,
-0.279887706,
0.3710279465,
0.1566071808,
-0.3257326484,
0.1937778741,
0.1746722162,
-0.356644243,
0.1035794318,
-0.2939985394,
-0.3408979475,
-0.227925688,
-0.146745801,
0.2551463842,
0.1478307098,
0.1853164434,
0.1771684885,
0.0631779656,
-0.2510709465,
0.2935942709,
0.7671790719,
-0.3604857326,
-0.0944764316,
-0.0430952683,
-0.0761971474,
-0.1275305748,
0.0466259159,
0.0012513824,
0.292835027,
-0.0060275793,
-0.1465607882,
0.0262544081,
0.1060535312,
0.3661715686,
0.2135560662,
0.1051953137,
0.2165447772,
-0.0657733008,
0.1873434931,
-0.4249196351,
-0.021887647,
0.0335004777,
0.1952532083,
-0.1877142936,
0.101508677,
0.246244967,
0.0794786364,
0.2716883719,
-0.0982100368,
-0.022753261,
-0.2768945098,
-0.2326979339,
0.0420945659,
0.0030398704,
0.1464897692,
0.1917455494,
-0.1105342805,
0.1963164359,
-0.1995993555,
0.3462593853,
0.0933929533,
-0.0289436206,
0.4050982296,
0.1337254345,
0.0200062618,
-0.0226385221,
-0.0154916411,
-0.0756204277,
0.0577668399,
0.273575604,
0.2285782099,
0.1661152095,
-0.033849977,
0.1037754416,
0.0515047982,
0.1024887711,
0.1802716255,
-0.4070771337,
-0.1074662581,
0.2417313755,
0.0146529377,
0.4209896922,
0.4550825953,
-0.2232891321,
0.1202175841,
0.1841105521,
0.3284198046,
-0.3032055497,
-0.1017673388,
0.3478955925,
-0.183558166,
0.3683903813,
0.5443091989,
0.3609474599,
0.3915967345,
0.2173246741,
-0.3320576847,
-0.0590571538,
-0.0370326377,
0.2283537686,
0.352163136,
-0.2252583504,
-0.0137926713,
0.2947936654,
0.0122067835,
0.0204938427,
0.3185673654,
-0.1346905082,
0.5100479722,
0.278570056,
0.2657674551,
-0.1102461368,
-0.0381644443,
-0.0429402366,
0.0359505713,
-0.0425849557,
0.0030521126,
-0.0134195276,
0.3571205437,
-0.2191537321,
-0.2307670414,
0.0600330681,
0.172181502,
-0.1735135019,
-0.1581006944,
0.045671761,
-0.0769226551,
-0.3853398561,
0.1428914815,
-0.0948415548,
-0.2333560735,
0.0164353177,
0.1870514303,
0.0885126293,
-0.1807626337,
0.0049231593,
-0.0268227253,
0.0005696416,
-0.2636565268,
0.2993962467,
0.1494666636,
0.0189232305,
-0.0019948818,
0.0059087016,
0.0925206542,
-0.1938611269,
-0.1583000571,
0.1911500245,
-0.0999314785,
0.1267412305,
0.0645077154,
0.124499172,
0.1079674512,
0.3817974925,
0.4639881849,
0.2002543509,
-0.2372899055,
0.0335978121,
0.3672505021,
-0.1782065928,
-0.3492478132,
0.3454868495,
0.0347277969,
0.1469870955,
-0.4240698814,
0.047131516,
-0.4729427695,
0.0539719164,
0.360545814,
-0.2008824795,
0.008877635,
-0.0449941605,
0.1398205459,
0.030537352,
0.1862388104,
0.016478572,
0.4034821093,
-0.378013283,
-0.2280184776,
-0.6396082044,
0.1061460078,
-0.1306392699,
-0.1318808049,
-0.2288673073,
0.1273168027,
0.2996815145,
0.0760717764,
0.0178169496,
0.2471985221,
-0.0661534593,
0.0361258164,
-0.3035610318,
0.1115655005,
-0.1736970842,
0.2723177671,
0.0318914577,
-0.0913095698,
-0.0970785543,
0.100388445,
0.0112237036,
-0.0569187738,
-0.1481509507,
0.239316389,
-0.0982652754,
0.4576745927,
0.0818589777,
0.4475515783,
-0.1374198645,
0.162027061,
-0.2884497643,
-0.1693186462,
-0.3598201275,
0.3531140983,
0.0327526443,
0.3872628808,
0.0410273969,
-0.1317429245,
-0.2183701098,
0.2081663609,
0.2204305083,
0.019157663,
-0.0410341658,
0.2259751409,
0.2056664228,
-0.1205065623,
0.1088380814,
0.6713241339,
0.082043618,
-0.0427993312,
0.0192263573,
-0.1867138445,
-0.0438635796,
-0.0447645634,
-0.2145179659,
0.0617853925,
0.155420959,
0.2474336922,
0.0241122562,
-0.5554366112,
-0.0113704205,
0.2986543179,
0.071642682,
-0.173657313,
0.164788425,
0.3442056179,
-0.0516929924,
-0.0447650626,
0.0026238505,
0.1113648042,
-0.2034364939,
0.111154519,
-0.3900695443
] |
https://github.com/huggingface/datasets/issues/743 | load_dataset for CSV files not working | Thank you !
Could you provide a csv file that reproduces the error ?
It doesn't have to be one of your dataset. As long as it reproduces the error
That would help a lot ! | Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets.
`
from datasets import load_dataset
`
`
dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master")
`
Displayed error:
`
...
ArrowInvalid: CSV parse error: Expected 2 columns, got 1
`
I should mention that when I've tried to read data from `https://github.com/lhoestq/transformers/tree/custom-dataset-in-rag-retriever/examples/rag/test_data/my_knowledge_dataset.csv` it worked without a problem. I've read that there might be some problems with /r character, so I've removed them from the custom dataset, but the problem still remains.
I've added a colab reproducing the bug, but unfortunately I cannot provide the dataset.
https://colab.research.google.com/drive/1Qzu7sC-frZVeniiWOwzoCe_UHZsrlxu8?usp=sharing
Are there any work around for it ?
Thank you | 36 | load_dataset for CSV files not working
Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets.
`
from datasets import load_dataset
`
`
dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master")
`
Displayed error:
`
...
ArrowInvalid: CSV parse error: Expected 2 columns, got 1
`
I should mention that when I've tried to read data from `https://github.com/lhoestq/transformers/tree/custom-dataset-in-rag-retriever/examples/rag/test_data/my_knowledge_dataset.csv` it worked without a problem. I've read that there might be some problems with /r character, so I've removed them from the custom dataset, but the problem still remains.
I've added a colab reproducing the bug, but unfortunately I cannot provide the dataset.
https://colab.research.google.com/drive/1Qzu7sC-frZVeniiWOwzoCe_UHZsrlxu8?usp=sharing
Are there any work around for it ?
Thank you
Thank you !
Could you provide a csv file that reproduces the error ?
It doesn't have to be one of your dataset. As long as it reproduces the error
That would help a lot ! | [
-0.0531700589,
0.0708663464,
-0.0034638941,
0.362957269,
0.2447587401,
0.2201894671,
0.4253183007,
0.3036736548,
0.3109274805,
0.0509859696,
-0.0670639277,
0.2354821265,
-0.0957934856,
-0.0218968466,
-0.2746928036,
-0.1102113277,
0.0493469425,
0.0534440055,
-0.3843252361,
0.037524797,
-0.3989785016,
0.3356211483,
-0.3421680927,
-0.0064871907,
-0.1416349113,
0.239798069,
-0.0553938076,
0.3360731602,
-0.1290959418,
-0.3701968491,
0.4902816415,
-0.094914034,
0.5313911438,
0.2242038548,
-0.0001188278,
0.0561857671,
0.3267246485,
-0.0927153453,
-0.2536969483,
-0.5014421344,
-0.0495750308,
-0.479780376,
0.3480937183,
-0.0440142602,
-0.0695052072,
0.0655863956,
-0.1130334437,
-0.3628052771,
0.3677667379,
0.51943326,
0.181696251,
-0.2161457241,
-0.0732245743,
-0.0899273604,
0.583696723,
0.0712948963,
-0.1410908401,
0.2741571963,
0.0311338138,
-0.2326371968,
-0.0960093662,
0.1110258251,
-0.0724671483,
0.2592613399,
0.257240057,
0.2152857184,
-0.1385256946,
-0.1685497165,
0.0878666863,
0.1150505617,
0.7295117378,
-0.111487627,
-0.1594742537,
-0.0453409851,
-0.0406004637,
-0.0944410861,
0.3628718853,
0.2874688506,
0.0556220263,
0.3495482504,
-0.0392497964,
0.0313879997,
-0.2870233953,
0.1172611192,
0.0713905841,
-0.0096614808,
-0.1667079479,
0.3307062387,
0.1022034436,
-0.0038514091,
0.2687624097,
-0.0411295295,
-0.1087320149,
0.2209747136,
-0.7359086275,
0.3105952442,
-0.1458625495,
-0.0289481543,
-0.0242924355,
0.1971954405,
0.2464100271,
-0.0232908856,
-0.0816030577,
0.3690750897,
0.2595979869,
0.032567516,
0.0150490711,
0.2488968223,
0.2425163388,
-0.2127748281,
0.0344928205,
-0.1823340058,
-0.3340727389,
-0.5727440715,
-0.0450328104,
0.1722307652,
0.2509997189,
-0.2274131328,
-0.2134583294,
0.1509696096,
-0.2655118108,
0.0042610392,
-0.1363604665,
0.2583583593,
0.1820415854,
0.3217635751,
0.1022381857,
0.323368758,
-0.0812659413,
-0.4609398246,
-0.0293142088,
0.1431435943,
-0.4125255942,
-0.0469964035,
0.4920216203,
-0.1724776924,
0.1270471513,
0.2477500439,
-0.1354368925,
-0.3477975428,
-0.0136515461,
-0.2814346254,
0.0046412908,
0.3041785955,
0.072401017,
0.2251594365,
0.3489327133,
-0.2020389736,
-0.0728906244,
0.3434779644,
-0.4518962502,
-0.2065823972,
-0.1280945539,
0.0978844538,
-0.2282010764,
0.0720366538,
-0.3392662108,
0.0715108812,
0.0557156242,
-0.1955102682,
-0.171106413,
-0.319401592,
-0.2678618729,
-0.2312422097,
0.0226149336,
0.4551672935,
-0.8168237805,
0.2262128741,
-0.0098615214,
0.0500962511,
0.0799536183,
0.2039695382,
-0.2677916288,
0.0344987214,
-0.2549438775,
0.1157387197,
0.1402721703,
-0.2161640972,
-0.2937298417,
0.1842557937,
-0.0505553782,
-0.074908331,
0.0845163539,
0.0922508612,
0.3441410959,
-0.0177560467,
-0.2049927413,
0.1499436498,
0.0094179641,
0.0440512374,
-0.2377331704,
-0.1822584569,
0.2446544915,
0.231815815,
0.0159405377,
0.1241322905,
0.2280939221,
-0.6181376576,
0.3143371344,
-0.0560143106,
0.2522961199,
0.1251531094,
0.2919842005,
0.068033576,
0.3314850926,
0.056059882,
-0.545149684,
0.1935878396,
0.4534474313,
-0.1884108186,
-0.0907029808,
-0.0167360604,
-0.4643528461,
0.0068465546,
-0.1820609868,
-0.0329610892,
-0.0002791546,
0.049745068,
-0.0883559957,
-0.1819704473,
-0.1153891087,
0.4194994867,
-0.2807847559,
0.0929731801,
-0.3300334513,
0.2806961834,
0.1371115595,
-0.0622212514,
0.2043173611,
-0.078718476,
0.3156999946,
-0.0505180173,
-0.1529254764,
0.279281795,
0.3547394574,
-0.0294624455,
0.1198975444,
-0.1979081631,
0.0191885438,
-0.296764791,
-0.0098963939,
0.2180443257,
0.3470371366,
-0.0931994617,
-0.4841011763,
0.3240231276,
-0.3189898133,
0.2089036405,
-0.2283425629,
0.1850347519,
0.2576616704,
-0.0349270515,
-0.0827435702,
0.0283307135,
0.056988135,
0.025328815,
0.2225338221,
0.0946080908,
-0.1744119227,
-0.1414366961,
0.0628361553,
0.1814900786,
-0.238835752,
0.2301221788,
-0.1126147658,
-0.0576635636,
0.3364202976,
0.2839768231,
0.4159412086,
0.0849343389,
-0.2692224681,
-0.0180042945,
0.0707983822,
-0.1863806099,
0.0902072415,
0.0085394066,
0.0635171831,
0.1984076202,
0.2047153115,
0.0949885175,
-0.1371754259,
-0.1268932074,
0.1822058409,
0.2504077256,
-0.600442946,
-0.0170623325,
-0.1977535933,
0.3690707088,
-0.2314529568,
-0.0469771996,
0.1054714918,
-0.2846022248,
-0.2780260444,
0.3058360517,
-0.1332712919,
0.0533147082,
-0.2049990743,
0.2518928647,
0.1134856865,
-0.1292218119,
0.0387607515,
-0.1857039332,
-0.2578781843,
0.0051693544,
0.091402933,
-0.0227887593,
-0.1138940081,
0.1033107862,
0.089700453,
-0.3063430786,
-0.0327224359,
0.125014931,
0.0054550394,
0.0982465744,
0.1273558587,
-0.0856842846,
-0.0653370842,
-0.1550445408,
0.2096200734,
0.0910363123,
0.0384267122,
0.418443054,
0.2405580282,
-0.1648763716,
-0.1206733584,
-0.6375058889,
-0.24014467,
-0.2200732827,
0.0447861701,
-0.1669532359,
-0.0543231629,
0.0653820932,
0.3040777445,
-0.0523251444,
0.238474682,
-0.1168533564,
-0.1043981165,
-0.2288609445,
0.5683002472,
-0.2417072207,
-0.2770062685,
0.2639981508,
-0.0347368903,
0.0477999188,
0.3508772254,
-0.396723479,
0.2066197097,
-0.0642233193,
0.0257206261,
-0.0835897028,
0.0371141732,
0.0664876848,
-0.0323752351,
0.0934542418,
-0.0514092408,
-0.1807923317,
0.233005628,
-0.0544730686,
0.0497299284,
0.168284446,
0.5563706756,
-0.2356365621,
0.6716982126,
0.1087848842,
0.1012936085,
0.3297624886,
-0.0753614828,
0.2564425766,
0.1710277945,
-0.2240679562,
0.061077781,
-0.1236014217,
-0.3338025808,
0.321225673,
0.0084111504,
-0.1048502624,
-0.07349246,
0.2458774447,
-0.2612118721,
-0.168322742,
0.1560327858,
-0.0741377994,
0.0590327121,
-0.0084794164,
0.1152752489,
0.0636247694,
-0.2108645141,
-0.0467193685,
0.1300502717,
0.1895852834,
-0.0741184875,
0.1287035793,
-0.1253466755,
-0.2497012168,
0.2363940626,
-0.1328610778,
0.4405015707,
0.0873843729,
-0.0750820488,
0.0294267535,
0.1850696355,
0.7332044244,
-0.264343679,
0.0262118541,
0.119907409,
-0.0547269285,
-0.1926733851,
-0.3259960413,
-0.0825328529,
0.2219945043,
-0.041279465,
0.2150903344,
-0.0131864846,
0.0535508357,
0.385981977,
0.0705645531,
-0.1538186222,
-0.4156411886,
-0.1248806342,
-0.0565223992,
-0.1333366632,
-0.242825672,
0.1577138007,
0.0563475564,
-0.237114042,
0.1061416119,
-0.2183860093,
-0.2058781683,
0.3085449934,
0.1126156747,
0.2635262311,
0.0404757373,
0.196000725,
0.2719379067,
0.1261609644,
0.2306049317,
0.773797214,
-0.1709042042,
-0.8922718763,
0.2450987846,
-0.5180838108,
0.3393911421,
-0.0342084989,
-0.3213840425,
-0.0762142986,
-0.258705914,
-0.1450983882,
-0.1039242595,
-0.1216763481,
0.0747585669,
-0.0106528886,
-0.129734695,
-0.4533151388,
0.5562049747,
-0.1329881996,
-0.1653015763,
0.1423024088,
-0.0152590424,
-0.30032897,
0.4268859327,
-0.0881932527,
0.6560726762,
-0.1391480565,
-0.0989319533,
0.1329797506,
-0.2335330844,
0.3357265294,
-0.2730209231,
-0.0558691174,
-0.5120703578,
-0.1469633579,
-0.1590157747,
-0.003742449,
0.1034841537,
0.5652617216,
-0.2156029642,
0.3151758611,
-0.1441100985,
0.4138492942,
0.0545263588,
0.0907119811,
0.3058975339,
-0.1670154482,
-0.1141054481,
0.1325437427,
-0.1335919648,
-0.0413922034,
0.0516830012,
0.0316269398,
-0.2306940109,
-0.0953273624,
-0.3436084986,
0.3158483803,
-0.058837492,
0.0750972778,
0.1861767918,
-0.4859145582,
0.5535687208,
0.4605585635,
0.1939995885,
-0.1114402488,
-0.2201229185,
0.1092186347,
0.046607092,
0.0503437594,
-0.1632005423,
-0.0240387041,
-0.0615489855,
0.215240851,
-0.2079125494,
0.2802381814,
-0.105320707,
-0.0827165768,
0.2299663126,
0.2725981772,
0.2134951949,
-0.4861704111,
-0.3553219438,
-0.225154534,
0.1214451641,
-0.1187397391,
0.0530748069,
-0.0247508883,
0.1066571698,
-0.0446032584,
0.0643728375,
-0.3480312824,
0.1839972138,
0.222926259,
-0.2328323126,
0.0587840378,
0.4570628405,
0.4909373522,
-0.1183460355,
-0.1546210498,
0.0396805555,
0.1785498857,
-0.6025986671,
0.1056110859,
0.0670923293,
0.2354783714,
0.1761482954,
0.1965436488,
0.2040317804,
-0.2113201618,
0.1216649786,
-0.5683943033,
-0.0207871348,
-0.0678643584,
-0.1500793546,
0.0608933866,
-0.0695434809,
-0.4517225325,
-0.059182398,
-0.0651099831,
-0.1966660917,
0.0805674121,
0.0609502867,
0.0550402552,
0.169142887,
0.3050046861,
-0.2626045644,
-0.2842248678,
0.0174314454,
0.0360211618,
0.0789607316,
-0.1089610904,
-0.1910562217,
0.1684361845,
-0.0031503644,
0.152351737,
-0.2686833441,
-0.195789516,
-0.2490989119,
-0.1680258363,
0.084707208,
0.3114746213,
-0.0280913822,
0.4006356299,
0.0338986665,
-0.1250311732,
-0.4943279624,
0.2662497759,
-0.2059062421,
0.1760912538,
0.0802544355,
0.172106564,
0.1556375623,
0.0842217505,
-0.146584779,
0.0710212067,
-0.1401133984,
-0.1272113919,
0.2502040267,
-0.3445927501,
0.1869976223,
0.2318910509,
0.3359312713,
0.3265926242,
-0.1360159069,
-0.0745565593,
0.1204321906,
0.1417512894,
-0.3591188788,
0.1969385743,
0.0459273458,
0.2983695567,
-0.121851787,
0.2741488218,
-0.0423086882,
-0.1998052895,
0.0856372938,
0.1599942446,
0.6721041203,
-0.0011854395,
0.0585343242,
0.2218625844,
-0.0432722904,
0.0969638675,
0.176792413,
-0.0449939221,
0.093389228,
0.4701837897,
-0.1698189974,
-0.0640109926,
0.398222059,
0.2136931419,
-0.188345626,
-0.590133965,
0.2023794949,
0.3499040604,
-0.2514422834,
-0.1630515456,
0.1874292195,
0.641790688,
0.0472946428,
0.0677867085,
-0.3391376138,
-0.0705883205,
0.0864297152,
-0.0597232915,
-0.2506251335,
-0.1946727931,
-0.4349192977,
0.2554755807,
-0.200930208,
0.0267463308,
0.5014756918,
0.1956417114,
-0.0481146574,
-0.5706121922,
0.1003893465,
0.2635082603,
0.0335167348,
-0.317953676,
0.0991412178,
0.0033049174,
-0.0355584547,
0.3778114617,
-0.1384401023,
0.3884503841,
0.4504052997,
0.0671171919,
-0.3161945045,
-0.1921662986,
-0.0744566396,
-0.0587591603,
0.44700104,
-0.0163555518,
0.2828294933,
0.2275446504,
0.1104678363,
0.0034674034,
0.3139463663,
0.0639148057,
0.1889018118,
-0.4063863456,
-0.1162731871,
0.0189677253,
-0.0651797578,
-0.0975171477,
-0.2211101502,
-0.0924165025,
-0.215788871,
0.4446010888,
0.1799660325,
0.207126677,
0.1574011445,
0.0032119453,
-0.1497552991,
0.1894349456,
0.4540916681,
0.0465284921,
-0.5287824273,
-0.0883443132,
-0.8030945063,
-0.0099849254,
-0.2449391335,
-0.1308877766,
0.0474379919,
0.2087430954,
0.3072413206,
0.2748606205,
-0.0298503861,
0.1222134233,
-0.0819615498,
0.3319582343,
-0.1741870046,
-0.1797350198,
-0.1086849421,
0.1004775763,
-0.062690571,
-0.4160607159,
0.0869848132,
0.3398027718,
-0.1194695979,
-0.1836851537,
-0.1013243496,
0.0599799454,
-0.2456315458,
0.4114701152,
-0.0058901086,
0.4132960737,
0.0335015729,
0.2946874201,
-0.4566013217,
-0.2764180303,
-0.1911328435,
0.1752244532,
-0.1380840987,
0.4519535303,
-0.3454529941,
0.0347792581,
-0.1817924082,
-0.0487451516,
0.0195976198,
0.2384879589,
-0.4080232978,
0.2792761922,
-0.1106726676,
0.2292051315,
-0.1760116667,
-0.134616524,
-0.120419845,
0.2537301779,
-0.1035770476,
-0.2741246223,
0.3016403019,
-0.2517799437,
-0.2887697816,
0.0469479747,
0.2282960266,
0.1620083153,
0.1029794589,
-0.5200518966,
-0.0361442491,
0.3270946443,
-0.0772533566,
-0.1145511717,
0.106971249,
0.1176326424,
0.0564749017,
-0.151969105,
0.2231711447,
0.3093069196,
-0.1856915206,
-0.1730552465,
-0.3540092111
] |
https://github.com/huggingface/datasets/issues/743 | load_dataset for CSV files not working | I think another good example is the following:
`
from datasets import load_dataset
`
`
dataset = load_dataset("csv", data_files=["./sts-dev.csv"], delimiter="\t", column_names=["one", "two", "three", "four", "score", "sentence1", "sentence2"], script_version="master")`
`
Displayed error `CSV parse error: Expected 7 columns, got 6` even tough I put 7 columns. First four columns from the csv don't have a name, so I've named them by default. The csv file is the .dev file from STSb benchmark dataset.
| Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets.
`
from datasets import load_dataset
`
`
dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master")
`
Displayed error:
`
...
ArrowInvalid: CSV parse error: Expected 2 columns, got 1
`
I should mention that when I've tried to read data from `https://github.com/lhoestq/transformers/tree/custom-dataset-in-rag-retriever/examples/rag/test_data/my_knowledge_dataset.csv` it worked without a problem. I've read that there might be some problems with /r character, so I've removed them from the custom dataset, but the problem still remains.
I've added a colab reproducing the bug, but unfortunately I cannot provide the dataset.
https://colab.research.google.com/drive/1Qzu7sC-frZVeniiWOwzoCe_UHZsrlxu8?usp=sharing
Are there any work around for it ?
Thank you | 72 | load_dataset for CSV files not working
Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets.
`
from datasets import load_dataset
`
`
dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master")
`
Displayed error:
`
...
ArrowInvalid: CSV parse error: Expected 2 columns, got 1
`
I should mention that when I've tried to read data from `https://github.com/lhoestq/transformers/tree/custom-dataset-in-rag-retriever/examples/rag/test_data/my_knowledge_dataset.csv` it worked without a problem. I've read that there might be some problems with /r character, so I've removed them from the custom dataset, but the problem still remains.
I've added a colab reproducing the bug, but unfortunately I cannot provide the dataset.
https://colab.research.google.com/drive/1Qzu7sC-frZVeniiWOwzoCe_UHZsrlxu8?usp=sharing
Are there any work around for it ?
Thank you
I think another good example is the following:
`
from datasets import load_dataset
`
`
dataset = load_dataset("csv", data_files=["./sts-dev.csv"], delimiter="\t", column_names=["one", "two", "three", "four", "score", "sentence1", "sentence2"], script_version="master")`
`
Displayed error `CSV parse error: Expected 7 columns, got 6` even tough I put 7 columns. First four columns from the csv don't have a name, so I've named them by default. The csv file is the .dev file from STSb benchmark dataset.
| [
-0.0901068524,
0.01711303,
0.0167959332,
0.3881010711,
0.2925542593,
0.2115881443,
0.3847278357,
0.229759112,
0.2224225402,
0.0898580402,
-0.1013281867,
0.2565506697,
-0.0943530202,
0.0382323787,
-0.2512098849,
-0.1036800519,
0.0104466118,
0.0889977962,
-0.2961678207,
0.0908844471,
-0.3902234435,
0.3168067038,
-0.3827794194,
-0.0461568721,
-0.1766606718,
0.2577834725,
0.0003089383,
0.2659321725,
-0.0958685428,
-0.4407778382,
0.5010360479,
0.0035069427,
0.571261704,
0.3400995433,
-0.000120307,
0.0167351291,
0.3593455255,
-0.1578389406,
-0.2551824749,
-0.4866745472,
-0.0636011064,
-0.4186859727,
0.3337732553,
-0.1273178607,
-0.1325138509,
0.0567033365,
-0.0902747959,
-0.5262622833,
0.3351168036,
0.4816693962,
0.1699000895,
-0.1670434773,
-0.1962602139,
0.0122885667,
0.6344583035,
0.0383951068,
-0.1703589857,
0.2307633609,
0.0600282475,
-0.0478317663,
-0.0772400647,
0.041457314,
-0.0999132842,
0.2801175714,
0.2486497462,
0.2107811421,
-0.222751528,
-0.139771238,
0.1007598117,
0.1845953166,
0.7821599245,
-0.1575743407,
-0.1605600715,
-0.0145658031,
-0.0244938452,
-0.0883757323,
0.3267965913,
0.305757761,
0.0497211814,
0.3230618238,
-0.1105096787,
0.1278136373,
-0.2835090756,
0.0646019578,
0.073180303,
-0.0285640024,
-0.2363407165,
0.320471257,
0.0431457907,
-0.0127096893,
0.30141747,
-0.1281215847,
-0.1516458392,
0.1567753553,
-0.7318519354,
0.2994091511,
-0.1890993267,
-0.0831177682,
-0.0139114186,
0.1470647156,
0.2610994875,
0.040913187,
-0.0495255068,
0.3694847822,
0.1844191551,
0.0623424873,
0.0744774938,
0.2123368979,
0.2606659234,
-0.1923152357,
-0.0245100409,
-0.1213861555,
-0.2915117443,
-0.4715487361,
-0.1039493158,
0.123536855,
0.2158164531,
-0.2365603447,
-0.2136601508,
0.1357289702,
-0.2236693054,
0.0182396956,
-0.1153506488,
0.2875609994,
0.0961314291,
0.2370781898,
0.0844722688,
0.1946081221,
-0.0593215004,
-0.4193834662,
-0.0320639536,
0.0889588892,
-0.3964945078,
-0.0089434423,
0.4253872037,
-0.2059128284,
0.1551052034,
0.2090523094,
-0.1807142198,
-0.3763447404,
-0.1051807329,
-0.2998524904,
0.1227000579,
0.2350857109,
0.0722878128,
0.2252719253,
0.1758590639,
-0.2096451819,
-0.0948166549,
0.3743306994,
-0.4765122235,
-0.203762114,
-0.1129601672,
0.0870467499,
-0.3702278137,
0.0428120196,
-0.4717316031,
0.0912085325,
0.0114770569,
-0.1476513445,
-0.1846652627,
-0.379690975,
-0.3459869325,
-0.2003359944,
0.056268625,
0.4900046587,
-0.7549702525,
0.2011179775,
0.0685676262,
0.0840681791,
0.1757277846,
0.1387699842,
-0.2232252359,
0.0998108536,
-0.2925265431,
0.0760307461,
0.1172125041,
-0.1124079376,
-0.325076282,
0.1897110492,
-0.0210656524,
-0.0349105597,
0.1909705848,
0.0766446516,
0.4279765189,
-0.0000177138,
-0.2978310287,
0.1610571444,
0.0182889793,
0.0978718847,
-0.2641837001,
-0.2243624777,
0.2195975482,
0.2429787368,
0.0428959131,
0.0870596021,
0.2906078994,
-0.4773258865,
0.2948067188,
-0.0837218463,
0.2005083859,
0.1304017007,
0.1938509196,
-0.003129987,
0.3042296171,
-0.0209541433,
-0.5490700006,
0.2013018131,
0.5036677718,
-0.1273954511,
-0.0546870828,
-0.0433550738,
-0.4341196418,
-0.0346212387,
-0.175720349,
0.0496485457,
-0.025637269,
0.1051593348,
-0.078372553,
-0.1835371852,
-0.0745788589,
0.3672890067,
-0.3182172179,
0.0592878424,
-0.3288673162,
0.3052718937,
0.1356876493,
-0.0979554877,
0.2334702611,
-0.0340173729,
0.2635864615,
-0.1565466225,
-0.1594042629,
0.2825958729,
0.3972233236,
-0.0089150593,
0.0568524599,
-0.1653580517,
0.0449948981,
-0.2886996865,
-0.0396446884,
0.208366096,
0.3289196193,
-0.0525297038,
-0.3882876039,
0.3406113088,
-0.3962657452,
0.2122684419,
-0.1858503371,
0.063631855,
0.2840827703,
-0.0627927184,
-0.0625532791,
0.0368210524,
0.0639444739,
0.0541221499,
0.2319159061,
0.1155364886,
-0.1605667025,
-0.0800898373,
0.2399236113,
0.1933389604,
-0.2646186948,
0.2249321789,
-0.1317935735,
-0.0654701889,
0.31313169,
0.2746331394,
0.3821980357,
0.1115470231,
-0.2823292911,
-0.0077097071,
0.1524131596,
-0.233568728,
0.1316004395,
0.1034618318,
0.0353702269,
0.2109540999,
0.1988955587,
0.1048499867,
-0.1725975573,
-0.1863417327,
0.1725757122,
0.2190567106,
-0.5805422664,
0.0048969612,
-0.2296883166,
0.3273845315,
-0.2782445848,
0.0585419796,
0.17336905,
-0.2118964791,
-0.337269038,
0.2768917084,
-0.1294861734,
0.0467705876,
-0.154228121,
0.3068208396,
0.1176591814,
-0.2467563301,
0.0469244421,
-0.2137751281,
-0.3152795732,
-0.0071444586,
0.1042526066,
0.0340958871,
-0.1043616906,
-0.0373483151,
0.0876662433,
-0.2402612865,
-0.0827938095,
0.1639792621,
0.0137605742,
0.1385039836,
0.1075597554,
-0.1262121201,
-0.0486986414,
-0.1588345915,
0.1437247694,
0.0194417909,
0.0146211907,
0.3827896118,
0.21634233,
-0.2095620781,
-0.1090563238,
-0.6926312447,
-0.1795829684,
-0.2248692513,
0.0250140056,
-0.1732673049,
-0.0428308211,
0.0470630378,
0.3236685693,
-0.023879936,
0.2033360898,
-0.0535824448,
-0.0562274009,
-0.3528065085,
0.5881900787,
-0.2043502778,
-0.3377240598,
0.2926166356,
-0.0908309072,
0.0103344414,
0.3109973967,
-0.4887526333,
0.2925724089,
-0.0550777242,
0.0720268041,
-0.0035765537,
0.0297302399,
0.0222402681,
-0.0356192291,
0.1201733947,
-0.0546184927,
-0.2449771464,
0.1972088963,
-0.0757416636,
0.1196695864,
0.2698401809,
0.4340096712,
-0.2318447232,
0.6490838528,
0.0943915546,
0.006585842,
0.2863880694,
-0.0369604826,
0.3239889741,
0.11930722,
-0.1768080294,
0.1326799989,
-0.0976958945,
-0.3513126969,
0.4459328353,
0.0127535202,
-0.008859938,
-0.0752965361,
0.2621178329,
-0.1663683504,
-0.1729790568,
0.1763001829,
-0.1056280807,
0.0349247083,
-0.0148695745,
0.1156283319,
0.1018471867,
-0.275916785,
-0.0472506993,
0.1879239976,
0.1916071028,
-0.0905420035,
0.002533406,
-0.0383908078,
-0.259962678,
0.2224001586,
-0.0328262821,
0.432013005,
0.1223767847,
-0.0044628605,
0.0574926808,
0.1865427047,
0.6240664721,
-0.2614262998,
0.0962498486,
0.1275529265,
-0.051543314,
-0.2346758842,
-0.298112154,
-0.1358577907,
0.1346200109,
0.0321771167,
0.1876165271,
-0.0290283114,
0.0071553737,
0.4268550873,
0.1015382707,
-0.1602927595,
-0.4608366489,
-0.1265006661,
-0.0646243021,
-0.0824344829,
-0.2703126967,
0.1493468583,
0.1094131097,
-0.296492219,
0.0023715198,
-0.2398492992,
-0.2355901301,
0.2956103384,
0.1571993977,
0.244266212,
0.1096605211,
0.2460030764,
0.1996619403,
0.1105182022,
0.3350632191,
0.794323504,
-0.2134050429,
-0.8323939443,
0.2502855361,
-0.4999432266,
0.3353819549,
-0.0302727818,
-0.3484944403,
-0.0081955567,
-0.2992191911,
-0.1562389284,
-0.1514060497,
-0.0122490562,
0.0357026458,
0.0479065627,
-0.0827963799,
-0.4753685594,
0.5408312678,
-0.1637014598,
-0.1382283419,
0.0493596457,
-0.0089819208,
-0.3495829403,
0.494477123,
-0.0811154842,
0.6880192757,
-0.1763130277,
-0.1290590912,
0.0714659095,
-0.2028655708,
0.3421261311,
-0.2539449334,
-0.0582683496,
-0.4942837358,
-0.2201169729,
-0.1425331235,
-0.0417388752,
0.1611693054,
0.5277662277,
-0.206064105,
0.312590003,
-0.0184135213,
0.5204399228,
0.1101224124,
0.1757699251,
0.3855980039,
-0.1565244645,
-0.1727924794,
0.0980242789,
-0.1834185719,
-0.1085249037,
0.0740490928,
-0.0011513829,
-0.2079235017,
-0.0559912883,
-0.3236175179,
0.299410522,
-0.0577519909,
-0.0715496093,
0.1164635122,
-0.5181859732,
0.6153253317,
0.4792630076,
0.1595361531,
-0.005980534,
-0.1863247901,
0.0537882969,
-0.0308514759,
0.0172792263,
-0.1223405302,
-0.0043037459,
-0.0322224945,
0.2211479694,
-0.2293284833,
0.2947227955,
-0.0806329548,
-0.1131349206,
0.3033475876,
0.2252768725,
0.2555880845,
-0.461458832,
-0.3070755601,
-0.2253309488,
0.1091269702,
-0.124164626,
0.0422346927,
-0.0958331749,
0.0711219311,
0.0882016718,
0.1338149905,
-0.3890284896,
0.1239155456,
0.2190840244,
-0.1784568429,
0.0967705995,
0.4302881658,
0.4298397601,
-0.1339467466,
-0.1351146996,
0.1060406417,
0.0850799531,
-0.4980714023,
0.1417179704,
0.0060167722,
0.2284619361,
0.143724218,
0.2385244519,
0.1999008358,
-0.2316475809,
0.1122665405,
-0.563554287,
-0.0219047405,
-0.1168759018,
-0.1212232113,
0.1035310328,
-0.0057641193,
-0.3888212144,
-0.1755324602,
-0.0525573939,
-0.1856177151,
0.0855126232,
0.0474720821,
0.1009460092,
0.208098799,
0.3193137944,
-0.2697921395,
-0.3296966255,
-0.011308156,
0.0608376898,
0.0761806592,
-0.1239527017,
-0.2231423557,
0.1914042383,
0.0444766358,
0.1103503183,
-0.3429810703,
-0.2133453935,
-0.2508713901,
-0.2187034339,
0.1368356049,
0.3249598444,
-0.0459596775,
0.4594796896,
0.0526612401,
-0.1193295866,
-0.5032324791,
0.3188260198,
-0.2290263772,
0.3656278849,
0.0728344917,
0.2288547456,
0.1421505362,
0.1032782272,
-0.1216419339,
0.0269143432,
-0.0953237489,
-0.0933777317,
0.3047416508,
-0.3803229332,
0.1549532413,
0.259580642,
0.3093918562,
0.3506708443,
-0.1301963627,
-0.2125750333,
0.0924836695,
0.0970571339,
-0.3641674519,
0.1188809276,
0.0667254999,
0.3423584104,
-0.0695175752,
0.341738373,
0.0332783759,
-0.2004046887,
0.1132654697,
0.1477336884,
0.6941478252,
0.1396490932,
0.1238416433,
0.1839383543,
-0.0157241896,
0.1573637128,
0.2216381729,
-0.0053681936,
0.0212604441,
0.458630234,
-0.1159988567,
0.0383616015,
0.4242615402,
0.29858464,
-0.1576149166,
-0.5123636723,
0.292393744,
0.3320298791,
-0.1976995766,
-0.1058691144,
0.212436378,
0.5360165238,
0.0346327573,
0.041869197,
-0.3084715009,
-0.1861307621,
0.0684136897,
-0.0889787674,
-0.1709143519,
-0.1957309544,
-0.3741852045,
0.2757281661,
-0.2003024518,
-0.0128352027,
0.4741040468,
0.1880673915,
-0.0518335924,
-0.5019617081,
0.1363550425,
0.2327771634,
0.0486845411,
-0.313775897,
0.1842667162,
-0.050123658,
0.010445755,
0.4037232995,
-0.0495145917,
0.3289111555,
0.4287269115,
0.0547248647,
-0.4291599393,
-0.1533862948,
-0.084682554,
-0.0640426949,
0.4988794923,
-0.086221382,
0.1686628461,
0.253136456,
0.0904215574,
0.0121702813,
0.3275722563,
0.1407342851,
0.138268292,
-0.4157438278,
-0.101382792,
0.0889672711,
-0.0586133115,
-0.0926440731,
-0.1818145514,
-0.0369555503,
-0.1980537474,
0.4690283835,
0.0686458871,
0.2260657996,
0.1646196842,
0.0022850856,
-0.1956311315,
0.2916515172,
0.3827776313,
0.0330598503,
-0.5024465919,
-0.04788284,
-0.7514445782,
0.0344692767,
-0.1055860817,
-0.1439944506,
0.0284265801,
0.1896350682,
0.2427166402,
0.3166953623,
-0.0670660883,
0.1263182163,
-0.0666285083,
0.3325906694,
-0.2332704663,
-0.2137625366,
-0.0828300118,
0.0497704968,
-0.1109111309,
-0.4989262223,
0.1240902916,
0.2586055994,
-0.1643968225,
-0.1973009408,
-0.0831736028,
0.0880959481,
-0.3322632313,
0.4126714766,
-0.0374363512,
0.4819595814,
-0.0488998368,
0.2920429707,
-0.3914601505,
-0.2983885407,
-0.1549179554,
0.2218877077,
-0.0646120906,
0.4354825616,
-0.3110986948,
0.0208779797,
-0.2157057077,
-0.1098567098,
0.0801401138,
0.2470864654,
-0.4290536642,
0.2016558349,
-0.1904408932,
0.2222689837,
-0.1485283077,
-0.1051932871,
-0.1315123737,
0.2425088882,
-0.0621555895,
-0.2259267122,
0.2711744905,
-0.2285080254,
-0.2634801865,
0.0477856472,
0.2037994117,
0.1680161357,
0.084474057,
-0.507641077,
0.0372541398,
0.4007309377,
-0.1354270577,
-0.0688275546,
0.1657313555,
0.0443451516,
0.1395902336,
-0.1589805186,
0.1779273748,
0.2822127044,
-0.1992393732,
-0.208935082,
-0.3870799243
] |
https://github.com/huggingface/datasets/issues/743 | load_dataset for CSV files not working | Hi, seems I also can't read csv file. I was trying with a dummy csv with only three rows.
```
text,label
I hate google,negative
I love Microsoft,positive
I don't like you,negative
```
I was using the HuggingFace image in Paperspace Gradient (datasets==1.1.3). The following code doesn't work:
```
from datasets import load_dataset
dataset = load_dataset('csv', script_version="master", data_files=['test_data.csv'], delimiter=",")
```
It outputs the following:
```
Using custom data configuration default
Downloading and preparing dataset csv/default-3b6254ff4dd403e5 (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/csv/default-3b6254ff4dd403e5/0.0.0/2960f95a26e85d40ca41a230ac88787f715ee3003edaacb8b1f0891e9f04dda2...
Dataset csv downloaded and prepared to /root/.cache/huggingface/datasets/csv/default-3b6254ff4dd403e5/0.0.0/2960f95a26e85d40ca41a230ac88787f715ee3003edaacb8b1f0891e9f04dda2. Subsequent calls will reuse this data.
```
But `len(dataset)` gives `1` and I can't access rows with indexing `dataset[0]` (it gives `KeyError: 0`).
However, loading from pandas dataframe is working.
```
from datasets import Dataset
import pandas as pd
df = pd.read_csv('test_data.csv')
dataset = Dataset.from_pandas(df)
```
| Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets.
`
from datasets import load_dataset
`
`
dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master")
`
Displayed error:
`
...
ArrowInvalid: CSV parse error: Expected 2 columns, got 1
`
I should mention that when I've tried to read data from `https://github.com/lhoestq/transformers/tree/custom-dataset-in-rag-retriever/examples/rag/test_data/my_knowledge_dataset.csv` it worked without a problem. I've read that there might be some problems with /r character, so I've removed them from the custom dataset, but the problem still remains.
I've added a colab reproducing the bug, but unfortunately I cannot provide the dataset.
https://colab.research.google.com/drive/1Qzu7sC-frZVeniiWOwzoCe_UHZsrlxu8?usp=sharing
Are there any work around for it ?
Thank you | 141 | load_dataset for CSV files not working
Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets.
`
from datasets import load_dataset
`
`
dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master")
`
Displayed error:
`
...
ArrowInvalid: CSV parse error: Expected 2 columns, got 1
`
I should mention that when I've tried to read data from `https://github.com/lhoestq/transformers/tree/custom-dataset-in-rag-retriever/examples/rag/test_data/my_knowledge_dataset.csv` it worked without a problem. I've read that there might be some problems with /r character, so I've removed them from the custom dataset, but the problem still remains.
I've added a colab reproducing the bug, but unfortunately I cannot provide the dataset.
https://colab.research.google.com/drive/1Qzu7sC-frZVeniiWOwzoCe_UHZsrlxu8?usp=sharing
Are there any work around for it ?
Thank you
Hi, seems I also can't read csv file. I was trying with a dummy csv with only three rows.
```
text,label
I hate google,negative
I love Microsoft,positive
I don't like you,negative
```
I was using the HuggingFace image in Paperspace Gradient (datasets==1.1.3). The following code doesn't work:
```
from datasets import load_dataset
dataset = load_dataset('csv', script_version="master", data_files=['test_data.csv'], delimiter=",")
```
It outputs the following:
```
Using custom data configuration default
Downloading and preparing dataset csv/default-3b6254ff4dd403e5 (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/csv/default-3b6254ff4dd403e5/0.0.0/2960f95a26e85d40ca41a230ac88787f715ee3003edaacb8b1f0891e9f04dda2...
Dataset csv downloaded and prepared to /root/.cache/huggingface/datasets/csv/default-3b6254ff4dd403e5/0.0.0/2960f95a26e85d40ca41a230ac88787f715ee3003edaacb8b1f0891e9f04dda2. Subsequent calls will reuse this data.
```
But `len(dataset)` gives `1` and I can't access rows with indexing `dataset[0]` (it gives `KeyError: 0`).
However, loading from pandas dataframe is working.
```
from datasets import Dataset
import pandas as pd
df = pd.read_csv('test_data.csv')
dataset = Dataset.from_pandas(df)
```
| [
-0.0118626505,
0.080878675,
-0.0193709694,
0.462446481,
0.289131701,
0.169101581,
0.3954831064,
0.2487928271,
0.2549251318,
0.1220235378,
-0.1881922185,
0.2273678333,
-0.1354266256,
-0.0153036788,
-0.2497222722,
-0.0935220048,
0.0260973424,
0.0599040464,
-0.3732228577,
-0.0090305433,
-0.3582966328,
0.3465507925,
-0.3180829883,
-0.0767828673,
-0.1004317701,
0.1366494745,
-0.0739045069,
0.3516085446,
-0.2565933764,
-0.2810689509,
0.460285902,
0.0276722945,
0.5446308851,
0.3226154745,
-0.0001188028,
0.1157892644,
0.2574642897,
-0.125779748,
-0.171652481,
-0.6218037605,
0.0017179921,
-0.4847864509,
0.2545425296,
-0.1264298856,
-0.1261841059,
0.044187136,
-0.0974869803,
-0.3808391094,
0.497513473,
0.546857059,
0.1608203799,
-0.2178959548,
-0.0026594102,
0.0565561429,
0.6734213233,
0.0477145053,
-0.1692206711,
0.2707894444,
0.0260529891,
-0.0865281671,
-0.0880401731,
0.1368655264,
-0.0883380696,
0.2905080318,
0.2541856766,
0.2660014033,
-0.160485059,
-0.2315121293,
0.0664868653,
0.1838554591,
0.6319205165,
-0.0759830326,
-0.1848378927,
-0.0473115966,
0.0015069917,
-0.2142893076,
0.3849787116,
0.3218183219,
-0.0536064357,
0.334876895,
-0.1593369991,
0.0491265543,
-0.4021937251,
0.1563875973,
0.0565393716,
0.0167314336,
-0.2711093724,
0.2473973036,
0.1620324701,
0.0409819819,
0.3063592911,
0.0125094429,
-0.0958892554,
0.2550705969,
-0.6877471209,
0.3242422342,
-0.1610055119,
-0.0471011996,
-0.0373417996,
0.1841591448,
0.3348792493,
0.0186047703,
-0.1009398997,
0.3323723078,
0.1696486771,
0.0724509209,
-0.0694891661,
0.3101440668,
0.3111258149,
-0.1418602467,
0.0889900774,
-0.1957607567,
-0.3813561499,
-0.5510748029,
-0.1370719671,
0.1535208076,
0.2152672112,
-0.191373229,
-0.1348077357,
0.0824966878,
-0.2958438396,
0.0412004404,
-0.1037046164,
0.258490473,
0.1181266829,
0.1929667592,
0.1120181978,
0.2178283334,
-0.0669631734,
-0.3518298864,
-0.0048815217,
0.1507577598,
-0.4125788212,
-0.0420593135,
0.4580543935,
-0.1998312175,
0.1430305839,
0.1652850807,
-0.031720873,
-0.3051396906,
-0.0275037847,
-0.3450379372,
0.104265146,
0.311455965,
0.0919666737,
0.1780768633,
0.259801358,
-0.2742812634,
-0.0650032535,
0.2549705803,
-0.4401560128,
-0.1146176085,
-0.0722139478,
0.071228072,
-0.2610421777,
0.1687273532,
-0.5450226665,
0.1131039485,
-0.017152492,
-0.1490580887,
-0.194160834,
-0.3184813559,
-0.2939890623,
-0.2533073425,
0.0877590552,
0.4105601609,
-0.7388893366,
0.1863692999,
-0.0079966113,
0.0084587131,
0.1423375756,
0.2571278214,
-0.2166781574,
-0.0076668411,
-0.2400079817,
0.0525186509,
0.1994746774,
-0.2259491384,
-0.4637650549,
0.1456195712,
0.0125089735,
-0.0459891967,
0.1068221331,
0.0247448348,
0.4188022017,
0.0953658223,
-0.232472226,
0.2021095455,
0.0218007583,
0.0537075773,
-0.270942688,
-0.2555733919,
0.2727693021,
0.231298998,
0.0567310117,
0.0727247149,
0.2554844022,
-0.5654001832,
0.3175985813,
-0.0955060944,
0.2537541687,
0.1037898809,
0.3058298528,
0.0119232377,
0.2585232556,
0.0209243298,
-0.5154769421,
0.178105846,
0.3431998491,
-0.1195498407,
-0.1280687749,
-0.0305283032,
-0.4309688509,
-0.1388527751,
-0.2483625114,
-0.1230338067,
0.0097857006,
0.0791332647,
0.0067211613,
-0.1764998734,
-0.1114902124,
0.4863345623,
-0.3433071375,
0.1073695496,
-0.3811258376,
0.2562278509,
0.1100256145,
-0.0257719681,
0.2472403198,
-0.0620500222,
0.2698598802,
-0.1324792951,
-0.1780459732,
0.2074370384,
0.3486878574,
-0.0601237118,
0.0584411845,
-0.14654921,
0.0486196801,
-0.2787680924,
-0.0639290288,
0.1557742655,
0.3600312471,
-0.0460511893,
-0.5185006857,
0.314453572,
-0.3182802796,
0.1841369867,
-0.1650367975,
0.1002311185,
0.261605382,
0.0110424384,
-0.1340304315,
0.0064998418,
0.0546115339,
0.1028836221,
0.3047711253,
0.0061564725,
-0.0917265639,
-0.1693304032,
0.0866766945,
0.16972363,
-0.252116859,
0.2094921023,
-0.0789050236,
-0.0527837053,
0.3029036224,
0.3003002405,
0.3695091009,
0.0668444112,
-0.2557016909,
0.0274061169,
0.098714903,
-0.2053615749,
0.0438872576,
0.0450872183,
0.1305781752,
0.16710639,
0.2208327353,
0.1397262067,
-0.1462562084,
-0.1437521726,
0.1935925484,
0.2692379653,
-0.5836182833,
0.0046388656,
-0.2520117462,
0.2815490961,
-0.1776292175,
0.0017931238,
0.1016965508,
-0.2104957849,
-0.3504090011,
0.291383028,
-0.0326992646,
0.0169307217,
-0.0212115645,
0.3473857343,
0.1048922464,
-0.0763041154,
-0.0240842253,
-0.1735054255,
-0.235121429,
0.0199392512,
0.0443576276,
0.0041389316,
-0.0721163526,
0.0316163301,
0.0195570737,
-0.248641327,
-0.1216646358,
0.1549580991,
-0.0072377054,
0.1807902604,
0.0941223651,
-0.0761063099,
-0.1042503044,
-0.0307543445,
0.1715762615,
0.1048676148,
-0.0070716254,
0.2781068981,
0.203578949,
-0.1809631586,
-0.0832264498,
-0.5839008093,
-0.3633821011,
-0.2267882824,
0.0676116943,
-0.1146416366,
-0.0052906182,
0.0991692245,
0.2561674714,
0.0274770483,
0.2174456269,
-0.0561036021,
-0.1361311972,
-0.3465023637,
0.5890862346,
-0.2951641381,
-0.3459738195,
0.2518581748,
-0.0580749065,
0.0655629635,
0.4544087052,
-0.4482573569,
0.1498954892,
-0.0319361426,
0.0750384033,
0.0224172901,
0.0262210388,
0.0370180011,
-0.0896325856,
0.141166389,
-0.0410200581,
-0.1947060525,
0.1235550195,
-0.0017068535,
0.1028963029,
0.2487309873,
0.4418198764,
-0.1863636523,
0.7564934492,
0.1680108607,
0.0771734267,
0.3038150072,
-0.1413714439,
0.3919919133,
0.1962675452,
-0.2521837056,
0.1308352351,
-0.0893942416,
-0.2790392339,
0.2910515666,
-0.0030919425,
-0.1245510429,
-0.143215552,
0.1890483648,
-0.3418021202,
-0.1645836234,
0.120982632,
0.0723366216,
0.0835641325,
0.0051702335,
0.1673492938,
0.1078056544,
-0.2757095098,
-0.1325343847,
0.2759647667,
0.1677873433,
-0.0350735784,
0.166451931,
-0.1171139628,
-0.3932086527,
0.2338523269,
-0.0699125007,
0.3405807614,
0.1547212899,
0.0269659758,
0.0491141081,
0.1286091805,
0.7292761207,
-0.2867432833,
-0.0499208793,
0.1683303714,
-0.114846155,
-0.1853395104,
-0.2699629664,
-0.1347570866,
0.1397523582,
0.0422799364,
0.2738824487,
0.0090457648,
0.0384508781,
0.3809134066,
0.0371804908,
-0.1505875289,
-0.3422773778,
-0.124725759,
-0.1089222655,
-0.1365212202,
-0.2156278193,
0.1030825824,
0.1527039856,
-0.263178736,
0.033828631,
-0.2128648758,
-0.1947256923,
0.2898361385,
0.2248448431,
0.2315250784,
0.1369865835,
0.1335769594,
0.3725125492,
0.1532455683,
0.2307438701,
0.7831408381,
-0.2503819466,
-0.8798398972,
0.2520809174,
-0.5395920277,
0.2746089995,
0.0672600716,
-0.3926184773,
-0.0692606047,
-0.1908977032,
-0.1358879209,
-0.1330514252,
0.0394620597,
0.0727601722,
0.0298985168,
-0.1287190914,
-0.5149633884,
0.5257357359,
-0.0998035446,
-0.1812290847,
0.0202284306,
0.0141947139,
-0.3694263399,
0.4248117507,
-0.0550525635,
0.7185189724,
-0.1543844342,
-0.0664683282,
0.1947965324,
-0.1581220776,
0.420070678,
-0.2776706219,
0.0082035735,
-0.3842917383,
-0.174502492,
-0.1966460943,
0.0137681514,
0.1733607501,
0.5210570097,
-0.1451994777,
0.3163957298,
0.0016987324,
0.3645545542,
0.0264601819,
0.0155005604,
0.3741768003,
-0.1792829931,
-0.1920853257,
0.1107748747,
-0.1384778619,
0.0154476352,
0.0968774557,
0.057058163,
-0.303252548,
-0.050569348,
-0.4131683111,
0.2384797931,
-0.1725187302,
0.0442088321,
0.1149679571,
-0.5480037928,
0.542727828,
0.4506193399,
0.2410171032,
-0.0006869691,
-0.2381752282,
0.0594836213,
0.0089386441,
-0.0455416404,
-0.1769884527,
-0.0232017264,
-0.0791267082,
0.1729516387,
-0.242980361,
0.3244456351,
-0.0582637265,
-0.083741948,
0.2200132012,
0.2635115683,
0.2422812581,
-0.4329593778,
-0.2782196403,
-0.2240790427,
0.0929482728,
-0.1038481295,
0.0444982313,
-0.0798014849,
0.0879828557,
-0.0037030075,
0.1256100535,
-0.3943377733,
0.1475496292,
0.2292741984,
-0.2091278732,
0.0742135346,
0.3961911798,
0.4418806434,
-0.1595522165,
-0.1338271797,
0.0772402585,
0.1888353527,
-0.4828432202,
0.1160874814,
0.1249997616,
0.2439945042,
0.1087794751,
0.2083624601,
0.2134239674,
-0.2776622772,
0.1464928687,
-0.6198524237,
-0.025482934,
-0.1095705479,
-0.1404004395,
0.0756145567,
0.0497041494,
-0.4496729374,
-0.1291386038,
-0.0117753213,
-0.188574791,
0.1399782002,
0.0407808423,
0.0180431865,
0.2311219126,
0.2857999206,
-0.2057442665,
-0.322465688,
-0.0362219959,
0.1214752868,
0.0656228811,
-0.1071387678,
-0.2727228403,
0.1728660911,
-0.0013993848,
0.0539030656,
-0.2284446359,
-0.1858392954,
-0.2576564848,
-0.1746505201,
0.2525278628,
0.2778943479,
0.0411926694,
0.4188426733,
-0.0836177468,
-0.0894366354,
-0.481877476,
0.2702870965,
-0.1971141249,
0.2839873433,
0.1542862058,
0.2316159606,
0.1593153477,
0.1004862338,
-0.1338307112,
-0.0245892927,
-0.0708419532,
-0.1876984835,
0.3153248131,
-0.3347913921,
0.2185909003,
0.1790134311,
0.3079963326,
0.3168781102,
-0.1215095073,
-0.1023303568,
0.1719913632,
0.0902403221,
-0.3366945982,
0.1967002749,
0.0594761893,
0.3061062992,
-0.022068806,
0.3245762587,
-0.0537062064,
-0.0796431825,
0.0239632186,
0.1151187569,
0.7046640515,
-0.0164933633,
0.052481126,
0.0548256151,
-0.0494295955,
0.1115373671,
0.2270130217,
0.0380735435,
0.0507203117,
0.5308748484,
-0.1390236914,
-0.0151982382,
0.2474917024,
0.3807491362,
-0.16278404,
-0.6306781769,
0.238583684,
0.3995524049,
-0.3072299361,
0.0190617498,
0.1212398484,
0.6014148593,
0.0349662974,
0.1163828969,
-0.2986668944,
-0.0107400697,
0.1315866858,
-0.1031576768,
-0.264788568,
-0.215059936,
-0.4387290478,
0.2846031785,
-0.2169102132,
-0.084345147,
0.3529365659,
0.1971828341,
-0.0669349059,
-0.560303092,
0.1278910935,
0.2119736671,
0.110398978,
-0.3089471757,
0.1559381485,
-0.0493140221,
0.0194813162,
0.2848852873,
-0.0313391089,
0.3540910482,
0.4284120202,
0.069251135,
-0.3456063271,
-0.172215119,
-0.1174993366,
-0.1075449288,
0.4433698952,
0.0557380393,
0.2020919323,
0.2329975516,
0.093086794,
-0.0080326945,
0.3259978294,
0.0701491833,
0.2354776561,
-0.3867925704,
-0.1437146515,
-0.0548557937,
0.0474510789,
-0.1470627785,
-0.2836555243,
-0.1698656082,
-0.0785293281,
0.4186341166,
0.129050523,
0.289282918,
0.1643120944,
0.0040267482,
-0.1119126156,
0.2636409998,
0.4633711278,
0.1063429266,
-0.4908935428,
-0.0468469635,
-0.76128304,
-0.0230254829,
-0.2092337459,
-0.146359086,
-0.0102708023,
0.2479962707,
0.2465246916,
0.3274960518,
-0.081350863,
0.1213953793,
-0.0378899463,
0.2988809943,
-0.2078570873,
-0.1493208557,
-0.0753908306,
0.0610630065,
-0.0357330218,
-0.4650056958,
0.0714382529,
0.3284136355,
-0.1604240537,
-0.1580474973,
0.009050034,
0.0185575634,
-0.278730303,
0.3543343544,
0.0200482067,
0.3844939768,
-0.0162354708,
0.2808372378,
-0.4696332514,
-0.216964677,
-0.1940388978,
0.2134035528,
-0.0509442464,
0.4670444429,
-0.3124223948,
-0.1008949205,
-0.2378866673,
0.0001284778,
0.0880231857,
0.1379541457,
-0.3464073241,
0.2650654912,
-0.1035996526,
0.2020706087,
-0.1530990899,
-0.1017107219,
-0.2005607486,
0.1393137872,
-0.0791473016,
-0.2614234984,
0.2789075971,
-0.3219946921,
-0.2220241427,
0.03537485,
0.1209695339,
0.1921239197,
0.1258194894,
-0.5225009918,
0.0423805714,
0.342471987,
-0.1380214989,
-0.1590204239,
0.1584719867,
0.109829843,
0.0463944823,
-0.2152623832,
0.1998658478,
0.3526133001,
-0.2159952372,
-0.2149201632,
-0.3720294237
] |
https://github.com/huggingface/datasets/issues/743 | load_dataset for CSV files not working | This is because load_dataset without `split=` returns a dictionary of split names (train/validation/test) to dataset.
You can do
```python
from datasets import load_dataset
dataset = load_dataset('csv', script_version="master", data_files=['test_data.csv'], delimiter=",")
print(dataset["train"][0])
```
Or if you want to directly get the train split:
```python
from datasets import load_dataset
dataset = load_dataset('csv', script_version="master", data_files=['test_data.csv'], delimiter=",", split="train")
print(dataset[0])
```
| Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets.
`
from datasets import load_dataset
`
`
dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master")
`
Displayed error:
`
...
ArrowInvalid: CSV parse error: Expected 2 columns, got 1
`
I should mention that when I've tried to read data from `https://github.com/lhoestq/transformers/tree/custom-dataset-in-rag-retriever/examples/rag/test_data/my_knowledge_dataset.csv` it worked without a problem. I've read that there might be some problems with /r character, so I've removed them from the custom dataset, but the problem still remains.
I've added a colab reproducing the bug, but unfortunately I cannot provide the dataset.
https://colab.research.google.com/drive/1Qzu7sC-frZVeniiWOwzoCe_UHZsrlxu8?usp=sharing
Are there any work around for it ?
Thank you | 55 | load_dataset for CSV files not working
Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets.
`
from datasets import load_dataset
`
`
dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master")
`
Displayed error:
`
...
ArrowInvalid: CSV parse error: Expected 2 columns, got 1
`
I should mention that when I've tried to read data from `https://github.com/lhoestq/transformers/tree/custom-dataset-in-rag-retriever/examples/rag/test_data/my_knowledge_dataset.csv` it worked without a problem. I've read that there might be some problems with /r character, so I've removed them from the custom dataset, but the problem still remains.
I've added a colab reproducing the bug, but unfortunately I cannot provide the dataset.
https://colab.research.google.com/drive/1Qzu7sC-frZVeniiWOwzoCe_UHZsrlxu8?usp=sharing
Are there any work around for it ?
Thank you
This is because load_dataset without `split=` returns a dictionary of split names (train/validation/test) to dataset.
You can do
```python
from datasets import load_dataset
dataset = load_dataset('csv', script_version="master", data_files=['test_data.csv'], delimiter=",")
print(dataset["train"][0])
```
Or if you want to directly get the train split:
```python
from datasets import load_dataset
dataset = load_dataset('csv', script_version="master", data_files=['test_data.csv'], delimiter=",", split="train")
print(dataset[0])
```
| [
-0.0920249075,
0.0564347357,
0.003914278,
0.3721606433,
0.2419903874,
0.2112513334,
0.5301382542,
0.3948994875,
0.2474184483,
0.068735227,
-0.1450402141,
0.2728796899,
-0.1780422628,
0.0853822157,
-0.2621555924,
-0.19454512,
0.0322139263,
0.0497309379,
-0.3552703857,
0.0039879009,
-0.3571985364,
0.3788065016,
-0.3598425388,
-0.0791002288,
-0.2235178053,
0.1674228311,
-0.1466450095,
0.3418912888,
-0.0646045506,
-0.3069743812,
0.4642285407,
-0.1027503908,
0.4105320573,
0.3379973471,
-0.0001209265,
0.0915981084,
0.2450607568,
-0.1091811806,
-0.2504520416,
-0.6010629535,
-0.0259371549,
-0.3921331167,
0.3510510325,
-0.1411183625,
-0.1290301979,
0.0570390411,
-0.1692734212,
-0.352850467,
0.467494607,
0.5159783959,
0.1531330496,
-0.2059016228,
-0.1971256733,
-0.0124465935,
0.5450270176,
0.1082908213,
-0.1457667053,
0.2881377339,
-0.0139438212,
-0.2046414912,
-0.1118156314,
0.0637492388,
0.0106425211,
0.2190207392,
0.1316029578,
0.2965677977,
-0.2615711093,
-0.2017146051,
0.0166662578,
0.1949611455,
0.5705485344,
-0.0731797963,
-0.1748568267,
-0.1613170505,
-0.0599867217,
-0.2130064517,
0.3124710917,
0.3574934602,
-0.0169694163,
0.3381770849,
-0.1206576526,
0.0709902495,
-0.2584077716,
0.0994617343,
-0.0562133975,
0.0654793829,
-0.1489537954,
0.2812532485,
0.201770246,
0.1015311778,
0.2514774501,
-0.057995405,
-0.0673243552,
0.1580310464,
-0.6834620833,
0.2036807984,
-0.2168767154,
-0.1526711285,
-0.0542633906,
0.2458862364,
0.1760433912,
-0.0476835594,
-0.0708101466,
0.325422436,
0.3645860255,
0.0074674413,
-0.0258981176,
0.4044128656,
0.2407532334,
-0.1334236562,
-0.0388786606,
-0.1857775599,
-0.2934212983,
-0.5016217232,
-0.0863027349,
0.2012827992,
0.1611034274,
-0.1534703672,
-0.2344415784,
0.049466528,
-0.3282535672,
-0.0160039142,
-0.1057876945,
0.3072037697,
0.0792055428,
0.3233470917,
0.0002641976,
0.2762193978,
-0.1499175429,
-0.3500111103,
-0.0380695574,
0.1538398415,
-0.429422617,
-0.0667096302,
0.437500149,
-0.1740854681,
0.1433622241,
0.1928386837,
-0.056643717,
-0.3830623925,
-0.072966136,
-0.3045076132,
0.127741769,
0.2792576253,
0.1017229557,
0.171628505,
0.2939250469,
-0.1996122003,
-0.0871597677,
0.2777002156,
-0.4890451729,
-0.2541226149,
-0.0913459286,
0.1075183675,
-0.2549365163,
0.1419743896,
-0.3131116629,
0.0468017198,
0.0950294584,
-0.1052412987,
-0.1675723195,
-0.3225542605,
-0.3190794289,
-0.2440021187,
0.0466858298,
0.3962137401,
-0.7064715624,
0.1609787941,
-0.0436268151,
0.0166499764,
0.1765229404,
0.2286920547,
-0.2605004013,
0.0781639293,
-0.293895036,
0.1257950366,
0.2624046803,
-0.2164785564,
-0.3129369617,
0.2795173526,
-0.0455348864,
-0.019516103,
0.1386789978,
0.0048778094,
0.4192976058,
0.032775674,
-0.1222807765,
0.2695269287,
-0.0665016472,
0.0513628051,
-0.2043424845,
-0.2208315134,
0.230395779,
0.2533372641,
0.0901731849,
0.0646319613,
0.2520322502,
-0.4523489475,
0.4311437309,
-0.0185213629,
0.2009961754,
0.0600050651,
0.2045496106,
0.0673960298,
0.2995599806,
-0.0448753573,
-0.5501884222,
0.1751103997,
0.4230571985,
-0.1836443692,
-0.1712393761,
-0.0816111639,
-0.4569070935,
-0.0527783781,
-0.2632133961,
-0.0353596136,
-0.0295917355,
-0.0453092568,
-0.0110512599,
-0.1825748086,
-0.1791173369,
0.4217711389,
-0.261187017,
0.1721967906,
-0.3425505161,
0.3586449921,
0.1426158249,
-0.0517234467,
0.1552657187,
0.0561742857,
0.2390623242,
-0.1527739018,
-0.1483725458,
0.3356366158,
0.4766584337,
-0.0618810281,
-0.0393585525,
-0.2567854524,
0.1200386137,
-0.2125394046,
-0.0765184388,
0.2014893591,
0.2660813928,
-0.0892453939,
-0.4791173935,
0.3983053565,
-0.3870802522,
0.3109742701,
-0.1254491806,
0.1998693347,
0.2418133765,
-0.1007644311,
-0.1040572077,
-0.074782528,
0.0224808194,
-0.0448640063,
0.2591087818,
0.0762874484,
-0.1619550288,
-0.1972351521,
0.3197237551,
0.115180552,
-0.2512789369,
0.1153132915,
-0.0970704928,
-0.0526017919,
0.255326122,
0.3889956176,
0.4357034564,
0.0831029862,
-0.2003981769,
0.0272413511,
0.1205652729,
-0.2420068979,
0.1677270383,
0.0737351999,
0.0803625882,
0.2283992022,
0.137179628,
0.0185581781,
-0.1221630201,
-0.1420408636,
0.2180791795,
0.1531410813,
-0.5580412745,
0.0672473684,
-0.2492446005,
0.3542288542,
-0.3054797053,
-0.0880937502,
0.1177534461,
-0.3376852572,
-0.2673152089,
0.2258101553,
-0.1555701196,
0.0849408209,
-0.1968519986,
0.1688939184,
0.0460415259,
-0.2257521451,
0.1277489215,
-0.2152121514,
-0.2622302175,
0.0265396386,
0.0546970703,
0.0048144013,
-0.0604919717,
0.0089467093,
-0.0171863213,
-0.1233489662,
-0.0182158276,
0.1867988408,
-0.0702734813,
-0.0006801952,
0.1853314638,
-0.1570404768,
-0.029387407,
-0.2066918612,
0.1623376012,
0.0773239955,
0.0567244142,
0.3653014302,
0.2931173444,
-0.0645013303,
-0.1795725226,
-0.7377927899,
-0.2892293036,
-0.2201966047,
0.0692028254,
-0.1671288311,
-0.0350536928,
0.0936676115,
0.2560248077,
-0.0321818739,
0.2291262746,
-0.1719626486,
-0.1385292113,
-0.1858994961,
0.5807958841,
-0.2469512224,
-0.2713828385,
0.2195545733,
-0.1315249503,
0.0070834775,
0.3676756024,
-0.4218454957,
0.2262400985,
-0.0697559342,
0.0749834329,
-0.05207913,
0.0243040752,
0.0830066279,
-0.0699177682,
0.0978282392,
-0.0387606286,
-0.1052256227,
0.2508599162,
-0.0496936403,
0.1034530401,
0.1427070051,
0.53266716,
-0.0993347615,
0.8147947192,
0.0513600186,
0.0593843535,
0.1929325163,
-0.1644671857,
0.2508681715,
0.1152945459,
-0.2596244812,
0.0838404894,
-0.1691664606,
-0.3220825195,
0.3516035974,
-0.0214852355,
-0.1524407268,
-0.0998279154,
0.2590569258,
-0.2020309716,
-0.2619890571,
0.1752260774,
-0.1171212494,
0.0298844483,
-0.0312767848,
0.2175436765,
0.1629428118,
-0.2070374787,
-0.02276548,
0.1213578209,
0.131320864,
-0.1712010205,
0.0724049434,
-0.1677563787,
-0.2650644481,
0.1700243503,
0.0065876432,
0.3186216056,
0.1230908409,
-0.1427006871,
0.0781692266,
0.2231675833,
0.8126676679,
-0.1891094297,
-0.0012187921,
0.1494548619,
-0.0751896203,
-0.1324189603,
-0.3159854114,
-0.1486233771,
0.2276509553,
0.088317126,
0.2510454655,
-0.0496395752,
-0.0103303678,
0.4505236745,
0.0838637203,
-0.207479015,
-0.3661190867,
-0.1562460512,
-0.0125670135,
-0.0931675583,
-0.130823493,
0.1905767322,
0.1685334593,
-0.3185507357,
-0.0054589435,
-0.1650791168,
-0.2574349046,
0.3499355018,
0.1709163785,
0.2823197842,
0.0279283039,
0.2067070752,
0.2287576795,
0.1520326436,
0.1940155178,
0.7980727553,
-0.2726476192,
-0.8757585883,
0.2597291768,
-0.5026086569,
0.4005544782,
0.0253321454,
-0.3638645709,
-0.1037126184,
-0.1918030679,
-0.052636601,
-0.1298297346,
0.0165169984,
0.0891317055,
-0.0678071976,
-0.2455701828,
-0.5857755542,
0.4648816586,
-0.0820494443,
-0.0724823996,
0.0997201949,
-0.0700683817,
-0.3810087442,
0.5269697905,
-0.130117774,
0.6978638768,
-0.0940523148,
-0.0197089538,
0.1578091383,
-0.2015551329,
0.3961663842,
-0.3102943897,
-0.0145099647,
-0.4537201524,
-0.1600111872,
-0.1839675605,
0.0067584738,
0.0700716898,
0.591473341,
-0.1710209996,
0.3970745206,
-0.1107245088,
0.4428047538,
0.0041379258,
0.1333019137,
0.2929831743,
-0.1906880587,
-0.1368487179,
0.0773176998,
-0.0579027683,
-0.0676556379,
0.1529643834,
-0.0103093348,
-0.2295546532,
-0.02981304,
-0.295981735,
0.3327461183,
-0.085101679,
0.0975559205,
0.0962045565,
-0.5183793306,
0.5273531675,
0.4406998754,
0.144120425,
-0.0339888074,
-0.1290065497,
0.1348176152,
0.0089681037,
0.0739117339,
-0.0905185342,
-0.0146647543,
0.073580429,
0.2807481885,
-0.1852082759,
0.2451519668,
-0.0977557451,
-0.0829651281,
0.3111159801,
0.3133256733,
0.2825339735,
-0.5860960484,
-0.2721993327,
-0.2085448056,
0.1540911794,
-0.1515067071,
0.046969153,
-0.1185482889,
0.0065013357,
0.0510134324,
0.0078974143,
-0.3608898818,
0.121984534,
0.1970486194,
-0.065767616,
0.1126362383,
0.4779486656,
0.4211017191,
-0.0839853585,
-0.1890108287,
0.101125136,
0.1984162927,
-0.6184691787,
0.173771143,
0.0567198247,
0.2487821877,
0.0968455523,
0.1344329119,
0.1138449013,
-0.1693219841,
0.0602243468,
-0.5078527927,
-0.0251086205,
-0.0420171954,
-0.1369598508,
0.0597428195,
0.0674267858,
-0.2848602831,
-0.1618445516,
-0.0702822879,
-0.1783938706,
0.140168786,
0.076066792,
0.0713700801,
0.1139593497,
0.2229567319,
-0.1100143194,
-0.2800537646,
0.0251354426,
0.0276513211,
0.1282837391,
-0.1222080141,
-0.2492932677,
0.172964409,
-0.0203158855,
0.1893836707,
-0.3006106615,
-0.1253088415,
-0.2562191784,
-0.1848994642,
0.2022194266,
0.278059274,
0.0276398789,
0.4822485149,
0.1122754216,
-0.0452578664,
-0.5738328099,
0.2749339342,
-0.2892038822,
0.2634685934,
0.1305767745,
0.2388588637,
0.1035436839,
0.0980132967,
-0.1666347682,
-0.0499366969,
-0.1110428125,
-0.1527336836,
0.2965566218,
-0.3348000348,
0.1624125689,
0.1323408484,
0.4000546932,
0.4437747002,
-0.1005394012,
-0.1168728843,
0.1531314254,
0.1246579587,
-0.2727163434,
0.2014935911,
0.1138084382,
0.2503403127,
-0.0640137643,
0.3176332116,
-0.0359444618,
-0.0939216465,
-0.0171211548,
0.1545409113,
0.6070331931,
0.0804749206,
0.2360871732,
0.4467528164,
0.0114641339,
0.1598700285,
0.2003496736,
-0.1476921588,
0.0838207752,
0.5120173693,
-0.164862752,
0.0128322598,
0.3407449722,
0.1974021494,
-0.0812963992,
-0.5081666708,
0.1211585552,
0.2955355048,
-0.3624170721,
-0.0714386329,
0.0745179653,
0.7061761022,
-0.0843042731,
0.0414127409,
-0.3371933401,
-0.0668343157,
0.0725576133,
-0.0509174839,
-0.187967971,
-0.1644283384,
-0.5028635263,
0.3112888336,
-0.1561871916,
-0.0690343231,
0.4760005474,
0.2167230844,
-0.0086944625,
-0.4337710738,
0.032050699,
0.1697368324,
0.1164808571,
-0.3514191508,
0.0458692014,
-0.069843322,
0.0414156094,
0.3675315082,
-0.2498469204,
0.3425771296,
0.352757901,
0.0092107169,
-0.3907550573,
-0.0755681545,
-0.0503062382,
-0.0214369185,
0.4297503829,
0.0017632395,
0.3196758926,
0.2829746604,
0.0923243538,
-0.0092785042,
0.2641895711,
0.1017783284,
0.155573383,
-0.4826743007,
0.0886414647,
0.0756780207,
-0.0795693919,
-0.1519210935,
-0.2095640749,
-0.1678603441,
-0.2077059746,
0.3991568685,
0.0987181067,
0.2374105453,
0.1570794433,
-0.0125419796,
-0.1016109064,
0.2418650985,
0.3471135497,
0.030185746,
-0.4722248614,
-0.0234129131,
-0.6675111651,
-0.1041141152,
-0.1713967472,
-0.1148781776,
-0.0195012055,
0.2386516035,
0.2016136944,
0.2796036303,
-0.093020916,
0.1285192817,
-0.0175933838,
0.3582011461,
-0.1670178026,
-0.1782082319,
-0.196328789,
0.0773878396,
-0.0550287925,
-0.4330325127,
0.0000822591,
0.2998560965,
-0.190821752,
-0.0665818825,
-0.1808104813,
0.1633934528,
-0.2126727849,
0.2939325273,
0.0215846952,
0.4189729691,
0.0379589275,
0.3084059358,
-0.3747853637,
-0.2793862522,
-0.2077228576,
0.2350737602,
-0.0631016567,
0.4386771023,
-0.3243895173,
0.0658726767,
-0.2079080194,
0.0394377448,
0.0888458118,
0.1680846959,
-0.3443846703,
0.1940707713,
-0.0793134347,
0.25227952,
0.0013852306,
0.0767941177,
-0.2081232667,
0.1591550559,
-0.0463749468,
-0.308629483,
0.2655181289,
-0.322737813,
-0.2894768417,
0.019845333,
0.1921175867,
0.242633,
0.1170971692,
-0.5216591358,
-0.0667872429,
0.3476246893,
-0.1688332111,
-0.1139027551,
0.1149123013,
0.1570241451,
0.0978991836,
-0.1428448558,
0.2017739713,
0.3349763751,
-0.336425662,
-0.067010276,
-0.384011209
] |
https://github.com/huggingface/datasets/issues/743 | load_dataset for CSV files not working | Good point
Design question for us, though: should `load_dataset` when no split is specified and only one split is present in the dataset (common use case with CSV/text/JSON datasets) return a `Dataset` instead of a `DatsetDict`? I feel like it's often what the user is expecting. I break a bit the paradigm of a unique return type but since this library is designed for widespread DS people more than CS people usage I would tend to think that UX should take precedence over CS reasons. What do you think? | Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets.
`
from datasets import load_dataset
`
`
dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master")
`
Displayed error:
`
...
ArrowInvalid: CSV parse error: Expected 2 columns, got 1
`
I should mention that when I've tried to read data from `https://github.com/lhoestq/transformers/tree/custom-dataset-in-rag-retriever/examples/rag/test_data/my_knowledge_dataset.csv` it worked without a problem. I've read that there might be some problems with /r character, so I've removed them from the custom dataset, but the problem still remains.
I've added a colab reproducing the bug, but unfortunately I cannot provide the dataset.
https://colab.research.google.com/drive/1Qzu7sC-frZVeniiWOwzoCe_UHZsrlxu8?usp=sharing
Are there any work around for it ?
Thank you | 89 | load_dataset for CSV files not working
Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets.
`
from datasets import load_dataset
`
`
dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master")
`
Displayed error:
`
...
ArrowInvalid: CSV parse error: Expected 2 columns, got 1
`
I should mention that when I've tried to read data from `https://github.com/lhoestq/transformers/tree/custom-dataset-in-rag-retriever/examples/rag/test_data/my_knowledge_dataset.csv` it worked without a problem. I've read that there might be some problems with /r character, so I've removed them from the custom dataset, but the problem still remains.
I've added a colab reproducing the bug, but unfortunately I cannot provide the dataset.
https://colab.research.google.com/drive/1Qzu7sC-frZVeniiWOwzoCe_UHZsrlxu8?usp=sharing
Are there any work around for it ?
Thank you
Good point
Design question for us, though: should `load_dataset` when no split is specified and only one split is present in the dataset (common use case with CSV/text/JSON datasets) return a `Dataset` instead of a `DatsetDict`? I feel like it's often what the user is expecting. I break a bit the paradigm of a unique return type but since this library is designed for widespread DS people more than CS people usage I would tend to think that UX should take precedence over CS reasons. What do you think? | [
-0.0537757948,
0.1033461392,
0.01900433,
0.3612279594,
0.1807832122,
-0.0042513981,
0.5432190299,
0.2224991769,
0.33720994,
-0.0036186352,
-0.0237613991,
0.3069190085,
-0.0317637585,
0.1189179122,
-0.2025139332,
-0.0749716461,
-0.0122149959,
0.1207055524,
-0.3683387041,
-0.0174308941,
-0.430916816,
0.2928493321,
-0.221396625,
-0.0585706346,
-0.1151770502,
0.1571622938,
0.0017049313,
0.3660930991,
-0.1084835455,
-0.2572766542,
0.628057003,
0.0230041891,
0.4292280078,
0.2245846093,
-0.0001190717,
0.0388118848,
0.3117853403,
-0.1329060197,
-0.2897412181,
-0.5877236128,
-0.0272590965,
-0.3956180513,
0.3377565145,
-0.1040744931,
-0.0616717413,
0.1727753431,
-0.1652782112,
-0.5165002942,
0.312330544,
0.3730695844,
0.1405086964,
-0.283452034,
-0.230997175,
0.0034145154,
0.590816915,
0.2067525387,
-0.1971363872,
0.2810765505,
0.1669812649,
-0.1015687659,
-0.1598026901,
0.0831553712,
-0.104323335,
0.1894386411,
0.2901815176,
0.2623087168,
-0.2809915841,
-0.1174899042,
-0.0169994906,
0.1899370551,
0.8341622353,
-0.0735756457,
-0.2151965201,
-0.2079992443,
-0.0091485567,
-0.1942543983,
0.2959367037,
0.224168539,
-0.025601659,
0.2741405368,
-0.0398946851,
0.0002722479,
-0.2295826823,
0.0643768758,
-0.1193101704,
0.0102745667,
-0.15696311,
0.3779332042,
0.0456258431,
0.1549313366,
0.3429839015,
-0.1116524637,
-0.1162599623,
0.0835306495,
-0.5670549273,
0.1575641781,
0.0551398285,
-0.1592393816,
0.0174481049,
0.3070760965,
0.3632951677,
0.066895619,
-0.1721045226,
0.2512287199,
0.4344940484,
0.0817990899,
0.0020748209,
0.2576610148,
0.3648808897,
-0.277629137,
0.0137832314,
-0.1647896618,
-0.1719339639,
-0.270770669,
-0.0575216264,
0.1610938013,
0.1682667285,
-0.16843234,
-0.2216251194,
0.0732905418,
-0.2644217312,
-0.0547592081,
-0.1519437879,
0.22218512,
0.152241528,
0.5024957657,
0.0156443641,
0.1761672497,
-0.0987721086,
-0.3069807887,
0.0024103634,
0.0743473917,
-0.4379192591,
-0.0022647232,
0.4775826335,
-0.1238088682,
0.0213834271,
0.1910145283,
-0.1467141211,
-0.2925012708,
-0.069104217,
-0.3121486008,
0.1865883768,
0.2201451659,
0.0137043595,
0.2126202583,
0.2046934068,
-0.2328413576,
-0.2364429533,
0.3585526645,
-0.5362180471,
-0.3046453893,
-0.0398348048,
0.0985867232,
-0.2729687691,
0.2291871607,
-0.3323956132,
0.1283832788,
0.0017085746,
-0.1008915231,
-0.0892249793,
-0.3063385785,
-0.2946173549,
-0.3322320282,
-0.0385904908,
0.5090972781,
-0.8320772648,
0.2264832556,
-0.0860440284,
0.121988982,
0.0956522524,
0.3444869518,
-0.3025430441,
0.0966420323,
-0.3494291008,
0.0400713086,
0.3277104795,
-0.2119708657,
-0.3828727603,
0.2315538377,
-0.105204232,
0.0784765929,
0.1641939133,
0.1649427265,
0.4444541931,
-0.0435292274,
-0.0862468481,
0.2531383932,
-0.124469921,
0.079505831,
-0.2437724173,
-0.2483045757,
0.2499009818,
0.1700797081,
0.1038124859,
0.0540580489,
0.1944541782,
-0.475243479,
0.3589853942,
-0.0931505859,
0.1257807314,
-0.133474946,
0.3010075986,
0.0260027908,
0.2912550271,
-0.0078926608,
-0.6777341962,
0.1792111993,
0.4068227708,
-0.1115450114,
-0.0382758416,
-0.1820581108,
-0.3484877646,
-0.015558552,
-0.1695304811,
0.0278334059,
-0.0358911306,
0.039156232,
-0.1085349768,
-0.1549393237,
-0.2077755332,
0.4025163054,
-0.2128468752,
0.0848497152,
-0.3851653934,
0.3566330671,
0.2739728689,
0.0097316876,
0.1406469345,
0.130515635,
0.2248569429,
-0.109773159,
-0.0581615493,
0.2158615142,
0.3570630848,
-0.0946859717,
-0.0116340332,
-0.1943476647,
0.09666159,
-0.120294705,
-0.0475931391,
0.2353380769,
0.3100093007,
-0.1653418839,
-0.5367754102,
0.4306182265,
-0.4352805018,
0.2406536341,
-0.1465640366,
0.0563363582,
0.1764357686,
-0.0112934932,
-0.1437526643,
-0.0274792537,
-0.1477054656,
0.033761628,
0.2478098571,
0.1867638826,
-0.1355108619,
-0.0533684678,
0.3618714213,
0.1317258477,
-0.184516266,
0.210760951,
0.0488574468,
-0.2375960052,
0.3247871697,
0.3543029428,
0.6315695047,
0.0951601267,
-0.1953668892,
-0.1066859812,
0.0825459063,
-0.264608115,
0.1412475109,
-0.009270519,
0.0298803784,
0.2075577378,
0.1890490651,
0.0394458473,
-0.1802785695,
-0.1906561255,
0.0667322278,
0.099924542,
-0.5104933381,
0.068282783,
-0.122908622,
0.2668246329,
-0.286372453,
-0.0286344886,
0.0715726316,
-0.3165177405,
-0.2467342019,
0.1903039068,
-0.1523371488,
0.0006297678,
-0.1428432465,
0.3498920798,
-0.0687936023,
-0.2591999471,
-0.0169772282,
-0.124557361,
-0.2715693712,
0.017517481,
0.0291547664,
0.048582077,
0.0630102307,
0.03378997,
0.0646718442,
-0.2758502066,
-0.1107280552,
0.2082015872,
0.0270936564,
0.0583991855,
0.3743036091,
-0.185559988,
0.0611079037,
-0.1489397883,
0.1078893691,
0.1560406089,
0.1085716113,
0.2716524601,
0.1851979196,
0.0015303008,
-0.2390158772,
-0.7112781405,
-0.1844306886,
-0.241086334,
0.1508254707,
-0.1209746003,
0.0023742337,
-0.016791461,
0.16087915,
-0.1565037072,
0.2552342117,
-0.0619462691,
-0.1892146021,
-0.233159095,
0.4649213254,
-0.1569714695,
-0.2644330859,
0.121783711,
-0.1825104654,
0.1514083296,
0.4018859863,
-0.4829930067,
0.1828477383,
0.0471071601,
0.132395193,
-0.0508762375,
0.1449416131,
0.0866823047,
0.0103517771,
0.1132812649,
-0.0133335143,
-0.1951066703,
0.2277117819,
-0.0892837346,
0.0242394321,
0.2536138892,
0.3969808519,
-0.1388944387,
0.705929935,
0.0036075935,
0.0155419782,
0.2021127939,
0.048598744,
0.4244733453,
0.0127242263,
-0.1967831701,
0.0963192731,
-0.1831028759,
-0.316144079,
0.3190329075,
0.0838500485,
-0.1625923961,
-0.153245151,
0.2083592713,
-0.1835203916,
-0.3161170185,
0.2805402577,
-0.1011901796,
-0.117179811,
-0.0002716258,
0.2491071671,
0.1046132743,
-0.1490241885,
-0.0405972637,
0.2144343853,
0.2860653996,
-0.1061943173,
0.050676316,
-0.2143293619,
-0.3120666742,
0.1515554339,
-0.05135151,
0.3003493249,
0.2327193618,
-0.1304374039,
-0.0041039772,
0.1650896668,
0.6726489067,
-0.202923283,
-0.0361732431,
0.1090757996,
-0.0360410362,
0.0532148778,
-0.1702295244,
-0.014645502,
0.2302332819,
-0.0576603748,
0.2179354131,
-0.1228796542,
0.0076648816,
0.3096748292,
0.0963699669,
-0.2221121788,
-0.4531788528,
-0.1049961746,
-0.0549614727,
-0.0579495467,
-0.1739381552,
0.0660611689,
0.0278711021,
-0.3355500102,
-0.122779727,
-0.2196183354,
-0.2645539045,
0.3511790335,
0.1359793246,
0.1844700277,
-0.0294930916,
0.1564250141,
0.1462992281,
0.1883157194,
0.2318917215,
0.7988593578,
-0.299908638,
-0.7502197027,
0.2594362199,
-0.4703608751,
0.3502208591,
0.1668518484,
-0.3451268971,
-0.0672017783,
-0.3084923923,
-0.1468198746,
-0.1964687705,
-0.1515557766,
0.0179826468,
-0.0695717186,
-0.302572608,
-0.6600199938,
0.5407513976,
-0.224738434,
-0.1652631164,
0.171954453,
0.084384039,
-0.4312983155,
0.4897029996,
0.0409177132,
0.8005490303,
-0.170428291,
0.0720020607,
0.108545959,
-0.2047682405,
0.6008741856,
-0.276424706,
-0.1295632422,
-0.5226107836,
-0.0656086877,
-0.2052309811,
-0.0517633893,
0.0951953977,
0.5655966997,
-0.175475657,
0.4081782103,
0.1344898492,
0.4029865861,
0.1213075221,
0.2673031688,
0.2354558557,
-0.2553953528,
-0.2133430243,
0.0296828598,
-0.1183633208,
-0.0844963565,
0.0401425771,
0.0512280725,
-0.17841205,
-0.1373186111,
-0.2695529461,
0.1262074113,
-0.0577277727,
0.0150864497,
0.049932614,
-0.6408009529,
0.5324745774,
0.3608641326,
0.0921529606,
-0.020202443,
-0.152684778,
0.0340651199,
0.0920539945,
0.216155082,
0.0190284699,
-0.0949907601,
0.0825949162,
0.2941957414,
-0.1607959121,
0.2153989822,
-0.1410719007,
-0.005087927,
0.1963793486,
0.3348128796,
0.3393915892,
-0.5301567912,
-0.2820549011,
-0.1227418482,
0.2097257227,
-0.092820935,
0.0123444963,
0.120050177,
0.2153829783,
0.0124088954,
-0.0287131108,
-0.3354752362,
0.0002587736,
0.0358211584,
-0.0057809092,
0.0289140716,
0.1569937468,
0.2840819657,
-0.168795228,
-0.1051963046,
0.1372449398,
0.1519788504,
-0.693436265,
0.1855424792,
0.1447973698,
0.0985500067,
0.0743141919,
0.2256250978,
0.1408834308,
-0.174794212,
0.0635983795,
-0.3946325183,
0.0747541264,
0.0736220479,
-0.0600177273,
0.0922555104,
0.0790181011,
-0.4209204316,
-0.1307508051,
-0.126894027,
-0.1906574667,
-0.0081954449,
0.1432708204,
0.0891458914,
0.017628964,
0.309776634,
-0.2794098556,
-0.2250023484,
0.0017575175,
0.0087606944,
0.0047902055,
-0.0894957334,
-0.1914916337,
0.2107372731,
0.022656437,
0.2284319699,
-0.1968973726,
-0.2100581676,
-0.1015772894,
-0.2319881916,
0.2390559912,
0.3404794335,
-0.0775873512,
0.3745770752,
0.0658342093,
-0.0109587107,
-0.6506858468,
0.4418030679,
-0.3084159493,
0.3093321025,
0.0754539296,
0.3467366695,
-0.000150986,
0.1098975167,
-0.0824045017,
0.0565918237,
-0.0377751291,
0.0474771671,
0.3123663366,
-0.2570683658,
0.2241756916,
0.1715895236,
0.3068362772,
0.36812675,
-0.1031857654,
-0.1775366068,
0.0890461951,
0.1088257954,
-0.2263746709,
0.2014871836,
-0.0887981951,
0.2183035761,
0.0073705763,
0.4874251485,
-0.0458952077,
-0.1511249244,
0.0754922032,
0.0471835062,
0.777494967,
0.0582122393,
0.1438113898,
0.3218047023,
-0.1171600223,
0.2135412097,
0.2073939145,
-0.0632120073,
0.0398134701,
0.5263139009,
-0.1259411573,
0.0107297208,
0.3773147166,
0.2663337886,
-0.0828823596,
-0.455340296,
0.2748797238,
0.3771360815,
-0.2825218141,
-0.0846109316,
0.2595618665,
0.5131549239,
-0.1591777802,
0.1302595288,
-0.1870143265,
-0.264405936,
0.0163354781,
-0.0597798862,
-0.1930787712,
-0.2350778282,
-0.3509504795,
0.2641785145,
-0.3510673046,
-0.0516301617,
0.3634463549,
0.1875219643,
0.0828232989,
-0.4788802862,
0.1263744384,
-0.0500870645,
0.0921468884,
-0.2881848216,
0.1098932326,
-0.013469927,
0.0782676339,
0.3593215942,
-0.2522949576,
0.2834376991,
0.4704679847,
0.1390373558,
-0.3918018043,
-0.1036387831,
-0.0271544941,
-0.2167520821,
0.4326719046,
-0.0285317861,
0.2285550833,
0.20734182,
0.1219137907,
0.0160047077,
0.336602062,
0.1267324686,
0.0241190977,
-0.5890341997,
0.0372149348,
0.0035395082,
-0.1234011278,
-0.025987342,
-0.0557221323,
0.0087386742,
-0.2356425226,
0.3753250837,
0.1757014394,
0.1725267917,
0.0632755011,
0.0151851885,
-0.0169151444,
0.095560208,
0.2717058063,
0.1832723916,
-0.449238658,
0.0707442313,
-0.7308098674,
0.0228076726,
-0.0885439813,
-0.0567182228,
-0.0234379228,
0.2650986314,
0.3051565886,
0.2791956067,
-0.1910189539,
0.2561026216,
0.003674984,
0.2863948941,
-0.0526522025,
-0.3129009008,
-0.2451197207,
-0.0457740501,
-0.1484943628,
-0.5657706857,
0.0250718258,
0.4132969975,
-0.1882378161,
-0.2094074041,
-0.0156297833,
0.3124327064,
-0.1002546102,
0.3512987494,
0.0730800852,
0.3238291144,
-0.0007774234,
0.1384549141,
-0.3173955977,
-0.2318967581,
-0.2114669383,
0.2685050964,
-0.0895991474,
0.4095949531,
-0.2896963656,
0.1213754416,
-0.2343209833,
0.0011414997,
0.0855453461,
0.2449104935,
-0.5026379824,
0.2409138083,
-0.2224507332,
0.1260557175,
-0.1578630805,
0.0578482784,
-0.1234945953,
0.075488165,
-0.0371272936,
-0.1940155327,
0.2651411295,
-0.1993713826,
-0.2050962448,
0.0285420567,
0.2436949313,
0.1691823751,
0.0668132454,
-0.60580796,
-0.1650235355,
0.3767968416,
-0.1661026031,
-0.1423830688,
-0.0075516719,
0.0256165788,
-0.0475918502,
-0.225037232,
0.2251904905,
0.2840961516,
-0.2430254817,
0.0486572385,
-0.4496518075
] |
https://github.com/huggingface/datasets/issues/743 | load_dataset for CSV files not working | In this case the user expects to get only one dataset object instead of the dictionary of datasets since only one csv file was specified without any split specifications.
I'm ok with returning the dataset object if no split specifications are given for text/json/csv/pandas.
For the other datasets ton the other hand the user doesn't know in advance the splits so I would keep the dictionary by default. What do you think ? | Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets.
`
from datasets import load_dataset
`
`
dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master")
`
Displayed error:
`
...
ArrowInvalid: CSV parse error: Expected 2 columns, got 1
`
I should mention that when I've tried to read data from `https://github.com/lhoestq/transformers/tree/custom-dataset-in-rag-retriever/examples/rag/test_data/my_knowledge_dataset.csv` it worked without a problem. I've read that there might be some problems with /r character, so I've removed them from the custom dataset, but the problem still remains.
I've added a colab reproducing the bug, but unfortunately I cannot provide the dataset.
https://colab.research.google.com/drive/1Qzu7sC-frZVeniiWOwzoCe_UHZsrlxu8?usp=sharing
Are there any work around for it ?
Thank you | 73 | load_dataset for CSV files not working
Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets.
`
from datasets import load_dataset
`
`
dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master")
`
Displayed error:
`
...
ArrowInvalid: CSV parse error: Expected 2 columns, got 1
`
I should mention that when I've tried to read data from `https://github.com/lhoestq/transformers/tree/custom-dataset-in-rag-retriever/examples/rag/test_data/my_knowledge_dataset.csv` it worked without a problem. I've read that there might be some problems with /r character, so I've removed them from the custom dataset, but the problem still remains.
I've added a colab reproducing the bug, but unfortunately I cannot provide the dataset.
https://colab.research.google.com/drive/1Qzu7sC-frZVeniiWOwzoCe_UHZsrlxu8?usp=sharing
Are there any work around for it ?
Thank you
In this case the user expects to get only one dataset object instead of the dictionary of datasets since only one csv file was specified without any split specifications.
I'm ok with returning the dataset object if no split specifications are given for text/json/csv/pandas.
For the other datasets ton the other hand the user doesn't know in advance the splits so I would keep the dictionary by default. What do you think ? | [
-0.0446914099,
0.0243466347,
-0.004884664,
0.419436574,
0.1463125646,
0.145850569,
0.4632934034,
0.2901499867,
0.3439590335,
0.0506454632,
-0.1350134909,
0.2295312881,
-0.1126452833,
0.0743182302,
-0.3604433537,
-0.0890148357,
-0.0051947534,
0.1351232082,
-0.367457211,
-0.0321294069,
-0.3761762083,
0.3206705153,
-0.285263598,
-0.0821710005,
-0.1697318256,
0.1815556586,
-0.0694446266,
0.2880133986,
-0.1186519787,
-0.3370013833,
0.5611510277,
-0.0190648679,
0.434804678,
0.1747193038,
-0.0001195433,
0.0651758462,
0.2265415192,
-0.1385780573,
-0.2591244876,
-0.5547063351,
-0.0865492076,
-0.4956437945,
0.3576345146,
-0.1113044992,
-0.14946343,
0.0304124728,
-0.0924383178,
-0.4187635779,
0.3667919636,
0.4456273913,
0.1584686339,
-0.2529727817,
-0.1881751716,
0.0030296743,
0.5168045759,
0.1237128749,
-0.1240001097,
0.2595596313,
0.0736480206,
-0.1548058391,
-0.1259088963,
0.0728911459,
-0.0548551455,
0.2917450666,
0.1838179827,
0.2202953398,
-0.20794487,
-0.2291031033,
-0.0040883347,
0.2079268843,
0.7277756333,
-0.0347445458,
-0.2305933237,
-0.174434036,
-0.0231074058,
-0.1313573867,
0.2728375196,
0.3152927756,
-0.0410874411,
0.3006059527,
-0.0826782882,
-0.0083452202,
-0.2871994972,
0.1252712309,
-0.0235239342,
0.0793903098,
-0.1653632224,
0.3553794324,
0.0618961193,
0.0458486713,
0.2907170057,
-0.1185566708,
-0.0849390477,
0.1433924884,
-0.6625817418,
0.1903321892,
-0.0949981213,
-0.0448508598,
-0.0221894793,
0.1342251301,
0.2266726494,
0.0177784972,
-0.1208943501,
0.2445972562,
0.4031657577,
-0.0086480901,
0.0469430834,
0.2923469245,
0.2768137455,
-0.1933325976,
0.0447110832,
-0.1059076935,
-0.2271495461,
-0.4162050784,
-0.1200382262,
0.1544905007,
0.2859628201,
-0.2022924125,
-0.2549920678,
0.0759338439,
-0.284172982,
0.0128486417,
-0.1795966476,
0.2437565327,
0.06551525,
0.3408357501,
0.0492649525,
0.2859683633,
-0.1149514467,
-0.4505904317,
-0.0125413537,
0.1416525245,
-0.3554005027,
-0.0124981459,
0.4809399247,
-0.132994175,
0.1060490608,
0.2314293683,
-0.110255897,
-0.3242434859,
-0.0325179584,
-0.3137761354,
0.086546436,
0.2456093729,
0.1420627534,
0.2350402623,
0.3222495914,
-0.2917711437,
-0.1687234938,
0.3128435612,
-0.4632059634,
-0.2403520197,
-0.0398927629,
0.0929586068,
-0.3021014929,
0.1972521991,
-0.3214193583,
0.1838945448,
-0.0014771298,
-0.108545959,
-0.2330003679,
-0.3334565163,
-0.3624803424,
-0.2817543447,
-0.0565881245,
0.5261704922,
-0.8061850071,
0.2232602239,
-0.0182992965,
0.025673274,
0.0277712233,
0.2435152531,
-0.2859248817,
0.078833878,
-0.3219585419,
0.0521326959,
0.1771897078,
-0.2237005532,
-0.3795723021,
0.2096039057,
-0.0132212415,
0.0899482965,
0.2062480748,
0.076079756,
0.483730346,
-0.0086396076,
-0.1743772179,
0.1678627133,
-0.0659871623,
0.0446663573,
-0.2099311501,
-0.2436726242,
0.2614075243,
0.1777192354,
0.1183044687,
0.1183996722,
0.1923591942,
-0.5197709799,
0.3524926007,
-0.0497059859,
0.2328708023,
0.0597577654,
0.2039583027,
0.0410938263,
0.2808489203,
0.0149374977,
-0.6455548406,
0.2398842573,
0.4423045814,
-0.1205581278,
-0.0816649348,
-0.1694549173,
-0.3994465172,
-0.059801586,
-0.2156887203,
-0.0491335355,
-0.0020585768,
0.0483987927,
-0.0326791257,
-0.1884750128,
-0.1039989963,
0.4660898447,
-0.2199748307,
0.0929078311,
-0.354352951,
0.3410105705,
0.1808359027,
0.0232974626,
0.2312519252,
-0.0563937835,
0.26290223,
-0.1184226945,
-0.0771765113,
0.1964531094,
0.3999145627,
-0.0858182162,
0.0429505855,
-0.1645278782,
0.0793243125,
-0.230504185,
-0.0083327144,
0.2045978904,
0.3715144396,
-0.1554053128,
-0.5231380463,
0.4438101053,
-0.313357532,
0.2376761436,
-0.1666318476,
0.1455674469,
0.270378083,
-0.0266003385,
-0.1132092774,
-0.0289892107,
-0.1073946431,
-0.0079466421,
0.2660495639,
0.1497365087,
-0.2108667195,
-0.1419972926,
0.2749666274,
0.2318962961,
-0.2266098857,
0.1718943417,
-0.0651105344,
-0.1108977646,
0.2969531119,
0.3253514171,
0.4923042655,
0.1208926439,
-0.2582108676,
-0.0712927133,
0.1183274761,
-0.2021026015,
0.0870301276,
-0.0295793898,
0.1463164091,
0.2104921043,
0.1246296391,
0.0422475077,
-0.0960943252,
-0.174309358,
0.1943690777,
0.191271022,
-0.537157774,
-0.0354343392,
-0.2490174025,
0.2459054291,
-0.265081048,
-0.0541449934,
0.079402253,
-0.29634884,
-0.2862537801,
0.2433873117,
-0.1253311336,
0.0655802563,
-0.1074500829,
0.2319080234,
-0.0061183125,
-0.1723760366,
0.1206972152,
-0.1466154158,
-0.250998497,
0.0133884735,
0.0352108739,
-0.0364195108,
-0.0454992764,
0.0550037175,
-0.0601066314,
-0.2914685905,
0.0006239936,
0.1893976629,
-0.0112393284,
0.0695460141,
0.2390502691,
-0.0659899563,
0.0432221219,
-0.1368496418,
0.1452717334,
0.219133094,
0.0598852187,
0.2933094203,
0.2413596362,
-0.0689224005,
-0.1228287369,
-0.6996183991,
-0.2679123282,
-0.1816013604,
0.0728141144,
-0.1040657014,
-0.0151290521,
-0.0078909677,
0.2856504023,
-0.1130620167,
0.2407529503,
-0.1150323004,
-0.1243784204,
-0.1990411282,
0.5246902108,
-0.199405387,
-0.3236927092,
0.2125065029,
-0.1198170781,
0.0817698687,
0.35671404,
-0.4152070284,
0.2089582384,
-0.0329122916,
0.0867076516,
-0.0653107613,
-0.0146035049,
0.1049971282,
-0.0258051362,
0.122216478,
-0.0642419755,
-0.1947111785,
0.2693861723,
-0.0943278372,
0.0281989705,
0.1903734505,
0.4873295426,
-0.1435080171,
0.7951070666,
0.0928443074,
0.0472146645,
0.2011027336,
-0.0355095565,
0.3330547214,
0.175145328,
-0.2264024466,
-0.0061443187,
-0.1244726777,
-0.3189520538,
0.3500700891,
-0.0268964097,
-0.1173558235,
-0.1424243748,
0.1945770532,
-0.235439688,
-0.2284532636,
0.1594711095,
-0.1251474619,
-0.0245740116,
0.0497914851,
0.1937777251,
0.1017238647,
-0.1457487494,
-0.1344631165,
0.1896141022,
0.1919301599,
-0.0447260886,
0.1049401611,
-0.1503965557,
-0.2751075625,
0.2131283283,
-0.0694785342,
0.37453264,
0.1689334214,
-0.0444944315,
0.0118113831,
0.1957569122,
0.7295382619,
-0.2287742645,
0.0030459547,
0.1243917793,
-0.0855477005,
-0.1337898523,
-0.315879792,
-0.086053893,
0.2985482216,
0.0012845378,
0.2565813661,
-0.079990834,
-0.0319194049,
0.3263704181,
0.1161978021,
-0.2338623554,
-0.3317710161,
-0.1265910268,
0.0044452697,
-0.1254690886,
-0.1931743324,
0.1252736151,
0.0521136187,
-0.3080662489,
-0.0141285285,
-0.2145449817,
-0.2291713059,
0.3313294947,
0.155018881,
0.2398004383,
0.0414593108,
0.240125373,
0.1598705351,
0.1619765013,
0.2585994601,
0.8187353611,
-0.2255118191,
-0.9100398421,
0.2532351911,
-0.4812315702,
0.3621436954,
0.0518254377,
-0.3327269852,
-0.0682387948,
-0.2888252437,
-0.1223364696,
-0.0978190303,
-0.0921019465,
0.1060931012,
-0.0652478039,
-0.2792623043,
-0.5379045606,
0.5231568217,
-0.1839359403,
-0.1688443422,
0.1658746004,
0.0635139793,
-0.4008097053,
0.4619480073,
-0.077962473,
0.6648097038,
-0.1435609609,
-0.0263271481,
0.1368160844,
-0.1935032308,
0.5352106094,
-0.2681343257,
-0.0582279041,
-0.4784962535,
-0.1556536257,
-0.1882336736,
0.0233327076,
0.133621484,
0.6201771498,
-0.2137882411,
0.4137538671,
-0.0305572525,
0.369702369,
0.0277277157,
0.2698026299,
0.2819109857,
-0.1970159709,
-0.1146225929,
0.0792975724,
-0.1219549626,
-0.0136857526,
0.0405085906,
0.02566652,
-0.2784501314,
-0.1080832779,
-0.3273004591,
0.2571623921,
-0.0309282411,
0.0844726712,
0.0456781164,
-0.4729806781,
0.5333228111,
0.480692327,
0.096434921,
-0.0579728261,
-0.2122703791,
0.0419793576,
-0.0075088032,
0.0709807575,
-0.1156743616,
-0.0343131125,
0.0392006263,
0.2451465726,
-0.1931064725,
0.2969655693,
-0.1279445291,
0.0291415229,
0.235651359,
0.3048041761,
0.2445831597,
-0.5582446456,
-0.3475917876,
-0.1782844663,
0.1838511378,
-0.0923167318,
0.0286441073,
-0.0112059675,
0.1078995615,
0.0184129439,
0.0635015666,
-0.3889577985,
0.0707365572,
0.1621206701,
-0.0464442223,
0.1069685817,
0.4289337993,
0.3648099899,
-0.1255619526,
-0.1633298099,
0.1097068042,
0.088937521,
-0.5510396957,
0.1483139694,
0.0768056288,
0.290554285,
0.0877697617,
0.1595236957,
0.1559226066,
-0.239258185,
0.1204694659,
-0.5238207579,
0.0897690207,
-0.034038391,
-0.1151964366,
0.0711519718,
-0.0408787839,
-0.3904770017,
-0.0813328773,
-0.0195436887,
-0.1833997071,
0.0560257435,
0.0836378857,
0.0804497153,
0.1844594032,
0.4139984846,
-0.2509412467,
-0.2532227337,
-0.0012747981,
-0.0102719739,
0.0814376026,
-0.0961059108,
-0.2050719261,
0.1875602901,
0.0344713852,
0.2173553705,
-0.2460438758,
-0.2080371529,
-0.1947425157,
-0.1506969631,
0.154032886,
0.3942095637,
-0.0514223129,
0.4527197778,
0.1114695966,
-0.025516998,
-0.5381059051,
0.3280774951,
-0.2612593174,
0.256944865,
0.1033132374,
0.2795566916,
0.1250810325,
0.0944785029,
-0.089801684,
-0.0122041442,
-0.1515173614,
-0.1182871163,
0.2566822767,
-0.2914993763,
0.2917624712,
0.1998857707,
0.3145688474,
0.3723842204,
-0.1177822649,
-0.0988316908,
0.1091852039,
0.1090012193,
-0.3487354517,
0.1822368503,
0.1090165749,
0.2419047356,
-0.0584852286,
0.414699018,
-0.0443695113,
-0.0958199799,
0.1168789715,
0.131759122,
0.6230404973,
0.1043816358,
0.1987517029,
0.25642851,
-0.0296463817,
0.1116354391,
0.225018397,
-0.0835404992,
0.0890384838,
0.4729128778,
-0.2165100276,
0.0019179936,
0.2744266689,
0.1816956997,
-0.0412166081,
-0.6070026755,
0.2713733315,
0.307959795,
-0.318038702,
-0.1184837073,
0.1882698238,
0.5466787815,
-0.0783552974,
0.0987037569,
-0.3214307725,
-0.1059166938,
0.0685791224,
-0.0557231605,
-0.1259048283,
-0.2485822737,
-0.3915131688,
0.3009374738,
-0.2011854649,
-0.1257798374,
0.4019699395,
0.167567119,
-0.0332878977,
-0.4865244031,
0.1772976816,
0.1307817996,
0.0838177726,
-0.3009278178,
0.0558154061,
-0.0414290503,
0.0241742413,
0.3911569118,
-0.1515443176,
0.2833007574,
0.4373912215,
0.0634218156,
-0.3570866883,
-0.1043282151,
-0.0803955719,
-0.1107575297,
0.410710901,
-0.0791140795,
0.2689144909,
0.3173109889,
0.0975595266,
0.0045516491,
0.2404072583,
0.1902995557,
0.058935415,
-0.5318909883,
-0.065264143,
0.0404916294,
-0.0581806935,
-0.0185877923,
-0.1208127812,
-0.0996512175,
-0.29635185,
0.396989435,
0.1738694161,
0.2589986324,
0.1141661108,
0.0020137019,
-0.1082004607,
0.177660346,
0.275113523,
0.1055843458,
-0.4967324138,
-0.0113581419,
-0.7635499239,
-0.0627658516,
-0.2667764127,
-0.2044684291,
-0.0269497372,
0.2673873901,
0.294827193,
0.2880783677,
-0.1117066294,
0.2403890043,
0.0136977062,
0.3622202277,
-0.1996466517,
-0.2887038887,
-0.2270312756,
0.0318628401,
-0.0690124556,
-0.4857376814,
0.0564628132,
0.3484520018,
-0.1489174366,
-0.1766722351,
-0.0491106734,
0.1913093328,
-0.2589654922,
0.3701534569,
0.0659780875,
0.4796223044,
0.0222701877,
0.2993639112,
-0.3624300361,
-0.1713562608,
-0.2586035132,
0.2603018284,
-0.0973286256,
0.4215647578,
-0.3740357161,
0.0763341039,
-0.1894478649,
0.0059445761,
0.069822669,
0.276570797,
-0.3861728609,
0.2962090075,
-0.1280638576,
0.2370444238,
-0.1018580198,
-0.0365720093,
-0.1631511003,
0.1626235992,
-0.1010830551,
-0.1878380477,
0.2851316929,
-0.2237532139,
-0.2358585298,
-0.0228020027,
0.2156579494,
0.1750966758,
0.052241154,
-0.5023124814,
-0.0722330883,
0.4346189797,
-0.1690046489,
-0.0793061629,
0.0470203944,
0.1012326032,
0.0152682886,
-0.1957582533,
0.2328618467,
0.3037620485,
-0.2695991397,
-0.1059476882,
-0.3923305869
] |
https://github.com/huggingface/datasets/issues/743 | load_dataset for CSV files not working | Thanks for your quick response! I'm fine with specifying the split as @lhoestq suggested. My only concern is when I'm loading from python dict or pandas, the library returns a dataset instead of a dictionary of datasets when no split is specified. I know that they use a different function `Dataset.from_dict` or `Dataset.from_pandas` but the text/csv files use `load_dataset()`. However, to the user, they do the same task and we probably expect them to have the same behavior. | Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets.
`
from datasets import load_dataset
`
`
dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master")
`
Displayed error:
`
...
ArrowInvalid: CSV parse error: Expected 2 columns, got 1
`
I should mention that when I've tried to read data from `https://github.com/lhoestq/transformers/tree/custom-dataset-in-rag-retriever/examples/rag/test_data/my_knowledge_dataset.csv` it worked without a problem. I've read that there might be some problems with /r character, so I've removed them from the custom dataset, but the problem still remains.
I've added a colab reproducing the bug, but unfortunately I cannot provide the dataset.
https://colab.research.google.com/drive/1Qzu7sC-frZVeniiWOwzoCe_UHZsrlxu8?usp=sharing
Are there any work around for it ?
Thank you | 78 | load_dataset for CSV files not working
Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets.
`
from datasets import load_dataset
`
`
dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master")
`
Displayed error:
`
...
ArrowInvalid: CSV parse error: Expected 2 columns, got 1
`
I should mention that when I've tried to read data from `https://github.com/lhoestq/transformers/tree/custom-dataset-in-rag-retriever/examples/rag/test_data/my_knowledge_dataset.csv` it worked without a problem. I've read that there might be some problems with /r character, so I've removed them from the custom dataset, but the problem still remains.
I've added a colab reproducing the bug, but unfortunately I cannot provide the dataset.
https://colab.research.google.com/drive/1Qzu7sC-frZVeniiWOwzoCe_UHZsrlxu8?usp=sharing
Are there any work around for it ?
Thank you
Thanks for your quick response! I'm fine with specifying the split as @lhoestq suggested. My only concern is when I'm loading from python dict or pandas, the library returns a dataset instead of a dictionary of datasets when no split is specified. I know that they use a different function `Dataset.from_dict` or `Dataset.from_pandas` but the text/csv files use `load_dataset()`. However, to the user, they do the same task and we probably expect them to have the same behavior. | [
-0.0780603439,
0.0584030002,
0.0232999325,
0.4148484766,
0.1361282617,
0.1216797903,
0.5085967183,
0.250366956,
0.360342145,
-0.0349151492,
-0.1385971457,
0.3222548366,
-0.0713081658,
0.1254667044,
-0.3528850079,
-0.0622133389,
0.0382992029,
0.1323884279,
-0.3376770616,
-0.0414374284,
-0.3806917071,
0.3519901037,
-0.2903809845,
-0.1016624123,
-0.1629703343,
0.091041401,
-0.0846716464,
0.3872539401,
-0.0802059025,
-0.3159047365,
0.5106095076,
-0.0687849894,
0.3722462952,
0.2686668038,
-0.0001207905,
0.0423916057,
0.2599443793,
-0.1325831413,
-0.2995004356,
-0.5992063284,
-0.0885679647,
-0.3759458065,
0.466729939,
-0.1101179123,
-0.0792848021,
0.0684130192,
-0.1559938043,
-0.4584490061,
0.4170623422,
0.4606309533,
0.1560240388,
-0.2249397486,
-0.1643289626,
0.0096413605,
0.4941340089,
0.1596397012,
-0.1423370689,
0.2697022855,
0.0866432041,
-0.1821700037,
-0.231386587,
0.0202857405,
-0.1544831395,
0.3192255497,
0.2253213823,
0.2923902869,
-0.3081010282,
-0.2810398936,
0.0261403993,
0.2212561518,
0.724458456,
-0.0942641199,
-0.2048070133,
-0.2172992378,
-0.0480778813,
-0.0917178094,
0.3131275773,
0.3217785954,
-0.0733008087,
0.2957073152,
-0.0414610542,
0.0229659639,
-0.221373871,
0.1205666512,
-0.1148099601,
-0.0006336458,
-0.1768135428,
0.2903593481,
0.1218068674,
0.0948191881,
0.2343307436,
-0.1621432453,
-0.0009305119,
0.1288641542,
-0.5839779973,
0.2475131303,
-0.0986641347,
-0.0668170229,
-0.1103041619,
0.2539929152,
0.1501595676,
0.0090183485,
-0.173685655,
0.2963420153,
0.4208086133,
-0.0071673729,
0.055909425,
0.3210423589,
0.3060677946,
-0.1665061414,
-0.0051971003,
-0.1115175039,
-0.1817287654,
-0.3427420259,
-0.1860246062,
0.1037287936,
0.2094871998,
-0.2004438937,
-0.2784616351,
0.014166221,
-0.1827181578,
0.0419441685,
-0.113577202,
0.2982385755,
0.0146191269,
0.3928483725,
0.0145732537,
0.2610866427,
-0.1982985437,
-0.2762896419,
-0.0069854707,
0.128640905,
-0.3538254201,
-0.0396923982,
0.4889251292,
-0.166084826,
0.1336766779,
0.2067691386,
-0.0537001379,
-0.2936573029,
-0.1007577628,
-0.3508050144,
0.15122208,
0.2754835486,
0.1813350469,
0.2705023587,
0.3625773191,
-0.2818306088,
-0.1320957243,
0.2809000313,
-0.4552855194,
-0.1679247022,
-0.0974196196,
0.0909827575,
-0.2902530432,
0.1167382821,
-0.3180291951,
0.1667850167,
0.0186546743,
-0.1930302531,
-0.1741772145,
-0.2862384319,
-0.3174205124,
-0.346051842,
-0.0322397202,
0.5567395687,
-0.837872088,
0.1386427879,
-0.0670074597,
-0.0069620684,
0.1202308536,
0.2839856446,
-0.2087619156,
0.0152272619,
-0.2989393771,
0.1312760264,
0.1732628793,
-0.2612003088,
-0.3863241374,
0.2486075759,
-0.0008813888,
0.0901693627,
0.1690718681,
0.075542137,
0.496361047,
-0.0160964839,
-0.0889544189,
0.3020790815,
-0.0491138101,
0.0809859112,
-0.1848464757,
-0.2849665284,
0.3172252476,
0.1995102018,
0.0977132767,
0.0848608017,
0.2303349078,
-0.4987605512,
0.3067668676,
-0.0629989058,
0.2209566832,
0.0525363348,
0.1889105439,
0.0994126946,
0.2802125514,
-0.0316574648,
-0.5756883025,
0.1889431477,
0.4474723935,
-0.1121793762,
-0.1767742187,
-0.105791755,
-0.4251613021,
-0.0712026283,
-0.2718627751,
-0.0307787433,
-0.0208100528,
0.0431175679,
-0.0757092088,
-0.0927125216,
-0.1473401785,
0.4585491121,
-0.2381283939,
0.2181704193,
-0.3602616191,
0.3144995868,
0.1941239834,
-0.0531482697,
0.1314399242,
0.0408295505,
0.1705839634,
-0.0698475763,
-0.1043954641,
0.2648100853,
0.4699584842,
-0.0506553613,
-0.0218374524,
-0.2311658561,
0.1496648937,
-0.161061883,
0.0174789075,
0.1880166382,
0.3294552863,
-0.1443994045,
-0.4745771289,
0.3915096819,
-0.3383185267,
0.3178925812,
-0.1259979904,
0.1517555714,
0.2254450023,
0.0197416097,
-0.0936718434,
-0.1194757149,
-0.1482658982,
-0.0325600132,
0.3659868538,
0.1129663736,
-0.1503002942,
-0.1129394472,
0.2878533006,
0.1690549254,
-0.1196043342,
0.1870759577,
-0.1231053025,
-0.1474549919,
0.2803920805,
0.3671053946,
0.4955612123,
0.0771476179,
-0.2348528802,
-0.0580581874,
0.0573460422,
-0.2526853681,
0.135013938,
0.0440179557,
0.0865219384,
0.1999138296,
0.0943008214,
-0.003302047,
-0.1571341157,
-0.1080671847,
0.1180732027,
0.1504924744,
-0.552585125,
0.0730808601,
-0.2852841914,
0.1734770387,
-0.2393055856,
-0.1132837906,
0.0525895096,
-0.320828706,
-0.269623965,
0.2311979383,
-0.1116295233,
0.0210418962,
-0.1159700453,
0.1940697879,
-0.0259670243,
-0.2768666446,
0.1353651881,
-0.1660187095,
-0.2796301842,
0.0261304751,
0.0899904966,
0.0405324474,
-0.0314900242,
0.0105328932,
-0.0054160543,
-0.1679028273,
-0.0294127688,
0.1906543523,
-0.025891643,
0.0481653363,
0.2501964867,
-0.1107523292,
0.0286538154,
-0.1713656634,
0.1270339489,
0.1098007336,
0.0811417624,
0.2782087028,
0.2357174903,
-0.0067101084,
-0.1312566847,
-0.7236310244,
-0.3136630356,
-0.245908916,
0.0754914433,
-0.0628423691,
-0.0796342492,
0.0326730832,
0.3050903976,
-0.084650591,
0.2568508387,
-0.0246793032,
-0.140915975,
-0.1120959744,
0.5172939897,
-0.2012259215,
-0.2881708145,
0.2345353365,
-0.120682314,
0.0465554036,
0.390183866,
-0.4093537629,
0.1691294611,
-0.0497052297,
0.0715127736,
0.0637711659,
0.0803194568,
0.105105564,
-0.0090014972,
0.1107044518,
-0.0589844324,
-0.1868160367,
0.2101538777,
-0.0723889768,
0.0164382122,
0.1945222318,
0.4666733444,
-0.1805897653,
0.7081637383,
0.052876927,
0.0586840436,
0.193527177,
-0.0913911015,
0.3675380349,
0.0327509455,
-0.2014241368,
-0.008577086,
-0.1361855567,
-0.307294786,
0.4365994036,
0.0440111198,
-0.14721632,
-0.1671951413,
0.2117059529,
-0.2908909321,
-0.261153549,
0.1816854477,
-0.1667782366,
-0.0816016197,
0.0153726786,
0.2761579752,
0.0979496688,
-0.1838972569,
-0.1667266786,
0.1501664221,
0.1727152914,
-0.0977317393,
0.1566801667,
-0.1063406914,
-0.3628373146,
0.2003890276,
-0.0233826581,
0.3507730365,
0.139068827,
-0.1785808653,
0.0689703599,
0.2334894836,
0.6763694882,
-0.2118431777,
-0.108876884,
0.1362047046,
-0.1670361757,
-0.2020246983,
-0.2269340605,
-0.0895030797,
0.321803391,
-0.0135837784,
0.1687471867,
-0.0981901437,
-0.0440850668,
0.289236933,
0.1672764271,
-0.186742425,
-0.2867825031,
-0.1176335737,
-0.0463215001,
-0.1826342642,
-0.2411185205,
0.106295526,
0.0728990957,
-0.2928982973,
-0.0041775852,
-0.1973251104,
-0.2476387918,
0.3436923027,
0.1330288053,
0.2578411996,
-0.0313514844,
0.1394304782,
0.2009287775,
0.1762400717,
0.2331240773,
0.7674672604,
-0.3200324476,
-0.896895349,
0.2190898955,
-0.4767705202,
0.2948756516,
0.06998308,
-0.3103145063,
-0.020484183,
-0.244707793,
-0.1114456505,
-0.120860815,
-0.1385057271,
0.113133654,
-0.0770478472,
-0.217808336,
-0.6420862079,
0.4519008398,
-0.0804931298,
-0.1387156248,
0.1971895695,
-0.0059805661,
-0.3941087425,
0.5317511559,
-0.1025061756,
0.6488490105,
-0.1443080455,
0.0663551241,
0.1926670074,
-0.1060862988,
0.5815531015,
-0.2526155114,
-0.0314487554,
-0.4836899638,
-0.0993930995,
-0.2113435268,
0.0161527991,
0.0745458081,
0.5343911648,
-0.1654262245,
0.4403235018,
-0.1346066594,
0.4269821346,
0.0749560893,
0.1848100126,
0.216303736,
-0.2788418531,
-0.1900912374,
0.0659348443,
-0.0644840449,
-0.0235287696,
0.0954504907,
0.0706775934,
-0.2394132763,
-0.0383500978,
-0.3074459434,
0.2404232174,
0.0134580508,
0.1497154534,
0.0567385294,
-0.5112695694,
0.5276222229,
0.4659337401,
0.1288301945,
-0.0771813691,
-0.1715562791,
0.0647411942,
-0.0769014955,
0.10655047,
-0.0476457849,
-0.0652331263,
0.1183977425,
0.3097564578,
-0.1849854887,
0.1965086758,
-0.1329263151,
-0.060036812,
0.2879076302,
0.357504189,
0.2925894856,
-0.5540478826,
-0.3186804056,
-0.208245337,
0.1750917733,
-0.0921978503,
0.0287257582,
-0.0640126765,
0.1739256382,
0.1248166785,
-0.0214962214,
-0.3738908768,
0.045144964,
0.1663764715,
-0.0290660188,
0.057242766,
0.4186039269,
0.3911681771,
-0.1691600084,
-0.1707746387,
0.0406670272,
0.057452701,
-0.5586920977,
0.2726941109,
0.0945262685,
0.1553142369,
0.0937951431,
0.1295143366,
0.0750712454,
-0.1472864598,
-0.0274175704,
-0.5871500373,
0.0391710475,
0.0518658273,
-0.10455174,
0.0467991084,
0.0984388888,
-0.4158430994,
-0.053122811,
-0.1460790783,
-0.1662377417,
0.1227071509,
0.0952958465,
0.0282586813,
0.2055830657,
0.3031569719,
-0.1256094426,
-0.2308122218,
-0.0158373471,
0.0365633965,
0.1334185898,
-0.0922422558,
-0.1767409444,
0.2006401867,
-0.0374266878,
0.1355473995,
-0.2335269004,
-0.2175001502,
-0.2205777466,
-0.2437779903,
0.2594327927,
0.3854046464,
-0.0624370538,
0.3423615396,
-0.0074103735,
-0.0218210518,
-0.5484728813,
0.3721244335,
-0.3337456286,
0.2648546994,
0.116715841,
0.2449630499,
0.0713142008,
0.1001942307,
-0.0735293478,
0.0403669551,
-0.0935589522,
-0.1060142368,
0.3031860292,
-0.330825597,
0.2521576285,
0.1782934964,
0.361638248,
0.4359157979,
-0.0412279703,
-0.1274757683,
0.1186120212,
0.1057943404,
-0.2864652574,
0.1520409882,
0.1158829778,
0.1954277754,
0.0093323588,
0.4370473027,
-0.0044521391,
-0.1398127824,
0.0296287294,
0.0849420577,
0.6649832129,
0.1072681174,
0.2528631091,
0.3818797767,
-0.0435525812,
0.1784688234,
0.1605792493,
-0.102174446,
0.1207100451,
0.5896927118,
-0.1346414089,
0.0309124794,
0.2568348646,
0.1964880973,
-0.0786208361,
-0.6072865725,
0.3335482776,
0.2953579128,
-0.2968005538,
-0.0950198919,
0.1748752743,
0.628970921,
-0.1853759438,
0.1386338621,
-0.3035650551,
-0.0726983845,
0.0657654107,
-0.0995670408,
-0.1449110955,
-0.2396786809,
-0.3253215849,
0.2576450706,
-0.222173661,
-0.1446968913,
0.3557287455,
0.1453876495,
0.0212248117,
-0.5101604462,
0.1769393831,
0.0611315593,
0.0676238611,
-0.2418277115,
0.0452643707,
-0.0599953644,
0.1075007319,
0.4110957384,
-0.1862286329,
0.3582162857,
0.4266978204,
-0.0102401953,
-0.4081250727,
-0.0733475834,
-0.0697488934,
-0.099130027,
0.4141915143,
-0.0458859168,
0.3552894592,
0.3006963134,
0.1072787642,
-0.0228898972,
0.1493748426,
0.1904636174,
0.0595690496,
-0.4607408941,
0.0260299873,
0.0315629691,
-0.0554630868,
-0.0809353516,
-0.1332414597,
-0.1206588522,
-0.2544752359,
0.4193517566,
0.0971190631,
0.2352310121,
0.157228142,
0.0010582022,
-0.0490169339,
0.1945966482,
0.3154044151,
0.1179361194,
-0.3888406157,
0.0148336887,
-0.7008817196,
-0.0577346534,
-0.1603075862,
-0.2227329314,
-0.0657907203,
0.2667682767,
0.3000713587,
0.2722349465,
-0.1075637788,
0.285518229,
0.0407359302,
0.2488112897,
-0.1010124609,
-0.2874626815,
-0.2420125753,
-0.0227801092,
-0.1214361787,
-0.5083063245,
-0.0104022697,
0.3372930288,
-0.156740725,
-0.1524049789,
-0.0398765653,
0.172684595,
-0.3162716627,
0.282445848,
0.0485673845,
0.4625612795,
0.0350711048,
0.2286786735,
-0.3366463184,
-0.2433710992,
-0.2299166173,
0.3020691276,
-0.0797186792,
0.4605023265,
-0.3677753806,
0.0734989196,
-0.213159129,
0.0699643791,
0.1490736157,
0.288446337,
-0.4138552547,
0.2748320997,
-0.1599980891,
0.2001489699,
-0.0224915296,
0.0812499672,
-0.2107772082,
0.1545372009,
-0.0083401054,
-0.2705020607,
0.1735010594,
-0.2811928391,
-0.2791191936,
-0.0397656374,
0.1720836759,
0.1727105528,
0.0939149633,
-0.4474801421,
-0.0440836996,
0.3422483206,
-0.1715087742,
-0.1493272185,
0.0345321521,
0.0146460459,
0.0441377461,
-0.2010120749,
0.1968458742,
0.3159103394,
-0.2689934373,
-0.0672231615,
-0.3839844465
] |
https://github.com/huggingface/datasets/issues/743 | load_dataset for CSV files not working | ```
from datasets import load_dataset
dataset = load_dataset('csv', data_files='./amazon_data/Video_Games_5.csv', delimiter=",", split=['train', 'test'])
```
I was running the above line, but got this error.
```ValueError: Unknown split "test". Should be one of ['train'].```
The data is amazon product data. I load the Video_Games_5.json.gz data into pandas and save it as csv file. and then load the csv file using the above code. I thought, ```split=['train', 'test']``` would split the data into train and test. did I misunderstood?
Thank you!
| Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets.
`
from datasets import load_dataset
`
`
dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master")
`
Displayed error:
`
...
ArrowInvalid: CSV parse error: Expected 2 columns, got 1
`
I should mention that when I've tried to read data from `https://github.com/lhoestq/transformers/tree/custom-dataset-in-rag-retriever/examples/rag/test_data/my_knowledge_dataset.csv` it worked without a problem. I've read that there might be some problems with /r character, so I've removed them from the custom dataset, but the problem still remains.
I've added a colab reproducing the bug, but unfortunately I cannot provide the dataset.
https://colab.research.google.com/drive/1Qzu7sC-frZVeniiWOwzoCe_UHZsrlxu8?usp=sharing
Are there any work around for it ?
Thank you | 78 | load_dataset for CSV files not working
Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets.
`
from datasets import load_dataset
`
`
dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master")
`
Displayed error:
`
...
ArrowInvalid: CSV parse error: Expected 2 columns, got 1
`
I should mention that when I've tried to read data from `https://github.com/lhoestq/transformers/tree/custom-dataset-in-rag-retriever/examples/rag/test_data/my_knowledge_dataset.csv` it worked without a problem. I've read that there might be some problems with /r character, so I've removed them from the custom dataset, but the problem still remains.
I've added a colab reproducing the bug, but unfortunately I cannot provide the dataset.
https://colab.research.google.com/drive/1Qzu7sC-frZVeniiWOwzoCe_UHZsrlxu8?usp=sharing
Are there any work around for it ?
Thank you
```
from datasets import load_dataset
dataset = load_dataset('csv', data_files='./amazon_data/Video_Games_5.csv', delimiter=",", split=['train', 'test'])
```
I was running the above line, but got this error.
```ValueError: Unknown split "test". Should be one of ['train'].```
The data is amazon product data. I load the Video_Games_5.json.gz data into pandas and save it as csv file. and then load the csv file using the above code. I thought, ```split=['train', 'test']``` would split the data into train and test. did I misunderstood?
Thank you!
| [
0.0013100952,
0.0517126769,
-0.0193824545,
0.4013645053,
0.235107556,
0.2222292721,
0.5522075891,
0.3211099505,
0.2397002876,
-0.0363931805,
-0.1460976303,
0.2243237495,
-0.0250563063,
0.1022292972,
-0.3207230568,
-0.1825465262,
0.0453074537,
0.0672886968,
-0.234087646,
0.0617869347,
-0.3590757549,
0.3422651291,
-0.2727226317,
-0.0144886412,
-0.2078836113,
0.0124818143,
-0.1053493693,
0.2969681025,
-0.1483760178,
-0.2648258507,
0.479006201,
-0.1716454029,
0.5383774638,
0.3396249712,
-0.0001182179,
0.0470700115,
0.2971408367,
-0.1246484593,
-0.2083081603,
-0.563741684,
-0.0561194867,
-0.3337758482,
0.3093161583,
-0.1384037733,
-0.0306094475,
0.0026260242,
-0.1647105068,
-0.3716715574,
0.5169056058,
0.5258501768,
0.1700555384,
-0.2575107813,
-0.1054584309,
0.0103971064,
0.5956736803,
0.0796281993,
-0.1261377633,
0.2239541709,
0.0111491401,
-0.1282904893,
-0.1261240542,
0.0465889052,
-0.0409372561,
0.3501435518,
0.1306045651,
0.2808641195,
-0.2173998207,
-0.2594376802,
0.0357646048,
0.1646070778,
0.651799798,
-0.0907547623,
-0.2557333708,
-0.0893640444,
-0.0458672941,
-0.1906016469,
0.2356331348,
0.4025233984,
-0.0143941678,
0.2629038393,
-0.0302200392,
0.0621253774,
-0.2307953835,
0.1439076215,
-0.0291526541,
0.0988972411,
-0.2419943213,
0.3104784489,
0.074892953,
0.0376321934,
0.2845779657,
-0.0803926438,
-0.0853784829,
0.1097128689,
-0.7357712984,
0.1972240806,
-0.260630101,
-0.1393676102,
-0.181833297,
0.2301415801,
0.1986733526,
-0.0480549969,
-0.0711114705,
0.3267118931,
0.3619976342,
0.1196251214,
-0.0493246764,
0.3038942218,
0.2154175043,
-0.1192007214,
-0.0823736489,
-0.1898967326,
-0.296474427,
-0.5364335775,
-0.069039762,
0.1694040447,
0.2778790295,
-0.2056671977,
-0.3103757501,
0.0415627882,
-0.3661007285,
-0.0593545027,
-0.0650033951,
0.331374228,
0.0484938696,
0.1800383627,
-0.0199315622,
0.3329243064,
-0.101678893,
-0.2537934482,
-0.0099349376,
0.2129420042,
-0.3322185278,
-0.0475764796,
0.4394693375,
-0.1399377584,
0.1698908508,
0.1438708603,
-0.10166125,
-0.3589425087,
-0.0439115651,
-0.3201139569,
0.0598089918,
0.2911034822,
0.0977209359,
0.2263793349,
0.270827949,
-0.2004964054,
-0.1134681404,
0.3200463057,
-0.4528761208,
-0.1949419826,
-0.1236146539,
0.0638871789,
-0.295891732,
0.0516116768,
-0.3975148201,
0.0070910929,
0.1372075975,
-0.1690457016,
-0.1107432097,
-0.2598052323,
-0.2234498262,
-0.2329427749,
-0.0297736302,
0.3591510057,
-0.7292497754,
0.2099155635,
-0.1305405796,
0.1397884637,
0.2042634487,
0.2783481777,
-0.2136738002,
0.0838180333,
-0.1957583725,
0.1398443431,
0.1922796965,
-0.1948813498,
-0.2584931254,
0.3368591368,
-0.0548022687,
0.0118794739,
0.1480432749,
0.007960327,
0.2661393583,
0.0118091218,
-0.2148746401,
0.277939558,
-0.1107132435,
0.0532058403,
-0.2178415209,
-0.2958858609,
0.3931151927,
0.2233068794,
0.0809111744,
0.0637839809,
0.21934928,
-0.4887852371,
0.2911224961,
-0.0074691065,
0.2130993456,
0.1266505718,
0.2399579287,
-0.0118251145,
0.3064185381,
-0.0468057618,
-0.550624907,
0.1211448088,
0.2973082662,
-0.080533348,
-0.2491195202,
-0.0293334164,
-0.4990503192,
-0.1263436377,
-0.1931824684,
-0.1471887082,
-0.0113763697,
0.0028394703,
-0.0695433468,
-0.1811053753,
-0.123171933,
0.4104183912,
-0.1968202889,
0.1574806273,
-0.4205067456,
0.3484318852,
0.068519868,
-0.0466617867,
0.2322585434,
-0.0470528156,
0.3172309101,
-0.173719883,
-0.1726092845,
0.29924196,
0.3452044725,
0.0514553487,
0.0920721143,
-0.2689473331,
0.0843899697,
-0.1345871985,
-0.0765794143,
0.1975726783,
0.3707104921,
-0.0902064517,
-0.4967187941,
0.3981716037,
-0.3730514646,
0.3407869041,
-0.1548345685,
0.1214032695,
0.2545315921,
-0.0342797786,
-0.0573219024,
0.0154310465,
-0.0674981326,
-0.041452378,
0.1813624203,
0.1204917952,
-0.1412464529,
-0.0947606936,
0.2932525277,
0.1242889538,
-0.2171440721,
0.1496356279,
-0.0212592185,
-0.0907215923,
0.3234216273,
0.4788169861,
0.4989165068,
0.0934971571,
-0.2257989943,
-0.050208196,
0.0905947983,
-0.2129284889,
0.1495766938,
0.1314753443,
0.156846419,
0.1497192383,
0.1046722457,
0.0309833325,
-0.0564093851,
-0.1531224698,
0.2575719953,
0.2865166962,
-0.5545141697,
0.0832567662,
-0.274289906,
0.2512341142,
-0.2948324084,
-0.124541223,
0.1124372557,
-0.3302798271,
-0.2978978157,
0.2424976975,
-0.1188886315,
0.0766467974,
-0.1887729466,
0.1858248413,
0.0945128649,
-0.1874367297,
0.0460104495,
-0.2297290415,
-0.1853148937,
0.0440205708,
0.1608081609,
0.1147634909,
-0.1593761891,
0.0924840346,
0.1120206714,
-0.1131629124,
-0.0734894276,
0.120557934,
-0.0692939907,
0.1066166162,
0.0611012802,
-0.0971009433,
-0.1153241396,
-0.3006360829,
0.0956036448,
0.0619498119,
0.0524067432,
0.335886389,
0.3010448217,
-0.1343674958,
-0.0637168735,
-0.7712942362,
-0.2928634882,
-0.2254823148,
0.1364149749,
-0.0603981763,
-0.0800449997,
-0.0094668176,
0.2729964256,
-0.0466759615,
0.3181815147,
-0.0819871351,
-0.1524344981,
-0.3559530079,
0.6282112598,
-0.3358758688,
-0.2506921887,
0.212349087,
-0.0891897082,
0.01349972,
0.3305261433,
-0.379704833,
0.2495914996,
-0.078798309,
-0.0502250977,
-0.0006278087,
0.0238589775,
0.0380965844,
-0.0071671233,
0.0819207579,
-0.0103266537,
-0.1273983717,
0.214855507,
0.0483198129,
0.1261239946,
0.1046976969,
0.4444698989,
-0.1454232633,
0.8326640725,
0.009213604,
0.0208377559,
0.2185451686,
-0.1146019325,
0.276714772,
0.133887887,
-0.2511595786,
0.0126345679,
-0.1921902597,
-0.2479173839,
0.3181243837,
-0.062234398,
-0.1635574102,
-0.0671130046,
0.2253298014,
-0.3498934209,
-0.26161623,
0.219756186,
-0.0992864966,
-0.056897264,
0.001809746,
0.1972860396,
0.1112912297,
-0.2453783154,
-0.1210479811,
0.0973607749,
0.1619680226,
-0.0868244469,
0.098691076,
-0.1675399989,
-0.2355761528,
0.2341685742,
-0.0257506035,
0.4650132656,
0.1191042662,
-0.0924314857,
0.0427700877,
0.1901143342,
0.7903684378,
-0.2772940099,
-0.0669710189,
0.0895091519,
-0.0843080878,
-0.1386620402,
-0.2487660646,
-0.1439349353,
0.3455868661,
-0.0632852167,
0.2461963892,
-0.0161964819,
0.0098985918,
0.4104847312,
0.0764345825,
-0.1893098801,
-0.3667448163,
-0.1203168035,
-0.0003534108,
-0.1793941855,
-0.1840384752,
0.2391410619,
0.1934208423,
-0.3377687931,
0.0585263968,
-0.2245915532,
-0.198320061,
0.4003880918,
0.1000648737,
0.2224871069,
0.0537366308,
0.1503236145,
0.1658308655,
0.0966285765,
0.2035508901,
0.7843945622,
-0.2009361535,
-0.834943831,
0.2318482697,
-0.5099243522,
0.3329103589,
0.0696404129,
-0.3419284523,
-0.0750044882,
-0.152355656,
-0.0593253449,
-0.0641844422,
-0.0652369708,
0.1192677394,
-0.0315262936,
-0.1701636463,
-0.4961595237,
0.5014414787,
-0.1725472063,
-0.0993794501,
0.165089637,
0.0060844664,
-0.315154016,
0.506911397,
-0.1264930218,
0.7633349895,
-0.0809847414,
-0.0384552926,
0.1238724887,
-0.2518379688,
0.4888050258,
-0.386251688,
0.0171928741,
-0.444901228,
-0.1877058446,
-0.1797463,
-0.0094155446,
0.1393855363,
0.515873611,
-0.1586593539,
0.3798229694,
-0.0642665252,
0.3847044706,
0.0100506172,
0.1798701286,
0.2399881482,
-0.2542886138,
-0.1591580212,
0.0617968924,
-0.113679409,
0.0402823985,
0.1215540618,
-0.0685014874,
-0.3014987707,
-0.0222904459,
-0.2587723732,
0.2786269784,
0.0064094588,
0.1696968079,
0.0670542866,
-0.5253943205,
0.479603827,
0.4157077372,
0.1502278149,
-0.1548793614,
-0.176518321,
0.1454427391,
-0.0027778745,
0.0345429704,
-0.1173272431,
-0.02342223,
0.1226182282,
0.2246332467,
-0.2167376876,
0.2141616195,
-0.1105538979,
-0.0573692806,
0.2784078717,
0.283065021,
0.1158410087,
-0.5786659122,
-0.4050553441,
-0.1994120926,
0.0355778039,
-0.1358472407,
0.0427846536,
-0.0959016383,
-0.0073771439,
0.0790163502,
-0.0109544955,
-0.3799944222,
0.0163820814,
0.230448097,
-0.1041684002,
0.1677048802,
0.4894419909,
0.3991490602,
-0.1203057989,
-0.1565672159,
0.123994261,
0.1943260282,
-0.6159325838,
0.1485490799,
-0.0160783641,
0.2707143426,
0.1173541918,
0.0935315043,
0.1481499076,
-0.1131062284,
0.1228979304,
-0.6571765542,
-0.0065172985,
-0.0163925663,
-0.0255372841,
0.0661227852,
-0.0053588375,
-0.347196281,
-0.0063308701,
-0.0185469817,
-0.1774586439,
0.2192815542,
-0.0160170421,
0.077372849,
0.0875925869,
0.2237469405,
-0.1134927571,
-0.3160486817,
0.0059335753,
0.0807988197,
0.1289907396,
-0.1185339838,
-0.2344443947,
0.1807434261,
0.0513064899,
0.1172630563,
-0.2916282415,
-0.1712028682,
-0.2519418895,
-0.1157087237,
0.1222613305,
0.3097826838,
0.0763872042,
0.4201917946,
0.0632064566,
-0.134699896,
-0.5766659975,
0.2431895733,
-0.2517924011,
0.2563346326,
0.2004346848,
0.2189346105,
0.1526429653,
0.1326299906,
-0.1045128107,
-0.119981721,
-0.1409798265,
-0.1232138425,
0.3064599633,
-0.3543688357,
0.165896982,
0.1318970174,
0.3639474511,
0.4501644671,
-0.0877358019,
-0.029606685,
0.1945362985,
0.1060165912,
-0.3109940588,
0.2500666678,
0.1015497297,
0.2192718238,
-0.0666504651,
0.3654024303,
-0.058688648,
-0.005923301,
0.0418655053,
0.1571998298,
0.6517174244,
0.0037279725,
0.2534441352,
0.2700840533,
-0.1033795029,
0.1718178093,
0.2659032643,
-0.0399950892,
0.050383158,
0.4718824327,
-0.1745714098,
0.05588153,
0.3098165393,
0.2301664054,
-0.0958890915,
-0.5000247955,
0.2013559639,
0.3368728459,
-0.2262831479,
-0.0612377971,
0.2030340433,
0.7519770265,
-0.0741554871,
0.094438687,
-0.2837046385,
-0.052976314,
0.0688965321,
-0.0506860949,
-0.1667225957,
-0.1943075806,
-0.4568821192,
0.2175013274,
-0.1578662843,
-0.1699219942,
0.3505598307,
0.2255700827,
-0.020549845,
-0.4643120468,
0.1008402556,
0.0950998813,
0.1084275693,
-0.2965501547,
0.0249688085,
0.0136128999,
-0.0371118933,
0.3568257391,
-0.2303856909,
0.3943684995,
0.3589626849,
-0.0824881122,
-0.2996543944,
-0.0001909807,
-0.146781981,
0.0811100155,
0.4575299025,
0.0188797284,
0.2979620695,
0.2910827696,
0.1223564595,
-0.0376564302,
0.3405005038,
0.1959130466,
0.1682376266,
-0.4209374189,
0.0973644853,
0.0194370076,
-0.0772221386,
-0.1342258155,
-0.2494691759,
-0.224781692,
-0.1644602716,
0.2870916128,
-0.0139045343,
0.2284134179,
0.148328498,
0.0054250583,
-0.0634681955,
0.2566859424,
0.2689570785,
0.0835414678,
-0.5096372366,
0.0921722949,
-0.7402234077,
-0.1185134351,
-0.139749676,
-0.1350011081,
0.03367351,
0.2456684709,
0.2258338928,
0.3275523186,
-0.096927613,
0.1426135749,
-0.0532685369,
0.389344424,
-0.1827600449,
-0.14950113,
-0.2000490725,
0.1063716784,
-0.0652987584,
-0.4260186553,
0.05704372,
0.2859662175,
-0.181117326,
-0.1203171462,
-0.2147781551,
0.1211224794,
-0.2325750887,
0.319611758,
-0.0330538712,
0.4393060803,
0.0305323824,
0.3137935102,
-0.4146062136,
-0.3162576556,
-0.1620636284,
0.3063237667,
-0.004763688,
0.4763437808,
-0.3523972631,
0.0433996879,
-0.3214067221,
-0.0328666605,
-0.0263160244,
0.2140747607,
-0.3108561337,
0.224172473,
-0.15988639,
0.2404780388,
0.0255053751,
-0.0010705469,
-0.2014994919,
0.1945051253,
-0.0734495148,
-0.2631219625,
0.268292129,
-0.251565814,
-0.3278559446,
0.121380046,
0.1324691176,
0.3412541747,
0.0790839046,
-0.499382019,
0.0459822714,
0.3171978593,
-0.1684500873,
-0.0226212107,
0.0459904224,
0.1045870781,
0.1017695367,
-0.1623762846,
0.0989182442,
0.3107343614,
-0.2570577264,
-0.1267535537,
-0.3608280718
] |
https://github.com/huggingface/datasets/issues/743 | load_dataset for CSV files not working | Hi ! the `split` argument in `load_dataset` is used to select the splits you want among the available splits.
However when loading a csv with a single file as you did, only a `train` split is available by default.
Indeed since `data_files='./amazon_data/Video_Games_5.csv'` is equivalent to `data_files={"train": './amazon_data/Video_Games_5.csv'}`, you can get a dataset with
```python
from datasets import load_dataset
dataset = load_dataset('csv', data_files='./amazon_data/Video_Games_5.csv', delimiter=",", split="train")
```
And then to get both a train and test split you can do
```python
dataset = dataset.train_test_split()
print(dataset.keys())
# ['train', 'test']
```
Also note that a csv dataset may have several available splits if it is defined this way:
```python
from datasets import load_dataset
dataset = load_dataset('csv', data_files={
"train": './amazon_data/Video_Games_5_train.csv',
"test": './amazon_data/Video_Games_5_test.csv'
})
print(dataset.keys())
# ['train', 'test']
```
| Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets.
`
from datasets import load_dataset
`
`
dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master")
`
Displayed error:
`
...
ArrowInvalid: CSV parse error: Expected 2 columns, got 1
`
I should mention that when I've tried to read data from `https://github.com/lhoestq/transformers/tree/custom-dataset-in-rag-retriever/examples/rag/test_data/my_knowledge_dataset.csv` it worked without a problem. I've read that there might be some problems with /r character, so I've removed them from the custom dataset, but the problem still remains.
I've added a colab reproducing the bug, but unfortunately I cannot provide the dataset.
https://colab.research.google.com/drive/1Qzu7sC-frZVeniiWOwzoCe_UHZsrlxu8?usp=sharing
Are there any work around for it ?
Thank you | 123 | load_dataset for CSV files not working
Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets.
`
from datasets import load_dataset
`
`
dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master")
`
Displayed error:
`
...
ArrowInvalid: CSV parse error: Expected 2 columns, got 1
`
I should mention that when I've tried to read data from `https://github.com/lhoestq/transformers/tree/custom-dataset-in-rag-retriever/examples/rag/test_data/my_knowledge_dataset.csv` it worked without a problem. I've read that there might be some problems with /r character, so I've removed them from the custom dataset, but the problem still remains.
I've added a colab reproducing the bug, but unfortunately I cannot provide the dataset.
https://colab.research.google.com/drive/1Qzu7sC-frZVeniiWOwzoCe_UHZsrlxu8?usp=sharing
Are there any work around for it ?
Thank you
Hi ! the `split` argument in `load_dataset` is used to select the splits you want among the available splits.
However when loading a csv with a single file as you did, only a `train` split is available by default.
Indeed since `data_files='./amazon_data/Video_Games_5.csv'` is equivalent to `data_files={"train": './amazon_data/Video_Games_5.csv'}`, you can get a dataset with
```python
from datasets import load_dataset
dataset = load_dataset('csv', data_files='./amazon_data/Video_Games_5.csv', delimiter=",", split="train")
```
And then to get both a train and test split you can do
```python
dataset = dataset.train_test_split()
print(dataset.keys())
# ['train', 'test']
```
Also note that a csv dataset may have several available splits if it is defined this way:
```python
from datasets import load_dataset
dataset = load_dataset('csv', data_files={
"train": './amazon_data/Video_Games_5_train.csv',
"test": './amazon_data/Video_Games_5_test.csv'
})
print(dataset.keys())
# ['train', 'test']
```
| [
-0.1236995533,
0.0545273572,
0.004668314,
0.344014585,
0.2238633931,
0.2072240561,
0.5557588339,
0.3320875168,
0.2292671502,
0.0723562315,
-0.1219851151,
0.1893660724,
-0.0988405049,
0.0580997095,
-0.3150721788,
-0.1949937046,
0.0256501921,
0.0631219298,
-0.2891604006,
0.024731338,
-0.296712786,
0.3495415747,
-0.2854316533,
-0.1041692197,
-0.2474519014,
0.124746412,
-0.1284909546,
0.288785696,
-0.1067129523,
-0.2828913033,
0.5074794292,
-0.0799294859,
0.4618832469,
0.3443640172,
-0.0001203501,
0.0970000625,
0.2799856365,
-0.0914655179,
-0.2787308693,
-0.5799631476,
-0.0071048737,
-0.3753002882,
0.3846251965,
-0.1235789657,
-0.1427274942,
0.0628600344,
-0.0909831375,
-0.3723729849,
0.4926059246,
0.5027617216,
0.1562835574,
-0.2277880609,
-0.2041128576,
-0.0513190217,
0.6431522369,
0.1048247367,
-0.1537515223,
0.2703806758,
0.0426354967,
-0.1800076067,
-0.1540325582,
0.0384246558,
0.0187865868,
0.2721134424,
0.1503913999,
0.3210098445,
-0.1926092207,
-0.2060049474,
0.0234965906,
0.1783811152,
0.5856810212,
-0.0617552884,
-0.1998887062,
-0.1086914986,
-0.0031235926,
-0.2112371922,
0.2918920815,
0.3944919109,
-0.014091976,
0.2673088908,
-0.0840746015,
0.0562880039,
-0.2715722024,
0.1967210472,
-0.0411107391,
0.0441890582,
-0.1606971323,
0.3093575239,
0.1828570068,
0.1352514029,
0.2616445422,
-0.067245625,
-0.0468278676,
0.1808255017,
-0.7518923879,
0.2322712988,
-0.2511091232,
-0.1547810435,
-0.0936987549,
0.2901221812,
0.2221347392,
-0.0328097567,
-0.0704158619,
0.3143115342,
0.3604485393,
0.0580573082,
-0.0649092644,
0.373855114,
0.2827090919,
-0.096623823,
-0.0495879874,
-0.1580698341,
-0.2829410732,
-0.5059507489,
-0.0812061504,
0.1843692809,
0.2114675194,
-0.158393696,
-0.2342974246,
0.0050782375,
-0.3175960481,
-0.0391783193,
-0.0982537568,
0.3246218562,
0.1229009777,
0.2582787871,
0.0182128772,
0.3555501997,
-0.1680643111,
-0.3251542747,
-0.0390207432,
0.1630632579,
-0.3775843382,
-0.0187385678,
0.5270971656,
-0.2026497722,
0.1497711241,
0.2378042936,
-0.0695296526,
-0.3647529483,
-0.0183725543,
-0.3357925117,
0.060034439,
0.2678998113,
0.1478131115,
0.2357051671,
0.2901498377,
-0.1314110607,
-0.0991392657,
0.3206922114,
-0.4503082335,
-0.2298634946,
-0.0609412864,
0.0792624578,
-0.2566177249,
0.1285789758,
-0.3197813928,
0.1215939522,
0.1233534813,
-0.1894126534,
-0.1974062473,
-0.2858695388,
-0.3190153837,
-0.2252108157,
0.0287515968,
0.426512897,
-0.7253030539,
0.1600690633,
-0.0735781714,
0.0818118751,
0.1762103438,
0.2192543,
-0.3011445403,
0.0285334475,
-0.2588868737,
0.1298173368,
0.2128348053,
-0.1452602595,
-0.3053949773,
0.3130156398,
-0.0814771056,
-0.015028052,
0.1646917015,
0.0735129118,
0.380869627,
0.0346264243,
-0.1928319335,
0.2732809484,
-0.0599821284,
0.0648034289,
-0.2179354876,
-0.2626715302,
0.2681045234,
0.2398954332,
0.1219894364,
0.0886866301,
0.2000198066,
-0.4222187996,
0.3684158921,
0.0018668678,
0.2421445996,
0.0944423974,
0.2172835469,
0.0069561005,
0.2594901919,
-0.0468958057,
-0.588015914,
0.1750811189,
0.3549017012,
-0.1456280351,
-0.1272691786,
-0.0827832669,
-0.4457897842,
-0.1092281789,
-0.2193204314,
-0.0531644486,
-0.0301741585,
0.0546011291,
-0.0905675516,
-0.2170442492,
-0.1504922211,
0.3589517772,
-0.2253829986,
0.1345568895,
-0.3470092714,
0.373113811,
0.1203852668,
-0.0742225051,
0.1797980666,
-0.0364787653,
0.309466362,
-0.1655764878,
-0.1550944,
0.3368905485,
0.4324690998,
-0.0177734606,
-0.007051615,
-0.2337271869,
0.1350267828,
-0.1509144008,
-0.0988641158,
0.2633005679,
0.2995473146,
-0.1329543442,
-0.6124710441,
0.3689531982,
-0.34813115,
0.3461932838,
-0.1082853675,
0.1398615241,
0.2544140518,
-0.0694498718,
-0.0920360535,
-0.0502825007,
-0.0246859025,
-0.0507272892,
0.2192942947,
0.0786126554,
-0.1820711792,
-0.1413660645,
0.1904686391,
0.1454726756,
-0.2642040253,
0.1631587446,
-0.0574990399,
-0.0909904987,
0.286041379,
0.3959856331,
0.470631808,
0.0796952173,
-0.1567980051,
-0.0353184268,
0.074081555,
-0.2415785789,
0.1159654856,
0.0701685995,
0.064058274,
0.2292764485,
0.2091117799,
0.0643699765,
-0.0872007236,
-0.1415752321,
0.2427639067,
0.1857290715,
-0.5693569183,
0.0414615721,
-0.2665558159,
0.3180041909,
-0.3426659107,
-0.056278985,
0.1317126602,
-0.3142732978,
-0.2392715216,
0.2791634798,
-0.1528598368,
0.0895882249,
-0.1620823741,
0.2411292195,
0.0410922617,
-0.1898801029,
0.140905723,
-0.1960647106,
-0.2738434672,
0.0282652117,
0.1539470255,
0.0586000644,
-0.127799809,
0.1029047295,
-0.055078283,
-0.1706888676,
-0.0086252913,
0.1619700491,
-0.0035848282,
0.0908203349,
0.1382391751,
-0.1053296477,
-0.0646063015,
-0.2693963349,
0.1504160017,
0.077121295,
0.0710022375,
0.3143754601,
0.2691506147,
-0.0828719959,
-0.1793145239,
-0.7806078196,
-0.2570376694,
-0.2282653898,
0.0682772845,
-0.0943249241,
-0.068039909,
-0.0079504456,
0.2537843287,
-0.088222526,
0.3137325943,
-0.1078761294,
-0.1132516935,
-0.2240656167,
0.5512240529,
-0.2445447743,
-0.3344500363,
0.2084479183,
-0.1100612655,
-0.029014511,
0.3913627863,
-0.4320284128,
0.2069477886,
-0.0562905818,
-0.0276836902,
-0.069259271,
0.055498071,
0.0666985363,
-0.0605169535,
0.0955885351,
-0.0226426944,
-0.1251138449,
0.2517670691,
-0.0200241711,
0.1037030742,
0.0690996051,
0.4551236033,
-0.1279480755,
0.840536654,
0.0934608951,
0.0382793546,
0.2161408365,
-0.1279046685,
0.2627879381,
0.1161445156,
-0.2052365839,
0.0491354056,
-0.2187657207,
-0.2989221811,
0.3436023891,
0.0062891729,
-0.1588175744,
-0.0846070498,
0.3055967093,
-0.2164928913,
-0.2865194976,
0.2109031826,
-0.1444708407,
0.0212432332,
-0.0498868749,
0.176853165,
0.1406905353,
-0.1986888349,
-0.094341889,
0.1105644703,
0.1068758965,
-0.1261725724,
0.1068720222,
-0.1246999577,
-0.2584719658,
0.1572490931,
-0.0449997596,
0.381811887,
0.1139996648,
-0.126967445,
0.0701362044,
0.205101043,
0.8161819577,
-0.1706875563,
-0.0262791049,
0.1365029812,
-0.0943440944,
-0.1557801962,
-0.3316738904,
-0.1315875649,
0.2589632571,
0.0289927274,
0.279178977,
-0.0939706266,
0.006133832,
0.4122928083,
0.1237513125,
-0.1991573572,
-0.3709280193,
-0.1176719591,
0.0243075937,
-0.1085611582,
-0.1439117938,
0.1700907648,
0.1237184703,
-0.3360507488,
0.034457311,
-0.2056023479,
-0.2580387294,
0.3210890293,
0.1019875556,
0.2867151201,
0.0670133382,
0.2236173749,
0.2309412509,
0.086552456,
0.1521288902,
0.8312820792,
-0.2476367205,
-0.8462259173,
0.3043625057,
-0.5130508542,
0.3058374524,
0.1006133109,
-0.339043498,
-0.0740047246,
-0.2073812187,
-0.0908134878,
-0.0643536299,
0.0385150202,
0.1052993163,
-0.100056991,
-0.1768040955,
-0.5368042588,
0.5061166286,
-0.1158612967,
-0.1219229475,
0.1163803786,
-0.0640866682,
-0.2929753363,
0.526889503,
-0.1695968509,
0.6717282534,
-0.1161371991,
0.0086250296,
0.1661096662,
-0.1738393307,
0.382089287,
-0.3971767128,
0.0192866288,
-0.4172926247,
-0.1870998293,
-0.157516107,
0.0288363621,
0.0450359322,
0.5768895745,
-0.186711818,
0.3853286505,
-0.1072073057,
0.4090872705,
0.011592105,
0.1310701817,
0.2775964737,
-0.2057444751,
-0.0936231017,
0.0730206296,
-0.0481256507,
-0.0305721909,
0.1257378906,
0.022563383,
-0.2299948484,
-0.0861866176,
-0.3585099578,
0.3015391231,
-0.0580206625,
0.1496920586,
0.0550173223,
-0.5366524458,
0.4740400314,
0.424062103,
0.0932308882,
-0.1158975661,
-0.1576939523,
0.1158881113,
0.0249202084,
0.0712476894,
-0.1567978561,
-0.0490735695,
0.062435396,
0.2436162382,
-0.1971799731,
0.2300534397,
-0.1238344759,
-0.0305629373,
0.305573523,
0.3118975461,
0.2201450467,
-0.5418589115,
-0.3424957991,
-0.1763362885,
0.1146240532,
-0.1732374728,
0.0370577276,
-0.0883758664,
0.0022506714,
0.0070835687,
0.0366394706,
-0.3459068537,
0.096127376,
0.2780538201,
-0.079132691,
0.0692589134,
0.4756677449,
0.3913165927,
-0.072229743,
-0.1721459478,
0.0924542248,
0.1939416379,
-0.6047872305,
0.19335787,
-0.040142417,
0.2394954413,
0.186992079,
0.1891757548,
0.1549889743,
-0.126863718,
0.068102181,
-0.5866596699,
0.0394460484,
-0.0464411564,
-0.0775228292,
0.1153252199,
0.0230263993,
-0.319715023,
-0.0997645035,
0.0018913541,
-0.1686230898,
0.1739282906,
0.0741658136,
0.1087704301,
0.1004057825,
0.2541710734,
-0.1494039595,
-0.2636880279,
0.0088837817,
0.0132842883,
0.1262332946,
-0.1043555737,
-0.251817137,
0.1814360172,
-0.0176954977,
0.2021207511,
-0.284232527,
-0.1261137724,
-0.190890789,
-0.1310360134,
0.1956935674,
0.2580342591,
-0.0112840123,
0.4334686995,
0.1149796695,
-0.0632632524,
-0.5831516981,
0.254398942,
-0.2832888365,
0.1787217408,
0.2102703005,
0.2335811555,
0.1305254102,
0.1091150939,
-0.1699350774,
-0.0922060609,
-0.0863706693,
-0.0878941342,
0.2572663128,
-0.2967861295,
0.1809119284,
0.1053470895,
0.3611462712,
0.4378595352,
-0.0838360935,
-0.0477897599,
0.1138956472,
0.1188237146,
-0.3225206137,
0.2063738406,
0.0935242474,
0.2312633544,
-0.0427022316,
0.3317613304,
0.0004154295,
-0.0643441156,
0.0140079837,
0.1694222987,
0.5861899853,
0.0251168273,
0.2621176839,
0.334412843,
-0.0588497184,
0.1211708188,
0.1560476124,
-0.15733096,
0.0728304982,
0.4479803145,
-0.2174405158,
0.0932002217,
0.3141722679,
0.1881573647,
-0.1047519967,
-0.5688257217,
0.1891771555,
0.2869031727,
-0.2863144577,
-0.1088718101,
0.1301442087,
0.7349348068,
-0.107328102,
0.0295040868,
-0.3249367476,
-0.0867312551,
0.0972530991,
-0.0965507552,
-0.1583582461,
-0.2195172012,
-0.4849549532,
0.2818067968,
-0.1849796474,
-0.0466713011,
0.4361395538,
0.2232358158,
-0.0277030095,
-0.48065871,
0.0966251194,
0.1565508991,
0.0846172944,
-0.3090490103,
0.0834891945,
-0.0212620236,
-0.0038153101,
0.3777878881,
-0.2420455217,
0.3354337513,
0.3684578538,
0.0073715337,
-0.3682183027,
-0.0619433299,
-0.0630293489,
-0.0078131333,
0.376955688,
0.0059909634,
0.3021039963,
0.298339963,
0.0900743455,
-0.0261353347,
0.3797568083,
0.1009399444,
0.1272023916,
-0.520670712,
0.047071062,
0.0612595268,
-0.1090079695,
-0.0982126296,
-0.2307285815,
-0.1610398591,
-0.1864681542,
0.3231502771,
0.0533484444,
0.2272539288,
0.1613296568,
-0.0059358869,
-0.0697876662,
0.2767515779,
0.3064691424,
0.0358424075,
-0.5206970572,
-0.016322881,
-0.7225837708,
-0.0909700841,
-0.2059159726,
-0.1488364488,
-0.0006343424,
0.2883155048,
0.2138848603,
0.3061715066,
-0.0822252482,
0.1076728851,
-0.0376039743,
0.3772451282,
-0.2053091377,
-0.1663638502,
-0.1563254893,
0.0986458659,
-0.0578415096,
-0.4393822551,
-0.025554765,
0.2985118032,
-0.1839354038,
-0.0591369644,
-0.2375974059,
0.1494273841,
-0.245808959,
0.3341519237,
-0.0345350206,
0.4197684526,
0.0257529691,
0.3332746327,
-0.4953849018,
-0.2681280971,
-0.2189337164,
0.2006679028,
-0.0507925563,
0.4944993258,
-0.3649025559,
0.0594797879,
-0.2512986958,
0.0077370442,
0.0468177944,
0.1744484156,
-0.2876696587,
0.2198361307,
-0.1487821192,
0.2688423097,
-0.0124190785,
0.0497605987,
-0.2028204799,
0.134083271,
-0.0502322018,
-0.2751540244,
0.2319503576,
-0.2538375854,
-0.2683007419,
-0.0170317516,
0.1544955671,
0.2229433656,
0.1902013123,
-0.5178755522,
-0.0281957164,
0.3256672323,
-0.1713875532,
-0.1206701249,
0.1029576287,
0.1581060588,
0.0384630337,
-0.1509170234,
0.2286657989,
0.3510144353,
-0.2745782733,
-0.1515932083,
-0.4364376664
] |
https://github.com/huggingface/datasets/issues/743 | load_dataset for CSV files not working | > In this case the user expects to get only one dataset object instead of the dictionary of datasets since only one csv file was specified without any split specifications.
> I'm ok with returning the dataset object if no split specifications are given for text/json/csv/pandas.
>
> For the other datasets ton the other hand the user doesn't know in advance the splits so I would keep the dictionary by default. What do you think ?
Yes maybe this would be good. I think having to select 'train' from the resulting object why the user gave no split information is a confusing and not intuitive behavior. | Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets.
`
from datasets import load_dataset
`
`
dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master")
`
Displayed error:
`
...
ArrowInvalid: CSV parse error: Expected 2 columns, got 1
`
I should mention that when I've tried to read data from `https://github.com/lhoestq/transformers/tree/custom-dataset-in-rag-retriever/examples/rag/test_data/my_knowledge_dataset.csv` it worked without a problem. I've read that there might be some problems with /r character, so I've removed them from the custom dataset, but the problem still remains.
I've added a colab reproducing the bug, but unfortunately I cannot provide the dataset.
https://colab.research.google.com/drive/1Qzu7sC-frZVeniiWOwzoCe_UHZsrlxu8?usp=sharing
Are there any work around for it ?
Thank you | 107 | load_dataset for CSV files not working
Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets.
`
from datasets import load_dataset
`
`
dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master")
`
Displayed error:
`
...
ArrowInvalid: CSV parse error: Expected 2 columns, got 1
`
I should mention that when I've tried to read data from `https://github.com/lhoestq/transformers/tree/custom-dataset-in-rag-retriever/examples/rag/test_data/my_knowledge_dataset.csv` it worked without a problem. I've read that there might be some problems with /r character, so I've removed them from the custom dataset, but the problem still remains.
I've added a colab reproducing the bug, but unfortunately I cannot provide the dataset.
https://colab.research.google.com/drive/1Qzu7sC-frZVeniiWOwzoCe_UHZsrlxu8?usp=sharing
Are there any work around for it ?
Thank you
> In this case the user expects to get only one dataset object instead of the dictionary of datasets since only one csv file was specified without any split specifications.
> I'm ok with returning the dataset object if no split specifications are given for text/json/csv/pandas.
>
> For the other datasets ton the other hand the user doesn't know in advance the splits so I would keep the dictionary by default. What do you think ?
Yes maybe this would be good. I think having to select 'train' from the resulting object why the user gave no split information is a confusing and not intuitive behavior. | [
-0.0685333163,
0.0198077708,
0.0123499855,
0.4163452387,
0.154763639,
0.1310771406,
0.5161136985,
0.3348339796,
0.3283669651,
0.0745707303,
-0.1174224243,
0.2238826007,
-0.1303578019,
0.0772810504,
-0.3574972749,
-0.1409810334,
-0.0161413215,
0.1667788476,
-0.3396334052,
-0.0541300736,
-0.3720605671,
0.302288264,
-0.3071188927,
-0.103884533,
-0.2333146781,
0.1547117382,
-0.1243323907,
0.2636173368,
-0.1306831688,
-0.3113136292,
0.5264424086,
-0.0348028392,
0.4296831787,
0.1796252429,
-0.0001202436,
0.0683241934,
0.2098930925,
-0.1570207775,
-0.2832558751,
-0.5928276181,
-0.0948917791,
-0.5000762343,
0.3716958761,
-0.1824131608,
-0.1818095744,
0.0587632842,
-0.055730857,
-0.3692517281,
0.4264980555,
0.4404444098,
0.1417729259,
-0.2375425994,
-0.2223372608,
0.0053098164,
0.5322130919,
0.12710917,
-0.1593854725,
0.2628553212,
0.0841456354,
-0.1708382219,
-0.1467816979,
0.0727016777,
-0.0378268994,
0.250506103,
0.1527507901,
0.2516296804,
-0.2149781734,
-0.28025648,
-0.04730957,
0.2274473161,
0.6906312704,
-0.0038557188,
-0.2016995251,
-0.2366112471,
-0.0083021484,
-0.1586324573,
0.2352560461,
0.3178542554,
-0.0731078833,
0.302413106,
-0.1214092746,
0.0119991899,
-0.2797515988,
0.1332835853,
-0.0117351934,
0.1140170246,
-0.1597452462,
0.3371420205,
0.0914067626,
0.1130067557,
0.2736594975,
-0.1419515908,
-0.0509433262,
0.1469705701,
-0.6654455066,
0.1463198662,
-0.0904510096,
-0.0697759986,
-0.0807317868,
0.1399657726,
0.2095890939,
0.0222027861,
-0.0940626264,
0.2417105734,
0.4279997945,
0.0152156875,
0.0089434944,
0.2975210547,
0.2508085966,
-0.1638221294,
-0.0027233809,
-0.0982125774,
-0.2451073527,
-0.3989138603,
-0.1590597034,
0.1913885325,
0.266695559,
-0.1663200259,
-0.2446900308,
0.0393530801,
-0.3511973321,
0.0108304247,
-0.1631435752,
0.2812623382,
-0.003097862,
0.3063462973,
0.0556032509,
0.270070523,
-0.1631048918,
-0.4479641914,
-0.0051999837,
0.1509829909,
-0.3910144567,
-0.015298754,
0.4608508348,
-0.0783592463,
0.0757178292,
0.1967020929,
-0.0985652804,
-0.3172414601,
-0.0278435834,
-0.3539451957,
0.1186477989,
0.2464792281,
0.1359597296,
0.240873903,
0.3258981407,
-0.2979567647,
-0.1760974228,
0.33703655,
-0.5105859637,
-0.2835354507,
-0.0214067921,
0.0790359676,
-0.3109273314,
0.216049552,
-0.2705378532,
0.2318892777,
0.0025535338,
-0.0811035335,
-0.2396936119,
-0.3311724365,
-0.3782063723,
-0.3062497079,
-0.018465627,
0.5380909443,
-0.7937150598,
0.2113922536,
-0.0439791903,
0.0304448269,
0.0645340681,
0.2373638153,
-0.3146847188,
0.1455404907,
-0.3004148901,
0.0451263487,
0.2184085697,
-0.1572796702,
-0.3521284163,
0.2249477357,
-0.0438504741,
0.1430744231,
0.1946261525,
0.1160269752,
0.4747645557,
0.0054961145,
-0.149674058,
0.1738152504,
-0.1037603617,
0.0363454446,
-0.2112027556,
-0.2809373438,
0.2493323237,
0.1949699372,
0.1628944725,
0.1472985148,
0.1863793433,
-0.4255873263,
0.3947056532,
-0.0318461172,
0.2179587781,
0.0551676489,
0.2408976257,
0.0201244056,
0.2374703884,
0.0013132319,
-0.6431270242,
0.2445382476,
0.4549828768,
-0.0589665473,
-0.0715786666,
-0.1860952228,
-0.3736644387,
-0.0858304873,
-0.2312475592,
-0.0666560084,
-0.0176785477,
0.0032554902,
-0.0478527993,
-0.1757821292,
-0.1272352189,
0.4778862596,
-0.2450698912,
0.1183173358,
-0.3356823921,
0.3488134444,
0.1532376409,
0.0226259083,
0.1873707175,
-0.0584687516,
0.2424248159,
-0.1430355757,
-0.0515100621,
0.2048110068,
0.3868694305,
-0.1422166824,
-0.01245635,
-0.1445665658,
0.0729096159,
-0.2080978006,
-0.045357734,
0.1602119505,
0.3658784926,
-0.1580574661,
-0.5012958646,
0.4670164287,
-0.2943074405,
0.2638435066,
-0.1589295566,
0.1330960989,
0.2331533134,
-0.0610941909,
-0.1029713452,
-0.0019980967,
-0.1220470145,
-0.0066392291,
0.2533264756,
0.1580818444,
-0.247471109,
-0.1264658123,
0.3704717159,
0.2474063933,
-0.234878093,
0.1483874321,
-0.0330006294,
-0.0938447192,
0.2924904823,
0.3428395092,
0.4789251983,
0.1217187792,
-0.2401445657,
-0.0546516553,
0.1157442778,
-0.1957455873,
0.0661825985,
-0.0151075944,
0.179418385,
0.2044957131,
0.0841714144,
0.0573600791,
-0.0746096447,
-0.1888588965,
0.2203991562,
0.1704452336,
-0.5285298824,
-0.0067848414,
-0.2358623147,
0.2502961755,
-0.3065750599,
-0.0481773168,
0.0667922944,
-0.2848745584,
-0.2406480312,
0.2247036994,
-0.1294989586,
0.0832540244,
-0.1042543203,
0.2468925714,
-0.0310731567,
-0.1913966388,
0.1393317431,
-0.1290224791,
-0.279502809,
0.0142540634,
0.0443123057,
-0.0355800688,
-0.0780695528,
0.0344354957,
-0.0694945082,
-0.2210642695,
-0.0055246279,
0.2116844356,
-0.0453429222,
0.0798724815,
0.1930056661,
-0.043824181,
0.024610281,
-0.1626571119,
0.1271108389,
0.2256251425,
0.0464623347,
0.2204771042,
0.2706634998,
-0.0505864322,
-0.1775079966,
-0.7641392946,
-0.2559478581,
-0.1818013489,
0.0870506167,
-0.1146429777,
-0.0085543301,
-0.0022585727,
0.3254058361,
-0.0912780613,
0.2516676486,
-0.1356218755,
-0.0944924429,
-0.2183252275,
0.514627099,
-0.1794224083,
-0.3070169985,
0.2129271924,
-0.1601765305,
0.0302104466,
0.3554805517,
-0.4325183332,
0.2259276062,
-0.0241388381,
0.0817529857,
-0.0706898272,
-0.0414354429,
0.1300362498,
-0.0349059179,
0.1392338574,
-0.0643521771,
-0.1901703924,
0.3100558519,
-0.0989006162,
0.0988743156,
0.1584569216,
0.490752846,
-0.1198669225,
0.8878324032,
0.0415005162,
0.0302718319,
0.1754055023,
-0.0502933785,
0.3468176723,
0.123548165,
-0.2270590067,
0.0012115687,
-0.1244318634,
-0.3443957567,
0.3532139361,
-0.0356559604,
-0.1530627608,
-0.1682809442,
0.207994923,
-0.2423229963,
-0.2623267174,
0.2239593267,
-0.1331668645,
-0.0297012255,
0.0486555621,
0.2154512554,
0.123316586,
-0.1159011722,
-0.1719330251,
0.2245163918,
0.2053622156,
-0.0583072752,
0.09137927,
-0.1581433862,
-0.2692698836,
0.1932858229,
-0.0391293615,
0.3117920458,
0.148864001,
-0.0657142177,
0.0432027616,
0.2029721141,
0.7653226256,
-0.2280742675,
-0.0244640578,
0.134986937,
-0.1019805968,
-0.0461997017,
-0.3012251258,
-0.0984893739,
0.284285605,
0.0264638253,
0.2631990314,
-0.1154609695,
-0.062729761,
0.3587510884,
0.12632972,
-0.2580282092,
-0.328710109,
-0.1299744993,
0.0623989105,
-0.1074783206,
-0.1632817984,
0.1607127786,
0.0724806041,
-0.339621067,
-0.0296116769,
-0.2027329952,
-0.1998029053,
0.3576449752,
0.1423181593,
0.2183055729,
0.0453951433,
0.2475807369,
0.1354848742,
0.1880696714,
0.2552323639,
0.8236986995,
-0.2230927795,
-0.8741761446,
0.2771154344,
-0.4476577342,
0.3850244284,
0.1348791122,
-0.3043456972,
-0.0478805937,
-0.2633569539,
-0.1017214507,
-0.0708949417,
-0.0380506441,
0.1352691948,
-0.0860931575,
-0.3213091791,
-0.5509391427,
0.4983871579,
-0.2160191983,
-0.1526778638,
0.1288546324,
0.0501867607,
-0.3783158064,
0.4786065221,
-0.0916961432,
0.7594622374,
-0.1534637511,
-0.0095573347,
0.1201100945,
-0.1898284853,
0.5620492697,
-0.3316332698,
-0.0203495361,
-0.4737032056,
-0.1479178965,
-0.1999813616,
0.0326113105,
0.1313995123,
0.6535791159,
-0.2025292218,
0.4069702327,
-0.0216783881,
0.3880766332,
0.0278298706,
0.2338405997,
0.3021881282,
-0.196459204,
-0.1149767712,
0.0562808067,
-0.0653755069,
0.0055883769,
0.0434993953,
-0.0228689332,
-0.2929773927,
-0.0981302336,
-0.2989466786,
0.2829633653,
-0.0461630374,
0.0756251067,
0.036313165,
-0.4664283693,
0.5202758312,
0.4734295011,
0.0500106588,
-0.0365421511,
-0.2011888623,
0.0731040165,
-0.022299692,
0.0527495481,
-0.100542441,
-0.0462412387,
0.1261732429,
0.2554221153,
-0.2163128555,
0.2950341105,
-0.1905879527,
0.0038561523,
0.2529627681,
0.3160938919,
0.2802587152,
-0.5410071015,
-0.365370661,
-0.1273266673,
0.1805910021,
-0.0940904021,
0.0280140787,
-0.0596980862,
0.1222135574,
0.0425459258,
0.0511627868,
-0.3972802758,
0.0528305769,
0.1606619954,
-0.0169749949,
0.144810617,
0.4566456079,
0.3148105741,
-0.1113459468,
-0.1686692983,
0.1123687103,
0.1194440648,
-0.5705484152,
0.1371758431,
0.0857446939,
0.290977329,
0.1026710868,
0.1484766603,
0.1521827877,
-0.2443036884,
0.0830206648,
-0.4805286825,
0.0864084363,
-0.0174752027,
-0.1169794649,
0.0771259516,
-0.0416629352,
-0.2976438403,
-0.0453317612,
-0.0287651233,
-0.1823899746,
0.059815608,
0.034987554,
0.0892362893,
0.1588579863,
0.4067537785,
-0.2238025665,
-0.2627975941,
-0.0229014941,
-0.0026906217,
0.0822317898,
-0.084356375,
-0.2125820816,
0.1974670887,
0.0379100479,
0.2562305331,
-0.2446064502,
-0.1998938918,
-0.2053592354,
-0.1485075951,
0.1421972662,
0.376024574,
-0.0472772121,
0.4416265786,
0.1379781961,
0.0541281365,
-0.5553628206,
0.332267046,
-0.2706060112,
0.2641065419,
0.123038128,
0.2363657057,
0.0792645141,
0.1204859465,
-0.0828920305,
-0.0638345331,
-0.1384111345,
-0.1215420812,
0.2717138529,
-0.2314951122,
0.3026966751,
0.1328426749,
0.3071196675,
0.3615556359,
-0.0719614401,
-0.0967969373,
0.1469047368,
0.0921405852,
-0.3382647634,
0.2435208857,
0.126905188,
0.2162829936,
-0.0451464429,
0.4322558343,
-0.0617983826,
-0.0199851617,
0.1237172186,
0.1230705678,
0.5733161569,
0.1306246519,
0.2434352189,
0.2835692465,
-0.0492273755,
0.1505292505,
0.2348003834,
-0.1263485551,
0.0890480429,
0.4723781645,
-0.2439919561,
0.0161353704,
0.2719652951,
0.1843554676,
-0.0243696272,
-0.5952978134,
0.222747162,
0.2796723843,
-0.3082638383,
-0.114130035,
0.1221165508,
0.5427789092,
-0.1207562387,
0.0791807026,
-0.3032689095,
-0.0884521604,
0.0508168861,
-0.0339202955,
-0.1227207109,
-0.2430638969,
-0.4158158302,
0.2870645523,
-0.1807210445,
-0.1423524022,
0.3956697881,
0.1432175785,
-0.0040156059,
-0.4216871858,
0.1565315723,
0.12277814,
0.1232949197,
-0.2992655635,
0.0295117404,
-0.1005282998,
0.0502833873,
0.3894433081,
-0.1678599268,
0.2446742505,
0.4575292766,
0.0600555539,
-0.3788636327,
-0.0480150729,
-0.0691346452,
-0.0939063504,
0.3936226666,
-0.0502738953,
0.2647095621,
0.3244107962,
0.0758297741,
-0.0198911596,
0.2924803197,
0.160042733,
0.0725025088,
-0.5550231338,
-0.0429756269,
0.0614250749,
-0.0587634593,
-0.03435608,
-0.1492106169,
-0.1095792651,
-0.2929445803,
0.3705631495,
0.1326084882,
0.25467664,
0.0892879888,
-0.0064053796,
-0.0946697593,
0.1924178451,
0.2412943244,
0.0998175964,
-0.5010778904,
0.0086915791,
-0.7816188931,
-0.0986603051,
-0.2541855574,
-0.1950031519,
-0.0570685789,
0.2755529881,
0.2792521715,
0.2758786976,
-0.1493149102,
0.2054743022,
0.0526696816,
0.35653615,
-0.2402201742,
-0.2829423249,
-0.2615457773,
0.0218832847,
-0.06113616,
-0.4771633148,
0.0334572196,
0.3662996292,
-0.1833494157,
-0.1305170953,
-0.0736190379,
0.2136422992,
-0.1871749163,
0.353875339,
0.0364601836,
0.5024868846,
0.034452647,
0.3173484802,
-0.3440788984,
-0.185905695,
-0.2605513334,
0.2560062706,
-0.0559968352,
0.4194791317,
-0.3687512577,
0.1282572448,
-0.1930969954,
-0.0086329132,
0.0988137275,
0.2830575705,
-0.3722725511,
0.263320893,
-0.1280459613,
0.2847010493,
-0.0594866164,
0.0075213499,
-0.1713928729,
0.133512646,
-0.1347590089,
-0.1800506115,
0.2812541127,
-0.2079533935,
-0.2370754778,
-0.0244695544,
0.1872670799,
0.2123693824,
0.0568698719,
-0.5106428266,
-0.1206398308,
0.446855247,
-0.1862432659,
-0.0663678274,
0.0551759228,
0.0801295787,
0.0314653069,
-0.1960242838,
0.2442514896,
0.2878350019,
-0.26079458,
-0.0911526829,
-0.4131067097
] |
https://github.com/huggingface/datasets/issues/743 | load_dataset for CSV files not working | > Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets.
>
> `from datasets import load_dataset`
> `dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master")`
>
> Displayed error:
> `... ArrowInvalid: CSV parse error: Expected 2 columns, got 1`
I'm also facing the same issue when trying to load from a csv file locally:
```python
from nlp import load_dataset
dataset = load_dataset('csv', data_files='sample_data.csv')
```
Error when executed from Google Colab:
```python
ArrowInvalid Traceback (most recent call last)
<ipython-input-34-79a8d4f65ed6> in <module>()
1 from nlp import load_dataset
----> 2 dataset = load_dataset('csv', data_files='sample_data.csv')
9 frames
/usr/local/lib/python3.7/dist-packages/nlp/load.py in load_dataset(path, name, version, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, save_infos, **config_kwargs)
547 # Download and prepare data
548 builder_instance.download_and_prepare(
--> 549 download_config=download_config, download_mode=download_mode, ignore_verifications=ignore_verifications,
550 )
551
/usr/local/lib/python3.7/dist-packages/nlp/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs)
461 if not downloaded_from_gcs:
462 self._download_and_prepare(
--> 463 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
464 )
465 # Sync info
/usr/local/lib/python3.7/dist-packages/nlp/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
535 try:
536 # Prepare split will record examples associated to the split
--> 537 self._prepare_split(split_generator, **prepare_split_kwargs)
538 except OSError:
539 raise OSError("Cannot find data file. " + (self.manual_download_instructions or ""))
/usr/local/lib/python3.7/dist-packages/nlp/builder.py in _prepare_split(self, split_generator)
863
864 generator = self._generate_tables(**split_generator.gen_kwargs)
--> 865 for key, table in utils.tqdm(generator, unit=" tables", leave=False):
866 writer.write_table(table)
867 num_examples, num_bytes = writer.finalize()
/usr/local/lib/python3.7/dist-packages/tqdm/notebook.py in __iter__(self, *args, **kwargs)
213 def __iter__(self, *args, **kwargs):
214 try:
--> 215 for obj in super(tqdm_notebook, self).__iter__(*args, **kwargs):
216 # return super(tqdm...) will not catch exception
217 yield obj
/usr/local/lib/python3.7/dist-packages/tqdm/std.py in __iter__(self)
1102 fp_write=getattr(self.fp, 'write', sys.stderr.write))
1103
-> 1104 for obj in iterable:
1105 yield obj
1106 # Update and possibly print the progressbar.
/usr/local/lib/python3.7/dist-packages/nlp/datasets/csv/ede98314803c971fef04bcee45d660c62f3332e8a74491e0b876106f3d99bd9b/csv.py in _generate_tables(self, files)
78 read_options=self.config.pa_read_options,
79 parse_options=self.config.pa_parse_options,
---> 80 convert_options=self.config.convert_options,
81 )
82 yield i, pa_table
/usr/local/lib/python3.7/dist-packages/pyarrow/_csv.pyx in pyarrow._csv.read_csv()
/usr/local/lib/python3.7/dist-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status()
/usr/local/lib/python3.7/dist-packages/pyarrow/error.pxi in pyarrow.lib.check_status()
ArrowInvalid: CSV parse error: Expected 1 columns, got 8
```
Version:
```
nlp==0.4.0
``` | Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets.
`
from datasets import load_dataset
`
`
dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master")
`
Displayed error:
`
...
ArrowInvalid: CSV parse error: Expected 2 columns, got 1
`
I should mention that when I've tried to read data from `https://github.com/lhoestq/transformers/tree/custom-dataset-in-rag-retriever/examples/rag/test_data/my_knowledge_dataset.csv` it worked without a problem. I've read that there might be some problems with /r character, so I've removed them from the custom dataset, but the problem still remains.
I've added a colab reproducing the bug, but unfortunately I cannot provide the dataset.
https://colab.research.google.com/drive/1Qzu7sC-frZVeniiWOwzoCe_UHZsrlxu8?usp=sharing
Are there any work around for it ?
Thank you | 319 | load_dataset for CSV files not working
Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets.
`
from datasets import load_dataset
`
`
dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master")
`
Displayed error:
`
...
ArrowInvalid: CSV parse error: Expected 2 columns, got 1
`
I should mention that when I've tried to read data from `https://github.com/lhoestq/transformers/tree/custom-dataset-in-rag-retriever/examples/rag/test_data/my_knowledge_dataset.csv` it worked without a problem. I've read that there might be some problems with /r character, so I've removed them from the custom dataset, but the problem still remains.
I've added a colab reproducing the bug, but unfortunately I cannot provide the dataset.
https://colab.research.google.com/drive/1Qzu7sC-frZVeniiWOwzoCe_UHZsrlxu8?usp=sharing
Are there any work around for it ?
Thank you
> Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets.
>
> `from datasets import load_dataset`
> `dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master")`
>
> Displayed error:
> `... ArrowInvalid: CSV parse error: Expected 2 columns, got 1`
I'm also facing the same issue when trying to load from a csv file locally:
```python
from nlp import load_dataset
dataset = load_dataset('csv', data_files='sample_data.csv')
```
Error when executed from Google Colab:
```python
ArrowInvalid Traceback (most recent call last)
<ipython-input-34-79a8d4f65ed6> in <module>()
1 from nlp import load_dataset
----> 2 dataset = load_dataset('csv', data_files='sample_data.csv')
9 frames
/usr/local/lib/python3.7/dist-packages/nlp/load.py in load_dataset(path, name, version, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, save_infos, **config_kwargs)
547 # Download and prepare data
548 builder_instance.download_and_prepare(
--> 549 download_config=download_config, download_mode=download_mode, ignore_verifications=ignore_verifications,
550 )
551
/usr/local/lib/python3.7/dist-packages/nlp/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs)
461 if not downloaded_from_gcs:
462 self._download_and_prepare(
--> 463 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
464 )
465 # Sync info
/usr/local/lib/python3.7/dist-packages/nlp/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
535 try:
536 # Prepare split will record examples associated to the split
--> 537 self._prepare_split(split_generator, **prepare_split_kwargs)
538 except OSError:
539 raise OSError("Cannot find data file. " + (self.manual_download_instructions or ""))
/usr/local/lib/python3.7/dist-packages/nlp/builder.py in _prepare_split(self, split_generator)
863
864 generator = self._generate_tables(**split_generator.gen_kwargs)
--> 865 for key, table in utils.tqdm(generator, unit=" tables", leave=False):
866 writer.write_table(table)
867 num_examples, num_bytes = writer.finalize()
/usr/local/lib/python3.7/dist-packages/tqdm/notebook.py in __iter__(self, *args, **kwargs)
213 def __iter__(self, *args, **kwargs):
214 try:
--> 215 for obj in super(tqdm_notebook, self).__iter__(*args, **kwargs):
216 # return super(tqdm...) will not catch exception
217 yield obj
/usr/local/lib/python3.7/dist-packages/tqdm/std.py in __iter__(self)
1102 fp_write=getattr(self.fp, 'write', sys.stderr.write))
1103
-> 1104 for obj in iterable:
1105 yield obj
1106 # Update and possibly print the progressbar.
/usr/local/lib/python3.7/dist-packages/nlp/datasets/csv/ede98314803c971fef04bcee45d660c62f3332e8a74491e0b876106f3d99bd9b/csv.py in _generate_tables(self, files)
78 read_options=self.config.pa_read_options,
79 parse_options=self.config.pa_parse_options,
---> 80 convert_options=self.config.convert_options,
81 )
82 yield i, pa_table
/usr/local/lib/python3.7/dist-packages/pyarrow/_csv.pyx in pyarrow._csv.read_csv()
/usr/local/lib/python3.7/dist-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status()
/usr/local/lib/python3.7/dist-packages/pyarrow/error.pxi in pyarrow.lib.check_status()
ArrowInvalid: CSV parse error: Expected 1 columns, got 8
```
Version:
```
nlp==0.4.0
``` | [
-0.0300139636,
0.1694913805,
0.0235361122,
0.2714545429,
0.2753946185,
0.1793169081,
0.4045258462,
0.2795949578,
0.287307024,
0.0150398426,
-0.048522789,
0.3499827683,
-0.121273011,
-0.068124041,
-0.1520152092,
-0.1536564976,
-0.0122302063,
0.1196545959,
-0.4033188522,
-0.0239688307,
-0.3553746939,
0.3309986591,
-0.2975635529,
0.0998898447,
-0.0714404285,
0.1982586235,
-0.0852634758,
0.3722809851,
-0.0867931321,
-0.3423325717,
0.5356936455,
-0.0946972519,
0.5112506151,
0.237475574,
-0.000117985,
0.0406566411,
0.3306674957,
-0.1105560362,
-0.2995379567,
-0.6809146404,
0.0257160366,
-0.5392317772,
0.4017813206,
-0.1466552019,
-0.0527870357,
0.0457104854,
-0.0339156985,
-0.4215281606,
0.3402785361,
0.4766379297,
0.1821975708,
-0.0922983736,
-0.1318365186,
0.0157460645,
0.4828668833,
0.0737523213,
-0.1259507537,
0.3762854934,
0.020776622,
-0.2392702252,
-0.1518490613,
0.0073806792,
-0.0787399486,
0.2552816272,
0.2491717041,
0.2138700634,
-0.2403773963,
-0.1153688431,
0.0140321348,
0.1130979359,
0.6585769653,
-0.1782786846,
-0.1866250187,
-0.0933596343,
0.0274394602,
-0.2190636992,
0.3825583458,
0.411262244,
0.0099166371,
0.3105877042,
-0.1560349911,
0.0569583401,
-0.2717015743,
0.2379803956,
0.1065416783,
-0.0040131882,
-0.1554980874,
0.3119683266,
0.0586884655,
0.0225888863,
0.2661927342,
-0.140239656,
-0.013808609,
0.2710199654,
-0.6992921233,
0.3220380545,
-0.0580020882,
-0.0070766509,
-0.0701762661,
0.1433867663,
0.3351225853,
-0.0486308783,
-0.0925269574,
0.3708164692,
0.2821000516,
0.1138464659,
-0.0387673266,
0.2824319303,
0.2630428374,
-0.2030365765,
0.0290507376,
-0.1195269898,
-0.2782042027,
-0.5090216398,
-0.1248251945,
0.2247498184,
0.2519868016,
-0.2572541833,
-0.1120415479,
0.073333621,
-0.2260325998,
0.0147899352,
-0.0744889677,
0.2470280677,
0.0601702593,
0.3175557852,
0.0203007609,
0.2700637281,
-0.170409888,
-0.3315724134,
-0.0171891488,
0.1262025833,
-0.3891071379,
-0.0880587101,
0.5497082472,
-0.1239741072,
0.167173326,
0.1720093936,
-0.122945711,
-0.2391265035,
-0.0686035603,
-0.2752361298,
0.0480618067,
0.280069232,
0.1143449843,
0.1900820732,
0.318061769,
-0.1938028932,
-0.1355798244,
0.2522109747,
-0.385945946,
-0.2324067354,
-0.1954536736,
0.0903787613,
-0.3213601708,
0.0626309961,
-0.3915348649,
0.0156990401,
0.0457715839,
-0.2120892406,
-0.1808323413,
-0.3092979491,
-0.3017325401,
-0.2416178286,
0.0150501505,
0.4399941564,
-0.6876296997,
0.2028163224,
-0.1004163921,
0.0604226477,
0.1709206402,
0.277290225,
-0.2981635928,
0.1015651971,
-0.2844895124,
0.0790063143,
0.2385803014,
-0.2647064626,
-0.33504498,
0.3595809937,
-0.0717723221,
-0.0879994556,
0.0850763619,
0.0455226265,
0.3238098025,
0.0071839355,
-0.1462552547,
0.3527290225,
-0.0047069527,
0.1135262102,
-0.238440603,
-0.1901739687,
0.2679092288,
0.2576400042,
-0.0618821494,
0.112978287,
0.2957235873,
-0.4787018597,
0.3347390294,
-0.102887094,
0.2226001173,
0.1331431568,
0.157267943,
0.0099993274,
0.2181573361,
0.0542479828,
-0.6148219109,
0.1521192789,
0.2315649688,
-0.0791517645,
-0.2202429026,
-0.0017673671,
-0.3930812478,
-0.0305652693,
-0.2295912057,
0.0227671899,
-0.0195134766,
0.0806080997,
0.0607919097,
-0.1256914735,
-0.0473370589,
0.386082381,
-0.2677579522,
0.017337475,
-0.4094600677,
0.3063093126,
0.0902064592,
-0.0382479094,
0.2489790022,
0.086373657,
0.249658823,
-0.1442181021,
-0.21049878,
0.2916674912,
0.2853559852,
0.0471605137,
0.0695526898,
-0.2708467841,
0.0942476466,
-0.2133666277,
0.0322466865,
0.2261848748,
0.3391343355,
-0.0313160717,
-0.5053209662,
0.3971852064,
-0.3178345859,
0.2437011003,
-0.113505587,
0.1233608723,
0.3453568816,
-0.0892552882,
-0.0802448988,
-0.0036904663,
0.1109052747,
0.1402169466,
0.2556708455,
0.1141964719,
-0.2472609133,
-0.1746397614,
0.1861750782,
0.1400505155,
-0.1960382313,
0.2133813351,
0.0154024344,
-0.1066111326,
0.3125394583,
0.2956348062,
0.4571994543,
0.0877336413,
-0.2595731914,
0.0056092422,
-0.0213324651,
-0.2613019943,
0.0891568288,
-0.0073955804,
0.0612981096,
0.2624717653,
0.2842779458,
0.097694993,
-0.1761981398,
-0.1439563334,
0.1858264059,
0.2496438622,
-0.5318590999,
0.0452269688,
-0.3609484732,
0.1762496084,
-0.2729725838,
0.0102981813,
0.0426911935,
-0.2635089159,
-0.3743282855,
0.2503638268,
-0.1324360222,
0.0816713795,
-0.1343077421,
0.2072207779,
0.0467180237,
-0.2297454774,
0.1525464803,
-0.2799644172,
-0.3581960499,
0.0062142722,
0.147846505,
0.0675943643,
-0.0600930676,
0.0656323656,
-0.0216076933,
-0.2102790326,
-0.0601661094,
0.1272990704,
0.0478492454,
0.106566377,
0.1082932949,
-0.1527350247,
-0.1061808988,
-0.1949448884,
0.2128023207,
0.0481397808,
-0.0327665173,
0.35884884,
0.2019793987,
-0.1589812338,
-0.2023463249,
-0.6301295161,
-0.4012895823,
-0.2943171263,
0.1171187758,
-0.1430850327,
0.0297287069,
0.1440818906,
0.2027332485,
0.0192648955,
0.2147852927,
-0.0837454498,
-0.0446470752,
-0.2041231692,
0.5625195503,
-0.3179400861,
-0.4271067381,
0.1390203536,
-0.0806053728,
0.0882802308,
0.3525592685,
-0.4951310158,
0.1878037453,
-0.1395659894,
0.0535572395,
0.0482543856,
0.0520809591,
0.0155836418,
-0.0864483565,
0.0881129205,
-0.0037088469,
-0.189008981,
0.1955624819,
0.0358777381,
0.0729665756,
0.2429574877,
0.4747929573,
-0.2480221689,
0.5842320919,
0.0097639337,
0.0339328833,
0.3762375414,
-0.1005920246,
0.3321923614,
0.110312596,
-0.2510378957,
0.115981549,
-0.0786155611,
-0.2959711254,
0.3519627154,
-0.0678922087,
-0.1585744321,
-0.1452057511,
0.2150489092,
-0.2901726961,
-0.2035694122,
0.2112041861,
-0.0854677185,
0.1272020638,
0.0595781803,
0.0544950068,
0.0178847089,
-0.3537165225,
-0.1255513877,
0.1114379764,
0.1716856658,
-0.0553592741,
0.0629698485,
-0.1966582835,
-0.3097869754,
0.2110659927,
-0.0279055871,
0.5248818994,
0.0256067812,
-0.0179026425,
0.0413182229,
0.1429856718,
0.5542982221,
-0.1822313219,
0.1075033247,
0.1693190932,
-0.043937806,
-0.2650454044,
-0.2759802341,
-0.0867699087,
0.2865699828,
0.0068583209,
0.2774000168,
-0.0021760911,
-0.0606579557,
0.345343709,
0.1594411284,
-0.2205272466,
-0.4335667193,
-0.1399964988,
-0.027331613,
-0.1427408457,
-0.2897570133,
0.0066128001,
0.2067683637,
-0.2675769627,
0.1027110815,
-0.1962901801,
-0.1330080628,
0.2451456189,
0.114770785,
0.2343938351,
0.1104076952,
0.161122486,
0.1183594167,
0.2257018387,
0.0926598758,
0.7872276902,
-0.1599138677,
-0.7599292397,
0.2973037064,
-0.4518716931,
0.361905545,
-0.0013811663,
-0.2888435721,
-0.0669874102,
-0.2123683244,
-0.1393367946,
-0.1512574553,
-0.1044285074,
0.0254813954,
-0.0071148723,
-0.0671477839,
-0.491982758,
0.5569452643,
-0.1400378644,
-0.098478511,
0.046917744,
-0.1453376114,
-0.3126710653,
0.5209851861,
-0.128426075,
0.5789878368,
-0.1519059688,
-0.0054512741,
0.2000330985,
-0.1395257115,
0.4839043319,
-0.207264483,
-0.0124838185,
-0.4585461318,
-0.0315013714,
-0.1526234448,
-0.0345807262,
0.145383656,
0.609159708,
-0.1539793164,
0.3765083551,
-0.013852194,
0.3222675025,
0.0654193759,
0.2620981634,
0.3155653775,
-0.2835989296,
-0.3397398889,
0.092229411,
-0.1965546012,
0.0049897917,
0.1000767201,
-0.0706439242,
-0.2413426787,
-0.0535263792,
-0.2976709604,
0.3831694722,
0.0292882174,
0.15490897,
0.1162339151,
-0.5188086629,
0.5603202581,
0.4401640594,
0.1686897278,
-0.0252273846,
-0.1860709637,
0.0463444665,
-0.0480939671,
0.0278099403,
-0.1102225482,
0.0982126743,
-0.0237595104,
0.1585787088,
-0.1691181064,
0.1771286726,
-0.1403254718,
-0.1148724183,
0.3304219842,
0.2738517821,
0.1867149919,
-0.385392487,
-0.3837368488,
-0.215171352,
0.1129152477,
-0.0398344621,
0.0504122265,
-0.0296673849,
0.1127495021,
-0.0301919021,
0.1432683766,
-0.3665799499,
0.1447133869,
0.2785313725,
-0.1977972686,
0.0565510541,
0.4927228987,
0.4739417434,
-0.0741870552,
-0.150022015,
-0.0280873179,
0.0692972839,
-0.5587098598,
0.0750577301,
0.1246409416,
0.2721288204,
0.0574427694,
0.1689197123,
0.154979527,
-0.1622060239,
0.0998938009,
-0.7103562355,
-0.0916900709,
-0.0616347231,
-0.1580160856,
-0.0111924522,
0.116204977,
-0.3119654357,
-0.016569633,
-0.0504603684,
-0.185105294,
0.047907643,
-0.02398571,
0.0872046351,
0.2771909535,
0.2218028307,
-0.2269234359,
-0.299084723,
0.0183532648,
0.0005212827,
0.0555058904,
-0.1308144331,
-0.1846291423,
0.1910744011,
0.0090254489,
0.0584628433,
-0.323887378,
-0.2742692828,
-0.1618221402,
-0.1465341598,
0.0760332346,
0.2272856832,
-0.0637923554,
0.4846358895,
-0.083657302,
-0.0416974723,
-0.4219719768,
0.2852167189,
-0.2585068941,
0.2118566781,
0.07288941,
0.2497306168,
0.1491449773,
0.0933690593,
-0.2618623972,
-0.0494160093,
-0.2759158909,
-0.0645884871,
0.2769884467,
-0.3756109178,
0.2140122652,
0.1697147787,
0.3523684442,
0.3072983623,
-0.1214204729,
-0.1546292007,
0.1908560991,
0.093211472,
-0.3811016083,
0.1589249372,
0.092886135,
0.3418722451,
-0.0889321715,
0.1998253465,
0.101936534,
-0.2631267309,
-0.0558819808,
0.1367946416,
0.6348993778,
0.0320949852,
0.067378372,
0.3244943917,
0.0105597973,
0.1128845066,
0.1104466692,
0.0207564384,
0.0966799855,
0.4950858355,
-0.1185560524,
-0.1133045927,
0.3128228486,
0.3223558366,
-0.1348776817,
-0.6856023669,
0.2883698046,
0.3393713236,
-0.1629763842,
-0.0226083584,
0.1849780083,
0.6478070021,
-0.0429784693,
0.0582769178,
-0.2627933621,
0.0404915027,
0.1200711504,
-0.0829428136,
-0.2660667002,
-0.1276918799,
-0.3850883245,
0.3157816231,
-0.2050876319,
0.034360148,
0.4355420768,
0.2526459098,
-0.0578064285,
-0.5292367935,
0.2077123374,
0.2296299636,
0.0024830252,
-0.2734234929,
0.1571272761,
-0.025715787,
0.0132466257,
0.2618346512,
-0.1036356241,
0.3829804063,
0.5243800282,
-0.0099794138,
-0.26228863,
-0.1545639336,
-0.0780446827,
-0.102975063,
0.4679357708,
0.0346284434,
0.2928477228,
0.3257479966,
0.1019152254,
0.0164210945,
0.3097043633,
0.1844926924,
0.1199440509,
-0.2552143335,
0.0283733271,
0.1363509595,
-0.0323046595,
-0.1254559904,
-0.1230395809,
-0.1966532469,
-0.169341892,
0.4745277464,
0.2143622637,
0.2723405957,
0.0460847132,
0.0024915412,
-0.1578920633,
0.3675534129,
0.476944834,
0.1246795207,
-0.4641590416,
-0.0805026963,
-0.802331686,
-0.0381997898,
-0.175246492,
-0.1333919913,
0.0795962363,
0.2359375656,
0.2038174123,
0.2918551564,
-0.2377458662,
0.1682192683,
-0.1148637235,
0.2035627961,
-0.2020426989,
-0.18422997,
-0.1682481915,
0.0981215835,
-0.1045108438,
-0.4657823443,
0.0697081536,
0.2155238092,
-0.1185948849,
-0.1940637082,
-0.0590236224,
0.0045163259,
-0.160934329,
0.2894139588,
0.0564140454,
0.4611913562,
0.0201222673,
0.2057645023,
-0.4807578325,
-0.2439057976,
-0.1527062058,
0.2866176367,
-0.0924916118,
0.4068797827,
-0.3040656149,
0.1196670309,
-0.2718938589,
0.070693247,
-0.0065752789,
0.1731266826,
-0.2251240313,
0.1730985641,
-0.1398611069,
0.1454410553,
-0.1590026766,
-0.0354485996,
-0.1513581872,
0.2548292279,
-0.1024666876,
-0.2797610164,
0.2372238338,
-0.3887592256,
-0.2771703601,
0.1228231713,
0.1983719766,
0.0480465144,
0.0820774734,
-0.4914507866,
0.0580240786,
0.3590140343,
-0.1576883495,
-0.0586698689,
0.0771083832,
0.013606824,
0.0447379351,
-0.1328226924,
0.1817384511,
0.2837625444,
-0.2722817659,
-0.1785668135,
-0.3695842028
] |
https://github.com/huggingface/datasets/issues/743 | load_dataset for CSV files not working | Hi @kauvinlucas
You can use the latest versions of `datasets` to do this.
To do so, just `pip install datasets` instead of `nlp` (the library was renamed) and then
```python
from datasets import load_dataset
dataset = load_dataset('csv', data_files='sample_data.csv') | Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets.
`
from datasets import load_dataset
`
`
dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master")
`
Displayed error:
`
...
ArrowInvalid: CSV parse error: Expected 2 columns, got 1
`
I should mention that when I've tried to read data from `https://github.com/lhoestq/transformers/tree/custom-dataset-in-rag-retriever/examples/rag/test_data/my_knowledge_dataset.csv` it worked without a problem. I've read that there might be some problems with /r character, so I've removed them from the custom dataset, but the problem still remains.
I've added a colab reproducing the bug, but unfortunately I cannot provide the dataset.
https://colab.research.google.com/drive/1Qzu7sC-frZVeniiWOwzoCe_UHZsrlxu8?usp=sharing
Are there any work around for it ?
Thank you | 38 | load_dataset for CSV files not working
Similar to #622, I've noticed there is a problem when trying to load a CSV file with datasets.
`
from datasets import load_dataset
`
`
dataset = load_dataset("csv", data_files=["./sample_data.csv"], delimiter="\t", column_names=["title", "text"], script_version="master")
`
Displayed error:
`
...
ArrowInvalid: CSV parse error: Expected 2 columns, got 1
`
I should mention that when I've tried to read data from `https://github.com/lhoestq/transformers/tree/custom-dataset-in-rag-retriever/examples/rag/test_data/my_knowledge_dataset.csv` it worked without a problem. I've read that there might be some problems with /r character, so I've removed them from the custom dataset, but the problem still remains.
I've added a colab reproducing the bug, but unfortunately I cannot provide the dataset.
https://colab.research.google.com/drive/1Qzu7sC-frZVeniiWOwzoCe_UHZsrlxu8?usp=sharing
Are there any work around for it ?
Thank you
Hi @kauvinlucas
You can use the latest versions of `datasets` to do this.
To do so, just `pip install datasets` instead of `nlp` (the library was renamed) and then
```python
from datasets import load_dataset
dataset = load_dataset('csv', data_files='sample_data.csv') | [
-0.0319089964,
0.0998911411,
0.0016062483,
0.3416560888,
0.2253116369,
0.1857516766,
0.3781753778,
0.284349829,
0.3076334298,
-0.0046044588,
-0.0736302584,
0.3338021934,
-0.1202117428,
-0.0361752994,
-0.2130929828,
-0.0587121882,
0.0360811576,
0.077162385,
-0.3771971166,
0.0088429973,
-0.3649477661,
0.3057534397,
-0.3254075646,
-0.0012912899,
-0.0824022293,
0.2179434597,
-0.0744924247,
0.326218307,
-0.1025669873,
-0.3898983598,
0.4821478426,
-0.0800586045,
0.4992661476,
0.2201850414,
-0.0001179858,
0.0123486966,
0.3326277435,
-0.0737969801,
-0.283677578,
-0.5951533318,
0.0139683858,
-0.5699070096,
0.3534557819,
-0.1155686229,
-0.038758982,
0.0617985651,
-0.0708744973,
-0.3653350472,
0.3587923348,
0.5203021765,
0.1995919496,
-0.2032061219,
-0.0811685026,
-0.0118457153,
0.5204197764,
0.0610237047,
-0.1259584427,
0.2708448172,
0.0428972207,
-0.2233494967,
-0.096420005,
0.0951558948,
-0.1126323715,
0.2678714693,
0.246888414,
0.2386397123,
-0.1517347097,
-0.1456524134,
0.0518767834,
0.1153155565,
0.6635106802,
-0.1355134696,
-0.1767300367,
-0.1062554047,
-0.0070097707,
-0.1568266451,
0.3422962129,
0.3546646535,
-0.0102008954,
0.3242202103,
-0.0250320546,
0.0301250815,
-0.2691827118,
0.1886888444,
0.1149084494,
0.0279929899,
-0.1570668072,
0.3057207465,
0.114892453,
0.0086926036,
0.2700323462,
-0.0869940519,
-0.0580079146,
0.2113418877,
-0.6860405803,
0.3148467541,
-0.1057037264,
-0.0131407194,
-0.0355926901,
0.2131418288,
0.28882882,
-0.0168032106,
-0.0877859741,
0.3701077104,
0.27307567,
0.0119340308,
-0.013130486,
0.2724969089,
0.2526119649,
-0.2041949183,
0.0607698783,
-0.1565535367,
-0.2978441715,
-0.5129749179,
-0.0728966817,
0.1486255229,
0.2486548573,
-0.1994403303,
-0.1814736724,
0.1242232993,
-0.2517415583,
-0.0170060806,
-0.1177756414,
0.2602039874,
0.0609210469,
0.3025762737,
0.0645255744,
0.2838416696,
-0.1195830554,
-0.3835786879,
-0.0249954239,
0.1081290096,
-0.3842245042,
-0.0725213438,
0.5409682989,
-0.1791387796,
0.1588602364,
0.2351215631,
-0.1358592659,
-0.3058112264,
-0.0346772969,
-0.2870726585,
0.0495087281,
0.2614045143,
0.0752796978,
0.205899626,
0.3096887469,
-0.2199796885,
-0.0928177088,
0.3182604909,
-0.4290421307,
-0.1496893167,
-0.1494026482,
0.1122687161,
-0.2766399384,
0.0197957419,
-0.3394756317,
0.0994087681,
0.039933648,
-0.2738414109,
-0.1835938692,
-0.290014714,
-0.2794314623,
-0.2576268911,
0.0108215734,
0.4110124111,
-0.7598642111,
0.2014148235,
-0.0385612026,
0.0635062307,
0.1321388334,
0.2012666464,
-0.238069281,
-0.0085032471,
-0.2470523268,
0.1170615256,
0.2001416981,
-0.2251779735,
-0.3695265055,
0.2039728612,
-0.0277521834,
-0.0621383414,
0.1256326437,
0.0767564327,
0.3356222212,
-0.0383710116,
-0.1593497545,
0.2200726569,
0.0207366403,
0.0405361876,
-0.2515651584,
-0.2080705762,
0.280746907,
0.2186111659,
-0.0173144322,
0.0922420472,
0.2300779223,
-0.5964019895,
0.3289181292,
-0.0431944206,
0.2586236596,
0.0781922489,
0.2754150629,
0.0668581724,
0.2769869566,
0.0377106443,
-0.5350412726,
0.1619913429,
0.4143819511,
-0.1803887039,
-0.1539356411,
-0.0427340381,
-0.3967544734,
-0.0268211029,
-0.1542126685,
-0.0362936333,
0.0212247744,
0.0724719763,
-0.0212219618,
-0.165815711,
-0.109108083,
0.3955934346,
-0.3020708561,
0.0671919435,
-0.3681291938,
0.283692807,
0.1172194481,
-0.0429602005,
0.2385154814,
0.0490524843,
0.2982417047,
-0.0532653704,
-0.1485974789,
0.2183761001,
0.2961488664,
-0.0237374678,
0.0841625482,
-0.2446897626,
0.0538064763,
-0.2391526997,
-0.0022593345,
0.2839283347,
0.3712150455,
-0.0852704495,
-0.5303791165,
0.3305388987,
-0.2939958274,
0.234398827,
-0.1652852893,
0.1570284665,
0.3054009378,
-0.0682469755,
-0.111652039,
0.0074362978,
0.1065213084,
0.0153381303,
0.2519037724,
0.1161822081,
-0.2326784581,
-0.1420404613,
0.105781436,
0.1679905206,
-0.2043682188,
0.2531194389,
-0.0756663308,
-0.1157083884,
0.3229526281,
0.2924413383,
0.449013263,
0.1327141076,
-0.2260429859,
-0.0074031223,
0.0159657747,
-0.2307156026,
0.0959511101,
-0.0015275776,
0.010451775,
0.2142620087,
0.2492853254,
0.1078536808,
-0.1244597584,
-0.0946542174,
0.1780857444,
0.2668476999,
-0.5732167959,
0.0274306014,
-0.2653020024,
0.2753982842,
-0.2149260044,
-0.0302291177,
0.1330323815,
-0.2786575854,
-0.3122958839,
0.3066864312,
-0.092500031,
0.0600425005,
-0.1841714978,
0.2245589793,
0.043174468,
-0.1701753885,
0.0359236002,
-0.2332857549,
-0.3239172101,
0.0234429687,
0.1193630025,
0.0211772434,
-0.0095900372,
0.1299154162,
0.0245018005,
-0.2708142102,
-0.0616757646,
0.0817396194,
0.0176403392,
0.1004183665,
0.1105281413,
-0.1548153162,
-0.0887109414,
-0.1159627736,
0.2029959708,
0.0429197326,
0.0456041694,
0.3967784047,
0.2087471783,
-0.149520427,
-0.1410147548,
-0.6391359568,
-0.3571047485,
-0.2650281787,
0.0800265595,
-0.1071311384,
-0.02715813,
0.1139520258,
0.2778880298,
-0.0299418122,
0.1976011097,
-0.0752972513,
-0.138843745,
-0.2092313319,
0.5889599323,
-0.2381598949,
-0.344022125,
0.2079726756,
-0.0778595731,
0.0502682365,
0.35340482,
-0.4512411058,
0.1194554195,
-0.0669645742,
0.0515391529,
-0.0284977686,
0.0880324617,
0.0203699041,
-0.0561099201,
0.0769536868,
-0.0587272011,
-0.1870903075,
0.188962087,
-0.0395995378,
0.0470474549,
0.2158957124,
0.4871895015,
-0.1779665947,
0.5998916626,
0.1483033299,
0.0594504997,
0.3233927786,
-0.0991086066,
0.319133848,
0.1864456236,
-0.2664169073,
0.0995650962,
-0.102683574,
-0.2561932206,
0.3076231778,
-0.0021681786,
-0.1340125799,
-0.0833597705,
0.2881458998,
-0.3194309473,
-0.1619985998,
0.171289891,
-0.0611390024,
0.049943205,
0.0561221838,
0.0949666351,
0.0194642469,
-0.2995352745,
-0.110983476,
0.0919158161,
0.1619724184,
-0.07992284,
0.0896495357,
-0.1746823192,
-0.3334071934,
0.2311436832,
-0.1066225767,
0.4669583738,
0.0766967982,
-0.0314851776,
0.0639585927,
0.1796960235,
0.674059689,
-0.2698616683,
0.0136660878,
0.1487310678,
0.0062907934,
-0.2670131326,
-0.2315465957,
-0.0807919949,
0.2888070047,
0.0171444602,
0.2355084568,
-0.0577475354,
0.0189798959,
0.386697948,
0.1330911368,
-0.1693068743,
-0.4248482883,
-0.1115749627,
-0.0922460109,
-0.1378073394,
-0.2785550952,
0.0787897259,
0.09517546,
-0.2379310876,
0.091472134,
-0.2159520835,
-0.1552422643,
0.309327215,
0.1034008712,
0.2509728968,
0.0663093179,
0.1835235059,
0.2088620663,
0.16564852,
0.1542242616,
0.7836304903,
-0.2060810328,
-0.8606123924,
0.1866776496,
-0.4865393043,
0.3519998193,
-0.0379053727,
-0.3236553669,
-0.038450297,
-0.2536813319,
-0.1381225437,
-0.1436240971,
-0.1135774851,
0.0669509619,
0.0202171877,
-0.1511392593,
-0.5407763124,
0.5842847824,
-0.0988449901,
-0.1432559192,
0.1049456149,
-0.0833620131,
-0.3322687149,
0.4414900541,
-0.137090385,
0.606569171,
-0.0918172449,
-0.0183183122,
0.1956822276,
-0.193795979,
0.4673050046,
-0.240460366,
-0.048380781,
-0.4810394645,
-0.0766466334,
-0.1338803172,
0.0181351379,
0.1137555242,
0.5482631326,
-0.2174835056,
0.3718591928,
-0.0522972718,
0.3556438386,
0.1137580946,
0.176564008,
0.2892504334,
-0.2167296112,
-0.2115511894,
0.1327031404,
-0.1762226075,
-0.0496777259,
0.0918726251,
0.0414729118,
-0.2431041747,
-0.0586546808,
-0.3483195305,
0.2833225131,
-0.039646633,
0.0894253403,
0.1615225375,
-0.5426151156,
0.5322107077,
0.4186406136,
0.1603856683,
-0.0692002475,
-0.1993328184,
0.085705623,
-0.0149809197,
0.0396604091,
-0.116350241,
0.0064522922,
-0.079364039,
0.2109177411,
-0.2009474337,
0.2634612918,
-0.0781921446,
-0.0890198499,
0.2962190509,
0.2987450659,
0.2094630897,
-0.4391553104,
-0.4187193215,
-0.2294870764,
0.1130285934,
-0.1019377634,
0.0660435334,
0.0144572565,
0.0806366503,
0.015248456,
0.0845036805,
-0.332015872,
0.1660001427,
0.2239615321,
-0.2200843841,
0.0675338805,
0.4705263674,
0.4601635039,
-0.1151259542,
-0.1658547521,
0.0118581429,
0.0688946247,
-0.5620556474,
0.0882044509,
0.1442664564,
0.2655463219,
0.1164887846,
0.1526083946,
0.1590539813,
-0.2141197473,
0.0994580761,
-0.6414243579,
-0.0282892212,
-0.0687484145,
-0.1128348708,
0.0191986077,
0.0454145521,
-0.4401465356,
-0.0679348111,
-0.0427918285,
-0.2041548789,
0.1093606278,
0.0837498307,
0.0677038729,
0.2318922877,
0.2830805779,
-0.2703291774,
-0.3073881269,
0.0274373069,
0.0335033461,
0.0787499249,
-0.1534460187,
-0.202076897,
0.1672977954,
0.0078806467,
0.101172708,
-0.2869084179,
-0.2297090143,
-0.2180500925,
-0.1598302275,
0.0565553233,
0.2896663547,
-0.0289050676,
0.4706902802,
-0.0412927717,
-0.1117321849,
-0.4392004609,
0.2942404747,
-0.248356849,
0.1980830431,
0.0932522416,
0.2220346034,
0.1999328882,
0.128414765,
-0.1848099828,
0.0201672912,
-0.1850952208,
-0.128226459,
0.2976299524,
-0.3851636648,
0.2280169874,
0.2646117806,
0.3228786588,
0.3634847701,
-0.1232189685,
-0.0728206858,
0.1645081639,
0.1382198781,
-0.4042391181,
0.1750421524,
0.1052818298,
0.3410070837,
-0.0651911423,
0.2365865707,
-0.0005587339,
-0.227294147,
0.0137959849,
0.1443221122,
0.6307864785,
-0.0179705918,
0.0716784745,
0.2516494393,
0.0317493901,
0.0858843774,
0.155588761,
-0.0269954242,
0.0680791438,
0.4835269451,
-0.120927982,
-0.0494448692,
0.3966090083,
0.2534801662,
-0.2115232646,
-0.6216855645,
0.2509862483,
0.3503725529,
-0.2413452566,
-0.096491836,
0.1905130595,
0.7036423087,
-0.0018418171,
0.0893177688,
-0.2806841731,
-0.0770024881,
0.1189150065,
-0.127720207,
-0.2567796111,
-0.1458919942,
-0.3834772408,
0.2625010014,
-0.2112937272,
-0.0272009969,
0.4355693161,
0.2089947313,
-0.0739802569,
-0.6115413904,
0.1231901795,
0.2633065879,
0.0291671269,
-0.2828446925,
0.1036588475,
-0.0319652334,
0.0002866909,
0.3149214387,
-0.1049398929,
0.4309364855,
0.4255015254,
0.0442367494,
-0.2811280489,
-0.2040177286,
-0.0756348521,
-0.1283521801,
0.4942769706,
0.0512204804,
0.2805724144,
0.2355048358,
0.1105442941,
-0.0171550196,
0.325922519,
0.1368452907,
0.1284112781,
-0.4042657912,
-0.0327767767,
0.0683988482,
-0.0903458297,
-0.1030425131,
-0.2066885531,
-0.1445634514,
-0.1984061003,
0.4890684783,
0.2041655928,
0.2407863736,
0.1066623852,
0.0175766423,
-0.1467793286,
0.2029798776,
0.4359097481,
0.0723897964,
-0.4763016999,
-0.0362267271,
-0.8368654847,
-0.0388579927,
-0.2405020148,
-0.1494377553,
0.0304134861,
0.2102056146,
0.2651374936,
0.3032233119,
-0.13056463,
0.1635682285,
-0.0295823067,
0.2831853926,
-0.1725389957,
-0.1970800757,
-0.1247225106,
0.1123398989,
-0.0759787261,
-0.4329158068,
0.0330929533,
0.247573629,
-0.1090588421,
-0.1960029751,
-0.0595830493,
0.0602544993,
-0.219604522,
0.3812230527,
0.0339942276,
0.4314743578,
0.0173778087,
0.2955253124,
-0.4949624836,
-0.2224108577,
-0.1963848472,
0.2198837698,
-0.1356468201,
0.430129379,
-0.3860014379,
0.0560088716,
-0.1707787067,
0.0034311116,
0.003743358,
0.1853772104,
-0.3079569638,
0.2642028928,
-0.1082588807,
0.2179623991,
-0.1841496825,
-0.0677724332,
-0.1615977883,
0.2248894572,
-0.0729282796,
-0.2904008031,
0.2474672049,
-0.3145464063,
-0.2629494369,
0.0616531894,
0.2380640805,
0.1233011484,
0.1169600785,
-0.5120449066,
-0.0280579105,
0.3570629358,
-0.1396004409,
-0.0915263593,
0.1276017874,
0.0424167514,
0.0625732839,
-0.1565251052,
0.2158003896,
0.3222098351,
-0.238316834,
-0.1307480335,
-0.3803532124
] |