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.4902574121952057,
0.22889623045921326,
-0.033220916986465454,
0.13887310028076172,
0.23637273907661438,
-0.08911536633968353,
0.5481943488121033,
0.06737256050109863,
0.29559606313705444,
0.24505123496055603,
-0.010174298658967018,
-0.06949244439601898,
0.027625637128949165,
0.382728636264801,
-0.1057182177901268,
-0.021846486255526543,
-0.1530395746231079,
0.053661588579416275,
-0.17722830176353455,
0.08962293714284897,
-0.1652289181947708,
-0.09213341772556305,
-0.4337233901023865,
-0.07040616869926453,
-0.018133338540792465,
-0.15042580664157867,
-0.08321232348680496,
0.2194385975599289,
-0.16612516343593597,
-0.28075212240219116,
0.23882094025611877,
0.16331417858600616,
0.2291969358921051,
0.4750613868236542,
-0.00010338117863284424,
0.026317141950130463,
0.008208881132304668,
-0.0013797796564176679,
-0.22697386145591736,
-0.40258803963661194,
-0.21580448746681213,
-0.5285043716430664,
0.17964863777160645,
-0.4550705552101135,
-0.2032037377357483,
-0.0582045279443264,
-0.07459726929664612,
-0.4929272532463074,
0.3164803683757782,
0.34986722469329834,
0.2593776285648346,
0.5757412314414978,
-0.13582657277584076,
-0.27544480562210083,
-0.16067956387996674,
-0.1514873504638672,
-0.14930495619773865,
0.43661579489707947,
-0.014577265828847885,
-0.008213166147470474,
-0.00257741566747427,
0.09523345530033112,
-0.1961565911769867,
0.0413857139647007,
0.31634101271629333,
0.05868128687143326,
-0.10160985589027405,
-0.10181784629821777,
0.21980229020118713,
0.3930850327014923,
0.4261620044708252,
-0.27378031611442566,
-0.2470030039548874,
-0.3390045762062073,
-0.0023411698639392853,
-0.4567472040653229,
0.07884825766086578,
0.18367122113704681,
0.024228356778621674,
0.2248840034008026,
-0.3797212243080139,
-0.3182394802570343,
-0.3313247859477997,
0.1638135313987732,
-0.3214629292488098,
0.011169142089784145,
-0.25367939472198486,
0.06930157542228699,
-0.06124476343393326,
0.09133512526750565,
-0.17682062089443207,
-0.28515321016311646,
0.07391126453876495,
-0.061946574598550797,
-0.2594500482082367,
0.02685585990548134,
0.11837897449731827,
0.06844950467348099,
0.1312052607536316,
0.06520543992519379,
0.23980176448822021,
-0.018817970529198647,
0.07910709083080292,
0.04973464086651802,
0.44076403975486755,
0.29783591628074646,
0.007579720579087734,
-0.17687174677848816,
0.5290126204490662,
0.0910339504480362,
-0.02419445663690567,
-0.2989073693752289,
0.2565966546535492,
-0.3073079288005829,
0.13212093710899353,
0.013797844760119915,
0.3654092252254486,
-0.3048085868358612,
-0.15878832340240479,
-0.013998799957334995,
0.13926082849502563,
-0.042463138699531555,
0.16893218457698822,
0.252292275428772,
-0.271624892950058,
0.045141931623220444,
0.0697745606303215,
0.39693528413772583,
-0.2989782989025116,
-0.26576557755470276,
-0.05894823744893074,
-0.12591975927352905,
-0.11281132698059082,
0.06377130001783371,
0.1789909452199936,
0.0000601165957050398,
0.052043598145246506,
-0.0411280058324337,
0.24216541647911072,
-0.07350935786962509,
0.2981468439102173,
-0.09517239779233932,
0.08237823098897934,
0.2353082001209259,
0.2750586271286011,
-0.08741834759712219,
0.07691632211208344,
-0.20032179355621338,
0.03791583701968193,
0.038790568709373474,
-0.14262744784355164,
-0.3582569658756256,
0.17065677046775818,
0.27655673027038574,
-0.6289306879043579,
-0.17536661028862,
-0.3216259777545929,
0.03675994649529457,
-0.31611377000808716,
-0.19427360594272614,
-0.030854076147079468,
-0.06167137250304222,
-0.1780049204826355,
-0.24536632001399994,
0.3240109086036682,
0.5668388605117798,
-0.38396963477134705,
0.10502660274505615,
0.08440613001585007,
-0.16043412685394287,
-0.17819255590438843,
0.023398825898766518,
-0.31484025716781616,
0.5233699083328247,
-0.013056212104856968,
-0.3010379374027252,
0.5681833624839783,
-0.3550916314125061,
-0.2651602029800415,
0.24874600768089294,
-0.19176113605499268,
-0.10596541315317154,
-0.10386131703853607,
0.09011474996805191,
0.4400765299797058,
0.07504865527153015,
-0.08439366519451141,
0.2890106737613678,
-0.03517124056816101,
0.00046753304195590317,
-0.21861112117767334,
-0.23697830736637115,
0.16731756925582886,
0.283759206533432,
0.255561888217926,
0.11290059238672256,
0.30474260449409485,
-0.1972569227218628,
0.03916274383664131,
-0.2821211516857147,
0.11916592717170715,
0.16548573970794678,
0.16972003877162933,
0.10239697247743607,
-0.04420801252126694,
-0.18281491100788116,
-0.48932284116744995,
0.27184194326400757,
0.04788389429450035,
0.15719574689865112,
-0.19920198619365692,
-0.13791587948799133,
-0.020389001816511154,
-0.1831313520669937,
-0.17696982622146606,
0.02728235349059105,
0.14106395840644836,
-0.1107873022556305,
0.17246252298355103,
0.12936876714229584,
-0.25989851355552673,
0.17829252779483795,
0.010788335464894772,
0.0024609421379864216,
-0.13007386028766632,
0.29033976793289185,
-0.04923705756664276,
0.06460005789995193,
-0.028929002583026886,
0.08814728260040283,
0.05818070471286774,
-0.19372232258319855,
-0.11858316510915756,
0.525969922542572,
-0.030090978369116783,
0.0616295263171196,
0.2687852084636688,
0.381856232881546,
0.30646342039108276,
-0.012045498937368393,
0.5338501334190369,
-0.04272639378905296,
0.333437442779541,
-0.09251026809215546,
-0.32285425066947937,
0.7542524337768555,
-0.15257543325424194,
0.2171272188425064,
0.10252603143453598,
0.01832376979291439,
0.2599794268608093,
0.0012788777239620686,
-0.4040778577327728,
-0.03595234081149101,
0.11844833195209503,
0.0022456576116383076,
0.1811375766992569,
-0.08507375419139862,
-0.30645936727523804,
-0.015291185118258,
0.3312464952468872,
-0.01883990317583084,
0.17788513004779816,
-0.06607462465763092,
-0.030485041439533234,
0.13060477375984192,
-0.08317330479621887,
0.08876853436231613,
0.5169287919998169,
0.25069659948349,
0.05195707455277443,
0.22982577979564667,
-0.03137839213013649,
-0.2562144994735718,
0.1325666755437851,
0.23213569819927216,
0.049241386353969574,
0.0684337392449379,
0.10048206895589828,
-0.02372726984322071,
-0.20638124644756317,
-0.05208299681544304,
-0.05471905693411827,
0.023272037506103516,
-0.28681063652038574,
0.28430163860321045,
-0.25166094303131104,
-0.016315225511789322,
0.04705159366130829,
0.1107897236943245,
-0.44840314984321594,
-0.200299933552742,
0.06472039222717285,
0.07769656926393509,
-0.2318820059299469,
0.1336180418729782,
-0.12687143683433533,
0.3907527029514313,
-0.24031288921833038,
-0.2388581931591034,
0.26224350929260254,
-0.48724615573883057,
-0.12277623265981674,
0.10722869634628296,
0.30648165941238403,
0.13110165297985077,
0.5087966918945312,
0.021419987082481384,
-0.09715376049280167,
-0.3305742144584656,
-0.1572180986404419,
0.015584617853164673,
-0.06593604385852814,
0.2778906226158142,
0.08092084527015686,
0.057819217443466187,
-0.045380543917417526,
0.324830561876297,
0.38750502467155457,
-0.3374926745891571,
0.20367643237113953,
0.1821811944246292,
-0.0564877949655056,
-0.09171281009912491,
-0.34320759773254395,
-0.4313035309314728,
-0.44154587388038635,
-0.39765897393226624,
0.1741938292980194,
0.03497729077935219,
-0.05292626470327377,
0.18278934061527252,
0.15197288990020752,
0.10292733460664749,
0.016676709055900574,
0.18532316386699677,
-0.18284325301647186,
-0.46745195984840393,
0.1784861981868744,
-0.18080569803714752,
-0.6038360595703125,
0.290951132774353,
0.23115652799606323,
0.1528014838695526,
0.3490709960460663,
-0.4436715841293335,
-0.3765626847743988,
0.06810686737298965,
0.41560688614845276,
0.10857706516981125,
0.34366658329963684,
0.34344905614852905,
-0.07028120756149292,
-0.0382860042154789,
-0.09237944334745407,
0.09283965826034546,
0.17694701254367828,
0.05897177383303642,
-0.13427136838436127,
0.033606257289648056,
0.25433534383773804,
-0.029424957931041718,
0.37908196449279785,
-0.037548113614320755,
0.09186229854822159,
0.23645853996276855,
-0.15787677466869354,
0.692919135093689,
-0.18278200924396515,
-0.15251709520816803,
-0.03947828710079193,
-0.053711507469415665,
-0.3249540627002716,
0.24910159409046173,
0.024523355066776276,
0.006816822569817305,
-0.6647505760192871,
-0.04201795160770416,
-0.3744182586669922,
-0.40795212984085083,
0.09886420518159866,
0.12205925583839417,
0.36612236499786377,
0.11318637430667877,
0.2727557420730591,
-0.25758129358291626,
-0.08721700310707092,
-0.08682446926832199,
0.25321123003959656,
0.07752946019172668,
-0.07182221859693527,
-0.24946126341819763,
0.0245867557823658,
-0.36491626501083374,
0.3807900547981262,
-0.14542903006076813,
0.19983252882957458,
-0.03463369607925415,
-0.02304241620004177,
-0.012694952078163624,
-0.16827932000160217,
0.34386059641838074,
-0.3169398903846741,
-0.012938455678522587,
0.29673632979393005,
-0.06794053316116333,
-0.3190101683139801,
0.06565103679895401,
-0.21159322559833527,
-0.024579912424087524,
0.18760710954666138,
0.16614572703838348,
-0.10674992203712463,
-0.30347397923469543,
0.012663768604397774,
0.44400420784950256,
-0.2934580445289612,
-0.19761553406715393,
-0.2340574562549591,
-0.16527122259140015,
-0.34483063220977783,
-0.007720448076725006,
-0.20222291350364685,
0.06967055797576904,
-0.12043309956789017,
0.1846715807914734,
-0.25448766350746155,
0.16877180337905884,
-0.0028253805357962847,
0.10414917021989822,
0.12790954113006592,
-0.2341514527797699,
0.2522115707397461,
0.2547447383403778,
0.10652115941047668,
0.3232455253601074,
0.34943103790283203,
-0.05301908403635025,
-0.28627386689186096,
0.16815951466560364,
-0.016019169241189957,
0.3586544990539551,
0.3766714930534363,
-0.09663376212120056,
-0.1404377967119217,
0.13751941919326782,
0.2744404077529907,
-0.41917139291763306,
-0.10130883008241653,
0.1470346599817276,
0.17960070073604584,
-0.11906649172306061,
-0.39145782589912415,
0.264113187789917,
0.10821410268545151,
-0.02581511251628399,
-0.028695030137896538,
0.13354434072971344,
-0.2077488750219345,
0.19106827676296234,
-0.1117650642991066,
0.7465306520462036,
-0.08776600658893585,
0.2242860645055771,
0.25353315472602844,
0.00007730026845820248,
0.4418722093105316,
-0.2145645022392273,
-0.03927895426750183,
-0.04110007733106613,
-0.2529999315738678,
-0.004827512893825769,
-0.08334263414144516,
0.41198691725730896,
0.004282029811292887,
-0.08891217410564423,
0.5612854957580566,
-0.029586708173155785,
0.254052072763443,
-0.3048314154148102,
0.2157217264175415,
-0.023164207115769386,
-0.22042717039585114,
-0.534703254699707,
0.22364245355129242,
0.11935282498598099,
0.10174579173326492,
-0.19560863077640533,
-0.2288060486316681,
0.08236802369356155,
0.07364922761917114,
0.039321593940258026,
-0.07162731140851974,
-0.0051056453958153725,
0.09715698659420013,
-0.2511776387691498,
-0.011619146913290024,
-0.007524598389863968,
0.1421700268983841,
0.3566611111164093,
0.14511702954769135,
-0.3017604947090149,
0.023751821368932724,
-0.3742333650588989,
0.16231660544872284,
0.04893217980861664,
0.238955557346344,
0.17136824131011963,
-0.22986823320388794,
-0.22958236932754517,
0.07708203792572021,
-0.09000741690397263,
-0.009264899417757988,
0.42446163296699524,
-0.048909951001405716,
-0.009292252361774445,
-0.2348201870918274,
0.1417716145515442,
0.18841029703617096,
0.1909559667110443,
-0.12081733345985413,
0.16989926993846893,
0.25351208448410034,
0.053100354969501495,
0.32660406827926636,
-0.11337999254465103,
-0.22215606272220612,
-0.2290591150522232,
0.32467591762542725,
-0.14617739617824554,
-0.21636459231376648,
-0.028165331110358238,
0.20714519917964935,
-0.175781711935997,
-0.30095988512039185,
0.28286585211753845,
-0.00699386652559042,
-0.1259733885526657,
0.23317454755306244,
0.3803785443305969,
0.3927210867404938,
-0.11483437567949295,
0.2829950451850891,
0.018474536016583443,
-0.24705347418785095,
-0.06750740110874176,
-0.3831624984741211,
-0.263147234916687,
0.204870343208313,
0.4791601896286011,
0.12001616507768631,
0.14980988204479218,
-0.08352591097354889,
0.040361035615205765,
-0.25643011927604675,
-0.4158099293708801,
0.05774940922856331,
-0.046196870505809784,
0.045511867851018906,
0.24349163472652435,
-0.12227886915206909,
0.3542179763317108,
-0.21562601625919342,
0.09928882867097855,
-0.23531457781791687,
-0.3157811462879181,
-0.2837584316730499,
-0.008973466232419014,
0.17351381480693817,
-0.04627450555562973,
-0.3089570701122284,
-0.0029458776116371155,
-0.6132441163063049,
-0.33310431241989136,
-0.15705229341983795,
0.2411423772573471,
0.4147741198539734,
-0.18205884099006653,
-0.019710134714841843,
-0.19572113454341888,
0.42640140652656555,
-0.1901150643825531,
0.10958811640739441,
0.046860240399837494,
0.2768312990665436,
-0.03041810356080532,
0.2757188081741333,
-0.04496794939041138,
0.04246772825717926,
-0.0480307936668396,
0.0965554416179657,
0.1639403998851776,
0.09033077210187912,
0.39237162470817566,
-0.2577671706676483,
0.1543770730495453,
0.2673695385456085,
0.56880784034729,
0.19750270247459412,
-0.060536354780197144,
0.20262381434440613,
0.10572202503681183,
0.2705930471420288,
-0.38720428943634033,
0.05925583466887474,
-0.006889923010021448,
0.10270359367132187,
0.3957235515117645,
0.09983555227518082,
0.33551010489463806,
0.10895232111215591,
-0.09636253118515015,
-0.012912381440401077,
0.33614587783813477,
-0.1054280698299408,
0.2378423511981964,
0.12431677430868149,
0.03902076929807663,
0.13910306990146637,
0.013683192431926727,
0.41979169845581055,
-0.010713571682572365,
0.3140263557434082,
-0.3290991485118866,
0.2428223192691803,
0.11653143912553787,
0.08710227161645889,
-0.29794076085090637,
-0.45738157629966736,
0.2896074652671814,
0.02143821492791176,
-0.038511473685503006,
-0.1695442497730255,
-0.25806400179862976,
0.18175238370895386,
-0.5244923830032349,
-0.0815282091498375,
-0.14983892440795898,
0.10359962284564972,
-0.06626767665147781,
0.050469812005758286,
-0.40117958188056946,
-0.3024999797344208,
-0.03313257172703743,
0.11974894255399704,
0.08928331732749939,
-0.08833249658346176,
-0.026148036122322083,
0.024444101378321648,
0.10787686705589294,
-0.20801135897636414,
0.12845087051391602,
0.06607761979103088,
0.06189178302884102,
-0.03481285646557808,
0.023081785067915916,
0.20329174399375916,
0.06344064325094223,
0.11439641565084457,
0.43032366037368774,
0.3389604091644287,
0.03864661976695061,
-0.17889828979969025,
0.17778068780899048,
-0.01888929307460785,
-0.12378846108913422,
-0.09619632363319397,
0.08789613097906113,
0.0156532134860754,
0.1670672446489334,
0.3728032112121582,
0.19511228799819946,
-0.21730096638202667,
0.3377448320388794,
-0.07064628601074219,
-0.13901729881763458,
-0.4647115170955658,
0.2669895589351654,
0.19128379225730896,
-0.10771798342466354,
-0.11948242783546448,
-0.28018295764923096,
-0.18338274955749512,
-0.10936106741428375,
0.3616841733455658,
0.0254852082580328,
0.1069907620549202,
-0.18455037474632263,
0.12727071344852448,
0.09304067492485046,
0.42909377813339233,
0.1821926087141037,
0.3078637719154358,
-0.28523874282836914,
0.1113601103425026,
-0.8087356686592102,
-0.15015840530395508,
-0.14277689158916473,
0.23500517010688782,
-0.05234505236148834,
0.10854541510343552,
0.0847964957356453,
0.43872350454330444,
0.0659138485789299,
0.15793152153491974,
0.16264694929122925,
-0.18133677542209625,
-0.28863489627838135,
-0.14465804398059845,
-0.08162607997655869,
-0.08608990162611008,
-0.03142587095499039,
-0.32934921979904175,
0.07899241149425507,
-0.38525837659835815,
0.02629086747765541,
0.07758225500583649,
0.1974056214094162,
-0.2024393081665039,
-0.13281677663326263,
0.45995330810546875,
0.024358946830034256,
0.4064572751522064,
0.15641291439533234,
-0.1124192550778389,
-0.06522470712661743,
0.03531951084733009,
-0.057773690670728683,
0.17246957123279572,
-0.03386760875582695,
-0.026905260980129242,
-0.13797490298748016,
-0.14051294326782227,
-0.16621097922325134,
0.20080362260341644,
0.06668924540281296,
-0.011972660198807716,
-0.11379405856132507,
-0.03599995747208595,
0.08679508417844772,
0.1418628692626953,
0.007205980364233255,
0.04317394644021988,
-0.148928701877594,
0.213210791349411,
-0.20265860855579376,
0.04532892629504204,
0.33938267827033997,
-0.035023875534534454,
0.012712016701698303,
-0.372233122587204,
0.3923755884170532,
0.16448234021663666,
0.0008876908104866743,
-0.4804074466228485,
0.23654045164585114,
0.33272242546081543,
-0.15321043133735657,
-0.14727884531021118,
0.32444077730178833,
-0.252274751663208,
-0.20016349852085114,
0.007166911382228136,
0.2544192373752594,
-0.27007758617401123,
-0.3051464557647705,
0.0650707259774208,
-0.14096777141094208
] |
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.4992601275444031,
0.22699788212776184,
-0.03246932849287987,
0.14187206327915192,
0.23695069551467896,
-0.10291729122400284,
0.5442940592765808,
0.07441117614507675,
0.2753629684448242,
0.24428817629814148,
-0.008833845146000385,
-0.06653954833745956,
0.028085805475711823,
0.3756226599216461,
-0.09889975190162659,
-0.04195530340075493,
-0.16233305633068085,
0.05635460093617439,
-0.18303608894348145,
0.10765428096055984,
-0.16337798535823822,
-0.08695162832736969,
-0.43330055475234985,
-0.06250783056020737,
-0.015938617289066315,
-0.1606818288564682,
-0.07989771664142609,
0.21157227456569672,
-0.17174938321113586,
-0.28451886773109436,
0.2436341643333435,
0.1665010154247284,
0.19889192283153534,
0.4731355607509613,
-0.00010347332863602787,
0.03702387586236,
0.011921391822397709,
0.010489282198250294,
-0.22773206233978271,
-0.38495805859565735,
-0.2243475764989853,
-0.5146489143371582,
0.16380620002746582,
-0.4546644389629364,
-0.20701083540916443,
-0.03795698657631874,
-0.0688910260796547,
-0.5084754824638367,
0.30955973267555237,
0.3518117368221283,
0.2570660710334778,
0.5904157757759094,
-0.12827074527740479,
-0.27924275398254395,
-0.15584835410118103,
-0.15226298570632935,
-0.15569759905338287,
0.4283841550350189,
-0.01729539968073368,
0.0013685968006029725,
-0.022243663668632507,
0.10412991791963577,
-0.17523489892482758,
0.034660279750823975,
0.32222115993499756,
0.06727877259254456,
-0.10974019765853882,
-0.0845901295542717,
0.22063295543193817,
0.3967529237270355,
0.4247179627418518,
-0.28843432664871216,
-0.251919150352478,
-0.33961617946624756,
-0.007588959764689207,
-0.46784964203834534,
0.0960986316204071,
0.1565520316362381,
0.02175283059477806,
0.2291812151670456,
-0.3944317102432251,
-0.30916231870651245,
-0.34436002373695374,
0.1524471640586853,
-0.3242221772670746,
0.002370651112869382,
-0.2609036862850189,
0.07101431488990784,
-0.06112496182322502,
0.09298703074455261,
-0.1979120373725891,
-0.28282681107521057,
0.060651473701000214,
-0.07426074892282486,
-0.26047924160957336,
0.01412983424961567,
0.12018047273159027,
0.06370124965906143,
0.1402420550584793,
0.058837611228227615,
0.24869553744792938,
-0.00983496941626072,
0.09796865284442902,
0.051038991659879684,
0.4422776997089386,
0.29570239782333374,
0.0074487910605967045,
-0.1895391196012497,
0.5416597127914429,
0.09937041252851486,
-0.00756682688370347,
-0.2980296015739441,
0.2820796072483063,
-0.31010669469833374,
0.1336488127708435,
0.0073756626807153225,
0.3609675168991089,
-0.29548823833465576,
-0.16744396090507507,
-0.012540503405034542,
0.14054599404335022,
-0.042656123638153076,
0.18352526426315308,
0.2483586072921753,
-0.2873736023902893,
0.029990190640091896,
0.06376836448907852,
0.38569024205207825,
-0.2997947931289673,
-0.25466543436050415,
-0.061632368713617325,
-0.13591285049915314,
-0.12915803492069244,
0.07275401055812836,
0.18642564117908478,
0.008041974157094955,
0.04455387219786644,
-0.03349116072058678,
0.24024012684822083,
-0.06911831349134445,
0.3054916560649872,
-0.10393409430980682,
0.0785030797123909,
0.23368455469608307,
0.25203895568847656,
-0.0957668125629425,
0.06249665468931198,
-0.1969117522239685,
0.03824617713689804,
0.04105839878320694,
-0.1074669286608696,
-0.3596409261226654,
0.17836935818195343,
0.27268528938293457,
-0.6226014494895935,
-0.17106519639492035,
-0.3079637885093689,
0.05818544328212738,
-0.3064326047897339,
-0.19844327867031097,
-0.015349594876170158,
-0.04602980613708496,
-0.19359517097473145,
-0.2405310571193695,
0.33769509196281433,
0.5559731125831604,
-0.39829427003860474,
0.09689803421497345,
0.07916378229856491,
-0.1771889179944992,
-0.18636688590049744,
0.01955379731953144,
-0.3082570731639862,
0.5199757218360901,
-0.018785560503602028,
-0.2941873073577881,
0.5648748874664307,
-0.365590363740921,
-0.2701427638530731,
0.24698206782341003,
-0.18696492910385132,
-0.11204163730144501,
-0.09344160556793213,
0.091288723051548,
0.4447418749332428,
0.08528794348239899,
-0.09592306613922119,
0.2809376120567322,
-0.0458621084690094,
-0.0005545754102058709,
-0.2211626023054123,
-0.2394605278968811,
0.15443797409534454,
0.2881147563457489,
0.2723815441131592,
0.09690289199352264,
0.3091707229614258,
-0.19527246057987213,
0.02802473120391369,
-0.278754860162735,
0.13509631156921387,
0.16344577074050903,
0.15330031514167786,
0.09200997650623322,
-0.04381566867232323,
-0.19293677806854248,
-0.4884026348590851,
0.2647083103656769,
0.04107837378978729,
0.16328828036785126,
-0.2042592614889145,
-0.13886286318302155,
-0.021051600575447083,
-0.18907123804092407,
-0.16223378479480743,
0.013333119451999664,
0.1397610306739807,
-0.10027684271335602,
0.1611434519290924,
0.11377927660942078,
-0.25634706020355225,
0.17995235323905945,
0.020155930891633034,
0.007479834370315075,
-0.13851116597652435,
0.2693670392036438,
-0.05760354548692703,
0.06681826710700989,
-0.03681492060422897,
0.09325636178255081,
0.0424024723470211,
-0.195892795920372,
-0.10610820353031158,
0.5290292501449585,
-0.030969221144914627,
0.046853285282850266,
0.26507309079170227,
0.3803907632827759,
0.3248947560787201,
-0.01133779902011156,
0.5266872048377991,
-0.04401649162173271,
0.32419079542160034,
-0.09702906757593155,
-0.34095072746276855,
0.7555661201477051,
-0.15243248641490936,
0.2127021700143814,
0.11122899502515793,
0.011510955169796944,
0.26559150218963623,
0.0024921332951635122,
-0.4044692814350128,
-0.029738834127783775,
0.10320599377155304,
0.0016841002507135272,
0.19528363645076752,
-0.08575388044118881,
-0.32687312364578247,
-0.0021088579669594765,
0.34893912076950073,
-0.01389229018241167,
0.1751539409160614,
-0.0613359734416008,
-0.03181498497724533,
0.1201426237821579,
-0.07345372438430786,
0.08592954277992249,
0.5219720602035522,
0.25440821051597595,
0.061238400638103485,
0.23070213198661804,
-0.041469771414995193,
-0.2559100091457367,
0.13679452240467072,
0.22504368424415588,
0.03423628956079483,
0.07031282037496567,
0.0828346461057663,
-0.035455018281936646,
-0.21827246248722076,
-0.05210094898939133,
-0.04135032370686531,
0.016515079885721207,
-0.28338101506233215,
0.2871286869049072,
-0.2482629269361496,
-0.028776951134204865,
0.05715087801218033,
0.13270066678524017,
-0.44999614357948303,
-0.19225096702575684,
0.07581090182065964,
0.08342643827199936,
-0.23478226363658905,
0.13678613305091858,
-0.11476893723011017,
0.4157853424549103,
-0.24178585410118103,
-0.21620948612689972,
0.25570303201675415,
-0.4892722964286804,
-0.12540842592716217,
0.11391943693161011,
0.290476530790329,
0.1211070641875267,
0.5174888372421265,
0.01821938343346119,
-0.09722805768251419,
-0.3355350196361542,
-0.16106544435024261,
0.03558218106627464,
-0.0712827816605568,
0.28297895193099976,
0.09335075318813324,
0.0530732199549675,
-0.0671633780002594,
0.32535141706466675,
0.3937314748764038,
-0.32719194889068604,
0.19344566762447357,
0.17926472425460815,
-0.04971747472882271,
-0.08718906342983246,
-0.352994829416275,
-0.4282159209251404,
-0.43206968903541565,
-0.3919803500175476,
0.1926203817129135,
0.01324403379112482,
-0.057436708360910416,
0.1898370385169983,
0.1482216715812683,
0.11652824282646179,
0.005847151391208172,
0.1888999491930008,
-0.18831908702850342,
-0.4760989546775818,
0.1688491255044937,
-0.18929946422576904,
-0.6016698479652405,
0.2806210517883301,
0.22950907051563263,
0.1657632440328598,
0.35827234387397766,
-0.4448155164718628,
-0.37814977765083313,
0.07329176366329193,
0.4401058554649353,
0.11024270206689835,
0.3342656195163727,
0.35336390137672424,
-0.059358906000852585,
-0.04304682835936546,
-0.09738719463348389,
0.07812033593654633,
0.19092874228954315,
0.051617786288261414,
-0.12343690544366837,
0.037818342447280884,
0.2629093825817108,
-0.02863362990319729,
0.40237346291542053,
-0.033120717853307724,
0.09678013622760773,
0.22856254875659943,
-0.15662626922130585,
0.7003898620605469,
-0.18450887501239777,
-0.14877106249332428,
-0.018866928294301033,
-0.051237598061561584,
-0.3176402449607849,
0.24771812558174133,
0.02027072198688984,
0.003444823669269681,
-0.6579141616821289,
-0.03088878095149994,
-0.36408859491348267,
-0.4101667106151581,
0.10232431441545486,
0.12379661947488785,
0.36120104789733887,
0.11311561614274979,
0.28462034463882446,
-0.2655316889286041,
-0.08068016171455383,
-0.08379022777080536,
0.26372408866882324,
0.07059048116207123,
-0.08213318884372711,
-0.2368570864200592,
0.03539044037461281,
-0.3795093595981598,
0.3788216710090637,
-0.1252356618642807,
0.19933494925498962,
-0.04949476942420006,
-0.020566003397107124,
-0.015860818326473236,
-0.1601906418800354,
0.3575390577316284,
-0.3219277560710907,
-0.01843494363129139,
0.3051733374595642,
-0.07237821072340012,
-0.3048909902572632,
0.07500392943620682,
-0.21854636073112488,
-0.018708977848291397,
0.1801495999097824,
0.16952013969421387,
-0.11954493820667267,
-0.30047664046287537,
0.016726357862353325,
0.43107354640960693,
-0.282213032245636,
-0.19584108889102936,
-0.22202461957931519,
-0.15081840753555298,
-0.3353959023952484,
0.011330555193126202,
-0.1939941942691803,
0.07243077456951141,
-0.10425852239131927,
0.17091214656829834,
-0.2531689405441284,
0.16413134336471558,
-0.01689089834690094,
0.11212845146656036,
0.12095896154642105,
-0.24639691412448883,
0.24926616251468658,
0.2544648349285126,
0.10754448175430298,
0.31589606404304504,
0.33698979020118713,
-0.05784450098872185,
-0.28811773657798767,
0.18518589437007904,
-0.021639477461576462,
0.35404670238494873,
0.3804874122142792,
-0.10842525959014893,
-0.12979064881801605,
0.15628358721733093,
0.2772311568260193,
-0.42217952013015747,
-0.10582318902015686,
0.15206657350063324,
0.18993541598320007,
-0.13188429176807404,
-0.3830700218677521,
0.2421080768108368,
0.10584705322980881,
-0.042811501771211624,
-0.02790987491607666,
0.14056609570980072,
-0.21628835797309875,
0.16577523946762085,
-0.12047461420297623,
0.7463237047195435,
-0.08539479970932007,
0.22619543969631195,
0.27160438895225525,
-0.010599011555314064,
0.4589013159275055,
-0.21827086806297302,
-0.017233990132808685,
-0.02994370087981224,
-0.2580791413784027,
-0.001866892445832491,
-0.0838019847869873,
0.4105692505836487,
0.012097298167645931,
-0.10150596499443054,
0.5569257140159607,
0.002353615825995803,
0.26217520236968994,
-0.3156479597091675,
0.20682871341705322,
-0.026268230751156807,
-0.22416003048419952,
-0.5295376181602478,
0.22278505563735962,
0.1116936206817627,
0.09080952405929565,
-0.19659681618213654,
-0.22969134151935577,
0.08920565247535706,
0.07330720126628876,
0.0209830179810524,
-0.08815793693065643,
-0.01472669467329979,
0.09104423224925995,
-0.2471255362033844,
-0.011324947699904442,
0.00231128535233438,
0.11687866598367691,
0.3662896752357483,
0.15408755838871002,
-0.30085891485214233,
0.04076992720365524,
-0.3916718661785126,
0.17588810622692108,
0.04319246485829353,
0.2353019416332245,
0.17323701083660126,
-0.2316586822271347,
-0.2294977605342865,
0.07112307101488113,
-0.09329870343208313,
-0.022983107715845108,
0.4466133117675781,
-0.05345891788601875,
-0.029999516904354095,
-0.22703303396701813,
0.17019718885421753,
0.18720002472400665,
0.17420080304145813,
-0.1272590011358261,
0.16901271045207977,
0.24697433412075043,
0.06463579833507538,
0.33248457312583923,
-0.11856260895729065,
-0.2234361618757248,
-0.23192934691905975,
0.3323865830898285,
-0.14817534387111664,
-0.2163785994052887,
-0.03401001915335655,
0.21277500689029694,
-0.19113370776176453,
-0.3022422790527344,
0.2718290388584137,
0.005079978611320257,
-0.12829390168190002,
0.23439930379390717,
0.38825851678848267,
0.3762429356575012,
-0.11516567319631577,
0.270277738571167,
0.03198739141225815,
-0.242306649684906,
-0.07314267009496689,
-0.37033671140670776,
-0.27996984124183655,
0.2077268362045288,
0.47523412108421326,
0.12351375818252563,
0.14776815474033356,
-0.08008358627557755,
0.04716594144701958,
-0.25689902901649475,
-0.41482266783714294,
0.042797572910785675,
-0.057988669723272324,
0.04909558221697807,
0.2588076889514923,
-0.1258109211921692,
0.3629029095172882,
-0.21997462213039398,
0.0944313034415245,
-0.23529581725597382,
-0.33461639285087585,
-0.2838245630264282,
-0.006551689002662897,
0.17334488034248352,
-0.04421599209308624,
-0.32150450348854065,
-0.009209122508764267,
-0.5947596430778503,
-0.3334682881832123,
-0.15249447524547577,
0.2498430758714676,
0.41373491287231445,
-0.17987878620624542,
-0.026801396161317825,
-0.1973179280757904,
0.4317834973335266,
-0.17644140124320984,
0.09491517394781113,
0.06300590187311172,
0.28773966431617737,
-0.03423911705613136,
0.27980783581733704,
-0.05040222406387329,
0.03823325037956238,
-0.02912631444633007,
0.10646575689315796,
0.16398178040981293,
0.07929298281669617,
0.3910473883152008,
-0.2540488839149475,
0.14306339621543884,
0.2583358585834503,
0.5726850032806396,
0.1912137269973755,
-0.05390669032931328,
0.18754585087299347,
0.0983949527144432,
0.271558940410614,
-0.3790971040725708,
0.060038018971681595,
-0.0015360518591478467,
0.10761100798845291,
0.4134905934333801,
0.08459676802158356,
0.3291354179382324,
0.11033915728330612,
-0.09633934497833252,
-0.009308363310992718,
0.33047983050346375,
-0.11191626638174057,
0.22328037023544312,
0.13076865673065186,
0.04391856491565704,
0.1417955607175827,
0.03111921437084675,
0.4378816485404968,
-0.00796783622354269,
0.3239935338497162,
-0.33903631567955017,
0.23513716459274292,
0.11554992198944092,
0.11277176439762115,
-0.2816658616065979,
-0.4408523738384247,
0.2878967523574829,
0.030565721914172173,
-0.048554424196481705,
-0.1820864975452423,
-0.24641022086143494,
0.18192578852176666,
-0.5260387063026428,
-0.08454238623380661,
-0.14537182450294495,
0.0936664491891861,
-0.07735231518745422,
0.06396119296550751,
-0.4059836268424988,
-0.30864453315734863,
-0.03175351023674011,
0.12277433276176453,
0.07723018527030945,
-0.07368748635053635,
-0.002429537707939744,
0.01451004296541214,
0.11013203859329224,
-0.20595160126686096,
0.13572478294372559,
0.05308637395501137,
0.06743231415748596,
-0.03144583851099014,
0.03158462420105934,
0.20388157665729523,
0.07596323639154434,
0.11629500240087509,
0.455870121717453,
0.325094610452652,
0.027959013357758522,
-0.17328771948814392,
0.17912091314792633,
-0.017408791929483414,
-0.1257012039422989,
-0.10850206762552261,
0.09677736461162567,
0.027115290984511375,
0.13168038427829742,
0.36574801802635193,
0.1895967423915863,
-0.20768427848815918,
0.34449252486228943,
-0.07613729685544968,
-0.1504831314086914,
-0.45688071846961975,
0.2505190670490265,
0.18464677035808563,
-0.11699196696281433,
-0.10645536333322525,
-0.28749486804008484,
-0.1889011561870575,
-0.10830477625131607,
0.3725973963737488,
0.019476091489195824,
0.1105329841375351,
-0.19144274294376373,
0.1280117630958557,
0.10187996178865433,
0.4391466975212097,
0.17338904738426208,
0.2939249873161316,
-0.28767329454421997,
0.11599330604076385,
-0.8045646548271179,
-0.14938221871852875,
-0.12592171132564545,
0.2573935091495514,
-0.05180932581424713,
0.10918903350830078,
0.08756100386381149,
0.437338650226593,
0.07446421682834625,
0.1585407704114914,
0.17270958423614502,
-0.18016505241394043,
-0.30030256509780884,
-0.13470055162906647,
-0.06243941932916641,
-0.10021405667066574,
-0.031528253108263016,
-0.3196186423301697,
0.09199731051921844,
-0.36339297890663147,
0.022914959117770195,
0.06731797754764557,
0.20422478020191193,
-0.20613281428813934,
-0.12975504994392395,
0.4416784346103668,
0.04330679774284363,
0.3950856924057007,
0.14411041140556335,
-0.11225070804357529,
-0.05289553105831146,
0.03797466680407524,
-0.06393880397081375,
0.1701035350561142,
-0.03610850125551224,
-0.03288842737674713,
-0.11447661370038986,
-0.1413639634847641,
-0.15950031578540802,
0.21476688981056213,
0.0632854625582695,
-0.011129723861813545,
-0.1094946414232254,
-0.036157891154289246,
0.07759087532758713,
0.13357815146446228,
0.0008279209141619503,
0.04459955170750618,
-0.14516215026378632,
0.2125578373670578,
-0.20440088212490082,
0.031498443335294724,
0.3339627981185913,
-0.03406418487429619,
0.018112841993570328,
-0.3719015121459961,
0.38345980644226074,
0.17423319816589355,
-0.006817725952714682,
-0.4931701123714447,
0.22851620614528656,
0.3217991590499878,
-0.16859839856624603,
-0.14056427776813507,
0.30535075068473816,
-0.25994905829429626,
-0.18955983221530914,
0.00045303619117476046,
0.2614339590072632,
-0.2595774829387665,
-0.2974053919315338,
0.05708591639995575,
-0.14739368855953217
] |
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.4716479778289795,
0.2902272641658783,
-0.047671955078840256,
0.133442223072052,
0.21068869531154633,
-0.2122252732515335,
0.58582603931427,
0.053416650742292404,
0.2833411395549774,
0.18411283195018768,
0.03105953335762024,
0.03263869509100914,
0.001181453699246049,
0.3333258032798767,
-0.07214391976594925,
-0.05854202061891556,
-0.19054248929023743,
-0.005105233285576105,
-0.1658584177494049,
0.08279141038656235,
-0.08703472465276718,
-0.17246831953525543,
-0.4247155487537384,
-0.11953126639127731,
-0.06756023317575455,
-0.16881515085697174,
-0.024211794137954712,
0.2116726189851761,
-0.19261464476585388,
-0.4453730285167694,
0.26666054129600525,
0.20002903044223785,
0.15709367394447327,
0.4229855537414551,
-0.00010433600982651114,
0.059188615530729294,
0.07977423816919327,
0.012605561874806881,
-0.28293362259864807,
-0.3505375385284424,
-0.23761782050132751,
-0.47248876094818115,
0.24548913538455963,
-0.4179919362068176,
-0.1765555739402771,
-0.03197125345468521,
-0.11496420949697495,
-0.4964655041694641,
0.2549798786640167,
0.3332007825374603,
0.2521955668926239,
0.5795009732246399,
-0.17738203704357147,
-0.25776565074920654,
-0.09307102113962173,
-0.04557603970170021,
-0.2170030027627945,
0.41301771998405457,
0.14518095552921295,
-0.01199671532958746,
-0.09174754470586777,
0.04279662296175957,
-0.20566588640213013,
0.05553538352251053,
0.3426395356655121,
0.06921137124300003,
-0.10128737986087799,
-0.07574739307165146,
0.16549383103847504,
0.4096829891204834,
0.4384515583515167,
-0.278817743062973,
-0.23378776013851166,
-0.36615392565727234,
-0.059990767389535904,
-0.4158059060573578,
0.05799641087651253,
0.08426307886838913,
-0.0501413494348526,
0.270329087972641,
-0.41784948110580444,
-0.2782534658908844,
-0.36316952109336853,
0.18717198073863983,
-0.2958256006240845,
0.08009767532348633,
-0.2190459817647934,
0.057191215455532074,
-0.03457309305667877,
0.12171024829149246,
-0.16039419174194336,
-0.2874973714351654,
0.12319686263799667,
-0.055233485996723175,
-0.2458193153142929,
-0.04832223057746887,
0.17336630821228027,
0.026208078488707542,
0.14559616148471832,
0.10752970725297928,
0.166313037276268,
0.05546988174319267,
0.00695856474339962,
0.05163724720478058,
0.46850672364234924,
0.21164555847644806,
0.011062709614634514,
-0.20973314344882965,
0.5494055151939392,
0.1489724963903427,
0.009058894589543343,
-0.23407551646232605,
0.26577308773994446,
-0.25246545672416687,
0.09119784832000732,
0.07008792459964752,
0.3765209913253784,
-0.3214931786060333,
-0.02298532798886299,
0.035313982516527176,
0.15973272919654846,
-0.062103889882564545,
0.16163761913776398,
0.17477944493293762,
-0.28472477197647095,
0.012940523214638233,
-0.029524607583880424,
0.3609694540500641,
-0.2771339416503906,
-0.346853107213974,
-0.038976509124040604,
-0.21186426281929016,
-0.17805100977420807,
0.09204471856355667,
0.24551865458488464,
0.030937012284994125,
0.051060836762189865,
-0.01477304007858038,
0.24244019389152527,
-0.03684656322002411,
0.30183935165405273,
-0.08095020055770874,
0.0659479945898056,
0.21205879747867584,
0.1196170449256897,
-0.07656991481781006,
0.12485942989587784,
-0.15601547062397003,
0.0067115966230630875,
0.066667839884758,
-0.05143488571047783,
-0.4386141002178192,
0.2374291568994522,
0.2237865924835205,
-0.6274788975715637,
-0.18716539442539215,
-0.19690224528312683,
0.07779020816087723,
-0.30176860094070435,
-0.17387600243091583,
0.021495571359992027,
0.07558480650186539,
-0.16909368336200714,
-0.2382545918226242,
0.29874908924102783,
0.6010071039199829,
-0.5180037617683411,
0.08190552145242691,
0.045803721994161606,
-0.1816398948431015,
-0.18896889686584473,
0.028321394696831703,
-0.3945121765136719,
0.5864567160606384,
0.0039404914714396,
-0.38893598318099976,
0.5678291320800781,
-0.3095944821834564,
-0.3093518316745758,
0.28757959604263306,
-0.18025152385234833,
-0.05950334295630455,
-0.03820348531007767,
0.11968874931335449,
0.47735753655433655,
0.08094937354326248,
-0.007813733071088791,
0.2666752338409424,
-0.07702415436506271,
-0.009541756473481655,
-0.2956811785697937,
-0.28964996337890625,
0.09854308515787125,
0.29652607440948486,
0.2704697847366333,
0.12806881964206696,
0.3454582393169403,
-0.23669245839118958,
0.02765992097556591,
-0.13620051741600037,
0.13635116815567017,
0.09909963607788086,
0.23302766680717468,
0.12394247204065323,
-0.06952327489852905,
-0.13211774826049805,
-0.5115545988082886,
0.32426244020462036,
0.03975057974457741,
0.1621359884738922,
-0.20566001534461975,
-0.15331102907657623,
-0.04016559571027756,
-0.21692012250423431,
-0.13856655359268188,
-0.037786513566970825,
0.12345155328512192,
-0.08959075063467026,
0.08697455376386642,
0.17630688846111298,
-0.2977674901485443,
0.13516122102737427,
-0.01829390786588192,
-0.0051478068344295025,
-0.15002156794071198,
0.3400147259235382,
-0.031437184661626816,
0.05650638788938522,
-0.10150182247161865,
0.0904150903224945,
0.012300066649913788,
-0.1740996390581131,
-0.10554549843072891,
0.48379242420196533,
0.041528455913066864,
0.11835461854934692,
0.2707459032535553,
0.4232816994190216,
0.31868597865104675,
0.0245527233928442,
0.5603365898132324,
-0.12719039618968964,
0.3274111747741699,
-0.11851795017719269,
-0.34176719188690186,
0.7027894854545593,
-0.17834393680095673,
0.2728157937526703,
0.11503124237060547,
-0.034005168825387955,
0.2038818895816803,
-0.09402214735746384,
-0.40444108843803406,
-0.09520293027162552,
0.0663549154996872,
0.003085284261032939,
0.19933950901031494,
0.016877247020602226,
-0.29312172532081604,
0.05046192929148674,
0.3374177813529968,
0.013531885109841824,
0.13642309606075287,
-0.060464005917310715,
-0.01717728190124035,
0.11304935067892075,
-0.02549002878367901,
0.13787990808486938,
0.5132736563682556,
0.2308206409215927,
0.04303716495633125,
0.30779168009757996,
0.03528783470392227,
-0.2593401372432709,
0.11889736354351044,
0.16875748336315155,
-0.01850895583629608,
0.12123838812112808,
0.09633921831846237,
-0.011798747815191746,
-0.13999375700950623,
-0.0319383442401886,
0.003812445793300867,
0.0590352863073349,
-0.3146700859069824,
0.29025962948799133,
-0.3545602262020111,
-0.027913453057408333,
0.013021946884691715,
0.13092763721942902,
-0.4807071387767792,
-0.2102813571691513,
0.11700589209794998,
0.05692194029688835,
-0.24473415315151215,
0.17129254341125488,
-0.08770681917667389,
0.45148348808288574,
-0.26934534311294556,
-0.26088768243789673,
0.24277833104133606,
-0.5937600135803223,
-0.06554381549358368,
0.08480055630207062,
0.34014078974723816,
0.1822124719619751,
0.5658235549926758,
0.05939911678433418,
-0.1411338448524475,
-0.2710399329662323,
-0.14470233023166656,
0.08929368853569031,
-0.011607378721237183,
0.31521543860435486,
0.10839811712503433,
0.020331397652626038,
0.027070509269833565,
0.40024957060813904,
0.38586127758026123,
-0.29799968004226685,
0.1902172714471817,
0.1272396445274353,
-0.09454520791769028,
-0.03227170929312706,
-0.3383330702781677,
-0.4963894188404083,
-0.39923331141471863,
-0.46776139736175537,
0.17008183896541595,
-0.05277746170759201,
0.010702164843678474,
0.22977842390537262,
0.2038753479719162,
0.11094572395086288,
-0.0705157071352005,
0.1104867234826088,
-0.1722419112920761,
-0.4613298177719116,
0.14505214989185333,
-0.1792815774679184,
-0.49374428391456604,
0.25376269221305847,
0.21924863755702972,
0.19170066714286804,
0.342746764421463,
-0.5899965763092041,
-0.3177877366542816,
0.10433154553174973,
0.391431599855423,
0.10402385890483856,
0.26793310046195984,
0.39332008361816406,
-0.07943174988031387,
-0.0585554800927639,
-0.09038496762514114,
0.05749817192554474,
0.20767422020435333,
0.05640161409974098,
-0.10910311341285706,
0.14945580065250397,
0.26859259605407715,
0.01676238887012005,
0.5026165246963501,
-0.0798344835639,
0.10981693118810654,
0.25879982113838196,
-0.11742212623357773,
0.7056584358215332,
-0.18252331018447876,
-0.16715535521507263,
-0.041384972631931305,
0.014881737530231476,
-0.3247092366218567,
0.1728411763906479,
-0.017982060089707375,
-0.015906905755400658,
-0.6336122155189514,
-0.07981635630130768,
-0.24845217168331146,
-0.4550785422325134,
0.18346774578094482,
0.15974073112010956,
0.32477864623069763,
0.1058616042137146,
0.21936215460300446,
-0.2707967460155487,
-0.025644585490226746,
-0.09192021936178207,
0.26326313614845276,
-0.01495219487696886,
-0.07749014347791672,
-0.25072425603866577,
0.13700000941753387,
-0.3115708529949188,
0.2955724895000458,
-0.13525058329105377,
0.21626481413841248,
-0.043906934559345245,
-0.03134261816740036,
0.08267290145158768,
-0.039184391498565674,
0.2991417646408081,
-0.4082181751728058,
-0.0943693071603775,
0.3293497860431671,
-0.021643316373229027,
-0.35319066047668457,
0.0764370933175087,
-0.17220942676067352,
0.0019437515875324607,
0.159915953874588,
0.1581936627626419,
-0.06794274598360062,
-0.34836289286613464,
-0.006039509549736977,
0.35970836877822876,
-0.27743014693260193,
-0.21776674687862396,
-0.20012785494327545,
-0.04233073070645332,
-0.4275079369544983,
-0.005213942378759384,
-0.25458911061286926,
-0.09843569248914719,
-0.0803568959236145,
0.11828866600990295,
-0.15449216961860657,
0.2191765159368515,
-0.13801005482673645,
0.07399656623601913,
0.11023327708244324,
-0.32030829787254333,
0.22734129428863525,
0.2977680563926697,
0.05530084669589996,
0.330939382314682,
0.3506479859352112,
-0.11811802536249161,
-0.14827971160411835,
0.20862431824207306,
-0.043347444385290146,
0.4113817512989044,
0.48546525835990906,
-0.009593849070370197,
-0.0846015065908432,
0.1447080671787262,
0.28923529386520386,
-0.40379026532173157,
-0.16152167320251465,
0.1078798919916153,
0.05929875373840332,
-0.10008539259433746,
-0.46734046936035156,
0.1834893375635147,
-0.04053406044840813,
-0.07383900880813599,
-0.003525384468957782,
0.1294170320034027,
-0.1851622313261032,
0.2416013777256012,
-0.09198217839002609,
0.812248706817627,
0.026364978402853012,
0.22195419669151306,
0.17398056387901306,
-0.007890897803008556,
0.47341322898864746,
-0.30288615822792053,
-0.045584019273519516,
-0.0602651871740818,
-0.04364361986517906,
0.018221229314804077,
-0.0760406032204628,
0.44108229875564575,
0.01068984717130661,
-0.20546947419643402,
0.49349313974380493,
-0.0749410018324852,
0.2824133038520813,
-0.3375301957130432,
0.10760141909122467,
0.020223772153258324,
-0.22647911310195923,
-0.5203981995582581,
0.20282407104969025,
0.10815123468637466,
0.10281980037689209,
-0.18519343435764313,
-0.24358345568180084,
0.03425278887152672,
0.14930374920368195,
0.0095665967091918,
-0.18984970450401306,
-0.05260543152689934,
0.03081021085381508,
-0.205903559923172,
0.056068241596221924,
0.0032340078614652157,
0.04502619802951813,
0.36488673090934753,
0.14686252176761627,
-0.33987104892730713,
0.013886713422834873,
-0.3556911051273346,
0.1691974252462387,
0.03607749938964844,
0.17526204884052277,
0.1566658467054367,
-0.1985950767993927,
-0.33446502685546875,
0.0011104779550805688,
-0.11166404187679291,
-0.0255519300699234,
0.4310029447078705,
-0.054841283708810806,
0.09423377364873886,
-0.2805888056755066,
0.17674896121025085,
0.23031118512153625,
0.26082196831703186,
-0.09356138855218887,
0.1746455729007721,
0.21108192205429077,
0.0750604048371315,
0.3884124755859375,
-0.12536169588565826,
-0.22125333547592163,
-0.21447041630744934,
0.3347361087799072,
-0.12474658340215683,
-0.15533888339996338,
-0.083365797996521,
0.22263528406620026,
-0.16958117485046387,
-0.33650073409080505,
0.3025309443473816,
-0.005421025212854147,
-0.22300848364830017,
0.19864092767238617,
0.3504718840122223,
0.2963169515132904,
-0.02601824887096882,
0.2046554982662201,
0.010253326036036015,
-0.18800288438796997,
-0.16794073581695557,
-0.2753776013851166,
-0.31788429617881775,
0.16600750386714935,
0.45335569977760315,
0.15638914704322815,
0.04735732078552246,
-0.0970105230808258,
-0.014806712977588177,
-0.22120648622512817,
-0.42416590452194214,
0.06605006009340286,
-0.06835457682609558,
0.08642972260713577,
0.28571853041648865,
-0.1539192646741867,
0.3005245625972748,
-0.28752315044403076,
0.0720486044883728,
-0.21196863055229187,
-0.42712682485580444,
-0.2759726345539093,
-0.05654672533273697,
0.17803402245044708,
-0.03753327205777168,
-0.3255496025085449,
-0.027077989652752876,
-0.5326867699623108,
-0.31239938735961914,
-0.12824073433876038,
0.2727521061897278,
0.44099554419517517,
-0.129640594124794,
0.005306403152644634,
-0.21177799999713898,
0.5039594173431396,
-0.14663296937942505,
0.16231238842010498,
0.029629681259393692,
0.3317890167236328,
0.00896147359162569,
0.20383213460445404,
-0.09911537170410156,
0.07619704306125641,
0.0818033441901207,
0.15743784606456757,
0.21227338910102844,
0.12287364900112152,
0.44521525502204895,
-0.14625120162963867,
0.15636761486530304,
0.2498919665813446,
0.5009360313415527,
0.16290198266506195,
-0.07047176361083984,
0.12165913730859756,
0.20804795622825623,
0.2638337016105652,
-0.33409351110458374,
0.006575435865670443,
0.07387255877256393,
0.14300945401191711,
0.3401826024055481,
0.14444908499717712,
0.4526939392089844,
0.09535855799913406,
0.005178932566195726,
0.012638111598789692,
0.3435201346874237,
-0.07535003125667572,
0.2237221598625183,
0.07389155775308609,
0.0469856858253479,
0.0596652626991272,
-0.03781622648239136,
0.39011240005493164,
0.04712466523051262,
0.278262197971344,
-0.32174840569496155,
0.2200016975402832,
0.08603962510824203,
0.15097463130950928,
-0.2448892444372177,
-0.47545701265335083,
0.4114569425582886,
0.07126756012439728,
-0.10157597064971924,
-0.18773998320102692,
-0.28618907928466797,
0.22444488108158112,
-0.3701642155647278,
-0.05365995317697525,
-0.07750015705823898,
0.08453793078660965,
-0.0699014738202095,
0.08859488368034363,
-0.3811097741127014,
-0.3510330319404602,
-0.0735941156744957,
0.11835092306137085,
0.052844416350126266,
-0.024110941216349602,
0.02726168930530548,
-0.03470577672123909,
0.09389685839414597,
-0.3102189004421234,
0.14470462501049042,
0.040217623114585876,
0.09825897216796875,
-0.030762076377868652,
0.031080765649676323,
0.18606781959533691,
0.02186805009841919,
0.1400454342365265,
0.43245500326156616,
0.280557245016098,
0.08853330463171005,
-0.18219870328903198,
0.17896810173988342,
0.009646792896091938,
-0.061457403004169464,
-0.13084328174591064,
0.07283784449100494,
0.006596886087208986,
0.11478929966688156,
0.3294234871864319,
0.15862934291362762,
-0.1999017298221588,
0.35883828997612,
-0.13050344586372375,
-0.22178839147090912,
-0.49707189202308655,
0.23960036039352417,
0.23929302394390106,
-0.12374533712863922,
-0.05840783566236496,
-0.26564890146255493,
-0.250006765127182,
-0.26321375370025635,
0.44732874631881714,
-0.009919233620166779,
0.14950767159461975,
-0.23250693082809448,
0.1104772686958313,
-0.0039672343991696835,
0.48722440004348755,
0.13599279522895813,
0.2626902163028717,
-0.24672046303749084,
0.15910379588603973,
-0.8487069010734558,
-0.10102474689483643,
-0.13505776226520538,
0.2625233829021454,
-0.0060989693738520145,
0.0703936219215393,
0.129420205950737,
0.4974669814109802,
0.07324087619781494,
0.13483987748622894,
0.1989409625530243,
-0.17261439561843872,
-0.31127309799194336,
-0.15946775674819946,
-0.07587829232215881,
-0.07882332801818848,
-0.0683218240737915,
-0.24027442932128906,
0.06171290948987007,
-0.3475412428379059,
-0.0013598635559901595,
0.027561604976654053,
0.1004272997379303,
-0.08791500329971313,
-0.012023980729281902,
0.518818199634552,
0.028614310547709465,
0.3453914523124695,
0.3027181625366211,
-0.12010295689105988,
-0.10799462348222733,
0.07161657512187958,
-0.023258190602064133,
0.05834665894508362,
-0.0380428209900856,
-0.05177425220608711,
-0.19845175743103027,
-0.2123391181230545,
-0.23148523271083832,
0.22407987713813782,
0.08032908290624619,
0.023162182420492172,
-0.07774921506643295,
-0.050850238651037216,
0.09004433453083038,
0.15695683658123016,
-0.06310117989778519,
0.03429625183343887,
-0.09619150310754776,
0.24042804539203644,
-0.25288623571395874,
0.08049590140581131,
0.33428090810775757,
0.01795525662600994,
0.017515335232019424,
-0.37618061900138855,
0.3429671823978424,
0.23217852413654327,
0.017630532383918762,
-0.522622287273407,
0.09299908578395844,
0.31454628705978394,
-0.1564721316099167,
-0.043337225914001465,
0.32584622502326965,
-0.254150927066803,
-0.19670985639095306,
0.01140602771192789,
0.22309519350528717,
-0.27748239040374756,
-0.22277262806892395,
0.0650162547826767,
-0.11797747761011124
] |
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.4490852952003479,
0.20950652658939362,
-0.05981927365064621,
0.129350483417511,
0.26219233870506287,
-0.13128559291362762,
0.5469641089439392,
0.09492629766464233,
0.31543806195259094,
0.22943121194839478,
0.05104101821780205,
-0.0031591064762324095,
0.04794209077954292,
0.40367618203163147,
-0.10322166234254837,
-0.11917829513549805,
-0.10968109965324402,
0.08062350004911423,
-0.17092683911323547,
0.09250353276729584,
-0.1816655397415161,
-0.08973095566034317,
-0.3750767111778259,
-0.025563154369592667,
-0.10498430579900742,
-0.17466014623641968,
-0.10713917762041092,
0.1566956341266632,
-0.21037475764751434,
-0.33272048830986023,
0.24911291897296906,
0.11758774518966675,
0.16342666745185852,
0.4241681396961212,
-0.00009998222230933607,
0.04213377460837364,
0.10690559446811676,
0.03799451142549515,
-0.22034673392772675,
-0.4199153482913971,
-0.19817572832107544,
-0.4793075919151306,
0.24183811247348785,
-0.40180206298828125,
-0.17578350007534027,
-0.12750136852264404,
-0.05988456681370735,
-0.4807882606983185,
0.29746851325035095,
0.3426456153392792,
0.2918209731578827,
0.5356077551841736,
-0.08033810555934906,
-0.28139108419418335,
-0.12166361510753632,
-0.05861891806125641,
-0.17785879969596863,
0.4252831041812897,
0.07335773855447769,
-0.012379731982946396,
-0.08388231694698334,
0.08884472399950027,
-0.15316304564476013,
0.0956416130065918,
0.31117963790893555,
0.07130628824234009,
-0.09246527403593063,
-0.1528337299823761,
0.2028554081916809,
0.3944043815135956,
0.46031832695007324,
-0.31091755628585815,
-0.2949758768081665,
-0.34113839268684387,
-0.04790069907903671,
-0.4361882209777832,
0.12745609879493713,
0.14417392015457153,
0.009027642197906971,
0.23398242890834808,
-0.36327284574508667,
-0.29756829142570496,
-0.3418589234352112,
0.16949467360973358,
-0.28169864416122437,
0.018107686191797256,
-0.2516753673553467,
0.041368916630744934,
-0.08324211835861206,
0.07528607547283173,
-0.15515144169330597,
-0.32052648067474365,
0.09862125664949417,
-0.07936301082372665,
-0.18882855772972107,
-0.01652936264872551,
0.15342684090137482,
0.008189507760107517,
0.1217978447675705,
0.07514920085668564,
0.15253567695617676,
-0.006045436952263117,
0.09262844920158386,
0.06802233308553696,
0.4427141845226288,
0.3181464374065399,
0.01885385438799858,
-0.24477235972881317,
0.56383216381073,
0.060748063027858734,
-0.004647191613912582,
-0.2882613241672516,
0.32975953817367554,
-0.2873264253139496,
0.03615496680140495,
-0.016087114810943604,
0.33589038252830505,
-0.2712705135345459,
-0.0916837751865387,
0.06043660268187523,
0.14952270686626434,
-0.08216533809900284,
0.15366826951503754,
0.20713818073272705,
-0.22037190198898315,
0.029578575864434242,
0.03462211787700653,
0.3958793580532074,
-0.24150444567203522,
-0.23479647934436798,
-0.10894827544689178,
-0.10661940276622772,
-0.105587437748909,
0.07447139173746109,
0.18881618976593018,
-0.013108528219163418,
0.1214117482304573,
-0.04023914039134979,
0.21052229404449463,
-0.03415525704622269,
0.2786373794078827,
-0.15745122730731964,
0.047998443245887756,
0.2500379681587219,
0.18725861608982086,
-0.10623382031917572,
0.05678039789199829,
-0.23557056486606598,
0.03812091425061226,
-0.0035793152637779713,
-0.043626364320516586,
-0.40498703718185425,
0.09630866348743439,
0.2798320949077606,
-0.5623061060905457,
-0.16805428266525269,
-0.2548435926437378,
0.12977249920368195,
-0.2823050320148468,
-0.09712623804807663,
0.020675860345363617,
-0.00974405836313963,
-0.14495103061199188,
-0.19830822944641113,
0.23908273875713348,
0.5462022423744202,
-0.4452941119670868,
0.08768624067306519,
0.12178292125463486,
-0.18718430399894714,
-0.17599289119243622,
0.06420355290174484,
-0.3430996239185333,
0.5343939065933228,
0.051757629960775375,
-0.2778848707675934,
0.5229828953742981,
-0.3582610487937927,
-0.23452091217041016,
0.28883758187294006,
-0.16102789342403412,
-0.1441390961408615,
-0.06670570373535156,
0.049829840660095215,
0.3899845778942108,
0.11929779499769211,
0.00014347361866384745,
0.24310076236724854,
-0.056448619812726974,
0.01956840604543686,
-0.2536435127258301,
-0.3235281705856323,
0.14072240889072418,
0.2494022101163864,
0.30652204155921936,
0.12399061024188995,
0.27923446893692017,
-0.25786852836608887,
-0.040598832070827484,
-0.26234379410743713,
0.16544219851493835,
0.15791787207126617,
0.20993106067180634,
0.10231690108776093,
-0.04836777597665787,
-0.20591039955615997,
-0.4760763347148895,
0.22526027262210846,
0.03369985520839691,
0.23208734393119812,
-0.23021690547466278,
-0.14966094493865967,
-0.00837226677685976,
-0.1797088086605072,
-0.1597643941640854,
-0.04252719506621361,
0.1691499799489975,
-0.13886772096157074,
0.1849665343761444,
0.17605236172676086,
-0.3189758062362671,
0.14390958845615387,
-0.05626548081636429,
0.025987299159169197,
-0.11554022133350372,
0.2796717882156372,
-0.08094616234302521,
0.02319958060979843,
0.04264101758599281,
0.08386731892824173,
-0.0070748841390013695,
-0.1859925389289856,
-0.10737340152263641,
0.4920397400856018,
-0.060010991990566254,
0.05086350440979004,
0.31526297330856323,
0.3613801896572113,
0.3560880124568939,
0.0397629514336586,
0.5095081329345703,
-0.12183897197246552,
0.31119677424430847,
-0.07704415172338486,
-0.3356877565383911,
0.6987395286560059,
-0.14568273723125458,
0.2038487046957016,
0.09568297117948532,
0.0029146745800971985,
0.314200758934021,
-0.0028087589889764786,
-0.3935571014881134,
-0.06533936411142349,
0.07977136969566345,
-0.04444022476673126,
0.21489574015140533,
-0.0678090751171112,
-0.38893628120422363,
-0.022998541593551636,
0.37562453746795654,
-0.0001702779409242794,
0.184531569480896,
-0.0001419017935404554,
0.019493939355015755,
0.06274469196796417,
-0.05969488248229027,
0.08411921560764313,
0.5141702890396118,
0.23863910138607025,
0.0379677340388298,
0.25228556990623474,
-0.07030703127384186,
-0.3152323067188263,
0.1395314335823059,
0.2154914289712906,
0.009246558882296085,
0.07897797971963882,
0.08997365832328796,
-0.003389124060049653,
-0.30997133255004883,
-0.05356909707188606,
-0.029212666675448418,
0.08147197216749191,
-0.23267902433872223,
0.24594412744045258,
-0.3154217004776001,
-0.05202198401093483,
0.04224101081490517,
0.11195352673530579,
-0.44370606541633606,
-0.23124372959136963,
0.08682622015476227,
0.035829514265060425,
-0.2842269241809845,
0.14750048518180847,
-0.08974286168813705,
0.4524811804294586,
-0.20497120916843414,
-0.1387598216533661,
0.12793311476707458,
-0.5095139741897583,
-0.10333085805177689,
0.13387121260166168,
0.3391273617744446,
0.14795951545238495,
0.4992547631263733,
0.008694763295352459,
-0.07728666067123413,
-0.2907160520553589,
-0.18749739229679108,
0.06619862467050552,
-0.0880846381187439,
0.31891930103302,
0.0668632984161377,
0.04812214523553848,
-0.048756588250398636,
0.22543670237064362,
0.41934722661972046,
-0.30619701743125916,
0.17071515321731567,
0.08558575809001923,
-0.05209911987185478,
-0.15533937513828278,
-0.3459172546863556,
-0.4872055947780609,
-0.4130057394504547,
-0.4035474359989166,
0.2704855501651764,
0.026738282293081284,
-0.029249092563986778,
0.12430954724550247,
0.15803839266300201,
0.10010429471731186,
-0.017610887065529823,
0.20505571365356445,
-0.21885652840137482,
-0.49331358075141907,
0.12404073774814606,
-0.23167529702186584,
-0.5781067609786987,
0.2055894136428833,
0.19681131839752197,
0.18133209645748138,
0.23949715495109558,
-0.4866480231285095,
-0.3747955560684204,
0.042254868894815445,
0.3973853290081024,
0.18707551062107086,
0.31775033473968506,
0.3660064935684204,
-0.02466239035129547,
-0.07663135230541229,
-0.07843223214149475,
0.024658657610416412,
0.20007386803627014,
0.09790179133415222,
-0.12540149688720703,
0.07419031113386154,
0.3168500065803528,
-0.05953533202409744,
0.43179264664649963,
-0.011108053848147392,
0.04961419105529785,
0.26420047879219055,
-0.11141407489776611,
0.6812880039215088,
-0.2694682478904724,
-0.14404189586639404,
0.013289830647408962,
-0.058787696063518524,
-0.25125497579574585,
0.21060727536678314,
0.015765400603413582,
-0.03625675290822983,
-0.6542542576789856,
-0.009702414274215698,
-0.40308383107185364,
-0.38564300537109375,
0.08408993482589722,
0.13159175217151642,
0.3249269127845764,
0.1220778077840805,
0.23258011043071747,
-0.28019633889198303,
0.007007189095020294,
-0.07424657046794891,
0.2477312535047531,
0.061758819967508316,
-0.09989442676305771,
-0.26814374327659607,
0.00950290635228157,
-0.37755218148231506,
0.336650013923645,
-0.12583878636360168,
0.258075475692749,
-0.07711462676525116,
-0.030521536245942116,
0.007170780561864376,
-0.12932053208351135,
0.35944104194641113,
-0.3762836158275604,
-0.1614656150341034,
0.2891309857368469,
-0.09685562551021576,
-0.2732846140861511,
0.08448877930641174,
-0.19723515212535858,
0.04960976541042328,
0.14479897916316986,
0.2760509252548218,
-0.08429289609193802,
-0.3076007068157196,
0.0610610730946064,
0.35048022866249084,
-0.2497553676366806,
-0.18823790550231934,
-0.17179174721240997,
-0.15453456342220306,
-0.3299388885498047,
0.05285615473985672,
-0.2317122220993042,
0.049117572605609894,
-0.08698030561208725,
0.11360438168048859,
-0.19496765732765198,
0.15583573281764984,
-0.06426046043634415,
0.09747353941202164,
0.07337259501218796,
-0.2716403305530548,
0.22727879881858826,
0.23076966404914856,
0.11610372364521027,
0.33519017696380615,
0.33777329325675964,
-0.12337420135736465,
-0.24711400270462036,
0.181108757853508,
-0.05647502467036247,
0.36204248666763306,
0.44654983282089233,
-0.0729893296957016,
-0.09751830995082855,
0.15274688601493835,
0.27581217885017395,
-0.42008236050605774,
-0.14561901986598969,
0.20552611351013184,
0.17815206944942474,
-0.0686926394701004,
-0.37601470947265625,
0.244241401553154,
0.11299298703670502,
-0.053322259336709976,
0.015026007778942585,
0.1230340301990509,
-0.1884620487689972,
0.22140339016914368,
-0.0593036450445652,
0.775979220867157,
-0.06803924590349197,
0.15732628107070923,
0.22852998971939087,
-0.04602738097310066,
0.48079201579093933,
-0.3189842402935028,
0.017279036343097687,
-0.0401390865445137,
-0.19411931931972504,
0.003633200889453292,
-0.10702323913574219,
0.4337175190448761,
-0.04157675802707672,
-0.0733078345656395,
0.5114348530769348,
0.049392230808734894,
0.318103164434433,
-0.3153344392776489,
0.2438235729932785,
-0.07387713342905045,
-0.2079106718301773,
-0.51924067735672,
0.24451325833797455,
0.11847976595163345,
0.0833028107881546,
-0.21407580375671387,
-0.24249273538589478,
0.0730280727148056,
0.04495035484433174,
-0.0016662722919136286,
-0.16838756203651428,
0.024413326755166054,
0.09009166806936264,
-0.16062721610069275,
-0.026859747245907784,
-0.010152521543204784,
0.10606620460748672,
0.43753233551979065,
0.13665974140167236,
-0.3299778699874878,
0.007785526569932699,
-0.39497220516204834,
0.15776759386062622,
0.02605234831571579,
0.20851346850395203,
0.20681315660476685,
-0.21949444711208344,
-0.23411451280117035,
0.019463060423731804,
-0.11119069159030914,
-0.043163422495126724,
0.37168025970458984,
-0.09794805198907852,
-0.07603984326124191,
-0.24627168476581573,
0.18239788711071014,
0.2029302418231964,
0.19593678414821625,
-0.11741681396961212,
0.20119568705558777,
0.21460267901420593,
0.12221931666135788,
0.35258302092552185,
-0.13769331574440002,
-0.20146752893924713,
-0.29379016160964966,
0.3205305337905884,
-0.08456283062696457,
-0.17774884402751923,
-0.07223356515169144,
0.21065731346607208,
-0.2353443205356598,
-0.31381556391716003,
0.2293097972869873,
0.04631625488400459,
-0.1134401187300682,
0.2572043240070343,
0.3315888047218323,
0.24621298909187317,
-0.14655014872550964,
0.2690940201282501,
0.07185391336679459,
-0.18565359711647034,
-0.07778020948171616,
-0.32748207449913025,
-0.3413885533809662,
0.2560740113258362,
0.4513757824897766,
0.15582482516765594,
0.11476043611764908,
-0.055274598300457,
0.08663882315158844,
-0.19717010855674744,
-0.4408750832080841,
0.06798544526100159,
-0.10292582958936691,
0.06602886319160461,
0.24939344823360443,
-0.17308101058006287,
0.37666165828704834,
-0.1902845799922943,
0.10507384687662125,
-0.17152966558933258,
-0.33767446875572205,
-0.31054311990737915,
0.04006996750831604,
0.1459280103445053,
-0.01235874928534031,
-0.29672902822494507,
-0.025279100984334946,
-0.554374098777771,
-0.3203262686729431,
-0.13491658866405487,
0.2085365504026413,
0.41518935561180115,
-0.19135135412216187,
0.02760263904929161,
-0.18674953281879425,
0.3740750551223755,
-0.03890511766076088,
0.08199279010295868,
0.032592277973890305,
0.30306312441825867,
-0.0030834879726171494,
0.24330009520053864,
-0.02951168455183506,
0.04305746406316757,
0.02539445459842682,
0.10726052522659302,
0.085172139108181,
0.13141945004463196,
0.41547641158103943,
-0.22441557049751282,
0.10768785327672958,
0.296552449464798,
0.548306405544281,
0.21454179286956787,
-0.08642923086881638,
0.1892004907131195,
0.1614549309015274,
0.3001291751861572,
-0.3635790944099426,
0.0032814843580126762,
0.02434004656970501,
0.13692684471607208,
0.36104053258895874,
0.06150808185338974,
0.4126158058643341,
0.02232528291642666,
-0.0799303948879242,
0.022095585241913795,
0.3285098075866699,
-0.1095598042011261,
0.22453096508979797,
0.12351544946432114,
0.06354141980409622,
0.10752584785223007,
0.08228591084480286,
0.47520044445991516,
0.01616472378373146,
0.3380527198314667,
-0.27611005306243896,
0.19018866121768951,
0.03580746427178383,
0.1610104739665985,
-0.199659064412117,
-0.38033124804496765,
0.3735845685005188,
0.012612571939826012,
-0.09095767140388489,
-0.22750268876552582,
-0.22773540019989014,
0.2517726421356201,
-0.45064130425453186,
-0.06101181358098984,
-0.17156678438186646,
0.13332080841064453,
-0.12181326746940613,
0.024881262332201004,
-0.39790648221969604,
-0.31763920187950134,
0.015624582767486572,
0.12472649663686752,
0.07117880135774612,
-0.04802756384015083,
0.006254245992749929,
-0.04222802817821503,
0.07728653401136398,
-0.18694986402988434,
0.1966555416584015,
-0.04459204152226448,
0.09621071815490723,
-0.010903147049248219,
0.02591836452484131,
0.22085462510585785,
-0.005505762528628111,
0.05313087999820709,
0.4975881576538086,
0.3380311131477356,
0.041527703404426575,
-0.2303500771522522,
0.14561572670936584,
-0.052200790494680405,
-0.14743578433990479,
-0.10493629425764084,
0.1791226863861084,
0.037331722676754,
0.11591462790966034,
0.3794882297515869,
0.2081170678138733,
-0.22560669481754303,
0.3958674669265747,
-0.11642260104417801,
-0.11571700125932693,
-0.4289554953575134,
0.23676307499408722,
0.21513444185256958,
-0.15472449362277985,
-0.041834790259599686,
-0.3053731322288513,
-0.19344447553157806,
-0.16616259515285492,
0.41171780228614807,
-0.0005010387976653874,
0.133231058716774,
-0.25208780169487,
0.14978736639022827,
0.10072056949138641,
0.4505886733531952,
0.18467366695404053,
0.24237395823001862,
-0.23920351266860962,
0.07929489761590958,
-0.6985384225845337,
-0.16707810759544373,
-0.12812650203704834,
0.32637739181518555,
-0.0735839232802391,
0.10575385391712189,
0.11156871169805527,
0.4124394655227661,
-0.006307064089924097,
0.1760132908821106,
0.059697940945625305,
-0.21316835284233093,
-0.3156415522098541,
-0.06605885922908783,
-0.12220079451799393,
-0.12911856174468994,
0.00746245589107275,
-0.22769242525100708,
0.14308036863803864,
-0.33697637915611267,
0.03819798678159714,
0.0014554901281371713,
0.22137846052646637,
-0.17708642780780792,
-0.12683385610580444,
0.418549507856369,
0.1040801852941513,
0.3364284932613373,
0.16345354914665222,
-0.082633838057518,
-0.04675498977303505,
-0.002987126586958766,
-0.0648399218916893,
0.19435319304466248,
-0.07710424810647964,
-0.03476517274975777,
-0.16950148344039917,
-0.17485754191875458,
-0.16514194011688232,
0.1906263828277588,
0.0405406728386879,
0.023738345131278038,
-0.14283743500709534,
-0.04906117916107178,
0.05873570591211319,
0.06168580427765846,
0.05284428223967552,
0.0825137048959732,
-0.11660221219062805,
0.21324798464775085,
-0.1673646867275238,
0.01565088890492916,
0.3196121156215668,
-0.06937583535909653,
0.009911649860441685,
-0.36812150478363037,
0.2837963402271271,
0.2504248023033142,
-0.034255169332027435,
-0.46022599935531616,
0.15612591803073883,
0.29614225029945374,
-0.18321159482002258,
-0.15913572907447815,
0.297078937292099,
-0.21991167962551117,
-0.18535849452018738,
-0.05066034942865372,
0.18979860842227936,
-0.22448919713497162,
-0.2536669671535492,
0.01383531466126442,
-0.15920838713645935
] |
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.5023793578147888,
-0.17439505457878113,
-0.22950227558612823,
0.13015730679035187,
0.17803533375263214,
0.03179485723376274,
0.2955615222454071,
0.1713043749332428,
-0.14847035706043243,
0.17807641625404358,
0.0091216079890728,
0.1247805655002594,
0.06412006169557571,
0.24562369287014008,
-0.056165166199207306,
-0.03589155152440071,
-0.07459747791290283,
0.04837736487388611,
0.10960933566093445,
0.007234321907162666,
-0.367609441280365,
0.06899761408567429,
-0.40430739521980286,
0.05223408713936806,
-0.22304651141166687,
-0.2693566083908081,
-0.06124517694115639,
-0.03925709426403046,
-0.004413147922605276,
-0.1525888442993164,
-0.0022253848146647215,
0.23349492251873016,
0.20883941650390625,
0.4326503276824951,
-0.00010495645256014541,
0.07853103429079056,
0.2467757612466812,
0.039382606744766235,
-0.2903357148170471,
0.22262819111347198,
-0.04940086603164673,
-0.1695530116558075,
-0.1062985211610794,
-0.3042084872722626,
-0.10083647072315216,
-0.0860012024641037,
-0.13855910301208496,
-0.3374301493167877,
0.38483110070228577,
0.17538321018218994,
0.2844720482826233,
0.28025493025779724,
-0.14760543406009674,
0.1414177417755127,
0.061004117131233215,
0.07145334780216217,
0.08511285483837128,
-0.3902089595794678,
0.06823211163282394,
0.1479274481534958,
-0.04840623587369919,
0.14962005615234375,
-0.27203041315078735,
0.08594108372926712,
-0.25509727001190186,
0.021888067945837975,
0.026098523288965225,
-0.3847030997276306,
0.08848500996828079,
-0.13497596979141235,
0.28465935587882996,
-0.2123626321554184,
-0.24407505989074707,
-0.3842584490776062,
-0.2724655270576477,
-0.46531736850738525,
-0.02697872743010521,
0.11313216388225555,
-0.06848184019327164,
0.10127133876085281,
-0.07858765125274658,
0.24084646999835968,
-0.07372263818979263,
-0.16669467091560364,
0.11142711341381073,
0.25681114196777344,
-0.21192365884780884,
0.21988189220428467,
0.07004103064537048,
0.08878879994153976,
0.16481520235538483,
-0.23507195711135864,
-0.00043377632391639054,
0.27236026525497437,
-0.4907975196838379,
-0.08711934089660645,
-0.11177440732717514,
-0.15199066698551178,
-0.14089563488960266,
0.05416049435734749,
-0.12841305136680603,
0.12723030149936676,
0.3161274790763855,
0.15641845762729645,
-0.029596159234642982,
0.16435664892196655,
0.1187213584780693,
0.2562069892883301,
-0.07711833715438843,
-0.3050597608089447,
-0.226043239235878,
0.02775692008435726,
-0.07858912646770477,
-0.32984626293182373,
0.1471385359764099,
0.3610411286354065,
0.24992474913597107,
0.03027815744280815,
-0.4871649146080017,
-0.0903923511505127,
-0.019041847437620163,
-0.058097872883081436,
0.14209330081939697,
0.28459179401397705,
-0.24076266586780548,
0.25084665417671204,
-0.08102607727050781,
-0.15231643617153168,
-0.2926348149776459,
-0.0461963415145874,
-0.30273836851119995,
-0.11525717377662659,
-0.14961975812911987,
0.07027898728847504,
0.13497717678546906,
-0.17216011881828308,
0.3239179849624634,
0.07558318227529526,
0.09628629684448242,
-0.17466019093990326,
0.5014525651931763,
-0.39494210481643677,
0.22241252660751343,
0.2599136233329773,
0.17958174645900726,
0.24265004694461823,
0.05320148542523384,
0.20976601541042328,
0.03996153175830841,
0.07378121465444565,
-0.6257681250572205,
-0.17911772429943085,
0.24746303260326385,
0.31384915113449097,
-0.050552062690258026,
0.001461210660636425,
-0.5935844779014587,
-0.08692207932472229,
0.3213267922401428,
0.09062690287828445,
0.11970967054367065,
-0.17542579770088196,
-0.1859956532716751,
-0.19467967748641968,
0.20039664208889008,
0.08525838702917099,
-0.4504096806049347,
0.06793278455734253,
-0.11536451429128647,
-0.32274457812309265,
0.5454283356666565,
0.12426868826150894,
-0.11386668682098389,
0.6199550628662109,
-0.30955517292022705,
0.37830284237861633,
0.19371894001960754,
-0.3189389109611511,
-0.28150853514671326,
0.5390692949295044,
-0.2575122117996216,
0.01808721385896206,
0.03982048109173775,
0.03250688686966896,
0.5586627125740051,
-0.060287073254585266,
0.036230478435754776,
0.3787432610988617,
-0.1192287877202034,
0.09029851108789444,
-0.09956982731819153,
0.11563690751791,
0.08595358580350876,
-0.017408102750778198,
0.10389263927936554,
0.04386354237794876,
-0.2167433351278305,
-0.044553764164447784,
0.17378152906894684,
0.05349906533956528,
0.296599805355072,
0.2496744990348816,
0.011494241654872894,
0.20879803597927094,
0.19324637949466705,
-0.04541245847940445,
-0.29646551609039307,
0.0957319363951683,
-0.02033264935016632,
-0.18323372304439545,
0.040564633905887604,
-0.35658377408981323,
-0.1427384316921234,
0.14648354053497314,
-0.4080844819545746,
-0.1703144758939743,
0.2187936007976532,
0.09122446179389954,
0.022360680624842644,
-0.31332695484161377,
0.005141151137650013,
0.32892629504203796,
-0.018436800688505173,
0.03201243281364441,
-0.19385387003421783,
-0.02204538695514202,
0.007847723551094532,
-0.1507640928030014,
-0.061333782970905304,
-0.07919996231794357,
0.22282172739505768,
0.007429992780089378,
-0.049333930015563965,
0.3533654510974884,
0.27474552392959595,
0.06399562954902649,
-0.03651611879467964,
-0.12384665757417679,
-0.0102489423006773,
0.11414770781993866,
-0.09052632749080658,
-0.035854484885931015,
0.21717311441898346,
-0.12560658156871796,
0.24783101677894592,
0.4252820312976837,
-0.04693375527858734,
0.2657584846019745,
-0.038255758583545685,
-0.27364522218704224,
0.22645258903503418,
-0.07021665573120117,
-0.04286755621433258,
0.1976914256811142,
-0.045872341841459274,
0.0015259822830557823,
0.340833842754364,
0.044004637748003006,
-0.055948011577129364,
0.17708720266819,
0.42730364203453064,
-0.004344726912677288,
-0.16920295357704163,
-0.019230607897043228,
-0.20830509066581726,
0.10800880938768387,
0.15949587523937225,
-0.025841081514954567,
0.12190823256969452,
0.16937188804149628,
0.11964860558509827,
-0.10231415927410126,
0.10452355444431305,
-0.037963300943374634,
0.08203031867742538,
0.3170749843120575,
0.1805194765329361,
0.16187416017055511,
-0.09162619709968567,
-0.056181591004133224,
-0.0036794173065572977,
-0.11006948351860046,
0.1913621574640274,
0.23988457024097443,
-0.3654336929321289,
0.21321973204612732,
-0.14593000710010529,
-0.08981078863143921,
-0.15111790597438812,
-0.03144615516066551,
0.16132862865924835,
-0.1398269683122635,
-0.07640741020441055,
0.21738870441913605,
-0.1582915037870407,
0.028308896347880363,
-0.08624474704265594,
0.039337314665317535,
0.2715218961238861,
-0.3807457685470581,
-0.160862997174263,
-0.05961788445711136,
-0.18188273906707764,
0.20186202228069305,
0.06786832958459854,
0.10808639228343964,
0.46832260489463806,
0.05143449828028679,
0.038784850388765335,
-0.11554976552724838,
-0.15221790969371796,
0.07787872105836868,
-0.19765254855155945,
0.17671023309230804,
0.01694473810493946,
0.14017514884471893,
-0.10795977711677551,
-0.38399457931518555,
0.13910774886608124,
-0.18394094705581665,
-0.3313494026660919,
-0.08557295054197311,
-0.017346683889627457,
0.040500886738300323,
-0.2087072879076004,
-0.43180835247039795,
-0.23302151262760162,
-0.1791113168001175,
0.02162357233464718,
-0.06954986602067947,
0.2032477706670761,
-0.009368862956762314,
-0.01788991503417492,
0.14972145855426788,
0.2623843550682068,
-0.1572471708059311,
-0.08772160857915878,
-0.48812612891197205,
0.12461232393980026,
-0.2836303412914276,
-0.019732151180505753,
-0.09225717186927795,
-0.10247082263231277,
0.42235493659973145,
0.30863821506500244,
-0.1903933882713318,
0.11806035786867142,
-0.08892644941806793,
0.2408316433429718,
-0.09775333106517792,
-0.02653518132865429,
0.19540737569332123,
-0.07893309742212296,
-0.09966464340686798,
-0.11733502149581909,
0.07362312078475952,
0.11769802868366241,
-0.2414381504058838,
0.0647149309515953,
-0.017784735187888145,
0.649241030216217,
-0.019282814115285873,
0.9116160273551941,
0.08709489554166794,
-0.08747826516628265,
0.13292498886585236,
0.004422834143042564,
-0.15793953835964203,
-0.012976305559277534,
-0.3009169101715088,
0.09074514359235764,
0.027977975085377693,
-0.18693673610687256,
0.19288834929466248,
-0.17218823730945587,
-0.008557895198464394,
0.07027656584978104,
-0.017148274928331375,
-0.6442946195602417,
-0.06746680289506912,
0.07695288211107254,
0.004139872267842293,
0.34356996417045593,
-0.15659524500370026,
0.06825964152812958,
-0.28335344791412354,
-0.059069808572530746,
-0.09082845598459244,
0.04646984115242958,
0.23815946280956268,
-0.18369115889072418,
-0.359834223985672,
0.08883543312549591,
-0.2709050178527832,
0.29562559723854065,
0.06683944910764694,
0.33355268836021423,
0.02760321833193302,
-0.040016643702983856,
0.11126229166984558,
-0.1317252516746521,
0.7860840559005737,
-0.044302068650722504,
0.0675165057182312,
0.05719434842467308,
-0.24339771270751953,
-0.16151008009910583,
-0.08450391888618469,
-0.33915337920188904,
0.20840011537075043,
0.5520214438438416,
0.29441818594932556,
-0.21103757619857788,
-0.36287975311279297,
0.01731281355023384,
-0.18864166736602783,
-0.16484619677066803,
-0.2995319366455078,
-0.33777812123298645,
-0.1493663638830185,
-0.38238635659217834,
0.3109837770462036,
0.2597949802875519,
0.11348218470811844,
-0.436888188123703,
-0.371288925409317,
-0.30570152401924133,
-0.08963453769683838,
0.19536447525024414,
-0.06653830409049988,
0.028660979121923447,
0.02389732003211975,
0.2161182016134262,
0.02199636958539486,
0.2875387370586395,
0.3828946352005005,
0.21269583702087402,
-0.17296354472637177,
-0.3372839093208313,
0.18278101086616516,
-0.09838756173849106,
0.4843112528324127,
0.028596490621566772,
-0.2987976372241974,
0.3437287509441376,
-0.03737922012805939,
0.19202017784118652,
-0.45076048374176025,
0.5018004775047302,
0.43237558007240295,
0.1806504875421524,
-0.5321658849716187,
-0.5739417672157288,
0.15346746146678925,
0.33902186155319214,
-0.09803453832864761,
0.13715258240699768,
-0.2328917384147644,
-0.27702656388282776,
0.10098827630281448,
0.19510196149349213,
0.620547354221344,
-0.025613456964492798,
-0.08867210149765015,
0.10174821317195892,
0.2892378568649292,
0.06580015271902084,
-0.20645758509635925,
0.10265843570232391,
-0.3231613337993622,
0.0041054124012589455,
0.032334379851818085,
-0.17724351584911346,
0.20915642380714417,
0.40434524416923523,
-0.13527058064937592,
0.197356179356575,
-0.15097612142562866,
0.21516266465187073,
-0.15519067645072937,
0.30898094177246094,
0.04214150831103325,
-0.23292846977710724,
-0.05069516971707344,
0.24305015802383423,
-0.13156147301197052,
0.21989282965660095,
-0.15606535971164703,
-0.11211609095335007,
0.12239843606948853,
-0.10483375191688538,
0.20299725234508514,
0.02853124402463436,
-0.4526076912879944,
-0.03279072418808937,
-0.18331393599510193,
-0.15974538028240204,
0.013377056457102299,
-0.08203790336847305,
0.3468179404735565,
0.2518923878669739,
0.18600133061408997,
-0.004145259037613869,
0.033250413835048676,
0.14275085926055908,
-0.008819563314318657,
-0.3308890461921692,
0.3472426235675812,
-0.04577440023422241,
-0.17525885999202728,
0.04881734773516655,
0.053034860640764236,
-0.270037442445755,
-0.017160998657345772,
-0.016213450580835342,
0.40814581513404846,
-0.43756791949272156,
-0.0731348767876625,
-0.06176837533712387,
-0.15973223745822906,
-0.09741274267435074,
0.1880708485841751,
-0.08199923485517502,
-0.2776877284049988,
0.4453328847885132,
-0.19184429943561554,
-0.204532653093338,
-0.0458536222577095,
0.17013773322105408,
0.2722022533416748,
-0.2661241292953491,
0.5271486639976501,
-0.008169515989720821,
-0.20395967364311218,
-0.29860877990722656,
0.11816693097352982,
0.24067531526088715,
-0.17892581224441528,
0.30723270773887634,
0.14913325011730194,
0.18016158044338226,
0.2399328351020813,
0.06528569012880325,
-0.245269313454628,
0.0456206239759922,
-0.19461192190647125,
-0.25122126936912537,
-0.45873379707336426,
-0.2272525131702423,
-0.1453617513179779,
0.293692022562027,
0.3126305937767029,
0.282848984003067,
-0.049839090555906296,
0.33585765957832336,
-0.40657949447631836,
-0.11494086682796478,
-0.1531323343515396,
0.2728172838687897,
0.1524820178747177,
0.012861635535955429,
-0.006706562824547291,
0.2280721366405487,
0.1662234663963318,
0.2789081633090973,
-0.05580620467662811,
-0.39851340651512146,
0.024518202990293503,
0.045939814299345016,
-0.1330244392156601,
-0.06215227022767067,
0.03711347281932831,
-0.021833905950188637,
-0.24584297835826874,
-0.10736279934644699,
0.25165385007858276,
0.01316329836845398,
0.13181543350219727,
0.20925873517990112,
0.4427996873855591,
0.33919185400009155,
0.11982206255197525,
0.10461724549531937,
-0.14008492231369019,
0.05194290727376938,
0.03908638656139374,
0.2915998101234436,
0.07285556197166443,
-0.009759613312780857,
-0.008776828646659851,
-0.27145183086395264,
0.6143187284469604,
0.0637843906879425,
0.019337693229317665,
-0.39355039596557617,
-0.2791869342327118,
0.12814775109291077,
0.08865884691476822,
0.29241836071014404,
0.05750032886862755,
-0.2814282774925232,
0.31451016664505005,
0.35618969798088074,
0.03744872659444809,
0.31047865748405457,
0.16915300488471985,
-0.1325731873512268,
0.129197359085083,
0.13975754380226135,
-0.06164480745792389,
0.25249186158180237,
0.1008177325129509,
0.1690560281276703,
0.2947509288787842,
-0.27979758381843567,
0.12887735664844513,
0.19377806782722473,
0.08811318129301071,
0.06436004489660263,
0.3061843812465668,
0.09502348303794861,
0.09196453541517258,
0.41183966398239136,
0.14214234054088593,
0.586965799331665,
0.156269833445549,
0.13302333652973175,
0.03606576472520828,
-0.4071057140827179,
-0.34135425090789795,
0.2097715437412262,
-0.30469462275505066,
0.18842552602291107,
-0.014216933399438858,
0.218208909034729,
0.14944644272327423,
-0.1891220062971115,
-0.08786435425281525,
0.38388821482658386,
-0.4658755958080292,
-0.11966616660356522,
-0.5270378589630127,
-0.06187354028224945,
0.04706660658121109,
-0.1525256633758545,
0.14220088720321655,
0.00033454829826951027,
-0.026842957362532616,
0.020939679816365242,
-0.04460534080862999,
0.03610987961292267,
-0.2875402867794037,
0.28775373101234436,
-0.06748653203248978,
-0.15694420039653778,
0.07979942858219147,
-0.026049865409731865,
0.15239346027374268,
-0.006878577638417482,
0.21889500319957733,
0.3761073350906372,
0.3229934275150299,
-0.19221463799476624,
-0.09409655630588531,
0.05172936990857124,
-0.06287147104740143,
-0.16198469698429108,
0.2549487352371216,
-0.1922801285982132,
-0.005392560735344887,
0.38154953718185425,
0.2739577293395996,
-0.24998332560062408,
-0.3349291980266571,
0.025708137080073357,
-0.021838843822479248,
-0.04134804755449295,
0.4966605305671692,
0.11915773153305054,
-0.10868071764707565,
-0.28611674904823303,
-0.026095792651176453,
-0.42549464106559753,
-0.049384456127882004,
0.521059513092041,
-0.4102798104286194,
0.10819422453641891,
-0.18439637124538422,
0.1237969845533371,
-0.2985062301158905,
0.42485469579696655,
0.30588555335998535,
0.2850419580936432,
-0.46722811460494995,
0.01592043973505497,
-0.28361475467681885,
0.22864222526550293,
-0.050108734518289566,
0.000818878470454365,
-0.24609048664569855,
0.24277395009994507,
-0.2073604166507721,
0.06424186378717422,
-0.0658617913722992,
-0.14118583500385284,
0.08984827250242233,
0.3890620768070221,
-0.34447044134140015,
0.07817662507295609,
-0.30711087584495544,
-0.027144411578774452,
0.13910964131355286,
-0.31648436188697815,
0.16173800826072693,
0.1141606867313385,
0.15744228661060333,
-0.15649721026420593,
0.027108099311590195,
0.29524728655815125,
-0.18972550332546234,
0.2510138154029846,
0.21740080416202545,
0.35639315843582153,
-0.21160170435905457,
0.48408886790275574,
-0.0992441326379776,
0.0562531016767025,
-0.30123406648635864,
-0.163441002368927,
0.14305473864078522,
0.1765764206647873,
0.022572217509150505,
0.026949191465973854,
-0.24921156466007233,
-0.08632692694664001,
0.08038070052862167,
-0.18460287153720856,
0.033137235790491104,
0.06712166219949722,
-0.05809308588504791,
0.035701118409633636,
0.0681236982345581,
0.19037188589572906,
0.2587810158729553,
0.23001249134540558,
-0.42246735095977783,
-0.42453011870384216,
0.4023638367652893,
-0.388386607170105,
-0.30135393142700195,
-0.3631491959095001,
0.29552745819091797,
0.05901414901018143,
0.09622547030448914,
-0.15730418264865875,
0.0010296334512531757,
0.4445217251777649,
-0.05837042257189751,
-0.007164987735450268,
0.3775206208229065,
0.17068329453468323,
0.20298974215984344,
-0.17770664393901825,
-0.11001564562320709,
0.11934869736433029,
-0.0026773714926093817,
0.0720624029636383,
-0.3162928521633148
] |
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.5023793578147888,
-0.17439505457878113,
-0.22950227558612823,
0.13015730679035187,
0.17803533375263214,
0.03179485723376274,
0.2955615222454071,
0.1713043749332428,
-0.14847035706043243,
0.17807641625404358,
0.0091216079890728,
0.1247805655002594,
0.06412006169557571,
0.24562369287014008,
-0.056165166199207306,
-0.03589155152440071,
-0.07459747791290283,
0.04837736487388611,
0.10960933566093445,
0.007234321907162666,
-0.367609441280365,
0.06899761408567429,
-0.40430739521980286,
0.05223408713936806,
-0.22304651141166687,
-0.2693566083908081,
-0.06124517694115639,
-0.03925709426403046,
-0.004413147922605276,
-0.1525888442993164,
-0.0022253848146647215,
0.23349492251873016,
0.20883941650390625,
0.4326503276824951,
-0.00010495645256014541,
0.07853103429079056,
0.2467757612466812,
0.039382606744766235,
-0.2903357148170471,
0.22262819111347198,
-0.04940086603164673,
-0.1695530116558075,
-0.1062985211610794,
-0.3042084872722626,
-0.10083647072315216,
-0.0860012024641037,
-0.13855910301208496,
-0.3374301493167877,
0.38483110070228577,
0.17538321018218994,
0.2844720482826233,
0.28025493025779724,
-0.14760543406009674,
0.1414177417755127,
0.061004117131233215,
0.07145334780216217,
0.08511285483837128,
-0.3902089595794678,
0.06823211163282394,
0.1479274481534958,
-0.04840623587369919,
0.14962005615234375,
-0.27203041315078735,
0.08594108372926712,
-0.25509727001190186,
0.021888067945837975,
0.026098523288965225,
-0.3847030997276306,
0.08848500996828079,
-0.13497596979141235,
0.28465935587882996,
-0.2123626321554184,
-0.24407505989074707,
-0.3842584490776062,
-0.2724655270576477,
-0.46531736850738525,
-0.02697872743010521,
0.11313216388225555,
-0.06848184019327164,
0.10127133876085281,
-0.07858765125274658,
0.24084646999835968,
-0.07372263818979263,
-0.16669467091560364,
0.11142711341381073,
0.25681114196777344,
-0.21192365884780884,
0.21988189220428467,
0.07004103064537048,
0.08878879994153976,
0.16481520235538483,
-0.23507195711135864,
-0.00043377632391639054,
0.27236026525497437,
-0.4907975196838379,
-0.08711934089660645,
-0.11177440732717514,
-0.15199066698551178,
-0.14089563488960266,
0.05416049435734749,
-0.12841305136680603,
0.12723030149936676,
0.3161274790763855,
0.15641845762729645,
-0.029596159234642982,
0.16435664892196655,
0.1187213584780693,
0.2562069892883301,
-0.07711833715438843,
-0.3050597608089447,
-0.226043239235878,
0.02775692008435726,
-0.07858912646770477,
-0.32984626293182373,
0.1471385359764099,
0.3610411286354065,
0.24992474913597107,
0.03027815744280815,
-0.4871649146080017,
-0.0903923511505127,
-0.019041847437620163,
-0.058097872883081436,
0.14209330081939697,
0.28459179401397705,
-0.24076266586780548,
0.25084665417671204,
-0.08102607727050781,
-0.15231643617153168,
-0.2926348149776459,
-0.0461963415145874,
-0.30273836851119995,
-0.11525717377662659,
-0.14961975812911987,
0.07027898728847504,
0.13497717678546906,
-0.17216011881828308,
0.3239179849624634,
0.07558318227529526,
0.09628629684448242,
-0.17466019093990326,
0.5014525651931763,
-0.39494210481643677,
0.22241252660751343,
0.2599136233329773,
0.17958174645900726,
0.24265004694461823,
0.05320148542523384,
0.20976601541042328,
0.03996153175830841,
0.07378121465444565,
-0.6257681250572205,
-0.17911772429943085,
0.24746303260326385,
0.31384915113449097,
-0.050552062690258026,
0.001461210660636425,
-0.5935844779014587,
-0.08692207932472229,
0.3213267922401428,
0.09062690287828445,
0.11970967054367065,
-0.17542579770088196,
-0.1859956532716751,
-0.19467967748641968,
0.20039664208889008,
0.08525838702917099,
-0.4504096806049347,
0.06793278455734253,
-0.11536451429128647,
-0.32274457812309265,
0.5454283356666565,
0.12426868826150894,
-0.11386668682098389,
0.6199550628662109,
-0.30955517292022705,
0.37830284237861633,
0.19371894001960754,
-0.3189389109611511,
-0.28150853514671326,
0.5390692949295044,
-0.2575122117996216,
0.01808721385896206,
0.03982048109173775,
0.03250688686966896,
0.5586627125740051,
-0.060287073254585266,
0.036230478435754776,
0.3787432610988617,
-0.1192287877202034,
0.09029851108789444,
-0.09956982731819153,
0.11563690751791,
0.08595358580350876,
-0.017408102750778198,
0.10389263927936554,
0.04386354237794876,
-0.2167433351278305,
-0.044553764164447784,
0.17378152906894684,
0.05349906533956528,
0.296599805355072,
0.2496744990348816,
0.011494241654872894,
0.20879803597927094,
0.19324637949466705,
-0.04541245847940445,
-0.29646551609039307,
0.0957319363951683,
-0.02033264935016632,
-0.18323372304439545,
0.040564633905887604,
-0.35658377408981323,
-0.1427384316921234,
0.14648354053497314,
-0.4080844819545746,
-0.1703144758939743,
0.2187936007976532,
0.09122446179389954,
0.022360680624842644,
-0.31332695484161377,
0.005141151137650013,
0.32892629504203796,
-0.018436800688505173,
0.03201243281364441,
-0.19385387003421783,
-0.02204538695514202,
0.007847723551094532,
-0.1507640928030014,
-0.061333782970905304,
-0.07919996231794357,
0.22282172739505768,
0.007429992780089378,
-0.049333930015563965,
0.3533654510974884,
0.27474552392959595,
0.06399562954902649,
-0.03651611879467964,
-0.12384665757417679,
-0.0102489423006773,
0.11414770781993866,
-0.09052632749080658,
-0.035854484885931015,
0.21717311441898346,
-0.12560658156871796,
0.24783101677894592,
0.4252820312976837,
-0.04693375527858734,
0.2657584846019745,
-0.038255758583545685,
-0.27364522218704224,
0.22645258903503418,
-0.07021665573120117,
-0.04286755621433258,
0.1976914256811142,
-0.045872341841459274,
0.0015259822830557823,
0.340833842754364,
0.044004637748003006,
-0.055948011577129364,
0.17708720266819,
0.42730364203453064,
-0.004344726912677288,
-0.16920295357704163,
-0.019230607897043228,
-0.20830509066581726,
0.10800880938768387,
0.15949587523937225,
-0.025841081514954567,
0.12190823256969452,
0.16937188804149628,
0.11964860558509827,
-0.10231415927410126,
0.10452355444431305,
-0.037963300943374634,
0.08203031867742538,
0.3170749843120575,
0.1805194765329361,
0.16187416017055511,
-0.09162619709968567,
-0.056181591004133224,
-0.0036794173065572977,
-0.11006948351860046,
0.1913621574640274,
0.23988457024097443,
-0.3654336929321289,
0.21321973204612732,
-0.14593000710010529,
-0.08981078863143921,
-0.15111790597438812,
-0.03144615516066551,
0.16132862865924835,
-0.1398269683122635,
-0.07640741020441055,
0.21738870441913605,
-0.1582915037870407,
0.028308896347880363,
-0.08624474704265594,
0.039337314665317535,
0.2715218961238861,
-0.3807457685470581,
-0.160862997174263,
-0.05961788445711136,
-0.18188273906707764,
0.20186202228069305,
0.06786832958459854,
0.10808639228343964,
0.46832260489463806,
0.05143449828028679,
0.038784850388765335,
-0.11554976552724838,
-0.15221790969371796,
0.07787872105836868,
-0.19765254855155945,
0.17671023309230804,
0.01694473810493946,
0.14017514884471893,
-0.10795977711677551,
-0.38399457931518555,
0.13910774886608124,
-0.18394094705581665,
-0.3313494026660919,
-0.08557295054197311,
-0.017346683889627457,
0.040500886738300323,
-0.2087072879076004,
-0.43180835247039795,
-0.23302151262760162,
-0.1791113168001175,
0.02162357233464718,
-0.06954986602067947,
0.2032477706670761,
-0.009368862956762314,
-0.01788991503417492,
0.14972145855426788,
0.2623843550682068,
-0.1572471708059311,
-0.08772160857915878,
-0.48812612891197205,
0.12461232393980026,
-0.2836303412914276,
-0.019732151180505753,
-0.09225717186927795,
-0.10247082263231277,
0.42235493659973145,
0.30863821506500244,
-0.1903933882713318,
0.11806035786867142,
-0.08892644941806793,
0.2408316433429718,
-0.09775333106517792,
-0.02653518132865429,
0.19540737569332123,
-0.07893309742212296,
-0.09966464340686798,
-0.11733502149581909,
0.07362312078475952,
0.11769802868366241,
-0.2414381504058838,
0.0647149309515953,
-0.017784735187888145,
0.649241030216217,
-0.019282814115285873,
0.9116160273551941,
0.08709489554166794,
-0.08747826516628265,
0.13292498886585236,
0.004422834143042564,
-0.15793953835964203,
-0.012976305559277534,
-0.3009169101715088,
0.09074514359235764,
0.027977975085377693,
-0.18693673610687256,
0.19288834929466248,
-0.17218823730945587,
-0.008557895198464394,
0.07027656584978104,
-0.017148274928331375,
-0.6442946195602417,
-0.06746680289506912,
0.07695288211107254,
0.004139872267842293,
0.34356996417045593,
-0.15659524500370026,
0.06825964152812958,
-0.28335344791412354,
-0.059069808572530746,
-0.09082845598459244,
0.04646984115242958,
0.23815946280956268,
-0.18369115889072418,
-0.359834223985672,
0.08883543312549591,
-0.2709050178527832,
0.29562559723854065,
0.06683944910764694,
0.33355268836021423,
0.02760321833193302,
-0.040016643702983856,
0.11126229166984558,
-0.1317252516746521,
0.7860840559005737,
-0.044302068650722504,
0.0675165057182312,
0.05719434842467308,
-0.24339771270751953,
-0.16151008009910583,
-0.08450391888618469,
-0.33915337920188904,
0.20840011537075043,
0.5520214438438416,
0.29441818594932556,
-0.21103757619857788,
-0.36287975311279297,
0.01731281355023384,
-0.18864166736602783,
-0.16484619677066803,
-0.2995319366455078,
-0.33777812123298645,
-0.1493663638830185,
-0.38238635659217834,
0.3109837770462036,
0.2597949802875519,
0.11348218470811844,
-0.436888188123703,
-0.371288925409317,
-0.30570152401924133,
-0.08963453769683838,
0.19536447525024414,
-0.06653830409049988,
0.028660979121923447,
0.02389732003211975,
0.2161182016134262,
0.02199636958539486,
0.2875387370586395,
0.3828946352005005,
0.21269583702087402,
-0.17296354472637177,
-0.3372839093208313,
0.18278101086616516,
-0.09838756173849106,
0.4843112528324127,
0.028596490621566772,
-0.2987976372241974,
0.3437287509441376,
-0.03737922012805939,
0.19202017784118652,
-0.45076048374176025,
0.5018004775047302,
0.43237558007240295,
0.1806504875421524,
-0.5321658849716187,
-0.5739417672157288,
0.15346746146678925,
0.33902186155319214,
-0.09803453832864761,
0.13715258240699768,
-0.2328917384147644,
-0.27702656388282776,
0.10098827630281448,
0.19510196149349213,
0.620547354221344,
-0.025613456964492798,
-0.08867210149765015,
0.10174821317195892,
0.2892378568649292,
0.06580015271902084,
-0.20645758509635925,
0.10265843570232391,
-0.3231613337993622,
0.0041054124012589455,
0.032334379851818085,
-0.17724351584911346,
0.20915642380714417,
0.40434524416923523,
-0.13527058064937592,
0.197356179356575,
-0.15097612142562866,
0.21516266465187073,
-0.15519067645072937,
0.30898094177246094,
0.04214150831103325,
-0.23292846977710724,
-0.05069516971707344,
0.24305015802383423,
-0.13156147301197052,
0.21989282965660095,
-0.15606535971164703,
-0.11211609095335007,
0.12239843606948853,
-0.10483375191688538,
0.20299725234508514,
0.02853124402463436,
-0.4526076912879944,
-0.03279072418808937,
-0.18331393599510193,
-0.15974538028240204,
0.013377056457102299,
-0.08203790336847305,
0.3468179404735565,
0.2518923878669739,
0.18600133061408997,
-0.004145259037613869,
0.033250413835048676,
0.14275085926055908,
-0.008819563314318657,
-0.3308890461921692,
0.3472426235675812,
-0.04577440023422241,
-0.17525885999202728,
0.04881734773516655,
0.053034860640764236,
-0.270037442445755,
-0.017160998657345772,
-0.016213450580835342,
0.40814581513404846,
-0.43756791949272156,
-0.0731348767876625,
-0.06176837533712387,
-0.15973223745822906,
-0.09741274267435074,
0.1880708485841751,
-0.08199923485517502,
-0.2776877284049988,
0.4453328847885132,
-0.19184429943561554,
-0.204532653093338,
-0.0458536222577095,
0.17013773322105408,
0.2722022533416748,
-0.2661241292953491,
0.5271486639976501,
-0.008169515989720821,
-0.20395967364311218,
-0.29860877990722656,
0.11816693097352982,
0.24067531526088715,
-0.17892581224441528,
0.30723270773887634,
0.14913325011730194,
0.18016158044338226,
0.2399328351020813,
0.06528569012880325,
-0.245269313454628,
0.0456206239759922,
-0.19461192190647125,
-0.25122126936912537,
-0.45873379707336426,
-0.2272525131702423,
-0.1453617513179779,
0.293692022562027,
0.3126305937767029,
0.282848984003067,
-0.049839090555906296,
0.33585765957832336,
-0.40657949447631836,
-0.11494086682796478,
-0.1531323343515396,
0.2728172838687897,
0.1524820178747177,
0.012861635535955429,
-0.006706562824547291,
0.2280721366405487,
0.1662234663963318,
0.2789081633090973,
-0.05580620467662811,
-0.39851340651512146,
0.024518202990293503,
0.045939814299345016,
-0.1330244392156601,
-0.06215227022767067,
0.03711347281932831,
-0.021833905950188637,
-0.24584297835826874,
-0.10736279934644699,
0.25165385007858276,
0.01316329836845398,
0.13181543350219727,
0.20925873517990112,
0.4427996873855591,
0.33919185400009155,
0.11982206255197525,
0.10461724549531937,
-0.14008492231369019,
0.05194290727376938,
0.03908638656139374,
0.2915998101234436,
0.07285556197166443,
-0.009759613312780857,
-0.008776828646659851,
-0.27145183086395264,
0.6143187284469604,
0.0637843906879425,
0.019337693229317665,
-0.39355039596557617,
-0.2791869342327118,
0.12814775109291077,
0.08865884691476822,
0.29241836071014404,
0.05750032886862755,
-0.2814282774925232,
0.31451016664505005,
0.35618969798088074,
0.03744872659444809,
0.31047865748405457,
0.16915300488471985,
-0.1325731873512268,
0.129197359085083,
0.13975754380226135,
-0.06164480745792389,
0.25249186158180237,
0.1008177325129509,
0.1690560281276703,
0.2947509288787842,
-0.27979758381843567,
0.12887735664844513,
0.19377806782722473,
0.08811318129301071,
0.06436004489660263,
0.3061843812465668,
0.09502348303794861,
0.09196453541517258,
0.41183966398239136,
0.14214234054088593,
0.586965799331665,
0.156269833445549,
0.13302333652973175,
0.03606576472520828,
-0.4071057140827179,
-0.34135425090789795,
0.2097715437412262,
-0.30469462275505066,
0.18842552602291107,
-0.014216933399438858,
0.218208909034729,
0.14944644272327423,
-0.1891220062971115,
-0.08786435425281525,
0.38388821482658386,
-0.4658755958080292,
-0.11966616660356522,
-0.5270378589630127,
-0.06187354028224945,
0.04706660658121109,
-0.1525256633758545,
0.14220088720321655,
0.00033454829826951027,
-0.026842957362532616,
0.020939679816365242,
-0.04460534080862999,
0.03610987961292267,
-0.2875402867794037,
0.28775373101234436,
-0.06748653203248978,
-0.15694420039653778,
0.07979942858219147,
-0.026049865409731865,
0.15239346027374268,
-0.006878577638417482,
0.21889500319957733,
0.3761073350906372,
0.3229934275150299,
-0.19221463799476624,
-0.09409655630588531,
0.05172936990857124,
-0.06287147104740143,
-0.16198469698429108,
0.2549487352371216,
-0.1922801285982132,
-0.005392560735344887,
0.38154953718185425,
0.2739577293395996,
-0.24998332560062408,
-0.3349291980266571,
0.025708137080073357,
-0.021838843822479248,
-0.04134804755449295,
0.4966605305671692,
0.11915773153305054,
-0.10868071764707565,
-0.28611674904823303,
-0.026095792651176453,
-0.42549464106559753,
-0.049384456127882004,
0.521059513092041,
-0.4102798104286194,
0.10819422453641891,
-0.18439637124538422,
0.1237969845533371,
-0.2985062301158905,
0.42485469579696655,
0.30588555335998535,
0.2850419580936432,
-0.46722811460494995,
0.01592043973505497,
-0.28361475467681885,
0.22864222526550293,
-0.050108734518289566,
0.000818878470454365,
-0.24609048664569855,
0.24277395009994507,
-0.2073604166507721,
0.06424186378717422,
-0.0658617913722992,
-0.14118583500385284,
0.08984827250242233,
0.3890620768070221,
-0.34447044134140015,
0.07817662507295609,
-0.30711087584495544,
-0.027144411578774452,
0.13910964131355286,
-0.31648436188697815,
0.16173800826072693,
0.1141606867313385,
0.15744228661060333,
-0.15649721026420593,
0.027108099311590195,
0.29524728655815125,
-0.18972550332546234,
0.2510138154029846,
0.21740080416202545,
0.35639315843582153,
-0.21160170435905457,
0.48408886790275574,
-0.0992441326379776,
0.0562531016767025,
-0.30123406648635864,
-0.163441002368927,
0.14305473864078522,
0.1765764206647873,
0.022572217509150505,
0.026949191465973854,
-0.24921156466007233,
-0.08632692694664001,
0.08038070052862167,
-0.18460287153720856,
0.033137235790491104,
0.06712166219949722,
-0.05809308588504791,
0.035701118409633636,
0.0681236982345581,
0.19037188589572906,
0.2587810158729553,
0.23001249134540558,
-0.42246735095977783,
-0.42453011870384216,
0.4023638367652893,
-0.388386607170105,
-0.30135393142700195,
-0.3631491959095001,
0.29552745819091797,
0.05901414901018143,
0.09622547030448914,
-0.15730418264865875,
0.0010296334512531757,
0.4445217251777649,
-0.05837042257189751,
-0.007164987735450268,
0.3775206208229065,
0.17068329453468323,
0.20298974215984344,
-0.17770664393901825,
-0.11001564562320709,
0.11934869736433029,
-0.0026773714926093817,
0.0720624029636383,
-0.3162928521633148
] |
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.5023793578147888,
-0.17439505457878113,
-0.22950227558612823,
0.13015730679035187,
0.17803533375263214,
0.03179485723376274,
0.2955615222454071,
0.1713043749332428,
-0.14847035706043243,
0.17807641625404358,
0.0091216079890728,
0.1247805655002594,
0.06412006169557571,
0.24562369287014008,
-0.056165166199207306,
-0.03589155152440071,
-0.07459747791290283,
0.04837736487388611,
0.10960933566093445,
0.007234321907162666,
-0.367609441280365,
0.06899761408567429,
-0.40430739521980286,
0.05223408713936806,
-0.22304651141166687,
-0.2693566083908081,
-0.06124517694115639,
-0.03925709426403046,
-0.004413147922605276,
-0.1525888442993164,
-0.0022253848146647215,
0.23349492251873016,
0.20883941650390625,
0.4326503276824951,
-0.00010495645256014541,
0.07853103429079056,
0.2467757612466812,
0.039382606744766235,
-0.2903357148170471,
0.22262819111347198,
-0.04940086603164673,
-0.1695530116558075,
-0.1062985211610794,
-0.3042084872722626,
-0.10083647072315216,
-0.0860012024641037,
-0.13855910301208496,
-0.3374301493167877,
0.38483110070228577,
0.17538321018218994,
0.2844720482826233,
0.28025493025779724,
-0.14760543406009674,
0.1414177417755127,
0.061004117131233215,
0.07145334780216217,
0.08511285483837128,
-0.3902089595794678,
0.06823211163282394,
0.1479274481534958,
-0.04840623587369919,
0.14962005615234375,
-0.27203041315078735,
0.08594108372926712,
-0.25509727001190186,
0.021888067945837975,
0.026098523288965225,
-0.3847030997276306,
0.08848500996828079,
-0.13497596979141235,
0.28465935587882996,
-0.2123626321554184,
-0.24407505989074707,
-0.3842584490776062,
-0.2724655270576477,
-0.46531736850738525,
-0.02697872743010521,
0.11313216388225555,
-0.06848184019327164,
0.10127133876085281,
-0.07858765125274658,
0.24084646999835968,
-0.07372263818979263,
-0.16669467091560364,
0.11142711341381073,
0.25681114196777344,
-0.21192365884780884,
0.21988189220428467,
0.07004103064537048,
0.08878879994153976,
0.16481520235538483,
-0.23507195711135864,
-0.00043377632391639054,
0.27236026525497437,
-0.4907975196838379,
-0.08711934089660645,
-0.11177440732717514,
-0.15199066698551178,
-0.14089563488960266,
0.05416049435734749,
-0.12841305136680603,
0.12723030149936676,
0.3161274790763855,
0.15641845762729645,
-0.029596159234642982,
0.16435664892196655,
0.1187213584780693,
0.2562069892883301,
-0.07711833715438843,
-0.3050597608089447,
-0.226043239235878,
0.02775692008435726,
-0.07858912646770477,
-0.32984626293182373,
0.1471385359764099,
0.3610411286354065,
0.24992474913597107,
0.03027815744280815,
-0.4871649146080017,
-0.0903923511505127,
-0.019041847437620163,
-0.058097872883081436,
0.14209330081939697,
0.28459179401397705,
-0.24076266586780548,
0.25084665417671204,
-0.08102607727050781,
-0.15231643617153168,
-0.2926348149776459,
-0.0461963415145874,
-0.30273836851119995,
-0.11525717377662659,
-0.14961975812911987,
0.07027898728847504,
0.13497717678546906,
-0.17216011881828308,
0.3239179849624634,
0.07558318227529526,
0.09628629684448242,
-0.17466019093990326,
0.5014525651931763,
-0.39494210481643677,
0.22241252660751343,
0.2599136233329773,
0.17958174645900726,
0.24265004694461823,
0.05320148542523384,
0.20976601541042328,
0.03996153175830841,
0.07378121465444565,
-0.6257681250572205,
-0.17911772429943085,
0.24746303260326385,
0.31384915113449097,
-0.050552062690258026,
0.001461210660636425,
-0.5935844779014587,
-0.08692207932472229,
0.3213267922401428,
0.09062690287828445,
0.11970967054367065,
-0.17542579770088196,
-0.1859956532716751,
-0.19467967748641968,
0.20039664208889008,
0.08525838702917099,
-0.4504096806049347,
0.06793278455734253,
-0.11536451429128647,
-0.32274457812309265,
0.5454283356666565,
0.12426868826150894,
-0.11386668682098389,
0.6199550628662109,
-0.30955517292022705,
0.37830284237861633,
0.19371894001960754,
-0.3189389109611511,
-0.28150853514671326,
0.5390692949295044,
-0.2575122117996216,
0.01808721385896206,
0.03982048109173775,
0.03250688686966896,
0.5586627125740051,
-0.060287073254585266,
0.036230478435754776,
0.3787432610988617,
-0.1192287877202034,
0.09029851108789444,
-0.09956982731819153,
0.11563690751791,
0.08595358580350876,
-0.017408102750778198,
0.10389263927936554,
0.04386354237794876,
-0.2167433351278305,
-0.044553764164447784,
0.17378152906894684,
0.05349906533956528,
0.296599805355072,
0.2496744990348816,
0.011494241654872894,
0.20879803597927094,
0.19324637949466705,
-0.04541245847940445,
-0.29646551609039307,
0.0957319363951683,
-0.02033264935016632,
-0.18323372304439545,
0.040564633905887604,
-0.35658377408981323,
-0.1427384316921234,
0.14648354053497314,
-0.4080844819545746,
-0.1703144758939743,
0.2187936007976532,
0.09122446179389954,
0.022360680624842644,
-0.31332695484161377,
0.005141151137650013,
0.32892629504203796,
-0.018436800688505173,
0.03201243281364441,
-0.19385387003421783,
-0.02204538695514202,
0.007847723551094532,
-0.1507640928030014,
-0.061333782970905304,
-0.07919996231794357,
0.22282172739505768,
0.007429992780089378,
-0.049333930015563965,
0.3533654510974884,
0.27474552392959595,
0.06399562954902649,
-0.03651611879467964,
-0.12384665757417679,
-0.0102489423006773,
0.11414770781993866,
-0.09052632749080658,
-0.035854484885931015,
0.21717311441898346,
-0.12560658156871796,
0.24783101677894592,
0.4252820312976837,
-0.04693375527858734,
0.2657584846019745,
-0.038255758583545685,
-0.27364522218704224,
0.22645258903503418,
-0.07021665573120117,
-0.04286755621433258,
0.1976914256811142,
-0.045872341841459274,
0.0015259822830557823,
0.340833842754364,
0.044004637748003006,
-0.055948011577129364,
0.17708720266819,
0.42730364203453064,
-0.004344726912677288,
-0.16920295357704163,
-0.019230607897043228,
-0.20830509066581726,
0.10800880938768387,
0.15949587523937225,
-0.025841081514954567,
0.12190823256969452,
0.16937188804149628,
0.11964860558509827,
-0.10231415927410126,
0.10452355444431305,
-0.037963300943374634,
0.08203031867742538,
0.3170749843120575,
0.1805194765329361,
0.16187416017055511,
-0.09162619709968567,
-0.056181591004133224,
-0.0036794173065572977,
-0.11006948351860046,
0.1913621574640274,
0.23988457024097443,
-0.3654336929321289,
0.21321973204612732,
-0.14593000710010529,
-0.08981078863143921,
-0.15111790597438812,
-0.03144615516066551,
0.16132862865924835,
-0.1398269683122635,
-0.07640741020441055,
0.21738870441913605,
-0.1582915037870407,
0.028308896347880363,
-0.08624474704265594,
0.039337314665317535,
0.2715218961238861,
-0.3807457685470581,
-0.160862997174263,
-0.05961788445711136,
-0.18188273906707764,
0.20186202228069305,
0.06786832958459854,
0.10808639228343964,
0.46832260489463806,
0.05143449828028679,
0.038784850388765335,
-0.11554976552724838,
-0.15221790969371796,
0.07787872105836868,
-0.19765254855155945,
0.17671023309230804,
0.01694473810493946,
0.14017514884471893,
-0.10795977711677551,
-0.38399457931518555,
0.13910774886608124,
-0.18394094705581665,
-0.3313494026660919,
-0.08557295054197311,
-0.017346683889627457,
0.040500886738300323,
-0.2087072879076004,
-0.43180835247039795,
-0.23302151262760162,
-0.1791113168001175,
0.02162357233464718,
-0.06954986602067947,
0.2032477706670761,
-0.009368862956762314,
-0.01788991503417492,
0.14972145855426788,
0.2623843550682068,
-0.1572471708059311,
-0.08772160857915878,
-0.48812612891197205,
0.12461232393980026,
-0.2836303412914276,
-0.019732151180505753,
-0.09225717186927795,
-0.10247082263231277,
0.42235493659973145,
0.30863821506500244,
-0.1903933882713318,
0.11806035786867142,
-0.08892644941806793,
0.2408316433429718,
-0.09775333106517792,
-0.02653518132865429,
0.19540737569332123,
-0.07893309742212296,
-0.09966464340686798,
-0.11733502149581909,
0.07362312078475952,
0.11769802868366241,
-0.2414381504058838,
0.0647149309515953,
-0.017784735187888145,
0.649241030216217,
-0.019282814115285873,
0.9116160273551941,
0.08709489554166794,
-0.08747826516628265,
0.13292498886585236,
0.004422834143042564,
-0.15793953835964203,
-0.012976305559277534,
-0.3009169101715088,
0.09074514359235764,
0.027977975085377693,
-0.18693673610687256,
0.19288834929466248,
-0.17218823730945587,
-0.008557895198464394,
0.07027656584978104,
-0.017148274928331375,
-0.6442946195602417,
-0.06746680289506912,
0.07695288211107254,
0.004139872267842293,
0.34356996417045593,
-0.15659524500370026,
0.06825964152812958,
-0.28335344791412354,
-0.059069808572530746,
-0.09082845598459244,
0.04646984115242958,
0.23815946280956268,
-0.18369115889072418,
-0.359834223985672,
0.08883543312549591,
-0.2709050178527832,
0.29562559723854065,
0.06683944910764694,
0.33355268836021423,
0.02760321833193302,
-0.040016643702983856,
0.11126229166984558,
-0.1317252516746521,
0.7860840559005737,
-0.044302068650722504,
0.0675165057182312,
0.05719434842467308,
-0.24339771270751953,
-0.16151008009910583,
-0.08450391888618469,
-0.33915337920188904,
0.20840011537075043,
0.5520214438438416,
0.29441818594932556,
-0.21103757619857788,
-0.36287975311279297,
0.01731281355023384,
-0.18864166736602783,
-0.16484619677066803,
-0.2995319366455078,
-0.33777812123298645,
-0.1493663638830185,
-0.38238635659217834,
0.3109837770462036,
0.2597949802875519,
0.11348218470811844,
-0.436888188123703,
-0.371288925409317,
-0.30570152401924133,
-0.08963453769683838,
0.19536447525024414,
-0.06653830409049988,
0.028660979121923447,
0.02389732003211975,
0.2161182016134262,
0.02199636958539486,
0.2875387370586395,
0.3828946352005005,
0.21269583702087402,
-0.17296354472637177,
-0.3372839093208313,
0.18278101086616516,
-0.09838756173849106,
0.4843112528324127,
0.028596490621566772,
-0.2987976372241974,
0.3437287509441376,
-0.03737922012805939,
0.19202017784118652,
-0.45076048374176025,
0.5018004775047302,
0.43237558007240295,
0.1806504875421524,
-0.5321658849716187,
-0.5739417672157288,
0.15346746146678925,
0.33902186155319214,
-0.09803453832864761,
0.13715258240699768,
-0.2328917384147644,
-0.27702656388282776,
0.10098827630281448,
0.19510196149349213,
0.620547354221344,
-0.025613456964492798,
-0.08867210149765015,
0.10174821317195892,
0.2892378568649292,
0.06580015271902084,
-0.20645758509635925,
0.10265843570232391,
-0.3231613337993622,
0.0041054124012589455,
0.032334379851818085,
-0.17724351584911346,
0.20915642380714417,
0.40434524416923523,
-0.13527058064937592,
0.197356179356575,
-0.15097612142562866,
0.21516266465187073,
-0.15519067645072937,
0.30898094177246094,
0.04214150831103325,
-0.23292846977710724,
-0.05069516971707344,
0.24305015802383423,
-0.13156147301197052,
0.21989282965660095,
-0.15606535971164703,
-0.11211609095335007,
0.12239843606948853,
-0.10483375191688538,
0.20299725234508514,
0.02853124402463436,
-0.4526076912879944,
-0.03279072418808937,
-0.18331393599510193,
-0.15974538028240204,
0.013377056457102299,
-0.08203790336847305,
0.3468179404735565,
0.2518923878669739,
0.18600133061408997,
-0.004145259037613869,
0.033250413835048676,
0.14275085926055908,
-0.008819563314318657,
-0.3308890461921692,
0.3472426235675812,
-0.04577440023422241,
-0.17525885999202728,
0.04881734773516655,
0.053034860640764236,
-0.270037442445755,
-0.017160998657345772,
-0.016213450580835342,
0.40814581513404846,
-0.43756791949272156,
-0.0731348767876625,
-0.06176837533712387,
-0.15973223745822906,
-0.09741274267435074,
0.1880708485841751,
-0.08199923485517502,
-0.2776877284049988,
0.4453328847885132,
-0.19184429943561554,
-0.204532653093338,
-0.0458536222577095,
0.17013773322105408,
0.2722022533416748,
-0.2661241292953491,
0.5271486639976501,
-0.008169515989720821,
-0.20395967364311218,
-0.29860877990722656,
0.11816693097352982,
0.24067531526088715,
-0.17892581224441528,
0.30723270773887634,
0.14913325011730194,
0.18016158044338226,
0.2399328351020813,
0.06528569012880325,
-0.245269313454628,
0.0456206239759922,
-0.19461192190647125,
-0.25122126936912537,
-0.45873379707336426,
-0.2272525131702423,
-0.1453617513179779,
0.293692022562027,
0.3126305937767029,
0.282848984003067,
-0.049839090555906296,
0.33585765957832336,
-0.40657949447631836,
-0.11494086682796478,
-0.1531323343515396,
0.2728172838687897,
0.1524820178747177,
0.012861635535955429,
-0.006706562824547291,
0.2280721366405487,
0.1662234663963318,
0.2789081633090973,
-0.05580620467662811,
-0.39851340651512146,
0.024518202990293503,
0.045939814299345016,
-0.1330244392156601,
-0.06215227022767067,
0.03711347281932831,
-0.021833905950188637,
-0.24584297835826874,
-0.10736279934644699,
0.25165385007858276,
0.01316329836845398,
0.13181543350219727,
0.20925873517990112,
0.4427996873855591,
0.33919185400009155,
0.11982206255197525,
0.10461724549531937,
-0.14008492231369019,
0.05194290727376938,
0.03908638656139374,
0.2915998101234436,
0.07285556197166443,
-0.009759613312780857,
-0.008776828646659851,
-0.27145183086395264,
0.6143187284469604,
0.0637843906879425,
0.019337693229317665,
-0.39355039596557617,
-0.2791869342327118,
0.12814775109291077,
0.08865884691476822,
0.29241836071014404,
0.05750032886862755,
-0.2814282774925232,
0.31451016664505005,
0.35618969798088074,
0.03744872659444809,
0.31047865748405457,
0.16915300488471985,
-0.1325731873512268,
0.129197359085083,
0.13975754380226135,
-0.06164480745792389,
0.25249186158180237,
0.1008177325129509,
0.1690560281276703,
0.2947509288787842,
-0.27979758381843567,
0.12887735664844513,
0.19377806782722473,
0.08811318129301071,
0.06436004489660263,
0.3061843812465668,
0.09502348303794861,
0.09196453541517258,
0.41183966398239136,
0.14214234054088593,
0.586965799331665,
0.156269833445549,
0.13302333652973175,
0.03606576472520828,
-0.4071057140827179,
-0.34135425090789795,
0.2097715437412262,
-0.30469462275505066,
0.18842552602291107,
-0.014216933399438858,
0.218208909034729,
0.14944644272327423,
-0.1891220062971115,
-0.08786435425281525,
0.38388821482658386,
-0.4658755958080292,
-0.11966616660356522,
-0.5270378589630127,
-0.06187354028224945,
0.04706660658121109,
-0.1525256633758545,
0.14220088720321655,
0.00033454829826951027,
-0.026842957362532616,
0.020939679816365242,
-0.04460534080862999,
0.03610987961292267,
-0.2875402867794037,
0.28775373101234436,
-0.06748653203248978,
-0.15694420039653778,
0.07979942858219147,
-0.026049865409731865,
0.15239346027374268,
-0.006878577638417482,
0.21889500319957733,
0.3761073350906372,
0.3229934275150299,
-0.19221463799476624,
-0.09409655630588531,
0.05172936990857124,
-0.06287147104740143,
-0.16198469698429108,
0.2549487352371216,
-0.1922801285982132,
-0.005392560735344887,
0.38154953718185425,
0.2739577293395996,
-0.24998332560062408,
-0.3349291980266571,
0.025708137080073357,
-0.021838843822479248,
-0.04134804755449295,
0.4966605305671692,
0.11915773153305054,
-0.10868071764707565,
-0.28611674904823303,
-0.026095792651176453,
-0.42549464106559753,
-0.049384456127882004,
0.521059513092041,
-0.4102798104286194,
0.10819422453641891,
-0.18439637124538422,
0.1237969845533371,
-0.2985062301158905,
0.42485469579696655,
0.30588555335998535,
0.2850419580936432,
-0.46722811460494995,
0.01592043973505497,
-0.28361475467681885,
0.22864222526550293,
-0.050108734518289566,
0.000818878470454365,
-0.24609048664569855,
0.24277395009994507,
-0.2073604166507721,
0.06424186378717422,
-0.0658617913722992,
-0.14118583500385284,
0.08984827250242233,
0.3890620768070221,
-0.34447044134140015,
0.07817662507295609,
-0.30711087584495544,
-0.027144411578774452,
0.13910964131355286,
-0.31648436188697815,
0.16173800826072693,
0.1141606867313385,
0.15744228661060333,
-0.15649721026420593,
0.027108099311590195,
0.29524728655815125,
-0.18972550332546234,
0.2510138154029846,
0.21740080416202545,
0.35639315843582153,
-0.21160170435905457,
0.48408886790275574,
-0.0992441326379776,
0.0562531016767025,
-0.30123406648635864,
-0.163441002368927,
0.14305473864078522,
0.1765764206647873,
0.022572217509150505,
0.026949191465973854,
-0.24921156466007233,
-0.08632692694664001,
0.08038070052862167,
-0.18460287153720856,
0.033137235790491104,
0.06712166219949722,
-0.05809308588504791,
0.035701118409633636,
0.0681236982345581,
0.19037188589572906,
0.2587810158729553,
0.23001249134540558,
-0.42246735095977783,
-0.42453011870384216,
0.4023638367652893,
-0.388386607170105,
-0.30135393142700195,
-0.3631491959095001,
0.29552745819091797,
0.05901414901018143,
0.09622547030448914,
-0.15730418264865875,
0.0010296334512531757,
0.4445217251777649,
-0.05837042257189751,
-0.007164987735450268,
0.3775206208229065,
0.17068329453468323,
0.20298974215984344,
-0.17770664393901825,
-0.11001564562320709,
0.11934869736433029,
-0.0026773714926093817,
0.0720624029636383,
-0.3162928521633148
] |
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.16190969944000244,
-0.33479225635528564,
-0.046579767018556595,
0.5367453694343567,
0.3581033945083618,
0.2125210016965866,
0.5072590708732605,
0.3903239965438843,
-0.01512861717492342,
0.1207222193479538,
-0.21651789546012878,
0.29290077090263367,
-0.11853577196598053,
-0.16308487951755524,
-0.113130122423172,
-0.5349529981613159,
0.11543111503124237,
-0.09518280625343323,
-0.3404095470905304,
0.09904936701059341,
0.05008662864565849,
0.06382069736719131,
-0.1515897512435913,
-0.14784927666187286,
-0.435899019241333,
0.0075119296088814735,
0.09530739486217499,
0.05039189010858536,
-0.13597585260868073,
-0.06770196557044983,
0.11454450339078903,
-0.07181675732135773,
0.08651803433895111,
0.783465564250946,
-0.00012119270104449242,
0.05314389243721962,
0.3045332431793213,
0.15747597813606262,
-0.10294713824987411,
-0.1995556354522705,
0.38384658098220825,
-0.13631980121135712,
0.17542359232902527,
-0.21816787123680115,
-0.134592205286026,
0.010250985622406006,
-0.2882254719734192,
-0.6952759623527527,
0.3244416117668152,
0.4434763193130493,
0.09370875358581543,
0.5506080985069275,
0.04228304326534271,
0.07360153645277023,
0.31157156825065613,
-0.010087181814014912,
-0.2093130201101303,
-0.11750488728284836,
0.3612823188304901,
0.19513088464736938,
0.1336316019296646,
0.2532554864883423,
-0.4077237844467163,
-0.06825535744428635,
0.09495703876018524,
0.07328891009092331,
-0.6647973656654358,
-0.46441155672073364,
0.08641630411148071,
0.3095063269138336,
0.5834822654724121,
-0.45910733938217163,
-0.1308525949716568,
-0.11184536665678024,
0.00035537054645828903,
0.014329026453197002,
0.09959492832422256,
0.14607912302017212,
-0.1873876005411148,
-0.09708570688962936,
-0.3416728973388672,
-0.18623846769332886,
-0.24472644925117493,
0.23888824880123138,
-0.18022744357585907,
-0.17472489178180695,
0.0037157568149268627,
0.19244708120822906,
0.1358707994222641,
-0.027028916403651237,
0.4467358887195587,
-0.30423372983932495,
0.18535615503787994,
-0.043512117117643356,
-0.3819197714328766,
-0.024508671835064888,
-0.5991336107254028,
-0.323255330324173,
-0.021916065365076065,
-0.08324142545461655,
-0.02572457864880562,
0.19937856495380402,
0.05949580669403076,
0.18352378904819489,
-0.004105567466467619,
0.2055944949388504,
0.016522975638508797,
0.36552053689956665,
0.16465243697166443,
-0.4713939130306244,
-0.08307161182165146,
0.12851805984973907,
-0.06531710177659988,
-0.5972935557365417,
-0.05668714642524719,
-0.14796647429466248,
0.1452045887708664,
-0.2821494936943054,
-0.22865834832191467,
0.03994370624423027,
-0.25444158911705017,
0.016060568392276764,
0.184037446975708,
0.3908996880054474,
-0.2808791399002075,
0.29904770851135254,
0.361589640378952,
0.14523378014564514,
-0.27396923303604126,
-0.01202303171157837,
-0.0326121486723423,
0.1297483891248703,
-0.12497980147600174,
-0.044737208634614944,
0.2628990411758423,
-0.4223603308200836,
-0.07430757582187653,
0.3290848433971405,
0.10349816083908081,
0.10942559689283371,
0.2540251314640045,
-0.2438570261001587,
0.21681047976016998,
0.04042001813650131,
0.06728311628103256,
0.2015819251537323,
0.08067566901445389,
0.3792656660079956,
-0.01237654872238636,
0.34439802169799805,
-0.26136520504951477,
0.1523284763097763,
-0.2981988787651062,
0.06037495657801628,
0.059114813804626465,
0.010531442239880562,
0.07159145176410675,
0.1019403412938118,
0.3803878128528595,
-0.13684791326522827,
0.2131640613079071,
-0.26906272768974304,
-0.12275487929582596,
-0.03984978049993515,
0.16071395576000214,
0.36564308404922485,
-0.20274393260478973,
0.08068258315324783,
0.5047173500061035,
0.004964918829500675,
-0.02762051299214363,
0.3383370041847229,
-0.16617964208126068,
-0.034098826348781586,
0.027239229530096054,
-0.11631164699792862,
0.3451949656009674,
-0.2792835831642151,
0.0360596589744091,
0.08294674754142761,
-0.06111231446266174,
-0.076984703540802,
0.1463356614112854,
0.1638706475496292,
0.14019137620925903,
-0.022537419572472572,
0.2774905860424042,
0.18593989312648773,
-0.1286253035068512,
0.011531990952789783,
-0.15664327144622803,
-0.013269098475575447,
0.5077597498893738,
0.06478110700845718,
0.0822659432888031,
-0.009003346785902977,
-0.254273384809494,
0.209866002202034,
-0.06292819231748581,
-0.18819811940193176,
0.05602443963289261,
0.40372130274772644,
-0.3440680503845215,
0.07131563872098923,
0.05621589347720146,
-0.42362430691719055,
-0.44355568289756775,
0.06341037899255753,
0.2090817540884018,
0.15496160089969635,
0.122255839407444,
-0.01000553835183382,
-0.006007910240441561,
-0.14040885865688324,
0.0333748459815979,
0.2474486082792282,
-0.0741906389594078,
-0.33826306462287903,
0.05788210406899452,
0.005678202491253614,
-0.08650495111942291,
0.3033381402492523,
-0.11100714653730392,
0.25472474098205566,
-0.2904973030090332,
0.3031729757785797,
-0.05619407072663307,
-0.3207974135875702,
-0.0883350521326065,
0.20309646427631378,
0.09991275519132614,
-0.07013271749019623,
-0.09036173671483994,
0.22298485040664673,
-0.004175439942628145,
0.062492262572050095,
-0.4371134638786316,
-0.1511402428150177,
0.2752564549446106,
-0.1057286262512207,
0.33640795946121216,
0.007038393057882786,
-0.012484683655202389,
-0.13474147021770477,
-0.11444108933210373,
0.1100073754787445,
-0.14373360574245453,
0.21963270008563995,
-0.03822718933224678,
0.0104151526466012,
-0.21663032472133636,
0.10874313861131668,
-0.12339738011360168,
0.0373593308031559,
0.3091331720352173,
-0.11574433743953705,
0.2992347180843353,
0.08626313507556915,
-0.6952055096626282,
-0.05411155894398689,
0.3723340332508087,
-0.05155382677912712,
0.035735249519348145,
0.059598155319690704,
-0.2202146351337433,
0.12800364196300507,
0.17813874781131744,
-0.30115601420402527,
0.23734278976917267,
0.19932405650615692,
0.037426915019750595,
-0.006050580646842718,
-0.3070228695869446,
-0.1291007250547409,
0.21570943295955658,
0.14721496403217316,
0.01538876723498106,
0.06936731189489365,
0.022596094757318497,
-0.17709611356258392,
-0.023974327370524406,
0.16972284018993378,
0.10752888023853302,
0.07904838025569916,
-0.37097489833831787,
0.14854462444782257,
-0.08512367308139801,
0.005511867348104715,
-0.28979426622390747,
-0.02266513928771019,
-0.22907426953315735,
-0.21033050119876862,
-0.08484049886465073,
0.36503246426582336,
0.20181477069854736,
0.09820123761892319,
0.1191343367099762,
-0.2002098560333252,
0.21100962162017822,
-0.16409344971179962,
-0.19575463235378265,
-0.21561646461486816,
-0.15796655416488647,
-0.019952034577727318,
0.4141775965690613,
-0.03925132378935814,
0.26612019538879395,
-0.0810978040099144,
0.11953020095825195,
-0.30943554639816284,
-0.10376669466495514,
0.13923463225364685,
-0.258954256772995,
-0.126508429646492,
-0.12126123905181885,
0.29666903614997864,
-0.01753670535981655,
-0.0650341659784317,
0.11175376921892166,
0.04580112174153328,
-0.04475836083292961,
0.28861773014068604,
0.09609747678041458,
-0.03501363843679428,
-0.07449597120285034,
-0.5995059013366699,
-0.21129140257835388,
-0.14450891315937042,
-0.062144555151462555,
-0.38636884093284607,
-0.029269609600305557,
-0.12032530456781387,
0.4604271650314331,
0.25489044189453125,
0.014104311354458332,
0.1126454621553421,
-0.029850739985704422,
-0.295428603887558,
0.5208234190940857,
-0.2749047577381134,
-0.46287742257118225,
-0.07792431861162186,
0.2729065716266632,
-0.04775453731417656,
0.3154071867465973,
-0.15078909695148468,
0.025472084060311317,
-0.40946251153945923,
0.04541400820016861,
-0.14228555560112,
-0.05490748956799507,
0.41839146614074707,
0.10740167647600174,
0.06829395890235901,
-0.08471158891916275,
0.04603142663836479,
-0.03185058757662773,
-0.19163566827774048,
0.0971076637506485,
-0.07289239764213562,
0.3707444965839386,
0.016202624887228012,
0.45669642090797424,
-0.1325986385345459,
-0.47728127241134644,
0.12532839179039001,
-0.10246691852807999,
0.33996447920799255,
-0.06326638907194138,
-0.458065003156662,
0.03259730339050293,
-0.16380979120731354,
0.020383670926094055,
-0.13774850964546204,
-0.07338730245828629,
-0.15640561282634735,
-0.20653419196605682,
0.24948281049728394,
0.046786244958639145,
-0.11627433449029922,
0.20999965071678162,
-0.5037890672683716,
0.08999717980623245,
-0.1194484755396843,
0.35035818815231323,
-0.22005414962768555,
-0.24461151659488678,
0.08949770778417587,
-0.026219064369797707,
0.09321145713329315,
0.045253340154886246,
-0.523216724395752,
-0.048222947865724564,
-0.30114927887916565,
0.3275444507598877,
0.28510886430740356,
0.39457669854164124,
-0.18789540231227875,
0.08806431293487549,
0.14054124057292938,
-0.01214142981916666,
0.5735452175140381,
0.07731055468320847,
-0.3306097686290741,
0.07146488130092621,
-0.06549836695194244,
-0.6979699730873108,
0.18238607048988342,
-0.14509522914886475,
0.12507809698581696,
0.07785725593566895,
0.39853349328041077,
-0.2446841448545456,
-0.5145680904388428,
0.16610336303710938,
0.5513159036636353,
-0.06793952733278275,
-0.1278381198644638,
-0.12228270620107651,
-0.007419573608785868,
-0.3731990158557892,
-0.046773333102464676,
0.3043912947177887,
0.12928085029125214,
-0.3400327265262604,
-0.3042583465576172,
-0.14978471398353577,
0.07175804674625397,
0.42784327268600464,
-0.007884233258664608,
0.19841478765010834,
-0.18256160616874695,
0.31173786520957947,
0.18056000769138336,
0.3363942503929138,
0.20418840646743774,
0.14298242330551147,
-0.26417145133018494,
0.002830478362739086,
0.19764451682567596,
0.15781797468662262,
0.3143097758293152,
0.13888005912303925,
-0.027535339817404747,
0.04445991665124893,
-0.3225717544555664,
0.10537280887365341,
-0.14787903428077698,
0.3770977556705475,
0.41179168224334717,
0.4101707339286804,
-0.5693950057029724,
-0.458196222782135,
0.1601795107126236,
0.29493987560272217,
0.1253013014793396,
0.5142191052436829,
-0.13982829451560974,
-0.160234734416008,
0.2174321413040161,
0.18582259118556976,
0.909723699092865,
-0.5160061120986938,
0.3435383439064026,
0.1018017828464508,
-0.1608802080154419,
0.3924468457698822,
-0.4085099995136261,
0.04748871177434921,
-0.4014607071876526,
-0.08573275059461594,
-0.07880286127328873,
-0.3112158179283142,
0.31455501914024353,
-0.10962483286857605,
-0.21941600739955902,
0.11117540299892426,
-0.2852609157562256,
0.3628264367580414,
-0.1312672346830368,
0.41573962569236755,
-0.2564929723739624,
-0.30525094270706177,
0.009684068150818348,
0.1124139353632927,
-0.14206936955451965,
0.039199765771627426,
0.13074082136154175,
0.01718619279563427,
-0.2372531145811081,
0.09181597828865051,
-0.20672136545181274,
0.1955275982618332,
-0.30462363362312317,
0.08340363204479218,
-0.2852320671081543,
-0.6679530143737793,
0.2832602858543396,
0.8073208928108215,
0.39816680550575256,
0.0669003501534462,
-0.08345511555671692,
0.09718587249517441,
-0.169528529047966,
-0.2504495680332184,
0.026906142011284828,
-0.3444748520851135,
0.20137889683246613,
0.07987450808286667,
-0.12970605492591858,
0.2350296825170517,
0.057570863515138626,
-0.10773789882659912,
-0.0895993709564209,
-0.008602001704275608,
0.23344950377941132,
-0.47626182436943054,
-0.26836222410202026,
0.014506668783724308,
0.025803446769714355,
-0.08515442162752151,
0.0587986595928669,
0.028217202052474022,
0.03836413472890854,
0.15623915195465088,
-0.0542333610355854,
-0.13529887795448303,
0.08464273065328598,
0.6563454866409302,
-0.006126892752945423,
-0.09610220044851303,
0.5771399736404419,
0.6213274002075195,
-0.22046871483325958,
-0.20953163504600525,
0.20487305521965027,
0.4002886712551117,
-0.31915226578712463,
0.06890380382537842,
-0.16019712388515472,
-0.1529143899679184,
-0.13040204346179962,
0.0528426468372345,
-0.1703873574733734,
-0.1908477544784546,
-0.038295213133096695,
-0.0024242259096354246,
-0.5649747252464294,
0.0948406308889389,
0.2658153772354126,
0.414356529712677,
0.17664620280265808,
0.06761731207370758,
-0.22998519241809845,
-0.10040057450532913,
-0.17006288468837738,
0.1461406648159027,
0.018631087616086006,
0.18119415640830994,
0.1692640483379364,
-0.13514894247055054,
0.13403180241584778,
-0.43271341919898987,
-0.011748287826776505,
0.2693086862564087,
0.12070420384407043,
-0.16115349531173706,
0.0037203801330178976,
0.06099831685423851,
-0.14939221739768982,
-0.21789100766181946,
-0.22220353782176971,
-0.36547723412513733,
0.14862187206745148,
-0.1958627849817276,
0.2625582814216614,
0.5388063192367554,
-0.13170158863067627,
0.057704947888851166,
-0.124409981071949,
0.21131277084350586,
-0.06800280511379242,
0.0010776921408250928,
-0.17931155860424042,
0.03371066227555275,
0.09583427757024765,
0.09737041592597961,
0.3113963007926941,
-0.03639698028564453,
-0.3601103723049164,
0.1446571797132492,
0.42419418692588806,
-0.0860699862241745,
0.09850247204303741,
-0.21359428763389587,
0.09526010602712631,
-0.0058069112710654736,
0.19795472919940948,
0.34177160263061523,
-0.18322908878326416,
-0.02984011359512806,
0.27805596590042114,
0.08767782151699066,
0.02568773366510868,
-0.08578827977180481,
-0.3014295995235443,
-0.19107909500598907,
-0.06777743250131607,
0.03606434166431427,
-0.09077693521976471,
0.44081124663352966,
-0.18419469892978668,
0.24495017528533936,
0.22014440596103668,
-0.05376315489411354,
0.16704870760440826,
0.3690193295478821,
0.11422421038150787,
-0.032390184700489044,
0.22925956547260284,
0.11145440489053726,
-0.03827238082885742,
-0.04215298220515251,
0.14519977569580078,
0.6161940693855286,
0.30980655550956726,
0.27152127027511597,
0.3532733917236328,
0.06548023223876953,
-0.21124255657196045,
-0.06878834217786789,
0.03939696401357651,
-0.022407028824090958,
-0.04844411090016365,
0.4712454080581665,
-0.1950109601020813,
-0.4782596528530121,
-0.07938021421432495,
0.19359208643436432,
-0.2054060995578766,
-0.016761746257543564,
-0.15583643317222595,
-0.16689835488796234,
0.17486809194087982,
-0.01702200248837471,
-0.0580657497048378,
-0.08948715031147003,
0.3186839818954468,
0.31660333275794983,
-0.05158586800098419,
-0.04815370589494705,
0.10590538382530212,
0.2006661742925644,
-0.09356856346130371,
0.03057284466922283,
0.12622028589248657,
0.1343730241060257,
-0.13111281394958496,
0.021478818729519844,
0.21052496135234833,
0.35955214500427246,
0.19740332663059235,
-0.37754377722740173,
0.10383672267198563,
0.07888156175613403,
-0.13750284910202026,
0.4146791398525238,
0.24476945400238037,
-0.0010709644993767142,
0.0035327135119587183,
0.32066431641578674,
0.1115698367357254,
-0.13621823489665985,
-0.1674807071685791,
-0.07209804654121399,
0.002406785497441888,
-0.22861599922180176,
0.36325371265411377,
-0.1428266167640686,
-0.25218677520751953,
-0.22474578022956848,
-0.2958548069000244,
-0.39856818318367004,
-0.05846400558948517,
0.6664863228797913,
-0.13300086557865143,
-0.12826862931251526,
-0.022891147062182426,
0.01117470022290945,
0.2890182435512543,
0.5228795409202576,
0.05615998059511185,
0.23667705059051514,
-0.35117802023887634,
0.02579673007130623,
-0.22194112837314606,
-0.03868408128619194,
-0.08672531694173813,
0.058128561824560165,
-0.04933757707476616,
0.04156741872429848,
0.10330981761217117,
0.3067890405654907,
0.08084198832511902,
-0.08795206248760223,
0.11356519907712936,
0.28939732909202576,
-0.36998113989830017,
-0.06381800770759583,
-0.022777441889047623,
0.10178966820240021,
0.13452251255512238,
-0.38565507531166077,
0.20772939920425415,
0.13594387471675873,
-0.02444884553551674,
-0.36762121319770813,
0.1786264181137085,
0.1885700672864914,
-0.035240404307842255,
0.20211316645145416,
-0.06086644157767296,
0.6809903383255005,
0.15462732315063477,
0.001424397574737668,
0.10013724863529205,
-0.20808741450309753,
-0.029640309512615204,
0.02883436717092991,
0.0372903048992157,
0.2259257286787033,
-0.19350190460681915,
-0.289794921875,
-0.2599356174468994,
0.4156821072101593,
-0.050548236817121506,
-0.03989218547940254,
-0.13451248407363892,
0.10937438160181046,
0.03201049938797951,
0.10955983400344849,
0.27259841561317444,
0.5703678131103516,
0.09213298559188843,
0.40677985548973083,
-0.3857579231262207,
-0.16452282667160034,
0.5223590135574341,
-0.2746143937110901,
-0.35604336857795715,
-0.0018262381199747324,
-0.0017388748237863183,
0.5570204257965088,
0.0881887897849083,
-0.7385707497596741,
-0.09155000001192093,
-0.006558624096214771,
-0.2329978495836258,
0.04508167505264282,
0.2087852656841278,
0.18275946378707886,
0.14781683683395386,
-0.12870459258556366,
0.3528147339820862,
0.07561982423067093,
-0.0020413610618561506,
-0.2567730247974396,
-0.24464567005634308
] |
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.08192651718854904,
-0.04951903596520424,
-0.08793112635612488,
0.12161451578140259,
0.08929162472486496,
-0.15636228024959564,
0.16716919839382172,
0.24332651495933533,
-0.09968448430299759,
0.08036427944898605,
-0.08278708159923553,
0.2674162685871124,
-0.18599039316177368,
-0.2689160406589508,
0.007719381712377071,
0.35984277725219727,
-0.07975763827562332,
0.02914200909435749,
-0.4379905164241791,
-0.274631142616272,
-0.2619417607784271,
-0.09081064164638519,
-0.12036153674125671,
-0.1932392120361328,
-0.421674907207489,
0.0018893156666308641,
-0.04986931011080742,
0.2467166632413864,
0.03978637605905533,
-0.3421669006347656,
-0.18333284556865692,
0.15725916624069214,
0.030824510380625725,
0.18965959548950195,
-0.00011149655620101839,
-0.18508054316043854,
0.2640138864517212,
-0.00814608670771122,
-0.27265775203704834,
0.09022122621536255,
0.015427088364958763,
0.13841775059700012,
-0.04097527638077736,
-0.21227677166461945,
0.11432167142629623,
-0.1681279093027115,
0.028657475486397743,
-0.6539848446846008,
0.03266861289739609,
0.09993138909339905,
0.2772490382194519,
0.1996290534734726,
-0.13891302049160004,
0.13665054738521576,
0.3288567364215851,
-0.08152464777231216,
-0.0022262120619416237,
0.28850170969963074,
0.010408741421997547,
-0.09369402378797531,
-0.30711835622787476,
0.28132137656211853,
-0.19136574864387512,
0.08084575086832047,
0.3518431782722473,
0.17960767447948456,
0.01728394627571106,
0.0677470788359642,
0.19123132526874542,
0.05974353477358818,
0.33753252029418945,
-0.5688877701759338,
-0.4461807310581207,
-0.2534596025943756,
-0.1146053597331047,
-0.07631517946720123,
0.16316796839237213,
-0.15364514291286469,
0.1536259800195694,
0.1698359251022339,
-0.13453932106494904,
0.09915474057197571,
0.24952705204486847,
0.09856945276260376,
-0.009267679415643215,
0.1577005386352539,
0.06776779890060425,
-0.04196758195757866,
0.016090434044599533,
-0.12328281253576279,
0.2864697277545929,
-0.20803213119506836,
0.10855810344219208,
-0.05593382567167282,
0.016890449449419975,
-0.02247353084385395,
0.3788664937019348,
0.19549496471881866,
0.14773385226726532,
0.06383521854877472,
0.09117840230464935,
0.018221143633127213,
0.1135687604546547,
0.035234127193689346,
0.12876944243907928,
0.24734412133693695,
0.15208014845848083,
0.3575177490711212,
0.3471331298351288,
-0.5027481913566589,
-0.3569694757461548,
0.11335395276546478,
0.2867192029953003,
-0.038050584495067596,
0.6074767708778381,
0.13038423657417297,
-0.0743754431605339,
-0.04956372454762459,
-0.03143960237503052,
0.32664960622787476,
-0.020054109394550323,
-0.20201794803142548,
0.27175813913345337,
0.46645572781562805,
-0.34191787242889404,
0.19820208847522736,
-0.0471673384308815,
-0.27863773703575134,
-0.1859293431043625,
0.30829381942749023,
-0.371824711561203,
-0.15416334569454193,
-0.140580952167511,
0.25016725063323975,
0.009540586732327938,
-0.1329054832458496,
0.1580962836742401,
0.12851108610630035,
0.2983815371990204,
0.19379113614559174,
0.08732481300830841,
-0.304160475730896,
0.39305052161216736,
0.13538214564323425,
-0.09533090144395828,
0.21596947312355042,
0.04721658304333687,
-0.06364449113607407,
-0.4521886706352234,
0.04861712083220482,
-0.01598624885082245,
-0.21039393544197083,
-0.02308996580541134,
0.28473204374313354,
-0.23868635296821594,
0.09680313616991043,
0.19123584032058716,
-0.2342091053724289,
0.2490408718585968,
-0.18044662475585938,
-0.07496541738510132,
-0.3261180520057678,
-0.32513511180877686,
-0.4191172420978546,
0.0944071114063263,
0.4102352559566498,
-0.3341309726238251,
-0.09406706690788269,
-0.17769141495227814,
0.2597626745700836,
0.14738570153713226,
0.10983575135469437,
-0.02826915867626667,
-0.04544033482670784,
-0.31664353609085083,
0.20879094302654266,
0.065004862844944,
-0.39610669016838074,
-0.5688528418540955,
0.061407849192619324,
-0.11326941102743149,
0.23275049030780792,
-0.08864299952983856,
0.11382709443569183,
0.4595198929309845,
-0.08516301959753036,
0.13036006689071655,
0.20836026966571808,
0.2607240676879883,
0.20125941932201385,
-0.3684203326702118,
-0.03762321546673775,
0.0532563216984272,
-0.06962360441684723,
-0.05924021452665329,
-0.06640154868364334,
0.10566023737192154,
-0.1016227975487709,
0.08019888401031494,
-0.06151782348752022,
0.020489690825343132,
0.13802452385425568,
0.39634639024734497,
0.08724693208932877,
0.22724032402038574,
-0.08928745985031128,
-0.603064775466919,
0.37172630429267883,
-0.03491714224219322,
-0.49066534638404846,
-0.20422224700450897,
-0.3759242296218872,
0.13117611408233643,
0.15936458110809326,
-0.033455636352300644,
0.07599548250436783,
0.088532954454422,
0.31692683696746826,
0.26586323976516724,
0.2659105062484741,
0.057376716285943985,
0.13141894340515137,
-0.1487329751253128,
-0.2696956992149353,
0.012214455753564835,
0.04697467386722565,
-0.19589972496032715,
-0.2563336193561554,
0.035215817391872406,
0.0014542993158102036,
0.042726997286081314,
0.06915879249572754,
-0.11593472212553024,
0.2138013243675232,
0.187753364443779,
-0.07654673606157303,
0.003610073821619153,
0.3865775167942047,
-0.17139089107513428,
-0.02232026495039463,
0.23905335366725922,
0.18479876220226288,
0.06413975358009338,
-0.14832235872745514,
-0.15094183385372162,
0.6806602478027344,
0.11768408864736557,
0.08925438672304153,
-0.06013017147779465,
-0.15755382180213928,
-0.07743341475725174,
0.0911974385380745,
0.017360670492053032,
-0.4390445947647095,
0.052310097962617874,
-0.19416657090187073,
0.6369011998176575,
0.3142583668231964,
-0.2441956251859665,
0.4189309775829315,
0.6483615040779114,
0.04000077396631241,
0.2394367754459381,
0.12241591513156891,
0.017578020691871643,
-0.2655007243156433,
0.1121724471449852,
-0.1683274358510971,
0.41863250732421875,
0.25382301211357117,
0.1602877676486969,
-0.08794880658388138,
0.006096772383898497,
-0.1408473700284958,
0.04320944845676422,
-0.24336554110050201,
-0.05741424486041069,
0.22972363233566284,
0.18168111145496368,
-0.07873087376356125,
-0.1304653137922287,
0.07156834751367569,
-0.0922231376171112,
0.1561158448457718,
-0.13338212668895721,
0.08729763329029083,
-0.4846898317337036,
0.15386396646499634,
0.0726688951253891,
-0.1994604915380478,
-0.2668474614620209,
-0.28216326236724854,
0.10827787220478058,
0.048142727464437485,
-0.19910019636154175,
0.19225427508354187,
-0.20880377292633057,
0.14493025839328766,
0.20555664598941803,
-0.32246389985084534,
-0.22086818516254425,
-0.19141703844070435,
-0.20889262855052948,
0.005867840722203255,
0.1395239233970642,
-0.1580914705991745,
0.37918010354042053,
0.05020177364349365,
-0.14328831434249878,
-0.2470652163028717,
-0.19588984549045563,
-0.07937450706958771,
0.16514788568019867,
0.0886353850364685,
0.04852421581745148,
-0.20800338685512543,
-0.2918452322483063,
-0.3191620707511902,
0.17110280692577362,
-0.39428773522377014,
-0.30492547154426575,
-0.2680917978286743,
0.10643957555294037,
0.06934478133916855,
-0.09697740525007248,
-0.09727773815393448,
-0.10179349780082703,
-0.24930782616138458,
-0.11946368962526321,
0.08025573939085007,
0.24882395565509796,
-0.03639485314488411,
-0.10888046026229858,
-0.014639638364315033,
0.05941047519445419,
0.12864606082439423,
-0.4220731258392334,
-0.37231484055519104,
0.36547335982322693,
-0.24047982692718506,
-0.20157212018966675,
-0.2894231379032135,
-0.2820836901664734,
-0.2084701508283615,
0.12742312252521515,
-0.4713214337825775,
-0.40800532698631287,
-0.21873369812965393,
0.3893480598926544,
0.1095757707953453,
0.005151028279215097,
0.17648324370384216,
-0.03992527723312378,
-0.056361887603998184,
-0.22307105362415314,
-0.23138301074504852,
0.03136225417256355,
-0.04640495404601097,
0.13645987212657928,
0.026224957779049873,
-0.005843022838234901,
0.07989529520273209,
0.8998243808746338,
-0.011326082050800323,
-0.3779033124446869,
0.014630712568759918,
0.1756102591753006,
0.3247358500957489,
-0.2775580585002899,
-0.2364736646413803,
0.1491018384695053,
0.08126916736364365,
0.10213888436555862,
0.36824312806129456,
-0.06512743979692459,
-0.23166191577911377,
0.06267355382442474,
0.27696192264556885,
-0.4035155475139618,
-0.28649774193763733,
0.1481480449438095,
-0.31173470616340637,
-0.12622258067131042,
0.1735556721687317,
0.33512821793556213,
-0.293438583612442,
0.04297548532485962,
0.02113279514014721,
-0.14943507313728333,
0.28263071179389954,
-0.0590808242559433,
-0.010806452482938766,
0.299070805311203,
-0.3614232540130615,
0.3434770703315735,
0.2358408272266388,
0.11085817962884903,
0.08823935687541962,
-0.401043176651001,
0.14342530071735382,
-0.13494844734668732,
0.5495228171348572,
-0.1641126573085785,
0.1260448694229126,
0.15827910602092743,
-0.484235554933548,
-0.09562365710735321,
-0.030400017276406288,
0.11848529428243637,
0.19680196046829224,
0.2551359236240387,
0.0388440266251564,
-0.3402622640132904,
0.04985014721751213,
-0.05000824108719826,
0.0486910343170166,
-0.06879092007875443,
-0.3214802145957947,
-0.20814721286296844,
-0.03724279999732971,
0.02949327975511551,
0.054700881242752075,
-0.21144871413707733,
0.11448816955089569,
-0.1402607411146164,
-0.06641451269388199,
-0.27917221188545227,
-0.21110378205776215,
0.19201070070266724,
0.07559115439653397,
0.3900794982910156,
-0.12253377586603165,
0.4145754277706146,
0.2395908683538437,
0.42749595642089844,
0.03295362368226051,
0.1387423872947693,
-0.39232781529426575,
-0.11958199739456177,
0.1017700731754303,
0.09480265527963638,
-0.15820926427841187,
0.31117162108421326,
-0.04079148545861244,
-0.022208349779248238,
0.05542575195431709,
0.0218418650329113,
-0.11872337758541107,
0.11405600607395172,
0.010884789749979973,
0.10727770626544952,
-0.3166208565235138,
-0.40291815996170044,
0.2768455743789673,
0.2825393080711365,
-0.11672384291887283,
0.5915080904960632,
-0.1340257227420807,
-0.1336929351091385,
0.19365903735160828,
0.4005240499973297,
1.1834956407546997,
-0.23227842152118683,
0.23837222158908844,
0.02068980038166046,
0.17869068682193756,
0.06639131158590317,
0.22751955687999725,
-0.0020097133237868547,
-0.4197830557823181,
-0.22786572575569153,
0.14505182206630707,
-0.13763603568077087,
-0.04280637949705124,
-0.14630119502544403,
-0.22761942446231842,
0.026821494102478027,
-0.3041321933269501,
0.3562987148761749,
-0.12158747762441635,
0.2969777286052704,
-0.05094676837325096,
-0.0515766479074955,
0.3112765848636627,
0.20586664974689484,
0.15186099708080292,
0.12178712338209152,
-0.09882494062185287,
0.13930967450141907,
-0.12246920168399811,
-0.17170070111751556,
0.006999420002102852,
-0.00006020682121743448,
-0.08792208880186081,
0.42570069432258606,
0.029025422409176826,
-0.3966643512248993,
-0.42035630345344543,
0.4777068495750427,
0.13341949880123138,
0.2134619653224945,
0.035522058606147766,
0.12813520431518555,
0.04228762909770012,
0.3417685329914093,
0.04047108069062233,
-0.2964974343776703,
0.13779041171073914,
0.12439446896314621,
-0.09290359914302826,
-0.012252296321094036,
0.2514985501766205,
-0.40366774797439575,
-0.29883670806884766,
0.4665338397026062,
-0.19796273112297058,
-0.0991266518831253,
-0.021511590108275414,
0.06496874988079071,
-0.11092449724674225,
-0.15028123557567596,
0.1958771049976349,
0.359541654586792,
-0.04628925025463104,
0.5922560691833496,
-0.2799728214740753,
-0.15503886342048645,
-0.21391630172729492,
0.6729286909103394,
0.20950467884540558,
0.30164143443107605,
0.03686919063329697,
0.017652355134487152,
-0.47659966349601746,
-0.1334562450647354,
-0.12716296315193176,
-0.4220748841762543,
0.13669627904891968,
0.42943891882896423,
-0.06954319775104523,
-0.03919920325279236,
-0.11249839514493942,
-0.0852753221988678,
-0.08712814748287201,
0.1773778349161148,
-0.31326794624328613,
-0.029630132019519806,
-0.14867275953292847,
-0.0450390949845314,
-0.15793344378471375,
0.24343141913414001,
-0.015974245965480804,
0.13891872763633728,
-0.3936752378940582,
0.3332860469818115,
-0.40512049198150635,
-0.1230919361114502,
-0.20807115733623505,
0.044010963290929794,
-0.18883562088012695,
-0.2565598487854004,
0.1808726042509079,
-0.14471487700939178,
0.22799256443977356,
0.2750188708305359,
-0.10629945993423462,
-0.28353986144065857,
-0.028025398030877113,
0.09198389202356339,
-0.0844925194978714,
0.11046220362186432,
-0.03898156061768532,
-0.0929507166147232,
-0.007598160300403833,
-0.3970494568347931,
0.2798282206058502,
0.5578253865242004,
0.030944792553782463,
0.09722451120615005,
0.08776094019412994,
-0.11424001306295395,
0.3257339298725128,
0.285826176404953,
-0.2543867826461792,
0.12938949465751648,
-0.2279168665409088,
0.3314230144023895,
-0.053684208542108536,
-0.08295053988695145,
0.32159093022346497,
0.030604228377342224,
-0.08610418438911438,
-0.16762323677539825,
0.29749631881713867,
0.040065355598926544,
-0.23997244238853455,
0.23878154158592224,
0.4261130690574646,
0.193910151720047,
-0.020507819950580597,
-0.41336894035339355,
0.3929366171360016,
0.2304687649011612,
-0.18044006824493408,
-0.3763192892074585,
0.0591883547604084,
0.07848711311817169,
0.10608173906803131,
0.13276639580726624,
-0.08958244323730469,
-0.014472313225269318,
-0.0005607273778878152,
-0.044650543481111526,
0.2314901351928711,
-0.10616525262594223,
0.14972913265228271,
0.17256410419940948,
0.31579458713531494,
0.023083461448550224,
0.46079128980636597,
0.18742524087429047,
0.18096627295017242,
0.3305387794971466,
-0.12411025911569595,
0.19132843613624573,
-0.18209610879421234,
0.010281674563884735,
0.00889841839671135,
-0.5474196076393127,
0.43083980679512024,
0.36297687888145447,
-0.10970070213079453,
0.2956851124763489,
0.07351844757795334,
0.18321195244789124,
0.016428474336862564,
0.10662180185317993,
-0.18485023081302643,
0.15074555575847626,
-0.24675263464450836,
-0.034487828612327576,
0.11135489493608475,
-0.02152191288769245,
0.16397778689861298,
0.07040946930646896,
-0.08898109942674637,
-0.286201536655426,
0.3403048813343048,
0.15303795039653778,
-0.0340164452791214,
-0.2817852795124054,
0.20285892486572266,
-0.32292237877845764,
0.25710329413414,
-0.17045621573925018,
-0.04732384532690048,
0.12589971721172333,
0.16149938106536865,
-0.16581881046295166,
0.1366126835346222,
0.2450382113456726,
0.511828601360321,
-0.06086131930351257,
0.10656759887933731,
-0.007779228501021862,
-0.058620747178792953,
-0.49521180987358093,
0.34333160519599915,
-0.3125852048397064,
-0.31573840975761414,
0.35303598642349243,
0.20929616689682007,
-0.2533222436904907,
0.06424402445554733,
0.06967723369598389,
0.27185532450675964,
0.20330999791622162,
0.15902280807495117,
0.015067781321704388,
0.11300481110811234,
0.02405715361237526,
0.27944016456604004,
-0.2663087546825409,
-0.22402676939964294,
0.3107810616493225,
0.013221176341176033,
0.14720392227172852,
-0.25556308031082153,
0.0890769362449646,
-0.1660211831331253,
0.31528791785240173,
0.3831396698951721,
0.30864912271499634,
-0.11634538322687149,
0.0531301312148571,
-0.35218238830566406,
0.3837219178676605,
-0.138605996966362,
-0.0015884077874943614,
-0.08007554709911346,
0.41944679617881775,
-0.11310131847858429,
-0.10837545245885849,
0.07125774770975113,
0.31922048330307007,
-0.0017822134541347623,
0.3947656452655792,
-0.4328179955482483,
0.1371629238128662,
-0.5196853280067444,
-0.29130223393440247,
0.13947905600070953,
-0.5391646027565002,
0.1958772838115692,
-0.03490572050213814,
0.20481325685977936,
-0.2840934693813324,
0.11393075436353683,
-0.0007827444351278245,
0.16371554136276245,
0.5047896504402161,
0.3265342116355896,
0.24408961832523346,
-0.1214170902967453,
0.08809511363506317,
-0.04056002199649811,
-0.10042057931423187,
-0.0561726912856102,
-0.2300749123096466,
0.0645584762096405,
0.11270561069250107,
-0.31093400716781616,
-0.346868097782135,
-0.15345792472362518,
0.6476135849952698,
0.06304013729095459,
-0.050476063042879105,
0.06644785404205322,
-0.0019150846637785435,
-0.2814869284629822,
0.006839674431830645,
-0.19151350855827332,
0.3433918058872223,
0.019211748614907265,
0.14410695433616638,
-0.2024853527545929,
-0.34115496277809143,
0.6150747537612915,
-0.08101000636816025,
0.03454628586769104,
-0.2443348616361618,
0.28732526302337646,
0.21990054845809937,
-0.16810715198516846,
-0.2365332692861557,
-0.15946970880031586,
0.2943347692489624,
0.10658885538578033,
-0.18173785507678986,
0.084109365940094,
0.029177628457546234,
0.21672970056533813,
-0.19014710187911987,
-0.06646852195262909,
-0.03469536826014519,
-0.2794097363948822,
0.1684294193983078,
-0.3506392240524292
] |
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.26201316714286804,
-0.2916284501552582,
-0.18041527271270752,
0.11397110670804977,
0.06065124645829201,
-0.026537099853157997,
0.2819754183292389,
0.16877424716949463,
0.11090203374624252,
0.0845516249537468,
0.15545962750911713,
0.2481861561536789,
-0.35543638467788696,
0.34895259141921997,
0.17109988629817963,
-0.06561964750289917,
0.020534850656986237,
0.13697081804275513,
-0.6233145594596863,
-0.08214927464723587,
0.08253959566354752,
-0.12743929028511047,
-0.26662757992744446,
-0.17412856221199036,
0.052319034934043884,
-0.3682793080806732,
-0.3957517147064209,
-0.14224450290203094,
-0.22422181069850922,
-0.36304718255996704,
0.2143726348876953,
0.2408524453639984,
0.40664321184158325,
0.5543978214263916,
-0.00010314799874322489,
-0.13468582928180695,
0.14043551683425903,
-0.08244738727807999,
-0.17236076295375824,
-0.24577903747558594,
-0.1541205793619156,
-0.2673064172267914,
0.08497098088264465,
-0.41975823044776917,
-0.03271808475255966,
-0.13103407621383667,
0.08736220002174377,
-0.3289753794670105,
0.2696438729763031,
0.13272501528263092,
0.2795182168483734,
-0.21985448896884918,
0.13026314973831177,
-0.02114943042397499,
-0.03176340088248253,
0.07261919230222702,
-0.05838441848754883,
0.22053329646587372,
0.17179498076438904,
0.15654627978801727,
0.12111183255910873,
0.028725886717438698,
0.16558824479579926,
-0.0035967198200523853,
0.38764190673828125,
-0.09656508266925812,
-0.0442572720348835,
-0.4276583790779114,
-0.17309951782226562,
0.06600252538919449,
0.8125041723251343,
-0.44125425815582275,
-0.39384281635284424,
0.04908572509884834,
0.043076690286397934,
-0.5168248414993286,
-0.1527068167924881,
0.14919120073318481,
0.0641435906291008,
0.05867110937833786,
-0.13482357561588287,
-0.26214802265167236,
-0.26987695693969727,
0.12406830489635468,
-0.12026918679475784,
0.17664173245429993,
-0.13961830735206604,
0.09773842990398407,
0.1554127186536789,
-0.17877136170864105,
0.3191451132297516,
-0.005835916381329298,
0.18436481058597565,
0.2849905490875244,
-0.5635161399841309,
-0.32469403743743896,
0.008889298886060715,
0.30770131945610046,
0.3426324725151062,
0.38453757762908936,
0.06103336811065674,
-0.05311200022697449,
-0.16387377679347992,
0.21538645029067993,
0.5052185654640198,
-0.05758321285247803,
-0.09676594287157059,
0.07736214250326157,
0.13713081181049347,
-0.07462260872125626,
-0.178765207529068,
-0.08501149713993073,
-0.20362290740013123,
-0.235118567943573,
0.1354382485151291,
-0.16733990609645844,
-0.010803434997797012,
-0.08981475979089737,
-0.0006082362961024046,
-0.21413245797157288,
-0.24790646135807037,
-0.26657411456108093,
0.16424675285816193,
0.23584599792957306,
-0.24758172035217285,
0.18323089182376862,
-0.27187177538871765,
-0.12472282350063324,
0.03818126395344734,
0.2522244155406952,
-0.10042440891265869,
0.4507002830505371,
-0.37709903717041016,
0.03218122944235802,
-0.06412708014249802,
-0.3635903596878052,
0.06662894785404205,
0.09463059157133102,
0.10861501842737198,
-0.08915354311466217,
0.13551419973373413,
-0.2728853225708008,
0.3756600618362427,
-0.003880028845742345,
-0.04900631308555603,
-0.0022546853870153427,
-0.1385650932788849,
0.05652182921767235,
-0.42629483342170715,
0.01912025362253189,
-0.39384162425994873,
-0.046550203114748,
-0.03729061782360077,
0.21541710197925568,
-0.1831132471561432,
-0.2176530361175537,
0.07980044931173325,
0.15349507331848145,
0.07347465306520462,
-0.11235479265451431,
0.015881652012467384,
-0.10772640258073807,
-0.03388143703341484,
-0.2993711829185486,
0.08833429962396622,
0.16414111852645874,
-0.35705167055130005,
0.07766532152891159,
0.08042915910482407,
0.04919569566845894,
0.1362268626689911,
0.221888929605484,
-0.256896048784256,
0.21365997195243835,
-0.21269141137599945,
-0.07079704850912094,
0.576558530330658,
-0.26137787103652954,
-0.14355291426181793,
0.2921445667743683,
0.07466908544301987,
-0.0027985351625829935,
0.12064554542303085,
0.1994355022907257,
-0.05240602791309357,
-0.016934318467974663,
-0.16867876052856445,
0.2380014955997467,
-0.01146363839507103,
-0.10067468136548996,
-0.0052552116103470325,
0.1009078398346901,
0.19324713945388794,
0.040152084082365036,
0.08938685804605484,
0.235197976231575,
0.058236878365278244,
0.11276400834321976,
0.45542192459106445,
-0.29844173789024353,
0.10829433053731918,
0.2104288637638092,
0.3090747892856598,
0.11489978432655334,
0.14627888798713684,
-0.36798906326293945,
0.1484367400407791,
0.09863653033971786,
0.2785969376564026,
0.05204831063747406,
0.23406942188739777,
-0.0693482756614685,
-0.04428762570023537,
0.07640689611434937,
-0.21591651439666748,
-0.05788716673851013,
0.18849356472492218,
0.1673409789800644,
0.17427456378936768,
-0.11896084249019623,
-0.5899413228034973,
0.21855874359607697,
-0.21632269024848938,
-0.11844782531261444,
-0.5084571838378906,
0.21473166346549988,
0.1542229801416397,
-0.01081690564751625,
0.09650316089391708,
0.11695747077465057,
-0.18469470739364624,
-0.43437856435775757,
0.26915496587753296,
0.27708137035369873,
0.04409971088171005,
-0.07131224870681763,
0.0792737752199173,
0.3585068881511688,
0.2771752178668976,
-0.12153874337673187,
0.06655015051364899,
-0.1913224309682846,
0.31701985001564026,
-0.030463628470897675,
0.24458706378936768,
0.4754382073879242,
-0.1599055677652359,
0.18923351168632507,
0.4515467882156372,
-0.13987405598163605,
0.06978916376829147,
-0.0783412903547287,
-0.37812361121177673,
0.12512317299842834,
-0.11088825762271881,
-0.1647181212902069,
0.4323979318141937,
-0.19135844707489014,
-0.4386999309062958,
-0.26006296277046204,
0.48458921909332275,
-0.0010402617044746876,
-0.004696701653301716,
0.0654752254486084,
-0.07338659465312958,
0.007284272462129593,
-0.05278902128338814,
0.13742710649967194,
0.3874976336956024,
0.05517866462469101,
0.20383316278457642,
0.06408017128705978,
0.011907953768968582,
0.12592782080173492,
0.15377900004386902,
0.06874246895313263,
0.31306201219558716,
-0.019403744488954544,
0.034760672599077225,
0.056490737944841385,
-0.16358759999275208,
-0.39343658089637756,
-0.07631911337375641,
0.1618540734052658,
-0.02113577537238598,
0.36872079968452454,
-0.3297152519226074,
-0.34941089153289795,
-0.39887139201164246,
-0.23844724893569946,
0.11402558535337448,
0.0361567959189415,
-0.2951516807079315,
-0.041035473346710205,
0.33950862288475037,
0.13552220165729523,
0.14926734566688538,
0.17121733725070953,
0.08567190915346146,
0.024713804945349693,
0.055949315428733826,
-0.024967553094029427,
-0.015380438417196274,
0.19651710987091064,
0.27426624298095703,
-0.15895864367485046,
0.58733731508255,
0.0007299385033547878,
-0.08041679859161377,
-0.3680337965488434,
-0.1861911416053772,
0.17039687931537628,
-0.01284325122833252,
0.03514033555984497,
0.2513345777988434,
-0.004582391120493412,
-0.048999082297086716,
-0.09182290732860565,
0.023535629734396935,
-0.3367699384689331,
0.172947958111763,
-0.2204841673374176,
-0.10174273699522018,
0.10092265903949738,
0.09097789227962494,
-0.29244375228881836,
-0.5083230137825012,
-0.24750907719135284,
0.24295613169670105,
0.43553292751312256,
0.2685110569000244,
0.16043345630168915,
0.06893394142389297,
0.21235467493534088,
0.1988353580236435,
0.07734706252813339,
0.022662144154310226,
-0.2997833788394928,
0.1812630444765091,
-0.3456687033176422,
-0.26153644919395447,
-0.0005992803489789367,
-0.012473426759243011,
0.43896710872650146,
0.14492936432361603,
-0.2703377604484558,
-0.11316268891096115,
0.007862076163291931,
-0.01649351790547371,
0.06934460997581482,
0.5041058659553528,
0.12708966434001923,
-0.22682762145996094,
-0.08355652540922165,
-0.06643911451101303,
0.05312835052609444,
-0.06647200137376785,
-0.14305336773395538,
0.20962466299533844,
0.45484939217567444,
0.3592883050441742,
-0.04600199684500694,
0.3433166742324829,
0.23416896164417267,
-0.4142976701259613,
0.3587225675582886,
-0.3138968348503113,
-0.16214722394943237,
-0.05677427724003792,
-0.2992813289165497,
0.09555000811815262,
-0.3289945125579834,
-0.28667694330215454,
0.07652918249368668,
-0.13286204636096954,
-0.34049445390701294,
-0.3377617597579956,
0.11425115168094635,
0.014496571384370327,
-0.017097508534789085,
-0.008165980689227581,
-0.3336505889892578,
0.2520325779914856,
-0.24628208577632904,
-0.18163444101810455,
-0.11595729738473892,
0.07891874015331268,
-0.026201805099844933,
0.09997828304767609,
0.10926764458417892,
-0.12819164991378784,
-0.5397812128067017,
-0.1871839314699173,
-0.2831963002681732,
0.08104231208562851,
-0.10943832248449326,
0.2423330545425415,
0.3701021075248718,
-0.17447541654109955,
0.07191571593284607,
-0.3205093741416931,
0.35528287291526794,
-0.011020245030522346,
-0.5156714916229248,
0.0702783614397049,
-0.4106999337673187,
0.08270341157913208,
0.11707474291324615,
-0.3059646487236023,
0.5226399898529053,
0.18024100363254547,
-0.07002146542072296,
-0.12327843904495239,
-0.2890222370624542,
0.3584616482257843,
0.16389590501785278,
0.0033585531637072563,
-0.27478691935539246,
-0.025492442771792412,
-0.2516489028930664,
-0.23711782693862915,
-0.11535860598087311,
-0.11301267147064209,
0.0015422147698700428,
-0.0715370923280716,
-0.0634525939822197,
-0.253204882144928,
0.05917797610163689,
0.22962796688079834,
-0.058572977781295776,
0.030590275302529335,
-0.018770795315504074,
0.1887829750776291,
0.05898822471499443,
0.33229997754096985,
0.35822874307632446,
0.35316240787506104,
-0.12572471797466278,
-0.07426644116640091,
0.18782548606395721,
0.23951710760593414,
0.4375710189342499,
0.009446357376873493,
-0.07419638335704803,
0.18539270758628845,
-0.21985284984111786,
-0.01618727296590805,
-0.3805893361568451,
-0.03862224519252777,
0.3348107933998108,
-0.0018570903921499848,
-0.6414476633071899,
-0.8713590502738953,
0.5688745975494385,
0.26136308908462524,
0.004065289162099361,
0.3360825479030609,
-0.12262703478336334,
-0.10235214978456497,
-0.09029275923967361,
0.14670054614543915,
0.698284924030304,
0.08367878943681717,
0.09443081170320511,
0.19578216969966888,
0.2910909056663513,
0.47425419092178345,
-0.02317664586007595,
0.09571489691734314,
-0.47121530771255493,
-0.24249938130378723,
-0.15763597190380096,
-0.13528963923454285,
0.3274857699871063,
0.09737410396337509,
-0.2673662304878235,
0.46175751090049744,
0.08613207936286926,
-0.01916179060935974,
-0.07813336700201035,
0.2627311050891876,
-0.2957572937011719,
-0.14919470250606537,
-0.342079758644104,
0.20871028304100037,
0.13754543662071228,
0.13050471246242523,
-0.16799847781658173,
-0.19627104699611664,
0.32504403591156006,
0.12176481634378433,
-0.025997651740908623,
-0.14700402319431305,
-0.1014484390616417,
0.015775900334119797,
0.12716533243656158,
-0.36214062571525574,
0.292429655790329,
0.1912248730659485,
0.22345265746116638,
-0.013315921649336815,
-0.04126366600394249,
0.02818538434803486,
-0.14523948729038239,
-0.03710033372044563,
-0.022826725617051125,
0.15727774798870087,
0.5331597328186035,
-0.05378273129463196,
-0.0648752972483635,
0.29469630122184753,
0.09658295661211014,
-0.0767129585146904,
-0.08373256027698517,
0.21737582981586456,
0.21056720614433289,
-0.13782434165477753,
-0.13685999810695648,
0.45206594467163086,
-0.11386866867542267,
-0.0730501338839531,
0.19842015206813812,
0.19279490411281586,
-0.25028395652770996,
0.43455007672309875,
-0.026524564251303673,
-0.12063480913639069,
-0.16845472157001495,
0.17480021715164185,
0.29539749026298523,
-0.15483422577381134,
0.27117183804512024,
0.02778169885277748,
-0.20301629602909088,
-0.2583884596824646,
0.11340397596359253,
0.18875126540660858,
0.047032009810209274,
0.03577547147870064,
0.05638517066836357,
0.3641643226146698,
0.22562973201274872,
0.16161325573921204,
-0.004045887850224972,
0.07574315369129181,
-0.3522453308105469,
-0.16990436613559723,
-0.21051311492919922,
0.0448397733271122,
0.173590287566185,
0.3234497904777527,
-0.05063123628497124,
-0.08213651180267334,
0.17155031859874725,
0.0824960321187973,
-0.3810792863368988,
-0.06566688418388367,
-0.15188482403755188,
0.11207552999258041,
0.09019476920366287,
0.034407202154397964,
-0.24114012718200684,
0.3060913681983948,
0.17290747165679932,
0.15131543576717377,
-0.2065102905035019,
-0.27996155619621277,
-0.0027320433873683214,
0.07414022833108902,
-0.040697697550058365,
-0.050638068467378616,
0.14847560226917267,
-0.1919184774160385,
-0.2478049099445343,
-0.08396115899085999,
0.16186922788619995,
-0.04110095277428627,
0.004889306146651506,
0.2155013382434845,
0.18617385625839233,
-0.38000962138175964,
-0.07858510315418243,
-0.05809687450528145,
0.13997964560985565,
-0.012056613340973854,
0.15605124831199646,
0.31665897369384766,
0.01414575707167387,
-0.2948203682899475,
-0.2338850349187851,
0.14367245137691498,
0.2659361660480499,
-0.1882646530866623,
0.35872140526771545,
-0.2616417706012726,
0.16915449500083923,
0.0873798131942749,
0.4440041184425354,
0.6819086670875549,
-0.18314820528030396,
0.15295913815498352,
0.26603493094444275,
0.2514120638370514,
-0.13199107348918915,
-0.06443853676319122,
-0.0242322888225317,
-0.09626733511686325,
0.09156427532434464,
0.26938629150390625,
0.1511513888835907,
0.11225453019142151,
-0.2158711552619934,
-0.27924326062202454,
0.1278318613767624,
-0.2928752899169922,
0.14341247081756592,
0.29930275678634644,
-0.0822099894285202,
-0.11246225982904434,
0.2549162209033966,
0.4423462152481079,
0.19819511473178864,
0.5453622937202454,
-0.014114714227616787,
0.6302162408828735,
0.10675526410341263,
-0.11123435944318771,
-0.025092996656894684,
-0.19285009801387787,
-0.02421722747385502,
0.20769819617271423,
0.16155865788459778,
0.07000494748353958,
-0.031153907999396324,
0.2256404161453247,
0.1823243945837021,
-0.10273081809282303,
0.01837342604994774,
0.31251564621925354,
0.08232371509075165,
-0.12384138256311417,
-0.21008113026618958,
-0.1635657101869583,
-0.18094182014465332,
-0.07083117216825485,
-0.1897086203098297,
-0.1125660166144371,
0.2526170313358307,
0.08508345484733582,
0.29831817746162415,
-0.4108554422855377,
0.31594353914260864,
-0.10585704445838928,
0.37037065625190735,
-0.29706940054893494,
0.2014586627483368,
-0.0724237710237503,
0.10503161698579788,
-0.3055816888809204,
0.17160966992378235,
0.3079661428928375,
0.4848974943161011,
0.102926105260849,
0.04771052300930023,
-0.23401778936386108,
-0.13598646223545074,
0.11418531835079193,
0.00320145720615983,
-0.08179659396409988,
-0.0514165535569191,
0.4961349368095398,
0.1336662620306015,
-0.0962807685136795,
0.46751973032951355,
0.07621636241674423,
-0.027522506192326546,
-0.8000182509422302,
0.047810133546590805,
0.08329790085554123,
-0.03781238943338394,
-0.09303407371044159,
0.21792764961719513,
-0.4655719995498657,
-0.04687034711241722,
0.48061928153038025,
-0.4441666305065155,
-0.0073585486970841885,
-0.17567554116249084,
0.10240163654088974,
-0.3210001289844513,
0.6157892942428589,
0.19399532675743103,
0.5805899500846863,
-0.014539070427417755,
-0.3817857801914215,
-0.30626633763313293,
-0.03367122635245323,
-0.086671382188797,
-0.14955246448516846,
-0.07630672305822372,
0.17049770057201385,
0.10771983116865158,
0.09878499060869217,
-0.17353098094463348,
-0.4373112618923187,
-0.20290188491344452,
0.405443400144577,
-0.25898128747940063,
-0.24409185349941254,
-0.42980584502220154,
0.3638334274291992,
0.07268382608890533,
-0.19712166488170624,
-0.042510248720645905,
-0.43532517552375793,
0.053401436656713486,
0.0012332790065556765,
0.17786915600299835,
0.1927580088376999,
-0.20716175436973572,
0.4288680851459503,
-0.01926739141345024,
0.34665361046791077,
-0.1509358137845993,
0.037765439599752426,
-0.12435566633939743,
-0.1971432864665985,
-0.19977916777133942,
0.3828832805156708,
0.15416432917118073,
0.024766679853200912,
-0.09303095936775208,
-0.040833406150341034,
-0.0006954284035600722,
0.01927267760038376,
0.0890781506896019,
0.01882784627377987,
-0.02098120003938675,
-0.22718875110149384,
0.10047263652086258,
-0.038276273757219315,
0.09663011878728867,
0.6581114530563354,
-0.14701269567012787,
0.0655411034822464,
-0.2018076628446579,
-0.0885169506072998,
0.26304882764816284,
-0.1844278872013092,
-0.19976337254047394,
-0.3186928927898407,
0.030083060264587402,
0.06526083499193192,
-0.1534789502620697,
-0.44773486256599426,
0.08257679641246796,
0.42908790707588196,
-0.000423570309067145,
-0.2846859395503998,
0.3960922658443451,
0.3302377462387085,
0.055477067828178406,
-0.06149066239595413,
0.1827526092529297,
-0.0785411149263382,
-0.11478487402200699,
-0.015291816554963589,
-0.24557846784591675
] |
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.02254350297152996,
-0.37920230627059937,
-0.07171960920095444,
0.3793145418167114,
0.07945949584245682,
-0.15498200058937073,
0.2763756215572357,
0.08281736075878143,
0.07116219401359558,
-0.14288772642612457,
-0.06436223536729813,
0.01111909095197916,
-0.24549677968025208,
0.34290432929992676,
0.15793630480766296,
-0.0702991932630539,
-0.10003072023391724,
0.007463300134986639,
-0.7639589905738831,
-0.04463018476963043,
0.0603363923728466,
0.23215657472610474,
-0.2711445689201355,
-0.010925229638814926,
-0.03694770112633705,
-0.24115006625652313,
-0.3265107572078705,
-0.06277331709861755,
-0.22328731417655945,
-0.3062741160392761,
0.3705844581127167,
0.26766327023506165,
0.30390068888664246,
0.505975067615509,
-0.0001149826348409988,
-0.08657944202423096,
-0.013671710155904293,
-0.11190527677536011,
-0.26054105162620544,
-0.26024165749549866,
-0.24706970155239105,
-0.12101129442453384,
0.12784841656684875,
-0.3559494912624359,
-0.04556947946548462,
0.03780050948262215,
0.16675594449043274,
-0.3080902695655823,
0.6174598336219788,
0.17397093772888184,
0.16366712749004364,
0.1257343590259552,
0.0991588681936264,
-0.020211271941661835,
-0.061070121824741364,
0.2306850552558899,
0.0680699273943901,
0.1013275608420372,
0.24604789912700653,
0.1616702377796173,
0.08731696009635925,
0.14191266894340515,
0.16909585893154144,
-0.1322488635778427,
0.22843071818351746,
0.02513529546558857,
-0.10975678265094757,
-0.39999982714653015,
-0.07696644216775894,
0.2307676374912262,
0.7655304074287415,
-0.40363091230392456,
-0.4934123754501343,
-0.23890149593353271,
-0.08458461612462997,
-0.349123477935791,
-0.06072653457522392,
0.08783493936061859,
0.061578936874866486,
0.20741833746433258,
-0.2750287353992462,
-0.17992283403873444,
-0.2871975302696228,
-0.07147527486085892,
-0.08420398831367493,
-0.12330787628889084,
-0.35710763931274414,
0.03754338622093201,
0.13684163987636566,
-0.2389594465494156,
-0.12844358384609222,
0.18228679895401,
0.11190004646778107,
0.3583674430847168,
-0.6574569344520569,
-0.1644616723060608,
0.03246552124619484,
0.2509855329990387,
0.5292326807975769,
0.5199730396270752,
0.07081645727157593,
-0.07283147424459457,
-0.059563592076301575,
0.13559937477111816,
0.3547314405441284,
0.2167765349149704,
0.13329735398292542,
0.014836217276751995,
-0.046835146844387054,
-0.01567559875547886,
0.008092225529253483,
-0.1874769926071167,
-0.19754570722579956,
-0.26330748200416565,
-0.028897849842905998,
-0.1812645047903061,
0.12437419593334198,
-0.15714411437511444,
-0.08866537362337112,
-0.1423644721508026,
-0.2186683714389801,
-0.24806968867778778,
0.21557441353797913,
0.17979595065116882,
0.014784210361540318,
-0.009271249175071716,
-0.19770447909832,
0.15962667763233185,
0.0233291145414114,
0.16188853979110718,
-0.08999410271644592,
0.29390624165534973,
-0.3323540687561035,
0.3278654217720032,
-0.1063365489244461,
-0.5168439149856567,
0.1241304874420166,
-0.04980611428618431,
-0.014522708021104336,
-0.18956506252288818,
0.013115223497152328,
-0.15611815452575684,
0.23897068202495575,
0.041687674820423126,
-0.135061115026474,
0.1681135594844818,
-0.10381362587213516,
-0.006343455519527197,
-0.40264779329299927,
-0.3620336651802063,
-0.28379297256469727,
-0.2724316418170929,
-0.0047695934772491455,
0.08283174782991409,
-0.2892344892024994,
-0.049335937947034836,
0.0017674715491011739,
0.29952019453048706,
0.04285163804888725,
-0.05313936620950699,
0.1576128602027893,
-0.0021381834521889687,
-0.2632712423801422,
-0.02747849002480507,
0.13874627649784088,
0.5703588128089905,
-0.5171879529953003,
-0.16935233771800995,
0.190170019865036,
-0.06138656660914421,
0.06472674757242203,
0.49105367064476013,
-0.18456648290157318,
0.27928468585014343,
-0.29500970244407654,
0.14516375958919525,
0.4489830732345581,
-0.12013603001832962,
-0.33797702193260193,
0.36015868186950684,
-0.051476165652275085,
0.12091334909200668,
0.21690869331359863,
-0.09672784060239792,
0.14119571447372437,
0.0771339163184166,
-0.13100604712963104,
0.030714062973856926,
0.10120600461959839,
-0.26494088768959045,
-0.04938814789056778,
-0.07647393643856049,
0.12186042219400406,
-0.07273264229297638,
-0.018167773261666298,
0.362361878156662,
0.08065308630466461,
0.18907006084918976,
0.40627750754356384,
-0.2153891921043396,
0.26192203164100647,
0.24137920141220093,
0.18417207896709442,
0.1566094011068344,
0.1263938993215561,
-0.3120625615119934,
-0.20840977132320404,
0.1497214436531067,
0.10032187402248383,
-0.09746821969747543,
-0.027091918513178825,
-0.031361207365989685,
-0.29012519121170044,
0.08990757912397385,
-0.24943865835666656,
-0.2793979048728943,
0.10041218250989914,
0.24829231202602386,
0.3779500424861908,
-0.061701398342847824,
-0.47713354229927063,
0.5368737578392029,
0.039898790419101715,
0.11377093195915222,
-0.8209342956542969,
0.22695009410381317,
0.2916395664215088,
-0.0419200100004673,
0.009274068288505077,
0.22992050647735596,
-0.04435326159000397,
-0.3739893436431885,
0.40704208612442017,
0.29185041785240173,
-0.25547030568122864,
0.13456150889396667,
0.17518234252929688,
0.41387057304382324,
0.21636541187763214,
-0.04932257533073425,
-0.03061862662434578,
-0.3302226960659027,
0.2782609760761261,
-0.0702291950583458,
0.14136868715286255,
0.44779086112976074,
-0.20191770792007446,
0.4001389741897583,
0.2018062025308609,
-0.03998667001724243,
-0.03888848423957825,
-0.026811959221959114,
-0.6704291105270386,
0.10829039663076401,
0.08742256462574005,
-0.16473372280597687,
0.49419260025024414,
-0.13775213062763214,
-0.2760535180568695,
-0.10871759057044983,
0.413820743560791,
-0.09440383315086365,
-0.020049704238772392,
0.22254593670368195,
-0.14515598118305206,
-0.07462915778160095,
0.05746815353631973,
-0.07527538388967514,
0.22476094961166382,
-0.04990648850798607,
0.21739701926708221,
0.01970423385500908,
0.152012437582016,
0.04906583949923515,
0.03436848893761635,
0.13756169378757477,
0.26762688159942627,
-0.06308349967002869,
0.02234428934752941,
0.0916072279214859,
-0.18215514719486237,
-0.3705842196941376,
-0.1461513787508011,
0.035750601440668106,
-0.20608606934547424,
0.4430926442146301,
-0.25895288586616516,
-0.26335766911506653,
-0.44988778233528137,
-0.06662745773792267,
0.013216969557106495,
0.016912195831537247,
-0.34135255217552185,
-0.08775307983160019,
0.3287208378314972,
0.02749214507639408,
0.12296762317419052,
0.3827257454395294,
0.2354796975851059,
0.06220295652747154,
-0.22303804755210876,
-0.06257858872413635,
0.14045146107673645,
0.050457973033189774,
0.11743336915969849,
-0.17442061007022858,
0.41477683186531067,
-0.011087515391409397,
0.020394084975123405,
-0.33502569794654846,
-0.23262619972229004,
0.36294040083885193,
-0.03032444417476654,
0.20290552079677582,
0.2526980936527252,
0.0050778440199792385,
-0.07271198183298111,
-0.20060105621814728,
-0.0021755134221166372,
-0.16804489493370056,
-0.024172130972146988,
0.05514836311340332,
-0.08468303084373474,
0.22222885489463806,
0.11610160022974014,
-0.2689584791660309,
-0.33768072724342346,
-0.10862598568201065,
0.7068123817443848,
0.08232590556144714,
0.16253094375133514,
0.21607089042663574,
-0.14670200645923615,
0.3742016851902008,
-0.1792028844356537,
0.2425267994403839,
-0.08224855363368988,
-0.47941723465919495,
0.27236175537109375,
-0.30867984890937805,
-0.20704519748687744,
-0.06159352883696556,
-0.11149628460407257,
0.5452194809913635,
0.04741648957133293,
-0.28791630268096924,
-0.2418961077928543,
-0.08896112442016602,
-0.0576903373003006,
0.10432031750679016,
0.25473344326019287,
0.3147215247154236,
-0.21800193190574646,
0.05303031951189041,
0.03929320350289345,
-0.03986296430230141,
0.1431071162223816,
-0.029665296897292137,
0.11790276318788528,
0.37216341495513916,
0.6116316318511963,
0.20339304208755493,
0.5283325910568237,
0.559779703617096,
0.04415326565504074,
0.13390114903450012,
-0.2030179649591446,
-0.14824314415454865,
-0.05394704267382622,
-0.44978398084640503,
0.10089254379272461,
-0.3520362079143524,
-0.2242039442062378,
0.10325851291418076,
-0.08209351450204849,
-0.007276422344148159,
-0.17647452652454376,
0.23433999717235565,
-0.31533077359199524,
-0.17513273656368256,
-0.11594763398170471,
-0.052454568445682526,
0.22765731811523438,
-0.15145288407802582,
-0.10100679844617844,
-0.0028499020263552666,
0.11663853377103806,
-0.06247585266828537,
0.24953384697437286,
0.22917486727237701,
0.14048615097999573,
-0.48732519149780273,
-0.11917334049940109,
-0.5276037454605103,
0.09911739081144333,
-0.06580456346273422,
0.08162221312522888,
0.17649514973163605,
-0.17039373517036438,
0.20906125009059906,
-0.1972825676202774,
0.706856369972229,
0.3709079623222351,
-0.4413895905017853,
0.016711357980966568,
-0.6154156923294067,
-0.0944966971874237,
0.25157350301742554,
-0.30185383558273315,
0.2464170902967453,
0.4119480848312378,
-0.11153263598680496,
-0.4199149012565613,
-0.25276175141334534,
0.18328018486499786,
-0.039867401123046875,
-0.06152418628334999,
-0.16579101979732513,
0.12371479719877243,
-0.1315443217754364,
-0.17791305482387543,
-0.03466414660215378,
-0.02979431115090847,
0.1431576907634735,
-0.06130705773830414,
0.01675591431558132,
-0.1951407790184021,
-0.10090707242488861,
0.29245150089263916,
0.0021701192017644644,
0.1355208307504654,
-0.07170546799898148,
0.10208284854888916,
0.39702972769737244,
0.185702845454216,
0.18295927345752716,
0.5120193958282471,
0.004575911443680525,
-0.016341909766197205,
0.24431335926055908,
0.11494915932416916,
0.37135642766952515,
0.22974027693271637,
-0.22431722283363342,
0.1311885118484497,
-0.2082904428243637,
0.062460944056510925,
-0.4876962900161743,
-0.0646546259522438,
0.388262003660202,
0.004207656718790531,
-0.4003358781337738,
-0.5670478940010071,
0.4350757598876953,
0.06367889791727066,
-0.06793727725744247,
-0.1132914125919342,
0.21992945671081543,
-0.2193499058485031,
-0.06352939456701279,
-0.04802790284156799,
0.8930830955505371,
-0.07986368983983994,
0.17763417959213257,
0.2711484730243683,
0.3125709593296051,
0.6791241765022278,
-0.1045413613319397,
0.037373486906290054,
-0.3593168556690216,
-0.12837526202201843,
-0.17617949843406677,
-0.1432952731847763,
0.23939523100852966,
0.2416953444480896,
-0.3168784976005554,
0.47400224208831787,
0.23648130893707275,
-0.0876341387629509,
-0.20019541680812836,
0.13418196141719818,
-0.250530868768692,
-0.1713344007730484,
-0.5428109169006348,
0.07975747436285019,
0.19763542711734772,
0.34964266419410706,
-0.20354390144348145,
-0.158989816904068,
0.3872138559818268,
0.010876774787902832,
-0.19578245282173157,
-0.19617626070976257,
-0.19129566848278046,
-0.11987997591495514,
0.3108171820640564,
-0.45031124353408813,
0.24837177991867065,
0.27198752760887146,
0.3074176013469696,
-0.02028016932308674,
-0.23374369740486145,
-0.17066563665866852,
-0.17153625190258026,
-0.05759917572140694,
-0.04435427486896515,
0.11914940923452377,
0.5094351768493652,
0.08621639013290405,
0.009827801957726479,
0.2524542212486267,
0.12276995182037354,
0.055214498192071915,
-0.12339296191930771,
0.02799169346690178,
0.02471192553639412,
-0.3799903988838196,
0.04457344859838486,
0.40370431542396545,
0.013900307938456535,
-0.075176902115345,
0.07091599702835083,
0.35485517978668213,
-0.1962820440530777,
0.20547674596309662,
-0.02246866747736931,
-0.143773153424263,
-0.1721855103969574,
0.35001885890960693,
-0.1183038279414177,
-0.14915014803409576,
0.4499124586582184,
0.2053413838148117,
-0.20259374380111694,
-0.15556778013706207,
0.10783466696739197,
0.30166128277778625,
-0.5539582967758179,
-0.0551476813852787,
0.015811443328857422,
0.29551026225090027,
0.12318837642669678,
0.24681714177131653,
0.1575181931257248,
-0.19666381180286407,
-0.1688225269317627,
-0.3144059181213379,
-0.11280851811170578,
0.2498926818370819,
0.1568761169910431,
0.26733580231666565,
0.013314725831151009,
-0.09628688544034958,
0.04662808030843735,
0.2190752625465393,
-0.27460208535194397,
0.0008876274223439395,
-0.18249624967575073,
0.027024967595934868,
0.31599026918411255,
-0.13113464415073395,
0.13407683372497559,
0.29940271377563477,
0.0049859522841870785,
0.29906532168388367,
-0.28600287437438965,
-0.14932836592197418,
-0.14308315515518188,
0.11009890586137772,
-0.04327590763568878,
-0.11824931204319,
0.125617116689682,
0.053848158568143845,
-0.13961593806743622,
-0.17663738131523132,
0.37313157320022583,
0.10632055997848511,
0.29225656390190125,
0.28736868500709534,
0.31956517696380615,
-0.18831828236579895,
-0.18754957616329193,
0.024497950449585915,
0.21931783854961395,
-0.03195847198367119,
0.16335713863372803,
0.31625232100486755,
-0.33846643567085266,
-0.23437094688415527,
-0.13016146421432495,
0.4080592691898346,
0.4407762587070465,
-0.21459895372390747,
0.34469807147979736,
-0.3372786045074463,
0.011561690829694271,
0.01624944433569908,
0.554660439491272,
0.5000158548355103,
-0.11147798597812653,
0.12327347695827484,
0.2385496199131012,
0.12892185151576996,
-0.013141063041985035,
0.14483903348445892,
-0.16469606757164001,
-0.015505551360547543,
0.03921573981642723,
0.39147239923477173,
-0.0636790543794632,
0.19085271656513214,
0.3073042035102844,
-0.15462160110473633,
0.2058762162923813,
-0.23114708065986633,
0.024827467277646065,
0.14020153880119324,
-0.005289257969707251,
-0.04668092355132103,
0.3599812388420105,
0.5259151458740234,
0.26981934905052185,
0.3038617968559265,
-0.1987413614988327,
0.33674174547195435,
-0.2960052490234375,
0.30562013387680054,
0.15450654923915863,
-0.18870507180690765,
-0.26692885160446167,
0.2299317866563797,
0.1297985315322876,
0.03325440362095833,
-0.3204916715621948,
0.5874295830726624,
0.21115326881408691,
0.005055904388427734,
-0.05957585200667381,
0.44660472869873047,
0.08981125056743622,
-0.4591878354549408,
-0.07468907535076141,
-0.21792744100093842,
-0.19435393810272217,
-0.14878693222999573,
-0.22376936674118042,
-0.18778924643993378,
0.2310129702091217,
-0.07144413143396378,
0.4418846070766449,
-0.5277571678161621,
0.03588360548019409,
-0.026471685618162155,
0.05271916836500168,
-0.2840575873851776,
0.24447880685329437,
-0.07459427416324615,
0.11000174283981323,
-0.0017726063961163163,
0.32803645730018616,
0.21348419785499573,
0.12448354065418243,
0.042742714285850525,
0.12686821818351746,
-0.23454995453357697,
-0.1080714762210846,
-0.026248803362250328,
0.18872737884521484,
-0.21010124683380127,
-0.12022267282009125,
0.5229051113128662,
-0.008196063339710236,
-0.022061677649617195,
0.2686904966831207,
-0.12943722307682037,
0.09056074917316437,
-0.9172281622886658,
0.22842861711978912,
-0.14158351719379425,
0.013080989010632038,
-0.13738179206848145,
0.0940607562661171,
-0.4923454225063324,
0.04726259410381317,
0.15628910064697266,
-0.48052743077278137,
0.14942318201065063,
-0.09029250591993332,
0.04869693145155907,
-0.22704391181468964,
0.4418409466743469,
0.34671750664711,
0.3968280255794525,
-0.001427092938683927,
-0.16028337180614471,
-0.28638771176338196,
-0.11421321332454681,
0.1662471443414688,
-0.010551242157816887,
0.0262265857309103,
0.3324880301952362,
-0.026318684220314026,
0.09761422872543335,
-0.2443810999393463,
-0.5556642413139343,
-0.43092620372772217,
0.2382340133190155,
-0.17232133448123932,
-0.18357740342617035,
-0.3301452398300171,
0.2728574573993683,
0.08617591112852097,
0.06682658940553665,
0.1457110345363617,
-0.3383137881755829,
-0.0964505597949028,
-0.0013658583629876375,
0.289855420589447,
-0.08880657702684402,
-0.2830110788345337,
0.12891477346420288,
0.19439825415611267,
0.02267717756330967,
-0.05490463599562645,
0.15128806233406067,
-0.36076250672340393,
-0.3699643015861511,
-0.008842766284942627,
0.24263995885849,
-0.010173709131777287,
0.24837301671504974,
-0.20000731945037842,
-0.21197102963924408,
-0.06471722573041916,
0.010786210186779499,
0.1808040887117386,
-0.11114652454853058,
-0.0816979631781578,
-0.005394027568399906,
-0.03154755011200905,
-0.0651746466755867,
0.05533567816019058,
0.6036367416381836,
-0.020929547026753426,
0.21413704752922058,
-0.047520432621240616,
-0.18005262315273285,
0.4160074293613434,
-0.4784716069698334,
-0.04072175920009613,
-0.03851737082004547,
0.09723605960607529,
0.32083579897880554,
-0.4703529179096222,
-0.4702592194080353,
0.1263056993484497,
0.3914022445678711,
0.07029128819704056,
-0.15300919115543365,
0.1964987814426422,
0.27470239996910095,
-0.059408120810985565,
-0.2626429498195648,
0.30285751819610596,
0.16394135355949402,
0.03236890956759453,
0.15233971178531647,
-0.2388467639684677
] |
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.14258834719657898,
-0.34717732667922974,
-0.11831463873386383,
0.35185518860816956,
0.08034638315439224,
-0.08777709305286407,
0.22364522516727448,
0.2374294549226761,
0.033236313611269,
-0.12688331305980682,
-0.03850686177611351,
0.050097186118364334,
-0.2673036754131317,
0.36309099197387695,
0.07597555965185165,
-0.03308505192399025,
-0.08173464983701706,
-0.011020157486200333,
-0.7120331525802612,
-0.05418511852622032,
0.06369972229003906,
0.2144562005996704,
-0.2781910300254822,
-0.07417061179876328,
-0.0047891391441226006,
-0.23888225853443146,
-0.3776048421859741,
-0.025113731622695923,
-0.20680463314056396,
-0.3644317090511322,
0.22853673994541168,
0.2593217194080353,
0.29906123876571655,
0.5007332563400269,
-0.00010832287807716057,
-0.18448108434677124,
0.024103591218590736,
-0.06989137083292007,
-0.3096701502799988,
-0.22508929669857025,
-0.2824632227420807,
-0.21353363990783691,
0.06899124383926392,
-0.36651504039764404,
-0.054031774401664734,
0.02737760916352272,
0.1581241488456726,
-0.3098551034927368,
0.5706965923309326,
0.15498265624046326,
0.22616475820541382,
0.13554565608501434,
0.0920441597700119,
-0.050527557730674744,
-0.07467392832040787,
0.13219106197357178,
0.060759153217077255,
0.10779113322496414,
0.23280616104602814,
0.15018866956233978,
0.021425941959023476,
0.14858637750148773,
0.09689036756753922,
-0.11990460753440857,
0.2620966136455536,
-0.051987599581480026,
-0.11569824814796448,
-0.34409448504447937,
-0.020976116880774498,
0.15129992365837097,
0.7606987953186035,
-0.38589659333229065,
-0.566101610660553,
-0.3009556233882904,
-0.040061477571725845,
-0.4118645191192627,
-0.05461025983095169,
0.14724917709827423,
0.08200550079345703,
0.15404224395751953,
-0.21217267215251923,
-0.1637295037508011,
-0.2180507481098175,
-0.13876985013484955,
-0.04147869721055031,
-0.09697365760803223,
-0.3794800937175751,
-0.021191906183958054,
0.04906751587986946,
-0.2237613946199417,
-0.1534070521593094,
0.13265776634216309,
0.10873950272798538,
0.3603596091270447,
-0.6488001346588135,
-0.25674986839294434,
0.05327633395791054,
0.33213263750076294,
0.5177854299545288,
0.5682509541511536,
0.07866532355546951,
-0.021927617490291595,
-0.04386071488261223,
0.1380574256181717,
0.36561673879623413,
0.14244525134563446,
0.10610253363847733,
-0.06191886588931084,
-0.05289196968078613,
0.039113599807024,
0.07967527955770493,
-0.12600070238113403,
-0.14069104194641113,
-0.22160013020038605,
-0.07711921632289886,
-0.15650393068790436,
0.08320663124322891,
-0.17706888914108276,
-0.1023254469037056,
-0.1652233600616455,
-0.16189606487751007,
-0.21602804958820343,
0.11481498181819916,
0.1496848613023758,
-0.1081652045249939,
-0.037021804600954056,
-0.29817870259284973,
0.08415916562080383,
-0.02310067042708397,
0.12773631513118744,
-0.12045220285654068,
0.3016717731952667,
-0.24541017413139343,
0.2856011986732483,
-0.13888224959373474,
-0.551095187664032,
0.16535937786102295,
0.0034503822680562735,
-0.05008199065923691,
-0.09724991023540497,
-0.03867678716778755,
-0.2035280466079712,
0.13371197879314423,
0.010753445327281952,
-0.09719434380531311,
0.17575645446777344,
-0.1511567384004593,
-0.04823646321892738,
-0.40530917048454285,
-0.35469862818717957,
-0.2803290784358978,
-0.17455433309078217,
0.0428338460624218,
0.14551770687103271,
-0.22662456333637238,
-0.05437864735722542,
0.04254552721977234,
0.3436610698699951,
0.01792791672050953,
-0.10247623175382614,
0.12682941555976868,
0.04946347326040268,
-0.31425055861473083,
-0.054395779967308044,
0.14243386685848236,
0.5140596628189087,
-0.4476076662540436,
-0.24884697794914246,
0.1939009577035904,
-0.018950436264276505,
0.024829061701893806,
0.4461153745651245,
-0.11794891953468323,
0.22488343715667725,
-0.2795751988887787,
0.14106501638889313,
0.367335706949234,
-0.10723155736923218,
-0.2978147268295288,
0.33103224635124207,
-0.1225784420967102,
0.12774552404880524,
0.2151695191860199,
-0.11889468878507614,
0.14728620648384094,
0.020982448011636734,
-0.11251253634691238,
0.027641337364912033,
0.009555327706038952,
-0.23971831798553467,
-0.12441610544919968,
-0.05349455401301384,
0.013372660614550114,
-0.031795140355825424,
-0.015501872636377811,
0.22561302781105042,
0.12911583483219147,
0.16527102887630463,
0.43206658959388733,
-0.17591580748558044,
0.2170916348695755,
0.25669369101524353,
0.22209066152572632,
0.049852002412080765,
0.08869271725416183,
-0.29248782992362976,
-0.2623611092567444,
0.19293278455734253,
0.12362910062074661,
-0.01433312427252531,
-0.07342210412025452,
-0.017405401915311813,
-0.23493754863739014,
0.007941027171909809,
-0.21940098702907562,
-0.3230406641960144,
0.17344540357589722,
0.22210395336151123,
0.3988911211490631,
-0.05379203334450722,
-0.4686819314956665,
0.51730877161026,
0.045780494809150696,
0.15976187586784363,
-0.8009341955184937,
0.16254213452339172,
0.2433849424123764,
-0.02656484767794609,
0.07284999638795853,
0.19858267903327942,
-0.09027278423309326,
-0.363982617855072,
0.3573993146419525,
0.2823089361190796,
-0.17996132373809814,
0.1475440114736557,
0.19065774977207184,
0.4468781650066376,
0.20493251085281372,
0.025963550433516502,
-0.019239027053117752,
-0.3458399176597595,
0.2969486713409424,
-0.0436752550303936,
0.0461217537522316,
0.47647908329963684,
-0.16721048951148987,
0.3203335404396057,
0.25743454694747925,
-0.04819241538643837,
0.0035502256359905005,
-0.040269818156957626,
-0.5831555724143982,
0.12419102340936661,
0.11089854687452316,
0.01700707897543907,
0.46718478202819824,
-0.10747063159942627,
-0.28278809785842896,
-0.07363339513540268,
0.3593039810657501,
-0.104411281645298,
-0.03667513281106949,
0.15070171654224396,
-0.18475283682346344,
-0.1070031225681305,
0.1077762097120285,
-0.07392819970846176,
0.24777953326702118,
0.006855808198451996,
0.24358689785003662,
0.04064830020070076,
0.17173178493976593,
0.02141396701335907,
0.06210232898592949,
0.15533018112182617,
0.19259554147720337,
-0.03652077913284302,
0.07504506409168243,
0.127470925450325,
-0.15545274317264557,
-0.35187700390815735,
-0.1105528250336647,
0.057045966386795044,
-0.1778412163257599,
0.3865458369255066,
-0.23910734057426453,
-0.256667822599411,
-0.3890226185321808,
0.1047528013586998,
-0.05652559921145439,
0.003964898642152548,
-0.22414766252040863,
-0.07421144843101501,
0.30995213985443115,
0.05570007488131523,
0.11411898583173752,
0.4600074887275696,
0.2347169667482376,
0.088056281208992,
-0.1795247495174408,
-0.06208452954888344,
0.15436901152133942,
0.12188639491796494,
0.18599876761436462,
-0.134381964802742,
0.5079184770584106,
-0.0053069107234478,
-0.0006819603149779141,
-0.3153587281703949,
-0.28900572657585144,
0.3099220097064972,
-0.1156778633594513,
0.23226261138916016,
0.18177913129329681,
-0.060330796986818314,
-0.061484333127737045,
-0.13261330127716064,
-0.046730902045965195,
-0.11584179103374481,
-0.09542336314916611,
-0.04021342098712921,
-0.04461568221449852,
0.2140876054763794,
0.10735063254833221,
-0.23053649067878723,
-0.27173200249671936,
-0.21170051395893097,
0.720701277256012,
0.13710427284240723,
0.2246389389038086,
0.19080330431461334,
-0.1179901584982872,
0.3346853256225586,
-0.19433553516864777,
0.32526978850364685,
-0.06252032518386841,
-0.4787776470184326,
0.3021923303604126,
-0.30263587832450867,
-0.18478834629058838,
-0.10383526980876923,
-0.1253804713487625,
0.624744713306427,
0.041988033801317215,
-0.3094745874404907,
-0.22599975764751434,
-0.05416600778698921,
0.053692322224378586,
0.10947222262620926,
0.2407764196395874,
0.31351497769355774,
-0.16269594430923462,
-0.03293008729815483,
0.03712912276387215,
0.010128662921488285,
0.04262436181306839,
-0.04738394543528557,
0.0893518328666687,
0.34454041719436646,
0.5481715798377991,
0.2190329134464264,
0.5223553776741028,
0.5356537103652954,
0.013891875743865967,
0.14005357027053833,
-0.09835150092840195,
-0.09804262220859528,
-0.0277523472905159,
-0.4531847834587097,
0.1973806768655777,
-0.3463818430900574,
-0.2529503405094147,
0.15704132616519928,
-0.09511778503656387,
-0.06564992666244507,
-0.21821574866771698,
0.19415318965911865,
-0.23583653569221497,
-0.1959584504365921,
-0.1057221069931984,
0.0122242271900177,
0.22265852987766266,
-0.219030499458313,
-0.10039975494146347,
0.05212438106536865,
0.1372748464345932,
0.0047712381929159164,
0.20267200469970703,
0.18844644725322723,
0.05634964257478714,
-0.5617638826370239,
-0.005713147111237049,
-0.48966237902641296,
0.10851813107728958,
-0.03633307293057442,
0.007099112030118704,
0.23396866023540497,
-0.22419624030590057,
0.126860111951828,
-0.21348319947719574,
0.5830466747283936,
0.3160964548587799,
-0.45662859082221985,
-0.020244339480996132,
-0.5475602149963379,
-0.04746353253722191,
0.28057244420051575,
-0.29532960057258606,
0.25130918622016907,
0.3468482792377472,
-0.02951470948755741,
-0.45799899101257324,
-0.3302731215953827,
0.13555969297885895,
0.02094052918255329,
-0.0461244098842144,
-0.13471604883670807,
0.11148631572723389,
-0.1327066570520401,
-0.23984500765800476,
0.032248880714178085,
-0.0017582470318302512,
0.18184241652488708,
-0.07063590735197067,
0.03699742257595062,
-0.23859348893165588,
-0.12152055650949478,
0.24132603406906128,
-0.053145136684179306,
0.10677182674407959,
-0.021764669567346573,
0.22095349431037903,
0.34498241543769836,
0.1826757937669754,
0.19491364061832428,
0.5341265797615051,
-0.04011692851781845,
-0.06373141705989838,
0.24196213483810425,
0.10996166616678238,
0.34337949752807617,
0.2787802517414093,
-0.11879155784845352,
0.15429018437862396,
-0.19699914753437042,
0.13716652989387512,
-0.4949759840965271,
-0.06500925123691559,
0.3207851052284241,
0.02146616019308567,
-0.3879268765449524,
-0.5668644905090332,
0.3979650139808655,
0.09453538805246353,
-0.02979247458279133,
-0.11148227006196976,
0.17853593826293945,
-0.18912789225578308,
-0.11387483030557632,
-0.008327769115567207,
0.8772635459899902,
0.0319274477660656,
0.1329399198293686,
0.23817986249923706,
0.28413811326026917,
0.6234855651855469,
-0.028006859123706818,
0.01782834343612194,
-0.37469208240509033,
-0.2490861862897873,
-0.1163337379693985,
-0.12356038391590118,
0.289508581161499,
0.2170463502407074,
-0.32029739022254944,
0.5073505640029907,
0.2475793957710266,
-0.12270766496658325,
-0.16061510145664215,
0.21311253309249878,
-0.2810665965080261,
-0.23577837646007538,
-0.5983777046203613,
0.14584127068519592,
0.16003753244876862,
0.2836301624774933,
-0.1796882450580597,
-0.13908666372299194,
0.4076879620552063,
-0.001784075633622706,
-0.14866121113300323,
-0.23493176698684692,
-0.24777817726135254,
-0.10419860482215881,
0.22419871389865875,
-0.419697105884552,
0.2544492483139038,
0.22645407915115356,
0.27702605724334717,
0.033396098762750626,
-0.22227154672145844,
-0.15691377222537994,
-0.18303902447223663,
0.002903464948758483,
-0.005330797750502825,
0.05569194257259369,
0.6071686744689941,
0.05039383843541145,
0.15158340334892273,
0.2582308351993561,
0.08908171206712723,
0.05716590955853462,
-0.07743655890226364,
-0.01981440559029579,
-0.10269910842180252,
-0.3565376102924347,
0.006769763305783272,
0.3971949517726898,
0.009059243835508823,
-0.0701591894030571,
0.13328230381011963,
0.35461142659187317,
-0.1463983952999115,
0.23654434084892273,
0.04349210485816002,
-0.14037416875362396,
-0.19124820828437805,
0.4071800410747528,
-0.11810348182916641,
-0.1983421891927719,
0.4554195702075958,
0.16617605090141296,
-0.22873549163341522,
-0.20777058601379395,
0.11402145028114319,
0.3227916359901428,
-0.41848665475845337,
-0.06398209184408188,
-0.02012416534125805,
0.2953796088695526,
0.09265869110822678,
0.20440447330474854,
0.15478380024433136,
-0.16196388006210327,
-0.06414470821619034,
-0.2246103137731552,
-0.1052449494600296,
0.3154665231704712,
0.22701984643936157,
0.25502195954322815,
-0.024013107642531395,
-0.1522892415523529,
0.03297879174351692,
0.2615966796875,
-0.35846078395843506,
-0.010518076829612255,
-0.1733996421098709,
0.06650309264659882,
0.3252340853214264,
-0.09544209390878677,
0.12326012551784515,
0.27106860280036926,
0.10616748780012131,
0.2823156416416168,
-0.32064640522003174,
-0.23392191529273987,
-0.15266916155815125,
0.08691233396530151,
0.016979821026325226,
-0.06334546953439713,
0.10549212247133255,
0.05579093471169472,
-0.13186843693256378,
-0.21053223311901093,
0.3006531894207001,
0.009110459126532078,
0.29768916964530945,
0.2314932942390442,
0.39647209644317627,
-0.1185307502746582,
-0.15763022005558014,
0.060056086629629135,
0.18463535606861115,
-0.04666666314005852,
0.15685048699378967,
0.28840234875679016,
-0.30151376128196716,
-0.22414502501487732,
-0.05600449815392494,
0.39234688878059387,
0.40733787417411804,
-0.23391176760196686,
0.3088851571083069,
-0.2933986186981201,
-0.010380597785115242,
0.13037358224391937,
0.5188380479812622,
0.5250543355941772,
-0.12416841834783554,
0.05553746223449707,
0.28792187571525574,
0.20925985276699066,
-0.07275648415088654,
0.11127611994743347,
-0.24979382753372192,
-0.09849540889263153,
0.12969784438610077,
0.3832820653915405,
-0.08506327867507935,
0.16698697209358215,
0.21327728033065796,
-0.11507563292980194,
0.19876138865947723,
-0.21426822245121002,
0.01888556219637394,
0.07977818697690964,
0.03006001189351082,
-0.07991429418325424,
0.3738005757331848,
0.42285069823265076,
0.2139606773853302,
0.26338592171669006,
-0.2759992182254791,
0.39732393622398376,
-0.22645536065101624,
0.24187110364437103,
0.17152394354343414,
-0.18573805689811707,
-0.13896213471889496,
0.2813614308834076,
0.15320071578025818,
-0.004224969539791346,
-0.24049587547779083,
0.5388869643211365,
0.16789767146110535,
-0.054351527243852615,
0.00977904349565506,
0.4228827953338623,
0.05031375214457512,
-0.35812342166900635,
-0.07114046812057495,
-0.24302160739898682,
-0.22503745555877686,
-0.12382038682699203,
-0.26292601227760315,
-0.23531289398670197,
0.2613810896873474,
-0.05661085993051529,
0.36446255445480347,
-0.5372337698936462,
0.003896265057846904,
-0.021998023614287376,
0.11325976997613907,
-0.3350176215171814,
0.17127038538455963,
-0.051197052001953125,
0.08642967790365219,
-0.09589024633169174,
0.33890846371650696,
0.25420811772346497,
0.11174681782722473,
0.0073343487456440926,
0.03471437469124794,
-0.23525495827198029,
-0.10129589587450027,
-0.006268450990319252,
0.12749743461608887,
-0.25487685203552246,
-0.139112651348114,
0.5069287419319153,
0.05641983076930046,
-0.08765052258968353,
0.25284743309020996,
-0.07872423529624939,
0.009690103121101856,
-0.9196888208389282,
0.21161893010139465,
-0.08651778846979141,
0.06495587527751923,
-0.11833885312080383,
0.09581940621137619,
-0.5051102638244629,
0.08177235722541809,
0.1601700782775879,
-0.49401232600212097,
0.09813790768384933,
-0.0870596244931221,
0.10442769527435303,
-0.19232873618602753,
0.48987117409706116,
0.33119744062423706,
0.3033384382724762,
-0.03293147310614586,
-0.1535872370004654,
-0.32438430190086365,
-0.14240139722824097,
0.17046628892421722,
0.03468601033091545,
-0.044909585267305374,
0.37713873386383057,
0.056484635919332504,
0.1602361798286438,
-0.2984936833381653,
-0.5570544600486755,
-0.30351391434669495,
0.24983780086040497,
-0.25316280126571655,
-0.12067565321922302,
-0.3716829717159271,
0.24285773932933807,
0.10486941784620285,
0.07821311056613922,
0.14687922596931458,
-0.380556583404541,
-0.028953058645129204,
-0.019232438877224922,
0.2883637845516205,
-0.0651245266199112,
-0.32018348574638367,
0.17729414999485016,
0.13615712523460388,
0.005562321748584509,
-0.12123221904039383,
0.0008984773885458708,
-0.32563307881355286,
-0.3225667178630829,
-0.10998934507369995,
0.37116628885269165,
-0.043134402483701706,
0.24719268083572388,
-0.12252691388130188,
-0.22829514741897583,
-0.02025783434510231,
0.14382167160511017,
0.13439428806304932,
-0.11482884734869003,
-0.0591500848531723,
-0.015218432061374187,
0.06246480718255043,
-0.022819632664322853,
-0.02040090598165989,
0.5253515243530273,
-0.022559627890586853,
0.23984043300151825,
-0.13489437103271484,
-0.27183443307876587,
0.391002357006073,
-0.4392786920070648,
0.039168667048215866,
-0.12116029858589172,
0.10236439853906631,
0.2544710338115692,
-0.40257084369659424,
-0.40008974075317383,
0.11321727931499481,
0.4312734305858612,
0.04535951465368271,
-0.14513744413852692,
0.2790006101131439,
0.28424036502838135,
-0.06816369295120239,
-0.2841488718986511,
0.3456372022628784,
0.10412982106208801,
-0.062475379556417465,
0.18749642372131348,
-0.2553834617137909
] |
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.10601545125246048,
-0.06535844504833221,
-0.07446186989545822,
0.2728957235813141,
0.021202994510531425,
-0.009543677791953087,
0.235049307346344,
0.2607479989528656,
0.01784987561404705,
-0.18112260103225708,
0.2007768154144287,
0.21176409721374512,
-0.387565553188324,
0.19634748995304108,
0.09090501070022583,
0.009915055707097054,
-0.12219838052988052,
0.01771908439695835,
-0.658470094203949,
-0.13311727344989777,
-0.012551880441606045,
0.10902843624353409,
-0.37339290976524353,
-0.012581197544932365,
-0.057337094098329544,
-0.29974326491355896,
-0.3547762930393219,
-0.09412254393100739,
-0.32273900508880615,
-0.3790438175201416,
0.16800914704799652,
0.3244621753692627,
0.45302820205688477,
0.39902615547180176,
-0.00010454702714923769,
-0.38364607095718384,
0.02715335600078106,
-0.09922703355550766,
-0.2510545253753662,
-0.1770191192626953,
-0.2945176064968109,
-0.2617832124233246,
0.1364850103855133,
-0.474881112575531,
-0.08046281337738037,
-0.058418963104486465,
0.09093289077281952,
-0.3703352212905884,
0.2763310372829437,
0.09610136598348618,
0.27603429555892944,
-0.42484453320503235,
-0.03442315012216568,
-0.0648905411362648,
0.022560052573680878,
0.04966507852077484,
-0.07036901265382767,
-0.04184143245220184,
0.3111676275730133,
0.30592700839042664,
-0.015592292882502079,
-0.031185027211904526,
0.12187755852937698,
-0.19812555611133575,
0.3405269980430603,
-0.07729406654834747,
-0.08791493624448776,
-0.33617496490478516,
0.002359573496505618,
0.08403681218624115,
1.1303720474243164,
-0.22628213465213776,
-0.30619457364082336,
0.023437727242708206,
-0.015231206081807613,
-0.40285003185272217,
-0.16408538818359375,
0.29465752840042114,
0.1456300914287567,
0.1291961818933487,
-0.2035064548254013,
-0.39692339301109314,
-0.23630884289741516,
-0.10071305185556412,
-0.1262231022119522,
-0.04891607165336609,
-0.1681758016347885,
0.0840759128332138,
-0.020347798243165016,
-0.288493812084198,
0.15325795114040375,
0.1695317178964615,
0.015281662344932556,
0.2250157594680786,
-0.6152796745300293,
-0.31896793842315674,
0.035966381430625916,
0.38831788301467896,
0.4129839837551117,
0.37023815512657166,
0.0624874010682106,
0.031751640141010284,
0.0029433160088956356,
0.2047528475522995,
0.4332897961139679,
0.011759491637349129,
0.07831019908189774,
0.047910794615745544,
0.048820726573467255,
-0.18453502655029297,
-0.20502641797065735,
-0.0807032361626625,
-0.21661178767681122,
-0.15978999435901642,
0.10615082830190659,
-0.1645495891571045,
-0.15675178170204163,
-0.1790117472410202,
-0.0017532709753140807,
0.00009369644976686686,
-0.24218767881393433,
-0.13766756653785706,
0.1298842430114746,
0.1093621626496315,
-0.09025006741285324,
-0.02747495286166668,
-0.1273268312215805,
0.1498539298772812,
0.11428102105855942,
-0.020785804837942123,
-0.0622127428650856,
0.4749678075313568,
-0.29800286889076233,
0.08472571521997452,
-0.06866694241762161,
-0.392518550157547,
0.07345540076494217,
0.053089872002601624,
-0.17717674374580383,
-0.07551274448633194,
0.08491546660661697,
-0.23222176730632782,
0.17440348863601685,
-0.10724474489688873,
-0.16824232041835785,
0.11847832798957825,
-0.19148580729961395,
-0.16521495580673218,
-0.41689738631248474,
-0.15302114188671112,
-0.33785393834114075,
-0.11868422478437424,
-0.12203797698020935,
0.15120536088943481,
-0.17209351062774658,
-0.19005578756332397,
0.1995154619216919,
0.486264705657959,
-0.018718045204877853,
-0.17018091678619385,
0.04553849622607231,
-0.11414841562509537,
-0.294223815202713,
-0.12011954188346863,
-0.027304617688059807,
0.4135946035385132,
-0.7152239680290222,
0.1127028614282608,
0.017728416249155998,
0.19900420308113098,
0.04400517791509628,
0.32048773765563965,
-0.14332666993141174,
0.2875400483608246,
-0.17358209192752838,
0.08322639018297195,
0.46890729665756226,
0.026182014495134354,
-0.22161726653575897,
0.19950143992900848,
-0.10154005140066147,
-0.16794100403785706,
0.17961104214191437,
0.08204936236143112,
0.27481895685195923,
-0.05866517871618271,
-0.11352535337209702,
0.01000436395406723,
0.0261892881244421,
-0.21521690487861633,
-0.12326832860708237,
-0.03967960178852081,
0.15597742795944214,
0.014443818479776382,
0.07553745806217194,
0.2684824764728546,
0.19189761579036713,
0.27999284863471985,
0.20796382427215576,
-0.15325616300106049,
0.2448381930589676,
0.07872084528207779,
0.3107307553291321,
-0.00928048137575388,
0.10979580134153366,
-0.18227645754814148,
-0.09916792064905167,
0.19893504679203033,
0.3425957262516022,
-0.03362254798412323,
0.09734594076871872,
0.009333650581538677,
-0.12030008435249329,
-0.03387926146388054,
-0.13235066831111908,
-0.185394749045372,
0.19363562762737274,
-0.0194622203707695,
0.32570570707321167,
-0.12156663089990616,
-0.36124685406684875,
0.26485157012939453,
-0.027810951694846153,
-0.07165496796369553,
-0.6356138586997986,
0.11847805231809616,
0.23721446096897125,
-0.06313855946063995,
0.11881464719772339,
0.17317064106464386,
-0.16993992030620575,
-0.27273279428482056,
0.30014845728874207,
0.33591610193252563,
-0.03599528968334198,
-0.07349053770303726,
0.2832368314266205,
0.5574193000793457,
0.11778194457292557,
0.0026026801206171513,
0.21967056393623352,
-0.4144700765609741,
0.29169395565986633,
0.04191984236240387,
-0.021846948191523552,
0.44374123215675354,
-0.1784735769033432,
0.10908889770507812,
0.1369905322790146,
-0.026168763637542725,
0.07415769249200821,
0.016071904450654984,
-0.5682399868965149,
0.08494234085083008,
-0.258365273475647,
0.14111122488975525,
0.25310760736465454,
-0.09213310480117798,
-0.389350026845932,
-0.11870076507329941,
0.41359075903892517,
0.024784358218312263,
0.07983867079019547,
0.17740783095359802,
-0.11160745471715927,
-0.10650460422039032,
-0.02960984967648983,
-0.007532504387199879,
0.3252999186515808,
-0.03908969461917877,
0.18857772648334503,
-0.01951301470398903,
0.09850743412971497,
0.07135365158319473,
0.12690748274326324,
0.07375486940145493,
0.17535610496997833,
-0.10583239048719406,
0.0945659652352333,
0.08359955996274948,
-0.18050232529640198,
-0.293678879737854,
0.05059642344713211,
0.2180808186531067,
-0.05579012632369995,
0.30495238304138184,
-0.4185895621776581,
-0.11848392337560654,
-0.3756101131439209,
0.2154708206653595,
0.26258373260498047,
0.08788392692804337,
-0.04282785579562187,
-0.1942445933818817,
0.4051317274570465,
0.01207625400274992,
-0.07706709951162338,
0.5587698817253113,
0.23482568562030792,
0.06406795233488083,
-0.06636462360620499,
-0.11189641058444977,
0.03841620683670044,
0.15780560672283173,
0.17351283133029938,
-0.08936047554016113,
0.5077775120735168,
0.04877388849854469,
0.24023275077342987,
-0.40600383281707764,
-0.30964556336402893,
0.3122245669364929,
-0.011063707061111927,
0.24632501602172852,
0.253936231136322,
-0.17174740135669708,
-0.056187503039836884,
-0.17731617391109467,
-0.033527981489896774,
-0.22862909734249115,
0.08619853854179382,
0.011395151726901531,
-0.045672569423913956,
0.07880470156669617,
0.09785555303096771,
-0.38360580801963806,
-0.16609680652618408,
-0.12796159088611603,
0.42350783944129944,
0.2191939651966095,
0.3020017445087433,
-0.04760041460394859,
-0.05798891559243202,
0.2834452688694,
-0.03122674860060215,
0.19590047001838684,
-0.12841163575649261,
-0.43885836005210876,
0.37639573216438293,
-0.29196104407310486,
-0.1978156715631485,
0.060493018478155136,
-0.10550908744335175,
0.6279433965682983,
0.06797666847705841,
-0.2470657378435135,
0.10479964315891266,
0.1767355501651764,
0.13711008429527283,
0.2523685693740845,
0.13000723719596863,
0.26656192541122437,
-0.15981647372245789,
-0.04307950660586357,
0.03758909925818443,
-0.10771466046571732,
0.22469447553157806,
0.2038496881723404,
0.22650974988937378,
0.3720070421695709,
0.6611019968986511,
0.03684088587760925,
0.4294276833534241,
0.3031006157398224,
-0.20277491211891174,
0.22965919971466064,
-0.05357612296938896,
-0.23705701529979706,
-0.04872790724039078,
-0.20131252706050873,
0.20201848447322845,
-0.35565540194511414,
-0.4386451244354248,
0.2825659215450287,
-0.11134105175733566,
-0.39144930243492126,
-0.23498569428920746,
0.4713561236858368,
-0.30608662962913513,
-0.06371204555034637,
-0.08919801563024521,
-0.29128167033195496,
0.10656080394983292,
-0.13910335302352905,
-0.11376181244850159,
0.09091325104236603,
0.05347035080194473,
-0.0448535792529583,
0.09334062039852142,
0.1892966628074646,
0.012201988138258457,
-0.5341048836708069,
-0.1590789556503296,
-0.2637723982334137,
0.03190815448760986,
-0.314948171377182,
0.12588998675346375,
0.3008852005004883,
-0.21306413412094116,
0.2733725905418396,
-0.21548597514629364,
0.3534603416919708,
0.03851613774895668,
-0.5208890438079834,
0.022639356553554535,
-0.39924436807632446,
0.04779299348592758,
0.014536687172949314,
-0.2505377531051636,
0.29938989877700806,
0.3013770580291748,
-0.17598575353622437,
-0.4163495600223541,
-0.25571855902671814,
0.13833436369895935,
-0.09871995449066162,
-0.11729947477579117,
-0.23265552520751953,
0.18054470419883728,
-0.08965684473514557,
-0.08273845911026001,
-0.014718551188707352,
-0.10374661535024643,
0.03144046291708946,
-0.1423356682062149,
-0.13966655731201172,
-0.22433291375637054,
-0.0871971994638443,
0.16173191368579865,
-0.034200724214315414,
0.061901070177555084,
0.040625639259815216,
0.29353711009025574,
0.29342401027679443,
0.2970144748687744,
0.17574220895767212,
0.3449496030807495,
0.014671617187559605,
0.3328712284564972,
0.5411555171012878,
-0.08699138462543488,
0.408732146024704,
0.09271114319562912,
-0.1379282921552658,
0.1165255606174469,
-0.4787018895149231,
-0.052270058542490005,
-0.43713459372520447,
-0.2746167778968811,
0.4635879397392273,
-0.11997362971305847,
-0.3364786207675934,
-0.6614850163459778,
0.4097929894924164,
0.07749483734369278,
-0.106613390147686,
-0.13066387176513672,
-0.08999750763177872,
-0.19154714047908783,
-0.0262279212474823,
0.3491605818271637,
0.759057343006134,
-0.13074751198291779,
-0.04480217024683952,
0.04509638994932175,
0.29707205295562744,
0.6364306807518005,
-0.2961924970149994,
0.023191969841718674,
-0.6081207990646362,
-0.1643240600824356,
-0.13512642681598663,
-0.09632428735494614,
0.2675541341304779,
0.335067480802536,
-0.4736579954624176,
0.4287880063056946,
0.12721967697143555,
-0.1528363823890686,
-0.10922437906265259,
0.3182108402252197,
-0.10119669139385223,
-0.11165294051170349,
-0.2465977966785431,
0.17435511946678162,
0.0811898410320282,
0.05336419492959976,
-0.22658418118953705,
-0.023798156529664993,
0.30061328411102295,
0.14771346747875214,
-0.14135658740997314,
-0.23023809492588043,
0.11327604949474335,
-0.013439723290503025,
0.16371266543865204,
-0.3163624405860901,
0.4583554267883301,
0.2964684069156647,
0.10530927777290344,
0.115162193775177,
-0.2490951269865036,
-0.07751782983541489,
0.016733355820178986,
0.09953075647354126,
0.19778186082839966,
0.09733730554580688,
0.5548220872879028,
0.02854960598051548,
0.12496418505907059,
0.35973280668258667,
0.0011497356463223696,
0.004922061692923307,
-0.16267383098602295,
-0.01789574883878231,
0.14859376847743988,
-0.30258262157440186,
-0.13483278453350067,
0.3531951308250427,
0.045609306544065475,
-0.044897761195898056,
0.17353051900863647,
0.328571617603302,
-0.07903123646974564,
0.4723215401172638,
0.057369545102119446,
-0.12329237163066864,
-0.1456579566001892,
0.29694727063179016,
0.055435117334127426,
-0.0328129306435585,
0.32973459362983704,
0.08981474488973618,
-0.13877034187316895,
-0.2093992382287979,
0.21700364351272583,
0.21617679297924042,
-0.20254714787006378,
-0.17394503951072693,
-0.09044329077005386,
0.2153177559375763,
0.37130430340766907,
0.12877751886844635,
0.06770094484090805,
-0.14506109058856964,
-0.2804512679576874,
-0.17088447511196136,
-0.15627454221248627,
0.12912501394748688,
0.16566933691501617,
0.12167776376008987,
-0.11575999110937119,
-0.3182612955570221,
0.044649653136730194,
0.2772839069366455,
-0.37662291526794434,
0.024658411741256714,
-0.1277284175157547,
0.20633560419082642,
0.07930870354175568,
0.07118042558431625,
-0.27238139510154724,
0.3149992823600769,
0.07939457148313522,
0.1331259161233902,
-0.22444255650043488,
-0.18948516249656677,
-0.07070588320493698,
0.06896790117025375,
0.049847353249788284,
0.036800794303417206,
0.12048107385635376,
-0.17456722259521484,
-0.3809266686439514,
-0.06270486116409302,
0.12928777933120728,
-0.08883097767829895,
0.11951000243425369,
0.2746081054210663,
0.4228077530860901,
-0.30861660838127136,
-0.1767040640115738,
-0.0247146338224411,
0.11117690056562424,
-0.018024345859885216,
0.1713852733373642,
0.38802653551101685,
-0.15271444618701935,
-0.31175103783607483,
-0.18229953944683075,
0.4856966435909271,
0.13042913377285004,
-0.19209663569927216,
0.5589891672134399,
-0.22031620144844055,
0.254081130027771,
0.22540956735610962,
0.37428995966911316,
0.70632404088974,
-0.1053047925233841,
-0.15006738901138306,
0.2866019308567047,
0.23897096514701843,
-0.05598900839686394,
0.010843089781701565,
-0.33349382877349854,
0.044176723808050156,
-0.011842881329357624,
0.34766894578933716,
0.05353756994009018,
0.031818125396966934,
-0.027301760390400887,
-0.2289728969335556,
0.13749225437641144,
-0.2728148400783539,
0.026736540719866753,
0.3164139688014984,
-0.027272218838334084,
-0.08460091054439545,
0.45059117674827576,
0.2930503785610199,
0.17732860147953033,
0.42947399616241455,
0.044247981160879135,
0.40792733430862427,
0.08126599341630936,
0.20504111051559448,
0.08391205966472626,
-0.15202200412750244,
-0.015287662856280804,
0.2997794449329376,
0.2001311033964157,
-0.0682498961687088,
-0.17552199959754944,
0.40819719433784485,
0.33992883563041687,
-0.00299667427316308,
-0.22763775289058685,
0.2862154543399811,
-0.04473034664988518,
-0.30453062057495117,
-0.28244560956954956,
-0.41276246309280396,
-0.2404184341430664,
0.007038639392703772,
-0.43022406101226807,
-0.01065767090767622,
0.15582029521465302,
-0.03507502004504204,
0.3782496452331543,
-0.43007779121398926,
0.299527645111084,
-0.16360825300216675,
0.030578993260860443,
-0.35161909461021423,
0.21297359466552734,
-0.15838877856731415,
0.04273233562707901,
0.12240561097860336,
0.19947774708271027,
0.0034865152556449175,
0.42587196826934814,
-0.1050926148891449,
-0.14950597286224365,
-0.24006807804107666,
-0.12113165855407715,
0.051793258637189865,
0.20022320747375488,
-0.06452937424182892,
-0.2436397224664688,
0.5186993479728699,
0.038319025188684464,
-0.05641813948750496,
0.36668339371681213,
0.06175911799073219,
0.053837694227695465,
-0.8294045329093933,
0.007473120000213385,
0.22308720648288727,
-0.03085283562541008,
0.09675298631191254,
0.08525275439023972,
-0.296781450510025,
-0.08646603673696518,
0.14516191184520721,
-0.4347527325153351,
0.01692935638129711,
-0.1616189032793045,
0.11824175715446472,
-0.2994232177734375,
0.5220739245414734,
0.1555449217557907,
0.13693830370903015,
-0.00874917209148407,
-0.27536851167678833,
-0.29505249857902527,
-0.07296372950077057,
0.13845546543598175,
0.0468280091881752,
0.019116759300231934,
0.4880799949169159,
0.1408645510673523,
0.18540063500404358,
-0.41629093885421753,
-0.4003133475780487,
-0.48762232065200806,
0.42274847626686096,
-0.20969048142433167,
-0.07716308534145355,
-0.44759416580200195,
0.2959063947200775,
-0.09304224699735641,
0.11260630190372467,
0.05681273341178894,
-0.3815957009792328,
0.012830201536417007,
-0.007427287753671408,
0.12379211187362671,
0.0027807168662548065,
-0.3025191128253937,
0.39096811413764954,
0.003350660437718034,
-0.0014866264536976814,
-0.05799074470996857,
0.16999563574790955,
-0.2926510274410248,
-0.21347466111183167,
-0.09510571509599686,
0.37462157011032104,
0.029517967253923416,
0.14590907096862793,
0.07567289471626282,
0.17625515162944794,
0.05590296909213066,
0.010022319853305817,
0.01128544844686985,
-0.05173738673329353,
-0.2107519507408142,
-0.17408466339111328,
-0.0035119575913995504,
0.06194409355521202,
-0.005360882729291916,
0.5795056223869324,
0.016058126464486122,
0.19839337468147278,
-0.17229849100112915,
-0.06280546635389328,
0.2013782113790512,
-0.17210599780082703,
-0.05508589744567871,
-0.2402302473783493,
0.13792526721954346,
0.20165270566940308,
-0.2732510268688202,
-0.13370580971240997,
-0.01829082891345024,
0.4118085503578186,
0.026430796831846237,
-0.08246417343616486,
0.14402848482131958,
0.36106109619140625,
0.0590815395116806,
-0.288360595703125,
0.28521856665611267,
-0.0256626158952713,
0.0656936913728714,
-0.08448908478021622,
-0.25869178771972656
] |
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.16995862126350403,
-0.17140647768974304,
-0.06893111020326614,
0.2923886775970459,
0.10094963014125824,
-0.08452483266592026,
0.3338168263435364,
0.24669037759304047,
0.17970123887062073,
-0.1265341341495514,
0.06800992041826248,
0.1442488431930542,
-0.378885954618454,
0.4128890931606293,
0.17005953192710876,
-0.031809307634830475,
-0.09198828786611557,
0.011578238569200039,
-0.6868849992752075,
-0.1174982488155365,
0.029025377705693245,
0.14872297644615173,
-0.28457653522491455,
-0.03963948041200638,
-0.09257722645998001,
-0.2904196083545685,
-0.28328895568847656,
0.008811804465949535,
-0.3676557242870331,
-0.3626949191093445,
0.3347044587135315,
0.28956714272499084,
0.49418389797210693,
0.5043625831604004,
-0.00010578401997918263,
-0.2772065997123718,
0.0528092235326767,
-0.13003455102443695,
-0.22467049956321716,
-0.21065741777420044,
-0.24122922122478485,
-0.20516829192638397,
0.1279393434524536,
-0.36852797865867615,
-0.04453129321336746,
-0.08597966283559799,
0.03798588737845421,
-0.3243008852005005,
0.3284459114074707,
0.0755738690495491,
0.25153812766075134,
-0.2350955456495285,
0.040056683123111725,
-0.08844371140003204,
-0.012562890537083149,
0.17450323700904846,
-0.06493798643350601,
0.06314196437597275,
0.2634142339229584,
0.18472227454185486,
-0.10058438777923584,
-0.02012583054602146,
0.1368314027786255,
-0.12017716467380524,
0.3518403470516205,
-0.11171352863311768,
-0.1345442533493042,
-0.350272536277771,
-0.06874262541532516,
0.179523304104805,
1.1247755289077759,
-0.22661995887756348,
-0.33152782917022705,
-0.10519455373287201,
-0.10770450532436371,
-0.3843036890029907,
0.05196986719965935,
0.1613958775997162,
0.1376384049654007,
0.09314832836389542,
-0.21763406693935394,
-0.23206163942813873,
-0.24633917212486267,
-0.09893433004617691,
-0.19772717356681824,
-0.21850579977035522,
-0.3083758056163788,
0.028480134904384613,
0.10639671236276627,
-0.3117009699344635,
-0.005823880899697542,
0.11244495958089828,
0.15068945288658142,
0.28459927439689636,
-0.6823301315307617,
-0.3560844957828522,
-0.016467725858092308,
0.28917133808135986,
0.4668385684490204,
0.3724457025527954,
0.09033844619989395,
-0.04607095569372177,
-0.14296312630176544,
0.13617362082004547,
0.4857330024242401,
0.1536504477262497,
0.09142279624938965,
-0.03318636864423752,
0.054818861186504364,
-0.0040666223503649235,
0.011173089034855366,
-0.09943220764398575,
-0.20332640409469604,
-0.17219819128513336,
0.045347172766923904,
-0.1871926188468933,
-0.08445320278406143,
-0.2436039298772812,
0.012318998575210571,
-0.05720863118767738,
-0.06947585940361023,
-0.1390119194984436,
0.13489758968353271,
0.15472061932086945,
-0.05900738760828972,
0.12314664572477341,
-0.11200814694166183,
0.0874820426106453,
0.018410181626677513,
0.001346195233054459,
-0.06286221742630005,
0.3680284917354584,
-0.39975035190582275,
0.1252012699842453,
-0.014913826249539852,
-0.4068543612957001,
0.04811035469174385,
0.12765634059906006,
-0.19413624703884125,
0.017159225419163704,
-0.043065790086984634,
-0.22388027608394623,
0.10483386367559433,
-0.07255721092224121,
-0.20107302069664001,
0.23336400091648102,
-0.21675921976566315,
0.024723488837480545,
-0.390779048204422,
-0.14006885886192322,
-0.3842138946056366,
-0.09070694446563721,
-0.10056145489215851,
0.15383154153823853,
-0.2043939232826233,
-0.23097370564937592,
-0.14315921068191528,
0.36706823110580444,
-0.06544090807437897,
-0.11741720139980316,
0.07045096158981323,
-0.10159007459878922,
-0.21471953392028809,
-0.10857515782117844,
0.013670934364199638,
0.4157605767250061,
-0.7381814122200012,
-0.07446750998497009,
0.04109484329819679,
-0.016411757096648216,
0.16205275058746338,
0.41422444581985474,
-0.14771497249603271,
0.2711120545864105,
-0.24538134038448334,
0.14807534217834473,
0.37421363592147827,
0.0069465176202356815,
-0.26980870962142944,
0.2698870003223419,
-0.06033458560705185,
0.005440680775791407,
0.11928740888834,
0.007657219655811787,
0.232514888048172,
-0.08254037797451019,
-0.16766668856143951,
0.14853622019290924,
0.0803862139582634,
-0.13969990611076355,
-0.15221944451332092,
-0.10512346029281616,
0.16157370805740356,
0.059126049280166626,
0.07205581665039062,
0.2700529396533966,
0.15096570551395416,
0.2775503993034363,
0.2225804626941681,
-0.17028570175170898,
0.2985442578792572,
0.09768558293581009,
0.29496321082115173,
0.054857030510902405,
0.07045412808656693,
-0.26964011788368225,
-0.22629576921463013,
0.22093667089939117,
0.14457975327968597,
-0.0016946644755080342,
0.190355584025383,
0.0931607335805893,
-0.16111773252487183,
-0.08796519786119461,
-0.20352664589881897,
-0.17197047173976898,
0.17661061882972717,
0.09916283935308456,
0.28491249680519104,
-0.0842202752828598,
-0.42421314120292664,
0.3340342938899994,
-0.12328696995973587,
-0.0024320438969880342,
-0.7031781077384949,
0.16372676193714142,
0.3130321204662323,
-0.08723096549510956,
0.08734800666570663,
0.10986962914466858,
-0.14716386795043945,
-0.2829943895339966,
0.23504804074764252,
0.3226819336414337,
-0.0962362214922905,
0.12962378561496735,
0.2510296404361725,
0.48814523220062256,
0.1757107526063919,
0.023346297442913055,
0.2103523313999176,
-0.43882355093955994,
0.20861227810382843,
-0.057827968150377274,
0.08173026144504547,
0.416271835565567,
-0.24191252887248993,
0.11879467964172363,
0.11143233627080917,
-0.028915004804730415,
0.00980339664965868,
-0.022269925102591515,
-0.4933255612850189,
0.2212379276752472,
-0.06135023757815361,
0.06180703267455101,
0.2879595458507538,
-0.09016042947769165,
-0.25798681378364563,
-0.18663202226161957,
0.41874802112579346,
-0.06326478719711304,
0.0046471115201711655,
0.23106418550014496,
-0.20821431279182434,
-0.09754128754138947,
0.06692048162221909,
-0.03331899270415306,
0.3083374500274658,
-0.04665486887097359,
0.26228830218315125,
-0.057266443967819214,
0.12782002985477448,
0.08573340624570847,
0.12891657650470734,
0.016978275030851364,
0.2707151174545288,
0.010503213852643967,
0.05801603943109512,
0.07790358364582062,
-0.273821622133255,
-0.21946896612644196,
-0.010960941202938557,
0.13132183253765106,
-0.08744212239980698,
0.18339329957962036,
-0.40292948484420776,
-0.10495512187480927,
-0.3309216797351837,
0.12385082244873047,
0.038721486926078796,
0.06420847773551941,
-0.11848018318414688,
-0.09658345580101013,
0.40582501888275146,
0.06569160521030426,
-0.02297195978462696,
0.5276078581809998,
0.2944498360157013,
0.013787844218313694,
-0.16944994032382965,
0.035791873931884766,
0.043292269110679626,
0.17963437736034393,
0.23747217655181885,
-0.2035423219203949,
0.46843263506889343,
0.026202796027064323,
0.07831462472677231,
-0.41204556822776794,
-0.2755691707134247,
0.3278043568134308,
-0.10764362663030624,
0.25155287981033325,
0.3064384162425995,
0.00447314465418458,
-0.020618444308638573,
-0.04632459953427315,
0.034168291836977005,
-0.3438085913658142,
-0.005020749289542437,
-0.026404699310660362,
-0.06407403200864792,
0.24539814889431,
0.08821392059326172,
-0.40561747550964355,
-0.22200840711593628,
-0.20969685912132263,
0.5581910014152527,
0.21814297139644623,
0.22454625368118286,
0.1635548323392868,
-0.06326789408922195,
0.3151683509349823,
-0.0617825947701931,
0.21078842878341675,
-0.2140311598777771,
-0.5315762162208557,
0.3878295421600342,
-0.2561229169368744,
-0.20055319368839264,
0.040656208992004395,
-0.004741083364933729,
0.571643054485321,
0.02406422607600689,
-0.3571442663669586,
0.016693348065018654,
0.04199398308992386,
0.11194856464862823,
0.18735098838806152,
0.24018271267414093,
0.26888734102249146,
-0.2422916293144226,
-0.02873866818845272,
0.05969277769327164,
-0.09243191033601761,
0.1589222103357315,
0.16217143833637238,
0.31969282031059265,
0.43301013112068176,
0.5967089533805847,
0.041142500936985016,
0.5284717679023743,
0.3443599045276642,
-0.17351895570755005,
0.24824738502502441,
-0.032503414899110794,
-0.21441960334777832,
-0.11311287432909012,
-0.26723527908325195,
0.29507559537887573,
-0.34566280245780945,
-0.27376583218574524,
0.1929454207420349,
-0.13021086156368256,
-0.30754420161247253,
-0.19886073470115662,
0.3118445575237274,
-0.19824807345867157,
-0.02392476610839367,
0.04832939803600311,
-0.10837239027023315,
0.1205376610159874,
-0.24764390289783478,
-0.19207847118377686,
0.007959678769111633,
0.012811006978154182,
0.0604691319167614,
0.1921095997095108,
0.24555185437202454,
0.06089741364121437,
-0.609967827796936,
0.05823953077197075,
-0.39108240604400635,
0.0739470049738884,
-0.28089576959609985,
0.021932095289230347,
0.16500593721866608,
-0.2415870577096939,
0.22209614515304565,
-0.10121887922286987,
0.5630612373352051,
0.10984397679567337,
-0.5177431702613831,
-0.03600513935089111,
-0.4384687542915344,
0.08713682740926743,
0.032222211360931396,
-0.2800097167491913,
0.2983270287513733,
0.25034448504447937,
-0.12879925966262817,
-0.4448178708553314,
-0.2425338178873062,
0.13339734077453613,
-0.07080259919166565,
-0.045437201857566833,
-0.3161964416503906,
0.16280196607112885,
-0.037181541323661804,
-0.10418818891048431,
0.008777011185884476,
-0.08637548238039017,
0.08073987066745758,
-0.17422810196876526,
-0.15647919476032257,
-0.17781302332878113,
-0.020560219883918762,
0.22387853264808655,
-0.03427109494805336,
0.12132090330123901,
0.04173508286476135,
0.22170381247997284,
0.40376123785972595,
0.31324031949043274,
0.27583715319633484,
0.4043901562690735,
0.010640961118042469,
0.23908177018165588,
0.5203077793121338,
0.0507805161178112,
0.3208160698413849,
0.18479768931865692,
-0.15326543152332306,
0.045321471989154816,
-0.2774812877178192,
0.0296791885048151,
-0.6391441822052002,
-0.2000180184841156,
0.4938613176345825,
-0.05479023978114128,
-0.37912288308143616,
-0.6322646737098694,
0.5206332802772522,
0.11170254647731781,
-0.05003652721643448,
-0.03227007016539574,
0.04096592590212822,
-0.20902486145496368,
-0.1775486320257187,
0.2071642428636551,
0.8239885568618774,
-0.21358272433280945,
-0.043823737651109695,
0.11202121526002884,
0.41501882672309875,
0.6200093030929565,
-0.27530980110168457,
0.0017930978210642934,
-0.4699939489364624,
-0.18573522567749023,
-0.16359300911426544,
-0.12980537116527557,
0.254149466753006,
0.27041831612586975,
-0.3658439815044403,
0.4825980067253113,
0.19027426838874817,
-0.07502051442861557,
-0.1667436808347702,
0.3217439353466034,
-0.19602787494659424,
-0.24296826124191284,
-0.41223573684692383,
0.1731429249048233,
0.052477214485406876,
0.13784463703632355,
-0.17095020413398743,
-0.04851973429322243,
0.3666973412036896,
0.06276361644268036,
-0.10551148653030396,
-0.22992226481437683,
-0.1149456650018692,
-0.13768771290779114,
0.2727746069431305,
-0.25813430547714233,
0.4700641930103302,
0.24154847860336304,
0.0990084558725357,
0.03170048072934151,
-0.25960811972618103,
-0.11584355682134628,
-0.08061567693948746,
0.10892542451620102,
0.12701547145843506,
0.0883718878030777,
0.6001087427139282,
0.013309408910572529,
0.13903073966503143,
0.22494728863239288,
0.010950613766908646,
-0.04012422636151314,
-0.130388081073761,
-0.05794858559966087,
0.1187092512845993,
-0.44557619094848633,
-0.06707964837551117,
0.28090906143188477,
0.07695867121219635,
0.0015687040286138654,
0.1574690043926239,
0.33915773034095764,
-0.08161825686693192,
0.36661696434020996,
0.1040877103805542,
-0.07054345309734344,
-0.17031224071979523,
0.3324108123779297,
0.06926503032445908,
-0.14041854441165924,
0.42185476422309875,
0.15576466917991638,
-0.22264692187309265,
-0.1518334150314331,
0.14142075181007385,
0.33994293212890625,
-0.2813916802406311,
-0.05395256355404854,
-0.010200277902185917,
0.14735302329063416,
0.20521292090415955,
0.23660844564437866,
0.1382710039615631,
-0.19782958924770355,
-0.20859748125076294,
-0.1866784393787384,
-0.1838698834180832,
0.19255153834819794,
0.02231745794415474,
0.2390882670879364,
-0.017047585919499397,
-0.29211679100990295,
0.1026851162314415,
0.1451328843832016,
-0.365782231092453,
0.08496615290641785,
-0.11268582195043564,
0.14988471567630768,
0.12553583085536957,
-0.014215996488928795,
-0.04056005924940109,
0.2896203100681305,
0.07117419689893723,
0.14062392711639404,
-0.29819589853286743,
-0.20439162850379944,
-0.05198882520198822,
0.0834469124674797,
0.02354602701961994,
-0.05229252949357033,
0.1546591967344284,
-0.1482754945755005,
-0.284172385931015,
-0.10037165135145187,
0.21051470935344696,
-0.15366263687610626,
0.09821014106273651,
0.20744110643863678,
0.35864096879959106,
-0.3746778070926666,
-0.15859545767307281,
0.07845669239759445,
0.19119766354560852,
-0.08170009404420853,
0.12153670191764832,
0.3406086266040802,
-0.19404886662960052,
-0.30260953307151794,
-0.22827322781085968,
0.5108465552330017,
0.2922613322734833,
-0.13360145688056946,
0.4713009297847748,
-0.33041608333587646,
0.056401077657938004,
0.2789522707462311,
0.5351672172546387,
0.6012008786201477,
-0.1514587253332138,
-0.08802925050258636,
0.1812180131673813,
0.2208259552717209,
-0.02558213099837303,
0.13702712953090668,
-0.1873171031475067,
0.033783990889787674,
0.032696682959795,
0.3433178663253784,
0.11928394436836243,
0.025399181991815567,
0.1265498399734497,
-0.1984066516160965,
0.15949168801307678,
-0.27592733502388,
0.08624923974275589,
0.23145894706249237,
-0.13052065670490265,
-0.028599591925740242,
0.5951685905456543,
0.347275048494339,
0.045660872012376785,
0.39390528202056885,
-0.02508356235921383,
0.29534655809402466,
-0.06128204986453056,
0.2569727301597595,
0.0952453762292862,
-0.3001566231250763,
-0.08457846194505692,
0.39150702953338623,
0.09788993746042252,
0.0029344249051064253,
-0.2082814872264862,
0.5517615079879761,
0.13469937443733215,
-0.11318880319595337,
-0.2175142765045166,
0.26351577043533325,
-0.13592436909675598,
-0.24106433987617493,
-0.28391382098197937,
-0.37820422649383545,
-0.27253633737564087,
-0.019667409360408783,
-0.4187791645526886,
-0.09173204749822617,
0.28429433703422546,
-0.047254450619220734,
0.2933642268180847,
-0.5206661820411682,
0.12711597979068756,
-0.13050715625286102,
0.0793394148349762,
-0.31407734751701355,
0.33209213614463806,
-0.19686907529830933,
0.08307524025440216,
0.02451981231570244,
0.3627673387527466,
0.07949482649564743,
0.3440089821815491,
0.024147730320692062,
-0.05316069349646568,
-0.12609714269638062,
-0.08118879050016403,
0.1318766474723816,
0.23789982497692108,
-0.15643736720085144,
-0.21957571804523468,
0.46025320887565613,
0.07064107060432434,
-0.06131598725914955,
0.2296072095632553,
-0.11030547320842743,
0.14324182271957397,
-0.8062825202941895,
-0.04142354801297188,
0.10842061787843704,
0.140468567609787,
-0.06495679914951324,
0.07201553136110306,
-0.4094018340110779,
-0.023150531575083733,
0.1770360767841339,
-0.45901304483413696,
0.09710720181465149,
-0.1491709053516388,
0.12162873148918152,
-0.28497523069381714,
0.44018426537513733,
0.2593487501144409,
0.07210536301136017,
-0.015086500905454159,
-0.16013243794441223,
-0.2753872573375702,
-0.06810595840215683,
0.1776990443468094,
0.08144964277744293,
-0.032699815928936005,
0.4383942186832428,
0.19726377725601196,
0.14267976582050323,
-0.23459947109222412,
-0.5380962491035461,
-0.3567991852760315,
0.3172581195831299,
-0.21026942133903503,
-0.05986034497618675,
-0.3488928973674774,
0.3244599401950836,
-0.027882540598511696,
0.047827474772930145,
0.1658545434474945,
-0.27294111251831055,
-0.04880303516983986,
0.019164379686117172,
0.2362481653690338,
-0.07490657269954681,
-0.3555978834629059,
0.31926193833351135,
0.12846800684928894,
0.03838951140642166,
-0.04662451520562172,
0.032739438116550446,
-0.3662334978580475,
-0.3125421106815338,
-0.12999439239501953,
0.28628984093666077,
-0.057580456137657166,
0.2802180051803589,
-0.01036808267235756,
0.0820518359541893,
-0.07835642248392105,
0.046546872705221176,
-0.03177701681852341,
-0.044090013951063156,
-0.29182612895965576,
-0.17785757780075073,
-0.006485921796411276,
-0.10458578169345856,
0.030217720195651054,
0.5602521300315857,
0.022652626037597656,
0.15675096213817596,
-0.18892499804496765,
-0.18420089781284332,
0.24024568498134613,
-0.28604844212532043,
-0.058662429451942444,
-0.09462227672338486,
0.03492027521133423,
0.258853554725647,
-0.19698306918144226,
-0.35834407806396484,
0.15099374949932098,
0.3538050353527069,
0.010613798163831234,
-0.03844216838479042,
0.19088539481163025,
0.23336148262023926,
0.05603354796767235,
-0.2807214558124542,
0.20726528763771057,
0.04766299948096275,
0.09482140094041824,
0.013448338955640793,
-0.27738550305366516
] |
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.19670262932777405,
-0.4120611846446991,
-0.15225835144519806,
0.1939142495393753,
0.05039403587579727,
0.00916050560772419,
0.25218772888183594,
0.06103906035423279,
0.1378219872713089,
-0.001332986168563366,
0.22775068879127502,
0.2708902657032013,
-0.4278081953525543,
0.17694737017154694,
0.2024409919977188,
-0.08895500749349594,
0.012982931919395924,
0.04722921550273895,
-0.618796169757843,
-0.007837090641260147,
0.1369359940290451,
-0.07782802730798721,
-0.3001038730144501,
-0.16721351444721222,
0.057108957320451736,
-0.4246666729450226,
-0.310051828622818,
-0.18555662035942078,
-0.19067901372909546,
-0.42673784494400024,
0.2655524015426636,
0.17860224843025208,
0.4127587080001831,
0.5190776586532593,
-0.00010686080349842086,
-0.20872630178928375,
0.17242947220802307,
-0.07241921126842499,
-0.15705370903015137,
-0.25258907675743103,
-0.19458362460136414,
-0.14328257739543915,
-0.01327610481530428,
-0.39308279752731323,
-0.07785576581954956,
-0.2569580376148224,
0.16188806295394897,
-0.3726496398448944,
0.21776182949543,
0.08238999545574188,
0.26139095425605774,
-0.26730790734291077,
0.014085972681641579,
-0.0343470424413681,
0.029136311262845993,
0.14200903475284576,
-0.18959297239780426,
0.3146387040615082,
0.2581835985183716,
0.2592705190181732,
0.07073067128658295,
-0.08387728035449982,
0.18353255093097687,
-0.029351606965065002,
0.517625093460083,
-0.1810382753610611,
-0.028457529842853546,
-0.37810540199279785,
-0.13168033957481384,
0.18006671965122223,
0.9738006591796875,
-0.3325408101081848,
-0.18056811392307281,
0.09250949323177338,
0.07839478552341461,
-0.41614916920661926,
-0.07892987132072449,
0.20878101885318756,
0.0914727970957756,
0.1689748913049698,
-0.3774551749229431,
-0.215858593583107,
-0.2636704742908478,
0.1569269746541977,
-0.011471331119537354,
0.020218627527356148,
-0.14833931624889374,
0.1454468071460724,
0.14696907997131348,
-0.222716823220253,
0.3494541645050049,
-0.0374087430536747,
0.09567197412252426,
0.2934468984603882,
-0.354888916015625,
-0.3146657645702362,
-0.0452602282166481,
0.4222281873226166,
0.4786592125892639,
0.32073453068733215,
0.20237287878990173,
-0.11104871332645416,
-0.22337152063846588,
0.28425005078315735,
0.4751829504966736,
0.003990176133811474,
-0.04898468405008316,
0.09342747926712036,
0.11619934439659119,
-0.019266443327069283,
-0.14627328515052795,
-0.021060213446617126,
-0.21415209770202637,
-0.07895086705684662,
0.3076207935810089,
-0.29204630851745605,
-0.1230149045586586,
-0.06973093748092651,
0.02731732651591301,
-0.10939387232065201,
-0.25241371989250183,
-0.19428777694702148,
0.2612033188343048,
0.23290075361728668,
-0.1484910100698471,
0.13408659398555756,
-0.3233180642127991,
-0.09127519279718399,
0.10943790525197983,
0.29104384779930115,
-0.04497325420379639,
0.4422123432159424,
-0.5005634427070618,
0.02385350875556469,
-0.03574894741177559,
-0.2278590351343155,
0.2085992842912674,
0.153203547000885,
-0.1350090056657791,
-0.10784967243671417,
0.1483563631772995,
-0.3669769763946533,
0.43317919969558716,
-0.03547602891921997,
-0.19224992394447327,
0.006436184048652649,
-0.2999884784221649,
0.15474799275398254,
-0.3955387771129608,
0.048035141080617905,
-0.22603507339954376,
0.058066993951797485,
-0.04296059161424637,
0.16447311639785767,
-0.20568925142288208,
-0.2527203857898712,
-0.025476576760411263,
0.3109801709651947,
0.12158065289258957,
-0.10920405387878418,
0.11437942832708359,
-0.21275301277637482,
-0.16316385567188263,
-0.3115358054637909,
0.0765099748969078,
0.22399091720581055,
-0.3857712745666504,
0.13304904103279114,
0.031494323164224625,
0.0469471700489521,
0.14771436154842377,
0.29040688276290894,
-0.240666002035141,
0.227469801902771,
-0.16162480413913727,
-0.11822319030761719,
0.41868776082992554,
-0.13543066382408142,
-0.1791636198759079,
0.33514684438705444,
0.20163236558437347,
-0.09809467196464539,
0.06815964728593826,
0.2971673607826233,
-0.012208826839923859,
0.022420845925807953,
-0.20338907837867737,
0.2134363204240799,
0.024325575679540634,
-0.1471535861492157,
-0.0023542337585240602,
-0.02152964286506176,
0.17239436507225037,
0.01049928367137909,
0.040694158524274826,
0.21408557891845703,
0.09025249630212784,
0.1390070915222168,
0.273175984621048,
-0.23915597796440125,
0.1900429129600525,
0.2386128455400467,
0.32201457023620605,
0.04920286685228348,
0.0945582166314125,
-0.48225852847099304,
0.025487953796982765,
0.1556338667869568,
0.18615248799324036,
-0.15783487260341644,
0.29566362500190735,
-0.006758704781532288,
-0.12622474133968353,
0.07986458390951157,
-0.16188283264636993,
-0.056561827659606934,
0.1256803721189499,
0.06633629649877548,
0.20562948286533356,
-0.09015773236751556,
-0.5047395825386047,
0.09981988370418549,
-0.20305456221103668,
-0.20805133879184723,
-0.509610116481781,
0.12906776368618011,
0.22708484530448914,
-0.07794661819934845,
0.03276051580905914,
0.015286528505384922,
-0.29831066727638245,
-0.4979236125946045,
0.27773773670196533,
0.3969455659389496,
0.15608330070972443,
-0.007921937853097916,
0.1019599661231041,
0.38199278712272644,
0.3212150037288666,
-0.1746240258216858,
0.14621002972126007,
-0.19910039007663727,
0.2882043719291687,
-0.018185781314969063,
0.10070430487394333,
0.41944819688796997,
-0.2194589376449585,
0.05787307396531105,
0.37076371908187866,
-0.16723904013633728,
0.05712741240859032,
-0.05736735463142395,
-0.4465526342391968,
0.12435217946767807,
-0.10406532138586044,
-0.1959185153245926,
0.420641154050827,
-0.12650251388549805,
-0.3818363845348358,
-0.3234952688217163,
0.459049791097641,
-0.030902095139026642,
0.029166601598262787,
0.050157640129327774,
-0.1086961179971695,
-0.0667857900261879,
0.055226054042577744,
0.029928728938102722,
0.36433857679367065,
-0.01672365516424179,
0.22284673154354095,
0.021102501079440117,
0.002769104903563857,
0.19368933141231537,
0.18388614058494568,
-0.021365713328123093,
0.35145726799964905,
-0.16702814400196075,
-0.0330469012260437,
0.023264870047569275,
-0.2684539258480072,
-0.3299868702888489,
0.01652962528169155,
0.15019848942756653,
0.057545267045497894,
0.2963261008262634,
-0.40585067868232727,
-0.19071605801582336,
-0.3694969713687897,
-0.11141668260097504,
0.2052111178636551,
0.10909672826528549,
-0.3205464482307434,
0.042428381741046906,
0.40086331963539124,
0.1220254972577095,
0.08508464694023132,
0.21481256186962128,
0.058387935161590576,
0.024780863896012306,
-0.060326531529426575,
0.0091480053961277,
-0.1000979095697403,
0.18608666956424713,
0.28783074021339417,
-0.2173033058643341,
0.6166129112243652,
0.09098465740680695,
-0.09113989025354385,
-0.40594324469566345,
-0.16211843490600586,
0.14681921899318695,
0.05027315765619278,
0.09212193638086319,
0.24907852709293365,
-0.03622719272971153,
-0.17545008659362793,
-0.04183301329612732,
0.0035601211711764336,
-0.4967639744281769,
0.15901215374469757,
-0.18416905403137207,
-0.12019627541303635,
0.041362181305885315,
0.0619923397898674,
-0.19264641404151917,
-0.3554748594760895,
-0.14898303151130676,
0.32454416155815125,
0.39479488134384155,
0.17928799986839294,
0.17026269435882568,
0.05260264500975609,
0.3306012749671936,
0.11374964565038681,
0.034736268222332,
-0.03129753842949867,
-0.39989805221557617,
0.182396799325943,
-0.36578604578971863,
-0.27892619371414185,
0.05302341282367706,
0.054412297904491425,
0.4394405484199524,
0.19198107719421387,
-0.3579130470752716,
-0.02645955979824066,
-0.061579540371894836,
0.053385179489851,
0.09291725605726242,
0.3949342668056488,
0.09135009348392487,
-0.2753693759441376,
-0.026698673143982887,
-0.04482714459300041,
-0.05333958566188812,
0.07771361619234085,
-0.059941332787275314,
0.3174925744533539,
0.5418897271156311,
0.3369606137275696,
-0.06128488481044769,
0.510634183883667,
0.32139334082603455,
-0.46644940972328186,
0.38192641735076904,
-0.29490819573402405,
-0.22950135171413422,
-0.10067626088857651,
-0.18041880428791046,
0.12389467656612396,
-0.2533702850341797,
-0.28822240233421326,
0.13761095702648163,
-0.08531665802001953,
-0.5046299695968628,
-0.28603237867355347,
0.1899845451116562,
0.007503813598304987,
0.08541353791952133,
-0.06802049279212952,
-0.458496630191803,
0.2238844782114029,
-0.3123108446598053,
-0.1672614961862564,
-0.08395885676145554,
-0.035122305154800415,
-0.0037931634578853846,
0.10224809497594833,
0.10631956160068512,
0.025527339428663254,
-0.6367223262786865,
-0.0780712142586708,
-0.21954962611198425,
-0.016004351899027824,
-0.2293446958065033,
0.22840751707553864,
0.20317354798316956,
-0.15508747100830078,
0.2090587615966797,
-0.27040576934814453,
0.34645068645477295,
0.02558910846710205,
-0.369551420211792,
-0.01546622347086668,
-0.3388347625732422,
0.10336390882730484,
0.11398675292730331,
-0.2592838704586029,
0.5021618604660034,
0.1661727875471115,
-0.049961626529693604,
-0.09050087630748749,
-0.20152316987514496,
0.25956296920776367,
-0.0000615055687376298,
0.058348629623651505,
-0.4264300465583801,
0.09127000719308853,
-0.1913367062807083,
-0.05211956799030304,
-0.10428760200738907,
-0.025659000501036644,
-0.15692703425884247,
0.059853602200746536,
-0.22748805582523346,
-0.23878557980060577,
0.0925382524728775,
0.23684127628803253,
-0.019125381484627724,
-0.07043003290891647,
0.02180567756295204,
0.17990899085998535,
0.1561616212129593,
0.2901679277420044,
0.29236486554145813,
0.2780875563621521,
-0.06889383494853973,
0.09685508906841278,
0.2517818212509155,
0.22628924250602722,
0.32922303676605225,
-0.0746602937579155,
-0.06404729187488556,
0.0011872290633618832,
-0.09502764791250229,
-0.01375088281929493,
-0.4295499920845032,
-0.07027797400951385,
0.3990364968776703,
-0.028546635061502457,
-0.6849343180656433,
-0.8001817464828491,
0.5862552523612976,
0.20335859060287476,
-0.042413339018821716,
0.4010372459888458,
-0.1833678036928177,
-0.1230546310544014,
-0.08829952776432037,
0.19376105070114136,
0.7383268475532532,
-0.11394234746694565,
0.04900728166103363,
0.1444423347711563,
0.30999383330345154,
0.45908015966415405,
-0.016373274847865105,
-0.05308191850781441,
-0.4539550244808197,
-0.15153224766254425,
-0.1391630470752716,
-0.1917884200811386,
0.26851022243499756,
0.18640021979808807,
-0.26382601261138916,
0.3906112015247345,
0.10171354562044144,
0.06968354433774948,
-0.15796828269958496,
0.30085301399230957,
-0.2609700858592987,
-0.08589282631874084,
-0.3324448764324188,
0.20694544911384583,
0.12997595965862274,
0.1009470596909523,
-0.18999797105789185,
-0.08607209473848343,
0.3169945180416107,
0.28213971853256226,
-0.1255447268486023,
-0.12767294049263,
-0.10945789515972137,
0.06896661967039108,
0.1239275187253952,
-0.2988598942756653,
0.40014374256134033,
0.2613200843334198,
0.14222688972949982,
-0.06041498854756355,
-0.1662525087594986,
0.06324492394924164,
-0.09751331806182861,
-0.038340721279382706,
0.0007145350682549179,
0.17949359118938446,
0.48925545811653137,
-0.08089516311883926,
-0.03255455195903778,
0.26234209537506104,
0.118524931371212,
-0.03521665185689926,
-0.1141914501786232,
0.13867071270942688,
0.24337884783744812,
-0.12555430829524994,
-0.2266969382762909,
0.408035546541214,
-0.05306335538625717,
0.005941133014857769,
0.16510631144046783,
0.2601029872894287,
-0.1499895304441452,
0.4505729377269745,
-0.025289375334978104,
-0.06435763090848923,
-0.18765437602996826,
0.16634874045848846,
0.24505792558193207,
-0.09242457151412964,
0.22257182002067566,
0.032286129891872406,
-0.17797867953777313,
-0.20870448648929596,
0.24943941831588745,
0.2526233494281769,
-0.04920230805873871,
0.015658501535654068,
0.06796495616436005,
0.27038776874542236,
0.275846004486084,
0.13124015927314758,
0.12330024689435959,
-0.10120856761932373,
-0.3609985113143921,
-0.11271226406097412,
-0.36966603994369507,
0.010942340828478336,
0.09227786958217621,
0.2632911205291748,
-0.07850329577922821,
-0.22781644761562347,
0.21123996376991272,
0.08895044773817062,
-0.3270403742790222,
0.03190658986568451,
-0.11105720698833466,
0.15686975419521332,
0.04028746113181114,
-0.04382729530334473,
-0.25275716185569763,
0.2932383716106415,
0.10484123229980469,
-0.003678790992125869,
-0.303731232881546,
-0.20585885643959045,
-0.007789811119437218,
0.09332919120788574,
-0.0342215932905674,
-0.12230481952428818,
0.12761394679546356,
-0.38525083661079407,
-0.25362563133239746,
-0.1441391408443451,
0.16458113491535187,
-0.007397358305752277,
0.0032501674722880125,
0.22686225175857544,
0.2301967442035675,
-0.3531453609466553,
-0.07000242173671722,
-0.008867662400007248,
0.12020482122898102,
-0.14761114120483398,
0.106346495449543,
0.2929706573486328,
0.12955668568611145,
-0.3645479083061218,
-0.41891932487487793,
0.23022525012493134,
0.2601172626018524,
-0.2266233116388321,
0.45987921953201294,
-0.18360386788845062,
0.28355899453163147,
0.18641047179698944,
0.38997071981430054,
0.5834116339683533,
-0.15107524394989014,
0.07219623029232025,
0.16975277662277222,
0.20217515528202057,
-0.010420696809887886,
-0.061800435185432434,
-0.06801996380090714,
0.06934250146150589,
0.031097304075956345,
0.1741320937871933,
0.13259659707546234,
0.13978859782218933,
-0.3049248456954956,
-0.31965863704681396,
0.17437303066253662,
-0.4326552450656891,
0.068520188331604,
0.3156369924545288,
-0.05054179206490517,
-0.09201711416244507,
0.3491540849208832,
0.5144848823547363,
0.251219779253006,
0.49230846762657166,
0.2163974642753601,
0.5837100148200989,
0.14876678586006165,
0.07950831204652786,
0.10276984423398972,
-0.2135760337114334,
-0.06694713979959488,
0.3401176631450653,
0.11389952152967453,
0.17079280316829681,
-0.0026380436029285192,
0.25102245807647705,
0.21710312366485596,
-0.14389458298683167,
-0.11521068960428238,
0.15530066192150116,
0.056076448410749435,
-0.23642784357070923,
-0.20334266126155853,
-0.15768258273601532,
-0.17104019224643707,
-0.07080090790987015,
-0.3268951177597046,
-0.06284879893064499,
0.3587143123149872,
0.09651898592710495,
0.22638840973377228,
-0.3642050325870514,
0.4352075159549713,
-0.10421603173017502,
0.33282390236854553,
-0.3009599447250366,
0.2857184410095215,
-0.23622123897075653,
0.12626704573631287,
-0.3357146382331848,
0.14774806797504425,
0.16162464022636414,
0.45227500796318054,
0.07842111587524414,
0.06376966834068298,
-0.17152266204357147,
-0.13463422656059265,
0.0348258912563324,
0.18074077367782593,
0.005523301661014557,
-0.1503407508134842,
0.48303914070129395,
0.07878240197896957,
-0.029964158311486244,
0.4317759573459625,
0.039298415184020996,
-0.04901101440191269,
-0.7619783282279968,
0.030807189643383026,
-0.07388296723365784,
-0.10408224165439606,
0.038614142686128616,
0.20588845014572144,
-0.3588981628417969,
0.031015979126095772,
0.3494984209537506,
-0.5118246674537659,
0.011284898966550827,
-0.12811487913131714,
0.09080816060304642,
-0.44382166862487793,
0.5806397199630737,
0.23582105338573456,
0.3683759272098541,
0.06463214010000229,
-0.35478290915489197,
-0.21484413743019104,
-0.0000029233294753794326,
-0.06460847705602646,
0.033011484891176224,
0.0023926226422190666,
0.26005667448043823,
0.047909729182720184,
0.08153776824474335,
-0.21019363403320312,
-0.40151217579841614,
-0.3318651020526886,
0.47154736518859863,
-0.1407269388437271,
-0.11856659501791,
-0.5041667222976685,
0.42382434010505676,
0.06883249431848526,
-0.1372980922460556,
0.002838579937815666,
-0.4769551753997803,
-0.05667192488908768,
-0.0586552619934082,
0.1339172124862671,
0.1711045354604721,
-0.21303337812423706,
0.4344693422317505,
0.05021531134843826,
0.17333760857582092,
-0.04095624387264252,
0.05062370374798775,
-0.20028677582740784,
-0.23178347945213318,
-0.05607132241129875,
0.42079398036003113,
0.09361575543880463,
0.018234288319945335,
-0.1480521857738495,
0.030052997171878815,
0.15064017474651337,
0.00726894848048687,
-0.01728714071214199,
0.025136377662420273,
-0.09878897666931152,
-0.4087802767753601,
-0.038417331874370575,
-0.01415760163217783,
0.16126669943332672,
0.7226046919822693,
-0.19826467335224152,
-0.0007433610153384507,
-0.176343634724617,
0.055588819086551666,
0.19082704186439514,
-0.12029165774583817,
-0.117618128657341,
-0.1891217678785324,
-0.0056443409994244576,
0.09312313795089722,
-0.2571721374988556,
-0.4581376612186432,
0.11779724061489105,
0.46905457973480225,
-0.07871415466070175,
-0.19974260032176971,
0.31557855010032654,
0.266044557094574,
0.06409964710474014,
-0.01372575294226408,
0.35689669847488403,
-0.16058677434921265,
-0.1009710505604744,
0.021461935713887215,
-0.2646005153656006
] |
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.30167075991630554,
-0.391623318195343,
-0.12449963390827179,
0.4045022428035736,
0.12186595797538757,
0.08152636885643005,
0.23458075523376465,
0.1949106603860855,
-0.04454409331083298,
-0.025844141840934753,
0.044025495648384094,
0.33468836545944214,
-0.3416885733604431,
0.01935756765305996,
-0.0354219526052475,
-0.15220075845718384,
-0.13506649434566498,
-0.1091264933347702,
-0.5712969899177551,
-0.09419472515583038,
0.164425790309906,
-0.060780107975006104,
-0.39450153708457947,
-0.18522262573242188,
-0.015444116666913033,
-0.48471784591674805,
-0.21749845147132874,
0.0037643706891685724,
-0.1276627629995346,
-0.3302406072616577,
0.18253284692764282,
0.028214162215590477,
0.4424455761909485,
0.6334047913551331,
-0.00011079793330281973,
-0.13626159727573395,
0.11614616215229034,
-0.17688189446926117,
-0.1535315066576004,
-0.31364282965660095,
-0.010961798019707203,
-0.1165112629532814,
-0.017404260113835335,
-0.4819851219654083,
-0.17750734090805054,
-0.1292106807231903,
0.06177142634987831,
-0.5960795283317566,
0.3605302572250366,
0.1747678816318512,
0.19652590155601501,
-0.16089129447937012,
0.037375953048467636,
-0.05173424258828163,
0.1932123750448227,
0.15505151450634003,
-0.08811246603727341,
0.21969608962535858,
0.43129920959472656,
0.28176960349082947,
-0.015033421106636524,
0.047245752066373825,
0.09159156680107117,
-0.07211059331893921,
0.1525731086730957,
0.0000494116720801685,
-0.21202610433101654,
-0.4927813708782196,
-0.011081916280090809,
0.18458779156208038,
0.9366429448127747,
-0.27463966608047485,
-0.29699230194091797,
-0.03512969985604286,
0.016817791387438774,
-0.17416495084762573,
-0.06891181319952011,
0.2412094920873642,
0.0703456774353981,
0.1441499888896942,
-0.33343955874443054,
-0.10515595227479935,
-0.18605293333530426,
0.22163861989974976,
0.07514724880456924,
0.2418796271085739,
0.0030304649844765663,
0.23123358190059662,
0.04622078314423561,
-0.21950095891952515,
0.4654042720794678,
-0.13292959332466125,
0.08923683315515518,
0.3992207646369934,
-0.4541884958744049,
-0.18444493412971497,
-0.034939587116241455,
0.2144802063703537,
0.4375274181365967,
0.2616203725337982,
0.16510345041751862,
-0.10799582302570343,
-0.2650260329246521,
0.23070697486400604,
0.2453349083662033,
0.07750874012708664,
-0.013284311629831791,
0.27213606238365173,
0.09229888767004013,
-0.14101672172546387,
-0.010839790105819702,
0.022103309631347656,
-0.261515736579895,
-0.44893673062324524,
0.08468381315469742,
0.03682263195514679,
-0.1015717014670372,
0.03495698422193527,
-0.003091830527409911,
-0.2123388648033142,
-0.28905782103538513,
-0.24834968149662018,
0.35088708996772766,
0.21041765809059143,
-0.21134592592716217,
0.02235456183552742,
-0.11016282439231873,
0.17632955312728882,
0.28474465012550354,
0.34772998094558716,
-0.06335243582725525,
0.4023619294166565,
-0.4622746407985687,
-0.02749735675752163,
0.043280743062496185,
-0.39234042167663574,
0.11612874269485474,
0.19867558777332306,
-0.17079222202301025,
0.06776124984025955,
0.11512546241283417,
-0.3227117359638214,
0.4243604242801666,
-0.13877175748348236,
0.022963522002100945,
0.007193158380687237,
-0.07570179551839828,
0.21802298724651337,
-0.32268470525741577,
0.07050015777349472,
-0.41015759110450745,
-0.010066276416182518,
-0.18240083754062653,
0.12459508329629898,
-0.06858083605766296,
-0.10549977421760559,
-0.17918571829795837,
0.18547660112380981,
0.25962939858436584,
-0.14453765749931335,
0.2509695589542389,
0.05078978091478348,
-0.1488245576620102,
-0.2530641257762909,
0.0971311405301094,
0.379682719707489,
-0.3504398465156555,
0.04364096373319626,
0.3202689290046692,
0.15157321095466614,
0.15434864163398743,
0.3483071029186249,
-0.39041808247566223,
0.25391900539398193,
-0.34024059772491455,
-0.13526076078414917,
0.741756796836853,
-0.36350953578948975,
-0.18035845458507538,
0.2364925593137741,
-0.05996911972761154,
-0.24980181455612183,
0.31004926562309265,
0.006148959044367075,
-0.07299952208995819,
0.07179398834705353,
0.19283802807331085,
0.17119139432907104,
0.032115619629621506,
-0.1606430858373642,
0.01014831755310297,
-0.028559042140841484,
0.3351588845252991,
-0.025440247729420662,
0.07909827679395676,
0.15703007578849792,
0.27613168954849243,
-0.0619235634803772,
0.40417012572288513,
-0.2901454269886017,
0.18817074596881866,
0.28395286202430725,
0.01803654432296753,
-0.15144285559654236,
0.05107877776026726,
-0.17032022774219513,
-0.21524576842784882,
0.2737481892108917,
0.05890048295259476,
-0.19499318301677704,
0.11007659882307053,
0.016197917982935905,
0.028813203796744347,
-0.14006969332695007,
-0.20779146254062653,
-0.049193669110536575,
0.06504761427640915,
0.12359709292650223,
0.2050935924053192,
-0.27526581287384033,
-0.34323111176490784,
0.05362997204065323,
-0.2269364297389984,
-0.1522427648305893,
-0.595772922039032,
0.2830941677093506,
0.15693402290344238,
-0.18391753733158112,
0.08864587545394897,
0.10523178428411484,
-0.022042570635676384,
-0.3450833559036255,
0.17710880935192108,
0.3911455273628235,
-0.040356408804655075,
0.16954343020915985,
0.1876872032880783,
0.25031062960624695,
0.3719841241836548,
-0.04357608035206795,
0.15443556010723114,
-0.3036033809185028,
0.20199580490589142,
-0.16441728174686432,
0.1088792234659195,
0.4175557494163513,
-0.17899997532367706,
0.13908664882183075,
0.2945196032524109,
-0.16200043261051178,
0.05004318058490753,
0.03386698663234711,
-0.34560200572013855,
0.0951102077960968,
-0.10286078602075577,
0.028539877384901047,
0.433884859085083,
-0.2218487709760666,
-0.4662246108055115,
-0.2694392204284668,
0.3125097155570984,
0.0944652333855629,
0.04982801526784897,
-0.03947172313928604,
-0.16150079667568207,
0.0070871273055672646,
0.24333356320858002,
-0.2581150531768799,
0.4800902307033539,
0.013074696995317936,
0.24237394332885742,
0.0065550655126571655,
0.1503531038761139,
0.06433045864105225,
0.19351468980312347,
0.04527691751718521,
0.3508191704750061,
0.17024114727973938,
0.20469191670417786,
0.11709949374198914,
-0.04012050852179527,
-0.3137166202068329,
0.01634884625673294,
0.0010910535929724574,
-0.1328432857990265,
0.23851653933525085,
-0.2977778911590576,
0.024162588641047478,
-0.44867098331451416,
-0.15989452600479126,
0.17479170858860016,
0.07700192183256149,
-0.336631178855896,
0.04925177991390228,
0.42619889974594116,
0.18667662143707275,
0.12122421711683273,
0.08222124725580215,
0.3265722990036011,
-0.11024868488311768,
-0.03547417372465134,
-0.14021086692810059,
0.0021171190310269594,
0.1468573957681656,
0.2564625144004822,
-0.31356698274612427,
0.5114416480064392,
0.04654205963015556,
-0.00014868428115732968,
-0.5351343750953674,
-0.12054052948951721,
0.36853674054145813,
-0.13019734621047974,
-0.09732663631439209,
0.2938464283943176,
-0.1601390689611435,
-0.12097141146659851,
-0.12818969786167145,
0.07866286486387253,
-0.24530570209026337,
0.08660975098609924,
-0.11015575379133224,
-0.22116000950336456,
-0.0738411471247673,
0.09101592749357224,
-0.33458462357521057,
-0.5138571262359619,
-0.25992363691329956,
0.27393603324890137,
0.30427291989326477,
0.1782875806093216,
0.19476428627967834,
0.1513938456773758,
0.4163947105407715,
0.27668994665145874,
0.17466336488723755,
-0.13455051183700562,
-0.507807731628418,
0.4365927278995514,
-0.4433955252170563,
-0.3223358988761902,
-0.06711136549711227,
-0.089113749563694,
0.4015449285507202,
0.29273736476898193,
-0.22754208743572235,
-0.09199123829603195,
0.06416353583335876,
0.21968138217926025,
-0.06442630290985107,
0.4492757022380829,
0.3778800368309021,
-0.17479409277439117,
-0.03326514735817909,
-0.04648720100522041,
0.13206762075424194,
-0.018378593027591705,
0.07690925151109695,
0.5140583515167236,
0.46223685145378113,
0.31920886039733887,
0.05644849315285683,
0.7233351469039917,
0.23687626421451569,
-0.4231693744659424,
0.42036163806915283,
-0.2912539541721344,
-0.20604468882083893,
-0.14175747334957123,
-0.3200325071811676,
0.11631601303815842,
-0.2672155797481537,
-0.2039097249507904,
0.08295278996229172,
-0.20759229362010956,
-0.45043712854385376,
-0.3630998730659485,
0.16158917546272278,
-0.13453996181488037,
-0.0364128015935421,
-0.0008958986145444214,
-0.4431042969226837,
0.15193767845630646,
-0.37464088201522827,
-0.024733569473028183,
-0.14444951713085175,
-0.06648966670036316,
0.07084417343139648,
-0.048118967562913895,
0.0268069077283144,
-0.007490683346986771,
-0.5318668484687805,
-0.07767338305711746,
-0.2226395308971405,
0.28680309653282166,
0.04262012988328934,
0.092851422727108,
0.33011582493782043,
-0.10337177664041519,
0.13806046545505524,
-0.1811048537492752,
0.5042605400085449,
-0.06172390282154083,
-0.23571695387363434,
-0.027392560616135597,
-0.20214246213436127,
-0.019855350255966187,
0.07301828265190125,
-0.25666114687919617,
0.4214026927947998,
0.36145830154418945,
0.12368793785572052,
-0.136291965842247,
-0.27268895506858826,
0.1096012219786644,
-0.22791644930839539,
0.1190548688173294,
-0.2491508424282074,
0.0845935270190239,
0.01857522688806057,
-0.2972392737865448,
-0.14717108011245728,
0.08121639490127563,
0.01962983049452305,
0.000656076124869287,
-0.19312256574630737,
-0.25300052762031555,
0.015009555034339428,
0.17612282931804657,
-0.06306485086679459,
0.13443057239055634,
0.16552025079727173,
0.16402633488178253,
0.3385929763317108,
0.40194863080978394,
0.3491041958332062,
0.4574621319770813,
-0.049717314541339874,
0.1240924522280693,
0.3840078115463257,
0.12470845878124237,
0.34582826495170593,
0.12290449440479279,
-0.11995076388120651,
-0.08574844151735306,
-0.3532606065273285,
-0.05420112609863281,
-0.3154104948043823,
-0.009128089994192123,
0.38374143838882446,
-0.08551264554262161,
-0.6794347763061523,
-0.7689769268035889,
0.4015048146247864,
0.2226501852273941,
-0.13364443182945251,
0.3440222144126892,
-0.38198986649513245,
-0.3183284401893616,
-0.09105034917593002,
0.2710517346858978,
0.8402196168899536,
0.032299820333719254,
0.15252500772476196,
0.022631606087088585,
0.33664023876190186,
0.2843591570854187,
0.030587490648031235,
0.04688234627246857,
-0.5196395516395569,
-0.13651464879512787,
-0.24166527390480042,
-0.30815815925598145,
0.28976911306381226,
0.2748749256134033,
-0.3071194589138031,
0.43383538722991943,
-0.08967945724725723,
0.2778543531894684,
-0.144351527094841,
0.290805459022522,
-0.14496392011642456,
-0.21226052939891815,
-0.38961556553840637,
0.09860826283693314,
0.10210996121168137,
0.11092618107795715,
-0.15673309564590454,
-0.12719352543354034,
0.03339093551039696,
0.04838144779205322,
-0.0917542427778244,
-0.04422812908887863,
-0.5501810312271118,
0.27392351627349854,
0.1598559468984604,
-0.5914470553398132,
0.29468876123428345,
0.6760758757591248,
0.11542993038892746,
-0.011979609727859497,
-0.14084500074386597,
0.03844030946493149,
0.206093430519104,
-0.1562189757823944,
-0.07250840961933136,
0.09753506630659103,
0.47581228613853455,
0.05284387618303299,
0.004844998940825462,
0.42238330841064453,
0.1397079974412918,
-0.00958770141005516,
-0.1689719557762146,
0.11338947713375092,
0.2828725278377533,
-0.2784453332424164,
-0.23333494365215302,
0.3246435821056366,
-0.0805046409368515,
0.015166991390287876,
0.09097588807344437,
0.21670851111412048,
-0.16753804683685303,
0.20515814423561096,
0.1029292494058609,
-0.08481653779745102,
-0.07633083313703537,
0.4706708788871765,
0.12022662162780762,
-0.0981324166059494,
0.24790310859680176,
0.12953802943229675,
-0.15966899693012238,
-0.12347458302974701,
0.2534741163253784,
0.21452900767326355,
-0.14984795451164246,
-0.15393152832984924,
0.07416622340679169,
0.12451747059822083,
0.23289592564105988,
0.2849791347980499,
0.12007074803113937,
0.06644684076309204,
-0.16105373203754425,
-0.1804714947938919,
-0.38884568214416504,
0.06108875945210457,
0.10048475861549377,
0.325347363948822,
0.10528811067342758,
-0.22244489192962646,
0.02932818792760372,
0.07683572173118591,
-0.2823283076286316,
0.024923639371991158,
0.010996607132256031,
0.19628311693668365,
0.13648530840873718,
-0.10939580947160721,
-0.10343411564826965,
0.13556605577468872,
0.06082075089216232,
0.13723993301391602,
-0.2650090456008911,
-0.19546116888523102,
-0.062084734439849854,
0.09549359232187271,
-0.010229901410639286,
-0.171678826212883,
0.015568514354526997,
-0.48232290148735046,
-0.15563800930976868,
-0.17427532374858856,
0.22607232630252838,
0.09729647636413574,
0.14880332350730896,
0.04383141174912453,
0.24196256697177887,
-0.23626840114593506,
-0.08095008879899979,
-0.0554109625518322,
0.05088299512863159,
-0.15842178463935852,
0.12084901332855225,
0.3051258623600006,
-0.07018426060676575,
-0.2784439027309418,
-0.2976559102535248,
0.16205796599388123,
0.45192205905914307,
0.06735025346279144,
0.24652807414531708,
-0.2574518322944641,
0.09971839934587479,
0.09098143130540848,
0.26385682821273804,
0.42302703857421875,
-0.16003593802452087,
0.05205051973462105,
0.12562474608421326,
0.12485978752374649,
-0.09703328460454941,
-0.017353393137454987,
-0.22670601308345795,
0.029307670891284943,
0.10593020170927048,
0.2214535027742386,
0.07976314425468445,
0.18182775378227234,
-0.37657269835472107,
-0.20886610448360443,
0.22121493518352509,
-0.3223405182361603,
0.188860684633255,
0.3121758699417114,
-0.02480180561542511,
-0.11892560869455338,
0.31315138936042786,
0.47819602489471436,
0.18405494093894958,
0.11278672516345978,
-0.0069756279699504375,
0.5928167104721069,
0.25998663902282715,
-0.07004421204328537,
0.18105590343475342,
-0.2384408712387085,
-0.12359485775232315,
0.13461169600486755,
0.07866818457841873,
0.17646801471710205,
-0.13589756190776825,
0.5692294239997864,
0.2992441654205322,
-0.16049166023731232,
0.09066358953714371,
0.36865946650505066,
0.11357828229665756,
-0.2999247610569,
-0.33454108238220215,
-0.2354026734828949,
-0.1383019983768463,
-0.11452849954366684,
-0.2687356472015381,
-0.03433225676417351,
0.31068968772888184,
0.1526484340429306,
0.3058913052082062,
-0.21367813646793365,
0.37385255098342896,
-0.07769650220870972,
0.10088462382555008,
-0.31421664357185364,
0.3480851650238037,
-0.16416411101818085,
0.1437532603740692,
-0.21533764898777008,
0.08323115110397339,
0.25061529874801636,
0.3648098111152649,
-0.1423470377922058,
-0.01128818653523922,
-0.06852884590625763,
-0.11979243904352188,
0.11056222021579742,
0.0994914099574089,
0.025687621906399727,
-0.37523797154426575,
0.5009601712226868,
0.07273469120264053,
-0.08314701169729233,
0.3362274765968323,
0.025489121675491333,
-0.08609017729759216,
-0.5171758532524109,
0.02851460687816143,
-0.07607781141996384,
-0.16160541772842407,
-0.002965157385915518,
0.0322171226143837,
-0.34949952363967896,
-0.05348013713955879,
0.3596714735031128,
-0.48144808411598206,
0.10965472459793091,
-0.07124379277229309,
0.06761446595191956,
-0.20869259536266327,
0.5480343103408813,
0.2112804502248764,
0.3716069459915161,
-0.04388400912284851,
-0.17019091546535492,
-0.1988399177789688,
-0.06921596825122833,
0.17779827117919922,
0.042761221528053284,
-0.12375950813293457,
0.2416924238204956,
0.03628424555063248,
0.11098111420869827,
-0.008240432478487492,
-0.5410217642784119,
-0.22051531076431274,
0.4227231442928314,
-0.18203744292259216,
-0.21949397027492523,
-0.3366204798221588,
0.4020094573497772,
0.08840291202068329,
-0.30762332677841187,
-0.026384521275758743,
-0.3074910342693329,
-0.036172863095998764,
-0.202413409948349,
0.023707019165158272,
0.024954065680503845,
-0.2743130326271057,
0.5059767365455627,
-0.13715393841266632,
0.3993718922138214,
-0.19356997311115265,
0.11270523071289062,
-0.2125447392463684,
-0.37147387862205505,
0.05283826217055321,
0.3700617253780365,
0.2980944514274597,
0.20231392979621887,
-0.24370521306991577,
-0.07318736612796783,
0.08783922344446182,
0.08885326236486435,
0.11979737132787704,
-0.0743529200553894,
-0.19318675994873047,
-0.236148402094841,
0.003297357354313135,
-0.05908742919564247,
-0.03591577336192131,
0.6751523613929749,
-0.11437756568193436,
0.2119201272726059,
-0.11916506290435791,
-0.3494873344898224,
0.4321638345718384,
-0.24366089701652527,
-0.16234663128852844,
-0.0897051990032196,
-0.10914459079504013,
0.24272553622722626,
0.013439029455184937,
-0.4573640823364258,
0.09172797203063965,
0.41573840379714966,
-0.06913743913173676,
-0.19676095247268677,
0.1873580515384674,
0.28470131754875183,
0.07364701479673386,
-0.16825561225414276,
0.174457848072052,
-0.12749741971492767,
-0.12218630313873291,
-0.16169577836990356,
-0.3481248617172241
] |
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.17623133957386017,
-0.2129831612110138,
0.041828006505966187,
0.1458277851343155,
0.29600682854652405,
-0.21450498700141907,
0.20663025975227356,
-0.05965998023748398,
0.07366067171096802,
0.3631319999694824,
-0.14943528175354004,
0.27701306343078613,
-0.32634466886520386,
0.15066081285476685,
-0.029202716425061226,
-0.5932825207710266,
-0.08712051808834076,
0.23080974817276,
-0.2494450956583023,
-0.03293436020612717,
0.2496521919965744,
-0.0033958223648369312,
-0.1133742555975914,
-0.07345487177371979,
-0.10531764477491379,
-0.17391246557235718,
-0.359015554189682,
-0.018264591693878174,
-0.17482569813728333,
-0.2580249011516571,
0.43718579411506653,
0.3987308442592621,
0.6609319448471069,
0.4599103629589081,
-0.0001257403491763398,
0.07446202635765076,
0.10183355957269669,
-0.15351641178131104,
-0.25749531388282776,
-0.1424916833639145,
0.054533906280994415,
0.24794818460941315,
0.13671861588954926,
-0.23220518231391907,
-0.1759757399559021,
0.03773614391684532,
0.1900283396244049,
0.026471588760614395,
0.5198251605033875,
-0.14746832847595215,
0.06997579336166382,
-0.05244216322898865,
-0.24222412705421448,
-0.22152471542358398,
-0.19936542212963104,
0.307751327753067,
-0.04101061820983887,
0.20773902535438538,
0.39817872643470764,
-0.007588231470435858,
-0.43239083886146545,
-0.024220433086156845,
0.03302852809429169,
0.217563197016716,
0.00721865426748991,
-0.1358048915863037,
-0.2036302238702774,
-0.23513150215148926,
-0.3969823122024536,
0.16026461124420166,
0.605186939239502,
-0.25707289576530457,
-0.3713672161102295,
-0.17742778360843658,
-0.25012725591659546,
0.05001894384622574,
-0.19252093136310577,
0.05104618892073631,
-0.18377836048603058,
0.28231561183929443,
-0.1530066281557083,
-0.11604679375886917,
-0.3117055296897888,
0.12746943533420563,
-0.15682943165302277,
0.4186399579048157,
-0.13938850164413452,
0.12818069756031036,
0.09364965558052063,
0.20983710885047913,
0.10633885115385056,
0.04158792272210121,
0.21946515142917633,
0.14385563135147095,
-0.22325381636619568,
-0.3640882074832916,
0.009543806314468384,
0.2747437059879303,
0.4882162809371948,
0.577504575252533,
0.04991602152585983,
-0.09424665570259094,
-0.00804865825921297,
-0.007061461452394724,
0.374390184879303,
-0.0001483867526985705,
-0.16733810305595398,
0.47950220108032227,
0.022830862551927567,
0.27503883838653564,
-0.026658067479729652,
-0.13548031449317932,
-0.16549146175384521,
0.06681602448225021,
0.009089921601116657,
-0.14419005811214447,
0.0008443098049610853,
-0.13143935799598694,
0.0769861564040184,
-0.449632853269577,
0.2652006447315216,
-0.23791034519672394,
-0.17900221049785614,
0.17996452748775482,
-0.10001760721206665,
0.07081625610589981,
-0.12669941782951355,
0.1342819333076477,
-0.020694587379693985,
-0.11324713379144669,
-0.11132799834012985,
0.12971210479736328,
-0.21313169598579407,
0.227444589138031,
-0.007411547005176544,
-0.3920823037624359,
0.3760804533958435,
-0.09818437695503235,
0.3529302775859833,
0.04786429926753044,
0.142163947224617,
-0.12914876639842987,
-0.15849193930625916,
-0.08737951517105103,
-0.07182379066944122,
0.1139058843255043,
-0.15250468254089355,
0.3168796896934509,
-0.2817803919315338,
0.03912501037120819,
-0.41341039538383484,
-0.3401998281478882,
0.15837301313877106,
-0.023116584867239,
-0.28173619508743286,
-0.22678141295909882,
-0.27781033515930176,
0.20355281233787537,
0.017787575721740723,
0.009934290312230587,
-0.04638189077377319,
-0.05780201032757759,
-0.1742766797542572,
-0.15285716950893402,
0.2357306033372879,
0.40273720026016235,
-0.20606255531311035,
-0.22155903279781342,
-0.043794576078653336,
-0.15604616701602936,
0.35605961084365845,
0.253625750541687,
-0.17807520925998688,
0.30561450123786926,
-0.18697558343410492,
0.1814292073249817,
0.41210001707077026,
-0.4824196398258209,
-0.4623405337333679,
0.34754714369773865,
-0.17740969359874725,
0.08414158225059509,
0.34036189317703247,
-0.07657913118600845,
0.4955599009990692,
-0.19906170666217804,
-0.36748844385147095,
0.558844804763794,
-0.2115413397550583,
-0.12844084203243256,
-0.19923214614391327,
-0.2120351493358612,
0.12967561185359955,
0.39947712421417236,
0.09638990461826324,
0.38840430974960327,
0.03291141614317894,
0.09278741478919983,
0.3912809193134308,
-0.01118842326104641,
0.5302358269691467,
-0.03982524573802948,
0.1653413325548172,
0.09334170818328857,
0.126001238822937,
-0.3339467942714691,
0.02917170524597168,
0.08820437639951706,
0.13469168543815613,
0.16387106478214264,
0.1431141346693039,
-0.006923719309270382,
0.01811598800122738,
-0.2439243346452713,
-0.4402570426464081,
-0.19331058859825134,
-0.06433898210525513,
0.2180069386959076,
0.6305691599845886,
-0.32454660534858704,
-0.3223573565483093,
-0.056446440517902374,
0.09571157395839691,
0.02240314520895481,
-0.3555353879928589,
0.48541319370269775,
0.17501170933246613,
-0.13788647949695587,
-0.06239893659949303,
-0.1549348384141922,
-0.2792489230632782,
-0.3736249804496765,
0.1042342483997345,
0.2754533588886261,
-0.04929045960307121,
0.13747386634349823,
0.24448473751544952,
-0.1144605502486229,
0.11965599656105042,
-0.2800709307193756,
0.1447879821062088,
0.15170231461524963,
0.026299623772501945,
-0.03692047297954559,
0.10565374791622162,
0.44883954524993896,
-0.12635405361652374,
0.15968084335327148,
-0.03176078200340271,
0.12207851558923721,
0.2391723394393921,
-0.06158507242798805,
-0.29052087664604187,
0.09445178508758545,
0.010797012597322464,
-0.2886224687099457,
0.23361696302890778,
-0.18025533854961395,
-0.3940914273262024,
-0.00895371101796627,
-0.16159263253211975,
-0.19776706397533417,
0.005599827039986849,
0.09276784211397171,
-0.05836930498480797,
0.2213345170021057,
0.11539582908153534,
0.22066067159175873,
0.45450401306152344,
0.01432195957750082,
0.12673306465148926,
0.02295692078769207,
0.21725046634674072,
0.03286470100283623,
-0.06222694739699364,
-0.010403245687484741,
-0.07828768342733383,
0.08005540072917938,
-0.23203378915786743,
0.029356740415096283,
0.06923697888851166,
-0.3264918029308319,
-0.031244760379195213,
0.10350032895803452,
-0.01590636558830738,
-0.05584099143743515,
-0.2748686373233795,
-0.12626394629478455,
-0.4773797392845154,
-0.08579938113689423,
0.11581964790821075,
0.28401872515678406,
-0.2343589812517166,
0.1120975986123085,
0.22572700679302216,
0.20187722146511078,
0.09996099025011063,
0.6861428618431091,
-0.06811373680830002,
0.2938070297241211,
-0.03799842298030853,
-0.08659062534570694,
0.0861782431602478,
0.032573193311691284,
-0.005466119386255741,
0.017246650531888008,
0.3180842697620392,
-0.10718563199043274,
-0.1507675051689148,
-0.14215664565563202,
0.1396573781967163,
0.157273530960083,
-0.0061132824048399925,
0.19086331129074097,
0.25965258479118347,
0.09427114576101303,
0.014771305955946445,
0.3015552759170532,
-0.014424859546124935,
-0.18509447574615479,
-0.07257109880447388,
0.020059049129486084,
-0.022001594305038452,
0.10533975064754486,
0.07142036408185959,
0.13506947457790375,
-0.5741364359855652,
-0.11031942814588547,
0.1514456570148468,
0.4341512620449066,
0.1620616465806961,
-0.308114230632782,
0.07415493577718735,
-0.20468157529830933,
-0.08378370851278305,
0.06113908439874649,
0.19346635043621063,
-0.6808112859725952,
0.24501599371433258,
-0.2307180017232895,
-0.17109836637973785,
-0.2517699897289276,
-0.002216507913544774,
0.02158660627901554,
0.3401457369327545,
-0.21494115889072418,
-0.37249064445495605,
0.16690847277641296,
0.12882398068904877,
0.15068842470645905,
0.499743789434433,
0.3359588384628296,
0.01856023445725441,
0.2461107075214386,
-0.12614797055721283,
-0.09856078773736954,
0.3742191195487976,
-0.03229399770498276,
0.10802464932203293,
0.3546367287635803,
0.21770012378692627,
-0.06276971846818924,
0.6847811341285706,
0.3673385679721832,
-0.007278853096067905,
0.25193557143211365,
0.06046217679977417,
-0.3771800696849823,
0.2624775469303131,
0.05321677401661873,
0.38723376393318176,
-0.069263756275177,
-0.0042585222981870174,
0.3896636664867401,
0.06886551529169083,
0.2607905864715576,
-0.35976630449295044,
-0.1988830417394638,
-0.010939022526144981,
0.07322750985622406,
-0.10003165900707245,
-0.26450854539871216,
0.2502066195011139,
-0.3910617530345917,
-0.22631682455539703,
-0.09377133846282959,
0.12065252661705017,
-0.0165997426956892,
0.269618958234787,
0.4421622157096863,
0.23454545438289642,
-0.3730180263519287,
0.2232348620891571,
-0.23887743055820465,
-0.1237923726439476,
-0.08177992701530457,
-0.015675563365221024,
0.2256258726119995,
0.021744664758443832,
0.31569337844848633,
-0.012643146328628063,
0.3779910206794739,
-0.2337818741798401,
-0.09383288025856018,
-0.4844171702861786,
-0.4311337471008301,
0.112226203083992,
-0.08733061701059341,
-0.3538045287132263,
0.446277916431427,
-0.5912213921546936,
0.15685047209262848,
-0.3123341202735901,
-0.15186965465545654,
0.11503807455301285,
-0.004351367242634296,
-0.3764224052429199,
-0.2770944833755493,
-0.11945419758558273,
-0.4327888786792755,
-0.06401277333498001,
-0.11208093166351318,
-0.045090578496456146,
-0.06222844123840332,
-0.04812684655189514,
0.10544522851705551,
-0.2978598177433014,
0.13723820447921753,
0.1504855901002884,
-0.05141765996813774,
0.022348303347826004,
-0.19552913308143616,
0.10629939287900925,
0.37058764696121216,
0.30445149540901184,
0.38516920804977417,
0.4489278197288513,
-0.4912438690662384,
-0.386099636554718,
-0.04087061434984207,
0.1253969371318817,
0.2308129072189331,
0.008795641362667084,
0.08274979889392853,
0.30020490288734436,
-0.05726439505815506,
-0.06785895675420761,
-0.5000573992729187,
-0.2672557830810547,
0.024462075904011726,
0.02009459212422371,
-0.4728280007839203,
-0.714718759059906,
0.22410182654857635,
0.15224622189998627,
-0.13680852949619293,
-0.03217758983373642,
-0.06947621703147888,
-0.26120275259017944,
0.26221325993537903,
0.22494003176689148,
0.8707523941993713,
-0.10216003656387329,
-0.04206644371151924,
0.07384048402309418,
0.2748677432537079,
0.7067088484764099,
0.31991782784461975,
0.10016557574272156,
-0.2827218770980835,
-0.3105248212814331,
-0.19791272282600403,
-0.11090664565563202,
-0.005718141328543425,
0.5164133310317993,
-0.5429205894470215,
0.3605954051017761,
0.021928148344159126,
-0.0996977686882019,
0.1444532871246338,
0.09367111325263977,
0.13575440645217896,
-0.1352728307247162,
-0.301586776971817,
0.02539057284593582,
-0.19551686942577362,
0.2485634684562683,
-0.1389930546283722,
-0.263238787651062,
0.19338458776474,
0.20516888797283173,
0.20742802321910858,
-0.06681815534830093,
-0.012125852517783642,
-0.10470283031463623,
0.4981983006000519,
-0.08495213091373444,
0.24544276297092438,
0.0036707031540572643,
0.3181897699832916,
-0.25707095861434937,
0.0013379480224102736,
-0.05765411630272865,
-0.1081552505493164,
-0.10825948417186737,
-0.03605595976114273,
0.06418944895267487,
0.43727266788482666,
0.05691180378198624,
-0.22568900883197784,
0.23043732345104218,
0.15759649872779846,
-0.28383389115333557,
-0.1787344366312027,
-0.2039138227701187,
0.1599760800600052,
-0.3195154666900635,
-0.14816837012767792,
-0.022608738392591476,
0.06512689590454102,
-0.03487659618258476,
-0.08008326590061188,
0.34416139125823975,
-0.31701257824897766,
0.3526715338230133,
0.002746366895735264,
0.10891753435134888,
-0.1081153079867363,
0.2389676421880722,
0.24485313892364502,
-0.06834503263235092,
0.07959461957216263,
-0.12282975763082504,
0.03937625512480736,
0.005526333581656218,
-0.31980833411216736,
0.13805198669433594,
-0.5434181690216064,
0.2638339698314667,
-0.18510942161083221,
0.24794445931911469,
-0.10677164047956467,
0.20948253571987152,
0.2634001672267914,
-0.06447657942771912,
-0.2166621834039688,
-0.3531404435634613,
-0.3530885577201843,
-0.15703992545604706,
-0.044242825359106064,
0.12845180928707123,
0.07065147906541824,
0.04631936177611351,
-0.015834994614124298,
0.27579280734062195,
-0.1610550880432129,
-0.1002328172326088,
-0.03415989130735397,
0.10603927075862885,
0.3885423541069031,
0.23842471837997437,
-0.34577855467796326,
0.26486697793006897,
-0.1020127609372139,
0.11184798926115036,
-0.013522855937480927,
0.023610465228557587,
-0.06516409665346146,
0.21684439480304718,
0.21071963012218475,
-0.2215079367160797,
-0.08264139294624329,
0.016009243205189705,
-0.14351271092891693,
-0.08457928150892258,
0.18110023438930511,
-0.02069290541112423,
-0.14976853132247925,
0.24869009852409363,
0.7305859923362732,
-0.43849891424179077,
-0.45409566164016724,
0.40018537640571594,
0.20967096090316772,
-0.13511398434638977,
0.06735054403543472,
0.30714571475982666,
0.17548975348472595,
-0.2053290158510208,
-0.0024762493558228016,
0.2844805121421814,
0.6360449194908142,
0.1042022854089737,
0.3212517499923706,
-0.24103330075740814,
0.3320279121398926,
-0.010444721207022667,
0.49073106050491333,
0.41583895683288574,
-0.14456309378147125,
0.0061383661814033985,
0.34537646174430847,
0.07190816849470139,
-0.0637940838932991,
0.12392818927764893,
0.17775100469589233,
0.16276578605175018,
-0.1147235855460167,
0.5678814649581909,
-0.24392110109329224,
-0.018772758543491364,
-0.32283005118370056,
0.06917670369148254,
0.4023541212081909,
0.19334062933921814,
-0.09506415575742722,
0.30298539996147156,
0.24839042127132416,
0.07961294054985046,
0.27000758051872253,
0.31574466824531555,
0.1950947344303131,
-0.09590010344982147,
-0.20323680341243744,
0.7602376937866211,
-0.22015438973903656,
-0.15917068719863892,
-0.02944096550345421,
-0.46861690282821655,
0.3586609959602356,
0.3634355068206787,
0.21234816312789917,
-0.06844222545623779,
-0.13708412647247314,
0.5740571618080139,
-0.12701736390590668,
-0.2321818470954895,
-0.002576300408691168,
0.3248000144958496,
0.060699619352817535,
-0.37785249948501587,
-0.34095239639282227,
-0.18541188538074493,
-0.12402525544166565,
0.0476575642824173,
-0.10814991593360901,
0.05534190312027931,
0.5609671473503113,
-0.1190459355711937,
0.07118487358093262,
-0.5261397957801819,
-0.34531617164611816,
0.3194196820259094,
0.11496388912200928,
-0.07424052059650421,
0.2584952712059021,
-0.06265993416309357,
0.07442286610603333,
0.13084115087985992,
0.40964558720588684,
0.019416138529777527,
0.24992775917053223,
0.00965888425707817,
0.03828640654683113,
-0.0724940076470375,
0.1148359403014183,
0.08926834166049957,
0.10268393903970718,
-0.29613953828811646,
-0.19336871802806854,
0.4360487759113312,
-0.05942506343126297,
0.023124217987060547,
0.17970022559165955,
0.14177459478378296,
-0.10730364918708801,
-0.47296714782714844,
0.15202896296977997,
0.021126382052898407,
-0.049981504678726196,
0.21130362153053284,
0.1267898976802826,
-0.3962583839893341,
-0.05875398591160774,
0.073453888297081,
-0.5963242650032043,
0.03794475644826889,
-0.15346375107765198,
-0.03253323212265968,
-0.13564275205135345,
0.49520546197891235,
0.4738098978996277,
0.14622481167316437,
-0.11245155334472656,
-0.3779444694519043,
-0.2596482038497925,
0.25360727310180664,
-0.19999922811985016,
-0.34759244322776794,
-0.2860645055770874,
-0.020397549495100975,
0.0625808984041214,
0.10932262986898422,
-0.5165177583694458,
0.2676757276058197,
0.015499920584261417,
0.6406422853469849,
-0.007847800850868225,
-0.3341735601425171,
-0.2320220172405243,
0.4174196720123291,
0.1265353113412857,
-0.19671998918056488,
-0.08519847691059113,
0.10078618675470352,
-0.1088239997625351,
0.07886363565921783,
0.2305404096841812,
0.11266785115003586,
-0.3531215488910675,
0.10948807001113892,
0.1274302899837494,
0.3620074689388275,
-0.05937322601675987,
0.19481901824474335,
0.07565796375274658,
0.16064320504665375,
-0.382602721452713,
-0.19718968868255615,
0.06561087816953659,
0.07941639423370361,
-0.12152622640132904,
0.15128357708454132,
-0.33433806896209717,
-0.2985699772834778,
0.23226460814476013,
0.17948326468467712,
-0.1885070502758026,
0.017603127285838127,
-0.26116943359375,
-0.03827847167849541,
0.451354444026947,
0.27865955233573914,
-0.08302847295999527,
-0.008343330584466457,
-0.1770680844783783,
-0.0689450278878212,
0.24327616393566132,
-0.3367721736431122,
-0.0019335811957716942,
-0.24295267462730408,
-0.03597759082913399,
-0.39636293053627014,
-0.33869802951812744,
-0.6620280146598816,
0.15875662863254547,
0.22873683273792267,
-0.007100785616785288,
0.06440099328756332,
0.2964571416378021,
0.2667245864868164,
-0.046175844967365265,
-0.08403518795967102,
0.12056345492601395,
0.06325589120388031,
-0.06286562979221344,
0.021628305315971375,
-0.13021492958068848
] |
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.09395529329776764,
-0.13829277455806732,
-0.11098213493824005,
0.11790533363819122,
0.3646460473537445,
0.13861700892448425,
0.306993693113327,
0.5121554136276245,
0.16887563467025757,
-0.010042821057140827,
0.09551207721233368,
0.06016834080219269,
-0.41010910272598267,
0.05727999657392502,
-0.23605230450630188,
0.2184816300868988,
0.09927041828632355,
-0.11772044748067856,
-0.23109681904315948,
-0.13838377594947815,
-0.046339210122823715,
-0.026428496465086937,
-0.0634162649512291,
0.05024506896734238,
-0.7488372921943665,
-0.12223603576421738,
0.21669013798236847,
0.017117751762270927,
-0.1799691915512085,
-0.4650106132030487,
-0.09187748283147812,
0.20499150454998016,
0.18334539234638214,
0.23775169253349304,
-0.00010856356675503775,
-0.20621243119239807,
0.3049525320529938,
0.05612812936306,
-0.29486244916915894,
0.3130481541156769,
-0.17657925188541412,
-0.4536099433898926,
0.26463478803634644,
-0.12875011563301086,
-0.032001905143260956,
-0.5764783024787903,
0.12004788964986801,
-0.5471832752227783,
0.19710399210453033,
0.24207742512226105,
0.25319263339042664,
0.1721661537885666,
-0.1171070784330368,
0.183651402592659,
0.16046646237373352,
0.19549427926540375,
-0.04644377529621124,
-0.042694397270679474,
0.24072898924350739,
-0.14497968554496765,
-0.2897663712501526,
0.5247575640678406,
-0.21061739325523376,
-0.09366399049758911,
0.25630810856819153,
0.07429574429988861,
-0.006666398607194424,
-0.4359250068664551,
0.20023111999034882,
0.22936096787452698,
0.2505163252353668,
-0.4348902702331543,
-0.23966361582279205,
-0.539596676826477,
0.15251044929027557,
-0.20230121910572052,
-0.03930406644940376,
0.1188085675239563,
0.02594429813325405,
0.2967512905597687,
-0.3168109953403473,
-0.12531732022762299,
0.07272748649120331,
-0.19463475048542023,
0.28145337104797363,
0.09045202285051346,
-0.09544194489717484,
-0.019959917291998863,
0.24265502393245697,
-0.2031736820936203,
-0.005536806304007769,
0.01908605545759201,
-0.1287660449743271,
0.07330456376075745,
-0.36839941143989563,
-0.17602650821208954,
0.27142277359962463,
0.45465442538261414,
-0.010676119476556778,
0.15692920982837677,
-0.5877222418785095,
0.030809786170721054,
0.14492756128311157,
-0.06871587783098221,
0.24834153056144714,
0.06827637553215027,
0.3815247714519501,
0.48427194356918335,
0.0695502907037735,
0.0023660175502300262,
0.21825246512889862,
0.16363252699375153,
0.32791849970817566,
-0.38597142696380615,
0.5891599059104919,
0.09341560304164886,
0.4714001417160034,
-0.2433215081691742,
-0.05034109205007553,
-0.0017934718634933233,
-0.09076080471277237,
-0.14494943618774414,
0.09983768314123154,
0.2186502069234848,
0.2573610842227936,
-0.11249224096536636,
-0.02094964310526848,
0.18045538663864136,
-0.17871558666229248,
-0.11130917072296143,
-0.36083781719207764,
0.226565420627594,
-0.03868881240487099,
0.1814369112253189,
0.15557006001472473,
-0.013206842355430126,
-0.03370514512062073,
0.16456539928913116,
-0.09999649226665497,
-0.006475325673818588,
0.25456440448760986,
-0.0888238251209259,
0.1127234697341919,
0.4412617087364197,
-0.2111656218767166,
0.12934662401676178,
0.07443556934595108,
-0.1091436818242073,
-0.21725435554981232,
-0.009576793760061264,
0.02665167860686779,
-0.3440966308116913,
-0.11746572703123093,
0.24349810183048248,
-0.33806201815605164,
0.06317344307899475,
0.041572123765945435,
0.060549959540367126,
0.26599109172821045,
0.26765668392181396,
0.21040165424346924,
-0.17640705406665802,
-0.12357939779758453,
-0.16068296134471893,
0.046920645982027054,
0.7568492889404297,
-0.10104180872440338,
-0.15242508053779602,
-0.15447653830051422,
-0.3426133990287781,
0.3341268002986908,
0.28437766432762146,
0.035681065171957016,
0.28312429785728455,
-0.31321606040000916,
0.11707280576229095,
-0.07237604260444641,
-0.3900969624519348,
-0.012004162184894085,
0.323090136051178,
-0.28810667991638184,
0.10075783729553223,
0.5861544609069824,
0.10280158370733261,
0.0012946812203153968,
-0.23835286498069763,
0.009368757717311382,
-0.16937680542469025,
0.09350407868623734,
-0.057939279824495316,
-0.20757277309894562,
-0.18307040631771088,
-0.01575966365635395,
0.18083111941814423,
-0.10682150721549988,
-0.22021080553531647,
-0.04643116146326065,
0.005320157390087843,
0.343803346157074,
-0.10566771775484085,
0.0014571502106264234,
0.22164559364318848,
0.2044258862733841,
-0.13549454510211945,
-0.12591804563999176,
-0.13560418784618378,
-0.3863963186740875,
-0.047721121460199356,
-0.08313040435314178,
0.05287053808569908,
-0.427862286567688,
-0.5052878260612488,
0.08258937299251556,
0.0003734883212018758,
-0.18546651303768158,
-0.22811006009578705,
0.13089674711227417,
0.00357791967689991,
-0.2127636820077896,
-0.10323146730661392,
-0.24435454607009888,
0.32790690660476685,
-0.09351397305727005,
0.22454561293125153,
-0.3384842574596405,
-0.33949631452560425,
0.09674081951379776,
-0.12398646026849747,
0.3080797493457794,
0.08801662176847458,
0.3376419246196747,
0.0235520601272583,
0.23049452900886536,
0.2799668610095978,
-0.022796835750341415,
0.6912987232208252,
0.09087885171175003,
0.3066895306110382,
0.05186862498521805,
0.10615816712379456,
0.12134478241205215,
-0.09176332503557205,
-0.2069842666387558,
-0.04157254099845886,
0.01728767529129982,
0.3455807566642761,
0.09090184420347214,
0.02990785986185074,
-0.21135109663009644,
-0.04239773377776146,
-0.12061087787151337,
-0.07281240075826645,
-0.12424588203430176,
-0.5477374196052551,
0.33088454604148865,
0.051930930465459824,
0.060607559978961945,
0.26494845747947693,
0.03946904465556145,
0.33602002263069153,
0.4038296043872833,
-0.21072989702224731,
0.12445923686027527,
0.08450063318014145,
0.01593848131597042,
0.04634068161249161,
0.17571181058883667,
0.1541772186756134,
0.14224837720394135,
0.32176920771598816,
0.049524903297424316,
0.23993051052093506,
0.22445262968540192,
-0.20688767731189728,
0.23462915420532227,
0.012448658235371113,
-0.19780245423316956,
-0.04437360540032387,
-0.20632559061050415,
-0.20442162454128265,
-0.1408553272485733,
-0.1601754128932953,
-0.3429882526397705,
0.29012802243232727,
-0.39853498339653015,
0.003582292003557086,
-0.38582128286361694,
-0.28592362999916077,
-0.19350750744342804,
0.08093643933534622,
0.08048246055841446,
-0.2955828309059143,
0.25984227657318115,
-0.0968649834394455,
-0.3056243360042572,
0.20365935564041138,
-0.16060884296894073,
0.060657892376184464,
0.1127743273973465,
0.12309446185827255,
-0.18396449089050293,
0.10992895066738129,
-0.03641846403479576,
0.08533043414354324,
0.07215694338083267,
-0.07068347930908203,
0.4171568751335144,
-0.12392038106918335,
-0.05362385883927345,
-0.19751597940921783,
-0.2242770791053772,
-0.03228149563074112,
-0.20841218531131744,
0.029885798692703247,
0.2623639702796936,
0.09609977900981903,
0.14628899097442627,
-0.053972743451595306,
-0.3215300440788269,
0.029573170468211174,
0.14257709681987762,
-0.03072533756494522,
-0.15383614599704742,
0.060168858617544174,
-0.168592631816864,
-0.3298368752002716,
-0.2052045613527298,
-0.24791257083415985,
0.10571961104869843,
-0.02582423761487007,
0.0914529487490654,
0.3211137652397156,
-0.1065983697772026,
0.15683098137378693,
-0.3661247193813324,
0.30126509070396423,
-0.028612762689590454,
-0.2743656635284424,
0.23136118054389954,
0.07944654673337936,
-0.013722668401896954,
0.006579675246030092,
0.00033571949461475015,
-0.3040708005428314,
-0.2560657262802124,
-0.5025678873062134,
-0.10283758491277695,
-0.48061516880989075,
-0.0817895457148552,
-0.11250761896371841,
0.10758233070373535,
0.25453126430511475,
0.28325510025024414,
-0.20986278355121613,
0.06348682194948196,
0.10328809916973114,
-0.04173114523291588,
-0.4492867887020111,
0.19218505918979645,
-0.22490368783473969,
0.25744879245758057,
0.17162257432937622,
0.24377915263175964,
0.6294997334480286,
0.07638131082057953,
-0.06252691149711609,
-0.06628573685884476,
0.520774781703949,
-0.027508975937962532,
-0.27541840076446533,
-0.0688883438706398,
0.2339812070131302,
-0.27321097254753113,
0.033129215240478516,
0.028368541970849037,
0.3133291006088257,
0.03144976124167442,
-0.07863718271255493,
0.11964595317840576,
-0.3498460352420807,
-0.03247798979282379,
0.13526973128318787,
-0.12618719041347504,
-0.19916056096553802,
0.27581554651260376,
0.08508659899234772,
-0.12635087966918945,
-0.01749623939394951,
0.3585093915462494,
0.18474768102169037,
-0.01999199390411377,
-0.29381707310676575,
0.196105495095253,
-0.6184142827987671,
0.21718330681324005,
-0.18617911636829376,
-0.17569513618946075,
-0.27188852429389954,
-0.21144187450408936,
0.05548504739999771,
0.356210857629776,
0.2229136824607849,
-0.14500123262405396,
0.19608180224895477,
0.0035949256271123886,
0.10362549126148224,
-0.23645749688148499,
0.0014580516144633293,
-0.3731633722782135,
0.24737302958965302,
0.5612371563911438,
0.2165384292602539,
-0.17433388531208038,
-0.22768156230449677,
0.20848874747753143,
0.22374817728996277,
0.053588468581438065,
-0.3068559169769287,
-0.2949359714984894,
-0.14525116980075836,
-0.3326517641544342,
0.08715640008449554,
0.18666452169418335,
-0.034314848482608795,
-0.26624056696891785,
-0.05461818352341652,
0.25020524859428406,
-0.23603586852550507,
0.4416203200817108,
-0.25121960043907166,
0.16261552274227142,
0.04650687053799629,
0.21306531131267548,
0.05702926591038704,
0.07404862344264984,
0.1904067099094391,
0.4802785813808441,
0.09432904422283173,
-0.21194982528686523,
-0.16664758324623108,
-0.029911208897829056,
0.20812386274337769,
0.4218249022960663,
-0.2831207513809204,
0.20686087012290955,
0.2284543663263321,
0.4665273427963257,
-0.20720753073692322,
0.07177665084600449,
0.24876518547534943,
0.0010954099707305431,
-0.26261770725250244,
-0.023935804143548012,
0.28683555126190186,
0.3003082275390625,
-0.13520357012748718,
0.3484824299812317,
0.2236122190952301,
-0.36945536732673645,
0.036941047757864,
0.0067661660723388195,
0.8249833583831787,
-0.1158919408917427,
0.12409648299217224,
0.03409026563167572,
-0.23638568818569183,
0.48357096314430237,
0.10114354640245438,
-0.0739331766963005,
-0.1816164255142212,
-0.24031059443950653,
0.18366219103336334,
-0.045295968651771545,
0.22296153008937836,
-0.2261369675397873,
-0.10830345749855042,
0.23677688837051392,
-0.5038368105888367,
-0.05483315512537956,
-0.3217775821685791,
0.5082200765609741,
-0.40116891264915466,
-0.12093379348516464,
-0.14829842746257782,
0.1056726947426796,
-0.09436945617198944,
0.20239490270614624,
-0.015599207952618599,
-0.1245628148317337,
0.30615469813346863,
-0.17720983922481537,
-0.19292104244232178,
-0.16829639673233032,
0.1928420215845108,
-0.008725589141249657,
-0.25351279973983765,
-0.06765253841876984,
-0.021643854677677155,
0.18624894320964813,
0.23381002247333527,
0.39838477969169617,
-0.0748143345117569,
-0.11492469906806946,
0.03965265676379204,
0.1570654809474945,
0.017080340534448624,
0.027555575594305992,
0.39776578545570374,
0.08577490597963333,
-0.26723816990852356,
0.06582122296094894,
0.18035173416137695,
-0.17076988518238068,
-0.22676652669906616,
-0.17777583003044128,
-0.08322625607252121,
-0.2662021815776825,
0.12974241375923157,
0.092961385846138,
-0.20659834146499634,
0.08400876075029373,
0.18873819708824158,
0.4445774555206299,
-0.02162894979119301,
0.18242713809013367,
-0.05483880639076233,
-0.47651055455207825,
-0.3952401876449585,
0.5040404200553894,
0.15104365348815918,
-0.126681387424469,
0.5556840300559998,
0.25041463971138,
-0.38119056820869446,
-0.3552458882331848,
0.11119706183671951,
0.34353718161582947,
-0.07732746750116348,
0.06631976366043091,
0.23604850471019745,
0.08890087902545929,
0.08911795169115067,
-0.17126256227493286,
0.04185410961508751,
-0.03768822178244591,
-0.041664741933345795,
-0.1587856411933899,
-0.6313866376876831,
0.20760108530521393,
-0.2095308005809784,
0.279284805059433,
-0.11715950816869736,
-0.0032091171015053988,
-0.05828653648495674,
0.06908810883760452,
-0.3741520047187805,
-0.2777665853500366,
0.05157744884490967,
-0.16631785035133362,
0.25836363434791565,
0.04899374768137932,
0.30957600474357605,
-0.05681515857577324,
0.1622137427330017,
-0.12771645188331604,
-0.2946115732192993,
-0.21399810910224915,
0.03178603574633598,
0.0622517466545105,
-0.38520562648773193,
0.03402198478579521,
-0.009654578752815723,
-0.1907472163438797,
0.010017244145274162,
-0.08253291249275208,
0.286401629447937,
0.5032943487167358,
0.24106664955615997,
0.32998284697532654,
-0.06502743810415268,
-0.1737879067659378,
0.09012463688850403,
-0.3782747685909271,
-0.07901952415704727,
-0.018915770575404167,
-0.1019781157374382,
-0.009223010390996933,
-0.08756064623594284,
0.0033159886952489614,
0.040035225450992584,
0.05691995471715927,
0.0982399433851242,
0.21176989376544952,
0.013917221687734127,
0.16335855424404144,
-0.14655034244060516,
0.43699246644973755,
0.3946342170238495,
0.050532519817352295,
-0.24575500190258026,
-0.22334861755371094,
-0.1581207811832428,
0.2508951723575592,
-0.11088274419307709,
-0.11317992955446243,
-0.10438095778226852,
0.3248175382614136,
-0.06886862218379974,
0.3823314607143402,
-0.19520540535449982,
-0.05377597361803055,
0.40824633836746216,
0.18217870593070984,
0.04270028695464134,
-0.3116479516029358,
0.10419126600027084,
-0.11056548357009888,
-0.24897471070289612,
-0.24023564159870148,
0.38374394178390503,
0.20995765924453735,
0.18747903406620026,
0.3255285918712616,
-0.2500397861003876,
0.48868727684020996,
-0.08363167941570282,
0.028243299573659897,
-0.12581129372119904,
-0.19165560603141785,
0.12839338183403015,
0.4202006459236145,
-0.34088435769081116,
-0.22570429742336273,
0.10944343358278275,
0.10030682384967804,
0.09106693416833878,
0.11645235121250153,
-0.05928777530789375,
0.020626049488782883,
-0.11056821048259735,
0.0652008205652237,
0.527223527431488,
0.14695771038532257,
-0.02232072502374649,
-0.14546991884708405,
0.0002115340030286461,
-0.15075159072875977,
0.002022174885496497,
0.06916043907403946,
-0.07585420459508896,
-0.08886801451444626,
0.3956035077571869,
-0.15754322707653046,
0.5541147589683533,
-0.2218865156173706,
-0.16205328702926636,
0.025440257042646408,
0.13491152226924896,
0.25450560450553894,
0.23124516010284424,
0.6053709387779236,
0.32167476415634155,
0.2831220030784607,
0.2745068073272705,
-0.06131727248430252,
0.0074726068414747715,
-0.08455071598291397,
0.45897284150123596,
-0.13633276522159576,
0.15566593408584595,
0.1265350878238678,
0.16852305829524994,
-0.18025627732276917,
0.1641698032617569,
0.07891678065061569,
-0.02320496179163456,
-0.19700957834720612,
0.5414174199104309,
0.10354124754667282,
-0.2683020830154419,
-0.22377228736877441,
0.05059351027011871,
-0.2667417824268341,
-0.15998023748397827,
0.3896867036819458,
0.10844527184963226,
0.0784001424908638,
-0.415142685174942,
0.09780704230070114,
-0.15140928328037262,
0.07097482681274414,
0.27771416306495667,
-0.022612571716308594,
-0.32284170389175415,
0.2279047966003418,
-0.36445945501327515,
0.13530761003494263,
-0.046239741146564484,
-0.25018540024757385,
-0.11090284585952759,
-0.026076702401041985,
-0.14007174968719482,
0.2400042861700058,
0.32846835255622864,
-0.22729679942131042,
-0.055145490914583206,
-0.41291001439094543,
-0.11180530488491058,
-0.029240112751722336,
0.013213594444096088,
-0.05222569406032562,
0.06363831460475922,
-0.08375370502471924,
0.4917401373386383,
-0.5058587789535522,
0.11137288063764572,
-0.10336405783891678,
0.007877541705965996,
0.11511021107435226,
0.24922101199626923,
0.27126771211624146,
0.12121834605932236,
0.20577161014080048,
-0.11389023065567017,
-0.0524764321744442,
-0.32923197746276855,
0.03831944614648819,
-0.25278398394584656,
0.17102429270744324,
0.12031392753124237,
0.13783568143844604,
-0.33076560497283936,
-0.3593442142009735,
-0.2284502536058426,
0.4239185154438019,
-0.04584168270230293,
-0.21124064922332764,
-0.04084976017475128,
0.09433035552501678,
0.23764567077159882,
0.01779954880475998,
0.014066450297832489,
0.15964347124099731,
0.09412835538387299,
0.2866966426372528,
-0.08308859169483185,
-0.6573039889335632,
0.5842889547348022,
-0.32609421014785767,
-0.08060787618160248,
0.021455340087413788,
0.6829883456230164,
0.2588312029838562,
-0.24251168966293335,
-0.6747085452079773,
0.154048353433609,
0.16017915308475494,
-0.18865975737571716,
0.008441226556897163,
0.43985575437545776,
-0.22759778797626495,
0.01709955930709839,
0.1593378633260727,
0.267263263463974,
0.12336448580026627,
0.1450192928314209,
0.03842763975262642,
-0.3869266211986542
] |
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.07459443807601929,
-0.031536947935819626,
-0.05137281119823456,
0.13141773641109467,
0.2844705879688263,
0.217928946018219,
0.26180875301361084,
0.48388540744781494,
0.05174607038497925,
-0.17403395473957062,
0.10809929668903351,
0.013671361841261387,
-0.4307381808757782,
-0.0791793167591095,
-0.15349841117858887,
0.18969489634037018,
0.08666542917490005,
-0.21382556855678558,
-0.2665445804595947,
-0.08118069171905518,
0.034307654947042465,
0.0029078295920044184,
0.0677584782242775,
0.07365436106920242,
-0.8763464689254761,
-0.15772618353366852,
0.16348136961460114,
0.04119815304875374,
-0.13455824553966522,
-0.39581021666526794,
-0.11704128980636597,
0.21720285713672638,
0.14438265562057495,
0.22530539333820343,
-0.00011298511526547372,
-0.2467205822467804,
0.2506767809391022,
0.09044939279556274,
-0.3506259620189667,
0.3797372281551361,
-0.07836057990789413,
-0.4808191657066345,
0.2577621638774872,
-0.09239592403173447,
0.1104499101638794,
-0.5984717011451721,
0.1523715853691101,
-0.5589932799339294,
0.23843137919902802,
0.2718780040740967,
0.1834261566400528,
0.15160727500915527,
0.05475202202796936,
0.08271755278110504,
0.15967145562171936,
0.30575498938560486,
0.05173926427960396,
0.02080182544887066,
0.3077191710472107,
-0.12238454818725586,
-0.2875325381755829,
0.4429539144039154,
-0.1540037840604782,
-0.14649181067943573,
0.3328668475151062,
-0.024247972294688225,
-0.05486481636762619,
-0.322050541639328,
0.20324555039405823,
0.3037863075733185,
0.2530047297477722,
-0.42617613077163696,
-0.3371696472167969,
-0.6361062526702881,
0.14880037307739258,
-0.10595911741256714,
-0.07728450000286102,
0.12713594734668732,
-0.025131365284323692,
0.31213659048080444,
-0.19534383714199066,
-0.17197798192501068,
0.12325657904148102,
-0.22169676423072815,
0.25977328419685364,
-0.005338574294000864,
-0.06399516761302948,
-0.027045559138059616,
0.3266191780567169,
-0.14457540214061737,
-0.030196204781532288,
0.03247557953000069,
-0.13136661052703857,
-0.04204430431127548,
-0.42769655585289,
-0.07212478667497635,
0.32598990201950073,
0.39037370681762695,
0.007360849529504776,
0.16435092687606812,
-0.5164457559585571,
0.05009302869439125,
0.1268525868654251,
-0.1393423080444336,
0.3606741428375244,
0.08566755056381226,
0.2658691704273224,
0.5355187058448792,
0.011528161354362965,
-0.07766059786081314,
0.18877941370010376,
0.18499623239040375,
0.3528625965118408,
-0.4127820134162903,
0.6333888173103333,
-0.04390917718410492,
0.38816556334495544,
-0.18327020108699799,
-0.05608860030770302,
0.07869541645050049,
-0.14617766439914703,
-0.07090050727128983,
0.13230293989181519,
0.11573027074337006,
0.18939046561717987,
-0.1116279885172844,
-0.032628100365400314,
0.21613995730876923,
-0.1818704903125763,
-0.09525130689144135,
-0.25708097219467163,
0.2912867069244385,
-0.06197512149810791,
0.2372436821460724,
0.13155139982700348,
-0.09192227572202682,
-0.12034306675195694,
0.15080668032169342,
-0.19845227897167206,
-0.1433120220899582,
0.14493271708488464,
-0.09184332191944122,
0.054410457611083984,
0.2532404661178589,
-0.16342870891094208,
0.15831933915615082,
0.10938477516174316,
-0.0930437222123146,
-0.2132112979888916,
-0.15707261860370636,
-0.0029675455298274755,
-0.4197717607021332,
-0.1508747786283493,
0.17698538303375244,
-0.36092880368232727,
0.12281610816717148,
0.05733132362365723,
0.038268812000751495,
0.20154377818107605,
0.21921299397945404,
0.12701274454593658,
-0.18743053078651428,
0.047402188181877136,
-0.09192617237567902,
0.06884735822677612,
0.8149482011795044,
-0.13385190069675446,
-0.11494194716215134,
-0.19923634827136993,
-0.24955911934375763,
0.21149440109729767,
0.3670784533023834,
0.08831166476011276,
0.45359498262405396,
-0.2758110463619232,
0.12758773565292358,
-0.13108552992343903,
-0.3799782991409302,
-0.052937861531972885,
0.26034557819366455,
-0.34332582354545593,
0.1315961480140686,
0.5908987522125244,
0.1757713109254837,
0.09650231152772903,
-0.15540051460266113,
0.1957789659500122,
-0.1910143494606018,
0.12595242261886597,
-0.1410338282585144,
-0.13252189755439758,
-0.1077742651104927,
-0.14863628149032593,
0.29169762134552,
-0.15313021838665009,
-0.3589290678501129,
0.05633920431137085,
0.15256589651107788,
0.2883652150630951,
-0.1712486743927002,
-0.05819812789559364,
0.3116376996040344,
0.17867787182331085,
0.026766883209347725,
-0.17985188961029053,
-0.10121889412403107,
-0.3404589295387268,
-0.05301496386528015,
-0.12267197668552399,
-0.03831217437982559,
-0.47330164909362793,
-0.38945430517196655,
0.07731450349092484,
0.08421184867620468,
-0.14817272126674652,
-0.1231563612818718,
0.08246313035488129,
0.16497498750686646,
-0.22239381074905396,
-0.11057376116514206,
-0.1733960658311844,
0.537933349609375,
-0.22868525981903076,
0.20636367797851562,
-0.3914618492126465,
-0.3222680389881134,
0.1621662825345993,
-0.20507864654064178,
0.376868337392807,
0.23217102885246277,
0.12375662475824356,
-0.04487165808677673,
0.3035086393356323,
0.2935694456100464,
0.11051896959543228,
0.773578405380249,
0.1506032794713974,
0.28286850452423096,
0.04505138471722603,
0.037112023681402206,
0.05590850114822388,
-0.10277138650417328,
-0.2085750699043274,
-0.06228544935584068,
-0.11439500749111176,
0.2769283354282379,
0.0641205683350563,
0.01310749165713787,
-0.19275328516960144,
0.01750396564602852,
-0.060406580567359924,
-0.04796728119254112,
-0.15715399384498596,
-0.4694756865501404,
0.3884258568286896,
0.035419680178165436,
0.15134377777576447,
0.30736395716667175,
0.09335897862911224,
0.2709866166114807,
0.3807006776332855,
-0.32041120529174805,
0.215866819024086,
0.18951648473739624,
-0.033789511770009995,
-0.053242966532707214,
0.09269361943006516,
0.1728970855474472,
0.1485685259103775,
0.2563021183013916,
0.06063882261514664,
0.2134076952934265,
0.27053961157798767,
-0.15009848773479462,
0.20709660649299622,
-0.0006091531831771135,
-0.2361583709716797,
-0.03108382783830166,
-0.1758466213941574,
-0.10369328409433365,
-0.09507017582654953,
-0.1284288614988327,
-0.33637115359306335,
0.3529497981071472,
-0.4624250531196594,
0.06963072717189789,
-0.43495476245880127,
-0.11109050363302231,
-0.20902252197265625,
0.22916141152381897,
0.06480228155851364,
-0.45131272077560425,
0.12718766927719116,
-0.027210159227252007,
-0.23790305852890015,
0.056979868561029434,
-0.06790899485349655,
0.08434992283582687,
0.210168719291687,
0.017512846738100052,
-0.08165757358074188,
-0.08848153054714203,
-0.10318814963102341,
0.00862829852849245,
0.14402756094932556,
-0.02047472447156906,
0.376758337020874,
-0.17952868342399597,
0.030474046245217323,
-0.26233214139938354,
-0.2368261218070984,
-0.03198905661702156,
-0.11962147057056427,
0.11114988476037979,
0.31463947892189026,
0.11304733157157898,
0.09803172945976257,
-0.10441770404577255,
-0.33483919501304626,
0.07842689752578735,
0.15604496002197266,
0.05410056188702583,
-0.25346386432647705,
-0.054903917014598846,
0.02376515045762062,
-0.22336065769195557,
-0.29454633593559265,
-0.27098771929740906,
0.26209306716918945,
-0.05070870369672775,
0.025469502434134483,
0.3799550235271454,
-0.08197500556707382,
0.2585389018058777,
-0.4855400323867798,
0.4720437228679657,
0.03245353326201439,
-0.19486916065216064,
0.24672472476959229,
0.15711858868598938,
-0.01810535416007042,
-0.025026747956871986,
0.03431151062250137,
-0.36092856526374817,
-0.19471527636051178,
-0.5805232524871826,
-0.06692563742399216,
-0.41844841837882996,
-0.07790997624397278,
-0.05495298281311989,
0.19386136531829834,
0.19248998165130615,
0.21076713502407074,
-0.14804790914058685,
0.16881665587425232,
0.059531599283218384,
0.01406390406191349,
-0.3548664450645447,
0.18526078760623932,
-0.2460647076368332,
0.177948996424675,
0.26438838243484497,
0.18771253526210785,
0.7277321815490723,
0.03530333191156387,
-0.04184334725141525,
-0.12230605632066727,
0.6265466213226318,
-0.10646353662014008,
-0.33339086174964905,
-0.03439207002520561,
0.13796061277389526,
-0.26275134086608887,
0.02938186563551426,
0.09896024316549301,
0.43340712785720825,
0.0009445678442716599,
-0.1464274823665619,
0.03779389709234238,
-0.507455050945282,
0.054175011813640594,
0.17588788270950317,
0.03158190846443176,
-0.2065461277961731,
0.3023812770843506,
0.0383986234664917,
-0.17403170466423035,
0.05838891491293907,
0.3313588798046112,
0.19770479202270508,
0.0018872214714065194,
-0.2859818637371063,
0.1939883828163147,
-0.47525447607040405,
0.3170710802078247,
-0.18663747608661652,
-0.05709124356508255,
-0.37112903594970703,
-0.17165382206439972,
-0.027930479496717453,
0.28965407609939575,
0.11757349222898483,
-0.01375308446586132,
0.10209419578313828,
-0.1267557442188263,
0.14491014182567596,
-0.37119626998901367,
0.01835327409207821,
-0.3257528245449066,
0.1876353621482849,
0.5697364211082458,
0.24302996695041656,
-0.26586243510246277,
-0.028630472719669342,
0.045128464698791504,
0.2988794147968292,
-0.02591644413769245,
-0.2542478144168854,
-0.01486997026950121,
-0.2185213267803192,
-0.28756460547447205,
0.014141279272735119,
0.05021950602531433,
0.032784197479486465,
0.11819292604923248,
-0.04664039611816406,
0.2007245123386383,
-0.24781271815299988,
0.43090155720710754,
-0.2870560586452484,
0.22009190917015076,
-0.010967644862830639,
0.13722577691078186,
0.005460050422698259,
0.06652697920799255,
0.21362927556037903,
0.3995424509048462,
0.09923280775547028,
-0.16748522222042084,
-0.12569080293178558,
-0.1075531542301178,
0.19438594579696655,
0.47592848539352417,
-0.2531188726425171,
0.11031138896942139,
0.25239869952201843,
0.36253252625465393,
-0.259071409702301,
0.130203977227211,
0.30830615758895874,
0.05625753104686737,
-0.2572052776813507,
-0.07837358862161636,
0.17770396173000336,
0.37568938732147217,
-0.05667329952120781,
0.34775835275650024,
0.28917503356933594,
-0.3465954661369324,
0.040070269256830215,
0.05031627044081688,
0.8999300599098206,
-0.0925033912062645,
0.11473777890205383,
0.11900154501199722,
-0.26703813672065735,
0.5149238705635071,
0.015337501652538776,
-0.13426277041435242,
-0.08837450295686722,
-0.2309800386428833,
0.21347609162330627,
-0.120579794049263,
0.22709347307682037,
-0.20720240473747253,
-0.0472169928252697,
0.18169279396533966,
-0.5165395736694336,
-0.15731334686279297,
-0.33180904388427734,
0.5256659984588623,
-0.4885505735874176,
-0.20178599655628204,
-0.22656245529651642,
0.09994888305664062,
-0.12947167456150055,
0.08254832774400711,
0.013237401843070984,
-0.11968997865915298,
0.3383234739303589,
-0.10663202404975891,
-0.35346364974975586,
-0.2431926429271698,
0.22967419028282166,
-0.06424293667078018,
-0.1778327077627182,
0.00511443056166172,
-0.0952356606721878,
0.08437129110097885,
0.18775734305381775,
0.4290836751461029,
-0.003918119706213474,
-0.08739057183265686,
-0.048019733279943466,
0.16648204624652863,
0.14776454865932465,
-0.07885205000638962,
0.46678265929222107,
0.12068421393632889,
-0.14232610166072845,
0.043677616864442825,
0.14458699524402618,
-0.2751358449459076,
-0.12258492410182953,
-0.2105625569820404,
-0.11631743609905243,
-0.17386503517627716,
0.05482320487499237,
0.12700064480304718,
-0.32045215368270874,
0.16296933591365814,
0.15372416377067566,
0.5195233225822449,
-0.07847554236650467,
0.22953517735004425,
-0.33115240931510925,
-0.44570377469062805,
-0.3362944722175598,
0.43382689356803894,
-0.023904850706458092,
-0.179146409034729,
0.5448347330093384,
0.34143009781837463,
-0.3074030876159668,
-0.27034616470336914,
0.2222336083650589,
0.41226938366889954,
-0.11888021975755692,
-0.012039856053888798,
0.1202390044927597,
0.1167798861861229,
0.1398666501045227,
-0.18416550755500793,
0.24816080927848816,
-0.04164450988173485,
-0.031137831509113312,
-0.21106718480587006,
-0.5866542458534241,
0.2237888127565384,
-0.07959043234586716,
0.27559152245521545,
-0.04282842576503754,
-0.03583941608667374,
-0.14548160135746002,
0.16870087385177612,
-0.31603172421455383,
-0.36707979440689087,
0.04134533554315567,
-0.1166432574391365,
0.3834860920906067,
-0.10878646373748779,
0.25679904222488403,
-0.1550723761320114,
0.14988040924072266,
-0.08771469444036484,
-0.2334449142217636,
-0.15530842542648315,
-0.04793963581323624,
0.06707773357629776,
-0.2971939146518707,
0.08072458952665329,
0.02349206991493702,
-0.3290581703186035,
0.02545923925936222,
-0.20642977952957153,
0.12088330835103989,
0.531044602394104,
0.1693323254585266,
0.10673993080854416,
-0.1382099986076355,
-0.10640642791986465,
0.061108533293008804,
-0.4175785183906555,
-0.047697439789772034,
0.03172006085515022,
-0.010250131599605083,
-0.04248220846056938,
-0.08301988244056702,
-0.011372865177690983,
-0.1795109361410141,
0.2315700799226761,
0.21908928453922272,
0.07272633910179138,
0.02722146175801754,
0.18469777703285217,
-0.11177036166191101,
0.4301357567310333,
0.4489692449569702,
0.1083127036690712,
-0.16536551713943481,
-0.13481637835502625,
-0.13610665500164032,
0.1662263423204422,
-0.015243712812662125,
-0.16493454575538635,
-0.1768234670162201,
0.29427579045295715,
-0.17068706452846527,
0.32204318046569824,
-0.14764082431793213,
-0.11591316759586334,
0.23027625679969788,
0.16601508855819702,
0.08980081230401993,
-0.26177847385406494,
0.1857285499572754,
-0.008595476858317852,
-0.24052569270133972,
-0.2137366682291031,
0.30523163080215454,
0.20499677956104279,
0.191183939576149,
0.3457426130771637,
-0.35344699025154114,
0.4051067531108856,
-0.16047097742557526,
0.036329180002212524,
0.03165917843580246,
-0.1979002058506012,
0.2081112265586853,
0.44160017371177673,
-0.18586891889572144,
-0.09132260084152222,
-0.010175482369959354,
0.12988662719726562,
-0.05197104439139366,
0.18386198580265045,
-0.1689809262752533,
0.16032510995864868,
-0.08874805271625519,
0.13979889452457428,
0.57319176197052,
0.12163987010717392,
-0.02644052915275097,
-0.08529173582792282,
0.00828683190047741,
-0.21317650377750397,
-0.11582620441913605,
0.1446964293718338,
-0.12492784112691879,
-0.17002549767494202,
0.29976022243499756,
-0.22380690276622772,
0.5274556875228882,
-0.29278481006622314,
-0.16642658412456512,
0.07054053992033005,
0.052304867655038834,
0.24411094188690186,
0.20154951512813568,
0.6094138026237488,
0.2762209475040436,
0.2836935222148895,
0.38102737069129944,
-0.05565747618675232,
0.0009148659300990403,
-0.08819737285375595,
0.39486801624298096,
-0.20489272475242615,
0.021859489381313324,
0.11504242569208145,
0.16657349467277527,
-0.1844944804906845,
0.1279638558626175,
-0.021736005321145058,
0.08725015074014664,
-0.26149705052375793,
0.5596359372138977,
0.07698526233434677,
-0.1684875190258026,
-0.20723876357078552,
0.12509621679782867,
-0.2793933153152466,
-0.2924647927284241,
0.4331855773925781,
0.1771562099456787,
0.042574431747198105,
-0.3949589431285858,
0.07022565603256226,
-0.18250581622123718,
0.16417768597602844,
0.37757882475852966,
-0.10038769990205765,
-0.302415668964386,
0.21739380061626434,
-0.3926459550857544,
0.07196915149688721,
-0.06926222145557404,
-0.3006960451602936,
-0.045073363929986954,
-0.05409045144915581,
-0.08683496713638306,
0.2786555290222168,
0.2691420316696167,
-0.2731444239616394,
-0.12384436279535294,
-0.3865237236022949,
-0.07905039191246033,
-0.017106425017118454,
0.16888512670993805,
-0.07702111452817917,
0.0011860220693051815,
-0.01583201438188553,
0.5374277830123901,
-0.523034393787384,
0.10718230903148651,
-0.025708023458719254,
-0.06058561056852341,
0.009846039116382599,
0.2962512969970703,
0.20232005417346954,
0.09592758864164352,
0.1849057674407959,
-0.07118391245603561,
-0.12876592576503754,
-0.4769389033317566,
-0.006059371866285801,
-0.1987171322107315,
0.2148764580488205,
0.0223254207521677,
0.15596848726272583,
-0.2797219753265381,
-0.4530614912509918,
-0.28878283500671387,
0.4550153911113739,
-0.00726879108697176,
-0.3219810128211975,
-0.0748840942978859,
0.02247963845729828,
0.13118591904640198,
0.09523745626211166,
0.24878427386283875,
0.21881334483623505,
0.13110032677650452,
0.31628555059432983,
-0.10643928498029709,
-0.5914745330810547,
0.40444639325141907,
-0.43963074684143066,
-0.04492323845624924,
0.05108926072716713,
0.6391757130622864,
0.21683290600776672,
-0.23731379210948944,
-0.4576913118362427,
0.13112127780914307,
0.1609734743833542,
-0.2020823210477829,
0.04108652472496033,
0.384412556886673,
-0.20666837692260742,
-0.002925119362771511,
0.13180267810821533,
0.19156992435455322,
0.17706938087940216,
0.06246652081608772,
0.054163698107004166,
-0.3314646780490875
] |
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.38420021533966064,
-0.12105709314346313,
-0.07823028415441513,
0.12130691111087799,
0.30270570516586304,
0.018521180376410484,
0.19532489776611328,
0.39920178055763245,
0.20924732089042664,
-0.0036372123286128044,
0.08699489384889603,
0.22930064797401428,
-0.3797934949398041,
-0.05430823937058449,
-0.19467182457447052,
0.1247083842754364,
0.05958513915538788,
-0.012090464122593403,
-0.29650259017944336,
-0.05484500527381897,
-0.004758493974804878,
0.1723804771900177,
-0.04269251599907875,
-0.042227163910865784,
-0.6513229012489319,
-0.071322001516819,
0.22961850464344025,
0.09827997535467148,
-0.3177298307418823,
-0.5123000741004944,
0.002184279030188918,
0.32134124636650085,
0.09339561313390732,
0.3480689227581024,
-0.00011145611642859876,
-0.2008073925971985,
0.3850497901439667,
0.0813150554895401,
-0.38742750883102417,
0.15845292806625366,
-0.12737543880939484,
-0.6889068484306335,
0.3180125653743744,
-0.15186989307403564,
-0.01329553872346878,
-0.3914662301540375,
0.17411765456199646,
-0.4228615164756775,
0.32767254114151,
0.22036416828632355,
0.23729164898395538,
0.25604814291000366,
0.19507256150245667,
-0.06566820293664932,
0.1696546971797943,
0.12763334810733795,
-0.1257699429988861,
0.06135087087750435,
0.39562878012657166,
0.02162824012339115,
-0.21533875167369843,
0.48118719458580017,
-0.2172437310218811,
-0.018227430060505867,
0.1597384214401245,
0.06849077343940735,
-0.19424127042293549,
-0.28865307569503784,
0.20932982861995697,
0.33527979254722595,
0.2971600294113159,
-0.4165315330028534,
-0.41689547896385193,
-0.498582661151886,
0.10360592603683472,
-0.14005394279956818,
0.012078765779733658,
0.03996674716472626,
-0.043275609612464905,
0.2632346749305725,
-0.2367277294397354,
-0.22746150195598602,
0.11784844100475311,
-0.08803753554821014,
0.3674966096878052,
0.01524905115365982,
-0.12001418322324753,
-0.06434299796819687,
0.3860504925251007,
-0.19223833084106445,
-0.08389775454998016,
0.23202285170555115,
-0.16486871242523193,
-0.08488146215677261,
-0.3075753152370453,
-0.005967824719846249,
0.2617579698562622,
0.5459192395210266,
0.017349544912576675,
0.23180502653121948,
-0.441378116607666,
0.11973987519741058,
0.1755085289478302,
-0.07728245109319687,
0.12950195372104645,
0.09514830261468887,
0.2877979278564453,
0.42779573798179626,
0.13004663586616516,
0.11008742451667786,
0.06668925285339355,
0.06800908595323563,
0.3630872964859009,
-0.4080978035926819,
0.4865081310272217,
0.00968869123607874,
0.42690712213516235,
-0.25826945900917053,
0.013898318633437157,
0.011720838956534863,
0.021114785224199295,
-0.14056479930877686,
0.08850465714931488,
0.32367831468582153,
0.038957640528678894,
-0.1044979989528656,
0.03255968168377876,
0.14725066721439362,
-0.3150571584701538,
-0.012561705894768238,
-0.27250608801841736,
0.1832268387079239,
-0.10483346879482269,
0.17560827732086182,
0.18361352384090424,
-0.15657538175582886,
0.22223971784114838,
0.2806102931499481,
-0.04704466834664345,
-0.010978970676660538,
0.08083219081163406,
0.05557357519865036,
-0.03644419088959694,
0.36218950152397156,
-0.11342935264110565,
0.1094324067234993,
-0.004141048528254032,
-0.12164245545864105,
-0.16174517571926117,
-0.09085306525230408,
0.02002653479576111,
-0.3312011659145355,
-0.22646299004554749,
0.18025992810726166,
-0.320067822933197,
0.0009689725702628493,
0.12560144066810608,
0.04056242108345032,
0.17517927289009094,
0.01968252845108509,
0.11856107413768768,
-0.24495944380760193,
0.02201465517282486,
-0.12129421532154083,
0.18917837738990784,
0.7124801874160767,
-0.11605510115623474,
-0.10595450550317764,
-0.2146638035774231,
-0.28462347388267517,
0.1850431114435196,
0.20230454206466675,
0.07739653438329697,
0.14506691694259644,
-0.16170239448547363,
0.05076751485466957,
-0.03737427294254303,
-0.48247283697128296,
-0.2755783796310425,
0.15202869474887848,
-0.1536351889371872,
0.023589082062244415,
0.544029951095581,
0.14840921759605408,
0.14242254197597504,
-0.06620354950428009,
-0.0997481644153595,
-0.211570605635643,
0.19376800954341888,
-0.15890945494174957,
-0.1838153451681137,
-0.16170670092105865,
-0.1949254274368286,
0.18784382939338684,
-0.13516610860824585,
-0.24372975528240204,
0.057974740862846375,
0.2588113844394684,
0.22675462067127228,
-0.10322323441505432,
-0.14164747297763824,
0.37220433354377747,
0.3256738781929016,
0.12426344305276871,
-0.14124183356761932,
-0.2158428132534027,
-0.42053094506263733,
0.02316906861960888,
-0.06521108746528625,
0.06385655701160431,
-0.37781378626823425,
-0.3627590239048004,
-0.051961157470941544,
0.07101582735776901,
-0.15085472166538239,
-0.20551161468029022,
0.10374584048986435,
0.1855563223361969,
-0.06404659152030945,
-0.008680349215865135,
-0.2316908985376358,
0.48919451236724854,
-0.12485571205615997,
0.23561477661132812,
-0.48164916038513184,
-0.28077003359794617,
-0.02319357916712761,
-0.2656395733356476,
0.2748296856880188,
0.2632426917552948,
0.148699551820755,
-0.027144551277160645,
0.17570534348487854,
0.38045158982276917,
0.02988508902490139,
0.6424673199653625,
-0.013993475586175919,
0.15700587630271912,
0.032606154680252075,
0.10463062673807144,
0.14064399898052216,
-0.1251658797264099,
-0.2521868646144867,
0.030247801914811134,
-0.0197073332965374,
0.27084478735923767,
0.019018152728676796,
0.022034762427210808,
-0.14443770051002502,
-0.03262230381369591,
-0.030790934339165688,
-0.10973469167947769,
-0.12635362148284912,
-0.4837384819984436,
0.4376623034477234,
-0.02849784679710865,
0.22038304805755615,
0.1991182416677475,
-0.057332418859004974,
0.19227804243564606,
0.5509570837020874,
-0.10268499702215195,
0.2122153490781784,
0.15746529400348663,
0.006391721777617931,
0.06183870881795883,
0.19044950604438782,
0.17449519038200378,
0.208471417427063,
0.35031530261039734,
0.011670147068798542,
0.20738443732261658,
0.11127283424139023,
-0.18604129552841187,
0.1864980012178421,
-0.05092094466090202,
-0.31023046374320984,
0.03561963513493538,
-0.19389843940734863,
-0.1716838926076889,
-0.22919897735118866,
-0.06392864882946014,
-0.40137162804603577,
0.31971868872642517,
-0.3461955487728119,
-0.08563337475061417,
-0.4944000542163849,
-0.045920614153146744,
-0.1702394038438797,
-0.005961377173662186,
0.00871366448700428,
-0.3549366891384125,
0.22532102465629578,
0.05460374802350998,
-0.15080466866493225,
0.20467904210090637,
-0.031117944046854973,
-0.0979536920785904,
0.06765161454677582,
0.04171563684940338,
-0.1886264532804489,
-0.01651066541671753,
-0.14421038329601288,
0.025931743904948235,
0.09925442934036255,
0.011595822870731354,
0.36984187364578247,
-0.18252213299274445,
0.007197524420917034,
-0.21612851321697235,
-0.3328985869884491,
-0.08649800717830658,
-0.3166133761405945,
0.2226395159959793,
0.34510090947151184,
0.21869999170303345,
0.11864815652370453,
-0.07335230708122253,
-0.0937788262963295,
-0.026397962123155594,
0.035233475267887115,
-0.06868214905261993,
-0.15680992603302002,
-0.056035738438367844,
-0.10928753763437271,
-0.44986894726753235,
-0.2963135838508606,
-0.40606045722961426,
0.33380985260009766,
-0.0031319549307227135,
0.08612215518951416,
0.31345829367637634,
0.07368646562099457,
0.267902135848999,
-0.4539485275745392,
0.49924638867378235,
0.002550980309024453,
-0.20840971171855927,
0.24330005049705505,
0.02370392344892025,
-0.09458958357572556,
-0.015724701806902885,
0.12617376446723938,
-0.20337410271167755,
-0.2979951500892639,
-0.4741598665714264,
-0.21524904668331146,
-0.43983909487724304,
0.04828674718737602,
-0.039397891610860825,
0.20682330429553986,
0.3207935690879822,
0.18732409179210663,
-0.1971336007118225,
-0.020514201372861862,
0.001308527193032205,
-0.0330723412334919,
-0.3698883652687073,
0.20655524730682373,
-0.17432694137096405,
0.2902253270149231,
0.07092969864606857,
0.2890479266643524,
0.602417528629303,
-0.009356656111776829,
0.05206233263015747,
-0.18855050206184387,
0.6065216064453125,
-0.2101408839225769,
-0.40037158131599426,
-0.14044609665870667,
0.14285393059253693,
-0.17765481770038605,
0.0030568756628781557,
0.07437480986118317,
0.4006255865097046,
-0.07586545497179031,
0.06227895990014076,
0.011046978645026684,
-0.44289112091064453,
-0.029437478631734848,
0.2006862461566925,
-0.08293455094099045,
-0.16949476301670074,
0.42230358719825745,
0.12867288291454315,
-0.1203920915722847,
0.07833638042211533,
0.2934122681617737,
-0.00038218803820200264,
-0.008783276192843914,
-0.22601361572742462,
0.09142932295799255,
-0.5675855278968811,
0.32307764887809753,
-0.18622609972953796,
-0.035864003002643585,
-0.3785840570926666,
-0.15631774067878723,
0.06760215759277344,
0.2389381378889084,
0.16447602212429047,
-0.1255977749824524,
0.03407306969165802,
-0.05933767929673195,
0.07168591767549515,
-0.3205620348453522,
0.04097671061754227,
-0.41337451338768005,
0.1680275797843933,
0.5538190603256226,
0.21878939867019653,
-0.4402221143245697,
-0.09633850306272507,
0.14970950782299042,
0.20321333408355713,
0.042495641857385635,
-0.1779586523771286,
-0.23028907179832458,
-0.15409910678863525,
-0.395203173160553,
0.11866310983896255,
0.08680634945631027,
0.01241147331893444,
-0.03901326283812523,
-0.06344614923000336,
0.1977074146270752,
-0.24588249623775482,
0.3211674690246582,
-0.15542949736118317,
0.27387940883636475,
-0.05062192305922508,
0.15283292531967163,
0.04397455230355263,
0.010364089161157608,
0.11421132832765579,
0.5003361105918884,
-0.12692296504974365,
-0.06732480227947235,
-0.2192164957523346,
-0.0036701487842947245,
0.16620223224163055,
0.39810556173324585,
-0.2110253870487213,
0.1152876764535904,
0.30530136823654175,
0.4079304337501526,
-0.15939822793006897,
0.1065627858042717,
0.3676128685474396,
0.15672582387924194,
-0.19732791185379028,
-0.08052211254835129,
0.3228189945220947,
0.37464725971221924,
-0.08003120124340057,
0.3842604458332062,
0.2945859134197235,
-0.23954236507415771,
0.12314552813768387,
0.010687530972063541,
0.8338339924812317,
-0.05296681448817253,
0.06659937649965286,
0.09492406249046326,
-0.27063289284706116,
0.48829853534698486,
0.05609701946377754,
-0.17704159021377563,
-0.1328645795583725,
-0.19684560596942902,
0.1891275942325592,
0.02120233327150345,
0.22788012027740479,
-0.38053855299949646,
-0.3188486695289612,
0.2096366435289383,
-0.3555569052696228,
-0.026558002457022667,
-0.3779292404651642,
0.4703405797481537,
-0.513992965221405,
-0.16693328320980072,
-0.1779046505689621,
0.161720409989357,
-0.10759010165929794,
0.21700803935527802,
-0.051806312054395676,
-0.14114078879356384,
0.20186816155910492,
-0.19706712663173676,
-0.5171788334846497,
-0.12228123843669891,
0.09330800175666809,
-0.048053137958049774,
-0.09549664705991745,
-0.18008950352668762,
-0.044267360121011734,
0.12786145508289337,
0.18904078006744385,
0.4562101662158966,
-0.15902507305145264,
0.03975043073296547,
-0.11588715016841888,
0.06008069962263107,
0.05545802786946297,
-0.03089943900704384,
0.3943157494068146,
0.0699736475944519,
-0.23521576821804047,
-0.05089991167187691,
0.06845690310001373,
-0.22785480320453644,
-0.06015133112668991,
-0.08725752681493759,
-0.11938237398862839,
-0.2786222994327545,
-0.029649754986166954,
0.10046188533306122,
-0.2291875034570694,
0.023648714646697044,
0.19058246910572052,
0.35191890597343445,
-0.007943148724734783,
0.31245559453964233,
-0.07208141684532166,
-0.43348705768585205,
-0.3517425060272217,
0.5259717106819153,
-0.0411590114235878,
-0.11521879583597183,
0.5203579664230347,
0.3307606279850006,
-0.3719976544380188,
-0.2682921290397644,
-0.001907274592667818,
0.26981860399246216,
-0.25706157088279724,
0.05993793532252312,
0.19532546401023865,
0.019351966679096222,
0.3073074221611023,
-0.12090611457824707,
0.13882321119308472,
-0.11463410407304764,
-0.1912718117237091,
-0.2003658562898636,
-0.5947335362434387,
0.25159358978271484,
-0.13418437540531158,
0.35780638456344604,
-0.05075184255838394,
-0.13880914449691772,
-0.01057613454759121,
0.11376035958528519,
-0.3678404688835144,
-0.29758626222610474,
-0.032845061272382736,
-0.12451689690351486,
0.4510900676250458,
-0.09543980658054352,
0.37451839447021484,
-0.09781113266944885,
0.15546366572380066,
0.10996635258197784,
-0.35942140221595764,
-0.19136784970760345,
-0.014662188477814198,
0.07487453520298004,
-0.2906976342201233,
0.16377407312393188,
-0.15430951118469238,
-0.23343536257743835,
0.08834996819496155,
-0.155735045671463,
0.18954633176326752,
0.4521878659725189,
0.13265813887119293,
0.2487800568342209,
-0.12106005847454071,
0.043891534209251404,
0.2011241912841797,
-0.30457696318626404,
-0.07979480177164078,
-0.03376353159546852,
-0.007099971175193787,
-0.012931300327181816,
-0.007921176962554455,
0.027497373521327972,
-0.06529207527637482,
0.11294537782669067,
0.2750236392021179,
0.09451305866241455,
0.08135464787483215,
0.10387733578681946,
-0.06388426572084427,
0.4160509407520294,
0.5061018466949463,
0.1523868292570114,
-0.05324206501245499,
-0.14625762403011322,
-0.019896728917956352,
0.23744003474712372,
-0.12750905752182007,
-0.08340435475111008,
-0.013637667521834373,
0.34744057059288025,
-0.06452448666095734,
0.2793580889701843,
-0.08073943108320236,
-0.06902909278869629,
0.3258935511112213,
0.21437913179397583,
0.1791696548461914,
-0.3216133415699005,
0.20397356152534485,
0.04353507235646248,
-0.19332002103328705,
-0.17936715483665466,
0.34501785039901733,
0.1838212013244629,
0.14498232305049896,
0.37706759572029114,
-0.31187719106674194,
0.5273203253746033,
-0.13305704295635223,
0.15019455552101135,
-0.007829920388758183,
-0.12902207672595978,
0.09464272111654282,
0.24556605517864227,
-0.04187275469303131,
-0.10481317341327667,
-0.025420915335416794,
0.38194555044174194,
-0.12248644977807999,
0.13204076886177063,
-0.17503847181797028,
0.20137344300746918,
-0.1989213228225708,
-0.0781993642449379,
0.5095499753952026,
0.13464316725730896,
-0.047168076038360596,
-0.07380741089582443,
0.05452445521950722,
-0.14645203948020935,
0.05528905242681503,
0.12596768140792847,
-0.14589524269104004,
-0.3475186228752136,
0.23712223768234253,
-0.18742816150188446,
0.43383535742759705,
-0.18791963160037994,
0.031336184591054916,
0.09922803193330765,
-0.0288846492767334,
0.10708463937044144,
0.3526526093482971,
0.6822695136070251,
0.28547030687332153,
0.20229238271713257,
0.2540794909000397,
-0.10481031984090805,
0.02276488207280636,
-0.1309242844581604,
0.4743937849998474,
-0.12506921589374542,
0.13972698152065277,
0.1326146274805069,
0.16739606857299805,
-0.2666597366333008,
0.17413578927516937,
-0.0964725911617279,
0.057663995772600174,
-0.17895498871803284,
0.5616604685783386,
0.039781540632247925,
-0.24261106550693512,
-0.22398729622364044,
0.08672826737165451,
-0.3847690224647522,
-0.14596229791641235,
0.32301193475723267,
0.12465167045593262,
-0.018932783976197243,
-0.5199958682060242,
0.09881492704153061,
-0.09915494918823242,
0.23486904799938202,
0.3353751599788666,
0.004465034231543541,
-0.20478561520576477,
0.13039186596870422,
-0.5033683180809021,
0.023463863879442215,
-0.03977574035525322,
-0.2664729654788971,
-0.15722177922725677,
0.019752182066440582,
-0.19503627717494965,
0.2984107434749603,
0.37731239199638367,
-0.31385043263435364,
0.050194043666124344,
-0.2426927089691162,
-0.1993446797132492,
0.08372583985328674,
0.13426566123962402,
-0.1894592046737671,
0.16560354828834534,
0.031353555619716644,
0.34604597091674805,
-0.4697655141353607,
0.04817184805870056,
-0.11290151625871658,
-0.041201602667570114,
0.10140053927898407,
0.21440203487873077,
0.22498898208141327,
0.1070278137922287,
0.22561286389827728,
-0.12527985870838165,
-0.1326645016670227,
-0.4260478615760803,
-0.06518694013357162,
-0.1742410510778427,
0.14163930714130402,
0.08354312926530838,
0.2157323807477951,
-0.310663640499115,
-0.3851436972618103,
-0.31294262409210205,
0.4378098249435425,
-0.04151957854628563,
-0.24138228595256805,
0.03738139569759369,
-0.052158795297145844,
0.1979452520608902,
0.008982241153717041,
0.13080506026744843,
0.1892094910144806,
0.09275366365909576,
0.3730068504810333,
-0.2739178538322449,
-0.690554141998291,
0.5269718170166016,
-0.32449933886528015,
0.014765667729079723,
0.0947723463177681,
0.4946193993091583,
0.24824298918247223,
-0.3155161142349243,
-0.7181569337844849,
0.13574665784835815,
0.053483761847019196,
-0.10453936457633972,
0.07335129380226135,
0.4127819538116455,
-0.19847141206264496,
0.08154592663049698,
0.08826467394828796,
0.37355831265449524,
0.1968109905719757,
0.0937991663813591,
0.10096491128206253,
-0.23168568313121796
] |
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.18454740941524506,
-0.049645405262708664,
-0.0627770721912384,
0.11527130752801895,
0.3269050717353821,
0.22352521121501923,
0.24826088547706604,
0.5285160541534424,
0.06550857424736023,
-0.11483419686555862,
0.033185265958309174,
0.0734860897064209,
-0.3805561363697052,
0.09453357011079788,
-0.14150087535381317,
0.049698054790496826,
0.09959384053945541,
-0.13451439142227173,
-0.2368711531162262,
-0.004086407832801342,
0.03680981695652008,
-0.05542017146945,
-0.0283103846013546,
-0.027666104957461357,
-0.698754608631134,
-0.05756001174449921,
0.14996586740016937,
-0.0849991887807846,
-0.12586389482021332,
-0.43278059363365173,
0.04355047270655632,
0.2825656831264496,
0.3471220135688782,
0.2078096866607666,
-0.00011423349496908486,
-0.17202194035053253,
0.40311503410339355,
0.09166305512189865,
-0.30146360397338867,
0.33005329966545105,
-0.06567887216806412,
-0.46106475591659546,
0.23763121664524078,
-0.0499529205262661,
-0.025425458326935768,
-0.5238726139068604,
0.18424047529697418,
-0.4831920862197876,
0.3442487120628357,
0.14563049376010895,
0.23530271649360657,
0.10667815059423447,
0.03805457800626755,
0.01399403065443039,
0.09037361294031143,
0.30147024989128113,
-0.001908214413560927,
0.05120665952563286,
0.34698933362960815,
-0.1349480301141739,
-0.19352112710475922,
0.41272154450416565,
-0.1736094206571579,
-0.10430117696523666,
0.31824931502342224,
0.012809219770133495,
-0.07422414422035217,
-0.29599279165267944,
0.322402685880661,
0.2155655175447464,
0.26819202303886414,
-0.3811314105987549,
-0.39957430958747864,
-0.5169017314910889,
0.08630622923374176,
-0.24606497585773468,
-0.061600055545568466,
0.04120222479104996,
-0.001388880773447454,
0.32543665170669556,
-0.2808999717235565,
-0.324980229139328,
0.10877114534378052,
-0.17224553227424622,
0.26175540685653687,
0.002778297057375312,
-0.036890819668769836,
-0.03745722770690918,
0.3654305338859558,
-0.1419898271560669,
0.085422582924366,
0.22432780265808105,
-0.1866133213043213,
-0.1186128631234169,
-0.4022974371910095,
-0.08640961349010468,
0.272098183631897,
0.5041311979293823,
-0.07414762675762177,
0.2894926965236664,
-0.6020696759223938,
0.03336028382182121,
0.12729603052139282,
-0.24679560959339142,
0.27202847599983215,
0.07357676327228546,
0.3732917904853821,
0.5536035299301147,
0.07656105607748032,
-0.02173573523759842,
0.1850700080394745,
0.07596560567617416,
0.29138001799583435,
-0.4003846347332001,
0.6298021674156189,
-0.03343437612056732,
0.4733228087425232,
-0.2939383089542389,
0.19940192997455597,
-0.10416444391012192,
-0.09365012496709824,
-0.08247986435890198,
0.006430705077946186,
0.2301989495754242,
0.21054936945438385,
-0.15131713449954987,
0.017995281144976616,
0.20426353812217712,
-0.19320663809776306,
-0.2217477560043335,
-0.23253406584262848,
0.22599449753761292,
0.0028697585221379995,
0.20765268802642822,
0.26268500089645386,
-0.1796610951423645,
-0.14441660046577454,
0.1959085613489151,
-0.2313891351222992,
-0.07597316801548004,
0.13478973507881165,
-0.07094720005989075,
-0.0010418393649160862,
0.2148304581642151,
-0.18661192059516907,
0.19010218977928162,
-0.0359654575586319,
-0.13111719489097595,
-0.2601170837879181,
-0.04664164409041405,
-0.05008208006620407,
-0.3688071668148041,
-0.17430716753005981,
0.15164010226726532,
-0.2515847980976105,
0.0005147880292497575,
-0.04628600925207138,
0.1082538291811943,
0.19054339826107025,
0.20312702655792236,
0.05815606936812401,
-0.20599405467510223,
-0.21356841921806335,
-0.027373462915420532,
0.08470416069030762,
0.7543080449104309,
-0.18372339010238647,
-0.10741113126277924,
-0.32103776931762695,
-0.2445937991142273,
0.18471167981624603,
0.24752075970172882,
0.1200600191950798,
0.32976189255714417,
-0.2883555591106415,
0.02146737277507782,
-0.0718076229095459,
-0.4368186295032501,
-0.215370312333107,
0.14183373749256134,
-0.18013986945152283,
0.04695238173007965,
0.5603652000427246,
0.14654166996479034,
0.2135157287120819,
-0.22895683348178864,
0.056491900235414505,
-0.17787578701972961,
0.07072257250547409,
-0.14449582993984222,
-0.17454273998737335,
-0.17418061196804047,
-0.05785078927874565,
0.2597692310810089,
-0.03772743046283722,
-0.1251596212387085,
0.010942446999251842,
0.05616036057472229,
0.3013896346092224,
-0.20529741048812866,
0.0062507325783371925,
0.3207729160785675,
0.2069021612405777,
-0.10199679434299469,
-0.19619706273078918,
-0.187539741396904,
-0.4523918032646179,
-0.053088851273059845,
-0.08058252185583115,
0.043746814131736755,
-0.3083762526512146,
-0.5036981105804443,
-0.018729764968156815,
-0.028475739061832428,
-0.10092894732952118,
-0.11775688081979752,
0.038482535630464554,
0.17604568600654602,
-0.09637053310871124,
-0.1906672865152359,
-0.09799277037382126,
0.39419224858283997,
-0.10135995596647263,
0.12747909128665924,
-0.48817920684814453,
-0.22947540879249573,
0.06850213557481766,
-0.17843171954154968,
0.4208115041255951,
0.18585196137428284,
0.18705157935619354,
-0.0038344913627952337,
0.22055365145206451,
0.24070784449577332,
-0.032966189086437225,
0.7907803654670715,
0.06447092443704605,
0.33715349435806274,
-0.0882408395409584,
0.11619165539741516,
0.06214667856693268,
-0.058344122022390366,
-0.28878769278526306,
-0.02983652427792549,
-0.04131009429693222,
0.4230467677116394,
0.20497742295265198,
0.11188407242298126,
-0.12870454788208008,
0.0438721664249897,
-0.11693086475133896,
-0.15075688064098358,
-0.08413675427436829,
-0.5032492876052856,
0.4043028652667999,
-0.06993335485458374,
0.17615550756454468,
0.2005903422832489,
-0.07133466750383377,
0.3584006428718567,
0.47148752212524414,
-0.21767482161521912,
0.23579177260398865,
0.2873411178588867,
-0.02087424322962761,
0.021378029137849808,
0.13993170857429504,
0.18802477419376373,
0.10885532945394516,
0.2872410714626312,
0.014891360886394978,
0.34303736686706543,
0.31212690472602844,
-0.05549304187297821,
0.30039873719215393,
-0.03181927651166916,
-0.2443659007549286,
-0.17324542999267578,
-0.02986266277730465,
-0.1476176232099533,
-0.006640141364187002,
0.03835391253232956,
-0.40034759044647217,
0.3763831555843353,
-0.4999678134918213,
0.0595463328063488,
-0.6568226218223572,
-0.29705020785331726,
-0.25445735454559326,
0.1902567744255066,
0.03926882892847061,
-0.38449445366859436,
0.13923348486423492,
0.0904710665345192,
-0.14526061713695526,
0.17404766380786896,
-0.04400579631328583,
0.11548132449388504,
0.0897042378783226,
0.1575215607881546,
-0.33213502168655396,
-0.022936344146728516,
-0.1803101897239685,
0.02997654862701893,
0.26572611927986145,
-0.005944038741290569,
0.40970635414123535,
-0.20060543715953827,
-0.05132376775145531,
-0.284932404756546,
-0.3416579067707062,
-0.06278935819864273,
-0.10049773007631302,
0.17434664070606232,
0.23687122762203217,
0.11163152754306793,
0.06714917719364166,
0.033028777688741684,
-0.19132405519485474,
-0.0941476821899414,
0.09592007100582123,
-0.032246481627225876,
-0.29142308235168457,
0.1275750696659088,
-0.07602881640195847,
-0.32764020562171936,
-0.22108735144138336,
-0.24386188387870789,
0.36120399832725525,
-0.042597878724336624,
0.11030760407447815,
0.3691275119781494,
-0.11808323115110397,
0.08150801807641983,
-0.41320133209228516,
0.42201945185661316,
-0.011591283604502678,
-0.22377929091453552,
0.25471988320350647,
0.0998542457818985,
-0.038903817534446716,
-0.06936972588300705,
0.08229140937328339,
-0.35344016551971436,
-0.22010882198810577,
-0.5487350821495056,
-0.234119713306427,
-0.41504064202308655,
-0.09394390136003494,
-0.06497419625520706,
0.18555621802806854,
0.28997737169265747,
0.19232642650604248,
-0.08759743720293045,
0.1645503044128418,
-0.05516182631254196,
-0.047819461673498154,
-0.387490838766098,
0.14054696261882782,
-0.09667537361383438,
0.28426167368888855,
0.19763517379760742,
0.34410014748573303,
0.5574747920036316,
0.04247799888253212,
-0.07543554157018661,
-0.21410347521305084,
0.5718837976455688,
-0.28183048963546753,
-0.3039308786392212,
-0.1314200907945633,
0.11560160666704178,
-0.1821357160806656,
-0.09458160400390625,
0.09981687366962433,
0.34319007396698,
-0.05912604182958603,
-0.1497659534215927,
0.06638234108686447,
-0.507879912853241,
-0.019152702763676643,
0.2249499410390854,
-0.026560619473457336,
-0.12098845094442368,
0.2878618538379669,
0.015621541999280453,
-0.23634588718414307,
0.17018336057662964,
0.24596010148525238,
0.102906733751297,
0.03239080309867859,
-0.4344901740550995,
0.16644926369190216,
-0.7213900089263916,
0.44665566086769104,
-0.10410342365503311,
0.034123558551073074,
-0.21043996512889862,
-0.15613649785518646,
0.007764491252601147,
0.3723123073577881,
0.2193949967622757,
-0.1493702232837677,
0.22641301155090332,
-0.019622186198830605,
0.03731856867671013,
-0.3274550437927246,
0.015356912277638912,
-0.34975266456604004,
0.2822161912918091,
0.5570358037948608,
0.16236361861228943,
-0.17926540970802307,
-0.18037039041519165,
0.17669232189655304,
0.2699890434741974,
-0.037356600165367126,
-0.1949126422405243,
-0.10925628989934921,
-0.19630424678325653,
-0.27805885672569275,
-0.0031819043215364218,
0.1013178601861,
0.06607966870069504,
-0.023064034059643745,
0.040523432195186615,
0.040647368878126144,
-0.31048741936683655,
0.37319445610046387,
-0.3377857208251953,
0.24817216396331787,
0.03254018723964691,
0.24774813652038574,
0.019249027594923973,
0.10799752175807953,
0.21642224490642548,
0.3639296889305115,
0.08868341892957687,
-0.21771863102912903,
-0.15635599195957184,
-0.012333032675087452,
0.2017844170331955,
0.4631596803665161,
-0.24484632909297943,
0.22310557961463928,
0.1815953552722931,
0.3818924129009247,
-0.345427542924881,
0.0008878891821950674,
0.18655355274677277,
0.1166730597615242,
-0.2835584878921509,
-0.09184592962265015,
0.2894294559955597,
0.3648078143596649,
-0.13544270396232605,
0.4223406910896301,
0.28256574273109436,
-0.40379786491394043,
0.05959898978471756,
-0.013428106904029846,
1.022824764251709,
-0.09584881365299225,
0.08208385854959488,
0.09641831368207932,
-0.256985604763031,
0.47648942470550537,
0.19289599359035492,
-0.047642823308706284,
-0.216604083776474,
-0.3129030764102936,
0.15421387553215027,
-0.036248352378606796,
0.1545400172472,
-0.3156777322292328,
0.020474351942539215,
0.3621279001235962,
-0.49434006214141846,
-0.0015032526571303606,
-0.26545560359954834,
0.46181607246398926,
-0.37821710109710693,
-0.15743111073970795,
-0.30057674646377563,
0.07802702486515045,
-0.09721048176288605,
0.07930131256580353,
-0.09832895547151566,
-0.08610150218009949,
0.3254993259906769,
-0.15866686403751373,
-0.33586686849594116,
-0.2780642807483673,
0.2462986707687378,
-0.12895150482654572,
-0.07431025058031082,
-0.09478292614221573,
-0.011602184735238552,
0.09515496343374252,
0.25363242626190186,
0.37888988852500916,
-0.13456034660339355,
-0.08647368848323822,
-0.18258032202720642,
0.1769082248210907,
0.17706142365932465,
-0.07512866705656052,
0.2750738859176636,
0.0701155737042427,
-0.1578245759010315,
-0.004024167079478502,
0.15885838866233826,
-0.30664652585983276,
-0.18112510442733765,
-0.18314315378665924,
-0.08247465640306473,
-0.14029060304164886,
0.04321204870939255,
0.07775204628705978,
-0.22497494518756866,
0.07772966474294662,
0.14577201008796692,
0.2886357307434082,
0.09717574715614319,
0.14941637217998505,
-0.14606280624866486,
-0.32542935013771057,
-0.305671751499176,
0.5781704783439636,
0.06221432611346245,
-0.044951774179935455,
0.5925281047821045,
0.32701918482780457,
-0.2988741397857666,
-0.2708674669265747,
0.08714485913515091,
0.31175580620765686,
-0.21209798753261566,
0.08585692942142487,
0.08647307753562927,
0.14926829934120178,
0.20553144812583923,
-0.13474445044994354,
0.02232990600168705,
-0.017757972702383995,
-0.0332336388528347,
-0.21652862429618835,
-0.5762388110160828,
0.2602947950363159,
-0.15698488056659698,
0.26172080636024475,
-0.0903235450387001,
-0.01421869546175003,
-0.17470155656337738,
0.11997014284133911,
-0.3274495303630829,
-0.3087000846862793,
0.21294653415679932,
-0.12597353756427765,
0.3004695177078247,
-0.05678755044937134,
0.21298332512378693,
-0.19677656888961792,
0.09442318230867386,
0.08550965040922165,
-0.25494736433029175,
-0.16760307550430298,
0.03859322518110275,
0.09780626744031906,
-0.4013964831829071,
0.035588305443525314,
0.057663269340991974,
-0.20811378955841064,
-0.069771908223629,
-0.18695944547653198,
0.12422329187393188,
0.5811998844146729,
0.1784980744123459,
0.20727033913135529,
-0.11502470821142197,
-0.08376352488994598,
0.09481267631053925,
-0.2671191394329071,
0.011661401018500328,
0.10672545433044434,
-0.07395683228969574,
0.09721317142248154,
-0.039753515273332596,
0.09582021832466125,
-0.03692743927240372,
0.12559397518634796,
0.19790679216384888,
0.08525295555591583,
0.08827809989452362,
0.232417032122612,
-0.16264057159423828,
0.5327465534210205,
0.456696093082428,
0.08355895429849625,
-0.23914788663387299,
-0.11677926778793335,
-0.030613338574767113,
0.1834723800420761,
-0.13486655056476593,
-0.07002738863229752,
-0.035843443125486374,
0.28576937317848206,
-0.22061006724834442,
0.41709959506988525,
-0.10203143209218979,
-0.12288141250610352,
0.2743918299674988,
0.13564343750476837,
0.08896994590759277,
-0.2586749494075775,
0.24992486834526062,
-0.0118152080103755,
-0.13072170317173004,
-0.32209327816963196,
0.40626928210258484,
0.23197785019874573,
0.1693902462720871,
0.3233458697795868,
-0.2802148461341858,
0.3817969560623169,
-0.11673273146152496,
0.21751496195793152,
-0.0006150483968667686,
-0.26542919874191284,
0.12762324512004852,
0.5195826888084412,
-0.15522798895835876,
-0.08187645673751831,
-0.086921826004982,
0.11883562803268433,
0.11338583379983902,
0.05469531565904617,
-0.20937632024288177,
0.18828019499778748,
-0.015124410390853882,
-0.038814619183540344,
0.5575550198554993,
0.11633728444576263,
-0.04079572856426239,
-0.0006743238773196936,
-0.027240818366408348,
-0.2548864483833313,
-0.066217802464962,
0.11046288907527924,
-0.07524435222148895,
-0.2503238916397095,
0.32137972116470337,
-0.1419883817434311,
0.6471574902534485,
-0.24814827740192413,
-0.11841476708650589,
-0.03146554157137871,
-0.0207136869430542,
0.2452707141637802,
0.2481628805398941,
0.6147254109382629,
0.19735252857208252,
0.2949051856994629,
0.38332030177116394,
-0.07754277437925339,
0.03474922850728035,
-0.04576379060745239,
0.35289865732192993,
-0.04213226959109306,
0.04352696239948273,
0.05270804837346077,
0.13483713567256927,
-0.09719566255807877,
0.2719746232032776,
-0.10692029446363449,
0.12926273047924042,
-0.4247206449508667,
0.5578888654708862,
0.12494784593582153,
-0.18922798335552216,
-0.15465866029262543,
0.07681407779455185,
-0.1417122632265091,
-0.2965763509273529,
0.4082416892051697,
0.17666013538837433,
0.02835320308804512,
-0.3209652006626129,
0.07600103318691254,
-0.2978373169898987,
0.15634490549564362,
0.39772480726242065,
-0.06688052415847778,
-0.23036719858646393,
0.0655096024274826,
-0.35577601194381714,
0.046147167682647705,
-0.02487759105861187,
-0.17489153146743774,
-0.01132532674819231,
-0.04862183704972267,
-0.08896540850400925,
0.19237907230854034,
0.3781261444091797,
-0.31975647807121277,
0.05501711741089821,
-0.3638291358947754,
-0.05713411420583725,
-0.023772407323122025,
0.07044479995965958,
-0.09158149361610413,
0.11097896099090576,
-0.12780451774597168,
0.4835260212421417,
-0.5077933669090271,
0.050891995429992676,
-0.05032353848218918,
0.008006801828742027,
0.011828058399260044,
0.21306267380714417,
0.28932279348373413,
0.14437158405780792,
0.16054894030094147,
-0.03319770097732544,
-0.08122433722019196,
-0.4489465057849884,
-0.013101882301270962,
-0.30248039960861206,
0.30076727271080017,
-0.05219960957765579,
0.1398364156484604,
-0.39967671036720276,
-0.31574583053588867,
-0.3180854320526123,
0.4130197763442993,
-0.06543723493814468,
-0.2322542518377304,
-0.16811621189117432,
0.06595063954591751,
0.0782141461968422,
0.07384468615055084,
0.10942614823579788,
0.15926089882850647,
0.05641048774123192,
0.3194156885147095,
-0.2590789198875427,
-0.544933557510376,
0.5200136303901672,
-0.3985482454299927,
-0.07349765300750732,
0.0006204948294907808,
0.6537177562713623,
0.2560564875602722,
-0.3464395999908447,
-0.5534009337425232,
0.07773485034704208,
0.1594489961862564,
-0.10886351764202118,
0.12419167906045914,
0.424292653799057,
-0.2983647584915161,
0.13547158241271973,
0.11672399938106537,
0.33010581135749817,
0.1954042613506317,
0.05719874054193497,
0.07803835719823837,
-0.3463287651538849
] |
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.26148882508277893,
0.05524669960141182,
-0.15951380133628845,
0.21565990149974823,
0.16742852330207825,
-0.037950921803712845,
0.33362165093421936,
0.06700796633958817,
0.1323194056749344,
0.12404163181781769,
-0.21295399963855743,
0.2662530541419983,
-0.4864400029182434,
0.5283170938491821,
0.1895258128643036,
-0.04972771555185318,
0.08314279466867447,
-0.08716440200805664,
0.17146514356136322,
0.16608421504497528,
-0.171776682138443,
0.09008388221263885,
-0.145060196518898,
0.02376202680170536,
-0.19849251210689545,
-0.20013363659381866,
0.027907928451895714,
-0.01201704517006874,
-0.19240950047969818,
-0.31317198276519775,
-0.03013245016336441,
0.3213687837123871,
-0.09662321954965591,
0.7043569684028625,
-0.00010072726581711322,
-0.30786311626434326,
0.15420307219028473,
-0.19974656403064728,
-0.3623100817203522,
-0.037622250616550446,
-0.10350040346384048,
0.03970535099506378,
-0.1769135296344757,
-0.006224153563380241,
-0.2134983241558075,
-0.18621203303337097,
0.03739412501454353,
0.06312166154384613,
0.12475628405809402,
0.4792368412017822,
0.2868831157684326,
0.03145001456141472,
0.02378891222178936,
-0.31390267610549927,
-0.08927983790636063,
0.1673177182674408,
-0.3250296413898468,
0.18353348970413208,
0.24507860839366913,
0.03020867519080639,
-0.1205398216843605,
0.3014373779296875,
-0.18184857070446014,
-0.13987718522548676,
0.2054293155670166,
-0.26057782769203186,
-0.1797827184200287,
-0.26280051469802856,
0.1561325043439865,
0.3817876875400543,
0.5788028240203857,
-0.16345492005348206,
-0.12900932133197784,
-0.4247141182422638,
-0.02886989153921604,
-0.1403265744447708,
-0.1643437296152115,
0.21425090730190277,
-0.10459593683481216,
0.13219982385635376,
-0.23907381296157837,
-0.3919070363044739,
-0.05097021162509918,
0.024520311504602432,
0.04534859210252762,
0.18109427392482758,
-0.27196526527404785,
-0.11659567058086395,
0.11772342771291733,
-0.29110851883888245,
-0.1091826781630516,
0.024692989885807037,
-0.13970883190631866,
-0.06617371737957001,
-0.5199309587478638,
-0.38467830419540405,
0.3971691429615021,
0.24867010116577148,
0.33833807706832886,
0.18674543499946594,
0.1201629638671875,
-0.01198655366897583,
0.009405459277331829,
-0.061529017984867096,
0.4166887402534485,
0.12919987738132477,
0.002051984192803502,
-0.061957571655511856,
0.17983394861221313,
0.23643378913402557,
0.12099719792604446,
0.25609028339385986,
-0.17279638350009918,
-0.005142245441675186,
-0.06726732850074768,
-0.016451958566904068,
-0.02752852626144886,
0.1008450984954834,
-0.3065921366214752,
0.20584043860435486,
-0.1520986109972,
0.04448843374848366,
0.13889087736606598,
0.2740322947502136,
-0.22318650782108307,
0.0721612274646759,
-0.09894884377717972,
0.19622617959976196,
0.04549233615398407,
-0.008953513577580452,
-0.06785465776920319,
0.11560934782028198,
-0.2882877290248871,
0.30449551343917847,
0.16198328137397766,
0.2245098352432251,
0.04067297279834747,
-0.1672491729259491,
-0.06422922015190125,
-0.09413503110408783,
0.16249872744083405,
-0.17091608047485352,
-0.030609356239438057,
-0.11188206821680069,
0.012342679314315319,
-0.3497440814971924,
-0.20845147967338562,
0.008968552574515343,
-0.17209433019161224,
-0.021816512569785118,
0.1849716305732727,
-0.21417869627475739,
-0.11630100011825562,
0.29414671659469604,
-0.1590951681137085,
-0.20600007474422455,
-0.32340195775032043,
0.7503319978713989,
-0.07134416699409485,
-0.05853855237364769,
0.22224543988704681,
0.2418702393770218,
-0.3724502921104431,
-0.14130641520023346,
-0.05112728849053383,
0.34890979528427124,
0.06211303547024727,
-0.011533960700035095,
-0.1397533118724823,
-0.14621490240097046,
-0.42289793491363525,
0.3107081353664398,
0.06363930553197861,
0.4232715368270874,
-0.15663816034793854,
0.05773059278726578,
-0.0616489015519619,
-0.263865202665329,
-0.27861982583999634,
0.1703370064496994,
-0.5045644640922546,
0.06201355531811714,
0.26125022768974304,
0.13908104598522186,
0.4737362265586853,
-0.406902939081192,
0.5480496883392334,
0.23503515124320984,
-0.15164685249328613,
0.02583867684006691,
-0.10848157107830048,
-0.30029118061065674,
0.009679744951426983,
0.3743724226951599,
0.1809772402048111,
-0.2353050708770752,
-0.111396923661232,
-0.1721189171075821,
0.007716589141637087,
-0.15114200115203857,
0.017735658213496208,
0.15716318786144257,
0.37819668650627136,
0.14480847120285034,
-0.07464781403541565,
-0.35207822918891907,
-0.44019564986228943,
-0.27147775888442993,
0.05801701545715332,
0.12378092855215073,
0.2761167585849762,
-0.43025705218315125,
-0.16371554136276245,
-0.010625600814819336,
-0.013067087158560753,
-0.14670544862747192,
0.2628627121448517,
0.12870870530605316,
0.062306277453899384,
-0.13437624275684357,
-0.17631322145462036,
0.5124223828315735,
-0.17916177213191986,
-0.08889669924974442,
0.12724892795085907,
0.04619160294532776,
0.005044986493885517,
-0.05231595039367676,
0.2747651934623718,
0.4075893461704254,
-0.030908433720469475,
0.10271359235048294,
0.22879351675510406,
0.16351014375686646,
-0.07301344722509384,
0.2508264183998108,
0.2525397837162018,
0.40023428201675415,
-0.004086583387106657,
-0.20295675098896027,
-0.01499680895358324,
0.2142476886510849,
0.02358243614435196,
-0.09603665769100189,
-0.25426772236824036,
0.26818862557411194,
0.25426605343818665,
0.09107683598995209,
0.08218559622764587,
0.17350594699382782,
0.11345048248767853,
-0.20933856070041656,
-0.18328966200351715,
0.02980034239590168,
0.18739314377307892,
0.21380040049552917,
-0.06301058083772659,
0.1144266203045845,
-0.6919635534286499,
0.1650879979133606,
0.35366585850715637,
-0.017938680946826935,
0.40912294387817383,
0.18303000926971436,
-0.1275763362646103,
-0.3061305284500122,
-0.00352282146923244,
-0.3534867763519287,
0.10445930808782578,
0.4246433675289154,
0.06308195739984512,
-0.002915184712037444,
0.2378721386194229,
-0.16653838753700256,
0.13242995738983154,
0.08924669772386551,
0.00020829924324061722,
0.2678324282169342,
0.2840033173561096,
-0.04704117774963379,
-0.2962805926799774,
-0.21912965178489685,
-0.0053094010800123215,
0.031558748334646225,
-0.19694052636623383,
-0.1997755765914917,
0.1438698023557663,
-0.28177836537361145,
-0.01448848657310009,
-0.020475875586271286,
-0.010461565107107162,
-0.006653398275375366,
0.24919143319129944,
0.14840996265411377,
-0.0625198557972908,
0.159889355301857,
0.2966149151325226,
0.5640653371810913,
-0.23807890713214874,
0.09703455865383148,
-0.10082267224788666,
-0.5919596552848816,
0.003471022704616189,
0.23797816038131714,
0.15739257633686066,
-0.29121124744415283,
0.5987551808357239,
-0.04768484830856323,
0.12348414212465286,
-0.5213546752929688,
-0.4303772747516632,
0.21263131499290466,
-0.31366515159606934,
0.29600927233695984,
0.16330218315124512,
0.06630703806877136,
-0.038084205240011215,
0.06350203603506088,
-0.2227795422077179,
0.16216769814491272,
-0.06548988074064255,
-0.22625021636486053,
-0.19133253395557404,
0.0895262062549591,
-0.01552259549498558,
-0.31403830647468567,
-0.07927533239126205,
-0.6464053988456726,
0.5182403922080994,
-0.164669468998909,
0.15421739220619202,
0.34521082043647766,
-0.15288572013378143,
0.10420814156532288,
-0.11296992748975754,
0.06731041520833969,
-0.3176528215408325,
0.12815511226654053,
0.12763714790344238,
-0.2890615165233612,
-0.14191845059394836,
-0.21761608123779297,
-0.27099794149398804,
0.1267259567975998,
-0.09543406963348389,
-0.39817994832992554,
0.13591299951076508,
-0.06615926325321198,
0.09535887092351913,
-0.05314153805375099,
-0.22078953683376312,
0.25689780712127686,
-0.016948580741882324,
-0.2660771608352661,
-0.06536534428596497,
-0.3890555799007416,
0.14122040569782257,
0.2797258198261261,
0.06797369569540024,
0.06808146089315414,
0.07809610664844513,
0.03506699949502945,
0.29839107394218445,
-0.03973712399601936,
0.2279607206583023,
0.15303874015808105,
0.008908193558454514,
0.3236822485923767,
-0.08994363993406296,
-0.2734910845756531,
0.5499246120452881,
0.20220935344696045,
-0.05003933981060982,
0.4199291169643402,
0.06430656462907791,
-0.14871782064437866,
-0.07764238864183426,
-0.1573595255613327,
-0.07766278833150864,
-0.14413127303123474,
0.11702559888362885,
-0.16536761820316315,
0.23103554546833038,
-0.21097752451896667,
-0.1682577282190323,
-0.26187631487846375,
-0.04103904962539673,
-0.010537074878811836,
0.16004368662834167,
0.057889197021722794,
-0.24614857137203217,
-0.11575416475534439,
0.33693069219589233,
-0.34250789880752563,
0.105833500623703,
-0.02208407036960125,
-0.09031352400779724,
-0.26293322443962097,
0.10583830624818802,
-0.19200988113880157,
0.03672134131193161,
0.45932623744010925,
-0.08431312441825867,
-0.2236306518316269,
-0.005812868941575289,
0.320273756980896,
-0.04428158700466156,
0.3011356592178345,
0.013720143586397171,
0.09521199762821198,
0.2548999488353729,
0.6941003203392029,
-0.3379407525062561,
0.044424623250961304,
0.4166785478591919,
-0.05314094200730324,
0.10038969665765762,
-0.07567692548036575,
0.035447608679533005,
-0.27379587292671204,
-0.06572097539901733,
0.40453365445137024,
0.17147530615329742,
0.10806121677160263,
0.42783522605895996,
-0.1285213679075241,
0.19647204875946045,
-0.07498682290315628,
0.20832744240760803,
-0.2814508378505707,
0.015828266739845276,
0.2705780267715454,
0.18650220334529877,
-0.15020090341567993,
-0.08520761132240295,
0.2100268006324768,
0.39605313539505005,
0.16591843962669373,
-0.19727273285388947,
0.1441333144903183,
-0.25531309843063354,
0.37269923090934753,
0.27602431178092957,
0.23140880465507507,
0.19511736929416656,
-0.013276512734591961,
0.4930601418018341,
-0.25135424733161926,
0.10690218955278397,
0.09101834893226624,
-0.004525208380073309,
-0.5179163813591003,
-0.44198551774024963,
0.13233885169029236,
0.15440088510513306,
-0.06533762067556381,
0.42783525586128235,
-0.08700773864984512,
-0.19381795823574066,
-0.20657600462436676,
0.049564179033041,
0.9224182963371277,
0.004203602205961943,
0.21195843815803528,
0.4051854610443115,
-0.579530656337738,
0.06949695199728012,
-0.2566625475883484,
0.1229209154844284,
-0.045113980770111084,
0.28353068232536316,
0.06159886717796326,
0.05275925621390343,
-0.18642403185367584,
0.1910010278224945,
-0.4328393340110779,
0.09303773939609528,
0.061527494341135025,
0.14654959738254547,
0.13449452817440033,
0.49713194370269775,
-0.15695704519748688,
-0.3890839219093323,
-0.26498889923095703,
0.25392743945121765,
-0.14056262373924255,
-0.07138890027999878,
-0.06380701810121536,
-0.16147735714912415,
0.031006239354610443,
-0.05307938903570175,
-0.5341100096702576,
-0.1280452460050583,
-0.26718470454216003,
-0.19891972839832306,
0.08456230908632278,
-0.5190028548240662,
0.2743312120437622,
-0.12119433283805847,
0.01685209572315216,
0.1504993736743927,
-0.30638715624809265,
0.10297029465436935,
0.04610219970345497,
0.008074401877820492,
-0.013042503036558628,
-0.07696010172367096,
0.44760408997535706,
-0.03064448945224285,
-0.05824141949415207,
0.06678678840398788,
0.21321113407611847,
-0.1285061240196228,
-0.5471842288970947,
0.09721770137548447,
0.042194075882434845,
-0.11747153103351593,
0.01414999645203352,
0.10936339944601059,
-0.11677868664264679,
-0.2550394535064697,
0.22617799043655396,
0.11290691792964935,
0.021429691463708878,
-0.07003985345363617,
0.01697811484336853,
-0.1325223445892334,
-0.22558432817459106,
0.05639795586466789,
0.13701412081718445,
-0.19527938961982727,
0.1854112446308136,
0.45062902569770813,
-0.15309208631515503,
-0.5877161622047424,
0.005971756763756275,
0.2940581738948822,
0.0000028058475436409935,
0.26964181661605835,
0.09142276644706726,
-0.29569560289382935,
0.046439480036497116,
0.3118741810321808,
0.023787863552570343,
-0.03983058035373688,
0.04001510888338089,
-0.010781971737742424,
-0.4449402093887329,
0.23840448260307312,
-0.3241705596446991,
0.160429447889328,
-0.14419443905353546,
-0.021319987252354622,
0.2203153520822525,
0.04238051176071167,
-0.48604345321655273,
-0.0637272521853447,
-0.41091039776802063,
0.06737098097801208,
0.3359679877758026,
-0.18163202702999115,
-0.0566212460398674,
0.0057615055702626705,
0.20047703385353088,
-0.1914740949869156,
-0.28322967886924744,
-0.31878018379211426,
-0.17699022591114044,
0.08310134708881378,
0.03466005250811577,
0.22099944949150085,
0.005538189318031073,
0.00536127807572484,
-0.34747573733329773,
-0.05858105793595314,
0.31220322847366333,
0.3366633951663971,
-0.011006227694451809,
-0.12795525789260864,
-0.33252081274986267,
-0.06528443843126297,
0.25339505076408386,
-0.12364954501390457,
0.18065273761749268,
0.10770347714424133,
0.034610796719789505,
-0.008513559587299824,
0.24834813177585602,
-0.058827538043260574,
-0.11016631871461868,
0.43262186646461487,
0.4296227991580963,
-0.06562184542417526,
0.16555637121200562,
0.03954903781414032,
-0.03177753835916519,
0.2534836232662201,
0.1656472384929657,
-0.012733858078718185,
-0.03429143503308296,
0.0483633391559124,
0.10877100378274918,
0.3111405670642853,
-0.09674587845802307,
0.23822438716888428,
0.1319253295660019,
-0.36406782269477844,
0.2468385547399521,
0.18560566008090973,
-0.002897881902754307,
0.24478015303611755,
0.08753564208745956,
0.142965167760849,
0.09313590079545975,
0.060396380722522736,
0.19902899861335754,
-0.153216153383255,
0.09718165546655655,
-0.06411296129226685,
0.5701427459716797,
0.17836210131645203,
0.32128849625587463,
0.09075069427490234,
0.29581400752067566,
0.24646815657615662,
0.060643721371889114,
0.11941702663898468,
0.40310630202293396,
-0.020018357783555984,
-0.10443288832902908,
-0.15902458131313324,
-0.1592029333114624,
-0.048653461039066315,
-0.08688703924417496,
0.5234052538871765,
-0.2786831855773926,
0.1393798589706421,
-0.0019497459288686514,
0.012419475242495537,
-0.23110970854759216,
0.1900731474161148,
-0.02406914532184601,
-0.2697419226169586,
-0.14293164014816284,
0.022310981526970863,
0.020966781303286552,
-0.11664769798517227,
0.15731872618198395,
-0.020656870678067207,
0.09621617197990417,
-0.20940245687961578,
0.11803576350212097,
0.2326321303844452,
0.14624027907848358,
-0.3240090608596802,
0.06976725161075592,
-0.24878059327602386,
0.13030919432640076,
0.09857168793678284,
0.5581966042518616,
0.19264629483222961,
0.11277061700820923,
-0.33132028579711914,
0.05880831927061081,
-0.23643167316913605,
-0.1330973505973816,
-0.06212446838617325,
0.15942750871181488,
0.20897608995437622,
0.06707535684108734,
0.2844000458717346,
0.23944367468357086,
-0.28127509355545044,
0.26497766375541687,
0.20160813629627228,
-0.4137313961982727,
-0.3584226071834564,
-0.03285791352391243,
-0.027371954172849655,
-0.2570316195487976,
-0.2707478404045105,
-0.0777752697467804,
-0.47741013765335083,
-0.16502343118190765,
0.13266921043395996,
-0.04940880462527275,
0.015492763370275497,
-0.3788840174674988,
0.15651826560497284,
-0.10111736506223679,
0.39190101623535156,
0.347565233707428,
0.4866902232170105,
-0.09844797849655151,
-0.14288456737995148,
-0.31401991844177246,
0.1523292064666748,
-0.006351957563310862,
-0.14100836217403412,
-0.01028044056147337,
-0.04322100803256035,
0.0756920576095581,
0.3448822796344757,
-0.11295503377914429,
-0.011736896820366383,
-0.04045432060956955,
-0.05936461687088013,
-0.3465917706489563,
0.2285216599702835,
0.3738492429256439,
0.24616150557994843,
0.12554892897605896,
-0.07476744800806046,
-0.0023517999798059464,
0.012315475381910801,
0.15396824479103088,
-0.21393230557441711,
-0.07135892659425735,
0.08292478322982788,
-0.16945035755634308,
0.2467191070318222,
-0.28515613079071045,
0.3618655204772949,
-0.16379691660404205,
-0.12174345552921295,
-0.10987364500761032,
0.10350088775157928,
-0.1392451971769333,
-0.18594302237033844,
0.11508143693208694,
0.3691796064376831,
-0.11660324782133102,
-0.05767768621444702,
-0.0611322745680809,
-0.029461119323968887,
-0.041259706020355225,
0.28655263781547546,
0.07004325836896896,
0.17877556383609772,
0.048796724528074265,
-0.07155921310186386,
-0.07513218373060226,
0.11261118948459625,
-0.025128735229372978,
-0.06604987382888794,
-0.09300808608531952,
-0.36222371459007263,
0.2840493321418762,
-0.029528537765145302,
-0.4029161334037781,
-0.12932832539081573,
0.22466926276683807,
0.048119109123945236,
-0.1693311482667923,
-0.5357702970504761,
0.11124224960803986,
0.2190643548965454,
0.24210768938064575,
0.03192054107785225,
0.3021373748779297,
-0.13882127404212952,
-0.0703435018658638,
-0.03447674214839935,
0.010381323285400867,
0.026946822181344032,
0.1642327457666397,
-0.20713162422180176,
-0.35599520802497864
] |
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.32471200823783875,
0.016105303540825844,
-0.10880483686923981,
0.026004865765571594,
0.24204294383525848,
0.019868796691298485,
0.7173693776130676,
0.37563660740852356,
0.2509217858314514,
0.13370388746261597,
-0.034231994301080704,
0.14970430731773376,
0.07979933172464371,
0.021183447912335396,
-0.1269310563802719,
-0.1772821694612503,
-0.1271572709083557,
0.27433180809020996,
-0.4187990128993988,
0.014497049152851105,
-0.12488499283790588,
-0.002357589779421687,
-0.03493829816579819,
0.14053384959697723,
-0.2024637907743454,
-0.006238620728254318,
0.11578208208084106,
0.13127711415290833,
-0.02769201248884201,
-0.4939197301864624,
0.336521714925766,
0.0402497798204422,
0.32377299666404724,
0.3632173538208008,
-0.00010603086411720142,
0.21352343261241913,
0.25174030661582947,
-0.028866903856396675,
-0.42790886759757996,
-0.4611109495162964,
-0.10899229347705841,
-0.3690283000469208,
0.4228135049343109,
-0.3986176550388336,
0.0005742041394114494,
-0.11989749222993851,
-0.06735827773809433,
-0.3161994218826294,
0.43138885498046875,
0.4785010814666748,
0.2786397635936737,
0.41547533869743347,
0.016583243384957314,
-0.11103420704603195,
0.07182198762893677,
0.055533647537231445,
-0.06249231472611427,
0.40612778067588806,
0.05162418261170387,
-0.18499110639095306,
-0.2426789104938507,
0.08461225032806396,
-0.19269858300685883,
0.3955323398113251,
0.1906036138534546,
0.08309609442949295,
0.037770453840494156,
-0.19663375616073608,
0.1252264827489853,
0.10768327862024307,
0.4764900207519531,
-0.23145553469657898,
-0.2321469485759735,
-0.05849948897957802,
-0.19948190450668335,
-0.18815690279006958,
0.16607394814491272,
0.08673039823770523,
-0.16833798587322235,
0.14744049310684204,
-0.2638413608074188,
0.09908030182123184,
-0.39075225591659546,
0.14945536851882935,
-0.11051249504089355,
0.15475712716579437,
-0.06718402355909348,
0.19474484026432037,
0.15826450288295746,
-0.05648339167237282,
0.40368887782096863,
-0.20703426003456116,
0.19160978496074677,
0.12766236066818237,
-0.33776426315307617,
0.13115745782852173,
0.1394049972295761,
-0.3861345648765564,
-0.10645691305398941,
0.04989417642354965,
-0.036173395812511444,
-0.05359051376581192,
0.13355015218257904,
0.2916465997695923,
0.19836249947547913,
0.07914331555366516,
-0.13086526095867157,
0.29477357864379883,
0.26872485876083374,
0.1325620412826538,
0.04226183146238327,
-0.062484946101903915,
-0.08005751669406891,
-0.35580629110336304,
0.16349764168262482,
0.1999797224998474,
0.489458829164505,
-0.04742845892906189,
-0.28160059452056885,
0.1326407790184021,
0.012910381890833378,
-0.10737286508083344,
0.018969327211380005,
0.35893121361732483,
-0.08796829730272293,
0.20431599020957947,
0.04245297983288765,
0.013688945211470127,
-0.22352781891822815,
0.08454272896051407,
-0.2120840698480606,
0.037955526262521744,
-0.11933092027902603,
-0.06953232735395432,
0.38133153319358826,
-0.07908950001001358,
0.04663301259279251,
-0.014668370597064495,
0.0989309623837471,
0.05034883692860603,
0.26117005944252014,
-0.293282687664032,
0.04918288066983223,
0.41293200850486755,
0.05615435913205147,
0.2478841096162796,
0.4095257520675659,
-0.18423408269882202,
-0.1060606837272644,
0.08659042418003082,
-0.20454305410385132,
-0.3371691107749939,
-0.33854788541793823,
0.24021141231060028,
0.036889731884002686,
0.10894139856100082,
-0.01846679113805294,
-0.33027389645576477,
0.09865912050008774,
-0.27471622824668884,
-0.15415936708450317,
-0.3237559497356415,
-0.03890470042824745,
-0.21599149703979492,
0.3081871569156647,
0.6463353633880615,
-0.43031853437423706,
0.04295635223388672,
0.05663658678531647,
-0.12991641461849213,
0.14145997166633606,
0.25084784626960754,
-0.3076961934566498,
0.08512570708990097,
-0.22846083343029022,
-0.09667688608169556,
0.23148232698440552,
-0.3093754053115845,
-0.30328166484832764,
0.5005191564559937,
-0.23734532296657562,
-0.07294342666864395,
0.21697719395160675,
0.012616132386028767,
0.29105645418167114,
0.18582835793495178,
0.26151472330093384,
0.3000476360321045,
-0.1007598266005516,
0.11755272001028061,
-0.07992324233055115,
-0.22256016731262207,
0.1973581612110138,
0.1164560616016388,
0.00981650035828352,
0.2231837511062622,
0.32496723532676697,
-0.2579791843891144,
0.17411428689956665,
-0.07687216997146606,
0.1447921097278595,
0.13450798392295837,
0.17397190630435944,
0.041984301060438156,
-0.060600101947784424,
-0.02166435495018959,
-0.508517861366272,
0.13815580308437347,
0.1310923993587494,
0.09030098468065262,
-0.437656432390213,
-0.0162691418081522,
-0.3771233558654785,
0.005172153934836388,
-0.2671603560447693,
-0.030242139473557472,
0.210017129778862,
0.34153077006340027,
-0.019159510731697083,
-0.05231765657663345,
-0.04885714128613472,
0.3256910741329193,
-0.11661287397146225,
-0.019255908206105232,
-0.41563037037849426,
0.339555561542511,
-0.3544686436653137,
-0.06900285184383392,
0.05235421657562256,
-0.031419865787029266,
0.1626497209072113,
-0.1825554519891739,
-0.27196839451789856,
0.35612353682518005,
-0.09558536112308502,
0.21822459995746613,
0.01704983599483967,
-0.004438372794538736,
0.05262068286538124,
-0.24509944021701813,
0.03237759321928024,
0.03111436776816845,
0.15333178639411926,
0.04318298399448395,
-0.2613137364387512,
0.3525986969470978,
-0.0953487977385521,
0.1633698046207428,
0.05065413564443588,
0.07041224092245102,
0.451421320438385,
0.01199399121105671,
-0.11404761672019958,
-0.10850893706083298,
0.10549511760473251,
0.2389214187860489,
0.22623606026172638,
0.04910338297486305,
-0.18027199804782867,
-0.18862369656562805,
0.20185908675193787,
-0.15322740375995636,
0.011608144268393517,
0.09235330671072006,
-0.108622245490551,
-0.044281672686338425,
0.21468468010425568,
0.231919065117836,
0.5149134397506714,
0.10260216146707535,
-0.15260213613510132,
-0.018321368843317032,
-0.0503232479095459,
-0.13382309675216675,
0.11027746647596359,
-0.03869219124317169,
0.04487742856144905,
0.3272632956504822,
0.0759822204709053,
0.10698052495718002,
-0.24100764095783234,
-0.36308661103248596,
-0.04194922372698784,
0.26388904452323914,
-0.34930068254470825,
0.24792659282684326,
-0.16456817090511322,
0.018282191827893257,
-0.2659018635749817,
-0.05033004283905029,
-0.11050056666135788,
-0.1780741959810257,
-0.36958062648773193,
0.3607572019100189,
-0.07638242840766907,
0.23725172877311707,
-0.2790016531944275,
-0.051641013473272324,
0.38798409700393677,
-0.4498325288295746,
-0.07305996119976044,
-0.20816658437252045,
-0.16014620661735535,
0.0924806147813797,
0.09351000934839249,
-0.1568920761346817,
0.3031650483608246,
-0.09899213910102844,
0.02052631415426731,
-0.1610623598098755,
-0.023834560066461563,
-0.08211689442396164,
0.012528114952147007,
0.12830567359924316,
0.18785417079925537,
0.4475230574607849,
0.12060226500034332,
-0.5035606622695923,
0.3184548020362854,
-0.0834972932934761,
0.048193931579589844,
0.19645681977272034,
-0.053702253848314285,
-0.20325517654418945,
0.0006879896973259747,
-0.634535014629364,
-0.5991464257240295,
-0.46986398100852966,
0.13753452897071838,
0.06650899350643158,
0.21323172748088837,
0.29552510380744934,
0.22690188884735107,
0.2099233865737915,
0.08665823191404343,
0.07574880123138428,
-0.05961277708411217,
-0.15918417274951935,
0.34999820590019226,
-0.23496009409427643,
-0.35702845454216003,
-0.11339619010686874,
-0.11525484174489975,
0.12194446474313736,
0.13648675382137299,
-0.4447760581970215,
-0.02361573465168476,
-0.17468364536762238,
0.3565398156642914,
-0.046724025160074234,
0.05170505866408348,
0.4662777781486511,
0.1686568260192871,
-0.17062900960445404,
0.11266064643859863,
-0.24418726563453674,
-0.14081153273582458,
0.1942562609910965,
0.0843702033162117,
0.004410764202475548,
0.45936936140060425,
-0.15895907580852509,
0.6532876491546631,
-0.07980897277593613,
-0.18971000611782074,
0.2884310185909271,
-0.1362251192331314,
0.34296685457229614,
-0.18450714647769928,
-0.6308501958847046,
-0.09177837520837784,
-0.3062296509742737,
-0.2018837332725525,
0.010753131471574306,
-0.22972877323627472,
-0.23058657348155975,
-0.36419960856437683,
0.018699610605835915,
-0.30493322014808655,
-0.31378236413002014,
0.13632600009441376,
-0.11969809234142303,
0.363541841506958,
0.04688183590769768,
-0.013036111369729042,
-0.25293731689453125,
-0.060058411210775375,
-0.24862772226333618,
0.3659863770008087,
-0.00622245529666543,
-0.09316615760326385,
-0.26687851548194885,
0.10691315680742264,
-0.2810812294483185,
0.2432362586259842,
0.08004966378211975,
0.5622869729995728,
-0.202708899974823,
-0.18679577112197876,
-0.03779308497905731,
0.058157969266176224,
0.40282243490219116,
0.0884442925453186,
0.08746375143527985,
0.2563878893852234,
-0.051590695977211,
-0.3120606541633606,
-0.08621114492416382,
-0.08868395537137985,
0.22119545936584473,
0.22769904136657715,
0.4607938826084137,
0.05911535397171974,
-0.12697738409042358,
0.31690672039985657,
0.2359135001897812,
-0.08725605905056,
-0.17905370891094208,
-0.28387531638145447,
-0.050810910761356354,
-0.3215521574020386,
-0.10537411272525787,
-0.11184188723564148,
0.179032102227211,
-0.17329037189483643,
-0.12812741100788116,
0.07372359931468964,
-0.17101942002773285,
0.0011048013111576438,
0.11932019889354706,
-0.1456996351480484,
0.09597717225551605,
0.2179175317287445,
0.19069808721542358,
0.26288679242134094,
0.20216141641139984,
0.44293108582496643,
-0.20945046842098236,
-0.5551645755767822,
0.17726172506809235,
-0.014554912224411964,
0.10783135890960693,
0.10523741692304611,
-0.1369357705116272,
-0.14875853061676025,
0.17527461051940918,
0.18085575103759766,
-0.153957337141037,
0.19385267794132233,
0.24986691772937775,
-0.11665390431880951,
-0.3529873788356781,
-0.41480690240859985,
0.1314443200826645,
-0.20059287548065186,
-0.09675171226263046,
0.19510282576084137,
-0.3385472297668457,
-0.06351573020219803,
0.25952407717704773,
-0.15831054747104645,
0.6695192456245422,
-0.12689338624477386,
0.18091733753681183,
0.16285280883312225,
-0.1345139443874359,
0.4483828842639923,
-0.1574920415878296,
0.1192621961236,
-0.34411492943763733,
-0.23600426316261292,
-0.09949743002653122,
-0.24985764920711517,
0.32185423374176025,
0.009868518449366093,
-0.09696096181869507,
0.23642131686210632,
-0.061417173594236374,
0.28134846687316895,
0.06527969241142273,
0.22038081288337708,
0.06127920374274254,
-0.23026911914348602,
-0.18300895392894745,
0.19012024998664856,
-0.09313647449016571,
0.4134555757045746,
0.029970824718475342,
-0.11374158412218094,
-0.012485253624618053,
-0.36156657338142395,
-0.04313954338431358,
0.05932158604264259,
-0.28306666016578674,
0.4136626422405243,
0.048829540610313416,
-0.3536549508571625,
-0.0551411435008049,
0.13816973567008972,
-0.15337547659873962,
0.0783294215798378,
-0.14985109865665436,
-0.07945619523525238,
-0.10809151828289032,
-0.06119578331708908,
-0.11690074950456619,
-0.002908408408984542,
0.14739954471588135,
0.08248423784971237,
-0.2685491144657135,
0.27557218074798584,
-0.11783129721879959,
-0.34037184715270996,
0.1828363686800003,
0.27734026312828064,
0.26229217648506165,
-0.5065497159957886,
-0.13994765281677246,
-0.31026867032051086,
-0.1075604036450386,
-0.12932081520557404,
0.20053182542324066,
-0.11239349842071533,
0.025672558695077896,
0.005595238879323006,
-0.08788871765136719,
-0.3105519115924835,
-0.04196329042315483,
0.6014828681945801,
-0.07181446999311447,
-0.06635017693042755,
0.32715436816215515,
0.06249130144715309,
-0.18431729078292847,
-0.24286773800849915,
0.19904059171676636,
-0.00443226657807827,
-0.4677979052066803,
-0.09300800412893295,
0.06877963244915009,
0.05869607999920845,
-0.11389092355966568,
0.07177576422691345,
0.2206760048866272,
0.10313423722982407,
0.035783641040325165,
-0.48031044006347656,
-0.5924564599990845,
-0.09012292325496674,
-0.012087962590157986,
0.14931277930736542,
0.4447917342185974,
0.22306977212429047,
0.05577920004725456,
0.10906755924224854,
-0.35995423793792725,
-0.0675610601902008,
-0.18956880271434784,
0.15761549770832062,
0.5117647647857666,
-0.26470980048179626,
0.17706520855426788,
-0.15527111291885376,
0.240911066532135,
-0.14292332530021667,
-0.12628701329231262,
-0.3133457899093628,
0.0018985376227647066,
0.061845164746046066,
0.020244179293513298,
-0.3433457314968109,
-0.33765485882759094,
-0.26847589015960693,
-0.014809625223279,
-0.07406362891197205,
-0.0003414591192267835,
0.21307724714279175,
-0.11873137205839157,
0.21216101944446564,
-0.24539315700531006,
0.08101442456245422,
-0.13400839269161224,
0.1350557953119278,
-0.27996626496315,
0.24027667939662933,
0.027082664892077446,
0.2827392816543579,
-0.07186421751976013,
-0.019442223012447357,
-0.4871893525123596,
-0.05400272458791733,
0.010926726274192333,
0.09868684411048889,
0.3070954978466034,
-0.1801375299692154,
-0.137321338057518,
0.005329393781721592,
0.3991234004497528,
0.2806529104709625,
-0.2605661153793335,
0.016448689624667168,
0.12060566246509552,
0.30771681666374207,
-0.21690931916236877,
-0.1124175637960434,
0.1596364974975586,
0.025512726977467537,
0.20569927990436554,
-0.023339860141277313,
0.0817394033074379,
-0.19466018676757812,
0.27316907048225403,
0.03548227250576019,
0.4447307288646698,
-0.08818071335554123,
0.20259374380111694,
0.611838698387146,
0.01973925158381462,
-0.0029397900216281414,
0.1617921143770218,
0.1720682829618454,
0.1941983848810196,
0.427090585231781,
-0.17929226160049438,
-0.0874079018831253,
-0.060371313244104385,
0.16990812122821808,
-0.17825302481651306,
-0.47331398725509644,
0.14328043162822723,
-0.15970668196678162,
-0.2988283932209015,
-0.06702284514904022,
0.049674589186906815,
0.280322790145874,
-0.2598399817943573,
0.07498693466186523,
-0.10565520823001862,
0.1608564257621765,
-0.09228972345590591,
-0.1408545821905136,
0.08977126330137253,
-0.07309723645448685,
-0.12902624905109406,
-0.042556025087833405,
0.11327151209115982,
0.08388665318489075,
0.2775801420211792,
0.2630511224269867,
-0.08818797022104263,
-0.20061561465263367,
0.1970885694026947,
0.2208365947008133,
-0.055748920887708664,
-0.1138676181435585,
0.15573693811893463,
0.3445361852645874,
0.17394089698791504,
-0.1311293989419937,
0.17611993849277496,
0.6315093040466309,
0.34706202149391174,
0.0025093459989875555,
0.20304864645004272,
-0.1124483123421669,
-0.14246569573879242,
-0.0864444151520729,
0.025159113109111786,
-0.09247422963380814,
0.20702865719795227,
0.35639405250549316,
0.3213754892349243,
-0.19019874930381775,
0.33391305804252625,
-0.04639432206749916,
-0.145346537232399,
-0.19388757646083832,
0.3707820475101471,
0.07530127465724945,
-0.2841668128967285,
-0.12542155385017395,
0.015040245838463306,
-0.402141809463501,
0.06934294104576111,
0.4656215012073517,
0.010683698579668999,
0.2924722731113434,
0.001887854072265327,
0.10944385081529617,
-0.09056182950735092,
0.42697301506996155,
0.14451174437999725,
0.3763493597507477,
-0.4452264904975891,
0.011287657544016838,
-0.50272536277771,
0.1829468011856079,
-0.03917977586388588,
0.0534203015267849,
-0.04423617571592331,
0.17016887664794922,
0.010517117567360401,
0.20270296931266785,
-0.14749903976917267,
-0.05667027831077576,
0.017852162942290306,
0.12563417851924896,
0.026940064504742622,
-0.1631549447774887,
-0.20206904411315918,
0.05830048769712448,
-0.0021006425376981497,
-0.39048659801483154,
0.2174811214208603,
0.02108445204794407,
0.1405794620513916,
-0.2631102204322815,
-0.06372445821762085,
0.1954774111509323,
0.12738986313343048,
0.3907392621040344,
0.16002370417118073,
0.6441078782081604,
-0.10564817488193512,
0.0829368531703949,
-0.06830979138612747,
-0.2543078064918518,
0.01514433789998293,
0.19531722366809845,
0.26786720752716064,
0.21443593502044678,
-0.08898662775754929,
-0.314135879278183,
-0.47147300839424133,
0.3997179865837097,
-0.054113663733005524,
-0.08573810011148453,
-0.04443321004509926,
-0.1015133261680603,
-0.02954046241939068,
0.04289216548204422,
0.0381942093372345,
-0.033093761652708054,
0.011734681203961372,
0.21084868907928467,
-0.17600476741790771,
-0.409662127494812,
0.41831210255622864,
-0.26436227560043335,
-0.25048574805259705,
-0.17109964787960052,
0.27817803621292114,
-0.04632914066314697,
0.28937843441963196,
-0.27733147144317627,
0.2958231270313263,
0.45240318775177,
-0.21106761693954468,
-0.2147776186466217,
0.22343921661376953,
0.019069433212280273,
0.2123967409133911,
-0.03966193273663521,
0.4695010781288147,
0.10085902363061905,
-0.2427973747253418,
-0.15513014793395996,
-0.21959015727043152
] |
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.32471200823783875,
0.016105303540825844,
-0.10880483686923981,
0.026004865765571594,
0.24204294383525848,
0.019868796691298485,
0.7173693776130676,
0.37563660740852356,
0.2509217858314514,
0.13370388746261597,
-0.034231994301080704,
0.14970430731773376,
0.07979933172464371,
0.021183447912335396,
-0.1269310563802719,
-0.1772821694612503,
-0.1271572709083557,
0.27433180809020996,
-0.4187990128993988,
0.014497049152851105,
-0.12488499283790588,
-0.002357589779421687,
-0.03493829816579819,
0.14053384959697723,
-0.2024637907743454,
-0.006238620728254318,
0.11578208208084106,
0.13127711415290833,
-0.02769201248884201,
-0.4939197301864624,
0.336521714925766,
0.0402497798204422,
0.32377299666404724,
0.3632173538208008,
-0.00010603086411720142,
0.21352343261241913,
0.25174030661582947,
-0.028866903856396675,
-0.42790886759757996,
-0.4611109495162964,
-0.10899229347705841,
-0.3690283000469208,
0.4228135049343109,
-0.3986176550388336,
0.0005742041394114494,
-0.11989749222993851,
-0.06735827773809433,
-0.3161994218826294,
0.43138885498046875,
0.4785010814666748,
0.2786397635936737,
0.41547533869743347,
0.016583243384957314,
-0.11103420704603195,
0.07182198762893677,
0.055533647537231445,
-0.06249231472611427,
0.40612778067588806,
0.05162418261170387,
-0.18499110639095306,
-0.2426789104938507,
0.08461225032806396,
-0.19269858300685883,
0.3955323398113251,
0.1906036138534546,
0.08309609442949295,
0.037770453840494156,
-0.19663375616073608,
0.1252264827489853,
0.10768327862024307,
0.4764900207519531,
-0.23145553469657898,
-0.2321469485759735,
-0.05849948897957802,
-0.19948190450668335,
-0.18815690279006958,
0.16607394814491272,
0.08673039823770523,
-0.16833798587322235,
0.14744049310684204,
-0.2638413608074188,
0.09908030182123184,
-0.39075225591659546,
0.14945536851882935,
-0.11051249504089355,
0.15475712716579437,
-0.06718402355909348,
0.19474484026432037,
0.15826450288295746,
-0.05648339167237282,
0.40368887782096863,
-0.20703426003456116,
0.19160978496074677,
0.12766236066818237,
-0.33776426315307617,
0.13115745782852173,
0.1394049972295761,
-0.3861345648765564,
-0.10645691305398941,
0.04989417642354965,
-0.036173395812511444,
-0.05359051376581192,
0.13355015218257904,
0.2916465997695923,
0.19836249947547913,
0.07914331555366516,
-0.13086526095867157,
0.29477357864379883,
0.26872485876083374,
0.1325620412826538,
0.04226183146238327,
-0.062484946101903915,
-0.08005751669406891,
-0.35580629110336304,
0.16349764168262482,
0.1999797224998474,
0.489458829164505,
-0.04742845892906189,
-0.28160059452056885,
0.1326407790184021,
0.012910381890833378,
-0.10737286508083344,
0.018969327211380005,
0.35893121361732483,
-0.08796829730272293,
0.20431599020957947,
0.04245297983288765,
0.013688945211470127,
-0.22352781891822815,
0.08454272896051407,
-0.2120840698480606,
0.037955526262521744,
-0.11933092027902603,
-0.06953232735395432,
0.38133153319358826,
-0.07908950001001358,
0.04663301259279251,
-0.014668370597064495,
0.0989309623837471,
0.05034883692860603,
0.26117005944252014,
-0.293282687664032,
0.04918288066983223,
0.41293200850486755,
0.05615435913205147,
0.2478841096162796,
0.4095257520675659,
-0.18423408269882202,
-0.1060606837272644,
0.08659042418003082,
-0.20454305410385132,
-0.3371691107749939,
-0.33854788541793823,
0.24021141231060028,
0.036889731884002686,
0.10894139856100082,
-0.01846679113805294,
-0.33027389645576477,
0.09865912050008774,
-0.27471622824668884,
-0.15415936708450317,
-0.3237559497356415,
-0.03890470042824745,
-0.21599149703979492,
0.3081871569156647,
0.6463353633880615,
-0.43031853437423706,
0.04295635223388672,
0.05663658678531647,
-0.12991641461849213,
0.14145997166633606,
0.25084784626960754,
-0.3076961934566498,
0.08512570708990097,
-0.22846083343029022,
-0.09667688608169556,
0.23148232698440552,
-0.3093754053115845,
-0.30328166484832764,
0.5005191564559937,
-0.23734532296657562,
-0.07294342666864395,
0.21697719395160675,
0.012616132386028767,
0.29105645418167114,
0.18582835793495178,
0.26151472330093384,
0.3000476360321045,
-0.1007598266005516,
0.11755272001028061,
-0.07992324233055115,
-0.22256016731262207,
0.1973581612110138,
0.1164560616016388,
0.00981650035828352,
0.2231837511062622,
0.32496723532676697,
-0.2579791843891144,
0.17411428689956665,
-0.07687216997146606,
0.1447921097278595,
0.13450798392295837,
0.17397190630435944,
0.041984301060438156,
-0.060600101947784424,
-0.02166435495018959,
-0.508517861366272,
0.13815580308437347,
0.1310923993587494,
0.09030098468065262,
-0.437656432390213,
-0.0162691418081522,
-0.3771233558654785,
0.005172153934836388,
-0.2671603560447693,
-0.030242139473557472,
0.210017129778862,
0.34153077006340027,
-0.019159510731697083,
-0.05231765657663345,
-0.04885714128613472,
0.3256910741329193,
-0.11661287397146225,
-0.019255908206105232,
-0.41563037037849426,
0.339555561542511,
-0.3544686436653137,
-0.06900285184383392,
0.05235421657562256,
-0.031419865787029266,
0.1626497209072113,
-0.1825554519891739,
-0.27196839451789856,
0.35612353682518005,
-0.09558536112308502,
0.21822459995746613,
0.01704983599483967,
-0.004438372794538736,
0.05262068286538124,
-0.24509944021701813,
0.03237759321928024,
0.03111436776816845,
0.15333178639411926,
0.04318298399448395,
-0.2613137364387512,
0.3525986969470978,
-0.0953487977385521,
0.1633698046207428,
0.05065413564443588,
0.07041224092245102,
0.451421320438385,
0.01199399121105671,
-0.11404761672019958,
-0.10850893706083298,
0.10549511760473251,
0.2389214187860489,
0.22623606026172638,
0.04910338297486305,
-0.18027199804782867,
-0.18862369656562805,
0.20185908675193787,
-0.15322740375995636,
0.011608144268393517,
0.09235330671072006,
-0.108622245490551,
-0.044281672686338425,
0.21468468010425568,
0.231919065117836,
0.5149134397506714,
0.10260216146707535,
-0.15260213613510132,
-0.018321368843317032,
-0.0503232479095459,
-0.13382309675216675,
0.11027746647596359,
-0.03869219124317169,
0.04487742856144905,
0.3272632956504822,
0.0759822204709053,
0.10698052495718002,
-0.24100764095783234,
-0.36308661103248596,
-0.04194922372698784,
0.26388904452323914,
-0.34930068254470825,
0.24792659282684326,
-0.16456817090511322,
0.018282191827893257,
-0.2659018635749817,
-0.05033004283905029,
-0.11050056666135788,
-0.1780741959810257,
-0.36958062648773193,
0.3607572019100189,
-0.07638242840766907,
0.23725172877311707,
-0.2790016531944275,
-0.051641013473272324,
0.38798409700393677,
-0.4498325288295746,
-0.07305996119976044,
-0.20816658437252045,
-0.16014620661735535,
0.0924806147813797,
0.09351000934839249,
-0.1568920761346817,
0.3031650483608246,
-0.09899213910102844,
0.02052631415426731,
-0.1610623598098755,
-0.023834560066461563,
-0.08211689442396164,
0.012528114952147007,
0.12830567359924316,
0.18785417079925537,
0.4475230574607849,
0.12060226500034332,
-0.5035606622695923,
0.3184548020362854,
-0.0834972932934761,
0.048193931579589844,
0.19645681977272034,
-0.053702253848314285,
-0.20325517654418945,
0.0006879896973259747,
-0.634535014629364,
-0.5991464257240295,
-0.46986398100852966,
0.13753452897071838,
0.06650899350643158,
0.21323172748088837,
0.29552510380744934,
0.22690188884735107,
0.2099233865737915,
0.08665823191404343,
0.07574880123138428,
-0.05961277708411217,
-0.15918417274951935,
0.34999820590019226,
-0.23496009409427643,
-0.35702845454216003,
-0.11339619010686874,
-0.11525484174489975,
0.12194446474313736,
0.13648675382137299,
-0.4447760581970215,
-0.02361573465168476,
-0.17468364536762238,
0.3565398156642914,
-0.046724025160074234,
0.05170505866408348,
0.4662777781486511,
0.1686568260192871,
-0.17062900960445404,
0.11266064643859863,
-0.24418726563453674,
-0.14081153273582458,
0.1942562609910965,
0.0843702033162117,
0.004410764202475548,
0.45936936140060425,
-0.15895907580852509,
0.6532876491546631,
-0.07980897277593613,
-0.18971000611782074,
0.2884310185909271,
-0.1362251192331314,
0.34296685457229614,
-0.18450714647769928,
-0.6308501958847046,
-0.09177837520837784,
-0.3062296509742737,
-0.2018837332725525,
0.010753131471574306,
-0.22972877323627472,
-0.23058657348155975,
-0.36419960856437683,
0.018699610605835915,
-0.30493322014808655,
-0.31378236413002014,
0.13632600009441376,
-0.11969809234142303,
0.363541841506958,
0.04688183590769768,
-0.013036111369729042,
-0.25293731689453125,
-0.060058411210775375,
-0.24862772226333618,
0.3659863770008087,
-0.00622245529666543,
-0.09316615760326385,
-0.26687851548194885,
0.10691315680742264,
-0.2810812294483185,
0.2432362586259842,
0.08004966378211975,
0.5622869729995728,
-0.202708899974823,
-0.18679577112197876,
-0.03779308497905731,
0.058157969266176224,
0.40282243490219116,
0.0884442925453186,
0.08746375143527985,
0.2563878893852234,
-0.051590695977211,
-0.3120606541633606,
-0.08621114492416382,
-0.08868395537137985,
0.22119545936584473,
0.22769904136657715,
0.4607938826084137,
0.05911535397171974,
-0.12697738409042358,
0.31690672039985657,
0.2359135001897812,
-0.08725605905056,
-0.17905370891094208,
-0.28387531638145447,
-0.050810910761356354,
-0.3215521574020386,
-0.10537411272525787,
-0.11184188723564148,
0.179032102227211,
-0.17329037189483643,
-0.12812741100788116,
0.07372359931468964,
-0.17101942002773285,
0.0011048013111576438,
0.11932019889354706,
-0.1456996351480484,
0.09597717225551605,
0.2179175317287445,
0.19069808721542358,
0.26288679242134094,
0.20216141641139984,
0.44293108582496643,
-0.20945046842098236,
-0.5551645755767822,
0.17726172506809235,
-0.014554912224411964,
0.10783135890960693,
0.10523741692304611,
-0.1369357705116272,
-0.14875853061676025,
0.17527461051940918,
0.18085575103759766,
-0.153957337141037,
0.19385267794132233,
0.24986691772937775,
-0.11665390431880951,
-0.3529873788356781,
-0.41480690240859985,
0.1314443200826645,
-0.20059287548065186,
-0.09675171226263046,
0.19510282576084137,
-0.3385472297668457,
-0.06351573020219803,
0.25952407717704773,
-0.15831054747104645,
0.6695192456245422,
-0.12689338624477386,
0.18091733753681183,
0.16285280883312225,
-0.1345139443874359,
0.4483828842639923,
-0.1574920415878296,
0.1192621961236,
-0.34411492943763733,
-0.23600426316261292,
-0.09949743002653122,
-0.24985764920711517,
0.32185423374176025,
0.009868518449366093,
-0.09696096181869507,
0.23642131686210632,
-0.061417173594236374,
0.28134846687316895,
0.06527969241142273,
0.22038081288337708,
0.06127920374274254,
-0.23026911914348602,
-0.18300895392894745,
0.19012024998664856,
-0.09313647449016571,
0.4134555757045746,
0.029970824718475342,
-0.11374158412218094,
-0.012485253624618053,
-0.36156657338142395,
-0.04313954338431358,
0.05932158604264259,
-0.28306666016578674,
0.4136626422405243,
0.048829540610313416,
-0.3536549508571625,
-0.0551411435008049,
0.13816973567008972,
-0.15337547659873962,
0.0783294215798378,
-0.14985109865665436,
-0.07945619523525238,
-0.10809151828289032,
-0.06119578331708908,
-0.11690074950456619,
-0.002908408408984542,
0.14739954471588135,
0.08248423784971237,
-0.2685491144657135,
0.27557218074798584,
-0.11783129721879959,
-0.34037184715270996,
0.1828363686800003,
0.27734026312828064,
0.26229217648506165,
-0.5065497159957886,
-0.13994765281677246,
-0.31026867032051086,
-0.1075604036450386,
-0.12932081520557404,
0.20053182542324066,
-0.11239349842071533,
0.025672558695077896,
0.005595238879323006,
-0.08788871765136719,
-0.3105519115924835,
-0.04196329042315483,
0.6014828681945801,
-0.07181446999311447,
-0.06635017693042755,
0.32715436816215515,
0.06249130144715309,
-0.18431729078292847,
-0.24286773800849915,
0.19904059171676636,
-0.00443226657807827,
-0.4677979052066803,
-0.09300800412893295,
0.06877963244915009,
0.05869607999920845,
-0.11389092355966568,
0.07177576422691345,
0.2206760048866272,
0.10313423722982407,
0.035783641040325165,
-0.48031044006347656,
-0.5924564599990845,
-0.09012292325496674,
-0.012087962590157986,
0.14931277930736542,
0.4447917342185974,
0.22306977212429047,
0.05577920004725456,
0.10906755924224854,
-0.35995423793792725,
-0.0675610601902008,
-0.18956880271434784,
0.15761549770832062,
0.5117647647857666,
-0.26470980048179626,
0.17706520855426788,
-0.15527111291885376,
0.240911066532135,
-0.14292332530021667,
-0.12628701329231262,
-0.3133457899093628,
0.0018985376227647066,
0.061845164746046066,
0.020244179293513298,
-0.3433457314968109,
-0.33765485882759094,
-0.26847589015960693,
-0.014809625223279,
-0.07406362891197205,
-0.0003414591192267835,
0.21307724714279175,
-0.11873137205839157,
0.21216101944446564,
-0.24539315700531006,
0.08101442456245422,
-0.13400839269161224,
0.1350557953119278,
-0.27996626496315,
0.24027667939662933,
0.027082664892077446,
0.2827392816543579,
-0.07186421751976013,
-0.019442223012447357,
-0.4871893525123596,
-0.05400272458791733,
0.010926726274192333,
0.09868684411048889,
0.3070954978466034,
-0.1801375299692154,
-0.137321338057518,
0.005329393781721592,
0.3991234004497528,
0.2806529104709625,
-0.2605661153793335,
0.016448689624667168,
0.12060566246509552,
0.30771681666374207,
-0.21690931916236877,
-0.1124175637960434,
0.1596364974975586,
0.025512726977467537,
0.20569927990436554,
-0.023339860141277313,
0.0817394033074379,
-0.19466018676757812,
0.27316907048225403,
0.03548227250576019,
0.4447307288646698,
-0.08818071335554123,
0.20259374380111694,
0.611838698387146,
0.01973925158381462,
-0.0029397900216281414,
0.1617921143770218,
0.1720682829618454,
0.1941983848810196,
0.427090585231781,
-0.17929226160049438,
-0.0874079018831253,
-0.060371313244104385,
0.16990812122821808,
-0.17825302481651306,
-0.47331398725509644,
0.14328043162822723,
-0.15970668196678162,
-0.2988283932209015,
-0.06702284514904022,
0.049674589186906815,
0.280322790145874,
-0.2598399817943573,
0.07498693466186523,
-0.10565520823001862,
0.1608564257621765,
-0.09228972345590591,
-0.1408545821905136,
0.08977126330137253,
-0.07309723645448685,
-0.12902624905109406,
-0.042556025087833405,
0.11327151209115982,
0.08388665318489075,
0.2775801420211792,
0.2630511224269867,
-0.08818797022104263,
-0.20061561465263367,
0.1970885694026947,
0.2208365947008133,
-0.055748920887708664,
-0.1138676181435585,
0.15573693811893463,
0.3445361852645874,
0.17394089698791504,
-0.1311293989419937,
0.17611993849277496,
0.6315093040466309,
0.34706202149391174,
0.0025093459989875555,
0.20304864645004272,
-0.1124483123421669,
-0.14246569573879242,
-0.0864444151520729,
0.025159113109111786,
-0.09247422963380814,
0.20702865719795227,
0.35639405250549316,
0.3213754892349243,
-0.19019874930381775,
0.33391305804252625,
-0.04639432206749916,
-0.145346537232399,
-0.19388757646083832,
0.3707820475101471,
0.07530127465724945,
-0.2841668128967285,
-0.12542155385017395,
0.015040245838463306,
-0.402141809463501,
0.06934294104576111,
0.4656215012073517,
0.010683698579668999,
0.2924722731113434,
0.001887854072265327,
0.10944385081529617,
-0.09056182950735092,
0.42697301506996155,
0.14451174437999725,
0.3763493597507477,
-0.4452264904975891,
0.011287657544016838,
-0.50272536277771,
0.1829468011856079,
-0.03917977586388588,
0.0534203015267849,
-0.04423617571592331,
0.17016887664794922,
0.010517117567360401,
0.20270296931266785,
-0.14749903976917267,
-0.05667027831077576,
0.017852162942290306,
0.12563417851924896,
0.026940064504742622,
-0.1631549447774887,
-0.20206904411315918,
0.05830048769712448,
-0.0021006425376981497,
-0.39048659801483154,
0.2174811214208603,
0.02108445204794407,
0.1405794620513916,
-0.2631102204322815,
-0.06372445821762085,
0.1954774111509323,
0.12738986313343048,
0.3907392621040344,
0.16002370417118073,
0.6441078782081604,
-0.10564817488193512,
0.0829368531703949,
-0.06830979138612747,
-0.2543078064918518,
0.01514433789998293,
0.19531722366809845,
0.26786720752716064,
0.21443593502044678,
-0.08898662775754929,
-0.314135879278183,
-0.47147300839424133,
0.3997179865837097,
-0.054113663733005524,
-0.08573810011148453,
-0.04443321004509926,
-0.1015133261680603,
-0.02954046241939068,
0.04289216548204422,
0.0381942093372345,
-0.033093761652708054,
0.011734681203961372,
0.21084868907928467,
-0.17600476741790771,
-0.409662127494812,
0.41831210255622864,
-0.26436227560043335,
-0.25048574805259705,
-0.17109964787960052,
0.27817803621292114,
-0.04632914066314697,
0.28937843441963196,
-0.27733147144317627,
0.2958231270313263,
0.45240318775177,
-0.21106761693954468,
-0.2147776186466217,
0.22343921661376953,
0.019069433212280273,
0.2123967409133911,
-0.03966193273663521,
0.4695010781288147,
0.10085902363061905,
-0.2427973747253418,
-0.15513014793395996,
-0.21959015727043152
] |
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.32471200823783875,
0.016105303540825844,
-0.10880483686923981,
0.026004865765571594,
0.24204294383525848,
0.019868796691298485,
0.7173693776130676,
0.37563660740852356,
0.2509217858314514,
0.13370388746261597,
-0.034231994301080704,
0.14970430731773376,
0.07979933172464371,
0.021183447912335396,
-0.1269310563802719,
-0.1772821694612503,
-0.1271572709083557,
0.27433180809020996,
-0.4187990128993988,
0.014497049152851105,
-0.12488499283790588,
-0.002357589779421687,
-0.03493829816579819,
0.14053384959697723,
-0.2024637907743454,
-0.006238620728254318,
0.11578208208084106,
0.13127711415290833,
-0.02769201248884201,
-0.4939197301864624,
0.336521714925766,
0.0402497798204422,
0.32377299666404724,
0.3632173538208008,
-0.00010603086411720142,
0.21352343261241913,
0.25174030661582947,
-0.028866903856396675,
-0.42790886759757996,
-0.4611109495162964,
-0.10899229347705841,
-0.3690283000469208,
0.4228135049343109,
-0.3986176550388336,
0.0005742041394114494,
-0.11989749222993851,
-0.06735827773809433,
-0.3161994218826294,
0.43138885498046875,
0.4785010814666748,
0.2786397635936737,
0.41547533869743347,
0.016583243384957314,
-0.11103420704603195,
0.07182198762893677,
0.055533647537231445,
-0.06249231472611427,
0.40612778067588806,
0.05162418261170387,
-0.18499110639095306,
-0.2426789104938507,
0.08461225032806396,
-0.19269858300685883,
0.3955323398113251,
0.1906036138534546,
0.08309609442949295,
0.037770453840494156,
-0.19663375616073608,
0.1252264827489853,
0.10768327862024307,
0.4764900207519531,
-0.23145553469657898,
-0.2321469485759735,
-0.05849948897957802,
-0.19948190450668335,
-0.18815690279006958,
0.16607394814491272,
0.08673039823770523,
-0.16833798587322235,
0.14744049310684204,
-0.2638413608074188,
0.09908030182123184,
-0.39075225591659546,
0.14945536851882935,
-0.11051249504089355,
0.15475712716579437,
-0.06718402355909348,
0.19474484026432037,
0.15826450288295746,
-0.05648339167237282,
0.40368887782096863,
-0.20703426003456116,
0.19160978496074677,
0.12766236066818237,
-0.33776426315307617,
0.13115745782852173,
0.1394049972295761,
-0.3861345648765564,
-0.10645691305398941,
0.04989417642354965,
-0.036173395812511444,
-0.05359051376581192,
0.13355015218257904,
0.2916465997695923,
0.19836249947547913,
0.07914331555366516,
-0.13086526095867157,
0.29477357864379883,
0.26872485876083374,
0.1325620412826538,
0.04226183146238327,
-0.062484946101903915,
-0.08005751669406891,
-0.35580629110336304,
0.16349764168262482,
0.1999797224998474,
0.489458829164505,
-0.04742845892906189,
-0.28160059452056885,
0.1326407790184021,
0.012910381890833378,
-0.10737286508083344,
0.018969327211380005,
0.35893121361732483,
-0.08796829730272293,
0.20431599020957947,
0.04245297983288765,
0.013688945211470127,
-0.22352781891822815,
0.08454272896051407,
-0.2120840698480606,
0.037955526262521744,
-0.11933092027902603,
-0.06953232735395432,
0.38133153319358826,
-0.07908950001001358,
0.04663301259279251,
-0.014668370597064495,
0.0989309623837471,
0.05034883692860603,
0.26117005944252014,
-0.293282687664032,
0.04918288066983223,
0.41293200850486755,
0.05615435913205147,
0.2478841096162796,
0.4095257520675659,
-0.18423408269882202,
-0.1060606837272644,
0.08659042418003082,
-0.20454305410385132,
-0.3371691107749939,
-0.33854788541793823,
0.24021141231060028,
0.036889731884002686,
0.10894139856100082,
-0.01846679113805294,
-0.33027389645576477,
0.09865912050008774,
-0.27471622824668884,
-0.15415936708450317,
-0.3237559497356415,
-0.03890470042824745,
-0.21599149703979492,
0.3081871569156647,
0.6463353633880615,
-0.43031853437423706,
0.04295635223388672,
0.05663658678531647,
-0.12991641461849213,
0.14145997166633606,
0.25084784626960754,
-0.3076961934566498,
0.08512570708990097,
-0.22846083343029022,
-0.09667688608169556,
0.23148232698440552,
-0.3093754053115845,
-0.30328166484832764,
0.5005191564559937,
-0.23734532296657562,
-0.07294342666864395,
0.21697719395160675,
0.012616132386028767,
0.29105645418167114,
0.18582835793495178,
0.26151472330093384,
0.3000476360321045,
-0.1007598266005516,
0.11755272001028061,
-0.07992324233055115,
-0.22256016731262207,
0.1973581612110138,
0.1164560616016388,
0.00981650035828352,
0.2231837511062622,
0.32496723532676697,
-0.2579791843891144,
0.17411428689956665,
-0.07687216997146606,
0.1447921097278595,
0.13450798392295837,
0.17397190630435944,
0.041984301060438156,
-0.060600101947784424,
-0.02166435495018959,
-0.508517861366272,
0.13815580308437347,
0.1310923993587494,
0.09030098468065262,
-0.437656432390213,
-0.0162691418081522,
-0.3771233558654785,
0.005172153934836388,
-0.2671603560447693,
-0.030242139473557472,
0.210017129778862,
0.34153077006340027,
-0.019159510731697083,
-0.05231765657663345,
-0.04885714128613472,
0.3256910741329193,
-0.11661287397146225,
-0.019255908206105232,
-0.41563037037849426,
0.339555561542511,
-0.3544686436653137,
-0.06900285184383392,
0.05235421657562256,
-0.031419865787029266,
0.1626497209072113,
-0.1825554519891739,
-0.27196839451789856,
0.35612353682518005,
-0.09558536112308502,
0.21822459995746613,
0.01704983599483967,
-0.004438372794538736,
0.05262068286538124,
-0.24509944021701813,
0.03237759321928024,
0.03111436776816845,
0.15333178639411926,
0.04318298399448395,
-0.2613137364387512,
0.3525986969470978,
-0.0953487977385521,
0.1633698046207428,
0.05065413564443588,
0.07041224092245102,
0.451421320438385,
0.01199399121105671,
-0.11404761672019958,
-0.10850893706083298,
0.10549511760473251,
0.2389214187860489,
0.22623606026172638,
0.04910338297486305,
-0.18027199804782867,
-0.18862369656562805,
0.20185908675193787,
-0.15322740375995636,
0.011608144268393517,
0.09235330671072006,
-0.108622245490551,
-0.044281672686338425,
0.21468468010425568,
0.231919065117836,
0.5149134397506714,
0.10260216146707535,
-0.15260213613510132,
-0.018321368843317032,
-0.0503232479095459,
-0.13382309675216675,
0.11027746647596359,
-0.03869219124317169,
0.04487742856144905,
0.3272632956504822,
0.0759822204709053,
0.10698052495718002,
-0.24100764095783234,
-0.36308661103248596,
-0.04194922372698784,
0.26388904452323914,
-0.34930068254470825,
0.24792659282684326,
-0.16456817090511322,
0.018282191827893257,
-0.2659018635749817,
-0.05033004283905029,
-0.11050056666135788,
-0.1780741959810257,
-0.36958062648773193,
0.3607572019100189,
-0.07638242840766907,
0.23725172877311707,
-0.2790016531944275,
-0.051641013473272324,
0.38798409700393677,
-0.4498325288295746,
-0.07305996119976044,
-0.20816658437252045,
-0.16014620661735535,
0.0924806147813797,
0.09351000934839249,
-0.1568920761346817,
0.3031650483608246,
-0.09899213910102844,
0.02052631415426731,
-0.1610623598098755,
-0.023834560066461563,
-0.08211689442396164,
0.012528114952147007,
0.12830567359924316,
0.18785417079925537,
0.4475230574607849,
0.12060226500034332,
-0.5035606622695923,
0.3184548020362854,
-0.0834972932934761,
0.048193931579589844,
0.19645681977272034,
-0.053702253848314285,
-0.20325517654418945,
0.0006879896973259747,
-0.634535014629364,
-0.5991464257240295,
-0.46986398100852966,
0.13753452897071838,
0.06650899350643158,
0.21323172748088837,
0.29552510380744934,
0.22690188884735107,
0.2099233865737915,
0.08665823191404343,
0.07574880123138428,
-0.05961277708411217,
-0.15918417274951935,
0.34999820590019226,
-0.23496009409427643,
-0.35702845454216003,
-0.11339619010686874,
-0.11525484174489975,
0.12194446474313736,
0.13648675382137299,
-0.4447760581970215,
-0.02361573465168476,
-0.17468364536762238,
0.3565398156642914,
-0.046724025160074234,
0.05170505866408348,
0.4662777781486511,
0.1686568260192871,
-0.17062900960445404,
0.11266064643859863,
-0.24418726563453674,
-0.14081153273582458,
0.1942562609910965,
0.0843702033162117,
0.004410764202475548,
0.45936936140060425,
-0.15895907580852509,
0.6532876491546631,
-0.07980897277593613,
-0.18971000611782074,
0.2884310185909271,
-0.1362251192331314,
0.34296685457229614,
-0.18450714647769928,
-0.6308501958847046,
-0.09177837520837784,
-0.3062296509742737,
-0.2018837332725525,
0.010753131471574306,
-0.22972877323627472,
-0.23058657348155975,
-0.36419960856437683,
0.018699610605835915,
-0.30493322014808655,
-0.31378236413002014,
0.13632600009441376,
-0.11969809234142303,
0.363541841506958,
0.04688183590769768,
-0.013036111369729042,
-0.25293731689453125,
-0.060058411210775375,
-0.24862772226333618,
0.3659863770008087,
-0.00622245529666543,
-0.09316615760326385,
-0.26687851548194885,
0.10691315680742264,
-0.2810812294483185,
0.2432362586259842,
0.08004966378211975,
0.5622869729995728,
-0.202708899974823,
-0.18679577112197876,
-0.03779308497905731,
0.058157969266176224,
0.40282243490219116,
0.0884442925453186,
0.08746375143527985,
0.2563878893852234,
-0.051590695977211,
-0.3120606541633606,
-0.08621114492416382,
-0.08868395537137985,
0.22119545936584473,
0.22769904136657715,
0.4607938826084137,
0.05911535397171974,
-0.12697738409042358,
0.31690672039985657,
0.2359135001897812,
-0.08725605905056,
-0.17905370891094208,
-0.28387531638145447,
-0.050810910761356354,
-0.3215521574020386,
-0.10537411272525787,
-0.11184188723564148,
0.179032102227211,
-0.17329037189483643,
-0.12812741100788116,
0.07372359931468964,
-0.17101942002773285,
0.0011048013111576438,
0.11932019889354706,
-0.1456996351480484,
0.09597717225551605,
0.2179175317287445,
0.19069808721542358,
0.26288679242134094,
0.20216141641139984,
0.44293108582496643,
-0.20945046842098236,
-0.5551645755767822,
0.17726172506809235,
-0.014554912224411964,
0.10783135890960693,
0.10523741692304611,
-0.1369357705116272,
-0.14875853061676025,
0.17527461051940918,
0.18085575103759766,
-0.153957337141037,
0.19385267794132233,
0.24986691772937775,
-0.11665390431880951,
-0.3529873788356781,
-0.41480690240859985,
0.1314443200826645,
-0.20059287548065186,
-0.09675171226263046,
0.19510282576084137,
-0.3385472297668457,
-0.06351573020219803,
0.25952407717704773,
-0.15831054747104645,
0.6695192456245422,
-0.12689338624477386,
0.18091733753681183,
0.16285280883312225,
-0.1345139443874359,
0.4483828842639923,
-0.1574920415878296,
0.1192621961236,
-0.34411492943763733,
-0.23600426316261292,
-0.09949743002653122,
-0.24985764920711517,
0.32185423374176025,
0.009868518449366093,
-0.09696096181869507,
0.23642131686210632,
-0.061417173594236374,
0.28134846687316895,
0.06527969241142273,
0.22038081288337708,
0.06127920374274254,
-0.23026911914348602,
-0.18300895392894745,
0.19012024998664856,
-0.09313647449016571,
0.4134555757045746,
0.029970824718475342,
-0.11374158412218094,
-0.012485253624618053,
-0.36156657338142395,
-0.04313954338431358,
0.05932158604264259,
-0.28306666016578674,
0.4136626422405243,
0.048829540610313416,
-0.3536549508571625,
-0.0551411435008049,
0.13816973567008972,
-0.15337547659873962,
0.0783294215798378,
-0.14985109865665436,
-0.07945619523525238,
-0.10809151828289032,
-0.06119578331708908,
-0.11690074950456619,
-0.002908408408984542,
0.14739954471588135,
0.08248423784971237,
-0.2685491144657135,
0.27557218074798584,
-0.11783129721879959,
-0.34037184715270996,
0.1828363686800003,
0.27734026312828064,
0.26229217648506165,
-0.5065497159957886,
-0.13994765281677246,
-0.31026867032051086,
-0.1075604036450386,
-0.12932081520557404,
0.20053182542324066,
-0.11239349842071533,
0.025672558695077896,
0.005595238879323006,
-0.08788871765136719,
-0.3105519115924835,
-0.04196329042315483,
0.6014828681945801,
-0.07181446999311447,
-0.06635017693042755,
0.32715436816215515,
0.06249130144715309,
-0.18431729078292847,
-0.24286773800849915,
0.19904059171676636,
-0.00443226657807827,
-0.4677979052066803,
-0.09300800412893295,
0.06877963244915009,
0.05869607999920845,
-0.11389092355966568,
0.07177576422691345,
0.2206760048866272,
0.10313423722982407,
0.035783641040325165,
-0.48031044006347656,
-0.5924564599990845,
-0.09012292325496674,
-0.012087962590157986,
0.14931277930736542,
0.4447917342185974,
0.22306977212429047,
0.05577920004725456,
0.10906755924224854,
-0.35995423793792725,
-0.0675610601902008,
-0.18956880271434784,
0.15761549770832062,
0.5117647647857666,
-0.26470980048179626,
0.17706520855426788,
-0.15527111291885376,
0.240911066532135,
-0.14292332530021667,
-0.12628701329231262,
-0.3133457899093628,
0.0018985376227647066,
0.061845164746046066,
0.020244179293513298,
-0.3433457314968109,
-0.33765485882759094,
-0.26847589015960693,
-0.014809625223279,
-0.07406362891197205,
-0.0003414591192267835,
0.21307724714279175,
-0.11873137205839157,
0.21216101944446564,
-0.24539315700531006,
0.08101442456245422,
-0.13400839269161224,
0.1350557953119278,
-0.27996626496315,
0.24027667939662933,
0.027082664892077446,
0.2827392816543579,
-0.07186421751976013,
-0.019442223012447357,
-0.4871893525123596,
-0.05400272458791733,
0.010926726274192333,
0.09868684411048889,
0.3070954978466034,
-0.1801375299692154,
-0.137321338057518,
0.005329393781721592,
0.3991234004497528,
0.2806529104709625,
-0.2605661153793335,
0.016448689624667168,
0.12060566246509552,
0.30771681666374207,
-0.21690931916236877,
-0.1124175637960434,
0.1596364974975586,
0.025512726977467537,
0.20569927990436554,
-0.023339860141277313,
0.0817394033074379,
-0.19466018676757812,
0.27316907048225403,
0.03548227250576019,
0.4447307288646698,
-0.08818071335554123,
0.20259374380111694,
0.611838698387146,
0.01973925158381462,
-0.0029397900216281414,
0.1617921143770218,
0.1720682829618454,
0.1941983848810196,
0.427090585231781,
-0.17929226160049438,
-0.0874079018831253,
-0.060371313244104385,
0.16990812122821808,
-0.17825302481651306,
-0.47331398725509644,
0.14328043162822723,
-0.15970668196678162,
-0.2988283932209015,
-0.06702284514904022,
0.049674589186906815,
0.280322790145874,
-0.2598399817943573,
0.07498693466186523,
-0.10565520823001862,
0.1608564257621765,
-0.09228972345590591,
-0.1408545821905136,
0.08977126330137253,
-0.07309723645448685,
-0.12902624905109406,
-0.042556025087833405,
0.11327151209115982,
0.08388665318489075,
0.2775801420211792,
0.2630511224269867,
-0.08818797022104263,
-0.20061561465263367,
0.1970885694026947,
0.2208365947008133,
-0.055748920887708664,
-0.1138676181435585,
0.15573693811893463,
0.3445361852645874,
0.17394089698791504,
-0.1311293989419937,
0.17611993849277496,
0.6315093040466309,
0.34706202149391174,
0.0025093459989875555,
0.20304864645004272,
-0.1124483123421669,
-0.14246569573879242,
-0.0864444151520729,
0.025159113109111786,
-0.09247422963380814,
0.20702865719795227,
0.35639405250549316,
0.3213754892349243,
-0.19019874930381775,
0.33391305804252625,
-0.04639432206749916,
-0.145346537232399,
-0.19388757646083832,
0.3707820475101471,
0.07530127465724945,
-0.2841668128967285,
-0.12542155385017395,
0.015040245838463306,
-0.402141809463501,
0.06934294104576111,
0.4656215012073517,
0.010683698579668999,
0.2924722731113434,
0.001887854072265327,
0.10944385081529617,
-0.09056182950735092,
0.42697301506996155,
0.14451174437999725,
0.3763493597507477,
-0.4452264904975891,
0.011287657544016838,
-0.50272536277771,
0.1829468011856079,
-0.03917977586388588,
0.0534203015267849,
-0.04423617571592331,
0.17016887664794922,
0.010517117567360401,
0.20270296931266785,
-0.14749903976917267,
-0.05667027831077576,
0.017852162942290306,
0.12563417851924896,
0.026940064504742622,
-0.1631549447774887,
-0.20206904411315918,
0.05830048769712448,
-0.0021006425376981497,
-0.39048659801483154,
0.2174811214208603,
0.02108445204794407,
0.1405794620513916,
-0.2631102204322815,
-0.06372445821762085,
0.1954774111509323,
0.12738986313343048,
0.3907392621040344,
0.16002370417118073,
0.6441078782081604,
-0.10564817488193512,
0.0829368531703949,
-0.06830979138612747,
-0.2543078064918518,
0.01514433789998293,
0.19531722366809845,
0.26786720752716064,
0.21443593502044678,
-0.08898662775754929,
-0.314135879278183,
-0.47147300839424133,
0.3997179865837097,
-0.054113663733005524,
-0.08573810011148453,
-0.04443321004509926,
-0.1015133261680603,
-0.02954046241939068,
0.04289216548204422,
0.0381942093372345,
-0.033093761652708054,
0.011734681203961372,
0.21084868907928467,
-0.17600476741790771,
-0.409662127494812,
0.41831210255622864,
-0.26436227560043335,
-0.25048574805259705,
-0.17109964787960052,
0.27817803621292114,
-0.04632914066314697,
0.28937843441963196,
-0.27733147144317627,
0.2958231270313263,
0.45240318775177,
-0.21106761693954468,
-0.2147776186466217,
0.22343921661376953,
0.019069433212280273,
0.2123967409133911,
-0.03966193273663521,
0.4695010781288147,
0.10085902363061905,
-0.2427973747253418,
-0.15513014793395996,
-0.21959015727043152
] |
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.32471200823783875,
0.016105303540825844,
-0.10880483686923981,
0.026004865765571594,
0.24204294383525848,
0.019868796691298485,
0.7173693776130676,
0.37563660740852356,
0.2509217858314514,
0.13370388746261597,
-0.034231994301080704,
0.14970430731773376,
0.07979933172464371,
0.021183447912335396,
-0.1269310563802719,
-0.1772821694612503,
-0.1271572709083557,
0.27433180809020996,
-0.4187990128993988,
0.014497049152851105,
-0.12488499283790588,
-0.002357589779421687,
-0.03493829816579819,
0.14053384959697723,
-0.2024637907743454,
-0.006238620728254318,
0.11578208208084106,
0.13127711415290833,
-0.02769201248884201,
-0.4939197301864624,
0.336521714925766,
0.0402497798204422,
0.32377299666404724,
0.3632173538208008,
-0.00010603086411720142,
0.21352343261241913,
0.25174030661582947,
-0.028866903856396675,
-0.42790886759757996,
-0.4611109495162964,
-0.10899229347705841,
-0.3690283000469208,
0.4228135049343109,
-0.3986176550388336,
0.0005742041394114494,
-0.11989749222993851,
-0.06735827773809433,
-0.3161994218826294,
0.43138885498046875,
0.4785010814666748,
0.2786397635936737,
0.41547533869743347,
0.016583243384957314,
-0.11103420704603195,
0.07182198762893677,
0.055533647537231445,
-0.06249231472611427,
0.40612778067588806,
0.05162418261170387,
-0.18499110639095306,
-0.2426789104938507,
0.08461225032806396,
-0.19269858300685883,
0.3955323398113251,
0.1906036138534546,
0.08309609442949295,
0.037770453840494156,
-0.19663375616073608,
0.1252264827489853,
0.10768327862024307,
0.4764900207519531,
-0.23145553469657898,
-0.2321469485759735,
-0.05849948897957802,
-0.19948190450668335,
-0.18815690279006958,
0.16607394814491272,
0.08673039823770523,
-0.16833798587322235,
0.14744049310684204,
-0.2638413608074188,
0.09908030182123184,
-0.39075225591659546,
0.14945536851882935,
-0.11051249504089355,
0.15475712716579437,
-0.06718402355909348,
0.19474484026432037,
0.15826450288295746,
-0.05648339167237282,
0.40368887782096863,
-0.20703426003456116,
0.19160978496074677,
0.12766236066818237,
-0.33776426315307617,
0.13115745782852173,
0.1394049972295761,
-0.3861345648765564,
-0.10645691305398941,
0.04989417642354965,
-0.036173395812511444,
-0.05359051376581192,
0.13355015218257904,
0.2916465997695923,
0.19836249947547913,
0.07914331555366516,
-0.13086526095867157,
0.29477357864379883,
0.26872485876083374,
0.1325620412826538,
0.04226183146238327,
-0.062484946101903915,
-0.08005751669406891,
-0.35580629110336304,
0.16349764168262482,
0.1999797224998474,
0.489458829164505,
-0.04742845892906189,
-0.28160059452056885,
0.1326407790184021,
0.012910381890833378,
-0.10737286508083344,
0.018969327211380005,
0.35893121361732483,
-0.08796829730272293,
0.20431599020957947,
0.04245297983288765,
0.013688945211470127,
-0.22352781891822815,
0.08454272896051407,
-0.2120840698480606,
0.037955526262521744,
-0.11933092027902603,
-0.06953232735395432,
0.38133153319358826,
-0.07908950001001358,
0.04663301259279251,
-0.014668370597064495,
0.0989309623837471,
0.05034883692860603,
0.26117005944252014,
-0.293282687664032,
0.04918288066983223,
0.41293200850486755,
0.05615435913205147,
0.2478841096162796,
0.4095257520675659,
-0.18423408269882202,
-0.1060606837272644,
0.08659042418003082,
-0.20454305410385132,
-0.3371691107749939,
-0.33854788541793823,
0.24021141231060028,
0.036889731884002686,
0.10894139856100082,
-0.01846679113805294,
-0.33027389645576477,
0.09865912050008774,
-0.27471622824668884,
-0.15415936708450317,
-0.3237559497356415,
-0.03890470042824745,
-0.21599149703979492,
0.3081871569156647,
0.6463353633880615,
-0.43031853437423706,
0.04295635223388672,
0.05663658678531647,
-0.12991641461849213,
0.14145997166633606,
0.25084784626960754,
-0.3076961934566498,
0.08512570708990097,
-0.22846083343029022,
-0.09667688608169556,
0.23148232698440552,
-0.3093754053115845,
-0.30328166484832764,
0.5005191564559937,
-0.23734532296657562,
-0.07294342666864395,
0.21697719395160675,
0.012616132386028767,
0.29105645418167114,
0.18582835793495178,
0.26151472330093384,
0.3000476360321045,
-0.1007598266005516,
0.11755272001028061,
-0.07992324233055115,
-0.22256016731262207,
0.1973581612110138,
0.1164560616016388,
0.00981650035828352,
0.2231837511062622,
0.32496723532676697,
-0.2579791843891144,
0.17411428689956665,
-0.07687216997146606,
0.1447921097278595,
0.13450798392295837,
0.17397190630435944,
0.041984301060438156,
-0.060600101947784424,
-0.02166435495018959,
-0.508517861366272,
0.13815580308437347,
0.1310923993587494,
0.09030098468065262,
-0.437656432390213,
-0.0162691418081522,
-0.3771233558654785,
0.005172153934836388,
-0.2671603560447693,
-0.030242139473557472,
0.210017129778862,
0.34153077006340027,
-0.019159510731697083,
-0.05231765657663345,
-0.04885714128613472,
0.3256910741329193,
-0.11661287397146225,
-0.019255908206105232,
-0.41563037037849426,
0.339555561542511,
-0.3544686436653137,
-0.06900285184383392,
0.05235421657562256,
-0.031419865787029266,
0.1626497209072113,
-0.1825554519891739,
-0.27196839451789856,
0.35612353682518005,
-0.09558536112308502,
0.21822459995746613,
0.01704983599483967,
-0.004438372794538736,
0.05262068286538124,
-0.24509944021701813,
0.03237759321928024,
0.03111436776816845,
0.15333178639411926,
0.04318298399448395,
-0.2613137364387512,
0.3525986969470978,
-0.0953487977385521,
0.1633698046207428,
0.05065413564443588,
0.07041224092245102,
0.451421320438385,
0.01199399121105671,
-0.11404761672019958,
-0.10850893706083298,
0.10549511760473251,
0.2389214187860489,
0.22623606026172638,
0.04910338297486305,
-0.18027199804782867,
-0.18862369656562805,
0.20185908675193787,
-0.15322740375995636,
0.011608144268393517,
0.09235330671072006,
-0.108622245490551,
-0.044281672686338425,
0.21468468010425568,
0.231919065117836,
0.5149134397506714,
0.10260216146707535,
-0.15260213613510132,
-0.018321368843317032,
-0.0503232479095459,
-0.13382309675216675,
0.11027746647596359,
-0.03869219124317169,
0.04487742856144905,
0.3272632956504822,
0.0759822204709053,
0.10698052495718002,
-0.24100764095783234,
-0.36308661103248596,
-0.04194922372698784,
0.26388904452323914,
-0.34930068254470825,
0.24792659282684326,
-0.16456817090511322,
0.018282191827893257,
-0.2659018635749817,
-0.05033004283905029,
-0.11050056666135788,
-0.1780741959810257,
-0.36958062648773193,
0.3607572019100189,
-0.07638242840766907,
0.23725172877311707,
-0.2790016531944275,
-0.051641013473272324,
0.38798409700393677,
-0.4498325288295746,
-0.07305996119976044,
-0.20816658437252045,
-0.16014620661735535,
0.0924806147813797,
0.09351000934839249,
-0.1568920761346817,
0.3031650483608246,
-0.09899213910102844,
0.02052631415426731,
-0.1610623598098755,
-0.023834560066461563,
-0.08211689442396164,
0.012528114952147007,
0.12830567359924316,
0.18785417079925537,
0.4475230574607849,
0.12060226500034332,
-0.5035606622695923,
0.3184548020362854,
-0.0834972932934761,
0.048193931579589844,
0.19645681977272034,
-0.053702253848314285,
-0.20325517654418945,
0.0006879896973259747,
-0.634535014629364,
-0.5991464257240295,
-0.46986398100852966,
0.13753452897071838,
0.06650899350643158,
0.21323172748088837,
0.29552510380744934,
0.22690188884735107,
0.2099233865737915,
0.08665823191404343,
0.07574880123138428,
-0.05961277708411217,
-0.15918417274951935,
0.34999820590019226,
-0.23496009409427643,
-0.35702845454216003,
-0.11339619010686874,
-0.11525484174489975,
0.12194446474313736,
0.13648675382137299,
-0.4447760581970215,
-0.02361573465168476,
-0.17468364536762238,
0.3565398156642914,
-0.046724025160074234,
0.05170505866408348,
0.4662777781486511,
0.1686568260192871,
-0.17062900960445404,
0.11266064643859863,
-0.24418726563453674,
-0.14081153273582458,
0.1942562609910965,
0.0843702033162117,
0.004410764202475548,
0.45936936140060425,
-0.15895907580852509,
0.6532876491546631,
-0.07980897277593613,
-0.18971000611782074,
0.2884310185909271,
-0.1362251192331314,
0.34296685457229614,
-0.18450714647769928,
-0.6308501958847046,
-0.09177837520837784,
-0.3062296509742737,
-0.2018837332725525,
0.010753131471574306,
-0.22972877323627472,
-0.23058657348155975,
-0.36419960856437683,
0.018699610605835915,
-0.30493322014808655,
-0.31378236413002014,
0.13632600009441376,
-0.11969809234142303,
0.363541841506958,
0.04688183590769768,
-0.013036111369729042,
-0.25293731689453125,
-0.060058411210775375,
-0.24862772226333618,
0.3659863770008087,
-0.00622245529666543,
-0.09316615760326385,
-0.26687851548194885,
0.10691315680742264,
-0.2810812294483185,
0.2432362586259842,
0.08004966378211975,
0.5622869729995728,
-0.202708899974823,
-0.18679577112197876,
-0.03779308497905731,
0.058157969266176224,
0.40282243490219116,
0.0884442925453186,
0.08746375143527985,
0.2563878893852234,
-0.051590695977211,
-0.3120606541633606,
-0.08621114492416382,
-0.08868395537137985,
0.22119545936584473,
0.22769904136657715,
0.4607938826084137,
0.05911535397171974,
-0.12697738409042358,
0.31690672039985657,
0.2359135001897812,
-0.08725605905056,
-0.17905370891094208,
-0.28387531638145447,
-0.050810910761356354,
-0.3215521574020386,
-0.10537411272525787,
-0.11184188723564148,
0.179032102227211,
-0.17329037189483643,
-0.12812741100788116,
0.07372359931468964,
-0.17101942002773285,
0.0011048013111576438,
0.11932019889354706,
-0.1456996351480484,
0.09597717225551605,
0.2179175317287445,
0.19069808721542358,
0.26288679242134094,
0.20216141641139984,
0.44293108582496643,
-0.20945046842098236,
-0.5551645755767822,
0.17726172506809235,
-0.014554912224411964,
0.10783135890960693,
0.10523741692304611,
-0.1369357705116272,
-0.14875853061676025,
0.17527461051940918,
0.18085575103759766,
-0.153957337141037,
0.19385267794132233,
0.24986691772937775,
-0.11665390431880951,
-0.3529873788356781,
-0.41480690240859985,
0.1314443200826645,
-0.20059287548065186,
-0.09675171226263046,
0.19510282576084137,
-0.3385472297668457,
-0.06351573020219803,
0.25952407717704773,
-0.15831054747104645,
0.6695192456245422,
-0.12689338624477386,
0.18091733753681183,
0.16285280883312225,
-0.1345139443874359,
0.4483828842639923,
-0.1574920415878296,
0.1192621961236,
-0.34411492943763733,
-0.23600426316261292,
-0.09949743002653122,
-0.24985764920711517,
0.32185423374176025,
0.009868518449366093,
-0.09696096181869507,
0.23642131686210632,
-0.061417173594236374,
0.28134846687316895,
0.06527969241142273,
0.22038081288337708,
0.06127920374274254,
-0.23026911914348602,
-0.18300895392894745,
0.19012024998664856,
-0.09313647449016571,
0.4134555757045746,
0.029970824718475342,
-0.11374158412218094,
-0.012485253624618053,
-0.36156657338142395,
-0.04313954338431358,
0.05932158604264259,
-0.28306666016578674,
0.4136626422405243,
0.048829540610313416,
-0.3536549508571625,
-0.0551411435008049,
0.13816973567008972,
-0.15337547659873962,
0.0783294215798378,
-0.14985109865665436,
-0.07945619523525238,
-0.10809151828289032,
-0.06119578331708908,
-0.11690074950456619,
-0.002908408408984542,
0.14739954471588135,
0.08248423784971237,
-0.2685491144657135,
0.27557218074798584,
-0.11783129721879959,
-0.34037184715270996,
0.1828363686800003,
0.27734026312828064,
0.26229217648506165,
-0.5065497159957886,
-0.13994765281677246,
-0.31026867032051086,
-0.1075604036450386,
-0.12932081520557404,
0.20053182542324066,
-0.11239349842071533,
0.025672558695077896,
0.005595238879323006,
-0.08788871765136719,
-0.3105519115924835,
-0.04196329042315483,
0.6014828681945801,
-0.07181446999311447,
-0.06635017693042755,
0.32715436816215515,
0.06249130144715309,
-0.18431729078292847,
-0.24286773800849915,
0.19904059171676636,
-0.00443226657807827,
-0.4677979052066803,
-0.09300800412893295,
0.06877963244915009,
0.05869607999920845,
-0.11389092355966568,
0.07177576422691345,
0.2206760048866272,
0.10313423722982407,
0.035783641040325165,
-0.48031044006347656,
-0.5924564599990845,
-0.09012292325496674,
-0.012087962590157986,
0.14931277930736542,
0.4447917342185974,
0.22306977212429047,
0.05577920004725456,
0.10906755924224854,
-0.35995423793792725,
-0.0675610601902008,
-0.18956880271434784,
0.15761549770832062,
0.5117647647857666,
-0.26470980048179626,
0.17706520855426788,
-0.15527111291885376,
0.240911066532135,
-0.14292332530021667,
-0.12628701329231262,
-0.3133457899093628,
0.0018985376227647066,
0.061845164746046066,
0.020244179293513298,
-0.3433457314968109,
-0.33765485882759094,
-0.26847589015960693,
-0.014809625223279,
-0.07406362891197205,
-0.0003414591192267835,
0.21307724714279175,
-0.11873137205839157,
0.21216101944446564,
-0.24539315700531006,
0.08101442456245422,
-0.13400839269161224,
0.1350557953119278,
-0.27996626496315,
0.24027667939662933,
0.027082664892077446,
0.2827392816543579,
-0.07186421751976013,
-0.019442223012447357,
-0.4871893525123596,
-0.05400272458791733,
0.010926726274192333,
0.09868684411048889,
0.3070954978466034,
-0.1801375299692154,
-0.137321338057518,
0.005329393781721592,
0.3991234004497528,
0.2806529104709625,
-0.2605661153793335,
0.016448689624667168,
0.12060566246509552,
0.30771681666374207,
-0.21690931916236877,
-0.1124175637960434,
0.1596364974975586,
0.025512726977467537,
0.20569927990436554,
-0.023339860141277313,
0.0817394033074379,
-0.19466018676757812,
0.27316907048225403,
0.03548227250576019,
0.4447307288646698,
-0.08818071335554123,
0.20259374380111694,
0.611838698387146,
0.01973925158381462,
-0.0029397900216281414,
0.1617921143770218,
0.1720682829618454,
0.1941983848810196,
0.427090585231781,
-0.17929226160049438,
-0.0874079018831253,
-0.060371313244104385,
0.16990812122821808,
-0.17825302481651306,
-0.47331398725509644,
0.14328043162822723,
-0.15970668196678162,
-0.2988283932209015,
-0.06702284514904022,
0.049674589186906815,
0.280322790145874,
-0.2598399817943573,
0.07498693466186523,
-0.10565520823001862,
0.1608564257621765,
-0.09228972345590591,
-0.1408545821905136,
0.08977126330137253,
-0.07309723645448685,
-0.12902624905109406,
-0.042556025087833405,
0.11327151209115982,
0.08388665318489075,
0.2775801420211792,
0.2630511224269867,
-0.08818797022104263,
-0.20061561465263367,
0.1970885694026947,
0.2208365947008133,
-0.055748920887708664,
-0.1138676181435585,
0.15573693811893463,
0.3445361852645874,
0.17394089698791504,
-0.1311293989419937,
0.17611993849277496,
0.6315093040466309,
0.34706202149391174,
0.0025093459989875555,
0.20304864645004272,
-0.1124483123421669,
-0.14246569573879242,
-0.0864444151520729,
0.025159113109111786,
-0.09247422963380814,
0.20702865719795227,
0.35639405250549316,
0.3213754892349243,
-0.19019874930381775,
0.33391305804252625,
-0.04639432206749916,
-0.145346537232399,
-0.19388757646083832,
0.3707820475101471,
0.07530127465724945,
-0.2841668128967285,
-0.12542155385017395,
0.015040245838463306,
-0.402141809463501,
0.06934294104576111,
0.4656215012073517,
0.010683698579668999,
0.2924722731113434,
0.001887854072265327,
0.10944385081529617,
-0.09056182950735092,
0.42697301506996155,
0.14451174437999725,
0.3763493597507477,
-0.4452264904975891,
0.011287657544016838,
-0.50272536277771,
0.1829468011856079,
-0.03917977586388588,
0.0534203015267849,
-0.04423617571592331,
0.17016887664794922,
0.010517117567360401,
0.20270296931266785,
-0.14749903976917267,
-0.05667027831077576,
0.017852162942290306,
0.12563417851924896,
0.026940064504742622,
-0.1631549447774887,
-0.20206904411315918,
0.05830048769712448,
-0.0021006425376981497,
-0.39048659801483154,
0.2174811214208603,
0.02108445204794407,
0.1405794620513916,
-0.2631102204322815,
-0.06372445821762085,
0.1954774111509323,
0.12738986313343048,
0.3907392621040344,
0.16002370417118073,
0.6441078782081604,
-0.10564817488193512,
0.0829368531703949,
-0.06830979138612747,
-0.2543078064918518,
0.01514433789998293,
0.19531722366809845,
0.26786720752716064,
0.21443593502044678,
-0.08898662775754929,
-0.314135879278183,
-0.47147300839424133,
0.3997179865837097,
-0.054113663733005524,
-0.08573810011148453,
-0.04443321004509926,
-0.1015133261680603,
-0.02954046241939068,
0.04289216548204422,
0.0381942093372345,
-0.033093761652708054,
0.011734681203961372,
0.21084868907928467,
-0.17600476741790771,
-0.409662127494812,
0.41831210255622864,
-0.26436227560043335,
-0.25048574805259705,
-0.17109964787960052,
0.27817803621292114,
-0.04632914066314697,
0.28937843441963196,
-0.27733147144317627,
0.2958231270313263,
0.45240318775177,
-0.21106761693954468,
-0.2147776186466217,
0.22343921661376953,
0.019069433212280273,
0.2123967409133911,
-0.03966193273663521,
0.4695010781288147,
0.10085902363061905,
-0.2427973747253418,
-0.15513014793395996,
-0.21959015727043152
] |
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.32471200823783875,
0.016105303540825844,
-0.10880483686923981,
0.026004865765571594,
0.24204294383525848,
0.019868796691298485,
0.7173693776130676,
0.37563660740852356,
0.2509217858314514,
0.13370388746261597,
-0.034231994301080704,
0.14970430731773376,
0.07979933172464371,
0.021183447912335396,
-0.1269310563802719,
-0.1772821694612503,
-0.1271572709083557,
0.27433180809020996,
-0.4187990128993988,
0.014497049152851105,
-0.12488499283790588,
-0.002357589779421687,
-0.03493829816579819,
0.14053384959697723,
-0.2024637907743454,
-0.006238620728254318,
0.11578208208084106,
0.13127711415290833,
-0.02769201248884201,
-0.4939197301864624,
0.336521714925766,
0.0402497798204422,
0.32377299666404724,
0.3632173538208008,
-0.00010603086411720142,
0.21352343261241913,
0.25174030661582947,
-0.028866903856396675,
-0.42790886759757996,
-0.4611109495162964,
-0.10899229347705841,
-0.3690283000469208,
0.4228135049343109,
-0.3986176550388336,
0.0005742041394114494,
-0.11989749222993851,
-0.06735827773809433,
-0.3161994218826294,
0.43138885498046875,
0.4785010814666748,
0.2786397635936737,
0.41547533869743347,
0.016583243384957314,
-0.11103420704603195,
0.07182198762893677,
0.055533647537231445,
-0.06249231472611427,
0.40612778067588806,
0.05162418261170387,
-0.18499110639095306,
-0.2426789104938507,
0.08461225032806396,
-0.19269858300685883,
0.3955323398113251,
0.1906036138534546,
0.08309609442949295,
0.037770453840494156,
-0.19663375616073608,
0.1252264827489853,
0.10768327862024307,
0.4764900207519531,
-0.23145553469657898,
-0.2321469485759735,
-0.05849948897957802,
-0.19948190450668335,
-0.18815690279006958,
0.16607394814491272,
0.08673039823770523,
-0.16833798587322235,
0.14744049310684204,
-0.2638413608074188,
0.09908030182123184,
-0.39075225591659546,
0.14945536851882935,
-0.11051249504089355,
0.15475712716579437,
-0.06718402355909348,
0.19474484026432037,
0.15826450288295746,
-0.05648339167237282,
0.40368887782096863,
-0.20703426003456116,
0.19160978496074677,
0.12766236066818237,
-0.33776426315307617,
0.13115745782852173,
0.1394049972295761,
-0.3861345648765564,
-0.10645691305398941,
0.04989417642354965,
-0.036173395812511444,
-0.05359051376581192,
0.13355015218257904,
0.2916465997695923,
0.19836249947547913,
0.07914331555366516,
-0.13086526095867157,
0.29477357864379883,
0.26872485876083374,
0.1325620412826538,
0.04226183146238327,
-0.062484946101903915,
-0.08005751669406891,
-0.35580629110336304,
0.16349764168262482,
0.1999797224998474,
0.489458829164505,
-0.04742845892906189,
-0.28160059452056885,
0.1326407790184021,
0.012910381890833378,
-0.10737286508083344,
0.018969327211380005,
0.35893121361732483,
-0.08796829730272293,
0.20431599020957947,
0.04245297983288765,
0.013688945211470127,
-0.22352781891822815,
0.08454272896051407,
-0.2120840698480606,
0.037955526262521744,
-0.11933092027902603,
-0.06953232735395432,
0.38133153319358826,
-0.07908950001001358,
0.04663301259279251,
-0.014668370597064495,
0.0989309623837471,
0.05034883692860603,
0.26117005944252014,
-0.293282687664032,
0.04918288066983223,
0.41293200850486755,
0.05615435913205147,
0.2478841096162796,
0.4095257520675659,
-0.18423408269882202,
-0.1060606837272644,
0.08659042418003082,
-0.20454305410385132,
-0.3371691107749939,
-0.33854788541793823,
0.24021141231060028,
0.036889731884002686,
0.10894139856100082,
-0.01846679113805294,
-0.33027389645576477,
0.09865912050008774,
-0.27471622824668884,
-0.15415936708450317,
-0.3237559497356415,
-0.03890470042824745,
-0.21599149703979492,
0.3081871569156647,
0.6463353633880615,
-0.43031853437423706,
0.04295635223388672,
0.05663658678531647,
-0.12991641461849213,
0.14145997166633606,
0.25084784626960754,
-0.3076961934566498,
0.08512570708990097,
-0.22846083343029022,
-0.09667688608169556,
0.23148232698440552,
-0.3093754053115845,
-0.30328166484832764,
0.5005191564559937,
-0.23734532296657562,
-0.07294342666864395,
0.21697719395160675,
0.012616132386028767,
0.29105645418167114,
0.18582835793495178,
0.26151472330093384,
0.3000476360321045,
-0.1007598266005516,
0.11755272001028061,
-0.07992324233055115,
-0.22256016731262207,
0.1973581612110138,
0.1164560616016388,
0.00981650035828352,
0.2231837511062622,
0.32496723532676697,
-0.2579791843891144,
0.17411428689956665,
-0.07687216997146606,
0.1447921097278595,
0.13450798392295837,
0.17397190630435944,
0.041984301060438156,
-0.060600101947784424,
-0.02166435495018959,
-0.508517861366272,
0.13815580308437347,
0.1310923993587494,
0.09030098468065262,
-0.437656432390213,
-0.0162691418081522,
-0.3771233558654785,
0.005172153934836388,
-0.2671603560447693,
-0.030242139473557472,
0.210017129778862,
0.34153077006340027,
-0.019159510731697083,
-0.05231765657663345,
-0.04885714128613472,
0.3256910741329193,
-0.11661287397146225,
-0.019255908206105232,
-0.41563037037849426,
0.339555561542511,
-0.3544686436653137,
-0.06900285184383392,
0.05235421657562256,
-0.031419865787029266,
0.1626497209072113,
-0.1825554519891739,
-0.27196839451789856,
0.35612353682518005,
-0.09558536112308502,
0.21822459995746613,
0.01704983599483967,
-0.004438372794538736,
0.05262068286538124,
-0.24509944021701813,
0.03237759321928024,
0.03111436776816845,
0.15333178639411926,
0.04318298399448395,
-0.2613137364387512,
0.3525986969470978,
-0.0953487977385521,
0.1633698046207428,
0.05065413564443588,
0.07041224092245102,
0.451421320438385,
0.01199399121105671,
-0.11404761672019958,
-0.10850893706083298,
0.10549511760473251,
0.2389214187860489,
0.22623606026172638,
0.04910338297486305,
-0.18027199804782867,
-0.18862369656562805,
0.20185908675193787,
-0.15322740375995636,
0.011608144268393517,
0.09235330671072006,
-0.108622245490551,
-0.044281672686338425,
0.21468468010425568,
0.231919065117836,
0.5149134397506714,
0.10260216146707535,
-0.15260213613510132,
-0.018321368843317032,
-0.0503232479095459,
-0.13382309675216675,
0.11027746647596359,
-0.03869219124317169,
0.04487742856144905,
0.3272632956504822,
0.0759822204709053,
0.10698052495718002,
-0.24100764095783234,
-0.36308661103248596,
-0.04194922372698784,
0.26388904452323914,
-0.34930068254470825,
0.24792659282684326,
-0.16456817090511322,
0.018282191827893257,
-0.2659018635749817,
-0.05033004283905029,
-0.11050056666135788,
-0.1780741959810257,
-0.36958062648773193,
0.3607572019100189,
-0.07638242840766907,
0.23725172877311707,
-0.2790016531944275,
-0.051641013473272324,
0.38798409700393677,
-0.4498325288295746,
-0.07305996119976044,
-0.20816658437252045,
-0.16014620661735535,
0.0924806147813797,
0.09351000934839249,
-0.1568920761346817,
0.3031650483608246,
-0.09899213910102844,
0.02052631415426731,
-0.1610623598098755,
-0.023834560066461563,
-0.08211689442396164,
0.012528114952147007,
0.12830567359924316,
0.18785417079925537,
0.4475230574607849,
0.12060226500034332,
-0.5035606622695923,
0.3184548020362854,
-0.0834972932934761,
0.048193931579589844,
0.19645681977272034,
-0.053702253848314285,
-0.20325517654418945,
0.0006879896973259747,
-0.634535014629364,
-0.5991464257240295,
-0.46986398100852966,
0.13753452897071838,
0.06650899350643158,
0.21323172748088837,
0.29552510380744934,
0.22690188884735107,
0.2099233865737915,
0.08665823191404343,
0.07574880123138428,
-0.05961277708411217,
-0.15918417274951935,
0.34999820590019226,
-0.23496009409427643,
-0.35702845454216003,
-0.11339619010686874,
-0.11525484174489975,
0.12194446474313736,
0.13648675382137299,
-0.4447760581970215,
-0.02361573465168476,
-0.17468364536762238,
0.3565398156642914,
-0.046724025160074234,
0.05170505866408348,
0.4662777781486511,
0.1686568260192871,
-0.17062900960445404,
0.11266064643859863,
-0.24418726563453674,
-0.14081153273582458,
0.1942562609910965,
0.0843702033162117,
0.004410764202475548,
0.45936936140060425,
-0.15895907580852509,
0.6532876491546631,
-0.07980897277593613,
-0.18971000611782074,
0.2884310185909271,
-0.1362251192331314,
0.34296685457229614,
-0.18450714647769928,
-0.6308501958847046,
-0.09177837520837784,
-0.3062296509742737,
-0.2018837332725525,
0.010753131471574306,
-0.22972877323627472,
-0.23058657348155975,
-0.36419960856437683,
0.018699610605835915,
-0.30493322014808655,
-0.31378236413002014,
0.13632600009441376,
-0.11969809234142303,
0.363541841506958,
0.04688183590769768,
-0.013036111369729042,
-0.25293731689453125,
-0.060058411210775375,
-0.24862772226333618,
0.3659863770008087,
-0.00622245529666543,
-0.09316615760326385,
-0.26687851548194885,
0.10691315680742264,
-0.2810812294483185,
0.2432362586259842,
0.08004966378211975,
0.5622869729995728,
-0.202708899974823,
-0.18679577112197876,
-0.03779308497905731,
0.058157969266176224,
0.40282243490219116,
0.0884442925453186,
0.08746375143527985,
0.2563878893852234,
-0.051590695977211,
-0.3120606541633606,
-0.08621114492416382,
-0.08868395537137985,
0.22119545936584473,
0.22769904136657715,
0.4607938826084137,
0.05911535397171974,
-0.12697738409042358,
0.31690672039985657,
0.2359135001897812,
-0.08725605905056,
-0.17905370891094208,
-0.28387531638145447,
-0.050810910761356354,
-0.3215521574020386,
-0.10537411272525787,
-0.11184188723564148,
0.179032102227211,
-0.17329037189483643,
-0.12812741100788116,
0.07372359931468964,
-0.17101942002773285,
0.0011048013111576438,
0.11932019889354706,
-0.1456996351480484,
0.09597717225551605,
0.2179175317287445,
0.19069808721542358,
0.26288679242134094,
0.20216141641139984,
0.44293108582496643,
-0.20945046842098236,
-0.5551645755767822,
0.17726172506809235,
-0.014554912224411964,
0.10783135890960693,
0.10523741692304611,
-0.1369357705116272,
-0.14875853061676025,
0.17527461051940918,
0.18085575103759766,
-0.153957337141037,
0.19385267794132233,
0.24986691772937775,
-0.11665390431880951,
-0.3529873788356781,
-0.41480690240859985,
0.1314443200826645,
-0.20059287548065186,
-0.09675171226263046,
0.19510282576084137,
-0.3385472297668457,
-0.06351573020219803,
0.25952407717704773,
-0.15831054747104645,
0.6695192456245422,
-0.12689338624477386,
0.18091733753681183,
0.16285280883312225,
-0.1345139443874359,
0.4483828842639923,
-0.1574920415878296,
0.1192621961236,
-0.34411492943763733,
-0.23600426316261292,
-0.09949743002653122,
-0.24985764920711517,
0.32185423374176025,
0.009868518449366093,
-0.09696096181869507,
0.23642131686210632,
-0.061417173594236374,
0.28134846687316895,
0.06527969241142273,
0.22038081288337708,
0.06127920374274254,
-0.23026911914348602,
-0.18300895392894745,
0.19012024998664856,
-0.09313647449016571,
0.4134555757045746,
0.029970824718475342,
-0.11374158412218094,
-0.012485253624618053,
-0.36156657338142395,
-0.04313954338431358,
0.05932158604264259,
-0.28306666016578674,
0.4136626422405243,
0.048829540610313416,
-0.3536549508571625,
-0.0551411435008049,
0.13816973567008972,
-0.15337547659873962,
0.0783294215798378,
-0.14985109865665436,
-0.07945619523525238,
-0.10809151828289032,
-0.06119578331708908,
-0.11690074950456619,
-0.002908408408984542,
0.14739954471588135,
0.08248423784971237,
-0.2685491144657135,
0.27557218074798584,
-0.11783129721879959,
-0.34037184715270996,
0.1828363686800003,
0.27734026312828064,
0.26229217648506165,
-0.5065497159957886,
-0.13994765281677246,
-0.31026867032051086,
-0.1075604036450386,
-0.12932081520557404,
0.20053182542324066,
-0.11239349842071533,
0.025672558695077896,
0.005595238879323006,
-0.08788871765136719,
-0.3105519115924835,
-0.04196329042315483,
0.6014828681945801,
-0.07181446999311447,
-0.06635017693042755,
0.32715436816215515,
0.06249130144715309,
-0.18431729078292847,
-0.24286773800849915,
0.19904059171676636,
-0.00443226657807827,
-0.4677979052066803,
-0.09300800412893295,
0.06877963244915009,
0.05869607999920845,
-0.11389092355966568,
0.07177576422691345,
0.2206760048866272,
0.10313423722982407,
0.035783641040325165,
-0.48031044006347656,
-0.5924564599990845,
-0.09012292325496674,
-0.012087962590157986,
0.14931277930736542,
0.4447917342185974,
0.22306977212429047,
0.05577920004725456,
0.10906755924224854,
-0.35995423793792725,
-0.0675610601902008,
-0.18956880271434784,
0.15761549770832062,
0.5117647647857666,
-0.26470980048179626,
0.17706520855426788,
-0.15527111291885376,
0.240911066532135,
-0.14292332530021667,
-0.12628701329231262,
-0.3133457899093628,
0.0018985376227647066,
0.061845164746046066,
0.020244179293513298,
-0.3433457314968109,
-0.33765485882759094,
-0.26847589015960693,
-0.014809625223279,
-0.07406362891197205,
-0.0003414591192267835,
0.21307724714279175,
-0.11873137205839157,
0.21216101944446564,
-0.24539315700531006,
0.08101442456245422,
-0.13400839269161224,
0.1350557953119278,
-0.27996626496315,
0.24027667939662933,
0.027082664892077446,
0.2827392816543579,
-0.07186421751976013,
-0.019442223012447357,
-0.4871893525123596,
-0.05400272458791733,
0.010926726274192333,
0.09868684411048889,
0.3070954978466034,
-0.1801375299692154,
-0.137321338057518,
0.005329393781721592,
0.3991234004497528,
0.2806529104709625,
-0.2605661153793335,
0.016448689624667168,
0.12060566246509552,
0.30771681666374207,
-0.21690931916236877,
-0.1124175637960434,
0.1596364974975586,
0.025512726977467537,
0.20569927990436554,
-0.023339860141277313,
0.0817394033074379,
-0.19466018676757812,
0.27316907048225403,
0.03548227250576019,
0.4447307288646698,
-0.08818071335554123,
0.20259374380111694,
0.611838698387146,
0.01973925158381462,
-0.0029397900216281414,
0.1617921143770218,
0.1720682829618454,
0.1941983848810196,
0.427090585231781,
-0.17929226160049438,
-0.0874079018831253,
-0.060371313244104385,
0.16990812122821808,
-0.17825302481651306,
-0.47331398725509644,
0.14328043162822723,
-0.15970668196678162,
-0.2988283932209015,
-0.06702284514904022,
0.049674589186906815,
0.280322790145874,
-0.2598399817943573,
0.07498693466186523,
-0.10565520823001862,
0.1608564257621765,
-0.09228972345590591,
-0.1408545821905136,
0.08977126330137253,
-0.07309723645448685,
-0.12902624905109406,
-0.042556025087833405,
0.11327151209115982,
0.08388665318489075,
0.2775801420211792,
0.2630511224269867,
-0.08818797022104263,
-0.20061561465263367,
0.1970885694026947,
0.2208365947008133,
-0.055748920887708664,
-0.1138676181435585,
0.15573693811893463,
0.3445361852645874,
0.17394089698791504,
-0.1311293989419937,
0.17611993849277496,
0.6315093040466309,
0.34706202149391174,
0.0025093459989875555,
0.20304864645004272,
-0.1124483123421669,
-0.14246569573879242,
-0.0864444151520729,
0.025159113109111786,
-0.09247422963380814,
0.20702865719795227,
0.35639405250549316,
0.3213754892349243,
-0.19019874930381775,
0.33391305804252625,
-0.04639432206749916,
-0.145346537232399,
-0.19388757646083832,
0.3707820475101471,
0.07530127465724945,
-0.2841668128967285,
-0.12542155385017395,
0.015040245838463306,
-0.402141809463501,
0.06934294104576111,
0.4656215012073517,
0.010683698579668999,
0.2924722731113434,
0.001887854072265327,
0.10944385081529617,
-0.09056182950735092,
0.42697301506996155,
0.14451174437999725,
0.3763493597507477,
-0.4452264904975891,
0.011287657544016838,
-0.50272536277771,
0.1829468011856079,
-0.03917977586388588,
0.0534203015267849,
-0.04423617571592331,
0.17016887664794922,
0.010517117567360401,
0.20270296931266785,
-0.14749903976917267,
-0.05667027831077576,
0.017852162942290306,
0.12563417851924896,
0.026940064504742622,
-0.1631549447774887,
-0.20206904411315918,
0.05830048769712448,
-0.0021006425376981497,
-0.39048659801483154,
0.2174811214208603,
0.02108445204794407,
0.1405794620513916,
-0.2631102204322815,
-0.06372445821762085,
0.1954774111509323,
0.12738986313343048,
0.3907392621040344,
0.16002370417118073,
0.6441078782081604,
-0.10564817488193512,
0.0829368531703949,
-0.06830979138612747,
-0.2543078064918518,
0.01514433789998293,
0.19531722366809845,
0.26786720752716064,
0.21443593502044678,
-0.08898662775754929,
-0.314135879278183,
-0.47147300839424133,
0.3997179865837097,
-0.054113663733005524,
-0.08573810011148453,
-0.04443321004509926,
-0.1015133261680603,
-0.02954046241939068,
0.04289216548204422,
0.0381942093372345,
-0.033093761652708054,
0.011734681203961372,
0.21084868907928467,
-0.17600476741790771,
-0.409662127494812,
0.41831210255622864,
-0.26436227560043335,
-0.25048574805259705,
-0.17109964787960052,
0.27817803621292114,
-0.04632914066314697,
0.28937843441963196,
-0.27733147144317627,
0.2958231270313263,
0.45240318775177,
-0.21106761693954468,
-0.2147776186466217,
0.22343921661376953,
0.019069433212280273,
0.2123967409133911,
-0.03966193273663521,
0.4695010781288147,
0.10085902363061905,
-0.2427973747253418,
-0.15513014793395996,
-0.21959015727043152
] |
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.32471200823783875,
0.016105303540825844,
-0.10880483686923981,
0.026004865765571594,
0.24204294383525848,
0.019868796691298485,
0.7173693776130676,
0.37563660740852356,
0.2509217858314514,
0.13370388746261597,
-0.034231994301080704,
0.14970430731773376,
0.07979933172464371,
0.021183447912335396,
-0.1269310563802719,
-0.1772821694612503,
-0.1271572709083557,
0.27433180809020996,
-0.4187990128993988,
0.014497049152851105,
-0.12488499283790588,
-0.002357589779421687,
-0.03493829816579819,
0.14053384959697723,
-0.2024637907743454,
-0.006238620728254318,
0.11578208208084106,
0.13127711415290833,
-0.02769201248884201,
-0.4939197301864624,
0.336521714925766,
0.0402497798204422,
0.32377299666404724,
0.3632173538208008,
-0.00010603086411720142,
0.21352343261241913,
0.25174030661582947,
-0.028866903856396675,
-0.42790886759757996,
-0.4611109495162964,
-0.10899229347705841,
-0.3690283000469208,
0.4228135049343109,
-0.3986176550388336,
0.0005742041394114494,
-0.11989749222993851,
-0.06735827773809433,
-0.3161994218826294,
0.43138885498046875,
0.4785010814666748,
0.2786397635936737,
0.41547533869743347,
0.016583243384957314,
-0.11103420704603195,
0.07182198762893677,
0.055533647537231445,
-0.06249231472611427,
0.40612778067588806,
0.05162418261170387,
-0.18499110639095306,
-0.2426789104938507,
0.08461225032806396,
-0.19269858300685883,
0.3955323398113251,
0.1906036138534546,
0.08309609442949295,
0.037770453840494156,
-0.19663375616073608,
0.1252264827489853,
0.10768327862024307,
0.4764900207519531,
-0.23145553469657898,
-0.2321469485759735,
-0.05849948897957802,
-0.19948190450668335,
-0.18815690279006958,
0.16607394814491272,
0.08673039823770523,
-0.16833798587322235,
0.14744049310684204,
-0.2638413608074188,
0.09908030182123184,
-0.39075225591659546,
0.14945536851882935,
-0.11051249504089355,
0.15475712716579437,
-0.06718402355909348,
0.19474484026432037,
0.15826450288295746,
-0.05648339167237282,
0.40368887782096863,
-0.20703426003456116,
0.19160978496074677,
0.12766236066818237,
-0.33776426315307617,
0.13115745782852173,
0.1394049972295761,
-0.3861345648765564,
-0.10645691305398941,
0.04989417642354965,
-0.036173395812511444,
-0.05359051376581192,
0.13355015218257904,
0.2916465997695923,
0.19836249947547913,
0.07914331555366516,
-0.13086526095867157,
0.29477357864379883,
0.26872485876083374,
0.1325620412826538,
0.04226183146238327,
-0.062484946101903915,
-0.08005751669406891,
-0.35580629110336304,
0.16349764168262482,
0.1999797224998474,
0.489458829164505,
-0.04742845892906189,
-0.28160059452056885,
0.1326407790184021,
0.012910381890833378,
-0.10737286508083344,
0.018969327211380005,
0.35893121361732483,
-0.08796829730272293,
0.20431599020957947,
0.04245297983288765,
0.013688945211470127,
-0.22352781891822815,
0.08454272896051407,
-0.2120840698480606,
0.037955526262521744,
-0.11933092027902603,
-0.06953232735395432,
0.38133153319358826,
-0.07908950001001358,
0.04663301259279251,
-0.014668370597064495,
0.0989309623837471,
0.05034883692860603,
0.26117005944252014,
-0.293282687664032,
0.04918288066983223,
0.41293200850486755,
0.05615435913205147,
0.2478841096162796,
0.4095257520675659,
-0.18423408269882202,
-0.1060606837272644,
0.08659042418003082,
-0.20454305410385132,
-0.3371691107749939,
-0.33854788541793823,
0.24021141231060028,
0.036889731884002686,
0.10894139856100082,
-0.01846679113805294,
-0.33027389645576477,
0.09865912050008774,
-0.27471622824668884,
-0.15415936708450317,
-0.3237559497356415,
-0.03890470042824745,
-0.21599149703979492,
0.3081871569156647,
0.6463353633880615,
-0.43031853437423706,
0.04295635223388672,
0.05663658678531647,
-0.12991641461849213,
0.14145997166633606,
0.25084784626960754,
-0.3076961934566498,
0.08512570708990097,
-0.22846083343029022,
-0.09667688608169556,
0.23148232698440552,
-0.3093754053115845,
-0.30328166484832764,
0.5005191564559937,
-0.23734532296657562,
-0.07294342666864395,
0.21697719395160675,
0.012616132386028767,
0.29105645418167114,
0.18582835793495178,
0.26151472330093384,
0.3000476360321045,
-0.1007598266005516,
0.11755272001028061,
-0.07992324233055115,
-0.22256016731262207,
0.1973581612110138,
0.1164560616016388,
0.00981650035828352,
0.2231837511062622,
0.32496723532676697,
-0.2579791843891144,
0.17411428689956665,
-0.07687216997146606,
0.1447921097278595,
0.13450798392295837,
0.17397190630435944,
0.041984301060438156,
-0.060600101947784424,
-0.02166435495018959,
-0.508517861366272,
0.13815580308437347,
0.1310923993587494,
0.09030098468065262,
-0.437656432390213,
-0.0162691418081522,
-0.3771233558654785,
0.005172153934836388,
-0.2671603560447693,
-0.030242139473557472,
0.210017129778862,
0.34153077006340027,
-0.019159510731697083,
-0.05231765657663345,
-0.04885714128613472,
0.3256910741329193,
-0.11661287397146225,
-0.019255908206105232,
-0.41563037037849426,
0.339555561542511,
-0.3544686436653137,
-0.06900285184383392,
0.05235421657562256,
-0.031419865787029266,
0.1626497209072113,
-0.1825554519891739,
-0.27196839451789856,
0.35612353682518005,
-0.09558536112308502,
0.21822459995746613,
0.01704983599483967,
-0.004438372794538736,
0.05262068286538124,
-0.24509944021701813,
0.03237759321928024,
0.03111436776816845,
0.15333178639411926,
0.04318298399448395,
-0.2613137364387512,
0.3525986969470978,
-0.0953487977385521,
0.1633698046207428,
0.05065413564443588,
0.07041224092245102,
0.451421320438385,
0.01199399121105671,
-0.11404761672019958,
-0.10850893706083298,
0.10549511760473251,
0.2389214187860489,
0.22623606026172638,
0.04910338297486305,
-0.18027199804782867,
-0.18862369656562805,
0.20185908675193787,
-0.15322740375995636,
0.011608144268393517,
0.09235330671072006,
-0.108622245490551,
-0.044281672686338425,
0.21468468010425568,
0.231919065117836,
0.5149134397506714,
0.10260216146707535,
-0.15260213613510132,
-0.018321368843317032,
-0.0503232479095459,
-0.13382309675216675,
0.11027746647596359,
-0.03869219124317169,
0.04487742856144905,
0.3272632956504822,
0.0759822204709053,
0.10698052495718002,
-0.24100764095783234,
-0.36308661103248596,
-0.04194922372698784,
0.26388904452323914,
-0.34930068254470825,
0.24792659282684326,
-0.16456817090511322,
0.018282191827893257,
-0.2659018635749817,
-0.05033004283905029,
-0.11050056666135788,
-0.1780741959810257,
-0.36958062648773193,
0.3607572019100189,
-0.07638242840766907,
0.23725172877311707,
-0.2790016531944275,
-0.051641013473272324,
0.38798409700393677,
-0.4498325288295746,
-0.07305996119976044,
-0.20816658437252045,
-0.16014620661735535,
0.0924806147813797,
0.09351000934839249,
-0.1568920761346817,
0.3031650483608246,
-0.09899213910102844,
0.02052631415426731,
-0.1610623598098755,
-0.023834560066461563,
-0.08211689442396164,
0.012528114952147007,
0.12830567359924316,
0.18785417079925537,
0.4475230574607849,
0.12060226500034332,
-0.5035606622695923,
0.3184548020362854,
-0.0834972932934761,
0.048193931579589844,
0.19645681977272034,
-0.053702253848314285,
-0.20325517654418945,
0.0006879896973259747,
-0.634535014629364,
-0.5991464257240295,
-0.46986398100852966,
0.13753452897071838,
0.06650899350643158,
0.21323172748088837,
0.29552510380744934,
0.22690188884735107,
0.2099233865737915,
0.08665823191404343,
0.07574880123138428,
-0.05961277708411217,
-0.15918417274951935,
0.34999820590019226,
-0.23496009409427643,
-0.35702845454216003,
-0.11339619010686874,
-0.11525484174489975,
0.12194446474313736,
0.13648675382137299,
-0.4447760581970215,
-0.02361573465168476,
-0.17468364536762238,
0.3565398156642914,
-0.046724025160074234,
0.05170505866408348,
0.4662777781486511,
0.1686568260192871,
-0.17062900960445404,
0.11266064643859863,
-0.24418726563453674,
-0.14081153273582458,
0.1942562609910965,
0.0843702033162117,
0.004410764202475548,
0.45936936140060425,
-0.15895907580852509,
0.6532876491546631,
-0.07980897277593613,
-0.18971000611782074,
0.2884310185909271,
-0.1362251192331314,
0.34296685457229614,
-0.18450714647769928,
-0.6308501958847046,
-0.09177837520837784,
-0.3062296509742737,
-0.2018837332725525,
0.010753131471574306,
-0.22972877323627472,
-0.23058657348155975,
-0.36419960856437683,
0.018699610605835915,
-0.30493322014808655,
-0.31378236413002014,
0.13632600009441376,
-0.11969809234142303,
0.363541841506958,
0.04688183590769768,
-0.013036111369729042,
-0.25293731689453125,
-0.060058411210775375,
-0.24862772226333618,
0.3659863770008087,
-0.00622245529666543,
-0.09316615760326385,
-0.26687851548194885,
0.10691315680742264,
-0.2810812294483185,
0.2432362586259842,
0.08004966378211975,
0.5622869729995728,
-0.202708899974823,
-0.18679577112197876,
-0.03779308497905731,
0.058157969266176224,
0.40282243490219116,
0.0884442925453186,
0.08746375143527985,
0.2563878893852234,
-0.051590695977211,
-0.3120606541633606,
-0.08621114492416382,
-0.08868395537137985,
0.22119545936584473,
0.22769904136657715,
0.4607938826084137,
0.05911535397171974,
-0.12697738409042358,
0.31690672039985657,
0.2359135001897812,
-0.08725605905056,
-0.17905370891094208,
-0.28387531638145447,
-0.050810910761356354,
-0.3215521574020386,
-0.10537411272525787,
-0.11184188723564148,
0.179032102227211,
-0.17329037189483643,
-0.12812741100788116,
0.07372359931468964,
-0.17101942002773285,
0.0011048013111576438,
0.11932019889354706,
-0.1456996351480484,
0.09597717225551605,
0.2179175317287445,
0.19069808721542358,
0.26288679242134094,
0.20216141641139984,
0.44293108582496643,
-0.20945046842098236,
-0.5551645755767822,
0.17726172506809235,
-0.014554912224411964,
0.10783135890960693,
0.10523741692304611,
-0.1369357705116272,
-0.14875853061676025,
0.17527461051940918,
0.18085575103759766,
-0.153957337141037,
0.19385267794132233,
0.24986691772937775,
-0.11665390431880951,
-0.3529873788356781,
-0.41480690240859985,
0.1314443200826645,
-0.20059287548065186,
-0.09675171226263046,
0.19510282576084137,
-0.3385472297668457,
-0.06351573020219803,
0.25952407717704773,
-0.15831054747104645,
0.6695192456245422,
-0.12689338624477386,
0.18091733753681183,
0.16285280883312225,
-0.1345139443874359,
0.4483828842639923,
-0.1574920415878296,
0.1192621961236,
-0.34411492943763733,
-0.23600426316261292,
-0.09949743002653122,
-0.24985764920711517,
0.32185423374176025,
0.009868518449366093,
-0.09696096181869507,
0.23642131686210632,
-0.061417173594236374,
0.28134846687316895,
0.06527969241142273,
0.22038081288337708,
0.06127920374274254,
-0.23026911914348602,
-0.18300895392894745,
0.19012024998664856,
-0.09313647449016571,
0.4134555757045746,
0.029970824718475342,
-0.11374158412218094,
-0.012485253624618053,
-0.36156657338142395,
-0.04313954338431358,
0.05932158604264259,
-0.28306666016578674,
0.4136626422405243,
0.048829540610313416,
-0.3536549508571625,
-0.0551411435008049,
0.13816973567008972,
-0.15337547659873962,
0.0783294215798378,
-0.14985109865665436,
-0.07945619523525238,
-0.10809151828289032,
-0.06119578331708908,
-0.11690074950456619,
-0.002908408408984542,
0.14739954471588135,
0.08248423784971237,
-0.2685491144657135,
0.27557218074798584,
-0.11783129721879959,
-0.34037184715270996,
0.1828363686800003,
0.27734026312828064,
0.26229217648506165,
-0.5065497159957886,
-0.13994765281677246,
-0.31026867032051086,
-0.1075604036450386,
-0.12932081520557404,
0.20053182542324066,
-0.11239349842071533,
0.025672558695077896,
0.005595238879323006,
-0.08788871765136719,
-0.3105519115924835,
-0.04196329042315483,
0.6014828681945801,
-0.07181446999311447,
-0.06635017693042755,
0.32715436816215515,
0.06249130144715309,
-0.18431729078292847,
-0.24286773800849915,
0.19904059171676636,
-0.00443226657807827,
-0.4677979052066803,
-0.09300800412893295,
0.06877963244915009,
0.05869607999920845,
-0.11389092355966568,
0.07177576422691345,
0.2206760048866272,
0.10313423722982407,
0.035783641040325165,
-0.48031044006347656,
-0.5924564599990845,
-0.09012292325496674,
-0.012087962590157986,
0.14931277930736542,
0.4447917342185974,
0.22306977212429047,
0.05577920004725456,
0.10906755924224854,
-0.35995423793792725,
-0.0675610601902008,
-0.18956880271434784,
0.15761549770832062,
0.5117647647857666,
-0.26470980048179626,
0.17706520855426788,
-0.15527111291885376,
0.240911066532135,
-0.14292332530021667,
-0.12628701329231262,
-0.3133457899093628,
0.0018985376227647066,
0.061845164746046066,
0.020244179293513298,
-0.3433457314968109,
-0.33765485882759094,
-0.26847589015960693,
-0.014809625223279,
-0.07406362891197205,
-0.0003414591192267835,
0.21307724714279175,
-0.11873137205839157,
0.21216101944446564,
-0.24539315700531006,
0.08101442456245422,
-0.13400839269161224,
0.1350557953119278,
-0.27996626496315,
0.24027667939662933,
0.027082664892077446,
0.2827392816543579,
-0.07186421751976013,
-0.019442223012447357,
-0.4871893525123596,
-0.05400272458791733,
0.010926726274192333,
0.09868684411048889,
0.3070954978466034,
-0.1801375299692154,
-0.137321338057518,
0.005329393781721592,
0.3991234004497528,
0.2806529104709625,
-0.2605661153793335,
0.016448689624667168,
0.12060566246509552,
0.30771681666374207,
-0.21690931916236877,
-0.1124175637960434,
0.1596364974975586,
0.025512726977467537,
0.20569927990436554,
-0.023339860141277313,
0.0817394033074379,
-0.19466018676757812,
0.27316907048225403,
0.03548227250576019,
0.4447307288646698,
-0.08818071335554123,
0.20259374380111694,
0.611838698387146,
0.01973925158381462,
-0.0029397900216281414,
0.1617921143770218,
0.1720682829618454,
0.1941983848810196,
0.427090585231781,
-0.17929226160049438,
-0.0874079018831253,
-0.060371313244104385,
0.16990812122821808,
-0.17825302481651306,
-0.47331398725509644,
0.14328043162822723,
-0.15970668196678162,
-0.2988283932209015,
-0.06702284514904022,
0.049674589186906815,
0.280322790145874,
-0.2598399817943573,
0.07498693466186523,
-0.10565520823001862,
0.1608564257621765,
-0.09228972345590591,
-0.1408545821905136,
0.08977126330137253,
-0.07309723645448685,
-0.12902624905109406,
-0.042556025087833405,
0.11327151209115982,
0.08388665318489075,
0.2775801420211792,
0.2630511224269867,
-0.08818797022104263,
-0.20061561465263367,
0.1970885694026947,
0.2208365947008133,
-0.055748920887708664,
-0.1138676181435585,
0.15573693811893463,
0.3445361852645874,
0.17394089698791504,
-0.1311293989419937,
0.17611993849277496,
0.6315093040466309,
0.34706202149391174,
0.0025093459989875555,
0.20304864645004272,
-0.1124483123421669,
-0.14246569573879242,
-0.0864444151520729,
0.025159113109111786,
-0.09247422963380814,
0.20702865719795227,
0.35639405250549316,
0.3213754892349243,
-0.19019874930381775,
0.33391305804252625,
-0.04639432206749916,
-0.145346537232399,
-0.19388757646083832,
0.3707820475101471,
0.07530127465724945,
-0.2841668128967285,
-0.12542155385017395,
0.015040245838463306,
-0.402141809463501,
0.06934294104576111,
0.4656215012073517,
0.010683698579668999,
0.2924722731113434,
0.001887854072265327,
0.10944385081529617,
-0.09056182950735092,
0.42697301506996155,
0.14451174437999725,
0.3763493597507477,
-0.4452264904975891,
0.011287657544016838,
-0.50272536277771,
0.1829468011856079,
-0.03917977586388588,
0.0534203015267849,
-0.04423617571592331,
0.17016887664794922,
0.010517117567360401,
0.20270296931266785,
-0.14749903976917267,
-0.05667027831077576,
0.017852162942290306,
0.12563417851924896,
0.026940064504742622,
-0.1631549447774887,
-0.20206904411315918,
0.05830048769712448,
-0.0021006425376981497,
-0.39048659801483154,
0.2174811214208603,
0.02108445204794407,
0.1405794620513916,
-0.2631102204322815,
-0.06372445821762085,
0.1954774111509323,
0.12738986313343048,
0.3907392621040344,
0.16002370417118073,
0.6441078782081604,
-0.10564817488193512,
0.0829368531703949,
-0.06830979138612747,
-0.2543078064918518,
0.01514433789998293,
0.19531722366809845,
0.26786720752716064,
0.21443593502044678,
-0.08898662775754929,
-0.314135879278183,
-0.47147300839424133,
0.3997179865837097,
-0.054113663733005524,
-0.08573810011148453,
-0.04443321004509926,
-0.1015133261680603,
-0.02954046241939068,
0.04289216548204422,
0.0381942093372345,
-0.033093761652708054,
0.011734681203961372,
0.21084868907928467,
-0.17600476741790771,
-0.409662127494812,
0.41831210255622864,
-0.26436227560043335,
-0.25048574805259705,
-0.17109964787960052,
0.27817803621292114,
-0.04632914066314697,
0.28937843441963196,
-0.27733147144317627,
0.2958231270313263,
0.45240318775177,
-0.21106761693954468,
-0.2147776186466217,
0.22343921661376953,
0.019069433212280273,
0.2123967409133911,
-0.03966193273663521,
0.4695010781288147,
0.10085902363061905,
-0.2427973747253418,
-0.15513014793395996,
-0.21959015727043152
] |
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.32471200823783875,
0.016105303540825844,
-0.10880483686923981,
0.026004865765571594,
0.24204294383525848,
0.019868796691298485,
0.7173693776130676,
0.37563660740852356,
0.2509217858314514,
0.13370388746261597,
-0.034231994301080704,
0.14970430731773376,
0.07979933172464371,
0.021183447912335396,
-0.1269310563802719,
-0.1772821694612503,
-0.1271572709083557,
0.27433180809020996,
-0.4187990128993988,
0.014497049152851105,
-0.12488499283790588,
-0.002357589779421687,
-0.03493829816579819,
0.14053384959697723,
-0.2024637907743454,
-0.006238620728254318,
0.11578208208084106,
0.13127711415290833,
-0.02769201248884201,
-0.4939197301864624,
0.336521714925766,
0.0402497798204422,
0.32377299666404724,
0.3632173538208008,
-0.00010603086411720142,
0.21352343261241913,
0.25174030661582947,
-0.028866903856396675,
-0.42790886759757996,
-0.4611109495162964,
-0.10899229347705841,
-0.3690283000469208,
0.4228135049343109,
-0.3986176550388336,
0.0005742041394114494,
-0.11989749222993851,
-0.06735827773809433,
-0.3161994218826294,
0.43138885498046875,
0.4785010814666748,
0.2786397635936737,
0.41547533869743347,
0.016583243384957314,
-0.11103420704603195,
0.07182198762893677,
0.055533647537231445,
-0.06249231472611427,
0.40612778067588806,
0.05162418261170387,
-0.18499110639095306,
-0.2426789104938507,
0.08461225032806396,
-0.19269858300685883,
0.3955323398113251,
0.1906036138534546,
0.08309609442949295,
0.037770453840494156,
-0.19663375616073608,
0.1252264827489853,
0.10768327862024307,
0.4764900207519531,
-0.23145553469657898,
-0.2321469485759735,
-0.05849948897957802,
-0.19948190450668335,
-0.18815690279006958,
0.16607394814491272,
0.08673039823770523,
-0.16833798587322235,
0.14744049310684204,
-0.2638413608074188,
0.09908030182123184,
-0.39075225591659546,
0.14945536851882935,
-0.11051249504089355,
0.15475712716579437,
-0.06718402355909348,
0.19474484026432037,
0.15826450288295746,
-0.05648339167237282,
0.40368887782096863,
-0.20703426003456116,
0.19160978496074677,
0.12766236066818237,
-0.33776426315307617,
0.13115745782852173,
0.1394049972295761,
-0.3861345648765564,
-0.10645691305398941,
0.04989417642354965,
-0.036173395812511444,
-0.05359051376581192,
0.13355015218257904,
0.2916465997695923,
0.19836249947547913,
0.07914331555366516,
-0.13086526095867157,
0.29477357864379883,
0.26872485876083374,
0.1325620412826538,
0.04226183146238327,
-0.062484946101903915,
-0.08005751669406891,
-0.35580629110336304,
0.16349764168262482,
0.1999797224998474,
0.489458829164505,
-0.04742845892906189,
-0.28160059452056885,
0.1326407790184021,
0.012910381890833378,
-0.10737286508083344,
0.018969327211380005,
0.35893121361732483,
-0.08796829730272293,
0.20431599020957947,
0.04245297983288765,
0.013688945211470127,
-0.22352781891822815,
0.08454272896051407,
-0.2120840698480606,
0.037955526262521744,
-0.11933092027902603,
-0.06953232735395432,
0.38133153319358826,
-0.07908950001001358,
0.04663301259279251,
-0.014668370597064495,
0.0989309623837471,
0.05034883692860603,
0.26117005944252014,
-0.293282687664032,
0.04918288066983223,
0.41293200850486755,
0.05615435913205147,
0.2478841096162796,
0.4095257520675659,
-0.18423408269882202,
-0.1060606837272644,
0.08659042418003082,
-0.20454305410385132,
-0.3371691107749939,
-0.33854788541793823,
0.24021141231060028,
0.036889731884002686,
0.10894139856100082,
-0.01846679113805294,
-0.33027389645576477,
0.09865912050008774,
-0.27471622824668884,
-0.15415936708450317,
-0.3237559497356415,
-0.03890470042824745,
-0.21599149703979492,
0.3081871569156647,
0.6463353633880615,
-0.43031853437423706,
0.04295635223388672,
0.05663658678531647,
-0.12991641461849213,
0.14145997166633606,
0.25084784626960754,
-0.3076961934566498,
0.08512570708990097,
-0.22846083343029022,
-0.09667688608169556,
0.23148232698440552,
-0.3093754053115845,
-0.30328166484832764,
0.5005191564559937,
-0.23734532296657562,
-0.07294342666864395,
0.21697719395160675,
0.012616132386028767,
0.29105645418167114,
0.18582835793495178,
0.26151472330093384,
0.3000476360321045,
-0.1007598266005516,
0.11755272001028061,
-0.07992324233055115,
-0.22256016731262207,
0.1973581612110138,
0.1164560616016388,
0.00981650035828352,
0.2231837511062622,
0.32496723532676697,
-0.2579791843891144,
0.17411428689956665,
-0.07687216997146606,
0.1447921097278595,
0.13450798392295837,
0.17397190630435944,
0.041984301060438156,
-0.060600101947784424,
-0.02166435495018959,
-0.508517861366272,
0.13815580308437347,
0.1310923993587494,
0.09030098468065262,
-0.437656432390213,
-0.0162691418081522,
-0.3771233558654785,
0.005172153934836388,
-0.2671603560447693,
-0.030242139473557472,
0.210017129778862,
0.34153077006340027,
-0.019159510731697083,
-0.05231765657663345,
-0.04885714128613472,
0.3256910741329193,
-0.11661287397146225,
-0.019255908206105232,
-0.41563037037849426,
0.339555561542511,
-0.3544686436653137,
-0.06900285184383392,
0.05235421657562256,
-0.031419865787029266,
0.1626497209072113,
-0.1825554519891739,
-0.27196839451789856,
0.35612353682518005,
-0.09558536112308502,
0.21822459995746613,
0.01704983599483967,
-0.004438372794538736,
0.05262068286538124,
-0.24509944021701813,
0.03237759321928024,
0.03111436776816845,
0.15333178639411926,
0.04318298399448395,
-0.2613137364387512,
0.3525986969470978,
-0.0953487977385521,
0.1633698046207428,
0.05065413564443588,
0.07041224092245102,
0.451421320438385,
0.01199399121105671,
-0.11404761672019958,
-0.10850893706083298,
0.10549511760473251,
0.2389214187860489,
0.22623606026172638,
0.04910338297486305,
-0.18027199804782867,
-0.18862369656562805,
0.20185908675193787,
-0.15322740375995636,
0.011608144268393517,
0.09235330671072006,
-0.108622245490551,
-0.044281672686338425,
0.21468468010425568,
0.231919065117836,
0.5149134397506714,
0.10260216146707535,
-0.15260213613510132,
-0.018321368843317032,
-0.0503232479095459,
-0.13382309675216675,
0.11027746647596359,
-0.03869219124317169,
0.04487742856144905,
0.3272632956504822,
0.0759822204709053,
0.10698052495718002,
-0.24100764095783234,
-0.36308661103248596,
-0.04194922372698784,
0.26388904452323914,
-0.34930068254470825,
0.24792659282684326,
-0.16456817090511322,
0.018282191827893257,
-0.2659018635749817,
-0.05033004283905029,
-0.11050056666135788,
-0.1780741959810257,
-0.36958062648773193,
0.3607572019100189,
-0.07638242840766907,
0.23725172877311707,
-0.2790016531944275,
-0.051641013473272324,
0.38798409700393677,
-0.4498325288295746,
-0.07305996119976044,
-0.20816658437252045,
-0.16014620661735535,
0.0924806147813797,
0.09351000934839249,
-0.1568920761346817,
0.3031650483608246,
-0.09899213910102844,
0.02052631415426731,
-0.1610623598098755,
-0.023834560066461563,
-0.08211689442396164,
0.012528114952147007,
0.12830567359924316,
0.18785417079925537,
0.4475230574607849,
0.12060226500034332,
-0.5035606622695923,
0.3184548020362854,
-0.0834972932934761,
0.048193931579589844,
0.19645681977272034,
-0.053702253848314285,
-0.20325517654418945,
0.0006879896973259747,
-0.634535014629364,
-0.5991464257240295,
-0.46986398100852966,
0.13753452897071838,
0.06650899350643158,
0.21323172748088837,
0.29552510380744934,
0.22690188884735107,
0.2099233865737915,
0.08665823191404343,
0.07574880123138428,
-0.05961277708411217,
-0.15918417274951935,
0.34999820590019226,
-0.23496009409427643,
-0.35702845454216003,
-0.11339619010686874,
-0.11525484174489975,
0.12194446474313736,
0.13648675382137299,
-0.4447760581970215,
-0.02361573465168476,
-0.17468364536762238,
0.3565398156642914,
-0.046724025160074234,
0.05170505866408348,
0.4662777781486511,
0.1686568260192871,
-0.17062900960445404,
0.11266064643859863,
-0.24418726563453674,
-0.14081153273582458,
0.1942562609910965,
0.0843702033162117,
0.004410764202475548,
0.45936936140060425,
-0.15895907580852509,
0.6532876491546631,
-0.07980897277593613,
-0.18971000611782074,
0.2884310185909271,
-0.1362251192331314,
0.34296685457229614,
-0.18450714647769928,
-0.6308501958847046,
-0.09177837520837784,
-0.3062296509742737,
-0.2018837332725525,
0.010753131471574306,
-0.22972877323627472,
-0.23058657348155975,
-0.36419960856437683,
0.018699610605835915,
-0.30493322014808655,
-0.31378236413002014,
0.13632600009441376,
-0.11969809234142303,
0.363541841506958,
0.04688183590769768,
-0.013036111369729042,
-0.25293731689453125,
-0.060058411210775375,
-0.24862772226333618,
0.3659863770008087,
-0.00622245529666543,
-0.09316615760326385,
-0.26687851548194885,
0.10691315680742264,
-0.2810812294483185,
0.2432362586259842,
0.08004966378211975,
0.5622869729995728,
-0.202708899974823,
-0.18679577112197876,
-0.03779308497905731,
0.058157969266176224,
0.40282243490219116,
0.0884442925453186,
0.08746375143527985,
0.2563878893852234,
-0.051590695977211,
-0.3120606541633606,
-0.08621114492416382,
-0.08868395537137985,
0.22119545936584473,
0.22769904136657715,
0.4607938826084137,
0.05911535397171974,
-0.12697738409042358,
0.31690672039985657,
0.2359135001897812,
-0.08725605905056,
-0.17905370891094208,
-0.28387531638145447,
-0.050810910761356354,
-0.3215521574020386,
-0.10537411272525787,
-0.11184188723564148,
0.179032102227211,
-0.17329037189483643,
-0.12812741100788116,
0.07372359931468964,
-0.17101942002773285,
0.0011048013111576438,
0.11932019889354706,
-0.1456996351480484,
0.09597717225551605,
0.2179175317287445,
0.19069808721542358,
0.26288679242134094,
0.20216141641139984,
0.44293108582496643,
-0.20945046842098236,
-0.5551645755767822,
0.17726172506809235,
-0.014554912224411964,
0.10783135890960693,
0.10523741692304611,
-0.1369357705116272,
-0.14875853061676025,
0.17527461051940918,
0.18085575103759766,
-0.153957337141037,
0.19385267794132233,
0.24986691772937775,
-0.11665390431880951,
-0.3529873788356781,
-0.41480690240859985,
0.1314443200826645,
-0.20059287548065186,
-0.09675171226263046,
0.19510282576084137,
-0.3385472297668457,
-0.06351573020219803,
0.25952407717704773,
-0.15831054747104645,
0.6695192456245422,
-0.12689338624477386,
0.18091733753681183,
0.16285280883312225,
-0.1345139443874359,
0.4483828842639923,
-0.1574920415878296,
0.1192621961236,
-0.34411492943763733,
-0.23600426316261292,
-0.09949743002653122,
-0.24985764920711517,
0.32185423374176025,
0.009868518449366093,
-0.09696096181869507,
0.23642131686210632,
-0.061417173594236374,
0.28134846687316895,
0.06527969241142273,
0.22038081288337708,
0.06127920374274254,
-0.23026911914348602,
-0.18300895392894745,
0.19012024998664856,
-0.09313647449016571,
0.4134555757045746,
0.029970824718475342,
-0.11374158412218094,
-0.012485253624618053,
-0.36156657338142395,
-0.04313954338431358,
0.05932158604264259,
-0.28306666016578674,
0.4136626422405243,
0.048829540610313416,
-0.3536549508571625,
-0.0551411435008049,
0.13816973567008972,
-0.15337547659873962,
0.0783294215798378,
-0.14985109865665436,
-0.07945619523525238,
-0.10809151828289032,
-0.06119578331708908,
-0.11690074950456619,
-0.002908408408984542,
0.14739954471588135,
0.08248423784971237,
-0.2685491144657135,
0.27557218074798584,
-0.11783129721879959,
-0.34037184715270996,
0.1828363686800003,
0.27734026312828064,
0.26229217648506165,
-0.5065497159957886,
-0.13994765281677246,
-0.31026867032051086,
-0.1075604036450386,
-0.12932081520557404,
0.20053182542324066,
-0.11239349842071533,
0.025672558695077896,
0.005595238879323006,
-0.08788871765136719,
-0.3105519115924835,
-0.04196329042315483,
0.6014828681945801,
-0.07181446999311447,
-0.06635017693042755,
0.32715436816215515,
0.06249130144715309,
-0.18431729078292847,
-0.24286773800849915,
0.19904059171676636,
-0.00443226657807827,
-0.4677979052066803,
-0.09300800412893295,
0.06877963244915009,
0.05869607999920845,
-0.11389092355966568,
0.07177576422691345,
0.2206760048866272,
0.10313423722982407,
0.035783641040325165,
-0.48031044006347656,
-0.5924564599990845,
-0.09012292325496674,
-0.012087962590157986,
0.14931277930736542,
0.4447917342185974,
0.22306977212429047,
0.05577920004725456,
0.10906755924224854,
-0.35995423793792725,
-0.0675610601902008,
-0.18956880271434784,
0.15761549770832062,
0.5117647647857666,
-0.26470980048179626,
0.17706520855426788,
-0.15527111291885376,
0.240911066532135,
-0.14292332530021667,
-0.12628701329231262,
-0.3133457899093628,
0.0018985376227647066,
0.061845164746046066,
0.020244179293513298,
-0.3433457314968109,
-0.33765485882759094,
-0.26847589015960693,
-0.014809625223279,
-0.07406362891197205,
-0.0003414591192267835,
0.21307724714279175,
-0.11873137205839157,
0.21216101944446564,
-0.24539315700531006,
0.08101442456245422,
-0.13400839269161224,
0.1350557953119278,
-0.27996626496315,
0.24027667939662933,
0.027082664892077446,
0.2827392816543579,
-0.07186421751976013,
-0.019442223012447357,
-0.4871893525123596,
-0.05400272458791733,
0.010926726274192333,
0.09868684411048889,
0.3070954978466034,
-0.1801375299692154,
-0.137321338057518,
0.005329393781721592,
0.3991234004497528,
0.2806529104709625,
-0.2605661153793335,
0.016448689624667168,
0.12060566246509552,
0.30771681666374207,
-0.21690931916236877,
-0.1124175637960434,
0.1596364974975586,
0.025512726977467537,
0.20569927990436554,
-0.023339860141277313,
0.0817394033074379,
-0.19466018676757812,
0.27316907048225403,
0.03548227250576019,
0.4447307288646698,
-0.08818071335554123,
0.20259374380111694,
0.611838698387146,
0.01973925158381462,
-0.0029397900216281414,
0.1617921143770218,
0.1720682829618454,
0.1941983848810196,
0.427090585231781,
-0.17929226160049438,
-0.0874079018831253,
-0.060371313244104385,
0.16990812122821808,
-0.17825302481651306,
-0.47331398725509644,
0.14328043162822723,
-0.15970668196678162,
-0.2988283932209015,
-0.06702284514904022,
0.049674589186906815,
0.280322790145874,
-0.2598399817943573,
0.07498693466186523,
-0.10565520823001862,
0.1608564257621765,
-0.09228972345590591,
-0.1408545821905136,
0.08977126330137253,
-0.07309723645448685,
-0.12902624905109406,
-0.042556025087833405,
0.11327151209115982,
0.08388665318489075,
0.2775801420211792,
0.2630511224269867,
-0.08818797022104263,
-0.20061561465263367,
0.1970885694026947,
0.2208365947008133,
-0.055748920887708664,
-0.1138676181435585,
0.15573693811893463,
0.3445361852645874,
0.17394089698791504,
-0.1311293989419937,
0.17611993849277496,
0.6315093040466309,
0.34706202149391174,
0.0025093459989875555,
0.20304864645004272,
-0.1124483123421669,
-0.14246569573879242,
-0.0864444151520729,
0.025159113109111786,
-0.09247422963380814,
0.20702865719795227,
0.35639405250549316,
0.3213754892349243,
-0.19019874930381775,
0.33391305804252625,
-0.04639432206749916,
-0.145346537232399,
-0.19388757646083832,
0.3707820475101471,
0.07530127465724945,
-0.2841668128967285,
-0.12542155385017395,
0.015040245838463306,
-0.402141809463501,
0.06934294104576111,
0.4656215012073517,
0.010683698579668999,
0.2924722731113434,
0.001887854072265327,
0.10944385081529617,
-0.09056182950735092,
0.42697301506996155,
0.14451174437999725,
0.3763493597507477,
-0.4452264904975891,
0.011287657544016838,
-0.50272536277771,
0.1829468011856079,
-0.03917977586388588,
0.0534203015267849,
-0.04423617571592331,
0.17016887664794922,
0.010517117567360401,
0.20270296931266785,
-0.14749903976917267,
-0.05667027831077576,
0.017852162942290306,
0.12563417851924896,
0.026940064504742622,
-0.1631549447774887,
-0.20206904411315918,
0.05830048769712448,
-0.0021006425376981497,
-0.39048659801483154,
0.2174811214208603,
0.02108445204794407,
0.1405794620513916,
-0.2631102204322815,
-0.06372445821762085,
0.1954774111509323,
0.12738986313343048,
0.3907392621040344,
0.16002370417118073,
0.6441078782081604,
-0.10564817488193512,
0.0829368531703949,
-0.06830979138612747,
-0.2543078064918518,
0.01514433789998293,
0.19531722366809845,
0.26786720752716064,
0.21443593502044678,
-0.08898662775754929,
-0.314135879278183,
-0.47147300839424133,
0.3997179865837097,
-0.054113663733005524,
-0.08573810011148453,
-0.04443321004509926,
-0.1015133261680603,
-0.02954046241939068,
0.04289216548204422,
0.0381942093372345,
-0.033093761652708054,
0.011734681203961372,
0.21084868907928467,
-0.17600476741790771,
-0.409662127494812,
0.41831210255622864,
-0.26436227560043335,
-0.25048574805259705,
-0.17109964787960052,
0.27817803621292114,
-0.04632914066314697,
0.28937843441963196,
-0.27733147144317627,
0.2958231270313263,
0.45240318775177,
-0.21106761693954468,
-0.2147776186466217,
0.22343921661376953,
0.019069433212280273,
0.2123967409133911,
-0.03966193273663521,
0.4695010781288147,
0.10085902363061905,
-0.2427973747253418,
-0.15513014793395996,
-0.21959015727043152
] |
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.32471200823783875,
0.016105303540825844,
-0.10880483686923981,
0.026004865765571594,
0.24204294383525848,
0.019868796691298485,
0.7173693776130676,
0.37563660740852356,
0.2509217858314514,
0.13370388746261597,
-0.034231994301080704,
0.14970430731773376,
0.07979933172464371,
0.021183447912335396,
-0.1269310563802719,
-0.1772821694612503,
-0.1271572709083557,
0.27433180809020996,
-0.4187990128993988,
0.014497049152851105,
-0.12488499283790588,
-0.002357589779421687,
-0.03493829816579819,
0.14053384959697723,
-0.2024637907743454,
-0.006238620728254318,
0.11578208208084106,
0.13127711415290833,
-0.02769201248884201,
-0.4939197301864624,
0.336521714925766,
0.0402497798204422,
0.32377299666404724,
0.3632173538208008,
-0.00010603086411720142,
0.21352343261241913,
0.25174030661582947,
-0.028866903856396675,
-0.42790886759757996,
-0.4611109495162964,
-0.10899229347705841,
-0.3690283000469208,
0.4228135049343109,
-0.3986176550388336,
0.0005742041394114494,
-0.11989749222993851,
-0.06735827773809433,
-0.3161994218826294,
0.43138885498046875,
0.4785010814666748,
0.2786397635936737,
0.41547533869743347,
0.016583243384957314,
-0.11103420704603195,
0.07182198762893677,
0.055533647537231445,
-0.06249231472611427,
0.40612778067588806,
0.05162418261170387,
-0.18499110639095306,
-0.2426789104938507,
0.08461225032806396,
-0.19269858300685883,
0.3955323398113251,
0.1906036138534546,
0.08309609442949295,
0.037770453840494156,
-0.19663375616073608,
0.1252264827489853,
0.10768327862024307,
0.4764900207519531,
-0.23145553469657898,
-0.2321469485759735,
-0.05849948897957802,
-0.19948190450668335,
-0.18815690279006958,
0.16607394814491272,
0.08673039823770523,
-0.16833798587322235,
0.14744049310684204,
-0.2638413608074188,
0.09908030182123184,
-0.39075225591659546,
0.14945536851882935,
-0.11051249504089355,
0.15475712716579437,
-0.06718402355909348,
0.19474484026432037,
0.15826450288295746,
-0.05648339167237282,
0.40368887782096863,
-0.20703426003456116,
0.19160978496074677,
0.12766236066818237,
-0.33776426315307617,
0.13115745782852173,
0.1394049972295761,
-0.3861345648765564,
-0.10645691305398941,
0.04989417642354965,
-0.036173395812511444,
-0.05359051376581192,
0.13355015218257904,
0.2916465997695923,
0.19836249947547913,
0.07914331555366516,
-0.13086526095867157,
0.29477357864379883,
0.26872485876083374,
0.1325620412826538,
0.04226183146238327,
-0.062484946101903915,
-0.08005751669406891,
-0.35580629110336304,
0.16349764168262482,
0.1999797224998474,
0.489458829164505,
-0.04742845892906189,
-0.28160059452056885,
0.1326407790184021,
0.012910381890833378,
-0.10737286508083344,
0.018969327211380005,
0.35893121361732483,
-0.08796829730272293,
0.20431599020957947,
0.04245297983288765,
0.013688945211470127,
-0.22352781891822815,
0.08454272896051407,
-0.2120840698480606,
0.037955526262521744,
-0.11933092027902603,
-0.06953232735395432,
0.38133153319358826,
-0.07908950001001358,
0.04663301259279251,
-0.014668370597064495,
0.0989309623837471,
0.05034883692860603,
0.26117005944252014,
-0.293282687664032,
0.04918288066983223,
0.41293200850486755,
0.05615435913205147,
0.2478841096162796,
0.4095257520675659,
-0.18423408269882202,
-0.1060606837272644,
0.08659042418003082,
-0.20454305410385132,
-0.3371691107749939,
-0.33854788541793823,
0.24021141231060028,
0.036889731884002686,
0.10894139856100082,
-0.01846679113805294,
-0.33027389645576477,
0.09865912050008774,
-0.27471622824668884,
-0.15415936708450317,
-0.3237559497356415,
-0.03890470042824745,
-0.21599149703979492,
0.3081871569156647,
0.6463353633880615,
-0.43031853437423706,
0.04295635223388672,
0.05663658678531647,
-0.12991641461849213,
0.14145997166633606,
0.25084784626960754,
-0.3076961934566498,
0.08512570708990097,
-0.22846083343029022,
-0.09667688608169556,
0.23148232698440552,
-0.3093754053115845,
-0.30328166484832764,
0.5005191564559937,
-0.23734532296657562,
-0.07294342666864395,
0.21697719395160675,
0.012616132386028767,
0.29105645418167114,
0.18582835793495178,
0.26151472330093384,
0.3000476360321045,
-0.1007598266005516,
0.11755272001028061,
-0.07992324233055115,
-0.22256016731262207,
0.1973581612110138,
0.1164560616016388,
0.00981650035828352,
0.2231837511062622,
0.32496723532676697,
-0.2579791843891144,
0.17411428689956665,
-0.07687216997146606,
0.1447921097278595,
0.13450798392295837,
0.17397190630435944,
0.041984301060438156,
-0.060600101947784424,
-0.02166435495018959,
-0.508517861366272,
0.13815580308437347,
0.1310923993587494,
0.09030098468065262,
-0.437656432390213,
-0.0162691418081522,
-0.3771233558654785,
0.005172153934836388,
-0.2671603560447693,
-0.030242139473557472,
0.210017129778862,
0.34153077006340027,
-0.019159510731697083,
-0.05231765657663345,
-0.04885714128613472,
0.3256910741329193,
-0.11661287397146225,
-0.019255908206105232,
-0.41563037037849426,
0.339555561542511,
-0.3544686436653137,
-0.06900285184383392,
0.05235421657562256,
-0.031419865787029266,
0.1626497209072113,
-0.1825554519891739,
-0.27196839451789856,
0.35612353682518005,
-0.09558536112308502,
0.21822459995746613,
0.01704983599483967,
-0.004438372794538736,
0.05262068286538124,
-0.24509944021701813,
0.03237759321928024,
0.03111436776816845,
0.15333178639411926,
0.04318298399448395,
-0.2613137364387512,
0.3525986969470978,
-0.0953487977385521,
0.1633698046207428,
0.05065413564443588,
0.07041224092245102,
0.451421320438385,
0.01199399121105671,
-0.11404761672019958,
-0.10850893706083298,
0.10549511760473251,
0.2389214187860489,
0.22623606026172638,
0.04910338297486305,
-0.18027199804782867,
-0.18862369656562805,
0.20185908675193787,
-0.15322740375995636,
0.011608144268393517,
0.09235330671072006,
-0.108622245490551,
-0.044281672686338425,
0.21468468010425568,
0.231919065117836,
0.5149134397506714,
0.10260216146707535,
-0.15260213613510132,
-0.018321368843317032,
-0.0503232479095459,
-0.13382309675216675,
0.11027746647596359,
-0.03869219124317169,
0.04487742856144905,
0.3272632956504822,
0.0759822204709053,
0.10698052495718002,
-0.24100764095783234,
-0.36308661103248596,
-0.04194922372698784,
0.26388904452323914,
-0.34930068254470825,
0.24792659282684326,
-0.16456817090511322,
0.018282191827893257,
-0.2659018635749817,
-0.05033004283905029,
-0.11050056666135788,
-0.1780741959810257,
-0.36958062648773193,
0.3607572019100189,
-0.07638242840766907,
0.23725172877311707,
-0.2790016531944275,
-0.051641013473272324,
0.38798409700393677,
-0.4498325288295746,
-0.07305996119976044,
-0.20816658437252045,
-0.16014620661735535,
0.0924806147813797,
0.09351000934839249,
-0.1568920761346817,
0.3031650483608246,
-0.09899213910102844,
0.02052631415426731,
-0.1610623598098755,
-0.023834560066461563,
-0.08211689442396164,
0.012528114952147007,
0.12830567359924316,
0.18785417079925537,
0.4475230574607849,
0.12060226500034332,
-0.5035606622695923,
0.3184548020362854,
-0.0834972932934761,
0.048193931579589844,
0.19645681977272034,
-0.053702253848314285,
-0.20325517654418945,
0.0006879896973259747,
-0.634535014629364,
-0.5991464257240295,
-0.46986398100852966,
0.13753452897071838,
0.06650899350643158,
0.21323172748088837,
0.29552510380744934,
0.22690188884735107,
0.2099233865737915,
0.08665823191404343,
0.07574880123138428,
-0.05961277708411217,
-0.15918417274951935,
0.34999820590019226,
-0.23496009409427643,
-0.35702845454216003,
-0.11339619010686874,
-0.11525484174489975,
0.12194446474313736,
0.13648675382137299,
-0.4447760581970215,
-0.02361573465168476,
-0.17468364536762238,
0.3565398156642914,
-0.046724025160074234,
0.05170505866408348,
0.4662777781486511,
0.1686568260192871,
-0.17062900960445404,
0.11266064643859863,
-0.24418726563453674,
-0.14081153273582458,
0.1942562609910965,
0.0843702033162117,
0.004410764202475548,
0.45936936140060425,
-0.15895907580852509,
0.6532876491546631,
-0.07980897277593613,
-0.18971000611782074,
0.2884310185909271,
-0.1362251192331314,
0.34296685457229614,
-0.18450714647769928,
-0.6308501958847046,
-0.09177837520837784,
-0.3062296509742737,
-0.2018837332725525,
0.010753131471574306,
-0.22972877323627472,
-0.23058657348155975,
-0.36419960856437683,
0.018699610605835915,
-0.30493322014808655,
-0.31378236413002014,
0.13632600009441376,
-0.11969809234142303,
0.363541841506958,
0.04688183590769768,
-0.013036111369729042,
-0.25293731689453125,
-0.060058411210775375,
-0.24862772226333618,
0.3659863770008087,
-0.00622245529666543,
-0.09316615760326385,
-0.26687851548194885,
0.10691315680742264,
-0.2810812294483185,
0.2432362586259842,
0.08004966378211975,
0.5622869729995728,
-0.202708899974823,
-0.18679577112197876,
-0.03779308497905731,
0.058157969266176224,
0.40282243490219116,
0.0884442925453186,
0.08746375143527985,
0.2563878893852234,
-0.051590695977211,
-0.3120606541633606,
-0.08621114492416382,
-0.08868395537137985,
0.22119545936584473,
0.22769904136657715,
0.4607938826084137,
0.05911535397171974,
-0.12697738409042358,
0.31690672039985657,
0.2359135001897812,
-0.08725605905056,
-0.17905370891094208,
-0.28387531638145447,
-0.050810910761356354,
-0.3215521574020386,
-0.10537411272525787,
-0.11184188723564148,
0.179032102227211,
-0.17329037189483643,
-0.12812741100788116,
0.07372359931468964,
-0.17101942002773285,
0.0011048013111576438,
0.11932019889354706,
-0.1456996351480484,
0.09597717225551605,
0.2179175317287445,
0.19069808721542358,
0.26288679242134094,
0.20216141641139984,
0.44293108582496643,
-0.20945046842098236,
-0.5551645755767822,
0.17726172506809235,
-0.014554912224411964,
0.10783135890960693,
0.10523741692304611,
-0.1369357705116272,
-0.14875853061676025,
0.17527461051940918,
0.18085575103759766,
-0.153957337141037,
0.19385267794132233,
0.24986691772937775,
-0.11665390431880951,
-0.3529873788356781,
-0.41480690240859985,
0.1314443200826645,
-0.20059287548065186,
-0.09675171226263046,
0.19510282576084137,
-0.3385472297668457,
-0.06351573020219803,
0.25952407717704773,
-0.15831054747104645,
0.6695192456245422,
-0.12689338624477386,
0.18091733753681183,
0.16285280883312225,
-0.1345139443874359,
0.4483828842639923,
-0.1574920415878296,
0.1192621961236,
-0.34411492943763733,
-0.23600426316261292,
-0.09949743002653122,
-0.24985764920711517,
0.32185423374176025,
0.009868518449366093,
-0.09696096181869507,
0.23642131686210632,
-0.061417173594236374,
0.28134846687316895,
0.06527969241142273,
0.22038081288337708,
0.06127920374274254,
-0.23026911914348602,
-0.18300895392894745,
0.19012024998664856,
-0.09313647449016571,
0.4134555757045746,
0.029970824718475342,
-0.11374158412218094,
-0.012485253624618053,
-0.36156657338142395,
-0.04313954338431358,
0.05932158604264259,
-0.28306666016578674,
0.4136626422405243,
0.048829540610313416,
-0.3536549508571625,
-0.0551411435008049,
0.13816973567008972,
-0.15337547659873962,
0.0783294215798378,
-0.14985109865665436,
-0.07945619523525238,
-0.10809151828289032,
-0.06119578331708908,
-0.11690074950456619,
-0.002908408408984542,
0.14739954471588135,
0.08248423784971237,
-0.2685491144657135,
0.27557218074798584,
-0.11783129721879959,
-0.34037184715270996,
0.1828363686800003,
0.27734026312828064,
0.26229217648506165,
-0.5065497159957886,
-0.13994765281677246,
-0.31026867032051086,
-0.1075604036450386,
-0.12932081520557404,
0.20053182542324066,
-0.11239349842071533,
0.025672558695077896,
0.005595238879323006,
-0.08788871765136719,
-0.3105519115924835,
-0.04196329042315483,
0.6014828681945801,
-0.07181446999311447,
-0.06635017693042755,
0.32715436816215515,
0.06249130144715309,
-0.18431729078292847,
-0.24286773800849915,
0.19904059171676636,
-0.00443226657807827,
-0.4677979052066803,
-0.09300800412893295,
0.06877963244915009,
0.05869607999920845,
-0.11389092355966568,
0.07177576422691345,
0.2206760048866272,
0.10313423722982407,
0.035783641040325165,
-0.48031044006347656,
-0.5924564599990845,
-0.09012292325496674,
-0.012087962590157986,
0.14931277930736542,
0.4447917342185974,
0.22306977212429047,
0.05577920004725456,
0.10906755924224854,
-0.35995423793792725,
-0.0675610601902008,
-0.18956880271434784,
0.15761549770832062,
0.5117647647857666,
-0.26470980048179626,
0.17706520855426788,
-0.15527111291885376,
0.240911066532135,
-0.14292332530021667,
-0.12628701329231262,
-0.3133457899093628,
0.0018985376227647066,
0.061845164746046066,
0.020244179293513298,
-0.3433457314968109,
-0.33765485882759094,
-0.26847589015960693,
-0.014809625223279,
-0.07406362891197205,
-0.0003414591192267835,
0.21307724714279175,
-0.11873137205839157,
0.21216101944446564,
-0.24539315700531006,
0.08101442456245422,
-0.13400839269161224,
0.1350557953119278,
-0.27996626496315,
0.24027667939662933,
0.027082664892077446,
0.2827392816543579,
-0.07186421751976013,
-0.019442223012447357,
-0.4871893525123596,
-0.05400272458791733,
0.010926726274192333,
0.09868684411048889,
0.3070954978466034,
-0.1801375299692154,
-0.137321338057518,
0.005329393781721592,
0.3991234004497528,
0.2806529104709625,
-0.2605661153793335,
0.016448689624667168,
0.12060566246509552,
0.30771681666374207,
-0.21690931916236877,
-0.1124175637960434,
0.1596364974975586,
0.025512726977467537,
0.20569927990436554,
-0.023339860141277313,
0.0817394033074379,
-0.19466018676757812,
0.27316907048225403,
0.03548227250576019,
0.4447307288646698,
-0.08818071335554123,
0.20259374380111694,
0.611838698387146,
0.01973925158381462,
-0.0029397900216281414,
0.1617921143770218,
0.1720682829618454,
0.1941983848810196,
0.427090585231781,
-0.17929226160049438,
-0.0874079018831253,
-0.060371313244104385,
0.16990812122821808,
-0.17825302481651306,
-0.47331398725509644,
0.14328043162822723,
-0.15970668196678162,
-0.2988283932209015,
-0.06702284514904022,
0.049674589186906815,
0.280322790145874,
-0.2598399817943573,
0.07498693466186523,
-0.10565520823001862,
0.1608564257621765,
-0.09228972345590591,
-0.1408545821905136,
0.08977126330137253,
-0.07309723645448685,
-0.12902624905109406,
-0.042556025087833405,
0.11327151209115982,
0.08388665318489075,
0.2775801420211792,
0.2630511224269867,
-0.08818797022104263,
-0.20061561465263367,
0.1970885694026947,
0.2208365947008133,
-0.055748920887708664,
-0.1138676181435585,
0.15573693811893463,
0.3445361852645874,
0.17394089698791504,
-0.1311293989419937,
0.17611993849277496,
0.6315093040466309,
0.34706202149391174,
0.0025093459989875555,
0.20304864645004272,
-0.1124483123421669,
-0.14246569573879242,
-0.0864444151520729,
0.025159113109111786,
-0.09247422963380814,
0.20702865719795227,
0.35639405250549316,
0.3213754892349243,
-0.19019874930381775,
0.33391305804252625,
-0.04639432206749916,
-0.145346537232399,
-0.19388757646083832,
0.3707820475101471,
0.07530127465724945,
-0.2841668128967285,
-0.12542155385017395,
0.015040245838463306,
-0.402141809463501,
0.06934294104576111,
0.4656215012073517,
0.010683698579668999,
0.2924722731113434,
0.001887854072265327,
0.10944385081529617,
-0.09056182950735092,
0.42697301506996155,
0.14451174437999725,
0.3763493597507477,
-0.4452264904975891,
0.011287657544016838,
-0.50272536277771,
0.1829468011856079,
-0.03917977586388588,
0.0534203015267849,
-0.04423617571592331,
0.17016887664794922,
0.010517117567360401,
0.20270296931266785,
-0.14749903976917267,
-0.05667027831077576,
0.017852162942290306,
0.12563417851924896,
0.026940064504742622,
-0.1631549447774887,
-0.20206904411315918,
0.05830048769712448,
-0.0021006425376981497,
-0.39048659801483154,
0.2174811214208603,
0.02108445204794407,
0.1405794620513916,
-0.2631102204322815,
-0.06372445821762085,
0.1954774111509323,
0.12738986313343048,
0.3907392621040344,
0.16002370417118073,
0.6441078782081604,
-0.10564817488193512,
0.0829368531703949,
-0.06830979138612747,
-0.2543078064918518,
0.01514433789998293,
0.19531722366809845,
0.26786720752716064,
0.21443593502044678,
-0.08898662775754929,
-0.314135879278183,
-0.47147300839424133,
0.3997179865837097,
-0.054113663733005524,
-0.08573810011148453,
-0.04443321004509926,
-0.1015133261680603,
-0.02954046241939068,
0.04289216548204422,
0.0381942093372345,
-0.033093761652708054,
0.011734681203961372,
0.21084868907928467,
-0.17600476741790771,
-0.409662127494812,
0.41831210255622864,
-0.26436227560043335,
-0.25048574805259705,
-0.17109964787960052,
0.27817803621292114,
-0.04632914066314697,
0.28937843441963196,
-0.27733147144317627,
0.2958231270313263,
0.45240318775177,
-0.21106761693954468,
-0.2147776186466217,
0.22343921661376953,
0.019069433212280273,
0.2123967409133911,
-0.03966193273663521,
0.4695010781288147,
0.10085902363061905,
-0.2427973747253418,
-0.15513014793395996,
-0.21959015727043152
] |
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.11141905933618546,
0.2604740560054779,
-0.06152283400297165,
0.0869145393371582,
0.05529170483350754,
0.11656821519136429,
-0.10393816977739334,
0.2843021750450134,
-0.14580433070659637,
-0.026925740763545036,
-0.050093334168195724,
-0.10960204154253006,
0.06176072359085083,
0.052949219942092896,
0.036690112203359604,
0.09923630207777023,
0.09575104713439941,
-0.10737676173448563,
-0.4846738576889038,
-0.12074997276067734,
-0.29752370715141296,
0.3327785134315491,
-0.1629834771156311,
0.07644103467464447,
-0.3429383635520935,
0.1360033005475998,
-0.2239769697189331,
0.283304899930954,
-0.27906376123428345,
-0.42461103200912476,
0.23278436064720154,
0.026277609169483185,
0.2541758120059967,
0.4004099369049072,
-0.00010590336023597047,
-0.02369065023958683,
0.2455451786518097,
0.0927896648645401,
-0.12044470757246017,
-0.12950357794761658,
-0.35780248045921326,
-0.12044605612754822,
0.030539320781826973,
-0.06332892924547195,
-0.07230928540229797,
-0.029333211481571198,
-0.06990529596805573,
-0.12183523178100586,
0.21485169231891632,
0.46336910128593445,
0.29011890292167664,
0.046386945992708206,
0.09498195350170135,
-0.20835718512535095,
0.23871159553527832,
-0.31067532300949097,
-0.064140185713768,
0.31288185715675354,
0.15092164278030396,
0.05179017782211304,
0.262489378452301,
0.42076224088668823,
0.03203320503234863,
-0.21720166504383087,
0.1415032148361206,
0.06208227947354317,
0.1603156179189682,
-0.22672443091869354,
-0.1460564136505127,
0.0553172305226326,
0.27690932154655457,
-0.15754367411136627,
-0.5258877277374268,
-0.05713583901524544,
0.09286494553089142,
-0.5297963619232178,
0.16485774517059326,
-0.07382960617542267,
0.24008065462112427,
0.2522781789302826,
-0.14425410330295563,
-0.04968970641493797,
-0.028818229213356972,
0.22174440324306488,
0.06364818662405014,
0.1838529258966446,
-0.09209523350000381,
-0.10475564748048782,
-0.08814772218465805,
-0.04828117415308952,
0.2248367965221405,
0.11132922023534775,
-0.09771974384784698,
0.07375502586364746,
-0.2285221666097641,
-0.04616687446832657,
0.03852558508515358,
0.14690575003623962,
-0.02807825617492199,
0.21447908878326416,
0.010471698828041553,
-0.12327180057764053,
0.06615635752677917,
-0.17300809919834137,
0.13559798896312714,
0.379061222076416,
0.14484694600105286,
-0.3184601962566376,
0.15189188718795776,
0.46186700463294983,
-0.18420320749282837,
-0.0007186105358414352,
0.059593699872493744,
-0.5326234102249146,
-0.28761762380599976,
0.03973478451371193,
0.28213056921958923,
-0.3005322813987732,
-0.02545151114463806,
-0.05133577436208725,
-0.29087597131729126,
-0.029741710051894188,
0.019800899550318718,
0.24928449094295502,
-0.22161895036697388,
0.1071917936205864,
0.02336093969643116,
0.19798247516155243,
-0.05253453925251961,
-0.25857850909233093,
-0.2975827753543854,
0.030634937807917595,
-0.09175700694322586,
0.08914018422365189,
-0.22124280035495758,
-0.18227051198482513,
0.23918896913528442,
0.0033656698651611805,
0.20549854636192322,
-0.09995415806770325,
-0.11023671180009842,
0.16545143723487854,
-0.17958545684814453,
0.16934381425380707,
0.004581908695399761,
0.2769615352153778,
0.25654345750808716,
-0.09070242941379547,
-0.1499936729669571,
-0.038739461451768875,
-0.5298548936843872,
-0.4499751925468445,
0.08724736422300339,
0.2952365279197693,
-0.1409647911787033,
-0.25852739810943604,
-0.06539681553840637,
-0.03851046785712242,
-0.1615036129951477,
-0.034794073551893234,
0.027865422889590263,
-0.2688952386379242,
-0.15625080466270447,
-0.18047329783439636,
0.08386518061161041,
0.2679861783981323,
0.05159389600157738,
0.001373831182718277,
-0.003776712343096733,
0.0785495936870575,
-0.06510763615369797,
0.17834459245204926,
-0.12688563764095306,
-0.09052004665136337,
-0.2397110015153885,
-0.18526779115200043,
0.34404292702674866,
-0.47336360812187195,
-0.10897707939147949,
-0.0084119513630867,
-0.19699150323867798,
-0.049340445548295975,
-0.25708457827568054,
0.04294711723923683,
-0.19606204330921173,
-0.13699130713939667,
0.16925901174545288,
0.08983586728572845,
0.20928381383419037,
-0.11851337552070618,
-0.33409583568573,
-0.4222736358642578,
-0.3132747411727905,
0.039876870810985565,
-0.09307131171226501,
0.17236880958080292,
0.06422362476587296,
-0.16942653059959412,
0.20527683198451996,
-0.0010918853804469109,
-0.09837178885936737,
0.7106878161430359,
0.47817832231521606,
0.35269761085510254,
-0.0494660809636116,
-0.06775283068418503,
-0.1924733817577362,
0.3061390519142151,
-0.072202168405056,
0.2881505787372589,
0.18489038944244385,
-0.13615939021110535,
-0.13988913595676422,
-0.005865555722266436,
-0.20051459968090057,
-0.22964200377464294,
0.1698446273803711,
-0.13805106282234192,
0.25288689136505127,
0.32194945216178894,
-0.1977851241827011,
0.23688171803951263,
-0.18125872313976288,
0.20859047770500183,
-0.22424916923046112,
0.27811509370803833,
-0.06381133943796158,
0.062458742409944534,
0.21140211820602417,
0.2979295551776886,
0.20142166316509247,
0.07919904589653015,
0.011929198168218136,
0.3588082790374756,
-0.09724964201450348,
0.17098112404346466,
0.33103078603744507,
0.3559351861476898,
0.08287308365106583,
-0.23671230673789978,
-0.1930481195449829,
0.089020274579525,
-0.2096584439277649,
0.2908056080341339,
0.17855525016784668,
0.4742395281791687,
-0.15549512207508087,
0.12947602570056915,
0.21136948466300964,
0.11688128858804703,
0.0017115197842940688,
-0.097808338701725,
0.07564470916986465,
-0.3420623242855072,
0.15945965051651,
0.28442415595054626,
0.25429782271385193,
0.025937339290976524,
-0.11379827558994293,
0.3069619834423065,
0.40332648158073425,
0.023039305582642555,
-0.053601767867803574,
0.09259938448667526,
-0.1973934769630432,
0.02090662717819214,
0.01254997868090868,
0.4818214774131775,
0.04719534143805504,
0.23991930484771729,
0.05220024660229683,
0.19053712487220764,
-0.025711124762892723,
-0.33616262674331665,
0.20261529088020325,
0.024099741131067276,
0.20857205986976624,
-0.10787098109722137,
0.22981752455234528,
0.03931495547294617,
-0.3651338815689087,
-0.015752211213111877,
-0.020477065816521645,
0.1602083444595337,
-0.2130163013935089,
-0.10760854184627533,
-0.4700709581375122,
-0.2990794777870178,
-0.4573797285556793,
-0.4193025529384613,
-0.5098840594291687,
-0.4655088782310486,
0.3162052035331726,
-0.15035438537597656,
-0.1422877013683319,
0.24902094900608063,
-0.231207937002182,
-0.07975775748491287,
-0.09335680305957794,
-0.0661015436053276,
-0.0052240886725485325,
0.09062732011079788,
-0.30367061495780945,
0.10495372116565704,
0.030569223687052727,
-0.01408874150365591,
0.044840775430202484,
-0.15429173409938812,
0.10435441136360168,
-0.34269535541534424,
-0.4059769809246063,
-0.07758213579654694,
-0.08435311168432236,
0.5491736531257629,
0.10175057500600815,
0.0014882964314892888,
-0.1084430068731308,
0.08050771057605743,
0.3233987092971802,
-0.06754790246486664,
-0.11654011905193329,
-0.05430762097239494,
-0.02535485476255417,
0.20588843524456024,
0.11209812015295029,
-0.3937990367412567,
-0.012276114895939827,
-0.22870001196861267,
0.02064690925180912,
-0.029260359704494476,
-0.059624116867780685,
0.16159941256046295,
0.03504646196961403,
0.18218588829040527,
-0.10963793098926544,
-0.050258997827768326,
-0.07753097265958786,
-0.6021640300750732,
0.39790260791778564,
-0.1612033247947693,
-0.2727682590484619,
0.039936959743499756,
0.2259169965982437,
0.16215094923973083,
-0.16569288074970245,
-0.544013500213623,
-0.4649569094181061,
-0.12290731072425842,
0.13003721833229065,
0.32753297686576843,
-0.1609508991241455,
0.30478906631469727,
-0.054741427302360535,
-0.26066458225250244,
-0.05747043713927269,
-0.03537347540259361,
0.09417354315519333,
0.15468187630176544,
0.25333359837532043,
-0.0691734179854393,
0.6103913187980652,
0.08461682498455048,
0.8092584013938904,
0.2597024142742157,
0.3382929861545563,
0.2470414787530899,
-0.15276826918125153,
0.23514291644096375,
-0.016895800828933716,
-0.05657263845205307,
0.05158604308962822,
-0.12410930544137955,
-0.055576127022504807,
0.09639815986156464,
0.37876537442207336,
0.6186664700508118,
-0.06979619711637497,
0.20157097280025482,
-0.29371052980422974,
-0.037119537591934204,
-0.17552277445793152,
0.20903418958187103,
0.242432102560997,
0.059136759489774704,
-0.15370021760463715,
0.007830990478396416,
-0.14378227293491364,
0.21465224027633667,
0.2838852107524872,
-0.11203216016292572,
0.18232393264770508,
-0.6854109168052673,
-0.1131686270236969,
-0.24817079305648804,
0.4097757339477539,
-0.010677956975996494,
0.08114418387413025,
0.09550928324460983,
-0.09410721808671951,
0.03241259604692459,
-0.10749682039022446,
0.362610787153244,
-0.06966789066791534,
0.0681169256567955,
0.18990886211395264,
-0.31696590781211853,
-0.13920852541923523,
-0.1725103110074997,
0.02360505424439907,
-0.27910035848617554,
0.41099169850349426,
0.31460630893707275,
-0.01976623758673668,
-0.3156174421310425,
0.05469653382897377,
-0.08998385071754456,
-0.1812010258436203,
0.1167711690068245,
-0.3629796504974365,
-0.38242217898368835,
-0.0023277883883565664,
-0.3053699731826782,
-0.020320644602179527,
0.11604242026805878,
-0.21917636692523956,
-0.026988951489329338,
0.16599580645561218,
-0.12918514013290405,
-0.03738360106945038,
-0.0013790938537567854,
0.22929266095161438,
0.10559502243995667,
0.007170733530074358,
0.18884888291358948,
-0.012167337350547314,
0.4028806686401367,
0.6721407771110535,
-0.18604853749275208,
-0.5906388163566589,
-0.291339248418808,
0.2249022126197815,
0.2447507083415985,
0.3056868612766266,
-0.03624843806028366,
0.32471102476119995,
0.20091617107391357,
0.0997394323348999,
-0.039657045155763626,
0.04459820315241814,
0.48390093445777893,
-0.06895991414785385,
-0.13994258642196655,
-0.49959367513656616,
0.6568711400032043,
0.09780875593423843,
0.013736525550484657,
0.266835480928421,
0.24611109495162964,
-0.17832747101783752,
-0.166956827044487,
0.17245972156524658,
0.8291386961936951,
-0.04096866026520729,
0.23106028139591217,
0.39609071612358093,
-0.484823077917099,
0.5719247460365295,
0.12026289105415344,
0.19414018094539642,
-0.37304043769836426,
-0.06337864696979523,
-0.008090415969491005,
-0.09199226647615433,
0.013527560979127884,
0.009493234567344189,
-0.007185736205428839,
0.33375704288482666,
-0.14169275760650635,
0.06031055375933647,
-0.11298128962516785,
0.011825114488601685,
-0.14286652207374573,
0.27735766768455505,
-0.5153909921646118,
0.21487979590892792,
0.16524596512317657,
0.23827244341373444,
-0.19992263615131378,
-0.20566250383853912,
-0.10375683754682541,
-0.09229592233896255,
0.024244535714387894,
0.1859455108642578,
-0.3815819323062897,
0.21161092817783356,
0.08494541794061661,
-0.20990829169750214,
-0.3028816282749176,
0.4327213168144226,
0.16285860538482666,
-0.19007010757923126,
-0.26359128952026367,
0.36231714487075806,
0.27311575412750244,
-0.06810382753610611,
0.16150282323360443,
-0.030141649767756462,
0.2988242208957672,
-0.30356818437576294,
-0.05538885295391083,
0.28544706106185913,
0.027956144884228706,
-0.5376610159873962,
-0.2894963324069977,
-0.07226664572954178,
-0.3765800893306732,
-0.15077807009220123,
-0.13214366137981415,
0.12797002494335175,
0.25195807218551636,
-0.30336350202560425,
0.1605210304260254,
0.15525774657726288,
0.15563024580478668,
-0.2645985186100006,
0.056770678609609604,
-0.23915879428386688,
-0.17194874584674835,
0.32827821373939514,
-0.11237824708223343,
0.0018016803078353405,
0.48580899834632874,
0.33418405055999756,
0.03925543650984764,
-0.13795599341392517,
0.012377765960991383,
0.22582070529460907,
-0.2358328104019165,
0.19733478128910065,
-0.04332631081342697,
0.2427884191274643,
0.2512149214744568,
0.46156036853790283,
0.16520249843597412,
-0.18670600652694702,
0.03500426933169365,
-0.18157437443733215,
0.009483546018600464,
0.48170721530914307,
0.1577066034078598,
-0.008812869898974895,
-0.19529227912425995,
0.18235765397548676,
-0.0750710517168045,
-0.22570310533046722,
-0.3950369656085968,
0.20384879410266876,
-0.14390191435813904,
-0.27711498737335205,
-0.358242392539978,
0.0014215866103768349,
0.25927209854125977,
0.1789800375699997,
0.09735779464244843,
-0.29257410764694214,
-0.35373976826667786,
-0.16604790091514587,
-0.17085333168506622,
0.07086051255464554,
0.03342394903302193,
-0.08885885030031204,
0.0984104722738266,
-0.20008911192417145,
-0.06274666637182236,
0.012801279313862324,
-0.13737910985946655,
0.34635061025619507,
0.08125291019678116,
0.10522723197937012,
-0.0027638357132673264,
-0.11826049536466599,
0.12217945605516434,
0.016588231548666954,
0.03415413200855255,
-0.03213481977581978,
0.2820426821708679,
0.09881847351789474,
-0.047556549310684204,
0.04559703171253204,
0.13922001421451569,
-0.01885526441037655,
-0.2877013385295868,
-0.023275209590792656,
0.24667295813560486,
-0.34907111525535583,
0.019790736958384514,
0.4390014111995697,
0.4129158854484558,
0.333914190530777,
-0.23367822170257568,
-0.06594184786081314,
0.03395901247859001,
0.25426894426345825,
-0.28600722551345825,
-0.053664837032556534,
-0.36548489332199097,
0.18744775652885437,
-0.19435374438762665,
-0.013109616003930569,
0.07159349322319031,
0.06685745716094971,
0.1099223643541336,
0.30077657103538513,
0.20039205253124237,
-0.02546755224466324,
0.33980971574783325,
-0.1550864279270172,
0.07494913786649704,
0.11955081671476364,
0.318676620721817,
-0.0308236051350832,
0.14627282321453094,
0.12110365182161331,
0.11832408607006073,
0.24091008305549622,
0.1301383227109909,
0.10853864252567291,
-0.0022800625301897526,
-0.1870732605457306,
0.008457607589662075,
0.28937527537345886,
-0.14138908684253693,
-0.0005288961692713201,
-0.08315418660640717,
0.40726861357688904,
-0.3353334963321686,
-0.02976471371948719,
-0.37189990282058716,
0.1679224818944931,
-0.04186870902776718,
-0.15755705535411835,
0.16522957384586334,
-0.18972450494766235,
0.10797787457704544,
0.05763774365186691,
-0.1431669443845749,
-0.23840978741645813,
-0.04647707939147949,
-0.0566878616809845,
-0.25989830493927,
-0.5065020322799683,
-0.26892390847206116,
0.17228439450263977,
0.30498388409614563,
0.009284825064241886,
0.1346587836742401,
0.27071085572242737,
-0.239035502076149,
0.28457391262054443,
0.4439423382282257,
0.3326486349105835,
0.1932353973388672,
0.13351978361606598,
-0.11421096324920654,
0.01718232035636902,
-0.011442635208368301,
0.09067917615175247,
0.16139467060565948,
0.18124687671661377,
0.10342688113451004,
0.3300357162952423,
0.24589720368385315,
-0.21242940425872803,
0.16319715976715088,
-0.259974867105484,
0.27620452642440796,
-0.4183763265609741,
0.4726516902446747,
-0.19548147916793823,
0.03019675612449646,
-0.13528107106685638,
0.21227721869945526,
-0.3365429937839508,
0.0922618955373764,
0.3247300088405609,
-0.13565799593925476,
-0.1607273817062378,
-0.12372197955846786,
0.13838127255439758,
0.15646083652973175,
0.37513965368270874,
0.6169618368148804,
0.10070473700761795,
-0.1028798371553421,
-0.46282294392585754,
-0.6122586131095886,
0.020003903657197952,
-0.11227481067180634,
0.19511491060256958,
-0.014568628743290901,
-0.07920671254396439,
-0.05717364698648453,
-0.0858108252286911,
0.208553284406662,
-0.24715138971805573,
-0.3349532186985016,
-0.2094247192144394,
-0.3358880877494812,
0.13956689834594727,
-0.16036579012870789,
0.12808069586753845,
-0.020531266927719116,
0.03719312325119972,
0.028470024466514587,
0.06944198906421661,
0.04522157087922096,
0.11958532780408859,
0.08440782874822617,
0.008262128569185734,
-0.35660308599472046,
0.29020944237709045,
0.1418779343366623,
0.04943719133734703,
0.1012413501739502,
-0.27471381425857544,
-0.35107895731925964,
-0.6006178259849548,
-0.17526428401470184,
0.21371597051620483,
-0.3993286192417145,
0.3152042031288147,
-0.11927599459886551,
-0.16635429859161377,
-0.24798369407653809,
0.39714816212654114,
0.07293340563774109,
-0.32658079266548157,
-0.19884881377220154,
0.10871429741382599,
0.11680769920349121,
0.02233690209686756,
0.2624644935131073,
0.44462043046951294,
0.04125324264168739,
0.16930611431598663,
-0.13085125386714935,
-0.2479744255542755,
0.408889502286911,
-0.5502558946609497,
0.12548302114009857,
-0.142440527677536,
0.20961318910121918,
0.3931015431880951,
-0.06791823357343674,
-0.43120408058166504,
-0.1493130922317505,
0.45880433917045593,
0.49164971709251404,
-0.20302332937717438,
0.45046234130859375,
-0.01850186102092266,
-0.07818961888551712,
-0.0022151214070618153,
0.44932976365089417,
-0.015174134634435177,
-0.3239266276359558,
0.15133145451545715,
-0.09474249184131622
] |
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.1814384162425995,
0.26339080929756165,
-0.030795922502875328,
0.059245672076940536,
0.04189113527536392,
0.12300227582454681,
-0.12396816164255142,
0.27636218070983887,
-0.19367776811122894,
-0.033900581300258636,
-0.07967749238014221,
-0.06463836878538132,
0.04962947219610214,
0.05433473736047745,
0.05471697077155113,
0.11283212155103683,
0.06956901401281357,
-0.15956759452819824,
-0.43161872029304504,
-0.10874272882938385,
-0.191398024559021,
0.28268370032310486,
-0.13568434119224548,
-0.0009309330489486456,
-0.339468777179718,
0.15082651376724243,
-0.23232503235340118,
0.3646855652332306,
-0.3322316110134125,
-0.480273962020874,
0.2540857493877411,
0.09761320799589157,
0.13200372457504272,
0.4148569703102112,
-0.00010960106737911701,
-0.032976727932691574,
0.26068809628486633,
0.07207746058702469,
-0.30007249116897583,
-0.2538609504699707,
-0.3303822875022888,
-0.05347795411944389,
0.06425321847200394,
0.005197399295866489,
-0.11150389164686203,
0.008726397529244423,
-0.10955075919628143,
-0.15800133347511292,
0.2263863980770111,
0.49451908469200134,
0.24062664806842804,
0.16530384123325348,
0.12513642013072968,
-0.20521987974643707,
0.16587911546230316,
-0.2156873196363449,
-0.023003332316875458,
0.4426383078098297,
0.12097914516925812,
0.14892534911632538,
0.18961311876773834,
0.4562259018421173,
0.09091856330633163,
-0.18026871979236603,
0.19111916422843933,
-0.024254726245999336,
0.05993705987930298,
-0.14832662045955658,
-0.1277470737695694,
0.02739711105823517,
0.20830099284648895,
-0.1990525871515274,
-0.588125467300415,
-0.1760207563638687,
0.01650289073586464,
-0.417469322681427,
0.19015341997146606,
-0.08084304630756378,
0.15513433516025543,
0.24806621670722961,
-0.2717457711696625,
-0.05394081398844719,
-0.004620600026100874,
0.17169252038002014,
0.0638781487941742,
0.17188692092895508,
-0.10850729793310165,
-0.09880658239126205,
0.012423337437212467,
-0.026307106018066406,
0.12573625147342682,
0.07496710121631622,
-0.12733136117458344,
0.08490219712257385,
-0.13193301856517792,
-0.03597918525338173,
0.1138862892985344,
0.1978074461221695,
0.1343405842781067,
0.2857429087162018,
-0.03850141540169716,
-0.14742235839366913,
0.025824254378676414,
-0.19689057767391205,
0.06184730306267738,
0.38265055418014526,
0.15768015384674072,
-0.27020594477653503,
0.08010894060134888,
0.579771101474762,
-0.1599886268377304,
-0.01595313288271427,
0.10514044761657715,
-0.43485453724861145,
-0.3297363519668579,
0.09254840761423111,
0.2865137755870819,
-0.31870150566101074,
-0.06324031203985214,
0.010815910995006561,
-0.3502395749092102,
-0.07683958858251572,
0.06381647288799286,
0.26611003279685974,
-0.1927783191204071,
0.01902936026453972,
0.010239167138934135,
0.1783716231584549,
-0.07185157388448715,
-0.22225473821163177,
-0.2589593529701233,
0.09369748085737228,
-0.06321315467357635,
0.10311968624591827,
-0.079780213534832,
-0.2712111175060272,
0.3014894127845764,
0.0433487705886364,
0.20069220662117004,
-0.19853271543979645,
-0.0881214514374733,
0.17054076492786407,
-0.02750418707728386,
0.15189328789710999,
-0.03453870490193367,
0.2503410279750824,
0.25806981325149536,
-0.13164274394512177,
-0.15061067044734955,
-0.16882465779781342,
-0.40426090359687805,
-0.45058077573776245,
0.11569210886955261,
0.2677433490753174,
-0.2115435153245926,
-0.2300756424665451,
-0.02411760948598385,
-0.05810558795928955,
-0.22642011940479279,
-0.04499607905745506,
0.05953880771994591,
-0.09667443484067917,
-0.1148604303598404,
-0.10251373052597046,
0.1910267472267151,
0.4267813265323639,
0.06518840789794922,
-0.026120148599147797,
0.025713058188557625,
0.03804056718945503,
-0.2048701047897339,
0.10641864687204361,
-0.08681362122297287,
-0.065459705889225,
-0.33495429158210754,
-0.20915783941745758,
0.19743996858596802,
-0.5608183145523071,
-0.09420239180326462,
0.04854466766119003,
-0.18074199557304382,
0.09367285668849945,
-0.1627361923456192,
-0.10186072438955307,
-0.25741586089134216,
-0.17297296226024628,
0.09692882746458054,
0.0059842318296432495,
0.18155497312545776,
-0.17355690896511078,
-0.3533760607242584,
-0.3301098644733429,
-0.30044683814048767,
0.01616072468459606,
-0.08343333005905151,
0.11495251953601837,
0.07645685970783234,
-0.14231929183006287,
0.23335963487625122,
-0.07526826113462448,
-0.05586535483598709,
0.6734694242477417,
0.4449433982372284,
0.3045359253883362,
-0.12108785659074783,
-0.0760173425078392,
-0.20761078596115112,
0.30750223994255066,
-0.04865449666976929,
0.3698555827140808,
0.05295627936720848,
-0.2197633683681488,
-0.2623218297958374,
-0.03225002437829971,
-0.18723638355731964,
-0.3644115626811981,
0.1521928459405899,
0.001765286666341126,
0.32936418056488037,
0.3688012659549713,
-0.13086135685443878,
0.24536018073558807,
-0.09270013868808746,
0.28443875908851624,
-0.3363269567489624,
0.20504169166088104,
-0.07534190267324448,
0.12986363470554352,
0.18031911551952362,
0.33162882924079895,
0.16854998469352722,
-0.04709279537200928,
0.06215821951627731,
0.4803515076637268,
0.02410968579351902,
0.22607915103435516,
0.2993498146533966,
0.3887961506843567,
0.14081688225269318,
-0.15285122394561768,
-0.26590779423713684,
0.050474025309085846,
-0.19810719788074493,
0.2852492928504944,
0.004288276191800833,
0.5125673413276672,
-0.22723440825939178,
0.04371435195207596,
0.31170839071273804,
0.08029162138700485,
-0.025398412719368935,
-0.1287052482366562,
-0.06305387616157532,
-0.3391026556491852,
0.13438384234905243,
0.19053800404071808,
0.255598247051239,
0.06941063702106476,
-0.08656437695026398,
0.25440457463264465,
0.3082246482372284,
0.000783330004196614,
-0.11999107152223587,
0.043902698904275894,
-0.1633099615573883,
-0.030238991603255272,
0.036218639463186264,
0.4918467104434967,
0.04630375653505325,
0.18905074894428253,
0.14360378682613373,
0.26708826422691345,
-0.10659924894571304,
-0.31051158905029297,
0.2072131335735321,
-0.0025300844572484493,
0.12407665699720383,
-0.0794556513428688,
0.16050279140472412,
0.07900118082761765,
-0.3271409571170807,
-0.010496050119400024,
0.06674028187990189,
0.13969406485557556,
-0.33130383491516113,
-0.07371258735656738,
-0.41841280460357666,
-0.326489120721817,
-0.4596145749092102,
-0.4717080295085907,
-0.5129227638244629,
-0.4499325454235077,
0.2855214774608612,
-0.056538160890340805,
-0.1617545485496521,
0.26722559332847595,
-0.21559447050094604,
-0.05316537618637085,
-0.07354917377233505,
-0.15256904065608978,
-0.028565218672156334,
0.16143730282783508,
-0.25337058305740356,
0.08040996640920639,
0.09475488215684891,
0.004785316530615091,
0.08358707278966904,
-0.19146700203418732,
0.07420635968446732,
-0.3723450005054474,
-0.46358615159988403,
-0.05644116923213005,
-0.14089864492416382,
0.5550058484077454,
0.18130089342594147,
-0.02152702398598194,
-0.11950124800205231,
0.08605057746171951,
0.2670643925666809,
-0.09643787145614624,
-0.14708930253982544,
-0.09609684348106384,
0.00412928918376565,
0.2165309488773346,
-0.019194111227989197,
-0.3963402807712555,
0.09231827408075333,
-0.19521239399909973,
0.15194980800151825,
0.006909738760441542,
-0.13811993598937988,
0.2225104719400406,
0.04844333603978157,
0.21656040847301483,
-0.1757252961397171,
-0.00941713061183691,
-0.1496473103761673,
-0.5822511911392212,
0.2848048210144043,
-0.1767049878835678,
-0.23909690976142883,
0.025704773142933846,
0.16596311330795288,
0.2770976722240448,
-0.18859107792377472,
-0.49246975779533386,
-0.5709950923919678,
-0.06442499905824661,
0.17464563250541687,
0.23722615838050842,
-0.13558292388916016,
0.35873788595199585,
-0.08549728244543076,
-0.21942353248596191,
-0.09851662069559097,
-0.053788430988788605,
0.0614873431622982,
-0.021650509908795357,
0.2505013644695282,
-0.18857230246067047,
0.4891979396343231,
0.1769678294658661,
0.8431834578514099,
0.260077565908432,
0.2609493136405945,
0.23622898757457733,
-0.19680947065353394,
0.3244539499282837,
0.04721296206116676,
-0.081023670732975,
0.07276125997304916,
-0.10169460624456406,
-0.0037915080320090055,
0.0429978184401989,
0.3066652715206146,
0.7679778337478638,
-0.09145607799291611,
0.18272727727890015,
-0.32474246621131897,
-0.13103200495243073,
-0.18171919882297516,
0.03568851575255394,
0.30205124616622925,
0.11696615815162659,
-0.04254445806145668,
0.017198489978909492,
-0.10266493260860443,
0.2317439764738083,
0.33160048723220825,
-0.013530584052205086,
0.17323249578475952,
-0.6399105787277222,
-0.03650737181305885,
-0.3518027067184448,
0.37971004843711853,
0.0645189955830574,
0.13964754343032837,
0.05562613904476166,
-0.12337645143270493,
-0.0507146455347538,
-0.11608164757490158,
0.4085841178894043,
-0.06917637586593628,
0.10590419918298721,
0.13506628572940826,
-0.3020002543926239,
-0.2461179494857788,
-0.08858455717563629,
-0.027230309322476387,
-0.36199966073036194,
0.45751073956489563,
0.44463786482810974,
-0.1656656116247177,
-0.3098145127296448,
0.056244004517793655,
-0.14170299470424652,
-0.05323351174592972,
0.2052563726902008,
-0.34869614243507385,
-0.4430466592311859,
-0.05464286357164383,
-0.23019637167453766,
-0.007173747289925814,
0.1470794528722763,
-0.26783451437950134,
0.08680485188961029,
0.19137965142726898,
-0.06772448867559433,
0.06395506858825684,
0.03181498125195503,
0.2438019961118698,
0.1417737901210785,
0.01986081711947918,
0.2720101475715637,
0.015375157818198204,
0.40656742453575134,
0.691436231136322,
-0.13545459508895874,
-0.46974965929985046,
-0.3509454131126404,
0.2945723235607147,
0.25907254219055176,
0.32631081342697144,
-0.04765869304537773,
0.3299766778945923,
0.1912798285484314,
0.07776150107383728,
-0.2093721628189087,
0.10485579073429108,
0.45345163345336914,
-0.04093743488192558,
-0.085303895175457,
-0.3975667655467987,
0.5780670046806335,
0.08594229072332382,
0.02810308150947094,
0.25313735008239746,
0.3308798670768738,
-0.24439901113510132,
-0.18555013835430145,
0.22003266215324402,
0.8425856232643127,
0.027328208088874817,
0.24988318979740143,
0.4652480185031891,
-0.4865770936012268,
0.6284458041191101,
0.11389148235321045,
0.11679108440876007,
-0.33045685291290283,
-0.06226397305727005,
-0.0057838992215693,
-0.10611910372972488,
0.008202607743442059,
-0.06390323489904404,
-0.13778804242610931,
0.26580262184143066,
-0.06027859076857567,
0.0859864130616188,
-0.06797020882368088,
0.1801137775182724,
-0.2645602822303772,
0.2733730673789978,
-0.4418809711933136,
0.2128523886203766,
0.2451348602771759,
0.2972661256790161,
-0.22243590652942657,
-0.20041027665138245,
-0.1561025232076645,
-0.19805008172988892,
-0.018006306141614914,
0.1851615607738495,
-0.3557876944541931,
0.13905298709869385,
0.17248627543449402,
-0.10213380306959152,
-0.2756614685058594,
0.3033570349216461,
0.22237864136695862,
-0.0762573629617691,
-0.26802700757980347,
0.41688573360443115,
0.12823472917079926,
-0.04314139857888222,
0.1861746907234192,
-0.034002285450696945,
0.34043213725090027,
-0.2331407368183136,
-0.06306754797697067,
0.1382155865430832,
-0.07672619819641113,
-0.43915459513664246,
-0.23902608454227448,
-0.11839289218187332,
-0.4430551826953888,
-0.20567116141319275,
-0.04224798083305359,
0.06941736489534378,
0.1149650365114212,
-0.2710416615009308,
0.12994281947612762,
0.04799741879105568,
0.10400077700614929,
-0.3076753318309784,
0.06995286047458649,
-0.28542616963386536,
-0.1601448655128479,
0.42543119192123413,
-0.3218724727630615,
-0.006744727957993746,
0.4813893735408783,
0.2502383887767792,
0.11230888962745667,
-0.11103548109531403,
-0.03719893842935562,
0.23809757828712463,
-0.292917400598526,
0.16111183166503906,
-0.0172076765447855,
0.2694162428379059,
0.17230616509914398,
0.40408581495285034,
0.23765245079994202,
-0.09559274464845657,
0.08369718492031097,
-0.20660993456840515,
0.027800194919109344,
0.42062926292419434,
0.11706436425447464,
0.05660046637058258,
-0.23264962434768677,
0.3210022747516632,
0.0009798553073778749,
-0.11525676399469376,
-0.3622204661369324,
0.2478494644165039,
-0.1676051765680313,
-0.19888906180858612,
-0.2702730894088745,
-0.05736826732754707,
0.29422062635421753,
0.08232054114341736,
0.06733294576406479,
-0.19604280591011047,
-0.3853553235530853,
-0.12691929936408997,
-0.21151989698410034,
0.09006517380475998,
0.03981085494160652,
-0.1216629222035408,
0.06215086579322815,
-0.056265801191329956,
-0.06487677246332169,
-0.003202853025868535,
-0.1305009424686432,
0.31666243076324463,
0.03181055188179016,
0.0892098918557167,
-0.013512815348803997,
-0.040049564093351364,
0.10377047210931778,
-0.13228632509708405,
0.10112855583429337,
-0.01290363259613514,
0.23418380320072174,
0.07587790489196777,
-0.19528211653232574,
0.03385503217577934,
0.1749708205461502,
0.11172609776258469,
-0.15577426552772522,
-0.066306933760643,
0.23099561035633087,
-0.18559566140174866,
-0.053636785596609116,
0.30815204977989197,
0.4672929346561432,
0.37779614329338074,
-0.22851061820983887,
0.0026176455430686474,
0.06090211495757103,
0.2245692014694214,
-0.20258373022079468,
0.030743161216378212,
-0.3618754744529724,
0.15366217494010925,
-0.06390643119812012,
0.005317166447639465,
0.1485765129327774,
0.0913248136639595,
0.18645530939102173,
0.24609944224357605,
0.21544475853443146,
0.00555182620882988,
0.3046571910381317,
-0.16074126958847046,
-0.034944627434015274,
0.0800447016954422,
0.33507874608039856,
-0.10895678400993347,
0.16983173787593842,
-0.004172021057456732,
0.11209412664175034,
0.29561540484428406,
-0.006813295651227236,
0.15294086933135986,
0.010291819460690022,
-0.18733222782611847,
-0.03322267532348633,
0.24695949256420135,
-0.13386797904968262,
0.03004317730665207,
-0.09037508815526962,
0.48630592226982117,
-0.4023510813713074,
-0.056859567761421204,
-0.36286690831184387,
0.1842982918024063,
0.03693307936191559,
-0.19368086755275726,
0.11986944824457169,
-0.2513342499732971,
0.017705682665109634,
0.03701391816139221,
-0.04214896261692047,
-0.27709895372390747,
0.004044407047331333,
-0.08287648856639862,
-0.2485533058643341,
-0.5583950877189636,
-0.3507040739059448,
0.2220553308725357,
0.31338924169540405,
-0.0206808652728796,
0.1966707557439804,
0.3626987040042877,
-0.21105751395225525,
0.3159109950065613,
0.44627758860588074,
0.3888227641582489,
0.08953753858804703,
0.19719335436820984,
-0.04787629470229149,
-0.09101999551057816,
0.04385463893413544,
0.10911902040243149,
0.28863587975502014,
0.1897922307252884,
-0.002509502926841378,
0.4184230864048004,
0.21272777020931244,
-0.19552189111709595,
0.09284082800149918,
-0.2901560962200165,
0.21782442927360535,
-0.4855862855911255,
0.5161005854606628,
-0.23690389096736908,
0.09150020778179169,
-0.18255527317523956,
0.22030621767044067,
-0.37142419815063477,
0.14407944679260254,
0.26041144132614136,
-0.10470905154943466,
-0.05374555289745331,
-0.1721443384885788,
0.10955345630645752,
0.20262761414051056,
0.4219174087047577,
0.6534839868545532,
0.0887691006064415,
-0.17864683270454407,
-0.5586007833480835,
-0.6866910457611084,
-0.07618187367916107,
-0.08748363703489304,
0.10364934056997299,
-0.09778071194887161,
-0.057117629796266556,
-0.09617020189762115,
-0.0689975842833519,
0.07693282514810562,
-0.23981133103370667,
-0.21910719573497772,
-0.2407480925321579,
-0.31127190589904785,
0.16164395213127136,
-0.21004006266593933,
0.058540403842926025,
0.003647711593657732,
0.05390302091836929,
0.05612805485725403,
0.051027946174144745,
0.03608442842960358,
0.19601793587207794,
0.1249702125787735,
-0.018799472600221634,
-0.27107855677604675,
0.26452523469924927,
0.14768046140670776,
0.12950867414474487,
0.0423918180167675,
-0.33906134963035583,
-0.44375139474868774,
-0.4303649961948395,
-0.1474565714597702,
0.22990038990974426,
-0.37557756900787354,
0.3490491509437561,
-0.05572934076189995,
-0.2273753583431244,
-0.23841750621795654,
0.43887457251548767,
0.146150141954422,
-0.3155905306339264,
-0.24094615876674652,
0.11137852817773819,
-0.018596770241856575,
0.1104484349489212,
0.27721408009529114,
0.5209018588066101,
-0.031076984480023384,
0.2682862877845764,
-0.19458284974098206,
-0.2983019948005676,
0.5188693404197693,
-0.5274545550346375,
0.12734605371952057,
-0.14318203926086426,
0.24428492784500122,
0.2939405143260956,
-0.1605309695005417,
-0.5092294812202454,
-0.07871968299150467,
0.48584163188934326,
0.43636995553970337,
-0.21809904277324677,
0.4078378677368164,
-0.06995020806789398,
-0.04904327914118767,
0.0053986175917088985,
0.5054842233657837,
0.024407608434557915,
-0.24261197447776794,
0.2663947641849518,
-0.017051801085472107
] |
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.44773417711257935,
0.04323587939143181,
-0.029589729383587837,
0.42085689306259155,
0.525189220905304,
0.10357295721769333,
0.1647764891386032,
0.1940905749797821,
0.10968869179487228,
0.13626334071159363,
-0.10965170711278915,
0.33686983585357666,
-0.06277690082788467,
-0.16685926914215088,
0.14103373885154724,
-0.24637818336486816,
-0.027194539085030556,
0.192060649394989,
0.09220973402261734,
-0.003632917767390609,
-0.3685497045516968,
-0.13648134469985962,
-0.35587581992149353,
0.14569690823554993,
-0.16290587186813354,
0.22540239989757538,
0.19315554201602936,
0.009009473957121372,
-0.3982921838760376,
-0.7526153326034546,
0.3747633099555969,
-0.11199934035539627,
0.381602019071579,
0.3474770486354828,
-0.0001240612764377147,
-0.053221553564071655,
0.46949487924575806,
0.0690530464053154,
-0.03256486356258392,
-0.1555885523557663,
-0.047249551862478256,
-0.5924619436264038,
0.4746726453304291,
-0.2663750648498535,
0.11514297872781754,
-0.38191550970077515,
-0.08037110418081284,
0.010682308115065098,
0.000042926221794914454,
0.3255782127380371,
0.11467773467302322,
0.26206785440444946,
0.17252285778522491,
-0.04340331628918648,
0.2312048226594925,
-0.20004156231880188,
-0.02619117498397827,
0.7022865414619446,
0.39336007833480835,
-0.07418818026781082,
0.04539402574300766,
-0.13261742889881134,
-0.2683164179325104,
0.30546867847442627,
0.6438332200050354,
0.047105878591537476,
0.7276008129119873,
0.11253388971090317,
-0.0025624677073210478,
0.2077435851097107,
0.56052565574646,
-0.3992997407913208,
-0.18721511960029602,
-0.0055956607684493065,
0.11980515718460083,
-0.5990045070648193,
-0.005785769782960415,
0.15547727048397064,
-0.08632355183362961,
-0.029774261638522148,
-0.15595678985118866,
-0.2771826386451721,
-0.3049781620502472,
0.38273856043815613,
-0.42568710446357727,
0.19994117319583893,
-0.0028615209739655256,
0.1904505342245102,
0.04213043302297592,
0.1036914810538292,
0.3612973392009735,
0.12350650131702423,
-0.03431513160467148,
0.32064563035964966,
-0.19708320498466492,
0.33961525559425354,
-0.01339260395616293,
0.0045502870343625546,
0.1632939726114273,
0.01304588746279478,
-0.11882930248975754,
0.018344581127166748,
0.2028711587190628,
0.348545104265213,
0.161482572555542,
0.3077959716320038,
0.16724617779254913,
0.011029117740690708,
0.05597177892923355,
-0.004024684429168701,
0.08306568115949631,
-0.06706792116165161,
-0.21604125201702118,
-0.4661623239517212,
0.5968534350395203,
0.06680066883563995,
0.30124565958976746,
-0.11603628844022751,
-0.43413010239601135,
-0.11299917846918106,
-0.08659125119447708,
-0.09438841789960861,
0.04979875311255455,
0.251380980014801,
-0.19973823428153992,
0.0912390649318695,
0.06776775419712067,
0.36969688534736633,
-0.25013428926467896,
-0.1857689768075943,
-0.1952725201845169,
0.10661162436008453,
-0.26253581047058105,
0.00002943739491456654,
0.08918008953332901,
-0.05681711062788963,
0.05680780112743378,
0.003025653539225459,
0.09761942923069,
-0.11976396292448044,
-0.036867693066596985,
0.05558899790048599,
-0.3641156256198883,
0.294382244348526,
-0.020762046799063683,
0.06735402345657349,
0.15511325001716614,
-0.22522234916687012,
-0.24458011984825134,
0.4579230844974518,
-0.6061689853668213,
-0.20870283246040344,
-0.156814306974411,
0.13323669135570526,
-0.3736672103404999,
-0.10925478488206863,
-0.35283857583999634,
0.011628907173871994,
0.007776455953717232,
-0.4129946529865265,
-0.0713237002491951,
-0.3113194704055786,
-0.15206274390220642,
-0.3541126549243927,
0.20458218455314636,
-0.02271643467247486,
-0.5203087329864502,
-0.3517712354660034,
-0.012967356480658054,
-0.29463425278663635,
0.27513256669044495,
-0.05845444276928902,
-0.16627022624015808,
0.3013261556625366,
0.015981605276465416,
0.18519601225852966,
0.6382395625114441,
-0.4752627909183502,
-0.34434953331947327,
-0.19503316283226013,
-0.000990498112514615,
-0.26437968015670776,
-0.16008026897907257,
0.040909986943006516,
0.15011435747146606,
0.0641758069396019,
0.29806995391845703,
0.20621758699417114,
-0.0031769778579473495,
-0.15942955017089844,
-0.17330843210220337,
-0.28328263759613037,
0.43979164958000183,
0.34132111072540283,
0.3044852018356323,
-0.05912746861577034,
0.16991351544857025,
-0.17380160093307495,
0.101413793861866,
-0.07185342162847519,
-0.15426918864250183,
0.1848922073841095,
0.321755975484848,
-0.03572337329387665,
0.055046405643224716,
-0.44853201508522034,
-0.12589159607887268,
0.18921490013599396,
-0.31062623858451843,
-0.1679631769657135,
0.00424125324934721,
0.10948321223258972,
-0.43468984961509705,
0.2367289811372757,
-0.11085957288742065,
0.33394157886505127,
-0.027115197852253914,
-0.2589211165904999,
-0.2148227095603943,
0.18709157407283783,
-0.2771650552749634,
-0.19586816430091858,
-0.09498084336519241,
0.14484624564647675,
0.030931033194065094,
0.37829917669296265,
-0.07872900366783142,
-0.24149827659130096,
-0.05937357619404793,
0.25610917806625366,
0.30774885416030884,
0.02215425670146942,
-0.15376310050487518,
0.26036885380744934,
0.16005122661590576,
0.08089369535446167,
-0.2138434201478958,
0.3093136250972748,
0.1825263649225235,
-0.46853795647621155,
0.11979944258928299,
-0.06687424331903458,
0.04943022504448891,
-0.09012305736541748,
0.42145031690597534,
0.32791098952293396,
0.23515203595161438,
0.1385495960712433,
-0.21114681661128998,
0.06767972558736801,
-0.05960807576775551,
0.16015207767486572,
0.14241912961006165,
-0.08541826158761978,
0.26261240243911743,
0.04199478030204773,
0.13802945613861084,
-0.10820786654949188,
0.28671324253082275,
-0.3000456988811493,
0.289277583360672,
-0.16762781143188477,
0.31012651324272156,
0.05006922781467438,
-0.4673428535461426,
-0.049384210258722305,
-0.09229785948991776,
-0.4501456618309021,
0.38054102659225464,
0.1928175836801529,
-0.14069747924804688,
0.23330193758010864,
-0.04761649668216705,
-0.054888658225536346,
0.10004746168851852,
0.15504899621009827,
0.15391503274440765,
0.2955878973007202,
0.13725854456424713,
-0.052282653748989105,
-0.2871320843696594,
0.07655341923236847,
0.007502144668251276,
0.37624919414520264,
-0.4939354956150055,
0.0020110609475523233,
-0.23721088469028473,
0.32360371947288513,
0.10418350249528885,
-0.6289693713188171,
-0.22381484508514404,
-0.2210230678319931,
-0.008297099731862545,
0.07739334553480148,
0.2758725881576538,
0.2762281000614166,
0.07565094530582428,
0.026355965062975883,
0.10772204399108887,
-0.33967962861061096,
-0.045354146510362625,
-0.4383218586444855,
-0.23476508259773254,
-0.07685341686010361,
0.0777076706290245,
0.11925256997346878,
0.20987984538078308,
-0.3348413407802582,
0.27304506301879883,
-0.19019214808940887,
-0.2635513246059418,
-0.13094446063041687,
0.02199590764939785,
0.4793190360069275,
0.1622713953256607,
0.17294995486736298,
0.08530788868665695,
0.18293142318725586,
0.5639775991439819,
-0.3476024270057678,
-0.06824701279401779,
0.3482561409473419,
-0.44112837314605713,
-0.04496896266937256,
0.06623832136392593,
-0.056609656661748886,
-0.3273489773273468,
-0.24493007361888885,
-0.12567941844463348,
0.2227710485458374,
0.01776587776839733,
0.06135492026805878,
0.27822184562683105,
0.24756981432437897,
0.12726417183876038,
0.04823758825659752,
-0.2141442894935608,
-0.06036166846752167,
0.29594534635543823,
-0.10593912750482559,
-0.346495121717453,
0.23845063149929047,
0.06307443976402283,
0.15602870285511017,
0.12192462384700775,
-0.20765604078769684,
-0.5688388347625732,
0.06592269241809845,
0.4641948938369751,
-0.15306401252746582,
0.06020139530301094,
0.24517808854579926,
0.040585778653621674,
0.08111665397882462,
-0.13580380380153656,
-0.11963754892349243,
-0.18698786199092865,
0.050560999661684036,
0.20267406105995178,
-0.22582347691059113,
0.07873325794935226,
-0.329483300447464,
0.5184361338615417,
-0.09823070466518402,
-0.0923546701669693,
0.2856253683567047,
-0.23087601363658905,
0.2227146029472351,
0.04576485976576805,
-0.29347753524780273,
0.11641812324523926,
0.0845767930150032,
-0.09862181544303894,
0.13520880043506622,
-0.09327291697263718,
-0.12192399054765701,
-0.07201634347438812,
-0.16411390900611877,
-0.16997481882572174,
-0.08420348912477493,
-0.015313372947275639,
0.11534690856933594,
0.23118726909160614,
-0.0752972885966301,
0.09692054241895676,
-0.37518760561943054,
-0.16731850802898407,
0.10902751237154007,
0.1622144877910614,
-0.06802347302436829,
-0.015293839387595654,
0.0940636694431305,
-0.33955445885658264,
-0.18212050199508667,
0.3705577850341797,
0.14563369750976562,
0.09415740519762039,
-0.06664947420358658,
0.21819022297859192,
0.2654326558113098,
0.025083767250180244,
0.4870404899120331,
-0.10977794975042343,
0.08952964842319489,
0.18711790442466736,
0.2904040515422821,
-0.7096182107925415,
-0.11577234417200089,
-0.0955754891037941,
-0.18597599864006042,
-0.14858590066432953,
0.020271465182304382,
-0.2645122706890106,
-0.027764393016695976,
0.14522942900657654,
0.43434974551200867,
-0.2057579904794693,
-0.18396656215190887,
-0.37835192680358887,
-0.3793310821056366,
-0.12078308314085007,
-0.2427339255809784,
-0.13332420587539673,
0.5662708282470703,
0.2243226021528244,
0.09475672245025635,
-0.24993684887886047,
-0.0046905772760510445,
0.15375736355781555,
0.07574374973773956,
0.23250249028205872,
-0.32171016931533813,
-0.10237745940685272,
0.13287359476089478,
-0.21038895845413208,
0.43258053064346313,
0.3238072991371155,
0.1668313890695572,
-0.600729763507843,
-0.019283998757600784,
0.2132887989282608,
0.4657881557941437,
-0.06891486793756485,
-0.1712120622396469,
-0.00010799628944369033,
-0.24393312633037567,
0.06992114335298538,
-0.08594691753387451,
0.0014570049243047833,
0.43495818972587585,
0.150776669383049,
-0.24728989601135254,
-0.16912615299224854,
0.7192626595497131,
0.23620633780956268,
-0.006384497974067926,
0.244710773229599,
0.18610985577106476,
-0.15082566440105438,
0.03866521641612053,
0.2608058750629425,
0.8751795887947083,
-0.14850570261478424,
-0.03564457595348358,
0.6681913137435913,
0.06531462073326111,
-0.04343882575631142,
-0.2077663540840149,
-0.044197503477334976,
-0.34619539976119995,
-0.07067572325468063,
-0.1325065791606903,
-0.1745796501636505,
0.2734086513519287,
-0.1651381254196167,
-0.0012435908429324627,
0.16315539181232452,
-0.3736897110939026,
0.1283746212720871,
0.2024359107017517,
-0.176266148686409,
0.021101433783769608,
0.020324530079960823,
-0.1474984586238861,
0.0733400359749794,
-0.31769636273384094,
0.05135549232363701,
-0.20127324759960175,
0.07912333309650421,
0.02577287144958973,
0.04283105209469795,
-0.1739719659090042,
-0.15666551887989044,
-0.23340219259262085,
0.09200280904769897,
0.16689373552799225,
-0.315876305103302,
-0.018206756561994553,
0.31533002853393555,
0.12520983815193176,
-0.19869571924209595,
-0.29985976219177246,
0.33061683177948,
-0.3592633605003357,
-0.1649206131696701,
0.004582093097269535,
0.11175346374511719,
0.0692863017320633,
-0.13951009511947632,
-0.3670639097690582,
0.35937267541885376,
-0.013040518388152122,
-0.05930504947900772,
0.17107225954532623,
0.13153047859668732,
0.20788463950157166,
-0.2934136390686035,
-0.11841980367898941,
-0.373144268989563,
0.4853234887123108,
-0.14371845126152039,
0.07635132223367691,
0.20601412653923035,
-0.13669084012508392,
0.28701066970825195,
0.14144863188266754,
-0.2749726176261902,
0.04070807620882988,
0.21115748584270477,
0.07841941714286804,
-0.1541564166545868,
0.3545112907886505,
-0.010618374682962894,
-0.01455947756767273,
-0.11024235188961029,
0.05099796503782272,
0.19057118892669678,
-0.29551926255226135,
0.15420925617218018,
0.38622477650642395,
0.3326416015625,
-0.015964817255735397,
0.41686350107192993,
0.21381767094135284,
-0.24623751640319824,
-0.12409668415784836,
-0.5434439778327942,
-0.12335526198148727,
0.3222775161266327,
0.018334517255425453,
0.024311261251568794,
-0.09609799832105637,
0.149997279047966,
-0.045715052634477615,
-0.0219498872756958,
-0.20240700244903564,
0.2412581890821457,
0.023240890353918076,
0.07978611439466476,
-0.11437930166721344,
0.013966652564704418,
-0.003854884998872876,
-0.03837893530726433,
0.04835014417767525,
-0.23400084674358368,
-0.19786982238292694,
-0.1549496203660965,
-0.17656591534614563,
0.21694453060626984,
0.025969967246055603,
0.050172630697488785,
0.19632217288017273,
-0.12542788684368134,
-0.15402334928512573,
-0.09309511631727219,
-0.048230987042188644,
0.1811448186635971,
-0.175906240940094,
0.27026236057281494,
0.37433233857154846,
0.17919085919857025,
-0.2139277309179306,
0.17775623500347137,
0.02469763532280922,
0.46397748589515686,
-0.07396223396062851,
0.01566443406045437,
0.09108366817235947,
0.15063488483428955,
-0.04549720138311386,
0.08571090549230576,
0.3387264907360077,
-0.27331218123435974,
0.35747581720352173,
-0.3903365135192871,
0.312290757894516,
-0.11713522672653198,
0.18815593421459198,
0.2142787128686905,
-0.30701375007629395,
0.18321722745895386,
0.018660150468349457,
0.12433090806007385,
-0.3278881013393402,
-0.04179392755031586,
0.30548757314682007,
0.08743678778409958,
-0.10003538429737091,
0.10187678784132004,
0.1763717383146286,
0.010102085769176483,
0.04365717992186546,
-0.030397091060876846,
0.33715927600860596,
0.07319680601358414,
-0.01853795535862446,
0.4552452564239502,
0.03249906003475189,
0.07114406675100327,
0.5597202777862549,
0.28870534896850586,
0.10784134268760681,
0.44978421926498413,
-0.36651939153671265,
0.39618122577667236,
-0.11664406210184097,
0.10726206749677658,
-0.13343575596809387,
-0.3418036997318268,
-0.08030896633863449,
0.09990212321281433,
0.1469048261642456,
-0.29098740220069885,
-0.1095116138458252,
0.5688397884368896,
-0.12331169098615646,
-0.12631675601005554,
-0.23147740960121155,
0.2086850106716156,
-0.022388603538274765,
-0.003034108318388462,
-0.28001585602760315,
-0.039380352944135666,
0.0638284981250763,
-0.12715856730937958,
-0.01918927952647209,
-0.22867494821548462,
0.06519344449043274,
0.12370758503675461,
-0.15284381806850433,
-0.4439595639705658,
0.1534467339515686,
0.3328966498374939,
-0.06956760585308075,
0.0009243679814971983,
0.1420508474111557,
0.02213156968355179,
-0.043105654418468475,
0.11552015691995621,
0.3692895174026489,
0.44029855728149414,
0.2888290584087372,
-0.2557517886161804,
-0.16458453238010406,
-0.2727386951446533,
-0.19345912337303162,
0.02146005816757679,
0.20226596295833588,
0.2829780876636505,
0.12087193876504898,
0.057323530316352844,
0.14223943650722504,
-0.11750590801239014,
0.2880815267562866,
-0.05098570138216019,
0.07161097973585129,
-0.16487768292427063,
0.3716296851634979,
-0.13578706979751587,
-0.2858300507068634,
-0.3438403308391571,
-0.22971229255199432,
-0.19307571649551392,
0.18203376233577728,
0.4044193923473358,
0.21935440599918365,
-0.046958643943071365,
-0.023801108822226524,
-0.009036536328494549,
-0.10814156383275986,
0.32850226759910583,
0.33462202548980713,
0.45299214124679565,
-0.3661455810070038,
-0.002170094521716237,
-0.7485202550888062,
0.33436092734336853,
-0.15070904791355133,
0.0019648850429803133,
0.4247775077819824,
-0.02975543402135372,
-0.25880059599876404,
0.30205827951431274,
0.2716747224330902,
0.4656417667865753,
0.2638261616230011,
-0.01607620157301426,
-0.4723946452140808,
-0.22783009707927704,
0.07900333404541016,
-0.0950915515422821,
-0.22664786875247955,
-0.24805274605751038,
0.15624243021011353,
-0.643368661403656,
-0.06597994267940521,
-0.11069538444280624,
0.016983672976493835,
0.053106196224689484,
0.37802770733833313,
0.6841909885406494,
-0.04897034913301468,
0.8348817229270935,
0.176009401679039,
0.33360031247138977,
-0.08119773119688034,
-0.29640892148017883,
-0.1233663484454155,
0.143904447555542,
-0.1888483613729477,
0.01803821697831154,
-0.20531196892261505,
-0.03964043781161308,
-0.15677477419376373,
0.4555688500404358,
-0.09517154097557068,
-0.28281375765800476,
-0.24446988105773926,
0.1347702294588089,
-0.09881412237882614,
0.1209568977355957,
-0.08767322450876236,
-0.1292891949415207,
0.11707034707069397,
0.338466078042984,
-0.1873062252998352,
-0.273649126291275,
0.5236208438873291,
-0.273926317691803,
-0.3627234399318695,
0.16662803292274475,
0.17331291735172272,
0.10412289947271347,
-0.16060104966163635,
-0.5872603058815002,
0.08500278741121292,
0.5146580934524536,
0.0195272546261549,
-0.2608084976673126,
0.27999797463417053,
-0.17409220337867737,
0.0932866707444191,
-0.04097796976566315,
0.3139176666736603,
-0.13617157936096191,
-0.020124394446611404,
-0.20533189177513123,
-0.17220455408096313
] |
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.43468716740608215,
-0.3452419638633728,
-0.08128155022859573,
0.12175575643777847,
0.2600175142288208,
-0.07976876199245453,
0.4260965883731842,
0.4618624150753021,
0.13298125565052032,
0.26882752776145935,
0.09468238055706024,
0.2613140344619751,
-0.0670851618051529,
0.5240862369537354,
0.06833247095346451,
0.25987741351127625,
-0.11342568695545197,
0.08087006211280823,
-0.14469486474990845,
-0.22198663651943207,
-0.21169240772724152,
0.027046069502830505,
-0.21685586869716644,
-0.12449551373720169,
-0.3129109740257263,
0.009797071106731892,
-0.04585840925574303,
-0.04119071364402771,
0.048802316188812256,
-0.379342645406723,
0.20509618520736694,
0.0018788485322147608,
-0.47769519686698914,
0.2508028745651245,
-0.00012658922059927136,
-0.08892367780208588,
0.19938687980175018,
-0.16747619211673737,
-0.44548434019088745,
-0.1441679149866104,
-0.6783220171928406,
0.014127892442047596,
0.1704033762216568,
-0.24822305142879486,
-0.3704460561275482,
0.33240625262260437,
0.004520803224295378,
-0.3541147708892822,
0.37150588631629944,
0.4303569793701172,
0.07109426707029343,
0.3091678023338318,
-0.33344200253486633,
-0.11235912889242172,
-0.017727641388773918,
0.07834300398826599,
-0.22808991372585297,
0.0803656205534935,
0.21976283192634583,
-0.12707673013210297,
0.05331994220614433,
0.33027082681655884,
0.15313392877578735,
0.1341962069272995,
-0.04234891012310982,
0.11158504337072372,
0.14512324333190918,
-0.5243434906005859,
0.2711945176124573,
0.48910316824913025,
0.13552477955818176,
-0.025997987017035484,
-0.4715605080127716,
-0.370286226272583,
-0.0004939347272738814,
-0.20809581875801086,
0.28732943534851074,
0.36262837052345276,
-0.27312764525413513,
-0.0013895409647375345,
-0.3779551088809967,
0.08809346705675125,
-0.1987207680940628,
-0.03189251199364662,
-0.6022469997406006,
0.282842755317688,
-0.04195224121212959,
0.05630772188305855,
-0.2972770035266876,
0.058599088340997696,
-0.12149523198604584,
-0.2579810917377472,
0.05531284213066101,
0.21685373783111572,
-0.543572723865509,
-0.08048539608716965,
0.24165722727775574,
-0.10616183280944824,
0.02116820029914379,
-0.15630954504013062,
0.0860012024641037,
0.03188007324934006,
-0.24773351848125458,
0.13397270441055298,
0.4812694489955902,
0.41122767329216003,
0.4215259552001953,
0.11924126744270325,
0.11235416680574417,
0.05621634051203728,
-0.15399540960788727,
0.07447188347578049,
0.034817736595869064,
0.14645038545131683,
-0.19807074964046478,
0.06759455800056458,
0.3355777859687805,
-0.41466471552848816,
-0.5860324501991272,
0.1421545147895813,
-0.33261534571647644,
0.08644472062587738,
-0.10672219842672348,
0.3205637037754059,
-0.28581011295318604,
0.25361359119415283,
-0.13364432752132416,
0.42430007457733154,
-0.27771592140197754,
0.07955867797136307,
-0.15099801123142242,
-0.0046976120211184025,
-0.2762502431869507,
0.19312262535095215,
0.22470466792583466,
0.03464166447520256,
0.12162093818187714,
0.10963582247495651,
0.027416320517659187,
-0.0919775441288948,
0.15318424999713898,
-0.23393569886684418,
0.4344159662723541,
0.18807236850261688,
0.1408803015947342,
0.11890477687120438,
0.2922722101211548,
-0.14103949069976807,
0.03182525560259819,
0.46308642625808716,
-0.03873448073863983,
-0.15310512483119965,
0.21965071558952332,
0.11768712103366852,
-0.5361980199813843,
0.061228130012750626,
-0.0697552040219307,
0.3681989014148712,
0.2204560488462448,
0.05228852480649948,
0.06394835561513901,
-0.17597414553165436,
-0.09188254177570343,
-0.15264445543289185,
0.29485493898391724,
0.15813188254833221,
-0.4779413342475891,
-0.10723172873258591,
0.21625815331935883,
0.09872931241989136,
-0.17956723272800446,
0.08343956619501114,
-0.00596249895170331,
0.390863299369812,
-0.23752285540103912,
0.05959278717637062,
0.14955396950244904,
-0.5808666944503784,
-0.04919937625527382,
-0.25242823362350464,
0.010969510301947594,
0.3100384473800659,
-0.018224414438009262,
-0.10820254683494568,
0.1928693652153015,
0.17972427606582642,
0.03807653486728668,
0.03077099658548832,
-0.03853170573711395,
-0.12820659577846527,
-0.2770301401615143,
-0.004810548387467861,
0.206539586186409,
0.12269619852304459,
0.24050623178482056,
-0.015521745197474957,
-0.14094527065753937,
0.0033427400048822165,
0.18041881918907166,
0.01504298485815525,
0.13496361672878265,
0.04773686081171036,
0.4159701466560364,
-0.03340401500463486,
-0.08101251721382141,
0.14351101219654083,
-0.2264651358127594,
0.27954018115997314,
-0.0904851108789444,
0.4886127710342407,
-0.05794188752770424,
-0.2643125653266907,
-0.2712048590183258,
-0.10030527412891388,
-0.5140525102615356,
-0.6296907067298889,
0.06578478962182999,
0.04233541712164879,
0.023456398397684097,
0.09346325695514679,
-0.17820143699645996,
0.05062144994735718,
0.03793344646692276,
-0.16568772494792938,
-0.3817005455493927,
0.2512592673301697,
0.059645023196935654,
0.007680070586502552,
-0.3221113085746765,
0.5083580613136292,
-0.05733039975166321,
0.07280746847391129,
0.1012720838189125,
-0.09024875611066818,
0.08239732682704926,
-0.061713047325611115,
0.10811731964349747,
0.33627644181251526,
0.3323970139026642,
-0.12987598776817322,
-0.28182458877563477,
0.3482183814048767,
0.09352005273103714,
-0.24798570573329926,
-0.5444380044937134,
0.5965663194656372,
0.007143042515963316,
0.41997063159942627,
0.051637910306453705,
0.022285792976617813,
-0.06768923252820969,
-0.27668654918670654,
-0.21883217990398407,
-0.14782914519309998,
-0.04634996876120567,
-0.22629715502262115,
0.18643485009670258,
0.10024626553058624,
-0.2956451177597046,
0.20279856026172638,
0.41888898611068726,
0.021040746942162514,
0.2085369974374771,
-0.3053346574306488,
0.01804630644619465,
-0.030768483877182007,
0.18428967893123627,
0.02315237559378147,
0.4413944482803345,
0.08458049595355988,
0.23868249356746674,
0.072695292532444,
0.16043709218502045,
-0.24353548884391785,
0.15271364152431488,
-0.02302795648574829,
0.172978937625885,
0.3898734152317047,
0.35590898990631104,
-0.16465556621551514,
-0.09035192430019379,
0.33590537309646606,
0.07503603398799896,
0.13854734599590302,
-0.32680654525756836,
-0.16663718223571777,
-0.1502794474363327,
-0.0419880636036396,
-0.17520146071910858,
0.05233434587717056,
0.02484137937426567,
-0.41008302569389343,
0.3285831809043884,
-0.031088287010788918,
-0.26225507259368896,
0.2447647601366043,
-0.028353653848171234,
0.18851302564144135,
-0.05952434986829758,
-0.36729827523231506,
-0.012903775088489056,
-0.5210820436477661,
-0.2430391013622284,
0.13837817311286926,
-0.16499459743499756,
-0.19139918684959412,
0.13990360498428345,
-0.11326533555984497,
-0.5428168177604675,
-0.2194758951663971,
-0.4293462038040161,
0.14604835212230682,
-0.2055824100971222,
0.3748725950717926,
0.07411214709281921,
0.47478973865509033,
-0.35477307438850403,
-0.03228823095560074,
0.5146632194519043,
0.021866217255592346,
-0.3692891299724579,
0.012095010839402676,
0.15776324272155762,
0.09290369600057602,
-0.13277387619018555,
-0.7486938834190369,
-0.10534363240003586,
-0.29376402497291565,
0.2660325765609741,
-0.08606065809726715,
0.19858862459659576,
0.3975974917411804,
-0.11532288044691086,
-0.03997623547911644,
-0.1941642165184021,
-0.19326111674308777,
-0.19470536708831787,
0.048653338104486465,
0.1662123054265976,
-0.13805001974105835,
-0.38289469480514526,
0.08767823129892349,
-0.2003527730703354,
0.556600034236908,
-0.004373140167444944,
-0.4171016216278076,
-0.4424285292625427,
0.00466354563832283,
0.509113073348999,
0.21165290474891663,
-0.11507708579301834,
0.20269526541233063,
0.02641274593770504,
-0.04594416916370392,
-0.15556778013706207,
0.01315627247095108,
0.5017894506454468,
0.3555319905281067,
0.1079331636428833,
0.0652407556772232,
0.02480001375079155,
0.3510315418243408,
0.641598105430603,
0.3786250054836273,
0.3638947904109955,
0.12898452579975128,
-0.2493525743484497,
0.30668821930885315,
-0.31295132637023926,
-0.3488161563873291,
0.30505573749542236,
0.13179048895835876,
-0.08711351454257965,
0.30419862270355225,
0.023939911276102066,
0.4075453281402588,
-0.20449700951576233,
0.2693416476249695,
-0.5056164860725403,
-0.3185824751853943,
0.04996904730796814,
-0.3135156035423279,
0.191449835896492,
0.12797820568084717,
0.21958424150943756,
0.13103149831295013,
-0.12259571999311447,
0.05166745185852051,
-0.08255162835121155,
0.14238965511322021,
-0.04204817861318588,
-0.45060020685195923,
-0.2251456081867218,
-0.18298035860061646,
0.13232696056365967,
0.015558185987174511,
0.10165520757436752,
-0.16081193089485168,
-0.25906902551651,
0.22627659142017365,
0.11181749403476715,
0.866364061832428,
-0.002316172467544675,
-0.027139266952872276,
-0.024918565526604652,
-0.13050399720668793,
-0.36164599657058716,
-0.09367968142032623,
-0.3786870837211609,
-0.10360004752874374,
0.07403042167425156,
0.293702632188797,
-0.27112823724746704,
-0.11672672629356384,
-0.07295607030391693,
0.02010936662554741,
-0.16357912123203278,
-0.027010181918740273,
-0.34078237414360046,
-0.22464735805988312,
-0.012965438887476921,
0.16195671260356903,
0.07004231214523315,
0.49287325143814087,
-0.3183722496032715,
-0.19655448198318481,
-0.059421177953481674,
0.0894157811999321,
0.2854488790035248,
0.3582049310207367,
0.2959151864051819,
-0.005901586264371872,
0.13242237269878387,
-0.014963374473154545,
-0.14604265987873077,
-0.14466331899166107,
0.48545587062835693,
-0.0010809634113684297,
0.036275483667850494,
0.1864040046930313,
-0.2770249843597412,
0.39753928780555725,
0.4037611484527588,
0.13266803324222565,
0.1354076862335205,
-0.25063201785087585,
-0.015214276500046253,
-0.1475256234407425,
0.11114497482776642,
0.07270385324954987,
-0.061852965503931046,
0.07889794558286667,
-0.41282936930656433,
0.22292053699493408,
-0.0405779629945755,
-0.1696251779794693,
0.2048559933900833,
0.07686913758516312,
-0.20174090564250946,
-0.03513170778751373,
0.09746161103248596,
0.8919276595115662,
-0.06621168553829193,
0.4134541451931,
0.6620019674301147,
0.23340722918510437,
0.3648492991924286,
-0.006940470542758703,
0.28217920660972595,
-0.37361857295036316,
-0.11210339516401291,
0.02003752999007702,
-0.13168865442276,
-0.026899786666035652,
0.29288679361343384,
-0.14613346755504608,
0.6321946382522583,
-0.005627813749015331,
0.5025166869163513,
-0.00484345480799675,
-0.30107179284095764,
-0.013427315279841423,
0.20095501840114594,
-0.5890650153160095,
0.02646143175661564,
0.005003832746297121,
0.42187732458114624,
-0.14187411963939667,
-0.08853892236948013,
-0.36596065759658813,
-0.05047553777694702,
-0.013229979202151299,
0.27547770738601685,
-0.4245264232158661,
-0.04546552896499634,
0.37580451369285583,
-0.3739205002784729,
-0.23522311449050903,
0.5581880807876587,
0.009952675551176071,
0.18034562468528748,
-0.17301984131336212,
0.20480605959892273,
0.08450010418891907,
0.3016398847103119,
0.2449372410774231,
0.2526380121707916,
0.20853596925735474,
-0.15697497129440308,
-0.38189196586608887,
0.2623746693134308,
-0.24108989536762238,
0.24312123656272888,
-0.2989962697029114,
0.4151664972305298,
0.22723709046840668,
-0.1952880620956421,
-0.4141254425048828,
-0.006097937934100628,
0.21157264709472656,
-0.15608946979045868,
0.06611667573451996,
-0.12613236904144287,
-0.2398516833782196,
0.25142914056777954,
0.01969764195382595,
-0.2873940169811249,
0.1271052062511444,
0.273132860660553,
0.1748233288526535,
0.052553799003362656,
0.7209169268608093,
-0.04289460554718971,
0.00045699800830334425,
-0.2384640872478485,
0.08221809566020966,
0.16357466578483582,
-0.09442123025655746,
0.2792903780937195,
0.17269578576087952,
-0.13657301664352417,
-0.005263486877083778,
0.5161394476890564,
0.07682232558727264,
0.0829375833272934,
-0.056074898689985275,
-0.3959750831127167,
0.05809682607650757,
0.2901725172996521,
-0.04141533747315407,
0.18766412138938904,
-0.14686520397663116,
0.0004634069628082216,
0.2005598545074463,
-0.18003281950950623,
-0.2512340843677521,
-0.27294766902923584,
-0.4118518531322479,
0.4171563386917114,
0.03752496466040611,
0.04285098984837532,
0.2883034646511078,
-0.10833975672721863,
0.08450794219970703,
-0.3131256699562073,
-0.34299731254577637,
-0.215880885720253,
0.034330952912569046,
0.19535622000694275,
0.24345692992210388,
0.15205450356006622,
0.031890757381916046,
0.026794370263814926,
-0.0017876659985631704,
-0.21902872622013092,
0.3636837601661682,
0.21216459572315216,
-0.010455477051436901,
0.27980348467826843,
-0.06378349661827087,
0.32930949330329895,
-0.2127484232187271,
0.003548320382833481,
0.03963617980480194,
-0.13529759645462036,
0.20893239974975586,
-0.1167585700750351,
0.04926200211048126,
-0.030023202300071716,
0.16651353240013123,
0.1337016522884369,
-0.04541616886854172,
-0.06792055070400238,
-0.02980745956301689,
-0.23521727323532104,
0.01248854584991932,
-0.05123197287321091,
0.16617907583713531,
0.2602640688419342,
-0.20535235106945038,
0.21541237831115723,
-0.05710510164499283,
0.17717696726322174,
-0.29699504375457764,
0.365395188331604,
-0.002192199230194092,
0.11827830970287323,
0.13469462096691132,
0.27471405267715454,
0.1755046546459198,
-0.4053773581981659,
0.35373368859291077,
0.19535455107688904,
-0.18741759657859802,
-0.5741313695907593,
0.2870948314666748,
0.4074603319168091,
-0.10711407661437988,
0.04906053468585014,
0.04041900485754013,
-0.3518247604370117,
-0.3844272494316101,
0.036948543041944504,
-0.008321240544319153,
0.3608299195766449,
0.049773890525102615,
-0.16578902304172516,
0.20719574391841888,
0.08413863927125931,
-0.06629807502031326,
0.021983981132507324,
-0.28792479634284973,
-0.060148853808641434,
0.12514431774616241,
0.2944069802761078,
-0.19056923687458038,
-0.24901340901851654,
0.10384759306907654,
-0.19337043166160583,
-0.14301224052906036,
-0.07697625458240509,
-0.11412012577056885,
-0.216665118932724,
-0.03409511223435402,
-0.14445307850837708,
0.06585382670164108,
-0.3297699987888336,
0.4357939064502716,
-0.028285657986998558,
0.018501179292798042,
-0.3719083368778229,
0.009090200066566467,
0.4641457200050354,
0.3565843105316162,
0.11191213876008987,
0.5008336901664734,
0.21571752429008484,
0.13414044678211212,
0.20784036815166473,
0.6149325966835022,
0.2586733400821686,
0.3419247269630432,
-0.3233906030654907,
0.1192590594291687,
-0.03369584679603577,
-0.2811512351036072,
0.029010778293013573,
0.2035483866930008,
0.16087056696414948,
-0.07421193271875381,
0.3146440386772156,
0.08175546675920486,
-0.046607159078121185,
0.20618382096290588,
0.14159677922725677,
-0.10395756363868713,
-0.20966748893260956,
0.34895575046539307,
0.07704757153987885,
-0.14076289534568787,
0.10816749185323715,
-0.07658199965953827,
-0.5496800541877747,
-0.12222099304199219,
0.06634660810232162,
0.26089873909950256,
0.20805756747722626,
-0.013395559042692184,
0.04822564125061035,
-0.08407461643218994,
0.1265188753604889,
0.13579030334949493,
0.2407103180885315,
-0.3984416425228119,
0.21946057677268982,
-0.5065746307373047,
0.27751868963241577,
0.10636552423238754,
-0.15800820291042328,
-0.2228921353816986,
0.12812307476997375,
-0.012584338895976543,
0.08071070164442062,
-0.16491641104221344,
-0.2625879645347595,
0.31323114037513733,
-0.027287587523460388,
-0.6367027163505554,
-0.032688844949007034,
0.23906978964805603,
-0.07832945883274078,
-0.08635915070772171,
-0.27879294753074646,
0.006923572160303593,
-0.02963675744831562,
-0.11672446131706238,
0.2831624746322632,
0.062232811003923416,
0.06596563011407852,
0.10938744246959686,
0.03912101313471794,
0.22662746906280518,
0.5997712016105652,
0.035095494240522385,
0.11226945370435715,
-0.07817085087299347,
-0.08435779809951782,
-0.07852169126272202,
0.10045136511325836,
0.07328756153583527,
0.28869757056236267,
0.2508954703807831,
-0.22737357020378113,
0.0480622835457325,
0.22199389338493347,
0.22414439916610718,
-0.04245787113904953,
0.06555160135030746,
0.09789794683456421,
0.12459146231412888,
-0.03459683805704117,
0.03199049457907677,
0.08055523782968521,
-0.06927242130041122,
0.016646049916744232,
-0.2565059959888458,
-0.42558950185775757,
0.36372822523117065,
-0.5796003341674805,
-0.3352661728858948,
-0.21342884004116058,
0.18661947548389435,
0.03428308293223381,
-0.22416862845420837,
-0.9314985275268555,
-0.19212865829467773,
0.3569228947162628,
-0.2097530961036682,
-0.04263278469443321,
0.14563217759132385,
-0.2674564719200134,
-0.10380125045776367,
-0.15685826539993286,
0.12176794558763504,
0.030860660597682,
-0.0544656477868557,
-0.1367148458957672,
-0.422246515750885
] |
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.46811845898628235,
-0.4883507490158081,
-0.11691759526729584,
0.06333289295434952,
0.3016146719455719,
-0.06188217177987099,
0.5027801394462585,
0.44172969460487366,
0.14432986080646515,
0.2951973080635071,
0.15050816535949707,
0.24783030152320862,
-0.10581659525632858,
0.42044398188591003,
0.034329745918512344,
0.2040225863456726,
-0.01822826825082302,
0.13410493731498718,
-0.22425033152103424,
-0.24635758996009827,
-0.24946071207523346,
-0.0017768173711374402,
-0.23100174963474274,
-0.13405127823352814,
-0.3148830831050873,
0.019281648099422455,
-0.018374240025877953,
-0.04412957653403282,
-0.0066698649898171425,
-0.28201544284820557,
0.2964687645435333,
0.04168308526277542,
-0.5087099075317383,
0.27961549162864685,
-0.0001253977243322879,
0.01766047440469265,
0.16554339230060577,
-0.16275887191295624,
-0.3021453619003296,
-0.26909786462783813,
-0.5443488955497742,
0.00345944263972342,
0.20093819499015808,
-0.24575106799602509,
-0.35363760590553284,
0.2595881223678589,
-0.0016621416434645653,
-0.2429095357656479,
0.3208560645580292,
0.4414466321468353,
0.08853328227996826,
0.34025242924690247,
-0.2983182668685913,
-0.09769145399332047,
0.1007719561457634,
0.17366452515125275,
-0.2127649486064911,
0.1006113737821579,
0.3349821865558624,
-0.1839224100112915,
0.06615506112575531,
0.431254118680954,
0.11574897170066833,
0.0765569731593132,
-0.00952120590955019,
0.085053451359272,
0.19284754991531372,
-0.5020104050636292,
0.2259555459022522,
0.4908396005630493,
0.11945503205060959,
0.011705566197633743,
-0.46166330575942993,
-0.3616985082626343,
-0.06771188229322433,
-0.1615847796201706,
0.2391582578420639,
0.2563345730304718,
-0.32262834906578064,
0.0545235238969326,
-0.3806759715080261,
0.009127982892096043,
-0.18067605793476105,
-0.01569179818034172,
-0.5306876301765442,
0.3866962790489197,
-0.06290001422166824,
0.06665070354938507,
-0.23400580883026123,
0.0058013517409563065,
-0.09444853663444519,
-0.2278279960155487,
0.10659947246313095,
0.19179941713809967,
-0.487714558839798,
-0.07866000384092331,
0.24689115583896637,
-0.17499472200870514,
0.017060423269867897,
-0.1575658917427063,
0.14094172418117523,
-0.01013909000903368,
-0.2379293441772461,
0.1809386909008026,
0.4561159610748291,
0.3717731833457947,
0.3836919367313385,
0.1170966848731041,
0.1253916472196579,
0.024882514029741287,
-0.1779976189136505,
0.06830111891031265,
-0.013252788223326206,
0.10494522750377655,
-0.17308054864406586,
0.044473934918642044,
0.3815126419067383,
-0.37599584460258484,
-0.5460975170135498,
0.10283436626195908,
-0.33438998460769653,
0.08620211482048035,
-0.1280478984117508,
0.41362860798835754,
-0.2671586573123932,
0.3237059414386749,
-0.17537377774715424,
0.48480838537216187,
-0.24236878752708435,
0.1622781902551651,
-0.1694837510585785,
0.008382308296859264,
-0.2954889237880707,
0.033829934895038605,
0.1820193976163864,
0.034572239965200424,
0.16778747737407684,
0.07919004559516907,
-0.06823617964982986,
-0.08435740321874619,
0.1491899937391281,
-0.29161643981933594,
0.5289233922958374,
0.2174316793680191,
0.10865884274244308,
0.13719889521598816,
0.3113139867782593,
-0.13873650133609772,
-0.030690165236592293,
0.45698994398117065,
-0.1073431745171547,
-0.08853912353515625,
0.16214735805988312,
0.13513916730880737,
-0.4702076315879822,
0.00008303906361106783,
0.017349770292639732,
0.3994843363761902,
0.2739621102809906,
0.06244456768035889,
0.127500519156456,
-0.14876268804073334,
-0.035249631851911545,
-0.18992643058300018,
0.20556671917438507,
0.15859268605709076,
-0.3715779781341553,
-0.17337778210639954,
0.319216251373291,
0.047940582036972046,
-0.12888136506080627,
0.09269151091575623,
-0.043299753218889236,
0.4183747172355652,
-0.24190960824489594,
0.05455164983868599,
0.1526184380054474,
-0.6342750191688538,
-0.01669127307832241,
-0.20276640355587006,
-0.008007942698895931,
0.39607611298561096,
0.01610436849296093,
-0.1464107632637024,
0.19109296798706055,
0.20444221794605255,
0.24363300204277039,
-0.049249183386564255,
-0.016389459371566772,
-0.10141259431838989,
-0.28392520546913147,
-0.02789166383445263,
0.28032973408699036,
0.03848618268966675,
0.26532214879989624,
-0.03815196827054024,
-0.14285162091255188,
-0.06137014552950859,
0.23564563691616058,
-0.04080791026353836,
0.08998706191778183,
0.1494654268026352,
0.4336168169975281,
-0.005379520822316408,
-0.0390726663172245,
0.019861368462443352,
-0.27333712577819824,
0.16538619995117188,
-0.014529488049447536,
0.43955084681510925,
-0.014358733780682087,
-0.2540390193462372,
-0.23234526813030243,
-0.10236818343400955,
-0.4545460641384125,
-0.5898591876029968,
0.07489737123250961,
0.014747546054422855,
-0.03679286688566208,
0.08721157163381577,
-0.1551978439092636,
0.020757846534252167,
0.04458984360098839,
-0.12497761100530624,
-0.34143003821372986,
0.3159351944923401,
0.058935441076755524,
0.02889019437134266,
-0.35742706060409546,
0.39233025908470154,
-0.07111634314060211,
0.08700880408287048,
0.11090969294309616,
-0.09629569202661514,
0.12158112972974777,
-0.03672249987721443,
0.017123740166425705,
0.3487403392791748,
0.31604453921318054,
-0.15717542171478271,
-0.3339691758155823,
0.2780616879463196,
0.12887291610240936,
-0.23919159173965454,
-0.5651098489761353,
0.5706453919410706,
-0.015483698807656765,
0.4227930009365082,
0.11109132319688797,
0.015853766351938248,
0.015812914818525314,
-0.3055432140827179,
-0.2595433294773102,
-0.15488064289093018,
0.01805780455470085,
-0.29673367738723755,
0.17318181693553925,
0.13530416786670685,
-0.3907078206539154,
0.11228828877210617,
0.4177011549472809,
0.04910542443394661,
0.22027230262756348,
-0.29793280363082886,
-0.017531465739011765,
-0.039643120020627975,
0.15668289363384247,
-0.03675214946269989,
0.42761293053627014,
0.16945885121822357,
0.22563551366329193,
0.012788856402039528,
0.20909225940704346,
-0.2430090308189392,
0.1855034977197647,
-0.040271442383527756,
0.21828219294548035,
0.4549241364002228,
0.35470908880233765,
-0.12468646466732025,
-0.19346222281455994,
0.2973789572715759,
0.07030504941940308,
0.13839322328567505,
-0.32605287432670593,
-0.2424040138721466,
-0.12734495103359222,
0.018237093463540077,
-0.13018526136875153,
0.031325239688158035,
0.09626550227403641,
-0.399100124835968,
0.3158453106880188,
0.0024843940045684576,
-0.33202430605888367,
0.2252083420753479,
-0.10300237685441971,
0.1633106917142868,
-0.038834456354379654,
-0.36800435185432434,
-0.04821285977959633,
-0.4899754226207733,
-0.21694225072860718,
0.1613851636648178,
-0.19522809982299805,
-0.13685207068920135,
0.14127162098884583,
-0.12729182839393616,
-0.5312891602516174,
-0.15441757440567017,
-0.542830765247345,
0.1698826253414154,
-0.22211794555187225,
0.3141136169433594,
0.1305209845304489,
0.46950533986091614,
-0.3395378887653351,
-0.046144597232341766,
0.47250449657440186,
0.0025181712117046118,
-0.4022100567817688,
0.016170786693692207,
0.16014496982097626,
0.07886742800474167,
-0.1604308933019638,
-0.7739167213439941,
-0.06428113579750061,
-0.33722734451293945,
0.28671643137931824,
-0.1638682335615158,
0.18090307712554932,
0.448207288980484,
-0.0710509791970253,
-0.05878821760416031,
-0.212879940867424,
-0.19254222512245178,
-0.16310879588127136,
0.0021031610667705536,
0.14188247919082642,
-0.07210060209035873,
-0.3668022155761719,
0.0077786631882190704,
-0.22055906057357788,
0.3654291331768036,
0.09324973821640015,
-0.40091365575790405,
-0.410728394985199,
-0.03155980259180069,
0.4304032325744629,
0.2287757843732834,
-0.09753543883562088,
0.26795876026153564,
-0.0008601283188909292,
-0.07744418829679489,
-0.24505265057086945,
0.0018967320211231709,
0.5727341771125793,
0.33483049273490906,
0.046968381851911545,
0.1178133487701416,
-0.02716963365674019,
0.3268134295940399,
0.5415537357330322,
0.3504083752632141,
0.3235524892807007,
0.18224526941776276,
-0.24086767435073853,
0.3834412395954132,
-0.2624068856239319,
-0.39723920822143555,
0.20475158095359802,
0.1588827669620514,
-0.12851819396018982,
0.2511802017688751,
0.015895158052444458,
0.3036918044090271,
-0.2424139678478241,
0.15691451728343964,
-0.5188209414482117,
-0.276714026927948,
0.13166408240795135,
-0.36027753353118896,
0.10447815805673599,
0.1489861011505127,
0.14821010828018188,
0.09649761021137238,
-0.05588342249393463,
0.06004340946674347,
0.016181057319045067,
0.20400625467300415,
-0.07650583982467651,
-0.5741508603096008,
-0.23221762478351593,
-0.24830305576324463,
0.10440250486135483,
0.04972515255212784,
0.09342891722917557,
-0.13964131474494934,
-0.25723540782928467,
0.22309204936027527,
0.07435721904039383,
0.9841890931129456,
-0.11245482414960861,
-0.022398289293050766,
-0.016353176906704903,
-0.13717928528785706,
-0.3577502369880676,
-0.057590287178754807,
-0.45217397809028625,
-0.06354925781488419,
0.19537462294101715,
0.48294880986213684,
-0.2719298303127289,
-0.18404054641723633,
-0.061023205518722534,
-0.0780673399567604,
-0.13773250579833984,
-0.05517502874135971,
-0.2825160622596741,
-0.2471381425857544,
0.024351565167307854,
0.1792372614145279,
0.19690562784671783,
0.42910006642341614,
-0.26047852635383606,
-0.32330507040023804,
-0.1244603767991066,
0.12806850671768188,
0.3246282935142517,
0.3263874351978302,
0.2666051983833313,
-0.06627091020345688,
0.08422597497701645,
-0.08256874978542328,
-0.07211171090602875,
0.02577894926071167,
0.5085002183914185,
-0.14032043516635895,
-0.02390463650226593,
0.20634907484054565,
-0.2590039372444153,
0.4047757685184479,
0.3651061952114105,
0.14478738605976105,
0.13557255268096924,
-0.20590972900390625,
-0.018225228413939476,
-0.1303577572107315,
0.078212670981884,
0.11643324792385101,
0.025485916063189507,
-0.0361097976565361,
-0.3983123004436493,
0.1516759842634201,
-0.0035753464326262474,
-0.18815678358078003,
0.23310387134552002,
0.06840191781520844,
-0.2754635214805603,
0.08543907850980759,
0.06740165501832962,
0.9151231646537781,
-0.05837522819638252,
0.3912842273712158,
0.6253467798233032,
0.1934918314218521,
0.39752906560897827,
-0.07127983123064041,
0.2521812319755554,
-0.292440265417099,
-0.19377633929252625,
0.018514882773160934,
-0.1295037567615509,
-0.009107869118452072,
0.34280166029930115,
-0.21547766029834747,
0.5422405004501343,
0.013914178125560284,
0.5060144662857056,
-0.03693990781903267,
-0.3477807343006134,
-0.03694872558116913,
0.24544432759284973,
-0.6066040992736816,
0.01994653232395649,
0.0903163030743599,
0.4494951367378235,
-0.15453416109085083,
-0.10682137310504913,
-0.38582953810691833,
-0.15607950091362,
-0.022812452167272568,
0.2315668910741806,
-0.4061104655265808,
-0.010960696265101433,
0.36040666699409485,
-0.23470425605773926,
-0.2855457365512848,
0.457882821559906,
-0.04367918148636818,
0.20066457986831665,
-0.20601771771907806,
0.18751876056194305,
0.09581877291202545,
0.32023316621780396,
0.2116154432296753,
0.22977834939956665,
0.3145463466644287,
-0.13250160217285156,
-0.4006202518939972,
0.18190732598304749,
-0.2952147126197815,
0.19371360540390015,
-0.21609742939472198,
0.3912731111049652,
0.11765189468860626,
-0.2437204122543335,
-0.48993685841560364,
0.04950432851910591,
0.22286878526210785,
-0.20343102514743805,
0.06225992739200592,
-0.16201762855052948,
-0.20528393983840942,
0.29879066348075867,
0.061848267912864685,
-0.3066728115081787,
0.13035784661769867,
0.2504445016384125,
0.2714744508266449,
-0.02830081433057785,
0.7059744596481323,
-0.080025315284729,
-0.06373775750398636,
-0.3099609613418579,
0.07059994339942932,
0.2637481391429901,
-0.16641530394554138,
0.3383425772190094,
0.1393621563911438,
-0.120322585105896,
0.020878838375210762,
0.49578800797462463,
0.0764520913362503,
0.14817661046981812,
-0.10191917419433594,
-0.4340781271457672,
0.004864379297941923,
0.38714152574539185,
-0.04078389331698418,
0.2559140622615814,
-0.07308920472860336,
0.010748756118118763,
0.2000337690114975,
-0.17177477478981018,
-0.28469404578208923,
-0.22800955176353455,
-0.39477217197418213,
0.40531203150749207,
0.020616481080651283,
0.03399967402219772,
0.28090161085128784,
-0.12463532388210297,
0.10634276270866394,
-0.31266850233078003,
-0.31651026010513306,
-0.23030763864517212,
0.023301435634493828,
0.19479146599769592,
0.18344245851039886,
0.14391644299030304,
0.04073116183280945,
0.015911005437374115,
-0.018493138253688812,
-0.231123149394989,
0.37530219554901123,
0.35588252544403076,
0.00734268594533205,
0.23802240192890167,
0.0011617006966844201,
0.3851650059223175,
-0.16367939114570618,
0.01802460104227066,
0.05363234505057335,
-0.17862433195114136,
0.21899855136871338,
-0.12340651452541351,
0.08615729957818985,
0.01032179780304432,
0.14566418528556824,
0.1310778260231018,
-0.01734602451324463,
-0.07071645557880402,
-0.0687461644411087,
-0.20280924439430237,
0.008788281120359898,
-0.04723285883665085,
0.13455207645893097,
0.25895166397094727,
-0.18515905737876892,
0.26714059710502625,
-0.010320907458662987,
0.2198472023010254,
-0.32398396730422974,
0.3387543857097626,
0.1191084235906601,
0.07815879583358765,
0.12212692946195602,
0.18459796905517578,
0.14127959311008453,
-0.3834759294986725,
0.3110421597957611,
0.21374602615833282,
-0.153291717171669,
-0.39434167742729187,
0.27037277817726135,
0.4016450047492981,
-0.0494832843542099,
0.0024949582293629646,
-0.01007907185703516,
-0.27104321122169495,
-0.24092265963554382,
0.004264772403985262,
0.06562981009483337,
0.3041701912879944,
0.025128323584794998,
-0.12273737788200378,
0.15863840281963348,
0.02343451790511608,
-0.006612411700189114,
0.021223310381174088,
-0.3439192771911621,
-0.028795059770345688,
0.12357602268457413,
0.26829102635383606,
-0.03859127685427666,
-0.22659353911876678,
0.10165783762931824,
-0.08920598775148392,
-0.18534168601036072,
-0.16918198764324188,
-0.07965723425149918,
-0.2356608659029007,
-0.01602754555642605,
-0.18681518733501434,
0.06693233549594879,
-0.31503066420555115,
0.4789043068885803,
-0.045336537063121796,
0.02148599363863468,
-0.3790130913257599,
0.0813254565000534,
0.3750399947166443,
0.3184187114238739,
0.08981893211603165,
0.5027279853820801,
0.25527116656303406,
0.08812953531742096,
0.1871243268251419,
0.620872437953949,
0.3228020966053009,
0.40143847465515137,
-0.1718599945306778,
0.032834310084581375,
-0.061205487698316574,
-0.30690500140190125,
-0.06833463907241821,
0.2621800899505615,
0.222447007894516,
-0.003069264115765691,
0.3125356435775757,
0.10996944457292557,
-0.07542046159505844,
0.30121156573295593,
0.14601017534732819,
-0.06504695117473602,
-0.19635294377803802,
0.24360299110412598,
0.057065170258283615,
-0.08410973101854324,
0.0970190092921257,
-0.09057948738336563,
-0.5747671723365784,
-0.18794949352741241,
0.09150470793247223,
0.18479028344154358,
0.2719127833843231,
-0.029270587489008904,
0.05293785408139229,
-0.07632315158843994,
0.05375099182128906,
0.15150237083435059,
0.13623428344726562,
-0.336058646440506,
0.24091999232769012,
-0.4618489444255829,
0.24897269904613495,
0.06284024566411972,
-0.048885878175497055,
-0.22335991263389587,
0.15979410707950592,
0.01442085299640894,
0.027680380269885063,
-0.1524357795715332,
-0.15175096690654755,
0.3210309147834778,
0.055878110229969025,
-0.6173191070556641,
0.06947759538888931,
0.22266773879528046,
-0.03164299577474594,
0.00724236061796546,
-0.30146223306655884,
-0.03189085051417351,
0.004165377467870712,
-0.1023188978433609,
0.1885472536087036,
0.12361719459295273,
0.09462440758943558,
0.05502171441912651,
0.07967115938663483,
0.25172826647758484,
0.6537089347839355,
-0.03988567739725113,
0.094427689909935,
-0.07591630518436432,
-0.1857728213071823,
-0.11363710463047028,
0.0784749910235405,
0.1745889037847519,
0.2737559378147125,
0.19055062532424927,
-0.2834949791431427,
0.1479642540216446,
0.11630941927433014,
0.17913852632045746,
-0.1351218968629837,
0.07136919349431992,
0.10456372797489166,
0.13887731730937958,
-0.0669209286570549,
0.015468398109078407,
0.028779100626707077,
-0.024065690115094185,
-0.040931336581707,
-0.252309113740921,
-0.5186454057693481,
0.3893422484397888,
-0.5014824867248535,
-0.34247010946273804,
-0.2832128703594208,
0.193373441696167,
0.10383102297782898,
-0.18909932672977448,
-1.0374094247817993,
-0.1832495927810669,
0.3999885022640228,
-0.16234701871871948,
-0.02578154020011425,
0.21846747398376465,
-0.26889553666114807,
-0.12323591858148575,
-0.16694799065589905,
0.05540850758552551,
0.028815390542149544,
-0.10888361185789108,
-0.17260892689228058,
-0.4612898528575897
] |
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.080713652074337,
-0.023197945207357407,
-0.008704031817615032,
0.07583297789096832,
-0.08046385645866394,
0.19386284053325653,
-0.09644570201635361,
0.15029962360858917,
0.09170269221067429,
-0.137249156832695,
-0.15640206634998322,
0.26321059465408325,
0.26520606875419617,
0.05539426952600479,
0.03182459995150566,
-0.16234810650348663,
0.275370717048645,
0.13668735325336456,
-0.14975357055664062,
0.01827259548008442,
0.02814788743853569,
0.07398520410060883,
-0.17607295513153076,
-0.09647448360919952,
-0.2948453724384308,
0.063835509121418,
-0.16937601566314697,
-0.20552201569080353,
-0.007481120061129332,
-0.17885209619998932,
0.10816684365272522,
0.29467499256134033,
0.023762261494994164,
0.5012595057487488,
-0.0001200250699184835,
-0.18218226730823517,
0.1482321321964264,
-0.11886731535196304,
-0.09780624508857727,
-0.5917366147041321,
-0.43791085481643677,
-0.1937706619501114,
-0.03721544146537781,
-0.2641341984272003,
-0.1709362417459488,
-0.25971779227256775,
-0.009275621734559536,
-0.39622801542282104,
0.1879962533712387,
-0.007790128234773874,
0.05178123712539673,
-0.21810024976730347,
0.31783348321914673,
-0.28991183638572693,
0.3681321144104004,
0.06007694453001022,
0.23139169812202454,
0.20463578402996063,
0.46678608655929565,
0.09246065467596054,
0.3536236584186554,
0.031827375292778015,
-0.2515161335468292,
-0.17782855033874512,
0.26569676399230957,
0.10655839741230011,
-0.27251848578453064,
-0.5039495229721069,
0.13122674822807312,
0.5253688097000122,
0.8458811044692993,
-0.1958152800798416,
-0.20375530421733856,
-0.14369840919971466,
0.2615860402584076,
0.16773803532123566,
-0.16267961263656616,
0.0655561164021492,
0.05718213692307472,
-0.10857852548360825,
-0.01729567162692547,
-0.47837111353874207,
-0.014689292758703232,
0.14606806635856628,
-0.05186975747346878,
0.41982758045196533,
0.11977865546941757,
0.11235545575618744,
-0.12016379088163376,
-0.35362693667411804,
-0.002178918570280075,
-0.10288873314857483,
-0.23143243789672852,
0.3964163362979889,
-0.13572707772254944,
-0.35793769359588623,
-0.4266592860221863,
-0.20768609642982483,
0.2877580523490906,
-0.23251420259475708,
-0.10939949005842209,
-0.1312534064054489,
-0.3093338906764984,
0.22626115381717682,
0.4135230481624603,
-0.17651806771755219,
0.40259647369384766,
0.16798089444637299,
-0.14977973699569702,
-0.29195743799209595,
-0.6388097405433655,
-0.09562676399946213,
0.07344367355108261,
-0.24978189170360565,
-0.012318969704210758,
-0.16128362715244293,
0.1232289969921112,
-0.09547349065542221,
0.11560702323913574,
0.11665625870227814,
-0.3803676962852478,
-0.17963995039463043,
-0.45821163058280945,
-0.017226744443178177,
0.04737362265586853,
-0.17916837334632874,
-0.09471126645803452,
0.31567320227622986,
0.06255775690078735,
-0.20517633855342865,
0.02256140485405922,
-0.022559581324458122,
0.07530819624662399,
0.13594405353069305,
-0.3133121132850647,
0.06783931702375412,
0.2115233838558197,
0.24217340350151062,
0.11653194576501846,
-0.09144310653209686,
0.14048030972480774,
-0.32146376371383667,
0.0882018506526947,
-0.26709306240081787,
0.26621299982070923,
0.3648282289505005,
0.03328697755932808,
-0.36616384983062744,
-0.07746809720993042,
0.31925997138023376,
-0.34247177839279175,
0.09190712124109268,
-0.18116100132465363,
0.050341784954071045,
-0.03477312624454498,
-0.369057297706604,
0.1503407508134842,
0.4734446108341217,
0.20107387006282806,
-0.3792188763618469,
-0.04356876388192177,
0.1888430416584015,
-0.4432767927646637,
-0.14353559911251068,
0.09959165006875992,
0.09583290666341782,
-0.6108906269073486,
-0.24677717685699463,
0.13053564727306366,
0.18384605646133423,
-0.21991999447345734,
0.27357587218284607,
0.0045821149833500385,
0.4709969162940979,
0.019358977675437927,
0.09795801341533661,
0.29401543736457825,
0.006549770478159189,
-0.13891659677028656,
0.23825955390930176,
-0.06101950258016586,
-0.11163114756345749,
-0.0856144055724144,
0.39418715238571167,
0.37619686126708984,
-0.11488475650548935,
0.2615610659122467,
0.1333843469619751,
-0.20540334284305573,
-0.2404525727033615,
0.17245106399059296,
-0.2500694990158081,
0.20035699009895325,
-0.30645233392715454,
-0.020976776257157326,
-0.04512428864836693,
0.2041325867176056,
0.094057597219944,
0.12030618637800217,
-0.23027046024799347,
0.2388392686843872,
0.3612504005432129,
0.04257919639348984,
0.4038478434085846,
-0.15449866652488708,
-0.38497695326805115,
-0.35766884684562683,
-0.06401661783456802,
-0.15533864498138428,
0.20919780433177948,
0.3712136447429657,
-0.23151876032352448,
-0.19188380241394043,
-0.369970440864563,
0.33329641819000244,
-0.009557241573929787,
0.0069704665802419186,
-0.19311974942684174,
-0.1151961237192154,
-0.12684647738933563,
-0.1134820282459259,
-0.07291264086961746,
0.22757861018180847,
-0.10460270941257477,
-0.26577427983283997,
0.2795608937740326,
0.13916867971420288,
-0.004333934281021357,
-0.24931858479976654,
0.38533705472946167,
0.08726279437541962,
0.1868845373392105,
0.16615469753742218,
0.030440986156463623,
-0.09989698231220245,
0.37163984775543213,
0.24936015903949738,
-0.2330424040555954,
0.009554260410368443,
-0.5110829472541809,
-0.13984984159469604,
-0.23620934784412384,
-0.044036783277988434,
-0.2656451165676117,
-0.2391252964735031,
0.14308759570121765,
-0.013934381306171417,
0.24173031747341156,
0.13189814984798431,
-0.025023203343153,
0.18060578405857086,
-0.04070090875029564,
-0.0761866495013237,
-0.25636905431747437,
-0.05061758682131767,
0.13484549522399902,
0.19297371804714203,
0.3609314560890198,
-0.22969117760658264,
0.06281895190477371,
0.03424909710884094,
0.09149889647960663,
0.18999099731445312,
-0.24393275380134583,
-0.46832388639450073,
0.006616770755499601,
-0.2882344722747803,
0.09601150453090668,
0.16452431678771973,
0.34665602445602417,
0.1398831158876419,
0.07304686307907104,
-0.04211218282580376,
-0.023618539795279503,
0.01776942051947117,
0.044321756809949875,
0.3303332030773163,
0.10958433896303177,
0.2567804753780365,
0.07420743256807327,
0.3293251097202301,
0.24202315509319305,
0.12248275429010391,
-0.1384056657552719,
-0.1348123699426651,
-0.2841987609863281,
0.10675826668739319,
-0.24841783940792084,
-0.42156359553337097,
-0.18756578862667084,
-0.18454141914844513,
-0.12301226705312729,
-0.014927404932677746,
0.18650802969932556,
-0.05619893595576286,
0.14038720726966858,
0.05542896315455437,
0.15597651898860931,
-0.1527743637561798,
-0.019121471792459488,
0.13314540684223175,
-0.5160625576972961,
0.25922858715057373,
0.15659111738204956,
0.11395783722400665,
0.12097326666116714,
0.47219446301460266,
-0.11596295982599258,
-0.20336806774139404,
-0.518436849117279,
-0.5585828423500061,
0.03900007903575897,
-0.11048104614019394,
0.26224660873413086,
-0.127979576587677,
0.1481090635061264,
-0.14930756390094757,
-0.028961440548300743,
0.21020926535129547,
0.2862323224544525,
0.019050266593694687,
-0.3370533287525177,
-0.19562768936157227,
0.07669886946678162,
0.25992774963378906,
-0.42775997519493103,
-0.1802714318037033,
0.0028602387756109238,
0.18755300343036652,
0.06800344586372375,
0.0265831109136343,
-0.40536418557167053,
0.11256344616413116,
-0.12206271290779114,
-0.1676352620124817,
0.057435449212789536,
-0.09193678200244904,
-0.3873734474182129,
0.21619850397109985,
-0.07845474034547806,
-0.25951704382896423,
0.19285179674625397,
-0.015902604907751083,
-0.055819131433963776,
-0.2051001787185669,
0.12677758932113647,
0.1307675540447235,
-0.1578676700592041,
0.10324182361364365,
0.22490476071834564,
0.15477605164051056,
0.1833476722240448,
0.11173263192176819,
0.06859822571277618,
-0.1756865680217743,
-0.14817290008068085,
0.2685075104236603,
0.09282492846250534,
0.11187335103750229,
-0.060601506382226944,
0.2222195565700531,
-0.3472219705581665,
0.3986661732196808,
0.5254826545715332,
0.11928465217351913,
-0.05949199199676514,
-0.22884544730186462,
0.358707070350647,
-0.24582435190677643,
-0.10561088472604752,
-0.2335340678691864,
0.14080989360809326,
-0.10529196262359619,
0.17879918217658997,
0.07623434066772461,
-0.1367231160402298,
-0.16919337213039398,
0.08064761757850647,
-0.28163304924964905,
-0.046996232122182846,
0.16708098351955414,
-0.40015146136283875,
0.22658459842205048,
-0.04909595847129822,
-0.4898155927658081,
-0.31748220324516296,
-0.3232746720314026,
-0.1970892697572708,
-0.3505018651485443,
0.20544598996639252,
-0.08044534921646118,
-0.40705808997154236,
-0.059548843652009964,
-0.2789440155029297,
0.19438520073890686,
0.3742377758026123,
-0.019000455737113953,
-0.09549164772033691,
-0.0674535483121872,
-0.13920359313488007,
0.21432341635227203,
0.17796382308006287,
-0.5430002212524414,
-0.27402329444885254,
0.06342561542987823,
0.3556332588195801,
-0.0907822921872139,
0.2844604551792145,
-0.1493007391691208,
-0.13657844066619873,
0.2212074100971222,
0.3323831558227539,
-0.2749544084072113,
0.1516236811876297,
0.25887155532836914,
0.3530674874782562,
-0.22724373638629913,
-0.07179418206214905,
0.16380484402179718,
0.18546998500823975,
-0.33727675676345825,
-0.15390197932720184,
0.14047197997570038,
-0.0018170527182519436,
0.31705597043037415,
-0.10686401277780533,
0.10110343992710114,
0.299617737531662,
0.461078017950058,
0.1862189769744873,
0.05857567489147186,
0.1290239840745926,
0.19608281552791595,
0.3700782060623169,
-0.09763091802597046,
0.08147728443145752,
0.651819109916687,
-0.20904627442359924,
-0.30703866481781006,
-0.18773354589939117,
-0.22840070724487305,
0.669173002243042,
-0.06140286847949028,
0.36832883954048157,
0.3365749418735504,
0.002809666097164154,
-0.05286005511879921,
-0.13128076493740082,
-0.10787216573953629,
0.19897468388080597,
0.13819731771945953,
-0.615200936794281,
-0.449105829000473,
0.23151004314422607,
0.19341987371444702,
-0.3068055808544159,
-0.17444205284118652,
0.1185637041926384,
-0.21608752012252808,
0.5841513872146606,
0.049488507211208344,
1.0757393836975098,
0.02936726063489914,
0.08744373917579651,
-0.3162236213684082,
-0.1883552372455597,
1.0178574323654175,
0.13053222000598907,
-0.12368971109390259,
-0.14787708222866058,
-0.08500974625349045,
-0.22944621741771698,
-0.16662776470184326,
-0.05729808658361435,
0.5215893983840942,
-0.23045630753040314,
0.33056873083114624,
0.11107596009969711,
0.248663067817688,
0.10225418955087662,
0.07120808213949203,
0.4821212887763977,
-0.05735376104712486,
0.01926071010529995,
0.015869006514549255,
0.10440195351839066,
-0.20792533457279205,
-0.17858834564685822,
0.027290888130664825,
-0.2807313799858093,
0.0825841873884201,
-0.4025100767612457,
-0.016664553433656693,
0.12520892918109894,
-0.04034704342484474,
0.06722665578126907,
-0.17909127473831177,
0.14754697680473328,
0.622215747833252,
0.3884712755680084,
0.20478972792625427,
-0.25207316875457764,
0.1811259388923645,
-0.049987807869911194,
0.05908573791384697,
0.14294418692588806,
-0.15821081399917603,
0.27724674344062805,
0.17727071046829224,
-0.3260653018951416,
0.27464181184768677,
0.08582495898008347,
-0.14542508125305176,
-0.418118953704834,
-0.05140451341867447,
0.18513227999210358,
-0.1382943093776703,
-0.5660070180892944,
0.4074304699897766,
0.1603224277496338,
-0.32359224557876587,
0.002353430027142167,
-0.0015485845506191254,
0.05569048970937729,
0.05811326578259468,
0.10352296382188797,
-0.30341288447380066,
0.046176645904779434,
0.38589105010032654,
0.3112261891365051,
0.027631977573037148,
0.4255210757255554,
0.3808839023113251,
0.14324454963207245,
-0.09357763081789017,
0.051032714545726776,
0.06412028521299362,
-0.44381800293922424,
-0.2619383931159973,
0.22406457364559174,
0.11070194840431213,
-0.2755555212497711,
0.02752177231013775,
0.29480817914009094,
0.2812791168689728,
0.11319272220134735,
-0.1540006697177887,
-0.3026462495326996,
0.2983667254447937,
0.19902709126472473,
0.18868178129196167,
0.13416829705238342,
0.10640185326337814,
-0.06670618057250977,
0.6051508784294128,
-0.19553522765636444,
0.10303634405136108,
0.09476342797279358,
0.2416863590478897,
0.5612391829490662,
0.3211016058921814,
-0.30370140075683594,
-0.3529646098613739,
0.05242564156651497,
-0.2563047409057617,
0.36803436279296875,
-0.1653798520565033,
-0.034319933503866196,
0.18002906441688538,
0.1391879767179489,
0.014135893434286118,
-0.1297423243522644,
-0.22688491642475128,
0.3054664433002472,
-0.3553523123264313,
0.10368994623422623,
0.20477594435214996,
0.14609047770500183,
-0.16589488089084625,
0.2882988452911377,
0.1458716243505478,
-0.6236057281494141,
0.31579911708831787,
0.1428546905517578,
0.15660253167152405,
-0.2186436653137207,
-0.1664491444826126,
0.21131806075572968,
-0.029422709718346596,
0.2234199345111847,
0.028734957799315453,
0.42431575059890747,
-0.008873392827808857,
0.021280981600284576,
-0.011897929944097996,
0.06415976583957672,
0.26442018151283264,
0.24632248282432556,
-0.2564180791378021,
0.03906765580177307,
0.07521027326583862,
0.1435423046350479,
0.11950181424617767,
-0.3249656558036804,
-0.05259590595960617,
0.5134177803993225,
-0.13269639015197754,
0.056138720363378525,
0.06786621361970901,
-0.12982308864593506,
0.3916151821613312,
-0.2596842348575592,
0.011347398161888123,
0.05831785500049591,
-0.10299079865217209,
0.21193113923072815,
0.4004090428352356,
0.49704548716545105,
-0.0868295431137085,
0.03047950752079487,
0.18638837337493896,
0.20960384607315063,
0.26925578713417053,
0.24161013960838318,
0.1177024245262146,
0.5011899471282959,
0.11954400688409805,
0.580991268157959,
0.1392068713903427,
0.37846773862838745,
0.3143640160560608,
0.3798809051513672,
-0.31434381008148193,
-0.03988899663090706,
0.10344887524843216,
0.20289826393127441,
-0.257453978061676,
0.14830778539180756,
0.4723989963531494,
-0.02988075092434883,
-0.29769644141197205,
-0.08580941706895828,
-0.38734328746795654,
0.09485621005296707,
-0.07329857349395752,
-0.07690045237541199,
-0.3153761625289917,
0.13354240357875824,
-0.1397843211889267,
0.1501653641462326,
-0.11318959295749664,
0.052401334047317505,
-0.09057391434907913,
-0.0022762028966099024,
-0.2257421314716339,
0.33385902643203735,
-0.1965186893939972,
-0.09320155531167984,
0.2818796634674072,
0.6687043905258179,
0.19016984105110168,
0.19669632613658905,
-0.046882059425115585,
0.44404011964797974,
0.04267130792140961,
-0.18848419189453125,
0.14074142277240753,
-0.05432547628879547,
-0.0936095342040062,
-0.44182324409484863,
0.22292250394821167,
0.1742856502532959,
-0.051258888095617294,
0.13467733561992645,
0.031152263283729553,
0.3035237193107605,
-0.06948430836200714,
-0.16975213587284088,
-0.06499496847391129,
-0.13680672645568848,
0.0962802916765213,
-0.02224097028374672,
-0.3277294337749481,
-0.002143373480066657,
0.10965348035097122,
-0.2466520518064499,
0.047279857099056244,
0.04128318652510643,
0.05170958489179611,
0.09941872954368591,
0.28169167041778564,
0.43132051825523376,
0.08397665619850159,
-0.21279078722000122,
-0.19452287256717682,
-0.5713772773742676,
0.08902589976787567,
-0.18038524687290192,
0.06449712067842484,
-0.40974605083465576,
-0.017854588106274605,
0.3409055769443512,
0.1188749298453331,
0.211440771818161,
0.01233354676514864,
-0.3273979127407074,
0.0921844094991684,
-0.13946044445037842,
-0.3116665780544281,
0.11990365386009216,
0.0357648991048336,
-0.09218773245811462,
0.08519148081541061,
0.02466515824198723,
0.142947718501091,
-0.12991942465305328,
-0.015678515657782555,
-0.1433279812335968,
0.1077955961227417,
-0.2914767265319824,
0.07853419333696365,
0.08364833146333694,
0.7063451409339905,
-0.3609151244163513,
0.04046711325645447,
0.45821696519851685,
-0.3141150176525116,
-0.07884515076875687,
0.598426878452301,
0.06941703706979752,
0.24887721240520477,
-0.3487597405910492,
0.1082889512181282,
0.2200300097465515,
-0.45371636748313904,
-0.3922595679759979,
0.14369170367717743,
-0.6623862385749817,
-0.050421081483364105,
-0.09221374243497849,
-0.026031430810689926,
-0.03477180376648903,
0.19688422977924347,
0.0055903904139995575,
0.3021910488605499,
0.24336011707782745,
-0.1516219824552536,
0.04021554812788963,
-0.11626970022916794,
-0.22518490254878998,
-0.2587261497974396,
-0.045580074191093445,
0.2406250238418579,
-0.08683257550001144,
-0.3463814854621887,
0.07249720394611359,
0.4907075762748718,
0.1102973222732544,
0.05479370802640915,
0.13350878655910492,
-0.06829927116632462,
0.006559966132044792,
-0.2171511948108673,
0.2488211691379547,
0.019087903201580048,
0.0077920216135680676,
-0.4408716857433319,
-0.3627169728279114
] |
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.0025699224788695574,
-0.050123732537031174,
0.007704403717070818,
0.07763034105300903,
-0.001898635528050363,
0.17297391593456268,
-0.05921349674463272,
0.15285459160804749,
-0.02389482781291008,
-0.1077590137720108,
-0.27961161732673645,
0.22843074798583984,
0.306437224149704,
0.051166389137506485,
0.045766040682792664,
-0.21212153136730194,
0.2977072596549988,
0.08784521371126175,
-0.13958944380283356,
0.06776664406061172,
0.08774219453334808,
0.10520573705434799,
-0.2417864054441452,
-0.07961010932922363,
-0.3017895221710205,
0.13894332945346832,
-0.10653886198997498,
-0.17864403128623962,
0.025756236165761948,
-0.08233912289142609,
0.2509200870990753,
0.23384979367256165,
0.05786414444446564,
0.5224131941795349,
-0.00011893444025190547,
-0.1573144793510437,
0.1734098345041275,
-0.1755608469247818,
-0.06744308024644852,
-0.6412488222122192,
-0.4305659830570221,
-0.16816306114196777,
-0.06306244432926178,
-0.22542069852352142,
-0.16109463572502136,
-0.19150041043758392,
-0.014181828126311302,
-0.37768617272377014,
0.28501930832862854,
-0.04644424095749855,
0.07305148988962173,
-0.2338421493768692,
0.3569043278694153,
-0.2776045501232147,
0.2534075379371643,
0.11005901545286179,
0.22919119894504547,
0.25137826800346375,
0.4053725004196167,
-0.019634906202554703,
0.3723793029785156,
0.04019411280751228,
-0.2858998775482178,
-0.11128147691488266,
0.26738661527633667,
0.04826973378658295,
-0.2433435171842575,
-0.5618753433227539,
0.12425064295530319,
0.5158061385154724,
0.8751181960105896,
-0.16374561190605164,
-0.11893441528081894,
-0.1058146134018898,
0.2280832976102829,
0.29847028851509094,
-0.1458122730255127,
0.12571080029010773,
0.07394032180309296,
-0.07439755648374557,
-0.07137087732553482,
-0.3805038034915924,
-0.019961725920438766,
0.057035893201828,
-0.19119307398796082,
0.38755106925964355,
0.11643975228071213,
0.08352930098772049,
-0.1151772290468216,
-0.38575035333633423,
0.03747091814875603,
-0.07492584735155106,
-0.17946521937847137,
0.3205146789550781,
-0.13736629486083984,
-0.3005455434322357,
-0.4265522062778473,
-0.04061824828386307,
0.3847048878669739,
-0.2180028110742569,
-0.10969945043325424,
-0.17190130054950714,
-0.2832713723182678,
0.18125158548355103,
0.4421009421348572,
-0.170942023396492,
0.38908278942108154,
0.20384982228279114,
-0.15734755992889404,
-0.26315903663635254,
-0.7858476042747498,
-0.014169790782034397,
0.03858204558491707,
-0.34690964221954346,
-0.0002781105285976082,
-0.1453925371170044,
0.055726222693920135,
-0.1759081482887268,
0.06012595817446709,
0.11429363489151001,
-0.5267906785011292,
-0.10422984510660172,
-0.4912877380847931,
-0.02849007025361061,
0.05448947101831436,
-0.13849015533924103,
-0.04926581680774689,
0.3209947645664215,
-0.029385993257164955,
-0.21454891562461853,
0.001757641788572073,
-0.045891135931015015,
0.03295533359050751,
0.09262067824602127,
-0.2935263216495514,
0.012367851100862026,
0.14793260395526886,
0.23744140565395355,
0.17955534160137177,
-0.12961308658123016,
0.11285638064146042,
-0.28889229893684387,
0.12975317239761353,
-0.23242731392383575,
0.25701582431793213,
0.3389836847782135,
0.08367301523685455,
-0.28092750906944275,
-0.09744101762771606,
0.3202989101409912,
-0.3467894494533539,
0.09682697057723999,
-0.07511160522699356,
0.04822564497590065,
-0.10776820033788681,
-0.31440019607543945,
0.13938941061496735,
0.36381301283836365,
0.19113296270370483,
-0.392010897397995,
-0.05912499502301216,
0.04745868220925331,
-0.4272729158401489,
-0.16956527531147003,
0.12705190479755402,
0.08359836041927338,
-0.5973301529884338,
-0.21136531233787537,
0.18704383075237274,
0.17157109081745148,
-0.1690765917301178,
0.309314101934433,
-0.00037801454891450703,
0.41185349225997925,
0.04783985763788223,
0.10178059339523315,
0.1883346289396286,
-0.03193925693631172,
-0.22283777594566345,
0.2945309281349182,
-0.14560359716415405,
-0.06781325489282608,
-0.10442022979259491,
0.34204620122909546,
0.32041266560554504,
-0.18754179775714874,
0.31517550349235535,
0.14494147896766663,
-0.1745823472738266,
-0.20852038264274597,
0.11556243151426315,
-0.22702668607234955,
0.1572459191083908,
-0.31243833899497986,
-0.06116881221532822,
-0.11681120842695236,
0.11180631816387177,
0.05850793421268463,
0.19215311110019684,
-0.15004564821720123,
0.15556325018405914,
0.3324892818927765,
0.011677293106913567,
0.34208741784095764,
-0.09012464433908463,
-0.2835850417613983,
-0.3240116238594055,
-0.06446628272533417,
-0.09286783635616302,
0.15288212895393372,
0.29602137207984924,
-0.24203521013259888,
-0.19247451424598694,
-0.4010329246520996,
0.35089313983917236,
0.0098660783842206,
0.014594295993447304,
-0.269822359085083,
-0.12201634049415588,
-0.06578271836042404,
-0.06294084340333939,
-0.014488519169390202,
0.21101714670658112,
-0.15041059255599976,
-0.31791630387306213,
0.3872092366218567,
0.11764044314622879,
0.057158175855875015,
-0.16791082918643951,
0.35869643092155457,
0.04845302179455757,
0.2030503898859024,
0.1642744094133377,
-0.027234334498643875,
-0.2241765409708023,
0.33966612815856934,
0.27537351846694946,
-0.256863534450531,
-0.025014929473400116,
-0.6368866562843323,
-0.12419665604829788,
-0.2141597718000412,
-0.03379237651824951,
-0.31234055757522583,
-0.23525415360927582,
0.17315182089805603,
-0.03454077988862991,
0.27159783244132996,
0.06344360113143921,
0.040152497589588165,
0.11139339208602905,
-0.05911928415298462,
-0.1764666587114334,
-0.1673031598329544,
0.09022030979394913,
0.09071317315101624,
0.1448708027601242,
0.3844325542449951,
-0.2436368763446808,
0.04828641191124916,
-0.02845034934580326,
0.07648146152496338,
0.13728974759578705,
-0.3264172077178955,
-0.4592149257659912,
0.00749253761023283,
-0.22704701125621796,
0.12149038910865784,
0.20824097096920013,
0.3492428660392761,
0.15271714329719543,
0.04569869115948677,
-0.09218215942382812,
-0.021365929394960403,
-0.010589451529085636,
0.06810300052165985,
0.37936174869537354,
0.02192992903292179,
0.24819709360599518,
0.09161020815372467,
0.3852550983428955,
0.21680693328380585,
0.013674374669790268,
-0.20233015716075897,
-0.1696552038192749,
-0.2334572821855545,
0.06892358511686325,
-0.27860164642333984,
-0.3739546239376068,
-0.1919832080602646,
-0.24633261561393738,
-0.14712874591350555,
-0.08102164417505264,
0.11993952840566635,
-0.040752701461315155,
0.18876014649868011,
-0.02968743070960045,
0.12758566439151764,
-0.2064574807882309,
-0.10420840233564377,
0.16540749371051788,
-0.4634031653404236,
0.25841060280799866,
0.1879548281431198,
0.18769513070583344,
0.17747116088867188,
0.4568807780742645,
-0.21745465695858002,
-0.18170559406280518,
-0.457314133644104,
-0.4930151104927063,
0.04200088232755661,
-0.15479935705661774,
0.29636961221694946,
-0.1615113466978073,
0.1329653263092041,
-0.2619117796421051,
0.04215530678629875,
0.214440256357193,
0.3131142556667328,
0.005343260243535042,
-0.3617570698261261,
-0.12953442335128784,
0.1523980051279068,
0.2682892680168152,
-0.35976576805114746,
-0.15270589292049408,
0.012595185078680515,
0.15494604408740997,
-0.027792882174253464,
0.014746511355042458,
-0.49016356468200684,
0.09067284315824509,
-0.1672898232936859,
-0.13090087473392487,
-0.006718586664646864,
-0.10170355439186096,
-0.38299891352653503,
0.21682657301425934,
-0.05163620412349701,
-0.23622462153434753,
0.20389190316200256,
0.027914000675082207,
-0.011724290437996387,
-0.21065779030323029,
0.07603142410516739,
0.16738952696323395,
-0.1541047990322113,
0.037453413009643555,
0.2276543825864792,
0.13972124457359314,
0.09238763153553009,
0.12873895466327667,
0.05645524337887764,
-0.19264507293701172,
-0.15964668989181519,
0.21663998067378998,
0.06163495033979416,
0.10892458260059357,
-0.009842840023338795,
0.1810978800058365,
-0.3064339756965637,
0.4406487047672272,
0.5961533784866333,
0.06694712489843369,
-0.15431790053844452,
-0.05524476245045662,
0.31912094354629517,
-0.22411639988422394,
-0.14441464841365814,
-0.21626661717891693,
0.13551610708236694,
-0.1104242280125618,
0.20122559368610382,
0.146983802318573,
-0.20111355185508728,
-0.22672006487846375,
0.027612024918198586,
-0.29668647050857544,
-0.08669973909854889,
0.14831283688545227,
-0.3616517186164856,
0.22800087928771973,
0.002827824093401432,
-0.4828452467918396,
-0.2542804479598999,
-0.2783203423023224,
-0.19920484721660614,
-0.2758312225341797,
0.3278147280216217,
-0.0452023446559906,
-0.3528813123703003,
-0.01669308729469776,
-0.31426283717155457,
0.24065056443214417,
0.36649951338768005,
-0.0843387320637703,
-0.09072231501340866,
-0.06041916087269783,
-0.12921573221683502,
0.2606251835823059,
0.15429328382015228,
-0.512804388999939,
-0.1633431762456894,
0.1516357958316803,
0.4062100648880005,
-0.06504368036985397,
0.28879088163375854,
-0.09171177446842194,
-0.11308584362268448,
0.24880078434944153,
0.2509050965309143,
-0.25837796926498413,
0.15706324577331543,
0.24470436573028564,
0.40327778458595276,
-0.17364077270030975,
-0.1313842087984085,
0.20572929084300995,
0.16526156663894653,
-0.2362171858549118,
-0.09626011550426483,
0.19562523066997528,
-0.0006143081118352711,
0.27403193712234497,
-0.0693940818309784,
0.036595363169908524,
0.2171507626771927,
0.5396987199783325,
0.12097791582345963,
0.08115237951278687,
0.08037968724966049,
0.23573316633701324,
0.45303434133529663,
-0.0320291593670845,
0.13783346116542816,
0.6700578331947327,
-0.2145472764968872,
-0.32927921414375305,
-0.19343537092208862,
-0.13117408752441406,
0.6428802013397217,
0.006216374225914478,
0.35128986835479736,
0.19892188906669617,
0.018884630873799324,
-0.12091555446386337,
-0.0490800105035305,
-0.24524237215518951,
0.07921290397644043,
0.19843383133411407,
-0.7353706359863281,
-0.4121163487434387,
0.27522188425064087,
0.2985343039035797,
-0.33700045943260193,
-0.20359092950820923,
0.1112072542309761,
-0.2003127932548523,
0.4947100579738617,
0.061214424669742584,
1.1625714302062988,
0.041009023785591125,
0.11799197643995285,
-0.30899766087532043,
-0.12293929606676102,
0.9703680276870728,
0.19300976395606995,
-0.1272210031747818,
-0.09684692323207855,
-0.11371872574090958,
-0.25657135248184204,
-0.22482022643089294,
-0.1375609040260315,
0.507917046546936,
-0.18405327200889587,
0.3734821081161499,
0.031073153018951416,
0.1875920593738556,
0.1369582563638687,
-0.032743338495492935,
0.5116968154907227,
0.0012901241425424814,
-0.0064742485992610455,
0.02298745885491371,
0.11525779962539673,
-0.09022440761327744,
-0.18498407304286957,
-0.02974984422326088,
-0.3025935888290405,
0.1189245954155922,
-0.38475632667541504,
0.0003967405064031482,
0.06506949663162231,
-0.04813568666577339,
0.0850294902920723,
-0.23552002012729645,
0.19551551342010498,
0.7198810577392578,
0.3563290536403656,
0.1922263652086258,
-0.28482598066329956,
0.17266303300857544,
-0.00922246091067791,
0.004992063622921705,
0.1629316210746765,
-0.12815621495246887,
0.2780499756336212,
0.16176849603652954,
-0.2777025103569031,
0.1949973702430725,
0.1021159216761589,
-0.0899803563952446,
-0.47443529963493347,
0.012307530269026756,
0.09800759702920914,
-0.0945381373167038,
-0.538814902305603,
0.3663732409477234,
0.1767820566892624,
-0.1856520026922226,
0.01320001669228077,
0.00018849747721105814,
0.07491865754127502,
0.09355174005031586,
0.11230055242776871,
-0.32101842761039734,
0.06061657518148422,
0.3731019198894501,
0.36472341418266296,
-0.06295962631702423,
0.34247031807899475,
0.3815138339996338,
0.08557544648647308,
-0.08728490769863129,
0.08147188276052475,
0.028808368369936943,
-0.39805522561073303,
-0.19699887931346893,
0.1057751402258873,
0.2387945055961609,
-0.3082544505596161,
-0.010020311921834946,
0.38292670249938965,
0.18974322080612183,
0.17229649424552917,
-0.12591922283172607,
-0.26264688372612,
0.3369971215724945,
0.13917534053325653,
0.16330888867378235,
0.04905111342668533,
0.08623040467500687,
-0.010135664604604244,
0.5093473792076111,
-0.2070426493883133,
0.15807119011878967,
0.09070772677659988,
0.20063072443008423,
0.5335080623626709,
0.3277241587638855,
-0.345456600189209,
-0.36694231629371643,
0.06433048099279404,
-0.2048444151878357,
0.310889333486557,
-0.1922220140695572,
0.048089247196912766,
0.16925431787967682,
0.10162194073200226,
0.022128839045763016,
-0.04696135222911835,
-0.21702036261558533,
0.3040750324726105,
-0.3163798451423645,
0.03548282012343407,
0.23010581731796265,
0.22141805291175842,
-0.263012170791626,
0.2981281578540802,
0.1858418732881546,
-0.5612169504165649,
0.3651365041732788,
0.13900303840637207,
0.13136383891105652,
-0.3120279014110565,
-0.22731724381446838,
0.23621544241905212,
-0.02689317800104618,
0.24117298424243927,
-0.029441000893712044,
0.33213943243026733,
0.057038310915231705,
-0.008374826982617378,
-0.027322929352521896,
-0.0005373642197810113,
0.24429212510585785,
0.30786341428756714,
-0.22124142944812775,
-0.02400195598602295,
0.10118558257818222,
0.17675825953483582,
0.1289905607700348,
-0.22267264127731323,
-0.03946487605571747,
0.5133668780326843,
-0.038040049374103546,
-0.03750181198120117,
0.04380926862359047,
-0.12907961010932922,
0.3635987341403961,
-0.2724663317203522,
0.08442949503660202,
0.12329939007759094,
-0.13094547390937805,
0.14436811208724976,
0.4139517545700073,
0.5091971755027771,
-0.06378992646932602,
0.04328107461333275,
0.16815699636936188,
0.23424173891544342,
0.26360055804252625,
0.22626656293869019,
0.12491247802972794,
0.5415757298469543,
0.1831621527671814,
0.6217491030693054,
0.21456319093704224,
0.23058852553367615,
0.36158403754234314,
0.2951468825340271,
-0.3101605474948883,
-0.07335647195577621,
0.17036211490631104,
0.12692321836948395,
-0.29079851508140564,
0.1274164617061615,
0.44341006875038147,
0.004087053705006838,
-0.24229806661605835,
-0.0603945329785347,
-0.41705387830734253,
0.1044447049498558,
-0.059678684920072556,
-0.09443704038858414,
-0.296503484249115,
0.20172536373138428,
-0.12774179875850677,
0.13284718990325928,
-0.10016050189733505,
0.038920868188142776,
-0.08151605725288391,
0.04568924009799957,
-0.2055385708808899,
0.21780438721179962,
-0.2609115540981293,
-0.0936182364821434,
0.2776682376861572,
0.6427244544029236,
0.29332587122917175,
0.13034194707870483,
-0.10996481031179428,
0.32805413007736206,
0.01630423031747341,
-0.11352291703224182,
0.14166617393493652,
-0.014613475650548935,
-0.08066660165786743,
-0.5470131039619446,
0.26320382952690125,
0.17302486300468445,
-0.04093622788786888,
0.13579894602298737,
-0.013734998181462288,
0.32550689578056335,
-0.12096136808395386,
-0.1709829717874527,
-0.25648805499076843,
-0.09637100249528885,
0.08074606209993362,
-0.0569784976541996,
-0.29531899094581604,
0.059146709740161896,
0.05854261294007301,
-0.15126578509807587,
0.04655984416604042,
0.03810925781726837,
0.060706254094839096,
0.04338321089744568,
0.19293278455734253,
0.4572066068649292,
0.1805945485830307,
-0.23800982534885406,
-0.22304818034172058,
-0.6116509437561035,
0.11560039222240448,
-0.24245339632034302,
0.08798874914646149,
-0.412920206785202,
-0.06581753492355347,
0.31553441286087036,
0.18274767696857452,
0.1582338958978653,
0.03656440228223801,
-0.3021131157875061,
0.1524006426334381,
-0.15349437296390533,
-0.3242206275463104,
0.15521711111068726,
-0.020784219726920128,
-0.11281123757362366,
0.07634692639112473,
0.018196048215031624,
0.04545094445347786,
-0.1144111230969429,
0.025497490540146828,
-0.1378239244222641,
0.17563822865486145,
-0.1870414763689041,
0.08899518847465515,
0.15027664601802826,
0.7541152834892273,
-0.30901411175727844,
0.06066661328077316,
0.43287670612335205,
-0.3222762942314148,
-0.0024943931493908167,
0.632826566696167,
0.018893709406256676,
0.2234547883272171,
-0.3817552328109741,
0.12939272820949554,
0.25896281003952026,
-0.5065022110939026,
-0.339641273021698,
0.34462687373161316,
-0.6829172968864441,
-0.20210742950439453,
-0.08832879364490509,
-0.018174689263105392,
-0.09172385931015015,
0.22667790949344635,
-0.030380867421627045,
0.2706247866153717,
0.22216209769248962,
-0.15569020807743073,
0.10930003970861435,
-0.1322835236787796,
-0.2360171526670456,
-0.21238720417022705,
-0.0463724210858345,
0.29066017270088196,
-0.034920837730169296,
-0.3357985317707062,
0.05412602052092552,
0.4443773627281189,
0.12320888042449951,
0.06236694008111954,
0.1291295886039734,
-0.07157354801893234,
0.04464193806052208,
-0.2311866730451584,
0.18623562157154083,
-0.0285794734954834,
-0.0046887146309018135,
-0.44833728671073914,
-0.33730289340019226
] |
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.1691725105047226,
0.01683579757809639,
0.06266516447067261,
0.363399475812912,
0.29187697172164917,
-0.1796785444021225,
0.21995890140533447,
-0.04344447702169418,
-0.18381397426128387,
0.06295830756425858,
-0.32389935851097107,
0.13601748645305634,
0.07222908735275269,
0.15775860846042633,
-0.057913508266210556,
-0.09452728927135468,
-0.19010989367961884,
-0.2000555694103241,
-0.06888334453105927,
0.253536581993103,
-0.13285478949546814,
0.475398987531662,
-0.207313671708107,
0.204691082239151,
-0.41124990582466125,
0.012067095376551151,
0.2174304574728012,
0.42171886563301086,
-0.22421765327453613,
-0.6152896285057068,
0.46720293164253235,
0.09182143211364746,
0.25832080841064453,
0.6301940679550171,
-0.00012121877807658166,
0.043877698481082916,
0.3747945725917816,
-0.0809115469455719,
-0.36821967363357544,
-0.5027562379837036,
-0.5078127980232239,
-0.0790521502494812,
0.26483896374702454,
0.22928622364997864,
-0.319689005613327,
0.4285567104816437,
0.07915318012237549,
-0.3250603973865509,
0.3382040858268738,
0.6332944631576538,
0.08208373188972473,
-0.07683735340833664,
0.09451226890087128,
-0.16235895454883575,
0.30161887407302856,
-0.1488981395959854,
-0.0706099271774292,
0.4869539141654968,
0.2155136615037918,
-0.03863811865448952,
0.054937466979026794,
-0.021643036976456642,
-0.02710445038974285,
-0.011705029755830765,
0.17982728779315948,
-0.07429201900959015,
-0.11018490046262741,
-0.4340971112251282,
0.42413005232810974,
0.3522650897502899,
0.6402149200439453,
-0.17337392270565033,
-0.22726893424987793,
0.14541324973106384,
-0.08126422017812729,
-0.43023601174354553,
0.30031827092170715,
0.321708083152771,
-0.12212399393320084,
0.18702605366706848,
-0.40782925486564636,
-0.25976425409317017,
-0.36862900853157043,
0.004372920375317335,
-0.41640907526016235,
0.12703478336334229,
-0.26639848947525024,
0.13153083622455597,
0.2910028100013733,
0.015295072458684444,
0.3388897180557251,
0.22372451424598694,
-0.4470449686050415,
-0.007506689988076687,
-0.6929901838302612,
0.18296831846237183,
-0.14821074903011322,
-0.03634733706712723,
0.09349392354488373,
0.36973199248313904,
0.31743794679641724,
0.036896705627441406,
-0.28630566596984863,
0.40656858682632446,
0.0869920551776886,
0.342180073261261,
0.04323924705386162,
0.187297523021698,
0.3242340683937073,
0.1837179809808731,
-0.013221426866948605,
-0.09307899326086044,
-0.19508300721645355,
-0.20660589635372162,
-0.1330893188714981,
0.18090492486953735,
0.09734173864126205,
-0.27020931243896484,
-0.3912978172302246,
0.14655813574790955,
-0.41394081711769104,
0.009193266741931438,
0.12256399542093277,
0.454131156206131,
-0.2755914032459259,
-0.024243373423814774,
-0.038524407893419266,
0.22082214057445526,
-0.09657096117734909,
-0.16265536844730377,
-0.06601259112358093,
0.2261449247598648,
-0.2326458990573883,
0.13177016377449036,
0.338099867105484,
-0.18130898475646973,
0.14130711555480957,
-0.16491784155368805,
-0.06684446334838867,
-0.21560074388980865,
-0.008650371804833412,
-0.26765480637550354,
-0.10671931505203247,
0.43074920773506165,
0.07769317924976349,
0.056267451494932175,
0.12437841296195984,
-0.3719576299190521,
-0.035264238715171814,
0.01337942574173212,
-0.571435809135437,
-0.35186052322387695,
0.06211626157164574,
0.07057809829711914,
-0.12042858451604843,
0.021903103217482567,
-0.34435492753982544,
0.0012693306198343635,
-0.004354457836598158,
-0.1800428032875061,
-0.17487120628356934,
-0.2704453468322754,
-0.33346453309059143,
-0.3149198293685913,
0.34587663412094116,
0.45145633816719055,
-0.5566047430038452,
-0.027075616642832756,
0.09684044122695923,
0.07431027293205261,
0.16745980083942413,
0.3314802050590515,
-0.19075478613376617,
-0.09515240043401718,
-0.2181224524974823,
-0.10006676614284515,
0.0956016331911087,
-0.3112882077693939,
-0.2985934615135193,
-0.0033583410549908876,
-0.019407186657190323,
-0.04835715889930725,
-0.2369234561920166,
-0.10341376811265945,
0.013775357976555824,
0.0616036057472229,
0.6465603709220886,
0.2157905399799347,
-0.12831658124923706,
-0.1761937141418457,
-0.1502935141324997,
-0.2762148082256317,
-0.2542467713356018,
0.08695609122514725,
0.12147033959627151,
0.005973439197987318,
0.23639684915542603,
-0.4764140546321869,
0.07022891193628311,
0.04188122600317001,
-0.0073059299029409885,
0.3011593818664551,
0.3711310923099518,
-0.05341648310422897,
-0.1965111345052719,
0.2541643977165222,
-0.45123717188835144,
0.370187371969223,
-0.07186123728752136,
0.28640660643577576,
-0.2534545361995697,
0.15393558144569397,
-0.2667068839073181,
0.14493955671787262,
-0.05388084426522255,
-0.1338413953781128,
-0.05917182192206383,
0.09799904376268387,
0.22506804764270782,
0.2401246875524521,
-0.11998586356639862,
0.5677842497825623,
0.13529211282730103,
0.13874758780002594,
-0.2335021197795868,
0.2586083710193634,
0.021819699555635452,
0.06880774348974228,
0.13291653990745544,
0.010632363148033619,
0.21421097218990326,
-0.21705545485019684,
-0.06412212550640106,
0.3186340630054474,
0.21736255288124084,
0.04179643839597702,
0.05746179446578026,
0.15771925449371338,
0.25428420305252075,
-0.3891916573047638,
-0.09973958134651184,
0.047288041561841965,
-0.008624499663710594,
-0.02526962012052536,
-0.04055394232273102,
0.24257279932498932,
0.06486048549413681,
0.42057013511657715,
0.14002402126789093,
0.08942031860351562,
0.32157495617866516,
0.02985871024429798,
-0.016004543751478195,
0.1794743537902832,
0.1751997172832489,
0.21789179742336273,
0.02306206338107586,
-0.0838504508137703,
-0.36023131012916565,
0.1493656039237976,
-0.16420523822307587,
0.04955879971385002,
-0.11296407878398895,
0.12475501000881195,
-0.1547977328300476,
-0.02208040840923786,
0.07000422477722168,
0.37086695432662964,
0.22012709081172943,
0.04904801771044731,
-0.20052070915699005,
0.18740993738174438,
0.06052738428115845,
-0.20581471920013428,
-0.04450077936053276,
0.10965384542942047,
0.36466652154922485,
0.2655832767486572,
0.42668768763542175,
-0.04876338317990303,
-0.09510833770036697,
-0.37876376509666443,
-0.035897333174943924,
0.26145097613334656,
-0.2707884609699249,
0.400877445936203,
-0.24347122013568878,
-0.3584270477294922,
0.0938047543168068,
-0.31619611382484436,
-0.3449479937553406,
-0.26493850350379944,
-0.11771001666784286,
0.4375136196613312,
0.11630882322788239,
0.06232859939336777,
-0.21111036837100983,
0.37165504693984985,
0.02543043904006481,
-0.5300375819206238,
-0.023688657209277153,
-0.25739824771881104,
-0.3198365271091461,
0.015924405306577682,
0.3333907723426819,
-0.2213880717754364,
0.06986191123723984,
-0.25470399856567383,
0.02979660965502262,
-0.12554650008678436,
-0.2030436098575592,
0.1615644097328186,
0.15230704843997955,
0.3011632561683655,
-0.06698103994131088,
0.22677646577358246,
-0.24250417947769165,
0.0940600112080574,
0.2750999331474304,
0.06796128302812576,
0.10233999788761139,
0.04893416911363602,
-0.0400865375995636,
0.04410800710320473,
0.024912236258387566,
-0.2555714547634125,
-0.48004627227783203,
-0.3582804501056671,
0.17842288315296173,
0.019613994285464287,
0.3458849787712097,
0.29600876569747925,
0.03824899345636368,
-0.0866619274020195,
0.0641808807849884,
-0.0769638940691948,
-0.15337494015693665,
-0.386554479598999,
0.17241185903549194,
-0.2786792516708374,
-0.2431342452764511,
0.25096896290779114,
0.07473926246166229,
0.3847601115703583,
0.07639512419700623,
-0.60944002866745,
-0.15641140937805176,
-0.12646059691905975,
0.10489997267723083,
0.025826770812273026,
-0.28259173035621643,
0.333442360162735,
-0.08820854872465134,
-0.005147871561348438,
0.21606449782848358,
-0.44045278429985046,
0.03233397752046585,
0.3356821835041046,
0.39132383465766907,
0.2737468481063843,
0.3707468509674072,
-0.17094522714614868,
0.4239253103733063,
0.20260955393314362,
0.04854346811771393,
0.3296656608581543,
-0.15722344815731049,
0.3341201841831207,
-0.0892176479101181,
-0.2969244122505188,
-0.21728409826755524,
-0.2103474885225296,
-0.3245612382888794,
0.16177205741405487,
0.26366469264030457,
-0.034415289759635925,
-0.49671050906181335,
0.11736204475164413,
-0.0801408514380455,
-0.32768815755844116,
0.05564836785197258,
0.1679750233888626,
0.1110881119966507,
0.0038785901851952076,
-0.03782568871974945,
0.22122862935066223,
-0.2119385451078415,
-0.3172353506088257,
0.3629995584487915,
0.08038133382797241,
0.07254918664693832,
-0.13046704232692719,
-0.016119912266731262,
-0.8267485499382019,
0.30459079146385193,
0.004353146068751812,
0.39902418851852417,
-0.31583601236343384,
0.061430059373378754,
0.07918883115053177,
-0.10680613666772842,
0.11924563348293304,
-0.30705422163009644,
-0.08182694017887115,
0.308782696723938,
0.06008578836917877,
-0.21097280085086823,
-0.2092314213514328,
0.126994788646698,
0.18553736805915833,
0.43276646733283997,
0.3602841794490814,
0.01369468867778778,
0.00534077687188983,
0.07416047155857086,
0.14800624549388885,
-0.08962896466255188,
0.02308286726474762,
-0.3215019404888153,
-0.4804900288581848,
-0.2376382201910019,
-0.07142817229032516,
-0.06272473931312561,
0.29828113317489624,
0.13050001859664917,
0.08492040634155273,
0.29117903113365173,
-0.27233585715293884,
0.20810237526893616,
0.09229551255702972,
0.018867410719394684,
0.10576508939266205,
0.10276485234498978,
0.09913883358240128,
0.062490805983543396,
0.3354111611843109,
0.9395032525062561,
0.1009218767285347,
-0.12041643261909485,
0.35449305176734924,
0.39620742201805115,
0.0735521912574768,
0.2287352830171585,
-0.051834020763635635,
0.10316731035709381,
-0.045548636466264725,
0.1310722678899765,
0.047277726233005524,
0.31044861674308777,
-0.24123114347457886,
-0.012340131215751171,
-0.8446321487426758,
-0.1633538454771042,
0.3940396010875702,
-0.11573999375104904,
-0.09637845307588577,
-0.08853166550397873,
0.1918695718050003,
-0.12238290160894394,
0.06642712652683258,
-0.07983365654945374,
0.9389862418174744,
-0.21574154496192932,
-0.1139470785856247,
0.09641893953084946,
-0.14705508947372437,
0.4845150411128998,
-0.5781694054603577,
0.4780518710613251,
-0.327145516872406,
-0.15969052910804749,
-0.2196509838104248,
-0.26893243193626404,
-0.11416176706552505,
-0.17540520429611206,
-0.0028669307939708233,
0.42945000529289246,
-0.13750238716602325,
0.17971093952655792,
0.410351425409317,
0.03124970570206642,
0.16680525243282318,
0.03138017654418945,
-0.15632301568984985,
0.0742267295718193,
-0.06847304105758667,
0.37951433658599854,
-0.07533716410398483,
-0.0879741758108139,
-0.2208288460969925,
-0.023257916793227196,
-0.3305444121360779,
0.2558436989784241,
-0.7046297788619995,
0.09517079591751099,
0.0003450523945502937,
-0.2027989774942398,
0.1387290358543396,
0.14910034835338593,
0.20197676122188568,
0.1502194106578827,
-0.31032535433769226,
0.26503872871398926,
-0.04730689898133278,
-0.15062777698040009,
-0.009702139534056187,
-0.015875600278377533,
0.010616580955684185,
-0.05788270756602287,
-0.08001817017793655,
0.4451649785041809,
-0.013192219659686089,
-0.40168845653533936,
0.049770575016736984,
0.04142635315656662,
0.01560094952583313,
-0.06720072031021118,
0.13101989030838013,
-0.09139546751976013,
0.033471543341875076,
0.06900841742753983,
0.0271309707313776,
0.12051814794540405,
0.15398725867271423,
-0.01963222585618496,
0.228292316198349,
-0.2593366205692291,
-0.015715690329670906,
0.3636077344417572,
-0.013595680706202984,
-0.03195074200630188,
0.18604311347007751,
0.4898224174976349,
-0.0020252298563718796,
-0.07053115963935852,
-0.13957972824573517,
0.21268866956233978,
-0.3972608149051666,
0.11640327423810959,
-0.04323434457182884,
0.1496535688638687,
0.033379748463630676,
0.3472810387611389,
0.31434106826782227,
0.03172582387924194,
0.3876163363456726,
-0.5564650297164917,
-0.2944401204586029,
0.05444793775677681,
-0.1690245419740677,
0.1841665506362915,
0.1040884405374527,
-0.16329418122768402,
-0.22763927280902863,
-0.0018327642465010285,
-0.19226022064685822,
0.0723111554980278,
-0.3587888181209564,
-0.1759030967950821,
0.17263749241828918,
-0.11618585884571075,
0.5185422897338867,
-0.13682834804058075,
-0.047944825142621994,
-0.018405241891741753,
-0.3581273555755615,
-0.05649185925722122,
-0.014560634270310402,
0.2017892599105835,
0.17124150693416595,
-0.44309213757514954,
-0.1755433827638626,
-0.07752804458141327,
0.048568952828645706,
0.05439472198486328,
0.18474406003952026,
0.19843967258930206,
-0.18030767142772675,
-0.32938504219055176,
-0.4175056219100952,
0.008154628798365593,
-0.31776684522628784,
0.3675777316093445,
0.23193000257015228,
0.4606674015522003,
0.21742182970046997,
0.2435663491487503,
-0.016910575330257416,
-0.13365846872329712,
-0.11765900254249573,
0.2129967361688614,
-0.05351053178310394,
-0.26453274488449097,
0.19652338325977325,
-0.43278220295906067,
0.06015931814908981,
-0.24055512249469757,
0.2324359118938446,
0.07866447418928146,
-0.21387504041194916,
0.14287684857845306,
0.18814364075660706,
0.0525173582136631,
-0.07040449231863022,
-0.03283383324742317,
0.141388401389122,
-0.027203239500522614,
0.031048739328980446,
0.2250305861234665,
0.386873334646225,
-0.1784224957227707,
0.0799669399857521,
0.24590614438056946,
0.5618064999580383,
0.12238901108503342,
0.1421126425266266,
-0.1236971840262413,
-0.12370531260967255,
0.1257035732269287,
0.40945321321487427,
0.008993062190711498,
0.032767556607723236,
0.021119477227330208,
-0.36507096886634827,
-0.03492603078484535,
-0.0059554255567491055,
0.018313834443688393,
0.033274974673986435,
-0.5767639875411987,
0.10643797367811203,
0.14117637276649475,
-0.17957821488380432,
-0.17170360684394836,
-0.08942203968763351,
0.4524858295917511,
-0.21003013849258423,
-0.017403464764356613,
-0.3908972442150116,
0.18800708651542664,
-0.024239961057901382,
-0.03971397504210472,
0.118291936814785,
-0.44159090518951416,
-0.13059905171394348,
0.2427268922328949,
0.006991563364863396,
-0.15939585864543915,
-0.004667696077376604,
0.08597667515277863,
-0.2388293296098709,
-0.3000749945640564,
-0.07559313625097275,
0.306964635848999,
-0.04264751449227333,
-0.09364799410104752,
0.44977137446403503,
0.027336200699210167,
-0.17066088318824768,
0.155703604221344,
0.01538944523781538,
0.6272586584091187,
0.26542437076568604,
0.18237529695034027,
0.10876874625682831,
-0.12664195895195007,
0.0071309576742351055,
0.1697155237197876,
0.08836482465267181,
0.19004109501838684,
-0.3322160542011261,
0.16854128241539001,
0.0786483883857727,
0.025846334174275398,
0.28314754366874695,
-0.0928124338388443,
0.3121078908443451,
0.02945747599005699,
0.01797924004495144,
-0.1460423320531845,
0.1118159294128418,
-0.15921050310134888,
0.042283784598112106,
-0.31451287865638733,
0.17835788428783417,
0.3862515091896057,
-0.14028535783290863,
0.269382506608963,
0.15430282056331635,
0.008642376400530338,
-0.17800670862197876,
0.4599907100200653,
0.34055447578430176,
0.23232920467853546,
-0.3487297594547272,
-0.1899099051952362,
-0.2473534345626831,
-0.005519538186490536,
-0.11154590547084808,
0.207309290766716,
-0.0416928268969059,
0.15027424693107605,
-0.20463532209396362,
0.3032633066177368,
-0.12179426103830338,
0.3058779835700989,
0.08487701416015625,
0.006398450583219528,
-0.26516881585121155,
0.06634225696325302,
0.009094338864088058,
0.04983079433441162,
-0.15377379953861237,
-0.26247739791870117,
0.08155762404203415,
-0.37340062856674194,
-0.07949920743703842,
-0.11991941183805466,
0.15114188194274902,
0.04269967973232269,
-0.26439112424850464,
0.29913896322250366,
0.24583952128887177,
0.733687162399292,
0.2630752623081207,
-0.009374934248626232,
-0.1382429003715515,
-0.38092339038848877,
-0.02256593108177185,
0.009368767961859703,
0.37374988198280334,
0.2838228940963745,
0.08536721020936966,
-0.2404973953962326,
-0.38511142134666443,
0.4988895654678345,
0.06524689495563507,
0.23662258684635162,
0.16505813598632812,
-0.08640740066766739,
-0.018205080181360245,
0.08529707789421082,
-0.07599518448114395,
-0.10944060236215591,
0.19041407108306885,
0.14073140919208527,
-0.1363414227962494,
-0.31422513723373413,
0.5675709843635559,
-0.34544190764427185,
0.11282479763031006,
-0.15286152064800262,
0.26060357689857483,
0.3078804612159729,
0.020561212673783302,
-0.27052736282348633,
0.12397538125514984,
0.21452319622039795,
-0.1328071653842926,
-0.412602037191391,
0.3355354368686676,
-0.2914162576198578,
-0.06480798870325089,
-0.06114594638347626,
0.14645448327064514,
0.003893492743372917,
-0.3008679449558258,
-0.2765825688838959,
-0.026671838015317917
] |
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.1691725105047226,
0.01683579757809639,
0.06266516447067261,
0.363399475812912,
0.29187697172164917,
-0.1796785444021225,
0.21995890140533447,
-0.04344447702169418,
-0.18381397426128387,
0.06295830756425858,
-0.32389935851097107,
0.13601748645305634,
0.07222908735275269,
0.15775860846042633,
-0.057913508266210556,
-0.09452728927135468,
-0.19010989367961884,
-0.2000555694103241,
-0.06888334453105927,
0.253536581993103,
-0.13285478949546814,
0.475398987531662,
-0.207313671708107,
0.204691082239151,
-0.41124990582466125,
0.012067095376551151,
0.2174304574728012,
0.42171886563301086,
-0.22421765327453613,
-0.6152896285057068,
0.46720293164253235,
0.09182143211364746,
0.25832080841064453,
0.6301940679550171,
-0.00012121877807658166,
0.043877698481082916,
0.3747945725917816,
-0.0809115469455719,
-0.36821967363357544,
-0.5027562379837036,
-0.5078127980232239,
-0.0790521502494812,
0.26483896374702454,
0.22928622364997864,
-0.319689005613327,
0.4285567104816437,
0.07915318012237549,
-0.3250603973865509,
0.3382040858268738,
0.6332944631576538,
0.08208373188972473,
-0.07683735340833664,
0.09451226890087128,
-0.16235895454883575,
0.30161887407302856,
-0.1488981395959854,
-0.0706099271774292,
0.4869539141654968,
0.2155136615037918,
-0.03863811865448952,
0.054937466979026794,
-0.021643036976456642,
-0.02710445038974285,
-0.011705029755830765,
0.17982728779315948,
-0.07429201900959015,
-0.11018490046262741,
-0.4340971112251282,
0.42413005232810974,
0.3522650897502899,
0.6402149200439453,
-0.17337392270565033,
-0.22726893424987793,
0.14541324973106384,
-0.08126422017812729,
-0.43023601174354553,
0.30031827092170715,
0.321708083152771,
-0.12212399393320084,
0.18702605366706848,
-0.40782925486564636,
-0.25976425409317017,
-0.36862900853157043,
0.004372920375317335,
-0.41640907526016235,
0.12703478336334229,
-0.26639848947525024,
0.13153083622455597,
0.2910028100013733,
0.015295072458684444,
0.3388897180557251,
0.22372451424598694,
-0.4470449686050415,
-0.007506689988076687,
-0.6929901838302612,
0.18296831846237183,
-0.14821074903011322,
-0.03634733706712723,
0.09349392354488373,
0.36973199248313904,
0.31743794679641724,
0.036896705627441406,
-0.28630566596984863,
0.40656858682632446,
0.0869920551776886,
0.342180073261261,
0.04323924705386162,
0.187297523021698,
0.3242340683937073,
0.1837179809808731,
-0.013221426866948605,
-0.09307899326086044,
-0.19508300721645355,
-0.20660589635372162,
-0.1330893188714981,
0.18090492486953735,
0.09734173864126205,
-0.27020931243896484,
-0.3912978172302246,
0.14655813574790955,
-0.41394081711769104,
0.009193266741931438,
0.12256399542093277,
0.454131156206131,
-0.2755914032459259,
-0.024243373423814774,
-0.038524407893419266,
0.22082214057445526,
-0.09657096117734909,
-0.16265536844730377,
-0.06601259112358093,
0.2261449247598648,
-0.2326458990573883,
0.13177016377449036,
0.338099867105484,
-0.18130898475646973,
0.14130711555480957,
-0.16491784155368805,
-0.06684446334838867,
-0.21560074388980865,
-0.008650371804833412,
-0.26765480637550354,
-0.10671931505203247,
0.43074920773506165,
0.07769317924976349,
0.056267451494932175,
0.12437841296195984,
-0.3719576299190521,
-0.035264238715171814,
0.01337942574173212,
-0.571435809135437,
-0.35186052322387695,
0.06211626157164574,
0.07057809829711914,
-0.12042858451604843,
0.021903103217482567,
-0.34435492753982544,
0.0012693306198343635,
-0.004354457836598158,
-0.1800428032875061,
-0.17487120628356934,
-0.2704453468322754,
-0.33346453309059143,
-0.3149198293685913,
0.34587663412094116,
0.45145633816719055,
-0.5566047430038452,
-0.027075616642832756,
0.09684044122695923,
0.07431027293205261,
0.16745980083942413,
0.3314802050590515,
-0.19075478613376617,
-0.09515240043401718,
-0.2181224524974823,
-0.10006676614284515,
0.0956016331911087,
-0.3112882077693939,
-0.2985934615135193,
-0.0033583410549908876,
-0.019407186657190323,
-0.04835715889930725,
-0.2369234561920166,
-0.10341376811265945,
0.013775357976555824,
0.0616036057472229,
0.6465603709220886,
0.2157905399799347,
-0.12831658124923706,
-0.1761937141418457,
-0.1502935141324997,
-0.2762148082256317,
-0.2542467713356018,
0.08695609122514725,
0.12147033959627151,
0.005973439197987318,
0.23639684915542603,
-0.4764140546321869,
0.07022891193628311,
0.04188122600317001,
-0.0073059299029409885,
0.3011593818664551,
0.3711310923099518,
-0.05341648310422897,
-0.1965111345052719,
0.2541643977165222,
-0.45123717188835144,
0.370187371969223,
-0.07186123728752136,
0.28640660643577576,
-0.2534545361995697,
0.15393558144569397,
-0.2667068839073181,
0.14493955671787262,
-0.05388084426522255,
-0.1338413953781128,
-0.05917182192206383,
0.09799904376268387,
0.22506804764270782,
0.2401246875524521,
-0.11998586356639862,
0.5677842497825623,
0.13529211282730103,
0.13874758780002594,
-0.2335021197795868,
0.2586083710193634,
0.021819699555635452,
0.06880774348974228,
0.13291653990745544,
0.010632363148033619,
0.21421097218990326,
-0.21705545485019684,
-0.06412212550640106,
0.3186340630054474,
0.21736255288124084,
0.04179643839597702,
0.05746179446578026,
0.15771925449371338,
0.25428420305252075,
-0.3891916573047638,
-0.09973958134651184,
0.047288041561841965,
-0.008624499663710594,
-0.02526962012052536,
-0.04055394232273102,
0.24257279932498932,
0.06486048549413681,
0.42057013511657715,
0.14002402126789093,
0.08942031860351562,
0.32157495617866516,
0.02985871024429798,
-0.016004543751478195,
0.1794743537902832,
0.1751997172832489,
0.21789179742336273,
0.02306206338107586,
-0.0838504508137703,
-0.36023131012916565,
0.1493656039237976,
-0.16420523822307587,
0.04955879971385002,
-0.11296407878398895,
0.12475501000881195,
-0.1547977328300476,
-0.02208040840923786,
0.07000422477722168,
0.37086695432662964,
0.22012709081172943,
0.04904801771044731,
-0.20052070915699005,
0.18740993738174438,
0.06052738428115845,
-0.20581471920013428,
-0.04450077936053276,
0.10965384542942047,
0.36466652154922485,
0.2655832767486572,
0.42668768763542175,
-0.04876338317990303,
-0.09510833770036697,
-0.37876376509666443,
-0.035897333174943924,
0.26145097613334656,
-0.2707884609699249,
0.400877445936203,
-0.24347122013568878,
-0.3584270477294922,
0.0938047543168068,
-0.31619611382484436,
-0.3449479937553406,
-0.26493850350379944,
-0.11771001666784286,
0.4375136196613312,
0.11630882322788239,
0.06232859939336777,
-0.21111036837100983,
0.37165504693984985,
0.02543043904006481,
-0.5300375819206238,
-0.023688657209277153,
-0.25739824771881104,
-0.3198365271091461,
0.015924405306577682,
0.3333907723426819,
-0.2213880717754364,
0.06986191123723984,
-0.25470399856567383,
0.02979660965502262,
-0.12554650008678436,
-0.2030436098575592,
0.1615644097328186,
0.15230704843997955,
0.3011632561683655,
-0.06698103994131088,
0.22677646577358246,
-0.24250417947769165,
0.0940600112080574,
0.2750999331474304,
0.06796128302812576,
0.10233999788761139,
0.04893416911363602,
-0.0400865375995636,
0.04410800710320473,
0.024912236258387566,
-0.2555714547634125,
-0.48004627227783203,
-0.3582804501056671,
0.17842288315296173,
0.019613994285464287,
0.3458849787712097,
0.29600876569747925,
0.03824899345636368,
-0.0866619274020195,
0.0641808807849884,
-0.0769638940691948,
-0.15337494015693665,
-0.386554479598999,
0.17241185903549194,
-0.2786792516708374,
-0.2431342452764511,
0.25096896290779114,
0.07473926246166229,
0.3847601115703583,
0.07639512419700623,
-0.60944002866745,
-0.15641140937805176,
-0.12646059691905975,
0.10489997267723083,
0.025826770812273026,
-0.28259173035621643,
0.333442360162735,
-0.08820854872465134,
-0.005147871561348438,
0.21606449782848358,
-0.44045278429985046,
0.03233397752046585,
0.3356821835041046,
0.39132383465766907,
0.2737468481063843,
0.3707468509674072,
-0.17094522714614868,
0.4239253103733063,
0.20260955393314362,
0.04854346811771393,
0.3296656608581543,
-0.15722344815731049,
0.3341201841831207,
-0.0892176479101181,
-0.2969244122505188,
-0.21728409826755524,
-0.2103474885225296,
-0.3245612382888794,
0.16177205741405487,
0.26366469264030457,
-0.034415289759635925,
-0.49671050906181335,
0.11736204475164413,
-0.0801408514380455,
-0.32768815755844116,
0.05564836785197258,
0.1679750233888626,
0.1110881119966507,
0.0038785901851952076,
-0.03782568871974945,
0.22122862935066223,
-0.2119385451078415,
-0.3172353506088257,
0.3629995584487915,
0.08038133382797241,
0.07254918664693832,
-0.13046704232692719,
-0.016119912266731262,
-0.8267485499382019,
0.30459079146385193,
0.004353146068751812,
0.39902418851852417,
-0.31583601236343384,
0.061430059373378754,
0.07918883115053177,
-0.10680613666772842,
0.11924563348293304,
-0.30705422163009644,
-0.08182694017887115,
0.308782696723938,
0.06008578836917877,
-0.21097280085086823,
-0.2092314213514328,
0.126994788646698,
0.18553736805915833,
0.43276646733283997,
0.3602841794490814,
0.01369468867778778,
0.00534077687188983,
0.07416047155857086,
0.14800624549388885,
-0.08962896466255188,
0.02308286726474762,
-0.3215019404888153,
-0.4804900288581848,
-0.2376382201910019,
-0.07142817229032516,
-0.06272473931312561,
0.29828113317489624,
0.13050001859664917,
0.08492040634155273,
0.29117903113365173,
-0.27233585715293884,
0.20810237526893616,
0.09229551255702972,
0.018867410719394684,
0.10576508939266205,
0.10276485234498978,
0.09913883358240128,
0.062490805983543396,
0.3354111611843109,
0.9395032525062561,
0.1009218767285347,
-0.12041643261909485,
0.35449305176734924,
0.39620742201805115,
0.0735521912574768,
0.2287352830171585,
-0.051834020763635635,
0.10316731035709381,
-0.045548636466264725,
0.1310722678899765,
0.047277726233005524,
0.31044861674308777,
-0.24123114347457886,
-0.012340131215751171,
-0.8446321487426758,
-0.1633538454771042,
0.3940396010875702,
-0.11573999375104904,
-0.09637845307588577,
-0.08853166550397873,
0.1918695718050003,
-0.12238290160894394,
0.06642712652683258,
-0.07983365654945374,
0.9389862418174744,
-0.21574154496192932,
-0.1139470785856247,
0.09641893953084946,
-0.14705508947372437,
0.4845150411128998,
-0.5781694054603577,
0.4780518710613251,
-0.327145516872406,
-0.15969052910804749,
-0.2196509838104248,
-0.26893243193626404,
-0.11416176706552505,
-0.17540520429611206,
-0.0028669307939708233,
0.42945000529289246,
-0.13750238716602325,
0.17971093952655792,
0.410351425409317,
0.03124970570206642,
0.16680525243282318,
0.03138017654418945,
-0.15632301568984985,
0.0742267295718193,
-0.06847304105758667,
0.37951433658599854,
-0.07533716410398483,
-0.0879741758108139,
-0.2208288460969925,
-0.023257916793227196,
-0.3305444121360779,
0.2558436989784241,
-0.7046297788619995,
0.09517079591751099,
0.0003450523945502937,
-0.2027989774942398,
0.1387290358543396,
0.14910034835338593,
0.20197676122188568,
0.1502194106578827,
-0.31032535433769226,
0.26503872871398926,
-0.04730689898133278,
-0.15062777698040009,
-0.009702139534056187,
-0.015875600278377533,
0.010616580955684185,
-0.05788270756602287,
-0.08001817017793655,
0.4451649785041809,
-0.013192219659686089,
-0.40168845653533936,
0.049770575016736984,
0.04142635315656662,
0.01560094952583313,
-0.06720072031021118,
0.13101989030838013,
-0.09139546751976013,
0.033471543341875076,
0.06900841742753983,
0.0271309707313776,
0.12051814794540405,
0.15398725867271423,
-0.01963222585618496,
0.228292316198349,
-0.2593366205692291,
-0.015715690329670906,
0.3636077344417572,
-0.013595680706202984,
-0.03195074200630188,
0.18604311347007751,
0.4898224174976349,
-0.0020252298563718796,
-0.07053115963935852,
-0.13957972824573517,
0.21268866956233978,
-0.3972608149051666,
0.11640327423810959,
-0.04323434457182884,
0.1496535688638687,
0.033379748463630676,
0.3472810387611389,
0.31434106826782227,
0.03172582387924194,
0.3876163363456726,
-0.5564650297164917,
-0.2944401204586029,
0.05444793775677681,
-0.1690245419740677,
0.1841665506362915,
0.1040884405374527,
-0.16329418122768402,
-0.22763927280902863,
-0.0018327642465010285,
-0.19226022064685822,
0.0723111554980278,
-0.3587888181209564,
-0.1759030967950821,
0.17263749241828918,
-0.11618585884571075,
0.5185422897338867,
-0.13682834804058075,
-0.047944825142621994,
-0.018405241891741753,
-0.3581273555755615,
-0.05649185925722122,
-0.014560634270310402,
0.2017892599105835,
0.17124150693416595,
-0.44309213757514954,
-0.1755433827638626,
-0.07752804458141327,
0.048568952828645706,
0.05439472198486328,
0.18474406003952026,
0.19843967258930206,
-0.18030767142772675,
-0.32938504219055176,
-0.4175056219100952,
0.008154628798365593,
-0.31776684522628784,
0.3675777316093445,
0.23193000257015228,
0.4606674015522003,
0.21742182970046997,
0.2435663491487503,
-0.016910575330257416,
-0.13365846872329712,
-0.11765900254249573,
0.2129967361688614,
-0.05351053178310394,
-0.26453274488449097,
0.19652338325977325,
-0.43278220295906067,
0.06015931814908981,
-0.24055512249469757,
0.2324359118938446,
0.07866447418928146,
-0.21387504041194916,
0.14287684857845306,
0.18814364075660706,
0.0525173582136631,
-0.07040449231863022,
-0.03283383324742317,
0.141388401389122,
-0.027203239500522614,
0.031048739328980446,
0.2250305861234665,
0.386873334646225,
-0.1784224957227707,
0.0799669399857521,
0.24590614438056946,
0.5618064999580383,
0.12238901108503342,
0.1421126425266266,
-0.1236971840262413,
-0.12370531260967255,
0.1257035732269287,
0.40945321321487427,
0.008993062190711498,
0.032767556607723236,
0.021119477227330208,
-0.36507096886634827,
-0.03492603078484535,
-0.0059554255567491055,
0.018313834443688393,
0.033274974673986435,
-0.5767639875411987,
0.10643797367811203,
0.14117637276649475,
-0.17957821488380432,
-0.17170360684394836,
-0.08942203968763351,
0.4524858295917511,
-0.21003013849258423,
-0.017403464764356613,
-0.3908972442150116,
0.18800708651542664,
-0.024239961057901382,
-0.03971397504210472,
0.118291936814785,
-0.44159090518951416,
-0.13059905171394348,
0.2427268922328949,
0.006991563364863396,
-0.15939585864543915,
-0.004667696077376604,
0.08597667515277863,
-0.2388293296098709,
-0.3000749945640564,
-0.07559313625097275,
0.306964635848999,
-0.04264751449227333,
-0.09364799410104752,
0.44977137446403503,
0.027336200699210167,
-0.17066088318824768,
0.155703604221344,
0.01538944523781538,
0.6272586584091187,
0.26542437076568604,
0.18237529695034027,
0.10876874625682831,
-0.12664195895195007,
0.0071309576742351055,
0.1697155237197876,
0.08836482465267181,
0.19004109501838684,
-0.3322160542011261,
0.16854128241539001,
0.0786483883857727,
0.025846334174275398,
0.28314754366874695,
-0.0928124338388443,
0.3121078908443451,
0.02945747599005699,
0.01797924004495144,
-0.1460423320531845,
0.1118159294128418,
-0.15921050310134888,
0.042283784598112106,
-0.31451287865638733,
0.17835788428783417,
0.3862515091896057,
-0.14028535783290863,
0.269382506608963,
0.15430282056331635,
0.008642376400530338,
-0.17800670862197876,
0.4599907100200653,
0.34055447578430176,
0.23232920467853546,
-0.3487297594547272,
-0.1899099051952362,
-0.2473534345626831,
-0.005519538186490536,
-0.11154590547084808,
0.207309290766716,
-0.0416928268969059,
0.15027424693107605,
-0.20463532209396362,
0.3032633066177368,
-0.12179426103830338,
0.3058779835700989,
0.08487701416015625,
0.006398450583219528,
-0.26516881585121155,
0.06634225696325302,
0.009094338864088058,
0.04983079433441162,
-0.15377379953861237,
-0.26247739791870117,
0.08155762404203415,
-0.37340062856674194,
-0.07949920743703842,
-0.11991941183805466,
0.15114188194274902,
0.04269967973232269,
-0.26439112424850464,
0.29913896322250366,
0.24583952128887177,
0.733687162399292,
0.2630752623081207,
-0.009374934248626232,
-0.1382429003715515,
-0.38092339038848877,
-0.02256593108177185,
0.009368767961859703,
0.37374988198280334,
0.2838228940963745,
0.08536721020936966,
-0.2404973953962326,
-0.38511142134666443,
0.4988895654678345,
0.06524689495563507,
0.23662258684635162,
0.16505813598632812,
-0.08640740066766739,
-0.018205080181360245,
0.08529707789421082,
-0.07599518448114395,
-0.10944060236215591,
0.19041407108306885,
0.14073140919208527,
-0.1363414227962494,
-0.31422513723373413,
0.5675709843635559,
-0.34544190764427185,
0.11282479763031006,
-0.15286152064800262,
0.26060357689857483,
0.3078804612159729,
0.020561212673783302,
-0.27052736282348633,
0.12397538125514984,
0.21452319622039795,
-0.1328071653842926,
-0.412602037191391,
0.3355354368686676,
-0.2914162576198578,
-0.06480798870325089,
-0.06114594638347626,
0.14645448327064514,
0.003893492743372917,
-0.3008679449558258,
-0.2765825688838959,
-0.026671838015317917
] |
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.1691725105047226,
0.01683579757809639,
0.06266516447067261,
0.363399475812912,
0.29187697172164917,
-0.1796785444021225,
0.21995890140533447,
-0.04344447702169418,
-0.18381397426128387,
0.06295830756425858,
-0.32389935851097107,
0.13601748645305634,
0.07222908735275269,
0.15775860846042633,
-0.057913508266210556,
-0.09452728927135468,
-0.19010989367961884,
-0.2000555694103241,
-0.06888334453105927,
0.253536581993103,
-0.13285478949546814,
0.475398987531662,
-0.207313671708107,
0.204691082239151,
-0.41124990582466125,
0.012067095376551151,
0.2174304574728012,
0.42171886563301086,
-0.22421765327453613,
-0.6152896285057068,
0.46720293164253235,
0.09182143211364746,
0.25832080841064453,
0.6301940679550171,
-0.00012121877807658166,
0.043877698481082916,
0.3747945725917816,
-0.0809115469455719,
-0.36821967363357544,
-0.5027562379837036,
-0.5078127980232239,
-0.0790521502494812,
0.26483896374702454,
0.22928622364997864,
-0.319689005613327,
0.4285567104816437,
0.07915318012237549,
-0.3250603973865509,
0.3382040858268738,
0.6332944631576538,
0.08208373188972473,
-0.07683735340833664,
0.09451226890087128,
-0.16235895454883575,
0.30161887407302856,
-0.1488981395959854,
-0.0706099271774292,
0.4869539141654968,
0.2155136615037918,
-0.03863811865448952,
0.054937466979026794,
-0.021643036976456642,
-0.02710445038974285,
-0.011705029755830765,
0.17982728779315948,
-0.07429201900959015,
-0.11018490046262741,
-0.4340971112251282,
0.42413005232810974,
0.3522650897502899,
0.6402149200439453,
-0.17337392270565033,
-0.22726893424987793,
0.14541324973106384,
-0.08126422017812729,
-0.43023601174354553,
0.30031827092170715,
0.321708083152771,
-0.12212399393320084,
0.18702605366706848,
-0.40782925486564636,
-0.25976425409317017,
-0.36862900853157043,
0.004372920375317335,
-0.41640907526016235,
0.12703478336334229,
-0.26639848947525024,
0.13153083622455597,
0.2910028100013733,
0.015295072458684444,
0.3388897180557251,
0.22372451424598694,
-0.4470449686050415,
-0.007506689988076687,
-0.6929901838302612,
0.18296831846237183,
-0.14821074903011322,
-0.03634733706712723,
0.09349392354488373,
0.36973199248313904,
0.31743794679641724,
0.036896705627441406,
-0.28630566596984863,
0.40656858682632446,
0.0869920551776886,
0.342180073261261,
0.04323924705386162,
0.187297523021698,
0.3242340683937073,
0.1837179809808731,
-0.013221426866948605,
-0.09307899326086044,
-0.19508300721645355,
-0.20660589635372162,
-0.1330893188714981,
0.18090492486953735,
0.09734173864126205,
-0.27020931243896484,
-0.3912978172302246,
0.14655813574790955,
-0.41394081711769104,
0.009193266741931438,
0.12256399542093277,
0.454131156206131,
-0.2755914032459259,
-0.024243373423814774,
-0.038524407893419266,
0.22082214057445526,
-0.09657096117734909,
-0.16265536844730377,
-0.06601259112358093,
0.2261449247598648,
-0.2326458990573883,
0.13177016377449036,
0.338099867105484,
-0.18130898475646973,
0.14130711555480957,
-0.16491784155368805,
-0.06684446334838867,
-0.21560074388980865,
-0.008650371804833412,
-0.26765480637550354,
-0.10671931505203247,
0.43074920773506165,
0.07769317924976349,
0.056267451494932175,
0.12437841296195984,
-0.3719576299190521,
-0.035264238715171814,
0.01337942574173212,
-0.571435809135437,
-0.35186052322387695,
0.06211626157164574,
0.07057809829711914,
-0.12042858451604843,
0.021903103217482567,
-0.34435492753982544,
0.0012693306198343635,
-0.004354457836598158,
-0.1800428032875061,
-0.17487120628356934,
-0.2704453468322754,
-0.33346453309059143,
-0.3149198293685913,
0.34587663412094116,
0.45145633816719055,
-0.5566047430038452,
-0.027075616642832756,
0.09684044122695923,
0.07431027293205261,
0.16745980083942413,
0.3314802050590515,
-0.19075478613376617,
-0.09515240043401718,
-0.2181224524974823,
-0.10006676614284515,
0.0956016331911087,
-0.3112882077693939,
-0.2985934615135193,
-0.0033583410549908876,
-0.019407186657190323,
-0.04835715889930725,
-0.2369234561920166,
-0.10341376811265945,
0.013775357976555824,
0.0616036057472229,
0.6465603709220886,
0.2157905399799347,
-0.12831658124923706,
-0.1761937141418457,
-0.1502935141324997,
-0.2762148082256317,
-0.2542467713356018,
0.08695609122514725,
0.12147033959627151,
0.005973439197987318,
0.23639684915542603,
-0.4764140546321869,
0.07022891193628311,
0.04188122600317001,
-0.0073059299029409885,
0.3011593818664551,
0.3711310923099518,
-0.05341648310422897,
-0.1965111345052719,
0.2541643977165222,
-0.45123717188835144,
0.370187371969223,
-0.07186123728752136,
0.28640660643577576,
-0.2534545361995697,
0.15393558144569397,
-0.2667068839073181,
0.14493955671787262,
-0.05388084426522255,
-0.1338413953781128,
-0.05917182192206383,
0.09799904376268387,
0.22506804764270782,
0.2401246875524521,
-0.11998586356639862,
0.5677842497825623,
0.13529211282730103,
0.13874758780002594,
-0.2335021197795868,
0.2586083710193634,
0.021819699555635452,
0.06880774348974228,
0.13291653990745544,
0.010632363148033619,
0.21421097218990326,
-0.21705545485019684,
-0.06412212550640106,
0.3186340630054474,
0.21736255288124084,
0.04179643839597702,
0.05746179446578026,
0.15771925449371338,
0.25428420305252075,
-0.3891916573047638,
-0.09973958134651184,
0.047288041561841965,
-0.008624499663710594,
-0.02526962012052536,
-0.04055394232273102,
0.24257279932498932,
0.06486048549413681,
0.42057013511657715,
0.14002402126789093,
0.08942031860351562,
0.32157495617866516,
0.02985871024429798,
-0.016004543751478195,
0.1794743537902832,
0.1751997172832489,
0.21789179742336273,
0.02306206338107586,
-0.0838504508137703,
-0.36023131012916565,
0.1493656039237976,
-0.16420523822307587,
0.04955879971385002,
-0.11296407878398895,
0.12475501000881195,
-0.1547977328300476,
-0.02208040840923786,
0.07000422477722168,
0.37086695432662964,
0.22012709081172943,
0.04904801771044731,
-0.20052070915699005,
0.18740993738174438,
0.06052738428115845,
-0.20581471920013428,
-0.04450077936053276,
0.10965384542942047,
0.36466652154922485,
0.2655832767486572,
0.42668768763542175,
-0.04876338317990303,
-0.09510833770036697,
-0.37876376509666443,
-0.035897333174943924,
0.26145097613334656,
-0.2707884609699249,
0.400877445936203,
-0.24347122013568878,
-0.3584270477294922,
0.0938047543168068,
-0.31619611382484436,
-0.3449479937553406,
-0.26493850350379944,
-0.11771001666784286,
0.4375136196613312,
0.11630882322788239,
0.06232859939336777,
-0.21111036837100983,
0.37165504693984985,
0.02543043904006481,
-0.5300375819206238,
-0.023688657209277153,
-0.25739824771881104,
-0.3198365271091461,
0.015924405306577682,
0.3333907723426819,
-0.2213880717754364,
0.06986191123723984,
-0.25470399856567383,
0.02979660965502262,
-0.12554650008678436,
-0.2030436098575592,
0.1615644097328186,
0.15230704843997955,
0.3011632561683655,
-0.06698103994131088,
0.22677646577358246,
-0.24250417947769165,
0.0940600112080574,
0.2750999331474304,
0.06796128302812576,
0.10233999788761139,
0.04893416911363602,
-0.0400865375995636,
0.04410800710320473,
0.024912236258387566,
-0.2555714547634125,
-0.48004627227783203,
-0.3582804501056671,
0.17842288315296173,
0.019613994285464287,
0.3458849787712097,
0.29600876569747925,
0.03824899345636368,
-0.0866619274020195,
0.0641808807849884,
-0.0769638940691948,
-0.15337494015693665,
-0.386554479598999,
0.17241185903549194,
-0.2786792516708374,
-0.2431342452764511,
0.25096896290779114,
0.07473926246166229,
0.3847601115703583,
0.07639512419700623,
-0.60944002866745,
-0.15641140937805176,
-0.12646059691905975,
0.10489997267723083,
0.025826770812273026,
-0.28259173035621643,
0.333442360162735,
-0.08820854872465134,
-0.005147871561348438,
0.21606449782848358,
-0.44045278429985046,
0.03233397752046585,
0.3356821835041046,
0.39132383465766907,
0.2737468481063843,
0.3707468509674072,
-0.17094522714614868,
0.4239253103733063,
0.20260955393314362,
0.04854346811771393,
0.3296656608581543,
-0.15722344815731049,
0.3341201841831207,
-0.0892176479101181,
-0.2969244122505188,
-0.21728409826755524,
-0.2103474885225296,
-0.3245612382888794,
0.16177205741405487,
0.26366469264030457,
-0.034415289759635925,
-0.49671050906181335,
0.11736204475164413,
-0.0801408514380455,
-0.32768815755844116,
0.05564836785197258,
0.1679750233888626,
0.1110881119966507,
0.0038785901851952076,
-0.03782568871974945,
0.22122862935066223,
-0.2119385451078415,
-0.3172353506088257,
0.3629995584487915,
0.08038133382797241,
0.07254918664693832,
-0.13046704232692719,
-0.016119912266731262,
-0.8267485499382019,
0.30459079146385193,
0.004353146068751812,
0.39902418851852417,
-0.31583601236343384,
0.061430059373378754,
0.07918883115053177,
-0.10680613666772842,
0.11924563348293304,
-0.30705422163009644,
-0.08182694017887115,
0.308782696723938,
0.06008578836917877,
-0.21097280085086823,
-0.2092314213514328,
0.126994788646698,
0.18553736805915833,
0.43276646733283997,
0.3602841794490814,
0.01369468867778778,
0.00534077687188983,
0.07416047155857086,
0.14800624549388885,
-0.08962896466255188,
0.02308286726474762,
-0.3215019404888153,
-0.4804900288581848,
-0.2376382201910019,
-0.07142817229032516,
-0.06272473931312561,
0.29828113317489624,
0.13050001859664917,
0.08492040634155273,
0.29117903113365173,
-0.27233585715293884,
0.20810237526893616,
0.09229551255702972,
0.018867410719394684,
0.10576508939266205,
0.10276485234498978,
0.09913883358240128,
0.062490805983543396,
0.3354111611843109,
0.9395032525062561,
0.1009218767285347,
-0.12041643261909485,
0.35449305176734924,
0.39620742201805115,
0.0735521912574768,
0.2287352830171585,
-0.051834020763635635,
0.10316731035709381,
-0.045548636466264725,
0.1310722678899765,
0.047277726233005524,
0.31044861674308777,
-0.24123114347457886,
-0.012340131215751171,
-0.8446321487426758,
-0.1633538454771042,
0.3940396010875702,
-0.11573999375104904,
-0.09637845307588577,
-0.08853166550397873,
0.1918695718050003,
-0.12238290160894394,
0.06642712652683258,
-0.07983365654945374,
0.9389862418174744,
-0.21574154496192932,
-0.1139470785856247,
0.09641893953084946,
-0.14705508947372437,
0.4845150411128998,
-0.5781694054603577,
0.4780518710613251,
-0.327145516872406,
-0.15969052910804749,
-0.2196509838104248,
-0.26893243193626404,
-0.11416176706552505,
-0.17540520429611206,
-0.0028669307939708233,
0.42945000529289246,
-0.13750238716602325,
0.17971093952655792,
0.410351425409317,
0.03124970570206642,
0.16680525243282318,
0.03138017654418945,
-0.15632301568984985,
0.0742267295718193,
-0.06847304105758667,
0.37951433658599854,
-0.07533716410398483,
-0.0879741758108139,
-0.2208288460969925,
-0.023257916793227196,
-0.3305444121360779,
0.2558436989784241,
-0.7046297788619995,
0.09517079591751099,
0.0003450523945502937,
-0.2027989774942398,
0.1387290358543396,
0.14910034835338593,
0.20197676122188568,
0.1502194106578827,
-0.31032535433769226,
0.26503872871398926,
-0.04730689898133278,
-0.15062777698040009,
-0.009702139534056187,
-0.015875600278377533,
0.010616580955684185,
-0.05788270756602287,
-0.08001817017793655,
0.4451649785041809,
-0.013192219659686089,
-0.40168845653533936,
0.049770575016736984,
0.04142635315656662,
0.01560094952583313,
-0.06720072031021118,
0.13101989030838013,
-0.09139546751976013,
0.033471543341875076,
0.06900841742753983,
0.0271309707313776,
0.12051814794540405,
0.15398725867271423,
-0.01963222585618496,
0.228292316198349,
-0.2593366205692291,
-0.015715690329670906,
0.3636077344417572,
-0.013595680706202984,
-0.03195074200630188,
0.18604311347007751,
0.4898224174976349,
-0.0020252298563718796,
-0.07053115963935852,
-0.13957972824573517,
0.21268866956233978,
-0.3972608149051666,
0.11640327423810959,
-0.04323434457182884,
0.1496535688638687,
0.033379748463630676,
0.3472810387611389,
0.31434106826782227,
0.03172582387924194,
0.3876163363456726,
-0.5564650297164917,
-0.2944401204586029,
0.05444793775677681,
-0.1690245419740677,
0.1841665506362915,
0.1040884405374527,
-0.16329418122768402,
-0.22763927280902863,
-0.0018327642465010285,
-0.19226022064685822,
0.0723111554980278,
-0.3587888181209564,
-0.1759030967950821,
0.17263749241828918,
-0.11618585884571075,
0.5185422897338867,
-0.13682834804058075,
-0.047944825142621994,
-0.018405241891741753,
-0.3581273555755615,
-0.05649185925722122,
-0.014560634270310402,
0.2017892599105835,
0.17124150693416595,
-0.44309213757514954,
-0.1755433827638626,
-0.07752804458141327,
0.048568952828645706,
0.05439472198486328,
0.18474406003952026,
0.19843967258930206,
-0.18030767142772675,
-0.32938504219055176,
-0.4175056219100952,
0.008154628798365593,
-0.31776684522628784,
0.3675777316093445,
0.23193000257015228,
0.4606674015522003,
0.21742182970046997,
0.2435663491487503,
-0.016910575330257416,
-0.13365846872329712,
-0.11765900254249573,
0.2129967361688614,
-0.05351053178310394,
-0.26453274488449097,
0.19652338325977325,
-0.43278220295906067,
0.06015931814908981,
-0.24055512249469757,
0.2324359118938446,
0.07866447418928146,
-0.21387504041194916,
0.14287684857845306,
0.18814364075660706,
0.0525173582136631,
-0.07040449231863022,
-0.03283383324742317,
0.141388401389122,
-0.027203239500522614,
0.031048739328980446,
0.2250305861234665,
0.386873334646225,
-0.1784224957227707,
0.0799669399857521,
0.24590614438056946,
0.5618064999580383,
0.12238901108503342,
0.1421126425266266,
-0.1236971840262413,
-0.12370531260967255,
0.1257035732269287,
0.40945321321487427,
0.008993062190711498,
0.032767556607723236,
0.021119477227330208,
-0.36507096886634827,
-0.03492603078484535,
-0.0059554255567491055,
0.018313834443688393,
0.033274974673986435,
-0.5767639875411987,
0.10643797367811203,
0.14117637276649475,
-0.17957821488380432,
-0.17170360684394836,
-0.08942203968763351,
0.4524858295917511,
-0.21003013849258423,
-0.017403464764356613,
-0.3908972442150116,
0.18800708651542664,
-0.024239961057901382,
-0.03971397504210472,
0.118291936814785,
-0.44159090518951416,
-0.13059905171394348,
0.2427268922328949,
0.006991563364863396,
-0.15939585864543915,
-0.004667696077376604,
0.08597667515277863,
-0.2388293296098709,
-0.3000749945640564,
-0.07559313625097275,
0.306964635848999,
-0.04264751449227333,
-0.09364799410104752,
0.44977137446403503,
0.027336200699210167,
-0.17066088318824768,
0.155703604221344,
0.01538944523781538,
0.6272586584091187,
0.26542437076568604,
0.18237529695034027,
0.10876874625682831,
-0.12664195895195007,
0.0071309576742351055,
0.1697155237197876,
0.08836482465267181,
0.19004109501838684,
-0.3322160542011261,
0.16854128241539001,
0.0786483883857727,
0.025846334174275398,
0.28314754366874695,
-0.0928124338388443,
0.3121078908443451,
0.02945747599005699,
0.01797924004495144,
-0.1460423320531845,
0.1118159294128418,
-0.15921050310134888,
0.042283784598112106,
-0.31451287865638733,
0.17835788428783417,
0.3862515091896057,
-0.14028535783290863,
0.269382506608963,
0.15430282056331635,
0.008642376400530338,
-0.17800670862197876,
0.4599907100200653,
0.34055447578430176,
0.23232920467853546,
-0.3487297594547272,
-0.1899099051952362,
-0.2473534345626831,
-0.005519538186490536,
-0.11154590547084808,
0.207309290766716,
-0.0416928268969059,
0.15027424693107605,
-0.20463532209396362,
0.3032633066177368,
-0.12179426103830338,
0.3058779835700989,
0.08487701416015625,
0.006398450583219528,
-0.26516881585121155,
0.06634225696325302,
0.009094338864088058,
0.04983079433441162,
-0.15377379953861237,
-0.26247739791870117,
0.08155762404203415,
-0.37340062856674194,
-0.07949920743703842,
-0.11991941183805466,
0.15114188194274902,
0.04269967973232269,
-0.26439112424850464,
0.29913896322250366,
0.24583952128887177,
0.733687162399292,
0.2630752623081207,
-0.009374934248626232,
-0.1382429003715515,
-0.38092339038848877,
-0.02256593108177185,
0.009368767961859703,
0.37374988198280334,
0.2838228940963745,
0.08536721020936966,
-0.2404973953962326,
-0.38511142134666443,
0.4988895654678345,
0.06524689495563507,
0.23662258684635162,
0.16505813598632812,
-0.08640740066766739,
-0.018205080181360245,
0.08529707789421082,
-0.07599518448114395,
-0.10944060236215591,
0.19041407108306885,
0.14073140919208527,
-0.1363414227962494,
-0.31422513723373413,
0.5675709843635559,
-0.34544190764427185,
0.11282479763031006,
-0.15286152064800262,
0.26060357689857483,
0.3078804612159729,
0.020561212673783302,
-0.27052736282348633,
0.12397538125514984,
0.21452319622039795,
-0.1328071653842926,
-0.412602037191391,
0.3355354368686676,
-0.2914162576198578,
-0.06480798870325089,
-0.06114594638347626,
0.14645448327064514,
0.003893492743372917,
-0.3008679449558258,
-0.2765825688838959,
-0.026671838015317917
] |
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.1691725105047226,
0.01683579757809639,
0.06266516447067261,
0.363399475812912,
0.29187697172164917,
-0.1796785444021225,
0.21995890140533447,
-0.04344447702169418,
-0.18381397426128387,
0.06295830756425858,
-0.32389935851097107,
0.13601748645305634,
0.07222908735275269,
0.15775860846042633,
-0.057913508266210556,
-0.09452728927135468,
-0.19010989367961884,
-0.2000555694103241,
-0.06888334453105927,
0.253536581993103,
-0.13285478949546814,
0.475398987531662,
-0.207313671708107,
0.204691082239151,
-0.41124990582466125,
0.012067095376551151,
0.2174304574728012,
0.42171886563301086,
-0.22421765327453613,
-0.6152896285057068,
0.46720293164253235,
0.09182143211364746,
0.25832080841064453,
0.6301940679550171,
-0.00012121877807658166,
0.043877698481082916,
0.3747945725917816,
-0.0809115469455719,
-0.36821967363357544,
-0.5027562379837036,
-0.5078127980232239,
-0.0790521502494812,
0.26483896374702454,
0.22928622364997864,
-0.319689005613327,
0.4285567104816437,
0.07915318012237549,
-0.3250603973865509,
0.3382040858268738,
0.6332944631576538,
0.08208373188972473,
-0.07683735340833664,
0.09451226890087128,
-0.16235895454883575,
0.30161887407302856,
-0.1488981395959854,
-0.0706099271774292,
0.4869539141654968,
0.2155136615037918,
-0.03863811865448952,
0.054937466979026794,
-0.021643036976456642,
-0.02710445038974285,
-0.011705029755830765,
0.17982728779315948,
-0.07429201900959015,
-0.11018490046262741,
-0.4340971112251282,
0.42413005232810974,
0.3522650897502899,
0.6402149200439453,
-0.17337392270565033,
-0.22726893424987793,
0.14541324973106384,
-0.08126422017812729,
-0.43023601174354553,
0.30031827092170715,
0.321708083152771,
-0.12212399393320084,
0.18702605366706848,
-0.40782925486564636,
-0.25976425409317017,
-0.36862900853157043,
0.004372920375317335,
-0.41640907526016235,
0.12703478336334229,
-0.26639848947525024,
0.13153083622455597,
0.2910028100013733,
0.015295072458684444,
0.3388897180557251,
0.22372451424598694,
-0.4470449686050415,
-0.007506689988076687,
-0.6929901838302612,
0.18296831846237183,
-0.14821074903011322,
-0.03634733706712723,
0.09349392354488373,
0.36973199248313904,
0.31743794679641724,
0.036896705627441406,
-0.28630566596984863,
0.40656858682632446,
0.0869920551776886,
0.342180073261261,
0.04323924705386162,
0.187297523021698,
0.3242340683937073,
0.1837179809808731,
-0.013221426866948605,
-0.09307899326086044,
-0.19508300721645355,
-0.20660589635372162,
-0.1330893188714981,
0.18090492486953735,
0.09734173864126205,
-0.27020931243896484,
-0.3912978172302246,
0.14655813574790955,
-0.41394081711769104,
0.009193266741931438,
0.12256399542093277,
0.454131156206131,
-0.2755914032459259,
-0.024243373423814774,
-0.038524407893419266,
0.22082214057445526,
-0.09657096117734909,
-0.16265536844730377,
-0.06601259112358093,
0.2261449247598648,
-0.2326458990573883,
0.13177016377449036,
0.338099867105484,
-0.18130898475646973,
0.14130711555480957,
-0.16491784155368805,
-0.06684446334838867,
-0.21560074388980865,
-0.008650371804833412,
-0.26765480637550354,
-0.10671931505203247,
0.43074920773506165,
0.07769317924976349,
0.056267451494932175,
0.12437841296195984,
-0.3719576299190521,
-0.035264238715171814,
0.01337942574173212,
-0.571435809135437,
-0.35186052322387695,
0.06211626157164574,
0.07057809829711914,
-0.12042858451604843,
0.021903103217482567,
-0.34435492753982544,
0.0012693306198343635,
-0.004354457836598158,
-0.1800428032875061,
-0.17487120628356934,
-0.2704453468322754,
-0.33346453309059143,
-0.3149198293685913,
0.34587663412094116,
0.45145633816719055,
-0.5566047430038452,
-0.027075616642832756,
0.09684044122695923,
0.07431027293205261,
0.16745980083942413,
0.3314802050590515,
-0.19075478613376617,
-0.09515240043401718,
-0.2181224524974823,
-0.10006676614284515,
0.0956016331911087,
-0.3112882077693939,
-0.2985934615135193,
-0.0033583410549908876,
-0.019407186657190323,
-0.04835715889930725,
-0.2369234561920166,
-0.10341376811265945,
0.013775357976555824,
0.0616036057472229,
0.6465603709220886,
0.2157905399799347,
-0.12831658124923706,
-0.1761937141418457,
-0.1502935141324997,
-0.2762148082256317,
-0.2542467713356018,
0.08695609122514725,
0.12147033959627151,
0.005973439197987318,
0.23639684915542603,
-0.4764140546321869,
0.07022891193628311,
0.04188122600317001,
-0.0073059299029409885,
0.3011593818664551,
0.3711310923099518,
-0.05341648310422897,
-0.1965111345052719,
0.2541643977165222,
-0.45123717188835144,
0.370187371969223,
-0.07186123728752136,
0.28640660643577576,
-0.2534545361995697,
0.15393558144569397,
-0.2667068839073181,
0.14493955671787262,
-0.05388084426522255,
-0.1338413953781128,
-0.05917182192206383,
0.09799904376268387,
0.22506804764270782,
0.2401246875524521,
-0.11998586356639862,
0.5677842497825623,
0.13529211282730103,
0.13874758780002594,
-0.2335021197795868,
0.2586083710193634,
0.021819699555635452,
0.06880774348974228,
0.13291653990745544,
0.010632363148033619,
0.21421097218990326,
-0.21705545485019684,
-0.06412212550640106,
0.3186340630054474,
0.21736255288124084,
0.04179643839597702,
0.05746179446578026,
0.15771925449371338,
0.25428420305252075,
-0.3891916573047638,
-0.09973958134651184,
0.047288041561841965,
-0.008624499663710594,
-0.02526962012052536,
-0.04055394232273102,
0.24257279932498932,
0.06486048549413681,
0.42057013511657715,
0.14002402126789093,
0.08942031860351562,
0.32157495617866516,
0.02985871024429798,
-0.016004543751478195,
0.1794743537902832,
0.1751997172832489,
0.21789179742336273,
0.02306206338107586,
-0.0838504508137703,
-0.36023131012916565,
0.1493656039237976,
-0.16420523822307587,
0.04955879971385002,
-0.11296407878398895,
0.12475501000881195,
-0.1547977328300476,
-0.02208040840923786,
0.07000422477722168,
0.37086695432662964,
0.22012709081172943,
0.04904801771044731,
-0.20052070915699005,
0.18740993738174438,
0.06052738428115845,
-0.20581471920013428,
-0.04450077936053276,
0.10965384542942047,
0.36466652154922485,
0.2655832767486572,
0.42668768763542175,
-0.04876338317990303,
-0.09510833770036697,
-0.37876376509666443,
-0.035897333174943924,
0.26145097613334656,
-0.2707884609699249,
0.400877445936203,
-0.24347122013568878,
-0.3584270477294922,
0.0938047543168068,
-0.31619611382484436,
-0.3449479937553406,
-0.26493850350379944,
-0.11771001666784286,
0.4375136196613312,
0.11630882322788239,
0.06232859939336777,
-0.21111036837100983,
0.37165504693984985,
0.02543043904006481,
-0.5300375819206238,
-0.023688657209277153,
-0.25739824771881104,
-0.3198365271091461,
0.015924405306577682,
0.3333907723426819,
-0.2213880717754364,
0.06986191123723984,
-0.25470399856567383,
0.02979660965502262,
-0.12554650008678436,
-0.2030436098575592,
0.1615644097328186,
0.15230704843997955,
0.3011632561683655,
-0.06698103994131088,
0.22677646577358246,
-0.24250417947769165,
0.0940600112080574,
0.2750999331474304,
0.06796128302812576,
0.10233999788761139,
0.04893416911363602,
-0.0400865375995636,
0.04410800710320473,
0.024912236258387566,
-0.2555714547634125,
-0.48004627227783203,
-0.3582804501056671,
0.17842288315296173,
0.019613994285464287,
0.3458849787712097,
0.29600876569747925,
0.03824899345636368,
-0.0866619274020195,
0.0641808807849884,
-0.0769638940691948,
-0.15337494015693665,
-0.386554479598999,
0.17241185903549194,
-0.2786792516708374,
-0.2431342452764511,
0.25096896290779114,
0.07473926246166229,
0.3847601115703583,
0.07639512419700623,
-0.60944002866745,
-0.15641140937805176,
-0.12646059691905975,
0.10489997267723083,
0.025826770812273026,
-0.28259173035621643,
0.333442360162735,
-0.08820854872465134,
-0.005147871561348438,
0.21606449782848358,
-0.44045278429985046,
0.03233397752046585,
0.3356821835041046,
0.39132383465766907,
0.2737468481063843,
0.3707468509674072,
-0.17094522714614868,
0.4239253103733063,
0.20260955393314362,
0.04854346811771393,
0.3296656608581543,
-0.15722344815731049,
0.3341201841831207,
-0.0892176479101181,
-0.2969244122505188,
-0.21728409826755524,
-0.2103474885225296,
-0.3245612382888794,
0.16177205741405487,
0.26366469264030457,
-0.034415289759635925,
-0.49671050906181335,
0.11736204475164413,
-0.0801408514380455,
-0.32768815755844116,
0.05564836785197258,
0.1679750233888626,
0.1110881119966507,
0.0038785901851952076,
-0.03782568871974945,
0.22122862935066223,
-0.2119385451078415,
-0.3172353506088257,
0.3629995584487915,
0.08038133382797241,
0.07254918664693832,
-0.13046704232692719,
-0.016119912266731262,
-0.8267485499382019,
0.30459079146385193,
0.004353146068751812,
0.39902418851852417,
-0.31583601236343384,
0.061430059373378754,
0.07918883115053177,
-0.10680613666772842,
0.11924563348293304,
-0.30705422163009644,
-0.08182694017887115,
0.308782696723938,
0.06008578836917877,
-0.21097280085086823,
-0.2092314213514328,
0.126994788646698,
0.18553736805915833,
0.43276646733283997,
0.3602841794490814,
0.01369468867778778,
0.00534077687188983,
0.07416047155857086,
0.14800624549388885,
-0.08962896466255188,
0.02308286726474762,
-0.3215019404888153,
-0.4804900288581848,
-0.2376382201910019,
-0.07142817229032516,
-0.06272473931312561,
0.29828113317489624,
0.13050001859664917,
0.08492040634155273,
0.29117903113365173,
-0.27233585715293884,
0.20810237526893616,
0.09229551255702972,
0.018867410719394684,
0.10576508939266205,
0.10276485234498978,
0.09913883358240128,
0.062490805983543396,
0.3354111611843109,
0.9395032525062561,
0.1009218767285347,
-0.12041643261909485,
0.35449305176734924,
0.39620742201805115,
0.0735521912574768,
0.2287352830171585,
-0.051834020763635635,
0.10316731035709381,
-0.045548636466264725,
0.1310722678899765,
0.047277726233005524,
0.31044861674308777,
-0.24123114347457886,
-0.012340131215751171,
-0.8446321487426758,
-0.1633538454771042,
0.3940396010875702,
-0.11573999375104904,
-0.09637845307588577,
-0.08853166550397873,
0.1918695718050003,
-0.12238290160894394,
0.06642712652683258,
-0.07983365654945374,
0.9389862418174744,
-0.21574154496192932,
-0.1139470785856247,
0.09641893953084946,
-0.14705508947372437,
0.4845150411128998,
-0.5781694054603577,
0.4780518710613251,
-0.327145516872406,
-0.15969052910804749,
-0.2196509838104248,
-0.26893243193626404,
-0.11416176706552505,
-0.17540520429611206,
-0.0028669307939708233,
0.42945000529289246,
-0.13750238716602325,
0.17971093952655792,
0.410351425409317,
0.03124970570206642,
0.16680525243282318,
0.03138017654418945,
-0.15632301568984985,
0.0742267295718193,
-0.06847304105758667,
0.37951433658599854,
-0.07533716410398483,
-0.0879741758108139,
-0.2208288460969925,
-0.023257916793227196,
-0.3305444121360779,
0.2558436989784241,
-0.7046297788619995,
0.09517079591751099,
0.0003450523945502937,
-0.2027989774942398,
0.1387290358543396,
0.14910034835338593,
0.20197676122188568,
0.1502194106578827,
-0.31032535433769226,
0.26503872871398926,
-0.04730689898133278,
-0.15062777698040009,
-0.009702139534056187,
-0.015875600278377533,
0.010616580955684185,
-0.05788270756602287,
-0.08001817017793655,
0.4451649785041809,
-0.013192219659686089,
-0.40168845653533936,
0.049770575016736984,
0.04142635315656662,
0.01560094952583313,
-0.06720072031021118,
0.13101989030838013,
-0.09139546751976013,
0.033471543341875076,
0.06900841742753983,
0.0271309707313776,
0.12051814794540405,
0.15398725867271423,
-0.01963222585618496,
0.228292316198349,
-0.2593366205692291,
-0.015715690329670906,
0.3636077344417572,
-0.013595680706202984,
-0.03195074200630188,
0.18604311347007751,
0.4898224174976349,
-0.0020252298563718796,
-0.07053115963935852,
-0.13957972824573517,
0.21268866956233978,
-0.3972608149051666,
0.11640327423810959,
-0.04323434457182884,
0.1496535688638687,
0.033379748463630676,
0.3472810387611389,
0.31434106826782227,
0.03172582387924194,
0.3876163363456726,
-0.5564650297164917,
-0.2944401204586029,
0.05444793775677681,
-0.1690245419740677,
0.1841665506362915,
0.1040884405374527,
-0.16329418122768402,
-0.22763927280902863,
-0.0018327642465010285,
-0.19226022064685822,
0.0723111554980278,
-0.3587888181209564,
-0.1759030967950821,
0.17263749241828918,
-0.11618585884571075,
0.5185422897338867,
-0.13682834804058075,
-0.047944825142621994,
-0.018405241891741753,
-0.3581273555755615,
-0.05649185925722122,
-0.014560634270310402,
0.2017892599105835,
0.17124150693416595,
-0.44309213757514954,
-0.1755433827638626,
-0.07752804458141327,
0.048568952828645706,
0.05439472198486328,
0.18474406003952026,
0.19843967258930206,
-0.18030767142772675,
-0.32938504219055176,
-0.4175056219100952,
0.008154628798365593,
-0.31776684522628784,
0.3675777316093445,
0.23193000257015228,
0.4606674015522003,
0.21742182970046997,
0.2435663491487503,
-0.016910575330257416,
-0.13365846872329712,
-0.11765900254249573,
0.2129967361688614,
-0.05351053178310394,
-0.26453274488449097,
0.19652338325977325,
-0.43278220295906067,
0.06015931814908981,
-0.24055512249469757,
0.2324359118938446,
0.07866447418928146,
-0.21387504041194916,
0.14287684857845306,
0.18814364075660706,
0.0525173582136631,
-0.07040449231863022,
-0.03283383324742317,
0.141388401389122,
-0.027203239500522614,
0.031048739328980446,
0.2250305861234665,
0.386873334646225,
-0.1784224957227707,
0.0799669399857521,
0.24590614438056946,
0.5618064999580383,
0.12238901108503342,
0.1421126425266266,
-0.1236971840262413,
-0.12370531260967255,
0.1257035732269287,
0.40945321321487427,
0.008993062190711498,
0.032767556607723236,
0.021119477227330208,
-0.36507096886634827,
-0.03492603078484535,
-0.0059554255567491055,
0.018313834443688393,
0.033274974673986435,
-0.5767639875411987,
0.10643797367811203,
0.14117637276649475,
-0.17957821488380432,
-0.17170360684394836,
-0.08942203968763351,
0.4524858295917511,
-0.21003013849258423,
-0.017403464764356613,
-0.3908972442150116,
0.18800708651542664,
-0.024239961057901382,
-0.03971397504210472,
0.118291936814785,
-0.44159090518951416,
-0.13059905171394348,
0.2427268922328949,
0.006991563364863396,
-0.15939585864543915,
-0.004667696077376604,
0.08597667515277863,
-0.2388293296098709,
-0.3000749945640564,
-0.07559313625097275,
0.306964635848999,
-0.04264751449227333,
-0.09364799410104752,
0.44977137446403503,
0.027336200699210167,
-0.17066088318824768,
0.155703604221344,
0.01538944523781538,
0.6272586584091187,
0.26542437076568604,
0.18237529695034027,
0.10876874625682831,
-0.12664195895195007,
0.0071309576742351055,
0.1697155237197876,
0.08836482465267181,
0.19004109501838684,
-0.3322160542011261,
0.16854128241539001,
0.0786483883857727,
0.025846334174275398,
0.28314754366874695,
-0.0928124338388443,
0.3121078908443451,
0.02945747599005699,
0.01797924004495144,
-0.1460423320531845,
0.1118159294128418,
-0.15921050310134888,
0.042283784598112106,
-0.31451287865638733,
0.17835788428783417,
0.3862515091896057,
-0.14028535783290863,
0.269382506608963,
0.15430282056331635,
0.008642376400530338,
-0.17800670862197876,
0.4599907100200653,
0.34055447578430176,
0.23232920467853546,
-0.3487297594547272,
-0.1899099051952362,
-0.2473534345626831,
-0.005519538186490536,
-0.11154590547084808,
0.207309290766716,
-0.0416928268969059,
0.15027424693107605,
-0.20463532209396362,
0.3032633066177368,
-0.12179426103830338,
0.3058779835700989,
0.08487701416015625,
0.006398450583219528,
-0.26516881585121155,
0.06634225696325302,
0.009094338864088058,
0.04983079433441162,
-0.15377379953861237,
-0.26247739791870117,
0.08155762404203415,
-0.37340062856674194,
-0.07949920743703842,
-0.11991941183805466,
0.15114188194274902,
0.04269967973232269,
-0.26439112424850464,
0.29913896322250366,
0.24583952128887177,
0.733687162399292,
0.2630752623081207,
-0.009374934248626232,
-0.1382429003715515,
-0.38092339038848877,
-0.02256593108177185,
0.009368767961859703,
0.37374988198280334,
0.2838228940963745,
0.08536721020936966,
-0.2404973953962326,
-0.38511142134666443,
0.4988895654678345,
0.06524689495563507,
0.23662258684635162,
0.16505813598632812,
-0.08640740066766739,
-0.018205080181360245,
0.08529707789421082,
-0.07599518448114395,
-0.10944060236215591,
0.19041407108306885,
0.14073140919208527,
-0.1363414227962494,
-0.31422513723373413,
0.5675709843635559,
-0.34544190764427185,
0.11282479763031006,
-0.15286152064800262,
0.26060357689857483,
0.3078804612159729,
0.020561212673783302,
-0.27052736282348633,
0.12397538125514984,
0.21452319622039795,
-0.1328071653842926,
-0.412602037191391,
0.3355354368686676,
-0.2914162576198578,
-0.06480798870325089,
-0.06114594638347626,
0.14645448327064514,
0.003893492743372917,
-0.3008679449558258,
-0.2765825688838959,
-0.026671838015317917
] |
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.1691725105047226,
0.01683579757809639,
0.06266516447067261,
0.363399475812912,
0.29187697172164917,
-0.1796785444021225,
0.21995890140533447,
-0.04344447702169418,
-0.18381397426128387,
0.06295830756425858,
-0.32389935851097107,
0.13601748645305634,
0.07222908735275269,
0.15775860846042633,
-0.057913508266210556,
-0.09452728927135468,
-0.19010989367961884,
-0.2000555694103241,
-0.06888334453105927,
0.253536581993103,
-0.13285478949546814,
0.475398987531662,
-0.207313671708107,
0.204691082239151,
-0.41124990582466125,
0.012067095376551151,
0.2174304574728012,
0.42171886563301086,
-0.22421765327453613,
-0.6152896285057068,
0.46720293164253235,
0.09182143211364746,
0.25832080841064453,
0.6301940679550171,
-0.00012121877807658166,
0.043877698481082916,
0.3747945725917816,
-0.0809115469455719,
-0.36821967363357544,
-0.5027562379837036,
-0.5078127980232239,
-0.0790521502494812,
0.26483896374702454,
0.22928622364997864,
-0.319689005613327,
0.4285567104816437,
0.07915318012237549,
-0.3250603973865509,
0.3382040858268738,
0.6332944631576538,
0.08208373188972473,
-0.07683735340833664,
0.09451226890087128,
-0.16235895454883575,
0.30161887407302856,
-0.1488981395959854,
-0.0706099271774292,
0.4869539141654968,
0.2155136615037918,
-0.03863811865448952,
0.054937466979026794,
-0.021643036976456642,
-0.02710445038974285,
-0.011705029755830765,
0.17982728779315948,
-0.07429201900959015,
-0.11018490046262741,
-0.4340971112251282,
0.42413005232810974,
0.3522650897502899,
0.6402149200439453,
-0.17337392270565033,
-0.22726893424987793,
0.14541324973106384,
-0.08126422017812729,
-0.43023601174354553,
0.30031827092170715,
0.321708083152771,
-0.12212399393320084,
0.18702605366706848,
-0.40782925486564636,
-0.25976425409317017,
-0.36862900853157043,
0.004372920375317335,
-0.41640907526016235,
0.12703478336334229,
-0.26639848947525024,
0.13153083622455597,
0.2910028100013733,
0.015295072458684444,
0.3388897180557251,
0.22372451424598694,
-0.4470449686050415,
-0.007506689988076687,
-0.6929901838302612,
0.18296831846237183,
-0.14821074903011322,
-0.03634733706712723,
0.09349392354488373,
0.36973199248313904,
0.31743794679641724,
0.036896705627441406,
-0.28630566596984863,
0.40656858682632446,
0.0869920551776886,
0.342180073261261,
0.04323924705386162,
0.187297523021698,
0.3242340683937073,
0.1837179809808731,
-0.013221426866948605,
-0.09307899326086044,
-0.19508300721645355,
-0.20660589635372162,
-0.1330893188714981,
0.18090492486953735,
0.09734173864126205,
-0.27020931243896484,
-0.3912978172302246,
0.14655813574790955,
-0.41394081711769104,
0.009193266741931438,
0.12256399542093277,
0.454131156206131,
-0.2755914032459259,
-0.024243373423814774,
-0.038524407893419266,
0.22082214057445526,
-0.09657096117734909,
-0.16265536844730377,
-0.06601259112358093,
0.2261449247598648,
-0.2326458990573883,
0.13177016377449036,
0.338099867105484,
-0.18130898475646973,
0.14130711555480957,
-0.16491784155368805,
-0.06684446334838867,
-0.21560074388980865,
-0.008650371804833412,
-0.26765480637550354,
-0.10671931505203247,
0.43074920773506165,
0.07769317924976349,
0.056267451494932175,
0.12437841296195984,
-0.3719576299190521,
-0.035264238715171814,
0.01337942574173212,
-0.571435809135437,
-0.35186052322387695,
0.06211626157164574,
0.07057809829711914,
-0.12042858451604843,
0.021903103217482567,
-0.34435492753982544,
0.0012693306198343635,
-0.004354457836598158,
-0.1800428032875061,
-0.17487120628356934,
-0.2704453468322754,
-0.33346453309059143,
-0.3149198293685913,
0.34587663412094116,
0.45145633816719055,
-0.5566047430038452,
-0.027075616642832756,
0.09684044122695923,
0.07431027293205261,
0.16745980083942413,
0.3314802050590515,
-0.19075478613376617,
-0.09515240043401718,
-0.2181224524974823,
-0.10006676614284515,
0.0956016331911087,
-0.3112882077693939,
-0.2985934615135193,
-0.0033583410549908876,
-0.019407186657190323,
-0.04835715889930725,
-0.2369234561920166,
-0.10341376811265945,
0.013775357976555824,
0.0616036057472229,
0.6465603709220886,
0.2157905399799347,
-0.12831658124923706,
-0.1761937141418457,
-0.1502935141324997,
-0.2762148082256317,
-0.2542467713356018,
0.08695609122514725,
0.12147033959627151,
0.005973439197987318,
0.23639684915542603,
-0.4764140546321869,
0.07022891193628311,
0.04188122600317001,
-0.0073059299029409885,
0.3011593818664551,
0.3711310923099518,
-0.05341648310422897,
-0.1965111345052719,
0.2541643977165222,
-0.45123717188835144,
0.370187371969223,
-0.07186123728752136,
0.28640660643577576,
-0.2534545361995697,
0.15393558144569397,
-0.2667068839073181,
0.14493955671787262,
-0.05388084426522255,
-0.1338413953781128,
-0.05917182192206383,
0.09799904376268387,
0.22506804764270782,
0.2401246875524521,
-0.11998586356639862,
0.5677842497825623,
0.13529211282730103,
0.13874758780002594,
-0.2335021197795868,
0.2586083710193634,
0.021819699555635452,
0.06880774348974228,
0.13291653990745544,
0.010632363148033619,
0.21421097218990326,
-0.21705545485019684,
-0.06412212550640106,
0.3186340630054474,
0.21736255288124084,
0.04179643839597702,
0.05746179446578026,
0.15771925449371338,
0.25428420305252075,
-0.3891916573047638,
-0.09973958134651184,
0.047288041561841965,
-0.008624499663710594,
-0.02526962012052536,
-0.04055394232273102,
0.24257279932498932,
0.06486048549413681,
0.42057013511657715,
0.14002402126789093,
0.08942031860351562,
0.32157495617866516,
0.02985871024429798,
-0.016004543751478195,
0.1794743537902832,
0.1751997172832489,
0.21789179742336273,
0.02306206338107586,
-0.0838504508137703,
-0.36023131012916565,
0.1493656039237976,
-0.16420523822307587,
0.04955879971385002,
-0.11296407878398895,
0.12475501000881195,
-0.1547977328300476,
-0.02208040840923786,
0.07000422477722168,
0.37086695432662964,
0.22012709081172943,
0.04904801771044731,
-0.20052070915699005,
0.18740993738174438,
0.06052738428115845,
-0.20581471920013428,
-0.04450077936053276,
0.10965384542942047,
0.36466652154922485,
0.2655832767486572,
0.42668768763542175,
-0.04876338317990303,
-0.09510833770036697,
-0.37876376509666443,
-0.035897333174943924,
0.26145097613334656,
-0.2707884609699249,
0.400877445936203,
-0.24347122013568878,
-0.3584270477294922,
0.0938047543168068,
-0.31619611382484436,
-0.3449479937553406,
-0.26493850350379944,
-0.11771001666784286,
0.4375136196613312,
0.11630882322788239,
0.06232859939336777,
-0.21111036837100983,
0.37165504693984985,
0.02543043904006481,
-0.5300375819206238,
-0.023688657209277153,
-0.25739824771881104,
-0.3198365271091461,
0.015924405306577682,
0.3333907723426819,
-0.2213880717754364,
0.06986191123723984,
-0.25470399856567383,
0.02979660965502262,
-0.12554650008678436,
-0.2030436098575592,
0.1615644097328186,
0.15230704843997955,
0.3011632561683655,
-0.06698103994131088,
0.22677646577358246,
-0.24250417947769165,
0.0940600112080574,
0.2750999331474304,
0.06796128302812576,
0.10233999788761139,
0.04893416911363602,
-0.0400865375995636,
0.04410800710320473,
0.024912236258387566,
-0.2555714547634125,
-0.48004627227783203,
-0.3582804501056671,
0.17842288315296173,
0.019613994285464287,
0.3458849787712097,
0.29600876569747925,
0.03824899345636368,
-0.0866619274020195,
0.0641808807849884,
-0.0769638940691948,
-0.15337494015693665,
-0.386554479598999,
0.17241185903549194,
-0.2786792516708374,
-0.2431342452764511,
0.25096896290779114,
0.07473926246166229,
0.3847601115703583,
0.07639512419700623,
-0.60944002866745,
-0.15641140937805176,
-0.12646059691905975,
0.10489997267723083,
0.025826770812273026,
-0.28259173035621643,
0.333442360162735,
-0.08820854872465134,
-0.005147871561348438,
0.21606449782848358,
-0.44045278429985046,
0.03233397752046585,
0.3356821835041046,
0.39132383465766907,
0.2737468481063843,
0.3707468509674072,
-0.17094522714614868,
0.4239253103733063,
0.20260955393314362,
0.04854346811771393,
0.3296656608581543,
-0.15722344815731049,
0.3341201841831207,
-0.0892176479101181,
-0.2969244122505188,
-0.21728409826755524,
-0.2103474885225296,
-0.3245612382888794,
0.16177205741405487,
0.26366469264030457,
-0.034415289759635925,
-0.49671050906181335,
0.11736204475164413,
-0.0801408514380455,
-0.32768815755844116,
0.05564836785197258,
0.1679750233888626,
0.1110881119966507,
0.0038785901851952076,
-0.03782568871974945,
0.22122862935066223,
-0.2119385451078415,
-0.3172353506088257,
0.3629995584487915,
0.08038133382797241,
0.07254918664693832,
-0.13046704232692719,
-0.016119912266731262,
-0.8267485499382019,
0.30459079146385193,
0.004353146068751812,
0.39902418851852417,
-0.31583601236343384,
0.061430059373378754,
0.07918883115053177,
-0.10680613666772842,
0.11924563348293304,
-0.30705422163009644,
-0.08182694017887115,
0.308782696723938,
0.06008578836917877,
-0.21097280085086823,
-0.2092314213514328,
0.126994788646698,
0.18553736805915833,
0.43276646733283997,
0.3602841794490814,
0.01369468867778778,
0.00534077687188983,
0.07416047155857086,
0.14800624549388885,
-0.08962896466255188,
0.02308286726474762,
-0.3215019404888153,
-0.4804900288581848,
-0.2376382201910019,
-0.07142817229032516,
-0.06272473931312561,
0.29828113317489624,
0.13050001859664917,
0.08492040634155273,
0.29117903113365173,
-0.27233585715293884,
0.20810237526893616,
0.09229551255702972,
0.018867410719394684,
0.10576508939266205,
0.10276485234498978,
0.09913883358240128,
0.062490805983543396,
0.3354111611843109,
0.9395032525062561,
0.1009218767285347,
-0.12041643261909485,
0.35449305176734924,
0.39620742201805115,
0.0735521912574768,
0.2287352830171585,
-0.051834020763635635,
0.10316731035709381,
-0.045548636466264725,
0.1310722678899765,
0.047277726233005524,
0.31044861674308777,
-0.24123114347457886,
-0.012340131215751171,
-0.8446321487426758,
-0.1633538454771042,
0.3940396010875702,
-0.11573999375104904,
-0.09637845307588577,
-0.08853166550397873,
0.1918695718050003,
-0.12238290160894394,
0.06642712652683258,
-0.07983365654945374,
0.9389862418174744,
-0.21574154496192932,
-0.1139470785856247,
0.09641893953084946,
-0.14705508947372437,
0.4845150411128998,
-0.5781694054603577,
0.4780518710613251,
-0.327145516872406,
-0.15969052910804749,
-0.2196509838104248,
-0.26893243193626404,
-0.11416176706552505,
-0.17540520429611206,
-0.0028669307939708233,
0.42945000529289246,
-0.13750238716602325,
0.17971093952655792,
0.410351425409317,
0.03124970570206642,
0.16680525243282318,
0.03138017654418945,
-0.15632301568984985,
0.0742267295718193,
-0.06847304105758667,
0.37951433658599854,
-0.07533716410398483,
-0.0879741758108139,
-0.2208288460969925,
-0.023257916793227196,
-0.3305444121360779,
0.2558436989784241,
-0.7046297788619995,
0.09517079591751099,
0.0003450523945502937,
-0.2027989774942398,
0.1387290358543396,
0.14910034835338593,
0.20197676122188568,
0.1502194106578827,
-0.31032535433769226,
0.26503872871398926,
-0.04730689898133278,
-0.15062777698040009,
-0.009702139534056187,
-0.015875600278377533,
0.010616580955684185,
-0.05788270756602287,
-0.08001817017793655,
0.4451649785041809,
-0.013192219659686089,
-0.40168845653533936,
0.049770575016736984,
0.04142635315656662,
0.01560094952583313,
-0.06720072031021118,
0.13101989030838013,
-0.09139546751976013,
0.033471543341875076,
0.06900841742753983,
0.0271309707313776,
0.12051814794540405,
0.15398725867271423,
-0.01963222585618496,
0.228292316198349,
-0.2593366205692291,
-0.015715690329670906,
0.3636077344417572,
-0.013595680706202984,
-0.03195074200630188,
0.18604311347007751,
0.4898224174976349,
-0.0020252298563718796,
-0.07053115963935852,
-0.13957972824573517,
0.21268866956233978,
-0.3972608149051666,
0.11640327423810959,
-0.04323434457182884,
0.1496535688638687,
0.033379748463630676,
0.3472810387611389,
0.31434106826782227,
0.03172582387924194,
0.3876163363456726,
-0.5564650297164917,
-0.2944401204586029,
0.05444793775677681,
-0.1690245419740677,
0.1841665506362915,
0.1040884405374527,
-0.16329418122768402,
-0.22763927280902863,
-0.0018327642465010285,
-0.19226022064685822,
0.0723111554980278,
-0.3587888181209564,
-0.1759030967950821,
0.17263749241828918,
-0.11618585884571075,
0.5185422897338867,
-0.13682834804058075,
-0.047944825142621994,
-0.018405241891741753,
-0.3581273555755615,
-0.05649185925722122,
-0.014560634270310402,
0.2017892599105835,
0.17124150693416595,
-0.44309213757514954,
-0.1755433827638626,
-0.07752804458141327,
0.048568952828645706,
0.05439472198486328,
0.18474406003952026,
0.19843967258930206,
-0.18030767142772675,
-0.32938504219055176,
-0.4175056219100952,
0.008154628798365593,
-0.31776684522628784,
0.3675777316093445,
0.23193000257015228,
0.4606674015522003,
0.21742182970046997,
0.2435663491487503,
-0.016910575330257416,
-0.13365846872329712,
-0.11765900254249573,
0.2129967361688614,
-0.05351053178310394,
-0.26453274488449097,
0.19652338325977325,
-0.43278220295906067,
0.06015931814908981,
-0.24055512249469757,
0.2324359118938446,
0.07866447418928146,
-0.21387504041194916,
0.14287684857845306,
0.18814364075660706,
0.0525173582136631,
-0.07040449231863022,
-0.03283383324742317,
0.141388401389122,
-0.027203239500522614,
0.031048739328980446,
0.2250305861234665,
0.386873334646225,
-0.1784224957227707,
0.0799669399857521,
0.24590614438056946,
0.5618064999580383,
0.12238901108503342,
0.1421126425266266,
-0.1236971840262413,
-0.12370531260967255,
0.1257035732269287,
0.40945321321487427,
0.008993062190711498,
0.032767556607723236,
0.021119477227330208,
-0.36507096886634827,
-0.03492603078484535,
-0.0059554255567491055,
0.018313834443688393,
0.033274974673986435,
-0.5767639875411987,
0.10643797367811203,
0.14117637276649475,
-0.17957821488380432,
-0.17170360684394836,
-0.08942203968763351,
0.4524858295917511,
-0.21003013849258423,
-0.017403464764356613,
-0.3908972442150116,
0.18800708651542664,
-0.024239961057901382,
-0.03971397504210472,
0.118291936814785,
-0.44159090518951416,
-0.13059905171394348,
0.2427268922328949,
0.006991563364863396,
-0.15939585864543915,
-0.004667696077376604,
0.08597667515277863,
-0.2388293296098709,
-0.3000749945640564,
-0.07559313625097275,
0.306964635848999,
-0.04264751449227333,
-0.09364799410104752,
0.44977137446403503,
0.027336200699210167,
-0.17066088318824768,
0.155703604221344,
0.01538944523781538,
0.6272586584091187,
0.26542437076568604,
0.18237529695034027,
0.10876874625682831,
-0.12664195895195007,
0.0071309576742351055,
0.1697155237197876,
0.08836482465267181,
0.19004109501838684,
-0.3322160542011261,
0.16854128241539001,
0.0786483883857727,
0.025846334174275398,
0.28314754366874695,
-0.0928124338388443,
0.3121078908443451,
0.02945747599005699,
0.01797924004495144,
-0.1460423320531845,
0.1118159294128418,
-0.15921050310134888,
0.042283784598112106,
-0.31451287865638733,
0.17835788428783417,
0.3862515091896057,
-0.14028535783290863,
0.269382506608963,
0.15430282056331635,
0.008642376400530338,
-0.17800670862197876,
0.4599907100200653,
0.34055447578430176,
0.23232920467853546,
-0.3487297594547272,
-0.1899099051952362,
-0.2473534345626831,
-0.005519538186490536,
-0.11154590547084808,
0.207309290766716,
-0.0416928268969059,
0.15027424693107605,
-0.20463532209396362,
0.3032633066177368,
-0.12179426103830338,
0.3058779835700989,
0.08487701416015625,
0.006398450583219528,
-0.26516881585121155,
0.06634225696325302,
0.009094338864088058,
0.04983079433441162,
-0.15377379953861237,
-0.26247739791870117,
0.08155762404203415,
-0.37340062856674194,
-0.07949920743703842,
-0.11991941183805466,
0.15114188194274902,
0.04269967973232269,
-0.26439112424850464,
0.29913896322250366,
0.24583952128887177,
0.733687162399292,
0.2630752623081207,
-0.009374934248626232,
-0.1382429003715515,
-0.38092339038848877,
-0.02256593108177185,
0.009368767961859703,
0.37374988198280334,
0.2838228940963745,
0.08536721020936966,
-0.2404973953962326,
-0.38511142134666443,
0.4988895654678345,
0.06524689495563507,
0.23662258684635162,
0.16505813598632812,
-0.08640740066766739,
-0.018205080181360245,
0.08529707789421082,
-0.07599518448114395,
-0.10944060236215591,
0.19041407108306885,
0.14073140919208527,
-0.1363414227962494,
-0.31422513723373413,
0.5675709843635559,
-0.34544190764427185,
0.11282479763031006,
-0.15286152064800262,
0.26060357689857483,
0.3078804612159729,
0.020561212673783302,
-0.27052736282348633,
0.12397538125514984,
0.21452319622039795,
-0.1328071653842926,
-0.412602037191391,
0.3355354368686676,
-0.2914162576198578,
-0.06480798870325089,
-0.06114594638347626,
0.14645448327064514,
0.003893492743372917,
-0.3008679449558258,
-0.2765825688838959,
-0.026671838015317917
] |
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`

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`

cc @lhoestq, feel free to ignore.
Hi ! Thanks for letting us know your experience :)
We should at least improve the error messages indeed | [
0.17695385217666626,
-0.02816588804125786,
-0.08531196415424347,
0.0595536008477211,
0.13166363537311554,
-0.2772907018661499,
0.09355074167251587,
0.11946054548025131,
-0.0715428814291954,
0.020588498562574387,
-0.23732805252075195,
0.011510256677865982,
-0.10359315574169159,
-0.0028772526420652866,
0.08802253752946854,
-0.23120684921741486,
-0.019295109435915947,
0.05647866055369377,
0.02208474650979042,
-0.20924757421016693,
-0.2625800371170044,
0.3527040481567383,
-0.021722106263041496,
0.2763133943080902,
-0.2073202133178711,
0.23315176367759705,
-0.06391125172376633,
0.20565442740917206,
-0.29418712854385376,
-0.18540215492248535,
0.009648394770920277,
0.3292575478553772,
0.01868985779583454,
0.20504823327064514,
-0.0001137065701186657,
-0.31252145767211914,
0.018440937623381615,
-0.14699535071849823,
-0.12344696372747421,
-0.10459369421005249,
-0.11094123125076294,
-0.19594456255435944,
0.0969133973121643,
-0.13254423439502716,
-0.03553840145468712,
0.1201133206486702,
-0.3182254135608673,
-0.06932730972766876,
0.5164251327514648,
-0.08134973049163818,
0.16864773631095886,
-0.09623048454523087,
-0.18757779896259308,
-0.14869892597198486,
0.364157110452652,
-0.10705890506505966,
0.057578328996896744,
0.004555461462587118,
0.29559069871902466,
-0.034681957215070724,
-0.1117427796125412,
0.2009178102016449,
0.011858359910547733,
-0.21405531466007233,
0.19960129261016846,
0.04526614770293236,
0.21933089196681976,
-0.14769676327705383,
-0.16813360154628754,
0.25402531027793884,
0.1309775412082672,
-0.04901181533932686,
-0.4720950722694397,
0.06949544697999954,
-0.09548703581094742,
-0.7001907229423523,
-0.04711729660630226,
-0.28376632928848267,
0.15150490403175354,
-0.15154395997524261,
-0.12556445598602295,
0.0069699157029390335,
0.13904613256454468,
-0.27349358797073364,
-0.1364840716123581,
0.024361127987504005,
-0.14112700521945953,
-0.0774000957608223,
0.10401246696710587,
-0.15688695013523102,
-0.6167757511138916,
0.26964306831359863,
-0.19040562212467194,
0.03366759791970253,
-0.5840445756912231,
0.08130698651075363,
0.04318396747112274,
0.11941477656364441,
-0.1405094414949417,
0.4723142385482788,
0.16375455260276794,
0.06971137225627899,
0.10931508243083954,
0.08627516776323318,
-0.32747963070869446,
0.8337018489837646,
0.08749687671661377,
0.017687708139419556,
0.1399511843919754,
-0.005224219989031553,
0.19163577258586884,
-0.0466974601149559,
0.08655861765146255,
-0.5624169111251831,
-0.0675758421421051,
0.30096518993377686,
-0.20869161188602448,
-0.44184091687202454,
-0.4798853397369385,
0.13793398439884186,
-0.2506820261478424,
-0.15578140318393707,
0.30232521891593933,
0.3863402009010315,
-0.33586785197257996,
0.05974547937512398,
0.40995895862579346,
0.36970236897468567,
-0.2531629800796509,
-0.10097626596689224,
-0.1679191142320633,
0.06023750081658363,
-0.25659579038619995,
0.22562670707702637,
0.020977871492505074,
0.08019468933343887,
0.34543469548225403,
0.09710267931222916,
0.3335014581680298,
0.004242365248501301,
0.14348788559436798,
0.057546164840459824,
-0.2455940693616867,
-0.19220158457756042,
-0.19431717693805695,
0.008859875611960888,
0.08483556658029556,
-0.25242581963539124,
-0.016199223697185516,
-0.38282081484794617,
-0.32444679737091064,
-0.15845061838626862,
0.06030788645148277,
0.14708591997623444,
-0.17534571886062622,
0.12318606674671173,
-0.003542942926287651,
0.3194282352924347,
-0.03930847719311714,
-0.11329808831214905,
0.005361953284591436,
0.10492637008428574,
-0.2670655846595764,
-0.004227800760418177,
0.49355563521385193,
-0.0255882628262043,
-0.3216418921947479,
-0.38177362084388733,
0.41466981172561646,
0.168319970369339,
-0.06068151444196701,
0.2700881063938141,
0.035222116857767105,
0.2871845066547394,
0.02763395383954048,
-0.18044261634349823,
0.3904254734516144,
-0.5985482335090637,
-0.06896111369132996,
-0.015859201550483704,
-0.011592008173465729,
-0.23624280095100403,
0.20132608711719513,
-0.1834617555141449,
0.3161441385746002,
-0.18314550817012787,
0.48223361372947693,
0.10106007009744644,
0.06539356708526611,
-0.2801435589790344,
-0.2663799524307251,
-0.1388554871082306,
0.13925214111804962,
-0.0844181552529335,
0.10859785974025726,
0.12790828943252563,
-0.21554748713970184,
0.3492255210876465,
0.07018781453371048,
-0.22825095057487488,
0.08564754575490952,
0.037685394287109375,
0.18247124552726746,
0.033167313784360886,
0.20777910947799683,
0.3472885489463806,
0.1417555958032608,
0.13365395367145538,
-0.6976091265678406,
0.15921324491500854,
0.003708468982949853,
0.08605644851922989,
-0.30274978280067444,
-0.20857448875904083,
0.022713398560881615,
-0.40904584527015686,
0.13548706471920013,
-0.24927113950252533,
0.2036934345960617,
0.12376207858324051,
0.0019244407303631306,
0.12449914962053299,
0.24350281059741974,
0.1824699491262436,
-0.26804232597351074,
-0.19198572635650635,
0.20258089900016785,
0.0015647367108613253,
0.011175542138516903,
0.4812692105770111,
0.23347817361354828,
0.17122769355773926,
0.04375928267836571,
0.28322634100914,
0.0035680627916008234,
0.12275473028421402,
0.17788967490196228,
0.21969185769557953,
0.2059088945388794,
0.06269656121730804,
0.15327861905097961,
-0.006218885537236929,
0.14778947830200195,
-0.22056719660758972,
-0.011906206607818604,
0.4550424814224243,
-0.4066658318042755,
0.19811592996120453,
-0.21304695308208466,
-0.013429309241473675,
-0.006045524962246418,
0.027414783835411072,
-0.353548526763916,
0.018435118719935417,
0.32518646121025085,
0.15782606601715088,
0.4982283115386963,
-0.20680512487888336,
0.28326189517974854,
-0.15573148429393768,
0.005761147942394018,
-0.10060767829418182,
0.09474678337574005,
-0.04062957689166069,
0.14364159107208252,
-0.0996469184756279,
-0.07702123373746872,
-0.4216921925544739,
0.08190618455410004,
0.10514067113399506,
-0.10545450448989868,
0.038568850606679916,
-0.0031589341815561056,
-0.09889774024486542,
-0.15847760438919067,
-0.05991500988602638,
-0.2916545271873474,
0.037877995520830154,
0.208257794380188,
0.19824644923210144,
0.20471513271331787,
-0.3442966043949127,
-0.20247796177864075,
-0.05764634534716606,
-0.30008596181869507,
0.1449369192123413,
-0.03448794037103653,
0.5397526025772095,
0.26085084676742554,
0.10270417481660843,
-0.2336450070142746,
-0.34656551480293274,
0.3593018054962158,
-0.039825689047575,
0.045082367956638336,
0.14411069452762604,
0.07718293368816376,
0.4756245017051697,
0.038900114595890045,
-0.062111981213092804,
-0.03667380288243294,
-0.13776645064353943,
0.0031249469611793756,
0.07762729376554489,
-0.30164724588394165,
0.12163159996271133,
0.11672543734312057,
-0.36485305428504944,
0.25106537342071533,
0.19787196815013885,
-0.5468524098396301,
0.12411422282457352,
-0.11958207190036774,
0.5138997435569763,
0.30337652564048767,
-0.30145686864852905,
0.023169895634055138,
-0.08882036060094833,
0.23715537786483765,
-0.0323478989303112,
-0.2406720519065857,
0.3399663269519806,
-0.045219969004392624,
0.12148179858922958,
-0.06955544650554657,
-0.13934646546840668,
0.08584508299827576,
-0.20947209000587463,
0.3407852053642273,
-0.07667418569326401,
-0.24211080372333527,
-0.18127110600471497,
-0.09496844559907913,
0.2206556499004364,
0.19956466555595398,
0.42702752351760864,
-0.15544797480106354,
-0.2086057811975479,
0.31160202622413635,
-0.1577574908733368,
-0.22212329506874084,
-0.2294902801513672,
-0.1876646727323532,
0.49101394414901733,
-0.14892074465751648,
-0.05116445943713188,
-0.3940584361553192,
0.1894480586051941,
-0.1001678854227066,
0.22202081978321075,
-0.03072972223162651,
0.14550819993019104,
0.10646488517522812,
-0.14042359590530396,
-0.09898141771554947,
-0.16125938296318054,
0.19102251529693604,
0.10087323188781738,
0.4178524315357208,
-0.20889830589294434,
0.33969756960868835,
-0.011748453602194786,
0.6103149652481079,
0.11154339462518692,
0.28925082087516785,
0.1768062263727188,
0.3831198811531067,
0.1211191862821579,
-0.021304422989487648,
-0.2075166255235672,
0.08797644823789597,
-0.035278961062431335,
-0.2933487594127655,
0.1319354623556137,
0.09843140840530396,
0.44145467877388,
-0.21859607100486755,
0.3410235047340393,
-0.21039487421512604,
-0.18817885220050812,
0.10581617802381516,
-0.20117539167404175,
-0.09891754388809204,
-0.14301298558712006,
0.07233200967311859,
0.11129562556743622,
-0.006030850112438202,
0.24129223823547363,
0.13906697928905487,
0.3017917275428772,
0.06980970501899719,
-0.21263635158538818,
0.15145903825759888,
-0.38341739773750305,
0.4566951096057892,
-0.24372249841690063,
-0.20382019877433777,
-0.21656528115272522,
-0.10135074704885483,
-0.12156014889478683,
-0.08758249133825302,
0.2147548496723175,
0.037468381226062775,
-0.23631280660629272,
0.1458825170993805,
-0.5916590690612793,
-0.41313526034355164,
-0.012086286209523678,
-0.20958679914474487,
-0.16050776839256287,
0.2359592318534851,
0.009517410770058632,
-0.48214441537857056,
-0.07566918432712555,
-0.22955210506916046,
0.0576559342443943,
-0.30146968364715576,
-0.03733626380562782,
-0.27272775769233704,
-0.11726187914609909,
-0.0696868896484375,
0.09247276932001114,
-0.22915935516357422,
0.28758054971694946,
-0.29212716221809387,
0.16015221178531647,
-0.15649841725826263,
-0.07427717000246048,
0.30701541900634766,
0.14654165506362915,
0.15041758120059967,
-0.33166810870170593,
0.07850136607885361,
0.20814377069473267,
-0.12938371300697327,
-0.12739324569702148,
0.1969534456729889,
-0.2532329261302948,
-0.29512912034988403,
0.37163832783699036,
0.01782948710024357,
0.22217781841754913,
0.29468289017677307,
-0.23429925739765167,
0.09449563175439835,
-0.3147599697113037,
0.3028069734573364,
-0.36134111881256104,
-0.09448893368244171,
0.3689984679222107,
0.10333053767681122,
0.012551280669867992,
-0.22992001473903656,
0.06905263662338257,
0.16536766290664673,
-0.313048779964447,
-0.3780951201915741,
-0.015291353687644005,
-0.27854445576667786,
0.5295836925506592,
0.22233206033706665,
0.9652845859527588,
0.047092072665691376,
0.07638230174779892,
0.15519924461841583,
0.09628552943468094,
0.46371036767959595,
-0.5718904733657837,
-0.035100940614938736,
-0.38788872957229614,
-0.0913153737783432,
0.029172517359256744,
0.03679221495985985,
-0.1170586496591568,
-0.05401007458567619,
-0.3936680257320404,
0.45579612255096436,
-0.2637161612510681,
-0.20051032304763794,
-0.1655346304178238,
-0.022966796532273293,
0.1302417814731598,
-0.2507963478565216,
-0.36687690019607544,
0.1868801862001419,
0.08898470550775528,
0.05425680801272392,
-0.26698753237724304,
-0.03938708081841469,
-0.2502804398536682,
-0.05858159810304642,
0.0858374759554863,
0.023232771083712578,
-0.021234942600131035,
0.10831049829721451,
-0.04773534834384918,
-0.15406407415866852,
-0.15824490785598755,
0.5442358255386353,
0.577367901802063,
0.21720607578754425,
-0.020821092650294304,
0.06009227782487869,
-0.12362325936555862,
0.5404776334762573,
0.09347251802682877,
-0.22243937849998474,
0.22948962450027466,
-0.024354690685868263,
-0.020822975784540176,
0.30626484751701355,
0.018267028033733368,
-0.07754530012607574,
-0.19891482591629028,
-0.15441811084747314,
-0.3258253037929535,
-0.3220331370830536,
0.4116705060005188,
0.2232387661933899,
0.23468232154846191,
-0.031175509095191956,
0.09289611130952835,
0.4529189169406891,
-0.3160114884376526,
0.18711301684379578,
0.1644582748413086,
-0.3283739984035492,
0.017681481316685677,
0.15692944824695587,
-0.2035154402256012,
-0.2034178525209427,
0.14470702409744263,
-0.12229371815919876,
0.06624965369701385,
-0.10501246899366379,
-0.22465188801288605,
0.32822421193122864,
-0.6158252954483032,
0.14952681958675385,
-0.013753147795796394,
-0.20144163072109222,
0.107968270778656,
0.508545994758606,
0.335573673248291,
-0.12335221469402313,
0.3740541934967041,
-0.16714711487293243,
-0.2427293211221695,
0.45136559009552,
0.061604030430316925,
0.12182273715734482,
-0.2861674427986145,
-0.3142951428890228,
-0.3326705992221832,
0.6031280159950256,
-0.33593496680259705,
-0.23593153059482574,
-0.4539037346839905,
0.13437660038471222,
-0.3620433807373047,
-0.23859946429729462,
0.20741768181324005,
0.29698145389556885,
0.009648709557950497,
0.18423116207122803,
-0.33441659808158875,
-0.1230727955698967,
-0.4081398844718933,
0.10030508041381836,
-0.1193290501832962,
0.22699984908103943,
-0.06685953587293625,
0.45270878076553345,
0.2298656404018402,
-0.26711341738700867,
0.1697513312101364,
0.18027447164058685,
0.29753032326698303,
0.20534354448318481,
0.019148794934153557,
0.22447386384010315,
-0.006998883560299873,
-0.026290996000170708,
0.29544052481651306,
0.13162940740585327,
0.16851338744163513,
0.05596480146050453,
-0.22180651128292084,
-0.17179164290428162,
0.3374066948890686,
0.17991378903388977,
0.23620082437992096,
-0.09369651973247528,
0.11398232728242874,
-0.041022174060344696,
0.08420253545045853,
-0.2749199867248535,
0.3915097713470459,
0.3128087818622589,
-0.01956341043114662,
-0.07965340465307236,
-0.1372186839580536,
0.2240026593208313,
0.024484869092702866,
0.3415914475917816,
-0.14900119602680206,
0.24896888434886932,
-0.011286737397313118,
0.3523801267147064,
0.15218253433704376,
0.014711707830429077,
0.42987585067749023,
-0.018922945484519005,
-0.07021015882492065,
-0.22366081178188324,
0.11531632393598557,
-0.2348208874464035,
-0.18158039450645447,
0.3596542477607727,
0.42222025990486145,
0.007723837625235319,
0.015292506664991379,
-0.02102935127913952,
-0.14479444921016693,
0.2545047104358673,
-0.3928194046020508,
0.6502039432525635,
0.22318986058235168,
0.050374433398246765,
-0.15274553000926971,
0.21645089983940125,
0.051755763590335846,
-0.247266948223114,
-0.24342791736125946,
0.42182657122612,
0.058169957250356674,
-0.34036004543304443,
-0.30583125352859497,
0.39594700932502747,
-0.07883983850479126,
-0.49692538380622864,
-0.032263725996017456,
-0.36866748332977295,
-0.2251703441143036,
-0.17598775029182434,
0.05589637532830238,
0.0035128421150147915,
-0.1908205896615982,
0.06391341984272003,
0.19896939396858215,
-0.27635127305984497,
-0.5920049548149109,
0.18237800896167755,
0.0905693918466568,
-0.04295870661735535,
-0.007743542548269033,
0.3834715187549591,
0.09549665451049805,
0.5452122092247009,
0.4397695064544678,
0.2471134513616562,
0.16982713341712952,
-0.41622114181518555,
0.009913140907883644,
-0.09416528791189194,
0.11790941655635834,
-0.11788643896579742,
0.42698752880096436,
0.21424995362758636,
-0.3480429947376251,
0.17495867609977722,
0.10140958428382874,
-0.13917990028858185,
0.22635005414485931,
-0.2509037256240845,
0.28871434926986694,
-0.18553867936134338,
0.4289945662021637,
0.11024986207485199,
0.38454604148864746,
-0.20346683263778687,
-0.05461209639906883,
-0.43682822585105896,
0.024294814094901085,
-0.24122686684131622,
-0.023813396692276,
0.13689465820789337,
0.16858378052711487,
0.07870732247829437,
0.16515132784843445,
0.035379212349653244,
0.08162590116262436,
0.179621621966362,
-0.29631903767585754,
0.263224333524704,
-0.1453603357076645,
-0.04983699321746826,
0.190426766872406,
0.3427991271018982,
-0.3479309678077698,
0.2818308472633362,
0.1530395895242691,
0.24116802215576172,
-0.14716771245002747,
0.08670215308666229,
-0.1079350933432579,
0.10365026444196701,
-0.4891265332698822,
0.2790878117084503,
-0.05778586119413376,
0.08197784423828125,
0.016420023515820503,
0.16227515041828156,
-0.2522098422050476,
-0.030885865911841393,
0.0889543667435646,
-0.03958763927221298,
-0.21984675526618958,
0.12053842097520828,
0.43691956996917725,
0.3809596002101898,
0.4347173273563385,
0.2746356725692749,
0.04911094903945923,
-0.0917205885052681,
-0.03483644500374794,
-0.23745858669281006,
0.009184634312987328,
-0.14512211084365845,
-0.09919089823961258,
0.14835679531097412,
0.12722817063331604,
-0.09819312393665314,
-0.2859269976615906,
0.7760741710662842,
0.10803290456533432,
-0.5372211337089539,
-0.45222508907318115,
0.10223299264907837,
0.2105948030948639,
-0.017401067540049553,
-0.2600543200969696,
0.3088753819465637,
-0.014705024659633636,
0.6009324193000793,
-0.19413775205612183,
-0.11327497661113739,
0.4475609064102173,
-0.43079015612602234,
0.3061503767967224,
0.11077351868152618,
0.3764396011829376,
0.4347318708896637,
-0.045352380722761154,
-0.135839581489563,
0.044514063745737076,
0.07199296355247498,
0.08791420608758926,
-0.006922176107764244,
0.1729041486978531,
0.2557840347290039,
-0.08468557894229889,
-0.23609128594398499,
-0.2595791816711426,
0.03496112674474716,
0.07869856059551239,
0.07815231382846832,
-0.23633436858654022
] |
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`

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`

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.17695385217666626,
-0.02816588804125786,
-0.08531196415424347,
0.0595536008477211,
0.13166363537311554,
-0.2772907018661499,
0.09355074167251587,
0.11946054548025131,
-0.0715428814291954,
0.020588498562574387,
-0.23732805252075195,
0.011510256677865982,
-0.10359315574169159,
-0.0028772526420652866,
0.08802253752946854,
-0.23120684921741486,
-0.019295109435915947,
0.05647866055369377,
0.02208474650979042,
-0.20924757421016693,
-0.2625800371170044,
0.3527040481567383,
-0.021722106263041496,
0.2763133943080902,
-0.2073202133178711,
0.23315176367759705,
-0.06391125172376633,
0.20565442740917206,
-0.29418712854385376,
-0.18540215492248535,
0.009648394770920277,
0.3292575478553772,
0.01868985779583454,
0.20504823327064514,
-0.0001137065701186657,
-0.31252145767211914,
0.018440937623381615,
-0.14699535071849823,
-0.12344696372747421,
-0.10459369421005249,
-0.11094123125076294,
-0.19594456255435944,
0.0969133973121643,
-0.13254423439502716,
-0.03553840145468712,
0.1201133206486702,
-0.3182254135608673,
-0.06932730972766876,
0.5164251327514648,
-0.08134973049163818,
0.16864773631095886,
-0.09623048454523087,
-0.18757779896259308,
-0.14869892597198486,
0.364157110452652,
-0.10705890506505966,
0.057578328996896744,
0.004555461462587118,
0.29559069871902466,
-0.034681957215070724,
-0.1117427796125412,
0.2009178102016449,
0.011858359910547733,
-0.21405531466007233,
0.19960129261016846,
0.04526614770293236,
0.21933089196681976,
-0.14769676327705383,
-0.16813360154628754,
0.25402531027793884,
0.1309775412082672,
-0.04901181533932686,
-0.4720950722694397,
0.06949544697999954,
-0.09548703581094742,
-0.7001907229423523,
-0.04711729660630226,
-0.28376632928848267,
0.15150490403175354,
-0.15154395997524261,
-0.12556445598602295,
0.0069699157029390335,
0.13904613256454468,
-0.27349358797073364,
-0.1364840716123581,
0.024361127987504005,
-0.14112700521945953,
-0.0774000957608223,
0.10401246696710587,
-0.15688695013523102,
-0.6167757511138916,
0.26964306831359863,
-0.19040562212467194,
0.03366759791970253,
-0.5840445756912231,
0.08130698651075363,
0.04318396747112274,
0.11941477656364441,
-0.1405094414949417,
0.4723142385482788,
0.16375455260276794,
0.06971137225627899,
0.10931508243083954,
0.08627516776323318,
-0.32747963070869446,
0.8337018489837646,
0.08749687671661377,
0.017687708139419556,
0.1399511843919754,
-0.005224219989031553,
0.19163577258586884,
-0.0466974601149559,
0.08655861765146255,
-0.5624169111251831,
-0.0675758421421051,
0.30096518993377686,
-0.20869161188602448,
-0.44184091687202454,
-0.4798853397369385,
0.13793398439884186,
-0.2506820261478424,
-0.15578140318393707,
0.30232521891593933,
0.3863402009010315,
-0.33586785197257996,
0.05974547937512398,
0.40995895862579346,
0.36970236897468567,
-0.2531629800796509,
-0.10097626596689224,
-0.1679191142320633,
0.06023750081658363,
-0.25659579038619995,
0.22562670707702637,
0.020977871492505074,
0.08019468933343887,
0.34543469548225403,
0.09710267931222916,
0.3335014581680298,
0.004242365248501301,
0.14348788559436798,
0.057546164840459824,
-0.2455940693616867,
-0.19220158457756042,
-0.19431717693805695,
0.008859875611960888,
0.08483556658029556,
-0.25242581963539124,
-0.016199223697185516,
-0.38282081484794617,
-0.32444679737091064,
-0.15845061838626862,
0.06030788645148277,
0.14708591997623444,
-0.17534571886062622,
0.12318606674671173,
-0.003542942926287651,
0.3194282352924347,
-0.03930847719311714,
-0.11329808831214905,
0.005361953284591436,
0.10492637008428574,
-0.2670655846595764,
-0.004227800760418177,
0.49355563521385193,
-0.0255882628262043,
-0.3216418921947479,
-0.38177362084388733,
0.41466981172561646,
0.168319970369339,
-0.06068151444196701,
0.2700881063938141,
0.035222116857767105,
0.2871845066547394,
0.02763395383954048,
-0.18044261634349823,
0.3904254734516144,
-0.5985482335090637,
-0.06896111369132996,
-0.015859201550483704,
-0.011592008173465729,
-0.23624280095100403,
0.20132608711719513,
-0.1834617555141449,
0.3161441385746002,
-0.18314550817012787,
0.48223361372947693,
0.10106007009744644,
0.06539356708526611,
-0.2801435589790344,
-0.2663799524307251,
-0.1388554871082306,
0.13925214111804962,
-0.0844181552529335,
0.10859785974025726,
0.12790828943252563,
-0.21554748713970184,
0.3492255210876465,
0.07018781453371048,
-0.22825095057487488,
0.08564754575490952,
0.037685394287109375,
0.18247124552726746,
0.033167313784360886,
0.20777910947799683,
0.3472885489463806,
0.1417555958032608,
0.13365395367145538,
-0.6976091265678406,
0.15921324491500854,
0.003708468982949853,
0.08605644851922989,
-0.30274978280067444,
-0.20857448875904083,
0.022713398560881615,
-0.40904584527015686,
0.13548706471920013,
-0.24927113950252533,
0.2036934345960617,
0.12376207858324051,
0.0019244407303631306,
0.12449914962053299,
0.24350281059741974,
0.1824699491262436,
-0.26804232597351074,
-0.19198572635650635,
0.20258089900016785,
0.0015647367108613253,
0.011175542138516903,
0.4812692105770111,
0.23347817361354828,
0.17122769355773926,
0.04375928267836571,
0.28322634100914,
0.0035680627916008234,
0.12275473028421402,
0.17788967490196228,
0.21969185769557953,
0.2059088945388794,
0.06269656121730804,
0.15327861905097961,
-0.006218885537236929,
0.14778947830200195,
-0.22056719660758972,
-0.011906206607818604,
0.4550424814224243,
-0.4066658318042755,
0.19811592996120453,
-0.21304695308208466,
-0.013429309241473675,
-0.006045524962246418,
0.027414783835411072,
-0.353548526763916,
0.018435118719935417,
0.32518646121025085,
0.15782606601715088,
0.4982283115386963,
-0.20680512487888336,
0.28326189517974854,
-0.15573148429393768,
0.005761147942394018,
-0.10060767829418182,
0.09474678337574005,
-0.04062957689166069,
0.14364159107208252,
-0.0996469184756279,
-0.07702123373746872,
-0.4216921925544739,
0.08190618455410004,
0.10514067113399506,
-0.10545450448989868,
0.038568850606679916,
-0.0031589341815561056,
-0.09889774024486542,
-0.15847760438919067,
-0.05991500988602638,
-0.2916545271873474,
0.037877995520830154,
0.208257794380188,
0.19824644923210144,
0.20471513271331787,
-0.3442966043949127,
-0.20247796177864075,
-0.05764634534716606,
-0.30008596181869507,
0.1449369192123413,
-0.03448794037103653,
0.5397526025772095,
0.26085084676742554,
0.10270417481660843,
-0.2336450070142746,
-0.34656551480293274,
0.3593018054962158,
-0.039825689047575,
0.045082367956638336,
0.14411069452762604,
0.07718293368816376,
0.4756245017051697,
0.038900114595890045,
-0.062111981213092804,
-0.03667380288243294,
-0.13776645064353943,
0.0031249469611793756,
0.07762729376554489,
-0.30164724588394165,
0.12163159996271133,
0.11672543734312057,
-0.36485305428504944,
0.25106537342071533,
0.19787196815013885,
-0.5468524098396301,
0.12411422282457352,
-0.11958207190036774,
0.5138997435569763,
0.30337652564048767,
-0.30145686864852905,
0.023169895634055138,
-0.08882036060094833,
0.23715537786483765,
-0.0323478989303112,
-0.2406720519065857,
0.3399663269519806,
-0.045219969004392624,
0.12148179858922958,
-0.06955544650554657,
-0.13934646546840668,
0.08584508299827576,
-0.20947209000587463,
0.3407852053642273,
-0.07667418569326401,
-0.24211080372333527,
-0.18127110600471497,
-0.09496844559907913,
0.2206556499004364,
0.19956466555595398,
0.42702752351760864,
-0.15544797480106354,
-0.2086057811975479,
0.31160202622413635,
-0.1577574908733368,
-0.22212329506874084,
-0.2294902801513672,
-0.1876646727323532,
0.49101394414901733,
-0.14892074465751648,
-0.05116445943713188,
-0.3940584361553192,
0.1894480586051941,
-0.1001678854227066,
0.22202081978321075,
-0.03072972223162651,
0.14550819993019104,
0.10646488517522812,
-0.14042359590530396,
-0.09898141771554947,
-0.16125938296318054,
0.19102251529693604,
0.10087323188781738,
0.4178524315357208,
-0.20889830589294434,
0.33969756960868835,
-0.011748453602194786,
0.6103149652481079,
0.11154339462518692,
0.28925082087516785,
0.1768062263727188,
0.3831198811531067,
0.1211191862821579,
-0.021304422989487648,
-0.2075166255235672,
0.08797644823789597,
-0.035278961062431335,
-0.2933487594127655,
0.1319354623556137,
0.09843140840530396,
0.44145467877388,
-0.21859607100486755,
0.3410235047340393,
-0.21039487421512604,
-0.18817885220050812,
0.10581617802381516,
-0.20117539167404175,
-0.09891754388809204,
-0.14301298558712006,
0.07233200967311859,
0.11129562556743622,
-0.006030850112438202,
0.24129223823547363,
0.13906697928905487,
0.3017917275428772,
0.06980970501899719,
-0.21263635158538818,
0.15145903825759888,
-0.38341739773750305,
0.4566951096057892,
-0.24372249841690063,
-0.20382019877433777,
-0.21656528115272522,
-0.10135074704885483,
-0.12156014889478683,
-0.08758249133825302,
0.2147548496723175,
0.037468381226062775,
-0.23631280660629272,
0.1458825170993805,
-0.5916590690612793,
-0.41313526034355164,
-0.012086286209523678,
-0.20958679914474487,
-0.16050776839256287,
0.2359592318534851,
0.009517410770058632,
-0.48214441537857056,
-0.07566918432712555,
-0.22955210506916046,
0.0576559342443943,
-0.30146968364715576,
-0.03733626380562782,
-0.27272775769233704,
-0.11726187914609909,
-0.0696868896484375,
0.09247276932001114,
-0.22915935516357422,
0.28758054971694946,
-0.29212716221809387,
0.16015221178531647,
-0.15649841725826263,
-0.07427717000246048,
0.30701541900634766,
0.14654165506362915,
0.15041758120059967,
-0.33166810870170593,
0.07850136607885361,
0.20814377069473267,
-0.12938371300697327,
-0.12739324569702148,
0.1969534456729889,
-0.2532329261302948,
-0.29512912034988403,
0.37163832783699036,
0.01782948710024357,
0.22217781841754913,
0.29468289017677307,
-0.23429925739765167,
0.09449563175439835,
-0.3147599697113037,
0.3028069734573364,
-0.36134111881256104,
-0.09448893368244171,
0.3689984679222107,
0.10333053767681122,
0.012551280669867992,
-0.22992001473903656,
0.06905263662338257,
0.16536766290664673,
-0.313048779964447,
-0.3780951201915741,
-0.015291353687644005,
-0.27854445576667786,
0.5295836925506592,
0.22233206033706665,
0.9652845859527588,
0.047092072665691376,
0.07638230174779892,
0.15519924461841583,
0.09628552943468094,
0.46371036767959595,
-0.5718904733657837,
-0.035100940614938736,
-0.38788872957229614,
-0.0913153737783432,
0.029172517359256744,
0.03679221495985985,
-0.1170586496591568,
-0.05401007458567619,
-0.3936680257320404,
0.45579612255096436,
-0.2637161612510681,
-0.20051032304763794,
-0.1655346304178238,
-0.022966796532273293,
0.1302417814731598,
-0.2507963478565216,
-0.36687690019607544,
0.1868801862001419,
0.08898470550775528,
0.05425680801272392,
-0.26698753237724304,
-0.03938708081841469,
-0.2502804398536682,
-0.05858159810304642,
0.0858374759554863,
0.023232771083712578,
-0.021234942600131035,
0.10831049829721451,
-0.04773534834384918,
-0.15406407415866852,
-0.15824490785598755,
0.5442358255386353,
0.577367901802063,
0.21720607578754425,
-0.020821092650294304,
0.06009227782487869,
-0.12362325936555862,
0.5404776334762573,
0.09347251802682877,
-0.22243937849998474,
0.22948962450027466,
-0.024354690685868263,
-0.020822975784540176,
0.30626484751701355,
0.018267028033733368,
-0.07754530012607574,
-0.19891482591629028,
-0.15441811084747314,
-0.3258253037929535,
-0.3220331370830536,
0.4116705060005188,
0.2232387661933899,
0.23468232154846191,
-0.031175509095191956,
0.09289611130952835,
0.4529189169406891,
-0.3160114884376526,
0.18711301684379578,
0.1644582748413086,
-0.3283739984035492,
0.017681481316685677,
0.15692944824695587,
-0.2035154402256012,
-0.2034178525209427,
0.14470702409744263,
-0.12229371815919876,
0.06624965369701385,
-0.10501246899366379,
-0.22465188801288605,
0.32822421193122864,
-0.6158252954483032,
0.14952681958675385,
-0.013753147795796394,
-0.20144163072109222,
0.107968270778656,
0.508545994758606,
0.335573673248291,
-0.12335221469402313,
0.3740541934967041,
-0.16714711487293243,
-0.2427293211221695,
0.45136559009552,
0.061604030430316925,
0.12182273715734482,
-0.2861674427986145,
-0.3142951428890228,
-0.3326705992221832,
0.6031280159950256,
-0.33593496680259705,
-0.23593153059482574,
-0.4539037346839905,
0.13437660038471222,
-0.3620433807373047,
-0.23859946429729462,
0.20741768181324005,
0.29698145389556885,
0.009648709557950497,
0.18423116207122803,
-0.33441659808158875,
-0.1230727955698967,
-0.4081398844718933,
0.10030508041381836,
-0.1193290501832962,
0.22699984908103943,
-0.06685953587293625,
0.45270878076553345,
0.2298656404018402,
-0.26711341738700867,
0.1697513312101364,
0.18027447164058685,
0.29753032326698303,
0.20534354448318481,
0.019148794934153557,
0.22447386384010315,
-0.006998883560299873,
-0.026290996000170708,
0.29544052481651306,
0.13162940740585327,
0.16851338744163513,
0.05596480146050453,
-0.22180651128292084,
-0.17179164290428162,
0.3374066948890686,
0.17991378903388977,
0.23620082437992096,
-0.09369651973247528,
0.11398232728242874,
-0.041022174060344696,
0.08420253545045853,
-0.2749199867248535,
0.3915097713470459,
0.3128087818622589,
-0.01956341043114662,
-0.07965340465307236,
-0.1372186839580536,
0.2240026593208313,
0.024484869092702866,
0.3415914475917816,
-0.14900119602680206,
0.24896888434886932,
-0.011286737397313118,
0.3523801267147064,
0.15218253433704376,
0.014711707830429077,
0.42987585067749023,
-0.018922945484519005,
-0.07021015882492065,
-0.22366081178188324,
0.11531632393598557,
-0.2348208874464035,
-0.18158039450645447,
0.3596542477607727,
0.42222025990486145,
0.007723837625235319,
0.015292506664991379,
-0.02102935127913952,
-0.14479444921016693,
0.2545047104358673,
-0.3928194046020508,
0.6502039432525635,
0.22318986058235168,
0.050374433398246765,
-0.15274553000926971,
0.21645089983940125,
0.051755763590335846,
-0.247266948223114,
-0.24342791736125946,
0.42182657122612,
0.058169957250356674,
-0.34036004543304443,
-0.30583125352859497,
0.39594700932502747,
-0.07883983850479126,
-0.49692538380622864,
-0.032263725996017456,
-0.36866748332977295,
-0.2251703441143036,
-0.17598775029182434,
0.05589637532830238,
0.0035128421150147915,
-0.1908205896615982,
0.06391341984272003,
0.19896939396858215,
-0.27635127305984497,
-0.5920049548149109,
0.18237800896167755,
0.0905693918466568,
-0.04295870661735535,
-0.007743542548269033,
0.3834715187549591,
0.09549665451049805,
0.5452122092247009,
0.4397695064544678,
0.2471134513616562,
0.16982713341712952,
-0.41622114181518555,
0.009913140907883644,
-0.09416528791189194,
0.11790941655635834,
-0.11788643896579742,
0.42698752880096436,
0.21424995362758636,
-0.3480429947376251,
0.17495867609977722,
0.10140958428382874,
-0.13917990028858185,
0.22635005414485931,
-0.2509037256240845,
0.28871434926986694,
-0.18553867936134338,
0.4289945662021637,
0.11024986207485199,
0.38454604148864746,
-0.20346683263778687,
-0.05461209639906883,
-0.43682822585105896,
0.024294814094901085,
-0.24122686684131622,
-0.023813396692276,
0.13689465820789337,
0.16858378052711487,
0.07870732247829437,
0.16515132784843445,
0.035379212349653244,
0.08162590116262436,
0.179621621966362,
-0.29631903767585754,
0.263224333524704,
-0.1453603357076645,
-0.04983699321746826,
0.190426766872406,
0.3427991271018982,
-0.3479309678077698,
0.2818308472633362,
0.1530395895242691,
0.24116802215576172,
-0.14716771245002747,
0.08670215308666229,
-0.1079350933432579,
0.10365026444196701,
-0.4891265332698822,
0.2790878117084503,
-0.05778586119413376,
0.08197784423828125,
0.016420023515820503,
0.16227515041828156,
-0.2522098422050476,
-0.030885865911841393,
0.0889543667435646,
-0.03958763927221298,
-0.21984675526618958,
0.12053842097520828,
0.43691956996917725,
0.3809596002101898,
0.4347173273563385,
0.2746356725692749,
0.04911094903945923,
-0.0917205885052681,
-0.03483644500374794,
-0.23745858669281006,
0.009184634312987328,
-0.14512211084365845,
-0.09919089823961258,
0.14835679531097412,
0.12722817063331604,
-0.09819312393665314,
-0.2859269976615906,
0.7760741710662842,
0.10803290456533432,
-0.5372211337089539,
-0.45222508907318115,
0.10223299264907837,
0.2105948030948639,
-0.017401067540049553,
-0.2600543200969696,
0.3088753819465637,
-0.014705024659633636,
0.6009324193000793,
-0.19413775205612183,
-0.11327497661113739,
0.4475609064102173,
-0.43079015612602234,
0.3061503767967224,
0.11077351868152618,
0.3764396011829376,
0.4347318708896637,
-0.045352380722761154,
-0.135839581489563,
0.044514063745737076,
0.07199296355247498,
0.08791420608758926,
-0.006922176107764244,
0.1729041486978531,
0.2557840347290039,
-0.08468557894229889,
-0.23609128594398499,
-0.2595791816711426,
0.03496112674474716,
0.07869856059551239,
0.07815231382846832,
-0.23633436858654022
] |
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`

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`

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.17695385217666626,
-0.02816588804125786,
-0.08531196415424347,
0.0595536008477211,
0.13166363537311554,
-0.2772907018661499,
0.09355074167251587,
0.11946054548025131,
-0.0715428814291954,
0.020588498562574387,
-0.23732805252075195,
0.011510256677865982,
-0.10359315574169159,
-0.0028772526420652866,
0.08802253752946854,
-0.23120684921741486,
-0.019295109435915947,
0.05647866055369377,
0.02208474650979042,
-0.20924757421016693,
-0.2625800371170044,
0.3527040481567383,
-0.021722106263041496,
0.2763133943080902,
-0.2073202133178711,
0.23315176367759705,
-0.06391125172376633,
0.20565442740917206,
-0.29418712854385376,
-0.18540215492248535,
0.009648394770920277,
0.3292575478553772,
0.01868985779583454,
0.20504823327064514,
-0.0001137065701186657,
-0.31252145767211914,
0.018440937623381615,
-0.14699535071849823,
-0.12344696372747421,
-0.10459369421005249,
-0.11094123125076294,
-0.19594456255435944,
0.0969133973121643,
-0.13254423439502716,
-0.03553840145468712,
0.1201133206486702,
-0.3182254135608673,
-0.06932730972766876,
0.5164251327514648,
-0.08134973049163818,
0.16864773631095886,
-0.09623048454523087,
-0.18757779896259308,
-0.14869892597198486,
0.364157110452652,
-0.10705890506505966,
0.057578328996896744,
0.004555461462587118,
0.29559069871902466,
-0.034681957215070724,
-0.1117427796125412,
0.2009178102016449,
0.011858359910547733,
-0.21405531466007233,
0.19960129261016846,
0.04526614770293236,
0.21933089196681976,
-0.14769676327705383,
-0.16813360154628754,
0.25402531027793884,
0.1309775412082672,
-0.04901181533932686,
-0.4720950722694397,
0.06949544697999954,
-0.09548703581094742,
-0.7001907229423523,
-0.04711729660630226,
-0.28376632928848267,
0.15150490403175354,
-0.15154395997524261,
-0.12556445598602295,
0.0069699157029390335,
0.13904613256454468,
-0.27349358797073364,
-0.1364840716123581,
0.024361127987504005,
-0.14112700521945953,
-0.0774000957608223,
0.10401246696710587,
-0.15688695013523102,
-0.6167757511138916,
0.26964306831359863,
-0.19040562212467194,
0.03366759791970253,
-0.5840445756912231,
0.08130698651075363,
0.04318396747112274,
0.11941477656364441,
-0.1405094414949417,
0.4723142385482788,
0.16375455260276794,
0.06971137225627899,
0.10931508243083954,
0.08627516776323318,
-0.32747963070869446,
0.8337018489837646,
0.08749687671661377,
0.017687708139419556,
0.1399511843919754,
-0.005224219989031553,
0.19163577258586884,
-0.0466974601149559,
0.08655861765146255,
-0.5624169111251831,
-0.0675758421421051,
0.30096518993377686,
-0.20869161188602448,
-0.44184091687202454,
-0.4798853397369385,
0.13793398439884186,
-0.2506820261478424,
-0.15578140318393707,
0.30232521891593933,
0.3863402009010315,
-0.33586785197257996,
0.05974547937512398,
0.40995895862579346,
0.36970236897468567,
-0.2531629800796509,
-0.10097626596689224,
-0.1679191142320633,
0.06023750081658363,
-0.25659579038619995,
0.22562670707702637,
0.020977871492505074,
0.08019468933343887,
0.34543469548225403,
0.09710267931222916,
0.3335014581680298,
0.004242365248501301,
0.14348788559436798,
0.057546164840459824,
-0.2455940693616867,
-0.19220158457756042,
-0.19431717693805695,
0.008859875611960888,
0.08483556658029556,
-0.25242581963539124,
-0.016199223697185516,
-0.38282081484794617,
-0.32444679737091064,
-0.15845061838626862,
0.06030788645148277,
0.14708591997623444,
-0.17534571886062622,
0.12318606674671173,
-0.003542942926287651,
0.3194282352924347,
-0.03930847719311714,
-0.11329808831214905,
0.005361953284591436,
0.10492637008428574,
-0.2670655846595764,
-0.004227800760418177,
0.49355563521385193,
-0.0255882628262043,
-0.3216418921947479,
-0.38177362084388733,
0.41466981172561646,
0.168319970369339,
-0.06068151444196701,
0.2700881063938141,
0.035222116857767105,
0.2871845066547394,
0.02763395383954048,
-0.18044261634349823,
0.3904254734516144,
-0.5985482335090637,
-0.06896111369132996,
-0.015859201550483704,
-0.011592008173465729,
-0.23624280095100403,
0.20132608711719513,
-0.1834617555141449,
0.3161441385746002,
-0.18314550817012787,
0.48223361372947693,
0.10106007009744644,
0.06539356708526611,
-0.2801435589790344,
-0.2663799524307251,
-0.1388554871082306,
0.13925214111804962,
-0.0844181552529335,
0.10859785974025726,
0.12790828943252563,
-0.21554748713970184,
0.3492255210876465,
0.07018781453371048,
-0.22825095057487488,
0.08564754575490952,
0.037685394287109375,
0.18247124552726746,
0.033167313784360886,
0.20777910947799683,
0.3472885489463806,
0.1417555958032608,
0.13365395367145538,
-0.6976091265678406,
0.15921324491500854,
0.003708468982949853,
0.08605644851922989,
-0.30274978280067444,
-0.20857448875904083,
0.022713398560881615,
-0.40904584527015686,
0.13548706471920013,
-0.24927113950252533,
0.2036934345960617,
0.12376207858324051,
0.0019244407303631306,
0.12449914962053299,
0.24350281059741974,
0.1824699491262436,
-0.26804232597351074,
-0.19198572635650635,
0.20258089900016785,
0.0015647367108613253,
0.011175542138516903,
0.4812692105770111,
0.23347817361354828,
0.17122769355773926,
0.04375928267836571,
0.28322634100914,
0.0035680627916008234,
0.12275473028421402,
0.17788967490196228,
0.21969185769557953,
0.2059088945388794,
0.06269656121730804,
0.15327861905097961,
-0.006218885537236929,
0.14778947830200195,
-0.22056719660758972,
-0.011906206607818604,
0.4550424814224243,
-0.4066658318042755,
0.19811592996120453,
-0.21304695308208466,
-0.013429309241473675,
-0.006045524962246418,
0.027414783835411072,
-0.353548526763916,
0.018435118719935417,
0.32518646121025085,
0.15782606601715088,
0.4982283115386963,
-0.20680512487888336,
0.28326189517974854,
-0.15573148429393768,
0.005761147942394018,
-0.10060767829418182,
0.09474678337574005,
-0.04062957689166069,
0.14364159107208252,
-0.0996469184756279,
-0.07702123373746872,
-0.4216921925544739,
0.08190618455410004,
0.10514067113399506,
-0.10545450448989868,
0.038568850606679916,
-0.0031589341815561056,
-0.09889774024486542,
-0.15847760438919067,
-0.05991500988602638,
-0.2916545271873474,
0.037877995520830154,
0.208257794380188,
0.19824644923210144,
0.20471513271331787,
-0.3442966043949127,
-0.20247796177864075,
-0.05764634534716606,
-0.30008596181869507,
0.1449369192123413,
-0.03448794037103653,
0.5397526025772095,
0.26085084676742554,
0.10270417481660843,
-0.2336450070142746,
-0.34656551480293274,
0.3593018054962158,
-0.039825689047575,
0.045082367956638336,
0.14411069452762604,
0.07718293368816376,
0.4756245017051697,
0.038900114595890045,
-0.062111981213092804,
-0.03667380288243294,
-0.13776645064353943,
0.0031249469611793756,
0.07762729376554489,
-0.30164724588394165,
0.12163159996271133,
0.11672543734312057,
-0.36485305428504944,
0.25106537342071533,
0.19787196815013885,
-0.5468524098396301,
0.12411422282457352,
-0.11958207190036774,
0.5138997435569763,
0.30337652564048767,
-0.30145686864852905,
0.023169895634055138,
-0.08882036060094833,
0.23715537786483765,
-0.0323478989303112,
-0.2406720519065857,
0.3399663269519806,
-0.045219969004392624,
0.12148179858922958,
-0.06955544650554657,
-0.13934646546840668,
0.08584508299827576,
-0.20947209000587463,
0.3407852053642273,
-0.07667418569326401,
-0.24211080372333527,
-0.18127110600471497,
-0.09496844559907913,
0.2206556499004364,
0.19956466555595398,
0.42702752351760864,
-0.15544797480106354,
-0.2086057811975479,
0.31160202622413635,
-0.1577574908733368,
-0.22212329506874084,
-0.2294902801513672,
-0.1876646727323532,
0.49101394414901733,
-0.14892074465751648,
-0.05116445943713188,
-0.3940584361553192,
0.1894480586051941,
-0.1001678854227066,
0.22202081978321075,
-0.03072972223162651,
0.14550819993019104,
0.10646488517522812,
-0.14042359590530396,
-0.09898141771554947,
-0.16125938296318054,
0.19102251529693604,
0.10087323188781738,
0.4178524315357208,
-0.20889830589294434,
0.33969756960868835,
-0.011748453602194786,
0.6103149652481079,
0.11154339462518692,
0.28925082087516785,
0.1768062263727188,
0.3831198811531067,
0.1211191862821579,
-0.021304422989487648,
-0.2075166255235672,
0.08797644823789597,
-0.035278961062431335,
-0.2933487594127655,
0.1319354623556137,
0.09843140840530396,
0.44145467877388,
-0.21859607100486755,
0.3410235047340393,
-0.21039487421512604,
-0.18817885220050812,
0.10581617802381516,
-0.20117539167404175,
-0.09891754388809204,
-0.14301298558712006,
0.07233200967311859,
0.11129562556743622,
-0.006030850112438202,
0.24129223823547363,
0.13906697928905487,
0.3017917275428772,
0.06980970501899719,
-0.21263635158538818,
0.15145903825759888,
-0.38341739773750305,
0.4566951096057892,
-0.24372249841690063,
-0.20382019877433777,
-0.21656528115272522,
-0.10135074704885483,
-0.12156014889478683,
-0.08758249133825302,
0.2147548496723175,
0.037468381226062775,
-0.23631280660629272,
0.1458825170993805,
-0.5916590690612793,
-0.41313526034355164,
-0.012086286209523678,
-0.20958679914474487,
-0.16050776839256287,
0.2359592318534851,
0.009517410770058632,
-0.48214441537857056,
-0.07566918432712555,
-0.22955210506916046,
0.0576559342443943,
-0.30146968364715576,
-0.03733626380562782,
-0.27272775769233704,
-0.11726187914609909,
-0.0696868896484375,
0.09247276932001114,
-0.22915935516357422,
0.28758054971694946,
-0.29212716221809387,
0.16015221178531647,
-0.15649841725826263,
-0.07427717000246048,
0.30701541900634766,
0.14654165506362915,
0.15041758120059967,
-0.33166810870170593,
0.07850136607885361,
0.20814377069473267,
-0.12938371300697327,
-0.12739324569702148,
0.1969534456729889,
-0.2532329261302948,
-0.29512912034988403,
0.37163832783699036,
0.01782948710024357,
0.22217781841754913,
0.29468289017677307,
-0.23429925739765167,
0.09449563175439835,
-0.3147599697113037,
0.3028069734573364,
-0.36134111881256104,
-0.09448893368244171,
0.3689984679222107,
0.10333053767681122,
0.012551280669867992,
-0.22992001473903656,
0.06905263662338257,
0.16536766290664673,
-0.313048779964447,
-0.3780951201915741,
-0.015291353687644005,
-0.27854445576667786,
0.5295836925506592,
0.22233206033706665,
0.9652845859527588,
0.047092072665691376,
0.07638230174779892,
0.15519924461841583,
0.09628552943468094,
0.46371036767959595,
-0.5718904733657837,
-0.035100940614938736,
-0.38788872957229614,
-0.0913153737783432,
0.029172517359256744,
0.03679221495985985,
-0.1170586496591568,
-0.05401007458567619,
-0.3936680257320404,
0.45579612255096436,
-0.2637161612510681,
-0.20051032304763794,
-0.1655346304178238,
-0.022966796532273293,
0.1302417814731598,
-0.2507963478565216,
-0.36687690019607544,
0.1868801862001419,
0.08898470550775528,
0.05425680801272392,
-0.26698753237724304,
-0.03938708081841469,
-0.2502804398536682,
-0.05858159810304642,
0.0858374759554863,
0.023232771083712578,
-0.021234942600131035,
0.10831049829721451,
-0.04773534834384918,
-0.15406407415866852,
-0.15824490785598755,
0.5442358255386353,
0.577367901802063,
0.21720607578754425,
-0.020821092650294304,
0.06009227782487869,
-0.12362325936555862,
0.5404776334762573,
0.09347251802682877,
-0.22243937849998474,
0.22948962450027466,
-0.024354690685868263,
-0.020822975784540176,
0.30626484751701355,
0.018267028033733368,
-0.07754530012607574,
-0.19891482591629028,
-0.15441811084747314,
-0.3258253037929535,
-0.3220331370830536,
0.4116705060005188,
0.2232387661933899,
0.23468232154846191,
-0.031175509095191956,
0.09289611130952835,
0.4529189169406891,
-0.3160114884376526,
0.18711301684379578,
0.1644582748413086,
-0.3283739984035492,
0.017681481316685677,
0.15692944824695587,
-0.2035154402256012,
-0.2034178525209427,
0.14470702409744263,
-0.12229371815919876,
0.06624965369701385,
-0.10501246899366379,
-0.22465188801288605,
0.32822421193122864,
-0.6158252954483032,
0.14952681958675385,
-0.013753147795796394,
-0.20144163072109222,
0.107968270778656,
0.508545994758606,
0.335573673248291,
-0.12335221469402313,
0.3740541934967041,
-0.16714711487293243,
-0.2427293211221695,
0.45136559009552,
0.061604030430316925,
0.12182273715734482,
-0.2861674427986145,
-0.3142951428890228,
-0.3326705992221832,
0.6031280159950256,
-0.33593496680259705,
-0.23593153059482574,
-0.4539037346839905,
0.13437660038471222,
-0.3620433807373047,
-0.23859946429729462,
0.20741768181324005,
0.29698145389556885,
0.009648709557950497,
0.18423116207122803,
-0.33441659808158875,
-0.1230727955698967,
-0.4081398844718933,
0.10030508041381836,
-0.1193290501832962,
0.22699984908103943,
-0.06685953587293625,
0.45270878076553345,
0.2298656404018402,
-0.26711341738700867,
0.1697513312101364,
0.18027447164058685,
0.29753032326698303,
0.20534354448318481,
0.019148794934153557,
0.22447386384010315,
-0.006998883560299873,
-0.026290996000170708,
0.29544052481651306,
0.13162940740585327,
0.16851338744163513,
0.05596480146050453,
-0.22180651128292084,
-0.17179164290428162,
0.3374066948890686,
0.17991378903388977,
0.23620082437992096,
-0.09369651973247528,
0.11398232728242874,
-0.041022174060344696,
0.08420253545045853,
-0.2749199867248535,
0.3915097713470459,
0.3128087818622589,
-0.01956341043114662,
-0.07965340465307236,
-0.1372186839580536,
0.2240026593208313,
0.024484869092702866,
0.3415914475917816,
-0.14900119602680206,
0.24896888434886932,
-0.011286737397313118,
0.3523801267147064,
0.15218253433704376,
0.014711707830429077,
0.42987585067749023,
-0.018922945484519005,
-0.07021015882492065,
-0.22366081178188324,
0.11531632393598557,
-0.2348208874464035,
-0.18158039450645447,
0.3596542477607727,
0.42222025990486145,
0.007723837625235319,
0.015292506664991379,
-0.02102935127913952,
-0.14479444921016693,
0.2545047104358673,
-0.3928194046020508,
0.6502039432525635,
0.22318986058235168,
0.050374433398246765,
-0.15274553000926971,
0.21645089983940125,
0.051755763590335846,
-0.247266948223114,
-0.24342791736125946,
0.42182657122612,
0.058169957250356674,
-0.34036004543304443,
-0.30583125352859497,
0.39594700932502747,
-0.07883983850479126,
-0.49692538380622864,
-0.032263725996017456,
-0.36866748332977295,
-0.2251703441143036,
-0.17598775029182434,
0.05589637532830238,
0.0035128421150147915,
-0.1908205896615982,
0.06391341984272003,
0.19896939396858215,
-0.27635127305984497,
-0.5920049548149109,
0.18237800896167755,
0.0905693918466568,
-0.04295870661735535,
-0.007743542548269033,
0.3834715187549591,
0.09549665451049805,
0.5452122092247009,
0.4397695064544678,
0.2471134513616562,
0.16982713341712952,
-0.41622114181518555,
0.009913140907883644,
-0.09416528791189194,
0.11790941655635834,
-0.11788643896579742,
0.42698752880096436,
0.21424995362758636,
-0.3480429947376251,
0.17495867609977722,
0.10140958428382874,
-0.13917990028858185,
0.22635005414485931,
-0.2509037256240845,
0.28871434926986694,
-0.18553867936134338,
0.4289945662021637,
0.11024986207485199,
0.38454604148864746,
-0.20346683263778687,
-0.05461209639906883,
-0.43682822585105896,
0.024294814094901085,
-0.24122686684131622,
-0.023813396692276,
0.13689465820789337,
0.16858378052711487,
0.07870732247829437,
0.16515132784843445,
0.035379212349653244,
0.08162590116262436,
0.179621621966362,
-0.29631903767585754,
0.263224333524704,
-0.1453603357076645,
-0.04983699321746826,
0.190426766872406,
0.3427991271018982,
-0.3479309678077698,
0.2818308472633362,
0.1530395895242691,
0.24116802215576172,
-0.14716771245002747,
0.08670215308666229,
-0.1079350933432579,
0.10365026444196701,
-0.4891265332698822,
0.2790878117084503,
-0.05778586119413376,
0.08197784423828125,
0.016420023515820503,
0.16227515041828156,
-0.2522098422050476,
-0.030885865911841393,
0.0889543667435646,
-0.03958763927221298,
-0.21984675526618958,
0.12053842097520828,
0.43691956996917725,
0.3809596002101898,
0.4347173273563385,
0.2746356725692749,
0.04911094903945923,
-0.0917205885052681,
-0.03483644500374794,
-0.23745858669281006,
0.009184634312987328,
-0.14512211084365845,
-0.09919089823961258,
0.14835679531097412,
0.12722817063331604,
-0.09819312393665314,
-0.2859269976615906,
0.7760741710662842,
0.10803290456533432,
-0.5372211337089539,
-0.45222508907318115,
0.10223299264907837,
0.2105948030948639,
-0.017401067540049553,
-0.2600543200969696,
0.3088753819465637,
-0.014705024659633636,
0.6009324193000793,
-0.19413775205612183,
-0.11327497661113739,
0.4475609064102173,
-0.43079015612602234,
0.3061503767967224,
0.11077351868152618,
0.3764396011829376,
0.4347318708896637,
-0.045352380722761154,
-0.135839581489563,
0.044514063745737076,
0.07199296355247498,
0.08791420608758926,
-0.006922176107764244,
0.1729041486978531,
0.2557840347290039,
-0.08468557894229889,
-0.23609128594398499,
-0.2595791816711426,
0.03496112674474716,
0.07869856059551239,
0.07815231382846832,
-0.23633436858654022
] |
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.4154247045516968,
-0.3093392252922058,
-0.030962737277150154,
0.030844738706946373,
0.21697840094566345,
0.048155277967453,
0.6097395420074463,
0.4196391701698303,
0.18411841988563538,
0.1952490359544754,
0.365461140871048,
0.5179553031921387,
-0.04680781438946724,
0.4430818557739258,
0.04526196047663689,
0.029736917465925217,
0.026294412091374397,
0.08160953223705292,
0.24497947096824646,
-0.13490775227546692,
-0.07026073336601257,
0.11851561069488525,
-0.5049004554748535,
-0.39208629727363586,
-0.6020738482475281,
0.07151307910680771,
-0.14711874723434448,
0.10561311990022659,
0.1308472454547882,
-0.3451221287250519,
0.20475715398788452,
-0.1966233253479004,
-0.29791104793548584,
0.2347993701696396,
-0.00012331550533417612,
-0.15181605517864227,
0.44055140018463135,
-0.1911161094903946,
-0.5569391846656799,
-0.27489346265792847,
-0.5155437588691711,
0.04148675501346588,
0.11268157511949539,
-0.3192621171474457,
-0.05202889442443848,
0.3783486485481262,
-0.05568930506706238,
-0.5345298647880554,
0.10371840745210648,
0.328458309173584,
0.08281887322664261,
0.24822106957435608,
-0.42709749937057495,
-0.015532003715634346,
0.06783593446016312,
0.23252837359905243,
-0.09633751958608627,
-0.18872509896755219,
-0.030734272673726082,
0.009068045765161514,
-0.029227128252387047,
0.374961793422699,
0.05525048449635506,
0.05120503902435303,
-0.08717174082994461,
0.146387979388237,
-0.10524041950702667,
-0.5381203889846802,
0.43759432435035706,
0.4902978539466858,
0.0022711202036589384,
-0.0752098560333252,
-0.34286510944366455,
-0.3614497780799866,
0.0746595561504364,
0.03526117280125618,
0.11278966069221497,
0.458781898021698,
-0.19108271598815918,
-0.12804000079631805,
-0.05158721283078194,
0.019721824675798416,
-0.06162414327263832,
-0.04678778722882271,
-0.5572407841682434,
0.3227187395095825,
0.027549827471375465,
-0.035228800028562546,
-0.11864730715751648,
-0.07922631502151489,
0.061516717076301575,
-0.3293149769306183,
-0.2264244556427002,
0.1363896280527115,
-0.43275249004364014,
-0.01333941612392664,
0.07350104302167892,
0.004605243448168039,
0.07144869863986969,
-0.06067398935556412,
0.09528352320194244,
0.13809634745121002,
0.08095590770244598,
0.03622390329837799,
0.32648375630378723,
0.21314656734466553,
0.6067309379577637,
-0.23365023732185364,
-0.10193949192762375,
-0.014645840041339397,
-0.2899347245693207,
0.02370627038180828,
0.01541732158511877,
0.22610165178775787,
-0.14524102210998535,
-0.10478386282920837,
0.5170949697494507,
-0.16385136544704437,
-0.4324900805950165,
0.19471099972724915,
-0.3115715980529785,
0.00008504414290655404,
-0.25101813673973083,
0.1180458664894104,
-0.2242431342601776,
0.45530790090560913,
-0.26906275749206543,
0.3509601652622223,
-0.13224883377552032,
-0.36372673511505127,
-0.24356520175933838,
0.08254878222942352,
0.07698629796504974,
0.0719890296459198,
0.16215430200099945,
-0.3181551396846771,
0.2477089762687683,
0.16279606521129608,
-0.07973337918519974,
-0.1926606446504593,
0.30626100301742554,
-0.2796267867088318,
0.16481709480285645,
0.23426564037799835,
0.1821506917476654,
0.10107110440731049,
0.2721574008464813,
-0.17796924710273743,
0.12815186381340027,
0.49003157019615173,
-0.21724428236484528,
-0.15913008153438568,
-0.164030060172081,
0.09029096364974976,
-0.5352232456207275,
-0.16920244693756104,
0.007725427858531475,
0.3015996813774109,
-0.044364653527736664,
-0.015721293166279793,
-0.03898081183433533,
-0.07848841696977615,
-0.0181761272251606,
-0.13675297796726227,
0.398320734500885,
0.40513017773628235,
-0.6290892362594604,
-0.019426584243774414,
-0.12459450960159302,
0.43375521898269653,
0.028434542939066887,
-0.08469472080469131,
0.0023017071653157473,
0.45012637972831726,
0.04501649737358093,
0.48834046721458435,
0.1594999134540558,
-0.6423998475074768,
0.12343717366456985,
0.11090933531522751,
0.07653327286243439,
0.2729056477546692,
0.017095670104026794,
-0.15204288065433502,
0.2271611988544464,
0.31211385130882263,
0.15354745090007782,
0.0757143497467041,
-0.11064478754997253,
-0.0357702262699604,
-0.4687983989715576,
-0.24150140583515167,
0.37339818477630615,
0.15707768499851227,
0.05014462769031525,
-0.11752588301897049,
-0.016303502023220062,
0.3112971782684326,
0.1443435102701187,
0.01593714952468872,
0.14076001942157745,
0.2728126347064972,
0.409891277551651,
-0.11479835212230682,
-0.06658367812633514,
0.05183899775147438,
-0.41125211119651794,
0.18282929062843323,
0.025306671857833862,
0.4265534579753876,
0.05406860634684563,
-0.2753804624080658,
-0.3356620669364929,
-0.04227696359157562,
-0.36615052819252014,
-0.5387890934944153,
0.06389619410037994,
-0.09779682755470276,
0.02665606141090393,
0.2791168987751007,
-0.22979509830474854,
0.049998361617326736,
-0.06834525614976883,
0.023363247513771057,
-0.4188796579837799,
0.14384934306144714,
0.10576381534337997,
-0.06496890634298325,
-0.33973097801208496,
0.4472498297691345,
0.029908346012234688,
-0.027710923925042152,
0.0762486606836319,
0.23491589725017548,
0.3358779847621918,
0.015542097389698029,
0.39394351840019226,
-0.1505122184753418,
0.22316761314868927,
-0.10096243023872375,
-0.03896864876151085,
0.2608838677406311,
0.2673649489879608,
-0.2982000410556793,
-0.5522269010543823,
0.4946863353252411,
0.04741593077778816,
0.1908845454454422,
-0.11222285032272339,
0.004903376568108797,
-0.21176980435848236,
-0.1756969839334488,
-0.10373193025588989,
-0.07380830496549606,
-0.04853668436408043,
-0.4181040823459625,
0.09155016392469406,
0.054891448467969894,
-0.24733033776283264,
0.23311418294906616,
0.37614402174949646,
0.18272390961647034,
0.14254970848560333,
-0.14308379590511322,
-0.2738608121871948,
-0.13779127597808838,
0.10528659075498581,
0.19024014472961426,
0.29236477613449097,
0.13322706520557404,
0.08500771969556808,
-0.1986432671546936,
0.2707417607307434,
-0.19874431192874908,
0.2556268870830536,
0.27372774481773376,
0.02227383852005005,
0.30038967728614807,
0.26719486713409424,
0.010933367535471916,
-0.06196390837430954,
0.22273601591587067,
0.25346067547798157,
0.13604626059532166,
-0.12223601341247559,
-0.05019580200314522,
-0.2849494516849518,
-0.11902016401290894,
-0.036239784210920334,
-0.04621012881398201,
-0.11452823877334595,
-0.5389600992202759,
-0.06156091392040253,
-0.14734701812267303,
-0.05175946652889252,
0.03271470218896866,
-0.12259981781244278,
0.20001299679279327,
0.1589461863040924,
-0.4246273636817932,
-0.29075637459754944,
-0.4309130609035492,
-0.25428953766822815,
0.014486681669950485,
0.05692664161324501,
0.054898835718631744,
-0.007812101393938065,
0.06467229127883911,
-0.15381000936031342,
-0.11301227658987045,
-0.5093662142753601,
-0.014738433994352818,
-0.3350980281829834,
0.498202919960022,
0.013105344027280807,
0.4966801106929779,
-0.37863901257514954,
-0.08842676877975464,
0.32205691933631897,
0.05067344009876251,
-0.22153110802173615,
0.10994043946266174,
0.1743040680885315,
0.13071641325950623,
-0.44161778688430786,
-0.7334836721420288,
-0.02263505943119526,
-0.09645918756723404,
0.05667360499501228,
0.05830663815140724,
-0.11010865122079849,
0.40223050117492676,
-0.030613958835601807,
0.31086063385009766,
0.06322602182626724,
-0.32870176434516907,
-0.15135852992534637,
-0.15706904232501984,
0.3093302249908447,
-0.07679254561662674,
-0.3370245397090912,
0.2594739496707916,
-0.21566006541252136,
0.4304482042789459,
-0.17137667536735535,
-0.4541926085948944,
-0.11877389252185822,
-0.014037888497114182,
0.4953697621822357,
0.10774633288383484,
-0.2205435186624527,
0.1702054888010025,
-0.04101497307419777,
0.05682242289185524,
-0.10341891646385193,
0.022384416311979294,
0.27614420652389526,
0.29576900601387024,
0.2035989612340927,
-0.011686836369335651,
0.12539760768413544,
0.2966402769088745,
0.4599238336086273,
0.07361997663974762,
0.31234729290008545,
0.13464421033859253,
-0.36397454142570496,
0.2783573865890503,
-0.25436437129974365,
-0.0631808340549469,
0.2531130313873291,
0.012764828279614449,
0.00026576529489830136,
0.31429523229599,
-0.07568883150815964,
0.3516101837158203,
-0.14413316547870636,
0.24366945028305054,
-0.4402601420879364,
-0.25583285093307495,
0.031188881024718285,
-0.306744784116745,
0.1770627200603485,
0.1730920821428299,
0.36191636323928833,
-0.0012296553468331695,
-0.2652313709259033,
-0.07782784104347229,
-0.23062482476234436,
0.10610324889421463,
-0.09548567235469818,
-0.26906466484069824,
0.062183983623981476,
-0.24012930691242218,
0.1976781040430069,
0.24813321232795715,
0.20037539303302765,
0.05040943995118141,
-0.3557700216770172,
0.14613963663578033,
-0.07043593376874924,
0.7759650945663452,
-0.08562304079532623,
-0.13601844012737274,
0.10711240023374557,
0.06044378876686096,
-0.41187918186187744,
-0.06264976412057877,
-0.2942464053630829,
-0.1385630965232849,
0.2875731587409973,
0.2528027296066284,
-0.2654587924480438,
-0.009564466774463654,
0.11421539634466171,
0.241778165102005,
-0.17782336473464966,
0.15979130566120148,
-0.3231334984302521,
-0.28901925683021545,
0.03305601328611374,
-0.12197490781545639,
-0.06334202736616135,
0.5701521039009094,
-0.14833323657512665,
0.03150993213057518,
-0.20937682688236237,
0.05930427089333534,
0.3717397153377533,
0.17128479480743408,
0.5655803084373474,
-0.12462110817432404,
0.21353881061077118,
-0.07584886252880096,
-0.3037150800228119,
-0.21197007596492767,
0.3906049132347107,
0.09800013899803162,
0.04907846078276634,
0.07804636657238007,
-0.39313817024230957,
0.42021533846855164,
0.44309934973716736,
0.1791420578956604,
0.3714132010936737,
-0.22204525768756866,
-0.03313545510172844,
-0.18602541089057922,
0.1904967725276947,
0.08332144469022751,
-0.15194426476955414,
-0.023209353908896446,
-0.20015007257461548,
0.23318564891815186,
-0.10878587514162064,
0.12119446694850922,
0.15512703359127045,
0.11079292744398117,
-0.008557241410017014,
0.2784827947616577,
0.1261935532093048,
0.826199471950531,
0.1877860575914383,
0.32580310106277466,
0.4941944479942322,
0.2213577777147293,
0.20218968391418457,
-0.2013828605413437,
0.0570373609662056,
-0.45869797468185425,
-0.039289623498916626,
-0.0270802304148674,
0.08089514821767807,
0.26171013712882996,
0.010431098751723766,
-0.22322000563144684,
0.1786383092403412,
-0.029129527509212494,
0.3884911835193634,
0.02656414359807968,
0.05434925854206085,
-0.11138827353715897,
0.06849358975887299,
-0.0016607134602963924,
0.06882299482822418,
-0.028621122241020203,
0.12489435821771622,
0.0813865214586258,
-0.14255471527576447,
-0.2323155254125595,
-0.05255905166268349,
-0.09025946259498596,
0.2771011292934418,
-0.18112510442733765,
-0.020634915679693222,
0.4377574622631073,
-0.29846999049186707,
-0.15906815230846405,
0.6575037240982056,
0.19158153235912323,
0.15584269165992737,
-0.17076900601387024,
0.3402540385723114,
0.1424960345029831,
0.055643483996391296,
0.3146829903125763,
0.14608857035636902,
0.1573820561170578,
0.027013128623366356,
-0.3823414742946625,
0.33585092425346375,
-0.37319114804267883,
0.23025235533714294,
-0.4702819585800171,
0.2857646942138672,
0.11929220706224442,
-0.25722336769104004,
-0.5466192364692688,
-0.04847773164510727,
0.17503465712070465,
-0.10812214016914368,
0.06010183319449425,
-0.207710400223732,
-0.07429928332567215,
0.10680559277534485,
-0.012308605015277863,
-0.32177215814590454,
0.025891367346048355,
0.15594561398029327,
-0.014476155862212181,
0.19365805387496948,
0.62034010887146,
-0.031207511201500893,
0.054792650043964386,
-0.27723032236099243,
0.3882184326648712,
-0.17925909161567688,
-0.08772115409374237,
0.1648571491241455,
0.19164617359638214,
-0.03527270257472992,
0.038199104368686676,
0.4818536639213562,
-0.12202876061201096,
-0.043136291205883026,
-0.10347604751586914,
-0.28853660821914673,
0.1736024022102356,
0.26716741919517517,
-0.07289483398199081,
0.1629696935415268,
0.12819315493106842,
-0.015042471699416637,
0.1816094070672989,
0.0585281066596508,
-0.19313667714595795,
0.14721813797950745,
-0.20938532054424286,
0.35087263584136963,
-0.1339954286813736,
-0.06594245135784149,
0.564238429069519,
-0.1818602830171585,
0.05841048061847687,
0.006646140478551388,
0.13396523892879486,
-0.19701898097991943,
-0.25581684708595276,
0.1585150808095932,
0.17885830998420715,
0.2830894887447357,
-0.08590715378522873,
0.018623629584908485,
-0.03936164081096649,
-0.14349499344825745,
0.1618814766407013,
0.07611218094825745,
-0.09855056554079056,
0.32530295848846436,
0.20540936291217804,
0.4561518132686615,
-0.42975205183029175,
-0.04627501592040062,
0.02253163792192936,
-0.07287590950727463,
0.12149177491664886,
0.03920295089483261,
0.04218985140323639,
0.13835300505161285,
0.04079892486333847,
0.05779952183365822,
-0.10128594934940338,
-0.36861246824264526,
0.04665511101484299,
-0.41577914357185364,
0.06773649156093597,
-0.10169964283704758,
-0.09814600646495819,
0.2605660855770111,
-0.3660266697406769,
0.11430012434720993,
0.020420178771018982,
0.14286845922470093,
-0.18889103829860687,
0.32215502858161926,
-0.11793440580368042,
0.19580616056919098,
0.07146291434764862,
0.21069985628128052,
0.12863051891326904,
-0.13639749586582184,
0.28716662526130676,
0.11757989227771759,
0.036415621638298035,
-0.6664673686027527,
0.375586599111557,
0.3628863990306854,
-0.03508560732007027,
0.03098270110785961,
-0.07711231708526611,
-0.25203466415405273,
-0.39192357659339905,
0.4506193995475769,
0.0629538968205452,
0.48280978202819824,
0.1476823091506958,
-0.23087312281131744,
-0.10546011477708817,
-0.00709928385913372,
0.08785317838191986,
0.11008454114198685,
-0.2691180408000946,
0.013935176655650139,
0.16704532504081726,
0.5890686511993408,
0.014996818266808987,
-0.30447423458099365,
-0.0055160135962069035,
-0.2003394216299057,
-0.2105047106742859,
-0.12672798335552216,
-0.08362728357315063,
-0.10831792652606964,
-0.07547440379858017,
-0.04365832358598709,
0.23669931292533875,
-0.10121667385101318,
0.1387130171060562,
0.21776345372200012,
-0.0327058769762516,
-0.20600928366184235,
-0.1638249307870865,
0.33684584498405457,
0.33604276180267334,
-0.06873196363449097,
0.3295077979564667,
0.1154530793428421,
0.06558925658464432,
0.34558233618736267,
0.2013692408800125,
0.27946633100509644,
0.14239245653152466,
-0.4256044924259186,
0.03919710963964462,
-0.09182317554950714,
-0.27680304646492004,
0.2572437524795532,
0.12004479765892029,
0.1936916559934616,
0.22008496522903442,
0.43998435139656067,
0.08907106518745422,
-0.07374055683612823,
-0.06688369810581207,
0.3249742090702057,
-0.13887439668178558,
-0.3395926356315613,
0.3811063766479492,
0.0413786880671978,
-0.0053412592969834805,
-0.06758509576320648,
-0.022471223026514053,
-0.49675872921943665,
-0.0474371574819088,
-0.02207197993993759,
0.3517431318759918,
0.03260156512260437,
-0.011430111713707447,
0.039400435984134674,
-0.06623779982328415,
0.16976043581962585,
0.15089423954486847,
-0.01646408997476101,
-0.2606024742126465,
-0.045989856123924255,
-0.7141709923744202,
-0.0054459357634186745,
-0.058167461305856705,
-0.2517246603965759,
0.018905946984887123,
0.16416583955287933,
-0.15481746196746826,
-0.06261897832155228,
-0.3487444818019867,
-0.22883422672748566,
0.15305784344673157,
-0.10760267823934555,
-0.6533305048942566,
-0.06718377023935318,
-0.0007709922501817346,
-0.2528156340122223,
-0.0974927470088005,
-0.2104121744632721,
0.052049241960048676,
0.028256746008992195,
-0.11570695787668228,
0.14715608954429626,
-0.26262661814689636,
0.06554543226957321,
0.07913701236248016,
-0.28172653913497925,
-0.16712549328804016,
0.47709518671035767,
0.11516833305358887,
0.06766656041145325,
-0.17488573491573334,
0.08076375722885132,
-0.029565146192908287,
0.05885418504476547,
0.14631740748882294,
0.32963261008262634,
0.14597712457180023,
-0.19905011355876923,
0.1463584005832672,
0.4578503370285034,
0.27632802724838257,
-0.01174002792686224,
-0.10373681038618088,
0.17733746767044067,
-0.09812649339437485,
0.15416817367076874,
0.14406390488147736,
0.22314082086086273,
-0.12467346340417862,
0.21932286024093628,
-0.1163197010755539,
-0.25399577617645264,
0.2665930688381195,
-0.5438081622123718,
-0.353689044713974,
-0.2601948380470276,
0.10494045913219452,
0.05369570851325989,
-0.17726263403892517,
-0.9156139492988586,
-0.2931126654148102,
0.29733818769454956,
-0.08632268756628036,
0.00862446241080761,
0.1512213945388794,
-0.017213184386491776,
0.09259254485368729,
-0.2654482424259186,
-0.1597663015127182,
0.07335755974054337,
0.05311140790581703,
0.04304221272468567,
-0.23086275160312653
] |
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]"
```


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]"
```


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.07691366970539093,
-0.4744408130645752,
-0.11490054428577423,
-0.03132501244544983,
0.04703562334179878,
0.07470441609621048,
-0.23948203027248383,
0.23211319744586945,
0.342098206281662,
0.024670341983437538,
-0.07138074934482574,
0.2375306487083435,
0.0024277672637254,
0.06625770777463913,
0.012658243998885155,
0.03989281877875328,
0.41989707946777344,
0.2260306179523468,
-0.03164812922477722,
-0.23290148377418518,
0.0014590799110010266,
0.30705681443214417,
-0.01917746476829052,
0.05703943595290184,
-0.1384628564119339,
0.06295222043991089,
-0.2245895117521286,
0.09824918955564499,
-0.27843376994132996,
-0.4324713349342346,
0.13247469067573547,
-0.1166829764842987,
0.023135114461183548,
0.44869697093963623,
-0.00012481976591516286,
0.15168827772140503,
0.21498320996761322,
0.09741391241550446,
-0.2460973560810089,
-0.37166929244995117,
-0.10549496114253998,
-0.3073156476020813,
0.18794995546340942,
-0.04912804439663887,
0.15651237964630127,
-0.04965925216674805,
0.04735676199197769,
-0.1054643839597702,
0.2997089922428131,
0.19500413537025452,
0.11071141064167023,
0.4596008360385895,
0.3656332194805145,
-0.19967587292194366,
0.08758178353309631,
0.17472004890441895,
-0.23234675824642181,
0.1902422457933426,
0.2368946671485901,
0.1777072697877884,
0.524268627166748,
0.10322602838277817,
-0.02408641204237938,
-0.04983142018318176,
0.005252233240753412,
-0.041064560413360596,
0.29715895652770996,
-0.25096026062965393,
-0.12558859586715698,
0.08832268416881561,
-0.07813336700201035,
-0.27790263295173645,
-0.4838896095752716,
-0.11233964562416077,
0.1949886828660965,
-0.14757749438285828,
0.2691461145877838,
0.2406691014766693,
-0.26615580916404724,
0.2806167006492615,
-0.08451014757156372,
-0.5820128321647644,
-0.11155828088521957,
0.07738517224788666,
0.1476295292377472,
0.04033214598894119,
-0.18953432142734528,
0.04332607239484787,
0.24591048061847687,
0.04190175607800484,
-0.30365028977394104,
0.021317511796951294,
0.24084429442882538,
0.25641992688179016,
-0.21953527629375458,
-0.11846829205751419,
-0.07943744957447052,
-0.08240609616041183,
0.07610070705413818,
-0.20718303322792053,
-0.6648664474487305,
-0.3138442933559418,
-0.2615453600883484,
0.22304847836494446,
-0.032367873936891556,
-0.09022267162799835,
-0.08567862212657928,
-0.005655184853821993,
-0.0009372649947181344,
0.023171409964561462,
0.2461709827184677,
0.016670385375618935,
-0.15413981676101685,
-0.13522416353225708,
-0.7007267475128174,
-0.35488244891166687,
0.24980700016021729,
-0.13182249665260315,
-0.46213456988334656,
0.16044974327087402,
0.07448726892471313,
0.06554428488016129,
0.08227173984050751,
0.3852747678756714,
0.028805134817957878,
-0.10565855354070663,
0.1026323214173317,
0.256138414144516,
-0.23777100443840027,
0.14406879246234894,
-0.04807300120592117,
0.18994009494781494,
-0.12150038033723831,
-0.011137868277728558,
0.12129557132720947,
-0.3222523629665375,
0.3431432843208313,
0.11374856531620026,
0.034656379371881485,
0.13655313849449158,
-0.20193445682525635,
0.11114490777254105,
-0.20676955580711365,
0.5875925421714783,
0.05399036779999733,
0.17940981686115265,
0.14315207302570343,
0.1792561560869217,
-0.17603565752506256,
0.1573634147644043,
-0.24108518660068512,
-0.24450872838497162,
-0.2892548441886902,
0.06983160227537155,
-0.23900581896305084,
-0.1153462678194046,
-0.06180989742279053,
-0.2575474977493286,
-0.08986014872789383,
0.10622347891330719,
0.06461457908153534,
-0.042512573301792145,
0.1820688396692276,
-0.10514828562736511,
0.1427767276763916,
0.07189725339412689,
-0.17216703295707703,
-0.22538968920707703,
-0.25111719965934753,
-0.16987834870815277,
-0.0933295413851738,
0.3640255928039551,
0.2783350646495819,
0.22005927562713623,
-0.26883289217948914,
-0.12689951062202454,
0.4351513385772705,
-0.5085310935974121,
0.012208856642246246,
0.2115217000246048,
0.027188412845134735,
-0.11931277066469193,
0.10288230329751968,
-0.1287747472524643,
-0.47106295824050903,
0.10203465819358826,
-0.09780053794384003,
0.046504613012075424,
-0.01817629672586918,
-0.223240464925766,
-0.16551624238491058,
-0.5149327516555786,
-0.016366004943847656,
0.3023717403411865,
0.15327201783657074,
-0.07267371565103531,
-0.038370341062545776,
-0.38197147846221924,
0.15659105777740479,
-0.04429951682686806,
0.027357038110494614,
0.4160861670970917,
0.8438926339149475,
0.5213229656219482,
-0.08739452064037323,
-0.36665666103363037,
0.25488877296447754,
0.21904876828193665,
0.08219520002603531,
0.061597708612680435,
-0.43361660838127136,
-0.11646842211484909,
-0.19096359610557556,
0.4214516878128052,
0.05273277685046196,
-0.1817913055419922,
-0.04935533180832863,
-0.008457495830953121,
0.22062017023563385,
0.25808626413345337,
-0.31924328207969666,
0.2147805094718933,
-0.034165602177381516,
0.3442053496837616,
-0.4534941613674164,
0.16508467495441437,
-0.27492302656173706,
-0.09541942179203033,
-0.14683078229427338,
0.3459372818470001,
-0.001902558607980609,
-0.06205445155501366,
0.07658810913562775,
0.28941598534584045,
0.05956972762942314,
-0.26153838634490967,
0.2932679355144501,
-0.06171596795320511,
0.07498600333929062,
-0.20804157853126526,
0.15047234296798706,
-0.05341869965195656,
-0.03144840896129608,
0.3963765799999237,
0.05430881306529045,
0.010921440087258816,
-0.026062961667776108,
0.1357118934392929,
0.2305481880903244,
0.24022825062274933,
0.2736192047595978,
0.06629280000925064,
0.0941660925745964,
-0.2988326847553253,
0.34428009390830994,
0.035348959267139435,
0.30083346366882324,
-0.18414278328418732,
0.11901592463254929,
-0.0637625977396965,
0.13552850484848022,
-0.0006025647162459791,
0.043398723006248474,
0.21183384954929352,
-0.0962957814335823,
0.24987103044986725,
0.03975505381822586,
-0.3664267361164093,
0.5468246340751648,
0.0831654965877533,
-0.27616503834724426,
0.18397372961044312,
-0.0554187186062336,
-0.04882754012942314,
0.2700510323047638,
0.0076515814289450645,
0.09888872504234314,
-0.10480216890573502,
-0.059918951243162155,
-0.0862976461648941,
-0.21696697175502777,
-0.410428911447525,
-0.09999019652605057,
0.20723165571689606,
-0.3612683415412903,
-0.018649380654096603,
-0.0393621064722538,
0.07695847749710083,
-0.12090617418289185,
-0.3665563762187958,
-0.41472873091697693,
-0.16035930812358856,
0.26631098985671997,
0.04463067650794983,
0.0994485467672348,
0.20247861742973328,
-0.028227228671312332,
0.035003818571567535,
0.07854138314723969,
-0.12829336524009705,
-0.24492835998535156,
-0.07394973188638687,
0.004250981379300356,
-0.003853315720334649,
-0.1449315845966339,
0.00875964853912592,
0.335532546043396,
-0.1896272450685501,
-0.14916718006134033,
-0.38148996233940125,
-0.39651933312416077,
0.2551424503326416,
-0.42972519993782043,
0.441501647233963,
0.3835311532020569,
0.07211509346961975,
-0.0986623764038086,
0.08968685567378998,
0.27080032229423523,
-0.37852829694747925,
-0.3092987537384033,
-0.0552804209291935,
0.033928655087947845,
-0.27504676580429077,
-0.194257915019989,
-0.20932996273040771,
-0.3411785364151001,
-0.09500806778669357,
0.35611769556999207,
-0.017915960401296616,
-0.08848442882299423,
0.19341802597045898,
0.3617047071456909,
0.10972236096858978,
-0.0950985997915268,
0.06941435486078262,
-0.30111628770828247,
-0.34255069494247437,
0.08252623677253723,
-0.2646843194961548,
-0.23847416043281555,
0.3331694006919861,
0.15141160786151886,
0.4445260167121887,
0.07198625057935715,
-0.37102147936820984,
-0.24898357689380646,
-0.22364339232444763,
0.47908979654312134,
-0.12390939891338348,
0.6306270956993103,
0.18990062177181244,
0.008816955611109734,
0.04241100698709488,
-0.1913038194179535,
0.10983748733997345,
-0.13456371426582336,
-0.1592760533094406,
0.2964019477367401,
-0.13105642795562744,
0.4414907991886139,
-0.15399447083473206,
0.8269538283348083,
0.30679765343666077,
0.02855324000120163,
0.21140585839748383,
-0.21272438764572144,
0.6402565836906433,
-0.005048030987381935,
-0.26454541087150574,
0.1621617078781128,
0.38453882932662964,
0.028123624622821808,
0.07110550999641418,
0.08099240064620972,
0.3834085166454315,
-0.061769310384988785,
0.13071879744529724,
-0.3502660095691681,
0.012170698493719101,
-0.17113421857357025,
0.033311206847429276,
0.4369102120399475,
-0.13252155482769012,
0.016750924289226532,
-0.09214421361684799,
-0.024612460285425186,
0.015982938930392265,
0.48724377155303955,
0.24053752422332764,
0.11354396492242813,
-0.011385203339159489,
-0.43392595648765564,
-0.4145159423351288,
0.1889892965555191,
-0.11341787129640579,
0.36095622181892395,
-0.1997370421886444,
0.14500203728675842,
0.22089475393295288,
0.12926200032234192,
0.7559734582901001,
-0.06841504573822021,
-0.21228183805942535,
-0.07926386594772339,
-0.027647772803902626,
-0.6903046369552612,
-0.13615810871124268,
-0.15788133442401886,
0.06702352315187454,
0.45560309290885925,
0.021314894780516624,
-0.27830567955970764,
-0.18880483508110046,
0.32213884592056274,
0.026692068204283714,
0.08814863860607147,
-0.36716458201408386,
-0.4545161724090576,
-0.42099347710609436,
-0.3265370726585388,
-0.08432868868112564,
0.09370313584804535,
-0.03638869896531105,
-0.15793770551681519,
0.2681914269924164,
-0.057695548981428146,
0.10779193788766861,
0.10957078635692596,
0.099632628262043,
0.035802509635686874,
-0.24229633808135986,
0.20982412993907928,
0.13467085361480713,
-0.024849623441696167,
0.19330789148807526,
0.570361852645874,
-0.0988544225692749,
-0.6263927221298218,
-0.10727404803037643,
0.1094898208975792,
0.3423614203929901,
0.20462289452552795,
-0.1804571896791458,
0.03366575017571449,
0.15687216818332672,
0.2679292559623718,
-0.07990697771310806,
-0.09836245328187943,
0.3739108145236969,
0.21747879683971405,
-0.09900665283203125,
-0.0926615372300148,
0.238132044672966,
0.38196325302124023,
0.1373058706521988,
-0.10196586698293686,
0.3287500739097595,
-0.04224458336830139,
0.23446378111839294,
-0.10598303377628326,
0.7789873480796814,
-0.08670255541801453,
0.15908169746398926,
0.6274839043617249,
-0.0765036940574646,
0.8931114673614502,
-0.3930598199367523,
0.07220304012298584,
-0.23303592205047607,
0.07848873734474182,
0.0208488367497921,
-0.13310304284095764,
0.46616411209106445,
-0.028379039838910103,
-0.17052200436592102,
0.2575989067554474,
0.3362354338169098,
-0.1226145401597023,
0.16748285293579102,
0.0626428872346878,
-0.12709106504917145,
-0.10525336861610413,
-0.3380540609359741,
0.11018731445074081,
0.04854656755924225,
0.3355701267719269,
-0.15527865290641785,
0.21168650686740875,
-0.3033246397972107,
-0.17893564701080322,
-0.38920876383781433,
-0.03640079125761986,
0.044394880533218384,
0.35371941328048706,
0.4338511526584625,
-0.04438524693250656,
0.21676895022392273,
-0.21524205803871155,
0.6817358136177063,
0.19025419652462006,
-0.32603025436401367,
0.3821086883544922,
-0.28358620405197144,
-0.2325633466243744,
0.08738121390342712,
0.037180058658123016,
0.08135957270860672,
-0.14988557994365692,
-0.4112211763858795,
0.06436102092266083,
-0.11442987620830536,
-0.13162481784820557,
-0.2042657881975174,
-0.07076119631528854,
-0.2570993900299072,
-0.18155233561992645,
-0.3102242350578308,
-0.05283340439200401,
0.25387638807296753,
-0.013730324804782867,
0.005024126265197992,
0.2653238773345947,
-0.24928875267505646,
0.24173356592655182,
-0.2785974144935608,
-0.04180870205163956,
-0.2203863114118576,
0.157495379447937,
0.11258561909198761,
-0.3182971477508545,
0.06299703568220139,
0.04994308575987816,
-0.16366901993751526,
-0.039561983197927475,
-0.36385634541511536,
-0.1107880026102066,
-0.2669748365879059,
-0.08406886458396912,
0.3426753580570221,
-0.2099533975124359,
-0.030302930623292923,
0.01867172308266163,
0.13523666560649872,
-0.30247071385383606,
0.021545423194766045,
-0.37459293007850647,
-0.01515740156173706,
0.10551377385854721,
-0.10559346526861191,
0.15610216557979584,
0.27247264981269836,
0.2867540419101715,
-0.011406749486923218,
-0.10350135713815689,
-0.14044439792633057,
0.05882211774587631,
0.04973110929131508,
-0.07307196408510208,
0.2619273364543915,
-0.028208225965499878,
0.23384660482406616,
-0.25213736295700073,
0.07643882185220718,
-0.1887473165988922,
-0.1489497721195221,
-0.03887679800391197,
0.04491782188415527,
0.17105260491371155,
0.08942656219005585,
0.006613713223487139,
0.004243968054652214,
-0.04066622257232666,
-0.27792635560035706,
-0.08153381943702698,
0.19865545630455017,
0.17878058552742004,
-0.23271659016609192,
0.20870523154735565,
-0.42407238483428955,
-0.07514844089746475,
0.030208345502614975,
0.1574316769838333,
0.09575081616640091,
0.3788107633590698,
0.2075851857662201,
0.2072233259677887,
-0.12403672933578491,
0.12776926159858704,
-0.11835004389286041,
-0.002244425006210804,
0.12054233253002167,
0.17746266722679138,
0.15495848655700684,
-0.2892749309539795,
-0.12217235565185547,
-0.142592653632164,
0.39255526661872864,
0.30524471402168274,
-0.11551489681005478,
0.17372332513332367,
0.43680328130722046,
0.09982522577047348,
-0.3585014045238495,
0.034015245735645294,
0.43737876415252686,
0.02897043712437153,
-0.01768791489303112,
0.2994975447654724,
0.21533063054084778,
-0.010513253509998322,
0.25997447967529297,
0.2954027056694031,
0.25357550382614136,
0.1891104131937027,
0.10189580917358398,
-0.11949580907821655,
0.1733827441930771,
0.07374441623687744,
-0.0307607464492321,
0.10635728389024734,
0.11974810808897018,
0.5863202810287476,
-0.19236347079277039,
0.16030411422252655,
-0.1387949287891388,
0.13275890052318573,
0.1539233922958374,
-0.2321939617395401,
0.1293734759092331,
-0.23086608946323395,
0.10975358635187149,
-0.06122688576579094,
-0.1860150843858719,
0.28696000576019287,
-0.24518035352230072,
-0.28567513823509216,
-0.28433626890182495,
0.3253025412559509,
-0.13507859408855438,
-0.07879577577114105,
0.2950962781906128,
0.08361261337995529,
-0.02317206561565399,
-0.03775233030319214,
0.2906123995780945,
-0.4265965521335602,
0.16645947098731995,
0.3014776408672333,
-0.09525126218795776,
-0.47804728150367737,
-0.059267692267894745,
0.45195698738098145,
0.0746055543422699,
0.09841641783714294,
0.2571074068546295,
-0.015945184975862503,
-0.3997572958469391,
-0.1361055225133896,
0.3688998222351074,
0.7117063403129578,
0.19545455276966095,
0.10449707508087158,
0.15158703923225403,
-0.20346523821353912,
0.14907482266426086,
-0.08968233317136765,
0.12616394460201263,
-0.11061233282089233,
0.3228428363800049,
0.02420325204730034,
0.09705393761396408,
-0.0205110814422369,
-0.3307763338088989,
-0.006104183383285999,
0.21469856798648834,
-0.2782037556171417,
0.1584506779909134,
-0.2380259931087494,
-0.08548633754253387,
-0.08624746650457382,
0.04798462241888046,
-0.6899207830429077,
0.14938952028751373,
0.2461608499288559,
0.12704788148403168,
-0.173113152384758,
-0.321834534406662,
-0.011932949535548687,
-0.10006708651781082,
0.174717977643013,
0.6672798991203308,
0.3155692219734192,
-0.24675346910953522,
-0.17198465764522552,
-0.37480220198631287,
0.12807226181030273,
-0.2415085732936859,
-0.28672468662261963,
0.0783742293715477,
0.03264811262488365,
-0.06080565229058266,
0.13589464128017426,
0.32292553782463074,
-0.0712391659617424,
-0.05365360900759697,
0.0441734604537487,
-0.09277515113353729,
-0.15435117483139038,
-0.1638696789741516,
-0.21261486411094666,
0.21310026943683624,
0.0746028870344162,
-0.004011130891740322,
-0.1527809351682663,
-0.1440475583076477,
-0.1683676838874817,
0.18016421794891357,
-0.040972091257572174,
-0.34122252464294434,
0.5376926064491272,
0.21971428394317627,
0.2743595838546753,
-0.005445967894047499,
-0.3348967134952545,
-0.2708340585231781,
-0.2661760151386261,
-0.1113562062382698,
0.38955506682395935,
-0.10459969192743301,
0.0746271088719368,
-0.3636818826198578,
-0.3409644663333893,
-0.33718594908714294,
0.49854016304016113,
0.25566840171813965,
-0.4602464735507965,
0.019608037546277046,
0.32155701518058777,
-0.32603389024734497,
0.42325571179389954,
0.17070640623569489,
0.25099891424179077,
-0.1147206723690033,
0.5524261593818665,
-0.21265052258968353,
-0.18025270104408264,
0.3853515386581421,
-0.1864648014307022,
-0.21237759292125702,
-0.1088998094201088,
0.26617667078971863,
0.20092806220054626,
-0.1819354146718979,
-0.8109850287437439,
0.037858929485082626,
0.17091847956180573,
0.28731977939605713,
-0.12085109204053879,
0.10789750516414642,
-0.018306242302060127,
-0.08173945546150208,
-0.00005827261702506803,
0.49480947852134705,
-0.19482353329658508,
-0.03302009031176567,
0.4954163432121277,
-0.09783076494932175
] |
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.564568817615509,
-0.12574242055416107,
-0.11738550662994385,
-0.16663266718387604,
-0.07130606472492218,
-0.0848815068602562,
0.3084900975227356,
0.3450711667537689,
0.1016155257821083,
0.4008846879005432,
0.2586759924888611,
0.1760059893131256,
0.029979731887578964,
0.1242404505610466,
0.10664840042591095,
0.0938059613108635,
0.019551724195480347,
0.13133622705936432,
-0.26057010889053345,
-0.04889408499002457,
-0.35636311769485474,
-0.021741675212979317,
-0.028544146567583084,
-0.14317631721496582,
-0.305610716342926,
-0.1653454452753067,
-0.08609586209058762,
0.08222338557243347,
0.0034815878607332706,
-0.2213503122329712,
0.1820409744977951,
0.5444228053092957,
0.27890023589134216,
0.41268932819366455,
-0.00010320147703168914,
-0.03907492384314537,
0.2969439923763275,
0.005296079907566309,
-0.3610213100910187,
-0.133866086602211,
-0.1356741040945053,
-0.3160061240196228,
0.020559275522828102,
-0.2597048580646515,
0.021186446771025658,
-0.18797597289085388,
0.2461586743593216,
-0.47335687279701233,
0.059672869741916656,
-0.12504957616329193,
0.23031607270240784,
0.3476172685623169,
-0.21905042231082916,
-0.20336702466011047,
-0.1540287733078003,
-0.02129831165075302,
-0.1601625233888626,
0.14142468571662903,
0.5995050072669983,
-0.3429679870605469,
-0.17964132130146027,
0.16889965534210205,
-0.026812158524990082,
0.3214696943759918,
0.2588699162006378,
0.028034377843141556,
0.292867511510849,
-0.4736998975276947,
-0.032228659838438034,
0.25869613885879517,
0.3223203122615814,
-0.06537186354398727,
-0.4411686658859253,
-0.41376930475234985,
0.15032407641410828,
-0.1780724972486496,
0.09810750186443329,
0.42713463306427,
-0.3625376522541046,
0.17949938774108887,
-0.3271014988422394,
0.030963081866502762,
-0.04442606493830681,
-0.022891556844115257,
0.04598221182823181,
0.4582168459892273,
0.13881221413612366,
0.16112028062343597,
0.2576367259025574,
0.09652955830097198,
0.36225590109825134,
-0.13684171438217163,
0.3720155358314514,
0.09391193091869354,
-0.3785068690776825,
-0.050350818783044815,
0.10096094012260437,
-0.17616671323776245,
0.24986113607883453,
-0.021128099411725998,
0.2596454620361328,
-0.003676314139738679,
-0.046321604400873184,
0.2976036071777344,
0.31919506192207336,
-0.3273791968822479,
-0.187782421708107,
-0.07947783917188644,
0.24419021606445312,
-0.18388810753822327,
-0.011003940366208553,
0.04017509147524834,
-0.0484519824385643,
-0.21982595324516296,
0.2778865694999695,
0.08125082403421402,
0.01877940632402897,
0.1621408760547638,
-0.15372712910175323,
-0.20232756435871124,
0.020904332399368286,
-0.07036891579627991,
0.07258544862270355,
0.08114240318536758,
-0.04977351054549217,
0.5781402587890625,
-0.1443653255701065,
0.06511807441711426,
-0.20283792912960052,
-0.19455312192440033,
-0.08283613622188568,
0.031129537150263786,
-0.22069001197814941,
0.2142317146062851,
0.35742712020874023,
0.035416245460510254,
0.09633050858974457,
0.20901083946228027,
0.29675114154815674,
-0.010973989963531494,
0.47881367802619934,
-0.11229454725980759,
0.1474238485097885,
0.15673185884952545,
0.08701007813215256,
-0.12289734929800034,
-0.16401304304599762,
-0.11951803416013718,
-0.22533558309078217,
0.14519445598125458,
-0.06995586305856705,
-0.42570897936820984,
-0.15937672555446625,
0.2495115101337433,
-0.05549093335866928,
0.10533415526151657,
-0.12630821764469147,
0.2614252269268036,
0.13108159601688385,
0.18033331632614136,
-0.09152264147996902,
-0.15755543112754822,
-0.2608850300312042,
-0.060251686722040176,
0.3258068859577179,
0.2831624150276184,
-0.13008911907672882,
0.2780070900917053,
0.044251203536987305,
0.08563552051782608,
0.11659032851457596,
0.12387605756521225,
-0.11026900261640549,
0.21282178163528442,
-0.14145103096961975,
-0.05214943736791611,
0.23807121813297272,
-0.11730105429887772,
-0.0812397301197052,
0.31363072991371155,
-0.05799772962927818,
0.038903623819351196,
0.16179399192333221,
0.1347353160381317,
0.29706189036369324,
-0.09065365791320801,
0.24213773012161255,
0.4703311026096344,
-0.3758901357650757,
0.2193627506494522,
-0.21167218685150146,
-0.17388521134853363,
-0.16884827613830566,
0.24700044095516205,
0.15680250525474548,
0.25677016377449036,
-0.07407781481742859,
-0.2490074336528778,
0.4859023094177246,
-0.2836577594280243,
0.29440540075302124,
-0.09350898861885071,
-0.08243223279714584,
0.10308632999658585,
0.13913419842720032,
-0.4160618185997009,
-0.24206921458244324,
0.37609222531318665,
0.16979894042015076,
-0.05676455795764923,
0.09591268748044968,
-0.1960013508796692,
0.05447600409388542,
0.1322980374097824,
-0.08760268986225128,
0.1565966010093689,
0.1157926693558693,
0.10266739130020142,
-0.06035332381725311,
-0.44134318828582764,
-0.37515074014663696,
0.19578766822814941,
-0.05842544138431549,
-0.1846155971288681,
-0.17081396281719208,
0.13694900274276733,
0.21262550354003906,
-0.24575002491474152,
0.15780043601989746,
0.08275477588176727,
-0.03188713267445564,
-0.14568543434143066,
0.05263878032565117,
0.2507563531398773,
-0.09951867163181305,
0.3289552628993988,
0.1844167560338974,
0.36269959807395935,
0.11388753354549408,
0.16896142065525055,
0.054827142506837845,
0.01979098469018936,
0.03136083111166954,
-0.08202877640724182,
-0.15652859210968018,
0.487026184797287,
-0.3659532964229584,
0.3455127477645874,
0.17573758959770203,
0.17595446109771729,
0.43135252594947815,
0.15705785155296326,
-0.16422033309936523,
0.08361990749835968,
0.08563127368688583,
-0.00010063299851026386,
0.33670154213905334,
-0.010957753285765648,
-0.4514661431312561,
0.31994494795799255,
0.1571623682975769,
-0.1823919415473938,
0.03319630026817322,
0.042289718985557556,
0.3300045132637024,
-0.11012409627437592,
0.14487947523593903,
0.22912520170211792,
0.522993803024292,
0.215485617518425,
0.21878555417060852,
-0.16155919432640076,
-0.19443155825138092,
-0.06886324286460876,
0.15020745992660522,
-0.010294554755091667,
0.3209049105644226,
0.07039478421211243,
0.135790154337883,
-0.23691602051258087,
-0.3364010155200958,
-0.3829323947429657,
0.11677493155002594,
0.03662583604454994,
-0.0017936244839802384,
0.1108325645327568,
-0.010828452184796333,
0.19827093183994293,
-0.25546860694885254,
0.2144107222557068,
-0.04701291769742966,
-0.32059985399246216,
-0.04061164706945419,
0.5437670946121216,
-0.09951744973659515,
0.1028355211019516,
-0.057021647691726685,
0.23255860805511475,
-0.17852018773555756,
0.12159455567598343,
-0.1859094351530075,
-0.09883522242307663,
-0.007536052726209164,
0.090795136988163,
-0.08575353771448135,
0.06735530495643616,
0.4577217400074005,
-0.0036934835370630026,
-0.10432837903499603,
-0.42358699440956116,
0.13136783242225647,
0.06953921169042587,
0.03521517291665077,
0.18064694106578827,
0.21002396941184998,
0.03486466780304909,
0.15395735204219818,
-0.22947902977466583,
0.1865985095500946,
-0.2671279013156891,
0.1010822281241417,
-0.13958987593650818,
-0.15016795694828033,
-0.04378011077642441,
-0.07803570479154587,
-0.09349332749843597,
-0.3203544318675995,
-0.42227670550346375,
0.11015034466981888,
-0.020285537466406822,
0.23650261759757996,
-0.21057169139385223,
0.0797269344329834,
-0.13828061521053314,
0.3285047113895416,
-0.05092969536781311,
-0.142363041639328,
-0.6931467056274414,
0.2833702564239502,
-0.265466570854187,
-0.15141482651233673,
-0.18692396581172943,
-0.16856388747692108,
0.07718387246131897,
0.47290945053100586,
-0.16211548447608948,
-0.05780492350459099,
-0.2334814816713333,
0.19058555364608765,
-0.16429418325424194,
0.09985392540693283,
0.23695874214172363,
0.11016837507486343,
-0.07866670191287994,
-0.19191424548625946,
-0.1630769520998001,
0.08093008399009705,
0.05631863698363304,
-0.10016288608312607,
0.1788741946220398,
0.2567814588546753,
0.04139237478375435,
0.7725030779838562,
0.21941326558589935,
0.19881092011928558,
0.24022093415260315,
0.007834166288375854,
-0.08333668112754822,
0.02215009182691574,
-0.28443557024002075,
0.08309588581323624,
-0.23488430678844452,
-0.03294694796204567,
0.05592668429017067,
0.0616142675280571,
-0.3387680947780609,
-0.02081410400569439,
0.010365461930632591,
-0.2248634696006775,
-0.26320919394493103,
0.17908677458763123,
-0.35867178440093994,
0.3584167957305908,
0.0024204507935792208,
0.03395048901438713,
-0.49188536405563354,
0.17249421775341034,
-0.1960073560476303,
-0.03993038460612297,
0.36791345477104187,
-0.10989323258399963,
-0.22783163189888,
0.04423447325825691,
-0.6570864915847778,
0.07784318178892136,
0.08627080172300339,
0.3042767345905304,
0.36688584089279175,
-0.017518477514386177,
0.0984903946518898,
-0.17233896255493164,
0.7410871982574463,
-0.24854570627212524,
0.1069440245628357,
0.04688949137926102,
-0.40140968561172485,
-0.18666790425777435,
-0.1299876868724823,
-0.09002939611673355,
0.5101513266563416,
-0.0021260296925902367,
0.17097119987010956,
-0.27824220061302185,
-0.3481646478176117,
0.312501460313797,
0.045257456600666046,
-0.14663508534431458,
-0.47078993916511536,
-0.28487539291381836,
-0.3556039333343506,
-0.15812183916568756,
0.1461622267961502,
0.07101982831954956,
0.2442396879196167,
-0.11794882267713547,
-0.2693718671798706,
-0.11283176392316818,
0.045156918466091156,
0.18886730074882507,
0.2391284853219986,
-0.19605132937431335,
-0.07997515052556992,
0.3443266451358795,
0.31949567794799805,
-0.11298542469739914,
-0.044042713940143585,
0.29809504747390747,
-0.24025608599185944,
-0.19704830646514893,
0.2273581326007843,
-0.134285107254982,
0.37597739696502686,
0.2793308198451996,
0.02168426290154457,
-0.09374731034040451,
0.08570724725723267,
0.27030348777770996,
-0.45559096336364746,
-0.15940934419631958,
0.1810455024242401,
0.02733185514807701,
-0.2600705921649933,
-0.7640819549560547,
0.39551591873168945,
0.1333613097667694,
-0.028245771303772926,
0.5454920530319214,
-0.46787315607070923,
-0.06739096343517303,
0.25048431754112244,
0.16167542338371277,
0.6716324090957642,
-0.43815016746520996,
-0.009694273583590984,
-0.05433233454823494,
0.17368413507938385,
0.2533314824104309,
-0.40687376260757446,
0.37351754307746887,
-0.24737128615379333,
-0.4962446689605713,
0.04331464692950249,
-0.04017721861600876,
-0.04039071872830391,
0.5621017813682556,
-0.10479671508073807,
0.263728529214859,
0.25774264335632324,
-0.09861883521080017,
-0.10238666087388992,
0.5208842754364014,
-0.4047098457813263,
-0.49029505252838135,
-0.35341405868530273,
0.1612682044506073,
0.14440733194351196,
-0.15427690744400024,
-0.20182093977928162,
-0.049142226576805115,
0.33021095395088196,
0.0352742075920105,
-0.2761579751968384,
-0.058110542595386505,
0.030856646597385406,
0.14200614392757416,
0.1724439263343811,
-0.1520051509141922,
0.0007068063132464886,
-0.0017297755694016814,
-0.060059480369091034,
-0.04289047420024872,
-0.043180037289857864,
0.06728272140026093,
-0.07353567332029343,
0.32223016023635864,
-0.0456906259059906,
-0.14481881260871887,
0.14788922667503357,
-0.11736686527729034,
-0.3560069501399994,
-0.017421690747141838,
0.06590238213539124,
-0.29800689220428467,
-0.052439019083976746,
0.087612584233284,
0.19001354277133942,
0.07767321169376373,
0.17396549880504608,
0.22074595093727112,
-0.0774761363863945,
-0.2634599804878235,
0.17730319499969482,
0.259215772151947,
-0.15912942588329315,
0.41210663318634033,
-0.13346783816814423,
-0.17215843498706818,
-0.07174081355333328,
0.01898099295794964,
0.14351488649845123,
0.29831746220588684,
0.1975504457950592,
0.2281438112258911,
-0.1307230293750763,
-0.29153352975845337,
-0.09616200625896454,
-0.014620884321630001,
-0.25054413080215454,
0.3830244541168213,
-0.10701259970664978,
-0.21703346073627472,
0.127638041973114,
0.036372702568769455,
0.14224079251289368,
-0.08980713784694672,
-0.10928300023078918,
-0.3186973035335541,
0.0299316868185997,
-0.05896669626235962,
-0.0572342686355114,
0.1204497292637825,
0.11068464070558548,
0.0627138540148735,
0.13374744355678558,
0.16239959001541138,
-0.4223909080028534,
-0.24373047053813934,
-0.3316541016101837,
0.20308265089988708,
-0.08971875160932541,
-0.08812972158193588,
-0.306004136800766,
0.15482906997203827,
0.18435893952846527,
0.042753152549266815,
-0.15689046680927277,
-0.27566245198249817,
-0.14216704666614532,
0.10927865654230118,
-0.20880019664764404,
-0.04207184165716171,
0.32861608266830444,
-0.11366049945354462,
-0.47733673453330994,
-0.4502692222595215,
0.09903950244188309,
-0.016869425773620605,
-0.10172747820615768,
-0.04244335740804672,
0.47188693284988403,
-0.047566574066877365,
-0.12522710859775543,
0.08596470952033997,
0.0560661181807518,
0.07058791071176529,
-0.2048034369945526,
0.408660888671875,
0.3737765848636627,
-0.14392974972724915,
0.2186107486486435,
0.06270097941160202,
0.0857834741473198,
0.07128946483135223,
0.37113744020462036,
0.09882216900587082,
-0.021229736506938934,
0.18422189354896545,
0.43219926953315735,
0.33892157673835754,
0.07686911523342133,
0.13105303049087524,
0.07684246450662613,
0.30618616938591003,
-0.25096437335014343,
-0.2406506985425949,
0.19404925405979156,
0.05349119380116463,
0.30359572172164917,
0.36341574788093567,
0.06040684133768082,
-0.07095980644226074,
0.11781353503465652,
-0.0013646511361002922,
0.14019277691841125,
-0.5134747624397278,
0.048839688301086426,
-0.07163829356431961,
0.16033750772476196,
0.030135681852698326,
0.24395999312400818,
-0.018875833600759506,
0.06726351380348206,
0.3109544813632965,
0.0954861119389534,
0.4005773961544037,
0.20803344249725342,
0.10548880696296692,
0.1709962785243988,
-0.3073977530002594,
0.058687418699264526,
-0.06875631958246231,
-0.19440504908561707,
0.19138170778751373,
0.04235272482037544,
0.032191187143325806,
-0.5813710689544678,
0.10255850851535797,
-0.3715050518512726,
0.09908298403024673,
-0.009725178591907024,
-0.1769033968448639,
-0.0922107920050621,
-0.21760135889053345,
-0.05914396047592163,
-0.05306520313024521,
-0.014272033236920834,
-0.022807767614722252,
0.687774658203125,
-0.01634322479367256,
0.33825525641441345,
-0.32577911019325256,
0.1143597736954689,
-0.14253319799900055,
0.3084832429885864,
-0.35586440563201904,
-0.021826304495334625,
0.16390883922576904,
-0.1802685409784317,
-0.13801562786102295,
0.4435688257217407,
0.22273360192775726,
0.5573070645332336,
-0.16428010165691376,
0.21057423949241638,
-0.2797245979309082,
0.004336018115282059,
-0.42942172288894653,
0.10437376797199249,
-0.08202656358480453,
0.07299970090389252,
0.3381592631340027,
0.1928335279226303,
-0.1412854939699173,
-0.15356838703155518,
0.18155419826507568,
-0.16772103309631348,
-0.4397657513618469,
0.23384562134742737,
0.23897957801818848,
-0.18498395383358002,
0.03351268917322159,
0.21206355094909668,
-0.18951688706874847,
-0.034771692007780075,
0.4634004533290863,
-0.39115238189697266,
0.03089921362698078,
-0.07860049605369568,
0.13284970819950104,
-0.13139446079730988,
0.6261087656021118,
0.03335702419281006,
0.1973293423652649,
-0.23472921550273895,
-0.06864312291145325,
-0.46030840277671814,
-0.06859259307384491,
-0.38933202624320984,
0.0762338936328888,
0.19152158498764038,
0.44227349758148193,
0.00962431263178587,
0.25473150610923767,
0.030656790360808372,
0.09152735769748688,
-0.06733177602291107,
0.48431017994880676,
-0.20872484147548676,
-0.3480144441127777,
-0.04061652347445488,
0.1016361191868782,
0.03758149594068527,
-0.5921885967254639,
0.29539766907691956,
-0.14193107187747955,
0.1797690987586975,
-0.12344925105571747,
-0.03921927139163017,
0.47719529271125793,
-0.1351536363363266,
0.23897278308868408,
0.17789778113365173,
0.13986274600028992,
-0.2325795590877533,
-0.029272761195898056,
-0.2865021824836731,
0.020223740488290787,
-0.28691694140434265,
0.1610233336687088,
0.04410672187805176,
0.06869658082723618,
-0.21108435094356537,
0.10744185000658035,
-0.31952139735221863,
0.03396853059530258,
-0.10483845323324203,
0.15965504944324493,
-0.10114531964063644,
0.16252413392066956,
-0.1785963475704193,
0.19426105916500092,
-0.08938508480787277,
0.3384365141391754,
-0.007113688159734011,
0.009689655154943466,
-0.19547712802886963,
-0.27167174220085144,
0.15823855996131897,
-0.4215097725391388,
-0.5883430242538452,
-0.5599814057350159,
0.22548851370811462,
-0.035987429320812225,
0.15333682298660278,
-0.1941951960325241,
-0.03576870262622833,
0.29938483238220215,
-0.022938953712582588,
-0.1977112740278244,
0.23846814036369324,
0.11192458868026733,
-0.23391443490982056,
-0.1713932901620865,
0.12607242166996002,
-0.022645169869065285,
-0.42746567726135254,
0.015132157132029533,
-0.35833480954170227
] |
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.19471463561058044,
-0.05373465642333031,
0.025463661178946495,
0.4426939785480499,
0.16262847185134888,
0.04455549269914627,
0.03179023042321205,
0.41505879163742065,
0.06906209886074066,
-0.005340923555195332,
-0.24613437056541443,
-0.15708188712596893,
0.3839262127876282,
-0.2293258160352707,
-0.10174603760242462,
-0.5121182799339294,
0.1875392645597458,
0.015903882682323456,
0.0008709309040568769,
-0.04527650400996208,
-0.1995975375175476,
-0.0525326244533062,
-0.18490248918533325,
0.03291534632444382,
-0.25196415185928345,
-0.05890486761927605,
-0.024784810841083527,
-0.03092041052877903,
-0.3356665074825287,
-0.2533814311027527,
0.2615022361278534,
0.1938856989145279,
0.30409005284309387,
0.39660173654556274,
-0.0001232719368999824,
-0.08041942864656448,
0.5516073703765869,
-0.09585082530975342,
-0.5192885994911194,
0.1004575788974762,
-0.26224052906036377,
-0.4349929392337799,
-0.2489452213048935,
-0.414605051279068,
0.10611913353204727,
-0.16548852622509003,
0.25905513763427734,
-0.26436033844947815,
0.27068740129470825,
-0.057004254311323166,
0.11586443334817886,
0.16683949530124664,
0.0364767387509346,
-0.23297815024852753,
0.41319146752357483,
0.18984845280647278,
0.03903496637940407,
0.02926729992032051,
-0.1451530158519745,
0.06369613856077194,
0.05425475165247917,
0.23192094266414642,
-0.2538941502571106,
-0.02256022021174431,
0.15144236385822296,
0.00822778046131134,
-0.32982736825942993,
-0.4701971411705017,
0.4426456689834595,
0.45182737708091736,
0.9045655131340027,
-0.019125981256365776,
-0.5640503764152527,
0.058573268353939056,
-0.12373551726341248,
0.09843394160270691,
0.21930904686450958,
0.08888629078865051,
0.05143018439412117,
0.07752826064825058,
0.2321280837059021,
-0.272043913602829,
-0.16567343473434448,
0.5533049702644348,
-0.02479788474738598,
0.28291231393814087,
-0.056256189942359924,
0.058128777891397476,
-0.14148476719856262,
-0.3711189925670624,
-0.18177418410778046,
-0.3521578013896942,
-0.07461203634738922,
0.4161824584007263,
0.006564090959727764,
-0.00565473735332489,
-0.060631200671195984,
0.04835907369852066,
0.18352010846138,
-0.3325106203556061,
-0.0941731333732605,
0.0016863449709489942,
-0.1492665857076645,
0.06138055399060249,
0.3583228886127472,
-0.34118133783340454,
0.1615506410598755,
-0.0928153544664383,
0.6022836565971375,
0.20459577441215515,
0.34029340744018555,
-0.12075689435005188,
0.14365896582603455,
-0.256102055311203,
-0.47325050830841064,
-0.13153819739818573,
0.34414106607437134,
-0.37491676211357117,
-0.02175046317279339,
0.2255961298942566,
-0.2683691680431366,
-0.13826991617679596,
-0.1619250476360321,
0.23283639550209045,
-0.19262166321277618,
0.490536630153656,
0.2641056478023529,
0.3150089383125305,
-0.30329710245132446,
-0.26047202944755554,
-0.036503005772829056,
0.2098366618156433,
0.06976614892482758,
0.11547542363405228,
0.1212364211678505,
0.12548226118087769,
0.30965864658355713,
0.13052678108215332,
-0.40900567173957825,
-0.1776624172925949,
-0.18421010673046112,
-0.37135106325149536,
-0.3349807560443878,
0.12221015989780426,
0.16116735339164734,
0.6101635694503784,
-0.1969008445739746,
-0.03262864053249359,
-0.18640676140785217,
0.05770084634423256,
-0.3059115409851074,
0.04716978594660759,
0.033194854855537415,
0.06513170897960663,
-0.3300115168094635,
0.129476860165596,
-0.10134241729974747,
0.2805505096912384,
0.11382003873586655,
-0.08707519620656967,
-0.042023226618766785,
0.14214633405208588,
-0.5038462281227112,
-0.2322123944759369,
0.31213390827178955,
0.5738975405693054,
-0.2841925621032715,
-0.2117311805486679,
-0.27716127038002014,
-0.05276193469762802,
0.3993547558784485,
0.32857415080070496,
-0.17669068276882172,
0.5292112231254578,
-0.1388203501701355,
0.3341926634311676,
0.34547102451324463,
0.003303687321022153,
-0.2640663683414459,
0.3298969864845276,
0.09333332628011703,
-0.0103238420560956,
0.15767544507980347,
0.05655859038233757,
0.3707057237625122,
-0.20292022824287415,
0.025696204975247383,
0.4108985960483551,
0.17302505671977997,
-0.00560000678524375,
-0.46276867389678955,
-0.18433570861816406,
0.11909374594688416,
0.008906112052500248,
0.4738454520702362,
-0.15733541548252106,
0.25174540281295776,
0.8539653420448303,
0.16623778641223907,
-0.07642032206058502,
0.33806443214416504,
0.467049777507782,
-0.1945728063583374,
-0.08289209753274918,
0.08622359484434128,
0.0015232284786179662,
-0.06674651056528091,
0.17408256232738495,
-0.01288473978638649,
0.07224748283624649,
-0.04815208166837692,
-0.08054187148809433,
-0.4336927831172943,
-0.13219302892684937,
0.07811553031206131,
0.22171205282211304,
0.06278757750988007,
0.016171462833881378,
0.12568457424640656,
0.4031229019165039,
0.3853697180747986,
-0.28600114583969116,
0.02745206095278263,
-0.07651448994874954,
-0.25279396772384644,
0.39916345477104187,
-0.11519024521112442,
0.1357635110616684,
0.11575841158628464,
-0.1102617159485817,
0.42414698004722595,
0.09139977395534515,
-0.08321986347436905,
0.12222589552402496,
0.14899799227714539,
0.2598074674606323,
0.19983665645122528,
-0.2001916617155075,
0.45037001371383667,
-0.10481084883213043,
0.3533116281032562,
0.5322105884552002,
0.3143365681171417,
-0.18738842010498047,
-0.06333950906991959,
0.4248916208744049,
-0.09307069331407547,
-0.05436679720878601,
-0.12473295629024506,
0.003204571083188057,
0.43071436882019043,
-0.01875920780003071,
0.219022735953331,
-0.14075565338134766,
0.2445390224456787,
0.3082447648048401,
-0.14214879274368286,
0.1383504569530487,
-0.42339903116226196,
-0.16385000944137573,
0.28584569692611694,
-0.18431438505649567,
0.2433812916278839,
-0.040821950882673264,
-0.20448943972587585,
-0.060338813811540604,
0.2206229567527771,
-0.05914722755551338,
0.12757551670074463,
0.10274603962898254,
0.23283837735652924,
-0.29962441325187683,
0.23651187121868134,
-0.20047339797019958,
0.11677774786949158,
0.2346573770046234,
0.25341054797172546,
0.14895060658454895,
0.07077312469482422,
0.055961206555366516,
-0.13113293051719666,
0.3252009153366089,
0.0034002154134213924,
0.3112410604953766,
-0.1408686488866806,
-0.18172591924667358,
-0.3317094147205353,
-0.342533141374588,
-0.22657446563243866,
0.0998421385884285,
-0.3634953200817108,
-0.38063105940818787,
0.1673060804605484,
0.1290310174226761,
-0.3707673251628876,
0.038968224078416824,
-0.21245355904102325,
-0.15537449717521667,
0.019642315804958344,
0.036152515560388565,
-0.20181827247142792,
-0.22612424194812775,
-0.20626118779182434,
-0.04524313285946846,
0.41512376070022583,
0.25905975699424744,
0.12066059559583664,
-0.11632957309484482,
-0.4247235059738159,
-0.502355694770813,
-0.18355900049209595,
0.07738424837589264,
0.09997548162937164,
0.1563129872083664,
-0.06535425782203674,
0.5579110383987427,
-0.05104601010680199,
-0.045251015573740005,
0.12259270250797272,
-0.006121036130934954,
-0.08575283735990524,
0.1155770942568779,
-0.07134567946195602,
0.18992719054222107,
-0.14555786550045013,
-0.25897416472435,
-0.1714494377374649,
-0.3056757152080536,
-0.07070539146661758,
-0.05721106752753258,
0.11680375784635544,
-0.2959664762020111,
0.1875057965517044,
-0.018198024481534958,
0.25884172320365906,
0.222754567861557,
-0.2554256319999695,
-0.09848649799823761,
0.5742365717887878,
-0.08384860306978226,
-0.47171980142593384,
0.12958471477031708,
-0.1484832912683487,
0.007613406982272863,
0.1879814714193344,
-0.27970173954963684,
0.12193183600902557,
0.11807912588119507,
0.17069178819656372,
0.2602599263191223,
0.090730220079422,
0.05542885884642601,
-0.29788070917129517,
0.10816578567028046,
-0.05249735713005066,
0.2223837971687317,
-0.14971938729286194,
-0.17315715551376343,
0.4568735659122467,
0.379493772983551,
0.4606591463088989,
0.0042094639502465725,
0.7833340167999268,
0.08993533998727798,
0.2961522042751312,
0.31462886929512024,
0.42882388830184937,
0.2446366399526596,
0.12490829825401306,
0.012360744178295135,
0.01489870622754097,
0.06303490698337555,
-0.005876882001757622,
0.30741915106773376,
0.0647478997707367,
-0.2191389501094818,
-0.3265358507633209,
-0.44280314445495605,
-0.3569614589214325,
-0.3261871337890625,
-0.14516623318195343,
0.18182219564914703,
0.20523560047149658,
0.038699738681316376,
0.3887414336204529,
-0.058327652513980865,
-0.30969831347465515,
0.21003463864326477,
0.20911622047424316,
0.20575517416000366,
0.2603682577610016,
-0.203028604388237,
0.020010121166706085,
-0.625159740447998,
0.3266805112361908,
0.03762901946902275,
0.44890323281288147,
0.12113452702760696,
-0.04260934144258499,
-0.006490569096058607,
-0.011413021944463253,
0.19115927815437317,
-0.2258455753326416,
0.24868014454841614,
-0.03698071837425232,
0.004987774416804314,
-0.33698591589927673,
0.030682481825351715,
-0.22068406641483307,
0.3259132206439972,
0.5136585831642151,
0.12974153459072113,
-0.6778854131698608,
-0.22523269057273865,
0.043610017746686935,
0.2859041392803192,
-0.08163872361183167,
-0.0003023169992957264,
-0.12392629683017731,
-0.3683081865310669,
-0.19829148054122925,
-0.09006351232528687,
-0.02205202914774418,
0.16231264173984528,
-0.16826646029949188,
0.25827687978744507,
-0.22031943500041962,
0.3745955228805542,
0.051145799458026886,
0.06592194736003876,
0.20082716643810272,
0.015101680532097816,
0.19743317365646362,
0.23431237041950226,
-0.00459667481482029,
0.28463536500930786,
0.3751890957355499,
0.13199202716350555,
-0.2874949872493744,
-0.04212729632854462,
-0.08918564021587372,
-0.2077368050813675,
0.22244803607463837,
-0.06967564672231674,
0.22122493386268616,
0.2267780303955078,
-0.14865747094154358,
-0.04792061448097229,
-0.022069625556468964,
0.18862147629261017,
-0.08271877467632294,
-0.3992478847503662,
-0.14235834777355194,
0.4184015691280365,
0.19389060139656067,
-0.08002819865942001,
-0.14627966284751892,
0.13739116489887238,
-0.20488961040973663,
0.04229745641350746,
0.11781679093837738,
0.9017555117607117,
-0.13789314031600952,
0.10995803773403168,
-0.00843303557485342,
0.00483302865177393,
0.7497718930244446,
-0.03605906665325165,
0.03833582624793053,
-0.3155219852924347,
0.09126895666122437,
-0.04377637431025505,
0.34152156114578247,
0.11268190294504166,
0.03542390093207359,
-0.19192293286323547,
0.40767785906791687,
0.19494809210300446,
0.25753721594810486,
0.01637447625398636,
0.40608373284339905,
0.06249700114130974,
-0.23454973101615906,
-0.5463213324546814,
0.046204905956983566,
-0.31446602940559387,
0.4104984998703003,
-0.23535777628421783,
-0.23598124086856842,
-0.20679716765880585,
-0.26715072989463806,
-0.05668381601572037,
0.14180923998355865,
-0.034680452197790146,
0.2981495261192322,
-0.07137344032526016,
-0.4402924180030823,
0.17216716706752777,
0.2931361794471741,
0.11639674752950668,
0.22523997724056244,
-0.24506765604019165,
0.055295273661613464,
-0.5325856804847717,
-0.3806133270263672,
-0.1697794795036316,
0.15765778720378876,
0.11665508896112442,
-0.025762075558304787,
-0.19546647369861603,
0.09033707529306412,
-0.11230197548866272,
0.11753184348344803,
-0.22127319872379303,
0.004159944131970406,
-0.3834608197212219,
0.053295399993658066,
-0.4173182547092438,
-0.09473266452550888,
-0.1572708934545517,
-0.204021155834198,
0.0688517764210701,
0.10827663540840149,
0.01934289187192917,
-0.1349882334470749,
0.09425117075443268,
-0.06339847296476364,
-0.027746176347136497,
0.5898221135139465,
0.206431582570076,
0.2121421843767166,
0.4350481331348419,
0.17971791326999664,
-0.4563695192337036,
-0.14930151402950287,
-0.030925124883651733,
-0.5784885287284851,
-0.22780799865722656,
-0.03562286123633385,
-0.2284296751022339,
0.18572571873664856,
-0.2033202350139618,
-0.16422852873802185,
0.04632168635725975,
-0.3468266427516937,
0.22724442183971405,
-0.4120406210422516,
-0.15290676057338715,
0.424554705619812,
0.008602944202721119,
0.005323563702404499,
0.19622214138507843,
-0.12252456694841385,
0.04111001640558243,
0.050269484519958496,
-0.16072113811969757,
0.1442895531654358,
-0.2905433475971222,
0.20152555406093597,
0.2590176463127136,
0.0922572985291481,
-0.07890455424785614,
-0.09520348906517029,
-0.013244208879768848,
-0.18346112966537476,
-0.05430608615279198,
-0.011722631752490997,
-0.13040421903133392,
0.1948339343070984,
0.114507757127285,
-0.16237396001815796,
0.20889407396316528,
-0.3206484317779541,
0.14756233990192413,
-0.1380583494901657,
-0.13361631333827972,
0.2696511447429657,
-0.02938198298215866,
0.1871212124824524,
0.2766978144645691,
0.20426061749458313,
-0.27104344964027405,
0.3788250684738159,
0.07928328961133957,
0.4594862461090088,
-0.011709876358509064,
0.38628026843070984,
0.44237303733825684,
-0.025481466203927994,
-0.28035494685173035,
0.02668675407767296,
-0.035966288298368454,
-0.21746905148029327,
0.3051566183567047,
-0.181609109044075,
-0.05567050725221634,
0.4315663278102875,
0.10159660130739212,
0.26036056876182556,
-0.015609880909323692,
0.08559653162956238,
0.19569019973278046,
0.06981020420789719,
-0.3646603524684906,
-0.15194015204906464,
0.4377322196960449,
-0.02035343647003174,
-0.11069997400045395,
0.22617670893669128,
0.09326764941215515,
-0.22877810895442963,
0.09555979073047638,
0.12221504002809525,
-0.052952755242586136,
-0.00970823410898447,
0.21005156636238098,
0.12761138379573822,
0.4284835159778595,
0.14116163551807404,
0.06254544109106064,
-0.11870371550321579,
0.009821484796702862,
-0.05782337486743927,
-0.07740415632724762,
0.23554547131061554,
0.07428372651338577,
0.14603449404239655,
-0.255820631980896,
-0.44922497868537903,
-0.09688971191644669,
0.3846183121204376,
-0.20907945930957794,
0.09106478095054626,
-0.09181497991085052,
0.13477154076099396,
0.28713399171829224,
-0.07846278697252274,
-0.24682018160820007,
0.2137850672006607,
-0.11079687625169754,
-0.1801239401102066,
-0.34088680148124695,
-0.34827423095703125,
-0.11324593424797058,
0.13992246985435486,
0.06258110702037811,
-0.3009450137615204,
0.3215268552303314,
0.20969897508621216,
-0.1300749033689499,
-0.5181475877761841,
0.6111897230148315,
0.10737748444080353,
0.11829818785190582,
-0.3415502607822418,
-0.01924196071922779,
-0.17154574394226074,
-0.11202209442853928,
0.0544976107776165,
0.3561192750930786,
0.23284515738487244,
0.1988464742898941,
-0.27609357237815857,
-0.0859762504696846,
0.2533802390098572,
-0.02292516827583313,
0.08363492786884308,
0.060667023062705994,
0.12588635087013245,
0.014750609174370766,
0.4033437669277191,
0.021388769149780273,
-0.03143469989299774,
-0.21441800892353058,
0.31130269169807434,
-0.07794754952192307,
-0.056314125657081604,
-0.09228548407554626,
-0.22811071574687958,
-0.08082146942615509,
-0.053799111396074295,
-0.19177639484405518,
-0.423805832862854,
0.02648177184164524,
-0.018995748832821846,
0.15615996718406677,
0.2094823718070984,
-0.1527033895254135,
-0.006661776453256607,
-0.2599542438983917,
0.23863105475902557,
0.33841925859451294,
0.07217410206794739,
-0.2710244655609131,
-0.10188311338424683,
-0.481710821390152,
-0.0005999876302666962,
-0.5397924780845642,
0.05055250599980354,
-0.06564413756132126,
0.346938818693161,
-0.06868050247430801,
0.07693687081336975,
0.10089486837387085,
-0.16636177897453308,
0.016630226746201515,
0.19903887808322906,
-0.30844783782958984,
-0.17131604254245758,
-0.12751083076000214,
0.013869717717170715,
-0.2212381809949875,
-0.47716644406318665,
0.2828768491744995,
-0.3365030884742737,
-0.07908470183610916,
-0.028812751173973083,
-0.0130412383005023,
0.031174855306744576,
0.25631484389305115,
0.219201922416687,
0.10509321838617325,
0.11116651445627213,
-0.13930630683898926,
-0.09276673942804337,
-0.2995743155479431,
-0.16831815242767334,
-0.06257811933755875,
0.2928652763366699,
-0.12257514894008636,
0.47506648302078247,
-0.15180239081382751,
0.1282859444618225,
-0.17484064400196075,
0.46847590804100037,
-0.28085675835609436,
0.17354299128055573,
-0.14577247202396393,
0.09480031579732895,
-0.36163055896759033,
0.05347002297639847,
-0.0626031681895256,
0.013031101785600185,
-0.20211659371852875,
0.10324925184249878,
-0.49078240990638733,
-0.15331779420375824,
0.18491505086421967,
-0.28532999753952026,
-0.10769956558942795,
-0.2806597948074341,
0.09942344576120377,
0.23370306193828583,
0.22239437699317932,
-0.41614240407943726,
0.18070724606513977,
0.26650989055633545,
-0.003300422104075551,
-0.09166309982538223,
-0.07899580150842667,
-0.08805260062217712,
-0.3081299960613251,
-0.04428355023264885,
-0.059929780662059784,
0.028439316898584366,
-0.4647623300552368,
-0.03023756667971611,
-0.27133893966674805
] |
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.05334748700261116,
0.037484850734472275,
0.05978331342339516,
0.4869288504123688,
0.17053698003292084,
0.02335960790514946,
0.09322946518659592,
0.4074784219264984,
0.16699981689453125,
0.10148229449987411,
-0.1808922439813614,
-0.13914941251277924,
0.41886070370674133,
-0.1732718050479889,
-0.09404410421848297,
-0.4950674772262573,
0.1877744197845459,
0.03998452425003052,
0.012665608897805214,
-0.06551165133714676,
-0.21156750619411469,
-0.048074375838041306,
-0.19261395931243896,
0.06271142512559891,
-0.3057103753089905,
-0.005630687344819307,
0.0016469520051032305,
-0.03646467998623848,
-0.3302687704563141,
-0.24260172247886658,
0.2610394358634949,
0.18200089037418365,
0.27053841948509216,
0.4148353040218353,
-0.0001278781273867935,
-0.049707043915987015,
0.573278546333313,
-0.11515098065137863,
-0.5644019246101379,
0.08896736800670624,
-0.21099434792995453,
-0.41451510787010193,
-0.19653227925300598,
-0.37392526865005493,
0.039236072450876236,
-0.1627882570028305,
0.23407641053199768,
-0.2813853919506073,
0.29318898916244507,
-0.029063275083899498,
0.06792569160461426,
0.13024161756038666,
0.10006459057331085,
-0.21704712510108948,
0.3911060690879822,
0.11382247507572174,
0.04637424275279045,
0.017776871100068092,
-0.07914513349533081,
0.08694570511579514,
0.02811437100172043,
0.21527452766895294,
-0.244399756193161,
-0.04136429354548454,
0.21118181943893433,
-0.02078428864479065,
-0.2214757651090622,
-0.539438009262085,
0.42758116126060486,
0.5065012574195862,
0.9873853325843811,
-0.03411544859409332,
-0.5420722365379333,
0.020863426849246025,
-0.0884431004524231,
0.17179661989212036,
0.2517360746860504,
0.07730058580636978,
-0.021655311807990074,
0.006419118028134108,
0.1908418983221054,
-0.34813976287841797,
-0.17520806193351746,
0.5972660183906555,
-0.04581596329808235,
0.34354540705680847,
-0.029370861127972603,
0.12448300421237946,
-0.13250777125358582,
-0.40685078501701355,
-0.19645315408706665,
-0.42711877822875977,
-0.05053906515240669,
0.4434015452861786,
0.0007425649091601372,
0.0057799918577075005,
-0.10018652677536011,
0.06499318778514862,
0.16020755469799042,
-0.2895124554634094,
-0.08837881684303284,
0.04058142751455307,
-0.14431244134902954,
0.1057484894990921,
0.2951694130897522,
-0.25290438532829285,
0.1639975756406784,
-0.16669702529907227,
0.6046066284179688,
0.18778640031814575,
0.3268435299396515,
-0.06068697199225426,
0.045120418071746826,
-0.27818813920021057,
-0.5877599120140076,
-0.11933359503746033,
0.23419581353664398,
-0.34877675771713257,
-0.04757264256477356,
0.18883822858333588,
-0.27597397565841675,
-0.18630646169185638,
-0.14900298416614532,
0.2405671924352646,
-0.22684386372566223,
0.4528813362121582,
0.3064102828502655,
0.2869042754173279,
-0.30198365449905396,
-0.28895920515060425,
-0.0044381520710885525,
0.24045544862747192,
0.0577961765229702,
0.11910318583250046,
0.1557951718568802,
0.007608457468450069,
0.281048059463501,
0.12952721118927002,
-0.35996586084365845,
-0.17277613282203674,
-0.22139595448970795,
-0.2736278474330902,
-0.3288101553916931,
0.12630929052829742,
0.14191195368766785,
0.5926679372787476,
-0.1778511106967926,
-0.11023401468992233,
-0.19159801304340363,
0.059934135526418686,
-0.30759137868881226,
0.029011273756623268,
-0.03885466232895851,
0.006699064280837774,
-0.30583956837654114,
0.1448860615491867,
-0.1023368388414383,
0.2594459652900696,
0.09318769723176956,
-0.12982799112796783,
-0.0810646265745163,
0.13336214423179626,
-0.48655563592910767,
-0.23101644217967987,
0.40185168385505676,
0.6183560490608215,
-0.34194469451904297,
-0.2550348937511444,
-0.2246883362531662,
-0.03794069588184357,
0.32263797521591187,
0.24058295786380768,
-0.19627119600772858,
0.5838984251022339,
-0.11569997668266296,
0.1431097686290741,
0.3990393877029419,
-0.06260187923908234,
-0.24517981708049774,
0.34164509177207947,
0.13052070140838623,
-0.019029995426535606,
0.18552201986312866,
0.06440404057502747,
0.2784166634082794,
-0.1964818388223648,
0.04873671010136604,
0.4077765941619873,
0.1818937361240387,
-0.007827142253518105,
-0.38223737478256226,
-0.23699112236499786,
0.1355569064617157,
0.07467140257358551,
0.48702895641326904,
-0.09409696608781815,
0.24868306517601013,
0.849091649055481,
0.20269538462162018,
-0.08568959683179855,
0.32606783509254456,
0.46469536423683167,
-0.32521480321884155,
-0.09395043551921844,
0.0796765461564064,
0.016033194959163666,
-0.08190269768238068,
0.22736893594264984,
-0.03340864181518555,
0.04444503411650658,
0.02218686416745186,
-0.012482075951993465,
-0.3875282108783722,
-0.10598038882017136,
0.029392467811703682,
0.2333381623029709,
0.0024630348198115826,
0.0668146014213562,
0.1838381141424179,
0.358846515417099,
0.3215934634208679,
-0.18831177055835724,
0.0001828583626775071,
-0.08739577978849411,
-0.2711066007614136,
0.4411352574825287,
-0.09714214503765106,
0.11788617074489594,
0.12426026165485382,
-0.06582459062337875,
0.4569520950317383,
0.03739551827311516,
-0.08783596009016037,
0.1333165168762207,
0.12802384793758392,
0.230077862739563,
0.0969768762588501,
-0.1452697366476059,
0.41246193647384644,
-0.02792269177734852,
0.3956126868724823,
0.5580116510391235,
0.2673860192298889,
-0.16243168711662292,
-0.08201970160007477,
0.4217674136161804,
-0.023517658933997154,
0.06808512657880783,
-0.07626962661743164,
0.0021346488501876593,
0.34552133083343506,
-0.00454582879319787,
0.21488623321056366,
-0.12228085100650787,
0.27486827969551086,
0.3064383566379547,
-0.11890027672052383,
0.17610017955303192,
-0.4096235930919647,
-0.14042119681835175,
0.32709458470344543,
-0.16610398888587952,
0.20587684214115143,
-0.04248514026403427,
-0.2158709615468979,
-0.02649761736392975,
0.2504027783870697,
-0.042212240397930145,
0.021961934864521027,
0.09337419271469116,
0.14141646027565002,
-0.2690083384513855,
0.1856570541858673,
-0.1909542679786682,
0.11787443608045578,
0.28619295358657837,
0.3613670766353607,
0.214442640542984,
0.03267909958958626,
0.06317839026451111,
-0.09839709103107452,
0.27027982473373413,
0.017761362716555595,
0.2583782970905304,
-0.1833215355873108,
-0.16204792261123657,
-0.35061413049697876,
-0.3741491436958313,
-0.2871038317680359,
0.08547859638929367,
-0.3898089826107025,
-0.3666173815727234,
0.14914017915725708,
0.15533983707427979,
-0.2938447892665863,
0.132437065243721,
-0.15681590139865875,
-0.11000769585371017,
-0.015515615232288837,
-0.06307685375213623,
-0.21393771469593048,
-0.2459360957145691,
-0.26905468106269836,
-0.11066287010908127,
0.4098202884197235,
0.19540029764175415,
0.057519786059856415,
-0.16002964973449707,
-0.38494017720222473,
-0.5117306709289551,
-0.1947421431541443,
0.17385853826999664,
0.08317520469427109,
0.17871232330799103,
-0.08224130421876907,
0.5658929944038391,
0.003005606820806861,
-0.05054308474063873,
0.11834489554166794,
0.02404448203742504,
-0.08233646303415298,
0.1118149533867836,
-0.10795482993125916,
0.16110903024673462,
-0.1291733980178833,
-0.25552505254745483,
-0.1848214864730835,
-0.3549536168575287,
-0.13262498378753662,
0.04029669240117073,
0.14446808397769928,
-0.18029482662677765,
0.19037893414497375,
-0.016534768044948578,
0.3194536566734314,
0.2845264971256256,
-0.18322701752185822,
-0.14169098436832428,
0.5626684427261353,
-0.09186384081840515,
-0.4536193609237671,
0.12980195879936218,
-0.15634267032146454,
-0.014834444969892502,
0.1588098704814911,
-0.3009737432003021,
0.22767764329910278,
0.1487453728914261,
0.10698997229337692,
0.24871456623077393,
0.09753501415252686,
0.08492782711982727,
-0.27701035141944885,
0.154802143573761,
-0.06106302887201309,
0.13948000967502594,
-0.13911715149879456,
-0.19060790538787842,
0.4748789966106415,
0.4391956925392151,
0.45002281665802,
-0.06180506572127342,
0.7416898608207703,
0.13546517491340637,
0.24633176624774933,
0.31369107961654663,
0.3680102229118347,
0.24789883196353912,
0.019391503185033798,
0.022702805697917938,
0.10155276209115982,
0.12703724205493927,
0.044356949627399445,
0.32305434346199036,
0.04360675439238548,
-0.1844172477722168,
-0.39105382561683655,
-0.462024450302124,
-0.2502821683883667,
-0.32469505071640015,
-0.18037408590316772,
0.08657275885343552,
0.24447786808013916,
0.03447053208947182,
0.44471463561058044,
-0.11632654815912247,
-0.3504456579685211,
0.21780474483966827,
0.18916526436805725,
0.2316962629556656,
0.28176456689834595,
-0.1259295493364334,
-0.06610594689846039,
-0.5629534721374512,
0.3282519578933716,
0.0698232352733612,
0.41106340289115906,
0.017946667969226837,
-0.005971862003207207,
0.03197401016950607,
-0.027552969753742218,
0.2141028642654419,
-0.21733862161636353,
0.22549012303352356,
0.0406879261136055,
-0.030443642288446426,
-0.46308672428131104,
-0.011597808450460434,
-0.14690595865249634,
0.3091905415058136,
0.4478083848953247,
0.1146974265575409,
-0.6934031248092651,
-0.3136429786682129,
0.07117417454719543,
0.35815542936325073,
-0.11457187682390213,
0.02381068840622902,
-0.10174080729484558,
-0.23448677361011505,
-0.306695818901062,
-0.12528763711452484,
-0.10915235430002213,
0.22679664194583893,
-0.12509475648403168,
0.226400226354599,
-0.18110935389995575,
0.3791966438293457,
0.026508886367082596,
0.06611017882823944,
0.20378847420215607,
0.09094195812940598,
0.17473362386226654,
0.25883081555366516,
0.06164189800620079,
0.24266628921031952,
0.3315388560295105,
0.19635413587093353,
-0.13879425823688507,
0.01387458760291338,
-0.12425326555967331,
-0.197669118642807,
0.2619454264640808,
-0.07867742329835892,
0.14160767197608948,
0.23715618252754211,
-0.11814893782138824,
-0.09225410223007202,
-0.07548421621322632,
0.18069468438625336,
-0.11169245094060898,
-0.43025895953178406,
-0.16903282701969147,
0.482128381729126,
0.18467971682548523,
-0.09955304861068726,
-0.08322003483772278,
0.18160849809646606,
-0.18518859148025513,
0.08709186315536499,
0.1557227075099945,
0.9597743153572083,
-0.13391582667827606,
0.1392340064048767,
-0.013901423662900925,
0.04200712963938713,
0.7529656291007996,
-0.12893174588680267,
0.05684635415673256,
-0.36875903606414795,
0.14605018496513367,
-0.08033677190542221,
0.3275386393070221,
0.11961262673139572,
0.03418194502592087,
-0.16960206627845764,
0.4756481349468231,
0.17363640666007996,
0.2811533808708191,
-0.009662252850830555,
0.4018618166446686,
0.021716179326176643,
-0.26012593507766724,
-0.4872604012489319,
-0.007310023996978998,
-0.29323750734329224,
0.45676514506340027,
-0.2152501493692398,
-0.21326418220996857,
-0.18951761722564697,
-0.26259952783584595,
-0.08691010624170303,
0.19099748134613037,
-0.08713926374912262,
0.32405638694763184,
-0.004837930202484131,
-0.44578850269317627,
0.17790104448795319,
0.32984426617622375,
0.16162097454071045,
0.19725622236728668,
-0.2407044768333435,
0.08119745552539825,
-0.5297271013259888,
-0.3864917457103729,
-0.16773968935012817,
0.17965245246887207,
0.20713669061660767,
-0.06247236952185631,
-0.23092633485794067,
0.10350880026817322,
-0.1793392300605774,
0.0926472544670105,
-0.2239646017551422,
-0.06170223653316498,
-0.2331020087003708,
0.13216204941272736,
-0.36957985162734985,
-0.07161643356084824,
-0.15250007808208466,
-0.20293720066547394,
0.026637710630893707,
0.03525650501251221,
0.033963341265916824,
-0.12844246625900269,
0.09658762812614441,
-0.09237120300531387,
0.004738509654998779,
0.5840378403663635,
0.17348921298980713,
0.22685396671295166,
0.49515748023986816,
0.21956107020378113,
-0.43671441078186035,
-0.13382494449615479,
-0.048227254301309586,
-0.4838818311691284,
-0.20812512934207916,
-0.08983714878559113,
-0.188603013753891,
0.1479986011981964,
-0.18880105018615723,
0.019745126366615295,
-0.0024591844994574785,
-0.37033525109291077,
0.1932288408279419,
-0.44314777851104736,
-0.15108786523342133,
0.38061070442199707,
-0.027729464694857597,
0.04239252954721451,
0.22797070443630219,
-0.0980445072054863,
0.09659796953201294,
-0.01285735797137022,
-0.1124015524983406,
0.07979558408260345,
-0.3406735360622406,
0.1945512443780899,
0.30100661516189575,
0.1971977949142456,
-0.10288655757904053,
-0.043237343430519104,
-0.07497967779636383,
-0.2692517936229706,
-0.09393410384654999,
0.04527604579925537,
-0.12200285494327545,
0.22404895722866058,
0.1475181132555008,
-0.12615370750427246,
0.2464761584997177,
-0.3998473584651947,
0.087342768907547,
-0.19552065432071686,
-0.05134088173508644,
0.158980593085289,
-0.05590864270925522,
0.1787538230419159,
0.19600921869277954,
0.21174980700016022,
-0.31490522623062134,
0.3788202404975891,
0.11587562412023544,
0.5302124619483948,
-0.012899317778646946,
0.3653715252876282,
0.3719918429851532,
-0.026579512283205986,
-0.36284247040748596,
0.10022086650133133,
-0.08643676340579987,
-0.21524126827716827,
0.3673946261405945,
-0.2350914180278778,
-0.0242952611297369,
0.3940366804599762,
0.08385191112756729,
0.21597526967525482,
-0.025526538491249084,
0.09321808815002441,
0.13950252532958984,
-0.004354169126600027,
-0.3624989986419678,
-0.17384324967861176,
0.5092695355415344,
-0.015003123320639133,
-0.08851350098848343,
0.26420795917510986,
0.15878084301948547,
-0.29734402894973755,
0.19717220962047577,
0.11738469451665878,
-0.010572759434580803,
-0.11014542728662491,
0.17578892409801483,
0.17088629305362701,
0.4562656581401825,
0.189768984913826,
0.058932092040777206,
-0.08926834911108017,
0.014299665577709675,
0.006783858872950077,
-0.08893447369337082,
0.20767557621002197,
0.09536590427160263,
0.14601363241672516,
-0.2269897609949112,
-0.43864893913269043,
0.02953648567199707,
0.3851928114891052,
-0.13019414246082306,
-0.012493346817791462,
-0.11778637766838074,
0.12432008981704712,
0.28822892904281616,
-0.08490666002035141,
-0.31042227149009705,
0.23915614187717438,
-0.09783295542001724,
-0.17533425986766815,
-0.4473356306552887,
-0.38832607865333557,
-0.0926382765173912,
0.15554477274417877,
0.11272645741701126,
-0.29997718334198,
0.2941490411758423,
0.2409372180700302,
-0.12092550098896027,
-0.5600196719169617,
0.6237097382545471,
0.10353721678256989,
0.0964278057217598,
-0.32490915060043335,
0.11339908838272095,
-0.23213733732700348,
-0.06692574918270111,
0.08399172872304916,
0.36598387360572815,
0.2763705551624298,
0.19669032096862793,
-0.3062683939933777,
-0.07828143239021301,
0.2343597412109375,
-0.026193760335445404,
0.09340187907218933,
0.017287222668528557,
0.0709710493683815,
-0.003840856719762087,
0.4331747889518738,
-0.016417551785707474,
0.005920568015426397,
-0.2877872586250305,
0.3169851005077362,
-0.03394799679517746,
-0.06571526825428009,
-0.07001673430204391,
-0.18997061252593994,
-0.045191690325737,
-0.07291601598262787,
-0.19182394444942474,
-0.42089301347732544,
0.05705172196030617,
-0.025830430909991264,
0.202705979347229,
0.19514137506484985,
-0.1792077273130417,
-0.03396959975361824,
-0.2826882302761078,
0.2591368556022644,
0.23609215021133423,
0.09331604838371277,
-0.25187885761260986,
-0.13416077196598053,
-0.48668697476387024,
-0.05872030556201935,
-0.4086301028728485,
0.07081741839647293,
-0.05416196957230568,
0.2985707223415375,
-0.04279191792011261,
0.05427579954266548,
0.140477254986763,
-0.20523054897785187,
0.047735340893268585,
0.14222370088100433,
-0.31906190514564514,
-0.19815582036972046,
-0.03813894838094711,
0.056787699460983276,
-0.24918724596500397,
-0.45279210805892944,
0.2786124050617218,
-0.39105504751205444,
-0.12764574587345123,
0.034198541194200516,
-0.0678333193063736,
0.0969114825129509,
0.1439945548772812,
0.2436264306306839,
0.01998003013432026,
0.1572602540254593,
-0.11677505075931549,
-0.04871377721428871,
-0.2996519207954407,
-0.12571100890636444,
-0.05966643616557121,
0.255455881357193,
-0.14386743307113647,
0.5094132423400879,
-0.22200460731983185,
0.14598259329795837,
-0.2453881800174713,
0.38326504826545715,
-0.2661606967449188,
0.20203593373298645,
-0.1202319860458374,
0.08432216197252274,
-0.4251115918159485,
0.17100197076797485,
-0.01901509054005146,
0.004624778870493174,
-0.17914533615112305,
0.10418078303337097,
-0.5216526985168457,
-0.09871901571750641,
0.23113150894641876,
-0.2941541373729706,
-0.15558691322803497,
-0.26602423191070557,
0.06032859534025192,
0.21147072315216064,
0.18883395195007324,
-0.3588397204875946,
0.2253999412059784,
0.24154748022556305,
-0.03204033523797989,
-0.11889053881168365,
-0.1337679624557495,
-0.11480897665023804,
-0.23884989321231842,
-0.06295119971036911,
-0.1781378835439682,
0.0128488102927804,
-0.46067550778388977,
-0.11865976452827454,
-0.25789424777030945
] |
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.12032388895750046,
-0.1472448855638504,
-0.1446629762649536,
0.39730745553970337,
0.05969056487083435,
0.15631917119026184,
0.7675092220306396,
-0.10106991976499557,
0.3270578682422638,
0.0822039470076561,
-0.03244864195585251,
-0.001356215332634747,
0.10880303382873535,
-0.2761223316192627,
-0.11626166105270386,
0.1431807279586792,
0.1974261999130249,
0.13848920166492462,
-0.07531134784221649,
-0.07117171585559845,
-0.29493117332458496,
0.22514842450618744,
-0.14588987827301025,
-0.1837262362241745,
-0.021259455010294914,
0.3673402965068817,
-0.006392499431967735,
0.270425409078598,
0.18430088460445404,
-0.37556734681129456,
0.4452943503856659,
0.2041805535554886,
0.2709939777851105,
0.35570165514945984,
-0.00012342605623416603,
-0.08472953736782074,
0.04217499867081642,
-0.24606357514858246,
-0.18250004947185516,
-0.257667601108551,
-0.34440892934799194,
-0.32552921772003174,
0.16597895324230194,
-0.6405022144317627,
-0.083127960562706,
0.4193374812602997,
0.010472575202584267,
-0.365092396736145,
0.04186262935400009,
0.28998857736587524,
0.1642397940158844,
-0.27641764283180237,
-0.4180563688278198,
0.30664870142936707,
0.2418937236070633,
-0.10921397060155869,
-0.2015371471643448,
0.10776934772729874,
-0.0016696024686098099,
0.21701408922672272,
-0.06735861301422119,
0.09886621683835983,
-0.2695136070251465,
0.3476356863975525,
0.32336023449897766,
0.2655830979347229,
-0.11128868907690048,
0.12094567716121674,
0.24903704226016998,
0.09577028453350067,
0.5434872508049011,
-0.01609017141163349,
-0.1401778757572174,
-0.3993290960788727,
-0.18293213844299316,
-0.900010883808136,
0.44747063517570496,
0.1172696202993393,
0.2949039041996002,
0.28474706411361694,
-0.1221221536397934,
0.1749388873577118,
0.0017118962714448571,
-0.027043161913752556,
-0.2510725259780884,
0.004283287562429905,
-0.30403614044189453,
0.11810489743947983,
-0.13769474625587463,
0.07990392297506332,
0.2939622104167938,
-0.3672236502170563,
-0.08929096162319183,
0.08883587270975113,
-0.20340320467948914,
0.2997894287109375,
-0.1713487058877945,
0.05271404981613159,
-0.19507144391536713,
0.051088519394397736,
0.15193046629428864,
-0.09218145161867142,
0.05245209485292435,
0.08868285268545151,
-0.09519091248512268,
0.2707783281803131,
0.13429202139377594,
0.14402277767658234,
0.13215190172195435,
0.02770683355629444,
-0.3610527813434601,
-0.1131923645734787,
-0.04047021269798279,
-0.05746614187955856,
0.7582939267158508,
-0.02405961975455284,
-0.13366910815238953,
-0.14462022483348846,
-0.24976983666419983,
0.13100218772888184,
-0.05396154895424843,
-0.19436995685100555,
-0.3105032444000244,
0.15827232599258423,
-0.09374049305915833,
0.007411453872919083,
-0.25721821188926697,
0.12833157181739807,
-0.1247403472661972,
-0.1262659728527069,
0.013780627399682999,
-0.2658875584602356,
-0.27477318048477173,
-0.09997143596410751,
0.16765646636486053,
-0.03543420881032944,
0.13492336869239807,
0.08763808012008667,
-0.2041487693786621,
-0.39775124192237854,
-0.040184661746025085,
-0.040093716233968735,
0.49411872029304504,
0.17901170253753662,
-0.03414544090628624,
0.3948507308959961,
0.22571976482868195,
-0.7923144698143005,
-0.129662424325943,
0.28363993763923645,
-0.44829005002975464,
-0.10997847467660904,
0.07709279656410217,
0.048705436289310455,
-0.4173683524131775,
-0.05738374963402748,
-0.24082723259925842,
0.1323026865720749,
0.43065527081489563,
-0.23436182737350464,
0.07491763681173325,
-0.2795864939689636,
-0.3188851475715637,
-0.40572646260261536,
-0.12431039661169052,
0.5804484486579895,
-0.6152839660644531,
-0.13548560440540314,
-0.29325059056282043,
0.04549667239189148,
0.07961978763341904,
0.21075265109539032,
-0.028072616085410118,
-0.32292234897613525,
-0.4087451696395874,
0.054460152983665466,
0.11525759100914001,
-0.17351076006889343,
-0.5145965218544006,
-0.038758937269449234,
-0.16846327483654022,
0.5907818675041199,
0.34136536717414856,
0.07577179372310638,
0.4065316617488861,
-0.058903079479932785,
0.12592226266860962,
0.2793927788734436,
0.2539741098880768,
0.020392436534166336,
-0.12496431916952133,
-0.06295160204172134,
0.3729768693447113,
-0.0367325097322464,
-0.02468343824148178,
0.2701403498649597,
0.3431214988231659,
-0.4709174633026123,
0.29774224758148193,
0.10177954286336899,
-0.10567823797464371,
0.11670584976673126,
-0.165793776512146,
0.19362205266952515,
0.21695806086063385,
-0.0856490284204483,
-0.41772887110710144,
0.15804576873779297,
0.1372050642967224,
-0.35202157497406006,
-0.11613547801971436,
-0.05021392181515694,
-0.2620416581630707,
-0.1570705622434616,
-0.17901059985160828,
-0.06665005534887314,
0.017043516039848328,
0.25423696637153625,
0.022817015647888184,
-0.002280979184433818,
0.0898880735039711,
0.4797987937927246,
0.006873861886560917,
0.13219280540943146,
-0.2679719626903534,
-0.23310285806655884,
0.020710960030555725,
-0.03529062867164612,
-0.5559324622154236,
-0.019975291565060616,
0.23222993314266205,
-0.19912390410900116,
-0.24299828708171844,
0.41309866309165955,
0.2121966928243637,
0.3052724599838257,
-0.0656285509467125,
0.17397789657115936,
0.02716485969722271,
0.23317109048366547,
0.11749466508626938,
-0.008733578957617283,
0.1551889032125473,
-0.11894291639328003,
0.1674257516860962,
0.5678289532661438,
0.07828813791275024,
0.2709800601005554,
-0.20864763855934143,
-0.188979372382164,
0.33827507495880127,
-0.05122227966785431,
0.03601333498954773,
-0.33990010619163513,
0.1569095104932785,
0.09347989410161972,
0.06175842881202698,
0.24206557869911194,
-0.18842817842960358,
-0.09718212485313416,
0.2958264648914337,
-0.17091357707977295,
-0.06931110471487045,
-0.0697169154882431,
-0.3157299757003784,
0.0640435516834259,
0.10985022038221359,
0.42251113057136536,
0.5408831834793091,
0.035589270293712616,
-0.027028439566493034,
-0.12263873964548111,
0.08773971349000931,
-0.34772324562072754,
0.2842809855937958,
0.056768693029880524,
-0.0782584473490715,
0.20364435017108917,
0.2016819566488266,
-0.012973641976714134,
-0.3612755537033081,
0.2047889679670334,
0.19621460139751434,
-0.3082537353038788,
-0.39726635813713074,
0.2769385278224945,
-0.4201710820198059,
0.01692088507115841,
-0.24801869690418243,
-0.05324047803878784,
-0.19652670621871948,
-0.21774406731128693,
-0.2575785517692566,
0.3369186222553253,
0.19368351995944977,
-0.1185881495475769,
-0.3190777003765106,
0.43377259373664856,
-0.17464512586593628,
-0.5059754848480225,
0.137748584151268,
-0.04159029573202133,
-0.22724393010139465,
-0.051292117685079575,
-0.057353392243385315,
-0.1890227049589157,
-0.024926552549004555,
-0.13294926285743713,
0.07262825220823288,
0.08946841210126877,
-0.1508387327194214,
-0.15774336457252502,
0.1279166340827942,
0.2775489091873169,
-0.18624840676784515,
0.04290134459733963,
0.04788557067513466,
-0.005169386975467205,
-0.06784854084253311,
0.24591714143753052,
0.21649518609046936,
-0.02606251649558544,
0.17688415944576263,
-0.07592663913965225,
-0.001882711541838944,
-0.2840179204940796,
-0.3081315755844116,
0.024739790707826614,
0.031239597126841545,
0.04040859639644623,
0.1132463663816452,
-0.0014863377436995506,
-0.3966311812400818,
-0.19579708576202393,
0.17629124224185944,
0.1216726303100586,
-0.41136687994003296,
-0.3755251169204712,
0.4756685495376587,
-0.22183160483837128,
-0.08784884214401245,
0.1451064497232437,
-0.033792465925216675,
-0.06690717488527298,
-0.04336743429303169,
-0.3657757341861725,
0.43102240562438965,
-0.2626771330833435,
0.2542520761489868,
0.23469656705856323,
-0.2392582893371582,
0.2565969228744507,
-0.023466207087039948,
0.21685707569122314,
-0.21948426961898804,
-0.3927708566188812,
0.19542859494686127,
0.12328426539897919,
0.31002140045166016,
0.15949471294879913,
0.13397036492824554,
-0.027937406674027443,
0.7450907826423645,
-0.17182256281375885,
-0.09831138700246811,
0.3850100636482239,
0.07509896904230118,
0.34123432636260986,
-0.018127884715795517,
-0.07120523601770401,
-0.03781302645802498,
-0.12658125162124634,
-0.3021034300327301,
0.2834188640117645,
0.10661948472261429,
-0.2146604210138321,
-0.11318495124578476,
0.1987173706293106,
-0.24867160618305206,
-0.3150981366634369,
-0.004506936762481928,
-0.18172307312488556,
-0.09723901748657227,
0.35631197690963745,
0.06145128235220909,
-0.21784892678260803,
-0.25761091709136963,
-0.21463772654533386,
0.49872109293937683,
0.2452060580253601,
-0.08135739713907242,
0.03624727576971054,
-0.07812491804361343,
-0.038551732897758484,
0.2863278090953827,
0.20014306902885437,
0.1760803461074829,
0.024772891774773598,
-0.17576910555362701,
0.19130977988243103,
0.2136429250240326,
0.7930591702461243,
-0.2811438739299774,
0.15688593685626984,
0.09410203993320465,
0.09948056936264038,
0.020585309714078903,
-0.29485511779785156,
0.07980599254369736,
0.19794322550296783,
0.02108338288962841,
0.2169814556837082,
0.09038832783699036,
0.16258369386196136,
-0.06342881917953491,
0.2885497510433197,
-0.17608007788658142,
-0.430186003446579,
-0.1813446432352066,
0.22665685415267944,
0.02456684410572052,
-0.08184684067964554,
-0.10827073454856873,
0.10652325302362442,
-0.32591933012008667,
0.017533358186483383,
-0.15573304891586304,
0.1471209079027176,
0.056986354291439056,
0.06967232376337051,
0.15171058475971222,
-0.035504087805747986,
-0.01752902753651142,
0.24422717094421387,
0.10197551548480988,
0.12028960883617401,
0.45389848947525024,
-0.26120442152023315,
-0.3922271132469177,
-0.0007039015763439238,
-0.19609464704990387,
0.027452824637293816,
0.16976536810398102,
-0.10677944123744965,
0.23342983424663544,
-0.07907075434923172,
-0.26048582792282104,
-0.0035103170666843653,
-0.18146803975105286,
0.1122141182422638,
0.20381993055343628,
-0.451212614774704,
-0.4058627188205719,
0.3258875608444214,
-0.05547847971320152,
-0.255929559469223,
0.1496509462594986,
-0.09499219059944153,
-0.47655466198921204,
0.38971221446990967,
-0.21410730481147766,
0.7907224297523499,
-0.07829074561595917,
0.23483788967132568,
-0.2794216573238373,
-0.3538901209831238,
0.08622853457927704,
0.03831684961915016,
0.12606021761894226,
-0.23946687579154968,
-0.4958379566669464,
-0.18921557068824768,
0.10015051066875458,
0.3439461886882782,
0.2582056522369385,
0.13796092569828033,
0.31055742502212524,
-0.4034964442253113,
0.45322349667549133,
-0.028951045125722885,
-0.1205715611577034,
0.04074571654200554,
-0.1886204481124878,
-0.019752347841858864,
0.018800362944602966,
0.03916008397936821,
0.2214197963476181,
0.07358861714601517,
0.13054320216178894,
-0.03309778496623039,
0.05067996680736542,
-0.2418762892484665,
-0.13286778330802917,
-0.042451515793800354,
0.07748640328645706,
-0.2033521682024002,
-0.5004668831825256,
0.11649881303310394,
0.48116371035575867,
0.09561825543642044,
0.06970494240522385,
0.09791261702775955,
0.29056233167648315,
0.4477478563785553,
0.20443131029605865,
0.04229579120874405,
-0.1440747082233429,
0.08523885160684586,
0.26926156878471375,
-0.030807828530669212,
0.03128611668944359,
-0.23425446450710297,
-0.27062585949897766,
0.07216745615005493,
0.21938608586788177,
-0.0028325198218226433,
-0.23970544338226318,
-0.4396779537200928,
-0.3141617476940155,
0.06720191985368729,
-0.03204067423939705,
0.025117915123701096,
-0.18147704005241394,
0.08043625205755234,
0.15778301656246185,
-0.27077627182006836,
-0.6040498614311218,
-0.25272563099861145,
0.48607420921325684,
0.13384611904621124,
-0.22659435868263245,
0.49207764863967896,
-0.25276315212249756,
-0.17197869718074799,
0.025106923654675484,
0.17293961346149445,
-0.19216829538345337,
-0.07065130025148392,
0.10882516950368881,
0.05547500029206276,
0.17798182368278503,
-0.04067669436335564,
-0.05616450309753418,
0.12890590727329254,
0.18949423730373383,
-0.18919049203395844,
-0.5128540396690369,
-0.01397787593305111,
-0.2773659825325012,
-0.17631474137306213,
-0.0321369394659996,
0.3331453204154968,
-0.35265788435935974,
-0.09277770668268204,
-0.18666985630989075,
-0.14700113236904144,
0.23972420394420624,
0.23965837061405182,
0.07130427658557892,
0.30873411893844604,
0.24598118662834167,
0.07091950625181198,
-0.06964785605669022,
0.05927275866270065,
0.0721110925078392,
0.06865572929382324,
-0.11273883283138275,
-0.3264078199863434,
0.20042286813259125,
-0.04098019376397133,
0.10222122073173523,
-0.2532327473163605,
-0.3742201328277588,
0.10082589834928513,
-0.32726675271987915,
0.1454121172428131,
0.33036625385284424,
0.0903070867061615,
0.14556510746479034,
0.03938749060034752,
0.14868010580539703,
-0.33270272612571716,
0.16661278903484344,
-0.3360442817211151,
0.18825706839561462,
0.13420839607715607,
0.1283864676952362,
-0.3437958061695099,
0.23365503549575806,
-0.3437274992465973,
-0.09053235501050949,
-0.2087259292602539,
0.16935612261295319,
0.38302478194236755,
-0.3520568311214447,
0.21398991346359253,
0.45579594373703003,
0.29273998737335205,
0.2756814956665039,
-0.1129901185631752,
-0.2772301733493805,
0.1314343512058258,
0.036126215010881424,
-0.02823594957590103,
-0.12416844815015793,
0.15957669913768768,
0.06673286855220795,
-0.031117528676986694,
0.3678383231163025,
0.2150234431028366,
0.044585783034563065,
0.06523768603801727,
-0.015162777155637741,
0.7256927490234375,
-0.26096487045288086,
0.4738338589668274,
0.47975394129753113,
0.2778433561325073,
0.36332640051841736,
0.48896586894989014,
0.018202295526862144,
-0.05645716190338135,
0.7593058943748474,
0.12221844494342804,
0.18373064696788788,
0.5540965795516968,
0.07046622037887573,
-0.35363975167274475,
-0.503240168094635,
0.23173832893371582,
0.14060208201408386,
-0.4301656186580658,
0.5627179741859436,
0.3728710114955902,
0.18791614472866058,
-0.3548083007335663,
0.017929984256625175,
-0.3499876856803894,
-0.10776294767856598,
-0.13464604318141937,
-0.34426912665367126,
0.1918269842863083,
-0.10224712640047073,
0.06102389842271805,
0.14657999575138092,
-0.258398175239563,
0.17319361865520477,
0.26086053252220154,
-0.003771207993850112,
-0.042536888271570206,
-0.4601890742778778,
0.08375991880893707,
-0.1845100075006485,
0.4517955482006073,
-0.18028751015663147,
0.09525109827518463,
-0.039057038724422455,
-0.045159462839365005,
0.46486639976501465,
-0.31210750341415405,
0.3018801510334015,
0.25211405754089355,
0.33261463046073914,
-0.22773809731006622,
-0.055161625146865845,
-0.03242719545960426,
0.038237474858760834,
0.3212354779243469,
0.1287716180086136,
0.020046325400471687,
0.1461443454027176,
0.08918993920087814,
-0.03793110325932503,
0.5240585803985596,
0.4534054100513458,
0.2770945429801941,
-0.5207792520523071,
-0.30617451667785645,
0.026979342103004456,
0.0006312443292699754,
-0.27850985527038574,
-0.09139285981655121,
-0.03443194553256035,
0.09435152262449265,
0.2659898102283478,
0.04184405133128166,
0.3121053874492645,
0.22372426092624664,
0.012419105507433414,
0.2612021863460541,
0.1443604975938797,
0.23283018171787262,
-0.09914471209049225,
-0.23292292654514313,
0.21417683362960815,
-0.788892924785614,
0.05324430391192436,
0.22868449985980988,
0.18594305217266083,
-0.012467055581510067,
0.069895900785923,
-0.005308739375323057,
0.01960388757288456,
0.13030187785625458,
0.04901713877916336,
0.26028507947921753,
0.41603225469589233,
-0.02974984236061573,
-0.32728835940361023,
0.1327349692583084,
-0.10522524267435074,
-0.20893625915050507,
-0.33326226472854614,
0.13372743129730225,
0.2565189301967621,
-0.07383547723293304,
-0.1368066370487213,
-0.0006601944332942367,
0.15044642984867096,
0.34593629837036133,
0.33188584446907043,
0.00898310448974371,
0.47527381777763367,
0.026408134028315544,
0.12316979467868805,
-0.17901182174682617,
-0.09658671170473099,
-0.25013843178749084,
0.13033443689346313,
0.03634490445256233,
0.13600192964076996,
-0.33756309747695923,
0.040121857076883316,
0.010268616490066051,
0.3192099332809448,
0.15898840129375458,
-0.07559172809123993,
-0.3314594030380249,
-0.14426176249980927,
-0.1662588119506836,
0.09043664485216141,
0.046960365027189255,
0.2856379747390747,
0.034699372947216034,
0.41233891248703003,
0.1802215427160263,
-0.1800527423620224,
0.10230810940265656,
-0.1942431479692459,
-0.17626087367534637,
0.12691929936408997,
0.2522343099117279,
0.013031035661697388,
-0.09838633239269257,
-0.24185815453529358,
0.017955468967556953,
0.5038872361183167,
-0.2512527108192444,
-0.14801232516765594,
0.12069572508335114,
-0.07644115388393402,
0.1261560320854187,
-0.2026415765285492,
0.490509957075119,
0.30653733015060425,
-0.33165228366851807,
-0.05541475489735603,
-0.2716314196586609
] |
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.0635632574558258,
-0.13767115771770477,
-0.16112256050109863,
0.3697887659072876,
0.02402925305068493,
0.16985829174518585,
0.7317380905151367,
-0.09527894109487534,
0.34567609429359436,
0.06218115612864494,
-0.019688203930854797,
0.02635812759399414,
0.09261880069971085,
-0.2516988515853882,
-0.12035837769508362,
0.1674453467130661,
0.21845953166484833,
0.15186376869678497,
-0.10476433485746384,
-0.07660817354917526,
-0.29860955476760864,
0.23354943096637726,
-0.15579016506671906,
-0.20520424842834473,
0.0038210756611078978,
0.3678065240383148,
0.00945210363715887,
0.26381686329841614,
0.14747434854507446,
-0.35178330540657043,
0.4878268837928772,
0.28490209579467773,
0.2567985951900482,
0.3535687327384949,
-0.0001240681594936177,
-0.10253514349460602,
0.03308422863483429,
-0.25037264823913574,
-0.1672682911157608,
-0.22471824288368225,
-0.30109575390815735,
-0.32426318526268005,
0.1865069568157196,
-0.6597773432731628,
-0.08492261171340942,
0.420676589012146,
0.014170851558446884,
-0.38347169756889343,
-0.006542434450238943,
0.267697811126709,
0.15168194472789764,
-0.203315868973732,
-0.4238826036453247,
0.289532333612442,
0.3160741925239563,
-0.12042553722858429,
-0.2209731936454773,
0.11174201220273972,
0.011642258614301682,
0.20739111304283142,
-0.06467392295598984,
0.12265875190496445,
-0.2582229673862457,
0.3790101110935211,
0.40348201990127563,
0.2493327260017395,
-0.1564846932888031,
0.14347362518310547,
0.2393333911895752,
0.11486988514661789,
0.6052803993225098,
-0.05864328145980835,
-0.13644053041934967,
-0.40687498450279236,
-0.17442579567432404,
-0.8670362830162048,
0.4361380934715271,
0.05399652197957039,
0.30699092149734497,
0.2467765063047409,
-0.126429945230484,
0.1484861522912979,
-0.03155471384525299,
-0.019789811223745346,
-0.24629215896129608,
0.023622998967766762,
-0.29510238766670227,
0.14033707976341248,
-0.10811933130025864,
0.10428616404533386,
0.2891932725906372,
-0.3306134045124054,
-0.10478188097476959,
0.11542262136936188,
-0.2247297614812851,
0.288032203912735,
-0.14132685959339142,
0.06364566832780838,
-0.17195191979408264,
0.10048113018274307,
0.18264968693256378,
-0.07900000363588333,
0.050377439707517624,
0.04908984154462814,
-0.02873001992702484,
0.2890388071537018,
0.12698489427566528,
0.12086107581853867,
0.16396161913871765,
-0.007473038975149393,
-0.35510683059692383,
-0.11577007174491882,
-0.0323823019862175,
-0.06729942560195923,
0.7882553935050964,
-0.05029768496751785,
-0.12804050743579865,
-0.15593282878398895,
-0.23306307196617126,
0.10187051445245743,
-0.01442711241543293,
-0.21410390734672546,
-0.2598350942134857,
0.17105717957019806,
-0.10397350788116455,
0.049073513597249985,
-0.2729887366294861,
0.08229998499155045,
-0.14718730747699738,
-0.04794664680957794,
0.017731213942170143,
-0.27204686403274536,
-0.30063334107398987,
-0.1074334979057312,
0.14784662425518036,
-0.03664194047451019,
0.16876935958862305,
0.07547173649072647,
-0.20455774664878845,
-0.3488112688064575,
0.009252599440515041,
-0.040129005908966064,
0.4940226674079895,
0.21629157662391663,
-0.053195107728242874,
0.4039779007434845,
0.15931148827075958,
-0.7147265672683716,
-0.15183255076408386,
0.2730325758457184,
-0.4315807819366455,
-0.15691103041172028,
0.07633625715970993,
0.04920222982764244,
-0.3940649926662445,
-0.0674637109041214,
-0.22174763679504395,
0.11517488956451416,
0.40865957736968994,
-0.24358388781547546,
0.13091908395290375,
-0.29051101207733154,
-0.25524187088012695,
-0.42074349522590637,
-0.14564983546733856,
0.5577818751335144,
-0.6230274438858032,
-0.1625298112630844,
-0.3136776387691498,
-0.015926456078886986,
0.011561094783246517,
0.19590945541858673,
-0.041242193430662155,
-0.3160281479358673,
-0.4081632196903229,
0.05110964551568031,
0.18886767327785492,
-0.23181778192520142,
-0.5006051063537598,
-0.06468310952186584,
-0.11671574413776398,
0.5130484104156494,
0.36481931805610657,
0.1294817328453064,
0.35245001316070557,
-0.03673730790615082,
0.1297386884689331,
0.2571270763874054,
0.2665058970451355,
-0.0025441094767302275,
-0.07710780203342438,
-0.06752786040306091,
0.34319788217544556,
-0.02465737983584404,
-0.016896666958928108,
0.24604789912700653,
0.3091094195842743,
-0.43245652318000793,
0.27623623609542847,
0.10572147369384766,
-0.13085918128490448,
0.07794959098100662,
-0.17778398096561432,
0.22335980832576752,
0.25010907649993896,
-0.10727571696043015,
-0.42297813296318054,
0.15686917304992676,
0.15337859094142914,
-0.3806134760379791,
-0.06885810941457748,
-0.08610406517982483,
-0.26969534158706665,
-0.15010783076286316,
-0.13606226444244385,
-0.07379986345767975,
-0.005573532544076443,
0.27829742431640625,
0.05105873569846153,
-0.05401461571455002,
0.018976859748363495,
0.48829635977745056,
-0.002305991016328335,
0.14750738441944122,
-0.30202949047088623,
-0.28915104269981384,
0.02960764430463314,
-0.028103383257985115,
-0.5489795207977295,
-0.015829969197511673,
0.23571337759494781,
-0.2063465267419815,
-0.19935859739780426,
0.4474983215332031,
0.21407952904701233,
0.3029053509235382,
-0.048879869282245636,
0.19104935228824615,
0.02597670815885067,
0.3004649579524994,
0.12069957703351974,
-0.03385397791862488,
0.14117370545864105,
-0.12104541808366776,
0.16551832854747772,
0.5786078572273254,
0.04641101881861687,
0.27099722623825073,
-0.18223418295383453,
-0.18571126461029053,
0.32851383090019226,
-0.03271098434925079,
0.03954947739839554,
-0.33517611026763916,
0.1468866467475891,
0.11177383363246918,
0.08774851262569427,
0.20427265763282776,
-0.1907060742378235,
-0.10305130481719971,
0.26954251527786255,
-0.18075333535671234,
-0.0829332247376442,
-0.13250654935836792,
-0.3261304497718811,
0.035743411630392075,
0.13225224614143372,
0.42563050985336304,
0.554050087928772,
0.046591874212026596,
-0.01945713348686695,
-0.11377739906311035,
0.03362991288304329,
-0.3271060883998871,
0.3168639540672302,
0.043797582387924194,
-0.14390739798545837,
0.19177097082138062,
0.1746736317873001,
-0.07265010476112366,
-0.43106722831726074,
0.19657984375953674,
0.20528289675712585,
-0.32564979791641235,
-0.38206955790519714,
0.28235960006713867,
-0.3616984188556671,
-0.011222760193049908,
-0.21179857850074768,
-0.06396584957838058,
-0.18378938734531403,
-0.2088836282491684,
-0.2568308115005493,
0.3508307933807373,
0.1859332025051117,
-0.14185267686843872,
-0.3276413679122925,
0.46344470977783203,
-0.17665982246398926,
-0.4898562729358673,
0.12857478857040405,
-0.0669388547539711,
-0.19741877913475037,
-0.05715174227952957,
-0.11729932576417923,
-0.16587287187576294,
0.022438643500208855,
-0.15321965515613556,
0.08540353178977966,
0.05786142498254776,
-0.17262029647827148,
-0.15454387664794922,
0.1547122746706009,
0.26438966393470764,
-0.09850843250751495,
0.035214923322200775,
0.11348813027143478,
0.0029838045593351126,
-0.10295132547616959,
0.21510198712348938,
0.20498742163181305,
-0.0899735689163208,
0.1729826033115387,
-0.039367713034152985,
-0.0015085713239386678,
-0.2896403670310974,
-0.2656744718551636,
0.033652130514383316,
0.03859389200806618,
0.0936557948589325,
0.11152777075767517,
0.04079241678118706,
-0.4411357045173645,
-0.17202524840831757,
0.19781404733657837,
0.1351349800825119,
-0.4718317687511444,
-0.37256258726119995,
0.46369072794914246,
-0.24609903991222382,
-0.06039934605360031,
0.14534075558185577,
-0.025406882166862488,
-0.0932399109005928,
0.02530377171933651,
-0.34670165181159973,
0.36544355750083923,
-0.2504652440547943,
0.26985663175582886,
0.24204173684120178,
-0.20395509898662567,
0.27937859296798706,
-0.046912629157304764,
0.2026348114013672,
-0.2383541315793991,
-0.3993455767631531,
0.18408575654029846,
0.14583167433738708,
0.3319689631462097,
0.14047561585903168,
0.08357914537191391,
-0.08530411869287491,
0.7569006681442261,
-0.2657805383205414,
-0.10968092828989029,
0.4194291830062866,
0.06698764860630035,
0.3835330009460449,
-0.011438418179750443,
-0.08064471185207367,
-0.04202952980995178,
-0.13538354635238647,
-0.3232307732105255,
0.2571461498737335,
0.11521884053945541,
-0.23030315339565277,
-0.1356867402791977,
0.1844881772994995,
-0.23556376993656158,
-0.28455650806427,
-0.03718745335936546,
-0.1540185511112213,
-0.09913557767868042,
0.35318028926849365,
0.06558725237846375,
-0.24253402650356293,
-0.23628291487693787,
-0.18668873608112335,
0.5406587719917297,
0.22780397534370422,
-0.08690313249826431,
0.01889345608651638,
-0.06989827752113342,
-0.03428990766406059,
0.28076812624931335,
0.17066939175128937,
0.11078927665948868,
0.048895154148340225,
-0.22495003044605255,
0.20761774480342865,
0.1762589067220688,
0.8500131964683533,
-0.3017200529575348,
0.13750344514846802,
0.1269577592611313,
0.12239588052034378,
0.021555045619606972,
-0.308883935213089,
0.07738924026489258,
0.2468486726284027,
0.0460803359746933,
0.21356740593910217,
0.10073836892843246,
0.15259502828121185,
-0.040083181113004684,
0.27304574847221375,
-0.1604159027338028,
-0.43372711539268494,
-0.18592886626720428,
0.19938768446445465,
0.05147326737642288,
-0.08317654579877853,
-0.13863186538219452,
0.05286296084523201,
-0.23833484947681427,
0.020452843979001045,
-0.1870727837085724,
0.09759816527366638,
0.05528639629483223,
0.13738806545734406,
0.18461550772190094,
-0.00905364565551281,
-0.031852565705776215,
0.25252625346183777,
0.1103544607758522,
0.08025536686182022,
0.42404988408088684,
-0.27377820014953613,
-0.3302914500236511,
-0.023626448586583138,
-0.13152585923671722,
0.00480682635679841,
0.16062456369400024,
-0.13550694286823273,
0.2559549808502197,
-0.11722385883331299,
-0.26120632886886597,
-0.002460039220750332,
-0.1361791491508484,
0.1354818344116211,
0.17446568608283997,
-0.4639264941215515,
-0.47675883769989014,
0.39366480708122253,
-0.02949400432407856,
-0.2998778820037842,
0.14509278535842896,
-0.08464880287647247,
-0.47750982642173767,
0.34976479411125183,
-0.19611474871635437,
0.7891479134559631,
-0.08712688088417053,
0.25822800397872925,
-0.26497283577919006,
-0.3750716745853424,
0.18741320073604584,
-0.005763231310993433,
0.14132173359394073,
-0.22427020967006683,
-0.40791741013526917,
-0.1849195659160614,
0.0973900631070137,
0.3535403907299042,
0.21163396537303925,
0.16367805004119873,
0.3410291373729706,
-0.38504233956336975,
0.44571855664253235,
-0.08625295013189316,
-0.08070023357868195,
0.03390076011419296,
-0.16280314326286316,
-0.05814496800303459,
0.011183809489011765,
0.06802207976579666,
0.2422315627336502,
0.04254522919654846,
0.15231427550315857,
0.02026916667819023,
0.06151451915502548,
-0.22512641549110413,
-0.23665817081928253,
-0.008143898099660873,
0.07960700243711472,
-0.23834854364395142,
-0.48415639996528625,
0.0456717386841774,
0.4642895460128784,
0.10646828263998032,
0.06613581627607346,
0.09108562767505646,
0.32853615283966064,
0.4149172306060791,
0.18349803984165192,
0.02734428271651268,
-0.1332663893699646,
0.12055755406618118,
0.25873634219169617,
-0.012568938545882702,
-0.0029491237364709377,
-0.23346135020256042,
-0.3164701461791992,
0.06151825562119484,
0.24878260493278503,
0.006743494886904955,
-0.240678608417511,
-0.44302189350128174,
-0.2619330585002899,
0.05142863839864731,
-0.029435964301228523,
0.013570316135883331,
-0.15992994606494904,
0.10556908696889877,
0.20528975129127502,
-0.2814007103443146,
-0.5869444012641907,
-0.28422921895980835,
0.49303796887397766,
0.1405242681503296,
-0.2589586675167084,
0.41428640484809875,
-0.2807943522930145,
-0.14334732294082642,
0.04405732452869415,
0.1567831039428711,
-0.17185461521148682,
-0.043956078588962555,
0.13659432530403137,
0.08788161724805832,
0.11424469947814941,
-0.006284482777118683,
-0.02965381368994713,
0.11003272235393524,
0.1960730254650116,
-0.2149219959974289,
-0.500505805015564,
-0.056653980165719986,
-0.29659053683280945,
-0.1602219194173813,
0.006943894550204277,
0.3611191511154175,
-0.3827984929084778,
-0.07571354508399963,
-0.20077209174633026,
-0.13714976608753204,
0.23016321659088135,
0.2385779172182083,
0.09019491821527481,
0.31212306022644043,
0.2519564628601074,
0.08579906076192856,
-0.06430904567241669,
0.050935398787260056,
0.06349893659353256,
0.029883086681365967,
-0.1041647419333458,
-0.3534562587738037,
0.21121719479560852,
-0.08434998244047165,
0.08532842248678207,
-0.23475082218647003,
-0.3963415026664734,
0.12316427379846573,
-0.33241358399391174,
0.2065863013267517,
0.31512176990509033,
0.10878535360097885,
0.12665069103240967,
0.02857641689479351,
0.10047824680805206,
-0.35870274901390076,
0.1733621209859848,
-0.29749995470046997,
0.1408248096704483,
0.1457120031118393,
0.14966727793216705,
-0.3840329051017761,
0.21969905495643616,
-0.28687265515327454,
-0.09419933706521988,
-0.20591455698013306,
0.1303630918264389,
0.31816551089286804,
-0.28376132249832153,
0.17290399968624115,
0.4548778831958771,
0.3350805640220642,
0.3565506637096405,
-0.09203003346920013,
-0.2812871038913727,
0.09751807898283005,
0.02024124376475811,
-0.03557433560490608,
-0.16898739337921143,
0.08088191598653793,
0.024250751361250877,
0.0017578750848770142,
0.3426402807235718,
0.23810593783855438,
0.08909279108047485,
0.05937545374035835,
-0.04458871856331825,
0.7067672610282898,
-0.22517706453800201,
0.4917103946208954,
0.5061524510383606,
0.2745918929576874,
0.35428592562675476,
0.511049747467041,
0.05529564991593361,
-0.06223640963435173,
0.8159396052360535,
0.11310026049613953,
0.23017574846744537,
0.5932111144065857,
0.060090504586696625,
-0.3401618003845215,
-0.4667786955833435,
0.24983416497707367,
0.1751910001039505,
-0.4075566530227661,
0.5800358653068542,
0.3924192190170288,
0.18852704763412476,
-0.36391445994377136,
0.033920083194971085,
-0.35511794686317444,
-0.12396648526191711,
-0.1373889148235321,
-0.41928672790527344,
0.2092297077178955,
-0.11279184371232986,
0.10460595041513443,
0.15036636590957642,
-0.2593221068382263,
0.1763901263475418,
0.28750836849212646,
-0.032424576580524445,
0.006604733876883984,
-0.452335387468338,
0.12761355936527252,
-0.2387903779745102,
0.4864199757575989,
-0.16913583874702454,
0.07768856734037399,
-0.053155701607465744,
-0.024833880364894867,
0.48443087935447693,
-0.28877922892570496,
0.3032096028327942,
0.2217225879430771,
0.3409118056297302,
-0.22142398357391357,
-0.05863633006811142,
-0.04335135594010353,
0.008881411515176296,
0.2829448878765106,
0.1242278441786766,
-0.009837730787694454,
0.16090744733810425,
0.07168438285589218,
-0.01477732416242361,
0.5873548984527588,
0.40303248167037964,
0.24359892308712006,
-0.5450231432914734,
-0.3061104714870453,
0.027220716699957848,
-0.006769879721105099,
-0.2705371677875519,
-0.05044493079185486,
-0.04047277569770813,
0.05607036501169205,
0.23880510032176971,
0.03503676876425743,
0.2924751341342926,
0.19016121327877045,
0.010531799867749214,
0.2531070113182068,
0.21734043955802917,
0.20026645064353943,
-0.08036350458860397,
-0.1816767454147339,
0.20829932391643524,
-0.8221272230148315,
0.011259430088102818,
0.24409295618534088,
0.17125527560710907,
-0.004007264506071806,
0.0789775550365448,
-0.02879597619175911,
0.008964919485151768,
0.19125229120254517,
0.026827482506632805,
0.29030323028564453,
0.36981770396232605,
-0.02276398055255413,
-0.32773229479789734,
0.07980204373598099,
-0.13645213842391968,
-0.1759258657693863,
-0.34696006774902344,
0.13302569091320038,
0.2561321556568146,
-0.10769035667181015,
-0.1383015215396881,
0.043850865215063095,
0.20255818963050842,
0.35480451583862305,
0.33986982703208923,
-0.030731426551938057,
0.47659701108932495,
0.01618790812790394,
0.13224898278713226,
-0.19900602102279663,
-0.08620893955230713,
-0.24325978755950928,
0.08141367882490158,
0.06013145670294762,
0.1108941063284874,
-0.31562674045562744,
0.06905217468738556,
0.058765608817338943,
0.3522511124610901,
0.17136888206005096,
-0.06995875388383865,
-0.3251212239265442,
-0.1448877602815628,
-0.18753385543823242,
0.058778274804353714,
0.03324195370078087,
0.31848639249801636,
0.036531418561935425,
0.3696569800376892,
0.1352798193693161,
-0.19239625334739685,
0.10589825361967087,
-0.20282183587551117,
-0.16243109107017517,
0.09014805406332016,
0.22838068008422852,
0.047042448073625565,
-0.07384917140007019,
-0.32138368487358093,
0.04975609481334686,
0.4919184744358063,
-0.2325769066810608,
-0.14988866448402405,
0.1395069658756256,
-0.08851256966590881,
0.12349101155996323,
-0.2168569266796112,
0.47107404470443726,
0.327269047498703,
-0.31446927785873413,
-0.05520083010196686,
-0.2917201519012451
] |
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.47093093395233154,
-0.3086605370044708,
-0.20458826422691345,
0.02824402041733265,
-0.16148467361927032,
-0.059889499098062515,
0.4274543821811676,
0.19549806416034698,
-0.14402242004871368,
0.5090811252593994,
0.03531137481331825,
0.21855528652668,
0.10202663391828537,
0.5340998768806458,
0.014690518379211426,
-0.006240056827664375,
0.06256142258644104,
0.10214482247829437,
-0.04883633181452751,
0.25745177268981934,
-0.09315330535173416,
-0.06052987277507782,
0.0501902736723423,
0.037635527551174164,
-0.056634217500686646,
0.11426906287670135,
-0.06594401597976685,
-0.29182320833206177,
0.25815343856811523,
-0.643638014793396,
-0.07053188979625702,
0.43153470754623413,
0.14794623851776123,
0.2352977693080902,
-0.00010873573046410456,
0.04007665440440178,
0.4632192850112915,
0.18365776538848877,
-0.11908447742462158,
0.04787314310669899,
-0.39923620223999023,
-0.4790295958518982,
0.16566744446754456,
-0.5045088529586792,
0.24798163771629333,
-0.017050860449671745,
0.34799498319625854,
-0.23149925470352173,
0.15357209742069244,
-0.08394374698400497,
0.22328753769397736,
0.2877655327320099,
-0.45920342206954956,
0.020286357030272484,
0.1309508979320526,
-0.15442350506782532,
-0.03519419953227043,
-0.2405850887298584,
0.4689828157424927,
0.3584710955619812,
-0.3671168386936188,
0.3515622317790985,
0.034040797501802444,
0.19146272540092468,
0.023628806695342064,
0.1282079815864563,
0.6972886919975281,
-0.43597570061683655,
0.0484609492123127,
0.20736290514469147,
0.10459046065807343,
-0.2849715054035187,
-0.0844794511795044,
-0.3046000599861145,
-0.19385512173175812,
-0.20563574135303497,
-0.4532281756401062,
0.1575135737657547,
0.06477075070142746,
0.017803654074668884,
-0.6200436949729919,
0.11196369677782059,
-0.14703546464443207,
-0.18408554792404175,
0.10844814032316208,
0.006743365898728371,
0.02649741619825363,
0.46495553851127625,
-0.011411677114665508,
0.45187193155288696,
-0.0388086773455143,
-0.20273727178573608,
0.1169733852148056,
-0.21375368535518646,
-0.24112075567245483,
0.034687235951423645,
0.15445232391357422,
0.054725341498851776,
0.028869615867733955,
0.051692262291908264,
-0.09680034965276718,
0.17495675384998322,
0.19146740436553955,
0.23140734434127808,
0.27657487988471985,
-0.26189491152763367,
0.4729352593421936,
-0.17039290070533752,
0.2630070149898529,
-0.2552235722541809,
0.046989019960165024,
0.12408709526062012,
0.29003971815109253,
-0.09271487593650818,
0.16856002807617188,
0.20869648456573486,
-0.24254290759563446,
-0.16157670319080353,
0.009421883150935173,
0.0010093562304973602,
0.29048314690589905,
-0.2892685830593109,
0.028568420559167862,
0.30512818694114685,
0.11490028351545334,
0.021819502115249634,
-0.35116466879844666,
-0.022973116487264633,
-0.049599964171648026,
-0.1967032253742218,
-0.1722453087568283,
-0.16540007293224335,
-0.2894492745399475,
0.21832500398159027,
-0.2506633698940277,
-0.07417241483926773,
0.081444151699543,
-0.15434704720973969,
-0.038642238825559616,
0.2655334770679474,
0.1757422387599945,
-0.33961227536201477,
0.30548956990242004,
0.14198261499404907,
0.0801868587732315,
0.20013673603534698,
0.04969591274857521,
0.2786526083946228,
-0.2928564250469208,
0.2514975368976593,
0.022902358323335648,
-0.2703840136528015,
0.10729163885116577,
0.15757061541080475,
-0.1535099893808365,
0.2138030081987381,
-0.4039468765258789,
0.5481809973716736,
0.09174969792366028,
-0.30253738164901733,
-0.12660329043865204,
-0.04885398596525192,
-0.6243526935577393,
-0.27125537395477295,
0.04058874770998955,
0.1322113573551178,
-0.24167150259017944,
-0.07137029618024826,
-0.016046671196818352,
-0.4697975218296051,
0.30070048570632935,
0.11413080990314484,
-0.21791695058345795,
-0.1464216560125351,
-0.08741916716098785,
0.3367353081703186,
0.07425987720489502,
-0.3036816716194153,
-0.263902872800827,
0.3852696120738983,
-0.0571712888777256,
-0.2511281669139862,
0.4734431207180023,
0.27635639905929565,
0.370432049036026,
-0.30245763063430786,
-0.3997047543525696,
-0.09854589402675629,
-0.22688165307044983,
0.11779662221670151,
-0.059659361839294434,
-0.08235856145620346,
-0.0747477188706398,
0.1807522177696228,
0.0954393669962883,
0.05631038174033165,
0.28518548607826233,
-0.5802689790725708,
0.5668186545372009,
-0.012318845838308334,
0.3039402663707733,
-0.0066163381561636925,
0.0904613584280014,
-0.27830126881599426,
-0.16800685226917267,
-0.07360568642616272,
-0.1742735654115677,
0.3511589765548706,
-0.3102016746997833,
-0.13349147140979767,
0.16532394289970398,
-0.18943753838539124,
0.1740194857120514,
-0.040467653423547745,
0.1339491456747055,
0.09837129712104797,
0.09378248453140259,
0.09879583865404129,
0.08791068196296692,
-0.2542566955089569,
-0.07608334720134735,
0.23113951086997986,
-0.4155818521976471,
-0.4498783349990845,
-0.1657537817955017,
0.27486851811408997,
0.10725916922092438,
-0.10883019119501114,
-0.014529582113027573,
-0.10649075359106064,
-0.10936787724494934,
-0.045053187757730484,
0.10981142520904541,
0.1773904412984848,
-0.06536786258220673,
0.30827009677886963,
0.09069329500198364,
0.3370722234249115,
0.18317192792892456,
0.03368184342980385,
-0.06479515135288239,
-0.21319085359573364,
-0.04648304358124733,
-0.13567785918712616,
-0.05778070166707039,
0.12186310440301895,
0.07213623821735382,
0.2871171534061432,
0.1541024148464203,
-0.10595957934856415,
0.08302447199821472,
0.100043885409832,
-0.29722970724105835,
-0.23676806688308716,
0.11991073191165924,
0.4398561418056488,
0.20850037038326263,
-0.16577690839767456,
-0.09680914878845215,
0.4711032211780548,
0.680850625038147,
0.10805778205394745,
-0.3228968381881714,
0.07449779659509659,
-0.06574665755033493,
-0.09530959278345108,
0.3842849135398865,
0.29834675788879395,
0.40659070014953613,
0.42766034603118896,
0.24520576000213623,
-0.08138597756624222,
-0.16074137389659882,
-0.1940167397260666,
-0.12505416572093964,
-0.015006916597485542,
0.0925908163189888,
-0.07296085357666016,
-0.03376524895429611,
-0.29096508026123047,
-0.06887456774711609,
-0.4779722988605499,
0.06243784725666046,
-0.01201438345015049,
0.05654903128743172,
-0.18401707708835602,
-0.10281869769096375,
-0.10754331201314926,
-0.1546379178762436,
0.07555658370256424,
0.2769266366958618,
-0.3682200014591217,
0.08868429809808731,
0.30045390129089355,
-0.1737614870071411,
0.15896311402320862,
0.3338921070098877,
-0.03822334110736847,
-0.13839459419250488,
0.48877575993537903,
-0.3873392641544342,
-0.33653175830841064,
-0.028308777138590813,
0.06089867651462555,
0.025571687147021294,
0.19210372865200043,
0.40162038803100586,
-0.1541723906993866,
0.028647510334849358,
-0.5659893155097961,
0.18811683356761932,
0.010037262924015522,
-0.23159462213516235,
0.07404614239931107,
-0.15196236968040466,
0.05041306093335152,
-0.1466161608695984,
0.13710914552211761,
0.19283205270767212,
-0.4140229821205139,
-0.0366276390850544,
-0.1570468693971634,
-0.08455287665128708,
-0.24587629735469818,
-0.09156271815299988,
0.046540286391973495,
-0.5235554575920105,
-0.35260605812072754,
0.1706468164920807,
-0.017666054889559746,
0.3490065932273865,
-0.3921489417552948,
-0.21205203235149384,
0.2525130808353424,
0.10368134081363678,
-0.06001115217804909,
-0.15422379970550537,
-0.473819375038147,
-0.14032317698001862,
-0.04145446792244911,
-0.24892285466194153,
-0.07445273548364639,
0.18323706090450287,
-0.06846814602613449,
0.18456746637821198,
-0.33506256341934204,
-0.14032359421253204,
-0.30389535427093506,
0.2524102032184601,
0.21479196846485138,
0.24226079881191254,
0.32340291142463684,
-0.03318226709961891,
-0.17204073071479797,
0.037523601204156876,
-0.10580219328403473,
0.14403323829174042,
0.020856723189353943,
0.005009667947888374,
-0.09789241850376129,
0.13405562937259674,
0.029406476765871048,
0.5478229522705078,
0.43784424662590027,
-0.3881170451641083,
0.03920360282063484,
-0.187110036611557,
0.048157576471567154,
-0.01917555369436741,
0.07732019573450089,
0.1866522580385208,
-0.15983586013317108,
-0.08331011980772018,
0.2705335021018982,
-0.10765179246664047,
-0.19352681934833527,
0.03533651679754257,
0.2834669351577759,
-0.09699780493974686,
-0.1716633290052414,
-0.09664824604988098,
0.12327627837657928,
0.22395333647727966,
-0.04677543789148331,
0.02590477652847767,
-0.045124027878046036,
-0.051088761538267136,
-0.3012230396270752,
0.06004220247268677,
0.35484009981155396,
-0.1982383280992508,
-0.14055685698986053,
-0.15633420646190643,
-0.7523565888404846,
0.39452049136161804,
0.17897936701774597,
-0.2582482397556305,
-0.057714611291885376,
-0.058194056153297424,
0.04752830043435097,
-0.001305827870965004,
0.4540848135948181,
-0.2986178994178772,
-0.13087214529514313,
0.029029645025730133,
-0.29051822423934937,
-0.1905003935098648,
-0.10941949486732483,
-0.2077120542526245,
0.3212670385837555,
0.191955104470253,
0.11718001216650009,
-0.25326335430145264,
-0.09527375549077988,
0.03923686221241951,
0.09102113544940948,
-0.13953004777431488,
-0.3234473764896393,
-0.3122166395187378,
0.028011379763484,
-0.09520936757326126,
0.1391063779592514,
-0.20674936473369598,
-0.17811201512813568,
-0.37505844235420227,
-0.421489417552948,
0.17318467795848846,
0.03661103546619415,
-0.06594948470592499,
0.2938275635242462,
0.01065025944262743,
0.1366572231054306,
0.1566677987575531,
-0.0006715910858474672,
0.37396666407585144,
0.23078222572803497,
-0.005461677443236113,
-0.03720187023282051,
0.08807098120450974,
0.33765709400177,
-0.25170621275901794,
0.19927898049354553,
0.22135041654109955,
0.13502061367034912,
0.22462795674800873,
0.20697465538978577,
0.35902801156044006,
-0.17917220294475555,
-0.04345298558473587,
-0.05445753037929535,
0.17700046300888062,
-0.3458552658557892,
-0.15470091998577118,
0.35909906029701233,
0.2664080262184143,
-0.1463780701160431,
0.3667650520801544,
-0.4146934449672699,
-0.09738047420978546,
-0.08469419926404953,
0.006729844491928816,
0.6404381394386292,
-0.6624413728713989,
-0.0012042539892718196,
-0.06478210538625717,
-0.09512762725353241,
0.20845071971416473,
0.13659492135047913,
0.08114222437143326,
-0.5132693648338318,
-0.3465445041656494,
0.05874010920524597,
-0.08034413307905197,
0.177193284034729,
0.30148011445999146,
-0.4407893717288971,
0.10533347725868225,
0.3916265666484833,
0.0018316146451979876,
-0.29046961665153503,
0.10661526769399643,
0.19121304154396057,
-0.07433214038610458,
-0.25163090229034424,
0.14223605394363403,
0.013302904553711414,
-0.38694390654563904,
-0.14045293629169464,
0.11095688492059708,
0.15915705263614655,
0.05762512981891632,
-0.07794848084449768,
-0.2499791383743286,
0.2778434157371521,
0.2395843118429184,
-0.195053830742836,
-0.2763396203517914,
-0.1448335349559784,
0.23403006792068481,
0.0931277647614479,
-0.22617393732070923,
-0.04858703538775444,
-0.05282031372189522,
0.11965542286634445,
0.2626810371875763,
-0.014998434111475945,
-0.23817536234855652,
-0.022377358749508858,
-0.16480249166488647,
-0.39572760462760925,
0.4399859309196472,
0.010797146707773209,
-0.5087301731109619,
-0.09262938052415848,
0.4703204929828644,
0.2749842405319214,
0.2117154449224472,
0.2134135216474533,
0.38437703251838684,
-0.4483100473880768,
-0.12383171170949936,
0.09012292325496674,
0.36546215415000916,
-0.31998881697654724,
0.6993054151535034,
-0.13035304844379425,
-0.3771055340766907,
-0.15306201577186584,
0.05311083793640137,
0.1262800395488739,
0.21085315942764282,
-0.2507435083389282,
0.07405782490968704,
-0.12650901079177856,
-0.21787138283252716,
-0.03596189618110657,
-0.013228812254965305,
0.06124478951096535,
0.1062273308634758,
0.07048910856246948,
0.1761895716190338,
0.01995566301047802,
0.1330258548259735,
-0.03407740965485573,
0.2667895555496216,
-0.24239259958267212,
-0.10952473431825638,
-0.4801994264125824,
-0.019723189994692802,
-0.19436396658420563,
0.4233626425266266,
0.09784343838691711,
0.07014688849449158,
0.018503649160265923,
0.22614285349845886,
-0.37207597494125366,
-0.20113970339298248,
-0.3223802447319031,
0.38095933198928833,
0.06740027666091919,
0.05093632638454437,
-0.016547923907637596,
0.032688431441783905,
0.11334963887929916,
0.2673211693763733,
-0.5762635469436646,
-0.2781189978122711,
0.13319294154644012,
0.12799181044101715,
-0.145860493183136,
0.03979913517832756,
-0.1244826391339302,
0.25298207998275757,
-0.09802022576332092,
-0.1641075313091278,
0.2600606381893158,
0.26585495471954346,
-0.08766927570104599,
0.03918468579649925,
0.36128073930740356,
-0.027414310723543167,
-0.11879219859838486,
0.06022508069872856,
0.07273322343826294,
0.20294277369976044,
-0.268740177154541,
0.4438776671886444,
-0.06924112886190414,
-0.03696190193295479,
0.25275537371635437,
-0.07715902477502823,
0.43334826827049255,
0.31479889154434204,
-0.11647990345954895,
0.1425153762102127,
0.16907896101474762,
-0.13001962006092072,
0.6643266081809998,
0.23628000915050507,
0.05575567111372948,
-0.22991183400154114,
0.1429082304239273,
0.24282391369342804,
-0.00226609013043344,
0.07685303688049316,
0.4340238571166992,
-0.000596500642132014,
0.4263564646244049,
0.19699588418006897,
0.2532646358013153,
0.19681303203105927,
0.2387291043996811,
0.02224632166326046,
0.09092516452074051,
-0.42516738176345825,
-0.04522153362631798,
0.03766162693500519,
0.23567579686641693,
0.10962339490652084,
0.22343242168426514,
0.004612450487911701,
0.02347925864160061,
0.14426574110984802,
-0.03613058850169182,
0.629546046257019,
0.034219495952129364,
0.09638389199972153,
-0.12082718312740326,
0.10123492032289505,
-0.08833394199609756,
0.16871529817581177,
-0.48241090774536133,
0.008908359333872795,
0.15051807463169098,
0.3759702146053314,
-0.19675853848457336,
-0.061340466141700745,
-0.11191294342279434,
0.1956705003976822,
0.053794682025909424,
-0.17708715796470642,
-0.18099765479564667,
-0.03941497206687927,
0.08878207951784134,
0.19299635291099548,
0.1651940792798996,
0.24558889865875244,
0.6638801693916321,
0.1000954881310463,
0.24183817207813263,
-0.12807537615299225,
-0.09736508131027222,
-0.018021967262029648,
0.3237380087375641,
-0.15227162837982178,
-0.2086368054151535,
-0.14555387198925018,
0.09610738605260849,
0.1927005648612976,
0.004011271987110376,
0.09508024901151657,
0.03776441887021065,
-0.007585104089230299,
0.036620110273361206,
0.018071528524160385,
0.04395633190870285,
-0.2682686448097229,
-0.02914918214082718,
0.2027614563703537,
-0.13869035243988037,
0.39275670051574707,
0.1640307456254959,
-0.17082397639751434,
0.41044875979423523,
0.036322303116321564,
0.04484516382217407,
-0.2567977011203766,
0.34233132004737854,
0.022662760689854622,
-0.20438198745250702,
0.08779630064964294,
-0.1102413684129715,
-0.25308752059936523,
0.04329535365104675,
0.40339142084121704,
-0.5760536789894104,
0.08383104205131531,
-0.07250168919563293,
0.12384231388568878,
-0.2732955515384674,
0.441815048456192,
0.09094402194023132,
0.5844122767448425,
-0.2890387177467346,
-0.14793458580970764,
-0.24209043383598328,
0.08549817651510239,
0.05946202203631401,
0.02008989453315735,
-0.19618399441242218,
0.3414386510848999,
-0.03611898049712181,
0.4042432904243469,
0.49363869428634644,
-0.22184978425502777,
-0.17709554731845856,
0.30034318566322327,
-0.20155929028987885,
0.1698971837759018,
-0.1292445957660675,
-0.10512010008096695,
0.06819488853216171,
-0.2566549479961395,
0.20039334893226624,
0.09815338253974915,
0.17993895709514618,
0.030790025368332863,
0.059292618185281754,
0.3669610321521759,
0.016105271875858307,
0.49750444293022156,
0.0005671061226166785,
0.3057105839252472,
-0.2027687132358551,
0.13496023416519165,
0.010437681339681149,
0.0972573533654213,
-0.09234260767698288,
0.11355274170637131,
0.06888008862733841,
0.30029845237731934,
-0.21680450439453125,
0.21659712493419647,
-0.0770045667886734,
0.13118314743041992,
0.21746394038200378,
0.08487197011709213,
0.30087876319885254,
-0.10789556056261063,
0.019788052886724472,
0.03333939611911774,
-0.14274217188358307,
0.23044751584529877,
0.2945036292076111,
0.09493746608495712,
-0.07653722167015076,
0.09333397448062897,
0.16541512310504913,
-0.38141676783561707,
-0.22487986087799072,
-0.25066041946411133,
0.1779889017343521,
-0.2140321582555771,
-0.01644018292427063,
-0.28416958451271057,
-0.32231050729751587,
0.25793761014938354,
-0.13901080191135406,
-0.36975374817848206,
0.1706744283437729,
-0.06404910236597061,
-0.35406947135925293,
0.0441492460668087,
0.014203567989170551,
0.18255102634429932,
-0.24906237423419952,
-0.3193567097187042,
-0.48816999793052673
] |
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.2590155601501465,
-0.10657884925603867,
-0.03249143064022064,
0.07350939512252808,
0.39223039150238037,
-0.05880067124962807,
0.4731936454772949,
0.093922920525074,
0.1750781387090683,
-0.08836005628108978,
-0.21461884677410126,
0.16051805019378662,
0.2840965688228607,
0.14577534794807434,
-0.018838757649064064,
0.03485168516635895,
0.15054820477962494,
0.07911494374275208,
-0.29786795377731323,
0.044699665158987045,
-0.46034330129623413,
-0.06852064281702042,
-0.21547743678092957,
-0.18342536687850952,
0.1294442117214203,
0.16418874263763428,
0.16775541007518768,
0.18451838195323944,
-0.15036217868328094,
-0.433763712644577,
0.4201337993144989,
0.12276647239923477,
0.4481951892375946,
0.08255625516176224,
-0.0001264689490199089,
0.016151146963238716,
0.2499263733625412,
-0.3601170778274536,
-0.1838918924331665,
-0.33931976556777954,
-0.1870490461587906,
-0.24158772826194763,
0.23899559676647186,
-0.3605293929576874,
0.02531125582754612,
-0.16805808246135712,
0.0001141382017522119,
-0.12101759761571884,
0.16449584066867828,
0.3842562139034271,
0.10076844692230225,
0.07811597734689713,
-0.11884128302335739,
0.18531014025211334,
0.17741692066192627,
0.11410771310329437,
-0.05344541743397713,
0.4895189702510834,
0.3477606773376465,
0.25899484753608704,
0.09262266010046005,
0.005765436217188835,
-0.2732250690460205,
0.12779319286346436,
0.43412110209465027,
0.07340338081121445,
0.5844089984893799,
-0.20419345796108246,
-0.004430517088621855,
-0.033414579927921295,
0.8179605007171631,
-0.2546543478965759,
-0.15754899382591248,
-0.23351089656352997,
0.06086786463856697,
-0.3556729257106781,
0.18059809505939484,
0.0530938059091568,
-0.019708944484591484,
0.27295613288879395,
-0.3150651156902313,
-0.11126816272735596,
-0.010099160484969616,
0.349996954202652,
0.020417919382452965,
0.02671760879456997,
-0.19696709513664246,
0.34875622391700745,
0.29793548583984375,
0.04549942538142204,
0.25756141543388367,
-0.41738390922546387,
0.20509062707424164,
0.03378143534064293,
-0.33761119842529297,
0.12751184403896332,
-0.15200138092041016,
0.2336503118276596,
0.2249237596988678,
0.21091590821743011,
-0.1419796496629715,
-0.14023029804229736,
-0.061830177903175354,
0.040322091430425644,
0.2665916383266449,
0.06896355003118515,
0.15179675817489624,
-0.31563881039619446,
0.020187145099043846,
0.09330137819051743,
0.20164372026920319,
0.07865122705698013,
-0.019576257094740868,
-0.25221920013427734,
0.5681581497192383,
0.02034134231507778,
0.18905502557754517,
-0.10915116220712662,
-0.29520976543426514,
-0.15858879685401917,
-0.07162266969680786,
-0.11315768212080002,
-0.05821246653795242,
0.3231157958507538,
0.01631571166217327,
0.15566906332969666,
-0.12745589017868042,
0.4184003174304962,
-0.255909264087677,
-0.1300954967737198,
-0.008590728975832462,
-0.18586291372776031,
-0.21800975501537323,
-0.11998027563095093,
0.32018613815307617,
-0.292928546667099,
0.2597479224205017,
0.39040419459342957,
-0.1863557994365692,
-0.1730375587940216,
-0.04313183203339577,
-0.03478522226214409,
0.03287316486239433,
0.4530649483203888,
0.082974873483181,
0.20834441483020782,
0.21788707375526428,
-0.18035010993480682,
-0.028974231332540512,
0.5776112079620361,
-0.3491698205471039,
-0.4118048846721649,
0.036601707339286804,
0.05419065058231354,
-0.2928563952445984,
0.04506750404834747,
-0.3806697726249695,
0.11299169063568115,
0.06547251343727112,
-0.22870059311389923,
0.07572006434202194,
-0.31230035424232483,
-0.0028019926976412535,
-0.3451231122016907,
-0.04311247542500496,
0.7118008732795715,
-0.5010122656822205,
-0.008621864952147007,
-0.29068154096603394,
-0.2806808352470398,
0.37921831011772156,
0.009499926120042801,
-0.38523033261299133,
-0.008276555687189102,
-0.21399781107902527,
-0.15662363171577454,
0.4293202757835388,
-0.2520582377910614,
-0.5417472124099731,
0.2455402910709381,
-0.022125238552689552,
0.01831183210015297,
0.29908040165901184,
0.214167058467865,
0.1585574597120285,
-0.1784646213054657,
-0.18920671939849854,
0.20942902565002441,
0.07737643271684647,
0.14819622039794922,
-0.049961842596530914,
-0.23451146483421326,
0.2615918219089508,
0.045915745198726654,
-0.24539145827293396,
0.20215967297554016,
0.00018519634613767266,
-0.25197622179985046,
0.17417074739933014,
0.0604265034198761,
-0.13605670630931854,
0.014371105469763279,
0.10592518001794815,
0.1329716593027115,
-0.13861994445323944,
0.10034729540348053,
-0.7810968160629272,
-0.02196817472577095,
0.2704709768295288,
-0.28923165798187256,
-0.2882656455039978,
-0.11702241748571396,
-0.4807576537132263,
-0.14407892525196075,
-0.2776656746864319,
0.06870768219232559,
-0.04660145193338394,
0.22381070256233215,
0.1725720316171646,
-0.06345200538635254,
-0.10815715789794922,
0.24955244362354279,
-0.22506503760814667,
0.2756274938583374,
-0.009452289901673794,
0.2079647332429886,
0.08407092094421387,
-0.0544578954577446,
0.06709399074316025,
-0.31015545129776,
0.34401217103004456,
-0.20310547947883606,
-0.1752130389213562,
0.5737307071685791,
0.23453035950660706,
0.2890975773334503,
-0.5119717717170715,
0.05186397582292557,
0.18249866366386414,
0.15774205327033997,
-0.007913269102573395,
-0.09242831915616989,
0.23434323072433472,
0.041608776897192,
-0.21780772507190704,
0.1471986472606659,
-0.24132490158081055,
0.09720411896705627,
-0.17322410643100739,
-0.18123096227645874,
0.29721876978874207,
0.08286786079406738,
-0.11398939043283463,
-0.15725964307785034,
-0.1486053764820099,
0.11533908545970917,
0.2650652825832367,
0.18790800869464874,
-0.12278489023447037,
0.06798672676086426,
0.36527541279792786,
-0.2784503698348999,
0.14605319499969482,
0.12514784932136536,
-0.009435283951461315,
-0.2080770581960678,
0.3465997278690338,
0.1289147436618805,
0.6112674474716187,
0.06541860103607178,
-0.07544273138046265,
-0.06061756610870361,
-0.14425377547740936,
-0.23938868939876556,
0.4105066955089569,
-0.07999034970998764,
0.36191433668136597,
0.14317655563354492,
-0.004822971299290657,
-0.3801916539669037,
-0.44025111198425293,
0.20529653131961823,
0.3782947361469269,
0.24048736691474915,
-0.46430814266204834,
0.0005682589835487306,
-0.3054569363594055,
-0.16688531637191772,
-0.1141236200928688,
0.07884576916694641,
0.1046215072274208,
-0.19766999781131744,
-0.3108963072299957,
0.3138915002346039,
0.0799461081624031,
0.20381678640842438,
-0.23235933482646942,
-0.14955006539821625,
0.08189936727285385,
-0.700509786605835,
0.03143348544836044,
-0.0007050613057799637,
-0.3189249038696289,
-0.10028304159641266,
0.22164806723594666,
-0.19865375757217407,
0.1419193297624588,
-0.3100053071975708,
-0.002308022463694215,
-0.37429529428482056,
0.04588068649172783,
-0.020449114963412285,
0.05044513940811157,
0.2778349816799164,
0.011417776346206665,
0.36902308464050293,
0.002745371311903,
0.12715768814086914,
0.2017468810081482,
-0.021216562017798424,
0.0861169770359993,
0.14413374662399292,
-0.10749056935310364,
0.1517084687948227,
-0.12644781172275543,
-0.6500133872032166,
-0.2897946536540985,
-0.18770521879196167,
-0.1765020489692688,
0.02151833474636078,
-0.03080100007355213,
0.11519046872854233,
0.28685373067855835,
-0.18267522752285004,
0.11095935106277466,
0.13479456305503845,
-0.3872716426849365,
-0.13221655786037445,
0.46308428049087524,
0.12296435981988907,
-0.13890975713729858,
-0.09857002645730972,
-0.0331156961619854,
-0.016652338206768036,
0.3244386315345764,
-0.26265645027160645,
-0.25049281120300293,
-0.14540284872055054,
0.35905060172080994,
-0.05201635882258415,
0.3368942439556122,
0.29549843072891235,
0.027753274887800217,
0.1441575586795807,
-0.016933012753725052,
-0.233185812830925,
0.06011350825428963,
0.21779747307300568,
0.15770839154720306,
0.33075106143951416,
0.4238835275173187,
-0.17383643984794617,
0.48409503698349,
0.15315978229045868,
-0.0859377533197403,
0.3802889585494995,
-0.1445063203573227,
0.30862030386924744,
0.19561249017715454,
-0.14437167346477509,
-0.04711449518799782,
-0.16485726833343506,
0.02032427303493023,
0.23026101291179657,
-0.13984093070030212,
-0.1838412880897522,
-0.11843673884868622,
0.14282219111919403,
-0.5527739524841309,
-0.3069431781768799,
0.10332131385803223,
0.3018542230129242,
0.16914044320583344,
0.09406176954507828,
0.20615695416927338,
-0.11303059011697769,
-0.09550741314888,
-0.017524493858218193,
0.5914148688316345,
0.1602538824081421,
0.19240526854991913,
-0.10533196479082108,
0.15482337772846222,
-0.12934240698814392,
0.2942938804626465,
0.13010047376155853,
0.5032505393028259,
0.23390080034732819,
-0.004275183193385601,
0.12872788310050964,
-0.06333887577056885,
0.8413125276565552,
-0.15831688046455383,
0.18616773188114166,
0.033456433564424515,
0.3317713439464569,
-0.24363818764686584,
-0.16457153856754303,
-0.11173748224973679,
0.15014581382274628,
0.008176150731742382,
0.09725446254014969,
-0.38796648383140564,
-0.12284527719020844,
-0.053156524896621704,
0.43659189343452454,
-0.06595456600189209,
-0.44718167185783386,
-0.28415635228157043,
-0.4376524090766907,
-0.4462881088256836,
-0.03845180943608284,
0.017904723063111305,
0.05499974638223648,
-0.22494593262672424,
0.043670885264873505,
0.1634765863418579,
0.004229174926877022,
0.03849798068404198,
-0.02715243399143219,
0.11223025619983673,
0.15438449382781982,
-0.014882741495966911,
0.0019935299642384052,
-0.3943808376789093,
0.22641505300998688,
0.5883176326751709,
-0.21960461139678955,
-0.3321850895881653,
0.06615134328603745,
0.05489697307348251,
0.19203579425811768,
0.14935599267482758,
-0.2415282428264618,
-0.07675479352474213,
-0.1030726283788681,
-0.07920372486114502,
-0.14888523519039154,
0.04309426248073578,
0.26522985100746155,
-0.07539845257997513,
-0.11871681362390518,
-0.8903482556343079,
0.5784327387809753,
-0.08455745875835419,
-0.15090423822402954,
0.046740058809518814,
0.2526814937591553,
-0.139881432056427,
-0.08106517791748047,
0.07123490422964096,
0.7645348906517029,
-0.24462980031967163,
-0.02818761020898819,
0.33065396547317505,
-0.03130889683961868,
0.5819002985954285,
-0.2537861466407776,
0.12364113330841064,
-0.21661607921123505,
0.1507577747106552,
-0.023589085787534714,
-0.22886991500854492,
0.37938249111175537,
0.16728465259075165,
-0.11641044169664383,
0.4459978938102722,
-0.16711172461509705,
0.41171205043792725,
0.09367737919092178,
0.1271079182624817,
-0.35122862458229065,
-0.24830470979213715,
-0.2595975995063782,
0.027298273518681526,
-0.20732606947422028,
0.1427215337753296,
0.03145691007375717,
0.11566679924726486,
0.058483611792325974,
0.1598692685365677,
-0.045196015387773514,
-0.12123655527830124,
-0.2295788824558258,
0.0017905918648466468,
-0.3966819941997528,
-0.2720355987548828,
0.1914277970790863,
0.5301151275634766,
-0.014077208936214447,
-0.03484854847192764,
-0.0856882780790329,
0.03028913214802742,
0.04270750284194946,
0.17112189531326294,
-0.13912761211395264,
-0.06490281969308853,
0.3109392821788788,
0.09594537317752838,
-0.2223523110151291,
0.12402212619781494,
0.023286359384655952,
0.09393930435180664,
-0.035542357712984085,
-0.13132067024707794,
0.229287251830101,
-0.4811427593231201,
-0.5293101668357849,
-0.03533961996436119,
0.1185799241065979,
0.013694521971046925,
-0.03094106912612915,
-0.07695966958999634,
0.16653691232204437,
0.20454606413841248,
-0.32465294003486633,
-0.37082719802856445,
-0.2980581521987915,
0.34712186455726624,
0.110989511013031,
0.14812634885311127,
0.09712117910385132,
0.00011108275793958455,
-0.16152246296405792,
-0.0228977482765913,
0.09791194647550583,
-0.38648805022239685,
-0.4743145704269409,
0.11780590564012527,
0.08665237575769424,
0.2270769476890564,
-0.17685404419898987,
0.05749828740954399,
0.13416656851768494,
-0.07625219970941544,
0.05265242978930473,
-0.23327487707138062,
-0.2053670734167099,
-0.018345611169934273,
0.23043018579483032,
0.013168886303901672,
0.3149641156196594,
-0.1650412529706955,
0.11177626997232437,
-0.5403913259506226,
-0.15214641392230988,
0.006538311019539833,
0.2150779813528061,
0.12502358853816986,
0.1544853001832962,
0.17201706767082214,
-0.03643689304590225,
-0.1557387113571167,
-0.017851324751973152,
-0.028096431866288185,
-0.2507573962211609,
-0.09068918973207474,
-0.20759251713752747,
0.22642652690410614,
0.039130229502916336,
-0.19741669297218323,
-0.0468599759042263,
-0.4403030276298523,
-0.0294079277664423,
-0.17615437507629395,
0.2162545919418335,
0.20700356364250183,
-0.0021217092871665955,
0.14877592027187347,
-0.1941695213317871,
-0.11651107668876648,
-0.4289852976799011,
0.04318663105368614,
-0.29563358426094055,
0.2552611827850342,
0.20143184065818787,
0.24396756291389465,
0.07869476824998856,
0.03707153722643852,
-0.4545847177505493,
0.04013954475522041,
0.12466902285814285,
0.1746947467327118,
0.1457861214876175,
-0.21425361931324005,
0.27937495708465576,
0.02596033178269863,
0.23977918922901154,
0.5284753441810608,
-0.13798226416110992,
-0.1658489853143692,
0.16863508522510529,
0.042334605008363724,
-0.23247960209846497,
-0.0726400762796402,
-0.11315251886844635,
0.06835152953863144,
0.04217080399394035,
0.41528016328811646,
0.1428385227918625,
0.1111135333776474,
-0.03564426675438881,
-0.10071147233247757,
0.5492894649505615,
0.20587272942066193,
0.07877381145954132,
0.7013627290725708,
0.10590893030166626,
0.1620963215827942,
0.38122791051864624,
0.21468789875507355,
0.037531301379203796,
0.2751409113407135,
-0.0656055435538292,
0.08515728265047073,
0.13462506234645844,
0.19965653121471405,
-0.2870313227176666,
-0.5832771062850952,
0.31926411390304565,
0.4408169090747833,
-0.5928214192390442,
0.1920885592699051,
0.36970359086990356,
0.24824747443199158,
-0.22184155881404877,
-0.029781874269247055,
-0.21401363611221313,
0.1440790593624115,
-0.13566327095031738,
-0.31093287467956543,
-0.012405866757035255,
-0.3898657262325287,
-0.06710139662027359,
0.34563207626342773,
-0.3711062967777252,
-0.2835861146450043,
0.18457937240600586,
0.19337479770183563,
-0.07840889692306519,
-0.5394614934921265,
0.034295063465833664,
-0.020688191056251526,
0.23795950412750244,
-0.04951390624046326,
0.32129111886024475,
0.3100028932094574,
-0.03499734774231911,
0.13551387190818787,
-0.02803032658994198,
0.37149643898010254,
0.1949167549610138,
0.15086647868156433,
-0.22175870835781097,
0.26188045740127563,
0.08228836208581924,
-0.05708173289895058,
0.08753930777311325,
0.13702870905399323,
0.4188598692417145,
0.2379579395055771,
0.10065668076276779,
-0.04182121902704239,
0.0913759395480156,
0.20753127336502075,
-0.3471575081348419,
-0.3320118486881256,
0.0766511857509613,
-0.0371059812605381,
0.031249331310391426,
0.06645701080560684,
0.08595404773950577,
-0.17042583227157593,
-0.0716073140501976,
0.37738341093063354,
0.022316403687000275,
0.17771634459495544,
0.016767583787441254,
0.017400629818439484,
0.06801744550466537,
0.1567424237728119,
-0.04320517182350159,
-0.055234625935554504,
-0.35182106494903564,
0.21305589377880096,
-0.7748299241065979,
-0.17374636232852936,
-0.010704330168664455,
-0.2574956715106964,
0.14453521370887756,
-0.0978594422340393,
0.0943775475025177,
0.448542058467865,
0.12371554225683212,
-0.0018750816816464067,
0.4510880410671234,
0.28339236974716187,
0.2019161731004715,
-0.37250107526779175,
-0.02479780837893486,
0.019997650757431984,
-0.22118160128593445,
-0.5889334678649902,
0.2781897485256195,
-0.23344315588474274,
-0.046106163412332535,
-0.39800602197647095,
0.093954898416996,
0.3640524446964264,
-0.03531390056014061,
0.5893184542655945,
0.06438131630420685,
0.45320606231689453,
0.0070295268669724464,
0.05864238366484642,
0.1992732137441635,
0.2542237639427185,
-0.026267368346452713,
-0.007323612459003925,
-0.2787485718727112,
0.23735542595386505,
-0.27134162187576294,
0.20704776048660278,
-0.27452486753463745,
0.23981167376041412,
0.2244437038898468,
0.021467341110110283,
-0.2905827462673187,
-0.05231371521949768,
-0.13263164460659027,
-0.3739036023616791,
0.013993855565786362,
0.31036141514778137,
-0.11225516349077225,
0.45732495188713074,
-0.12656205892562866,
-0.14733140170574188,
0.38813260197639465,
-0.04940894618630409,
-0.1769433319568634,
0.08290595561265945,
0.1278463900089264,
0.3624182939529419,
0.18840759992599487,
-0.43188685178756714,
0.312740296125412,
0.31881511211395264,
-0.22380812466144562,
-0.38386526703834534,
0.4087831377983093,
-0.23514391481876373,
0.09646078199148178,
-0.03783217445015907,
0.4400513470172882,
0.13027308881282806,
-0.3078213334083557,
0.018647534772753716,
-0.29987913370132446
] |
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.2571394145488739,
-0.2127031683921814,
-0.04023990407586098,
0.16301517188549042,
0.4040104150772095,
-0.06867995113134384,
0.4393959045410156,
0.09292466193437576,
0.2167058140039444,
-0.08138319849967957,
-0.20335009694099426,
0.1510447859764099,
0.28904345631599426,
0.21887513995170593,
-0.04755595698952675,
-0.04348819702863693,
0.17236362397670746,
0.06637538969516754,
-0.3534502685070038,
0.058845262974500656,
-0.43809249997138977,
-0.021516447886824608,
-0.2259061634540558,
-0.20404110848903656,
0.11863594502210617,
0.11697239428758621,
0.14790035784244537,
0.15899017453193665,
-0.1337801218032837,
-0.3780210316181183,
0.38890746235847473,
0.05315675213932991,
0.43695661425590515,
0.025336196646094322,
-0.00012535294808913022,
0.009091762825846672,
0.21515293419361115,
-0.36842286586761475,
-0.16903996467590332,
-0.2970290184020996,
-0.1894734501838684,
-0.2959616482257843,
0.29581335186958313,
-0.39045748114585876,
0.022786691784858704,
-0.16935373842716217,
-0.04713594540953636,
-0.07683669775724411,
0.14609317481517792,
0.36175698041915894,
0.11437557637691498,
0.15776939690113068,
-0.0766456127166748,
0.1977396458387375,
0.2081691324710846,
0.09308859705924988,
-0.08684128522872925,
0.3931901156902313,
0.32266032695770264,
0.29788950085639954,
0.18514381349086761,
0.046410493552684784,
-0.3264558017253876,
0.09015928208827972,
0.43449637293815613,
0.08265650272369385,
0.5438581109046936,
-0.23512883484363556,
0.012047294527292252,
-0.04554325342178345,
0.7830665111541748,
-0.14293424785137177,
-0.12577132880687714,
-0.2601626217365265,
-0.00800167303532362,
-0.35585111379623413,
0.18298599123954773,
0.05125102400779724,
0.027959156781435013,
0.2612245976924896,
-0.3293588161468506,
-0.06174293905496597,
-0.004001816269010305,
0.35070469975471497,
-0.01631365530192852,
-0.003729752032086253,
-0.19912587106227875,
0.3501983880996704,
0.27800607681274414,
0.025190234184265137,
0.1337105929851532,
-0.4628356993198395,
0.1859646588563919,
0.055159348994493484,
-0.3747675120830536,
0.11971275508403778,
-0.11016266793012619,
0.22702883183956146,
0.21343894302845,
0.2350177764892578,
-0.1731290966272354,
-0.10566455125808716,
-0.07903843373060226,
0.05438759922981262,
0.33052167296409607,
0.1084478422999382,
0.0923047810792923,
-0.30736008286476135,
-0.015913499519228935,
0.07505606859922409,
0.1939515322446823,
0.04558814316987991,
-0.007097559981048107,
-0.20977038145065308,
0.5614816546440125,
-0.01003444753587246,
0.21208861470222473,
-0.15575949847698212,
-0.2577976882457733,
-0.11930577456951141,
-0.10155190527439117,
-0.009343894198536873,
-0.04178284481167793,
0.34877273440361023,
-0.02123594842851162,
0.1670534461736679,
-0.11753376573324203,
0.4232867658138275,
-0.2588961720466614,
-0.10442087054252625,
-0.026805482804775238,
-0.16922305524349213,
-0.10966721922159195,
-0.17697279155254364,
0.30577734112739563,
-0.2919174134731293,
0.29439765214920044,
0.3564920425415039,
-0.18965107202529907,
-0.19255001842975616,
-0.03821466118097305,
-0.09223766624927521,
-0.009829290211200714,
0.4289131164550781,
0.10953400284051895,
0.22182710468769073,
0.24283389747142792,
-0.11805348843336105,
-0.04411710053682327,
0.5599560141563416,
-0.34102940559387207,
-0.4236624836921692,
0.0073515442200005054,
0.07346682995557785,
-0.3567694127559662,
0.01916414499282837,
-0.3555150330066681,
0.12277133017778397,
0.03275848552584648,
-0.2373165637254715,
0.08378134667873383,
-0.3370424509048462,
-0.07874517142772675,
-0.3249078691005707,
-0.03264026343822479,
0.6747345924377441,
-0.47086435556411743,
-0.014305924996733665,
-0.19251497089862823,
-0.25155600905418396,
0.3785534203052521,
0.07742299884557724,
-0.4031013250350952,
-0.040357619524002075,
-0.18708157539367676,
-0.09027479588985443,
0.4304100275039673,
-0.21989135444164276,
-0.539674699306488,
0.2700546681880951,
0.03501857817173004,
0.08908571302890778,
0.32541611790657043,
0.25781744718551636,
0.23941297829151154,
-0.15525472164154053,
-0.25092700123786926,
0.3023550808429718,
0.08931799978017807,
0.16308099031448364,
-0.11267491430044174,
-0.1849411129951477,
0.3365389108657837,
0.02099044807255268,
-0.2687707543373108,
0.2023790031671524,
-0.06389062106609344,
-0.2422066330909729,
0.17836371064186096,
0.024312958121299744,
-0.13160619139671326,
0.036118924617767334,
0.11874717473983765,
0.22865693271160126,
-0.1529632955789566,
0.06639925390481949,
-0.6884867548942566,
-0.03472667932510376,
0.2795579731464386,
-0.28239601850509644,
-0.2883075177669525,
-0.14025470614433289,
-0.4521227777004242,
-0.12107362598180771,
-0.3010736405849457,
0.08180788159370422,
-0.0375693179666996,
0.18257862329483032,
0.1832839995622635,
-0.03706162050366402,
-0.07296334207057953,
0.27517175674438477,
-0.1564927101135254,
0.24629662930965424,
-0.013304588384926319,
0.24975818395614624,
0.1108408197760582,
-0.07256817817687988,
0.1476348340511322,
-0.25711527466773987,
0.36470356583595276,
-0.21168217062950134,
-0.1865239292383194,
0.4816063642501831,
0.22140246629714966,
0.2470843642950058,
-0.5143999457359314,
0.06786173582077026,
0.19914403557777405,
0.1813843697309494,
0.0015186979435384274,
-0.03536562621593475,
0.28974294662475586,
0.0388440378010273,
-0.2861204147338867,
0.20311500132083893,
-0.18083812296390533,
0.10223991423845291,
-0.12566781044006348,
-0.16880348324775696,
0.3344345688819885,
0.09323003143072128,
-0.1076359748840332,
-0.12086383253335953,
-0.1085529699921608,
0.06650878489017487,
0.1763237863779068,
0.22632110118865967,
-0.25707727670669556,
0.11203386634588242,
0.3664934039115906,
-0.24650989472866058,
0.15775638818740845,
0.14055325090885162,
-0.018493324518203735,
-0.21180115640163422,
0.36600932478904724,
-0.03343840688467026,
0.5430466532707214,
0.079177126288414,
-0.06560613960027695,
-0.09242790937423706,
-0.09474137425422668,
-0.223243847489357,
0.43229955434799194,
-0.09017889201641083,
0.39306315779685974,
0.09282752871513367,
0.05671897903084755,
-0.3744747042655945,
-0.35991981625556946,
0.17013025283813477,
0.3153664469718933,
0.23947779834270477,
-0.47513332962989807,
0.035678133368492126,
-0.36083048582077026,
-0.24963602423667908,
-0.11424461752176285,
0.04895148053765297,
0.15255379676818848,
-0.2344694882631302,
-0.28814542293548584,
0.37705278396606445,
0.08802088350057602,
0.16813310980796814,
-0.26754018664360046,
-0.1980845332145691,
0.1541353166103363,
-0.7329844832420349,
0.08451394736766815,
0.034293096512556076,
-0.3322190046310425,
-0.09320783615112305,
0.21783626079559326,
-0.12197671830654144,
0.1280558705329895,
-0.23689086735248566,
-0.012910492718219757,
-0.3798917531967163,
0.05223343148827553,
-0.01855388656258583,
0.02846747823059559,
0.25873836874961853,
-0.0064338743686676025,
0.41165411472320557,
0.002828567521646619,
0.15282779932022095,
0.2606508433818817,
0.04938522353768349,
0.1308383047580719,
0.2404663860797882,
-0.07965777069330215,
0.09121771901845932,
-0.10801342874765396,
-0.6392261385917664,
-0.32087844610214233,
-0.1806238740682602,
-0.1476212590932846,
0.06522154808044434,
-0.025094380602240562,
0.06461836397647858,
0.3264109492301941,
-0.1983589231967926,
0.12416908890008926,
0.10981713980436325,
-0.3587360084056854,
-0.06886964291334152,
0.5512463450431824,
0.13373079895973206,
-0.16829563677310944,
-0.06229091063141823,
0.013462702743709087,
-0.0581243596971035,
0.2615853548049927,
-0.27851012349128723,
-0.2853080630302429,
-0.1439533680677414,
0.45261654257774353,
-0.06601817160844803,
0.2976061701774597,
0.28481996059417725,
-0.01807568594813347,
0.14272157847881317,
0.020697878673672676,
-0.1765645295381546,
0.057862769812345505,
0.18874269723892212,
0.1285848766565323,
0.2652296721935272,
0.40684375166893005,
-0.19231510162353516,
0.45218148827552795,
0.12337367981672287,
-0.0381089448928833,
0.39272651076316833,
-0.1760505586862564,
0.2472156435251236,
0.12350241094827652,
-0.13279059529304504,
-0.06384436786174774,
-0.20238719880580902,
-0.014362204819917679,
0.2485176920890808,
-0.1247897669672966,
-0.2157241404056549,
-0.11859306693077087,
0.11081720888614655,
-0.5693225264549255,
-0.2923107445240021,
0.15482626855373383,
0.3429583013057709,
0.21717604994773865,
0.06427665799856186,
0.21869631111621857,
-0.11939182132482529,
-0.12515078485012054,
-0.026850741356611252,
0.6019416451454163,
0.16778337955474854,
0.19664114713668823,
-0.17997664213180542,
0.09772984683513641,
-0.11799582839012146,
0.28935933113098145,
0.08466247469186783,
0.5040070414543152,
0.20426495373249054,
-0.013495784252882004,
0.09571520239114761,
-0.07430322468280792,
0.8621496558189392,
-0.0778501033782959,
0.23062220215797424,
0.01692250929772854,
0.23692625761032104,
-0.3040499687194824,
-0.19772323966026306,
-0.14892685413360596,
0.13297030329704285,
-0.01910197176039219,
0.15183648467063904,
-0.3600398600101471,
-0.12502051889896393,
-0.04370908811688423,
0.47569337487220764,
-0.10133563727140427,
-0.4211810231208801,
-0.2916678488254547,
-0.43787458539009094,
-0.45402002334594727,
-0.05589275062084198,
0.012000620365142822,
0.07909111678600311,
-0.2337285429239273,
0.025492792949080467,
0.10005731135606766,
0.046521175652742386,
-0.0006263353861868382,
-0.0486605241894722,
0.15966714918613434,
0.08044343441724777,
0.03079373762011528,
-0.06061028689146042,
-0.38984769582748413,
0.13672766089439392,
0.5804676413536072,
-0.12316453456878662,
-0.4300062358379364,
0.07805405557155609,
0.00235228450037539,
0.1949390321969986,
0.12402724474668503,
-0.2761417627334595,
-0.023070203140378,
-0.05615599453449249,
-0.06129860132932663,
-0.1533518135547638,
-0.016971681267023087,
0.31362101435661316,
-0.006554012652486563,
-0.06391536444425583,
-0.8783693313598633,
0.590877115726471,
-0.047053638845682144,
-0.12281852960586548,
-0.06816083937883377,
0.19369567930698395,
-0.13710057735443115,
0.006852796301245689,
0.00883291382342577,
0.7403283715248108,
-0.14773890376091003,
-0.0234252717345953,
0.4106375575065613,
0.01652354560792446,
0.6323758363723755,
-0.25745922327041626,
0.1452033668756485,
-0.21999074518680573,
0.13685128092765808,
-0.05924437195062637,
-0.21234844624996185,
0.37201452255249023,
0.07886552810668945,
-0.15909777581691742,
0.4722999036312103,
-0.2580110728740692,
0.38431817293167114,
0.034920431673526764,
0.11493659764528275,
-0.2998351454734802,
-0.20171090960502625,
-0.29723966121673584,
0.0437285341322422,
-0.18080292642116547,
0.14415490627288818,
0.04897214472293854,
0.08813431113958359,
0.008886933326721191,
0.1423189491033554,
-0.0402461402118206,
-0.10511142760515213,
-0.21454770863056183,
0.002858506515622139,
-0.28288233280181885,
-0.2913125455379486,
0.1696639358997345,
0.4940200746059418,
-0.07292212545871735,
-0.027958424761891365,
-0.0893944725394249,
-0.03322726860642433,
0.026972396299242973,
0.1663256585597992,
-0.1406581848859787,
-0.042208828032016754,
0.25794267654418945,
0.040078867226839066,
-0.2443520575761795,
0.13007062673568726,
0.01046140305697918,
0.10886086523532867,
0.002422231948003173,
-0.18397530913352966,
0.1504511535167694,
-0.5237011909484863,
-0.6343914866447449,
-0.05058569833636284,
0.13043197989463806,
0.012820054776966572,
-0.013184908777475357,
-0.10370063036680222,
0.1341366320848465,
0.20799368619918823,
-0.2031949907541275,
-0.3364051282405853,
-0.3015030324459076,
0.32137444615364075,
0.07398524880409241,
0.2300238013267517,
0.10357709974050522,
0.09231220185756683,
-0.20060554146766663,
-0.020833639428019524,
0.071689173579216,
-0.3993089497089386,
-0.4469239413738251,
0.037994757294654846,
0.07482308894395828,
0.24943117797374725,
-0.2763232886791229,
0.1764596551656723,
0.12840592861175537,
-0.12199724465608597,
0.04915088415145874,
-0.3013526499271393,
-0.1138838678598404,
0.04687541350722313,
0.28388145565986633,
-0.0032974935602396727,
0.2612093389034271,
-0.15716016292572021,
0.09325084090232849,
-0.5119243264198303,
-0.16554762423038483,
-0.017133092507719994,
0.18857325613498688,
0.11455217003822327,
0.1965782195329666,
0.1997135877609253,
-0.030940841883420944,
-0.16148775815963745,
0.012044940143823624,
-0.023946085944771767,
-0.21946612000465393,
-0.10231389105319977,
-0.1890747994184494,
0.21986475586891174,
0.00479504931718111,
-0.2370147854089737,
-0.07815256714820862,
-0.4396766126155853,
-0.0063915131613612175,
-0.15084382891654968,
0.21341878175735474,
0.21148522198200226,
-0.022506434470415115,
0.11913327127695084,
-0.3444988429546356,
-0.13009673357009888,
-0.44446900486946106,
0.09514547139406204,
-0.2700435221195221,
0.2525140643119812,
0.21924762427806854,
0.2146097719669342,
0.119479700922966,
0.034609414637088776,
-0.45908790826797485,
0.02698778361082077,
0.06762038916349411,
0.1436438411474228,
0.17549386620521545,
-0.21413598954677582,
0.3252045512199402,
0.07047402858734131,
0.2229968011379242,
0.48454171419143677,
-0.13889360427856445,
-0.13314397633075714,
0.1473710834980011,
0.06260702759027481,
-0.2442159652709961,
-0.11622564494609833,
-0.09637311100959778,
0.05849889665842056,
0.02489679679274559,
0.4365079700946808,
0.2103259265422821,
0.13857604563236237,
-0.023262888193130493,
-0.09395148605108261,
0.5303487777709961,
0.23827210068702698,
0.05301401764154434,
0.5988234877586365,
0.037267766892910004,
0.12607935070991516,
0.33048394322395325,
0.20084714889526367,
0.024920940399169922,
0.2706524431705475,
-0.054968781769275665,
0.029416609555482864,
0.2067638486623764,
0.19666557013988495,
-0.2933323383331299,
-0.5684547424316406,
0.25253748893737793,
0.36390966176986694,
-0.6029015183448792,
0.19191452860832214,
0.3080989420413971,
0.3266708552837372,
-0.2500045597553253,
-0.04253522679209709,
-0.21191981434822083,
0.18077102303504944,
-0.1514454185962677,
-0.25731775164604187,
-0.030776815488934517,
-0.4313879907131195,
-0.13924458622932434,
0.3422459065914154,
-0.348572701215744,
-0.27526381611824036,
0.22151316702365875,
0.19239091873168945,
-0.06879690289497375,
-0.5239719152450562,
0.08204333484172821,
-0.010985313914716244,
0.2564550042152405,
-0.07441824674606323,
0.3178032636642456,
0.3104493319988251,
-0.025155816227197647,
0.12665627896785736,
-0.030223499983549118,
0.38323095440864563,
0.17358934879302979,
0.1232965812087059,
-0.2349729984998703,
0.20473314821720123,
0.05484990030527115,
-0.03124694898724556,
0.04431753233075142,
0.1425589770078659,
0.4424271285533905,
0.2582497000694275,
0.09869225323200226,
-0.04930157586932182,
0.19069120287895203,
0.16521106660366058,
-0.3828427195549011,
-0.3693990409374237,
0.08122596889734268,
-0.041244421154260635,
0.02111091837286949,
0.08206219226121902,
-0.019327988848090172,
-0.131955087184906,
-0.06093751639127731,
0.3863162100315094,
0.10330487042665482,
0.21836048364639282,
0.09377443045377731,
0.016457438468933105,
0.04545433446764946,
0.17788271605968475,
-0.08221263438463211,
-0.013113154098391533,
-0.35093772411346436,
0.26135560870170593,
-0.7569335103034973,
-0.17920273542404175,
-0.07207359373569489,
-0.3162716329097748,
0.2269177883863449,
-0.06807615607976913,
0.0832483321428299,
0.4920196235179901,
0.10159972310066223,
-0.07794338464736938,
0.4903148412704468,
0.2357797473669052,
0.16114355623722076,
-0.3786868453025818,
-0.04627170413732529,
0.05569201335310936,
-0.22311650216579437,
-0.5922365188598633,
0.3191399574279785,
-0.3066428005695343,
-0.005391993094235659,
-0.3925583064556122,
0.045530568808317184,
0.2697090208530426,
-0.08718342334032059,
0.5793070793151855,
0.08896412700414658,
0.49397146701812744,
0.006149638909846544,
0.08019706606864929,
0.2767910659313202,
0.2586168050765991,
-0.02106933481991291,
-0.007607552222907543,
-0.30246424674987793,
0.2936035096645355,
-0.2321774810552597,
0.2348773181438446,
-0.26244640350341797,
0.22843481600284576,
0.24931953847408295,
-0.0449305921792984,
-0.2544175982475281,
-0.06779444217681885,
-0.14882490038871765,
-0.3843575417995453,
0.029691679403185844,
0.34055018424987793,
-0.15505696833133698,
0.40024664998054504,
-0.11274386942386627,
-0.10970018804073334,
0.38594189286231995,
-0.009119123220443726,
-0.1762109249830246,
0.07426735013723373,
0.09393157064914703,
0.4447633624076843,
0.22569715976715088,
-0.4652256369590759,
0.2522888481616974,
0.31602808833122253,
-0.1756312996149063,
-0.34455209970474243,
0.3969542384147644,
-0.18295510113239288,
0.057050496339797974,
0.001905041397549212,
0.4485107958316803,
0.08474048227071762,
-0.30511969327926636,
0.011831996031105518,
-0.33021295070648193
] |
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.03164539858698845,
0.013758288696408272,
-0.2658604681491852,
0.011650614440441132,
-0.1261354684829712,
-0.1206699088215828,
0.08221059292554855,
0.31596657633781433,
0.38564616441726685,
0.15779148042201996,
0.0908186063170433,
0.4605908989906311,
-0.3150094747543335,
-0.063761867582798,
-0.09903521090745926,
-0.04761336371302605,
-0.05909783020615578,
0.15708202123641968,
-0.17229437828063965,
-0.13998059928417206,
-0.19904682040214539,
-0.15815207362174988,
-0.07543127238750458,
-0.14578141272068024,
0.17486608028411865,
-0.28729233145713806,
-0.23926033079624176,
-0.18797416985034943,
-0.3999475836753845,
-0.13628125190734863,
-0.03796277195215225,
0.6174533367156982,
-0.046214304864406586,
0.06466373056173325,
-0.0001012223947327584,
-0.16866804659366608,
0.2313545197248459,
0.08545584231615067,
-0.06845887005329132,
-0.04419860616326332,
-0.25377097725868225,
-0.12523046135902405,
0.20184797048568726,
-0.550976037979126,
-0.05841744691133499,
-0.27144482731819153,
0.42958447337150574,
-0.4214331805706024,
0.53932124376297,
-0.08562392741441727,
0.23027412593364716,
-0.05307283625006676,
-0.31062814593315125,
0.03659946471452713,
0.3807837963104248,
0.1583937406539917,
-0.05764693766832352,
-0.09533896297216415,
0.4525526463985443,
0.10183089971542358,
-0.12457722425460815,
0.29253268241882324,
-0.15593361854553223,
0.12635460495948792,
0.4784337282180786,
0.007892915047705173,
-0.4412192702293396,
-0.4262874722480774,
-0.15404801070690155,
0.060858819633722305,
0.5324352383613586,
-0.18613506853580475,
-0.22750991582870483,
-0.10354199260473251,
-0.056549832224845886,
-0.01256584282964468,
-0.24634528160095215,
-0.007995951920747757,
0.20703501999378204,
0.20989465713500977,
-0.21326015889644623,
-0.17709335684776306,
-0.23589473962783813,
0.25796377658843994,
0.2851656973361969,
0.023108989000320435,
0.049454465508461,
0.15780919790267944,
-0.06190682575106621,
-0.008835779502987862,
0.17754364013671875,
-0.16937696933746338,
-0.09159494936466217,
0.38311296701431274,
0.07383351027965546,
-0.25855013728141785,
0.15562580525875092,
0.06860624253749847,
0.30093929171562195,
0.3678820729255676,
0.4818529188632965,
0.2997097074985504,
-0.5404182076454163,
0.24872907996177673,
0.3010674715042114,
-0.1054355576634407,
-0.13936421275138855,
0.04961506277322769,
0.31605345010757446,
-0.07661112397909164,
0.08038660883903503,
0.016532938927412033,
0.1527780443429947,
0.17149046063423157,
0.14641079306602478,
-0.15038494765758514,
0.04395640268921852,
-0.06779571622610092,
0.14764711260795593,
-0.14414489269256592,
0.0641758069396019,
-0.17506591975688934,
-0.10251700133085251,
0.21553361415863037,
-0.1002134159207344,
0.14616619050502777,
0.14810355007648468,
-0.07221433520317078,
0.30963218212127686,
0.02576725371181965,
-0.08289925754070282,
-0.00795283354818821,
0.04904351755976677,
0.197721928358078,
0.14369648694992065,
0.15982656180858612,
0.09560679644346237,
0.10714321583509445,
-0.2972555458545685,
0.0631076917052269,
0.7239734530448914,
-0.2636156678199768,
0.43008100986480713,
-0.11514845490455627,
-0.1545204222202301,
-0.24657896161079407,
-0.17595556378364563,
0.20885878801345825,
-0.42142969369888306,
0.15691055357456207,
-0.42714932560920715,
-0.13431894779205322,
0.08972088992595673,
0.2743908762931824,
-0.07378458231687546,
0.03973683342337608,
-0.13179512321949005,
0.6621153950691223,
-0.027593977749347687,
-0.17645475268363953,
0.35856175422668457,
0.13507571816444397,
-0.2970655560493469,
-0.25603577494621277,
-0.1324668675661087,
0.38180574774742126,
0.01521733496338129,
-0.11528272181749344,
-0.07758010923862457,
0.0068320631980896,
-0.2633754014968872,
0.07679568976163864,
-0.3004281222820282,
0.2324621081352234,
-0.10321561992168427,
0.037917912006378174,
0.5653924345970154,
-0.4251791834831238,
-0.20097674429416656,
0.1914840191602707,
0.10127031803131104,
0.012179196812212467,
0.05662146955728531,
0.4613974690437317,
0.27026811242103577,
-0.07365331053733826,
0.11596698313951492,
0.280369371175766,
-0.01919933594763279,
-0.00637078657746315,
0.020087039098143578,
-0.5893144607543945,
0.04211259260773659,
0.2601277828216553,
0.01526700146496296,
0.032285504043102264,
0.2342325747013092,
-0.037520281970500946,
0.1960207223892212,
-0.17504358291625977,
0.08705605566501617,
-0.3264838755130768,
0.26518094539642334,
-0.03004602901637554,
-0.01830526627600193,
-0.2506522238254547,
-0.4685738682746887,
0.02886456809937954,
0.027826456353068352,
-0.017696263268589973,
0.09634636342525482,
-0.28503888845443726,
0.38956576585769653,
-0.14201945066452026,
-0.1039256677031517,
0.011963489465415478,
0.2112867683172226,
-0.07560689747333527,
-0.07675906270742416,
-0.049620069563388824,
-0.3771498501300812,
-0.018587829545140266,
0.008794054388999939,
0.00869547389447689,
-0.3124375343322754,
0.01760054938495159,
0.2360195368528366,
0.06823379546403885,
-0.11418735235929489,
-0.08415035903453827,
-0.20949098467826843,
-0.07322563230991364,
0.08059291541576385,
0.11306069791316986,
0.4026203453540802,
0.11988799273967743,
-0.008840780705213547,
0.38232743740081787,
0.33179032802581787,
-0.06531483680009842,
0.34230977296829224,
0.24783135950565338,
0.1485620141029358,
-0.09439403563737869,
-0.23612633347511292,
0.11998216807842255,
-0.24273864924907684,
0.08151919394731522,
-0.03342597186565399,
-0.14968565106391907,
0.24410146474838257,
-0.008107809349894524,
-0.3279363214969635,
-0.2521275281906128,
-0.0721689984202385,
0.2961580753326416,
0.38335034251213074,
-0.00397203303873539,
-0.09578194469213486,
0.050441302359104156,
0.27857547998428345,
-0.049142494797706604,
0.05624185875058174,
0.15285079181194305,
0.3605256676673889,
-0.09038549661636353,
0.23277515172958374,
0.04859011992812157,
0.3236721456050873,
0.2541419565677643,
-0.21837303042411804,
-0.0732036903500557,
0.2605609893798828,
0.01747274585068226,
0.09216202050447464,
0.17721131443977356,
0.19359341263771057,
-0.24234870076179504,
0.35410276055336,
0.16040220856666565,
-0.10928640514612198,
-0.6076213717460632,
0.12434321641921997,
-0.13857226073741913,
0.2387005090713501,
-0.09577026218175888,
0.0831853598356247,
-0.033987343311309814,
0.007448690477758646,
-0.14999184012413025,
0.06511428207159042,
0.01292222086340189,
0.25248533487319946,
-0.013021576218307018,
-0.46758922934532166,
0.002950974041596055,
-0.24626624584197998,
0.6607556343078613,
-0.23352757096290588,
-0.1446961760520935,
-0.29043737053871155,
-0.1868734061717987,
0.2194749116897583,
0.15334010124206543,
0.07636530697345734,
0.02477649785578251,
0.6802102327346802,
-0.04671824723482132,
-0.021089589223265648,
-0.24497514963150024,
-0.4454803168773651,
0.1895516812801361,
0.021903622895479202,
0.08366134017705917,
0.2553390562534332,
-0.26297861337661743,
0.1285717785358429,
-0.15772774815559387,
-0.008915739133954048,
-0.18068945407867432,
0.004598046652972698,
-0.46374401450157166,
-0.01397113036364317,
-0.016113707795739174,
-0.31696003675460815,
-0.07705886662006378,
-0.3230467736721039,
-0.5011575222015381,
0.43660300970077515,
0.16574260592460632,
0.3440570533275604,
-0.019195472821593285,
0.0011946875602006912,
0.0038695274852216244,
0.29629501700401306,
0.1945662647485733,
-0.20448972284793854,
-0.3378010094165802,
0.1303233951330185,
-0.3507658541202545,
-0.23187021911144257,
-0.26684918999671936,
-0.13795073330402374,
0.08264276385307312,
0.3081727921962738,
-0.41099223494529724,
-0.5004565119743347,
-0.10306701809167862,
0.36294272541999817,
0.11542140692472458,
0.004031637217849493,
0.1514192819595337,
0.3908301889896393,
-0.1510016769170761,
-0.06575306504964828,
-0.1858523190021515,
0.3007412254810333,
0.08459832519292831,
-0.3038173019886017,
0.49347174167633057,
0.005986230913549662,
-0.1796165257692337,
0.47372201085090637,
-0.061243414878845215,
-0.1227845624089241,
0.6362371444702148,
0.1666855812072754,
0.18692056834697723,
-0.16185322403907776,
-0.022069619968533516,
-0.12293439358472824,
0.015392610803246498,
-0.17324361205101013,
0.16899724304676056,
-0.014393256977200508,
-0.4332822263240814,
-0.210809126496315,
-0.08954494446516037,
-0.32042545080184937,
-0.12494738399982452,
0.1773780882358551,
-0.19271065294742584,
-0.17608463764190674,
-0.0012908591888844967,
0.07854148745536804,
-0.3619856834411621,
0.05558110028505325,
0.3197861611843109,
-0.08877064287662506,
0.3706778883934021,
-0.2170148640871048,
-0.23955440521240234,
0.07213591784238815,
-0.2971970736980438,
0.3878662884235382,
-0.015310624614357948,
-0.17794203758239746,
0.06739501655101776,
-0.18370626866817474,
-0.041526924818754196,
-0.21217527985572815,
0.37320420145988464,
-0.18100953102111816,
-0.28715065121650696,
-0.0875943973660469,
-0.25250276923179626,
0.09180186688899994,
0.23136717081069946,
-0.224819615483284,
-0.26914215087890625,
-0.13142132759094238,
0.5000826120376587,
-0.3117642104625702,
-0.030294522643089294,
0.0825476124882698,
-0.0228263009339571,
-0.11141778528690338,
-0.20347043871879578,
0.03986117243766785,
-0.2650546431541443,
-0.35580340027809143,
-0.23921431601047516,
-0.10076352953910828,
-0.2114698588848114,
0.1179206371307373,
-0.4718102812767029,
-0.2868668735027313,
0.23487992584705353,
-0.00009570259862812236,
0.18096980452537537,
0.08954424411058426,
-0.04556458070874214,
0.1941201239824295,
0.10560218244791031,
-0.044865932315588,
0.07047995924949646,
0.3506194055080414,
-0.44678065180778503,
-0.1341322809457779,
0.04755378141999245,
-0.04529319331049919,
0.00033567912760190666,
0.19735363125801086,
0.21778954565525055,
0.30833372473716736,
0.1552436202764511,
0.15540356934070587,
-0.4040934443473816,
0.16367505490779877,
0.22158415615558624,
-0.03037436120212078,
-0.2600878179073334,
-0.8813298344612122,
0.4342656433582306,
0.19391685724258423,
-0.3777367174625397,
0.5089744329452515,
-0.2627510130405426,
-0.32868707180023193,
0.5772543549537659,
0.40834978222846985,
0.8184033036231995,
-0.09833715856075287,
0.17168602347373962,
0.012232384644448757,
-0.18364831805229187,
0.7522252798080444,
-0.047268062829971313,
-0.011885819025337696,
-0.22001883387565613,
-0.18309833109378815,
-0.04962319880723953,
-0.018323127180337906,
0.010389270260930061,
0.03840496763586998,
-0.42839983105659485,
0.09525420516729355,
0.4016560912132263,
0.08831246197223663,
-0.25987210869789124,
0.41923561692237854,
-0.38976001739501953,
-0.31778624653816223,
-0.3965378701686859,
0.22909916937351227,
0.05770658329129219,
-0.05689267814159393,
-0.20134153962135315,
-0.14682917296886444,
-0.021684762090444565,
-0.14501795172691345,
0.1410873532295227,
-0.04972435534000397,
-0.09820131212472916,
0.28897950053215027,
-0.2026168704032898,
-0.06178402900695801,
-0.10009457170963287,
-0.0405116006731987,
-0.12069415301084518,
0.20512644946575165,
-0.20087161660194397,
0.010178999975323677,
0.05408128723502159,
0.1703217327594757,
-0.009511697106063366,
-0.21498258411884308,
0.3916642665863037,
-0.09032700210809708,
-0.12063562124967575,
0.150697723031044,
0.08436817675828934,
-0.34365585446357727,
-0.32855191826820374,
0.09560822695493698,
0.23980236053466797,
-0.026648538187146187,
-0.3221817910671234,
0.2734157145023346,
-0.18421417474746704,
0.030022935941815376,
0.17776784300804138,
0.15388017892837524,
0.143518328666687,
0.3414304852485657,
0.014532149769365788,
-0.03628697618842125,
-0.11415892094373703,
0.022197453305125237,
0.09972784668207169,
-0.11492884159088135,
0.09721604734659195,
-0.15543875098228455,
0.011654402129352093,
-0.3061264157295227,
-0.014472046867012978,
0.3259466290473938,
-0.2271261066198349,
0.14057736098766327,
-0.04243636876344681,
-0.2730095684528351,
-0.13164997100830078,
0.32206258177757263,
0.046220071613788605,
0.16091333329677582,
-0.04362591356039047,
-0.026511775329709053,
-0.4319007098674774,
0.42624548077583313,
0.26989811658859253,
0.5220260620117188,
0.06284654140472412,
-0.3603261113166809,
-0.07222110033035278,
0.28987497091293335,
-0.43330493569374084,
-0.04341094568371773,
-0.06069248169660568,
0.11390577256679535,
-0.23348963260650635,
0.12048226594924927,
-0.26861247420310974,
0.10777264088392258,
0.11101590096950531,
0.2047245353460312,
-0.3214474320411682,
-0.27454087138175964,
-0.28256988525390625,
0.1382748931646347,
-0.00458233617246151,
0.08004763722419739,
-0.06755690276622772,
-0.35789740085601807,
-0.15893477201461792,
-0.2625754773616791,
0.08557602763175964,
-0.10215833783149719,
-0.11914169788360596,
-0.06826900690793991,
0.29847782850265503,
0.009548356756567955,
-0.13444781303405762,
0.38155436515808105,
0.08713918179273605,
0.14237907528877258,
0.09751933068037033,
0.14983852207660675,
-0.1974889039993286,
-0.17716340720653534,
0.39526888728141785,
0.19296681880950928,
0.28509294986724854,
0.14490564167499542,
0.12261166423559189,
0.32865026593208313,
0.15750856697559357,
0.10263817757368088,
0.3508155941963196,
0.3296617269515991,
-0.1900775134563446,
-0.0669349730014801,
0.15588976442813873,
0.32663172483444214,
-0.23564213514328003,
-0.008312894031405449,
0.016321370378136635,
-0.08321664482355118,
0.13984772562980652,
0.1998022496700287,
-0.17298150062561035,
0.07408620417118073,
-0.14095959067344666,
0.024827683344483376,
0.3546094000339508,
-0.25820496678352356,
-0.006114334799349308,
-0.13411933183670044,
-0.19702008366584778,
-0.05959112197160721,
0.2059367299079895,
0.2577483654022217,
0.2602255344390869,
0.08062107861042023,
-0.1177508682012558,
0.4487951993942261,
0.191656693816185,
0.11419527232646942,
0.2455383837223053,
0.018702959641814232,
0.3160087764263153,
0.42502841353416443,
0.25259387493133545,
0.5317396521568298,
0.35906848311424255,
-0.021317442879080772,
0.1426803469657898,
-0.16047991812229156,
-0.09615185856819153,
0.2260681390762329,
0.1921573281288147,
0.0371529646217823,
-0.037572454661130905,
-0.17195634543895721,
0.030473290011286736,
0.02379210852086544,
0.045573193579912186,
-0.2055731862783432,
0.5976640582084656,
0.24250371754169464,
0.001685775350779295,
-0.15377949178218842,
0.06116772070527077,
-0.050387926399707794,
0.34460681676864624,
-0.25542017817497253,
-0.0170030165463686,
0.1320170760154724,
-0.1450250744819641,
0.21903732419013977,
0.3608763813972473,
-0.055007703602313995,
0.39748483896255493,
0.011128377169370651,
0.3629967272281647,
-0.07132289558649063,
-0.08216532319784164,
-0.35742661356925964,
0.21834172308444977,
0.2614523470401764,
-0.1214354932308197,
0.29812631011009216,
0.19656634330749512,
-0.20947593450546265,
0.06299775838851929,
0.013949868269264698,
0.0031711186747998,
-0.24514316022396088,
0.2634297013282776,
0.3895852267742157,
-0.37070170044898987,
0.16287384927272797,
0.03969582915306091,
-0.44881629943847656,
0.01320123951882124,
-0.07583925127983093,
-0.37523868680000305,
0.007830829359591007,
-0.019250649958848953,
0.13292020559310913,
-0.12488595396280289,
0.2074124962091446,
0.07732308655977249,
0.4497220516204834,
-0.13646537065505981,
-0.14375601708889008,
-0.41400644183158875,
0.20902566611766815,
0.03663955628871918,
-0.1769731044769287,
-0.055874280631542206,
-0.05645110458135605,
0.13874641060829163,
0.04416709020733833,
-0.025330787524580956,
-0.2873384952545166,
0.03776606172323227,
0.07032553851604462,
-0.3291044533252716,
0.07350433617830276,
-0.015087293460965157,
0.11489519476890564,
0.06281694024801254,
-0.3707205057144165,
0.09460971504449844,
-0.2663746774196625,
0.06313446164131165,
-0.14028462767601013,
0.07297932356595993,
0.11424052715301514,
-0.10537317395210266,
0.7482130527496338,
0.22790968418121338,
-0.03287152200937271,
-0.29487231373786926,
0.019160568714141846,
0.024448830634355545,
-0.044572751969099045,
-0.20854675769805908,
0.0011639324948191643,
0.2717057168483734,
0.09315432608127594,
-0.010441845282912254,
0.0511709526181221,
-0.1470230221748352,
0.15380293130874634,
-0.06861189007759094,
0.13705994188785553,
-0.14059285819530487,
0.07353974878787994,
0.05682415887713432,
-0.2435266077518463,
-0.20903950929641724,
0.3722025454044342,
0.12202581018209457,
-0.09567537903785706,
-0.05230831727385521,
-0.03284856304526329,
0.3887147009372711,
-0.5408638119697571,
-0.09913304448127747,
-0.12030325084924698,
0.10363540053367615,
-0.13905751705169678,
-0.012548000551760197,
-0.4450726807117462,
-0.06973370164632797,
0.28923121094703674,
-0.10034649819135666,
-0.11961156874895096,
0.45910701155662537,
0.2960062623023987,
-0.1567552089691162,
-0.20759406685829163,
0.3705032765865326,
0.009487370029091835,
-0.30576878786087036,
0.012503585778176785,
-0.3759893476963043
] |
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.07257379591464996,
-0.08529040962457657,
-0.11802507936954498,
-0.045865558087825775,
0.15466883778572083,
0.2035396695137024,
0.625244677066803,
0.1981317102909088,
0.11475063860416412,
0.39402487874031067,
0.04199592024087906,
0.3692275881767273,
-0.24358975887298584,
0.2782409191131592,
0.19149838387966156,
-0.4520203769207001,
0.07772500813007355,
-0.2225462794303894,
0.2795634865760803,
0.14416159689426422,
-0.17015108466148376,
0.029089726507663727,
-0.10989435017108917,
0.24884727597236633,
-0.44824889302253723,
0.052187785506248474,
-0.027883537113666534,
-0.04079154506325722,
0.07290584594011307,
-0.47320640087127686,
0.06945748627185822,
0.5114652514457703,
-0.09232795238494873,
0.459721177816391,
-0.00012012790102744475,
-0.22727888822555542,
0.39218828082084656,
-0.16340593993663788,
-0.3604238033294678,
-0.2719934284687042,
-0.2721000909805298,
-0.05087533965706825,
0.19106744229793549,
-0.3920918107032776,
-0.014088925905525684,
-0.05463333800435066,
-0.06922990828752518,
-0.2750486135482788,
0.12171414494514465,
0.22521661221981049,
0.12752196192741394,
-0.03596910834312439,
-0.1207834929227829,
-0.0023297008592635393,
0.0822664275765419,
0.453388512134552,
-0.335513174533844,
0.1411755234003067,
0.0616261325776577,
-0.05898469686508179,
0.2678491771221161,
0.035397421568632126,
0.007843241095542908,
-0.17598600685596466,
-0.033752791583538055,
0.06865529716014862,
-0.1521921008825302,
-0.22276318073272705,
-0.0949152410030365,
0.4006628096103668,
0.3223872482776642,
-0.3291948735713959,
-0.40781012177467346,
-0.4338805377483368,
0.15804524719715118,
-0.28911229968070984,
-0.004349748603999615,
-0.06100600212812424,
0.006846637465059757,
0.25693440437316895,
-0.1519078016281128,
-0.03833211213350296,
-0.13919782638549805,
0.15041832625865936,
0.167988583445549,
0.2730535864830017,
0.17571286857128143,
0.1539537012577057,
0.46086186170578003,
0.031874049454927444,
0.267124742269516,
-0.27590110898017883,
0.14299868047237396,
0.013591906055808067,
-0.1820884793996811,
-0.2353997528553009,
-0.3166775405406952,
-0.400314062833786,
-0.03858208283782005,
0.2578308880329132,
-0.08990428596735,
0.002925257897004485,
-0.11850640922784805,
-0.03620007261633873,
0.12133517861366272,
0.20421892404556274,
0.19220221042633057,
0.7993483543395996,
0.19406825304031372,
0.1425667256116867,
-0.05098724365234375,
-0.0838257446885109,
-0.07327033579349518,
-0.2198159545660019,
0.13193835318088531,
0.11735204607248306,
-0.14804591238498688,
0.09727060049772263,
-0.21572816371917725,
-0.1622207909822464,
-0.30567845702171326,
-0.16075339913368225,
0.262124627828598,
0.23941321671009064,
0.03506629914045334,
0.08690633624792099,
-0.07951949536800385,
0.05684414133429527,
0.1468178629875183,
-0.05486040189862251,
-0.105778269469738,
0.0489816851913929,
-0.25270816683769226,
0.1430671662092209,
0.2551349103450775,
-0.02021028846502304,
0.025175224989652634,
-0.1186656728386879,
0.24277307093143463,
-0.2523258924484253,
-0.07129553705453873,
-0.010147805325686932,
0.37107303738594055,
0.1764824390411377,
-0.2565140128135681,
-0.0895715281367302,
-0.2148703932762146,
-0.041379787027835846,
-0.12691378593444824,
0.024117518216371536,
-0.18336224555969238,
-0.4484345316886902,
0.018430938944220543,
0.060959868133068085,
-0.18245099484920502,
0.00027639869949780405,
-0.047003138810396194,
0.2932841181755066,
0.2690389156341553,
0.07021284103393555,
0.16555194556713104,
0.03461239114403725,
-0.16790707409381866,
-0.0667346939444542,
0.38961300253868103,
0.08742162585258484,
-0.3150944411754608,
-0.16407792270183563,
-0.3378518521785736,
0.08885405957698822,
0.03492656722664833,
0.0031336231622844934,
-0.055739548057317734,
0.22306928038597107,
-0.07022985816001892,
0.24009883403778076,
0.3350123167037964,
-0.1714235097169876,
0.04403158277273178,
0.04585793986916542,
0.08664962649345398,
-0.009295904077589512,
0.28880754113197327,
-0.15595966577529907,
0.10661797970533371,
-0.03297804668545723,
-0.12106576561927795,
0.1750895380973816,
-0.3245232105255127,
-0.1972152441740036,
0.022615468129515648,
-0.09282168000936508,
0.39928099513053894,
0.17364941537380219,
0.024809909984469414,
-0.15483899414539337,
-0.22402118146419525,
0.26394638419151306,
0.43561840057373047,
-0.007708583492785692,
0.08101697266101837,
-0.22696608304977417,
0.3232061266899109,
0.4250842034816742,
0.12690986692905426,
-0.43144550919532776,
-0.17309492826461792,
0.12140808999538422,
0.1779443323612213,
-0.13343918323516846,
-0.1241060197353363,
-0.37054750323295593,
-0.30220282077789307,
-0.1747017204761505,
-0.09574402868747711,
0.002574274083599448,
0.056508712470531464,
-0.13497835397720337,
0.11699617654085159,
-0.09127753227949142,
-0.3370678424835205,
0.08106248080730438,
-0.41173693537712097,
0.21739473938941956,
-0.0233670175075531,
0.3630811274051666,
0.35404571890830994,
-0.005976868327707052,
-0.4311003088951111,
0.401751309633255,
0.15342207252979279,
-0.15063714981079102,
-0.12496917694807053,
0.4914855360984802,
0.5371118783950806,
-0.15352103114128113,
-0.13355287909507751,
-0.027776077389717102,
0.0029971350450068712,
-0.12234032154083252,
0.054012544453144073,
0.23839527368545532,
-0.11136776208877563,
-0.10988655686378479,
-0.16303259134292603,
0.3751428425312042,
-0.44459548592567444,
0.3816933035850525,
-0.1641293466091156,
0.06511842459440231,
-0.14212290942668915,
-0.22470879554748535,
-0.45645809173583984,
-0.37438589334487915,
-0.2848769724369049,
-0.5980316400527954,
0.16536426544189453,
-0.31220486760139465,
-0.2530176043510437,
-0.206964910030365,
0.3411165773868561,
-0.18148282170295715,
0.008439242839813232,
-0.18159541487693787,
0.2201622575521469,
0.18744634091854095,
-0.0904238224029541,
0.4492093026638031,
0.32089900970458984,
0.1303464025259018,
-0.09941449016332626,
-0.12137740850448608,
-0.05667538940906525,
-0.08790383487939835,
0.18565338850021362,
0.33099469542503357,
-0.05040783807635307,
0.12697528302669525,
-0.22774888575077057,
-0.2841598391532898,
0.014225445687770844,
-0.1667645275592804,
0.295352965593338,
-0.2170964777469635,
-0.2728700339794159,
-0.004168979823589325,
-0.31486034393310547,
-0.1530628800392151,
-0.34435027837753296,
-0.18245786428451538,
-0.1817968487739563,
-0.37932220101356506,
0.09495613723993301,
0.09578320384025574,
-0.36618921160697937,
0.3272184729576111,
-0.09368011355400085,
0.15655700862407684,
-0.35292330384254456,
-0.31207484006881714,
0.042568057775497437,
-0.19191817939281464,
0.01919478550553322,
0.037365227937698364,
-0.06363357603549957,
0.08863167464733124,
0.44738924503326416,
0.06828774511814117,
-0.2181130349636078,
-0.20777630805969238,
-0.2186671793460846,
-0.08827470988035202,
-0.13066598773002625,
0.03444092720746994,
0.30231553316116333,
-0.05764761567115784,
0.2030574232339859,
-0.39772725105285645,
-0.018455414101481438,
0.1599651277065277,
-0.043774209916591644,
-0.3815743327140808,
0.3924481272697449,
0.18300768733024597,
-0.2294372171163559,
-0.35333606600761414,
-0.3261464238166809,
-0.19292296469211578,
0.42239251732826233,
-0.5255028009414673,
-0.02416209690272808,
0.035788629204034805,
-0.2785819172859192,
0.11276944726705551,
0.12519147992134094,
-0.12003929167985916,
-0.10159225016832352,
0.3104768991470337,
0.0435890294611454,
-0.23847530782222748,
0.207295760512352,
0.10776779055595398,
-0.22187559306621552,
0.02172265760600567,
-0.3567279577255249,
0.050373826175928116,
0.029043249785900116,
0.09440086781978607,
0.27704310417175293,
0.1614021360874176,
-0.08287947624921799,
0.09743314236402512,
0.08582048118114471,
0.18605643510818481,
-0.08966656774282455,
-0.2755863666534424,
0.14966216683387756,
0.28058966994285583,
0.2331835925579071,
0.22435201704502106,
0.22927534580230713,
-0.06304322928190231,
0.5140988826751709,
0.2080077826976776,
0.05562606826424599,
-0.10414834320545197,
-0.023332225158810616,
-0.18204207718372345,
0.005047452170401812,
-0.47819170355796814,
-0.028247809037566185,
-0.14145667850971222,
-0.3043085038661957,
0.07482057064771652,
-0.15775471925735474,
0.014481920748949051,
-0.05945660546422005,
0.19999940693378448,
0.06775712221860886,
-0.4575800597667694,
0.030316689983010292,
-0.5357938408851624,
0.2113293558359146,
-0.16503740847110748,
0.07466346770524979,
0.047567032277584076,
-0.08006444573402405,
-0.04412636160850525,
0.11987373232841492,
0.2014360874891281,
-0.20433074235916138,
-0.422997385263443,
-0.15090809762477875,
-0.15878236293792725,
0.18741931021213531,
0.2792791724205017,
0.08235888928174973,
-0.09135662019252777,
0.0013256347738206387,
0.06248699128627777,
0.4954942762851715,
0.7230035066604614,
-0.28192204236984253,
-0.20450785756111145,
0.14208851754665375,
-0.2660384178161621,
0.02591433748602867,
-0.2045838087797165,
0.06341241300106049,
-0.09388363361358643,
0.09591526538133621,
0.22840507328510284,
-0.2615969181060791,
-0.2743298411369324,
0.7737311720848083,
0.3482440710067749,
-0.04376690462231636,
-0.3818058669567108,
0.04054401069879532,
0.19892922043800354,
0.17228302359580994,
0.1197551041841507,
0.3067523241043091,
0.17884595692157745,
-0.2636592984199524,
0.10357368737459183,
0.08022764325141907,
-0.1090177670121193,
0.36232811212539673,
0.09437776356935501,
0.24937398731708527,
-0.07017450779676437,
0.4353817403316498,
0.23567940294742584,
0.10636754333972931,
0.13926057517528534,
0.22278128564357758,
-0.613798201084137,
-0.35882943868637085,
-0.02136392705142498,
0.009253878146409988,
0.7729189991950989,
0.4099298417568207,
0.004096905700862408,
0.08274494111537933,
0.06024055555462837,
0.12020362913608551,
-0.178358256816864,
0.26595237851142883,
0.32204991579055786,
-0.059489063918590546,
-0.5040187239646912,
-0.7637931704521179,
0.32966578006744385,
0.18324340879917145,
-0.1185743436217308,
0.31742602586746216,
0.1097894087433815,
-0.5861918330192566,
0.3563876748085022,
-0.030751455575227737,
0.8402537107467651,
0.125298410654068,
-0.12693919241428375,
-0.12796880304813385,
-0.1924714595079422,
0.21560676395893097,
-0.16476088762283325,
0.05915621295571327,
-0.17542845010757446,
-0.17016617953777313,
0.06592883914709091,
0.07003439217805862,
0.1669832170009613,
0.3497166335582733,
-0.07239968329668045,
0.28742876648902893,
-0.06119436398148537,
0.3150924742221832,
-0.237208753824234,
0.3600488007068634,
0.2801635265350342,
-0.25059735774993896,
0.035652562975883484,
-0.011371675878763199,
0.07277349382638931,
-0.241355761885643,
0.24420225620269775,
-0.0484638586640358,
-0.089663065969944,
0.13179050385951996,
-0.31725364923477173,
-0.2060522735118866,
-0.16750313341617584,
0.07003045827150345,
-0.059014689177274704,
-0.12238746136426926,
0.3028968870639801,
0.23678603768348694,
0.5312367081642151,
0.3700745403766632,
0.049042344093322754,
0.2635008990764618,
0.2412390261888504,
0.2013230174779892,
-0.32358652353286743,
-0.04732437804341316,
0.42908912897109985,
0.1332022249698639,
-0.3335011303424835,
0.04284178093075752,
0.07479890435934067,
-0.2521354854106903,
-0.38420411944389343,
0.11047723889350891,
0.3876132667064667,
-0.654373824596405,
-0.06260431557893753,
-0.11250429600477219,
0.32013994455337524,
-0.24697794020175934,
0.12500545382499695,
0.05991873890161514,
-0.44235479831695557,
0.18992972373962402,
-0.1507723480463028,
-0.14166763424873352,
-0.20086364448070526,
-0.03431323915719986,
-0.13989390432834625,
0.04207725450396538,
0.25891488790512085,
-0.12564963102340698,
-0.0968632698059082,
-0.1337193101644516,
0.2407979816198349,
0.20731110870838165,
-0.2533511519432068,
0.3469286262989044,
0.07731788605451584,
-0.2552933692932129,
-0.08693857491016388,
0.06730657815933228,
0.11351556330919266,
0.2626500725746155,
-0.30441105365753174,
0.10774730145931244,
-0.22454699873924255,
0.11352843791246414,
0.2546491026878357,
0.5764343738555908,
-0.23483113944530487,
0.28459250926971436,
-0.428589403629303,
-0.10295435041189194,
-0.2131628543138504,
-0.1262364238500595,
0.0857158675789833,
0.19941706955432892,
-0.12263623625040054,
0.07818130403757095,
0.2479044795036316,
-0.23910829424858093,
0.16121087968349457,
0.14638355374336243,
0.1289464235305786,
-0.14572688937187195,
-0.3270041048526764,
0.13927793502807617,
-0.056294091045856476,
0.2425658255815506,
-0.28421977162361145,
-0.1260063797235489,
-0.05557413771748543,
-0.3837483823299408,
0.11060638725757599,
0.3372882902622223,
0.14580117166042328,
0.5945237278938293,
0.3972744643688202,
-0.15216094255447388,
0.11354073137044907,
0.09347516298294067,
-0.10033445060253143,
0.3577883541584015,
0.018551215529441833,
0.266489177942276,
-0.02100234106183052,
0.03885211795568466,
-0.26218628883361816,
-0.09644258767366409,
-0.016189826652407646,
-0.08038002997636795,
-0.02623417042195797,
0.07260467857122421,
-0.21641480922698975,
-0.10175201296806335,
0.37499451637268066,
0.6219152808189392,
-0.025116436183452606,
-0.19037321209907532,
0.43808940052986145,
0.12512777745723724,
-0.015532844699919224,
-0.005557671654969454,
0.27948883175849915,
0.009390748105943203,
0.07782522588968277,
0.5012419819831848,
0.012659172527492046,
0.33465811610221863,
-0.13315384089946747,
-0.04222436249256134,
0.1388973891735077,
0.07291974872350693,
0.6167252063751221,
0.6032952666282654,
0.042968250811100006,
0.10517506301403046,
0.07903585582971573,
-0.05454326048493385,
-0.008105864748358727,
0.26455917954444885,
0.14136017858982086,
0.36940738558769226,
0.015968797728419304,
0.0699223056435585,
0.6006395816802979,
0.3650572597980499,
-0.10860367119312286,
-0.27647480368614197,
-0.6752750277519226,
0.13789907097816467,
0.003504545893520117,
0.40290477871894836,
-0.5035104751586914,
-0.40129485726356506,
-0.19758003950119019,
-0.03199801966547966,
0.006027506198734045,
-0.1104460135102272,
0.006326750852167606,
-0.12010011076927185,
-0.17872294783592224,
-0.051751356571912766,
0.17697899043560028,
-0.23831868171691895,
0.4209339916706085,
-0.08767899125814438,
0.2677018642425537,
0.09065936505794525,
0.049217190593481064,
0.19824574887752533,
0.5991568565368652,
-0.31508031487464905,
-0.32273828983306885,
-0.06989903748035431,
-0.08424168080091476,
0.22381596267223358,
-0.1887885481119156,
-0.028673535212874413,
-0.036236077547073364,
-0.0037657441571354866,
-0.32353919744491577,
-0.0474773570895195,
-0.043306462466716766,
0.20218560099601746,
0.23064976930618286,
-0.01693323254585266,
-0.08841653913259506,
0.3804458975791931,
0.11666163057088852,
-0.008075938560068607,
-0.04872589558362961,
0.19654782116413116,
0.20340196788311005,
-0.6443553566932678,
0.563399612903595,
0.06415243446826935,
-0.03804083913564682,
-0.1440708339214325,
-0.002038087695837021,
0.0053901090286672115,
-0.3700372278690338,
0.24648019671440125,
-0.04666661471128464,
0.03208624944090843,
-0.04531524330377579,
0.018237020820379257,
-0.19820144772529602,
0.42823144793510437,
-0.07052428275346756,
-0.1208033487200737,
-0.2555954158306122,
-0.0896407887339592,
0.07437294721603394,
-0.29159170389175415,
-0.0037946102675050497,
-0.276548832654953,
0.19662095606327057,
-0.2916826903820038,
-0.07873685657978058,
-0.03424964100122452,
-0.011721801944077015,
-0.029026534408330917,
0.14442875981330872,
0.3947259187698364,
-0.3441639542579651,
-0.3122903108596802,
-0.1738014966249466,
0.15361660718917847,
0.3368339538574219,
-0.13416877388954163,
-0.24307890236377716,
0.13412246108055115,
-0.3172352612018585,
0.055653758347034454,
-0.1340082436800003,
0.5019887685775757,
0.5471750497817993,
0.2083573192358017,
0.04028818756341934,
0.4481990337371826,
-0.02536454051733017,
0.19093731045722961,
0.09702615439891815,
-0.059651900082826614,
-0.2668219804763794,
0.3416191339492798,
0.0094079514965415,
0.2608262598514557,
0.05133653059601784,
-0.10472065955400467,
-0.10502953082323074,
0.317187637090683,
0.12458290159702301,
-0.21767614781856537,
-0.16379399597644806,
-0.1256077140569687,
0.02637103758752346,
-0.0855356976389885,
0.2697674036026001,
0.29407814145088196,
-0.2826080620288849,
0.16455863416194916,
0.38296636939048767,
-0.2912108600139618,
0.4963204860687256,
0.0327720083296299,
-0.3277798593044281,
-0.10318588465452194,
0.10624397546052933,
0.2823023200035095,
-0.06330662965774536,
-0.6950256824493408,
-0.3996463716030121,
0.2895871102809906,
-0.06106767803430557,
0.05447150766849518,
0.2236010879278183,
0.2504686117172241,
0.06402937322854996,
0.09959417581558228,
0.2653728723526001,
0.09491176158189774,
0.08864158391952515,
0.15325672924518585,
-0.2677426338195801
] |
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.2098323255777359,
0.2670383155345917,
-0.0017678567674010992,
0.1898873746395111,
-0.05953962355852127,
-0.07488038390874863,
0.39034706354141235,
-0.01728445664048195,
0.17079374194145203,
-0.022502154111862183,
0.12379985302686691,
0.012620574794709682,
-0.03868023306131363,
0.07567599415779114,
0.06253151595592499,
0.18716439604759216,
-0.1557507961988449,
0.2216934859752655,
-0.12522085011005402,
-0.07844997197389603,
-0.12366146594285965,
0.11489931493997574,
-0.42757448554039,
-0.050141431391239166,
-0.18700364232063293,
-0.31716588139533997,
-0.003403751878067851,
-0.04398629069328308,
-0.15523099899291992,
-0.27243903279304504,
0.42187172174453735,
0.08484730124473572,
0.22107228636741638,
-0.1517106145620346,
-0.00012205423990963027,
-0.2454780489206314,
0.4161514937877655,
-0.14397895336151123,
-0.4349362850189209,
-0.34078657627105713,
-0.27523836493492126,
-0.13043294847011566,
0.29888054728507996,
-0.5066429376602173,
0.044114552438259125,
0.13096724450588226,
0.33848991990089417,
-0.46477010846138,
-0.13032281398773193,
0.15089917182922363,
0.09149613231420517,
0.18220476806163788,
-0.0067801931872963905,
0.09093381464481354,
0.4891791045665741,
0.07982517033815384,
-0.21489565074443817,
0.1665278822183609,
0.11528979241847992,
0.01910199597477913,
0.17824259400367737,
0.01844390481710434,
-0.15450580418109894,
0.09096747636795044,
0.386188268661499,
0.19503995776176453,
-0.15355727076530457,
-0.26425701379776,
-0.037980955094099045,
0.3704022169113159,
0.5538473725318909,
-0.14377851784229279,
-0.2343485951423645,
-0.3610733449459076,
0.0763946920633316,
-0.29829439520835876,
0.19473561644554138,
0.25155165791511536,
-0.045129988342523575,
0.1533566117286682,
-0.35933229327201843,
-0.44315972924232483,
-0.1371428519487381,
0.5251786708831787,
0.08609826862812042,
0.21361449360847473,
-0.11379708349704742,
0.10652428865432739,
0.0008926354348659515,
0.011190047487616539,
0.0522400327026844,
-0.3040779232978821,
0.1637427806854248,
-0.09523167461156845,
0.22235107421875,
-0.06413780152797699,
0.13756144046783447,
0.47245869040489197,
-0.18112824857234955,
0.3028617799282074,
0.10376767069101334,
-0.0921730250120163,
-0.1592959314584732,
0.20993013679981232,
0.5247608423233032,
0.3245602548122406,
0.33818313479423523,
-0.26077744364738464,
0.5273813605308533,
0.27599650621414185,
-0.08525796979665756,
-0.1607048660516739,
0.17834514379501343,
0.18020440638065338,
0.04699617251753807,
-0.11262743920087814,
0.2839220464229584,
-0.3313289284706116,
-0.10258231312036514,
-0.11614605039358139,
-0.036338482052087784,
0.02678382769227028,
0.21004723012447357,
0.08405937999486923,
-0.2664490342140198,
-0.15939250588417053,
0.08654934912919998,
0.2714381814002991,
-0.18231242895126343,
-0.45816558599472046,
0.011820669285953045,
-0.2709527611732483,
-0.14042513072490692,
-0.07691115885972977,
0.437487930059433,
0.0036352404858917,
0.3053945004940033,
-0.25345340371131897,
-0.09133436530828476,
-0.020622769370675087,
0.47464367747306824,
-0.20366080105304718,
0.3540557026863098,
0.2140982300043106,
0.34103965759277344,
0.061017751693725586,
-0.04557783156633377,
-0.08279407769441605,
-0.07444608956575394,
0.2547932267189026,
-0.05245247110724449,
-0.4573020040988922,
0.06920886039733887,
0.09195871651172638,
-0.470242440700531,
-0.31442633271217346,
-0.2976517379283905,
-0.08811146020889282,
0.09707438945770264,
-0.5006311535835266,
0.028215689584612846,
0.08398309350013733,
-0.18739920854568481,
0.01663549803197384,
0.024963703006505966,
0.4703620374202728,
-0.3674840033054352,
-0.06571881473064423,
-0.43914222717285156,
-0.1759604513645172,
-0.02437102049589157,
0.26712149381637573,
-0.42542198300361633,
0.3243422508239746,
-0.32044389843940735,
0.1207301989197731,
0.6827145218849182,
-0.18856145441532135,
-0.6827119588851929,
0.3701707422733307,
-0.0995325893163681,
-0.17885243892669678,
-0.003411354962736368,
0.3794587254524231,
0.4256160855293274,
-0.008957680314779282,
-0.4156360924243927,
0.5269250869750977,
0.09298199415206909,
0.021212061867117882,
-0.23279523849487305,
-0.1643289476633072,
0.2605099081993103,
-0.017076708376407623,
0.011266144923865795,
0.3139618933200836,
0.3630165755748749,
0.1670653074979782,
0.1006167009472847,
0.3052431344985962,
0.3341991901397705,
-0.1018294021487236,
0.0742247998714447,
0.38011986017227173,
-0.11441786587238312,
-0.025153277441859245,
-0.49663013219833374,
0.020100174471735954,
-0.14877599477767944,
0.09878972917795181,
-0.546181321144104,
-0.4241183400154114,
-0.03411274775862694,
-0.23777049779891968,
-0.04454050213098526,
0.28715699911117554,
-0.038887668401002884,
0.10602395236492157,
0.02736843377351761,
0.129489928483963,
-0.3869743347167969,
-0.03049696609377861,
-0.08988095819950104,
-0.051392555236816406,
-0.5284493565559387,
0.2566905915737152,
-0.16863186657428741,
0.011988322250545025,
-0.11518684774637222,
-0.08566325157880783,
-0.02413448877632618,
-0.14138418436050415,
-0.10971774160861969,
0.3671102523803711,
-0.25653308629989624,
0.08716917783021927,
0.1891966164112091,
0.2710215747356415,
0.28551432490348816,
-0.32205310463905334,
0.4973922669887543,
-0.008195142261683941,
0.21545971930027008,
-0.03813518211245537,
-0.3263993263244629,
0.47246718406677246,
-0.0683583989739418,
0.2161989063024521,
0.1441255360841751,
0.005359105300158262,
0.3300652503967285,
-0.15478050708770752,
-0.2518300712108612,
-0.582814633846283,
0.02836628258228302,
0.20740750432014465,
0.008233094587922096,
-0.07254742830991745,
-0.17478658258914948,
0.18006552755832672,
0.557853102684021,
0.27268415689468384,
0.2287420630455017,
0.07832005620002747,
0.012584983371198177,
-0.27673742175102234,
0.08539071679115295,
0.147138774394989,
0.3183257579803467,
0.19859559834003448,
0.31522059440612793,
0.13681617379188538,
-0.007422672118991613,
-0.42240869998931885,
-0.05910555273294449,
0.08879564702510834,
-0.019789742305874825,
-0.026355141773819923,
0.022559059783816338,
-0.03771177679300308,
-0.3606548607349396,
-0.06141889467835426,
0.22969776391983032,
0.22517256438732147,
-0.23828573524951935,
-0.0716267004609108,
-0.6653860211372375,
-0.7250326871871948,
0.014860033057630062,
-0.07387961447238922,
-0.4821617305278778,
-0.20521511137485504,
0.027810821309685707,
0.41594699025154114,
-0.15075305104255676,
0.05936077982187271,
-0.2272673100233078,
0.501020073890686,
-0.34776318073272705,
-0.22206425666809082,
-0.06656168401241302,
-0.3527735471725464,
-0.24863408505916595,
-0.0017849551513791084,
0.3669334352016449,
0.17943334579467773,
0.4034474492073059,
-0.11427589505910873,
-0.12314604222774506,
-0.23431196808815002,
0.005643886048346758,
0.056488923728466034,
0.331959068775177,
0.07235325872898102,
-0.006634116172790527,
-0.10720174014568329,
-0.14335638284683228,
0.008869106881320477,
0.14760079979896545,
-0.32777485251426697,
0.09851428866386414,
-0.04973579943180084,
-0.01954718306660652,
0.017621729522943497,
-0.347773015499115,
-0.43797197937965393,
-0.263590008020401,
-0.12164235860109329,
0.15853337943553925,
0.13912054896354675,
0.1520957499742508,
0.03906382992863655,
-0.12479963153600693,
0.2505192160606384,
-0.13762573897838593,
0.09512206166982651,
-0.032717082649469376,
-0.48725906014442444,
0.16242380440235138,
-0.34368839859962463,
-0.2576625943183899,
0.4373553395271301,
0.058773625642061234,
0.13893245160579681,
0.27581217885017395,
-0.6511326432228088,
0.05036810040473938,
0.038195911794900894,
0.16974107921123505,
0.3652425706386566,
0.001605405705049634,
0.5040278434753418,
-0.24685195088386536,
0.03633846715092659,
0.013632903806865215,
0.07941065728664398,
0.382986456155777,
0.18820002675056458,
0.25084275007247925,
0.23206563293933868,
0.3819538354873657,
0.1213088184595108,
0.18989774584770203,
-0.17306707799434662,
0.11704066395759583,
0.6550410389900208,
0.06451880186796188,
0.47925078868865967,
-0.30828389525413513,
0.029157845303416252,
-0.11741572618484497,
0.12205350399017334,
-0.20580318570137024,
0.14544661343097687,
0.16935451328754425,
-0.4001719653606415,
-0.38921016454696655,
-0.0038687249179929495,
-0.5113555788993835,
-0.327826589345932,
-0.06780660152435303,
-0.2261493057012558,
0.15891335904598236,
0.364777535200119,
0.04790756106376648,
-0.048521749675273895,
-0.31600436568260193,
-0.24988414347171783,
0.15792298316955566,
0.26088768243789673,
0.056142304092645645,
-0.14402519166469574,
0.11376996338367462,
-0.19024993479251862,
0.22259238362312317,
-0.08779363334178925,
0.533195436000824,
-0.04044542461633682,
0.11765367537736893,
0.3277541399002075,
0.11396771669387817,
0.2481110841035843,
-0.3441396951675415,
0.17111746966838837,
0.11300549656152725,
0.02097126841545105,
-0.4358958601951599,
0.13196240365505219,
-0.16065415740013123,
-0.05986569821834564,
0.5046316981315613,
0.017254969105124474,
-0.06800685822963715,
-0.009995847940444946,
-0.037748537957668304,
-0.03250239044427872,
-0.15557801723480225,
-0.2539767324924469,
-0.22670012712478638,
-0.02646361105144024,
-0.5389503836631775,
-0.04165982827544212,
-0.20590287446975708,
-0.09646670520305634,
0.020595742389559746,
0.06674104183912277,
-0.05292077735066414,
0.16706959903240204,
-0.2818742096424103,
-0.06718607246875763,
-0.05847192928195,
0.11951185017824173,
0.04244906082749367,
0.09096984565258026,
0.08877822756767273,
0.16515812277793884,
0.42543530464172363,
-0.021953366696834564,
0.0714309960603714,
0.18755172193050385,
0.03456341475248337,
-0.0017001570668071508,
0.28288373351097107,
0.006632477510720491,
-0.25165900588035583,
0.21520455181598663,
-0.06943611055612564,
0.08465953916311264,
-0.06427562981843948,
0.2071264684200287,
-0.5104781985282898,
0.13333070278167725,
-0.44689497351646423,
0.29596999287605286,
-0.0045053656212985516,
-0.03398704528808594,
0.08335474878549576,
0.36595162749290466,
-0.12760362029075623,
0.21540558338165283,
-0.044243697077035904,
0.8948525786399841,
-0.05783037468791008,
0.20726920664310455,
-0.13365912437438965,
0.08994254469871521,
0.7640870213508606,
-0.12908896803855896,
0.21412715315818787,
-0.13671143352985382,
-0.0039030469488352537,
-0.15082958340644836,
-0.08632563054561615,
0.3068036735057831,
0.41872262954711914,
-0.10147019475698471,
0.2692236304283142,
-0.16462308168411255,
0.21833635866641998,
-0.2512003183364868,
0.33230897784233093,
-0.3463970124721527,
-0.16567577421665192,
-0.13860733807086945,
0.024128073826432228,
0.06485939770936966,
0.34633222222328186,
-0.15814679861068726,
-0.06194087862968445,
0.00754902558401227,
0.13184905052185059,
-0.1311006397008896,
0.28230422735214233,
0.28119176626205444,
0.11103463172912598,
-0.37166669964790344,
0.13123971223831177,
-0.04547129571437836,
0.22344695031642914,
0.35213935375213623,
0.0173893254250288,
-0.37212616205215454,
-0.13895761966705322,
-0.02070401981472969,
-0.17657625675201416,
0.2591640055179596,
0.1892564296722412,
0.3392989933490753,
-0.24228829145431519,
-0.2942517399787903,
0.0028853146359324455,
0.12072224169969559,
-0.12346653640270233,
0.40666159987449646,
0.008900779299438,
-0.09702042490243912,
-0.10114991664886475,
-0.1687728315591812,
0.2969224154949188,
0.04196964576840401,
-0.0036158522125333548,
0.02995859459042549,
0.12807916104793549,
0.1855444312095642,
0.06860123574733734,
-0.11686110496520996,
-0.21076926589012146,
-0.14533162117004395,
0.5676352977752686,
-0.045449770987033844,
0.030464010313153267,
0.14470799267292023,
0.05875531956553459,
-0.1140621230006218,
-0.14909671247005463,
0.18536223471164703,
-0.34981465339660645,
-0.37835440039634705,
0.10026701539754868,
0.2122078388929367,
0.4764327108860016,
-0.07907617837190628,
0.18293295800685883,
-0.14130330085754395,
0.23910687863826752,
-0.20737062394618988,
-0.30931419134140015,
-0.2009139209985733,
0.17612488567829132,
0.24147062003612518,
0.025736402720212936,
0.021590378135442734,
-0.11635611206293106,
0.5522448420524597,
-0.18032139539718628,
-0.20209230482578278,
0.22192466259002686,
0.039647702127695084,
0.365542471408844,
0.21008294820785522,
0.006319425068795681,
0.030853180214762688,
-0.16721342504024506,
-0.09770680963993073,
-0.01587621495127678,
-0.2581115961074829,
-0.09515359252691269,
0.031822651624679565,
0.28422850370407104,
0.2625707685947418,
-0.5424135327339172,
-0.32975271344184875,
-0.6407564282417297,
-0.2728309631347656,
0.02414301037788391,
-0.09477128088474274,
0.4041731059551239,
0.040039628744125366,
0.1986292600631714,
0.35778674483299255,
0.14953584969043732,
-0.2055559754371643,
0.11839868873357773,
-0.16346687078475952,
0.2850666344165802,
-0.09693124145269394,
0.19482924044132233,
-0.0042723119258880615,
0.04013626649975777,
-0.2721356749534607,
-0.08284683525562286,
-0.058149319142103195,
0.16442814469337463,
0.5369650721549988,
-0.2493014633655548,
0.27511367201805115,
0.1975862681865692,
0.45449352264404297,
0.2595006227493286,
0.15706844627857208,
-0.21994943916797638,
0.3323819041252136,
0.05076304450631142,
-0.28650444746017456,
0.1005188375711441,
0.35890141129493713,
0.4310475289821625,
-0.13548365235328674,
0.17444422841072083,
0.43150436878204346,
0.11627157032489777,
-0.10536936670541763,
-0.1573919951915741,
0.3952951431274414,
-0.27687200903892517,
0.11500164866447449,
0.018440475687384605,
-0.2657099664211273,
-0.00925629772245884,
-0.05117223039269447,
0.20963512361049652,
0.2432674616575241,
0.2710626721382141,
-0.1154281497001648,
0.012686250731348991,
0.18911096453666687,
0.30745288729667664,
-0.10639248788356781,
-0.4238243103027344,
-0.11502864211797714,
0.1230166032910347,
0.17712031304836273,
0.051483701914548874,
-0.18801896274089813,
0.1199183538556099,
-0.1349378377199173,
0.14019201695919037,
-0.18196448683738708,
0.48223525285720825,
-0.009349771775305271,
0.006744778249412775,
-0.4403425455093384,
-0.2450462430715561,
-0.06855711340904236,
0.13669565320014954,
-0.2170642614364624,
0.05588405579328537,
-0.1265670508146286,
0.22688394784927368,
-0.07788793742656708,
-0.37082892656326294,
0.37549808621406555,
-0.0852474495768547,
0.19798283278942108,
-0.2669509947299957,
0.15589098632335663,
-0.062020767480134964,
0.20275887846946716,
0.2308395504951477,
0.30192723870277405,
0.17099371552467346,
0.2111993432044983,
-0.02289370819926262,
0.19094808399677277,
0.055877599865198135,
-0.07733317464590073,
-0.33021917939186096,
0.2316431701183319,
0.6044891476631165,
0.5322275757789612,
0.23746323585510254,
-0.0431613028049469,
-0.0579141341149807,
0.4244404435157776,
-0.05984789505600929,
0.2562653422355652,
-0.07463319599628448,
0.40267080068588257,
0.0032639827113598585,
-0.13552014529705048,
-0.16521067917346954,
0.020193997770547867,
-0.26105064153671265,
-0.32350003719329834,
0.2602367103099823,
-0.3222093880176544,
0.1295645833015442,
-0.44706299901008606,
-0.021649347618222237,
-0.21574503183364868,
0.5108920931816101,
0.4062940180301666,
0.33943337202072144,
-0.11660968512296677,
-0.2419130504131317,
-0.7239390015602112,
-0.0030538360588252544,
-0.0680556520819664,
0.18757185339927673,
-0.04142605513334274,
0.4513482451438904,
-0.1687249392271042,
0.2156716287136078,
-0.34156009554862976,
0.17766514420509338,
-0.035916898399591446,
-0.059720367193222046,
-0.03255780041217804,
-0.05267423018813133,
-0.35969996452331543,
0.08836386352777481,
-0.13323387503623962,
-0.2659158408641815,
0.08446533232927322,
-0.3811705708503723,
-0.16402976214885712,
0.12469053268432617,
-0.2449236959218979,
-0.24173083901405334,
0.36529144644737244,
0.5970695614814758,
0.11112645268440247,
0.4610143005847931,
0.07630333304405212,
-0.0047113834880292416,
-0.22991180419921875,
0.09966991096735,
-0.3166601061820984,
0.07915689051151276,
0.009057430550456047,
0.02142474241554737,
-0.29343554377555847,
0.40623119473457336,
-0.09837288409471512,
0.21658191084861755,
-0.07345136255025864,
0.31820574402809143,
-0.18572823703289032,
-0.3723781704902649,
-0.2545107901096344,
0.10210087895393372,
-0.01365514937788248,
-0.14378318190574646,
0.11997520178556442,
0.0732646957039833,
-0.44844573736190796,
0.045296560972929,
0.5243938565254211,
0.14165948331356049,
0.2392500340938568,
-0.35938748717308044,
0.4845656156539917,
0.3935532867908478,
-0.2534209191799164,
-0.42700108885765076,
-0.05095415934920311,
0.45109179615974426,
-0.1463804692029953,
0.09949575364589691,
0.03737340494990349,
-0.15389172732830048,
0.1346617341041565,
-0.09684503078460693,
0.40453723073005676,
-0.10790085047483444,
-0.3252619206905365,
-0.17659808695316315,
-0.2115277349948883
] |
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.17262035608291626,
-0.08458110690116882,
-0.09733720868825912,
0.1288861185312271,
0.4222562909126282,
0.20194438099861145,
0.3426603674888611,
0.062194470316171646,
-0.05755838751792908,
0.004357459954917431,
-0.14231087267398834,
0.08249624818563461,
-0.06605984270572662,
0.24891912937164307,
0.11230892688035965,
-0.1254214495420456,
-0.08084547519683838,
-0.11463040113449097,
-0.22911712527275085,
0.006714827846735716,
-0.20981068909168243,
0.14409343898296356,
-0.20964910089969635,
0.04321147873997688,
-0.421304315328598,
-0.16523726284503937,
0.0861218050122261,
0.35553884506225586,
-0.030172744765877724,
-0.25860312581062317,
0.3710349202156067,
0.013673472218215466,
0.0507146380841732,
0.4067727327346802,
-0.00011094118963228539,
0.2821536362171173,
0.4214933216571808,
-0.007743433583527803,
-0.4700697064399719,
-0.4119870662689209,
0.028616834431886673,
-0.25242674350738525,
0.20361238718032837,
-0.1215820461511612,
-0.08969341963529587,
-0.09933594614267349,
-0.048514168709516525,
-0.23515015840530396,
0.44307374954223633,
0.42446839809417725,
0.2697090208530426,
0.2736966013908386,
0.31105729937553406,
-0.09482397884130478,
-0.30825552344322205,
-0.22429093718528748,
0.04368104785680771,
0.5262336134910583,
-0.3041549623012543,
-0.055004071444272995,
0.236949160695076,
0.18526814877986908,
-0.11026425659656525,
0.039429083466529846,
0.10279294103384018,
0.03683975338935852,
-0.08111865818500519,
-0.36316266655921936,
0.016723938286304474,
0.07219403237104416,
0.24345402419567108,
-0.22600553929805756,
-0.4658714830875397,
-0.16389520466327667,
0.0304691344499588,
-0.35231178998947144,
0.20596465468406677,
0.07249359041452408,
-0.131037637591362,
0.15622654557228088,
-0.4081345498561859,
-0.16622485220432281,
-0.23317942023277283,
0.47679993510246277,
-0.08347086608409882,
-0.0691661387681961,
-0.10134536027908325,
0.1568790078163147,
0.2081463783979416,
-0.014765490777790546,
0.24560731649398804,
0.016395866870880127,
0.3304591476917267,
0.21354317665100098,
-0.48102182149887085,
0.11584135890007019,
0.016375338658690453,
0.13958929479122162,
0.13585901260375977,
0.2361457198858261,
0.08397757261991501,
-0.05708669498562813,
-0.12385772168636322,
0.08515246957540512,
0.060635045170784,
0.24538323283195496,
0.00893673300743103,
0.13872666656970978,
0.18724748492240906,
0.30584490299224854,
-0.012288753874599934,
0.03487173095345497,
-0.1371920257806778,
-0.26284563541412354,
-0.08476044237613678,
0.12667252123355865,
0.467296302318573,
-0.0668151006102562,
-0.14578112959861755,
0.22866621613502502,
-0.2497207522392273,
-0.07731244713068008,
0.12552876770496368,
0.507819652557373,
-0.245985746383667,
0.10307954996824265,
-0.0911054015159607,
0.24431149661540985,
-0.09848156571388245,
0.028139721602201462,
-0.27826255559921265,
0.1583169847726822,
-0.1469016671180725,
0.18585777282714844,
0.4209388196468353,
-0.4283127784729004,
0.3650209903717041,
-0.08279483765363693,
0.13289384543895721,
-0.26512476801872253,
0.07276183366775513,
-0.07313627004623413,
-0.22959673404693604,
0.33155688643455505,
-0.01284865289926529,
0.18786051869392395,
0.325527161359787,
0.21989957988262177,
-0.008619825355708599,
-0.09329617768526077,
-0.2572557330131531,
-0.5359468460083008,
0.28439536690711975,
0.23464997112751007,
-0.13258251547813416,
-0.2377673089504242,
-0.10398511588573456,
-0.07018736004829407,
-0.08551348745822906,
0.04999081790447235,
-0.22543750703334808,
-0.07588917762041092,
-0.00010205987200606614,
-0.18517352640628815,
0.4579843282699585,
0.47956544160842896,
-0.35626572370529175,
-0.13188263773918152,
-0.08892016112804413,
-0.1993902325630188,
0.10227499157190323,
0.25054869055747986,
-0.2102561593055725,
0.26782482862472534,
-0.03006245754659176,
-0.20019292831420898,
0.3244513273239136,
-0.2567797005176544,
-0.43037134408950806,
0.22959809005260468,
-0.1415836662054062,
0.07722046971321106,
-0.15979455411434174,
-0.01982799731194973,
-0.2300436943769455,
0.09766854345798492,
0.2224142700433731,
0.45447635650634766,
-0.22194233536720276,
-0.007508364040404558,
-0.07613664120435715,
-0.2887580096721649,
0.19717316329479218,
0.34950894117355347,
0.19055496156215668,
0.08371198177337646,
0.11229032278060913,
-0.12296644598245621,
0.13893258571624756,
0.07927165180444717,
-0.12887096405029297,
0.22225898504257202,
-0.07304497063159943,
0.06009681150317192,
0.005793251562863588,
0.19313330948352814,
-0.44566190242767334,
0.21716199815273285,
0.2575125992298126,
0.2054395228624344,
-0.15917328000068665,
0.07180102169513702,
-0.33143049478530884,
0.06447873264551163,
-0.3276309669017792,
-0.10173147171735764,
0.1681315302848816,
0.11009237170219421,
0.11498993635177612,
0.14874078333377838,
-0.3477538824081421,
0.5853902101516724,
-0.2807267904281616,
0.1544785052537918,
-0.36426040530204773,
0.33367329835891724,
-0.1378067433834076,
0.020809665322303772,
0.05325370281934738,
0.19486944377422333,
0.22709526121616364,
-0.21247975528240204,
-0.12306937575340271,
0.33506473898887634,
-0.09708806872367859,
0.13969792425632477,
0.10056961327791214,
0.020622415468096733,
0.08872135728597641,
-0.27322182059288025,
-0.007591656409204006,
0.17520885169506073,
-0.04842269793152809,
-0.06365522742271423,
0.22217069566249847,
0.2624587416648865,
-0.08243636041879654,
0.33501997590065,
0.1653447151184082,
-0.016716256737709045,
0.15577444434165955,
0.08227834850549698,
-0.07257566601037979,
-0.08043782413005829,
0.3488466441631317,
-0.2823639512062073,
0.4914529025554657,
-0.17793573439121246,
-0.18835364282131195,
-0.21429646015167236,
0.10730103403329849,
-0.2060755342245102,
0.03679947555065155,
0.18075868487358093,
-0.15274634957313538,
-0.19591251015663147,
-0.1415821611881256,
0.22858965396881104,
0.3831122815608978,
0.12666895985603333,
0.01740347407758236,
0.33305248618125916,
-0.11242304742336273,
-0.12555550038814545,
0.21396103501319885,
0.16420966386795044,
0.2534162402153015,
0.12569019198417664,
-0.1063404232263565,
0.08767534792423248,
-0.33358970284461975,
-0.29772594571113586,
0.045749515295028687,
0.29409992694854736,
-0.35056543350219727,
-0.02660500630736351,
-0.23481091856956482,
-0.10758376121520996,
0.04100147634744644,
-0.49585142731666565,
-0.1831311732530594,
-0.4478106200695038,
-0.16304972767829895,
-0.024508962407708168,
0.10010825097560883,
0.19134299457073212,
-0.13830363750457764,
0.20425349473953247,
0.2681010365486145,
-0.17570766806602478,
-0.19902510941028595,
-0.1413165181875229,
-0.12220650911331177,
0.0425470769405365,
0.19098292291164398,
-0.2497788667678833,
0.261508584022522,
-0.12377577275037766,
-0.19311067461967468,
-0.13389664888381958,
-0.043252453207969666,
0.044891633093357086,
-0.08075916767120361,
0.4253888428211212,
0.04150528833270073,
0.5178231596946716,
0.14749553799629211,
-0.052728183567523956,
0.37865903973579407,
-0.07507843524217606,
0.05258682370185852,
0.013706915080547333,
-0.012673799879848957,
0.17136479914188385,
0.10542481392621994,
-0.41975119709968567,
-0.5957533717155457,
-0.31860432028770447,
0.13327911496162415,
-0.14041675627231598,
0.16009032726287842,
0.4751751720905304,
0.1390487253665924,
0.072823166847229,
-0.027765357866883278,
0.3243477940559387,
-0.2952396273612976,
-0.5784928202629089,
0.34275057911872864,
-0.4262584447860718,
-0.3999854326248169,
0.05177774652838707,
0.23373810946941376,
0.15853065252304077,
-0.1368623822927475,
-0.49113786220550537,
-0.29129931330680847,
-0.021032143384218216,
-0.20825238525867462,
-0.14088836312294006,
0.03425198793411255,
-0.08178689330816269,
-0.1706445962190628,
-0.0807221457362175,
0.05285483971238136,
-0.215396448969841,
0.020766427740454674,
-0.18977966904640198,
0.1059553474187851,
0.05405936390161514,
0.5800538063049316,
-0.20692424476146698,
0.4104645252227783,
0.2627963125705719,
-0.09994082897901535,
0.4304727613925934,
-0.10178719460964203,
0.29820725321769714,
-0.03379300236701965,
-0.5136100649833679,
-0.03903929144144058,
-0.024887513369321823,
-0.04935920611023903,
0.24670158326625824,
0.11831160634756088,
-0.17501012980937958,
-0.4023716151714325,
-0.18232867121696472,
-0.4465426802635193,
-0.10940071195363998,
-0.0297654140740633,
0.11023573577404022,
0.06838636100292206,
0.033771540969610214,
0.11740045994520187,
-0.1562560796737671,
-0.02862720377743244,
0.023390494287014008,
0.3478066623210907,
-0.03887838125228882,
0.11804306507110596,
0.006739223841577768,
-0.09217439591884613,
-0.4314183294773102,
0.3346543312072754,
-0.17446081340312958,
0.4283653199672699,
-0.19772851467132568,
0.07675223052501678,
-0.06717175990343094,
-0.0039034283254295588,
0.6058325171470642,
-0.26516568660736084,
0.11586401611566544,
0.0965190976858139,
0.010437704622745514,
-0.3042711615562439,
-0.09392131865024567,
-0.03257869556546211,
0.24870452284812927,
0.165765181183815,
0.4471999704837799,
-0.07856956124305725,
-0.16756068170070648,
0.3270871639251709,
0.2548520863056183,
-0.13908420503139496,
-0.32141318917274475,
-0.1426791101694107,
-0.39352473616600037,
-0.22811223566532135,
-0.22428785264492035,
-0.34006467461586,
0.3046940267086029,
-0.034138333052396774,
-0.16921888291835785,
0.06572618335485458,
-0.09413934499025345,
0.1747618317604065,
0.07752782106399536,
0.13451558351516724,
0.0945739895105362,
0.11386112868785858,
0.3893187344074249,
0.05147232860326767,
0.19698597490787506,
0.6876192092895508,
-0.17472967505455017,
-0.28180432319641113,
0.0031069288961589336,
0.26535841822624207,
0.12663014233112335,
0.2776085436344147,
-0.21346993744373322,
-0.11072760820388794,
0.19178825616836548,
0.19745709002017975,
-0.005906918551772833,
0.2809211015701294,
0.3785071074962616,
0.09109891951084137,
-0.5953506827354431,
-0.594318151473999,
0.4862523078918457,
-0.09491043537855148,
0.11619792878627777,
0.18356995284557343,
-0.12010609358549118,
-0.1307162046432495,
0.1753079891204834,
-0.18716774880886078,
0.7539350986480713,
-0.05162134766578674,
0.02202160283923149,
0.2660262882709503,
0.2764648199081421,
0.4896036684513092,
-0.3141958713531494,
0.01714133471250534,
-0.22134746611118317,
-0.3019837439060211,
-0.09656131267547607,
-0.11286494880914688,
0.12321418523788452,
0.27900227904319763,
0.041160985827445984,
0.4529608488082886,
-0.13979871571063995,
-0.007671821396797895,
0.1203010082244873,
0.2758704721927643,
-0.012365859001874924,
-0.09909787774085999,
-0.6099664568901062,
0.23492687940597534,
-0.11527669429779053,
0.28590869903564453,
-0.14560502767562866,
-0.02665492706000805,
0.01893492043018341,
-0.20110690593719482,
-0.12524870038032532,
0.1103072315454483,
-0.5258550643920898,
0.33524519205093384,
-0.11032223701477051,
-0.19214029610157013,
-0.23488008975982666,
0.14027604460716248,
0.2428162693977356,
0.020909247919917107,
-0.1805032342672348,
-0.016431374475359917,
-0.1787303239107132,
-0.2422131896018982,
-0.1114928275346756,
0.00660545052960515,
0.3349575698375702,
-0.1443488448858261,
-0.2299133837223053,
0.09646313637495041,
-0.125046506524086,
-0.3004513680934906,
0.11817265301942825,
-0.07091074436903,
-0.10809802263975143,
-0.13218671083450317,
-0.24444031715393066,
-0.18454857170581818,
0.08627796918153763,
-0.1746639758348465,
0.13675303757190704,
0.06880073994398117,
-0.08284096419811249,
0.10168830305337906,
0.14947599172592163,
-0.2983337640762329,
-0.11304153501987457,
0.3407582640647888,
-0.26778584718704224,
-0.297926127910614,
0.4692346751689911,
0.351972758769989,
-0.1586272418498993,
-0.16132192313671112,
0.1176547259092331,
0.23542368412017822,
-0.2757169008255005,
0.02879302017390728,
0.16200171411037445,
0.3008444309234619,
-0.009347478859126568,
0.31092265248298645,
0.30564019083976746,
0.10084644705057144,
0.007333867251873016,
-0.7207002639770508,
-0.3249890208244324,
0.19461941719055176,
0.12716665863990784,
0.28619828820228577,
0.17612557113170624,
0.11474479734897614,
0.02176583744585514,
-0.14196686446666718,
-0.310820072889328,
0.05638968199491501,
-0.19300182163715363,
-0.22462198138237,
0.20448744297027588,
-0.19606395065784454,
0.5058369040489197,
0.09617466479539871,
0.23531506955623627,
-0.18623211979866028,
-0.22380825877189636,
-0.25229740142822266,
0.012597506865859032,
0.1250666230916977,
-0.007205045782029629,
-0.15990431606769562,
0.07668501138687134,
-0.0989360362291336,
-0.10717026144266129,
-0.10151274502277374,
0.19095544517040253,
0.13839586079120636,
0.06878038495779037,
-0.07874622941017151,
0.1001250147819519,
0.030109936371445656,
-0.19079656898975372,
0.02850877307355404,
-0.025133991613984108,
0.30090516805648804,
0.22657188773155212,
0.061835385859012604,
0.024157678708434105,
-0.053306158632040024,
-0.0746179074048996,
-0.11217694729566574,
-0.041407037526369095,
-0.07796347141265869,
0.3595576584339142,
-0.3970215618610382,
-0.027572274208068848,
0.28107017278671265,
0.4986274838447571,
0.3485300540924072,
-0.3341701626777649,
0.14043152332305908,
0.09824992716312408,
0.20083625614643097,
-0.24180521070957184,
-0.13203683495521545,
0.18666456639766693,
-0.03183874860405922,
0.03097703494131565,
0.12332773953676224,
-0.05814039707183838,
0.05055546388030052,
-0.2328445464372635,
0.056709468364715576,
0.5290331840515137,
0.09246101975440979,
0.22493202984333038,
0.13084864616394043,
-0.01856706291437149,
0.06692217290401459,
0.06500107049942017,
0.036054808646440506,
0.12290916591882706,
0.2920597791671753,
-0.34958139061927795,
0.1462302953004837,
-0.05675971135497093,
0.06840015202760696,
-0.1147468239068985,
-0.6289652585983276,
0.33368226885795593,
0.16891595721244812,
-0.31917768716812134,
0.08784347027540207,
-0.24491217732429504,
0.4515693187713623,
-0.2186652421951294,
0.05171331763267517,
-0.29081231355667114,
0.32481855154037476,
0.05354996770620346,
-0.061902958899736404,
0.11665352433919907,
-0.26139283180236816,
-0.12228923290967941,
-0.024196090176701546,
0.059286460280418396,
-0.33784404397010803,
0.2547755539417267,
0.18737001717090607,
-0.17020870745182037,
-0.2505170702934265,
-0.05147375538945198,
0.2003881335258484,
-0.027891576290130615,
-0.10703589022159576,
0.33228984475135803,
0.3139646053314209,
-0.10759715735912323,
-0.0052597736939787865,
0.20781837403774261,
0.5430834293365479,
0.36382320523262024,
0.05988138169050217,
0.2568228244781494,
0.11453908681869507,
-0.13745252788066864,
0.06761504709720612,
0.03229491785168648,
0.2886667847633362,
0.08369256556034088,
0.381245493888855,
0.21704421937465668,
-0.1802069991827011,
0.16716744005680084,
-0.019858190789818764,
0.14901168644428253,
-0.22100026905536652,
0.3357274532318115,
-0.07279126346111298,
0.0364464595913887,
-0.37049171328544617,
0.06097688153386116,
-0.627651572227478,
-0.0764109343290329,
0.4593777060508728,
-0.011202153749763966,
0.009491478092968464,
-0.06973174214363098,
0.08088760823011398,
-0.10900288820266724,
0.7130911946296692,
0.3730812966823578,
0.4081924855709076,
-0.44813093543052673,
-0.09220907837152481,
-0.58048415184021,
0.07782478630542755,
-0.02387489378452301,
0.16887837648391724,
0.09095199406147003,
-0.1451890915632248,
0.022688493132591248,
0.27570781111717224,
0.26527175307273865,
0.08495210856199265,
0.15117307007312775,
0.09654328227043152,
-0.17954634130001068,
-0.11537633836269379,
0.022908931598067284,
0.06011579558253288,
-0.037616364657878876,
-0.23774859309196472,
0.05600765347480774,
-0.5345259308815002,
-0.0055661736987531185,
-0.004136837087571621,
-0.056389689445495605,
-0.010825064964592457,
-0.07826077193021774,
0.33974647521972656,
0.07795247435569763,
0.7522109746932983,
0.006127420347183943,
-0.12574376165866852,
-0.39828982949256897,
-0.32993176579475403,
-0.12805944681167603,
0.14618806540966034,
-0.03177240118384361,
0.23516224324703217,
-0.10757283121347427,
-0.3375987410545349,
-0.3766067326068878,
0.18668663501739502,
0.04968537017703056,
-0.22551746666431427,
-0.16470883786678314,
0.05244888737797737,
0.07880724966526031,
0.007881209254264832,
0.19636227190494537,
0.09204836189746857,
-0.034826308488845825,
0.3125104606151581,
-0.10615651309490204,
-0.35995620489120483,
0.6798818111419678,
-0.2259572148323059,
-0.04740538448095322,
-0.10425810515880585,
0.036588966846466064,
0.09119974821805954,
0.08804015815258026,
-0.579477071762085,
0.1991288959980011,
0.3769949972629547,
0.11346588283777237,
-0.43973127007484436,
0.2614184319972992,
-0.0718318298459053,
0.011539396829903126,
0.03498833626508713,
0.13892143964767456,
0.03210296109318733,
-0.27391594648361206,
-0.024995476007461548,
-0.15673092007637024
] |
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.17262035608291626,
-0.08458110690116882,
-0.09733720868825912,
0.1288861185312271,
0.4222562909126282,
0.20194438099861145,
0.3426603674888611,
0.062194470316171646,
-0.05755838751792908,
0.004357459954917431,
-0.14231087267398834,
0.08249624818563461,
-0.06605984270572662,
0.24891912937164307,
0.11230892688035965,
-0.1254214495420456,
-0.08084547519683838,
-0.11463040113449097,
-0.22911712527275085,
0.006714827846735716,
-0.20981068909168243,
0.14409343898296356,
-0.20964910089969635,
0.04321147873997688,
-0.421304315328598,
-0.16523726284503937,
0.0861218050122261,
0.35553884506225586,
-0.030172744765877724,
-0.25860312581062317,
0.3710349202156067,
0.013673472218215466,
0.0507146380841732,
0.4067727327346802,
-0.00011094118963228539,
0.2821536362171173,
0.4214933216571808,
-0.007743433583527803,
-0.4700697064399719,
-0.4119870662689209,
0.028616834431886673,
-0.25242674350738525,
0.20361238718032837,
-0.1215820461511612,
-0.08969341963529587,
-0.09933594614267349,
-0.048514168709516525,
-0.23515015840530396,
0.44307374954223633,
0.42446839809417725,
0.2697090208530426,
0.2736966013908386,
0.31105729937553406,
-0.09482397884130478,
-0.30825552344322205,
-0.22429093718528748,
0.04368104785680771,
0.5262336134910583,
-0.3041549623012543,
-0.055004071444272995,
0.236949160695076,
0.18526814877986908,
-0.11026425659656525,
0.039429083466529846,
0.10279294103384018,
0.03683975338935852,
-0.08111865818500519,
-0.36316266655921936,
0.016723938286304474,
0.07219403237104416,
0.24345402419567108,
-0.22600553929805756,
-0.4658714830875397,
-0.16389520466327667,
0.0304691344499588,
-0.35231178998947144,
0.20596465468406677,
0.07249359041452408,
-0.131037637591362,
0.15622654557228088,
-0.4081345498561859,
-0.16622485220432281,
-0.23317942023277283,
0.47679993510246277,
-0.08347086608409882,
-0.0691661387681961,
-0.10134536027908325,
0.1568790078163147,
0.2081463783979416,
-0.014765490777790546,
0.24560731649398804,
0.016395866870880127,
0.3304591476917267,
0.21354317665100098,
-0.48102182149887085,
0.11584135890007019,
0.016375338658690453,
0.13958929479122162,
0.13585901260375977,
0.2361457198858261,
0.08397757261991501,
-0.05708669498562813,
-0.12385772168636322,
0.08515246957540512,
0.060635045170784,
0.24538323283195496,
0.00893673300743103,
0.13872666656970978,
0.18724748492240906,
0.30584490299224854,
-0.012288753874599934,
0.03487173095345497,
-0.1371920257806778,
-0.26284563541412354,
-0.08476044237613678,
0.12667252123355865,
0.467296302318573,
-0.0668151006102562,
-0.14578112959861755,
0.22866621613502502,
-0.2497207522392273,
-0.07731244713068008,
0.12552876770496368,
0.507819652557373,
-0.245985746383667,
0.10307954996824265,
-0.0911054015159607,
0.24431149661540985,
-0.09848156571388245,
0.028139721602201462,
-0.27826255559921265,
0.1583169847726822,
-0.1469016671180725,
0.18585777282714844,
0.4209388196468353,
-0.4283127784729004,
0.3650209903717041,
-0.08279483765363693,
0.13289384543895721,
-0.26512476801872253,
0.07276183366775513,
-0.07313627004623413,
-0.22959673404693604,
0.33155688643455505,
-0.01284865289926529,
0.18786051869392395,
0.325527161359787,
0.21989957988262177,
-0.008619825355708599,
-0.09329617768526077,
-0.2572557330131531,
-0.5359468460083008,
0.28439536690711975,
0.23464997112751007,
-0.13258251547813416,
-0.2377673089504242,
-0.10398511588573456,
-0.07018736004829407,
-0.08551348745822906,
0.04999081790447235,
-0.22543750703334808,
-0.07588917762041092,
-0.00010205987200606614,
-0.18517352640628815,
0.4579843282699585,
0.47956544160842896,
-0.35626572370529175,
-0.13188263773918152,
-0.08892016112804413,
-0.1993902325630188,
0.10227499157190323,
0.25054869055747986,
-0.2102561593055725,
0.26782482862472534,
-0.03006245754659176,
-0.20019292831420898,
0.3244513273239136,
-0.2567797005176544,
-0.43037134408950806,
0.22959809005260468,
-0.1415836662054062,
0.07722046971321106,
-0.15979455411434174,
-0.01982799731194973,
-0.2300436943769455,
0.09766854345798492,
0.2224142700433731,
0.45447635650634766,
-0.22194233536720276,
-0.007508364040404558,
-0.07613664120435715,
-0.2887580096721649,
0.19717316329479218,
0.34950894117355347,
0.19055496156215668,
0.08371198177337646,
0.11229032278060913,
-0.12296644598245621,
0.13893258571624756,
0.07927165180444717,
-0.12887096405029297,
0.22225898504257202,
-0.07304497063159943,
0.06009681150317192,
0.005793251562863588,
0.19313330948352814,
-0.44566190242767334,
0.21716199815273285,
0.2575125992298126,
0.2054395228624344,
-0.15917328000068665,
0.07180102169513702,
-0.33143049478530884,
0.06447873264551163,
-0.3276309669017792,
-0.10173147171735764,
0.1681315302848816,
0.11009237170219421,
0.11498993635177612,
0.14874078333377838,
-0.3477538824081421,
0.5853902101516724,
-0.2807267904281616,
0.1544785052537918,
-0.36426040530204773,
0.33367329835891724,
-0.1378067433834076,
0.020809665322303772,
0.05325370281934738,
0.19486944377422333,
0.22709526121616364,
-0.21247975528240204,
-0.12306937575340271,
0.33506473898887634,
-0.09708806872367859,
0.13969792425632477,
0.10056961327791214,
0.020622415468096733,
0.08872135728597641,
-0.27322182059288025,
-0.007591656409204006,
0.17520885169506073,
-0.04842269793152809,
-0.06365522742271423,
0.22217069566249847,
0.2624587416648865,
-0.08243636041879654,
0.33501997590065,
0.1653447151184082,
-0.016716256737709045,
0.15577444434165955,
0.08227834850549698,
-0.07257566601037979,
-0.08043782413005829,
0.3488466441631317,
-0.2823639512062073,
0.4914529025554657,
-0.17793573439121246,
-0.18835364282131195,
-0.21429646015167236,
0.10730103403329849,
-0.2060755342245102,
0.03679947555065155,
0.18075868487358093,
-0.15274634957313538,
-0.19591251015663147,
-0.1415821611881256,
0.22858965396881104,
0.3831122815608978,
0.12666895985603333,
0.01740347407758236,
0.33305248618125916,
-0.11242304742336273,
-0.12555550038814545,
0.21396103501319885,
0.16420966386795044,
0.2534162402153015,
0.12569019198417664,
-0.1063404232263565,
0.08767534792423248,
-0.33358970284461975,
-0.29772594571113586,
0.045749515295028687,
0.29409992694854736,
-0.35056543350219727,
-0.02660500630736351,
-0.23481091856956482,
-0.10758376121520996,
0.04100147634744644,
-0.49585142731666565,
-0.1831311732530594,
-0.4478106200695038,
-0.16304972767829895,
-0.024508962407708168,
0.10010825097560883,
0.19134299457073212,
-0.13830363750457764,
0.20425349473953247,
0.2681010365486145,
-0.17570766806602478,
-0.19902510941028595,
-0.1413165181875229,
-0.12220650911331177,
0.0425470769405365,
0.19098292291164398,
-0.2497788667678833,
0.261508584022522,
-0.12377577275037766,
-0.19311067461967468,
-0.13389664888381958,
-0.043252453207969666,
0.044891633093357086,
-0.08075916767120361,
0.4253888428211212,
0.04150528833270073,
0.5178231596946716,
0.14749553799629211,
-0.052728183567523956,
0.37865903973579407,
-0.07507843524217606,
0.05258682370185852,
0.013706915080547333,
-0.012673799879848957,
0.17136479914188385,
0.10542481392621994,
-0.41975119709968567,
-0.5957533717155457,
-0.31860432028770447,
0.13327911496162415,
-0.14041675627231598,
0.16009032726287842,
0.4751751720905304,
0.1390487253665924,
0.072823166847229,
-0.027765357866883278,
0.3243477940559387,
-0.2952396273612976,
-0.5784928202629089,
0.34275057911872864,
-0.4262584447860718,
-0.3999854326248169,
0.05177774652838707,
0.23373810946941376,
0.15853065252304077,
-0.1368623822927475,
-0.49113786220550537,
-0.29129931330680847,
-0.021032143384218216,
-0.20825238525867462,
-0.14088836312294006,
0.03425198793411255,
-0.08178689330816269,
-0.1706445962190628,
-0.0807221457362175,
0.05285483971238136,
-0.215396448969841,
0.020766427740454674,
-0.18977966904640198,
0.1059553474187851,
0.05405936390161514,
0.5800538063049316,
-0.20692424476146698,
0.4104645252227783,
0.2627963125705719,
-0.09994082897901535,
0.4304727613925934,
-0.10178719460964203,
0.29820725321769714,
-0.03379300236701965,
-0.5136100649833679,
-0.03903929144144058,
-0.024887513369321823,
-0.04935920611023903,
0.24670158326625824,
0.11831160634756088,
-0.17501012980937958,
-0.4023716151714325,
-0.18232867121696472,
-0.4465426802635193,
-0.10940071195363998,
-0.0297654140740633,
0.11023573577404022,
0.06838636100292206,
0.033771540969610214,
0.11740045994520187,
-0.1562560796737671,
-0.02862720377743244,
0.023390494287014008,
0.3478066623210907,
-0.03887838125228882,
0.11804306507110596,
0.006739223841577768,
-0.09217439591884613,
-0.4314183294773102,
0.3346543312072754,
-0.17446081340312958,
0.4283653199672699,
-0.19772851467132568,
0.07675223052501678,
-0.06717175990343094,
-0.0039034283254295588,
0.6058325171470642,
-0.26516568660736084,
0.11586401611566544,
0.0965190976858139,
0.010437704622745514,
-0.3042711615562439,
-0.09392131865024567,
-0.03257869556546211,
0.24870452284812927,
0.165765181183815,
0.4471999704837799,
-0.07856956124305725,
-0.16756068170070648,
0.3270871639251709,
0.2548520863056183,
-0.13908420503139496,
-0.32141318917274475,
-0.1426791101694107,
-0.39352473616600037,
-0.22811223566532135,
-0.22428785264492035,
-0.34006467461586,
0.3046940267086029,
-0.034138333052396774,
-0.16921888291835785,
0.06572618335485458,
-0.09413934499025345,
0.1747618317604065,
0.07752782106399536,
0.13451558351516724,
0.0945739895105362,
0.11386112868785858,
0.3893187344074249,
0.05147232860326767,
0.19698597490787506,
0.6876192092895508,
-0.17472967505455017,
-0.28180432319641113,
0.0031069288961589336,
0.26535841822624207,
0.12663014233112335,
0.2776085436344147,
-0.21346993744373322,
-0.11072760820388794,
0.19178825616836548,
0.19745709002017975,
-0.005906918551772833,
0.2809211015701294,
0.3785071074962616,
0.09109891951084137,
-0.5953506827354431,
-0.594318151473999,
0.4862523078918457,
-0.09491043537855148,
0.11619792878627777,
0.18356995284557343,
-0.12010609358549118,
-0.1307162046432495,
0.1753079891204834,
-0.18716774880886078,
0.7539350986480713,
-0.05162134766578674,
0.02202160283923149,
0.2660262882709503,
0.2764648199081421,
0.4896036684513092,
-0.3141958713531494,
0.01714133471250534,
-0.22134746611118317,
-0.3019837439060211,
-0.09656131267547607,
-0.11286494880914688,
0.12321418523788452,
0.27900227904319763,
0.041160985827445984,
0.4529608488082886,
-0.13979871571063995,
-0.007671821396797895,
0.1203010082244873,
0.2758704721927643,
-0.012365859001874924,
-0.09909787774085999,
-0.6099664568901062,
0.23492687940597534,
-0.11527669429779053,
0.28590869903564453,
-0.14560502767562866,
-0.02665492706000805,
0.01893492043018341,
-0.20110690593719482,
-0.12524870038032532,
0.1103072315454483,
-0.5258550643920898,
0.33524519205093384,
-0.11032223701477051,
-0.19214029610157013,
-0.23488008975982666,
0.14027604460716248,
0.2428162693977356,
0.020909247919917107,
-0.1805032342672348,
-0.016431374475359917,
-0.1787303239107132,
-0.2422131896018982,
-0.1114928275346756,
0.00660545052960515,
0.3349575698375702,
-0.1443488448858261,
-0.2299133837223053,
0.09646313637495041,
-0.125046506524086,
-0.3004513680934906,
0.11817265301942825,
-0.07091074436903,
-0.10809802263975143,
-0.13218671083450317,
-0.24444031715393066,
-0.18454857170581818,
0.08627796918153763,
-0.1746639758348465,
0.13675303757190704,
0.06880073994398117,
-0.08284096419811249,
0.10168830305337906,
0.14947599172592163,
-0.2983337640762329,
-0.11304153501987457,
0.3407582640647888,
-0.26778584718704224,
-0.297926127910614,
0.4692346751689911,
0.351972758769989,
-0.1586272418498993,
-0.16132192313671112,
0.1176547259092331,
0.23542368412017822,
-0.2757169008255005,
0.02879302017390728,
0.16200171411037445,
0.3008444309234619,
-0.009347478859126568,
0.31092265248298645,
0.30564019083976746,
0.10084644705057144,
0.007333867251873016,
-0.7207002639770508,
-0.3249890208244324,
0.19461941719055176,
0.12716665863990784,
0.28619828820228577,
0.17612557113170624,
0.11474479734897614,
0.02176583744585514,
-0.14196686446666718,
-0.310820072889328,
0.05638968199491501,
-0.19300182163715363,
-0.22462198138237,
0.20448744297027588,
-0.19606395065784454,
0.5058369040489197,
0.09617466479539871,
0.23531506955623627,
-0.18623211979866028,
-0.22380825877189636,
-0.25229740142822266,
0.012597506865859032,
0.1250666230916977,
-0.007205045782029629,
-0.15990431606769562,
0.07668501138687134,
-0.0989360362291336,
-0.10717026144266129,
-0.10151274502277374,
0.19095544517040253,
0.13839586079120636,
0.06878038495779037,
-0.07874622941017151,
0.1001250147819519,
0.030109936371445656,
-0.19079656898975372,
0.02850877307355404,
-0.025133991613984108,
0.30090516805648804,
0.22657188773155212,
0.061835385859012604,
0.024157678708434105,
-0.053306158632040024,
-0.0746179074048996,
-0.11217694729566574,
-0.041407037526369095,
-0.07796347141265869,
0.3595576584339142,
-0.3970215618610382,
-0.027572274208068848,
0.28107017278671265,
0.4986274838447571,
0.3485300540924072,
-0.3341701626777649,
0.14043152332305908,
0.09824992716312408,
0.20083625614643097,
-0.24180521070957184,
-0.13203683495521545,
0.18666456639766693,
-0.03183874860405922,
0.03097703494131565,
0.12332773953676224,
-0.05814039707183838,
0.05055546388030052,
-0.2328445464372635,
0.056709468364715576,
0.5290331840515137,
0.09246101975440979,
0.22493202984333038,
0.13084864616394043,
-0.01856706291437149,
0.06692217290401459,
0.06500107049942017,
0.036054808646440506,
0.12290916591882706,
0.2920597791671753,
-0.34958139061927795,
0.1462302953004837,
-0.05675971135497093,
0.06840015202760696,
-0.1147468239068985,
-0.6289652585983276,
0.33368226885795593,
0.16891595721244812,
-0.31917768716812134,
0.08784347027540207,
-0.24491217732429504,
0.4515693187713623,
-0.2186652421951294,
0.05171331763267517,
-0.29081231355667114,
0.32481855154037476,
0.05354996770620346,
-0.061902958899736404,
0.11665352433919907,
-0.26139283180236816,
-0.12228923290967941,
-0.024196090176701546,
0.059286460280418396,
-0.33784404397010803,
0.2547755539417267,
0.18737001717090607,
-0.17020870745182037,
-0.2505170702934265,
-0.05147375538945198,
0.2003881335258484,
-0.027891576290130615,
-0.10703589022159576,
0.33228984475135803,
0.3139646053314209,
-0.10759715735912323,
-0.0052597736939787865,
0.20781837403774261,
0.5430834293365479,
0.36382320523262024,
0.05988138169050217,
0.2568228244781494,
0.11453908681869507,
-0.13745252788066864,
0.06761504709720612,
0.03229491785168648,
0.2886667847633362,
0.08369256556034088,
0.381245493888855,
0.21704421937465668,
-0.1802069991827011,
0.16716744005680084,
-0.019858190789818764,
0.14901168644428253,
-0.22100026905536652,
0.3357274532318115,
-0.07279126346111298,
0.0364464595913887,
-0.37049171328544617,
0.06097688153386116,
-0.627651572227478,
-0.0764109343290329,
0.4593777060508728,
-0.011202153749763966,
0.009491478092968464,
-0.06973174214363098,
0.08088760823011398,
-0.10900288820266724,
0.7130911946296692,
0.3730812966823578,
0.4081924855709076,
-0.44813093543052673,
-0.09220907837152481,
-0.58048415184021,
0.07782478630542755,
-0.02387489378452301,
0.16887837648391724,
0.09095199406147003,
-0.1451890915632248,
0.022688493132591248,
0.27570781111717224,
0.26527175307273865,
0.08495210856199265,
0.15117307007312775,
0.09654328227043152,
-0.17954634130001068,
-0.11537633836269379,
0.022908931598067284,
0.06011579558253288,
-0.037616364657878876,
-0.23774859309196472,
0.05600765347480774,
-0.5345259308815002,
-0.0055661736987531185,
-0.004136837087571621,
-0.056389689445495605,
-0.010825064964592457,
-0.07826077193021774,
0.33974647521972656,
0.07795247435569763,
0.7522109746932983,
0.006127420347183943,
-0.12574376165866852,
-0.39828982949256897,
-0.32993176579475403,
-0.12805944681167603,
0.14618806540966034,
-0.03177240118384361,
0.23516224324703217,
-0.10757283121347427,
-0.3375987410545349,
-0.3766067326068878,
0.18668663501739502,
0.04968537017703056,
-0.22551746666431427,
-0.16470883786678314,
0.05244888737797737,
0.07880724966526031,
0.007881209254264832,
0.19636227190494537,
0.09204836189746857,
-0.034826308488845825,
0.3125104606151581,
-0.10615651309490204,
-0.35995620489120483,
0.6798818111419678,
-0.2259572148323059,
-0.04740538448095322,
-0.10425810515880585,
0.036588966846466064,
0.09119974821805954,
0.08804015815258026,
-0.579477071762085,
0.1991288959980011,
0.3769949972629547,
0.11346588283777237,
-0.43973127007484436,
0.2614184319972992,
-0.0718318298459053,
0.011539396829903126,
0.03498833626508713,
0.13892143964767456,
0.03210296109318733,
-0.27391594648361206,
-0.024995476007461548,
-0.15673092007637024
] |
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.17262035608291626,
-0.08458110690116882,
-0.09733720868825912,
0.1288861185312271,
0.4222562909126282,
0.20194438099861145,
0.3426603674888611,
0.062194470316171646,
-0.05755838751792908,
0.004357459954917431,
-0.14231087267398834,
0.08249624818563461,
-0.06605984270572662,
0.24891912937164307,
0.11230892688035965,
-0.1254214495420456,
-0.08084547519683838,
-0.11463040113449097,
-0.22911712527275085,
0.006714827846735716,
-0.20981068909168243,
0.14409343898296356,
-0.20964910089969635,
0.04321147873997688,
-0.421304315328598,
-0.16523726284503937,
0.0861218050122261,
0.35553884506225586,
-0.030172744765877724,
-0.25860312581062317,
0.3710349202156067,
0.013673472218215466,
0.0507146380841732,
0.4067727327346802,
-0.00011094118963228539,
0.2821536362171173,
0.4214933216571808,
-0.007743433583527803,
-0.4700697064399719,
-0.4119870662689209,
0.028616834431886673,
-0.25242674350738525,
0.20361238718032837,
-0.1215820461511612,
-0.08969341963529587,
-0.09933594614267349,
-0.048514168709516525,
-0.23515015840530396,
0.44307374954223633,
0.42446839809417725,
0.2697090208530426,
0.2736966013908386,
0.31105729937553406,
-0.09482397884130478,
-0.30825552344322205,
-0.22429093718528748,
0.04368104785680771,
0.5262336134910583,
-0.3041549623012543,
-0.055004071444272995,
0.236949160695076,
0.18526814877986908,
-0.11026425659656525,
0.039429083466529846,
0.10279294103384018,
0.03683975338935852,
-0.08111865818500519,
-0.36316266655921936,
0.016723938286304474,
0.07219403237104416,
0.24345402419567108,
-0.22600553929805756,
-0.4658714830875397,
-0.16389520466327667,
0.0304691344499588,
-0.35231178998947144,
0.20596465468406677,
0.07249359041452408,
-0.131037637591362,
0.15622654557228088,
-0.4081345498561859,
-0.16622485220432281,
-0.23317942023277283,
0.47679993510246277,
-0.08347086608409882,
-0.0691661387681961,
-0.10134536027908325,
0.1568790078163147,
0.2081463783979416,
-0.014765490777790546,
0.24560731649398804,
0.016395866870880127,
0.3304591476917267,
0.21354317665100098,
-0.48102182149887085,
0.11584135890007019,
0.016375338658690453,
0.13958929479122162,
0.13585901260375977,
0.2361457198858261,
0.08397757261991501,
-0.05708669498562813,
-0.12385772168636322,
0.08515246957540512,
0.060635045170784,
0.24538323283195496,
0.00893673300743103,
0.13872666656970978,
0.18724748492240906,
0.30584490299224854,
-0.012288753874599934,
0.03487173095345497,
-0.1371920257806778,
-0.26284563541412354,
-0.08476044237613678,
0.12667252123355865,
0.467296302318573,
-0.0668151006102562,
-0.14578112959861755,
0.22866621613502502,
-0.2497207522392273,
-0.07731244713068008,
0.12552876770496368,
0.507819652557373,
-0.245985746383667,
0.10307954996824265,
-0.0911054015159607,
0.24431149661540985,
-0.09848156571388245,
0.028139721602201462,
-0.27826255559921265,
0.1583169847726822,
-0.1469016671180725,
0.18585777282714844,
0.4209388196468353,
-0.4283127784729004,
0.3650209903717041,
-0.08279483765363693,
0.13289384543895721,
-0.26512476801872253,
0.07276183366775513,
-0.07313627004623413,
-0.22959673404693604,
0.33155688643455505,
-0.01284865289926529,
0.18786051869392395,
0.325527161359787,
0.21989957988262177,
-0.008619825355708599,
-0.09329617768526077,
-0.2572557330131531,
-0.5359468460083008,
0.28439536690711975,
0.23464997112751007,
-0.13258251547813416,
-0.2377673089504242,
-0.10398511588573456,
-0.07018736004829407,
-0.08551348745822906,
0.04999081790447235,
-0.22543750703334808,
-0.07588917762041092,
-0.00010205987200606614,
-0.18517352640628815,
0.4579843282699585,
0.47956544160842896,
-0.35626572370529175,
-0.13188263773918152,
-0.08892016112804413,
-0.1993902325630188,
0.10227499157190323,
0.25054869055747986,
-0.2102561593055725,
0.26782482862472534,
-0.03006245754659176,
-0.20019292831420898,
0.3244513273239136,
-0.2567797005176544,
-0.43037134408950806,
0.22959809005260468,
-0.1415836662054062,
0.07722046971321106,
-0.15979455411434174,
-0.01982799731194973,
-0.2300436943769455,
0.09766854345798492,
0.2224142700433731,
0.45447635650634766,
-0.22194233536720276,
-0.007508364040404558,
-0.07613664120435715,
-0.2887580096721649,
0.19717316329479218,
0.34950894117355347,
0.19055496156215668,
0.08371198177337646,
0.11229032278060913,
-0.12296644598245621,
0.13893258571624756,
0.07927165180444717,
-0.12887096405029297,
0.22225898504257202,
-0.07304497063159943,
0.06009681150317192,
0.005793251562863588,
0.19313330948352814,
-0.44566190242767334,
0.21716199815273285,
0.2575125992298126,
0.2054395228624344,
-0.15917328000068665,
0.07180102169513702,
-0.33143049478530884,
0.06447873264551163,
-0.3276309669017792,
-0.10173147171735764,
0.1681315302848816,
0.11009237170219421,
0.11498993635177612,
0.14874078333377838,
-0.3477538824081421,
0.5853902101516724,
-0.2807267904281616,
0.1544785052537918,
-0.36426040530204773,
0.33367329835891724,
-0.1378067433834076,
0.020809665322303772,
0.05325370281934738,
0.19486944377422333,
0.22709526121616364,
-0.21247975528240204,
-0.12306937575340271,
0.33506473898887634,
-0.09708806872367859,
0.13969792425632477,
0.10056961327791214,
0.020622415468096733,
0.08872135728597641,
-0.27322182059288025,
-0.007591656409204006,
0.17520885169506073,
-0.04842269793152809,
-0.06365522742271423,
0.22217069566249847,
0.2624587416648865,
-0.08243636041879654,
0.33501997590065,
0.1653447151184082,
-0.016716256737709045,
0.15577444434165955,
0.08227834850549698,
-0.07257566601037979,
-0.08043782413005829,
0.3488466441631317,
-0.2823639512062073,
0.4914529025554657,
-0.17793573439121246,
-0.18835364282131195,
-0.21429646015167236,
0.10730103403329849,
-0.2060755342245102,
0.03679947555065155,
0.18075868487358093,
-0.15274634957313538,
-0.19591251015663147,
-0.1415821611881256,
0.22858965396881104,
0.3831122815608978,
0.12666895985603333,
0.01740347407758236,
0.33305248618125916,
-0.11242304742336273,
-0.12555550038814545,
0.21396103501319885,
0.16420966386795044,
0.2534162402153015,
0.12569019198417664,
-0.1063404232263565,
0.08767534792423248,
-0.33358970284461975,
-0.29772594571113586,
0.045749515295028687,
0.29409992694854736,
-0.35056543350219727,
-0.02660500630736351,
-0.23481091856956482,
-0.10758376121520996,
0.04100147634744644,
-0.49585142731666565,
-0.1831311732530594,
-0.4478106200695038,
-0.16304972767829895,
-0.024508962407708168,
0.10010825097560883,
0.19134299457073212,
-0.13830363750457764,
0.20425349473953247,
0.2681010365486145,
-0.17570766806602478,
-0.19902510941028595,
-0.1413165181875229,
-0.12220650911331177,
0.0425470769405365,
0.19098292291164398,
-0.2497788667678833,
0.261508584022522,
-0.12377577275037766,
-0.19311067461967468,
-0.13389664888381958,
-0.043252453207969666,
0.044891633093357086,
-0.08075916767120361,
0.4253888428211212,
0.04150528833270073,
0.5178231596946716,
0.14749553799629211,
-0.052728183567523956,
0.37865903973579407,
-0.07507843524217606,
0.05258682370185852,
0.013706915080547333,
-0.012673799879848957,
0.17136479914188385,
0.10542481392621994,
-0.41975119709968567,
-0.5957533717155457,
-0.31860432028770447,
0.13327911496162415,
-0.14041675627231598,
0.16009032726287842,
0.4751751720905304,
0.1390487253665924,
0.072823166847229,
-0.027765357866883278,
0.3243477940559387,
-0.2952396273612976,
-0.5784928202629089,
0.34275057911872864,
-0.4262584447860718,
-0.3999854326248169,
0.05177774652838707,
0.23373810946941376,
0.15853065252304077,
-0.1368623822927475,
-0.49113786220550537,
-0.29129931330680847,
-0.021032143384218216,
-0.20825238525867462,
-0.14088836312294006,
0.03425198793411255,
-0.08178689330816269,
-0.1706445962190628,
-0.0807221457362175,
0.05285483971238136,
-0.215396448969841,
0.020766427740454674,
-0.18977966904640198,
0.1059553474187851,
0.05405936390161514,
0.5800538063049316,
-0.20692424476146698,
0.4104645252227783,
0.2627963125705719,
-0.09994082897901535,
0.4304727613925934,
-0.10178719460964203,
0.29820725321769714,
-0.03379300236701965,
-0.5136100649833679,
-0.03903929144144058,
-0.024887513369321823,
-0.04935920611023903,
0.24670158326625824,
0.11831160634756088,
-0.17501012980937958,
-0.4023716151714325,
-0.18232867121696472,
-0.4465426802635193,
-0.10940071195363998,
-0.0297654140740633,
0.11023573577404022,
0.06838636100292206,
0.033771540969610214,
0.11740045994520187,
-0.1562560796737671,
-0.02862720377743244,
0.023390494287014008,
0.3478066623210907,
-0.03887838125228882,
0.11804306507110596,
0.006739223841577768,
-0.09217439591884613,
-0.4314183294773102,
0.3346543312072754,
-0.17446081340312958,
0.4283653199672699,
-0.19772851467132568,
0.07675223052501678,
-0.06717175990343094,
-0.0039034283254295588,
0.6058325171470642,
-0.26516568660736084,
0.11586401611566544,
0.0965190976858139,
0.010437704622745514,
-0.3042711615562439,
-0.09392131865024567,
-0.03257869556546211,
0.24870452284812927,
0.165765181183815,
0.4471999704837799,
-0.07856956124305725,
-0.16756068170070648,
0.3270871639251709,
0.2548520863056183,
-0.13908420503139496,
-0.32141318917274475,
-0.1426791101694107,
-0.39352473616600037,
-0.22811223566532135,
-0.22428785264492035,
-0.34006467461586,
0.3046940267086029,
-0.034138333052396774,
-0.16921888291835785,
0.06572618335485458,
-0.09413934499025345,
0.1747618317604065,
0.07752782106399536,
0.13451558351516724,
0.0945739895105362,
0.11386112868785858,
0.3893187344074249,
0.05147232860326767,
0.19698597490787506,
0.6876192092895508,
-0.17472967505455017,
-0.28180432319641113,
0.0031069288961589336,
0.26535841822624207,
0.12663014233112335,
0.2776085436344147,
-0.21346993744373322,
-0.11072760820388794,
0.19178825616836548,
0.19745709002017975,
-0.005906918551772833,
0.2809211015701294,
0.3785071074962616,
0.09109891951084137,
-0.5953506827354431,
-0.594318151473999,
0.4862523078918457,
-0.09491043537855148,
0.11619792878627777,
0.18356995284557343,
-0.12010609358549118,
-0.1307162046432495,
0.1753079891204834,
-0.18716774880886078,
0.7539350986480713,
-0.05162134766578674,
0.02202160283923149,
0.2660262882709503,
0.2764648199081421,
0.4896036684513092,
-0.3141958713531494,
0.01714133471250534,
-0.22134746611118317,
-0.3019837439060211,
-0.09656131267547607,
-0.11286494880914688,
0.12321418523788452,
0.27900227904319763,
0.041160985827445984,
0.4529608488082886,
-0.13979871571063995,
-0.007671821396797895,
0.1203010082244873,
0.2758704721927643,
-0.012365859001874924,
-0.09909787774085999,
-0.6099664568901062,
0.23492687940597534,
-0.11527669429779053,
0.28590869903564453,
-0.14560502767562866,
-0.02665492706000805,
0.01893492043018341,
-0.20110690593719482,
-0.12524870038032532,
0.1103072315454483,
-0.5258550643920898,
0.33524519205093384,
-0.11032223701477051,
-0.19214029610157013,
-0.23488008975982666,
0.14027604460716248,
0.2428162693977356,
0.020909247919917107,
-0.1805032342672348,
-0.016431374475359917,
-0.1787303239107132,
-0.2422131896018982,
-0.1114928275346756,
0.00660545052960515,
0.3349575698375702,
-0.1443488448858261,
-0.2299133837223053,
0.09646313637495041,
-0.125046506524086,
-0.3004513680934906,
0.11817265301942825,
-0.07091074436903,
-0.10809802263975143,
-0.13218671083450317,
-0.24444031715393066,
-0.18454857170581818,
0.08627796918153763,
-0.1746639758348465,
0.13675303757190704,
0.06880073994398117,
-0.08284096419811249,
0.10168830305337906,
0.14947599172592163,
-0.2983337640762329,
-0.11304153501987457,
0.3407582640647888,
-0.26778584718704224,
-0.297926127910614,
0.4692346751689911,
0.351972758769989,
-0.1586272418498993,
-0.16132192313671112,
0.1176547259092331,
0.23542368412017822,
-0.2757169008255005,
0.02879302017390728,
0.16200171411037445,
0.3008444309234619,
-0.009347478859126568,
0.31092265248298645,
0.30564019083976746,
0.10084644705057144,
0.007333867251873016,
-0.7207002639770508,
-0.3249890208244324,
0.19461941719055176,
0.12716665863990784,
0.28619828820228577,
0.17612557113170624,
0.11474479734897614,
0.02176583744585514,
-0.14196686446666718,
-0.310820072889328,
0.05638968199491501,
-0.19300182163715363,
-0.22462198138237,
0.20448744297027588,
-0.19606395065784454,
0.5058369040489197,
0.09617466479539871,
0.23531506955623627,
-0.18623211979866028,
-0.22380825877189636,
-0.25229740142822266,
0.012597506865859032,
0.1250666230916977,
-0.007205045782029629,
-0.15990431606769562,
0.07668501138687134,
-0.0989360362291336,
-0.10717026144266129,
-0.10151274502277374,
0.19095544517040253,
0.13839586079120636,
0.06878038495779037,
-0.07874622941017151,
0.1001250147819519,
0.030109936371445656,
-0.19079656898975372,
0.02850877307355404,
-0.025133991613984108,
0.30090516805648804,
0.22657188773155212,
0.061835385859012604,
0.024157678708434105,
-0.053306158632040024,
-0.0746179074048996,
-0.11217694729566574,
-0.041407037526369095,
-0.07796347141265869,
0.3595576584339142,
-0.3970215618610382,
-0.027572274208068848,
0.28107017278671265,
0.4986274838447571,
0.3485300540924072,
-0.3341701626777649,
0.14043152332305908,
0.09824992716312408,
0.20083625614643097,
-0.24180521070957184,
-0.13203683495521545,
0.18666456639766693,
-0.03183874860405922,
0.03097703494131565,
0.12332773953676224,
-0.05814039707183838,
0.05055546388030052,
-0.2328445464372635,
0.056709468364715576,
0.5290331840515137,
0.09246101975440979,
0.22493202984333038,
0.13084864616394043,
-0.01856706291437149,
0.06692217290401459,
0.06500107049942017,
0.036054808646440506,
0.12290916591882706,
0.2920597791671753,
-0.34958139061927795,
0.1462302953004837,
-0.05675971135497093,
0.06840015202760696,
-0.1147468239068985,
-0.6289652585983276,
0.33368226885795593,
0.16891595721244812,
-0.31917768716812134,
0.08784347027540207,
-0.24491217732429504,
0.4515693187713623,
-0.2186652421951294,
0.05171331763267517,
-0.29081231355667114,
0.32481855154037476,
0.05354996770620346,
-0.061902958899736404,
0.11665352433919907,
-0.26139283180236816,
-0.12228923290967941,
-0.024196090176701546,
0.059286460280418396,
-0.33784404397010803,
0.2547755539417267,
0.18737001717090607,
-0.17020870745182037,
-0.2505170702934265,
-0.05147375538945198,
0.2003881335258484,
-0.027891576290130615,
-0.10703589022159576,
0.33228984475135803,
0.3139646053314209,
-0.10759715735912323,
-0.0052597736939787865,
0.20781837403774261,
0.5430834293365479,
0.36382320523262024,
0.05988138169050217,
0.2568228244781494,
0.11453908681869507,
-0.13745252788066864,
0.06761504709720612,
0.03229491785168648,
0.2886667847633362,
0.08369256556034088,
0.381245493888855,
0.21704421937465668,
-0.1802069991827011,
0.16716744005680084,
-0.019858190789818764,
0.14901168644428253,
-0.22100026905536652,
0.3357274532318115,
-0.07279126346111298,
0.0364464595913887,
-0.37049171328544617,
0.06097688153386116,
-0.627651572227478,
-0.0764109343290329,
0.4593777060508728,
-0.011202153749763966,
0.009491478092968464,
-0.06973174214363098,
0.08088760823011398,
-0.10900288820266724,
0.7130911946296692,
0.3730812966823578,
0.4081924855709076,
-0.44813093543052673,
-0.09220907837152481,
-0.58048415184021,
0.07782478630542755,
-0.02387489378452301,
0.16887837648391724,
0.09095199406147003,
-0.1451890915632248,
0.022688493132591248,
0.27570781111717224,
0.26527175307273865,
0.08495210856199265,
0.15117307007312775,
0.09654328227043152,
-0.17954634130001068,
-0.11537633836269379,
0.022908931598067284,
0.06011579558253288,
-0.037616364657878876,
-0.23774859309196472,
0.05600765347480774,
-0.5345259308815002,
-0.0055661736987531185,
-0.004136837087571621,
-0.056389689445495605,
-0.010825064964592457,
-0.07826077193021774,
0.33974647521972656,
0.07795247435569763,
0.7522109746932983,
0.006127420347183943,
-0.12574376165866852,
-0.39828982949256897,
-0.32993176579475403,
-0.12805944681167603,
0.14618806540966034,
-0.03177240118384361,
0.23516224324703217,
-0.10757283121347427,
-0.3375987410545349,
-0.3766067326068878,
0.18668663501739502,
0.04968537017703056,
-0.22551746666431427,
-0.16470883786678314,
0.05244888737797737,
0.07880724966526031,
0.007881209254264832,
0.19636227190494537,
0.09204836189746857,
-0.034826308488845825,
0.3125104606151581,
-0.10615651309490204,
-0.35995620489120483,
0.6798818111419678,
-0.2259572148323059,
-0.04740538448095322,
-0.10425810515880585,
0.036588966846466064,
0.09119974821805954,
0.08804015815258026,
-0.579477071762085,
0.1991288959980011,
0.3769949972629547,
0.11346588283777237,
-0.43973127007484436,
0.2614184319972992,
-0.0718318298459053,
0.011539396829903126,
0.03498833626508713,
0.13892143964767456,
0.03210296109318733,
-0.27391594648361206,
-0.024995476007461548,
-0.15673092007637024
] |
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.17262035608291626,
-0.08458110690116882,
-0.09733720868825912,
0.1288861185312271,
0.4222562909126282,
0.20194438099861145,
0.3426603674888611,
0.062194470316171646,
-0.05755838751792908,
0.004357459954917431,
-0.14231087267398834,
0.08249624818563461,
-0.06605984270572662,
0.24891912937164307,
0.11230892688035965,
-0.1254214495420456,
-0.08084547519683838,
-0.11463040113449097,
-0.22911712527275085,
0.006714827846735716,
-0.20981068909168243,
0.14409343898296356,
-0.20964910089969635,
0.04321147873997688,
-0.421304315328598,
-0.16523726284503937,
0.0861218050122261,
0.35553884506225586,
-0.030172744765877724,
-0.25860312581062317,
0.3710349202156067,
0.013673472218215466,
0.0507146380841732,
0.4067727327346802,
-0.00011094118963228539,
0.2821536362171173,
0.4214933216571808,
-0.007743433583527803,
-0.4700697064399719,
-0.4119870662689209,
0.028616834431886673,
-0.25242674350738525,
0.20361238718032837,
-0.1215820461511612,
-0.08969341963529587,
-0.09933594614267349,
-0.048514168709516525,
-0.23515015840530396,
0.44307374954223633,
0.42446839809417725,
0.2697090208530426,
0.2736966013908386,
0.31105729937553406,
-0.09482397884130478,
-0.30825552344322205,
-0.22429093718528748,
0.04368104785680771,
0.5262336134910583,
-0.3041549623012543,
-0.055004071444272995,
0.236949160695076,
0.18526814877986908,
-0.11026425659656525,
0.039429083466529846,
0.10279294103384018,
0.03683975338935852,
-0.08111865818500519,
-0.36316266655921936,
0.016723938286304474,
0.07219403237104416,
0.24345402419567108,
-0.22600553929805756,
-0.4658714830875397,
-0.16389520466327667,
0.0304691344499588,
-0.35231178998947144,
0.20596465468406677,
0.07249359041452408,
-0.131037637591362,
0.15622654557228088,
-0.4081345498561859,
-0.16622485220432281,
-0.23317942023277283,
0.47679993510246277,
-0.08347086608409882,
-0.0691661387681961,
-0.10134536027908325,
0.1568790078163147,
0.2081463783979416,
-0.014765490777790546,
0.24560731649398804,
0.016395866870880127,
0.3304591476917267,
0.21354317665100098,
-0.48102182149887085,
0.11584135890007019,
0.016375338658690453,
0.13958929479122162,
0.13585901260375977,
0.2361457198858261,
0.08397757261991501,
-0.05708669498562813,
-0.12385772168636322,
0.08515246957540512,
0.060635045170784,
0.24538323283195496,
0.00893673300743103,
0.13872666656970978,
0.18724748492240906,
0.30584490299224854,
-0.012288753874599934,
0.03487173095345497,
-0.1371920257806778,
-0.26284563541412354,
-0.08476044237613678,
0.12667252123355865,
0.467296302318573,
-0.0668151006102562,
-0.14578112959861755,
0.22866621613502502,
-0.2497207522392273,
-0.07731244713068008,
0.12552876770496368,
0.507819652557373,
-0.245985746383667,
0.10307954996824265,
-0.0911054015159607,
0.24431149661540985,
-0.09848156571388245,
0.028139721602201462,
-0.27826255559921265,
0.1583169847726822,
-0.1469016671180725,
0.18585777282714844,
0.4209388196468353,
-0.4283127784729004,
0.3650209903717041,
-0.08279483765363693,
0.13289384543895721,
-0.26512476801872253,
0.07276183366775513,
-0.07313627004623413,
-0.22959673404693604,
0.33155688643455505,
-0.01284865289926529,
0.18786051869392395,
0.325527161359787,
0.21989957988262177,
-0.008619825355708599,
-0.09329617768526077,
-0.2572557330131531,
-0.5359468460083008,
0.28439536690711975,
0.23464997112751007,
-0.13258251547813416,
-0.2377673089504242,
-0.10398511588573456,
-0.07018736004829407,
-0.08551348745822906,
0.04999081790447235,
-0.22543750703334808,
-0.07588917762041092,
-0.00010205987200606614,
-0.18517352640628815,
0.4579843282699585,
0.47956544160842896,
-0.35626572370529175,
-0.13188263773918152,
-0.08892016112804413,
-0.1993902325630188,
0.10227499157190323,
0.25054869055747986,
-0.2102561593055725,
0.26782482862472534,
-0.03006245754659176,
-0.20019292831420898,
0.3244513273239136,
-0.2567797005176544,
-0.43037134408950806,
0.22959809005260468,
-0.1415836662054062,
0.07722046971321106,
-0.15979455411434174,
-0.01982799731194973,
-0.2300436943769455,
0.09766854345798492,
0.2224142700433731,
0.45447635650634766,
-0.22194233536720276,
-0.007508364040404558,
-0.07613664120435715,
-0.2887580096721649,
0.19717316329479218,
0.34950894117355347,
0.19055496156215668,
0.08371198177337646,
0.11229032278060913,
-0.12296644598245621,
0.13893258571624756,
0.07927165180444717,
-0.12887096405029297,
0.22225898504257202,
-0.07304497063159943,
0.06009681150317192,
0.005793251562863588,
0.19313330948352814,
-0.44566190242767334,
0.21716199815273285,
0.2575125992298126,
0.2054395228624344,
-0.15917328000068665,
0.07180102169513702,
-0.33143049478530884,
0.06447873264551163,
-0.3276309669017792,
-0.10173147171735764,
0.1681315302848816,
0.11009237170219421,
0.11498993635177612,
0.14874078333377838,
-0.3477538824081421,
0.5853902101516724,
-0.2807267904281616,
0.1544785052537918,
-0.36426040530204773,
0.33367329835891724,
-0.1378067433834076,
0.020809665322303772,
0.05325370281934738,
0.19486944377422333,
0.22709526121616364,
-0.21247975528240204,
-0.12306937575340271,
0.33506473898887634,
-0.09708806872367859,
0.13969792425632477,
0.10056961327791214,
0.020622415468096733,
0.08872135728597641,
-0.27322182059288025,
-0.007591656409204006,
0.17520885169506073,
-0.04842269793152809,
-0.06365522742271423,
0.22217069566249847,
0.2624587416648865,
-0.08243636041879654,
0.33501997590065,
0.1653447151184082,
-0.016716256737709045,
0.15577444434165955,
0.08227834850549698,
-0.07257566601037979,
-0.08043782413005829,
0.3488466441631317,
-0.2823639512062073,
0.4914529025554657,
-0.17793573439121246,
-0.18835364282131195,
-0.21429646015167236,
0.10730103403329849,
-0.2060755342245102,
0.03679947555065155,
0.18075868487358093,
-0.15274634957313538,
-0.19591251015663147,
-0.1415821611881256,
0.22858965396881104,
0.3831122815608978,
0.12666895985603333,
0.01740347407758236,
0.33305248618125916,
-0.11242304742336273,
-0.12555550038814545,
0.21396103501319885,
0.16420966386795044,
0.2534162402153015,
0.12569019198417664,
-0.1063404232263565,
0.08767534792423248,
-0.33358970284461975,
-0.29772594571113586,
0.045749515295028687,
0.29409992694854736,
-0.35056543350219727,
-0.02660500630736351,
-0.23481091856956482,
-0.10758376121520996,
0.04100147634744644,
-0.49585142731666565,
-0.1831311732530594,
-0.4478106200695038,
-0.16304972767829895,
-0.024508962407708168,
0.10010825097560883,
0.19134299457073212,
-0.13830363750457764,
0.20425349473953247,
0.2681010365486145,
-0.17570766806602478,
-0.19902510941028595,
-0.1413165181875229,
-0.12220650911331177,
0.0425470769405365,
0.19098292291164398,
-0.2497788667678833,
0.261508584022522,
-0.12377577275037766,
-0.19311067461967468,
-0.13389664888381958,
-0.043252453207969666,
0.044891633093357086,
-0.08075916767120361,
0.4253888428211212,
0.04150528833270073,
0.5178231596946716,
0.14749553799629211,
-0.052728183567523956,
0.37865903973579407,
-0.07507843524217606,
0.05258682370185852,
0.013706915080547333,
-0.012673799879848957,
0.17136479914188385,
0.10542481392621994,
-0.41975119709968567,
-0.5957533717155457,
-0.31860432028770447,
0.13327911496162415,
-0.14041675627231598,
0.16009032726287842,
0.4751751720905304,
0.1390487253665924,
0.072823166847229,
-0.027765357866883278,
0.3243477940559387,
-0.2952396273612976,
-0.5784928202629089,
0.34275057911872864,
-0.4262584447860718,
-0.3999854326248169,
0.05177774652838707,
0.23373810946941376,
0.15853065252304077,
-0.1368623822927475,
-0.49113786220550537,
-0.29129931330680847,
-0.021032143384218216,
-0.20825238525867462,
-0.14088836312294006,
0.03425198793411255,
-0.08178689330816269,
-0.1706445962190628,
-0.0807221457362175,
0.05285483971238136,
-0.215396448969841,
0.020766427740454674,
-0.18977966904640198,
0.1059553474187851,
0.05405936390161514,
0.5800538063049316,
-0.20692424476146698,
0.4104645252227783,
0.2627963125705719,
-0.09994082897901535,
0.4304727613925934,
-0.10178719460964203,
0.29820725321769714,
-0.03379300236701965,
-0.5136100649833679,
-0.03903929144144058,
-0.024887513369321823,
-0.04935920611023903,
0.24670158326625824,
0.11831160634756088,
-0.17501012980937958,
-0.4023716151714325,
-0.18232867121696472,
-0.4465426802635193,
-0.10940071195363998,
-0.0297654140740633,
0.11023573577404022,
0.06838636100292206,
0.033771540969610214,
0.11740045994520187,
-0.1562560796737671,
-0.02862720377743244,
0.023390494287014008,
0.3478066623210907,
-0.03887838125228882,
0.11804306507110596,
0.006739223841577768,
-0.09217439591884613,
-0.4314183294773102,
0.3346543312072754,
-0.17446081340312958,
0.4283653199672699,
-0.19772851467132568,
0.07675223052501678,
-0.06717175990343094,
-0.0039034283254295588,
0.6058325171470642,
-0.26516568660736084,
0.11586401611566544,
0.0965190976858139,
0.010437704622745514,
-0.3042711615562439,
-0.09392131865024567,
-0.03257869556546211,
0.24870452284812927,
0.165765181183815,
0.4471999704837799,
-0.07856956124305725,
-0.16756068170070648,
0.3270871639251709,
0.2548520863056183,
-0.13908420503139496,
-0.32141318917274475,
-0.1426791101694107,
-0.39352473616600037,
-0.22811223566532135,
-0.22428785264492035,
-0.34006467461586,
0.3046940267086029,
-0.034138333052396774,
-0.16921888291835785,
0.06572618335485458,
-0.09413934499025345,
0.1747618317604065,
0.07752782106399536,
0.13451558351516724,
0.0945739895105362,
0.11386112868785858,
0.3893187344074249,
0.05147232860326767,
0.19698597490787506,
0.6876192092895508,
-0.17472967505455017,
-0.28180432319641113,
0.0031069288961589336,
0.26535841822624207,
0.12663014233112335,
0.2776085436344147,
-0.21346993744373322,
-0.11072760820388794,
0.19178825616836548,
0.19745709002017975,
-0.005906918551772833,
0.2809211015701294,
0.3785071074962616,
0.09109891951084137,
-0.5953506827354431,
-0.594318151473999,
0.4862523078918457,
-0.09491043537855148,
0.11619792878627777,
0.18356995284557343,
-0.12010609358549118,
-0.1307162046432495,
0.1753079891204834,
-0.18716774880886078,
0.7539350986480713,
-0.05162134766578674,
0.02202160283923149,
0.2660262882709503,
0.2764648199081421,
0.4896036684513092,
-0.3141958713531494,
0.01714133471250534,
-0.22134746611118317,
-0.3019837439060211,
-0.09656131267547607,
-0.11286494880914688,
0.12321418523788452,
0.27900227904319763,
0.041160985827445984,
0.4529608488082886,
-0.13979871571063995,
-0.007671821396797895,
0.1203010082244873,
0.2758704721927643,
-0.012365859001874924,
-0.09909787774085999,
-0.6099664568901062,
0.23492687940597534,
-0.11527669429779053,
0.28590869903564453,
-0.14560502767562866,
-0.02665492706000805,
0.01893492043018341,
-0.20110690593719482,
-0.12524870038032532,
0.1103072315454483,
-0.5258550643920898,
0.33524519205093384,
-0.11032223701477051,
-0.19214029610157013,
-0.23488008975982666,
0.14027604460716248,
0.2428162693977356,
0.020909247919917107,
-0.1805032342672348,
-0.016431374475359917,
-0.1787303239107132,
-0.2422131896018982,
-0.1114928275346756,
0.00660545052960515,
0.3349575698375702,
-0.1443488448858261,
-0.2299133837223053,
0.09646313637495041,
-0.125046506524086,
-0.3004513680934906,
0.11817265301942825,
-0.07091074436903,
-0.10809802263975143,
-0.13218671083450317,
-0.24444031715393066,
-0.18454857170581818,
0.08627796918153763,
-0.1746639758348465,
0.13675303757190704,
0.06880073994398117,
-0.08284096419811249,
0.10168830305337906,
0.14947599172592163,
-0.2983337640762329,
-0.11304153501987457,
0.3407582640647888,
-0.26778584718704224,
-0.297926127910614,
0.4692346751689911,
0.351972758769989,
-0.1586272418498993,
-0.16132192313671112,
0.1176547259092331,
0.23542368412017822,
-0.2757169008255005,
0.02879302017390728,
0.16200171411037445,
0.3008444309234619,
-0.009347478859126568,
0.31092265248298645,
0.30564019083976746,
0.10084644705057144,
0.007333867251873016,
-0.7207002639770508,
-0.3249890208244324,
0.19461941719055176,
0.12716665863990784,
0.28619828820228577,
0.17612557113170624,
0.11474479734897614,
0.02176583744585514,
-0.14196686446666718,
-0.310820072889328,
0.05638968199491501,
-0.19300182163715363,
-0.22462198138237,
0.20448744297027588,
-0.19606395065784454,
0.5058369040489197,
0.09617466479539871,
0.23531506955623627,
-0.18623211979866028,
-0.22380825877189636,
-0.25229740142822266,
0.012597506865859032,
0.1250666230916977,
-0.007205045782029629,
-0.15990431606769562,
0.07668501138687134,
-0.0989360362291336,
-0.10717026144266129,
-0.10151274502277374,
0.19095544517040253,
0.13839586079120636,
0.06878038495779037,
-0.07874622941017151,
0.1001250147819519,
0.030109936371445656,
-0.19079656898975372,
0.02850877307355404,
-0.025133991613984108,
0.30090516805648804,
0.22657188773155212,
0.061835385859012604,
0.024157678708434105,
-0.053306158632040024,
-0.0746179074048996,
-0.11217694729566574,
-0.041407037526369095,
-0.07796347141265869,
0.3595576584339142,
-0.3970215618610382,
-0.027572274208068848,
0.28107017278671265,
0.4986274838447571,
0.3485300540924072,
-0.3341701626777649,
0.14043152332305908,
0.09824992716312408,
0.20083625614643097,
-0.24180521070957184,
-0.13203683495521545,
0.18666456639766693,
-0.03183874860405922,
0.03097703494131565,
0.12332773953676224,
-0.05814039707183838,
0.05055546388030052,
-0.2328445464372635,
0.056709468364715576,
0.5290331840515137,
0.09246101975440979,
0.22493202984333038,
0.13084864616394043,
-0.01856706291437149,
0.06692217290401459,
0.06500107049942017,
0.036054808646440506,
0.12290916591882706,
0.2920597791671753,
-0.34958139061927795,
0.1462302953004837,
-0.05675971135497093,
0.06840015202760696,
-0.1147468239068985,
-0.6289652585983276,
0.33368226885795593,
0.16891595721244812,
-0.31917768716812134,
0.08784347027540207,
-0.24491217732429504,
0.4515693187713623,
-0.2186652421951294,
0.05171331763267517,
-0.29081231355667114,
0.32481855154037476,
0.05354996770620346,
-0.061902958899736404,
0.11665352433919907,
-0.26139283180236816,
-0.12228923290967941,
-0.024196090176701546,
0.059286460280418396,
-0.33784404397010803,
0.2547755539417267,
0.18737001717090607,
-0.17020870745182037,
-0.2505170702934265,
-0.05147375538945198,
0.2003881335258484,
-0.027891576290130615,
-0.10703589022159576,
0.33228984475135803,
0.3139646053314209,
-0.10759715735912323,
-0.0052597736939787865,
0.20781837403774261,
0.5430834293365479,
0.36382320523262024,
0.05988138169050217,
0.2568228244781494,
0.11453908681869507,
-0.13745252788066864,
0.06761504709720612,
0.03229491785168648,
0.2886667847633362,
0.08369256556034088,
0.381245493888855,
0.21704421937465668,
-0.1802069991827011,
0.16716744005680084,
-0.019858190789818764,
0.14901168644428253,
-0.22100026905536652,
0.3357274532318115,
-0.07279126346111298,
0.0364464595913887,
-0.37049171328544617,
0.06097688153386116,
-0.627651572227478,
-0.0764109343290329,
0.4593777060508728,
-0.011202153749763966,
0.009491478092968464,
-0.06973174214363098,
0.08088760823011398,
-0.10900288820266724,
0.7130911946296692,
0.3730812966823578,
0.4081924855709076,
-0.44813093543052673,
-0.09220907837152481,
-0.58048415184021,
0.07782478630542755,
-0.02387489378452301,
0.16887837648391724,
0.09095199406147003,
-0.1451890915632248,
0.022688493132591248,
0.27570781111717224,
0.26527175307273865,
0.08495210856199265,
0.15117307007312775,
0.09654328227043152,
-0.17954634130001068,
-0.11537633836269379,
0.022908931598067284,
0.06011579558253288,
-0.037616364657878876,
-0.23774859309196472,
0.05600765347480774,
-0.5345259308815002,
-0.0055661736987531185,
-0.004136837087571621,
-0.056389689445495605,
-0.010825064964592457,
-0.07826077193021774,
0.33974647521972656,
0.07795247435569763,
0.7522109746932983,
0.006127420347183943,
-0.12574376165866852,
-0.39828982949256897,
-0.32993176579475403,
-0.12805944681167603,
0.14618806540966034,
-0.03177240118384361,
0.23516224324703217,
-0.10757283121347427,
-0.3375987410545349,
-0.3766067326068878,
0.18668663501739502,
0.04968537017703056,
-0.22551746666431427,
-0.16470883786678314,
0.05244888737797737,
0.07880724966526031,
0.007881209254264832,
0.19636227190494537,
0.09204836189746857,
-0.034826308488845825,
0.3125104606151581,
-0.10615651309490204,
-0.35995620489120483,
0.6798818111419678,
-0.2259572148323059,
-0.04740538448095322,
-0.10425810515880585,
0.036588966846466064,
0.09119974821805954,
0.08804015815258026,
-0.579477071762085,
0.1991288959980011,
0.3769949972629547,
0.11346588283777237,
-0.43973127007484436,
0.2614184319972992,
-0.0718318298459053,
0.011539396829903126,
0.03498833626508713,
0.13892143964767456,
0.03210296109318733,
-0.27391594648361206,
-0.024995476007461548,
-0.15673092007637024
] |
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.17262035608291626,
-0.08458110690116882,
-0.09733720868825912,
0.1288861185312271,
0.4222562909126282,
0.20194438099861145,
0.3426603674888611,
0.062194470316171646,
-0.05755838751792908,
0.004357459954917431,
-0.14231087267398834,
0.08249624818563461,
-0.06605984270572662,
0.24891912937164307,
0.11230892688035965,
-0.1254214495420456,
-0.08084547519683838,
-0.11463040113449097,
-0.22911712527275085,
0.006714827846735716,
-0.20981068909168243,
0.14409343898296356,
-0.20964910089969635,
0.04321147873997688,
-0.421304315328598,
-0.16523726284503937,
0.0861218050122261,
0.35553884506225586,
-0.030172744765877724,
-0.25860312581062317,
0.3710349202156067,
0.013673472218215466,
0.0507146380841732,
0.4067727327346802,
-0.00011094118963228539,
0.2821536362171173,
0.4214933216571808,
-0.007743433583527803,
-0.4700697064399719,
-0.4119870662689209,
0.028616834431886673,
-0.25242674350738525,
0.20361238718032837,
-0.1215820461511612,
-0.08969341963529587,
-0.09933594614267349,
-0.048514168709516525,
-0.23515015840530396,
0.44307374954223633,
0.42446839809417725,
0.2697090208530426,
0.2736966013908386,
0.31105729937553406,
-0.09482397884130478,
-0.30825552344322205,
-0.22429093718528748,
0.04368104785680771,
0.5262336134910583,
-0.3041549623012543,
-0.055004071444272995,
0.236949160695076,
0.18526814877986908,
-0.11026425659656525,
0.039429083466529846,
0.10279294103384018,
0.03683975338935852,
-0.08111865818500519,
-0.36316266655921936,
0.016723938286304474,
0.07219403237104416,
0.24345402419567108,
-0.22600553929805756,
-0.4658714830875397,
-0.16389520466327667,
0.0304691344499588,
-0.35231178998947144,
0.20596465468406677,
0.07249359041452408,
-0.131037637591362,
0.15622654557228088,
-0.4081345498561859,
-0.16622485220432281,
-0.23317942023277283,
0.47679993510246277,
-0.08347086608409882,
-0.0691661387681961,
-0.10134536027908325,
0.1568790078163147,
0.2081463783979416,
-0.014765490777790546,
0.24560731649398804,
0.016395866870880127,
0.3304591476917267,
0.21354317665100098,
-0.48102182149887085,
0.11584135890007019,
0.016375338658690453,
0.13958929479122162,
0.13585901260375977,
0.2361457198858261,
0.08397757261991501,
-0.05708669498562813,
-0.12385772168636322,
0.08515246957540512,
0.060635045170784,
0.24538323283195496,
0.00893673300743103,
0.13872666656970978,
0.18724748492240906,
0.30584490299224854,
-0.012288753874599934,
0.03487173095345497,
-0.1371920257806778,
-0.26284563541412354,
-0.08476044237613678,
0.12667252123355865,
0.467296302318573,
-0.0668151006102562,
-0.14578112959861755,
0.22866621613502502,
-0.2497207522392273,
-0.07731244713068008,
0.12552876770496368,
0.507819652557373,
-0.245985746383667,
0.10307954996824265,
-0.0911054015159607,
0.24431149661540985,
-0.09848156571388245,
0.028139721602201462,
-0.27826255559921265,
0.1583169847726822,
-0.1469016671180725,
0.18585777282714844,
0.4209388196468353,
-0.4283127784729004,
0.3650209903717041,
-0.08279483765363693,
0.13289384543895721,
-0.26512476801872253,
0.07276183366775513,
-0.07313627004623413,
-0.22959673404693604,
0.33155688643455505,
-0.01284865289926529,
0.18786051869392395,
0.325527161359787,
0.21989957988262177,
-0.008619825355708599,
-0.09329617768526077,
-0.2572557330131531,
-0.5359468460083008,
0.28439536690711975,
0.23464997112751007,
-0.13258251547813416,
-0.2377673089504242,
-0.10398511588573456,
-0.07018736004829407,
-0.08551348745822906,
0.04999081790447235,
-0.22543750703334808,
-0.07588917762041092,
-0.00010205987200606614,
-0.18517352640628815,
0.4579843282699585,
0.47956544160842896,
-0.35626572370529175,
-0.13188263773918152,
-0.08892016112804413,
-0.1993902325630188,
0.10227499157190323,
0.25054869055747986,
-0.2102561593055725,
0.26782482862472534,
-0.03006245754659176,
-0.20019292831420898,
0.3244513273239136,
-0.2567797005176544,
-0.43037134408950806,
0.22959809005260468,
-0.1415836662054062,
0.07722046971321106,
-0.15979455411434174,
-0.01982799731194973,
-0.2300436943769455,
0.09766854345798492,
0.2224142700433731,
0.45447635650634766,
-0.22194233536720276,
-0.007508364040404558,
-0.07613664120435715,
-0.2887580096721649,
0.19717316329479218,
0.34950894117355347,
0.19055496156215668,
0.08371198177337646,
0.11229032278060913,
-0.12296644598245621,
0.13893258571624756,
0.07927165180444717,
-0.12887096405029297,
0.22225898504257202,
-0.07304497063159943,
0.06009681150317192,
0.005793251562863588,
0.19313330948352814,
-0.44566190242767334,
0.21716199815273285,
0.2575125992298126,
0.2054395228624344,
-0.15917328000068665,
0.07180102169513702,
-0.33143049478530884,
0.06447873264551163,
-0.3276309669017792,
-0.10173147171735764,
0.1681315302848816,
0.11009237170219421,
0.11498993635177612,
0.14874078333377838,
-0.3477538824081421,
0.5853902101516724,
-0.2807267904281616,
0.1544785052537918,
-0.36426040530204773,
0.33367329835891724,
-0.1378067433834076,
0.020809665322303772,
0.05325370281934738,
0.19486944377422333,
0.22709526121616364,
-0.21247975528240204,
-0.12306937575340271,
0.33506473898887634,
-0.09708806872367859,
0.13969792425632477,
0.10056961327791214,
0.020622415468096733,
0.08872135728597641,
-0.27322182059288025,
-0.007591656409204006,
0.17520885169506073,
-0.04842269793152809,
-0.06365522742271423,
0.22217069566249847,
0.2624587416648865,
-0.08243636041879654,
0.33501997590065,
0.1653447151184082,
-0.016716256737709045,
0.15577444434165955,
0.08227834850549698,
-0.07257566601037979,
-0.08043782413005829,
0.3488466441631317,
-0.2823639512062073,
0.4914529025554657,
-0.17793573439121246,
-0.18835364282131195,
-0.21429646015167236,
0.10730103403329849,
-0.2060755342245102,
0.03679947555065155,
0.18075868487358093,
-0.15274634957313538,
-0.19591251015663147,
-0.1415821611881256,
0.22858965396881104,
0.3831122815608978,
0.12666895985603333,
0.01740347407758236,
0.33305248618125916,
-0.11242304742336273,
-0.12555550038814545,
0.21396103501319885,
0.16420966386795044,
0.2534162402153015,
0.12569019198417664,
-0.1063404232263565,
0.08767534792423248,
-0.33358970284461975,
-0.29772594571113586,
0.045749515295028687,
0.29409992694854736,
-0.35056543350219727,
-0.02660500630736351,
-0.23481091856956482,
-0.10758376121520996,
0.04100147634744644,
-0.49585142731666565,
-0.1831311732530594,
-0.4478106200695038,
-0.16304972767829895,
-0.024508962407708168,
0.10010825097560883,
0.19134299457073212,
-0.13830363750457764,
0.20425349473953247,
0.2681010365486145,
-0.17570766806602478,
-0.19902510941028595,
-0.1413165181875229,
-0.12220650911331177,
0.0425470769405365,
0.19098292291164398,
-0.2497788667678833,
0.261508584022522,
-0.12377577275037766,
-0.19311067461967468,
-0.13389664888381958,
-0.043252453207969666,
0.044891633093357086,
-0.08075916767120361,
0.4253888428211212,
0.04150528833270073,
0.5178231596946716,
0.14749553799629211,
-0.052728183567523956,
0.37865903973579407,
-0.07507843524217606,
0.05258682370185852,
0.013706915080547333,
-0.012673799879848957,
0.17136479914188385,
0.10542481392621994,
-0.41975119709968567,
-0.5957533717155457,
-0.31860432028770447,
0.13327911496162415,
-0.14041675627231598,
0.16009032726287842,
0.4751751720905304,
0.1390487253665924,
0.072823166847229,
-0.027765357866883278,
0.3243477940559387,
-0.2952396273612976,
-0.5784928202629089,
0.34275057911872864,
-0.4262584447860718,
-0.3999854326248169,
0.05177774652838707,
0.23373810946941376,
0.15853065252304077,
-0.1368623822927475,
-0.49113786220550537,
-0.29129931330680847,
-0.021032143384218216,
-0.20825238525867462,
-0.14088836312294006,
0.03425198793411255,
-0.08178689330816269,
-0.1706445962190628,
-0.0807221457362175,
0.05285483971238136,
-0.215396448969841,
0.020766427740454674,
-0.18977966904640198,
0.1059553474187851,
0.05405936390161514,
0.5800538063049316,
-0.20692424476146698,
0.4104645252227783,
0.2627963125705719,
-0.09994082897901535,
0.4304727613925934,
-0.10178719460964203,
0.29820725321769714,
-0.03379300236701965,
-0.5136100649833679,
-0.03903929144144058,
-0.024887513369321823,
-0.04935920611023903,
0.24670158326625824,
0.11831160634756088,
-0.17501012980937958,
-0.4023716151714325,
-0.18232867121696472,
-0.4465426802635193,
-0.10940071195363998,
-0.0297654140740633,
0.11023573577404022,
0.06838636100292206,
0.033771540969610214,
0.11740045994520187,
-0.1562560796737671,
-0.02862720377743244,
0.023390494287014008,
0.3478066623210907,
-0.03887838125228882,
0.11804306507110596,
0.006739223841577768,
-0.09217439591884613,
-0.4314183294773102,
0.3346543312072754,
-0.17446081340312958,
0.4283653199672699,
-0.19772851467132568,
0.07675223052501678,
-0.06717175990343094,
-0.0039034283254295588,
0.6058325171470642,
-0.26516568660736084,
0.11586401611566544,
0.0965190976858139,
0.010437704622745514,
-0.3042711615562439,
-0.09392131865024567,
-0.03257869556546211,
0.24870452284812927,
0.165765181183815,
0.4471999704837799,
-0.07856956124305725,
-0.16756068170070648,
0.3270871639251709,
0.2548520863056183,
-0.13908420503139496,
-0.32141318917274475,
-0.1426791101694107,
-0.39352473616600037,
-0.22811223566532135,
-0.22428785264492035,
-0.34006467461586,
0.3046940267086029,
-0.034138333052396774,
-0.16921888291835785,
0.06572618335485458,
-0.09413934499025345,
0.1747618317604065,
0.07752782106399536,
0.13451558351516724,
0.0945739895105362,
0.11386112868785858,
0.3893187344074249,
0.05147232860326767,
0.19698597490787506,
0.6876192092895508,
-0.17472967505455017,
-0.28180432319641113,
0.0031069288961589336,
0.26535841822624207,
0.12663014233112335,
0.2776085436344147,
-0.21346993744373322,
-0.11072760820388794,
0.19178825616836548,
0.19745709002017975,
-0.005906918551772833,
0.2809211015701294,
0.3785071074962616,
0.09109891951084137,
-0.5953506827354431,
-0.594318151473999,
0.4862523078918457,
-0.09491043537855148,
0.11619792878627777,
0.18356995284557343,
-0.12010609358549118,
-0.1307162046432495,
0.1753079891204834,
-0.18716774880886078,
0.7539350986480713,
-0.05162134766578674,
0.02202160283923149,
0.2660262882709503,
0.2764648199081421,
0.4896036684513092,
-0.3141958713531494,
0.01714133471250534,
-0.22134746611118317,
-0.3019837439060211,
-0.09656131267547607,
-0.11286494880914688,
0.12321418523788452,
0.27900227904319763,
0.041160985827445984,
0.4529608488082886,
-0.13979871571063995,
-0.007671821396797895,
0.1203010082244873,
0.2758704721927643,
-0.012365859001874924,
-0.09909787774085999,
-0.6099664568901062,
0.23492687940597534,
-0.11527669429779053,
0.28590869903564453,
-0.14560502767562866,
-0.02665492706000805,
0.01893492043018341,
-0.20110690593719482,
-0.12524870038032532,
0.1103072315454483,
-0.5258550643920898,
0.33524519205093384,
-0.11032223701477051,
-0.19214029610157013,
-0.23488008975982666,
0.14027604460716248,
0.2428162693977356,
0.020909247919917107,
-0.1805032342672348,
-0.016431374475359917,
-0.1787303239107132,
-0.2422131896018982,
-0.1114928275346756,
0.00660545052960515,
0.3349575698375702,
-0.1443488448858261,
-0.2299133837223053,
0.09646313637495041,
-0.125046506524086,
-0.3004513680934906,
0.11817265301942825,
-0.07091074436903,
-0.10809802263975143,
-0.13218671083450317,
-0.24444031715393066,
-0.18454857170581818,
0.08627796918153763,
-0.1746639758348465,
0.13675303757190704,
0.06880073994398117,
-0.08284096419811249,
0.10168830305337906,
0.14947599172592163,
-0.2983337640762329,
-0.11304153501987457,
0.3407582640647888,
-0.26778584718704224,
-0.297926127910614,
0.4692346751689911,
0.351972758769989,
-0.1586272418498993,
-0.16132192313671112,
0.1176547259092331,
0.23542368412017822,
-0.2757169008255005,
0.02879302017390728,
0.16200171411037445,
0.3008444309234619,
-0.009347478859126568,
0.31092265248298645,
0.30564019083976746,
0.10084644705057144,
0.007333867251873016,
-0.7207002639770508,
-0.3249890208244324,
0.19461941719055176,
0.12716665863990784,
0.28619828820228577,
0.17612557113170624,
0.11474479734897614,
0.02176583744585514,
-0.14196686446666718,
-0.310820072889328,
0.05638968199491501,
-0.19300182163715363,
-0.22462198138237,
0.20448744297027588,
-0.19606395065784454,
0.5058369040489197,
0.09617466479539871,
0.23531506955623627,
-0.18623211979866028,
-0.22380825877189636,
-0.25229740142822266,
0.012597506865859032,
0.1250666230916977,
-0.007205045782029629,
-0.15990431606769562,
0.07668501138687134,
-0.0989360362291336,
-0.10717026144266129,
-0.10151274502277374,
0.19095544517040253,
0.13839586079120636,
0.06878038495779037,
-0.07874622941017151,
0.1001250147819519,
0.030109936371445656,
-0.19079656898975372,
0.02850877307355404,
-0.025133991613984108,
0.30090516805648804,
0.22657188773155212,
0.061835385859012604,
0.024157678708434105,
-0.053306158632040024,
-0.0746179074048996,
-0.11217694729566574,
-0.041407037526369095,
-0.07796347141265869,
0.3595576584339142,
-0.3970215618610382,
-0.027572274208068848,
0.28107017278671265,
0.4986274838447571,
0.3485300540924072,
-0.3341701626777649,
0.14043152332305908,
0.09824992716312408,
0.20083625614643097,
-0.24180521070957184,
-0.13203683495521545,
0.18666456639766693,
-0.03183874860405922,
0.03097703494131565,
0.12332773953676224,
-0.05814039707183838,
0.05055546388030052,
-0.2328445464372635,
0.056709468364715576,
0.5290331840515137,
0.09246101975440979,
0.22493202984333038,
0.13084864616394043,
-0.01856706291437149,
0.06692217290401459,
0.06500107049942017,
0.036054808646440506,
0.12290916591882706,
0.2920597791671753,
-0.34958139061927795,
0.1462302953004837,
-0.05675971135497093,
0.06840015202760696,
-0.1147468239068985,
-0.6289652585983276,
0.33368226885795593,
0.16891595721244812,
-0.31917768716812134,
0.08784347027540207,
-0.24491217732429504,
0.4515693187713623,
-0.2186652421951294,
0.05171331763267517,
-0.29081231355667114,
0.32481855154037476,
0.05354996770620346,
-0.061902958899736404,
0.11665352433919907,
-0.26139283180236816,
-0.12228923290967941,
-0.024196090176701546,
0.059286460280418396,
-0.33784404397010803,
0.2547755539417267,
0.18737001717090607,
-0.17020870745182037,
-0.2505170702934265,
-0.05147375538945198,
0.2003881335258484,
-0.027891576290130615,
-0.10703589022159576,
0.33228984475135803,
0.3139646053314209,
-0.10759715735912323,
-0.0052597736939787865,
0.20781837403774261,
0.5430834293365479,
0.36382320523262024,
0.05988138169050217,
0.2568228244781494,
0.11453908681869507,
-0.13745252788066864,
0.06761504709720612,
0.03229491785168648,
0.2886667847633362,
0.08369256556034088,
0.381245493888855,
0.21704421937465668,
-0.1802069991827011,
0.16716744005680084,
-0.019858190789818764,
0.14901168644428253,
-0.22100026905536652,
0.3357274532318115,
-0.07279126346111298,
0.0364464595913887,
-0.37049171328544617,
0.06097688153386116,
-0.627651572227478,
-0.0764109343290329,
0.4593777060508728,
-0.011202153749763966,
0.009491478092968464,
-0.06973174214363098,
0.08088760823011398,
-0.10900288820266724,
0.7130911946296692,
0.3730812966823578,
0.4081924855709076,
-0.44813093543052673,
-0.09220907837152481,
-0.58048415184021,
0.07782478630542755,
-0.02387489378452301,
0.16887837648391724,
0.09095199406147003,
-0.1451890915632248,
0.022688493132591248,
0.27570781111717224,
0.26527175307273865,
0.08495210856199265,
0.15117307007312775,
0.09654328227043152,
-0.17954634130001068,
-0.11537633836269379,
0.022908931598067284,
0.06011579558253288,
-0.037616364657878876,
-0.23774859309196472,
0.05600765347480774,
-0.5345259308815002,
-0.0055661736987531185,
-0.004136837087571621,
-0.056389689445495605,
-0.010825064964592457,
-0.07826077193021774,
0.33974647521972656,
0.07795247435569763,
0.7522109746932983,
0.006127420347183943,
-0.12574376165866852,
-0.39828982949256897,
-0.32993176579475403,
-0.12805944681167603,
0.14618806540966034,
-0.03177240118384361,
0.23516224324703217,
-0.10757283121347427,
-0.3375987410545349,
-0.3766067326068878,
0.18668663501739502,
0.04968537017703056,
-0.22551746666431427,
-0.16470883786678314,
0.05244888737797737,
0.07880724966526031,
0.007881209254264832,
0.19636227190494537,
0.09204836189746857,
-0.034826308488845825,
0.3125104606151581,
-0.10615651309490204,
-0.35995620489120483,
0.6798818111419678,
-0.2259572148323059,
-0.04740538448095322,
-0.10425810515880585,
0.036588966846466064,
0.09119974821805954,
0.08804015815258026,
-0.579477071762085,
0.1991288959980011,
0.3769949972629547,
0.11346588283777237,
-0.43973127007484436,
0.2614184319972992,
-0.0718318298459053,
0.011539396829903126,
0.03498833626508713,
0.13892143964767456,
0.03210296109318733,
-0.27391594648361206,
-0.024995476007461548,
-0.15673092007637024
] |
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.17262035608291626,
-0.08458110690116882,
-0.09733720868825912,
0.1288861185312271,
0.4222562909126282,
0.20194438099861145,
0.3426603674888611,
0.062194470316171646,
-0.05755838751792908,
0.004357459954917431,
-0.14231087267398834,
0.08249624818563461,
-0.06605984270572662,
0.24891912937164307,
0.11230892688035965,
-0.1254214495420456,
-0.08084547519683838,
-0.11463040113449097,
-0.22911712527275085,
0.006714827846735716,
-0.20981068909168243,
0.14409343898296356,
-0.20964910089969635,
0.04321147873997688,
-0.421304315328598,
-0.16523726284503937,
0.0861218050122261,
0.35553884506225586,
-0.030172744765877724,
-0.25860312581062317,
0.3710349202156067,
0.013673472218215466,
0.0507146380841732,
0.4067727327346802,
-0.00011094118963228539,
0.2821536362171173,
0.4214933216571808,
-0.007743433583527803,
-0.4700697064399719,
-0.4119870662689209,
0.028616834431886673,
-0.25242674350738525,
0.20361238718032837,
-0.1215820461511612,
-0.08969341963529587,
-0.09933594614267349,
-0.048514168709516525,
-0.23515015840530396,
0.44307374954223633,
0.42446839809417725,
0.2697090208530426,
0.2736966013908386,
0.31105729937553406,
-0.09482397884130478,
-0.30825552344322205,
-0.22429093718528748,
0.04368104785680771,
0.5262336134910583,
-0.3041549623012543,
-0.055004071444272995,
0.236949160695076,
0.18526814877986908,
-0.11026425659656525,
0.039429083466529846,
0.10279294103384018,
0.03683975338935852,
-0.08111865818500519,
-0.36316266655921936,
0.016723938286304474,
0.07219403237104416,
0.24345402419567108,
-0.22600553929805756,
-0.4658714830875397,
-0.16389520466327667,
0.0304691344499588,
-0.35231178998947144,
0.20596465468406677,
0.07249359041452408,
-0.131037637591362,
0.15622654557228088,
-0.4081345498561859,
-0.16622485220432281,
-0.23317942023277283,
0.47679993510246277,
-0.08347086608409882,
-0.0691661387681961,
-0.10134536027908325,
0.1568790078163147,
0.2081463783979416,
-0.014765490777790546,
0.24560731649398804,
0.016395866870880127,
0.3304591476917267,
0.21354317665100098,
-0.48102182149887085,
0.11584135890007019,
0.016375338658690453,
0.13958929479122162,
0.13585901260375977,
0.2361457198858261,
0.08397757261991501,
-0.05708669498562813,
-0.12385772168636322,
0.08515246957540512,
0.060635045170784,
0.24538323283195496,
0.00893673300743103,
0.13872666656970978,
0.18724748492240906,
0.30584490299224854,
-0.012288753874599934,
0.03487173095345497,
-0.1371920257806778,
-0.26284563541412354,
-0.08476044237613678,
0.12667252123355865,
0.467296302318573,
-0.0668151006102562,
-0.14578112959861755,
0.22866621613502502,
-0.2497207522392273,
-0.07731244713068008,
0.12552876770496368,
0.507819652557373,
-0.245985746383667,
0.10307954996824265,
-0.0911054015159607,
0.24431149661540985,
-0.09848156571388245,
0.028139721602201462,
-0.27826255559921265,
0.1583169847726822,
-0.1469016671180725,
0.18585777282714844,
0.4209388196468353,
-0.4283127784729004,
0.3650209903717041,
-0.08279483765363693,
0.13289384543895721,
-0.26512476801872253,
0.07276183366775513,
-0.07313627004623413,
-0.22959673404693604,
0.33155688643455505,
-0.01284865289926529,
0.18786051869392395,
0.325527161359787,
0.21989957988262177,
-0.008619825355708599,
-0.09329617768526077,
-0.2572557330131531,
-0.5359468460083008,
0.28439536690711975,
0.23464997112751007,
-0.13258251547813416,
-0.2377673089504242,
-0.10398511588573456,
-0.07018736004829407,
-0.08551348745822906,
0.04999081790447235,
-0.22543750703334808,
-0.07588917762041092,
-0.00010205987200606614,
-0.18517352640628815,
0.4579843282699585,
0.47956544160842896,
-0.35626572370529175,
-0.13188263773918152,
-0.08892016112804413,
-0.1993902325630188,
0.10227499157190323,
0.25054869055747986,
-0.2102561593055725,
0.26782482862472534,
-0.03006245754659176,
-0.20019292831420898,
0.3244513273239136,
-0.2567797005176544,
-0.43037134408950806,
0.22959809005260468,
-0.1415836662054062,
0.07722046971321106,
-0.15979455411434174,
-0.01982799731194973,
-0.2300436943769455,
0.09766854345798492,
0.2224142700433731,
0.45447635650634766,
-0.22194233536720276,
-0.007508364040404558,
-0.07613664120435715,
-0.2887580096721649,
0.19717316329479218,
0.34950894117355347,
0.19055496156215668,
0.08371198177337646,
0.11229032278060913,
-0.12296644598245621,
0.13893258571624756,
0.07927165180444717,
-0.12887096405029297,
0.22225898504257202,
-0.07304497063159943,
0.06009681150317192,
0.005793251562863588,
0.19313330948352814,
-0.44566190242767334,
0.21716199815273285,
0.2575125992298126,
0.2054395228624344,
-0.15917328000068665,
0.07180102169513702,
-0.33143049478530884,
0.06447873264551163,
-0.3276309669017792,
-0.10173147171735764,
0.1681315302848816,
0.11009237170219421,
0.11498993635177612,
0.14874078333377838,
-0.3477538824081421,
0.5853902101516724,
-0.2807267904281616,
0.1544785052537918,
-0.36426040530204773,
0.33367329835891724,
-0.1378067433834076,
0.020809665322303772,
0.05325370281934738,
0.19486944377422333,
0.22709526121616364,
-0.21247975528240204,
-0.12306937575340271,
0.33506473898887634,
-0.09708806872367859,
0.13969792425632477,
0.10056961327791214,
0.020622415468096733,
0.08872135728597641,
-0.27322182059288025,
-0.007591656409204006,
0.17520885169506073,
-0.04842269793152809,
-0.06365522742271423,
0.22217069566249847,
0.2624587416648865,
-0.08243636041879654,
0.33501997590065,
0.1653447151184082,
-0.016716256737709045,
0.15577444434165955,
0.08227834850549698,
-0.07257566601037979,
-0.08043782413005829,
0.3488466441631317,
-0.2823639512062073,
0.4914529025554657,
-0.17793573439121246,
-0.18835364282131195,
-0.21429646015167236,
0.10730103403329849,
-0.2060755342245102,
0.03679947555065155,
0.18075868487358093,
-0.15274634957313538,
-0.19591251015663147,
-0.1415821611881256,
0.22858965396881104,
0.3831122815608978,
0.12666895985603333,
0.01740347407758236,
0.33305248618125916,
-0.11242304742336273,
-0.12555550038814545,
0.21396103501319885,
0.16420966386795044,
0.2534162402153015,
0.12569019198417664,
-0.1063404232263565,
0.08767534792423248,
-0.33358970284461975,
-0.29772594571113586,
0.045749515295028687,
0.29409992694854736,
-0.35056543350219727,
-0.02660500630736351,
-0.23481091856956482,
-0.10758376121520996,
0.04100147634744644,
-0.49585142731666565,
-0.1831311732530594,
-0.4478106200695038,
-0.16304972767829895,
-0.024508962407708168,
0.10010825097560883,
0.19134299457073212,
-0.13830363750457764,
0.20425349473953247,
0.2681010365486145,
-0.17570766806602478,
-0.19902510941028595,
-0.1413165181875229,
-0.12220650911331177,
0.0425470769405365,
0.19098292291164398,
-0.2497788667678833,
0.261508584022522,
-0.12377577275037766,
-0.19311067461967468,
-0.13389664888381958,
-0.043252453207969666,
0.044891633093357086,
-0.08075916767120361,
0.4253888428211212,
0.04150528833270073,
0.5178231596946716,
0.14749553799629211,
-0.052728183567523956,
0.37865903973579407,
-0.07507843524217606,
0.05258682370185852,
0.013706915080547333,
-0.012673799879848957,
0.17136479914188385,
0.10542481392621994,
-0.41975119709968567,
-0.5957533717155457,
-0.31860432028770447,
0.13327911496162415,
-0.14041675627231598,
0.16009032726287842,
0.4751751720905304,
0.1390487253665924,
0.072823166847229,
-0.027765357866883278,
0.3243477940559387,
-0.2952396273612976,
-0.5784928202629089,
0.34275057911872864,
-0.4262584447860718,
-0.3999854326248169,
0.05177774652838707,
0.23373810946941376,
0.15853065252304077,
-0.1368623822927475,
-0.49113786220550537,
-0.29129931330680847,
-0.021032143384218216,
-0.20825238525867462,
-0.14088836312294006,
0.03425198793411255,
-0.08178689330816269,
-0.1706445962190628,
-0.0807221457362175,
0.05285483971238136,
-0.215396448969841,
0.020766427740454674,
-0.18977966904640198,
0.1059553474187851,
0.05405936390161514,
0.5800538063049316,
-0.20692424476146698,
0.4104645252227783,
0.2627963125705719,
-0.09994082897901535,
0.4304727613925934,
-0.10178719460964203,
0.29820725321769714,
-0.03379300236701965,
-0.5136100649833679,
-0.03903929144144058,
-0.024887513369321823,
-0.04935920611023903,
0.24670158326625824,
0.11831160634756088,
-0.17501012980937958,
-0.4023716151714325,
-0.18232867121696472,
-0.4465426802635193,
-0.10940071195363998,
-0.0297654140740633,
0.11023573577404022,
0.06838636100292206,
0.033771540969610214,
0.11740045994520187,
-0.1562560796737671,
-0.02862720377743244,
0.023390494287014008,
0.3478066623210907,
-0.03887838125228882,
0.11804306507110596,
0.006739223841577768,
-0.09217439591884613,
-0.4314183294773102,
0.3346543312072754,
-0.17446081340312958,
0.4283653199672699,
-0.19772851467132568,
0.07675223052501678,
-0.06717175990343094,
-0.0039034283254295588,
0.6058325171470642,
-0.26516568660736084,
0.11586401611566544,
0.0965190976858139,
0.010437704622745514,
-0.3042711615562439,
-0.09392131865024567,
-0.03257869556546211,
0.24870452284812927,
0.165765181183815,
0.4471999704837799,
-0.07856956124305725,
-0.16756068170070648,
0.3270871639251709,
0.2548520863056183,
-0.13908420503139496,
-0.32141318917274475,
-0.1426791101694107,
-0.39352473616600037,
-0.22811223566532135,
-0.22428785264492035,
-0.34006467461586,
0.3046940267086029,
-0.034138333052396774,
-0.16921888291835785,
0.06572618335485458,
-0.09413934499025345,
0.1747618317604065,
0.07752782106399536,
0.13451558351516724,
0.0945739895105362,
0.11386112868785858,
0.3893187344074249,
0.05147232860326767,
0.19698597490787506,
0.6876192092895508,
-0.17472967505455017,
-0.28180432319641113,
0.0031069288961589336,
0.26535841822624207,
0.12663014233112335,
0.2776085436344147,
-0.21346993744373322,
-0.11072760820388794,
0.19178825616836548,
0.19745709002017975,
-0.005906918551772833,
0.2809211015701294,
0.3785071074962616,
0.09109891951084137,
-0.5953506827354431,
-0.594318151473999,
0.4862523078918457,
-0.09491043537855148,
0.11619792878627777,
0.18356995284557343,
-0.12010609358549118,
-0.1307162046432495,
0.1753079891204834,
-0.18716774880886078,
0.7539350986480713,
-0.05162134766578674,
0.02202160283923149,
0.2660262882709503,
0.2764648199081421,
0.4896036684513092,
-0.3141958713531494,
0.01714133471250534,
-0.22134746611118317,
-0.3019837439060211,
-0.09656131267547607,
-0.11286494880914688,
0.12321418523788452,
0.27900227904319763,
0.041160985827445984,
0.4529608488082886,
-0.13979871571063995,
-0.007671821396797895,
0.1203010082244873,
0.2758704721927643,
-0.012365859001874924,
-0.09909787774085999,
-0.6099664568901062,
0.23492687940597534,
-0.11527669429779053,
0.28590869903564453,
-0.14560502767562866,
-0.02665492706000805,
0.01893492043018341,
-0.20110690593719482,
-0.12524870038032532,
0.1103072315454483,
-0.5258550643920898,
0.33524519205093384,
-0.11032223701477051,
-0.19214029610157013,
-0.23488008975982666,
0.14027604460716248,
0.2428162693977356,
0.020909247919917107,
-0.1805032342672348,
-0.016431374475359917,
-0.1787303239107132,
-0.2422131896018982,
-0.1114928275346756,
0.00660545052960515,
0.3349575698375702,
-0.1443488448858261,
-0.2299133837223053,
0.09646313637495041,
-0.125046506524086,
-0.3004513680934906,
0.11817265301942825,
-0.07091074436903,
-0.10809802263975143,
-0.13218671083450317,
-0.24444031715393066,
-0.18454857170581818,
0.08627796918153763,
-0.1746639758348465,
0.13675303757190704,
0.06880073994398117,
-0.08284096419811249,
0.10168830305337906,
0.14947599172592163,
-0.2983337640762329,
-0.11304153501987457,
0.3407582640647888,
-0.26778584718704224,
-0.297926127910614,
0.4692346751689911,
0.351972758769989,
-0.1586272418498993,
-0.16132192313671112,
0.1176547259092331,
0.23542368412017822,
-0.2757169008255005,
0.02879302017390728,
0.16200171411037445,
0.3008444309234619,
-0.009347478859126568,
0.31092265248298645,
0.30564019083976746,
0.10084644705057144,
0.007333867251873016,
-0.7207002639770508,
-0.3249890208244324,
0.19461941719055176,
0.12716665863990784,
0.28619828820228577,
0.17612557113170624,
0.11474479734897614,
0.02176583744585514,
-0.14196686446666718,
-0.310820072889328,
0.05638968199491501,
-0.19300182163715363,
-0.22462198138237,
0.20448744297027588,
-0.19606395065784454,
0.5058369040489197,
0.09617466479539871,
0.23531506955623627,
-0.18623211979866028,
-0.22380825877189636,
-0.25229740142822266,
0.012597506865859032,
0.1250666230916977,
-0.007205045782029629,
-0.15990431606769562,
0.07668501138687134,
-0.0989360362291336,
-0.10717026144266129,
-0.10151274502277374,
0.19095544517040253,
0.13839586079120636,
0.06878038495779037,
-0.07874622941017151,
0.1001250147819519,
0.030109936371445656,
-0.19079656898975372,
0.02850877307355404,
-0.025133991613984108,
0.30090516805648804,
0.22657188773155212,
0.061835385859012604,
0.024157678708434105,
-0.053306158632040024,
-0.0746179074048996,
-0.11217694729566574,
-0.041407037526369095,
-0.07796347141265869,
0.3595576584339142,
-0.3970215618610382,
-0.027572274208068848,
0.28107017278671265,
0.4986274838447571,
0.3485300540924072,
-0.3341701626777649,
0.14043152332305908,
0.09824992716312408,
0.20083625614643097,
-0.24180521070957184,
-0.13203683495521545,
0.18666456639766693,
-0.03183874860405922,
0.03097703494131565,
0.12332773953676224,
-0.05814039707183838,
0.05055546388030052,
-0.2328445464372635,
0.056709468364715576,
0.5290331840515137,
0.09246101975440979,
0.22493202984333038,
0.13084864616394043,
-0.01856706291437149,
0.06692217290401459,
0.06500107049942017,
0.036054808646440506,
0.12290916591882706,
0.2920597791671753,
-0.34958139061927795,
0.1462302953004837,
-0.05675971135497093,
0.06840015202760696,
-0.1147468239068985,
-0.6289652585983276,
0.33368226885795593,
0.16891595721244812,
-0.31917768716812134,
0.08784347027540207,
-0.24491217732429504,
0.4515693187713623,
-0.2186652421951294,
0.05171331763267517,
-0.29081231355667114,
0.32481855154037476,
0.05354996770620346,
-0.061902958899736404,
0.11665352433919907,
-0.26139283180236816,
-0.12228923290967941,
-0.024196090176701546,
0.059286460280418396,
-0.33784404397010803,
0.2547755539417267,
0.18737001717090607,
-0.17020870745182037,
-0.2505170702934265,
-0.05147375538945198,
0.2003881335258484,
-0.027891576290130615,
-0.10703589022159576,
0.33228984475135803,
0.3139646053314209,
-0.10759715735912323,
-0.0052597736939787865,
0.20781837403774261,
0.5430834293365479,
0.36382320523262024,
0.05988138169050217,
0.2568228244781494,
0.11453908681869507,
-0.13745252788066864,
0.06761504709720612,
0.03229491785168648,
0.2886667847633362,
0.08369256556034088,
0.381245493888855,
0.21704421937465668,
-0.1802069991827011,
0.16716744005680084,
-0.019858190789818764,
0.14901168644428253,
-0.22100026905536652,
0.3357274532318115,
-0.07279126346111298,
0.0364464595913887,
-0.37049171328544617,
0.06097688153386116,
-0.627651572227478,
-0.0764109343290329,
0.4593777060508728,
-0.011202153749763966,
0.009491478092968464,
-0.06973174214363098,
0.08088760823011398,
-0.10900288820266724,
0.7130911946296692,
0.3730812966823578,
0.4081924855709076,
-0.44813093543052673,
-0.09220907837152481,
-0.58048415184021,
0.07782478630542755,
-0.02387489378452301,
0.16887837648391724,
0.09095199406147003,
-0.1451890915632248,
0.022688493132591248,
0.27570781111717224,
0.26527175307273865,
0.08495210856199265,
0.15117307007312775,
0.09654328227043152,
-0.17954634130001068,
-0.11537633836269379,
0.022908931598067284,
0.06011579558253288,
-0.037616364657878876,
-0.23774859309196472,
0.05600765347480774,
-0.5345259308815002,
-0.0055661736987531185,
-0.004136837087571621,
-0.056389689445495605,
-0.010825064964592457,
-0.07826077193021774,
0.33974647521972656,
0.07795247435569763,
0.7522109746932983,
0.006127420347183943,
-0.12574376165866852,
-0.39828982949256897,
-0.32993176579475403,
-0.12805944681167603,
0.14618806540966034,
-0.03177240118384361,
0.23516224324703217,
-0.10757283121347427,
-0.3375987410545349,
-0.3766067326068878,
0.18668663501739502,
0.04968537017703056,
-0.22551746666431427,
-0.16470883786678314,
0.05244888737797737,
0.07880724966526031,
0.007881209254264832,
0.19636227190494537,
0.09204836189746857,
-0.034826308488845825,
0.3125104606151581,
-0.10615651309490204,
-0.35995620489120483,
0.6798818111419678,
-0.2259572148323059,
-0.04740538448095322,
-0.10425810515880585,
0.036588966846466064,
0.09119974821805954,
0.08804015815258026,
-0.579477071762085,
0.1991288959980011,
0.3769949972629547,
0.11346588283777237,
-0.43973127007484436,
0.2614184319972992,
-0.0718318298459053,
0.011539396829903126,
0.03498833626508713,
0.13892143964767456,
0.03210296109318733,
-0.27391594648361206,
-0.024995476007461548,
-0.15673092007637024
] |
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.17262035608291626,
-0.08458110690116882,
-0.09733720868825912,
0.1288861185312271,
0.4222562909126282,
0.20194438099861145,
0.3426603674888611,
0.062194470316171646,
-0.05755838751792908,
0.004357459954917431,
-0.14231087267398834,
0.08249624818563461,
-0.06605984270572662,
0.24891912937164307,
0.11230892688035965,
-0.1254214495420456,
-0.08084547519683838,
-0.11463040113449097,
-0.22911712527275085,
0.006714827846735716,
-0.20981068909168243,
0.14409343898296356,
-0.20964910089969635,
0.04321147873997688,
-0.421304315328598,
-0.16523726284503937,
0.0861218050122261,
0.35553884506225586,
-0.030172744765877724,
-0.25860312581062317,
0.3710349202156067,
0.013673472218215466,
0.0507146380841732,
0.4067727327346802,
-0.00011094118963228539,
0.2821536362171173,
0.4214933216571808,
-0.007743433583527803,
-0.4700697064399719,
-0.4119870662689209,
0.028616834431886673,
-0.25242674350738525,
0.20361238718032837,
-0.1215820461511612,
-0.08969341963529587,
-0.09933594614267349,
-0.048514168709516525,
-0.23515015840530396,
0.44307374954223633,
0.42446839809417725,
0.2697090208530426,
0.2736966013908386,
0.31105729937553406,
-0.09482397884130478,
-0.30825552344322205,
-0.22429093718528748,
0.04368104785680771,
0.5262336134910583,
-0.3041549623012543,
-0.055004071444272995,
0.236949160695076,
0.18526814877986908,
-0.11026425659656525,
0.039429083466529846,
0.10279294103384018,
0.03683975338935852,
-0.08111865818500519,
-0.36316266655921936,
0.016723938286304474,
0.07219403237104416,
0.24345402419567108,
-0.22600553929805756,
-0.4658714830875397,
-0.16389520466327667,
0.0304691344499588,
-0.35231178998947144,
0.20596465468406677,
0.07249359041452408,
-0.131037637591362,
0.15622654557228088,
-0.4081345498561859,
-0.16622485220432281,
-0.23317942023277283,
0.47679993510246277,
-0.08347086608409882,
-0.0691661387681961,
-0.10134536027908325,
0.1568790078163147,
0.2081463783979416,
-0.014765490777790546,
0.24560731649398804,
0.016395866870880127,
0.3304591476917267,
0.21354317665100098,
-0.48102182149887085,
0.11584135890007019,
0.016375338658690453,
0.13958929479122162,
0.13585901260375977,
0.2361457198858261,
0.08397757261991501,
-0.05708669498562813,
-0.12385772168636322,
0.08515246957540512,
0.060635045170784,
0.24538323283195496,
0.00893673300743103,
0.13872666656970978,
0.18724748492240906,
0.30584490299224854,
-0.012288753874599934,
0.03487173095345497,
-0.1371920257806778,
-0.26284563541412354,
-0.08476044237613678,
0.12667252123355865,
0.467296302318573,
-0.0668151006102562,
-0.14578112959861755,
0.22866621613502502,
-0.2497207522392273,
-0.07731244713068008,
0.12552876770496368,
0.507819652557373,
-0.245985746383667,
0.10307954996824265,
-0.0911054015159607,
0.24431149661540985,
-0.09848156571388245,
0.028139721602201462,
-0.27826255559921265,
0.1583169847726822,
-0.1469016671180725,
0.18585777282714844,
0.4209388196468353,
-0.4283127784729004,
0.3650209903717041,
-0.08279483765363693,
0.13289384543895721,
-0.26512476801872253,
0.07276183366775513,
-0.07313627004623413,
-0.22959673404693604,
0.33155688643455505,
-0.01284865289926529,
0.18786051869392395,
0.325527161359787,
0.21989957988262177,
-0.008619825355708599,
-0.09329617768526077,
-0.2572557330131531,
-0.5359468460083008,
0.28439536690711975,
0.23464997112751007,
-0.13258251547813416,
-0.2377673089504242,
-0.10398511588573456,
-0.07018736004829407,
-0.08551348745822906,
0.04999081790447235,
-0.22543750703334808,
-0.07588917762041092,
-0.00010205987200606614,
-0.18517352640628815,
0.4579843282699585,
0.47956544160842896,
-0.35626572370529175,
-0.13188263773918152,
-0.08892016112804413,
-0.1993902325630188,
0.10227499157190323,
0.25054869055747986,
-0.2102561593055725,
0.26782482862472534,
-0.03006245754659176,
-0.20019292831420898,
0.3244513273239136,
-0.2567797005176544,
-0.43037134408950806,
0.22959809005260468,
-0.1415836662054062,
0.07722046971321106,
-0.15979455411434174,
-0.01982799731194973,
-0.2300436943769455,
0.09766854345798492,
0.2224142700433731,
0.45447635650634766,
-0.22194233536720276,
-0.007508364040404558,
-0.07613664120435715,
-0.2887580096721649,
0.19717316329479218,
0.34950894117355347,
0.19055496156215668,
0.08371198177337646,
0.11229032278060913,
-0.12296644598245621,
0.13893258571624756,
0.07927165180444717,
-0.12887096405029297,
0.22225898504257202,
-0.07304497063159943,
0.06009681150317192,
0.005793251562863588,
0.19313330948352814,
-0.44566190242767334,
0.21716199815273285,
0.2575125992298126,
0.2054395228624344,
-0.15917328000068665,
0.07180102169513702,
-0.33143049478530884,
0.06447873264551163,
-0.3276309669017792,
-0.10173147171735764,
0.1681315302848816,
0.11009237170219421,
0.11498993635177612,
0.14874078333377838,
-0.3477538824081421,
0.5853902101516724,
-0.2807267904281616,
0.1544785052537918,
-0.36426040530204773,
0.33367329835891724,
-0.1378067433834076,
0.020809665322303772,
0.05325370281934738,
0.19486944377422333,
0.22709526121616364,
-0.21247975528240204,
-0.12306937575340271,
0.33506473898887634,
-0.09708806872367859,
0.13969792425632477,
0.10056961327791214,
0.020622415468096733,
0.08872135728597641,
-0.27322182059288025,
-0.007591656409204006,
0.17520885169506073,
-0.04842269793152809,
-0.06365522742271423,
0.22217069566249847,
0.2624587416648865,
-0.08243636041879654,
0.33501997590065,
0.1653447151184082,
-0.016716256737709045,
0.15577444434165955,
0.08227834850549698,
-0.07257566601037979,
-0.08043782413005829,
0.3488466441631317,
-0.2823639512062073,
0.4914529025554657,
-0.17793573439121246,
-0.18835364282131195,
-0.21429646015167236,
0.10730103403329849,
-0.2060755342245102,
0.03679947555065155,
0.18075868487358093,
-0.15274634957313538,
-0.19591251015663147,
-0.1415821611881256,
0.22858965396881104,
0.3831122815608978,
0.12666895985603333,
0.01740347407758236,
0.33305248618125916,
-0.11242304742336273,
-0.12555550038814545,
0.21396103501319885,
0.16420966386795044,
0.2534162402153015,
0.12569019198417664,
-0.1063404232263565,
0.08767534792423248,
-0.33358970284461975,
-0.29772594571113586,
0.045749515295028687,
0.29409992694854736,
-0.35056543350219727,
-0.02660500630736351,
-0.23481091856956482,
-0.10758376121520996,
0.04100147634744644,
-0.49585142731666565,
-0.1831311732530594,
-0.4478106200695038,
-0.16304972767829895,
-0.024508962407708168,
0.10010825097560883,
0.19134299457073212,
-0.13830363750457764,
0.20425349473953247,
0.2681010365486145,
-0.17570766806602478,
-0.19902510941028595,
-0.1413165181875229,
-0.12220650911331177,
0.0425470769405365,
0.19098292291164398,
-0.2497788667678833,
0.261508584022522,
-0.12377577275037766,
-0.19311067461967468,
-0.13389664888381958,
-0.043252453207969666,
0.044891633093357086,
-0.08075916767120361,
0.4253888428211212,
0.04150528833270073,
0.5178231596946716,
0.14749553799629211,
-0.052728183567523956,
0.37865903973579407,
-0.07507843524217606,
0.05258682370185852,
0.013706915080547333,
-0.012673799879848957,
0.17136479914188385,
0.10542481392621994,
-0.41975119709968567,
-0.5957533717155457,
-0.31860432028770447,
0.13327911496162415,
-0.14041675627231598,
0.16009032726287842,
0.4751751720905304,
0.1390487253665924,
0.072823166847229,
-0.027765357866883278,
0.3243477940559387,
-0.2952396273612976,
-0.5784928202629089,
0.34275057911872864,
-0.4262584447860718,
-0.3999854326248169,
0.05177774652838707,
0.23373810946941376,
0.15853065252304077,
-0.1368623822927475,
-0.49113786220550537,
-0.29129931330680847,
-0.021032143384218216,
-0.20825238525867462,
-0.14088836312294006,
0.03425198793411255,
-0.08178689330816269,
-0.1706445962190628,
-0.0807221457362175,
0.05285483971238136,
-0.215396448969841,
0.020766427740454674,
-0.18977966904640198,
0.1059553474187851,
0.05405936390161514,
0.5800538063049316,
-0.20692424476146698,
0.4104645252227783,
0.2627963125705719,
-0.09994082897901535,
0.4304727613925934,
-0.10178719460964203,
0.29820725321769714,
-0.03379300236701965,
-0.5136100649833679,
-0.03903929144144058,
-0.024887513369321823,
-0.04935920611023903,
0.24670158326625824,
0.11831160634756088,
-0.17501012980937958,
-0.4023716151714325,
-0.18232867121696472,
-0.4465426802635193,
-0.10940071195363998,
-0.0297654140740633,
0.11023573577404022,
0.06838636100292206,
0.033771540969610214,
0.11740045994520187,
-0.1562560796737671,
-0.02862720377743244,
0.023390494287014008,
0.3478066623210907,
-0.03887838125228882,
0.11804306507110596,
0.006739223841577768,
-0.09217439591884613,
-0.4314183294773102,
0.3346543312072754,
-0.17446081340312958,
0.4283653199672699,
-0.19772851467132568,
0.07675223052501678,
-0.06717175990343094,
-0.0039034283254295588,
0.6058325171470642,
-0.26516568660736084,
0.11586401611566544,
0.0965190976858139,
0.010437704622745514,
-0.3042711615562439,
-0.09392131865024567,
-0.03257869556546211,
0.24870452284812927,
0.165765181183815,
0.4471999704837799,
-0.07856956124305725,
-0.16756068170070648,
0.3270871639251709,
0.2548520863056183,
-0.13908420503139496,
-0.32141318917274475,
-0.1426791101694107,
-0.39352473616600037,
-0.22811223566532135,
-0.22428785264492035,
-0.34006467461586,
0.3046940267086029,
-0.034138333052396774,
-0.16921888291835785,
0.06572618335485458,
-0.09413934499025345,
0.1747618317604065,
0.07752782106399536,
0.13451558351516724,
0.0945739895105362,
0.11386112868785858,
0.3893187344074249,
0.05147232860326767,
0.19698597490787506,
0.6876192092895508,
-0.17472967505455017,
-0.28180432319641113,
0.0031069288961589336,
0.26535841822624207,
0.12663014233112335,
0.2776085436344147,
-0.21346993744373322,
-0.11072760820388794,
0.19178825616836548,
0.19745709002017975,
-0.005906918551772833,
0.2809211015701294,
0.3785071074962616,
0.09109891951084137,
-0.5953506827354431,
-0.594318151473999,
0.4862523078918457,
-0.09491043537855148,
0.11619792878627777,
0.18356995284557343,
-0.12010609358549118,
-0.1307162046432495,
0.1753079891204834,
-0.18716774880886078,
0.7539350986480713,
-0.05162134766578674,
0.02202160283923149,
0.2660262882709503,
0.2764648199081421,
0.4896036684513092,
-0.3141958713531494,
0.01714133471250534,
-0.22134746611118317,
-0.3019837439060211,
-0.09656131267547607,
-0.11286494880914688,
0.12321418523788452,
0.27900227904319763,
0.041160985827445984,
0.4529608488082886,
-0.13979871571063995,
-0.007671821396797895,
0.1203010082244873,
0.2758704721927643,
-0.012365859001874924,
-0.09909787774085999,
-0.6099664568901062,
0.23492687940597534,
-0.11527669429779053,
0.28590869903564453,
-0.14560502767562866,
-0.02665492706000805,
0.01893492043018341,
-0.20110690593719482,
-0.12524870038032532,
0.1103072315454483,
-0.5258550643920898,
0.33524519205093384,
-0.11032223701477051,
-0.19214029610157013,
-0.23488008975982666,
0.14027604460716248,
0.2428162693977356,
0.020909247919917107,
-0.1805032342672348,
-0.016431374475359917,
-0.1787303239107132,
-0.2422131896018982,
-0.1114928275346756,
0.00660545052960515,
0.3349575698375702,
-0.1443488448858261,
-0.2299133837223053,
0.09646313637495041,
-0.125046506524086,
-0.3004513680934906,
0.11817265301942825,
-0.07091074436903,
-0.10809802263975143,
-0.13218671083450317,
-0.24444031715393066,
-0.18454857170581818,
0.08627796918153763,
-0.1746639758348465,
0.13675303757190704,
0.06880073994398117,
-0.08284096419811249,
0.10168830305337906,
0.14947599172592163,
-0.2983337640762329,
-0.11304153501987457,
0.3407582640647888,
-0.26778584718704224,
-0.297926127910614,
0.4692346751689911,
0.351972758769989,
-0.1586272418498993,
-0.16132192313671112,
0.1176547259092331,
0.23542368412017822,
-0.2757169008255005,
0.02879302017390728,
0.16200171411037445,
0.3008444309234619,
-0.009347478859126568,
0.31092265248298645,
0.30564019083976746,
0.10084644705057144,
0.007333867251873016,
-0.7207002639770508,
-0.3249890208244324,
0.19461941719055176,
0.12716665863990784,
0.28619828820228577,
0.17612557113170624,
0.11474479734897614,
0.02176583744585514,
-0.14196686446666718,
-0.310820072889328,
0.05638968199491501,
-0.19300182163715363,
-0.22462198138237,
0.20448744297027588,
-0.19606395065784454,
0.5058369040489197,
0.09617466479539871,
0.23531506955623627,
-0.18623211979866028,
-0.22380825877189636,
-0.25229740142822266,
0.012597506865859032,
0.1250666230916977,
-0.007205045782029629,
-0.15990431606769562,
0.07668501138687134,
-0.0989360362291336,
-0.10717026144266129,
-0.10151274502277374,
0.19095544517040253,
0.13839586079120636,
0.06878038495779037,
-0.07874622941017151,
0.1001250147819519,
0.030109936371445656,
-0.19079656898975372,
0.02850877307355404,
-0.025133991613984108,
0.30090516805648804,
0.22657188773155212,
0.061835385859012604,
0.024157678708434105,
-0.053306158632040024,
-0.0746179074048996,
-0.11217694729566574,
-0.041407037526369095,
-0.07796347141265869,
0.3595576584339142,
-0.3970215618610382,
-0.027572274208068848,
0.28107017278671265,
0.4986274838447571,
0.3485300540924072,
-0.3341701626777649,
0.14043152332305908,
0.09824992716312408,
0.20083625614643097,
-0.24180521070957184,
-0.13203683495521545,
0.18666456639766693,
-0.03183874860405922,
0.03097703494131565,
0.12332773953676224,
-0.05814039707183838,
0.05055546388030052,
-0.2328445464372635,
0.056709468364715576,
0.5290331840515137,
0.09246101975440979,
0.22493202984333038,
0.13084864616394043,
-0.01856706291437149,
0.06692217290401459,
0.06500107049942017,
0.036054808646440506,
0.12290916591882706,
0.2920597791671753,
-0.34958139061927795,
0.1462302953004837,
-0.05675971135497093,
0.06840015202760696,
-0.1147468239068985,
-0.6289652585983276,
0.33368226885795593,
0.16891595721244812,
-0.31917768716812134,
0.08784347027540207,
-0.24491217732429504,
0.4515693187713623,
-0.2186652421951294,
0.05171331763267517,
-0.29081231355667114,
0.32481855154037476,
0.05354996770620346,
-0.061902958899736404,
0.11665352433919907,
-0.26139283180236816,
-0.12228923290967941,
-0.024196090176701546,
0.059286460280418396,
-0.33784404397010803,
0.2547755539417267,
0.18737001717090607,
-0.17020870745182037,
-0.2505170702934265,
-0.05147375538945198,
0.2003881335258484,
-0.027891576290130615,
-0.10703589022159576,
0.33228984475135803,
0.3139646053314209,
-0.10759715735912323,
-0.0052597736939787865,
0.20781837403774261,
0.5430834293365479,
0.36382320523262024,
0.05988138169050217,
0.2568228244781494,
0.11453908681869507,
-0.13745252788066864,
0.06761504709720612,
0.03229491785168648,
0.2886667847633362,
0.08369256556034088,
0.381245493888855,
0.21704421937465668,
-0.1802069991827011,
0.16716744005680084,
-0.019858190789818764,
0.14901168644428253,
-0.22100026905536652,
0.3357274532318115,
-0.07279126346111298,
0.0364464595913887,
-0.37049171328544617,
0.06097688153386116,
-0.627651572227478,
-0.0764109343290329,
0.4593777060508728,
-0.011202153749763966,
0.009491478092968464,
-0.06973174214363098,
0.08088760823011398,
-0.10900288820266724,
0.7130911946296692,
0.3730812966823578,
0.4081924855709076,
-0.44813093543052673,
-0.09220907837152481,
-0.58048415184021,
0.07782478630542755,
-0.02387489378452301,
0.16887837648391724,
0.09095199406147003,
-0.1451890915632248,
0.022688493132591248,
0.27570781111717224,
0.26527175307273865,
0.08495210856199265,
0.15117307007312775,
0.09654328227043152,
-0.17954634130001068,
-0.11537633836269379,
0.022908931598067284,
0.06011579558253288,
-0.037616364657878876,
-0.23774859309196472,
0.05600765347480774,
-0.5345259308815002,
-0.0055661736987531185,
-0.004136837087571621,
-0.056389689445495605,
-0.010825064964592457,
-0.07826077193021774,
0.33974647521972656,
0.07795247435569763,
0.7522109746932983,
0.006127420347183943,
-0.12574376165866852,
-0.39828982949256897,
-0.32993176579475403,
-0.12805944681167603,
0.14618806540966034,
-0.03177240118384361,
0.23516224324703217,
-0.10757283121347427,
-0.3375987410545349,
-0.3766067326068878,
0.18668663501739502,
0.04968537017703056,
-0.22551746666431427,
-0.16470883786678314,
0.05244888737797737,
0.07880724966526031,
0.007881209254264832,
0.19636227190494537,
0.09204836189746857,
-0.034826308488845825,
0.3125104606151581,
-0.10615651309490204,
-0.35995620489120483,
0.6798818111419678,
-0.2259572148323059,
-0.04740538448095322,
-0.10425810515880585,
0.036588966846466064,
0.09119974821805954,
0.08804015815258026,
-0.579477071762085,
0.1991288959980011,
0.3769949972629547,
0.11346588283777237,
-0.43973127007484436,
0.2614184319972992,
-0.0718318298459053,
0.011539396829903126,
0.03498833626508713,
0.13892143964767456,
0.03210296109318733,
-0.27391594648361206,
-0.024995476007461548,
-0.15673092007637024
] |
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.

| 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.

| [
-0.17262035608291626,
-0.08458110690116882,
-0.09733720868825912,
0.1288861185312271,
0.4222562909126282,
0.20194438099861145,
0.3426603674888611,
0.062194470316171646,
-0.05755838751792908,
0.004357459954917431,
-0.14231087267398834,
0.08249624818563461,
-0.06605984270572662,
0.24891912937164307,
0.11230892688035965,
-0.1254214495420456,
-0.08084547519683838,
-0.11463040113449097,
-0.22911712527275085,
0.006714827846735716,
-0.20981068909168243,
0.14409343898296356,
-0.20964910089969635,
0.04321147873997688,
-0.421304315328598,
-0.16523726284503937,
0.0861218050122261,
0.35553884506225586,
-0.030172744765877724,
-0.25860312581062317,
0.3710349202156067,
0.013673472218215466,
0.0507146380841732,
0.4067727327346802,
-0.00011094118963228539,
0.2821536362171173,
0.4214933216571808,
-0.007743433583527803,
-0.4700697064399719,
-0.4119870662689209,
0.028616834431886673,
-0.25242674350738525,
0.20361238718032837,
-0.1215820461511612,
-0.08969341963529587,
-0.09933594614267349,
-0.048514168709516525,
-0.23515015840530396,
0.44307374954223633,
0.42446839809417725,
0.2697090208530426,
0.2736966013908386,
0.31105729937553406,
-0.09482397884130478,
-0.30825552344322205,
-0.22429093718528748,
0.04368104785680771,
0.5262336134910583,
-0.3041549623012543,
-0.055004071444272995,
0.236949160695076,
0.18526814877986908,
-0.11026425659656525,
0.039429083466529846,
0.10279294103384018,
0.03683975338935852,
-0.08111865818500519,
-0.36316266655921936,
0.016723938286304474,
0.07219403237104416,
0.24345402419567108,
-0.22600553929805756,
-0.4658714830875397,
-0.16389520466327667,
0.0304691344499588,
-0.35231178998947144,
0.20596465468406677,
0.07249359041452408,
-0.131037637591362,
0.15622654557228088,
-0.4081345498561859,
-0.16622485220432281,
-0.23317942023277283,
0.47679993510246277,
-0.08347086608409882,
-0.0691661387681961,
-0.10134536027908325,
0.1568790078163147,
0.2081463783979416,
-0.014765490777790546,
0.24560731649398804,
0.016395866870880127,
0.3304591476917267,
0.21354317665100098,
-0.48102182149887085,
0.11584135890007019,
0.016375338658690453,
0.13958929479122162,
0.13585901260375977,
0.2361457198858261,
0.08397757261991501,
-0.05708669498562813,
-0.12385772168636322,
0.08515246957540512,
0.060635045170784,
0.24538323283195496,
0.00893673300743103,
0.13872666656970978,
0.18724748492240906,
0.30584490299224854,
-0.012288753874599934,
0.03487173095345497,
-0.1371920257806778,
-0.26284563541412354,
-0.08476044237613678,
0.12667252123355865,
0.467296302318573,
-0.0668151006102562,
-0.14578112959861755,
0.22866621613502502,
-0.2497207522392273,
-0.07731244713068008,
0.12552876770496368,
0.507819652557373,
-0.245985746383667,
0.10307954996824265,
-0.0911054015159607,
0.24431149661540985,
-0.09848156571388245,
0.028139721602201462,
-0.27826255559921265,
0.1583169847726822,
-0.1469016671180725,
0.18585777282714844,
0.4209388196468353,
-0.4283127784729004,
0.3650209903717041,
-0.08279483765363693,
0.13289384543895721,
-0.26512476801872253,
0.07276183366775513,
-0.07313627004623413,
-0.22959673404693604,
0.33155688643455505,
-0.01284865289926529,
0.18786051869392395,
0.325527161359787,
0.21989957988262177,
-0.008619825355708599,
-0.09329617768526077,
-0.2572557330131531,
-0.5359468460083008,
0.28439536690711975,
0.23464997112751007,
-0.13258251547813416,
-0.2377673089504242,
-0.10398511588573456,
-0.07018736004829407,
-0.08551348745822906,
0.04999081790447235,
-0.22543750703334808,
-0.07588917762041092,
-0.00010205987200606614,
-0.18517352640628815,
0.4579843282699585,
0.47956544160842896,
-0.35626572370529175,
-0.13188263773918152,
-0.08892016112804413,
-0.1993902325630188,
0.10227499157190323,
0.25054869055747986,
-0.2102561593055725,
0.26782482862472534,
-0.03006245754659176,
-0.20019292831420898,
0.3244513273239136,
-0.2567797005176544,
-0.43037134408950806,
0.22959809005260468,
-0.1415836662054062,
0.07722046971321106,
-0.15979455411434174,
-0.01982799731194973,
-0.2300436943769455,
0.09766854345798492,
0.2224142700433731,
0.45447635650634766,
-0.22194233536720276,
-0.007508364040404558,
-0.07613664120435715,
-0.2887580096721649,
0.19717316329479218,
0.34950894117355347,
0.19055496156215668,
0.08371198177337646,
0.11229032278060913,
-0.12296644598245621,
0.13893258571624756,
0.07927165180444717,
-0.12887096405029297,
0.22225898504257202,
-0.07304497063159943,
0.06009681150317192,
0.005793251562863588,
0.19313330948352814,
-0.44566190242767334,
0.21716199815273285,
0.2575125992298126,
0.2054395228624344,
-0.15917328000068665,
0.07180102169513702,
-0.33143049478530884,
0.06447873264551163,
-0.3276309669017792,
-0.10173147171735764,
0.1681315302848816,
0.11009237170219421,
0.11498993635177612,
0.14874078333377838,
-0.3477538824081421,
0.5853902101516724,
-0.2807267904281616,
0.1544785052537918,
-0.36426040530204773,
0.33367329835891724,
-0.1378067433834076,
0.020809665322303772,
0.05325370281934738,
0.19486944377422333,
0.22709526121616364,
-0.21247975528240204,
-0.12306937575340271,
0.33506473898887634,
-0.09708806872367859,
0.13969792425632477,
0.10056961327791214,
0.020622415468096733,
0.08872135728597641,
-0.27322182059288025,
-0.007591656409204006,
0.17520885169506073,
-0.04842269793152809,
-0.06365522742271423,
0.22217069566249847,
0.2624587416648865,
-0.08243636041879654,
0.33501997590065,
0.1653447151184082,
-0.016716256737709045,
0.15577444434165955,
0.08227834850549698,
-0.07257566601037979,
-0.08043782413005829,
0.3488466441631317,
-0.2823639512062073,
0.4914529025554657,
-0.17793573439121246,
-0.18835364282131195,
-0.21429646015167236,
0.10730103403329849,
-0.2060755342245102,
0.03679947555065155,
0.18075868487358093,
-0.15274634957313538,
-0.19591251015663147,
-0.1415821611881256,
0.22858965396881104,
0.3831122815608978,
0.12666895985603333,
0.01740347407758236,
0.33305248618125916,
-0.11242304742336273,
-0.12555550038814545,
0.21396103501319885,
0.16420966386795044,
0.2534162402153015,
0.12569019198417664,
-0.1063404232263565,
0.08767534792423248,
-0.33358970284461975,
-0.29772594571113586,
0.045749515295028687,
0.29409992694854736,
-0.35056543350219727,
-0.02660500630736351,
-0.23481091856956482,
-0.10758376121520996,
0.04100147634744644,
-0.49585142731666565,
-0.1831311732530594,
-0.4478106200695038,
-0.16304972767829895,
-0.024508962407708168,
0.10010825097560883,
0.19134299457073212,
-0.13830363750457764,
0.20425349473953247,
0.2681010365486145,
-0.17570766806602478,
-0.19902510941028595,
-0.1413165181875229,
-0.12220650911331177,
0.0425470769405365,
0.19098292291164398,
-0.2497788667678833,
0.261508584022522,
-0.12377577275037766,
-0.19311067461967468,
-0.13389664888381958,
-0.043252453207969666,
0.044891633093357086,
-0.08075916767120361,
0.4253888428211212,
0.04150528833270073,
0.5178231596946716,
0.14749553799629211,
-0.052728183567523956,
0.37865903973579407,
-0.07507843524217606,
0.05258682370185852,
0.013706915080547333,
-0.012673799879848957,
0.17136479914188385,
0.10542481392621994,
-0.41975119709968567,
-0.5957533717155457,
-0.31860432028770447,
0.13327911496162415,
-0.14041675627231598,
0.16009032726287842,
0.4751751720905304,
0.1390487253665924,
0.072823166847229,
-0.027765357866883278,
0.3243477940559387,
-0.2952396273612976,
-0.5784928202629089,
0.34275057911872864,
-0.4262584447860718,
-0.3999854326248169,
0.05177774652838707,
0.23373810946941376,
0.15853065252304077,
-0.1368623822927475,
-0.49113786220550537,
-0.29129931330680847,
-0.021032143384218216,
-0.20825238525867462,
-0.14088836312294006,
0.03425198793411255,
-0.08178689330816269,
-0.1706445962190628,
-0.0807221457362175,
0.05285483971238136,
-0.215396448969841,
0.020766427740454674,
-0.18977966904640198,
0.1059553474187851,
0.05405936390161514,
0.5800538063049316,
-0.20692424476146698,
0.4104645252227783,
0.2627963125705719,
-0.09994082897901535,
0.4304727613925934,
-0.10178719460964203,
0.29820725321769714,
-0.03379300236701965,
-0.5136100649833679,
-0.03903929144144058,
-0.024887513369321823,
-0.04935920611023903,
0.24670158326625824,
0.11831160634756088,
-0.17501012980937958,
-0.4023716151714325,
-0.18232867121696472,
-0.4465426802635193,
-0.10940071195363998,
-0.0297654140740633,
0.11023573577404022,
0.06838636100292206,
0.033771540969610214,
0.11740045994520187,
-0.1562560796737671,
-0.02862720377743244,
0.023390494287014008,
0.3478066623210907,
-0.03887838125228882,
0.11804306507110596,
0.006739223841577768,
-0.09217439591884613,
-0.4314183294773102,
0.3346543312072754,
-0.17446081340312958,
0.4283653199672699,
-0.19772851467132568,
0.07675223052501678,
-0.06717175990343094,
-0.0039034283254295588,
0.6058325171470642,
-0.26516568660736084,
0.11586401611566544,
0.0965190976858139,
0.010437704622745514,
-0.3042711615562439,
-0.09392131865024567,
-0.03257869556546211,
0.24870452284812927,
0.165765181183815,
0.4471999704837799,
-0.07856956124305725,
-0.16756068170070648,
0.3270871639251709,
0.2548520863056183,
-0.13908420503139496,
-0.32141318917274475,
-0.1426791101694107,
-0.39352473616600037,
-0.22811223566532135,
-0.22428785264492035,
-0.34006467461586,
0.3046940267086029,
-0.034138333052396774,
-0.16921888291835785,
0.06572618335485458,
-0.09413934499025345,
0.1747618317604065,
0.07752782106399536,
0.13451558351516724,
0.0945739895105362,
0.11386112868785858,
0.3893187344074249,
0.05147232860326767,
0.19698597490787506,
0.6876192092895508,
-0.17472967505455017,
-0.28180432319641113,
0.0031069288961589336,
0.26535841822624207,
0.12663014233112335,
0.2776085436344147,
-0.21346993744373322,
-0.11072760820388794,
0.19178825616836548,
0.19745709002017975,
-0.005906918551772833,
0.2809211015701294,
0.3785071074962616,
0.09109891951084137,
-0.5953506827354431,
-0.594318151473999,
0.4862523078918457,
-0.09491043537855148,
0.11619792878627777,
0.18356995284557343,
-0.12010609358549118,
-0.1307162046432495,
0.1753079891204834,
-0.18716774880886078,
0.7539350986480713,
-0.05162134766578674,
0.02202160283923149,
0.2660262882709503,
0.2764648199081421,
0.4896036684513092,
-0.3141958713531494,
0.01714133471250534,
-0.22134746611118317,
-0.3019837439060211,
-0.09656131267547607,
-0.11286494880914688,
0.12321418523788452,
0.27900227904319763,
0.041160985827445984,
0.4529608488082886,
-0.13979871571063995,
-0.007671821396797895,
0.1203010082244873,
0.2758704721927643,
-0.012365859001874924,
-0.09909787774085999,
-0.6099664568901062,
0.23492687940597534,
-0.11527669429779053,
0.28590869903564453,
-0.14560502767562866,
-0.02665492706000805,
0.01893492043018341,
-0.20110690593719482,
-0.12524870038032532,
0.1103072315454483,
-0.5258550643920898,
0.33524519205093384,
-0.11032223701477051,
-0.19214029610157013,
-0.23488008975982666,
0.14027604460716248,
0.2428162693977356,
0.020909247919917107,
-0.1805032342672348,
-0.016431374475359917,
-0.1787303239107132,
-0.2422131896018982,
-0.1114928275346756,
0.00660545052960515,
0.3349575698375702,
-0.1443488448858261,
-0.2299133837223053,
0.09646313637495041,
-0.125046506524086,
-0.3004513680934906,
0.11817265301942825,
-0.07091074436903,
-0.10809802263975143,
-0.13218671083450317,
-0.24444031715393066,
-0.18454857170581818,
0.08627796918153763,
-0.1746639758348465,
0.13675303757190704,
0.06880073994398117,
-0.08284096419811249,
0.10168830305337906,
0.14947599172592163,
-0.2983337640762329,
-0.11304153501987457,
0.3407582640647888,
-0.26778584718704224,
-0.297926127910614,
0.4692346751689911,
0.351972758769989,
-0.1586272418498993,
-0.16132192313671112,
0.1176547259092331,
0.23542368412017822,
-0.2757169008255005,
0.02879302017390728,
0.16200171411037445,
0.3008444309234619,
-0.009347478859126568,
0.31092265248298645,
0.30564019083976746,
0.10084644705057144,
0.007333867251873016,
-0.7207002639770508,
-0.3249890208244324,
0.19461941719055176,
0.12716665863990784,
0.28619828820228577,
0.17612557113170624,
0.11474479734897614,
0.02176583744585514,
-0.14196686446666718,
-0.310820072889328,
0.05638968199491501,
-0.19300182163715363,
-0.22462198138237,
0.20448744297027588,
-0.19606395065784454,
0.5058369040489197,
0.09617466479539871,
0.23531506955623627,
-0.18623211979866028,
-0.22380825877189636,
-0.25229740142822266,
0.012597506865859032,
0.1250666230916977,
-0.007205045782029629,
-0.15990431606769562,
0.07668501138687134,
-0.0989360362291336,
-0.10717026144266129,
-0.10151274502277374,
0.19095544517040253,
0.13839586079120636,
0.06878038495779037,
-0.07874622941017151,
0.1001250147819519,
0.030109936371445656,
-0.19079656898975372,
0.02850877307355404,
-0.025133991613984108,
0.30090516805648804,
0.22657188773155212,
0.061835385859012604,
0.024157678708434105,
-0.053306158632040024,
-0.0746179074048996,
-0.11217694729566574,
-0.041407037526369095,
-0.07796347141265869,
0.3595576584339142,
-0.3970215618610382,
-0.027572274208068848,
0.28107017278671265,
0.4986274838447571,
0.3485300540924072,
-0.3341701626777649,
0.14043152332305908,
0.09824992716312408,
0.20083625614643097,
-0.24180521070957184,
-0.13203683495521545,
0.18666456639766693,
-0.03183874860405922,
0.03097703494131565,
0.12332773953676224,
-0.05814039707183838,
0.05055546388030052,
-0.2328445464372635,
0.056709468364715576,
0.5290331840515137,
0.09246101975440979,
0.22493202984333038,
0.13084864616394043,
-0.01856706291437149,
0.06692217290401459,
0.06500107049942017,
0.036054808646440506,
0.12290916591882706,
0.2920597791671753,
-0.34958139061927795,
0.1462302953004837,
-0.05675971135497093,
0.06840015202760696,
-0.1147468239068985,
-0.6289652585983276,
0.33368226885795593,
0.16891595721244812,
-0.31917768716812134,
0.08784347027540207,
-0.24491217732429504,
0.4515693187713623,
-0.2186652421951294,
0.05171331763267517,
-0.29081231355667114,
0.32481855154037476,
0.05354996770620346,
-0.061902958899736404,
0.11665352433919907,
-0.26139283180236816,
-0.12228923290967941,
-0.024196090176701546,
0.059286460280418396,
-0.33784404397010803,
0.2547755539417267,
0.18737001717090607,
-0.17020870745182037,
-0.2505170702934265,
-0.05147375538945198,
0.2003881335258484,
-0.027891576290130615,
-0.10703589022159576,
0.33228984475135803,
0.3139646053314209,
-0.10759715735912323,
-0.0052597736939787865,
0.20781837403774261,
0.5430834293365479,
0.36382320523262024,
0.05988138169050217,
0.2568228244781494,
0.11453908681869507,
-0.13745252788066864,
0.06761504709720612,
0.03229491785168648,
0.2886667847633362,
0.08369256556034088,
0.381245493888855,
0.21704421937465668,
-0.1802069991827011,
0.16716744005680084,
-0.019858190789818764,
0.14901168644428253,
-0.22100026905536652,
0.3357274532318115,
-0.07279126346111298,
0.0364464595913887,
-0.37049171328544617,
0.06097688153386116,
-0.627651572227478,
-0.0764109343290329,
0.4593777060508728,
-0.011202153749763966,
0.009491478092968464,
-0.06973174214363098,
0.08088760823011398,
-0.10900288820266724,
0.7130911946296692,
0.3730812966823578,
0.4081924855709076,
-0.44813093543052673,
-0.09220907837152481,
-0.58048415184021,
0.07782478630542755,
-0.02387489378452301,
0.16887837648391724,
0.09095199406147003,
-0.1451890915632248,
0.022688493132591248,
0.27570781111717224,
0.26527175307273865,
0.08495210856199265,
0.15117307007312775,
0.09654328227043152,
-0.17954634130001068,
-0.11537633836269379,
0.022908931598067284,
0.06011579558253288,
-0.037616364657878876,
-0.23774859309196472,
0.05600765347480774,
-0.5345259308815002,
-0.0055661736987531185,
-0.004136837087571621,
-0.056389689445495605,
-0.010825064964592457,
-0.07826077193021774,
0.33974647521972656,
0.07795247435569763,
0.7522109746932983,
0.006127420347183943,
-0.12574376165866852,
-0.39828982949256897,
-0.32993176579475403,
-0.12805944681167603,
0.14618806540966034,
-0.03177240118384361,
0.23516224324703217,
-0.10757283121347427,
-0.3375987410545349,
-0.3766067326068878,
0.18668663501739502,
0.04968537017703056,
-0.22551746666431427,
-0.16470883786678314,
0.05244888737797737,
0.07880724966526031,
0.007881209254264832,
0.19636227190494537,
0.09204836189746857,
-0.034826308488845825,
0.3125104606151581,
-0.10615651309490204,
-0.35995620489120483,
0.6798818111419678,
-0.2259572148323059,
-0.04740538448095322,
-0.10425810515880585,
0.036588966846466064,
0.09119974821805954,
0.08804015815258026,
-0.579477071762085,
0.1991288959980011,
0.3769949972629547,
0.11346588283777237,
-0.43973127007484436,
0.2614184319972992,
-0.0718318298459053,
0.011539396829903126,
0.03498833626508713,
0.13892143964767456,
0.03210296109318733,
-0.27391594648361206,
-0.024995476007461548,
-0.15673092007637024
] |
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.
> 
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.
> 
I have the same problem, have you solved it? Many thanks | [
-0.17262035608291626,
-0.08458110690116882,
-0.09733720868825912,
0.1288861185312271,
0.4222562909126282,
0.20194438099861145,
0.3426603674888611,
0.062194470316171646,
-0.05755838751792908,
0.004357459954917431,
-0.14231087267398834,
0.08249624818563461,
-0.06605984270572662,
0.24891912937164307,
0.11230892688035965,
-0.1254214495420456,
-0.08084547519683838,
-0.11463040113449097,
-0.22911712527275085,
0.006714827846735716,
-0.20981068909168243,
0.14409343898296356,
-0.20964910089969635,
0.04321147873997688,
-0.421304315328598,
-0.16523726284503937,
0.0861218050122261,
0.35553884506225586,
-0.030172744765877724,
-0.25860312581062317,
0.3710349202156067,
0.013673472218215466,
0.0507146380841732,
0.4067727327346802,
-0.00011094118963228539,
0.2821536362171173,
0.4214933216571808,
-0.007743433583527803,
-0.4700697064399719,
-0.4119870662689209,
0.028616834431886673,
-0.25242674350738525,
0.20361238718032837,
-0.1215820461511612,
-0.08969341963529587,
-0.09933594614267349,
-0.048514168709516525,
-0.23515015840530396,
0.44307374954223633,
0.42446839809417725,
0.2697090208530426,
0.2736966013908386,
0.31105729937553406,
-0.09482397884130478,
-0.30825552344322205,
-0.22429093718528748,
0.04368104785680771,
0.5262336134910583,
-0.3041549623012543,
-0.055004071444272995,
0.236949160695076,
0.18526814877986908,
-0.11026425659656525,
0.039429083466529846,
0.10279294103384018,
0.03683975338935852,
-0.08111865818500519,
-0.36316266655921936,
0.016723938286304474,
0.07219403237104416,
0.24345402419567108,
-0.22600553929805756,
-0.4658714830875397,
-0.16389520466327667,
0.0304691344499588,
-0.35231178998947144,
0.20596465468406677,
0.07249359041452408,
-0.131037637591362,
0.15622654557228088,
-0.4081345498561859,
-0.16622485220432281,
-0.23317942023277283,
0.47679993510246277,
-0.08347086608409882,
-0.0691661387681961,
-0.10134536027908325,
0.1568790078163147,
0.2081463783979416,
-0.014765490777790546,
0.24560731649398804,
0.016395866870880127,
0.3304591476917267,
0.21354317665100098,
-0.48102182149887085,
0.11584135890007019,
0.016375338658690453,
0.13958929479122162,
0.13585901260375977,
0.2361457198858261,
0.08397757261991501,
-0.05708669498562813,
-0.12385772168636322,
0.08515246957540512,
0.060635045170784,
0.24538323283195496,
0.00893673300743103,
0.13872666656970978,
0.18724748492240906,
0.30584490299224854,
-0.012288753874599934,
0.03487173095345497,
-0.1371920257806778,
-0.26284563541412354,
-0.08476044237613678,
0.12667252123355865,
0.467296302318573,
-0.0668151006102562,
-0.14578112959861755,
0.22866621613502502,
-0.2497207522392273,
-0.07731244713068008,
0.12552876770496368,
0.507819652557373,
-0.245985746383667,
0.10307954996824265,
-0.0911054015159607,
0.24431149661540985,
-0.09848156571388245,
0.028139721602201462,
-0.27826255559921265,
0.1583169847726822,
-0.1469016671180725,
0.18585777282714844,
0.4209388196468353,
-0.4283127784729004,
0.3650209903717041,
-0.08279483765363693,
0.13289384543895721,
-0.26512476801872253,
0.07276183366775513,
-0.07313627004623413,
-0.22959673404693604,
0.33155688643455505,
-0.01284865289926529,
0.18786051869392395,
0.325527161359787,
0.21989957988262177,
-0.008619825355708599,
-0.09329617768526077,
-0.2572557330131531,
-0.5359468460083008,
0.28439536690711975,
0.23464997112751007,
-0.13258251547813416,
-0.2377673089504242,
-0.10398511588573456,
-0.07018736004829407,
-0.08551348745822906,
0.04999081790447235,
-0.22543750703334808,
-0.07588917762041092,
-0.00010205987200606614,
-0.18517352640628815,
0.4579843282699585,
0.47956544160842896,
-0.35626572370529175,
-0.13188263773918152,
-0.08892016112804413,
-0.1993902325630188,
0.10227499157190323,
0.25054869055747986,
-0.2102561593055725,
0.26782482862472534,
-0.03006245754659176,
-0.20019292831420898,
0.3244513273239136,
-0.2567797005176544,
-0.43037134408950806,
0.22959809005260468,
-0.1415836662054062,
0.07722046971321106,
-0.15979455411434174,
-0.01982799731194973,
-0.2300436943769455,
0.09766854345798492,
0.2224142700433731,
0.45447635650634766,
-0.22194233536720276,
-0.007508364040404558,
-0.07613664120435715,
-0.2887580096721649,
0.19717316329479218,
0.34950894117355347,
0.19055496156215668,
0.08371198177337646,
0.11229032278060913,
-0.12296644598245621,
0.13893258571624756,
0.07927165180444717,
-0.12887096405029297,
0.22225898504257202,
-0.07304497063159943,
0.06009681150317192,
0.005793251562863588,
0.19313330948352814,
-0.44566190242767334,
0.21716199815273285,
0.2575125992298126,
0.2054395228624344,
-0.15917328000068665,
0.07180102169513702,
-0.33143049478530884,
0.06447873264551163,
-0.3276309669017792,
-0.10173147171735764,
0.1681315302848816,
0.11009237170219421,
0.11498993635177612,
0.14874078333377838,
-0.3477538824081421,
0.5853902101516724,
-0.2807267904281616,
0.1544785052537918,
-0.36426040530204773,
0.33367329835891724,
-0.1378067433834076,
0.020809665322303772,
0.05325370281934738,
0.19486944377422333,
0.22709526121616364,
-0.21247975528240204,
-0.12306937575340271,
0.33506473898887634,
-0.09708806872367859,
0.13969792425632477,
0.10056961327791214,
0.020622415468096733,
0.08872135728597641,
-0.27322182059288025,
-0.007591656409204006,
0.17520885169506073,
-0.04842269793152809,
-0.06365522742271423,
0.22217069566249847,
0.2624587416648865,
-0.08243636041879654,
0.33501997590065,
0.1653447151184082,
-0.016716256737709045,
0.15577444434165955,
0.08227834850549698,
-0.07257566601037979,
-0.08043782413005829,
0.3488466441631317,
-0.2823639512062073,
0.4914529025554657,
-0.17793573439121246,
-0.18835364282131195,
-0.21429646015167236,
0.10730103403329849,
-0.2060755342245102,
0.03679947555065155,
0.18075868487358093,
-0.15274634957313538,
-0.19591251015663147,
-0.1415821611881256,
0.22858965396881104,
0.3831122815608978,
0.12666895985603333,
0.01740347407758236,
0.33305248618125916,
-0.11242304742336273,
-0.12555550038814545,
0.21396103501319885,
0.16420966386795044,
0.2534162402153015,
0.12569019198417664,
-0.1063404232263565,
0.08767534792423248,
-0.33358970284461975,
-0.29772594571113586,
0.045749515295028687,
0.29409992694854736,
-0.35056543350219727,
-0.02660500630736351,
-0.23481091856956482,
-0.10758376121520996,
0.04100147634744644,
-0.49585142731666565,
-0.1831311732530594,
-0.4478106200695038,
-0.16304972767829895,
-0.024508962407708168,
0.10010825097560883,
0.19134299457073212,
-0.13830363750457764,
0.20425349473953247,
0.2681010365486145,
-0.17570766806602478,
-0.19902510941028595,
-0.1413165181875229,
-0.12220650911331177,
0.0425470769405365,
0.19098292291164398,
-0.2497788667678833,
0.261508584022522,
-0.12377577275037766,
-0.19311067461967468,
-0.13389664888381958,
-0.043252453207969666,
0.044891633093357086,
-0.08075916767120361,
0.4253888428211212,
0.04150528833270073,
0.5178231596946716,
0.14749553799629211,
-0.052728183567523956,
0.37865903973579407,
-0.07507843524217606,
0.05258682370185852,
0.013706915080547333,
-0.012673799879848957,
0.17136479914188385,
0.10542481392621994,
-0.41975119709968567,
-0.5957533717155457,
-0.31860432028770447,
0.13327911496162415,
-0.14041675627231598,
0.16009032726287842,
0.4751751720905304,
0.1390487253665924,
0.072823166847229,
-0.027765357866883278,
0.3243477940559387,
-0.2952396273612976,
-0.5784928202629089,
0.34275057911872864,
-0.4262584447860718,
-0.3999854326248169,
0.05177774652838707,
0.23373810946941376,
0.15853065252304077,
-0.1368623822927475,
-0.49113786220550537,
-0.29129931330680847,
-0.021032143384218216,
-0.20825238525867462,
-0.14088836312294006,
0.03425198793411255,
-0.08178689330816269,
-0.1706445962190628,
-0.0807221457362175,
0.05285483971238136,
-0.215396448969841,
0.020766427740454674,
-0.18977966904640198,
0.1059553474187851,
0.05405936390161514,
0.5800538063049316,
-0.20692424476146698,
0.4104645252227783,
0.2627963125705719,
-0.09994082897901535,
0.4304727613925934,
-0.10178719460964203,
0.29820725321769714,
-0.03379300236701965,
-0.5136100649833679,
-0.03903929144144058,
-0.024887513369321823,
-0.04935920611023903,
0.24670158326625824,
0.11831160634756088,
-0.17501012980937958,
-0.4023716151714325,
-0.18232867121696472,
-0.4465426802635193,
-0.10940071195363998,
-0.0297654140740633,
0.11023573577404022,
0.06838636100292206,
0.033771540969610214,
0.11740045994520187,
-0.1562560796737671,
-0.02862720377743244,
0.023390494287014008,
0.3478066623210907,
-0.03887838125228882,
0.11804306507110596,
0.006739223841577768,
-0.09217439591884613,
-0.4314183294773102,
0.3346543312072754,
-0.17446081340312958,
0.4283653199672699,
-0.19772851467132568,
0.07675223052501678,
-0.06717175990343094,
-0.0039034283254295588,
0.6058325171470642,
-0.26516568660736084,
0.11586401611566544,
0.0965190976858139,
0.010437704622745514,
-0.3042711615562439,
-0.09392131865024567,
-0.03257869556546211,
0.24870452284812927,
0.165765181183815,
0.4471999704837799,
-0.07856956124305725,
-0.16756068170070648,
0.3270871639251709,
0.2548520863056183,
-0.13908420503139496,
-0.32141318917274475,
-0.1426791101694107,
-0.39352473616600037,
-0.22811223566532135,
-0.22428785264492035,
-0.34006467461586,
0.3046940267086029,
-0.034138333052396774,
-0.16921888291835785,
0.06572618335485458,
-0.09413934499025345,
0.1747618317604065,
0.07752782106399536,
0.13451558351516724,
0.0945739895105362,
0.11386112868785858,
0.3893187344074249,
0.05147232860326767,
0.19698597490787506,
0.6876192092895508,
-0.17472967505455017,
-0.28180432319641113,
0.0031069288961589336,
0.26535841822624207,
0.12663014233112335,
0.2776085436344147,
-0.21346993744373322,
-0.11072760820388794,
0.19178825616836548,
0.19745709002017975,
-0.005906918551772833,
0.2809211015701294,
0.3785071074962616,
0.09109891951084137,
-0.5953506827354431,
-0.594318151473999,
0.4862523078918457,
-0.09491043537855148,
0.11619792878627777,
0.18356995284557343,
-0.12010609358549118,
-0.1307162046432495,
0.1753079891204834,
-0.18716774880886078,
0.7539350986480713,
-0.05162134766578674,
0.02202160283923149,
0.2660262882709503,
0.2764648199081421,
0.4896036684513092,
-0.3141958713531494,
0.01714133471250534,
-0.22134746611118317,
-0.3019837439060211,
-0.09656131267547607,
-0.11286494880914688,
0.12321418523788452,
0.27900227904319763,
0.041160985827445984,
0.4529608488082886,
-0.13979871571063995,
-0.007671821396797895,
0.1203010082244873,
0.2758704721927643,
-0.012365859001874924,
-0.09909787774085999,
-0.6099664568901062,
0.23492687940597534,
-0.11527669429779053,
0.28590869903564453,
-0.14560502767562866,
-0.02665492706000805,
0.01893492043018341,
-0.20110690593719482,
-0.12524870038032532,
0.1103072315454483,
-0.5258550643920898,
0.33524519205093384,
-0.11032223701477051,
-0.19214029610157013,
-0.23488008975982666,
0.14027604460716248,
0.2428162693977356,
0.020909247919917107,
-0.1805032342672348,
-0.016431374475359917,
-0.1787303239107132,
-0.2422131896018982,
-0.1114928275346756,
0.00660545052960515,
0.3349575698375702,
-0.1443488448858261,
-0.2299133837223053,
0.09646313637495041,
-0.125046506524086,
-0.3004513680934906,
0.11817265301942825,
-0.07091074436903,
-0.10809802263975143,
-0.13218671083450317,
-0.24444031715393066,
-0.18454857170581818,
0.08627796918153763,
-0.1746639758348465,
0.13675303757190704,
0.06880073994398117,
-0.08284096419811249,
0.10168830305337906,
0.14947599172592163,
-0.2983337640762329,
-0.11304153501987457,
0.3407582640647888,
-0.26778584718704224,
-0.297926127910614,
0.4692346751689911,
0.351972758769989,
-0.1586272418498993,
-0.16132192313671112,
0.1176547259092331,
0.23542368412017822,
-0.2757169008255005,
0.02879302017390728,
0.16200171411037445,
0.3008444309234619,
-0.009347478859126568,
0.31092265248298645,
0.30564019083976746,
0.10084644705057144,
0.007333867251873016,
-0.7207002639770508,
-0.3249890208244324,
0.19461941719055176,
0.12716665863990784,
0.28619828820228577,
0.17612557113170624,
0.11474479734897614,
0.02176583744585514,
-0.14196686446666718,
-0.310820072889328,
0.05638968199491501,
-0.19300182163715363,
-0.22462198138237,
0.20448744297027588,
-0.19606395065784454,
0.5058369040489197,
0.09617466479539871,
0.23531506955623627,
-0.18623211979866028,
-0.22380825877189636,
-0.25229740142822266,
0.012597506865859032,
0.1250666230916977,
-0.007205045782029629,
-0.15990431606769562,
0.07668501138687134,
-0.0989360362291336,
-0.10717026144266129,
-0.10151274502277374,
0.19095544517040253,
0.13839586079120636,
0.06878038495779037,
-0.07874622941017151,
0.1001250147819519,
0.030109936371445656,
-0.19079656898975372,
0.02850877307355404,
-0.025133991613984108,
0.30090516805648804,
0.22657188773155212,
0.061835385859012604,
0.024157678708434105,
-0.053306158632040024,
-0.0746179074048996,
-0.11217694729566574,
-0.041407037526369095,
-0.07796347141265869,
0.3595576584339142,
-0.3970215618610382,
-0.027572274208068848,
0.28107017278671265,
0.4986274838447571,
0.3485300540924072,
-0.3341701626777649,
0.14043152332305908,
0.09824992716312408,
0.20083625614643097,
-0.24180521070957184,
-0.13203683495521545,
0.18666456639766693,
-0.03183874860405922,
0.03097703494131565,
0.12332773953676224,
-0.05814039707183838,
0.05055546388030052,
-0.2328445464372635,
0.056709468364715576,
0.5290331840515137,
0.09246101975440979,
0.22493202984333038,
0.13084864616394043,
-0.01856706291437149,
0.06692217290401459,
0.06500107049942017,
0.036054808646440506,
0.12290916591882706,
0.2920597791671753,
-0.34958139061927795,
0.1462302953004837,
-0.05675971135497093,
0.06840015202760696,
-0.1147468239068985,
-0.6289652585983276,
0.33368226885795593,
0.16891595721244812,
-0.31917768716812134,
0.08784347027540207,
-0.24491217732429504,
0.4515693187713623,
-0.2186652421951294,
0.05171331763267517,
-0.29081231355667114,
0.32481855154037476,
0.05354996770620346,
-0.061902958899736404,
0.11665352433919907,
-0.26139283180236816,
-0.12228923290967941,
-0.024196090176701546,
0.059286460280418396,
-0.33784404397010803,
0.2547755539417267,
0.18737001717090607,
-0.17020870745182037,
-0.2505170702934265,
-0.05147375538945198,
0.2003881335258484,
-0.027891576290130615,
-0.10703589022159576,
0.33228984475135803,
0.3139646053314209,
-0.10759715735912323,
-0.0052597736939787865,
0.20781837403774261,
0.5430834293365479,
0.36382320523262024,
0.05988138169050217,
0.2568228244781494,
0.11453908681869507,
-0.13745252788066864,
0.06761504709720612,
0.03229491785168648,
0.2886667847633362,
0.08369256556034088,
0.381245493888855,
0.21704421937465668,
-0.1802069991827011,
0.16716744005680084,
-0.019858190789818764,
0.14901168644428253,
-0.22100026905536652,
0.3357274532318115,
-0.07279126346111298,
0.0364464595913887,
-0.37049171328544617,
0.06097688153386116,
-0.627651572227478,
-0.0764109343290329,
0.4593777060508728,
-0.011202153749763966,
0.009491478092968464,
-0.06973174214363098,
0.08088760823011398,
-0.10900288820266724,
0.7130911946296692,
0.3730812966823578,
0.4081924855709076,
-0.44813093543052673,
-0.09220907837152481,
-0.58048415184021,
0.07782478630542755,
-0.02387489378452301,
0.16887837648391724,
0.09095199406147003,
-0.1451890915632248,
0.022688493132591248,
0.27570781111717224,
0.26527175307273865,
0.08495210856199265,
0.15117307007312775,
0.09654328227043152,
-0.17954634130001068,
-0.11537633836269379,
0.022908931598067284,
0.06011579558253288,
-0.037616364657878876,
-0.23774859309196472,
0.05600765347480774,
-0.5345259308815002,
-0.0055661736987531185,
-0.004136837087571621,
-0.056389689445495605,
-0.010825064964592457,
-0.07826077193021774,
0.33974647521972656,
0.07795247435569763,
0.7522109746932983,
0.006127420347183943,
-0.12574376165866852,
-0.39828982949256897,
-0.32993176579475403,
-0.12805944681167603,
0.14618806540966034,
-0.03177240118384361,
0.23516224324703217,
-0.10757283121347427,
-0.3375987410545349,
-0.3766067326068878,
0.18668663501739502,
0.04968537017703056,
-0.22551746666431427,
-0.16470883786678314,
0.05244888737797737,
0.07880724966526031,
0.007881209254264832,
0.19636227190494537,
0.09204836189746857,
-0.034826308488845825,
0.3125104606151581,
-0.10615651309490204,
-0.35995620489120483,
0.6798818111419678,
-0.2259572148323059,
-0.04740538448095322,
-0.10425810515880585,
0.036588966846466064,
0.09119974821805954,
0.08804015815258026,
-0.579477071762085,
0.1991288959980011,
0.3769949972629547,
0.11346588283777237,
-0.43973127007484436,
0.2614184319972992,
-0.0718318298459053,
0.011539396829903126,
0.03498833626508713,
0.13892143964767456,
0.03210296109318733,
-0.27391594648361206,
-0.024995476007461548,
-0.15673092007637024
] |
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.17262035608291626,
-0.08458110690116882,
-0.09733720868825912,
0.1288861185312271,
0.4222562909126282,
0.20194438099861145,
0.3426603674888611,
0.062194470316171646,
-0.05755838751792908,
0.004357459954917431,
-0.14231087267398834,
0.08249624818563461,
-0.06605984270572662,
0.24891912937164307,
0.11230892688035965,
-0.1254214495420456,
-0.08084547519683838,
-0.11463040113449097,
-0.22911712527275085,
0.006714827846735716,
-0.20981068909168243,
0.14409343898296356,
-0.20964910089969635,
0.04321147873997688,
-0.421304315328598,
-0.16523726284503937,
0.0861218050122261,
0.35553884506225586,
-0.030172744765877724,
-0.25860312581062317,
0.3710349202156067,
0.013673472218215466,
0.0507146380841732,
0.4067727327346802,
-0.00011094118963228539,
0.2821536362171173,
0.4214933216571808,
-0.007743433583527803,
-0.4700697064399719,
-0.4119870662689209,
0.028616834431886673,
-0.25242674350738525,
0.20361238718032837,
-0.1215820461511612,
-0.08969341963529587,
-0.09933594614267349,
-0.048514168709516525,
-0.23515015840530396,
0.44307374954223633,
0.42446839809417725,
0.2697090208530426,
0.2736966013908386,
0.31105729937553406,
-0.09482397884130478,
-0.30825552344322205,
-0.22429093718528748,
0.04368104785680771,
0.5262336134910583,
-0.3041549623012543,
-0.055004071444272995,
0.236949160695076,
0.18526814877986908,
-0.11026425659656525,
0.039429083466529846,
0.10279294103384018,
0.03683975338935852,
-0.08111865818500519,
-0.36316266655921936,
0.016723938286304474,
0.07219403237104416,
0.24345402419567108,
-0.22600553929805756,
-0.4658714830875397,
-0.16389520466327667,
0.0304691344499588,
-0.35231178998947144,
0.20596465468406677,
0.07249359041452408,
-0.131037637591362,
0.15622654557228088,
-0.4081345498561859,
-0.16622485220432281,
-0.23317942023277283,
0.47679993510246277,
-0.08347086608409882,
-0.0691661387681961,
-0.10134536027908325,
0.1568790078163147,
0.2081463783979416,
-0.014765490777790546,
0.24560731649398804,
0.016395866870880127,
0.3304591476917267,
0.21354317665100098,
-0.48102182149887085,
0.11584135890007019,
0.016375338658690453,
0.13958929479122162,
0.13585901260375977,
0.2361457198858261,
0.08397757261991501,
-0.05708669498562813,
-0.12385772168636322,
0.08515246957540512,
0.060635045170784,
0.24538323283195496,
0.00893673300743103,
0.13872666656970978,
0.18724748492240906,
0.30584490299224854,
-0.012288753874599934,
0.03487173095345497,
-0.1371920257806778,
-0.26284563541412354,
-0.08476044237613678,
0.12667252123355865,
0.467296302318573,
-0.0668151006102562,
-0.14578112959861755,
0.22866621613502502,
-0.2497207522392273,
-0.07731244713068008,
0.12552876770496368,
0.507819652557373,
-0.245985746383667,
0.10307954996824265,
-0.0911054015159607,
0.24431149661540985,
-0.09848156571388245,
0.028139721602201462,
-0.27826255559921265,
0.1583169847726822,
-0.1469016671180725,
0.18585777282714844,
0.4209388196468353,
-0.4283127784729004,
0.3650209903717041,
-0.08279483765363693,
0.13289384543895721,
-0.26512476801872253,
0.07276183366775513,
-0.07313627004623413,
-0.22959673404693604,
0.33155688643455505,
-0.01284865289926529,
0.18786051869392395,
0.325527161359787,
0.21989957988262177,
-0.008619825355708599,
-0.09329617768526077,
-0.2572557330131531,
-0.5359468460083008,
0.28439536690711975,
0.23464997112751007,
-0.13258251547813416,
-0.2377673089504242,
-0.10398511588573456,
-0.07018736004829407,
-0.08551348745822906,
0.04999081790447235,
-0.22543750703334808,
-0.07588917762041092,
-0.00010205987200606614,
-0.18517352640628815,
0.4579843282699585,
0.47956544160842896,
-0.35626572370529175,
-0.13188263773918152,
-0.08892016112804413,
-0.1993902325630188,
0.10227499157190323,
0.25054869055747986,
-0.2102561593055725,
0.26782482862472534,
-0.03006245754659176,
-0.20019292831420898,
0.3244513273239136,
-0.2567797005176544,
-0.43037134408950806,
0.22959809005260468,
-0.1415836662054062,
0.07722046971321106,
-0.15979455411434174,
-0.01982799731194973,
-0.2300436943769455,
0.09766854345798492,
0.2224142700433731,
0.45447635650634766,
-0.22194233536720276,
-0.007508364040404558,
-0.07613664120435715,
-0.2887580096721649,
0.19717316329479218,
0.34950894117355347,
0.19055496156215668,
0.08371198177337646,
0.11229032278060913,
-0.12296644598245621,
0.13893258571624756,
0.07927165180444717,
-0.12887096405029297,
0.22225898504257202,
-0.07304497063159943,
0.06009681150317192,
0.005793251562863588,
0.19313330948352814,
-0.44566190242767334,
0.21716199815273285,
0.2575125992298126,
0.2054395228624344,
-0.15917328000068665,
0.07180102169513702,
-0.33143049478530884,
0.06447873264551163,
-0.3276309669017792,
-0.10173147171735764,
0.1681315302848816,
0.11009237170219421,
0.11498993635177612,
0.14874078333377838,
-0.3477538824081421,
0.5853902101516724,
-0.2807267904281616,
0.1544785052537918,
-0.36426040530204773,
0.33367329835891724,
-0.1378067433834076,
0.020809665322303772,
0.05325370281934738,
0.19486944377422333,
0.22709526121616364,
-0.21247975528240204,
-0.12306937575340271,
0.33506473898887634,
-0.09708806872367859,
0.13969792425632477,
0.10056961327791214,
0.020622415468096733,
0.08872135728597641,
-0.27322182059288025,
-0.007591656409204006,
0.17520885169506073,
-0.04842269793152809,
-0.06365522742271423,
0.22217069566249847,
0.2624587416648865,
-0.08243636041879654,
0.33501997590065,
0.1653447151184082,
-0.016716256737709045,
0.15577444434165955,
0.08227834850549698,
-0.07257566601037979,
-0.08043782413005829,
0.3488466441631317,
-0.2823639512062073,
0.4914529025554657,
-0.17793573439121246,
-0.18835364282131195,
-0.21429646015167236,
0.10730103403329849,
-0.2060755342245102,
0.03679947555065155,
0.18075868487358093,
-0.15274634957313538,
-0.19591251015663147,
-0.1415821611881256,
0.22858965396881104,
0.3831122815608978,
0.12666895985603333,
0.01740347407758236,
0.33305248618125916,
-0.11242304742336273,
-0.12555550038814545,
0.21396103501319885,
0.16420966386795044,
0.2534162402153015,
0.12569019198417664,
-0.1063404232263565,
0.08767534792423248,
-0.33358970284461975,
-0.29772594571113586,
0.045749515295028687,
0.29409992694854736,
-0.35056543350219727,
-0.02660500630736351,
-0.23481091856956482,
-0.10758376121520996,
0.04100147634744644,
-0.49585142731666565,
-0.1831311732530594,
-0.4478106200695038,
-0.16304972767829895,
-0.024508962407708168,
0.10010825097560883,
0.19134299457073212,
-0.13830363750457764,
0.20425349473953247,
0.2681010365486145,
-0.17570766806602478,
-0.19902510941028595,
-0.1413165181875229,
-0.12220650911331177,
0.0425470769405365,
0.19098292291164398,
-0.2497788667678833,
0.261508584022522,
-0.12377577275037766,
-0.19311067461967468,
-0.13389664888381958,
-0.043252453207969666,
0.044891633093357086,
-0.08075916767120361,
0.4253888428211212,
0.04150528833270073,
0.5178231596946716,
0.14749553799629211,
-0.052728183567523956,
0.37865903973579407,
-0.07507843524217606,
0.05258682370185852,
0.013706915080547333,
-0.012673799879848957,
0.17136479914188385,
0.10542481392621994,
-0.41975119709968567,
-0.5957533717155457,
-0.31860432028770447,
0.13327911496162415,
-0.14041675627231598,
0.16009032726287842,
0.4751751720905304,
0.1390487253665924,
0.072823166847229,
-0.027765357866883278,
0.3243477940559387,
-0.2952396273612976,
-0.5784928202629089,
0.34275057911872864,
-0.4262584447860718,
-0.3999854326248169,
0.05177774652838707,
0.23373810946941376,
0.15853065252304077,
-0.1368623822927475,
-0.49113786220550537,
-0.29129931330680847,
-0.021032143384218216,
-0.20825238525867462,
-0.14088836312294006,
0.03425198793411255,
-0.08178689330816269,
-0.1706445962190628,
-0.0807221457362175,
0.05285483971238136,
-0.215396448969841,
0.020766427740454674,
-0.18977966904640198,
0.1059553474187851,
0.05405936390161514,
0.5800538063049316,
-0.20692424476146698,
0.4104645252227783,
0.2627963125705719,
-0.09994082897901535,
0.4304727613925934,
-0.10178719460964203,
0.29820725321769714,
-0.03379300236701965,
-0.5136100649833679,
-0.03903929144144058,
-0.024887513369321823,
-0.04935920611023903,
0.24670158326625824,
0.11831160634756088,
-0.17501012980937958,
-0.4023716151714325,
-0.18232867121696472,
-0.4465426802635193,
-0.10940071195363998,
-0.0297654140740633,
0.11023573577404022,
0.06838636100292206,
0.033771540969610214,
0.11740045994520187,
-0.1562560796737671,
-0.02862720377743244,
0.023390494287014008,
0.3478066623210907,
-0.03887838125228882,
0.11804306507110596,
0.006739223841577768,
-0.09217439591884613,
-0.4314183294773102,
0.3346543312072754,
-0.17446081340312958,
0.4283653199672699,
-0.19772851467132568,
0.07675223052501678,
-0.06717175990343094,
-0.0039034283254295588,
0.6058325171470642,
-0.26516568660736084,
0.11586401611566544,
0.0965190976858139,
0.010437704622745514,
-0.3042711615562439,
-0.09392131865024567,
-0.03257869556546211,
0.24870452284812927,
0.165765181183815,
0.4471999704837799,
-0.07856956124305725,
-0.16756068170070648,
0.3270871639251709,
0.2548520863056183,
-0.13908420503139496,
-0.32141318917274475,
-0.1426791101694107,
-0.39352473616600037,
-0.22811223566532135,
-0.22428785264492035,
-0.34006467461586,
0.3046940267086029,
-0.034138333052396774,
-0.16921888291835785,
0.06572618335485458,
-0.09413934499025345,
0.1747618317604065,
0.07752782106399536,
0.13451558351516724,
0.0945739895105362,
0.11386112868785858,
0.3893187344074249,
0.05147232860326767,
0.19698597490787506,
0.6876192092895508,
-0.17472967505455017,
-0.28180432319641113,
0.0031069288961589336,
0.26535841822624207,
0.12663014233112335,
0.2776085436344147,
-0.21346993744373322,
-0.11072760820388794,
0.19178825616836548,
0.19745709002017975,
-0.005906918551772833,
0.2809211015701294,
0.3785071074962616,
0.09109891951084137,
-0.5953506827354431,
-0.594318151473999,
0.4862523078918457,
-0.09491043537855148,
0.11619792878627777,
0.18356995284557343,
-0.12010609358549118,
-0.1307162046432495,
0.1753079891204834,
-0.18716774880886078,
0.7539350986480713,
-0.05162134766578674,
0.02202160283923149,
0.2660262882709503,
0.2764648199081421,
0.4896036684513092,
-0.3141958713531494,
0.01714133471250534,
-0.22134746611118317,
-0.3019837439060211,
-0.09656131267547607,
-0.11286494880914688,
0.12321418523788452,
0.27900227904319763,
0.041160985827445984,
0.4529608488082886,
-0.13979871571063995,
-0.007671821396797895,
0.1203010082244873,
0.2758704721927643,
-0.012365859001874924,
-0.09909787774085999,
-0.6099664568901062,
0.23492687940597534,
-0.11527669429779053,
0.28590869903564453,
-0.14560502767562866,
-0.02665492706000805,
0.01893492043018341,
-0.20110690593719482,
-0.12524870038032532,
0.1103072315454483,
-0.5258550643920898,
0.33524519205093384,
-0.11032223701477051,
-0.19214029610157013,
-0.23488008975982666,
0.14027604460716248,
0.2428162693977356,
0.020909247919917107,
-0.1805032342672348,
-0.016431374475359917,
-0.1787303239107132,
-0.2422131896018982,
-0.1114928275346756,
0.00660545052960515,
0.3349575698375702,
-0.1443488448858261,
-0.2299133837223053,
0.09646313637495041,
-0.125046506524086,
-0.3004513680934906,
0.11817265301942825,
-0.07091074436903,
-0.10809802263975143,
-0.13218671083450317,
-0.24444031715393066,
-0.18454857170581818,
0.08627796918153763,
-0.1746639758348465,
0.13675303757190704,
0.06880073994398117,
-0.08284096419811249,
0.10168830305337906,
0.14947599172592163,
-0.2983337640762329,
-0.11304153501987457,
0.3407582640647888,
-0.26778584718704224,
-0.297926127910614,
0.4692346751689911,
0.351972758769989,
-0.1586272418498993,
-0.16132192313671112,
0.1176547259092331,
0.23542368412017822,
-0.2757169008255005,
0.02879302017390728,
0.16200171411037445,
0.3008444309234619,
-0.009347478859126568,
0.31092265248298645,
0.30564019083976746,
0.10084644705057144,
0.007333867251873016,
-0.7207002639770508,
-0.3249890208244324,
0.19461941719055176,
0.12716665863990784,
0.28619828820228577,
0.17612557113170624,
0.11474479734897614,
0.02176583744585514,
-0.14196686446666718,
-0.310820072889328,
0.05638968199491501,
-0.19300182163715363,
-0.22462198138237,
0.20448744297027588,
-0.19606395065784454,
0.5058369040489197,
0.09617466479539871,
0.23531506955623627,
-0.18623211979866028,
-0.22380825877189636,
-0.25229740142822266,
0.012597506865859032,
0.1250666230916977,
-0.007205045782029629,
-0.15990431606769562,
0.07668501138687134,
-0.0989360362291336,
-0.10717026144266129,
-0.10151274502277374,
0.19095544517040253,
0.13839586079120636,
0.06878038495779037,
-0.07874622941017151,
0.1001250147819519,
0.030109936371445656,
-0.19079656898975372,
0.02850877307355404,
-0.025133991613984108,
0.30090516805648804,
0.22657188773155212,
0.061835385859012604,
0.024157678708434105,
-0.053306158632040024,
-0.0746179074048996,
-0.11217694729566574,
-0.041407037526369095,
-0.07796347141265869,
0.3595576584339142,
-0.3970215618610382,
-0.027572274208068848,
0.28107017278671265,
0.4986274838447571,
0.3485300540924072,
-0.3341701626777649,
0.14043152332305908,
0.09824992716312408,
0.20083625614643097,
-0.24180521070957184,
-0.13203683495521545,
0.18666456639766693,
-0.03183874860405922,
0.03097703494131565,
0.12332773953676224,
-0.05814039707183838,
0.05055546388030052,
-0.2328445464372635,
0.056709468364715576,
0.5290331840515137,
0.09246101975440979,
0.22493202984333038,
0.13084864616394043,
-0.01856706291437149,
0.06692217290401459,
0.06500107049942017,
0.036054808646440506,
0.12290916591882706,
0.2920597791671753,
-0.34958139061927795,
0.1462302953004837,
-0.05675971135497093,
0.06840015202760696,
-0.1147468239068985,
-0.6289652585983276,
0.33368226885795593,
0.16891595721244812,
-0.31917768716812134,
0.08784347027540207,
-0.24491217732429504,
0.4515693187713623,
-0.2186652421951294,
0.05171331763267517,
-0.29081231355667114,
0.32481855154037476,
0.05354996770620346,
-0.061902958899736404,
0.11665352433919907,
-0.26139283180236816,
-0.12228923290967941,
-0.024196090176701546,
0.059286460280418396,
-0.33784404397010803,
0.2547755539417267,
0.18737001717090607,
-0.17020870745182037,
-0.2505170702934265,
-0.05147375538945198,
0.2003881335258484,
-0.027891576290130615,
-0.10703589022159576,
0.33228984475135803,
0.3139646053314209,
-0.10759715735912323,
-0.0052597736939787865,
0.20781837403774261,
0.5430834293365479,
0.36382320523262024,
0.05988138169050217,
0.2568228244781494,
0.11453908681869507,
-0.13745252788066864,
0.06761504709720612,
0.03229491785168648,
0.2886667847633362,
0.08369256556034088,
0.381245493888855,
0.21704421937465668,
-0.1802069991827011,
0.16716744005680084,
-0.019858190789818764,
0.14901168644428253,
-0.22100026905536652,
0.3357274532318115,
-0.07279126346111298,
0.0364464595913887,
-0.37049171328544617,
0.06097688153386116,
-0.627651572227478,
-0.0764109343290329,
0.4593777060508728,
-0.011202153749763966,
0.009491478092968464,
-0.06973174214363098,
0.08088760823011398,
-0.10900288820266724,
0.7130911946296692,
0.3730812966823578,
0.4081924855709076,
-0.44813093543052673,
-0.09220907837152481,
-0.58048415184021,
0.07782478630542755,
-0.02387489378452301,
0.16887837648391724,
0.09095199406147003,
-0.1451890915632248,
0.022688493132591248,
0.27570781111717224,
0.26527175307273865,
0.08495210856199265,
0.15117307007312775,
0.09654328227043152,
-0.17954634130001068,
-0.11537633836269379,
0.022908931598067284,
0.06011579558253288,
-0.037616364657878876,
-0.23774859309196472,
0.05600765347480774,
-0.5345259308815002,
-0.0055661736987531185,
-0.004136837087571621,
-0.056389689445495605,
-0.010825064964592457,
-0.07826077193021774,
0.33974647521972656,
0.07795247435569763,
0.7522109746932983,
0.006127420347183943,
-0.12574376165866852,
-0.39828982949256897,
-0.32993176579475403,
-0.12805944681167603,
0.14618806540966034,
-0.03177240118384361,
0.23516224324703217,
-0.10757283121347427,
-0.3375987410545349,
-0.3766067326068878,
0.18668663501739502,
0.04968537017703056,
-0.22551746666431427,
-0.16470883786678314,
0.05244888737797737,
0.07880724966526031,
0.007881209254264832,
0.19636227190494537,
0.09204836189746857,
-0.034826308488845825,
0.3125104606151581,
-0.10615651309490204,
-0.35995620489120483,
0.6798818111419678,
-0.2259572148323059,
-0.04740538448095322,
-0.10425810515880585,
0.036588966846466064,
0.09119974821805954,
0.08804015815258026,
-0.579477071762085,
0.1991288959980011,
0.3769949972629547,
0.11346588283777237,
-0.43973127007484436,
0.2614184319972992,
-0.0718318298459053,
0.011539396829903126,
0.03498833626508713,
0.13892143964767456,
0.03210296109318733,
-0.27391594648361206,
-0.024995476007461548,
-0.15673092007637024
] |
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.4953111410140991,
-0.5315656065940857,
-0.16952860355377197,
0.2302868813276291,
0.12561628222465515,
-0.32973286509513855,
0.3093046247959137,
0.1606469303369522,
-0.3321199119091034,
0.2106941044330597,
0.3402484357357025,
0.24001578986644745,
-0.10366961359977722,
-0.04067410156130791,
-0.5593129396438599,
0.03611721098423004,
-0.046415701508522034,
-0.04025660827755928,
0.5563797354698181,
-0.000483394309412688,
-0.16274653375148773,
0.13793247938156128,
-0.3582850396633148,
-0.08268801122903824,
-0.6165250539779663,
-0.25732940435409546,
0.0004953232710249722,
0.05753626674413681,
-0.05243682488799095,
-0.2949138283729553,
-0.6529916524887085,
-0.006984889507293701,
0.04748346284031868,
0.3515734076499939,
-0.00011530843039508909,
-0.13353702425956726,
0.07265188544988632,
0.2212064266204834,
0.1563180685043335,
0.010190758854150772,
0.37818825244903564,
-0.43170130252838135,
-0.08396285772323608,
-0.31965795159339905,
0.10876139998435974,
0.08271609246730804,
0.18914885818958282,
-0.006433487869799137,
0.3377622365951538,
0.3044477701187134,
0.20408305525779724,
0.2162095010280609,
-0.1863328516483307,
0.25373631715774536,
-0.2040129154920578,
0.21323765814304352,
0.07254499942064285,
-0.16971100866794586,
0.28936058282852173,
0.28833407163619995,
-0.04080624878406525,
0.28089815378189087,
-0.22230075299739838,
-0.060989849269390106,
0.07247400283813477,
-0.02608291618525982,
0.30075499415397644,
-0.6823171377182007,
0.35253557562828064,
0.1850753128528595,
0.07844275236129761,
0.15661512315273285,
-0.1315240114927292,
-0.30898943543434143,
-0.08534468710422516,
-0.5059004426002502,
-0.08678257465362549,
0.2549687325954437,
-0.2516714036464691,
-0.16171225905418396,
-0.4387648403644562,
0.2242855280637741,
0.05816902220249176,
-0.22304652631282806,
-0.26458096504211426,
0.26339536905288696,
0.10627561062574387,
0.21241217851638794,
0.004716012626886368,
-0.18413113057613373,
-0.2799610495567322,
-0.22863848507404327,
0.24341601133346558,
0.15276019275188446,
-0.1565137803554535,
0.039882782846689224,
-0.1100483387708664,
-0.2451605200767517,
-0.14667850732803345,
0.08428558707237244,
-0.3905350863933563,
0.4203823506832123,
0.05379578471183777,
0.06108259782195091,
-0.09537255764007568,
-0.11219878494739532,
0.15838898718357086,
0.1098184734582901,
0.1482044756412506,
-0.21339239180088043,
-0.29214927554130554,
-0.055090054869651794,
-0.03972889482975006,
-0.25787097215652466,
0.2200275957584381,
0.020838718861341476,
-0.2356415092945099,
-0.022929614409804344,
-0.234005868434906,
-0.08495496213436127,
0.04022721201181412,
0.09656209498643875,
0.2033511996269226,
0.23969398438930511,
0.04956711083650589,
0.5489524006843567,
-0.21804141998291016,
-0.06197642162442207,
-0.4051898717880249,
-0.030910754576325417,
-0.14672760665416718,
-0.11426510661840439,
-0.15944302082061768,
0.04690631851553917,
-0.13788644969463348,
0.15251007676124573,
0.0012937146238982677,
-0.019640235230326653,
0.3199869990348816,
-0.174258753657341,
0.015170666389167309,
-0.43098875880241394,
0.06939693540334702,
0.07898468524217606,
-0.022559208795428276,
0.2723824977874756,
-0.07783229649066925,
-0.14691634476184845,
-0.42471206188201904,
0.3230877220630646,
-0.4733677804470062,
-0.1793971210718155,
0.0462479293346405,
0.10822714120149612,
0.03587864711880684,
0.171352818608284,
-0.07868874818086624,
0.1096763089299202,
0.3484976291656494,
0.13271993398666382,
-0.02489578165113926,
-0.2907632887363434,
-0.48528528213500977,
-0.22814494371414185,
0.06027008965611458,
0.1922587901353836,
0.05795243754982948,
0.029165104031562805,
0.4639874994754791,
0.19405493140220642,
0.6476489305496216,
0.5497221946716309,
0.15719130635261536,
0.07738635689020157,
-0.03587382286787033,
0.5512923002243042,
0.11637593060731888,
-0.11337652057409286,
-0.44886425137519836,
0.2650891840457916,
-0.27912116050720215,
-0.33413976430892944,
0.2636803984642029,
0.198443204164505,
0.37692347168922424,
-0.01522308774292469,
0.2889907658100128,
0.22633132338523865,
0.09171058237552643,
0.43471407890319824,
-0.33454349637031555,
-0.032694026827812195,
0.1791488230228424,
0.12597471475601196,
-0.04713093116879463,
-0.3097909390926361,
-0.07652317732572556,
-0.24409157037734985,
0.11960527300834656,
-0.15753526985645294,
0.0428706593811512,
0.2962052822113037,
0.021966703236103058,
-0.12250763177871704,
-0.06533382087945938,
-0.0063169533386826515,
0.24254626035690308,
0.2852153182029724,
0.02025550790131092,
0.3112218976020813,
-0.18680721521377563,
-0.03102341666817665,
0.24666404724121094,
0.1015821173787117,
-0.11560505628585815,
-0.19576609134674072,
0.06601639091968536,
-0.17193351686000824,
-0.03854454681277275,
0.11971801519393921,
0.1025744155049324,
0.2863751947879791,
-0.08214236795902252,
0.08058752864599228,
0.21906732022762299,
-0.03250334411859512,
-0.09879936277866364,
-0.30950456857681274,
-0.17713013291358948,
0.08050873875617981,
0.3629033863544464,
0.07375847548246384,
-0.08659348636865616,
0.2838691473007202,
0.3752443194389343,
-0.011485076509416103,
-0.34864678978919983,
0.019777433946728706,
0.44228652119636536,
0.001134052756242454,
0.3061337471008301,
-0.11347393691539764,
-0.1244746595621109,
-0.02527659200131893,
0.20555497705936432,
0.4379796087741852,
0.19637909531593323,
0.3408125340938568,
0.24347496032714844,
0.03263140842318535,
0.02408270724117756,
0.17473480105400085,
0.2500096559524536,
0.01864093914628029,
0.1492002010345459,
0.4589802324771881,
0.2119394987821579,
0.1745252162218094,
-0.18399971723556519,
0.30833420157432556,
0.4346736967563629,
-0.0011619789293035865,
-0.15688103437423706,
0.3453221917152405,
-0.13269734382629395,
0.03225044906139374,
0.22805918753147125,
-0.5205898880958557,
0.18833699822425842,
0.3040080666542053,
0.01775343157351017,
-0.0917443111538887,
-0.15191222727298737,
-0.07133238017559052,
0.049367718398571014,
0.1606239527463913,
0.02903624437749386,
0.09507549554109573,
0.20529508590698242,
0.17994347214698792,
-0.23925605416297913,
-0.320010244846344,
0.02074657380580902,
0.24297448992729187,
-0.0013512478908523917,
0.0810667872428894,
-0.1852990984916687,
0.3129555284976959,
-0.0443006232380867,
0.023477787151932716,
-0.2518497109413147,
-0.1960189789533615,
0.10100613534450531,
0.11810893565416336,
0.1571972370147705,
-0.007351468317210674,
0.06902468204498291,
-0.0020888543222099543,
0.2708704173564911,
0.046013712882995605,
-0.05743815004825592,
0.05695508420467377,
-0.24510616064071655,
-0.03372117131948471,
0.37223824858665466,
0.07904398441314697,
0.3720940947532654,
-0.07977059483528137,
-0.07572895288467407,
-0.16917334496974945,
-0.3268735110759735,
0.017445692792534828,
0.011323795653879642,
-0.10110334306955338,
-0.036147769540548325,
0.0515642948448658,
-0.15609216690063477,
-0.09317134320735931,
0.23670421540737152,
-0.300238698720932,
-0.2327294796705246,
0.029214441776275635,
-0.0520457848906517,
-0.42481833696365356,
0.005097718443721533,
0.20825736224651337,
-0.40689754486083984,
-0.06672582030296326,
0.19687536358833313,
0.305745005607605,
0.43996965885162354,
-0.13417428731918335,
0.1866539567708969,
0.01751394011080265,
0.2654113173484802,
0.03740708529949188,
-0.07299250364303589,
-0.08812744915485382,
0.24791713058948517,
-0.04089457541704178,
-0.1777162253856659,
-0.23354887962341309,
0.050051990896463394,
-0.07026209682226181,
0.2776540517807007,
-0.03540188446640968,
-0.1698894202709198,
-0.36689794063568115,
0.4108217656612396,
-0.21654196083545685,
0.05440397188067436,
0.40763118863105774,
0.18331755697727203,
-0.19272112846374512,
0.25627556443214417,
0.04596548527479172,
-0.0532858781516552,
-0.21950717270374298,
0.01152875181287527,
-0.057160694152116776,
0.22372503578662872,
0.19734376668930054,
0.5768962502479553,
0.23447273671627045,
-0.5633329153060913,
0.20024819672107697,
-0.28488269448280334,
-0.28701314330101013,
0.01339397206902504,
-0.05908748880028725,
0.4472934603691101,
0.10932985693216324,
0.008657374419271946,
0.23841336369514465,
-0.013836062513291836,
-0.29394543170928955,
0.07000159472227097,
0.06572011113166809,
-0.2700677216053009,
-0.14447106420993805,
0.059749238193035126,
0.09127166867256165,
0.24207939207553864,
-0.1904568076133728,
0.06798511743545532,
-0.34950485825538635,
-0.19373875856399536,
-0.21417365968227386,
-0.05510538071393967,
-0.10804372280836105,
-0.408032089471817,
-0.5878003239631653,
-0.06784267723560333,
-0.7291851043701172,
0.5164379477500916,
0.39627566933631897,
0.15496933460235596,
0.11757339537143707,
-0.05694252625107765,
0.19570866227149963,
-0.30491140484809875,
0.6568157076835632,
-0.0021272189915180206,
-0.19846327602863312,
0.04017479717731476,
-0.30293208360671997,
-0.35221067070961,
0.017191942781209946,
-0.021896515041589737,
0.32397177815437317,
0.38686203956604004,
0.8028348088264465,
-0.08704381436109543,
-0.2673940062522888,
-0.15316832065582275,
-0.1316920965909958,
0.09508469700813293,
-0.18126219511032104,
-0.23149961233139038,
-0.21567633748054504,
-0.3307567238807678,
0.36500084400177,
0.07358408719301224,
0.4053303599357605,
-0.23506970703601837,
-0.31393587589263916,
-0.10817797482013702,
-0.11345955729484558,
0.30998533964157104,
0.02324475534260273,
0.2032972127199173,
-0.1580933928489685,
0.03337908536195755,
0.07405322045087814,
0.17928431928157806,
0.19553224742412567,
-0.169362872838974,
0.1570604145526886,
-0.1679612547159195,
0.04122031107544899,
0.041686080396175385,
0.19539406895637512,
0.43578100204467773,
0.043791983276605606,
0.10813072323799133,
-0.34162771701812744,
0.7598037123680115,
-0.06964104622602463,
0.34242573380470276,
0.1069183275103569,
0.39571109414100647,
-0.359736829996109,
0.11386056244373322,
-0.04760583117604256,
0.32274582982063293,
0.04729278013110161,
0.024957802146673203,
-0.5631775856018066,
-0.05552602559328079,
-0.09775098413228989,
0.4544777572154999,
1.0650625228881836,
-0.287072092294693,
0.14489459991455078,
-0.23203496634960175,
0.08272133767604828,
0.17718137800693512,
-0.42261555790901184,
0.10261968523263931,
-0.5460083484649658,
-0.1650373339653015,
0.059185780584812164,
-0.13425229489803314,
0.30775144696235657,
0.17995381355285645,
0.08703391999006271,
0.15314827859401703,
0.22247277200222015,
0.1601034700870514,
-0.14536206424236298,
0.4769967198371887,
-0.05598963797092438,
-0.3710184097290039,
0.11724942177534103,
0.1382146179676056,
0.05430568382143974,
-0.10338510572910309,
0.10929802060127258,
0.02467133104801178,
-0.15722644329071045,
-0.16437719762325287,
-0.2060377299785614,
-0.17091941833496094,
-0.41023555397987366,
0.32101497054100037,
0.20674079656600952,
0.041121549904346466,
-0.027972105890512466,
0.34842467308044434,
0.11815007776021957,
0.27644672989845276,
0.039745256304740906,
0.21101100742816925,
0.13616126775741577,
0.02959931455552578,
0.20981456339359283,
-0.34266945719718933,
0.0637550950050354,
-0.1972799152135849,
-0.1635499745607376,
-0.09586584568023682,
0.05441410467028618,
0.021474743261933327,
-0.2595752477645874,
-0.001382359303534031,
0.46835312247276306,
0.11738350987434387,
-0.09850304573774338,
-0.026352781802415848,
-0.3687485456466675,
-0.15892940759658813,
0.09248138219118118,
-0.04537562280893326,
-0.24044258892536163,
0.43792983889579773,
-0.029868774116039276,
-0.28304323554039,
0.025305531919002533,
0.2725926637649536,
-0.02866840362548828,
-0.1106831505894661,
0.2649386525154114,
-0.17240411043167114,
-0.3740752637386322,
-0.1781918853521347,
0.3151310980319977,
-0.29601535201072693,
0.010842944495379925,
-0.06335391104221344,
0.015535139478743076,
-0.22652967274188995,
0.03855273127555847,
0.07902124524116516,
-0.1980661153793335,
0.011885570362210274,
-0.047774624079465866,
-0.29243922233581543,
-0.550308108329773,
-0.2980760633945465,
-0.27318480610847473,
0.0654854103922844,
-0.015558001585304737,
0.19829940795898438,
-0.2458946853876114,
0.03519678860902786,
-0.28078076243400574,
0.048886463046073914,
-0.24679061770439148,
0.27972280979156494,
-0.16899263858795166,
-0.3845108449459076,
-0.30086207389831543,
0.05264937877655029,
0.2130945771932602,
0.5159614086151123,
-0.157553568482399,
-0.2491380274295807,
-0.015514802187681198,
0.12416567653417587,
0.10787493735551834,
-0.39952656626701355,
0.11418604105710983,
0.17622597515583038,
-0.29041069746017456,
-0.28197044134140015,
0.014165572822093964,
0.03861186280846596,
-0.1537788361310959,
-0.25762948393821716,
0.3884231150150299,
0.21648293733596802,
0.06584446132183075,
0.2312612384557724,
-0.1386735737323761,
0.31072860956192017,
0.14474758505821228,
0.2480476349592209,
0.14695186913013458,
0.0634005218744278,
0.0029563973657786846,
0.03936363756656647,
0.5078855156898499,
-0.11042855679988861,
0.007240142673254013,
-0.11577010899782181,
-0.12562181055545807,
0.16503773629665375,
0.06084957346320152,
0.22647729516029358,
-0.1681414395570755,
-0.29764193296432495,
0.39687541127204895,
0.24299584329128265,
-0.19494779407978058,
-0.12401130050420761,
0.39007627964019775,
-0.17881466448307037,
0.08722555637359619,
0.15573257207870483,
0.2607521414756775,
0.1711997538805008,
-0.20706212520599365,
0.047071509063243866,
0.28730151057243347,
-0.4762456715106964,
-0.3216885030269623,
-0.11560045927762985,
0.08699129521846771,
0.06417350471019745,
0.41792529821395874,
0.01046909112483263,
0.02601870335638523,
0.3452901244163513,
-0.025863956660032272,
0.5836871862411499,
-0.017006170004606247,
0.3134090304374695,
-0.16712938249111176,
-0.05666729435324669,
-0.16957999765872955,
0.2938797175884247,
-0.025153793394565582,
0.17895643413066864,
-0.10782847553491592,
0.17647786438465118,
-0.11660604923963547,
-0.20882053673267365,
0.028081651777029037,
0.5991230607032776,
-0.3017576336860657,
-0.24418513476848602,
-0.11272987723350525,
-0.00596844544634223,
-0.2675643861293793,
0.040552690625190735,
0.05637127533555031,
0.017829380929470062,
0.12666237354278564,
0.3407021462917328,
0.028413288295269012,
-0.17613986134529114,
-0.1805213838815689,
-0.04319286718964577,
0.27908891439437866,
-0.2988133430480957,
0.18562549352645874,
0.015285700559616089,
0.28627339005470276,
0.09285447001457214,
-0.11171460896730423,
0.5503314137458801,
0.46087270975112915,
-0.45895230770111084,
-0.06280820816755295,
-0.1084602102637291,
0.11659722030162811,
0.04767599701881409,
0.22005149722099304,
0.029872145503759384,
0.24773794412612915,
0.1128176599740982,
0.002153147244825959,
-0.29316264390945435,
-0.35620981454849243,
-0.010545226745307446,
-0.014918864704668522,
0.14501866698265076,
0.3033880591392517,
-0.031825751066207886,
-0.3631111681461334,
-0.18503378331661224,
0.05891657993197441,
-0.3338305652141571,
0.029133901000022888,
0.1870931088924408,
-0.32777905464172363,
0.1497631072998047,
0.008098116144537926,
0.0680176317691803,
-0.1722189486026764,
0.24307796359062195,
0.1725536435842514,
0.3001836836338043,
-0.21755197644233704,
-0.12573489546775818,
-0.5043819546699524,
0.08435274660587311,
0.08224773406982422,
-0.33336707949638367,
-0.08316271007061005,
0.12165305018424988,
0.10116206109523773,
0.1263030618429184,
0.09696979075670242,
0.29007869958877563,
0.07219349592924118,
0.4266236126422882,
-0.4099591076374054,
0.6290709376335144,
-0.17453588545322418,
-0.16196371614933014,
0.1438542902469635,
-0.49804002046585083,
0.428037166595459,
-0.0921037569642067,
0.1016479879617691,
-0.12121552228927612,
0.25248482823371887,
-0.2613580524921417,
0.24895356595516205,
0.3376578390598297,
0.1373835802078247,
0.3791016638278961,
-0.0641288161277771,
0.03806193917989731,
0.08482027798891068,
0.4413315951824188,
-0.2321869134902954,
0.08265096694231033,
0.08332152664661407,
0.18311965465545654,
0.05464103817939758,
0.12475810945034027,
-0.13524381816387177,
0.13767805695533752,
0.046284422278404236,
-0.4186743199825287,
-0.13365255296230316,
-0.034165140241384506,
-0.04554184898734093,
0.2542334794998169,
-0.2590351700782776,
0.24755927920341492,
0.1833343505859375,
-0.04446379840373993,
-0.24488338828086853,
-0.23271135985851288,
0.36621102690696716,
-0.3689892888069153,
-0.29683518409729004,
-0.34291326999664307,
0.15190649032592773,
0.16320602595806122,
0.35042232275009155,
0.03308819606900215,
-0.1743745356798172,
0.39589616656303406,
-0.14295323193073273,
-0.507832944393158,
0.3442976474761963,
-0.051710013300180435,
-0.39344310760498047,
-0.10159461945295334,
0.006404265761375427,
-0.2152472287416458,
0.047587115317583084,
-0.11895642429590225,
-0.24146640300750732
] |
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.45069506764411926,
-0.38954058289527893,
-0.04728243127465248,
0.16293174028396606,
0.1149340569972992,
-0.28154903650283813,
0.26568740606307983,
0.2587326765060425,
-0.3923635482788086,
0.1888352781534195,
0.06290783733129501,
0.37189579010009766,
-0.08907046169042587,
-0.21051105856895447,
-0.5482545495033264,
0.23606981337070465,
0.08393273502588272,
-0.031093252822756767,
0.5445750951766968,
-0.11811096221208572,
-0.17544083297252655,
0.17737248539924622,
-0.2817244827747345,
0.05844005569815636,
-0.5508938431739807,
-0.10750415921211243,
0.09916375577449799,
0.20624321699142456,
-0.007959600538015366,
-0.3365160822868347,
-0.6048405170440674,
-0.006239517126232386,
-0.00670647481456399,
0.23802994191646576,
-0.0001208894100273028,
-0.02618810161948204,
-0.05014349892735481,
0.30457156896591187,
0.17736288905143738,
0.17577339708805084,
0.5087665319442749,
-0.26773008704185486,
-0.2065650373697281,
-0.08143691718578339,
0.07176175713539124,
-0.1732417345046997,
0.16467073559761047,
0.11087207496166229,
0.35982611775398254,
0.3113969564437866,
0.12591464817523956,
0.34641727805137634,
-0.2695311903953552,
0.1674761027097702,
-0.3548647463321686,
0.19097797572612762,
0.012733779847621918,
-0.16120797395706177,
0.10269807279109955,
0.14042823016643524,
-0.07313855737447739,
0.11146609485149384,
-0.2069510668516159,
0.011268015019595623,
0.11816741526126862,
-0.0765308141708374,
0.3340563178062439,
-0.5317914485931396,
0.310923308134079,
0.15555058419704437,
-0.1304645985364914,
0.22596636414527893,
-0.04477587714791298,
-0.22712445259094238,
-0.11731795966625214,
-0.4069032669067383,
-0.0659298375248909,
0.15366551280021667,
-0.22336480021476746,
-0.24925749003887177,
-0.28708940744400024,
0.20720870792865753,
0.12205834686756134,
-0.18539750576019287,
-0.16084285080432892,
0.1784251630306244,
0.21931490302085876,
0.18783800303936005,
0.09174009412527084,
-0.07948032766580582,
-0.3464469611644745,
-0.18999725580215454,
0.0932571068406105,
0.16413548588752747,
-0.26483964920043945,
0.08634988218545914,
0.016288552433252335,
-0.22845493257045746,
-0.17901961505413055,
-0.04983045160770416,
-0.49086251854896545,
0.5438273549079895,
-0.037949394434690475,
0.11003895848989487,
-0.05408189073204994,
-0.0507316067814827,
0.07112926244735718,
0.10738056898117065,
0.31452301144599915,
-0.037038616836071014,
-0.2704120874404907,
0.060651928186416626,
-0.18885719776153564,
-0.21573737263679504,
0.1591998189687729,
-0.11826546490192413,
-0.41017621755599976,
-0.07127947360277176,
-0.3443179428577423,
-0.04211501032114029,
0.061688825488090515,
0.24650125205516815,
0.1357426941394806,
0.27843740582466125,
0.1164705902338028,
0.607963502407074,
-0.2985524535179138,
-0.11464735120534897,
-0.47886496782302856,
0.030869832262396812,
-0.06569673866033554,
-0.09831596165895462,
-0.15332718193531036,
0.14121975004673004,
-0.05807514861226082,
0.09280877560377121,
-0.04242595285177231,
0.1374463587999344,
0.2228027731180191,
-0.05661717802286148,
0.14325453341007233,
-0.3872433602809906,
0.13442017138004303,
0.19697532057762146,
-0.0905412882566452,
0.32743528485298157,
0.007517323363572359,
-0.16623903810977936,
-0.36502522230148315,
0.19218552112579346,
-0.5542647242546082,
-0.15445223450660706,
-0.11722175031900406,
0.030015237629413605,
-0.025693990290164948,
0.3321104049682617,
-0.12658840417861938,
0.06592623144388199,
0.06016337871551514,
-0.0067129721865057945,
-0.15191662311553955,
-0.4198385775089264,
-0.5100107192993164,
-0.13090762495994568,
0.03543830290436745,
0.228473499417305,
0.007689540274441242,
-0.006162154022604227,
0.41477397084236145,
0.1895892471075058,
0.6329799890518188,
0.6403682231903076,
0.03652985021471977,
0.04567473381757736,
-0.20620813965797424,
0.4334464967250824,
0.007863564416766167,
-0.13665731251239777,
-0.3977270722389221,
0.27659380435943604,
-0.24921321868896484,
-0.2269994467496872,
0.12424574047327042,
0.0839226096868515,
0.27454042434692383,
-0.06252694129943848,
0.1646546870470047,
0.06087752431631088,
0.13746409118175507,
0.35242193937301636,
-0.3490794599056244,
0.00384653196670115,
-0.018544694408774376,
0.07427886873483658,
-0.04089716821908951,
-0.1899457424879074,
-0.03986884281039238,
-0.22908428311347961,
0.02772286906838417,
-0.1095845177769661,
0.008847113698720932,
0.21466846764087677,
0.11137891560792923,
-0.18691658973693848,
0.042484600096940994,
0.14804694056510925,
0.2814909517765045,
0.36980462074279785,
-0.21519961953163147,
0.25990912318229675,
-0.08252038061618805,
-0.029724998399615288,
0.28065213561058044,
0.12981072068214417,
-0.11571904271841049,
-0.24777594208717346,
-0.0031915458384901285,
-0.1168285384774208,
-0.24209491908550262,
0.0901821181178093,
0.06703616678714752,
0.3922368288040161,
0.10274714976549149,
-0.01898149959743023,
0.28642815351486206,
-0.07893325388431549,
-0.10342045873403549,
-0.2746039032936096,
-0.21790249645709991,
-0.004062797408550978,
0.3598759174346924,
0.02068818360567093,
-0.02098197303712368,
0.153875470161438,
0.297991007566452,
-0.10212049633264542,
-0.22007933259010315,
0.10737858712673187,
0.3305097818374634,
0.06490311026573181,
0.17376622557640076,
-0.13272252678871155,
-0.12965895235538483,
-0.14728282392024994,
0.25852730870246887,
0.48646125197410583,
0.2330118715763092,
0.2920907139778137,
0.16354523599147797,
-0.03659765422344208,
0.08781848102807999,
0.18755877017974854,
0.4652349352836609,
0.10401583462953568,
0.19912189245224,
0.6450461149215698,
0.1737261265516281,
0.2268470972776413,
-0.10093680024147034,
0.42203545570373535,
0.37509846687316895,
0.038357872515916824,
-0.23536284267902374,
0.3845769166946411,
-0.14131014049053192,
-0.095722995698452,
0.30674636363983154,
-0.5021468997001648,
0.25443190336227417,
0.08909770846366882,
-0.022123001515865326,
-0.014840527437627316,
-0.24618135392665863,
-0.025779755786061287,
-0.04386608675122261,
0.13689588010311127,
0.15698185563087463,
0.18070092797279358,
0.1568029671907425,
0.21764762699604034,
-0.3013881742954254,
-0.3200893700122833,
0.1313551813364029,
0.2890086770057678,
-0.17998015880584717,
0.09865715354681015,
-0.2343865931034088,
0.5450376868247986,
0.029059160500764847,
0.18980172276496887,
-0.20358692109584808,
-0.32128506898880005,
0.13697737455368042,
0.32577231526374817,
0.23752664029598236,
0.022905878722667694,
-0.011099450290203094,
0.000842457520775497,
0.09584768861532211,
0.012094074860215187,
-0.1002330407500267,
0.07725349068641663,
-0.4060470163822174,
-0.10352276265621185,
0.41330960392951965,
-0.020019415766000748,
0.15610885620117188,
0.021508505567908287,
-0.139360710978508,
-0.13924022018909454,
-0.38561710715293884,
0.02948428876698017,
0.06737083941698074,
0.04291083663702011,
-0.05716731399297714,
-0.019459007307887077,
-0.24998097121715546,
-0.021731756627559662,
0.28675198554992676,
-0.3686540722846985,
-0.16507580876350403,
0.12570635974407196,
-0.2890629172325134,
-0.3887500762939453,
-0.004057987593114376,
0.3380642831325531,
-0.2690817415714264,
0.016943009570240974,
0.076979860663414,
0.036295436322689056,
0.3447987735271454,
-0.06099073961377144,
-0.014745070599019527,
0.0760452076792717,
0.21775932610034943,
-0.17319323122501373,
-0.04938523471355438,
-0.10058694332838058,
0.23645004630088806,
-0.0065876878798007965,
-0.18477189540863037,
-0.16878627240657806,
0.05334671586751938,
-0.059252746403217316,
0.19087550044059753,
-0.09321156144142151,
-0.06752999126911163,
-0.27924877405166626,
0.5511071681976318,
-0.22005940973758698,
-0.1358429491519928,
0.35350143909454346,
0.21898488700389862,
-0.20786087214946747,
0.17709003388881683,
-0.05373808741569519,
0.10267562419176102,
-0.20862841606140137,
-0.0796085000038147,
-0.022160682827234268,
0.1777781844139099,
0.2634580433368683,
0.6565592885017395,
0.1694372594356537,
-0.5546489357948303,
0.4604192078113556,
-0.15751472115516663,
-0.16103628277778625,
0.03290560469031334,
-0.04120707884430885,
0.3707016110420227,
0.10707667469978333,
0.06402552872896194,
0.2123037725687027,
0.04502572491765022,
-0.36827707290649414,
0.1785331815481186,
0.1515750139951706,
-0.08369939029216766,
-0.10603660345077515,
0.12393337488174438,
0.0961197018623352,
0.1262587159872055,
-0.1447354257106781,
0.05626649409532547,
-0.301388144493103,
-0.21971142292022705,
-0.035473499447107315,
0.000495744461659342,
0.003947877790778875,
-0.42131274938583374,
-0.5623944997787476,
-0.08087407797574997,
-0.6648816466331482,
0.39262324571609497,
0.25158870220184326,
0.30319398641586304,
0.046369921416044235,
0.04596589505672455,
0.25088971853256226,
-0.3131648600101471,
0.7168611884117126,
0.0974351316690445,
-0.0989004448056221,
0.19963279366493225,
-0.32481256127357483,
-0.4253256916999817,
-0.08933722972869873,
0.10861125588417053,
0.31602245569229126,
0.2753642797470093,
0.9014763832092285,
-0.04134296253323555,
-0.4147048592567444,
-0.2874908745288849,
-0.19018113613128662,
0.04968782886862755,
-0.14712555706501007,
-0.15749767422676086,
-0.24635694921016693,
-0.1956476867198944,
0.26433080434799194,
0.011448812671005726,
0.2582147419452667,
-0.22034746408462524,
-0.2466583251953125,
-0.06179187819361687,
-0.09872584044933319,
0.3484373390674591,
-0.017023272812366486,
0.15590982139110565,
0.016718439757823944,
0.11871369183063507,
0.16371797025203705,
0.1730431467294693,
0.23859357833862305,
-0.2919008433818817,
0.29313886165618896,
-0.18073950707912445,
0.13434049487113953,
0.13936471939086914,
0.016826888546347618,
0.45435646176338196,
0.045916177332401276,
0.1290719211101532,
-0.40707775950431824,
0.630262017250061,
0.04906734824180603,
0.38614600896835327,
0.19939438998699188,
0.33714911341667175,
-0.3774442970752716,
0.3004014194011688,
-0.029604023322463036,
0.28437286615371704,
-0.04927907884120941,
0.10184586048126221,
-0.4722980558872223,
0.12413303554058075,
0.0038177603855729103,
0.5101214647293091,
0.9462083578109741,
-0.38603848218917847,
0.1506650298833847,
-0.274277001619339,
-0.017201533541083336,
0.16399089992046356,
-0.46860939264297485,
0.10104461014270782,
-0.45574647188186646,
-0.3033404052257538,
0.008600173518061638,
-0.0756165012717247,
0.338569700717926,
0.19636330008506775,
0.2635626494884491,
0.12896668910980225,
0.145003080368042,
0.15474186837673187,
-0.03221863880753517,
0.3646080791950226,
0.25695061683654785,
-0.36165159940719604,
0.20991165935993195,
0.08650843054056168,
0.1023162379860878,
-0.07126744091510773,
0.10382811725139618,
0.018619252368807793,
-0.15366503596305847,
0.048324793577194214,
-0.13981874287128448,
-0.08893786370754242,
-0.3795027434825897,
0.3293953835964203,
0.2940434515476227,
0.2540568709373474,
-0.012970587238669395,
0.2836945950984955,
0.11308343708515167,
0.025787485763430595,
-0.025923099368810654,
0.2413250058889389,
0.24275992810726166,
0.028598492965102196,
0.2847896218299866,
-0.42565932869911194,
0.07922938466072083,
-0.20826314389705658,
-0.07657244801521301,
-0.1313895583152771,
-0.019126517698168755,
-0.039588749408721924,
-0.29560133814811707,
0.04810270667076111,
0.4833637773990631,
0.39676433801651,
0.037729136645793915,
-0.06517790257930756,
-0.2590228021144867,
-0.14063052833080292,
0.01911480538547039,
-0.0755595937371254,
-0.16976460814476013,
0.3989981710910797,
-0.1596682220697403,
-0.2789795696735382,
0.05494745075702667,
0.319085955619812,
-0.17582494020462036,
-0.04769236966967583,
0.2904019355773926,
-0.24132581055164337,
-0.2966601550579071,
-0.07821521162986755,
0.2210617959499359,
-0.19759421050548553,
0.022477852180600166,
-0.08514177054166794,
0.03153194487094879,
-0.3125324249267578,
0.17565320432186127,
-0.026385394856333733,
-0.16827380657196045,
-0.11906130611896515,
-0.16533584892749786,
-0.17141596972942352,
-0.5735749006271362,
-0.47566425800323486,
-0.4286082088947296,
-0.027644706889986992,
0.025606365874409676,
0.09153727442026138,
-0.23187746107578278,
0.0014342456124722958,
-0.2034561187028885,
-0.004084706772118807,
-0.219267800450325,
0.22260791063308716,
-0.35013994574546814,
-0.28449249267578125,
-0.17893381416797638,
-0.03944249451160431,
0.1347632110118866,
0.4382517635822296,
-0.11854776740074158,
-0.16472743451595306,
-0.11321453750133514,
0.18717505037784576,
0.09964434057474136,
-0.474582701921463,
0.16567650437355042,
0.2503248453140259,
-0.42422056198120117,
-0.2861308455467224,
0.0438259020447731,
0.07101085782051086,
-0.22039680182933807,
-0.2785338759422302,
0.4803015887737274,
0.04637739434838295,
0.15372103452682495,
0.21633367240428925,
0.03737925365567207,
0.36296647787094116,
0.11198216676712036,
0.1945253610610962,
0.03042003884911537,
-0.05731610953807831,
-0.08808425813913345,
0.020355917513370514,
0.3967161476612091,
-0.0861901193857193,
0.08648654073476791,
-0.1419195979833603,
-0.1733754575252533,
0.09060823917388916,
0.0666426420211792,
0.14094460010528564,
-0.08792643249034882,
-0.4116290807723999,
0.5136474967002869,
0.07845292240381241,
-0.14988695085048676,
-0.2812046706676483,
0.2699747681617737,
-0.09630990028381348,
-0.03262028470635414,
0.024041665717959404,
0.42116373777389526,
0.07769250124692917,
-0.03212856501340866,
0.0739573985338211,
0.2720720171928406,
-0.5317789316177368,
-0.29523321986198425,
-0.14082369208335876,
0.07017040997743607,
0.16848315298557281,
0.41279810667037964,
-0.14482904970645905,
-0.05421018972992897,
0.29119187593460083,
0.05993851646780968,
0.5728486776351929,
0.1703595072031021,
0.41894447803497314,
-0.12044159322977066,
-0.20074757933616638,
-0.24468466639518738,
0.3875007629394531,
-0.021160824224352837,
0.22978457808494568,
-0.12530040740966797,
0.14031776785850525,
-0.16625015437602997,
-0.4690256714820862,
-0.05899804085493088,
0.6085990071296692,
-0.37073951959609985,
-0.2414242923259735,
-0.047247473150491714,
0.03076155297458172,
-0.19743835926055908,
0.16101691126823425,
-0.011226963251829147,
0.06070047989487648,
0.17065751552581787,
0.39103052020072937,
-0.11837397515773773,
-0.08867590874433517,
-0.30246424674987793,
0.008697006851434708,
0.3411860466003418,
-0.12345939874649048,
0.1405358761548996,
-0.14753231406211853,
0.12450823932886124,
0.03214589133858681,
-0.1595974862575531,
0.6055908203125,
0.5521278977394104,
-0.34117016196250916,
-0.1187717542052269,
-0.13530802726745605,
0.1968233585357666,
0.05278778821229935,
0.16827639937400818,
-0.11120320856571198,
0.12521880865097046,
-0.002661491744220257,
-0.12134112417697906,
-0.22438599169254303,
-0.4974941611289978,
-0.07655870914459229,
0.1628837138414383,
0.24054627120494843,
0.30490797758102417,
-0.04927627369761467,
-0.23106858134269714,
-0.028005359694361687,
0.16744054853916168,
0.009861472994089127,
0.06967621296644211,
0.2245880514383316,
-0.24603301286697388,
0.15211030840873718,
0.0025105150416493416,
0.0438818484544754,
-0.16606645286083221,
0.24787618219852448,
0.038767728954553604,
0.11368181556463242,
-0.24556870758533478,
-0.05063646659255028,
-0.587618887424469,
0.1819278746843338,
0.11531610786914825,
-0.12369854003190994,
0.07070514559745789,
0.024534406140446663,
0.019817564636468887,
-0.08728844672441483,
0.12677748501300812,
0.22818274796009064,
0.29388174414634705,
0.4610562026500702,
-0.4185815751552582,
0.6147736310958862,
-0.22207915782928467,
-0.16897052526474,
0.08847518265247345,
-0.48435378074645996,
0.563254714012146,
-0.031848374754190445,
0.048795219510793686,
0.00994057022035122,
0.1435699313879013,
-0.26664113998413086,
0.36951810121536255,
0.44439128041267395,
0.1392313688993454,
0.34442466497421265,
-0.03970453888177872,
0.012215224094688892,
0.08981869369745255,
0.5262333154678345,
-0.22024782001972198,
-0.10357919335365295,
-0.07715073227882385,
0.10547255724668503,
0.09775697439908981,
0.14413435757160187,
-0.1994735449552536,
-0.02987693063914776,
0.12576383352279663,
-0.3371967077255249,
-0.252749502658844,
0.09939812123775482,
-0.09425906836986542,
0.372127890586853,
-0.15031608939170837,
0.324028879404068,
0.2423543632030487,
-0.054916586726903915,
-0.35579800605773926,
-0.16337153315544128,
0.38203883171081543,
-0.4133445918560028,
-0.19887840747833252,
-0.3727410137653351,
0.21037454903125763,
-0.02554982900619507,
0.2667752206325531,
0.19617241621017456,
-0.27028021216392517,
0.27861493825912476,
-0.06688164919614792,
-0.5310515761375427,
0.2898270785808563,
-0.20480109751224518,
-0.258774071931839,
-0.16066214442253113,
-0.03173932805657387,
-0.18403342366218567,
-0.08877326548099518,
-0.011560305021703243,
-0.023778943344950676
] |
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.44992369413375854,
-0.33846595883369446,
-0.08818309754133224,
0.1553918868303299,
0.08865959197282791,
-0.30338358879089355,
0.276115745306015,
0.24882656335830688,
-0.41450759768486023,
0.15615476667881012,
0.21321800351142883,
0.3615122437477112,
-0.22451500594615936,
-0.10623307526111603,
-0.5425732731819153,
0.20700807869434357,
0.0648820772767067,
0.028431866317987442,
0.49757879972457886,
0.033927660435438156,
-0.20338547229766846,
0.12074977904558182,
-0.3736271262168884,
0.024750594049692154,
-0.5798372626304626,
-0.1454625129699707,
0.11425098776817322,
0.12211257219314575,
-0.1154537945985794,
-0.32993143796920776,
-0.6470973491668701,
-0.0766080990433693,
-0.031884968280792236,
0.33418503403663635,
-0.00011558618280105293,
-0.0463390052318573,
0.10905751585960388,
0.3409174680709839,
0.0598880834877491,
0.0577894002199173,
0.3721916675567627,
-0.3562236428260803,
-0.1680818796157837,
-0.13386179506778717,
0.0659419596195221,
-0.14266154170036316,
0.15894339978694916,
0.032281164079904556,
0.34063512086868286,
0.4026557207107544,
0.19114965200424194,
0.3179595470428467,
-0.27087846398353577,
0.25435101985931396,
-0.21346043050289154,
0.16846412420272827,
-0.039551544934511185,
-0.26264920830726624,
0.13799113035202026,
0.23329861462116241,
0.07556792348623276,
0.17135360836982727,
-0.25367113947868347,
-0.17969352006912231,
0.07960795611143112,
-0.07373855262994766,
0.39696744084358215,
-0.5955148339271545,
0.333823025226593,
0.06884805858135223,
-0.04980311915278435,
0.20842619240283966,
-0.1226273775100708,
-0.24462834000587463,
-0.11941288411617279,
-0.3561381995677948,
-0.03157331049442291,
0.11775413900613785,
-0.14593064785003662,
-0.19972674548625946,
-0.4144127070903778,
0.1733221411705017,
0.09277869015932083,
-0.0780104473233223,
-0.23131154477596283,
0.134222149848938,
0.18728648126125336,
0.18756917119026184,
0.03742489591240883,
-0.21650077402591705,
-0.2947062849998474,
-0.2338627427816391,
0.04645858332514763,
0.2533206641674042,
-0.23093442618846893,
0.06602343171834946,
0.015278850682079792,
-0.1303662657737732,
-0.2016305923461914,
0.06675641238689423,
-0.4654318392276764,
0.48758456110954285,
0.03277381882071495,
0.14346933364868164,
-0.11149584501981735,
0.02857281267642975,
0.17092794179916382,
0.12753555178642273,
0.30011799931526184,
-0.25430911779403687,
-0.23435157537460327,
0.00017992690845858306,
-0.15438029170036316,
-0.18218311667442322,
0.21542838215827942,
-0.06125828996300697,
-0.2682191729545593,
-0.023340873420238495,
-0.3308350443840027,
-0.011547808535397053,
0.08733553439378738,
0.26196494698524475,
0.29966750741004944,
0.20028871297836304,
0.06225810572504997,
0.5214753150939941,
-0.2556758224964142,
-0.12158486247062683,
-0.45947521924972534,
0.11334832012653351,
-0.08156386762857437,
-0.16471737623214722,
-0.18655161559581757,
0.1378512680530548,
-0.061312660574913025,
0.1771666258573532,
-0.005451784934848547,
0.02535846270620823,
0.11040433496236801,
0.0252898670732975,
0.18232361972332,
-0.32231447100639343,
0.11473650485277176,
0.20227691531181335,
-0.0671100914478302,
0.30353328585624695,
-0.10294491797685623,
-0.16178250312805176,
-0.3697654902935028,
0.23814082145690918,
-0.5384535789489746,
-0.15245650708675385,
-0.15894882380962372,
0.09347663819789886,
-0.12793150544166565,
0.2658381164073944,
-0.2042577862739563,
0.06476198881864548,
0.08311882615089417,
-0.01849164441227913,
-0.1679268330335617,
-0.32961490750312805,
-0.5520943999290466,
-0.1329561024904251,
-0.02749870903789997,
0.1706847846508026,
0.0621938593685627,
-0.006492055021226406,
0.40618640184402466,
0.13750596344470978,
0.567740797996521,
0.47640636563301086,
0.08073683828115463,
-0.006731776986271143,
-0.18962958455085754,
0.49758395552635193,
0.1461080014705658,
-0.08475197851657867,
-0.39200109243392944,
0.22476701438426971,
-0.34356001019477844,
-0.259138822555542,
0.14435124397277832,
0.19340240955352783,
0.2961147725582123,
-0.08136411756277084,
0.18916217982769012,
0.16845101118087769,
0.17066575586795807,
0.4236149191856384,
-0.34472572803497314,
0.11502029001712799,
0.05402915179729462,
0.05106804892420769,
-0.1712333709001541,
-0.20770132541656494,
-0.10226213932037354,
-0.2073798030614853,
-0.07551870495080948,
-0.14662331342697144,
0.06731811910867691,
0.21432018280029297,
0.09448466449975967,
-0.19333864748477936,
0.07487504184246063,
0.029965989291667938,
0.19125224649906158,
0.32528477907180786,
-0.10103349387645721,
0.1861102432012558,
-0.13362251222133636,
-0.034463971853256226,
0.2596733868122101,
0.12676450610160828,
-0.12485288083553314,
-0.14666485786437988,
0.05866434425115585,
-0.18721738457679749,
-0.20349299907684326,
0.1582450419664383,
0.12608498334884644,
0.36442768573760986,
0.08019362390041351,
-0.05832098424434662,
0.24551086127758026,
-0.09911844879388809,
-0.1141909584403038,
-0.293793261051178,
-0.19320319592952728,
0.002608255250379443,
0.381473571062088,
0.012568885460495949,
-0.02529114857316017,
0.24702079594135284,
0.38133448362350464,
0.020500533282756805,
-0.23372361063957214,
0.10551358014345169,
0.4118439257144928,
0.06030324473977089,
0.20260389149188995,
-0.09500552713871002,
-0.08629708737134933,
-0.177508145570755,
0.270907461643219,
0.5127888917922974,
0.20945744216442108,
0.2903514802455902,
0.14326079189777374,
0.05545184016227722,
0.06882297992706299,
0.1647234708070755,
0.2425818145275116,
0.021635757759213448,
0.17358887195587158,
0.6222237348556519,
0.2241014838218689,
0.2362847924232483,
-0.015228686854243279,
0.33243247866630554,
0.313946932554245,
0.0017891096649691463,
-0.16965676844120026,
0.3111465871334076,
-0.18454578518867493,
-0.057629670947790146,
0.284271240234375,
-0.49432048201560974,
0.23539702594280243,
0.20805373787879944,
-0.023512687534093857,
-0.02084830403327942,
-0.19962188601493835,
-0.07817328721284866,
0.08614523708820343,
0.17543476819992065,
0.14295774698257446,
0.09686394035816193,
0.2540305256843567,
0.1578586846590042,
-0.26928552985191345,
-0.25317642092704773,
0.08845630288124084,
0.33548176288604736,
-0.10190797597169876,
0.10016646981239319,
-0.16875484585762024,
0.4012039005756378,
0.07151702791452408,
0.09443183988332748,
-0.1741175800561905,
-0.31713253259658813,
0.1304926723241806,
0.28311967849731445,
0.158576101064682,
0.12466064095497131,
-0.029783455654978752,
0.0023995735682547092,
0.19020046293735504,
0.06686386466026306,
-0.08295675367116928,
0.020242810249328613,
-0.3556159734725952,
-0.04946459084749222,
0.4389980435371399,
-0.01621650718152523,
0.2940426468849182,
-0.009238467551767826,
0.003873121226206422,
-0.23173001408576965,
-0.45568376779556274,
0.003174297045916319,
0.041391950100660324,
0.025513367727398872,
-0.06809157133102417,
-0.062108367681503296,
-0.2358984798192978,
0.019418921321630478,
0.24805831909179688,
-0.35834193229675293,
-0.21802657842636108,
0.10979034006595612,
-0.22621585428714752,
-0.37258780002593994,
-0.06869392096996307,
0.3364558815956116,
-0.21028460562229156,
0.07575076073408127,
0.14487525820732117,
0.06601978093385696,
0.3742145001888275,
-0.0085042305290699,
0.15160194039344788,
0.12918519973754883,
0.2616475224494934,
-0.11561061441898346,
-0.06685471534729004,
-0.057570286095142365,
0.2586348056793213,
-0.026219442486763,
-0.17417211830615997,
-0.10988505184650421,
0.0847541019320488,
-0.11149842292070389,
0.2365138977766037,
-0.007567663211375475,
-0.2055543065071106,
-0.3503779470920563,
0.4797757863998413,
-0.18036730587482452,
-0.15610665082931519,
0.3318632245063782,
0.22200319170951843,
-0.2312348186969757,
0.1933973729610443,
-0.08167245239019394,
-0.053440600633621216,
-0.24165542423725128,
-0.058351099491119385,
-0.015322472900152206,
0.1631850153207779,
0.2545318007469177,
0.5217762589454651,
0.12709656357765198,
-0.5550824403762817,
0.2751222252845764,
-0.24123695492744446,
-0.1587434858083725,
0.038779884576797485,
-0.11545782536268234,
0.3504105806350708,
0.21305164694786072,
0.04146015644073486,
0.17166557908058167,
0.08920352160930634,
-0.46743205189704895,
0.09821121394634247,
0.09064854681491852,
-0.14677251875400543,
-0.11138857156038284,
0.01766660436987877,
-0.0280593354254961,
0.09488609433174133,
-0.16024629771709442,
0.05418875813484192,
-0.3582012951374054,
-0.18007755279541016,
-0.15436536073684692,
-0.029882121831178665,
0.021204903721809387,
-0.49660414457321167,
-0.6432386040687561,
-0.03157656267285347,
-0.7037487626075745,
0.40599822998046875,
0.2911790609359741,
0.23199748992919922,
0.15315067768096924,
-0.034088943153619766,
0.22592824697494507,
-0.24682572484016418,
0.7638765573501587,
0.02786000818014145,
-0.14180342853069305,
0.16730636358261108,
-0.21365578472614288,
-0.554660439491272,
-0.03837311267852783,
0.17847245931625366,
0.3922828733921051,
0.3510374128818512,
0.934482753276825,
0.01703757606446743,
-0.3225589096546173,
-0.29031234979629517,
-0.1400996744632721,
0.08642727881669998,
-0.1478824019432068,
-0.2009086161851883,
-0.1770840734243393,
-0.19912467896938324,
0.2782622277736664,
-0.020045913755893707,
0.2604212760925293,
-0.11953245103359222,
-0.36687803268432617,
-0.15750302374362946,
-0.1159370020031929,
0.284186452627182,
-0.05700191482901573,
0.2025182694196701,
-0.09139229357242584,
0.18104995787143707,
0.15770216286182404,
0.20298710465431213,
0.2023250162601471,
-0.29835838079452515,
0.2804030776023865,
-0.17432262003421783,
0.10976561158895493,
0.16407287120819092,
0.06766143441200256,
0.38649773597717285,
0.031313858926296234,
0.09840112924575806,
-0.4779432713985443,
0.5437564849853516,
0.07036540657281876,
0.44886136054992676,
0.19096164405345917,
0.31995606422424316,
-0.3200169503688812,
0.27054038643836975,
-0.011883153580129147,
0.36819252371788025,
-0.013044138438999653,
0.06034048646688461,
-0.45940232276916504,
0.002053400268778205,
-0.013288474641740322,
0.48909324407577515,
0.9400274157524109,
-0.30607813596725464,
0.21337580680847168,
-0.19315072894096375,
-0.018485918641090393,
0.1113680750131607,
-0.2814571261405945,
0.040649086236953735,
-0.43894797563552856,
-0.12585856020450592,
0.04153265804052353,
-0.09118381887674332,
0.2763584852218628,
0.0752054825425148,
0.15299740433692932,
0.023657338693737984,
0.16205574572086334,
0.2183244675397873,
-0.09041080623865128,
0.38085007667541504,
0.18069769442081451,
-0.34401679039001465,
0.1924467831850052,
0.14945483207702637,
0.17389191687107086,
-0.11925657838582993,
0.1402198076248169,
0.007836267352104187,
-0.160185769200325,
0.018656965345144272,
-0.13365009427070618,
-0.10673321038484573,
-0.34195655584335327,
0.3004215359687805,
0.2268000841140747,
0.12188214063644409,
-0.16035516560077667,
0.3938632011413574,
0.01867138408124447,
0.15528364479541779,
-0.09507154673337936,
0.29040586948394775,
0.18185082077980042,
0.056035466492176056,
0.1889549344778061,
-0.4750974774360657,
-0.01061453390866518,
-0.20371907949447632,
0.010418158955872059,
-0.05434400960803032,
0.025680556893348694,
0.062405992299318314,
-0.27891525626182556,
0.08110274374485016,
0.4807519316673279,
0.35188227891921997,
-0.06147923320531845,
-0.09268587082624435,
-0.284900963306427,
-0.15500229597091675,
0.09230849146842957,
-0.09175509959459305,
-0.11461256444454193,
0.3365737497806549,
-0.09942900389432907,
-0.31270092725753784,
0.0610961951315403,
0.3479284942150116,
-0.12254001945257187,
-0.11905958503484726,
0.3216855525970459,
-0.2689371407032013,
-0.2803429067134857,
-0.12525242567062378,
0.2756991982460022,
-0.29102033376693726,
0.04518667608499527,
-0.07331196218729019,
0.15233899652957916,
-0.22312693297863007,
0.19141750037670135,
-0.0689254105091095,
-0.22401240468025208,
-0.06586003303527832,
-0.10139009356498718,
-0.11308128386735916,
-0.5481933951377869,
-0.42653584480285645,
-0.39935678243637085,
0.03976859524846077,
-0.08143830299377441,
0.0588100403547287,
-0.29697003960609436,
-0.1574757844209671,
-0.25817641615867615,
0.04411862790584564,
-0.21275708079338074,
0.24599477648735046,
-0.2213793247938156,
-0.2583942711353302,
-0.20132197439670563,
-0.08697917312383652,
0.1961781233549118,
0.35869553685188293,
-0.10277481377124786,
-0.22565068304538727,
-0.04825517162680626,
0.1419333964586258,
0.14895448088645935,
-0.5315020084381104,
0.14967913925647736,
0.2843879461288452,
-0.40866971015930176,
-0.3168083727359772,
0.019023342058062553,
0.1879047006368637,
-0.27280059456825256,
-0.3082475960254669,
0.3944227993488312,
0.10010942071676254,
0.2289350926876068,
0.16609014570713043,
-0.0942242220044136,
0.3499566614627838,
0.07231953740119934,
0.2149963229894638,
0.04028314724564552,
-0.023630015552043915,
0.07835658639669418,
0.015448623336851597,
0.39583370089530945,
-0.04504285007715225,
0.05885710567235947,
-0.11912621557712555,
-0.14413097500801086,
0.17184282839298248,
-0.03243603929877281,
0.12433826178312302,
-0.12953868508338928,
-0.3658831715583801,
0.47081536054611206,
0.16852013766765594,
-0.07647520303726196,
-0.21410295367240906,
0.32786035537719727,
-0.15246917307376862,
0.01933503895998001,
0.01831757463514805,
0.28887754678726196,
0.14241357147693634,
-0.005200473591685295,
0.0909813866019249,
0.21070250868797302,
-0.47353389859199524,
-0.2761484682559967,
-0.18029585480690002,
0.059644024819135666,
0.037694044411182404,
0.45915207266807556,
-0.10189338773488998,
-0.03244650363922119,
0.3655964136123657,
-0.030257554724812508,
0.5474575161933899,
0.17477309703826904,
0.4053160548210144,
-0.17855769395828247,
-0.03432280197739601,
-0.2934328615665436,
0.359129399061203,
-0.05438196659088135,
0.22300755977630615,
-0.04986577853560448,
0.11069408804178238,
-0.11330021917819977,
-0.3018493056297302,
-0.0353638119995594,
0.6377307772636414,
-0.3508566617965698,
-0.2562386095523834,
-0.11697268486022949,
0.001978495391085744,
-0.1625104397535324,
0.12446601688861847,
-0.03681306540966034,
0.07183089107275009,
0.012783442623913288,
0.3527551293373108,
-0.12327034771442413,
-0.0989837497472763,
-0.25997376441955566,
0.07059311121702194,
0.2637038230895996,
-0.11590132117271423,
0.1439366340637207,
-0.24779534339904785,
0.19883526861667633,
0.05083732306957245,
-0.06022320315241814,
0.6009983420372009,
0.6137851476669312,
-0.4024631083011627,
-0.09451887756586075,
-0.05732698738574982,
0.06548378616571426,
0.042820073664188385,
0.29757797718048096,
-0.1064925417304039,
0.04456839710474014,
0.019312268123030663,
-0.03608262166380882,
-0.2808651626110077,
-0.41032299399375916,
-0.15312758088111877,
-0.005179507192224264,
0.21565833687782288,
0.2116224467754364,
-0.10120391100645065,
-0.29526352882385254,
-0.12312133610248566,
0.17609620094299316,
-0.019273703917860985,
-0.05875988304615021,
0.23487588763237,
-0.23146100342273712,
0.13486124575138092,
-0.00897565670311451,
0.07454640418291092,
-0.21756958961486816,
0.275480180978775,
0.14639845490455627,
0.22932308912277222,
-0.22048108279705048,
-0.09337133914232254,
-0.5578262805938721,
0.15208002924919128,
0.0814376249909401,
-0.14843890070915222,
-0.009661107324063778,
0.012766162864863873,
-0.04024391993880272,
0.05634680762887001,
0.1488923728466034,
0.309135764837265,
0.20660322904586792,
0.31679606437683105,
-0.4335674047470093,
0.6727851629257202,
-0.06813310831785202,
-0.2339497208595276,
0.06658922135829926,
-0.5331951975822449,
0.4914659857749939,
-0.09029604494571686,
0.11552171409130096,
-0.05388845130801201,
0.22374700009822845,
-0.371753454208374,
0.42691299319267273,
0.5173205733299255,
0.1495979130268097,
0.3735646903514862,
-0.010063624940812588,
0.06455429643392563,
0.033090099692344666,
0.4389159083366394,
-0.22941167652606964,
-0.15109574794769287,
-0.026214223355054855,
0.005404086317867041,
0.04347740486264229,
0.15804536640644073,
-0.16629913449287415,
0.01850929670035839,
0.16770648956298828,
-0.309985876083374,
-0.17906434834003448,
0.08880645781755447,
-0.09605245292186737,
0.30115506052970886,
-0.32513758540153503,
0.18929167091846466,
0.2122381180524826,
-0.03466525673866272,
-0.29136231541633606,
-0.15554971992969513,
0.36991122364997864,
-0.3290712535381317,
-0.14483290910720825,
-0.30391937494277954,
0.1994423121213913,
0.07765153050422668,
0.32481664419174194,
0.11249368637800217,
-0.230351522564888,
0.34387505054473877,
-0.12543463706970215,
-0.5179370045661926,
0.34203240275382996,
-0.14677585661411285,
-0.2482200562953949,
-0.1574876457452774,
-0.0366523452103138,
-0.17208459973335266,
0.021748926490545273,
-0.003095084335654974,
-0.045371245592832565
] |
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.41471239924430847,
-0.2900134325027466,
-0.14023903012275696,
0.177593395113945,
0.08560404926538467,
-0.3098762631416321,
0.31659001111984253,
0.2695380747318268,
-0.4015323519706726,
0.1938363015651703,
0.17181840538978577,
0.44014477729797363,
-0.17750804126262665,
-0.17341375350952148,
-0.4684060513973236,
0.1972348839044571,
0.04768873751163483,
0.0190269835293293,
0.4751040041446686,
0.05315087363123894,
-0.2164153903722763,
0.24015501141548157,
-0.3768131136894226,
0.026949558407068253,
-0.49608373641967773,
-0.09824324399232864,
0.19894705712795258,
0.12130294740200043,
-0.13916952908039093,
-0.3674749732017517,
-0.6068891286849976,
-0.11219259351491928,
-0.05636751651763916,
0.21197806298732758,
-0.00011639264994300902,
-0.029694925993680954,
0.06461263447999954,
0.27307015657424927,
0.11135862022638321,
0.08839640766382217,
0.34826603531837463,
-0.3627753257751465,
-0.20929688215255737,
-0.1784972995519638,
0.07555776834487915,
-0.1697573959827423,
0.1654166430234909,
0.0946599543094635,
0.31698867678642273,
0.38892316818237305,
0.17815789580345154,
0.31175702810287476,
-0.21352700889110565,
0.25940266251564026,
-0.2771308720111847,
0.10196287930011749,
-0.06877133250236511,
-0.21408501267433167,
0.030377091839909554,
0.24990220367908478,
0.042584288865327835,
0.2547704875469208,
-0.21619409322738647,
-0.12625662982463837,
0.01594439707696438,
-0.03368142619729042,
0.37189626693725586,
-0.5546594858169556,
0.28480327129364014,
0.03272363543510437,
-0.12973806262016296,
0.21463742852210999,
-0.060182299464941025,
-0.1541358381509781,
-0.18855787813663483,
-0.34453877806663513,
-0.045315418392419815,
0.12049312144517899,
-0.21086786687374115,
-0.22277890145778656,
-0.3741152882575989,
0.18415506184101105,
0.08402097970247269,
-0.07090741395950317,
-0.18274745345115662,
0.1372271031141281,
0.1799200177192688,
0.2410600185394287,
0.058866776525974274,
-0.22580358386039734,
-0.2731666564941406,
-0.22240044176578522,
0.1319556087255478,
0.21978513896465302,
-0.236580953001976,
0.03646308183670044,
0.012543627060949802,
-0.17886146903038025,
-0.22658666968345642,
0.06108802929520607,
-0.384872168302536,
0.4795629680156708,
0.04133852198719978,
0.20883329212665558,
-0.23148372769355774,
-0.009755403734743595,
0.18308623135089874,
0.16022738814353943,
0.23683346807956696,
-0.13413919508457184,
-0.1728893220424652,
0.031193668022751808,
-0.11209487169981003,
-0.19605907797813416,
0.21139633655548096,
0.01302808616310358,
-0.23589937388896942,
0.017114728689193726,
-0.3119623363018036,
0.014012197963893414,
0.09054557234048843,
0.19949425756931305,
0.26836779713630676,
0.23753291368484497,
0.11958009749650955,
0.4252529740333557,
-0.2917689383029938,
-0.1754114180803299,
-0.4300309717655182,
0.10398323833942413,
-0.09702632576227188,
-0.10996999591588974,
-0.11935725063085556,
0.06709066778421402,
-0.04760655015707016,
0.21875381469726562,
0.015516641549766064,
-0.04476696625351906,
0.15373528003692627,
0.02970561757683754,
0.15373747050762177,
-0.3857296407222748,
0.19108782708644867,
0.23799604177474976,
-0.060385484248399734,
0.27639907598495483,
-0.06954620033502579,
-0.16463637351989746,
-0.37982210516929626,
0.24885180592536926,
-0.4449458420276642,
-0.05453118681907654,
-0.09990066289901733,
0.10634085536003113,
-0.01321901474148035,
0.24200743436813354,
-0.09770228713750839,
0.010309307835996151,
0.1538999229669571,
-0.1459277868270874,
-0.0659777820110321,
-0.29744380712509155,
-0.5686416625976562,
-0.16239599883556366,
-0.012686514295637608,
0.1474442183971405,
0.09666353464126587,
-0.06901168823242188,
0.46873462200164795,
0.133840411901474,
0.6333217620849609,
0.47596505284309387,
0.0957220196723938,
-0.02737460471689701,
-0.18267124891281128,
0.5199816226959229,
0.20565854012966156,
-0.08900798857212067,
-0.41675758361816406,
0.1860775649547577,
-0.2954649031162262,
-0.3388357162475586,
0.18455097079277039,
0.1925988495349884,
0.2760441303253174,
-0.07360890507698059,
0.15277442336082458,
0.1710796356201172,
0.21810394525527954,
0.38875821232795715,
-0.3401803970336914,
0.043267086148262024,
0.05794496461749077,
0.005266385152935982,
-0.14399129152297974,
-0.2692907452583313,
-0.013655261136591434,
-0.13584120571613312,
-0.11600608378648758,
-0.10867366194725037,
0.07073516398668289,
0.1403699368238449,
0.04051270708441734,
-0.2887229025363922,
0.035769712179899216,
0.039693985134363174,
0.13626432418823242,
0.26750168204307556,
-0.20482808351516724,
0.1992262750864029,
-0.1795550286769867,
-0.056898608803749084,
0.2130097597837448,
0.1105736717581749,
-0.09639041870832443,
-0.22236622869968414,
0.05209827795624733,
-0.14098559319972992,
-0.08063730597496033,
0.1275230199098587,
0.12806583940982819,
0.33404019474983215,
-0.008775233291089535,
-0.014283922500908375,
0.20482824742794037,
-0.06021692976355553,
-0.18829838931560516,
-0.2748568058013916,
-0.23191770911216736,
0.01951492577791214,
0.3814215362071991,
-0.07074166089296341,
-0.046166110783815384,
0.2635863423347473,
0.28816258907318115,
0.06828013062477112,
-0.25232312083244324,
0.01211093831807375,
0.3966022729873657,
0.04029577970504761,
0.1687041074037552,
-0.06763561815023422,
-0.024878934025764465,
-0.1205536276102066,
0.2534332275390625,
0.4735647737979889,
0.19113779067993164,
0.29156550765037537,
0.20262256264686584,
-0.006427615415304899,
0.06468261033296585,
0.19919510185718536,
0.2518368661403656,
-0.10874655097723007,
0.0632859617471695,
0.7362860441207886,
0.1480683535337448,
0.24106484651565552,
0.014350216835737228,
0.3129013776779175,
0.41918084025382996,
0.04355650022625923,
-0.1877627670764923,
0.31887736916542053,
-0.14706356823444366,
-0.09897808730602264,
0.29963353276252747,
-0.40214788913726807,
0.21886110305786133,
0.21135284006595612,
0.028401682153344154,
-0.07511919736862183,
-0.16325655579566956,
-0.10460062325000763,
0.13233311474323273,
0.16738204658031464,
0.13912595808506012,
0.1631518453359604,
0.23917174339294434,
0.15988758206367493,
-0.36263373494148254,
-0.21564702689647675,
0.13626784086227417,
0.27453792095184326,
-0.011399474926292896,
0.07179905474185944,
-0.1668405681848526,
0.3841637372970581,
0.10693719238042831,
0.012677663005888462,
-0.09793702512979507,
-0.2654924988746643,
0.10532939434051514,
0.22299806773662567,
0.1926708072423935,
0.15707117319107056,
-0.024304937571287155,
-0.039658986032009125,
0.26878735423088074,
0.05491026118397713,
-0.15275974571704865,
0.11800067871809006,
-0.29086264967918396,
-0.04779835417866707,
0.3717549741268158,
-0.04663350433111191,
0.32919248938560486,
-0.0740019828081131,
-0.04973581060767174,
-0.22170871496200562,
-0.4487158954143524,
0.06877251714468002,
0.04538784548640251,
-0.004951207898557186,
-0.03743186220526695,
-0.07631924003362656,
-0.20550592243671417,
0.031573425978422165,
0.23388828337192535,
-0.3088584542274475,
-0.2734471559524536,
0.0143818324431777,
-0.19286373257637024,
-0.29599493741989136,
-0.09090746194124222,
0.28178536891937256,
-0.2543784976005554,
-0.010355903767049313,
0.08631905913352966,
0.14000827074050903,
0.4790598452091217,
0.013249995186924934,
0.09942512959241867,
0.11583290249109268,
0.24774977564811707,
-0.06495845317840576,
-0.12006960809230804,
-0.04271480813622475,
0.2542880177497864,
-0.04537878930568695,
-0.12417282164096832,
-0.18034689128398895,
0.06535543501377106,
-0.029783692210912704,
0.1603381186723709,
0.05698610842227936,
-0.28689631819725037,
-0.36499178409576416,
0.5504559874534607,
-0.15870261192321777,
-0.10197675228118896,
0.40464720129966736,
0.2637842893600464,
-0.27040526270866394,
0.22512590885162354,
-0.06889477372169495,
-0.0361199826002121,
-0.2399599254131317,
-0.13057579100131989,
0.01611410826444626,
0.21893316507339478,
0.29534050822257996,
0.47846561670303345,
0.17647016048431396,
-0.6153280138969421,
0.3364478647708893,
-0.2446141093969345,
-0.12349529564380646,
0.0053258552215993404,
-0.10041218250989914,
0.35395348072052,
0.2251972109079361,
0.0864548608660698,
0.11843279004096985,
-0.00027852150378748775,
-0.3927919566631317,
0.13271604478359222,
0.1379477083683014,
-0.1562543362379074,
0.019658163189888,
0.012399786151945591,
0.1647290736436844,
0.10757295787334442,
-0.1255674809217453,
0.033774711191654205,
-0.32754623889923096,
-0.1538696140050888,
-0.20027031004428864,
-0.003602241398766637,
0.04487721994519234,
-0.46276989579200745,
-0.6620952486991882,
0.010943942703306675,
-0.7336006164550781,
0.44767385721206665,
0.3246121406555176,
0.2894566059112549,
0.09424299746751785,
-0.06691843271255493,
0.27727770805358887,
-0.3210553228855133,
0.7273987531661987,
0.04029081389307976,
-0.11056118458509445,
0.15075869858264923,
-0.16871938109397888,
-0.5041903853416443,
-0.018639180809259415,
0.13450182974338531,
0.3634614944458008,
0.3612503707408905,
0.9468921422958374,
0.010420047678053379,
-0.34500622749328613,
-0.19344033300876617,
-0.1803586781024933,
0.08975035697221756,
-0.13802167773246765,
-0.2206708937883377,
-0.15801666676998138,
-0.30206239223480225,
0.2238350808620453,
-0.04614674672484398,
0.27239054441452026,
-0.01134087610989809,
-0.4036681652069092,
-0.12290820479393005,
-0.2363974153995514,
0.2057241052389145,
-0.010002479888498783,
0.17281246185302734,
0.049763403832912445,
0.12751537561416626,
0.06553993374109268,
0.14806970953941345,
0.1801038235425949,
-0.330422043800354,
0.2216949313879013,
-0.08396448194980621,
0.10154302418231964,
0.20970915257930756,
-0.007393340114504099,
0.343266099691391,
-0.03320559114217758,
0.07334644347429276,
-0.4329695403575897,
0.5720508694648743,
0.05492502078413963,
0.45493635535240173,
0.17134065926074982,
0.34469854831695557,
-0.23377488553524017,
0.2966984808444977,
0.029707394540309906,
0.34588295221328735,
-0.06018628180027008,
-0.005545404739677906,
-0.48896169662475586,
-0.04447416588664055,
-0.06684832274913788,
0.46071135997772217,
0.8917256593704224,
-0.2397610992193222,
0.20625150203704834,
-0.16591566801071167,
-0.02105783298611641,
0.1621933877468109,
-0.2714111804962158,
0.036518797278404236,
-0.3896450698375702,
-0.13251866400241852,
-0.00693346094340086,
-0.10251902788877487,
0.29896581172943115,
0.02247736230492592,
0.12915290892124176,
0.069784015417099,
0.20988349616527557,
0.2526230216026306,
-0.0702299177646637,
0.35538506507873535,
0.13731993734836578,
-0.34198668599128723,
0.17206303775310516,
0.12300125509500504,
0.13676026463508606,
-0.11392086744308472,
0.1542336642742157,
0.03944280371069908,
-0.1398710459470749,
-0.06499551981687546,
-0.019108880311250687,
-0.0732489600777626,
-0.36461329460144043,
0.41832485795021057,
0.19326108694076538,
0.09338159114122391,
-0.23957374691963196,
0.40189018845558167,
-0.007000548765063286,
0.08512827754020691,
-0.0032065545674413443,
0.2591150104999542,
0.19970624148845673,
0.0484699085354805,
0.09906239062547684,
-0.39056599140167236,
0.02175266295671463,
-0.20869320631027222,
0.06820602715015411,
-0.02474868670105934,
-0.007460561580955982,
0.05524975061416626,
-0.25075605511665344,
0.12495481967926025,
0.5679706335067749,
0.30631789565086365,
-0.1537466049194336,
-0.1191844642162323,
-0.4213729500770569,
-0.22622695565223694,
0.07858090847730637,
-0.16572575271129608,
-0.14877577126026154,
0.2996746003627777,
-0.042069826275110245,
-0.30727651715278625,
0.10313142836093903,
0.37240883708000183,
-0.0656660795211792,
-0.0549713633954525,
0.30663371086120605,
-0.35047903656959534,
-0.32165372371673584,
-0.16952240467071533,
0.22037169337272644,
-0.315682977437973,
-0.03003133460879326,
-0.08200560510158539,
0.18024900555610657,
-0.21835866570472717,
0.1481049805879593,
-0.05145777761936188,
-0.2333098202943802,
-0.0034379572607576847,
-0.16310176253318787,
-0.1400856077671051,
-0.598513662815094,
-0.4524356722831726,
-0.47884202003479004,
0.07759334146976471,
-0.006582572124898434,
0.032368388026952744,
-0.368926465511322,
-0.0931766927242279,
-0.2567001283168793,
0.07473885267972946,
-0.2269091159105301,
0.2328595221042633,
-0.1825968474149704,
-0.3429650664329529,
-0.21741536259651184,
-0.0178751889616251,
0.2077481597661972,
0.4402099549770355,
-0.19811488687992096,
-0.23223662376403809,
-0.011562599800527096,
0.12363730370998383,
0.09101033210754395,
-0.535676121711731,
0.10126202553510666,
0.3338402509689331,
-0.3837571442127228,
-0.2721380591392517,
0.024325208738446236,
-0.0006907173083163798,
-0.23616407811641693,
-0.23050859570503235,
0.3917296528816223,
0.06854897737503052,
0.29691264033317566,
0.13873808085918427,
-0.1238866075873375,
0.3315964341163635,
0.04365716502070427,
0.21841904520988464,
0.005753288045525551,
-0.01652291975915432,
-0.009748757816851139,
-0.004103205632418394,
0.4135793447494507,
-0.12100552767515182,
0.08205115795135498,
-0.07160681486129761,
-0.21912629902362823,
0.10757670551538467,
0.002345756161957979,
0.09925348311662674,
-0.16731376945972443,
-0.4050677418708801,
0.3858729898929596,
0.1673624962568283,
-0.12248827517032623,
-0.21203583478927612,
0.304674357175827,
-0.15096543729305267,
0.0866420790553093,
0.012559586204588413,
0.2928389310836792,
0.13084815442562103,
0.011153429746627808,
0.13311642408370972,
0.18006061017513275,
-0.44404569268226624,
-0.28786352276802063,
-0.10620290040969849,
0.10634702444076538,
0.12546969950199127,
0.462320476770401,
-0.16777123510837555,
-0.02264854870736599,
0.32629308104515076,
-0.1280936896800995,
0.653136670589447,
0.19671577215194702,
0.4684250056743622,
-0.1613357812166214,
-0.05705679580569267,
-0.1884213089942932,
0.3861744999885559,
-0.09502516686916351,
0.24228531122207642,
0.011945629492402077,
0.15046356618404388,
-0.013203508220613003,
-0.2195083200931549,
-0.005343110300600529,
0.6526270508766174,
-0.32784146070480347,
-0.3698413074016571,
-0.1431080847978592,
-0.023927977308630943,
-0.17463435232639313,
0.1361030638217926,
-0.011987995356321335,
0.05641626939177513,
0.01926511526107788,
0.3377074599266052,
-0.12002205848693848,
-0.048193253576755524,
-0.2910832464694977,
0.06288229674100876,
0.23895056545734406,
-0.1606958508491516,
0.23875464498996735,
-0.13452863693237305,
0.22364699840545654,
-0.06568814069032669,
-0.026911621913313866,
0.6454127430915833,
0.5269044637680054,
-0.2857978343963623,
-0.06410661339759827,
-0.050482127815485,
0.07430143654346466,
-0.006711482536047697,
0.2845502495765686,
-0.10097197443246841,
0.034935880452394485,
-0.04824978485703468,
-0.03183188661932945,
-0.2941146194934845,
-0.43707767128944397,
-0.05701693519949913,
-0.05289298668503761,
0.2819964587688446,
0.24710020422935486,
-0.09163597971200943,
-0.2933862507343292,
-0.10788161307573318,
0.17647114396095276,
-0.11655279248952866,
-0.013415648601949215,
0.12113937735557556,
-0.2631140947341919,
0.17828050255775452,
0.004977034404873848,
0.06322420388460159,
-0.24028965830802917,
0.28640836477279663,
0.0018528596265241504,
0.16947773098945618,
-0.1832759827375412,
-0.11480089277029037,
-0.49601995944976807,
0.10734997689723969,
0.21392491459846497,
-0.13935288786888123,
-0.12533852458000183,
0.06362145394086838,
-0.05056089162826538,
0.037720926105976105,
0.1999993920326233,
0.2938377857208252,
0.32713431119918823,
0.3384615480899811,
-0.4123343825340271,
0.7688540816307068,
-0.034173935651779175,
-0.24210570752620697,
0.09514375030994415,
-0.6103774309158325,
0.47802361845970154,
-0.1345043182373047,
0.1196133941411972,
-0.0700358897447586,
0.21511532366275787,
-0.37575793266296387,
0.39626345038414,
0.5963903069496155,
0.18700271844863892,
0.3403973877429962,
-0.12200170755386353,
0.05306645482778549,
0.09654849767684937,
0.5001577138900757,
-0.1907622218132019,
-0.10728079080581665,
0.020163878798484802,
0.0784711092710495,
0.09021756798028946,
0.10687330365180969,
-0.15529440343379974,
0.033610403537750244,
0.07758338749408722,
-0.3671547472476959,
-0.12195237725973129,
0.07681326568126678,
-0.0977124348282814,
0.23956774175167084,
-0.3372311294078827,
0.17480559647083282,
0.2785285413265228,
-0.06637857109308243,
-0.3390509784221649,
-0.29642537236213684,
0.35739070177078247,
-0.2921608090400696,
-0.12478560209274292,
-0.26629388332366943,
0.1766948699951172,
0.028444519266486168,
0.2948841452598572,
0.06781971454620361,
-0.1883569210767746,
0.3833020031452179,
-0.15054841339588165,
-0.47226208448410034,
0.40932902693748474,
-0.14405232667922974,
-0.2408437877893448,
-0.14656803011894226,
-0.01059655286371708,
-0.1326969712972641,
-0.0035107180010527372,
-0.10196255892515182,
-0.14429570734500885
] |
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.3621354401111603,
-0.5087307095527649,
-0.1394251435995102,
0.07497772574424744,
0.040224339812994,
-0.35609763860702515,
0.38819894194602966,
0.14181579649448395,
-0.46268582344055176,
0.22303500771522522,
0.031175706535577774,
0.33822500705718994,
-0.23341882228851318,
-0.08756003528833389,
-0.4083908200263977,
0.10223695635795593,
0.007649730890989304,
-0.15949171781539917,
0.2531305253505707,
0.032625168561935425,
-0.17719674110412598,
0.20427154004573822,
-0.3319110572338104,
-0.0055947988294065,
-0.6348929405212402,
-0.17022517323493958,
0.05864304304122925,
0.2909305989742279,
0.06164298206567764,
-0.21907754242420197,
-0.6123356819152832,
0.07091867178678513,
-0.11173170804977417,
0.3896762430667877,
-0.00011353725130902603,
-0.046834126114845276,
0.015982577577233315,
0.200714111328125,
0.27029162645339966,
0.21922124922275543,
0.3434349596500397,
-0.3710712194442749,
-0.1273697465658188,
-0.20349238812923431,
0.07973171770572662,
0.06950102746486664,
0.05553923919796944,
0.14170832931995392,
0.4168218672275543,
0.12805373966693878,
0.20394854247570038,
0.5180535316467285,
-0.15771713852882385,
0.3365241587162018,
-0.21633554995059967,
-0.12631599605083466,
-0.11703711003065109,
-0.2264711707830429,
0.3812011778354645,
0.29206427931785583,
-0.04880499467253685,
0.4048926532268524,
-0.25744813680648804,
0.004807253368198872,
-0.07550337165594101,
-0.0256645567715168,
0.3905307948589325,
-0.6222295165061951,
0.2957592308521271,
0.09150273352861404,
-0.19522477686405182,
0.14498813450336456,
-0.2645462155342102,
-0.10543693602085114,
-0.18216757476329803,
-0.44672349095344543,
-0.024419978260993958,
0.1261489987373352,
-0.14331068098545074,
-0.14151161909103394,
-0.5341364741325378,
0.07350841909646988,
0.14978879690170288,
-0.20308628678321838,
-0.18418775498867035,
0.13382291793823242,
0.18045452237129211,
0.1738160103559494,
-0.05261662229895592,
-0.21313513815402985,
-0.28696587681770325,
-0.1519462764263153,
0.24508953094482422,
0.06106806918978691,
-0.3582470118999481,
-0.02175695262849331,
0.015099061653017998,
-0.15947109460830688,
-0.27357959747314453,
0.09454350173473358,
-0.3346866965293884,
0.6400341987609863,
0.12846700847148895,
0.13837403059005737,
-0.2279016524553299,
-0.1701497733592987,
0.036643292754888535,
-0.02209947071969509,
0.20771682262420654,
-0.3187611997127533,
-0.2897849380970001,
0.09658552706241608,
0.01733768917620182,
-0.2958787679672241,
0.2639729082584381,
0.07394217699766159,
-0.19104625284671783,
0.0637173131108284,
-0.17707844078540802,
-0.03655111417174339,
0.21903564035892487,
0.2024124413728714,
0.1830805391073227,
0.29767632484436035,
0.18559536337852478,
0.49827125668525696,
-0.3031581938266754,
0.002131948247551918,
-0.4452207386493683,
-0.15138107538223267,
-0.16324502229690552,
-0.12662476301193237,
-0.09211505204439163,
0.03488242253661156,
-0.11047177016735077,
0.2267438769340515,
-0.11027014255523682,
0.01321632880717516,
0.4914780259132385,
-0.052390631288290024,
0.2614605128765106,
-0.2932787835597992,
0.14464060962200165,
0.3133211135864258,
-0.008473529480397701,
0.1547650843858719,
-0.09461579471826553,
-0.21558181941509247,
-0.2673734724521637,
0.19718854129314423,
-0.47550269961357117,
-0.12529410421848297,
-0.014228085055947304,
0.11515674740076065,
0.0019121489021927118,
0.33808040618896484,
-0.06976404041051865,
0.01789759285748005,
0.2934836447238922,
0.20637013018131256,
-0.19378073513507843,
-0.36813750863075256,
-0.42644402384757996,
-0.21725861728191376,
0.06111910566687584,
0.10440133512020111,
0.1582092046737671,
0.05133718624711037,
0.3336830735206604,
0.1277468353509903,
0.4713525176048279,
0.5424497723579407,
0.11541841179132462,
0.04179142415523529,
-0.02563774585723877,
0.4444892108440399,
0.29328420758247375,
-0.12529513239860535,
-0.3540530800819397,
0.2891210615634918,
-0.26043036580085754,
-0.23264198005199432,
0.2232980728149414,
0.2062402218580246,
0.3754865825176239,
-0.047018226236104965,
0.21870015561580658,
0.15503893792629242,
0.04047998785972595,
0.4499569237232208,
-0.3326164484024048,
0.01790546253323555,
-0.028835952281951904,
0.09064027667045593,
0.1248634085059166,
-0.27184635400772095,
-0.026572121307253838,
-0.34038046002388,
-0.0024566042702645063,
-0.08613379299640656,
0.046028900891542435,
0.18478967249393463,
0.024442680180072784,
-0.21662920713424683,
-0.009274298325181007,
-0.08152839541435242,
0.057569343596696854,
0.3631339967250824,
-0.1907765120267868,
0.21561367809772491,
-0.15900535881519318,
0.01491373497992754,
0.30505016446113586,
0.10149519890546799,
-0.22482770681381226,
-0.12829238176345825,
0.1212933212518692,
-0.09767048060894012,
-0.08279720693826675,
-0.07778437435626984,
0.02001187764108181,
0.25935325026512146,
0.15438219904899597,
-0.05428982153534889,
0.2893965244293213,
0.06813183426856995,
-0.0803181454539299,
-0.434082955121994,
-0.25441959500312805,
0.06923535466194153,
0.34709274768829346,
-0.06877421587705612,
0.05813091993331909,
0.2605249881744385,
0.29133307933807373,
0.07281426340341568,
0.030223581939935684,
0.10232732445001602,
0.33248424530029297,
0.014410119503736496,
0.13623255491256714,
-0.07023382931947708,
-0.15398527681827545,
-0.14666973054409027,
0.3840997815132141,
0.5922679305076599,
0.07842260599136353,
0.2981659770011902,
0.10872425884008408,
0.10977482795715332,
0.08944479376077652,
0.05301954597234726,
0.20390743017196655,
0.06586454063653946,
0.17758777737617493,
0.5067189931869507,
-0.024226469919085503,
0.0737215057015419,
-0.16166821122169495,
0.33296430110931396,
0.30198395252227783,
0.0647391825914383,
-0.12664352357387543,
0.11258940398693085,
0.012034722603857517,
0.0771590918302536,
0.13082671165466309,
-0.30623140931129456,
0.26958274841308594,
0.22435469925403595,
-0.035817377269268036,
-0.035640962421894073,
-0.22218310832977295,
-0.10871914774179459,
0.0581650473177433,
0.20472444593906403,
0.013756570406258106,
0.22029003500938416,
0.25506851077079773,
0.053995631635189056,
-0.1373395323753357,
-0.2441284954547882,
0.19317276775836945,
0.15835905075073242,
-0.09902199357748032,
0.10249874740839005,
-0.1780758798122406,
0.5981842875480652,
0.053072478622198105,
0.0544363334774971,
-0.1519259661436081,
-0.39184603095054626,
0.12616868317127228,
0.22215157747268677,
0.06555847078561783,
0.1626024842262268,
0.08471253514289856,
-0.19418510794639587,
0.19564193487167358,
0.026686953380703926,
-0.05242745950818062,
0.032853029668331146,
-0.18173445761203766,
-0.05563562363386154,
0.4671279191970825,
-0.06575079262256622,
0.3467690348625183,
-0.21408456563949585,
-0.13399647176265717,
-0.31273630261421204,
-0.3596588671207428,
0.013872084207832813,
-0.04644762724637985,
0.11184757202863693,
-0.08443991839885712,
-0.13213370740413666,
-0.21017710864543915,
-0.06165195256471634,
0.3838852047920227,
-0.24511733651161194,
-0.18246331810951233,
0.18482482433319092,
-0.10507248342037201,
-0.41569384932518005,
-0.051798637956380844,
0.1632772535085678,
-0.2007577270269394,
0.041554514318704605,
0.06671269983053207,
0.08607034385204315,
0.46267643570899963,
-0.18051964044570923,
0.04668094217777252,
0.08330297470092773,
0.11422910541296005,
-0.02436506375670433,
-0.052115559577941895,
-0.08901683986186981,
0.2752709686756134,
-0.04798441752791405,
-0.2823193669319153,
-0.08102716505527496,
-0.01950201764702797,
0.06165529787540436,
0.2946307063102722,
0.07880561798810959,
-0.26853811740875244,
-0.21807628870010376,
0.4196762442588806,
-0.07506350427865982,
-0.037121061235666275,
0.2952267527580261,
0.2299131453037262,
-0.2754557430744171,
0.28462791442871094,
0.052485909312963486,
-0.10747319459915161,
-0.1358473300933838,
-0.09228140860795975,
0.02286454662680626,
0.17076343297958374,
0.25783321261405945,
0.8335026502609253,
0.1053365096449852,
-0.373672753572464,
0.11810639500617981,
-0.20248644053936005,
-0.27855411171913147,
0.04462652653455734,
-0.13672225177288055,
0.20436623692512512,
0.03397026285529137,
0.027980715036392212,
0.07772950083017349,
-0.006942513398826122,
-0.2329617142677307,
0.12268362939357758,
0.2657167911529541,
-0.2766140103340149,
-0.11600898206233978,
0.08908352255821228,
-0.0251193605363369,
0.20858123898506165,
-0.05998436361551285,
-0.04961548000574112,
-0.21935801208019257,
-0.13573990762233734,
-0.13553838431835175,
0.13976655900478363,
-0.15943311154842377,
-0.5324473977088928,
-0.508241593837738,
0.012483513914048672,
-0.5454754829406738,
0.5083019137382507,
0.2737243175506592,
0.19286736845970154,
0.15100900828838348,
-0.10704570263624191,
0.3085048496723175,
-0.35854020714759827,
0.5831415057182312,
-0.035835620015859604,
-0.19432301819324493,
0.15496303141117096,
-0.5109231472015381,
-0.3739166557788849,
-0.08475260436534882,
-0.10131502896547318,
0.39015698432922363,
0.43157443404197693,
0.7751055955886841,
-0.04089280217885971,
-0.3296211063861847,
-0.3171956539154053,
-0.18981339037418365,
-0.0759424939751625,
-0.07339387387037277,
-0.31453847885131836,
-0.2553100883960724,
-0.3619530200958252,
0.3135707378387451,
-0.04631514847278595,
0.2629352807998657,
-0.1495235711336136,
-0.2197108268737793,
-0.1490086317062378,
-0.21394336223602295,
0.33503982424736023,
0.01126657985150814,
0.1755581498146057,
-0.11046084016561508,
0.1834639608860016,
-0.08837420493364334,
0.0649588406085968,
-0.022562438622117043,
-0.32164421677589417,
0.23952293395996094,
0.01700226403772831,
0.12625187635421753,
-0.018662570044398308,
0.19678008556365967,
0.42641347646713257,
0.025830725207924843,
0.13727234303951263,
-0.38044673204421997,
0.6753236651420593,
0.07948173582553864,
0.20241770148277283,
0.22280147671699524,
0.32106801867485046,
-0.05044321343302727,
0.34143173694610596,
-0.059726815670728683,
0.0975775197148323,
-0.039486367255449295,
0.0543486662209034,
-0.43345046043395996,
0.07175417989492416,
0.021381543949246407,
0.43681153655052185,
1.0347920656204224,
-0.4358527362346649,
0.18408948183059692,
-0.192422017455101,
0.08347897231578827,
-0.10072759538888931,
-0.31340593099594116,
0.13692575693130493,
-0.34450042247772217,
-0.1754264235496521,
0.04211952164769173,
-0.16478903591632843,
0.28865164518356323,
0.11330796778202057,
0.0367744155228138,
0.17395415902137756,
0.09256268292665482,
0.09891147911548615,
-0.06232345476746559,
0.3206028342247009,
0.21863360702991486,
-0.38137704133987427,
0.12901410460472107,
0.11236559599637985,
0.17681944370269775,
-0.2750997543334961,
0.07719240337610245,
-0.05795065686106682,
-0.10024906694889069,
0.03176434338092804,
-0.10864618420600891,
-0.145523801445961,
-0.2593297064304352,
0.40938836336135864,
0.3598005175590515,
-0.009844745509326458,
-0.1751459389925003,
0.3499307632446289,
0.01233710441738367,
0.034998469054698944,
0.029767800122499466,
0.2201569676399231,
0.31779295206069946,
0.09491438418626785,
0.11056919395923615,
-0.3497491478919983,
0.01345425471663475,
-0.20034325122833252,
-0.07844976335763931,
0.1306767761707306,
0.07085403800010681,
-0.005254226271063089,
-0.209701269865036,
0.2090209722518921,
0.4415948987007141,
0.30925172567367554,
0.01016230322420597,
0.03671688213944435,
-0.3541880249977112,
-0.11173957586288452,
0.10573726147413254,
0.033935729414224625,
-0.2966080904006958,
0.459481805562973,
-0.007957876659929752,
-0.2622576653957367,
0.056086551398038864,
0.18526528775691986,
0.02783469296991825,
0.01820131205022335,
0.29548701643943787,
-0.22770068049430847,
-0.3295256793498993,
-0.16891519725322723,
0.19780170917510986,
-0.535545289516449,
0.045922569930553436,
0.0405767485499382,
0.018342405557632446,
-0.20972400903701782,
0.11524834483861923,
-0.004740055184811354,
-0.17508339881896973,
-0.008491689339280128,
-0.2897953689098358,
-0.12056703865528107,
-0.4316258728504181,
-0.2958345115184784,
-0.31273382902145386,
-0.02468748949468136,
-0.15505722165107727,
0.31763043999671936,
-0.20689338445663452,
0.08226072043180466,
-0.3004501461982727,
0.030312245711684227,
-0.3680621087551117,
0.2349940687417984,
-0.07307339459657669,
-0.41866549849510193,
-0.25489041209220886,
0.034932903945446014,
0.20514826476573944,
0.33313632011413574,
-0.28386828303337097,
-0.25260353088378906,
-0.017422392964363098,
0.11830771714448929,
0.006977147422730923,
-0.32242852449417114,
0.07110724598169327,
0.3588576316833496,
-0.282603919506073,
-0.197697713971138,
0.032866161316633224,
0.09445080906152725,
-0.24866235256195068,
-0.24273133277893066,
0.4648456871509552,
-0.026409562677145004,
0.002490223152562976,
0.08097506314516068,
-0.13043594360351562,
0.26619526743888855,
-0.016199136152863503,
0.09686582535505295,
0.09037234634160995,
-0.038318563252687454,
-0.017117485404014587,
0.00953343603760004,
0.312461256980896,
-0.15575294196605682,
0.1602587103843689,
-0.13015230000019073,
-0.1964568793773651,
0.005412803962826729,
0.06616749614477158,
0.06436428427696228,
-0.19890888035297394,
-0.3912786543369293,
0.3398144841194153,
0.17091810703277588,
-0.14518214762210846,
-0.1648743748664856,
0.2732416093349457,
-0.07310967147350311,
0.12272926419973373,
0.1467123180627823,
0.29262498021125793,
0.12911054491996765,
0.029351331293582916,
0.21419374644756317,
0.08547040075063705,
-0.6312885880470276,
-0.3609912693500519,
-0.3290000557899475,
0.027836468070745468,
0.1639045923948288,
0.44003069400787354,
-0.14440645277500153,
-0.17808350920677185,
0.26777777075767517,
-0.09441982954740524,
0.6451377272605896,
-0.05382479727268219,
0.337881475687027,
-0.07947942614555359,
-0.059952594339847565,
-0.08334390074014664,
0.1656213253736496,
-0.007839316502213478,
0.20946699380874634,
-0.1221730187535286,
0.11423192173242569,
0.029219798743724823,
-0.21975217759609222,
-0.13524889945983887,
0.7050784230232239,
-0.3179020881652832,
-0.3046841621398926,
0.08753056079149246,
0.007926414720714092,
-0.15428166091442108,
0.12121494114398956,
0.07199086248874664,
0.23723062872886658,
0.42118293046951294,
0.36387550830841064,
0.09217523783445358,
-0.019636603072285652,
-0.25257155299186707,
-0.045635972172021866,
0.19204798340797424,
-0.2006836086511612,
0.21955877542495728,
0.05838783457875252,
0.19181078672409058,
0.043434906750917435,
-0.0627756416797638,
0.5542598366737366,
0.4263671636581421,
-0.43072691559791565,
-0.03219599649310112,
-0.06314679980278015,
0.04597761109471321,
0.02142632193863392,
0.282653272151947,
-0.16874946653842926,
0.17817136645317078,
0.039370544254779816,
0.019888345152139664,
-0.33808308839797974,
-0.5042127370834351,
-0.03761836886405945,
0.04659535735845566,
0.14415110647678375,
0.32097703218460083,
-0.06691271811723709,
-0.3010901212692261,
0.04287112504243851,
0.18484340608119965,
-0.3054604232311249,
-0.18489514291286469,
0.33003997802734375,
-0.36226093769073486,
0.10105413943529129,
0.022702379152178764,
0.08022698014974594,
-0.10568874329328537,
0.39165985584259033,
0.054283540695905685,
0.25472572445869446,
-0.2889435291290283,
-0.05711297690868378,
-0.5728092789649963,
0.16880372166633606,
0.10012883692979813,
-0.1853969246149063,
0.0557674840092659,
0.36875393986701965,
-0.003270419081673026,
0.26386919617652893,
0.2638877034187317,
-0.02177748829126358,
0.08403492718935013,
0.4047761857509613,
-0.5053955912590027,
0.6482887268066406,
-0.12929894030094147,
-0.1600789576768875,
0.12271571159362793,
-0.44315364956855774,
0.4912436008453369,
0.0863196924328804,
0.1505400389432907,
-0.030837658792734146,
0.15326178073883057,
-0.10954300314188004,
0.4072919487953186,
0.2263595312833786,
0.10589657723903656,
0.39395421743392944,
-0.09906979650259018,
-0.00537871615961194,
0.12529413402080536,
0.3513062000274658,
-0.07301709800958633,
-0.15000967681407928,
-0.05051913112401962,
0.057958368211984634,
0.1224641352891922,
0.10144704580307007,
-0.11742384731769562,
0.11529795080423355,
0.04931997135281563,
-0.2682154178619385,
-0.11013155430555344,
0.049365777522325516,
0.09713201224803925,
0.28656166791915894,
-0.2756015658378601,
0.33834603428840637,
0.17949825525283813,
0.09009533375501633,
-0.34654510021209717,
-0.2756187319755554,
0.41852039098739624,
-0.3566577732563019,
-0.28351354598999023,
-0.3566051721572876,
0.2087516337633133,
-0.1479455679655075,
0.3784292936325073,
-0.045531682670116425,
-0.20987580716609955,
0.2967396676540375,
-0.02515529654920101,
-0.4643781781196594,
0.38243141770362854,
-0.05559442564845085,
-0.3912912607192993,
-0.1442771553993225,
-0.1995297372341156,
-0.2414439469575882,
-0.02888655476272106,
-0.2539624571800232,
0.010824519209563732
] |
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.31007876992225647,
-0.129237100481987,
-0.13420474529266357,
0.11753957718610764,
0.46882668137550354,
-0.14419759809970856,
0.2783525586128235,
0.09987912327051163,
-0.24337750673294067,
0.35919103026390076,
0.08298465609550476,
-0.0730312243103981,
-0.11920901387929916,
0.3212789297103882,
-0.10763704031705856,
-0.17044848203659058,
0.009236576966941357,
-0.08812692761421204,
0.015318315476179123,
0.04429047182202339,
0.004665125161409378,
0.015446887351572514,
-0.24890641868114471,
-0.03195614367723465,
-0.22068370878696442,
-0.13712340593338013,
0.0985744446516037,
-0.050323594361543655,
-0.1877261847257614,
-0.3946231007575989,
0.0375736728310585,
0.11461660265922546,
0.2151949256658554,
0.41678836941719055,
-0.00010279955313308164,
0.10017897933721542,
0.024487577378749847,
-0.14054441452026367,
-0.42040717601776123,
-0.04409205913543701,
0.24149306118488312,
-0.27982810139656067,
0.050628069788217545,
-0.2537197172641754,
-0.217213973402977,
0.22781875729560852,
-0.13784298300743103,
0.1720428317785263,
0.45847612619400024,
0.37975257635116577,
0.34357744455337524,
0.108827605843544,
0.05856231600046158,
-0.02949151210486889,
0.05381776764988899,
0.07554543018341064,
-0.09401418268680573,
0.006613748613744974,
0.11091092228889465,
-0.13695469498634338,
0.023830996826291084,
0.32420605421066284,
0.011358560062944889,
-0.008915189653635025,
-0.03670245036482811,
-0.03416794165968895,
0.27362290024757385,
-0.24790793657302856,
0.14702267944812775,
-0.08914437144994736,
0.1329367309808731,
-0.30356812477111816,
-0.037358105182647705,
-0.15410660207271576,
-0.080647312104702,
-0.463477224111557,
0.10437324643135071,
0.10102418810129166,
-0.4107736647129059,
0.017262186855077744,
-0.0603896789252758,
-0.005098756402730942,
-0.013899256475269794,
0.02612188458442688,
-0.06625164300203323,
0.5225921273231506,
-0.10536361485719681,
-0.03561503440141678,
0.17084594070911407,
-0.13550956547260284,
0.4120984673500061,
0.0853053480386734,
-0.12766121327877045,
0.023740272969007492,
-0.2587937116622925,
-0.1875813752412796,
-0.07132784277200699,
-0.19863010942935944,
0.07114482671022415,
-0.11243604123592377,
0.15799082815647125,
-0.006024597212672234,
0.48593515157699585,
0.008066128939390182,
0.09800620377063751,
0.3584093749523163,
-0.12021315097808838,
0.3187829256057739,
0.036064643412828445,
0.1946541965007782,
-0.21764960885047913,
-0.12446003407239914,
-0.18594227731227875,
-0.33800598978996277,
0.024283653125166893,
0.03811464086174965,
-0.04628079757094383,
0.016191398724913597,
-0.12717990577220917,
0.16843891143798828,
-0.25359487533569336,
0.27347123622894287,
0.18177776038646698,
0.457090824842453,
-0.09647372364997864,
0.23021700978279114,
0.1769118458032608,
0.03949594125151634,
-0.2093317061662674,
-0.08185559511184692,
-0.24255558848381042,
0.11645079404115677,
-0.3404504358768463,
-0.14218007028102875,
0.1027911826968193,
0.22053936123847961,
0.3251737952232361,
-0.19312463700771332,
0.039561927318573,
-0.30578023195266724,
0.09569443762302399,
-0.23831911385059357,
0.005653835367411375,
0.12012335658073425,
0.34332817792892456,
0.08770183473825455,
0.09541482478380203,
-0.27830663323402405,
0.11810371279716492,
0.20759613811969757,
-0.2924017012119293,
-0.22915127873420715,
0.20303116738796234,
0.32697123289108276,
0.28272053599357605,
0.1686137169599533,
-0.3689676821231842,
-0.006397588178515434,
0.20534685254096985,
0.19656533002853394,
0.05627328157424927,
-0.31840357184410095,
-0.2173917442560196,
-0.13528557121753693,
0.278127521276474,
0.3030324876308441,
-0.19027726352214813,
-0.21084529161453247,
0.021464021876454353,
-0.031519774347543716,
0.3774222433567047,
0.358452171087265,
-0.3117792308330536,
0.4580085873603821,
-0.06758337467908859,
-0.051854271441698074,
0.5453792810440063,
-0.5652977228164673,
-0.21275199949741364,
0.15430493652820587,
-0.1909198760986328,
0.045458801090717316,
-0.2386423498392105,
-0.2231658548116684,
0.4829891324043274,
0.09697819501161575,
0.3733595907688141,
0.23807692527770996,
-0.0351436547935009,
0.1896500289440155,
-0.28640037775039673,
0.009055119939148426,
-0.029791684821248055,
-0.005524837411940098,
0.04871362820267677,
-0.05277425795793533,
-0.2343464195728302,
0.12803339958190918,
0.23382003605365753,
-0.010477532632648945,
0.2677804231643677,
0.35829830169677734,
0.3073623776435852,
0.11696634441614151,
-0.12152757495641708,
0.19367551803588867,
0.16735877096652985,
-0.011586976237595081,
-0.03093787468969822,
0.12394678592681885,
-0.07864280790090561,
-0.20585280656814575,
-0.045583922415971756,
0.08280747383832932,
-0.015698494389653206,
-0.35930028557777405,
0.3384871482849121,
0.037534940987825394,
0.026657266542315483,
0.019131029024720192,
0.12357115000486374,
0.2986921966075897,
-0.35411182045936584,
0.22224277257919312,
0.2377440184354782,
0.08528386056423187,
-0.1885533183813095,
-0.18009141087532043,
0.05245372653007507,
0.11839262396097183,
0.2418251931667328,
0.029730232432484627,
-0.09869039058685303,
0.2562616765499115,
-0.06630861014127731,
-0.08917119354009628,
-0.09372532367706299,
-0.11309295892715454,
0.015339624136686325,
0.09032125771045685,
-0.0647253766655922,
-0.020623939111828804,
0.16550864279270172,
0.019904768094420433,
0.3511834144592285,
0.2012837827205658,
0.3272457718849182,
0.1273166686296463,
0.20463711023330688,
-0.020622044801712036,
0.23321473598480225,
-0.08574185520410538,
0.18783321976661682,
0.05923234298825264,
0.2610837519168854,
-0.013315556570887566,
0.12506809830665588,
0.005827912129461765,
-0.22361338138580322,
0.10840553045272827,
0.2264302372932434,
0.08820904791355133,
-0.023108623921871185,
0.2589932084083557,
-0.28398293256759644,
0.011871200986206532,
-0.0420018695294857,
0.05826323479413986,
0.07729919254779816,
0.21253423392772675,
0.12058499455451965,
0.023036470636725426,
0.07001006603240967,
-0.19820435345172882,
0.25799059867858887,
0.03808819130063057,
-0.08876996487379074,
0.009604169055819511,
0.1740598976612091,
-0.19317567348480225,
-0.3281933665275574,
-0.14499977231025696,
0.1208067536354065,
0.4868704676628113,
-0.11750100553035736,
0.0966288149356842,
-0.02720138058066368,
-0.11306486278772354,
-0.2430841475725174,
-0.09406259655952454,
0.14856047928333282,
-0.018428754061460495,
0.043626926839351654,
0.4213281273841858,
-0.00103277328889817,
0.3150790333747864,
0.31213387846946716,
0.21861977875232697,
0.1445562094449997,
-0.023167815059423447,
0.013300834223628044,
-0.13357511162757874,
-0.28806447982788086,
0.2566813826560974,
0.21969905495643616,
0.0427812784910202,
0.11719049513339996,
0.06286192685365677,
-0.010482873767614365,
-0.028803978115320206,
-0.044976312667131424,
-0.01623956859111786,
0.02284780703485012,
0.15729907155036926,
-0.16530555486679077,
0.2963694632053375,
-0.26176419854164124,
-0.40795081853866577,
0.1808432936668396,
-0.06044667586684227,
-0.28056421875953674,
-0.19050602614879608,
-0.00012204683298477903,
-0.26796993613243103,
-0.2092573493719101,
-0.21675704419612885,
-0.2778628170490265,
-0.45426392555236816,
-0.010337170213460922,
0.048683732748031616,
0.08540476113557816,
-0.07412445545196533,
0.23381906747817993,
0.20668834447860718,
0.21272462606430054,
0.014099961146712303,
-0.041297659277915955,
-0.21588821709156036,
0.07286874204874039,
-0.2318146526813507,
-0.1928957849740982,
0.009931414388120174,
-0.15374118089675903,
0.34780073165893555,
0.15610313415527344,
-0.4876745343208313,
0.3729534149169922,
-0.0741802230477333,
-0.2712353765964508,
-0.1000494509935379,
-0.06587007641792297,
0.36114636063575745,
0.10520391911268234,
-0.22137875854969025,
0.10723022371530533,
-0.16242218017578125,
-0.04076032713055611,
-0.2125343382358551,
0.2935682535171509,
-0.35403552651405334,
0.6404051184654236,
0.14465564489364624,
0.8162136077880859,
-0.07967918366193771,
0.034761641174554825,
0.17964385449886322,
-0.005289129912853241,
0.08401472121477127,
-0.15344345569610596,
-0.2790311574935913,
0.29990604519844055,
-0.06413006782531738,
-0.18795979022979736,
0.20400117337703705,
-0.007119697518646717,
-0.31854942440986633,
-0.061881113797426224,
0.05750899016857147,
-0.24756889045238495,
-0.3978370428085327,
0.21124842762947083,
0.15019933879375458,
0.2670520544052124,
-0.09492912143468857,
0.06593434512615204,
-0.15206529200077057,
-0.0933327004313469,
-0.1404845416545868,
-0.0002467469603288919,
-0.23915503919124603,
-0.043556131422519684,
-0.31461626291275024,
-0.019261809065937996,
-0.5928467512130737,
0.011792904697358608,
0.044849853962659836,
0.27761098742485046,
-0.01765013486146927,
-0.05865813419222832,
0.043976087123155594,
-0.12351255118846893,
0.7291723489761353,
0.19255569577217102,
-0.06416978687047958,
0.053502608090639114,
-0.289140522480011,
-0.13179484009742737,
-0.07199763506650925,
-0.25008833408355713,
-0.08969127386808395,
0.24954505264759064,
0.14642897248268127,
-0.06834187358617783,
-0.06609456241130829,
-0.04438477382063866,
-0.149664044380188,
-0.09537360817193985,
0.1433291733264923,
-0.034551408141851425,
-0.3247773349285126,
-0.3178597092628479,
0.4709644913673401,
0.2082359790802002,
0.22641998529434204,
-0.04203936830163002,
-0.2081311196088791,
-0.06248195096850395,
-0.1810876727104187,
0.146386057138443,
0.03449378162622452,
0.23944664001464844,
0.10306667536497116,
0.10470322519540787,
-0.22550342977046967,
0.14739522337913513,
0.3487260937690735,
0.056993138045072556,
0.2948226034641266,
-0.21321018040180206,
0.0019884591456502676,
0.18586115539073944,
0.2423774152994156,
0.3444123864173889,
0.12175274640321732,
0.38381174206733704,
-0.18052808940410614,
0.35638952255249023,
-0.0233823973685503,
0.5706763863563538,
0.13397224247455597,
0.29408180713653564,
-0.5356919169425964,
-0.1441347301006317,
-0.07330037653446198,
-0.022951820865273476,
0.13585256040096283,
0.3842635154724121,
-0.2950782775878906,
-0.46766433119773865,
0.2749306559562683,
0.015859287232160568,
0.864015519618988,
0.003784379456192255,
0.2327529788017273,
0.22730012238025665,
-0.11834847927093506,
-0.08401286602020264,
-0.4700307846069336,
0.17094384133815765,
-0.1486387699842453,
0.022343818098306656,
0.07310792058706284,
-0.01756829023361206,
0.10964594781398773,
0.05202169343829155,
-0.24352256953716278,
0.019508270546793938,
-0.1968873143196106,
0.04367339238524437,
-0.18424749374389648,
0.07848671078681946,
0.152348592877388,
-0.22940818965435028,
-0.15828898549079895,
0.30068451166152954,
0.013654021546244621,
-0.015381935052573681,
-0.1721973419189453,
0.1416708379983902,
0.10151229053735733,
-0.19555868208408356,
-0.10968165099620819,
-0.029646502807736397,
-0.6171454191207886,
-0.014899131841957569,
-0.046737320721149445,
-0.4415018856525421,
-0.055896684527397156,
0.13096940517425537,
0.22497369349002838,
0.3476778268814087,
-0.027732059359550476,
0.4075204133987427,
0.15527212619781494,
-0.07096733152866364,
0.008435860276222229,
0.08827447146177292,
0.21314916014671326,
-0.14638227224349976,
-0.20493467152118683,
0.28009819984436035,
-0.023980388417840004,
-0.24584455788135529,
-0.12984643876552582,
-0.005215445067733526,
0.08932963758707047,
-0.30253341794013977,
-0.1445053368806839,
0.16709516942501068,
-0.28359586000442505,
-0.19762934744358063,
0.2629663944244385,
-0.1794406771659851,
-0.34516391158103943,
-0.051692381501197815,
0.22413167357444763,
-0.15485012531280518,
-0.11651042848825455,
0.15563897788524628,
0.11426198482513428,
0.08878746628761292,
0.49829915165901184,
0.07226947695016861,
-0.185285747051239,
-0.3376314043998718,
-0.0996498316526413,
0.3330564498901367,
0.20255686342716217,
0.19041931629180908,
0.14058107137680054,
-0.17868463695049286,
0.08438809961080551,
0.29349616169929504,
-0.03044220060110092,
0.10749174654483795,
-0.07092095911502838,
-0.11667675524950027,
-0.5866554975509644,
-0.047316133975982666,
-0.06563273072242737,
0.05483908951282501,
0.04823128879070282,
0.6134434938430786,
-0.04891606420278549,
0.014109691604971886,
-0.4224278926849365,
0.16294267773628235,
-0.4016978144645691,
0.3556697964668274,
-0.3384857475757599,
-0.23182900249958038,
0.07102656364440918,
0.15061333775520325,
0.24227243661880493,
0.3419395983219147,
-0.1139196828007698,
-0.40907007455825806,
-0.12221827358007431,
0.02483939379453659,
0.12910263240337372,
-0.13954375684261322,
0.10187216103076935,
-0.06367199867963791,
-0.11374008655548096,
-0.2677370309829712,
0.17002195119857788,
0.2002907395362854,
0.0035485029220581055,
-0.18496307730674744,
0.002073293086141348,
0.28465649485588074,
0.08803222328424454,
-0.07988100498914719,
0.0733499601483345,
-0.09804924577474594,
0.20365285873413086,
-0.0998680517077446,
0.10829544067382812,
0.02225695177912712,
-0.353528767824173,
0.01793632283806801,
0.09538892656564713,
0.17078883945941925,
-0.011018761433660984,
-0.15380419790744781,
-0.2709653377532959,
0.05897600203752518,
0.09290359169244766,
0.187495157122612,
-0.15795238316059113,
-0.0051908488385379314,
0.6026729941368103,
0.36958107352256775,
-0.2009856104850769,
0.11993129551410675,
-0.09335791319608688,
-0.26303181052207947,
0.18617907166481018,
0.11452338844537735,
-0.29687899351119995,
-0.19135630130767822,
0.038955096155405045,
0.2686976194381714,
-0.05133645236492157,
-0.35904887318611145,
0.1856440305709839,
-0.1367127150297165,
-0.14909401535987854,
0.0012124135391786695,
0.0390714630484581,
-0.011207806877791882,
0.20230458676815033,
0.41135531663894653,
0.02421283908188343,
0.2234198898077011,
-0.009310700930655003,
0.0759713351726532,
-0.20709432661533356,
-0.12927597761154175,
-0.48144230246543884,
0.14694474637508392,
-0.14719577133655548,
0.14220434427261353,
-0.18225128948688507,
0.09241722524166107,
0.0629550963640213,
-0.3733501434326172,
-0.22840383648872375,
-0.025723706930875778,
-0.4991273880004883,
-0.16934974491596222,
-0.13907292485237122,
0.09327631443738937,
-0.04304175078868866,
0.1080242395401001,
0.2271232157945633,
-0.227285698056221,
-0.0021611687261611223,
-0.010146021842956543,
-0.218806654214859,
-0.07374002784490585,
-0.08028946071863174,
0.24935247004032135,
0.0023889876902103424,
-0.24133652448654175,
0.18991941213607788,
-0.18742868304252625,
-0.11189186573028564,
-0.16120539605617523,
0.04463642090559006,
0.37798601388931274,
0.3604881465435028,
-0.08429748564958572,
0.018873970955610275,
-0.11907357722520828,
-0.057273853570222855,
-0.22953812777996063,
0.18850809335708618,
0.5024800300598145,
0.3665906488895416,
0.035861045122146606,
0.29067933559417725,
-0.3719216287136078,
0.027187291532754898,
0.25881487131118774,
-0.17940448224544525,
-0.19935967028141022,
0.18159371614456177,
0.12728002667427063,
0.025696896016597748,
-0.32398486137390137,
0.01077280379831791,
-0.4952421188354492,
0.14630809426307678,
0.18867512047290802,
-0.0784362405538559,
0.1943071037530899,
-0.10738972574472427,
0.13617102801799774,
-0.15017201006412506,
0.3536183536052704,
0.09349416941404343,
-0.08168548345565796,
-0.294437974691391,
-0.2529091536998749,
-0.22161948680877686,
0.0027101219166070223,
-0.25704437494277954,
0.26156681776046753,
-0.24748818576335907,
0.10164454579353333,
-0.1807214766740799,
0.06190495193004608,
-0.2251424938440323,
-0.18182002007961273,
-0.13864432275295258,
-0.14337500929832458,
-0.4553713798522949,
0.0009001428843475878,
-0.3338022530078888,
0.20497222244739532,
0.2946282625198364,
-0.2715360224246979,
0.1546805202960968,
-0.2045430690050125,
0.19884595274925232,
0.20048095285892487,
0.12261442840099335,
0.08140246570110321,
0.04948710650205612,
0.2690640389919281,
-0.11802370846271515,
0.24882642924785614,
0.006695406511425972,
0.23437687754631042,
-0.12727466225624084,
-0.2208384871482849,
-0.1644575595855713,
-0.1328839808702469,
0.20346881449222565,
0.3435235619544983,
-0.15129691362380981,
-0.11478786170482635,
-0.19014620780944824,
0.08195605129003525,
0.2690299153327942,
-0.09181304275989532,
0.19338364899158478,
0.20840050280094147,
0.2739050090312958,
0.15075625479221344,
0.01122937723994255,
0.34078413248062134,
-0.021636227145791054,
0.08387328684329987,
-0.3645596504211426,
-0.31670188903808594,
0.5697757601737976,
-0.32334333658218384,
-0.3560693562030792,
0.028123153373599052,
0.07936736196279526,
0.3703938126564026,
-0.10338552296161652,
-0.600409746170044,
0.055145177990198135,
0.09197036921977997,
0.024219589307904243,
-0.4487529397010803,
0.3624129593372345,
-0.27325013279914856,
0.13493387401103973,
0.0062522138468921185,
0.5045965909957886,
-0.02945609577000141,
-0.14348386228084564,
0.15768183767795563,
-0.2444411665201187
] |
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.2118009775876999,
-0.14360404014587402,
-0.12512393295764923,
0.37566810846328735,
0.48718583583831787,
0.022162366658449173,
0.23726381361484528,
0.18793366849422455,
-0.059131838381290436,
0.36151549220085144,
0.2032219022512436,
0.08994990587234497,
-0.11036086827516556,
0.06155675649642944,
-0.08121749758720398,
-0.2425246238708496,
-0.15985627472400665,
-0.021135108545422554,
-0.2000567615032196,
0.018532268702983856,
-0.05475708469748497,
0.09967842698097229,
-0.27182531356811523,
0.018651047721505165,
-0.47588711977005005,
-0.21843944489955902,
0.08100131899118423,
0.11550658941268921,
0.1469692438840866,
-0.2040056586265564,
0.0754881426692009,
-0.25908517837524414,
0.04668460041284561,
0.5353172421455383,
-0.00009429439523955807,
-0.0917869433760643,
0.001260646735318005,
-0.04937778785824776,
-0.1668548732995987,
-0.09355667233467102,
0.22565995156764984,
-0.09732990711927414,
0.16999498009681702,
-0.30792781710624695,
-0.2159549444913864,
0.18494470417499542,
-0.13721665740013123,
-0.23832958936691284,
0.2873455882072449,
0.4498961567878723,
0.39090046286582947,
-0.04317555949091911,
0.08619054406881332,
-0.1659834086894989,
-0.08755867183208466,
-0.1732177734375,
-0.01469540223479271,
0.0005476531805470586,
0.13815803825855255,
-0.028115522116422653,
-0.0035985743161290884,
0.18563856184482574,
0.047558050602674484,
0.03543300926685333,
0.054355837404727936,
0.04493924230337143,
-0.040500007569789886,
-0.2167181521654129,
0.07727386057376862,
-0.03066997416317463,
0.117838054895401,
-0.23154108226299286,
0.0958704799413681,
-0.03876188397407532,
0.009395134635269642,
-0.41317933797836304,
0.13788124918937683,
0.1859949678182602,
-0.392276406288147,
0.016407513990998268,
-0.25862783193588257,
-0.03031911887228489,
-0.09341371804475784,
0.06319637596607208,
-0.19565869867801666,
0.008089181035757065,
-0.11820576339960098,
0.0632062628865242,
0.24671395123004913,
-0.017312539741396904,
0.20664618909358978,
0.09114941209554672,
0.014232591725885868,
-0.022196311503648758,
-0.28290486335754395,
-0.0232098288834095,
-0.10806860774755478,
-0.32903218269348145,
0.02933630719780922,
-0.1882707178592682,
0.22764989733695984,
0.004155184607952833,
0.16098855435848236,
0.052603185176849365,
0.14668379724025726,
0.3722296953201294,
-0.3857887089252472,
0.09747686982154846,
0.03329765796661377,
0.08651735633611679,
-0.32769641280174255,
-0.2392992079257965,
-0.055030256509780884,
-0.32166430354118347,
0.06932244449853897,
-0.012490999884903431,
0.06693568080663681,
-0.13259872794151306,
-0.1062622219324112,
0.2111891657114029,
-0.26194262504577637,
0.21715892851352692,
0.11598122864961624,
0.25799304246902466,
-0.1407434046268463,
0.14317670464515686,
0.1726023405790329,
-0.07932451367378235,
-0.1121673509478569,
-0.08908504992723465,
-0.3556941747665405,
0.16502584517002106,
-0.3696238398551941,
-0.046861980110406876,
0.19520042836666107,
0.012224647216498852,
0.3212684690952301,
-0.11811574548482895,
0.20263490080833435,
-0.4704038202762604,
0.032086122781038284,
-0.343474417924881,
0.010665143840014935,
0.06473752856254578,
0.15048010647296906,
0.06024898216128349,
0.0967097282409668,
-0.00627560168504715,
0.21736271679401398,
0.3751477897167206,
-0.2610055208206177,
-0.30416038632392883,
-0.06353301554918289,
0.35462358593940735,
0.2509840726852417,
0.1194562017917633,
0.03153970465064049,
0.00011876523058163002,
0.2730511426925659,
0.06212814524769783,
0.03610113263130188,
-0.1540493667125702,
-0.054556380957365036,
-0.18366853892803192,
0.34717604517936707,
0.18880121409893036,
-0.2707558572292328,
0.056287672370672226,
0.21989303827285767,
0.058080870658159256,
0.18118837475776672,
0.41263478994369507,
-0.3015069365501404,
0.14603351056575775,
-0.1990501582622528,
-0.16523835062980652,
0.21151942014694214,
-0.1684209257364273,
-0.2656309902667999,
0.03369829058647156,
-0.09298845380544662,
-0.12538649141788483,
-0.1957145780324936,
0.02923738583922386,
0.2991105020046234,
0.22342972457408905,
0.2497168630361557,
0.14062945544719696,
-0.2569423019886017,
0.07252755016088486,
-0.3540613353252411,
-0.18745797872543335,
0.18881955742835999,
0.05513414740562439,
0.3159446120262146,
-0.010522793978452682,
-0.261467844247818,
0.10662295669317245,
0.19014576077461243,
-0.057961855083703995,
-0.021271713078022003,
0.12604837119579315,
0.3186984956264496,
-0.0929766297340393,
-0.09879544377326965,
-0.04752106964588165,
0.05583830550312996,
0.03965454921126366,
0.06631455570459366,
0.14118647575378418,
-0.18207216262817383,
0.004149653483182192,
-0.05568484589457512,
-0.09526288509368896,
0.039026081562042236,
-0.2896200120449066,
0.3484511375427246,
0.05792352557182312,
-0.11843986809253693,
-0.00529828667640686,
-0.002045252127572894,
0.3104234039783478,
-0.48578429222106934,
0.07274506241083145,
0.09004151076078415,
0.17615054547786713,
-0.2769613564014435,
-0.22816847264766693,
0.0018617718014866114,
0.18276315927505493,
0.1517067402601242,
-0.07210776954889297,
-0.1934700459241867,
0.2518943250179291,
-0.020987028256058693,
-0.2037346065044403,
-0.11807209998369217,
-0.07678870856761932,
0.11834303289651871,
-0.0845874696969986,
-0.049264974892139435,
0.005436480976641178,
0.1151403933763504,
-0.03707875683903694,
0.1277407556772232,
0.005823027808219194,
0.112165667116642,
0.01266466360539198,
0.08911280333995819,
-0.03186522796750069,
0.15378901362419128,
-0.06753574311733246,
0.35222217440605164,
-0.03604789450764656,
0.074668288230896,
0.2333032339811325,
0.21968980133533478,
0.04845505952835083,
-0.3491223156452179,
-0.05267469957470894,
0.368939071893692,
0.17911739647388458,
-0.01282313372939825,
0.24990637600421906,
-0.10327236354351044,
0.048581041395664215,
-0.038196902722120285,
-0.14892610907554626,
-0.011466906405985355,
0.22895774245262146,
0.08139719814062119,
0.1702391356229782,
-0.0014853008324280381,
-0.10168136656284332,
0.14545844495296478,
0.10662151128053665,
0.2321874499320984,
-0.11901556700468063,
0.0962335541844368,
-0.034775760024785995,
-0.20559147000312805,
-0.13549387454986572,
0.25543224811553955,
0.4957815706729889,
-0.18111349642276764,
-0.03804175555706024,
-0.1817547082901001,
-0.12901468575000763,
-0.16074010729789734,
-0.06491225957870483,
-0.014038657769560814,
-0.047605160623788834,
0.006121850106865168,
0.24288171529769897,
0.03159090131521225,
0.3472575843334198,
0.17707392573356628,
0.25847163796424866,
0.12157408148050308,
0.1520352065563202,
0.20219802856445312,
-0.27459684014320374,
-0.12167514115571976,
0.2975050210952759,
0.25981250405311584,
-0.01249405462294817,
0.18795765936374664,
0.16828331351280212,
0.03266710788011551,
0.10496412217617035,
-0.007333838380873203,
-0.11409282684326172,
0.02014484629034996,
0.17775464057922363,
-0.2008756846189499,
0.19977214932441711,
-0.11993630230426788,
-0.2861017882823944,
0.21923920512199402,
0.008303297683596611,
-0.11594494432210922,
-0.085134357213974,
0.18911640346050262,
-0.13694845139980316,
-0.15084226429462433,
-0.2441035509109497,
-0.1137452945113182,
-0.35967564582824707,
-0.07076964527368546,
-0.06186286360025406,
0.12035252153873444,
-0.10655276477336884,
0.31342554092407227,
0.38274601101875305,
0.08114765584468842,
0.05314501002430916,
-0.19087162613868713,
-0.19741873443126678,
-0.08662495762109756,
-0.13509893417358398,
-0.22412408888339996,
0.012901267036795616,
0.10139084607362747,
0.4695521593093872,
0.01526810135692358,
-0.6003519296646118,
0.029169268906116486,
-0.0662459135055542,
-0.054073311388492584,
-0.08955475687980652,
-0.17224492132663727,
0.4207231104373932,
0.019629506394267082,
-0.25820431113243103,
0.17935170233249664,
-0.19911476969718933,
0.06099378317594528,
-0.12299071997404099,
0.16644494235515594,
-0.24582603573799133,
0.6156348586082458,
0.24459388852119446,
0.5803914666175842,
0.029395002871751785,
-0.1628430038690567,
0.19247403740882874,
-0.14675596356391907,
0.14566436409950256,
-0.21369363367557526,
-0.3373975157737732,
0.3285890817642212,
-0.22307586669921875,
-0.3722510039806366,
-0.0171129759401083,
-0.2398681491613388,
-0.24663226306438446,
-0.22966980934143066,
0.09876982867717743,
-0.17992566525936127,
-0.29372531175613403,
0.19860315322875977,
0.05527189373970032,
0.18089917302131653,
-0.10252650082111359,
0.0867987796664238,
-0.06771457195281982,
0.040819451212882996,
-0.03489842638373375,
-0.1857338845729828,
-0.05665181949734688,
-0.11856843531131744,
-0.17256124317646027,
-0.14084772765636444,
-0.23540236055850983,
0.19927994906902313,
-0.0753854438662529,
0.23141536116600037,
-0.13606815040111542,
-0.009563549421727657,
0.0642499178647995,
-0.09359090775251389,
0.546386182308197,
0.47518596053123474,
-0.2689291536808014,
0.14340509474277496,
-0.32332858443260193,
-0.017112964764237404,
-0.04418829828500748,
-0.18524712324142456,
0.16938990354537964,
0.23537372052669525,
0.15396791696548462,
-0.08988291025161743,
-0.043633583933115005,
0.07795016467571259,
-0.01353650726377964,
-0.16407516598701477,
0.0817309096455574,
-0.04106217250227928,
-0.16661696135997772,
-0.239394873380661,
0.36636263132095337,
0.06898964941501617,
0.3136427104473114,
0.014089291915297508,
-0.28475838899612427,
-0.08506476879119873,
-0.3089562654495239,
0.058431852608919144,
-0.020802879706025124,
0.31931230425834656,
0.010477785021066666,
0.1350441873073578,
-0.26403090357780457,
0.2954730987548828,
0.13809309899806976,
0.030128149315714836,
0.13110898435115814,
0.23173457384109497,
0.15209950506687164,
-0.004891328047960997,
0.3407328426837921,
0.15743181109428406,
0.002329259878024459,
0.03918318822979927,
-0.021914273500442505,
0.39026638865470886,
-0.1159142479300499,
0.33353331685066223,
0.2773241102695465,
0.21409505605697632,
-0.3580307960510254,
-0.22834505140781403,
0.14922486245632172,
0.08471782505512238,
0.12356279045343399,
0.5383540987968445,
-0.0797041580080986,
-0.2866716682910919,
0.08953338861465454,
0.21357618272304535,
0.8268973231315613,
-0.12995970249176025,
0.10221901535987854,
0.20268842577934265,
-0.16591289639472961,
0.23995356261730194,
-0.062214553356170654,
0.2329430729150772,
-0.21491633355617523,
-0.13932448625564575,
0.024263296276330948,
-0.03908814117312431,
0.12248546630144119,
-0.046109944581985474,
-0.2585180699825287,
-0.015125680714845657,
-0.22537565231323242,
-0.05661206319928169,
-0.11531134694814682,
0.0038395544979721308,
0.22765862941741943,
-0.22368223965168,
-0.09028802812099457,
0.33015209436416626,
-0.19993388652801514,
-0.14137227833271027,
-0.0961848795413971,
0.10164423286914825,
0.257000595331192,
0.10423930734395981,
-0.34473076462745667,
-0.050395309925079346,
-0.5622707605361938,
0.07107079774141312,
-0.26640984416007996,
-0.46826162934303284,
0.00033828066079877317,
-0.02830350771546364,
0.2120622992515564,
0.25801992416381836,
0.005196382291615009,
0.28025251626968384,
-0.0005392641760408878,
-0.0636645257472992,
0.0032796417362987995,
0.24070236086845398,
0.4479747712612152,
-0.18495634198188782,
-0.2873689532279968,
0.5506264567375183,
0.0019772686064243317,
-0.2876964509487152,
0.10275880247354507,
-0.007673321757465601,
-0.06472191214561462,
-0.3952239453792572,
-0.3604303002357483,
0.14809976518154144,
-0.14872245490550995,
-0.21145722270011902,
0.3057723641395569,
0.1042608916759491,
-0.2607138454914093,
0.07233646512031555,
0.10138420760631561,
-0.2181289792060852,
-0.12877561151981354,
0.15559712052345276,
0.233616903424263,
-0.012321474961936474,
0.48428162932395935,
0.22963589429855347,
-0.1145039051771164,
-0.2515180706977844,
-0.25864070653915405,
0.33903855085372925,
-0.07314970344305038,
0.1311485767364502,
-0.031876564025878906,
-0.05018775165081024,
0.12535396218299866,
0.3023048937320709,
0.10050039738416672,
0.28566527366638184,
-0.11659591645002365,
-0.018492592498660088,
-0.7076213359832764,
-0.06532924622297287,
-0.060025256127119064,
0.21860362589359283,
0.023508701473474503,
0.39100179076194763,
0.05627315863966942,
0.09097261726856232,
-0.47367116808891296,
0.17704688012599945,
-0.5639107823371887,
0.29047155380249023,
-0.2566623091697693,
-0.20542871952056885,
0.041605789214372635,
0.0040291002951562405,
0.2464374154806137,
0.42433711886405945,
-0.04766329377889633,
-0.42672598361968994,
0.021606169641017914,
-0.04190545529127121,
0.11663751304149628,
-0.10296156257390976,
-0.030495090410113335,
-0.24458099901676178,
-0.1433236449956894,
-0.13619571924209595,
0.15773513913154602,
0.1895405501127243,
-0.047686558216810226,
0.11949858069419861,
-0.10960705578327179,
-0.0695391520857811,
0.02374989166855812,
-0.12138017266988754,
0.06752128154039383,
0.14957550168037415,
0.3131263852119446,
-0.0734325721859932,
0.12481538206338882,
-0.03738723322749138,
-0.4617174565792084,
0.08339183777570724,
-0.09932682663202286,
0.11931564658880234,
0.06948139518499374,
-0.3183685839176178,
-0.22270914912223816,
0.10849536955356598,
0.174672931432724,
-0.01770295947790146,
-0.13916358351707458,
0.016427453607320786,
0.35870882868766785,
0.42994850873947144,
-0.2469257265329361,
0.20030483603477478,
-0.14432421326637268,
-0.16120681166648865,
0.13980017602443695,
0.12167471647262573,
-0.12826497852802277,
-0.13316503167152405,
0.05328916758298874,
0.2242797464132309,
0.09566806256771088,
-0.3333973288536072,
0.09065458923578262,
-0.08946976810693741,
-0.10644824802875519,
-0.13729271292686462,
0.12217946350574493,
0.1889846920967102,
0.2547171711921692,
0.4937036633491516,
-0.12952104210853577,
0.26897650957107544,
0.09641512483358383,
0.06950519979000092,
-0.07606580853462219,
-0.12023133039474487,
-0.24271544814109802,
0.13349834084510803,
-0.1890617161989212,
0.029656164348125458,
-0.3137654662132263,
0.19129550457000732,
-0.10228253901004791,
-0.4251883327960968,
-0.18546795845031738,
0.1470762938261032,
-0.5079361200332642,
0.13604113459587097,
0.06047303229570389,
-0.1074744313955307,
0.05501250550150871,
0.11242543905973434,
0.16305147111415863,
-0.23540616035461426,
0.24639803171157837,
0.022147104144096375,
-0.3643348515033722,
0.03533008322119713,
-0.07737129181623459,
0.214133158326149,
0.03862177953124046,
-0.18753132224082947,
0.30761659145355225,
0.16209524869918823,
-0.2236952930688858,
-0.12915433943271637,
0.227590873837471,
0.35138949751853943,
0.3235749900341034,
-0.09980864077806473,
0.14330919086933136,
0.021763982251286507,
-0.08173263818025589,
-0.07209350913763046,
0.07891023904085159,
0.43051788210868835,
0.2887811064720154,
0.1629038006067276,
0.31045088171958923,
-0.28543779253959656,
0.19949640333652496,
0.2230200320482254,
0.15955592691898346,
-0.3771577477455139,
0.1278301626443863,
0.0198394563049078,
-0.1377459168434143,
-0.2737796902656555,
-0.024592319503426552,
-0.34976720809936523,
0.18158133327960968,
0.15110217034816742,
-0.28211870789527893,
-0.014057797379791737,
0.039445772767066956,
0.17604076862335205,
-0.08861102908849716,
0.5066298246383667,
0.12136534601449966,
0.04652745649218559,
-0.43749603629112244,
-0.34228360652923584,
-0.2839968502521515,
0.16504444181919098,
-0.182518869638443,
0.2564493417739868,
-0.08108507096767426,
0.193893164396286,
-0.09595330059528351,
-0.10817670077085495,
-0.04866242781281471,
0.07468998432159424,
-0.025394724681973457,
-0.09103381633758545,
-0.4974973201751709,
-0.0855909213423729,
-0.36421218514442444,
-0.025506362318992615,
0.18548375368118286,
0.008982179686427116,
0.15643759071826935,
-0.21378667652606964,
0.25551897287368774,
0.14851723611354828,
0.1038045808672905,
-0.03071891888976097,
0.2767016589641571,
0.30558788776397705,
-0.11579617857933044,
0.13028953969478607,
0.21416883170604706,
0.18820174038410187,
-0.028770839795470238,
-0.21732650697231293,
-0.0955248698592186,
0.0016783993924036622,
0.35644006729125977,
0.27146628499031067,
-0.10657010972499847,
-0.04647897556424141,
-0.20488011837005615,
0.24885907769203186,
0.15994976460933685,
-0.2749100625514984,
0.1392543762922287,
0.018373804166913033,
0.28953132033348083,
0.047094617038965225,
0.31795212626457214,
0.47634464502334595,
0.027108652517199516,
0.031096793711185455,
-0.36159664392471313,
-0.23764067888259888,
0.5043509602546692,
-0.09958317875862122,
-0.3100990951061249,
-0.14982129633426666,
0.08239951729774475,
0.24933360517024994,
-0.1075267493724823,
-0.718313992023468,
-0.19505369663238525,
0.193186953663826,
-0.08990874141454697,
-0.3274354934692383,
0.1808324009180069,
-0.23722463846206665,
0.07683540880680084,
0.10032235831022263,
0.38578134775161743,
-0.053582727909088135,
-0.10840363800525665,
0.07013475149869919,
-0.21666762232780457
] |
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.24299365282058716,
-0.038369353860616684,
-0.06621440500020981,
0.19402176141738892,
0.5733143091201782,
-0.09684986621141434,
0.34831422567367554,
0.09402590990066528,
-0.0914316326379776,
0.40468329191207886,
0.04622356966137886,
0.01358149852603674,
-0.08127222210168839,
0.32081174850463867,
-0.19605644047260284,
-0.39465323090553284,
-0.03280957415699959,
0.010243401862680912,
-0.19573163986206055,
-0.012169132940471172,
-0.012356452643871307,
-0.003392905695363879,
-0.1592792570590973,
0.08709937334060669,
-0.14104367792606354,
-0.03772823512554169,
0.0021217302419245243,
0.009034925140440464,
-0.1163758710026741,
-0.26283586025238037,
0.0889437273144722,
-0.0642801895737648,
0.16728174686431885,
0.3281092047691345,
-0.00010076787293655798,
0.13395413756370544,
0.10429679602384567,
-0.1116642877459526,
-0.2635502815246582,
-0.17295897006988525,
-0.17898371815681458,
-0.1399427354335785,
0.210226908326149,
-0.28236791491508484,
-0.1664160192012787,
0.44205760955810547,
-0.05169221758842468,
0.03373148292303085,
0.5577889680862427,
0.4128127694129944,
0.3356890380382538,
0.12123771756887436,
0.15100033581256866,
-0.2648307681083679,
0.21763728559017181,
-0.005072032567113638,
-0.04255995899438858,
-0.040778759866952896,
0.10389373451471329,
-0.06982998549938202,
-0.07749876379966736,
0.3561425507068634,
0.13299499452114105,
0.14851108193397522,
0.15472686290740967,
-0.06278073787689209,
0.1188860535621643,
-0.21417583525180817,
0.10813049226999283,
0.12219618260860443,
0.15345849096775055,
-0.19147364795207977,
-0.05998511239886284,
0.053213927894830704,
0.015394220128655434,
-0.3182946741580963,
0.14677388966083527,
-0.016695745289325714,
-0.3548559248447418,
0.09463635832071304,
-0.10523505508899689,
-0.2175525724887848,
-0.10257738828659058,
-0.11409317702054977,
-0.16659359633922577,
0.14906728267669678,
-0.03719182312488556,
-0.058753758668899536,
0.2903487980365753,
-0.12540529668331146,
0.32050734758377075,
0.1537184864282608,
0.042710307985544205,
-0.07381420582532883,
-0.22776660323143005,
-0.1170419305562973,
-0.05334646999835968,
-0.15958000719547272,
0.05712670460343361,
-0.3830275535583496,
0.250042200088501,
-0.11625711619853973,
0.1959918737411499,
0.035354357212781906,
0.31704625487327576,
0.28627991676330566,
-0.3701384961605072,
0.2391141951084137,
0.05038570240139961,
0.17463703453540802,
-0.3613768517971039,
-0.22724588215351105,
-0.11120449006557465,
-0.326797753572464,
-0.08005958050489426,
-0.032749246805906296,
0.07927912473678589,
-0.16198721528053284,
-0.2722686529159546,
0.17253200709819794,
-0.2548823058605194,
0.26406338810920715,
0.2559896409511566,
0.47260382771492004,
0.006015361286699772,
0.20890192687511444,
0.13218292593955994,
0.010428275913000107,
-0.07138872891664505,
-0.06968840211629868,
-0.2688012421131134,
0.06241052970290184,
-0.3850220739841461,
-0.15378403663635254,
0.11058283597230911,
0.0035166547168046236,
0.23799286782741547,
-0.10263407230377197,
0.05203715339303017,
-0.18902048468589783,
0.074766606092453,
-0.3209008574485779,
0.001383631257340312,
0.1301468461751938,
0.3464881479740143,
0.036081161350011826,
0.02000991627573967,
-0.024987082928419113,
0.22502437233924866,
0.2758370637893677,
-0.45629560947418213,
-0.3984076976776123,
0.09507489949464798,
0.29982033371925354,
0.3816589415073395,
0.09911718964576721,
-0.17657235264778137,
0.15996554493904114,
0.19639432430267334,
-0.04913888871669769,
-0.030524641275405884,
-0.20067358016967773,
-0.09904380887746811,
-0.10392621904611588,
0.31588372588157654,
0.3916211426258087,
-0.4216265082359314,
-0.11405931413173676,
-0.13289417326450348,
-0.014219643548130989,
0.3896188735961914,
0.5055040121078491,
-0.40471747517585754,
0.15587446093559265,
-0.054360710084438324,
0.026963986456394196,
0.3355778753757477,
-0.2730366885662079,
-0.20736122131347656,
0.1021932065486908,
0.08259979635477066,
-0.06464507430791855,
-0.26751431822776794,
-0.24818938970565796,
0.3915964365005493,
0.026449313387274742,
0.25029700994491577,
0.08183082193136215,
-0.2580814063549042,
0.18152853846549988,
-0.23470312356948853,
-0.04935469105839729,
0.11437472701072693,
-0.08367828279733658,
0.22231531143188477,
0.017153143882751465,
-0.22888511419296265,
0.3926404118537903,
0.09651380777359009,
-0.11829449981451035,
0.14004001021385193,
0.28749722242355347,
0.3379264175891876,
0.009010855108499527,
-0.07410139590501785,
0.1534019261598587,
-0.02642534114420414,
-0.04336622357368469,
-0.09667351096868515,
0.07823430746793747,
-0.07320041954517365,
-0.10022737830877304,
-0.04707973450422287,
0.07616503536701202,
0.03290897235274315,
-0.24854248762130737,
0.3355543911457062,
0.006359944585710764,
-0.2455238699913025,
-0.07196421921253204,
0.023883914574980736,
0.06178276985883713,
-0.4273533225059509,
0.1283402144908905,
0.2538413107395172,
0.17705032229423523,
-0.3252507448196411,
-0.06469804793596268,
0.07312103360891342,
0.19531328976154327,
0.1215328499674797,
0.02267744392156601,
-0.19381952285766602,
0.2192295342683792,
-0.09491429477930069,
-0.0056969583965837955,
0.13214002549648285,
-0.21012389659881592,
0.07618813961744308,
-0.18188779056072235,
-0.13890033960342407,
-0.04909540340304375,
0.24144455790519714,
0.03960553556680679,
0.038933489471673965,
-0.0427992008626461,
0.2721201479434967,
0.10307028144598007,
0.27469512820243835,
0.06659093499183655,
0.3181394040584564,
0.03066324256360531,
0.28616800904273987,
-0.10760585963726044,
0.17055313289165497,
0.13054831326007843,
0.3169267475605011,
0.022552642971277237,
-0.3410426080226898,
0.022645656019449234,
0.40996238589286804,
0.23499609529972076,
0.03243184834718704,
0.29923731088638306,
-0.1192658320069313,
-0.12152419239282608,
-0.05602845922112465,
-0.025268495082855225,
0.06448888778686523,
0.16400012373924255,
0.1957211047410965,
0.01846601814031601,
-0.06645731627941132,
-0.12169333547353745,
0.24330148100852966,
0.09436111152172089,
0.045273423194885254,
-0.10183543711900711,
0.17762790620326996,
-0.13063761591911316,
-0.2493300437927246,
-0.08615682274103165,
0.23236916959285736,
0.49890339374542236,
-0.2284737229347229,
0.06299056857824326,
-0.0876249372959137,
-0.03176046907901764,
-0.19935709238052368,
-0.3456012010574341,
-0.059401895850896835,
-0.05105382204055786,
0.17636333405971527,
0.2323436141014099,
-0.08684985339641571,
0.30038100481033325,
0.3504381477832794,
0.29108694195747375,
0.08623265475034714,
0.3323003351688385,
-0.06941112130880356,
-0.2761394679546356,
-0.10768795013427734,
0.2419590801000595,
0.29136502742767334,
0.042475517839193344,
0.045102596282958984,
0.06426163762807846,
0.06966885179281235,
0.012854855507612228,
-0.13094444572925568,
0.015497149899601936,
0.06093946471810341,
0.23332485556602478,
-0.009448152035474777,
0.301768034696579,
-0.2326458990573883,
-0.35266557335853577,
0.22103433310985565,
0.01227863784879446,
-0.2054137885570526,
-0.06695336848497391,
0.04793001711368561,
-0.12713226675987244,
-0.1160668209195137,
-0.26544350385665894,
-0.18987637758255005,
-0.41464972496032715,
-0.16633470356464386,
-0.10740486532449722,
0.07278206199407578,
-0.2737419605255127,
0.29127851128578186,
0.361798495054245,
0.28056925535202026,
-0.010073724202811718,
-0.08601932972669601,
-0.13757586479187012,
-0.10627928376197815,
-0.2191573530435562,
-0.2372313290834427,
-0.05874849110841751,
0.12960036098957062,
0.36591577529907227,
0.06285792589187622,
-0.46086734533309937,
0.22249722480773926,
-0.044592589139938354,
-0.3251989185810089,
0.03332730010151863,
-0.12585541605949402,
0.3331925570964813,
0.1592569798231125,
-0.2517319321632385,
0.0018174658762291074,
-0.09338818490505219,
0.0826418474316597,
-0.2295023798942566,
0.2506912350654602,
-0.44447553157806396,
0.6022292971611023,
0.052681948989629745,
0.8941946625709534,
-0.12792673707008362,
-0.05367476865649223,
0.3798964321613312,
0.059921346604824066,
0.1554172784090042,
-0.3653229773044586,
-0.2811013460159302,
0.2810937762260437,
-0.16169187426567078,
-0.21784351766109467,
0.07930654287338257,
-0.2124577760696411,
-0.3545595407485962,
-0.21426799893379211,
0.050660356879234314,
-0.161479651927948,
-0.3749132454395294,
0.16032364964485168,
0.16640259325504303,
0.2591390013694763,
0.0793323814868927,
0.03308458998799324,
-0.08240357041358948,
-0.02623715251684189,
-0.06186576932668686,
-0.006617541890591383,
-0.040413230657577515,
-0.12206679582595825,
-0.021758290007710457,
-0.24045982956886292,
-0.5254939794540405,
0.20494838058948517,
-0.03685799241065979,
0.1265743374824524,
-0.2106071561574936,
-0.009733827784657478,
0.03571634739637375,
-0.2114921659231186,
0.6061286926269531,
0.2060275822877884,
-0.20617783069610596,
-0.04514724016189575,
-0.12124958634376526,
-0.004387918394058943,
0.04526885226368904,
-0.25967392325401306,
-0.04937642067670822,
0.22483974695205688,
0.17284120619297028,
-0.1016692966222763,
-0.07975300401449203,
0.09452510625123978,
-0.18799127638339996,
-0.13708247244358063,
0.13490746915340424,
-0.049863286316394806,
-0.08428973704576492,
-0.3133472204208374,
0.39502808451652527,
0.07743038237094879,
0.18357279896736145,
-0.08992847055196762,
-0.28491201996803284,
-0.12121240794658661,
-0.11383623629808426,
0.006107444409281015,
0.07083752006292343,
0.27860987186431885,
0.0029745318461209536,
0.15231861174106598,
-0.2993788719177246,
0.3828771114349365,
0.5157999396324158,
0.11901797354221344,
-0.08741723746061325,
-0.19025208055973053,
0.18585875630378723,
0.12490706890821457,
0.14549019932746887,
0.2861865162849426,
0.12575404345989227,
0.18245404958724976,
0.07277283072471619,
0.23403972387313843,
0.14027139544487,
0.46385249495506287,
0.28914934396743774,
0.2993735671043396,
-0.42495107650756836,
-0.12562499940395355,
0.08569131791591644,
-0.03401392698287964,
0.08353318274021149,
0.2930767238140106,
0.049073226749897,
-0.3022392988204956,
0.32438579201698303,
0.0870446190237999,
0.8639286160469055,
-0.07929570227861404,
0.18022625148296356,
0.19187156856060028,
-0.17099815607070923,
0.15232431888580322,
-0.09370435774326324,
0.10805122554302216,
-0.15156158804893494,
-0.03220413625240326,
-0.017532829195261,
0.04990608990192413,
0.03765582665801048,
-0.0029825738165527582,
-0.39401471614837646,
0.013487471267580986,
-0.20693296194076538,
-0.10536270588636398,
-0.21268166601657867,
-0.06337832659482956,
0.28773313760757446,
-0.1858208030462265,
-0.26179638504981995,
0.26881974935531616,
0.001202769111841917,
-0.03327030688524246,
-0.14949174225330353,
-0.1048860177397728,
0.30566203594207764,
-0.1447269320487976,
-0.2445029616355896,
0.02990470640361309,
-0.5581148862838745,
0.027568861842155457,
-0.18097655475139618,
-0.5129508376121521,
0.104714035987854,
-0.00815543718636036,
0.29739055037498474,
0.16034111380577087,
-0.1886996328830719,
0.40274327993392944,
0.10413271188735962,
-0.030940596014261246,
-0.058482877910137177,
0.20156824588775635,
0.37388092279434204,
-0.20048585534095764,
-0.20937657356262207,
0.3739483952522278,
-0.14684167504310608,
-0.2974855303764343,
0.007160479668527842,
-0.08179271966218948,
0.25277045369148254,
-0.347398042678833,
-0.24595427513122559,
0.21328693628311157,
-0.1670851707458496,
-0.2638562321662903,
0.2789064049720764,
-0.13555756211280823,
-0.18373174965381622,
-0.07560567557811737,
0.07955938577651978,
-0.12855295836925507,
-0.09470488131046295,
0.049782466143369675,
0.0582108348608017,
0.2909928262233734,
0.5716347694396973,
0.12001404911279678,
-0.16381071507930756,
-0.2546851634979248,
-0.21720072627067566,
0.5439648628234863,
-0.057118285447359085,
0.20541279017925262,
0.08801521360874176,
-0.1192772313952446,
0.09425754845142365,
0.3280458152294159,
-0.03149004280567169,
0.1516568660736084,
-0.0771692767739296,
-0.08614467084407806,
-0.629202127456665,
-0.008025618270039558,
-0.13332737982273102,
0.15877434611320496,
0.031722456216812134,
0.3995528817176819,
0.1359015852212906,
0.07406394183635712,
-0.403814435005188,
0.18540015816688538,
-0.48036178946495056,
0.25748488306999207,
-0.31236329674720764,
-0.22114872932434082,
0.15005667507648468,
0.018397392705082893,
0.19831684231758118,
0.39156123995780945,
-0.08780565112829208,
-0.38812047243118286,
-0.05162138491868973,
0.01292230561375618,
0.0536251999437809,
-0.04442635551095009,
-0.024294709786772728,
-0.07711254060268402,
-0.16461293399333954,
-0.1381661593914032,
0.16057290136814117,
0.14191678166389465,
-0.0070238178595900536,
-0.10029299557209015,
0.04868674278259277,
0.0814611166715622,
0.021853910759091377,
-0.06664249300956726,
0.32286760210990906,
-0.04714762419462204,
0.04258842021226883,
-0.020396431908011436,
0.04442349448800087,
-0.11828510463237762,
-0.3260059952735901,
0.0615038201212883,
0.07194909453392029,
0.24596793949604034,
-0.01399431936442852,
-0.13440725207328796,
-0.1172320693731308,
0.00947336945682764,
0.20080390572547913,
0.06646011769771576,
-0.08165794610977173,
0.08268257230520248,
0.519885241985321,
0.3543415069580078,
-0.3999357223510742,
0.13678987324237823,
-0.17836447060108185,
-0.23018895089626312,
0.04037358984351158,
-0.06163725256919861,
-0.26641929149627686,
0.017592819407582283,
0.11388570070266724,
0.29834088683128357,
-0.2819611430168152,
-0.26144254207611084,
0.014540168456733227,
0.053526293486356735,
-0.23070286214351654,
0.0569041483104229,
0.07766468822956085,
0.08079039305448532,
0.2725352644920349,
0.5964997410774231,
-0.08891214430332184,
0.20896337926387787,
-0.015184374526143074,
0.04999890923500061,
0.0881483405828476,
-0.22118456661701202,
-0.43664446473121643,
0.12125174701213837,
-0.10200812667608261,
0.1862650215625763,
-0.20014765858650208,
0.28237929940223694,
-0.057934973388910294,
-0.5546737313270569,
-0.22745949029922485,
0.12140791863203049,
-0.4557276666164398,
-0.23737190663814545,
-0.07752478122711182,
-0.06846656650304794,
0.11235848069190979,
0.10911337286233902,
0.08120288699865341,
0.043842677026987076,
0.26969969272613525,
0.033001817762851715,
-0.18808436393737793,
-0.03531249985098839,
-0.08835544437170029,
0.3132316768169403,
-0.04309925436973572,
-0.14550161361694336,
0.31320998072624207,
-0.030495107173919678,
-0.36578959226608276,
-0.008172169327735901,
0.1843429058790207,
0.3374367356300354,
0.3683413565158844,
-0.0031501164194196463,
-0.041046738624572754,
0.06911545246839523,
-0.1306321918964386,
-0.11712715029716492,
0.03893415257334709,
0.6038051843643188,
0.36133813858032227,
0.1704288274049759,
0.20674055814743042,
-0.2698083817958832,
0.21609510481357574,
0.17427679896354675,
0.23780541121959686,
-0.2703258991241455,
0.13279882073402405,
0.08808915317058563,
0.007496499456465244,
-0.39030835032463074,
0.034564316272735596,
-0.48441264033317566,
0.2789464294910431,
0.10594647377729416,
-0.21622098982334137,
0.007046424318104982,
-0.028463635593652725,
0.132655531167984,
-0.0766892060637474,
0.4783810079097748,
0.1406688541173935,
-0.08176582306623459,
-0.45017221570014954,
-0.22138376533985138,
-0.32045626640319824,
0.08014953881502151,
-0.19937871396541595,
0.4961870610713959,
-0.13125960528850555,
0.1748058944940567,
-0.171366885304451,
-0.05460357293486595,
0.10647188127040863,
-0.19124434888362885,
-0.20399558544158936,
-0.07291301339864731,
-0.5115634202957153,
-0.05684393644332886,
-0.48688268661499023,
-0.04841470718383789,
0.27847999334335327,
-0.1454188972711563,
0.2637948989868164,
-0.06526246666908264,
0.1779109388589859,
0.23983074724674225,
0.13732002675533295,
0.13421867787837982,
0.23331370949745178,
0.2523614168167114,
-0.11934155225753784,
0.21229295432567596,
0.08453085273504257,
0.18724660575389862,
-0.017774295061826706,
-0.3345734775066376,
-0.1654558628797531,
-0.1604999601840973,
0.3346555531024933,
0.20710718631744385,
-0.21511773765087128,
-0.1514476090669632,
-0.27278390526771545,
0.0322612039744854,
0.1696404069662094,
-0.24076831340789795,
-0.05666358396410942,
0.09150619804859161,
0.3267953097820282,
-0.00816283468157053,
0.1193370446562767,
0.35210561752319336,
-0.0016529564745724201,
-0.01916670799255371,
-0.4411461055278778,
-0.23938165605068207,
0.6260104179382324,
-0.16501231491565704,
-0.2551417648792267,
-0.09212742000818253,
-0.015495531260967255,
0.43613749742507935,
-0.19412362575531006,
-0.9336689114570618,
-0.07605157792568207,
0.07276726514101028,
0.020070167258381844,
-0.438741534948349,
0.08508714288473129,
-0.1784355193376541,
0.24502770602703094,
-0.07050377130508423,
0.4420764148235321,
0.07848407328128815,
-0.2192120999097824,
0.2160792499780655,
-0.17098481953144073
] |
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.35388490557670593,
-0.06870376318693161,
-0.14324316382408142,
0.305707722902298,
0.5980899333953857,
-0.03018047660589218,
0.44536417722702026,
0.2957351505756378,
-0.06214052066206932,
0.40821677446365356,
0.2172662764787674,
0.05362321436405182,
-0.07481783628463745,
0.15077415108680725,
-0.13343022763729095,
-0.17759156227111816,
-0.05409190058708191,
0.036154258996248245,
-0.0717044547200203,
0.03248804435133934,
-0.03451680392026901,
0.009063235484063625,
-0.26187291741371155,
-0.08725880831480026,
-0.4492589831352234,
-0.0958234891295433,
0.06325942277908325,
-0.04741944000124931,
0.013520685024559498,
-0.2511957883834839,
-0.050187308341264725,
-0.07683181017637253,
0.12266061455011368,
0.44452527165412903,
-0.00009502487228019163,
-0.008997847326099873,
0.048826977610588074,
-0.07937557250261307,
-0.15939603745937347,
0.0037030824460089207,
0.001066116732545197,
-0.19918620586395264,
0.0680232122540474,
-0.30737459659576416,
-0.30096644163131714,
0.23255904018878937,
-0.04831794276833534,
-0.1761007457971573,
0.46680569648742676,
0.3489149212837219,
0.4058132469654083,
0.0642162561416626,
-0.048091594129800797,
-0.16674864292144775,
0.0934198796749115,
-0.1008736789226532,
-0.04370487853884697,
-0.07397893816232681,
0.2798737585544586,
-0.051034484058618546,
-0.1639374941587448,
0.22839972376823425,
0.09558374434709549,
-0.024831200018525124,
0.008826136589050293,
0.028643248602747917,
0.1250683069229126,
-0.1874314248561859,
0.1657484918832779,
-0.010783316567540169,
0.13922615349292755,
-0.10247756540775299,
0.08512755483388901,
0.015501324087381363,
-0.12462387979030609,
-0.49658864736557007,
0.1401783674955368,
0.06406041234731674,
-0.30907657742500305,
0.0835065245628357,
-0.16757620871067047,
0.10294090211391449,
-0.06508832424879074,
-0.032830093055963516,
-0.2521703243255615,
0.2495865374803543,
-0.11940643191337585,
-0.004326904192566872,
0.15225468575954437,
-0.14607864618301392,
0.15842920541763306,
0.08828006684780121,
-0.00022875034483149648,
0.028994949534535408,
-0.27785050868988037,
-0.04944774881005287,
-0.05066875368356705,
-0.273979514837265,
0.11080939322710037,
-0.199536994099617,
0.1692320704460144,
0.12958188354969025,
0.2328852117061615,
0.0386408194899559,
0.12230481952428818,
0.3336036205291748,
-0.12371541559696198,
0.013423577882349491,
0.068894162774086,
0.18664154410362244,
-0.37881600856781006,
-0.19595803320407867,
-0.1081424206495285,
-0.3177538216114044,
-0.008256519213318825,
0.11225840449333191,
-0.14097373187541962,
-0.06932895630598068,
-0.06154666095972061,
0.2887709140777588,
-0.19367074966430664,
0.12014178931713104,
0.0923149362206459,
0.3297211825847626,
-0.04621056467294693,
0.06142125651240349,
0.012229346670210361,
-0.07943390309810638,
-0.05813142657279968,
-0.15341351926326752,
-0.29284706711769104,
-0.07967871427536011,
-0.4233687222003937,
-0.01753891073167324,
0.17412666976451874,
0.10731057077646255,
0.2736075818538666,
-0.08490914851427078,
0.06044094264507294,
-0.32915887236595154,
0.06844893842935562,
-0.28563791513442993,
0.10458704829216003,
0.0019264634465798736,
0.2612718939781189,
0.04983006417751312,
0.04548988863825798,
-0.1384897232055664,
0.21031229197978973,
0.23355817794799805,
-0.16263996064662933,
-0.19718362390995026,
-0.10500402003526688,
0.35000380873680115,
0.3678777515888214,
0.26986315846443176,
-0.04425652697682381,
0.0073636858724057674,
0.2607892155647278,
0.10840638726949692,
0.00645293528214097,
-0.10189983248710632,
-0.126054584980011,
-0.15325452387332916,
0.2914360761642456,
0.2016894519329071,
-0.3154522776603699,
-0.02600477822124958,
0.1940804123878479,
0.07530973106622696,
0.28198808431625366,
0.4822389483451843,
-0.3072267472743988,
0.15553872287273407,
-0.1969340592622757,
0.16197527945041656,
0.2056475430727005,
-0.28386276960372925,
-0.2273935228586197,
0.15449608862400055,
-0.2635689079761505,
-0.07341209053993225,
-0.18394161760807037,
-0.10029209405183792,
0.5489269495010376,
0.08630647510290146,
0.3641425669193268,
0.18143773078918457,
-0.15000341832637787,
0.0459710992872715,
-0.36306485533714294,
-0.12241186946630478,
0.12806187570095062,
0.05737318843603134,
0.1794445514678955,
-0.08913359045982361,
-0.17004254460334778,
-0.0015279033686965704,
0.1990639716386795,
-0.1354992389678955,
0.1784701943397522,
0.21341580152511597,
0.3221106231212616,
0.036104410886764526,
-0.1397630274295807,
0.16991844773292542,
0.024538278579711914,
0.04554199054837227,
0.11076410114765167,
0.10845085233449936,
-0.14708922803401947,
-0.16558292508125305,
-0.025058798491954803,
-0.10397864878177643,
-0.017810765653848648,
-0.20414909720420837,
0.373497873544693,
-0.05864362046122551,
-0.12047623842954636,
0.014502912759780884,
0.03871387615799904,
0.1495334506034851,
-0.4618000388145447,
0.14773021638393402,
0.13027694821357727,
0.08003738522529602,
-0.2617274522781372,
-0.12969927489757538,
0.037694014608860016,
0.2047874629497528,
0.19602927565574646,
-0.12153712660074234,
-0.10780280828475952,
0.29210373759269714,
0.10261410474777222,
-0.2014152854681015,
-0.08682213723659515,
-0.02303262986242771,
0.056648653000593185,
0.019474729895591736,
-0.11824852228164673,
-0.07965166866779327,
-0.0015653284499421716,
-0.08570534735918045,
0.012438064441084862,
0.10060053318738937,
0.26947900652885437,
0.09590195119380951,
0.048076365143060684,
0.0103644710034132,
0.3586985766887665,
-0.1140575036406517,
0.16401274502277374,
-0.1487574577331543,
0.08513709157705307,
0.2405935823917389,
0.10013216733932495,
0.1569625735282898,
-0.2406003475189209,
0.013123190961778164,
0.35670167207717896,
0.14343297481536865,
0.010612151585519314,
0.23536090552806854,
-0.11754236370325089,
0.011570027098059654,
-0.02414875477552414,
-0.08060390502214432,
-0.10705175995826721,
0.24899449944496155,
0.11028429120779037,
0.06386813521385193,
0.03927488997578621,
-0.16608522832393646,
0.12836630642414093,
0.032557252794504166,
0.07145673781633377,
-0.12451900541782379,
0.12604515254497528,
-0.10988374054431915,
-0.24541689455509186,
-0.0022666456643491983,
0.147218257188797,
0.42254403233528137,
-0.11274714767932892,
-0.09315133839845657,
-0.18919314444065094,
-0.1160903349518776,
-0.09774038195610046,
-0.08019188046455383,
0.01996765285730362,
-0.004927548114210367,
0.036493316292762756,
0.15958350896835327,
0.011006257496774197,
0.40991687774658203,
0.22898922860622406,
0.37586313486099243,
0.19020454585552216,
0.24419011175632477,
0.09897324442863464,
-0.273433119058609,
-0.19979418814182281,
0.28438490629196167,
0.38236203789711,
-0.00006410701462300494,
0.1524185985326767,
0.05941781774163246,
0.08199234306812286,
-0.031572937965393066,
-0.11476211249828339,
-0.04792352393269539,
-0.06535281240940094,
0.14426766335964203,
-0.09403479844331741,
0.32924383878707886,
-0.2314816117286682,
-0.28636884689331055,
0.19599373638629913,
0.06212367117404938,
-0.17833395302295685,
-0.20709095895290375,
0.13295701146125793,
-0.2569444477558136,
-0.27531731128692627,
-0.10905462503433228,
-0.07582129538059235,
-0.3809901773929596,
-0.05409068986773491,
-0.043866321444511414,
0.09423717111349106,
-0.12249549478292465,
0.2664969861507416,
0.2440907210111618,
0.049747101962566376,
-0.10201279073953629,
-0.17414937913417816,
-0.2536875009536743,
0.06607557833194733,
-0.24272996187210083,
-0.2249826043844223,
-0.006049723830074072,
0.08539632707834244,
0.5231486558914185,
0.04446624591946602,
-0.53436279296875,
0.14660698175430298,
-0.058169182389974594,
0.031294070184230804,
0.015611544251441956,
-0.14629749953746796,
0.3653271496295929,
0.06787796318531036,
-0.2486967146396637,
0.08430822938680649,
-0.2163977473974228,
0.17631155252456665,
-0.22807790338993073,
0.10312852263450623,
-0.28191933035850525,
0.5773178935050964,
0.17752747237682343,
0.6508573889732361,
-0.08621817827224731,
-0.22067442536354065,
0.2745223343372345,
-0.135407954454422,
0.15695998072624207,
-0.27094271779060364,
-0.26675528287887573,
0.3050849735736847,
-0.14583177864551544,
-0.17287380993366241,
0.20632526278495789,
-0.17142030596733093,
-0.2792168855667114,
-0.027797050774097443,
0.17296260595321655,
-0.2085360884666443,
-0.39228007197380066,
0.2551881670951843,
-0.02078734152019024,
0.20429234206676483,
-0.005890930537134409,
0.13152411580085754,
-0.14782485365867615,
-0.05000586062669754,
-0.004617523401975632,
-0.23295685648918152,
-0.0746496319770813,
-0.24747234582901,
-0.27717581391334534,
0.02804258093237877,
-0.38838431239128113,
0.15052014589309692,
0.05464782565832138,
0.28615179657936096,
-0.15001432597637177,
-0.11183779686689377,
0.06445274502038956,
-0.09365825355052948,
0.7823352217674255,
0.20426113903522491,
-0.26112332940101624,
0.062938392162323,
-0.15955574810504913,
-0.021134626120328903,
-0.005556220654398203,
-0.1316348761320114,
0.12766991555690765,
0.2425469607114792,
0.38265079259872437,
-0.10229837894439697,
-0.13209696114063263,
0.0025559396017342806,
-0.04796695336699486,
-0.10536213219165802,
0.03495524823665619,
-0.01432462316006422,
-0.01882375217974186,
-0.30017757415771484,
0.3913337290287018,
0.1144842877984047,
0.2752559185028076,
-0.038148101419210434,
-0.4090349078178406,
-0.11545637249946594,
-0.20688989758491516,
0.09796708077192307,
0.03987572714686394,
0.31803223490715027,
0.0902368500828743,
0.15383796393871307,
-0.15186704695224762,
0.24392130970954895,
0.15807393193244934,
-0.11342214792966843,
0.009657168760895729,
0.06220278516411781,
0.0988897979259491,
-0.20573338866233826,
0.33761459589004517,
0.2864977717399597,
0.06464510411024094,
0.15916594862937927,
-0.0700831264257431,
0.396805077791214,
-0.09927022457122803,
0.3956969678401947,
0.35677942633628845,
0.2163241058588028,
-0.47497400641441345,
-0.14813876152038574,
0.008889954537153244,
0.08979015052318573,
0.11186375468969345,
0.41820621490478516,
-0.08597854524850845,
-0.3235791027545929,
0.21605689823627472,
0.20967920124530792,
0.8515174984931946,
-0.12825888395309448,
0.1934070885181427,
0.08577829599380493,
-0.04943032190203667,
0.11980424076318741,
-0.19085699319839478,
0.15941306948661804,
-0.27092912793159485,
-0.21589207649230957,
-0.005350916180759668,
0.06708553433418274,
0.07348301261663437,
0.10074482858181,
-0.2985440194606781,
-0.11484111100435257,
-0.24204184114933014,
0.20593731105327606,
-0.20079317688941956,
-0.06068085879087448,
0.236556276679039,
-0.409228652715683,
-0.2159012258052826,
0.33662018179893494,
0.025064093992114067,
-0.23483046889305115,
-0.16646715998649597,
0.04065065458416939,
0.15408816933631897,
-0.08587945997714996,
-0.11351694166660309,
-0.06514017283916473,
-0.5472654104232788,
0.03057488054037094,
-0.11103643476963043,
-0.29654476046562195,
-0.04548492655158043,
0.002461005235090852,
0.3210059702396393,
0.3504118025302887,
-0.03746369853615761,
0.3197167217731476,
0.19687817990779877,
0.008900162763893604,
0.048072464764118195,
0.04199930280447006,
0.24445223808288574,
-0.061289478093385696,
-0.13830383121967316,
0.32671791315078735,
0.0412621907889843,
-0.22190989553928375,
-0.003960112575441599,
0.002216482302173972,
0.11480750888586044,
-0.36081719398498535,
-0.3072972297668457,
0.1309196650981903,
-0.09438932687044144,
-0.23174235224723816,
0.32464495301246643,
-0.11805463582277298,
-0.20704759657382965,
0.0923195406794548,
0.16864070296287537,
-0.14161331951618195,
-0.06774598360061646,
0.1560579091310501,
0.03908514976501465,
-0.021738646551966667,
0.49165940284729004,
0.28050538897514343,
-0.13196486234664917,
-0.3513338267803192,
-0.14132262766361237,
0.38318759202957153,
-0.10919062793254852,
0.09508942067623138,
0.025276480242609978,
-0.10520561039447784,
0.10530456900596619,
0.34920647740364075,
0.04304611310362816,
0.07273297011852264,
-0.005279920529574156,
-0.06282398849725723,
-0.6887540817260742,
-0.1755339354276657,
-0.07440302520990372,
0.22486524283885956,
0.048709992319345474,
0.3843526840209961,
-0.05642877519130707,
0.07569973915815353,
-0.49596765637397766,
0.21936045587062836,
-0.5408851504325867,
0.31707829236984253,
-0.1981322467327118,
-0.1573370099067688,
0.07914430648088455,
0.007135389838367701,
0.25509554147720337,
0.4369693100452423,
-0.10662144422531128,
-0.47343042492866516,
-0.04448951035737991,
-0.0278032049536705,
0.12588796019554138,
-0.10459336638450623,
0.034357961267232895,
-0.012430812232196331,
-0.18670988082885742,
-0.26285260915756226,
0.10927048325538635,
0.08538176864385605,
-0.03640371933579445,
-0.08333095908164978,
0.09572438150644302,
0.13584072887897491,
-0.0031878086738288403,
-0.14402300119400024,
0.09278316050767899,
0.20481130480766296,
0.21619455516338348,
-0.10221679508686066,
0.06658981740474701,
0.00205297046341002,
-0.1708848476409912,
0.16737395524978638,
0.11866375058889389,
0.12090441584587097,
0.03668246418237686,
-0.2211584448814392,
-0.27009397745132446,
0.21859806776046753,
0.14630629122257233,
0.06354441493749619,
-0.1977747231721878,
-0.10024154186248779,
0.4072955846786499,
0.47048985958099365,
-0.23902906477451324,
0.103343665599823,
0.03208507224917412,
-0.1943846195936203,
0.19423319399356842,
0.1395997703075409,
-0.09200671315193176,
-0.15263785421848297,
0.007553927134722471,
0.2622354328632355,
0.018619732931256294,
-0.35515230894088745,
0.11781492829322815,
0.03263925760984421,
-0.03498465195298195,
-0.0391603484749794,
0.05022647604346275,
0.11958500742912292,
0.21193692088127136,
0.5023725628852844,
-0.0060724676586687565,
0.3215267062187195,
0.06281004101037979,
0.025703061372041702,
-0.14208869636058807,
-0.23579329252243042,
-0.15666554868221283,
0.26729676127433777,
-0.1019149050116539,
0.03807763382792473,
-0.19265849888324738,
0.308066725730896,
-0.037276431918144226,
-0.47032156586647034,
-0.2891821563243866,
0.15320727229118347,
-0.5186834335327148,
0.010396276600658894,
-0.10424002259969711,
-0.02090754173696041,
-0.053805820643901825,
0.11132891476154327,
0.15768380463123322,
0.0044833458960056305,
0.14315356314182281,
0.0038087069988250732,
-0.19305217266082764,
-0.018015360459685326,
-0.18178600072860718,
0.1559147834777832,
0.07655245810747147,
-0.18633127212524414,
0.33656543493270874,
-0.0710553377866745,
-0.14828133583068848,
0.0015256135957315564,
0.11111128330230713,
0.34670066833496094,
0.4203844368457794,
-0.057940028607845306,
0.03017359972000122,
-0.03277920186519623,
-0.021985240280628204,
-0.20577791333198547,
0.14916518330574036,
0.38843414187431335,
0.2333977073431015,
0.18356569111347198,
0.3134996294975281,
-0.33998146653175354,
0.1441178321838379,
0.2320033609867096,
0.06038058176636696,
-0.12044724822044373,
-0.09749498963356018,
0.09984072297811508,
-0.12272288650274277,
-0.3545720875263214,
-0.09716615825891495,
-0.39973077178001404,
0.1740502119064331,
0.10127467662096024,
-0.20287667214870453,
0.158852219581604,
-0.10197391360998154,
0.18013067543506622,
-0.10712358355522156,
0.501160740852356,
0.13886943459510803,
-0.02569759637117386,
-0.4887698292732239,
-0.4422723054885864,
-0.40062522888183594,
0.11412663757801056,
-0.20800551772117615,
0.2612011432647705,
-0.2109656184911728,
0.14963047206401825,
-0.062072377651929855,
-0.15851813554763794,
-0.03866804391145706,
-0.05830454081296921,
-0.1338525265455246,
-0.17424093186855316,
-0.5670874118804932,
0.07469140738248825,
-0.29656606912612915,
-0.03121316060423851,
0.1268422156572342,
-0.11035662889480591,
0.3521360754966736,
-0.17091317474842072,
0.2749558091163635,
0.12905843555927277,
0.15774422883987427,
-0.09200803190469742,
0.06618048995733261,
0.3151901364326477,
-0.12203718721866608,
0.043880462646484375,
0.07894688099622726,
0.2435206025838852,
-0.08855360001325607,
-0.06383668631315231,
-0.10458095371723175,
-0.06150786951184273,
0.39146721363067627,
0.27206218242645264,
-0.16569989919662476,
-0.012330488301813602,
-0.223452627658844,
0.10612861812114716,
0.2691363990306854,
-0.0650157779455185,
0.07761049270629883,
0.14151087403297424,
0.17613734304904938,
-0.04500993341207504,
0.21419186890125275,
0.37166064977645874,
0.01659689098596573,
0.11162689328193665,
-0.3786831498146057,
-0.2809373140335083,
0.4669596254825592,
-0.33175477385520935,
-0.38540029525756836,
-0.07182534784078598,
0.02863459102809429,
0.16848210990428925,
-0.18716208636760712,
-0.5829000473022461,
-0.15165625512599945,
0.12214569747447968,
-0.0802415981888771,
-0.39544031023979187,
0.24264049530029297,
-0.1927640587091446,
0.09496546536684036,
-0.036626022309064865,
0.1453104466199875,
0.07667714357376099,
-0.10851284116506577,
0.05231272801756859,
-0.2184521108865738
] |
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.010368715971708298,
0.11118967831134796,
-0.10002520680427551,
0.3606892228126526,
0.42733946442604065,
0.051915135234594345,
0.287960410118103,
0.565480649471283,
0.012548625469207764,
0.32172808051109314,
-0.012281792238354683,
0.5649031400680542,
-0.022834742441773415,
0.24715560674667358,
-0.1524103879928589,
-0.33275118470191956,
-0.03934454545378685,
0.32406315207481384,
0.13065224885940552,
0.10894648730754852,
-0.08233113586902618,
0.2334582358598709,
-0.14336861670017242,
0.2349628508090973,
0.0887252539396286,
0.10996132344007492,
0.04441262409090996,
0.11864391714334488,
-0.37175580859184265,
-0.6237431168556213,
0.23958159983158112,
-0.014797983691096306,
0.38413915038108826,
0.4122720956802368,
-0.00010792644752655178,
0.20342931151390076,
0.42740726470947266,
-0.14979644119739532,
-0.3283527195453644,
-0.6941394209861755,
-0.5283310413360596,
-0.07338719069957733,
0.3302685022354126,
-0.07137534767389297,
-0.015721824020147324,
0.05183109641075134,
-0.20225507020950317,
-0.46834462881088257,
0.7235795259475708,
0.3449123799800873,
0.23320762813091278,
0.09840022772550583,
0.227228045463562,
-0.05676893889904022,
0.1948496252298355,
0.15322276949882507,
0.06221354007720947,
0.2472885251045227,
-0.14648175239562988,
0.21547603607177734,
0.2918560802936554,
0.2464018613100052,
-0.11347097903490067,
0.32415854930877686,
0.15735386312007904,
0.12254155427217484,
0.36487922072410583,
-0.44944262504577637,
0.3054105043411255,
0.1438310444355011,
0.690277636051178,
-0.15503503382205963,
-0.25516223907470703,
0.0767485648393631,
0.12947978079319,
-0.4748285114765167,
0.33195775747299194,
0.06432033330202103,
-0.2432660013437271,
0.175277441740036,
-0.08875810354948044,
0.013489963486790657,
-0.27440279722213745,
0.010089647024869919,
-0.1931987702846527,
0.008953736163675785,
-0.13906656205654144,
0.15273018181324005,
0.3419303894042969,
-0.2617519497871399,
0.08620844036340714,
0.047718603163957596,
-0.2760579586029053,
0.15737058222293854,
-0.19321732223033905,
-0.10912998020648956,
-0.15696179866790771,
-0.4858178198337555,
-0.05335602909326553,
0.0962759479880333,
0.25487464666366577,
0.06091657653450966,
0.38142985105514526,
0.03627949208021164,
0.602672815322876,
0.025567835196852684,
-0.12119656056165695,
0.034573014825582504,
0.12222971767187119,
0.001100977067835629,
0.06887519359588623,
-0.08030159771442413,
-0.2731037437915802,
0.0020019649527966976,
0.1748584657907486,
0.14479756355285645,
0.3112102448940277,
-0.28004977107048035,
-0.33825573325157166,
0.15140573680400848,
-0.5848352313041687,
-0.24223527312278748,
-0.22540554404258728,
0.31026971340179443,
0.020036231726408005,
0.24337294697761536,
0.060581009835004807,
0.2738601565361023,
0.019908275455236435,
-0.34598594903945923,
-0.04329022392630577,
-0.15164756774902344,
-0.034663405269384384,
-0.145573690533638,
0.27289319038391113,
-0.08494368195533752,
0.1361090987920761,
0.08728116005659103,
0.18120238184928894,
-0.33935192227363586,
0.3095949590206146,
-0.22543376684188843,
0.09953450411558151,
0.32207125425338745,
0.27545657753944397,
0.05251419171690941,
0.18164514005184174,
-0.16733650863170624,
-0.05303197726607323,
0.3141588568687439,
-0.2938109040260315,
-0.2666991949081421,
-0.2722409665584564,
0.2071201354265213,
0.0013438110472634435,
-0.1711641401052475,
-0.254010409116745,
0.04573334753513336,
-0.017800817266106606,
-0.06038665771484375,
-0.3778080940246582,
-0.16670820116996765,
0.08802177757024765,
-0.1780562549829483,
0.3932460844516754,
0.21614043414592743,
-0.32794660329818726,
0.03940650075674057,
-0.09591540694236755,
-0.13180765509605408,
0.2154315710067749,
0.16438914835453033,
-0.31420907378196716,
0.5403988361358643,
-0.0388912633061409,
-0.16912375390529633,
0.09861448407173157,
-0.30667248368263245,
-0.29378122091293335,
0.3694315254688263,
0.004684023559093475,
0.15911339223384857,
0.0017895750934258103,
-0.2512533962726593,
0.3732079565525055,
0.1588672697544098,
0.19458729028701782,
0.061808984726667404,
-0.14274084568023682,
0.0913999080657959,
-0.09916337579488754,
-0.25751808285713196,
0.09063442051410675,
0.3011377453804016,
0.07758115231990814,
0.0796927958726883,
-0.0985768511891365,
0.2593406140804291,
0.1528242826461792,
-0.11529925465583801,
0.12578508257865906,
0.16348235309123993,
-0.10971943289041519,
0.16352050006389618,
0.05103270709514618,
0.1401449292898178,
-0.2065712958574295,
0.06991919875144958,
0.041585858911275864,
0.22810456156730652,
-0.3960622549057007,
0.03857908025383949,
-0.31787312030792236,
0.010432221926748753,
-0.36519765853881836,
0.10687475651502609,
0.2487117350101471,
0.12271153926849365,
0.055830858647823334,
0.12750428915023804,
-0.3013749420642853,
-0.027470948174595833,
0.39167818427085876,
0.16823938488960266,
-0.051913850009441376,
0.29383644461631775,
-0.19125908613204956,
-0.29416167736053467,
0.11205676198005676,
-0.04420830309391022,
0.03782019764184952,
-0.133012592792511,
-0.32542476058006287,
0.23774051666259766,
0.18957796692848206,
0.20340414345264435,
-0.1667608916759491,
-0.14567863941192627,
0.13480563461780548,
-0.33004629611968994,
0.08380439132452011,
0.539752721786499,
0.16800478100776672,
-0.022134335711598396,
-0.1026686429977417,
0.1981104165315628,
-0.08556751161813736,
0.11377175897359848,
-0.0782795250415802,
-0.0304031353443861,
0.32672178745269775,
0.08160823583602905,
-0.17597077786922455,
-0.20723339915275574,
0.2624557614326477,
-0.00878862477838993,
0.09513980150222778,
-0.1814565807580948,
-0.2600826025009155,
-0.21774564683437347,
0.24876634776592255,
-0.0782855823636055,
-0.05086364969611168,
0.13200056552886963,
-0.09498976171016693,
0.0630510002374649,
-0.20784403383731842,
0.024482056498527527,
0.20640604197978973,
0.030220402404665947,
-0.226580411195755,
0.1264621913433075,
0.18520227074623108,
-0.012763230130076408,
0.20057924091815948,
0.18973976373672485,
0.3189217150211334,
0.27377578616142273,
-0.05815504118800163,
0.00756647065281868,
-0.22345134615898132,
-0.13907837867736816,
-0.11034951359033585,
0.45041000843048096,
-0.25902655720710754,
0.10047353059053421,
-0.2818916141986847,
-0.07507587224245071,
-0.13464558124542236,
-0.47143617272377014,
-0.09311715513467789,
-0.09859706461429596,
-0.2331869900226593,
0.1405065953731537,
0.08313561975955963,
0.08122321218252182,
-0.10275281965732574,
0.0702490285038948,
0.18473947048187256,
0.03351372480392456,
-0.12122108787298203,
-0.3000424802303314,
-0.22224988043308258,
0.0501413457095623,
0.30089548230171204,
-0.31793472170829773,
-0.02891591563820839,
-0.40225163102149963,
0.07929417490959167,
0.2344600409269333,
-0.24205657839775085,
0.28294119238853455,
-0.2433232069015503,
0.10714651644229889,
0.09766367077827454,
0.3463146984577179,
-0.08076944947242737,
-0.1787150651216507,
0.2980034351348877,
-0.03362775593996048,
-0.07012221962213516,
0.2351943403482437,
-0.024764597415924072,
0.004414508584886789,
-0.03455222770571709,
-0.600331723690033,
-0.22594884037971497,
-0.1773613840341568,
0.08440477401018143,
0.0945691391825676,
0.07204413414001465,
0.2071624994277954,
0.25185537338256836,
0.13299094140529633,
0.14083147048950195,
0.22099396586418152,
-0.21398788690567017,
-0.46913784742355347,
0.1890762597322464,
-0.18561908602714539,
-0.2885921895503998,
0.3380992114543915,
0.13194085657596588,
0.39266160130500793,
-0.3039436638355255,
-0.38750961422920227,
0.31193315982818604,
0.11380575597286224,
-0.10467229783535004,
-0.4057465195655823,
-0.32253968715667725,
0.12435851246118546,
0.18167071044445038,
0.012164195068180561,
-0.09812373667955399,
-0.2578532099723816,
0.23554937541484833,
-0.05155475437641144,
0.14006130397319794,
-0.06082651764154434,
0.8555186986923218,
-0.07739851623773575,
0.32872048020362854,
0.21191315352916718,
0.15714478492736816,
0.2867906391620636,
-0.02600252628326416,
0.04745785892009735,
-0.09311702847480774,
-0.1263146996498108,
-0.03466535732150078,
-0.11320342123508453,
-0.16974638402462006,
0.10504543036222458,
-0.10657625645399094,
-0.24953676760196686,
-0.36816856265068054,
0.1578816920518875,
-0.18751946091651917,
-0.17220887541770935,
0.11252438277006149,
-0.06836332380771637,
0.21986863017082214,
0.045524485409259796,
0.2872375547885895,
-0.15948282182216644,
-0.022200018167495728,
-0.06745567917823792,
0.09866377711296082,
0.274168998003006,
0.08889861404895782,
-0.5317464470863342,
-0.23675258457660675,
-0.43966343998908997,
0.11233629286289215,
0.07496857643127441,
0.47242623567581177,
-0.13919056951999664,
-0.01738644205033779,
0.23414915800094604,
-0.20882713794708252,
0.4418925940990448,
-0.0526617132127285,
0.011164071038365364,
0.18302828073501587,
0.0017395243048667908,
-0.2354273498058319,
-0.09466299414634705,
-0.33054831624031067,
0.3097439706325531,
0.13874247670173645,
0.2339218556880951,
-0.28189805150032043,
-0.16092947125434875,
0.32157278060913086,
0.005415075458586216,
-0.20389392971992493,
-0.16966208815574646,
-0.5031237602233887,
-0.32809361815452576,
-0.5201477408409119,
-0.15986047685146332,
-0.19111937284469604,
0.40151599049568176,
0.1686209738254547,
-0.031186873093247414,
0.13803353905677795,
-0.02857617661356926,
-0.002182060619816184,
0.4222211539745331,
0.27034276723861694,
0.08373917639255524,
0.18650458753108978,
0.3958319425582886,
-0.1319776326417923,
0.424367755651474,
0.5508010983467102,
0.11340399831533432,
-0.6399226188659668,
0.05121874436736107,
-0.2962983250617981,
0.09761375188827515,
0.0014405400725081563,
-0.08165931701660156,
-0.0493805892765522,
-0.10008975863456726,
-0.020987290889024734,
-0.40862682461738586,
-0.004295906983315945,
0.5303221940994263,
-0.2322348654270172,
-0.4098722040653229,
-0.4350344240665436,
0.13296057283878326,
-0.17021805047988892,
0.035307470709085464,
0.0269355159252882,
0.03349868953227997,
-0.21447141468524933,
0.363654762506485,
0.1855357438325882,
0.7658935189247131,
-0.023515062406659126,
0.0016503932420164347,
0.30666065216064453,
-0.4282895028591156,
0.030505023896694183,
0.027730319648981094,
0.22285550832748413,
-0.2719285190105438,
0.07004695385694504,
-0.06944979727268219,
-0.019554316997528076,
0.227920264005661,
0.035534244030714035,
-0.4261457622051239,
-0.04367256537079811,
-0.0445881113409996,
0.15337137877941132,
0.07188169658184052,
0.24426434934139252,
0.058779217302799225,
-0.12756994366645813,
-0.2995493412017822,
0.19983452558517456,
-0.4082097113132477,
0.19175995886325836,
-0.11998171359300613,
-0.2695815861225128,
-0.008630155585706234,
-0.2286147177219391,
-0.18360601365566254,
0.07418293505907059,
-0.10760345309972763,
0.149481400847435,
-0.07486596703529358,
-0.2504877746105194,
-0.05082676559686661,
-0.11257249116897583,
0.07997919619083405,
-0.06272640824317932,
-0.15351898968219757,
0.1907377690076828,
-0.12534569203853607,
-0.074596107006073,
-0.00770296435803175,
0.22739863395690918,
0.010806013830006123,
-0.061629727482795715,
-0.36744052171707153,
0.3495848774909973,
0.006272886414080858,
-0.37018898129463196,
-0.02357940934598446,
-0.09042888134717941,
0.09618096798658371,
-0.0933389663696289,
0.00048010607133619487,
-0.18614807724952698,
0.09080535918474197,
-0.061448074877262115,
0.18801890313625336,
0.03961465507745743,
-0.10779967159032822,
0.05977694317698479,
-0.08552874624729156,
-0.34172675013542175,
-0.022280342876911163,
0.49545255303382874,
0.07445085793733597,
0.042428143322467804,
0.6726428270339966,
0.10971342027187347,
0.02331189438700676,
-0.2028912752866745,
0.41211485862731934,
-0.19199615716934204,
-0.16036668419837952,
0.13698402047157288,
-0.1618545651435852,
0.21580283343791962,
-0.024612601846456528,
0.32830530405044556,
0.14977587759494781,
-0.15602149069309235,
0.1812470257282257,
-0.3983316719532013,
-0.3593769967556,
0.08018627017736435,
0.09966587275266647,
0.08902968466281891,
0.2458859235048294,
0.198777973651886,
0.01930171065032482,
-0.1460973024368286,
-0.3054214417934418,
0.10120998322963715,
-0.021104266867041588,
0.038934312760829926,
0.07355137169361115,
-0.15962159633636475,
0.14585326611995697,
-0.08041504770517349,
0.16713635623455048,
0.16946019232273102,
-0.1528191715478897,
-0.1993517428636551,
-0.05957149341702461,
0.08713891357183456,
-0.0703357681632042,
-0.3041723072528839,
-0.1647041290998459,
-0.1262100338935852,
-0.14251522719860077,
-0.0565401054918766,
0.06190893054008484,
0.0322711318731308,
0.048748500645160675,
0.025114281103014946,
-0.08564410358667374,
0.08326553553342819,
-0.05854858085513115,
-0.06872104108333588,
0.10665138065814972,
0.4175851047039032,
0.20033882558345795,
0.2956332266330719,
0.015542972832918167,
-0.009833863005042076,
-0.1680741012096405,
0.10843644291162491,
0.1326763927936554,
-0.06012140214443207,
0.48992136120796204,
-0.5844718813896179,
0.30933287739753723,
0.15259306132793427,
0.06416888535022736,
0.3737845718860626,
-0.3491540253162384,
0.14384742081165314,
-0.025781914591789246,
0.25007277727127075,
-0.007248835172504187,
-0.01977687142789364,
-0.018770869821310043,
-0.058952149003744125,
-0.25123754143714905,
0.12927396595478058,
0.036814868450164795,
0.06431109458208084,
0.06582353264093399,
0.18554703891277313,
0.5413073897361755,
0.02055460959672928,
0.17770065367221832,
0.44498908519744873,
-0.2651415169239044,
0.010318086482584476,
0.10708348453044891,
0.028887808322906494,
0.15085135400295258,
0.5691822171211243,
-0.2521657645702362,
0.36568596959114075,
0.06746591627597809,
0.18918447196483612,
-0.06894797831773758,
-0.28572484850883484,
-0.19115720689296722,
0.1283739060163498,
-0.10396327078342438,
0.2056528478860855,
0.16058115661144257,
-0.04114643856883049,
-0.27542954683303833,
-0.16456769406795502,
-0.4454321265220642,
-0.04337258264422417,
-0.15814803540706635,
-0.16519805788993835,
-0.30466127395629883,
-0.23795482516288757,
-0.20869848132133484,
0.16941531002521515,
-0.0964413434267044,
0.06897889822721481,
-0.13105623424053192,
0.3181929290294647,
-0.1337466537952423,
-0.48160645365715027,
-0.48510271310806274,
0.15319710969924927,
-0.0802619457244873,
-0.22740232944488525,
0.4024292826652527,
0.36227425932884216,
-0.1449485570192337,
0.17525897920131683,
0.23730498552322388,
0.4581502676010132,
0.43654781579971313,
-0.33340391516685486,
-0.005134685430675745,
-0.1475549340248108,
-0.13882608711719513,
0.06812510639429092,
0.14698919653892517,
0.1474831998348236,
0.4646259546279907,
0.19281123578548431,
0.20866252481937408,
-0.13993066549301147,
-0.09402953833341599,
0.27341073751449585,
0.21146714687347412,
-0.24109774827957153,
0.10229866951704025,
-0.08334089815616608,
0.2694025933742523,
0.01146087609231472,
-0.11780977994203568,
-0.5373736619949341,
0.0016911199782043695,
0.1048629879951477,
0.3085605204105377,
-0.03835992515087128,
-0.08355091512203217,
0.09415881335735321,
-0.02424793876707554,
0.36647143959999084,
-0.022420430555939674,
0.06438914686441422,
-0.3836488425731659,
-0.15018251538276672,
-0.43168169260025024,
0.10472573339939117,
-0.13953818380832672,
-0.07616106420755386,
0.0795028954744339,
0.051115501672029495,
0.1058833971619606,
0.3559514284133911,
0.13892875611782074,
-0.06802661716938019,
0.10707619786262512,
-0.031924664974212646,
-0.18354244530200958,
-0.10682953149080276,
0.28023824095726013,
0.05602751299738884,
-0.15626077353954315,
-0.1600484699010849,
0.32958099246025085,
0.07344546169042587,
0.08415508270263672,
-0.35275864601135254,
-0.2275988906621933,
-0.11162276566028595,
-0.006170670501887798,
0.5378036499023438,
0.13194964826107025,
0.407289057970047,
-0.004438594914972782,
-0.2568786144256592,
-0.14358365535736084,
-0.1493096500635147,
-0.0891229584813118,
0.2212727665901184,
0.19800736010074615,
0.4451333284378052,
-0.2095821052789688,
0.19151006639003754,
-0.5001687407493591,
0.04653804376721382,
-0.17515712976455688,
-0.15086370706558228,
-0.522554337978363,
-0.023556958884000778,
0.03135927766561508,
0.13598477840423584,
-0.13986513018608093,
0.21212072670459747,
0.16116781532764435,
0.28311941027641296,
-0.3213099241256714,
0.05493916571140289,
0.4070502817630768,
-0.41059547662734985,
-0.4109966456890106,
-0.08110695332288742,
-0.14459817111492157,
-0.31388112902641296,
0.037282586097717285,
-0.6443097591400146,
0.26872581243515015,
0.21799489855766296,
-0.1473025232553482,
-0.33695343136787415,
0.20578977465629578,
0.2618827521800995,
0.06539209187030792,
-0.0011065469589084387,
0.3464149832725525,
0.1690862625837326,
-0.1502877026796341,
0.05288670212030411,
-0.2060888707637787
] |
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.012936263345181942,
0.10301104933023453,
-0.1228330135345459,
0.3122572898864746,
0.39834195375442505,
0.05211116001009941,
0.29682525992393494,
0.5685592293739319,
0.020557519048452377,
0.3210778534412384,
-0.0469788983464241,
0.523174524307251,
0.06325192749500275,
0.19008664786815643,
-0.16551846265792847,
-0.2574036717414856,
-0.023632720112800598,
0.3507925570011139,
0.06922629475593567,
0.07452018558979034,
-0.09009382873773575,
0.19571644067764282,
-0.1244620829820633,
0.21412374079227448,
0.0591253861784935,
0.07409925013780594,
0.03893833979964256,
0.1152040958404541,
-0.34397509694099426,
-0.636522114276886,
0.19197344779968262,
-0.00793221965432167,
0.3155692517757416,
0.4043070375919342,
-0.00010200643009738997,
0.17776431143283844,
0.44543564319610596,
-0.06898779422044754,
-0.31259581446647644,
-0.582008421421051,
-0.5053097605705261,
-0.11710269749164581,
0.31653887033462524,
-0.12829165160655975,
-0.12098026275634766,
0.11340229958295822,
-0.1850690394639969,
-0.43820154666900635,
0.6948313117027283,
0.3881034851074219,
0.30288663506507874,
0.13516449928283691,
0.230193629860878,
-0.10093875229358673,
0.25504517555236816,
0.12515351176261902,
0.013898626901209354,
0.21128882467746735,
-0.1272658407688141,
0.20333325862884521,
0.26199084520339966,
0.2876456677913666,
-0.0855984017252922,
0.3251771628856659,
0.1399058848619461,
0.15850767493247986,
0.3314509093761444,
-0.3463333547115326,
0.26819565892219543,
0.10367407649755478,
0.6430296301841736,
-0.13071680068969727,
-0.2762633264064789,
0.0868244543671608,
0.07967299222946167,
-0.5477734208106995,
0.31897085905075073,
0.09293660521507263,
-0.20674118399620056,
0.1782432645559311,
-0.08957082778215408,
0.0375673845410347,
-0.1832726001739502,
0.001957437489181757,
-0.20853789150714874,
0.08164413273334503,
-0.13361771404743195,
0.07820665091276169,
0.3002834916114807,
-0.2424614429473877,
0.07468375563621521,
0.08123089373111725,
-0.2699529230594635,
0.10978478193283081,
-0.18038387596607208,
-0.09480343759059906,
-0.04302293062210083,
-0.4446945786476135,
-0.11994688212871552,
0.11453380435705185,
0.2236439436674118,
0.09879330545663834,
0.3771331012248993,
-0.0008453852497041225,
0.463941365480423,
0.050138648599386215,
-0.1559506058692932,
0.07711481302976608,
0.18458296358585358,
0.044403478503227234,
-0.00298511004075408,
-0.10394220799207687,
-0.2111137956380844,
0.01926007680594921,
0.16020742058753967,
0.1095811203122139,
0.3138604462146759,
-0.22049881517887115,
-0.2839263081550598,
0.07835321128368378,
-0.48000064492225647,
-0.19397513568401337,
-0.1975453794002533,
0.32072991132736206,
-0.06329551339149475,
0.2304753214120865,
0.05673552677035332,
0.22450384497642517,
-0.06790100783109665,
-0.22569811344146729,
-0.12100907415151596,
-0.1312338262796402,
-0.0852743461728096,
-0.12016665935516357,
0.2747137248516083,
-0.08538725972175598,
0.14714305102825165,
0.07095030695199966,
0.15196064114570618,
-0.28279292583465576,
0.3410670757293701,
-0.2363019734621048,
0.11355885863304138,
0.32982107996940613,
0.27700912952423096,
0.07017306983470917,
0.18193596601486206,
-0.1325308084487915,
-0.0961141437292099,
0.249123677611351,
-0.2524721920490265,
-0.2802443504333496,
-0.18768353760242462,
0.28552746772766113,
0.011328143067657948,
-0.1512572169303894,
-0.21341729164123535,
-0.05337804928421974,
0.010003918781876564,
-0.08077245205640793,
-0.3593396842479706,
-0.17142550647258759,
0.06063127517700195,
-0.20192325115203857,
0.36210229992866516,
0.27052491903305054,
-0.272331178188324,
0.07330998033285141,
-0.13540209829807281,
-0.09226053208112717,
0.18774700164794922,
0.20177042484283447,
-0.3014395833015442,
0.43629583716392517,
-0.0464414618909359,
-0.1566219925880432,
0.14022262394428253,
-0.32023608684539795,
-0.3240881860256195,
0.3028962016105652,
-0.032979074865579605,
0.08782781660556793,
0.02586877904832363,
-0.19240562617778778,
0.3647070527076721,
0.15370658040046692,
0.19921593368053436,
0.05444234609603882,
-0.03568106144666672,
0.1235385462641716,
-0.12453288584947586,
-0.25867709517478943,
0.018174422904849052,
0.24633538722991943,
0.0644574910402298,
0.044238846749067307,
-0.10418081283569336,
0.20370100438594818,
0.14036434888839722,
-0.12451750040054321,
0.11371591687202454,
0.20856307446956635,
-0.13048580288887024,
0.17133104801177979,
0.02990894950926304,
0.13642820715904236,
-0.13996630907058716,
0.1214684247970581,
0.025929395109415054,
0.19003276526927948,
-0.27266228199005127,
0.006485970690846443,
-0.30145493149757385,
0.03161133825778961,
-0.3687094449996948,
0.10136374086141586,
0.3043012320995331,
0.1964472532272339,
0.12332967668771744,
0.13166318833827972,
-0.2749221622943878,
-0.011012244038283825,
0.4417961537837982,
0.1070486307144165,
-0.11803989857435226,
0.2619086802005768,
-0.2515701353549957,
-0.29155027866363525,
0.11085987836122513,
-0.03670959547162056,
0.0580889917910099,
-0.08016035705804825,
-0.30369430780410767,
0.1816575825214386,
0.20360784232616425,
0.24957342445850372,
-0.17953231930732727,
-0.13638542592525482,
0.07912370562553406,
-0.26004087924957275,
0.1992524266242981,
0.5228093862533569,
0.12022288888692856,
-0.024972600862383842,
-0.06767037510871887,
0.23877133429050446,
-0.02293095365166664,
0.11259607970714569,
-0.024652129039168358,
-0.05478168651461601,
0.39643964171409607,
0.028373125940561295,
-0.1547791212797165,
-0.260942280292511,
0.24718345701694489,
0.05345470458269119,
0.11359439045190811,
-0.11512231081724167,
-0.312859445810318,
-0.1558891236782074,
0.38729798793792725,
-0.036733128130435944,
0.01590241678059101,
0.13588190078735352,
-0.14282608032226562,
0.016694355756044388,
-0.21657931804656982,
-0.029925620183348656,
0.19512739777565002,
0.08886565268039703,
-0.160671666264534,
0.08165497332811356,
0.19957466423511505,
-0.08759544044733047,
0.21961809694766998,
0.20297406613826752,
0.2804161310195923,
0.17260229587554932,
0.035534411668777466,
-0.030192840844392776,
-0.22623449563980103,
-0.023235570639371872,
-0.11765202134847641,
0.37258368730545044,
-0.23754429817199707,
0.08495229482650757,
-0.3510684370994568,
-0.0531923808157444,
-0.14616042375564575,
-0.5117495059967041,
-0.053869958966970444,
-0.10601506382226944,
-0.14355753362178802,
0.17567454278469086,
0.06390407681465149,
0.1328895092010498,
-0.09745335578918457,
0.026234975084662437,
0.17605574429035187,
-0.012864151038229465,
-0.12408918887376785,
-0.3575330376625061,
-0.2978411316871643,
0.11481643468141556,
0.23908810317516327,
-0.3049163818359375,
0.06965835392475128,
-0.4312530755996704,
0.04712679609656334,
0.18551404774188995,
-0.25068315863609314,
0.25707316398620605,
-0.16567553579807281,
0.06761463731527328,
0.08437774330377579,
0.25620824098587036,
-0.038787513971328735,
-0.1973777711391449,
0.3516506254673004,
-0.12730567157268524,
-0.13336104154586792,
0.2202688604593277,
-0.023485222831368446,
0.008686277084052563,
-0.037071313709020615,
-0.6399901509284973,
-0.22370539605617523,
-0.2604728043079376,
0.10106554627418518,
0.15091297030448914,
0.03561176359653473,
0.19856713712215424,
0.18642644584178925,
0.1326586753129959,
0.0938299298286438,
0.23278743028640747,
-0.2737099826335907,
-0.4300875663757324,
0.23750066757202148,
-0.2297222912311554,
-0.3239222764968872,
0.3098142445087433,
0.046838488429784775,
0.3736923933029175,
-0.31184515357017517,
-0.4044916331768036,
0.20708569884300232,
0.020604955032467842,
-0.050972361117601395,
-0.3278873562812805,
-0.29403063654899597,
0.2029004991054535,
0.13986998796463013,
-0.06997626274824142,
-0.06716489791870117,
-0.27015212178230286,
0.16539625823497772,
-0.08013088256120682,
0.13386696577072144,
-0.10194487869739532,
0.8502923250198364,
-0.12226796895265579,
0.40891170501708984,
0.1821497082710266,
0.12155025452375412,
0.2841959595680237,
-0.028671061620116234,
0.08926317095756531,
-0.17760692536830902,
-0.16072073578834534,
-0.0405217781662941,
-0.08866830170154572,
-0.14168304204940796,
0.11798368394374847,
-0.07669227570295334,
-0.3244696855545044,
-0.38773268461227417,
0.14736928045749664,
-0.19077856838703156,
-0.24916300177574158,
0.11737286299467087,
-0.069597028195858,
0.24374228715896606,
0.10653701424598694,
0.32131463289260864,
-0.1834319680929184,
-0.07832054793834686,
-0.040955644100904465,
0.024663999676704407,
0.17842574417591095,
0.05437702313065529,
-0.5196172595024109,
-0.21844567358493805,
-0.397150456905365,
0.09768767654895782,
0.09445886313915253,
0.3790028393268585,
-0.11878201365470886,
-0.13328276574611664,
0.2848418354988098,
-0.19965501129627228,
0.45485568046569824,
0.015690572559833527,
0.02259022369980812,
0.230839341878891,
-0.0406472273170948,
-0.2477571815252304,
-0.10331689566373825,
-0.31190547347068787,
0.26195746660232544,
0.2248477190732956,
0.2912774384021759,
-0.2751755714416504,
-0.16170211136341095,
0.31899508833885193,
0.03253336250782013,
-0.19615066051483154,
-0.1425718069076538,
-0.5580506920814514,
-0.28625741600990295,
-0.5117340683937073,
-0.1522892415523529,
-0.1444849669933319,
0.3319622576236725,
0.13338211178779602,
-0.051013533025979996,
0.11589981615543365,
-0.050624746829271317,
-0.07439883053302765,
0.4398437738418579,
0.3376659154891968,
0.05711093172430992,
0.21372626721858978,
0.33074215054512024,
-0.08979840576648712,
0.34726589918136597,
0.550991952419281,
0.0874861478805542,
-0.564702033996582,
0.02525830641388893,
-0.23082904517650604,
0.03761092945933342,
0.0295322984457016,
-0.042654041200876236,
-0.052369482815265656,
-0.07599300891160965,
0.01934698224067688,
-0.3702816665172577,
0.04448052868247032,
0.4498755931854248,
-0.23860754072666168,
-0.3628220558166504,
-0.40354758501052856,
0.1759878545999527,
-0.14884579181671143,
0.046187225729227066,
-0.026190293952822685,
-0.023648688569664955,
-0.16569927334785461,
0.30922579765319824,
0.20217342674732208,
0.7795626521110535,
0.004169239196926355,
0.04235142096877098,
0.3334951102733612,
-0.4208036959171295,
0.05863771215081215,
0.05676694214344025,
0.2716711163520813,
-0.30659598112106323,
0.10430945456027985,
-0.028318515047430992,
-0.04359624907374382,
0.14420247077941895,
0.028661873191595078,
-0.3659760355949402,
-0.027714289724826813,
0.007940266281366348,
0.205216184258461,
0.06795565038919449,
0.23238196969032288,
0.00989701971411705,
-0.1805931031703949,
-0.3090297281742096,
0.2660910487174988,
-0.32438230514526367,
0.17890258133411407,
-0.07879673689603806,
-0.23882046341896057,
0.009373153559863567,
-0.21568995714187622,
-0.14267171919345856,
0.11126019805669785,
-0.09536497294902802,
0.217523992061615,
-0.09901806712150574,
-0.345436155796051,
-0.14832614362239838,
-0.14794965088367462,
0.06572307646274567,
0.012239459902048111,
-0.13503210246562958,
0.1931801587343216,
-0.09360671788454056,
-0.09684273600578308,
-0.019329147413372993,
0.22050203382968903,
0.027689168229699135,
-0.1507611721754074,
-0.3855765163898468,
0.29763469099998474,
-0.006585430819541216,
-0.3523637056350708,
-0.029163749888539314,
-0.018739312887191772,
0.12155671417713165,
-0.05033126473426819,
-0.006662177853286266,
-0.1516212522983551,
0.09314383566379547,
-0.0834324061870575,
0.24804647266864777,
-0.002034923527389765,
-0.06529005616903305,
0.09281449764966965,
-0.12382833659648895,
-0.30779576301574707,
-0.04927012696862221,
0.4987155497074127,
0.1204657033085823,
0.10308796912431717,
0.6825525760650635,
0.12221337854862213,
-0.03670034930109978,
-0.24134093523025513,
0.3117477595806122,
-0.26393795013427734,
-0.09662086516618729,
0.13119685649871826,
-0.13545608520507812,
0.1641072779893875,
0.018841374665498734,
0.2660931944847107,
0.14314976334571838,
-0.18310067057609558,
0.1255340725183487,
-0.3727389872074127,
-0.34203365445137024,
0.0853065773844719,
0.08679712563753128,
0.03652331605553627,
0.3154537081718445,
0.22181765735149384,
0.024941030889749527,
-0.1445484459400177,
-0.3769083619117737,
0.09689579159021378,
-0.054605621844530106,
0.04981907457113266,
0.052991341799497604,
-0.2355288863182068,
0.13268838822841644,
-0.048505235463380814,
0.22455500066280365,
0.1256546974182129,
-0.1869509518146515,
-0.2962937653064728,
-0.025777729228138924,
0.05056560039520264,
-0.1379130333662033,
-0.26705077290534973,
-0.15540267527103424,
-0.13806435465812683,
-0.10701984167098999,
-0.0943809449672699,
0.03794078156352043,
0.04208235815167427,
0.054676782339811325,
-0.008676538243889809,
-0.11308810859918594,
0.06254429370164871,
0.015454493463039398,
-0.025899656116962433,
0.041508037596940994,
0.3601214289665222,
0.12321031093597412,
0.2862485945224762,
0.004870294593274593,
-0.009066130965948105,
-0.1393582969903946,
0.05294002592563629,
0.10611538589000702,
-0.06252216547727585,
0.49561724066734314,
-0.5514345765113831,
0.22967545688152313,
0.2057650238275528,
0.05187421664595604,
0.3414041996002197,
-0.28466227650642395,
0.08754579722881317,
-0.03175535798072815,
0.31609785556793213,
-0.06975524872541428,
-0.054336391389369965,
-0.05814579501748085,
-0.11454863101243973,
-0.16197340190410614,
0.07407398521900177,
0.06599675863981247,
0.09694310277700424,
0.09742984175682068,
0.22898133099079132,
0.5092586278915405,
-0.03845557942986488,
0.13268566131591797,
0.3509935736656189,
-0.22047647833824158,
-0.025668110698461533,
0.155064195394516,
0.03370259702205658,
0.15244510769844055,
0.5504531860351562,
-0.17385049164295197,
0.3638175427913666,
0.04672813042998314,
0.23019415140151978,
-0.09089706838130951,
-0.27285438776016235,
-0.17927676439285278,
0.054319754242897034,
-0.11454547196626663,
0.17956982553005219,
0.17267107963562012,
-0.013110099360346794,
-0.29152780771255493,
-0.11676185578107834,
-0.5116009712219238,
-0.027486687526106834,
-0.18986932933330536,
-0.14455758035182953,
-0.27326181530952454,
-0.18984471261501312,
-0.12521739304065704,
0.17071950435638428,
-0.058085788041353226,
0.0919249877333641,
-0.09692928940057755,
0.3143520653247833,
-0.1261969804763794,
-0.4820248782634735,
-0.39150187373161316,
0.0809076577425003,
-0.029296517372131348,
-0.2216845452785492,
0.43149533867836,
0.33087077736854553,
-0.12287639826536179,
0.13272565603256226,
0.239505335688591,
0.4572738707065582,
0.36875268816947937,
-0.29679957032203674,
-0.013178844936192036,
-0.14820219576358795,
-0.20297746360301971,
-0.04273192957043648,
0.1434619277715683,
0.23001404106616974,
0.453163743019104,
0.13326644897460938,
0.28871017694473267,
-0.20892952382564545,
-0.016674308106303215,
0.18101638555526733,
0.21828728914260864,
-0.22154705226421356,
0.12985092401504517,
-0.041978463530540466,
0.16862784326076508,
-0.00746990367770195,
-0.08851534128189087,
-0.5434631109237671,
0.04014786332845688,
0.15921270847320557,
0.28890854120254517,
-0.06236866116523743,
-0.158857062458992,
0.13104192912578583,
-0.01899896375834942,
0.3759172260761261,
-0.009748350828886032,
0.03680504858493805,
-0.3365986943244934,
-0.12997812032699585,
-0.436204731464386,
0.16828225553035736,
-0.1909893900156021,
-0.022006597369909286,
0.03802276402711868,
0.11999115347862244,
0.10201334208250046,
0.32786205410957336,
0.178888738155365,
-0.12055929005146027,
0.028402304276823997,
-0.07292485237121582,
-0.2259824126958847,
-0.0825776681303978,
0.25725191831588745,
-0.0021914176177233458,
-0.1161155253648758,
-0.21375377476215363,
0.3117861747741699,
0.0019225082360208035,
0.14524024724960327,
-0.35616907477378845,
-0.20298072695732117,
-0.06747046113014221,
0.0280016902834177,
0.5374516248703003,
0.16234701871871948,
0.3618907332420349,
-0.022852091118693352,
-0.25581803917884827,
-0.15893761813640594,
-0.2314826250076294,
-0.10783664882183075,
0.19828949868679047,
0.16743716597557068,
0.41723641753196716,
-0.19991709291934967,
0.13034141063690186,
-0.46593549847602844,
0.08042208105325699,
-0.15637390315532684,
-0.15862300992012024,
-0.420212984085083,
-0.06108534336090088,
0.0501154400408268,
0.1049482598900795,
-0.1206999123096466,
0.2867710292339325,
0.13744817674160004,
0.21914315223693848,
-0.3230114281177521,
-0.03613453358411789,
0.3846173882484436,
-0.393894761800766,
-0.38954487442970276,
-0.04438423365354538,
-0.0917498841881752,
-0.2922390401363373,
0.04209331423044205,
-0.5770187377929688,
0.32366621494293213,
0.2290094792842865,
-0.10836388915777206,
-0.30247408151626587,
0.2415040135383606,
0.22412370145320892,
0.11636191606521606,
-0.012449207715690136,
0.3833836317062378,
0.15073566138744354,
-0.1480349749326706,
0.02133392170071602,
-0.15928541123867035
] |
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:

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:

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.14286911487579346,
0.00992770679295063,
-0.049109816551208496,
0.16983135044574738,
-0.0771438479423523,
-0.22699467837810516,
0.30961254239082336,
-0.005992029793560505,
-0.11064036190509796,
0.026588622480630875,
-0.09334689378738403,
-0.10927963256835938,
0.06421422958374023,
0.36415380239486694,
0.2442418485879898,
0.00541168637573719,
-0.07019003480672836,
-0.2135343998670578,
0.19596920907497406,
-0.1101958304643631,
-0.19252415001392365,
0.20733080804347992,
0.00931116659194231,
0.03827822208404541,
-0.18121442198753357,
-0.38389164209365845,
-0.14542025327682495,
-0.040120262652635574,
-0.21061338484287262,
-0.13620148599147797,
-0.09491143375635147,
0.29985859990119934,
-0.045054055750370026,
-0.1357191950082779,
-0.00011016715870937333,
-0.14550209045410156,
0.033763352781534195,
-0.2893485724925995,
0.0777743011713028,
0.07664801180362701,
-0.5392186641693115,
-0.4189271926879883,
-0.21002605557441711,
0.02188207395374775,
-0.13222293555736542,
-0.07039482146501541,
0.039856817573308945,
-0.3876663148403168,
0.015085478313267231,
0.2009892463684082,
0.12435925751924515,
-0.1307045966386795,
-0.0916963443160057,
0.002276759594678879,
0.17241846024990082,
-0.059979379177093506,
-0.07121060788631439,
0.25739040970802307,
0.6603618264198303,
0.11802627891302109,
-0.1897401660680771,
0.4227789044380188,
0.10620705783367157,
-0.22744996845722198,
-0.25127363204956055,
-0.11230503767728806,
0.027575742453336716,
-0.5208722352981567,
-0.030794616788625717,
0.7121627926826477,
0.09441474080085754,
-0.2192554771900177,
-0.37649935483932495,
-0.5085293054580688,
0.23113739490509033,
-0.10601430386304855,
-0.03854455426335335,
0.3316165506839752,
0.13609112799167633,
0.12464279681444168,
0.28133997321128845,
-0.4833073616027832,
-0.06451446563005447,
0.11442984640598297,
0.027216318994760513,
0.3500623404979706,
-0.05177480727434158,
0.15549328923225403,
0.058231327682733536,
0.22054192423820496,
0.09084626287221909,
-0.19148308038711548,
-0.20287953317165375,
-0.15877556800842285,
-0.27377161383628845,
0.023859761655330658,
0.10892162472009659,
0.1924334019422531,
0.2820928692817688,
0.010311910882592201,
0.050496894866228104,
0.26587408781051636,
0.03586002066731453,
0.00920278299599886,
0.09583393484354019,
0.16968533396720886,
0.3132936954498291,
-0.07100833207368851,
0.38933730125427246,
-0.28286319971084595,
0.01755012758076191,
0.07683426141738892,
0.11718373745679855,
-0.04729286953806877,
-0.5885555148124695,
0.19536183774471283,
0.055247463285923004,
-0.13501839339733124,
-0.16497039794921875,
0.018880624324083328,
-0.28450408577919006,
-0.2749778926372528,
0.12502631545066833,
0.047559574246406555,
0.23605862259864807,
0.2134108692407608,
-0.2342139631509781,
0.4277414083480835,
-0.24161110818386078,
-0.7489880919456482,
-0.06786467880010605,
0.1831592172384262,
-0.2963540554046631,
0.06281014531850815,
-0.016166994348168373,
-0.016905931755900383,
-0.08269807696342468,
0.5410317778587341,
-0.10159827768802643,
-0.12300529330968857,
0.3408747613430023,
-0.26847490668296814,
0.07589928805828094,
-0.12129683047533035,
-0.14142146706581116,
0.06615098565816879,
0.05839303135871887,
-0.28842034935951233,
-0.37337398529052734,
-0.04772022366523743,
-0.08557632565498352,
-0.3151538372039795,
0.032720595598220825,
0.12355107069015503,
-0.11830290406942368,
-0.11220627278089523,
0.08219877630472183,
0.9992448091506958,
0.07278279215097427,
0.13426129519939423,
0.25050994753837585,
-0.2038622945547104,
0.01835297793149948,
-0.31035712361335754,
-0.10858239978551865,
0.40243059396743774,
-0.6962327361106873,
-0.061151474714279175,
0.28669315576553345,
-0.1877841353416443,
0.2729087471961975,
0.033571045845746994,
-0.3144291937351227,
0.020432982593774796,
-0.1424882858991623,
0.3152840733528137,
0.3137671947479248,
-0.11941292136907578,
-0.09934008866548538,
0.1415378749370575,
0.006368246860802174,
0.03583954647183418,
0.08384306728839874,
0.13235878944396973,
0.23328623175621033,
0.12014080584049225,
-0.2324824333190918,
0.5208758115768433,
-0.14177018404006958,
-0.16452769935131073,
-0.17183002829551697,
-0.10819518566131592,
0.19246806204319,
0.2677876055240631,
-0.12914031744003296,
-0.2747171223163605,
0.10603637993335724,
-0.2061804234981537,
0.14722377061843872,
-0.28736475110054016,
0.10714806616306305,
0.1919688731431961,
0.04424414783716202,
-0.017857560887932777,
-0.13278138637542725,
0.3083820343017578,
-0.541875958442688,
0.18606753647327423,
-0.10323243588209152,
0.5869050621986389,
0.2990986108779907,
-0.023410871624946594,
0.4260784387588501,
-0.332987904548645,
-0.3582531213760376,
-0.44282588362693787,
0.1009378731250763,
0.2809551954269409,
-0.02954099141061306,
0.13789679110050201,
-0.3276752233505249,
0.7076432108879089,
-0.34529078006744385,
0.002765984507277608,
-0.44797489047050476,
-0.09157560765743256,
0.09301505237817764,
0.022704584524035454,
0.005679170601069927,
0.07617583870887756,
-0.09976430237293243,
-0.3386254906654358,
-0.08590953052043915,
0.1294834166765213,
0.20449218153953552,
0.22545136511325836,
0.17323192954063416,
0.21397064626216888,
0.339040607213974,
0.10386168211698532,
0.2929346561431885,
-0.16644850373268127,
-0.11286260187625885,
-0.18335683643817902,
0.48205289244651794,
0.6298455595970154,
0.2662586271762848,
0.21638917922973633,
-0.10456302016973495,
-0.04033452272415161,
0.24945643544197083,
0.017953643575310707,
-0.41914278268814087,
-0.07032907009124756,
0.3541180491447449,
-0.03644704446196556,
0.6003255248069763,
0.20475074648857117,
-0.6425072550773621,
0.3023061454296112,
0.48267021775245667,
0.0564567856490612,
0.050609033554792404,
-0.11819741874933243,
0.16674049198627472,
0.03303847089409828,
0.2556286156177521,
0.6512218713760376,
0.27417606115341187,
0.24268119037151337,
0.23085620999336243,
-0.09642653167247772,
-0.2540908455848694,
-0.273821622133255,
0.0713033676147461,
-0.19258888065814972,
0.02946615405380726,
0.07070109993219376,
-0.2881259024143219,
-0.24931466579437256,
-0.37923464179039,
0.015770260244607925,
0.047798071056604385,
-0.03972620144486427,
0.0076280636712908745,
-0.05601777508854866,
-0.16284486651420593,
-0.4510362148284912,
-0.3454926311969757,
-0.1865975707769394,
-0.6983678340911865,
-0.10904208570718765,
0.28954219818115234,
-0.6256924271583557,
-0.17462413012981415,
0.32864123582839966,
-0.12450502067804337,
0.1849987953901291,
-0.6705847978591919,
-0.34576937556266785,
0.20054419338703156,
-0.06563468277454376,
-0.4162079691886902,
0.05722580477595329,
0.3163968622684479,
0.10309659689664841,
0.28329744935035706,
-0.0476396419107914,
-0.19456535577774048,
0.014633280225098133,
-0.42404693365097046,
0.20051521062850952,
-0.19810976088047028,
0.11318099498748779,
-0.005403837189078331,
-0.2507763206958771,
-0.08085083961486816,
-0.12780426442623138,
0.18991419672966003,
-0.09780436754226685,
0.0012915340485051274,
-0.16772742569446564,
-0.09493906795978546,
0.1115407943725586,
-0.08653462678194046,
-0.7437152862548828,
-0.5412386059761047,
-0.3228507339954376,
0.11311190575361252,
-0.24102537333965302,
0.14187785983085632,
0.2627953290939331,
-0.05752801150083542,
0.020651759579777718,
-0.020281139761209488,
-0.036293718963861465,
-0.2076791375875473,
-0.29619282484054565,
-0.037475839257240295,
-0.013556250371038914,
-0.18120241165161133,
-0.05144520476460457,
-0.05299590155482292,
0.33284127712249756,
0.39018505811691284,
-0.17268770933151245,
0.16596010327339172,
-0.05918041616678238,
-0.004712794907391071,
0.11480925232172012,
0.15603095293045044,
0.273044615983963,
0.03096882440149784,
0.06315579265356064,
-0.012130375020205975,
-0.029384225606918335,
0.4256522059440613,
0.2989341914653778,
0.0689525455236435,
0.25178036093711853,
0.016834083944559097,
-0.06641043722629547,
0.24451366066932678,
0.32094475626945496,
0.3493475615978241,
0.37372103333473206,
0.08745328336954117,
0.30182918906211853,
-0.10758085548877716,
-0.20197756588459015,
0.43855777382850647,
0.10807076841592789,
-0.0664283037185669,
0.2356899380683899,
0.016151249408721924,
-0.3635130822658539,
-0.22561588883399963,
0.17214080691337585,
0.042355895042419434,
-0.2732735574245453,
0.36777254939079285,
0.025731079280376434,
0.18161554634571075,
-0.16259878873825073,
-0.260458379983902,
0.08853724598884583,
0.20662128925323486,
0.05919153243303299,
-0.04046984389424324,
-0.19299548864364624,
0.29561278223991394,
-0.4144997298717499,
0.06103713810443878,
-0.3991527557373047,
0.23090139031410217,
0.03719300031661987,
0.2656214237213135,
-0.18303991854190826,
0.08459029346704483,
0.132357656955719,
0.1686956137418747,
0.17948907613754272,
-0.7963300943374634,
-0.5081316232681274,
0.2580791413784027,
-0.0412725992500782,
-0.13909074664115906,
-0.08315238356590271,
-0.28833073377609253,
-0.1484970897436142,
0.43310484290122986,
0.044870775192976,
-0.41768425703048706,
-0.22063976526260376,
-0.15830372273921967,
0.37393826246261597,
0.10109305381774902,
0.21047092974185944,
-0.19743923842906952,
-0.17829261720180511,
-0.11701889336109161,
0.26603376865386963,
0.11864777654409409,
-0.11812849342823029,
0.3042870759963989,
0.0779818668961525,
0.041020117700099945,
0.1341981738805771,
0.14565622806549072,
0.17586557567119598,
-0.09067787230014801,
0.08898234367370605,
-0.1730853021144867,
0.004339022561907768,
0.07711971551179886,
0.11291349679231644,
0.3774051368236542,
-0.1973866969347,
-0.1878218799829483,
0.04583137482404709,
-0.19843536615371704,
0.4541034400463104,
0.3063158392906189,
0.3032432794570923,
0.06272247433662415,
-0.13676577806472778,
-0.18358050286769867,
-0.1374141126871109,
0.19510702788829803,
0.046461593359708786,
0.30574464797973633,
-0.4203999936580658,
-0.4959651231765747,
0.006267919670790434,
0.21726830303668976,
-0.11606789380311966,
0.6183972358703613,
0.18203666806221008,
-0.36379650235176086,
0.023938313126564026,
0.12600743770599365,
0.9849288463592529,
0.047690801322460175,
-0.07397228479385376,
0.08279076963663101,
-0.335500568151474,
0.23961830139160156,
-0.33811601996421814,
0.2396823763847351,
-0.3148292899131775,
-0.26353421807289124,
-0.05135214701294899,
-0.08749242126941681,
0.3884126543998718,
0.2145519256591797,
-0.148576021194458,
0.1712997853755951,
0.20194774866104126,
0.004249606281518936,
-0.16190718114376068,
0.41231298446655273,
-0.2519995868206024,
-0.22260794043540955,
0.05431148409843445,
0.07945497334003448,
-0.07435547560453415,
-0.10059096664190292,
-0.021240372210741043,
-0.07438894361257553,
-0.08818181604146957,
0.08434183150529861,
-0.13923414051532745,
0.0377073660492897,
-0.5448746681213379,
0.003532896749675274,
-0.3147049844264984,
-0.41528913378715515,
0.14371316134929657,
0.17525321245193481,
0.08471812307834625,
-0.2490740418434143,
0.21430549025535583,
0.05548117682337761,
0.029829883947968483,
0.08606620877981186,
0.25076818466186523,
-0.30001547932624817,
0.31302452087402344,
-0.05054345726966858,
-0.33601459860801697,
-0.0765104591846466,
-0.10379702597856522,
-0.02913612686097622,
-0.4604719281196594,
-0.0021134039852768183,
-0.08900164812803268,
-0.0638960748910904,
0.04741097614169121,
0.5011908411979675,
0.21375924348831177,
-0.1229202002286911,
0.08539827913045883,
0.13098858296871185,
-0.009330587461590767,
0.26786839962005615,
-0.3505832850933075,
-0.18706579506397247,
-0.4241064786911011,
-0.3487687408924103,
0.13486149907112122,
0.22353114187717438,
-0.13191039860248566,
0.07991961389780045,
-0.08167009800672531,
-0.19656042754650116,
0.40118423104286194,
0.5465694665908813,
-0.08794735372066498,
-0.24514634907245636,
0.04010363295674324,
-0.34376782178878784,
-0.11856558173894882,
-0.04624393954873085,
0.09614380449056625,
0.26711300015449524,
0.2269534468650818,
-0.10935685783624649,
-0.12208493798971176,
0.2045992612838745,
0.056042030453681946,
0.158621683716774,
-0.17168480157852173,
-0.23045164346694946,
0.29598620533943176,
0.2857680916786194,
-0.2842213213443756,
-0.1052115187048912,
-0.05744672566652298,
0.08149110525846481,
0.03227550908923149,
0.13590314984321594,
-0.009027606807649136,
0.2274610698223114,
0.03981667757034302,
-0.24990852177143097,
-0.27179500460624695,
-0.05147137865424156,
-0.08159936964511871,
0.10589942336082458,
0.16973784565925598,
0.17160551249980927,
0.3742366433143616,
-0.22495728731155396,
-0.08802256733179092,
-0.07709313184022903,
0.30859097838401794,
0.1879904717206955,
-0.027525363489985466,
0.1648971289396286,
-0.11117177456617355,
0.0813964307308197,
-0.0637393370270729,
0.21703335642814636,
0.12642475962638855,
-0.03275536745786667,
0.4839586317539215,
0.07602167129516602,
0.11102963984012604,
-0.1519165337085724,
0.032654453068971634,
0.23939749598503113,
-0.07143866270780563,
0.07023274898529053,
-0.4901867210865021,
0.10667870193719864,
0.2584303617477417,
0.3129652738571167,
0.21991591155529022,
0.32367777824401855,
-0.10631973296403885,
0.13657602667808533,
0.28146684169769287,
0.14942379295825958,
-0.21722640097141266,
0.008129219524562359,
0.4324057996273041,
-0.11418521404266357,
0.18931922316551208,
0.6332740187644958,
0.5160235166549683,
0.06385288387537003,
0.3735549747943878,
-0.3664916753768921,
0.019551580771803856,
-0.15801256895065308,
0.2876553535461426,
0.1989526003599167,
-0.34357208013534546,
-0.008346757851541042,
0.46738001704216003,
0.26085805892944336,
0.013172903098165989,
-0.020451491698622704,
-0.37029004096984863,
0.16840040683746338,
0.47484052181243896,
0.20195390284061432,
0.0955994576215744,
-0.14172326028347015,
-0.046293605118989944,
0.4105335474014282,
-0.06888103485107422,
-0.12183237820863724,
-0.07682248950004578,
0.21285566687583923,
-0.18704009056091309,
-0.28480958938598633,
0.25313547253608704,
0.11095018684864044,
-0.26463213562965393,
0.11398428678512573,
-0.03290720656514168,
-0.08486951142549515,
-0.2566359043121338,
0.13822121918201447,
0.0882047638297081,
-0.3035602867603302,
0.34805190563201904,
0.2333996295928955,
0.10015425086021423,
-0.1707012951374054,
0.19401073455810547,
-0.20318466424942017,
0.024338826537132263,
-0.12414582073688507,
0.41890159249305725,
-0.19699051976203918,
0.020934296771883965,
0.02483026497066021,
0.3182601034641266,
0.05324780195951462,
-0.007085259538143873,
0.030549125745892525,
0.26667940616607666,
0.05928221344947815,
0.21320515871047974,
-0.02386494167149067,
0.2628643810749054,
0.26464375853538513,
0.17756739258766174,
0.3684820532798767,
-0.01952514238655567,
-0.0437360517680645,
-0.22752772271633148,
0.19633404910564423,
-0.2719418704509735,
-0.08887332677841187,
0.06412193179130554,
0.027378395199775696,
0.027481360360980034,
-0.19047626852989197,
0.1537703275680542,
-0.24457137286663055,
0.08256800472736359,
0.31908032298088074,
-0.13345228135585785,
-0.057556960731744766,
0.014463797211647034,
0.07648332417011261,
-0.053536951541900635,
0.036479003727436066,
-0.13694104552268982,
0.10688097029924393,
-0.2773878872394562,
-0.3973073363304138,
-0.5407936573028564,
0.04737936332821846,
-0.07312992960214615,
-0.14287510514259338,
-0.2532851994037628,
0.12215866148471832,
0.4480465054512024,
0.2421812266111374,
-0.022599520161747932,
0.30971893668174744,
0.24430540204048157,
0.001736676786094904,
-0.3667009472846985,
0.20644903182983398,
0.09317515045404434,
0.3003849685192108,
-0.00711289094761014,
0.08219591528177261,
-0.012171885930001736,
0.27776482701301575,
-0.07543870061635971,
-0.01773139461874962,
-0.01723536103963852,
0.18831782042980194,
-0.00815952755510807,
0.31895533204078674,
0.16566301882266998,
0.27532923221588135,
-0.012037551961839199,
-0.03352368623018265,
-0.20903417468070984,
-0.0022411977406591177,
-0.4333561062812805,
0.426646888256073,
-0.04406425729393959,
0.1827375590801239,
-0.21220162510871887,
-0.16234660148620605,
-0.26307666301727295,
0.16727957129478455,
0.07982896268367767,
0.26750051975250244,
-0.024420980364084244,
0.30989593267440796,
0.359069287776947,
-0.012730912305414677,
0.06311333179473877,
0.3329378366470337,
0.20442873239517212,
-0.12867149710655212,
-0.14210447669029236,
-0.1900203675031662,
-0.021414807066321373,
0.35130560398101807,
0.043311212211847305,
0.03501815348863602,
0.14875473082065582,
0.40338751673698425,
0.1723923534154892,
-0.5031594634056091,
0.018269164487719536,
0.1999260038137436,
-0.14168106019496918,
-0.09279025346040726,
0.286226749420166,
0.1462649703025818,
-0.31394773721694946,
-0.05725788325071335,
-0.16174189746379852,
0.0820259153842926,
-0.19107571244239807,
0.169711172580719,
-0.1253717541694641
] |
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.40260088443756104,
-0.09584981948137283,
-0.10031998157501221,
-0.14071550965309143,
-0.14861802756786346,
-0.13475021719932556,
0.26579585671424866,
0.31443363428115845,
0.013364204205572605,
0.18667294085025787,
-0.1717517375946045,
0.08897808194160461,
-0.063442163169384,
0.34141668677330017,
0.33621102571487427,
-0.04891267046332359,
-0.07187274843454361,
0.10335119813680649,
0.21110078692436218,
-0.05167628824710846,
-0.06870237737894058,
0.26747921109199524,
0.07626430690288544,
0.18084409832954407,
-0.17072007060050964,
-0.39642754197120667,
-0.006960668601095676,
0.1819523423910141,
-0.08638238161802292,
-0.3037914037704468,
-0.06486952304840088,
0.23611657321453094,
-0.2647857964038849,
0.2227277159690857,
-0.00010219525574939325,
0.018640056252479553,
0.062097351998090744,
-0.12187805026769638,
0.09508585184812546,
-0.09297605603933334,
-0.2374880313873291,
-0.23173534870147705,
-0.06987279653549194,
-0.0005478814127855003,
-0.3907124698162079,
0.13908472657203674,
-0.008609180338680744,
-0.3298977017402649,
0.3266136944293976,
0.34454429149627686,
0.23716184496879578,
0.17902903258800507,
-0.1479174643754959,
-0.16079001128673553,
0.22580842673778534,
-0.05670502781867981,
-0.09425675868988037,
0.11173105984926224,
0.4271666407585144,
0.11568694561719894,
-0.23368172347545624,
0.48103439807891846,
0.37606003880500793,
-0.12398678064346313,
-0.1967465877532959,
-0.06983504444360733,
0.11622389405965805,
-0.23557452857494354,
-0.22294917702674866,
0.6634973883628845,
-0.09002010524272919,
-0.18455445766448975,
-0.4045479893684387,
-0.17732031643390656,
-0.03880917280912399,
-0.29914557933807373,
0.10578510910272598,
0.2563796937465668,
-0.15728585422039032,
0.09808219969272614,
0.20953553915023804,
-0.5304242968559265,
-0.1012645810842514,
-0.006821564864367247,
-0.17445208132266998,
0.5518786311149597,
0.012646490707993507,
-0.03350279480218887,
0.16987822949886322,
0.06893803924322128,
-0.11116492003202438,
-0.03332474082708359,
-0.10568587481975555,
-0.12998326122760773,
-0.3020144999027252,
-0.15657474100589752,
-0.030632618814706802,
0.14551082253456116,
0.11339478939771652,
0.0860128253698349,
0.10054899752140045,
0.218204066157341,
0.12894567847251892,
0.1670175939798355,
-0.18576830625534058,
0.05595526844263077,
0.21648521721363068,
0.019335051998496056,
0.2798148989677429,
-0.16694429516792297,
-0.18728886544704437,
0.040467869490385056,
0.1680813878774643,
-0.07446438819169998,
-0.43833020329475403,
-0.011865048669278622,
-0.1712931990623474,
-0.17811636626720428,
-0.33143356442451477,
0.024797558784484863,
-0.006888091564178467,
-0.14362667500972748,
0.209206685423851,
0.27930015325546265,
0.022449780255556107,
-0.14788199961185455,
-0.19341987371444702,
0.16450518369674683,
-0.2525927424430847,
-0.3452320694923401,
-0.1880887746810913,
0.42691007256507874,
-0.295126736164093,
-0.04946456104516983,
0.02863624505698681,
-0.08682442456483841,
0.12081153690814972,
0.04713648557662964,
-0.19098526239395142,
0.08831959217786789,
0.3627954125404358,
-0.0257855337113142,
0.0616963766515255,
0.18487980961799622,
0.015541965141892433,
-0.10874154418706894,
0.034966982901096344,
-0.18320393562316895,
-0.3418174386024475,
-0.22025053203105927,
0.0020330646075308323,
-0.2498939484357834,
-0.20683231949806213,
0.25936374068260193,
-0.19272178411483765,
-0.10976946353912354,
0.5019009113311768,
0.747704029083252,
-0.1138683408498764,
-0.3097316324710846,
0.010349388234317303,
0.07223022729158401,
-0.15513291954994202,
-0.17812888324260712,
0.1423405110836029,
0.23481959104537964,
-0.7939332127571106,
-0.41511425375938416,
-0.11498100310564041,
-0.37403860688209534,
0.23204028606414795,
0.030662942677736282,
-0.17460262775421143,
-0.1790688931941986,
-0.0676402896642685,
0.5377994179725647,
0.47893109917640686,
-0.032639507204294205,
-0.15062503516674042,
0.19688844680786133,
-0.32117408514022827,
-0.024689195677638054,
0.3203321397304535,
0.10187500715255737,
0.04025121405720711,
-0.00753201637417078,
-0.10992486774921417,
0.5292526483535767,
-0.36764049530029297,
-0.3368198275566101,
-0.24373219907283783,
0.02492876723408699,
0.3988683521747589,
0.16694612801074982,
0.2497589886188507,
-0.3429689407348633,
0.18502578139305115,
0.007181776687502861,
0.07687714695930481,
-0.21352103352546692,
0.05291805416345596,
0.11746613681316376,
0.33166295289993286,
-0.14163550734519958,
-0.19055549800395966,
-0.17985765635967255,
-0.1615658700466156,
0.02338646538555622,
-0.4569208323955536,
0.33564117550849915,
0.2027999460697174,
-0.17934179306030273,
-0.07732381671667099,
-0.24384163320064545,
-0.2253040373325348,
-0.25633421540260315,
0.2326023280620575,
0.2952127158641815,
0.12883132696151733,
0.13285847008228302,
-0.1517305225133896,
0.3488110601902008,
-0.2325497269630432,
0.1285136491060257,
-0.33628255128860474,
0.13964037597179413,
-0.11866831034421921,
-0.18511980772018433,
-0.1478702574968338,
0.13600113987922668,
-0.19486156105995178,
-0.2928484082221985,
0.01580398716032505,
0.43034589290618896,
0.1253078430891037,
-0.02319980412721634,
0.22714611887931824,
0.09175039082765579,
0.29115068912506104,
-0.03360125795006752,
0.11742711812257767,
-0.08365065604448318,
-0.08121056109666824,
0.07726659625768661,
-0.06432606279850006,
0.588688850402832,
0.23943229019641876,
-0.1911153346300125,
0.18927720189094543,
0.020203102380037308,
0.3595639169216156,
-0.17961528897285461,
-0.11547308415174484,
-0.2785170078277588,
0.32847562432289124,
-0.06798270344734192,
0.16048680245876312,
0.11145135760307312,
-0.47906655073165894,
-0.009428567253053188,
0.48594507575035095,
0.05908724293112755,
0.36488112807273865,
-0.023729784414172173,
0.12976086139678955,
-0.10837385058403015,
0.06822094321250916,
0.431547611951828,
0.10738365352153778,
0.28487133979797363,
0.2683020830154419,
-0.03288794308900833,
-0.3775157332420349,
-0.2526908218860626,
0.18847322463989258,
-0.1644175946712494,
-0.021105550229549408,
0.23145847022533417,
-0.17869755625724792,
-0.43380430340766907,
-0.46702131628990173,
-0.10328563302755356,
0.27454107999801636,
-0.048777416348457336,
-0.14096343517303467,
-0.15027832984924316,
-0.19975854456424713,
-0.21322040259838104,
-0.3502655625343323,
-0.09713371098041534,
-0.3460003435611725,
-0.18677866458892822,
0.5182226896286011,
-0.2924458980560303,
-0.1760045886039734,
0.3785412013530731,
-0.15981267392635345,
0.3075079321861267,
-0.20443466305732727,
-0.043886881321668625,
0.00403777789324522,
-0.09859717637300491,
-0.32832568883895874,
0.2513148784637451,
0.19084513187408447,
0.22587932646274567,
0.3649791479110718,
-0.07438807189464569,
0.09864983707666397,
0.07160033285617828,
-0.7308646440505981,
0.16247841715812683,
-0.1577548235654831,
0.2988201677799225,
0.12679864466190338,
-0.11827965080738068,
0.11313240975141525,
-0.2868730127811432,
0.2103506624698639,
-0.24080543220043182,
-0.19706374406814575,
0.07926083356142044,
-0.04071640968322754,
0.03910677134990692,
-0.20711170136928558,
-0.808250367641449,
-0.4853227436542511,
-0.35896819829940796,
-0.1158561110496521,
-0.15790671110153198,
0.11482768505811691,
0.10021369904279709,
0.07310665398836136,
0.1114850863814354,
-0.2805961072444916,
0.007613358087837696,
-0.1510392129421234,
-0.12340749800205231,
0.11636947840452194,
-0.20145907998085022,
-0.1243722140789032,
-0.07869385182857513,
-0.2079157829284668,
0.158191978931427,
0.08770978450775146,
-0.12865908443927765,
-0.03068879246711731,
-0.039045222103595734,
0.12437088042497635,
0.4112744629383087,
-0.013958978466689587,
0.3051304519176483,
-0.027630457654595375,
-0.18607482314109802,
-0.20514662563800812,
-0.004455312620848417,
0.3356560170650482,
0.032270923256874084,
0.19742746651172638,
-0.12032492458820343,
0.3349352478981018,
0.1339777112007141,
0.30589497089385986,
-0.08274499326944351,
-0.03483884409070015,
0.3734642565250397,
0.006159111391752958,
0.17807868123054504,
-0.03714293614029884,
-0.12990820407867432,
0.22219233214855194,
0.04007444530725479,
0.1338748186826706,
0.1958668977022171,
-0.040321774780750275,
-0.3794880211353302,
-0.06361690908670425,
0.05081306770443916,
0.014222449623048306,
-0.2456771284341812,
0.27673813700675964,
-0.06906700134277344,
0.23304134607315063,
-0.06479596346616745,
-0.29579392075538635,
0.04681398347020149,
0.07907857745885849,
0.0880560502409935,
0.021655600517988205,
-0.07713847607374191,
-0.06550402194261551,
-0.6089605689048767,
0.09056231379508972,
-0.06173546612262726,
0.3322025239467621,
0.21503424644470215,
0.23621678352355957,
-0.3545500934123993,
-0.21370595693588257,
0.0067056878469884396,
-0.004526596050709486,
0.4245505630970001,
-0.6387295126914978,
-0.3257995843887329,
0.12511661648750305,
-0.17916132509708405,
-0.17541146278381348,
-0.0034702797420322895,
-0.4442124664783478,
-0.22532036900520325,
0.4683685004711151,
0.14491677284240723,
-0.3436182141304016,
-0.27659112215042114,
0.18270647525787354,
0.09707066416740417,
-0.20054440200328827,
0.24656178057193756,
-0.1700361967086792,
-0.08716131001710892,
-0.2539561986923218,
0.42575782537460327,
-0.16590075194835663,
0.06222051382064819,
0.28317728638648987,
-0.11509976536035538,
0.06467213481664658,
-0.03970156982541084,
0.31009992957115173,
0.40985509753227234,
-0.024995358660817146,
0.08887647092342377,
-0.17913591861724854,
-0.07129573822021484,
0.1417745053768158,
-0.1259770691394806,
0.2017909437417984,
-0.27624520659446716,
-0.026171933859586716,
0.10006058216094971,
-0.23199911415576935,
0.3551783859729767,
0.3125635087490082,
0.12800373136997223,
0.3205570578575134,
0.04945070296525955,
-0.052153732627630234,
-0.08422336727380753,
0.44970324635505676,
0.015880528837442398,
0.2580983340740204,
-0.3180539309978485,
-0.33378440141677856,
-0.066165491938591,
0.22856511175632477,
-0.21079540252685547,
0.2800613343715668,
0.2676204442977905,
-0.23181456327438354,
0.18746912479400635,
0.10281956940889359,
0.9224633574485779,
0.05987050011754036,
-0.12005073577165604,
0.13583239912986755,
-0.19689033925533295,
0.11866883188486099,
-0.3971567153930664,
0.11305466294288635,
-0.2436854988336563,
-0.3141521215438843,
-0.1351846158504486,
0.005596795119345188,
0.45623937249183655,
0.187872514128685,
-0.2996571660041809,
0.21482717990875244,
0.13586843013763428,
-0.0031979975756257772,
-0.07462611794471741,
0.34809187054634094,
-0.11921418458223343,
-0.1294187754392624,
-0.03603009507060051,
0.1912572681903839,
0.004481974523514509,
-0.131333127617836,
0.0667046457529068,
-0.1764063686132431,
0.03293606638908386,
-0.069904625415802,
-0.10382039099931717,
0.04134827107191086,
-0.1775311827659607,
0.11770492047071457,
-0.0536806583404541,
-0.18441814184188843,
0.1092243641614914,
-0.06904080510139465,
0.138046994805336,
0.1580832302570343,
0.12002537399530411,
0.2941996157169342,
-0.07625056803226471,
0.14710171520709991,
0.1365595906972885,
-0.14271196722984314,
0.6267644762992859,
-0.1289558708667755,
-0.30696696043014526,
0.20949102938175201,
0.0562661811709404,
-0.17527268826961517,
-0.1619960516691208,
-0.04754118621349335,
0.0762055516242981,
-0.244370698928833,
-0.005642355885356665,
0.22925838828086853,
0.013497678562998772,
-0.42747244238853455,
0.20061489939689636,
0.061440445482730865,
-0.4205585718154907,
0.15200620889663696,
0.017350174486637115,
-0.16538657248020172,
-0.2778964340686798,
-0.25562694668769836,
0.1216321662068367,
0.31934472918510437,
0.04481014236807823,
0.09028123319149017,
-0.06826439499855042,
-0.368065744638443,
0.0006734709604643285,
0.7876306176185608,
-0.3748196065425873,
0.13253431022167206,
-0.06872957199811935,
-0.5916547775268555,
0.07739593088626862,
0.03151959180831909,
0.3649032711982727,
0.32133445143699646,
-0.051235444843769073,
-0.19565041363239288,
-0.038120292127132416,
0.07582154124975204,
0.07195775955915451,
0.40788599848747253,
-0.0805041715502739,
0.06829887628555298,
-0.027434082701802254,
0.45703044533729553,
-0.45966199040412903,
-0.11922510713338852,
-0.33721399307250977,
0.23454837501049042,
-0.26148170232772827,
0.04344768077135086,
0.09876071661710739,
0.1737751066684723,
0.22004756331443787,
-0.09755289554595947,
-0.21033760905265808,
-0.2379671186208725,
-0.1600090116262436,
0.06578361243009567,
-0.12055940926074982,
0.20124289393424988,
0.20700004696846008,
0.18689633905887604,
0.08337758481502533,
0.013190857134759426,
0.3018626570701599,
-0.2768760621547699,
-0.02087084949016571,
0.1772521585226059,
0.08104828000068665,
-0.2472323179244995,
0.10711672157049179,
-0.04072180017828941,
-0.08928749710321426,
-0.002147439867258072,
0.21328257024288177,
0.14960208535194397,
0.04039592668414116,
-0.1936972737312317,
-0.016337867826223373,
0.2318391650915146,
0.167938694357872,
-0.03427177295088768,
-0.3017490804195404,
0.09242308884859085,
0.013381128199398518,
0.09276583790779114,
0.36540907621383667,
0.15594331920146942,
0.04386681690812111,
0.20866672694683075,
0.2636062502861023,
0.34189891815185547,
-0.339811235666275,
-0.043732043355703354,
0.5402926802635193,
-0.16363991796970367,
0.4729086458683014,
0.3172203600406647,
0.3986678421497345,
0.43659207224845886,
0.3079836666584015,
-0.1262671947479248,
-0.0659620463848114,
-0.07542116194963455,
0.2586030066013336,
0.4109567403793335,
-0.08998970687389374,
0.0364704392850399,
0.42878255248069763,
-0.03084527514874935,
0.07108152657747269,
0.188633531332016,
0.011957577429711819,
0.4845590889453888,
0.17632311582565308,
0.37004905939102173,
0.19309404492378235,
-0.14337746798992157,
0.030143918469548225,
0.10229618102312088,
-0.025809990242123604,
0.17542599141597748,
0.08620887994766235,
0.22754012048244476,
-0.11408749967813492,
-0.2702919840812683,
-0.08591677993535995,
0.27361807227134705,
-0.13587448000907898,
-0.16789701581001282,
-0.28522101044654846,
-0.22451478242874146,
-0.2584623098373413,
0.11921222507953644,
0.3195641040802002,
-0.06345836818218231,
0.17012101411819458,
0.16031205654144287,
0.15906588733196259,
-0.0753977820277214,
0.2455548793077469,
-0.033656731247901917,
-0.029722783714532852,
-0.3305518925189972,
0.3696352541446686,
0.14340221881866455,
-0.08547616004943848,
0.07715249806642532,
0.07527375966310501,
0.1206655353307724,
-0.26899319887161255,
-0.0746617242693901,
0.1485329568386078,
-0.05471724271774292,
-0.05435580015182495,
-0.10389502346515656,
0.23987944424152374,
0.2367776781320572,
0.4322725832462311,
0.3460184633731842,
0.19751174747943878,
-0.22119921445846558,
0.08327371627092361,
0.1107620820403099,
-0.1613854616880417,
-0.1416667103767395,
0.24338193237781525,
0.18831610679626465,
0.23905189335346222,
-0.4731656610965729,
0.03508443757891655,
-0.4495851397514343,
0.09037616848945618,
0.3246404528617859,
-0.2897537052631378,
-0.0027567746583372355,
-0.08983137458562851,
0.11256255209445953,
0.12932507693767548,
0.31422165036201477,
-0.12940649688243866,
0.05167422816157341,
-0.15914343297481537,
-0.20199699699878693,
-0.4413149952888489,
0.05473094433546066,
-0.04038408398628235,
-0.1835624873638153,
-0.2636706531047821,
0.30459165573120117,
0.27837929129600525,
0.036891303956508636,
-0.18251332640647888,
0.13890008628368378,
0.034668996930122375,
0.021656420081853867,
-0.39719218015670776,
0.2674289047718048,
0.038319893181324005,
0.26218634843826294,
0.051125962287187576,
-0.04875943437218666,
-0.03009192831814289,
-0.021344192326068878,
0.06241818517446518,
0.0825682058930397,
-0.2733350098133087,
0.3914414942264557,
-0.03974505513906479,
0.19814008474349976,
0.04420661926269531,
0.5657783150672913,
-0.14865665137767792,
0.08340524882078171,
-0.13700400292873383,
-0.06432507187128067,
-0.4202282130718231,
0.13419483602046967,
0.24242626130580902,
0.5128123760223389,
0.11956749111413956,
-0.17672781646251678,
-0.12908658385276794,
0.3237067461013794,
0.12421882152557373,
0.02615005522966385,
0.0069244736805558205,
0.2358243465423584,
0.21079054474830627,
-0.16030430793762207,
0.34130826592445374,
0.5047712326049805,
0.14590100944042206,
-0.10166168212890625,
0.08467650413513184,
-0.39177143573760986,
0.15129844844341278,
0.04467768967151642,
-0.09466957300901413,
-0.12555751204490662,
0.04338980093598366,
0.3962927460670471,
0.01488672848790884,
-0.4677683115005493,
-0.1340257227420807,
0.14491504430770874,
-0.03995770588517189,
-0.027734076604247093,
0.20853553712368011,
0.43236055970191956,
-0.011717318557202816,
-0.05924508720636368,
-0.3107561767101288,
0.13720454275608063,
-0.22013475000858307,
-0.010234078392386436,
-0.2752772271633148
] |
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.030935458838939667,
-0.015745114535093307,
-0.1258901208639145,
-0.10052040219306946,
-0.15791164338588715,
-0.17087559401988983,
0.5267764329910278,
0.005605506710708141,
0.02387300878763199,
0.09561331570148468,
-0.07178369164466858,
0.004014931619167328,
-0.029219727963209152,
0.26419690251350403,
0.469639390707016,
-0.006495967041701078,
0.017922939732670784,
-0.09274289011955261,
0.10552381724119186,
-0.031187422573566437,
-0.22556693851947784,
0.04087643697857857,
0.19348862767219543,
0.12810346484184265,
-0.13080868124961853,
-0.22625227272510529,
-0.18155227601528168,
0.0034790635108947754,
-0.1671007126569748,
-0.19847646355628967,
-0.1351337879896164,
0.12721793353557587,
-0.21738682687282562,
0.049854084849357605,
-0.00010464782099006698,
-0.08203506469726562,
0.12162681668996811,
-0.041464708745479584,
0.3431466221809387,
0.09873893111944199,
-0.2769547700881958,
-0.5269670486450195,
-0.3578154146671295,
-0.26532232761383057,
-0.016458505764603615,
-0.15029005706310272,
-0.01983349584043026,
-0.5409761667251587,
-0.22309309244155884,
-0.08313480019569397,
0.2834675908088684,
0.011547782458364964,
-0.01389725599437952,
-0.0006387894973158836,
0.3840332329273224,
-0.2163020372390747,
-0.10170385986566544,
0.3516218662261963,
0.6787545680999756,
0.1997825801372528,
-0.06225632131099701,
0.5023944973945618,
0.1719842404127121,
-0.36394068598747253,
-0.15549121797084808,
0.15484941005706787,
-0.015756675973534584,
-0.1777895987033844,
0.004458099603652954,
0.48878371715545654,
0.1732272058725357,
-0.2198898196220398,
-0.5166099071502686,
-0.1510898768901825,
-0.02566414326429367,
0.1456085443496704,
-0.1370282769203186,
0.36637893319129944,
0.3165972828865051,
0.06044548749923706,
0.30060091614723206,
-0.5922684669494629,
-0.04748830944299698,
0.02956547401845455,
-0.011481713503599167,
0.3938576281070709,
-0.01928945630788803,
0.22025814652442932,
-0.0696592777967453,
0.15654027462005615,
0.04422444850206375,
-0.045359574258327484,
-0.2047823667526245,
-0.14754432439804077,
-0.04272399842739105,
-0.002703925361856818,
0.06097003072500229,
0.22283713519573212,
0.23478040099143982,
-0.216790109872818,
0.1660679578781128,
0.11596935242414474,
-0.13669775426387787,
0.13650067150592804,
0.04840739816427231,
-0.06705787777900696,
0.11844401806592941,
-0.12176991254091263,
0.18721036612987518,
-0.47787347435951233,
0.12596912682056427,
-0.005606716964393854,
0.1264989823102951,
-0.016919447109103203,
-0.252439022064209,
0.07580588012933731,
-0.1182871088385582,
-0.168762668967247,
-0.14063049852848053,
0.015983659774065018,
-0.1670648753643036,
-0.2575620412826538,
-0.1345190405845642,
0.15220195055007935,
0.11741255968809128,
0.031453318893909454,
-0.027404319494962692,
0.3192719519138336,
-0.00300294766202569,
-0.2601379454135895,
-0.018207315355539322,
0.45555588603019714,
-0.3091599643230438,
-0.027530021965503693,
-0.114848792552948,
0.007408919744193554,
-0.22643324732780457,
0.18292775750160217,
0.1247551217675209,
-0.029665717855095863,
0.2931872606277466,
-0.09924114495515823,
0.19601939618587494,
-0.27194005250930786,
0.07919090986251831,
0.1489204615354538,
-0.06739765405654907,
-0.19746147096157074,
-0.3425368666648865,
0.1498022973537445,
-0.0699458047747612,
-0.009268450550734997,
-0.45323440432548523,
0.1946403682231903,
-0.03170178458094597,
-0.3639160692691803,
0.23360782861709595,
0.6543383002281189,
0.02682521566748619,
-0.15717771649360657,
0.3393571078777313,
0.10946959257125854,
-0.16711515188217163,
-0.3618362247943878,
-0.11149965226650238,
0.15971031785011292,
-0.58148193359375,
-0.20364037156105042,
0.15482737123966217,
-0.10975974053144455,
0.22207298874855042,
0.09835895895957947,
-0.3220049738883972,
0.024871813133358955,
-0.17048732936382294,
0.4339234232902527,
0.22533226013183594,
-0.3000764846801758,
-0.14073264598846436,
0.02665851078927517,
-0.30583706498146057,
-0.0017784031806513667,
0.3271746337413788,
0.2802768349647522,
0.03646787628531456,
-0.04360346868634224,
0.0005732718273065984,
0.28965699672698975,
-0.1517331898212433,
0.005579157266765833,
-0.28499361872673035,
-0.23720470070838928,
0.38214531540870667,
0.17928266525268555,
0.09551312029361725,
-0.22975081205368042,
0.43160155415534973,
-0.02392086759209633,
0.10886853188276291,
-0.4153651297092438,
0.14522309601306915,
0.007380237337201834,
0.3876378834247589,
-0.1258905678987503,
-0.2548121511936188,
-0.11639758199453354,
-0.1892571896314621,
0.14940808713436127,
-0.1739998161792755,
0.38788047432899475,
0.23928715288639069,
-0.35969841480255127,
0.10902146995067596,
-0.30479878187179565,
-0.0997588261961937,
-0.2800358831882477,
0.2225361168384552,
0.2846927046775818,
0.05059896409511566,
0.23572790622711182,
-0.1798369437456131,
0.5148310661315918,
-0.0650087296962738,
-0.2156124860048294,
-0.2844981253147125,
0.2719516456127167,
0.06155717745423317,
0.016640037298202515,
-0.3019692003726959,
0.35404279828071594,
-0.26737329363822937,
-0.17142903804779053,
0.22492080926895142,
0.20038741827011108,
-0.2806518077850342,
0.2007850855588913,
0.3705328404903412,
0.21344003081321716,
0.3387431204319,
-0.0368192121386528,
0.4451642632484436,
-0.29902008175849915,
-0.0064353346824646,
-0.05074167624115944,
0.26290610432624817,
0.5275495648384094,
0.3378443717956543,
-0.020177602767944336,
0.06356308609247208,
-0.08398846536874771,
0.17850394546985626,
-0.06659889221191406,
-0.25126028060913086,
-0.1478613317012787,
0.21859106421470642,
0.18338261544704437,
0.35038235783576965,
-0.014736196957528591,
-0.5163175463676453,
0.3014978766441345,
0.6254870891571045,
-0.029241865500807762,
0.38950949907302856,
-0.0920935720205307,
0.019296083599328995,
0.022982822731137276,
0.051235586404800415,
0.350286602973938,
0.24379146099090576,
0.3249133229255676,
0.23954081535339355,
-0.12209741771221161,
-0.02304776944220066,
-0.08754042536020279,
-0.009318843483924866,
-0.22092865407466888,
-0.09160025417804718,
0.16587692499160767,
0.0760679766535759,
-0.15493765473365784,
-0.5849466323852539,
0.0798439309000969,
0.02613828331232071,
-0.3220536708831787,
0.048566434532403946,
-0.08018231391906738,
0.06100735440850258,
-0.375774621963501,
-0.42899248003959656,
-0.2512628734111786,
-0.3670116066932678,
-0.10116275399923325,
0.24500669538974762,
-0.5446117520332336,
-0.11562027782201767,
0.08391733467578888,
0.13575883209705353,
0.2886964678764343,
-0.4931298792362213,
-0.08885792642831802,
0.07178359478712082,
0.05216417834162712,
-0.12083317339420319,
0.21504324674606323,
0.06494693458080292,
0.0613449327647686,
0.6506128907203674,
-0.029760712757706642,
0.213144913315773,
-0.35294488072395325,
-0.596031665802002,
0.09576631337404251,
-0.2590045630931854,
0.02481876313686371,
0.10242453217506409,
-0.4434504210948944,
0.04658185690641403,
-0.13951623439788818,
0.26097965240478516,
-0.2049950510263443,
-0.015106702223420143,
-0.23052991926670074,
-0.09535255283117294,
0.0693264901638031,
-0.1832612305879593,
-0.43599480390548706,
-0.646816074848175,
-0.34349924325942993,
0.2010112851858139,
-0.08077631145715714,
0.07853517681360245,
-0.22436396777629852,
-0.19368894398212433,
0.20316404104232788,
-0.10496208071708679,
-0.15067072212696075,
-0.3018169701099396,
-0.24556313455104828,
0.00021354496129788458,
-0.1281709223985672,
-0.29570093750953674,
-0.11564712971448898,
-0.09069850295782089,
0.18208308517932892,
0.11909155547618866,
-0.1470334827899933,
-0.08063055574893951,
-0.06694065779447556,
0.02938942052423954,
0.2819399833679199,
0.4289916753768921,
0.21101000905036926,
-0.03709021583199501,
-0.15182705223560333,
-0.14138254523277283,
-0.03878118470311165,
0.08773671835660934,
0.1865488886833191,
-0.07847766578197479,
0.11156775057315826,
0.1964418739080429,
0.25498467683792114,
0.09819839149713516,
-0.009435299783945084,
0.07131900638341904,
0.4470979869365692,
-0.031126471236348152,
0.39838215708732605,
-0.23279690742492676,
-0.33130770921707153,
0.2287493646144867,
-0.1843131184577942,
0.16174817085266113,
0.12895739078521729,
0.08061777800321579,
-0.4328383207321167,
-0.13196295499801636,
0.12407218664884567,
-0.21550333499908447,
-0.12298926711082458,
0.2715334892272949,
0.12188377231359482,
0.1368045210838318,
0.026895102113485336,
-0.5252270698547363,
-0.09804697334766388,
0.06577395647764206,
0.1927148401737213,
0.0876699909567833,
0.10083263367414474,
0.02043195627629757,
-0.45291468501091003,
0.10355771332979202,
-0.6617622971534729,
0.32351621985435486,
0.3332973122596741,
0.08459707349538803,
-0.16816577315330505,
-0.02697121724486351,
0.06997447460889816,
-0.0831562951207161,
0.16525404155254364,
-0.7830036878585815,
-0.4038863778114319,
0.20129413902759552,
-0.15015025436878204,
-0.09067480266094208,
0.09445775300264359,
-0.4324660003185272,
-0.012222551740705967,
0.424914687871933,
0.1434321105480194,
-0.4903404116630554,
0.07585982978343964,
0.10319430381059647,
0.29332730174064636,
-0.03665408864617348,
0.1504913568496704,
-0.13157790899276733,
-0.24565310776233673,
-0.20364421606063843,
0.08410410583019257,
0.08980237692594528,
0.022534558549523354,
0.43475446105003357,
-0.2493487149477005,
-0.047866541892290115,
-0.0738416463136673,
0.10020167380571365,
-0.0376446433365345,
-0.21054886281490326,
0.23487453162670135,
-0.1014234647154808,
-0.13691499829292297,
0.1677589863538742,
-0.28997063636779785,
0.4333430230617523,
-0.20377026498317719,
0.1332354098558426,
0.19087064266204834,
-0.483228474855423,
0.49735644459724426,
0.2202981412410736,
0.21897311508655548,
0.2997467517852783,
-0.12331951409578323,
-0.1388927549123764,
-0.1428910791873932,
0.10320702940225601,
0.12997187674045563,
0.4290405809879303,
-0.4069588780403137,
-0.36562201380729675,
0.20143891870975494,
0.23211759328842163,
-0.09979530423879623,
0.5052692890167236,
0.3039490580558777,
-0.4377228617668152,
-0.06912723183631897,
0.008906506933271885,
1.0040186643600464,
-0.25641530752182007,
0.19594646990299225,
0.057890959084033966,
-0.17964664101600647,
0.3725498914718628,
-0.30167460441589355,
-0.16164791584014893,
-0.26343774795532227,
-0.27501386404037476,
-0.12629054486751556,
-0.05339527130126953,
0.34471726417541504,
0.1411760151386261,
-0.2564908266067505,
0.02611592784523964,
0.19968505203723907,
-0.08217252790927887,
-0.0594160333275795,
0.5094425678253174,
-0.1630374789237976,
-0.24484296143054962,
-0.07127629965543747,
0.14284148812294006,
0.12110646069049835,
-0.1961437314748764,
-0.2274867743253708,
-0.027607519179582596,
-0.15675167739391327,
-0.0975121334195137,
-0.23639267683029175,
-0.039449211210012436,
-0.052648358047008514,
0.150273397564888,
-0.2101893424987793,
-0.23413242399692535,
0.21220234036445618,
-0.2232472002506256,
0.19111265242099762,
0.032659631222486496,
0.16827896237373352,
-0.03870483115315437,
-0.008764760568737984,
0.18323896825313568,
0.42717474699020386,
-0.21751971542835236,
0.20662821829319,
-0.06066824123263359,
-0.16056768596172333,
0.22722317278385162,
0.03434021770954132,
-0.5253437757492065,
-0.5132182836532593,
0.2669926881790161,
-0.07547410577535629,
-0.12640973925590515,
-0.06149897351861,
0.6240116357803345,
-0.021132348105311394,
-0.21724103391170502,
0.16066598892211914,
0.39217954874038696,
-0.06778514385223389,
0.11044921725988388,
-0.16018737852573395,
-0.20689146220684052,
-0.31682512164115906,
-0.12448866665363312,
0.2557012736797333,
0.0967899039387703,
-0.36705729365348816,
0.04625175893306732,
-0.15592750906944275,
-0.11893735080957413,
0.13997189700603485,
0.6067629456520081,
-0.3782593905925751,
-0.28837287425994873,
-0.003912686370313168,
-0.306978315114975,
-0.21107546985149384,
0.04794318974018097,
0.16655834019184113,
0.2156907171010971,
-0.08790142089128494,
-0.19163556396961212,
0.08700651675462723,
0.3477587103843689,
0.15525919198989868,
0.15035414695739746,
0.08805917948484421,
0.003345406148582697,
-0.04015221446752548,
0.10605839639902115,
-0.4068501591682434,
-0.00019077197066508234,
0.11437524110078812,
0.1226806789636612,
0.1580335944890976,
0.04642246663570404,
0.13418318331241608,
0.1589014232158661,
0.19714532792568207,
0.021043822169303894,
-0.05176091566681862,
-0.1954435259103775,
0.0383409820497036,
0.059388525784015656,
0.08307484537363052,
0.19366058707237244,
0.34368303418159485,
-0.15406759083271027,
0.05788957700133324,
0.07143726944923401,
0.325804203748703,
0.029307395219802856,
-0.22943632304668427,
0.041692592203617096,
-0.1714075654745102,
-0.08344318717718124,
0.10626950860023499,
0.2818499505519867,
0.08513312041759491,
0.029438234865665436,
0.04121621325612068,
0.1196717694401741,
0.1314351111650467,
-0.07019443809986115,
0.2505354881286621,
0.23013602197170258,
0.12642300128936768,
0.31219592690467834,
-0.155015230178833,
0.058766309171915054,
0.3654407858848572,
0.12734727561473846,
0.4827503263950348,
0.0336059108376503,
-0.16897621750831604,
0.08230862021446228,
0.07096780091524124,
0.31365740299224854,
-0.24169689416885376,
-0.2967020273208618,
0.20616139471530914,
-0.21947704255580902,
0.39019981026649475,
0.5765984654426575,
0.5690059661865234,
0.26326319575309753,
0.4004576504230499,
-0.413281112909317,
0.11622484028339386,
-0.08594390749931335,
0.018297385424375534,
0.045655183494091034,
-0.21247324347496033,
0.06960429251194,
0.28313595056533813,
0.18883882462978363,
-0.031579311937093735,
0.20121625065803528,
0.16113221645355225,
0.2795374095439911,
0.428317666053772,
0.24620667099952698,
0.02719392441213131,
0.1925109475851059,
0.33819645643234253,
0.17649759352207184,
0.25955069065093994,
0.14812466502189636,
0.17293372750282288,
0.23182497918605804,
-0.11474940925836563,
-0.07946605980396271,
0.13112671673297882,
0.18382714688777924,
-0.04953308403491974,
0.014904427342116833,
0.2187446504831314,
-0.09037423878908157,
-0.24260303378105164,
0.0026585871819406748,
-0.17281943559646606,
-0.10718633234500885,
0.08303616940975189,
0.05751633271574974,
0.28730714321136475,
-0.01433425210416317,
0.1595524698495865,
-0.14906859397888184,
0.12363429367542267,
-0.2348012924194336,
0.2202049195766449,
-0.15384089946746826,
0.18855543434619904,
-0.08929208666086197,
0.45140862464904785,
0.02019566483795643,
-0.029359731823205948,
0.004857304506003857,
0.36981838941574097,
-0.21897366642951965,
0.15693354606628418,
-0.1249350905418396,
0.1338542103767395,
0.27476584911346436,
0.17485809326171875,
0.3241957128047943,
0.13546854257583618,
-0.23304599523544312,
0.012282105162739754,
0.19761979579925537,
-0.03973552584648132,
-0.30346792936325073,
0.0021586103830486536,
-0.22258678078651428,
0.012468398548662663,
-0.2757617235183716,
0.0758446753025055,
-0.5223267078399658,
-0.09021582454442978,
0.22359298169612885,
-0.3513811230659485,
-0.025702351704239845,
-0.11487364768981934,
0.10953395813703537,
0.035092391073703766,
0.19467170536518097,
0.046582743525505066,
0.4593777656555176,
-0.1099381297826767,
-0.3727732300758362,
-0.48249679803848267,
0.287321001291275,
0.036229681223630905,
-0.08989612758159637,
-0.3536241948604584,
0.18182086944580078,
0.4511239528656006,
0.25471094250679016,
0.012164533138275146,
0.211544007062912,
-0.13002343475818634,
-0.15835483372211456,
-0.2679615914821625,
0.12994147837162018,
0.2145317643880844,
0.23907428979873657,
0.013987447135150433,
-0.04709869995713234,
-0.022019827738404274,
0.09410133957862854,
0.16145753860473633,
-0.2123522311449051,
-0.13920550048351288,
0.005838620476424694,
-0.09935947507619858,
0.4858992397785187,
0.06453215330839157,
0.4056459069252014,
-0.21374447643756866,
-0.15543204545974731,
-0.11624839156866074,
-0.24185346066951752,
-0.19598282873630524,
0.4852731227874756,
0.06534313410520554,
0.25613632798194885,
0.0638885498046875,
-0.25253692269325256,
-0.06996360421180725,
0.13038845360279083,
0.11363410949707031,
0.35016995668411255,
-0.0011432509636506438,
0.31199273467063904,
0.12503696978092194,
-0.29025954008102417,
0.026478193700313568,
0.44811609387397766,
0.1819460093975067,
-0.07778050005435944,
-0.02065342292189598,
-0.2677198350429535,
-0.14718452095985413,
0.0398595817387104,
-0.06971250474452972,
0.05916972830891609,
0.21883895993232727,
0.15321789681911469,
-0.11393711715936661,
-0.42140355706214905,
-0.0756935253739357,
0.3150254487991333,
0.17757196724414825,
0.015504958108067513,
0.14210866391658783,
0.02299094758927822,
-0.3856185972690582,
-0.09034173935651779,
-0.087059885263443,
-0.00523737445473671,
-0.12299715727567673,
0.1273498237133026,
-0.3738959729671478
] |
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.18463346362113953,
-0.241859570145607,
-0.18476523458957672,
-0.13035109639167786,
-0.05181707441806793,
0.006996415089815855,
0.25056371092796326,
0.11135910451412201,
0.18022972345352173,
0.1449398547410965,
-0.11674892902374268,
0.10126728564500809,
0.048573389649391174,
0.39057663083076477,
0.6209654808044434,
-0.17828068137168884,
0.12671619653701782,
0.05117572844028473,
-0.01470369566231966,
-0.09345591813325882,
-0.10278821736574173,
0.21672901511192322,
0.10808020085096359,
-0.05271521955728531,
-0.1677284687757492,
-0.24353674054145813,
-0.28423964977264404,
0.14354510605335236,
-0.08871158212423325,
-0.33121660351753235,
-0.013160775415599346,
0.288221150636673,
-0.17683784663677216,
0.10546385496854782,
-0.00010096021287608892,
-0.16966786980628967,
0.1100730448961258,
-0.08951608091592789,
-0.02041032537817955,
-0.024575142189860344,
-0.24451878666877747,
-0.4427779018878937,
-0.14386026561260223,
-0.06472226977348328,
-0.1366015523672104,
-0.08178988099098206,
0.15767474472522736,
-0.5114185214042664,
0.0948299840092659,
0.15435925126075745,
0.27334102988243103,
0.24562832713127136,
-0.028145328164100647,
-0.2357834279537201,
0.32712969183921814,
0.06563416123390198,
-0.12487803399562836,
0.21706297993659973,
0.7011632323265076,
0.11040224879980087,
0.04269012063741684,
0.2003495991230011,
0.16618721187114716,
-0.025101132690906525,
-0.09420743584632874,
0.06877866387367249,
-0.11666181683540344,
-0.12909039855003357,
-0.026567235589027405,
0.626908004283905,
0.1902134269475937,
-0.40497463941574097,
-0.41053175926208496,
-0.1999892145395279,
0.09869123995304108,
-0.05292312800884247,
0.0897817611694336,
0.0726022943854332,
0.12139718979597092,
0.031828124076128006,
0.19455790519714355,
-0.4966181814670563,
-0.05975060537457466,
0.1288614720106125,
0.0036637522280216217,
0.2533249855041504,
-0.15402309596538544,
-0.002456322545185685,
0.17598626017570496,
0.042455870658159256,
-0.16095218062400818,
0.0287616066634655,
-0.20052361488342285,
0.10641160607337952,
-0.09686338156461716,
-0.04448078200221062,
0.02386234886944294,
0.19384832680225372,
0.41598692536354065,
0.036115895956754684,
0.044777143746614456,
0.22333715856075287,
-0.28032973408699036,
0.1791001260280609,
-0.1463029980659485,
0.07609894126653671,
0.2867691218852997,
-0.4129457175731659,
0.3636012673377991,
-0.23749615252017975,
0.21256586909294128,
-0.006558876018971205,
-0.05685017257928848,
0.014151161536574364,
-0.31750085949897766,
-0.008248908445239067,
-0.026873799040913582,
-0.050289735198020935,
-0.14705264568328857,
0.003765011439099908,
0.04865133762359619,
-0.10398823767900467,
-0.00617084838449955,
0.2225235253572464,
0.09965483844280243,
-0.12330394983291626,
-0.1621113270521164,
0.31381523609161377,
-0.0012075064005330205,
-0.3761257827281952,
-0.09119375050067902,
0.34961968660354614,
-0.26905855536460876,
0.10137522220611572,
-0.0004969933652319014,
-0.19538305699825287,
0.10362289100885391,
0.18463516235351562,
0.06115707755088806,
0.09869180619716644,
0.22618882358074188,
0.07207328081130981,
0.11736913025379181,
-0.10740752518177032,
-0.07367097586393356,
0.046380143612623215,
0.009889730252325535,
-0.36292383074760437,
-0.38097110390663147,
-0.21053896844387054,
0.03786268085241318,
0.0682307630777359,
-0.517169177532196,
0.22532068192958832,
-0.12163323163986206,
-0.3320922255516052,
0.06107299029827118,
0.7353153824806213,
-0.20607230067253113,
-0.1873330920934677,
0.37422117590904236,
0.18480393290519714,
0.06063474342226982,
-0.18209047615528107,
0.1231318935751915,
0.30112794041633606,
-0.7084857821464539,
-0.3878899812698364,
0.01618989370763302,
-0.31167179346084595,
0.01502422895282507,
-0.0072134872898459435,
-0.05221657454967499,
-0.14889772236347198,
-0.21938489377498627,
0.3566611409187317,
0.3074154257774353,
-0.26312902569770813,
-0.10481902211904526,
0.15271587669849396,
-0.13635419309139252,
0.03242143243551254,
0.14931590855121613,
0.24611808359622955,
0.0076196808367967606,
0.08196217566728592,
-0.2284458428621292,
0.49287164211273193,
-0.13768558204174042,
-0.06932785362005234,
-0.017189759761095047,
-0.11789177358150482,
0.116396963596344,
0.2341867983341217,
-0.01773635670542717,
-0.18476687371730804,
0.3748794496059418,
-0.048054713755846024,
0.014302576892077923,
-0.21784573793411255,
0.08231044560670853,
0.23384925723075867,
0.25852498412132263,
0.04197518527507782,
-0.15277037024497986,
-0.32220587134361267,
-0.320332407951355,
0.1178400069475174,
-0.09658833593130112,
0.23034831881523132,
0.13520939648151398,
-0.2790808379650116,
-0.019615251570940018,
-0.021295038983225822,
-0.20567157864570618,
-0.2783055603504181,
0.19578126072883606,
0.3253359794616699,
0.15689736604690552,
0.30686187744140625,
-0.16364723443984985,
0.29129666090011597,
0.027069581672549248,
0.03934100270271301,
-0.3820660412311554,
0.16522450745105743,
0.10094180703163147,
-0.04877009242773056,
-0.24714218080043793,
0.27087557315826416,
-0.2948075830936432,
-0.3454170525074005,
0.0475604347884655,
0.400527685880661,
-0.05627727136015892,
0.3210209906101227,
0.4340529441833496,
0.31325438618659973,
0.3498569428920746,
-0.051670730113983154,
0.21665319800376892,
-0.1477486938238144,
0.0593077652156353,
-0.01791178062558174,
0.03320014849305153,
0.38062506914138794,
0.28677496314048767,
-0.18064244091510773,
0.06458057463169098,
0.05151474103331566,
0.3325466513633728,
-0.057896509766578674,
-0.02475503459572792,
-0.2705194056034088,
0.3214470148086548,
-0.06820733845233917,
0.4620572328567505,
-0.08911485970020294,
-0.45192843675613403,
-0.004148962441831827,
0.5400698781013489,
-0.20699600875377655,
0.5007697343826294,
-0.03856782242655754,
-0.2486329823732376,
-0.1093042865395546,
0.22323307394981384,
0.24472375214099884,
0.17897485196590424,
0.27821192145347595,
0.2959160804748535,
-0.009485622867941856,
-0.17591328918933868,
-0.20301121473312378,
0.12388437986373901,
-0.2936112880706787,
-0.2068042904138565,
0.06001751497387886,
0.0018415877129882574,
-0.23860695958137512,
-0.6312519311904907,
-0.14549103379249573,
0.06457303464412689,
-0.06275267153978348,
0.0172266885638237,
-0.11647121608257294,
-0.25091877579689026,
-0.3461499810218811,
-0.22397789359092712,
-0.21178410947322845,
-0.4119901955127716,
-0.27139589190483093,
0.35823214054107666,
-0.3860493302345276,
-0.10140598565340042,
0.22871993482112885,
0.16264350712299347,
0.3069649040699005,
-0.3231985867023468,
-0.24304652214050293,
-0.3107088506221771,
-0.2273840755224228,
-0.13207702338695526,
0.2030256986618042,
0.0638735368847847,
0.08107371628284454,
0.5975707173347473,
-0.14937986433506012,
0.3434201776981354,
-0.32064953446388245,
-0.6411498188972473,
0.17122597992420197,
-0.23361143469810486,
0.3255998492240906,
0.22725863754749298,
-0.13975287973880768,
0.13389360904693604,
-0.0364697128534317,
0.19304826855659485,
-0.373698890209198,
-0.19943025708198547,
-0.1343020647764206,
-0.1690984070301056,
0.013069327920675278,
-0.1824684888124466,
-0.4047190248966217,
-0.401356965303421,
-0.3103554844856262,
0.3401171863079071,
-0.13552066683769226,
-0.10335620492696762,
0.06249439716339111,
-0.1144508570432663,
0.4457509517669678,
-0.1651322990655899,
0.03837928548455238,
-0.33904165029525757,
-0.31505101919174194,
0.04201255738735199,
-0.3130302429199219,
-0.20717041194438934,
-0.13089334964752197,
-0.08322770893573761,
0.19375954568386078,
-0.10428368300199509,
-0.2162322998046875,
-0.29516011476516724,
-0.208021342754364,
0.3043590784072876,
0.24366359412670135,
0.260360985994339,
0.2636740207672119,
-0.005683894269168377,
-0.1536727100610733,
-0.18161681294441223,
-0.10339586436748505,
0.11066970229148865,
0.1836390346288681,
-0.14275875687599182,
-0.0462077260017395,
0.25885602831840515,
0.03581155836582184,
0.31676292419433594,
-0.13139718770980835,
-0.06197706609964371,
0.4659317135810852,
-0.15487967431545258,
0.46114158630371094,
-0.21926069259643555,
-0.17566505074501038,
0.20251727104187012,
-0.04646845534443855,
0.3559705317020416,
0.16624267399311066,
0.05935845524072647,
-0.19397562742233276,
-0.008126545697450638,
0.07994946837425232,
-0.0653875321149826,
-0.02450280822813511,
0.049804508686065674,
-0.23008237779140472,
-0.021022407338023186,
-0.16305986046791077,
-0.369770884513855,
-0.10725519806146622,
0.000603412976488471,
0.25229233503341675,
0.08146517723798752,
-0.17055168747901917,
-0.02078782580792904,
-0.5745231509208679,
0.03112543374300003,
-0.34254705905914307,
0.4614947736263275,
0.2403462827205658,
0.049822334200143814,
-0.33176904916763306,
-0.07880374044179916,
0.016760582104325294,
-0.01469725463539362,
0.34019026160240173,
-0.7034705877304077,
-0.39204761385917664,
0.1245713084936142,
-0.17344754934310913,
-0.16933473944664001,
0.13263896107673645,
-0.47789838910102844,
0.010844185948371887,
0.2867744565010071,
0.18829640746116638,
-0.29539671540260315,
-0.0790122002363205,
0.1735624372959137,
0.2449522614479065,
0.007373060565441847,
0.14499464631080627,
-0.087187759578228,
-0.276690810918808,
-0.32225847244262695,
0.15018795430660248,
-0.11723099648952484,
0.036966126412153244,
0.5093621015548706,
-0.13495013117790222,
-0.12909720838069916,
0.009132047183811665,
0.1853179782629013,
0.31247931718826294,
-0.20477129518985748,
0.23542270064353943,
-0.10298490524291992,
0.04581940919160843,
0.03437788411974907,
-0.10465854406356812,
0.24963480234146118,
-0.26024487614631653,
-0.10873688012361526,
0.04724283143877983,
-0.22573021054267883,
0.4998917281627655,
0.06350335478782654,
0.24344271421432495,
0.39602938294410706,
-0.181602343916893,
-0.10337738692760468,
-0.46194472908973694,
0.42875516414642334,
0.2030683308839798,
0.5127568244934082,
-0.35439345240592957,
-0.28243452310562134,
0.1989814043045044,
0.14943493902683258,
-0.14077787101268768,
0.528377890586853,
0.22363804280757904,
-0.3452458083629608,
0.0749754086136818,
-0.017657224088907242,
0.8527346849441528,
-0.24292735755443573,
0.10530481487512589,
0.034722983837127686,
-0.19814099371433258,
0.308197557926178,
-0.32403337955474854,
-0.07298821955919266,
-0.2227020263671875,
-0.32672184705734253,
-0.16454030573368073,
0.005865794140845537,
0.37215593457221985,
0.05017575994133949,
-0.3208470046520233,
0.06049000471830368,
0.21802861988544464,
0.10490218549966812,
-0.0844883918762207,
0.3619777262210846,
-0.20685186982154846,
-0.2756370007991791,
-0.19696590304374695,
0.24790628254413605,
0.09912420064210892,
-0.07375071942806244,
-0.0998445376753807,
-0.02801588736474514,
0.0922902300953865,
-0.016118016093969345,
-0.30703088641166687,
-0.09460091590881348,
-0.24113856256008148,
0.0730494037270546,
0.05793486163020134,
-0.15694282948970795,
0.09940847754478455,
0.06791356205940247,
0.35139909386634827,
0.19982005655765533,
0.005828374065458775,
0.19084303081035614,
-0.13997071981430054,
0.10017384588718414,
0.18711049854755402,
-0.08803491294384003,
0.340943843126297,
-0.007342826575040817,
-0.24773216247558594,
0.28068745136260986,
0.0567600391805172,
-0.18379339575767517,
-0.29041871428489685,
0.07601092010736465,
-0.2216186225414276,
-0.04014018923044205,
-0.00039946369361132383,
0.22312739491462708,
0.18624116480350494,
-0.38499879837036133,
0.16870878636837006,
0.2530965805053711,
-0.20874254405498505,
-0.0268257949501276,
-0.06506263464689255,
-0.24868644773960114,
-0.3631856143474579,
-0.029637038707733154,
-0.17576225101947784,
0.03556079789996147,
-0.035400182008743286,
0.14231297373771667,
-0.06277765333652496,
-0.3454819917678833,
0.2907412350177765,
0.6144680380821228,
-0.3988984227180481,
-0.02563854493200779,
-0.021859824657440186,
-0.5254501104354858,
-0.12522543966770172,
0.13111884891986847,
0.28924664855003357,
0.06518781930208206,
-0.0017300258623436093,
-0.16533023118972778,
-0.13375793397426605,
0.09642000496387482,
0.20265525579452515,
0.42147213220596313,
0.1294962763786316,
-0.11544753611087799,
0.09596308320760727,
0.339886337518692,
-0.4340874254703522,
-0.008588258177042007,
-0.161808043718338,
0.018808823078870773,
0.18338435888290405,
0.08828240633010864,
0.3379586637020111,
0.09834355115890503,
0.21304970979690552,
-0.11758515238761902,
-0.12084265053272247,
-0.2233334332704544,
-0.25792598724365234,
0.0717112198472023,
-0.23701362311840057,
0.1891639530658722,
0.31067588925361633,
0.06773899495601654,
0.14086368680000305,
-0.24220813810825348,
0.3841646909713745,
-0.07482478022575378,
-0.10348761826753616,
0.19999608397483826,
0.08423840254545212,
-0.12297199666500092,
0.2088066041469574,
0.03439640253782272,
0.08245562762022018,
0.09292947500944138,
0.12138358503580093,
0.04870426282286644,
0.014939925633370876,
-0.18427890539169312,
0.3117765486240387,
0.4180963635444641,
0.3014640212059021,
-0.16114769876003265,
-0.14283084869384766,
0.18355436623096466,
0.10571847856044769,
0.22185690701007843,
0.3776783347129822,
-0.06375547498464584,
-0.1747802495956421,
0.23755307495594025,
0.2852989435195923,
0.25064411759376526,
-0.20588544011116028,
-0.23434796929359436,
0.4367411732673645,
-0.0743766576051712,
0.4397977590560913,
0.39355018734931946,
0.40365785360336304,
0.3437793552875519,
0.4054284393787384,
-0.34944358468055725,
0.04475701227784157,
-0.04798592999577522,
0.21333996951580048,
0.11636332422494888,
-0.150382861495018,
-0.03578757867217064,
0.2522678077220917,
0.208474263548851,
0.09927184879779816,
0.21404169499874115,
-0.028726570308208466,
0.396395742893219,
0.17951367795467377,
0.295867383480072,
0.24430540204048157,
-0.055262491106987,
0.19208234548568726,
0.017348676919937134,
0.0954190194606781,
0.27428749203681946,
0.12179749459028244,
0.518592357635498,
-0.2648636996746063,
-0.07794187217950821,
-0.07245808094739914,
0.25389564037323,
-0.058227553963661194,
-0.2553238570690155,
0.22800283133983612,
-0.08309388905763626,
-0.23532520234584808,
-0.013417720794677734,
0.13397565484046936,
-0.20056407153606415,
0.195674866437912,
-0.031853578984737396,
0.3330758512020111,
-0.20712308585643768,
0.2693575322628021,
-0.06906842440366745,
-0.056958798319101334,
-0.16481798887252808,
0.34277111291885376,
-0.008614246733486652,
-0.07571285218000412,
-0.011637589894235134,
0.3626713156700134,
0.12087776511907578,
-0.21376900374889374,
-0.06570005416870117,
0.43462300300598145,
-0.3557921051979065,
0.06749744713306427,
-0.010875104926526546,
0.2708677351474762,
0.07386721670627594,
0.3266424834728241,
0.31120139360427856,
0.1924104243516922,
-0.1710517853498459,
-0.0774526447057724,
0.06055908277630806,
-0.20260125398635864,
-0.24280160665512085,
0.11214161664247513,
-0.1197671964764595,
0.09637200087308884,
-0.46146437525749207,
0.13292405009269714,
-0.4521276652812958,
-0.04326489940285683,
0.3228742182254791,
-0.27127206325531006,
-0.059001073241233826,
-0.009744762443006039,
0.13919687271118164,
0.08508927375078201,
0.3617803752422333,
0.27225035429000854,
0.3546934425830841,
0.10406288504600525,
-0.36710280179977417,
-0.5847012996673584,
0.08541916310787201,
0.13451319932937622,
-0.21981880068778992,
-0.22229354083538055,
0.00915045477449894,
0.447194904088974,
0.008729861117899418,
0.06665188819169998,
0.13007837533950806,
0.11907412856817245,
-0.24918562173843384,
-0.3235991895198822,
0.17062310874462128,
0.04052251577377319,
0.10789201408624649,
0.11240578442811966,
0.05853812396526337,
-0.10961542278528214,
0.09415346384048462,
0.07359658926725388,
-0.25979602336883545,
0.05474404618144035,
-0.15114463865756989,
-0.2828805148601532,
0.42705053091049194,
-0.003817005315795541,
0.4883860945701599,
-0.30710333585739136,
0.03924606740474701,
-0.12489958852529526,
-0.29843994975090027,
-0.21237123012542725,
0.3169867992401123,
-0.008467975072562695,
0.16408683359622955,
-0.06825175881385803,
-0.3227050006389618,
-0.0810524970293045,
0.30336272716522217,
0.18099577724933624,
0.20694130659103394,
-0.15808981657028198,
0.1864401251077652,
-0.05982356145977974,
-0.2287285476922989,
0.19900846481323242,
0.38208484649658203,
0.034532953053712845,
0.023349709808826447,
0.21876198053359985,
-0.2297605574131012,
0.056014228612184525,
0.02709064446389675,
-0.09254790097475052,
0.03132771700620651,
0.009306428954005241,
0.22449345886707306,
-0.0694352462887764,
-0.49968022108078003,
0.07417022436857224,
0.3074284791946411,
0.1963987648487091,
-0.15263554453849792,
0.2977276146411896,
0.06196114420890808,
-0.10637402534484863,
-0.09952262789011002,
0.030119189992547035,
0.27392005920410156,
-0.09409583359956741,
0.19990798830986023,
-0.39413154125213623
] |
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.1462259441614151,
-0.1761123389005661,
-0.09057218581438065,
0.0123519916087389,
-0.02412573993206024,
-0.17038308084011078,
0.46442845463752747,
0.22930048406124115,
0.006414968054741621,
0.18978449702262878,
-0.07842148095369339,
-0.012320858426392078,
0.06371519714593887,
0.31735897064208984,
0.3393555283546448,
-0.14736489951610565,
0.06487419456243515,
-0.1207682266831398,
0.18579068779945374,
-0.141023650765419,
-0.19708509743213654,
0.164675772190094,
0.14167863130569458,
0.25637659430503845,
-0.3061513602733612,
-0.25101688504219055,
-0.12123870104551315,
0.1231265515089035,
-0.05332815647125244,
-0.26364368200302124,
-0.13277244567871094,
0.09949511289596558,
-0.14832113683223724,
0.15507803857326508,
-0.000098432858067099,
-0.1763022243976593,
0.15707306563854218,
-0.166279599070549,
0.325985312461853,
0.03694139048457146,
-0.3540753424167633,
-0.49252790212631226,
-0.21665334701538086,
-0.28678077459335327,
-0.07261370122432709,
0.07496683299541473,
0.020313173532485962,
-0.4325011074542999,
0.02925250492990017,
0.05130520462989807,
0.282653272151947,
-0.04859509691596031,
-0.14153578877449036,
-0.0816420465707779,
0.29335737228393555,
-0.2213199883699417,
-0.1784571409225464,
0.0020784579683095217,
0.5535992980003357,
0.23624661564826965,
-0.10215028375387192,
0.3790181875228882,
0.09966200590133667,
-0.17412766814231873,
-0.08461625128984451,
0.04623766988515854,
-0.05096688121557236,
-0.3432500958442688,
-0.055494893342256546,
0.602433979511261,
0.013622194528579712,
-0.26531291007995605,
-0.15610508620738983,
-0.20165802538394928,
0.09429658204317093,
-0.21330931782722473,
0.35480958223342896,
0.1433286815881729,
0.1954394280910492,
-0.03337326645851135,
0.31385499238967896,
-0.4838632345199585,
0.044125888496637344,
0.0608954019844532,
0.03013838827610016,
0.6080754399299622,
-0.08156076818704605,
0.21011683344841003,
0.08181830495595932,
-0.004406382329761982,
0.05560768395662308,
0.01810503378510475,
-0.1166883260011673,
-0.18055258691310883,
-0.27819350361824036,
0.034843809902668,
-0.133813738822937,
0.03850205987691879,
0.15135227143764496,
-0.091509148478508,
-0.10494599491357803,
0.17730408906936646,
0.10335611552000046,
0.16401222348213196,
-0.07408127933740616,
0.07391027361154556,
0.35563862323760986,
-0.14186276495456696,
0.3384210765361786,
-0.3893524706363678,
0.0308437068015337,
0.06827255338430405,
0.03021121397614479,
-0.12108961492776871,
-0.39058917760849,
-0.04848753288388252,
-0.2725440263748169,
-0.01339182909578085,
-0.09458005428314209,
0.050021931529045105,
-0.08578027039766312,
-0.20248231291770935,
0.1805744618177414,
0.10182254761457443,
0.05453839153051376,
-0.0015524617629125714,
-0.28591296076774597,
0.25332990288734436,
-0.09773232787847519,
-0.33524635434150696,
-0.15527306497097015,
0.369697630405426,
-0.4024465084075928,
0.08873537927865982,
-0.09241752326488495,
0.08223888278007507,
0.06409882009029388,
0.1878531128168106,
-0.010243347845971584,
-0.04252271726727486,
0.20502302050590515,
-0.05394434556365013,
-0.001497942954301834,
-0.03435124456882477,
0.0269425418227911,
0.013101628981530666,
-0.03300286829471588,
-0.1650324910879135,
-0.4244990348815918,
-0.21599239110946655,
-0.26760539412498474,
-0.15156438946723938,
-0.19382670521736145,
0.2565615177154541,
-0.06618788838386536,
-0.1259264349937439,
0.3019111454486847,
0.603024959564209,
0.065815769135952,
-0.005551612935960293,
0.23082785308361053,
0.046186190098524094,
0.035937242209911346,
-0.3438420593738556,
-0.02659536339342594,
0.1573951542377472,
-0.5607887506484985,
-0.28982847929000854,
0.005052079912275076,
-0.2177068144083023,
0.21662898361682892,
0.10005821287631989,
-0.19180986285209656,
-0.2419545203447342,
-0.1731526255607605,
0.49725547432899475,
0.47367915511131287,
-0.24069476127624512,
0.0017589246854186058,
0.13953770697116852,
-0.22635933756828308,
-0.2233426421880722,
0.35145390033721924,
0.15647271275520325,
0.14046791195869446,
-0.006743593141436577,
-0.09910556674003601,
0.3637702167034149,
-0.23892143368721008,
-0.16824136674404144,
-0.17995338141918182,
-0.30242374539375305,
0.014093182049691677,
0.22031733393669128,
-0.006640053819864988,
-0.4272899329662323,
0.1903276890516281,
-0.0931607186794281,
0.09256796538829803,
-0.14612676203250885,
0.13407552242279053,
0.15123534202575684,
0.20071154832839966,
0.07840005308389664,
-0.1671224981546402,
0.04912283271551132,
-0.28864815831184387,
0.08498271554708481,
-0.19022725522518158,
0.2473544478416443,
0.31466424465179443,
-0.1260804682970047,
0.12428484857082367,
-0.41209518909454346,
-0.3077104985713959,
-0.2251724749803543,
0.24676795303821564,
0.3807688355445862,
-0.005876264069229364,
0.07025235146284103,
-0.30395179986953735,
0.42164862155914307,
-0.07482849061489105,
0.03738074749708176,
-0.3291950523853302,
-0.006822844035923481,
-0.03209821134805679,
-0.1438957005739212,
-0.10640818625688553,
0.23753976821899414,
-0.13568370044231415,
-0.3920331597328186,
0.05259435623884201,
0.45680636167526245,
0.0867198258638382,
0.05954819917678833,
0.26699838042259216,
0.18237628042697906,
0.31512466073036194,
0.03065788745880127,
0.4122353494167328,
-0.32385995984077454,
-0.19639761745929718,
-0.21013380587100983,
0.21655267477035522,
0.4376230537891388,
0.17357546091079712,
-0.004603228997439146,
-0.09773875772953033,
0.039091240614652634,
0.27211645245552063,
-0.1845206320285797,
-0.16717052459716797,
-0.269399493932724,
0.13535891473293304,
0.033449020236730576,
0.4870147705078125,
0.11210135370492935,
-0.5374773144721985,
0.03725176677107811,
0.7857858538627625,
-0.059236474335193634,
0.21844282746315002,
-0.07846865803003311,
0.12880009412765503,
0.04276988282799721,
0.10048671811819077,
0.4957650899887085,
0.1081288605928421,
0.2882477343082428,
0.021690594032406807,
-0.1542695313692093,
-0.23547671735286713,
-0.27992087602615356,
0.09787678718566895,
-0.12894605100154877,
0.0073646013624966145,
-0.005740370601415634,
-0.2545624375343323,
-0.25259584188461304,
-0.39499229192733765,
-0.19501696527004242,
0.18495392799377441,
-0.13112017512321472,
0.11200429499149323,
-0.13086830079555511,
-0.14188802242279053,
-0.32417646050453186,
-0.38464638590812683,
-0.2120252400636673,
-0.6176682114601135,
-0.2648647725582123,
0.2558194696903229,
-0.6583395004272461,
-0.12734869122505188,
0.3772857189178467,
0.039540067315101624,
0.07172641158103943,
-0.39067623019218445,
-0.30152156949043274,
-0.04375581815838814,
-0.07207954674959183,
-0.41099750995635986,
0.17101730406284332,
0.1405232697725296,
0.025037214159965515,
0.4922408163547516,
-0.0793912261724472,
0.185551717877388,
-0.07450040429830551,
-0.5724857449531555,
0.27756673097610474,
-0.4036215543746948,
0.09774833172559738,
0.170871302485466,
-0.3082917630672455,
0.0878908634185791,
-0.34939420223236084,
0.3390375077724457,
-0.1168491542339325,
0.13877840340137482,
-0.09104268997907639,
0.0008448215667158365,
-0.12558957934379578,
-0.0018691158620640635,
-0.6168110370635986,
-0.530224084854126,
-0.3577505350112915,
0.06491707265377045,
-0.21526019275188446,
0.053057003766298294,
0.014056917279958725,
-0.20099635422229767,
0.2050771266222,
-0.20218871533870697,
-0.07350384443998337,
-0.18778817355632782,
-0.30852416157722473,
0.03908616676926613,
-0.17999760806560516,
-0.11003419011831284,
0.020961608737707138,
0.0351652167737484,
0.4360463619232178,
-0.0134434150531888,
-0.1864355504512787,
0.09742766618728638,
-0.157886803150177,
0.2900022864341736,
0.41850948333740234,
0.23427972197532654,
0.18322989344596863,
0.1810413897037506,
-0.1444856971502304,
-0.08404757082462311,
-0.12661044299602509,
0.24061642587184906,
0.1379867047071457,
0.24613632261753082,
0.12858299911022186,
0.18835625052452087,
-0.02939271740615368,
0.2568419575691223,
-0.006872704718261957,
0.10524887591600418,
0.4177757799625397,
0.021758105605840683,
0.19730770587921143,
-0.22389306128025055,
-0.2783101201057434,
0.4182807207107544,
-0.02014419436454773,
0.19175028800964355,
0.24930426478385925,
0.036686770617961884,
-0.3029429316520691,
-0.20260955393314362,
0.1793304979801178,
0.05890865996479988,
-0.27739521861076355,
0.11015734821557999,
0.03648495301604271,
0.08893296122550964,
-0.12287238240242004,
-0.28111767768859863,
-0.04125034064054489,
0.008971331641077995,
0.21302376687526703,
0.12497060000896454,
-0.30431845784187317,
0.07586792856454849,
-0.532623827457428,
0.0725218653678894,
-0.28751370310783386,
0.2076583057641983,
0.1831064075231552,
0.16270099580287933,
-0.19513387978076935,
-0.11843317747116089,
-0.021242331713438034,
0.1403120458126068,
0.21809186041355133,
-0.6130015850067139,
-0.4700455665588379,
0.29242533445358276,
0.022241631522774696,
0.03174552321434021,
0.06765832751989365,
-0.3907155990600586,
-0.17429219186306,
0.6021924614906311,
0.14231589436531067,
-0.32991892099380493,
-0.24012978374958038,
0.21976551413536072,
0.2776793837547302,
-0.009586542844772339,
0.0851047933101654,
-0.13988381624221802,
-0.103984035551548,
-0.18549586832523346,
0.02123713307082653,
-0.1654781550168991,
-0.03536232188344002,
0.4166638255119324,
-0.10968665033578873,
0.029072266072034836,
-0.3474702537059784,
0.2417776733636856,
0.2491859793663025,
-0.10181652754545212,
-0.0015167203964665532,
-0.0998857319355011,
-0.03255962207913399,
0.14372137188911438,
-0.1647281050682068,
0.22119371592998505,
-0.37301772832870483,
-0.041309431195259094,
0.1606752872467041,
-0.4128871560096741,
0.43419715762138367,
0.2145683616399765,
0.17740122973918915,
0.22299222648143768,
-0.31405943632125854,
0.09709864854812622,
-0.013331782072782516,
0.27159443497657776,
0.19354701042175293,
0.3252149522304535,
-0.4524235427379608,
-0.4648649990558624,
0.233878031373024,
0.274926096200943,
-0.1879255473613739,
0.5551059246063232,
0.26158493757247925,
-0.30702537298202515,
0.018507247790694237,
0.08716149628162384,
1.0130928754806519,
-0.0665271058678627,
-0.03209932520985603,
0.12405695021152496,
-0.14686843752861023,
0.28703832626342773,
-0.3465816378593445,
0.004414849914610386,
-0.2121768742799759,
-0.11682935804128647,
-0.0076454333029687405,
0.06370913237333298,
0.4263190031051636,
0.1828870177268982,
-0.29880353808403015,
0.2446153461933136,
0.1877579391002655,
-0.1389591097831726,
-0.34357091784477234,
0.49029335379600525,
-0.2128349244594574,
-0.42882999777793884,
-0.05548800900578499,
0.1969965249300003,
0.042499758303165436,
-0.11958972364664078,
0.017215073108673096,
-0.06041399762034416,
-0.042392849922180176,
0.09516432881355286,
-0.11265503615140915,
-0.0568949356675148,
-0.1916467249393463,
0.1518830955028534,
-0.19913458824157715,
-0.20509663224220276,
0.10813059657812119,
-0.10303633660078049,
0.23129458725452423,
0.03779825195670128,
0.17686374485492706,
0.2509278953075409,
0.166286900639534,
-0.029080016538500786,
0.1491759568452835,
-0.1886831521987915,
0.3108358085155487,
-0.07432348281145096,
-0.2626555562019348,
0.14296570420265198,
0.01534776110202074,
-0.0575440339744091,
-0.47388550639152527,
0.09953884780406952,
0.01543385349214077,
-0.18692158162593842,
0.06469028443098068,
0.3470926880836487,
0.10429248958826065,
-0.2016887217760086,
0.2212807983160019,
0.1342332661151886,
-0.10666251927614212,
0.18015725910663605,
-0.20580492913722992,
-0.26731038093566895,
-0.44081130623817444,
-0.24744346737861633,
0.1526273936033249,
0.07416503131389618,
-0.16966159641742706,
0.11266177147626877,
-0.048233188688755035,
-0.2479790449142456,
0.3831702470779419,
0.4610036015510559,
-0.27284085750579834,
-0.280882865190506,
-0.026092836633324623,
-0.6038403511047363,
-0.012813749723136425,
0.039743442088365555,
0.3965601623058319,
0.26520514488220215,
0.13074976205825806,
-0.0010353217367082834,
-0.13207143545150757,
0.13473184406757355,
0.16676616668701172,
0.21311531960964203,
-0.08429018408060074,
0.08177866041660309,
0.14802731573581696,
0.19757474958896637,
-0.4271973669528961,
-0.12035956978797913,
-0.1311839520931244,
0.08531549572944641,
0.061526473611593246,
-0.005532651674002409,
0.23687972128391266,
0.2738027572631836,
0.24821704626083374,
-0.2009924203157425,
-0.19026117026805878,
-0.18159429728984833,
-0.21097788214683533,
0.03516843914985657,
-0.06120232120156288,
0.0691283792257309,
0.14743559062480927,
-0.1265219748020172,
0.06973910331726074,
-0.020331239327788353,
0.3101061284542084,
-0.04066052660346031,
-0.021269608289003372,
0.2212352305650711,
-0.03682896867394447,
-0.23692411184310913,
0.23706303536891937,
0.13902559876441956,
0.07582400739192963,
0.22030048072338104,
0.20952041447162628,
0.13473567366600037,
-0.002980646211653948,
-0.2144668996334076,
0.11952009052038193,
0.36709126830101013,
0.03846516087651253,
0.06678008288145065,
-0.30340009927749634,
0.05765083432197571,
0.2281789779663086,
0.23727469146251678,
0.19052308797836304,
0.34597542881965637,
-0.08796544373035431,
-0.0574202723801136,
0.33255311846733093,
0.34278443455696106,
-0.15290088951587677,
-0.2157157063484192,
0.2266252189874649,
0.10651029646396637,
0.42027828097343445,
0.5838722586631775,
0.4350995123386383,
0.28541693091392517,
0.24715964496135712,
-0.26686838269233704,
0.1988411843776703,
-0.16362608969211578,
0.1349107027053833,
0.2016611397266388,
-0.22085797786712646,
0.06754087656736374,
0.5029202699661255,
0.15424777567386627,
0.08931241929531097,
0.30302029848098755,
0.042217839509248734,
0.3530846834182739,
0.41881394386291504,
0.40552154183387756,
0.1972193866968155,
0.035175759345293045,
0.04030290246009827,
0.15917009115219116,
-0.12904980778694153,
0.10925894230604172,
0.018138963729143143,
0.30109694600105286,
-0.20826596021652222,
-0.21384835243225098,
0.0754544734954834,
0.22795391082763672,
-0.12402330338954926,
-0.08427295088768005,
0.054437074810266495,
-0.10275620222091675,
-0.3516120910644531,
0.051685307174921036,
0.09911039471626282,
-0.03776581957936287,
0.2453121542930603,
0.21755611896514893,
0.16787950694561005,
-0.1135488823056221,
0.22048865258693695,
-0.06615416705608368,
0.08342185616493225,
-0.233768031001091,
0.3854663670063019,
0.0023050515446811914,
-0.08192305266857147,
-0.06654882431030273,
0.10087563097476959,
0.06612111628055573,
-0.05854402109980583,
0.025240886956453323,
0.1825350821018219,
0.03231409937143326,
0.024009212851524353,
-0.0823516696691513,
0.16254499554634094,
0.1854984015226364,
0.4028443992137909,
0.3717903196811676,
0.1848210096359253,
-0.2366013079881668,
-0.1963733434677124,
0.11039858311414719,
-0.13335499167442322,
-0.08768007159233093,
0.1387680172920227,
-0.06740795075893402,
-0.026745280250906944,
-0.37241479754447937,
0.023627445101737976,
-0.6408743858337402,
0.09072311222553253,
0.3472355008125305,
-0.2498902976512909,
-0.03637523949146271,
-0.10813070833683014,
0.13914930820465088,
0.02059110440313816,
0.29046231508255005,
-0.2054857760667801,
0.16052588820457458,
-0.15134014189243317,
-0.37986525893211365,
-0.36296623945236206,
0.06869067996740341,
-0.07411477714776993,
-0.23741832375526428,
-0.3008520305156708,
0.14995166659355164,
0.20869050920009613,
-0.04309050738811493,
-0.02134762704372406,
0.1685633361339569,
0.1100890263915062,
-0.07553635537624359,
-0.36305972933769226,
0.18353889882564545,
0.09677191078662872,
0.31676962971687317,
0.18442240357398987,
-0.054871682077646255,
0.005120181478559971,
0.13950437307357788,
0.05820310860872269,
-0.20791342854499817,
-0.1573343127965927,
0.36884692311286926,
-0.05468320474028587,
0.3100128471851349,
0.1430499404668808,
0.34139686822891235,
-0.1951650232076645,
-0.0823991596698761,
-0.23161651194095612,
-0.22186927497386932,
-0.33233028650283813,
0.2775380313396454,
0.12699899077415466,
0.14202357828617096,
-0.028027981519699097,
-0.07764057070016861,
-0.2772822380065918,
0.41860318183898926,
0.09825896471738815,
0.37434735894203186,
-0.026542289182543755,
0.3107004761695862,
0.27395302057266235,
-0.09547662734985352,
0.1657666563987732,
0.533694326877594,
0.13446193933486938,
0.00019920938939321786,
0.034806739538908005,
-0.24449807405471802,
0.006615591701120138,
0.3034052550792694,
-0.061924222856760025,
0.035233836621046066,
0.1215716227889061,
0.3006124794483185,
0.14631980657577515,
-0.4625610411167145,
-0.084902822971344,
0.24680447578430176,
0.0522882305085659,
-0.3042316734790802,
0.1125001385807991,
0.2204035222530365,
-0.3317742645740509,
0.007349081337451935,
-0.16988161206245422,
0.20856064558029175,
-0.3166735768318176,
0.2862679064273834,
-0.05989544093608856
] |
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.20009146630764008,
-0.15228109061717987,
-0.10690852254629135,
-0.11235310137271881,
-0.07928119599819183,
-0.20000159740447998,
0.5592648983001709,
0.16035202145576477,
0.12979505956172943,
0.1972675323486328,
-0.047267623245716095,
0.05498957633972168,
0.00484394421800971,
0.30742400884628296,
0.30049943923950195,
-0.2359767109155655,
0.06179283186793327,
-0.03281217813491821,
0.1070399284362793,
-0.0768815204501152,
-0.14481878280639648,
0.11872473359107971,
0.1501038819551468,
0.06426762789487839,
-0.2914259731769562,
-0.31400352716445923,
-0.20871014893054962,
0.11646737158298492,
-0.04173611104488373,
-0.28663256764411926,
-0.1831398606300354,
0.21814745664596558,
-0.14813610911369324,
0.04607873037457466,
-0.0000994876681943424,
-0.167461559176445,
0.1176849901676178,
-0.17547206580638885,
0.22680918872356415,
-0.05548306554555893,
-0.42768236994743347,
-0.5850602388381958,
-0.1877811700105667,
-0.17275145649909973,
-0.0764966607093811,
0.0747532993555069,
0.16152560710906982,
-0.32231804728507996,
0.1621861755847931,
-0.016851363703608513,
0.24862205982208252,
-0.0356813408434391,
0.015852821990847588,
-0.09339814633131027,
0.29211798310279846,
-0.1258251965045929,
-0.1625910848379135,
0.11113601177930832,
0.5344119668006897,
0.04216916859149933,
-0.11674191057682037,
0.24621416628360748,
0.0771799385547638,
-0.1617513746023178,
-0.2693607211112976,
-0.06776908785104752,
-0.06969307363033295,
-0.25934213399887085,
-0.09778814762830734,
0.67070472240448,
0.0018178886966779828,
-0.25524890422821045,
-0.234110027551651,
-0.2518298029899597,
0.14292453229427338,
-0.11987242102622986,
0.22607044875621796,
0.2438061535358429,
0.04400990530848503,
0.0016492040595039725,
0.3162362575531006,
-0.49043744802474976,
-0.003579668002203107,
0.2545974850654602,
0.1498417854309082,
0.44814321398735046,
0.008351313881576061,
0.09148380160331726,
0.18147684633731842,
-0.029200037941336632,
-0.15291304886341095,
0.12954750657081604,
-0.081417977809906,
-0.1340007334947586,
-0.31941503286361694,
-0.019297635182738304,
-0.06644611805677414,
-0.04603719338774681,
0.19715623557567596,
-0.11932606250047684,
-0.08151241391897202,
0.25069108605384827,
-0.12151378393173218,
0.28268226981163025,
-0.035821959376335144,
0.025394342839717865,
0.248637855052948,
-0.10625394433736801,
0.3533790707588196,
-0.262812077999115,
0.04645469784736633,
0.0820842832326889,
-0.021469220519065857,
-0.11863049864768982,
-0.4098241329193115,
0.0041323499754071236,
-0.2621777653694153,
0.07907970249652863,
-0.13901396095752716,
-0.07212290167808533,
-0.10610505193471909,
-0.06944391876459122,
0.06073746085166931,
0.0999150201678276,
0.13492977619171143,
-0.038097601383924484,
-0.2698523998260498,
0.30255836248397827,
-0.10853828489780426,
-0.3179698884487152,
-0.08520463854074478,
0.3406924605369568,
-0.3904687464237213,
0.282571405172348,
-0.0011108072940260172,
0.10715808719396591,
0.03060012124478817,
0.2661171853542328,
-0.2616828978061676,
-0.009220225736498833,
0.24319234490394592,
-0.025525305420160294,
0.11164508759975433,
-0.0860615223646164,
0.04451186582446098,
-0.08059093356132507,
-0.12043699622154236,
-0.31799328327178955,
-0.44740667939186096,
-0.1331009417772293,
-0.13938002288341522,
-0.047431912273168564,
-0.5369628667831421,
0.2319706529378891,
-0.13469721376895905,
-0.24243296682834625,
0.32136788964271545,
0.7025801539421082,
0.10547331720590591,
-0.10793393105268478,
0.30254122614860535,
0.0773230791091919,
0.08560895919799805,
-0.2831871807575226,
-0.08544565737247467,
0.2961885631084442,
-0.5839101076126099,
-0.36712923645973206,
-0.042308781296014786,
-0.14287152886390686,
0.18521033227443695,
0.2240879237651825,
-0.09399238228797913,
-0.24085907638072968,
-0.09050191193819046,
0.5788304209709167,
0.2949933111667633,
-0.08002539724111557,
-0.0437665693461895,
0.04837245121598244,
-0.21292629837989807,
-0.2295108139514923,
0.41025903820991516,
0.21934723854064941,
0.15228252112865448,
-0.10283850878477097,
-0.10263104736804962,
0.5329892039299011,
-0.19973422586917877,
-0.19203117489814758,
-0.2687574028968811,
-0.37140899896621704,
-0.0669604167342186,
0.2908563017845154,
-0.11080954968929291,
-0.4445999264717102,
0.2499767690896988,
-0.1283312737941742,
0.034237802028656006,
-0.2165667861700058,
0.19712033867835999,
0.18663761019706726,
0.17336156964302063,
0.11980337649583817,
-0.16494864225387573,
-0.1606721580028534,
-0.2717196047306061,
-0.04217645525932312,
-0.14583349227905273,
0.3109082877635956,
0.1103106364607811,
-0.21751679480075836,
0.09180831909179688,
-0.3954269289970398,
-0.22883771359920502,
-0.055619578808546066,
0.244254931807518,
0.33577001094818115,
-0.04855172336101532,
0.20464472472667694,
-0.2657514810562134,
0.37586066126823425,
0.06563346832990646,
0.04590281844139099,
-0.27425017952919006,
0.1087706983089447,
-0.023537995293736458,
-0.1934511661529541,
-0.04137135669589043,
0.4167001247406006,
-0.11049623787403107,
-0.2737942039966583,
0.1936376690864563,
0.46946513652801514,
-0.013342190533876419,
0.20946186780929565,
0.25454476475715637,
0.15694570541381836,
0.31647226214408875,
0.009772391058504581,
0.41552433371543884,
-0.341492623090744,
-0.1877511888742447,
-0.18714143335819244,
0.1694921851158142,
0.3568233847618103,
0.23776490986347198,
-0.022244594991207123,
0.060588233172893524,
0.0200413279235363,
0.2959122657775879,
-0.24975311756134033,
-0.08914095163345337,
-0.3473983108997345,
0.2146882563829422,
-0.1290704756975174,
0.37815061211586,
0.03100728429853916,
-0.5096861124038696,
0.1320849359035492,
0.7999986410140991,
-0.03927472233772278,
0.5096137523651123,
-0.07442909479141235,
-0.02209250070154667,
-0.02670213393867016,
0.09243429452180862,
0.3850873112678528,
0.08288798481225967,
0.3525213897228241,
0.05375692620873451,
-0.2341548204421997,
-0.22678811848163605,
-0.36537617444992065,
0.15038283169269562,
-0.23059174418449402,
-0.0933859646320343,
0.11499358713626862,
-0.11724584549665451,
-0.25323376059532166,
-0.47076019644737244,
-0.19960281252861023,
0.07499761879444122,
-0.18939842283725739,
0.14602728188037872,
-0.1899922788143158,
-0.18765796720981598,
-0.4007488787174225,
-0.39892199635505676,
-0.3629317283630371,
-0.5685097575187683,
-0.260099321603775,
0.35449299216270447,
-0.5420054793357849,
-0.19890323281288147,
0.4133729934692383,
0.059200260788202286,
0.14929980039596558,
-0.43868154287338257,
-0.27919748425483704,
-0.06756024062633514,
-0.23221361637115479,
-0.3018975257873535,
0.18280388414859772,
0.158146932721138,
-0.04709463566541672,
0.40904340147972107,
0.033578645437955856,
0.07189346849918365,
-0.07333866506814957,
-0.5325053334236145,
0.22972942888736725,
-0.24168413877487183,
0.09312920272350311,
0.192167267203331,
-0.2887464761734009,
0.1889665722846985,
-0.47068947553634644,
0.2868526577949524,
-0.011984140612185001,
0.09347154200077057,
-0.022206051275134087,
-0.06882964074611664,
-0.016226161271333694,
-0.10706733167171478,
-0.44470980763435364,
-0.4915526211261749,
-0.40105488896369934,
0.15966583788394928,
-0.32076480984687805,
-0.011916205286979675,
0.09153128415346146,
-0.06130477786064148,
0.17871159315109253,
-0.18092656135559082,
-0.0398540124297142,
-0.21074916422367096,
-0.17768310010433197,
0.029690349474549294,
-0.24675790965557098,
-0.09750770777463913,
-0.07436379045248032,
-0.0030583383049815893,
0.2528923749923706,
0.02789393998682499,
-0.19531315565109253,
0.026653505861759186,
-0.2030613273382187,
0.17262844741344452,
0.3333503305912018,
0.23528003692626953,
0.24455603957176208,
0.1802089661359787,
-0.2039492279291153,
-0.03230873867869377,
-0.1615828573703766,
0.16444621980190277,
0.08079979568719864,
0.22332915663719177,
0.013158510439097881,
0.167428657412529,
0.22132673859596252,
0.2721558213233948,
-0.001513047143816948,
0.06540919840335846,
0.4926968216896057,
0.033689260482788086,
0.2852625846862793,
-0.19937419891357422,
-0.15223996341228485,
0.35917237401008606,
-0.064615897834301,
0.18020132184028625,
0.18411464989185333,
0.05391937866806984,
-0.49811726808547974,
-0.12737511098384857,
0.09453334659337997,
-0.1506453901529312,
-0.3248206377029419,
0.1541629582643509,
-0.040158044546842575,
0.12398375570774078,
-0.09516572952270508,
-0.34989774227142334,
0.04261978715658188,
-0.08969147503376007,
0.2541392743587494,
0.15581005811691284,
-0.238289937376976,
-0.040866561233997345,
-0.5034112334251404,
-0.06545168161392212,
-0.28619179129600525,
0.35649991035461426,
0.20819365978240967,
0.265704482793808,
-0.3406350910663605,
-0.18939614295959473,
-0.059518225491046906,
0.1341717392206192,
0.14757849276065826,
-0.705264687538147,
-0.3108755648136139,
0.24828237295150757,
0.2551717162132263,
-0.03513592854142189,
0.10812824219465256,
-0.33804890513420105,
-0.057907525449991226,
0.46203744411468506,
0.16511793434619904,
-0.3659995198249817,
-0.13765299320220947,
0.2716059386730194,
0.18945154547691345,
0.09140085428953171,
0.059588950127363205,
-0.027327612042427063,
-0.1717238873243332,
-0.14476990699768066,
0.05631764605641365,
-0.22244027256965637,
-0.026378672569990158,
0.43884891271591187,
-0.1601877063512802,
-0.014355666935443878,
-0.30336353182792664,
0.22346492111682892,
0.17606939375400543,
-0.1793839931488037,
0.04008880630135536,
-0.08725635707378387,
-0.031155001372098923,
-0.024403251707553864,
-0.04644780978560448,
0.22219575941562653,
-0.33243483304977417,
-0.04476698487997055,
0.11197789758443832,
-0.3413735628128052,
0.4918048083782196,
0.152747243642807,
0.3442550003528595,
0.29256758093833923,
-0.16177749633789062,
0.05867212265729904,
-0.06449886411428452,
0.21314477920532227,
0.13820724189281464,
0.3538115918636322,
-0.5049095749855042,
-0.32531189918518066,
0.2326054722070694,
0.3477407991886139,
-0.10576067864894867,
0.4562174379825592,
0.2530541718006134,
-0.36335495114326477,
0.281696081161499,
0.004631218034774065,
0.9073782563209534,
-0.15923741459846497,
0.06631945818662643,
-0.013173224404454231,
-0.20736171305179596,
0.40772444009780884,
-0.30716878175735474,
0.012665025889873505,
-0.23162664473056793,
-0.05250707268714905,
-0.0314997136592865,
0.1162349209189415,
0.37244853377342224,
0.261729896068573,
-0.4031895697116852,
0.1282767951488495,
0.10523170977830887,
-0.02973571978509426,
-0.2424728274345398,
0.49630048871040344,
-0.27350476384162903,
-0.4457586407661438,
-0.15574102103710175,
0.19230139255523682,
0.03873012587428093,
-0.24782641232013702,
0.0037272791378200054,
-0.13160860538482666,
0.0787883847951889,
0.10533139854669571,
-0.3344314694404602,
-0.024585116654634476,
-0.18353596329689026,
0.08381683379411697,
-0.18339663743972778,
-0.18160411715507507,
0.22969388961791992,
-0.15304294228553772,
0.14999130368232727,
-0.0009478581487201154,
0.1856345385313034,
0.18463893234729767,
0.0655902549624443,
-0.07689174264669418,
0.15438224375247955,
-0.15988409519195557,
0.424572229385376,
-0.07691637426614761,
-0.19446712732315063,
0.15062323212623596,
0.15320318937301636,
-0.073113813996315,
-0.505407452583313,
0.10167666524648666,
0.0147132258862257,
-0.14132724702358246,
0.11821871995925903,
0.2922653555870056,
0.08730745315551758,
-0.20459720492362976,
0.20078198611736298,
0.1990915983915329,
-0.002794858068227768,
0.1231183186173439,
-0.1729196161031723,
-0.2294323742389679,
-0.3548344671726227,
-0.21418292820453644,
0.07169979065656662,
0.06192276254296303,
-0.15185928344726562,
0.09993823617696762,
-0.06212850660085678,
-0.31102514266967773,
0.22430159151554108,
0.3248918652534485,
-0.31351715326309204,
-0.20359469950199127,
-0.01495411153882742,
-0.5611593723297119,
-0.03163856267929077,
0.04893987998366356,
0.29022476077079773,
0.22769081592559814,
0.07142480462789536,
-0.20660778880119324,
0.027934301644563675,
0.27278366684913635,
0.002274962142109871,
0.3183095455169678,
-0.04891471564769745,
0.0769052729010582,
0.0972464382648468,
0.2931250035762787,
-0.4255703091621399,
-0.09186247736215591,
-0.09940825402736664,
0.06395669281482697,
-0.03104662522673607,
-0.059578265994787216,
0.225221186876297,
0.18361234664916992,
0.267365962266922,
-0.12631797790527344,
-0.1126418262720108,
-0.20488674938678741,
-0.23271164298057556,
0.04492761567234993,
-0.04559886083006859,
0.24476376175880432,
0.13326668739318848,
-0.17323026061058044,
0.10271072387695312,
-0.09810985624790192,
0.2340751588344574,
-0.006762668956071138,
-0.1562599241733551,
0.3492743968963623,
0.06580760329961777,
-0.03043157234787941,
0.22294163703918457,
0.07305924594402313,
0.15385131537914276,
0.19394667446613312,
0.23207509517669678,
0.1487441211938858,
-0.007951166480779648,
-0.07115225493907928,
0.223699688911438,
0.40414416790008545,
0.25198832154273987,
0.03719725087285042,
-0.27127406001091003,
0.08430244028568268,
-0.02153138630092144,
0.07442554086446762,
0.26113370060920715,
0.2805999517440796,
-0.07661661505699158,
-0.04500560089945793,
0.32525795698165894,
0.33346936106681824,
-0.12436874210834503,
-0.16319851577281952,
0.31829768419265747,
-0.013975907117128372,
0.420430451631546,
0.48396921157836914,
0.44228339195251465,
0.17726074159145355,
0.26322227716445923,
-0.2364407479763031,
0.021929530426859856,
-0.11948085576295853,
0.1380637139081955,
0.09771772474050522,
-0.23486053943634033,
-0.05544997751712799,
0.3983244001865387,
0.10416100919246674,
0.15177863836288452,
0.12339526414871216,
0.19969365000724792,
0.22578053176403046,
0.4948224723339081,
0.3259193003177643,
0.228033185005188,
0.052730098366737366,
0.031461186707019806,
0.12016303092241287,
0.012214651331305504,
0.16796445846557617,
0.05513228476047516,
0.5647083520889282,
-0.15059147775173187,
-0.16594471037387848,
0.17966002225875854,
0.23766277730464935,
-0.013535761274397373,
-0.15443776547908783,
0.07370210438966751,
-0.02064014971256256,
-0.3714704215526581,
-0.08588619530200958,
0.09952042251825333,
-0.11062908172607422,
0.3970494270324707,
0.19652114808559418,
0.2857396602630615,
-0.14176689088344574,
0.18137980997562408,
0.1122644916176796,
0.24675151705741882,
-0.2470308542251587,
0.35048404335975647,
0.019593842327594757,
-0.11920356005430222,
-0.10851967334747314,
0.09912571310997009,
0.22374024987220764,
-0.11807197332382202,
-0.16078509390354156,
0.20195886492729187,
-0.2517105042934418,
-0.00799519568681717,
-0.045795682817697525,
0.27255985140800476,
0.2854667007923126,
0.2857905924320221,
0.33678868412971497,
0.18496380746364594,
-0.2013082504272461,
-0.10975608974695206,
0.2182750701904297,
-0.09864173829555511,
-0.1151624321937561,
0.1749022752046585,
-0.05417446047067642,
-0.1403590738773346,
-0.28934919834136963,
-0.032144706696271896,
-0.5881888270378113,
-0.17564725875854492,
0.3687169849872589,
-0.2487146258354187,
-0.028849205002188683,
-0.17870384454727173,
0.12499664723873138,
0.09505178034305573,
0.32847654819488525,
0.053480327129364014,
0.2066309154033661,
0.05874917656183243,
-0.3791367709636688,
-0.3151339590549469,
0.00044194041402079165,
-0.13133153319358826,
-0.22058264911174774,
-0.3215101361274719,
0.259194552898407,
0.277763694524765,
0.119549959897995,
-0.010550525039434433,
0.3541169762611389,
0.12413264065980911,
0.013410544022917747,
-0.3721802830696106,
0.2482224553823471,
0.02092674747109413,
0.1585821658372879,
0.15023808181285858,
-0.1453205645084381,
-0.07848529517650604,
0.060299426317214966,
0.04435918852686882,
-0.20870642364025116,
-0.12151689827442169,
0.31265196204185486,
-0.03965156152844429,
0.44042670726776123,
0.18882228434085846,
0.37604716420173645,
-0.22459925711154938,
-0.17513616383075714,
-0.3231019079685211,
-0.2360529601573944,
-0.38893523812294006,
0.23744118213653564,
0.18504378199577332,
0.21815234422683716,
-0.11748658865690231,
-0.02937723696231842,
-0.11898468434810638,
0.3965699374675751,
0.022711575031280518,
0.29449692368507385,
-0.001513727125711739,
0.19624105095863342,
0.26749780774116516,
-0.16774559020996094,
0.07432647049427032,
0.5738521814346313,
0.056153200566768646,
0.03178391978144646,
0.08775777369737625,
-0.3447558581829071,
-0.016546359285712242,
0.20087750256061554,
-0.08907520771026611,
0.12100125104188919,
0.17689953744411469,
0.2702556550502777,
0.18543702363967896,
-0.45422935485839844,
-0.04644890874624252,
0.25049933791160583,
0.21816076338291168,
-0.22880981862545013,
0.2579585015773773,
0.17782539129257202,
-0.24449224770069122,
0.01925460435450077,
0.024773381650447845,
0.25217536091804504,
-0.3240346908569336,
0.2067229151725769,
-0.23751164972782135
] |
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.36098864674568176,
-0.2430482804775238,
-0.13333873450756073,
-0.10879009962081909,
-0.048819683492183685,
-0.15857158601284027,
0.4023332893848419,
0.10787016153335571,
0.17236177623271942,
0.04421286657452583,
-0.03236444666981697,
0.01676095649600029,
-0.13741017878055573,
0.3313928544521332,
0.5176853537559509,
-0.23842279613018036,
0.13700149953365326,
-0.04148365184664726,
-0.21366989612579346,
-0.12390410900115967,
-0.2755305767059326,
0.14412838220596313,
-0.013041242957115173,
0.0020681119058281183,
-0.3241948187351227,
-0.33827006816864014,
-0.24918025732040405,
0.02009132318198681,
0.08553670346736908,
-0.04900607094168663,
-0.10516132414340973,
0.23720882833003998,
-0.10009348392486572,
0.14560286700725555,
-0.00010290170030202717,
-0.2386932224035263,
0.15245544910430908,
-0.08552057296037674,
0.12337784469127655,
0.1465127021074295,
-0.43350648880004883,
-0.5227149724960327,
-0.2843218445777893,
-0.12648388743400574,
-0.05348547175526619,
0.12181119620800018,
0.21257218718528748,
-0.1292349100112915,
0.27360618114471436,
0.0016653520287945867,
0.2837965190410614,
0.23644958436489105,
0.042041417211294174,
-0.15838955342769623,
0.38808882236480713,
0.032544102519750595,
-0.08884996175765991,
-0.1677183359861374,
0.8024857044219971,
0.024499356746673584,
-0.14155662059783936,
0.17998023331165314,
-0.1484936773777008,
-0.3167269825935364,
-0.11348486691713333,
-0.11712167412042618,
-0.15556009113788605,
-0.25859785079956055,
-0.08004799485206604,
0.5484519004821777,
0.18921375274658203,
-0.23127172887325287,
-0.35349833965301514,
-0.19253692030906677,
-0.1706317812204361,
0.1413884311914444,
-0.11349611729383469,
0.2801834046840668,
0.11498596519231796,
-0.11051482707262039,
0.2131233662366867,
-0.4164275825023651,
-0.08007608354091644,
0.04799483343958855,
0.021341709420084953,
0.5528359413146973,
-0.13320279121398926,
0.08079791814088821,
0.2142961025238037,
0.04147956520318985,
0.03814881294965744,
-0.0028292390052229166,
-0.08361174911260605,
0.11860848218202591,
-0.31189635396003723,
-0.16515125334262848,
0.08560618758201599,
0.05463734269142151,
0.16153131425380707,
0.10435767471790314,
0.1731625199317932,
0.3329556882381439,
-0.017584865912795067,
0.24729380011558533,
0.019155578687787056,
0.07905557006597519,
-0.02300504967570305,
-0.09287681430578232,
0.2940821647644043,
-0.46820324659347534,
0.11208420246839523,
0.0056072440929710865,
-0.13006092607975006,
0.014156593009829521,
-0.30594682693481445,
0.1412539929151535,
-0.07820579409599304,
0.05452098324894905,
-0.05536248907446861,
-0.061357758939266205,
0.20528030395507812,
-0.06393248587846756,
-0.09961332380771637,
0.13236694037914276,
0.15290391445159912,
0.051107391715049744,
-0.18640589714050293,
0.2986692786216736,
0.04785202071070671,
-0.2754706144332886,
-0.05068960040807724,
0.33980295062065125,
-0.17619295418262482,
-0.08526021242141724,
0.03250402212142944,
0.24648143351078033,
-0.12374255806207657,
0.25103941559791565,
-0.1529010683298111,
0.09914925694465637,
0.4014098048210144,
-0.023853886872529984,
0.12983448803424835,
0.1362224966287613,
-0.10117560625076294,
0.05250824615359306,
-0.050818219780921936,
-0.16879937052726746,
-0.3668777346611023,
-0.01545384619385004,
0.07969319075345993,
-0.08155705779790878,
-0.373529314994812,
0.2293698787689209,
-0.26969394087791443,
-0.3449990749359131,
0.08614038676023483,
0.6289966106414795,
-0.0880315974354744,
0.0049773878417909145,
0.2904130220413208,
0.10500725358724594,
0.21247456967830658,
-0.334542453289032,
-0.09299562126398087,
0.30012965202331543,
-0.47301337122917175,
-0.33381387591362,
-0.029049811884760857,
-0.2311614602804184,
-0.0021574017591774464,
0.05201376602053642,
-0.04405122250318527,
-0.09617476165294647,
-0.007374183274805546,
0.2651542127132416,
0.2889782190322876,
-0.2647594213485718,
-0.2074529081583023,
0.20985998213291168,
-0.19305753707885742,
-0.027348626405000687,
0.21758200228214264,
0.4717177748680115,
0.2743145525455475,
-0.12609195709228516,
-0.3171696662902832,
0.6667872667312622,
-0.15199773013591766,
0.034347888082265854,
-0.08015336841344833,
-0.2497338205575943,
0.1098252683877945,
0.36478275060653687,
0.29098352789878845,
-0.21672624349594116,
0.14394262433052063,
0.03966789320111275,
-0.04322308301925659,
-0.14331871271133423,
0.14157524704933167,
0.2905840277671814,
0.21364343166351318,
-0.0768427923321724,
-0.035603951662778854,
-0.3173748552799225,
-0.5034195184707642,
-0.08276570588350296,
-0.13777972757816315,
0.22589318454265594,
0.08006676286458969,
-0.12185049057006836,
0.15996696054935455,
-0.09539949893951416,
-0.1808454543352127,
-0.2863188683986664,
0.22057367861270905,
0.164114847779274,
0.13974572718143463,
-0.025231536477804184,
-0.26860252022743225,
0.42338448762893677,
0.3195321559906006,
0.007503450382500887,
-0.34957507252693176,
-0.0012605427764356136,
0.02813665196299553,
-0.03372466191649437,
-0.09817848354578018,
0.13195522129535675,
-0.07955892384052277,
-0.40436792373657227,
0.17950423061847687,
0.2557622492313385,
-0.18804866075515747,
0.338291198015213,
0.256155401468277,
0.6219779253005981,
0.31335917115211487,
-0.01916474662721157,
0.3991296589374542,
0.0698496475815773,
0.009005656465888023,
-0.15015804767608643,
0.06758512556552887,
0.39075130224227905,
0.14093735814094543,
0.018282435834407806,
-0.08266541361808777,
0.20947547256946564,
0.2510531544685364,
-0.12551148235797882,
-0.13566838204860687,
0.06380335986614227,
0.3023630678653717,
0.05203671380877495,
0.38603290915489197,
-0.03373255580663681,
-0.1731179654598236,
0.12163142114877701,
0.6009009480476379,
-0.1979755014181137,
0.53579181432724,
-0.07561571896076202,
-0.3768768012523651,
0.0995149165391922,
0.07518734037876129,
0.45741549134254456,
-0.035216767340898514,
0.3183378577232361,
0.10941113531589508,
-0.0901598110795021,
-0.08320994675159454,
-0.1180771216750145,
0.12429818511009216,
-0.11582618206739426,
-0.10363026708364487,
0.088911272585392,
-0.09437645226716995,
-0.2065751552581787,
-0.4662321209907532,
-0.2011835128068924,
0.06381013244390488,
-0.0539061538875103,
0.14870917797088623,
-0.07335586845874786,
0.14187739789485931,
-0.22426259517669678,
-0.3412419855594635,
-0.2206401824951172,
-0.377215176820755,
-0.2209181785583496,
0.2375551462173462,
-0.33349090814590454,
-0.26365402340888977,
0.29996395111083984,
0.09289000928401947,
0.3302304148674011,
-0.31722569465637207,
-0.2581765949726105,
-0.27004900574684143,
-0.29206833243370056,
-0.04779959097504616,
0.2156934291124344,
0.08474474400281906,
-0.08970603346824646,
0.3635441064834595,
0.03339644894003868,
0.38120561838150024,
-0.09194521605968475,
-0.5689719319343567,
0.11916466802358627,
-0.12268169224262238,
0.06853829324245453,
0.1305503100156784,
-0.1295527219772339,
0.1467071771621704,
-0.24627649784088135,
0.11921203136444092,
-0.2974478006362915,
0.05942511186003685,
-0.027762603014707565,
-0.10274115204811096,
-0.13544858992099762,
-0.11276040226221085,
-0.2742822468280792,
-0.4515150785446167,
-0.39902785420417786,
0.40147045254707336,
-0.13857899606227875,
0.08096277713775635,
0.07720260322093964,
-0.04109400510787964,
0.1876617819070816,
-0.010772711597383022,
-0.19632293283939362,
-0.18569862842559814,
-0.18120026588439941,
0.22953695058822632,
-0.16530446708202362,
-0.23285061120986938,
-0.38343679904937744,
-0.37017080187797546,
0.14092931151390076,
0.17191894352436066,
-0.04343705251812935,
0.09238627552986145,
-0.40016767382621765,
-0.03429195657372475,
0.3072669804096222,
0.4078638255596161,
0.3317817449569702,
0.09750708937644958,
-0.11545046418905258,
-0.18439055979251862,
0.008715386502444744,
0.05107472836971283,
0.23511460423469543,
-0.11910277605056763,
0.011680099181830883,
0.11889535188674927,
0.09494088590145111,
0.31517383456230164,
-0.20414800941944122,
0.097599096596241,
0.3520652651786804,
0.08416097611188889,
0.22091375291347504,
-0.07268571108579636,
-0.27049151062965393,
0.12742364406585693,
-0.1682581603527069,
0.16810646653175354,
-0.04174680635333061,
0.07722455263137817,
-0.33644089102745056,
-0.04967375844717026,
-0.015291252173483372,
-0.2027970403432846,
-0.10335147380828857,
0.381523072719574,
-0.05140967294573784,
0.12082069367170334,
-0.006834878120571375,
-0.3145821988582611,
-0.20328202843666077,
-0.0024616881273686886,
0.31778693199157715,
-0.124195896089077,
-0.05327187478542328,
-0.07491283863782883,
-0.36060452461242676,
0.10256404429674149,
-0.4060277044773102,
0.41507256031036377,
0.05351359397172928,
0.03819606825709343,
-0.1957622766494751,
-0.10382851958274841,
-0.1164117380976677,
-0.07207483053207397,
0.5585857033729553,
-0.7669788002967834,
-0.24779736995697021,
0.26717570424079895,
-0.1752997636795044,
-0.2825009822845459,
0.045687057077884674,
-0.6122176051139832,
-0.18535368144512177,
0.33561018109321594,
0.2638910710811615,
-0.2619715631008148,
0.02222181111574173,
0.1353655904531479,
0.20766432583332062,
-0.036696843802928925,
0.11098150163888931,
-0.07391458004713058,
-0.20885993540287018,
-0.3884415924549103,
0.17257197201251984,
0.1043168380856514,
-0.12451547384262085,
0.41625961661338806,
-0.09967988729476929,
-0.14482638239860535,
-0.02576884999871254,
0.18149834871292114,
0.06212548166513443,
-0.2512046694755554,
0.035044025629758835,
-0.23518408834934235,
-0.006182063836604357,
-0.1770448237657547,
-0.36598601937294006,
0.18198084831237793,
0.048904936760663986,
-0.02616681531071663,
0.15006263554096222,
-0.31899014115333557,
0.5837526321411133,
0.06183638796210289,
0.42664363980293274,
0.1943756639957428,
-0.05781864374876022,
0.0082541573792696,
-0.4315265417098999,
0.12207380682229996,
0.049535077065229416,
0.4362936019897461,
-0.5069685578346252,
-0.2749757170677185,
0.3288794755935669,
0.21967104077339172,
-0.2500651776790619,
0.3241351842880249,
0.0630878210067749,
-0.17477622628211975,
0.23111210763454437,
0.05909711867570877,
1.0470572710037231,
-0.28538691997528076,
0.08258498460054398,
-0.07689464837312698,
-0.3744666874408722,
0.36894190311431885,
-0.4711642861366272,
0.1320774406194687,
-0.4165920317173004,
-0.4293307065963745,
-0.11590421199798584,
-0.12748178839683533,
0.18846172094345093,
0.24918028712272644,
-0.4533569812774658,
0.11044333130121231,
0.03376390039920807,
0.20774580538272858,
-0.07784997671842575,
0.41880086064338684,
-0.23526842892169952,
-0.39074888825416565,
0.10439543426036835,
0.24565677344799042,
0.01259253267198801,
0.10328837484121323,
-0.2052791565656662,
-0.1338416188955307,
0.12230339646339417,
-0.03825586289167404,
-0.47046586871147156,
0.21535253524780273,
-0.0674794614315033,
0.25096675753593445,
-0.033118680119514465,
-0.12068136781454086,
0.07493472844362259,
-0.2031743973493576,
0.11265983432531357,
0.09633393585681915,
0.06401432305574417,
0.16829687356948853,
-0.09945248067378998,
0.04594866558909416,
0.29332101345062256,
-0.05734710395336151,
0.39248594641685486,
-0.030671490356326103,
-0.19838668406009674,
0.16369019448757172,
0.1191079318523407,
-0.17074383795261383,
-0.40248826146125793,
0.04869118332862854,
-0.06018928810954094,
0.02032194659113884,
0.08976395428180695,
0.39422285556793213,
-0.031686555594205856,
-0.27789419889450073,
0.1909075677394867,
0.13372598588466644,
-0.08440617471933365,
0.2934398353099823,
-0.1149672344326973,
-0.10698407143354416,
-0.2799263596534729,
-0.13669247925281525,
0.1460369974374771,
-0.09616591036319733,
-0.07942985743284225,
0.3056715726852417,
-0.13498486578464508,
-0.43385034799575806,
0.2840721011161804,
0.6293210983276367,
-0.4850784242153168,
0.003691671881824732,
-0.32161304354667664,
-0.6450654864311218,
-0.11302204430103302,
0.13392814993858337,
0.2503410577774048,
0.12126655876636505,
-0.16052643954753876,
-0.13936574757099152,
-0.2133232057094574,
0.2515178620815277,
0.2450024038553238,
0.2780740261077881,
-0.13371680676937103,
-0.1324388086795807,
0.25733181834220886,
0.4048437476158142,
-0.4375583231449127,
-0.08299173414707184,
-0.16185221076011658,
0.13447149097919464,
0.3316448926925659,
-0.1460803896188736,
0.18192003667354584,
0.1513402909040451,
0.16559553146362305,
-0.038690049201250076,
-0.1681569367647171,
-0.21878519654273987,
-0.2697502076625824,
0.0720074400305748,
-0.08650273084640503,
0.15661871433258057,
0.17917370796203613,
0.03786034882068634,
0.08185195922851562,
-0.16963844001293182,
0.29376348853111267,
-0.06193923577666283,
-0.10260912030935287,
0.26471298933029175,
-0.0327845923602581,
-0.05745323747396469,
0.14386244118213654,
0.009339825250208378,
0.046773478388786316,
-0.010986543260514736,
0.19352714717388153,
0.13486061990261078,
0.3256728947162628,
-0.150068998336792,
0.05365189164876938,
0.3959351181983948,
0.4930194318294525,
-0.10050271451473236,
-0.014537487179040909,
0.10710093379020691,
0.05019581690430641,
0.20386722683906555,
0.24014011025428772,
-0.12643948197364807,
-0.002731749787926674,
0.10493115335702896,
0.11442990601062775,
0.326023131608963,
-0.2255145162343979,
-0.21327422559261322,
0.29502931237220764,
-0.09166796505451202,
0.30218395590782166,
0.45596858859062195,
0.2727414071559906,
0.07486282289028168,
0.44526368379592896,
-0.21985450387001038,
0.43966904282569885,
-0.2672579288482666,
0.3010181486606598,
0.15159118175506592,
-0.199671670794487,
-0.1657266765832901,
0.34111103415489197,
0.13336092233657837,
0.05909252166748047,
0.21533581614494324,
0.07625288516283035,
0.08075016736984253,
0.4413011968135834,
0.21588134765625,
0.34555041790008545,
0.04951367899775505,
0.05850188061594963,
0.11244454979896545,
0.22379226982593536,
0.3284391164779663,
0.12376595288515091,
0.19692538678646088,
-0.1285904347896576,
0.04665206000208855,
-0.07428951561450958,
0.3286125659942627,
-0.20253780484199524,
-0.043969444930553436,
0.4355279505252838,
-0.07044291496276855,
-0.2919859290122986,
0.08138016611337662,
0.13365335762500763,
-0.2037668377161026,
0.4764043688774109,
0.027385912835597992,
0.3670365512371063,
0.09366118162870407,
0.38178572058677673,
0.044027913361787796,
0.012791548855602741,
-0.36429762840270996,
0.21067160367965698,
0.09456170350313187,
0.04580998793244362,
-0.1554965376853943,
0.3691650629043579,
0.23444361984729767,
-0.04134559631347656,
-0.31026020646095276,
0.5758237242698669,
-0.30549222230911255,
0.005496279336512089,
-0.08149493485689163,
0.2868722081184387,
0.15792299807071686,
0.4094845652580261,
0.1979365348815918,
0.1584172397851944,
-0.18920879065990448,
-0.2466735541820526,
0.01801353320479393,
-0.2632715106010437,
0.05461907759308815,
0.1511256992816925,
-0.10839588940143585,
-0.2024659961462021,
-0.3343569338321686,
0.14450210332870483,
-0.5961222648620605,
-0.20819130539894104,
0.2707667946815491,
-0.30623364448547363,
0.0033912844955921173,
-0.025952894240617752,
0.11645766347646713,
0.04095454514026642,
0.3355060815811157,
0.1505194455385208,
0.4412902593612671,
-0.10460150986909866,
-0.24396032094955444,
-0.3743426203727722,
0.0297325998544693,
0.10279856622219086,
-0.1452239602804184,
-0.16904214024543762,
0.07202115654945374,
0.35308462381362915,
0.16911260783672333,
-0.09046965092420578,
0.2801842987537384,
-0.0896499902009964,
-0.12126173824071884,
-0.2620972692966461,
0.47051599621772766,
0.25034257769584656,
0.2977392375469208,
0.1526474952697754,
-0.06191461905837059,
-0.08349186182022095,
0.13309401273727417,
0.17209680378437042,
-0.3086574971675873,
-0.1317838728427887,
-0.031115539371967316,
-0.258413165807724,
0.3762410581111908,
0.057452984154224396,
0.4025654196739197,
-0.24087105691432953,
-0.07904581725597382,
-0.23280926048755646,
-0.20089410245418549,
-0.25695258378982544,
0.10513896495103836,
0.13298644125461578,
0.15058614313602448,
-0.028600864112377167,
-0.11165214329957962,
-0.18172776699066162,
-0.041937459260225296,
-0.0280584879219532,
0.5094858407974243,
-0.16846758127212524,
0.13104009628295898,
-0.0654512420296669,
-0.09676211327314377,
0.03217105567455292,
0.24471375346183777,
0.12301167845726013,
-0.04561878368258476,
0.01579662412405014,
-0.2617708146572113,
0.05466073751449585,
0.19933629035949707,
-0.414224237203598,
-0.1303802728652954,
0.05494832620024681,
0.05668581649661064,
0.2064250409603119,
-0.31331688165664673,
0.0007216891972348094,
0.14394177496433258,
0.09252242743968964,
-0.08688299357891083,
0.18796749413013458,
0.23192861676216125,
-0.36720627546310425,
-0.07413449138402939,
-0.13598062098026276,
0.1137867122888565,
-0.21011683344841003,
-0.05236600339412689,
-0.32389959692955017
] |
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.19102658331394196,
0.05319967865943909,
-0.0776924341917038,
0.010843316093087196,
0.0387280210852623,
-0.08067557960748672,
0.5347976684570312,
0.037728458642959595,
-0.02048002928495407,
0.14164429903030396,
-0.11443256586790085,
0.06805203855037689,
-0.184329092502594,
0.2480085790157318,
0.3943486213684082,
-0.13489526510238647,
0.020918389782309532,
-0.15787427127361298,
0.21387287974357605,
-0.12651664018630981,
-0.11702992767095566,
0.14626668393611908,
0.22557926177978516,
0.07062922418117523,
-0.3789374530315399,
-0.21154843270778656,
-0.17507490515708923,
0.01530641783028841,
0.04422476515173912,
-0.28076183795928955,
0.026356354355812073,
0.0578121654689312,
-0.04845835641026497,
0.16283980011940002,
-0.00010367194772697985,
0.1411677896976471,
-0.0540863536298275,
-0.07715057581663132,
0.13243168592453003,
-0.1961725950241089,
-0.2736227512359619,
-0.49074092507362366,
-0.07530039548873901,
-0.10899846255779266,
-0.13036563992500305,
-0.0766441822052002,
0.017850590869784355,
-0.4681304097175598,
0.17976538836956024,
0.18165452778339386,
0.2313518226146698,
-0.09883242845535278,
-0.47105780243873596,
-0.05469970777630806,
0.15439103543758392,
-0.18097186088562012,
-0.01084093376994133,
0.24466264247894287,
0.20244605839252472,
0.1673576533794403,
-0.21047542989253998,
0.43986526131629944,
0.16833630204200745,
-0.2313733845949173,
-0.1968752145767212,
0.16493821144104004,
-0.14847108721733093,
-0.23617835342884064,
-0.15226665139198303,
0.567722737789154,
0.08080551028251648,
-0.322899729013443,
-0.3928546607494354,
-0.27045243978500366,
0.1999153345823288,
-0.2888873815536499,
0.05188316851854324,
0.21130383014678955,
0.21760396659374237,
0.17513146996498108,
0.2317298948764801,
-0.6836286187171936,
0.05401239171624184,
0.13562990725040436,
-0.09718269109725952,
0.5137054920196533,
-0.001530186622403562,
0.24394860863685608,
0.08156797289848328,
0.14022767543792725,
0.02083463966846466,
-0.007843529805541039,
-0.08978647738695145,
-0.10025504231452942,
-0.24091804027557373,
0.10668095201253891,
-0.1642867922782898,
-0.015039259567856789,
0.09461315721273422,
-0.09356965124607086,
0.07274805009365082,
0.15369084477424622,
0.10897873342037201,
0.2050892859697342,
0.1776740998029709,
0.11803651601076126,
0.23663489520549774,
0.06276820600032806,
0.28873246908187866,
-0.47104546427726746,
-0.07780615985393524,
0.019507186487317085,
0.07468492537736893,
-0.19124145805835724,
-0.17271417379379272,
-0.04594665765762329,
0.026984602212905884,
0.06635228544473648,
-0.09597743302583694,
0.10529424250125885,
-0.20619845390319824,
-0.29358240962028503,
0.09900444746017456,
0.14490115642547607,
0.12773077189922333,
0.14136044681072235,
-0.2030743956565857,
0.3725823760032654,
-0.2662517726421356,
-0.25718000531196594,
-0.22774577140808105,
0.34097054600715637,
-0.37485355138778687,
0.0921015590429306,
-0.20217584073543549,
-0.08082306385040283,
-0.047622837126255035,
0.3292246162891388,
-0.10714630782604218,
-0.15804940462112427,
0.09158696979284286,
-0.13378366827964783,
0.0519525408744812,
-0.12472882121801376,
0.012554716318845749,
0.1580182909965515,
0.05701840668916702,
-0.3566267788410187,
-0.46264633536338806,
-0.030036350712180138,
-0.2527823746204376,
-0.2549270987510681,
-0.2875261604785919,
0.20567233860492706,
-0.16942471265792847,
-0.23213860392570496,
0.2545638382434845,
0.7391153573989868,
0.12738037109375,
-0.11755993962287903,
0.28276556730270386,
-0.12431813776493073,
-0.1663297414779663,
-0.276461660861969,
-0.07027138024568558,
0.23627805709838867,
-0.5743149518966675,
-0.4132933020591736,
0.22535690665245056,
-0.1976185292005539,
0.20691616833209991,
0.1966436505317688,
-0.3473392426967621,
0.010994749143719673,
-0.1177358403801918,
0.3534204959869385,
0.5970431566238403,
-0.29234689474105835,
-0.13038714230060577,
0.21414168179035187,
-0.26358315348625183,
0.08893907815217972,
0.23571549355983734,
0.20313432812690735,
0.10272783041000366,
0.19822047650814056,
0.06784634292125702,
0.46302202343940735,
-0.005303345154970884,
-0.15738677978515625,
-0.140219584107399,
-0.19028432667255402,
0.3542567193508148,
0.23231321573257446,
-0.03815126791596413,
-0.2863728106021881,
0.19471661746501923,
0.08990832418203354,
0.23909276723861694,
-0.14268292486667633,
0.09645356237888336,
0.29860156774520874,
0.04686630889773369,
0.017902735620737076,
-0.1953505426645279,
-0.07084271311759949,
-0.33365485072135925,
0.1470627784729004,
0.03686686232686043,
0.38274434208869934,
0.2917513847351074,
-0.2662767469882965,
0.17797057330608368,
-0.3421458899974823,
-0.42589741945266724,
-0.3459896743297577,
0.1614496260881424,
0.22301208972930908,
-0.06804078072309494,
0.23298688232898712,
-0.2800183892250061,
0.5938703417778015,
0.03904642164707184,
0.1116577759385109,
-0.3817913234233856,
0.05302738398313522,
0.068630151450634,
-0.18937242031097412,
-0.23764754831790924,
0.2393786609172821,
-0.17180947959423065,
-0.24051548540592194,
-0.03989299759268761,
0.4583500921726227,
0.2323986440896988,
0.04883723333477974,
-0.07186649739742279,
0.11908400803804398,
0.3836654722690582,
0.109457828104496,
0.1813325136899948,
-0.22942332923412323,
-0.18228229880332947,
-0.12372509390115738,
0.08271973580121994,
0.5217265486717224,
0.32446733117103577,
0.1004314124584198,
-0.1075853630900383,
0.035773299634456635,
0.19101369380950928,
-0.04159838706254959,
-0.3569164574146271,
-0.26501837372779846,
0.055667854845523834,
0.0556831955909729,
0.43478015065193176,
0.15920816361904144,
-0.5791934728622437,
-0.07125266641378403,
0.7180765867233276,
0.009767593815922737,
0.16936340928077698,
-0.06936650723218918,
0.055839162319898605,
0.10119723528623581,
0.18955710530281067,
0.5201976299285889,
0.21229209005832672,
0.23894339799880981,
0.2982464134693146,
-0.016514433547854424,
-0.19407613575458527,
-0.18283160030841827,
-0.10593827068805695,
-0.23709958791732788,
0.0795014500617981,
-0.03629197180271149,
-0.20300741493701935,
-0.25750303268432617,
-0.40827229619026184,
-0.15094922482967377,
0.14719338715076447,
-0.029232624918222427,
-0.029426805675029755,
0.024503348395228386,
-0.3005193769931793,
-0.18015408515930176,
-0.598666787147522,
-0.30133506655693054,
-0.6115761995315552,
-0.18113650381565094,
0.24471385776996613,
-0.604782223701477,
-0.04670187830924988,
0.42294254899024963,
-0.1425318717956543,
-0.040671490132808685,
-0.4698757231235504,
-0.502567708492279,
0.25657713413238525,
-0.04210576415061951,
-0.40647774934768677,
0.09187859296798706,
0.1579803079366684,
-0.032724883407354355,
0.2512928545475006,
-0.1421436071395874,
-0.06450466066598892,
0.11132229119539261,
-0.40088212490081787,
0.18253956735134125,
-0.20621547102928162,
0.14822924137115479,
0.10054919868707657,
-0.33477893471717834,
-0.05729099363088608,
-0.3021550476551056,
0.321050226688385,
0.015002567321062088,
0.14567580819129944,
-0.06467117369174957,
0.07678594440221786,
0.04754135385155678,
-0.06537122279405594,
-0.7204001545906067,
-0.5405853390693665,
-0.19820353388786316,
0.010396976955235004,
-0.16401928663253784,
0.1104087084531784,
0.2534596621990204,
0.08905550837516785,
0.011973937973380089,
-0.14562489092350006,
-0.004496764857321978,
-0.22575737535953522,
-0.3820061683654785,
-0.029185350984334946,
-0.10998881608247757,
-0.15680618584156036,
-0.030467959120869637,
-0.07167360931634903,
0.2077924758195877,
0.1767011433839798,
-0.1378646343946457,
0.016673263162374496,
-0.19390517473220825,
0.22754697501659393,
0.03532569855451584,
0.4253292679786682,
0.15989689528942108,
0.15433090925216675,
-0.03260476514697075,
-0.04357568919658661,
-0.15859615802764893,
0.3780443072319031,
0.20333072543144226,
0.012777688913047314,
-0.06914550065994263,
0.06344672292470932,
0.05946257337927818,
0.23263445496559143,
0.1773546040058136,
0.06412973999977112,
0.2799992859363556,
-0.3380759656429291,
0.39777687191963196,
-0.140987828373909,
-0.20671233534812927,
0.21829025447368622,
-0.032391082495450974,
0.01405921671539545,
0.15284428000450134,
0.027188321575522423,
-0.30398592352867126,
-0.08513565361499786,
0.07785645872354507,
-0.01667092554271221,
-0.37732186913490295,
0.3567856252193451,
-0.15391504764556885,
0.0320725217461586,
-0.15070512890815735,
-0.1522398442029953,
0.10294810682535172,
0.18176791071891785,
0.029573649168014526,
0.0969727411866188,
-0.34982576966285706,
0.18323154747486115,
-0.5369266271591187,
-0.09914210438728333,
-0.2999083399772644,
0.10797073692083359,
0.13050737977027893,
0.2762563228607178,
-0.18664763867855072,
0.002990647219121456,
0.017506688833236694,
0.015031491406261921,
0.3966662585735321,
-0.4808495342731476,
-0.4820994436740875,
0.20044942200183868,
0.02125723473727703,
-0.1305934488773346,
-0.08556820452213287,
-0.32787472009658813,
-0.01884223334491253,
0.34981846809387207,
0.056296106427907944,
-0.30798909068107605,
-0.15863589942455292,
0.06762199103832245,
0.38207492232322693,
-0.2028709203004837,
0.0607278011739254,
-0.20347194373607635,
-0.17284730076789856,
-0.09921932220458984,
0.197016179561615,
0.020977118983864784,
0.12047991901636124,
0.28898850083351135,
-0.12231865525245667,
0.031743843108415604,
-0.08469422906637192,
0.19886371493339539,
0.14647875726222992,
0.09171265363693237,
0.11640647053718567,
-0.16100898385047913,
0.050102222710847855,
0.06765927374362946,
-0.14851929247379303,
0.4402639865875244,
-0.3087305724620819,
-0.2286408692598343,
0.0787777453660965,
-0.08295273780822754,
0.4901842772960663,
0.2631431818008423,
0.13381965458393097,
0.0982678011059761,
0.01776634156703949,
-0.08510272949934006,
-0.029889516532421112,
0.30468103289604187,
0.21235285699367523,
0.34130042791366577,
-0.5329064726829529,
-0.7967946529388428,
0.21854670345783234,
0.3822431266307831,
-0.053677886724472046,
0.34107837080955505,
0.19012092053890228,
-0.44653287529945374,
0.20732375979423523,
-0.08302651345729828,
0.9011123180389404,
-0.13063424825668335,
0.22357749938964844,
0.14950531721115112,
-0.13183747231960297,
0.3479490578174591,
-0.32859084010124207,
0.0038767270743846893,
-0.2408124804496765,
-0.04374479502439499,
-0.036498308181762695,
0.05165476351976395,
0.4080275297164917,
0.17105652391910553,
-0.32534438371658325,
0.21908119320869446,
-0.0632045641541481,
-0.024665463715791702,
-0.2653283476829529,
0.5389799475669861,
-0.340544193983078,
-0.3104391098022461,
0.011744183488190174,
0.12111257761716843,
0.016459448263049126,
-0.12402018904685974,
-0.03200502321124077,
-0.034630537033081055,
-0.10270915925502777,
-0.04994456097483635,
-0.22205132246017456,
-0.013993312604725361,
-0.33447694778442383,
0.2656896114349365,
-0.29523175954818726,
-0.3578466475009918,
0.045335572212934494,
0.20261529088020325,
-0.0023019916843622923,
-0.010598516091704369,
0.2655404806137085,
0.07410967350006104,
0.11827315390110016,
0.09958437830209732,
0.22594201564788818,
-0.22875823080539703,
0.40695691108703613,
0.04969844967126846,
-0.406669944524765,
0.138482466340065,
-0.0037562206853181124,
-0.04183545708656311,
-0.2877301573753357,
0.16582076251506805,
-0.014004739001393318,
-0.34511598944664,
-0.08676227927207947,
0.5174048542976379,
0.16955532133579254,
-0.15112550556659698,
0.13961105048656464,
0.22600479423999786,
-0.1892261952161789,
0.17032982409000397,
-0.19771040976047516,
-0.3133745491504669,
-0.36249369382858276,
-0.19348099827766418,
0.3652397096157074,
0.07743414491415024,
0.01836986653506756,
-0.03739311173558235,
-0.039258163422346115,
-0.15476103127002716,
0.37549710273742676,
0.6007118821144104,
-0.20001794397830963,
-0.26000693440437317,
0.025549253448843956,
-0.19863878190517426,
-0.13102565705776215,
-0.0964413732290268,
0.09957700222730637,
0.28877511620521545,
-0.013568263500928879,
-0.13677340745925903,
-0.02939809300005436,
0.1859988123178482,
0.2647143006324768,
0.23566032946109772,
0.06035402789711952,
0.13106362521648407,
0.05710384249687195,
0.16264702379703522,
-0.34801262617111206,
-0.11275051534175873,
0.06216586381196976,
0.06325161457061768,
-0.07949237525463104,
0.1583414375782013,
0.12012413889169693,
0.051021330058574677,
0.21734291315078735,
-0.23186153173446655,
-0.089573435485363,
-0.15275421738624573,
-0.29585695266723633,
0.07017812877893448,
0.031105726957321167,
0.25951340794563293,
0.2123279869556427,
-0.06696228682994843,
0.25466156005859375,
-0.06714338809251785,
0.4487278163433075,
0.3342231810092926,
-0.02033950947225094,
0.382597416639328,
0.09657954424619675,
0.07753198593854904,
0.021604139357805252,
0.07774274051189423,
0.006275668740272522,
0.09198740124702454,
0.34651505947113037,
0.2132038027048111,
-0.009408397600054741,
-0.06846079975366592,
0.13864082098007202,
0.1333218365907669,
0.04677141085267067,
0.15333877503871918,
-0.5616037249565125,
-0.19832424819469452,
0.23293808102607727,
0.11034191399812698,
0.3073980212211609,
0.5193896293640137,
-0.22774392366409302,
0.04899917170405388,
0.2958117425441742,
0.2463623285293579,
-0.16524076461791992,
-0.13342659175395966,
0.32223281264305115,
-0.1974414736032486,
0.3228982388973236,
0.6079253554344177,
0.3969994783401489,
0.35029637813568115,
0.17848682403564453,
-0.38871055841445923,
-0.07746628671884537,
-0.05738441273570061,
0.3764552175998688,
0.32108765840530396,
-0.27725908160209656,
-0.03907225653529167,
0.3862941563129425,
0.2131918966770172,
0.08365093916654587,
0.18984918296337128,
-0.20301757752895355,
0.24471469223499298,
0.44800615310668945,
0.25591281056404114,
-0.019645463675260544,
-0.1803528219461441,
0.11194644868373871,
0.12269754707813263,
-0.09230861812829971,
-0.0242623183876276,
-0.023091280832886696,
0.38338470458984375,
-0.15554377436637878,
-0.13966356217861176,
0.2985609173774719,
0.2837640941143036,
-0.1940130889415741,
-0.15349991619586945,
0.19682198762893677,
0.05117369815707207,
-0.29211553931236267,
0.1323252022266388,
-0.08479218184947968,
-0.3820858299732208,
0.10124653577804565,
0.22829969227313995,
0.12561415135860443,
-0.017221158370375633,
0.17574122548103333,
-0.09206631779670715,
-0.058492593467235565,
-0.15086083114147186,
0.37557172775268555,
-0.08137287199497223,
-0.0365995317697525,
-0.03099912405014038,
0.06499829888343811,
0.12813878059387207,
-0.07762641459703445,
0.11417530477046967,
0.29895350337028503,
0.012391281314194202,
0.19529004395008087,
0.02155286632478237,
0.08134963363409042,
0.2636425197124481,
0.27846792340278625,
0.38464847207069397,
0.14333981275558472,
-0.1800049990415573,
-0.10379646718502045,
0.1969035267829895,
-0.1185329407453537,
-0.2046390175819397,
0.4069385230541229,
0.016879746690392494,
0.14842960238456726,
-0.3007179796695709,
0.10544886440038681,
-0.590766966342926,
-0.10816867649555206,
0.48242273926734924,
-0.13249266147613525,
-0.024305321276187897,
-0.11972300708293915,
0.10843819379806519,
0.17696218192577362,
0.13531993329524994,
-0.1425589621067047,
0.28588879108428955,
-0.1633037030696869,
-0.0971362516283989,
-0.565586268901825,
0.016347190365195274,
-0.2357179969549179,
-0.22225834429264069,
-0.327023983001709,
0.17912296950817108,
0.25471439957618713,
0.14690272510051727,
-0.025016356259584427,
0.3019023835659027,
0.040726304054260254,
-0.02220369689166546,
-0.21679991483688354,
0.2168516218662262,
0.03394981101155281,
0.37528762221336365,
0.05883044749498367,
-0.04589787870645523,
-0.07105640321969986,
0.13669028878211975,
-0.0337914414703846,
-0.12670135498046875,
-0.055482167750597,
0.1835242062807083,
-0.15020833909511566,
0.48458898067474365,
0.07219274342060089,
0.34687450528144836,
-0.09686718881130219,
0.04496436193585396,
-0.32038217782974243,
-0.10270195454359055,
-0.48410508036613464,
0.35301709175109863,
0.07048126310110092,
0.17930759489536285,
-0.18415410816669464,
-0.1012340635061264,
-0.2685379087924957,
0.30255013704299927,
0.1291612833738327,
0.07572519779205322,
0.13343840837478638,
0.22736424207687378,
0.30053359270095825,
-0.11051484197378159,
0.0799836814403534,
0.6495320796966553,
0.10909953713417053,
0.026388853788375854,
-0.037023935467004776,
-0.20576386153697968,
0.012617514468729496,
0.11998709291219711,
-0.15454302728176117,
0.10377641767263412,
0.17776918411254883,
0.31715571880340576,
0.11343459039926529,
-0.5646630525588989,
0.07757793366909027,
0.329045832157135,
-0.012445911765098572,
-0.16235357522964478,
0.16171720623970032,
0.19169354438781738,
-0.1885301172733307,
-0.07479344308376312,
-0.03791680932044983,
0.10365264862775803,
-0.26208946108818054,
0.11516902595758438,
-0.34320276975631714
] |
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.18502935767173767,
-0.013266601599752903,
-0.14869104325771332,
0.001963210990652442,
0.0076407939195632935,
0.04465555399656296,
0.5710824131965637,
0.22784386575222015,
0.07958226650953293,
-0.006703847553580999,
-0.09681916236877441,
0.03882055729627609,
-0.11224059760570526,
0.26150837540626526,
0.3110356330871582,
-0.2384137660264969,
-0.06845921277999878,
-0.056533630937337875,
0.12409358471632004,
-0.13997913897037506,
-0.20463675260543823,
0.13503411412239075,
-0.049129780381917953,
0.12635447084903717,
-0.28880155086517334,
-0.2710748016834259,
-0.2809760570526123,
0.1510726660490036,
0.09820912033319473,
-0.33243557810783386,
-0.01455647312104702,
0.08202080428600311,
-0.10009550303220749,
0.2394533008337021,
-0.0000984544531092979,
0.0035832372959703207,
0.01164745818823576,
-0.134354367852211,
0.09317697584629059,
-0.24684284627437592,
-0.16675333678722382,
-0.34091803431510925,
-0.08399242907762527,
-0.23140710592269897,
-0.19880637526512146,
-0.2100844383239746,
-0.00714104063808918,
-0.4129571318626404,
0.2574445307254791,
0.4221241772174835,
0.2658776640892029,
0.0925966203212738,
-0.44353187084198,
-0.05774863809347153,
0.08368951082229614,
-0.24229007959365845,
-0.014264996163547039,
0.3178780972957611,
0.3424069881439209,
0.09164929389953613,
-0.2131609469652176,
0.4722450375556946,
0.21478784084320068,
-0.21400977671146393,
-0.3749872148036957,
0.22260938584804535,
0.16219386458396912,
-0.2566305696964264,
-0.2446121722459793,
0.5190032720565796,
0.08858839422464371,
-0.1996838003396988,
-0.4328455924987793,
-0.3251273036003113,
0.14379580318927765,
-0.26285499334335327,
-0.06955545395612717,
0.13110262155532837,
0.16541019082069397,
0.19958145916461945,
0.20354063808918,
-0.4648979604244232,
-0.004147632513195276,
-0.027546321973204613,
-0.051233045756816864,
0.44902709126472473,
0.08374848961830139,
0.23357124626636505,
0.066115602850914,
0.14115147292613983,
0.07010121643543243,
-0.04587825387716293,
-0.09861614555120468,
0.05530302971601486,
-0.3070974349975586,
0.011703766882419586,
-0.10728160291910172,
0.04747726395726204,
0.04927634447813034,
-0.051309067755937576,
0.057757049798965454,
0.14989778399467468,
-0.04260595515370369,
0.083140067756176,
0.14481057226657867,
0.19860847294330597,
0.2610928416252136,
-0.0025002758484333754,
0.23987524211406708,
-0.2484661489725113,
-0.15957112610340118,
0.04470212757587433,
-0.06254184991121292,
-0.237883523106575,
-0.09818194061517715,
0.14678427577018738,
0.002036076970398426,
-0.019232116639614105,
-0.25919416546821594,
0.021880755200982094,
-0.26720938086509705,
-0.2567574679851532,
0.13751482963562012,
0.3601803481578827,
0.10105138272047043,
0.17835554480552673,
-0.19496148824691772,
0.4000522196292877,
-0.25759080052375793,
-0.326120525598526,
-0.2360519915819168,
0.41395899653434753,
-0.3500255048274994,
-0.11151299625635147,
-0.1663130223751068,
-0.003502656938508153,
0.05613212659955025,
0.22357015311717987,
-0.06941835582256317,
-0.2711365520954132,
0.21843501925468445,
-0.19560351967811584,
0.04304574429988861,
-0.1566673219203949,
0.1363711953163147,
0.14809589087963104,
0.05510520190000534,
-0.2610815465450287,
-0.2872413396835327,
0.1249617487192154,
-0.26131871342658997,
-0.21907055377960205,
-0.130977064371109,
0.26360148191452026,
-0.05563890188932419,
-0.20259329676628113,
0.15377789735794067,
0.6856274008750916,
0.06794416159391403,
-0.08290375024080276,
0.16224713623523712,
-0.16989535093307495,
-0.23689289391040802,
-0.14989657700061798,
0.0604185052216053,
0.22836309671401978,
-0.49980658292770386,
-0.22306375205516815,
0.15638132393360138,
-0.18987073004245758,
0.23989613354206085,
0.17883537709712982,
-0.3093418776988983,
0.14316412806510925,
-0.18194010853767395,
0.32968124747276306,
0.43373432755470276,
-0.19687095284461975,
0.001261503784917295,
0.16488060355186462,
-0.276986688375473,
0.14396020770072937,
0.09819143265485764,
0.09634783864021301,
-0.03980868309736252,
0.09146866202354431,
-0.11297804117202759,
0.42145469784736633,
-0.13137583434581757,
-0.0832725465297699,
-0.20459283888339996,
0.05185851827263832,
0.49031126499176025,
0.1938474178314209,
0.011559315025806427,
-0.28995779156684875,
0.023222265765070915,
0.20184136927127838,
0.41681742668151855,
-0.2848474681377411,
-0.010251514613628387,
0.14888998866081238,
0.0356932058930397,
-0.191388338804245,
-0.1631721705198288,
-0.05029100924730301,
-0.270803838968277,
0.23678363859653473,
-0.0572078637778759,
0.3583615720272064,
0.29258671402931213,
-0.16149498522281647,
-0.034089941531419754,
-0.29292070865631104,
-0.34299540519714355,
-0.32801029086112976,
0.19615179300308228,
0.12753231823444366,
-0.018365761265158653,
0.2233019471168518,
-0.11441102623939514,
0.4993129074573517,
-0.20440270006656647,
0.0379449836909771,
-0.22938793897628784,
0.06907796114683151,
0.05742980167269707,
-0.09245472401380539,
-0.18224725127220154,
0.262129545211792,
-0.027729932218790054,
-0.26428306102752686,
-0.07300834357738495,
0.4596441388130188,
0.26179197430610657,
0.08889549970626831,
0.0312579870223999,
-0.049613870680332184,
0.29331493377685547,
0.003849143860861659,
0.08089568465948105,
-0.049272291362285614,
-0.0571688711643219,
-0.0665818303823471,
0.07503420859575272,
0.6284971237182617,
0.2595186233520508,
0.03661952167749405,
0.04534320533275604,
0.02193586528301239,
0.1795026659965515,
-0.13267195224761963,
-0.15852399170398712,
-0.14596600830554962,
0.17796501517295837,
-0.048444654792547226,
0.3755076229572296,
0.046736933290958405,
-0.5525542497634888,
-0.03953365236520767,
0.6682409048080444,
-0.08613578975200653,
0.221056267619133,
-0.16294217109680176,
0.0032060060184448957,
0.012865404598414898,
0.0814104899764061,
0.4090774655342102,
0.1975964605808258,
0.1926129162311554,
0.32331228256225586,
0.03630637004971504,
-0.2348087579011917,
-0.185053288936615,
-0.012133820913732052,
-0.18853525817394257,
-0.022024409845471382,
-0.007299838587641716,
-0.0227285735309124,
-0.32764163613319397,
-0.3438839614391327,
-0.06378749012947083,
0.24753740429878235,
0.03966542333364487,
-0.17042581737041473,
0.049767378717660904,
-0.16393643617630005,
-0.09249252825975418,
-0.5131723880767822,
-0.16975291073322296,
-0.2990208864212036,
-0.275583952665329,
0.2779987156391144,
-0.47952723503112793,
-0.1530558168888092,
0.3516797721385956,
0.014262010343372822,
-0.0065270825289189816,
-0.28415626287460327,
-0.2699315845966339,
0.22080564498901367,
-0.09407393634319305,
-0.36640188097953796,
0.20503394305706024,
0.20376184582710266,
0.08125270903110504,
0.3301103711128235,
-0.2344188690185547,
-0.16910316050052643,
0.0525083988904953,
-0.360734760761261,
0.1120208203792572,
-0.30153629183769226,
0.21124881505966187,
-0.0038544870913028717,
-0.23633888363838196,
-0.07722049951553345,
-0.09665019065141678,
0.29109805822372437,
-0.255905419588089,
0.06683500111103058,
0.007289473433047533,
0.14012488722801208,
0.08154917508363724,
-0.12431002408266068,
-0.8642568588256836,
-0.4875786602497101,
-0.16431860625743866,
-0.025324746966362,
-0.17268753051757812,
0.12726110219955444,
0.12036935985088348,
-0.023502767086029053,
0.08344273269176483,
-0.13056258857250214,
-0.13212721049785614,
-0.13288284838199615,
-0.36488035321235657,
0.05418316647410393,
-0.13304124772548676,
-0.23628747463226318,
-0.0005246197688393295,
-0.10739261656999588,
0.19187846779823303,
0.01026337593793869,
-0.028433173894882202,
-0.1482357680797577,
-0.02693067118525505,
0.16840608417987823,
0.07297912240028381,
0.21405018866062164,
0.1686772257089615,
0.036034148186445236,
-0.05998395010828972,
-0.1326552778482437,
0.10272101312875748,
0.3575432598590851,
0.20077241957187653,
0.01795804128050804,
-0.0859697163105011,
0.16461414098739624,
0.11443077027797699,
0.31613942980766296,
0.10503698885440826,
0.07517030090093613,
0.34737852215766907,
-0.2949368357658386,
0.08272381871938705,
-0.09966475516557693,
-0.22638843953609467,
0.1534624546766281,
-0.08250107616186142,
-0.0072270529344677925,
0.20779810845851898,
-0.07849257439374924,
-0.27692297101020813,
-0.03209790587425232,
0.10274410247802734,
-0.10941553860902786,
-0.3094545304775238,
0.3692905306816101,
-0.25202345848083496,
0.14520800113677979,
-0.0956941694021225,
-0.04008450359106064,
0.08711596578359604,
0.11848495900630951,
0.07045607268810272,
-0.11266982555389404,
-0.15331625938415527,
0.06154685094952583,
-0.5243781208992004,
0.0631781592965126,
-0.40589287877082825,
0.23780186474323273,
0.20783597230911255,
0.2764015793800354,
-0.0740618109703064,
-0.0548349991440773,
0.027763739228248596,
-0.025599027052521706,
0.4136489927768707,
-0.5377340316772461,
-0.3000137209892273,
0.1335587203502655,
-0.13956062495708466,
-0.12109243869781494,
-0.03967316821217537,
-0.4901552200317383,
0.056732676923274994,
0.324515700340271,
0.02689317800104618,
-0.23649823665618896,
-0.23501916229724884,
0.09571767598390579,
0.40352094173431396,
-0.2324521243572235,
0.11440929770469666,
-0.21399378776550293,
-0.20139080286026,
-0.07955585420131683,
0.3560839593410492,
0.12357369810342789,
0.1735670566558838,
0.06619805097579956,
-0.05263013020157814,
0.03620948642492294,
0.08017574995756149,
0.28740039467811584,
0.23674461245536804,
0.18051543831825256,
0.09609286487102509,
-0.015219857916235924,
0.08564556390047073,
0.10284154862165451,
-0.19499748945236206,
0.551480233669281,
-0.2795740067958832,
-0.18004846572875977,
0.07516293227672577,
-0.23132175207138062,
0.4920175075531006,
0.31587523221969604,
0.0637911707162857,
0.05427607521414757,
-0.14702291786670685,
-0.02982414700090885,
-0.12731163203716278,
0.49524980783462524,
0.36912140250205994,
0.3038400411605835,
-0.5208014249801636,
-0.7163475155830383,
0.07636060565710068,
0.14336758852005005,
-0.07181698083877563,
0.33796557784080505,
0.0801025852560997,
-0.4435581564903259,
0.3029434382915497,
-0.13797883689403534,
0.8299774527549744,
-0.15473318099975586,
0.14956745505332947,
0.2511035203933716,
-0.010337959975004196,
0.11989695578813553,
-0.2770320475101471,
0.05043421685695648,
-0.3902566730976105,
-0.1816769689321518,
-0.0185418538749218,
0.02667190507054329,
0.3309810161590576,
0.2546290159225464,
-0.17195945978164673,
0.31060636043548584,
0.06291213631629944,
-0.08238353580236435,
-0.16029824316501617,
0.5479093790054321,
-0.18367187678813934,
-0.17799197137355804,
-0.055475421249866486,
0.20737826824188232,
0.12095963209867477,
-0.25229784846305847,
-0.0005772467120550573,
0.04403010010719299,
-0.11678070574998856,
-0.1211787685751915,
-0.14902469515800476,
0.06811436265707016,
-0.31452324986457825,
0.1270880550146103,
-0.3392326235771179,
-0.46631669998168945,
0.15253742039203644,
0.23021622002124786,
0.02384323440492153,
0.0414801649749279,
0.20044472813606262,
0.2233334332704544,
-0.036107584834098816,
0.2259846031665802,
0.2869744300842285,
-0.21619662642478943,
0.44435036182403564,
0.07697130739688873,
-0.4147387146949768,
0.15292373299598694,
-0.042929649353027344,
-0.15536142885684967,
-0.3987048268318176,
0.1413903385400772,
-0.08790802955627441,
-0.33172130584716797,
-0.27988743782043457,
0.3710279166698456,
0.15660706162452698,
-0.32573264837265015,
0.19377785921096802,
0.17467211186885834,
-0.35664427280426025,
0.10357935726642609,
-0.2939984202384949,
-0.3408975899219513,
-0.22792571783065796,
-0.14674554765224457,
0.25514617562294006,
0.14783094823360443,
0.1853163093328476,
0.1771683543920517,
0.06317778676748276,
-0.25107094645500183,
0.29359421133995056,
0.767179012298584,
-0.3604855537414551,
-0.0944763720035553,
-0.04309513047337532,
-0.07619702070951462,
-0.12753045558929443,
0.04662574455142021,
0.001251423149369657,
0.2928350865840912,
-0.006027502939105034,
-0.14656071364879608,
0.0262543223798275,
0.1060534194111824,
0.36617133021354675,
0.21355578303337097,
0.10519535094499588,
0.21654467284679413,
-0.0657733827829361,
0.18734367191791534,
-0.4249196946620941,
-0.021887555718421936,
0.03350050002336502,
0.19525305926799774,
-0.18771390616893768,
0.10150883346796036,
0.24624504148960114,
0.07947865128517151,
0.2716883718967438,
-0.09820985794067383,
-0.02275308035314083,
-0.2768944799900055,
-0.23269784450531006,
0.042094409465789795,
0.003040007082745433,
0.14648985862731934,
0.19174543023109436,
-0.11053416132926941,
0.19631628692150116,
-0.1995992213487625,
0.34625911712646484,
0.09339272975921631,
-0.028943870216608047,
0.4050980806350708,
0.1337250918149948,
0.020006230100989342,
-0.022638719528913498,
-0.015491454862058163,
-0.07562047243118286,
0.057766709476709366,
0.27357542514801025,
0.22857825458049774,
0.16611504554748535,
-0.03385011479258537,
0.1037752702832222,
0.051504701375961304,
0.10248860716819763,
0.18027186393737793,
-0.4070771336555481,
-0.1074661910533905,
0.24173131585121155,
0.014653016813099384,
0.4209897518157959,
0.45508238673210144,
-0.22328905761241913,
0.12021756917238235,
0.1841103732585907,
0.328419953584671,
-0.303205668926239,
-0.10176730155944824,
0.34789538383483887,
-0.18355830013751984,
0.36839017271995544,
0.544309139251709,
0.3609474003314972,
0.3915964961051941,
0.2173248529434204,
-0.3320574462413788,
-0.059057146310806274,
-0.03703248128294945,
0.228353813290596,
0.35216304659843445,
-0.22525827586650848,
-0.013792570680379868,
0.2947937548160553,
0.01220674067735672,
0.02049395628273487,
0.3185676038265228,
-0.13469049334526062,
0.5100479125976562,
0.27856990694999695,
0.265767365694046,
-0.11024625599384308,
-0.03816438466310501,
-0.04294029250741005,
0.035950448364019394,
-0.04258481785655022,
0.0030518732964992523,
-0.013419561088085175,
0.3571201264858246,
-0.2191539853811264,
-0.2307673543691635,
0.060032907873392105,
0.17218145728111267,
-0.17351344227790833,
-0.15810039639472961,
0.04567170888185501,
-0.07692278921604156,
-0.3853396475315094,
0.1428913176059723,
-0.09484158456325531,
-0.23335620760917664,
0.01643526367843151,
0.18705138564109802,
0.08851224929094315,
-0.18076252937316895,
0.004922917578369379,
-0.026822498068213463,
0.0005695407744497061,
-0.2636561989784241,
0.2993965148925781,
0.1494665890932083,
0.01892331801354885,
-0.00199510739184916,
0.005908685270696878,
0.09252052754163742,
-0.19386106729507446,
-0.15830013155937195,
0.19114984571933746,
-0.09993142634630203,
0.1267411857843399,
0.06450797617435455,
0.12449897825717926,
0.10796741396188736,
0.3817973732948303,
0.463988333940506,
0.20025447010993958,
-0.23729000985622406,
0.033598024398088455,
0.3672505021095276,
-0.17820653319358826,
-0.3492477536201477,
0.3454867899417877,
0.03472784534096718,
0.14698725938796997,
-0.4240698218345642,
0.04713123291730881,
-0.4729427397251129,
0.05397169664502144,
0.3605457842350006,
-0.20088228583335876,
0.008877526037395,
-0.0449940524995327,
0.13982056081295013,
0.030537527054548264,
0.18623866140842438,
0.016478601843118668,
0.4034820795059204,
-0.37801337242126465,
-0.22801844775676727,
-0.6396082639694214,
0.10614603757858276,
-0.13063891232013702,
-0.13188090920448303,
-0.22886718809604645,
0.12731671333312988,
0.2996814548969269,
0.07607182115316391,
0.01781659759581089,
0.2471984326839447,
-0.06615331023931503,
0.03612568974494934,
-0.30356115102767944,
0.11156538873910904,
-0.17369700968265533,
0.2723175287246704,
0.03189149498939514,
-0.09130986034870148,
-0.09707868099212646,
0.10038859397172928,
0.01122391875833273,
-0.056918609887361526,
-0.14815068244934082,
0.2393161505460739,
-0.0982649177312851,
0.457674503326416,
0.0818588063120842,
0.4475516378879547,
-0.13741981983184814,
0.1620272696018219,
-0.28844937682151794,
-0.1693183183670044,
-0.359820157289505,
0.35311421751976013,
0.03275259956717491,
0.38726311922073364,
0.04102754592895508,
-0.13174280524253845,
-0.21837037801742554,
0.20816664397716522,
0.22043058276176453,
0.019157404080033302,
-0.041034042835235596,
0.2259751409292221,
0.2056664228439331,
-0.12050670385360718,
0.10883816331624985,
0.6713240146636963,
0.08204357326030731,
-0.04279936105012894,
0.019226139411330223,
-0.18671377003192902,
-0.043863389641046524,
-0.04476448893547058,
-0.21451790630817413,
0.061785418540239334,
0.1554209589958191,
0.24743328988552094,
0.024112220853567123,
-0.5554366707801819,
-0.011370438151061535,
0.29865455627441406,
0.0716426745057106,
-0.17365719377994537,
0.16478832066059113,
0.34420549869537354,
-0.05169287323951721,
-0.04476514458656311,
0.002623856533318758,
0.11136483401060104,
-0.20343643426895142,
0.11115460097789764,
-0.39006951451301575
] |
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.053170282393693924,
0.07086656242609024,
-0.003463788190856576,
0.36295726895332336,
0.24475911259651184,
0.22018924355506897,
0.42531827092170715,
0.30367404222488403,
0.3109276592731476,
0.0509863905608654,
-0.06706371903419495,
0.23548193275928497,
-0.09579338878393173,
-0.02189672738313675,
-0.2746926248073578,
-0.11021097749471664,
0.049347322434186935,
0.0534437857568264,
-0.3843252658843994,
0.03752506151795387,
-0.39897865056991577,
0.33562108874320984,
-0.3421682119369507,
-0.006487630307674408,
-0.14163513481616974,
0.2397984117269516,
-0.05539382994174957,
0.336072713136673,
-0.12909576296806335,
-0.37019723653793335,
0.49028193950653076,
-0.09491413086652756,
0.5313907861709595,
0.22420386970043182,
-0.00011882778198923916,
0.05618559941649437,
0.3267250657081604,
-0.09271546453237534,
-0.25369709730148315,
-0.5014421939849854,
-0.04957486689090729,
-0.47978097200393677,
0.34809380769729614,
-0.04401382803916931,
-0.06950511783361435,
0.06558645516633987,
-0.11303307861089706,
-0.36280515789985657,
0.36776652932167053,
0.5194329023361206,
0.18169628083705902,
-0.21614600718021393,
-0.07322447001934052,
-0.08992738276720047,
0.5836966633796692,
0.07129473984241486,
-0.14109085500240326,
0.27415722608566284,
0.031133780255913734,
-0.23263749480247498,
-0.09600917249917984,
0.11102598905563354,
-0.07246731221675873,
0.2592615485191345,
0.2572396397590637,
0.2152855545282364,
-0.13852575421333313,
-0.16854974627494812,
0.08786650747060776,
0.11505044996738434,
0.7295116782188416,
-0.11148742586374283,
-0.1594744324684143,
-0.045341018587350845,
-0.04060040041804314,
-0.09444116055965424,
0.3628716468811035,
0.28746888041496277,
0.05562194809317589,
0.34954819083213806,
-0.03924970701336861,
0.03138825669884682,
-0.2870231568813324,
0.11726115643978119,
0.07139068841934204,
-0.009661599062383175,
-0.16670779883861542,
0.33070608973503113,
0.10220328718423843,
-0.00385174504481256,
0.26876217126846313,
-0.04112935811281204,
-0.10873201489448547,
0.22097474336624146,
-0.7359089255332947,
0.3105955421924591,
-0.145862877368927,
-0.02894829772412777,
-0.02429237961769104,
0.19719597697257996,
0.2464100569486618,
-0.02329084649682045,
-0.0816030353307724,
0.3690752387046814,
0.2595979869365692,
0.032567206770181656,
0.01504889503121376,
0.24889664351940155,
0.24251648783683777,
-0.2127750813961029,
0.03449242189526558,
-0.18233391642570496,
-0.3340727984905243,
-0.5727438926696777,
-0.045032963156700134,
0.17223092913627625,
0.2509997487068176,
-0.22741325199604034,
-0.21345822513103485,
0.15096977353096008,
-0.2655119299888611,
0.0042608315125107765,
-0.13636043667793274,
0.25835853815078735,
0.18204112350940704,
0.3217637836933136,
0.10223786532878876,
0.32336869835853577,
-0.08126628398895264,
-0.4609394073486328,
-0.029314182698726654,
0.14314360916614532,
-0.41252589225769043,
-0.046996328979730606,
0.49202167987823486,
-0.17247800529003143,
0.1270473301410675,
0.2477504014968872,
-0.13543672859668732,
-0.3477974534034729,
-0.013651372864842415,
-0.2814348638057709,
0.004641169682145119,
0.3041786253452301,
0.07240104675292969,
0.22515909373760223,
0.3489326238632202,
-0.2020389884710312,
-0.07289021462202072,
0.3434777557849884,
-0.45189645886421204,
-0.20658211410045624,
-0.12809455394744873,
0.09788452833890915,
-0.22820106148719788,
0.07203681021928787,
-0.33926600217819214,
0.07151101529598236,
0.055715274065732956,
-0.19551041722297668,
-0.17110660672187805,
-0.31940168142318726,
-0.2678617238998413,
-0.23124243319034576,
0.0226149782538414,
0.4551674425601959,
-0.8168237209320068,
0.22621285915374756,
-0.009861299768090248,
0.050096120685338974,
0.07995402812957764,
0.20396894216537476,
-0.2677919268608093,
0.03449815511703491,
-0.2549438178539276,
0.11573881655931473,
0.14027197659015656,
-0.21616363525390625,
-0.2937298119068146,
0.18425577878952026,
-0.05055500566959381,
-0.074908547103405,
0.08451613783836365,
0.09225039184093475,
0.3441409766674042,
-0.017755793407559395,
-0.2049926221370697,
0.14994342625141144,
0.009418207220733166,
0.04405103996396065,
-0.23773322999477386,
-0.18225868046283722,
0.24465423822402954,
0.23181596398353577,
0.01594076305627823,
0.12413212656974792,
0.22809386253356934,
-0.6181381940841675,
0.314336895942688,
-0.056014228612184525,
0.25229576230049133,
0.125153049826622,
0.2919844388961792,
0.06803393363952637,
0.33148545026779175,
0.0560598261654377,
-0.545149564743042,
0.19358807802200317,
0.45344772934913635,
-0.1884106546640396,
-0.09070289880037308,
-0.01673605665564537,
-0.46435248851776123,
0.006846473552286625,
-0.18206071853637695,
-0.032960861921310425,
-0.00027923198649659753,
0.049745116382837296,
-0.0883561298251152,
-0.18197062611579895,
-0.11538930237293243,
0.41949957609176636,
-0.28078460693359375,
0.09297333657741547,
-0.33003318309783936,
0.2806958258152008,
0.1371115893125534,
-0.062221430242061615,
0.20431725680828094,
-0.07871850579977036,
0.31570035219192505,
-0.050517838448286057,
-0.1529252976179123,
0.2792818248271942,
0.35473987460136414,
-0.029462238773703575,
0.1198975145816803,
-0.19790811836719513,
0.019188135862350464,
-0.2967643737792969,
-0.009896139614284039,
0.21804428100585938,
0.347037136554718,
-0.09319934993982315,
-0.4841008484363556,
0.32402297854423523,
-0.3189895451068878,
0.20890367031097412,
-0.2283422350883484,
0.18503466248512268,
0.25766175985336304,
-0.03492693975567818,
-0.08274377137422562,
0.02833062969148159,
0.05698799714446068,
0.025328675284981728,
0.22253379225730896,
0.09460800886154175,
-0.1744118481874466,
-0.14143683016300201,
0.06283601373434067,
0.1814899891614914,
-0.2388356775045395,
0.23012211918830872,
-0.11261442303657532,
-0.05766353756189346,
0.33642029762268066,
0.28397661447525024,
0.4159412384033203,
0.08493434637784958,
-0.26922285556793213,
-0.018004542216658592,
0.07079863548278809,
-0.18638069927692413,
0.09020713716745377,
0.008539596572518349,
0.06351705640554428,
0.19840750098228455,
0.20471571385860443,
0.0949886366724968,
-0.13717547059059143,
-0.12689277529716492,
0.1822054386138916,
0.2504075765609741,
-0.6004427671432495,
-0.01706206239759922,
-0.19775371253490448,
0.3690706193447113,
-0.23145312070846558,
-0.046977050602436066,
0.105471670627594,
-0.28460201621055603,
-0.2780263125896454,
0.30583566427230835,
-0.1332714706659317,
0.053314659744501114,
-0.20499923825263977,
0.2518932521343231,
0.11348526924848557,
-0.12922173738479614,
0.038760509341955185,
-0.18570415675640106,
-0.25787824392318726,
0.0051692877896130085,
0.09140292555093765,
-0.022789089009165764,
-0.11389365792274475,
0.10331065207719803,
0.08970076590776443,
-0.3063427805900574,
-0.03272233530879021,
0.12501487135887146,
0.005455185193568468,
0.0982465147972107,
0.1273556351661682,
-0.08568419516086578,
-0.0653371661901474,
-0.15504446625709534,
0.20961999893188477,
0.09103581309318542,
0.03842685744166374,
0.41844305396080017,
0.24055777490139008,
-0.16487601399421692,
-0.1206732839345932,
-0.6375060081481934,
-0.24014483392238617,
-0.2200731784105301,
0.04478595778346062,
-0.16695301234722137,
-0.054323501884937286,
0.06538230925798416,
0.3040779232978821,
-0.05232509598135948,
0.23847496509552002,
-0.11685307323932648,
-0.10439809411764145,
-0.22886094450950623,
0.5683003067970276,
-0.24170708656311035,
-0.27700603008270264,
0.2639983892440796,
-0.03473688289523125,
0.0477997362613678,
0.3508775532245636,
-0.3967236280441284,
0.20661957561969757,
-0.06422363221645355,
0.025720663368701935,
-0.08358926326036453,
0.03711431100964546,
0.06648758798837662,
-0.03237522020936012,
0.09345401078462601,
-0.051409319043159485,
-0.18079274892807007,
0.23300550878047943,
-0.0544733889400959,
0.04972941055893898,
0.16828443109989166,
0.5563703775405884,
-0.2356366068124771,
0.6716986298561096,
0.10878452658653259,
0.10129377990961075,
0.32976260781288147,
-0.07536163181066513,
0.2564426362514496,
0.17102771997451782,
-0.22406788170337677,
0.061078015714883804,
-0.12360138446092606,
-0.3338024318218231,
0.32122552394866943,
0.008411142975091934,
-0.10485012829303741,
-0.0734926387667656,
0.2458774745464325,
-0.26121190190315247,
-0.16832271218299866,
0.1560327261686325,
-0.07413793355226517,
0.05903247371315956,
-0.008479349315166473,
0.1152753233909607,
0.06362498551607132,
-0.2108645737171173,
-0.046719618141651154,
0.1300499439239502,
0.18958526849746704,
-0.07411844283342361,
0.1287035495042801,
-0.12534677982330322,
-0.24970106780529022,
0.23639413714408875,
-0.13286104798316956,
0.4405016303062439,
0.08738426119089127,
-0.07508246600627899,
0.029426589608192444,
0.1850699931383133,
0.7332042455673218,
-0.264343798160553,
0.026211580261588097,
0.11990725994110107,
-0.054727353155612946,
-0.19267326593399048,
-0.3259961009025574,
-0.08253230154514313,
0.22199419140815735,
-0.04127947613596916,
0.21509051322937012,
-0.013185923919081688,
0.053550835698843,
0.38598206639289856,
0.07056482136249542,
-0.15381836891174316,
-0.41564077138900757,
-0.12488091737031937,
-0.05652231723070145,
-0.13333700597286224,
-0.24282582104206085,
0.1577139049768448,
0.0563475638628006,
-0.23711399734020233,
0.10614164918661118,
-0.2183862030506134,
-0.2058780938386917,
0.30854532122612,
0.1126154214143753,
0.26352620124816895,
0.040475744754076004,
0.19600042700767517,
0.27193817496299744,
0.12616103887557983,
0.23060500621795654,
0.7737972140312195,
-0.17090445756912231,
-0.8922722339630127,
0.2450987547636032,
-0.5180835723876953,
0.3393911123275757,
-0.034207556396722794,
-0.3213840425014496,
-0.07621467858552933,
-0.25870615243911743,
-0.14509834349155426,
-0.10392419993877411,
-0.12167608737945557,
0.07475808262825012,
-0.010652849450707436,
-0.12973442673683167,
-0.45331549644470215,
0.5562049150466919,
-0.13298775255680084,
-0.16530156135559082,
0.14230242371559143,
-0.015259218402206898,
-0.30032870173454285,
0.4268864393234253,
-0.08819330483675003,
0.6560724377632141,
-0.1391478329896927,
-0.09893180429935455,
0.13297975063323975,
-0.23353303968906403,
0.3357263505458832,
-0.27302101254463196,
-0.05586917698383331,
-0.5120704174041748,
-0.14696337282657623,
-0.1590156853199005,
-0.003742743283510208,
0.10348380357027054,
0.5652614831924438,
-0.2156028002500534,
0.3151760697364807,
-0.14411070942878723,
0.4138493537902832,
0.054526399821043015,
0.09071192890405655,
0.30589741468429565,
-0.1670154482126236,
-0.11410541832447052,
0.13254377245903015,
-0.13359199464321136,
-0.04139195382595062,
0.051683202385902405,
0.03162691742181778,
-0.23069408535957336,
-0.09532743692398071,
-0.34360840916633606,
0.3158484399318695,
-0.058837149292230606,
0.07509732991456985,
0.18617716431617737,
-0.4859144985675812,
0.5535686612129211,
0.46055859327316284,
0.19399957358837128,
-0.11144039779901505,
-0.22012260556221008,
0.10921864211559296,
0.04660722240805626,
0.05034405738115311,
-0.16320088505744934,
-0.024038631469011307,
-0.06154873967170715,
0.2152407467365265,
-0.20791234076023102,
0.28023815155029297,
-0.10532037913799286,
-0.08271621912717819,
0.22996586561203003,
0.2725984752178192,
0.21349531412124634,
-0.48617005348205566,
-0.3553222119808197,
-0.2251548022031784,
0.121445432305336,
-0.11873990297317505,
0.05307493731379509,
-0.024751074612140656,
0.10665734857320786,
-0.04460332170128822,
0.06437314301729202,
-0.34803110361099243,
0.1839972287416458,
0.2229263186454773,
-0.2328324168920517,
0.05878385528922081,
0.45706310868263245,
0.4909375011920929,
-0.11834650486707687,
-0.15462109446525574,
0.039680641144514084,
0.17854991555213928,
-0.6025988459587097,
0.10561148822307587,
0.06709209084510803,
0.23547840118408203,
0.1761481910943985,
0.19654355943202972,
0.20403119921684265,
-0.21132001280784607,
0.12166514247655869,
-0.5683945417404175,
-0.020787008106708527,
-0.06786417216062546,
-0.15007951855659485,
0.06089329719543457,
-0.06954357028007507,
-0.451722651720047,
-0.059182342141866684,
-0.06511014699935913,
-0.19666609168052673,
0.08056742697954178,
0.060950178653001785,
0.05504019558429718,
0.16914278268814087,
0.3050045967102051,
-0.26260483264923096,
-0.28422513604164124,
0.01743132993578911,
0.036021020263433456,
0.07896088063716888,
-0.1089610755443573,
-0.19105643033981323,
0.16843628883361816,
-0.0031504917424172163,
0.15235154330730438,
-0.26868337392807007,
-0.1957893818616867,
-0.2490987926721573,
-0.16802603006362915,
0.08470706641674042,
0.3114745020866394,
-0.02809154987335205,
0.40063533186912537,
0.03389832749962807,
-0.1250312328338623,
-0.4943271577358246,
0.2662501335144043,
-0.20590612292289734,
0.17609141767024994,
0.08025441318750381,
0.1721063256263733,
0.15563766658306122,
0.0842219814658165,
-0.14658434689044952,
0.07102116197347641,
-0.14011351764202118,
-0.12721127271652222,
0.25020378828048706,
-0.3445928692817688,
0.18699733912944794,
0.23189087212085724,
0.33593133091926575,
0.3265928626060486,
-0.13601621985435486,
-0.07455627620220184,
0.12043222784996033,
0.14175136387348175,
-0.35911884903907776,
0.19693858921527863,
0.04592762514948845,
0.29836973547935486,
-0.12185175716876984,
0.27414873242378235,
-0.04230872169137001,
-0.19980545341968536,
0.08563711494207382,
0.15999428927898407,
0.6721039414405823,
-0.0011855687480419874,
0.058534275740385056,
0.2218623012304306,
-0.043272342532873154,
0.09696396440267563,
0.176792174577713,
-0.044993769377470016,
0.09338916093111038,
0.4701833724975586,
-0.16981878876686096,
-0.06401113420724869,
0.3982221186161041,
0.21369315683841705,
-0.18834568560123444,
-0.5901341438293457,
0.20237967371940613,
0.34990429878234863,
-0.25144222378730774,
-0.16305169463157654,
0.18742910027503967,
0.6417908072471619,
0.04729465767741203,
0.0677865743637085,
-0.3391374945640564,
-0.07058858126401901,
0.08642984181642532,
-0.059723254293203354,
-0.25062504410743713,
-0.19467276334762573,
-0.4349190294742584,
0.255475789308548,
-0.20093019306659698,
0.026746271178126335,
0.5014759302139282,
0.19564175605773926,
-0.048114679753780365,
-0.570612370967865,
0.10038941353559494,
0.26350879669189453,
0.03351689875125885,
-0.31795358657836914,
0.09914113581180573,
0.0033048614859580994,
-0.03555801510810852,
0.3778112530708313,
-0.13843956589698792,
0.38845062255859375,
0.4504052400588989,
0.06711699068546295,
-0.31619444489479065,
-0.1921662837266922,
-0.0744570642709732,
-0.05875926837325096,
0.447001188993454,
-0.016355399042367935,
0.2828291356563568,
0.22754451632499695,
0.1104678362607956,
0.0034672310575842857,
0.3139466345310211,
0.06391488015651703,
0.1889018714427948,
-0.40638652443885803,
-0.11627307534217834,
0.01896766945719719,
-0.06517954915761948,
-0.09751716256141663,
-0.22110988199710846,
-0.0924166589975357,
-0.2157888114452362,
0.44460156559944153,
0.17996615171432495,
0.20712631940841675,
0.15740124881267548,
0.0032119862735271454,
-0.1497553437948227,
0.18943507969379425,
0.45409154891967773,
0.046528853476047516,
-0.5287821888923645,
-0.08834405988454819,
-0.8030945658683777,
-0.009984908625483513,
-0.24493935704231262,
-0.13088737428188324,
0.04743761569261551,
0.20874284207820892,
0.30724117159843445,
0.2748607099056244,
-0.02985064871609211,
0.12221358716487885,
-0.08196137100458145,
0.33195799589157104,
-0.17418698966503143,
-0.17973527312278748,
-0.10868498682975769,
0.10047736018896103,
-0.06269067525863647,
-0.4160606563091278,
0.08698508888483047,
0.33980241417884827,
-0.11946942657232285,
-0.1836850792169571,
-0.10132475197315216,
0.05997983366250992,
-0.24563172459602356,
0.41147008538246155,
-0.005890443455427885,
0.4132963716983795,
0.033501699566841125,
0.29468733072280884,
-0.4566012918949127,
-0.2764180302619934,
-0.19113288819789886,
0.1752241551876068,
-0.13808390498161316,
0.45195356011390686,
-0.3454531133174896,
0.03477941080927849,
-0.1817924976348877,
-0.04874534532427788,
0.01959729567170143,
0.2384880781173706,
-0.40802308917045593,
0.2792758643627167,
-0.11067287623882294,
0.2292049080133438,
-0.17601214349269867,
-0.13461634516716003,
-0.12041999399662018,
0.25372999906539917,
-0.10357716679573059,
-0.2741243541240692,
0.30164042115211487,
-0.2517800033092499,
-0.2887697219848633,
0.04694797843694687,
0.22829590737819672,
0.1620083898305893,
0.10297966748476028,
-0.5200514793395996,
-0.0361439511179924,
0.3270944654941559,
-0.07725317776203156,
-0.11455133557319641,
0.1069713607430458,
0.1176324337720871,
0.05647507682442665,
-0.15196922421455383,
0.22317060828208923,
0.3093070685863495,
-0.18569135665893555,
-0.17305545508861542,
-0.35400912165641785
] |
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.09010732173919678,
0.01711306720972061,
0.016796071082353592,
0.3881012797355652,
0.2925540506839752,
0.2115883082151413,
0.38472771644592285,
0.22975952923297882,
0.22242243587970734,
0.08985833823680878,
-0.10132807493209839,
0.2565506100654602,
-0.09435296803712845,
0.038232605904340744,
-0.2512097954750061,
-0.10368017107248306,
0.010446459986269474,
0.08899784088134766,
-0.29616767168045044,
0.0908845067024231,
-0.39022350311279297,
0.31680697202682495,
-0.3827798366546631,
-0.04615684971213341,
-0.17666080594062805,
0.2577833831310272,
0.00030906483880244195,
0.2659318149089813,
-0.09586898982524872,
-0.44077789783477783,
0.5010360479354858,
0.0035071908496320248,
0.5712618231773376,
0.34009960293769836,
-0.00012030694779241458,
0.01673497073352337,
0.3593454957008362,
-0.15783904492855072,
-0.2551824450492859,
-0.48667454719543457,
-0.06360113620758057,
-0.4186864197254181,
0.3337732255458832,
-0.12731780111789703,
-0.13251392543315887,
0.05670328810811043,
-0.09027446806430817,
-0.5262623429298401,
0.3351168632507324,
0.48166924715042114,
0.16989995539188385,
-0.16704343259334564,
-0.1962602138519287,
0.012288115918636322,
0.6344585418701172,
0.03839501738548279,
-0.1703588217496872,
0.23076368868350983,
0.060028303414583206,
-0.047832053154706955,
-0.07724033296108246,
0.041457340121269226,
-0.09991303086280823,
0.28011733293533325,
0.24864955246448517,
0.2107812911272049,
-0.22275182604789734,
-0.1397712081670761,
0.10075973719358444,
0.1845950335264206,
0.7821592688560486,
-0.15757441520690918,
-0.1605602204799652,
-0.014566036872565746,
-0.024493763223290443,
-0.08837632089853287,
0.32679665088653564,
0.3057575821876526,
0.04972092807292938,
0.3230617046356201,
-0.11050985008478165,
0.12781383097171783,
-0.2835087180137634,
0.06460218131542206,
0.07318008691072464,
-0.028563624247908592,
-0.2363407164812088,
0.3204713463783264,
0.04314582049846649,
-0.012709570117294788,
0.30141735076904297,
-0.1281215101480484,
-0.1516457200050354,
0.15677545964717865,
-0.7318519353866577,
0.29940876364707947,
-0.18909917771816254,
-0.0831180065870285,
-0.013911199755966663,
0.14706425368785858,
0.2610994577407837,
0.04091306030750275,
-0.04952531307935715,
0.36948490142822266,
0.184419184923172,
0.062342528253793716,
0.07447734475135803,
0.21233655512332916,
0.2606661319732666,
-0.19231529533863068,
-0.024509981274604797,
-0.12138637900352478,
-0.2915116846561432,
-0.47154849767684937,
-0.10394977778196335,
0.12353701144456863,
0.21581672132015228,
-0.2365604043006897,
-0.213660329580307,
0.13572897017002106,
-0.22366943955421448,
0.018239501863718033,
-0.1153504028916359,
0.28756123781204224,
0.09613125026226044,
0.237078458070755,
0.08447209745645523,
0.19460827112197876,
-0.05932138115167618,
-0.4193834364414215,
-0.03206393122673035,
0.0889587327837944,
-0.39649447798728943,
-0.008943402208387852,
0.4253871738910675,
-0.20591270923614502,
0.15510539710521698,
0.20905303955078125,
-0.1807141751050949,
-0.3763447403907776,
-0.1051802858710289,
-0.29985249042510986,
0.12269993126392365,
0.2350853681564331,
0.07228755950927734,
0.22527197003364563,
0.17585940659046173,
-0.20964503288269043,
-0.09481696039438248,
0.37433066964149475,
-0.4765121638774872,
-0.20376205444335938,
-0.11296052485704422,
0.08704659342765808,
-0.37022778391838074,
0.04281240329146385,
-0.4717313051223755,
0.09120876342058182,
0.011477064341306686,
-0.1476513147354126,
-0.18466542661190033,
-0.3796912431716919,
-0.3459872305393219,
-0.20033591985702515,
0.05626892298460007,
0.49000412225723267,
-0.7549698352813721,
0.2011178880929947,
0.06856799125671387,
0.08406823128461838,
0.17572779953479767,
0.13877001404762268,
-0.22322551906108856,
0.09981134533882141,
-0.29252633452415466,
0.07603064924478531,
0.11721272021532059,
-0.11240766197443008,
-0.32507607340812683,
0.18971048295497894,
-0.021065887063741684,
-0.0349104106426239,
0.1909705549478531,
0.07664451748132706,
0.4279771149158478,
-0.00001799032361304853,
-0.2978304624557495,
0.1610570251941681,
0.01828893832862377,
0.09787203371524811,
-0.2641839385032654,
-0.22436252236366272,
0.2195972353219986,
0.2429785430431366,
0.04289591684937477,
0.08705989271402359,
0.2906080484390259,
-0.4773257076740265,
0.29480642080307007,
-0.0837218388915062,
0.20050835609436035,
0.13040174543857574,
0.19385063648223877,
-0.003129983553662896,
0.30422937870025635,
-0.0209539495408535,
-0.5490700602531433,
0.20130176842212677,
0.5036678314208984,
-0.1273954063653946,
-0.054686836898326874,
-0.043355200439691544,
-0.43411970138549805,
-0.03462109714746475,
-0.17572006583213806,
0.04964881390333176,
-0.025637373328208923,
0.1051592230796814,
-0.0783725455403328,
-0.18353691697120667,
-0.07457887381315231,
0.3672890067100525,
-0.31821686029434204,
0.05928776413202286,
-0.3288674056529999,
0.3052717447280884,
0.13568773865699768,
-0.09795556962490082,
0.2334703654050827,
-0.034017160534858704,
0.2635866403579712,
-0.1565467119216919,
-0.15940432250499725,
0.2825957238674164,
0.39722302556037903,
-0.008915474638342857,
0.05685291439294815,
-0.16535823047161102,
0.0449947714805603,
-0.2886992394924164,
-0.0396442674100399,
0.2083660066127777,
0.3289196491241455,
-0.05252983421087265,
-0.38828733563423157,
0.3406112492084503,
-0.3962651789188385,
0.21226808428764343,
-0.18585054576396942,
0.06363179534673691,
0.28408271074295044,
-0.06279271841049194,
-0.06255313754081726,
0.03682119399309158,
0.06394446641206741,
0.05412215366959572,
0.23191575706005096,
0.1155361756682396,
-0.16056671738624573,
-0.08008989691734314,
0.23992370069026947,
0.19333913922309875,
-0.26461899280548096,
0.22493226826190948,
-0.13179349899291992,
-0.0654701367020607,
0.31313180923461914,
0.27463313937187195,
0.3821982741355896,
0.1115468293428421,
-0.28232935070991516,
-0.007709856145083904,
0.15241296589374542,
-0.23356857895851135,
0.1316002458333969,
0.10346197336912155,
0.035369616001844406,
0.21095393598079681,
0.19889557361602783,
0.1048499345779419,
-0.17259752750396729,
-0.1863418072462082,
0.172575905919075,
0.21905674040317535,
-0.5805422067642212,
0.004897051025182009,
-0.2296881526708603,
0.32738471031188965,
-0.27824458479881287,
0.05854223296046257,
0.17336903512477875,
-0.21189658343791962,
-0.3372684121131897,
0.27689167857170105,
-0.12948636710643768,
0.04677090421319008,
-0.1542278379201889,
0.30682122707366943,
0.11765944212675095,
-0.24675576388835907,
0.04692430421710014,
-0.21377520263195038,
-0.31527987122535706,
-0.00714454660192132,
0.10425275564193726,
0.034095801413059235,
-0.10436173528432846,
-0.03734844923019409,
0.08766638487577438,
-0.2402612566947937,
-0.08279389888048172,
0.1639793962240219,
0.013760756701231003,
0.1385040432214737,
0.10755962878465652,
-0.1262120008468628,
-0.04869874194264412,
-0.1588345170021057,
0.1437247097492218,
0.01944182999432087,
0.014621124602854252,
0.3827892541885376,
0.21634215116500854,
-0.2095620185136795,
-0.10905656963586807,
-0.6926313042640686,
-0.17958298325538635,
-0.22486922144889832,
0.0250138808041811,
-0.17326758801937103,
-0.042830999940633774,
0.047063227742910385,
0.3236681818962097,
-0.02387980930507183,
0.20333580672740936,
-0.05358226224780083,
-0.05622762441635132,
-0.3528067171573639,
0.5881903767585754,
-0.20435017347335815,
-0.3377242386341095,
0.29261672496795654,
-0.09083098918199539,
0.01033397950232029,
0.31099751591682434,
-0.48875266313552856,
0.2925722897052765,
-0.055077265948057175,
0.07202688604593277,
-0.003576419083401561,
0.02973059006035328,
0.022240402176976204,
-0.03561918064951897,
0.12017334252595901,
-0.05461838096380234,
-0.24497704207897186,
0.19720914959907532,
-0.07574203610420227,
0.11966976523399353,
0.2698400318622589,
0.43400973081588745,
-0.23184484243392944,
0.649084210395813,
0.09439150989055634,
0.006586049683392048,
0.28638792037963867,
-0.036960527300834656,
0.32398924231529236,
0.11930730938911438,
-0.17680798470973969,
0.13267983496189117,
-0.09769594669342041,
-0.3513127267360687,
0.4459332525730133,
0.012753686867654324,
-0.008859965950250626,
-0.07529633492231369,
0.2621181309223175,
-0.1663680523633957,
-0.17297928035259247,
0.17630037665367126,
-0.10562826693058014,
0.03492484986782074,
-0.014869230799376965,
0.11562850326299667,
0.10184718668460846,
-0.27591630816459656,
-0.047250933945178986,
0.18792372941970825,
0.19160740077495575,
-0.09054220467805862,
0.0025330795906484127,
-0.03839096426963806,
-0.25996291637420654,
0.22240014374256134,
-0.0328262597322464,
0.4320128858089447,
0.12237703800201416,
-0.004462905693799257,
0.05749265477061272,
0.18654267489910126,
0.6240670680999756,
-0.2614259421825409,
0.09624966979026794,
0.12755316495895386,
-0.05154353380203247,
-0.23467561602592468,
-0.2981119155883789,
-0.13585808873176575,
0.1346198171377182,
0.03217681869864464,
0.18761660158634186,
-0.02902854233980179,
0.0071549988351762295,
0.4268554151058197,
0.10153806954622269,
-0.16029274463653564,
-0.4608364999294281,
-0.12650060653686523,
-0.06462446600198746,
-0.08243459463119507,
-0.2703126072883606,
0.14934667944908142,
0.10941313207149506,
-0.2964920699596405,
0.0023715095594525337,
-0.23984944820404053,
-0.23559018969535828,
0.2956102192401886,
0.15719956159591675,
0.24426645040512085,
0.10966048389673233,
0.2460034191608429,
0.1996619552373886,
0.11051788181066513,
0.3350634276866913,
0.7943233847618103,
-0.21340493857860565,
-0.8323937058448792,
0.2502855360507965,
-0.49994274973869324,
0.33538195490837097,
-0.030272770673036575,
-0.34849444031715393,
-0.00819576159119606,
-0.29921939969062805,
-0.15623879432678223,
-0.15140600502490997,
-0.012249083258211613,
0.035702552646398544,
0.047906599938869476,
-0.08279642462730408,
-0.4753681719303131,
0.5408312678337097,
-0.16370144486427307,
-0.1382281631231308,
0.0493595115840435,
-0.008981899358332157,
-0.3495826721191406,
0.494477242231369,
-0.08111516386270523,
0.6880195736885071,
-0.17631281912326813,
-0.1290590763092041,
0.07146625220775604,
-0.20286589860916138,
0.342125803232193,
-0.25394511222839355,
-0.05826827883720398,
-0.4942838251590729,
-0.22011710703372955,
-0.14253300428390503,
-0.04173877462744713,
0.16116918623447418,
0.5277662873268127,
-0.20606446266174316,
0.312590092420578,
-0.018413173034787178,
0.5204399228096008,
0.11012259125709534,
0.1757698357105255,
0.3855980336666107,
-0.1565246284008026,
-0.17279255390167236,
0.09802433103322983,
-0.18341892957687378,
-0.10852495580911636,
0.07404898852109909,
-0.001151489675976336,
-0.2079230695962906,
-0.055991433560848236,
-0.323617547750473,
0.29941025376319885,
-0.057752035558223724,
-0.07154976576566696,
0.11646376550197601,
-0.5181864500045776,
0.6153250336647034,
0.47926270961761475,
0.15953610837459564,
-0.0059804185293614864,
-0.18632470071315765,
0.053788114339113235,
-0.03085162118077278,
0.017279280349612236,
-0.1223406121134758,
-0.004303568974137306,
-0.03222247213125229,
0.22114819288253784,
-0.22932831943035126,
0.2947227656841278,
-0.08063289523124695,
-0.11313505470752716,
0.30334755778312683,
0.22527706623077393,
0.2555880546569824,
-0.4614584147930145,
-0.3070751428604126,
-0.22533056139945984,
0.10912716388702393,
-0.12416473776102066,
0.04223468154668808,
-0.09583313018083572,
0.07112182676792145,
0.08820173889398575,
0.1338152438402176,
-0.3890286087989807,
0.12391549348831177,
0.21908418834209442,
-0.17845676839351654,
0.09677040576934814,
0.4302879273891449,
0.4298396706581116,
-0.13394686579704285,
-0.13511475920677185,
0.10604066401720047,
0.08507965505123138,
-0.49807125329971313,
0.1417178511619568,
0.006016746163368225,
0.22846217453479767,
0.14372386038303375,
0.23852455615997314,
0.1999005228281021,
-0.23164770007133484,
0.11226661503314972,
-0.5635542869567871,
-0.021904651075601578,
-0.11687598377466202,
-0.12122303992509842,
0.10353108495473862,
-0.005763574503362179,
-0.3888216018676758,
-0.17553219199180603,
-0.05255758762359619,
-0.18561780452728271,
0.0855121910572052,
0.04747181758284569,
0.10094642639160156,
0.20809876918792725,
0.31931349635124207,
-0.26979175209999084,
-0.3296964466571808,
-0.011308252811431885,
0.06083766371011734,
0.07618081569671631,
-0.12395266443490982,
-0.22314201295375824,
0.19140416383743286,
0.04447655379772186,
0.11035031825304031,
-0.3429810106754303,
-0.21334527432918549,
-0.2508711814880371,
-0.21870356798171997,
0.1368355005979538,
0.3249598741531372,
-0.04595967382192612,
0.4594794511795044,
0.052661724388599396,
-0.11932925879955292,
-0.5032321214675903,
0.3188260793685913,
-0.22902651131153107,
0.3656277358531952,
0.07283461838960648,
0.22885505855083466,
0.14215007424354553,
0.10327818989753723,
-0.1216418668627739,
0.026914454996585846,
-0.09532351046800613,
-0.09337792545557022,
0.3047417998313904,
-0.3803228735923767,
0.1549529880285263,
0.25958091020584106,
0.3093917965888977,
0.35067081451416016,
-0.13019658625125885,
-0.2125750035047531,
0.092483751475811,
0.09705697000026703,
-0.36416733264923096,
0.11888110637664795,
0.06672554463148117,
0.34235838055610657,
-0.06951750814914703,
0.34173843264579773,
0.033278029412031174,
-0.20040513575077057,
0.11326581239700317,
0.14773355424404144,
0.6941481232643127,
0.1396491378545761,
0.12384147942066193,
0.18393826484680176,
-0.015724362805485725,
0.1573636829853058,
0.22163833677768707,
-0.005368262995034456,
0.021260526031255722,
0.4586305618286133,
-0.11599858105182648,
0.03836207091808319,
0.42426156997680664,
0.2985851466655731,
-0.15761499106884003,
-0.5123635530471802,
0.2923935055732727,
0.3320300877094269,
-0.19769921898841858,
-0.10586952418088913,
0.2124364674091339,
0.5360159277915955,
0.03463265299797058,
0.04186907410621643,
-0.30847135186195374,
-0.1861305832862854,
0.06841326504945755,
-0.08897844702005386,
-0.17091429233551025,
-0.19573087990283966,
-0.3741852343082428,
0.2757281959056854,
-0.20030273497104645,
-0.01283501647412777,
0.4741038978099823,
0.18806767463684082,
-0.05183325707912445,
-0.5019614100456238,
0.13635455071926117,
0.23277722299098969,
0.04868422448635101,
-0.3137759864330292,
0.18426699936389923,
-0.05012382194399834,
0.010446229949593544,
0.40372323989868164,
-0.04951430484652519,
0.3289112150669098,
0.4287269711494446,
0.05472467839717865,
-0.42915990948677063,
-0.15338671207427979,
-0.0846826508641243,
-0.06404280662536621,
0.4988797605037689,
-0.08622123301029205,
0.16866330802440643,
0.25313663482666016,
0.0904214158654213,
0.012170353904366493,
0.3275725543498993,
0.14073419570922852,
0.13826832175254822,
-0.4157438576221466,
-0.10138281434774399,
0.08896704763174057,
-0.05861325189471245,
-0.09264419227838516,
-0.1818147450685501,
-0.036955609917640686,
-0.1980535089969635,
0.4690283238887787,
0.06864582747220993,
0.2260657697916031,
0.16461966931819916,
0.002285069553181529,
-0.19563086330890656,
0.29165118932724,
0.3827778995037079,
0.03305955231189728,
-0.5024466514587402,
-0.047882869839668274,
-0.7514448165893555,
0.034469425678253174,
-0.1055864468216896,
-0.1439942866563797,
0.0284262802451849,
0.18963472545146942,
0.24271684885025024,
0.31669560074806213,
-0.0670662671327591,
0.1263180673122406,
-0.06662869453430176,
0.33259016275405884,
-0.2332707643508911,
-0.2137628048658371,
-0.08283010870218277,
0.049770187586545944,
-0.11091094464063644,
-0.4989258348941803,
0.12409067153930664,
0.25860580801963806,
-0.16439683735370636,
-0.19730103015899658,
-0.08317362517118454,
0.08809565752744675,
-0.332263320684433,
0.41267117857933044,
-0.03743625804781914,
0.48195961117744446,
-0.04889945313334465,
0.29204311966896057,
-0.3914601504802704,
-0.29838865995407104,
-0.1549181342124939,
0.22188791632652283,
-0.06461211293935776,
0.43548229336738586,
-0.3110986649990082,
0.02087787725031376,
-0.2157055139541626,
-0.10985690355300903,
0.08013968169689178,
0.24708691239356995,
-0.4290536642074585,
0.20165571570396423,
-0.1904408186674118,
0.22226910293102264,
-0.14852826297283173,
-0.10519348084926605,
-0.1315120905637741,
0.24250860512256622,
-0.06215556710958481,
-0.2259267419576645,
0.2711743116378784,
-0.22850798070430756,
-0.2634803056716919,
0.047785434871912,
0.20379924774169922,
0.16801542043685913,
0.08447389304637909,
-0.5076409578323364,
0.0372542105615139,
0.4007309079170227,
-0.13542699813842773,
-0.06882775574922562,
0.16573147475719452,
0.04434502497315407,
0.13958990573883057,
-0.15898047387599945,
0.1779274046421051,
0.28221264481544495,
-0.19923917949199677,
-0.20893487334251404,
-0.38708004355430603
] |
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.011863143183290958,
0.08087875694036484,
-0.019371073693037033,
0.46244651079177856,
0.28913170099258423,
0.16910164058208466,
0.39548277854919434,
0.24879319965839386,
0.25492528080940247,
0.12202337384223938,
-0.18819254636764526,
0.22736796736717224,
-0.1354265958070755,
-0.015303077176213264,
-0.24972261488437653,
-0.09352165460586548,
0.02609754540026188,
0.059904053807258606,
-0.3732224404811859,
-0.009030325338244438,
-0.3582966923713684,
0.3465508222579956,
-0.31808269023895264,
-0.07678258419036865,
-0.10043150931596756,
0.13664917647838593,
-0.07390449941158295,
0.35160860419273376,
-0.2565931975841522,
-0.2810688614845276,
0.46028587222099304,
0.027672041207551956,
0.5446307063102722,
0.3226150572299957,
-0.00011880282545462251,
0.11578913778066635,
0.25746411085128784,
-0.12577968835830688,
-0.1716526597738266,
-0.6218039393424988,
0.0017186991171911359,
-0.48478636145591736,
0.2545427978038788,
-0.1264299601316452,
-0.12618431448936462,
0.044186923652887344,
-0.09748704731464386,
-0.3808395564556122,
0.4975135028362274,
0.5468571782112122,
0.16082054376602173,
-0.21789635717868805,
-0.002659450052306056,
0.05655598267912865,
0.6734209060668945,
0.047714632004499435,
-0.16922065615653992,
0.2707895338535309,
0.026053275913000107,
-0.08652865141630173,
-0.08803999423980713,
0.13686518371105194,
-0.0883379578590393,
0.29050806164741516,
0.2541854679584503,
0.2660013437271118,
-0.1604851633310318,
-0.23151206970214844,
0.06648685783147812,
0.1838555932044983,
0.6319202780723572,
-0.07598301768302917,
-0.1848376989364624,
-0.04731164872646332,
0.001507019973360002,
-0.21428948640823364,
0.3849785327911377,
0.32181844115257263,
-0.05360642075538635,
0.3348769247531891,
-0.15933695435523987,
0.049126531928777695,
-0.40219375491142273,
0.15638773143291473,
0.05653927102684975,
0.01673094928264618,
-0.2711094319820404,
0.24739740788936615,
0.16203217208385468,
0.040981970727443695,
0.30635926127433777,
0.012509232386946678,
-0.09588911384344101,
0.25507062673568726,
-0.6877472996711731,
0.324242502450943,
-0.16100558638572693,
-0.04710127413272858,
-0.03734147176146507,
0.18415935337543488,
0.3348792791366577,
0.01860501803457737,
-0.10093995183706284,
0.3323724865913391,
0.16964861750602722,
0.07245068997144699,
-0.06948883831501007,
0.31014370918273926,
0.3111257553100586,
-0.1418602466583252,
0.08898992836475372,
-0.19576117396354675,
-0.38135626912117004,
-0.5510746836662292,
-0.13707253336906433,
0.15352092683315277,
0.21526744961738586,
-0.19137351214885712,
-0.13480792939662933,
0.08249704539775848,
-0.29584360122680664,
0.04120083898305893,
-0.10370459407567978,
0.25849053263664246,
0.11812645196914673,
0.19296669960021973,
0.11201835423707962,
0.2178279608488083,
-0.06696329265832901,
-0.35182979702949524,
-0.004881503526121378,
0.15075767040252686,
-0.4125787317752838,
-0.042058974504470825,
0.4580543637275696,
-0.19983074069023132,
0.14303110539913177,
0.1652851551771164,
-0.0317205972969532,
-0.30513936281204224,
-0.027503851801156998,
-0.3450380265712738,
0.10426478832960129,
0.31145578622817993,
0.09196656197309494,
0.1780768483877182,
0.2598014771938324,
-0.27428120374679565,
-0.06500330567359924,
0.2549701929092407,
-0.4401560425758362,
-0.11461790651082993,
-0.07221398502588272,
0.07122816145420074,
-0.26104220747947693,
0.1687275767326355,
-0.54502272605896,
0.11310414969921112,
-0.017152534797787666,
-0.14905820786952972,
-0.19416089355945587,
-0.31848135590553284,
-0.29398873448371887,
-0.2533074915409088,
0.08775923401117325,
0.41056016087532043,
-0.738889217376709,
0.18636922538280487,
-0.00799650140106678,
0.00845892634242773,
0.14233770966529846,
0.25712767243385315,
-0.21667815744876862,
-0.007667270954698324,
-0.2400079220533371,
0.05251874402165413,
0.19947464764118195,
-0.2259487807750702,
-0.46376484632492065,
0.1456197202205658,
0.012508710846304893,
-0.0459890216588974,
0.10682187974452972,
0.02474459819495678,
0.41880232095718384,
0.09536584466695786,
-0.2324720025062561,
0.2021096646785736,
0.02180061675608158,
0.05370723456144333,
-0.2709425985813141,
-0.2555738389492035,
0.2727690041065216,
0.23129893839359283,
0.05673110857605934,
0.07272444665431976,
0.25548458099365234,
-0.5654005408287048,
0.3175983726978302,
-0.09550605714321136,
0.25375378131866455,
0.10378973186016083,
0.3058297038078308,
0.011923224665224552,
0.2585230767726898,
0.02092408947646618,
-0.515477180480957,
0.1781061589717865,
0.34319981932640076,
-0.11955025047063828,
-0.12806867063045502,
-0.03052862547338009,
-0.4309687912464142,
-0.1388528198003769,
-0.24836266040802002,
-0.12303351610898972,
0.009785936214029789,
0.07913315296173096,
0.006720803212374449,
-0.17649947106838226,
-0.11149009317159653,
0.48633456230163574,
-0.3433075249195099,
0.10736950486898422,
-0.3811257481575012,
0.25622785091400146,
0.11002539843320847,
-0.02577195316553116,
0.24724051356315613,
-0.06204979866743088,
0.2698597311973572,
-0.13247931003570557,
-0.1780458241701126,
0.20743714272975922,
0.3486878275871277,
-0.06012384593486786,
0.0584411583840847,
-0.14654888212680817,
0.048619356006383896,
-0.2787677049636841,
-0.06392922252416611,
0.15577389299869537,
0.3600313365459442,
-0.04605148360133171,
-0.5185006856918335,
0.31445375084877014,
-0.3182799518108368,
0.18413712084293365,
-0.16503660380840302,
0.10023090988397598,
0.2616051733493805,
0.011042352765798569,
-0.13403034210205078,
0.006500012706965208,
0.05461154133081436,
0.10288349539041519,
0.3047710657119751,
0.006156298331916332,
-0.09172671288251877,
-0.1693296730518341,
0.0866767168045044,
0.16972334682941437,
-0.2521170377731323,
0.20949168503284454,
-0.07890467345714569,
-0.05278374254703522,
0.3029036521911621,
0.30029943585395813,
0.3695092499256134,
0.06684428453445435,
-0.25570210814476013,
0.02740629017353058,
0.09871450066566467,
-0.20536164939403534,
0.04388740658760071,
0.04508708789944649,
0.13057813048362732,
0.1671065092086792,
0.22083298861980438,
0.1397261917591095,
-0.14625602960586548,
-0.14375202357769012,
0.19359254837036133,
0.2692376673221588,
-0.5836184024810791,
0.004639039281755686,
-0.25201186537742615,
0.2815491855144501,
-0.17762933671474457,
0.0017933290218934417,
0.10169648379087448,
-0.2104959338903427,
-0.350408673286438,
0.29138317704200745,
-0.03269956633448601,
0.01693052612245083,
-0.021211273968219757,
0.34738561511039734,
0.10489223152399063,
-0.0763036459684372,
-0.024083774536848068,
-0.17350542545318604,
-0.2351216822862625,
0.019939396530389786,
0.04435797780752182,
0.00413885060697794,
-0.07211608439683914,
0.03161633014678955,
0.01955701969563961,
-0.24864093959331512,
-0.12166444957256317,
0.15495744347572327,
-0.007237250450998545,
0.18079020082950592,
0.09412209689617157,
-0.0761062428355217,
-0.10425034910440445,
-0.030754242092370987,
0.17157603800296783,
0.10486751049757004,
-0.007071460597217083,
0.2781065106391907,
0.20357874035835266,
-0.1809631586074829,
-0.08322622627019882,
-0.5839012265205383,
-0.3633822798728943,
-0.2267882525920868,
0.06761164218187332,
-0.11464174091815948,
-0.005290771368891001,
0.09916908293962479,
0.2561674416065216,
0.027477381750941277,
0.2174457162618637,
-0.056103382259607315,
-0.1361313760280609,
-0.34650206565856934,
0.5890856981277466,
-0.29516419768333435,
-0.3459739089012146,
0.2518579065799713,
-0.058074865490198135,
0.06556277722120285,
0.45440855622291565,
-0.44825777411460876,
0.1498955935239792,
-0.031936466693878174,
0.07503864914178848,
0.022417200729250908,
0.026220835745334625,
0.0370178259909153,
-0.0896327942609787,
0.1411662995815277,
-0.04101996868848801,
-0.1947060078382492,
0.12355499714612961,
-0.0017066880827769637,
0.10289604216814041,
0.24873094260692596,
0.4418199956417084,
-0.1863638162612915,
0.7564936876296997,
0.16801078617572784,
0.07717311382293701,
0.3038147985935211,
-0.14137102663516998,
0.3919921815395355,
0.1962672919034958,
-0.2521836757659912,
0.1308354139328003,
-0.08939411491155624,
-0.2790391445159912,
0.2910518944263458,
-0.003091799095273018,
-0.12455092370510101,
-0.14321553707122803,
0.18904824554920197,
-0.34180203080177307,
-0.16458401083946228,
0.12098274379968643,
0.07233648747205734,
0.08356381952762604,
0.0051705618388950825,
0.16734954714775085,
0.10780584067106247,
-0.2757090628147125,
-0.13253429532051086,
0.27596452832221985,
0.16778740286827087,
-0.035073794424533844,
0.1664513796567917,
-0.1171141266822815,
-0.39320874214172363,
0.23385219275951385,
-0.06991248577833176,
0.34058067202568054,
0.1547212302684784,
0.026966217905282974,
0.049114011228084564,
0.12860940396785736,
0.7292759418487549,
-0.2867428660392761,
-0.04992114007472992,
0.16833063960075378,
-0.11484596133232117,
-0.18533939123153687,
-0.2699631154537201,
-0.1347566694021225,
0.13975243270397186,
0.04227985069155693,
0.27388280630111694,
0.009045678190886974,
0.03845130279660225,
0.38091328740119934,
0.03718063235282898,
-0.15058745443820953,
-0.3422773778438568,
-0.1247253492474556,
-0.10892215371131897,
-0.13652151823043823,
-0.2156277596950531,
0.10308220237493515,
0.15270455181598663,
-0.26317906379699707,
0.03382822498679161,
-0.21286480128765106,
-0.19472554326057434,
0.28983640670776367,
0.22484463453292847,
0.2315245419740677,
0.13698667287826538,
0.13357697427272797,
0.37251272797584534,
0.15324553847312927,
0.23074419796466827,
0.7831406593322754,
-0.25038227438926697,
-0.8798403143882751,
0.25208067893981934,
-0.5395916700363159,
0.2746087908744812,
0.06726044416427612,
-0.39261865615844727,
-0.06926058977842331,
-0.19089798629283905,
-0.13588784635066986,
-0.13305127620697021,
0.0394621416926384,
0.07276006042957306,
0.029898492619395256,
-0.12871912121772766,
-0.5149633288383484,
0.52573561668396,
-0.09980360418558121,
-0.18122906982898712,
0.020228318870067596,
0.014194129034876823,
-0.36942651867866516,
0.42481181025505066,
-0.055052921175956726,
0.7185190916061401,
-0.15438468754291534,
-0.06646820902824402,
0.19479648768901825,
-0.15812204778194427,
0.4200708270072937,
-0.2776705026626587,
0.008203385397791862,
-0.3842916488647461,
-0.17450278997421265,
-0.19664616882801056,
0.01376805268228054,
0.17336086928844452,
0.5210572481155396,
-0.14519932866096497,
0.31639572978019714,
0.0016984631074592471,
0.36455512046813965,
0.02646029181778431,
0.015500452369451523,
0.3741772174835205,
-0.1792827993631363,
-0.1920853555202484,
0.11077506095170975,
-0.1384778469800949,
0.015447268262505531,
0.09687720239162445,
0.0570581816136837,
-0.3032524883747101,
-0.05056936293840408,
-0.41316837072372437,
0.23847933113574982,
-0.17251910269260406,
0.04420911893248558,
0.114967480301857,
-0.5480042099952698,
0.5427275896072388,
0.4506191611289978,
0.24101708829402924,
-0.0006869485951028764,
-0.23817525804042816,
0.05948338285088539,
0.008938636630773544,
-0.04554188996553421,
-0.1769886165857315,
-0.023201938718557358,
-0.07912668585777283,
0.17295165359973907,
-0.2429802417755127,
0.3244459927082062,
-0.0582638755440712,
-0.08374158293008804,
0.22001293301582336,
0.2635119557380676,
0.24228182435035706,
-0.43295958638191223,
-0.27821987867355347,
-0.22407902777194977,
0.09294817596673965,
-0.10384799540042877,
0.04449827969074249,
-0.07980161160230637,
0.08798316866159439,
-0.0037032724358141422,
0.12560996413230896,
-0.3943379521369934,
0.14754927158355713,
0.22927415370941162,
-0.2091279923915863,
0.07421362400054932,
0.39619138836860657,
0.4418806731700897,
-0.15955227613449097,
-0.13382722437381744,
0.07724004238843918,
0.18883547186851501,
-0.4828431010246277,
0.11608748137950897,
0.12500013411045074,
0.24399425089359283,
0.10877945274114609,
0.2083624303340912,
0.21342381834983826,
-0.2776624262332916,
0.14649313688278198,
-0.6198530197143555,
-0.025482608005404472,
-0.10957051813602448,
-0.14040035009384155,
0.07561468333005905,
0.049704521894454956,
-0.4496728777885437,
-0.1291389912366867,
-0.01177503913640976,
-0.188574880361557,
0.1399783045053482,
0.040780555456876755,
0.018043460324406624,
0.23112209141254425,
0.2857999801635742,
-0.2057444155216217,
-0.3224654793739319,
-0.03622181713581085,
0.12147517502307892,
0.06562310457229614,
-0.10713893920183182,
-0.27272287011146545,
0.17286600172519684,
-0.0013993645552545786,
0.05390296131372452,
-0.22844454646110535,
-0.18583944439888,
-0.25765666365623474,
-0.1746504306793213,
0.2525276243686676,
0.2778943181037903,
0.04119272530078888,
0.4188424348831177,
-0.08361797034740448,
-0.08943632245063782,
-0.4818769693374634,
0.27028757333755493,
-0.19711421430110931,
0.2839876115322113,
0.1542859524488449,
0.23161622881889343,
0.15931545197963715,
0.10048636794090271,
-0.1338304579257965,
-0.024589750915765762,
-0.07084242254495621,
-0.18769848346710205,
0.3153248131275177,
-0.33479124307632446,
0.21859093010425568,
0.17901340126991272,
0.30799600481987,
0.31687846779823303,
-0.12150925397872925,
-0.102330282330513,
0.1719914823770523,
0.09024044126272202,
-0.33669471740722656,
0.19670023024082184,
0.059476371854543686,
0.3061063587665558,
-0.022068677470088005,
0.32457631826400757,
-0.05370601639151573,
-0.07964342087507248,
0.023963114246726036,
0.11511882394552231,
0.7046641707420349,
-0.016493195667862892,
0.05248120427131653,
0.054825786501169205,
-0.04942956939339638,
0.11153716593980789,
0.2270132452249527,
0.038073595613241196,
0.05072063207626343,
0.530874490737915,
-0.13902394473552704,
-0.015198370441794395,
0.2474919855594635,
0.380748987197876,
-0.16278406977653503,
-0.6306782364845276,
0.23858404159545898,
0.3995525538921356,
-0.3072296380996704,
0.019061850383877754,
0.121239572763443,
0.6014147996902466,
0.034966256469488144,
0.11638278514146805,
-0.298666775226593,
-0.010740067809820175,
0.13158656656742096,
-0.10315771400928497,
-0.2647881805896759,
-0.2150600105524063,
-0.43872883915901184,
0.28460317850112915,
-0.21691004931926727,
-0.08434543758630753,
0.3529367446899414,
0.19718250632286072,
-0.0669349953532219,
-0.5603029727935791,
0.12789151072502136,
0.21197375655174255,
0.11039862781763077,
-0.3089471459388733,
0.1559380292892456,
-0.049314290285110474,
0.019481390714645386,
0.28488534688949585,
-0.03133901581168175,
0.3540912866592407,
0.4284120798110962,
0.06925102323293686,
-0.34560611844062805,
-0.17221535742282867,
-0.1174992024898529,
-0.1075449138879776,
0.4433700144290924,
0.055737681686878204,
0.20209169387817383,
0.232997864484787,
0.09308693557977676,
-0.008033014833927155,
0.325997918844223,
0.07014922052621841,
0.23547732830047607,
-0.3867928385734558,
-0.14371511340141296,
-0.0548560693860054,
0.047450896352529526,
-0.1470629721879959,
-0.2836554944515228,
-0.16986523568630219,
-0.07852941751480103,
0.4186338186264038,
0.12905080616474152,
0.28928303718566895,
0.1643122136592865,
0.004026832524687052,
-0.11191245913505554,
0.2636410892009735,
0.46337124705314636,
0.10634278506040573,
-0.49089348316192627,
-0.04684685170650482,
-0.7612826824188232,
-0.02302533946931362,
-0.20923373103141785,
-0.14635901153087616,
-0.010271246545016766,
0.24799613654613495,
0.2465251386165619,
0.3274957835674286,
-0.08135107159614563,
0.12139531970024109,
-0.037889931350946426,
0.29888105392456055,
-0.2078571617603302,
-0.14932122826576233,
-0.07539082318544388,
0.06106271967291832,
-0.035732805728912354,
-0.4650058448314667,
0.07143828272819519,
0.3284136950969696,
-0.16042402386665344,
-0.15804746747016907,
0.009050145745277405,
0.0185574721544981,
-0.27873075008392334,
0.3543343245983124,
0.020047970116138458,
0.38449379801750183,
-0.016235079616308212,
0.28083720803260803,
-0.4696330726146698,
-0.21696467697620392,
-0.194038525223732,
0.21340401470661163,
-0.05094422399997711,
0.46704408526420593,
-0.3124225437641144,
-0.10089481621980667,
-0.23788675665855408,
0.00012836442328989506,
0.08802338689565659,
0.1379539519548416,
-0.3464069962501526,
0.2650655210018158,
-0.10359983891248703,
0.20207050442695618,
-0.15309885144233704,
-0.10171051323413849,
-0.20056115090847015,
0.1393134891986847,
-0.07914698123931885,
-0.2614235579967499,
0.2789076268672943,
-0.321994423866272,
-0.22202403843402863,
0.03537473455071449,
0.12096940726041794,
0.19212393462657928,
0.12581951916217804,
-0.5225006937980652,
0.042380597442388535,
0.342472106218338,
-0.13802163302898407,
-0.15902023017406464,
0.15847228467464447,
0.1098293885588646,
0.04639436677098274,
-0.21526244282722473,
0.19986552000045776,
0.3526132106781006,
-0.2159949541091919,
-0.21491998434066772,
-0.37202927470207214
] |
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.09202507883310318,
0.05643486976623535,
0.003914379049092531,
0.37216076254844666,
0.2419905811548233,
0.21125133335590363,
0.530138373374939,
0.3948995769023895,
0.24741822481155396,
0.06873534619808197,
-0.14504030346870422,
0.2728797495365143,
-0.17804262042045593,
0.08538180589675903,
-0.26215577125549316,
-0.19454500079154968,
0.0322137176990509,
0.049731045961380005,
-0.3552701473236084,
0.0039878967218101025,
-0.3571982979774475,
0.37880659103393555,
-0.35984286665916443,
-0.07910015434026718,
-0.22351793944835663,
0.16742275655269623,
-0.1466452181339264,
0.3418913781642914,
-0.06460440903902054,
-0.30697372555732727,
0.4642286002635956,
-0.10275030881166458,
0.4105318486690521,
0.3379974365234375,
-0.00012092650285921991,
0.09159781783819199,
0.24506062269210815,
-0.1091812402009964,
-0.25045260787010193,
-0.6010636687278748,
-0.02593737281858921,
-0.39213263988494873,
0.3510510325431824,
-0.14111804962158203,
-0.12903015315532684,
0.05703965947031975,
-0.16927295923233032,
-0.35285013914108276,
0.4674944579601288,
0.5159783363342285,
0.1531330794095993,
-0.20590169727802277,
-0.1971258521080017,
-0.012446618638932705,
0.5450271368026733,
0.10829130560159683,
-0.14576679468154907,
0.2881380617618561,
-0.013943889178335667,
-0.20464161038398743,
-0.11181599646806717,
0.06374940276145935,
0.01064277347177267,
0.21902057528495789,
0.13160312175750732,
0.2965676784515381,
-0.26157131791114807,
-0.201714426279068,
0.01666639745235443,
0.19496122002601624,
0.5705482959747314,
-0.07318005710840225,
-0.17485660314559937,
-0.16131721436977386,
-0.05998658761382103,
-0.21300634741783142,
0.3124713897705078,
0.3574935495853424,
-0.016969477757811546,
0.3381772041320801,
-0.12065795063972473,
0.07099030911922455,
-0.25840771198272705,
0.099461629986763,
-0.05621384456753731,
0.06547900289297104,
-0.14895382523536682,
0.28125303983688354,
0.20177000761032104,
0.10153108090162277,
0.25147730112075806,
-0.057995375245809555,
-0.06732463836669922,
0.15803083777427673,
-0.6834619641304016,
0.20368097722530365,
-0.21687710285186768,
-0.15267100930213928,
-0.054263290017843246,
0.24588632583618164,
0.17604340612888336,
-0.04768357053399086,
-0.07081037014722824,
0.3254227638244629,
0.3645861744880676,
0.007467244286090136,
-0.02589818276464939,
0.40441298484802246,
0.2407531440258026,
-0.13342338800430298,
-0.038878995925188065,
-0.18577778339385986,
-0.29342126846313477,
-0.5016213059425354,
-0.08630270510911942,
0.20128262042999268,
0.16110341250896454,
-0.15347078442573547,
-0.2344415783882141,
0.0494660921394825,
-0.3282531499862671,
-0.016004135832190514,
-0.10578765720129013,
0.3072037696838379,
0.07920553535223007,
0.3233470618724823,
0.0002639632730279118,
0.2762194573879242,
-0.14991746842861176,
-0.35001111030578613,
-0.03806965425610542,
0.15383976697921753,
-0.4294224679470062,
-0.06670928746461868,
0.4374999701976776,
-0.1740853637456894,
0.143362358212471,
0.19283849000930786,
-0.056643612682819366,
-0.38306209444999695,
-0.07296643406152725,
-0.30450788140296936,
0.12774160504341125,
0.27925747632980347,
0.10172276943922043,
0.17162849009037018,
0.2939251959323883,
-0.19961227476596832,
-0.08715984225273132,
0.2777000367641449,
-0.4890448749065399,
-0.2541225850582123,
-0.09134604781866074,
0.10751836746931076,
-0.2549365162849426,
0.14197418093681335,
-0.3131115436553955,
0.046801503747701645,
0.09502947330474854,
-0.10524191707372665,
-0.1675725281238556,
-0.32255426049232483,
-0.3190794289112091,
-0.24400202929973602,
0.04668598994612694,
0.3962138891220093,
-0.7064710855484009,
0.16097892820835114,
-0.04362707957625389,
0.01664971187710762,
0.17652305960655212,
0.22869201004505157,
-0.26050031185150146,
0.07816355675458908,
-0.29389530420303345,
0.12579500675201416,
0.26240456104278564,
-0.21647849678993225,
-0.31293681263923645,
0.2795172333717346,
-0.04553495720028877,
-0.0195159949362278,
0.13867877423763275,
0.004877903498709202,
0.41929736733436584,
0.03277590870857239,
-0.12228076159954071,
0.2695266604423523,
-0.06650146096944809,
0.0513627789914608,
-0.2043425589799881,
-0.22083167731761932,
0.23039568960666656,
0.2533376216888428,
0.09017322212457657,
0.064632348716259,
0.252032071352005,
-0.4523490071296692,
0.43114370107650757,
-0.018521364778280258,
0.20099589228630066,
0.06000470742583275,
0.20454931259155273,
0.06739601492881775,
0.2995598316192627,
-0.044875435531139374,
-0.5501887798309326,
0.17511022090911865,
0.42305752635002136,
-0.18364442884922028,
-0.17123934626579285,
-0.08161107450723648,
-0.4569070339202881,
-0.05277843028306961,
-0.26321321725845337,
-0.03535912185907364,
-0.029591837897896767,
-0.04530923441052437,
-0.011051567271351814,
-0.18257462978363037,
-0.17911751568317413,
0.4217713177204132,
-0.26118704676628113,
0.17219682037830353,
-0.3425503671169281,
0.3586447238922119,
0.14261558651924133,
-0.051723457872867584,
0.1552654206752777,
0.05617433413863182,
0.23906245827674866,
-0.1527734398841858,
-0.14837251603603363,
0.33563661575317383,
0.47665873169898987,
-0.06188111752271652,
-0.03935879096388817,
-0.25678491592407227,
0.12003809958696365,
-0.21253889799118042,
-0.07651844620704651,
0.20148919522762299,
0.26608139276504517,
-0.08924532681703568,
-0.4791175127029419,
0.3983052968978882,
-0.3870798647403717,
0.3109741806983948,
-0.12544921040534973,
0.19986945390701294,
0.241813525557518,
-0.10076466202735901,
-0.10405705869197845,
-0.07478274405002594,
0.022481268271803856,
-0.0448644794523716,
0.25910890102386475,
0.07628759741783142,
-0.1619550883769989,
-0.19723515212535858,
0.31972330808639526,
0.11518032848834991,
-0.25127875804901123,
0.11531342566013336,
-0.09707066416740417,
-0.05260173976421356,
0.25532615184783936,
0.38899585604667664,
0.43570366501808167,
0.08310283720493317,
-0.20039844512939453,
0.027241474017500877,
0.12056528031826019,
-0.2420068234205246,
0.16772721707820892,
0.07373541593551636,
0.08036238700151443,
0.22839877009391785,
0.13718000054359436,
0.018558444455266,
-0.12216275930404663,
-0.14204107224941254,
0.21807898581027985,
0.15314102172851562,
-0.5580415725708008,
0.06724727898836136,
-0.24924452602863312,
0.35422882437705994,
-0.3054797649383545,
-0.08809348195791245,
0.11775343120098114,
-0.33768561482429504,
-0.2673148512840271,
0.22581030428409576,
-0.1555701047182083,
0.08494053781032562,
-0.19685213267803192,
0.1688944399356842,
0.0460413433611393,
-0.22575156390666962,
0.12774862349033356,
-0.21521207690238953,
-0.2622303366661072,
0.026539603248238564,
0.05469710752367973,
0.004814366810023785,
-0.060491904616355896,
0.008946719579398632,
-0.017185909673571587,
-0.123348668217659,
-0.018215980380773544,
0.18679864704608917,
-0.0702735111117363,
-0.0006803848664276302,
0.18533125519752502,
-0.15704065561294556,
-0.029387760907411575,
-0.2066924124956131,
0.16233773529529572,
0.0773240178823471,
0.056724365800619125,
0.36530160903930664,
0.293117493391037,
-0.06450122594833374,
-0.17957274615764618,
-0.737792432308197,
-0.2892291843891144,
-0.2201967090368271,
0.06920293718576431,
-0.16712923347949982,
-0.03505393862724304,
0.09366810321807861,
0.25602465867996216,
-0.03218185901641846,
0.2291257083415985,
-0.17196260392665863,
-0.1385292112827301,
-0.18589939177036285,
0.5807957053184509,
-0.24695101380348206,
-0.27138277888298035,
0.21955443918704987,
-0.13152487576007843,
0.007083659525960684,
0.36767593026161194,
-0.4218454360961914,
0.2262398898601532,
-0.06975604593753815,
0.07498355209827423,
-0.05207905173301697,
0.024303779006004333,
0.083006352186203,
-0.06991750001907349,
0.09782828390598297,
-0.03876064345240593,
-0.10522592067718506,
0.2508595883846283,
-0.049693718552589417,
0.10345291346311569,
0.1427067220211029,
0.5326669216156006,
-0.09933456778526306,
0.8147950768470764,
0.051359739154577255,
0.05938483402132988,
0.19293242692947388,
-0.1644672006368637,
0.2508685290813446,
0.11529453098773956,
-0.2596243917942047,
0.08384043723344803,
-0.1691661775112152,
-0.32208240032196045,
0.35160383582115173,
-0.021485157310962677,
-0.15244102478027344,
-0.09982810914516449,
0.25905731320381165,
-0.20203077793121338,
-0.2619889974594116,
0.1752263307571411,
-0.11712154746055603,
0.02988467738032341,
-0.031276434659957886,
0.2175440639257431,
0.1629427820444107,
-0.20703792572021484,
-0.022765599191188812,
0.12135795503854752,
0.13132114708423615,
-0.1712009161710739,
0.07240458577871323,
-0.16775614023208618,
-0.26506420969963074,
0.1700243204832077,
0.006587717682123184,
0.3186214864253998,
0.12309032678604126,
-0.14270077645778656,
0.07816918939352036,
0.22316795587539673,
0.812667191028595,
-0.18910901248455048,
-0.00121896096970886,
0.14945468306541443,
-0.07518991082906723,
-0.13241899013519287,
-0.3159852623939514,
-0.14862295985221863,
0.22765125334262848,
0.08831694722175598,
0.25104567408561707,
-0.04963947460055351,
-0.01033060997724533,
0.4505234956741333,
0.0838639959692955,
-0.20747904479503632,
-0.36611929535865784,
-0.156246155500412,
-0.01256715040653944,
-0.09316742420196533,
-0.1308237910270691,
0.19057658314704895,
0.16853336989879608,
-0.3185509443283081,
-0.005458618514239788,
-0.16507913172245026,
-0.25743478536605835,
0.34993597865104675,
0.17091645300388336,
0.2823197543621063,
0.027928030118346214,
0.2067069262266159,
0.22875787317752838,
0.15203236043453217,
0.19401539862155914,
0.7980726361274719,
-0.2726476788520813,
-0.875758945941925,
0.25972893834114075,
-0.5026084184646606,
0.40055426955223083,
0.02533293142914772,
-0.36386457085609436,
-0.10371249914169312,
-0.19180303812026978,
-0.05263638123869896,
-0.12982985377311707,
0.01651703380048275,
0.08913134038448334,
-0.06780745834112167,
-0.2455700784921646,
-0.5857754945755005,
0.4648815095424652,
-0.08204934746026993,
-0.07248247414827347,
0.09972040355205536,
-0.07006838172674179,
-0.38100823760032654,
0.5269700288772583,
-0.1301177442073822,
0.6978644728660583,
-0.09405232965946198,
-0.01970839872956276,
0.15780872106552124,
-0.20155519247055054,
0.39616623520851135,
-0.310293972492218,
-0.014509662985801697,
-0.4537200331687927,
-0.1600111573934555,
-0.18396733701229095,
0.006758393719792366,
0.07007145136594772,
0.5914732217788696,
-0.17102102935314178,
0.39707452058792114,
-0.11072482913732529,
0.4428045153617859,
0.004138100892305374,
0.13330161571502686,
0.29298296570777893,
-0.1906881332397461,
-0.13684868812561035,
0.07731758058071136,
-0.057902611792087555,
-0.06765580177307129,
0.15296439826488495,
-0.010308862663805485,
-0.2295546680688858,
-0.029812626540660858,
-0.29598158597946167,
0.3327459394931793,
-0.08510179072618484,
0.09755556285381317,
0.09620450437068939,
-0.5183790922164917,
0.5273532867431641,
0.44070005416870117,
0.1441199630498886,
-0.03398844227194786,
-0.12900644540786743,
0.1348179131746292,
0.00896789226680994,
0.07391190528869629,
-0.09051848202943802,
-0.014664844609797001,
0.07358034700155258,
0.2807481288909912,
-0.18520809710025787,
0.2451520562171936,
-0.09775543957948685,
-0.082965187728405,
0.31111592054367065,
0.31332552433013916,
0.28253406286239624,
-0.586095929145813,
-0.2721993029117584,
-0.20854493975639343,
0.15409129858016968,
-0.15150679647922516,
0.04696908965706825,
-0.11854834854602814,
0.006501553580164909,
0.05101362243294716,
0.007897511124610901,
-0.36089006066322327,
0.12198477238416672,
0.19704876840114594,
-0.06576807796955109,
0.11263616383075714,
0.4779484272003174,
0.42110157012939453,
-0.08398541063070297,
-0.18901073932647705,
0.1011253297328949,
0.19841618835926056,
-0.6184695363044739,
0.17377141118049622,
0.056719567626714706,
0.24878241121768951,
0.09684550762176514,
0.13443274796009064,
0.11384467780590057,
-0.16932198405265808,
0.060224633663892746,
-0.5078529119491577,
-0.025108594447374344,
-0.04201756417751312,
-0.1369597166776657,
0.05974274501204491,
0.06742684543132782,
-0.2848602831363678,
-0.16184459626674652,
-0.07028210163116455,
-0.17839378118515015,
0.14016883075237274,
0.07606653869152069,
0.07137002050876617,
0.11395961791276932,
0.22295676171779633,
-0.11001415550708771,
-0.2800537645816803,
0.02513526938855648,
0.02765139751136303,
0.12828412652015686,
-0.12220796942710876,
-0.2492935061454773,
0.17296439409255981,
-0.020315632224082947,
0.189383402466774,
-0.30061075091362,
-0.12530915439128876,
-0.25621911883354187,
-0.18489941954612732,
0.2022193819284439,
0.278059184551239,
0.02763989567756653,
0.4822480082511902,
0.11227517575025558,
-0.04525776207447052,
-0.5738325119018555,
0.27493396401405334,
-0.2892034649848938,
0.26346883177757263,
0.13057692348957062,
0.23885875940322876,
0.10354356467723846,
0.09801332652568817,
-0.1666344255208969,
-0.04993651062250137,
-0.11104296147823334,
-0.1527336686849594,
0.2965563237667084,
-0.33479949831962585,
0.16241268813610077,
0.13234072923660278,
0.4000544846057892,
0.4437747299671173,
-0.10053961724042892,
-0.1168723851442337,
0.15313178300857544,
0.12465796619653702,
-0.2727159261703491,
0.20149359107017517,
0.11380868405103683,
0.25034037232398987,
-0.06401391327381134,
0.3176329433917999,
-0.03594507649540901,
-0.0939217284321785,
-0.017121460288763046,
0.1545407772064209,
0.6070328950881958,
0.08047474175691605,
0.23608724772930145,
0.446752667427063,
0.011463665403425694,
0.15986992418766022,
0.20034977793693542,
-0.14769166707992554,
0.08382057398557663,
0.5120178461074829,
-0.1648627519607544,
0.012832566164433956,
0.34074467420578003,
0.1974019557237625,
-0.08129595965147018,
-0.5081668496131897,
0.12115851789712906,
0.29553553462028503,
-0.36241665482521057,
-0.07143861800432205,
0.07451747357845306,
0.7061755657196045,
-0.08430476486682892,
0.04141279309988022,
-0.3371930718421936,
-0.06683466583490372,
0.07255740463733673,
-0.05091717466711998,
-0.1879674196243286,
-0.16442851722240448,
-0.5028637647628784,
0.31128883361816406,
-0.15618737041950226,
-0.0690341368317604,
0.47600093483924866,
0.2167230099439621,
-0.008694184012711048,
-0.43377137184143066,
0.032050877809524536,
0.16973724961280823,
0.11648066341876984,
-0.35141921043395996,
0.045869264751672745,
-0.06984309107065201,
0.04141581058502197,
0.36753177642822266,
-0.2498469352722168,
0.3425770699977875,
0.3527578115463257,
0.009210928343236446,
-0.3907548785209656,
-0.07556883245706558,
-0.0503062941133976,
-0.021436870098114014,
0.42975053191185,
0.001763454987667501,
0.31967616081237793,
0.28297457098960876,
0.09232435375452042,
-0.009278472512960434,
0.2641902267932892,
0.10177845507860184,
0.15557332336902618,
-0.4826744496822357,
0.0886416882276535,
0.07567794620990753,
-0.079569511115551,
-0.15192115306854248,
-0.20956413447856903,
-0.1678599864244461,
-0.20770609378814697,
0.3991565704345703,
0.09871800988912582,
0.23741038143634796,
0.15707917511463165,
-0.01254204660654068,
-0.10161001980304718,
0.241864874958992,
0.3471139073371887,
0.030185643583536148,
-0.4722248315811157,
-0.023413000628352165,
-0.6675114631652832,
-0.1041138768196106,
-0.171396866440773,
-0.11487775295972824,
-0.019500890746712685,
0.23865142464637756,
0.20161356031894684,
0.2796034812927246,
-0.0930209755897522,
0.12851954996585846,
-0.01759316213428974,
0.3582005798816681,
-0.1670178920030594,
-0.17820847034454346,
-0.19632874429225922,
0.07738759368658066,
-0.05502854287624359,
-0.4330325424671173,
0.00008239957242039964,
0.29985618591308594,
-0.1908217817544937,
-0.06658198684453964,
-0.1808106005191803,
0.16339313983917236,
-0.21267302334308624,
0.29393237829208374,
0.021584689617156982,
0.41897282004356384,
0.03795953094959259,
0.30840563774108887,
-0.37478572130203247,
-0.27938634157180786,
-0.20772311091423035,
0.2350732684135437,
-0.06310169398784637,
0.43867725133895874,
-0.32438942790031433,
0.06587257981300354,
-0.2079080492258072,
0.03943789005279541,
0.08884546905755997,
0.16808511316776276,
-0.34438443183898926,
0.19407060742378235,
-0.07931332290172577,
0.2522796094417572,
0.0013854347635060549,
0.07679427415132523,
-0.20812340080738068,
0.15915483236312866,
-0.04637503996491432,
-0.3086293935775757,
0.265518456697464,
-0.3227378726005554,
-0.2894769608974457,
0.01984516531229019,
0.19211749732494354,
0.24263261258602142,
0.11709719896316528,
-0.5216588973999023,
-0.06678738445043564,
0.3476245701313019,
-0.168832927942276,
-0.11390272527933121,
0.11491213738918304,
0.15702466666698456,
0.09789938479661942,
-0.14284487068653107,
0.20177407562732697,
0.3349764943122864,
-0.33642542362213135,
-0.06701016426086426,
-0.38401100039482117
] |
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.05377597361803055,
0.10334620624780655,
0.019004641100764275,
0.3612278997898102,
0.18078337609767914,
-0.0042515648528933525,
0.5432192087173462,
0.2224990278482437,
0.3372096121311188,
-0.0036191234830766916,
-0.023761458694934845,
0.30691924691200256,
-0.03176402673125267,
0.11891794204711914,
-0.20251409709453583,
-0.07497171312570572,
-0.012214988470077515,
0.12070568650960922,
-0.3683387339115143,
-0.01743108406662941,
-0.43091657757759094,
0.2928497791290283,
-0.221396803855896,
-0.05857060104608536,
-0.11517731845378876,
0.15716207027435303,
0.001704526599496603,
0.36609286069869995,
-0.10848338901996613,
-0.2572764754295349,
0.628057062625885,
0.023004231974482536,
0.4292280375957489,
0.2245849072933197,
-0.00011907165753655136,
0.03881189599633217,
0.31178486347198486,
-0.13290582597255707,
-0.28974127769470215,
-0.5877238512039185,
-0.027259385213255882,
-0.39561814069747925,
0.33775657415390015,
-0.10407445579767227,
-0.06167120486497879,
0.17277538776397705,
-0.16527798771858215,
-0.5165004134178162,
0.3123309016227722,
0.3730698227882385,
0.14050856232643127,
-0.28345197439193726,
-0.23099733889102936,
0.0034147577825933695,
0.5908167958259583,
0.2067526876926422,
-0.1971363127231598,
0.2810765504837036,
0.16698096692562103,
-0.10156890749931335,
-0.15980280935764313,
0.08315526694059372,
-0.10432332754135132,
0.18943852186203003,
0.29018133878707886,
0.2623087763786316,
-0.2809913158416748,
-0.11749003827571869,
-0.01699979417026043,
0.1899373084306717,
0.8341624140739441,
-0.07357572764158249,
-0.21519671380519867,
-0.20799949765205383,
-0.009148440323770046,
-0.19425471127033234,
0.2959367632865906,
0.22416873276233673,
-0.025601401925086975,
0.2741403877735138,
-0.03989484906196594,
0.00027213929570280015,
-0.22958232462406158,
0.06437700986862183,
-0.11931020021438599,
0.010274318978190422,
-0.15696294605731964,
0.3779331147670746,
0.04562554508447647,
0.15493139624595642,
0.34298399090766907,
-0.11165232956409454,
-0.11626005917787552,
0.08353086560964584,
-0.567054808139801,
0.15756408870220184,
0.05513956397771835,
-0.15923917293548584,
0.01744801737368107,
0.30707603693008423,
0.3632951080799103,
0.0668959841132164,
-0.172104611992836,
0.2512286305427551,
0.43449458479881287,
0.08179921656847,
0.002074828138574958,
0.25766122341156006,
0.3648812472820282,
-0.2776293158531189,
0.01378311775624752,
-0.16478963196277618,
-0.17193378508090973,
-0.2707705795764923,
-0.05752123147249222,
0.16109366714954376,
0.16826675832271576,
-0.16843225061893463,
-0.2216252088546753,
0.07329048216342926,
-0.26442182064056396,
-0.054759733378887177,
-0.15194402635097504,
0.2221851944923401,
0.15224158763885498,
0.5024959444999695,
0.015644218772649765,
0.17616738379001617,
-0.09877267479896545,
-0.3069806694984436,
0.00241025909781456,
0.0743473619222641,
-0.43791908025741577,
-0.0022646160796284676,
0.47758233547210693,
-0.12380880117416382,
0.021383492276072502,
0.19101470708847046,
-0.1467142552137375,
-0.2925011217594147,
-0.06910434365272522,
-0.31214866042137146,
0.1865880936384201,
0.22014479339122772,
0.013704711571335793,
0.21262015402317047,
0.20469334721565247,
-0.23284099996089935,
-0.23644307255744934,
0.3585526943206787,
-0.5362182259559631,
-0.30464571714401245,
-0.03983504697680473,
0.09858650714159012,
-0.2729693055152893,
0.22918745875358582,
-0.3323957324028015,
0.1283835917711258,
0.0017086362931877375,
-0.10089148581027985,
-0.08922514319419861,
-0.3063388466835022,
-0.29461750388145447,
-0.3322317600250244,
-0.0385909378528595,
0.5090970993041992,
-0.8320770263671875,
0.22648310661315918,
-0.08604390919208527,
0.12198883295059204,
0.09565255790948868,
0.34448695182800293,
-0.30254337191581726,
0.09664245694875717,
-0.3494293689727783,
0.040071405470371246,
0.3277111053466797,
-0.21197068691253662,
-0.38287287950515747,
0.23155370354652405,
-0.10520440340042114,
0.07847683131694794,
0.16419348120689392,
0.16494251787662506,
0.444454550743103,
-0.04352935031056404,
-0.0862465426325798,
0.2531387507915497,
-0.12447003275156021,
0.0795060470700264,
-0.2437726855278015,
-0.24830439686775208,
0.24990099668502808,
0.17007942497730255,
0.10381262004375458,
0.05405836179852486,
0.19445417821407318,
-0.4752430021762848,
0.3589853048324585,
-0.09315037727355957,
0.12578070163726807,
-0.1334749460220337,
0.3010075092315674,
0.02600289136171341,
0.29125478863716125,
-0.007892747409641743,
-0.6777342557907104,
0.17921116948127747,
0.4068230986595154,
-0.1115448921918869,
-0.03827599808573723,
-0.18205800652503967,
-0.3484877943992615,
-0.015558598563075066,
-0.1695307046175003,
0.02783381938934326,
-0.03589127957820892,
0.039156414568424225,
-0.10853513330221176,
-0.15493880212306976,
-0.20777583122253418,
0.402516633272171,
-0.2128468006849289,
0.08484983444213867,
-0.3851653039455414,
0.35663312673568726,
0.27397313714027405,
0.009731493890285492,
0.14064709842205048,
0.13051562011241913,
0.22485677897930145,
-0.10977328568696976,
-0.05816143378615379,
0.2158617228269577,
0.3570629358291626,
-0.09468614310026169,
-0.011633999645709991,
-0.1943478286266327,
0.09666168689727783,
-0.12029428780078888,
-0.0475931242108345,
0.2353377640247345,
0.3100092113018036,
-0.1653418391942978,
-0.5367753505706787,
0.4306187033653259,
-0.4352805018424988,
0.2406536489725113,
-0.14656424522399902,
0.05633644387125969,
0.17643581330776215,
-0.011293650604784489,
-0.14375236630439758,
-0.027479656040668488,
-0.1477053165435791,
0.03376150131225586,
0.24780984222888947,
0.1867637038230896,
-0.1355113536119461,
-0.05336827412247658,
0.36187177896499634,
0.13172581791877747,
-0.1845158338546753,
0.21076105535030365,
0.04885752499103546,
-0.23759621381759644,
0.32478705048561096,
0.3543034493923187,
0.6315699219703674,
0.09515994787216187,
-0.19536717236042023,
-0.10668602585792542,
0.08254555612802505,
-0.264608234167099,
0.14124727249145508,
-0.009270482696592808,
0.029880324378609657,
0.20755772292613983,
0.18904893100261688,
0.03944597393274307,
-0.1802784651517868,
-0.19065628945827484,
0.06673261523246765,
0.09992484003305435,
-0.5104935169219971,
0.06828276813030243,
-0.12290871143341064,
0.26682421565055847,
-0.2863725423812866,
-0.028634095564484596,
0.071572445333004,
-0.31651824712753296,
-0.24673399329185486,
0.19030389189720154,
-0.15233756601810455,
0.0006300651002675295,
-0.14284352958202362,
0.3498922884464264,
-0.0687938779592514,
-0.2591996490955353,
-0.01697704941034317,
-0.12455728650093079,
-0.27156952023506165,
0.01751728169620037,
0.029154961928725243,
0.048581965267658234,
0.06301021575927734,
0.03378966078162193,
0.06467150896787643,
-0.2758503556251526,
-0.11072786897420883,
0.2082015573978424,
0.027093717828392982,
0.05839966610074043,
0.3743037283420563,
-0.18556028604507446,
0.0611075758934021,
-0.14893992245197296,
0.10788930207490921,
0.156040757894516,
0.10857189446687698,
0.2716524004936218,
0.18519806861877441,
0.0015303525142371655,
-0.23901592195034027,
-0.7112781405448914,
-0.18443036079406738,
-0.24108611047267914,
0.1508251577615738,
-0.12097503989934921,
0.0023743195924907923,
-0.016791392117738724,
0.16087865829467773,
-0.15650370717048645,
0.25523409247398376,
-0.061946358531713486,
-0.1892145872116089,
-0.2331593930721283,
0.4649214446544647,
-0.15697123110294342,
-0.2644332945346832,
0.12178365886211395,
-0.18251073360443115,
0.1514081358909607,
0.4018859565258026,
-0.48299309611320496,
0.18284791707992554,
0.0471070371568203,
0.13239523768424988,
-0.05087604746222496,
0.14494161307811737,
0.08668202906847,
0.010351906530559063,
0.11328127235174179,
-0.013333460316061974,
-0.19510696828365326,
0.2277119904756546,
-0.08928357064723969,
0.02423921599984169,
0.2536139488220215,
0.3969811797142029,
-0.13889442384243011,
0.7059302926063538,
0.0036076572723686695,
0.015542140230536461,
0.2021126002073288,
0.04859863966703415,
0.42447346448898315,
0.012724427506327629,
-0.19678302109241486,
0.09631906449794769,
-0.18310260772705078,
-0.3161439895629883,
0.31903302669525146,
0.08384997397661209,
-0.16259244084358215,
-0.15324509143829346,
0.208359032869339,
-0.18352046608924866,
-0.3161173462867737,
0.2805407643318176,
-0.10119050741195679,
-0.11717961728572845,
-0.0002713114663492888,
0.2491072118282318,
0.10461321473121643,
-0.14902432262897491,
-0.0405975878238678,
0.2144346684217453,
0.28606531023979187,
-0.10619420558214188,
0.0506758838891983,
-0.2143295556306839,
-0.3120667338371277,
0.151555135846138,
-0.05135176703333855,
0.3003500699996948,
0.232719287276268,
-0.13043749332427979,
-0.004103885497897863,
0.16508974134922028,
0.6726489663124084,
-0.20292291045188904,
-0.036173392087221146,
0.10907546430826187,
-0.03604114428162575,
0.05321522802114487,
-0.17022962868213654,
-0.014645645394921303,
0.2302337884902954,
-0.05766044929623604,
0.21793562173843384,
-0.12287991493940353,
0.007664836477488279,
0.3096746802330017,
0.09636998176574707,
-0.22211235761642456,
-0.4531787633895874,
-0.10499613732099533,
-0.05496140941977501,
-0.057949457317590714,
-0.17393790185451508,
0.06606120616197586,
0.02787141501903534,
-0.33554983139038086,
-0.1227799579501152,
-0.2196182757616043,
-0.26455435156822205,
0.3511790931224823,
0.13597936928272247,
0.18447010219097137,
-0.029492849484086037,
0.15642502903938293,
0.14629898965358734,
0.18831545114517212,
0.23189149796962738,
0.7988594174385071,
-0.2999087870121002,
-0.7502194046974182,
0.25943613052368164,
-0.4703613519668579,
0.3502207100391388,
0.16685163974761963,
-0.34512701630592346,
-0.06720169633626938,
-0.3084927499294281,
-0.14681963622570038,
-0.19646839797496796,
-0.15155580639839172,
0.01798277720808983,
-0.06957169622182846,
-0.30257296562194824,
-0.6600199341773987,
0.5407513380050659,
-0.22473850846290588,
-0.16526329517364502,
0.17195439338684082,
0.08438417315483093,
-0.431298166513443,
0.48970291018486023,
0.04091743007302284,
0.8005492687225342,
-0.1704283207654953,
0.07200203835964203,
0.10854587703943253,
-0.20476800203323364,
0.6008745431900024,
-0.2764245867729187,
-0.1295630782842636,
-0.522610604763031,
-0.06560856103897095,
-0.2052309811115265,
-0.051763106137514114,
0.09519515931606293,
0.565596878528595,
-0.17547543346881866,
0.40817853808403015,
0.13449005782604218,
0.4029867947101593,
0.12130755186080933,
0.2673032283782959,
0.23545564711093903,
-0.2553952634334564,
-0.21334338188171387,
0.029682757332921028,
-0.11836325377225876,
-0.08449646085500717,
0.040142714977264404,
0.05122806504368782,
-0.17841187119483948,
-0.1373186856508255,
-0.26955297589302063,
0.12620720267295837,
-0.057727862149477005,
0.015086037106812,
0.04993220418691635,
-0.6408010721206665,
0.5324746370315552,
0.36086422204971313,
0.09215272963047028,
-0.020202120766043663,
-0.15268446505069733,
0.03406459465622902,
0.09205411374568939,
0.21615533530712128,
0.019028423354029655,
-0.09499087184667587,
0.08259528875350952,
0.2941957116127014,
-0.1607959121465683,
0.21539875864982605,
-0.14107215404510498,
-0.0050879730843007565,
0.1963796466588974,
0.33481287956237793,
0.3393915891647339,
-0.5301567316055298,
-0.2820548117160797,
-0.12274166941642761,
0.20972561836242676,
-0.09282111376523972,
0.012344340793788433,
0.12005060166120529,
0.21538308262825012,
0.012409252114593983,
-0.028712963685393333,
-0.3354751467704773,
0.0002588328788988292,
0.03582094982266426,
-0.0057810042053461075,
0.02891421690583229,
0.15699388086795807,
0.28408196568489075,
-0.16879524290561676,
-0.10519631206989288,
0.13724511861801147,
0.15197885036468506,
-0.6934362649917603,
0.18554291129112244,
0.14479726552963257,
0.09855034947395325,
0.07431454956531525,
0.22562548518180847,
0.14088322222232819,
-0.17479431629180908,
0.06359857320785522,
-0.39463287591934204,
0.07475435733795166,
0.07362191379070282,
-0.06001773104071617,
0.09225582331418991,
0.07901852577924728,
-0.4209206700325012,
-0.1307508796453476,
-0.126894012093544,
-0.19065745174884796,
-0.008195742964744568,
0.1432706117630005,
0.08914587646722794,
0.017628826200962067,
0.3097772002220154,
-0.2794094979763031,
-0.22500206530094147,
0.0017572736833244562,
0.008760817348957062,
0.0047906544059515,
-0.08949566632509232,
-0.19149135053157806,
0.21073736250400543,
0.022656459361314774,
0.22843201458454132,
-0.19689741730690002,
-0.21005819737911224,
-0.1015770435333252,
-0.23198825120925903,
0.2390560805797577,
0.34047946333885193,
-0.07758744060993195,
0.3745771050453186,
0.06583452969789505,
-0.010958459228277206,
-0.650685727596283,
0.4418027997016907,
-0.3084157407283783,
0.30933189392089844,
0.07545388489961624,
0.3467369079589844,
-0.00015114061534404755,
0.10989756882190704,
-0.08240478485822678,
0.05659162998199463,
-0.037775181233882904,
0.04747742787003517,
0.31236642599105835,
-0.2570686936378479,
0.22417575120925903,
0.17158964276313782,
0.30683615803718567,
0.36812686920166016,
-0.10318586975336075,
-0.17753659188747406,
0.0890464261174202,
0.10882557183504105,
-0.22637474536895752,
0.2014870047569275,
-0.08879805356264114,
0.21830353140830994,
0.007370706647634506,
0.48742538690567017,
-0.0458950437605381,
-0.15112482011318207,
0.07549196481704712,
0.047183558344841,
0.7774949073791504,
0.058212071657180786,
0.14381159842014313,
0.3218052387237549,
-0.11716014891862869,
0.21354174613952637,
0.20739395916461945,
-0.06321218609809875,
0.039813462644815445,
0.5263144373893738,
-0.12594088912010193,
0.010729722678661346,
0.37731465697288513,
0.26633375883102417,
-0.0828823447227478,
-0.455340713262558,
0.274880051612854,
0.37713623046875,
-0.2825217843055725,
-0.08461125195026398,
0.2595618665218353,
0.5131546854972839,
-0.15917803347110748,
0.13025979697704315,
-0.1870141476392746,
-0.264405757188797,
0.01633523590862751,
-0.05977988243103027,
-0.19307883083820343,
-0.23507820069789886,
-0.35095086693763733,
0.2641785442829132,
-0.3510676920413971,
-0.051630131900310516,
0.3634464144706726,
0.18752186000347137,
0.08282341808080673,
-0.47888055443763733,
0.12637436389923096,
-0.05008731782436371,
0.09214682877063751,
-0.28818491101264954,
0.10989327728748322,
-0.013470133766531944,
0.0782676711678505,
0.3593217432498932,
-0.25229474902153015,
0.2834374010562897,
0.4704681634902954,
0.13903775811195374,
-0.3918014466762543,
-0.1036391407251358,
-0.02715442329645157,
-0.21675202250480652,
0.4326721131801605,
-0.02853209897875786,
0.22855466604232788,
0.20734190940856934,
0.12191370129585266,
0.01600494794547558,
0.3366023600101471,
0.12673254311084747,
0.0241190567612648,
-0.5890339612960815,
0.03721524775028229,
0.003539721015840769,
-0.12340101599693298,
-0.02598748914897442,
-0.055722031742334366,
0.008738950826227665,
-0.23564229905605316,
0.37532496452331543,
0.17570121586322784,
0.17252641916275024,
0.06327526271343231,
0.015185048803687096,
-0.016914937645196915,
0.09556031227111816,
0.27170589566230774,
0.1832723766565323,
-0.44923871755599976,
0.0707443356513977,
-0.7308099865913391,
0.022807681933045387,
-0.08854421228170395,
-0.05671821907162666,
-0.02343829721212387,
0.2650989294052124,
0.3051563501358032,
0.2791956067085266,
-0.19101853668689728,
0.25610285997390747,
0.0036746738478541374,
0.2863951325416565,
-0.05265241861343384,
-0.3129010498523712,
-0.24512004852294922,
-0.04577433317899704,
-0.1484941989183426,
-0.5657705664634705,
0.025071939453482628,
0.41329696774482727,
-0.1882379800081253,
-0.20940718054771423,
-0.015629777684807777,
0.31243273615837097,
-0.10025501251220703,
0.3512983024120331,
0.0730801671743393,
0.3238288164138794,
-0.000777142820879817,
0.1384551078081131,
-0.3173958957195282,
-0.23189690709114075,
-0.2114669531583786,
0.26850494742393494,
-0.0895991325378418,
0.4095952808856964,
-0.28969648480415344,
0.1213756650686264,
-0.23432131111621857,
0.0011413205647841096,
0.08554524928331375,
0.2449108213186264,
-0.5026378035545349,
0.24091410636901855,
-0.22245091199874878,
0.12605565786361694,
-0.15786312520503998,
0.05784847214818001,
-0.12349434196949005,
0.07548806816339493,
-0.037127699702978134,
-0.1940154731273651,
0.2651408016681671,
-0.19937187433242798,
-0.205096036195755,
0.02854161337018013,
0.24369515478610992,
0.1691824048757553,
0.06681293994188309,
-0.6058079600334167,
-0.1650235503911972,
0.37679681181907654,
-0.16610249876976013,
-0.1423829197883606,
-0.007551913149654865,
0.025616934522986412,
-0.04759180173277855,
-0.2250373810529709,
0.2251909375190735,
0.28409621119499207,
-0.24302572011947632,
0.04865753650665283,
-0.44965165853500366
] |
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.044691361486911774,
0.024346955120563507,
-0.004884678870439529,
0.41943666338920593,
0.14631244540214539,
0.14585065841674805,
0.4632934033870697,
0.2901502251625061,
0.3439590036869049,
0.05064496025443077,
-0.13501352071762085,
0.22953130304813385,
-0.11264507472515106,
0.0743183046579361,
-0.360443115234375,
-0.08901455253362656,
-0.0051947347819805145,
0.13512325286865234,
-0.3674567639827728,
-0.03212960436940193,
-0.3761761784553528,
0.3206702768802643,
-0.2852638065814972,
-0.082171231508255,
-0.16973169147968292,
0.18155580759048462,
-0.06944461911916733,
0.2880130708217621,
-0.11865179240703583,
-0.33700138330459595,
0.5611509680747986,
-0.019064784049987793,
0.43480437994003296,
0.17471946775913239,
-0.00011954330693697557,
0.06517571955919266,
0.2265414446592331,
-0.1385784149169922,
-0.25912436842918396,
-0.5547063946723938,
-0.0865492969751358,
-0.4956439733505249,
0.357634574174881,
-0.11130456626415253,
-0.14946366846561432,
0.03041238710284233,
-0.09243811666965485,
-0.4187634587287903,
0.3667917549610138,
0.44562721252441406,
0.15846861898899078,
-0.2529728412628174,
-0.18817497789859772,
0.0030298989731818438,
0.5168046355247498,
0.12371274083852768,
-0.12400020658969879,
0.25955963134765625,
0.07364838570356369,
-0.1548054963350296,
-0.12590892612934113,
0.07289058715105057,
-0.05485522001981735,
0.29174506664276123,
0.18381814658641815,
0.22029517590999603,
-0.20794488489627838,
-0.22910304367542267,
-0.004088523797690868,
0.2079268842935562,
0.7277756333351135,
-0.03474432975053787,
-0.23059336841106415,
-0.1744341254234314,
-0.02310742810368538,
-0.13135728240013123,
0.27283769845962524,
0.31529298424720764,
-0.04108726233243942,
0.30060574412345886,
-0.08267836272716522,
-0.008345408365130424,
-0.28719955682754517,
0.12527132034301758,
-0.023524295538663864,
0.07939028739929199,
-0.1653633415699005,
0.35537946224212646,
0.06189633533358574,
0.045848630368709564,
0.2907169759273529,
-0.11855683475732803,
-0.08493902534246445,
0.14339247345924377,
-0.6625818014144897,
0.19033202528953552,
-0.09499801695346832,
-0.04485100880265236,
-0.02218940481543541,
0.1342252492904663,
0.22667254507541656,
0.017778469249606133,
-0.12089434266090393,
0.24459746479988098,
0.40316566824913025,
-0.008647817187011242,
0.04694325104355812,
0.29234644770622253,
0.2768137753009796,
-0.1933327317237854,
0.04471087083220482,
-0.10590764880180359,
-0.22714939713478088,
-0.41620486974716187,
-0.12003856152296066,
0.15449057519435883,
0.2859624922275543,
-0.20229265093803406,
-0.2549920380115509,
0.07593363523483276,
-0.28417301177978516,
0.01284841913729906,
-0.17959634959697723,
0.2437562793493271,
0.06551516801118851,
0.34083566069602966,
0.04926467686891556,
0.28596818447113037,
-0.11495133489370346,
-0.45059025287628174,
-0.012541212141513824,
0.14165231585502625,
-0.3554003834724426,
-0.012497765012085438,
0.48094016313552856,
-0.13299407064914703,
0.10604887455701828,
0.23142920434474945,
-0.11025585979223251,
-0.3242436349391937,
-0.03251780569553375,
-0.3137763738632202,
0.08654659241437912,
0.24560916423797607,
0.1420629620552063,
0.2350403517484665,
0.3222495913505554,
-0.2917712330818176,
-0.16872365772724152,
0.31284379959106445,
-0.4632062315940857,
-0.24035213887691498,
-0.03989274427294731,
0.09295850992202759,
-0.3021017014980316,
0.19725219905376434,
-0.3214198350906372,
0.18389451503753662,
-0.0014772694557905197,
-0.10854597389698029,
-0.23300065100193024,
-0.33345648646354675,
-0.3624802231788635,
-0.28175458312034607,
-0.05658802390098572,
0.5261703133583069,
-0.8061848282814026,
0.22326046228408813,
-0.018299661576747894,
0.025672925636172295,
0.027771564200520515,
0.24351510405540466,
-0.28592488169670105,
0.07883356511592865,
-0.32195860147476196,
0.05213303118944168,
0.17718954384326935,
-0.22370001673698425,
-0.3795720040798187,
0.2096039056777954,
-0.013221322558820248,
0.08994864672422409,
0.20624804496765137,
0.07607965171337128,
0.4837302267551422,
-0.008639468811452389,
-0.17437715828418732,
0.16786295175552368,
-0.06598728895187378,
0.04466652497649193,
-0.20993110537528992,
-0.243672713637352,
0.2614074945449829,
0.17771925032138824,
0.11830452084541321,
0.11839986592531204,
0.19235944747924805,
-0.519770622253418,
0.35249248147010803,
-0.049706023186445236,
0.23287057876586914,
0.0597577802836895,
0.2039584368467331,
0.04109405353665352,
0.28084880113601685,
0.014937473461031914,
-0.6455549001693726,
0.2398843914270401,
0.4423052668571472,
-0.1205580085515976,
-0.0816647931933403,
-0.16945482790470123,
-0.3994462490081787,
-0.05980168282985687,
-0.2156887650489807,
-0.0491332933306694,
-0.0020585700403898954,
0.048398762941360474,
-0.032679252326488495,
-0.1884750872850418,
-0.10399896651506424,
0.46608966588974,
-0.21997511386871338,
0.09290795028209686,
-0.3543528616428375,
0.3410102128982544,
0.18083563446998596,
0.02329765260219574,
0.23125183582305908,
-0.05639377608895302,
0.26290223002433777,
-0.11842264235019684,
-0.07717648893594742,
0.1964530497789383,
0.39991456270217896,
-0.08581822365522385,
0.0429503433406353,
-0.1645275354385376,
0.07932449132204056,
-0.23050397634506226,
-0.008332785218954086,
0.20459768176078796,
0.371514230966568,
-0.15540555119514465,
-0.523138165473938,
0.44381022453308105,
-0.31335753202438354,
0.2376757115125656,
-0.1666315346956253,
0.14556734263896942,
0.27037861943244934,
-0.026600409299135208,
-0.11320890486240387,
-0.028989259153604507,
-0.10739438980817795,
-0.007946856319904327,
0.2660500109195709,
0.1497364491224289,
-0.21086657047271729,
-0.14199744164943695,
0.2749667763710022,
0.23189643025398254,
-0.22660988569259644,
0.17189444601535797,
-0.06511065363883972,
-0.1108977273106575,
0.296953022480011,
0.32535138726234436,
0.492304265499115,
0.12089263647794724,
-0.2582107186317444,
-0.07129327952861786,
0.11832743883132935,
-0.20210278034210205,
0.08703000098466873,
-0.029579343274235725,
0.1463165432214737,
0.2104918211698532,
0.12462981045246124,
0.04224744439125061,
-0.09609446674585342,
-0.17430922389030457,
0.19436883926391602,
0.19127096235752106,
-0.5371578335762024,
-0.035434313118457794,
-0.24901700019836426,
0.2459052950143814,
-0.2650812566280365,
-0.0541449710726738,
0.07940206676721573,
-0.29634889960289,
-0.2862538695335388,
0.24338720738887787,
-0.12533104419708252,
0.06557990610599518,
-0.10745017230510712,
0.23190824687480927,
-0.006118610501289368,
-0.1723760962486267,
0.12069715559482574,
-0.14661523699760437,
-0.25099852681159973,
0.01338858250528574,
0.03521101921796799,
-0.036419451236724854,
-0.045499369502067566,
0.055003199726343155,
-0.060106512159109116,
-0.29146820306777954,
0.0006237051566131413,
0.1893974393606186,
-0.01123960129916668,
0.06954589486122131,
0.23905028402805328,
-0.06599009037017822,
0.043222226202487946,
-0.1368497610092163,
0.14527185261249542,
0.2191327065229416,
0.05988529324531555,
0.29330921173095703,
0.24135975539684296,
-0.06892237067222595,
-0.1228286400437355,
-0.699618399143219,
-0.2679125666618347,
-0.18160104751586914,
0.07281436771154404,
-0.10406551510095596,
-0.015128987841308117,
-0.00789075531065464,
0.2856502830982208,
-0.11306191235780716,
0.24075283110141754,
-0.1150326281785965,
-0.12437836080789566,
-0.19904105365276337,
0.5246902108192444,
-0.19940535724163055,
-0.3236927092075348,
0.21250692009925842,
-0.11981689184904099,
0.0817696675658226,
0.3567141890525818,
-0.4152070879936218,
0.2089584618806839,
-0.032912515103816986,
0.0867074653506279,
-0.06531088799238205,
-0.014603362418711185,
0.10499680042266846,
-0.02580518089234829,
0.12221673130989075,
-0.06424181163311005,
-0.19471131265163422,
0.269386351108551,
-0.09432785212993622,
0.028198987245559692,
0.19037353992462158,
0.48732927441596985,
-0.14350804686546326,
0.7951074838638306,
0.09284404665231705,
0.047215018421411514,
0.20110268890857697,
-0.03550950437784195,
0.3330545723438263,
0.17514553666114807,
-0.22640271484851837,
-0.006143887527287006,
-0.12447232007980347,
-0.31895196437835693,
0.3500702381134033,
-0.02689642645418644,
-0.11735595017671585,
-0.14242474734783173,
0.1945771425962448,
-0.23543988168239594,
-0.2284533828496933,
0.1594713181257248,
-0.12514729797840118,
-0.024573836475610733,
0.04979138448834419,
0.19377774000167847,
0.10172396898269653,
-0.14574916660785675,
-0.1344633847475052,
0.18961457908153534,
0.19193050265312195,
-0.04472605884075165,
0.10494033247232437,
-0.1503966599702835,
-0.27510756254196167,
0.21312841773033142,
-0.06947854161262512,
0.3745328485965729,
0.16893334686756134,
-0.044494468718767166,
0.011811288073658943,
0.19575712084770203,
0.7295382022857666,
-0.22877396643161774,
0.0030457579996436834,
0.12439191341400146,
-0.08554772287607193,
-0.13378991186618805,
-0.31587961316108704,
-0.08605392277240753,
0.29854848980903625,
0.0012845640303567052,
0.2565813660621643,
-0.07999058067798615,
-0.03191950172185898,
0.3263704478740692,
0.11619798839092255,
-0.23386211693286896,
-0.3317708373069763,
-0.12659123539924622,
0.004445464350283146,
-0.12546907365322113,
-0.19317445158958435,
0.12527313828468323,
0.05211358517408371,
-0.3080662786960602,
-0.014128360897302628,
-0.21454522013664246,
-0.22917142510414124,
0.331329882144928,
0.15501919388771057,
0.2398003488779068,
0.04145953431725502,
0.24012520909309387,
0.15987060964107513,
0.16197620332241058,
0.25859957933425903,
0.8187349438667297,
-0.22551198303699493,
-0.910040020942688,
0.2532351315021515,
-0.48123154044151306,
0.36214375495910645,
0.05182521045207977,
-0.3327268362045288,
-0.06823880225419998,
-0.2888253927230835,
-0.12233664840459824,
-0.09781915694475174,
-0.09210187196731567,
0.10609333217144012,
-0.06524784862995148,
-0.27926206588745117,
-0.5379048585891724,
0.5231567025184631,
-0.18393604457378387,
-0.16884399950504303,
0.16587424278259277,
0.06351376324892044,
-0.4008096754550934,
0.46194785833358765,
-0.07796231657266617,
0.6648094654083252,
-0.14356139302253723,
-0.026327015832066536,
0.13681595027446747,
-0.19350260496139526,
0.5352107286453247,
-0.2681347131729126,
-0.05822763219475746,
-0.4784962236881256,
-0.1556539237499237,
-0.1882338523864746,
0.023332474753260612,
0.1336214393377304,
0.6201773881912231,
-0.2137881964445114,
0.4137539267539978,
-0.03055701032280922,
0.36970221996307373,
0.027727637439966202,
0.2698029577732086,
0.28191086649894714,
-0.1970158964395523,
-0.11462269723415375,
0.07929757982492447,
-0.1219552755355835,
-0.013685902580618858,
0.04050889611244202,
0.025666557252407074,
-0.27845001220703125,
-0.10808276385068893,
-0.3273005485534668,
0.2571621537208557,
-0.03092830628156662,
0.08447249978780746,
0.045677974820137024,
-0.47298094630241394,
0.5333229899406433,
0.480692058801651,
0.09643466025590897,
-0.057972729206085205,
-0.2122703641653061,
0.04197942838072777,
-0.0075089712627232075,
0.07098072022199631,
-0.11567423492670059,
-0.034313153475522995,
0.039200782775878906,
0.24514666199684143,
-0.19310635328292847,
0.29696568846702576,
-0.12794432044029236,
0.029141370207071304,
0.2356511354446411,
0.3048040270805359,
0.24458332359790802,
-0.5582444667816162,
-0.3475916385650635,
-0.17828449606895447,
0.18385085463523865,
-0.09231649339199066,
0.028644198551774025,
-0.011205758899450302,
0.10789977014064789,
0.018413206562399864,
0.06350100785493851,
-0.3889578580856323,
0.07073626667261124,
0.1621204912662506,
-0.04644427448511124,
0.10696837306022644,
0.4289337694644928,
0.36480993032455444,
-0.12556201219558716,
-0.16332970559597015,
0.10970687121152878,
0.08893734216690063,
-0.5510396361351013,
0.14831390976905823,
0.07680591195821762,
0.29055431485176086,
0.0877697691321373,
0.15952374041080475,
0.15592266619205475,
-0.23925843834877014,
0.1204695850610733,
-0.5238209366798401,
0.08976936340332031,
-0.03403836116194725,
-0.11519624292850494,
0.07115216553211212,
-0.040878430008888245,
-0.39047685265541077,
-0.08133268356323242,
-0.019543809816241264,
-0.18339969217777252,
0.05602577328681946,
0.08363787829875946,
0.08044951409101486,
0.18445928394794464,
0.413998544216156,
-0.25094109773635864,
-0.25322285294532776,
-0.0012747166911140084,
-0.010272135958075523,
0.08143792301416397,
-0.09610593318939209,
-0.20507201552391052,
0.18756034970283508,
0.03447140380740166,
0.21735520660877228,
-0.24604427814483643,
-0.20803746581077576,
-0.19474273920059204,
-0.15069709718227386,
0.1540328413248062,
0.3942095637321472,
-0.05142248794436455,
0.45271965861320496,
0.11146914958953857,
-0.025516897439956665,
-0.5381061434745789,
0.32807764410972595,
-0.2612591087818146,
0.25694510340690613,
0.10331299901008606,
0.2795568108558655,
0.12508104741573334,
0.09447841346263885,
-0.08980118483304977,
-0.012204155325889587,
-0.15151755511760712,
-0.11828688532114029,
0.2566821575164795,
-0.2914990782737732,
0.29176265001296997,
0.19988541305065155,
0.3145686686038971,
0.3723844885826111,
-0.11778239160776138,
-0.09883160144090652,
0.10918525606393814,
0.10900132358074188,
-0.34873533248901367,
0.1822366565465927,
0.10901696979999542,
0.24190452694892883,
-0.058485403656959534,
0.41469907760620117,
-0.044369813054800034,
-0.09581942111253738,
0.116878941655159,
0.131759375333786,
0.6230406761169434,
0.10438204556703568,
0.1987520307302475,
0.25642848014831543,
-0.029646558687090874,
0.11163538694381714,
0.22501817345619202,
-0.08354046195745468,
0.08903863281011581,
0.4729127883911133,
-0.21651007235050201,
0.001917768851853907,
0.27442628145217896,
0.18169571459293365,
-0.04121667519211769,
-0.6070027351379395,
0.2713729441165924,
0.30795997381210327,
-0.31803858280181885,
-0.11848326772451401,
0.188269704580307,
0.5466785430908203,
-0.07835571467876434,
0.09870361536741257,
-0.3214309513568878,
-0.10591646283864975,
0.0685792788863182,
-0.0557229183614254,
-0.1259046345949173,
-0.2485823631286621,
-0.39151331782341003,
0.300937294960022,
-0.20118534564971924,
-0.1257798969745636,
0.4019697308540344,
0.1675674319267273,
-0.03328777849674225,
-0.48652422428131104,
0.17729777097702026,
0.13078181445598602,
0.08381780982017517,
-0.30092763900756836,
0.05581556260585785,
-0.041429273784160614,
0.02417444810271263,
0.39115673303604126,
-0.15154415369033813,
0.2833007872104645,
0.4373913109302521,
0.06342201679944992,
-0.35708627104759216,
-0.10432780534029007,
-0.08039555698633194,
-0.11075778305530548,
0.4107106924057007,
-0.07911446690559387,
0.26891469955444336,
0.31731054186820984,
0.09755958616733551,
0.004551740828901529,
0.2404070645570755,
0.19029968976974487,
0.05893540754914284,
-0.5318912267684937,
-0.06526416540145874,
0.04049164429306984,
-0.05818082392215729,
-0.018587684258818626,
-0.1208127960562706,
-0.09965119510889053,
-0.29635173082351685,
0.3969893157482147,
0.17386944591999054,
0.258998841047287,
0.1141662523150444,
0.002013841876760125,
-0.10820025950670242,
0.177660271525383,
0.27511361241340637,
0.10558446496725082,
-0.4967324733734131,
-0.011358286254107952,
-0.7635505795478821,
-0.06276605278253555,
-0.26677605509757996,
-0.20446839928627014,
-0.026949787512421608,
0.26738739013671875,
0.29482731223106384,
0.28807809948921204,
-0.11170679330825806,
0.24038895964622498,
0.01369822584092617,
0.3622201383113861,
-0.19964638352394104,
-0.2887042760848999,
-0.22703130543231964,
0.03186267986893654,
-0.0690125823020935,
-0.4857378602027893,
0.05646303668618202,
0.34845200181007385,
-0.14891736209392548,
-0.17667220532894135,
-0.049110472202301025,
0.19130994379520416,
-0.2589654326438904,
0.3701533377170563,
0.0659780502319336,
0.47962236404418945,
0.02227015234529972,
0.2993641495704651,
-0.3624298572540283,
-0.17135633528232574,
-0.2586037814617157,
0.26030194759368896,
-0.09732896089553833,
0.4215646982192993,
-0.3740360140800476,
0.07633430510759354,
-0.18944808840751648,
0.005944668315351009,
0.06982272118330002,
0.27657100558280945,
-0.38617271184921265,
0.296208918094635,
-0.1280643790960312,
0.2370443493127823,
-0.10185796767473221,
-0.036571722477674484,
-0.163151353597641,
0.1626235842704773,
-0.10108287632465363,
-0.18783794343471527,
0.2851313352584839,
-0.22375349700450897,
-0.23585818707942963,
-0.022802110761404037,
0.21565809845924377,
0.1750963032245636,
0.05224129185080528,
-0.5023122429847717,
-0.07223314046859741,
0.43461939692497253,
-0.1690046191215515,
-0.07930633425712585,
0.04702020436525345,
0.10123276710510254,
0.01526839192956686,
-0.1957581490278244,
0.23286172747612,
0.30376213788986206,
-0.2695992588996887,
-0.10594765841960907,
-0.392330527305603
] |
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.07806047797203064,
0.05840316414833069,
0.02330002188682556,
0.4148482382297516,
0.13612854480743408,
0.12167998403310776,
0.5085968971252441,
0.2503667175769806,
0.36034220457077026,
-0.03491527587175369,
-0.13859707117080688,
0.32225456833839417,
-0.07130804657936096,
0.12546640634536743,
-0.35288482904434204,
-0.062213364988565445,
0.03829909488558769,
0.13238830864429474,
-0.33767667412757874,
-0.041437383741140366,
-0.38069191575050354,
0.3519902527332306,
-0.2903810143470764,
-0.10166250169277191,
-0.16297048330307007,
0.09104146808385849,
-0.08467136323451996,
0.38725411891937256,
-0.08020569384098053,
-0.31590479612350464,
0.5106092691421509,
-0.06878513097763062,
0.37224632501602173,
0.2686668634414673,
-0.00012079046427970752,
0.04239160940051079,
0.259944349527359,
-0.13258306682109833,
-0.299500435590744,
-0.5992063879966736,
-0.0885680541396141,
-0.3759455978870392,
0.4667295813560486,
-0.11011791229248047,
-0.07928462326526642,
0.06841281056404114,
-0.15599365532398224,
-0.45844921469688416,
0.4170621633529663,
0.46063077449798584,
0.15602408349514008,
-0.22493988275527954,
-0.16432908177375793,
0.009641219861805439,
0.4941341280937195,
0.15963971614837646,
-0.14233671128749847,
0.26970264315605164,
0.0866432785987854,
-0.18217037618160248,
-0.2313869446516037,
0.020285122096538544,
-0.1544831097126007,
0.31922560930252075,
0.22532109916210175,
0.2923903465270996,
-0.3081012964248657,
-0.2810399532318115,
0.026140425354242325,
0.2212563306093216,
0.7244586944580078,
-0.09426429122686386,
-0.20480681955814362,
-0.21729937195777893,
-0.04807816073298454,
-0.09171754121780396,
0.31312769651412964,
0.321778804063797,
-0.0733010396361351,
0.2957075834274292,
-0.041461117565631866,
0.0229656845331192,
-0.22137382626533508,
0.12056680023670197,
-0.11481021344661713,
-0.0006336902733892202,
-0.17681331932544708,
0.2903595566749573,
0.12180650979280472,
0.09481921792030334,
0.23433056473731995,
-0.16214339435100555,
-0.0009303922415710986,
0.12886424362659454,
-0.5839776992797852,
0.2475133240222931,
-0.09866412729024887,
-0.06681709736585617,
-0.1103043407201767,
0.25399309396743774,
0.15015962719917297,
0.009018326178193092,
-0.17368566989898682,
0.29634228348731995,
0.4208086133003235,
-0.007167257368564606,
0.05590943247079849,
0.32104232907295227,
0.3060675263404846,
-0.16650593280792236,
-0.005196993239223957,
-0.11151773482561111,
-0.18172866106033325,
-0.3427422344684601,
-0.18602442741394043,
0.1037282645702362,
0.20948725938796997,
-0.20044377446174622,
-0.2784615457057953,
0.014166531153023243,
-0.18271826207637787,
0.04194415733218193,
-0.11357717961072922,
0.29823869466781616,
0.014619310386478901,
0.39284875988960266,
0.014572991989552975,
0.26108694076538086,
-0.1982981115579605,
-0.27628976106643677,
-0.006985550280660391,
0.128640815615654,
-0.3538253605365753,
-0.03969216346740723,
0.4889249801635742,
-0.16608484089374542,
0.13367688655853271,
0.206769198179245,
-0.05370015650987625,
-0.29365748167037964,
-0.10075736790895462,
-0.35080528259277344,
0.1512218713760376,
0.2754831910133362,
0.18133506178855896,
0.2705020606517792,
0.3625774681568146,
-0.28183043003082275,
-0.13209602236747742,
0.28090015053749084,
-0.45528551936149597,
-0.167924702167511,
-0.09741964936256409,
0.09098273515701294,
-0.29025304317474365,
0.11673830449581146,
-0.3180287778377533,
0.16678486764431,
0.018654562532901764,
-0.1930304765701294,
-0.1741769164800644,
-0.28623825311660767,
-0.31742042303085327,
-0.346051961183548,
-0.03223983570933342,
0.5567396879196167,
-0.8378720283508301,
0.13864268362522125,
-0.06700731068849564,
-0.006961998529732227,
0.12023087590932846,
0.2839856743812561,
-0.2087620347738266,
0.015227430500090122,
-0.29893985390663147,
0.13127636909484863,
0.17326299846172333,
-0.2612003684043884,
-0.3863236606121063,
0.2486075609922409,
-0.0008815084001980722,
0.09016953408718109,
0.16907158493995667,
0.07554180175065994,
0.49636104702949524,
-0.01609599031507969,
-0.08895409107208252,
0.3020796775817871,
-0.04911358654499054,
0.08098600059747696,
-0.1848464161157608,
-0.2849666476249695,
0.3172255754470825,
0.19950997829437256,
0.09771333634853363,
0.08486054837703705,
0.2303350418806076,
-0.4987601935863495,
0.30676671862602234,
-0.06299907714128494,
0.2209567129611969,
0.0525362454354763,
0.18891067802906036,
0.09941285848617554,
0.28021240234375,
-0.031657785177230835,
-0.575688362121582,
0.18894325196743011,
0.4474719762802124,
-0.11217951774597168,
-0.1767740100622177,
-0.10579174011945724,
-0.42516133189201355,
-0.07120232284069061,
-0.27186301350593567,
-0.030778374522924423,
-0.02080993726849556,
0.04311778023838997,
-0.07570919394493103,
-0.09271249175071716,
-0.14734040200710297,
0.45854946970939636,
-0.23812857270240784,
0.2181704193353653,
-0.3602612614631653,
0.3144996464252472,
0.19412392377853394,
-0.05314821004867554,
0.13143984973430634,
0.040829647332429886,
0.17058388888835907,
-0.06984737515449524,
-0.10439545661211014,
0.2648105323314667,
0.46995851397514343,
-0.05065537244081497,
-0.02183719351887703,
-0.23116594552993774,
0.14966461062431335,
-0.16106179356575012,
0.017479142174124718,
0.18801644444465637,
0.32945531606674194,
-0.14439967274665833,
-0.4745771288871765,
0.3915095031261444,
-0.3383185565471649,
0.3178928792476654,
-0.1259978711605072,
0.15175573527812958,
0.22544501721858978,
0.0197413582354784,
-0.09367192536592484,
-0.11947589367628098,
-0.14826591312885284,
-0.032560303807258606,
0.3659871518611908,
0.11296616494655609,
-0.1503005474805832,
-0.11293955892324448,
0.28785350918769836,
0.16905485093593597,
-0.1196039468050003,
0.18707598745822906,
-0.12310562282800674,
-0.1474551558494568,
0.28039199113845825,
0.3671056628227234,
0.49556124210357666,
0.0771477147936821,
-0.23485296964645386,
-0.05805834382772446,
0.0573456734418869,
-0.2526851296424866,
0.1350138932466507,
0.044018059968948364,
0.08652182668447495,
0.19991372525691986,
0.09430088847875595,
-0.0033023434225469828,
-0.15713398158550262,
-0.10806736350059509,
0.11807338893413544,
0.15049250423908234,
-0.5525855422019958,
0.07308077812194824,
-0.28528401255607605,
0.1734776496887207,
-0.239305779337883,
-0.11328374594449997,
0.05258925259113312,
-0.3208288848400116,
-0.2696237564086914,
0.2311980128288269,
-0.11162982136011124,
0.02104172296822071,
-0.11597020924091339,
0.19407029449939728,
-0.025967029854655266,
-0.2768666446208954,
0.1353653520345688,
-0.1660187840461731,
-0.279630184173584,
0.02613058313727379,
0.08999063819646835,
0.040532615035772324,
-0.031490158289670944,
0.010532679967582226,
-0.005416199564933777,
-0.16790258884429932,
-0.029412707313895226,
0.190653994679451,
-0.0258918609470129,
0.048165611922740936,
0.2501961886882782,
-0.11075259000062943,
0.028653819113969803,
-0.1713656485080719,
0.12703397870063782,
0.10980062931776047,
0.08114158362150192,
0.2782087028026581,
0.2357177585363388,
-0.006710177753120661,
-0.13125646114349365,
-0.7236310243606567,
-0.3136632442474365,
-0.24590907990932465,
0.07549142837524414,
-0.06284251064062119,
-0.07963438332080841,
0.032672759145498276,
0.3050903081893921,
-0.084650419652462,
0.2568504214286804,
-0.024679357185959816,
-0.140916109085083,
-0.11209607869386673,
0.5172939896583557,
-0.20122601091861725,
-0.28817087411880493,
0.23453548550605774,
-0.12068204581737518,
0.046555325388908386,
0.3901838958263397,
-0.409353643655777,
0.16912947595119476,
-0.04970525950193405,
0.07151282578706741,
0.06377116590738297,
0.08031949400901794,
0.1051059141755104,
-0.009001446887850761,
0.11070429533720016,
-0.05898427963256836,
-0.18681590259075165,
0.21015436947345734,
-0.07238876074552536,
0.016437962651252747,
0.194522425532341,
0.46667349338531494,
-0.18058963119983673,
0.7081641554832458,
0.052876897156238556,
0.05868427827954292,
0.1935269832611084,
-0.09139098227024078,
0.36753809452056885,
0.03275057300925255,
-0.20142406225204468,
-0.008576999418437481,
-0.1361856609582901,
-0.3072948455810547,
0.4365992546081543,
0.04401099309325218,
-0.1472163200378418,
-0.16719529032707214,
0.21170590817928314,
-0.2908906638622284,
-0.26115360856056213,
0.18168582022190094,
-0.1667780578136444,
-0.08160153031349182,
0.015372561290860176,
0.2761576175689697,
0.09794973582029343,
-0.18389765918254852,
-0.16672690212726593,
0.15016640722751617,
0.17271538078784943,
-0.09773197025060654,
0.15667949616909027,
-0.10634063184261322,
-0.36283719539642334,
0.200389102101326,
-0.023382684215903282,
0.3507732152938843,
0.13906888663768768,
-0.178581103682518,
0.06897015124559402,
0.2334897667169571,
0.6763695478439331,
-0.21184276044368744,
-0.10887693613767624,
0.13620436191558838,
-0.16703632473945618,
-0.20202478766441345,
-0.22693370282649994,
-0.08950328826904297,
0.321803480386734,
-0.0135837122797966,
0.16874733567237854,
-0.0981903150677681,
-0.04408520460128784,
0.28923696279525757,
0.16727645695209503,
-0.1867424100637436,
-0.2867826819419861,
-0.11763381958007812,
-0.04632126912474632,
-0.1826343536376953,
-0.24111859500408173,
0.10629554092884064,
0.0728994682431221,
-0.29289841651916504,
-0.0041775815188884735,
-0.1973254382610321,
-0.24763888120651245,
0.34369248151779175,
0.1330287903547287,
0.25784122943878174,
-0.03135175630450249,
0.13943004608154297,
0.2009289264678955,
0.1762399524450302,
0.2331237941980362,
0.7674669027328491,
-0.32003235816955566,
-0.8968952894210815,
0.21908986568450928,
-0.4767705202102661,
0.2948758900165558,
0.06998291611671448,
-0.31031426787376404,
-0.02048429101705551,
-0.24470776319503784,
-0.11144580692052841,
-0.12086106836795807,
-0.1385059803724289,
0.11313330382108688,
-0.0770476758480072,
-0.21780827641487122,
-0.6420860886573792,
0.45190075039863586,
-0.0804932564496994,
-0.1387156844139099,
0.19718950986862183,
-0.00598037289455533,
-0.39410850405693054,
0.5317514538764954,
-0.1025061383843422,
0.6488494277000427,
-0.14430803060531616,
0.06635525077581406,
0.1926671713590622,
-0.10608641803264618,
0.5815529823303223,
-0.2526157796382904,
-0.03144877776503563,
-0.4836898446083069,
-0.09939274936914444,
-0.21134352684020996,
0.016152558848261833,
0.07454580068588257,
0.5343915224075317,
-0.1654260754585266,
0.44032368063926697,
-0.13460704684257507,
0.42698246240615845,
0.07495573908090591,
0.18481044471263885,
0.21630384027957916,
-0.2788417935371399,
-0.19009113311767578,
0.06593496352434158,
-0.06448403745889664,
-0.023528924211859703,
0.09545043855905533,
0.07067763060331345,
-0.23941336572170258,
-0.038349948823451996,
-0.307446151971817,
0.24042312800884247,
0.013458076864480972,
0.1497156322002411,
0.05673835426568985,
-0.5112694501876831,
0.5276219844818115,
0.465933620929718,
0.1288297325372696,
-0.077181376516819,
-0.17155614495277405,
0.06474104523658752,
-0.07690142095088959,
0.10655023902654648,
-0.04764603078365326,
-0.06523304432630539,
0.11839788407087326,
0.30975666642189026,
-0.18498577177524567,
0.19650909304618835,
-0.13292653858661652,
-0.06003706157207489,
0.287907212972641,
0.3575041890144348,
0.292589396238327,
-0.5540480613708496,
-0.3186807334423065,
-0.20824533700942993,
0.1750919669866562,
-0.0921977162361145,
0.028725747019052505,
-0.06401265412569046,
0.17392559349536896,
0.12481643259525299,
-0.021496089175343513,
-0.37389084696769714,
0.04514510557055473,
0.1663765013217926,
-0.029066450893878937,
0.05724282190203667,
0.41860371828079224,
0.39116811752319336,
-0.16916005313396454,
-0.1707746833562851,
0.04066712036728859,
0.057452600449323654,
-0.5586925148963928,
0.2726941406726837,
0.0945262759923935,
0.1553143858909607,
0.0937948152422905,
0.12951380014419556,
0.07507114857435226,
-0.1472862958908081,
-0.027417732402682304,
-0.5871502161026001,
0.039171233773231506,
0.05186598747968674,
-0.10455162078142166,
0.046799033880233765,
0.09843887388706207,
-0.41584357619285583,
-0.05312275514006615,
-0.14607886970043182,
-0.16623781621456146,
0.12270693480968475,
0.09529569745063782,
0.028258545324206352,
0.2055828720331192,
0.30315667390823364,
-0.12560933828353882,
-0.2308121919631958,
-0.01583724282681942,
0.036563336849212646,
0.1334189474582672,
-0.09224236011505127,
-0.17674081027507782,
0.20064020156860352,
-0.037426769733428955,
0.13554756343364716,
-0.23352700471878052,
-0.21750010550022125,
-0.22057771682739258,
-0.24377796053886414,
0.25943297147750854,
0.3854047358036041,
-0.062437236309051514,
0.34236136078834534,
-0.007409918121993542,
-0.021821189671754837,
-0.5484728813171387,
0.372124582529068,
-0.333745539188385,
0.2648545205593109,
0.11671574413776398,
0.24496285617351532,
0.07131429016590118,
0.10019436478614807,
-0.07352929562330246,
0.04036717489361763,
-0.09355859458446503,
-0.10601429641246796,
0.30318590998649597,
-0.3308252990245819,
0.25215721130371094,
0.1782936453819275,
0.3616378903388977,
0.4359159767627716,
-0.041227880865335464,
-0.12747560441493988,
0.1186119094491005,
0.10579432547092438,
-0.2864650785923004,
0.1520412564277649,
0.11588328331708908,
0.1954272836446762,
0.009332561865448952,
0.43704715371131897,
-0.004452137276530266,
-0.13981273770332336,
0.02962837927043438,
0.0849423035979271,
0.6649830937385559,
0.10726836323738098,
0.25286319851875305,
0.38187968730926514,
-0.043552372604608536,
0.17846906185150146,
0.16057947278022766,
-0.10217433422803879,
0.12071028351783752,
0.5896925330162048,
-0.1346413791179657,
0.030912498012185097,
0.2568347454071045,
0.19648799300193787,
-0.07862110435962677,
-0.6072866916656494,
0.3335482180118561,
0.2953580319881439,
-0.2968004047870636,
-0.09501998126506805,
0.17487481236457825,
0.628970742225647,
-0.1853758841753006,
0.13863390684127808,
-0.3035651743412018,
-0.07269836217164993,
0.06576520949602127,
-0.09956718236207962,
-0.14491142332553864,
-0.2396789789199829,
-0.32532182335853577,
0.25764501094818115,
-0.22217369079589844,
-0.1446971446275711,
0.3557283580303192,
0.14538758993148804,
0.021225033327937126,
-0.5101609230041504,
0.1769391894340515,
0.06113148480653763,
0.06762344390153885,
-0.2418278157711029,
0.04526408389210701,
-0.059995539486408234,
0.10750075429677963,
0.4110963046550751,
-0.18622852861881256,
0.35821643471717834,
0.4266977310180664,
-0.01024035643786192,
-0.4081248641014099,
-0.07334771752357483,
-0.06974905729293823,
-0.09912998229265213,
0.41419148445129395,
-0.0458860881626606,
0.3552892804145813,
0.300696462392807,
0.10727892071008682,
-0.022889813408255577,
0.14937448501586914,
0.1904638409614563,
0.059569090604782104,
-0.46074068546295166,
0.02603009156882763,
0.0315626822412014,
-0.05546281114220619,
-0.08093535155057907,
-0.1332416832447052,
-0.12065880000591278,
-0.25447526574134827,
0.41935184597969055,
0.09711907058954239,
0.23523098230361938,
0.15722815692424774,
0.0010581775568425655,
-0.04901697486639023,
0.19459639489650726,
0.31540411710739136,
0.11793579906225204,
-0.388840913772583,
0.014833373948931694,
-0.7008817791938782,
-0.057734787464141846,
-0.16030752658843994,
-0.22273240983486176,
-0.06579085439443588,
0.2667683959007263,
0.3000713884830475,
0.27223509550094604,
-0.10756415873765945,
0.28551873564720154,
0.04073570668697357,
0.24881142377853394,
-0.10101231932640076,
-0.28746265172958374,
-0.24201267957687378,
-0.02277987450361252,
-0.12143632024526596,
-0.5083065032958984,
-0.010402379557490349,
0.33729323744773865,
-0.1567406803369522,
-0.15240487456321716,
-0.03987663611769676,
0.17268480360507965,
-0.3162718117237091,
0.28244587779045105,
0.0485672689974308,
0.46256133913993835,
0.03507127985358238,
0.22867892682552338,
-0.3366467356681824,
-0.2433711588382721,
-0.22991642355918884,
0.30206921696662903,
-0.07971865683794022,
0.460502564907074,
-0.3677755892276764,
0.07349858433008194,
-0.21315914392471313,
0.06996429711580276,
0.14907342195510864,
0.2884460985660553,
-0.41385531425476074,
0.27483195066452026,
-0.1599978655576706,
0.20014901459217072,
-0.022491419687867165,
0.08124972134828568,
-0.2107774019241333,
0.15453696250915527,
-0.008339774794876575,
-0.2705020606517792,
0.17350105941295624,
-0.2811926603317261,
-0.2791193425655365,
-0.039765533059835434,
0.17208358645439148,
0.1727103888988495,
0.09391514956951141,
-0.44748014211654663,
-0.04408365115523338,
0.34224867820739746,
-0.17150859534740448,
-0.14932695031166077,
0.03453221544623375,
0.014645895920693874,
0.044137876480817795,
-0.20101232826709747,
0.19684547185897827,
0.315910667181015,
-0.2689932584762573,
-0.06722339987754822,
-0.3839845061302185
] |
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.0013099625939503312,
0.05171265825629234,
-0.019382331520318985,
0.4013645350933075,
0.2351076751947403,
0.22222940623760223,
0.5522071123123169,
0.32110974192619324,
0.23970019817352295,
-0.03639328479766846,
-0.14609752595424652,
0.22432345151901245,
-0.02505604363977909,
0.10222937166690826,
-0.32072311639785767,
-0.18254655599594116,
0.045307714492082596,
0.06728857755661011,
-0.23408764600753784,
0.06178707256913185,
-0.3590756356716156,
0.34226474165916443,
-0.2727225720882416,
-0.014488274231553078,
-0.2078835368156433,
0.012481996789574623,
-0.1053493395447731,
0.29696840047836304,
-0.14837592840194702,
-0.2648259103298187,
0.47900620102882385,
-0.17164553701877594,
0.5383772850036621,
0.3396247625350952,
-0.00011821794760180637,
0.04706975445151329,
0.29714062809944153,
-0.12464840710163116,
-0.20830799639225006,
-0.5637417435646057,
-0.05611936375498772,
-0.3337760865688324,
0.30931586027145386,
-0.13840381801128387,
-0.030609242618083954,
0.002626356203109026,
-0.16471001505851746,
-0.3716714382171631,
0.5169055461883545,
0.5258501768112183,
0.17005544900894165,
-0.25751060247421265,
-0.10545838624238968,
0.01039751898497343,
0.5956737399101257,
0.07962838560342789,
-0.1261376142501831,
0.22395431995391846,
0.011149330995976925,
-0.12829044461250305,
-0.12612400949001312,
0.046588581055402756,
-0.04093734174966812,
0.35014352202415466,
0.13060446083545685,
0.280863881111145,
-0.21739999949932098,
-0.2594374716281891,
0.035764534026384354,
0.16460680961608887,
0.6517998576164246,
-0.09075488895177841,
-0.2557334899902344,
-0.08936411887407303,
-0.04586712643504143,
-0.1906016319990158,
0.23563341796398163,
0.40252357721328735,
-0.014394233003258705,
0.26290395855903625,
-0.030220378190279007,
0.06212526559829712,
-0.23079511523246765,
0.14390762150287628,
-0.02915215864777565,
0.09889691323041916,
-0.2419940084218979,
0.31047847867012024,
0.07489296793937683,
0.03763238713145256,
0.2845779061317444,
-0.08039295673370361,
-0.08537836372852325,
0.10971289873123169,
-0.7357711791992188,
0.19722434878349304,
-0.26063016057014465,
-0.13936783373355865,
-0.18183311820030212,
0.23014169931411743,
0.1986735314130783,
-0.04805489256978035,
-0.07111198455095291,
0.326712042093277,
0.3619973659515381,
0.11962538957595825,
-0.049324870109558105,
0.30389419198036194,
0.21541735529899597,
-0.11920108646154404,
-0.08237380534410477,
-0.18989655375480652,
-0.296474426984787,
-0.5364335179328918,
-0.06903988122940063,
0.16940391063690186,
0.27787885069847107,
-0.20566712319850922,
-0.3103756308555603,
0.04156264290213585,
-0.36610090732574463,
-0.05935463309288025,
-0.06500353664159775,
0.33137449622154236,
0.04849369451403618,
0.18003833293914795,
-0.019931286573410034,
0.33292415738105774,
-0.10167901962995529,
-0.2537935972213745,
-0.009934768080711365,
0.21294188499450684,
-0.33221831917762756,
-0.04757624864578247,
0.43946900963783264,
-0.13993756473064423,
0.16989092528820038,
0.14387103915214539,
-0.10166080296039581,
-0.3589421212673187,
-0.04391137510538101,
-0.3201141357421875,
0.05980899557471275,
0.2911032438278198,
0.09772069752216339,
0.22637911140918732,
0.2708280682563782,
-0.2004959136247635,
-0.1134679839015007,
0.3200461268424988,
-0.4528760313987732,
-0.19494199752807617,
-0.12361448258161545,
0.06388702988624573,
-0.29589158296585083,
0.051611971110105515,
-0.39751437306404114,
0.00709123071283102,
0.13720716536045074,
-0.16904626786708832,
-0.11074307560920715,
-0.259805291891098,
-0.2234499752521515,
-0.2329428642988205,
-0.02977372705936432,
0.35915103554725647,
-0.7292494773864746,
0.20991572737693787,
-0.13054004311561584,
0.13978803157806396,
0.20426368713378906,
0.27834808826446533,
-0.21367372572422028,
0.083818219602108,
-0.19575868546962738,
0.13984431326389313,
0.19227942824363708,
-0.19488105177879333,
-0.25849291682243347,
0.33685868978500366,
-0.05480213463306427,
0.011879723519086838,
0.1480436474084854,
0.007960524410009384,
0.2661392390727997,
0.01180904172360897,
-0.2148742526769638,
0.27793973684310913,
-0.11071266233921051,
0.053205639123916626,
-0.21784144639968872,
-0.2958858609199524,
0.3931150436401367,
0.22330699861049652,
0.08091139048337936,
0.06378397345542908,
0.21934951841831207,
-0.48878544569015503,
0.2911221385002136,
-0.0074689313769340515,
0.21309946477413177,
0.12665072083473206,
0.23995743691921234,
-0.011825334280729294,
0.3064185082912445,
-0.04680583253502846,
-0.5506249666213989,
0.12114496529102325,
0.2973078489303589,
-0.0805334523320198,
-0.24911923706531525,
-0.029333658516407013,
-0.499049574136734,
-0.1263437420129776,
-0.19318246841430664,
-0.14718832075595856,
-0.011376576498150826,
0.002839805092662573,
-0.06954371184110641,
-0.18110550940036774,
-0.12317205965518951,
0.4104185402393341,
-0.19682058691978455,
0.15748047828674316,
-0.42050686478614807,
0.3484315574169159,
0.06851987540721893,
-0.04666177183389664,
0.23225879669189453,
-0.04705241322517395,
0.31723079085350037,
-0.1737198680639267,
-0.17260956764221191,
0.2992417514324188,
0.34520408511161804,
0.051455430686473846,
0.09207223355770111,
-0.2689470648765564,
0.08438967168331146,
-0.13458672165870667,
-0.07657933235168457,
0.19757291674613953,
0.370710551738739,
-0.09020641446113586,
-0.49671855568885803,
0.3981713354587555,
-0.37305137515068054,
0.340786874294281,
-0.15483435988426208,
0.1214028149843216,
0.254531592130661,
-0.03428012505173683,
-0.057321757078170776,
0.01543079037219286,
-0.06749757379293442,
-0.041452862322330475,
0.18136249482631683,
0.12049165368080139,
-0.14124689996242523,
-0.09476087242364883,
0.2932525873184204,
0.12428857386112213,
-0.21714405715465546,
0.14963547885417938,
-0.021259557455778122,
-0.09072170406579971,
0.3234216570854187,
0.47881630063056946,
0.49891647696495056,
0.09349722415208817,
-0.22579941153526306,
-0.05020805820822716,
0.09059474617242813,
-0.21292850375175476,
0.14957685768604279,
0.1314752995967865,
0.15684574842453003,
0.1497192531824112,
0.10467247664928436,
0.03098362311720848,
-0.056409385055303574,
-0.1531224101781845,
0.2575719356536865,
0.28651612997055054,
-0.5545147061347961,
0.08325668424367905,
-0.27428966760635376,
0.2512343227863312,
-0.29483258724212646,
-0.12454119324684143,
0.11243700981140137,
-0.3302796483039856,
-0.29789793491363525,
0.24249793589115143,
-0.11888837069272995,
0.07664673775434494,
-0.18877257406711578,
0.18582497537136078,
0.09451290220022202,
-0.18743661046028137,
0.04601074755191803,
-0.22972890734672546,
-0.18531514704227448,
0.0440203882753849,
0.16080841422080994,
0.11476332694292068,
-0.159375861287117,
0.09248378872871399,
0.11202079057693481,
-0.11316259950399399,
-0.0734897255897522,
0.12055778503417969,
-0.06929392367601395,
0.10661628097295761,
0.06110085919499397,
-0.09710108488798141,
-0.11532440036535263,
-0.30063578486442566,
0.09560365974903107,
0.06194989010691643,
0.052406661212444305,
0.33588650822639465,
0.30104461312294006,
-0.13436771929264069,
-0.06371670961380005,
-0.771294355392456,
-0.29286351799964905,
-0.22548212110996246,
0.13641490042209625,
-0.06039828434586525,
-0.08004508167505264,
-0.009467092342674732,
0.27299657464027405,
-0.04667581245303154,
0.3181811273097992,
-0.08198679983615875,
-0.1524343490600586,
-0.3559529483318329,
0.6282111406326294,
-0.3358757793903351,
-0.25069233775138855,
0.21234957873821259,
-0.08918973058462143,
0.013499826192855835,
0.33052608370780945,
-0.37970513105392456,
0.24959132075309753,
-0.07879804819822311,
-0.05022508278489113,
-0.0006276658968999982,
0.023859266191720963,
0.03809653967618942,
-0.007167442701756954,
0.08192092180252075,
-0.010326370596885681,
-0.1273985356092453,
0.21485550701618195,
0.048319436609745026,
0.12612397968769073,
0.10469769686460495,
0.44447004795074463,
-0.14542339742183685,
0.8326640725135803,
0.009213428013026714,
0.02083788439631462,
0.21854481101036072,
-0.11460156738758087,
0.27671486139297485,
0.13388817012310028,
-0.25115966796875,
0.012634885497391224,
-0.1921902894973755,
-0.24791717529296875,
0.3181249499320984,
-0.06223417818546295,
-0.1635572463274002,
-0.06711317598819733,
0.2253294289112091,
-0.349893182516098,
-0.26161620020866394,
0.21975693106651306,
-0.09928687661886215,
-0.05689682811498642,
0.0018097447464242578,
0.1972862333059311,
0.11129101365804672,
-0.24537824094295502,
-0.12104807794094086,
0.09736064076423645,
0.16196846961975098,
-0.08682455867528915,
0.098690927028656,
-0.16754035651683807,
-0.23557598888874054,
0.23416903614997864,
-0.02575065754354,
0.4650131165981293,
0.1191042885184288,
-0.09243122488260269,
0.04277033358812332,
0.19011467695236206,
0.7903686165809631,
-0.27729374170303345,
-0.06697119772434235,
0.0895092785358429,
-0.08430813252925873,
-0.13866275548934937,
-0.248766228556633,
-0.1439349204301834,
0.3455868661403656,
-0.06328529864549637,
0.2461966872215271,
-0.01619650050997734,
0.009898844175040722,
0.4104844927787781,
0.07643505930900574,
-0.18930970132350922,
-0.3667447566986084,
-0.12031673640012741,
-0.00035273446701467037,
-0.17939451336860657,
-0.1840381771326065,
0.23914025723934174,
0.1934206485748291,
-0.3377685546875,
0.05852648243308067,
-0.2245916873216629,
-0.19831997156143188,
0.40038803219795227,
0.10006463527679443,
0.22248728573322296,
0.05373634770512581,
0.15032364428043365,
0.16583041846752167,
0.0966285914182663,
0.20355068147182465,
0.7843945026397705,
-0.2009367197751999,
-0.8349440693855286,
0.23184773325920105,
-0.5099241733551025,
0.3329103887081146,
0.06964123249053955,
-0.3419284522533417,
-0.07500442862510681,
-0.1523556262254715,
-0.05932548642158508,
-0.06418445706367493,
-0.06523708254098892,
0.11926796287298203,
-0.031526073813438416,
-0.17016372084617615,
-0.49615973234176636,
0.501441240310669,
-0.17254766821861267,
-0.09937943518161774,
0.1650892049074173,
0.006084315944463015,
-0.3151538670063019,
0.5069113373756409,
-0.12649279832839966,
0.7633357048034668,
-0.08098457008600235,
-0.03845485672354698,
0.12387289106845856,
-0.25183793902397156,
0.48880478739738464,
-0.3862517178058624,
0.0171929020434618,
-0.44490107893943787,
-0.18770574033260345,
-0.1797463744878769,
-0.009415634907782078,
0.13938532769680023,
0.5158736109733582,
-0.1586591899394989,
0.37982305884361267,
-0.06426665186882019,
0.38470497727394104,
0.010050940327346325,
0.17987002432346344,
0.23998847603797913,
-0.2542884051799774,
-0.15915799140930176,
0.06179676577448845,
-0.11367954313755035,
0.0402822382748127,
0.12155430763959885,
-0.06850143522024155,
-0.301498681306839,
-0.022290460765361786,
-0.2587721645832062,
0.2786272168159485,
0.0064092339016497135,
0.1696966290473938,
0.06705448031425476,
-0.525394082069397,
0.4796038269996643,
0.41570746898651123,
0.15022782981395721,
-0.15487930178642273,
-0.17651864886283875,
0.14544253051280975,
-0.0027778176590800285,
0.03454272821545601,
-0.11732722073793411,
-0.02342226728796959,
0.12261803448200226,
0.2246333211660385,
-0.2167375683784485,
0.21416153013706207,
-0.11055397242307663,
-0.05736936256289482,
0.27840808033943176,
0.2830648124217987,
0.11584131419658661,
-0.5786659121513367,
-0.4050557315349579,
-0.19941212236881256,
0.03557770699262619,
-0.13584737479686737,
0.04278459772467613,
-0.09590155631303787,
-0.007377095054835081,
0.07901663333177567,
-0.01095439400523901,
-0.37999454140663147,
0.016382263973355293,
0.23044835031032562,
-0.10416855663061142,
0.16770458221435547,
0.48944196105003357,
0.3991491198539734,
-0.12030588090419769,
-0.1565670669078827,
0.12399434298276901,
0.19432617723941803,
-0.6159324049949646,
0.14854906499385834,
-0.016077924519777298,
0.2707146108150482,
0.1173536404967308,
0.09353122115135193,
0.14814966917037964,
-0.11310635507106781,
0.12289806455373764,
-0.657176673412323,
-0.0065172347240149975,
-0.016392307355999947,
-0.025536980479955673,
0.06612268090248108,
-0.005358520429581404,
-0.34719645977020264,
-0.006330862641334534,
-0.01854696497321129,
-0.1774585247039795,
0.21928147971630096,
-0.01601681485772133,
0.07737253606319427,
0.08759292960166931,
0.22374732792377472,
-0.11349277943372726,
-0.3160487711429596,
0.0059334891848266125,
0.08079889416694641,
0.1289907693862915,
-0.1185338944196701,
-0.2344442903995514,
0.18074357509613037,
0.0513063445687294,
0.117263063788414,
-0.2916284501552582,
-0.171203151345253,
-0.25194206833839417,
-0.11570892482995987,
0.12226113677024841,
0.30978289246559143,
0.07638724893331528,
0.4201914966106415,
0.06320593506097794,
-0.13469962775707245,
-0.5766659379005432,
0.2431897521018982,
-0.25179222226142883,
0.25633469223976135,
0.20043480396270752,
0.21893447637557983,
0.15264271199703217,
0.13263024389743805,
-0.10451281070709229,
-0.11998140811920166,
-0.1409798413515091,
-0.12321346998214722,
0.3064599931240082,
-0.3543685972690582,
0.1658971905708313,
0.1318967640399933,
0.36394721269607544,
0.450164258480072,
-0.08773588389158249,
-0.0296065304428339,
0.19453634321689606,
0.10601631551980972,
-0.310994029045105,
0.25006675720214844,
0.10154976695775986,
0.2192714959383011,
-0.06665089726448059,
0.3654019832611084,
-0.05868859216570854,
-0.00592334009706974,
0.04186548665165901,
0.15719972550868988,
0.6517171859741211,
0.0037280700635164976,
0.25344404578208923,
0.27008435130119324,
-0.10337915271520615,
0.17181770503520966,
0.26590341329574585,
-0.03999532386660576,
0.05038301274180412,
0.47188234329223633,
-0.17457138001918793,
0.055881328880786896,
0.30981701612472534,
0.23016655445098877,
-0.09588909894227982,
-0.5000250339508057,
0.2013562023639679,
0.33687302470207214,
-0.22628293931484222,
-0.06123774126172066,
0.20303411781787872,
0.7519769072532654,
-0.07415588200092316,
0.09443846344947815,
-0.28370463848114014,
-0.05297597497701645,
0.06889660656452179,
-0.05068578943610191,
-0.1667230725288391,
-0.19430777430534363,
-0.45688170194625854,
0.21750113368034363,
-0.1578667014837265,
-0.1699220985174179,
0.350559264421463,
0.2255704402923584,
-0.020549824461340904,
-0.4643116295337677,
0.10084053874015808,
0.09509989619255066,
0.1084275171160698,
-0.2965502440929413,
0.02496887557208538,
0.013613119721412659,
-0.0371115580201149,
0.35682594776153564,
-0.23038563132286072,
0.3943684697151184,
0.3589630722999573,
-0.08248812705278397,
-0.2996542751789093,
-0.00019089449779130518,
-0.14678224921226501,
0.08111000806093216,
0.45753026008605957,
0.018879810348153114,
0.29796209931373596,
0.2910827696323395,
0.12235617637634277,
-0.037656430155038834,
0.34050047397613525,
0.19591322541236877,
0.1682378202676773,
-0.4209376871585846,
0.09736460447311401,
0.019436851143836975,
-0.07722237706184387,
-0.13422608375549316,
-0.2494691163301468,
-0.22478137910366058,
-0.16446039080619812,
0.2870919108390808,
-0.013904291205108166,
0.2284134030342102,
0.14832857251167297,
0.0054250541143119335,
-0.06346805393695831,
0.25668588280677795,
0.2689571976661682,
0.08354130387306213,
-0.509637176990509,
0.09217245876789093,
-0.7402235269546509,
-0.11851342767477036,
-0.13974961638450623,
-0.13500109314918518,
0.03367329016327858,
0.24566827714443207,
0.22583408653736115,
0.32755234837532043,
-0.09692758321762085,
0.1426137089729309,
-0.053268201649188995,
0.38934454321861267,
-0.18275967240333557,
-0.14950110018253326,
-0.20004889369010925,
0.10637186467647552,
-0.06529884785413742,
-0.4260188937187195,
0.057043928653001785,
0.28596630692481995,
-0.1811174601316452,
-0.12031684815883636,
-0.21477793157100677,
0.1211225688457489,
-0.23257526755332947,
0.319612056016922,
-0.0330539271235466,
0.43930602073669434,
0.03053238056600094,
0.31379348039627075,
-0.4146060049533844,
-0.3162574768066406,
-0.16206374764442444,
0.30632418394088745,
-0.004763659555464983,
0.47634395956993103,
-0.3523973226547241,
0.043399516493082047,
-0.3214065730571747,
-0.03286677226424217,
-0.026316305622458458,
0.21407441794872284,
-0.3108559250831604,
0.22417232394218445,
-0.1598864644765854,
0.240478053689003,
0.025505276396870613,
-0.0010706783505156636,
-0.2014995962381363,
0.19450506567955017,
-0.07344931364059448,
-0.26312148571014404,
0.2682918608188629,
-0.25156569480895996,
-0.32785579562187195,
0.12138010561466217,
0.13246898353099823,
0.3412538766860962,
0.07908416539430618,
-0.4993821084499359,
0.04598216339945793,
0.3171977996826172,
-0.16845017671585083,
-0.02262144163250923,
0.04599053040146828,
0.10458706319332123,
0.10176976770162582,
-0.16237644851207733,
0.09891824424266815,
0.3107345700263977,
-0.2570580840110779,
-0.12675358355045319,
-0.3608282804489136
] |
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.12369927763938904,
0.05452722683548927,
0.0046684471890330315,
0.34401434659957886,
0.2238633781671524,
0.20722448825836182,
0.5557587742805481,
0.33208757638931274,
0.22926701605319977,
0.07235629856586456,
-0.12198502570390701,
0.1893659383058548,
-0.0988403707742691,
0.058099355548620224,
-0.3150726854801178,
-0.1949935406446457,
0.025650065392255783,
0.06312189251184464,
-0.28916025161743164,
0.024731483310461044,
-0.2967126667499542,
0.34954169392585754,
-0.28543156385421753,
-0.10416911542415619,
-0.2474515736103058,
0.12474614381790161,
-0.12849101424217224,
0.28878551721572876,
-0.1067129522562027,
-0.2828912138938904,
0.5074793100357056,
-0.07992935925722122,
0.461883008480072,
0.3443646728992462,
-0.00012035013787681237,
0.09700002521276474,
0.2799850404262543,
-0.09146533906459808,
-0.2787307798862457,
-0.5799636244773865,
-0.007104344200342894,
-0.37530019879341125,
0.3846253752708435,
-0.12357877939939499,
-0.1427273452281952,
0.06286034733057022,
-0.09098273515701294,
-0.37237313389778137,
0.4926060140132904,
0.5027616024017334,
0.15628363192081451,
-0.22778823971748352,
-0.20411311089992523,
-0.05131886899471283,
0.6431521773338318,
0.10482476651668549,
-0.15375173091888428,
0.27038097381591797,
0.04263569414615631,
-0.18000748753547668,
-0.1540326178073883,
0.038424670696258545,
0.01878659799695015,
0.2721133828163147,
0.1503908932209015,
0.3210097551345825,
-0.19260916113853455,
-0.20600484311580658,
0.023496998474001884,
0.17838110029697418,
0.5856809020042419,
-0.061755478382110596,
-0.1998884379863739,
-0.10869172215461731,
-0.003123839618638158,
-0.21123753488063812,
0.29189223051071167,
0.3944920599460602,
-0.014092115685343742,
0.2673092782497406,
-0.08407442271709442,
0.05628756433725357,
-0.2715717852115631,
0.19672079384326935,
-0.04111066088080406,
0.04418933019042015,
-0.1606970727443695,
0.3093576729297638,
0.18285679817199707,
0.13525156676769257,
0.2616446614265442,
-0.06724594533443451,
-0.0468280203640461,
0.18082554638385773,
-0.7518922686576843,
0.23227104544639587,
-0.2511093318462372,
-0.15478116273880005,
-0.09369900077581406,
0.29012173414230347,
0.22213460505008698,
-0.03280999884009361,
-0.0704159215092659,
0.31431129574775696,
0.36044853925704956,
0.05805714428424835,
-0.06490917503833771,
0.3738549053668976,
0.2827090919017792,
-0.09662391990423203,
-0.04958779737353325,
-0.1580699384212494,
-0.2829410135746002,
-0.5059503316879272,
-0.08120614290237427,
0.1843693107366562,
0.21146710216999054,
-0.1583937406539917,
-0.2342972606420517,
0.005078002344816923,
-0.31759604811668396,
-0.039178501814603806,
-0.09825394302606583,
0.32462188601493835,
0.12290090322494507,
0.25827860832214355,
0.018213078379631042,
0.35555022954940796,
-0.1680644005537033,
-0.32515400648117065,
-0.039020705968141556,
0.16306334733963013,
-0.3775840103626251,
-0.018738241866230965,
0.5270971655845642,
-0.20265023410320282,
0.14977136254310608,
0.23780444264411926,
-0.06952986866235733,
-0.3647530972957611,
-0.018372535705566406,
-0.3357926309108734,
0.06003420799970627,
0.26789969205856323,
0.14781315624713898,
0.2357051968574524,
0.29014989733695984,
-0.13141144812107086,
-0.0991392731666565,
0.32069215178489685,
-0.4503082036972046,
-0.22986315190792084,
-0.060941193252801895,
0.0792623981833458,
-0.2566177546977997,
0.1285790205001831,
-0.3197813034057617,
0.12159404903650284,
0.12335381656885147,
-0.18941302597522736,
-0.19740664958953857,
-0.2858695685863495,
-0.31901535391807556,
-0.22521108388900757,
0.02875160425901413,
0.4265126883983612,
-0.7253029942512512,
0.16006898880004883,
-0.07357816398143768,
0.08181160688400269,
0.17621049284934998,
0.21925407648086548,
-0.3011443614959717,
0.02853335626423359,
-0.25888705253601074,
0.1298176348209381,
0.21283455193042755,
-0.14526018500328064,
-0.30539482831954956,
0.313015341758728,
-0.08147747069597244,
-0.015027840621769428,
0.16469158232212067,
0.07351281493902206,
0.3808695077896118,
0.03462629020214081,
-0.19283147156238556,
0.2732809782028198,
-0.05998209863901138,
0.06480374932289124,
-0.21793535351753235,
-0.2626713514328003,
0.26810482144355774,
0.23989473283290863,
0.12198953330516815,
0.08868640661239624,
0.2000197321176529,
-0.422218918800354,
0.36841580271720886,
0.0018671820871531963,
0.24214428663253784,
0.09444211423397064,
0.21728351712226868,
0.006956001743674278,
0.2594897449016571,
-0.0468958280980587,
-0.588016152381897,
0.17508135735988617,
0.35490185022354126,
-0.1456279754638672,
-0.12726899981498718,
-0.08278335630893707,
-0.4457896947860718,
-0.1092282310128212,
-0.2193203568458557,
-0.0531640350818634,
-0.030174262821674347,
0.054600853472948074,
-0.09056751430034637,
-0.21704380214214325,
-0.1504921168088913,
0.35895201563835144,
-0.22538360953330994,
0.13455690443515778,
-0.3470091223716736,
0.3731134533882141,
0.12038508802652359,
-0.07422254979610443,
0.17979802191257477,
-0.03647864609956741,
0.3094661831855774,
-0.16557632386684418,
-0.15509451925754547,
0.33689066767692566,
0.43246906995773315,
-0.017773497849702835,
-0.00705147348344326,
-0.2337273508310318,
0.13502654433250427,
-0.15091435611248016,
-0.0988641232252121,
0.2633003890514374,
0.29954758286476135,
-0.13295459747314453,
-0.6124712228775024,
0.3689529299736023,
-0.34813106060028076,
0.3461935818195343,
-0.10828515887260437,
0.13986168801784515,
0.2544142007827759,
-0.06944990158081055,
-0.09203585237264633,
-0.05028245970606804,
-0.0246853306889534,
-0.05072755739092827,
0.21929435431957245,
0.07861266285181046,
-0.18207132816314697,
-0.1413663923740387,
0.1904686838388443,
0.14547260105609894,
-0.26420408487319946,
0.16315864026546478,
-0.05749901384115219,
-0.09099046140909195,
0.28604134917259216,
0.3959853947162628,
0.47063201665878296,
0.07969498634338379,
-0.15679800510406494,
-0.03531826287508011,
0.07408148050308228,
-0.24157880246639252,
0.11596531420946121,
0.07016865164041519,
0.06405811756849289,
0.22927634418010712,
0.2091120183467865,
0.06437001377344131,
-0.08720090985298157,
-0.1415753960609436,
0.2427639663219452,
0.1857290267944336,
-0.5693573951721191,
0.041461434215307236,
-0.2665560841560364,
0.3180038630962372,
-0.3426661789417267,
-0.05627899989485741,
0.13171252608299255,
-0.3142734169960022,
-0.23927141726016998,
0.279163122177124,
-0.1528596729040146,
0.08958806097507477,
-0.1620825231075287,
0.24112924933433533,
0.04109187051653862,
-0.18987971544265747,
0.14090582728385925,
-0.1960645318031311,
-0.27384382486343384,
0.02826511487364769,
0.15394707024097443,
0.05859987437725067,
-0.12779951095581055,
0.10290476679801941,
-0.05507878586649895,
-0.17068828642368317,
-0.008625516667962074,
0.16197001934051514,
-0.0035848577972501516,
0.0908203125,
0.13823893666267395,
-0.10532968491315842,
-0.06460610032081604,
-0.2693963050842285,
0.1504160612821579,
0.07712127268314362,
0.07100213319063187,
0.3143753707408905,
0.26915085315704346,
-0.08287201076745987,
-0.17931422591209412,
-0.7806079983711243,
-0.2570376396179199,
-0.22826500236988068,
0.06827697157859802,
-0.09432505071163177,
-0.06803996115922928,
-0.007950330153107643,
0.25378352403640747,
-0.0882224440574646,
0.31373247504234314,
-0.107876256108284,
-0.11325179040431976,
-0.22406600415706635,
0.5512239336967468,
-0.24454469978809357,
-0.3344500958919525,
0.20844802260398865,
-0.11006119102239609,
-0.029014935716986656,
0.39136257767677307,
-0.4320286214351654,
0.206947922706604,
-0.05629083886742592,
-0.02768375538289547,
-0.06925910711288452,
0.055497873574495316,
0.06669820845127106,
-0.06051699072122574,
0.09558859467506409,
-0.022642681375145912,
-0.12511412799358368,
0.251767098903656,
-0.02002374827861786,
0.10370323061943054,
0.06909960508346558,
0.45512333512306213,
-0.12794768810272217,
0.8405367136001587,
0.09346093982458115,
0.03827957808971405,
0.21614068746566772,
-0.1279047429561615,
0.2627878785133362,
0.11614464968442917,
-0.20523664355278015,
0.04913584515452385,
-0.21876555681228638,
-0.29892227053642273,
0.3436026871204376,
0.006289319135248661,
-0.15881727635860443,
-0.08460744470357895,
0.30559661984443665,
-0.21649298071861267,
-0.2865196764469147,
0.21090339124202728,
-0.14447075128555298,
0.021243330091238022,
-0.04988662526011467,
0.17685295641422272,
0.14069050550460815,
-0.1986887902021408,
-0.09434182196855545,
0.11056458204984665,
0.10687559098005295,
-0.12617288529872894,
0.10687193274497986,
-0.12470020353794098,
-0.25847211480140686,
0.15724903345108032,
-0.044999536126852036,
0.38181182742118835,
0.11399982124567032,
-0.1269671618938446,
0.0701361671090126,
0.2051008939743042,
0.8161818981170654,
-0.17068737745285034,
-0.026279229670763016,
0.1365029662847519,
-0.09434438496828079,
-0.1557803899049759,
-0.3316737413406372,
-0.13158759474754333,
0.2589629590511322,
0.02899281680583954,
0.27917924523353577,
-0.09397038072347641,
0.006134038791060448,
0.41229328513145447,
0.12375149130821228,
-0.1991579830646515,
-0.3709278702735901,
-0.11767172068357468,
0.024307429790496826,
-0.10856112092733383,
-0.14391177892684937,
0.17009037733078003,
0.12371882051229477,
-0.33605051040649414,
0.034457072615623474,
-0.20560215413570404,
-0.25803878903388977,
0.3210892975330353,
0.10198744386434555,
0.2867147624492645,
0.06701327860355377,
0.22361744940280914,
0.23094125092029572,
0.08655241876840591,
0.152128666639328,
0.8312821388244629,
-0.24763686954975128,
-0.8462256789207458,
0.3043622076511383,
-0.5130509734153748,
0.3058377504348755,
0.10061386227607727,
-0.33904361724853516,
-0.07400432229042053,
-0.20738156139850616,
-0.09081355482339859,
-0.06435354053974152,
0.038515254855155945,
0.10529928654432297,
-0.10005726665258408,
-0.17680427432060242,
-0.536804735660553,
0.5061166286468506,
-0.11586114764213562,
-0.12192282825708389,
0.11638016998767853,
-0.06408699601888657,
-0.29297539591789246,
0.5268896222114563,
-0.16959716379642487,
0.6717290878295898,
-0.11613764613866806,
0.008624785579741001,
0.16610974073410034,
-0.17383937537670135,
0.38208940625190735,
-0.3971770703792572,
0.01928652636706829,
-0.4172923266887665,
-0.18709997832775116,
-0.1575160175561905,
0.028836356475949287,
0.04503604397177696,
0.5768893361091614,
-0.1867121309041977,
0.3853287100791931,
-0.1072072833776474,
0.40908733010292053,
0.011592435650527477,
0.13107015192508698,
0.27759653329849243,
-0.2057444006204605,
-0.09362293779850006,
0.07302073389291763,
-0.04812581092119217,
-0.03057212010025978,
0.1257379949092865,
0.022563526406884193,
-0.22999468445777893,
-0.08618680387735367,
-0.35851022601127625,
0.30153894424438477,
-0.058020975440740585,
0.14969217777252197,
0.05501736328005791,
-0.5366527438163757,
0.474040150642395,
0.4240618050098419,
0.09323044866323471,
-0.1158970445394516,
-0.1576938033103943,
0.11588792502880096,
0.024920232594013214,
0.0712476447224617,
-0.15679827332496643,
-0.04907342046499252,
0.06243530288338661,
0.2436162680387497,
-0.19718018174171448,
0.2300535887479782,
-0.12383431941270828,
-0.03056275099515915,
0.30557364225387573,
0.31189754605293274,
0.22014528512954712,
-0.5418589115142822,
-0.34249553084373474,
-0.1763359010219574,
0.11462438106536865,
-0.1732376217842102,
0.03705773502588272,
-0.08837561309337616,
0.002250807825475931,
0.007083917036652565,
0.03663938120007515,
-0.34590697288513184,
0.0961274653673172,
0.2780534029006958,
-0.07913275808095932,
0.06925873458385468,
0.47566771507263184,
0.39131662249565125,
-0.07222969830036163,
-0.17214584350585938,
0.0924542099237442,
0.19394099712371826,
-0.6047870516777039,
0.19335788488388062,
-0.04014253988862038,
0.2394959032535553,
0.18699191510677338,
0.18917585909366608,
0.15498889982700348,
-0.12686370313167572,
0.06810206919908524,
-0.5866600275039673,
0.039446450769901276,
-0.046441253274679184,
-0.07752273976802826,
0.11532523483037949,
0.023026801645755768,
-0.31971487402915955,
-0.09976419061422348,
0.0018917771521955729,
-0.16862305998802185,
0.17392800748348236,
0.07416584342718124,
0.10877078771591187,
0.10040610283613205,
0.2541714608669281,
-0.14940397441387177,
-0.2636881172657013,
0.00888385996222496,
0.013284544460475445,
0.12623350322246552,
-0.1043555811047554,
-0.2518170177936554,
0.18143612146377563,
-0.017695752903819084,
0.20212110877037048,
-0.28423282504081726,
-0.1261138767004013,
-0.19089046120643616,
-0.13103635609149933,
0.1956934630870819,
0.2580340802669525,
-0.011283890344202518,
0.43346863985061646,
0.11497978866100311,
-0.06326302886009216,
-0.5831514000892639,
0.2543993294239044,
-0.2832888960838318,
0.17872188985347748,
0.21027038991451263,
0.23358111083507538,
0.13052549958229065,
0.10911516100168228,
-0.16993485391139984,
-0.09220635890960693,
-0.08637091517448425,
-0.08789423108100891,
0.2572656571865082,
-0.2967859208583832,
0.1809123456478119,
0.10534676909446716,
0.3611457943916321,
0.43785974383354187,
-0.08383584767580032,
-0.047789718955755234,
0.11389601975679398,
0.1188235655426979,
-0.32252049446105957,
0.20637428760528564,
0.09352467209100723,
0.23126360774040222,
-0.04270234704017639,
0.33176174759864807,
0.00041511241579428315,
-0.0643438771367073,
0.014007807709276676,
0.1694217473268509,
0.5861904621124268,
0.025117112323641777,
0.26211777329444885,
0.33441290259361267,
-0.05884954333305359,
0.12117093056440353,
0.15604755282402039,
-0.15733104944229126,
0.07283079624176025,
0.4479800760746002,
-0.21744008362293243,
0.0932001993060112,
0.31417182087898254,
0.18815751373767853,
-0.10475233197212219,
-0.5688259601593018,
0.18917733430862427,
0.2869032025337219,
-0.28631436824798584,
-0.10887214541435242,
0.13014449179172516,
0.7349346876144409,
-0.107328400015831,
0.029504399746656418,
-0.32493674755096436,
-0.08673081547021866,
0.09725304692983627,
-0.09655094146728516,
-0.15835826098918915,
-0.2195170819759369,
-0.4849550724029541,
0.281806617975235,
-0.1849796622991562,
-0.04667144641280174,
0.4361395239830017,
0.22323590517044067,
-0.027703123167157173,
-0.48065897822380066,
0.09662508964538574,
0.15655092895030975,
0.08461715281009674,
-0.3090490698814392,
0.08348922431468964,
-0.021261991932988167,
-0.0038152658380568027,
0.37778767943382263,
-0.242045596241951,
0.3354339897632599,
0.3684576451778412,
0.007371455430984497,
-0.36821818351745605,
-0.061943769454956055,
-0.06302931904792786,
-0.007812822237610817,
0.37695565819740295,
0.005990942940115929,
0.3021044135093689,
0.2983401417732239,
0.09007438272237778,
-0.02613522857427597,
0.3797568082809448,
0.10094042122364044,
0.12720265984535217,
-0.520671010017395,
0.047071341425180435,
0.06125925853848457,
-0.10900809615850449,
-0.09821262210607529,
-0.2307286560535431,
-0.16103950142860413,
-0.18646782636642456,
0.3231503367424011,
0.05334801226854324,
0.227253720164299,
0.16132989525794983,
-0.00593588687479496,
-0.06978746503591537,
0.2767513692378998,
0.3064689040184021,
0.03584252670407295,
-0.520697295665741,
-0.01632312685251236,
-0.7225838303565979,
-0.09097020328044891,
-0.2059161514043808,
-0.1488366276025772,
-0.0006347187445499003,
0.28831514716148376,
0.2138848900794983,
0.30617162585258484,
-0.0822250097990036,
0.10767319798469543,
-0.0376039519906044,
0.3772449195384979,
-0.2053089141845703,
-0.16636374592781067,
-0.156325563788414,
0.09864570200443268,
-0.0578414723277092,
-0.439381867647171,
-0.025555023923516273,
0.2985120713710785,
-0.1839355230331421,
-0.05913734436035156,
-0.2375972867012024,
0.1494271606206894,
-0.24580897390842438,
0.3341519236564636,
-0.03453504666686058,
0.41976839303970337,
0.025753198191523552,
0.3332750201225281,
-0.4953846037387848,
-0.26812806725502014,
-0.21893352270126343,
0.2006678283214569,
-0.05079224333167076,
0.49449941515922546,
-0.3649028539657593,
0.059479720890522,
-0.25129857659339905,
0.007737170904874802,
0.04681766405701637,
0.17444847524166107,
-0.28766965866088867,
0.21983619034290314,
-0.14878195524215698,
0.268842488527298,
-0.012419027276337147,
0.049760572612285614,
-0.20282086730003357,
0.13408328592777252,
-0.05023198947310448,
-0.27515387535095215,
0.23194976150989532,
-0.2538372874259949,
-0.2683006525039673,
-0.017031660303473473,
0.15449532866477966,
0.22294266521930695,
0.1902012825012207,
-0.5178752541542053,
-0.028195887804031372,
0.3256675601005554,
-0.1713879108428955,
-0.12067007273435593,
0.1029580608010292,
0.15810585021972656,
0.03846310079097748,
-0.150917187333107,
0.22866588830947876,
0.3510144054889679,
-0.27457860112190247,
-0.15159334242343903,
-0.4364376664161682
] |
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.06853340566158295,
0.019808154553174973,
0.012350010685622692,
0.41634541749954224,
0.1547636091709137,
0.13107720017433167,
0.5161140561103821,
0.33483394980430603,
0.32836687564849854,
0.07457078993320465,
-0.11742229014635086,
0.2238824963569641,
-0.13035769760608673,
0.07728090137243271,
-0.3574974238872528,
-0.14098124206066132,
-0.01614130288362503,
0.1667790710926056,
-0.3396330773830414,
-0.05413001775741577,
-0.37206053733825684,
0.3022884726524353,
-0.3071189522743225,
-0.10388461500406265,
-0.23331443965435028,
0.15471163392066956,
-0.1243327334523201,
0.26361745595932007,
-0.13068313896656036,
-0.31131353974342346,
0.5264425277709961,
-0.03480255976319313,
0.42968252301216125,
0.17962531745433807,
-0.00012024363968521357,
0.06832428276538849,
0.20989306271076202,
-0.15702050924301147,
-0.2832556366920471,
-0.5928279161453247,
-0.09489185363054276,
-0.5000764727592468,
0.3716960549354553,
-0.1824129968881607,
-0.18180933594703674,
0.058763206005096436,
-0.055730752646923065,
-0.36925166845321655,
0.4264982044696808,
0.44044455885887146,
0.14177289605140686,
-0.23754283785820007,
-0.22233706712722778,
0.0053097899071872234,
0.5322127938270569,
0.1271095871925354,
-0.15938568115234375,
0.26285576820373535,
0.084145687520504,
-0.17083828151226044,
-0.14678175747394562,
0.07270151376724243,
-0.03782676160335541,
0.250505656003952,
0.15275084972381592,
0.25162988901138306,
-0.21497824788093567,
-0.28025636076927185,
-0.04730971157550812,
0.22744755446910858,
0.6906310319900513,
-0.0038558414671570063,
-0.20169970393180847,
-0.23661145567893982,
-0.008302200585603714,
-0.15863260626792908,
0.23525597155094147,
0.3178544342517853,
-0.07310792803764343,
0.3024132251739502,
-0.12140946090221405,
0.011998960748314857,
-0.2797515392303467,
0.13328370451927185,
-0.011735344305634499,
0.11401712149381638,
-0.15974535048007965,
0.3371415138244629,
0.0914066806435585,
0.11300665885210037,
0.27365967631340027,
-0.141951322555542,
-0.05094297602772713,
0.14697061479091644,
-0.6654454469680786,
0.14631998538970947,
-0.09045101702213287,
-0.06977585703134537,
-0.08073174208402634,
0.13996601104736328,
0.20958924293518066,
0.02220289036631584,
-0.09406274557113647,
0.24171043932437897,
0.42799991369247437,
0.015215517953038216,
0.00894375704228878,
0.2975207269191742,
0.2508085072040558,
-0.1638219952583313,
-0.0027232852298766375,
-0.09821248799562454,
-0.24510744214057922,
-0.3989141583442688,
-0.15905997157096863,
0.19138848781585693,
0.26669609546661377,
-0.16631996631622314,
-0.24469009041786194,
0.03935305029153824,
-0.3511970341205597,
0.010830200277268887,
-0.16314338147640228,
0.28126269578933716,
-0.003097873879596591,
0.30634617805480957,
0.05560338497161865,
0.27007076144218445,
-0.1631048619747162,
-0.44796398282051086,
-0.0052000717259943485,
0.15098285675048828,
-0.3910144567489624,
-0.015298846177756786,
0.4608510136604309,
-0.07835938781499863,
0.07571763545274734,
0.1967024803161621,
-0.0985654667019844,
-0.3172413110733032,
-0.027843870222568512,
-0.35394522547721863,
0.11864776909351349,
0.24647897481918335,
0.1359596699476242,
0.24087361991405487,
0.32589805126190186,
-0.2979564368724823,
-0.17609737813472748,
0.3370364010334015,
-0.510586142539978,
-0.2835353910923004,
-0.02140684612095356,
0.07903590798377991,
-0.3109270930290222,
0.21604976058006287,
-0.2705373764038086,
0.2318892925977707,
0.0025536140892654657,
-0.08110347390174866,
-0.23969359695911407,
-0.33117225766181946,
-0.37820667028427124,
-0.3062499165534973,
-0.018465787172317505,
0.5380910634994507,
-0.7937147617340088,
0.21139219403266907,
-0.04397911578416824,
0.030444569885730743,
0.06453406065702438,
0.23736384510993958,
-0.3146848976612091,
0.14554062485694885,
-0.3004148304462433,
0.04512590542435646,
0.21840861439704895,
-0.1572800725698471,
-0.3521280586719513,
0.2249474823474884,
-0.043850500136613846,
0.14307476580142975,
0.1946260780096054,
0.1160266101360321,
0.47476425766944885,
0.005496210418641567,
-0.14967377483844757,
0.1738150715827942,
-0.10376046597957611,
0.036345474421978,
-0.211202472448349,
-0.2809377610683441,
0.2493327260017395,
0.19496995210647583,
0.1628943830728531,
0.14729829132556915,
0.18637903034687042,
-0.4255869388580322,
0.39470571279525757,
-0.03184620663523674,
0.21795859932899475,
0.05516764521598816,
0.24089749157428741,
0.020124783739447594,
0.23747020959854126,
0.0013129779836162925,
-0.6431270241737366,
0.24453836679458618,
0.4549829065799713,
-0.05896652862429619,
-0.07157871127128601,
-0.1860949993133545,
-0.37366390228271484,
-0.08583029359579086,
-0.2312474399805069,
-0.06665580719709396,
-0.017678460106253624,
0.00325548043474555,
-0.04785297438502312,
-0.17578190565109253,
-0.1272350698709488,
0.4778863191604614,
-0.2450699806213379,
0.1183173879981041,
-0.33568206429481506,
0.3488132059574127,
0.15323778986930847,
0.02262561023235321,
0.18737079203128815,
-0.058468449860811234,
0.2424248903989792,
-0.1430353969335556,
-0.051509905606508255,
0.20481115579605103,
0.386869341135025,
-0.1422164887189865,
-0.012456481344997883,
-0.14456690847873688,
0.07290971279144287,
-0.208097442984581,
-0.04535725340247154,
0.16021166741847992,
0.36587798595428467,
-0.15805812180042267,
-0.5012958645820618,
0.4670165479183197,
-0.29430726170539856,
0.2638436257839203,
-0.1589294672012329,
0.133095845580101,
0.23315298557281494,
-0.06109398230910301,
-0.1029711589217186,
-0.001998314866796136,
-0.12204687297344208,
-0.006639354862272739,
0.2533268630504608,
0.1580817848443985,
-0.24747128784656525,
-0.12646566331386566,
0.37047168612480164,
0.24740664660930634,
-0.23487810790538788,
0.1483871191740036,
-0.03300037607550621,
-0.09384471923112869,
0.29249048233032227,
0.34283941984176636,
0.47892525792121887,
0.12171868234872818,
-0.24014444649219513,
-0.05465155839920044,
0.11574404686689377,
-0.19574546813964844,
0.06618254631757736,
-0.015107208862900734,
0.17941811680793762,
0.2044953852891922,
0.0841715931892395,
0.057359784841537476,
-0.07460972666740417,
-0.18885916471481323,
0.22039926052093506,
0.17044517397880554,
-0.5285298228263855,
-0.0067851790226995945,
-0.23586268723011017,
0.250296413898468,
-0.30657514929771423,
-0.04817739129066467,
0.06679225713014603,
-0.2848748564720154,
-0.24064789712429047,
0.2247035652399063,
-0.12949912250041962,
0.0832541212439537,
-0.10425449162721634,
0.24689288437366486,
-0.031073490157723427,
-0.19139622151851654,
0.13933181762695312,
-0.12902261316776276,
-0.27950263023376465,
0.014254224486649036,
0.04431210458278656,
-0.035580385476350784,
-0.07806957513093948,
0.034435585141181946,
-0.06949415802955627,
-0.22106397151947021,
-0.0055246674455702305,
0.21168431639671326,
-0.045342642813920975,
0.07987220585346222,
0.1930057555437088,
-0.04382416605949402,
0.02461029216647148,
-0.1626572459936142,
0.12711101770401,
0.2256253957748413,
0.046462446451187134,
0.2204769104719162,
0.270663857460022,
-0.050586603581905365,
-0.17750786244869232,
-0.7641392350196838,
-0.2559482455253601,
-0.18180108070373535,
0.08705085515975952,
-0.11464317888021469,
-0.008554006926715374,
-0.0022583415266126394,
0.32540565729141235,
-0.09127765893936157,
0.2516676187515259,
-0.13562123477458954,
-0.09449239820241928,
-0.21832580864429474,
0.5146269202232361,
-0.1794223189353943,
-0.3070167005062103,
0.21292760968208313,
-0.16017615795135498,
0.030210165306925774,
0.35548093914985657,
-0.4325178861618042,
0.22592797875404358,
-0.024138739332556725,
0.08175322413444519,
-0.07068978995084763,
-0.04143546521663666,
0.13003642857074738,
-0.034905556589365005,
0.13923373818397522,
-0.06435225903987885,
-0.1901707500219345,
0.3100561797618866,
-0.09890077263116837,
0.09887385368347168,
0.158456951379776,
0.4907527565956116,
-0.1198667362332344,
0.8878325819969177,
0.041500192135572433,
0.030271880328655243,
0.17540569603443146,
-0.05029325932264328,
0.3468174934387207,
0.12354782968759537,
-0.22705917060375214,
0.0012115796562284231,
-0.12443196773529053,
-0.3443954586982727,
0.35321417450904846,
-0.03565574809908867,
-0.15306250751018524,
-0.1682809740304947,
0.20799455046653748,
-0.24232298135757446,
-0.26232707500457764,
0.22395941615104675,
-0.13316679000854492,
-0.029701052233576775,
0.048655543476343155,
0.21545150876045227,
0.12331650406122208,
-0.11590124666690826,
-0.1719330996274948,
0.22451642155647278,
0.20536203682422638,
-0.058307208120822906,
0.09137879312038422,
-0.1581432968378067,
-0.2692698836326599,
0.19328540563583374,
-0.03912923112511635,
0.3117919862270355,
0.14886392652988434,
-0.065714530646801,
0.04320238530635834,
0.20297221839427948,
0.7653228044509888,
-0.2280738800764084,
-0.024464020505547523,
0.13498689234256744,
-0.10198141634464264,
-0.04619951546192169,
-0.30122506618499756,
-0.09848970174789429,
0.2842857837677002,
0.026463471353054047,
0.2631986737251282,
-0.11546146124601364,
-0.06272987276315689,
0.3587513566017151,
0.1263299137353897,
-0.2580283284187317,
-0.32871028780937195,
-0.129974365234375,
0.06239920109510422,
-0.10747810453176498,
-0.1632818579673767,
0.16071265935897827,
0.07248061150312424,
-0.339620977640152,
-0.029611686244606972,
-0.20273315906524658,
-0.19980289041996002,
0.3576454222202301,
0.14231818914413452,
0.21830537915229797,
0.045395080000162125,
0.24758106470108032,
0.13548502326011658,
0.18806977570056915,
0.25523266196250916,
0.8236985802650452,
-0.22309300303459167,
-0.8741762638092041,
0.2771153450012207,
-0.4476580023765564,
0.3850245773792267,
0.13487917184829712,
-0.3043454587459564,
-0.04788075387477875,
-0.2633569538593292,
-0.10172197967767715,
-0.07089495658874512,
-0.03805062919855118,
0.13526920974254608,
-0.08609336614608765,
-0.3213091194629669,
-0.5509395599365234,
0.4983869194984436,
-0.21601901948451996,
-0.15267795324325562,
0.128854438662529,
0.05018723011016846,
-0.3783162236213684,
0.4786061942577362,
-0.0916961282491684,
0.7594628930091858,
-0.15346375107765198,
-0.00955792423337698,
0.12011022865772247,
-0.189828559756279,
0.5620489120483398,
-0.3316332995891571,
-0.020349547266960144,
-0.47370290756225586,
-0.14791809022426605,
-0.1999811977148056,
0.03261115029454231,
0.13139981031417847,
0.65357905626297,
-0.20252922177314758,
0.4069700837135315,
-0.02167847380042076,
0.38807618618011475,
0.027830112725496292,
0.2338409125804901,
0.30218803882598877,
-0.1964588314294815,
-0.11497710645198822,
0.05628076568245888,
-0.0653754249215126,
0.005588344763964415,
0.043499354273080826,
-0.022868871688842773,
-0.29297733306884766,
-0.09813014417886734,
-0.2989468574523926,
0.2829633951187134,
-0.04616342484951019,
0.075625479221344,
0.03631293401122093,
-0.46642830967903137,
0.5202761292457581,
0.47342944145202637,
0.050010379403829575,
-0.03654249384999275,
-0.20118890702724457,
0.07310384511947632,
-0.02229989878833294,
0.0527498796582222,
-0.1005425676703453,
-0.04624122381210327,
0.12617336213588715,
0.2554221749305725,
-0.21631303429603577,
0.29503393173217773,
-0.1905878484249115,
0.0038558817468583584,
0.2529626190662384,
0.31609395146369934,
0.2802586555480957,
-0.5410069823265076,
-0.36537089943885803,
-0.12732677161693573,
0.18059101700782776,
-0.09409046173095703,
0.02801411598920822,
-0.05969749763607979,
0.12221358716487885,
0.0425456278026104,
0.05116269364953041,
-0.3972802758216858,
0.05283057317137718,
0.16066186130046844,
-0.016975272446870804,
0.14481061697006226,
0.45664548873901367,
0.3148108720779419,
-0.11134600639343262,
-0.1686691790819168,
0.1123686283826828,
0.11944379657506943,
-0.570548415184021,
0.13717569410800934,
0.0857449397444725,
0.29097720980644226,
0.10267093032598495,
0.1484767347574234,
0.15218262374401093,
-0.24430322647094727,
0.0830206498503685,
-0.4805290400981903,
0.08640895038843155,
-0.017475247383117676,
-0.11697878688573837,
0.07712624222040176,
-0.041662875562906265,
-0.2976440489292145,
-0.04533151537179947,
-0.028765320777893066,
-0.18239004909992218,
0.05981574207544327,
0.03498785197734833,
0.0892362892627716,
0.15885761380195618,
0.40675345063209534,
-0.223802387714386,
-0.26279765367507935,
-0.022901346907019615,
-0.0026908584404736757,
0.08223198354244232,
-0.08435642719268799,
-0.21258218586444855,
0.19746702909469604,
0.03791004419326782,
0.2562309503555298,
-0.2446066439151764,
-0.19989414513111115,
-0.20535866916179657,
-0.14850777387619019,
0.14219695329666138,
0.37602493166923523,
-0.04727708175778389,
0.4416263997554779,
0.13797855377197266,
0.054128240793943405,
-0.5553628206253052,
0.33226707577705383,
-0.27060601115226746,
0.2641063332557678,
0.12303833663463593,
0.23636548221111298,
0.07926430553197861,
0.12048592418432236,
-0.08289185166358948,
-0.06383424252271652,
-0.13841119408607483,
-0.12154214829206467,
0.27171361446380615,
-0.2314949482679367,
0.3026968836784363,
0.13284268975257874,
0.3071196973323822,
0.36155593395233154,
-0.07196161150932312,
-0.09679665416479111,
0.1469043493270874,
0.09214045107364655,
-0.3382647633552551,
0.2435207962989807,
0.1269054114818573,
0.21628302335739136,
-0.04514617845416069,
0.4322558343410492,
-0.061798255890607834,
-0.019985221326351166,
0.1237175315618515,
0.12307041138410568,
0.5733161568641663,
0.1306251585483551,
0.24343529343605042,
0.2835690677165985,
-0.04922729730606079,
0.15052922070026398,
0.2348000556230545,
-0.12634876370429993,
0.08904828131198883,
0.472377747297287,
-0.243991881608963,
0.016135361045598984,
0.2719651758670807,
0.18435510993003845,
-0.02436928078532219,
-0.5952978730201721,
0.2227468341588974,
0.27967220544815063,
-0.3082636892795563,
-0.11413021385669708,
0.1221165657043457,
0.5427791476249695,
-0.12075650691986084,
0.07918063551187515,
-0.3032688498497009,
-0.08845196664333344,
0.050816696137189865,
-0.03392042964696884,
-0.1227208599448204,
-0.24306398630142212,
-0.41581588983535767,
0.28706470131874084,
-0.18072102963924408,
-0.14235249161720276,
0.39566993713378906,
0.1432172954082489,
-0.004015577957034111,
-0.42168742418289185,
0.1565316915512085,
0.1227782592177391,
0.12329483777284622,
-0.2992655038833618,
0.02951161004602909,
-0.10052812844514847,
0.05028318613767624,
0.3894433081150055,
-0.16785983741283417,
0.24467425048351288,
0.45752954483032227,
0.06005540117621422,
-0.37886354327201843,
-0.04801511764526367,
-0.06913460791110992,
-0.0939066931605339,
0.39362263679504395,
-0.050274018198251724,
0.26470962166786194,
0.32441094517707825,
0.07582985609769821,
-0.01989119127392769,
0.2924802899360657,
0.1600431501865387,
0.07250265777111053,
-0.5550236701965332,
-0.04297540709376335,
0.061424750834703445,
-0.05876346305012703,
-0.03435581177473068,
-0.14921051263809204,
-0.10957910865545273,
-0.29294446110725403,
0.3705630898475647,
0.1326085329055786,
0.25467628240585327,
0.08928796648979187,
-0.0064053586684167385,
-0.0946698859333992,
0.1924179345369339,
0.24129405617713928,
0.09981744736433029,
-0.5010780692100525,
0.008691620081663132,
-0.7816190719604492,
-0.09866055846214294,
-0.2541857659816742,
-0.19500289857387543,
-0.057068657130002975,
0.27555298805236816,
0.27925217151641846,
0.2758786380290985,
-0.1493147611618042,
0.20547418296337128,
0.05266953632235527,
0.356535941362381,
-0.2402205914258957,
-0.28294211626052856,
-0.2615453898906708,
0.021883193403482437,
-0.061135921627283096,
-0.47716325521469116,
0.03345763683319092,
0.36629965901374817,
-0.1833495795726776,
-0.1305174082517624,
-0.07361894845962524,
0.2136421501636505,
-0.1871747374534607,
0.35387536883354187,
0.03646005317568779,
0.5024867653846741,
0.03445316106081009,
0.3173484802246094,
-0.34407904744148254,
-0.1859058439731598,
-0.2605511248111725,
0.25600674748420715,
-0.055996451526880264,
0.41947901248931885,
-0.3687516152858734,
0.12825694680213928,
-0.1930965930223465,
-0.008632722310721874,
0.09881336987018585,
0.28305768966674805,
-0.372272789478302,
0.2633211314678192,
-0.1280461698770523,
0.28470125794410706,
-0.059486690908670425,
0.007521267049014568,
-0.17139314115047455,
0.13351230323314667,
-0.1347590535879135,
-0.18005073070526123,
0.28125375509262085,
-0.20795316994190216,
-0.23707522451877594,
-0.024469846859574318,
0.18726707994937897,
0.21236959099769592,
0.05686963349580765,
-0.5106430053710938,
-0.12064023315906525,
0.4468550682067871,
-0.18624302744865417,
-0.06636790186166763,
0.055175844579935074,
0.08012960106134415,
0.03146511688828468,
-0.1960243135690689,
0.24425117671489716,
0.28783464431762695,
-0.26079463958740234,
-0.09115300327539444,
-0.4131065011024475
] |
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.030013903975486755,
0.1694912314414978,
0.02353612519800663,
0.271454781293869,
0.27539440989494324,
0.1793166846036911,
0.4045259654521942,
0.2795947790145874,
0.28730684518814087,
0.015039685182273388,
-0.0485231950879097,
0.34998229146003723,
-0.12127307057380676,
-0.06812385469675064,
-0.15201519429683685,
-0.153656467795372,
-0.01223023422062397,
0.1196543276309967,
-0.4033186137676239,
-0.023969033733010292,
-0.3553747832775116,
0.3309985399246216,
-0.29756370186805725,
0.09989016503095627,
-0.07144033163785934,
0.19825880229473114,
-0.08526343107223511,
0.37228113412857056,
-0.08679310232400894,
-0.34233230352401733,
0.5356940031051636,
-0.09469727426767349,
0.5112505555152893,
0.2374759465456009,
-0.00011798503692261875,
0.0406569167971611,
0.3306672275066376,
-0.11055579036474228,
-0.2995378077030182,
-0.6809142827987671,
0.025716129690408707,
-0.5392319560050964,
0.4017815887928009,
-0.14665517210960388,
-0.05278697609901428,
0.04571037366986275,
-0.033915743231773376,
-0.42152804136276245,
0.3402785658836365,
0.47663769125938416,
0.18219749629497528,
-0.09229885041713715,
-0.13183662295341492,
0.01574608124792576,
0.482867032289505,
0.07375259697437286,
-0.12595079839229584,
0.3762857913970947,
0.020776638761162758,
-0.23927031457424164,
-0.15184926986694336,
0.007380415685474873,
-0.07873997837305069,
0.25528159737586975,
0.2491716891527176,
0.213870108127594,
-0.24037829041481018,
-0.11536873877048492,
0.014032109640538692,
0.1130981370806694,
0.6585770845413208,
-0.1782786101102829,
-0.1866248995065689,
-0.09335973113775253,
0.027439232915639877,
-0.21906347572803497,
0.3825586140155792,
0.4112619459629059,
0.009916789829730988,
0.3105877637863159,
-0.15603496134281158,
0.05695843696594238,
-0.2717013359069824,
0.23798048496246338,
0.10654151439666748,
-0.004013461526483297,
-0.15549831092357635,
0.3119681179523468,
0.05868806689977646,
0.022589055821299553,
0.2661924362182617,
-0.14023949205875397,
-0.013808484189212322,
0.271019846200943,
-0.6992923617362976,
0.32203808426856995,
-0.05800218880176544,
-0.007077195215970278,
-0.07017601281404495,
0.14338652789592743,
0.3351227045059204,
-0.048630986362695694,
-0.0925268903374672,
0.37081626057624817,
0.2820999026298523,
0.11384639143943787,
-0.038767147809267044,
0.28243178129196167,
0.263043075799942,
-0.20303627848625183,
0.029050424695014954,
-0.11952690780162811,
-0.2782039940357208,
-0.509021520614624,
-0.12482567876577377,
0.22474980354309082,
0.2519870102405548,
-0.2572542130947113,
-0.11204155534505844,
0.07333382219076157,
-0.2260330319404602,
0.014789901673793793,
-0.07448892295360565,
0.24702827632427216,
0.060170240700244904,
0.3175559937953949,
0.02030090242624283,
0.2700636088848114,
-0.17041000723838806,
-0.3315722346305847,
-0.017188863828778267,
0.12620262801647186,
-0.38910701870918274,
-0.08805858343839645,
0.5497086048126221,
-0.12397392839193344,
0.16717347502708435,
0.1720091700553894,
-0.12294574081897736,
-0.23912663757801056,
-0.0686037540435791,
-0.2752363085746765,
0.04806170612573624,
0.2800689935684204,
0.11434505134820938,
0.1900821179151535,
0.31806182861328125,
-0.1938025951385498,
-0.13557995855808258,
0.25221046805381775,
-0.3859456479549408,
-0.232406884431839,
-0.19545383751392365,
0.09037859737873077,
-0.321360319852829,
0.06263120472431183,
-0.3915348947048187,
0.015699001029133797,
0.04577179625630379,
-0.2120893895626068,
-0.18083232641220093,
-0.309297651052475,
-0.3017325699329376,
-0.24161803722381592,
0.015050405636429787,
0.43999427556991577,
-0.6876299977302551,
0.202816441655159,
-0.1004164069890976,
0.06042241305112839,
0.1709204763174057,
0.27729013562202454,
-0.2981637120246887,
0.10156571865081787,
-0.28448954224586487,
0.07900654524564743,
0.23857997357845306,
-0.26470625400543213,
-0.33504486083984375,
0.3595808446407318,
-0.07177238166332245,
-0.08799952268600464,
0.08507650345563889,
0.0455220527946949,
0.3238101005554199,
0.007184056099504232,
-0.14625521004199982,
0.3527291417121887,
-0.004706704523414373,
0.11352627724409103,
-0.23844046890735626,
-0.19017373025417328,
0.2679089605808258,
0.25764036178588867,
-0.0618821419775486,
0.11297841370105743,
0.29572364687919617,
-0.4787018895149231,
0.3347390592098236,
-0.10288700461387634,
0.22260040044784546,
0.13314321637153625,
0.15726782381534576,
0.009999564848840237,
0.21815720200538635,
0.054248057305812836,
-0.6148219108581543,
0.1521192491054535,
0.23156426846981049,
-0.07915206253528595,
-0.2202429622411728,
-0.0017674315022304654,
-0.39308106899261475,
-0.030565232038497925,
-0.2295912355184555,
0.02276718057692051,
-0.019513515755534172,
0.08060785382986069,
0.06079200282692909,
-0.12569144368171692,
-0.04733702540397644,
0.3860824406147003,
-0.26775795221328735,
0.01733766309916973,
-0.4094599485397339,
0.3063094913959503,
0.09020659327507019,
-0.03824785351753235,
0.24897921085357666,
0.08637381345033646,
0.2496584802865982,
-0.14421792328357697,
-0.21049867570400238,
0.2916676104068756,
0.28535616397857666,
0.047160014510154724,
0.06955281645059586,
-0.27084681391716003,
0.09424757957458496,
-0.21336624026298523,
0.03224663808941841,
0.22618450224399567,
0.3391342759132385,
-0.03131631389260292,
-0.5053216218948364,
0.397185355424881,
-0.3178344666957855,
0.24370120465755463,
-0.1135057881474495,
0.12336097657680511,
0.34535685181617737,
-0.0892554447054863,
-0.08024478703737259,
-0.0036901666317135096,
0.11090520769357681,
0.14021725952625275,
0.25567084550857544,
0.1141963005065918,
-0.24726134538650513,
-0.17464031279087067,
0.18617472052574158,
0.1400505155324936,
-0.1960378736257553,
0.21338120102882385,
0.01540251076221466,
-0.1066109836101532,
0.3125394284725189,
0.2956344783306122,
0.4571995735168457,
0.08773323893547058,
-0.2595730423927307,
0.005609119776636362,
-0.02133232168853283,
-0.26130199432373047,
0.08915689587593079,
-0.007395451422780752,
0.061297591775655746,
0.26247191429138184,
0.28427812457084656,
0.09769468009471893,
-0.17619819939136505,
-0.14395637810230255,
0.18582652509212494,
0.24964380264282227,
-0.5318593382835388,
0.04522683843970299,
-0.36094820499420166,
0.17624959349632263,
-0.27297255396842957,
0.010298390872776508,
0.04269127920269966,
-0.2635090947151184,
-0.3743281066417694,
0.25036388635635376,
-0.13243605196475983,
0.08167096227407455,
-0.13430748879909515,
0.20722123980522156,
0.046717893332242966,
-0.22974541783332825,
0.15254640579223633,
-0.2799641788005829,
-0.3581959903240204,
0.006214347667992115,
0.1478463113307953,
0.06759434938430786,
-0.06009334325790405,
0.06563214957714081,
-0.021607229486107826,
-0.21027874946594238,
-0.060166135430336,
0.12729871273040771,
0.0478493869304657,
0.10656626522541046,
0.10829351097345352,
-0.15273499488830566,
-0.10618102550506592,
-0.19494491815567017,
0.2128024846315384,
0.04813994839787483,
-0.03276650980114937,
0.3588489294052124,
0.20197953283786774,
-0.15898095071315765,
-0.20234625041484833,
-0.6301295161247253,
-0.40128955245018005,
-0.29431721568107605,
0.11711883544921875,
-0.1430848091840744,
0.02972855605185032,
0.14408165216445923,
0.20273327827453613,
0.019265156239271164,
0.21478527784347534,
-0.08374541997909546,
-0.04464678838849068,
-0.20412322878837585,
0.5625197887420654,
-0.31793999671936035,
-0.42710667848587036,
0.13902059197425842,
-0.08060530573129654,
0.08827996999025345,
0.3525591790676117,
-0.4951309859752655,
0.18780368566513062,
-0.13956618309020996,
0.05355733633041382,
0.04825441166758537,
0.052081149071455,
0.015583669766783714,
-0.08644813299179077,
0.0881129801273346,
-0.0037085656076669693,
-0.18900902569293976,
0.19556228816509247,
0.035877712070941925,
0.0729665532708168,
0.24295760691165924,
0.47479286789894104,
-0.24802225828170776,
0.5842324495315552,
0.009763929061591625,
0.033932771533727646,
0.3762376606464386,
-0.10059214383363724,
0.33219224214553833,
0.1103125736117363,
-0.25103795528411865,
0.11598160117864609,
-0.07861560583114624,
-0.2959708869457245,
0.3519628345966339,
-0.06789195537567139,
-0.15857407450675964,
-0.14520591497421265,
0.21504949033260345,
-0.2901727557182312,
-0.20356929302215576,
0.21120458841323853,
-0.0854678824543953,
0.1272020787000656,
0.059578001499176025,
0.054494790732860565,
0.01788482256233692,
-0.3537166714668274,
-0.12555164098739624,
0.11143780499696732,
0.17168572545051575,
-0.05535951256752014,
0.06297001987695694,
-0.19665829837322235,
-0.3097870945930481,
0.21106596291065216,
-0.02790580689907074,
0.5248820185661316,
0.025606753304600716,
-0.01790262944996357,
0.04131804406642914,
0.14298595488071442,
0.554298460483551,
-0.18223100900650024,
0.10750285536050797,
0.16931894421577454,
-0.043938133865594864,
-0.2650451064109802,
-0.2759803235530853,
-0.08676967769861221,
0.28657007217407227,
0.0068581425584852695,
0.27739986777305603,
-0.0021763728000223637,
-0.060657694935798645,
0.34534385800361633,
0.1594412475824356,
-0.22052717208862305,
-0.433566689491272,
-0.1399964541196823,
-0.027331676334142685,
-0.14274097979068756,
-0.28975680470466614,
0.00661266315728426,
0.20676836371421814,
-0.26757708191871643,
0.1027107760310173,
-0.1962900161743164,
-0.13300807774066925,
0.24514545500278473,
0.11477028578519821,
0.23439374566078186,
0.11040768027305603,
0.16112259030342102,
0.11835962533950806,
0.22570157051086426,
0.0926596075296402,
0.7872275710105896,
-0.1599138230085373,
-0.7599297165870667,
0.29730382561683655,
-0.45187193155288696,
0.361905574798584,
-0.0013812418328598142,
-0.2888435125350952,
-0.0669872984290123,
-0.21236871182918549,
-0.13933715224266052,
-0.15125717222690582,
-0.10442830622196198,
0.025481246411800385,
-0.007115052547305822,
-0.06714769452810287,
-0.49198272824287415,
0.5569453835487366,
-0.14003799855709076,
-0.09847834706306458,
0.04691727086901665,
-0.14533771574497223,
-0.31267106533050537,
0.5209848880767822,
-0.12842635810375214,
0.5789877772331238,
-0.1519060879945755,
-0.005451209843158722,
0.2000332474708557,
-0.13952599465847015,
0.4839042127132416,
-0.2072644978761673,
-0.012483970262110233,
-0.4585462212562561,
-0.03150101751089096,
-0.15262362360954285,
-0.03458090499043465,
0.14538365602493286,
0.6091598868370056,
-0.15397916734218597,
0.3765081465244293,
-0.013852398842573166,
0.32226765155792236,
0.06541937589645386,
0.2620982825756073,
0.31556594371795654,
-0.2835988402366638,
-0.33973971009254456,
0.09222928434610367,
-0.19655483961105347,
0.004990045912563801,
0.10007666796445847,
-0.07064376026391983,
-0.241342693567276,
-0.053526513278484344,
-0.29767099022865295,
0.383169561624527,
0.029288364574313164,
0.1549089252948761,
0.11623404175043106,
-0.518808901309967,
0.5603199601173401,
0.4401644170284271,
0.1686893105506897,
-0.025227241218090057,
-0.18607115745544434,
0.046344347298145294,
-0.04809391126036644,
0.027810482308268547,
-0.11022248864173889,
0.09821295738220215,
-0.02376003935933113,
0.15857887268066406,
-0.16911828517913818,
0.17712892591953278,
-0.1403253674507141,
-0.11487247794866562,
0.3304222524166107,
0.27385175228118896,
0.18671561777591705,
-0.3853923976421356,
-0.3837367594242096,
-0.21517132222652435,
0.11291491240262985,
-0.039834294468164444,
0.050412245094776154,
-0.02966742403805256,
0.11274951696395874,
-0.030191661790013313,
0.14326854050159454,
-0.3665797710418701,
0.14471323788166046,
0.2785317301750183,
-0.1977972686290741,
0.0565507709980011,
0.4927227795124054,
0.4739423096179962,
-0.07418721169233322,
-0.15002180635929108,
-0.028087323531508446,
0.06929704546928406,
-0.5587100386619568,
0.07505757361650467,
0.12464098632335663,
0.2721291184425354,
0.05744272097945213,
0.16891948878765106,
0.15497957170009613,
-0.1622062772512436,
0.09989369660615921,
-0.7103561162948608,
-0.09169009327888489,
-0.06163476034998894,
-0.15801598131656647,
-0.011192211881279945,
0.11620543897151947,
-0.3119657039642334,
-0.01656927913427353,
-0.05046035349369049,
-0.1851053386926651,
0.04790757596492767,
-0.02398570440709591,
0.08720452338457108,
0.27719080448150635,
0.22180309891700745,
-0.22692349553108215,
-0.29908451437950134,
0.018353216350078583,
0.0005216144490987062,
0.05550612881779671,
-0.13081446290016174,
-0.1846289187669754,
0.19107447564601898,
0.009025545790791512,
0.05846286937594414,
-0.3238878846168518,
-0.27426889538764954,
-0.1618223488330841,
-0.14653432369232178,
0.07603322714567184,
0.22728542983531952,
-0.0637924000620842,
0.48463594913482666,
-0.08365727216005325,
-0.04169733449816704,
-0.4219719171524048,
0.2852170765399933,
-0.2585066258907318,
0.21185627579689026,
0.0728895291686058,
0.24973051249980927,
0.1491450071334839,
0.09336887300014496,
-0.26186248660087585,
-0.04941626638174057,
-0.2759157419204712,
-0.064588762819767,
0.2769888639450073,
-0.37561100721359253,
0.21401216089725494,
0.16971498727798462,
0.35236841440200806,
0.30729860067367554,
-0.12142077833414078,
-0.15462908148765564,
0.19085636734962463,
0.09321127086877823,
-0.3811013400554657,
0.15892505645751953,
0.09288637340068817,
0.3418720066547394,
-0.08893217891454697,
0.1998250037431717,
0.10193666815757751,
-0.2631264328956604,
-0.05588163807988167,
0.13679474592208862,
0.6348990201950073,
0.03209499269723892,
0.06737815588712692,
0.32449448108673096,
0.010559874586760998,
0.11288439482450485,
0.11044664680957794,
0.020756669342517853,
0.09668001532554626,
0.49508610367774963,
-0.11855603009462357,
-0.11330457031726837,
0.3128223717212677,
0.32235589623451233,
-0.13487742841243744,
-0.6856028437614441,
0.2883695662021637,
0.3393711745738983,
-0.16297616064548492,
-0.022608347237110138,
0.18497802317142487,
0.6478064060211182,
-0.04297908768057823,
0.05827722325921059,
-0.26279357075691223,
0.04049148038029671,
0.12007125467061996,
-0.08294286578893661,
-0.26606670022010803,
-0.12769222259521484,
-0.38508838415145874,
0.3157814145088196,
-0.20508776605129242,
0.03435996174812317,
0.4355420768260956,
0.2526460289955139,
-0.05780663713812828,
-0.5292370915412903,
0.20771215856075287,
0.22963015735149384,
0.0024830668698996305,
-0.27342337369918823,
0.15712735056877136,
-0.025715744122862816,
0.013247243128716946,
0.26183465123176575,
-0.10363559424877167,
0.3829801380634308,
0.5243800282478333,
-0.009979303926229477,
-0.26228848099708557,
-0.1545640230178833,
-0.07804466784000397,
-0.10297505557537079,
0.4679356515407562,
0.034628260880708694,
0.2928476631641388,
0.3257479667663574,
0.10191512852907181,
0.016421042382717133,
0.3097042441368103,
0.1844927817583084,
0.11994389444589615,
-0.25521421432495117,
0.028373168781399727,
0.13635052740573883,
-0.03230501711368561,
-0.12545602023601532,
-0.12303975224494934,
-0.19665294885635376,
-0.1693418025970459,
0.47452738881111145,
0.21436235308647156,
0.27234047651290894,
0.04608485847711563,
0.002491517225280404,
-0.1578918993473053,
0.3675532042980194,
0.47694486379623413,
0.12467986345291138,
-0.4641589820384979,
-0.08050266653299332,
-0.8023313879966736,
-0.038199443370103836,
-0.17524634301662445,
-0.13339172303676605,
0.07959618419408798,
0.2359376847743988,
0.20381757616996765,
0.29185524582862854,
-0.23774607479572296,
0.16821932792663574,
-0.11486384272575378,
0.20356301963329315,
-0.20204249024391174,
-0.18423010408878326,
-0.16824813187122345,
0.09812196344137192,
-0.10451109707355499,
-0.46578213572502136,
0.06970811635255814,
0.21552400290966034,
-0.11859485507011414,
-0.19406357407569885,
-0.05902378261089325,
0.004515945911407471,
-0.16093429923057556,
0.2894136607646942,
0.05641401931643486,
0.4611915349960327,
0.020122282207012177,
0.2057642936706543,
-0.48075807094573975,
-0.24390587210655212,
-0.1527058184146881,
0.28661733865737915,
-0.09249159693717957,
0.40687990188598633,
-0.3040655255317688,
0.11966706812381744,
-0.27189379930496216,
0.07069315761327744,
-0.0065749697387218475,
0.17312684655189514,
-0.22512385249137878,
0.1730985939502716,
-0.1398610770702362,
0.1454409509897232,
-0.15900260210037231,
-0.03544887900352478,
-0.15135833621025085,
0.2548291087150574,
-0.10246673971414566,
-0.2797606885433197,
0.23722366988658905,
-0.3887587785720825,
-0.27717024087905884,
0.12282343208789825,
0.1983719915151596,
0.048045847564935684,
0.08207786083221436,
-0.49145033955574036,
0.05802389234304428,
0.3590138852596283,
-0.15768824517726898,
-0.05866990238428116,
0.07710833102464676,
0.013606976717710495,
0.04473794996738434,
-0.13282275199890137,
0.18173858523368835,
0.2837624251842499,
-0.2722814977169037,
-0.17856702208518982,
-0.369584321975708
] |
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.0319090262055397,
0.09989099204540253,
0.0016062395879998803,
0.3416562080383301,
0.22531181573867798,
0.18575182557106018,
0.3781752586364746,
0.28434982895851135,
0.3076331913471222,
-0.004604274872690439,
-0.07363000512123108,
0.33380210399627686,
-0.12021186947822571,
-0.036175332963466644,
-0.21309280395507812,
-0.05871220678091049,
0.0360809788107872,
0.07716234028339386,
-0.37719735503196716,
0.008843003772199154,
-0.36494773626327515,
0.3057536780834198,
-0.32540759444236755,
-0.0012914976105093956,
-0.08240237832069397,
0.21794340014457703,
-0.07449227571487427,
0.3262184262275696,
-0.10256695002317429,
-0.38989827036857605,
0.48214781284332275,
-0.08005905151367188,
0.4992658197879791,
0.220185324549675,
-0.0001179857790702954,
0.012348586693406105,
0.3326275944709778,
-0.07379692792892456,
-0.28367769718170166,
-0.5951533317565918,
0.013968716375529766,
-0.5699071884155273,
0.3534558117389679,
-0.11556826531887054,
-0.038758955895900726,
0.06179860234260559,
-0.07087419927120209,
-0.3653351366519928,
0.35879218578338623,
0.5203019380569458,
0.19959193468093872,
-0.20320609211921692,
-0.08116860687732697,
-0.011845746077597141,
0.5204196572303772,
0.06102405861020088,
-0.12595824897289276,
0.2708446681499481,
0.0428972989320755,
-0.2233496457338333,
-0.09642011672258377,
0.09515635669231415,
-0.11263198405504227,
0.2678711414337158,
0.24688825011253357,
0.23863933980464935,
-0.15173454582691193,
-0.1456526666879654,
0.051876723766326904,
0.1153152659535408,
0.6635107398033142,
-0.13551382720470428,
-0.17673008143901825,
-0.10625552386045456,
-0.007009961176663637,
-0.15682640671730042,
0.34229597449302673,
0.3546646237373352,
-0.01020088978111744,
0.324220210313797,
-0.02503199875354767,
0.030125077813863754,
-0.2691827118396759,
0.18868909776210785,
0.1149086058139801,
0.027992619201540947,
-0.15706686675548553,
0.30572086572647095,
0.11489234119653702,
0.008692576549947262,
0.2700325846672058,
-0.08699392527341843,
-0.058007609099149704,
0.21134206652641296,
-0.6860405802726746,
0.3148466944694519,
-0.10570400953292847,
-0.01314095314592123,
-0.035592690110206604,
0.21314209699630737,
0.28882884979248047,
-0.01680315099656582,
-0.08778595179319382,
0.3701075613498688,
0.27307575941085815,
0.011933818459510803,
-0.013130427338182926,
0.2724967896938324,
0.2526117265224457,
-0.20419524610042572,
0.06076967716217041,
-0.15655358135700226,
-0.297844260931015,
-0.5129750967025757,
-0.07289659231901169,
0.14862556755542755,
0.24865496158599854,
-0.19944003224372864,
-0.1814739853143692,
0.12422344088554382,
-0.25174152851104736,
-0.017006203532218933,
-0.11777551472187042,
0.2602039873600006,
0.06092114374041557,
0.3025762736797333,
0.06452547758817673,
0.2838420271873474,
-0.11958342790603638,
-0.38357871770858765,
-0.024995464831590652,
0.10812913626432419,
-0.38422441482543945,
-0.07252136617898941,
0.5409688353538513,
-0.17913883924484253,
0.15886040031909943,
0.2351217120885849,
-0.13585935533046722,
-0.30581092834472656,
-0.03467702865600586,
-0.28707268834114075,
0.049508754163980484,
0.26140454411506653,
0.07527938485145569,
0.2058998942375183,
0.3096892237663269,
-0.21997910737991333,
-0.09281787276268005,
0.31826040148735046,
-0.42904195189476013,
-0.1496894508600235,
-0.14940251410007477,
0.1122686117887497,
-0.2766396105289459,
0.019795726984739304,
-0.3394754230976105,
0.09940875321626663,
0.039933715015649796,
-0.2738417685031891,
-0.18359392881393433,
-0.2900148332118988,
-0.279431015253067,
-0.257627010345459,
0.010821668431162834,
0.41101258993148804,
-0.759864091873169,
0.20141452550888062,
-0.03856124356389046,
0.06350596994161606,
0.13213896751403809,
0.2012668251991272,
-0.23806926608085632,
-0.008503410033881664,
-0.2470523864030838,
0.11706157773733139,
0.20014162361621857,
-0.2251778542995453,
-0.369526207447052,
0.2039727419614792,
-0.027752086520195007,
-0.062138594686985016,
0.12563276290893555,
0.07675650715827942,
0.335622102022171,
-0.0383710078895092,
-0.15934956073760986,
0.2200727015733719,
0.020736919716000557,
0.040536198765039444,
-0.251565158367157,
-0.20807068049907684,
0.2807468771934509,
0.21861103177070618,
-0.017314324155449867,
0.0922422707080841,
0.23007798194885254,
-0.5964018106460571,
0.32891812920570374,
-0.0431944914162159,
0.25862380862236023,
0.07819224148988724,
0.2754145562648773,
0.06685787439346313,
0.27698659896850586,
0.037710413336753845,
-0.5350417494773865,
0.16199123859405518,
0.4143815040588379,
-0.180388942360878,
-0.15393565595149994,
-0.04273415356874466,
-0.3967541456222534,
-0.026821162551641464,
-0.15421265363693237,
-0.03629348427057266,
0.021224673837423325,
0.0724719688296318,
-0.02122196927666664,
-0.1658158153295517,
-0.10910827666521072,
0.395593523979187,
-0.3020710349082947,
0.06719186156988144,
-0.36812886595726013,
0.28369301557540894,
0.11721936613321304,
-0.042960308492183685,
0.2385157197713852,
0.04905286431312561,
0.29824167490005493,
-0.05326524376869202,
-0.14859743416309357,
0.2183762937784195,
0.2961486577987671,
-0.023737434297800064,
0.08416251838207245,
-0.2446897178888321,
0.05380626395344734,
-0.23915275931358337,
-0.002259157132357359,
0.2839282155036926,
0.3712148070335388,
-0.08527059853076935,
-0.5303788185119629,
0.33053871989250183,
-0.2939952313899994,
0.2343989759683609,
-0.1652851402759552,
0.15702815353870392,
0.3054008483886719,
-0.0682469829916954,
-0.1116519421339035,
0.00743594765663147,
0.10652158409357071,
0.015338059514760971,
0.25190427899360657,
0.11618198454380035,
-0.2326785773038864,
-0.14204032719135284,
0.1057816818356514,
0.1679905503988266,
-0.20436805486679077,
0.2531196177005768,
-0.07566647976636887,
-0.11570826172828674,
0.32295241951942444,
0.29244115948677063,
0.4490133821964264,
0.1327141374349594,
-0.2260429859161377,
-0.007403269410133362,
0.015965642407536507,
-0.23071560263633728,
0.09595103561878204,
-0.0015270030125975609,
0.010451827198266983,
0.21426182985305786,
0.24928510189056396,
0.10785374790430069,
-0.12445970624685287,
-0.09465430676937103,
0.17808598279953003,
0.2668474018573761,
-0.5732170343399048,
0.027430642396211624,
-0.26530203223228455,
0.27539825439453125,
-0.2149258404970169,
-0.03022897057235241,
0.13303230702877045,
-0.2786576747894287,
-0.31229573488235474,
0.3066863417625427,
-0.09250041842460632,
0.06004255637526512,
-0.18417145311832428,
0.22455941140651703,
0.04317476600408554,
-0.17017506062984467,
0.035923443734645844,
-0.2332858443260193,
-0.32391735911369324,
0.023443028330802917,
0.11936299502849579,
0.021177012473344803,
-0.009589899331331253,
0.1299155056476593,
0.024502277374267578,
-0.2708142101764679,
-0.061675842851400375,
0.08173975348472595,
0.017640449106693268,
0.10041821002960205,
0.11052820086479187,
-0.1548154056072235,
-0.08871108293533325,
-0.11596287786960602,
0.20299603044986725,
0.04291980341076851,
0.04560420289635658,
0.3967781662940979,
0.2087474912405014,
-0.14951996505260468,
-0.14101485908031464,
-0.6391361355781555,
-0.3571050465106964,
-0.2650282680988312,
0.0800265222787857,
-0.10713107883930206,
-0.027158115059137344,
0.11395229399204254,
0.2778877913951874,
-0.029941631481051445,
0.19760066270828247,
-0.07529730349779129,
-0.1388438194990158,
-0.20923134684562683,
0.5889596939086914,
-0.23815999925136566,
-0.3440219759941101,
0.2079726755619049,
-0.0778595507144928,
0.05026824772357941,
0.35340484976768494,
-0.45124122500419617,
0.1194557473063469,
-0.06696493178606033,
0.05153923109173775,
-0.028497854247689247,
0.08803244680166245,
0.020370034500956535,
-0.05610986053943634,
0.07695353031158447,
-0.05872727930545807,
-0.1870899647474289,
0.18896199762821198,
-0.0395994670689106,
0.04704748094081879,
0.21589568257331848,
0.48718947172164917,
-0.17796635627746582,
0.5998916625976562,
0.1483033448457718,
0.05945057049393654,
0.3233928978443146,
-0.09910836070775986,
0.31913381814956665,
0.18644548952579498,
-0.2664169371128082,
0.09956520050764084,
-0.10268362611532211,
-0.25619298219680786,
0.3076231777667999,
-0.002168260281905532,
-0.13401256501674652,
-0.08335962146520615,
0.28814586997032166,
-0.31943097710609436,
-0.1619987040758133,
0.17128999531269073,
-0.061139170080423355,
0.04994349181652069,
0.05612226948142052,
0.09496662020683289,
0.019464092329144478,
-0.29953533411026,
-0.11098353564739227,
0.0919155478477478,
0.1619725227355957,
-0.07992280274629593,
0.08964916318655014,
-0.17468208074569702,
-0.3334067165851593,
0.23114363849163055,
-0.10662271827459335,
0.4669587314128876,
0.07669677585363388,
-0.03148547559976578,
0.06395871192216873,
0.17969626188278198,
0.6740601062774658,
-0.26986122131347656,
0.013666116632521152,
0.14873111248016357,
0.0062908995896577835,
-0.2670133113861084,
-0.23154662549495697,
-0.08079178631305695,
0.2888071537017822,
0.01714446395635605,
0.23550835251808167,
-0.05774778500199318,
0.01897970587015152,
0.38669782876968384,
0.1330912858247757,
-0.16930700838565826,
-0.42484840750694275,
-0.11157455295324326,
-0.09224560111761093,
-0.13780732452869415,
-0.27855488657951355,
0.07878978550434113,
0.09517546743154526,
-0.2379315346479416,
0.09147215634584427,
-0.21595244109630585,
-0.1552426517009735,
0.30932727456092834,
0.10340066999197006,
0.2509729564189911,
0.06630950421094894,
0.18352364003658295,
0.20886202156543732,
0.16564853489398956,
0.15422417223453522,
0.7836301922798157,
-0.20608116686344147,
-0.8606125116348267,
0.1866774559020996,
-0.4865390658378601,
0.35200008749961853,
-0.03790508583188057,
-0.3236553966999054,
-0.03845054656267166,
-0.2536812126636505,
-0.1381227672100067,
-0.14362403750419617,
-0.11357748508453369,
0.06695099920034409,
0.020216863602399826,
-0.15113897621631622,
-0.5407761931419373,
0.5842851996421814,
-0.0988449975848198,
-0.14325597882270813,
0.1049458459019661,
-0.08336186408996582,
-0.3322688043117523,
0.44148996472358704,
-0.1370900720357895,
0.6065697073936462,
-0.09181681275367737,
-0.01831795834004879,
0.19568222761154175,
-0.19379578530788422,
0.46730491518974304,
-0.24046042561531067,
-0.048380717635154724,
-0.4810395836830139,
-0.07664670795202255,
-0.13388033211231232,
0.01813504472374916,
0.11375515162944794,
0.5482634902000427,
-0.2174833118915558,
0.37185898423194885,
-0.05229760706424713,
0.3556438684463501,
0.11375819891691208,
0.17656391859054565,
0.2892502546310425,
-0.2167295664548874,
-0.21155111491680145,
0.13270321488380432,
-0.1762225329875946,
-0.04967751353979111,
0.09187236428260803,
0.04147260636091232,
-0.24310381710529327,
-0.058654699474573135,
-0.34831926226615906,
0.28332260251045227,
-0.03964672610163689,
0.08942525833845139,
0.16152271628379822,
-0.5426154136657715,
0.5322104096412659,
0.41864028573036194,
0.1603856384754181,
-0.06920045614242554,
-0.1993330419063568,
0.08570583164691925,
-0.014980757609009743,
0.039660703390836716,
-0.11634977161884308,
0.006452296860516071,
-0.07936398684978485,
0.21091771125793457,
-0.20094703137874603,
0.26346129179000854,
-0.07819225639104843,
-0.08901984989643097,
0.296218603849411,
0.2987450957298279,
0.20946316421031952,
-0.439155250787735,
-0.41871970891952515,
-0.22948703169822693,
0.11302869021892548,
-0.10193784534931183,
0.06604360789060593,
0.014457005076110363,
0.08063670247793198,
0.015248475596308708,
0.08450392633676529,
-0.3320158123970032,
0.16600005328655243,
0.22396135330200195,
-0.22008463740348816,
0.06753356009721756,
0.4705265462398529,
0.4601636826992035,
-0.11512581259012222,
-0.16585473716259003,
0.011858213692903519,
0.06889470666646957,
-0.562055766582489,
0.088204525411129,
0.14426632225513458,
0.26554638147354126,
0.11648909002542496,
0.1526084989309311,
0.15905387699604034,
-0.21411994099617004,
0.09945813566446304,
-0.6414240002632141,
-0.02828911878168583,
-0.06874842941761017,
-0.11283518373966217,
0.019198784604668617,
0.04541478678584099,
-0.4401467740535736,
-0.06793460994958878,
-0.04279176890850067,
-0.20415475964546204,
0.10936055332422256,
0.08375009149312973,
0.06770393252372742,
0.2318921834230423,
0.28308045864105225,
-0.27032899856567383,
-0.30738770961761475,
0.02743718773126602,
0.03350333869457245,
0.07874990999698639,
-0.15344585478305817,
-0.2020769864320755,
0.16729789972305298,
0.007880541495978832,
0.10117284953594208,
-0.2869083285331726,
-0.22970879077911377,
-0.21804997324943542,
-0.15983012318611145,
0.056555308401584625,
0.2896662652492523,
-0.02890506386756897,
0.4706903100013733,
-0.04129283130168915,
-0.111732117831707,
-0.43920019268989563,
0.2942405343055725,
-0.2483569085597992,
0.19808292388916016,
0.09325210005044937,
0.2220344841480255,
0.19993285834789276,
0.12841466069221497,
-0.18480990827083588,
0.02016732096672058,
-0.18509529531002045,
-0.12822651863098145,
0.2976299822330475,
-0.3851635456085205,
0.2280169576406479,
0.2646118402481079,
0.3228785991668701,
0.3634850084781647,
-0.12321880459785461,
-0.07282079756259918,
0.1645079404115677,
0.13821978867053986,
-0.4042392075061798,
0.17504212260246277,
0.10528165847063065,
0.34100696444511414,
-0.06519120186567307,
0.23658643662929535,
-0.0005587507621385157,
-0.22729423642158508,
0.013796301558613777,
0.1443222612142563,
0.6307865977287292,
-0.017970629036426544,
0.07167857885360718,
0.2516496479511261,
0.031749479472637177,
0.08588431030511856,
0.1555887907743454,
-0.026995297521352768,
0.0680793896317482,
0.48352715373039246,
-0.12092825770378113,
-0.04944494366645813,
0.3966091573238373,
0.2534799575805664,
-0.21152324974536896,
-0.6216854453086853,
0.2509860694408417,
0.3503726124763489,
-0.24134503304958344,
-0.09649187326431274,
0.19051292538642883,
0.7036426663398743,
-0.0018416873645037413,
0.08931765705347061,
-0.2806842029094696,
-0.07700242847204208,
0.11891503632068634,
-0.12772013247013092,
-0.2567799985408783,
-0.1458921730518341,
-0.38347721099853516,
0.26250118017196655,
-0.2112940400838852,
-0.02720123529434204,
0.435569703578949,
0.20899473130702972,
-0.07398030906915665,
-0.6115413904190063,
0.12319047003984451,
0.2633069157600403,
0.029167158529162407,
-0.28284478187561035,
0.1036590188741684,
-0.031964804977178574,
0.00028633291367441416,
0.3149215281009674,
-0.10493993014097214,
0.43093639612197876,
0.4255013167858124,
0.044236667454242706,
-0.2811282277107239,
-0.2040177285671234,
-0.07563480734825134,
-0.12835237383842468,
0.49427729845046997,
0.051220327615737915,
0.2805722951889038,
0.23550494015216827,
0.11054414510726929,
-0.017154965549707413,
0.3259223699569702,
0.1368456333875656,
0.12841114401817322,
-0.4042659103870392,
-0.03277674317359924,
0.06839857995510101,
-0.09034581482410431,
-0.10304281860589981,
-0.2066887468099594,
-0.1445634365081787,
-0.1984061896800995,
0.4890686869621277,
0.204165518283844,
0.24078619480133057,
0.10666212439537048,
0.017576616257429123,
-0.14677934348583221,
0.20297986268997192,
0.43590959906578064,
0.07238969951868057,
-0.47630181908607483,
-0.03622685745358467,
-0.8368654847145081,
-0.03885774686932564,
-0.24050183594226837,
-0.14943762123584747,
0.030413389205932617,
0.210205540060997,
0.26513752341270447,
0.3032230734825134,
-0.13056477904319763,
0.16356809437274933,
-0.02958238124847412,
0.28318554162979126,
-0.17253898084163666,
-0.19707991182804108,
-0.12472227960824966,
0.11233985424041748,
-0.07597853243350983,
-0.4329157769680023,
0.03309290111064911,
0.2475735992193222,
-0.10905878245830536,
-0.19600273668766022,
-0.05958316847681999,
0.06025473028421402,
-0.21960464119911194,
0.38122323155403137,
0.03399413451552391,
0.431474506855011,
0.01737803779542446,
0.29552510380744934,
-0.4949624240398407,
-0.22241108119487762,
-0.19638435542583466,
0.21988379955291748,
-0.13564684987068176,
0.4301295578479767,
-0.3860017657279968,
0.05600876361131668,
-0.17077839374542236,
0.003430799348279834,
0.0037432683166116476,
0.18537719547748566,
-0.3079567551612854,
0.2642033100128174,
-0.10825927555561066,
0.217962384223938,
-0.1841495782136917,
-0.06777242571115494,
-0.1615975946187973,
0.22488930821418762,
-0.07292810827493668,
-0.2904009521007538,
0.24746713042259216,
-0.3145463764667511,
-0.26294973492622375,
0.061653055250644684,
0.23806428909301758,
0.12330128997564316,
0.11695999652147293,
-0.5120444893836975,
-0.028058333322405815,
0.35706302523612976,
-0.13960051536560059,
-0.09152629971504211,
0.1276017427444458,
0.04241689667105675,
0.06257326155900955,
-0.15652526915073395,
0.21580006182193756,
0.32221007347106934,
-0.23831696808338165,
-0.13074804842472076,
-0.38035309314727783
] |
Subsets and Splits