html_url
stringlengths 48
51
| title
stringlengths 5
268
| comment
stringlengths 70
51.8k
| body
stringlengths 0
29.8k
| comment_length
int64 16
1.52k
| text
stringlengths 164
54.1k
| embeddings
listlengths 768
768
|
|---|---|---|---|---|---|---|
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.49025747179985046,
0.22889535129070282,
-0.03322090581059456,
0.1388736218214035,
0.2363719940185547,
-0.08911546319723129,
0.548194169998169,
0.06737231463193893,
0.2955964505672455,
0.245051309466362,
-0.010175049304962158,
-0.06949297338724136,
0.027625979855656624,
0.38272860646247864,
-0.10571859776973724,
-0.021846523508429527,
-0.15303926169872284,
0.053661562502384186,
-0.177228644490242,
0.08962298184633255,
-0.1652289479970932,
-0.09213382005691528,
-0.4337230920791626,
-0.07040572166442871,
-0.01813340373337269,
-0.1504257619380951,
-0.08321274071931839,
0.21943867206573486,
-0.16612432897090912,
-0.2807517647743225,
0.23882178962230682,
0.16331425309181213,
0.22919708490371704,
0.4750611484050751,
-0.00010338118590880185,
0.026317689567804337,
0.008208850398659706,
-0.0013796574203297496,
-0.22697295248508453,
-0.4025883376598358,
-0.21580439805984497,
-0.5285042524337769,
0.17964887619018555,
-0.4550710916519165,
-0.20320385694503784,
-0.0582038015127182,
-0.07459720224142075,
-0.49292701482772827,
0.3164810836315155,
0.3498672842979431,
0.25937771797180176,
0.5757421255111694,
-0.13582664728164673,
-0.2754442095756531,
-0.16067858040332794,
-0.15148702263832092,
-0.14930489659309387,
0.4366161823272705,
-0.014577352441847324,
-0.00821248535066843,
-0.0025766724720597267,
0.09523352980613708,
-0.19615623354911804,
0.04138607904314995,
0.3163406550884247,
0.05868132412433624,
-0.10160985589027405,
-0.10181791335344315,
0.21980218589305878,
0.39308473467826843,
0.42616158723831177,
-0.27378031611442566,
-0.2470027655363083,
-0.3390038311481476,
-0.0023417952470481396,
-0.45674675703048706,
0.07884883880615234,
0.18367178738117218,
0.024228475987911224,
0.22488482296466827,
-0.3797202706336975,
-0.31823936104774475,
-0.3313252031803131,
0.16381382942199707,
-0.32146206498146057,
0.011170023120939732,
-0.2536787986755371,
0.06930176168680191,
-0.06124511733651161,
0.09133497625589371,
-0.17682074010372162,
-0.2851535379886627,
0.0739111453294754,
-0.061946894973516464,
-0.25945034623146057,
0.026855627074837685,
0.1183793842792511,
0.06844902783632278,
0.1312049925327301,
0.0652049109339714,
0.23980090022087097,
-0.018817607313394547,
0.07910728454589844,
0.04973505809903145,
0.4407638907432556,
0.2978353500366211,
0.007580154109746218,
-0.17687241733074188,
0.5290135741233826,
0.0910341814160347,
-0.024195069447159767,
-0.2989073693752289,
0.2565964460372925,
-0.3073078691959381,
0.13212120532989502,
0.013797931373119354,
0.36541005969047546,
-0.3048085868358612,
-0.15878812968730927,
-0.013998226262629032,
0.1392606645822525,
-0.04246346279978752,
0.16893251240253448,
0.25229257345199585,
-0.27162522077560425,
0.0451408214867115,
0.0697745606303215,
0.3969351351261139,
-0.29897838830947876,
-0.26576516032218933,
-0.05894835293292999,
-0.12591998279094696,
-0.11281045526266098,
0.0637713372707367,
0.17899075150489807,
0.00006028098505339585,
0.052043844014406204,
-0.04112875089049339,
0.24216565489768982,
-0.07350995391607285,
0.298147052526474,
-0.09517300873994827,
0.08237820863723755,
0.23530858755111694,
0.2750588357448578,
-0.08741786330938339,
0.07691660523414612,
-0.2003219723701477,
0.037915464490652084,
0.0387907400727272,
-0.14262722432613373,
-0.3582580089569092,
0.1706571727991104,
0.2765565514564514,
-0.6289306879043579,
-0.17536592483520508,
-0.3216257095336914,
0.03675909712910652,
-0.31611374020576477,
-0.1942732334136963,
-0.030854089185595512,
-0.06167073920369148,
-0.17800483107566833,
-0.24536623060703278,
0.3240111470222473,
0.5668392181396484,
-0.3839690089225769,
0.10502655059099197,
0.08440671116113663,
-0.1604350209236145,
-0.17819255590438843,
0.023399511352181435,
-0.31484049558639526,
0.5233696699142456,
-0.013056386262178421,
-0.30103757977485657,
0.5681840181350708,
-0.3550918698310852,
-0.2651608884334564,
0.24874624609947205,
-0.1917608678340912,
-0.10596553236246109,
-0.10386205464601517,
0.09011499583721161,
0.44007575511932373,
0.07504846155643463,
-0.08439473807811737,
0.28901100158691406,
-0.03517069295048714,
0.00046821916475892067,
-0.21861153841018677,
-0.23697832226753235,
0.1673179417848587,
0.2837589383125305,
0.255561888217926,
0.11290036886930466,
0.3047429025173187,
-0.19725729525089264,
0.03916330635547638,
-0.28212085366249084,
0.11916645616292953,
0.16548529267311096,
0.16972088813781738,
0.10239701718091965,
-0.04420771077275276,
-0.18281467258930206,
-0.4893229603767395,
0.27184224128723145,
0.04788287356495857,
0.15719573199748993,
-0.19920195639133453,
-0.13791584968566895,
-0.020389003679156303,
-0.18313157558441162,
-0.1769706904888153,
0.02728200890123844,
0.1410638689994812,
-0.11078683286905289,
0.17246286571025848,
0.12936845421791077,
-0.25989770889282227,
0.1782919466495514,
0.010788077488541603,
0.002460785675793886,
-0.13007381558418274,
0.2903403043746948,
-0.049237947911024094,
0.06459950655698776,
-0.02892947383224964,
0.08814623951911926,
0.05818071961402893,
-0.19372282922267914,
-0.11858390271663666,
0.5259699821472168,
-0.030091412365436554,
0.06162998080253601,
0.26878440380096436,
0.38185611367225647,
0.3064637780189514,
-0.012045707553625107,
0.5338498950004578,
-0.042726460844278336,
0.33343759179115295,
-0.09251014143228531,
-0.32285451889038086,
0.7542519569396973,
-0.1525757908821106,
0.21712730824947357,
0.10252596437931061,
0.018323862925171852,
0.25997984409332275,
0.0012789607280865312,
-0.40407776832580566,
-0.0359516441822052,
0.11844778060913086,
0.002245474373921752,
0.1811373382806778,
-0.08507420122623444,
-0.30645957589149475,
-0.015291750431060791,
0.33124682307243347,
-0.018839815631508827,
0.17788554728031158,
-0.06607397645711899,
-0.03048461675643921,
0.1306045949459076,
-0.08317333459854126,
0.08876907080411911,
0.5169294476509094,
0.250696063041687,
0.05195726826786995,
0.22982574999332428,
-0.031377922743558884,
-0.2562144100666046,
0.13256670534610748,
0.23213554918766022,
0.04924169182777405,
0.06843461096286774,
0.10048256069421768,
-0.02372709847986698,
-0.2063813954591751,
-0.052082836627960205,
-0.054718468338251114,
0.02327219396829605,
-0.2868100702762604,
0.2843017876148224,
-0.25166067481040955,
-0.01631527580320835,
0.047050997614860535,
0.11078935116529465,
-0.44840312004089355,
-0.20029908418655396,
0.06472032517194748,
0.07769684493541718,
-0.23188236355781555,
0.13361850380897522,
-0.12687072157859802,
0.3907518982887268,
-0.24031272530555725,
-0.23885862529277802,
0.2622438073158264,
-0.4872462749481201,
-0.12277662009000778,
0.10722845792770386,
0.30648189783096313,
0.1311020404100418,
0.5087969899177551,
0.021419592201709747,
-0.09715422987937927,
-0.33057475090026855,
-0.15721791982650757,
0.015584656968712807,
-0.0659356489777565,
0.27789098024368286,
0.08092081546783447,
0.05782044678926468,
-0.04538093879818916,
0.32483017444610596,
0.3875061869621277,
-0.33749282360076904,
0.20367573201656342,
0.1821804791688919,
-0.056487806141376495,
-0.09171297401189804,
-0.3432079255580902,
-0.43130427598953247,
-0.4415464997291565,
-0.3976590931415558,
0.1741941124200821,
0.03497721999883652,
-0.05292501300573349,
0.18278959393501282,
0.1519729495048523,
0.1029265820980072,
0.01667647622525692,
0.18532346189022064,
-0.18284328281879425,
-0.467452734708786,
0.17848578095436096,
-0.18080653250217438,
-0.6038365960121155,
0.29095134139060974,
0.23115701973438263,
0.15280170738697052,
0.3490702211856842,
-0.443671852350235,
-0.37656256556510925,
0.06810662895441055,
0.4156072437763214,
0.10857734084129333,
0.34366607666015625,
0.3434494137763977,
-0.07028094679117203,
-0.03828573599457741,
-0.09237952530384064,
0.09284014999866486,
0.17694739997386932,
0.058972183614969254,
-0.13427165150642395,
0.03360705077648163,
0.25433608889579773,
-0.029425302520394325,
0.37908193469047546,
-0.03754829242825508,
0.09186282753944397,
0.23645924031734467,
-0.1578766405582428,
0.6929185390472412,
-0.18278227746486664,
-0.1525171548128128,
-0.039478130638599396,
-0.053710922598838806,
-0.32495397329330444,
0.24910202622413635,
0.024523312225937843,
0.0068166484124958515,
-0.6647510528564453,
-0.04201912134885788,
-0.37441810965538025,
-0.4079524278640747,
0.09886401891708374,
0.12205962836742401,
0.36612221598625183,
0.11318623274564743,
0.27275481820106506,
-0.25758096575737,
-0.08721687644720078,
-0.0868242159485817,
0.2532123923301697,
0.07752871513366699,
-0.07182162255048752,
-0.24946102499961853,
0.02458612434566021,
-0.36491671204566956,
0.38078951835632324,
-0.14542928338050842,
0.19983284175395966,
-0.03463380038738251,
-0.023042190819978714,
-0.012694715522229671,
-0.1682800054550171,
0.343860387802124,
-0.31693902611732483,
-0.012937461957335472,
0.2967357933521271,
-0.06794058531522751,
-0.31901031732559204,
0.06565072387456894,
-0.2115929275751114,
-0.024580607190728188,
0.18760737776756287,
0.16614629328250885,
-0.1067497581243515,
-0.3034743368625641,
0.012663395144045353,
0.44400447607040405,
-0.293458491563797,
-0.19761604070663452,
-0.23405788838863373,
-0.16527122259140015,
-0.3448312282562256,
-0.00772026926279068,
-0.20222267508506775,
0.06967039406299591,
-0.12043395638465881,
0.1846710741519928,
-0.25448668003082275,
0.16877242922782898,
-0.0028259260579943657,
0.10414911061525345,
0.12790949642658234,
-0.2341519594192505,
0.2522117495536804,
0.254744291305542,
0.10652142763137817,
0.32324519753456116,
0.34943121671676636,
-0.053018778562545776,
-0.28627341985702515,
0.16815920174121857,
-0.016019592061638832,
0.3586540222167969,
0.3766711354255676,
-0.09663330763578415,
-0.14043739438056946,
0.13751950860023499,
0.274440735578537,
-0.4191710352897644,
-0.10130806267261505,
0.1470346301794052,
0.17960070073604584,
-0.11906580626964569,
-0.39145714044570923,
0.264113187789917,
0.10821373760700226,
-0.02581561915576458,
-0.028695419430732727,
0.13354386389255524,
-0.20774926245212555,
0.19106820225715637,
-0.11176469177007675,
0.7465303540229797,
-0.08776573091745377,
0.22428639233112335,
0.2535332441329956,
0.00007685820310143754,
0.4418722689151764,
-0.21456392109394073,
-0.039279378950595856,
-0.04110033065080643,
-0.2529999911785126,
-0.004827347584068775,
-0.08334281295537949,
0.4119873642921448,
0.00428161583840847,
-0.0889129713177681,
0.5612853169441223,
-0.029585901647806168,
0.25405171513557434,
-0.30483198165893555,
0.2157217562198639,
-0.023164696991443634,
-0.22042714059352875,
-0.5347034335136414,
0.22364257276058197,
0.11935283988714218,
0.10174690186977386,
-0.1956091672182083,
-0.2288060188293457,
0.08236825466156006,
0.07364872843027115,
0.03932204842567444,
-0.07162771373987198,
-0.005105551332235336,
0.09715733677148819,
-0.25117793679237366,
-0.011619306169450283,
-0.00752455135807395,
0.1421705186367035,
0.3566610813140869,
0.145116925239563,
-0.301760196685791,
0.02375204488635063,
-0.3742334842681885,
0.1623161882162094,
0.04893141984939575,
0.23895534873008728,
0.17136777937412262,
-0.22986850142478943,
-0.22958362102508545,
0.07708105444908142,
-0.09000758081674576,
-0.00926470011472702,
0.4244619607925415,
-0.04891013354063034,
-0.009291772730648518,
-0.23481962084770203,
0.14177101850509644,
0.18841008841991425,
0.19095516204833984,
-0.12081773579120636,
0.1698993295431137,
0.2535116672515869,
0.05309975519776344,
0.32660460472106934,
-0.11337970197200775,
-0.22215601801872253,
-0.2290591150522232,
0.3246760964393616,
-0.14617739617824554,
-0.21636390686035156,
-0.02816511131823063,
0.2071460634469986,
-0.17578190565109253,
-0.30096012353897095,
0.282866507768631,
-0.006994483061134815,
-0.1259734034538269,
0.2331741452217102,
0.38037869334220886,
0.3927209973335266,
-0.11483501642942429,
0.2829953730106354,
0.018474653363227844,
-0.24705258011817932,
-0.06750769913196564,
-0.3831624388694763,
-0.2631476819515228,
0.20487025380134583,
0.47916117310523987,
0.1200166791677475,
0.14981013536453247,
-0.08352582156658173,
0.04036150127649307,
-0.2564294636249542,
-0.4158099293708801,
0.057749539613723755,
-0.04619712382555008,
0.0455121211707592,
0.24349170923233032,
-0.12227830290794373,
0.3542180061340332,
-0.21562592685222626,
0.09928847849369049,
-0.2353144735097885,
-0.3157806396484375,
-0.28375837206840515,
-0.008973953314125538,
0.17351391911506653,
-0.04627472534775734,
-0.30895718932151794,
-0.0029453281313180923,
-0.6132444143295288,
-0.333103746175766,
-0.15705172717571259,
0.24114243686199188,
0.41477450728416443,
-0.18205925822257996,
-0.01970987766981125,
-0.19572055339813232,
0.4264013469219208,
-0.19011569023132324,
0.10958767682313919,
0.046859659254550934,
0.2768310010433197,
-0.030418772250413895,
0.2757183611392975,
-0.044968120753765106,
0.042467206716537476,
-0.04803060367703438,
0.09655516594648361,
0.16394078731536865,
0.09033072739839554,
0.39237168431282043,
-0.2577674090862274,
0.15437652170658112,
0.26736918091773987,
0.5688077211380005,
0.19750264286994934,
-0.060536205768585205,
0.2026239037513733,
0.105723075568676,
0.27059316635131836,
-0.38720449805259705,
0.05925581604242325,
-0.006889670621603727,
0.10270228981971741,
0.39572349190711975,
0.09983516484498978,
0.33550944924354553,
0.10895289480686188,
-0.0963636040687561,
-0.012911820784211159,
0.3361457586288452,
-0.10542802512645721,
0.2378416359424591,
0.12431683391332626,
0.039020054042339325,
0.13910306990146637,
0.013683152385056019,
0.41979098320007324,
-0.010713264346122742,
0.31402555108070374,
-0.3291001617908478,
0.24282267689704895,
0.11653167754411697,
0.08710243552923203,
-0.2979404032230377,
-0.45738160610198975,
0.28960734605789185,
0.021437685936689377,
-0.03851214423775673,
-0.16954457759857178,
-0.258063942193985,
0.18175265192985535,
-0.5244923830032349,
-0.08152790367603302,
-0.14983876049518585,
0.103600412607193,
-0.06626773625612259,
0.05046933889389038,
-0.40117979049682617,
-0.3024997115135193,
-0.03313206881284714,
0.11974892020225525,
0.08928364515304565,
-0.08833269029855728,
-0.02614789456129074,
0.024444621056318283,
0.10787675529718399,
-0.20801037549972534,
0.12845073640346527,
0.0660773441195488,
0.0618911013007164,
-0.03481236472725868,
0.023082181811332703,
0.20329329371452332,
0.0634404793381691,
0.11439596861600876,
0.43032342195510864,
0.33896002173423767,
0.038647040724754333,
-0.1788986474275589,
0.17778143286705017,
-0.01888892613351345,
-0.1237887442111969,
-0.0961962565779686,
0.08789562433958054,
0.015653220936655998,
0.1670668125152588,
0.37280353903770447,
0.19511234760284424,
-0.21730105578899384,
0.3377450704574585,
-0.0706462562084198,
-0.13901756703853607,
-0.46471107006073,
0.2669898271560669,
0.19128373265266418,
-0.1077183410525322,
-0.11948247253894806,
-0.28018274903297424,
-0.18338266015052795,
-0.10936073213815689,
0.36168384552001953,
0.025485442951321602,
0.10699145495891571,
-0.18455049395561218,
0.1272706538438797,
0.09304041415452957,
0.42909443378448486,
0.18219192326068878,
0.3078637421131134,
-0.2852385938167572,
0.11135995388031006,
-0.8087356686592102,
-0.15015828609466553,
-0.14277702569961548,
0.2350057065486908,
-0.052345357835292816,
0.10854480415582657,
0.08479534089565277,
0.4387228488922119,
0.0659143403172493,
0.15793156623840332,
0.1626470535993576,
-0.18133696913719177,
-0.2886345088481903,
-0.14465868473052979,
-0.08162600547075272,
-0.08608941733837128,
-0.03142577037215233,
-0.3293498456478119,
0.07899252325296402,
-0.3852585554122925,
0.026291033253073692,
0.07758225500583649,
0.1974053978919983,
-0.2024400532245636,
-0.1328178346157074,
0.45995333790779114,
0.024359630420804024,
0.40645742416381836,
0.1564122885465622,
-0.11241881549358368,
-0.06522370129823685,
0.03531947731971741,
-0.057773787528276443,
0.17246903479099274,
-0.03386780619621277,
-0.02690429799258709,
-0.13797515630722046,
-0.1405130922794342,
-0.16621126234531403,
0.20080365240573883,
0.06668899208307266,
-0.011973507702350616,
-0.11379347741603851,
-0.03600050136446953,
0.0867951363325119,
0.14186227321624756,
0.007205977104604244,
0.04317406937479973,
-0.14892876148223877,
0.21321061253547668,
-0.202659472823143,
0.045328352600336075,
0.33938324451446533,
-0.035023365169763565,
0.012712109833955765,
-0.3722342252731323,
0.39237600564956665,
0.1644822061061859,
0.0008876137435436249,
-0.48040735721588135,
0.23654086887836456,
0.3327223062515259,
-0.15321014821529388,
-0.14727909862995148,
0.3244405686855316,
-0.2522747218608856,
-0.20016297698020935,
0.007166841998696327,
0.2544195055961609,
-0.2700774371623993,
-0.3051460087299347,
0.0650707259774208,
-0.14096789062023163
] |
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.4992598295211792,
0.22699636220932007,
-0.03246918320655823,
0.14187230169773102,
0.23694996535778046,
-0.10291753709316254,
0.5442941784858704,
0.0744108185172081,
0.2753634452819824,
0.24428820610046387,
-0.008834795095026493,
-0.06653983891010284,
0.02808603271842003,
0.37562304735183716,
-0.09889986366033554,
-0.04195553436875343,
-0.16233301162719727,
0.05635467544198036,
-0.18303628265857697,
0.1076543927192688,
-0.16337786614894867,
-0.08695127069950104,
-0.4332997798919678,
-0.06250718981027603,
-0.015938716009259224,
-0.16068148612976074,
-0.07989805191755295,
0.21157211065292358,
-0.1717488169670105,
-0.28451836109161377,
0.24363496899604797,
0.16650079190731049,
0.19889160990715027,
0.473135381937027,
-0.00010347332863602787,
0.03702419996261597,
0.011920996010303497,
0.010489433072507381,
-0.22773116827011108,
-0.38495782017707825,
-0.2243465781211853,
-0.5146488547325134,
0.16380605101585388,
-0.45466452836990356,
-0.20701128244400024,
-0.037956640124320984,
-0.06889142096042633,
-0.5084747672080994,
0.3095605969429016,
0.35181188583374023,
0.2570660710334778,
0.5904167294502258,
-0.12827077507972717,
-0.27924224734306335,
-0.15584763884544373,
-0.15226244926452637,
-0.15569786727428436,
0.42838409543037415,
-0.017295219004154205,
0.001369230798445642,
-0.022243067622184753,
0.10412995517253876,
-0.17523454129695892,
0.034660108387470245,
0.3222208619117737,
0.06727893650531769,
-0.10974033176898956,
-0.08459030836820602,
0.22063317894935608,
0.3967529237270355,
0.42471757531166077,
-0.288434237241745,
-0.251918762922287,
-0.3396155536174774,
-0.007589173968881369,
-0.46784934401512146,
0.09609880298376083,
0.15655279159545898,
0.0217531006783247,
0.229181706905365,
-0.3944310247898102,
-0.30916234850883484,
-0.3443602919578552,
0.1524474024772644,
-0.32422107458114624,
0.002371483016759157,
-0.26090359687805176,
0.07101459801197052,
-0.06112535670399666,
0.09298710525035858,
-0.19791269302368164,
-0.28282710909843445,
0.06065146625041962,
-0.07426038384437561,
-0.26047950983047485,
0.014129971154034138,
0.12018051743507385,
0.06370125710964203,
0.14024202525615692,
0.058837153017520905,
0.2486949861049652,
-0.009834923781454563,
0.09796909242868423,
0.05103927105665207,
0.4422774016857147,
0.2957020699977875,
0.0074493419378995895,
-0.18953968584537506,
0.5416602492332458,
0.0993708074092865,
-0.007566798944026232,
-0.2980296015739441,
0.2820795774459839,
-0.3101067543029785,
0.1336488127708435,
0.007375265471637249,
0.3609680235385895,
-0.2954883873462677,
-0.16744354367256165,
-0.012539885006844997,
0.14054569602012634,
-0.042656272649765015,
0.18352532386779785,
0.24835899472236633,
-0.2873736619949341,
0.02998923324048519,
0.0637686625123024,
0.38568976521492004,
-0.29979512095451355,
-0.2546651065349579,
-0.06163248047232628,
-0.13591311872005463,
-0.12915728986263275,
0.07275424897670746,
0.18642590939998627,
0.00804122444242239,
0.044554222375154495,
-0.03349165618419647,
0.24024027585983276,
-0.06911883503198624,
0.30549174547195435,
-0.10393450409173965,
0.07850285619497299,
0.2336847335100174,
0.25203874707221985,
-0.09576664865016937,
0.062496617436409,
-0.19691146910190582,
0.038246165961027145,
0.04105858877301216,
-0.10746713727712631,
-0.35964182019233704,
0.1783691942691803,
0.27268511056900024,
-0.6226013898849487,
-0.1710646003484726,
-0.3079637289047241,
0.05818437039852142,
-0.3064321279525757,
-0.19844293594360352,
-0.015349829569458961,
-0.046029143035411835,
-0.19359537959098816,
-0.24053114652633667,
0.3376949727535248,
0.5559730529785156,
-0.39829349517822266,
0.09689758718013763,
0.07916443794965744,
-0.17719009518623352,
-0.18636685609817505,
0.0195548664778471,
-0.30825716257095337,
0.5199757218360901,
-0.018785666674375534,
-0.29418691992759705,
0.564875066280365,
-0.3655906319618225,
-0.27014318108558655,
0.2469821721315384,
-0.18696458637714386,
-0.11204110085964203,
-0.09344246238470078,
0.09128861129283905,
0.44474124908447266,
0.08528831601142883,
-0.09592396020889282,
0.28093773126602173,
-0.04586145281791687,
-0.0005537493852898479,
-0.2211628556251526,
-0.23946066200733185,
0.1544381082057953,
0.2881145775318146,
0.272381454706192,
0.0969027653336525,
0.309170663356781,
-0.19527286291122437,
0.02802504599094391,
-0.27875497937202454,
0.13509665429592133,
0.1634451150894165,
0.15330098569393158,
0.09200997650623322,
-0.04381523281335831,
-0.19293653964996338,
-0.4884025752544403,
0.26470813155174255,
0.041077371686697006,
0.16328833997249603,
-0.2042587548494339,
-0.13886277377605438,
-0.021051514893770218,
-0.18907125294208527,
-0.16223452985286713,
0.013332713395357132,
0.13976091146469116,
-0.10027650743722916,
0.16114401817321777,
0.11377907544374466,
-0.25634652376174927,
0.1799522191286087,
0.020155835896730423,
0.007479994557797909,
-0.13851159811019897,
0.2693672180175781,
-0.05760425329208374,
0.0668182373046875,
-0.03681563213467598,
0.09325627237558365,
0.04240208491683006,
-0.19589294493198395,
-0.10610868781805038,
0.5290292501449585,
-0.03096967749297619,
0.04685346782207489,
0.26507288217544556,
0.38039037585258484,
0.32489460706710815,
-0.011337729170918465,
0.5266868472099304,
-0.04401697590947151,
0.3241904377937317,
-0.09702883660793304,
-0.34095054864883423,
0.755565881729126,
-0.1524326503276825,
0.21270208060741425,
0.11122934520244598,
0.01151049043983221,
0.265591561794281,
0.002492580097168684,
-0.40446916222572327,
-0.02973802201449871,
0.10320562869310379,
0.0016841571778059006,
0.1952839195728302,
-0.08575407415628433,
-0.3268740773200989,
-0.0021094167605042458,
0.3489396274089813,
-0.013892250135540962,
0.17515408992767334,
-0.06133563444018364,
-0.031814705580472946,
0.12014255672693253,
-0.07345350831747055,
0.08592968434095383,
0.5219729542732239,
0.25440776348114014,
0.06123856082558632,
0.2307022660970688,
-0.04146990552544594,
-0.25590968132019043,
0.13679435849189758,
0.22504335641860962,
0.03423650190234184,
0.07031314820051193,
0.08283484727144241,
-0.03545501455664635,
-0.2182731032371521,
-0.052100930362939835,
-0.0413498617708683,
0.016514699906110764,
-0.2833806872367859,
0.28712934255599976,
-0.24826279282569885,
-0.028776876628398895,
0.057150162756443024,
0.13270069658756256,
-0.4499959945678711,
-0.19224992394447327,
0.07581096142530441,
0.08342637866735458,
-0.23478254675865173,
0.13678650557994843,
-0.11476842314004898,
0.41578495502471924,
-0.24178637564182281,
-0.21620973944664001,
0.25570327043533325,
-0.4892715513706207,
-0.12540875375270844,
0.11391927301883698,
0.2904767394065857,
0.12110734730958939,
0.5174890160560608,
0.018218785524368286,
-0.09722860902547836,
-0.3355357050895691,
-0.16106529533863068,
0.035582296550273895,
-0.07128237932920456,
0.28297895193099976,
0.09335047006607056,
0.05307406187057495,
-0.06716391444206238,
0.32535117864608765,
0.3937322795391083,
-0.3271919786930084,
0.1934451162815094,
0.17926447093486786,
-0.04971765726804733,
-0.08718903362751007,
-0.3529951572418213,
-0.42821624875068665,
-0.43207043409347534,
-0.3919803202152252,
0.19262118637561798,
0.013243862427771091,
-0.05743541941046715,
0.18983708322048187,
0.14822134375572205,
0.11652776598930359,
0.005846294574439526,
0.18890061974525452,
-0.18831898272037506,
-0.4760996401309967,
0.16884903609752655,
-0.1893005669116974,
-0.6016705632209778,
0.2806212604045868,
0.22950944304466248,
0.16576340794563293,
0.35827144980430603,
-0.444815456867218,
-0.37814968824386597,
0.07329222559928894,
0.44010618329048157,
0.1102425754070282,
0.3342649042606354,
0.35336434841156006,
-0.05935870483517647,
-0.04304642975330353,
-0.0973871722817421,
0.07812055945396423,
0.19092914462089539,
0.05161789432168007,
-0.12343736737966537,
0.03781899809837341,
0.26290979981422424,
-0.028633564710617065,
0.4023735225200653,
-0.03312059864401817,
0.09678054600954056,
0.2285633683204651,
-0.15662622451782227,
0.7003893852233887,
-0.18450933694839478,
-0.14877106249332428,
-0.018866661936044693,
-0.05123751237988472,
-0.3176403343677521,
0.24771864712238312,
0.020270882174372673,
0.003444900969043374,
-0.6579144597053528,
-0.03089028224349022,
-0.3640888035297394,
-0.4101669192314148,
0.10232440382242203,
0.12379761785268784,
0.36120134592056274,
0.11311517655849457,
0.28461962938308716,
-0.26553112268447876,
-0.08067972213029861,
-0.08378969877958298,
0.2637254297733307,
0.07058977335691452,
-0.08213257789611816,
-0.23685713112354279,
0.035389792174100876,
-0.3795100450515747,
0.378821462392807,
-0.12523601949214935,
0.1993350237607956,
-0.04949470981955528,
-0.02056601643562317,
-0.015860507264733315,
-0.16019147634506226,
0.35753917694091797,
-0.3219267427921295,
-0.018434440717101097,
0.3051729202270508,
-0.07237876951694489,
-0.30489102005958557,
0.07500354200601578,
-0.21854659914970398,
-0.018710102885961533,
0.18014995753765106,
0.16952039301395416,
-0.11954517662525177,
-0.30047667026519775,
0.01672619767487049,
0.43107330799102783,
-0.28221336007118225,
-0.19584167003631592,
-0.2220253050327301,
-0.15081872045993805,
-0.33539679646492004,
0.01133065577596426,
-0.1939944177865982,
0.07243043929338455,
-0.10425897687673569,
0.17091163992881775,
-0.2531682848930359,
0.16413185000419617,
-0.016891680657863617,
0.11212848126888275,
0.12095922231674194,
-0.24639712274074554,
0.24926620721817017,
0.254464715719223,
0.10754505544900894,
0.3158957362174988,
0.3369901180267334,
-0.05784464254975319,
-0.2881168723106384,
0.18518580496311188,
-0.021639754995703697,
0.35404595732688904,
0.3804871439933777,
-0.10842494666576385,
-0.12978999316692352,
0.15628400444984436,
0.27723148465156555,
-0.42217928171157837,
-0.1058231070637703,
0.15206676721572876,
0.18993552029132843,
-0.13188394904136658,
-0.3830696940422058,
0.24210824072360992,
0.10584677755832672,
-0.04281172156333923,
-0.02791045606136322,
0.14056611061096191,
-0.2162884920835495,
0.16577570140361786,
-0.12047476321458817,
0.7463243007659912,
-0.08539478480815887,
0.2261953502893448,
0.2716043293476105,
-0.010599502362310886,
0.4589012861251831,
-0.2182701826095581,
-0.017234552651643753,
-0.02994421124458313,
-0.258079469203949,
-0.0018668448319658637,
-0.08380192518234253,
0.41056981682777405,
0.012096661143004894,
-0.10150658339262009,
0.5569254755973816,
0.002354378579184413,
0.2621747851371765,
-0.3156489133834839,
0.20682914555072784,
-0.026268288493156433,
-0.22415992617607117,
-0.5295382738113403,
0.222785085439682,
0.11169320344924927,
0.09081067144870758,
-0.1965971142053604,
-0.22969117760658264,
0.08920545130968094,
0.07330618798732758,
0.020983410999178886,
-0.08815829455852509,
-0.014726439490914345,
0.09104444831609726,
-0.2471250742673874,
-0.011324498802423477,
0.0023109533358365297,
0.11687882244586945,
0.3662896156311035,
0.154087632894516,
-0.3008585572242737,
0.040769729763269424,
-0.3916715383529663,
0.17588774859905243,
0.043191906064748764,
0.23530133068561554,
0.17323701083660126,
-0.23165933787822723,
-0.22949904203414917,
0.07112197577953339,
-0.09329862147569656,
-0.022983387112617493,
0.44661369919776917,
-0.05345933139324188,
-0.02999895252287388,
-0.22703278064727783,
0.17019669711589813,
0.18719974160194397,
0.174200177192688,
-0.1272592693567276,
0.16901274025440216,
0.2469743937253952,
0.0646355003118515,
0.3324846923351288,
-0.11856259405612946,
-0.22343625128269196,
-0.23192951083183289,
0.33238670229911804,
-0.1481754034757614,
-0.2163778394460678,
-0.03400994837284088,
0.21277572214603424,
-0.1911340355873108,
-0.3022421598434448,
0.2718293070793152,
0.005079792812466621,
-0.12829406559467316,
0.2343987673521042,
0.38825860619544983,
0.37624266743659973,
-0.11516622453927994,
0.27027860283851624,
0.03198749199509621,
-0.24230603873729706,
-0.07314285635948181,
-0.37033611536026,
-0.2799702286720276,
0.20772676169872284,
0.4752349257469177,
0.12351395934820175,
0.14776915311813354,
-0.08008347451686859,
0.047166481614112854,
-0.25689879059791565,
-0.41482263803482056,
0.04279738664627075,
-0.057989537715911865,
0.04909539222717285,
0.2588080167770386,
-0.1258104294538498,
0.3629031777381897,
-0.21997451782226562,
0.09443101286888123,
-0.2352956384420395,
-0.3346160650253296,
-0.2838246822357178,
-0.006552357226610184,
0.17334474623203278,
-0.044216375797986984,
-0.3215045630931854,
-0.009209015406668186,
-0.5947597026824951,
-0.3334675431251526,
-0.15249429643154144,
0.24984382092952728,
0.4137350916862488,
-0.1798790991306305,
-0.02680104970932007,
-0.19731731712818146,
0.43178337812423706,
-0.17644181847572327,
0.094915010035038,
0.0630052238702774,
0.2877393960952759,
-0.03423945978283882,
0.2798074781894684,
-0.050402235239744186,
0.038232896476984024,
-0.029125893488526344,
0.10646595060825348,
0.16398219764232635,
0.07929340749979019,
0.39104750752449036,
-0.25404903292655945,
0.14306306838989258,
0.25833553075790405,
0.5726848244667053,
0.191213920712471,
-0.053906820714473724,
0.18754591047763824,
0.09839600324630737,
0.271558940410614,
-0.37909719347953796,
0.06003771722316742,
-0.0015356673393398523,
0.1076100543141365,
0.413490355014801,
0.08459651470184326,
0.32913529872894287,
0.11033911257982254,
-0.09634032845497131,
-0.009307890199124813,
0.3304796814918518,
-0.11191631108522415,
0.22327972948551178,
0.13076834380626678,
0.04391848295927048,
0.1417958289384842,
0.031119249761104584,
0.4378809332847595,
-0.007967382669448853,
0.32399284839630127,
-0.33903640508651733,
0.23513738811016083,
0.11554983258247375,
0.11277231574058533,
-0.28166523575782776,
-0.440852552652359,
0.2878970503807068,
0.030565453693270683,
-0.048554737120866776,
-0.18208645284175873,
-0.24641047418117523,
0.18192653357982635,
-0.5260381102561951,
-0.08454229682683945,
-0.14537197351455688,
0.0936676636338234,
-0.07735273241996765,
0.06396061927080154,
-0.4059838354587555,
-0.30864426493644714,
-0.031753167510032654,
0.12277433276176453,
0.07723002880811691,
-0.07368726283311844,
-0.002429198008030653,
0.01451022271066904,
0.11013150215148926,
-0.20595096051692963,
0.1357242614030838,
0.053085945546627045,
0.06743209064006805,
-0.0314454548060894,
0.03158511966466904,
0.20388229191303253,
0.07596301287412643,
0.11629462987184525,
0.45586997270584106,
0.3250941336154938,
0.027959203347563744,
-0.17328791320323944,
0.17912183701992035,
-0.017408916726708412,
-0.12570111453533173,
-0.10850213468074799,
0.09677691757678986,
0.027115153148770332,
0.13168005645275116,
0.3657480478286743,
0.1895967721939087,
-0.20768435299396515,
0.344492644071579,
-0.07613766938447952,
-0.15048271417617798,
-0.4568808078765869,
0.2505195736885071,
0.18464645743370056,
-0.11699211597442627,
-0.1064554750919342,
-0.2874944806098938,
-0.18890096247196198,
-0.10830386728048325,
0.37259727716445923,
0.019476596266031265,
0.11053356528282166,
-0.19144293665885925,
0.1280115842819214,
0.10187976062297821,
0.43914735317230225,
0.17338813841342926,
0.2939247786998749,
-0.2876729965209961,
0.1159934252500534,
-0.8045646548271179,
-0.14938175678253174,
-0.12592202425003052,
0.25739389657974243,
-0.05180959030985832,
0.10918872058391571,
0.08756003528833389,
0.43733832240104675,
0.07446472346782684,
0.15854009985923767,
0.17270980775356293,
-0.18016493320465088,
-0.3003022074699402,
-0.13470038771629333,
-0.06243913620710373,
-0.10021360218524933,
-0.03152778744697571,
-0.3196190297603607,
0.09199737012386322,
-0.36339330673217773,
0.022914882749319077,
0.06731770187616348,
0.20422469079494476,
-0.20613329112529755,
-0.12975601851940155,
0.44167858362197876,
0.04330753907561302,
0.3950854241847992,
0.14411014318466187,
-0.11225056648254395,
-0.05289492383599281,
0.03797502815723419,
-0.06393857300281525,
0.17010319232940674,
-0.03610880672931671,
-0.03288780152797699,
-0.11447667330503464,
-0.1413639932870865,
-0.1595005989074707,
0.2147669792175293,
0.06328541040420532,
-0.011129826307296753,
-0.10949435830116272,
-0.036158300936222076,
0.07759122550487518,
0.13357745110988617,
0.000827557931188494,
0.044599685817956924,
-0.14516231417655945,
0.2125575691461563,
-0.20440158247947693,
0.03149787709116936,
0.33396321535110474,
-0.03406394273042679,
0.018113387748599052,
-0.37190234661102295,
0.3834599256515503,
0.17423318326473236,
-0.0068180253729224205,
-0.4931708574295044,
0.22851623594760895,
0.321798712015152,
-0.16859792172908783,
-0.14056426286697388,
0.3053504228591919,
-0.25994873046875,
-0.18955941498279572,
0.00045293255243450403,
0.26143378019332886,
-0.2595776915550232,
-0.2974052429199219,
0.057086050510406494,
-0.14739397168159485
] |
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.4716481864452362,
0.2902261018753052,
-0.04767213389277458,
0.1334424465894699,
0.21068818867206573,
-0.21222533285617828,
0.5858257412910461,
0.05341656506061554,
0.28334155678749084,
0.18411283195018768,
0.031058739870786667,
0.03263834863901138,
0.0011819445062428713,
0.3333257734775543,
-0.07214383035898209,
-0.05854189023375511,
-0.19054238498210907,
-0.005104904994368553,
-0.1658584475517273,
0.08279196172952652,
-0.0870346650481224,
-0.17246873676776886,
-0.4247152507305145,
-0.11953113973140717,
-0.06756019592285156,
-0.16881488263607025,
-0.0242118202149868,
0.21167241036891937,
-0.19261375069618225,
-0.4453735649585724,
0.2666610777378082,
0.20002929866313934,
0.1570935994386673,
0.4229850769042969,
-0.00010433599527459592,
0.05918876454234123,
0.07977459579706192,
0.0126060601323843,
-0.28293293714523315,
-0.3505374491214752,
-0.23761717975139618,
-0.47248849272727966,
0.24548962712287903,
-0.4179920256137848,
-0.17655593156814575,
-0.031970828771591187,
-0.11496434360742569,
-0.49646472930908203,
0.2549804151058197,
0.333200603723526,
0.2521955668926239,
0.579501748085022,
-0.1773815155029297,
-0.2577655613422394,
-0.0930701419711113,
-0.045575570315122604,
-0.2170027792453766,
0.4130180776119232,
0.14518126845359802,
-0.011996141634881496,
-0.09174724668264389,
0.04279651865363121,
-0.2056657373905182,
0.05553572624921799,
0.3426390290260315,
0.06921139359474182,
-0.1012876033782959,
-0.07574762403964996,
0.1654939502477646,
0.40968313813209534,
0.43845099210739136,
-0.27881738543510437,
-0.23378711938858032,
-0.36615312099456787,
-0.05999113619327545,
-0.415805459022522,
0.057996511459350586,
0.08426345884799957,
-0.05014130100607872,
0.2703295350074768,
-0.41784897446632385,
-0.27825355529785156,
-0.3631698191165924,
0.1871722936630249,
-0.29582473635673523,
0.08009852468967438,
-0.2190459817647934,
0.05719134956598282,
-0.03457333892583847,
0.12171003222465515,
-0.16039475798606873,
-0.2874973714351654,
0.12319699674844742,
-0.055233463644981384,
-0.24581916630268097,
-0.04832202568650246,
0.17336614429950714,
0.02620767615735531,
0.14559584856033325,
0.10752905160188675,
0.16631217300891876,
0.055470310151576996,
0.006958590820431709,
0.05163724720478058,
0.4685058295726776,
0.21164512634277344,
0.011062613688409328,
-0.20973366498947144,
0.5494059324264526,
0.14897271990776062,
0.009058571420609951,
-0.23407554626464844,
0.26577290892601013,
-0.25246503949165344,
0.09119819104671478,
0.07008784264326096,
0.3765212893486023,
-0.32149356603622437,
-0.022985104471445084,
0.03531460464000702,
0.15973225235939026,
-0.06210428103804588,
0.16163751482963562,
0.17477992177009583,
-0.2847248911857605,
0.012939565815031528,
-0.02952432446181774,
0.3609687387943268,
-0.27713385224342346,
-0.34685325622558594,
-0.03897649422287941,
-0.21186470985412598,
-0.17805065214633942,
0.0920449048280716,
0.24551858007907867,
0.03093639574944973,
0.051061324775218964,
-0.014773388393223286,
0.24244007468223572,
-0.036847107112407684,
0.3018392026424408,
-0.08095061779022217,
0.06594805419445038,
0.2120591551065445,
0.11961717158555984,
-0.07657018303871155,
0.12486007809638977,
-0.15601550042629242,
0.0067115286365151405,
0.06666810810565948,
-0.05143474414944649,
-0.4386148750782013,
0.23742865025997162,
0.22378648817539215,
-0.6274783611297607,
-0.1871648132801056,
-0.19690144062042236,
0.0777895525097847,
-0.30176839232444763,
-0.17387619614601135,
0.021495165303349495,
0.07558536529541016,
-0.16909369826316833,
-0.23825454711914062,
0.2987493872642517,
0.6010072827339172,
-0.5180035829544067,
0.08190540969371796,
0.045804210007190704,
-0.18164053559303284,
-0.188969224691391,
0.028321847319602966,
-0.39451202750205994,
0.5864564180374146,
0.003940586466342211,
-0.38893577456474304,
0.5678289532661438,
-0.30959418416023254,
-0.30935221910476685,
0.2875796854496002,
-0.18025146424770355,
-0.059503305703401566,
-0.038203950971364975,
0.11968911439180374,
0.4773566424846649,
0.08094969391822815,
-0.007814539596438408,
0.2666752338409424,
-0.077023945748806,
-0.009541649371385574,
-0.29568180441856384,
-0.2896499037742615,
0.09854297339916229,
0.29652589559555054,
0.2704697549343109,
0.12806861102581024,
0.3454585671424866,
-0.23669296503067017,
0.027660390362143517,
-0.13619989156723022,
0.1363513469696045,
0.09909921139478683,
0.23302821815013885,
0.12394281476736069,
-0.06952308863401413,
-0.1321176290512085,
-0.5115547180175781,
0.3242625296115875,
0.039749737828969955,
0.16213569045066833,
-0.20566020905971527,
-0.15331090986728668,
-0.04016544297337532,
-0.21692046523094177,
-0.1385670304298401,
-0.03778679296374321,
0.12345156818628311,
-0.08959031105041504,
0.08697481453418732,
0.17630720138549805,
-0.2977667450904846,
0.13516077399253845,
-0.018293842673301697,
-0.005147841759026051,
-0.15002195537090302,
0.34001532196998596,
-0.03143787756562233,
0.05650587007403374,
-0.10150183737277985,
0.09041447192430496,
0.01230009738355875,
-0.1740998774766922,
-0.10554606467485428,
0.483792245388031,
0.0415278859436512,
0.11835511028766632,
0.27074503898620605,
0.4232814908027649,
0.31868597865104675,
0.024552473798394203,
0.5603361129760742,
-0.12719030678272247,
0.3274109363555908,
-0.11851804703474045,
-0.34176698327064514,
0.7027891278266907,
-0.17834416031837463,
0.2728155851364136,
0.11503129452466965,
-0.03400547802448273,
0.2038818597793579,
-0.09402205049991608,
-0.40444067120552063,
-0.09520278871059418,
0.06635477393865585,
0.0030854723881930113,
0.1993396282196045,
0.01687702164053917,
-0.2931222915649414,
0.05046151950955391,
0.33741772174835205,
0.013531696982681751,
0.13642363250255585,
-0.060463570058345795,
-0.017176995053887367,
0.11304953694343567,
-0.02549002319574356,
0.13787971436977386,
0.5132742524147034,
0.23082026839256287,
0.043037187308073044,
0.3077922463417053,
0.035288143903017044,
-0.2593402564525604,
0.11889717727899551,
0.1687570959329605,
-0.01850845292210579,
0.12123894691467285,
0.09633956104516983,
-0.011798510327935219,
-0.13999369740486145,
-0.031938306987285614,
0.0038131652399897575,
0.05903540179133415,
-0.31466972827911377,
0.2902597486972809,
-0.35456058382987976,
-0.027913305908441544,
0.013021430000662804,
0.13092784583568573,
-0.48070719838142395,
-0.21028077602386475,
0.11700581759214401,
0.056922148913145065,
-0.2447340488433838,
0.17129260301589966,
-0.08770617842674255,
0.45148274302482605,
-0.26934540271759033,
-0.2608880400657654,
0.24277867376804352,
-0.5937599539756775,
-0.06554410606622696,
0.08480051159858704,
0.3401413559913635,
0.18221314251422882,
0.5658239126205444,
0.059398602694272995,
-0.14113417267799377,
-0.27104008197784424,
-0.1447022259235382,
0.08929361402988434,
-0.011607188731431961,
0.31521543860435486,
0.10839799791574478,
0.020331986248493195,
0.027069900184869766,
0.400249719619751,
0.3858618438243866,
-0.2980000078678131,
0.19021645188331604,
0.12723958492279053,
-0.09454523772001266,
-0.03227188438177109,
-0.3383330702781677,
-0.4963897466659546,
-0.3992336392402649,
-0.4677615165710449,
0.170082226395607,
-0.05277734622359276,
0.010703221894800663,
0.229778453707695,
0.20387521386146545,
0.11094550788402557,
-0.070516437292099,
0.11048717796802521,
-0.17224185168743134,
-0.4613300561904907,
0.14505191147327423,
-0.179282546043396,
-0.4937450885772705,
0.253762811422348,
0.21924902498722076,
0.1917007863521576,
0.34274595975875854,
-0.5899965763092041,
-0.317787230014801,
0.10433132201433182,
0.3914317488670349,
0.10402388870716095,
0.26793238520622253,
0.39332082867622375,
-0.07943166047334671,
-0.05855526402592659,
-0.09038455784320831,
0.05749824270606041,
0.20767492055892944,
0.05640203133225441,
-0.10910338163375854,
0.14945651590824127,
0.2685929238796234,
0.0167621448636055,
0.5026167631149292,
-0.07983457297086716,
0.10981732606887817,
0.2588004767894745,
-0.11742212623357773,
0.705657958984375,
-0.18252341449260712,
-0.16715523600578308,
-0.04138508811593056,
0.014881664887070656,
-0.3247092664241791,
0.17284122109413147,
-0.01798209734261036,
-0.015906821936368942,
-0.6336128115653992,
-0.07981749624013901,
-0.248452290892601,
-0.45507869124412537,
0.18346768617630005,
0.15974125266075134,
0.32477840781211853,
0.10586107522249222,
0.2193613052368164,
-0.2707959711551666,
-0.02564447931945324,
-0.09191982448101044,
0.2632642984390259,
-0.014952906407415867,
-0.07748951017856598,
-0.2507244050502777,
0.13699911534786224,
-0.3115713894367218,
0.29557231068611145,
-0.1352510005235672,
0.2162647694349289,
-0.0439072847366333,
-0.031342390924692154,
0.0826740562915802,
-0.0391850508749485,
0.2991412878036499,
-0.40821704268455505,
-0.09436856955289841,
0.32934972643852234,
-0.02164362743496895,
-0.35319048166275024,
0.07643638551235199,
-0.17220968008041382,
0.0019424926722422242,
0.159916490316391,
0.15819351375102997,
-0.06794299930334091,
-0.3483630418777466,
-0.006039728410542011,
0.3597082495689392,
-0.2774306535720825,
-0.2177673876285553,
-0.20012861490249634,
-0.04233068600296974,
-0.427508682012558,
-0.0052138566970825195,
-0.2545890510082245,
-0.0984359160065651,
-0.08035755902528763,
0.11828804016113281,
-0.1544915735721588,
0.21917720139026642,
-0.13801103830337524,
0.07399649173021317,
0.11023321747779846,
-0.3203088045120239,
0.22734160721302032,
0.2977679967880249,
0.05530185624957085,
0.33093881607055664,
0.3506477177143097,
-0.11811763793230057,
-0.14827902615070343,
0.20862403512001038,
-0.04334757477045059,
0.4113813042640686,
0.485464483499527,
-0.009593257680535316,
-0.08460105955600739,
0.14470899105072021,
0.2892354726791382,
-0.40379005670547485,
-0.1615215241909027,
0.10788022726774216,
0.05929842218756676,
-0.10008484870195389,
-0.46734005212783813,
0.18348944187164307,
-0.04053454101085663,
-0.07383912056684494,
-0.00352577050216496,
0.12941665947437286,
-0.1851622611284256,
0.2416016012430191,
-0.0919816642999649,
0.812248945236206,
0.02636493183672428,
0.22195392847061157,
0.17398060858249664,
-0.007891617715358734,
0.47341296076774597,
-0.30288583040237427,
-0.045584309846162796,
-0.06026589497923851,
-0.04364370182156563,
0.018221471458673477,
-0.0760403499007225,
0.44108328223228455,
0.010689078830182552,
-0.20547069609165192,
0.49349290132522583,
-0.0749407410621643,
0.28241297602653503,
-0.33753085136413574,
0.1076020896434784,
0.02022426761686802,
-0.22647890448570251,
-0.5203982591629028,
0.20282427966594696,
0.10815124213695526,
0.10282077640295029,
-0.18519377708435059,
-0.24358335137367249,
0.03425307944417,
0.14930373430252075,
0.009566789492964745,
-0.1898500770330429,
-0.05260537192225456,
0.030810602009296417,
-0.20590324699878693,
0.05606834962964058,
0.003233854891732335,
0.04502682387828827,
0.3648865818977356,
0.14686256647109985,
-0.3398706018924713,
0.013886656612157822,
-0.35569068789482117,
0.16919712722301483,
0.03607706353068352,
0.1752614825963974,
0.15666556358337402,
-0.19859537482261658,
-0.3344659209251404,
0.0011099304538220167,
-0.11166389286518097,
-0.02555195242166519,
0.43100348114967346,
-0.05484165623784065,
0.09423434734344482,
-0.28058844804763794,
0.17674876749515533,
0.23031099140644073,
0.2608215808868408,
-0.09356154501438141,
0.17464569211006165,
0.21108189225196838,
0.0750599279999733,
0.38841256499290466,
-0.12536105513572693,
-0.22125299274921417,
-0.21447063982486725,
0.3347361981868744,
-0.12474645674228668,
-0.15533830225467682,
-0.08336533606052399,
0.22263576090335846,
-0.1695813536643982,
-0.3365008234977722,
0.30253109335899353,
-0.0054215313866734505,
-0.22300846874713898,
0.19864016771316528,
0.3504716753959656,
0.29631665349006653,
-0.026018107309937477,
0.20465576648712158,
0.010253474116325378,
-0.1880021095275879,
-0.16794103384017944,
-0.27537739276885986,
-0.31788450479507446,
0.16600698232650757,
0.45335596799850464,
0.1563892662525177,
0.047357525676488876,
-0.09701042622327805,
-0.014806668274104595,
-0.22120551764965057,
-0.4241659641265869,
0.06605003029108047,
-0.06835560500621796,
0.08642954379320145,
0.28571805357933044,
-0.15391871333122253,
0.30052438378334045,
-0.2875228524208069,
0.07204829901456833,
-0.21196797490119934,
-0.4271264374256134,
-0.2759726643562317,
-0.056546904146671295,
0.1780339628458023,
-0.037533778697252274,
-0.32554957270622253,
-0.02707792818546295,
-0.532686710357666,
-0.3123990595340729,
-0.12824000418186188,
0.2727522850036621,
0.44099557399749756,
-0.12964074313640594,
0.005306396167725325,
-0.21177776157855988,
0.5039593577384949,
-0.14663341641426086,
0.16231220960617065,
0.02962859906256199,
0.33178871870040894,
0.008961125276982784,
0.20383165776729584,
-0.09911555796861649,
0.07619684934616089,
0.08180384337902069,
0.1574377417564392,
0.21227365732192993,
0.12287373840808868,
0.44521576166152954,
-0.14625148475170135,
0.15636713802814484,
0.24989144504070282,
0.5009356737136841,
0.16290198266506195,
-0.0704718828201294,
0.12165883183479309,
0.20804902911186218,
0.2638338506221771,
-0.33409368991851807,
0.006575351115316153,
0.07387268543243408,
0.14300879836082458,
0.3401825726032257,
0.1444488763809204,
0.4526938199996948,
0.09535852819681168,
0.005178239196538925,
0.012638711370527744,
0.343519389629364,
-0.07534981518983841,
0.22372125089168549,
0.07389149814844131,
0.04698561504483223,
0.05966540426015854,
-0.037816062569618225,
0.39011144638061523,
0.047124944627285004,
0.2782614529132843,
-0.321748822927475,
0.2200019210577011,
0.08603965491056442,
0.1509750932455063,
-0.24488861858844757,
-0.47545668482780457,
0.4114574193954468,
0.07126785814762115,
-0.10157670080661774,
-0.18774005770683289,
-0.2861890196800232,
0.2244451940059662,
-0.37016403675079346,
-0.05365988612174988,
-0.07750022411346436,
0.08453905582427979,
-0.06990187615156174,
0.08859477192163467,
-0.3811098635196686,
-0.35103264451026917,
-0.07359402626752853,
0.11835097521543503,
0.052844852209091187,
-0.024110844358801842,
0.027261866256594658,
-0.034705571830272675,
0.09389639645814896,
-0.3102182149887085,
0.14470435678958893,
0.04021742567420006,
0.09825902432203293,
-0.030761471018195152,
0.03108111023902893,
0.18606895208358765,
0.02186792530119419,
0.14004509150981903,
0.4324548542499542,
0.2805567681789398,
0.08853365480899811,
-0.18219885230064392,
0.1789686232805252,
0.009646848775446415,
-0.06145750358700752,
-0.13084301352500916,
0.07283753156661987,
0.006597262341529131,
0.11478905379772186,
0.32942360639572144,
0.15862926840782166,
-0.19990195333957672,
0.35883840918540955,
-0.13050375878810883,
-0.2217882126569748,
-0.49707189202308655,
0.23960047960281372,
0.23929297924041748,
-0.12374573200941086,
-0.05840767174959183,
-0.26564881205558777,
-0.2500070035457611,
-0.26321348547935486,
0.4473285675048828,
-0.009919177740812302,
0.14950814843177795,
-0.23250709474086761,
0.11047722399234772,
-0.003967220429331064,
0.4872249662876129,
0.1359919160604477,
0.2626900374889374,
-0.246720090508461,
0.1591036021709442,
-0.8487074375152588,
-0.10102450847625732,
-0.13505753874778748,
0.2625240683555603,
-0.006099026650190353,
0.07039318233728409,
0.12941943109035492,
0.497467041015625,
0.0732409805059433,
0.13483937084674835,
0.19894108176231384,
-0.17261430621147156,
-0.311272531747818,
-0.15946778655052185,
-0.07587837427854538,
-0.07882296293973923,
-0.06832189857959747,
-0.24027428030967712,
0.061713267117738724,
-0.34754136204719543,
-0.0013597389915958047,
0.02756153605878353,
0.10042700916528702,
-0.08791536092758179,
-0.012024793773889542,
0.5188186168670654,
0.028614306822419167,
0.3453909754753113,
0.302717924118042,
-0.1201029047369957,
-0.10799361765384674,
0.07161730527877808,
-0.023257797583937645,
0.05834614858031273,
-0.038042809814214706,
-0.051773831248283386,
-0.19845183193683624,
-0.21233905851840973,
-0.23148572444915771,
0.22407971322536469,
0.08032889664173126,
0.023161739110946655,
-0.07774871587753296,
-0.0508507676422596,
0.09004513919353485,
0.1569565385580063,
-0.06310087442398071,
0.034296464174985886,
-0.09619151800870895,
0.24042771756649017,
-0.25288674235343933,
0.0804956927895546,
0.33428090810775757,
0.017955569550395012,
0.017516063526272774,
-0.37618160247802734,
0.3429674804210663,
0.23217837512493134,
0.01763058267533779,
-0.522622287273407,
0.09299922734498978,
0.3145461082458496,
-0.15647171437740326,
-0.043337009847164154,
0.3258460760116577,
-0.254150927066803,
-0.19670943915843964,
0.011406022123992443,
0.22309510409832,
-0.2774825394153595,
-0.2227725088596344,
0.06501621007919312,
-0.11797743290662766
] |
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.4490855634212494,
0.20950542390346527,
-0.059819016605615616,
0.12935075163841248,
0.26219144463539124,
-0.13128547370433807,
0.5469631552696228,
0.09492633491754532,
0.31543830037117004,
0.22943030297756195,
0.051040537655353546,
-0.003159923944622278,
0.047942060977220535,
0.4036766290664673,
-0.10322190821170807,
-0.11917857080698013,
-0.10968092083930969,
0.08062317967414856,
-0.17092736065387726,
0.09250400215387344,
-0.18166591227054596,
-0.0897304117679596,
-0.3750770092010498,
-0.025563105940818787,
-0.10498476028442383,
-0.17465993762016296,
-0.10713925957679749,
0.15669557452201843,
-0.21037432551383972,
-0.33272016048431396,
0.2491135448217392,
0.11758745461702347,
0.16342584788799286,
0.42416802048683167,
-0.00009998221503337845,
0.04213365539908409,
0.10690633952617645,
0.0379943922162056,
-0.2203458696603775,
-0.41991499066352844,
-0.19817498326301575,
-0.4793078899383545,
0.2418380081653595,
-0.4018022418022156,
-0.17578436434268951,
-0.1275007724761963,
-0.05988514795899391,
-0.4807879626750946,
0.2974683344364166,
0.34264567494392395,
0.29182106256484985,
0.5356078147888184,
-0.08033688366413116,
-0.2813909351825714,
-0.12166302651166916,
-0.058618851006031036,
-0.17785920202732086,
0.42528316378593445,
0.07335824519395828,
-0.012379826977849007,
-0.08388148993253708,
0.08884461224079132,
-0.1531626433134079,
0.09564188122749329,
0.3111792504787445,
0.07130648195743561,
-0.0924655869603157,
-0.15283428132534027,
0.20285552740097046,
0.3944050073623657,
0.46031850576400757,
-0.3109176456928253,
-0.2949756383895874,
-0.34113743901252747,
-0.0479009672999382,
-0.43618759512901306,
0.1274564415216446,
0.14417468011379242,
0.009027935564517975,
0.23398293554782867,
-0.3632719814777374,
-0.2975683808326721,
-0.3418590724468231,
0.16949529945850372,
-0.2816980481147766,
0.018108675256371498,
-0.25167497992515564,
0.04136914387345314,
-0.08324217796325684,
0.07528560608625412,
-0.15515193343162537,
-0.3205261528491974,
0.09862076491117477,
-0.07936236262321472,
-0.1888291835784912,
-0.016528736799955368,
0.15342675149440765,
0.008189705200493336,
0.12179763615131378,
0.07514851540327072,
0.15253445506095886,
-0.00604544673115015,
0.09262906759977341,
0.06802280247211456,
0.44271406531333923,
0.31814658641815186,
0.01885373704135418,
-0.2447730004787445,
0.5638328194618225,
0.06074751541018486,
-0.0046470086090266705,
-0.28826141357421875,
0.32976034283638,
-0.28732603788375854,
0.0361548587679863,
-0.01608753763139248,
0.3358914256095886,
-0.2712707221508026,
-0.09168358892202377,
0.06043664366006851,
0.14952334761619568,
-0.08216553926467896,
0.15366770327091217,
0.20713846385478973,
-0.2203722596168518,
0.02957766503095627,
0.034623220562934875,
0.39587879180908203,
-0.24150480329990387,
-0.23479609191417694,
-0.10894849896430969,
-0.1066199392080307,
-0.10558731108903885,
0.07447166740894318,
0.18881559371948242,
-0.01310829259455204,
0.12141258269548416,
-0.04023999348282814,
0.21052183210849762,
-0.0341559536755085,
0.2786377966403961,
-0.1574518382549286,
0.047997985035181046,
0.2500384449958801,
0.1872585415840149,
-0.10623341798782349,
0.056780729442834854,
-0.23557022213935852,
0.03812123462557793,
-0.003579511074349284,
-0.04362628608942032,
-0.4049879312515259,
0.09630755335092545,
0.279832124710083,
-0.5623064041137695,
-0.1680537909269333,
-0.25484323501586914,
0.12977252900600433,
-0.2823045253753662,
-0.09712591767311096,
0.020675260573625565,
-0.009743811562657356,
-0.14495113492012024,
-0.19830815494060516,
0.23908282816410065,
0.5462023019790649,
-0.4452933073043823,
0.08768543601036072,
0.12178373336791992,
-0.18718531727790833,
-0.17599304020404816,
0.06420370936393738,
-0.34309908747673035,
0.5343936681747437,
0.051756761968135834,
-0.2778851091861725,
0.5229830145835876,
-0.35826119780540466,
-0.23452094197273254,
0.28883716464042664,
-0.16102750599384308,
-0.14413867890834808,
-0.0667065680027008,
0.04983092471957207,
0.3899841010570526,
0.11929779499769211,
0.00014239372103475034,
0.24310176074504852,
-0.056448012590408325,
0.019569171592593193,
-0.2536441683769226,
-0.32352790236473083,
0.14072218537330627,
0.2494022101163864,
0.3065224289894104,
0.12399006634950638,
0.27923497557640076,
-0.257869154214859,
-0.0405985563993454,
-0.26234325766563416,
0.16544272005558014,
0.1579178124666214,
0.20993120968341827,
0.10231682658195496,
-0.048367325216531754,
-0.20591115951538086,
-0.47607678174972534,
0.22526052594184875,
0.03369860351085663,
0.2320871502161026,
-0.23021605610847473,
-0.14966058731079102,
-0.008372440934181213,
-0.17970895767211914,
-0.15976478159427643,
-0.04252731055021286,
0.16914983093738556,
-0.13886778056621552,
0.18496650457382202,
0.17605240643024445,
-0.3189752399921417,
0.14390964806079865,
-0.056265223771333694,
0.025987455621361732,
-0.11554045230150223,
0.2796715199947357,
-0.08094654977321625,
0.023198720067739487,
0.04264084994792938,
0.083867147564888,
-0.0070752911269664764,
-0.18599295616149902,
-0.1073741763830185,
0.4920403063297272,
-0.06001121923327446,
0.05086420103907585,
0.3152618110179901,
0.3613796830177307,
0.356087863445282,
0.039762552827596664,
0.5095070600509644,
-0.12183880805969238,
0.3111966550350189,
-0.07704493403434753,
-0.33568722009658813,
0.6987394094467163,
-0.1456821858882904,
0.2038484364748001,
0.09568305313587189,
0.0029150769114494324,
0.314201295375824,
-0.0028085228987038136,
-0.39355695247650146,
-0.06533903628587723,
0.07977084815502167,
-0.04444034770131111,
0.21489539742469788,
-0.06781014800071716,
-0.3889365792274475,
-0.02299923449754715,
0.37562474608421326,
-0.00016962522931862622,
0.1845325231552124,
-0.00014111321070231497,
0.01949397847056389,
0.06274434179067612,
-0.059695251286029816,
0.08411924540996552,
0.5141711235046387,
0.2386389523744583,
0.03796729817986488,
0.25228598713874817,
-0.07030685245990753,
-0.3152323365211487,
0.1395316869020462,
0.2154919058084488,
0.009247121401131153,
0.07897868007421494,
0.08997368812561035,
-0.0033893550280481577,
-0.3099716603755951,
-0.053568676114082336,
-0.029212387278676033,
0.0814722403883934,
-0.23267862200737,
0.24594402313232422,
-0.3154212236404419,
-0.0520220622420311,
0.04224035143852234,
0.11195272207260132,
-0.4437064230442047,
-0.2312432825565338,
0.08682642132043839,
0.03583000972867012,
-0.2842268943786621,
0.14750096201896667,
-0.08974228799343109,
0.4524804949760437,
-0.20497091114521027,
-0.13875944912433624,
0.12793292105197906,
-0.5095145106315613,
-0.10333134233951569,
0.13387127220630646,
0.3391275107860565,
0.1479603499174118,
0.49925553798675537,
0.008694160729646683,
-0.07728610187768936,
-0.29071736335754395,
-0.18749766051769257,
0.06619802862405777,
-0.08808425813913345,
0.3189200758934021,
0.066863514482975,
0.04812295362353325,
-0.04875677451491356,
0.22543731331825256,
0.4193478524684906,
-0.30619704723358154,
0.17071525752544403,
0.08558578044176102,
-0.052099455147981644,
-0.15533967316150665,
-0.34591734409332275,
-0.48720598220825195,
-0.41300633549690247,
-0.4035477340221405,
0.2704857289791107,
0.026738133281469345,
-0.029248332604765892,
0.12430939078330994,
0.15803863108158112,
0.10010409355163574,
-0.01761052943766117,
0.20505617558956146,
-0.21885628998279572,
-0.4933140277862549,
0.12404092401266098,
-0.23167546093463898,
-0.5781073570251465,
0.20559000968933105,
0.1968122124671936,
0.1813325434923172,
0.23949596285820007,
-0.48664775490760803,
-0.37479519844055176,
0.04225434735417366,
0.3973853886127472,
0.18707546591758728,
0.3177497386932373,
0.3660067915916443,
-0.024662746116518974,
-0.07663112133741379,
-0.07843225449323654,
0.024658329784870148,
0.20007449388504028,
0.09790172427892685,
-0.12540097534656525,
0.0741911232471466,
0.3168509304523468,
-0.05953589454293251,
0.4317924678325653,
-0.011108309961855412,
0.04961396008729935,
0.2642011344432831,
-0.11141412705183029,
0.6812877058982849,
-0.26946839690208435,
-0.14404186606407166,
0.01329047791659832,
-0.058787740767002106,
-0.25125423073768616,
0.2106083184480667,
0.015765490010380745,
-0.036256588995456696,
-0.6542550921440125,
-0.009702335111796856,
-0.4030842185020447,
-0.38564273715019226,
0.08408938348293304,
0.13159187138080597,
0.3249269127845764,
0.12207717448472977,
0.23257972300052643,
-0.2801956832408905,
0.007006601430475712,
-0.07424638420343399,
0.24773210287094116,
0.06175849214196205,
-0.0998934954404831,
-0.2681431770324707,
0.009502250701189041,
-0.37755224108695984,
0.3366503119468689,
-0.12583905458450317,
0.258076012134552,
-0.07711517065763474,
-0.03052145428955555,
0.007171571254730225,
-0.12932121753692627,
0.35944026708602905,
-0.37628301978111267,
-0.1614648550748825,
0.2891309857368469,
-0.09685522317886353,
-0.27328482270240784,
0.08448737859725952,
-0.1972353756427765,
0.04960869625210762,
0.14479990303516388,
0.2760506570339203,
-0.08429381996393204,
-0.30760106444358826,
0.061060257256031036,
0.3504800796508789,
-0.2497560977935791,
-0.188238263130188,
-0.17179261147975922,
-0.15453477203845978,
-0.3299393057823181,
0.05285651609301567,
-0.23171156644821167,
0.04911727458238602,
-0.08698103576898575,
0.11360345780849457,
-0.19496756792068481,
0.15583615005016327,
-0.06426089257001877,
0.09747374802827835,
0.07337301224470139,
-0.2716412842273712,
0.22727921605110168,
0.230769544839859,
0.1161041334271431,
0.3351894021034241,
0.33777329325675964,
-0.12337423115968704,
-0.2471136599779129,
0.18110895156860352,
-0.05647553130984306,
0.3620418608188629,
0.4465482234954834,
-0.07298826426267624,
-0.09751737117767334,
0.1527472287416458,
0.27581316232681274,
-0.420082151889801,
-0.14561861753463745,
0.20552682876586914,
0.17815200984477997,
-0.06869272142648697,
-0.3760140538215637,
0.24424082040786743,
0.11299271881580353,
-0.053322672843933105,
0.015025871805846691,
0.12303386628627777,
-0.18846258521080017,
0.22140289843082428,
-0.05930308625102043,
0.7759786248207092,
-0.06803954392671585,
0.15732531249523163,
0.22852948307991028,
-0.046027958393096924,
0.4807918071746826,
-0.3189831078052521,
0.017278563231229782,
-0.04013983905315399,
-0.19411960244178772,
0.0036332232411950827,
-0.10702274739742279,
0.4337176978588104,
-0.04157772660255432,
-0.0733088031411171,
0.5114349126815796,
0.049392979592084885,
0.3181034028530121,
-0.3153351843357086,
0.24382448196411133,
-0.07387705147266388,
-0.20791038870811462,
-0.5192408561706543,
0.24451373517513275,
0.11847896128892899,
0.08330345898866653,
-0.2140762358903885,
-0.24249255657196045,
0.07302875071763992,
0.04494999721646309,
-0.0016664996510371566,
-0.16838739812374115,
0.024413803592324257,
0.09009207040071487,
-0.16062691807746887,
-0.026859218254685402,
-0.01015305146574974,
0.1060672178864479,
0.4375321865081787,
0.13665913045406342,
-0.3299781382083893,
0.007786022499203682,
-0.39497247338294983,
0.15776748955249786,
0.026051577180624008,
0.20851323008537292,
0.20681309700012207,
-0.21949483454227448,
-0.23411528766155243,
0.019463075324892998,
-0.11119052767753601,
-0.04316352680325508,
0.37167978286743164,
-0.09794829040765762,
-0.07603955268859863,
-0.24627095460891724,
0.18239785730838776,
0.20292939245700836,
0.1959362030029297,
-0.11741744726896286,
0.2011956125497818,
0.21460233628749847,
0.12221872061491013,
0.35258400440216064,
-0.13769257068634033,
-0.20146791636943817,
-0.29378992319107056,
0.320530503988266,
-0.0845629870891571,
-0.17774870991706848,
-0.07223346084356308,
0.21065817773342133,
-0.23534457385540009,
-0.3138156235218048,
0.22930999100208282,
0.04631524533033371,
-0.11344064772129059,
0.25720447301864624,
0.33158957958221436,
0.24621248245239258,
-0.14655014872550964,
0.2690948247909546,
0.07185344398021698,
-0.18565280735492706,
-0.07778078317642212,
-0.32748231291770935,
-0.3413885235786438,
0.25607362389564514,
0.4513753652572632,
0.1558256596326828,
0.11476048827171326,
-0.05527518689632416,
0.086639404296875,
-0.19716927409172058,
-0.4408751428127289,
0.06798528134822845,
-0.10292642563581467,
0.06602882593870163,
0.249393492937088,
-0.17308056354522705,
0.3766612112522125,
-0.19028371572494507,
0.10507336258888245,
-0.17152974009513855,
-0.33767423033714294,
-0.3105432391166687,
0.040070027112960815,
0.1459280252456665,
-0.012358635663986206,
-0.29672908782958984,
-0.025279229506850243,
-0.5543742179870605,
-0.32032546401023865,
-0.13491646945476532,
0.2085365206003189,
0.41518956422805786,
-0.19135181605815887,
0.027602707967162132,
-0.18674880266189575,
0.37407487630844116,
-0.03890446573495865,
0.08199276775121689,
0.03259196877479553,
0.3030623197555542,
-0.003084241645410657,
0.2432994693517685,
-0.029511170461773872,
0.04305693879723549,
0.025394827127456665,
0.10726021975278854,
0.08517283201217651,
0.13141991198062897,
0.41547662019729614,
-0.22441589832305908,
0.10768771916627884,
0.29655227065086365,
0.5483060479164124,
0.21454110741615295,
-0.0864289328455925,
0.1891995221376419,
0.16145560145378113,
0.3001295328140259,
-0.36357954144477844,
0.0032811725977808237,
0.02434011921286583,
0.1369268298149109,
0.3610403835773468,
0.061507657170295715,
0.4126152992248535,
0.022325225174427032,
-0.07993151992559433,
0.022095762193202972,
0.32850906252861023,
-0.1095597892999649,
0.2245299369096756,
0.12351514399051666,
0.06354156881570816,
0.10752598941326141,
0.08228576183319092,
0.4751985967159271,
0.016165275126695633,
0.3380526304244995,
-0.2761106789112091,
0.19018860161304474,
0.03580758348107338,
0.16101022064685822,
-0.19965839385986328,
-0.3803309202194214,
0.373585045337677,
0.012612057849764824,
-0.09095863997936249,
-0.22750258445739746,
-0.22773508727550507,
0.25177302956581116,
-0.45064109563827515,
-0.06101232022047043,
-0.1715678572654724,
0.1333221197128296,
-0.12181312590837479,
0.024881308898329735,
-0.39790651202201843,
-0.3176383078098297,
0.015625445172190666,
0.12472666800022125,
0.07117883116006851,
-0.04802713915705681,
0.006254125852137804,
-0.04222804307937622,
0.07728634774684906,
-0.18694934248924255,
0.1966550201177597,
-0.04459219053387642,
0.09621018171310425,
-0.010902363806962967,
0.025919029489159584,
0.2208554893732071,
-0.0055055939592421055,
0.05313072353601456,
0.4975890517234802,
0.3380306363105774,
0.04152805358171463,
-0.23035041987895966,
0.14561691880226135,
-0.05220026522874832,
-0.14743615686893463,
-0.10493579506874084,
0.17912302911281586,
0.03733159229159355,
0.1159134954214096,
0.37948867678642273,
0.20811714231967926,
-0.22560669481754303,
0.3958676755428314,
-0.11642332375049591,
-0.11571714282035828,
-0.42895522713661194,
0.23676368594169617,
0.2151343822479248,
-0.15472477674484253,
-0.04183495417237282,
-0.30537280440330505,
-0.1934446096420288,
-0.16616250574588776,
0.41171714663505554,
-0.0005011443281546235,
0.13323141634464264,
-0.25208762288093567,
0.14978724718093872,
0.10072018951177597,
0.45058995485305786,
0.18467292189598083,
0.24237339198589325,
-0.23920296132564545,
0.07929447293281555,
-0.6985381245613098,
-0.16707780957221985,
-0.12812626361846924,
0.3263779580593109,
-0.07358424365520477,
0.10575301200151443,
0.11156753450632095,
0.41243860125541687,
-0.0063059101812541485,
0.17601341009140015,
0.059698618948459625,
-0.21316829323768616,
-0.31564217805862427,
-0.06605920195579529,
-0.12220063805580139,
-0.12911789119243622,
0.007462594658136368,
-0.22769299149513245,
0.14308051764965057,
-0.33697620034217834,
0.03819812461733818,
0.0014552882639691234,
0.22137810289859772,
-0.17708666622638702,
-0.1268342286348343,
0.4185495972633362,
0.10408110916614532,
0.33642861247062683,
0.1634535789489746,
-0.08263352513313293,
-0.04675455391407013,
-0.00298762577585876,
-0.06483972817659378,
0.194352924823761,
-0.0771048441529274,
-0.034764088690280914,
-0.16950099170207977,
-0.17485761642456055,
-0.16514161229133606,
0.19062691926956177,
0.040540434420108795,
0.023737803101539612,
-0.14283695816993713,
-0.04906180873513222,
0.058735791593790054,
0.06168586015701294,
0.052844464778900146,
0.08251343667507172,
-0.11660231649875641,
0.2132480889558792,
-0.16736480593681335,
0.01565008983016014,
0.3196127116680145,
-0.06937534362077713,
0.009911867789924145,
-0.36812257766723633,
0.28379693627357483,
0.2504240870475769,
-0.03425516560673714,
-0.4602259397506714,
0.156126007437706,
0.29614222049713135,
-0.1832103580236435,
-0.15913580358028412,
0.29707956314086914,
-0.21991153061389923,
-0.1853579878807068,
-0.05066032335162163,
0.1897987276315689,
-0.2244892418384552,
-0.2536669671535492,
0.013835054822266102,
-0.15920811891555786
] |
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.5023798942565918,
-0.17439578473567963,
-0.22950224578380585,
0.13015763461589813,
0.17803551256656647,
0.031794723123311996,
0.295561820268631,
0.17130425572395325,
-0.14847084879875183,
0.17807669937610626,
0.009121058508753777,
0.1247817650437355,
0.0641203448176384,
0.2456226497888565,
-0.05616532638669014,
-0.03589142858982086,
-0.07459706813097,
0.04837750643491745,
0.10960907489061356,
0.007234328892081976,
-0.3676093816757202,
0.06899808347225189,
-0.4043067991733551,
0.05223469436168671,
-0.22304706275463104,
-0.2693561315536499,
-0.06124535948038101,
-0.039256948977708817,
-0.0044130017049610615,
-0.15258929133415222,
-0.0022252709604799747,
0.2334943562746048,
0.2088398039340973,
0.4326499104499817,
-0.00010495645983610302,
0.07853080332279205,
0.24677565693855286,
0.03938224911689758,
-0.29033541679382324,
0.22262760996818542,
-0.049400147050619125,
-0.1695532351732254,
-0.10629788041114807,
-0.30420929193496704,
-0.10083691775798798,
-0.08600109815597534,
-0.13855892419815063,
-0.3374294638633728,
0.38483133912086487,
0.17538373172283173,
0.2844720184803009,
0.2802557945251465,
-0.14760500192642212,
0.1414179503917694,
0.06100449338555336,
0.0714532658457756,
0.08511283248662949,
-0.39020878076553345,
0.06823216378688812,
0.1479281485080719,
-0.048406075686216354,
0.14962032437324524,
-0.27203047275543213,
0.08594096451997757,
-0.25509798526763916,
0.02188785932958126,
0.02609829045832157,
-0.3847031593322754,
0.08848565071821213,
-0.13497599959373474,
0.28465983271598816,
-0.21236251294612885,
-0.24407419562339783,
-0.38425713777542114,
-0.2724657654762268,
-0.46531710028648376,
-0.02697874791920185,
0.11313331872224808,
-0.06848166882991791,
0.10127143561840057,
-0.07858730107545853,
0.2408464103937149,
-0.07372303307056427,
-0.16669444739818573,
0.11142800748348236,
0.25681236386299133,
-0.21192392706871033,
0.2198820412158966,
0.07004069536924362,
0.08878831565380096,
0.16481442749500275,
-0.23507161438465118,
-0.0004338668077252805,
0.2723606526851654,
-0.4907975196838379,
-0.08711985498666763,
-0.11177559196949005,
-0.15199099481105804,
-0.14089512825012207,
0.054160311818122864,
-0.12841272354125977,
0.1272299438714981,
0.3161284327507019,
0.1564188450574875,
-0.029597053304314613,
0.16435633599758148,
0.11872153729200363,
0.2562074363231659,
-0.07711866497993469,
-0.3050597012042999,
-0.226043239235878,
0.027756625786423683,
-0.0785897970199585,
-0.3298470377922058,
0.14713989198207855,
0.3610413372516632,
0.24992552399635315,
0.030278101563453674,
-0.48716482520103455,
-0.09039247035980225,
-0.019041873514652252,
-0.058097731322050095,
0.14209291338920593,
0.28459176421165466,
-0.24076269567012787,
0.25084546208381653,
-0.08102641254663467,
-0.1523163914680481,
-0.2926349639892578,
-0.04619588330388069,
-0.3027384281158447,
-0.11525656282901764,
-0.14961902797222137,
0.07027850300073624,
0.1349768191576004,
-0.17216046154499054,
0.32391878962516785,
0.07558294385671616,
0.09628608822822571,
-0.17466042935848236,
0.5014525055885315,
-0.3949425220489502,
0.22241246700286865,
0.2599140405654907,
0.1795816719532013,
0.24264977872371674,
0.05320121720433235,
0.2097659856081009,
0.0399613194167614,
0.07378165423870087,
-0.6257683634757996,
-0.1791185438632965,
0.24746179580688477,
0.31384921073913574,
-0.050552014261484146,
0.0014614993706345558,
-0.593583881855011,
-0.08692235499620438,
0.3213268220424652,
0.09062712639570236,
0.11971037089824677,
-0.17542532086372375,
-0.18599608540534973,
-0.1946796476840973,
0.2003978192806244,
0.08525828272104263,
-0.4504088759422302,
0.06793262809515,
-0.11536317318677902,
-0.32274508476257324,
0.5454287528991699,
0.12426839768886566,
-0.1138663962483406,
0.6199549436569214,
-0.3095552623271942,
0.37830257415771484,
0.1937197744846344,
-0.31893935799598694,
-0.2815084755420685,
0.5390695929527283,
-0.25751182436943054,
0.018086817115545273,
0.03982074186205864,
0.03250701352953911,
0.5586618781089783,
-0.06028645858168602,
0.03623020276427269,
0.37874341011047363,
-0.11922872811555862,
0.09029819816350937,
-0.09957031905651093,
0.1156371533870697,
0.08595391362905502,
-0.01740802824497223,
0.1038927212357521,
0.04386376589536667,
-0.21674321591854095,
-0.04455336183309555,
0.17378176748752594,
0.05349965766072273,
0.29659923911094666,
0.24967429041862488,
0.011494436301290989,
0.20879799127578735,
0.19324623048305511,
-0.04541277512907982,
-0.29646551609039307,
0.09573202580213547,
-0.020333189517259598,
-0.1832335889339447,
0.04056388884782791,
-0.3565833866596222,
-0.14273856580257416,
0.14648360013961792,
-0.4080851972103119,
-0.17031456530094147,
0.21879349648952484,
0.09122394025325775,
0.022361109033226967,
-0.31332704424858093,
0.0051416452042758465,
0.32892587780952454,
-0.01843753084540367,
0.032012976706027985,
-0.19385415315628052,
-0.02204519510269165,
0.007847060449421406,
-0.15076443552970886,
-0.06133441999554634,
-0.079200379550457,
0.2228221595287323,
0.007429632358253002,
-0.04933439940214157,
0.3533657491207123,
0.27474546432495117,
0.06399539858102798,
-0.0365166962146759,
-0.12384643405675888,
-0.010248695500195026,
0.1141468733549118,
-0.0905265286564827,
-0.03585357218980789,
0.217173233628273,
-0.12560662627220154,
0.24783125519752502,
0.4252821207046509,
-0.04693382605910301,
0.2657581567764282,
-0.038255658000707626,
-0.2736455500125885,
0.22645239531993866,
-0.0702165812253952,
-0.04286834970116615,
0.19769126176834106,
-0.04587250202894211,
0.0015268096467480063,
0.3408334255218506,
0.04400493577122688,
-0.05594795569777489,
0.17708590626716614,
0.4273042380809784,
-0.004344564396888018,
-0.16920289397239685,
-0.01923055201768875,
-0.20830518007278442,
0.10800890624523163,
0.15949605405330658,
-0.025842173025012016,
0.12190842628479004,
0.16937154531478882,
0.11964856088161469,
-0.10231403261423111,
0.10452378541231155,
-0.03796309232711792,
0.08203040808439255,
0.31707465648651123,
0.18052005767822266,
0.16187432408332825,
-0.0916261076927185,
-0.05618126690387726,
-0.003679987508803606,
-0.11006923019886017,
0.19136181473731995,
0.23988433182239532,
-0.3654329180717468,
0.21322001516819,
-0.14592941105365753,
-0.08981004357337952,
-0.15111860632896423,
-0.03144574165344238,
0.16132844984531403,
-0.13982650637626648,
-0.07640720903873444,
0.2173890322446823,
-0.1582907736301422,
0.028309952467679977,
-0.08624438941478729,
0.03933637589216232,
0.2715219557285309,
-0.38074591755867004,
-0.16086293756961823,
-0.0596173033118248,
-0.18188261985778809,
0.20186206698417664,
0.06786809116601944,
0.1080862507224083,
0.46832266449928284,
0.051433682441711426,
0.03878457471728325,
-0.11555047333240509,
-0.1522180289030075,
0.07787866145372391,
-0.19765181839466095,
0.17671051621437073,
0.016944555565714836,
0.14017483592033386,
-0.10795988887548447,
-0.38399478793144226,
0.13910795748233795,
-0.18394114077091217,
-0.3313491940498352,
-0.08557284623384476,
-0.017347922548651695,
0.04050082713365555,
-0.20870688557624817,
-0.4318091571331024,
-0.2330218404531479,
-0.17911149561405182,
0.021623626351356506,
-0.06954973936080933,
0.20324786007404327,
-0.009369011037051678,
-0.017889568582177162,
0.149721160531044,
0.2623838186264038,
-0.15724630653858185,
-0.0877210721373558,
-0.488126665353775,
0.12461274862289429,
-0.28363025188446045,
-0.01973256655037403,
-0.0922568067908287,
-0.10247068852186203,
0.4223558008670807,
0.3086372911930084,
-0.19039317965507507,
0.11806026101112366,
-0.08892660588026047,
0.24083173274993896,
-0.09775390475988388,
-0.026535481214523315,
0.195407897233963,
-0.07893296331167221,
-0.09966438263654709,
-0.11733446270227432,
0.0736234188079834,
0.11769789457321167,
-0.24143798649311066,
0.06471464037895203,
-0.01778431609272957,
0.6492413878440857,
-0.019282806664705276,
0.9116159081459045,
0.08709535002708435,
-0.08747818320989609,
0.13292542099952698,
0.0044224197044968605,
-0.15794019401073456,
-0.012976313009858131,
-0.30091723799705505,
0.09074528515338898,
0.02797781489789486,
-0.18693625926971436,
0.19288814067840576,
-0.1721881926059723,
-0.008557389490306377,
0.07027691602706909,
-0.017148876562714577,
-0.6442944407463074,
-0.06746646016836166,
0.07695269584655762,
0.004139683209359646,
0.34356993436813354,
-0.15659572184085846,
0.06825892627239227,
-0.28335312008857727,
-0.05906948447227478,
-0.09082859754562378,
0.04647073894739151,
0.2381594479084015,
-0.18369045853614807,
-0.3598339855670929,
0.08883531391620636,
-0.2709052264690399,
0.2956254780292511,
0.06683948636054993,
0.33355239033699036,
0.02760336734354496,
-0.04001671075820923,
0.11126259714365005,
-0.1317257583141327,
0.7860830426216125,
-0.04430133476853371,
0.06751645356416702,
0.057194262742996216,
-0.2433977574110031,
-0.161509707570076,
-0.0845043882727623,
-0.33915331959724426,
0.2084004282951355,
0.5520220994949341,
0.29441869258880615,
-0.21103781461715698,
-0.362880140542984,
0.01731279492378235,
-0.18864166736602783,
-0.16484712064266205,
-0.29953232407569885,
-0.33777907490730286,
-0.14936664700508118,
-0.3823873698711395,
0.31098461151123047,
0.2597954273223877,
0.11348292231559753,
-0.43688809871673584,
-0.37128904461860657,
-0.30570098757743835,
-0.08963459730148315,
0.19536364078521729,
-0.06653831154108047,
0.028660813346505165,
0.023897064849734306,
0.21611842513084412,
0.021995127201080322,
0.28753888607025146,
0.3828943371772766,
0.21269552409648895,
-0.1729630082845688,
-0.3372837007045746,
0.1827806830406189,
-0.09838761389255524,
0.48431146144866943,
0.028595658019185066,
-0.2987980544567108,
0.3437288701534271,
-0.0373791866004467,
0.1920209676027298,
-0.45076021552085876,
0.5017998814582825,
0.4323759973049164,
0.18065008521080017,
-0.5321656465530396,
-0.5739410519599915,
0.15346691012382507,
0.3390217125415802,
-0.09803416579961777,
0.1371520459651947,
-0.23289203643798828,
-0.2770267426967621,
0.10098818689584732,
0.19510255753993988,
0.6205475926399231,
-0.025613507255911827,
-0.0886724442243576,
0.10174768418073654,
0.28923776745796204,
0.06580018997192383,
-0.20645752549171448,
0.10265779495239258,
-0.3231615126132965,
0.004105274099856615,
0.03233443573117256,
-0.17724335193634033,
0.2091565579175949,
0.40434518456459045,
-0.13527080416679382,
0.19735652208328247,
-0.1509767770767212,
0.21516291797161102,
-0.15519104897975922,
0.30898141860961914,
0.042141493409872055,
-0.23292845487594604,
-0.05069486424326897,
0.24304990470409393,
-0.13156172633171082,
0.21989314258098602,
-0.15606555342674255,
-0.1121162474155426,
0.12239941209554672,
-0.10483425855636597,
0.20299750566482544,
0.028531115502119064,
-0.45260781049728394,
-0.03279057890176773,
-0.18331438302993774,
-0.15974578261375427,
0.013377092778682709,
-0.08203661441802979,
0.34681811928749084,
0.2518923878669739,
0.1860017031431198,
-0.0041452073492109776,
0.033250898122787476,
0.1427503228187561,
-0.008821043185889721,
-0.3308887183666229,
0.3472423851490021,
-0.04577510058879852,
-0.17525923252105713,
0.048817574977874756,
0.05303480103611946,
-0.27003782987594604,
-0.01716071180999279,
-0.016213634982705116,
0.4081462621688843,
-0.4375678598880768,
-0.07313473522663116,
-0.06176885589957237,
-0.1597326397895813,
-0.09741251915693283,
0.18807083368301392,
-0.0819992646574974,
-0.27768853306770325,
0.4453326165676117,
-0.1918439418077469,
-0.20453281700611115,
-0.045853666961193085,
0.17013795673847198,
0.2722027003765106,
-0.26612329483032227,
0.5271494388580322,
-0.008169912733137608,
-0.2039594054222107,
-0.2986088693141937,
0.11816691607236862,
0.24067550897598267,
-0.17892621457576752,
0.30723246932029724,
0.14913444221019745,
0.18016240000724792,
0.2399325966835022,
0.06528632342815399,
-0.24526961147785187,
0.04562096670269966,
-0.19461137056350708,
-0.2512209713459015,
-0.4587351679801941,
-0.22725284099578857,
-0.14536194503307343,
0.2936919927597046,
0.31263071298599243,
0.2828487157821655,
-0.04983911290764809,
0.3358585834503174,
-0.4065794348716736,
-0.11494053900241852,
-0.15313372015953064,
0.27281665802001953,
0.15248166024684906,
0.012861544266343117,
-0.00670701265335083,
0.22807297110557556,
0.16622334718704224,
0.2789078652858734,
-0.05580614507198334,
-0.3985134959220886,
0.02451758086681366,
0.0459398478269577,
-0.1330239176750183,
-0.06215229257941246,
0.0371130108833313,
-0.02183360420167446,
-0.24584271013736725,
-0.10736281424760818,
0.25165343284606934,
0.013163785450160503,
0.13181579113006592,
0.20925986766815186,
0.442799836397171,
0.33919215202331543,
0.11982103437185287,
0.10461640357971191,
-0.14008520543575287,
0.051942747086286545,
0.03908621147274971,
0.2915996015071869,
0.07285556942224503,
-0.009759850800037384,
-0.008777759969234467,
-0.2714517414569855,
0.6143192052841187,
0.06378408521413803,
0.019337495788931847,
-0.39354971051216125,
-0.2791871726512909,
0.12814682722091675,
0.08865836262702942,
0.29241737723350525,
0.05750029534101486,
-0.28142794966697693,
0.314510703086853,
0.3561897575855255,
0.037448201328516006,
0.31047794222831726,
0.16915255784988403,
-0.13257426023483276,
0.12919703125953674,
0.1397569179534912,
-0.061644259840250015,
0.25249239802360535,
0.10081829875707626,
0.16905555129051208,
0.2947506904602051,
-0.27979764342308044,
0.12887659668922424,
0.19377762079238892,
0.08811336010694504,
0.0643606185913086,
0.30618494749069214,
0.09502346813678741,
0.09196443855762482,
0.41183918714523315,
0.14214135706424713,
0.5869666337966919,
0.15627016127109528,
0.13302329182624817,
0.036066070199012756,
-0.4071049690246582,
-0.3413546681404114,
0.20977066457271576,
-0.3046947717666626,
0.1884247064590454,
-0.014217850752174854,
0.21820971369743347,
0.14944671094417572,
-0.18912212550640106,
-0.08786489069461823,
0.3838889002799988,
-0.46587589383125305,
-0.11966661363840103,
-0.527038037776947,
-0.06187302619218826,
0.04706618934869766,
-0.15252529084682465,
0.1422014683485031,
0.00033502443693578243,
-0.026842886582016945,
0.020939739421010017,
-0.04460590332746506,
0.036110613495111465,
-0.2875399589538574,
0.28775450587272644,
-0.06748685240745544,
-0.1569446474313736,
0.0797996073961258,
-0.026049703359603882,
0.15239377319812775,
-0.006878805812448263,
0.21889503300189972,
0.37610772252082825,
0.3229937255382538,
-0.19221463799476624,
-0.09409601241350174,
0.051729053258895874,
-0.0628715232014656,
-0.16198426485061646,
0.25494882464408875,
-0.1922803372144699,
-0.005393235012888908,
0.38154882192611694,
0.2739577889442444,
-0.24998342990875244,
-0.33492904901504517,
0.02570837363600731,
-0.021839067339897156,
-0.04134780168533325,
0.49666035175323486,
0.11915752291679382,
-0.10868125408887863,
-0.2861166298389435,
-0.02609541080892086,
-0.425494521856308,
-0.049383725970983505,
0.5210591554641724,
-0.41027921438217163,
0.10819438099861145,
-0.18439608812332153,
0.1237969845533371,
-0.2985062003135681,
0.4248540699481964,
0.30588504672050476,
0.28504177927970886,
-0.46722862124443054,
0.01592007279396057,
-0.2836144268512726,
0.2286422848701477,
-0.05010802671313286,
0.0008191954111680388,
-0.24609021842479706,
0.24277381598949432,
-0.20736126601696014,
0.06424172967672348,
-0.06586186587810516,
-0.14118662476539612,
0.08984869718551636,
0.3890625238418579,
-0.34446999430656433,
0.07817695289850235,
-0.3071102499961853,
-0.027143947780132294,
0.13910938799381256,
-0.3164839744567871,
0.16173739731311798,
0.11415951699018478,
0.15744243562221527,
-0.1564980000257492,
0.027107492089271545,
0.2952474355697632,
-0.18972525000572205,
0.2510138750076294,
0.21740075945854187,
0.35639330744743347,
-0.21160219609737396,
0.48408931493759155,
-0.09924298524856567,
0.05625295639038086,
-0.30123385787010193,
-0.16344141960144043,
0.14305461943149567,
0.1765764206647873,
0.022572722285985947,
0.026949483901262283,
-0.24921195209026337,
-0.0863267108798027,
0.08038034290075302,
-0.18460357189178467,
0.03313767537474632,
0.06712189316749573,
-0.05809256434440613,
0.03570099547505379,
0.06812390685081482,
0.1903723031282425,
0.25878119468688965,
0.23001226782798767,
-0.4224676787853241,
-0.424530565738678,
0.4023638367652893,
-0.388386070728302,
-0.30135369300842285,
-0.3631497621536255,
0.2955274283885956,
0.05901477113366127,
0.09622608870267868,
-0.157304048538208,
0.0010303790913894773,
0.444521963596344,
-0.05837036296725273,
-0.007165074814110994,
0.3775213658809662,
0.1706835776567459,
0.20298999547958374,
-0.17770667374134064,
-0.110015369951725,
0.11934844404459,
-0.002676857402548194,
0.07206226140260696,
-0.316292941570282
] |
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 <notifications@github.com>
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 <notifications@github.com>
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.5023798942565918,
-0.17439578473567963,
-0.22950224578380585,
0.13015763461589813,
0.17803551256656647,
0.031794723123311996,
0.295561820268631,
0.17130425572395325,
-0.14847084879875183,
0.17807669937610626,
0.009121058508753777,
0.1247817650437355,
0.0641203448176384,
0.2456226497888565,
-0.05616532638669014,
-0.03589142858982086,
-0.07459706813097,
0.04837750643491745,
0.10960907489061356,
0.007234328892081976,
-0.3676093816757202,
0.06899808347225189,
-0.4043067991733551,
0.05223469436168671,
-0.22304706275463104,
-0.2693561315536499,
-0.06124535948038101,
-0.039256948977708817,
-0.0044130017049610615,
-0.15258929133415222,
-0.0022252709604799747,
0.2334943562746048,
0.2088398039340973,
0.4326499104499817,
-0.00010495645983610302,
0.07853080332279205,
0.24677565693855286,
0.03938224911689758,
-0.29033541679382324,
0.22262760996818542,
-0.049400147050619125,
-0.1695532351732254,
-0.10629788041114807,
-0.30420929193496704,
-0.10083691775798798,
-0.08600109815597534,
-0.13855892419815063,
-0.3374294638633728,
0.38483133912086487,
0.17538373172283173,
0.2844720184803009,
0.2802557945251465,
-0.14760500192642212,
0.1414179503917694,
0.06100449338555336,
0.0714532658457756,
0.08511283248662949,
-0.39020878076553345,
0.06823216378688812,
0.1479281485080719,
-0.048406075686216354,
0.14962032437324524,
-0.27203047275543213,
0.08594096451997757,
-0.25509798526763916,
0.02188785932958126,
0.02609829045832157,
-0.3847031593322754,
0.08848565071821213,
-0.13497599959373474,
0.28465983271598816,
-0.21236251294612885,
-0.24407419562339783,
-0.38425713777542114,
-0.2724657654762268,
-0.46531710028648376,
-0.02697874791920185,
0.11313331872224808,
-0.06848166882991791,
0.10127143561840057,
-0.07858730107545853,
0.2408464103937149,
-0.07372303307056427,
-0.16669444739818573,
0.11142800748348236,
0.25681236386299133,
-0.21192392706871033,
0.2198820412158966,
0.07004069536924362,
0.08878831565380096,
0.16481442749500275,
-0.23507161438465118,
-0.0004338668077252805,
0.2723606526851654,
-0.4907975196838379,
-0.08711985498666763,
-0.11177559196949005,
-0.15199099481105804,
-0.14089512825012207,
0.054160311818122864,
-0.12841272354125977,
0.1272299438714981,
0.3161284327507019,
0.1564188450574875,
-0.029597053304314613,
0.16435633599758148,
0.11872153729200363,
0.2562074363231659,
-0.07711866497993469,
-0.3050597012042999,
-0.226043239235878,
0.027756625786423683,
-0.0785897970199585,
-0.3298470377922058,
0.14713989198207855,
0.3610413372516632,
0.24992552399635315,
0.030278101563453674,
-0.48716482520103455,
-0.09039247035980225,
-0.019041873514652252,
-0.058097731322050095,
0.14209291338920593,
0.28459176421165466,
-0.24076269567012787,
0.25084546208381653,
-0.08102641254663467,
-0.1523163914680481,
-0.2926349639892578,
-0.04619588330388069,
-0.3027384281158447,
-0.11525656282901764,
-0.14961902797222137,
0.07027850300073624,
0.1349768191576004,
-0.17216046154499054,
0.32391878962516785,
0.07558294385671616,
0.09628608822822571,
-0.17466042935848236,
0.5014525055885315,
-0.3949425220489502,
0.22241246700286865,
0.2599140405654907,
0.1795816719532013,
0.24264977872371674,
0.05320121720433235,
0.2097659856081009,
0.0399613194167614,
0.07378165423870087,
-0.6257683634757996,
-0.1791185438632965,
0.24746179580688477,
0.31384921073913574,
-0.050552014261484146,
0.0014614993706345558,
-0.593583881855011,
-0.08692235499620438,
0.3213268220424652,
0.09062712639570236,
0.11971037089824677,
-0.17542532086372375,
-0.18599608540534973,
-0.1946796476840973,
0.2003978192806244,
0.08525828272104263,
-0.4504088759422302,
0.06793262809515,
-0.11536317318677902,
-0.32274508476257324,
0.5454287528991699,
0.12426839768886566,
-0.1138663962483406,
0.6199549436569214,
-0.3095552623271942,
0.37830257415771484,
0.1937197744846344,
-0.31893935799598694,
-0.2815084755420685,
0.5390695929527283,
-0.25751182436943054,
0.018086817115545273,
0.03982074186205864,
0.03250701352953911,
0.5586618781089783,
-0.06028645858168602,
0.03623020276427269,
0.37874341011047363,
-0.11922872811555862,
0.09029819816350937,
-0.09957031905651093,
0.1156371533870697,
0.08595391362905502,
-0.01740802824497223,
0.1038927212357521,
0.04386376589536667,
-0.21674321591854095,
-0.04455336183309555,
0.17378176748752594,
0.05349965766072273,
0.29659923911094666,
0.24967429041862488,
0.011494436301290989,
0.20879799127578735,
0.19324623048305511,
-0.04541277512907982,
-0.29646551609039307,
0.09573202580213547,
-0.020333189517259598,
-0.1832335889339447,
0.04056388884782791,
-0.3565833866596222,
-0.14273856580257416,
0.14648360013961792,
-0.4080851972103119,
-0.17031456530094147,
0.21879349648952484,
0.09122394025325775,
0.022361109033226967,
-0.31332704424858093,
0.0051416452042758465,
0.32892587780952454,
-0.01843753084540367,
0.032012976706027985,
-0.19385415315628052,
-0.02204519510269165,
0.007847060449421406,
-0.15076443552970886,
-0.06133441999554634,
-0.079200379550457,
0.2228221595287323,
0.007429632358253002,
-0.04933439940214157,
0.3533657491207123,
0.27474546432495117,
0.06399539858102798,
-0.0365166962146759,
-0.12384643405675888,
-0.010248695500195026,
0.1141468733549118,
-0.0905265286564827,
-0.03585357218980789,
0.217173233628273,
-0.12560662627220154,
0.24783125519752502,
0.4252821207046509,
-0.04693382605910301,
0.2657581567764282,
-0.038255658000707626,
-0.2736455500125885,
0.22645239531993866,
-0.0702165812253952,
-0.04286834970116615,
0.19769126176834106,
-0.04587250202894211,
0.0015268096467480063,
0.3408334255218506,
0.04400493577122688,
-0.05594795569777489,
0.17708590626716614,
0.4273042380809784,
-0.004344564396888018,
-0.16920289397239685,
-0.01923055201768875,
-0.20830518007278442,
0.10800890624523163,
0.15949605405330658,
-0.025842173025012016,
0.12190842628479004,
0.16937154531478882,
0.11964856088161469,
-0.10231403261423111,
0.10452378541231155,
-0.03796309232711792,
0.08203040808439255,
0.31707465648651123,
0.18052005767822266,
0.16187432408332825,
-0.0916261076927185,
-0.05618126690387726,
-0.003679987508803606,
-0.11006923019886017,
0.19136181473731995,
0.23988433182239532,
-0.3654329180717468,
0.21322001516819,
-0.14592941105365753,
-0.08981004357337952,
-0.15111860632896423,
-0.03144574165344238,
0.16132844984531403,
-0.13982650637626648,
-0.07640720903873444,
0.2173890322446823,
-0.1582907736301422,
0.028309952467679977,
-0.08624438941478729,
0.03933637589216232,
0.2715219557285309,
-0.38074591755867004,
-0.16086293756961823,
-0.0596173033118248,
-0.18188261985778809,
0.20186206698417664,
0.06786809116601944,
0.1080862507224083,
0.46832266449928284,
0.051433682441711426,
0.03878457471728325,
-0.11555047333240509,
-0.1522180289030075,
0.07787866145372391,
-0.19765181839466095,
0.17671051621437073,
0.016944555565714836,
0.14017483592033386,
-0.10795988887548447,
-0.38399478793144226,
0.13910795748233795,
-0.18394114077091217,
-0.3313491940498352,
-0.08557284623384476,
-0.017347922548651695,
0.04050082713365555,
-0.20870688557624817,
-0.4318091571331024,
-0.2330218404531479,
-0.17911149561405182,
0.021623626351356506,
-0.06954973936080933,
0.20324786007404327,
-0.009369011037051678,
-0.017889568582177162,
0.149721160531044,
0.2623838186264038,
-0.15724630653858185,
-0.0877210721373558,
-0.488126665353775,
0.12461274862289429,
-0.28363025188446045,
-0.01973256655037403,
-0.0922568067908287,
-0.10247068852186203,
0.4223558008670807,
0.3086372911930084,
-0.19039317965507507,
0.11806026101112366,
-0.08892660588026047,
0.24083173274993896,
-0.09775390475988388,
-0.026535481214523315,
0.195407897233963,
-0.07893296331167221,
-0.09966438263654709,
-0.11733446270227432,
0.0736234188079834,
0.11769789457321167,
-0.24143798649311066,
0.06471464037895203,
-0.01778431609272957,
0.6492413878440857,
-0.019282806664705276,
0.9116159081459045,
0.08709535002708435,
-0.08747818320989609,
0.13292542099952698,
0.0044224197044968605,
-0.15794019401073456,
-0.012976313009858131,
-0.30091723799705505,
0.09074528515338898,
0.02797781489789486,
-0.18693625926971436,
0.19288814067840576,
-0.1721881926059723,
-0.008557389490306377,
0.07027691602706909,
-0.017148876562714577,
-0.6442944407463074,
-0.06746646016836166,
0.07695269584655762,
0.004139683209359646,
0.34356993436813354,
-0.15659572184085846,
0.06825892627239227,
-0.28335312008857727,
-0.05906948447227478,
-0.09082859754562378,
0.04647073894739151,
0.2381594479084015,
-0.18369045853614807,
-0.3598339855670929,
0.08883531391620636,
-0.2709052264690399,
0.2956254780292511,
0.06683948636054993,
0.33355239033699036,
0.02760336734354496,
-0.04001671075820923,
0.11126259714365005,
-0.1317257583141327,
0.7860830426216125,
-0.04430133476853371,
0.06751645356416702,
0.057194262742996216,
-0.2433977574110031,
-0.161509707570076,
-0.0845043882727623,
-0.33915331959724426,
0.2084004282951355,
0.5520220994949341,
0.29441869258880615,
-0.21103781461715698,
-0.362880140542984,
0.01731279492378235,
-0.18864166736602783,
-0.16484712064266205,
-0.29953232407569885,
-0.33777907490730286,
-0.14936664700508118,
-0.3823873698711395,
0.31098461151123047,
0.2597954273223877,
0.11348292231559753,
-0.43688809871673584,
-0.37128904461860657,
-0.30570098757743835,
-0.08963459730148315,
0.19536364078521729,
-0.06653831154108047,
0.028660813346505165,
0.023897064849734306,
0.21611842513084412,
0.021995127201080322,
0.28753888607025146,
0.3828943371772766,
0.21269552409648895,
-0.1729630082845688,
-0.3372837007045746,
0.1827806830406189,
-0.09838761389255524,
0.48431146144866943,
0.028595658019185066,
-0.2987980544567108,
0.3437288701534271,
-0.0373791866004467,
0.1920209676027298,
-0.45076021552085876,
0.5017998814582825,
0.4323759973049164,
0.18065008521080017,
-0.5321656465530396,
-0.5739410519599915,
0.15346691012382507,
0.3390217125415802,
-0.09803416579961777,
0.1371520459651947,
-0.23289203643798828,
-0.2770267426967621,
0.10098818689584732,
0.19510255753993988,
0.6205475926399231,
-0.025613507255911827,
-0.0886724442243576,
0.10174768418073654,
0.28923776745796204,
0.06580018997192383,
-0.20645752549171448,
0.10265779495239258,
-0.3231615126132965,
0.004105274099856615,
0.03233443573117256,
-0.17724335193634033,
0.2091565579175949,
0.40434518456459045,
-0.13527080416679382,
0.19735652208328247,
-0.1509767770767212,
0.21516291797161102,
-0.15519104897975922,
0.30898141860961914,
0.042141493409872055,
-0.23292845487594604,
-0.05069486424326897,
0.24304990470409393,
-0.13156172633171082,
0.21989314258098602,
-0.15606555342674255,
-0.1121162474155426,
0.12239941209554672,
-0.10483425855636597,
0.20299750566482544,
0.028531115502119064,
-0.45260781049728394,
-0.03279057890176773,
-0.18331438302993774,
-0.15974578261375427,
0.013377092778682709,
-0.08203661441802979,
0.34681811928749084,
0.2518923878669739,
0.1860017031431198,
-0.0041452073492109776,
0.033250898122787476,
0.1427503228187561,
-0.008821043185889721,
-0.3308887183666229,
0.3472423851490021,
-0.04577510058879852,
-0.17525923252105713,
0.048817574977874756,
0.05303480103611946,
-0.27003782987594604,
-0.01716071180999279,
-0.016213634982705116,
0.4081462621688843,
-0.4375678598880768,
-0.07313473522663116,
-0.06176885589957237,
-0.1597326397895813,
-0.09741251915693283,
0.18807083368301392,
-0.0819992646574974,
-0.27768853306770325,
0.4453326165676117,
-0.1918439418077469,
-0.20453281700611115,
-0.045853666961193085,
0.17013795673847198,
0.2722027003765106,
-0.26612329483032227,
0.5271494388580322,
-0.008169912733137608,
-0.2039594054222107,
-0.2986088693141937,
0.11816691607236862,
0.24067550897598267,
-0.17892621457576752,
0.30723246932029724,
0.14913444221019745,
0.18016240000724792,
0.2399325966835022,
0.06528632342815399,
-0.24526961147785187,
0.04562096670269966,
-0.19461137056350708,
-0.2512209713459015,
-0.4587351679801941,
-0.22725284099578857,
-0.14536194503307343,
0.2936919927597046,
0.31263071298599243,
0.2828487157821655,
-0.04983911290764809,
0.3358585834503174,
-0.4065794348716736,
-0.11494053900241852,
-0.15313372015953064,
0.27281665802001953,
0.15248166024684906,
0.012861544266343117,
-0.00670701265335083,
0.22807297110557556,
0.16622334718704224,
0.2789078652858734,
-0.05580614507198334,
-0.3985134959220886,
0.02451758086681366,
0.0459398478269577,
-0.1330239176750183,
-0.06215229257941246,
0.0371130108833313,
-0.02183360420167446,
-0.24584271013736725,
-0.10736281424760818,
0.25165343284606934,
0.013163785450160503,
0.13181579113006592,
0.20925986766815186,
0.442799836397171,
0.33919215202331543,
0.11982103437185287,
0.10461640357971191,
-0.14008520543575287,
0.051942747086286545,
0.03908621147274971,
0.2915996015071869,
0.07285556942224503,
-0.009759850800037384,
-0.008777759969234467,
-0.2714517414569855,
0.6143192052841187,
0.06378408521413803,
0.019337495788931847,
-0.39354971051216125,
-0.2791871726512909,
0.12814682722091675,
0.08865836262702942,
0.29241737723350525,
0.05750029534101486,
-0.28142794966697693,
0.314510703086853,
0.3561897575855255,
0.037448201328516006,
0.31047794222831726,
0.16915255784988403,
-0.13257426023483276,
0.12919703125953674,
0.1397569179534912,
-0.061644259840250015,
0.25249239802360535,
0.10081829875707626,
0.16905555129051208,
0.2947506904602051,
-0.27979764342308044,
0.12887659668922424,
0.19377762079238892,
0.08811336010694504,
0.0643606185913086,
0.30618494749069214,
0.09502346813678741,
0.09196443855762482,
0.41183918714523315,
0.14214135706424713,
0.5869666337966919,
0.15627016127109528,
0.13302329182624817,
0.036066070199012756,
-0.4071049690246582,
-0.3413546681404114,
0.20977066457271576,
-0.3046947717666626,
0.1884247064590454,
-0.014217850752174854,
0.21820971369743347,
0.14944671094417572,
-0.18912212550640106,
-0.08786489069461823,
0.3838889002799988,
-0.46587589383125305,
-0.11966661363840103,
-0.527038037776947,
-0.06187302619218826,
0.04706618934869766,
-0.15252529084682465,
0.1422014683485031,
0.00033502443693578243,
-0.026842886582016945,
0.020939739421010017,
-0.04460590332746506,
0.036110613495111465,
-0.2875399589538574,
0.28775450587272644,
-0.06748685240745544,
-0.1569446474313736,
0.0797996073961258,
-0.026049703359603882,
0.15239377319812775,
-0.006878805812448263,
0.21889503300189972,
0.37610772252082825,
0.3229937255382538,
-0.19221463799476624,
-0.09409601241350174,
0.051729053258895874,
-0.0628715232014656,
-0.16198426485061646,
0.25494882464408875,
-0.1922803372144699,
-0.005393235012888908,
0.38154882192611694,
0.2739577889442444,
-0.24998342990875244,
-0.33492904901504517,
0.02570837363600731,
-0.021839067339897156,
-0.04134780168533325,
0.49666035175323486,
0.11915752291679382,
-0.10868125408887863,
-0.2861166298389435,
-0.02609541080892086,
-0.425494521856308,
-0.049383725970983505,
0.5210591554641724,
-0.41027921438217163,
0.10819438099861145,
-0.18439608812332153,
0.1237969845533371,
-0.2985062003135681,
0.4248540699481964,
0.30588504672050476,
0.28504177927970886,
-0.46722862124443054,
0.01592007279396057,
-0.2836144268512726,
0.2286422848701477,
-0.05010802671313286,
0.0008191954111680388,
-0.24609021842479706,
0.24277381598949432,
-0.20736126601696014,
0.06424172967672348,
-0.06586186587810516,
-0.14118662476539612,
0.08984869718551636,
0.3890625238418579,
-0.34446999430656433,
0.07817695289850235,
-0.3071102499961853,
-0.027143947780132294,
0.13910938799381256,
-0.3164839744567871,
0.16173739731311798,
0.11415951699018478,
0.15744243562221527,
-0.1564980000257492,
0.027107492089271545,
0.2952474355697632,
-0.18972525000572205,
0.2510138750076294,
0.21740075945854187,
0.35639330744743347,
-0.21160219609737396,
0.48408931493759155,
-0.09924298524856567,
0.05625295639038086,
-0.30123385787010193,
-0.16344141960144043,
0.14305461943149567,
0.1765764206647873,
0.022572722285985947,
0.026949483901262283,
-0.24921195209026337,
-0.0863267108798027,
0.08038034290075302,
-0.18460357189178467,
0.03313767537474632,
0.06712189316749573,
-0.05809256434440613,
0.03570099547505379,
0.06812390685081482,
0.1903723031282425,
0.25878119468688965,
0.23001226782798767,
-0.4224676787853241,
-0.424530565738678,
0.4023638367652893,
-0.388386070728302,
-0.30135369300842285,
-0.3631497621536255,
0.2955274283885956,
0.05901477113366127,
0.09622608870267868,
-0.157304048538208,
0.0010303790913894773,
0.444521963596344,
-0.05837036296725273,
-0.007165074814110994,
0.3775213658809662,
0.1706835776567459,
0.20298999547958374,
-0.17770667374134064,
-0.110015369951725,
0.11934844404459,
-0.002676857402548194,
0.07206226140260696,
-0.316292941570282
] |
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.5023798942565918,
-0.17439578473567963,
-0.22950224578380585,
0.13015763461589813,
0.17803551256656647,
0.031794723123311996,
0.295561820268631,
0.17130425572395325,
-0.14847084879875183,
0.17807669937610626,
0.009121058508753777,
0.1247817650437355,
0.0641203448176384,
0.2456226497888565,
-0.05616532638669014,
-0.03589142858982086,
-0.07459706813097,
0.04837750643491745,
0.10960907489061356,
0.007234328892081976,
-0.3676093816757202,
0.06899808347225189,
-0.4043067991733551,
0.05223469436168671,
-0.22304706275463104,
-0.2693561315536499,
-0.06124535948038101,
-0.039256948977708817,
-0.0044130017049610615,
-0.15258929133415222,
-0.0022252709604799747,
0.2334943562746048,
0.2088398039340973,
0.4326499104499817,
-0.00010495645983610302,
0.07853080332279205,
0.24677565693855286,
0.03938224911689758,
-0.29033541679382324,
0.22262760996818542,
-0.049400147050619125,
-0.1695532351732254,
-0.10629788041114807,
-0.30420929193496704,
-0.10083691775798798,
-0.08600109815597534,
-0.13855892419815063,
-0.3374294638633728,
0.38483133912086487,
0.17538373172283173,
0.2844720184803009,
0.2802557945251465,
-0.14760500192642212,
0.1414179503917694,
0.06100449338555336,
0.0714532658457756,
0.08511283248662949,
-0.39020878076553345,
0.06823216378688812,
0.1479281485080719,
-0.048406075686216354,
0.14962032437324524,
-0.27203047275543213,
0.08594096451997757,
-0.25509798526763916,
0.02188785932958126,
0.02609829045832157,
-0.3847031593322754,
0.08848565071821213,
-0.13497599959373474,
0.28465983271598816,
-0.21236251294612885,
-0.24407419562339783,
-0.38425713777542114,
-0.2724657654762268,
-0.46531710028648376,
-0.02697874791920185,
0.11313331872224808,
-0.06848166882991791,
0.10127143561840057,
-0.07858730107545853,
0.2408464103937149,
-0.07372303307056427,
-0.16669444739818573,
0.11142800748348236,
0.25681236386299133,
-0.21192392706871033,
0.2198820412158966,
0.07004069536924362,
0.08878831565380096,
0.16481442749500275,
-0.23507161438465118,
-0.0004338668077252805,
0.2723606526851654,
-0.4907975196838379,
-0.08711985498666763,
-0.11177559196949005,
-0.15199099481105804,
-0.14089512825012207,
0.054160311818122864,
-0.12841272354125977,
0.1272299438714981,
0.3161284327507019,
0.1564188450574875,
-0.029597053304314613,
0.16435633599758148,
0.11872153729200363,
0.2562074363231659,
-0.07711866497993469,
-0.3050597012042999,
-0.226043239235878,
0.027756625786423683,
-0.0785897970199585,
-0.3298470377922058,
0.14713989198207855,
0.3610413372516632,
0.24992552399635315,
0.030278101563453674,
-0.48716482520103455,
-0.09039247035980225,
-0.019041873514652252,
-0.058097731322050095,
0.14209291338920593,
0.28459176421165466,
-0.24076269567012787,
0.25084546208381653,
-0.08102641254663467,
-0.1523163914680481,
-0.2926349639892578,
-0.04619588330388069,
-0.3027384281158447,
-0.11525656282901764,
-0.14961902797222137,
0.07027850300073624,
0.1349768191576004,
-0.17216046154499054,
0.32391878962516785,
0.07558294385671616,
0.09628608822822571,
-0.17466042935848236,
0.5014525055885315,
-0.3949425220489502,
0.22241246700286865,
0.2599140405654907,
0.1795816719532013,
0.24264977872371674,
0.05320121720433235,
0.2097659856081009,
0.0399613194167614,
0.07378165423870087,
-0.6257683634757996,
-0.1791185438632965,
0.24746179580688477,
0.31384921073913574,
-0.050552014261484146,
0.0014614993706345558,
-0.593583881855011,
-0.08692235499620438,
0.3213268220424652,
0.09062712639570236,
0.11971037089824677,
-0.17542532086372375,
-0.18599608540534973,
-0.1946796476840973,
0.2003978192806244,
0.08525828272104263,
-0.4504088759422302,
0.06793262809515,
-0.11536317318677902,
-0.32274508476257324,
0.5454287528991699,
0.12426839768886566,
-0.1138663962483406,
0.6199549436569214,
-0.3095552623271942,
0.37830257415771484,
0.1937197744846344,
-0.31893935799598694,
-0.2815084755420685,
0.5390695929527283,
-0.25751182436943054,
0.018086817115545273,
0.03982074186205864,
0.03250701352953911,
0.5586618781089783,
-0.06028645858168602,
0.03623020276427269,
0.37874341011047363,
-0.11922872811555862,
0.09029819816350937,
-0.09957031905651093,
0.1156371533870697,
0.08595391362905502,
-0.01740802824497223,
0.1038927212357521,
0.04386376589536667,
-0.21674321591854095,
-0.04455336183309555,
0.17378176748752594,
0.05349965766072273,
0.29659923911094666,
0.24967429041862488,
0.011494436301290989,
0.20879799127578735,
0.19324623048305511,
-0.04541277512907982,
-0.29646551609039307,
0.09573202580213547,
-0.020333189517259598,
-0.1832335889339447,
0.04056388884782791,
-0.3565833866596222,
-0.14273856580257416,
0.14648360013961792,
-0.4080851972103119,
-0.17031456530094147,
0.21879349648952484,
0.09122394025325775,
0.022361109033226967,
-0.31332704424858093,
0.0051416452042758465,
0.32892587780952454,
-0.01843753084540367,
0.032012976706027985,
-0.19385415315628052,
-0.02204519510269165,
0.007847060449421406,
-0.15076443552970886,
-0.06133441999554634,
-0.079200379550457,
0.2228221595287323,
0.007429632358253002,
-0.04933439940214157,
0.3533657491207123,
0.27474546432495117,
0.06399539858102798,
-0.0365166962146759,
-0.12384643405675888,
-0.010248695500195026,
0.1141468733549118,
-0.0905265286564827,
-0.03585357218980789,
0.217173233628273,
-0.12560662627220154,
0.24783125519752502,
0.4252821207046509,
-0.04693382605910301,
0.2657581567764282,
-0.038255658000707626,
-0.2736455500125885,
0.22645239531993866,
-0.0702165812253952,
-0.04286834970116615,
0.19769126176834106,
-0.04587250202894211,
0.0015268096467480063,
0.3408334255218506,
0.04400493577122688,
-0.05594795569777489,
0.17708590626716614,
0.4273042380809784,
-0.004344564396888018,
-0.16920289397239685,
-0.01923055201768875,
-0.20830518007278442,
0.10800890624523163,
0.15949605405330658,
-0.025842173025012016,
0.12190842628479004,
0.16937154531478882,
0.11964856088161469,
-0.10231403261423111,
0.10452378541231155,
-0.03796309232711792,
0.08203040808439255,
0.31707465648651123,
0.18052005767822266,
0.16187432408332825,
-0.0916261076927185,
-0.05618126690387726,
-0.003679987508803606,
-0.11006923019886017,
0.19136181473731995,
0.23988433182239532,
-0.3654329180717468,
0.21322001516819,
-0.14592941105365753,
-0.08981004357337952,
-0.15111860632896423,
-0.03144574165344238,
0.16132844984531403,
-0.13982650637626648,
-0.07640720903873444,
0.2173890322446823,
-0.1582907736301422,
0.028309952467679977,
-0.08624438941478729,
0.03933637589216232,
0.2715219557285309,
-0.38074591755867004,
-0.16086293756961823,
-0.0596173033118248,
-0.18188261985778809,
0.20186206698417664,
0.06786809116601944,
0.1080862507224083,
0.46832266449928284,
0.051433682441711426,
0.03878457471728325,
-0.11555047333240509,
-0.1522180289030075,
0.07787866145372391,
-0.19765181839466095,
0.17671051621437073,
0.016944555565714836,
0.14017483592033386,
-0.10795988887548447,
-0.38399478793144226,
0.13910795748233795,
-0.18394114077091217,
-0.3313491940498352,
-0.08557284623384476,
-0.017347922548651695,
0.04050082713365555,
-0.20870688557624817,
-0.4318091571331024,
-0.2330218404531479,
-0.17911149561405182,
0.021623626351356506,
-0.06954973936080933,
0.20324786007404327,
-0.009369011037051678,
-0.017889568582177162,
0.149721160531044,
0.2623838186264038,
-0.15724630653858185,
-0.0877210721373558,
-0.488126665353775,
0.12461274862289429,
-0.28363025188446045,
-0.01973256655037403,
-0.0922568067908287,
-0.10247068852186203,
0.4223558008670807,
0.3086372911930084,
-0.19039317965507507,
0.11806026101112366,
-0.08892660588026047,
0.24083173274993896,
-0.09775390475988388,
-0.026535481214523315,
0.195407897233963,
-0.07893296331167221,
-0.09966438263654709,
-0.11733446270227432,
0.0736234188079834,
0.11769789457321167,
-0.24143798649311066,
0.06471464037895203,
-0.01778431609272957,
0.6492413878440857,
-0.019282806664705276,
0.9116159081459045,
0.08709535002708435,
-0.08747818320989609,
0.13292542099952698,
0.0044224197044968605,
-0.15794019401073456,
-0.012976313009858131,
-0.30091723799705505,
0.09074528515338898,
0.02797781489789486,
-0.18693625926971436,
0.19288814067840576,
-0.1721881926059723,
-0.008557389490306377,
0.07027691602706909,
-0.017148876562714577,
-0.6442944407463074,
-0.06746646016836166,
0.07695269584655762,
0.004139683209359646,
0.34356993436813354,
-0.15659572184085846,
0.06825892627239227,
-0.28335312008857727,
-0.05906948447227478,
-0.09082859754562378,
0.04647073894739151,
0.2381594479084015,
-0.18369045853614807,
-0.3598339855670929,
0.08883531391620636,
-0.2709052264690399,
0.2956254780292511,
0.06683948636054993,
0.33355239033699036,
0.02760336734354496,
-0.04001671075820923,
0.11126259714365005,
-0.1317257583141327,
0.7860830426216125,
-0.04430133476853371,
0.06751645356416702,
0.057194262742996216,
-0.2433977574110031,
-0.161509707570076,
-0.0845043882727623,
-0.33915331959724426,
0.2084004282951355,
0.5520220994949341,
0.29441869258880615,
-0.21103781461715698,
-0.362880140542984,
0.01731279492378235,
-0.18864166736602783,
-0.16484712064266205,
-0.29953232407569885,
-0.33777907490730286,
-0.14936664700508118,
-0.3823873698711395,
0.31098461151123047,
0.2597954273223877,
0.11348292231559753,
-0.43688809871673584,
-0.37128904461860657,
-0.30570098757743835,
-0.08963459730148315,
0.19536364078521729,
-0.06653831154108047,
0.028660813346505165,
0.023897064849734306,
0.21611842513084412,
0.021995127201080322,
0.28753888607025146,
0.3828943371772766,
0.21269552409648895,
-0.1729630082845688,
-0.3372837007045746,
0.1827806830406189,
-0.09838761389255524,
0.48431146144866943,
0.028595658019185066,
-0.2987980544567108,
0.3437288701534271,
-0.0373791866004467,
0.1920209676027298,
-0.45076021552085876,
0.5017998814582825,
0.4323759973049164,
0.18065008521080017,
-0.5321656465530396,
-0.5739410519599915,
0.15346691012382507,
0.3390217125415802,
-0.09803416579961777,
0.1371520459651947,
-0.23289203643798828,
-0.2770267426967621,
0.10098818689584732,
0.19510255753993988,
0.6205475926399231,
-0.025613507255911827,
-0.0886724442243576,
0.10174768418073654,
0.28923776745796204,
0.06580018997192383,
-0.20645752549171448,
0.10265779495239258,
-0.3231615126132965,
0.004105274099856615,
0.03233443573117256,
-0.17724335193634033,
0.2091565579175949,
0.40434518456459045,
-0.13527080416679382,
0.19735652208328247,
-0.1509767770767212,
0.21516291797161102,
-0.15519104897975922,
0.30898141860961914,
0.042141493409872055,
-0.23292845487594604,
-0.05069486424326897,
0.24304990470409393,
-0.13156172633171082,
0.21989314258098602,
-0.15606555342674255,
-0.1121162474155426,
0.12239941209554672,
-0.10483425855636597,
0.20299750566482544,
0.028531115502119064,
-0.45260781049728394,
-0.03279057890176773,
-0.18331438302993774,
-0.15974578261375427,
0.013377092778682709,
-0.08203661441802979,
0.34681811928749084,
0.2518923878669739,
0.1860017031431198,
-0.0041452073492109776,
0.033250898122787476,
0.1427503228187561,
-0.008821043185889721,
-0.3308887183666229,
0.3472423851490021,
-0.04577510058879852,
-0.17525923252105713,
0.048817574977874756,
0.05303480103611946,
-0.27003782987594604,
-0.01716071180999279,
-0.016213634982705116,
0.4081462621688843,
-0.4375678598880768,
-0.07313473522663116,
-0.06176885589957237,
-0.1597326397895813,
-0.09741251915693283,
0.18807083368301392,
-0.0819992646574974,
-0.27768853306770325,
0.4453326165676117,
-0.1918439418077469,
-0.20453281700611115,
-0.045853666961193085,
0.17013795673847198,
0.2722027003765106,
-0.26612329483032227,
0.5271494388580322,
-0.008169912733137608,
-0.2039594054222107,
-0.2986088693141937,
0.11816691607236862,
0.24067550897598267,
-0.17892621457576752,
0.30723246932029724,
0.14913444221019745,
0.18016240000724792,
0.2399325966835022,
0.06528632342815399,
-0.24526961147785187,
0.04562096670269966,
-0.19461137056350708,
-0.2512209713459015,
-0.4587351679801941,
-0.22725284099578857,
-0.14536194503307343,
0.2936919927597046,
0.31263071298599243,
0.2828487157821655,
-0.04983911290764809,
0.3358585834503174,
-0.4065794348716736,
-0.11494053900241852,
-0.15313372015953064,
0.27281665802001953,
0.15248166024684906,
0.012861544266343117,
-0.00670701265335083,
0.22807297110557556,
0.16622334718704224,
0.2789078652858734,
-0.05580614507198334,
-0.3985134959220886,
0.02451758086681366,
0.0459398478269577,
-0.1330239176750183,
-0.06215229257941246,
0.0371130108833313,
-0.02183360420167446,
-0.24584271013736725,
-0.10736281424760818,
0.25165343284606934,
0.013163785450160503,
0.13181579113006592,
0.20925986766815186,
0.442799836397171,
0.33919215202331543,
0.11982103437185287,
0.10461640357971191,
-0.14008520543575287,
0.051942747086286545,
0.03908621147274971,
0.2915996015071869,
0.07285556942224503,
-0.009759850800037384,
-0.008777759969234467,
-0.2714517414569855,
0.6143192052841187,
0.06378408521413803,
0.019337495788931847,
-0.39354971051216125,
-0.2791871726512909,
0.12814682722091675,
0.08865836262702942,
0.29241737723350525,
0.05750029534101486,
-0.28142794966697693,
0.314510703086853,
0.3561897575855255,
0.037448201328516006,
0.31047794222831726,
0.16915255784988403,
-0.13257426023483276,
0.12919703125953674,
0.1397569179534912,
-0.061644259840250015,
0.25249239802360535,
0.10081829875707626,
0.16905555129051208,
0.2947506904602051,
-0.27979764342308044,
0.12887659668922424,
0.19377762079238892,
0.08811336010694504,
0.0643606185913086,
0.30618494749069214,
0.09502346813678741,
0.09196443855762482,
0.41183918714523315,
0.14214135706424713,
0.5869666337966919,
0.15627016127109528,
0.13302329182624817,
0.036066070199012756,
-0.4071049690246582,
-0.3413546681404114,
0.20977066457271576,
-0.3046947717666626,
0.1884247064590454,
-0.014217850752174854,
0.21820971369743347,
0.14944671094417572,
-0.18912212550640106,
-0.08786489069461823,
0.3838889002799988,
-0.46587589383125305,
-0.11966661363840103,
-0.527038037776947,
-0.06187302619218826,
0.04706618934869766,
-0.15252529084682465,
0.1422014683485031,
0.00033502443693578243,
-0.026842886582016945,
0.020939739421010017,
-0.04460590332746506,
0.036110613495111465,
-0.2875399589538574,
0.28775450587272644,
-0.06748685240745544,
-0.1569446474313736,
0.0797996073961258,
-0.026049703359603882,
0.15239377319812775,
-0.006878805812448263,
0.21889503300189972,
0.37610772252082825,
0.3229937255382538,
-0.19221463799476624,
-0.09409601241350174,
0.051729053258895874,
-0.0628715232014656,
-0.16198426485061646,
0.25494882464408875,
-0.1922803372144699,
-0.005393235012888908,
0.38154882192611694,
0.2739577889442444,
-0.24998342990875244,
-0.33492904901504517,
0.02570837363600731,
-0.021839067339897156,
-0.04134780168533325,
0.49666035175323486,
0.11915752291679382,
-0.10868125408887863,
-0.2861166298389435,
-0.02609541080892086,
-0.425494521856308,
-0.049383725970983505,
0.5210591554641724,
-0.41027921438217163,
0.10819438099861145,
-0.18439608812332153,
0.1237969845533371,
-0.2985062003135681,
0.4248540699481964,
0.30588504672050476,
0.28504177927970886,
-0.46722862124443054,
0.01592007279396057,
-0.2836144268512726,
0.2286422848701477,
-0.05010802671313286,
0.0008191954111680388,
-0.24609021842479706,
0.24277381598949432,
-0.20736126601696014,
0.06424172967672348,
-0.06586186587810516,
-0.14118662476539612,
0.08984869718551636,
0.3890625238418579,
-0.34446999430656433,
0.07817695289850235,
-0.3071102499961853,
-0.027143947780132294,
0.13910938799381256,
-0.3164839744567871,
0.16173739731311798,
0.11415951699018478,
0.15744243562221527,
-0.1564980000257492,
0.027107492089271545,
0.2952474355697632,
-0.18972525000572205,
0.2510138750076294,
0.21740075945854187,
0.35639330744743347,
-0.21160219609737396,
0.48408931493759155,
-0.09924298524856567,
0.05625295639038086,
-0.30123385787010193,
-0.16344141960144043,
0.14305461943149567,
0.1765764206647873,
0.022572722285985947,
0.026949483901262283,
-0.24921195209026337,
-0.0863267108798027,
0.08038034290075302,
-0.18460357189178467,
0.03313767537474632,
0.06712189316749573,
-0.05809256434440613,
0.03570099547505379,
0.06812390685081482,
0.1903723031282425,
0.25878119468688965,
0.23001226782798767,
-0.4224676787853241,
-0.424530565738678,
0.4023638367652893,
-0.388386070728302,
-0.30135369300842285,
-0.3631497621536255,
0.2955274283885956,
0.05901477113366127,
0.09622608870267868,
-0.157304048538208,
0.0010303790913894773,
0.444521963596344,
-0.05837036296725273,
-0.007165074814110994,
0.3775213658809662,
0.1706835776567459,
0.20298999547958374,
-0.17770667374134064,
-0.110015369951725,
0.11934844404459,
-0.002676857402548194,
0.07206226140260696,
-0.316292941570282
] |
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.1619103103876114,
-0.3347918391227722,
-0.046579863876104355,
0.5367459058761597,
0.35810327529907227,
0.2125210016965866,
0.50725919008255,
0.39032432436943054,
-0.015128202736377716,
0.12072205543518066,
-0.21651868522167206,
0.2929011881351471,
-0.11853577196598053,
-0.163084477186203,
-0.11313068866729736,
-0.5349535346031189,
0.11543124169111252,
-0.09518289566040039,
-0.34040993452072144,
0.09904961287975311,
0.050086237490177155,
0.06382106244564056,
-0.15158972144126892,
-0.1478482335805893,
-0.4358988404273987,
0.007512258365750313,
0.09530728310346603,
0.050391875207424164,
-0.13597546517848969,
-0.06770209223031998,
0.11454445868730545,
-0.07181689888238907,
0.08651868999004364,
0.7834658622741699,
-0.00012119269376853481,
0.05314383655786514,
0.304533451795578,
0.15747608244419098,
-0.1029464453458786,
-0.19955569505691528,
0.38384613394737244,
-0.13631998002529144,
0.17542345821857452,
-0.21816866099834442,
-0.1345921754837036,
0.010250807739794254,
-0.2882254421710968,
-0.6952759623527527,
0.3244413733482361,
0.44347646832466125,
0.09370884299278259,
0.5506082773208618,
0.04228340834379196,
0.0736021026968956,
0.31157195568084717,
-0.010086718015372753,
-0.20931287109851837,
-0.11750469356775284,
0.3612823486328125,
0.19513149559497833,
0.13363222777843475,
0.25325527787208557,
-0.4077241122722626,
-0.0682552307844162,
0.09495612233877182,
0.07328907400369644,
-0.6647974848747253,
-0.4644116759300232,
0.08641654998064041,
0.30950647592544556,
0.5834818482398987,
-0.4591076076030731,
-0.13085204362869263,
-0.11184454709291458,
0.0003553707792889327,
0.014329181984066963,
0.09959492087364197,
0.14607995748519897,
-0.1873873919248581,
-0.09708574414253235,
-0.3416728377342224,
-0.18623892962932587,
-0.24472688138484955,
0.23888777196407318,
-0.1802261918783188,
-0.17472398281097412,
0.0037157221231609583,
0.19244793057441711,
0.13587062060832977,
-0.027029236778616905,
0.4467359185218811,
-0.3042335510253906,
0.1853557825088501,
-0.04351213946938515,
-0.3819201588630676,
-0.024509238079190254,
-0.5991342067718506,
-0.3232553005218506,
-0.02191612869501114,
-0.08324186503887177,
-0.02572586201131344,
0.19937823712825775,
0.059496428817510605,
0.18352393805980682,
-0.004105694591999054,
0.2055945247411728,
0.01652350462973118,
0.3655208349227905,
0.1646524965763092,
-0.471393346786499,
-0.0830722525715828,
0.12851789593696594,
-0.06531760096549988,
-0.5972940325737,
-0.056686416268348694,
-0.14796625077724457,
0.14520467817783356,
-0.2821497619152069,
-0.2286578267812729,
0.03994395583868027,
-0.25444138050079346,
0.01606081984937191,
0.18403717875480652,
0.39089933037757874,
-0.2808791399002075,
0.2990468144416809,
0.3615892827510834,
0.14523348212242126,
-0.2739695608615875,
-0.012023264542222023,
-0.032612144947052,
0.12974879145622253,
-0.12497921288013458,
-0.04473688825964928,
0.26289859414100647,
-0.42236077785491943,
-0.07430687546730042,
0.32908469438552856,
0.10349728167057037,
0.10942502319812775,
0.2540256977081299,
-0.24385759234428406,
0.2168099731206894,
0.040420036762952805,
0.06728347390890121,
0.20158228278160095,
0.08067589998245239,
0.3792653977870941,
-0.012376561760902405,
0.3443983495235443,
-0.26136577129364014,
0.15232783555984497,
-0.2981991767883301,
0.06037478521466255,
0.059115175157785416,
0.01053174864500761,
0.07159090042114258,
0.1019401028752327,
0.3803875744342804,
-0.13684812188148499,
0.2131640762090683,
-0.2690623104572296,
-0.12275566905736923,
-0.03984967619180679,
0.16071397066116333,
0.365642786026001,
-0.20274370908737183,
0.08068256825208664,
0.5047174692153931,
0.0049637057818472385,
-0.027619635686278343,
0.338337242603302,
-0.16617947816848755,
-0.03409889340400696,
0.027238817885518074,
-0.11631165444850922,
0.3451955318450928,
-0.2792835831642151,
0.03605979308485985,
0.08294720202684402,
-0.06111198663711548,
-0.07698485255241394,
0.14633619785308838,
0.16387060284614563,
0.14019104838371277,
-0.022537793964147568,
0.2774898409843445,
0.1859397143125534,
-0.12862463295459747,
0.011532138101756573,
-0.15664342045783997,
-0.013269596733152866,
0.5077595710754395,
0.0647813007235527,
0.08226587623357773,
-0.009003517217934132,
-0.25427278876304626,
0.2098660171031952,
-0.06292790919542313,
-0.18819795548915863,
0.056024402379989624,
0.40372174978256226,
-0.3440682590007782,
0.0713159367442131,
0.056215427815914154,
-0.42362475395202637,
-0.4435555040836334,
0.06341014057397842,
0.20908129215240479,
0.15496094524860382,
0.12225591391324997,
-0.010005404241383076,
-0.006008106283843517,
-0.14040924608707428,
0.03337423875927925,
0.24744866788387299,
-0.07419069111347198,
-0.33826297521591187,
0.05788210406899452,
0.005678771063685417,
-0.08650435507297516,
0.30333781242370605,
-0.11100805550813675,
0.2547245919704437,
-0.29049745202064514,
0.3031727969646454,
-0.05619479715824127,
-0.3207973539829254,
-0.08833491057157516,
0.20309555530548096,
0.09991256147623062,
-0.07013298571109772,
-0.09036220610141754,
0.22298488020896912,
-0.004175441339612007,
0.062492262572050095,
-0.437113881111145,
-0.15114060044288635,
0.2752559185028076,
-0.10572925209999084,
0.3364073932170868,
0.007038237992674112,
-0.01248474232852459,
-0.1347413957118988,
-0.11444050818681717,
0.11000734567642212,
-0.14373430609703064,
0.21963272988796234,
-0.03822726383805275,
0.010414575226604939,
-0.21662980318069458,
0.10874326527118683,
-0.12339690327644348,
0.03735915571451187,
0.30913275480270386,
-0.11574358493089676,
0.29923444986343384,
0.08626341819763184,
-0.6952056288719177,
-0.054113227874040604,
0.3723349869251251,
-0.051553256809711456,
0.0357353538274765,
0.05959837883710861,
-0.22021466493606567,
0.12800391018390656,
0.1781385987997055,
-0.3011554479598999,
0.23734335601329803,
0.19932396709918976,
0.03742702677845955,
-0.006050172261893749,
-0.3070220649242401,
-0.12910059094429016,
0.21570979058742523,
0.14721520245075226,
0.01538898516446352,
0.06936769187450409,
0.022596023976802826,
-0.17709627747535706,
-0.02397431805729866,
0.1697225421667099,
0.1075291559100151,
0.07904822379350662,
-0.3709743916988373,
0.1485450714826584,
-0.08512324094772339,
0.0055114757269620895,
-0.2897951304912567,
-0.02266453020274639,
-0.2290736883878708,
-0.21032999455928802,
-0.08484115451574326,
0.36503228545188904,
0.20181481540203094,
0.09820158034563065,
0.11913465708494186,
-0.20021075010299683,
0.21100980043411255,
-0.16409312188625336,
-0.1957544982433319,
-0.21561619639396667,
-0.1579667329788208,
-0.01995208114385605,
0.41417786478996277,
-0.039250463247299194,
0.2661203145980835,
-0.08109831809997559,
0.11953016370534897,
-0.30943620204925537,
-0.10376642644405365,
0.13923440873622894,
-0.2589535117149353,
-0.1265079826116562,
-0.12126141786575317,
0.2966698706150055,
-0.01753697171807289,
-0.06503472477197647,
0.11175421625375748,
0.045800864696502686,
-0.04475795850157738,
0.288617879152298,
0.096096932888031,
-0.03501317277550697,
-0.07449566572904587,
-0.5995060205459595,
-0.21129155158996582,
-0.144508957862854,
-0.062145013362169266,
-0.38636890053749084,
-0.02926938235759735,
-0.12032567709684372,
0.46042728424072266,
0.2548905611038208,
0.014104091562330723,
0.11264573037624359,
-0.02985064871609211,
-0.29542919993400574,
0.5208234786987305,
-0.2749045491218567,
-0.4628768563270569,
-0.07792387157678604,
0.27290695905685425,
-0.047754425555467606,
0.31540629267692566,
-0.15078869462013245,
0.025472281500697136,
-0.40946200489997864,
0.04541376233100891,
-0.14228524267673492,
-0.054907288402318954,
0.4183914363384247,
0.10740134119987488,
0.0682944506406784,
-0.08471126854419708,
0.04603206738829613,
-0.03185109421610832,
-0.1916358470916748,
0.09710776805877686,
-0.07289192080497742,
0.3707449436187744,
0.016202658414840698,
0.456696480512619,
-0.1325981467962265,
-0.4772811532020569,
0.12532898783683777,
-0.10246704518795013,
0.3399639427661896,
-0.0632663443684578,
-0.45806485414505005,
0.03259682655334473,
-0.16380959749221802,
0.02038377709686756,
-0.13774825632572174,
-0.07338740676641464,
-0.15640558302402496,
-0.20653420686721802,
0.24948203563690186,
0.04678665101528168,
-0.11627431958913803,
0.20999951660633087,
-0.5037881135940552,
0.08999703079462051,
-0.11944899708032608,
0.3503575623035431,
-0.22005335986614227,
-0.24461139738559723,
0.08949800580739975,
-0.026218406856060028,
0.09321077167987823,
0.0452534556388855,
-0.5232170224189758,
-0.04822303354740143,
-0.3011493384838104,
0.32754412293434143,
0.28510916233062744,
0.39457738399505615,
-0.18789508938789368,
0.08806487917900085,
0.14054159820079803,
-0.012141077779233456,
0.5735445618629456,
0.07731007039546967,
-0.33061009645462036,
0.07146494090557098,
-0.06549782305955887,
-0.6979696750640869,
0.18238547444343567,
-0.14509595930576324,
0.12507785856723785,
0.07785823196172714,
0.39853328466415405,
-0.24468398094177246,
-0.5145681500434875,
0.16610325872898102,
0.5513155460357666,
-0.06793951988220215,
-0.1278386265039444,
-0.12228289246559143,
-0.0074193100444972515,
-0.3731998801231384,
-0.04677274823188782,
0.30439096689224243,
0.12928064167499542,
-0.3400327265262604,
-0.30425840616226196,
-0.14978472888469696,
0.07175812125205994,
0.4278428554534912,
-0.007884185761213303,
0.1984148919582367,
-0.18256184458732605,
0.3117377460002899,
0.1805594265460968,
0.3363940417766571,
0.20418843626976013,
0.14298215508460999,
-0.2641712725162506,
0.002830314449965954,
0.19764429330825806,
0.1578177660703659,
0.3143098056316376,
0.13887858390808105,
-0.027535604313015938,
0.04446033388376236,
-0.3225717544555664,
0.10537321865558624,
-0.1478787064552307,
0.3770981729030609,
0.41179221868515015,
0.4101707339286804,
-0.5693942904472351,
-0.4581964612007141,
0.1601792573928833,
0.2949400246143341,
0.12530143558979034,
0.514218270778656,
-0.13982819020748138,
-0.16023516654968262,
0.21743230521678925,
0.18582257628440857,
0.9097228050231934,
-0.5160058736801147,
0.3435380160808563,
0.1018013209104538,
-0.1608806997537613,
0.39244768023490906,
-0.40850943326950073,
0.04748820886015892,
-0.4014609754085541,
-0.08573338389396667,
-0.07880280166864395,
-0.3112161159515381,
0.3145555555820465,
-0.1096251830458641,
-0.2194167971611023,
0.11117648333311081,
-0.2852611839771271,
0.36282584071159363,
-0.13126809895038605,
0.41574013233184814,
-0.2564929723739624,
-0.3052503764629364,
0.009683533571660519,
0.1124136745929718,
-0.1420697271823883,
0.0391995944082737,
0.13074076175689697,
0.017186760902404785,
-0.23725174367427826,
0.09181565046310425,
-0.2067219614982605,
0.1955270767211914,
-0.30462315678596497,
0.08340411633253098,
-0.2852327525615692,
-0.6679519414901733,
0.2832605540752411,
0.8073212504386902,
0.3981670141220093,
0.06690056622028351,
-0.0834549143910408,
0.09718560427427292,
-0.1695280224084854,
-0.25044962763786316,
0.026905572041869164,
-0.3444746434688568,
0.20137883722782135,
0.07987434417009354,
-0.129706472158432,
0.2350299209356308,
0.05757121369242668,
-0.10773768275976181,
-0.08959893137216568,
-0.008601758629083633,
0.23344969749450684,
-0.47626161575317383,
-0.26836302876472473,
0.014506151899695396,
0.02580318972468376,
-0.08515451848506927,
0.058798592537641525,
0.028217004612088203,
0.03836367279291153,
0.15623925626277924,
-0.0542333610355854,
-0.13529901206493378,
0.08464284986257553,
0.6563451886177063,
-0.006126439198851585,
-0.096101313829422,
0.577140212059021,
0.6213275194168091,
-0.22046838700771332,
-0.2095317393541336,
0.2048734426498413,
0.4002882242202759,
-0.3191525936126709,
0.06890307366847992,
-0.1601967215538025,
-0.1529136300086975,
-0.13040213286876678,
0.052842751145362854,
-0.1703876256942749,
-0.19084763526916504,
-0.03829524293541908,
-0.002424253849312663,
-0.5649747848510742,
0.09484028816223145,
0.26581504940986633,
0.4143570065498352,
0.17664697766304016,
0.0676170140504837,
-0.22998598217964172,
-0.10039951652288437,
-0.17006273567676544,
0.14614079892635345,
0.01862998865544796,
0.1811940222978592,
0.1692642718553543,
-0.13514818251132965,
0.13403141498565674,
-0.4327130913734436,
-0.011748634278774261,
0.26930883526802063,
0.12070445716381073,
-0.1611533761024475,
0.003720429725944996,
0.06099826470017433,
-0.14939254522323608,
-0.2178914099931717,
-0.22220362722873688,
-0.3654772937297821,
0.14862209558486938,
-0.19586244225502014,
0.26255831122398376,
0.5388057827949524,
-0.13170179724693298,
0.05770539864897728,
-0.12440969049930573,
0.2113122045993805,
-0.06800384819507599,
0.0010774340480566025,
-0.17931203544139862,
0.03371012583374977,
0.09583432972431183,
0.09737022966146469,
0.31139668822288513,
-0.03639735281467438,
-0.36011070013046265,
0.14465665817260742,
0.42419490218162537,
-0.0860692635178566,
0.09850224107503891,
-0.213594451546669,
0.09526026993989944,
-0.005806788802146912,
0.19795425236225128,
0.34177127480506897,
-0.18322908878326416,
-0.029840659350156784,
0.278056263923645,
0.08767777681350708,
0.025687644258141518,
-0.08578863739967346,
-0.3014290928840637,
-0.1910790503025055,
-0.06777780503034592,
0.03606381267309189,
-0.09077692031860352,
0.4408116042613983,
-0.18419504165649414,
0.24495069682598114,
0.22014406323432922,
-0.05376272648572922,
0.16704843938350677,
0.36901944875717163,
0.11422433704137802,
-0.03239047899842262,
0.22925938665866852,
0.11145403981208801,
-0.038272395730018616,
-0.0421534962952137,
0.1451997011899948,
0.6161942481994629,
0.30980682373046875,
0.27152135968208313,
0.35327333211898804,
0.06548022478818893,
-0.2112426459789276,
-0.06878846138715744,
0.03939604386687279,
-0.022407392039895058,
-0.04844387248158455,
0.4712449312210083,
-0.1950104981660843,
-0.47825920581817627,
-0.07938052713871002,
0.19359226524829865,
-0.20540590584278107,
-0.016762135550379753,
-0.15583644807338715,
-0.16689783334732056,
0.1748683601617813,
-0.01702170819044113,
-0.05806500092148781,
-0.08948642760515213,
0.3186841309070587,
0.3166031241416931,
-0.05158604681491852,
-0.048153553158044815,
0.10590573400259018,
0.20066691935062408,
-0.09356863051652908,
0.03057241067290306,
0.12622052431106567,
0.1343734711408615,
-0.13111306726932526,
0.021478189155459404,
0.2105248123407364,
0.3595525026321411,
0.19740299880504608,
-0.3775434195995331,
0.10383662581443787,
0.07888180017471313,
-0.1375027745962143,
0.414679616689682,
0.24476897716522217,
-0.0010709644993767142,
0.00353246764279902,
0.3206642270088196,
0.11156971752643585,
-0.13621826469898224,
-0.16748064756393433,
-0.07209772616624832,
0.002406998537480831,
-0.22861598432064056,
0.36325353384017944,
-0.14282679557800293,
-0.25218719244003296,
-0.22474585473537445,
-0.29585495591163635,
-0.39856794476509094,
-0.05846371874213219,
0.6664863228797913,
-0.13300113379955292,
-0.12826833128929138,
-0.022891057655215263,
0.011174687184393406,
0.2890179753303528,
0.5228797793388367,
0.05615978688001633,
0.23667646944522858,
-0.35117819905281067,
0.025796769186854362,
-0.22194123268127441,
-0.03868449851870537,
-0.0867249071598053,
0.058129046112298965,
-0.04933755099773407,
0.04156706854701042,
0.10330867022275925,
0.30678871273994446,
0.08084185421466827,
-0.08795193582773209,
0.113565593957901,
0.28939762711524963,
-0.3699815273284912,
-0.06381850689649582,
-0.022777611389756203,
0.10178984701633453,
0.13452178239822388,
-0.38565516471862793,
0.20772956311702728,
0.13594302535057068,
-0.024449123069643974,
-0.3676215708255768,
0.17862661182880402,
0.1885697841644287,
-0.03524068370461464,
0.20211289823055267,
-0.06086639314889908,
0.680990993976593,
0.15462718904018402,
0.00142494251485914,
0.10013821721076965,
-0.20808741450309753,
-0.029639899730682373,
0.028833921998739243,
0.037290461361408234,
0.22592656314373016,
-0.19350206851959229,
-0.2897944450378418,
-0.2599354684352875,
0.4156818985939026,
-0.05054841935634613,
-0.03989209234714508,
-0.1345125138759613,
0.10937380790710449,
0.03201068937778473,
0.10955949127674103,
0.27259859442710876,
0.5703678727149963,
0.09213344752788544,
0.4067796766757965,
-0.3857579231262207,
-0.16452239453792572,
0.5223590135574341,
-0.2746140956878662,
-0.3560434877872467,
-0.0018270558211952448,
-0.0017384238308295608,
0.5570204854011536,
0.08818897604942322,
-0.7385705709457397,
-0.09155002981424332,
-0.006558376830071211,
-0.23299747705459595,
0.04508136957883835,
0.20878544449806213,
0.18275989592075348,
0.14781759679317474,
-0.12870436906814575,
0.3528141677379608,
0.07561958581209183,
-0.0020417002961039543,
-0.2567734122276306,
-0.2446458339691162
] |
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.08192650228738785,
-0.049519121646881104,
-0.08793140947818756,
0.12161505222320557,
0.08929114788770676,
-0.1563626378774643,
0.16716903448104858,
0.24332618713378906,
-0.09968399256467819,
0.08036459982395172,
-0.08278680592775345,
0.26741692423820496,
-0.18599078059196472,
-0.26891520619392395,
0.0077186631970107555,
0.35984307527542114,
-0.07975756376981735,
0.029141942039132118,
-0.4379904270172119,
-0.2746313810348511,
-0.2619415819644928,
-0.09081023931503296,
-0.12036103755235672,
-0.1932390183210373,
-0.42167478799819946,
0.0018894481472671032,
-0.04986948519945145,
0.2467164248228073,
0.039786435663700104,
-0.3421671390533447,
-0.18333278596401215,
0.1572590321302414,
0.030823970213532448,
0.18965953588485718,
-0.00011149654164910316,
-0.18508027493953705,
0.26401421427726746,
-0.008146035484969616,
-0.2726573944091797,
0.09022121131420135,
0.015426705591380596,
0.1384185254573822,
-0.04097536951303482,
-0.21227723360061646,
0.11432182043790817,
-0.16812776029109955,
0.02865733951330185,
-0.6539847254753113,
0.0326685830950737,
0.0999307781457901,
0.277249276638031,
0.19962923228740692,
-0.13891276717185974,
0.13665084540843964,
0.3288573920726776,
-0.08152443915605545,
-0.0022259969264268875,
0.2885019779205322,
0.010408950038254261,
-0.09369327127933502,
-0.3071182072162628,
0.2813214659690857,
-0.19136610627174377,
0.08084606379270554,
0.3518431782722473,
0.17960813641548157,
0.0172843299806118,
0.06774704158306122,
0.1912313997745514,
0.05974363535642624,
0.33753231167793274,
-0.5688875913619995,
-0.446180135011673,
-0.25345852971076965,
-0.11460563540458679,
-0.07631545513868332,
0.1631678342819214,
-0.15364432334899902,
0.15362563729286194,
0.1698356568813324,
-0.13453884422779083,
0.09915494173765182,
0.24952642619609833,
0.09856929630041122,
-0.009266930632293224,
0.15770123898983002,
0.06776761263608932,
-0.041967276483774185,
0.016090337187051773,
-0.1232827827334404,
0.286469429731369,
-0.20803189277648926,
0.10855793952941895,
-0.05593408644199371,
0.016890576109290123,
-0.02247348427772522,
0.3788660168647766,
0.19549481570720673,
0.1477338969707489,
0.06383496522903442,
0.09117764234542847,
0.018221283331513405,
0.11356960237026215,
0.035234324634075165,
0.1287691742181778,
0.24734412133693695,
0.15207992494106293,
0.35751715302467346,
0.3471328914165497,
-0.5027487277984619,
-0.35697031021118164,
0.11335387825965881,
0.28671878576278687,
-0.03805074840784073,
0.6074776649475098,
0.13038413226604462,
-0.07437508553266525,
-0.04956323280930519,
-0.03143874183297157,
0.326649934053421,
-0.020054209977388382,
-0.20201781392097473,
0.27175796031951904,
0.46645623445510864,
-0.34191784262657166,
0.1982007622718811,
-0.04716705530881882,
-0.27863767743110657,
-0.18592973053455353,
0.30829426646232605,
-0.37182489037513733,
-0.15416352450847626,
-0.14058035612106323,
0.2501676678657532,
0.009540203958749771,
-0.1329054832458496,
0.15809690952301025,
0.12851107120513916,
0.298381507396698,
0.1937902867794037,
0.08732552826404572,
-0.3041607141494751,
0.3930497467517853,
0.13538217544555664,
-0.09533091634511948,
0.2159692496061325,
0.04721642658114433,
-0.06364447623491287,
-0.45218852162361145,
0.04861723631620407,
-0.01598615199327469,
-0.21039389073848724,
-0.023090671747922897,
0.28473225235939026,
-0.2386862188577652,
0.09680365025997162,
0.19123542308807373,
-0.23420950770378113,
0.24904094636440277,
-0.18044587969779968,
-0.07496563345193863,
-0.32611796259880066,
-0.32513561844825745,
-0.41911765933036804,
0.09440738707780838,
0.4102349877357483,
-0.3341294825077057,
-0.09406696259975433,
-0.1776907593011856,
0.25976258516311646,
0.14738628268241882,
0.10983604192733765,
-0.028269192203879356,
-0.0454397015273571,
-0.3166433870792389,
0.2087913155555725,
0.06500540673732758,
-0.3961065709590912,
-0.5688528418540955,
0.06140837445855141,
-0.1132693886756897,
0.2327502816915512,
-0.08864273875951767,
0.1138276532292366,
0.4595193862915039,
-0.08516276627779007,
0.13035929203033447,
0.20836018025875092,
0.26072457432746887,
0.20125974714756012,
-0.3684203326702118,
-0.03762340173125267,
0.0532563216984272,
-0.06962419301271439,
-0.05924021452665329,
-0.0664011687040329,
0.10566017031669617,
-0.10162279009819031,
0.08019910007715225,
-0.06151796132326126,
0.020489787682890892,
0.13802431523799896,
0.3963470757007599,
0.08724729716777802,
0.22724023461341858,
-0.08928710967302322,
-0.603063702583313,
0.37172648310661316,
-0.034918271005153656,
-0.49066561460494995,
-0.20422284305095673,
-0.3759239614009857,
0.13117559254169464,
0.15936458110809326,
-0.03345618396997452,
0.07599549740552902,
0.08853321522474289,
0.31692737340927124,
0.26586389541625977,
0.2659108638763428,
0.057377684861421585,
0.1314191371202469,
-0.14873278141021729,
-0.2696957588195801,
0.012214184738695621,
0.046974971890449524,
-0.19590027630329132,
-0.2563343942165375,
0.03521567955613136,
0.0014536096714437008,
0.04272749274969101,
0.06915834546089172,
-0.11593503504991531,
0.21380113065242767,
0.18775367736816406,
-0.07654643803834915,
0.003609586739912629,
0.38657766580581665,
-0.1713910847902298,
-0.022320322692394257,
0.23905344307422638,
0.18479882180690765,
0.06413991004228592,
-0.14832265675067902,
-0.1509416699409485,
0.6806601285934448,
0.11768375337123871,
0.08925378322601318,
-0.06013035774230957,
-0.15755417943000793,
-0.07743365317583084,
0.09119779616594315,
0.017360756173729897,
-0.43904396891593933,
0.05230974033474922,
-0.19416677951812744,
0.6369011402130127,
0.3142584264278412,
-0.24419565498828888,
0.418929785490036,
0.6483615040779114,
0.04000119864940643,
0.23943716287612915,
0.12241598218679428,
0.01757785677909851,
-0.26550084352493286,
0.11217209696769714,
-0.1683274507522583,
0.41863295435905457,
0.25382286310195923,
0.1602875292301178,
-0.08794857561588287,
0.006097426638007164,
-0.14084719121456146,
0.04320962354540825,
-0.24336585402488708,
-0.05741370469331741,
0.22972334921360016,
0.18168140947818756,
-0.07873083651065826,
-0.1304653286933899,
0.07156822085380554,
-0.09222261607646942,
0.1561158001422882,
-0.13338162004947662,
0.08729861676692963,
-0.4846896827220917,
0.15386433899402618,
0.07266860455274582,
-0.19946043193340302,
-0.2668464481830597,
-0.2821634113788605,
0.10827714204788208,
0.0481434240937233,
-0.19910027086734772,
0.19225431978702545,
-0.2088039219379425,
0.14492888748645782,
0.20555712282657623,
-0.32246410846710205,
-0.22086821496486664,
-0.1914168745279312,
-0.208892822265625,
0.00586756132543087,
0.13952377438545227,
-0.1580904722213745,
0.3791804313659668,
0.05020168796181679,
-0.143288716673851,
-0.24706533551216125,
-0.19589018821716309,
-0.07937435805797577,
0.16514812409877777,
0.08863555639982224,
0.04852430149912834,
-0.2080034464597702,
-0.29184597730636597,
-0.31916290521621704,
0.1711033284664154,
-0.39428791403770447,
-0.30492570996284485,
-0.26809144020080566,
0.10643952339887619,
0.06934435665607452,
-0.09697718918323517,
-0.09727790951728821,
-0.10179414600133896,
-0.24930740892887115,
-0.11946330219507217,
0.08025602996349335,
0.24882419407367706,
-0.03639472648501396,
-0.10888030380010605,
-0.014640008099377155,
0.059410277754068375,
0.1286460906267166,
-0.4220736622810364,
-0.37231528759002686,
0.3654728829860687,
-0.2404806762933731,
-0.20157235860824585,
-0.28942322731018066,
-0.28208380937576294,
-0.20847012102603912,
0.12742242217063904,
-0.4713219404220581,
-0.4080054759979248,
-0.21873433887958527,
0.3893476724624634,
0.1095758005976677,
0.0051506576128304005,
0.17648310959339142,
-0.03992542624473572,
-0.056361597031354904,
-0.22307060658931732,
-0.231382355093956,
0.031362384557724,
-0.046405043452978134,
0.13645972311496735,
0.026225287467241287,
-0.005842833314090967,
0.07989539206027985,
0.8998237252235413,
-0.011325791478157043,
-0.37790313363075256,
0.014630877412855625,
0.17561006546020508,
0.3247353136539459,
-0.2775588035583496,
-0.23647387325763702,
0.14910192787647247,
0.08126882463693619,
0.10213836282491684,
0.36824315786361694,
-0.06512773782014847,
-0.23166191577911377,
0.06267384439706802,
0.2769608497619629,
-0.403515100479126,
-0.286498099565506,
0.14814800024032593,
-0.3117341995239258,
-0.12622277438640594,
0.173555389046669,
0.33512839674949646,
-0.2934388816356659,
0.04297541826963425,
0.02113286219537258,
-0.14943501353263855,
0.28263044357299805,
-0.05908065289258957,
-0.010806292295455933,
0.2990710437297821,
-0.3614233732223511,
0.3434768617153168,
0.23584072291851044,
0.1108580231666565,
0.08823972195386887,
-0.4010428488254547,
0.1434253603219986,
-0.13494844734668732,
0.5495225191116333,
-0.1641116738319397,
0.1260451078414917,
0.15827934443950653,
-0.484235554933548,
-0.09562324732542038,
-0.030400123447179794,
0.11848529428243637,
0.19680170714855194,
0.2551366090774536,
0.03884417936205864,
-0.34026196599006653,
0.04985067993402481,
-0.05000848323106766,
0.048690877854824066,
-0.06879125535488129,
-0.3214806318283081,
-0.20814788341522217,
-0.037243206053972244,
0.029492491856217384,
0.05470152199268341,
-0.21144933998584747,
0.11448828130960464,
-0.1402607560157776,
-0.06641463935375214,
-0.2791725695133209,
-0.21110372245311737,
0.19200997054576874,
0.07559114694595337,
0.39007920026779175,
-0.12253420054912567,
0.4145752191543579,
0.23958998918533325,
0.427496075630188,
0.03295313939452171,
0.1387421041727066,
-0.3923274278640747,
-0.11958244442939758,
0.10177017003297806,
0.09480232000350952,
-0.15820929408073425,
0.31117090582847595,
-0.04079170525074005,
-0.022208480164408684,
0.05542615428566933,
0.02184245176613331,
-0.11872350424528122,
0.11405574530363083,
0.01088502537459135,
0.10727774351835251,
-0.31662043929100037,
-0.40291714668273926,
0.27684593200683594,
0.2825393080711365,
-0.11672370135784149,
0.5915077924728394,
-0.1340261548757553,
-0.13369305431842804,
0.19366005063056946,
0.400524377822876,
1.183496117591858,
-0.23227831721305847,
0.23837155103683472,
0.020689954981207848,
0.17869046330451965,
0.06639129668474197,
0.22752051055431366,
-0.00201000296510756,
-0.41978326439857483,
-0.22786585986614227,
0.1450522094964981,
-0.13763606548309326,
-0.04280620813369751,
-0.14630120992660522,
-0.22762036323547363,
0.026821088045835495,
-0.3041326105594635,
0.3562979996204376,
-0.12158861756324768,
0.29697805643081665,
-0.050946228206157684,
-0.051576558500528336,
0.31127649545669556,
0.2058669775724411,
0.15186110138893127,
0.12178787589073181,
-0.0988248735666275,
0.13930930197238922,
-0.12246878445148468,
-0.17170089483261108,
0.006999564822763205,
-0.000060371796280378476,
-0.08792204409837723,
0.4257012903690338,
0.029025448486208916,
-0.39666417241096497,
-0.4203561544418335,
0.4777073562145233,
0.13341987133026123,
0.21346217393875122,
0.03552214428782463,
0.12813518941402435,
0.042288221418857574,
0.3417685329914093,
0.04047076404094696,
-0.2964972257614136,
0.13778990507125854,
0.12439478188753128,
-0.09290391951799393,
-0.01225250493735075,
0.2514984905719757,
-0.40366798639297485,
-0.29883652925491333,
0.4665336012840271,
-0.19796262681484222,
-0.09912621974945068,
-0.021511461585760117,
0.06496863812208176,
-0.11092504858970642,
-0.15028107166290283,
0.19587726891040802,
0.359541654586792,
-0.04628973454236984,
0.5922567844390869,
-0.27997279167175293,
-0.15503932535648346,
-0.21391591429710388,
0.6729286313056946,
0.20950527489185333,
0.30164146423339844,
0.036869216710329056,
0.017652198672294617,
-0.4765993654727936,
-0.13345611095428467,
-0.12716296315193176,
-0.4220762550830841,
0.13669727742671967,
0.42943915724754333,
-0.06954281032085419,
-0.039198845624923706,
-0.11249852180480957,
-0.08527456969022751,
-0.08712856471538544,
0.1773785799741745,
-0.31326743960380554,
-0.029629647731781006,
-0.14867337048053741,
-0.045039527118206024,
-0.15793322026729584,
0.24343173205852509,
-0.01597404107451439,
0.13891898095607758,
-0.39367562532424927,
0.3332870602607727,
-0.40512052178382874,
-0.12309211492538452,
-0.20807230472564697,
0.044010747224092484,
-0.18883498013019562,
-0.25656014680862427,
0.1808720827102661,
-0.14471448957920074,
0.22799265384674072,
0.27501925826072693,
-0.10629911720752716,
-0.28353992104530334,
-0.02802547998726368,
0.09198381006717682,
-0.08449281752109528,
0.1104625016450882,
-0.03898157924413681,
-0.09295052289962769,
-0.007597969379276037,
-0.3970494270324707,
0.2798284590244293,
0.5578258633613586,
0.03094470500946045,
0.09722428023815155,
0.08776118606328964,
-0.1142401471734047,
0.3257336914539337,
0.28582561016082764,
-0.25438737869262695,
0.12938961386680603,
-0.2279171198606491,
0.3314225673675537,
-0.053683698177337646,
-0.08295057713985443,
0.3215910792350769,
0.030603943392634392,
-0.08610383421182632,
-0.16762329638004303,
0.2974967658519745,
0.04006528854370117,
-0.23997260630130768,
0.23878100514411926,
0.4261121153831482,
0.19390952587127686,
-0.02050764113664627,
-0.41336876153945923,
0.3929368555545807,
0.23046885430812836,
-0.18043962121009827,
-0.3763195872306824,
0.059188105165958405,
0.0784870907664299,
0.10608142614364624,
0.13276655972003937,
-0.0895823985338211,
-0.014472232200205326,
-0.0005616441485472023,
-0.04465074837207794,
0.23148982226848602,
-0.1061655580997467,
0.14972873032093048,
0.17256364226341248,
0.3157943785190582,
0.02308332733809948,
0.4607914388179779,
0.18742528557777405,
0.18096601963043213,
0.3305390179157257,
-0.12411016970872879,
0.1913284808397293,
-0.18209610879421234,
0.010282277129590511,
0.008897995576262474,
-0.5474191308021545,
0.4308392107486725,
0.3629773259162903,
-0.10970135778188705,
0.29568538069725037,
0.07351790368556976,
0.18321190774440765,
0.01642845757305622,
0.10662177205085754,
-0.18485066294670105,
0.15074650943279266,
-0.2467528134584427,
-0.03448868915438652,
0.11135442554950714,
-0.02152147702872753,
0.1639784276485443,
0.07040964812040329,
-0.08898098766803741,
-0.2862010896205902,
0.3403046429157257,
0.15303869545459747,
-0.034016527235507965,
-0.2817843556404114,
0.202858567237854,
-0.32292255759239197,
0.2571036219596863,
-0.1704564392566681,
-0.04732361063361168,
0.12589995563030243,
0.16149920225143433,
-0.16581887006759644,
0.13661237061023712,
0.24503830075263977,
0.5118291974067688,
-0.06086111068725586,
0.10656764358282089,
-0.007779381237924099,
-0.058620769530534744,
-0.4952121376991272,
0.3433312475681305,
-0.31258490681648254,
-0.31573861837387085,
0.3530357778072357,
0.2092960923910141,
-0.25332215428352356,
0.06424374878406525,
0.06967728585004807,
0.27185556292533875,
0.20331041514873505,
0.15902327001094818,
0.015067876316606998,
0.11300452053546906,
0.024057531729340553,
0.27944013476371765,
-0.2663089334964752,
-0.22402645647525787,
0.3107806146144867,
0.013221475295722485,
0.14720432460308075,
-0.2555623948574066,
0.08907706290483475,
-0.1660216599702835,
0.3152880370616913,
0.38313886523246765,
0.30864912271499634,
-0.1163453459739685,
0.05313016101717949,
-0.3521817922592163,
0.38372209668159485,
-0.1386062502861023,
-0.0015881387516856194,
-0.08007516711950302,
0.41944730281829834,
-0.1131015419960022,
-0.1083751991391182,
0.07125698029994965,
0.31922027468681335,
-0.0017822196241468191,
0.39476609230041504,
-0.43281805515289307,
0.13716299831867218,
-0.5196853280067444,
-0.2913021445274353,
0.1394789218902588,
-0.5391643047332764,
0.19587749242782593,
-0.03490613400936127,
0.20481336116790771,
-0.2840939462184906,
0.11393099278211594,
-0.0007831988041289151,
0.1637154370546341,
0.5047897696495056,
0.3265345096588135,
0.2440897822380066,
-0.12141753733158112,
0.08809536695480347,
-0.04055948555469513,
-0.10042031854391098,
-0.05617218837141991,
-0.23007571697235107,
0.0645584985613823,
0.11270549893379211,
-0.3109338581562042,
-0.34686732292175293,
-0.15345816314220428,
0.647614061832428,
0.06304024159908295,
-0.05047640949487686,
0.06644785404205322,
-0.0019150777952745557,
-0.28148677945137024,
0.0068398588337004185,
-0.19151373207569122,
0.3433918356895447,
0.019211506471037865,
0.14410676062107086,
-0.20248550176620483,
-0.34115493297576904,
0.6150744557380676,
-0.08100984990596771,
0.03454624488949776,
-0.2443355917930603,
0.287325382232666,
0.21989968419075012,
-0.16810670495033264,
-0.23653283715248108,
-0.1594689041376114,
0.2943345010280609,
0.1065889522433281,
-0.18173812329769135,
0.08410904556512833,
0.029177900403738022,
0.21672984957695007,
-0.19014684855937958,
-0.06646884977817535,
-0.03469591215252876,
-0.2794089913368225,
0.16842883825302124,
-0.35063889622688293
] |
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.2620132863521576,
-0.2916291058063507,
-0.18041527271270752,
0.1139713004231453,
0.06065027415752411,
-0.026537150144577026,
0.28197532892227173,
0.16877365112304688,
0.11090242117643356,
0.08455115556716919,
0.15545937418937683,
0.2481852024793625,
-0.35543620586395264,
0.3489527106285095,
0.17109981179237366,
-0.06561943143606186,
0.020534994080662727,
0.13697044551372528,
-0.6233144998550415,
-0.0821489617228508,
0.08253978192806244,
-0.12743937969207764,
-0.266627699136734,
-0.17412808537483215,
0.05231853201985359,
-0.36827901005744934,
-0.39575156569480896,
-0.14224429428577423,
-0.22422128915786743,
-0.36304742097854614,
0.21437257528305054,
0.24085202813148499,
0.40664365887641907,
0.5543981194496155,
-0.00010314798419130966,
-0.1346861571073532,
0.14043539762496948,
-0.08244722336530685,
-0.1723601222038269,
-0.2457789033651352,
-0.154120534658432,
-0.26730576157569885,
0.08497064560651779,
-0.419758141040802,
-0.032718442380428314,
-0.13103404641151428,
0.087362140417099,
-0.3289758265018463,
0.2696435749530792,
0.13272519409656525,
0.2795182764530182,
-0.21985431015491486,
0.1302632987499237,
-0.021149661391973495,
-0.031763527542352676,
0.0726197138428688,
-0.05838382989168167,
0.22053387761116028,
0.17179542779922485,
0.15654686093330383,
0.12111236155033112,
0.02872573211789131,
0.1655879020690918,
-0.0035966590512543917,
0.38764140009880066,
-0.09656500071287155,
-0.044256791472435,
-0.42765873670578003,
-0.1730991154909134,
0.06600337475538254,
0.8125041127204895,
-0.44125398993492126,
-0.39384180307388306,
0.049086425453424454,
0.04307689517736435,
-0.5168246030807495,
-0.15270651876926422,
0.1491919457912445,
0.06414394825696945,
0.05867123603820801,
-0.13482341170310974,
-0.26214802265167236,
-0.2698768973350525,
0.12406819313764572,
-0.12026894837617874,
0.176642045378685,
-0.13961844146251678,
0.09773863106966019,
0.15541225671768188,
-0.17877225577831268,
0.3191449046134949,
-0.005836599040776491,
0.18436425924301147,
0.284991055727005,
-0.5635163187980652,
-0.32469433546066284,
0.008888433687388897,
0.3077012598514557,
0.34263280034065247,
0.38453707098960876,
0.06103302165865898,
-0.05311180651187897,
-0.16387395560741425,
0.21538665890693665,
0.5052177309989929,
-0.0575832799077034,
-0.09676516056060791,
0.07736202329397202,
0.1371307224035263,
-0.07462282478809357,
-0.17876572906970978,
-0.08501118421554565,
-0.20362305641174316,
-0.23511867225170135,
0.1354384422302246,
-0.16734018921852112,
-0.010803615674376488,
-0.08981503546237946,
-0.0006084530614316463,
-0.21413187682628632,
-0.2479068636894226,
-0.26657456159591675,
0.16424734890460968,
0.23584631085395813,
-0.24758177995681763,
0.18323037028312683,
-0.2718723714351654,
-0.12472241371870041,
0.03818162903189659,
0.25222453474998474,
-0.10042449831962585,
0.4507005214691162,
-0.37709856033325195,
0.03218153864145279,
-0.06412725895643234,
-0.36359015107154846,
0.0666290894150734,
0.0946304053068161,
0.1086147278547287,
-0.08915397524833679,
0.13551397621631622,
-0.27288582921028137,
0.37566012144088745,
-0.0038801301270723343,
-0.04900624603033066,
-0.0022552895825356245,
-0.1385652720928192,
0.056521765887737274,
-0.42629504203796387,
0.01912064477801323,
-0.39384162425994873,
-0.04655002802610397,
-0.03729095682501793,
0.21541710197925568,
-0.18311375379562378,
-0.21765290200710297,
0.0798008143901825,
0.15349453687667847,
0.07347461581230164,
-0.11235465109348297,
0.015881825238466263,
-0.10772588104009628,
-0.03388114646077156,
-0.2993711829185486,
0.08833437412977219,
0.1641407161951065,
-0.35705167055130005,
0.07766485214233398,
0.08042983710765839,
0.04919534921646118,
0.13622702658176422,
0.22188907861709595,
-0.25689563155174255,
0.21366022527217865,
-0.2126913219690323,
-0.07079693675041199,
0.5765590071678162,
-0.2613773047924042,
-0.1435525268316269,
0.2921447157859802,
0.07466930150985718,
-0.0027991507668048143,
0.12064553052186966,
0.19943556189537048,
-0.05240637809038162,
-0.01693417690694332,
-0.1686791181564331,
0.23800203204154968,
-0.011463583447039127,
-0.10067455470561981,
-0.005254942923784256,
0.10090802609920502,
0.1932470202445984,
0.04015175998210907,
0.08938667923212051,
0.2351982146501541,
0.05823737010359764,
0.11276324838399887,
0.4554217755794525,
-0.2984418570995331,
0.10829460620880127,
0.21042890846729279,
0.30907467007637024,
0.11489970237016678,
0.14627888798713684,
-0.36798879504203796,
0.14843639731407166,
0.09863695502281189,
0.27859583497047424,
0.052047643810510635,
0.234070286154747,
-0.06934787333011627,
-0.04428776726126671,
0.07640702277421951,
-0.2159164845943451,
-0.05788719281554222,
0.18849356472492218,
0.16734082996845245,
0.17427515983581543,
-0.11896093189716339,
-0.589941143989563,
0.21855874359607697,
-0.21632267534732819,
-0.11844826489686966,
-0.5084570646286011,
0.21473196148872375,
0.15422329306602478,
-0.010817216709256172,
0.09650272130966187,
0.11695664376020432,
-0.1846952885389328,
-0.43437904119491577,
0.2691546380519867,
0.27708157896995544,
0.044099364429712296,
-0.07131262123584747,
0.07927416265010834,
0.35850682854652405,
0.2771753966808319,
-0.12153932452201843,
0.06654979288578033,
-0.19132260978221893,
0.3170199394226074,
-0.03046374022960663,
0.24458718299865723,
0.47543835639953613,
-0.15990637242794037,
0.1892336905002594,
0.451546847820282,
-0.13987459242343903,
0.06978907436132431,
-0.07834143936634064,
-0.37812376022338867,
0.1251237839460373,
-0.11088820546865463,
-0.16471780836582184,
0.43239763379096985,
-0.19135823845863342,
-0.43869975209236145,
-0.2600639760494232,
0.4845886826515198,
-0.0010403856867924333,
-0.004696591757237911,
0.06547553092241287,
-0.07338663190603256,
0.007284483872354031,
-0.05278950557112694,
0.13742674887180328,
0.3874976336956024,
0.05517825856804848,
0.20383352041244507,
0.06407968699932098,
0.011908106505870819,
0.1259278506040573,
0.1537790596485138,
0.0687420666217804,
0.3130621016025543,
-0.019403576850891113,
0.03476040065288544,
0.056490298360586166,
-0.16358710825443268,
-0.3934367001056671,
-0.07631871104240417,
0.16185420751571655,
-0.021135659888386726,
0.3687208592891693,
-0.32971513271331787,
-0.3494110107421875,
-0.3988715708255768,
-0.23844730854034424,
0.11402583122253418,
0.036157455295324326,
-0.2951521873474121,
-0.041035186499357224,
0.33950895071029663,
0.13552239537239075,
0.14926783740520477,
0.17121689021587372,
0.08567176014184952,
0.024713769555091858,
0.05594911426305771,
-0.024967441335320473,
-0.015380808152258396,
0.1965169906616211,
0.2742663025856018,
-0.1589585244655609,
0.5873376131057739,
0.0007300975266844034,
-0.08041694760322571,
-0.36803439259529114,
-0.18619054555892944,
0.17039677500724792,
-0.012842293828725815,
0.03514014557003975,
0.2513340711593628,
-0.0045819696970283985,
-0.04899938777089119,
-0.0918230339884758,
0.02353581227362156,
-0.3367694616317749,
0.17294788360595703,
-0.22048407793045044,
-0.10174315422773361,
0.10092216730117798,
0.09097824990749359,
-0.2924434244632721,
-0.5083234906196594,
-0.24750858545303345,
0.24295586347579956,
0.43553271889686584,
0.26851096749305725,
0.1604330986738205,
0.0689341276884079,
0.2123548984527588,
0.19883495569229126,
0.07734732329845428,
0.02266223542392254,
-0.2997841536998749,
0.1812627613544464,
-0.3456687927246094,
-0.2615363299846649,
-0.0005989763885736465,
-0.012473235838115215,
0.43896710872650146,
0.1449286937713623,
-0.2703377604484558,
-0.11316269636154175,
0.00786194484680891,
-0.016493376344442368,
0.06934496760368347,
0.5041049718856812,
0.12708958983421326,
-0.2268276810646057,
-0.08355651795864105,
-0.06643900275230408,
0.05312904343008995,
-0.06647175550460815,
-0.14305314421653748,
0.209624782204628,
0.45484980940818787,
0.35928794741630554,
-0.04600255563855171,
0.34331613779067993,
0.23416951298713684,
-0.4142981469631195,
0.35872310400009155,
-0.31389710307121277,
-0.16214793920516968,
-0.05677470937371254,
-0.29928115010261536,
0.0955500528216362,
-0.32899439334869385,
-0.2866768538951874,
0.07652918249368668,
-0.13286250829696655,
-0.34049394726753235,
-0.3377622663974762,
0.11425063014030457,
0.014496652409434319,
-0.01709699258208275,
-0.008165988139808178,
-0.3336505889892578,
0.2520328164100647,
-0.24628233909606934,
-0.1816350221633911,
-0.11595677584409714,
0.07891853898763657,
-0.026201844215393066,
0.09997852891683578,
0.10926731675863266,
-0.12819191813468933,
-0.5397811532020569,
-0.18718434870243073,
-0.28319603204727173,
0.0810423493385315,
-0.10943880677223206,
0.2423330545425415,
0.37010180950164795,
-0.17447493970394135,
0.07191566377878189,
-0.3205098807811737,
0.3552825152873993,
-0.011020130477845669,
-0.5156711935997009,
0.07027846574783325,
-0.41069963574409485,
0.08270431309938431,
0.11707497388124466,
-0.3059649169445038,
0.5226395130157471,
0.18024161458015442,
-0.07002097368240356,
-0.1232784166932106,
-0.28902214765548706,
0.35846149921417236,
0.16389526426792145,
0.003358367830514908,
-0.2747875452041626,
-0.025492507964372635,
-0.2516484260559082,
-0.237118199467659,
-0.11535812169313431,
-0.11301296949386597,
0.0015426476020365953,
-0.07153704762458801,
-0.06345254927873611,
-0.2532045245170593,
0.05917775258421898,
0.22962768375873566,
-0.05857296660542488,
0.03059038147330284,
-0.018770914524793625,
0.18878315389156342,
0.05898819863796234,
0.3323001265525818,
0.3582286834716797,
0.35316166281700134,
-0.12572410702705383,
-0.07426648586988449,
0.1878257691860199,
0.2395177036523819,
0.43757134675979614,
0.009445718489587307,
-0.07419589906930923,
0.18539319932460785,
-0.21985270082950592,
-0.0161867905408144,
-0.3805890679359436,
-0.038621947169303894,
0.33481088280677795,
-0.0018571224063634872,
-0.6414477825164795,
-0.8713586926460266,
0.568874716758728,
0.26136359572410583,
0.004064979963004589,
0.3360823690891266,
-0.12262768298387527,
-0.10235259681940079,
-0.09029316902160645,
0.14670120179653168,
0.6982852816581726,
0.08367890119552612,
0.0944301187992096,
0.195781871676445,
0.29109054803848267,
0.4742540419101715,
-0.02317645587027073,
0.09571366012096405,
-0.4712156653404236,
-0.2424991875886917,
-0.15763604640960693,
-0.13529017567634583,
0.32748597860336304,
0.09737391769886017,
-0.26736700534820557,
0.46175768971443176,
0.08613146841526031,
-0.01916205696761608,
-0.07813329994678497,
0.2627317011356354,
-0.29575681686401367,
-0.14919476211071014,
-0.3420793116092682,
0.20871032774448395,
0.13754495978355408,
0.13050512969493866,
-0.16799873113632202,
-0.19627036154270172,
0.3250446617603302,
0.12176492810249329,
-0.025997595861554146,
-0.14700403809547424,
-0.10144831240177155,
0.015776196494698524,
0.12716548144817352,
-0.3621408939361572,
0.29242971539497375,
0.19122523069381714,
0.22345291078090668,
-0.013316252268850803,
-0.04126352816820145,
0.028185490518808365,
-0.1452387273311615,
-0.03710044547915459,
-0.022827306762337685,
0.15727750957012177,
0.5331593751907349,
-0.05378246679902077,
-0.06487636268138885,
0.2946966290473938,
0.09658335894346237,
-0.07671236246824265,
-0.08373235166072845,
0.2173760086297989,
0.21056687831878662,
-0.13782408833503723,
-0.13685990869998932,
0.4520663022994995,
-0.11386886239051819,
-0.07304984331130981,
0.19842015206813812,
0.19279533624649048,
-0.25028419494628906,
0.43455013632774353,
-0.02652452141046524,
-0.12063533067703247,
-0.16845522820949554,
0.17479993402957916,
0.29539772868156433,
-0.1548338085412979,
0.2711714804172516,
0.027781708166003227,
-0.20301616191864014,
-0.2583886981010437,
0.11340457201004028,
0.18875069916248322,
0.047032229602336884,
0.03577527776360512,
0.05638556554913521,
0.3641641438007355,
0.22562973201274872,
0.16161303222179413,
-0.004046087618917227,
0.07574326545000076,
-0.3522453010082245,
-0.16990439593791962,
-0.210513174533844,
0.044839512556791306,
0.17359039187431335,
0.3234499990940094,
-0.0506313219666481,
-0.0821366086602211,
0.17155031859874725,
0.08249621838331223,
-0.38107919692993164,
-0.06566701084375381,
-0.15188553929328918,
0.1120753288269043,
0.09019467234611511,
0.03440745919942856,
-0.24114008247852325,
0.30609193444252014,
0.17290730774402618,
0.15131549537181854,
-0.20650988817214966,
-0.27996164560317993,
-0.0027316720224916935,
0.07414008677005768,
-0.040697723627090454,
-0.05063842609524727,
0.1484750509262085,
-0.1919185370206833,
-0.24780425429344177,
-0.08396098762750626,
0.16186882555484772,
-0.04110113903880119,
0.004889050964266062,
0.21550141274929047,
0.1861741691827774,
-0.3800099492073059,
-0.07858569920063019,
-0.058097269386053085,
0.13997936248779297,
-0.012057274580001831,
0.1560508906841278,
0.3166590929031372,
0.014146137982606888,
-0.2948208153247833,
-0.23388546705245972,
0.1436721682548523,
0.26593703031539917,
-0.18826524913311005,
0.35872092843055725,
-0.26164165139198303,
0.16915428638458252,
0.08737942576408386,
0.44400346279144287,
0.6819086670875549,
-0.1831478476524353,
0.15295922756195068,
0.2660353481769562,
0.25141215324401855,
-0.13199077546596527,
-0.06443843245506287,
-0.024232566356658936,
-0.09626709669828415,
0.09156439453363419,
0.2693854570388794,
0.1511508822441101,
0.11225534975528717,
-0.2158714383840561,
-0.2792436480522156,
0.12783175706863403,
-0.292875200510025,
0.1434125304222107,
0.29930248856544495,
-0.08220960944890976,
-0.11246197670698166,
0.2549162209033966,
0.4423462748527527,
0.1981949657201767,
0.5453615188598633,
-0.014114568009972572,
0.6302165985107422,
0.10675542056560516,
-0.11123406887054443,
-0.025092661380767822,
-0.19284965097904205,
-0.024217557162046432,
0.20769813656806946,
0.16155821084976196,
0.07000464200973511,
-0.031153958290815353,
0.22564059495925903,
0.18232452869415283,
-0.10273110866546631,
0.0183730386197567,
0.31251612305641174,
0.08232416212558746,
-0.12384186685085297,
-0.21008199453353882,
-0.16356542706489563,
-0.18094143271446228,
-0.07083112746477127,
-0.18970836699008942,
-0.11256547272205353,
0.2526169717311859,
0.08508340269327164,
0.2983182668685913,
-0.4108547866344452,
0.3159436881542206,
-0.10585704445838928,
0.37036991119384766,
-0.2970689833164215,
0.20145900547504425,
-0.0724230706691742,
0.10503191500902176,
-0.30558180809020996,
0.17160989344120026,
0.3079659938812256,
0.4848974943161011,
0.10292598605155945,
0.0477110780775547,
-0.2340182363986969,
-0.13598670065402985,
0.11418558657169342,
0.003201254876330495,
-0.08179647475481033,
-0.051418229937553406,
0.4961349368095398,
0.13366635143756866,
-0.09628060460090637,
0.4675198495388031,
0.07621608674526215,
-0.027522651478648186,
-0.800017774105072,
0.047810159623622894,
0.08329746127128601,
-0.03781259432435036,
-0.09303391724824905,
0.21792736649513245,
-0.4655717611312866,
-0.04686979576945305,
0.48061898350715637,
-0.44416698813438416,
-0.007358392234891653,
-0.17567497491836548,
0.10240153968334198,
-0.3210000991821289,
0.6157903671264648,
0.19399474561214447,
0.5805901885032654,
-0.014539036899805069,
-0.38178563117980957,
-0.30626627802848816,
-0.03367122635245323,
-0.08667118102312088,
-0.14955174922943115,
-0.0763067975640297,
0.1704975962638855,
0.107719287276268,
0.09878429770469666,
-0.17353107035160065,
-0.43731173872947693,
-0.20290234684944153,
0.40544405579566956,
-0.2589814364910126,
-0.24409212172031403,
-0.4298052191734314,
0.36383408308029175,
0.07268346846103668,
-0.19712160527706146,
-0.04250989481806755,
-0.43532538414001465,
0.05340103805065155,
0.001233500661328435,
0.1778690218925476,
0.19275851547718048,
-0.2071615606546402,
0.4288676083087921,
-0.019267139956355095,
0.34665393829345703,
-0.1509360522031784,
0.03776586055755615,
-0.12435472011566162,
-0.19714340567588806,
-0.1997784972190857,
0.38288334012031555,
0.15416476130485535,
0.024766530841588974,
-0.093031145632267,
-0.040833406150341034,
-0.0006947369547560811,
0.019272487610578537,
0.08907797187566757,
0.018827367573976517,
-0.020981604233384132,
-0.227188840508461,
0.1004728451371193,
-0.038276102393865585,
0.09663007408380508,
0.658111572265625,
-0.14701281487941742,
0.06554092466831207,
-0.20180797576904297,
-0.08851653337478638,
0.26304927468299866,
-0.1844271421432495,
-0.19976301491260529,
-0.31869351863861084,
0.03008282743394375,
0.06526083499193192,
-0.15347854793071747,
-0.44773393869400024,
0.08257708698511124,
0.42908787727355957,
-0.00042337356717325747,
-0.2846860885620117,
0.3960919976234436,
0.3302379250526428,
0.05547714605927467,
-0.06149094179272652,
0.18275241553783417,
-0.07854120433330536,
-0.11478462815284729,
-0.015292054042220116,
-0.2455783486366272
] |
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 <notifications@github.com>
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 <notifications@github.com>
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.02254388853907585,
-0.37920278310775757,
-0.0717194676399231,
0.37931525707244873,
0.07945865392684937,
-0.1549820601940155,
0.2763757109642029,
0.08281667530536652,
0.07116292417049408,
-0.14288829267024994,
-0.06436260789632797,
0.011119134724140167,
-0.2454967349767685,
0.342904269695282,
0.15793634951114655,
-0.07029896229505539,
-0.10003046691417694,
0.007462956942617893,
-0.7639590501785278,
-0.044630058109760284,
0.060336921364068985,
0.23215602338314056,
-0.27114439010620117,
-0.010924392379820347,
-0.03694843128323555,
-0.24114972352981567,
-0.3265107572078705,
-0.06277342140674591,
-0.2232864946126938,
-0.30627432465553284,
0.3705846071243286,
0.267662912607193,
0.303901344537735,
0.5059758424758911,
-0.00011498265666887164,
-0.08657927066087723,
-0.013671940192580223,
-0.11190512031316757,
-0.26054060459136963,
-0.260242760181427,
-0.2470698356628418,
-0.12101093679666519,
0.12784795463085175,
-0.35594993829727173,
-0.04556940495967865,
0.03780008852481842,
0.16675569117069244,
-0.30809056758880615,
0.6174596548080444,
0.17397159337997437,
0.16366690397262573,
0.12573403120040894,
0.09915922582149506,
-0.02021096833050251,
-0.06106988340616226,
0.230685755610466,
0.06807029247283936,
0.10132808238267899,
0.2460481822490692,
0.16167142987251282,
0.08731773495674133,
0.14191193878650665,
0.16909563541412354,
-0.1322486847639084,
0.22843094170093536,
0.025135323405265808,
-0.10975661873817444,
-0.39999979734420776,
-0.07696647197008133,
0.230768084526062,
0.7655308246612549,
-0.40363138914108276,
-0.49341151118278503,
-0.23890025913715363,
-0.08458433300256729,
-0.3491230905056,
-0.06072644889354706,
0.08783577382564545,
0.06157949939370155,
0.20741873979568481,
-0.2750285267829895,
-0.17992323637008667,
-0.28719818592071533,
-0.07147470116615295,
-0.084203340113163,
-0.12330706417560577,
-0.3571073114871979,
0.03754379600286484,
0.1368413120508194,
-0.23895977437496185,
-0.12844249606132507,
0.18228575587272644,
0.11190009117126465,
0.3583676815032959,
-0.6574572324752808,
-0.16446225345134735,
0.03246472403407097,
0.2509855628013611,
0.5292331576347351,
0.5199727416038513,
0.07081590592861176,
-0.07283199578523636,
-0.05956297740340233,
0.13559967279434204,
0.35473117232322693,
0.21677643060684204,
0.133297860622406,
0.01483650878071785,
-0.04683472216129303,
-0.01567644067108631,
0.008091484196484089,
-0.18747688829898834,
-0.19754661619663239,
-0.263308048248291,
-0.028897015377879143,
-0.18126484751701355,
0.12437431514263153,
-0.1571442037820816,
-0.08866503089666367,
-0.14236469566822052,
-0.2186686247587204,
-0.2480703741312027,
0.2155751734972,
0.17979584634304047,
0.014784281142055988,
-0.009272194467484951,
-0.19770433008670807,
0.15962658822536469,
0.023329436779022217,
0.16188839077949524,
-0.08999387919902802,
0.29390621185302734,
-0.33235353231430054,
0.3278656005859375,
-0.10633664578199387,
-0.516843855381012,
0.12413068115711212,
-0.04980655387043953,
-0.014523436315357685,
-0.1895657628774643,
0.013115230947732925,
-0.15611889958381653,
0.23897051811218262,
0.04168793931603432,
-0.13506117463111877,
0.16811276972293854,
-0.10381346940994263,
-0.006342991255223751,
-0.40264806151390076,
-0.3620329201221466,
-0.28379276394844055,
-0.27243122458457947,
-0.004770285915583372,
0.08283131569623947,
-0.28923511505126953,
-0.04933616891503334,
0.0017669341759756207,
0.29951971769332886,
0.042852114886045456,
-0.05313935875892639,
0.15761226415634155,
-0.0021377119701355696,
-0.263271689414978,
-0.02747821807861328,
0.13874629139900208,
0.5703583359718323,
-0.5171874761581421,
-0.16935265064239502,
0.1901707798242569,
-0.061386797577142715,
0.06472714990377426,
0.49105364084243774,
-0.18456661701202393,
0.2792847454547882,
-0.29500970244407654,
0.14516346156597137,
0.4489840865135193,
-0.1201355829834938,
-0.3379769027233124,
0.36015886068344116,
-0.05147579312324524,
0.12091191112995148,
0.21690858900547028,
-0.09672714024782181,
0.14119474589824677,
0.0771341621875763,
-0.1310068815946579,
0.03071458637714386,
0.10120651125907898,
-0.26494091749191284,
-0.04938825964927673,
-0.07647359371185303,
0.12186102569103241,
-0.0727328509092331,
-0.01816706918179989,
0.3623622953891754,
0.08065345883369446,
0.1890697479248047,
0.406277596950531,
-0.21538834273815155,
0.26192227005958557,
0.24137930572032928,
0.18417178094387054,
0.15660932660102844,
0.12639421224594116,
-0.3120630085468292,
-0.20840977132320404,
0.14972183108329773,
0.1003216952085495,
-0.09746948629617691,
-0.02709205262362957,
-0.03136059269309044,
-0.29012563824653625,
0.08990741521120071,
-0.2494390606880188,
-0.27939751744270325,
0.1004117950797081,
0.24829208850860596,
0.37795016169548035,
-0.06170133501291275,
-0.4771333634853363,
0.5368731617927551,
0.03989803045988083,
0.11377041041851044,
-0.82093346118927,
0.22695113718509674,
0.2916395366191864,
-0.04192018508911133,
0.009273561649024487,
0.22991950809955597,
-0.04435369744896889,
-0.373989462852478,
0.40704160928726196,
0.29185086488723755,
-0.2554697096347809,
0.13456112146377563,
0.1751824915409088,
0.41387033462524414,
0.21636609733104706,
-0.049323178827762604,
-0.030618885532021523,
-0.33022236824035645,
0.2782610356807709,
-0.0702294334769249,
0.14136937260627747,
0.4477907419204712,
-0.20191894471645355,
0.4001394510269165,
0.2018059492111206,
-0.039987027645111084,
-0.038888201117515564,
-0.026811771094799042,
-0.6704292893409729,
0.10829076170921326,
0.08742234110832214,
-0.16473373770713806,
0.49419236183166504,
-0.13775233924388885,
-0.27605295181274414,
-0.1087198257446289,
0.4138205349445343,
-0.09440375119447708,
-0.020048996433615685,
0.22254632413387299,
-0.145156592130661,
-0.07462873309850693,
0.0574682354927063,
-0.07527557760477066,
0.22476162016391754,
-0.04990677163004875,
0.21739697456359863,
0.01970404013991356,
0.1520129293203354,
0.04906603321433067,
0.03436848893761635,
0.1375618726015091,
0.26762789487838745,
-0.06308276206254959,
0.02234424091875553,
0.09160689264535904,
-0.1821548342704773,
-0.3705839514732361,
-0.14615128934383392,
0.03575068339705467,
-0.20608577132225037,
0.4430929720401764,
-0.2589528262615204,
-0.2633574306964874,
-0.44988858699798584,
-0.06662766635417938,
0.013217718340456486,
0.01691320538520813,
-0.3413536846637726,
-0.0877525806427002,
0.32872188091278076,
0.027492331340909004,
0.12296830117702484,
0.3827245831489563,
0.23547908663749695,
0.062202394008636475,
-0.22303804755210876,
-0.06257876753807068,
0.1404513716697693,
0.05045768991112709,
0.11743386089801788,
-0.17442019283771515,
0.4147772789001465,
-0.011088223196566105,
0.02039395086467266,
-0.3350260853767395,
-0.23262561857700348,
0.36294057965278625,
-0.0303233303129673,
0.20290589332580566,
0.2526971101760864,
0.005078222136944532,
-0.07271209359169006,
-0.2006014734506607,
-0.00217500445432961,
-0.1680455058813095,
-0.02417188137769699,
0.055148400366306305,
-0.0846833735704422,
0.22222840785980225,
0.11610190570354462,
-0.26895833015441895,
-0.33768174052238464,
-0.10862535238265991,
0.706811785697937,
0.08232643455266953,
0.16253092885017395,
0.21607013046741486,
-0.14670200645923615,
0.3742021918296814,
-0.17920255661010742,
0.24252741038799286,
-0.08224823325872421,
-0.4794173836708069,
0.272361159324646,
-0.30867999792099,
-0.2070455402135849,
-0.06159312650561333,
-0.11149556189775467,
0.5452191233634949,
0.047415897250175476,
-0.2879161238670349,
-0.24189558625221252,
-0.08896154910326004,
-0.057690270245075226,
0.10432011634111404,
0.25473302602767944,
0.31472107768058777,
-0.2180015742778778,
0.05303117260336876,
0.0392935685813427,
-0.039862096309661865,
0.143107071518898,
-0.029665473848581314,
0.11790316551923752,
0.3721648156642914,
0.6116316318511963,
0.20339299738407135,
0.5283327698707581,
0.559780478477478,
0.04415218532085419,
0.1339014768600464,
-0.20301875472068787,
-0.14824464917182922,
-0.053947564214468,
-0.4497843384742737,
0.10089261829853058,
-0.3520355820655823,
-0.22420360147953033,
0.10325870662927628,
-0.08209382742643356,
-0.007276440970599651,
-0.17647525668144226,
0.23433929681777954,
-0.3153306543827057,
-0.17513249814510345,
-0.11594833433628082,
-0.05245509743690491,
0.22765782475471497,
-0.1514531970024109,
-0.10100754350423813,
-0.002849867334589362,
0.11663818359375,
-0.06247606873512268,
0.24953465163707733,
0.22917440533638,
0.1404867172241211,
-0.487324595451355,
-0.11917389184236526,
-0.527603030204773,
0.09911694377660751,
-0.065804623067379,
0.08162263035774231,
0.17649514973163605,
-0.17039278149604797,
0.20906198024749756,
-0.19728249311447144,
0.7068554162979126,
0.37090834975242615,
-0.44138944149017334,
0.01671130768954754,
-0.6154155135154724,
-0.09449675679206848,
0.25157347321510315,
-0.3018530607223511,
0.24641726911067963,
0.4119487404823303,
-0.11153272539377213,
-0.41991445422172546,
-0.2527620792388916,
0.18328028917312622,
-0.03986743092536926,
-0.0615241564810276,
-0.1657923460006714,
0.12371429055929184,
-0.13154391944408417,
-0.17791377007961273,
-0.0346641018986702,
-0.02979440987110138,
0.14315730333328247,
-0.06130672246217728,
0.01675540767610073,
-0.1951410174369812,
-0.10090666264295578,
0.2924512028694153,
0.002169797895476222,
0.13552060723304749,
-0.07170625776052475,
0.10208284854888916,
0.39702972769737244,
0.18570305407047272,
0.18295951187610626,
0.5120187997817993,
0.0045765358954668045,
-0.01634180173277855,
0.24431297183036804,
0.11494901776313782,
0.371356725692749,
0.22973883152008057,
-0.2243175059556961,
0.13118791580200195,
-0.2082904875278473,
0.06246071308851242,
-0.48769649863243103,
-0.06465397775173187,
0.38826245069503784,
0.004207711201161146,
-0.40033581852912903,
-0.5670477747917175,
0.4350759983062744,
0.0636790320277214,
-0.0679377093911171,
-0.11329182237386703,
0.2199288010597229,
-0.2193503975868225,
-0.06352973729372025,
-0.048027269542217255,
0.8930823802947998,
-0.07986319810152054,
0.1776336133480072,
0.2711476981639862,
0.31257131695747375,
0.679124116897583,
-0.10454057157039642,
0.03737253323197365,
-0.3593170940876007,
-0.12837529182434082,
-0.17617978155612946,
-0.14329588413238525,
0.23939594626426697,
0.24169515073299408,
-0.31687915325164795,
0.4740023612976074,
0.23648151755332947,
-0.0876343846321106,
-0.2001953423023224,
0.13418257236480713,
-0.25053057074546814,
-0.17133395373821259,
-0.5428098440170288,
0.07975722849369049,
0.19763454794883728,
0.3496434688568115,
-0.2035437375307083,
-0.15898914635181427,
0.3872145414352417,
0.010877382010221481,
-0.1957826465368271,
-0.19617675244808197,
-0.19129584729671478,
-0.11987929046154022,
0.3108167052268982,
-0.45031076669692993,
0.24837259948253632,
0.2719888389110565,
0.3074180483818054,
-0.0202805045992136,
-0.23374339938163757,
-0.17066529393196106,
-0.17153611779212952,
-0.05759947746992111,
-0.04435483366250992,
0.11914984881877899,
0.5094348788261414,
0.08621610701084137,
0.00982654932886362,
0.25245413184165955,
0.12277067452669144,
0.05521469935774803,
-0.12339277565479279,
0.027991468086838722,
0.02471187338232994,
-0.37998947501182556,
0.04457312077283859,
0.4037046432495117,
0.013899505138397217,
-0.07517697662115097,
0.07091595232486725,
0.35485532879829407,
-0.1962820142507553,
0.20547741651535034,
-0.022469036281108856,
-0.1437738537788391,
-0.17218579351902008,
0.3500189185142517,
-0.11830293387174606,
-0.14914941787719727,
0.4499127268791199,
0.2053413689136505,
-0.20259380340576172,
-0.1555679440498352,
0.1078355461359024,
0.3016599416732788,
-0.5539577007293701,
-0.055148281157016754,
0.015812458470463753,
0.29551059007644653,
0.1231883317232132,
0.24681703746318817,
0.157518669962883,
-0.19666360318660736,
-0.1688224971294403,
-0.31440550088882446,
-0.11280903220176697,
0.24989239871501923,
0.15687620639801025,
0.26733604073524475,
0.013314569368958473,
-0.09628669172525406,
0.046628016978502274,
0.2190757691860199,
-0.27460187673568726,
0.0008879174711182714,
-0.1824963390827179,
0.027024872601032257,
0.31599000096321106,
-0.13113436102867126,
0.134076327085495,
0.29940280318260193,
0.00498556811362505,
0.2990649938583374,
-0.2860023081302643,
-0.14932797849178314,
-0.14308273792266846,
0.11009896546602249,
-0.043275922536849976,
-0.11824966967105865,
0.1256171017885208,
0.05384712666273117,
-0.13961593806743622,
-0.17663723230361938,
0.3731313645839691,
0.1063205674290657,
0.29225659370422363,
0.2873692512512207,
0.31956520676612854,
-0.18831877410411835,
-0.18755006790161133,
0.02449776604771614,
0.21931754052639008,
-0.0319591760635376,
0.1633567214012146,
0.3162524402141571,
-0.33846601843833923,
-0.23437125980854034,
-0.1301625370979309,
0.4080592095851898,
0.4407770037651062,
-0.21459951996803284,
0.34469863772392273,
-0.3372783660888672,
0.011562168598175049,
0.016249321401119232,
0.5546595454216003,
0.5000155568122864,
-0.1114777997136116,
0.12327349185943604,
0.23855021595954895,
0.12892137467861176,
-0.013141371309757233,
0.14483854174613953,
-0.16469550132751465,
-0.01550504844635725,
0.03921564668416977,
0.39147162437438965,
-0.06367889046669006,
0.19085368514060974,
0.3073030114173889,
-0.15462182462215424,
0.20587606728076935,
-0.23114760220050812,
0.024826936423778534,
0.14020180702209473,
-0.0052888174541294575,
-0.04668053612112999,
0.3599814772605896,
0.5259153842926025,
0.2698197364807129,
0.3038617968559265,
-0.19874128699302673,
0.3367423415184021,
-0.29600512981414795,
0.3056201934814453,
0.1545066386461258,
-0.18870487809181213,
-0.2669290006160736,
0.2299317866563797,
0.12979744374752045,
0.03325440362095833,
-0.320491760969162,
0.5874295830726624,
0.2111538052558899,
0.0050560240633785725,
-0.059576116502285004,
0.4466051161289215,
0.08981188386678696,
-0.4591886103153229,
-0.07469000667333603,
-0.21792727708816528,
-0.19435352087020874,
-0.148787260055542,
-0.2237691879272461,
-0.1877889186143875,
0.23101262748241425,
-0.07144342362880707,
0.441885381937027,
-0.52775639295578,
0.035883914679288864,
-0.02647143416106701,
0.05271884799003601,
-0.28405746817588806,
0.2444794625043869,
-0.07459437847137451,
0.11000251024961472,
-0.0017727646045386791,
0.3280363380908966,
0.2134835124015808,
0.12448330968618393,
0.04274231195449829,
0.12686842679977417,
-0.2345498651266098,
-0.10807166993618011,
-0.026248473674058914,
0.1887277215719223,
-0.2101013958454132,
-0.12022347748279572,
0.5229051113128662,
-0.008196371607482433,
-0.022061489522457123,
0.268690824508667,
-0.12943768501281738,
0.09056073427200317,
-0.9172275066375732,
0.22842849791049957,
-0.14158399403095245,
0.013079903088510036,
-0.13738158345222473,
0.09406115859746933,
-0.4923449754714966,
0.047263048589229584,
0.15628944337368011,
-0.48052847385406494,
0.14942386746406555,
-0.09029251337051392,
0.048696648329496384,
-0.22704410552978516,
0.44184088706970215,
0.34671658277511597,
0.3968280553817749,
-0.0014266828075051308,
-0.16028329730033875,
-0.28638753294944763,
-0.11421295255422592,
0.16624760627746582,
-0.010550501756370068,
0.026227518916130066,
0.3324871361255646,
-0.026319533586502075,
0.09761341661214828,
-0.24438107013702393,
-0.5556648969650269,
-0.4309258759021759,
0.2382344901561737,
-0.17232121527194977,
-0.1835775375366211,
-0.33014553785324097,
0.2728583514690399,
0.08617568016052246,
0.06682665646076202,
0.14571096003055573,
-0.3383147716522217,
-0.09645100682973862,
-0.0013661395059898496,
0.2898552715778351,
-0.08880620449781418,
-0.28301116824150085,
0.12891407310962677,
0.19439776241779327,
0.022678004577755928,
-0.054904382675886154,
0.15128925442695618,
-0.3607613742351532,
-0.36996424198150635,
-0.008842645213007927,
0.2426399141550064,
-0.010173154063522816,
0.24837332963943481,
-0.2000080943107605,
-0.2119707465171814,
-0.06471607089042664,
0.010785498656332493,
0.18080313503742218,
-0.11114731431007385,
-0.08169776201248169,
-0.005394774489104748,
-0.03154769539833069,
-0.06517449021339417,
0.05533554404973984,
0.6036372780799866,
-0.020929647609591484,
0.21413707733154297,
-0.04752040281891823,
-0.18005190789699554,
0.4160078465938568,
-0.47847092151641846,
-0.04072153940796852,
-0.038518380373716354,
0.09723604470491409,
0.32083526253700256,
-0.4703527092933655,
-0.4702584743499756,
0.12630589306354523,
0.3914024233818054,
0.07029134035110474,
-0.15300919115543365,
0.19649888575077057,
0.2747032642364502,
-0.05940735340118408,
-0.26264268159866333,
0.30285802483558655,
0.1639402061700821,
0.03236937150359154,
0.15233880281448364,
-0.2388467788696289
] |
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 <rabeeh@google.com>
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 <notifications@github.com>
> 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 <rabeeh@google.com>
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 <notifications@github.com>
> 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.14258864521980286,
-0.34717753529548645,
-0.11831434816122055,
0.3518558740615845,
0.08034597337245941,
-0.08777718245983124,
0.2236453741788864,
0.23742859065532684,
0.03323737904429436,
-0.1268833428621292,
-0.038507089018821716,
0.0500972680747509,
-0.2673036754131317,
0.363090842962265,
0.07597517967224121,
-0.0330849215388298,
-0.08173467218875885,
-0.011020033620297909,
-0.7120342254638672,
-0.05418453365564346,
0.06370045244693756,
0.21445651352405548,
-0.278190940618515,
-0.07417044788599014,
-0.004789792932569981,
-0.23888225853443146,
-0.37760448455810547,
-0.025114065036177635,
-0.2068042755126953,
-0.3644320070743561,
0.228536918759346,
0.25932154059410095,
0.29906153678894043,
0.5007339715957642,
-0.00010832289990503341,
-0.184480682015419,
0.02410343661904335,
-0.06989137828350067,
-0.3096701204776764,
-0.22509029507637024,
-0.282463401556015,
-0.21353372931480408,
0.06899062544107437,
-0.3665160536766052,
-0.05403219908475876,
0.027377158403396606,
0.15812397003173828,
-0.30985531210899353,
0.5706964731216431,
0.15498307347297668,
0.22616448998451233,
0.13554604351520538,
0.09204432368278503,
-0.050527315586805344,
-0.07467330992221832,
0.13219119608402252,
0.06075992062687874,
0.10779176652431488,
0.23280632495880127,
0.15019024908542633,
0.021426772698760033,
0.14858610928058624,
0.09689013659954071,
-0.11990465223789215,
0.26209577918052673,
-0.051987409591674805,
-0.11569844186306,
-0.3440946340560913,
-0.020976033061742783,
0.1513001024723053,
0.7606992125511169,
-0.3858973979949951,
-0.5661010146141052,
-0.30095475912094116,
-0.04006166383624077,
-0.411864310503006,
-0.05461038649082184,
0.1472502201795578,
0.08200553059577942,
0.15404269099235535,
-0.21217234432697296,
-0.16372938454151154,
-0.21805115044116974,
-0.1387692242860794,
-0.04147787764668465,
-0.09697239100933075,
-0.3794800341129303,
-0.021191462874412537,
0.04906739667057991,
-0.22376157343387604,
-0.15340666472911835,
0.1326572149991989,
0.10873927921056747,
0.36035943031311035,
-0.6488003730773926,
-0.2567497193813324,
0.05327553674578667,
0.33213257789611816,
0.5177854895591736,
0.5682505965232849,
0.0786651000380516,
-0.0219277236610651,
-0.04385976493358612,
0.13805806636810303,
0.3656159043312073,
0.14244507253170013,
0.10610311478376389,
-0.06191851943731308,
-0.052892088890075684,
0.039113376289606094,
0.07967475801706314,
-0.12600113451480865,
-0.1406920701265335,
-0.22160059213638306,
-0.0771188735961914,
-0.15650397539138794,
0.08320681750774384,
-0.17706860601902008,
-0.10232522338628769,
-0.1652233749628067,
-0.1618964970111847,
-0.21602821350097656,
0.11481579393148422,
0.1496850699186325,
-0.1081649586558342,
-0.03702256456017494,
-0.2981783449649811,
0.08415957540273666,
-0.023100126534700394,
0.12773604691028595,
-0.12045199424028397,
0.3016722500324249,
-0.24540995061397552,
0.2856009006500244,
-0.138882115483284,
-0.5510955452919006,
0.1653597205877304,
0.003449697745963931,
-0.050082601606845856,
-0.09725050628185272,
-0.03867654874920845,
-0.20352885127067566,
0.1337122768163681,
0.010753675363957882,
-0.09719438850879669,
0.1757555603981018,
-0.151156485080719,
-0.04823636636137962,
-0.4053094983100891,
-0.35469841957092285,
-0.28032898902893066,
-0.17455431818962097,
0.042833276093006134,
0.1455172598361969,
-0.22662489116191864,
-0.05437807738780975,
0.04254552349448204,
0.3436608910560608,
0.017928190529346466,
-0.10247649252414703,
0.12682896852493286,
0.04946412891149521,
-0.31425079703330994,
-0.05439576879143715,
0.14243389666080475,
0.5140596032142639,
-0.447607159614563,
-0.2488473504781723,
0.1939016580581665,
-0.01895075850188732,
0.024829579517245293,
0.4461157023906708,
-0.11794889718294144,
0.22488422691822052,
-0.2795751690864563,
0.14106519520282745,
0.36733707785606384,
-0.10723137110471725,
-0.297815203666687,
0.3310321867465973,
-0.12257810682058334,
0.12774443626403809,
0.21516989171504974,
-0.11889419704675674,
0.14728598296642303,
0.020982882007956505,
-0.11251277476549149,
0.027641536667943,
0.009555677883327007,
-0.23971834778785706,
-0.12441574782133102,
-0.053494472056627274,
0.013372845947742462,
-0.03179572895169258,
-0.015502064488828182,
0.22561395168304443,
0.12911595404148102,
0.16527056694030762,
0.4320667088031769,
-0.17591580748558044,
0.21709200739860535,
0.256693959236145,
0.22209078073501587,
0.04985159635543823,
0.08869292587041855,
-0.29248854517936707,
-0.2623605728149414,
0.1929330825805664,
0.12362825125455856,
-0.014334305189549923,
-0.0734226256608963,
-0.017405129969120026,
-0.23493793606758118,
0.007940830662846565,
-0.21940134465694427,
-0.3230403661727905,
0.17344510555267334,
0.22210386395454407,
0.3988915979862213,
-0.05379181727766991,
-0.46868136525154114,
0.5173085331916809,
0.0457799918949604,
0.1597616821527481,
-0.8009339570999146,
0.16254281997680664,
0.24338483810424805,
-0.02656545303761959,
0.07284930348396301,
0.1985824853181839,
-0.09027278423309326,
-0.3639829754829407,
0.3573993444442749,
0.28230854868888855,
-0.17996087670326233,
0.14754348993301392,
0.19065743684768677,
0.44687795639038086,
0.20493221282958984,
0.025963081046938896,
-0.019239211454987526,
-0.34583914279937744,
0.29694920778274536,
-0.043674904853105545,
0.046122193336486816,
0.4764792323112488,
-0.16721147298812866,
0.32033392786979675,
0.2574346661567688,
-0.048192400485277176,
0.003550143912434578,
-0.0402693971991539,
-0.5831554532051086,
0.12419092655181885,
0.11089827865362167,
0.01700715534389019,
0.4671846628189087,
-0.1074710264801979,
-0.28278765082359314,
-0.07363468408584595,
0.35930466651916504,
-0.10441084206104279,
-0.036674197763204575,
0.15070189535617828,
-0.18475322425365448,
-0.10700227320194244,
0.10777642577886581,
-0.07392826676368713,
0.247779980301857,
0.006855590734630823,
0.24358713626861572,
0.04064830020070076,
0.17173238098621368,
0.021413981914520264,
0.06210239976644516,
0.1553301066160202,
0.19259591400623322,
-0.03652012720704079,
0.07504488527774811,
0.12747091054916382,
-0.155452698469162,
-0.35187697410583496,
-0.11055273562669754,
0.05704575404524803,
-0.1778407096862793,
0.386546790599823,
-0.23910744488239288,
-0.2566683292388916,
-0.38902342319488525,
0.10475265979766846,
-0.05652451515197754,
0.0039655063301324844,
-0.2241486757993698,
-0.07421097159385681,
0.30995264649391174,
0.05569995567202568,
0.11411917954683304,
0.46000605821609497,
0.23471708595752716,
0.08805631846189499,
-0.17952436208724976,
-0.06208491697907448,
0.15436884760856628,
0.12188606709241867,
0.1859988123178482,
-0.13438117504119873,
0.5079189538955688,
-0.00530729116871953,
-0.0006821288261562586,
-0.31535962224006653,
-0.2890050709247589,
0.30992281436920166,
-0.1156768947839737,
0.23226290941238403,
0.1817791610956192,
-0.06033102795481682,
-0.061483871191740036,
-0.13261385262012482,
-0.04673101752996445,
-0.11584179848432541,
-0.0954233780503273,
-0.04021300747990608,
-0.044616613537073135,
0.2140870988368988,
0.10735105723142624,
-0.23053649067878723,
-0.27173319458961487,
-0.2117004245519638,
0.7207009196281433,
0.1371043622493744,
0.22463904321193695,
0.1908029317855835,
-0.11798998713493347,
0.3346859812736511,
-0.1943354308605194,
0.3252701461315155,
-0.06252002716064453,
-0.47877758741378784,
0.30219146609306335,
-0.3026358485221863,
-0.18478834629058838,
-0.10383525490760803,
-0.1253807097673416,
0.6247449517250061,
0.04198760166764259,
-0.3094741106033325,
-0.22599922120571136,
-0.05416594818234444,
0.05369260907173157,
0.10947290807962418,
0.24077586829662323,
0.31351548433303833,
-0.1626957207918167,
-0.03292926773428917,
0.03712950274348259,
0.010129375383257866,
0.04262450337409973,
-0.04738371819257736,
0.0893513560295105,
0.3445415794849396,
0.5481722354888916,
0.219032883644104,
0.5223554968833923,
0.5356543064117432,
0.013891486451029778,
0.14005379378795624,
-0.09835224598646164,
-0.09804359078407288,
-0.027752216905355453,
-0.4531850516796112,
0.19738063216209412,
-0.3463815450668335,
-0.2529503405094147,
0.15704114735126495,
-0.09511866420507431,
-0.06565003097057343,
-0.21821604669094086,
0.19415216147899628,
-0.23583702743053436,
-0.19595888257026672,
-0.10572218894958496,
0.012224316596984863,
0.2226582169532776,
-0.21903084218502045,
-0.10039999336004257,
0.05212458223104477,
0.13727478682994843,
0.004770899191498756,
0.20267237722873688,
0.1884450614452362,
0.05634989216923714,
-0.5617641806602478,
-0.00571394944563508,
-0.48966193199157715,
0.10851763188838959,
-0.03633353114128113,
0.007099153008311987,
0.23396936058998108,
-0.22419580817222595,
0.12686049938201904,
-0.21348309516906738,
0.5830467939376831,
0.31609728932380676,
-0.4566287696361542,
-0.020244566723704338,
-0.5475600957870483,
-0.04746333137154579,
0.28057220578193665,
-0.2953294813632965,
0.25130918622016907,
0.34684935212135315,
-0.029514985159039497,
-0.4579989016056061,
-0.3302730619907379,
0.13555966317653656,
0.020940454676747322,
-0.0461246557533741,
-0.13471701741218567,
0.11148595064878464,
-0.13270656764507294,
-0.23984597623348236,
0.0322483666241169,
-0.0017581023275852203,
0.181843101978302,
-0.07063572853803635,
0.036996860057115555,
-0.23859310150146484,
-0.12152130901813507,
0.24132557213306427,
-0.05314530059695244,
0.10677175223827362,
-0.021765464916825294,
0.22095300257205963,
0.3449823260307312,
0.1826762855052948,
0.19491329789161682,
0.5341267585754395,
-0.04011603817343712,
-0.0637316033244133,
0.24196270108222961,
0.10996151715517044,
0.3433799147605896,
0.278780072927475,
-0.11879189312458038,
0.1542905867099762,
-0.19699923694133759,
0.13716650009155273,
-0.4949752688407898,
-0.0650087371468544,
0.32078564167022705,
0.021466847509145737,
-0.3879268765449524,
-0.5668639540672302,
0.39796510338783264,
0.09453565627336502,
-0.02979251556098461,
-0.11148243397474289,
0.1785348653793335,
-0.18912842869758606,
-0.11387534439563751,
-0.00832719448953867,
0.8772638440132141,
0.0319281741976738,
0.13293996453285217,
0.23817980289459229,
0.2841380536556244,
0.6234855651855469,
-0.028006915003061295,
0.01782817952334881,
-0.37469229102134705,
-0.24908679723739624,
-0.11633428186178207,
-0.12356087565422058,
0.2895091474056244,
0.2170461118221283,
-0.32029828429222107,
0.5073508620262146,
0.2475791573524475,
-0.12270800024271011,
-0.16061536967754364,
0.21311324834823608,
-0.2810668647289276,
-0.23577824234962463,
-0.5983776450157166,
0.14584101736545563,
0.16003720462322235,
0.2836307883262634,
-0.17968858778476715,
-0.13908639550209045,
0.40768900513648987,
-0.0017837772611528635,
-0.14866137504577637,
-0.23493169248104095,
-0.24777881801128387,
-0.10419824719429016,
0.22419872879981995,
-0.41969725489616394,
0.2544493079185486,
0.22645488381385803,
0.2770262062549591,
0.03339608758687973,
-0.22227101027965546,
-0.15691347420215607,
-0.1830390840768814,
0.002902880311012268,
-0.005331532098352909,
0.055692363530397415,
0.6071686744689941,
0.050393588840961456,
0.1515824943780899,
0.25823110342025757,
0.08908217400312424,
0.05716591700911522,
-0.0774356946349144,
-0.019814234226942062,
-0.10269885510206223,
-0.35653725266456604,
0.0067694662138819695,
0.397195428609848,
0.009058901108801365,
-0.07015939056873322,
0.13328205049037933,
0.354611873626709,
-0.14639884233474731,
0.2365441918373108,
0.04349176585674286,
-0.14037437736988068,
-0.19124852120876312,
0.40717995166778564,
-0.11810290068387985,
-0.19834095239639282,
0.4554190933704376,
0.1661767065525055,
-0.22873534262180328,
-0.20777073502540588,
0.1140216737985611,
0.32279127836227417,
-0.4184865355491638,
-0.06398272514343262,
-0.020123247057199478,
0.29537978768348694,
0.09265893697738647,
0.2044050246477127,
0.15478387475013733,
-0.1619635373353958,
-0.06414519250392914,
-0.22461090981960297,
-0.10524551570415497,
0.31546634435653687,
0.22701989114284515,
0.2550223469734192,
-0.024012943729758263,
-0.1522892862558365,
0.032978691160678864,
0.26159727573394775,
-0.35846051573753357,
-0.010518287308514118,
-0.17340044677257538,
0.06650276482105255,
0.3252336084842682,
-0.09544195234775543,
0.12326066195964813,
0.2710692584514618,
0.10616704821586609,
0.28231537342071533,
-0.3206462264060974,
-0.233921617269516,
-0.15266932547092438,
0.0869123786687851,
0.016979435458779335,
-0.06334537267684937,
0.10549218952655792,
0.05579071491956711,
-0.13186825811862946,
-0.2105320245027542,
0.3006533086299896,
0.009110433980822563,
0.2976890802383423,
0.23149342834949493,
0.3964732587337494,
-0.11853121966123581,
-0.15763123333454132,
0.06005536764860153,
0.184634730219841,
-0.04666765406727791,
0.15685027837753296,
0.28840261697769165,
-0.3015137016773224,
-0.22414520382881165,
-0.05600505694746971,
0.39234688878059387,
0.4073387682437897,
-0.2339126616716385,
0.3088859021663666,
-0.29339832067489624,
-0.010380315594375134,
0.13037322461605072,
0.5188370943069458,
0.5250536203384399,
-0.12416809797286987,
0.055537547916173935,
0.28792285919189453,
0.20925959944725037,
-0.07275648415088654,
0.11127566546201706,
-0.24979372322559357,
-0.09849552810192108,
0.12969790399074554,
0.38328197598457336,
-0.08506368100643158,
0.16698774695396423,
0.2132764309644699,
-0.11507569253444672,
0.1987612098455429,
-0.21426889300346375,
0.018885385245084763,
0.07977799326181412,
0.03006075508892536,
-0.07991381734609604,
0.37380123138427734,
0.4228512644767761,
0.2139613926410675,
0.2633860409259796,
-0.27599966526031494,
0.39732450246810913,
-0.22645479440689087,
0.2418707013130188,
0.17152398824691772,
-0.18573792278766632,
-0.13896232843399048,
0.28136155009269714,
0.15319998562335968,
-0.004225102253258228,
-0.24049626290798187,
0.5388868451118469,
0.1678980439901352,
-0.054350897669792175,
0.009778449311852455,
0.4228837490081787,
0.050314221531152725,
-0.3581238090991974,
-0.07114113867282867,
-0.24302130937576294,
-0.22503669559955597,
-0.12382074445486069,
-0.26292532682418823,
-0.23531267046928406,
0.26138046383857727,
-0.056610699743032455,
0.3644627332687378,
-0.5372334122657776,
0.003897031769156456,
-0.021997500211000443,
0.11325938254594803,
-0.3350178599357605,
0.1712706834077835,
-0.05119718611240387,
0.0864301323890686,
-0.09589053690433502,
0.3389081358909607,
0.2542078197002411,
0.11174681782722473,
0.0073342397809028625,
0.034714821726083755,
-0.2352551519870758,
-0.10129639506340027,
-0.006268961355090141,
0.127497598528862,
-0.2548770010471344,
-0.13911345601081848,
0.5069290399551392,
0.05641968175768852,
-0.08765029907226562,
0.2528477907180786,
-0.07872434705495834,
0.009689822793006897,
-0.9196885228157043,
0.21161888539791107,
-0.0865180566906929,
0.06495469808578491,
-0.11833904683589935,
0.09581922739744186,
-0.5051101446151733,
0.0817728117108345,
0.1601700335741043,
-0.4940134882926941,
0.09813860058784485,
-0.08705953508615494,
0.10442753881216049,
-0.1923288106918335,
0.48987114429473877,
0.33119669556617737,
0.3033391237258911,
-0.03293140232563019,
-0.15358708798885345,
-0.32438355684280396,
-0.14240127801895142,
0.1704663783311844,
0.03468631953001022,
-0.044909264892339706,
0.3771381974220276,
0.056483618915081024,
0.16023588180541992,
-0.2984939217567444,
-0.5570551753044128,
-0.30351391434669495,
0.2498382180929184,
-0.25316303968429565,
-0.12067616730928421,
-0.3716830313205719,
0.24285806715488434,
0.10486903041601181,
0.07821277529001236,
0.146879181265831,
-0.380557656288147,
-0.02895336039364338,
-0.01923278532922268,
0.2883637249469757,
-0.06512466818094254,
-0.32018378376960754,
0.17729347944259644,
0.1361568570137024,
0.005562774837017059,
-0.12123224139213562,
0.0008994356612674892,
-0.32563209533691406,
-0.3225667178630829,
-0.10998956859111786,
0.37116608023643494,
-0.0431336872279644,
0.247192844748497,
-0.12252746522426605,
-0.2282947301864624,
-0.02025769278407097,
0.14382149279117584,
0.13439427316188812,
-0.11482924222946167,
-0.05914970487356186,
-0.015218308195471764,
0.062464360147714615,
-0.022819263860583305,
-0.02040065824985504,
0.5253517627716064,
-0.02255955897271633,
0.23983997106552124,
-0.13489411771297455,
-0.271833598613739,
0.3910023868083954,
-0.4392779469490051,
0.039168715476989746,
-0.1211610734462738,
0.10236413776874542,
0.2544703781604767,
-0.40257084369659424,
-0.40008917450904846,
0.11321751773357391,
0.4312739372253418,
0.04535955563187599,
-0.14513754844665527,
0.27900075912475586,
0.2842405438423157,
-0.06816322356462479,
-0.28414884209632874,
0.3456376791000366,
0.10412921756505966,
-0.062475454062223434,
0.18749570846557617,
-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.1060161292552948,
-0.06535890698432922,
-0.07446201890707016,
0.2728959321975708,
0.021202243864536285,
-0.00954370480030775,
0.23504993319511414,
0.26074787974357605,
0.01785087212920189,
-0.18112273514270782,
0.20077629387378693,
0.21176424622535706,
-0.38756558299064636,
0.19634777307510376,
0.09090503305196762,
0.009915088303387165,
-0.12219830602407455,
0.01771891675889492,
-0.6584700345993042,
-0.13311658799648285,
-0.012551932595670223,
0.10902852565050125,
-0.37339287996292114,
-0.01258078683167696,
-0.05733734369277954,
-0.29974281787872314,
-0.35477620363235474,
-0.09412220120429993,
-0.322738379240036,
-0.3790442645549774,
0.16800913214683533,
0.3244621455669403,
0.45302826166152954,
0.3990268111228943,
-0.00010454701259732246,
-0.38364607095718384,
0.027153385803103447,
-0.0992269441485405,
-0.25105413794517517,
-0.17701908946037292,
-0.2945173680782318,
-0.2617827355861664,
0.13648460805416107,
-0.474881649017334,
-0.08046326041221619,
-0.058419082313776016,
0.09093308448791504,
-0.37033575773239136,
0.2763305902481079,
0.09610223025083542,
0.276034414768219,
-0.4248438775539398,
-0.034422896802425385,
-0.06489071249961853,
0.022560691460967064,
0.04966497793793678,
-0.07036859542131424,
-0.04184114933013916,
0.31116795539855957,
0.3059285283088684,
-0.015592087060213089,
-0.031184913590550423,
0.1218775063753128,
-0.1981251835823059,
0.3405265808105469,
-0.07729371637105942,
-0.08791501075029373,
-0.33617502450942993,
0.0023602345027029514,
0.08403702080249786,
1.1303712129592896,
-0.22628186643123627,
-0.3061937689781189,
0.023438964039087296,
-0.015230970457196236,
-0.4028500020503998,
-0.1640850305557251,
0.29465800523757935,
0.14563003182411194,
0.12919610738754272,
-0.20350612699985504,
-0.3969239592552185,
-0.2363089770078659,
-0.10071311891078949,
-0.12622258067131042,
-0.04891514778137207,
-0.16817592084407806,
0.08407627791166306,
-0.020347826182842255,
-0.2884944975376129,
0.15325821936130524,
0.16953103244304657,
0.01528088003396988,
0.2250160425901413,
-0.615279495716095,
-0.3189680576324463,
0.035965774208307266,
0.3883174955844879,
0.41298428177833557,
0.3702374994754791,
0.06248686462640762,
0.03175156190991402,
0.002943717408925295,
0.20475289225578308,
0.4332888126373291,
0.011759722605347633,
0.07831057906150818,
0.047910697758197784,
0.04882083088159561,
-0.18453583121299744,
-0.20502695441246033,
-0.08070337027311325,
-0.216612309217453,
-0.15979045629501343,
0.10615098476409912,
-0.16454987227916718,
-0.15675194561481476,
-0.17901206016540527,
-0.0017526187002658844,
0.00009365915320813656,
-0.2421877682209015,
-0.13766804337501526,
0.1298850178718567,
0.10936262458562851,
-0.09024983644485474,
-0.02747577801346779,
-0.12732675671577454,
0.14985422790050507,
0.11428091675043106,
-0.02078588865697384,
-0.06221288442611694,
0.4749683141708374,
-0.2980022728443146,
0.08472566306591034,
-0.06866658478975296,
-0.3925189971923828,
0.07345577329397202,
0.053089261054992676,
-0.17717723548412323,
-0.07551323622465134,
0.084914930164814,
-0.23222219944000244,
0.17440305650234222,
-0.10724437981843948,
-0.16824232041835785,
0.11847797781229019,
-0.19148553907871246,
-0.16521473228931427,
-0.41689732670783997,
-0.15302081406116486,
-0.3378537893295288,
-0.11868437379598618,
-0.12203855812549591,
0.1512051224708557,
-0.17209386825561523,
-0.1900557577610016,
0.19951480627059937,
0.48626407980918884,
-0.018718073144555092,
-0.17018072307109833,
0.04553838074207306,
-0.11414801329374313,
-0.2942240238189697,
-0.12011938542127609,
-0.02730424702167511,
0.41359442472457886,
-0.715223491191864,
0.11270254850387573,
0.017728809267282486,
0.19900399446487427,
0.044005438685417175,
0.32048776745796204,
-0.1433267444372177,
0.28753986954689026,
-0.17358198761940002,
0.08322660624980927,
0.4689076244831085,
0.026182524859905243,
-0.22161655128002167,
0.19950148463249207,
-0.10153952986001968,
-0.1679418832063675,
0.17961128056049347,
0.08204955607652664,
0.27481797337532043,
-0.05866491049528122,
-0.11352575570344925,
0.010004292242228985,
0.02618960104882717,
-0.21521706879138947,
-0.12326820939779282,
-0.03967881202697754,
0.1559775322675705,
0.014443925581872463,
0.07553781569004059,
0.26848292350769043,
0.1918976604938507,
0.27999240159988403,
0.20796358585357666,
-0.1532561331987381,
0.24483853578567505,
0.07872096449136734,
0.31073084473609924,
-0.009280604310333729,
0.10979588329792023,
-0.18227645754814148,
-0.09916795790195465,
0.19893528521060944,
0.3425949513912201,
-0.033622872084379196,
0.09734532237052917,
0.009333860129117966,
-0.12030024826526642,
-0.03387938067317009,
-0.13235065340995789,
-0.18539480865001678,
0.19363559782505035,
-0.019462035968899727,
0.32570600509643555,
-0.12156668305397034,
-0.3612465262413025,
0.2648513615131378,
-0.027811536565423012,
-0.07165482640266418,
-0.6356137990951538,
0.11847851425409317,
0.2372143417596817,
-0.06313904374837875,
0.11881449073553085,
0.17316968739032745,
-0.169939786195755,
-0.2727331817150116,
0.300147145986557,
0.33591634035110474,
-0.035994626581668854,
-0.07349051535129547,
0.28323662281036377,
0.5574185848236084,
0.11778174340724945,
0.0026025774423033,
0.21967001259326935,
-0.41446998715400696,
0.2916940152645111,
0.04191998019814491,
-0.021846594288945198,
0.4437415599822998,
-0.17847393453121185,
0.10908890515565872,
0.13699127733707428,
-0.02616923674941063,
0.0741581991314888,
0.0160724725574255,
-0.5682401657104492,
0.08494275063276291,
-0.2583654522895813,
0.14111140370368958,
0.25310736894607544,
-0.0921328216791153,
-0.38935020565986633,
-0.11870217323303223,
0.413590669631958,
0.024784481152892113,
0.079838827252388,
0.1774081587791443,
-0.11160790175199509,
-0.10650396347045898,
-0.029609957709908485,
-0.00753270648419857,
0.3253004252910614,
-0.039090029895305634,
0.188577800989151,
-0.019513119012117386,
0.0985075980424881,
0.07135342061519623,
0.1269075572490692,
0.07375489920377731,
0.1753564327955246,
-0.10583218187093735,
0.0945662185549736,
0.08359934389591217,
-0.18050223588943481,
-0.2936786115169525,
0.05059640854597092,
0.21808122098445892,
-0.05578998103737831,
0.30495280027389526,
-0.41858938336372375,
-0.11848413944244385,
-0.37561067938804626,
0.21547098457813263,
0.2625841498374939,
0.08788474649190903,
-0.04282812401652336,
-0.19424425065517426,
0.40513187646865845,
0.012076650746166706,
-0.07706647366285324,
0.5587690472602844,
0.23482534289360046,
0.06406790018081665,
-0.06636490672826767,
-0.11189673840999603,
0.03841577470302582,
0.15780550241470337,
0.17351335287094116,
-0.08935953676700592,
0.5077773332595825,
0.048773638904094696,
0.24023281037807465,
-0.40600475668907166,
-0.30964529514312744,
0.3122243583202362,
-0.011062960140407085,
0.2463252991437912,
0.25393563508987427,
-0.171747088432312,
-0.0561879500746727,
-0.17731639742851257,
-0.03352740779519081,
-0.2286292463541031,
0.08619873225688934,
0.011395481415092945,
-0.04567265883088112,
0.0788046270608902,
0.09785536676645279,
-0.3836060166358948,
-0.16609744727611542,
-0.1279614120721817,
0.42350760102272034,
0.21919402480125427,
0.30200204253196716,
-0.047600846737623215,
-0.057988956570625305,
0.2834451496601105,
-0.031226640567183495,
0.19590087234973907,
-0.12841114401817322,
-0.43885886669158936,
0.37639573216438293,
-0.29196110367774963,
-0.19781598448753357,
0.06049346178770065,
-0.1055084690451622,
0.6279433965682983,
0.06797587126493454,
-0.24706557393074036,
0.10479987412691116,
0.17673510313034058,
0.13711009919643402,
0.25236883759498596,
0.1300067901611328,
0.26656222343444824,
-0.1598164588212967,
-0.043079275637865067,
0.03758929297327995,
-0.10771386325359344,
0.2246948629617691,
0.20384915173053741,
0.2265096753835678,
0.37200766801834106,
0.6611019968986511,
0.036840543150901794,
0.4294273853302002,
0.3031006455421448,
-0.20277558267116547,
0.22965966165065765,
-0.053576529026031494,
-0.2370578646659851,
-0.048728398978710175,
-0.20131269097328186,
0.20201802253723145,
-0.3556555211544037,
-0.4386445879936218,
0.28256624937057495,
-0.11134146898984909,
-0.3914491534233093,
-0.23498617112636566,
0.4713555574417114,
-0.30608657002449036,
-0.06371238082647324,
-0.08919810503721237,
-0.2912816107273102,
0.10656075924634933,
-0.13910391926765442,
-0.11376244574785233,
0.09091348201036453,
0.05347052589058876,
-0.04485384002327919,
0.09334110468626022,
0.18929614126682281,
0.012202296406030655,
-0.5341045260429382,
-0.15907971560955048,
-0.26377230882644653,
0.031908340752124786,
-0.31494858860969543,
0.12589004635810852,
0.3008849322795868,
-0.2130633145570755,
0.2733722925186157,
-0.21548643708229065,
0.35345977544784546,
0.03851677477359772,
-0.5208885669708252,
0.022640103474259377,
-0.3992440700531006,
0.047792963683605194,
0.01453634724020958,
-0.25053778290748596,
0.2993892431259155,
0.30137795209884644,
-0.17598524689674377,
-0.4163492023944855,
-0.2557188868522644,
0.13833455741405487,
-0.09872053563594818,
-0.11729957908391953,
-0.232656329870224,
0.18054437637329102,
-0.08965647220611572,
-0.08273883908987045,
-0.014718451537191868,
-0.10374651849269867,
0.03144082427024841,
-0.14233575761318207,
-0.1396663933992386,
-0.22433266043663025,
-0.08719779551029205,
0.16173093020915985,
-0.03420098125934601,
0.061900991946458817,
0.04062516614794731,
0.2935371398925781,
0.2934233546257019,
0.29701468348503113,
0.17574216425418854,
0.34494921565055847,
0.014671907760202885,
0.3328714668750763,
0.5411553382873535,
-0.08699090778827667,
0.40873169898986816,
0.0927095040678978,
-0.13792844116687775,
0.1165255680680275,
-0.4787018895149231,
-0.05226974934339523,
-0.4371342658996582,
-0.2746158242225647,
0.4635878801345825,
-0.11997328698635101,
-0.33647793531417847,
-0.6614841222763062,
0.4097934067249298,
0.07749523222446442,
-0.10661349445581436,
-0.13066405057907104,
-0.08999792486429214,
-0.19154784083366394,
-0.026228047907352448,
0.3491608202457428,
0.7590563297271729,
-0.13074690103530884,
-0.04480292648077011,
0.04509605094790459,
0.2970718741416931,
0.6364302635192871,
-0.296191930770874,
0.02319132722914219,
-0.6081207394599915,
-0.16432394087314606,
-0.13512633740901947,
-0.0963248685002327,
0.2675548791885376,
0.33506712317466736,
-0.4736587405204773,
0.42878806591033936,
0.1272197812795639,
-0.1528366208076477,
-0.10922446101903915,
0.31821176409721375,
-0.10119646042585373,
-0.1116529032588005,
-0.24659772217273712,
0.17435520887374878,
0.08118918538093567,
0.05336480960249901,
-0.22658395767211914,
-0.023797480389475822,
0.30061402916908264,
0.14771346747875214,
-0.1413564682006836,
-0.23023834824562073,
0.11327597498893738,
-0.013439523987472057,
0.16371215879917145,
-0.3163621127605438,
0.4583554267883301,
0.29646891355514526,
0.1053093671798706,
0.11516214907169342,
-0.24909475445747375,
-0.07751722633838654,
0.016733847558498383,
0.0995306745171547,
0.19778092205524445,
0.09733735024929047,
0.5548220276832581,
0.028549252077937126,
0.12496335804462433,
0.35973256826400757,
0.0011499859392642975,
0.004922103136777878,
-0.16267302632331848,
-0.017896020784974098,
0.14859360456466675,
-0.30258166790008545,
-0.13483299314975739,
0.35319507122039795,
0.045608747750520706,
-0.044898029416799545,
0.1735306829214096,
0.3285716772079468,
-0.07903160154819489,
0.4723217189311981,
0.057369377464056015,
-0.12329293042421341,
-0.14565816521644592,
0.29694727063179016,
0.05543580651283264,
-0.032811954617500305,
0.32973453402519226,
0.08981537818908691,
-0.138770192861557,
-0.20939941704273224,
0.21700406074523926,
0.21617653965950012,
-0.20254668593406677,
-0.17394503951072693,
-0.09044282138347626,
0.21531783044338226,
0.3713044822216034,
0.1287773996591568,
0.06770086288452148,
-0.1450607031583786,
-0.28045105934143066,
-0.17088466882705688,
-0.1562747061252594,
0.12912501394748688,
0.16566935181617737,
0.12167821079492569,
-0.11576008051633835,
-0.3182610273361206,
0.04464942216873169,
0.2772842347621918,
-0.3766230046749115,
0.02465839497745037,
-0.12772907316684723,
0.20633549988269806,
0.07930904626846313,
0.0711810365319252,
-0.2723814845085144,
0.31499943137168884,
0.07939448207616806,
0.1331263780593872,
-0.22444236278533936,
-0.18948529660701752,
-0.07070557773113251,
0.06896781176328659,
0.04984695464372635,
0.0368003286421299,
0.12048101425170898,
-0.17456746101379395,
-0.38092637062072754,
-0.06270448118448257,
0.12928740680217743,
-0.08883090317249298,
0.11950964480638504,
0.2746082544326782,
0.4228077232837677,
-0.30861711502075195,
-0.1767045110464096,
-0.024714818224310875,
0.11117669939994812,
-0.018024949356913567,
0.17138490080833435,
0.3880271017551422,
-0.15271416306495667,
-0.3117510676383972,
-0.18230029940605164,
0.48569628596305847,
0.1304296851158142,
-0.1920969933271408,
0.5589888095855713,
-0.22031600773334503,
0.2540806829929352,
0.22540874779224396,
0.37428924441337585,
0.7063233256340027,
-0.10530475527048111,
-0.1500670164823532,
0.28660252690315247,
0.23897100985050201,
-0.05598907545208931,
0.010842869989573956,
-0.33349359035491943,
0.04417683929204941,
-0.011842263862490654,
0.34766867756843567,
0.05353768914937973,
0.0318189412355423,
-0.027302691712975502,
-0.22897283732891083,
0.13749216496944427,
-0.27281445264816284,
0.026736482977867126,
0.3164135813713074,
-0.027272069826722145,
-0.08460063487291336,
0.45059168338775635,
0.2930506467819214,
0.17732864618301392,
0.42947372794151306,
0.044247761368751526,
0.407927930355072,
0.08126655220985413,
0.20504114031791687,
0.08391235023736954,
-0.15202170610427856,
-0.01528790034353733,
0.29977917671203613,
0.20012988150119781,
-0.06825011968612671,
-0.17552238702774048,
0.40819746255874634,
0.33992889523506165,
-0.002997036324813962,
-0.2276381403207779,
0.2862169146537781,
-0.04472997039556503,
-0.3045313060283661,
-0.28244635462760925,
-0.4127623736858368,
-0.24041816592216492,
0.0070388661697506905,
-0.4302237927913666,
-0.010657033883035183,
0.15581972897052765,
-0.035074811428785324,
0.37824952602386475,
-0.43007683753967285,
0.2995276153087616,
-0.163608580827713,
0.03057865798473358,
-0.35161879658699036,
0.2129741609096527,
-0.15838830173015594,
0.04273271933197975,
0.12240567058324814,
0.19947783648967743,
0.00348642747849226,
0.42587193846702576,
-0.10509298741817474,
-0.14950591325759888,
-0.24006786942481995,
-0.12113165855407715,
0.051793791353702545,
0.2002234309911728,
-0.0645291730761528,
-0.2436404526233673,
0.5186989903450012,
0.03831923380494118,
-0.05641820281744003,
0.3666834533214569,
0.06175893917679787,
0.05383811146020889,
-0.8294038772583008,
0.007473179139196873,
0.22308684885501862,
-0.0308535136282444,
0.09675286710262299,
0.08525251597166061,
-0.2967815399169922,
-0.08646577596664429,
0.14516186714172363,
-0.4347529411315918,
0.016929788514971733,
-0.1616186946630478,
0.11824178695678711,
-0.2994233965873718,
0.5220747590065002,
0.15554417669773102,
0.13693810999393463,
-0.008749033324420452,
-0.2753687798976898,
-0.2950524687767029,
-0.07296406477689743,
0.13845553994178772,
0.04682876914739609,
0.019117048010230064,
0.48807933926582336,
0.140864297747612,
0.18540020287036896,
-0.4162907600402832,
-0.40031349658966064,
-0.48762190341949463,
0.4227484166622162,
-0.20969079434871674,
-0.0771632120013237,
-0.4475938379764557,
0.2959066927433014,
-0.09304250776767731,
0.11260625720024109,
0.05681318789720535,
-0.3815964460372925,
0.012830249965190887,
-0.007427128963172436,
0.12379183620214462,
0.002781032817438245,
-0.30251947045326233,
0.3909675180912018,
0.003350177314132452,
-0.0014857195783406496,
-0.05799077823758125,
0.16999651491641998,
-0.2926497459411621,
-0.21347461640834808,
-0.09510570019483566,
0.37462136149406433,
0.029518024995923042,
0.1459091156721115,
0.07567272335290909,
0.1762549877166748,
0.05590332671999931,
0.01002208050340414,
0.011284857988357544,
-0.05173828452825546,
-0.21075180172920227,
-0.17408470809459686,
-0.0035119049716740847,
0.06194385513663292,
-0.00536036491394043,
0.5795058012008667,
0.016057752072811127,
0.19839352369308472,
-0.1722988337278366,
-0.06280532479286194,
0.20137836039066315,
-0.17210644483566284,
-0.05508602410554886,
-0.24023078382015228,
0.13792528212070465,
0.20165246725082397,
-0.2732505202293396,
-0.13370569050312042,
-0.018290448933839798,
0.4118083119392395,
0.02643113024532795,
-0.08246464282274246,
0.14402861893177032,
0.36106130480766296,
0.059081729501485825,
-0.2883606255054474,
0.28521811962127686,
-0.025663042441010475,
0.0656944140791893,
-0.0844898447394371,
-0.2586916983127594
] |
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 <notifications@github.com>
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 <notifications@github.com>
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.16995878517627716,
-0.1714077591896057,
-0.06893105059862137,
0.2923893630504608,
0.10094912350177765,
-0.08452483266592026,
0.3338163495063782,
0.2466898113489151,
0.17970246076583862,
-0.12653425335884094,
0.06800951063632965,
0.14424888789653778,
-0.3788861334323883,
0.412889301776886,
0.17005962133407593,
-0.03180912137031555,
-0.09198794513940811,
0.0115779684856534,
-0.6868850588798523,
-0.11749755591154099,
0.02902544103562832,
0.14872319996356964,
-0.28457656502723694,
-0.03963962197303772,
-0.09257718175649643,
-0.2904193103313446,
-0.2832884192466736,
0.008811652660369873,
-0.3676557242870331,
-0.36269497871398926,
0.33470532298088074,
0.2895669937133789,
0.4941846430301666,
0.5043631196022034,
-0.00010578402725514024,
-0.2772067189216614,
0.05280935391783714,
-0.13003477454185486,
-0.2246699333190918,
-0.21065808832645416,
-0.2412290722131729,
-0.20516829192638397,
0.12793932855129242,
-0.36852824687957764,
-0.044531334191560745,
-0.0859798714518547,
0.03798598051071167,
-0.32430142164230347,
0.32844576239585876,
0.07557443529367447,
0.2515379786491394,
-0.23509523272514343,
0.04005742073059082,
-0.08844346553087234,
-0.012562420219182968,
0.17450381815433502,
-0.06493773311376572,
0.06314282864332199,
0.26341482996940613,
0.18472369015216827,
-0.10058372467756271,
-0.020126404240727425,
0.13683131337165833,
-0.12017682939767838,
0.35184013843536377,
-0.11171331256628036,
-0.1345442533493042,
-0.3502727448940277,
-0.06874243915081024,
0.17952358722686768,
1.124774694442749,
-0.2266203761100769,
-0.33152687549591064,
-0.10519322007894516,
-0.10770457983016968,
-0.38430336117744446,
0.051969703286886215,
0.16139671206474304,
0.13763850927352905,
0.0931488424539566,
-0.21763421595096588,
-0.2320619523525238,
-0.2463390976190567,
-0.09893383830785751,
-0.19772690534591675,
-0.21850460767745972,
-0.30837586522102356,
0.028480635955929756,
0.10639706999063492,
-0.31170135736465454,
-0.005823343060910702,
0.11244343221187592,
0.15068946778774261,
0.28459957242012024,
-0.6823301911354065,
-0.3560848832130432,
-0.016468115150928497,
0.28917160630226135,
0.4668397009372711,
0.3724455237388611,
0.0903380811214447,
-0.04607092961668968,
-0.14296281337738037,
0.1361737996339798,
0.4857320785522461,
0.15365085005760193,
0.09142305701971054,
-0.03318597748875618,
0.05481941998004913,
-0.0040670339949429035,
0.011172357946634293,
-0.09943250566720963,
-0.20332707464694977,
-0.17219814658164978,
0.0453471876680851,
-0.18719293177127838,
-0.08445308357477188,
-0.24360382556915283,
0.012319795787334442,
-0.057208649814128876,
-0.06947597861289978,
-0.1390124410390854,
0.13489821553230286,
0.15472067892551422,
-0.059007178992033005,
0.1231459528207779,
-0.1120079755783081,
0.0874822810292244,
0.018410708755254745,
0.0013463017530739307,
-0.06286227703094482,
0.36802828311920166,
-0.39975011348724365,
0.12520159780979156,
-0.01491349283605814,
-0.4068548083305359,
0.04811053350567818,
0.12765644490718842,
-0.19413641095161438,
0.01715811900794506,
-0.04306615889072418,
-0.22388102114200592,
0.10483391582965851,
-0.0725567564368248,
-0.20107343792915344,
0.23336368799209595,
-0.2167588472366333,
0.02472418174147606,
-0.3907794654369354,
-0.14006826281547546,
-0.3842138946056366,
-0.0907072052359581,
-0.10056165605783463,
0.15383100509643555,
-0.2043943852186203,
-0.230973482131958,
-0.14315955340862274,
0.36706769466400146,
-0.06544087827205658,
-0.11741708964109421,
0.07045070827007294,
-0.10158972442150116,
-0.2147195041179657,
-0.10857518017292023,
0.013671351596713066,
0.41576021909713745,
-0.7381808161735535,
-0.07446776330471039,
0.04109537973999977,
-0.01641259156167507,
0.16205334663391113,
0.4142248332500458,
-0.14771495759487152,
0.2711122930049896,
-0.24538128077983856,
0.14807525277137756,
0.37421396374702454,
0.006946657318621874,
-0.26980867981910706,
0.26988717913627625,
-0.060333944857120514,
0.005439773667603731,
0.11928769201040268,
0.00765784177929163,
0.23251357674598694,
-0.08254007250070572,
-0.16766725480556488,
0.14853662252426147,
0.0803864374756813,
-0.13969945907592773,
-0.1522192656993866,
-0.10512273013591766,
0.16157379746437073,
0.05912581458687782,
0.07205614447593689,
0.2700538635253906,
0.15096570551395416,
0.2775493562221527,
0.22258056700229645,
-0.17028534412384033,
0.298544317483902,
0.09768524765968323,
0.294963538646698,
0.05485691502690315,
0.07045421004295349,
-0.2696402966976166,
-0.22629587352275848,
0.22093692421913147,
0.14457836747169495,
-0.001695000333711505,
0.19035519659519196,
0.09316133707761765,
-0.16111817955970764,
-0.0879654735326767,
-0.2035265564918518,
-0.1719704121351242,
0.1766102910041809,
0.09916266053915024,
0.28491294384002686,
-0.08422046899795532,
-0.42421308159828186,
0.3340334892272949,
-0.12328801304101944,
-0.0024323025718331337,
-0.7031784653663635,
0.16372768580913544,
0.31303223967552185,
-0.08723175525665283,
0.08734769374132156,
0.10986822098493576,
-0.14716380834579468,
-0.28299495577812195,
0.23504766821861267,
0.32268190383911133,
-0.09623541682958603,
0.12962351739406586,
0.2510296106338501,
0.48814496397972107,
0.17571048438549042,
0.023345761001110077,
0.21035198867321014,
-0.438823401927948,
0.20861263573169708,
-0.0578279010951519,
0.08173104375600815,
0.41627219319343567,
-0.24191328883171082,
0.11879517138004303,
0.11143237352371216,
-0.028915520757436752,
0.009803801774978638,
-0.02226942405104637,
-0.49332594871520996,
0.22123856842517853,
-0.061350394040346146,
0.06180698797106743,
0.2879596948623657,
-0.0901605635881424,
-0.2579861581325531,
-0.18663382530212402,
0.41874799132347107,
-0.06326460093259811,
0.004646926186978817,
0.23106497526168823,
-0.20821473002433777,
-0.09754088521003723,
0.06692032516002655,
-0.0333191342651844,
0.3083379864692688,
-0.046655479818582535,
0.2622884511947632,
-0.057266715914011,
0.12782041728496552,
0.08573334664106369,
0.12891657650470734,
0.01697818748652935,
0.2707156538963318,
0.010503659956157207,
0.05801590904593468,
0.07790275663137436,
-0.2738214135169983,
-0.21946826577186584,
-0.01096094399690628,
0.13132166862487793,
-0.08744141459465027,
0.18339349329471588,
-0.402929425239563,
-0.10495563596487045,
-0.33092281222343445,
0.12385063618421555,
0.038721997290849686,
0.06420942395925522,
-0.11848171800374985,
-0.0965830609202385,
0.40582558512687683,
0.06569236516952515,
-0.022971196100115776,
0.527606725692749,
0.29444944858551025,
0.013787721283733845,
-0.16945022344589233,
0.035791996866464615,
0.043291933834552765,
0.17963404953479767,
0.23747289180755615,
-0.20354169607162476,
0.46843263506889343,
0.026202388107776642,
0.07831425964832306,
-0.4120466411113739,
-0.27556824684143066,
0.3278045654296875,
-0.10764224827289581,
0.2515532374382019,
0.306438148021698,
0.004473464097827673,
-0.020618539303541183,
-0.04632487893104553,
0.034168753772974014,
-0.3438085615634918,
-0.005020557437092066,
-0.026404500007629395,
-0.06407477706670761,
0.2453979253768921,
0.08821431547403336,
-0.40561702847480774,
-0.2220093160867691,
-0.20969630777835846,
0.5581907033920288,
0.21814343333244324,
0.22454623878002167,
0.1635543256998062,
-0.06326767057180405,
0.3151685297489166,
-0.061782848089933395,
0.2107885181903839,
-0.2140306681394577,
-0.5315763354301453,
0.38782936334609985,
-0.256122887134552,
-0.20055347681045532,
0.04065576195716858,
-0.004740297794342041,
0.5716426372528076,
0.024063602089881897,
-0.35714390873908997,
0.01669369265437126,
0.04199358820915222,
0.11194857954978943,
0.18735139071941376,
0.2401827573776245,
0.26888763904571533,
-0.24229194223880768,
-0.028737880289554596,
0.05969315394759178,
-0.09243131428956985,
0.15892186760902405,
0.16217157244682312,
0.3196932375431061,
0.4330112934112549,
0.5967091917991638,
0.04114212468266487,
0.5284714698791504,
0.34436094760894775,
-0.1735193282365799,
0.24824771285057068,
-0.03250352293252945,
-0.21442078053951263,
-0.11311352998018265,
-0.26723530888557434,
0.2950752377510071,
-0.34566304087638855,
-0.2737659513950348,
0.1929454803466797,
-0.13021112978458405,
-0.30754438042640686,
-0.1988612860441208,
0.31184396147727966,
-0.19824759662151337,
-0.023924866691231728,
0.04832914471626282,
-0.10837269574403763,
0.12053778022527695,
-0.24764426052570343,
-0.19207949936389923,
0.007959551177918911,
0.012811144813895226,
0.06046879664063454,
0.19211021065711975,
0.24555139243602753,
0.06089808791875839,
-0.6099675297737122,
0.05823848769068718,
-0.3910830020904541,
0.0739469900727272,
-0.2808959484100342,
0.021931985393166542,
0.16500672698020935,
-0.2415865659713745,
0.22209623456001282,
-0.10121875256299973,
0.5630605816841125,
0.10984518378973007,
-0.5177432298660278,
-0.03600521385669708,
-0.4384683072566986,
0.08713699132204056,
0.032221995294094086,
-0.28000983595848083,
0.29832738637924194,
0.25034499168395996,
-0.12879852950572968,
-0.44481757283210754,
-0.24253341555595398,
0.13339729607105255,
-0.07080297917127609,
-0.045437317341566086,
-0.31619757413864136,
0.16280177235603333,
-0.03718139976263046,
-0.10418801009654999,
0.008776732720434666,
-0.08637546747922897,
0.08073955029249191,
-0.17422758042812347,
-0.1564788818359375,
-0.17781271040439606,
-0.0205604936927557,
0.2238779515028,
-0.03427156060934067,
0.12132123112678528,
0.041734110563993454,
0.22170332074165344,
0.40376099944114685,
0.31324049830436707,
0.27583709359169006,
0.40439021587371826,
0.010641302913427353,
0.239081472158432,
0.5203078389167786,
0.05078132078051567,
0.3208160102367401,
0.1847967654466629,
-0.1532653272151947,
0.04532170295715332,
-0.2774809002876282,
0.02967967838048935,
-0.6391437649726868,
-0.2000175267457962,
0.4938611090183258,
-0.054789889603853226,
-0.37912270426750183,
-0.6322645545005798,
0.5206339955329895,
0.11170288175344467,
-0.05003673583269119,
-0.032269518822431564,
0.04096585512161255,
-0.20902511477470398,
-0.17754891514778137,
0.2071647346019745,
0.8239890336990356,
-0.21358220279216766,
-0.04382425546646118,
0.11202099919319153,
0.41501861810684204,
0.6200090050697327,
-0.2753092348575592,
0.0017923688283190131,
-0.469994455575943,
-0.18573519587516785,
-0.1635933518409729,
-0.12980596721172333,
0.25415003299713135,
0.2704178988933563,
-0.3658447563648224,
0.48259788751602173,
0.19027426838874817,
-0.07502075284719467,
-0.1667439192533493,
0.32174453139305115,
-0.19602787494659424,
-0.24296784400939941,
-0.4122355878353119,
0.17314282059669495,
0.05247674509882927,
0.13784532248973846,
-0.1709504872560501,
-0.04851922020316124,
0.3666984438896179,
0.06276395171880722,
-0.10551170259714127,
-0.22992311418056488,
-0.11494611948728561,
-0.13768728077411652,
0.2727748453617096,
-0.2581340968608856,
0.4700640141963959,
0.24154935777187347,
0.09900834411382675,
0.03169998899102211,
-0.25960808992385864,
-0.11584323644638062,
-0.08061504364013672,
0.10892513394355774,
0.12701447308063507,
0.08837218582630157,
0.60010826587677,
0.013309122994542122,
0.13902999460697174,
0.22494661808013916,
0.010951139032840729,
-0.040123842656612396,
-0.13038776814937592,
-0.05794835835695267,
0.11870896816253662,
-0.44557514786720276,
-0.06708011031150818,
0.28090915083885193,
0.07695812731981277,
0.0015688088024035096,
0.15746887028217316,
0.33915790915489197,
-0.08161870390176773,
0.36661720275878906,
0.10408740490674973,
-0.07054401934146881,
-0.1703128069639206,
0.332410603761673,
0.06926552951335907,
-0.1404179483652115,
0.42185455560684204,
0.1557653844356537,
-0.2226468175649643,
-0.15183310210704803,
0.1414216160774231,
0.3399425148963928,
-0.281391441822052,
-0.05395248904824257,
-0.010199908167123795,
0.147352933883667,
0.20521274209022522,
0.23660822212696075,
0.1382712572813034,
-0.1978297084569931,
-0.20859761536121368,
-0.18667829036712646,
-0.18387053906917572,
0.19255132973194122,
0.02231745421886444,
0.23908904194831848,
-0.017047900706529617,
-0.29211676120758057,
0.10268563032150269,
0.14513345062732697,
-0.3657817542552948,
0.08496631681919098,
-0.1126871332526207,
0.14988426864147186,
0.12553581595420837,
-0.014215409755706787,
-0.04056095704436302,
0.2896207571029663,
0.0711735412478447,
0.1406240016222,
-0.29819560050964355,
-0.2043914794921875,
-0.051988378167152405,
0.08344705402851105,
0.023545602336525917,
-0.052293017506599426,
0.15465955436229706,
-0.14827585220336914,
-0.28417181968688965,
-0.10037151724100113,
0.21051472425460815,
-0.15366201102733612,
0.0982099324464798,
0.20744092762470245,
0.35864126682281494,
-0.37467870116233826,
-0.15859590470790863,
0.07845643907785416,
0.19119752943515778,
-0.08170077949762344,
0.12153641879558563,
0.34060877561569214,
-0.19404840469360352,
-0.3026098608970642,
-0.22827370464801788,
0.5108465552330017,
0.29226255416870117,
-0.13360175490379333,
0.47130104899406433,
-0.3304155766963959,
0.05640088766813278,
0.2789517641067505,
0.5351666212081909,
0.6012004017829895,
-0.15145839750766754,
-0.08802887052297592,
0.18121857941150665,
0.22082561254501343,
-0.025581879541277885,
0.1370270550251007,
-0.1873166710138321,
0.03378402441740036,
0.032696664333343506,
0.34331727027893066,
0.11928384751081467,
0.025400565937161446,
0.1265489161014557,
-0.1984071433544159,
0.15949220955371857,
-0.275926798582077,
0.08624906092882156,
0.23145881295204163,
-0.1305205076932907,
-0.028599446639418602,
0.5951690077781677,
0.34727561473846436,
0.04566096141934395,
0.3939047157764435,
-0.025083357468247414,
0.2953470051288605,
-0.06128186360001564,
0.25697264075279236,
0.09524577111005783,
-0.3001563847064972,
-0.08457882702350616,
0.39150696992874146,
0.09788879007101059,
0.0029344528447836637,
-0.20828187465667725,
0.5517617464065552,
0.13469935953617096,
-0.11318869888782501,
-0.21751444041728973,
0.26351651549339294,
-0.13592392206192017,
-0.24106518924236298,
-0.2839145064353943,
-0.37820422649383545,
-0.27253615856170654,
-0.01966770738363266,
-0.4187791049480438,
-0.09173158556222916,
0.2842939496040344,
-0.04725433140993118,
0.2933642864227295,
-0.5206655859947205,
0.1271161288022995,
-0.13050727546215057,
0.0793396532535553,
-0.3140776455402374,
0.3320927917957306,
-0.19686900079250336,
0.08307591825723648,
0.024519048631191254,
0.3627671003341675,
0.07949483394622803,
0.3440092206001282,
0.024147797375917435,
-0.0531606487929821,
-0.12609714269638062,
-0.08118915557861328,
0.13187696039676666,
0.2379002422094345,
-0.15643715858459473,
-0.21957631409168243,
0.4602530598640442,
0.07064098119735718,
-0.061315763741731644,
0.22960709035396576,
-0.11030595004558563,
0.1432420313358307,
-0.8062816858291626,
-0.041423916816711426,
0.10841956734657288,
0.1404680758714676,
-0.06495673209428787,
0.07201571017503738,
-0.40940192341804504,
-0.02315024845302105,
0.17703606188297272,
-0.45901361107826233,
0.09710769355297089,
-0.14917053282260895,
0.12162849307060242,
-0.28497543931007385,
0.4401848018169403,
0.25934842228889465,
0.0721057578921318,
-0.015086340717971325,
-0.16013319790363312,
-0.2753865718841553,
-0.0681062787771225,
0.17769935727119446,
0.08145038783550262,
-0.03269914910197258,
0.43839338421821594,
0.1972636878490448,
0.14267930388450623,
-0.23459963500499725,
-0.5380970239639282,
-0.3567988872528076,
0.31725814938545227,
-0.21026863157749176,
-0.05986100807785988,
-0.3488936722278595,
0.3244607150554657,
-0.027883214876055717,
0.04782748222351074,
0.16585460305213928,
-0.2729420065879822,
-0.048803362995386124,
0.019164355471730232,
0.23624806106090546,
-0.07490602880716324,
-0.3555980622768402,
0.3192610740661621,
0.12846806645393372,
0.03838994354009628,
-0.04662448540329933,
0.03274025768041611,
-0.3662322759628296,
-0.31254225969314575,
-0.1299942582845688,
0.28628939390182495,
-0.05758059769868851,
0.2802182137966156,
-0.010368761606514454,
0.08205122500658035,
-0.07835596054792404,
0.046546489000320435,
-0.03177717328071594,
-0.044091079384088516,
-0.29182636737823486,
-0.1778583973646164,
-0.006486252415925264,
-0.10458651185035706,
0.030218234285712242,
0.5602530241012573,
0.022652525454759598,
0.1567506045103073,
-0.18892478942871094,
-0.1841999888420105,
0.24024595320224762,
-0.2860478162765503,
-0.05866261199116707,
-0.09462296962738037,
0.03492018207907677,
0.2588534653186798,
-0.19698262214660645,
-0.35834452509880066,
0.15099412202835083,
0.35380464792251587,
0.010613738559186459,
-0.038442302495241165,
0.1908854842185974,
0.2333616018295288,
0.05603362247347832,
-0.28072163462638855,
0.20726527273654938,
0.04766253009438515,
0.09482219815254211,
0.013447286561131477,
-0.2773856520652771
] |
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.19670313596725464,
-0.4120616316795349,
-0.15225858986377716,
0.1939142495393753,
0.05039319396018982,
0.009160694666206837,
0.2521878778934479,
0.06103850156068802,
0.13782276213169098,
-0.001332901301793754,
0.2277505248785019,
0.27088990807533264,
-0.4278080463409424,
0.17694734036922455,
0.20244096219539642,
-0.08895502239465714,
0.012982994318008423,
0.047229137271642685,
-0.6187964677810669,
-0.007836757227778435,
0.13693605363368988,
-0.07782811671495438,
-0.3001043498516083,
-0.16721326112747192,
0.05710850656032562,
-0.4246661961078644,
-0.3100515305995941,
-0.18555641174316406,
-0.1906779259443283,
-0.42673826217651367,
0.26555225253105164,
0.1786016970872879,
0.41275858879089355,
0.5190781950950623,
-0.00010686079622246325,
-0.20872581005096436,
0.17242972552776337,
-0.07241889834403992,
-0.15705324709415436,
-0.25258922576904297,
-0.19458350539207458,
-0.1432816982269287,
-0.01327612902969122,
-0.3930831253528595,
-0.07785592973232269,
-0.2569580078125,
0.16188833117485046,
-0.3726499378681183,
0.21776182949543,
0.08239038288593292,
0.2613910436630249,
-0.26730772852897644,
0.014086039736866951,
-0.03434702381491661,
0.02913643978536129,
0.14200906455516815,
-0.18959231674671173,
0.31463882327079773,
0.2581838071346283,
0.2592717111110687,
0.07073135673999786,
-0.08387745171785355,
0.18353265523910522,
-0.02935142070055008,
0.5176247954368591,
-0.18103766441345215,
-0.028457816690206528,
-0.3781057894229889,
-0.1316799521446228,
0.18006731569766998,
0.9737996459007263,
-0.3325406312942505,
-0.18056771159172058,
0.09251035004854202,
0.0783948302268982,
-0.4161490201950073,
-0.07892981916666031,
0.20878148078918457,
0.09147296845912933,
0.16897527873516083,
-0.37745508551597595,
-0.21585872769355774,
-0.2636704444885254,
0.15692710876464844,
-0.011470413766801357,
0.020219601690769196,
-0.14833958446979523,
0.1454474925994873,
0.14696858823299408,
-0.22271741926670074,
0.34945422410964966,
-0.03740977123379707,
0.09567243605852127,
0.2934468984603882,
-0.3548888862133026,
-0.3146657645702362,
-0.045260682702064514,
0.422228068113327,
0.4786593019962311,
0.32073357701301575,
0.20237237215042114,
-0.11104878783226013,
-0.2233710139989853,
0.2842499315738678,
0.47518134117126465,
0.003990076016634703,
-0.048984345048666,
0.09342754632234573,
0.11619951575994492,
-0.01926683820784092,
-0.14627355337142944,
-0.02105998620390892,
-0.2141527235507965,
-0.0789513811469078,
0.30762147903442383,
-0.2920461893081665,
-0.12301492691040039,
-0.0697307288646698,
0.02731761522591114,
-0.10939337313175201,
-0.25241386890411377,
-0.19428780674934387,
0.2612033784389496,
0.23290124535560608,
-0.14849092066287994,
0.13408611714839935,
-0.3233183026313782,
-0.09127499163150787,
0.10943809151649475,
0.2910436987876892,
-0.044973570853471756,
0.44221290946006775,
-0.500562846660614,
0.023853445425629616,
-0.03574893996119499,
-0.2278590351343155,
0.2085997462272644,
0.15320299565792084,
-0.13500958681106567,
-0.10785017907619476,
0.14835652709007263,
-0.36697766184806824,
0.43317845463752747,
-0.03547588735818863,
-0.19225013256072998,
0.006435864605009556,
-0.29998862743377686,
0.15474821627140045,
-0.39553865790367126,
0.04803556576371193,
-0.22603532671928406,
0.05806732177734375,
-0.04296063259243965,
0.16447311639785767,
-0.20568899810314178,
-0.2527199685573578,
-0.025476915761828423,
0.3109798729419708,
0.12158069014549255,
-0.10920366644859314,
0.1143788993358612,
-0.21275295317173004,
-0.1631637066602707,
-0.31153592467308044,
0.07651032507419586,
0.22399072349071503,
-0.3857712745666504,
0.13304845988750458,
0.03149518743157387,
0.04694676399230957,
0.1477142572402954,
0.29040658473968506,
-0.24066568911075592,
0.2274702936410904,
-0.1616247594356537,
-0.1182231456041336,
0.4186882972717285,
-0.1354304701089859,
-0.1791631281375885,
0.3351465165615082,
0.20163285732269287,
-0.0980953648686409,
0.06815973669290543,
0.2971673607826233,
-0.012209371663630009,
0.022421350702643394,
-0.2033894807100296,
0.2134360820055008,
0.024326009675860405,
-0.14715366065502167,
-0.002353162970393896,
-0.021529577672481537,
0.17239412665367126,
0.010499128140509129,
0.040694475173950195,
0.2140858769416809,
0.09025301784276962,
0.13900677859783173,
0.27317583560943604,
-0.2391558438539505,
0.19004327058792114,
0.23861323297023773,
0.32201430201530457,
0.049202583730220795,
0.09455844014883041,
-0.4822588264942169,
0.025487616658210754,
0.15563425421714783,
0.18615111708641052,
-0.15783554315567017,
0.2956634759902954,
-0.006758321076631546,
-0.12622487545013428,
0.07986430078744888,
-0.16188274323940277,
-0.05656196549534798,
0.1256803572177887,
0.06633610278367996,
0.20563015341758728,
-0.09015724807977676,
-0.5047394633293152,
0.09981974214315414,
-0.20305520296096802,
-0.20805105566978455,
-0.5096101760864258,
0.12906834483146667,
0.22708472609519958,
-0.07794705033302307,
0.03276018425822258,
0.015285501256585121,
-0.2983109951019287,
-0.4979238212108612,
0.2777371108531952,
0.3969457149505615,
0.156083881855011,
-0.007922044955193996,
0.10195990651845932,
0.3819928467273712,
0.32121506333351135,
-0.17462460696697235,
0.14620928466320038,
-0.19909994304180145,
0.2882048785686493,
-0.01818547584116459,
0.10070490092039108,
0.4194483458995819,
-0.21945928037166595,
0.057873450219631195,
0.3707638382911682,
-0.1672396957874298,
0.057127710431814194,
-0.05736701563000679,
-0.44655248522758484,
0.12435253709554672,
-0.10406558215618134,
-0.1959177404642105,
0.4206410348415375,
-0.1265023946762085,
-0.38183626532554626,
-0.32349666953086853,
0.4590495526790619,
-0.030902007594704628,
0.029167046770453453,
0.050157736986875534,
-0.10869649797677994,
-0.0667853057384491,
0.05522594973444939,
0.029928579926490784,
0.3643386960029602,
-0.01672394573688507,
0.22284694015979767,
0.02110234834253788,
0.002769605955109,
0.19368937611579895,
0.18388596177101135,
-0.021365541964769363,
0.3514573276042938,
-0.16702790558338165,
-0.033047065138816833,
0.023264575749635696,
-0.2684535086154938,
-0.3299873173236847,
0.01653013937175274,
0.15019851922988892,
0.057545240968465805,
0.29632630944252014,
-0.40585049986839294,
-0.19071586430072784,
-0.3694969117641449,
-0.11141583323478699,
0.20521202683448792,
0.10909730195999146,
-0.3205469250679016,
0.04242885112762451,
0.4008634388446808,
0.12202604115009308,
0.0850849375128746,
0.21481184661388397,
0.05838784575462341,
0.02478128857910633,
-0.06032654270529747,
0.009147850796580315,
-0.1000983938574791,
0.18608665466308594,
0.28783032298088074,
-0.21730242669582367,
0.616612434387207,
0.09098413586616516,
-0.09114056825637817,
-0.40594372153282166,
-0.16211792826652527,
0.14681918919086456,
0.05027412623167038,
0.09212210029363632,
0.2490781992673874,
-0.03622681647539139,
-0.17545008659362793,
-0.04183301702141762,
0.003560058306902647,
-0.49676379561424255,
0.15901215374469757,
-0.18416884541511536,
-0.12019713968038559,
0.041361939162015915,
0.06199273839592934,
-0.1926465481519699,
-0.3554753363132477,
-0.1489826738834381,
0.3245435655117035,
0.39479464292526245,
0.17928820848464966,
0.1702624410390854,
0.052603043615818024,
0.33060163259506226,
0.11374936252832413,
0.03473673015832901,
-0.031296905130147934,
-0.3998986482620239,
0.18239697813987732,
-0.36578604578971863,
-0.2789261043071747,
0.053023647516965866,
0.05441245436668396,
0.43944051861763,
0.19198039174079895,
-0.35791274905204773,
-0.026459626853466034,
-0.06157997250556946,
0.053385019302368164,
0.09291749447584152,
0.3949339985847473,
0.09134981781244278,
-0.2753693163394928,
-0.026698367670178413,
-0.04482700675725937,
-0.05333925038576126,
0.07771390676498413,
-0.059941429644823074,
0.31749215722084045,
0.541890561580658,
0.3369605243206024,
-0.06128495931625366,
0.5106338262557983,
0.3213934898376465,
-0.46644964814186096,
0.38192686438560486,
-0.2949085831642151,
-0.2295016646385193,
-0.10067673772573471,
-0.18041840195655823,
0.12389479577541351,
-0.2533700466156006,
-0.28822222352027893,
0.13761043548583984,
-0.08531725406646729,
-0.5046294331550598,
-0.28603243827819824,
0.18998412787914276,
0.007503618486225605,
0.08541363477706909,
-0.06802067905664444,
-0.45849645137786865,
0.22388456761837006,
-0.3123113214969635,
-0.16726195812225342,
-0.08395838737487793,
-0.03512240946292877,
-0.0037935804575681686,
0.10224848985671997,
0.10631906986236572,
0.0255275946110487,
-0.6367225050926208,
-0.0780719742178917,
-0.21954944729804993,
-0.016004269942641258,
-0.22934500873088837,
0.22840780019760132,
0.20317333936691284,
-0.15508686006069183,
0.20905859768390656,
-0.2704057991504669,
0.34645015001296997,
0.02558939717710018,
-0.3695507347583771,
-0.01546655222773552,
-0.3388344943523407,
0.10336367785930634,
0.11398687213659286,
-0.2592841684818268,
0.5021615028381348,
0.16617310047149658,
-0.04996170848608017,
-0.09050089865922928,
-0.20152288675308228,
0.2595628798007965,
-0.00006190733256516978,
0.05834869295358658,
-0.4264308214187622,
0.09126957505941391,
-0.19133631885051727,
-0.05212001875042915,
-0.10428718477487564,
-0.025658996775746346,
-0.15692713856697083,
0.05985381454229355,
-0.2274882048368454,
-0.2387855052947998,
0.0925377830862999,
0.23684023320674896,
-0.01912519708275795,
-0.0704299658536911,
0.021805189549922943,
0.17990872263908386,
0.156161367893219,
0.2901679277420044,
0.29236483573913574,
0.27808696031570435,
-0.06889323145151138,
0.09685484319925308,
0.2517821490764618,
0.22629018127918243,
0.32922327518463135,
-0.07466106861829758,
-0.06404725462198257,
0.0011871856404468417,
-0.09502699226140976,
-0.013750714249908924,
-0.4295487701892853,
-0.07027693837881088,
0.3990367352962494,
-0.02854618988931179,
-0.6849343180656433,
-0.80018150806427,
0.5862548351287842,
0.20335888862609863,
-0.04241352528333664,
0.4010373055934906,
-0.18336805701255798,
-0.12305507808923721,
-0.08829941600561142,
0.19376103579998016,
0.738326370716095,
-0.11394209414720535,
0.049006830900907516,
0.14444176852703094,
0.3099934756755829,
0.4590799808502197,
-0.016372445970773697,
-0.05308273807168007,
-0.4539550244808197,
-0.15153226256370544,
-0.1391630470752716,
-0.1917891800403595,
0.26851069927215576,
0.18639975786209106,
-0.26382654905319214,
0.39061152935028076,
0.10171308368444443,
0.06968339532613754,
-0.15796861052513123,
0.30085331201553345,
-0.26096969842910767,
-0.08589251339435577,
-0.3324446380138397,
0.2069454938173294,
0.12997525930404663,
0.10094735771417618,
-0.1899978071451187,
-0.08607101440429688,
0.31699517369270325,
0.2821396589279175,
-0.12554433941841125,
-0.12767313420772552,
-0.10945834964513779,
0.06896714866161346,
0.12392738461494446,
-0.2988598942756653,
0.40014341473579407,
0.26132094860076904,
0.14222663640975952,
-0.06041523069143295,
-0.1662520468235016,
0.06324540078639984,
-0.09751254320144653,
-0.03834054619073868,
0.0007140350644476712,
0.17949362099170685,
0.4892547130584717,
-0.0808950737118721,
-0.032555464655160904,
0.26234257221221924,
0.11852513998746872,
-0.03521640971302986,
-0.11419083923101425,
0.13867047429084778,
0.24337857961654663,
-0.1255534142255783,
-0.22669757902622223,
0.4080350995063782,
-0.05306398868560791,
0.005941096227616072,
0.16510643064975739,
0.26010289788246155,
-0.14998973906040192,
0.45057326555252075,
-0.025289764627814293,
-0.06435845047235489,
-0.18765488266944885,
0.16634827852249146,
0.2450583428144455,
-0.09242357313632965,
0.22257211804389954,
0.032286349684000015,
-0.17797845602035522,
-0.2087043672800064,
0.2494400292634964,
0.2526233196258545,
-0.04920172691345215,
0.01565871387720108,
0.06796522438526154,
0.27038803696632385,
0.2758461833000183,
0.13124026358127594,
0.12329988926649094,
-0.10120859742164612,
-0.3609984517097473,
-0.11271198093891144,
-0.3696659207344055,
0.010942493565380573,
0.09227806329727173,
0.2632914185523987,
-0.0785030722618103,
-0.22781595587730408,
0.21123960614204407,
0.08895036578178406,
-0.32704028487205505,
0.031906530261039734,
-0.11105801910161972,
0.1568698137998581,
0.04028753936290741,
-0.043826714158058167,
-0.2527569830417633,
0.2932387888431549,
0.10484126210212708,
-0.0036788489669561386,
-0.303730845451355,
-0.20585907995700836,
-0.00778990238904953,
0.09332908689975739,
-0.034221671521663666,
-0.12230490893125534,
0.12761405110359192,
-0.3852507174015045,
-0.25362515449523926,
-0.1441390961408615,
0.16458092629909515,
-0.007396959699690342,
0.0032498803921043873,
0.22686238586902618,
0.23019731044769287,
-0.35314613580703735,
-0.0700027123093605,
-0.008867503143846989,
0.12020404636859894,
-0.14761175215244293,
0.10634606331586838,
0.29297101497650146,
0.1295570284128189,
-0.36454808712005615,
-0.41892004013061523,
0.2302248626947403,
0.260117769241333,
-0.22662392258644104,
0.45987874269485474,
-0.183603897690773,
0.2835589349269867,
0.1864103376865387,
0.3899698555469513,
0.5834113359451294,
-0.1510748565196991,
0.0721966102719307,
0.1697533130645752,
0.2021750807762146,
-0.0104206632822752,
-0.06180022284388542,
-0.06801987439393997,
0.06934297829866409,
0.03109768033027649,
0.1741316169500351,
0.13259625434875488,
0.13978973031044006,
-0.304925799369812,
-0.3196586072444916,
0.1743728667497635,
-0.4326549768447876,
0.06852032989263535,
0.3156367242336273,
-0.050540849566459656,
-0.0920165628194809,
0.34915441274642944,
0.514485239982605,
0.2512197494506836,
0.492308109998703,
0.2163974493741989,
0.5837104320526123,
0.14876669645309448,
0.07950826734304428,
0.10277058929204941,
-0.21357636153697968,
-0.06694769859313965,
0.3401172161102295,
0.1138983741402626,
0.17079249024391174,
-0.00263826921582222,
0.25102242827415466,
0.2171032428741455,
-0.14389488101005554,
-0.11521074175834656,
0.15530090034008026,
0.056076522916555405,
-0.23642876744270325,
-0.20334312319755554,
-0.15768229961395264,
-0.1710396111011505,
-0.07080109417438507,
-0.3268945813179016,
-0.06284856051206589,
0.35871410369873047,
0.096518874168396,
0.22638803720474243,
-0.3642049729824066,
0.4352072477340698,
-0.1042158380150795,
0.3328234553337097,
-0.30095934867858887,
0.2857185900211334,
-0.23622101545333862,
0.1262672245502472,
-0.3357149064540863,
0.14774824678897858,
0.1616244912147522,
0.4522746801376343,
0.07842133194208145,
0.06376976519823074,
-0.17152242362499237,
-0.13463452458381653,
0.03482606261968613,
0.1807403713464737,
0.005523468367755413,
-0.15034127235412598,
0.48303890228271484,
0.07878271490335464,
-0.029964178800582886,
0.4317759871482849,
0.039298009127378464,
-0.049010828137397766,
-0.761978268623352,
0.030807411298155785,
-0.07388359308242798,
-0.10408236086368561,
0.03861381858587265,
0.20588861405849457,
-0.3588981330394745,
0.031016256660223007,
0.34949833154678345,
-0.5118247270584106,
0.011284991167485714,
-0.12811481952667236,
0.09080810844898224,
-0.44382181763648987,
0.5806398987770081,
0.2358204573392868,
0.36837583780288696,
0.0646321102976799,
-0.3547825515270233,
-0.2148440033197403,
-0.0000030465805593848927,
-0.06460870057344437,
0.03301211819052696,
0.0023929616436362267,
0.2600565254688263,
0.04790875315666199,
0.08153696358203888,
-0.21019326150417328,
-0.4015117287635803,
-0.33186548948287964,
0.47154784202575684,
-0.14072676002979279,
-0.1185671016573906,
-0.5041669607162476,
0.4238245487213135,
0.06883236020803452,
-0.13729840517044067,
0.0028388777282088995,
-0.4769558310508728,
-0.056672174483537674,
-0.058655254542827606,
0.13391676545143127,
0.1711050122976303,
-0.21303381025791168,
0.4344690144062042,
0.05021507665514946,
0.1733381599187851,
-0.040956318378448486,
0.0506242997944355,
-0.20028594136238098,
-0.2317834496498108,
-0.05607167258858681,
0.4207940697669983,
0.0936153307557106,
0.018234118819236755,
-0.14805282652378082,
0.03005264885723591,
0.1506410539150238,
0.007268615532666445,
-0.017287464812397957,
0.025135323405265808,
-0.09878897666931152,
-0.4087804853916168,
-0.03841743618249893,
-0.014157016761600971,
0.16126713156700134,
0.722604513168335,
-0.19826480746269226,
-0.0007435745210386813,
-0.176343634724617,
0.055589038878679276,
0.19082683324813843,
-0.12029159814119339,
-0.11761794984340668,
-0.18912284076213837,
-0.005644532386213541,
0.09312287718057632,
-0.25717177987098694,
-0.4581367075443268,
0.11779749393463135,
0.4690546691417694,
-0.07871361076831818,
-0.19974267482757568,
0.3155783712863922,
0.2660441994667053,
0.0640997663140297,
-0.013725871220231056,
0.3568968176841736,
-0.16058723628520966,
-0.1009707897901535,
0.02146138623356819,
-0.26460036635398865
] |
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.3016708791255951,
-0.3916237950325012,
-0.12449987977743149,
0.40450263023376465,
0.12186519056558609,
0.08152608573436737,
0.2345810979604721,
0.194909930229187,
-0.04454329237341881,
-0.025844722986221313,
0.04402530938386917,
0.3346885144710541,
-0.3416881859302521,
0.019357819110155106,
-0.03542230278253555,
-0.15220139920711517,
-0.13506627082824707,
-0.10912662744522095,
-0.571297287940979,
-0.09419485926628113,
0.164425790309906,
-0.060779716819524765,
-0.3945017158985138,
-0.18522246181964874,
-0.015445367433130741,
-0.48471739888191223,
-0.2174990177154541,
0.003764562774449587,
-0.1276622861623764,
-0.33024054765701294,
0.18253310024738312,
0.028213869780302048,
0.4424459636211395,
0.6334055662155151,
-0.00011079794057877734,
-0.13626228272914886,
0.11614594608545303,
-0.17688177525997162,
-0.15353092551231384,
-0.31364208459854126,
-0.01096110325306654,
-0.11651044338941574,
-0.01740458980202675,
-0.4819856286048889,
-0.17750735580921173,
-0.1292107254266739,
0.061771463602781296,
-0.5960789918899536,
0.3605303466320038,
0.17476849257946014,
0.1965259462594986,
-0.16089096665382385,
0.03737649694085121,
-0.05173391476273537,
0.19321300089359283,
0.15505173802375793,
-0.0881115272641182,
0.21969658136367798,
0.4312994182109833,
0.28177085518836975,
-0.015033215284347534,
0.04724530875682831,
0.09159102290868759,
-0.07211023569107056,
0.1525726318359375,
0.000049734837375581264,
-0.21202610433101654,
-0.4927820861339569,
-0.011081453412771225,
0.18458788096904755,
0.9366422891616821,
-0.2746395766735077,
-0.2969912886619568,
-0.03512836992740631,
0.016817711293697357,
-0.17416438460350037,
-0.06891179829835892,
0.2412104308605194,
0.07034622132778168,
0.14414973556995392,
-0.3334394693374634,
-0.10515604168176651,
-0.18605318665504456,
0.22163838148117065,
0.07514733076095581,
0.2418806403875351,
0.0030306056141853333,
0.23123405873775482,
0.04622011259198189,
-0.21950161457061768,
0.4654040038585663,
-0.13293050229549408,
0.0892363041639328,
0.39922139048576355,
-0.4541890323162079,
-0.18444502353668213,
-0.03494112193584442,
0.21448029577732086,
0.43752792477607727,
0.26161989569664,
0.1651020646095276,
-0.10799560695886612,
-0.26502513885498047,
0.23070748150348663,
0.24533390998840332,
0.07750875502824783,
-0.013283363543450832,
0.2721359133720398,
0.09229850769042969,
-0.14101679623126984,
-0.010840950533747673,
0.022103669121861458,
-0.2615164816379547,
-0.4489366114139557,
0.08468472212553024,
0.03682243451476097,
-0.10157202929258347,
0.03495726361870766,
-0.00309118558652699,
-0.21233803033828735,
-0.2890578806400299,
-0.24834999442100525,
0.35088714957237244,
0.2104181945323944,
-0.211345836520195,
0.022354060783982277,
-0.1101628914475441,
0.17632897198200226,
0.28474512696266174,
0.3477296233177185,
-0.06335201859474182,
0.4023623466491699,
-0.4622740149497986,
-0.027497243136167526,
0.043280623853206635,
-0.3923403024673462,
0.11612918227910995,
0.1986749768257141,
-0.17079254984855652,
0.06776085495948792,
0.11512535810470581,
-0.32271242141723633,
0.4243597090244293,
-0.1387716680765152,
0.02296324446797371,
0.007192928809672594,
-0.07570195943117142,
0.21802358329296112,
-0.3226845860481262,
0.07050085067749023,
-0.41015759110450745,
-0.010066465474665165,
-0.18240103125572205,
0.12459515780210495,
-0.06858019530773163,
-0.1054995208978653,
-0.17918643355369568,
0.1854761838912964,
0.2596296966075897,
-0.14453716576099396,
0.25096964836120605,
0.05079047754406929,
-0.1488243192434311,
-0.25306472182273865,
0.09713097661733627,
0.379682332277298,
-0.3504391014575958,
0.04364047199487686,
0.3202689588069916,
0.15157285332679749,
0.1543491929769516,
0.3483070731163025,
-0.3904179632663727,
0.25391918420791626,
-0.3402406871318817,
-0.13526074588298798,
0.7417574524879456,
-0.36350956559181213,
-0.1803581416606903,
0.23649321496486664,
-0.059968218207359314,
-0.24980226159095764,
0.31004974246025085,
0.006149759981781244,
-0.07299967110157013,
0.07179457694292068,
0.19283731281757355,
0.1711921989917755,
0.03211630508303642,
-0.16064274311065674,
0.01014831755310297,
-0.02855903096497059,
0.33515897393226624,
-0.02544068545103073,
0.0790986642241478,
0.1570301204919815,
0.2761317789554596,
-0.061923813074827194,
0.4041701853275299,
-0.2901451587677002,
0.1881706714630127,
0.28395357728004456,
0.018036697059869766,
-0.1514430046081543,
0.051079146564006805,
-0.17032083868980408,
-0.2152463048696518,
0.2737481892108917,
0.05889976769685745,
-0.19499371945858002,
0.11007677018642426,
0.016197701916098595,
0.02881300263106823,
-0.1400696486234665,
-0.20779156684875488,
-0.0491938516497612,
0.06504759192466736,
0.12359655648469925,
0.20509396493434906,
-0.27526581287384033,
-0.3432310223579407,
0.053629957139492035,
-0.226937398314476,
-0.15224236249923706,
-0.5957725048065186,
0.28309473395347595,
0.15693335235118866,
-0.18391767144203186,
0.08864514529705048,
0.10523059219121933,
-0.02204257622361183,
-0.34508368372917175,
0.17710864543914795,
0.39114612340927124,
-0.04035620018839836,
0.1695433109998703,
0.1876876801252365,
0.2503103017807007,
0.37198442220687866,
-0.04357672855257988,
0.15443503856658936,
-0.30360302329063416,
0.20199579000473022,
-0.16441696882247925,
0.1088796854019165,
0.41755566000938416,
-0.17900042235851288,
0.1390862613916397,
0.2945198714733124,
-0.162001371383667,
0.050043389201164246,
0.03386696055531502,
-0.3456018567085266,
0.09511080384254456,
-0.1028616651892662,
0.0285402312874794,
0.4338843524456024,
-0.22184792160987854,
-0.46622464060783386,
-0.2694403827190399,
0.31251010298728943,
0.09446494281291962,
0.04982835799455643,
-0.03947169706225395,
-0.16150115430355072,
0.007087076548486948,
0.24333320558071136,
-0.2581147253513336,
0.48009029030799866,
0.01307445764541626,
0.24237412214279175,
0.006554755382239819,
0.15035364031791687,
0.0643308162689209,
0.19351497292518616,
0.04527666047215462,
0.3508187532424927,
0.17024189233779907,
0.2046918123960495,
0.11709906160831451,
-0.04012087732553482,
-0.3137162923812866,
0.01634904183447361,
0.0010908355470746756,
-0.1328427940607071,
0.23851707577705383,
-0.2977770268917084,
0.024162331596016884,
-0.4486715495586395,
-0.15989412367343903,
0.17479203641414642,
0.07700318098068237,
-0.33663201332092285,
0.049251824617385864,
0.42619937658309937,
0.18667706847190857,
0.12122497707605362,
0.08222043514251709,
0.3265724182128906,
-0.11024927347898483,
-0.03547408804297447,
-0.1402105987071991,
0.002116953255608678,
0.14685730636119843,
0.256462037563324,
-0.3135659098625183,
0.5114415884017944,
0.046541158109903336,
-0.00014916251529939473,
-0.5351357460021973,
-0.12054023891687393,
0.36853671073913574,
-0.13019663095474243,
-0.09732632339000702,
0.2938459813594818,
-0.16013839840888977,
-0.1209716871380806,
-0.12818986177444458,
0.07866305112838745,
-0.2453060746192932,
0.08661004900932312,
-0.11015565693378448,
-0.22116076946258545,
-0.07384134829044342,
0.09101638942956924,
-0.3345853090286255,
-0.5138571262359619,
-0.25992318987846375,
0.2739350199699402,
0.3042735457420349,
0.17828811705112457,
0.19476334750652313,
0.1513940989971161,
0.41639429330825806,
0.2766896188259125,
0.17466378211975098,
-0.13454985618591309,
-0.5078081488609314,
0.43659278750419617,
-0.44339483976364136,
-0.3223360478878021,
-0.06711087375879288,
-0.08911419659852982,
0.4015442728996277,
0.29273685812950134,
-0.22754187881946564,
-0.09199146181344986,
0.06416310369968414,
0.21968196332454681,
-0.06442613154649734,
0.4492756128311157,
0.37787967920303345,
-0.1747940331697464,
-0.03326460346579552,
-0.04648685082793236,
0.13206809759140015,
-0.01837877556681633,
0.07690893113613129,
0.5140587091445923,
0.4622372090816498,
0.3192092180252075,
0.056447554379701614,
0.7233348488807678,
0.23687605559825897,
-0.42317014932632446,
0.4203619956970215,
-0.29125455021858215,
-0.20604553818702698,
-0.14175769686698914,
-0.320032000541687,
0.11631602793931961,
-0.2672155499458313,
-0.20390990376472473,
0.08295291662216187,
-0.2075929492712021,
-0.45043638348579407,
-0.3630998730659485,
0.16158877313137054,
-0.13453993201255798,
-0.036412157118320465,
-0.0008961028070189059,
-0.44310373067855835,
0.15193840861320496,
-0.37464192509651184,
-0.024734674021601677,
-0.1444488912820816,
-0.06648964434862137,
0.07084433734416962,
-0.048118241131305695,
0.026806900277733803,
-0.00749057624489069,
-0.5318665504455566,
-0.07767345756292343,
-0.22263944149017334,
0.28680333495140076,
0.04261988401412964,
0.09285140037536621,
0.3301162123680115,
-0.10337109863758087,
0.13806046545505524,
-0.18110527098178864,
0.5042600035667419,
-0.06172339245676994,
-0.2357165664434433,
-0.027392785996198654,
-0.2021416425704956,
-0.019855447113513947,
0.07301843166351318,
-0.25666165351867676,
0.4214020073413849,
0.3614586591720581,
0.12368794530630112,
-0.1362920105457306,
-0.27268916368484497,
0.1096017062664032,
-0.2279168963432312,
0.11905448883771896,
-0.2491510659456253,
0.08459276705980301,
0.018575740978121758,
-0.29723963141441345,
-0.14717116951942444,
0.08121612668037415,
0.019629616290330887,
0.0006557729793712497,
-0.19312281906604767,
-0.253000408411026,
0.015010084956884384,
0.1761218160390854,
-0.0630650520324707,
0.1344306915998459,
0.16551931202411652,
0.1640261709690094,
0.3385913372039795,
0.40194934606552124,
0.34910497069358826,
0.45746123790740967,
-0.049717314541339874,
0.12409274280071259,
0.3840075135231018,
0.12470858544111252,
0.34582823514938354,
0.12290287762880325,
-0.11995116621255875,
-0.08574799448251724,
-0.35326042771339417,
-0.05420028790831566,
-0.315409779548645,
-0.009127838537096977,
0.38374263048171997,
-0.08551204204559326,
-0.6794341206550598,
-0.7689762711524963,
0.40150466561317444,
0.22265052795410156,
-0.13364432752132416,
0.3440205752849579,
-0.381989985704422,
-0.3183285593986511,
-0.09104975312948227,
0.2710524797439575,
0.8402195572853088,
0.03229985758662224,
0.15252427756786346,
0.022630957886576653,
0.33664003014564514,
0.284358948469162,
0.030587639659643173,
0.04688171669840813,
-0.5196401476860046,
-0.13651423156261444,
-0.2416655719280243,
-0.3081587255001068,
0.2897697985172272,
0.2748752236366272,
-0.307120144367218,
0.43383532762527466,
-0.089680016040802,
0.2778542637825012,
-0.14435161650180817,
0.29080572724342346,
-0.14496341347694397,
-0.21226011216640472,
-0.3896152675151825,
0.09860805422067642,
0.10210933536291122,
0.11092633754014969,
-0.1567336916923523,
-0.12719281017780304,
0.03339178115129471,
0.048381149768829346,
-0.0917535349726677,
-0.044228482991456985,
-0.5501803755760193,
0.2739240527153015,
0.1598554253578186,
-0.5914468169212341,
0.29468807578086853,
0.6760759949684143,
0.11542976647615433,
-0.011979738250374794,
-0.1408441960811615,
0.03844094276428223,
0.20609384775161743,
-0.15621958673000336,
-0.0725087970495224,
0.09753522276878357,
0.47581183910369873,
0.05284416675567627,
0.004843802656978369,
0.4223833978176117,
0.13970832526683807,
-0.0095872413367033,
-0.1689719408750534,
0.1133894994854927,
0.2828730344772339,
-0.2784448564052582,
-0.233335480093956,
0.32464319467544556,
-0.0805056244134903,
0.015166867524385452,
0.09097592532634735,
0.21670760214328766,
-0.1675383299589157,
0.20515812933444977,
0.10292917490005493,
-0.08481718599796295,
-0.07633154094219208,
0.47067105770111084,
0.1202273964881897,
-0.09813133627176285,
0.24790291488170624,
0.1295384019613266,
-0.15966886281967163,
-0.12347495555877686,
0.2534746527671814,
0.21452845633029938,
-0.14984801411628723,
-0.1539316177368164,
0.07416670024394989,
0.12451747059822083,
0.23289619386196136,
0.28497937321662903,
0.1200706958770752,
0.0664469301700592,
-0.16105414927005768,
-0.18047110736370087,
-0.38884568214416504,
0.06108808517456055,
0.10048495978116989,
0.3253472149372101,
0.10528837889432907,
-0.22244520485401154,
0.02932807244360447,
0.07683635503053665,
-0.28232812881469727,
0.02492368221282959,
0.010995734483003616,
0.19628283381462097,
0.13648580014705658,
-0.10939520597457886,
-0.10343445837497711,
0.13556638360023499,
0.06082066893577576,
0.1372392773628235,
-0.2650083899497986,
-0.19546125829219818,
-0.0620841458439827,
0.0954936221241951,
-0.010230558924376965,
-0.17167897522449493,
0.015568086877465248,
-0.4823229908943176,
-0.15563802421092987,
-0.17427505552768707,
0.22607235610485077,
0.09729638695716858,
0.14880305528640747,
0.04383212327957153,
0.24196286499500275,
-0.23626843094825745,
-0.08095082640647888,
-0.05541161447763443,
0.05088244006037712,
-0.15842264890670776,
0.12084909528493881,
0.30512574315071106,
-0.07018387317657471,
-0.27844417095184326,
-0.2976566255092621,
0.16205717623233795,
0.45192253589630127,
0.0673501268029213,
0.2465280145406723,
-0.25745218992233276,
0.09971778839826584,
0.09098071604967117,
0.2638566493988037,
0.4230264723300934,
-0.16003604233264923,
0.05204994976520538,
0.125624880194664,
0.12485979497432709,
-0.0970332995057106,
-0.017353689298033714,
-0.22670553624629974,
0.029307248070836067,
0.10593023896217346,
0.22145278751850128,
0.07976314425468445,
0.18182843923568726,
-0.37657323479652405,
-0.20886602997779846,
0.22121533751487732,
-0.3223399221897125,
0.1888602077960968,
0.3121754825115204,
-0.024801112711429596,
-0.11892566829919815,
0.31315141916275024,
0.47819650173187256,
0.18405500054359436,
0.11278695613145828,
-0.006975569296628237,
0.5928171873092651,
0.25998741388320923,
-0.07004368305206299,
0.181056410074234,
-0.238439679145813,
-0.12359517067670822,
0.134611576795578,
0.07866740226745605,
0.17646706104278564,
-0.13589778542518616,
0.5692288279533386,
0.2992449998855591,
-0.16049230098724365,
0.09066319465637207,
0.368660032749176,
0.11357823759317398,
-0.2999248802661896,
-0.3345412611961365,
-0.23540224134922028,
-0.13830117881298065,
-0.11452826857566833,
-0.2687351703643799,
-0.03433185815811157,
0.3106890022754669,
0.152648463845253,
0.3058914244174957,
-0.21367785334587097,
0.3738524913787842,
-0.07769626379013062,
0.10088455677032471,
-0.314216673374176,
0.34808576107025146,
-0.16416360437870026,
0.14375391602516174,
-0.21533796191215515,
0.08323115855455399,
0.2506152093410492,
0.3648098409175873,
-0.14234712719917297,
-0.011287843808531761,
-0.06852909922599792,
-0.11979233473539352,
0.1105622872710228,
0.09949134290218353,
0.025687668472528458,
-0.37523922324180603,
0.5009598731994629,
0.07273486256599426,
-0.08314713090658188,
0.33622732758522034,
0.02548959292471409,
-0.08609017729759216,
-0.517175555229187,
0.028514495119452477,
-0.07607822865247726,
-0.16160622239112854,
-0.002965533873066306,
0.03221710026264191,
-0.34950000047683716,
-0.05347941070795059,
0.3596717119216919,
-0.48144790530204773,
0.10965495556592941,
-0.07124361395835876,
0.06761442124843597,
-0.20869329571723938,
0.54803466796875,
0.21127989888191223,
0.3716070055961609,
-0.04388386383652687,
-0.17019081115722656,
-0.19883987307548523,
-0.06921536475419998,
0.17779843509197235,
0.04276109114289284,
-0.12375897914171219,
0.24169200658798218,
0.03628344088792801,
0.11097998917102814,
-0.00824024435132742,
-0.5410215854644775,
-0.22051534056663513,
0.4227233827114105,
-0.18203787505626678,
-0.21949408948421478,
-0.3366207182407379,
0.4020097255706787,
0.08840222656726837,
-0.3076240122318268,
-0.026384279131889343,
-0.3074912428855896,
-0.03617287427186966,
-0.20241262018680573,
0.02370685152709484,
0.024954697117209435,
-0.27431297302246094,
0.5059759616851807,
-0.1371539831161499,
0.3993726968765259,
-0.19356997311115265,
0.11270610988140106,
-0.21254336833953857,
-0.3714734613895416,
0.052838489413261414,
0.3700616955757141,
0.298094779253006,
0.20231398940086365,
-0.24370509386062622,
-0.07318712770938873,
0.08783961832523346,
0.08885335177183151,
0.11979745328426361,
-0.07435429096221924,
-0.19318678975105286,
-0.23614923655986786,
0.0032978428062051535,
-0.059087902307510376,
-0.03591553866863251,
0.6751530170440674,
-0.1143774539232254,
0.21191950142383575,
-0.11916511505842209,
-0.34948667883872986,
0.43216368556022644,
-0.2436613291501999,
-0.16234681010246277,
-0.08970661461353302,
-0.1091446503996849,
0.24272575974464417,
0.013439475558698177,
-0.4573633670806885,
0.09172805398702621,
0.4157384932041168,
-0.06913729012012482,
-0.19676147401332855,
0.18735824525356293,
0.284701406955719,
0.07364755123853683,
-0.16825570166110992,
0.17445722222328186,
-0.12749773263931274,
-0.12218572199344635,
-0.1616964042186737,
-0.34812504053115845
] |
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.17623141407966614,
-0.21298202872276306,
0.04182776063680649,
0.1458275020122528,
0.2960059344768524,
-0.21450462937355042,
0.2066284716129303,
-0.059659309685230255,
0.07366044074296951,
0.36313149333000183,
-0.14943575859069824,
0.27701252698898315,
-0.32634392380714417,
0.15066222846508026,
-0.029202422127127647,
-0.593284010887146,
-0.08712031692266464,
0.23080943524837494,
-0.249445840716362,
-0.03293398767709732,
0.24965232610702515,
-0.003395261475816369,
-0.11337452381849289,
-0.07345499098300934,
-0.10531843453645706,
-0.17391206324100494,
-0.3590156137943268,
-0.018264684826135635,
-0.17482545971870422,
-0.25802385807037354,
0.43718621134757996,
0.39873096346855164,
0.6609317660331726,
0.459910124540329,
-0.00012574033462442458,
0.07446162402629852,
0.10183371603488922,
-0.15351714193820953,
-0.25749388337135315,
-0.14249293506145477,
0.05453451722860336,
0.247948557138443,
0.1367180198431015,
-0.23220543563365936,
-0.1759776473045349,
0.037736836820840836,
0.1900283247232437,
0.026472151279449463,
0.5198242664337158,
-0.14746752381324768,
0.06997606158256531,
-0.052441805601119995,
-0.24222436547279358,
-0.2215246558189392,
-0.1993633210659027,
0.3077506422996521,
-0.041010674089193344,
0.2077392190694809,
0.3981793224811554,
-0.007586868945509195,
-0.4323897659778595,
-0.024220701307058334,
0.03302886337041855,
0.21756181120872498,
0.007218012586236,
-0.13580456376075745,
-0.2036309540271759,
-0.23513245582580566,
-0.3969811201095581,
0.1602654606103897,
0.6051854491233826,
-0.2570723593235016,
-0.37136635184288025,
-0.1774277538061142,
-0.25012752413749695,
0.05001874268054962,
-0.1925216168165207,
0.05104739964008331,
-0.1837783306837082,
0.28231507539749146,
-0.1530066877603531,
-0.11604660004377365,
-0.31170520186424255,
0.12746930122375488,
-0.15682870149612427,
0.4186405539512634,
-0.1393895000219345,
0.12818102538585663,
0.09365036338567734,
0.2098371386528015,
0.10633797943592072,
0.04158847779035568,
0.21946483850479126,
0.1438555121421814,
-0.22325338423252106,
-0.36408767104148865,
0.009543674066662788,
0.27474480867385864,
0.48821717500686646,
0.5775036811828613,
0.04991484060883522,
-0.09424614161252975,
-0.008048780262470245,
-0.007061921991407871,
0.3743891417980194,
-0.00014956563245505095,
-0.16733750700950623,
0.47950223088264465,
0.022830313071608543,
0.27503830194473267,
-0.02665846422314644,
-0.1354801058769226,
-0.1654912382364273,
0.06681519001722336,
0.009090004488825798,
-0.14418993890285492,
0.0008439049124717712,
-0.13143904507160187,
0.07698750495910645,
-0.44963303208351135,
0.2652004659175873,
-0.23790998756885529,
-0.17900168895721436,
0.17996494472026825,
-0.1000174805521965,
0.07081472873687744,
-0.12669967114925385,
0.13428297638893127,
-0.020694773644208908,
-0.11324689537286758,
-0.11132817715406418,
0.12971222400665283,
-0.21313071250915527,
0.2274456024169922,
-0.007410918362438679,
-0.3920818269252777,
0.3760811984539032,
-0.09818544238805771,
0.35293006896972656,
0.047864191234111786,
0.1421632170677185,
-0.12914897501468658,
-0.15849252045154572,
-0.08737786114215851,
-0.07182396948337555,
0.11390523612499237,
-0.15250389277935028,
0.3168802261352539,
-0.28178122639656067,
0.03912489116191864,
-0.4134101867675781,
-0.3401992619037628,
0.15837305784225464,
-0.023116692900657654,
-0.2817364037036896,
-0.22678078711032867,
-0.27781224250793457,
0.20355266332626343,
0.017787370830774307,
0.009934203699231148,
-0.04638129845261574,
-0.05780237168073654,
-0.17427785694599152,
-0.1528569757938385,
0.23573178052902222,
0.40273723006248474,
-0.20606094598770142,
-0.22155973315238953,
-0.04379338026046753,
-0.15604667365550995,
0.3560597002506256,
0.25362634658813477,
-0.1780748963356018,
0.30561497807502747,
-0.18697521090507507,
0.18143051862716675,
0.412100225687027,
-0.4824196696281433,
-0.4623405635356903,
0.3475467264652252,
-0.17740899324417114,
0.08414094895124435,
0.340362548828125,
-0.07657884061336517,
0.4955594539642334,
-0.1990608125925064,
-0.3674897253513336,
0.5588454604148865,
-0.21154190599918365,
-0.1284409761428833,
-0.19923163950443268,
-0.21203553676605225,
0.1296754628419876,
0.3994775116443634,
0.09639042615890503,
0.3884040415287018,
0.03291088715195656,
0.09278640151023865,
0.391280859708786,
-0.011189419776201248,
0.5302363634109497,
-0.03982655331492424,
0.1653410941362381,
0.09334128350019455,
0.1260017603635788,
-0.3339477479457855,
0.02917039766907692,
0.08820396661758423,
0.13469061255455017,
0.16387078166007996,
0.14311303198337555,
-0.006923541892319918,
0.018115753307938576,
-0.2439255714416504,
-0.44025665521621704,
-0.19331064820289612,
-0.06433908641338348,
0.21800540387630463,
0.6305697560310364,
-0.324545681476593,
-0.3223572373390198,
-0.05644625797867775,
0.09571195393800735,
0.022403236478567123,
-0.35553520917892456,
0.48541414737701416,
0.17501157522201538,
-0.13788630068302155,
-0.06239951401948929,
-0.15493468940258026,
-0.27924877405166626,
-0.3736252188682556,
0.1042342409491539,
0.27545279264450073,
-0.049290981143713,
0.13747425377368927,
0.2444837987422943,
-0.11446133255958557,
0.11965638399124146,
-0.28007107973098755,
0.14478746056556702,
0.15170183777809143,
0.02629983238875866,
-0.03692157566547394,
0.10565387457609177,
0.44883930683135986,
-0.12635672092437744,
0.15968123078346252,
-0.0317608080804348,
0.12207763642072678,
0.239172101020813,
-0.0615849643945694,
-0.2905209958553314,
0.09445101767778397,
0.010796457529067993,
-0.28862205147743225,
0.23361650109291077,
-0.18025384843349457,
-0.3940918743610382,
-0.008954482153058052,
-0.161593496799469,
-0.19776707887649536,
0.005599717143923044,
0.09276784211397171,
-0.05836901068687439,
0.22133547067642212,
0.11539590358734131,
0.22066013514995575,
0.454504132270813,
0.01432143896818161,
0.12673340737819672,
0.02295759879052639,
0.21725161373615265,
0.03286372497677803,
-0.062227874994277954,
-0.010402585379779339,
-0.07828733325004578,
0.08005569875240326,
-0.2320345640182495,
0.02935786545276642,
0.06923610717058182,
-0.3264908492565155,
-0.031244400888681412,
0.10349921882152557,
-0.01590608060359955,
-0.05584030598402023,
-0.27486878633499146,
-0.12626533210277557,
-0.47737953066825867,
-0.08579888939857483,
0.11582037806510925,
0.2840200662612915,
-0.23435921967029572,
0.1120985895395279,
0.22572696208953857,
0.20187735557556152,
0.09996132552623749,
0.6861435770988464,
-0.06811314076185226,
0.2938068211078644,
-0.03799877315759659,
-0.08659148216247559,
0.08617835491895676,
0.032573018223047256,
-0.005466358736157417,
0.01724850945174694,
0.318083792924881,
-0.10718744993209839,
-0.1507677286863327,
-0.14215736091136932,
0.13965778052806854,
0.15727293491363525,
-0.006112891249358654,
0.1908634454011917,
0.259652316570282,
0.09427115321159363,
0.014770480804145336,
0.3015545606613159,
-0.014424965716898441,
-0.18509456515312195,
-0.07257184386253357,
0.020058969035744667,
-0.022001847624778748,
0.10534042119979858,
0.07142025977373123,
0.13506914675235748,
-0.5741370916366577,
-0.11031918972730637,
0.15144720673561096,
0.43415120244026184,
0.16206170618534088,
-0.3081137537956238,
0.07415522634983063,
-0.20468184351921082,
-0.08378492295742035,
0.06114035099744797,
0.1934666782617569,
-0.6808117032051086,
0.24501554667949677,
-0.23071828484535217,
-0.17110000550746918,
-0.2517697811126709,
-0.0022164362017065287,
0.02158684842288494,
0.3401450514793396,
-0.21494178473949432,
-0.37249040603637695,
0.16690805554389954,
0.1288241744041443,
0.15068870782852173,
0.49974289536476135,
0.335959792137146,
0.018559087067842484,
0.24611154198646545,
-0.1261473298072815,
-0.09856035560369492,
0.3742194175720215,
-0.03229401260614395,
0.10802506655454636,
0.3546377718448639,
0.21770000457763672,
-0.06276960670948029,
0.684782087802887,
0.3673396706581116,
-0.007278420962393284,
0.25193676352500916,
0.06046353653073311,
-0.3771795928478241,
0.2624762952327728,
0.05321696028113365,
0.38723424077033997,
-0.06926397979259491,
-0.004257745109498501,
0.38966286182403564,
0.06886617839336395,
0.26079121232032776,
-0.3597656488418579,
-0.1988833248615265,
-0.010939294472336769,
0.07322652637958527,
-0.1000315472483635,
-0.26450881361961365,
0.2502050995826721,
-0.3910626173019409,
-0.22631675004959106,
-0.09377066045999527,
0.12065235525369644,
-0.01660005934536457,
0.26962006092071533,
0.4421626329421997,
0.23454663157463074,
-0.373017281293869,
0.22323456406593323,
-0.23887787759304047,
-0.12379337847232819,
-0.08177965134382248,
-0.01567579247057438,
0.22562527656555176,
0.021744199097156525,
0.3156943619251251,
-0.012643002904951572,
0.37798991799354553,
-0.23378103971481323,
-0.0938330814242363,
-0.4844170808792114,
-0.431132972240448,
0.11222696304321289,
-0.08733069896697998,
-0.35380393266677856,
0.4462769329547882,
-0.591220498085022,
0.15685096383094788,
-0.3123336136341095,
-0.15187020599842072,
0.11503848433494568,
-0.004351481329649687,
-0.37642157077789307,
-0.2770940363407135,
-0.11945362389087677,
-0.4327884018421173,
-0.06401246786117554,
-0.11207994073629379,
-0.04508928209543228,
-0.06222772225737572,
-0.04812759533524513,
0.1054459735751152,
-0.29785898327827454,
0.13723666965961456,
0.15048488974571228,
-0.05141770467162132,
0.022347183898091316,
-0.1955285221338272,
0.10630016028881073,
0.3705868721008301,
0.30445095896720886,
0.38516876101493835,
0.4489281475543976,
-0.4912424087524414,
-0.38609999418258667,
-0.040871769189834595,
0.12539821863174438,
0.23081310093402863,
0.008793773129582405,
0.08274993300437927,
0.30020472407341003,
-0.057264070957899094,
-0.06785888969898224,
-0.5000567436218262,
-0.2672537565231323,
0.024462424218654633,
0.02009439282119274,
-0.47282764315605164,
-0.714716374874115,
0.22410330176353455,
0.15224727988243103,
-0.13680844008922577,
-0.03217881917953491,
-0.06947637349367142,
-0.26120442152023315,
0.2622137665748596,
0.22494038939476013,
0.8707498908042908,
-0.1021604984998703,
-0.042065564543008804,
0.07383979856967926,
0.27486753463745117,
0.7067093849182129,
0.3199191093444824,
0.10016507655382156,
-0.28272154927253723,
-0.3105248212814331,
-0.19791290163993835,
-0.11090632528066635,
-0.005718653555959463,
0.5164123773574829,
-0.5429214835166931,
0.3605947196483612,
0.021928820759058,
-0.09969813376665115,
0.1444534957408905,
0.09367011487483978,
0.13575470447540283,
-0.13527362048625946,
-0.30158594250679016,
0.025390606373548508,
-0.19551745057106018,
0.24856427311897278,
-0.138992577791214,
-0.2632390558719635,
0.19338484108448029,
0.20516960322856903,
0.20742814242839813,
-0.06681802868843079,
-0.012125193141400814,
-0.1047033742070198,
0.4981990456581116,
-0.08495298773050308,
0.24544288218021393,
0.003671344369649887,
0.31818950176239014,
-0.257071852684021,
0.0013373501133173704,
-0.05765350162982941,
-0.1081545427441597,
-0.10825955867767334,
-0.036055631935596466,
0.06418925523757935,
0.43727344274520874,
0.056912027299404144,
-0.22568880021572113,
0.2304370105266571,
0.15759675204753876,
-0.28383374214172363,
-0.1787344515323639,
-0.20391319692134857,
0.1599762737751007,
-0.3195152282714844,
-0.14816875755786896,
-0.022608913481235504,
0.06512679159641266,
-0.03487654775381088,
-0.08008328825235367,
0.344161719083786,
-0.3170130252838135,
0.35267123579978943,
0.0027465939056128263,
0.10891686379909515,
-0.10811550170183182,
0.23896817862987518,
0.24485285580158234,
-0.06834541261196136,
0.07959397882223129,
-0.12282852083444595,
0.039376791566610336,
0.005526506807655096,
-0.3198075592517853,
0.13805228471755981,
-0.543417751789093,
0.26383349299430847,
-0.1851089596748352,
0.24794435501098633,
-0.10677165538072586,
0.2094832807779312,
0.2634006142616272,
-0.06447742879390717,
-0.216660737991333,
-0.3531401753425598,
-0.3530893921852112,
-0.1570393443107605,
-0.04424341022968292,
0.12845253944396973,
0.07065168023109436,
0.04632001370191574,
-0.015834873542189598,
0.2757933735847473,
-0.161054790019989,
-0.10023193806409836,
-0.03416120633482933,
0.10603945702314377,
0.38854262232780457,
0.2384248673915863,
-0.3457801043987274,
0.26486700773239136,
-0.10201307386159897,
0.11184832453727722,
-0.013522494584321976,
0.023610485717654228,
-0.0651639848947525,
0.21684405207633972,
0.21072056889533997,
-0.22150824964046478,
-0.08264131844043732,
0.01600920595228672,
-0.14351332187652588,
-0.08457913249731064,
0.1811014860868454,
-0.020693425089120865,
-0.1497686505317688,
0.24868954718112946,
0.7305867671966553,
-0.43849799036979675,
-0.45409563183784485,
0.40018558502197266,
0.2096707969903946,
-0.13511383533477783,
0.06734926998615265,
0.307145893573761,
0.1754889041185379,
-0.20532839000225067,
-0.0024750232696533203,
0.28447961807250977,
0.6360452771186829,
0.10420125722885132,
0.32125091552734375,
-0.2410333752632141,
0.3320280611515045,
-0.010445577092468739,
0.4907318651676178,
0.4158390164375305,
-0.1445622742176056,
0.0061384025029838085,
0.3453778922557831,
0.0719081461429596,
-0.06379345059394836,
0.12392835319042206,
0.1777513176202774,
0.16276685893535614,
-0.1147240400314331,
0.567881166934967,
-0.2439221888780594,
-0.018771985545754433,
-0.322830468416214,
0.06917709112167358,
0.4023534953594208,
0.19334156811237335,
-0.09506375342607498,
0.3029835522174835,
0.24839061498641968,
0.07961341738700867,
0.2700076699256897,
0.31574547290802,
0.19509528577327728,
-0.09590021520853043,
-0.2032376229763031,
0.7602373957633972,
-0.22015394270420074,
-0.15916922688484192,
-0.02944028563797474,
-0.468616247177124,
0.3586581349372864,
0.3634345531463623,
0.212347611784935,
-0.06844275444746017,
-0.1370858997106552,
0.5740581750869751,
-0.12701787054538727,
-0.23218341171741486,
-0.0025768911000341177,
0.32480090856552124,
0.060699738562107086,
-0.37785372138023376,
-0.3409527838230133,
-0.18541158735752106,
-0.1240244135260582,
0.0476578027009964,
-0.10815013200044632,
0.05534245818853378,
0.5609673261642456,
-0.11904597282409668,
0.07118383049964905,
-0.5261393189430237,
-0.34531697630882263,
0.3194180727005005,
0.11496387422084808,
-0.07424040883779526,
0.2584962546825409,
-0.06266006082296371,
0.0744231715798378,
0.130840465426445,
0.4096461832523346,
0.01941584050655365,
0.2499275803565979,
0.009658833034336567,
0.03828616440296173,
-0.07249376177787781,
0.11483616381883621,
0.08926842361688614,
0.10268431901931763,
-0.2961384952068329,
-0.1933681070804596,
0.4360486567020416,
-0.05942514166235924,
0.023124629631638527,
0.17970095574855804,
0.1417747139930725,
-0.1073029488325119,
-0.47296711802482605,
0.15202748775482178,
0.021125428378582,
-0.04998131841421127,
0.21130262315273285,
0.1267896592617035,
-0.3962586224079132,
-0.05875340476632118,
0.07345283776521683,
-0.5963247418403625,
0.03794553875923157,
-0.1534632295370102,
-0.03253314644098282,
-0.13564234972000122,
0.4952053129673004,
0.4738098382949829,
0.14622467756271362,
-0.11245183646678925,
-0.3779435157775879,
-0.2596483528614044,
0.253606379032135,
-0.19999933242797852,
-0.34759241342544556,
-0.286064475774765,
-0.02039705403149128,
0.06257994472980499,
0.10932212322950363,
-0.5165191888809204,
0.2676754593849182,
0.01550062745809555,
0.6406418085098267,
-0.007847749628126621,
-0.3341730535030365,
-0.23202283680438995,
0.41741955280303955,
0.1265353113412857,
-0.19671955704689026,
-0.08519802242517471,
0.10078593343496323,
-0.10882417857646942,
0.07886399328708649,
0.2305397391319275,
0.11266741156578064,
-0.3531217575073242,
0.10948634147644043,
0.1274297535419464,
0.362007737159729,
-0.05937286838889122,
0.1948198825120926,
0.07565776258707047,
0.16064314544200897,
-0.38260242342948914,
-0.19719119369983673,
0.06561040133237839,
0.0794166848063469,
-0.12152671068906784,
0.15128470957279205,
-0.33433741331100464,
-0.2985711395740509,
0.23226431012153625,
0.1794830560684204,
-0.18850645422935486,
0.017603088170289993,
-0.26116931438446045,
-0.03827826306223869,
0.4513552486896515,
0.27865999937057495,
-0.08302993327379227,
-0.008343600668013096,
-0.17706778645515442,
-0.06894610077142715,
0.24327613413333893,
-0.3367728292942047,
-0.0019328416092321277,
-0.24295301735401154,
-0.03597801551222801,
-0.3963625133037567,
-0.3386983871459961,
-0.6620274782180786,
0.1587563157081604,
0.22873607277870178,
-0.007101070135831833,
0.06440101563930511,
0.29645660519599915,
0.2667255401611328,
-0.04617708548903465,
-0.0840352475643158,
0.12056351453065872,
0.06325580924749374,
-0.06286570429801941,
0.02162838913500309,
-0.13021589815616608
] |
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.0939560979604721,
-0.13829343020915985,
-0.11098233610391617,
0.11790578067302704,
0.36464574933052063,
0.13861706852912903,
0.3069935441017151,
0.5121554732322693,
0.16887561976909637,
-0.010042807087302208,
0.09551141411066055,
0.06016852706670761,
-0.41010889410972595,
0.05727989226579666,
-0.2360524982213974,
0.21848130226135254,
0.0992707908153534,
-0.11772027611732483,
-0.23109681904315948,
-0.13838358223438263,
-0.046339359134435654,
-0.026428567245602608,
-0.06341663748025894,
0.05024569481611252,
-0.7488377690315247,
-0.12223625183105469,
0.21669019758701324,
0.017118023708462715,
-0.17996889352798462,
-0.4650105834007263,
-0.09187726676464081,
0.204990953207016,
0.18334566056728363,
0.23775160312652588,
-0.00010856355220312253,
-0.2062123864889145,
0.3049529492855072,
0.05612828955054283,
-0.29486164450645447,
0.31304827332496643,
-0.17657852172851562,
-0.4536096453666687,
0.2646346092224121,
-0.12875056266784668,
-0.032002173364162445,
-0.576477587223053,
0.12004812806844711,
-0.5471833944320679,
0.19710424542427063,
0.2420779913663864,
0.25319284200668335,
0.17216622829437256,
-0.11710688471794128,
0.18365226686000824,
0.16046655178070068,
0.19549381732940674,
-0.04644358903169632,
-0.04269392043352127,
0.24072901904582977,
-0.14497871696949005,
-0.2897656559944153,
0.5247570872306824,
-0.2106180042028427,
-0.09366396814584732,
0.25630730390548706,
0.07429583370685577,
-0.006666240282356739,
-0.43592482805252075,
0.2002313733100891,
0.22936102747917175,
0.2505165636539459,
-0.4348903298377991,
-0.23966243863105774,
-0.5395953059196472,
0.15251010656356812,
-0.2023015320301056,
-0.03930409252643585,
0.11880885064601898,
0.025944266468286514,
0.29675164818763733,
-0.3168102204799652,
-0.12531735002994537,
0.07272767275571823,
-0.19463445246219635,
0.2814544439315796,
0.09045291692018509,
-0.09544216841459274,
-0.01995975337922573,
0.24265500903129578,
-0.20317377150058746,
-0.005537030287086964,
0.019086524844169617,
-0.1287669539451599,
0.07330485433340073,
-0.36839979887008667,
-0.17602679133415222,
0.27142205834388733,
0.45465439558029175,
-0.010675879195332527,
0.15692900121212006,
-0.5877223610877991,
0.030809573829174042,
0.1449282467365265,
-0.06871555000543594,
0.24834074079990387,
0.06827675551176071,
0.381524920463562,
0.4842713475227356,
0.06955043226480484,
0.0023660140577703714,
0.21825218200683594,
0.1636323183774948,
0.32791900634765625,
-0.38597139716148376,
0.5891603231430054,
0.09341590851545334,
0.4714003801345825,
-0.2433212697505951,
-0.050340790301561356,
-0.0017931762849912047,
-0.09076123684644699,
-0.14495012164115906,
0.09983757883310318,
0.21865010261535645,
0.25736117362976074,
-0.11249333620071411,
-0.02094944566488266,
0.18045471608638763,
-0.17871566116809845,
-0.11130867898464203,
-0.3608382046222687,
0.22656579315662384,
-0.038688015192747116,
0.18143753707408905,
0.1555698812007904,
-0.013207221403717995,
-0.0337044931948185,
0.16456550359725952,
-0.09999675303697586,
-0.00647613313049078,
0.2545647919178009,
-0.0888240858912468,
0.11272317171096802,
0.4412615895271301,
-0.2111656218767166,
0.1293470412492752,
0.07443606108427048,
-0.10914301872253418,
-0.2172541618347168,
-0.009576654061675072,
0.02665080316364765,
-0.3440967798233032,
-0.11746600270271301,
0.24349810183048248,
-0.3380621671676636,
0.06317389756441116,
0.04157186299562454,
0.06054912135004997,
0.2659910023212433,
0.267656147480011,
0.21040208637714386,
-0.17640621960163116,
-0.12357968091964722,
-0.1606830358505249,
0.04692091792821884,
0.7568492293357849,
-0.101040780544281,
-0.15242519974708557,
-0.15447625517845154,
-0.34261399507522583,
0.3341277241706848,
0.28437742590904236,
0.035681191831827164,
0.2831251621246338,
-0.3132161796092987,
0.11707261949777603,
-0.07237547636032104,
-0.3900970220565796,
-0.012004694901406765,
0.32309043407440186,
-0.2881067991256714,
0.1007578894495964,
0.586154580116272,
0.10280140489339828,
0.0012940963497385383,
-0.23835229873657227,
0.009368603117763996,
-0.16937682032585144,
0.0935048758983612,
-0.05793880671262741,
-0.2075733095407486,
-0.18307046592235565,
-0.01575937494635582,
0.1808307021856308,
-0.10682213306427002,
-0.2202102541923523,
-0.04643085226416588,
0.005319737363606691,
0.34380418062210083,
-0.10566738992929459,
0.001456886762753129,
0.22164563834667206,
0.20442645251750946,
-0.13549506664276123,
-0.12591813504695892,
-0.1356043964624405,
-0.38639596104621887,
-0.047721296548843384,
-0.08313142508268356,
0.05287060886621475,
-0.4278619885444641,
-0.5052874684333801,
0.08258907496929169,
0.0003731034812517464,
-0.18546709418296814,
-0.22811110317707062,
0.1308967024087906,
0.003577933646738529,
-0.21276283264160156,
-0.10323122888803482,
-0.24435478448867798,
0.32790690660476685,
-0.09351459890604019,
0.22454549372196198,
-0.33848434686660767,
-0.33949553966522217,
0.09674050658941269,
-0.12398700416088104,
0.308079332113266,
0.08801574259996414,
0.33764174580574036,
0.023552007973194122,
0.23049387335777283,
0.27996689081192017,
-0.022796781733632088,
0.6912986040115356,
0.09087826311588287,
0.3066886365413666,
0.051868267357349396,
0.10615706443786621,
0.12134450674057007,
-0.09176354855298996,
-0.20698456466197968,
-0.04157218337059021,
0.01728871464729309,
0.34558048844337463,
0.09090140461921692,
0.029907722026109695,
-0.21135151386260986,
-0.042398303747177124,
-0.12061087787151337,
-0.07281235605478287,
-0.1242455542087555,
-0.5477367043495178,
0.33088430762290955,
0.05193148925900459,
0.060607779771089554,
0.2649482190608978,
0.039469268172979355,
0.33601823449134827,
0.4038294553756714,
-0.21072953939437866,
0.1244596540927887,
0.08450072258710861,
0.015938209369778633,
0.04634084925055504,
0.175711989402771,
0.15417684614658356,
0.14224866032600403,
0.3217688798904419,
0.049524351954460144,
0.23993080854415894,
0.22445254027843475,
-0.20688746869564056,
0.23462919890880585,
0.01244877278804779,
-0.19780202209949493,
-0.04437337443232536,
-0.206325501203537,
-0.2044220119714737,
-0.1408560574054718,
-0.1601753532886505,
-0.34298816323280334,
0.2901279926300049,
-0.3985345959663391,
0.0035828498657792807,
-0.3858214020729065,
-0.2859238386154175,
-0.1935078650712967,
0.08093655854463577,
0.08048254251480103,
-0.29558178782463074,
0.2598418891429901,
-0.09686470776796341,
-0.3056235909461975,
0.20366020500659943,
-0.1606086790561676,
0.06065716594457626,
0.11277446150779724,
0.12309478223323822,
-0.18396489322185516,
0.10992930084466934,
-0.03641849756240845,
0.08533035218715668,
0.07215703278779984,
-0.07068341225385666,
0.4171563684940338,
-0.12392084300518036,
-0.05362417548894882,
-0.19751614332199097,
-0.22427673637866974,
-0.032281503081321716,
-0.20841112732887268,
0.02988632582128048,
0.2623632848262787,
0.0961005687713623,
0.14628879725933075,
-0.053973693400621414,
-0.3215295970439911,
0.029573755338788033,
0.14257681369781494,
-0.030725326389074326,
-0.15383675694465637,
0.060168977826833725,
-0.16859254240989685,
-0.3298374116420746,
-0.2052047848701477,
-0.24791289865970612,
0.10571955889463425,
-0.02582423947751522,
0.09145334362983704,
0.32111379504203796,
-0.1065983921289444,
0.15683072805404663,
-0.36612531542778015,
0.3012654781341553,
-0.028612609952688217,
-0.2743658721446991,
0.23136116564273834,
0.0794462338089943,
-0.013722329400479794,
0.006579357199370861,
0.0003356648376211524,
-0.30407050251960754,
-0.25606676936149597,
-0.5025675892829895,
-0.10283788293600082,
-0.4806153476238251,
-0.0817897841334343,
-0.11250752210617065,
0.1075822189450264,
0.25453129410743713,
0.28325510025024414,
-0.20986251533031464,
0.06348732858896255,
0.103288933634758,
-0.0417315773665905,
-0.4492863714694977,
0.19218537211418152,
-0.22490337491035461,
0.257449746131897,
0.17162196338176727,
0.24377873539924622,
0.6294999718666077,
0.07638129591941833,
-0.06252583116292953,
-0.06628619879484177,
0.5207741260528564,
-0.027509178966283798,
-0.2754187285900116,
-0.06888837367296219,
0.23398159444332123,
-0.2732107639312744,
0.0331292562186718,
0.028368111699819565,
0.31332913041114807,
0.03144919127225876,
-0.07863828539848328,
0.11964604258537292,
-0.3498457670211792,
-0.03247847408056259,
0.1352701485157013,
-0.12618674337863922,
-0.19916057586669922,
0.27581506967544556,
0.08508661389350891,
-0.12635119259357452,
-0.01749618723988533,
0.35851025581359863,
0.18474739789962769,
-0.01999206468462944,
-0.29381704330444336,
0.19610469043254852,
-0.6184142231941223,
0.21718350052833557,
-0.18617913126945496,
-0.17569489777088165,
-0.2718883156776428,
-0.21144142746925354,
0.05548504739999771,
0.35621118545532227,
0.22291365265846252,
-0.14500069618225098,
0.19608163833618164,
0.0035948955919593573,
0.10362601280212402,
-0.23645657300949097,
0.0014579447451978922,
-0.3731634020805359,
0.2473725825548172,
0.5612377524375916,
0.21653923392295837,
-0.17433372139930725,
-0.22768162190914154,
0.2084888517856598,
0.22374767065048218,
0.05358847603201866,
-0.3068564236164093,
-0.2949364185333252,
-0.14525100588798523,
-0.33265236020088196,
0.08715733885765076,
0.18666401505470276,
-0.034314535558223724,
-0.266241192817688,
-0.054618626832962036,
0.2502056360244751,
-0.23603571951389313,
0.4416199028491974,
-0.25121960043907166,
0.16261564195156097,
0.046506449580192566,
0.21306505799293518,
0.05702931433916092,
0.07404829561710358,
0.19040650129318237,
0.4802781045436859,
0.09432949870824814,
-0.21194927394390106,
-0.1666480451822281,
-0.029910868033766747,
0.20812378823757172,
0.4218240976333618,
-0.2831210792064667,
0.20686188340187073,
0.22845414280891418,
0.4665275514125824,
-0.20720750093460083,
0.07177648693323135,
0.24876554310321808,
0.0010953571181744337,
-0.26261717081069946,
-0.023935584351420403,
0.286835640668869,
0.3003084361553192,
-0.13520385324954987,
0.3484821617603302,
0.22361159324645996,
-0.3694554567337036,
0.03694094717502594,
0.006766740698367357,
0.8249832987785339,
-0.11589138954877853,
0.1240961104631424,
0.03408998250961304,
-0.23638585209846497,
0.4835709035396576,
0.1011439636349678,
-0.07393363118171692,
-0.18161635100841522,
-0.24031078815460205,
0.18366245925426483,
-0.04529570788145065,
0.22296196222305298,
-0.22613734006881714,
-0.10830408334732056,
0.23677761852741241,
-0.5038367509841919,
-0.0548337921500206,
-0.3217778503894806,
0.5082200765609741,
-0.4011693000793457,
-0.12093379348516464,
-0.14829833805561066,
0.10567262023687363,
-0.09436938911676407,
0.20239554345607758,
-0.015599525533616543,
-0.12456292659044266,
0.30615532398223877,
-0.17721045017242432,
-0.19292090833187103,
-0.16829606890678406,
0.1928417682647705,
-0.008725419640541077,
-0.2535122334957123,
-0.06765234470367432,
-0.021643707528710365,
0.18624922633171082,
0.23381029069423676,
0.39838510751724243,
-0.07481452822685242,
-0.11492493003606796,
0.03965325281023979,
0.15706509351730347,
0.017079675570130348,
0.02755599468946457,
0.39776545763015747,
0.08577468246221542,
-0.2672390937805176,
0.06582137197256088,
0.18035157024860382,
-0.17076992988586426,
-0.22676639258861542,
-0.17777588963508606,
-0.08322612941265106,
-0.2662021815776825,
0.1297420710325241,
0.09296108782291412,
-0.20659925043582916,
0.08400851488113403,
0.1887383759021759,
0.4445771872997284,
-0.021629303693771362,
0.1824273020029068,
-0.054838042706251144,
-0.4765106439590454,
-0.3952399492263794,
0.5040404200553894,
0.15104423463344574,
-0.12668119370937347,
0.5556844472885132,
0.25041455030441284,
-0.38119038939476013,
-0.3552459180355072,
0.11119700968265533,
0.3435366749763489,
-0.0773276537656784,
0.06631976366043091,
0.2360493689775467,
0.08890128880739212,
0.08911798149347305,
-0.17126226425170898,
0.04185347631573677,
-0.037687405943870544,
-0.04166511818766594,
-0.15878577530384064,
-0.6313868761062622,
0.20760086178779602,
-0.20953083038330078,
0.2792850732803345,
-0.11715896427631378,
-0.00320892664603889,
-0.05828706920146942,
0.06908874213695526,
-0.37415194511413574,
-0.27776631712913513,
0.051576681435108185,
-0.16631802916526794,
0.25836360454559326,
0.04899415373802185,
0.3095759153366089,
-0.05681459605693817,
0.1622137427330017,
-0.12771624326705933,
-0.2946116328239441,
-0.2139984518289566,
0.03178594633936882,
0.06225186958909035,
-0.3852059245109558,
0.0340215228497982,
-0.009654519148170948,
-0.19074715673923492,
0.0100175766274333,
-0.08253263682126999,
0.28640127182006836,
0.5032944679260254,
0.24106667935848236,
0.3299828767776489,
-0.06502753496170044,
-0.17378836870193481,
0.09012394398450851,
-0.3782750070095062,
-0.07901991158723831,
-0.018916353583335876,
-0.10197822749614716,
-0.009223207831382751,
-0.08756082504987717,
0.0033160557504743338,
0.040034856647253036,
0.056919291615486145,
0.09824066609144211,
0.21176989376544952,
0.013917471282184124,
0.16335907578468323,
-0.14655107259750366,
0.43699201941490173,
0.39463379979133606,
0.050531625747680664,
-0.24575449526309967,
-0.22334852814674377,
-0.15812064707279205,
0.25089529156684875,
-0.11088267713785172,
-0.11318029463291168,
-0.10438091307878494,
0.3248169720172882,
-0.06886906921863556,
0.3823307156562805,
-0.19520515203475952,
-0.05377581715583801,
0.40824612975120544,
0.18217848241329193,
0.04270058125257492,
-0.3116481602191925,
0.10419081151485443,
-0.11056584119796753,
-0.24897468090057373,
-0.24023579061031342,
0.3837442696094513,
0.2099573165178299,
0.18747948110103607,
0.32552844285964966,
-0.2500392198562622,
0.48868733644485474,
-0.08363169431686401,
0.028243113309144974,
-0.12581175565719604,
-0.1916559636592865,
0.1283929944038391,
0.4202006459236145,
-0.34088465571403503,
-0.22570426762104034,
0.10944325476884842,
0.10030687600374222,
0.0910668596625328,
0.11645303666591644,
-0.05928777530789375,
0.02062658965587616,
-0.11056831479072571,
0.06520043313503265,
0.5272231698036194,
0.14695775508880615,
-0.0223202146589756,
-0.14547033607959747,
0.00021172562264837325,
-0.15075106918811798,
0.0020219627767801285,
0.06916047632694244,
-0.07585465908050537,
-0.0888667032122612,
0.39560335874557495,
-0.15754251182079315,
0.5541141629219055,
-0.2218865603208542,
-0.16205312311649323,
0.025440316647291183,
0.1349114626646042,
0.254504919052124,
0.23124505579471588,
0.6053714156150818,
0.32167500257492065,
0.2831225097179413,
0.2745071351528168,
-0.06131736561655998,
0.007472490891814232,
-0.0845501571893692,
0.4589727222919464,
-0.13633227348327637,
0.15566499531269073,
0.12653474509716034,
0.16852331161499023,
-0.1802564114332199,
0.16416990756988525,
0.07891616225242615,
-0.023204823955893517,
-0.19700926542282104,
0.5414173007011414,
0.1035408228635788,
-0.26830220222473145,
-0.2237725555896759,
0.05059336870908737,
-0.2667413651943207,
-0.1599794179201126,
0.38968607783317566,
0.10844520479440689,
0.07840023189783096,
-0.41514238715171814,
0.09780707210302353,
-0.1514095813035965,
0.0709744393825531,
0.2777140140533447,
-0.022612055763602257,
-0.3228418231010437,
0.2279043346643448,
-0.36445921659469604,
0.13530780375003815,
-0.04623900726437569,
-0.2501845955848694,
-0.11090260744094849,
-0.0260771494358778,
-0.14007237553596497,
0.24000413715839386,
0.3284686803817749,
-0.22729671001434326,
-0.05514511466026306,
-0.4129101037979126,
-0.11180507391691208,
-0.029240690171718597,
0.013212944380939007,
-0.052225325256586075,
0.06363783031702042,
-0.08375377953052521,
0.49174031615257263,
-0.5058593153953552,
0.1113726869225502,
-0.10336419194936752,
0.00787778664380312,
0.11511002480983734,
0.24922119081020355,
0.2712678015232086,
0.12121836841106415,
0.2057720124721527,
-0.1138906329870224,
-0.05247544124722481,
-0.32923078536987305,
0.03831934928894043,
-0.2527831792831421,
0.17102281749248505,
0.1203143522143364,
0.13783594965934753,
-0.33076557517051697,
-0.3593442142009735,
-0.2284504473209381,
0.42391905188560486,
-0.04584220051765442,
-0.211240753531456,
-0.040849559009075165,
0.09432997554540634,
0.23764541745185852,
0.01779913529753685,
0.014066426083445549,
0.15964294970035553,
0.09412858635187149,
0.2866961658000946,
-0.08308892697095871,
-0.6573037505149841,
0.5842889547348022,
-0.3260936439037323,
-0.08060770481824875,
0.021454812958836555,
0.6829888224601746,
0.25883084535598755,
-0.2425115406513214,
-0.67470782995224,
0.15404902398586273,
0.16017912328243256,
-0.18865984678268433,
0.008440831676125526,
0.43985605239868164,
-0.22759775817394257,
0.017100052908062935,
0.15933799743652344,
0.26726341247558594,
0.12336456030607224,
0.14502006769180298,
0.038427576422691345,
-0.3869267702102661
] |
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.07459472119808197,
-0.0315382294356823,
-0.05137261003255844,
0.13141867518424988,
0.2844702899456024,
0.21792884171009064,
0.26180797815322876,
0.4838852882385254,
0.05174579471349716,
-0.1740340143442154,
0.10809815675020218,
0.013671589083969593,
-0.4307381808757782,
-0.07917866110801697,
-0.15349827706813812,
0.18969467282295227,
0.08666591346263885,
-0.21382538974285126,
-0.26654478907585144,
-0.08118059486150742,
0.03430783003568649,
0.002908111782744527,
0.06775829941034317,
0.07365494966506958,
-0.876347005367279,
-0.15772591531276703,
0.1634814441204071,
0.0411980114877224,
-0.1345578134059906,
-0.395810604095459,
-0.11704098433256149,
0.21720178425312042,
0.1443832963705063,
0.22530531883239746,
-0.00011298512254143134,
-0.24672085046768188,
0.2506772577762604,
0.09044919162988663,
-0.350625604391098,
0.37973740696907043,
-0.07835989445447922,
-0.48081913590431213,
0.2577618956565857,
-0.09239570796489716,
0.11044930666685104,
-0.59847092628479,
0.1523713767528534,
-0.5589937567710876,
0.23843131959438324,
0.27187877893447876,
0.18342602252960205,
0.15160785615444183,
0.05475307255983353,
0.08271822333335876,
0.15967194736003876,
0.3057551085948944,
0.051739394664764404,
0.020801981911063194,
0.30771899223327637,
-0.12238315492868423,
-0.28753170371055603,
0.44295406341552734,
-0.15400376915931702,
-0.14649227261543274,
0.3328668475151062,
-0.02424805797636509,
-0.05486467853188515,
-0.3220508098602295,
0.20324572920799255,
0.3037862479686737,
0.25300565361976624,
-0.42617636919021606,
-0.3371688425540924,
-0.6361051201820374,
0.14879967272281647,
-0.1059594601392746,
-0.07728437334299088,
0.12713658809661865,
-0.02513112686574459,
0.31213679909706116,
-0.1953437328338623,
-0.17197826504707336,
0.12325672805309296,
-0.22169679403305054,
0.2597741186618805,
-0.0053376853466033936,
-0.06399551033973694,
-0.02704525925219059,
0.32661929726600647,
-0.14457567036151886,
-0.03019660897552967,
0.03247616067528725,
-0.13136784732341766,
-0.04204363003373146,
-0.42769742012023926,
-0.07212518900632858,
0.3259888291358948,
0.39037400484085083,
0.007360559422522783,
0.1643509864807129,
-0.5164463520050049,
0.05009261146187782,
0.12685246765613556,
-0.13934235274791718,
0.3606736958026886,
0.08566806465387344,
0.26586973667144775,
0.5355188250541687,
0.011528495699167252,
-0.07766079157590866,
0.1887795627117157,
0.1849958747625351,
0.352862685918808,
-0.41278207302093506,
0.6333895921707153,
-0.043909359723329544,
0.38816574215888977,
-0.183270663022995,
-0.05608835816383362,
0.07869533449411392,
-0.14617827534675598,
-0.07090076804161072,
0.13230347633361816,
0.11573023349046707,
0.18939043581485748,
-0.11162901669740677,
-0.032627832144498825,
0.2161400467157364,
-0.18187054991722107,
-0.09525112807750702,
-0.2570808231830597,
0.2912869155406952,
-0.061974070966243744,
0.2372441589832306,
0.13155151903629303,
-0.0919228196144104,
-0.12034270912408829,
0.1508067548274994,
-0.19845259189605713,
-0.14331316947937012,
0.14493241906166077,
-0.09184367954730988,
0.05440999194979668,
0.2532409131526947,
-0.1634286493062973,
0.15832000970840454,
0.10938505083322525,
-0.09304329007863998,
-0.21321137249469757,
-0.15707287192344666,
-0.0029685073532164097,
-0.4197723865509033,
-0.15087483823299408,
0.17698514461517334,
-0.36092960834503174,
0.12281633913516998,
0.057331450283527374,
0.038268327713012695,
0.20154419541358948,
0.21921296417713165,
0.1270129531621933,
-0.18742968142032623,
0.04740159586071968,
-0.09192631393671036,
0.06884784996509552,
0.8149482011795044,
-0.13385118544101715,
-0.11494239419698715,
-0.1992357224225998,
-0.24956005811691284,
0.21149583160877228,
0.3670789301395416,
0.08831185847520828,
0.45359542965888977,
-0.27581101655960083,
0.12758736312389374,
-0.13108552992343903,
-0.3799789249897003,
-0.05293816700577736,
0.2603462338447571,
-0.3433251976966858,
0.1315961629152298,
0.5908985733985901,
0.17577147483825684,
0.09650127589702606,
-0.15540048480033875,
0.19577836990356445,
-0.19101430475711823,
0.12595315277576447,
-0.14103344082832336,
-0.1325223445892334,
-0.10777395963668823,
-0.14863590896129608,
0.2916972041130066,
-0.1531311422586441,
-0.3589285612106323,
0.05633945390582085,
0.15256506204605103,
0.2883659601211548,
-0.17124855518341064,
-0.058198537677526474,
0.3116379380226135,
0.1786784529685974,
0.026766614988446236,
-0.17985178530216217,
-0.10121883451938629,
-0.34045860171318054,
-0.05301504209637642,
-0.12267322838306427,
-0.03831213340163231,
-0.4733017385005951,
-0.38945409655570984,
0.07731415331363678,
0.08421171456575394,
-0.14817312359809875,
-0.1231575757265091,
0.08246277272701263,
0.16497494280338287,
-0.2223932296037674,
-0.11057321727275848,
-0.17339561879634857,
0.5379338264465332,
-0.22868530452251434,
0.20636361837387085,
-0.3914618194103241,
-0.3222677409648895,
0.1621660739183426,
-0.20507870614528656,
0.3768683075904846,
0.2321704924106598,
0.1237572506070137,
-0.04487186297774315,
0.3035077452659607,
0.29356950521469116,
0.11051906645298004,
0.7735792994499207,
0.15060211718082428,
0.2828677296638489,
0.04505159705877304,
0.037111327052116394,
0.05590882897377014,
-0.10277123004198074,
-0.20857560634613037,
-0.062285613268613815,
-0.11439429968595505,
0.2769281566143036,
0.06412015855312347,
0.013107412494719028,
-0.19275370240211487,
0.017503734678030014,
-0.060406457632780075,
-0.04796696454286575,
-0.15715362131595612,
-0.46947532892227173,
0.3884258568286896,
0.03541944548487663,
0.15134401619434357,
0.30736374855041504,
0.09335930645465851,
0.270984947681427,
0.3807002604007721,
-0.32041090726852417,
0.21586722135543823,
0.1895168274641037,
-0.03378979489207268,
-0.053242865949869156,
0.09269364923238754,
0.1728963702917099,
0.1485685557126999,
0.2563014328479767,
0.0606384314596653,
0.2134082019329071,
0.27053967118263245,
-0.15009810030460358,
0.20709705352783203,
-0.0006092177936807275,
-0.23615798354148865,
-0.03108375146985054,
-0.1758466362953186,
-0.10369283705949783,
-0.09507091343402863,
-0.1284276843070984,
-0.3363710045814514,
0.3529497981071472,
-0.46242544054985046,
0.06963130086660385,
-0.43495458364486694,
-0.11109066754579544,
-0.2090231329202652,
0.22916120290756226,
0.06480227410793304,
-0.451311856508255,
0.1271873414516449,
-0.027210496366024017,
-0.23790183663368225,
0.05698015168309212,
-0.06790803372859955,
0.08434925973415375,
0.2101684808731079,
0.017513569444417953,
-0.08165757358074188,
-0.08848047256469727,
-0.10318874567747116,
0.008628016337752342,
0.14402763545513153,
-0.02047451213002205,
0.3767581284046173,
-0.1795291155576706,
0.030474096536636353,
-0.26233214139938354,
-0.2368260622024536,
-0.031989067792892456,
-0.11962100863456726,
0.11115078628063202,
0.3146393597126007,
0.11304762214422226,
0.09803147614002228,
-0.10441841930150986,
-0.33483895659446716,
0.07842697203159332,
0.15604497492313385,
0.054100293666124344,
-0.25346460938453674,
-0.054904039949178696,
0.0237655621021986,
-0.2233610600233078,
-0.2945466935634613,
-0.2709878385066986,
0.26209309697151184,
-0.050708964467048645,
0.025470132008194923,
0.3799556493759155,
-0.08197525143623352,
0.25853869318962097,
-0.4855404198169708,
0.47204381227493286,
0.03245342895388603,
-0.19486932456493378,
0.24672451615333557,
0.15711860358715057,
-0.018104827031493187,
-0.025026924908161163,
0.0343119278550148,
-0.36092787981033325,
-0.19471611082553864,
-0.5805237889289856,
-0.06692538410425186,
-0.41844916343688965,
-0.07790976762771606,
-0.05495328828692436,
0.19386142492294312,
0.19248968362808228,
0.2107669562101364,
-0.14804717898368835,
0.16881698369979858,
0.05953190103173256,
0.014063773676753044,
-0.3548663556575775,
0.1852610856294632,
-0.24606454372406006,
0.1779496818780899,
0.264387845993042,
0.18771205842494965,
0.7277331948280334,
0.03530377149581909,
-0.041842132806777954,
-0.12230570614337921,
0.6265460252761841,
-0.10646368563175201,
-0.33339130878448486,
-0.034391194581985474,
0.13796046376228333,
-0.262751042842865,
0.029382267966866493,
0.09896034747362137,
0.43340739607810974,
0.0009441582369618118,
-0.14642874896526337,
0.037794195115566254,
-0.5074546337127686,
0.05417442321777344,
0.17588788270950317,
0.03158227726817131,
-0.20654624700546265,
0.3023805618286133,
0.03839864954352379,
-0.17403192818164825,
0.058388859033584595,
0.3313590884208679,
0.19770438969135284,
0.001887624617666006,
-0.2859823405742645,
0.19398744404315948,
-0.47525453567504883,
0.31707069277763367,
-0.18663738667964935,
-0.05709109082818031,
-0.3711288571357727,
-0.17165304720401764,
-0.02792988531291485,
0.28965482115745544,
0.11757401376962662,
-0.013752661645412445,
0.10209418833255768,
-0.1267562061548233,
0.14491023123264313,
-0.3711966276168823,
0.018353160470724106,
-0.3257526755332947,
0.18763545155525208,
0.5697373151779175,
0.2430306226015091,
-0.2658624053001404,
-0.028630642220377922,
0.045128874480724335,
0.2988792061805725,
-0.025916708633303642,
-0.2542486786842346,
-0.01487052533775568,
-0.21852126717567444,
-0.287565141916275,
0.014141635969281197,
0.05021927133202553,
0.032784514129161835,
0.11819269508123398,
-0.046640586107969284,
0.2007249891757965,
-0.24781231582164764,
0.43090105056762695,
-0.287056565284729,
0.22009222209453583,
-0.010967903770506382,
0.13722606003284454,
0.005460137967020273,
0.0665271058678627,
0.21362881362438202,
0.3995424509048462,
0.0992329865694046,
-0.16748522222042084,
-0.12569157779216766,
-0.10755307972431183,
0.19438618421554565,
0.475928395986557,
-0.2531185746192932,
0.11031245440244675,
0.25239822268486023,
0.3625326156616211,
-0.25907155871391296,
0.1302039474248886,
0.30830639600753784,
0.05625798553228378,
-0.2572050988674164,
-0.07837311178445816,
0.17770449817180634,
0.37568971514701843,
-0.05667341127991676,
0.34775784611701965,
0.28917473554611206,
-0.3465957045555115,
0.04006987810134888,
0.050316888839006424,
0.8999297618865967,
-0.09250271320343018,
0.11473731696605682,
0.1190011203289032,
-0.2670390009880066,
0.5149238705635071,
0.015337898395955563,
-0.1342633068561554,
-0.08837419748306274,
-0.23098015785217285,
0.21347646415233612,
-0.12057975679636002,
0.2270933985710144,
-0.20720313489437103,
-0.04721758887171745,
0.18169312179088593,
-0.5165399312973022,
-0.15731386840343475,
-0.331808865070343,
0.5256662964820862,
-0.48855090141296387,
-0.2017858475446701,
-0.22656279802322388,
0.09994832426309586,
-0.12947233021259308,
0.08254922926425934,
0.01323726400732994,
-0.11969003826379776,
0.33832401037216187,
-0.10663260519504547,
-0.353463739156723,
-0.24319277703762054,
0.22967377305030823,
-0.06424245983362198,
-0.17783181369304657,
0.005114148836582899,
-0.09523498266935349,
0.08437222987413406,
0.18775804340839386,
0.4290837347507477,
-0.003918531816452742,
-0.08739057183265686,
-0.04801921918988228,
0.1664818674325943,
0.14776423573493958,
-0.07885189354419708,
0.46678245067596436,
0.12068439275026321,
-0.14232678711414337,
0.043677520006895065,
0.1445869654417038,
-0.2751356065273285,
-0.1225845217704773,
-0.21056266129016876,
-0.11631716787815094,
-0.17386482656002045,
0.054822955280542374,
0.12700052559375763,
-0.3204525113105774,
0.16296908259391785,
0.15372402966022491,
0.5195235013961792,
-0.07847602665424347,
0.22953541576862335,
-0.3311518728733063,
-0.4457039535045624,
-0.3362947404384613,
0.4338268041610718,
-0.023904340341687202,
-0.17914633452892303,
0.5448353290557861,
0.34143006801605225,
-0.3074028789997101,
-0.27034565806388855,
0.22223415970802307,
0.4122689664363861,
-0.11888040602207184,
-0.012039804831147194,
0.12023980915546417,
0.11678031086921692,
0.13986648619174957,
-0.18416479229927063,
0.24816054105758667,
-0.04164416342973709,
-0.031137989833950996,
-0.2110670655965805,
-0.5866548418998718,
0.22378870844841003,
-0.07959064096212387,
0.27559152245521545,
-0.042828235775232315,
-0.03583921864628792,
-0.14548133313655853,
0.16870206594467163,
-0.31603142619132996,
-0.3670799732208252,
0.04134501516819,
-0.11664341390132904,
0.383486270904541,
-0.10878615081310272,
0.25679880380630493,
-0.15507198870182037,
0.1498798429965973,
-0.08771500736474991,
-0.23344510793685913,
-0.15530821681022644,
-0.04794017970561981,
0.06707793474197388,
-0.297194242477417,
0.08072348684072495,
0.023492248728871346,
-0.3290576636791229,
0.02545967698097229,
-0.20642977952957153,
0.1208832636475563,
0.5310448408126831,
0.169332355260849,
0.10674045234918594,
-0.1382100135087967,
-0.10640709847211838,
0.06110818684101105,
-0.41757872700691223,
-0.04769797995686531,
0.03171972185373306,
-0.010250021703541279,
-0.042482346296310425,
-0.08301957696676254,
-0.011373291723430157,
-0.1795104593038559,
0.2315695434808731,
0.2190895974636078,
0.07272602617740631,
0.0272211991250515,
0.18469761312007904,
-0.1117708757519722,
0.43013495206832886,
0.44896867871284485,
0.10831201821565628,
-0.16536521911621094,
-0.13481636345386505,
-0.13610675930976868,
0.16622596979141235,
-0.015243219211697578,
-0.1649349331855774,
-0.17682352662086487,
0.2942752242088318,
-0.1706874519586563,
0.3220430016517639,
-0.14764036238193512,
-0.11591316014528275,
0.2302759736776352,
0.16601528227329254,
0.08980119973421097,
-0.26177871227264404,
0.18572820723056793,
-0.00859556719660759,
-0.2405257225036621,
-0.21373677253723145,
0.305232435464859,
0.20499606430530548,
0.1911841630935669,
0.34574225544929504,
-0.3534468114376068,
0.40510737895965576,
-0.16047097742557526,
0.03632957115769386,
0.03165898844599724,
-0.1978999525308609,
0.20811046659946442,
0.44160008430480957,
-0.18586990237236023,
-0.0913226306438446,
-0.010176082141697407,
0.12988707423210144,
-0.051971226930618286,
0.18386194109916687,
-0.1689811795949936,
0.160325288772583,
-0.088748037815094,
0.13979800045490265,
0.5731913447380066,
0.1216399073600769,
-0.026440132409334183,
-0.08529173582792282,
0.00828662421554327,
-0.21317628026008606,
-0.11582661420106888,
0.1446964293718338,
-0.12492842227220535,
-0.17002516984939575,
0.2997603118419647,
-0.22380593419075012,
0.5274555087089539,
-0.29278498888015747,
-0.16642636060714722,
0.07054091989994049,
0.0523047149181366,
0.24411062896251678,
0.20154976844787598,
0.6094143986701965,
0.27622148394584656,
0.2836940884590149,
0.38102811574935913,
-0.055657561868429184,
0.0009150354890152812,
-0.08819672465324402,
0.39486780762672424,
-0.20489293336868286,
0.021859033033251762,
0.11504221707582474,
0.16657337546348572,
-0.184494286775589,
0.12796416878700256,
-0.02173650451004505,
0.08725032955408096,
-0.26149728894233704,
0.5596352219581604,
0.07698459923267365,
-0.1684877723455429,
-0.20723922550678253,
0.1250964105129242,
-0.2793925106525421,
-0.292464017868042,
0.43318504095077515,
0.17715610563755035,
0.04257442429661751,
-0.3949584662914276,
0.07022545486688614,
-0.1825057566165924,
0.1641775667667389,
0.3775789737701416,
-0.10038699209690094,
-0.30241626501083374,
0.21739357709884644,
-0.3926458954811096,
0.07196977734565735,
-0.06926197558641434,
-0.3006954789161682,
-0.045073315501213074,
-0.054090775549411774,
-0.08683586120605469,
0.27865517139434814,
0.26914235949516296,
-0.27314403653144836,
-0.12384425103664398,
-0.3865247964859009,
-0.07904993742704391,
-0.017107123509049416,
0.16888466477394104,
-0.07702063024044037,
0.0011853242758661509,
-0.01583227328956127,
0.5374282002449036,
-0.5230344533920288,
0.10718187689781189,
-0.02570820413529873,
-0.06058543547987938,
0.009845978580415249,
0.2962518334388733,
0.20231962203979492,
0.09592726081609726,
0.18490664660930634,
-0.07118380814790726,
-0.1287650316953659,
-0.4769379794597626,
-0.006059141363948584,
-0.19871702790260315,
0.21487519145011902,
0.02232515439391136,
0.15596890449523926,
-0.27972209453582764,
-0.45306140184402466,
-0.28878283500671387,
0.45501595735549927,
-0.007268231362104416,
-0.3219815194606781,
-0.07488373667001724,
0.02247949317097664,
0.13118597865104675,
0.09523647278547287,
0.24878467619419098,
0.21881301701068878,
0.13110032677650452,
0.31628522276878357,
-0.10643928498029709,
-0.5914747714996338,
0.40444615483283997,
-0.4396301805973053,
-0.04492291435599327,
0.05108879506587982,
0.6391758322715759,
0.21683275699615479,
-0.2373138964176178,
-0.4576912820339203,
0.13112148642539978,
0.16097351908683777,
-0.20208221673965454,
0.04108595475554466,
0.3844132125377655,
-0.20666833221912384,
-0.002924577333033085,
0.1318027675151825,
0.19156989455223083,
0.17707005143165588,
0.062467269599437714,
0.05416390299797058,
-0.3314644396305084
] |
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.38419976830482483,
-0.12105771154165268,
-0.07823020964860916,
0.12130743265151978,
0.30270513892173767,
0.018521249294281006,
0.19532477855682373,
0.3992021679878235,
0.20924702286720276,
-0.0036375520285218954,
0.08699458837509155,
0.22929999232292175,
-0.37979376316070557,
-0.054308418184518814,
-0.19467222690582275,
0.1247083991765976,
0.0595853365957737,
-0.012090682983398438,
-0.2965025305747986,
-0.054844923317432404,
-0.004757996648550034,
0.17238083481788635,
-0.042692605406045914,
-0.04222617298364639,
-0.6513234972953796,
-0.07132206857204437,
0.22961847484111786,
0.09828010201454163,
-0.31772875785827637,
-0.5122999548912048,
0.0021847060415893793,
0.3213408291339874,
0.09339653700590134,
0.3480684757232666,
-0.00011145610187668353,
-0.2008076310157776,
0.38504981994628906,
0.08131497353315353,
-0.38742688298225403,
0.1584530621767044,
-0.12737442553043365,
-0.6889060139656067,
0.3180125653743744,
-0.1518697887659073,
-0.013295846059918404,
-0.39146602153778076,
0.17411725223064423,
-0.42286252975463867,
0.32767242193222046,
0.22036439180374146,
0.23729176819324493,
0.2560481131076813,
0.19507279992103577,
-0.06566761434078217,
0.16965492069721222,
0.12763383984565735,
-0.12576952576637268,
0.06135132163763046,
0.39562878012657166,
0.021629365161061287,
-0.2153387814760208,
0.48118719458580017,
-0.21724383533000946,
-0.018227841705083847,
0.15973825752735138,
0.06849094480276108,
-0.19424085319042206,
-0.28865253925323486,
0.2093300074338913,
0.3352792263031006,
0.29716023802757263,
-0.41653138399124146,
-0.4168943166732788,
-0.4985819160938263,
0.10360592603683472,
-0.14005397260189056,
0.012078361585736275,
0.03996707499027252,
-0.043275512754917145,
0.2632350027561188,
-0.23672719299793243,
-0.22746160626411438,
0.11784887313842773,
-0.0880378782749176,
0.3674975633621216,
0.015249385498464108,
-0.12001446634531021,
-0.06434302031993866,
0.3860507905483246,
-0.19223840534687042,
-0.08389823138713837,
0.23202289640903473,
-0.16486972570419312,
-0.08488091826438904,
-0.3075757622718811,
-0.005968187004327774,
0.26175761222839355,
0.5459190607070923,
0.017349164932966232,
0.23180444538593292,
-0.4413791000843048,
0.11973995715379715,
0.17550894618034363,
-0.07728283107280731,
0.12950171530246735,
0.09514855593442917,
0.28779926896095276,
0.42779526114463806,
0.1300465315580368,
0.11008696258068085,
0.06668931245803833,
0.06800905615091324,
0.36308690905570984,
-0.40809816122055054,
0.48650887608528137,
0.00968855433166027,
0.4269077181816101,
-0.2582692801952362,
0.013898526318371296,
0.011720963753759861,
0.02111399546265602,
-0.14056532084941864,
0.0885048434138298,
0.32367804646492004,
0.038958046585321426,
-0.10449891537427902,
0.032559894025325775,
0.14725029468536377,
-0.31505683064460754,
-0.012561910785734653,
-0.2725065052509308,
0.18322670459747314,
-0.10483300685882568,
0.1756090670824051,
0.18361328542232513,
-0.1565755009651184,
0.2222394496202469,
0.28060996532440186,
-0.04704482853412628,
-0.010980366729199886,
0.08083166182041168,
0.05557306483387947,
-0.036444470286369324,
0.3621892035007477,
-0.11343017965555191,
0.1094328761100769,
-0.004140929318964481,
-0.12164228409528732,
-0.16174525022506714,
-0.09085297584533691,
0.02002592384815216,
-0.3312016725540161,
-0.22646336257457733,
0.18025973439216614,
-0.3200682997703552,
0.0009692472522147,
0.12560199201107025,
0.04056251049041748,
0.17517951130867004,
0.01968269608914852,
0.11856082826852798,
-0.2449587732553482,
0.02201397903263569,
-0.1212945505976677,
0.18917874991893768,
0.7124806642532349,
-0.11605449765920639,
-0.1059548631310463,
-0.2146630734205246,
-0.2846238911151886,
0.1850443184375763,
0.2023048996925354,
0.07739654928445816,
0.1450677067041397,
-0.1617024838924408,
0.050768010318279266,
-0.0373738668859005,
-0.4824724793434143,
-0.2755783498287201,
0.15202930569648743,
-0.15363530814647675,
0.023589028045535088,
0.5440300703048706,
0.14840929210186005,
0.14242176711559296,
-0.06620362401008606,
-0.09974843263626099,
-0.2115708440542221,
0.19376863539218903,
-0.15890894830226898,
-0.18381547927856445,
-0.1617068350315094,
-0.19492532312870026,
0.18784333765506744,
-0.1351667195558548,
-0.24372921884059906,
0.05797503516077995,
0.2588111162185669,
0.2267560362815857,
-0.1032230406999588,
-0.1416475772857666,
0.37220436334609985,
0.32567423582077026,
0.124263234436512,
-0.14124196767807007,
-0.21584254503250122,
-0.4205310046672821,
0.023168770596385002,
-0.06521211564540863,
0.06385619193315506,
-0.3778138756752014,
-0.3627585768699646,
-0.05196119472384453,
0.07101539522409439,
-0.15085487067699432,
-0.20551225543022156,
0.10374583303928375,
0.1855558305978775,
-0.06404638290405273,
-0.008680308237671852,
-0.23169027268886566,
0.48919418454170227,
-0.1248556599020958,
0.235614612698555,
-0.4816488027572632,
-0.2807694971561432,
-0.02319374307990074,
-0.2656402289867401,
0.27483001351356506,
0.2632419168949127,
0.14869964122772217,
-0.02714473009109497,
0.17570455372333527,
0.3804515600204468,
0.029884861782193184,
0.6424683332443237,
-0.013993673026561737,
0.15700578689575195,
0.03260616958141327,
0.10463034361600876,
0.1406443864107132,
-0.12516602873802185,
-0.252187043428421,
0.030247649177908897,
-0.019706660881638527,
0.27084437012672424,
0.019018039107322693,
0.022034818306565285,
-0.14443843066692352,
-0.03262270614504814,
-0.03079061768949032,
-0.10973438620567322,
-0.12635312974452972,
-0.48373866081237793,
0.43766236305236816,
-0.02849794179201126,
0.22038301825523376,
0.19911843538284302,
-0.057332027703523636,
0.19227707386016846,
0.5509569048881531,
-0.1026848703622818,
0.21221525967121124,
0.15746615827083588,
0.006391142960637808,
0.06183890998363495,
0.1904495358467102,
0.17449447512626648,
0.20847134292125702,
0.3503149747848511,
0.011669621802866459,
0.20738457143306732,
0.11127325892448425,
-0.18604141473770142,
0.1864985078573227,
-0.050921205431222916,
-0.3102293610572815,
0.035619352012872696,
-0.19389890134334564,
-0.17168329656124115,
-0.22919949889183044,
-0.06392847746610641,
-0.4013713300228119,
0.3197183907032013,
-0.34619519114494324,
-0.08563260734081268,
-0.49440017342567444,
-0.045921068638563156,
-0.1702401340007782,
-0.005961204878985882,
0.00871395692229271,
-0.35493600368499756,
0.22532035410404205,
0.0546034537255764,
-0.15080426633358002,
0.20467904210090637,
-0.03111741505563259,
-0.09795372933149338,
0.06765184551477432,
0.04171614721417427,
-0.188626229763031,
-0.01651030033826828,
-0.14421050250530243,
0.025931689888238907,
0.09925423562526703,
0.011596135795116425,
0.3698413074016571,
-0.18252204358577728,
0.007197750732302666,
-0.2161288559436798,
-0.3328985273838043,
-0.086497962474823,
-0.3166128396987915,
0.22263941168785095,
0.34510037302970886,
0.21870017051696777,
0.11864812672138214,
-0.07335308939218521,
-0.09377879649400711,
-0.026398252695798874,
0.03523361310362816,
-0.06868203729391098,
-0.15681038796901703,
-0.056035540997982025,
-0.10928716510534286,
-0.44986894726753235,
-0.29631346464157104,
-0.4060603976249695,
0.33380937576293945,
-0.0031318210531026125,
0.08612292259931564,
0.313459187746048,
0.07368601113557816,
0.26790177822113037,
-0.4539489448070526,
0.4992469549179077,
0.0025510082487016916,
-0.20840981602668762,
0.24329949915409088,
0.02370399236679077,
-0.09458909928798676,
-0.015725627541542053,
0.12617409229278564,
-0.20337419211864471,
-0.29799604415893555,
-0.4741601347923279,
-0.21524842083454132,
-0.4398394823074341,
0.04828694462776184,
-0.03939805179834366,
0.20682251453399658,
0.32079318165779114,
0.18732410669326782,
-0.19713342189788818,
-0.02051365002989769,
0.0013088611885905266,
-0.03307240083813667,
-0.3698880970478058,
0.20655520260334015,
-0.17432667315006256,
0.29022571444511414,
0.07092993706464767,
0.2890470027923584,
0.6024177670478821,
-0.009356880560517311,
0.05206277221441269,
-0.1885501891374588,
0.6065210700035095,
-0.21014058589935303,
-0.4003717303276062,
-0.14044557511806488,
0.14285385608673096,
-0.17765450477600098,
0.0030573741532862186,
0.07437475025653839,
0.40062546730041504,
-0.07586580514907837,
0.06227762624621391,
0.011047306470572948,
-0.44289126992225647,
-0.029437851160764694,
0.20068605244159698,
-0.08293421566486359,
-0.16949494183063507,
0.42230308055877686,
0.1286730319261551,
-0.1203923225402832,
0.07833681255578995,
0.29341256618499756,
-0.00038211545324884355,
-0.008782987482845783,
-0.22601334750652313,
0.09142909198999405,
-0.5675859451293945,
0.3230776786804199,
-0.18622665107250214,
-0.03586394339799881,
-0.3785841763019562,
-0.15631763637065887,
0.06760239601135254,
0.23893877863883972,
0.16447541117668152,
-0.1255967617034912,
0.03407326713204384,
-0.05933791399002075,
0.07168638706207275,
-0.3205619752407074,
0.040976326912641525,
-0.4133746027946472,
0.16802756488323212,
0.5538201332092285,
0.2187899649143219,
-0.4402216970920563,
-0.09633886069059372,
0.1497097611427307,
0.2032129317522049,
0.042494997382164,
-0.17795975506305695,
-0.23028938472270966,
-0.15409891307353973,
-0.39520376920700073,
0.11866343766450882,
0.08680559694766998,
0.01241232268512249,
-0.03901312127709389,
-0.06344615668058395,
0.19770827889442444,
-0.24588268995285034,
0.3211672306060791,
-0.1554303765296936,
0.27387940883636475,
-0.05062141641974449,
0.15283292531967163,
0.04397450387477875,
0.010364684276282787,
0.11421124637126923,
0.5003349781036377,
-0.12692223489284515,
-0.06732450425624847,
-0.219216987490654,
-0.0036706950049847364,
0.1662023514509201,
0.3981055021286011,
-0.21102559566497803,
0.11528933793306351,
0.3053017556667328,
0.4079306721687317,
-0.1593983918428421,
0.10656248033046722,
0.3676130473613739,
0.1567259579896927,
-0.19732750952243805,
-0.08052106201648712,
0.3228189945220947,
0.37464749813079834,
-0.08003146946430206,
0.3842603266239166,
0.2945851683616638,
-0.23954300582408905,
0.12314537167549133,
0.010688399896025658,
0.8338348865509033,
-0.05296626687049866,
0.06659867614507675,
0.09492353349924088,
-0.2706334590911865,
0.48829829692840576,
0.0560976006090641,
-0.17704197764396667,
-0.13286477327346802,
-0.19684596359729767,
0.18912836909294128,
0.02120242454111576,
0.22788105905056,
-0.3805389702320099,
-0.31884855031967163,
0.2096366137266159,
-0.3555580973625183,
-0.026558352634310722,
-0.37792906165122986,
0.47034090757369995,
-0.5139927268028259,
-0.1669333130121231,
-0.17790444195270538,
0.16172020137310028,
-0.10759036242961884,
0.21700894832611084,
-0.05180678889155388,
-0.14114099740982056,
0.20186926424503326,
-0.19706730544567108,
-0.5171790719032288,
-0.12228156626224518,
0.0933082327246666,
-0.04805314540863037,
-0.0954962968826294,
-0.1800892949104309,
-0.044267211109399796,
0.12786178290843964,
0.1890413761138916,
0.45621049404144287,
-0.15902477502822876,
0.039750028401613235,
-0.11588658392429352,
0.06008053570985794,
0.05545751005411148,
-0.030899211764335632,
0.3943157494068146,
0.06997367739677429,
-0.2352166771888733,
-0.05089974030852318,
0.06845744699239731,
-0.22785510122776031,
-0.06015130877494812,
-0.08725816011428833,
-0.11938255280256271,
-0.2786218822002411,
-0.029649462550878525,
0.10046205669641495,
-0.22918829321861267,
0.023648720234632492,
0.19058246910572052,
0.3519195318222046,
-0.007943762466311455,
0.3124553859233856,
-0.07208077609539032,
-0.43348702788352966,
-0.35174256563186646,
0.5259715914726257,
-0.041157908737659454,
-0.11521882563829422,
0.5203582048416138,
0.33076077699661255,
-0.37199774384498596,
-0.26829206943511963,
-0.0019069509580731392,
0.26981812715530396,
-0.2570613622665405,
0.05993792042136192,
0.19532634317874908,
0.01935235783457756,
0.3073071539402008,
-0.12090591341257095,
0.1388227492570877,
-0.11463316529989243,
-0.1912718117237091,
-0.20036615431308746,
-0.594734251499176,
0.25159314274787903,
-0.13418513536453247,
0.35780641436576843,
-0.050751399248838425,
-0.13880889117717743,
-0.010576734319329262,
0.1137615293264389,
-0.367840439081192,
-0.2975864112377167,
-0.03284546360373497,
-0.12451720982789993,
0.4510897397994995,
-0.09543963521718979,
0.3745184540748596,
-0.09781058877706528,
0.15546360611915588,
0.10996589064598083,
-0.3594212532043457,
-0.19136777520179749,
-0.014662137255072594,
0.07487458735704422,
-0.290698379278183,
0.16377398371696472,
-0.15430930256843567,
-0.2334355115890503,
0.08834989368915558,
-0.15573489665985107,
0.18954624235630035,
0.45218780636787415,
0.13265854120254517,
0.24878020584583282,
-0.1210600882768631,
0.04389066621661186,
0.20112387835979462,
-0.30457738041877747,
-0.07979514449834824,
-0.03376360237598419,
-0.007100149057805538,
-0.012931451201438904,
-0.007921167649328709,
0.027497423812747,
-0.06529206782579422,
0.11294520646333694,
0.2750236988067627,
0.09451278299093246,
0.0813542902469635,
0.1038772240281105,
-0.06388487666845322,
0.4160507023334503,
0.5061009526252747,
0.1523859053850174,
-0.0532417893409729,
-0.14625783264636993,
-0.019897213205695152,
0.23743999004364014,
-0.12750904262065887,
-0.08340468257665634,
-0.013637812808156013,
0.34744012355804443,
-0.06452521681785583,
0.2793576419353485,
-0.08073937147855759,
-0.06902878731489182,
0.3258933126926422,
0.2143794447183609,
0.17916958034038544,
-0.3216131329536438,
0.20397286117076874,
0.0435347706079483,
-0.19331978261470795,
-0.1793675720691681,
0.3450183868408203,
0.18382087349891663,
0.1449825018644333,
0.37706685066223145,
-0.31187736988067627,
0.527320384979248,
-0.1330571174621582,
0.15019424259662628,
-0.007830051705241203,
-0.12902191281318665,
0.0946427434682846,
0.24556738138198853,
-0.041873980313539505,
-0.10481400042772293,
-0.025421570986509323,
0.3819456696510315,
-0.12248581647872925,
0.1320408433675766,
-0.17503878474235535,
0.20137369632720947,
-0.1989213526248932,
-0.07819949090480804,
0.5095497369766235,
0.13464319705963135,
-0.04716802388429642,
-0.07380777597427368,
0.05452462658286095,
-0.14645206928253174,
0.05528843775391579,
0.1259676069021225,
-0.14589598774909973,
-0.3475179374217987,
0.23712244629859924,
-0.18742787837982178,
0.4338352382183075,
-0.1879197061061859,
0.03133617341518402,
0.09922797232866287,
-0.0288844034075737,
0.10708480328321457,
0.3526526689529419,
0.6822692155838013,
0.28547054529190063,
0.2022930234670639,
0.25407981872558594,
-0.10481034964323044,
0.02276505157351494,
-0.13092359900474548,
0.4743938446044922,
-0.1250685304403305,
0.13972629606723785,
0.13261447846889496,
0.16739606857299805,
-0.2666594386100769,
0.1741361767053604,
-0.09647278487682343,
0.057664208114147186,
-0.17895495891571045,
0.5616605877876282,
0.03978103771805763,
-0.24261119961738586,
-0.22398729622364044,
0.08672863990068436,
-0.3847680985927582,
-0.14596161246299744,
0.32301193475723267,
0.12465129047632217,
-0.0189330093562603,
-0.5199954509735107,
0.0988149419426918,
-0.0991552397608757,
0.23486855626106262,
0.3353748023509979,
0.004465288948267698,
-0.20478592813014984,
0.13039106130599976,
-0.5033676028251648,
0.02346482127904892,
-0.03977483883500099,
-0.2664717137813568,
-0.15722163021564484,
0.01975218951702118,
-0.19503672420978546,
0.2984103560447693,
0.3773128092288971,
-0.31385061144828796,
0.05019352585077286,
-0.24269409477710724,
-0.19934450089931488,
0.08372604846954346,
0.1342657208442688,
-0.1894587278366089,
0.1656026989221573,
0.03135356307029724,
0.3460468649864197,
-0.4697665274143219,
0.04817194491624832,
-0.11290189623832703,
-0.041201479732990265,
0.1014004796743393,
0.2144024670124054,
0.22498875856399536,
0.107027567923069,
0.22561317682266235,
-0.12527990341186523,
-0.13266384601593018,
-0.42604729533195496,
-0.06518702954053879,
-0.17424063384532928,
0.14163826406002045,
0.08354290574789047,
0.21573205292224884,
-0.31066393852233887,
-0.3851436972618103,
-0.3129427134990692,
0.4378102719783783,
-0.04151948168873787,
-0.24138280749320984,
0.037381432950496674,
-0.05215902999043465,
0.1979452520608902,
0.008981626480817795,
0.13080573081970215,
0.18920902907848358,
0.09275341778993607,
0.3730064630508423,
-0.2739175856113434,
-0.6905540227890015,
0.5269717574119568,
-0.32449889183044434,
0.014765781350433826,
0.09477151930332184,
0.4946202039718628,
0.2482425421476364,
-0.3155158758163452,
-0.7181565761566162,
0.13574692606925964,
0.05348386615514755,
-0.1045394316315651,
0.07335072755813599,
0.41278210282325745,
-0.1984715461730957,
0.08154644817113876,
0.0882650837302208,
0.37355756759643555,
0.1968114674091339,
0.09379951655864716,
0.10096456110477448,
-0.23168586194515228
] |
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.184547558426857,
-0.04964661970734596,
-0.06277700513601303,
0.11527211964130402,
0.3269047141075134,
0.22352546453475952,
0.24826090037822723,
0.5285159945487976,
0.065509133040905,
-0.11483394354581833,
0.03318442031741142,
0.07348612695932388,
-0.38055598735809326,
0.09453348815441132,
-0.14150090515613556,
0.049697618931531906,
0.09959406405687332,
-0.13451431691646576,
-0.23687107861042023,
-0.004086330533027649,
0.03680993244051933,
-0.0554204136133194,
-0.0283106230199337,
-0.02766534313559532,
-0.6987550854682922,
-0.05756020545959473,
0.14996586740016937,
-0.08499909937381744,
-0.12586359679698944,
-0.43278107047080994,
0.04355110600590706,
0.2825655937194824,
0.34712284803390503,
0.2078094482421875,
-0.00011423350952100009,
-0.1720213145017624,
0.4031154215335846,
0.09166307002305984,
-0.3014625012874603,
0.3300533890724182,
-0.06567810475826263,
-0.4610652029514313,
0.23763111233711243,
-0.049953170120716095,
-0.02542627975344658,
-0.523871898651123,
0.18423998355865479,
-0.483192503452301,
0.34424933791160583,
0.14563047885894775,
0.23530246317386627,
0.10667891800403595,
0.038055021315813065,
0.013994994573295116,
0.09037411957979202,
0.30146950483322144,
-0.001908175298012793,
0.051207058131694794,
0.3469890356063843,
-0.13494698703289032,
-0.19352027773857117,
0.4127217233181,
-0.1736098825931549,
-0.10430136322975159,
0.318248987197876,
0.012809540145099163,
-0.07422317564487457,
-0.2959933876991272,
0.3224027752876282,
0.2155657261610031,
0.2681923508644104,
-0.38113096356391907,
-0.39957305788993835,
-0.5169009566307068,
0.08630562573671341,
-0.24606505036354065,
-0.061599913984537125,
0.0412023551762104,
-0.001388517557643354,
0.32543689012527466,
-0.2808993458747864,
-0.3249799311161041,
0.10877102613449097,
-0.1722455620765686,
0.26175665855407715,
0.0027794563211500645,
-0.03689106926321983,
-0.037456825375556946,
0.36543092131614685,
-0.14198996126651764,
0.08542274683713913,
0.224327951669693,
-0.1866140514612198,
-0.11861193925142288,
-0.402298241853714,
-0.08641032129526138,
0.27209755778312683,
0.5041310787200928,
-0.07414791733026505,
0.2894924581050873,
-0.6020704507827759,
0.033360108733177185,
0.1272963136434555,
-0.24679507315158844,
0.272027850151062,
0.07357710599899292,
0.37329211831092834,
0.5536035299301147,
0.07656127959489822,
-0.021736159920692444,
0.18507066369056702,
0.07596516609191895,
0.291379451751709,
-0.4003850817680359,
0.6298031806945801,
-0.03343426063656807,
0.47332319617271423,
-0.2939383387565613,
0.19940251111984253,
-0.10416466742753983,
-0.09365072846412659,
-0.08248043805360794,
0.00643092580139637,
0.23019906878471375,
0.21054981648921967,
-0.15131822228431702,
0.01799526810646057,
0.20426371693611145,
-0.1932062804698944,
-0.2217475026845932,
-0.23253421485424042,
0.2259943038225174,
0.002870901022106409,
0.20765334367752075,
0.2626849114894867,
-0.1796613186597824,
-0.14441630244255066,
0.19590842723846436,
-0.23139002919197083,
-0.07597388327121735,
0.1347900927066803,
-0.0709477886557579,
-0.0010422065388411283,
0.2148308902978897,
-0.1866116225719452,
0.1901024580001831,
-0.03596510365605354,
-0.13111695647239685,
-0.2601169943809509,
-0.04664144665002823,
-0.05008310452103615,
-0.36880743503570557,
-0.17430712282657623,
0.15163962543010712,
-0.2515849769115448,
0.0005150450742803514,
-0.04628639295697212,
0.10825349390506744,
0.19054396450519562,
0.20312727987766266,
0.058156758546829224,
-0.2059929221868515,
-0.21356967091560364,
-0.027373669669032097,
0.08470425009727478,
0.7543081045150757,
-0.18372242152690887,
-0.10741107165813446,
-0.32103726267814636,
-0.24459493160247803,
0.18471363186836243,
0.24752072989940643,
0.12006022781133652,
0.32976239919662476,
-0.2883557975292206,
0.02146713063120842,
-0.07180751860141754,
-0.436818927526474,
-0.21537084877490997,
0.14183448255062103,
-0.18013983964920044,
0.04695238173007965,
0.5603663325309753,
0.14654169976711273,
0.21351496875286102,
-0.22895687818527222,
0.056491196155548096,
-0.17787590622901917,
0.07072317600250244,
-0.14449536800384521,
-0.17454318702220917,
-0.1741802841424942,
-0.057850245386362076,
0.25976884365081787,
-0.03772800415754318,
-0.1251593828201294,
0.010942337103188038,
0.05615932494401932,
0.30139032006263733,
-0.20529705286026,
0.006250231061130762,
0.320772647857666,
0.20690272748470306,
-0.10199690610170364,
-0.19619718194007874,
-0.1875394731760025,
-0.4523916244506836,
-0.053089339286088943,
-0.08058398216962814,
0.04374704509973526,
-0.30837658047676086,
-0.5036977529525757,
-0.0187299232929945,
-0.028476033359766006,
-0.10092955082654953,
-0.11775773763656616,
0.0384819395840168,
0.17604580521583557,
-0.09636963903903961,
-0.19066716730594635,
-0.09799227118492126,
0.3941916227340698,
-0.1013602614402771,
0.12747913599014282,
-0.488179475069046,
-0.2294745147228241,
0.06850162893533707,
-0.17843201756477356,
0.42081090807914734,
0.1858511120080948,
0.18705202639102936,
-0.0038350459653884172,
0.22055286169052124,
0.24070803821086884,
-0.032966066151857376,
0.7907801866531372,
0.06447039544582367,
0.33715304732322693,
-0.0882410854101181,
0.11619111150503159,
0.06214725598692894,
-0.05834374204277992,
-0.2887880802154541,
-0.029836641624569893,
-0.04130898416042328,
0.4230467975139618,
0.20497700572013855,
0.11188441514968872,
-0.12870575487613678,
0.04387154430150986,
-0.1169305220246315,
-0.1507563591003418,
-0.08413618057966232,
-0.5032491683959961,
0.4043026566505432,
-0.06993287801742554,
0.17615577578544617,
0.2005898356437683,
-0.07133427262306213,
0.35839909315109253,
0.47148793935775757,
-0.21767450869083405,
0.235791876912117,
0.2873414158821106,
-0.020874014124274254,
0.02137809991836548,
0.13993175327777863,
0.18802423775196075,
0.10885591059923172,
0.28724050521850586,
0.014890806749463081,
0.34303760528564453,
0.3121269941329956,
-0.055492959916591644,
0.3003993332386017,
-0.031819362193346024,
-0.24436543881893158,
-0.17324590682983398,
-0.029862627387046814,
-0.14761734008789062,
-0.006640322972089052,
0.038354504853487015,
-0.40034735202789307,
0.37638282775878906,
-0.4999675452709198,
0.0595475398004055,
-0.6568223834037781,
-0.29705050587654114,
-0.2544579803943634,
0.19025693833827972,
0.03926883265376091,
-0.3844933807849884,
0.1392330825328827,
0.09047103673219681,
-0.14525969326496124,
0.1740480661392212,
-0.04400477930903435,
0.11548054963350296,
0.08970443159341812,
0.15752176940441132,
-0.332135409116745,
-0.02293594554066658,
-0.1803101748228073,
0.029976285994052887,
0.2657258212566376,
-0.005944757256656885,
0.4097062349319458,
-0.2006058692932129,
-0.05132422596216202,
-0.28493279218673706,
-0.3416576385498047,
-0.06278900057077408,
-0.10049719363451004,
0.17434731125831604,
0.23687103390693665,
0.11163181066513062,
0.06714913249015808,
0.033028215169906616,
-0.19132369756698608,
-0.09414774924516678,
0.09591997414827347,
-0.032246463000774384,
-0.29142385721206665,
0.1275751143693924,
-0.07602880150079727,
-0.32764068245887756,
-0.22108802199363708,
-0.24386174976825714,
0.36120378971099854,
-0.042598217725753784,
0.11030829697847366,
0.36912816762924194,
-0.11808393150568008,
0.08150792121887207,
-0.41320154070854187,
0.42201972007751465,
-0.011591443791985512,
-0.2237795889377594,
0.25471919775009155,
0.09985420852899551,
-0.038903072476387024,
-0.0693703219294548,
0.0822913870215416,
-0.3534398376941681,
-0.2201095074415207,
-0.5487350821495056,
-0.23411989212036133,
-0.41504111886024475,
-0.0939437747001648,
-0.06497436761856079,
0.1855563372373581,
0.289977103471756,
0.19232650101184845,
-0.08759669959545135,
0.16455049812793732,
-0.05516079068183899,
-0.047819867730140686,
-0.3874906003475189,
0.140546977519989,
-0.09667476266622543,
0.28426292538642883,
0.19763478636741638,
0.34409958124160767,
0.557474672794342,
0.04247833415865898,
-0.07543415576219559,
-0.2141036093235016,
0.5718834400177002,
-0.2818310558795929,
-0.3039308190345764,
-0.13141988217830658,
0.11560244858264923,
-0.18213555216789246,
-0.09458178281784058,
0.09981635957956314,
0.3431897461414337,
-0.05912632867693901,
-0.1497679203748703,
0.066382497549057,
-0.5078796744346619,
-0.01915285922586918,
0.22495092451572418,
-0.02656044065952301,
-0.12098854780197144,
0.287861168384552,
0.015621932223439217,
-0.23634643852710724,
0.17018374800682068,
0.2459607571363449,
0.10290657728910446,
0.03239118307828903,
-0.43449071049690247,
0.1664482206106186,
-0.7213902473449707,
0.446655809879303,
-0.1041036993265152,
0.034124020487070084,
-0.2104398012161255,
-0.1561359316110611,
0.007764963898807764,
0.37231338024139404,
0.21939492225646973,
-0.1493702083826065,
0.22641365230083466,
-0.019622400403022766,
0.037318337708711624,
-0.32745516300201416,
0.015356302261352539,
-0.3497530221939087,
0.28221598267555237,
0.5570364594459534,
0.16236411035060883,
-0.17926529049873352,
-0.1803710162639618,
0.1766926348209381,
0.26998865604400635,
-0.03735681623220444,
-0.19491338729858398,
-0.10925726592540741,
-0.19630403816699982,
-0.27805957198143005,
-0.0031809464562684298,
0.1013173907995224,
0.06608043611049652,
-0.023064373061060905,
0.04052294045686722,
0.040647778660058975,
-0.31048664450645447,
0.3731938898563385,
-0.3377858102321625,
0.2481718510389328,
0.032540176063776016,
0.24774792790412903,
0.019249141216278076,
0.10799811780452728,
0.21642211079597473,
0.36392924189567566,
0.08868382126092911,
-0.2177182137966156,
-0.1563560664653778,
-0.012332815676927567,
0.20178505778312683,
0.4631592631340027,
-0.2448468804359436,
0.22310654819011688,
0.18159551918506622,
0.38189268112182617,
-0.34542787075042725,
0.0008878795779310167,
0.1865534782409668,
0.11667341738939285,
-0.28355759382247925,
-0.09184616804122925,
0.28942936658859253,
0.36480844020843506,
-0.13544270396232605,
0.42234039306640625,
0.2825654149055481,
-0.4037984013557434,
0.0595991350710392,
-0.013428054749965668,
1.0228252410888672,
-0.09584825485944748,
0.08208318799734116,
0.0964181199669838,
-0.25698545575141907,
0.47648948431015015,
0.19289655983448029,
-0.047642845660448074,
-0.21660415828227997,
-0.31290337443351746,
0.15421397984027863,
-0.03624788671731949,
0.1545405238866806,
-0.31567826867103577,
0.020474111661314964,
0.3621290624141693,
-0.4943399131298065,
-0.001503736013546586,
-0.26545584201812744,
0.4618159532546997,
-0.37821680307388306,
-0.15743139386177063,
-0.3005768656730652,
0.07802651077508926,
-0.09721052646636963,
0.07930240035057068,
-0.09832949936389923,
-0.08610145002603531,
0.32549968361854553,
-0.15866775810718536,
-0.33586642146110535,
-0.2780643701553345,
0.2462979108095169,
-0.12895092368125916,
-0.07430973649024963,
-0.09478270262479782,
-0.01160175260156393,
0.09515522420406342,
0.2536329925060272,
0.3788905143737793,
-0.13456033170223236,
-0.0864742249250412,
-0.18257993459701538,
0.1769077330827713,
0.17706069350242615,
-0.075128473341465,
0.27507394552230835,
0.07011538743972778,
-0.15782582759857178,
-0.004024174064397812,
0.15885818004608154,
-0.3066464364528656,
-0.1811249852180481,
-0.1831434965133667,
-0.08247443288564682,
-0.1402900218963623,
0.043211840093135834,
0.07775140553712845,
-0.22497542202472687,
0.07772953808307648,
0.14577187597751617,
0.2886355519294739,
0.09717509895563126,
0.14941582083702087,
-0.1460620015859604,
-0.3254298269748688,
-0.3056718409061432,
0.578170120716095,
0.062215372920036316,
-0.04495127871632576,
0.5925286412239075,
0.3270190358161926,
-0.2988739013671875,
-0.27086755633354187,
0.08714530616998672,
0.31175538897514343,
-0.21209771931171417,
0.08585697412490845,
0.08647483587265015,
0.14926818013191223,
0.2055315226316452,
-0.13474372029304504,
0.02232903242111206,
-0.01775701902806759,
-0.03323390334844589,
-0.21652890741825104,
-0.5762388110160828,
0.26029396057128906,
-0.15698513388633728,
0.26172107458114624,
-0.09032298624515533,
-0.01421858835965395,
-0.1747017800807953,
0.1199706494808197,
-0.3274492621421814,
-0.30870065093040466,
0.212945818901062,
-0.1259738951921463,
0.30046942830085754,
-0.05678717419505119,
0.21298378705978394,
-0.19677560031414032,
0.09442251175642014,
0.08550986647605896,
-0.2549475133419037,
-0.16760292649269104,
0.0385931059718132,
0.09780646860599518,
-0.4013967216014862,
0.03558742627501488,
0.05766318365931511,
-0.2081136554479599,
-0.06977201998233795,
-0.18695972859859467,
0.12422335147857666,
0.5811997652053833,
0.1784982532262802,
0.2072710543870926,
-0.11502495408058167,
-0.08376394957304001,
0.09481162577867508,
-0.26711922883987427,
0.011660896241664886,
0.10672496259212494,
-0.07395724952220917,
0.09721295535564423,
-0.03975345194339752,
0.09581970423460007,
-0.03692735731601715,
0.12559321522712708,
0.19790765643119812,
0.08525262773036957,
0.08827771991491318,
0.23241759836673737,
-0.1626414805650711,
0.5327461361885071,
0.4566951394081116,
0.08355775475502014,
-0.2391473799943924,
-0.1167793720960617,
-0.03061343915760517,
0.18347199261188507,
-0.13486626744270325,
-0.07002740353345871,
-0.035843625664711,
0.28576865792274475,
-0.2206105887889862,
0.4170997142791748,
-0.10203057527542114,
-0.12288099527359009,
0.2743910551071167,
0.13564316928386688,
0.08897010236978531,
-0.2586750388145447,
0.24992381036281586,
-0.011815214529633522,
-0.13072174787521362,
-0.3220932185649872,
0.40627041459083557,
0.23197729885578156,
0.16939052939414978,
0.323345422744751,
-0.28021469712257385,
0.3817974925041199,
-0.11673254519701004,
0.21751469373703003,
-0.0006154279108159244,
-0.2654290199279785,
0.12762311100959778,
0.5195828080177307,
-0.15522870421409607,
-0.08187666535377502,
-0.08692274242639542,
0.11883547157049179,
0.1133861318230629,
0.05469590052962303,
-0.2093765139579773,
0.18828049302101135,
-0.015123951248824596,
-0.038815174251794815,
0.5575543642044067,
0.11633719503879547,
-0.04079552739858627,
-0.0006746157887391746,
-0.027240319177508354,
-0.25488612055778503,
-0.06621802598237991,
0.11046325415372849,
-0.07524444907903671,
-0.250322550535202,
0.3213793933391571,
-0.141987144947052,
0.6471569538116455,
-0.2481483668088913,
-0.11841452866792679,
-0.03146514296531677,
-0.020713573321700096,
0.24527029693126678,
0.24816249310970306,
0.6147255897521973,
0.19735287129878998,
0.2949056327342987,
0.383320689201355,
-0.07754331082105637,
0.03474923223257065,
-0.04576368257403374,
0.35289886593818665,
-0.04213212803006172,
0.04352612793445587,
0.052707526832818985,
0.13483688235282898,
-0.09719561785459518,
0.27197474241256714,
-0.10692048072814941,
0.12926319241523743,
-0.424719899892807,
0.5578886866569519,
0.12494760751724243,
-0.18922805786132812,
-0.1546589881181717,
0.076814204454422,
-0.14171169698238373,
-0.2965753972530365,
0.4082414507865906,
0.17666006088256836,
0.02835308387875557,
-0.320965051651001,
0.07600091397762299,
-0.29783788323402405,
0.15634478628635406,
0.39772501587867737,
-0.06688007712364197,
-0.2303674966096878,
0.0655096173286438,
-0.3557753264904022,
0.04614744707942009,
-0.02487690933048725,
-0.17489123344421387,
-0.011324968189001083,
-0.048622000962495804,
-0.08896636217832565,
0.19237889349460602,
0.37812644243240356,
-0.3197563588619232,
0.05501744896173477,
-0.36383041739463806,
-0.05713395029306412,
-0.023772770538926125,
0.07044455409049988,
-0.0915813222527504,
0.11097870022058487,
-0.1278049647808075,
0.48352593183517456,
-0.5077939629554749,
0.05089150369167328,
-0.05032433941960335,
0.008007567375898361,
0.011827671900391579,
0.21306292712688446,
0.2893228530883789,
0.14437168836593628,
0.16054978966712952,
-0.03319753333926201,
-0.08122346550226212,
-0.44894540309906006,
-0.013101563788950443,
-0.30248019099235535,
0.30076658725738525,
-0.05219970643520355,
0.1398363709449768,
-0.3996769189834595,
-0.315746009349823,
-0.31808555126190186,
0.41302040219306946,
-0.06543722003698349,
-0.23225486278533936,
-0.16811619699001312,
0.06595048308372498,
0.07821376621723175,
0.07384350150823593,
0.10942620784044266,
0.15926001965999603,
0.05641110986471176,
0.3194150924682617,
-0.2590790092945099,
-0.5449336767196655,
0.5200141072273254,
-0.3985479772090912,
-0.07349719107151031,
0.0006195337628014386,
0.6537180542945862,
0.25605589151382446,
-0.3464395999908447,
-0.5534010529518127,
0.07773520052433014,
0.15944883227348328,
-0.10886309295892715,
0.12419143319129944,
0.42429307103157043,
-0.2983647286891937,
0.13547250628471375,
0.11672403663396835,
0.3301059901714325,
0.19540418684482574,
0.05719916895031929,
0.07803820073604584,
-0.3463289141654968
] |
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.2614891529083252,
0.05524652823805809,
-0.15951372683048248,
0.21566087007522583,
0.16742785274982452,
-0.0379510335624218,
0.3336218297481537,
0.06700822710990906,
0.13231945037841797,
0.12404193729162216,
-0.21295484900474548,
0.26625317335128784,
-0.4864397943019867,
0.5283170938491821,
0.18952500820159912,
-0.04972785338759422,
0.08314251899719238,
-0.08716423809528351,
0.17146530747413635,
0.16608431935310364,
-0.17177684605121613,
0.090084508061409,
-0.14506042003631592,
0.02376243844628334,
-0.19849275052547455,
-0.2001335471868515,
0.027907591313123703,
-0.012016922235488892,
-0.19241023063659668,
-0.3131723701953888,
-0.030131835490465164,
0.32136961817741394,
-0.09662320464849472,
0.7043576240539551,
-0.0001007272585411556,
-0.30786222219467163,
0.15420325100421906,
-0.19974584877490997,
-0.36230963468551636,
-0.037622444331645966,
-0.10350008308887482,
0.03970465809106827,
-0.1769135296344757,
-0.0062248981557786465,
-0.21349909901618958,
-0.18621249496936798,
0.03739369288086891,
0.0631212368607521,
0.12475668638944626,
0.47923707962036133,
0.2868832051753998,
0.031450558453798294,
0.023789959028363228,
-0.31390297412872314,
-0.08927900344133377,
0.16731733083724976,
-0.32502982020378113,
0.18353423476219177,
0.24507860839366913,
0.030209608376026154,
-0.12053976207971573,
0.3014369308948517,
-0.18184877932071686,
-0.1398768424987793,
0.20542922616004944,
-0.260577529668808,
-0.17978250980377197,
-0.262800395488739,
0.15613271296024323,
0.3817879259586334,
0.5788030624389648,
-0.16345492005348206,
-0.12900885939598083,
-0.4247128665447235,
-0.02887074276804924,
-0.14032694697380066,
-0.16434314846992493,
0.21425166726112366,
-0.10459612309932709,
0.13220003247261047,
-0.23907332122325897,
-0.39190834760665894,
-0.05097073316574097,
0.024519653990864754,
0.04534825682640076,
0.18109528720378876,
-0.2719660699367523,
-0.11659524589776993,
0.11772433668375015,
-0.29110854864120483,
-0.10918277502059937,
0.024692818522453308,
-0.13970893621444702,
-0.06617363542318344,
-0.5199303030967712,
-0.38467857241630554,
0.39716851711273193,
0.24866969883441925,
0.3383384644985199,
0.18674488365650177,
0.12016177177429199,
-0.011986724101006985,
0.009406134486198425,
-0.0615282878279686,
0.4166877865791321,
0.12919971346855164,
0.00205206498503685,
-0.06195792555809021,
0.17983505129814148,
0.23643377423286438,
0.12099667638540268,
0.2560901641845703,
-0.17279650270938873,
-0.005143848713487387,
-0.06726706027984619,
-0.01645243540406227,
-0.02752767875790596,
0.1008455827832222,
-0.30659225583076477,
0.20584061741828918,
-0.15209835767745972,
0.04448840394616127,
0.13889092206954956,
0.27403274178504944,
-0.2231861799955368,
0.0721597820520401,
-0.09894786030054092,
0.19622573256492615,
0.04549214243888855,
-0.008953288197517395,
-0.06785455346107483,
0.11560947448015213,
-0.28828752040863037,
0.3044948875904083,
0.16198286414146423,
0.22450917959213257,
0.040673188865184784,
-0.16724926233291626,
-0.0642303079366684,
-0.09413523226976395,
0.16249872744083405,
-0.17091569304466248,
-0.03061022236943245,
-0.11188093572854996,
0.01234289351850748,
-0.34974369406700134,
-0.20845088362693787,
0.008967909961938858,
-0.17209403216838837,
-0.021816030144691467,
0.1849709004163742,
-0.21417860686779022,
-0.11630243062973022,
0.2941466271877289,
-0.1590954214334488,
-0.20600023865699768,
-0.32340243458747864,
0.7503308057785034,
-0.07134432345628738,
-0.058538563549518585,
0.22224481403827667,
0.24187062680721283,
-0.37245121598243713,
-0.14130640029907227,
-0.05112672969698906,
0.34891006350517273,
0.062112778425216675,
-0.011533783748745918,
-0.13975289463996887,
-0.14621613919734955,
-0.42289701104164124,
0.31070879101753235,
0.0636390820145607,
0.4232720136642456,
-0.15663860738277435,
0.05773039162158966,
-0.06164819374680519,
-0.26386505365371704,
-0.2786199748516083,
0.17033691704273224,
-0.5045642852783203,
0.062012579292058945,
0.26125001907348633,
0.13908086717128754,
0.4737355411052704,
-0.40690287947654724,
0.5480488538742065,
0.23503468930721283,
-0.15164603292942047,
0.02583872713148594,
-0.10848214477300644,
-0.3002915382385254,
0.00968045461922884,
0.3743717670440674,
0.18097682297229767,
-0.2353052943944931,
-0.11139696836471558,
-0.1721188873052597,
0.007716926746070385,
-0.15114140510559082,
0.017735620960593224,
0.15716329216957092,
0.37819746136665344,
0.14480815827846527,
-0.07464791089296341,
-0.35207822918891907,
-0.4401954114437103,
-0.27147722244262695,
0.058016400784254074,
0.1237805187702179,
0.27611613273620605,
-0.43025657534599304,
-0.16371609270572662,
-0.01062573678791523,
-0.013068020343780518,
-0.14670604467391968,
0.2628626227378845,
0.1287085860967636,
0.062305569648742676,
-0.13437621295452118,
-0.17631356418132782,
0.5124220848083496,
-0.17916207015514374,
-0.08889662474393845,
0.12724870443344116,
0.04619148373603821,
0.005044464021921158,
-0.05231534689664841,
0.27476516366004944,
0.4075884521007538,
-0.030907928943634033,
0.10271233320236206,
0.22879305481910706,
0.16351044178009033,
-0.07301286607980728,
0.2508265972137451,
0.25254011154174805,
0.4002331793308258,
-0.004086941014975309,
-0.20295724272727966,
-0.014997179619967937,
0.21424776315689087,
0.023582441732287407,
-0.09603647887706757,
-0.254268079996109,
0.2681880295276642,
0.2542659342288971,
0.09107615053653717,
0.08218559622764587,
0.17350615561008453,
0.11345092952251434,
-0.20933830738067627,
-0.1832897812128067,
0.029801324009895325,
0.18739283084869385,
0.21380087733268738,
-0.06301041692495346,
0.11442694813013077,
-0.6919637322425842,
0.16508685052394867,
0.3536668121814728,
-0.01793837361037731,
0.40912356972694397,
0.18303059041500092,
-0.12757642567157745,
-0.3061293363571167,
-0.0035231541842222214,
-0.35348644852638245,
0.10446043312549591,
0.4246430993080139,
0.06308228522539139,
-0.002914231037721038,
0.23787224292755127,
-0.16653865575790405,
0.13242989778518677,
0.08924703299999237,
0.00020830548601225019,
0.2678323984146118,
0.28400370478630066,
-0.04704153537750244,
-0.2962818741798401,
-0.21912895143032074,
-0.0053093633614480495,
0.031559061259031296,
-0.1969405710697174,
-0.19977493584156036,
0.14386925101280212,
-0.28177765011787415,
-0.014488614164292812,
-0.02047589421272278,
-0.010461612604558468,
-0.0066522397100925446,
0.2491917461156845,
0.14841006696224213,
-0.0625198483467102,
0.15989002585411072,
0.2966148257255554,
0.5640654563903809,
-0.23807908594608307,
0.09703484177589417,
-0.10082283616065979,
-0.5919586420059204,
0.003470048774033785,
0.23797816038131714,
0.15739350020885468,
-0.29121091961860657,
0.5987555384635925,
-0.04768431559205055,
0.12348376214504242,
-0.5213552117347717,
-0.43037745356559753,
0.2126307338476181,
-0.3136652708053589,
0.29600948095321655,
0.1633024662733078,
0.0663081705570221,
-0.038084544241428375,
0.0635017454624176,
-0.22277837991714478,
0.1621677726507187,
-0.0654902532696724,
-0.22625072300434113,
-0.19133260846138,
0.08952542394399643,
-0.01552288793027401,
-0.3140394985675812,
-0.07927560806274414,
-0.6464057564735413,
0.5182400941848755,
-0.16466951370239258,
0.15421806275844574,
0.3452109694480896,
-0.15288572013378143,
0.10420898348093033,
-0.11297015100717545,
0.06731048226356506,
-0.3176526427268982,
0.12815378606319427,
0.1276370882987976,
-0.2890619933605194,
-0.14191918075084686,
-0.2176148146390915,
-0.27099689841270447,
0.12672702968120575,
-0.09543509036302567,
-0.39817965030670166,
0.13591378927230835,
-0.06615940481424332,
0.09535858780145645,
-0.05314100161194801,
-0.22078922390937805,
0.2568981349468231,
-0.016948619857430458,
-0.26607680320739746,
-0.06536512821912766,
-0.3890555799007416,
0.14122000336647034,
0.2797248065471649,
0.0679735317826271,
0.06808115541934967,
0.07809662818908691,
0.03506708890199661,
0.2983913719654083,
-0.039736732840538025,
0.22796061635017395,
0.1530393809080124,
0.008907570503652096,
0.3236823081970215,
-0.08994382619857788,
-0.2734920084476471,
0.549923837184906,
0.20220915973186493,
-0.05003900080919266,
0.4199295938014984,
0.06430639326572418,
-0.14871743321418762,
-0.0776430293917656,
-0.15736009180545807,
-0.07766246050596237,
-0.14413155615329742,
0.1170249953866005,
-0.16536641120910645,
0.23103536665439606,
-0.21097801625728607,
-0.16825814545154572,
-0.2618758976459503,
-0.04103895276784897,
-0.010537555441260338,
0.1600448042154312,
0.05788835138082504,
-0.24614787101745605,
-0.11575431376695633,
0.3369298577308655,
-0.34250837564468384,
0.10583370923995972,
-0.022084498777985573,
-0.09031345695257187,
-0.2629333436489105,
0.10583961009979248,
-0.19200937449932098,
0.03672078624367714,
0.4593273103237152,
-0.08431247621774673,
-0.22363129258155823,
-0.005811695009469986,
0.32027384638786316,
-0.044282183051109314,
0.30113551020622253,
0.013720415532588959,
0.0952121689915657,
0.2549005448818207,
0.6941009759902954,
-0.3379411995410919,
0.044424064457416534,
0.416678786277771,
-0.05314132571220398,
0.10038959234952927,
-0.07567758858203888,
0.035446178168058395,
-0.273796021938324,
-0.0657212883234024,
0.40453413128852844,
0.17147596180438995,
0.10806136578321457,
0.42783522605895996,
-0.1285223364830017,
0.19647212326526642,
-0.07498741149902344,
0.208327054977417,
-0.281450480222702,
0.015827404335141182,
0.2705782949924469,
0.18650177121162415,
-0.1502004712820053,
-0.0852074921131134,
0.21002623438835144,
0.3960537314414978,
0.16591870784759521,
-0.19727230072021484,
0.14413386583328247,
-0.2553127408027649,
0.3726993501186371,
0.27602410316467285,
0.2314082384109497,
0.19511733949184418,
-0.013276275247335434,
0.4930606484413147,
-0.25135383009910583,
0.1069026067852974,
0.09101933985948563,
-0.004525128751993179,
-0.5179163217544556,
-0.44198495149612427,
0.1323394626379013,
0.15440058708190918,
-0.06533794105052948,
0.4278354346752167,
-0.08700691908597946,
-0.19381818175315857,
-0.20657673478126526,
0.049563776701688766,
0.9224189519882202,
0.0042031193152070045,
0.21195754408836365,
0.4051852226257324,
-0.5795305371284485,
0.06949759274721146,
-0.2566629946231842,
0.12292052060365677,
-0.04511360451579094,
0.2835303246974945,
0.06159878149628639,
0.05275867506861687,
-0.18642280995845795,
0.19100017845630646,
-0.43283993005752563,
0.09303750842809677,
0.06152739003300667,
0.14654919505119324,
0.1344941258430481,
0.4971323311328888,
-0.15695679187774658,
-0.3890838623046875,
-0.26499003171920776,
0.25392746925354004,
-0.14056283235549927,
-0.0713878870010376,
-0.06380724906921387,
-0.16147734224796295,
0.031007003039121628,
-0.05307992175221443,
-0.5341097116470337,
-0.12804514169692993,
-0.26718488335609436,
-0.19891923666000366,
0.08456236124038696,
-0.5190015435218811,
0.2743317782878876,
-0.12119365483522415,
0.01685287244617939,
0.15050002932548523,
-0.3063865303993225,
0.1029711365699768,
0.046101488173007965,
0.008073844946920872,
-0.013043244369328022,
-0.076959989964962,
0.4476037621498108,
-0.03064524009823799,
-0.0582415834069252,
0.06678734719753265,
0.21321149170398712,
-0.1285066157579422,
-0.547183632850647,
0.09721832722425461,
0.04219430312514305,
-0.11747182160615921,
0.014149554073810577,
0.10936281085014343,
-0.11677955090999603,
-0.25503969192504883,
0.22617802023887634,
0.11290745437145233,
0.0214291512966156,
-0.0700392946600914,
0.01697782427072525,
-0.13252268731594086,
-0.2255837321281433,
0.05639896169304848,
0.13701479136943817,
-0.19527801871299744,
0.1854121834039688,
0.4506289064884186,
-0.15309225022792816,
-0.5877161622047424,
0.00597208458930254,
0.29405778646469116,
0.0000030823609904473415,
0.26964208483695984,
0.09142342209815979,
-0.29569539427757263,
0.046439122408628464,
0.31187477707862854,
0.02378714270889759,
-0.03983097895979881,
0.04001548886299133,
-0.010782115161418915,
-0.4449407160282135,
0.23840385675430298,
-0.32417032122612,
0.16043023765087128,
-0.14419375360012054,
-0.02131916768848896,
0.22031551599502563,
0.04238046333193779,
-0.4860435128211975,
-0.0637262761592865,
-0.41091182827949524,
0.06737019866704941,
0.33596786856651306,
-0.18163108825683594,
-0.05662108212709427,
0.005761608015745878,
0.20047681033611298,
-0.19147349894046783,
-0.2832295894622803,
-0.31878024339675903,
-0.17698995769023895,
0.08310136944055557,
0.03466029092669487,
0.22099918127059937,
0.005538864992558956,
0.005360550247132778,
-0.3474755585193634,
-0.05857977643609047,
0.31220367550849915,
0.3366633653640747,
-0.011006144806742668,
-0.12795515358448029,
-0.33252084255218506,
-0.06528519839048386,
0.2533949017524719,
-0.12365050613880157,
0.18065275251865387,
0.10770279914140701,
0.034610942006111145,
-0.008513572625815868,
0.24834772944450378,
-0.05882808193564415,
-0.11016654223203659,
0.43262186646461487,
0.4296235740184784,
-0.06562183797359467,
0.165556862950325,
0.0395483560860157,
-0.03177788481116295,
0.2534831166267395,
0.1656472086906433,
-0.012733527459204197,
-0.03429148346185684,
0.048363666981458664,
0.10877158492803574,
0.3111404776573181,
-0.09674640744924545,
0.2382241189479828,
0.13192525506019592,
-0.36406707763671875,
0.24683840572834015,
0.185604527592659,
-0.0028981806244701147,
0.24478113651275635,
0.08753505349159241,
0.14296534657478333,
0.09313653409481049,
0.06039588898420334,
0.19902856647968292,
-0.15321633219718933,
0.09718102216720581,
-0.06411287933588028,
0.5701436400413513,
0.17836248874664307,
0.3212888240814209,
0.09075133502483368,
0.2958136200904846,
0.24646848440170288,
0.06064445897936821,
0.11941736191511154,
0.4031067490577698,
-0.020018640905618668,
-0.10443302243947983,
-0.15902428328990936,
-0.1592027246952057,
-0.04865353927016258,
-0.08688709884881973,
0.5234057903289795,
-0.27868330478668213,
0.13937950134277344,
-0.0019498883048072457,
0.01242092251777649,
-0.23110954463481903,
0.19007238745689392,
-0.024069828912615776,
-0.26974183320999146,
-0.1429312825202942,
0.02231108397245407,
0.02096628211438656,
-0.1166473925113678,
0.15731774270534515,
-0.020656824111938477,
0.09621611982584,
-0.20940251648426056,
0.11803564429283142,
0.2326326221227646,
0.14623969793319702,
-0.3240092694759369,
0.06976793706417084,
-0.2487798035144806,
0.13030894100666046,
0.09857148677110672,
0.5581971406936646,
0.19264662265777588,
0.11277119815349579,
-0.33132028579711914,
0.058808546513319016,
-0.2364320605993271,
-0.13309790194034576,
-0.062124330550432205,
0.15942814946174622,
0.20897619426250458,
0.06707503646612167,
0.2843996584415436,
0.23944371938705444,
-0.2812752425670624,
0.26497820019721985,
0.20160804688930511,
-0.41373080015182495,
-0.35842347145080566,
-0.03285825252532959,
-0.02737293392419815,
-0.25703173875808716,
-0.2707478106021881,
-0.07777557522058487,
-0.47741034626960754,
-0.1650228202342987,
0.13266949355602264,
-0.04940853640437126,
0.015493826940655708,
-0.37888434529304504,
0.15651826560497284,
-0.10111711174249649,
0.39190125465393066,
0.3475642800331116,
0.48669013381004333,
-0.09844838827848434,
-0.14288462698459625,
-0.3140209913253784,
0.15232928097248077,
-0.0063522434793412685,
-0.14100795984268188,
-0.010279932990670204,
-0.043221235275268555,
0.07569264620542526,
0.34488213062286377,
-0.11295496672391891,
-0.011736609973013401,
-0.04045477509498596,
-0.05936584994196892,
-0.34659186005592346,
0.22852179408073425,
0.37384888529777527,
0.24616163969039917,
0.12554875016212463,
-0.07476809620857239,
-0.0023509482853114605,
0.01231441181153059,
0.15396784245967865,
-0.2139318585395813,
-0.07135853916406631,
0.08292457461357117,
-0.16945095360279083,
0.2467188686132431,
-0.28515586256980896,
0.3618658483028412,
-0.16379697620868683,
-0.12174268811941147,
-0.10987364500761032,
0.10350095480680466,
-0.13924577832221985,
-0.18594324588775635,
0.11508169025182724,
0.36917951703071594,
-0.11660328507423401,
-0.05767753720283508,
-0.06113281473517418,
-0.02946055494248867,
-0.041260186582803726,
0.28655287623405457,
0.07004375010728836,
0.17877569794654846,
0.04879703372716904,
-0.07155903428792953,
-0.07513191550970078,
0.11261120438575745,
-0.025129176676273346,
-0.0660502016544342,
-0.09300898015499115,
-0.362223744392395,
0.28404945135116577,
-0.029528670012950897,
-0.4029166102409363,
-0.12932831048965454,
0.22466978430747986,
0.0481194369494915,
-0.16933061182498932,
-0.535770058631897,
0.1112426370382309,
0.2190643548965454,
0.24210847914218903,
0.03191990777850151,
0.3021371364593506,
-0.13882146775722504,
-0.07034307718276978,
-0.0344766341149807,
0.010381611064076424,
0.02694680355489254,
0.16423310339450836,
-0.20713190734386444,
-0.35599586367607117
] |
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.3247124254703522,
0.016103381291031837,
-0.10880527645349503,
0.02600514143705368,
0.24204233288764954,
0.0198686420917511,
0.7173686027526855,
0.3756368160247803,
0.2509216070175171,
0.13370417058467865,
-0.03423228859901428,
0.14970433712005615,
0.07979945093393326,
0.021184252575039864,
-0.12693192064762115,
-0.1772819608449936,
-0.12715744972229004,
0.27433180809020996,
-0.4187990128993988,
0.01449766755104065,
-0.12488517165184021,
-0.002357104793190956,
-0.03493792563676834,
0.14053380489349365,
-0.20246416330337524,
-0.006238663103431463,
0.11578165739774704,
0.13127698004245758,
-0.027691785246133804,
-0.4939194917678833,
0.3365217447280884,
0.04025005176663399,
0.3237732946872711,
0.36321720480918884,
-0.00010603083501337096,
0.2135232388973236,
0.25174033641815186,
-0.028866857290267944,
-0.4279080629348755,
-0.46111053228378296,
-0.10899172723293304,
-0.3690284192562103,
0.42281243205070496,
-0.3986189365386963,
0.0005733193829655647,
-0.11989777535200119,
-0.0673586055636406,
-0.31619885563850403,
0.43138885498046875,
0.47850170731544495,
0.2786400318145752,
0.41547542810440063,
0.01658371463418007,
-0.11103420704603195,
0.07182258367538452,
0.05553407222032547,
-0.06249172240495682,
0.40612781047821045,
0.051623810082674026,
-0.18498985469341278,
-0.24267764389514923,
0.08461245894432068,
-0.1926988959312439,
0.3955325186252594,
0.19060291349887848,
0.08309604972600937,
0.03777122125029564,
-0.1966341882944107,
0.1252264827489853,
0.10768324881792068,
0.47648900747299194,
-0.23145480453968048,
-0.23214618861675262,
-0.05849829688668251,
-0.19948166608810425,
-0.18815772235393524,
0.1660739779472351,
0.08673159778118134,
-0.1683371216058731,
0.14744089543819427,
-0.2638406455516815,
0.0990801677107811,
-0.3907521367073059,
0.14945514500141144,
-0.11051132529973984,
0.15475815534591675,
-0.06718426942825317,
0.1947447955608368,
0.15826477110385895,
-0.056483373045921326,
0.4036886990070343,
-0.20703408122062683,
0.19160915911197662,
0.1276625096797943,
-0.3377634882926941,
0.1311570554971695,
0.13940399885177612,
-0.38613396883010864,
-0.10645744204521179,
0.049894630908966064,
-0.03617501258850098,
-0.05359082296490669,
0.13355165719985962,
0.29164689779281616,
0.1983603835105896,
0.07914328575134277,
-0.1308651715517044,
0.2947739362716675,
0.26872479915618896,
0.13256266713142395,
0.042261309921741486,
-0.062484871596097946,
-0.08005805313587189,
-0.3558063507080078,
0.16349782049655914,
0.1999800205230713,
0.48945900797843933,
-0.04742776229977608,
-0.2816002666950226,
0.13264018297195435,
0.012910336256027222,
-0.10737299174070358,
0.018969401717185974,
0.35893142223358154,
-0.08796925097703934,
0.20431534945964813,
0.04245316982269287,
0.013688702136278152,
-0.22352798283100128,
0.08454356342554092,
-0.21208427846431732,
0.037956055253744125,
-0.1193305104970932,
-0.06953200697898865,
0.381331205368042,
-0.0790894478559494,
0.046633731573820114,
-0.014668883755803108,
0.09893042594194412,
0.05034844949841499,
0.26117050647735596,
-0.2932831645011902,
0.04918236657977104,
0.4129320979118347,
0.05615432932972908,
0.24788370728492737,
0.4095258116722107,
-0.18423354625701904,
-0.10606054961681366,
0.08659051358699799,
-0.2045431137084961,
-0.33716943860054016,
-0.3385483920574188,
0.24021188914775848,
0.03689013049006462,
0.10894148796796799,
-0.01846623793244362,
-0.33027470111846924,
0.09865926951169968,
-0.27471575140953064,
-0.15415939688682556,
-0.3237553834915161,
-0.03890474885702133,
-0.21599151194095612,
0.3081875741481781,
0.646335244178772,
-0.43031713366508484,
0.04295613616704941,
0.05663686990737915,
-0.12991656363010406,
0.14146064221858978,
0.25084781646728516,
-0.3076954483985901,
0.08512597531080246,
-0.228460893034935,
-0.09667721390724182,
0.2314833402633667,
-0.30937495827674866,
-0.3032819926738739,
0.5005186200141907,
-0.2373456060886383,
-0.0729445293545723,
0.21697789430618286,
0.012616573832929134,
0.2910565733909607,
0.18582850694656372,
0.26151391863822937,
0.3000475764274597,
-0.10075877606868744,
0.117552749812603,
-0.07992347329854965,
-0.22256116569042206,
0.1973573863506317,
0.1164560616016388,
0.009815984405577183,
0.22318394482135773,
0.3249671161174774,
-0.25798025727272034,
0.17411409318447113,
-0.07687226682901382,
0.14479191601276398,
0.1345081329345703,
0.17397208511829376,
0.04198486730456352,
-0.060600124299526215,
-0.021664876490831375,
-0.5085174441337585,
0.13815544545650482,
0.13109125196933746,
0.09030017256736755,
-0.4376564919948578,
-0.016269410029053688,
-0.37712377309799194,
0.005171275697648525,
-0.2671610116958618,
-0.030242227017879486,
0.21001744270324707,
0.34153085947036743,
-0.019158674404025078,
-0.052317600697278976,
-0.048856597393751144,
0.3256906569004059,
-0.11661318689584732,
-0.019255800172686577,
-0.4156300723552704,
0.33955562114715576,
-0.354469895362854,
-0.06900352984666824,
0.052354320883750916,
-0.03142041712999344,
0.16265039145946503,
-0.18255585432052612,
-0.2719686031341553,
0.3561229705810547,
-0.09558561444282532,
0.2182246595621109,
0.017049774527549744,
-0.004438994452357292,
0.05262022837996483,
-0.2450999766588211,
0.03237707167863846,
0.031114304438233376,
0.15333165228366852,
0.043183308094739914,
-0.261312872171402,
0.3525983989238739,
-0.09534906595945358,
0.1633690446615219,
0.050654228776693344,
0.0704115480184555,
0.451421320438385,
0.011993863619863987,
-0.11404738575220108,
-0.10850923508405685,
0.1054946780204773,
0.23892144858837128,
0.22623565793037415,
0.049103204160928726,
-0.18027198314666748,
-0.188624769449234,
0.2018602192401886,
-0.1532270759344101,
0.011607938446104527,
0.09235332161188126,
-0.10862259566783905,
-0.04428116977214813,
0.21468421816825867,
0.23191919922828674,
0.5149134993553162,
0.10260234773159027,
-0.1526021957397461,
-0.01832135207951069,
-0.05032249540090561,
-0.13382300734519958,
0.11027868092060089,
-0.03869283199310303,
0.044877681881189346,
0.32726341485977173,
0.07598182559013367,
0.10698068886995316,
-0.2410079538822174,
-0.3630867898464203,
-0.04194872826337814,
0.26388871669769287,
-0.3492997884750366,
0.24792687594890594,
-0.1645682156085968,
0.018282292410731316,
-0.265902042388916,
-0.05033007636666298,
-0.11049897223711014,
-0.17807325720787048,
-0.3695806860923767,
0.3607576787471771,
-0.07638196647167206,
0.23725269734859467,
-0.2790002226829529,
-0.05164273828268051,
0.38798439502716064,
-0.44983285665512085,
-0.07305975258350372,
-0.20816579461097717,
-0.16014620661735535,
0.0924808531999588,
0.09350928664207458,
-0.15689221024513245,
0.30316558480262756,
-0.09899260848760605,
0.020526176318526268,
-0.1610632985830307,
-0.023834416642785072,
-0.08211684226989746,
0.012528127059340477,
0.12830525636672974,
0.18785417079925537,
0.4475228786468506,
0.12060218304395676,
-0.5035615563392639,
0.31845471262931824,
-0.08349719643592834,
0.048193689435720444,
0.19645652174949646,
-0.05370315909385681,
-0.20325587689876556,
0.0006875913240946829,
-0.6345357298851013,
-0.5991463661193848,
-0.4698646664619446,
0.1375347077846527,
0.06650941073894501,
0.21323217451572418,
0.2955242395401001,
0.22690168023109436,
0.20992311835289001,
0.08665785938501358,
0.07574920356273651,
-0.05961291491985321,
-0.15918445587158203,
0.34999921917915344,
-0.234960675239563,
-0.3570282757282257,
-0.11339561641216278,
-0.11525502800941467,
0.12194498628377914,
0.13648562133312225,
-0.44477578997612,
-0.02361636608839035,
-0.17468376457691193,
0.3565394878387451,
-0.04672414809465408,
0.05170492082834244,
0.4662778675556183,
0.16865718364715576,
-0.1706286519765854,
0.11266113817691803,
-0.24418598413467407,
-0.1408117711544037,
0.1942562311887741,
0.08437056839466095,
0.004410606808960438,
0.45936980843544006,
-0.15895922482013702,
0.6532878875732422,
-0.07980813831090927,
-0.18971042335033417,
0.2884310483932495,
-0.13622577488422394,
0.3429660499095917,
-0.18450714647769928,
-0.6308502554893494,
-0.09177834540605545,
-0.3062288463115692,
-0.20188280940055847,
0.010753165930509567,
-0.22972965240478516,
-0.2305869311094284,
-0.36419954895973206,
0.018699072301387787,
-0.3049337565898895,
-0.3137819170951843,
0.13632476329803467,
-0.11969742178916931,
0.3635420501232147,
0.04688134416937828,
-0.013036279007792473,
-0.25293707847595215,
-0.06005767732858658,
-0.24862784147262573,
0.3659869432449341,
-0.006222774274647236,
-0.09316585212945938,
-0.2668780982494354,
0.10691213607788086,
-0.281080424785614,
0.24323712289333344,
0.08004964143037796,
0.5622859001159668,
-0.20270797610282898,
-0.18679524958133698,
-0.037792451679706573,
0.0581570640206337,
0.402822345495224,
0.08844485133886337,
0.08746356517076492,
0.25638774037361145,
-0.0515902042388916,
-0.3120604157447815,
-0.08621209114789963,
-0.08868389576673508,
0.22119449079036713,
0.22770018875598907,
0.460794061422348,
0.05911487340927124,
-0.12697730958461761,
0.3169074058532715,
0.2359127402305603,
-0.08725614100694656,
-0.17905405163764954,
-0.2838764488697052,
-0.05081154406070709,
-0.3215528726577759,
-0.10537328571081161,
-0.11184182018041611,
0.17903266847133636,
-0.17329084873199463,
-0.12812820076942444,
0.07372362166643143,
-0.1710193157196045,
0.0011038572993129492,
0.11931975185871124,
-0.14569918811321259,
0.09597685933113098,
0.21791715919971466,
0.19069713354110718,
0.26288720965385437,
0.20216074585914612,
0.4429311454296112,
-0.20944947004318237,
-0.5551639795303345,
0.1772613525390625,
-0.01455550268292427,
0.10783123224973679,
0.10523667186498642,
-0.13693591952323914,
-0.14875838160514832,
0.17527452111244202,
0.18085694313049316,
-0.15395697951316833,
0.19385264813899994,
0.24986745417118073,
-0.11665432900190353,
-0.35298725962638855,
-0.4148058295249939,
0.13144393265247345,
-0.20059208571910858,
-0.09675164520740509,
0.19510190188884735,
-0.3385474979877472,
-0.06351567804813385,
0.2595232129096985,
-0.15831045806407928,
0.6695197820663452,
-0.1268925815820694,
0.18091654777526855,
0.16285310685634613,
-0.13451480865478516,
0.44838276505470276,
-0.15749214589595795,
0.11926182359457016,
-0.34411516785621643,
-0.2360045313835144,
-0.09949714690446854,
-0.24985767900943756,
0.3218547999858856,
0.00986869540065527,
-0.09696245193481445,
0.23642171919345856,
-0.06141688674688339,
0.28134816884994507,
0.065279021859169,
0.22038143873214722,
0.06127874180674553,
-0.2302684336900711,
-0.18300773203372955,
0.19012033939361572,
-0.09313639253377914,
0.41345617175102234,
0.029970914125442505,
-0.11374130100011826,
-0.012484224513173103,
-0.36156681180000305,
-0.04313931614160538,
0.05932124704122543,
-0.2830665409564972,
0.41366276144981384,
0.0488286055624485,
-0.35365477204322815,
-0.05514174699783325,
0.13816989958286285,
-0.15337535738945007,
0.07832982391119003,
-0.14985056221485138,
-0.0794561430811882,
-0.10809093713760376,
-0.06119728088378906,
-0.11690235137939453,
-0.0029084470588713884,
0.14739881455898285,
0.08248361945152283,
-0.26854953169822693,
0.2755722105503082,
-0.11783112585544586,
-0.3403712809085846,
0.18283630907535553,
0.2773400545120239,
0.26229238510131836,
-0.506549596786499,
-0.1399480700492859,
-0.3102690577507019,
-0.10756148397922516,
-0.1293211728334427,
0.20053215324878693,
-0.11239408701658249,
0.02567145973443985,
0.005595583003014326,
-0.08788860589265823,
-0.31055185198783875,
-0.04196375608444214,
0.6014830470085144,
-0.07181330025196075,
-0.06634939461946487,
0.32715433835983276,
0.062490612268447876,
-0.18431729078292847,
-0.2428678572177887,
0.19904012978076935,
-0.004433677066117525,
-0.4677983522415161,
-0.09300795942544937,
0.06878098845481873,
0.05869622156023979,
-0.11389011889696121,
0.07177619636058807,
0.22067590057849884,
0.10313533991575241,
0.03578341379761696,
-0.48030975461006165,
-0.5924566984176636,
-0.09012307971715927,
-0.012088645249605179,
0.14931301772594452,
0.4447925388813019,
0.2230703979730606,
0.05577884614467621,
0.10906801372766495,
-0.3599545955657959,
-0.06756049394607544,
-0.18957023322582245,
0.1576155573129654,
0.5117639899253845,
-0.2647097110748291,
0.1770644187927246,
-0.15526986122131348,
0.2409113049507141,
-0.14292307198047638,
-0.1262865960597992,
-0.31334614753723145,
0.0018987978110089898,
0.06184503436088562,
0.020243894308805466,
-0.3433450758457184,
-0.33765509724617004,
-0.26847583055496216,
-0.014810118824243546,
-0.07406280189752579,
-0.00034182946546934545,
0.21307650208473206,
-0.11873099207878113,
0.21216152608394623,
-0.24539290368556976,
0.08101385086774826,
-0.13400889933109283,
0.135055273771286,
-0.2799673080444336,
0.2402758151292801,
0.027082419022917747,
0.2827392518520355,
-0.0718643069267273,
-0.01944248005747795,
-0.4871894121170044,
-0.05400346592068672,
0.010927480645477772,
0.09868691116571426,
0.3070959150791168,
-0.18013721704483032,
-0.1373220682144165,
0.0053285760805010796,
0.3991224467754364,
0.2806524634361267,
-0.2605659067630768,
0.01644829288125038,
0.12060589343309402,
0.3077172636985779,
-0.21690958738327026,
-0.11241760104894638,
0.15963652729988098,
0.0255119688808918,
0.2056993842124939,
-0.023340383544564247,
0.08173950016498566,
-0.1946599930524826,
0.2731689214706421,
0.03548254817724228,
0.4447300136089325,
-0.0881810337305069,
0.20259402692317963,
0.6118382811546326,
0.019739648327231407,
-0.0029399998020380735,
0.1617928296327591,
0.17206791043281555,
0.19419847428798676,
0.4270901083946228,
-0.17929238080978394,
-0.08740714192390442,
-0.060370851308107376,
0.16990827023983002,
-0.17825259268283844,
-0.47331318259239197,
0.14328041672706604,
-0.15970703959465027,
-0.298828661441803,
-0.06702275574207306,
0.04967435449361801,
0.28032249212265015,
-0.2598396837711334,
0.07498760521411896,
-0.10565610975027084,
0.16085736453533173,
-0.09228973090648651,
-0.1408543586730957,
0.08977052569389343,
-0.07309673726558685,
-0.12902598083019257,
-0.04255658760666847,
0.11327216774225235,
0.08388775587081909,
0.27757972478866577,
0.2630515694618225,
-0.0881883054971695,
-0.20061413943767548,
0.19708845019340515,
0.22083687782287598,
-0.05574839189648628,
-0.1138678640127182,
0.1557372659444809,
0.3445373773574829,
0.17394095659255981,
-0.13113011419773102,
0.17611972987651825,
0.6315094232559204,
0.34706154465675354,
0.0025089476257562637,
0.2030489593744278,
-0.11244849860668182,
-0.14246615767478943,
-0.08644437789916992,
0.02515893429517746,
-0.09247411787509918,
0.207027867436409,
0.3563936650753021,
0.3213759660720825,
-0.19019924104213715,
0.3339127004146576,
-0.04639465734362602,
-0.1453467607498169,
-0.19388745725154877,
0.3707825243473053,
0.0753013864159584,
-0.2841675281524658,
-0.12542161345481873,
0.015040507540106773,
-0.40214166045188904,
0.06934380531311035,
0.46562108397483826,
0.010683737695217133,
0.2924721837043762,
0.0018879218259826303,
0.10944399982690811,
-0.0905618891119957,
0.4269726872444153,
0.14451131224632263,
0.37634897232055664,
-0.4452260732650757,
0.01128710713237524,
-0.5027247667312622,
0.18294693529605865,
-0.03917921707034111,
0.05342062562704086,
-0.04423590004444122,
0.17016920447349548,
0.01051585003733635,
0.2027025669813156,
-0.14749880135059357,
-0.05667022243142128,
0.017852962017059326,
0.12563425302505493,
0.02693975530564785,
-0.16315457224845886,
-0.20206885039806366,
0.05830061435699463,
-0.0021003654692322016,
-0.39048680663108826,
0.2174806296825409,
0.021083885803818703,
0.14058001339435577,
-0.26311033964157104,
-0.06372459977865219,
0.1954774409532547,
0.12738944590091705,
0.390739381313324,
0.1600232720375061,
0.6441072821617126,
-0.10564858466386795,
0.08293747901916504,
-0.06830887496471405,
-0.25430724024772644,
0.015144291333854198,
0.19531652331352234,
0.2678677439689636,
0.21443666517734528,
-0.08898661285638809,
-0.3141353726387024,
-0.47147291898727417,
0.399718701839447,
-0.05411340668797493,
-0.08573883026838303,
-0.04443245008587837,
-0.10151353478431702,
-0.029540276154875755,
0.04289207607507706,
0.03819446265697479,
-0.033093441277742386,
0.01173468679189682,
0.21084803342819214,
-0.1760050654411316,
-0.4096628725528717,
0.41831207275390625,
-0.2643606960773468,
-0.2504855990409851,
-0.17109981179237366,
0.27817827463150024,
-0.04632914066314697,
0.2893793284893036,
-0.27733078598976135,
0.29582375288009644,
0.45240306854248047,
-0.2110675871372223,
-0.21477706730365753,
0.22344017028808594,
0.019069772213697433,
0.2123969942331314,
-0.03966166451573372,
0.46950116753578186,
0.10085932910442352,
-0.24279670417308807,
-0.15513068437576294,
-0.21959038078784943
] |
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.3247124254703522,
0.016103381291031837,
-0.10880527645349503,
0.02600514143705368,
0.24204233288764954,
0.0198686420917511,
0.7173686027526855,
0.3756368160247803,
0.2509216070175171,
0.13370417058467865,
-0.03423228859901428,
0.14970433712005615,
0.07979945093393326,
0.021184252575039864,
-0.12693192064762115,
-0.1772819608449936,
-0.12715744972229004,
0.27433180809020996,
-0.4187990128993988,
0.01449766755104065,
-0.12488517165184021,
-0.002357104793190956,
-0.03493792563676834,
0.14053380489349365,
-0.20246416330337524,
-0.006238663103431463,
0.11578165739774704,
0.13127698004245758,
-0.027691785246133804,
-0.4939194917678833,
0.3365217447280884,
0.04025005176663399,
0.3237732946872711,
0.36321720480918884,
-0.00010603083501337096,
0.2135232388973236,
0.25174033641815186,
-0.028866857290267944,
-0.4279080629348755,
-0.46111053228378296,
-0.10899172723293304,
-0.3690284192562103,
0.42281243205070496,
-0.3986189365386963,
0.0005733193829655647,
-0.11989777535200119,
-0.0673586055636406,
-0.31619885563850403,
0.43138885498046875,
0.47850170731544495,
0.2786400318145752,
0.41547542810440063,
0.01658371463418007,
-0.11103420704603195,
0.07182258367538452,
0.05553407222032547,
-0.06249172240495682,
0.40612781047821045,
0.051623810082674026,
-0.18498985469341278,
-0.24267764389514923,
0.08461245894432068,
-0.1926988959312439,
0.3955325186252594,
0.19060291349887848,
0.08309604972600937,
0.03777122125029564,
-0.1966341882944107,
0.1252264827489853,
0.10768324881792068,
0.47648900747299194,
-0.23145480453968048,
-0.23214618861675262,
-0.05849829688668251,
-0.19948166608810425,
-0.18815772235393524,
0.1660739779472351,
0.08673159778118134,
-0.1683371216058731,
0.14744089543819427,
-0.2638406455516815,
0.0990801677107811,
-0.3907521367073059,
0.14945514500141144,
-0.11051132529973984,
0.15475815534591675,
-0.06718426942825317,
0.1947447955608368,
0.15826477110385895,
-0.056483373045921326,
0.4036886990070343,
-0.20703408122062683,
0.19160915911197662,
0.1276625096797943,
-0.3377634882926941,
0.1311570554971695,
0.13940399885177612,
-0.38613396883010864,
-0.10645744204521179,
0.049894630908966064,
-0.03617501258850098,
-0.05359082296490669,
0.13355165719985962,
0.29164689779281616,
0.1983603835105896,
0.07914328575134277,
-0.1308651715517044,
0.2947739362716675,
0.26872479915618896,
0.13256266713142395,
0.042261309921741486,
-0.062484871596097946,
-0.08005805313587189,
-0.3558063507080078,
0.16349782049655914,
0.1999800205230713,
0.48945900797843933,
-0.04742776229977608,
-0.2816002666950226,
0.13264018297195435,
0.012910336256027222,
-0.10737299174070358,
0.018969401717185974,
0.35893142223358154,
-0.08796925097703934,
0.20431534945964813,
0.04245316982269287,
0.013688702136278152,
-0.22352798283100128,
0.08454356342554092,
-0.21208427846431732,
0.037956055253744125,
-0.1193305104970932,
-0.06953200697898865,
0.381331205368042,
-0.0790894478559494,
0.046633731573820114,
-0.014668883755803108,
0.09893042594194412,
0.05034844949841499,
0.26117050647735596,
-0.2932831645011902,
0.04918236657977104,
0.4129320979118347,
0.05615432932972908,
0.24788370728492737,
0.4095258116722107,
-0.18423354625701904,
-0.10606054961681366,
0.08659051358699799,
-0.2045431137084961,
-0.33716943860054016,
-0.3385483920574188,
0.24021188914775848,
0.03689013049006462,
0.10894148796796799,
-0.01846623793244362,
-0.33027470111846924,
0.09865926951169968,
-0.27471575140953064,
-0.15415939688682556,
-0.3237553834915161,
-0.03890474885702133,
-0.21599151194095612,
0.3081875741481781,
0.646335244178772,
-0.43031713366508484,
0.04295613616704941,
0.05663686990737915,
-0.12991656363010406,
0.14146064221858978,
0.25084781646728516,
-0.3076954483985901,
0.08512597531080246,
-0.228460893034935,
-0.09667721390724182,
0.2314833402633667,
-0.30937495827674866,
-0.3032819926738739,
0.5005186200141907,
-0.2373456060886383,
-0.0729445293545723,
0.21697789430618286,
0.012616573832929134,
0.2910565733909607,
0.18582850694656372,
0.26151391863822937,
0.3000475764274597,
-0.10075877606868744,
0.117552749812603,
-0.07992347329854965,
-0.22256116569042206,
0.1973573863506317,
0.1164560616016388,
0.009815984405577183,
0.22318394482135773,
0.3249671161174774,
-0.25798025727272034,
0.17411409318447113,
-0.07687226682901382,
0.14479191601276398,
0.1345081329345703,
0.17397208511829376,
0.04198486730456352,
-0.060600124299526215,
-0.021664876490831375,
-0.5085174441337585,
0.13815544545650482,
0.13109125196933746,
0.09030017256736755,
-0.4376564919948578,
-0.016269410029053688,
-0.37712377309799194,
0.005171275697648525,
-0.2671610116958618,
-0.030242227017879486,
0.21001744270324707,
0.34153085947036743,
-0.019158674404025078,
-0.052317600697278976,
-0.048856597393751144,
0.3256906569004059,
-0.11661318689584732,
-0.019255800172686577,
-0.4156300723552704,
0.33955562114715576,
-0.354469895362854,
-0.06900352984666824,
0.052354320883750916,
-0.03142041712999344,
0.16265039145946503,
-0.18255585432052612,
-0.2719686031341553,
0.3561229705810547,
-0.09558561444282532,
0.2182246595621109,
0.017049774527549744,
-0.004438994452357292,
0.05262022837996483,
-0.2450999766588211,
0.03237707167863846,
0.031114304438233376,
0.15333165228366852,
0.043183308094739914,
-0.261312872171402,
0.3525983989238739,
-0.09534906595945358,
0.1633690446615219,
0.050654228776693344,
0.0704115480184555,
0.451421320438385,
0.011993863619863987,
-0.11404738575220108,
-0.10850923508405685,
0.1054946780204773,
0.23892144858837128,
0.22623565793037415,
0.049103204160928726,
-0.18027198314666748,
-0.188624769449234,
0.2018602192401886,
-0.1532270759344101,
0.011607938446104527,
0.09235332161188126,
-0.10862259566783905,
-0.04428116977214813,
0.21468421816825867,
0.23191919922828674,
0.5149134993553162,
0.10260234773159027,
-0.1526021957397461,
-0.01832135207951069,
-0.05032249540090561,
-0.13382300734519958,
0.11027868092060089,
-0.03869283199310303,
0.044877681881189346,
0.32726341485977173,
0.07598182559013367,
0.10698068886995316,
-0.2410079538822174,
-0.3630867898464203,
-0.04194872826337814,
0.26388871669769287,
-0.3492997884750366,
0.24792687594890594,
-0.1645682156085968,
0.018282292410731316,
-0.265902042388916,
-0.05033007636666298,
-0.11049897223711014,
-0.17807325720787048,
-0.3695806860923767,
0.3607576787471771,
-0.07638196647167206,
0.23725269734859467,
-0.2790002226829529,
-0.05164273828268051,
0.38798439502716064,
-0.44983285665512085,
-0.07305975258350372,
-0.20816579461097717,
-0.16014620661735535,
0.0924808531999588,
0.09350928664207458,
-0.15689221024513245,
0.30316558480262756,
-0.09899260848760605,
0.020526176318526268,
-0.1610632985830307,
-0.023834416642785072,
-0.08211684226989746,
0.012528127059340477,
0.12830525636672974,
0.18785417079925537,
0.4475228786468506,
0.12060218304395676,
-0.5035615563392639,
0.31845471262931824,
-0.08349719643592834,
0.048193689435720444,
0.19645652174949646,
-0.05370315909385681,
-0.20325587689876556,
0.0006875913240946829,
-0.6345357298851013,
-0.5991463661193848,
-0.4698646664619446,
0.1375347077846527,
0.06650941073894501,
0.21323217451572418,
0.2955242395401001,
0.22690168023109436,
0.20992311835289001,
0.08665785938501358,
0.07574920356273651,
-0.05961291491985321,
-0.15918445587158203,
0.34999921917915344,
-0.234960675239563,
-0.3570282757282257,
-0.11339561641216278,
-0.11525502800941467,
0.12194498628377914,
0.13648562133312225,
-0.44477578997612,
-0.02361636608839035,
-0.17468376457691193,
0.3565394878387451,
-0.04672414809465408,
0.05170492082834244,
0.4662778675556183,
0.16865718364715576,
-0.1706286519765854,
0.11266113817691803,
-0.24418598413467407,
-0.1408117711544037,
0.1942562311887741,
0.08437056839466095,
0.004410606808960438,
0.45936980843544006,
-0.15895922482013702,
0.6532878875732422,
-0.07980813831090927,
-0.18971042335033417,
0.2884310483932495,
-0.13622577488422394,
0.3429660499095917,
-0.18450714647769928,
-0.6308502554893494,
-0.09177834540605545,
-0.3062288463115692,
-0.20188280940055847,
0.010753165930509567,
-0.22972965240478516,
-0.2305869311094284,
-0.36419954895973206,
0.018699072301387787,
-0.3049337565898895,
-0.3137819170951843,
0.13632476329803467,
-0.11969742178916931,
0.3635420501232147,
0.04688134416937828,
-0.013036279007792473,
-0.25293707847595215,
-0.06005767732858658,
-0.24862784147262573,
0.3659869432449341,
-0.006222774274647236,
-0.09316585212945938,
-0.2668780982494354,
0.10691213607788086,
-0.281080424785614,
0.24323712289333344,
0.08004964143037796,
0.5622859001159668,
-0.20270797610282898,
-0.18679524958133698,
-0.037792451679706573,
0.0581570640206337,
0.402822345495224,
0.08844485133886337,
0.08746356517076492,
0.25638774037361145,
-0.0515902042388916,
-0.3120604157447815,
-0.08621209114789963,
-0.08868389576673508,
0.22119449079036713,
0.22770018875598907,
0.460794061422348,
0.05911487340927124,
-0.12697730958461761,
0.3169074058532715,
0.2359127402305603,
-0.08725614100694656,
-0.17905405163764954,
-0.2838764488697052,
-0.05081154406070709,
-0.3215528726577759,
-0.10537328571081161,
-0.11184182018041611,
0.17903266847133636,
-0.17329084873199463,
-0.12812820076942444,
0.07372362166643143,
-0.1710193157196045,
0.0011038572993129492,
0.11931975185871124,
-0.14569918811321259,
0.09597685933113098,
0.21791715919971466,
0.19069713354110718,
0.26288720965385437,
0.20216074585914612,
0.4429311454296112,
-0.20944947004318237,
-0.5551639795303345,
0.1772613525390625,
-0.01455550268292427,
0.10783123224973679,
0.10523667186498642,
-0.13693591952323914,
-0.14875838160514832,
0.17527452111244202,
0.18085694313049316,
-0.15395697951316833,
0.19385264813899994,
0.24986745417118073,
-0.11665432900190353,
-0.35298725962638855,
-0.4148058295249939,
0.13144393265247345,
-0.20059208571910858,
-0.09675164520740509,
0.19510190188884735,
-0.3385474979877472,
-0.06351567804813385,
0.2595232129096985,
-0.15831045806407928,
0.6695197820663452,
-0.1268925815820694,
0.18091654777526855,
0.16285310685634613,
-0.13451480865478516,
0.44838276505470276,
-0.15749214589595795,
0.11926182359457016,
-0.34411516785621643,
-0.2360045313835144,
-0.09949714690446854,
-0.24985767900943756,
0.3218547999858856,
0.00986869540065527,
-0.09696245193481445,
0.23642171919345856,
-0.06141688674688339,
0.28134816884994507,
0.065279021859169,
0.22038143873214722,
0.06127874180674553,
-0.2302684336900711,
-0.18300773203372955,
0.19012033939361572,
-0.09313639253377914,
0.41345617175102234,
0.029970914125442505,
-0.11374130100011826,
-0.012484224513173103,
-0.36156681180000305,
-0.04313931614160538,
0.05932124704122543,
-0.2830665409564972,
0.41366276144981384,
0.0488286055624485,
-0.35365477204322815,
-0.05514174699783325,
0.13816989958286285,
-0.15337535738945007,
0.07832982391119003,
-0.14985056221485138,
-0.0794561430811882,
-0.10809093713760376,
-0.06119728088378906,
-0.11690235137939453,
-0.0029084470588713884,
0.14739881455898285,
0.08248361945152283,
-0.26854953169822693,
0.2755722105503082,
-0.11783112585544586,
-0.3403712809085846,
0.18283630907535553,
0.2773400545120239,
0.26229238510131836,
-0.506549596786499,
-0.1399480700492859,
-0.3102690577507019,
-0.10756148397922516,
-0.1293211728334427,
0.20053215324878693,
-0.11239408701658249,
0.02567145973443985,
0.005595583003014326,
-0.08788860589265823,
-0.31055185198783875,
-0.04196375608444214,
0.6014830470085144,
-0.07181330025196075,
-0.06634939461946487,
0.32715433835983276,
0.062490612268447876,
-0.18431729078292847,
-0.2428678572177887,
0.19904012978076935,
-0.004433677066117525,
-0.4677983522415161,
-0.09300795942544937,
0.06878098845481873,
0.05869622156023979,
-0.11389011889696121,
0.07177619636058807,
0.22067590057849884,
0.10313533991575241,
0.03578341379761696,
-0.48030975461006165,
-0.5924566984176636,
-0.09012307971715927,
-0.012088645249605179,
0.14931301772594452,
0.4447925388813019,
0.2230703979730606,
0.05577884614467621,
0.10906801372766495,
-0.3599545955657959,
-0.06756049394607544,
-0.18957023322582245,
0.1576155573129654,
0.5117639899253845,
-0.2647097110748291,
0.1770644187927246,
-0.15526986122131348,
0.2409113049507141,
-0.14292307198047638,
-0.1262865960597992,
-0.31334614753723145,
0.0018987978110089898,
0.06184503436088562,
0.020243894308805466,
-0.3433450758457184,
-0.33765509724617004,
-0.26847583055496216,
-0.014810118824243546,
-0.07406280189752579,
-0.00034182946546934545,
0.21307650208473206,
-0.11873099207878113,
0.21216152608394623,
-0.24539290368556976,
0.08101385086774826,
-0.13400889933109283,
0.135055273771286,
-0.2799673080444336,
0.2402758151292801,
0.027082419022917747,
0.2827392518520355,
-0.0718643069267273,
-0.01944248005747795,
-0.4871894121170044,
-0.05400346592068672,
0.010927480645477772,
0.09868691116571426,
0.3070959150791168,
-0.18013721704483032,
-0.1373220682144165,
0.0053285760805010796,
0.3991224467754364,
0.2806524634361267,
-0.2605659067630768,
0.01644829288125038,
0.12060589343309402,
0.3077172636985779,
-0.21690958738327026,
-0.11241760104894638,
0.15963652729988098,
0.0255119688808918,
0.2056993842124939,
-0.023340383544564247,
0.08173950016498566,
-0.1946599930524826,
0.2731689214706421,
0.03548254817724228,
0.4447300136089325,
-0.0881810337305069,
0.20259402692317963,
0.6118382811546326,
0.019739648327231407,
-0.0029399998020380735,
0.1617928296327591,
0.17206791043281555,
0.19419847428798676,
0.4270901083946228,
-0.17929238080978394,
-0.08740714192390442,
-0.060370851308107376,
0.16990827023983002,
-0.17825259268283844,
-0.47331318259239197,
0.14328041672706604,
-0.15970703959465027,
-0.298828661441803,
-0.06702275574207306,
0.04967435449361801,
0.28032249212265015,
-0.2598396837711334,
0.07498760521411896,
-0.10565610975027084,
0.16085736453533173,
-0.09228973090648651,
-0.1408543586730957,
0.08977052569389343,
-0.07309673726558685,
-0.12902598083019257,
-0.04255658760666847,
0.11327216774225235,
0.08388775587081909,
0.27757972478866577,
0.2630515694618225,
-0.0881883054971695,
-0.20061413943767548,
0.19708845019340515,
0.22083687782287598,
-0.05574839189648628,
-0.1138678640127182,
0.1557372659444809,
0.3445373773574829,
0.17394095659255981,
-0.13113011419773102,
0.17611972987651825,
0.6315094232559204,
0.34706154465675354,
0.0025089476257562637,
0.2030489593744278,
-0.11244849860668182,
-0.14246615767478943,
-0.08644437789916992,
0.02515893429517746,
-0.09247411787509918,
0.207027867436409,
0.3563936650753021,
0.3213759660720825,
-0.19019924104213715,
0.3339127004146576,
-0.04639465734362602,
-0.1453467607498169,
-0.19388745725154877,
0.3707825243473053,
0.0753013864159584,
-0.2841675281524658,
-0.12542161345481873,
0.015040507540106773,
-0.40214166045188904,
0.06934380531311035,
0.46562108397483826,
0.010683737695217133,
0.2924721837043762,
0.0018879218259826303,
0.10944399982690811,
-0.0905618891119957,
0.4269726872444153,
0.14451131224632263,
0.37634897232055664,
-0.4452260732650757,
0.01128710713237524,
-0.5027247667312622,
0.18294693529605865,
-0.03917921707034111,
0.05342062562704086,
-0.04423590004444122,
0.17016920447349548,
0.01051585003733635,
0.2027025669813156,
-0.14749880135059357,
-0.05667022243142128,
0.017852962017059326,
0.12563425302505493,
0.02693975530564785,
-0.16315457224845886,
-0.20206885039806366,
0.05830061435699463,
-0.0021003654692322016,
-0.39048680663108826,
0.2174806296825409,
0.021083885803818703,
0.14058001339435577,
-0.26311033964157104,
-0.06372459977865219,
0.1954774409532547,
0.12738944590091705,
0.390739381313324,
0.1600232720375061,
0.6441072821617126,
-0.10564858466386795,
0.08293747901916504,
-0.06830887496471405,
-0.25430724024772644,
0.015144291333854198,
0.19531652331352234,
0.2678677439689636,
0.21443666517734528,
-0.08898661285638809,
-0.3141353726387024,
-0.47147291898727417,
0.399718701839447,
-0.05411340668797493,
-0.08573883026838303,
-0.04443245008587837,
-0.10151353478431702,
-0.029540276154875755,
0.04289207607507706,
0.03819446265697479,
-0.033093441277742386,
0.01173468679189682,
0.21084803342819214,
-0.1760050654411316,
-0.4096628725528717,
0.41831207275390625,
-0.2643606960773468,
-0.2504855990409851,
-0.17109981179237366,
0.27817827463150024,
-0.04632914066314697,
0.2893793284893036,
-0.27733078598976135,
0.29582375288009644,
0.45240306854248047,
-0.2110675871372223,
-0.21477706730365753,
0.22344017028808594,
0.019069772213697433,
0.2123969942331314,
-0.03966166451573372,
0.46950116753578186,
0.10085932910442352,
-0.24279670417308807,
-0.15513068437576294,
-0.21959038078784943
] |
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.3247124254703522,
0.016103381291031837,
-0.10880527645349503,
0.02600514143705368,
0.24204233288764954,
0.0198686420917511,
0.7173686027526855,
0.3756368160247803,
0.2509216070175171,
0.13370417058467865,
-0.03423228859901428,
0.14970433712005615,
0.07979945093393326,
0.021184252575039864,
-0.12693192064762115,
-0.1772819608449936,
-0.12715744972229004,
0.27433180809020996,
-0.4187990128993988,
0.01449766755104065,
-0.12488517165184021,
-0.002357104793190956,
-0.03493792563676834,
0.14053380489349365,
-0.20246416330337524,
-0.006238663103431463,
0.11578165739774704,
0.13127698004245758,
-0.027691785246133804,
-0.4939194917678833,
0.3365217447280884,
0.04025005176663399,
0.3237732946872711,
0.36321720480918884,
-0.00010603083501337096,
0.2135232388973236,
0.25174033641815186,
-0.028866857290267944,
-0.4279080629348755,
-0.46111053228378296,
-0.10899172723293304,
-0.3690284192562103,
0.42281243205070496,
-0.3986189365386963,
0.0005733193829655647,
-0.11989777535200119,
-0.0673586055636406,
-0.31619885563850403,
0.43138885498046875,
0.47850170731544495,
0.2786400318145752,
0.41547542810440063,
0.01658371463418007,
-0.11103420704603195,
0.07182258367538452,
0.05553407222032547,
-0.06249172240495682,
0.40612781047821045,
0.051623810082674026,
-0.18498985469341278,
-0.24267764389514923,
0.08461245894432068,
-0.1926988959312439,
0.3955325186252594,
0.19060291349887848,
0.08309604972600937,
0.03777122125029564,
-0.1966341882944107,
0.1252264827489853,
0.10768324881792068,
0.47648900747299194,
-0.23145480453968048,
-0.23214618861675262,
-0.05849829688668251,
-0.19948166608810425,
-0.18815772235393524,
0.1660739779472351,
0.08673159778118134,
-0.1683371216058731,
0.14744089543819427,
-0.2638406455516815,
0.0990801677107811,
-0.3907521367073059,
0.14945514500141144,
-0.11051132529973984,
0.15475815534591675,
-0.06718426942825317,
0.1947447955608368,
0.15826477110385895,
-0.056483373045921326,
0.4036886990070343,
-0.20703408122062683,
0.19160915911197662,
0.1276625096797943,
-0.3377634882926941,
0.1311570554971695,
0.13940399885177612,
-0.38613396883010864,
-0.10645744204521179,
0.049894630908966064,
-0.03617501258850098,
-0.05359082296490669,
0.13355165719985962,
0.29164689779281616,
0.1983603835105896,
0.07914328575134277,
-0.1308651715517044,
0.2947739362716675,
0.26872479915618896,
0.13256266713142395,
0.042261309921741486,
-0.062484871596097946,
-0.08005805313587189,
-0.3558063507080078,
0.16349782049655914,
0.1999800205230713,
0.48945900797843933,
-0.04742776229977608,
-0.2816002666950226,
0.13264018297195435,
0.012910336256027222,
-0.10737299174070358,
0.018969401717185974,
0.35893142223358154,
-0.08796925097703934,
0.20431534945964813,
0.04245316982269287,
0.013688702136278152,
-0.22352798283100128,
0.08454356342554092,
-0.21208427846431732,
0.037956055253744125,
-0.1193305104970932,
-0.06953200697898865,
0.381331205368042,
-0.0790894478559494,
0.046633731573820114,
-0.014668883755803108,
0.09893042594194412,
0.05034844949841499,
0.26117050647735596,
-0.2932831645011902,
0.04918236657977104,
0.4129320979118347,
0.05615432932972908,
0.24788370728492737,
0.4095258116722107,
-0.18423354625701904,
-0.10606054961681366,
0.08659051358699799,
-0.2045431137084961,
-0.33716943860054016,
-0.3385483920574188,
0.24021188914775848,
0.03689013049006462,
0.10894148796796799,
-0.01846623793244362,
-0.33027470111846924,
0.09865926951169968,
-0.27471575140953064,
-0.15415939688682556,
-0.3237553834915161,
-0.03890474885702133,
-0.21599151194095612,
0.3081875741481781,
0.646335244178772,
-0.43031713366508484,
0.04295613616704941,
0.05663686990737915,
-0.12991656363010406,
0.14146064221858978,
0.25084781646728516,
-0.3076954483985901,
0.08512597531080246,
-0.228460893034935,
-0.09667721390724182,
0.2314833402633667,
-0.30937495827674866,
-0.3032819926738739,
0.5005186200141907,
-0.2373456060886383,
-0.0729445293545723,
0.21697789430618286,
0.012616573832929134,
0.2910565733909607,
0.18582850694656372,
0.26151391863822937,
0.3000475764274597,
-0.10075877606868744,
0.117552749812603,
-0.07992347329854965,
-0.22256116569042206,
0.1973573863506317,
0.1164560616016388,
0.009815984405577183,
0.22318394482135773,
0.3249671161174774,
-0.25798025727272034,
0.17411409318447113,
-0.07687226682901382,
0.14479191601276398,
0.1345081329345703,
0.17397208511829376,
0.04198486730456352,
-0.060600124299526215,
-0.021664876490831375,
-0.5085174441337585,
0.13815544545650482,
0.13109125196933746,
0.09030017256736755,
-0.4376564919948578,
-0.016269410029053688,
-0.37712377309799194,
0.005171275697648525,
-0.2671610116958618,
-0.030242227017879486,
0.21001744270324707,
0.34153085947036743,
-0.019158674404025078,
-0.052317600697278976,
-0.048856597393751144,
0.3256906569004059,
-0.11661318689584732,
-0.019255800172686577,
-0.4156300723552704,
0.33955562114715576,
-0.354469895362854,
-0.06900352984666824,
0.052354320883750916,
-0.03142041712999344,
0.16265039145946503,
-0.18255585432052612,
-0.2719686031341553,
0.3561229705810547,
-0.09558561444282532,
0.2182246595621109,
0.017049774527549744,
-0.004438994452357292,
0.05262022837996483,
-0.2450999766588211,
0.03237707167863846,
0.031114304438233376,
0.15333165228366852,
0.043183308094739914,
-0.261312872171402,
0.3525983989238739,
-0.09534906595945358,
0.1633690446615219,
0.050654228776693344,
0.0704115480184555,
0.451421320438385,
0.011993863619863987,
-0.11404738575220108,
-0.10850923508405685,
0.1054946780204773,
0.23892144858837128,
0.22623565793037415,
0.049103204160928726,
-0.18027198314666748,
-0.188624769449234,
0.2018602192401886,
-0.1532270759344101,
0.011607938446104527,
0.09235332161188126,
-0.10862259566783905,
-0.04428116977214813,
0.21468421816825867,
0.23191919922828674,
0.5149134993553162,
0.10260234773159027,
-0.1526021957397461,
-0.01832135207951069,
-0.05032249540090561,
-0.13382300734519958,
0.11027868092060089,
-0.03869283199310303,
0.044877681881189346,
0.32726341485977173,
0.07598182559013367,
0.10698068886995316,
-0.2410079538822174,
-0.3630867898464203,
-0.04194872826337814,
0.26388871669769287,
-0.3492997884750366,
0.24792687594890594,
-0.1645682156085968,
0.018282292410731316,
-0.265902042388916,
-0.05033007636666298,
-0.11049897223711014,
-0.17807325720787048,
-0.3695806860923767,
0.3607576787471771,
-0.07638196647167206,
0.23725269734859467,
-0.2790002226829529,
-0.05164273828268051,
0.38798439502716064,
-0.44983285665512085,
-0.07305975258350372,
-0.20816579461097717,
-0.16014620661735535,
0.0924808531999588,
0.09350928664207458,
-0.15689221024513245,
0.30316558480262756,
-0.09899260848760605,
0.020526176318526268,
-0.1610632985830307,
-0.023834416642785072,
-0.08211684226989746,
0.012528127059340477,
0.12830525636672974,
0.18785417079925537,
0.4475228786468506,
0.12060218304395676,
-0.5035615563392639,
0.31845471262931824,
-0.08349719643592834,
0.048193689435720444,
0.19645652174949646,
-0.05370315909385681,
-0.20325587689876556,
0.0006875913240946829,
-0.6345357298851013,
-0.5991463661193848,
-0.4698646664619446,
0.1375347077846527,
0.06650941073894501,
0.21323217451572418,
0.2955242395401001,
0.22690168023109436,
0.20992311835289001,
0.08665785938501358,
0.07574920356273651,
-0.05961291491985321,
-0.15918445587158203,
0.34999921917915344,
-0.234960675239563,
-0.3570282757282257,
-0.11339561641216278,
-0.11525502800941467,
0.12194498628377914,
0.13648562133312225,
-0.44477578997612,
-0.02361636608839035,
-0.17468376457691193,
0.3565394878387451,
-0.04672414809465408,
0.05170492082834244,
0.4662778675556183,
0.16865718364715576,
-0.1706286519765854,
0.11266113817691803,
-0.24418598413467407,
-0.1408117711544037,
0.1942562311887741,
0.08437056839466095,
0.004410606808960438,
0.45936980843544006,
-0.15895922482013702,
0.6532878875732422,
-0.07980813831090927,
-0.18971042335033417,
0.2884310483932495,
-0.13622577488422394,
0.3429660499095917,
-0.18450714647769928,
-0.6308502554893494,
-0.09177834540605545,
-0.3062288463115692,
-0.20188280940055847,
0.010753165930509567,
-0.22972965240478516,
-0.2305869311094284,
-0.36419954895973206,
0.018699072301387787,
-0.3049337565898895,
-0.3137819170951843,
0.13632476329803467,
-0.11969742178916931,
0.3635420501232147,
0.04688134416937828,
-0.013036279007792473,
-0.25293707847595215,
-0.06005767732858658,
-0.24862784147262573,
0.3659869432449341,
-0.006222774274647236,
-0.09316585212945938,
-0.2668780982494354,
0.10691213607788086,
-0.281080424785614,
0.24323712289333344,
0.08004964143037796,
0.5622859001159668,
-0.20270797610282898,
-0.18679524958133698,
-0.037792451679706573,
0.0581570640206337,
0.402822345495224,
0.08844485133886337,
0.08746356517076492,
0.25638774037361145,
-0.0515902042388916,
-0.3120604157447815,
-0.08621209114789963,
-0.08868389576673508,
0.22119449079036713,
0.22770018875598907,
0.460794061422348,
0.05911487340927124,
-0.12697730958461761,
0.3169074058532715,
0.2359127402305603,
-0.08725614100694656,
-0.17905405163764954,
-0.2838764488697052,
-0.05081154406070709,
-0.3215528726577759,
-0.10537328571081161,
-0.11184182018041611,
0.17903266847133636,
-0.17329084873199463,
-0.12812820076942444,
0.07372362166643143,
-0.1710193157196045,
0.0011038572993129492,
0.11931975185871124,
-0.14569918811321259,
0.09597685933113098,
0.21791715919971466,
0.19069713354110718,
0.26288720965385437,
0.20216074585914612,
0.4429311454296112,
-0.20944947004318237,
-0.5551639795303345,
0.1772613525390625,
-0.01455550268292427,
0.10783123224973679,
0.10523667186498642,
-0.13693591952323914,
-0.14875838160514832,
0.17527452111244202,
0.18085694313049316,
-0.15395697951316833,
0.19385264813899994,
0.24986745417118073,
-0.11665432900190353,
-0.35298725962638855,
-0.4148058295249939,
0.13144393265247345,
-0.20059208571910858,
-0.09675164520740509,
0.19510190188884735,
-0.3385474979877472,
-0.06351567804813385,
0.2595232129096985,
-0.15831045806407928,
0.6695197820663452,
-0.1268925815820694,
0.18091654777526855,
0.16285310685634613,
-0.13451480865478516,
0.44838276505470276,
-0.15749214589595795,
0.11926182359457016,
-0.34411516785621643,
-0.2360045313835144,
-0.09949714690446854,
-0.24985767900943756,
0.3218547999858856,
0.00986869540065527,
-0.09696245193481445,
0.23642171919345856,
-0.06141688674688339,
0.28134816884994507,
0.065279021859169,
0.22038143873214722,
0.06127874180674553,
-0.2302684336900711,
-0.18300773203372955,
0.19012033939361572,
-0.09313639253377914,
0.41345617175102234,
0.029970914125442505,
-0.11374130100011826,
-0.012484224513173103,
-0.36156681180000305,
-0.04313931614160538,
0.05932124704122543,
-0.2830665409564972,
0.41366276144981384,
0.0488286055624485,
-0.35365477204322815,
-0.05514174699783325,
0.13816989958286285,
-0.15337535738945007,
0.07832982391119003,
-0.14985056221485138,
-0.0794561430811882,
-0.10809093713760376,
-0.06119728088378906,
-0.11690235137939453,
-0.0029084470588713884,
0.14739881455898285,
0.08248361945152283,
-0.26854953169822693,
0.2755722105503082,
-0.11783112585544586,
-0.3403712809085846,
0.18283630907535553,
0.2773400545120239,
0.26229238510131836,
-0.506549596786499,
-0.1399480700492859,
-0.3102690577507019,
-0.10756148397922516,
-0.1293211728334427,
0.20053215324878693,
-0.11239408701658249,
0.02567145973443985,
0.005595583003014326,
-0.08788860589265823,
-0.31055185198783875,
-0.04196375608444214,
0.6014830470085144,
-0.07181330025196075,
-0.06634939461946487,
0.32715433835983276,
0.062490612268447876,
-0.18431729078292847,
-0.2428678572177887,
0.19904012978076935,
-0.004433677066117525,
-0.4677983522415161,
-0.09300795942544937,
0.06878098845481873,
0.05869622156023979,
-0.11389011889696121,
0.07177619636058807,
0.22067590057849884,
0.10313533991575241,
0.03578341379761696,
-0.48030975461006165,
-0.5924566984176636,
-0.09012307971715927,
-0.012088645249605179,
0.14931301772594452,
0.4447925388813019,
0.2230703979730606,
0.05577884614467621,
0.10906801372766495,
-0.3599545955657959,
-0.06756049394607544,
-0.18957023322582245,
0.1576155573129654,
0.5117639899253845,
-0.2647097110748291,
0.1770644187927246,
-0.15526986122131348,
0.2409113049507141,
-0.14292307198047638,
-0.1262865960597992,
-0.31334614753723145,
0.0018987978110089898,
0.06184503436088562,
0.020243894308805466,
-0.3433450758457184,
-0.33765509724617004,
-0.26847583055496216,
-0.014810118824243546,
-0.07406280189752579,
-0.00034182946546934545,
0.21307650208473206,
-0.11873099207878113,
0.21216152608394623,
-0.24539290368556976,
0.08101385086774826,
-0.13400889933109283,
0.135055273771286,
-0.2799673080444336,
0.2402758151292801,
0.027082419022917747,
0.2827392518520355,
-0.0718643069267273,
-0.01944248005747795,
-0.4871894121170044,
-0.05400346592068672,
0.010927480645477772,
0.09868691116571426,
0.3070959150791168,
-0.18013721704483032,
-0.1373220682144165,
0.0053285760805010796,
0.3991224467754364,
0.2806524634361267,
-0.2605659067630768,
0.01644829288125038,
0.12060589343309402,
0.3077172636985779,
-0.21690958738327026,
-0.11241760104894638,
0.15963652729988098,
0.0255119688808918,
0.2056993842124939,
-0.023340383544564247,
0.08173950016498566,
-0.1946599930524826,
0.2731689214706421,
0.03548254817724228,
0.4447300136089325,
-0.0881810337305069,
0.20259402692317963,
0.6118382811546326,
0.019739648327231407,
-0.0029399998020380735,
0.1617928296327591,
0.17206791043281555,
0.19419847428798676,
0.4270901083946228,
-0.17929238080978394,
-0.08740714192390442,
-0.060370851308107376,
0.16990827023983002,
-0.17825259268283844,
-0.47331318259239197,
0.14328041672706604,
-0.15970703959465027,
-0.298828661441803,
-0.06702275574207306,
0.04967435449361801,
0.28032249212265015,
-0.2598396837711334,
0.07498760521411896,
-0.10565610975027084,
0.16085736453533173,
-0.09228973090648651,
-0.1408543586730957,
0.08977052569389343,
-0.07309673726558685,
-0.12902598083019257,
-0.04255658760666847,
0.11327216774225235,
0.08388775587081909,
0.27757972478866577,
0.2630515694618225,
-0.0881883054971695,
-0.20061413943767548,
0.19708845019340515,
0.22083687782287598,
-0.05574839189648628,
-0.1138678640127182,
0.1557372659444809,
0.3445373773574829,
0.17394095659255981,
-0.13113011419773102,
0.17611972987651825,
0.6315094232559204,
0.34706154465675354,
0.0025089476257562637,
0.2030489593744278,
-0.11244849860668182,
-0.14246615767478943,
-0.08644437789916992,
0.02515893429517746,
-0.09247411787509918,
0.207027867436409,
0.3563936650753021,
0.3213759660720825,
-0.19019924104213715,
0.3339127004146576,
-0.04639465734362602,
-0.1453467607498169,
-0.19388745725154877,
0.3707825243473053,
0.0753013864159584,
-0.2841675281524658,
-0.12542161345481873,
0.015040507540106773,
-0.40214166045188904,
0.06934380531311035,
0.46562108397483826,
0.010683737695217133,
0.2924721837043762,
0.0018879218259826303,
0.10944399982690811,
-0.0905618891119957,
0.4269726872444153,
0.14451131224632263,
0.37634897232055664,
-0.4452260732650757,
0.01128710713237524,
-0.5027247667312622,
0.18294693529605865,
-0.03917921707034111,
0.05342062562704086,
-0.04423590004444122,
0.17016920447349548,
0.01051585003733635,
0.2027025669813156,
-0.14749880135059357,
-0.05667022243142128,
0.017852962017059326,
0.12563425302505493,
0.02693975530564785,
-0.16315457224845886,
-0.20206885039806366,
0.05830061435699463,
-0.0021003654692322016,
-0.39048680663108826,
0.2174806296825409,
0.021083885803818703,
0.14058001339435577,
-0.26311033964157104,
-0.06372459977865219,
0.1954774409532547,
0.12738944590091705,
0.390739381313324,
0.1600232720375061,
0.6441072821617126,
-0.10564858466386795,
0.08293747901916504,
-0.06830887496471405,
-0.25430724024772644,
0.015144291333854198,
0.19531652331352234,
0.2678677439689636,
0.21443666517734528,
-0.08898661285638809,
-0.3141353726387024,
-0.47147291898727417,
0.399718701839447,
-0.05411340668797493,
-0.08573883026838303,
-0.04443245008587837,
-0.10151353478431702,
-0.029540276154875755,
0.04289207607507706,
0.03819446265697479,
-0.033093441277742386,
0.01173468679189682,
0.21084803342819214,
-0.1760050654411316,
-0.4096628725528717,
0.41831207275390625,
-0.2643606960773468,
-0.2504855990409851,
-0.17109981179237366,
0.27817827463150024,
-0.04632914066314697,
0.2893793284893036,
-0.27733078598976135,
0.29582375288009644,
0.45240306854248047,
-0.2110675871372223,
-0.21477706730365753,
0.22344017028808594,
0.019069772213697433,
0.2123969942331314,
-0.03966166451573372,
0.46950116753578186,
0.10085932910442352,
-0.24279670417308807,
-0.15513068437576294,
-0.21959038078784943
] |
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.3247124254703522,
0.016103381291031837,
-0.10880527645349503,
0.02600514143705368,
0.24204233288764954,
0.0198686420917511,
0.7173686027526855,
0.3756368160247803,
0.2509216070175171,
0.13370417058467865,
-0.03423228859901428,
0.14970433712005615,
0.07979945093393326,
0.021184252575039864,
-0.12693192064762115,
-0.1772819608449936,
-0.12715744972229004,
0.27433180809020996,
-0.4187990128993988,
0.01449766755104065,
-0.12488517165184021,
-0.002357104793190956,
-0.03493792563676834,
0.14053380489349365,
-0.20246416330337524,
-0.006238663103431463,
0.11578165739774704,
0.13127698004245758,
-0.027691785246133804,
-0.4939194917678833,
0.3365217447280884,
0.04025005176663399,
0.3237732946872711,
0.36321720480918884,
-0.00010603083501337096,
0.2135232388973236,
0.25174033641815186,
-0.028866857290267944,
-0.4279080629348755,
-0.46111053228378296,
-0.10899172723293304,
-0.3690284192562103,
0.42281243205070496,
-0.3986189365386963,
0.0005733193829655647,
-0.11989777535200119,
-0.0673586055636406,
-0.31619885563850403,
0.43138885498046875,
0.47850170731544495,
0.2786400318145752,
0.41547542810440063,
0.01658371463418007,
-0.11103420704603195,
0.07182258367538452,
0.05553407222032547,
-0.06249172240495682,
0.40612781047821045,
0.051623810082674026,
-0.18498985469341278,
-0.24267764389514923,
0.08461245894432068,
-0.1926988959312439,
0.3955325186252594,
0.19060291349887848,
0.08309604972600937,
0.03777122125029564,
-0.1966341882944107,
0.1252264827489853,
0.10768324881792068,
0.47648900747299194,
-0.23145480453968048,
-0.23214618861675262,
-0.05849829688668251,
-0.19948166608810425,
-0.18815772235393524,
0.1660739779472351,
0.08673159778118134,
-0.1683371216058731,
0.14744089543819427,
-0.2638406455516815,
0.0990801677107811,
-0.3907521367073059,
0.14945514500141144,
-0.11051132529973984,
0.15475815534591675,
-0.06718426942825317,
0.1947447955608368,
0.15826477110385895,
-0.056483373045921326,
0.4036886990070343,
-0.20703408122062683,
0.19160915911197662,
0.1276625096797943,
-0.3377634882926941,
0.1311570554971695,
0.13940399885177612,
-0.38613396883010864,
-0.10645744204521179,
0.049894630908966064,
-0.03617501258850098,
-0.05359082296490669,
0.13355165719985962,
0.29164689779281616,
0.1983603835105896,
0.07914328575134277,
-0.1308651715517044,
0.2947739362716675,
0.26872479915618896,
0.13256266713142395,
0.042261309921741486,
-0.062484871596097946,
-0.08005805313587189,
-0.3558063507080078,
0.16349782049655914,
0.1999800205230713,
0.48945900797843933,
-0.04742776229977608,
-0.2816002666950226,
0.13264018297195435,
0.012910336256027222,
-0.10737299174070358,
0.018969401717185974,
0.35893142223358154,
-0.08796925097703934,
0.20431534945964813,
0.04245316982269287,
0.013688702136278152,
-0.22352798283100128,
0.08454356342554092,
-0.21208427846431732,
0.037956055253744125,
-0.1193305104970932,
-0.06953200697898865,
0.381331205368042,
-0.0790894478559494,
0.046633731573820114,
-0.014668883755803108,
0.09893042594194412,
0.05034844949841499,
0.26117050647735596,
-0.2932831645011902,
0.04918236657977104,
0.4129320979118347,
0.05615432932972908,
0.24788370728492737,
0.4095258116722107,
-0.18423354625701904,
-0.10606054961681366,
0.08659051358699799,
-0.2045431137084961,
-0.33716943860054016,
-0.3385483920574188,
0.24021188914775848,
0.03689013049006462,
0.10894148796796799,
-0.01846623793244362,
-0.33027470111846924,
0.09865926951169968,
-0.27471575140953064,
-0.15415939688682556,
-0.3237553834915161,
-0.03890474885702133,
-0.21599151194095612,
0.3081875741481781,
0.646335244178772,
-0.43031713366508484,
0.04295613616704941,
0.05663686990737915,
-0.12991656363010406,
0.14146064221858978,
0.25084781646728516,
-0.3076954483985901,
0.08512597531080246,
-0.228460893034935,
-0.09667721390724182,
0.2314833402633667,
-0.30937495827674866,
-0.3032819926738739,
0.5005186200141907,
-0.2373456060886383,
-0.0729445293545723,
0.21697789430618286,
0.012616573832929134,
0.2910565733909607,
0.18582850694656372,
0.26151391863822937,
0.3000475764274597,
-0.10075877606868744,
0.117552749812603,
-0.07992347329854965,
-0.22256116569042206,
0.1973573863506317,
0.1164560616016388,
0.009815984405577183,
0.22318394482135773,
0.3249671161174774,
-0.25798025727272034,
0.17411409318447113,
-0.07687226682901382,
0.14479191601276398,
0.1345081329345703,
0.17397208511829376,
0.04198486730456352,
-0.060600124299526215,
-0.021664876490831375,
-0.5085174441337585,
0.13815544545650482,
0.13109125196933746,
0.09030017256736755,
-0.4376564919948578,
-0.016269410029053688,
-0.37712377309799194,
0.005171275697648525,
-0.2671610116958618,
-0.030242227017879486,
0.21001744270324707,
0.34153085947036743,
-0.019158674404025078,
-0.052317600697278976,
-0.048856597393751144,
0.3256906569004059,
-0.11661318689584732,
-0.019255800172686577,
-0.4156300723552704,
0.33955562114715576,
-0.354469895362854,
-0.06900352984666824,
0.052354320883750916,
-0.03142041712999344,
0.16265039145946503,
-0.18255585432052612,
-0.2719686031341553,
0.3561229705810547,
-0.09558561444282532,
0.2182246595621109,
0.017049774527549744,
-0.004438994452357292,
0.05262022837996483,
-0.2450999766588211,
0.03237707167863846,
0.031114304438233376,
0.15333165228366852,
0.043183308094739914,
-0.261312872171402,
0.3525983989238739,
-0.09534906595945358,
0.1633690446615219,
0.050654228776693344,
0.0704115480184555,
0.451421320438385,
0.011993863619863987,
-0.11404738575220108,
-0.10850923508405685,
0.1054946780204773,
0.23892144858837128,
0.22623565793037415,
0.049103204160928726,
-0.18027198314666748,
-0.188624769449234,
0.2018602192401886,
-0.1532270759344101,
0.011607938446104527,
0.09235332161188126,
-0.10862259566783905,
-0.04428116977214813,
0.21468421816825867,
0.23191919922828674,
0.5149134993553162,
0.10260234773159027,
-0.1526021957397461,
-0.01832135207951069,
-0.05032249540090561,
-0.13382300734519958,
0.11027868092060089,
-0.03869283199310303,
0.044877681881189346,
0.32726341485977173,
0.07598182559013367,
0.10698068886995316,
-0.2410079538822174,
-0.3630867898464203,
-0.04194872826337814,
0.26388871669769287,
-0.3492997884750366,
0.24792687594890594,
-0.1645682156085968,
0.018282292410731316,
-0.265902042388916,
-0.05033007636666298,
-0.11049897223711014,
-0.17807325720787048,
-0.3695806860923767,
0.3607576787471771,
-0.07638196647167206,
0.23725269734859467,
-0.2790002226829529,
-0.05164273828268051,
0.38798439502716064,
-0.44983285665512085,
-0.07305975258350372,
-0.20816579461097717,
-0.16014620661735535,
0.0924808531999588,
0.09350928664207458,
-0.15689221024513245,
0.30316558480262756,
-0.09899260848760605,
0.020526176318526268,
-0.1610632985830307,
-0.023834416642785072,
-0.08211684226989746,
0.012528127059340477,
0.12830525636672974,
0.18785417079925537,
0.4475228786468506,
0.12060218304395676,
-0.5035615563392639,
0.31845471262931824,
-0.08349719643592834,
0.048193689435720444,
0.19645652174949646,
-0.05370315909385681,
-0.20325587689876556,
0.0006875913240946829,
-0.6345357298851013,
-0.5991463661193848,
-0.4698646664619446,
0.1375347077846527,
0.06650941073894501,
0.21323217451572418,
0.2955242395401001,
0.22690168023109436,
0.20992311835289001,
0.08665785938501358,
0.07574920356273651,
-0.05961291491985321,
-0.15918445587158203,
0.34999921917915344,
-0.234960675239563,
-0.3570282757282257,
-0.11339561641216278,
-0.11525502800941467,
0.12194498628377914,
0.13648562133312225,
-0.44477578997612,
-0.02361636608839035,
-0.17468376457691193,
0.3565394878387451,
-0.04672414809465408,
0.05170492082834244,
0.4662778675556183,
0.16865718364715576,
-0.1706286519765854,
0.11266113817691803,
-0.24418598413467407,
-0.1408117711544037,
0.1942562311887741,
0.08437056839466095,
0.004410606808960438,
0.45936980843544006,
-0.15895922482013702,
0.6532878875732422,
-0.07980813831090927,
-0.18971042335033417,
0.2884310483932495,
-0.13622577488422394,
0.3429660499095917,
-0.18450714647769928,
-0.6308502554893494,
-0.09177834540605545,
-0.3062288463115692,
-0.20188280940055847,
0.010753165930509567,
-0.22972965240478516,
-0.2305869311094284,
-0.36419954895973206,
0.018699072301387787,
-0.3049337565898895,
-0.3137819170951843,
0.13632476329803467,
-0.11969742178916931,
0.3635420501232147,
0.04688134416937828,
-0.013036279007792473,
-0.25293707847595215,
-0.06005767732858658,
-0.24862784147262573,
0.3659869432449341,
-0.006222774274647236,
-0.09316585212945938,
-0.2668780982494354,
0.10691213607788086,
-0.281080424785614,
0.24323712289333344,
0.08004964143037796,
0.5622859001159668,
-0.20270797610282898,
-0.18679524958133698,
-0.037792451679706573,
0.0581570640206337,
0.402822345495224,
0.08844485133886337,
0.08746356517076492,
0.25638774037361145,
-0.0515902042388916,
-0.3120604157447815,
-0.08621209114789963,
-0.08868389576673508,
0.22119449079036713,
0.22770018875598907,
0.460794061422348,
0.05911487340927124,
-0.12697730958461761,
0.3169074058532715,
0.2359127402305603,
-0.08725614100694656,
-0.17905405163764954,
-0.2838764488697052,
-0.05081154406070709,
-0.3215528726577759,
-0.10537328571081161,
-0.11184182018041611,
0.17903266847133636,
-0.17329084873199463,
-0.12812820076942444,
0.07372362166643143,
-0.1710193157196045,
0.0011038572993129492,
0.11931975185871124,
-0.14569918811321259,
0.09597685933113098,
0.21791715919971466,
0.19069713354110718,
0.26288720965385437,
0.20216074585914612,
0.4429311454296112,
-0.20944947004318237,
-0.5551639795303345,
0.1772613525390625,
-0.01455550268292427,
0.10783123224973679,
0.10523667186498642,
-0.13693591952323914,
-0.14875838160514832,
0.17527452111244202,
0.18085694313049316,
-0.15395697951316833,
0.19385264813899994,
0.24986745417118073,
-0.11665432900190353,
-0.35298725962638855,
-0.4148058295249939,
0.13144393265247345,
-0.20059208571910858,
-0.09675164520740509,
0.19510190188884735,
-0.3385474979877472,
-0.06351567804813385,
0.2595232129096985,
-0.15831045806407928,
0.6695197820663452,
-0.1268925815820694,
0.18091654777526855,
0.16285310685634613,
-0.13451480865478516,
0.44838276505470276,
-0.15749214589595795,
0.11926182359457016,
-0.34411516785621643,
-0.2360045313835144,
-0.09949714690446854,
-0.24985767900943756,
0.3218547999858856,
0.00986869540065527,
-0.09696245193481445,
0.23642171919345856,
-0.06141688674688339,
0.28134816884994507,
0.065279021859169,
0.22038143873214722,
0.06127874180674553,
-0.2302684336900711,
-0.18300773203372955,
0.19012033939361572,
-0.09313639253377914,
0.41345617175102234,
0.029970914125442505,
-0.11374130100011826,
-0.012484224513173103,
-0.36156681180000305,
-0.04313931614160538,
0.05932124704122543,
-0.2830665409564972,
0.41366276144981384,
0.0488286055624485,
-0.35365477204322815,
-0.05514174699783325,
0.13816989958286285,
-0.15337535738945007,
0.07832982391119003,
-0.14985056221485138,
-0.0794561430811882,
-0.10809093713760376,
-0.06119728088378906,
-0.11690235137939453,
-0.0029084470588713884,
0.14739881455898285,
0.08248361945152283,
-0.26854953169822693,
0.2755722105503082,
-0.11783112585544586,
-0.3403712809085846,
0.18283630907535553,
0.2773400545120239,
0.26229238510131836,
-0.506549596786499,
-0.1399480700492859,
-0.3102690577507019,
-0.10756148397922516,
-0.1293211728334427,
0.20053215324878693,
-0.11239408701658249,
0.02567145973443985,
0.005595583003014326,
-0.08788860589265823,
-0.31055185198783875,
-0.04196375608444214,
0.6014830470085144,
-0.07181330025196075,
-0.06634939461946487,
0.32715433835983276,
0.062490612268447876,
-0.18431729078292847,
-0.2428678572177887,
0.19904012978076935,
-0.004433677066117525,
-0.4677983522415161,
-0.09300795942544937,
0.06878098845481873,
0.05869622156023979,
-0.11389011889696121,
0.07177619636058807,
0.22067590057849884,
0.10313533991575241,
0.03578341379761696,
-0.48030975461006165,
-0.5924566984176636,
-0.09012307971715927,
-0.012088645249605179,
0.14931301772594452,
0.4447925388813019,
0.2230703979730606,
0.05577884614467621,
0.10906801372766495,
-0.3599545955657959,
-0.06756049394607544,
-0.18957023322582245,
0.1576155573129654,
0.5117639899253845,
-0.2647097110748291,
0.1770644187927246,
-0.15526986122131348,
0.2409113049507141,
-0.14292307198047638,
-0.1262865960597992,
-0.31334614753723145,
0.0018987978110089898,
0.06184503436088562,
0.020243894308805466,
-0.3433450758457184,
-0.33765509724617004,
-0.26847583055496216,
-0.014810118824243546,
-0.07406280189752579,
-0.00034182946546934545,
0.21307650208473206,
-0.11873099207878113,
0.21216152608394623,
-0.24539290368556976,
0.08101385086774826,
-0.13400889933109283,
0.135055273771286,
-0.2799673080444336,
0.2402758151292801,
0.027082419022917747,
0.2827392518520355,
-0.0718643069267273,
-0.01944248005747795,
-0.4871894121170044,
-0.05400346592068672,
0.010927480645477772,
0.09868691116571426,
0.3070959150791168,
-0.18013721704483032,
-0.1373220682144165,
0.0053285760805010796,
0.3991224467754364,
0.2806524634361267,
-0.2605659067630768,
0.01644829288125038,
0.12060589343309402,
0.3077172636985779,
-0.21690958738327026,
-0.11241760104894638,
0.15963652729988098,
0.0255119688808918,
0.2056993842124939,
-0.023340383544564247,
0.08173950016498566,
-0.1946599930524826,
0.2731689214706421,
0.03548254817724228,
0.4447300136089325,
-0.0881810337305069,
0.20259402692317963,
0.6118382811546326,
0.019739648327231407,
-0.0029399998020380735,
0.1617928296327591,
0.17206791043281555,
0.19419847428798676,
0.4270901083946228,
-0.17929238080978394,
-0.08740714192390442,
-0.060370851308107376,
0.16990827023983002,
-0.17825259268283844,
-0.47331318259239197,
0.14328041672706604,
-0.15970703959465027,
-0.298828661441803,
-0.06702275574207306,
0.04967435449361801,
0.28032249212265015,
-0.2598396837711334,
0.07498760521411896,
-0.10565610975027084,
0.16085736453533173,
-0.09228973090648651,
-0.1408543586730957,
0.08977052569389343,
-0.07309673726558685,
-0.12902598083019257,
-0.04255658760666847,
0.11327216774225235,
0.08388775587081909,
0.27757972478866577,
0.2630515694618225,
-0.0881883054971695,
-0.20061413943767548,
0.19708845019340515,
0.22083687782287598,
-0.05574839189648628,
-0.1138678640127182,
0.1557372659444809,
0.3445373773574829,
0.17394095659255981,
-0.13113011419773102,
0.17611972987651825,
0.6315094232559204,
0.34706154465675354,
0.0025089476257562637,
0.2030489593744278,
-0.11244849860668182,
-0.14246615767478943,
-0.08644437789916992,
0.02515893429517746,
-0.09247411787509918,
0.207027867436409,
0.3563936650753021,
0.3213759660720825,
-0.19019924104213715,
0.3339127004146576,
-0.04639465734362602,
-0.1453467607498169,
-0.19388745725154877,
0.3707825243473053,
0.0753013864159584,
-0.2841675281524658,
-0.12542161345481873,
0.015040507540106773,
-0.40214166045188904,
0.06934380531311035,
0.46562108397483826,
0.010683737695217133,
0.2924721837043762,
0.0018879218259826303,
0.10944399982690811,
-0.0905618891119957,
0.4269726872444153,
0.14451131224632263,
0.37634897232055664,
-0.4452260732650757,
0.01128710713237524,
-0.5027247667312622,
0.18294693529605865,
-0.03917921707034111,
0.05342062562704086,
-0.04423590004444122,
0.17016920447349548,
0.01051585003733635,
0.2027025669813156,
-0.14749880135059357,
-0.05667022243142128,
0.017852962017059326,
0.12563425302505493,
0.02693975530564785,
-0.16315457224845886,
-0.20206885039806366,
0.05830061435699463,
-0.0021003654692322016,
-0.39048680663108826,
0.2174806296825409,
0.021083885803818703,
0.14058001339435577,
-0.26311033964157104,
-0.06372459977865219,
0.1954774409532547,
0.12738944590091705,
0.390739381313324,
0.1600232720375061,
0.6441072821617126,
-0.10564858466386795,
0.08293747901916504,
-0.06830887496471405,
-0.25430724024772644,
0.015144291333854198,
0.19531652331352234,
0.2678677439689636,
0.21443666517734528,
-0.08898661285638809,
-0.3141353726387024,
-0.47147291898727417,
0.399718701839447,
-0.05411340668797493,
-0.08573883026838303,
-0.04443245008587837,
-0.10151353478431702,
-0.029540276154875755,
0.04289207607507706,
0.03819446265697479,
-0.033093441277742386,
0.01173468679189682,
0.21084803342819214,
-0.1760050654411316,
-0.4096628725528717,
0.41831207275390625,
-0.2643606960773468,
-0.2504855990409851,
-0.17109981179237366,
0.27817827463150024,
-0.04632914066314697,
0.2893793284893036,
-0.27733078598976135,
0.29582375288009644,
0.45240306854248047,
-0.2110675871372223,
-0.21477706730365753,
0.22344017028808594,
0.019069772213697433,
0.2123969942331314,
-0.03966166451573372,
0.46950116753578186,
0.10085932910442352,
-0.24279670417308807,
-0.15513068437576294,
-0.21959038078784943
] |
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.3247124254703522,
0.016103381291031837,
-0.10880527645349503,
0.02600514143705368,
0.24204233288764954,
0.0198686420917511,
0.7173686027526855,
0.3756368160247803,
0.2509216070175171,
0.13370417058467865,
-0.03423228859901428,
0.14970433712005615,
0.07979945093393326,
0.021184252575039864,
-0.12693192064762115,
-0.1772819608449936,
-0.12715744972229004,
0.27433180809020996,
-0.4187990128993988,
0.01449766755104065,
-0.12488517165184021,
-0.002357104793190956,
-0.03493792563676834,
0.14053380489349365,
-0.20246416330337524,
-0.006238663103431463,
0.11578165739774704,
0.13127698004245758,
-0.027691785246133804,
-0.4939194917678833,
0.3365217447280884,
0.04025005176663399,
0.3237732946872711,
0.36321720480918884,
-0.00010603083501337096,
0.2135232388973236,
0.25174033641815186,
-0.028866857290267944,
-0.4279080629348755,
-0.46111053228378296,
-0.10899172723293304,
-0.3690284192562103,
0.42281243205070496,
-0.3986189365386963,
0.0005733193829655647,
-0.11989777535200119,
-0.0673586055636406,
-0.31619885563850403,
0.43138885498046875,
0.47850170731544495,
0.2786400318145752,
0.41547542810440063,
0.01658371463418007,
-0.11103420704603195,
0.07182258367538452,
0.05553407222032547,
-0.06249172240495682,
0.40612781047821045,
0.051623810082674026,
-0.18498985469341278,
-0.24267764389514923,
0.08461245894432068,
-0.1926988959312439,
0.3955325186252594,
0.19060291349887848,
0.08309604972600937,
0.03777122125029564,
-0.1966341882944107,
0.1252264827489853,
0.10768324881792068,
0.47648900747299194,
-0.23145480453968048,
-0.23214618861675262,
-0.05849829688668251,
-0.19948166608810425,
-0.18815772235393524,
0.1660739779472351,
0.08673159778118134,
-0.1683371216058731,
0.14744089543819427,
-0.2638406455516815,
0.0990801677107811,
-0.3907521367073059,
0.14945514500141144,
-0.11051132529973984,
0.15475815534591675,
-0.06718426942825317,
0.1947447955608368,
0.15826477110385895,
-0.056483373045921326,
0.4036886990070343,
-0.20703408122062683,
0.19160915911197662,
0.1276625096797943,
-0.3377634882926941,
0.1311570554971695,
0.13940399885177612,
-0.38613396883010864,
-0.10645744204521179,
0.049894630908966064,
-0.03617501258850098,
-0.05359082296490669,
0.13355165719985962,
0.29164689779281616,
0.1983603835105896,
0.07914328575134277,
-0.1308651715517044,
0.2947739362716675,
0.26872479915618896,
0.13256266713142395,
0.042261309921741486,
-0.062484871596097946,
-0.08005805313587189,
-0.3558063507080078,
0.16349782049655914,
0.1999800205230713,
0.48945900797843933,
-0.04742776229977608,
-0.2816002666950226,
0.13264018297195435,
0.012910336256027222,
-0.10737299174070358,
0.018969401717185974,
0.35893142223358154,
-0.08796925097703934,
0.20431534945964813,
0.04245316982269287,
0.013688702136278152,
-0.22352798283100128,
0.08454356342554092,
-0.21208427846431732,
0.037956055253744125,
-0.1193305104970932,
-0.06953200697898865,
0.381331205368042,
-0.0790894478559494,
0.046633731573820114,
-0.014668883755803108,
0.09893042594194412,
0.05034844949841499,
0.26117050647735596,
-0.2932831645011902,
0.04918236657977104,
0.4129320979118347,
0.05615432932972908,
0.24788370728492737,
0.4095258116722107,
-0.18423354625701904,
-0.10606054961681366,
0.08659051358699799,
-0.2045431137084961,
-0.33716943860054016,
-0.3385483920574188,
0.24021188914775848,
0.03689013049006462,
0.10894148796796799,
-0.01846623793244362,
-0.33027470111846924,
0.09865926951169968,
-0.27471575140953064,
-0.15415939688682556,
-0.3237553834915161,
-0.03890474885702133,
-0.21599151194095612,
0.3081875741481781,
0.646335244178772,
-0.43031713366508484,
0.04295613616704941,
0.05663686990737915,
-0.12991656363010406,
0.14146064221858978,
0.25084781646728516,
-0.3076954483985901,
0.08512597531080246,
-0.228460893034935,
-0.09667721390724182,
0.2314833402633667,
-0.30937495827674866,
-0.3032819926738739,
0.5005186200141907,
-0.2373456060886383,
-0.0729445293545723,
0.21697789430618286,
0.012616573832929134,
0.2910565733909607,
0.18582850694656372,
0.26151391863822937,
0.3000475764274597,
-0.10075877606868744,
0.117552749812603,
-0.07992347329854965,
-0.22256116569042206,
0.1973573863506317,
0.1164560616016388,
0.009815984405577183,
0.22318394482135773,
0.3249671161174774,
-0.25798025727272034,
0.17411409318447113,
-0.07687226682901382,
0.14479191601276398,
0.1345081329345703,
0.17397208511829376,
0.04198486730456352,
-0.060600124299526215,
-0.021664876490831375,
-0.5085174441337585,
0.13815544545650482,
0.13109125196933746,
0.09030017256736755,
-0.4376564919948578,
-0.016269410029053688,
-0.37712377309799194,
0.005171275697648525,
-0.2671610116958618,
-0.030242227017879486,
0.21001744270324707,
0.34153085947036743,
-0.019158674404025078,
-0.052317600697278976,
-0.048856597393751144,
0.3256906569004059,
-0.11661318689584732,
-0.019255800172686577,
-0.4156300723552704,
0.33955562114715576,
-0.354469895362854,
-0.06900352984666824,
0.052354320883750916,
-0.03142041712999344,
0.16265039145946503,
-0.18255585432052612,
-0.2719686031341553,
0.3561229705810547,
-0.09558561444282532,
0.2182246595621109,
0.017049774527549744,
-0.004438994452357292,
0.05262022837996483,
-0.2450999766588211,
0.03237707167863846,
0.031114304438233376,
0.15333165228366852,
0.043183308094739914,
-0.261312872171402,
0.3525983989238739,
-0.09534906595945358,
0.1633690446615219,
0.050654228776693344,
0.0704115480184555,
0.451421320438385,
0.011993863619863987,
-0.11404738575220108,
-0.10850923508405685,
0.1054946780204773,
0.23892144858837128,
0.22623565793037415,
0.049103204160928726,
-0.18027198314666748,
-0.188624769449234,
0.2018602192401886,
-0.1532270759344101,
0.011607938446104527,
0.09235332161188126,
-0.10862259566783905,
-0.04428116977214813,
0.21468421816825867,
0.23191919922828674,
0.5149134993553162,
0.10260234773159027,
-0.1526021957397461,
-0.01832135207951069,
-0.05032249540090561,
-0.13382300734519958,
0.11027868092060089,
-0.03869283199310303,
0.044877681881189346,
0.32726341485977173,
0.07598182559013367,
0.10698068886995316,
-0.2410079538822174,
-0.3630867898464203,
-0.04194872826337814,
0.26388871669769287,
-0.3492997884750366,
0.24792687594890594,
-0.1645682156085968,
0.018282292410731316,
-0.265902042388916,
-0.05033007636666298,
-0.11049897223711014,
-0.17807325720787048,
-0.3695806860923767,
0.3607576787471771,
-0.07638196647167206,
0.23725269734859467,
-0.2790002226829529,
-0.05164273828268051,
0.38798439502716064,
-0.44983285665512085,
-0.07305975258350372,
-0.20816579461097717,
-0.16014620661735535,
0.0924808531999588,
0.09350928664207458,
-0.15689221024513245,
0.30316558480262756,
-0.09899260848760605,
0.020526176318526268,
-0.1610632985830307,
-0.023834416642785072,
-0.08211684226989746,
0.012528127059340477,
0.12830525636672974,
0.18785417079925537,
0.4475228786468506,
0.12060218304395676,
-0.5035615563392639,
0.31845471262931824,
-0.08349719643592834,
0.048193689435720444,
0.19645652174949646,
-0.05370315909385681,
-0.20325587689876556,
0.0006875913240946829,
-0.6345357298851013,
-0.5991463661193848,
-0.4698646664619446,
0.1375347077846527,
0.06650941073894501,
0.21323217451572418,
0.2955242395401001,
0.22690168023109436,
0.20992311835289001,
0.08665785938501358,
0.07574920356273651,
-0.05961291491985321,
-0.15918445587158203,
0.34999921917915344,
-0.234960675239563,
-0.3570282757282257,
-0.11339561641216278,
-0.11525502800941467,
0.12194498628377914,
0.13648562133312225,
-0.44477578997612,
-0.02361636608839035,
-0.17468376457691193,
0.3565394878387451,
-0.04672414809465408,
0.05170492082834244,
0.4662778675556183,
0.16865718364715576,
-0.1706286519765854,
0.11266113817691803,
-0.24418598413467407,
-0.1408117711544037,
0.1942562311887741,
0.08437056839466095,
0.004410606808960438,
0.45936980843544006,
-0.15895922482013702,
0.6532878875732422,
-0.07980813831090927,
-0.18971042335033417,
0.2884310483932495,
-0.13622577488422394,
0.3429660499095917,
-0.18450714647769928,
-0.6308502554893494,
-0.09177834540605545,
-0.3062288463115692,
-0.20188280940055847,
0.010753165930509567,
-0.22972965240478516,
-0.2305869311094284,
-0.36419954895973206,
0.018699072301387787,
-0.3049337565898895,
-0.3137819170951843,
0.13632476329803467,
-0.11969742178916931,
0.3635420501232147,
0.04688134416937828,
-0.013036279007792473,
-0.25293707847595215,
-0.06005767732858658,
-0.24862784147262573,
0.3659869432449341,
-0.006222774274647236,
-0.09316585212945938,
-0.2668780982494354,
0.10691213607788086,
-0.281080424785614,
0.24323712289333344,
0.08004964143037796,
0.5622859001159668,
-0.20270797610282898,
-0.18679524958133698,
-0.037792451679706573,
0.0581570640206337,
0.402822345495224,
0.08844485133886337,
0.08746356517076492,
0.25638774037361145,
-0.0515902042388916,
-0.3120604157447815,
-0.08621209114789963,
-0.08868389576673508,
0.22119449079036713,
0.22770018875598907,
0.460794061422348,
0.05911487340927124,
-0.12697730958461761,
0.3169074058532715,
0.2359127402305603,
-0.08725614100694656,
-0.17905405163764954,
-0.2838764488697052,
-0.05081154406070709,
-0.3215528726577759,
-0.10537328571081161,
-0.11184182018041611,
0.17903266847133636,
-0.17329084873199463,
-0.12812820076942444,
0.07372362166643143,
-0.1710193157196045,
0.0011038572993129492,
0.11931975185871124,
-0.14569918811321259,
0.09597685933113098,
0.21791715919971466,
0.19069713354110718,
0.26288720965385437,
0.20216074585914612,
0.4429311454296112,
-0.20944947004318237,
-0.5551639795303345,
0.1772613525390625,
-0.01455550268292427,
0.10783123224973679,
0.10523667186498642,
-0.13693591952323914,
-0.14875838160514832,
0.17527452111244202,
0.18085694313049316,
-0.15395697951316833,
0.19385264813899994,
0.24986745417118073,
-0.11665432900190353,
-0.35298725962638855,
-0.4148058295249939,
0.13144393265247345,
-0.20059208571910858,
-0.09675164520740509,
0.19510190188884735,
-0.3385474979877472,
-0.06351567804813385,
0.2595232129096985,
-0.15831045806407928,
0.6695197820663452,
-0.1268925815820694,
0.18091654777526855,
0.16285310685634613,
-0.13451480865478516,
0.44838276505470276,
-0.15749214589595795,
0.11926182359457016,
-0.34411516785621643,
-0.2360045313835144,
-0.09949714690446854,
-0.24985767900943756,
0.3218547999858856,
0.00986869540065527,
-0.09696245193481445,
0.23642171919345856,
-0.06141688674688339,
0.28134816884994507,
0.065279021859169,
0.22038143873214722,
0.06127874180674553,
-0.2302684336900711,
-0.18300773203372955,
0.19012033939361572,
-0.09313639253377914,
0.41345617175102234,
0.029970914125442505,
-0.11374130100011826,
-0.012484224513173103,
-0.36156681180000305,
-0.04313931614160538,
0.05932124704122543,
-0.2830665409564972,
0.41366276144981384,
0.0488286055624485,
-0.35365477204322815,
-0.05514174699783325,
0.13816989958286285,
-0.15337535738945007,
0.07832982391119003,
-0.14985056221485138,
-0.0794561430811882,
-0.10809093713760376,
-0.06119728088378906,
-0.11690235137939453,
-0.0029084470588713884,
0.14739881455898285,
0.08248361945152283,
-0.26854953169822693,
0.2755722105503082,
-0.11783112585544586,
-0.3403712809085846,
0.18283630907535553,
0.2773400545120239,
0.26229238510131836,
-0.506549596786499,
-0.1399480700492859,
-0.3102690577507019,
-0.10756148397922516,
-0.1293211728334427,
0.20053215324878693,
-0.11239408701658249,
0.02567145973443985,
0.005595583003014326,
-0.08788860589265823,
-0.31055185198783875,
-0.04196375608444214,
0.6014830470085144,
-0.07181330025196075,
-0.06634939461946487,
0.32715433835983276,
0.062490612268447876,
-0.18431729078292847,
-0.2428678572177887,
0.19904012978076935,
-0.004433677066117525,
-0.4677983522415161,
-0.09300795942544937,
0.06878098845481873,
0.05869622156023979,
-0.11389011889696121,
0.07177619636058807,
0.22067590057849884,
0.10313533991575241,
0.03578341379761696,
-0.48030975461006165,
-0.5924566984176636,
-0.09012307971715927,
-0.012088645249605179,
0.14931301772594452,
0.4447925388813019,
0.2230703979730606,
0.05577884614467621,
0.10906801372766495,
-0.3599545955657959,
-0.06756049394607544,
-0.18957023322582245,
0.1576155573129654,
0.5117639899253845,
-0.2647097110748291,
0.1770644187927246,
-0.15526986122131348,
0.2409113049507141,
-0.14292307198047638,
-0.1262865960597992,
-0.31334614753723145,
0.0018987978110089898,
0.06184503436088562,
0.020243894308805466,
-0.3433450758457184,
-0.33765509724617004,
-0.26847583055496216,
-0.014810118824243546,
-0.07406280189752579,
-0.00034182946546934545,
0.21307650208473206,
-0.11873099207878113,
0.21216152608394623,
-0.24539290368556976,
0.08101385086774826,
-0.13400889933109283,
0.135055273771286,
-0.2799673080444336,
0.2402758151292801,
0.027082419022917747,
0.2827392518520355,
-0.0718643069267273,
-0.01944248005747795,
-0.4871894121170044,
-0.05400346592068672,
0.010927480645477772,
0.09868691116571426,
0.3070959150791168,
-0.18013721704483032,
-0.1373220682144165,
0.0053285760805010796,
0.3991224467754364,
0.2806524634361267,
-0.2605659067630768,
0.01644829288125038,
0.12060589343309402,
0.3077172636985779,
-0.21690958738327026,
-0.11241760104894638,
0.15963652729988098,
0.0255119688808918,
0.2056993842124939,
-0.023340383544564247,
0.08173950016498566,
-0.1946599930524826,
0.2731689214706421,
0.03548254817724228,
0.4447300136089325,
-0.0881810337305069,
0.20259402692317963,
0.6118382811546326,
0.019739648327231407,
-0.0029399998020380735,
0.1617928296327591,
0.17206791043281555,
0.19419847428798676,
0.4270901083946228,
-0.17929238080978394,
-0.08740714192390442,
-0.060370851308107376,
0.16990827023983002,
-0.17825259268283844,
-0.47331318259239197,
0.14328041672706604,
-0.15970703959465027,
-0.298828661441803,
-0.06702275574207306,
0.04967435449361801,
0.28032249212265015,
-0.2598396837711334,
0.07498760521411896,
-0.10565610975027084,
0.16085736453533173,
-0.09228973090648651,
-0.1408543586730957,
0.08977052569389343,
-0.07309673726558685,
-0.12902598083019257,
-0.04255658760666847,
0.11327216774225235,
0.08388775587081909,
0.27757972478866577,
0.2630515694618225,
-0.0881883054971695,
-0.20061413943767548,
0.19708845019340515,
0.22083687782287598,
-0.05574839189648628,
-0.1138678640127182,
0.1557372659444809,
0.3445373773574829,
0.17394095659255981,
-0.13113011419773102,
0.17611972987651825,
0.6315094232559204,
0.34706154465675354,
0.0025089476257562637,
0.2030489593744278,
-0.11244849860668182,
-0.14246615767478943,
-0.08644437789916992,
0.02515893429517746,
-0.09247411787509918,
0.207027867436409,
0.3563936650753021,
0.3213759660720825,
-0.19019924104213715,
0.3339127004146576,
-0.04639465734362602,
-0.1453467607498169,
-0.19388745725154877,
0.3707825243473053,
0.0753013864159584,
-0.2841675281524658,
-0.12542161345481873,
0.015040507540106773,
-0.40214166045188904,
0.06934380531311035,
0.46562108397483826,
0.010683737695217133,
0.2924721837043762,
0.0018879218259826303,
0.10944399982690811,
-0.0905618891119957,
0.4269726872444153,
0.14451131224632263,
0.37634897232055664,
-0.4452260732650757,
0.01128710713237524,
-0.5027247667312622,
0.18294693529605865,
-0.03917921707034111,
0.05342062562704086,
-0.04423590004444122,
0.17016920447349548,
0.01051585003733635,
0.2027025669813156,
-0.14749880135059357,
-0.05667022243142128,
0.017852962017059326,
0.12563425302505493,
0.02693975530564785,
-0.16315457224845886,
-0.20206885039806366,
0.05830061435699463,
-0.0021003654692322016,
-0.39048680663108826,
0.2174806296825409,
0.021083885803818703,
0.14058001339435577,
-0.26311033964157104,
-0.06372459977865219,
0.1954774409532547,
0.12738944590091705,
0.390739381313324,
0.1600232720375061,
0.6441072821617126,
-0.10564858466386795,
0.08293747901916504,
-0.06830887496471405,
-0.25430724024772644,
0.015144291333854198,
0.19531652331352234,
0.2678677439689636,
0.21443666517734528,
-0.08898661285638809,
-0.3141353726387024,
-0.47147291898727417,
0.399718701839447,
-0.05411340668797493,
-0.08573883026838303,
-0.04443245008587837,
-0.10151353478431702,
-0.029540276154875755,
0.04289207607507706,
0.03819446265697479,
-0.033093441277742386,
0.01173468679189682,
0.21084803342819214,
-0.1760050654411316,
-0.4096628725528717,
0.41831207275390625,
-0.2643606960773468,
-0.2504855990409851,
-0.17109981179237366,
0.27817827463150024,
-0.04632914066314697,
0.2893793284893036,
-0.27733078598976135,
0.29582375288009644,
0.45240306854248047,
-0.2110675871372223,
-0.21477706730365753,
0.22344017028808594,
0.019069772213697433,
0.2123969942331314,
-0.03966166451573372,
0.46950116753578186,
0.10085932910442352,
-0.24279670417308807,
-0.15513068437576294,
-0.21959038078784943
] |
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.3247124254703522,
0.016103381291031837,
-0.10880527645349503,
0.02600514143705368,
0.24204233288764954,
0.0198686420917511,
0.7173686027526855,
0.3756368160247803,
0.2509216070175171,
0.13370417058467865,
-0.03423228859901428,
0.14970433712005615,
0.07979945093393326,
0.021184252575039864,
-0.12693192064762115,
-0.1772819608449936,
-0.12715744972229004,
0.27433180809020996,
-0.4187990128993988,
0.01449766755104065,
-0.12488517165184021,
-0.002357104793190956,
-0.03493792563676834,
0.14053380489349365,
-0.20246416330337524,
-0.006238663103431463,
0.11578165739774704,
0.13127698004245758,
-0.027691785246133804,
-0.4939194917678833,
0.3365217447280884,
0.04025005176663399,
0.3237732946872711,
0.36321720480918884,
-0.00010603083501337096,
0.2135232388973236,
0.25174033641815186,
-0.028866857290267944,
-0.4279080629348755,
-0.46111053228378296,
-0.10899172723293304,
-0.3690284192562103,
0.42281243205070496,
-0.3986189365386963,
0.0005733193829655647,
-0.11989777535200119,
-0.0673586055636406,
-0.31619885563850403,
0.43138885498046875,
0.47850170731544495,
0.2786400318145752,
0.41547542810440063,
0.01658371463418007,
-0.11103420704603195,
0.07182258367538452,
0.05553407222032547,
-0.06249172240495682,
0.40612781047821045,
0.051623810082674026,
-0.18498985469341278,
-0.24267764389514923,
0.08461245894432068,
-0.1926988959312439,
0.3955325186252594,
0.19060291349887848,
0.08309604972600937,
0.03777122125029564,
-0.1966341882944107,
0.1252264827489853,
0.10768324881792068,
0.47648900747299194,
-0.23145480453968048,
-0.23214618861675262,
-0.05849829688668251,
-0.19948166608810425,
-0.18815772235393524,
0.1660739779472351,
0.08673159778118134,
-0.1683371216058731,
0.14744089543819427,
-0.2638406455516815,
0.0990801677107811,
-0.3907521367073059,
0.14945514500141144,
-0.11051132529973984,
0.15475815534591675,
-0.06718426942825317,
0.1947447955608368,
0.15826477110385895,
-0.056483373045921326,
0.4036886990070343,
-0.20703408122062683,
0.19160915911197662,
0.1276625096797943,
-0.3377634882926941,
0.1311570554971695,
0.13940399885177612,
-0.38613396883010864,
-0.10645744204521179,
0.049894630908966064,
-0.03617501258850098,
-0.05359082296490669,
0.13355165719985962,
0.29164689779281616,
0.1983603835105896,
0.07914328575134277,
-0.1308651715517044,
0.2947739362716675,
0.26872479915618896,
0.13256266713142395,
0.042261309921741486,
-0.062484871596097946,
-0.08005805313587189,
-0.3558063507080078,
0.16349782049655914,
0.1999800205230713,
0.48945900797843933,
-0.04742776229977608,
-0.2816002666950226,
0.13264018297195435,
0.012910336256027222,
-0.10737299174070358,
0.018969401717185974,
0.35893142223358154,
-0.08796925097703934,
0.20431534945964813,
0.04245316982269287,
0.013688702136278152,
-0.22352798283100128,
0.08454356342554092,
-0.21208427846431732,
0.037956055253744125,
-0.1193305104970932,
-0.06953200697898865,
0.381331205368042,
-0.0790894478559494,
0.046633731573820114,
-0.014668883755803108,
0.09893042594194412,
0.05034844949841499,
0.26117050647735596,
-0.2932831645011902,
0.04918236657977104,
0.4129320979118347,
0.05615432932972908,
0.24788370728492737,
0.4095258116722107,
-0.18423354625701904,
-0.10606054961681366,
0.08659051358699799,
-0.2045431137084961,
-0.33716943860054016,
-0.3385483920574188,
0.24021188914775848,
0.03689013049006462,
0.10894148796796799,
-0.01846623793244362,
-0.33027470111846924,
0.09865926951169968,
-0.27471575140953064,
-0.15415939688682556,
-0.3237553834915161,
-0.03890474885702133,
-0.21599151194095612,
0.3081875741481781,
0.646335244178772,
-0.43031713366508484,
0.04295613616704941,
0.05663686990737915,
-0.12991656363010406,
0.14146064221858978,
0.25084781646728516,
-0.3076954483985901,
0.08512597531080246,
-0.228460893034935,
-0.09667721390724182,
0.2314833402633667,
-0.30937495827674866,
-0.3032819926738739,
0.5005186200141907,
-0.2373456060886383,
-0.0729445293545723,
0.21697789430618286,
0.012616573832929134,
0.2910565733909607,
0.18582850694656372,
0.26151391863822937,
0.3000475764274597,
-0.10075877606868744,
0.117552749812603,
-0.07992347329854965,
-0.22256116569042206,
0.1973573863506317,
0.1164560616016388,
0.009815984405577183,
0.22318394482135773,
0.3249671161174774,
-0.25798025727272034,
0.17411409318447113,
-0.07687226682901382,
0.14479191601276398,
0.1345081329345703,
0.17397208511829376,
0.04198486730456352,
-0.060600124299526215,
-0.021664876490831375,
-0.5085174441337585,
0.13815544545650482,
0.13109125196933746,
0.09030017256736755,
-0.4376564919948578,
-0.016269410029053688,
-0.37712377309799194,
0.005171275697648525,
-0.2671610116958618,
-0.030242227017879486,
0.21001744270324707,
0.34153085947036743,
-0.019158674404025078,
-0.052317600697278976,
-0.048856597393751144,
0.3256906569004059,
-0.11661318689584732,
-0.019255800172686577,
-0.4156300723552704,
0.33955562114715576,
-0.354469895362854,
-0.06900352984666824,
0.052354320883750916,
-0.03142041712999344,
0.16265039145946503,
-0.18255585432052612,
-0.2719686031341553,
0.3561229705810547,
-0.09558561444282532,
0.2182246595621109,
0.017049774527549744,
-0.004438994452357292,
0.05262022837996483,
-0.2450999766588211,
0.03237707167863846,
0.031114304438233376,
0.15333165228366852,
0.043183308094739914,
-0.261312872171402,
0.3525983989238739,
-0.09534906595945358,
0.1633690446615219,
0.050654228776693344,
0.0704115480184555,
0.451421320438385,
0.011993863619863987,
-0.11404738575220108,
-0.10850923508405685,
0.1054946780204773,
0.23892144858837128,
0.22623565793037415,
0.049103204160928726,
-0.18027198314666748,
-0.188624769449234,
0.2018602192401886,
-0.1532270759344101,
0.011607938446104527,
0.09235332161188126,
-0.10862259566783905,
-0.04428116977214813,
0.21468421816825867,
0.23191919922828674,
0.5149134993553162,
0.10260234773159027,
-0.1526021957397461,
-0.01832135207951069,
-0.05032249540090561,
-0.13382300734519958,
0.11027868092060089,
-0.03869283199310303,
0.044877681881189346,
0.32726341485977173,
0.07598182559013367,
0.10698068886995316,
-0.2410079538822174,
-0.3630867898464203,
-0.04194872826337814,
0.26388871669769287,
-0.3492997884750366,
0.24792687594890594,
-0.1645682156085968,
0.018282292410731316,
-0.265902042388916,
-0.05033007636666298,
-0.11049897223711014,
-0.17807325720787048,
-0.3695806860923767,
0.3607576787471771,
-0.07638196647167206,
0.23725269734859467,
-0.2790002226829529,
-0.05164273828268051,
0.38798439502716064,
-0.44983285665512085,
-0.07305975258350372,
-0.20816579461097717,
-0.16014620661735535,
0.0924808531999588,
0.09350928664207458,
-0.15689221024513245,
0.30316558480262756,
-0.09899260848760605,
0.020526176318526268,
-0.1610632985830307,
-0.023834416642785072,
-0.08211684226989746,
0.012528127059340477,
0.12830525636672974,
0.18785417079925537,
0.4475228786468506,
0.12060218304395676,
-0.5035615563392639,
0.31845471262931824,
-0.08349719643592834,
0.048193689435720444,
0.19645652174949646,
-0.05370315909385681,
-0.20325587689876556,
0.0006875913240946829,
-0.6345357298851013,
-0.5991463661193848,
-0.4698646664619446,
0.1375347077846527,
0.06650941073894501,
0.21323217451572418,
0.2955242395401001,
0.22690168023109436,
0.20992311835289001,
0.08665785938501358,
0.07574920356273651,
-0.05961291491985321,
-0.15918445587158203,
0.34999921917915344,
-0.234960675239563,
-0.3570282757282257,
-0.11339561641216278,
-0.11525502800941467,
0.12194498628377914,
0.13648562133312225,
-0.44477578997612,
-0.02361636608839035,
-0.17468376457691193,
0.3565394878387451,
-0.04672414809465408,
0.05170492082834244,
0.4662778675556183,
0.16865718364715576,
-0.1706286519765854,
0.11266113817691803,
-0.24418598413467407,
-0.1408117711544037,
0.1942562311887741,
0.08437056839466095,
0.004410606808960438,
0.45936980843544006,
-0.15895922482013702,
0.6532878875732422,
-0.07980813831090927,
-0.18971042335033417,
0.2884310483932495,
-0.13622577488422394,
0.3429660499095917,
-0.18450714647769928,
-0.6308502554893494,
-0.09177834540605545,
-0.3062288463115692,
-0.20188280940055847,
0.010753165930509567,
-0.22972965240478516,
-0.2305869311094284,
-0.36419954895973206,
0.018699072301387787,
-0.3049337565898895,
-0.3137819170951843,
0.13632476329803467,
-0.11969742178916931,
0.3635420501232147,
0.04688134416937828,
-0.013036279007792473,
-0.25293707847595215,
-0.06005767732858658,
-0.24862784147262573,
0.3659869432449341,
-0.006222774274647236,
-0.09316585212945938,
-0.2668780982494354,
0.10691213607788086,
-0.281080424785614,
0.24323712289333344,
0.08004964143037796,
0.5622859001159668,
-0.20270797610282898,
-0.18679524958133698,
-0.037792451679706573,
0.0581570640206337,
0.402822345495224,
0.08844485133886337,
0.08746356517076492,
0.25638774037361145,
-0.0515902042388916,
-0.3120604157447815,
-0.08621209114789963,
-0.08868389576673508,
0.22119449079036713,
0.22770018875598907,
0.460794061422348,
0.05911487340927124,
-0.12697730958461761,
0.3169074058532715,
0.2359127402305603,
-0.08725614100694656,
-0.17905405163764954,
-0.2838764488697052,
-0.05081154406070709,
-0.3215528726577759,
-0.10537328571081161,
-0.11184182018041611,
0.17903266847133636,
-0.17329084873199463,
-0.12812820076942444,
0.07372362166643143,
-0.1710193157196045,
0.0011038572993129492,
0.11931975185871124,
-0.14569918811321259,
0.09597685933113098,
0.21791715919971466,
0.19069713354110718,
0.26288720965385437,
0.20216074585914612,
0.4429311454296112,
-0.20944947004318237,
-0.5551639795303345,
0.1772613525390625,
-0.01455550268292427,
0.10783123224973679,
0.10523667186498642,
-0.13693591952323914,
-0.14875838160514832,
0.17527452111244202,
0.18085694313049316,
-0.15395697951316833,
0.19385264813899994,
0.24986745417118073,
-0.11665432900190353,
-0.35298725962638855,
-0.4148058295249939,
0.13144393265247345,
-0.20059208571910858,
-0.09675164520740509,
0.19510190188884735,
-0.3385474979877472,
-0.06351567804813385,
0.2595232129096985,
-0.15831045806407928,
0.6695197820663452,
-0.1268925815820694,
0.18091654777526855,
0.16285310685634613,
-0.13451480865478516,
0.44838276505470276,
-0.15749214589595795,
0.11926182359457016,
-0.34411516785621643,
-0.2360045313835144,
-0.09949714690446854,
-0.24985767900943756,
0.3218547999858856,
0.00986869540065527,
-0.09696245193481445,
0.23642171919345856,
-0.06141688674688339,
0.28134816884994507,
0.065279021859169,
0.22038143873214722,
0.06127874180674553,
-0.2302684336900711,
-0.18300773203372955,
0.19012033939361572,
-0.09313639253377914,
0.41345617175102234,
0.029970914125442505,
-0.11374130100011826,
-0.012484224513173103,
-0.36156681180000305,
-0.04313931614160538,
0.05932124704122543,
-0.2830665409564972,
0.41366276144981384,
0.0488286055624485,
-0.35365477204322815,
-0.05514174699783325,
0.13816989958286285,
-0.15337535738945007,
0.07832982391119003,
-0.14985056221485138,
-0.0794561430811882,
-0.10809093713760376,
-0.06119728088378906,
-0.11690235137939453,
-0.0029084470588713884,
0.14739881455898285,
0.08248361945152283,
-0.26854953169822693,
0.2755722105503082,
-0.11783112585544586,
-0.3403712809085846,
0.18283630907535553,
0.2773400545120239,
0.26229238510131836,
-0.506549596786499,
-0.1399480700492859,
-0.3102690577507019,
-0.10756148397922516,
-0.1293211728334427,
0.20053215324878693,
-0.11239408701658249,
0.02567145973443985,
0.005595583003014326,
-0.08788860589265823,
-0.31055185198783875,
-0.04196375608444214,
0.6014830470085144,
-0.07181330025196075,
-0.06634939461946487,
0.32715433835983276,
0.062490612268447876,
-0.18431729078292847,
-0.2428678572177887,
0.19904012978076935,
-0.004433677066117525,
-0.4677983522415161,
-0.09300795942544937,
0.06878098845481873,
0.05869622156023979,
-0.11389011889696121,
0.07177619636058807,
0.22067590057849884,
0.10313533991575241,
0.03578341379761696,
-0.48030975461006165,
-0.5924566984176636,
-0.09012307971715927,
-0.012088645249605179,
0.14931301772594452,
0.4447925388813019,
0.2230703979730606,
0.05577884614467621,
0.10906801372766495,
-0.3599545955657959,
-0.06756049394607544,
-0.18957023322582245,
0.1576155573129654,
0.5117639899253845,
-0.2647097110748291,
0.1770644187927246,
-0.15526986122131348,
0.2409113049507141,
-0.14292307198047638,
-0.1262865960597992,
-0.31334614753723145,
0.0018987978110089898,
0.06184503436088562,
0.020243894308805466,
-0.3433450758457184,
-0.33765509724617004,
-0.26847583055496216,
-0.014810118824243546,
-0.07406280189752579,
-0.00034182946546934545,
0.21307650208473206,
-0.11873099207878113,
0.21216152608394623,
-0.24539290368556976,
0.08101385086774826,
-0.13400889933109283,
0.135055273771286,
-0.2799673080444336,
0.2402758151292801,
0.027082419022917747,
0.2827392518520355,
-0.0718643069267273,
-0.01944248005747795,
-0.4871894121170044,
-0.05400346592068672,
0.010927480645477772,
0.09868691116571426,
0.3070959150791168,
-0.18013721704483032,
-0.1373220682144165,
0.0053285760805010796,
0.3991224467754364,
0.2806524634361267,
-0.2605659067630768,
0.01644829288125038,
0.12060589343309402,
0.3077172636985779,
-0.21690958738327026,
-0.11241760104894638,
0.15963652729988098,
0.0255119688808918,
0.2056993842124939,
-0.023340383544564247,
0.08173950016498566,
-0.1946599930524826,
0.2731689214706421,
0.03548254817724228,
0.4447300136089325,
-0.0881810337305069,
0.20259402692317963,
0.6118382811546326,
0.019739648327231407,
-0.0029399998020380735,
0.1617928296327591,
0.17206791043281555,
0.19419847428798676,
0.4270901083946228,
-0.17929238080978394,
-0.08740714192390442,
-0.060370851308107376,
0.16990827023983002,
-0.17825259268283844,
-0.47331318259239197,
0.14328041672706604,
-0.15970703959465027,
-0.298828661441803,
-0.06702275574207306,
0.04967435449361801,
0.28032249212265015,
-0.2598396837711334,
0.07498760521411896,
-0.10565610975027084,
0.16085736453533173,
-0.09228973090648651,
-0.1408543586730957,
0.08977052569389343,
-0.07309673726558685,
-0.12902598083019257,
-0.04255658760666847,
0.11327216774225235,
0.08388775587081909,
0.27757972478866577,
0.2630515694618225,
-0.0881883054971695,
-0.20061413943767548,
0.19708845019340515,
0.22083687782287598,
-0.05574839189648628,
-0.1138678640127182,
0.1557372659444809,
0.3445373773574829,
0.17394095659255981,
-0.13113011419773102,
0.17611972987651825,
0.6315094232559204,
0.34706154465675354,
0.0025089476257562637,
0.2030489593744278,
-0.11244849860668182,
-0.14246615767478943,
-0.08644437789916992,
0.02515893429517746,
-0.09247411787509918,
0.207027867436409,
0.3563936650753021,
0.3213759660720825,
-0.19019924104213715,
0.3339127004146576,
-0.04639465734362602,
-0.1453467607498169,
-0.19388745725154877,
0.3707825243473053,
0.0753013864159584,
-0.2841675281524658,
-0.12542161345481873,
0.015040507540106773,
-0.40214166045188904,
0.06934380531311035,
0.46562108397483826,
0.010683737695217133,
0.2924721837043762,
0.0018879218259826303,
0.10944399982690811,
-0.0905618891119957,
0.4269726872444153,
0.14451131224632263,
0.37634897232055664,
-0.4452260732650757,
0.01128710713237524,
-0.5027247667312622,
0.18294693529605865,
-0.03917921707034111,
0.05342062562704086,
-0.04423590004444122,
0.17016920447349548,
0.01051585003733635,
0.2027025669813156,
-0.14749880135059357,
-0.05667022243142128,
0.017852962017059326,
0.12563425302505493,
0.02693975530564785,
-0.16315457224845886,
-0.20206885039806366,
0.05830061435699463,
-0.0021003654692322016,
-0.39048680663108826,
0.2174806296825409,
0.021083885803818703,
0.14058001339435577,
-0.26311033964157104,
-0.06372459977865219,
0.1954774409532547,
0.12738944590091705,
0.390739381313324,
0.1600232720375061,
0.6441072821617126,
-0.10564858466386795,
0.08293747901916504,
-0.06830887496471405,
-0.25430724024772644,
0.015144291333854198,
0.19531652331352234,
0.2678677439689636,
0.21443666517734528,
-0.08898661285638809,
-0.3141353726387024,
-0.47147291898727417,
0.399718701839447,
-0.05411340668797493,
-0.08573883026838303,
-0.04443245008587837,
-0.10151353478431702,
-0.029540276154875755,
0.04289207607507706,
0.03819446265697479,
-0.033093441277742386,
0.01173468679189682,
0.21084803342819214,
-0.1760050654411316,
-0.4096628725528717,
0.41831207275390625,
-0.2643606960773468,
-0.2504855990409851,
-0.17109981179237366,
0.27817827463150024,
-0.04632914066314697,
0.2893793284893036,
-0.27733078598976135,
0.29582375288009644,
0.45240306854248047,
-0.2110675871372223,
-0.21477706730365753,
0.22344017028808594,
0.019069772213697433,
0.2123969942331314,
-0.03966166451573372,
0.46950116753578186,
0.10085932910442352,
-0.24279670417308807,
-0.15513068437576294,
-0.21959038078784943
] |
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.3247124254703522,
0.016103381291031837,
-0.10880527645349503,
0.02600514143705368,
0.24204233288764954,
0.0198686420917511,
0.7173686027526855,
0.3756368160247803,
0.2509216070175171,
0.13370417058467865,
-0.03423228859901428,
0.14970433712005615,
0.07979945093393326,
0.021184252575039864,
-0.12693192064762115,
-0.1772819608449936,
-0.12715744972229004,
0.27433180809020996,
-0.4187990128993988,
0.01449766755104065,
-0.12488517165184021,
-0.002357104793190956,
-0.03493792563676834,
0.14053380489349365,
-0.20246416330337524,
-0.006238663103431463,
0.11578165739774704,
0.13127698004245758,
-0.027691785246133804,
-0.4939194917678833,
0.3365217447280884,
0.04025005176663399,
0.3237732946872711,
0.36321720480918884,
-0.00010603083501337096,
0.2135232388973236,
0.25174033641815186,
-0.028866857290267944,
-0.4279080629348755,
-0.46111053228378296,
-0.10899172723293304,
-0.3690284192562103,
0.42281243205070496,
-0.3986189365386963,
0.0005733193829655647,
-0.11989777535200119,
-0.0673586055636406,
-0.31619885563850403,
0.43138885498046875,
0.47850170731544495,
0.2786400318145752,
0.41547542810440063,
0.01658371463418007,
-0.11103420704603195,
0.07182258367538452,
0.05553407222032547,
-0.06249172240495682,
0.40612781047821045,
0.051623810082674026,
-0.18498985469341278,
-0.24267764389514923,
0.08461245894432068,
-0.1926988959312439,
0.3955325186252594,
0.19060291349887848,
0.08309604972600937,
0.03777122125029564,
-0.1966341882944107,
0.1252264827489853,
0.10768324881792068,
0.47648900747299194,
-0.23145480453968048,
-0.23214618861675262,
-0.05849829688668251,
-0.19948166608810425,
-0.18815772235393524,
0.1660739779472351,
0.08673159778118134,
-0.1683371216058731,
0.14744089543819427,
-0.2638406455516815,
0.0990801677107811,
-0.3907521367073059,
0.14945514500141144,
-0.11051132529973984,
0.15475815534591675,
-0.06718426942825317,
0.1947447955608368,
0.15826477110385895,
-0.056483373045921326,
0.4036886990070343,
-0.20703408122062683,
0.19160915911197662,
0.1276625096797943,
-0.3377634882926941,
0.1311570554971695,
0.13940399885177612,
-0.38613396883010864,
-0.10645744204521179,
0.049894630908966064,
-0.03617501258850098,
-0.05359082296490669,
0.13355165719985962,
0.29164689779281616,
0.1983603835105896,
0.07914328575134277,
-0.1308651715517044,
0.2947739362716675,
0.26872479915618896,
0.13256266713142395,
0.042261309921741486,
-0.062484871596097946,
-0.08005805313587189,
-0.3558063507080078,
0.16349782049655914,
0.1999800205230713,
0.48945900797843933,
-0.04742776229977608,
-0.2816002666950226,
0.13264018297195435,
0.012910336256027222,
-0.10737299174070358,
0.018969401717185974,
0.35893142223358154,
-0.08796925097703934,
0.20431534945964813,
0.04245316982269287,
0.013688702136278152,
-0.22352798283100128,
0.08454356342554092,
-0.21208427846431732,
0.037956055253744125,
-0.1193305104970932,
-0.06953200697898865,
0.381331205368042,
-0.0790894478559494,
0.046633731573820114,
-0.014668883755803108,
0.09893042594194412,
0.05034844949841499,
0.26117050647735596,
-0.2932831645011902,
0.04918236657977104,
0.4129320979118347,
0.05615432932972908,
0.24788370728492737,
0.4095258116722107,
-0.18423354625701904,
-0.10606054961681366,
0.08659051358699799,
-0.2045431137084961,
-0.33716943860054016,
-0.3385483920574188,
0.24021188914775848,
0.03689013049006462,
0.10894148796796799,
-0.01846623793244362,
-0.33027470111846924,
0.09865926951169968,
-0.27471575140953064,
-0.15415939688682556,
-0.3237553834915161,
-0.03890474885702133,
-0.21599151194095612,
0.3081875741481781,
0.646335244178772,
-0.43031713366508484,
0.04295613616704941,
0.05663686990737915,
-0.12991656363010406,
0.14146064221858978,
0.25084781646728516,
-0.3076954483985901,
0.08512597531080246,
-0.228460893034935,
-0.09667721390724182,
0.2314833402633667,
-0.30937495827674866,
-0.3032819926738739,
0.5005186200141907,
-0.2373456060886383,
-0.0729445293545723,
0.21697789430618286,
0.012616573832929134,
0.2910565733909607,
0.18582850694656372,
0.26151391863822937,
0.3000475764274597,
-0.10075877606868744,
0.117552749812603,
-0.07992347329854965,
-0.22256116569042206,
0.1973573863506317,
0.1164560616016388,
0.009815984405577183,
0.22318394482135773,
0.3249671161174774,
-0.25798025727272034,
0.17411409318447113,
-0.07687226682901382,
0.14479191601276398,
0.1345081329345703,
0.17397208511829376,
0.04198486730456352,
-0.060600124299526215,
-0.021664876490831375,
-0.5085174441337585,
0.13815544545650482,
0.13109125196933746,
0.09030017256736755,
-0.4376564919948578,
-0.016269410029053688,
-0.37712377309799194,
0.005171275697648525,
-0.2671610116958618,
-0.030242227017879486,
0.21001744270324707,
0.34153085947036743,
-0.019158674404025078,
-0.052317600697278976,
-0.048856597393751144,
0.3256906569004059,
-0.11661318689584732,
-0.019255800172686577,
-0.4156300723552704,
0.33955562114715576,
-0.354469895362854,
-0.06900352984666824,
0.052354320883750916,
-0.03142041712999344,
0.16265039145946503,
-0.18255585432052612,
-0.2719686031341553,
0.3561229705810547,
-0.09558561444282532,
0.2182246595621109,
0.017049774527549744,
-0.004438994452357292,
0.05262022837996483,
-0.2450999766588211,
0.03237707167863846,
0.031114304438233376,
0.15333165228366852,
0.043183308094739914,
-0.261312872171402,
0.3525983989238739,
-0.09534906595945358,
0.1633690446615219,
0.050654228776693344,
0.0704115480184555,
0.451421320438385,
0.011993863619863987,
-0.11404738575220108,
-0.10850923508405685,
0.1054946780204773,
0.23892144858837128,
0.22623565793037415,
0.049103204160928726,
-0.18027198314666748,
-0.188624769449234,
0.2018602192401886,
-0.1532270759344101,
0.011607938446104527,
0.09235332161188126,
-0.10862259566783905,
-0.04428116977214813,
0.21468421816825867,
0.23191919922828674,
0.5149134993553162,
0.10260234773159027,
-0.1526021957397461,
-0.01832135207951069,
-0.05032249540090561,
-0.13382300734519958,
0.11027868092060089,
-0.03869283199310303,
0.044877681881189346,
0.32726341485977173,
0.07598182559013367,
0.10698068886995316,
-0.2410079538822174,
-0.3630867898464203,
-0.04194872826337814,
0.26388871669769287,
-0.3492997884750366,
0.24792687594890594,
-0.1645682156085968,
0.018282292410731316,
-0.265902042388916,
-0.05033007636666298,
-0.11049897223711014,
-0.17807325720787048,
-0.3695806860923767,
0.3607576787471771,
-0.07638196647167206,
0.23725269734859467,
-0.2790002226829529,
-0.05164273828268051,
0.38798439502716064,
-0.44983285665512085,
-0.07305975258350372,
-0.20816579461097717,
-0.16014620661735535,
0.0924808531999588,
0.09350928664207458,
-0.15689221024513245,
0.30316558480262756,
-0.09899260848760605,
0.020526176318526268,
-0.1610632985830307,
-0.023834416642785072,
-0.08211684226989746,
0.012528127059340477,
0.12830525636672974,
0.18785417079925537,
0.4475228786468506,
0.12060218304395676,
-0.5035615563392639,
0.31845471262931824,
-0.08349719643592834,
0.048193689435720444,
0.19645652174949646,
-0.05370315909385681,
-0.20325587689876556,
0.0006875913240946829,
-0.6345357298851013,
-0.5991463661193848,
-0.4698646664619446,
0.1375347077846527,
0.06650941073894501,
0.21323217451572418,
0.2955242395401001,
0.22690168023109436,
0.20992311835289001,
0.08665785938501358,
0.07574920356273651,
-0.05961291491985321,
-0.15918445587158203,
0.34999921917915344,
-0.234960675239563,
-0.3570282757282257,
-0.11339561641216278,
-0.11525502800941467,
0.12194498628377914,
0.13648562133312225,
-0.44477578997612,
-0.02361636608839035,
-0.17468376457691193,
0.3565394878387451,
-0.04672414809465408,
0.05170492082834244,
0.4662778675556183,
0.16865718364715576,
-0.1706286519765854,
0.11266113817691803,
-0.24418598413467407,
-0.1408117711544037,
0.1942562311887741,
0.08437056839466095,
0.004410606808960438,
0.45936980843544006,
-0.15895922482013702,
0.6532878875732422,
-0.07980813831090927,
-0.18971042335033417,
0.2884310483932495,
-0.13622577488422394,
0.3429660499095917,
-0.18450714647769928,
-0.6308502554893494,
-0.09177834540605545,
-0.3062288463115692,
-0.20188280940055847,
0.010753165930509567,
-0.22972965240478516,
-0.2305869311094284,
-0.36419954895973206,
0.018699072301387787,
-0.3049337565898895,
-0.3137819170951843,
0.13632476329803467,
-0.11969742178916931,
0.3635420501232147,
0.04688134416937828,
-0.013036279007792473,
-0.25293707847595215,
-0.06005767732858658,
-0.24862784147262573,
0.3659869432449341,
-0.006222774274647236,
-0.09316585212945938,
-0.2668780982494354,
0.10691213607788086,
-0.281080424785614,
0.24323712289333344,
0.08004964143037796,
0.5622859001159668,
-0.20270797610282898,
-0.18679524958133698,
-0.037792451679706573,
0.0581570640206337,
0.402822345495224,
0.08844485133886337,
0.08746356517076492,
0.25638774037361145,
-0.0515902042388916,
-0.3120604157447815,
-0.08621209114789963,
-0.08868389576673508,
0.22119449079036713,
0.22770018875598907,
0.460794061422348,
0.05911487340927124,
-0.12697730958461761,
0.3169074058532715,
0.2359127402305603,
-0.08725614100694656,
-0.17905405163764954,
-0.2838764488697052,
-0.05081154406070709,
-0.3215528726577759,
-0.10537328571081161,
-0.11184182018041611,
0.17903266847133636,
-0.17329084873199463,
-0.12812820076942444,
0.07372362166643143,
-0.1710193157196045,
0.0011038572993129492,
0.11931975185871124,
-0.14569918811321259,
0.09597685933113098,
0.21791715919971466,
0.19069713354110718,
0.26288720965385437,
0.20216074585914612,
0.4429311454296112,
-0.20944947004318237,
-0.5551639795303345,
0.1772613525390625,
-0.01455550268292427,
0.10783123224973679,
0.10523667186498642,
-0.13693591952323914,
-0.14875838160514832,
0.17527452111244202,
0.18085694313049316,
-0.15395697951316833,
0.19385264813899994,
0.24986745417118073,
-0.11665432900190353,
-0.35298725962638855,
-0.4148058295249939,
0.13144393265247345,
-0.20059208571910858,
-0.09675164520740509,
0.19510190188884735,
-0.3385474979877472,
-0.06351567804813385,
0.2595232129096985,
-0.15831045806407928,
0.6695197820663452,
-0.1268925815820694,
0.18091654777526855,
0.16285310685634613,
-0.13451480865478516,
0.44838276505470276,
-0.15749214589595795,
0.11926182359457016,
-0.34411516785621643,
-0.2360045313835144,
-0.09949714690446854,
-0.24985767900943756,
0.3218547999858856,
0.00986869540065527,
-0.09696245193481445,
0.23642171919345856,
-0.06141688674688339,
0.28134816884994507,
0.065279021859169,
0.22038143873214722,
0.06127874180674553,
-0.2302684336900711,
-0.18300773203372955,
0.19012033939361572,
-0.09313639253377914,
0.41345617175102234,
0.029970914125442505,
-0.11374130100011826,
-0.012484224513173103,
-0.36156681180000305,
-0.04313931614160538,
0.05932124704122543,
-0.2830665409564972,
0.41366276144981384,
0.0488286055624485,
-0.35365477204322815,
-0.05514174699783325,
0.13816989958286285,
-0.15337535738945007,
0.07832982391119003,
-0.14985056221485138,
-0.0794561430811882,
-0.10809093713760376,
-0.06119728088378906,
-0.11690235137939453,
-0.0029084470588713884,
0.14739881455898285,
0.08248361945152283,
-0.26854953169822693,
0.2755722105503082,
-0.11783112585544586,
-0.3403712809085846,
0.18283630907535553,
0.2773400545120239,
0.26229238510131836,
-0.506549596786499,
-0.1399480700492859,
-0.3102690577507019,
-0.10756148397922516,
-0.1293211728334427,
0.20053215324878693,
-0.11239408701658249,
0.02567145973443985,
0.005595583003014326,
-0.08788860589265823,
-0.31055185198783875,
-0.04196375608444214,
0.6014830470085144,
-0.07181330025196075,
-0.06634939461946487,
0.32715433835983276,
0.062490612268447876,
-0.18431729078292847,
-0.2428678572177887,
0.19904012978076935,
-0.004433677066117525,
-0.4677983522415161,
-0.09300795942544937,
0.06878098845481873,
0.05869622156023979,
-0.11389011889696121,
0.07177619636058807,
0.22067590057849884,
0.10313533991575241,
0.03578341379761696,
-0.48030975461006165,
-0.5924566984176636,
-0.09012307971715927,
-0.012088645249605179,
0.14931301772594452,
0.4447925388813019,
0.2230703979730606,
0.05577884614467621,
0.10906801372766495,
-0.3599545955657959,
-0.06756049394607544,
-0.18957023322582245,
0.1576155573129654,
0.5117639899253845,
-0.2647097110748291,
0.1770644187927246,
-0.15526986122131348,
0.2409113049507141,
-0.14292307198047638,
-0.1262865960597992,
-0.31334614753723145,
0.0018987978110089898,
0.06184503436088562,
0.020243894308805466,
-0.3433450758457184,
-0.33765509724617004,
-0.26847583055496216,
-0.014810118824243546,
-0.07406280189752579,
-0.00034182946546934545,
0.21307650208473206,
-0.11873099207878113,
0.21216152608394623,
-0.24539290368556976,
0.08101385086774826,
-0.13400889933109283,
0.135055273771286,
-0.2799673080444336,
0.2402758151292801,
0.027082419022917747,
0.2827392518520355,
-0.0718643069267273,
-0.01944248005747795,
-0.4871894121170044,
-0.05400346592068672,
0.010927480645477772,
0.09868691116571426,
0.3070959150791168,
-0.18013721704483032,
-0.1373220682144165,
0.0053285760805010796,
0.3991224467754364,
0.2806524634361267,
-0.2605659067630768,
0.01644829288125038,
0.12060589343309402,
0.3077172636985779,
-0.21690958738327026,
-0.11241760104894638,
0.15963652729988098,
0.0255119688808918,
0.2056993842124939,
-0.023340383544564247,
0.08173950016498566,
-0.1946599930524826,
0.2731689214706421,
0.03548254817724228,
0.4447300136089325,
-0.0881810337305069,
0.20259402692317963,
0.6118382811546326,
0.019739648327231407,
-0.0029399998020380735,
0.1617928296327591,
0.17206791043281555,
0.19419847428798676,
0.4270901083946228,
-0.17929238080978394,
-0.08740714192390442,
-0.060370851308107376,
0.16990827023983002,
-0.17825259268283844,
-0.47331318259239197,
0.14328041672706604,
-0.15970703959465027,
-0.298828661441803,
-0.06702275574207306,
0.04967435449361801,
0.28032249212265015,
-0.2598396837711334,
0.07498760521411896,
-0.10565610975027084,
0.16085736453533173,
-0.09228973090648651,
-0.1408543586730957,
0.08977052569389343,
-0.07309673726558685,
-0.12902598083019257,
-0.04255658760666847,
0.11327216774225235,
0.08388775587081909,
0.27757972478866577,
0.2630515694618225,
-0.0881883054971695,
-0.20061413943767548,
0.19708845019340515,
0.22083687782287598,
-0.05574839189648628,
-0.1138678640127182,
0.1557372659444809,
0.3445373773574829,
0.17394095659255981,
-0.13113011419773102,
0.17611972987651825,
0.6315094232559204,
0.34706154465675354,
0.0025089476257562637,
0.2030489593744278,
-0.11244849860668182,
-0.14246615767478943,
-0.08644437789916992,
0.02515893429517746,
-0.09247411787509918,
0.207027867436409,
0.3563936650753021,
0.3213759660720825,
-0.19019924104213715,
0.3339127004146576,
-0.04639465734362602,
-0.1453467607498169,
-0.19388745725154877,
0.3707825243473053,
0.0753013864159584,
-0.2841675281524658,
-0.12542161345481873,
0.015040507540106773,
-0.40214166045188904,
0.06934380531311035,
0.46562108397483826,
0.010683737695217133,
0.2924721837043762,
0.0018879218259826303,
0.10944399982690811,
-0.0905618891119957,
0.4269726872444153,
0.14451131224632263,
0.37634897232055664,
-0.4452260732650757,
0.01128710713237524,
-0.5027247667312622,
0.18294693529605865,
-0.03917921707034111,
0.05342062562704086,
-0.04423590004444122,
0.17016920447349548,
0.01051585003733635,
0.2027025669813156,
-0.14749880135059357,
-0.05667022243142128,
0.017852962017059326,
0.12563425302505493,
0.02693975530564785,
-0.16315457224845886,
-0.20206885039806366,
0.05830061435699463,
-0.0021003654692322016,
-0.39048680663108826,
0.2174806296825409,
0.021083885803818703,
0.14058001339435577,
-0.26311033964157104,
-0.06372459977865219,
0.1954774409532547,
0.12738944590091705,
0.390739381313324,
0.1600232720375061,
0.6441072821617126,
-0.10564858466386795,
0.08293747901916504,
-0.06830887496471405,
-0.25430724024772644,
0.015144291333854198,
0.19531652331352234,
0.2678677439689636,
0.21443666517734528,
-0.08898661285638809,
-0.3141353726387024,
-0.47147291898727417,
0.399718701839447,
-0.05411340668797493,
-0.08573883026838303,
-0.04443245008587837,
-0.10151353478431702,
-0.029540276154875755,
0.04289207607507706,
0.03819446265697479,
-0.033093441277742386,
0.01173468679189682,
0.21084803342819214,
-0.1760050654411316,
-0.4096628725528717,
0.41831207275390625,
-0.2643606960773468,
-0.2504855990409851,
-0.17109981179237366,
0.27817827463150024,
-0.04632914066314697,
0.2893793284893036,
-0.27733078598976135,
0.29582375288009644,
0.45240306854248047,
-0.2110675871372223,
-0.21477706730365753,
0.22344017028808594,
0.019069772213697433,
0.2123969942331314,
-0.03966166451573372,
0.46950116753578186,
0.10085932910442352,
-0.24279670417308807,
-0.15513068437576294,
-0.21959038078784943
] |
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.3247124254703522,
0.016103381291031837,
-0.10880527645349503,
0.02600514143705368,
0.24204233288764954,
0.0198686420917511,
0.7173686027526855,
0.3756368160247803,
0.2509216070175171,
0.13370417058467865,
-0.03423228859901428,
0.14970433712005615,
0.07979945093393326,
0.021184252575039864,
-0.12693192064762115,
-0.1772819608449936,
-0.12715744972229004,
0.27433180809020996,
-0.4187990128993988,
0.01449766755104065,
-0.12488517165184021,
-0.002357104793190956,
-0.03493792563676834,
0.14053380489349365,
-0.20246416330337524,
-0.006238663103431463,
0.11578165739774704,
0.13127698004245758,
-0.027691785246133804,
-0.4939194917678833,
0.3365217447280884,
0.04025005176663399,
0.3237732946872711,
0.36321720480918884,
-0.00010603083501337096,
0.2135232388973236,
0.25174033641815186,
-0.028866857290267944,
-0.4279080629348755,
-0.46111053228378296,
-0.10899172723293304,
-0.3690284192562103,
0.42281243205070496,
-0.3986189365386963,
0.0005733193829655647,
-0.11989777535200119,
-0.0673586055636406,
-0.31619885563850403,
0.43138885498046875,
0.47850170731544495,
0.2786400318145752,
0.41547542810440063,
0.01658371463418007,
-0.11103420704603195,
0.07182258367538452,
0.05553407222032547,
-0.06249172240495682,
0.40612781047821045,
0.051623810082674026,
-0.18498985469341278,
-0.24267764389514923,
0.08461245894432068,
-0.1926988959312439,
0.3955325186252594,
0.19060291349887848,
0.08309604972600937,
0.03777122125029564,
-0.1966341882944107,
0.1252264827489853,
0.10768324881792068,
0.47648900747299194,
-0.23145480453968048,
-0.23214618861675262,
-0.05849829688668251,
-0.19948166608810425,
-0.18815772235393524,
0.1660739779472351,
0.08673159778118134,
-0.1683371216058731,
0.14744089543819427,
-0.2638406455516815,
0.0990801677107811,
-0.3907521367073059,
0.14945514500141144,
-0.11051132529973984,
0.15475815534591675,
-0.06718426942825317,
0.1947447955608368,
0.15826477110385895,
-0.056483373045921326,
0.4036886990070343,
-0.20703408122062683,
0.19160915911197662,
0.1276625096797943,
-0.3377634882926941,
0.1311570554971695,
0.13940399885177612,
-0.38613396883010864,
-0.10645744204521179,
0.049894630908966064,
-0.03617501258850098,
-0.05359082296490669,
0.13355165719985962,
0.29164689779281616,
0.1983603835105896,
0.07914328575134277,
-0.1308651715517044,
0.2947739362716675,
0.26872479915618896,
0.13256266713142395,
0.042261309921741486,
-0.062484871596097946,
-0.08005805313587189,
-0.3558063507080078,
0.16349782049655914,
0.1999800205230713,
0.48945900797843933,
-0.04742776229977608,
-0.2816002666950226,
0.13264018297195435,
0.012910336256027222,
-0.10737299174070358,
0.018969401717185974,
0.35893142223358154,
-0.08796925097703934,
0.20431534945964813,
0.04245316982269287,
0.013688702136278152,
-0.22352798283100128,
0.08454356342554092,
-0.21208427846431732,
0.037956055253744125,
-0.1193305104970932,
-0.06953200697898865,
0.381331205368042,
-0.0790894478559494,
0.046633731573820114,
-0.014668883755803108,
0.09893042594194412,
0.05034844949841499,
0.26117050647735596,
-0.2932831645011902,
0.04918236657977104,
0.4129320979118347,
0.05615432932972908,
0.24788370728492737,
0.4095258116722107,
-0.18423354625701904,
-0.10606054961681366,
0.08659051358699799,
-0.2045431137084961,
-0.33716943860054016,
-0.3385483920574188,
0.24021188914775848,
0.03689013049006462,
0.10894148796796799,
-0.01846623793244362,
-0.33027470111846924,
0.09865926951169968,
-0.27471575140953064,
-0.15415939688682556,
-0.3237553834915161,
-0.03890474885702133,
-0.21599151194095612,
0.3081875741481781,
0.646335244178772,
-0.43031713366508484,
0.04295613616704941,
0.05663686990737915,
-0.12991656363010406,
0.14146064221858978,
0.25084781646728516,
-0.3076954483985901,
0.08512597531080246,
-0.228460893034935,
-0.09667721390724182,
0.2314833402633667,
-0.30937495827674866,
-0.3032819926738739,
0.5005186200141907,
-0.2373456060886383,
-0.0729445293545723,
0.21697789430618286,
0.012616573832929134,
0.2910565733909607,
0.18582850694656372,
0.26151391863822937,
0.3000475764274597,
-0.10075877606868744,
0.117552749812603,
-0.07992347329854965,
-0.22256116569042206,
0.1973573863506317,
0.1164560616016388,
0.009815984405577183,
0.22318394482135773,
0.3249671161174774,
-0.25798025727272034,
0.17411409318447113,
-0.07687226682901382,
0.14479191601276398,
0.1345081329345703,
0.17397208511829376,
0.04198486730456352,
-0.060600124299526215,
-0.021664876490831375,
-0.5085174441337585,
0.13815544545650482,
0.13109125196933746,
0.09030017256736755,
-0.4376564919948578,
-0.016269410029053688,
-0.37712377309799194,
0.005171275697648525,
-0.2671610116958618,
-0.030242227017879486,
0.21001744270324707,
0.34153085947036743,
-0.019158674404025078,
-0.052317600697278976,
-0.048856597393751144,
0.3256906569004059,
-0.11661318689584732,
-0.019255800172686577,
-0.4156300723552704,
0.33955562114715576,
-0.354469895362854,
-0.06900352984666824,
0.052354320883750916,
-0.03142041712999344,
0.16265039145946503,
-0.18255585432052612,
-0.2719686031341553,
0.3561229705810547,
-0.09558561444282532,
0.2182246595621109,
0.017049774527549744,
-0.004438994452357292,
0.05262022837996483,
-0.2450999766588211,
0.03237707167863846,
0.031114304438233376,
0.15333165228366852,
0.043183308094739914,
-0.261312872171402,
0.3525983989238739,
-0.09534906595945358,
0.1633690446615219,
0.050654228776693344,
0.0704115480184555,
0.451421320438385,
0.011993863619863987,
-0.11404738575220108,
-0.10850923508405685,
0.1054946780204773,
0.23892144858837128,
0.22623565793037415,
0.049103204160928726,
-0.18027198314666748,
-0.188624769449234,
0.2018602192401886,
-0.1532270759344101,
0.011607938446104527,
0.09235332161188126,
-0.10862259566783905,
-0.04428116977214813,
0.21468421816825867,
0.23191919922828674,
0.5149134993553162,
0.10260234773159027,
-0.1526021957397461,
-0.01832135207951069,
-0.05032249540090561,
-0.13382300734519958,
0.11027868092060089,
-0.03869283199310303,
0.044877681881189346,
0.32726341485977173,
0.07598182559013367,
0.10698068886995316,
-0.2410079538822174,
-0.3630867898464203,
-0.04194872826337814,
0.26388871669769287,
-0.3492997884750366,
0.24792687594890594,
-0.1645682156085968,
0.018282292410731316,
-0.265902042388916,
-0.05033007636666298,
-0.11049897223711014,
-0.17807325720787048,
-0.3695806860923767,
0.3607576787471771,
-0.07638196647167206,
0.23725269734859467,
-0.2790002226829529,
-0.05164273828268051,
0.38798439502716064,
-0.44983285665512085,
-0.07305975258350372,
-0.20816579461097717,
-0.16014620661735535,
0.0924808531999588,
0.09350928664207458,
-0.15689221024513245,
0.30316558480262756,
-0.09899260848760605,
0.020526176318526268,
-0.1610632985830307,
-0.023834416642785072,
-0.08211684226989746,
0.012528127059340477,
0.12830525636672974,
0.18785417079925537,
0.4475228786468506,
0.12060218304395676,
-0.5035615563392639,
0.31845471262931824,
-0.08349719643592834,
0.048193689435720444,
0.19645652174949646,
-0.05370315909385681,
-0.20325587689876556,
0.0006875913240946829,
-0.6345357298851013,
-0.5991463661193848,
-0.4698646664619446,
0.1375347077846527,
0.06650941073894501,
0.21323217451572418,
0.2955242395401001,
0.22690168023109436,
0.20992311835289001,
0.08665785938501358,
0.07574920356273651,
-0.05961291491985321,
-0.15918445587158203,
0.34999921917915344,
-0.234960675239563,
-0.3570282757282257,
-0.11339561641216278,
-0.11525502800941467,
0.12194498628377914,
0.13648562133312225,
-0.44477578997612,
-0.02361636608839035,
-0.17468376457691193,
0.3565394878387451,
-0.04672414809465408,
0.05170492082834244,
0.4662778675556183,
0.16865718364715576,
-0.1706286519765854,
0.11266113817691803,
-0.24418598413467407,
-0.1408117711544037,
0.1942562311887741,
0.08437056839466095,
0.004410606808960438,
0.45936980843544006,
-0.15895922482013702,
0.6532878875732422,
-0.07980813831090927,
-0.18971042335033417,
0.2884310483932495,
-0.13622577488422394,
0.3429660499095917,
-0.18450714647769928,
-0.6308502554893494,
-0.09177834540605545,
-0.3062288463115692,
-0.20188280940055847,
0.010753165930509567,
-0.22972965240478516,
-0.2305869311094284,
-0.36419954895973206,
0.018699072301387787,
-0.3049337565898895,
-0.3137819170951843,
0.13632476329803467,
-0.11969742178916931,
0.3635420501232147,
0.04688134416937828,
-0.013036279007792473,
-0.25293707847595215,
-0.06005767732858658,
-0.24862784147262573,
0.3659869432449341,
-0.006222774274647236,
-0.09316585212945938,
-0.2668780982494354,
0.10691213607788086,
-0.281080424785614,
0.24323712289333344,
0.08004964143037796,
0.5622859001159668,
-0.20270797610282898,
-0.18679524958133698,
-0.037792451679706573,
0.0581570640206337,
0.402822345495224,
0.08844485133886337,
0.08746356517076492,
0.25638774037361145,
-0.0515902042388916,
-0.3120604157447815,
-0.08621209114789963,
-0.08868389576673508,
0.22119449079036713,
0.22770018875598907,
0.460794061422348,
0.05911487340927124,
-0.12697730958461761,
0.3169074058532715,
0.2359127402305603,
-0.08725614100694656,
-0.17905405163764954,
-0.2838764488697052,
-0.05081154406070709,
-0.3215528726577759,
-0.10537328571081161,
-0.11184182018041611,
0.17903266847133636,
-0.17329084873199463,
-0.12812820076942444,
0.07372362166643143,
-0.1710193157196045,
0.0011038572993129492,
0.11931975185871124,
-0.14569918811321259,
0.09597685933113098,
0.21791715919971466,
0.19069713354110718,
0.26288720965385437,
0.20216074585914612,
0.4429311454296112,
-0.20944947004318237,
-0.5551639795303345,
0.1772613525390625,
-0.01455550268292427,
0.10783123224973679,
0.10523667186498642,
-0.13693591952323914,
-0.14875838160514832,
0.17527452111244202,
0.18085694313049316,
-0.15395697951316833,
0.19385264813899994,
0.24986745417118073,
-0.11665432900190353,
-0.35298725962638855,
-0.4148058295249939,
0.13144393265247345,
-0.20059208571910858,
-0.09675164520740509,
0.19510190188884735,
-0.3385474979877472,
-0.06351567804813385,
0.2595232129096985,
-0.15831045806407928,
0.6695197820663452,
-0.1268925815820694,
0.18091654777526855,
0.16285310685634613,
-0.13451480865478516,
0.44838276505470276,
-0.15749214589595795,
0.11926182359457016,
-0.34411516785621643,
-0.2360045313835144,
-0.09949714690446854,
-0.24985767900943756,
0.3218547999858856,
0.00986869540065527,
-0.09696245193481445,
0.23642171919345856,
-0.06141688674688339,
0.28134816884994507,
0.065279021859169,
0.22038143873214722,
0.06127874180674553,
-0.2302684336900711,
-0.18300773203372955,
0.19012033939361572,
-0.09313639253377914,
0.41345617175102234,
0.029970914125442505,
-0.11374130100011826,
-0.012484224513173103,
-0.36156681180000305,
-0.04313931614160538,
0.05932124704122543,
-0.2830665409564972,
0.41366276144981384,
0.0488286055624485,
-0.35365477204322815,
-0.05514174699783325,
0.13816989958286285,
-0.15337535738945007,
0.07832982391119003,
-0.14985056221485138,
-0.0794561430811882,
-0.10809093713760376,
-0.06119728088378906,
-0.11690235137939453,
-0.0029084470588713884,
0.14739881455898285,
0.08248361945152283,
-0.26854953169822693,
0.2755722105503082,
-0.11783112585544586,
-0.3403712809085846,
0.18283630907535553,
0.2773400545120239,
0.26229238510131836,
-0.506549596786499,
-0.1399480700492859,
-0.3102690577507019,
-0.10756148397922516,
-0.1293211728334427,
0.20053215324878693,
-0.11239408701658249,
0.02567145973443985,
0.005595583003014326,
-0.08788860589265823,
-0.31055185198783875,
-0.04196375608444214,
0.6014830470085144,
-0.07181330025196075,
-0.06634939461946487,
0.32715433835983276,
0.062490612268447876,
-0.18431729078292847,
-0.2428678572177887,
0.19904012978076935,
-0.004433677066117525,
-0.4677983522415161,
-0.09300795942544937,
0.06878098845481873,
0.05869622156023979,
-0.11389011889696121,
0.07177619636058807,
0.22067590057849884,
0.10313533991575241,
0.03578341379761696,
-0.48030975461006165,
-0.5924566984176636,
-0.09012307971715927,
-0.012088645249605179,
0.14931301772594452,
0.4447925388813019,
0.2230703979730606,
0.05577884614467621,
0.10906801372766495,
-0.3599545955657959,
-0.06756049394607544,
-0.18957023322582245,
0.1576155573129654,
0.5117639899253845,
-0.2647097110748291,
0.1770644187927246,
-0.15526986122131348,
0.2409113049507141,
-0.14292307198047638,
-0.1262865960597992,
-0.31334614753723145,
0.0018987978110089898,
0.06184503436088562,
0.020243894308805466,
-0.3433450758457184,
-0.33765509724617004,
-0.26847583055496216,
-0.014810118824243546,
-0.07406280189752579,
-0.00034182946546934545,
0.21307650208473206,
-0.11873099207878113,
0.21216152608394623,
-0.24539290368556976,
0.08101385086774826,
-0.13400889933109283,
0.135055273771286,
-0.2799673080444336,
0.2402758151292801,
0.027082419022917747,
0.2827392518520355,
-0.0718643069267273,
-0.01944248005747795,
-0.4871894121170044,
-0.05400346592068672,
0.010927480645477772,
0.09868691116571426,
0.3070959150791168,
-0.18013721704483032,
-0.1373220682144165,
0.0053285760805010796,
0.3991224467754364,
0.2806524634361267,
-0.2605659067630768,
0.01644829288125038,
0.12060589343309402,
0.3077172636985779,
-0.21690958738327026,
-0.11241760104894638,
0.15963652729988098,
0.0255119688808918,
0.2056993842124939,
-0.023340383544564247,
0.08173950016498566,
-0.1946599930524826,
0.2731689214706421,
0.03548254817724228,
0.4447300136089325,
-0.0881810337305069,
0.20259402692317963,
0.6118382811546326,
0.019739648327231407,
-0.0029399998020380735,
0.1617928296327591,
0.17206791043281555,
0.19419847428798676,
0.4270901083946228,
-0.17929238080978394,
-0.08740714192390442,
-0.060370851308107376,
0.16990827023983002,
-0.17825259268283844,
-0.47331318259239197,
0.14328041672706604,
-0.15970703959465027,
-0.298828661441803,
-0.06702275574207306,
0.04967435449361801,
0.28032249212265015,
-0.2598396837711334,
0.07498760521411896,
-0.10565610975027084,
0.16085736453533173,
-0.09228973090648651,
-0.1408543586730957,
0.08977052569389343,
-0.07309673726558685,
-0.12902598083019257,
-0.04255658760666847,
0.11327216774225235,
0.08388775587081909,
0.27757972478866577,
0.2630515694618225,
-0.0881883054971695,
-0.20061413943767548,
0.19708845019340515,
0.22083687782287598,
-0.05574839189648628,
-0.1138678640127182,
0.1557372659444809,
0.3445373773574829,
0.17394095659255981,
-0.13113011419773102,
0.17611972987651825,
0.6315094232559204,
0.34706154465675354,
0.0025089476257562637,
0.2030489593744278,
-0.11244849860668182,
-0.14246615767478943,
-0.08644437789916992,
0.02515893429517746,
-0.09247411787509918,
0.207027867436409,
0.3563936650753021,
0.3213759660720825,
-0.19019924104213715,
0.3339127004146576,
-0.04639465734362602,
-0.1453467607498169,
-0.19388745725154877,
0.3707825243473053,
0.0753013864159584,
-0.2841675281524658,
-0.12542161345481873,
0.015040507540106773,
-0.40214166045188904,
0.06934380531311035,
0.46562108397483826,
0.010683737695217133,
0.2924721837043762,
0.0018879218259826303,
0.10944399982690811,
-0.0905618891119957,
0.4269726872444153,
0.14451131224632263,
0.37634897232055664,
-0.4452260732650757,
0.01128710713237524,
-0.5027247667312622,
0.18294693529605865,
-0.03917921707034111,
0.05342062562704086,
-0.04423590004444122,
0.17016920447349548,
0.01051585003733635,
0.2027025669813156,
-0.14749880135059357,
-0.05667022243142128,
0.017852962017059326,
0.12563425302505493,
0.02693975530564785,
-0.16315457224845886,
-0.20206885039806366,
0.05830061435699463,
-0.0021003654692322016,
-0.39048680663108826,
0.2174806296825409,
0.021083885803818703,
0.14058001339435577,
-0.26311033964157104,
-0.06372459977865219,
0.1954774409532547,
0.12738944590091705,
0.390739381313324,
0.1600232720375061,
0.6441072821617126,
-0.10564858466386795,
0.08293747901916504,
-0.06830887496471405,
-0.25430724024772644,
0.015144291333854198,
0.19531652331352234,
0.2678677439689636,
0.21443666517734528,
-0.08898661285638809,
-0.3141353726387024,
-0.47147291898727417,
0.399718701839447,
-0.05411340668797493,
-0.08573883026838303,
-0.04443245008587837,
-0.10151353478431702,
-0.029540276154875755,
0.04289207607507706,
0.03819446265697479,
-0.033093441277742386,
0.01173468679189682,
0.21084803342819214,
-0.1760050654411316,
-0.4096628725528717,
0.41831207275390625,
-0.2643606960773468,
-0.2504855990409851,
-0.17109981179237366,
0.27817827463150024,
-0.04632914066314697,
0.2893793284893036,
-0.27733078598976135,
0.29582375288009644,
0.45240306854248047,
-0.2110675871372223,
-0.21477706730365753,
0.22344017028808594,
0.019069772213697433,
0.2123969942331314,
-0.03966166451573372,
0.46950116753578186,
0.10085932910442352,
-0.24279670417308807,
-0.15513068437576294,
-0.21959038078784943
] |
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.11141891777515411,
0.26047295331954956,
-0.06152263656258583,
0.08691468834877014,
0.05529055744409561,
0.1165681704878807,
-0.10393859446048737,
0.2843017280101776,
-0.14580385386943817,
-0.0269255843013525,
-0.05009394884109497,
-0.10960163176059723,
0.0617610365152359,
0.05294971913099289,
0.03669021278619766,
0.099236398935318,
0.09575113654136658,
-0.10737694799900055,
-0.48467370867729187,
-0.12074995040893555,
-0.2975238561630249,
0.3327791392803192,
-0.162983700633049,
0.0764414593577385,
-0.3429383933544159,
0.13600371778011322,
-0.2239772528409958,
0.28330525755882263,
-0.27906301617622375,
-0.42461079359054565,
0.2327839881181717,
0.026277974247932434,
0.25417569279670715,
0.4004102051258087,
-0.00010590341116767377,
-0.02369053103029728,
0.24554526805877686,
0.09278975427150726,
-0.12044467777013779,
-0.1295042335987091,
-0.3578018546104431,
-0.12044592201709747,
0.03053923137485981,
-0.06332923471927643,
-0.07230987399816513,
-0.029333040118217468,
-0.06990590691566467,
-0.12183534353971481,
0.21485182642936707,
0.46336886286735535,
0.29011857509613037,
0.04638765752315521,
0.0949823409318924,
-0.20835722982883453,
0.23871278762817383,
-0.3106744885444641,
-0.06413979083299637,
0.3128826320171356,
0.15092243254184723,
0.051790691912174225,
0.2624894082546234,
0.4207629859447479,
0.03203312307596207,
-0.21720151603221893,
0.14150375127792358,
0.06208258494734764,
0.16031521558761597,
-0.226724311709404,
-0.14605699479579926,
0.05531666800379753,
0.2769089937210083,
-0.15754392743110657,
-0.5258875489234924,
-0.057135485112667084,
0.09286483377218246,
-0.529796838760376,
0.16485783457756042,
-0.07382968068122864,
0.2400805950164795,
0.2522779405117035,
-0.14425374567508698,
-0.04969100281596184,
-0.028818776831030846,
0.2217445969581604,
0.06364920735359192,
0.18385377526283264,
-0.09209540486335754,
-0.1047557145357132,
-0.08814726024866104,
-0.048280976712703705,
0.22483612596988678,
0.1113295704126358,
-0.09772029519081116,
0.0737554132938385,
-0.22852186858654022,
-0.046167414635419846,
0.03852485492825508,
0.1469058245420456,
-0.02807827666401863,
0.21447865664958954,
0.010471000336110592,
-0.12327192723751068,
0.06615708023309708,
-0.17300742864608765,
0.13559749722480774,
0.37906134128570557,
0.1448470652103424,
-0.31846001744270325,
0.15189215540885925,
0.46186748147010803,
-0.18420341610908508,
-0.0007189555326476693,
0.05959361419081688,
-0.5326239466667175,
-0.2876175045967102,
0.039734721183776855,
0.28213080763816833,
-0.30053213238716125,
-0.02545144408941269,
-0.051335327327251434,
-0.2908759117126465,
-0.029741976410150528,
0.019801342859864235,
0.24928510189056396,
-0.22161944210529327,
0.10719048976898193,
0.023361971601843834,
0.19798259437084198,
-0.05253445357084274,
-0.2585783004760742,
-0.29758238792419434,
0.030635172501206398,
-0.09175653010606766,
0.08914021402597427,
-0.22124306857585907,
-0.18227124214172363,
0.23918958008289337,
0.0033654591534286737,
0.20549854636192322,
-0.09995479136705399,
-0.11023730039596558,
0.1654512882232666,
-0.17958581447601318,
0.1693439483642578,
0.004582533147186041,
0.27696147561073303,
0.25654348731040955,
-0.09070270508527756,
-0.14999397099018097,
-0.03873934969305992,
-0.529855489730835,
-0.44997578859329224,
0.08724643290042877,
0.2952360212802887,
-0.1409650593996048,
-0.2585269808769226,
-0.06539727002382278,
-0.0385112464427948,
-0.16150344908237457,
-0.03479447960853577,
0.02786526456475258,
-0.2688952088356018,
-0.1562509387731552,
-0.18047308921813965,
0.0838657021522522,
0.2679865062236786,
0.05159464851021767,
0.00137363001704216,
-0.003776756813749671,
0.07854960113763809,
-0.06510768085718155,
0.17834502458572388,
-0.126885324716568,
-0.0905195027589798,
-0.23971092700958252,
-0.18526779115200043,
0.344043493270874,
-0.4733639657497406,
-0.1089770644903183,
-0.008411979302763939,
-0.1969912052154541,
-0.04934081807732582,
-0.2570842504501343,
0.04294738546013832,
-0.19606247544288635,
-0.1369912177324295,
0.16925857961177826,
0.08983562141656876,
0.20928463339805603,
-0.11851281672716141,
-0.33409613370895386,
-0.4222733974456787,
-0.3132750988006592,
0.03987728804349899,
-0.09307175129652023,
0.1723693311214447,
0.06422363966703415,
-0.16942699253559113,
0.20527702569961548,
-0.0010918512707576156,
-0.09837161749601364,
0.7106883525848389,
0.47817912697792053,
0.35269850492477417,
-0.04946611076593399,
-0.0677533745765686,
-0.1924736052751541,
0.30613887310028076,
-0.07220353186130524,
0.28815004229545593,
0.18489019572734833,
-0.13615955412387848,
-0.13988971710205078,
-0.0058655524626374245,
-0.20051509141921997,
-0.22964194416999817,
0.16984426975250244,
-0.13805149495601654,
0.2528873682022095,
0.32194972038269043,
-0.19778499007225037,
0.23688162863254547,
-0.18125860393047333,
0.20859099924564362,
-0.2242494821548462,
0.27811557054519653,
-0.06381190568208694,
0.06245831772685051,
0.2114018350839615,
0.2979298233985901,
0.20142167806625366,
0.07919856160879135,
0.011929066851735115,
0.35880815982818604,
-0.09724968671798706,
0.17098157107830048,
0.3310299515724182,
0.3559340536594391,
0.08287303149700165,
-0.23671267926692963,
-0.19304822385311127,
0.08902012556791306,
-0.20965826511383057,
0.2908059358596802,
0.17855645716190338,
0.4742391109466553,
-0.15549592673778534,
0.12947525084018707,
0.21136948466300964,
0.116880863904953,
0.0017109621549025178,
-0.09780796617269516,
0.07564468681812286,
-0.34206220507621765,
0.1594598889350891,
0.28442463278770447,
0.25429782271385193,
0.025936858728528023,
-0.113798588514328,
0.306960791349411,
0.4033271372318268,
0.02304009348154068,
-0.05360153317451477,
0.09260028600692749,
-0.1973939836025238,
0.020907139405608177,
0.012549303472042084,
0.4818210303783417,
0.047195903956890106,
0.23991870880126953,
0.0521998330950737,
0.19053775072097778,
-0.025710666552186012,
-0.3361626863479614,
0.20261578261852264,
0.024098876863718033,
0.20857270061969757,
-0.10787075757980347,
0.22981756925582886,
0.039315011352300644,
-0.36513417959213257,
-0.015751907601952553,
-0.020477287471294403,
0.16020803153514862,
-0.21301686763763428,
-0.10760773718357086,
-0.4700702130794525,
-0.2990794777870178,
-0.45737993717193604,
-0.41930341720581055,
-0.509884238243103,
-0.46550846099853516,
0.31620508432388306,
-0.15035361051559448,
-0.1422872394323349,
0.24902106821537018,
-0.23120661079883575,
-0.07975883036851883,
-0.09335724264383316,
-0.06610176712274551,
-0.005224383436143398,
0.0906272903084755,
-0.303670734167099,
0.10495319962501526,
0.030569706112146378,
-0.014088946394622326,
0.044841308146715164,
-0.15429195761680603,
0.10435392707586288,
-0.3426959812641144,
-0.40597692131996155,
-0.0775827020406723,
-0.08435282856225967,
0.5491739511489868,
0.10175073146820068,
0.0014882092364132404,
-0.10844328999519348,
0.08050704747438431,
0.32339951395988464,
-0.06754748523235321,
-0.11654042452573776,
-0.05430784076452255,
-0.02535536140203476,
0.2058877795934677,
0.1120978593826294,
-0.39379897713661194,
-0.012276503257453442,
-0.22869938611984253,
0.02064736746251583,
-0.029260532930493355,
-0.059623535722494125,
0.16159972548484802,
0.035046547651290894,
0.18218588829040527,
-0.10963913053274155,
-0.05025909096002579,
-0.07753030210733414,
-0.6021643280982971,
0.3979024291038513,
-0.16120339930057526,
-0.27276790142059326,
0.039937280118465424,
0.22591723501682281,
0.16215108335018158,
-0.1656934916973114,
-0.5440136194229126,
-0.46495723724365234,
-0.12290725857019424,
0.1300371289253235,
0.32753247022628784,
-0.1609509140253067,
0.30478882789611816,
-0.054741017520427704,
-0.2606637477874756,
-0.05747022107243538,
-0.03537295386195183,
0.09417317807674408,
0.1546817272901535,
0.25333380699157715,
-0.0691729411482811,
0.610392153263092,
0.08461613953113556,
0.8092585206031799,
0.25970277190208435,
0.3382926285266876,
0.2470427304506302,
-0.1527683585882187,
0.2351427525281906,
-0.016896046698093414,
-0.05657319724559784,
0.051585886627435684,
-0.12410886585712433,
-0.0555756576359272,
0.09639834612607956,
0.3787654638290405,
0.6186667084693909,
-0.06979679316282272,
0.201570063829422,
-0.2937104403972626,
-0.03711921349167824,
-0.17552334070205688,
0.20903433859348297,
0.24243216216564178,
0.05913647264242172,
-0.15370091795921326,
0.007831358350813389,
-0.1437823623418808,
0.2146521806716919,
0.2838858664035797,
-0.11203239113092422,
0.18232423067092896,
-0.6854105591773987,
-0.11316987872123718,
-0.24817116558551788,
0.4097757041454315,
-0.010677961632609367,
0.08114378899335861,
0.0955093652009964,
-0.09410689771175385,
0.03241315111517906,
-0.10749740898609161,
0.3626115918159485,
-0.06966698914766312,
0.0681169182062149,
0.18990814685821533,
-0.3169659972190857,
-0.13920889794826508,
-0.17251040041446686,
0.023605618625879288,
-0.27910116314888,
0.4109928011894226,
0.3146071135997772,
-0.019766604527831078,
-0.3156175911426544,
0.05469664931297302,
-0.08998491615056992,
-0.18120108544826508,
0.11677100509405136,
-0.3629804253578186,
-0.3824228048324585,
-0.0023284005001187325,
-0.3053693473339081,
-0.020320558920502663,
0.11604298651218414,
-0.21917633712291718,
-0.02698911353945732,
0.16599667072296143,
-0.129184290766716,
-0.03738449513912201,
-0.0013793519465252757,
0.2292928397655487,
0.10559464991092682,
0.007170855533331633,
0.18884900212287903,
-0.012166597880423069,
0.40288060903549194,
0.6721404194831848,
-0.18604804575443268,
-0.5906387567520142,
-0.29134005308151245,
0.22490233182907104,
0.24475087225437164,
0.30568698048591614,
-0.036248140037059784,
0.3247118890285492,
0.20091690123081207,
0.09974018484354019,
-0.03965704143047333,
0.04459789767861366,
0.48390164971351624,
-0.06895960867404938,
-0.13994190096855164,
-0.4995931088924408,
0.6568707823753357,
0.09780901670455933,
0.013737078756093979,
0.26683509349823,
0.24611061811447144,
-0.17832794785499573,
-0.16695715487003326,
0.17246009409427643,
0.8291389346122742,
-0.04096847400069237,
0.23106001317501068,
0.39609071612358093,
-0.48482346534729004,
0.5719251036643982,
0.12026347219944,
0.1941397488117218,
-0.3730410933494568,
-0.06337875127792358,
-0.00809048768132925,
-0.09199250489473343,
0.013528362847864628,
0.009492113254964352,
-0.007186316419392824,
0.33375731110572815,
-0.14169242978096008,
0.06031051278114319,
-0.11298153549432755,
0.0118250185623765,
-0.1428665965795517,
0.2773577570915222,
-0.5153908133506775,
0.2148793637752533,
0.1652454435825348,
0.23827402293682098,
-0.19992315769195557,
-0.20566244423389435,
-0.10375663638114929,
-0.09229660779237747,
0.024244509637355804,
0.18594574928283691,
-0.3815820813179016,
0.21161052584648132,
0.08494593948125839,
-0.2099078893661499,
-0.3028813302516937,
0.4327223300933838,
0.16285936534404755,
-0.190069779753685,
-0.2635912299156189,
0.3623169958591461,
0.2731160819530487,
-0.0681043267250061,
0.1615021675825119,
-0.03014138713479042,
0.29882392287254333,
-0.30356860160827637,
-0.05538979917764664,
0.28544682264328003,
0.027956439182162285,
-0.5376615524291992,
-0.2894960939884186,
-0.07226619124412537,
-0.37657997012138367,
-0.15077762305736542,
-0.13214369118213654,
0.12796977162361145,
0.2519579529762268,
-0.30336394906044006,
0.1605207622051239,
0.15525750815868378,
0.15562988817691803,
-0.26459845900535583,
0.05677073076367378,
-0.23915864527225494,
-0.1719484031200409,
0.3282786011695862,
-0.1123788058757782,
0.001802027691155672,
0.48580968379974365,
0.33418431878089905,
0.039255738258361816,
-0.13795588910579681,
0.012377478182315826,
0.22581994533538818,
-0.23583322763442993,
0.1973343938589096,
-0.04332543537020683,
0.2427883893251419,
0.2512146830558777,
0.4615604877471924,
0.16520236432552338,
-0.18670573830604553,
0.03500499948859215,
-0.18157415091991425,
0.00948343425989151,
0.4817070960998535,
0.15770630538463593,
-0.008812407031655312,
-0.19529172778129578,
0.1823579967021942,
-0.07507079839706421,
-0.2257024645805359,
-0.3950365483760834,
0.20384934544563293,
-0.1439022421836853,
-0.27711454033851624,
-0.3582421839237213,
0.0014217651914805174,
0.2592719793319702,
0.17898023128509521,
0.09735733270645142,
-0.29257383942604065,
-0.35373950004577637,
-0.16604770720005035,
-0.17085351049900055,
0.07086072117090225,
0.033423665910959244,
-0.088859423995018,
0.098410464823246,
-0.2000894844532013,
-0.06274659186601639,
0.01280135940760374,
-0.13737891614437103,
0.3463509678840637,
0.08125268667936325,
0.10522735118865967,
-0.0027634152211248875,
-0.11826067417860031,
0.12217942625284195,
0.0165881235152483,
0.03415420278906822,
-0.032135020941495895,
0.2820424437522888,
0.09881871193647385,
-0.04755653440952301,
0.04559692367911339,
0.13921992480754852,
-0.018855717033147812,
-0.2877002954483032,
-0.02327547036111355,
0.24667315185070038,
-0.3490712642669678,
0.019790612161159515,
0.43900102376937866,
0.4129159152507782,
0.33391425013542175,
-0.23367808759212494,
-0.06594203412532806,
0.03395969048142433,
0.2542685270309448,
-0.2860070466995239,
-0.05366506427526474,
-0.3654845356941223,
0.18744727969169617,
-0.1943543404340744,
-0.013109440915286541,
0.07159343361854553,
0.06685813516378403,
0.10992195457220078,
0.3007771074771881,
0.20039229094982147,
-0.0254672784358263,
0.3398096263408661,
-0.1550866961479187,
0.07494935393333435,
0.11955102533102036,
0.31867703795433044,
-0.030822904780507088,
0.14627258479595184,
0.12110329419374466,
0.11832384020090103,
0.2409101277589798,
0.13013815879821777,
0.10853864252567291,
-0.0022798364516347647,
-0.18707340955734253,
0.008457457646727562,
0.2893757224082947,
-0.1413891613483429,
-0.0005290777771733701,
-0.08315470814704895,
0.4072689712047577,
-0.33533337712287903,
-0.029764309525489807,
-0.37190011143684387,
0.1679237186908722,
-0.04186875745654106,
-0.15755781531333923,
0.16522882878780365,
-0.18972453474998474,
0.10797811299562454,
0.0576377771794796,
-0.14316658675670624,
-0.23840971291065216,
-0.046477336436510086,
-0.05668724700808525,
-0.2598983645439148,
-0.5065017938613892,
-0.26892364025115967,
0.17228460311889648,
0.3049839735031128,
0.009284482337534428,
0.1346588432788849,
0.27071112394332886,
-0.2390352189540863,
0.28457367420196533,
0.44394272565841675,
0.33264926075935364,
0.19323572516441345,
0.1335197389125824,
-0.11421098560094833,
0.017182104289531708,
-0.011442762799561024,
0.09067968279123306,
0.16139458119869232,
0.1812465637922287,
0.10342609137296677,
0.3300350606441498,
0.24589672684669495,
-0.21242903172969818,
0.16319730877876282,
-0.25997504591941833,
0.2762051522731781,
-0.4183759391307831,
0.4726521670818329,
-0.19548232853412628,
0.030196161940693855,
-0.13528110086917877,
0.21227741241455078,
-0.3365432024002075,
0.0922628715634346,
0.3247300386428833,
-0.1356578767299652,
-0.1607270985841751,
-0.12372209131717682,
0.1383810043334961,
0.15646079182624817,
0.37513986229896545,
0.6169620752334595,
0.10070446133613586,
-0.10288015753030777,
-0.46282312273979187,
-0.612259030342102,
0.02000395394861698,
-0.11227434873580933,
0.19511549174785614,
-0.014568583108484745,
-0.07920722663402557,
-0.057174909859895706,
-0.08581128716468811,
0.2085535228252411,
-0.24715186655521393,
-0.3349530100822449,
-0.209424689412117,
-0.33588796854019165,
0.1395665407180786,
-0.16036595404148102,
0.128080815076828,
-0.020531607791781425,
0.037192750722169876,
0.028470315039157867,
0.0694410651922226,
0.04522114247083664,
0.11958471685647964,
0.08440862596035004,
0.008261862210929394,
-0.3566034436225891,
0.2902090847492218,
0.14187714457511902,
0.0494372732937336,
0.10124116390943527,
-0.2747136950492859,
-0.35107776522636414,
-0.6006177663803101,
-0.17526371777057648,
0.21371565759181976,
-0.3993285596370697,
0.3152045011520386,
-0.11927610635757446,
-0.16635455191135406,
-0.24798429012298584,
0.3971482217311859,
0.07293348759412766,
-0.3265811800956726,
-0.19884826242923737,
0.10871417820453644,
0.11680837720632553,
0.022336618974804878,
0.262465238571167,
0.4446202516555786,
0.041253432631492615,
0.16930650174617767,
-0.13085226714611053,
-0.24797362089157104,
0.40888988971710205,
-0.5502554774284363,
0.1254834085702896,
-0.14244098961353302,
0.2096138894557953,
0.3931012749671936,
-0.06791848689317703,
-0.43120402097702026,
-0.14931268990039825,
0.4588039517402649,
0.49164992570877075,
-0.20302355289459229,
0.4504629373550415,
-0.018501726910471916,
-0.07818974554538727,
-0.0022149805445224047,
0.44933006167411804,
-0.015174400992691517,
-0.3239262104034424,
0.15133140981197357,
-0.09474235773086548
] |
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.18143849074840546,
0.2633902430534363,
-0.03079572506248951,
0.059245575219392776,
0.04188992455601692,
0.12300191074609756,
-0.12396808713674545,
0.2763622999191284,
-0.19367703795433044,
-0.03390052542090416,
-0.07967764139175415,
-0.06463774293661118,
0.04963041841983795,
0.054335229098796844,
0.05471693351864815,
0.11283212900161743,
0.06956895440816879,
-0.1595679223537445,
-0.43161845207214355,
-0.10874276608228683,
-0.19139792025089264,
0.2826838195323944,
-0.13568434119224548,
-0.0009306261199526489,
-0.33946889638900757,
0.15082690119743347,
-0.2323256880044937,
0.36468568444252014,
-0.33223095536231995,
-0.4802740514278412,
0.2540856897830963,
0.09761343896389008,
0.13200366497039795,
0.4148576259613037,
-0.00010960109648294747,
-0.03297695145010948,
0.2606877386569977,
0.07207745313644409,
-0.3000721037387848,
-0.25386157631874084,
-0.3303821384906769,
-0.05347789078950882,
0.0642528310418129,
0.00519692525267601,
-0.11150439083576202,
0.008726349100470543,
-0.10955098271369934,
-0.15800176560878754,
0.22638638317584991,
0.49451944231987,
0.24062633514404297,
0.1653042733669281,
0.12513668835163116,
-0.20521944761276245,
0.16587980091571808,
-0.21568696200847626,
-0.023003054782748222,
0.4426390826702118,
0.12097970396280289,
0.1489262580871582,
0.18961334228515625,
0.45622575283050537,
0.0909186452627182,
-0.18026822805404663,
0.19111919403076172,
-0.024254323914647102,
0.05993674695491791,
-0.14832621812820435,
-0.1277473419904709,
0.027396855875849724,
0.20830141007900238,
-0.19905300438404083,
-0.5881255865097046,
-0.1760203242301941,
0.016502639278769493,
-0.41746923327445984,
0.19015374779701233,
-0.08084279298782349,
0.1551341712474823,
0.24806606769561768,
-0.27174538373947144,
-0.053941234946250916,
-0.004620465915650129,
0.17169266939163208,
0.06387882679700851,
0.17188745737075806,
-0.10850735753774643,
-0.09880620241165161,
0.012423764914274216,
-0.02630707435309887,
0.12573659420013428,
0.07496703416109085,
-0.12733153998851776,
0.08490262925624847,
-0.1319330483675003,
-0.03597965091466904,
0.11388561874628067,
0.19780734181404114,
0.13433997333049774,
0.28574272990226746,
-0.038502104580402374,
-0.14742235839366913,
0.02582472190260887,
-0.19689001142978668,
0.06184696778655052,
0.3826506733894348,
0.1576802283525467,
-0.27020537853240967,
0.08010905236005783,
0.579770565032959,
-0.15998947620391846,
-0.015953147783875465,
0.10514010488986969,
-0.43485531210899353,
-0.3297356069087982,
0.09254829585552216,
0.2865138053894043,
-0.3187015652656555,
-0.06323982775211334,
0.010816438123583794,
-0.3502393364906311,
-0.07684006541967392,
0.0638163834810257,
0.2661105990409851,
-0.19277814030647278,
0.019027862697839737,
0.010239830240607262,
0.17837181687355042,
-0.07185205817222595,
-0.22225403785705566,
-0.2589589059352875,
0.09369729459285736,
-0.06321290880441666,
0.10311933606863022,
-0.07978028804063797,
-0.27121132612228394,
0.3014902174472809,
0.043348278850317,
0.20069248974323273,
-0.19853362441062927,
-0.08812155574560165,
0.170540452003479,
-0.027504466474056244,
0.1518934965133667,
-0.034538380801677704,
0.2503407895565033,
0.2580699026584625,
-0.13164252042770386,
-0.15061108767986298,
-0.16882458329200745,
-0.40426114201545715,
-0.4505811929702759,
0.115691639482975,
0.26774290204048157,
-0.21154345571994781,
-0.23007555305957794,
-0.024117756634950638,
-0.05810669809579849,
-0.2264195829629898,
-0.04499632865190506,
0.0595380961894989,
-0.09667447209358215,
-0.1148601770401001,
-0.10251408070325851,
0.19102665781974792,
0.4267812669277191,
0.06518912315368652,
-0.02611984685063362,
0.025713009759783745,
0.03804083168506622,
-0.20486967265605927,
0.1064191460609436,
-0.08681362867355347,
-0.06545889377593994,
-0.3349545896053314,
-0.20915743708610535,
0.1974407434463501,
-0.5608184337615967,
-0.09420234709978104,
0.04854441434144974,
-0.18074193596839905,
0.09367270767688751,
-0.16273579001426697,
-0.10186044126749039,
-0.257415771484375,
-0.17297260463237762,
0.09692846238613129,
0.005984490737318993,
0.18155533075332642,
-0.1735564023256302,
-0.3533763885498047,
-0.330109179019928,
-0.3004467189311981,
0.016160784289240837,
-0.08343371003866196,
0.11495273560285568,
0.0764571875333786,
-0.142319917678833,
0.23335924744606018,
-0.07526807487010956,
-0.055865541100502014,
0.6734697818756104,
0.44494393467903137,
0.30453625321388245,
-0.12108798325061798,
-0.07601756602525711,
-0.20761004090309143,
0.3075019419193268,
-0.048655517399311066,
0.3698550760746002,
0.05295637622475624,
-0.21976354718208313,
-0.26232224702835083,
-0.032250721007585526,
-0.18723663687705994,
-0.3644116222858429,
0.15219253301620483,
0.0017654779367148876,
0.3293643891811371,
0.3688013553619385,
-0.13086074590682983,
0.2453596293926239,
-0.09269984066486359,
0.2844388782978058,
-0.3363267481327057,
0.20504198968410492,
-0.07534298300743103,
0.1298631727695465,
0.18031881749629974,
0.33162885904312134,
0.16854998469352722,
-0.04709317535161972,
0.06215810775756836,
0.4803510904312134,
0.02411028929054737,
0.22607967257499695,
0.2993490993976593,
0.3887951672077179,
0.14081694185733795,
-0.15285152196884155,
-0.2659076750278473,
0.05047362670302391,
-0.19810746610164642,
0.28524965047836304,
0.004288556985557079,
0.5125671625137329,
-0.2272351235151291,
0.04371359944343567,
0.3117080628871918,
0.08029154688119888,
-0.025398874655365944,
-0.128705233335495,
-0.06305385380983353,
-0.3391023576259613,
0.13438402116298676,
0.190538227558136,
0.2555978000164032,
0.06941045820713043,
-0.08656448870897293,
0.254403293132782,
0.30822527408599854,
0.0007845446816645563,
-0.11999040096998215,
0.04390251263976097,
-0.16330991685390472,
-0.030238468199968338,
0.03621838614344597,
0.49184650182724,
0.046304527670145035,
0.1890503466129303,
0.14360328018665314,
0.26708856225013733,
-0.10659924894571304,
-0.31051120162010193,
0.20721331238746643,
-0.0025306730531156063,
0.12407709658145905,
-0.07945560663938522,
0.1605025827884674,
0.07900118082761765,
-0.32714056968688965,
-0.0104958675801754,
0.06674052774906158,
0.13969391584396362,
-0.33130398392677307,
-0.07371167838573456,
-0.41841259598731995,
-0.3264886140823364,
-0.4596155285835266,
-0.47170859575271606,
-0.5129220485687256,
-0.44993218779563904,
0.2855212092399597,
-0.05653787776827812,
-0.1617540419101715,
0.2672255337238312,
-0.21559378504753113,
-0.053166549652814865,
-0.07354927062988281,
-0.15256893634796143,
-0.028565263375639915,
0.161437526345253,
-0.25337064266204834,
0.08040967583656311,
0.09475525468587875,
0.004785852041095495,
0.08358745276927948,
-0.19146738946437836,
0.07420605421066284,
-0.37234559655189514,
-0.46358636021614075,
-0.056441567838191986,
-0.14089830219745636,
0.5550064444541931,
0.18130125105381012,
-0.021527372300624847,
-0.11950166523456573,
0.08605002611875534,
0.26706498861312866,
-0.0964377373456955,
-0.147089421749115,
-0.0960969626903534,
0.004129011649638414,
0.21653038263320923,
-0.019194137305021286,
-0.3963409662246704,
0.09231817722320557,
-0.1952119916677475,
0.15195003151893616,
0.006910030264407396,
-0.13811932504177094,
0.2225104123353958,
0.04844362661242485,
0.21655993163585663,
-0.17572641372680664,
-0.009416650049388409,
-0.14964687824249268,
-0.5822516679763794,
0.2848046123981476,
-0.17670543491840363,
-0.23909682035446167,
0.02570492774248123,
0.16596372425556183,
0.2770979106426239,
-0.18859146535396576,
-0.4924693703651428,
-0.5709956288337708,
-0.06442499160766602,
0.1746460646390915,
0.23722600936889648,
-0.13558261096477509,
0.3587380349636078,
-0.08549748361110687,
-0.2194230556488037,
-0.09851648658514023,
-0.05378817766904831,
0.061486560851335526,
-0.021650228649377823,
0.25050193071365356,
-0.18857190012931824,
0.48919808864593506,
0.17696763575077057,
0.843183696269989,
0.2600781321525574,
0.2609484791755676,
0.23622967302799225,
-0.1968097686767578,
0.32445359230041504,
0.04721299931406975,
-0.08102435618638992,
0.07276132702827454,
-0.10169431567192078,
-0.0037911192048341036,
0.04299777001142502,
0.30666473507881165,
0.7679779529571533,
-0.09145651012659073,
0.1827262043952942,
-0.32474273443222046,
-0.13103212416172028,
-0.181719571352005,
0.03568808734416962,
0.3020511865615845,
0.11696655303239822,
-0.04254446551203728,
0.017198409885168076,
-0.10266472399234772,
0.23174378275871277,
0.3316006362438202,
-0.013530874624848366,
0.1732325702905655,
-0.6399109363555908,
-0.03650861233472824,
-0.35180264711380005,
0.3797094523906708,
0.06451887637376785,
0.13964776694774628,
0.05562650412321091,
-0.12337584793567657,
-0.05071403831243515,
-0.11608187109231949,
0.4085851013660431,
-0.06917622685432434,
0.10590368509292603,
0.135065957903862,
-0.3020000457763672,
-0.24611796438694,
-0.0885845273733139,
-0.02723005972802639,
-0.3619997501373291,
0.45751163363456726,
0.4446379542350769,
-0.16566571593284607,
-0.30981454253196716,
0.056244298815727234,
-0.14170381426811218,
-0.05323334410786629,
0.20525608956813812,
-0.3486969470977783,
-0.4430466890335083,
-0.05464407056570053,
-0.2301960587501526,
-0.007174056023359299,
0.14707978069782257,
-0.26783487200737,
0.08680477738380432,
0.1913803219795227,
-0.06772346049547195,
0.06395459920167923,
0.03181501850485802,
0.24380230903625488,
0.14177297055721283,
0.01986057311296463,
0.2720102369785309,
0.015375596471130848,
0.40656745433807373,
0.6914364099502563,
-0.13545379042625427,
-0.469749391078949,
-0.3509460985660553,
0.2945718467235565,
0.25907260179519653,
0.32631102204322815,
-0.04765790328383446,
0.3299771845340729,
0.19127994775772095,
0.07776177674531937,
-0.20937176048755646,
0.10485591739416122,
0.45345234870910645,
-0.04093699902296066,
-0.08530346304178238,
-0.3975657522678375,
0.578066349029541,
0.08594211935997009,
0.028103753924369812,
0.25313708186149597,
0.3308793604373932,
-0.2443993240594864,
-0.18555040657520294,
0.22003312408924103,
0.842585563659668,
0.027328010648489,
0.24988284707069397,
0.4652475416660309,
-0.4865776002407074,
0.6284453868865967,
0.11389176547527313,
0.11679033935070038,
-0.3304576873779297,
-0.06226452440023422,
-0.0057840910740196705,
-0.10611990094184875,
0.008203603327274323,
-0.06390395760536194,
-0.1377890706062317,
0.26580268144607544,
-0.06027822569012642,
0.08598615974187851,
-0.06797055900096893,
0.18011383712291718,
-0.2645605504512787,
0.27337339520454407,
-0.4418807625770569,
0.21285215020179749,
0.24513456225395203,
0.29726725816726685,
-0.22243595123291016,
-0.20041005313396454,
-0.15610213577747345,
-0.19805032014846802,
-0.01800641044974327,
0.1851613074541092,
-0.3557872176170349,
0.13905279338359833,
0.17248660326004028,
-0.10213273018598557,
-0.27566078305244446,
0.30335789918899536,
0.22237920761108398,
-0.07625631242990494,
-0.26802700757980347,
0.4168853461742401,
0.12823528051376343,
-0.043142084032297134,
0.1861741691827774,
-0.03400249034166336,
0.34043195843696594,
-0.23314118385314941,
-0.06306915730237961,
0.13821570575237274,
-0.07672597467899323,
-0.43915531039237976,
-0.2390260547399521,
-0.11839219927787781,
-0.44305455684661865,
-0.20567059516906738,
-0.042247749865055084,
0.06941697001457214,
0.11496441066265106,
-0.27104252576828003,
0.1299426257610321,
0.04799723997712135,
0.10400047153234482,
-0.3076744079589844,
0.06995275616645813,
-0.2854260206222534,
-0.16014452278614044,
0.42543187737464905,
-0.32187241315841675,
-0.006743939593434334,
0.48138952255249023,
0.25023892521858215,
0.11230907589197159,
-0.11103542149066925,
-0.03719916567206383,
0.23809681832790375,
-0.2929176688194275,
0.1611117273569107,
-0.017207162454724312,
0.26941630244255066,
0.17230594158172607,
0.40408626198768616,
0.2376522719860077,
-0.09559229016304016,
0.08369726687669754,
-0.2066097855567932,
0.027800198644399643,
0.4206286668777466,
0.117064468562603,
0.05660098418593407,
-0.23264862596988678,
0.32100269198417664,
0.0009802582208067179,
-0.11525601893663406,
-0.36222031712532043,
0.24784962832927704,
-0.16760578751564026,
-0.19888857007026672,
-0.2702733278274536,
-0.057368118315935135,
0.2942201495170593,
0.0823206827044487,
0.06733251363039017,
-0.19604279100894928,
-0.3853550851345062,
-0.1269192397594452,
-0.21151980757713318,
0.0900653600692749,
0.03981047123670578,
-0.1216634139418602,
0.06215088069438934,
-0.056266289204359055,
-0.0648765042424202,
-0.0032027666456997395,
-0.13050076365470886,
0.31666260957717896,
0.0318104512989521,
0.08921036124229431,
-0.013512288220226765,
-0.040049850940704346,
0.10377036780118942,
-0.13228684663772583,
0.10112806409597397,
-0.012904415838420391,
0.2341834455728531,
0.07587811350822449,
-0.19528241455554962,
0.03385487198829651,
0.17497093975543976,
0.11172579973936081,
-0.15577301383018494,
-0.06630712002515793,
0.23099558055400848,
-0.18559594452381134,
-0.05363667383790016,
0.3081512153148651,
0.46729254722595215,
0.3777962625026703,
-0.2285105288028717,
0.0026173952501267195,
0.06090284883975983,
0.22456873953342438,
-0.20258347690105438,
0.030742334201931953,
-0.36187544465065,
0.15366202592849731,
-0.06390682607889175,
0.00531735410913825,
0.14857697486877441,
0.09132547676563263,
0.18645477294921875,
0.24609951674938202,
0.215444415807724,
0.005551885347813368,
0.30465710163116455,
-0.1607414335012436,
-0.034944795072078705,
0.08004480600357056,
0.335079550743103,
-0.10895667970180511,
0.1698312610387802,
-0.004172107204794884,
0.11209430545568466,
0.29561594128608704,
-0.006813565734773874,
0.1529403179883957,
0.010291703045368195,
-0.18733179569244385,
-0.03322218358516693,
0.2469593733549118,
-0.1338675320148468,
0.03004327043890953,
-0.0903749167919159,
0.4863060712814331,
-0.4023505747318268,
-0.05685944855213165,
-0.3628675937652588,
0.184299036860466,
0.036932796239852905,
-0.19368118047714233,
0.119868203997612,
-0.25133439898490906,
0.017706068232655525,
0.03701428323984146,
-0.04214866831898689,
-0.27709856629371643,
0.004044300876557827,
-0.08287601917982101,
-0.2485535591840744,
-0.5583953261375427,
-0.3507035970687866,
0.2220553606748581,
0.31338930130004883,
-0.02068091183900833,
0.1966709941625595,
0.3626987040042877,
-0.2110576331615448,
0.31591078639030457,
0.4462777078151703,
0.3888234794139862,
0.08953770995140076,
0.19719341397285461,
-0.04787638410925865,
-0.09101975709199905,
0.04385462775826454,
0.10911959409713745,
0.2886357307434082,
0.18979164958000183,
-0.002509681973606348,
0.4184231162071228,
0.21272756159305573,
-0.19552171230316162,
0.09284096956253052,
-0.29015615582466125,
0.21782462298870087,
-0.4855857491493225,
0.5161008834838867,
-0.23690439760684967,
0.09149975329637527,
-0.18255507946014404,
0.22030679881572723,
-0.37142425775527954,
0.1440800130367279,
0.26041150093078613,
-0.10470886528491974,
-0.053745515644550323,
-0.1721445918083191,
0.1095532700419426,
0.2026280015707016,
0.42191755771636963,
0.6534838676452637,
0.08876904100179672,
-0.1786475032567978,
-0.5586005449295044,
-0.6866905689239502,
-0.07618124783039093,
-0.08748331665992737,
0.10364950448274612,
-0.09778084605932236,
-0.05711754411458969,
-0.09617144614458084,
-0.06899793446063995,
0.07693354785442352,
-0.23981155455112457,
-0.21910686790943146,
-0.24074740707874298,
-0.31127217411994934,
0.16164401173591614,
-0.21004046499729156,
0.058540236204862595,
0.0036475120577961206,
0.05390263348817825,
0.056128162890672684,
0.05102703347802162,
0.03608407452702522,
0.19601741433143616,
0.12497047334909439,
-0.018799303099513054,
-0.2710789442062378,
0.26452481746673584,
0.14767973124980927,
0.12950937449932098,
0.04239197447896004,
-0.33906087279319763,
-0.4437508285045624,
-0.43036437034606934,
-0.14745624363422394,
0.22989998757839203,
-0.3755776286125183,
0.3490495979785919,
-0.0557294562458992,
-0.2273748368024826,
-0.23841771483421326,
0.43887457251548767,
0.14615002274513245,
-0.31559062004089355,
-0.24094542860984802,
0.11137842386960983,
-0.018596263602375984,
0.11044808477163315,
0.27721497416496277,
0.5209017395973206,
-0.03107658214867115,
0.26828646659851074,
-0.19458356499671936,
-0.2983015775680542,
0.5188689827919006,
-0.5274540781974792,
0.12734615802764893,
-0.14318259060382843,
0.24428512156009674,
0.29393988847732544,
-0.16053113341331482,
-0.5092297792434692,
-0.07871944457292557,
0.4858416020870209,
0.436369925737381,
-0.21809904277324677,
0.4078385531902313,
-0.06994984298944473,
-0.04904346913099289,
0.00539866928011179,
0.5054844617843628,
0.024407144635915756,
-0.24261155724525452,
0.26639440655708313,
-0.017051421105861664
] |
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.4477348029613495,
0.043236277997493744,
-0.029589876532554626,
0.42085692286491394,
0.5251885056495667,
0.10357268899679184,
0.16477610170841217,
0.19409069418907166,
0.10968853533267975,
0.13626281917095184,
-0.10965226590633392,
0.336870402097702,
-0.06277691572904587,
-0.1668591946363449,
0.1410331130027771,
-0.24637867510318756,
-0.027194252237677574,
0.19206054508686066,
0.09220898151397705,
-0.0036326118279248476,
-0.36855006217956543,
-0.13648134469985962,
-0.355876088142395,
0.14569701254367828,
-0.16290631890296936,
0.22540231049060822,
0.193155899643898,
0.009008745662868023,
-0.3982923626899719,
-0.7526159286499023,
0.37476351857185364,
-0.11199918389320374,
0.3816024661064148,
0.3474770188331604,
-0.000124061232781969,
-0.053221505135297775,
0.46949464082717896,
0.06905312836170197,
-0.032564371824264526,
-0.15558883547782898,
-0.04724957421422005,
-0.5924615859985352,
0.47467249631881714,
-0.26637527346611023,
0.1151423528790474,
-0.3819158375263214,
-0.08037137985229492,
0.010681814514100552,
0.000042153515096288174,
0.32557785511016846,
0.11467809975147247,
0.2620683014392853,
0.17252279818058014,
-0.043403398245573044,
0.23120509088039398,
-0.2000414878129959,
-0.026191074401140213,
0.7022863030433655,
0.3933599293231964,
-0.07418716698884964,
0.04539377987384796,
-0.13261719048023224,
-0.268316388130188,
0.3054690659046173,
0.6438332200050354,
0.047105781733989716,
0.7276011109352112,
0.11253388971090317,
-0.0025624041445553303,
0.20774348080158234,
0.5605257153511047,
-0.3992995023727417,
-0.18721498548984528,
-0.005593957845121622,
0.11980525404214859,
-0.5990044474601746,
-0.00578590203076601,
0.1554778516292572,
-0.08632301539182663,
-0.029774313792586327,
-0.1559567153453827,
-0.27718237042427063,
-0.3049784302711487,
0.38273847103118896,
-0.4256863594055176,
0.19994217157363892,
-0.002861995715647936,
0.19045093655586243,
0.042130209505558014,
0.10369134694337845,
0.36129799485206604,
0.12350676953792572,
-0.034315742552280426,
0.3206459879875183,
-0.19708320498466492,
0.3396158218383789,
-0.013392806053161621,
0.004550974816083908,
0.16329406201839447,
0.013045573607087135,
-0.11882971227169037,
0.018344692885875702,
0.20287106931209564,
0.3485451638698578,
0.16148220002651215,
0.30779629945755005,
0.16724662482738495,
0.011029387824237347,
0.05597180128097534,
-0.004024236463010311,
0.08306547999382019,
-0.06706783175468445,
-0.21604123711585999,
-0.46616342663764954,
0.5968541502952576,
0.0668010264635086,
0.30124562978744507,
-0.11603657901287079,
-0.4341297447681427,
-0.11299913376569748,
-0.08659103512763977,
-0.09438885003328323,
0.04979890584945679,
0.2513810694217682,
-0.19973814487457275,
0.09123887866735458,
0.0677676722407341,
0.369697242975235,
-0.2501341998577118,
-0.18576838076114655,
-0.19527311623096466,
0.10661144554615021,
-0.262535035610199,
0.00002966064857901074,
0.08918005228042603,
-0.056817226111888885,
0.05680851638317108,
0.003025712678208947,
0.09761898964643478,
-0.11976426839828491,
-0.03686771169304848,
0.05558853968977928,
-0.3641153573989868,
0.2943824827671051,
-0.020762121304869652,
0.06735400855541229,
0.15511345863342285,
-0.2252221256494522,
-0.24458028376102448,
0.4579233229160309,
-0.606168806552887,
-0.2087029665708542,
-0.15681467950344086,
0.13323691487312317,
-0.3736666142940521,
-0.10925467312335968,
-0.35283809900283813,
0.011628647334873676,
0.0077764419838786125,
-0.412994384765625,
-0.07132408767938614,
-0.31131935119628906,
-0.1520635038614273,
-0.35411304235458374,
0.2045825719833374,
-0.022717507556080818,
-0.5203081965446472,
-0.3517712354660034,
-0.012966504320502281,
-0.29463493824005127,
0.27513277530670166,
-0.05845428258180618,
-0.16627031564712524,
0.30132660269737244,
0.015981677919626236,
0.18519629538059235,
0.6382402181625366,
-0.47526225447654724,
-0.34434962272644043,
-0.19503340125083923,
-0.0009899033466354012,
-0.26437994837760925,
-0.160080686211586,
0.04091012477874756,
0.15011446177959442,
0.06417599320411682,
0.2980695366859436,
0.20621727406978607,
-0.0031763894949108362,
-0.15942920744419098,
-0.17330895364284515,
-0.28328314423561096,
0.43979185819625854,
0.34132063388824463,
0.30448484420776367,
-0.05912801995873451,
0.16991369426250458,
-0.1738017499446869,
0.10141430050134659,
-0.07185319066047668,
-0.15426944196224213,
0.18489274382591248,
0.3217565715312958,
-0.03572362661361694,
0.05504646152257919,
-0.4485325217247009,
-0.125890851020813,
0.18921515345573425,
-0.3106270134449005,
-0.16796346008777618,
0.004241126123815775,
0.10948329418897629,
-0.43469035625457764,
0.2367289513349533,
-0.11086032539606094,
0.33394116163253784,
-0.02711479365825653,
-0.25892114639282227,
-0.21482259035110474,
0.18709184229373932,
-0.2771645486354828,
-0.19586817920207977,
-0.09498092532157898,
0.14484579861164093,
0.030931267887353897,
0.3782994747161865,
-0.07872965186834335,
-0.24149779975414276,
-0.059373799711465836,
0.2561083137989044,
0.30774909257888794,
0.02215384505689144,
-0.15376423299312592,
0.260368674993515,
0.16005146503448486,
0.08089350908994675,
-0.21384361386299133,
0.30931392312049866,
0.1825263649225235,
-0.46853795647621155,
0.11979939788579941,
-0.06687451899051666,
0.04943007603287697,
-0.09012289345264435,
0.4214510917663574,
0.32791122794151306,
0.23515203595161438,
0.13854922354221344,
-0.2111467719078064,
0.0676794946193695,
-0.059607554227113724,
0.16015243530273438,
0.14241929352283478,
-0.08541809767484665,
0.2626121938228607,
0.041994620114564896,
0.13802911341190338,
-0.10820774734020233,
0.28671419620513916,
-0.3000463843345642,
0.2892783284187317,
-0.1676274985074997,
0.3101266324520111,
0.050069209188222885,
-0.4673430919647217,
-0.049384281039237976,
-0.09229794889688492,
-0.4501456618309021,
0.3805413842201233,
0.19281750917434692,
-0.14069731533527374,
0.23330171406269073,
-0.04761667922139168,
-0.05488800257444382,
0.10004781931638718,
0.155049130320549,
0.15391556918621063,
0.2955877184867859,
0.1372585892677307,
-0.05228244140744209,
-0.28713276982307434,
0.07655379921197891,
0.007502120919525623,
0.3762491047382355,
-0.4939347803592682,
0.0020115564111620188,
-0.23721089959144592,
0.3236043155193329,
0.1041831374168396,
-0.6289686560630798,
-0.22381454706192017,
-0.22102276980876923,
-0.008297829888761044,
0.077393539249897,
0.2758728861808777,
0.2762286961078644,
0.07565131038427353,
0.02635510265827179,
0.10772281140089035,
-0.339679479598999,
-0.0453534759581089,
-0.4383222162723541,
-0.23476512730121613,
-0.0768531933426857,
0.07770746201276779,
0.11925309896469116,
0.20988011360168457,
-0.3348413407802582,
0.2730448246002197,
-0.19019287824630737,
-0.26355162262916565,
-0.13094474375247955,
0.021996531635522842,
0.479318767786026,
0.16227112710475922,
0.1729496419429779,
0.08530718088150024,
0.18293055891990662,
0.5639775395393372,
-0.34760284423828125,
-0.06824678927659988,
0.34825605154037476,
-0.4411289691925049,
-0.04496965557336807,
0.06623890995979309,
-0.05661028251051903,
-0.3273489475250244,
-0.24493026733398438,
-0.1256791204214096,
0.2227712869644165,
0.017766039818525314,
0.06135426461696625,
0.2782217860221863,
0.24756930768489838,
0.12726402282714844,
0.04823817312717438,
-0.21414437890052795,
-0.060361552983522415,
0.2959451675415039,
-0.10593992471694946,
-0.34649503231048584,
0.2384507954120636,
0.06307430565357208,
0.15602892637252808,
0.12192410230636597,
-0.20765584707260132,
-0.5688384771347046,
0.06592252105474472,
0.4641948342323303,
-0.1530638337135315,
0.060201190412044525,
0.24517810344696045,
0.04058627784252167,
0.08111672103404999,
-0.13580363988876343,
-0.11963743716478348,
-0.18698780238628387,
0.05056113004684448,
0.2026740312576294,
-0.2258232831954956,
0.07873336970806122,
-0.3294830620288849,
0.5184356570243835,
-0.09823021292686462,
-0.09235510230064392,
0.2856253981590271,
-0.2308756709098816,
0.22271382808685303,
0.04576425999403,
-0.29347744584083557,
0.11641799658536911,
0.08457645773887634,
-0.0986216813325882,
0.13520869612693787,
-0.0932731032371521,
-0.1219244971871376,
-0.07201652973890305,
-0.16411477327346802,
-0.16997452080249786,
-0.0842035561800003,
-0.015313875861465931,
0.11534775048494339,
0.23118802905082703,
-0.07529749721288681,
0.09692016243934631,
-0.37518739700317383,
-0.1673184335231781,
0.10902772098779678,
0.1622152328491211,
-0.06802406907081604,
-0.015293349511921406,
0.09406346827745438,
-0.3395543098449707,
-0.18212038278579712,
0.37055760622024536,
0.1456337422132492,
0.09415778517723083,
-0.0666491910815239,
0.21819019317626953,
0.26543280482292175,
0.025083227083086967,
0.4870399534702301,
-0.10977753251791,
0.08952935039997101,
0.18711833655834198,
0.29040437936782837,
-0.7096178531646729,
-0.11577264964580536,
-0.09557536244392395,
-0.18597570061683655,
-0.14858554303646088,
0.02027180790901184,
-0.26451224088668823,
-0.027764376252889633,
0.145229771733284,
0.43434977531433105,
-0.20575807988643646,
-0.18396663665771484,
-0.3783525824546814,
-0.3793310523033142,
-0.12078358232975006,
-0.24273407459259033,
-0.13332416117191315,
0.5662711262702942,
0.22432205080986023,
0.09475692361593246,
-0.2499367594718933,
-0.004690936766564846,
0.1537562608718872,
0.07574405521154404,
0.23250290751457214,
-0.32171010971069336,
-0.10237738490104675,
0.13287343084812164,
-0.21038895845413208,
0.4325800836086273,
0.3238074779510498,
0.16683164238929749,
-0.6007296442985535,
-0.01928369514644146,
0.2132885456085205,
0.46578824520111084,
-0.06891568750143051,
-0.17121215164661407,
-0.00010733013914432377,
-0.24393300712108612,
0.06992099434137344,
-0.08594692498445511,
0.0014571684878319502,
0.434958279132843,
0.1507769674062729,
-0.2472894936800003,
-0.16912564635276794,
0.7192627787590027,
0.23620669543743134,
-0.006384734995663166,
0.24471047520637512,
0.18610957264900208,
-0.1508256196975708,
0.03866608440876007,
0.26080650091171265,
0.8751792311668396,
-0.1485062688589096,
-0.03564506024122238,
0.6681914329528809,
0.06531435996294022,
-0.04343874752521515,
-0.2077661007642746,
-0.04419760778546333,
-0.34619584679603577,
-0.0706762745976448,
-0.13250623643398285,
-0.17457999289035797,
0.27340900897979736,
-0.16513819992542267,
-0.0012440818827599287,
0.16315540671348572,
-0.3736895024776459,
0.12837369740009308,
0.2024354636669159,
-0.17626576125621796,
0.021101631224155426,
0.020324649289250374,
-0.14749804139137268,
0.0733402743935585,
-0.3176971673965454,
0.051355574280023575,
-0.20127354562282562,
0.07912366092205048,
0.025773759931325912,
0.042831163853406906,
-0.1739719957113266,
-0.1566658467054367,
-0.23340252041816711,
0.09200380742549896,
0.16689348220825195,
-0.3158757984638214,
-0.018206411972641945,
0.31533026695251465,
0.12521031498908997,
-0.19869552552700043,
-0.29985904693603516,
0.3306170105934143,
-0.3592627942562103,
-0.1649211049079895,
0.004581524059176445,
0.11175372451543808,
0.06928575783967972,
-0.1395103633403778,
-0.36706408858299255,
0.3593721389770508,
-0.013040508143603802,
-0.059305205941200256,
0.17107261717319489,
0.13153032958507538,
0.2078847587108612,
-0.2934136390686035,
-0.11842050403356552,
-0.37314432859420776,
0.4853232502937317,
-0.14371848106384277,
0.07635164260864258,
0.20601391792297363,
-0.13669122755527496,
0.28701096773147583,
0.14144930243492126,
-0.2749728560447693,
0.04070814698934555,
0.21115760505199432,
0.07841932773590088,
-0.15415595471858978,
0.35451164841651917,
-0.010618268512189388,
-0.014559129253029823,
-0.11024261265993118,
0.050997503101825714,
0.19057047367095947,
-0.2955189049243927,
0.15420877933502197,
0.38622528314590454,
0.3326416611671448,
-0.015964817255735397,
0.41686415672302246,
0.21381746232509613,
-0.24623748660087585,
-0.12409669160842896,
-0.5434436202049255,
-0.12335566431283951,
0.3222772777080536,
0.018334124237298965,
0.024311644956469536,
-0.09609781205654144,
0.14999693632125854,
-0.04571590945124626,
-0.021949436515569687,
-0.20240730047225952,
0.24125808477401733,
0.023239927366375923,
0.07978607714176178,
-0.11437965929508209,
0.013966561295092106,
-0.0038553220219910145,
-0.03837795555591583,
0.048350464552640915,
-0.2340010404586792,
-0.19786974787712097,
-0.15494988858699799,
-0.1765662580728531,
0.21694420278072357,
0.025969671085476875,
0.05017256364226341,
0.1963217854499817,
-0.1254279464483261,
-0.1540234386920929,
-0.09309472143650055,
-0.048231106251478195,
0.1811448484659195,
-0.17590636014938354,
0.2702629268169403,
0.3743324279785156,
0.17918998003005981,
-0.2139275074005127,
0.17775580286979675,
0.024697093293070793,
0.46397674083709717,
-0.07396234571933746,
0.015664516016840935,
0.09108375757932663,
0.15063464641571045,
-0.04549717158079147,
0.08571014553308487,
0.33872687816619873,
-0.2733120322227478,
0.3574756383895874,
-0.39033669233322144,
0.31229060888290405,
-0.11713572591543198,
0.1881553828716278,
0.21427816152572632,
-0.30701330304145813,
0.1832171082496643,
0.018660498782992363,
0.12433122843503952,
-0.32788828015327454,
-0.041794553399086,
0.3054877817630768,
0.08743656426668167,
-0.10003579407930374,
0.1018761694431305,
0.1763722449541092,
0.010102660395205021,
0.043656833469867706,
-0.030396779999136925,
0.33715906739234924,
0.073196642100811,
-0.018537847325205803,
0.455244779586792,
0.032499197870492935,
0.0711442306637764,
0.5597203969955444,
0.2887051999568939,
0.10784173756837845,
0.4497840404510498,
-0.3665197193622589,
0.39618152379989624,
-0.11664387583732605,
0.10726223886013031,
-0.13343557715415955,
-0.3418039083480835,
-0.08030872792005539,
0.09990181773900986,
0.14690443873405457,
-0.29098743200302124,
-0.10951123386621475,
0.5688399076461792,
-0.12331137806177139,
-0.1263166069984436,
-0.23147813975811005,
0.2086852490901947,
-0.022388771176338196,
-0.003034676890820265,
-0.28001606464385986,
-0.03937996178865433,
0.06382900476455688,
-0.12715871632099152,
-0.019189370796084404,
-0.2286740243434906,
0.06519313156604767,
0.12370765954256058,
-0.15284401178359985,
-0.4439590871334076,
0.15344692766666412,
0.33289647102355957,
-0.0695677399635315,
0.0009242548258043826,
0.14205138385295868,
0.022132139652967453,
-0.04310566931962967,
0.11551961302757263,
0.3692890405654907,
0.4402987062931061,
0.28882959485054016,
-0.2557521462440491,
-0.164584681391716,
-0.27273911237716675,
-0.19345933198928833,
0.02146036922931671,
0.20226545631885529,
0.2829778790473938,
0.12087084352970123,
0.05732360854744911,
0.14223961532115936,
-0.11750584840774536,
0.2880815267562866,
-0.050986070185899734,
0.0716114193201065,
-0.16487692296504974,
0.37162983417510986,
-0.13578729331493378,
-0.2858297824859619,
-0.34384018182754517,
-0.2297121286392212,
-0.19307567179203033,
0.18203359842300415,
0.4044192135334015,
0.2193542718887329,
-0.04695799574255943,
-0.02380135841667652,
-0.00903636496514082,
-0.10814174264669418,
0.3285025656223297,
0.3346213400363922,
0.4529920220375061,
-0.3661455512046814,
-0.0021706903353333473,
-0.7485200762748718,
0.3343605697154999,
-0.15070843696594238,
0.0019651318434625864,
0.4247778654098511,
-0.029755568131804466,
-0.258801132440567,
0.3020581007003784,
0.27167513966560364,
0.4656409025192261,
0.26382723450660706,
-0.01607624441385269,
-0.4723950922489166,
-0.2278299182653427,
0.0790032148361206,
-0.09509138762950897,
-0.22664815187454224,
-0.24805289506912231,
0.15624262392520905,
-0.643369197845459,
-0.06597954034805298,
-0.11069612950086594,
0.01698407717049122,
0.053106240928173065,
0.37802764773368835,
0.6841904520988464,
-0.04897020757198334,
0.8348817229270935,
0.176009401679039,
0.333600789308548,
-0.08119721710681915,
-0.2964090406894684,
-0.12336587905883789,
0.14390388131141663,
-0.18884830176830292,
0.018038764595985413,
-0.20531173050403595,
-0.03964076191186905,
-0.15677525103092194,
0.45556873083114624,
-0.09517183154821396,
-0.28281405568122864,
-0.24446982145309448,
0.13477031886577606,
-0.09881366789340973,
0.12095668911933899,
-0.08767329156398773,
-0.12928955256938934,
0.11707034707069397,
0.3384658396244049,
-0.1873062402009964,
-0.273649126291275,
0.5236210823059082,
-0.27392566204071045,
-0.36272314190864563,
0.1666276752948761,
0.17331291735172272,
0.10412290692329407,
-0.1606006920337677,
-0.5872603058815002,
0.08500345051288605,
0.5146579742431641,
0.019527088850736618,
-0.2608088552951813,
0.27999839186668396,
-0.17409195005893707,
0.0932871475815773,
-0.04097800701856613,
0.31391778588294983,
-0.13617190718650818,
-0.02012435719370842,
-0.20533254742622375,
-0.17220421135425568
] |
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.4346872866153717,
-0.34524255990982056,
-0.08128153532743454,
0.1217566505074501,
0.26001691818237305,
-0.07976890355348587,
0.4260956943035126,
0.4618625044822693,
0.1329817771911621,
0.2688278257846832,
0.09468202292919159,
0.2613142728805542,
-0.06708484888076782,
0.5240864157676697,
0.06833202391862869,
0.25987792015075684,
-0.11342616379261017,
0.08087024837732315,
-0.14469513297080994,
-0.22198684513568878,
-0.2116924226284027,
0.02704627625644207,
-0.2168552428483963,
-0.12449544668197632,
-0.3129107356071472,
0.009797836653888226,
-0.04585894197225571,
-0.04119088500738144,
0.04880266264081001,
-0.3793436884880066,
0.2050962597131729,
0.0018791600596159697,
-0.47769516706466675,
0.25080248713493347,
-0.00012658922059927136,
-0.0889238566160202,
0.19938689470291138,
-0.16747614741325378,
-0.4454837441444397,
-0.14416824281215668,
-0.678322434425354,
0.014128802344202995,
0.17040377855300903,
-0.24822336435317993,
-0.37044647336006165,
0.33240580558776855,
0.004520303104072809,
-0.3541150987148285,
0.3715061545372009,
0.4303571879863739,
0.07109427452087402,
0.30916833877563477,
-0.3334413170814514,
-0.11235908418893814,
-0.017726723104715347,
0.0783434808254242,
-0.22809001803398132,
0.08036602288484573,
0.21976248919963837,
-0.1270756870508194,
0.05332081764936447,
0.3302710950374603,
0.15313348174095154,
0.13419650495052338,
-0.04234937205910683,
0.11158502101898193,
0.14512315392494202,
-0.5243433117866516,
0.2711946964263916,
0.4891029894351959,
0.13552503287792206,
-0.025997651740908623,
-0.4715594947338104,
-0.37028512358665466,
-0.000493574480060488,
-0.20809587836265564,
0.2873293161392212,
0.36262887716293335,
-0.2731281816959381,
-0.001389258773997426,
-0.37795525789260864,
0.08809313923120499,
-0.19872112572193146,
-0.031892530620098114,
-0.6022461652755737,
0.28284335136413574,
-0.041952624917030334,
0.05630834028124809,
-0.29727703332901,
0.058599069714546204,
-0.12149524688720703,
-0.2579813599586487,
0.055311962962150574,
0.2168535441160202,
-0.5435724854469299,
-0.08048549294471741,
0.24165679514408112,
-0.10616163164377213,
0.021168168634176254,
-0.15631070733070374,
0.08600171655416489,
0.03187999129295349,
-0.24773257970809937,
0.13397349417209625,
0.4812687635421753,
0.4112272262573242,
0.42152661085128784,
0.11924072355031967,
0.11235423386096954,
0.05621637776494026,
-0.15399596095085144,
0.07447154074907303,
0.034817807376384735,
0.1464499533176422,
-0.19807060062885284,
0.06759477406740189,
0.33557814359664917,
-0.41466474533081055,
-0.5860319137573242,
0.14215455949306488,
-0.3326159119606018,
0.08644451200962067,
-0.10672224313020706,
0.32056379318237305,
-0.2858109772205353,
0.2536129057407379,
-0.1336440145969391,
0.42429980635643005,
-0.27771568298339844,
0.07955878227949142,
-0.15099789202213287,
-0.004697492346167564,
-0.2762494683265686,
0.19312310218811035,
0.22470465302467346,
0.034641291946172714,
0.1216210201382637,
0.10963571071624756,
0.027416499331593513,
-0.09197882562875748,
0.15318404138088226,
-0.23393626511096954,
0.4344157576560974,
0.18807274103164673,
0.14088082313537598,
0.11890453100204468,
0.2922724485397339,
-0.14103960990905762,
0.03182535618543625,
0.46308717131614685,
-0.03873473405838013,
-0.15310518443584442,
0.21965037286281586,
0.11768702417612076,
-0.5361980199813843,
0.06122865900397301,
-0.06975577026605606,
0.3681982457637787,
0.2204560935497284,
0.05228923633694649,
0.06394828855991364,
-0.17597369849681854,
-0.09188245236873627,
-0.15264476835727692,
0.2948555052280426,
0.15813174843788147,
-0.47794026136398315,
-0.10723109543323517,
0.21625863015651703,
0.09872883558273315,
-0.17956696450710297,
0.0834394246339798,
-0.005961853079497814,
0.3908635675907135,
-0.2375231832265854,
0.059592586010694504,
0.14955474436283112,
-0.5808672904968262,
-0.049198951572179794,
-0.25242817401885986,
0.010970612056553364,
0.3100384771823883,
-0.018224239349365234,
-0.10820260643959045,
0.19286872446537018,
0.17972466349601746,
0.038075633347034454,
0.030771002173423767,
-0.03853178769350052,
-0.12820661067962646,
-0.27703046798706055,
-0.0048107849434018135,
0.20653893053531647,
0.1226961687207222,
0.24050657451152802,
-0.01552131213247776,
-0.1409454196691513,
0.003341684117913246,
0.18041890859603882,
0.015043183229863644,
0.1349635124206543,
0.04773673042654991,
0.4159700572490692,
-0.033403921872377396,
-0.08101219683885574,
0.14351050555706024,
-0.22646425664424896,
0.27954044938087463,
-0.0904863178730011,
0.48861217498779297,
-0.05794201418757439,
-0.264312744140625,
-0.27120569348335266,
-0.10030533373355865,
-0.5140531063079834,
-0.6296902894973755,
0.06578489392995834,
0.04233606532216072,
0.023456895723938942,
0.0934637263417244,
-0.17820066213607788,
0.05062123388051987,
0.03793320432305336,
-0.16568787395954132,
-0.3817002773284912,
0.25125980377197266,
0.05964479222893715,
0.0076797716319561005,
-0.32211148738861084,
0.5083578824996948,
-0.057329725474119186,
0.07280755043029785,
0.10127165913581848,
-0.09024865925312042,
0.08239718526601791,
-0.06171317398548126,
0.10811711102724075,
0.33627569675445557,
0.33239710330963135,
-0.12987679243087769,
-0.28182491660118103,
0.34821808338165283,
0.09352059662342072,
-0.24798554182052612,
-0.5444371700286865,
0.5965662598609924,
0.007141947280615568,
0.4199708104133606,
0.051637761294841766,
0.02228529565036297,
-0.06768929213285446,
-0.2766866981983185,
-0.21883216500282288,
-0.14782893657684326,
-0.04635081812739372,
-0.22629643976688385,
0.18643441796302795,
0.10024634748697281,
-0.2956455945968628,
0.20279735326766968,
0.41888976097106934,
0.02104097791016102,
0.2085375040769577,
-0.30533453822135925,
0.018046051263809204,
-0.03076813742518425,
0.18428932130336761,
0.023152079433202744,
0.44139525294303894,
0.08458025753498077,
0.23868253827095032,
0.07269547879695892,
0.1604374498128891,
-0.24353542923927307,
0.15271437168121338,
-0.023028114810585976,
0.17297911643981934,
0.3898736238479614,
0.35590943694114685,
-0.16465598344802856,
-0.09035203605890274,
0.33590564131736755,
0.0750359296798706,
0.13854683935642242,
-0.3268064260482788,
-0.16663701832294464,
-0.150279700756073,
-0.041987866163253784,
-0.17520202696323395,
0.05233382806181908,
0.0248422771692276,
-0.41008231043815613,
0.3285834491252899,
-0.031087756156921387,
-0.2622546851634979,
0.24476441740989685,
-0.028352923691272736,
0.188511922955513,
-0.05952473357319832,
-0.36729755997657776,
-0.01290395949035883,
-0.5210821628570557,
-0.2430395632982254,
0.13837796449661255,
-0.1649949997663498,
-0.19139935076236725,
0.13990379869937897,
-0.11326595395803452,
-0.5428172945976257,
-0.21947644650936127,
-0.4293456971645355,
0.14604869484901428,
-0.20558173954486847,
0.3748728632926941,
0.0741116926074028,
0.47478973865509033,
-0.35477325320243835,
-0.032288771122694016,
0.5146635174751282,
0.0218663290143013,
-0.3692888617515564,
0.012095076031982899,
0.157762810587883,
0.09290328621864319,
-0.13277383148670197,
-0.7486943602561951,
-0.1053435355424881,
-0.2937641441822052,
0.26603296399116516,
-0.08606072515249252,
0.19858908653259277,
0.3975972831249237,
-0.11532260477542877,
-0.03997654467821121,
-0.19416506588459015,
-0.19326086342334747,
-0.19470509886741638,
0.04865308478474617,
0.16621235013008118,
-0.13805073499679565,
-0.38289493322372437,
0.0876786932349205,
-0.20035220682621002,
0.5566001534461975,
-0.004373868927359581,
-0.4171020984649658,
-0.44242849946022034,
0.004663659259676933,
0.5091122984886169,
0.21165290474891663,
-0.11507764458656311,
0.20269560813903809,
0.026412662118673325,
-0.045943956822156906,
-0.15556752681732178,
0.013157278299331665,
0.5017895102500916,
0.35553205013275146,
0.10793358087539673,
0.06524121761322021,
0.024800200015306473,
0.35103169083595276,
0.6415978670120239,
0.37862473726272583,
0.36389487981796265,
0.12898512184619904,
-0.24935267865657806,
0.3066880702972412,
-0.31295162439346313,
-0.34881699085235596,
0.30505555868148804,
0.13179048895835876,
-0.08711348474025726,
0.3041990399360657,
0.023939423263072968,
0.407545268535614,
-0.20449750125408173,
0.2693406641483307,
-0.5056166648864746,
-0.3185831904411316,
0.04996820166707039,
-0.31351494789123535,
0.19144977629184723,
0.1279781311750412,
0.2195831835269928,
0.13103237748146057,
-0.1225961446762085,
0.051667459309101105,
-0.08255074173212051,
0.14238940179347992,
-0.04204755276441574,
-0.45060059428215027,
-0.22514645755290985,
-0.18297982215881348,
0.13232754170894623,
0.01555840577930212,
0.10165496915578842,
-0.16081196069717407,
-0.2590680718421936,
0.22627723217010498,
0.11181739717721939,
0.8663644194602966,
-0.002315226709470153,
-0.02713877707719803,
-0.024918442592024803,
-0.13050423562526703,
-0.36164605617523193,
-0.09368007630109787,
-0.37868693470954895,
-0.10360001772642136,
0.07403068244457245,
0.2937026619911194,
-0.2711285650730133,
-0.11672666668891907,
-0.07295631617307663,
0.020109008997678757,
-0.16357927024364471,
-0.027010584250092506,
-0.34078311920166016,
-0.2246476113796234,
-0.012966073118150234,
0.16195684671401978,
0.07004246115684509,
0.49287429451942444,
-0.3183726370334625,
-0.19655552506446838,
-0.05942099541425705,
0.08941568434238434,
0.28544849157333374,
0.3582051694393158,
0.29591506719589233,
-0.005902010016143322,
0.1324218511581421,
-0.014963687397539616,
-0.1460428386926651,
-0.14466360211372375,
0.485455185174942,
-0.001080067129805684,
0.0362757183611393,
0.18640397489070892,
-0.2770254909992218,
0.39753973484039307,
0.4037604033946991,
0.13266782462596893,
0.13540837168693542,
-0.25063204765319824,
-0.015213871374726295,
-0.1475253403186798,
0.11114572733640671,
0.0727037861943245,
-0.061853110790252686,
0.07889827340841293,
-0.41282889246940613,
0.22292089462280273,
-0.040577519685029984,
-0.16962511837482452,
0.20485609769821167,
0.07686913758516312,
-0.20174135267734528,
-0.035131268203258514,
0.09746154397726059,
0.8919278979301453,
-0.06621114164590836,
0.4134537875652313,
0.6620017290115356,
0.23340682685375214,
0.36484989523887634,
-0.006939836777746677,
0.28217872977256775,
-0.3736187815666199,
-0.11210370063781738,
0.020037608221173286,
-0.1316889524459839,
-0.026898907497525215,
0.2928861677646637,
-0.14613428711891174,
0.6321948766708374,
-0.0056284642778337,
0.5025160312652588,
-0.004843489266932011,
-0.3010717034339905,
-0.013427773490548134,
0.200954869389534,
-0.5890651345252991,
0.026461442932486534,
0.0050035337917506695,
0.42187756299972534,
-0.1418743133544922,
-0.08853888511657715,
-0.3659595847129822,
-0.05047572776675224,
-0.013230482116341591,
0.2754775285720825,
-0.42452651262283325,
-0.04546524956822395,
0.3758048415184021,
-0.3739202320575714,
-0.23522332310676575,
0.5581889152526855,
0.009953338652849197,
0.18034628033638,
-0.17301952838897705,
0.2048063725233078,
0.084499791264534,
0.301639199256897,
0.24493582546710968,
0.25263863801956177,
0.20853538811206818,
-0.1569753736257553,
-0.3818930387496948,
0.262374609708786,
-0.24108947813510895,
0.24312108755111694,
-0.29899564385414124,
0.4151662588119507,
0.2272380292415619,
-0.1952875256538391,
-0.4141257107257843,
-0.006098341196775436,
0.2115723192691803,
-0.15608946979045868,
0.06611668318510056,
-0.12613257765769958,
-0.23985253274440765,
0.25142940878868103,
0.019698219373822212,
-0.2873944938182831,
0.12710566818714142,
0.27313217520713806,
0.17482417821884155,
0.05255402997136116,
0.7209171056747437,
-0.042895033955574036,
0.00045733392471447587,
-0.2384640872478485,
0.08221770823001862,
0.1635735034942627,
-0.09442122280597687,
0.2792905569076538,
0.17269667983055115,
-0.136572927236557,
-0.005263702943921089,
0.5161399245262146,
0.07682193070650101,
0.08293899893760681,
-0.05607447773218155,
-0.395975261926651,
0.05809712037444115,
0.29017195105552673,
-0.041415464133024216,
0.18766456842422485,
-0.14686445891857147,
0.000463341100839898,
0.2005596160888672,
-0.18003199994564056,
-0.2512339651584625,
-0.27294763922691345,
-0.4118531048297882,
0.41715607047080994,
0.03752490133047104,
0.04285149648785591,
0.2883033752441406,
-0.10833894461393356,
0.08450767397880554,
-0.3131251335144043,
-0.3429970145225525,
-0.21588100492954254,
0.034330859780311584,
0.1953563094139099,
0.2434568852186203,
0.15205469727516174,
0.03189089894294739,
0.02679396979510784,
-0.0017875040648505092,
-0.21902847290039062,
0.36368316411972046,
0.21216431260108948,
-0.010455834679305553,
0.2798035442829132,
-0.06378267705440521,
0.32930970191955566,
-0.21274927258491516,
0.0035478502977639437,
0.039635833352804184,
-0.13529811799526215,
0.20893187820911407,
-0.11675909161567688,
0.04926206171512604,
-0.03002370521426201,
0.1665133237838745,
0.13370095193386078,
-0.045415349304676056,
-0.06792078167200089,
-0.02980753593146801,
-0.23521699011325836,
0.012488564476370811,
-0.051232121884822845,
0.1661783754825592,
0.26026350259780884,
-0.2053518295288086,
0.21541257202625275,
-0.05710511654615402,
0.17717689275741577,
-0.2969951629638672,
0.3653945028781891,
-0.002192378742620349,
0.11827835440635681,
0.13469430804252625,
0.2747134864330292,
0.1755048930644989,
-0.4053773283958435,
0.3537335693836212,
0.19535450637340546,
-0.1874173879623413,
-0.5741311311721802,
0.2870941460132599,
0.40745964646339417,
-0.10711422562599182,
0.04906054586172104,
0.04041906073689461,
-0.3518252372741699,
-0.38442736864089966,
0.03694838285446167,
-0.008321189321577549,
0.3608301877975464,
0.04977402836084366,
-0.16578903794288635,
0.20719623565673828,
0.08413941413164139,
-0.06629758328199387,
0.0219839159399271,
-0.2879246473312378,
-0.060148559510707855,
0.1251441240310669,
0.29440659284591675,
-0.19056862592697144,
-0.24901294708251953,
0.10384780168533325,
-0.19336995482444763,
-0.14301170408725739,
-0.07697669416666031,
-0.11412065476179123,
-0.2166648656129837,
-0.034094881266355515,
-0.14445377886295319,
0.06585458666086197,
-0.3297699987888336,
0.4357934594154358,
-0.028285140171647072,
0.018501007929444313,
-0.37190791964530945,
0.009090054780244827,
0.46414658427238464,
0.35658422112464905,
0.1119120791554451,
0.5008342862129211,
0.21571826934814453,
0.13414053618907928,
0.20784053206443787,
0.6149324774742126,
0.2586732506752014,
0.3419252038002014,
-0.3233906626701355,
0.11925900727510452,
-0.033696360886096954,
-0.2811514437198639,
0.0290107112377882,
0.20354758203029633,
0.16087095439434052,
-0.07421280443668365,
0.3146434426307678,
0.08175556361675262,
-0.046607088297605515,
0.20618434250354767,
0.14159640669822693,
-0.10395710170269012,
-0.20966769754886627,
0.3489559590816498,
0.0770479217171669,
-0.1407625675201416,
0.10816728323698044,
-0.07658188790082932,
-0.549680769443512,
-0.12222083657979965,
0.06634669750928879,
0.2608988285064697,
0.20805715024471283,
-0.013395275920629501,
0.04822555556893349,
-0.08407528698444366,
0.12651890516281128,
0.13578961789608002,
0.2407103329896927,
-0.3984418213367462,
0.21946077048778534,
-0.506574273109436,
0.27751895785331726,
0.10636667907238007,
-0.15800708532333374,
-0.22289185225963593,
0.12812277674674988,
-0.012585452757775784,
0.08071000128984451,
-0.1649162471294403,
-0.2625877261161804,
0.3132312297821045,
-0.02728717029094696,
-0.6367027163505554,
-0.03268926218152046,
0.23906990885734558,
-0.07832977175712585,
-0.08635924011468887,
-0.2787926495075226,
0.006923323031514883,
-0.0296375323086977,
-0.11672430485486984,
0.283161997795105,
0.06223249435424805,
0.06596627086400986,
0.10938708484172821,
0.03912044316530228,
0.22662757337093353,
0.5997719168663025,
0.035095516592264175,
0.11226950585842133,
-0.07816944271326065,
-0.08435782790184021,
-0.07852154970169067,
0.1004510223865509,
0.07328780740499496,
0.2886982262134552,
0.25089526176452637,
-0.22737334668636322,
0.04806241765618324,
0.22199445962905884,
0.22414371371269226,
-0.04245832562446594,
0.06555216014385223,
0.09789752960205078,
0.1245913952589035,
-0.03459705784916878,
0.03199082612991333,
0.08055498450994492,
-0.06927220523357391,
0.01664608158171177,
-0.2565062642097473,
-0.4255896508693695,
0.3637285828590393,
-0.5796003937721252,
-0.3352660536766052,
-0.21342934668064117,
0.18661949038505554,
0.034282468259334564,
-0.22416865825653076,
-0.9314985871315002,
-0.192128524184227,
0.3569229245185852,
-0.20975296199321747,
-0.0426323339343071,
0.14563244581222534,
-0.2674562931060791,
-0.1038004532456398,
-0.15685825049877167,
0.12176798284053802,
0.030861297622323036,
-0.05446538329124451,
-0.13671547174453735,
-0.4222473204135895
] |
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.4681178629398346,
-0.48835164308547974,
-0.11691758781671524,
0.06333388388156891,
0.3016141653060913,
-0.06188259646296501,
0.5027787685394287,
0.441729336977005,
0.14433029294013977,
0.295197069644928,
0.15050795674324036,
0.24782977998256683,
-0.10581602901220322,
0.42044442892074585,
0.034329622983932495,
0.20402269065380096,
-0.018228255212306976,
0.1341055929660797,
-0.22425082325935364,
-0.24635794758796692,
-0.24946078658103943,
-0.0017764742951840162,
-0.23100131750106812,
-0.1340518295764923,
-0.314883291721344,
0.019281789660453796,
-0.018375087529420853,
-0.04412964731454849,
-0.006669994909316301,
-0.2820165753364563,
0.2964690029621124,
0.041683610528707504,
-0.508709728717804,
0.27961498498916626,
-0.0001253977679880336,
0.017660392448306084,
0.1655433028936386,
-0.16275914013385773,
-0.3021446168422699,
-0.26909807324409485,
-0.5443482398986816,
0.00346032390370965,
0.2009386569261551,
-0.24575160443782806,
-0.35363832116127014,
0.25958743691444397,
-0.0016623769188299775,
-0.2429102063179016,
0.3208564221858978,
0.4414465129375458,
0.08853322267532349,
0.34025266766548157,
-0.29831773042678833,
-0.09769148379564285,
0.1007726863026619,
0.1736653447151184,
-0.21276503801345825,
0.100611612200737,
0.33498260378837585,
-0.1839216649532318,
0.0661557987332344,
0.431254118680954,
0.11574792861938477,
0.07655779272317886,
-0.009521227329969406,
0.08505365252494812,
0.19284839928150177,
-0.50201016664505,
0.22595539689064026,
0.49083974957466125,
0.11945434659719467,
0.011706283316016197,
-0.4616624116897583,
-0.3616979420185089,
-0.06771163642406464,
-0.16158555448055267,
0.23915782570838928,
0.2563352882862091,
-0.32262876629829407,
0.05452410504221916,
-0.3806760907173157,
0.00912734679877758,
-0.1806757003068924,
-0.015691811218857765,
-0.5306873321533203,
0.38669711351394653,
-0.06290043890476227,
0.06665128469467163,
-0.23400543630123138,
0.005801292601972818,
-0.09444897621870041,
-0.2278282195329666,
0.10659804940223694,
0.1917990893125534,
-0.48771435022354126,
-0.07866031676530838,
0.24689048528671265,
-0.17499403655529022,
0.017060963436961174,
-0.157566636800766,
0.1409417688846588,
-0.010139529593288898,
-0.23792842030525208,
0.1809389740228653,
0.4561154544353485,
0.3717731535434723,
0.3836919665336609,
0.11709640175104141,
0.12539127469062805,
0.024882927536964417,
-0.1779983639717102,
0.06830102950334549,
-0.013252649456262589,
0.1049443781375885,
-0.1730804592370987,
0.04447382688522339,
0.38151291012763977,
-0.37599554657936096,
-0.5460969805717468,
0.102834552526474,
-0.3343900442123413,
0.0862019807100296,
-0.128047913312912,
0.4136296212673187,
-0.26715970039367676,
0.3237052261829376,
-0.1753734052181244,
0.48480844497680664,
-0.2423679232597351,
0.16227789223194122,
-0.16948360204696655,
0.00838207546621561,
-0.2954881191253662,
0.03383069857954979,
0.18201933801174164,
0.03457191586494446,
0.16778874397277832,
0.07919034361839294,
-0.0682356134057045,
-0.08435852825641632,
0.14919017255306244,
-0.2916169762611389,
0.5289236903190613,
0.21743203699588776,
0.10865914076566696,
0.13719888031482697,
0.3113148808479309,
-0.13873711228370667,
-0.030690506100654602,
0.4569900631904602,
-0.10734344273805618,
-0.0885392278432846,
0.16214650869369507,
0.13513900339603424,
-0.4702078700065613,
0.00008392296876991168,
0.017349300906062126,
0.39948371052742004,
0.2739623785018921,
0.06244530901312828,
0.12750035524368286,
-0.14876261353492737,
-0.035250384360551834,
-0.18992701172828674,
0.20556721091270447,
0.1585923731327057,
-0.37157705426216125,
-0.17337709665298462,
0.3192170560359955,
0.0479407012462616,
-0.1288815587759018,
0.09269142150878906,
-0.04329995438456535,
0.41837483644485474,
-0.2419101446866989,
0.054551493376493454,
0.15261927247047424,
-0.6342750787734985,
-0.01669107936322689,
-0.20276615023612976,
-0.00800694152712822,
0.39607617259025574,
0.016105400398373604,
-0.14641080796718597,
0.1910931020975113,
0.20444221794605255,
0.2436320036649704,
-0.049248889088630676,
-0.016388924792408943,
-0.10141264647245407,
-0.28392577171325684,
-0.02789178676903248,
0.2803296744823456,
0.038485728204250336,
0.2653219401836395,
-0.038151610642671585,
-0.14285176992416382,
-0.061370741575956345,
0.23564590513706207,
-0.04080793261528015,
0.08998744934797287,
0.14946547150611877,
0.4336164891719818,
-0.005378881003707647,
-0.03907207399606705,
0.019861411303281784,
-0.2733374536037445,
0.16538624465465546,
-0.014530853368341923,
0.4395500719547272,
-0.014359434135258198,
-0.2540396451950073,
-0.23234590888023376,
-0.10236769169569016,
-0.454546719789505,
-0.589858889579773,
0.07489727437496185,
0.01474732719361782,
-0.036792218685150146,
0.08721207827329636,
-0.15519750118255615,
0.020757582038640976,
0.0445890910923481,
-0.12497727572917938,
-0.3414299488067627,
0.3159363567829132,
0.05893509089946747,
0.02889024280011654,
-0.3574269115924835,
0.39232969284057617,
-0.07111594080924988,
0.08700831234455109,
0.1109093427658081,
-0.09629517793655396,
0.12158063054084778,
-0.03672192618250847,
0.017123285681009293,
0.3487401306629181,
0.3160448670387268,
-0.15717610716819763,
-0.333969384431839,
0.2780611515045166,
0.1288733333349228,
-0.23919178545475006,
-0.5651093125343323,
0.5706457495689392,
-0.015484418720006943,
0.4227934181690216,
0.11109118163585663,
0.01585341989994049,
0.015813343226909637,
-0.30554336309432983,
-0.2595432996749878,
-0.1548808068037033,
0.018057677894830704,
-0.2967332601547241,
0.1731816828250885,
0.13530440628528595,
-0.3907080292701721,
0.11228743195533752,
0.4177019000053406,
0.04910562187433243,
0.22027243673801422,
-0.2979327142238617,
-0.017531486228108406,
-0.03964299336075783,
0.15668296813964844,
-0.03675268590450287,
0.42761412262916565,
0.16945870220661163,
0.2256355881690979,
0.012789282947778702,
0.2090926170349121,
-0.2430088371038437,
0.1855045109987259,
-0.04027183726429939,
0.21828247606754303,
0.45492425560951233,
0.35470935702323914,
-0.12468650192022324,
-0.19346219301223755,
0.29737940430641174,
0.0703049972653389,
0.13839368522167206,
-0.3260529935359955,
-0.24240392446517944,
-0.12734514474868774,
0.01823725737631321,
-0.1301857829093933,
0.03132485970854759,
0.09626565128564835,
-0.39909976720809937,
0.31584522128105164,
0.0024849975015968084,
-0.33202382922172546,
0.22520804405212402,
-0.10300154983997345,
0.16330979764461517,
-0.03883493319153786,
-0.3680036962032318,
-0.04821273311972618,
-0.48997554183006287,
-0.2169422209262848,
0.1613846719264984,
-0.19522783160209656,
-0.13685192167758942,
0.14127202332019806,
-0.1272927224636078,
-0.53128981590271,
-0.15441781282424927,
-0.5428306460380554,
0.16988292336463928,
-0.22211673855781555,
0.31411367654800415,
0.13052085041999817,
0.4695059657096863,
-0.33953845500946045,
-0.046145107597112656,
0.47250494360923767,
0.002517561661079526,
-0.4022097885608673,
0.01617075875401497,
0.16014449298381805,
0.07886681705713272,
-0.16043059527873993,
-0.7739174365997314,
-0.06428081542253494,
-0.3372275233268738,
0.28671661019325256,
-0.16386830806732178,
0.1809035837650299,
0.44820690155029297,
-0.07105056196451187,
-0.05878831446170807,
-0.21288101375102997,
-0.19254210591316223,
-0.1631091833114624,
0.0021022132132202387,
0.14188231527805328,
-0.07210131734609604,
-0.3668023943901062,
0.007779002655297518,
-0.2205585390329361,
0.36542919278144836,
0.09324944764375687,
-0.4009144902229309,
-0.4107280969619751,
-0.03155975788831711,
0.43040284514427185,
0.22877570986747742,
-0.0975353866815567,
0.26795876026153564,
-0.000859849329572171,
-0.07744387537240982,
-0.2450525015592575,
0.0018977927975356579,
0.5727346539497375,
0.3348294496536255,
0.04696889594197273,
0.11781321465969086,
-0.027169466018676758,
0.326813668012619,
0.5415536761283875,
0.35040849447250366,
0.3235522508621216,
0.18224582076072693,
-0.2408681958913803,
0.3834409713745117,
-0.26240718364715576,
-0.3972399830818176,
0.20475102961063385,
0.15888290107250214,
-0.12851762771606445,
0.25118061900138855,
0.01589474268257618,
0.30369195342063904,
-0.24241434037685394,
0.15691401064395905,
-0.518821120262146,
-0.2767148017883301,
0.1316634565591812,
-0.3602770268917084,
0.10447792708873749,
0.14898556470870972,
0.14820855855941772,
0.09649775177240372,
-0.055883314460515976,
0.06004335358738899,
0.01618245057761669,
0.2040061354637146,
-0.07650519162416458,
-0.5741518139839172,
-0.23221848905086517,
-0.24830235540866852,
0.10440318286418915,
0.04972543567419052,
0.09342842549085617,
-0.13964128494262695,
-0.25723445415496826,
0.22309288382530212,
0.07435669749975204,
0.9841897487640381,
-0.11245378106832504,
-0.022398117929697037,
-0.016353406012058258,
-0.13717976212501526,
-0.3577503263950348,
-0.05759003385901451,
-0.4521741271018982,
-0.06354951858520508,
0.19537481665611267,
0.4829491674900055,
-0.2719302773475647,
-0.18404069542884827,
-0.06102363020181656,
-0.07806767523288727,
-0.13773281872272491,
-0.05517507344484329,
-0.28251707553863525,
-0.24713864922523499,
0.024350933730602264,
0.17923720180988312,
0.1969059854745865,
0.4291003346443176,
-0.2604786157608032,
-0.3233058750629425,
-0.12446072697639465,
0.12806850671768188,
0.32462820410728455,
0.32638755440711975,
0.26660481095314026,
-0.06627121567726135,
0.08422521501779556,
-0.08256889879703522,
-0.07211145013570786,
0.0257787574082613,
0.5085002779960632,
-0.1403193473815918,
-0.02390449494123459,
0.20634862780570984,
-0.25900423526763916,
0.4047764539718628,
0.36510545015335083,
0.14478731155395508,
0.13557349145412445,
-0.20590950548648834,
-0.01822436973452568,
-0.13035796582698822,
0.07821355760097504,
0.11643370240926743,
0.025485778227448463,
-0.036110080778598785,
-0.39831194281578064,
0.15167641639709473,
-0.0035747841466218233,
-0.1881568282842636,
0.23310352861881256,
0.06840283423662186,
-0.2754638195037842,
0.08543933928012848,
0.0674016922712326,
0.9151225090026855,
-0.05837518721818924,
0.391284316778183,
0.6253471374511719,
0.19349157810211182,
0.39753007888793945,
-0.0712786391377449,
0.25218072533607483,
-0.2924405634403229,
-0.19377665221691132,
0.018514519557356834,
-0.12950384616851807,
-0.009106800891458988,
0.342801570892334,
-0.21547871828079224,
0.5422404408454895,
0.013913258910179138,
0.5060136914253235,
-0.036940645426511765,
-0.34778082370758057,
-0.03694884106516838,
0.2454444319009781,
-0.606604814529419,
0.019946333020925522,
0.09031548351049423,
0.4494950771331787,
-0.15453466773033142,
-0.1068209558725357,
-0.38582876324653625,
-0.15608005225658417,
-0.022812845185399055,
0.23156672716140747,
-0.4061107337474823,
-0.010960746556520462,
0.3604067265987396,
-0.23470421135425568,
-0.2855457067489624,
0.4578838050365448,
-0.043678686022758484,
0.20066526532173157,
-0.2060169130563736,
0.18751825392246246,
0.09581780433654785,
0.3202325403690338,
0.21161462366580963,
0.2297787368297577,
0.3145458400249481,
-0.13250191509723663,
-0.4006209969520569,
0.1819075644016266,
-0.2952137887477875,
0.1937139481306076,
-0.21609652042388916,
0.3912724256515503,
0.11765243858098984,
-0.2437201291322708,
-0.4899371862411499,
0.04950438067317009,
0.22286856174468994,
-0.20343127846717834,
0.06225983798503876,
-0.16201762855052948,
-0.20528514683246613,
0.29879096150398254,
0.06184912472963333,
-0.30667343735694885,
0.13035812973976135,
0.25044405460357666,
0.27147525548934937,
-0.02830091118812561,
0.7059750556945801,
-0.08002547919750214,
-0.06373752653598785,
-0.3099609911441803,
0.07060036063194275,
0.2637472152709961,
-0.16641588509082794,
0.33834266662597656,
0.13936354219913483,
-0.12032242864370346,
0.02087845280766487,
0.4957883059978485,
0.07645191997289658,
0.14817817509174347,
-0.10191827267408371,
-0.4340782165527344,
0.0048642768524587154,
0.38714078068733215,
-0.04078354686498642,
0.25591424107551575,
-0.07308901101350784,
0.010748839005827904,
0.20003321766853333,
-0.1717740148305893,
-0.28469398617744446,
-0.22800928354263306,
-0.3947731852531433,
0.4053121507167816,
0.020616693422198296,
0.034000251442193985,
0.2809009850025177,
-0.12463489174842834,
0.106342613697052,
-0.3126680552959442,
-0.31650981307029724,
-0.23030753433704376,
0.023301156237721443,
0.19479155540466309,
0.18344204127788544,
0.14391636848449707,
0.04073193669319153,
0.015910811722278595,
-0.01849295385181904,
-0.2311227023601532,
0.3753020465373993,
0.3558829724788666,
0.007342609576880932,
0.238022118806839,
0.0011624955805018544,
0.3851647973060608,
-0.1636805534362793,
0.018024062737822533,
0.05363251641392708,
-0.17862465977668762,
0.21899805963039398,
-0.12340667098760605,
0.08615689724683762,
0.010320981964468956,
0.14566479623317719,
0.13107725977897644,
-0.017345665022730827,
-0.0707167312502861,
-0.06874554604291916,
-0.20280897617340088,
0.00878813210874796,
-0.047232721000909805,
0.1345519870519638,
0.2589513063430786,
-0.18515843152999878,
0.2671407163143158,
-0.010320384986698627,
0.2198469638824463,
-0.323984295129776,
0.33875370025634766,
0.11910906434059143,
0.078159399330616,
0.1221267431974411,
0.184597909450531,
0.1412801891565323,
-0.38347554206848145,
0.3110423684120178,
0.21374572813510895,
-0.15329121053218842,
-0.3943411111831665,
0.2703726887702942,
0.40164414048194885,
-0.049483392387628555,
0.002494859742000699,
-0.01007891446352005,
-0.2710435688495636,
-0.240922212600708,
0.004263719543814659,
0.06562922149896622,
0.30417031049728394,
0.025127999484539032,
-0.12273748964071274,
0.15863926708698273,
0.023435179144144058,
-0.0066124326549470425,
0.021224183961749077,
-0.34391921758651733,
-0.02879488468170166,
0.12357529252767563,
0.2682909071445465,
-0.03859032317996025,
-0.22659389674663544,
0.10165829211473465,
-0.08920472860336304,
-0.18534110486507416,
-0.16918234527111053,
-0.07965799421072006,
-0.23566031455993652,
-0.016028154641389847,
-0.18681536614894867,
0.06693253666162491,
-0.3150307536125183,
0.4789043366909027,
-0.045336101204156876,
0.021485596895217896,
-0.3790123164653778,
0.08132541179656982,
0.3750407099723816,
0.31841880083084106,
0.08981885761022568,
0.5027287006378174,
0.2552724778652191,
0.08812960982322693,
0.1871250420808792,
0.6208725571632385,
0.32280275225639343,
0.4014388620853424,
-0.171860009431839,
0.0328347384929657,
-0.06120552495121956,
-0.3069049119949341,
-0.06833457201719284,
0.2621796429157257,
0.22244714200496674,
-0.0030700122006237507,
0.31253498792648315,
0.10996946692466736,
-0.07542066276073456,
0.3012123107910156,
0.14600969851016998,
-0.06504610925912857,
-0.196353018283844,
0.24360300600528717,
0.057065073400735855,
-0.08410941064357758,
0.09701894968748093,
-0.09057896584272385,
-0.5747682452201843,
-0.18794924020767212,
0.09150481969118118,
0.1847899705171585,
0.27191269397735596,
-0.02927038073539734,
0.05293775722384453,
-0.07632360607385635,
0.05375174060463905,
0.15150251984596252,
0.13623398542404175,
-0.33605870604515076,
0.24091966450214386,
-0.46184924244880676,
0.24897289276123047,
0.06284066289663315,
-0.04888499155640602,
-0.22335967421531677,
0.1597941368818283,
0.01442005392163992,
0.027680568397045135,
-0.1524352878332138,
-0.15175072848796844,
0.3210304379463196,
0.05587786063551903,
-0.617318868637085,
0.06947677582502365,
0.22266779839992523,
-0.03164355084300041,
0.0072420393116772175,
-0.30146199464797974,
-0.03189105913043022,
0.004164650104939938,
-0.10231918096542358,
0.18854683637619019,
0.12361745536327362,
0.094624362885952,
0.05502074956893921,
0.07967038452625275,
0.2517285645008087,
0.6537095904350281,
-0.039885591715574265,
0.09442795068025589,
-0.07591500133275986,
-0.1857730746269226,
-0.11363748461008072,
0.07847470790147781,
0.17458954453468323,
0.273756742477417,
0.19054964184761047,
-0.28349554538726807,
0.14796431362628937,
0.1163092777132988,
0.1791384220123291,
-0.13512256741523743,
0.07136914134025574,
0.10456325858831406,
0.1388770341873169,
-0.06692089885473251,
0.015468869358301163,
0.028779152780771255,
-0.024066012352705002,
-0.04093105345964432,
-0.25231000781059265,
-0.5186454057693481,
0.38934293389320374,
-0.5014826059341431,
-0.3424695134162903,
-0.28321295976638794,
0.19337379932403564,
0.1038307473063469,
-0.1890994757413864,
-1.0374093055725098,
-0.1832495629787445,
0.39998874068260193,
-0.162346750497818,
-0.025781480595469475,
0.2184676229953766,
-0.26889580488204956,
-0.12323591858148575,
-0.16694773733615875,
0.05540859326720238,
0.02881552278995514,
-0.10888370126485825,
-0.17260931432247162,
-0.4612904191017151
] |
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.0807139128446579,
-0.02319859340786934,
-0.008704368025064468,
0.07583331316709518,
-0.08046454191207886,
0.19386282563209534,
-0.09644568711519241,
0.15030024945735931,
0.0917031317949295,
-0.13724873960018158,
-0.15640205144882202,
0.263211190700531,
0.2652064263820648,
0.055394697934389114,
0.031824659556150436,
-0.16234828531742096,
0.27537116408348083,
0.13668806850910187,
-0.1497533768415451,
0.018271667882800102,
0.02814839407801628,
0.0739847868680954,
-0.1760735660791397,
-0.09647520631551743,
-0.29484567046165466,
0.06383691728115082,
-0.16937604546546936,
-0.20552292466163635,
-0.007480657659471035,
-0.17885170876979828,
0.10816752910614014,
0.2946748435497284,
0.023762814700603485,
0.5012589693069458,
-0.00012002509174635634,
-0.18218185007572174,
0.14823153614997864,
-0.11886715888977051,
-0.09780479222536087,
-0.591736912727356,
-0.43791094422340393,
-0.19377073645591736,
-0.037216611206531525,
-0.26413413882255554,
-0.17093680799007416,
-0.2597177028656006,
-0.00927701685577631,
-0.39622780680656433,
0.18799623847007751,
-0.007791100535541773,
0.05178103223443031,
-0.2181001901626587,
0.3178344666957855,
-0.2899107038974762,
0.36813241243362427,
0.060076747089624405,
0.23139159381389618,
0.20463553071022034,
0.46678605675697327,
0.0924622118473053,
0.3536243736743927,
0.031827546656131744,
-0.25151634216308594,
-0.1778288334608078,
0.265697181224823,
0.10655801743268967,
-0.27251800894737244,
-0.5039493441581726,
0.1312272548675537,
0.5253686904907227,
0.8458818793296814,
-0.19581416249275208,
-0.2037537395954132,
-0.1436975598335266,
0.26158609986305237,
0.16773752868175507,
-0.16267988085746765,
0.06555637717247009,
0.05718354508280754,
-0.10857865959405899,
-0.017295436933636665,
-0.4783714711666107,
-0.014689601957798004,
0.146067276597023,
-0.05186891928315163,
0.41982927918434143,
0.1197788342833519,
0.1123560220003128,
-0.1201649159193039,
-0.3536277711391449,
-0.00217879144474864,
-0.10288939625024796,
-0.23143260180950165,
0.39641672372817993,
-0.13572737574577332,
-0.3579387068748474,
-0.4266597330570221,
-0.20768648386001587,
0.2877584397792816,
-0.23251426219940186,
-0.10940061509609222,
-0.13125334680080414,
-0.309333473443985,
0.22626067698001862,
0.413521945476532,
-0.17651836574077606,
0.4025959074497223,
0.1679798662662506,
-0.1497800350189209,
-0.29195767641067505,
-0.6388104557991028,
-0.09562629461288452,
0.07344403117895126,
-0.24978259205818176,
-0.01231760997325182,
-0.1612837314605713,
0.12322922796010971,
-0.0954739898443222,
0.11560770869255066,
0.11665717512369156,
-0.38036781549453735,
-0.17964041233062744,
-0.458212286233902,
-0.01722709834575653,
0.04737371578812599,
-0.17916841804981232,
-0.09471157193183899,
0.31567344069480896,
0.06255759298801422,
-0.20517662167549133,
0.022561151534318924,
-0.022560104727745056,
0.0753079205751419,
0.1359436810016632,
-0.31331223249435425,
0.06783977895975113,
0.21152442693710327,
0.24217437207698822,
0.11653070151805878,
-0.0914435014128685,
0.14047926664352417,
-0.3214641213417053,
0.08820082992315292,
-0.267093300819397,
0.26621267199516296,
0.36482831835746765,
0.03328688070178032,
-0.36616310477256775,
-0.07746819406747818,
0.31926077604293823,
-0.3424720764160156,
0.09190697968006134,
-0.18116137385368347,
0.05034174770116806,
-0.03477320447564125,
-0.3690573275089264,
0.1503402143716812,
0.4734434485435486,
0.20107409358024597,
-0.3792186677455902,
-0.04356899484992027,
0.1888429969549179,
-0.44327741861343384,
-0.14353634417057037,
0.09959207475185394,
0.09583265334367752,
-0.6108894348144531,
-0.24677664041519165,
0.1305367350578308,
0.1838461309671402,
-0.2199183851480484,
0.27357640862464905,
0.004582833498716354,
0.4709976315498352,
0.019358960911631584,
0.09795843064785004,
0.294016033411026,
0.006549801677465439,
-0.13891784846782684,
0.23826026916503906,
-0.06101957708597183,
-0.11163189262151718,
-0.08561457693576813,
0.39418795704841614,
0.3761969208717346,
-0.11488402634859085,
0.26156020164489746,
0.13338522613048553,
-0.20540301501750946,
-0.2404521107673645,
0.17245075106620789,
-0.25006982684135437,
0.20035645365715027,
-0.30645284056663513,
-0.02097717486321926,
-0.04512455686926842,
0.20413264632225037,
0.09405724704265594,
0.12030677497386932,
-0.2302701324224472,
0.23883871734142303,
0.36125099658966064,
0.0425802581012249,
0.4038478136062622,
-0.1544986069202423,
-0.3849765360355377,
-0.35766875743865967,
-0.06401702016592026,
-0.1553392857313156,
0.2091972976922989,
0.371213436126709,
-0.23151780664920807,
-0.19188429415225983,
-0.369970440864563,
0.33329546451568604,
-0.009556454606354237,
0.006970067508518696,
-0.1931198537349701,
-0.11519566178321838,
-0.12684565782546997,
-0.1134820431470871,
-0.07291218638420105,
0.2275783270597458,
-0.10460235178470612,
-0.2657742500305176,
0.27956193685531616,
0.13916835188865662,
-0.004334200173616409,
-0.24931691586971283,
0.3853375315666199,
0.08726304024457932,
0.1868847906589508,
0.16615436971187592,
0.030440254136919975,
-0.09989689290523529,
0.37164032459259033,
0.249360591173172,
-0.23304197192192078,
0.009554574266076088,
-0.5110846161842346,
-0.13984979689121246,
-0.23620928823947906,
-0.04403642937541008,
-0.2656450867652893,
-0.2391240894794464,
0.14308689534664154,
-0.013935009948909283,
0.24173016846179962,
0.1318981796503067,
-0.025024333968758583,
0.1806059032678604,
-0.04070143401622772,
-0.07618565112352371,
-0.25636863708496094,
-0.05061811953783035,
0.13484542071819305,
0.19297321140766144,
0.3609323501586914,
-0.2296915203332901,
0.06281790882349014,
0.03424913063645363,
0.09149939566850662,
0.18999049067497253,
-0.24393340945243835,
-0.46832475066185,
0.00661621056497097,
-0.28823405504226685,
0.09601067006587982,
0.1645248383283615,
0.34665611386299133,
0.13988210260868073,
0.0730467438697815,
-0.04211215302348137,
-0.02361808344721794,
0.017769435420632362,
0.04432142898440361,
0.3303343653678894,
0.1095849797129631,
0.2567794620990753,
0.07420849800109863,
0.32932528853416443,
0.24202337861061096,
0.1224822998046875,
-0.13840584456920624,
-0.13481172919273376,
-0.2841978073120117,
0.10675814002752304,
-0.248417928814888,
-0.4215642213821411,
-0.18756616115570068,
-0.18454095721244812,
-0.12301132082939148,
-0.01492881029844284,
0.18650780618190765,
-0.056198302656412125,
0.14038695394992828,
0.055429607629776,
0.15597566962242126,
-0.152774378657341,
-0.019122106954455376,
0.13314509391784668,
-0.5160611271858215,
0.25922855734825134,
0.1565905511379242,
0.1139574944972992,
0.12097382545471191,
0.47219473123550415,
-0.11596328020095825,
-0.20336851477622986,
-0.5184367895126343,
-0.5585830807685852,
0.03899971395730972,
-0.11048018932342529,
0.26224610209465027,
-0.12797990441322327,
0.14810942113399506,
-0.14930741488933563,
-0.028961453586816788,
0.21020928025245667,
0.2862319350242615,
0.01904994249343872,
-0.3370530903339386,
-0.19562804698944092,
0.07669834047555923,
0.25992828607559204,
-0.42776012420654297,
-0.18027092516422272,
0.0028608902357518673,
0.18755210936069489,
0.06800294667482376,
0.026582753285765648,
-0.4053651988506317,
0.11256350576877594,
-0.12206271290779114,
-0.16763530671596527,
0.057436201721429825,
-0.09193652868270874,
-0.38737353682518005,
0.21619895100593567,
-0.07845427095890045,
-0.25951695442199707,
0.1928531527519226,
-0.015902819111943245,
-0.05581807345151901,
-0.20510070025920868,
0.12677747011184692,
0.1307685375213623,
-0.15786848962306976,
0.10324263572692871,
0.22490449249744415,
0.15477608144283295,
0.18334786593914032,
0.11173328012228012,
0.06859871745109558,
-0.17568688094615936,
-0.1481732726097107,
0.26850733160972595,
0.09282463043928146,
0.1118740364909172,
-0.0606013722717762,
0.22221951186656952,
-0.34722232818603516,
0.39866772294044495,
0.5254826545715332,
0.11928374320268631,
-0.0594915971159935,
-0.22884471714496613,
0.35870540142059326,
-0.24582445621490479,
-0.10561031103134155,
-0.23353363573551178,
0.14081071317195892,
-0.10529100149869919,
0.1787993460893631,
0.07623350620269775,
-0.13672280311584473,
-0.16919319331645966,
0.08064667880535126,
-0.2816323935985565,
-0.046995654702186584,
0.1670805811882019,
-0.4001504182815552,
0.22658546268939972,
-0.04909652844071388,
-0.48981618881225586,
-0.31748172640800476,
-0.323275089263916,
-0.19708918035030365,
-0.3505012094974518,
0.20544680953025818,
-0.08044471591711044,
-0.40705734491348267,
-0.059549447149038315,
-0.2789442539215088,
0.19438482820987701,
0.3742372989654541,
-0.0190005861222744,
-0.09549010545015335,
-0.06745240092277527,
-0.13920290768146515,
0.21432319283485413,
0.1779630333185196,
-0.5429993867874146,
-0.2740233242511749,
0.06342527270317078,
0.355633020401001,
-0.09078139066696167,
0.2844598591327667,
-0.14930041134357452,
-0.1365785449743271,
0.22120819985866547,
0.3323833644390106,
-0.274955153465271,
0.15162312984466553,
0.2588713765144348,
0.3530677855014801,
-0.22724400460720062,
-0.07179497182369232,
0.16380499303340912,
0.18547020852565765,
-0.3372770845890045,
-0.15390188992023468,
0.1404721885919571,
-0.0018161582993343472,
0.3170555830001831,
-0.1068645790219307,
0.10110271722078323,
0.2996176779270172,
0.4610779285430908,
0.18621908128261566,
0.058575622737407684,
0.12902384996414185,
0.19608405232429504,
0.37007686495780945,
-0.09763016551733017,
0.08147770911455154,
0.6518184542655945,
-0.20904549956321716,
-0.307038813829422,
-0.18773385882377625,
-0.2284003347158432,
0.6691726446151733,
-0.0614033006131649,
0.3683290183544159,
0.33657506108283997,
0.0028092991560697556,
-0.05286103114485741,
-0.13128019869327545,
-0.1078723669052124,
0.1989755481481552,
0.13819772005081177,
-0.6152014136314392,
-0.44910553097724915,
0.23151017725467682,
0.19341962039470673,
-0.30680570006370544,
-0.1744432896375656,
0.11856400966644287,
-0.21608690917491913,
0.5841512084007263,
0.04948899522423744,
1.0757410526275635,
0.029367733746767044,
0.08744368702173233,
-0.31622329354286194,
-0.1883554458618164,
1.0178574323654175,
0.13053281605243683,
-0.1236901730298996,
-0.14787745475769043,
-0.08501022309064865,
-0.22944585978984833,
-0.16662831604480743,
-0.05729779973626137,
0.5215888619422913,
-0.2304559350013733,
0.33056914806365967,
0.1110762432217598,
0.24866214394569397,
0.10225430876016617,
0.07120825350284576,
0.48212286829948425,
-0.05735340341925621,
0.019261473789811134,
0.015868762508034706,
0.10440024733543396,
-0.20792442560195923,
-0.17858873307704926,
0.027290182188153267,
-0.2807312607765198,
0.08258461952209473,
-0.4025094211101532,
-0.01666436344385147,
0.125209242105484,
-0.04034658148884773,
0.06722758710384369,
-0.1790914386510849,
0.14754776656627655,
0.6222162246704102,
0.3884713351726532,
0.20479032397270203,
-0.25207290053367615,
0.18112604320049286,
-0.0499875470995903,
0.0590849369764328,
0.1429441124200821,
-0.15821050107479095,
0.2772468030452728,
0.17726971209049225,
-0.32606691122055054,
0.2746413052082062,
0.08582596480846405,
-0.14542575180530548,
-0.4181194007396698,
-0.05140482634305954,
0.18513235449790955,
-0.138294517993927,
-0.5660077929496765,
0.4074319005012512,
0.1603221893310547,
-0.32359257340431213,
0.0023533154744654894,
-0.0015482775634154677,
0.05568992719054222,
0.058114342391490936,
0.10352283716201782,
-0.30341264605522156,
0.04617636278271675,
0.38589024543762207,
0.3112267255783081,
0.027632471174001694,
0.42552125453948975,
0.3808818459510803,
0.14324449002742767,
-0.09357739984989166,
0.051031872630119324,
0.06411959230899811,
-0.44381868839263916,
-0.2619401216506958,
0.2240641564130783,
0.1107032299041748,
-0.275555282831192,
0.027521882206201553,
0.29480892419815063,
0.28127872943878174,
0.1131940707564354,
-0.15400032699108124,
-0.30264660716056824,
0.2983662188053131,
0.19902615249156952,
0.18868142366409302,
0.13416817784309387,
0.10640190541744232,
-0.06670732796192169,
0.6051521301269531,
-0.19553501904010773,
0.10303650051355362,
0.09476288408041,
0.24168595671653748,
0.5612388253211975,
0.32110148668289185,
-0.30370211601257324,
-0.3529653549194336,
0.052425604313611984,
-0.25630566477775574,
0.36803483963012695,
-0.16537967324256897,
-0.03431984782218933,
0.1800290197134018,
0.1391877979040146,
0.014135443605482578,
-0.12974229454994202,
-0.2268856167793274,
0.3054669201374054,
-0.35535094141960144,
0.10369035601615906,
0.20477506518363953,
0.14609114825725555,
-0.1658952236175537,
0.28829893469810486,
0.1458720564842224,
-0.6236065030097961,
0.3157993257045746,
0.14285436272621155,
0.15660260617733002,
-0.2186441868543625,
-0.16644957661628723,
0.21131916344165802,
-0.029423318803310394,
0.22341927886009216,
0.02873370610177517,
0.42431575059890747,
-0.00887352880090475,
0.021281983703374863,
-0.011898416094481945,
0.06415988504886627,
0.2644203305244446,
0.24632158875465393,
-0.25641852617263794,
0.039067309349775314,
0.0752100944519043,
0.14354221522808075,
0.11950179189443588,
-0.32496580481529236,
-0.05259687453508377,
0.5134177803993225,
-0.13269595801830292,
0.056138038635253906,
0.06786558777093887,
-0.1298224925994873,
0.39161553978919983,
-0.2596840262413025,
0.011347741819918156,
0.05831829831004143,
-0.1029900461435318,
0.21193023025989532,
0.4004087448120117,
0.4970455467700958,
-0.0868288204073906,
0.030480042099952698,
0.1863892674446106,
0.20960287749767303,
0.26925522089004517,
0.24161075055599213,
0.11770308762788773,
0.5011904835700989,
0.11954376846551895,
0.580991268157959,
0.13920818269252777,
0.3784664571285248,
0.3143638074398041,
0.3798801004886627,
-0.3143443465232849,
-0.039889462292194366,
0.10344817489385605,
0.2028987854719162,
-0.25745368003845215,
0.14830879867076874,
0.4723997712135315,
-0.029881732538342476,
-0.2976963222026825,
-0.08581027388572693,
-0.38734298944473267,
0.09485695511102676,
-0.07329811900854111,
-0.07690093666315079,
-0.31537601351737976,
0.13354216516017914,
-0.1397836059331894,
0.150164395570755,
-0.1131884753704071,
0.05240115895867348,
-0.09057362377643585,
-0.0022757661063224077,
-0.22574159502983093,
0.33385932445526123,
-0.19651886820793152,
-0.09320176392793655,
0.2818792760372162,
0.6687037944793701,
0.19016924500465393,
0.19669650495052338,
-0.04688219353556633,
0.44403958320617676,
0.0426715612411499,
-0.18848419189453125,
0.1407419890165329,
-0.054325398057699203,
-0.0936100110411644,
-0.4418236315250397,
0.22292198240756989,
0.17428532242774963,
-0.051258619874715805,
0.13467782735824585,
0.031151819974184036,
0.3035244643688202,
-0.06948350369930267,
-0.16975201666355133,
-0.06499540060758591,
-0.13680680096149445,
0.09627969563007355,
-0.0222410187125206,
-0.3277292847633362,
-0.002142625395208597,
0.10965301841497421,
-0.24665160477161407,
0.04727951064705849,
0.04128279536962509,
0.051709532737731934,
0.09941786527633667,
0.2816910445690155,
0.43132099509239197,
0.08397654443979263,
-0.21279101073741913,
-0.19452306628227234,
-0.5713773369789124,
0.08902622014284134,
-0.18038497865200043,
0.064496248960495,
-0.40974560379981995,
-0.017854150384664536,
0.3409048318862915,
0.11887431144714355,
0.21144075691699982,
0.012332538142800331,
-0.32739725708961487,
0.09218467772006989,
-0.13946019113063812,
-0.31166622042655945,
0.11990249156951904,
0.03576527535915375,
-0.09218842536211014,
0.08519123494625092,
0.024666646495461464,
0.14294856786727905,
-0.12991945445537567,
-0.015678903087973595,
-0.14332720637321472,
0.1077953428030014,
-0.29147636890411377,
0.07853350788354874,
0.08364761620759964,
0.7063451409339905,
-0.3609161376953125,
0.04046732559800148,
0.45821812748908997,
-0.31411394476890564,
-0.07884495705366135,
0.5984264612197876,
0.06941759586334229,
0.24887721240520477,
-0.3487592339515686,
0.10828960686922073,
0.22002969682216644,
-0.45371612906455994,
-0.392259806394577,
0.1436905711889267,
-0.662385880947113,
-0.05042136088013649,
-0.09221362322568893,
-0.026031149551272392,
-0.03477118909358978,
0.1968841552734375,
0.005590374581515789,
0.3021906316280365,
0.24335932731628418,
-0.15162192285060883,
0.04021543264389038,
-0.1162695586681366,
-0.22518528997898102,
-0.2587277293205261,
-0.04557988420128822,
0.24062487483024597,
-0.08683190494775772,
-0.3463823199272156,
0.07249698042869568,
0.4907073974609375,
0.11029718071222305,
0.05479424074292183,
0.13350921869277954,
-0.06829863786697388,
0.006560163106769323,
-0.2171505242586136,
0.24882110953330994,
0.01908786967396736,
0.007792398799210787,
-0.44087234139442444,
-0.36271727085113525
] |
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.002570084063336253,
-0.05012337118387222,
0.00770421652123332,
0.07763124257326126,
-0.0018994753481820226,
0.1729738414287567,
-0.059213850647211075,
0.15285487473011017,
-0.02389480546116829,
-0.10775931179523468,
-0.2796122133731842,
0.22843092679977417,
0.3064371347427368,
0.05116663873195648,
0.045765966176986694,
-0.21212147176265717,
0.29770752787590027,
0.08784598112106323,
-0.13958950340747833,
0.06776615977287292,
0.08774251490831375,
0.10520566254854202,
-0.24178646504878998,
-0.07961028814315796,
-0.3017895519733429,
0.1389436572790146,
-0.1065392792224884,
-0.1786440759897232,
0.025756871327757835,
-0.08233862370252609,
0.2509200870990753,
0.23384971916675568,
0.057863831520080566,
0.5224134922027588,
-0.00011893446207977831,
-0.15731418132781982,
0.17340973019599915,
-0.1755608767271042,
-0.06744232028722763,
-0.6412490606307983,
-0.4305659830570221,
-0.16816315054893494,
-0.06306304782629013,
-0.22542111575603485,
-0.1610954999923706,
-0.19150060415267944,
-0.014182021841406822,
-0.3776862323284149,
0.2850199043750763,
-0.04644393175840378,
0.07305116206407547,
-0.23384155333042145,
0.35690492391586304,
-0.2776036858558655,
0.2534075975418091,
0.11005896329879761,
0.22919121384620667,
0.25137847661972046,
0.4053717851638794,
-0.019633667543530464,
0.37237924337387085,
0.04019416496157646,
-0.2859005630016327,
-0.11128197610378265,
0.26738646626472473,
0.04826967790722847,
-0.24334362149238586,
-0.56187504529953,
0.12425104528665543,
0.5158060193061829,
0.8751175999641418,
-0.1637459397315979,
-0.11893405020236969,
-0.1058141216635704,
0.2280832827091217,
0.29847055673599243,
-0.1458125114440918,
0.12571106851100922,
0.0739404708147049,
-0.07439766079187393,
-0.07137081772089005,
-0.3805044889450073,
-0.01996186003088951,
0.05703562870621681,
-0.19119198620319366,
0.38755181431770325,
0.11644002050161362,
0.08352989703416824,
-0.11517783999443054,
-0.38575032353401184,
0.037471137940883636,
-0.0749259814620018,
-0.17946626245975494,
0.3205152750015259,
-0.1373666524887085,
-0.3005456030368805,
-0.4265526533126831,
-0.0406181737780571,
0.3847050070762634,
-0.2180032879114151,
-0.10970024764537811,
-0.17190136015415192,
-0.28327077627182007,
0.18125158548355103,
0.4421004056930542,
-0.17094233632087708,
0.38908252120018005,
0.2038497030735016,
-0.1573476493358612,
-0.2631586790084839,
-0.7858483791351318,
-0.014169309288263321,
0.038581687957048416,
-0.3469100296497345,
-0.0002775352040771395,
-0.14539267122745514,
0.055726006627082825,
-0.1759076863527298,
0.06012646108865738,
0.11429448425769806,
-0.526790976524353,
-0.10423019528388977,
-0.491288423538208,
-0.02848954126238823,
0.054489344358444214,
-0.13849104940891266,
-0.04926510527729988,
0.32099494338035583,
-0.02938579022884369,
-0.2145489752292633,
0.0017575811361894011,
-0.04589109495282173,
0.0329560711979866,
0.09262070804834366,
-0.2935270369052887,
0.012366952374577522,
0.1479332149028778,
0.2374410778284073,
0.17955495417118073,
-0.1296139806509018,
0.1128564402461052,
-0.2888929843902588,
0.12975256145000458,
-0.23242723941802979,
0.25701627135276794,
0.33898377418518066,
0.08367343246936798,
-0.2809271514415741,
-0.09744112193584442,
0.320299357175827,
-0.34678977727890015,
0.0968267023563385,
-0.07511194050312042,
0.04822550341486931,
-0.1077679991722107,
-0.3144003450870514,
0.13938888907432556,
0.36381232738494873,
0.19113373756408691,
-0.39201080799102783,
-0.05912506580352783,
0.047459088265895844,
-0.42727378010749817,
-0.16956579685211182,
0.12705199420452118,
0.08359843492507935,
-0.5973299145698547,
-0.21136543154716492,
0.18704436719417572,
0.17157107591629028,
-0.16907615959644318,
0.3093142807483673,
-0.0003775844525080174,
0.4118541181087494,
0.047839388251304626,
0.10178077965974808,
0.18833518028259277,
-0.031939297914505005,
-0.22283770143985748,
0.2945316433906555,
-0.14560340344905853,
-0.06781364232301712,
-0.10442005842924118,
0.34204670786857605,
0.32041221857070923,
-0.187541663646698,
0.31517475843429565,
0.14494188129901886,
-0.1745814085006714,
-0.20851992070674896,
0.11556214839220047,
-0.2270273119211197,
0.1572456955909729,
-0.31243857741355896,
-0.06116878241300583,
-0.11681094020605087,
0.11180631816387177,
0.05850844457745552,
0.1921534389257431,
-0.15004536509513855,
0.15556347370147705,
0.332489550113678,
0.011677470989525318,
0.3420872092247009,
-0.09012426435947418,
-0.2835853099822998,
-0.3240109086036682,
-0.06446639448404312,
-0.09286893904209137,
0.15288211405277252,
0.29602131247520447,
-0.2420344352722168,
-0.19247525930404663,
-0.4010331928730011,
0.350892573595047,
0.009865500964224339,
0.014594108797609806,
-0.2698221802711487,
-0.12201584130525589,
-0.06578227132558823,
-0.06294050067663193,
-0.014488673768937588,
0.2110164314508438,
-0.15041044354438782,
-0.3179160952568054,
0.3872099816799164,
0.11763986945152283,
0.05715780705213547,
-0.16790981590747833,
0.3586961328983307,
0.04845303297042847,
0.2030506432056427,
0.16427411139011383,
-0.02723419852554798,
-0.22417694330215454,
0.33966633677482605,
0.2753729224205017,
-0.2568643391132355,
-0.02501504495739937,
-0.6368870139122009,
-0.124196857213974,
-0.21415948867797852,
-0.03379218280315399,
-0.3123405873775482,
-0.2352534532546997,
0.17315177619457245,
-0.034540604799985886,
0.27159783244132996,
0.06344397366046906,
0.04015204310417175,
0.11139385402202606,
-0.05911870673298836,
-0.1764661967754364,
-0.16730330884456635,
0.09022005647420883,
0.09071341902017593,
0.14487102627754211,
0.3844330906867981,
-0.2436368763446808,
0.04828490689396858,
-0.028449855744838715,
0.07648182660341263,
0.13728982210159302,
-0.3264170289039612,
-0.459215372800827,
0.007492769043892622,
-0.227046936750412,
0.12148956954479218,
0.20824097096920013,
0.3492424488067627,
0.15271654725074768,
0.045698702335357666,
-0.092181496322155,
-0.021365508437156677,
-0.010589315555989742,
0.06810256838798523,
0.3793627619743347,
0.021930720657110214,
0.24819689989089966,
0.09161057323217392,
0.38525471091270447,
0.21680687367916107,
0.013674494810402393,
-0.20233020186424255,
-0.16965503990650177,
-0.2334568351507187,
0.06892401725053787,
-0.27860206365585327,
-0.37395551800727844,
-0.19198308885097504,
-0.24633240699768066,
-0.14712779223918915,
-0.08102180063724518,
0.11993944644927979,
-0.04075231775641441,
0.18876075744628906,
-0.02968674711883068,
0.12758469581604004,
-0.20645694434642792,
-0.10420871526002884,
0.16540777683258057,
-0.46340298652648926,
0.25841081142425537,
0.18795444071292877,
0.18769517540931702,
0.17747166752815247,
0.4568811357021332,
-0.21745485067367554,
-0.18170616030693054,
-0.45731493830680847,
-0.4930146038532257,
0.042001042515039444,
-0.15479891002178192,
0.29636985063552856,
-0.16151125729084015,
0.13296595215797424,
-0.2619120180606842,
0.04215479642152786,
0.2144404947757721,
0.3131139278411865,
0.00534340925514698,
-0.3617568016052246,
-0.12953492999076843,
0.15239767730236053,
0.26828980445861816,
-0.359765887260437,
-0.15270616114139557,
0.012595444917678833,
0.1549455225467682,
-0.027793075889348984,
0.014746938832104206,
-0.4901637136936188,
0.09067277610301971,
-0.16728997230529785,
-0.13090074062347412,
-0.006718199700117111,
-0.10170333087444305,
-0.3829996585845947,
0.2168264538049698,
-0.051636118441820145,
-0.2362247258424759,
0.2038920670747757,
0.02791365049779415,
-0.011724181473255157,
-0.21065787971019745,
0.07603152096271515,
0.16738994419574738,
-0.15410487353801727,
0.03745328634977341,
0.22765451669692993,
0.13972105085849762,
0.09238749742507935,
0.12873902916908264,
0.056455858051776886,
-0.19264519214630127,
-0.1596461683511734,
0.21663986146450043,
0.06163477525115013,
0.10892415791749954,
-0.009842418134212494,
0.1810981184244156,
-0.3064337372779846,
0.4406489133834839,
0.5961536169052124,
0.06694705039262772,
-0.15431730449199677,
-0.05524493008852005,
0.3191204071044922,
-0.22411654889583588,
-0.14441466331481934,
-0.21626608073711395,
0.1355166882276535,
-0.11042380332946777,
0.2012258917093277,
0.14698316156864166,
-0.20111319422721863,
-0.2267201691865921,
0.02761141210794449,
-0.2966867983341217,
-0.08669962733983994,
0.1483120173215866,
-0.36165159940719604,
0.22800126671791077,
0.0028271127957850695,
-0.4828457236289978,
-0.2542799711227417,
-0.2783203423023224,
-0.19920465350151062,
-0.2758306562900543,
0.32781490683555603,
-0.045201584696769714,
-0.3528808355331421,
-0.016693981364369392,
-0.3142629861831665,
0.24065037071704865,
0.36649999022483826,
-0.08433821052312851,
-0.09072177112102509,
-0.060418251901865005,
-0.12921513617038727,
0.26062512397766113,
0.1542930006980896,
-0.5128044486045837,
-0.16334310173988342,
0.1516360640525818,
0.406210333108902,
-0.065043605864048,
0.2887907028198242,
-0.09171218425035477,
-0.11308581382036209,
0.2488013356924057,
0.25090518593788147,
-0.2583782374858856,
0.15706303715705872,
0.24470412731170654,
0.40327751636505127,
-0.17364104092121124,
-0.13138447701931,
0.20572903752326965,
0.16526173055171967,
-0.2362181842327118,
-0.09625961631536484,
0.1956251561641693,
-0.0006141566555015743,
0.27403226494789124,
-0.06939461082220078,
0.03659513220191002,
0.2171512246131897,
0.5396983623504639,
0.12097781896591187,
0.08115258812904358,
0.08037969470024109,
0.23573321104049683,
0.4530330002307892,
-0.032028935849666595,
0.13783396780490875,
0.6700571775436401,
-0.21454714238643646,
-0.3292793333530426,
-0.19343531131744385,
-0.13117434084415436,
0.6428797841072083,
0.006215048488229513,
0.3512895405292511,
0.19892224669456482,
0.01888527162373066,
-0.12091556936502457,
-0.04907919466495514,
-0.2452421933412552,
0.07921306788921356,
0.1984340250492096,
-0.7353706359863281,
-0.41211605072021484,
0.27522170543670654,
0.2985345423221588,
-0.33700037002563477,
-0.2035917192697525,
0.1112070307135582,
-0.2003127485513687,
0.4947105050086975,
0.06121475622057915,
1.1625711917877197,
0.041009049862623215,
0.11799187958240509,
-0.3089972734451294,
-0.12293905019760132,
0.9703686237335205,
0.19301007688045502,
-0.12722133100032806,
-0.09684757143259048,
-0.11371903121471405,
-0.2565712332725525,
-0.22482049465179443,
-0.1375604271888733,
0.5079168677330017,
-0.18405357003211975,
0.37348219752311707,
0.03107316792011261,
0.1875915378332138,
0.1369578093290329,
-0.03274267911911011,
0.5116970539093018,
0.0012901616282761097,
-0.006474815774708986,
0.022987226024270058,
0.1152573972940445,
-0.09022417664527893,
-0.18498413264751434,
-0.029749581590294838,
-0.3025931119918823,
0.1189245954155922,
-0.38475602865219116,
0.00039669673424214125,
0.06506963819265366,
-0.0481351874768734,
0.08502935618162155,
-0.23551957309246063,
0.19551558792591095,
0.7198816537857056,
0.3563292324542999,
0.19222688674926758,
-0.28482529520988464,
0.17266283929347992,
-0.009221851825714111,
0.0049914149567484856,
0.1629314422607422,
-0.12815584242343903,
0.27804967761039734,
0.16176798939704895,
-0.27770304679870605,
0.194997176527977,
0.10211637616157532,
-0.08998085558414459,
-0.47443461418151855,
0.012307658791542053,
0.09800777584314346,
-0.0945378914475441,
-0.5388153195381165,
0.3663729429244995,
0.17678143084049225,
-0.18565280735492706,
0.013199781067669392,
0.00018792641640175134,
0.07491820305585861,
0.09355203062295914,
0.11230023950338364,
-0.32101908326148987,
0.060616761445999146,
0.3731018006801605,
0.36472412943840027,
-0.06295893341302872,
0.342471182346344,
0.38151341676712036,
0.08557526022195816,
-0.08728505671024323,
0.08147203922271729,
0.028807982802391052,
-0.398054838180542,
-0.19699913263320923,
0.10577517002820969,
0.23879414796829224,
-0.30825403332710266,
-0.010020026937127113,
0.38292673230171204,
0.1897435337305069,
0.17229683697223663,
-0.12591931223869324,
-0.2626471519470215,
0.33699673414230347,
0.1391749382019043,
0.1633087545633316,
0.049051668494939804,
0.08623085916042328,
-0.01013601291924715,
0.5093482136726379,
-0.207042396068573,
0.15807121992111206,
0.09070692211389542,
0.20063050091266632,
0.5335081815719604,
0.32772478461265564,
-0.3454568088054657,
-0.3669418394565582,
0.06433019787073135,
-0.20484459400177002,
0.31088969111442566,
-0.19222182035446167,
0.04808900132775307,
0.16925421357154846,
0.10162156075239182,
0.02212870866060257,
-0.04696058854460716,
-0.21702073514461517,
0.3040747344493866,
-0.316379576921463,
0.0354829803109169,
0.2301061600446701,
0.22141802310943604,
-0.26301220059394836,
0.2981289327144623,
0.1858416050672531,
-0.5612180829048157,
0.36513620615005493,
0.13900326192378998,
0.1313631385564804,
-0.31202811002731323,
-0.22731713950634003,
0.23621630668640137,
-0.026893245056271553,
0.2411729395389557,
-0.02944185771048069,
0.3321402668952942,
0.057038843631744385,
-0.008374973200261593,
-0.027322381734848022,
-0.0005376396584324539,
0.24429182708263397,
0.3078635632991791,
-0.22124136984348297,
-0.024001557379961014,
0.10118567943572998,
0.17675872147083282,
0.12899015843868256,
-0.22267313301563263,
-0.039465632289648056,
0.5133670568466187,
-0.03804052621126175,
-0.03750147297978401,
0.04380936920642853,
-0.12907971441745758,
0.3635993003845215,
-0.2724665105342865,
0.08442946523427963,
0.12329917401075363,
-0.13094541430473328,
0.1443680077791214,
0.41395145654678345,
0.5091974139213562,
-0.06378999352455139,
0.043281227350234985,
0.1681566834449768,
0.2342418134212494,
0.2636001408100128,
0.22626666724681854,
0.12491290271282196,
0.5415762066841125,
0.18316181004047394,
0.6217492818832397,
0.21456378698349,
0.23058848083019257,
0.3615838885307312,
0.29514646530151367,
-0.3101608157157898,
-0.0733572468161583,
0.17036214470863342,
0.12692411243915558,
-0.2907981872558594,
0.1274166852235794,
0.44341063499450684,
0.0040869382210075855,
-0.2422986775636673,
-0.060394495725631714,
-0.41705331206321716,
0.10444492846727371,
-0.05967846140265465,
-0.09443678706884384,
-0.2965032160282135,
0.20172451436519623,
-0.12774161994457245,
0.1328471302986145,
-0.10015997290611267,
0.0389213040471077,
-0.08151588588953018,
0.04568863287568092,
-0.20553907752037048,
0.217804953455925,
-0.26091113686561584,
-0.09361833333969116,
0.2776678502559662,
0.6427245736122131,
0.2933254837989807,
0.1303422451019287,
-0.10996470600366592,
0.32805418968200684,
0.016304301097989082,
-0.11352279782295227,
0.14166632294654846,
-0.014613824896514416,
-0.08066681772470474,
-0.5470139980316162,
0.2632032036781311,
0.17302469909191132,
-0.04093622416257858,
0.13579896092414856,
-0.013734353706240654,
0.32550737261772156,
-0.12096090614795685,
-0.17098326981067657,
-0.2564886510372162,
-0.09637102484703064,
0.08074632287025452,
-0.05697845667600632,
-0.2953188717365265,
0.05914725363254547,
0.058542121201753616,
-0.15126526355743408,
0.04656022787094116,
0.03810940682888031,
0.06070611998438835,
0.04338289797306061,
0.19293290376663208,
0.4572063982486725,
0.18059445917606354,
-0.2380094677209854,
-0.22304822504520416,
-0.6116511821746826,
0.11560070514678955,
-0.24245302379131317,
0.08798868954181671,
-0.41291990876197815,
-0.0658172219991684,
0.31553369760513306,
0.18274728953838348,
0.1582338660955429,
0.03656436875462532,
-0.3021133840084076,
0.15240012109279633,
-0.1534944325685501,
-0.3242209255695343,
0.15521655976772308,
-0.020784158259630203,
-0.11281142383813858,
0.07634671777486801,
0.018195709213614464,
0.04545091092586517,
-0.11441119760274887,
0.025497745722532272,
-0.13782495260238647,
0.17563806474208832,
-0.1870415210723877,
0.08899480104446411,
0.15027637779712677,
0.7541152834892273,
-0.30901476740837097,
0.060667041689157486,
0.43287748098373413,
-0.3222755789756775,
-0.0024944478645920753,
0.6328267455101013,
0.018894286826252937,
0.22345516085624695,
-0.38175544142723083,
0.12939271330833435,
0.25896257162094116,
-0.5065023303031921,
-0.339641273021698,
0.3446260392665863,
-0.682917058467865,
-0.2021077573299408,
-0.08832833170890808,
-0.01817442663013935,
-0.09172362834215164,
0.22667787969112396,
-0.03038070909678936,
0.27062487602233887,
0.22216196358203888,
-0.15568996965885162,
0.10929983854293823,
-0.1322840452194214,
-0.23601754009723663,
-0.21238866448402405,
-0.046372052282094955,
0.2906596064567566,
-0.03492079675197601,
-0.3357984125614166,
0.054126061499118805,
0.44437727332115173,
0.12320917099714279,
0.06236712634563446,
0.1291293501853943,
-0.07157354056835175,
0.04464248940348625,
-0.23118624091148376,
0.18623557686805725,
-0.028579264879226685,
-0.004688766784965992,
-0.44833773374557495,
-0.33730313181877136
] |
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.16917195916175842,
0.016835274174809456,
0.06266527622938156,
0.3633994162082672,
0.29187607765197754,
-0.17967860400676727,
0.21995796263217926,
-0.043444596230983734,
-0.18381339311599731,
0.06295803934335709,
-0.3239004909992218,
0.13601750135421753,
0.07222897559404373,
0.15775887668132782,
-0.05791359767317772,
-0.09452789276838303,
-0.19010961055755615,
-0.20005568861961365,
-0.06888402998447418,
0.25353628396987915,
-0.13285483419895172,
0.4753991961479187,
-0.20731373131275177,
0.20469141006469727,
-0.4112508296966553,
0.012067264877259731,
0.2174300253391266,
0.4217192828655243,
-0.22421741485595703,
-0.6152903437614441,
0.4672035574913025,
0.09182169288396835,
0.2583209276199341,
0.6301941871643066,
-0.00012121877807658166,
0.04387781769037247,
0.3747948408126831,
-0.08091144263744354,
-0.36821940541267395,
-0.5027561187744141,
-0.5078128576278687,
-0.07905193418264389,
0.26483848690986633,
0.22928565740585327,
-0.3196893036365509,
0.4285559356212616,
0.07915347069501877,
-0.32506027817726135,
0.3382037580013275,
0.6332941055297852,
0.08208362758159637,
-0.07683637738227844,
0.09451205283403397,
-0.16235895454883575,
0.3016182482242584,
-0.14889773726463318,
-0.07060977816581726,
0.4869541525840759,
0.21551308035850525,
-0.03863689303398132,
0.05493714287877083,
-0.021642809733748436,
-0.027104409411549568,
-0.011704470962285995,
0.17982688546180725,
-0.07429172843694687,
-0.11018536239862442,
-0.4340967833995819,
0.42413029074668884,
0.35226497054100037,
0.640214204788208,
-0.17337407171726227,
-0.22726866602897644,
0.14541415870189667,
-0.08126428723335266,
-0.4302360415458679,
0.30031856894493103,
0.32170921564102173,
-0.12212388962507248,
0.1870262324810028,
-0.4078293740749359,
-0.25976458191871643,
-0.36862894892692566,
0.004372226074337959,
-0.4164084792137146,
0.12703561782836914,
-0.26639899611473083,
0.1315307468175888,
0.29100292921066284,
0.015295268967747688,
0.3388892114162445,
0.22372426092624664,
-0.4470457136631012,
-0.007506231311708689,
-0.6929903030395508,
0.1829676628112793,
-0.1482105255126953,
-0.03634641692042351,
0.09349396824836731,
0.369731605052948,
0.31743744015693665,
0.03689683601260185,
-0.28630542755126953,
0.4065681993961334,
0.08699101954698563,
0.3421805500984192,
0.04323955997824669,
0.18729746341705322,
0.3242340683937073,
0.1837180256843567,
-0.01322243269532919,
-0.09307888895273209,
-0.19508300721645355,
-0.2066064178943634,
-0.1330893486738205,
0.18090499937534332,
0.09734142571687698,
-0.2702088952064514,
-0.3912968337535858,
0.14655812084674835,
-0.413940966129303,
0.00919320434331894,
0.12256445735692978,
0.45413121581077576,
-0.2755919396877289,
-0.024244248867034912,
-0.03852510824799538,
0.22082187235355377,
-0.09657097607851028,
-0.16265548765659332,
-0.0660131499171257,
0.2261454164981842,
-0.23264585435390472,
0.13177084922790527,
0.33809974789619446,
-0.1813092827796936,
0.14130745828151703,
-0.16491778194904327,
-0.06684523820877075,
-0.21560120582580566,
-0.00865042395889759,
-0.2676548659801483,
-0.10671935975551605,
0.4307490885257721,
0.07769376039505005,
0.056267451494932175,
0.12437886744737625,
-0.37195682525634766,
-0.0352645181119442,
0.01337928231805563,
-0.571435809135437,
-0.3518614172935486,
0.06211579591035843,
0.07057788223028183,
-0.12042874842882156,
0.02190360799431801,
-0.3443552553653717,
0.0012685676338151097,
-0.004354225471615791,
-0.18004246056079865,
-0.17487195134162903,
-0.2704443037509918,
-0.33346447348594666,
-0.3149200975894928,
0.3458772897720337,
0.451456218957901,
-0.556603193283081,
-0.02707524225115776,
0.09684131294488907,
0.07431008666753769,
0.16746066510677338,
0.33148089051246643,
-0.19075490534305573,
-0.0951521247625351,
-0.2181231677532196,
-0.10006667673587799,
0.09560289233922958,
-0.3112885653972626,
-0.298593670129776,
-0.0033587298821657896,
-0.019406791776418686,
-0.04835794121026993,
-0.23692339658737183,
-0.10341373085975647,
0.013774673454463482,
0.06160391494631767,
0.6465595960617065,
0.21579036116600037,
-0.12831594049930573,
-0.17619366943836212,
-0.15029388666152954,
-0.2762148678302765,
-0.2542473375797272,
0.08695583790540695,
0.12146999686956406,
0.005973297171294689,
0.2363974153995514,
-0.47641482949256897,
0.07022855430841446,
0.041881464421749115,
-0.007306181825697422,
0.3011593818664551,
0.3711305856704712,
-0.05341664329171181,
-0.19651110470294952,
0.25416406989097595,
-0.4512369632720947,
0.370186984539032,
-0.07186304777860641,
0.2864057719707489,
-0.2534544765949249,
0.15393561124801636,
-0.26670724153518677,
0.14493896067142487,
-0.05388132855296135,
-0.133841872215271,
-0.059171803295612335,
0.09799908101558685,
0.22506967186927795,
0.2401256412267685,
-0.11998496949672699,
0.567784309387207,
0.13529248535633087,
0.13874751329421997,
-0.23350243270397186,
0.2586086690425873,
0.021819179877638817,
0.06880754232406616,
0.1329156458377838,
0.010632202960550785,
0.2142108976840973,
-0.2170555591583252,
-0.06412237137556076,
0.31863370537757874,
0.2173621505498886,
0.0417964942753315,
0.05746195837855339,
0.1577182114124298,
0.2542846202850342,
-0.3891931176185608,
-0.09974030405282974,
0.04728783294558525,
-0.008624560199677944,
-0.025269288569688797,
-0.04055401682853699,
0.24257270991802216,
0.06485964357852936,
0.42057016491889954,
0.14002417027950287,
0.08941996097564697,
0.3215749263763428,
0.029858889058232307,
-0.016004487872123718,
0.17947407066822052,
0.1751987785100937,
0.21789276599884033,
0.023062201216816902,
-0.08385019749403,
-0.36023151874542236,
0.14936406910419464,
-0.16420423984527588,
0.0495588555932045,
-0.11296334862709045,
0.12475540488958359,
-0.1547979861497879,
-0.022080756723880768,
0.07000399380922318,
0.3708668053150177,
0.22012747824192047,
0.049047380685806274,
-0.20052070915699005,
0.18740995228290558,
0.06052730232477188,
-0.20581471920013428,
-0.04450121521949768,
0.10965382307767868,
0.36466607451438904,
0.2655832767486572,
0.4266878664493561,
-0.048762984573841095,
-0.09510872513055801,
-0.3787635266780853,
-0.03589726239442825,
0.26145070791244507,
-0.270788311958313,
0.40087753534317017,
-0.24347151815891266,
-0.3584270775318146,
0.09380386024713516,
-0.3161959946155548,
-0.3449470102787018,
-0.26493775844573975,
-0.11771046370267868,
0.4375135898590088,
0.11630920320749283,
0.062329407781362534,
-0.211109921336174,
0.37165388464927673,
0.025430234149098396,
-0.5300377011299133,
-0.023688752204179764,
-0.2573980987071991,
-0.3198368549346924,
0.015923867002129555,
0.3333905339241028,
-0.22138702869415283,
0.06986222416162491,
-0.2547049820423126,
0.029796119779348373,
-0.1255466341972351,
-0.20304329693317413,
0.1615646481513977,
0.15230809152126312,
0.30116331577301025,
-0.06698129326105118,
0.2267765998840332,
-0.24250528216362,
0.09405945241451263,
0.2751005291938782,
0.06796137243509293,
0.10233984142541885,
0.048933759331703186,
-0.040087245404720306,
0.044108159840106964,
0.024912236258387566,
-0.2555714249610901,
-0.4800467789173126,
-0.35828036069869995,
0.17842262983322144,
0.019613193348050117,
0.3458855152130127,
0.29600873589515686,
0.03824861720204353,
-0.08666202425956726,
0.0641801655292511,
-0.07696384936571121,
-0.15337495505809784,
-0.38655519485473633,
0.17241273820400238,
-0.2786805331707001,
-0.24313409626483917,
0.2509685456752777,
0.07473891228437424,
0.3847610056400299,
0.07639394700527191,
-0.6094391942024231,
-0.156410813331604,
-0.1264607459306717,
0.10489964485168457,
0.025826789438724518,
-0.28259122371673584,
0.33344271779060364,
-0.08820820599794388,
-0.005147483665496111,
0.21606498956680298,
-0.44045209884643555,
0.0323338620364666,
0.3356824815273285,
0.39132389426231384,
0.27374741435050964,
0.37074682116508484,
-0.17094478011131287,
0.4239262044429779,
0.20261023938655853,
0.04854324460029602,
0.3296670615673065,
-0.1572236716747284,
0.3341197967529297,
-0.08921778947114944,
-0.2969248592853546,
-0.21728362143039703,
-0.21034687757492065,
-0.3245602250099182,
0.16177238523960114,
0.26366451382637024,
-0.034415047615766525,
-0.49671050906181335,
0.11736097186803818,
-0.08014099299907684,
-0.3276882767677307,
0.0556476004421711,
0.16797593235969543,
0.1110880896449089,
0.003878933610394597,
-0.037826426327228546,
0.22122901678085327,
-0.21193766593933105,
-0.3172354996204376,
0.36299997568130493,
0.0803811326622963,
0.07255010306835175,
-0.13046713173389435,
-0.01612098515033722,
-0.8267483115196228,
0.30459079146385193,
0.004353181924670935,
0.39902374148368835,
-0.3158353865146637,
0.06143071874976158,
0.07918961346149445,
-0.10680586844682693,
0.11924527585506439,
-0.30705365538597107,
-0.08182685822248459,
0.30878204107284546,
0.06008626148104668,
-0.2109728306531906,
-0.2092314064502716,
0.12699541449546814,
0.18553735315799713,
0.4327675402164459,
0.3602840006351471,
0.013694455847144127,
0.005340243224054575,
0.07416079938411713,
0.14800620079040527,
-0.0896286740899086,
0.023082494735717773,
-0.32150232791900635,
-0.4804902672767639,
-0.23763854801654816,
-0.07142718881368637,
-0.06272474676370621,
0.29828184843063354,
0.13049964606761932,
0.0849197581410408,
0.29117944836616516,
-0.2723354995250702,
0.20810149610042572,
0.09229569137096405,
0.018867822363972664,
0.10576441884040833,
0.10276436060667038,
0.09913905709981918,
0.06249143183231354,
0.33541107177734375,
0.9395025372505188,
0.1009225994348526,
-0.12041597813367844,
0.354493111371994,
0.3962079882621765,
0.07355194538831711,
0.2287343144416809,
-0.05183367058634758,
0.10316745191812515,
-0.0455479696393013,
0.13107232749462128,
0.0472785159945488,
0.3104490041732788,
-0.24123114347457886,
-0.012339932844042778,
-0.844632625579834,
-0.16335313022136688,
0.39403975009918213,
-0.11573980748653412,
-0.09637864679098129,
-0.08853168040513992,
0.1918690800666809,
-0.12238317728042603,
0.06642714142799377,
-0.07983318716287613,
0.9389854669570923,
-0.21574068069458008,
-0.11394688487052917,
0.09641943126916885,
-0.14705564081668854,
0.4845156669616699,
-0.5781689286231995,
0.4780518710613251,
-0.3271457254886627,
-0.15968982875347137,
-0.21965089440345764,
-0.26893314719200134,
-0.11416082084178925,
-0.1754053831100464,
-0.002867703326046467,
0.42945075035095215,
-0.1375022828578949,
0.1797104775905609,
0.4103509485721588,
0.03125004097819328,
0.16680555045604706,
0.03138013184070587,
-0.1563228964805603,
0.07422630488872528,
-0.06847322732210159,
0.3795154094696045,
-0.0753369852900505,
-0.0879741683602333,
-0.2208278775215149,
-0.023258205503225327,
-0.3305439352989197,
0.2558436393737793,
-0.7046293616294861,
0.09517093747854233,
0.0003458211722318083,
-0.20279864966869354,
0.13872918486595154,
0.14910142123699188,
0.20197716355323792,
0.1502193957567215,
-0.31032493710517883,
0.2650386393070221,
-0.04730626195669174,
-0.15062831342220306,
-0.009702878072857857,
-0.015875350683927536,
0.010616580955684185,
-0.057882990688085556,
-0.08001910150051117,
0.44516512751579285,
-0.013192087411880493,
-0.4016880691051483,
0.04977063834667206,
0.04142642393708229,
0.015600833110511303,
-0.06720024347305298,
0.13101932406425476,
-0.09139594435691833,
0.03347152844071388,
0.06900813430547714,
0.02713089995086193,
0.12051713466644287,
0.15398675203323364,
-0.01963183842599392,
0.2282925695180893,
-0.25933679938316345,
-0.01571519859135151,
0.36360806226730347,
-0.013595624826848507,
-0.031950268894433975,
0.1860428750514984,
0.4898219704627991,
-0.0020252063404768705,
-0.07053110748529434,
-0.13957974314689636,
0.21268780529499054,
-0.39726144075393677,
0.11640270054340363,
-0.04323391243815422,
0.14965397119522095,
0.03337962180376053,
0.34728193283081055,
0.31434062123298645,
0.03172629699110985,
0.38761621713638306,
-0.5564643144607544,
-0.2944403886795044,
0.054447855800390244,
-0.16902481019496918,
0.1841663420200348,
0.10408931970596313,
-0.16329297423362732,
-0.22763943672180176,
-0.0018322550458833575,
-0.1922599971294403,
0.07231129705905914,
-0.3587894141674042,
-0.1759033501148224,
0.17263709008693695,
-0.1161855086684227,
0.5185418725013733,
-0.13682754337787628,
-0.04794501140713692,
-0.018405117094516754,
-0.35812705755233765,
-0.0564916729927063,
-0.014561377465724945,
0.20178914070129395,
0.17124177515506744,
-0.44309189915657043,
-0.17554333806037903,
-0.07752785086631775,
0.04856952279806137,
0.05439490079879761,
0.18474358320236206,
0.19843977689743042,
-0.18030710518360138,
-0.3293842077255249,
-0.4175051152706146,
0.008154205977916718,
-0.3177676200866699,
0.3675781190395355,
0.23192931711673737,
0.46066662669181824,
0.21742120385169983,
0.24356642365455627,
-0.016910623759031296,
-0.1336590200662613,
-0.11765888333320618,
0.21299616992473602,
-0.053509533405303955,
-0.2645334005355835,
0.19652345776557922,
-0.4327823221683502,
0.06015828251838684,
-0.24055534601211548,
0.23243464529514313,
0.07866328954696655,
-0.21387459337711334,
0.14287662506103516,
0.18814386427402496,
0.05251702666282654,
-0.07040441036224365,
-0.032833971083164215,
0.14138871431350708,
-0.027203666046261787,
0.03104851022362709,
0.2250303030014038,
0.38687339425086975,
-0.1784224659204483,
0.07996776700019836,
0.24590614438056946,
0.5618062615394592,
0.12238864600658417,
0.14211209118366241,
-0.1236974224448204,
-0.12370476871728897,
0.12570372223854065,
0.40945377945899963,
0.008992481045424938,
0.03276761993765831,
0.02111886441707611,
-0.3650709092617035,
-0.03492552787065506,
-0.005955300759524107,
0.018314620479941368,
0.03327499330043793,
-0.5767632722854614,
0.10643776506185532,
0.14117658138275146,
-0.1795792579650879,
-0.17170344293117523,
-0.08942295610904694,
0.452485591173172,
-0.21002990007400513,
-0.017402950674295425,
-0.39089757204055786,
0.18800826370716095,
-0.024239441379904747,
-0.0397147499024868,
0.11829135566949844,
-0.4415910243988037,
-0.13059832155704498,
0.24272708594799042,
0.006991673726588488,
-0.15939538180828094,
-0.00466818455606699,
0.08597669750452042,
-0.23882947862148285,
-0.30007466673851013,
-0.07559331506490707,
0.3069651126861572,
-0.04264720156788826,
-0.09364740550518036,
0.4497722089290619,
0.02733670361340046,
-0.17066118121147156,
0.15570327639579773,
0.015389913693070412,
0.6272586584091187,
0.2654247283935547,
0.18237505853176117,
0.10876841098070145,
-0.12664180994033813,
0.007130697835236788,
0.16971538960933685,
0.08836491405963898,
0.19004100561141968,
-0.3322179317474365,
0.16854055225849152,
0.07864824682474136,
0.025846458971500397,
0.2831476032733917,
-0.0928131490945816,
0.3121078312397003,
0.02945791371166706,
0.017980052158236504,
-0.14604276418685913,
0.11181586980819702,
-0.15920931100845337,
0.042284395545721054,
-0.3145131468772888,
0.17835848033428192,
0.38625073432922363,
-0.14028507471084595,
0.26938268542289734,
0.15430261194705963,
0.008642399683594704,
-0.17800673842430115,
0.4599916934967041,
0.3405536711215973,
0.2323296070098877,
-0.34872955083847046,
-0.1899103820323944,
-0.2473534643650055,
-0.00551925553008914,
-0.11154492199420929,
0.20731022953987122,
-0.04169277846813202,
0.150274395942688,
-0.20463714003562927,
0.3032630980014801,
-0.1217939704656601,
0.30587926506996155,
0.08487756550312042,
0.0063986885361373425,
-0.26516830921173096,
0.06634309142827988,
0.009093724191188812,
0.04983091726899147,
-0.15377438068389893,
-0.26247724890708923,
0.08155819773674011,
-0.37340080738067627,
-0.07949912548065186,
-0.11991959810256958,
0.15114249289035797,
0.04269949719309807,
-0.2643921971321106,
0.29913845658302307,
0.24583984911441803,
0.7336870431900024,
0.26307547092437744,
-0.009374585933983326,
-0.13824202120304108,
-0.38092273473739624,
-0.022565918043255806,
0.009367893449962139,
0.3737497329711914,
0.2838232219219208,
0.08536657691001892,
-0.24049782752990723,
-0.38511157035827637,
0.4988898038864136,
0.0652472972869873,
0.2366219013929367,
0.16505898535251617,
-0.08640801906585693,
-0.018204854801297188,
0.08529648929834366,
-0.07599421590566635,
-0.10944054275751114,
0.19041383266448975,
0.14073118567466736,
-0.13634155690670013,
-0.3142246603965759,
0.5675707459449768,
-0.3454419672489166,
0.11282511800527573,
-0.1528625339269638,
0.26060357689857483,
0.307880699634552,
0.020560897886753082,
-0.2705267369747162,
0.12397529929876328,
0.21452303230762482,
-0.13280682265758514,
-0.4126017689704895,
0.33553579449653625,
-0.2914162874221802,
-0.0648074522614479,
-0.06114606186747551,
0.14645446836948395,
0.0038937036879360676,
-0.30086758732795715,
-0.2765825390815735,
-0.026671871542930603
] |
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.16917195916175842,
0.016835274174809456,
0.06266527622938156,
0.3633994162082672,
0.29187607765197754,
-0.17967860400676727,
0.21995796263217926,
-0.043444596230983734,
-0.18381339311599731,
0.06295803934335709,
-0.3239004909992218,
0.13601750135421753,
0.07222897559404373,
0.15775887668132782,
-0.05791359767317772,
-0.09452789276838303,
-0.19010961055755615,
-0.20005568861961365,
-0.06888402998447418,
0.25353628396987915,
-0.13285483419895172,
0.4753991961479187,
-0.20731373131275177,
0.20469141006469727,
-0.4112508296966553,
0.012067264877259731,
0.2174300253391266,
0.4217192828655243,
-0.22421741485595703,
-0.6152903437614441,
0.4672035574913025,
0.09182169288396835,
0.2583209276199341,
0.6301941871643066,
-0.00012121877807658166,
0.04387781769037247,
0.3747948408126831,
-0.08091144263744354,
-0.36821940541267395,
-0.5027561187744141,
-0.5078128576278687,
-0.07905193418264389,
0.26483848690986633,
0.22928565740585327,
-0.3196893036365509,
0.4285559356212616,
0.07915347069501877,
-0.32506027817726135,
0.3382037580013275,
0.6332941055297852,
0.08208362758159637,
-0.07683637738227844,
0.09451205283403397,
-0.16235895454883575,
0.3016182482242584,
-0.14889773726463318,
-0.07060977816581726,
0.4869541525840759,
0.21551308035850525,
-0.03863689303398132,
0.05493714287877083,
-0.021642809733748436,
-0.027104409411549568,
-0.011704470962285995,
0.17982688546180725,
-0.07429172843694687,
-0.11018536239862442,
-0.4340967833995819,
0.42413029074668884,
0.35226497054100037,
0.640214204788208,
-0.17337407171726227,
-0.22726866602897644,
0.14541415870189667,
-0.08126428723335266,
-0.4302360415458679,
0.30031856894493103,
0.32170921564102173,
-0.12212388962507248,
0.1870262324810028,
-0.4078293740749359,
-0.25976458191871643,
-0.36862894892692566,
0.004372226074337959,
-0.4164084792137146,
0.12703561782836914,
-0.26639899611473083,
0.1315307468175888,
0.29100292921066284,
0.015295268967747688,
0.3388892114162445,
0.22372426092624664,
-0.4470457136631012,
-0.007506231311708689,
-0.6929903030395508,
0.1829676628112793,
-0.1482105255126953,
-0.03634641692042351,
0.09349396824836731,
0.369731605052948,
0.31743744015693665,
0.03689683601260185,
-0.28630542755126953,
0.4065681993961334,
0.08699101954698563,
0.3421805500984192,
0.04323955997824669,
0.18729746341705322,
0.3242340683937073,
0.1837180256843567,
-0.01322243269532919,
-0.09307888895273209,
-0.19508300721645355,
-0.2066064178943634,
-0.1330893486738205,
0.18090499937534332,
0.09734142571687698,
-0.2702088952064514,
-0.3912968337535858,
0.14655812084674835,
-0.413940966129303,
0.00919320434331894,
0.12256445735692978,
0.45413121581077576,
-0.2755919396877289,
-0.024244248867034912,
-0.03852510824799538,
0.22082187235355377,
-0.09657097607851028,
-0.16265548765659332,
-0.0660131499171257,
0.2261454164981842,
-0.23264585435390472,
0.13177084922790527,
0.33809974789619446,
-0.1813092827796936,
0.14130745828151703,
-0.16491778194904327,
-0.06684523820877075,
-0.21560120582580566,
-0.00865042395889759,
-0.2676548659801483,
-0.10671935975551605,
0.4307490885257721,
0.07769376039505005,
0.056267451494932175,
0.12437886744737625,
-0.37195682525634766,
-0.0352645181119442,
0.01337928231805563,
-0.571435809135437,
-0.3518614172935486,
0.06211579591035843,
0.07057788223028183,
-0.12042874842882156,
0.02190360799431801,
-0.3443552553653717,
0.0012685676338151097,
-0.004354225471615791,
-0.18004246056079865,
-0.17487195134162903,
-0.2704443037509918,
-0.33346447348594666,
-0.3149200975894928,
0.3458772897720337,
0.451456218957901,
-0.556603193283081,
-0.02707524225115776,
0.09684131294488907,
0.07431008666753769,
0.16746066510677338,
0.33148089051246643,
-0.19075490534305573,
-0.0951521247625351,
-0.2181231677532196,
-0.10006667673587799,
0.09560289233922958,
-0.3112885653972626,
-0.298593670129776,
-0.0033587298821657896,
-0.019406791776418686,
-0.04835794121026993,
-0.23692339658737183,
-0.10341373085975647,
0.013774673454463482,
0.06160391494631767,
0.6465595960617065,
0.21579036116600037,
-0.12831594049930573,
-0.17619366943836212,
-0.15029388666152954,
-0.2762148678302765,
-0.2542473375797272,
0.08695583790540695,
0.12146999686956406,
0.005973297171294689,
0.2363974153995514,
-0.47641482949256897,
0.07022855430841446,
0.041881464421749115,
-0.007306181825697422,
0.3011593818664551,
0.3711305856704712,
-0.05341664329171181,
-0.19651110470294952,
0.25416406989097595,
-0.4512369632720947,
0.370186984539032,
-0.07186304777860641,
0.2864057719707489,
-0.2534544765949249,
0.15393561124801636,
-0.26670724153518677,
0.14493896067142487,
-0.05388132855296135,
-0.133841872215271,
-0.059171803295612335,
0.09799908101558685,
0.22506967186927795,
0.2401256412267685,
-0.11998496949672699,
0.567784309387207,
0.13529248535633087,
0.13874751329421997,
-0.23350243270397186,
0.2586086690425873,
0.021819179877638817,
0.06880754232406616,
0.1329156458377838,
0.010632202960550785,
0.2142108976840973,
-0.2170555591583252,
-0.06412237137556076,
0.31863370537757874,
0.2173621505498886,
0.0417964942753315,
0.05746195837855339,
0.1577182114124298,
0.2542846202850342,
-0.3891931176185608,
-0.09974030405282974,
0.04728783294558525,
-0.008624560199677944,
-0.025269288569688797,
-0.04055401682853699,
0.24257270991802216,
0.06485964357852936,
0.42057016491889954,
0.14002417027950287,
0.08941996097564697,
0.3215749263763428,
0.029858889058232307,
-0.016004487872123718,
0.17947407066822052,
0.1751987785100937,
0.21789276599884033,
0.023062201216816902,
-0.08385019749403,
-0.36023151874542236,
0.14936406910419464,
-0.16420423984527588,
0.0495588555932045,
-0.11296334862709045,
0.12475540488958359,
-0.1547979861497879,
-0.022080756723880768,
0.07000399380922318,
0.3708668053150177,
0.22012747824192047,
0.049047380685806274,
-0.20052070915699005,
0.18740995228290558,
0.06052730232477188,
-0.20581471920013428,
-0.04450121521949768,
0.10965382307767868,
0.36466607451438904,
0.2655832767486572,
0.4266878664493561,
-0.048762984573841095,
-0.09510872513055801,
-0.3787635266780853,
-0.03589726239442825,
0.26145070791244507,
-0.270788311958313,
0.40087753534317017,
-0.24347151815891266,
-0.3584270775318146,
0.09380386024713516,
-0.3161959946155548,
-0.3449470102787018,
-0.26493775844573975,
-0.11771046370267868,
0.4375135898590088,
0.11630920320749283,
0.062329407781362534,
-0.211109921336174,
0.37165388464927673,
0.025430234149098396,
-0.5300377011299133,
-0.023688752204179764,
-0.2573980987071991,
-0.3198368549346924,
0.015923867002129555,
0.3333905339241028,
-0.22138702869415283,
0.06986222416162491,
-0.2547049820423126,
0.029796119779348373,
-0.1255466341972351,
-0.20304329693317413,
0.1615646481513977,
0.15230809152126312,
0.30116331577301025,
-0.06698129326105118,
0.2267765998840332,
-0.24250528216362,
0.09405945241451263,
0.2751005291938782,
0.06796137243509293,
0.10233984142541885,
0.048933759331703186,
-0.040087245404720306,
0.044108159840106964,
0.024912236258387566,
-0.2555714249610901,
-0.4800467789173126,
-0.35828036069869995,
0.17842262983322144,
0.019613193348050117,
0.3458855152130127,
0.29600873589515686,
0.03824861720204353,
-0.08666202425956726,
0.0641801655292511,
-0.07696384936571121,
-0.15337495505809784,
-0.38655519485473633,
0.17241273820400238,
-0.2786805331707001,
-0.24313409626483917,
0.2509685456752777,
0.07473891228437424,
0.3847610056400299,
0.07639394700527191,
-0.6094391942024231,
-0.156410813331604,
-0.1264607459306717,
0.10489964485168457,
0.025826789438724518,
-0.28259122371673584,
0.33344271779060364,
-0.08820820599794388,
-0.005147483665496111,
0.21606498956680298,
-0.44045209884643555,
0.0323338620364666,
0.3356824815273285,
0.39132389426231384,
0.27374741435050964,
0.37074682116508484,
-0.17094478011131287,
0.4239262044429779,
0.20261023938655853,
0.04854324460029602,
0.3296670615673065,
-0.1572236716747284,
0.3341197967529297,
-0.08921778947114944,
-0.2969248592853546,
-0.21728362143039703,
-0.21034687757492065,
-0.3245602250099182,
0.16177238523960114,
0.26366451382637024,
-0.034415047615766525,
-0.49671050906181335,
0.11736097186803818,
-0.08014099299907684,
-0.3276882767677307,
0.0556476004421711,
0.16797593235969543,
0.1110880896449089,
0.003878933610394597,
-0.037826426327228546,
0.22122901678085327,
-0.21193766593933105,
-0.3172354996204376,
0.36299997568130493,
0.0803811326622963,
0.07255010306835175,
-0.13046713173389435,
-0.01612098515033722,
-0.8267483115196228,
0.30459079146385193,
0.004353181924670935,
0.39902374148368835,
-0.3158353865146637,
0.06143071874976158,
0.07918961346149445,
-0.10680586844682693,
0.11924527585506439,
-0.30705365538597107,
-0.08182685822248459,
0.30878204107284546,
0.06008626148104668,
-0.2109728306531906,
-0.2092314064502716,
0.12699541449546814,
0.18553735315799713,
0.4327675402164459,
0.3602840006351471,
0.013694455847144127,
0.005340243224054575,
0.07416079938411713,
0.14800620079040527,
-0.0896286740899086,
0.023082494735717773,
-0.32150232791900635,
-0.4804902672767639,
-0.23763854801654816,
-0.07142718881368637,
-0.06272474676370621,
0.29828184843063354,
0.13049964606761932,
0.0849197581410408,
0.29117944836616516,
-0.2723354995250702,
0.20810149610042572,
0.09229569137096405,
0.018867822363972664,
0.10576441884040833,
0.10276436060667038,
0.09913905709981918,
0.06249143183231354,
0.33541107177734375,
0.9395025372505188,
0.1009225994348526,
-0.12041597813367844,
0.354493111371994,
0.3962079882621765,
0.07355194538831711,
0.2287343144416809,
-0.05183367058634758,
0.10316745191812515,
-0.0455479696393013,
0.13107232749462128,
0.0472785159945488,
0.3104490041732788,
-0.24123114347457886,
-0.012339932844042778,
-0.844632625579834,
-0.16335313022136688,
0.39403975009918213,
-0.11573980748653412,
-0.09637864679098129,
-0.08853168040513992,
0.1918690800666809,
-0.12238317728042603,
0.06642714142799377,
-0.07983318716287613,
0.9389854669570923,
-0.21574068069458008,
-0.11394688487052917,
0.09641943126916885,
-0.14705564081668854,
0.4845156669616699,
-0.5781689286231995,
0.4780518710613251,
-0.3271457254886627,
-0.15968982875347137,
-0.21965089440345764,
-0.26893314719200134,
-0.11416082084178925,
-0.1754053831100464,
-0.002867703326046467,
0.42945075035095215,
-0.1375022828578949,
0.1797104775905609,
0.4103509485721588,
0.03125004097819328,
0.16680555045604706,
0.03138013184070587,
-0.1563228964805603,
0.07422630488872528,
-0.06847322732210159,
0.3795154094696045,
-0.0753369852900505,
-0.0879741683602333,
-0.2208278775215149,
-0.023258205503225327,
-0.3305439352989197,
0.2558436393737793,
-0.7046293616294861,
0.09517093747854233,
0.0003458211722318083,
-0.20279864966869354,
0.13872918486595154,
0.14910142123699188,
0.20197716355323792,
0.1502193957567215,
-0.31032493710517883,
0.2650386393070221,
-0.04730626195669174,
-0.15062831342220306,
-0.009702878072857857,
-0.015875350683927536,
0.010616580955684185,
-0.057882990688085556,
-0.08001910150051117,
0.44516512751579285,
-0.013192087411880493,
-0.4016880691051483,
0.04977063834667206,
0.04142642393708229,
0.015600833110511303,
-0.06720024347305298,
0.13101932406425476,
-0.09139594435691833,
0.03347152844071388,
0.06900813430547714,
0.02713089995086193,
0.12051713466644287,
0.15398675203323364,
-0.01963183842599392,
0.2282925695180893,
-0.25933679938316345,
-0.01571519859135151,
0.36360806226730347,
-0.013595624826848507,
-0.031950268894433975,
0.1860428750514984,
0.4898219704627991,
-0.0020252063404768705,
-0.07053110748529434,
-0.13957974314689636,
0.21268780529499054,
-0.39726144075393677,
0.11640270054340363,
-0.04323391243815422,
0.14965397119522095,
0.03337962180376053,
0.34728193283081055,
0.31434062123298645,
0.03172629699110985,
0.38761621713638306,
-0.5564643144607544,
-0.2944403886795044,
0.054447855800390244,
-0.16902481019496918,
0.1841663420200348,
0.10408931970596313,
-0.16329297423362732,
-0.22763943672180176,
-0.0018322550458833575,
-0.1922599971294403,
0.07231129705905914,
-0.3587894141674042,
-0.1759033501148224,
0.17263709008693695,
-0.1161855086684227,
0.5185418725013733,
-0.13682754337787628,
-0.04794501140713692,
-0.018405117094516754,
-0.35812705755233765,
-0.0564916729927063,
-0.014561377465724945,
0.20178914070129395,
0.17124177515506744,
-0.44309189915657043,
-0.17554333806037903,
-0.07752785086631775,
0.04856952279806137,
0.05439490079879761,
0.18474358320236206,
0.19843977689743042,
-0.18030710518360138,
-0.3293842077255249,
-0.4175051152706146,
0.008154205977916718,
-0.3177676200866699,
0.3675781190395355,
0.23192931711673737,
0.46066662669181824,
0.21742120385169983,
0.24356642365455627,
-0.016910623759031296,
-0.1336590200662613,
-0.11765888333320618,
0.21299616992473602,
-0.053509533405303955,
-0.2645334005355835,
0.19652345776557922,
-0.4327823221683502,
0.06015828251838684,
-0.24055534601211548,
0.23243464529514313,
0.07866328954696655,
-0.21387459337711334,
0.14287662506103516,
0.18814386427402496,
0.05251702666282654,
-0.07040441036224365,
-0.032833971083164215,
0.14138871431350708,
-0.027203666046261787,
0.03104851022362709,
0.2250303030014038,
0.38687339425086975,
-0.1784224659204483,
0.07996776700019836,
0.24590614438056946,
0.5618062615394592,
0.12238864600658417,
0.14211209118366241,
-0.1236974224448204,
-0.12370476871728897,
0.12570372223854065,
0.40945377945899963,
0.008992481045424938,
0.03276761993765831,
0.02111886441707611,
-0.3650709092617035,
-0.03492552787065506,
-0.005955300759524107,
0.018314620479941368,
0.03327499330043793,
-0.5767632722854614,
0.10643776506185532,
0.14117658138275146,
-0.1795792579650879,
-0.17170344293117523,
-0.08942295610904694,
0.452485591173172,
-0.21002990007400513,
-0.017402950674295425,
-0.39089757204055786,
0.18800826370716095,
-0.024239441379904747,
-0.0397147499024868,
0.11829135566949844,
-0.4415910243988037,
-0.13059832155704498,
0.24272708594799042,
0.006991673726588488,
-0.15939538180828094,
-0.00466818455606699,
0.08597669750452042,
-0.23882947862148285,
-0.30007466673851013,
-0.07559331506490707,
0.3069651126861572,
-0.04264720156788826,
-0.09364740550518036,
0.4497722089290619,
0.02733670361340046,
-0.17066118121147156,
0.15570327639579773,
0.015389913693070412,
0.6272586584091187,
0.2654247283935547,
0.18237505853176117,
0.10876841098070145,
-0.12664180994033813,
0.007130697835236788,
0.16971538960933685,
0.08836491405963898,
0.19004100561141968,
-0.3322179317474365,
0.16854055225849152,
0.07864824682474136,
0.025846458971500397,
0.2831476032733917,
-0.0928131490945816,
0.3121078312397003,
0.02945791371166706,
0.017980052158236504,
-0.14604276418685913,
0.11181586980819702,
-0.15920931100845337,
0.042284395545721054,
-0.3145131468772888,
0.17835848033428192,
0.38625073432922363,
-0.14028507471084595,
0.26938268542289734,
0.15430261194705963,
0.008642399683594704,
-0.17800673842430115,
0.4599916934967041,
0.3405536711215973,
0.2323296070098877,
-0.34872955083847046,
-0.1899103820323944,
-0.2473534643650055,
-0.00551925553008914,
-0.11154492199420929,
0.20731022953987122,
-0.04169277846813202,
0.150274395942688,
-0.20463714003562927,
0.3032630980014801,
-0.1217939704656601,
0.30587926506996155,
0.08487756550312042,
0.0063986885361373425,
-0.26516830921173096,
0.06634309142827988,
0.009093724191188812,
0.04983091726899147,
-0.15377438068389893,
-0.26247724890708923,
0.08155819773674011,
-0.37340080738067627,
-0.07949912548065186,
-0.11991959810256958,
0.15114249289035797,
0.04269949719309807,
-0.2643921971321106,
0.29913845658302307,
0.24583984911441803,
0.7336870431900024,
0.26307547092437744,
-0.009374585933983326,
-0.13824202120304108,
-0.38092273473739624,
-0.022565918043255806,
0.009367893449962139,
0.3737497329711914,
0.2838232219219208,
0.08536657691001892,
-0.24049782752990723,
-0.38511157035827637,
0.4988898038864136,
0.0652472972869873,
0.2366219013929367,
0.16505898535251617,
-0.08640801906585693,
-0.018204854801297188,
0.08529648929834366,
-0.07599421590566635,
-0.10944054275751114,
0.19041383266448975,
0.14073118567466736,
-0.13634155690670013,
-0.3142246603965759,
0.5675707459449768,
-0.3454419672489166,
0.11282511800527573,
-0.1528625339269638,
0.26060357689857483,
0.307880699634552,
0.020560897886753082,
-0.2705267369747162,
0.12397529929876328,
0.21452303230762482,
-0.13280682265758514,
-0.4126017689704895,
0.33553579449653625,
-0.2914162874221802,
-0.0648074522614479,
-0.06114606186747551,
0.14645446836948395,
0.0038937036879360676,
-0.30086758732795715,
-0.2765825390815735,
-0.026671871542930603
] |
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.16917195916175842,
0.016835274174809456,
0.06266527622938156,
0.3633994162082672,
0.29187607765197754,
-0.17967860400676727,
0.21995796263217926,
-0.043444596230983734,
-0.18381339311599731,
0.06295803934335709,
-0.3239004909992218,
0.13601750135421753,
0.07222897559404373,
0.15775887668132782,
-0.05791359767317772,
-0.09452789276838303,
-0.19010961055755615,
-0.20005568861961365,
-0.06888402998447418,
0.25353628396987915,
-0.13285483419895172,
0.4753991961479187,
-0.20731373131275177,
0.20469141006469727,
-0.4112508296966553,
0.012067264877259731,
0.2174300253391266,
0.4217192828655243,
-0.22421741485595703,
-0.6152903437614441,
0.4672035574913025,
0.09182169288396835,
0.2583209276199341,
0.6301941871643066,
-0.00012121877807658166,
0.04387781769037247,
0.3747948408126831,
-0.08091144263744354,
-0.36821940541267395,
-0.5027561187744141,
-0.5078128576278687,
-0.07905193418264389,
0.26483848690986633,
0.22928565740585327,
-0.3196893036365509,
0.4285559356212616,
0.07915347069501877,
-0.32506027817726135,
0.3382037580013275,
0.6332941055297852,
0.08208362758159637,
-0.07683637738227844,
0.09451205283403397,
-0.16235895454883575,
0.3016182482242584,
-0.14889773726463318,
-0.07060977816581726,
0.4869541525840759,
0.21551308035850525,
-0.03863689303398132,
0.05493714287877083,
-0.021642809733748436,
-0.027104409411549568,
-0.011704470962285995,
0.17982688546180725,
-0.07429172843694687,
-0.11018536239862442,
-0.4340967833995819,
0.42413029074668884,
0.35226497054100037,
0.640214204788208,
-0.17337407171726227,
-0.22726866602897644,
0.14541415870189667,
-0.08126428723335266,
-0.4302360415458679,
0.30031856894493103,
0.32170921564102173,
-0.12212388962507248,
0.1870262324810028,
-0.4078293740749359,
-0.25976458191871643,
-0.36862894892692566,
0.004372226074337959,
-0.4164084792137146,
0.12703561782836914,
-0.26639899611473083,
0.1315307468175888,
0.29100292921066284,
0.015295268967747688,
0.3388892114162445,
0.22372426092624664,
-0.4470457136631012,
-0.007506231311708689,
-0.6929903030395508,
0.1829676628112793,
-0.1482105255126953,
-0.03634641692042351,
0.09349396824836731,
0.369731605052948,
0.31743744015693665,
0.03689683601260185,
-0.28630542755126953,
0.4065681993961334,
0.08699101954698563,
0.3421805500984192,
0.04323955997824669,
0.18729746341705322,
0.3242340683937073,
0.1837180256843567,
-0.01322243269532919,
-0.09307888895273209,
-0.19508300721645355,
-0.2066064178943634,
-0.1330893486738205,
0.18090499937534332,
0.09734142571687698,
-0.2702088952064514,
-0.3912968337535858,
0.14655812084674835,
-0.413940966129303,
0.00919320434331894,
0.12256445735692978,
0.45413121581077576,
-0.2755919396877289,
-0.024244248867034912,
-0.03852510824799538,
0.22082187235355377,
-0.09657097607851028,
-0.16265548765659332,
-0.0660131499171257,
0.2261454164981842,
-0.23264585435390472,
0.13177084922790527,
0.33809974789619446,
-0.1813092827796936,
0.14130745828151703,
-0.16491778194904327,
-0.06684523820877075,
-0.21560120582580566,
-0.00865042395889759,
-0.2676548659801483,
-0.10671935975551605,
0.4307490885257721,
0.07769376039505005,
0.056267451494932175,
0.12437886744737625,
-0.37195682525634766,
-0.0352645181119442,
0.01337928231805563,
-0.571435809135437,
-0.3518614172935486,
0.06211579591035843,
0.07057788223028183,
-0.12042874842882156,
0.02190360799431801,
-0.3443552553653717,
0.0012685676338151097,
-0.004354225471615791,
-0.18004246056079865,
-0.17487195134162903,
-0.2704443037509918,
-0.33346447348594666,
-0.3149200975894928,
0.3458772897720337,
0.451456218957901,
-0.556603193283081,
-0.02707524225115776,
0.09684131294488907,
0.07431008666753769,
0.16746066510677338,
0.33148089051246643,
-0.19075490534305573,
-0.0951521247625351,
-0.2181231677532196,
-0.10006667673587799,
0.09560289233922958,
-0.3112885653972626,
-0.298593670129776,
-0.0033587298821657896,
-0.019406791776418686,
-0.04835794121026993,
-0.23692339658737183,
-0.10341373085975647,
0.013774673454463482,
0.06160391494631767,
0.6465595960617065,
0.21579036116600037,
-0.12831594049930573,
-0.17619366943836212,
-0.15029388666152954,
-0.2762148678302765,
-0.2542473375797272,
0.08695583790540695,
0.12146999686956406,
0.005973297171294689,
0.2363974153995514,
-0.47641482949256897,
0.07022855430841446,
0.041881464421749115,
-0.007306181825697422,
0.3011593818664551,
0.3711305856704712,
-0.05341664329171181,
-0.19651110470294952,
0.25416406989097595,
-0.4512369632720947,
0.370186984539032,
-0.07186304777860641,
0.2864057719707489,
-0.2534544765949249,
0.15393561124801636,
-0.26670724153518677,
0.14493896067142487,
-0.05388132855296135,
-0.133841872215271,
-0.059171803295612335,
0.09799908101558685,
0.22506967186927795,
0.2401256412267685,
-0.11998496949672699,
0.567784309387207,
0.13529248535633087,
0.13874751329421997,
-0.23350243270397186,
0.2586086690425873,
0.021819179877638817,
0.06880754232406616,
0.1329156458377838,
0.010632202960550785,
0.2142108976840973,
-0.2170555591583252,
-0.06412237137556076,
0.31863370537757874,
0.2173621505498886,
0.0417964942753315,
0.05746195837855339,
0.1577182114124298,
0.2542846202850342,
-0.3891931176185608,
-0.09974030405282974,
0.04728783294558525,
-0.008624560199677944,
-0.025269288569688797,
-0.04055401682853699,
0.24257270991802216,
0.06485964357852936,
0.42057016491889954,
0.14002417027950287,
0.08941996097564697,
0.3215749263763428,
0.029858889058232307,
-0.016004487872123718,
0.17947407066822052,
0.1751987785100937,
0.21789276599884033,
0.023062201216816902,
-0.08385019749403,
-0.36023151874542236,
0.14936406910419464,
-0.16420423984527588,
0.0495588555932045,
-0.11296334862709045,
0.12475540488958359,
-0.1547979861497879,
-0.022080756723880768,
0.07000399380922318,
0.3708668053150177,
0.22012747824192047,
0.049047380685806274,
-0.20052070915699005,
0.18740995228290558,
0.06052730232477188,
-0.20581471920013428,
-0.04450121521949768,
0.10965382307767868,
0.36466607451438904,
0.2655832767486572,
0.4266878664493561,
-0.048762984573841095,
-0.09510872513055801,
-0.3787635266780853,
-0.03589726239442825,
0.26145070791244507,
-0.270788311958313,
0.40087753534317017,
-0.24347151815891266,
-0.3584270775318146,
0.09380386024713516,
-0.3161959946155548,
-0.3449470102787018,
-0.26493775844573975,
-0.11771046370267868,
0.4375135898590088,
0.11630920320749283,
0.062329407781362534,
-0.211109921336174,
0.37165388464927673,
0.025430234149098396,
-0.5300377011299133,
-0.023688752204179764,
-0.2573980987071991,
-0.3198368549346924,
0.015923867002129555,
0.3333905339241028,
-0.22138702869415283,
0.06986222416162491,
-0.2547049820423126,
0.029796119779348373,
-0.1255466341972351,
-0.20304329693317413,
0.1615646481513977,
0.15230809152126312,
0.30116331577301025,
-0.06698129326105118,
0.2267765998840332,
-0.24250528216362,
0.09405945241451263,
0.2751005291938782,
0.06796137243509293,
0.10233984142541885,
0.048933759331703186,
-0.040087245404720306,
0.044108159840106964,
0.024912236258387566,
-0.2555714249610901,
-0.4800467789173126,
-0.35828036069869995,
0.17842262983322144,
0.019613193348050117,
0.3458855152130127,
0.29600873589515686,
0.03824861720204353,
-0.08666202425956726,
0.0641801655292511,
-0.07696384936571121,
-0.15337495505809784,
-0.38655519485473633,
0.17241273820400238,
-0.2786805331707001,
-0.24313409626483917,
0.2509685456752777,
0.07473891228437424,
0.3847610056400299,
0.07639394700527191,
-0.6094391942024231,
-0.156410813331604,
-0.1264607459306717,
0.10489964485168457,
0.025826789438724518,
-0.28259122371673584,
0.33344271779060364,
-0.08820820599794388,
-0.005147483665496111,
0.21606498956680298,
-0.44045209884643555,
0.0323338620364666,
0.3356824815273285,
0.39132389426231384,
0.27374741435050964,
0.37074682116508484,
-0.17094478011131287,
0.4239262044429779,
0.20261023938655853,
0.04854324460029602,
0.3296670615673065,
-0.1572236716747284,
0.3341197967529297,
-0.08921778947114944,
-0.2969248592853546,
-0.21728362143039703,
-0.21034687757492065,
-0.3245602250099182,
0.16177238523960114,
0.26366451382637024,
-0.034415047615766525,
-0.49671050906181335,
0.11736097186803818,
-0.08014099299907684,
-0.3276882767677307,
0.0556476004421711,
0.16797593235969543,
0.1110880896449089,
0.003878933610394597,
-0.037826426327228546,
0.22122901678085327,
-0.21193766593933105,
-0.3172354996204376,
0.36299997568130493,
0.0803811326622963,
0.07255010306835175,
-0.13046713173389435,
-0.01612098515033722,
-0.8267483115196228,
0.30459079146385193,
0.004353181924670935,
0.39902374148368835,
-0.3158353865146637,
0.06143071874976158,
0.07918961346149445,
-0.10680586844682693,
0.11924527585506439,
-0.30705365538597107,
-0.08182685822248459,
0.30878204107284546,
0.06008626148104668,
-0.2109728306531906,
-0.2092314064502716,
0.12699541449546814,
0.18553735315799713,
0.4327675402164459,
0.3602840006351471,
0.013694455847144127,
0.005340243224054575,
0.07416079938411713,
0.14800620079040527,
-0.0896286740899086,
0.023082494735717773,
-0.32150232791900635,
-0.4804902672767639,
-0.23763854801654816,
-0.07142718881368637,
-0.06272474676370621,
0.29828184843063354,
0.13049964606761932,
0.0849197581410408,
0.29117944836616516,
-0.2723354995250702,
0.20810149610042572,
0.09229569137096405,
0.018867822363972664,
0.10576441884040833,
0.10276436060667038,
0.09913905709981918,
0.06249143183231354,
0.33541107177734375,
0.9395025372505188,
0.1009225994348526,
-0.12041597813367844,
0.354493111371994,
0.3962079882621765,
0.07355194538831711,
0.2287343144416809,
-0.05183367058634758,
0.10316745191812515,
-0.0455479696393013,
0.13107232749462128,
0.0472785159945488,
0.3104490041732788,
-0.24123114347457886,
-0.012339932844042778,
-0.844632625579834,
-0.16335313022136688,
0.39403975009918213,
-0.11573980748653412,
-0.09637864679098129,
-0.08853168040513992,
0.1918690800666809,
-0.12238317728042603,
0.06642714142799377,
-0.07983318716287613,
0.9389854669570923,
-0.21574068069458008,
-0.11394688487052917,
0.09641943126916885,
-0.14705564081668854,
0.4845156669616699,
-0.5781689286231995,
0.4780518710613251,
-0.3271457254886627,
-0.15968982875347137,
-0.21965089440345764,
-0.26893314719200134,
-0.11416082084178925,
-0.1754053831100464,
-0.002867703326046467,
0.42945075035095215,
-0.1375022828578949,
0.1797104775905609,
0.4103509485721588,
0.03125004097819328,
0.16680555045604706,
0.03138013184070587,
-0.1563228964805603,
0.07422630488872528,
-0.06847322732210159,
0.3795154094696045,
-0.0753369852900505,
-0.0879741683602333,
-0.2208278775215149,
-0.023258205503225327,
-0.3305439352989197,
0.2558436393737793,
-0.7046293616294861,
0.09517093747854233,
0.0003458211722318083,
-0.20279864966869354,
0.13872918486595154,
0.14910142123699188,
0.20197716355323792,
0.1502193957567215,
-0.31032493710517883,
0.2650386393070221,
-0.04730626195669174,
-0.15062831342220306,
-0.009702878072857857,
-0.015875350683927536,
0.010616580955684185,
-0.057882990688085556,
-0.08001910150051117,
0.44516512751579285,
-0.013192087411880493,
-0.4016880691051483,
0.04977063834667206,
0.04142642393708229,
0.015600833110511303,
-0.06720024347305298,
0.13101932406425476,
-0.09139594435691833,
0.03347152844071388,
0.06900813430547714,
0.02713089995086193,
0.12051713466644287,
0.15398675203323364,
-0.01963183842599392,
0.2282925695180893,
-0.25933679938316345,
-0.01571519859135151,
0.36360806226730347,
-0.013595624826848507,
-0.031950268894433975,
0.1860428750514984,
0.4898219704627991,
-0.0020252063404768705,
-0.07053110748529434,
-0.13957974314689636,
0.21268780529499054,
-0.39726144075393677,
0.11640270054340363,
-0.04323391243815422,
0.14965397119522095,
0.03337962180376053,
0.34728193283081055,
0.31434062123298645,
0.03172629699110985,
0.38761621713638306,
-0.5564643144607544,
-0.2944403886795044,
0.054447855800390244,
-0.16902481019496918,
0.1841663420200348,
0.10408931970596313,
-0.16329297423362732,
-0.22763943672180176,
-0.0018322550458833575,
-0.1922599971294403,
0.07231129705905914,
-0.3587894141674042,
-0.1759033501148224,
0.17263709008693695,
-0.1161855086684227,
0.5185418725013733,
-0.13682754337787628,
-0.04794501140713692,
-0.018405117094516754,
-0.35812705755233765,
-0.0564916729927063,
-0.014561377465724945,
0.20178914070129395,
0.17124177515506744,
-0.44309189915657043,
-0.17554333806037903,
-0.07752785086631775,
0.04856952279806137,
0.05439490079879761,
0.18474358320236206,
0.19843977689743042,
-0.18030710518360138,
-0.3293842077255249,
-0.4175051152706146,
0.008154205977916718,
-0.3177676200866699,
0.3675781190395355,
0.23192931711673737,
0.46066662669181824,
0.21742120385169983,
0.24356642365455627,
-0.016910623759031296,
-0.1336590200662613,
-0.11765888333320618,
0.21299616992473602,
-0.053509533405303955,
-0.2645334005355835,
0.19652345776557922,
-0.4327823221683502,
0.06015828251838684,
-0.24055534601211548,
0.23243464529514313,
0.07866328954696655,
-0.21387459337711334,
0.14287662506103516,
0.18814386427402496,
0.05251702666282654,
-0.07040441036224365,
-0.032833971083164215,
0.14138871431350708,
-0.027203666046261787,
0.03104851022362709,
0.2250303030014038,
0.38687339425086975,
-0.1784224659204483,
0.07996776700019836,
0.24590614438056946,
0.5618062615394592,
0.12238864600658417,
0.14211209118366241,
-0.1236974224448204,
-0.12370476871728897,
0.12570372223854065,
0.40945377945899963,
0.008992481045424938,
0.03276761993765831,
0.02111886441707611,
-0.3650709092617035,
-0.03492552787065506,
-0.005955300759524107,
0.018314620479941368,
0.03327499330043793,
-0.5767632722854614,
0.10643776506185532,
0.14117658138275146,
-0.1795792579650879,
-0.17170344293117523,
-0.08942295610904694,
0.452485591173172,
-0.21002990007400513,
-0.017402950674295425,
-0.39089757204055786,
0.18800826370716095,
-0.024239441379904747,
-0.0397147499024868,
0.11829135566949844,
-0.4415910243988037,
-0.13059832155704498,
0.24272708594799042,
0.006991673726588488,
-0.15939538180828094,
-0.00466818455606699,
0.08597669750452042,
-0.23882947862148285,
-0.30007466673851013,
-0.07559331506490707,
0.3069651126861572,
-0.04264720156788826,
-0.09364740550518036,
0.4497722089290619,
0.02733670361340046,
-0.17066118121147156,
0.15570327639579773,
0.015389913693070412,
0.6272586584091187,
0.2654247283935547,
0.18237505853176117,
0.10876841098070145,
-0.12664180994033813,
0.007130697835236788,
0.16971538960933685,
0.08836491405963898,
0.19004100561141968,
-0.3322179317474365,
0.16854055225849152,
0.07864824682474136,
0.025846458971500397,
0.2831476032733917,
-0.0928131490945816,
0.3121078312397003,
0.02945791371166706,
0.017980052158236504,
-0.14604276418685913,
0.11181586980819702,
-0.15920931100845337,
0.042284395545721054,
-0.3145131468772888,
0.17835848033428192,
0.38625073432922363,
-0.14028507471084595,
0.26938268542289734,
0.15430261194705963,
0.008642399683594704,
-0.17800673842430115,
0.4599916934967041,
0.3405536711215973,
0.2323296070098877,
-0.34872955083847046,
-0.1899103820323944,
-0.2473534643650055,
-0.00551925553008914,
-0.11154492199420929,
0.20731022953987122,
-0.04169277846813202,
0.150274395942688,
-0.20463714003562927,
0.3032630980014801,
-0.1217939704656601,
0.30587926506996155,
0.08487756550312042,
0.0063986885361373425,
-0.26516830921173096,
0.06634309142827988,
0.009093724191188812,
0.04983091726899147,
-0.15377438068389893,
-0.26247724890708923,
0.08155819773674011,
-0.37340080738067627,
-0.07949912548065186,
-0.11991959810256958,
0.15114249289035797,
0.04269949719309807,
-0.2643921971321106,
0.29913845658302307,
0.24583984911441803,
0.7336870431900024,
0.26307547092437744,
-0.009374585933983326,
-0.13824202120304108,
-0.38092273473739624,
-0.022565918043255806,
0.009367893449962139,
0.3737497329711914,
0.2838232219219208,
0.08536657691001892,
-0.24049782752990723,
-0.38511157035827637,
0.4988898038864136,
0.0652472972869873,
0.2366219013929367,
0.16505898535251617,
-0.08640801906585693,
-0.018204854801297188,
0.08529648929834366,
-0.07599421590566635,
-0.10944054275751114,
0.19041383266448975,
0.14073118567466736,
-0.13634155690670013,
-0.3142246603965759,
0.5675707459449768,
-0.3454419672489166,
0.11282511800527573,
-0.1528625339269638,
0.26060357689857483,
0.307880699634552,
0.020560897886753082,
-0.2705267369747162,
0.12397529929876328,
0.21452303230762482,
-0.13280682265758514,
-0.4126017689704895,
0.33553579449653625,
-0.2914162874221802,
-0.0648074522614479,
-0.06114606186747551,
0.14645446836948395,
0.0038937036879360676,
-0.30086758732795715,
-0.2765825390815735,
-0.026671871542930603
] |
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 <notifications@github.com>
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 <notifications@github.com>
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.16917195916175842,
0.016835274174809456,
0.06266527622938156,
0.3633994162082672,
0.29187607765197754,
-0.17967860400676727,
0.21995796263217926,
-0.043444596230983734,
-0.18381339311599731,
0.06295803934335709,
-0.3239004909992218,
0.13601750135421753,
0.07222897559404373,
0.15775887668132782,
-0.05791359767317772,
-0.09452789276838303,
-0.19010961055755615,
-0.20005568861961365,
-0.06888402998447418,
0.25353628396987915,
-0.13285483419895172,
0.4753991961479187,
-0.20731373131275177,
0.20469141006469727,
-0.4112508296966553,
0.012067264877259731,
0.2174300253391266,
0.4217192828655243,
-0.22421741485595703,
-0.6152903437614441,
0.4672035574913025,
0.09182169288396835,
0.2583209276199341,
0.6301941871643066,
-0.00012121877807658166,
0.04387781769037247,
0.3747948408126831,
-0.08091144263744354,
-0.36821940541267395,
-0.5027561187744141,
-0.5078128576278687,
-0.07905193418264389,
0.26483848690986633,
0.22928565740585327,
-0.3196893036365509,
0.4285559356212616,
0.07915347069501877,
-0.32506027817726135,
0.3382037580013275,
0.6332941055297852,
0.08208362758159637,
-0.07683637738227844,
0.09451205283403397,
-0.16235895454883575,
0.3016182482242584,
-0.14889773726463318,
-0.07060977816581726,
0.4869541525840759,
0.21551308035850525,
-0.03863689303398132,
0.05493714287877083,
-0.021642809733748436,
-0.027104409411549568,
-0.011704470962285995,
0.17982688546180725,
-0.07429172843694687,
-0.11018536239862442,
-0.4340967833995819,
0.42413029074668884,
0.35226497054100037,
0.640214204788208,
-0.17337407171726227,
-0.22726866602897644,
0.14541415870189667,
-0.08126428723335266,
-0.4302360415458679,
0.30031856894493103,
0.32170921564102173,
-0.12212388962507248,
0.1870262324810028,
-0.4078293740749359,
-0.25976458191871643,
-0.36862894892692566,
0.004372226074337959,
-0.4164084792137146,
0.12703561782836914,
-0.26639899611473083,
0.1315307468175888,
0.29100292921066284,
0.015295268967747688,
0.3388892114162445,
0.22372426092624664,
-0.4470457136631012,
-0.007506231311708689,
-0.6929903030395508,
0.1829676628112793,
-0.1482105255126953,
-0.03634641692042351,
0.09349396824836731,
0.369731605052948,
0.31743744015693665,
0.03689683601260185,
-0.28630542755126953,
0.4065681993961334,
0.08699101954698563,
0.3421805500984192,
0.04323955997824669,
0.18729746341705322,
0.3242340683937073,
0.1837180256843567,
-0.01322243269532919,
-0.09307888895273209,
-0.19508300721645355,
-0.2066064178943634,
-0.1330893486738205,
0.18090499937534332,
0.09734142571687698,
-0.2702088952064514,
-0.3912968337535858,
0.14655812084674835,
-0.413940966129303,
0.00919320434331894,
0.12256445735692978,
0.45413121581077576,
-0.2755919396877289,
-0.024244248867034912,
-0.03852510824799538,
0.22082187235355377,
-0.09657097607851028,
-0.16265548765659332,
-0.0660131499171257,
0.2261454164981842,
-0.23264585435390472,
0.13177084922790527,
0.33809974789619446,
-0.1813092827796936,
0.14130745828151703,
-0.16491778194904327,
-0.06684523820877075,
-0.21560120582580566,
-0.00865042395889759,
-0.2676548659801483,
-0.10671935975551605,
0.4307490885257721,
0.07769376039505005,
0.056267451494932175,
0.12437886744737625,
-0.37195682525634766,
-0.0352645181119442,
0.01337928231805563,
-0.571435809135437,
-0.3518614172935486,
0.06211579591035843,
0.07057788223028183,
-0.12042874842882156,
0.02190360799431801,
-0.3443552553653717,
0.0012685676338151097,
-0.004354225471615791,
-0.18004246056079865,
-0.17487195134162903,
-0.2704443037509918,
-0.33346447348594666,
-0.3149200975894928,
0.3458772897720337,
0.451456218957901,
-0.556603193283081,
-0.02707524225115776,
0.09684131294488907,
0.07431008666753769,
0.16746066510677338,
0.33148089051246643,
-0.19075490534305573,
-0.0951521247625351,
-0.2181231677532196,
-0.10006667673587799,
0.09560289233922958,
-0.3112885653972626,
-0.298593670129776,
-0.0033587298821657896,
-0.019406791776418686,
-0.04835794121026993,
-0.23692339658737183,
-0.10341373085975647,
0.013774673454463482,
0.06160391494631767,
0.6465595960617065,
0.21579036116600037,
-0.12831594049930573,
-0.17619366943836212,
-0.15029388666152954,
-0.2762148678302765,
-0.2542473375797272,
0.08695583790540695,
0.12146999686956406,
0.005973297171294689,
0.2363974153995514,
-0.47641482949256897,
0.07022855430841446,
0.041881464421749115,
-0.007306181825697422,
0.3011593818664551,
0.3711305856704712,
-0.05341664329171181,
-0.19651110470294952,
0.25416406989097595,
-0.4512369632720947,
0.370186984539032,
-0.07186304777860641,
0.2864057719707489,
-0.2534544765949249,
0.15393561124801636,
-0.26670724153518677,
0.14493896067142487,
-0.05388132855296135,
-0.133841872215271,
-0.059171803295612335,
0.09799908101558685,
0.22506967186927795,
0.2401256412267685,
-0.11998496949672699,
0.567784309387207,
0.13529248535633087,
0.13874751329421997,
-0.23350243270397186,
0.2586086690425873,
0.021819179877638817,
0.06880754232406616,
0.1329156458377838,
0.010632202960550785,
0.2142108976840973,
-0.2170555591583252,
-0.06412237137556076,
0.31863370537757874,
0.2173621505498886,
0.0417964942753315,
0.05746195837855339,
0.1577182114124298,
0.2542846202850342,
-0.3891931176185608,
-0.09974030405282974,
0.04728783294558525,
-0.008624560199677944,
-0.025269288569688797,
-0.04055401682853699,
0.24257270991802216,
0.06485964357852936,
0.42057016491889954,
0.14002417027950287,
0.08941996097564697,
0.3215749263763428,
0.029858889058232307,
-0.016004487872123718,
0.17947407066822052,
0.1751987785100937,
0.21789276599884033,
0.023062201216816902,
-0.08385019749403,
-0.36023151874542236,
0.14936406910419464,
-0.16420423984527588,
0.0495588555932045,
-0.11296334862709045,
0.12475540488958359,
-0.1547979861497879,
-0.022080756723880768,
0.07000399380922318,
0.3708668053150177,
0.22012747824192047,
0.049047380685806274,
-0.20052070915699005,
0.18740995228290558,
0.06052730232477188,
-0.20581471920013428,
-0.04450121521949768,
0.10965382307767868,
0.36466607451438904,
0.2655832767486572,
0.4266878664493561,
-0.048762984573841095,
-0.09510872513055801,
-0.3787635266780853,
-0.03589726239442825,
0.26145070791244507,
-0.270788311958313,
0.40087753534317017,
-0.24347151815891266,
-0.3584270775318146,
0.09380386024713516,
-0.3161959946155548,
-0.3449470102787018,
-0.26493775844573975,
-0.11771046370267868,
0.4375135898590088,
0.11630920320749283,
0.062329407781362534,
-0.211109921336174,
0.37165388464927673,
0.025430234149098396,
-0.5300377011299133,
-0.023688752204179764,
-0.2573980987071991,
-0.3198368549346924,
0.015923867002129555,
0.3333905339241028,
-0.22138702869415283,
0.06986222416162491,
-0.2547049820423126,
0.029796119779348373,
-0.1255466341972351,
-0.20304329693317413,
0.1615646481513977,
0.15230809152126312,
0.30116331577301025,
-0.06698129326105118,
0.2267765998840332,
-0.24250528216362,
0.09405945241451263,
0.2751005291938782,
0.06796137243509293,
0.10233984142541885,
0.048933759331703186,
-0.040087245404720306,
0.044108159840106964,
0.024912236258387566,
-0.2555714249610901,
-0.4800467789173126,
-0.35828036069869995,
0.17842262983322144,
0.019613193348050117,
0.3458855152130127,
0.29600873589515686,
0.03824861720204353,
-0.08666202425956726,
0.0641801655292511,
-0.07696384936571121,
-0.15337495505809784,
-0.38655519485473633,
0.17241273820400238,
-0.2786805331707001,
-0.24313409626483917,
0.2509685456752777,
0.07473891228437424,
0.3847610056400299,
0.07639394700527191,
-0.6094391942024231,
-0.156410813331604,
-0.1264607459306717,
0.10489964485168457,
0.025826789438724518,
-0.28259122371673584,
0.33344271779060364,
-0.08820820599794388,
-0.005147483665496111,
0.21606498956680298,
-0.44045209884643555,
0.0323338620364666,
0.3356824815273285,
0.39132389426231384,
0.27374741435050964,
0.37074682116508484,
-0.17094478011131287,
0.4239262044429779,
0.20261023938655853,
0.04854324460029602,
0.3296670615673065,
-0.1572236716747284,
0.3341197967529297,
-0.08921778947114944,
-0.2969248592853546,
-0.21728362143039703,
-0.21034687757492065,
-0.3245602250099182,
0.16177238523960114,
0.26366451382637024,
-0.034415047615766525,
-0.49671050906181335,
0.11736097186803818,
-0.08014099299907684,
-0.3276882767677307,
0.0556476004421711,
0.16797593235969543,
0.1110880896449089,
0.003878933610394597,
-0.037826426327228546,
0.22122901678085327,
-0.21193766593933105,
-0.3172354996204376,
0.36299997568130493,
0.0803811326622963,
0.07255010306835175,
-0.13046713173389435,
-0.01612098515033722,
-0.8267483115196228,
0.30459079146385193,
0.004353181924670935,
0.39902374148368835,
-0.3158353865146637,
0.06143071874976158,
0.07918961346149445,
-0.10680586844682693,
0.11924527585506439,
-0.30705365538597107,
-0.08182685822248459,
0.30878204107284546,
0.06008626148104668,
-0.2109728306531906,
-0.2092314064502716,
0.12699541449546814,
0.18553735315799713,
0.4327675402164459,
0.3602840006351471,
0.013694455847144127,
0.005340243224054575,
0.07416079938411713,
0.14800620079040527,
-0.0896286740899086,
0.023082494735717773,
-0.32150232791900635,
-0.4804902672767639,
-0.23763854801654816,
-0.07142718881368637,
-0.06272474676370621,
0.29828184843063354,
0.13049964606761932,
0.0849197581410408,
0.29117944836616516,
-0.2723354995250702,
0.20810149610042572,
0.09229569137096405,
0.018867822363972664,
0.10576441884040833,
0.10276436060667038,
0.09913905709981918,
0.06249143183231354,
0.33541107177734375,
0.9395025372505188,
0.1009225994348526,
-0.12041597813367844,
0.354493111371994,
0.3962079882621765,
0.07355194538831711,
0.2287343144416809,
-0.05183367058634758,
0.10316745191812515,
-0.0455479696393013,
0.13107232749462128,
0.0472785159945488,
0.3104490041732788,
-0.24123114347457886,
-0.012339932844042778,
-0.844632625579834,
-0.16335313022136688,
0.39403975009918213,
-0.11573980748653412,
-0.09637864679098129,
-0.08853168040513992,
0.1918690800666809,
-0.12238317728042603,
0.06642714142799377,
-0.07983318716287613,
0.9389854669570923,
-0.21574068069458008,
-0.11394688487052917,
0.09641943126916885,
-0.14705564081668854,
0.4845156669616699,
-0.5781689286231995,
0.4780518710613251,
-0.3271457254886627,
-0.15968982875347137,
-0.21965089440345764,
-0.26893314719200134,
-0.11416082084178925,
-0.1754053831100464,
-0.002867703326046467,
0.42945075035095215,
-0.1375022828578949,
0.1797104775905609,
0.4103509485721588,
0.03125004097819328,
0.16680555045604706,
0.03138013184070587,
-0.1563228964805603,
0.07422630488872528,
-0.06847322732210159,
0.3795154094696045,
-0.0753369852900505,
-0.0879741683602333,
-0.2208278775215149,
-0.023258205503225327,
-0.3305439352989197,
0.2558436393737793,
-0.7046293616294861,
0.09517093747854233,
0.0003458211722318083,
-0.20279864966869354,
0.13872918486595154,
0.14910142123699188,
0.20197716355323792,
0.1502193957567215,
-0.31032493710517883,
0.2650386393070221,
-0.04730626195669174,
-0.15062831342220306,
-0.009702878072857857,
-0.015875350683927536,
0.010616580955684185,
-0.057882990688085556,
-0.08001910150051117,
0.44516512751579285,
-0.013192087411880493,
-0.4016880691051483,
0.04977063834667206,
0.04142642393708229,
0.015600833110511303,
-0.06720024347305298,
0.13101932406425476,
-0.09139594435691833,
0.03347152844071388,
0.06900813430547714,
0.02713089995086193,
0.12051713466644287,
0.15398675203323364,
-0.01963183842599392,
0.2282925695180893,
-0.25933679938316345,
-0.01571519859135151,
0.36360806226730347,
-0.013595624826848507,
-0.031950268894433975,
0.1860428750514984,
0.4898219704627991,
-0.0020252063404768705,
-0.07053110748529434,
-0.13957974314689636,
0.21268780529499054,
-0.39726144075393677,
0.11640270054340363,
-0.04323391243815422,
0.14965397119522095,
0.03337962180376053,
0.34728193283081055,
0.31434062123298645,
0.03172629699110985,
0.38761621713638306,
-0.5564643144607544,
-0.2944403886795044,
0.054447855800390244,
-0.16902481019496918,
0.1841663420200348,
0.10408931970596313,
-0.16329297423362732,
-0.22763943672180176,
-0.0018322550458833575,
-0.1922599971294403,
0.07231129705905914,
-0.3587894141674042,
-0.1759033501148224,
0.17263709008693695,
-0.1161855086684227,
0.5185418725013733,
-0.13682754337787628,
-0.04794501140713692,
-0.018405117094516754,
-0.35812705755233765,
-0.0564916729927063,
-0.014561377465724945,
0.20178914070129395,
0.17124177515506744,
-0.44309189915657043,
-0.17554333806037903,
-0.07752785086631775,
0.04856952279806137,
0.05439490079879761,
0.18474358320236206,
0.19843977689743042,
-0.18030710518360138,
-0.3293842077255249,
-0.4175051152706146,
0.008154205977916718,
-0.3177676200866699,
0.3675781190395355,
0.23192931711673737,
0.46066662669181824,
0.21742120385169983,
0.24356642365455627,
-0.016910623759031296,
-0.1336590200662613,
-0.11765888333320618,
0.21299616992473602,
-0.053509533405303955,
-0.2645334005355835,
0.19652345776557922,
-0.4327823221683502,
0.06015828251838684,
-0.24055534601211548,
0.23243464529514313,
0.07866328954696655,
-0.21387459337711334,
0.14287662506103516,
0.18814386427402496,
0.05251702666282654,
-0.07040441036224365,
-0.032833971083164215,
0.14138871431350708,
-0.027203666046261787,
0.03104851022362709,
0.2250303030014038,
0.38687339425086975,
-0.1784224659204483,
0.07996776700019836,
0.24590614438056946,
0.5618062615394592,
0.12238864600658417,
0.14211209118366241,
-0.1236974224448204,
-0.12370476871728897,
0.12570372223854065,
0.40945377945899963,
0.008992481045424938,
0.03276761993765831,
0.02111886441707611,
-0.3650709092617035,
-0.03492552787065506,
-0.005955300759524107,
0.018314620479941368,
0.03327499330043793,
-0.5767632722854614,
0.10643776506185532,
0.14117658138275146,
-0.1795792579650879,
-0.17170344293117523,
-0.08942295610904694,
0.452485591173172,
-0.21002990007400513,
-0.017402950674295425,
-0.39089757204055786,
0.18800826370716095,
-0.024239441379904747,
-0.0397147499024868,
0.11829135566949844,
-0.4415910243988037,
-0.13059832155704498,
0.24272708594799042,
0.006991673726588488,
-0.15939538180828094,
-0.00466818455606699,
0.08597669750452042,
-0.23882947862148285,
-0.30007466673851013,
-0.07559331506490707,
0.3069651126861572,
-0.04264720156788826,
-0.09364740550518036,
0.4497722089290619,
0.02733670361340046,
-0.17066118121147156,
0.15570327639579773,
0.015389913693070412,
0.6272586584091187,
0.2654247283935547,
0.18237505853176117,
0.10876841098070145,
-0.12664180994033813,
0.007130697835236788,
0.16971538960933685,
0.08836491405963898,
0.19004100561141968,
-0.3322179317474365,
0.16854055225849152,
0.07864824682474136,
0.025846458971500397,
0.2831476032733917,
-0.0928131490945816,
0.3121078312397003,
0.02945791371166706,
0.017980052158236504,
-0.14604276418685913,
0.11181586980819702,
-0.15920931100845337,
0.042284395545721054,
-0.3145131468772888,
0.17835848033428192,
0.38625073432922363,
-0.14028507471084595,
0.26938268542289734,
0.15430261194705963,
0.008642399683594704,
-0.17800673842430115,
0.4599916934967041,
0.3405536711215973,
0.2323296070098877,
-0.34872955083847046,
-0.1899103820323944,
-0.2473534643650055,
-0.00551925553008914,
-0.11154492199420929,
0.20731022953987122,
-0.04169277846813202,
0.150274395942688,
-0.20463714003562927,
0.3032630980014801,
-0.1217939704656601,
0.30587926506996155,
0.08487756550312042,
0.0063986885361373425,
-0.26516830921173096,
0.06634309142827988,
0.009093724191188812,
0.04983091726899147,
-0.15377438068389893,
-0.26247724890708923,
0.08155819773674011,
-0.37340080738067627,
-0.07949912548065186,
-0.11991959810256958,
0.15114249289035797,
0.04269949719309807,
-0.2643921971321106,
0.29913845658302307,
0.24583984911441803,
0.7336870431900024,
0.26307547092437744,
-0.009374585933983326,
-0.13824202120304108,
-0.38092273473739624,
-0.022565918043255806,
0.009367893449962139,
0.3737497329711914,
0.2838232219219208,
0.08536657691001892,
-0.24049782752990723,
-0.38511157035827637,
0.4988898038864136,
0.0652472972869873,
0.2366219013929367,
0.16505898535251617,
-0.08640801906585693,
-0.018204854801297188,
0.08529648929834366,
-0.07599421590566635,
-0.10944054275751114,
0.19041383266448975,
0.14073118567466736,
-0.13634155690670013,
-0.3142246603965759,
0.5675707459449768,
-0.3454419672489166,
0.11282511800527573,
-0.1528625339269638,
0.26060357689857483,
0.307880699634552,
0.020560897886753082,
-0.2705267369747162,
0.12397529929876328,
0.21452303230762482,
-0.13280682265758514,
-0.4126017689704895,
0.33553579449653625,
-0.2914162874221802,
-0.0648074522614479,
-0.06114606186747551,
0.14645446836948395,
0.0038937036879360676,
-0.30086758732795715,
-0.2765825390815735,
-0.026671871542930603
] |
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.16917195916175842,
0.016835274174809456,
0.06266527622938156,
0.3633994162082672,
0.29187607765197754,
-0.17967860400676727,
0.21995796263217926,
-0.043444596230983734,
-0.18381339311599731,
0.06295803934335709,
-0.3239004909992218,
0.13601750135421753,
0.07222897559404373,
0.15775887668132782,
-0.05791359767317772,
-0.09452789276838303,
-0.19010961055755615,
-0.20005568861961365,
-0.06888402998447418,
0.25353628396987915,
-0.13285483419895172,
0.4753991961479187,
-0.20731373131275177,
0.20469141006469727,
-0.4112508296966553,
0.012067264877259731,
0.2174300253391266,
0.4217192828655243,
-0.22421741485595703,
-0.6152903437614441,
0.4672035574913025,
0.09182169288396835,
0.2583209276199341,
0.6301941871643066,
-0.00012121877807658166,
0.04387781769037247,
0.3747948408126831,
-0.08091144263744354,
-0.36821940541267395,
-0.5027561187744141,
-0.5078128576278687,
-0.07905193418264389,
0.26483848690986633,
0.22928565740585327,
-0.3196893036365509,
0.4285559356212616,
0.07915347069501877,
-0.32506027817726135,
0.3382037580013275,
0.6332941055297852,
0.08208362758159637,
-0.07683637738227844,
0.09451205283403397,
-0.16235895454883575,
0.3016182482242584,
-0.14889773726463318,
-0.07060977816581726,
0.4869541525840759,
0.21551308035850525,
-0.03863689303398132,
0.05493714287877083,
-0.021642809733748436,
-0.027104409411549568,
-0.011704470962285995,
0.17982688546180725,
-0.07429172843694687,
-0.11018536239862442,
-0.4340967833995819,
0.42413029074668884,
0.35226497054100037,
0.640214204788208,
-0.17337407171726227,
-0.22726866602897644,
0.14541415870189667,
-0.08126428723335266,
-0.4302360415458679,
0.30031856894493103,
0.32170921564102173,
-0.12212388962507248,
0.1870262324810028,
-0.4078293740749359,
-0.25976458191871643,
-0.36862894892692566,
0.004372226074337959,
-0.4164084792137146,
0.12703561782836914,
-0.26639899611473083,
0.1315307468175888,
0.29100292921066284,
0.015295268967747688,
0.3388892114162445,
0.22372426092624664,
-0.4470457136631012,
-0.007506231311708689,
-0.6929903030395508,
0.1829676628112793,
-0.1482105255126953,
-0.03634641692042351,
0.09349396824836731,
0.369731605052948,
0.31743744015693665,
0.03689683601260185,
-0.28630542755126953,
0.4065681993961334,
0.08699101954698563,
0.3421805500984192,
0.04323955997824669,
0.18729746341705322,
0.3242340683937073,
0.1837180256843567,
-0.01322243269532919,
-0.09307888895273209,
-0.19508300721645355,
-0.2066064178943634,
-0.1330893486738205,
0.18090499937534332,
0.09734142571687698,
-0.2702088952064514,
-0.3912968337535858,
0.14655812084674835,
-0.413940966129303,
0.00919320434331894,
0.12256445735692978,
0.45413121581077576,
-0.2755919396877289,
-0.024244248867034912,
-0.03852510824799538,
0.22082187235355377,
-0.09657097607851028,
-0.16265548765659332,
-0.0660131499171257,
0.2261454164981842,
-0.23264585435390472,
0.13177084922790527,
0.33809974789619446,
-0.1813092827796936,
0.14130745828151703,
-0.16491778194904327,
-0.06684523820877075,
-0.21560120582580566,
-0.00865042395889759,
-0.2676548659801483,
-0.10671935975551605,
0.4307490885257721,
0.07769376039505005,
0.056267451494932175,
0.12437886744737625,
-0.37195682525634766,
-0.0352645181119442,
0.01337928231805563,
-0.571435809135437,
-0.3518614172935486,
0.06211579591035843,
0.07057788223028183,
-0.12042874842882156,
0.02190360799431801,
-0.3443552553653717,
0.0012685676338151097,
-0.004354225471615791,
-0.18004246056079865,
-0.17487195134162903,
-0.2704443037509918,
-0.33346447348594666,
-0.3149200975894928,
0.3458772897720337,
0.451456218957901,
-0.556603193283081,
-0.02707524225115776,
0.09684131294488907,
0.07431008666753769,
0.16746066510677338,
0.33148089051246643,
-0.19075490534305573,
-0.0951521247625351,
-0.2181231677532196,
-0.10006667673587799,
0.09560289233922958,
-0.3112885653972626,
-0.298593670129776,
-0.0033587298821657896,
-0.019406791776418686,
-0.04835794121026993,
-0.23692339658737183,
-0.10341373085975647,
0.013774673454463482,
0.06160391494631767,
0.6465595960617065,
0.21579036116600037,
-0.12831594049930573,
-0.17619366943836212,
-0.15029388666152954,
-0.2762148678302765,
-0.2542473375797272,
0.08695583790540695,
0.12146999686956406,
0.005973297171294689,
0.2363974153995514,
-0.47641482949256897,
0.07022855430841446,
0.041881464421749115,
-0.007306181825697422,
0.3011593818664551,
0.3711305856704712,
-0.05341664329171181,
-0.19651110470294952,
0.25416406989097595,
-0.4512369632720947,
0.370186984539032,
-0.07186304777860641,
0.2864057719707489,
-0.2534544765949249,
0.15393561124801636,
-0.26670724153518677,
0.14493896067142487,
-0.05388132855296135,
-0.133841872215271,
-0.059171803295612335,
0.09799908101558685,
0.22506967186927795,
0.2401256412267685,
-0.11998496949672699,
0.567784309387207,
0.13529248535633087,
0.13874751329421997,
-0.23350243270397186,
0.2586086690425873,
0.021819179877638817,
0.06880754232406616,
0.1329156458377838,
0.010632202960550785,
0.2142108976840973,
-0.2170555591583252,
-0.06412237137556076,
0.31863370537757874,
0.2173621505498886,
0.0417964942753315,
0.05746195837855339,
0.1577182114124298,
0.2542846202850342,
-0.3891931176185608,
-0.09974030405282974,
0.04728783294558525,
-0.008624560199677944,
-0.025269288569688797,
-0.04055401682853699,
0.24257270991802216,
0.06485964357852936,
0.42057016491889954,
0.14002417027950287,
0.08941996097564697,
0.3215749263763428,
0.029858889058232307,
-0.016004487872123718,
0.17947407066822052,
0.1751987785100937,
0.21789276599884033,
0.023062201216816902,
-0.08385019749403,
-0.36023151874542236,
0.14936406910419464,
-0.16420423984527588,
0.0495588555932045,
-0.11296334862709045,
0.12475540488958359,
-0.1547979861497879,
-0.022080756723880768,
0.07000399380922318,
0.3708668053150177,
0.22012747824192047,
0.049047380685806274,
-0.20052070915699005,
0.18740995228290558,
0.06052730232477188,
-0.20581471920013428,
-0.04450121521949768,
0.10965382307767868,
0.36466607451438904,
0.2655832767486572,
0.4266878664493561,
-0.048762984573841095,
-0.09510872513055801,
-0.3787635266780853,
-0.03589726239442825,
0.26145070791244507,
-0.270788311958313,
0.40087753534317017,
-0.24347151815891266,
-0.3584270775318146,
0.09380386024713516,
-0.3161959946155548,
-0.3449470102787018,
-0.26493775844573975,
-0.11771046370267868,
0.4375135898590088,
0.11630920320749283,
0.062329407781362534,
-0.211109921336174,
0.37165388464927673,
0.025430234149098396,
-0.5300377011299133,
-0.023688752204179764,
-0.2573980987071991,
-0.3198368549346924,
0.015923867002129555,
0.3333905339241028,
-0.22138702869415283,
0.06986222416162491,
-0.2547049820423126,
0.029796119779348373,
-0.1255466341972351,
-0.20304329693317413,
0.1615646481513977,
0.15230809152126312,
0.30116331577301025,
-0.06698129326105118,
0.2267765998840332,
-0.24250528216362,
0.09405945241451263,
0.2751005291938782,
0.06796137243509293,
0.10233984142541885,
0.048933759331703186,
-0.040087245404720306,
0.044108159840106964,
0.024912236258387566,
-0.2555714249610901,
-0.4800467789173126,
-0.35828036069869995,
0.17842262983322144,
0.019613193348050117,
0.3458855152130127,
0.29600873589515686,
0.03824861720204353,
-0.08666202425956726,
0.0641801655292511,
-0.07696384936571121,
-0.15337495505809784,
-0.38655519485473633,
0.17241273820400238,
-0.2786805331707001,
-0.24313409626483917,
0.2509685456752777,
0.07473891228437424,
0.3847610056400299,
0.07639394700527191,
-0.6094391942024231,
-0.156410813331604,
-0.1264607459306717,
0.10489964485168457,
0.025826789438724518,
-0.28259122371673584,
0.33344271779060364,
-0.08820820599794388,
-0.005147483665496111,
0.21606498956680298,
-0.44045209884643555,
0.0323338620364666,
0.3356824815273285,
0.39132389426231384,
0.27374741435050964,
0.37074682116508484,
-0.17094478011131287,
0.4239262044429779,
0.20261023938655853,
0.04854324460029602,
0.3296670615673065,
-0.1572236716747284,
0.3341197967529297,
-0.08921778947114944,
-0.2969248592853546,
-0.21728362143039703,
-0.21034687757492065,
-0.3245602250099182,
0.16177238523960114,
0.26366451382637024,
-0.034415047615766525,
-0.49671050906181335,
0.11736097186803818,
-0.08014099299907684,
-0.3276882767677307,
0.0556476004421711,
0.16797593235969543,
0.1110880896449089,
0.003878933610394597,
-0.037826426327228546,
0.22122901678085327,
-0.21193766593933105,
-0.3172354996204376,
0.36299997568130493,
0.0803811326622963,
0.07255010306835175,
-0.13046713173389435,
-0.01612098515033722,
-0.8267483115196228,
0.30459079146385193,
0.004353181924670935,
0.39902374148368835,
-0.3158353865146637,
0.06143071874976158,
0.07918961346149445,
-0.10680586844682693,
0.11924527585506439,
-0.30705365538597107,
-0.08182685822248459,
0.30878204107284546,
0.06008626148104668,
-0.2109728306531906,
-0.2092314064502716,
0.12699541449546814,
0.18553735315799713,
0.4327675402164459,
0.3602840006351471,
0.013694455847144127,
0.005340243224054575,
0.07416079938411713,
0.14800620079040527,
-0.0896286740899086,
0.023082494735717773,
-0.32150232791900635,
-0.4804902672767639,
-0.23763854801654816,
-0.07142718881368637,
-0.06272474676370621,
0.29828184843063354,
0.13049964606761932,
0.0849197581410408,
0.29117944836616516,
-0.2723354995250702,
0.20810149610042572,
0.09229569137096405,
0.018867822363972664,
0.10576441884040833,
0.10276436060667038,
0.09913905709981918,
0.06249143183231354,
0.33541107177734375,
0.9395025372505188,
0.1009225994348526,
-0.12041597813367844,
0.354493111371994,
0.3962079882621765,
0.07355194538831711,
0.2287343144416809,
-0.05183367058634758,
0.10316745191812515,
-0.0455479696393013,
0.13107232749462128,
0.0472785159945488,
0.3104490041732788,
-0.24123114347457886,
-0.012339932844042778,
-0.844632625579834,
-0.16335313022136688,
0.39403975009918213,
-0.11573980748653412,
-0.09637864679098129,
-0.08853168040513992,
0.1918690800666809,
-0.12238317728042603,
0.06642714142799377,
-0.07983318716287613,
0.9389854669570923,
-0.21574068069458008,
-0.11394688487052917,
0.09641943126916885,
-0.14705564081668854,
0.4845156669616699,
-0.5781689286231995,
0.4780518710613251,
-0.3271457254886627,
-0.15968982875347137,
-0.21965089440345764,
-0.26893314719200134,
-0.11416082084178925,
-0.1754053831100464,
-0.002867703326046467,
0.42945075035095215,
-0.1375022828578949,
0.1797104775905609,
0.4103509485721588,
0.03125004097819328,
0.16680555045604706,
0.03138013184070587,
-0.1563228964805603,
0.07422630488872528,
-0.06847322732210159,
0.3795154094696045,
-0.0753369852900505,
-0.0879741683602333,
-0.2208278775215149,
-0.023258205503225327,
-0.3305439352989197,
0.2558436393737793,
-0.7046293616294861,
0.09517093747854233,
0.0003458211722318083,
-0.20279864966869354,
0.13872918486595154,
0.14910142123699188,
0.20197716355323792,
0.1502193957567215,
-0.31032493710517883,
0.2650386393070221,
-0.04730626195669174,
-0.15062831342220306,
-0.009702878072857857,
-0.015875350683927536,
0.010616580955684185,
-0.057882990688085556,
-0.08001910150051117,
0.44516512751579285,
-0.013192087411880493,
-0.4016880691051483,
0.04977063834667206,
0.04142642393708229,
0.015600833110511303,
-0.06720024347305298,
0.13101932406425476,
-0.09139594435691833,
0.03347152844071388,
0.06900813430547714,
0.02713089995086193,
0.12051713466644287,
0.15398675203323364,
-0.01963183842599392,
0.2282925695180893,
-0.25933679938316345,
-0.01571519859135151,
0.36360806226730347,
-0.013595624826848507,
-0.031950268894433975,
0.1860428750514984,
0.4898219704627991,
-0.0020252063404768705,
-0.07053110748529434,
-0.13957974314689636,
0.21268780529499054,
-0.39726144075393677,
0.11640270054340363,
-0.04323391243815422,
0.14965397119522095,
0.03337962180376053,
0.34728193283081055,
0.31434062123298645,
0.03172629699110985,
0.38761621713638306,
-0.5564643144607544,
-0.2944403886795044,
0.054447855800390244,
-0.16902481019496918,
0.1841663420200348,
0.10408931970596313,
-0.16329297423362732,
-0.22763943672180176,
-0.0018322550458833575,
-0.1922599971294403,
0.07231129705905914,
-0.3587894141674042,
-0.1759033501148224,
0.17263709008693695,
-0.1161855086684227,
0.5185418725013733,
-0.13682754337787628,
-0.04794501140713692,
-0.018405117094516754,
-0.35812705755233765,
-0.0564916729927063,
-0.014561377465724945,
0.20178914070129395,
0.17124177515506744,
-0.44309189915657043,
-0.17554333806037903,
-0.07752785086631775,
0.04856952279806137,
0.05439490079879761,
0.18474358320236206,
0.19843977689743042,
-0.18030710518360138,
-0.3293842077255249,
-0.4175051152706146,
0.008154205977916718,
-0.3177676200866699,
0.3675781190395355,
0.23192931711673737,
0.46066662669181824,
0.21742120385169983,
0.24356642365455627,
-0.016910623759031296,
-0.1336590200662613,
-0.11765888333320618,
0.21299616992473602,
-0.053509533405303955,
-0.2645334005355835,
0.19652345776557922,
-0.4327823221683502,
0.06015828251838684,
-0.24055534601211548,
0.23243464529514313,
0.07866328954696655,
-0.21387459337711334,
0.14287662506103516,
0.18814386427402496,
0.05251702666282654,
-0.07040441036224365,
-0.032833971083164215,
0.14138871431350708,
-0.027203666046261787,
0.03104851022362709,
0.2250303030014038,
0.38687339425086975,
-0.1784224659204483,
0.07996776700019836,
0.24590614438056946,
0.5618062615394592,
0.12238864600658417,
0.14211209118366241,
-0.1236974224448204,
-0.12370476871728897,
0.12570372223854065,
0.40945377945899963,
0.008992481045424938,
0.03276761993765831,
0.02111886441707611,
-0.3650709092617035,
-0.03492552787065506,
-0.005955300759524107,
0.018314620479941368,
0.03327499330043793,
-0.5767632722854614,
0.10643776506185532,
0.14117658138275146,
-0.1795792579650879,
-0.17170344293117523,
-0.08942295610904694,
0.452485591173172,
-0.21002990007400513,
-0.017402950674295425,
-0.39089757204055786,
0.18800826370716095,
-0.024239441379904747,
-0.0397147499024868,
0.11829135566949844,
-0.4415910243988037,
-0.13059832155704498,
0.24272708594799042,
0.006991673726588488,
-0.15939538180828094,
-0.00466818455606699,
0.08597669750452042,
-0.23882947862148285,
-0.30007466673851013,
-0.07559331506490707,
0.3069651126861572,
-0.04264720156788826,
-0.09364740550518036,
0.4497722089290619,
0.02733670361340046,
-0.17066118121147156,
0.15570327639579773,
0.015389913693070412,
0.6272586584091187,
0.2654247283935547,
0.18237505853176117,
0.10876841098070145,
-0.12664180994033813,
0.007130697835236788,
0.16971538960933685,
0.08836491405963898,
0.19004100561141968,
-0.3322179317474365,
0.16854055225849152,
0.07864824682474136,
0.025846458971500397,
0.2831476032733917,
-0.0928131490945816,
0.3121078312397003,
0.02945791371166706,
0.017980052158236504,
-0.14604276418685913,
0.11181586980819702,
-0.15920931100845337,
0.042284395545721054,
-0.3145131468772888,
0.17835848033428192,
0.38625073432922363,
-0.14028507471084595,
0.26938268542289734,
0.15430261194705963,
0.008642399683594704,
-0.17800673842430115,
0.4599916934967041,
0.3405536711215973,
0.2323296070098877,
-0.34872955083847046,
-0.1899103820323944,
-0.2473534643650055,
-0.00551925553008914,
-0.11154492199420929,
0.20731022953987122,
-0.04169277846813202,
0.150274395942688,
-0.20463714003562927,
0.3032630980014801,
-0.1217939704656601,
0.30587926506996155,
0.08487756550312042,
0.0063986885361373425,
-0.26516830921173096,
0.06634309142827988,
0.009093724191188812,
0.04983091726899147,
-0.15377438068389893,
-0.26247724890708923,
0.08155819773674011,
-0.37340080738067627,
-0.07949912548065186,
-0.11991959810256958,
0.15114249289035797,
0.04269949719309807,
-0.2643921971321106,
0.29913845658302307,
0.24583984911441803,
0.7336870431900024,
0.26307547092437744,
-0.009374585933983326,
-0.13824202120304108,
-0.38092273473739624,
-0.022565918043255806,
0.009367893449962139,
0.3737497329711914,
0.2838232219219208,
0.08536657691001892,
-0.24049782752990723,
-0.38511157035827637,
0.4988898038864136,
0.0652472972869873,
0.2366219013929367,
0.16505898535251617,
-0.08640801906585693,
-0.018204854801297188,
0.08529648929834366,
-0.07599421590566635,
-0.10944054275751114,
0.19041383266448975,
0.14073118567466736,
-0.13634155690670013,
-0.3142246603965759,
0.5675707459449768,
-0.3454419672489166,
0.11282511800527573,
-0.1528625339269638,
0.26060357689857483,
0.307880699634552,
0.020560897886753082,
-0.2705267369747162,
0.12397529929876328,
0.21452303230762482,
-0.13280682265758514,
-0.4126017689704895,
0.33553579449653625,
-0.2914162874221802,
-0.0648074522614479,
-0.06114606186747551,
0.14645446836948395,
0.0038937036879360676,
-0.30086758732795715,
-0.2765825390815735,
-0.026671871542930603
] |
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.17695312201976776,
-0.028165867552161217,
-0.08531198650598526,
0.059553682804107666,
0.1316642016172409,
-0.2772909998893738,
0.09355079382658005,
0.11946073919534683,
-0.07154234498739243,
0.02058868296444416,
-0.23732878267765045,
0.011510862037539482,
-0.1035933643579483,
-0.0028772770892828703,
0.0880221426486969,
-0.23120719194412231,
-0.01929428242146969,
0.056479036808013916,
0.02208440564572811,
-0.20924825966358185,
-0.2625802755355835,
0.3527040481567383,
-0.02172246389091015,
0.2763139307498932,
-0.20732150971889496,
0.23315215110778809,
-0.06391164660453796,
0.20565369725227356,
-0.29418736696243286,
-0.18540272116661072,
0.009648067876696587,
0.3292578458786011,
0.018689986318349838,
0.2050485908985138,
-0.00011370656284270808,
-0.3125216066837311,
0.018440568819642067,
-0.1469956338405609,
-0.12344662100076675,
-0.10459483414888382,
-0.11094105243682861,
-0.1959446668624878,
0.0969134271144867,
-0.13254468142986298,
-0.03553910180926323,
0.12011296302080154,
-0.3182253837585449,
-0.06932740658521652,
0.5164254903793335,
-0.0813499242067337,
0.16864778101444244,
-0.09622912108898163,
-0.1875775158405304,
-0.14869855344295502,
0.3641577363014221,
-0.10705795884132385,
0.057578328996896744,
0.004555332008749247,
0.29559093713760376,
-0.03468131273984909,
-0.11174245923757553,
0.2009180337190628,
0.011857802979648113,
-0.21405579149723053,
0.19960123300552368,
0.04526624083518982,
0.21933041512966156,
-0.1476975530385971,
-0.16813337802886963,
0.25402531027793884,
0.13097764551639557,
-0.04901162534952164,
-0.4720952808856964,
0.06949574500322342,
-0.09548725187778473,
-0.700191080570221,
-0.04711664095520973,
-0.2837655544281006,
0.15150487422943115,
-0.15154440701007843,
-0.12556526064872742,
0.006969593930989504,
0.1390455961227417,
-0.2734934091567993,
-0.13648295402526855,
0.02436232939362526,
-0.14112718403339386,
-0.0773995965719223,
0.1040123999118805,
-0.15688711404800415,
-0.616775393486023,
0.26964226365089417,
-0.1904047429561615,
0.03366857022047043,
-0.5840451121330261,
0.0813070684671402,
0.04318297654390335,
0.11941549181938171,
-0.1405094861984253,
0.47231408953666687,
0.16375349462032318,
0.06971133500337601,
0.10931448638439178,
0.08627554029226303,
-0.3274799585342407,
0.8337019681930542,
0.08749593794345856,
0.01768813654780388,
0.1399506777524948,
-0.005224570166319609,
0.19163529574871063,
-0.04669753089547157,
0.0865580290555954,
-0.5624167919158936,
-0.06757541000843048,
0.3009656071662903,
-0.20869144797325134,
-0.4418407082557678,
-0.47988417744636536,
0.1379345953464508,
-0.2506820559501648,
-0.1557815968990326,
0.3023247718811035,
0.38634052872657776,
-0.3358682692050934,
0.059745077043771744,
0.4099593758583069,
0.36970192193984985,
-0.2531633675098419,
-0.10097645223140717,
-0.16791938245296478,
0.0602370984852314,
-0.25659558176994324,
0.2256271243095398,
0.020977171137928963,
0.08019497990608215,
0.3454352021217346,
0.09710212796926498,
0.3335014283657074,
0.004241356626152992,
0.14348843693733215,
0.057545728981494904,
-0.24559389054775238,
-0.19220085442066193,
-0.19431762397289276,
0.008860096335411072,
0.08483615517616272,
-0.25242599844932556,
-0.016199329867959023,
-0.38282036781311035,
-0.3244469463825226,
-0.15845119953155518,
0.060308270156383514,
0.14708571135997772,
-0.1753462851047516,
0.12318605184555054,
-0.003543686354532838,
0.3194276988506317,
-0.03930819407105446,
-0.11329755187034607,
0.005362070631235838,
0.1049267053604126,
-0.26706579327583313,
-0.004227976314723492,
0.49355602264404297,
-0.025588879361748695,
-0.32164087891578674,
-0.38177379965782166,
0.4146707355976105,
0.16831959784030914,
-0.06068103760480881,
0.27008819580078125,
0.03522263094782829,
0.2871854603290558,
0.027633916586637497,
-0.18044212460517883,
0.39042603969573975,
-0.5985484719276428,
-0.0689605325460434,
-0.015859311446547508,
-0.011591300368309021,
-0.23624294996261597,
0.20132607221603394,
-0.18346117436885834,
0.31614404916763306,
-0.18314531445503235,
0.4822324514389038,
0.10106047987937927,
0.06539411842823029,
-0.28014346957206726,
-0.2663802206516266,
-0.1388566941022873,
0.13925141096115112,
-0.08441828191280365,
0.10859823226928711,
0.1279090791940689,
-0.215547576546669,
0.3492256700992584,
0.07018877565860748,
-0.22825129330158234,
0.08564778417348862,
0.03768586739897728,
0.18247206509113312,
0.033167675137519836,
0.20777875185012817,
0.3472878038883209,
0.14175643026828766,
0.13365374505519867,
-0.6976099610328674,
0.15921349823474884,
0.003707673167809844,
0.08605603128671646,
-0.3027498424053192,
-0.2085743546485901,
0.022712746635079384,
-0.4090459942817688,
0.13548699021339417,
-0.24927107989788055,
0.20369426906108856,
0.12376224994659424,
0.001924557494930923,
0.12449880689382553,
0.2435029149055481,
0.18247023224830627,
-0.26804280281066895,
-0.19198502600193024,
0.20258034765720367,
0.0015640237834304571,
0.011174974963068962,
0.4812684655189514,
0.23347817361354828,
0.1712268888950348,
0.04375805705785751,
0.28322651982307434,
0.0035687689669430256,
0.12275506556034088,
0.17788870632648468,
0.21969148516654968,
0.20590947568416595,
0.06269609183073044,
0.15327785909175873,
-0.0062185050919651985,
0.14778980612754822,
-0.22056670486927032,
-0.011905386112630367,
0.4550427496433258,
-0.4066663682460785,
0.1981157809495926,
-0.21304672956466675,
-0.013429354876279831,
-0.006045769900083542,
0.027415212243795395,
-0.353548139333725,
0.01843528263270855,
0.32518577575683594,
0.1578257977962494,
0.49822837114334106,
-0.2068055123090744,
0.28326183557510376,
-0.15573236346244812,
0.005761049222201109,
-0.10060762614011765,
0.09474673867225647,
-0.04062988981604576,
0.1436416208744049,
-0.09964647144079208,
-0.07702083140611649,
-0.42169228196144104,
0.08190644532442093,
0.10514023154973984,
-0.10545506328344345,
0.03856896981596947,
-0.003158364910632372,
-0.09889733791351318,
-0.1584770530462265,
-0.059914495795965195,
-0.29165366291999817,
0.03787774220108986,
0.20825783908367157,
0.1982460916042328,
0.20471499860286713,
-0.34429675340652466,
-0.2024783045053482,
-0.057645924389362335,
-0.30008572340011597,
0.14493758976459503,
-0.034487802535295486,
0.5397530198097229,
0.26085004210472107,
0.10270355641841888,
-0.23364455997943878,
-0.34656527638435364,
0.3593014180660248,
-0.039825450628995895,
0.04508224129676819,
0.14411167800426483,
0.07718296349048615,
0.475623220205307,
0.0388999842107296,
-0.06211201474070549,
-0.03667395934462547,
-0.1377667784690857,
0.0031253888737410307,
0.07762707024812698,
-0.3016473948955536,
0.12163131684064865,
0.11672603338956833,
-0.36485323309898376,
0.25106462836265564,
0.19787119328975677,
-0.5468525886535645,
0.12411496043205261,
-0.1195819154381752,
0.5138994455337524,
0.3033767342567444,
-0.3014569580554962,
0.023168697953224182,
-0.08882111310958862,
0.23715613782405853,
-0.032348331063985825,
-0.24067220091819763,
0.33996590971946716,
-0.045220065861940384,
0.1214812844991684,
-0.06955526769161224,
-0.13934668898582458,
0.085844486951828,
-0.20947228372097015,
0.34078559279441833,
-0.07667358964681625,
-0.2421099692583084,
-0.18127040565013885,
-0.09496752917766571,
0.2206559032201767,
0.19956493377685547,
0.4270274341106415,
-0.15544754266738892,
-0.20860542356967926,
0.3116019368171692,
-0.1577584147453308,
-0.22212356328964233,
-0.22949020564556122,
-0.18766461312770844,
0.491013765335083,
-0.14892040193080902,
-0.05116467922925949,
-0.39405885338783264,
0.18944784998893738,
-0.10016840696334839,
0.22202104330062866,
-0.030730199068784714,
0.14550791680812836,
0.10646539181470871,
-0.14042329788208008,
-0.09898175299167633,
-0.16125799715518951,
0.19102263450622559,
0.1008722260594368,
0.4178527891635895,
-0.20889708399772644,
0.33969706296920776,
-0.011748062446713448,
0.6103147268295288,
0.1115441843867302,
0.28925082087516785,
0.17680723965168,
0.38312065601348877,
0.12111873179674149,
-0.02130458876490593,
-0.20751728117465973,
0.08797599375247955,
-0.0352797769010067,
-0.293349027633667,
0.13193510472774506,
0.09843111038208008,
0.44145476818084717,
-0.218595951795578,
0.3410227596759796,
-0.21039503812789917,
-0.18817922472953796,
0.10581625252962112,
-0.20117464661598206,
-0.09891727566719055,
-0.14301344752311707,
0.07233119755983353,
0.11129556596279144,
-0.0060311052948236465,
0.2412921041250229,
0.13906733691692352,
0.30179163813591003,
0.0698099136352539,
-0.21263748407363892,
0.15145879983901978,
-0.3834174871444702,
0.45669522881507874,
-0.243722066283226,
-0.20382018387317657,
-0.21656522154808044,
-0.1013505831360817,
-0.12155978381633759,
-0.08758249878883362,
0.21475540101528168,
0.03746875748038292,
-0.2363128662109375,
0.14588211476802826,
-0.591658890247345,
-0.4131351709365845,
-0.012086182832717896,
-0.2095869481563568,
-0.16050776839256287,
0.23595967888832092,
0.009518367238342762,
-0.48214393854141235,
-0.07566936314105988,
-0.229551762342453,
0.05765586346387863,
-0.3014698624610901,
-0.037336692214012146,
-0.2727281153202057,
-0.11726203560829163,
-0.06968852877616882,
0.09247327595949173,
-0.2291593849658966,
0.28758057951927185,
-0.29212719202041626,
0.1601523607969284,
-0.1564987450838089,
-0.0742763876914978,
0.30701538920402527,
0.14654098451137543,
0.1504179835319519,
-0.33166879415512085,
0.07850125432014465,
0.20814312994480133,
-0.12938298285007477,
-0.12739290297031403,
0.19695372879505157,
-0.25323373079299927,
-0.2951299250125885,
0.37163764238357544,
0.017829859629273415,
0.2221778929233551,
0.2946825921535492,
-0.23429925739765167,
0.09449625015258789,
-0.31475910544395447,
0.30280768871307373,
-0.36134159564971924,
-0.094487763941288,
0.36899858713150024,
0.10333080589771271,
0.012550771236419678,
-0.2299203723669052,
0.06905364245176315,
0.16536793112754822,
-0.3130493760108948,
-0.37809571623802185,
-0.015291201882064342,
-0.2785451114177704,
0.5295844674110413,
0.2223326861858368,
0.9652847647666931,
0.04709266871213913,
0.07638221979141235,
0.15519900619983673,
0.09628498554229736,
0.46371105313301086,
-0.5718897581100464,
-0.03510117903351784,
-0.38788920640945435,
-0.0913156121969223,
0.029172126203775406,
0.03679187595844269,
-0.11705823987722397,
-0.0540095716714859,
-0.3936688005924225,
0.45579659938812256,
-0.263716459274292,
-0.20051027834415436,
-0.16553500294685364,
-0.022966381162405014,
0.13024193048477173,
-0.250796914100647,
-0.3668772578239441,
0.18688009679317474,
0.08898463845252991,
0.05425786226987839,
-0.2669872045516968,
-0.03938711807131767,
-0.25028061866760254,
-0.05858197063207626,
0.08583720028400421,
0.023232072591781616,
-0.02123543992638588,
0.10831107944250107,
-0.047734808176755905,
-0.15406376123428345,
-0.15824492275714874,
0.5442365407943726,
0.5773685574531555,
0.2172064185142517,
-0.02082044444978237,
0.06009255349636078,
-0.12362354248762131,
0.5404775142669678,
0.09347207844257355,
-0.2224394828081131,
0.22948989272117615,
-0.024354849010705948,
-0.020824050530791283,
0.3062647581100464,
0.018266916275024414,
-0.07754519581794739,
-0.19891472160816193,
-0.15441864728927612,
-0.3258247375488281,
-0.3220325708389282,
0.41166985034942627,
0.22323833405971527,
0.23468196392059326,
-0.031175676733255386,
0.09289605915546417,
0.4529186189174652,
-0.31601160764694214,
0.18711315095424652,
0.16445870697498322,
-0.32837408781051636,
0.01768132485449314,
0.1569298356771469,
-0.20351482927799225,
-0.2034180462360382,
0.1447078138589859,
-0.12229353934526443,
0.06624957174062729,
-0.10501253604888916,
-0.22465203702449799,
0.32822385430336,
-0.6158254146575928,
0.1495264619588852,
-0.013752883300185204,
-0.20144182443618774,
0.10796813666820526,
0.5085465312004089,
0.33557385206222534,
-0.12335179001092911,
0.37405431270599365,
-0.16714705526828766,
-0.24273063242435455,
0.4513656198978424,
0.06160429120063782,
0.1218235194683075,
-0.28616708517074585,
-0.3142945170402527,
-0.33267050981521606,
0.6031288504600525,
-0.33593493700027466,
-0.235931396484375,
-0.45390474796295166,
0.1343769133090973,
-0.36204302310943604,
-0.2385990172624588,
0.20741787552833557,
0.2969813346862793,
0.009648118168115616,
0.18423166871070862,
-0.33441710472106934,
-0.12307272106409073,
-0.4081405997276306,
0.10030518472194672,
-0.11932890862226486,
0.22699889540672302,
-0.06685923039913177,
0.45270901918411255,
0.22986622154712677,
-0.26711317896842957,
0.16975121200084686,
0.1802746206521988,
0.29753032326698303,
0.205343559384346,
0.019148267805576324,
0.22447337210178375,
-0.0069988868199288845,
-0.026291420683264732,
0.2954404354095459,
0.13162894546985626,
0.16851358115673065,
0.055964384227991104,
-0.22180607914924622,
-0.1717921793460846,
0.33740654587745667,
0.17991355061531067,
0.23620250821113586,
-0.09369653463363647,
0.11398232728242874,
-0.04102194681763649,
0.08420222252607346,
-0.2749202251434326,
0.3915093243122101,
0.3128076493740082,
-0.019562654197216034,
-0.07965303212404251,
-0.13721807301044464,
0.22400256991386414,
0.024484800174832344,
0.3415910005569458,
-0.14900116622447968,
0.24896813929080963,
-0.011286558583378792,
0.35238030552864075,
0.15218302607536316,
0.014712437056005001,
0.4298750162124634,
-0.0189227107912302,
-0.07020919770002365,
-0.22366119921207428,
0.11531628668308258,
-0.23482146859169006,
-0.18158067762851715,
0.3596549332141876,
0.4222205877304077,
0.007724013179540634,
0.015292422845959663,
-0.021029016003012657,
-0.1447952687740326,
0.2545052468776703,
-0.39281967282295227,
0.6502040028572083,
0.22319060564041138,
0.05037422105669975,
-0.1527453511953354,
0.21645097434520721,
0.05175529420375824,
-0.24726633727550507,
-0.24342811107635498,
0.42182695865631104,
0.05817016214132309,
-0.3403603732585907,
-0.3058307468891144,
0.3959484100341797,
-0.07883971929550171,
-0.4969262182712555,
-0.03226448595523834,
-0.36866703629493713,
-0.22517016530036926,
-0.1759873926639557,
0.05589675158262253,
0.003512765048071742,
-0.1908200979232788,
0.06391387432813644,
0.1989695429801941,
-0.2763512432575226,
-0.5920052528381348,
0.18237845599651337,
0.09056978672742844,
-0.04295865446329117,
-0.007743104360997677,
0.3834717571735382,
0.09549680352210999,
0.5452120900154114,
0.4397693872451782,
0.24711459875106812,
0.16982801258563995,
-0.41622114181518555,
0.009913641028106213,
-0.09416613727807999,
0.11791028082370758,
-0.11788608878850937,
0.4269876182079315,
0.21424974501132965,
-0.3480439782142639,
0.17495864629745483,
0.10140933841466904,
-0.13917988538742065,
0.22634989023208618,
-0.25090324878692627,
0.2887150049209595,
-0.18553860485553741,
0.42899569869041443,
0.11024988442659378,
0.3845454156398773,
-0.2034667730331421,
-0.0546121820807457,
-0.4368288516998291,
0.024295415729284286,
-0.24122589826583862,
-0.02381349913775921,
0.13689538836479187,
0.16858366131782532,
0.07870739698410034,
0.16515126824378967,
0.03537871316075325,
0.08162572979927063,
0.17962190508842468,
-0.2963195741176605,
0.26322469115257263,
-0.14536018669605255,
-0.04983745887875557,
0.19042721390724182,
0.34279921650886536,
-0.3479309678077698,
0.28183019161224365,
0.15303896367549896,
0.2411680519580841,
-0.14716774225234985,
0.086701899766922,
-0.10793409496545792,
0.10365045815706253,
-0.4891267418861389,
0.2790876626968384,
-0.057786282151937485,
0.08197887986898422,
0.016420090571045876,
0.16227473318576813,
-0.25220954418182373,
-0.03088628500699997,
0.0889541283249855,
-0.039588563144207,
-0.2198459506034851,
0.12053832411766052,
0.4369184970855713,
0.3809592127799988,
0.4347175657749176,
0.2746361792087555,
0.049110911786556244,
-0.09172021597623825,
-0.03483542427420616,
-0.237458273768425,
0.009184412658214569,
-0.14512205123901367,
-0.09919092804193497,
0.14835721254348755,
0.12722724676132202,
-0.0981932133436203,
-0.285927414894104,
0.7760738134384155,
0.10803293436765671,
-0.5372224450111389,
-0.45222511887550354,
0.10223347693681717,
0.21059466898441315,
-0.017401304095983505,
-0.2600533366203308,
0.3088754117488861,
-0.014705131761729717,
0.6009329557418823,
-0.1941390335559845,
-0.11327587068080902,
0.4475614130496979,
-0.43079039454460144,
0.30614998936653137,
0.1107727661728859,
0.37643879652023315,
0.43473175168037415,
-0.045351896435022354,
-0.1358407586812973,
0.04451419785618782,
0.0719926729798317,
0.08791393786668777,
-0.006922673434019089,
0.17290423810482025,
0.255784809589386,
-0.08468549698591232,
-0.23609140515327454,
-0.2595789432525635,
0.034960586577653885,
0.07869841158390045,
0.07815228402614594,
-0.23633460700511932
] |
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.17695312201976776,
-0.028165867552161217,
-0.08531198650598526,
0.059553682804107666,
0.1316642016172409,
-0.2772909998893738,
0.09355079382658005,
0.11946073919534683,
-0.07154234498739243,
0.02058868296444416,
-0.23732878267765045,
0.011510862037539482,
-0.1035933643579483,
-0.0028772770892828703,
0.0880221426486969,
-0.23120719194412231,
-0.01929428242146969,
0.056479036808013916,
0.02208440564572811,
-0.20924825966358185,
-0.2625802755355835,
0.3527040481567383,
-0.02172246389091015,
0.2763139307498932,
-0.20732150971889496,
0.23315215110778809,
-0.06391164660453796,
0.20565369725227356,
-0.29418736696243286,
-0.18540272116661072,
0.009648067876696587,
0.3292578458786011,
0.018689986318349838,
0.2050485908985138,
-0.00011370656284270808,
-0.3125216066837311,
0.018440568819642067,
-0.1469956338405609,
-0.12344662100076675,
-0.10459483414888382,
-0.11094105243682861,
-0.1959446668624878,
0.0969134271144867,
-0.13254468142986298,
-0.03553910180926323,
0.12011296302080154,
-0.3182253837585449,
-0.06932740658521652,
0.5164254903793335,
-0.0813499242067337,
0.16864778101444244,
-0.09622912108898163,
-0.1875775158405304,
-0.14869855344295502,
0.3641577363014221,
-0.10705795884132385,
0.057578328996896744,
0.004555332008749247,
0.29559093713760376,
-0.03468131273984909,
-0.11174245923757553,
0.2009180337190628,
0.011857802979648113,
-0.21405579149723053,
0.19960123300552368,
0.04526624083518982,
0.21933041512966156,
-0.1476975530385971,
-0.16813337802886963,
0.25402531027793884,
0.13097764551639557,
-0.04901162534952164,
-0.4720952808856964,
0.06949574500322342,
-0.09548725187778473,
-0.700191080570221,
-0.04711664095520973,
-0.2837655544281006,
0.15150487422943115,
-0.15154440701007843,
-0.12556526064872742,
0.006969593930989504,
0.1390455961227417,
-0.2734934091567993,
-0.13648295402526855,
0.02436232939362526,
-0.14112718403339386,
-0.0773995965719223,
0.1040123999118805,
-0.15688711404800415,
-0.616775393486023,
0.26964226365089417,
-0.1904047429561615,
0.03366857022047043,
-0.5840451121330261,
0.0813070684671402,
0.04318297654390335,
0.11941549181938171,
-0.1405094861984253,
0.47231408953666687,
0.16375349462032318,
0.06971133500337601,
0.10931448638439178,
0.08627554029226303,
-0.3274799585342407,
0.8337019681930542,
0.08749593794345856,
0.01768813654780388,
0.1399506777524948,
-0.005224570166319609,
0.19163529574871063,
-0.04669753089547157,
0.0865580290555954,
-0.5624167919158936,
-0.06757541000843048,
0.3009656071662903,
-0.20869144797325134,
-0.4418407082557678,
-0.47988417744636536,
0.1379345953464508,
-0.2506820559501648,
-0.1557815968990326,
0.3023247718811035,
0.38634052872657776,
-0.3358682692050934,
0.059745077043771744,
0.4099593758583069,
0.36970192193984985,
-0.2531633675098419,
-0.10097645223140717,
-0.16791938245296478,
0.0602370984852314,
-0.25659558176994324,
0.2256271243095398,
0.020977171137928963,
0.08019497990608215,
0.3454352021217346,
0.09710212796926498,
0.3335014283657074,
0.004241356626152992,
0.14348843693733215,
0.057545728981494904,
-0.24559389054775238,
-0.19220085442066193,
-0.19431762397289276,
0.008860096335411072,
0.08483615517616272,
-0.25242599844932556,
-0.016199329867959023,
-0.38282036781311035,
-0.3244469463825226,
-0.15845119953155518,
0.060308270156383514,
0.14708571135997772,
-0.1753462851047516,
0.12318605184555054,
-0.003543686354532838,
0.3194276988506317,
-0.03930819407105446,
-0.11329755187034607,
0.005362070631235838,
0.1049267053604126,
-0.26706579327583313,
-0.004227976314723492,
0.49355602264404297,
-0.025588879361748695,
-0.32164087891578674,
-0.38177379965782166,
0.4146707355976105,
0.16831959784030914,
-0.06068103760480881,
0.27008819580078125,
0.03522263094782829,
0.2871854603290558,
0.027633916586637497,
-0.18044212460517883,
0.39042603969573975,
-0.5985484719276428,
-0.0689605325460434,
-0.015859311446547508,
-0.011591300368309021,
-0.23624294996261597,
0.20132607221603394,
-0.18346117436885834,
0.31614404916763306,
-0.18314531445503235,
0.4822324514389038,
0.10106047987937927,
0.06539411842823029,
-0.28014346957206726,
-0.2663802206516266,
-0.1388566941022873,
0.13925141096115112,
-0.08441828191280365,
0.10859823226928711,
0.1279090791940689,
-0.215547576546669,
0.3492256700992584,
0.07018877565860748,
-0.22825129330158234,
0.08564778417348862,
0.03768586739897728,
0.18247206509113312,
0.033167675137519836,
0.20777875185012817,
0.3472878038883209,
0.14175643026828766,
0.13365374505519867,
-0.6976099610328674,
0.15921349823474884,
0.003707673167809844,
0.08605603128671646,
-0.3027498424053192,
-0.2085743546485901,
0.022712746635079384,
-0.4090459942817688,
0.13548699021339417,
-0.24927107989788055,
0.20369426906108856,
0.12376224994659424,
0.001924557494930923,
0.12449880689382553,
0.2435029149055481,
0.18247023224830627,
-0.26804280281066895,
-0.19198502600193024,
0.20258034765720367,
0.0015640237834304571,
0.011174974963068962,
0.4812684655189514,
0.23347817361354828,
0.1712268888950348,
0.04375805705785751,
0.28322651982307434,
0.0035687689669430256,
0.12275506556034088,
0.17788870632648468,
0.21969148516654968,
0.20590947568416595,
0.06269609183073044,
0.15327785909175873,
-0.0062185050919651985,
0.14778980612754822,
-0.22056670486927032,
-0.011905386112630367,
0.4550427496433258,
-0.4066663682460785,
0.1981157809495926,
-0.21304672956466675,
-0.013429354876279831,
-0.006045769900083542,
0.027415212243795395,
-0.353548139333725,
0.01843528263270855,
0.32518577575683594,
0.1578257977962494,
0.49822837114334106,
-0.2068055123090744,
0.28326183557510376,
-0.15573236346244812,
0.005761049222201109,
-0.10060762614011765,
0.09474673867225647,
-0.04062988981604576,
0.1436416208744049,
-0.09964647144079208,
-0.07702083140611649,
-0.42169228196144104,
0.08190644532442093,
0.10514023154973984,
-0.10545506328344345,
0.03856896981596947,
-0.003158364910632372,
-0.09889733791351318,
-0.1584770530462265,
-0.059914495795965195,
-0.29165366291999817,
0.03787774220108986,
0.20825783908367157,
0.1982460916042328,
0.20471499860286713,
-0.34429675340652466,
-0.2024783045053482,
-0.057645924389362335,
-0.30008572340011597,
0.14493758976459503,
-0.034487802535295486,
0.5397530198097229,
0.26085004210472107,
0.10270355641841888,
-0.23364455997943878,
-0.34656527638435364,
0.3593014180660248,
-0.039825450628995895,
0.04508224129676819,
0.14411167800426483,
0.07718296349048615,
0.475623220205307,
0.0388999842107296,
-0.06211201474070549,
-0.03667395934462547,
-0.1377667784690857,
0.0031253888737410307,
0.07762707024812698,
-0.3016473948955536,
0.12163131684064865,
0.11672603338956833,
-0.36485323309898376,
0.25106462836265564,
0.19787119328975677,
-0.5468525886535645,
0.12411496043205261,
-0.1195819154381752,
0.5138994455337524,
0.3033767342567444,
-0.3014569580554962,
0.023168697953224182,
-0.08882111310958862,
0.23715613782405853,
-0.032348331063985825,
-0.24067220091819763,
0.33996590971946716,
-0.045220065861940384,
0.1214812844991684,
-0.06955526769161224,
-0.13934668898582458,
0.085844486951828,
-0.20947228372097015,
0.34078559279441833,
-0.07667358964681625,
-0.2421099692583084,
-0.18127040565013885,
-0.09496752917766571,
0.2206559032201767,
0.19956493377685547,
0.4270274341106415,
-0.15544754266738892,
-0.20860542356967926,
0.3116019368171692,
-0.1577584147453308,
-0.22212356328964233,
-0.22949020564556122,
-0.18766461312770844,
0.491013765335083,
-0.14892040193080902,
-0.05116467922925949,
-0.39405885338783264,
0.18944784998893738,
-0.10016840696334839,
0.22202104330062866,
-0.030730199068784714,
0.14550791680812836,
0.10646539181470871,
-0.14042329788208008,
-0.09898175299167633,
-0.16125799715518951,
0.19102263450622559,
0.1008722260594368,
0.4178527891635895,
-0.20889708399772644,
0.33969706296920776,
-0.011748062446713448,
0.6103147268295288,
0.1115441843867302,
0.28925082087516785,
0.17680723965168,
0.38312065601348877,
0.12111873179674149,
-0.02130458876490593,
-0.20751728117465973,
0.08797599375247955,
-0.0352797769010067,
-0.293349027633667,
0.13193510472774506,
0.09843111038208008,
0.44145476818084717,
-0.218595951795578,
0.3410227596759796,
-0.21039503812789917,
-0.18817922472953796,
0.10581625252962112,
-0.20117464661598206,
-0.09891727566719055,
-0.14301344752311707,
0.07233119755983353,
0.11129556596279144,
-0.0060311052948236465,
0.2412921041250229,
0.13906733691692352,
0.30179163813591003,
0.0698099136352539,
-0.21263748407363892,
0.15145879983901978,
-0.3834174871444702,
0.45669522881507874,
-0.243722066283226,
-0.20382018387317657,
-0.21656522154808044,
-0.1013505831360817,
-0.12155978381633759,
-0.08758249878883362,
0.21475540101528168,
0.03746875748038292,
-0.2363128662109375,
0.14588211476802826,
-0.591658890247345,
-0.4131351709365845,
-0.012086182832717896,
-0.2095869481563568,
-0.16050776839256287,
0.23595967888832092,
0.009518367238342762,
-0.48214393854141235,
-0.07566936314105988,
-0.229551762342453,
0.05765586346387863,
-0.3014698624610901,
-0.037336692214012146,
-0.2727281153202057,
-0.11726203560829163,
-0.06968852877616882,
0.09247327595949173,
-0.2291593849658966,
0.28758057951927185,
-0.29212719202041626,
0.1601523607969284,
-0.1564987450838089,
-0.0742763876914978,
0.30701538920402527,
0.14654098451137543,
0.1504179835319519,
-0.33166879415512085,
0.07850125432014465,
0.20814312994480133,
-0.12938298285007477,
-0.12739290297031403,
0.19695372879505157,
-0.25323373079299927,
-0.2951299250125885,
0.37163764238357544,
0.017829859629273415,
0.2221778929233551,
0.2946825921535492,
-0.23429925739765167,
0.09449625015258789,
-0.31475910544395447,
0.30280768871307373,
-0.36134159564971924,
-0.094487763941288,
0.36899858713150024,
0.10333080589771271,
0.012550771236419678,
-0.2299203723669052,
0.06905364245176315,
0.16536793112754822,
-0.3130493760108948,
-0.37809571623802185,
-0.015291201882064342,
-0.2785451114177704,
0.5295844674110413,
0.2223326861858368,
0.9652847647666931,
0.04709266871213913,
0.07638221979141235,
0.15519900619983673,
0.09628498554229736,
0.46371105313301086,
-0.5718897581100464,
-0.03510117903351784,
-0.38788920640945435,
-0.0913156121969223,
0.029172126203775406,
0.03679187595844269,
-0.11705823987722397,
-0.0540095716714859,
-0.3936688005924225,
0.45579659938812256,
-0.263716459274292,
-0.20051027834415436,
-0.16553500294685364,
-0.022966381162405014,
0.13024193048477173,
-0.250796914100647,
-0.3668772578239441,
0.18688009679317474,
0.08898463845252991,
0.05425786226987839,
-0.2669872045516968,
-0.03938711807131767,
-0.25028061866760254,
-0.05858197063207626,
0.08583720028400421,
0.023232072591781616,
-0.02123543992638588,
0.10831107944250107,
-0.047734808176755905,
-0.15406376123428345,
-0.15824492275714874,
0.5442365407943726,
0.5773685574531555,
0.2172064185142517,
-0.02082044444978237,
0.06009255349636078,
-0.12362354248762131,
0.5404775142669678,
0.09347207844257355,
-0.2224394828081131,
0.22948989272117615,
-0.024354849010705948,
-0.020824050530791283,
0.3062647581100464,
0.018266916275024414,
-0.07754519581794739,
-0.19891472160816193,
-0.15441864728927612,
-0.3258247375488281,
-0.3220325708389282,
0.41166985034942627,
0.22323833405971527,
0.23468196392059326,
-0.031175676733255386,
0.09289605915546417,
0.4529186189174652,
-0.31601160764694214,
0.18711315095424652,
0.16445870697498322,
-0.32837408781051636,
0.01768132485449314,
0.1569298356771469,
-0.20351482927799225,
-0.2034180462360382,
0.1447078138589859,
-0.12229353934526443,
0.06624957174062729,
-0.10501253604888916,
-0.22465203702449799,
0.32822385430336,
-0.6158254146575928,
0.1495264619588852,
-0.013752883300185204,
-0.20144182443618774,
0.10796813666820526,
0.5085465312004089,
0.33557385206222534,
-0.12335179001092911,
0.37405431270599365,
-0.16714705526828766,
-0.24273063242435455,
0.4513656198978424,
0.06160429120063782,
0.1218235194683075,
-0.28616708517074585,
-0.3142945170402527,
-0.33267050981521606,
0.6031288504600525,
-0.33593493700027466,
-0.235931396484375,
-0.45390474796295166,
0.1343769133090973,
-0.36204302310943604,
-0.2385990172624588,
0.20741787552833557,
0.2969813346862793,
0.009648118168115616,
0.18423166871070862,
-0.33441710472106934,
-0.12307272106409073,
-0.4081405997276306,
0.10030518472194672,
-0.11932890862226486,
0.22699889540672302,
-0.06685923039913177,
0.45270901918411255,
0.22986622154712677,
-0.26711317896842957,
0.16975121200084686,
0.1802746206521988,
0.29753032326698303,
0.205343559384346,
0.019148267805576324,
0.22447337210178375,
-0.0069988868199288845,
-0.026291420683264732,
0.2954404354095459,
0.13162894546985626,
0.16851358115673065,
0.055964384227991104,
-0.22180607914924622,
-0.1717921793460846,
0.33740654587745667,
0.17991355061531067,
0.23620250821113586,
-0.09369653463363647,
0.11398232728242874,
-0.04102194681763649,
0.08420222252607346,
-0.2749202251434326,
0.3915093243122101,
0.3128076493740082,
-0.019562654197216034,
-0.07965303212404251,
-0.13721807301044464,
0.22400256991386414,
0.024484800174832344,
0.3415910005569458,
-0.14900116622447968,
0.24896813929080963,
-0.011286558583378792,
0.35238030552864075,
0.15218302607536316,
0.014712437056005001,
0.4298750162124634,
-0.0189227107912302,
-0.07020919770002365,
-0.22366119921207428,
0.11531628668308258,
-0.23482146859169006,
-0.18158067762851715,
0.3596549332141876,
0.4222205877304077,
0.007724013179540634,
0.015292422845959663,
-0.021029016003012657,
-0.1447952687740326,
0.2545052468776703,
-0.39281967282295227,
0.6502040028572083,
0.22319060564041138,
0.05037422105669975,
-0.1527453511953354,
0.21645097434520721,
0.05175529420375824,
-0.24726633727550507,
-0.24342811107635498,
0.42182695865631104,
0.05817016214132309,
-0.3403603732585907,
-0.3058307468891144,
0.3959484100341797,
-0.07883971929550171,
-0.4969262182712555,
-0.03226448595523834,
-0.36866703629493713,
-0.22517016530036926,
-0.1759873926639557,
0.05589675158262253,
0.003512765048071742,
-0.1908200979232788,
0.06391387432813644,
0.1989695429801941,
-0.2763512432575226,
-0.5920052528381348,
0.18237845599651337,
0.09056978672742844,
-0.04295865446329117,
-0.007743104360997677,
0.3834717571735382,
0.09549680352210999,
0.5452120900154114,
0.4397693872451782,
0.24711459875106812,
0.16982801258563995,
-0.41622114181518555,
0.009913641028106213,
-0.09416613727807999,
0.11791028082370758,
-0.11788608878850937,
0.4269876182079315,
0.21424974501132965,
-0.3480439782142639,
0.17495864629745483,
0.10140933841466904,
-0.13917988538742065,
0.22634989023208618,
-0.25090324878692627,
0.2887150049209595,
-0.18553860485553741,
0.42899569869041443,
0.11024988442659378,
0.3845454156398773,
-0.2034667730331421,
-0.0546121820807457,
-0.4368288516998291,
0.024295415729284286,
-0.24122589826583862,
-0.02381349913775921,
0.13689538836479187,
0.16858366131782532,
0.07870739698410034,
0.16515126824378967,
0.03537871316075325,
0.08162572979927063,
0.17962190508842468,
-0.2963195741176605,
0.26322469115257263,
-0.14536018669605255,
-0.04983745887875557,
0.19042721390724182,
0.34279921650886536,
-0.3479309678077698,
0.28183019161224365,
0.15303896367549896,
0.2411680519580841,
-0.14716774225234985,
0.086701899766922,
-0.10793409496545792,
0.10365045815706253,
-0.4891267418861389,
0.2790876626968384,
-0.057786282151937485,
0.08197887986898422,
0.016420090571045876,
0.16227473318576813,
-0.25220954418182373,
-0.03088628500699997,
0.0889541283249855,
-0.039588563144207,
-0.2198459506034851,
0.12053832411766052,
0.4369184970855713,
0.3809592127799988,
0.4347175657749176,
0.2746361792087555,
0.049110911786556244,
-0.09172021597623825,
-0.03483542427420616,
-0.237458273768425,
0.009184412658214569,
-0.14512205123901367,
-0.09919092804193497,
0.14835721254348755,
0.12722724676132202,
-0.0981932133436203,
-0.285927414894104,
0.7760738134384155,
0.10803293436765671,
-0.5372224450111389,
-0.45222511887550354,
0.10223347693681717,
0.21059466898441315,
-0.017401304095983505,
-0.2600533366203308,
0.3088754117488861,
-0.014705131761729717,
0.6009329557418823,
-0.1941390335559845,
-0.11327587068080902,
0.4475614130496979,
-0.43079039454460144,
0.30614998936653137,
0.1107727661728859,
0.37643879652023315,
0.43473175168037415,
-0.045351896435022354,
-0.1358407586812973,
0.04451419785618782,
0.0719926729798317,
0.08791393786668777,
-0.006922673434019089,
0.17290423810482025,
0.255784809589386,
-0.08468549698591232,
-0.23609140515327454,
-0.2595789432525635,
0.034960586577653885,
0.07869841158390045,
0.07815228402614594,
-0.23633460700511932
] |
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.17695312201976776,
-0.028165867552161217,
-0.08531198650598526,
0.059553682804107666,
0.1316642016172409,
-0.2772909998893738,
0.09355079382658005,
0.11946073919534683,
-0.07154234498739243,
0.02058868296444416,
-0.23732878267765045,
0.011510862037539482,
-0.1035933643579483,
-0.0028772770892828703,
0.0880221426486969,
-0.23120719194412231,
-0.01929428242146969,
0.056479036808013916,
0.02208440564572811,
-0.20924825966358185,
-0.2625802755355835,
0.3527040481567383,
-0.02172246389091015,
0.2763139307498932,
-0.20732150971889496,
0.23315215110778809,
-0.06391164660453796,
0.20565369725227356,
-0.29418736696243286,
-0.18540272116661072,
0.009648067876696587,
0.3292578458786011,
0.018689986318349838,
0.2050485908985138,
-0.00011370656284270808,
-0.3125216066837311,
0.018440568819642067,
-0.1469956338405609,
-0.12344662100076675,
-0.10459483414888382,
-0.11094105243682861,
-0.1959446668624878,
0.0969134271144867,
-0.13254468142986298,
-0.03553910180926323,
0.12011296302080154,
-0.3182253837585449,
-0.06932740658521652,
0.5164254903793335,
-0.0813499242067337,
0.16864778101444244,
-0.09622912108898163,
-0.1875775158405304,
-0.14869855344295502,
0.3641577363014221,
-0.10705795884132385,
0.057578328996896744,
0.004555332008749247,
0.29559093713760376,
-0.03468131273984909,
-0.11174245923757553,
0.2009180337190628,
0.011857802979648113,
-0.21405579149723053,
0.19960123300552368,
0.04526624083518982,
0.21933041512966156,
-0.1476975530385971,
-0.16813337802886963,
0.25402531027793884,
0.13097764551639557,
-0.04901162534952164,
-0.4720952808856964,
0.06949574500322342,
-0.09548725187778473,
-0.700191080570221,
-0.04711664095520973,
-0.2837655544281006,
0.15150487422943115,
-0.15154440701007843,
-0.12556526064872742,
0.006969593930989504,
0.1390455961227417,
-0.2734934091567993,
-0.13648295402526855,
0.02436232939362526,
-0.14112718403339386,
-0.0773995965719223,
0.1040123999118805,
-0.15688711404800415,
-0.616775393486023,
0.26964226365089417,
-0.1904047429561615,
0.03366857022047043,
-0.5840451121330261,
0.0813070684671402,
0.04318297654390335,
0.11941549181938171,
-0.1405094861984253,
0.47231408953666687,
0.16375349462032318,
0.06971133500337601,
0.10931448638439178,
0.08627554029226303,
-0.3274799585342407,
0.8337019681930542,
0.08749593794345856,
0.01768813654780388,
0.1399506777524948,
-0.005224570166319609,
0.19163529574871063,
-0.04669753089547157,
0.0865580290555954,
-0.5624167919158936,
-0.06757541000843048,
0.3009656071662903,
-0.20869144797325134,
-0.4418407082557678,
-0.47988417744636536,
0.1379345953464508,
-0.2506820559501648,
-0.1557815968990326,
0.3023247718811035,
0.38634052872657776,
-0.3358682692050934,
0.059745077043771744,
0.4099593758583069,
0.36970192193984985,
-0.2531633675098419,
-0.10097645223140717,
-0.16791938245296478,
0.0602370984852314,
-0.25659558176994324,
0.2256271243095398,
0.020977171137928963,
0.08019497990608215,
0.3454352021217346,
0.09710212796926498,
0.3335014283657074,
0.004241356626152992,
0.14348843693733215,
0.057545728981494904,
-0.24559389054775238,
-0.19220085442066193,
-0.19431762397289276,
0.008860096335411072,
0.08483615517616272,
-0.25242599844932556,
-0.016199329867959023,
-0.38282036781311035,
-0.3244469463825226,
-0.15845119953155518,
0.060308270156383514,
0.14708571135997772,
-0.1753462851047516,
0.12318605184555054,
-0.003543686354532838,
0.3194276988506317,
-0.03930819407105446,
-0.11329755187034607,
0.005362070631235838,
0.1049267053604126,
-0.26706579327583313,
-0.004227976314723492,
0.49355602264404297,
-0.025588879361748695,
-0.32164087891578674,
-0.38177379965782166,
0.4146707355976105,
0.16831959784030914,
-0.06068103760480881,
0.27008819580078125,
0.03522263094782829,
0.2871854603290558,
0.027633916586637497,
-0.18044212460517883,
0.39042603969573975,
-0.5985484719276428,
-0.0689605325460434,
-0.015859311446547508,
-0.011591300368309021,
-0.23624294996261597,
0.20132607221603394,
-0.18346117436885834,
0.31614404916763306,
-0.18314531445503235,
0.4822324514389038,
0.10106047987937927,
0.06539411842823029,
-0.28014346957206726,
-0.2663802206516266,
-0.1388566941022873,
0.13925141096115112,
-0.08441828191280365,
0.10859823226928711,
0.1279090791940689,
-0.215547576546669,
0.3492256700992584,
0.07018877565860748,
-0.22825129330158234,
0.08564778417348862,
0.03768586739897728,
0.18247206509113312,
0.033167675137519836,
0.20777875185012817,
0.3472878038883209,
0.14175643026828766,
0.13365374505519867,
-0.6976099610328674,
0.15921349823474884,
0.003707673167809844,
0.08605603128671646,
-0.3027498424053192,
-0.2085743546485901,
0.022712746635079384,
-0.4090459942817688,
0.13548699021339417,
-0.24927107989788055,
0.20369426906108856,
0.12376224994659424,
0.001924557494930923,
0.12449880689382553,
0.2435029149055481,
0.18247023224830627,
-0.26804280281066895,
-0.19198502600193024,
0.20258034765720367,
0.0015640237834304571,
0.011174974963068962,
0.4812684655189514,
0.23347817361354828,
0.1712268888950348,
0.04375805705785751,
0.28322651982307434,
0.0035687689669430256,
0.12275506556034088,
0.17788870632648468,
0.21969148516654968,
0.20590947568416595,
0.06269609183073044,
0.15327785909175873,
-0.0062185050919651985,
0.14778980612754822,
-0.22056670486927032,
-0.011905386112630367,
0.4550427496433258,
-0.4066663682460785,
0.1981157809495926,
-0.21304672956466675,
-0.013429354876279831,
-0.006045769900083542,
0.027415212243795395,
-0.353548139333725,
0.01843528263270855,
0.32518577575683594,
0.1578257977962494,
0.49822837114334106,
-0.2068055123090744,
0.28326183557510376,
-0.15573236346244812,
0.005761049222201109,
-0.10060762614011765,
0.09474673867225647,
-0.04062988981604576,
0.1436416208744049,
-0.09964647144079208,
-0.07702083140611649,
-0.42169228196144104,
0.08190644532442093,
0.10514023154973984,
-0.10545506328344345,
0.03856896981596947,
-0.003158364910632372,
-0.09889733791351318,
-0.1584770530462265,
-0.059914495795965195,
-0.29165366291999817,
0.03787774220108986,
0.20825783908367157,
0.1982460916042328,
0.20471499860286713,
-0.34429675340652466,
-0.2024783045053482,
-0.057645924389362335,
-0.30008572340011597,
0.14493758976459503,
-0.034487802535295486,
0.5397530198097229,
0.26085004210472107,
0.10270355641841888,
-0.23364455997943878,
-0.34656527638435364,
0.3593014180660248,
-0.039825450628995895,
0.04508224129676819,
0.14411167800426483,
0.07718296349048615,
0.475623220205307,
0.0388999842107296,
-0.06211201474070549,
-0.03667395934462547,
-0.1377667784690857,
0.0031253888737410307,
0.07762707024812698,
-0.3016473948955536,
0.12163131684064865,
0.11672603338956833,
-0.36485323309898376,
0.25106462836265564,
0.19787119328975677,
-0.5468525886535645,
0.12411496043205261,
-0.1195819154381752,
0.5138994455337524,
0.3033767342567444,
-0.3014569580554962,
0.023168697953224182,
-0.08882111310958862,
0.23715613782405853,
-0.032348331063985825,
-0.24067220091819763,
0.33996590971946716,
-0.045220065861940384,
0.1214812844991684,
-0.06955526769161224,
-0.13934668898582458,
0.085844486951828,
-0.20947228372097015,
0.34078559279441833,
-0.07667358964681625,
-0.2421099692583084,
-0.18127040565013885,
-0.09496752917766571,
0.2206559032201767,
0.19956493377685547,
0.4270274341106415,
-0.15544754266738892,
-0.20860542356967926,
0.3116019368171692,
-0.1577584147453308,
-0.22212356328964233,
-0.22949020564556122,
-0.18766461312770844,
0.491013765335083,
-0.14892040193080902,
-0.05116467922925949,
-0.39405885338783264,
0.18944784998893738,
-0.10016840696334839,
0.22202104330062866,
-0.030730199068784714,
0.14550791680812836,
0.10646539181470871,
-0.14042329788208008,
-0.09898175299167633,
-0.16125799715518951,
0.19102263450622559,
0.1008722260594368,
0.4178527891635895,
-0.20889708399772644,
0.33969706296920776,
-0.011748062446713448,
0.6103147268295288,
0.1115441843867302,
0.28925082087516785,
0.17680723965168,
0.38312065601348877,
0.12111873179674149,
-0.02130458876490593,
-0.20751728117465973,
0.08797599375247955,
-0.0352797769010067,
-0.293349027633667,
0.13193510472774506,
0.09843111038208008,
0.44145476818084717,
-0.218595951795578,
0.3410227596759796,
-0.21039503812789917,
-0.18817922472953796,
0.10581625252962112,
-0.20117464661598206,
-0.09891727566719055,
-0.14301344752311707,
0.07233119755983353,
0.11129556596279144,
-0.0060311052948236465,
0.2412921041250229,
0.13906733691692352,
0.30179163813591003,
0.0698099136352539,
-0.21263748407363892,
0.15145879983901978,
-0.3834174871444702,
0.45669522881507874,
-0.243722066283226,
-0.20382018387317657,
-0.21656522154808044,
-0.1013505831360817,
-0.12155978381633759,
-0.08758249878883362,
0.21475540101528168,
0.03746875748038292,
-0.2363128662109375,
0.14588211476802826,
-0.591658890247345,
-0.4131351709365845,
-0.012086182832717896,
-0.2095869481563568,
-0.16050776839256287,
0.23595967888832092,
0.009518367238342762,
-0.48214393854141235,
-0.07566936314105988,
-0.229551762342453,
0.05765586346387863,
-0.3014698624610901,
-0.037336692214012146,
-0.2727281153202057,
-0.11726203560829163,
-0.06968852877616882,
0.09247327595949173,
-0.2291593849658966,
0.28758057951927185,
-0.29212719202041626,
0.1601523607969284,
-0.1564987450838089,
-0.0742763876914978,
0.30701538920402527,
0.14654098451137543,
0.1504179835319519,
-0.33166879415512085,
0.07850125432014465,
0.20814312994480133,
-0.12938298285007477,
-0.12739290297031403,
0.19695372879505157,
-0.25323373079299927,
-0.2951299250125885,
0.37163764238357544,
0.017829859629273415,
0.2221778929233551,
0.2946825921535492,
-0.23429925739765167,
0.09449625015258789,
-0.31475910544395447,
0.30280768871307373,
-0.36134159564971924,
-0.094487763941288,
0.36899858713150024,
0.10333080589771271,
0.012550771236419678,
-0.2299203723669052,
0.06905364245176315,
0.16536793112754822,
-0.3130493760108948,
-0.37809571623802185,
-0.015291201882064342,
-0.2785451114177704,
0.5295844674110413,
0.2223326861858368,
0.9652847647666931,
0.04709266871213913,
0.07638221979141235,
0.15519900619983673,
0.09628498554229736,
0.46371105313301086,
-0.5718897581100464,
-0.03510117903351784,
-0.38788920640945435,
-0.0913156121969223,
0.029172126203775406,
0.03679187595844269,
-0.11705823987722397,
-0.0540095716714859,
-0.3936688005924225,
0.45579659938812256,
-0.263716459274292,
-0.20051027834415436,
-0.16553500294685364,
-0.022966381162405014,
0.13024193048477173,
-0.250796914100647,
-0.3668772578239441,
0.18688009679317474,
0.08898463845252991,
0.05425786226987839,
-0.2669872045516968,
-0.03938711807131767,
-0.25028061866760254,
-0.05858197063207626,
0.08583720028400421,
0.023232072591781616,
-0.02123543992638588,
0.10831107944250107,
-0.047734808176755905,
-0.15406376123428345,
-0.15824492275714874,
0.5442365407943726,
0.5773685574531555,
0.2172064185142517,
-0.02082044444978237,
0.06009255349636078,
-0.12362354248762131,
0.5404775142669678,
0.09347207844257355,
-0.2224394828081131,
0.22948989272117615,
-0.024354849010705948,
-0.020824050530791283,
0.3062647581100464,
0.018266916275024414,
-0.07754519581794739,
-0.19891472160816193,
-0.15441864728927612,
-0.3258247375488281,
-0.3220325708389282,
0.41166985034942627,
0.22323833405971527,
0.23468196392059326,
-0.031175676733255386,
0.09289605915546417,
0.4529186189174652,
-0.31601160764694214,
0.18711315095424652,
0.16445870697498322,
-0.32837408781051636,
0.01768132485449314,
0.1569298356771469,
-0.20351482927799225,
-0.2034180462360382,
0.1447078138589859,
-0.12229353934526443,
0.06624957174062729,
-0.10501253604888916,
-0.22465203702449799,
0.32822385430336,
-0.6158254146575928,
0.1495264619588852,
-0.013752883300185204,
-0.20144182443618774,
0.10796813666820526,
0.5085465312004089,
0.33557385206222534,
-0.12335179001092911,
0.37405431270599365,
-0.16714705526828766,
-0.24273063242435455,
0.4513656198978424,
0.06160429120063782,
0.1218235194683075,
-0.28616708517074585,
-0.3142945170402527,
-0.33267050981521606,
0.6031288504600525,
-0.33593493700027466,
-0.235931396484375,
-0.45390474796295166,
0.1343769133090973,
-0.36204302310943604,
-0.2385990172624588,
0.20741787552833557,
0.2969813346862793,
0.009648118168115616,
0.18423166871070862,
-0.33441710472106934,
-0.12307272106409073,
-0.4081405997276306,
0.10030518472194672,
-0.11932890862226486,
0.22699889540672302,
-0.06685923039913177,
0.45270901918411255,
0.22986622154712677,
-0.26711317896842957,
0.16975121200084686,
0.1802746206521988,
0.29753032326698303,
0.205343559384346,
0.019148267805576324,
0.22447337210178375,
-0.0069988868199288845,
-0.026291420683264732,
0.2954404354095459,
0.13162894546985626,
0.16851358115673065,
0.055964384227991104,
-0.22180607914924622,
-0.1717921793460846,
0.33740654587745667,
0.17991355061531067,
0.23620250821113586,
-0.09369653463363647,
0.11398232728242874,
-0.04102194681763649,
0.08420222252607346,
-0.2749202251434326,
0.3915093243122101,
0.3128076493740082,
-0.019562654197216034,
-0.07965303212404251,
-0.13721807301044464,
0.22400256991386414,
0.024484800174832344,
0.3415910005569458,
-0.14900116622447968,
0.24896813929080963,
-0.011286558583378792,
0.35238030552864075,
0.15218302607536316,
0.014712437056005001,
0.4298750162124634,
-0.0189227107912302,
-0.07020919770002365,
-0.22366119921207428,
0.11531628668308258,
-0.23482146859169006,
-0.18158067762851715,
0.3596549332141876,
0.4222205877304077,
0.007724013179540634,
0.015292422845959663,
-0.021029016003012657,
-0.1447952687740326,
0.2545052468776703,
-0.39281967282295227,
0.6502040028572083,
0.22319060564041138,
0.05037422105669975,
-0.1527453511953354,
0.21645097434520721,
0.05175529420375824,
-0.24726633727550507,
-0.24342811107635498,
0.42182695865631104,
0.05817016214132309,
-0.3403603732585907,
-0.3058307468891144,
0.3959484100341797,
-0.07883971929550171,
-0.4969262182712555,
-0.03226448595523834,
-0.36866703629493713,
-0.22517016530036926,
-0.1759873926639557,
0.05589675158262253,
0.003512765048071742,
-0.1908200979232788,
0.06391387432813644,
0.1989695429801941,
-0.2763512432575226,
-0.5920052528381348,
0.18237845599651337,
0.09056978672742844,
-0.04295865446329117,
-0.007743104360997677,
0.3834717571735382,
0.09549680352210999,
0.5452120900154114,
0.4397693872451782,
0.24711459875106812,
0.16982801258563995,
-0.41622114181518555,
0.009913641028106213,
-0.09416613727807999,
0.11791028082370758,
-0.11788608878850937,
0.4269876182079315,
0.21424974501132965,
-0.3480439782142639,
0.17495864629745483,
0.10140933841466904,
-0.13917988538742065,
0.22634989023208618,
-0.25090324878692627,
0.2887150049209595,
-0.18553860485553741,
0.42899569869041443,
0.11024988442659378,
0.3845454156398773,
-0.2034667730331421,
-0.0546121820807457,
-0.4368288516998291,
0.024295415729284286,
-0.24122589826583862,
-0.02381349913775921,
0.13689538836479187,
0.16858366131782532,
0.07870739698410034,
0.16515126824378967,
0.03537871316075325,
0.08162572979927063,
0.17962190508842468,
-0.2963195741176605,
0.26322469115257263,
-0.14536018669605255,
-0.04983745887875557,
0.19042721390724182,
0.34279921650886536,
-0.3479309678077698,
0.28183019161224365,
0.15303896367549896,
0.2411680519580841,
-0.14716774225234985,
0.086701899766922,
-0.10793409496545792,
0.10365045815706253,
-0.4891267418861389,
0.2790876626968384,
-0.057786282151937485,
0.08197887986898422,
0.016420090571045876,
0.16227473318576813,
-0.25220954418182373,
-0.03088628500699997,
0.0889541283249855,
-0.039588563144207,
-0.2198459506034851,
0.12053832411766052,
0.4369184970855713,
0.3809592127799988,
0.4347175657749176,
0.2746361792087555,
0.049110911786556244,
-0.09172021597623825,
-0.03483542427420616,
-0.237458273768425,
0.009184412658214569,
-0.14512205123901367,
-0.09919092804193497,
0.14835721254348755,
0.12722724676132202,
-0.0981932133436203,
-0.285927414894104,
0.7760738134384155,
0.10803293436765671,
-0.5372224450111389,
-0.45222511887550354,
0.10223347693681717,
0.21059466898441315,
-0.017401304095983505,
-0.2600533366203308,
0.3088754117488861,
-0.014705131761729717,
0.6009329557418823,
-0.1941390335559845,
-0.11327587068080902,
0.4475614130496979,
-0.43079039454460144,
0.30614998936653137,
0.1107727661728859,
0.37643879652023315,
0.43473175168037415,
-0.045351896435022354,
-0.1358407586812973,
0.04451419785618782,
0.0719926729798317,
0.08791393786668777,
-0.006922673434019089,
0.17290423810482025,
0.255784809589386,
-0.08468549698591232,
-0.23609140515327454,
-0.2595789432525635,
0.034960586577653885,
0.07869841158390045,
0.07815228402614594,
-0.23633460700511932
] |
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.41542503237724304,
-0.3093399405479431,
-0.03096221573650837,
0.03084552101790905,
0.21697747707366943,
0.04815524071455002,
0.6097396016120911,
0.4196392893791199,
0.18411800265312195,
0.19524887204170227,
0.365460604429245,
0.5179558992385864,
-0.04680753871798515,
0.4430820345878601,
0.04526178911328316,
0.029736623167991638,
0.026294494047760963,
0.08160902559757233,
0.24497897922992706,
-0.13490766286849976,
-0.07026080042123795,
0.11851575970649719,
-0.5048999190330505,
-0.3920857012271881,
-0.6020745038986206,
0.07151370495557785,
-0.14711903035640717,
0.1056128442287445,
0.13084715604782104,
-0.34512269496917725,
0.2047574669122696,
-0.19662334024906158,
-0.29791057109832764,
0.23479969799518585,
-0.00012331553443800658,
-0.15181618928909302,
0.44055110216140747,
-0.1911165565252304,
-0.5569387078285217,
-0.2748943865299225,
-0.5155438780784607,
0.041486844420433044,
0.11268162727355957,
-0.31926292181015015,
-0.05202900618314743,
0.3783484101295471,
-0.055689629167318344,
-0.5345299243927002,
0.10371933877468109,
0.3284585475921631,
0.08281879872083664,
0.24822135269641876,
-0.4270975589752197,
-0.015532147139310837,
0.06783647835254669,
0.232528954744339,
-0.0963372215628624,
-0.1887245923280716,
-0.030735068023204803,
0.009068666025996208,
-0.0292262751609087,
0.3749614357948303,
0.055250074714422226,
0.05120501294732094,
-0.08717183768749237,
0.14638766646385193,
-0.10524016618728638,
-0.5381206274032593,
0.43759459257125854,
0.4902975261211395,
0.0022713220678269863,
-0.0752100795507431,
-0.3428645133972168,
-0.3614489436149597,
0.07465934008359909,
0.03526085615158081,
0.11279004067182541,
0.4587826132774353,
-0.1910824030637741,
-0.1280398666858673,
-0.05158733204007149,
0.019721372053027153,
-0.06162376329302788,
-0.04678822308778763,
-0.5572396516799927,
0.32271894812583923,
0.027550097554922104,
-0.03522820025682449,
-0.11864709109067917,
-0.07922619581222534,
0.06151719018816948,
-0.32931506633758545,
-0.22642481327056885,
0.13638931512832642,
-0.4327520430088043,
-0.013339389115571976,
0.07350017130374908,
0.004604732617735863,
0.07144860923290253,
-0.06067467853426933,
0.09528333693742752,
0.13809576630592346,
0.08095700293779373,
0.03622458875179291,
0.3264830410480499,
0.21314674615859985,
0.6067318320274353,
-0.23365049064159393,
-0.10193949192762375,
-0.014645892195403576,
-0.28993552923202515,
0.02370627410709858,
0.015416889451444149,
0.22610145807266235,
-0.1452401727437973,
-0.1047835573554039,
0.5170952677726746,
-0.1638513058423996,
-0.43248939514160156,
0.19471141695976257,
-0.31157252192497253,
0.00008410574810113758,
-0.251018226146698,
0.11804567277431488,
-0.22424326837062836,
0.4553067088127136,
-0.2690628468990326,
0.3509608805179596,
-0.13224874436855316,
-0.36372700333595276,
-0.24356496334075928,
0.08254900574684143,
0.07698623836040497,
0.07198965549468994,
0.1621546745300293,
-0.31815454363822937,
0.2477099597454071,
0.1627955585718155,
-0.07973363995552063,
-0.19266200065612793,
0.3062608540058136,
-0.27962687611579895,
0.1648164689540863,
0.2342655211687088,
0.18215146660804749,
0.10107100754976273,
0.2721577286720276,
-0.17796950042247772,
0.12815192341804504,
0.4900323450565338,
-0.21724440157413483,
-0.15912993252277374,
-0.16402947902679443,
0.09029068797826767,
-0.5352233052253723,
-0.16920194029808044,
0.007724073715507984,
0.30159926414489746,
-0.044364623725414276,
-0.01572052761912346,
-0.03898070007562637,
-0.07848817110061646,
-0.018175985664129257,
-0.13675332069396973,
0.39832109212875366,
0.405129998922348,
-0.6290885210037231,
-0.019426027312874794,
-0.12459401041269302,
0.4337548315525055,
0.028434498235583305,
-0.08469469100236893,
0.0023020259104669094,
0.4501272141933441,
0.0450163371860981,
0.4883408844470978,
0.15950065851211548,
-0.6424001455307007,
0.12343788892030716,
0.11090943217277527,
0.07653368264436722,
0.27290475368499756,
0.01709583029150963,
-0.15204326808452606,
0.22716134786605835,
0.3121139407157898,
0.1535457819700241,
0.07571405172348022,
-0.11064456403255463,
-0.035770196467638016,
-0.4687986373901367,
-0.24150149524211884,
0.37339818477630615,
0.157077357172966,
0.050145234912633896,
-0.11752583831548691,
-0.016303349286317825,
0.31129691004753113,
0.14434373378753662,
0.015937475487589836,
0.14076009392738342,
0.27281275391578674,
0.4098913371562958,
-0.11479829251766205,
-0.06658343225717545,
0.051838815212249756,
-0.4112512171268463,
0.18282929062843323,
0.025305595248937607,
0.426552951335907,
0.054068513214588165,
-0.2753804624080658,
-0.3356631100177765,
-0.04227694496512413,
-0.36615055799484253,
-0.5387896299362183,
0.06389583647251129,
-0.09779708087444305,
0.02665674313902855,
0.2791176438331604,
-0.22979456186294556,
0.04999849572777748,
-0.06834517419338226,
0.023363491520285606,
-0.41887903213500977,
0.14384998381137848,
0.10576339811086655,
-0.0649692639708519,
-0.33973070979118347,
0.44724956154823303,
0.029908915981650352,
-0.027711383998394012,
0.07624801993370056,
0.2349163144826889,
0.33587881922721863,
0.015541573986411095,
0.3939429819583893,
-0.1505133956670761,
0.22316782176494598,
-0.10096364468336105,
-0.03896943852305412,
0.2608835995197296,
0.26736587285995483,
-0.29819998145103455,
-0.5522266030311584,
0.494686096906662,
0.047415293753147125,
0.19088441133499146,
-0.11222252994775772,
0.00490339333191514,
-0.21177007257938385,
-0.1756974309682846,
-0.10373187065124512,
-0.07380809634923935,
-0.04853671044111252,
-0.4181038737297058,
0.09155027568340302,
0.05489173159003258,
-0.24732989072799683,
0.23311224579811096,
0.3761446177959442,
0.1827237755060196,
0.14254991710186005,
-0.14308381080627441,
-0.27386072278022766,
-0.1377905160188675,
0.10528631508350372,
0.19024008512496948,
0.29236525297164917,
0.13322682678699493,
0.08500770479440689,
-0.19864323735237122,
0.2707412540912628,
-0.19874435663223267,
0.25562718510627747,
0.2737271785736084,
0.02227339707314968,
0.3003896474838257,
0.26719486713409424,
0.010933433659374714,
-0.06196370720863342,
0.22273722290992737,
0.2534613311290741,
0.13604632019996643,
-0.12223567813634872,
-0.050195515155792236,
-0.2849498391151428,
-0.11901987344026566,
-0.036240529268980026,
-0.046210162341594696,
-0.11452750861644745,
-0.5389596819877625,
-0.06156109645962715,
-0.1473464071750641,
-0.05175837129354477,
0.03271512687206268,
-0.12259897589683533,
0.20001175999641418,
0.15894591808319092,
-0.4246266782283783,
-0.2907557189464569,
-0.43091338872909546,
-0.25429004430770874,
0.014486423693597317,
0.05692678689956665,
0.05489950254559517,
-0.00781139824539423,
0.0646713525056839,
-0.15381093323230743,
-0.11301301419734955,
-0.5093657374382019,
-0.01473785750567913,
-0.3350975811481476,
0.498202919960022,
0.013104717247188091,
0.49667951464653015,
-0.3786395490169525,
-0.0884271115064621,
0.32205748558044434,
0.050673067569732666,
-0.2215312272310257,
0.10994039475917816,
0.1743040382862091,
0.13071568310260773,
-0.44161760807037354,
-0.7334847450256348,
-0.022634996101260185,
-0.09645871818065643,
0.05667363479733467,
0.05830636993050575,
-0.11010809987783432,
0.40223029255867004,
-0.030614113435149193,
0.3108599781990051,
0.06322531402111053,
-0.3287021815776825,
-0.15135790407657623,
-0.15706905722618103,
0.309329628944397,
-0.07679328322410583,
-0.3370247483253479,
0.25947412848472595,
-0.21566031873226166,
0.4304485619068146,
-0.17137755453586578,
-0.45419302582740784,
-0.11877422779798508,
-0.014037705957889557,
0.4953700006008148,
0.10774637758731842,
-0.22054405510425568,
0.17020544409751892,
-0.0410149022936821,
0.05682322382926941,
-0.10341904312372208,
0.022385042160749435,
0.27614453434944153,
0.2957690954208374,
0.20359940826892853,
-0.011686313897371292,
0.12539811432361603,
0.29663965106010437,
0.45992422103881836,
0.07362057268619537,
0.3123476803302765,
0.13464495539665222,
-0.36397454142570496,
0.2783568799495697,
-0.2543644607067108,
-0.06318160146474838,
0.2531130909919739,
0.012764813378453255,
0.00026604265440255404,
0.31429535150527954,
-0.07568912953138351,
0.35160988569259644,
-0.14413389563560486,
0.24366845190525055,
-0.44025975465774536,
-0.25583282113075256,
0.031188050284981728,
-0.3067445456981659,
0.17706269025802612,
0.17309235036373138,
0.36191612482070923,
-0.0012294466141611338,
-0.26523101329803467,
-0.07782766968011856,
-0.23062485456466675,
0.10610291361808777,
-0.09548516571521759,
-0.2690650522708893,
0.06218395009636879,
-0.24012912809848785,
0.1976775825023651,
0.24813340604305267,
0.2003750056028366,
0.05040942505002022,
-0.35576897859573364,
0.14614063501358032,
-0.07043618708848953,
0.7759658098220825,
-0.08562222123146057,
-0.1360177993774414,
0.1071125864982605,
0.06044378876686096,
-0.41187921166419983,
-0.06265010684728622,
-0.29424619674682617,
-0.13856294751167297,
0.2875738739967346,
0.25280264019966125,
-0.26545870304107666,
-0.009564502164721489,
0.11421523988246918,
0.24177728593349457,
-0.17782364785671234,
0.15979072451591492,
-0.32313334941864014,
-0.2890194356441498,
0.033055614680051804,
-0.1219748929142952,
-0.06334202736616135,
0.5701524019241333,
-0.14833366870880127,
0.03151010349392891,
-0.20937663316726685,
0.05930403247475624,
0.37173935770988464,
0.17128539085388184,
0.5655797719955444,
-0.12462197989225388,
0.21353942155838013,
-0.07584886252880096,
-0.30371516942977905,
-0.21197041869163513,
0.39060452580451965,
0.0979999378323555,
0.04907854646444321,
0.0780458003282547,
-0.3931386172771454,
0.42021578550338745,
0.4430983364582062,
0.17914174497127533,
0.3714137077331543,
-0.22204580903053284,
-0.03313523158431053,
-0.18602533638477325,
0.19049714505672455,
0.08332233875989914,
-0.15194398164749146,
-0.023209623992443085,
-0.20015034079551697,
0.2331860214471817,
-0.10878554731607437,
0.12119469791650772,
0.15512605011463165,
0.11079281568527222,
-0.008557346649467945,
0.27848315238952637,
0.12619349360466003,
0.8261997103691101,
0.18778640031814575,
0.3258027136325836,
0.49419456720352173,
0.22135746479034424,
0.20219038426876068,
-0.2013828605413437,
0.05703701823949814,
-0.45869892835617065,
-0.03928978741168976,
-0.02707993984222412,
0.08089487999677658,
0.2617102861404419,
0.010431346483528614,
-0.22322052717208862,
0.17863808572292328,
-0.02912996895611286,
0.38849085569381714,
0.026563821360468864,
0.05434936285018921,
-0.11138832569122314,
0.06849413365125656,
-0.0016606077551841736,
0.06882264465093613,
-0.02862115018069744,
0.12489492446184158,
0.08138611167669296,
-0.14255423843860626,
-0.23231510818004608,
-0.052559059113264084,
-0.09025976806879044,
0.27710089087486267,
-0.18112511932849884,
-0.020634662359952927,
0.4377571642398834,
-0.2984698712825775,
-0.1590685248374939,
0.6575044393539429,
0.19158224761486053,
0.15584291517734528,
-0.1707686334848404,
0.3402540981769562,
0.14249543845653534,
0.05564289540052414,
0.3146819472312927,
0.146089106798172,
0.1573815792798996,
0.02701299823820591,
-0.3823426365852356,
0.3358505368232727,
-0.37319090962409973,
0.23025207221508026,
-0.4702816605567932,
0.2857649028301239,
0.11929318308830261,
-0.257223516702652,
-0.5466195940971375,
-0.04847808554768562,
0.17503474652767181,
-0.10812286287546158,
0.060101576149463654,
-0.20771080255508423,
-0.07430054247379303,
0.10680624842643738,
-0.012308608740568161,
-0.321771502494812,
0.025891538709402084,
0.15594573318958282,
-0.014475827105343342,
0.1936589777469635,
0.6203406453132629,
-0.0312077347189188,
0.05479349568486214,
-0.2772301435470581,
0.3882185220718384,
-0.17925947904586792,
-0.08772175759077072,
0.164857417345047,
0.19164611399173737,
-0.03527243807911873,
0.03819826990365982,
0.48185405135154724,
-0.12202825397253036,
-0.04313524067401886,
-0.10347592830657959,
-0.2885364294052124,
0.17360182106494904,
0.26716700196266174,
-0.07289475947618484,
0.16296976804733276,
0.1281936913728714,
-0.01504221186041832,
0.18160904943943024,
0.05852968618273735,
-0.1931362748146057,
0.14721831679344177,
-0.20938575267791748,
0.3508727252483368,
-0.13399499654769897,
-0.06594227254390717,
0.5642384886741638,
-0.18186001479625702,
0.058410048484802246,
0.006646358873695135,
0.13396547734737396,
-0.19701887667179108,
-0.255817711353302,
0.15851514041423798,
0.17885790765285492,
0.28308922052383423,
-0.08590694516897202,
0.018623415380716324,
-0.0393611304461956,
-0.1434948742389679,
0.16188114881515503,
0.07611232995986938,
-0.09855036437511444,
0.32530292868614197,
0.20541030168533325,
0.45615139603614807,
-0.42975300550460815,
-0.04627538472414017,
0.02253148891031742,
-0.07287634164094925,
0.12149117141962051,
0.039202798157930374,
0.04219033196568489,
0.13835304975509644,
0.040798887610435486,
0.05779822915792465,
-0.10128527879714966,
-0.3686131238937378,
0.046655431389808655,
-0.415779173374176,
0.06773671507835388,
-0.10169994086027145,
-0.09814620763063431,
0.26056647300720215,
-0.36602598428726196,
0.11430030316114426,
0.02042115293443203,
0.14286822080612183,
-0.18889108300209045,
0.322154700756073,
-0.11793333292007446,
0.19580627977848053,
0.071462482213974,
0.21069975197315216,
0.1286306083202362,
-0.13639706373214722,
0.2871660590171814,
0.11758022755384445,
0.03641624003648758,
-0.6664671301841736,
0.37558630108833313,
0.3628862500190735,
-0.035086002200841904,
0.030982820317149162,
-0.07711143046617508,
-0.25203514099121094,
-0.3919234275817871,
0.4506189227104187,
0.06295354664325714,
0.4828107953071594,
0.1476820558309555,
-0.23087240755558014,
-0.10545901954174042,
-0.007098848931491375,
0.08785312622785568,
0.1100846529006958,
-0.26911765336990356,
0.013935082592070103,
0.1670449674129486,
0.5890688896179199,
0.014996794052422047,
-0.3044739067554474,
-0.005516002885997295,
-0.20033837854862213,
-0.21050463616847992,
-0.12672843039035797,
-0.08362727612257004,
-0.10831750929355621,
-0.07547437399625778,
-0.04365837201476097,
0.23669911921024323,
-0.10121700912714005,
0.13871315121650696,
0.2177635282278061,
-0.03270621970295906,
-0.20600900053977966,
-0.16382525861263275,
0.33684584498405457,
0.3360433578491211,
-0.0687318667769432,
0.3295084536075592,
0.1154533326625824,
0.06558843702077866,
0.34558194875717163,
0.20136959850788116,
0.2794666588306427,
0.1423926204442978,
-0.425603985786438,
0.03919669985771179,
-0.09182371199131012,
-0.2768029272556305,
0.2572443187236786,
0.12004468590021133,
0.19369138777256012,
0.22008444368839264,
0.439983993768692,
0.08907074481248856,
-0.07374034076929092,
-0.06688304990530014,
0.32497456669807434,
-0.1388738453388214,
-0.3395922780036926,
0.38110676407814026,
0.04137807711958885,
-0.005341083277016878,
-0.06758496165275574,
-0.022471336647868156,
-0.4967587888240814,
-0.047436412423849106,
-0.022071674466133118,
0.35174304246902466,
0.03260180726647377,
-0.011430017650127411,
0.03940025717020035,
-0.06623797863721848,
0.16976049542427063,
0.15089432895183563,
-0.01646437868475914,
-0.2606029808521271,
-0.0459895133972168,
-0.7141713500022888,
-0.005445885006338358,
-0.05816741660237312,
-0.2517237961292267,
0.018906308338046074,
0.1641652137041092,
-0.1548188477754593,
-0.06261936575174332,
-0.34874433279037476,
-0.22883374989032745,
0.15305840969085693,
-0.10760187357664108,
-0.6533309817314148,
-0.06718415021896362,
-0.0007715009851381183,
-0.2528158724308014,
-0.09749287366867065,
-0.210411936044693,
0.05204930901527405,
0.02825671061873436,
-0.11570753902196884,
0.1471554934978485,
-0.2626265585422516,
0.06554638594388962,
0.07913649827241898,
-0.28172680735588074,
-0.16712553799152374,
0.47709622979164124,
0.1151689738035202,
0.06766694039106369,
-0.17488431930541992,
0.08076364547014236,
-0.029564978554844856,
0.058853816241025925,
0.14631783962249756,
0.32963332533836365,
0.1459762156009674,
-0.199050173163414,
0.1463581919670105,
0.45785051584243774,
0.2763277590274811,
-0.011740610934793949,
-0.10373631864786148,
0.17733675241470337,
-0.09812646359205246,
0.15416771173477173,
0.14406460523605347,
0.22314107418060303,
-0.12467364966869354,
0.2193233221769333,
-0.11632026731967926,
-0.25399595499038696,
0.26659324765205383,
-0.5438080430030823,
-0.3536890149116516,
-0.26019516587257385,
0.10494018346071243,
0.053695544600486755,
-0.17726290225982666,
-0.9156143069267273,
-0.2931128740310669,
0.2973383069038391,
-0.08632306009531021,
0.008624721318483353,
0.15122145414352417,
-0.01721245050430298,
0.09259303659200668,
-0.2654483914375305,
-0.15976564586162567,
0.07335799187421799,
0.05311125889420509,
0.04304220527410507,
-0.23086285591125488
] |
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.07691330462694168,
-0.47444015741348267,
-0.11490081995725632,
-0.03132499009370804,
0.04703529179096222,
0.07470426708459854,
-0.239482119679451,
0.23211315274238586,
0.3420984148979187,
0.024669775739312172,
-0.07138116657733917,
0.2375309020280838,
0.0024274985771626234,
0.06625816971063614,
0.012658550404012203,
0.039891961961984634,
0.41989755630493164,
0.22603072226047516,
-0.03164832293987274,
-0.2329011857509613,
0.0014598136767745018,
0.30705705285072327,
-0.019177814945578575,
0.05703987553715706,
-0.13846370577812195,
0.0629524439573288,
-0.2245892584323883,
0.09824846684932709,
-0.27843326330184937,
-0.43247127532958984,
0.1324751377105713,
-0.11668248474597931,
0.023135114461183548,
0.44869720935821533,
-0.0001248197368113324,
0.1516886055469513,
0.21498310565948486,
0.09741395711898804,
-0.24609693884849548,
-0.37166985869407654,
-0.10549428313970566,
-0.3073156476020813,
0.18794956803321838,
-0.049128443002700806,
0.15651246905326843,
-0.0496600940823555,
0.047356609255075455,
-0.1054646372795105,
0.29970863461494446,
0.19500410556793213,
0.11071151494979858,
0.45960143208503723,
0.3656339943408966,
-0.19967569410800934,
0.08758257329463959,
0.17472043633460999,
-0.23234638571739197,
0.19024233520030975,
0.23689411580562592,
0.17770789563655853,
0.5242688655853271,
0.10322593152523041,
-0.02408640645444393,
-0.04983098432421684,
0.005252084694802761,
-0.04106428846716881,
0.29715844988822937,
-0.25096049904823303,
-0.12558884918689728,
0.08832235634326935,
-0.07813344150781631,
-0.2779022753238678,
-0.4838891327381134,
-0.11233827471733093,
0.19498871266841888,
-0.14757786691188812,
0.269146591424942,
0.24066977202892303,
-0.26615577936172485,
0.2806161642074585,
-0.08451026678085327,
-0.5820125937461853,
-0.1115582063794136,
0.07738540321588516,
0.14763009548187256,
0.04033227637410164,
-0.1895342320203781,
0.04332643747329712,
0.24591083824634552,
0.04190189763903618,
-0.3036501705646515,
0.021317539736628532,
0.24084387719631195,
0.25642016530036926,
-0.21953506767749786,
-0.11846806108951569,
-0.07943824678659439,
-0.08240718394517899,
0.07610108703374863,
-0.20718353986740112,
-0.664867103099823,
-0.3138446509838104,
-0.2615448534488678,
0.2230486422777176,
-0.032368551939725876,
-0.09022228419780731,
-0.08567893505096436,
-0.005654522683471441,
-0.0009370773914270103,
0.02317081205546856,
0.24617068469524384,
0.016670554876327515,
-0.15414023399353027,
-0.13522516191005707,
-0.7007254958152771,
-0.3548818826675415,
0.2498069703578949,
-0.13182246685028076,
-0.4621335566043854,
0.16044992208480835,
0.07448672503232956,
0.06554380059242249,
0.08227147161960602,
0.38527441024780273,
0.028804544359445572,
-0.10565906018018723,
0.10263237357139587,
0.2561388611793518,
-0.2377709150314331,
0.1440698653459549,
-0.04807302728295326,
0.18994010984897614,
-0.12150012701749802,
-0.011138398200273514,
0.12129560112953186,
-0.32225272059440613,
0.3431437909603119,
0.1137482151389122,
0.03465624898672104,
0.1365521401166916,
-0.20193420350551605,
0.11114515364170074,
-0.2067701518535614,
0.5875927805900574,
0.05399097874760628,
0.1794099658727646,
0.1431518942117691,
0.17925627529621124,
-0.17603541910648346,
0.15736395120620728,
-0.24108543992042542,
-0.2445089966058731,
-0.28925567865371704,
0.06983170658349991,
-0.23900552093982697,
-0.11534647643566132,
-0.061810191720724106,
-0.2575485408306122,
-0.08986014127731323,
0.1062239333987236,
0.06461399048566818,
-0.04251231253147125,
0.18206824362277985,
-0.10514852404594421,
0.14277727901935577,
0.07189638167619705,
-0.17216649651527405,
-0.22538965940475464,
-0.25111642479896545,
-0.1698789745569229,
-0.09332909435033798,
0.3640257716178894,
0.2783351540565491,
0.22005976736545563,
-0.2688327729701996,
-0.12689964473247528,
0.43515148758888245,
-0.508530855178833,
0.012208929285407066,
0.21152135729789734,
0.02718888409435749,
-0.11931314319372177,
0.10288231819868088,
-0.12877434492111206,
-0.4710635244846344,
0.10203462094068527,
-0.09780111163854599,
0.04650513827800751,
-0.018175408244132996,
-0.22324016690254211,
-0.16551603376865387,
-0.5149325728416443,
-0.01636625826358795,
0.3023715913295746,
0.15327219665050507,
-0.07267341017723083,
-0.03837072104215622,
-0.38197198510169983,
0.1565910428762436,
-0.04429890215396881,
0.02735695242881775,
0.41608649492263794,
0.8438926935195923,
0.5213226675987244,
-0.08739465475082397,
-0.3666560649871826,
0.2548893690109253,
0.2190486639738083,
0.08219488710165024,
0.061597440391778946,
-0.4336164891719818,
-0.11646800488233566,
-0.19096480309963226,
0.4214516282081604,
0.0527321919798851,
-0.18179139494895935,
-0.049355171620845795,
-0.008457559160888195,
0.22062060236930847,
0.25808635354042053,
-0.31924259662628174,
0.21477989852428436,
-0.03416530787944794,
0.34420540928840637,
-0.45349395275115967,
0.16508516669273376,
-0.2749243676662445,
-0.09541992843151093,
-0.14683111011981964,
0.34593650698661804,
-0.0019027794478461146,
-0.06205478683114052,
0.07658693194389343,
0.28941580653190613,
0.059570059180259705,
-0.26153799891471863,
0.2932681143283844,
-0.06171567365527153,
0.07498594373464584,
-0.2080419957637787,
0.15047208964824677,
-0.05341867357492447,
-0.03144855797290802,
0.39637669920921326,
0.05430905893445015,
0.010921050794422626,
-0.026063300669193268,
0.1357109695672989,
0.23054809868335724,
0.24022845923900604,
0.27361926436424255,
0.06629324704408646,
0.09416627883911133,
-0.29883238673210144,
0.34428006410598755,
0.035349126905202866,
0.3008325695991516,
-0.18414302170276642,
0.11901616305112839,
-0.06376390904188156,
0.13552916049957275,
-0.0006020760629326105,
0.04339919984340668,
0.21183408796787262,
-0.09629587829113007,
0.2498713731765747,
0.03975484520196915,
-0.36642688512802124,
0.5468249320983887,
0.08316493034362793,
-0.27616506814956665,
0.1839737743139267,
-0.05541850998997688,
-0.04882708564400673,
0.27005133032798767,
0.00765122938901186,
0.09888903051614761,
-0.10480208694934845,
-0.059919096529483795,
-0.08629728108644485,
-0.21696686744689941,
-0.41042861342430115,
-0.09998995810747147,
0.20723174512386322,
-0.36126789450645447,
-0.018649214878678322,
-0.039362311363220215,
0.07695860415697098,
-0.12090662866830826,
-0.36655640602111816,
-0.41472765803337097,
-0.1603587120771408,
0.26631051301956177,
0.04463089630007744,
0.09944912046194077,
0.20247916877269745,
-0.028226399794220924,
0.035002123564481735,
0.07854199409484863,
-0.1282934546470642,
-0.24492798745632172,
-0.07394948601722717,
0.004251101985573769,
-0.0038531229365617037,
-0.1449308842420578,
0.008759844116866589,
0.3355325162410736,
-0.18962734937667847,
-0.14916686713695526,
-0.381490021944046,
-0.3965202569961548,
0.25514286756515503,
-0.4297245144844055,
0.4415018856525421,
0.3835309147834778,
0.07211533188819885,
-0.0986628606915474,
0.08968649059534073,
0.27080032229423523,
-0.3785284757614136,
-0.3092990517616272,
-0.05528032034635544,
0.03392840176820755,
-0.2750471532344818,
-0.1942581981420517,
-0.20933042466640472,
-0.3411787748336792,
-0.09500772505998611,
0.3561171889305115,
-0.017915762960910797,
-0.08848359435796738,
0.1934184581041336,
0.36170485615730286,
0.10972204059362411,
-0.09509813040494919,
0.06941468268632889,
-0.3011159598827362,
-0.3425503373146057,
0.08252661675214767,
-0.2646848261356354,
-0.23847420513629913,
0.3331694006919861,
0.15141186118125916,
0.4445263743400574,
0.07198546826839447,
-0.37102189660072327,
-0.24898338317871094,
-0.22364328801631927,
0.4790894687175751,
-0.12390953302383423,
0.6306268572807312,
0.18990030884742737,
0.008817523717880249,
0.04241136461496353,
-0.19130343198776245,
0.10983766615390778,
-0.13456353545188904,
-0.15927639603614807,
0.2964019179344177,
-0.1310557723045349,
0.4414905309677124,
-0.1539938747882843,
0.8269532918930054,
0.3067978024482727,
0.02855307050049305,
0.21140676736831665,
-0.21272440254688263,
0.6402556300163269,
-0.005048241000622511,
-0.2645457684993744,
0.16216160356998444,
0.3845384418964386,
0.028124017640948296,
0.07110504806041718,
0.08099214732646942,
0.3834074139595032,
-0.06176970526576042,
0.13071787357330322,
-0.35026586055755615,
0.012170725502073765,
-0.17113450169563293,
0.033311307430267334,
0.43690985441207886,
-0.1325220763683319,
0.016750335693359375,
-0.09214406460523605,
-0.024612825363874435,
0.01598271168768406,
0.48724427819252014,
0.24053676426410675,
0.11354444921016693,
-0.011386518366634846,
-0.4339262545108795,
-0.41451558470726013,
0.18898886442184448,
-0.11341831833124161,
0.3609560430049896,
-0.19973674416542053,
0.1450026035308838,
0.22089524567127228,
0.12926194071769714,
0.7559735178947449,
-0.0684143677353859,
-0.2122821807861328,
-0.07926420867443085,
-0.027647245675325394,
-0.690304160118103,
-0.13615889847278595,
-0.15788127481937408,
0.06702308356761932,
0.45560407638549805,
0.021315205842256546,
-0.2783052921295166,
-0.18880465626716614,
0.32213932275772095,
0.02669128216803074,
0.0881485566496849,
-0.3671649396419525,
-0.4545166492462158,
-0.4209938049316406,
-0.32653820514678955,
-0.08432798832654953,
0.09370310604572296,
-0.03638773038983345,
-0.15793843567371368,
0.2681905925273895,
-0.057695407420396805,
0.10779223591089249,
0.10956984758377075,
0.09963297098875046,
0.03580239787697792,
-0.24229654669761658,
0.20982415974140167,
0.1346708983182907,
-0.024849390611052513,
0.19330750405788422,
0.5703615546226501,
-0.09885376691818237,
-0.6263924241065979,
-0.107274129986763,
0.10948947817087173,
0.3423614501953125,
0.20462191104888916,
-0.1804574429988861,
0.03366577625274658,
0.1568722426891327,
0.2679290473461151,
-0.07990685105323792,
-0.09836219251155853,
0.37391141057014465,
0.2174788862466812,
-0.099006786942482,
-0.09266120940446854,
0.2381318062543869,
0.381963312625885,
0.13730600476264954,
-0.10196605324745178,
0.3287493586540222,
-0.04224428907036781,
0.23446346819400787,
-0.105982206761837,
0.7789873480796814,
-0.08670248091220856,
0.15908150374889374,
0.6274833083152771,
-0.07650440186262131,
0.8931114673614502,
-0.39305898547172546,
0.07220247387886047,
-0.23303642868995667,
0.07848810404539108,
0.0208488367497921,
-0.13310346007347107,
0.46616464853286743,
-0.028379399329423904,
-0.1705230474472046,
0.2575989365577698,
0.33623549342155457,
-0.12261483073234558,
0.16748258471488953,
0.06264352798461914,
-0.12709097564220428,
-0.10525327920913696,
-0.3380536437034607,
0.11018731445074081,
0.04854606091976166,
0.33557114005088806,
-0.15527869760990143,
0.21168646216392517,
-0.30332374572753906,
-0.17893609404563904,
-0.38920852541923523,
-0.036401037126779556,
0.044395238161087036,
0.35371971130371094,
0.4338510036468506,
-0.044384922832250595,
0.21676863729953766,
-0.21524086594581604,
0.681736409664154,
0.1902550309896469,
-0.3260292410850525,
0.3821088373661041,
-0.28358572721481323,
-0.2325637936592102,
0.08738097548484802,
0.03718029707670212,
0.08135869354009628,
-0.14988572895526886,
-0.4112222492694855,
0.06436052173376083,
-0.11442932486534119,
-0.13162477314472198,
-0.2042658030986786,
-0.07076180726289749,
-0.2570989429950714,
-0.18155135214328766,
-0.3102242350578308,
-0.052833545953035355,
0.2538760006427765,
-0.013730993494391441,
0.005024302285164595,
0.265323281288147,
-0.2492891401052475,
0.2417338490486145,
-0.27859750390052795,
-0.04180838167667389,
-0.22038628160953522,
0.157495379447937,
0.11258628964424133,
-0.318296879529953,
0.06299657374620438,
0.04994349181652069,
-0.16366848349571228,
-0.039562247693538666,
-0.36385613679885864,
-0.1107889860868454,
-0.26697489619255066,
-0.08406917750835419,
0.3426752984523773,
-0.2099536657333374,
-0.03030284121632576,
0.018672410398721695,
0.1352362185716629,
-0.30246996879577637,
0.021546009927988052,
-0.37459319829940796,
-0.015157441608607769,
0.10551321506500244,
-0.10559368878602982,
0.15610262751579285,
0.27247294783592224,
0.2867538332939148,
-0.011407128535211086,
-0.1035003513097763,
-0.14044445753097534,
0.05882192403078079,
0.04973027482628822,
-0.07307234406471252,
0.26192745566368103,
-0.028208179399371147,
0.23384657502174377,
-0.252137154340744,
0.07643887400627136,
-0.18874719738960266,
-0.14894963800907135,
-0.03887692838907242,
0.04491773620247841,
0.17105233669281006,
0.08942613005638123,
0.006613211240619421,
0.004244076553732157,
-0.04066640883684158,
-0.2779267430305481,
-0.0815335214138031,
0.19865548610687256,
0.17878033220767975,
-0.23271691799163818,
0.20870578289031982,
-0.42407307028770447,
-0.07514838129281998,
0.03020859882235527,
0.15743087232112885,
0.09575057774782181,
0.3788100481033325,
0.20758555829524994,
0.20722311735153198,
-0.1240365132689476,
0.12776906788349152,
-0.11835042387247086,
-0.002245110459625721,
0.12054280191659927,
0.1774633377790451,
0.15495866537094116,
-0.2892749607563019,
-0.12217254936695099,
-0.14259304106235504,
0.3925548791885376,
0.3052440285682678,
-0.11551477760076523,
0.17372319102287292,
0.4368031919002533,
0.099825419485569,
-0.3585014343261719,
0.03401433303952217,
0.4373783767223358,
0.028970634564757347,
-0.017688347026705742,
0.2994973659515381,
0.21533071994781494,
-0.010512737557291985,
0.2599742114543915,
0.2954029440879822,
0.25357580184936523,
0.1891099363565445,
0.10189569741487503,
-0.11949560046195984,
0.1733824461698532,
0.0737442821264267,
-0.030761215835809708,
0.10635695606470108,
0.11974799633026123,
0.5863202214241028,
-0.19236359000205994,
0.1603044718503952,
-0.13879363238811493,
0.13275881111621857,
0.1539238691329956,
-0.23219339549541473,
0.1293731927871704,
-0.23086553812026978,
0.10975350439548492,
-0.06122646853327751,
-0.18601468205451965,
0.2869596779346466,
-0.2451801300048828,
-0.2856748402118683,
-0.28433695435523987,
0.3253031075000763,
-0.1350783258676529,
-0.07879577577114105,
0.2950947880744934,
0.08361271023750305,
-0.023172255605459213,
-0.03775216266512871,
0.29061248898506165,
-0.42659616470336914,
0.16645914316177368,
0.30147799849510193,
-0.09525113552808762,
-0.4780471622943878,
-0.059266816824674606,
0.4519568085670471,
0.07460560649633408,
0.09841667860746384,
0.257108211517334,
-0.01594451442360878,
-0.39975705742836,
-0.13610561192035675,
0.3689000606536865,
0.7117066979408264,
0.1954546570777893,
0.10449714213609695,
0.15158717334270477,
-0.2034650444984436,
0.14907461404800415,
-0.08968204259872437,
0.12616394460201263,
-0.11061228811740875,
0.3228420317173004,
0.024203071370720863,
0.09705397486686707,
-0.020511116832494736,
-0.33077535033226013,
-0.0061042411252856255,
0.21469853818416595,
-0.2782031297683716,
0.15845085680484772,
-0.2380264848470688,
-0.08548645675182343,
-0.0862472876906395,
0.047984566539525986,
-0.6899207234382629,
0.14938950538635254,
0.24616076052188873,
0.12704825401306152,
-0.1731129139661789,
-0.3218347132205963,
-0.011932896450161934,
-0.10006764531135559,
0.17471815645694733,
0.6672791838645935,
0.3155691921710968,
-0.24675323069095612,
-0.17198443412780762,
-0.3748018741607666,
0.12807270884513855,
-0.2415076643228531,
-0.2867240309715271,
0.07837433367967606,
0.03264741599559784,
-0.06080610677599907,
0.1358949840068817,
0.322925329208374,
-0.07124004513025284,
-0.05365375056862831,
0.04417384788393974,
-0.09277556091547012,
-0.15435105562210083,
-0.16386936604976654,
-0.21261505782604218,
0.21310003101825714,
0.07460279017686844,
-0.004010957665741444,
-0.15278154611587524,
-0.14404729008674622,
-0.16836825013160706,
0.18016409873962402,
-0.040972065180540085,
-0.34122294187545776,
0.537692666053772,
0.21971391141414642,
0.2743600904941559,
-0.0054460689425468445,
-0.33489662408828735,
-0.27083349227905273,
-0.2661757171154022,
-0.11135658621788025,
0.38955432176589966,
-0.1045997217297554,
0.07462748885154724,
-0.3636819124221802,
-0.3409636914730072,
-0.3371862769126892,
0.4985400140285492,
0.2556684911251068,
-0.460246741771698,
0.01960853859782219,
0.3215567171573639,
-0.3260333240032196,
0.42325565218925476,
0.1707066148519516,
0.2509985566139221,
-0.11472050100564957,
0.5524259209632874,
-0.21265070140361786,
-0.18025244772434235,
0.3853510320186615,
-0.18646389245986938,
-0.21237710118293762,
-0.10889988392591476,
0.2661760151386261,
0.20092785358428955,
-0.1819353997707367,
-0.8109847903251648,
0.037859395146369934,
0.1709182858467102,
0.2873190939426422,
-0.12085117399692535,
0.10789808630943298,
-0.01830555871129036,
-0.08173926174640656,
-0.00005838488141307607,
0.4948093295097351,
-0.19482415914535522,
-0.03302028030157089,
0.4954161047935486,
-0.0978304073214531
] |
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.5645694732666016,
-0.1257421374320984,
-0.11738567799329758,
-0.16663233935832977,
-0.07130637764930725,
-0.08488146215677261,
0.3084895610809326,
0.3450717628002167,
0.10161613672971725,
0.4008842408657074,
0.25867587327957153,
0.1760064661502838,
0.02997964434325695,
0.1242409273982048,
0.10664781928062439,
0.09380567818880081,
0.019551467150449753,
0.13133609294891357,
-0.26057034730911255,
-0.04889403656125069,
-0.35636332631111145,
-0.021741323173046112,
-0.028544211760163307,
-0.1431758850812912,
-0.3056109845638275,
-0.1653454601764679,
-0.08609572798013687,
0.08222398906946182,
0.0034819524735212326,
-0.2213502675294876,
0.1820409893989563,
0.544422447681427,
0.278900146484375,
0.4126891791820526,
-0.00010320146247977391,
-0.039075009524822235,
0.2969445288181305,
0.005295893643051386,
-0.3610215485095978,
-0.1338658481836319,
-0.13567383587360382,
-0.3160059452056885,
0.020559363067150116,
-0.2597050368785858,
0.021185994148254395,
-0.18797630071640015,
0.24615822732448578,
-0.4733569622039795,
0.059672389179468155,
-0.12504930794239044,
0.2303161472082138,
0.3476177752017975,
-0.21905012428760529,
-0.20336677134037018,
-0.15402807295322418,
-0.021297896280884743,
-0.160162553191185,
0.14142504334449768,
0.5995053052902222,
-0.34296727180480957,
-0.17964087426662445,
0.16889944672584534,
-0.026812298223376274,
0.32146990299224854,
0.25886961817741394,
0.02803441882133484,
0.29286685585975647,
-0.47369974851608276,
-0.032228533178567886,
0.2586955726146698,
0.32232004404067993,
-0.06537143141031265,
-0.4411681294441223,
-0.4137687087059021,
0.15032358467578888,
-0.17807233333587646,
0.0981079638004303,
0.42713463306427,
-0.3625377416610718,
0.17949970066547394,
-0.32710060477256775,
0.030962694436311722,
-0.04442601650953293,
-0.022891100496053696,
0.04598274454474449,
0.4582175612449646,
0.13881172239780426,
0.16112057864665985,
0.25763702392578125,
0.09652930498123169,
0.36225566267967224,
-0.13684186339378357,
0.37201544642448425,
0.09391195327043533,
-0.3785073459148407,
-0.050351083278656006,
0.10096076130867004,
-0.17616674304008484,
0.24986077845096588,
-0.021128732711076736,
0.25964483618736267,
-0.0036762531381100416,
-0.04632100835442543,
0.2976040244102478,
0.31919407844543457,
-0.3273787200450897,
-0.1877821534872055,
-0.07947807013988495,
0.24419113993644714,
-0.1838883012533188,
-0.011004231870174408,
0.04017516225576401,
-0.048452239483594894,
-0.21982668340206146,
0.27788662910461426,
0.08125103265047073,
0.01878003403544426,
0.16214118897914886,
-0.15372714400291443,
-0.20232753455638885,
0.02090449444949627,
-0.07036920636892319,
0.0725860446691513,
0.08114288002252579,
-0.04977373033761978,
0.5781393647193909,
-0.14436504244804382,
0.0651179775595665,
-0.20283834636211395,
-0.19455298781394958,
-0.08283621817827225,
0.031130095943808556,
-0.22068928182125092,
0.21423140168190002,
0.3574276268482208,
0.03541605919599533,
0.09633072465658188,
0.20901073515415192,
0.29675060510635376,
-0.010974215343594551,
0.4788139760494232,
-0.11229459941387177,
0.14742322266101837,
0.156732439994812,
0.0870094895362854,
-0.12289729714393616,
-0.16401289403438568,
-0.11951758712530136,
-0.225335493683815,
0.14519473910331726,
-0.06995610892772675,
-0.4257093667984009,
-0.15937700867652893,
0.24951155483722687,
-0.055491406470537186,
0.10533442348241806,
-0.1263088881969452,
0.2614249587059021,
0.1310815066099167,
0.18033377826213837,
-0.09152322262525558,
-0.15755504369735718,
-0.2608858048915863,
-0.06025153771042824,
0.32580795884132385,
0.28316226601600647,
-0.13008885085582733,
0.2780073285102844,
0.04425188899040222,
0.08563484251499176,
0.11659052222967148,
0.12387573719024658,
-0.11026913672685623,
0.21282263100147247,
-0.14145103096961975,
-0.05214959755539894,
0.23807191848754883,
-0.11730095744132996,
-0.08123935759067535,
0.31363096833229065,
-0.05799780413508415,
0.03890322148799896,
0.16179412603378296,
0.13473553955554962,
0.2970612943172455,
-0.09065315127372742,
0.24213682115077972,
0.4703315198421478,
-0.3758891820907593,
0.2193630486726761,
-0.21167254447937012,
-0.17388544976711273,
-0.16884814202785492,
0.24700070917606354,
0.15680204331874847,
0.2567704916000366,
-0.07407771050930023,
-0.24900735914707184,
0.4859025478363037,
-0.2836574614048004,
0.29440557956695557,
-0.09350910037755966,
-0.08243255317211151,
0.1030862033367157,
0.13913454115390778,
-0.41606220602989197,
-0.2420693337917328,
0.37609222531318665,
0.16979829967021942,
-0.056764811277389526,
0.0959123894572258,
-0.1960008442401886,
0.05447499454021454,
0.13229776918888092,
-0.08760339021682739,
0.1565963625907898,
0.11579283326864243,
0.10266681015491486,
-0.060353267937898636,
-0.44134289026260376,
-0.37515053153038025,
0.19578784704208374,
-0.05842575803399086,
-0.18461568653583527,
-0.17081473767757416,
0.13694922626018524,
0.21262496709823608,
-0.2457500696182251,
0.1577998399734497,
0.08275416493415833,
-0.03188735246658325,
-0.14568598568439484,
0.05263825133442879,
0.25075656175613403,
-0.09951817989349365,
0.32895562052726746,
0.18441656231880188,
0.36269888281822205,
0.11388751864433289,
0.16896171867847443,
0.05482636019587517,
0.01979140192270279,
0.03136084973812103,
-0.0820288136601448,
-0.15652874112129211,
0.48702648282051086,
-0.3659537732601166,
0.34551262855529785,
0.1757371872663498,
0.17595407366752625,
0.4313525855541229,
0.15705789625644684,
-0.1642206311225891,
0.08361998945474625,
0.08563126623630524,
-0.00010044471855508164,
0.33670103549957275,
-0.01095813512802124,
-0.451465904712677,
0.31994372606277466,
0.1571618914604187,
-0.18239177763462067,
0.03319637104868889,
0.042289845645427704,
0.33000481128692627,
-0.11012415587902069,
0.14487959444522858,
0.2291247397661209,
0.5229942798614502,
0.21548539400100708,
0.21878553926944733,
-0.1615590751171112,
-0.19443123042583466,
-0.06886330246925354,
0.1502072513103485,
-0.010294216684997082,
0.32090523838996887,
0.07039479166269302,
0.13579043745994568,
-0.23691599071025848,
-0.33640143275260925,
-0.38293251395225525,
0.11677525192499161,
0.03662630170583725,
-0.0017938234377652407,
0.11083284020423889,
-0.010828694328665733,
0.19827096164226532,
-0.25546884536743164,
0.21441061794757843,
-0.04701219126582146,
-0.3205990791320801,
-0.04061249643564224,
0.5437675714492798,
-0.09951761364936829,
0.1028357446193695,
-0.05702142417430878,
0.23255802690982819,
-0.17851993441581726,
0.12159398943185806,
-0.18590915203094482,
-0.0988350659608841,
-0.0075361221097409725,
0.09079525619745255,
-0.08575358241796494,
0.06735670566558838,
0.457722008228302,
-0.0036936227697879076,
-0.10432838648557663,
-0.4235873818397522,
0.13136723637580872,
0.06953907012939453,
0.03521573916077614,
0.1806473433971405,
0.2100236862897873,
0.03486482426524162,
0.15395691990852356,
-0.22947941720485687,
0.18659909069538116,
-0.26712796092033386,
0.10108183324337006,
-0.13958999514579773,
-0.15016795694828033,
-0.04377993196249008,
-0.07803543657064438,
-0.09349389374256134,
-0.3203545808792114,
-0.42227715253829956,
0.11015062034130096,
-0.02028522454202175,
0.23650318384170532,
-0.21057181060314178,
0.07972706854343414,
-0.13828039169311523,
0.328504741191864,
-0.05092943459749222,
-0.1423628032207489,
-0.6931469440460205,
0.2833699882030487,
-0.2654668688774109,
-0.1514151245355606,
-0.1869238018989563,
-0.16856332123279572,
0.07718368619680405,
0.4729086458683014,
-0.1621154099702835,
-0.057804834097623825,
-0.23348180949687958,
0.19058553874492645,
-0.1642945259809494,
0.09985333681106567,
0.23695893585681915,
0.11016801744699478,
-0.07866643369197845,
-0.19191382825374603,
-0.16307653486728668,
0.08092989772558212,
0.056318365037441254,
-0.10016322135925293,
0.17887452244758606,
0.2567812204360962,
0.04139193147420883,
0.7725024223327637,
0.21941344439983368,
0.19881127774715424,
0.24022114276885986,
0.007834297604858875,
-0.08333727717399597,
0.022149845957756042,
-0.2844361662864685,
0.08309613168239594,
-0.23488472402095795,
-0.03294692188501358,
0.05592656508088112,
0.06161433830857277,
-0.3387678861618042,
-0.020814741030335426,
0.010364248417317867,
-0.22486287355422974,
-0.26320913434028625,
0.17908693850040436,
-0.3586716651916504,
0.3584166169166565,
0.002419960219413042,
0.03394979611039162,
-0.49188461899757385,
0.17249435186386108,
-0.19600693881511688,
-0.039929769933223724,
0.36791297793388367,
-0.10989270359277725,
-0.2278316169977188,
0.04423408582806587,
-0.6570863723754883,
0.07784309983253479,
0.08627082407474518,
0.30427682399749756,
0.3668861985206604,
-0.017518067732453346,
0.09849073737859726,
-0.17233893275260925,
0.7410873174667358,
-0.24854479730129242,
0.1069442629814148,
0.0468897745013237,
-0.40140900015830994,
-0.18666845560073853,
-0.12998805940151215,
-0.09002918004989624,
0.5101509094238281,
-0.002125212922692299,
0.1709717959165573,
-0.27824223041534424,
-0.3481650650501251,
0.3125016689300537,
0.04525722190737724,
-0.14663518965244293,
-0.4707908630371094,
-0.28487610816955566,
-0.3556039333343506,
-0.15812259912490845,
0.1461631953716278,
0.07102004438638687,
0.24423977732658386,
-0.1179487332701683,
-0.26937222480773926,
-0.11283125728368759,
0.04515692591667175,
0.18886636197566986,
0.23912860453128815,
-0.19605155289173126,
-0.07997582852840424,
0.3443267345428467,
0.31949493288993835,
-0.11298548430204391,
-0.04404333978891373,
0.29809510707855225,
-0.24025572836399078,
-0.19704793393611908,
0.2273581176996231,
-0.1342850923538208,
0.3759772479534149,
0.2793295681476593,
0.02168368734419346,
-0.09374722838401794,
0.08570738881826401,
0.2703038454055786,
-0.4555911719799042,
-0.15940870344638824,
0.18104633688926697,
0.02733161859214306,
-0.260070264339447,
-0.7640812993049622,
0.395516961812973,
0.13336095213890076,
-0.02824575826525688,
0.5454915761947632,
-0.46787333488464355,
-0.06739124655723572,
0.25048449635505676,
0.16167521476745605,
0.6716309785842896,
-0.43814942240715027,
-0.009694725275039673,
-0.05433268845081329,
0.17368443310260773,
0.25333136320114136,
-0.4068734049797058,
0.3735167980194092,
-0.24737121164798737,
-0.49624478816986084,
0.0433148629963398,
-0.04017713665962219,
-0.04039039835333824,
0.5621013641357422,
-0.10479718446731567,
0.26372820138931274,
0.25774237513542175,
-0.09861897677183151,
-0.10238683223724365,
0.520885169506073,
-0.4047092795372009,
-0.4902951717376709,
-0.3534140884876251,
0.16126827895641327,
0.1444067656993866,
-0.15427649021148682,
-0.20182085037231445,
-0.049142058938741684,
0.33021119236946106,
0.035274457186460495,
-0.2761577367782593,
-0.05811053887009621,
0.030856449156999588,
0.142006978392601,
0.17244304716587067,
-0.15200525522232056,
0.000706959399394691,
-0.0017293111886829138,
-0.06005940958857536,
-0.04289073124527931,
-0.04318021237850189,
0.06728287786245346,
-0.0735357329249382,
0.3222300410270691,
-0.04569096490740776,
-0.14481890201568604,
0.1478889435529709,
-0.117367222905159,
-0.35600751638412476,
-0.017421778291463852,
0.06590231508016586,
-0.29800695180892944,
-0.052438411861658096,
0.08761284500360489,
0.19001322984695435,
0.07767397165298462,
0.17396479845046997,
0.22074595093727112,
-0.07747635245323181,
-0.26346051692962646,
0.17730340361595154,
0.25921565294265747,
-0.15912999212741852,
0.412106990814209,
-0.13346755504608154,
-0.17215894162654877,
-0.0717407688498497,
0.018981268629431725,
0.14351536333560944,
0.298317551612854,
0.1975509375333786,
0.22814443707466125,
-0.13072310388088226,
-0.2915337085723877,
-0.09616139531135559,
-0.014620982110500336,
-0.2505439817905426,
0.3830244243144989,
-0.10701194405555725,
-0.21703311800956726,
0.1276378035545349,
0.036373138427734375,
0.14224089682102203,
-0.08980666846036911,
-0.10928315669298172,
-0.3186969459056854,
0.02993105538189411,
-0.05896682292222977,
-0.057234011590480804,
0.12044975161552429,
0.11068452894687653,
0.062714122235775,
0.133747398853302,
0.16240015625953674,
-0.42239099740982056,
-0.24373014271259308,
-0.33165451884269714,
0.2030821144580841,
-0.089717797935009,
-0.0881289690732956,
-0.30600401759147644,
0.15482954680919647,
0.18435890972614288,
0.04275304079055786,
-0.1568901538848877,
-0.2756625711917877,
-0.14216676354408264,
0.10927866399288177,
-0.20880047976970673,
-0.042071785777807236,
0.32861611247062683,
-0.11366092413663864,
-0.47733640670776367,
-0.4502687156200409,
0.09903989732265472,
-0.016869228333234787,
-0.1017279252409935,
-0.0424429252743721,
0.47188693284988403,
-0.04756684601306915,
-0.12522701919078827,
0.08596454560756683,
0.05606577545404434,
0.0705871731042862,
-0.20480388402938843,
0.4086605906486511,
0.3737765848636627,
-0.1439298838376999,
0.21861055493354797,
0.0627007931470871,
0.08578311651945114,
0.07128962129354477,
0.3711370825767517,
0.09882226586341858,
-0.021230056881904602,
0.18422119319438934,
0.4321989119052887,
0.33892154693603516,
0.07686959952116013,
0.1310526579618454,
0.07684290409088135,
0.306186318397522,
-0.25096413493156433,
-0.24065102636814117,
0.19404906034469604,
0.05349099263548851,
0.3035959303379059,
0.36341506242752075,
0.06040676683187485,
-0.07095905393362045,
0.11781337112188339,
-0.001364904223009944,
0.14019262790679932,
-0.5134746432304382,
0.04883966222405434,
-0.07163842022418976,
0.1603371500968933,
0.030135193839669228,
0.2439606934785843,
-0.018876206129789352,
0.06726387143135071,
0.3109548091888428,
0.09548597037792206,
0.40057799220085144,
0.2080342322587967,
0.1054893434047699,
0.17099595069885254,
-0.3073974847793579,
0.0586872398853302,
-0.06875655055046082,
-0.19440600275993347,
0.191381573677063,
0.042352620512247086,
0.03219176456332207,
-0.5813711881637573,
0.10255790501832962,
-0.3715052604675293,
0.0990832969546318,
-0.009725447744131088,
-0.17690372467041016,
-0.09221100807189941,
-0.21760128438472748,
-0.05914336070418358,
-0.05306530371308327,
-0.014272293075919151,
-0.02280769683420658,
0.6877742409706116,
-0.016342991963028908,
0.33825457096099854,
-0.32577845454216003,
0.11435922980308533,
-0.14253340661525726,
0.3084830641746521,
-0.3558637797832489,
-0.02182607725262642,
0.16390928626060486,
-0.18026846647262573,
-0.13801605999469757,
0.4435689449310303,
0.22273355722427368,
0.557307779788971,
-0.16428016126155853,
0.21057400107383728,
-0.2797246277332306,
0.004335766192525625,
-0.42942169308662415,
0.1043739840388298,
-0.08202662318944931,
0.0729990303516388,
0.33815956115722656,
0.19283360242843628,
-0.141285702586174,
-0.1535683274269104,
0.18155422806739807,
-0.16772085428237915,
-0.43976539373397827,
0.23384550213813782,
0.2389792948961258,
-0.18498444557189941,
0.033512480556964874,
0.21206367015838623,
-0.18951694667339325,
-0.03477133810520172,
0.46340012550354004,
-0.39115244150161743,
0.030899573117494583,
-0.0786001905798912,
0.13284984230995178,
-0.13139475882053375,
0.6261093616485596,
0.03335621580481529,
0.19732950627803802,
-0.23472917079925537,
-0.06864313036203384,
-0.4603087306022644,
-0.0685923621058464,
-0.3893320858478546,
0.0762343779206276,
0.19152188301086426,
0.44227322936058044,
0.009623792953789234,
0.25473135709762573,
0.030657028779387474,
0.09152684360742569,
-0.06733178347349167,
0.48430973291397095,
-0.20872479677200317,
-0.34801462292671204,
-0.04061678424477577,
0.10163617879152298,
0.037581250071525574,
-0.5921881794929504,
0.2953982949256897,
-0.14193174242973328,
0.1797691285610199,
-0.1234496459364891,
-0.039219778031110764,
0.47719553112983704,
-0.13515378534793854,
0.23897241055965424,
0.17789766192436218,
0.13986290991306305,
-0.23257987201213837,
-0.029272137209773064,
-0.28650182485580444,
0.02022383362054825,
-0.2869168519973755,
0.1610228717327118,
0.044106680899858475,
0.06869735568761826,
-0.2110843062400818,
0.10744201391935349,
-0.31952157616615295,
0.03396891802549362,
-0.10483861714601517,
0.1596546322107315,
-0.10114455223083496,
0.1625240445137024,
-0.17859579622745514,
0.19426080584526062,
-0.08938527852296829,
0.3384365439414978,
-0.007113323081284761,
0.0096890889108181,
-0.19547781348228455,
-0.27167177200317383,
0.15823879837989807,
-0.42150917649269104,
-0.5883428454399109,
-0.5599817037582397,
0.2254885733127594,
-0.03598804026842117,
0.1533374935388565,
-0.19419504702091217,
-0.035768285393714905,
0.2993846833705902,
-0.022938759997487068,
-0.1977115422487259,
0.23846876621246338,
0.11192508041858673,
-0.23391419649124146,
-0.17139314115047455,
0.12607240676879883,
-0.022645074874162674,
-0.4274652898311615,
0.01513209380209446,
-0.3583349883556366
] |
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.1947145313024521,
-0.053735580295324326,
0.02546357363462448,
0.44269487261772156,
0.16262806951999664,
0.04455475136637688,
0.03178970143198967,
0.41505903005599976,
0.06906209141016006,
-0.005340626463294029,
-0.24613511562347412,
-0.1570810228586197,
0.38392627239227295,
-0.22932502627372742,
-0.10174686461687088,
-0.512118935585022,
0.18753916025161743,
0.015904057770967484,
0.0008705156506039202,
-0.04527636617422104,
-0.19959716498851776,
-0.05253204330801964,
-0.18490277230739594,
0.032915618270635605,
-0.25196394324302673,
-0.05890481919050217,
-0.024784697219729424,
-0.03092031553387642,
-0.3356662392616272,
-0.2533813714981079,
0.2615022659301758,
0.19388557970523834,
0.30409032106399536,
0.39660242199897766,
-0.00012327195145189762,
-0.08041933923959732,
0.5516073107719421,
-0.0958511158823967,
-0.5192877650260925,
0.10045786201953888,
-0.2622402310371399,
-0.4349920451641083,
-0.24894505739212036,
-0.41460561752319336,
0.10611777752637863,
-0.16548864543437958,
0.25905436277389526,
-0.2643609046936035,
0.2706877887248993,
-0.05700378492474556,
0.11586438119411469,
0.16684046387672424,
0.036477044224739075,
-0.23297706246376038,
0.4131918251514435,
0.1898481249809265,
0.039034854620695114,
0.029267435893416405,
-0.14515283703804016,
0.06369682401418686,
0.05425460636615753,
0.23192131519317627,
-0.25389382243156433,
-0.022560110315680504,
0.15144191682338715,
0.008227810263633728,
-0.3298265039920807,
-0.4701974391937256,
0.44264525175094604,
0.45182734727859497,
0.9045648574829102,
-0.019125835970044136,
-0.5640501379966736,
0.05857369303703308,
-0.12373580783605576,
0.09843394160270691,
0.21930865943431854,
0.08888667076826096,
0.0514308400452137,
0.07752819359302521,
0.23212863504886627,
-0.2720438838005066,
-0.16567382216453552,
0.5533046722412109,
-0.024796539917588234,
0.2829136252403259,
-0.056256283074617386,
0.058129481971263885,
-0.14148467779159546,
-0.3711187541484833,
-0.18177421391010284,
-0.35215774178504944,
-0.07461311668157578,
0.41618266701698303,
0.006563258823007345,
-0.005654980428516865,
-0.06063175946474075,
0.048359137028455734,
0.18351955711841583,
-0.33251065015792847,
-0.09417368471622467,
0.001686588628217578,
-0.14926594495773315,
0.06138042360544205,
0.35832205414772034,
-0.3411809206008911,
0.16155165433883667,
-0.09281560033559799,
0.6022839546203613,
0.20459559559822083,
0.3402927815914154,
-0.12075681239366531,
0.14365889132022858,
-0.25610271096229553,
-0.47325029969215393,
-0.13153794407844543,
0.3441407084465027,
-0.3749162256717682,
-0.02175029180943966,
0.22559575736522675,
-0.26836952567100525,
-0.13827048242092133,
-0.1619238704442978,
0.2328365445137024,
-0.1926223486661911,
0.49053630232810974,
0.26410549879074097,
0.3150084912776947,
-0.30329692363739014,
-0.26047247648239136,
-0.03650319203734398,
0.20983655750751495,
0.06976700574159622,
0.11547549068927765,
0.12123581767082214,
0.12548163533210754,
0.3096587359905243,
0.1305263638496399,
-0.40900591015815735,
-0.17766308784484863,
-0.1842096745967865,
-0.371351957321167,
-0.3349805772304535,
0.12221027910709381,
0.161167711019516,
0.6101638674736023,
-0.19690068066120148,
-0.032628729939460754,
-0.18640658259391785,
0.0577012337744236,
-0.30591267347335815,
0.0471695251762867,
0.03319413214921951,
0.06513157486915588,
-0.33001112937927246,
0.1294773519039154,
-0.10134324431419373,
0.2805505394935608,
0.11381972581148148,
-0.0870746299624443,
-0.04202315956354141,
0.14214685559272766,
-0.5038469433784485,
-0.23221231997013092,
0.31213462352752686,
0.5738970041275024,
-0.28419098258018494,
-0.21173115074634552,
-0.27716004848480225,
-0.052762892097234726,
0.39935484528541565,
0.3285747468471527,
-0.1766904890537262,
0.5292118787765503,
-0.1388203203678131,
0.3341921269893646,
0.3454718291759491,
0.003302516182884574,
-0.2640659511089325,
0.3298968970775604,
0.09333399683237076,
-0.010324018076062202,
0.1576758772134781,
0.05655858665704727,
0.3707052171230316,
-0.20291996002197266,
0.025695985183119774,
0.4108985960483551,
0.17302559316158295,
-0.005599294789135456,
-0.46276891231536865,
-0.18433606624603271,
0.11909365653991699,
0.008906087838113308,
0.4738457202911377,
-0.15733541548252106,
0.2517450153827667,
0.8539648056030273,
0.1662379652261734,
-0.0764201283454895,
0.33806470036506653,
0.4670505225658417,
-0.19457286596298218,
-0.08289188146591187,
0.08622419834136963,
0.0015233922749757767,
-0.06674673408269882,
0.1740826666355133,
-0.012885795906186104,
0.07224754244089127,
-0.04815077781677246,
-0.08054188638925552,
-0.43369293212890625,
-0.13219301402568817,
0.07811544090509415,
0.22171205282211304,
0.06278759986162186,
0.016171002760529518,
0.1256854385137558,
0.40312376618385315,
0.3853699862957001,
-0.2860010266304016,
0.02745148353278637,
-0.07651480287313461,
-0.2527937591075897,
0.3991643786430359,
-0.11519084125757217,
0.13576312363147736,
0.11575835198163986,
-0.11026176810264587,
0.4241470396518707,
0.09139922261238098,
-0.08322007209062576,
0.12222565710544586,
0.14899836480617523,
0.2598080635070801,
0.199835866689682,
-0.20019176602363586,
0.45036986470222473,
-0.10481128096580505,
0.35331103205680847,
0.5322104692459106,
0.3143368065357208,
-0.1873883157968521,
-0.0633389800786972,
0.42489147186279297,
-0.09307151287794113,
-0.05436693876981735,
-0.12473304569721222,
0.003203729400411248,
0.4307146966457367,
-0.018759217113256454,
0.2190220206975937,
-0.14075544476509094,
0.24453921616077423,
0.30824416875839233,
-0.1421496868133545,
0.13835038244724274,
-0.4233991205692291,
-0.16385146975517273,
0.28584665060043335,
-0.18431371450424194,
0.24338141083717346,
-0.04082206264138222,
-0.20448996126651764,
-0.06033830717206001,
0.22062237560749054,
-0.05914778262376785,
0.1275751292705536,
0.10274572670459747,
0.232837975025177,
-0.29962435364723206,
0.23651236295700073,
-0.20047308504581451,
0.11677867919206619,
0.23465801775455475,
0.25341132283210754,
0.14895111322402954,
0.07077367603778839,
0.05596175044775009,
-0.13113316893577576,
0.325200617313385,
0.003400117624551058,
0.31124112010002136,
-0.14086852967739105,
-0.18172577023506165,
-0.33170944452285767,
-0.34253326058387756,
-0.22657497227191925,
0.09984161704778671,
-0.36349430680274963,
-0.3806301951408386,
0.16730603575706482,
0.12903189659118652,
-0.37076687812805176,
0.038968704640865326,
-0.212452232837677,
-0.15537554025650024,
0.01964237354695797,
0.036152709275484085,
-0.20181868970394135,
-0.22612418234348297,
-0.20626144111156464,
-0.045243412256240845,
0.41512393951416016,
0.2590595781803131,
0.12066080421209335,
-0.11632982641458511,
-0.42472437024116516,
-0.5023561120033264,
-0.18355922400951385,
0.07738485187292099,
0.09997650235891342,
0.15631349384784698,
-0.0653548389673233,
0.5579110383987427,
-0.05104617029428482,
-0.04525119066238403,
0.1225932389497757,
-0.006121524143964052,
-0.08575313538312912,
0.11557637155056,
-0.07134666293859482,
0.18992722034454346,
-0.14555814862251282,
-0.2589738070964813,
-0.17144978046417236,
-0.30567553639411926,
-0.0707051008939743,
-0.05721094086766243,
0.11680427938699722,
-0.2959669530391693,
0.187505304813385,
-0.018198203295469284,
0.2588409185409546,
0.22275543212890625,
-0.25542548298835754,
-0.09848744422197342,
0.5742357969284058,
-0.08384886384010315,
-0.4717200696468353,
0.12958475947380066,
-0.14848294854164124,
0.007613891735672951,
0.18798048794269562,
-0.27970170974731445,
0.12193126231431961,
0.11807921528816223,
0.17069166898727417,
0.2602596580982208,
0.09072990715503693,
0.05542883649468422,
-0.29788103699684143,
0.10816635191440582,
-0.05249708518385887,
0.22238372266292572,
-0.14971931278705597,
-0.17315685749053955,
0.45687299966812134,
0.3794940710067749,
0.46065983176231384,
0.004209460690617561,
0.783333957195282,
0.08993612229824066,
0.2961520850658417,
0.314629465341568,
0.428823322057724,
0.24463553726673126,
0.12490824609994888,
0.012361106462776661,
0.014899353496730328,
0.06303559988737106,
-0.005876168608665466,
0.30741915106773376,
0.06474737823009491,
-0.21913796663284302,
-0.3265363574028015,
-0.44280463457107544,
-0.35696160793304443,
-0.3261871635913849,
-0.14516673982143402,
0.18182304501533508,
0.20523568987846375,
0.03869934380054474,
0.3887407183647156,
-0.05832727998495102,
-0.309698224067688,
0.21003495156764984,
0.20911695063114166,
0.20575428009033203,
0.2603687644004822,
-0.20302926003932953,
0.020009538158774376,
-0.6251592636108398,
0.3266807496547699,
0.037628963589668274,
0.44890329241752625,
0.1211349293589592,
-0.04260845482349396,
-0.006489913910627365,
-0.0114137576892972,
0.19116006791591644,
-0.2258448302745819,
0.24868011474609375,
-0.036981113255023956,
0.004987434484064579,
-0.33698612451553345,
0.030682023614645004,
-0.2206840217113495,
0.32591313123703003,
0.5136595368385315,
0.12974238395690918,
-0.6778851747512817,
-0.22523340582847595,
0.04361002892255783,
0.2859039008617401,
-0.0816393718123436,
-0.00030234784935601056,
-0.12392700463533401,
-0.3683076500892639,
-0.19829219579696655,
-0.0900629386305809,
-0.02205200493335724,
0.16231310367584229,
-0.16826629638671875,
0.2582766115665436,
-0.22031934559345245,
0.3745954632759094,
0.051145050674676895,
0.06592203676700592,
0.20082761347293854,
0.015101490542292595,
0.19743351638317108,
0.23431193828582764,
-0.00459615234285593,
0.2846347987651825,
0.3751881420612335,
0.1319926232099533,
-0.28749436140060425,
-0.042127061635255814,
-0.08918511867523193,
-0.20773668587207794,
0.22244729101657867,
-0.0696760043501854,
0.22122591733932495,
0.22677800059318542,
-0.14865674078464508,
-0.04792080447077751,
-0.02206944115459919,
0.18862202763557434,
-0.08271830528974533,
-0.39924824237823486,
-0.14235728979110718,
0.4184010326862335,
0.19389119744300842,
-0.08002821356058121,
-0.14627987146377563,
0.13739150762557983,
-0.20489013195037842,
0.042297374457120895,
0.11781735718250275,
0.9017552733421326,
-0.13789300620555878,
0.1099577322602272,
-0.008432693779468536,
0.004832056816667318,
0.749772310256958,
-0.0360589325428009,
0.03833583742380142,
-0.3155224025249481,
0.09126899391412735,
-0.04377613216638565,
0.34152159094810486,
0.11268260329961777,
0.03542286530137062,
-0.19192329049110413,
0.4076785743236542,
0.19494874775409698,
0.25753676891326904,
0.016373367980122566,
0.4060840606689453,
0.062497202306985855,
-0.2345496565103531,
-0.5463212132453918,
0.04620476812124252,
-0.3144662082195282,
0.41049954295158386,
-0.23535795509815216,
-0.23598124086856842,
-0.20679667592048645,
-0.26715120673179626,
-0.05668352544307709,
0.1418091058731079,
-0.03468083217740059,
0.2981497645378113,
-0.07137302309274673,
-0.4402925372123718,
0.1721666008234024,
0.2931367754936218,
0.11639726161956787,
0.22523945569992065,
-0.24506793916225433,
0.05529571324586868,
-0.5325856804847717,
-0.38061368465423584,
-0.16978076100349426,
0.1576581448316574,
0.11665483564138412,
-0.025762636214494705,
-0.19546641409397125,
0.09033690392971039,
-0.11230171471834183,
0.11753197759389877,
-0.22127318382263184,
0.004159857984632254,
-0.38345998525619507,
0.05329641327261925,
-0.41731879115104675,
-0.09473292529582977,
-0.1572711020708084,
-0.20402131974697113,
0.06885164231061935,
0.10827653855085373,
0.019342578947544098,
-0.13498756289482117,
0.09425090253353119,
-0.06339878588914871,
-0.027746347710490227,
0.5898221731185913,
0.20643232762813568,
0.21214242279529572,
0.43504905700683594,
0.179718017578125,
-0.4563687741756439,
-0.14930158853530884,
-0.030925225466489792,
-0.5784887075424194,
-0.22780820727348328,
-0.03562283143401146,
-0.22842885553836823,
0.18572565913200378,
-0.20331962406635284,
-0.16422739624977112,
0.04632101207971573,
-0.34682586789131165,
0.22724425792694092,
-0.4120406210422516,
-0.15290698409080505,
0.42455416917800903,
0.008603041991591454,
0.005323441233485937,
0.19622303545475006,
-0.12252376973628998,
0.04110901802778244,
0.05026993155479431,
-0.16072089970111847,
0.1442897766828537,
-0.2905445694923401,
0.2015252411365509,
0.25901809334754944,
0.09225761890411377,
-0.07890456914901733,
-0.09520287811756134,
-0.013244450092315674,
-0.1834612637758255,
-0.054305750876665115,
-0.011722596362233162,
-0.1304049789905548,
0.19483371078968048,
0.11450754106044769,
-0.1623736470937729,
0.2088940143585205,
-0.3206486701965332,
0.14756223559379578,
-0.13805843889713287,
-0.1336161494255066,
0.2696513533592224,
-0.029381806030869484,
0.18712161481380463,
0.27669721841812134,
0.20426040887832642,
-0.27104389667510986,
0.37882480025291443,
0.07928278297185898,
0.45948517322540283,
-0.011710402555763721,
0.3862803876399994,
0.44237273931503296,
-0.025481630116701126,
-0.28035596013069153,
0.026685787364840508,
-0.035965658724308014,
-0.21746917068958282,
0.30515608191490173,
-0.18160894513130188,
-0.0556710921227932,
0.43156543374061584,
0.10159634798765182,
0.26036012172698975,
-0.015609880909323692,
0.08559664338827133,
0.1956906020641327,
0.0698099434375763,
-0.364660382270813,
-0.15194076299667358,
0.437732458114624,
-0.0203537754714489,
-0.11069989204406738,
0.2261761575937271,
0.09326767921447754,
-0.22877717018127441,
0.09555941820144653,
0.1222154051065445,
-0.05295281857252121,
-0.009708376601338387,
0.210051029920578,
0.12761040031909943,
0.42848366498947144,
0.1411617398262024,
0.06254587322473526,
-0.11870454996824265,
0.009821806102991104,
-0.05782349035143852,
-0.07740426063537598,
0.23554627597332,
0.07428447902202606,
0.1460348665714264,
-0.2558201253414154,
-0.44922420382499695,
-0.09689025580883026,
0.38461801409721375,
-0.20907975733280182,
0.09106498956680298,
-0.09181521832942963,
0.1347716599702835,
0.2871342897415161,
-0.07846276462078094,
-0.24682043492794037,
0.2137862592935562,
-0.11079668253660202,
-0.18012449145317078,
-0.34088751673698425,
-0.34827372431755066,
-0.1132451668381691,
0.139922633767128,
0.06258143484592438,
-0.3009435534477234,
0.3215267062187195,
0.2096988707780838,
-0.1300753802061081,
-0.5181471705436707,
0.6111883521080017,
0.1073780506849289,
0.11829826235771179,
-0.34155023097991943,
-0.019241459667682648,
-0.1715453416109085,
-0.1120225265622139,
0.05449647828936577,
0.3561190366744995,
0.2328452616930008,
0.1988467425107956,
-0.27609363198280334,
-0.08597590029239655,
0.2533803880214691,
-0.022924985736608505,
0.0836351066827774,
0.06066642701625824,
0.12588664889335632,
0.014749940484762192,
0.40334346890449524,
0.02138856239616871,
-0.0314348004758358,
-0.21441768109798431,
0.3113024830818176,
-0.07794717699289322,
-0.05631430074572563,
-0.0922853946685791,
-0.22811122238636017,
-0.08082155138254166,
-0.05379949510097504,
-0.19177551567554474,
-0.42380520701408386,
0.02648218721151352,
-0.018996305763721466,
0.15616004168987274,
0.20948274433612823,
-0.15270352363586426,
-0.006661956198513508,
-0.25995397567749023,
0.2386317104101181,
0.3384183645248413,
0.07217422127723694,
-0.2710244953632355,
-0.10188333690166473,
-0.48171091079711914,
-0.0005999948480166495,
-0.5397917032241821,
0.050553277134895325,
-0.0656442865729332,
0.34693843126296997,
-0.06868139654397964,
0.07693640887737274,
0.1008954644203186,
-0.1663622111082077,
0.016630589962005615,
0.19903837144374847,
-0.30844834446907043,
-0.17131531238555908,
-0.1275113821029663,
0.013869591057300568,
-0.22123776376247406,
-0.47716665267944336,
0.28287723660469055,
-0.33650362491607666,
-0.07908500730991364,
-0.028813179582357407,
-0.013040699996054173,
0.031174181029200554,
0.256313681602478,
0.21920204162597656,
0.10509303957223892,
0.1111665740609169,
-0.13930703699588776,
-0.09276614338159561,
-0.2995733916759491,
-0.16831834614276886,
-0.06257779151201248,
0.292864590883255,
-0.12257459759712219,
0.47506704926490784,
-0.15180261433124542,
0.12828607857227325,
-0.1748405396938324,
0.4684754014015198,
-0.28085678815841675,
0.17354285717010498,
-0.14577221870422363,
0.09480056166648865,
-0.3616296648979187,
0.053470272570848465,
-0.06260303407907486,
0.013031563721597195,
-0.2021162211894989,
0.10324858129024506,
-0.4907829463481903,
-0.15331731736660004,
0.1849151849746704,
-0.285330206155777,
-0.10769901424646378,
-0.28066104650497437,
0.09942314773797989,
0.23370306193828583,
0.22239434719085693,
-0.41614264249801636,
0.18070745468139648,
0.26650986075401306,
-0.0033000726252794266,
-0.09166350960731506,
-0.07899515330791473,
-0.0880526527762413,
-0.3081296384334564,
-0.04428311064839363,
-0.05993104353547096,
0.028439946472644806,
-0.46476203203201294,
-0.03023737296462059,
-0.2713388204574585
] |
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.053346965461969376,
0.03748384490609169,
0.05978337302803993,
0.48692968487739563,
0.17053668200969696,
0.023359067738056183,
0.09322898834943771,
0.4074784219264984,
0.16699974238872528,
0.1014820858836174,
-0.1808931976556778,
-0.13914908468723297,
0.4188610911369324,
-0.17327167093753815,
-0.09404481202363968,
-0.49506834149360657,
0.18777459859848022,
0.03998447209596634,
0.012665350921452045,
-0.06551170349121094,
-0.21156737208366394,
-0.04807371646165848,
-0.19261442124843597,
0.06271146982908249,
-0.3057107627391815,
-0.005630139727145433,
0.0016473581781610847,
-0.03646491840481758,
-0.33026859164237976,
-0.24260206520557404,
0.26103919744491577,
0.1820007562637329,
0.2705388367176056,
0.41483554244041443,
-0.00012787815649062395,
-0.04970698431134224,
0.573279082775116,
-0.11515101045370102,
-0.5644010305404663,
0.08896741271018982,
-0.21099402010440826,
-0.414514422416687,
-0.19653232395648956,
-0.37392574548721313,
0.039235297590494156,
-0.16278865933418274,
0.2340759038925171,
-0.2813858985900879,
0.2931891977787018,
-0.029062798246741295,
0.06792554259300232,
0.1302424669265747,
0.10006527602672577,
-0.217046320438385,
0.3911062777042389,
0.11382191628217697,
0.04637403413653374,
0.017777109518647194,
-0.0791449025273323,
0.08694639801979065,
0.028114164248108864,
0.2152749001979828,
-0.24440018832683563,
-0.041364457458257675,
0.21118129789829254,
-0.020784428343176842,
-0.2214740514755249,
-0.5394381880760193,
0.4275810122489929,
0.5065008401870728,
0.9873844385147095,
-0.03411532938480377,
-0.5420719981193542,
0.020864063873887062,
-0.08844336122274399,
0.17179684340953827,
0.25173601508140564,
0.07730113714933395,
-0.02165481261909008,
0.006419140845537186,
0.19084180891513824,
-0.34813928604125977,
-0.17520835995674133,
0.5972660779953003,
-0.045814722776412964,
0.3435465395450592,
-0.02937096171081066,
0.12448367476463318,
-0.13250745832920074,
-0.4068508446216583,
-0.19645316898822784,
-0.427118718624115,
-0.05053938925266266,
0.4434017837047577,
0.0007416079170070589,
0.005779670551419258,
-0.1001872792840004,
0.06499253958463669,
0.1602068990468979,
-0.2895125448703766,
-0.08837924152612686,
0.040582023561000824,
-0.14431144297122955,
0.10574871301651001,
0.2951686680316925,
-0.2529040277004242,
0.16399841010570526,
-0.16669721901416779,
0.6046067476272583,
0.18778616189956665,
0.3268427848815918,
-0.06068669259548187,
0.04512040317058563,
-0.2781887948513031,
-0.5877600312232971,
-0.11933335661888123,
0.2341957837343216,
-0.34877637028694153,
-0.04757236689329147,
0.1888381987810135,
-0.2759747803211212,
-0.18630695343017578,
-0.14900211989879608,
0.24056708812713623,
-0.22684451937675476,
0.4528808891773224,
0.3064098656177521,
0.2869035303592682,
-0.3019835948944092,
-0.28895875811576843,
-0.004438065458089113,
0.24045570194721222,
0.05779673531651497,
0.11910303682088852,
0.1557944267988205,
0.0076073952950537205,
0.28104808926582336,
0.12952755391597748,
-0.3599662482738495,
-0.17277705669403076,
-0.22139579057693481,
-0.2736281156539917,
-0.32881033420562744,
0.1263093650341034,
0.14191213250160217,
0.5926678776741028,
-0.17785106599330902,
-0.11023376882076263,
-0.1915980577468872,
0.059934791177511215,
-0.30759263038635254,
0.029010817408561707,
-0.03885524719953537,
0.006698916666209698,
-0.3058392107486725,
0.1448868364095688,
-0.10233734548091888,
0.2594456672668457,
0.09318733215332031,
-0.12982769310474396,
-0.08106474578380585,
0.1333625316619873,
-0.48655614256858826,
-0.231016606092453,
0.40185239911079407,
0.6183552145957947,
-0.3419433534145355,
-0.255034476518631,
-0.22468715906143188,
-0.037941355258226395,
0.32263824343681335,
0.24058355391025543,
-0.1962711066007614,
0.5838986039161682,
-0.11570035666227341,
0.14310894906520844,
0.3990402817726135,
-0.06260275840759277,
-0.245178684592247,
0.34164535999298096,
0.13052138686180115,
-0.019030166789889336,
0.18552228808403015,
0.06440379470586777,
0.2784157693386078,
-0.19648154079914093,
0.048736486583948135,
0.4077763557434082,
0.18189436197280884,
-0.007826517336070538,
-0.38223767280578613,
-0.23699089884757996,
0.13555637001991272,
0.07467129826545715,
0.4870288372039795,
-0.09409655630588531,
0.24868248403072357,
0.8490911722183228,
0.20269577205181122,
-0.08568935096263885,
0.32606789469718933,
0.46469607949256897,
-0.3252146244049072,
-0.09395036101341248,
0.07967662066221237,
0.01603289507329464,
-0.08190217614173889,
0.2273692786693573,
-0.03340964764356613,
0.04444485530257225,
0.022187700495123863,
-0.012481880374252796,
-0.38752880692481995,
-0.10598058253526688,
0.02939240261912346,
0.2333386093378067,
0.0024629950057715178,
0.06681445986032486,
0.18383914232254028,
0.35884666442871094,
0.32159340381622314,
-0.18831150233745575,
0.0001826458756113425,
-0.08739607036113739,
-0.2711072564125061,
0.4411359429359436,
-0.09714297950267792,
0.11788605898618698,
0.12426036596298218,
-0.0658247098326683,
0.45695260167121887,
0.03739481419324875,
-0.08783616125583649,
0.13331636786460876,
0.12802405655384064,
0.23007826507091522,
0.09697605669498444,
-0.14526984095573425,
0.4124618172645569,
-0.027922574430704117,
0.3956120014190674,
0.5580120086669922,
0.26738616824150085,
-0.1624312698841095,
-0.08201929181814194,
0.4217674136161804,
-0.023518456146121025,
0.06808526068925858,
-0.07626966387033463,
0.0021338039077818394,
0.34552130103111267,
-0.004546196199953556,
0.21488560736179352,
-0.12228097766637802,
0.2748682200908661,
0.30643829703330994,
-0.1189010962843895,
0.17610065639019012,
-0.4096236228942871,
-0.14042241871356964,
0.3270949721336365,
-0.16610369086265564,
0.20587711036205292,
-0.04248499497771263,
-0.21587148308753967,
-0.026497207581996918,
0.2504022717475891,
-0.04221262037754059,
0.021961836144328117,
0.09337358176708221,
0.14141617715358734,
-0.269008070230484,
0.185657799243927,
-0.19095392525196075,
0.11787521839141846,
0.2861938178539276,
0.36136767268180847,
0.21444301307201385,
0.03267960622906685,
0.0631789043545723,
-0.09839694201946259,
0.2702799141407013,
0.017761187627911568,
0.25837817788124084,
-0.18332137167453766,
-0.16204777359962463,
-0.3506142795085907,
-0.3741489350795746,
-0.2871043384075165,
0.0854777917265892,
-0.3898080587387085,
-0.36661624908447266,
0.14914000034332275,
0.15534059703350067,
-0.29384443163871765,
0.13243785500526428,
-0.1568148285150528,
-0.11000917851924896,
-0.015515871345996857,
-0.06307631731033325,
-0.21393759548664093,
-0.24593575298786163,
-0.2690545916557312,
-0.11066336929798126,
0.4098206162452698,
0.19540047645568848,
0.05751983821392059,
-0.16003014147281647,
-0.38494083285331726,
-0.5117308497428894,
-0.19474270939826965,
0.17385846376419067,
0.083175890147686,
0.17871275544166565,
-0.0822419747710228,
0.56589275598526,
0.003005394246429205,
-0.050543565303087234,
0.11834544688463211,
0.02404390648007393,
-0.0823364183306694,
0.11181434243917465,
-0.10795526206493378,
0.1611085683107376,
-0.12917345762252808,
-0.25552475452423096,
-0.18482157588005066,
-0.35495343804359436,
-0.13262496888637543,
0.04029645770788193,
0.14446887373924255,
-0.1802954077720642,
0.190378338098526,
-0.01653512381017208,
0.31945309042930603,
0.28452709317207336,
-0.1832267791032791,
-0.1416914016008377,
0.5626681447029114,
-0.09186400473117828,
-0.4536190927028656,
0.12980255484580994,
-0.15634261071681976,
-0.014834009110927582,
0.15880878269672394,
-0.3009735345840454,
0.22767701745033264,
0.14874550700187683,
0.10698982328176498,
0.2487141191959381,
0.09753461927175522,
0.08492814749479294,
-0.2770101726055145,
0.1548023372888565,
-0.061062779277563095,
0.13948000967502594,
-0.13911762833595276,
-0.19060738384723663,
0.4748786389827728,
0.4391961395740509,
0.45002317428588867,
-0.06180533766746521,
0.7416896224021912,
0.13546575605869293,
0.24633216857910156,
0.3136915862560272,
0.3680100440979004,
0.24789771437644958,
0.019391965121030807,
0.022702988237142563,
0.10155286639928818,
0.12703755497932434,
0.04435761645436287,
0.3230544924736023,
0.043606650084257126,
-0.18441671133041382,
-0.39105409383773804,
-0.4620257019996643,
-0.2502825856208801,
-0.32469531893730164,
-0.18037420511245728,
0.08657361567020416,
0.24447807669639587,
0.034469690173864365,
0.4447140693664551,
-0.1163262128829956,
-0.35044562816619873,
0.21780504286289215,
0.18916569650173187,
0.23169565200805664,
0.28176450729370117,
-0.1259300261735916,
-0.06610682606697083,
-0.5629529356956482,
0.3282521963119507,
0.06982295215129852,
0.41106319427490234,
0.017947271466255188,
-0.005971070379018784,
0.03197457268834114,
-0.027553265914320946,
0.21410325169563293,
-0.217337504029274,
0.2254902422428131,
0.04068773612380028,
-0.03044397570192814,
-0.4630870521068573,
-0.011598104611039162,
-0.1469057947397232,
0.30919039249420166,
0.4478093981742859,
0.11469797044992447,
-0.6934030652046204,
-0.3136433959007263,
0.07117428630590439,
0.358154833316803,
-0.11457231640815735,
0.02381037175655365,
-0.10174163430929184,
-0.23448620736598969,
-0.30669695138931274,
-0.12528717517852783,
-0.10915228724479675,
0.22679699957370758,
-0.12509453296661377,
0.226399764418602,
-0.18110857903957367,
0.37919676303863525,
0.026508158072829247,
0.0661097839474678,
0.20378875732421875,
0.09094153344631195,
0.17473402619361877,
0.258830189704895,
0.06164250522851944,
0.24266593158245087,
0.33153805136680603,
0.19635525345802307,
-0.1387939602136612,
0.013874473050236702,
-0.1242527887225151,
-0.1976688951253891,
0.2619447112083435,
-0.0786777064204216,
0.14160838723182678,
0.23715612292289734,
-0.11814848333597183,
-0.09225406497716904,
-0.0754840150475502,
0.18069517612457275,
-0.11169204860925674,
-0.43025895953178406,
-0.1690320074558258,
0.4821281135082245,
0.18467961251735687,
-0.09955309331417084,
-0.08322072774171829,
0.18160927295684814,
-0.18518884479999542,
0.08709215372800827,
0.15572305023670197,
0.9597747325897217,
-0.1339154690504074,
0.13923335075378418,
-0.013901419937610626,
0.042006637901067734,
0.752966046333313,
-0.12893156707286835,
0.05684637650847435,
-0.36875954270362854,
0.14605024456977844,
-0.08033649623394012,
0.3275388479232788,
0.11961329728364944,
0.034181080758571625,
-0.1696026772260666,
0.4756486117839813,
0.17363689839839935,
0.2811528444290161,
-0.009663349948823452,
0.40186214447021484,
0.02171672135591507,
-0.26012587547302246,
-0.4872605800628662,
-0.0073102982714772224,
-0.29323816299438477,
0.4567657709121704,
-0.21525031328201294,
-0.21326398849487305,
-0.18951719999313354,
-0.2626004219055176,
-0.08690968155860901,
0.19099712371826172,
-0.08713937550783157,
0.32405662536621094,
-0.00483721075579524,
-0.4457886517047882,
0.1779002547264099,
0.32984450459480286,
0.16162146627902985,
0.1972559243440628,
-0.24070420861244202,
0.08119787275791168,
-0.5297272205352783,
-0.3864920437335968,
-0.1677408665418625,
0.17965251207351685,
0.20713618397712708,
-0.06247279420495033,
-0.23092691600322723,
0.10350851714611053,
-0.17933928966522217,
0.09264734387397766,
-0.223964661359787,
-0.06170237809419632,
-0.2331010103225708,
0.1321628838777542,
-0.3695802688598633,
-0.07161680608987808,
-0.1525004357099533,
-0.20293715596199036,
0.0266377255320549,
0.03525626286864281,
0.0339631550014019,
-0.12844161689281464,
0.09658768773078918,
-0.09237149357795715,
0.004738905001431704,
0.5840380191802979,
0.17349013686180115,
0.2268540859222412,
0.4951578974723816,
0.21956121921539307,
-0.43671393394470215,
-0.13382482528686523,
-0.04822729527950287,
-0.483882337808609,
-0.20812517404556274,
-0.08983726054430008,
-0.18860183656215668,
0.14799851179122925,
-0.18879999220371246,
0.01974627934396267,
-0.0024595633149147034,
-0.37033408880233765,
0.19322893023490906,
-0.4431474208831787,
-0.15108811855316162,
0.38061001896858215,
-0.027729080989956856,
0.04239271208643913,
0.22797130048274994,
-0.09804391860961914,
0.09659719467163086,
-0.012856200337409973,
-0.1124013215303421,
0.0797959491610527,
-0.3406749665737152,
0.19455131888389587,
0.3010067045688629,
0.19719791412353516,
-0.10288675874471664,
-0.04323699697852135,
-0.0749799981713295,
-0.2692517936229706,
-0.09393396973609924,
0.045276083052158356,
-0.12200352549552917,
0.224048912525177,
0.14751800894737244,
-0.1261538416147232,
0.2464759200811386,
-0.39984726905822754,
0.08734239637851715,
-0.1955205500125885,
-0.05134095624089241,
0.15898063778877258,
-0.05590834841132164,
0.17875400185585022,
0.196008563041687,
0.21174919605255127,
-0.3149056136608124,
0.3788197338581085,
0.11587552726268768,
0.5302119255065918,
-0.01289940532296896,
0.36537158489227295,
0.3719913959503174,
-0.026579633355140686,
-0.3628433048725128,
0.10022012889385223,
-0.0864362120628357,
-0.21524085104465485,
0.3673942983150482,
-0.23509067296981812,
-0.02429630421102047,
0.394036203622818,
0.08385124802589417,
0.2159743309020996,
-0.02552643232047558,
0.09321827441453934,
0.1395024210214615,
-0.004354411736130714,
-0.36249908804893494,
-0.1738438606262207,
0.5092697143554688,
-0.015003123320639133,
-0.08851321041584015,
0.26420754194259644,
0.15878084301948547,
-0.2973434031009674,
0.19717219471931458,
0.11738469451665878,
-0.010572351515293121,
-0.11014556884765625,
0.17578846216201782,
0.17088556289672852,
0.4562656879425049,
0.18976910412311554,
0.05893281102180481,
-0.08926889300346375,
0.01429981179535389,
0.00678383931517601,
-0.0889352336525917,
0.2076757699251175,
0.09536660462617874,
0.14601363241672516,
-0.22698937356472015,
-0.43864816427230835,
0.0295359306037426,
0.38519302010536194,
-0.13019432127475739,
-0.012493290938436985,
-0.11778685450553894,
0.1243201270699501,
0.28822898864746094,
-0.08490651845932007,
-0.31042227149009705,
0.23915690183639526,
-0.09783284366130829,
-0.17533491551876068,
-0.4473365247249603,
-0.38832569122314453,
-0.0926378145813942,
0.1555449366569519,
0.11272671818733215,
-0.2999759316444397,
0.2941492795944214,
0.24093745648860931,
-0.12092617154121399,
-0.5600190162658691,
0.6237086057662964,
0.10353739559650421,
0.09642791002988815,
-0.3249093294143677,
0.11339934170246124,
-0.23213675618171692,
-0.06692596524953842,
0.0839909017086029,
0.36598333716392517,
0.2763705551624298,
0.19669079780578613,
-0.30626827478408813,
-0.07828126847743988,
0.23435993492603302,
-0.026193730533123016,
0.09340212494134903,
0.01728644222021103,
0.07097166776657104,
-0.003841875120997429,
0.43317389488220215,
-0.016417738050222397,
0.005920639261603355,
-0.28778666257858276,
0.31698447465896606,
-0.03394732624292374,
-0.06571497023105621,
-0.0700167790055275,
-0.18997113406658173,
-0.045192427933216095,
-0.07291630655527115,
-0.191823348402977,
-0.420892596244812,
0.057051822543144226,
-0.025830890983343124,
0.20270578563213348,
0.19514118134975433,
-0.17920778691768646,
-0.033969782292842865,
-0.28268811106681824,
0.25913742184638977,
0.23609134554862976,
0.09331570565700531,
-0.2518789768218994,
-0.1341608762741089,
-0.4866868555545807,
-0.0587199404835701,
-0.408629447221756,
0.07081829756498337,
-0.054162297397851944,
0.29857003688812256,
-0.04279249161481857,
0.05427521467208862,
0.14047767221927643,
-0.2052311897277832,
0.04773544520139694,
0.14222314953804016,
-0.319062203168869,
-0.1981552094221115,
-0.038139019161462784,
0.05678749829530716,
-0.24918720126152039,
-0.4527919292449951,
0.27861320972442627,
-0.391056090593338,
-0.12764590978622437,
0.03419828042387962,
-0.06783302128314972,
0.09691139310598373,
0.14399395883083344,
0.24362634122371674,
0.019980311393737793,
0.1572602093219757,
-0.11677606403827667,
-0.04871280491352081,
-0.29965102672576904,
-0.1257106363773346,
-0.0596659854054451,
0.2554551064968109,
-0.14386668801307678,
0.5094141364097595,
-0.2220047563314438,
0.14598332345485687,
-0.24538856744766235,
0.3832646310329437,
-0.2661608159542084,
0.20203569531440735,
-0.12023159861564636,
0.0843225046992302,
-0.4251112937927246,
0.17100216448307037,
-0.019014818593859673,
0.004624924622476101,
-0.17914460599422455,
0.10418039560317993,
-0.5216532349586487,
-0.09871930629014969,
0.23113180696964264,
-0.29415401816368103,
-0.15558680891990662,
-0.26602524518966675,
0.06032848730683327,
0.21147073805332184,
0.1888340711593628,
-0.3588404059410095,
0.2253999412059784,
0.24154703319072723,
-0.032039936631917953,
-0.11889074742794037,
-0.13376739621162415,
-0.1148090586066246,
-0.23884961009025574,
-0.06295080482959747,
-0.17813868820667267,
0.012849333696067333,
-0.46067485213279724,
-0.11865948140621185,
-0.2578940987586975
] |
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.1203235313296318,
-0.14724473655223846,
-0.14466319978237152,
0.3973078429698944,
0.059690289199352264,
0.15631887316703796,
0.7675094604492188,
-0.10107012838125229,
0.32705754041671753,
0.08220423012971878,
-0.03244921192526817,
-0.001356052584014833,
0.10880319029092789,
-0.27612170577049255,
-0.11626201868057251,
0.143180251121521,
0.19742631912231445,
0.13848921656608582,
-0.0753118097782135,
-0.07117203623056412,
-0.2949310541152954,
0.2251490354537964,
-0.14589010179042816,
-0.1837255209684372,
-0.021259887143969536,
0.3673401474952698,
-0.0063927508890628815,
0.27042505145072937,
0.18430091440677643,
-0.3755668103694916,
0.44529423117637634,
0.20418044924736023,
0.27099475264549255,
0.3557012975215912,
-0.0001234260416822508,
-0.08472959697246552,
0.04217465594410896,
-0.24606329202651978,
-0.18249894678592682,
-0.2576684355735779,
-0.34440863132476807,
-0.32552918791770935,
0.16597844660282135,
-0.6405027508735657,
-0.08312830328941345,
0.419337660074234,
0.010472090914845467,
-0.36509284377098083,
0.04186257719993591,
0.28998878598213196,
0.16423989832401276,
-0.27641811966896057,
-0.41805562376976013,
0.3066495954990387,
0.24189414083957672,
-0.10921308398246765,
-0.20153731107711792,
0.10776913166046143,
-0.001670418307185173,
0.21701523661613464,
-0.06735838949680328,
0.09886602312326431,
-0.269513338804245,
0.34763509035110474,
0.3233596384525299,
0.26558396220207214,
-0.11128905415534973,
0.12094581127166748,
0.24903714656829834,
0.0957704484462738,
0.5434871315956116,
-0.016090458258986473,
-0.14017753303050995,
-0.3993280529975891,
-0.18293173611164093,
-0.9000107645988464,
0.4474705755710602,
0.11727073788642883,
0.2949042320251465,
0.2847471237182617,
-0.1221214085817337,
0.17493847012519836,
0.0017112846253439784,
-0.027043243870139122,
-0.2510714828968048,
0.0042840344831347466,
-0.3040359616279602,
0.11810535192489624,
-0.13769496977329254,
0.07990388572216034,
0.293961763381958,
-0.36722344160079956,
-0.08929190039634705,
0.0888362005352974,
-0.20340296626091003,
0.2997891306877136,
-0.17134973406791687,
0.05271347984671593,
-0.19507138431072235,
0.05108850821852684,
0.15192943811416626,
-0.09218154102563858,
0.05245308578014374,
0.08868309110403061,
-0.09519226849079132,
0.2707785367965698,
0.13429221510887146,
0.14402295649051666,
0.1321525126695633,
0.027706459164619446,
-0.36105379462242126,
-0.11319219321012497,
-0.040470149368047714,
-0.057466231286525726,
0.7582940459251404,
-0.024059077724814415,
-0.13366937637329102,
-0.14461995661258698,
-0.24976933002471924,
0.13100221753120422,
-0.053961899131536484,
-0.1943708062171936,
-0.3105035722255707,
0.15827196836471558,
-0.09374076128005981,
0.007410633843392134,
-0.2572171986103058,
0.12833136320114136,
-0.12474042922258377,
-0.12626606225967407,
0.013780620880424976,
-0.2658873200416565,
-0.2747729420661926,
-0.09997161477804184,
0.16765637695789337,
-0.03543444722890854,
0.13492371141910553,
0.08763840049505234,
-0.2041492909193039,
-0.3977517783641815,
-0.04018473997712135,
-0.04009367153048515,
0.49411889910697937,
0.17901137471199036,
-0.03414510563015938,
0.3948501646518707,
0.22571933269500732,
-0.7923144102096558,
-0.12966251373291016,
0.28364047408103943,
-0.448290079832077,
-0.10997897386550903,
0.07709138095378876,
0.04870548099279404,
-0.41736793518066406,
-0.057384055107831955,
-0.2408277988433838,
0.1323024034500122,
0.4306553900241852,
-0.23436114192008972,
0.07491765916347504,
-0.2795863747596741,
-0.3188854157924652,
-0.40572628378868103,
-0.12430982291698456,
0.5804479718208313,
-0.6152836084365845,
-0.13548512756824493,
-0.29325035214424133,
0.04549660161137581,
0.07962106168270111,
0.21075256168842316,
-0.028072159737348557,
-0.32292234897613525,
-0.4087454080581665,
0.054460667073726654,
0.11525793373584747,
-0.17351047694683075,
-0.5145964622497559,
-0.03875887021422386,
-0.16846276819705963,
0.5907806158065796,
0.3413659632205963,
0.07577230036258698,
0.40653106570243835,
-0.05890226364135742,
0.12592105567455292,
0.2793924808502197,
0.2539745271205902,
0.020392602309584618,
-0.12496427446603775,
-0.06295207142829895,
0.3729763925075531,
-0.036732472479343414,
-0.02468353696167469,
0.2701402008533478,
0.34312212467193604,
-0.47091785073280334,
0.29774272441864014,
0.10177942365407944,
-0.1056779995560646,
0.11670581251382828,
-0.1657928228378296,
0.19362209737300873,
0.21695828437805176,
-0.08564861118793488,
-0.4177287518978119,
0.15804533660411835,
0.13720467686653137,
-0.3520209789276123,
-0.1161361113190651,
-0.050214096903800964,
-0.2620421350002289,
-0.15707100927829742,
-0.17901109158992767,
-0.06665009260177612,
0.017043761909008026,
0.25423699617385864,
0.022817358374595642,
-0.0022806411143392324,
0.08988815546035767,
0.479798287153244,
0.006873199716210365,
0.1321924328804016,
-0.2679719030857086,
-0.23310254514217377,
0.020709749311208725,
-0.03529084101319313,
-0.5559324026107788,
-0.01997491531074047,
0.2322298288345337,
-0.1991238296031952,
-0.24299857020378113,
0.4130988121032715,
0.21219690144062042,
0.3052722215652466,
-0.06562833487987518,
0.17397768795490265,
0.027165114879608154,
0.23317115008831024,
0.11749425530433655,
-0.008733897469937801,
0.1551889330148697,
-0.11894243955612183,
0.1674257218837738,
0.5678294897079468,
0.07828785479068756,
0.2709794342517853,
-0.2086479365825653,
-0.18897958099842072,
0.3382757306098938,
-0.05122256278991699,
0.0360131710767746,
-0.33990007638931274,
0.15690934658050537,
0.0934799388051033,
0.061758097261190414,
0.2420654594898224,
-0.1884288191795349,
-0.09718313813209534,
0.2958276569843292,
-0.17091315984725952,
-0.06931088864803314,
-0.06971710920333862,
-0.31572937965393066,
0.06404399126768112,
0.10984984785318375,
0.42251136898994446,
0.5408834218978882,
0.03558914363384247,
-0.027028530836105347,
-0.12263862043619156,
0.08774018287658691,
-0.3477232754230499,
0.28428149223327637,
0.05676834657788277,
-0.07825853675603867,
0.20364457368850708,
0.20168207585811615,
-0.012973271310329437,
-0.36127570271492004,
0.20478901267051697,
0.19621458649635315,
-0.30825361609458923,
-0.39726653695106506,
0.27693864703178406,
-0.4201708734035492,
0.016921065747737885,
-0.24801944196224213,
-0.0532400943338871,
-0.19652634859085083,
-0.21774326264858246,
-0.2575787305831909,
0.33691850304603577,
0.1936836689710617,
-0.11858745664358139,
-0.31907689571380615,
0.43377169966697693,
-0.1746450513601303,
-0.5059754848480225,
0.13774845004081726,
-0.04159007966518402,
-0.2272447645664215,
-0.05129220709204674,
-0.057353124022483826,
-0.18902188539505005,
-0.024926798418164253,
-0.1329495757818222,
0.07262802124023438,
0.08946799486875534,
-0.15083929896354675,
-0.1577436774969101,
0.1279168426990509,
0.2775493264198303,
-0.18624798953533173,
0.04290154203772545,
0.047884926199913025,
-0.005170418415218592,
-0.06784850358963013,
0.24591697752475739,
0.21649473905563354,
-0.02606230601668358,
0.17688336968421936,
-0.07592742890119553,
-0.0018828376196324825,
-0.28401923179626465,
-0.3081313967704773,
0.02474028244614601,
0.03123965673148632,
0.040408071130514145,
0.11324667185544968,
-0.0014866108540445566,
-0.3966309726238251,
-0.19579775631427765,
0.17629125714302063,
0.12167303264141083,
-0.41136685013771057,
-0.37552595138549805,
0.4756687879562378,
-0.22183190286159515,
-0.08784949034452438,
0.14510707557201385,
-0.03379200026392937,
-0.06690732389688492,
-0.04336783289909363,
-0.36577585339546204,
0.4310232102870941,
-0.2626771330833435,
0.25425243377685547,
0.23469600081443787,
-0.2392578125,
0.2565965950489044,
-0.023465905338525772,
0.2168571501970291,
-0.21948382258415222,
-0.3927704095840454,
0.195429265499115,
0.1232844665646553,
0.31002190709114075,
0.15949510037899017,
0.13397124409675598,
-0.02793773077428341,
0.7450902462005615,
-0.1718226820230484,
-0.09831128269433975,
0.3850104510784149,
0.0750981792807579,
0.34123343229293823,
-0.01812753640115261,
-0.07120536267757416,
-0.03781263157725334,
-0.12658080458641052,
-0.30210253596305847,
0.28341910243034363,
0.10661913454532623,
-0.21466012299060822,
-0.11318505555391312,
0.1987171322107315,
-0.24867193400859833,
-0.315098375082016,
-0.00450710766017437,
-0.1817227602005005,
-0.0972389429807663,
0.35631170868873596,
0.061450496315956116,
-0.21784847974777222,
-0.2576107978820801,
-0.21463729441165924,
0.49872153997421265,
0.24520552158355713,
-0.08135674893856049,
0.03624710813164711,
-0.07812599837779999,
-0.038551073521375656,
0.2863275408744812,
0.20014362037181854,
0.17608079314231873,
0.024773163720965385,
-0.17576780915260315,
0.1913103461265564,
0.21364322304725647,
0.7930585145950317,
-0.28114381432533264,
0.15688584744930267,
0.0941019058227539,
0.09948134422302246,
0.020585592836141586,
-0.2948554456233978,
0.07980585843324661,
0.19794297218322754,
0.02108452282845974,
0.21698157489299774,
0.09038829058408737,
0.1625833809375763,
-0.06342879682779312,
0.2885493338108063,
-0.1760801523923874,
-0.43018603324890137,
-0.18134495615959167,
0.22665630280971527,
0.02456657961010933,
-0.08184660226106644,
-0.1082710474729538,
0.10652393102645874,
-0.3259197473526001,
0.017532726749777794,
-0.1557328701019287,
0.1471206098794937,
0.056985653936862946,
0.06967218965291977,
0.1517106592655182,
-0.035504382103681564,
-0.017529143020510674,
0.24422645568847656,
0.1019759327173233,
0.12028951197862625,
0.45389845967292786,
-0.2612038552761078,
-0.3922269344329834,
-0.0007040502387098968,
-0.1960953027009964,
0.027453014627099037,
0.16976355016231537,
-0.10677973926067352,
0.2334301471710205,
-0.07907016575336456,
-0.26048555970191956,
-0.0035098108928650618,
-0.18146826326847076,
0.11221414059400558,
0.2038201093673706,
-0.4512123167514801,
-0.40586185455322266,
0.3258874714374542,
-0.05547839030623436,
-0.255929172039032,
0.14964979887008667,
-0.09499212354421616,
-0.47655534744262695,
0.38971221446990967,
-0.21410739421844482,
0.7907217741012573,
-0.07829030603170395,
0.2348373383283615,
-0.27942171692848206,
-0.35389071702957153,
0.08622870594263077,
0.03831750899553299,
0.12606003880500793,
-0.23946748673915863,
-0.4958380162715912,
-0.18921566009521484,
0.1001506820321083,
0.34394657611846924,
0.2582055330276489,
0.1379600316286087,
0.3105572760105133,
-0.4034961760044098,
0.45322278141975403,
-0.028951918706297874,
-0.12057063728570938,
0.040745481848716736,
-0.18862001597881317,
-0.019751952961087227,
0.01880025491118431,
0.03915939852595329,
0.22142018377780914,
0.0735885500907898,
0.13054323196411133,
-0.03309747204184532,
0.05067971721291542,
-0.2418760359287262,
-0.13286837935447693,
-0.04245178773999214,
0.07748715579509735,
-0.20335261523723602,
-0.5004665851593018,
0.1164993867278099,
0.48116427659988403,
0.09561862051486969,
0.069705069065094,
0.09791301935911179,
0.2905620336532593,
0.4477486312389374,
0.20443080365657806,
0.04229549318552017,
-0.1440744698047638,
0.0852385088801384,
0.26926127076148987,
-0.03080873377621174,
0.03128567337989807,
-0.23425421118736267,
-0.27062544226646423,
0.07216790318489075,
0.21938514709472656,
-0.00283236475661397,
-0.2397044450044632,
-0.4396774172782898,
-0.3141618072986603,
0.067201167345047,
-0.03204074129462242,
0.02511804923415184,
-0.181477889418602,
0.080435611307621,
0.15778400003910065,
-0.2707761824131012,
-0.6040500402450562,
-0.2527254521846771,
0.48607441782951355,
0.13384686410427094,
-0.22659340500831604,
0.49207836389541626,
-0.25276246666908264,
-0.17197902500629425,
0.025106705725193024,
0.1729402393102646,
-0.19216801226139069,
-0.0706513375043869,
0.10882467776536942,
0.055475249886512756,
0.177982360124588,
-0.04067620635032654,
-0.056164175271987915,
0.12890595197677612,
0.18949486315250397,
-0.1891898512840271,
-0.5128539204597473,
-0.013978267088532448,
-0.27736619114875793,
-0.17631492018699646,
-0.03213699162006378,
0.33314603567123413,
-0.3526570200920105,
-0.09277772903442383,
-0.1866694986820221,
-0.14700128138065338,
0.23972472548484802,
0.2396577149629593,
0.07130414992570877,
0.308734267950058,
0.24598172307014465,
0.07091888785362244,
-0.06964778900146484,
0.05927277356386185,
0.07211103290319443,
0.06865675747394562,
-0.11273881793022156,
-0.3264077305793762,
0.20042270421981812,
-0.04098030552268028,
0.10222138464450836,
-0.2532326281070709,
-0.3742206394672394,
0.10082487016916275,
-0.3272660970687866,
0.14541175961494446,
0.3303660750389099,
0.0903070941567421,
0.14556580781936646,
0.039387572556734085,
0.148679718375206,
-0.33270353078842163,
0.1666126847267151,
-0.33604443073272705,
0.18825659155845642,
0.13420802354812622,
0.12838707864284515,
-0.34379568696022034,
0.2336551994085312,
-0.34372764825820923,
-0.09053318947553635,
-0.20872622728347778,
0.1693563312292099,
0.3830249011516571,
-0.3520570397377014,
0.21398994326591492,
0.4557957947254181,
0.29273977875709534,
0.27568113803863525,
-0.11298990249633789,
-0.27723008394241333,
0.13143470883369446,
0.03612629696726799,
-0.0282362699508667,
-0.12416908144950867,
0.15957623720169067,
0.06673309206962585,
-0.031118160113692284,
0.36783769726753235,
0.21502374112606049,
0.044586535543203354,
0.06523647904396057,
-0.015162467025220394,
0.7256925702095032,
-0.2609650492668152,
0.4738334119319916,
0.4797538220882416,
0.2778431177139282,
0.3633265495300293,
0.48896631598472595,
0.018202194944024086,
-0.05645753815770149,
0.7593056559562683,
0.12221831828355789,
0.18373070657253265,
0.554097592830658,
0.07046707719564438,
-0.3536398708820343,
-0.5032393932342529,
0.23173834383487701,
0.14060156047344208,
-0.43016597628593445,
0.5627177357673645,
0.37287095189094543,
0.18791593611240387,
-0.3548077642917633,
0.017929602414369583,
-0.34998732805252075,
-0.10776253789663315,
-0.13464631140232086,
-0.3442697525024414,
0.19182631373405457,
-0.10224711894989014,
0.061024390161037445,
0.14658008515834808,
-0.25839805603027344,
0.17319466173648834,
0.26086029410362244,
-0.0037704557180404663,
-0.0425376296043396,
-0.4601884186267853,
0.08375939726829529,
-0.18450957536697388,
0.4517960548400879,
-0.1802876740694046,
0.0952511578798294,
-0.03905649483203888,
-0.045159947127103806,
0.4648662507534027,
-0.3121071457862854,
0.30188027024269104,
0.2521141469478607,
0.3326146602630615,
-0.22773854434490204,
-0.05516146495938301,
-0.03242721036076546,
0.03823808580636978,
0.3212352991104126,
0.12877219915390015,
0.02004551701247692,
0.14614389836788177,
0.08918992429971695,
-0.03793083503842354,
0.5240582227706909,
0.4534061551094055,
0.27709540724754333,
-0.5207787156105042,
-0.3061746060848236,
0.026979582384228706,
0.0006309607997536659,
-0.27850982546806335,
-0.09139270335435867,
-0.03443172574043274,
0.09435155987739563,
0.2659895420074463,
0.04184461012482643,
0.3121056854724884,
0.2237246185541153,
0.012419096194207668,
0.26120203733444214,
0.14436057209968567,
0.2328295260667801,
-0.09914519637823105,
-0.23292295634746552,
0.21417701244354248,
-0.7888923287391663,
0.05324395000934601,
0.22868561744689941,
0.1859435886144638,
-0.012467003427445889,
0.0698959156870842,
-0.0053099412471055984,
0.01960323564708233,
0.13030195236206055,
0.04901741072535515,
0.2602851390838623,
0.4160328507423401,
-0.029749713838100433,
-0.32728832960128784,
0.13273483514785767,
-0.10522565245628357,
-0.2089366614818573,
-0.33326223492622375,
0.13372759521007538,
0.2565191984176636,
-0.07383548468351364,
-0.136806920170784,
-0.0006605412345379591,
0.15044663846492767,
0.34593597054481506,
0.33188551664352417,
0.008983966894447803,
0.475273996591568,
0.02640814706683159,
0.12317084521055222,
-0.1790107637643814,
-0.09658661484718323,
-0.2501387298107147,
0.13033427298069,
0.03634527325630188,
0.13600237667560577,
-0.33756276965141296,
0.040122032165527344,
0.010268082842230797,
0.31920990347862244,
0.1589883267879486,
-0.07559183984994888,
-0.33145973086357117,
-0.14426186680793762,
-0.16625818610191345,
0.09043639153242111,
0.04696005582809448,
0.28563839197158813,
0.03469947353005409,
0.4123386740684509,
0.18022078275680542,
-0.18005281686782837,
0.10230766981840134,
-0.1942426711320877,
-0.17626114189624786,
0.12691916525363922,
0.2522345185279846,
0.013031081296503544,
-0.09838555008172989,
-0.2418583184480667,
0.01795557513833046,
0.503887414932251,
-0.2512530982494354,
-0.14801235496997833,
0.12069560587406158,
-0.07644065469503403,
0.1261562705039978,
-0.20264096558094025,
0.49051010608673096,
0.30653688311576843,
-0.33165228366851807,
-0.05541471764445305,
-0.2716311514377594
] |
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.06356292217969894,
-0.13767142593860626,
-0.16112284362316132,
0.36978879570961,
0.024028975516557693,
0.16985802352428436,
0.7317375540733337,
-0.09527908265590668,
0.34567609429359436,
0.062181562185287476,
-0.019688710570335388,
0.02635805495083332,
0.09261903166770935,
-0.25169792771339417,
-0.12035851925611496,
0.1674450784921646,
0.2184600979089737,
0.15186333656311035,
-0.10476460307836533,
-0.07660853862762451,
-0.29860949516296387,
0.23354986310005188,
-0.15579070150852203,
-0.20520411431789398,
0.0038209487684071064,
0.36780664324760437,
0.009451748803257942,
0.2638166546821594,
0.14747443795204163,
-0.3517829477787018,
0.4878266751766205,
0.28490209579467773,
0.2567991316318512,
0.353568971157074,
-0.0001240681594936177,
-0.10253522545099258,
0.03308386728167534,
-0.25037214159965515,
-0.16726753115653992,
-0.2247190922498703,
-0.3010948598384857,
-0.32426342368125916,
0.18650664389133453,
-0.6597776412963867,
-0.08492285758256912,
0.42067620158195496,
0.014170605689287186,
-0.38347211480140686,
-0.006542067043483257,
0.2676982283592224,
0.151682049036026,
-0.20331627130508423,
-0.423881858587265,
0.2895332872867584,
0.3160747289657593,
-0.12042447179555893,
-0.22097353637218475,
0.11174219846725464,
0.01164169516414404,
0.20739243924617767,
-0.06467386335134506,
0.12265840172767639,
-0.25822314620018005,
0.3790099024772644,
0.4034811854362488,
0.24933359026908875,
-0.1564851850271225,
0.1434737592935562,
0.23933343589305878,
0.11486974358558655,
0.6052802801132202,
-0.05864373594522476,
-0.1364401876926422,
-0.4068736732006073,
-0.17442572116851807,
-0.8670364022254944,
0.4361383020877838,
0.053997788578271866,
0.3069913983345032,
0.2467765510082245,
-0.12642888724803925,
0.14848549664020538,
-0.03155497461557388,
-0.01978970132768154,
-0.24629145860671997,
0.023623894900083542,
-0.29510214924812317,
0.14033789932727814,
-0.10811954736709595,
0.10428626835346222,
0.28919270634651184,
-0.33061349391937256,
-0.10478295385837555,
0.1154227927327156,
-0.22472964227199554,
0.28803175687789917,
-0.14132745563983917,
0.06364505738019943,
-0.17195212841033936,
0.1004810705780983,
0.18264858424663544,
-0.07900001853704453,
0.05037812516093254,
0.04908997192978859,
-0.028731338679790497,
0.28903889656066895,
0.12698519229888916,
0.12086125463247299,
0.16396282613277435,
-0.007473395671695471,
-0.35510778427124023,
-0.11577019840478897,
-0.03238214924931526,
-0.067299984395504,
0.7882553339004517,
-0.050297342240810394,
-0.12804056704044342,
-0.15593253076076508,
-0.23306259512901306,
0.10187086462974548,
-0.014427442103624344,
-0.21410459280014038,
-0.25983548164367676,
0.17105676233768463,
-0.1039738729596138,
0.0490727499127388,
-0.27298757433891296,
0.08229994773864746,
-0.14718742668628693,
-0.047946520149707794,
0.017731396481394768,
-0.2720463275909424,
-0.30063292384147644,
-0.10743354260921478,
0.14784610271453857,
-0.03664219751954079,
0.1687697321176529,
0.07547207176685333,
-0.20455758273601532,
-0.34881192445755005,
0.00925260316580534,
-0.04012932628393173,
0.494022399187088,
0.21629101037979126,
-0.053194668143987656,
0.4039776027202606,
0.15931092202663422,
-0.7147270441055298,
-0.1518324464559555,
0.2730329930782318,
-0.4315806031227112,
-0.15691135823726654,
0.07633461803197861,
0.04920227453112602,
-0.39406415820121765,
-0.06746360659599304,
-0.22174763679504395,
0.1151742935180664,
0.4086594581604004,
-0.24358370900154114,
0.1309194564819336,
-0.29051047563552856,
-0.255241721868515,
-0.420743465423584,
-0.145649716258049,
0.5577812194824219,
-0.6230266094207764,
-0.16252972185611725,
-0.3136771619319916,
-0.01592646725475788,
0.011561807245016098,
0.19590958952903748,
-0.041241392493247986,
-0.316028356552124,
-0.40816307067871094,
0.05111001804471016,
0.1888684779405594,
-0.23181816935539246,
-0.5006049275398254,
-0.06468256562948227,
-0.1167154461145401,
0.5130468606948853,
0.36481955647468567,
0.12948203086853027,
0.3524494469165802,
-0.036736760288476944,
0.12973782420158386,
0.25712674856185913,
0.2665068507194519,
-0.00254421541467309,
-0.07710760086774826,
-0.06752810627222061,
0.34319716691970825,
-0.024657685309648514,
-0.016897045075893402,
0.24604758620262146,
0.3091096580028534,
-0.4324568808078766,
0.2762370705604553,
0.10572171211242676,
-0.13085921108722687,
0.07794955372810364,
-0.17778326570987701,
0.2233598530292511,
0.2501087188720703,
-0.10727564245462418,
-0.42297735810279846,
0.15686878561973572,
0.1533776968717575,
-0.3806133568286896,
-0.06885868310928345,
-0.08610384166240692,
-0.2696956694126129,
-0.15010835230350494,
-0.13606232404708862,
-0.07379914075136185,
-0.00557350181043148,
0.27829709649086,
0.051059167832136154,
-0.05401387810707092,
0.018977094441652298,
0.4882960319519043,
-0.0023068159352988005,
0.14750723540782928,
-0.302029550075531,
-0.28915056586265564,
0.029606424272060394,
-0.028103474527597427,
-0.5489795207977295,
-0.01582975871860981,
0.23571346700191498,
-0.2063470184803009,
-0.1993589550256729,
0.4474982023239136,
0.21407973766326904,
0.3029051125049591,
-0.04887980967760086,
0.19104887545108795,
0.02597694844007492,
0.30046546459198,
0.12069902569055557,
-0.03385382518172264,
0.141173854470253,
-0.12104538828134537,
0.16551846265792847,
0.5786083340644836,
0.04641089215874672,
0.2709968090057373,
-0.18223410844802856,
-0.18571119010448456,
0.32851454615592957,
-0.03271115571260452,
0.03954914212226868,
-0.33517637848854065,
0.14688672125339508,
0.11177369207143784,
0.08774807304143906,
0.2042723298072815,
-0.1907069832086563,
-0.10305297374725342,
0.2695433497428894,
-0.18075335025787354,
-0.0829329639673233,
-0.132506862282753,
-0.3261302411556244,
0.035744089633226395,
0.1322518140077591,
0.4256305694580078,
0.5540506839752197,
0.046591565012931824,
-0.019457262009382248,
-0.11377689987421036,
0.033630311489105225,
-0.3271063268184662,
0.31686490774154663,
0.04379749298095703,
-0.14390744268894196,
0.19177119433879852,
0.17467373609542847,
-0.0726497545838356,
-0.4310675859451294,
0.19657985866069794,
0.2052830159664154,
-0.3256499171257019,
-0.38206979632377625,
0.2823601961135864,
-0.36169862747192383,
-0.011222311295568943,
-0.21179935336112976,
-0.0639660656452179,
-0.18378891050815582,
-0.2088833451271057,
-0.25683149695396423,
0.3508310914039612,
0.18593376874923706,
-0.14185208082199097,
-0.3276401460170746,
0.46344366669654846,
-0.17665989696979523,
-0.48985615372657776,
0.12857496738433838,
-0.06693863868713379,
-0.19741953909397125,
-0.05715205520391464,
-0.11729927361011505,
-0.1658719778060913,
0.022438423708081245,
-0.15321995317935944,
0.08540315926074982,
0.0578608363866806,
-0.17262083292007446,
-0.15454429388046265,
0.15471269190311432,
0.2643907070159912,
-0.09850815683603287,
0.035214755684137344,
0.11348772794008255,
0.0029829475097358227,
-0.10295107215642929,
0.21510177850723267,
0.20498710870742798,
-0.08997347950935364,
0.17298120260238647,
-0.039368923753499985,
-0.001508783781901002,
-0.28964167833328247,
-0.2656741142272949,
0.033652495592832565,
0.03859370946884155,
0.09365550428628922,
0.1115281879901886,
0.04079251363873482,
-0.44113606214523315,
-0.172025665640831,
0.19781377911567688,
0.13513505458831787,
-0.4718318283557892,
-0.3725634515285492,
0.4636906683444977,
-0.24609977006912231,
-0.060399893671274185,
0.1453414261341095,
-0.025406045839190483,
-0.09324001520872116,
0.025302931666374207,
-0.34670186042785645,
0.36544373631477356,
-0.2504655122756958,
0.26985687017440796,
0.24204149842262268,
-0.20395490527153015,
0.27937832474708557,
-0.046912722289562225,
0.20263493061065674,
-0.2383539080619812,
-0.39934515953063965,
0.18408603966236115,
0.1458325833082199,
0.3319689631462097,
0.14047616720199585,
0.08357999473810196,
-0.08530449867248535,
0.7569000124931335,
-0.26578035950660706,
-0.1096806600689888,
0.41942957043647766,
0.06698688119649887,
0.3835323452949524,
-0.011438360437750816,
-0.08064518868923187,
-0.0420287624001503,
-0.1353836953639984,
-0.3232300877571106,
0.2571461796760559,
0.11521843820810318,
-0.23030272126197815,
-0.13568706810474396,
0.18448728322982788,
-0.23556363582611084,
-0.2845563590526581,
-0.0371878445148468,
-0.15401792526245117,
-0.09913552552461624,
0.35318002104759216,
0.06558642536401749,
-0.24253351986408234,
-0.23628251254558563,
-0.18668827414512634,
0.5406591296195984,
0.22780334949493408,
-0.08690264075994492,
0.018892943859100342,
-0.06989900022745132,
-0.03428954258561134,
0.28076788783073425,
0.17066983878612518,
0.11078975349664688,
0.04889556020498276,
-0.22494882345199585,
0.2076185792684555,
0.17625881731510162,
0.8500128388404846,
-0.3017195761203766,
0.13750293850898743,
0.12695756554603577,
0.12239652872085571,
0.021554909646511078,
-0.3088840842247009,
0.07738891988992691,
0.24684856832027435,
0.046081095933914185,
0.2135677933692932,
0.1007382944226265,
0.15259498357772827,
-0.04008307307958603,
0.2730455696582794,
-0.16041630506515503,
-0.43372705578804016,
-0.1859292984008789,
0.19938692450523376,
0.05147303268313408,
-0.08317682147026062,
-0.13863179087638855,
0.05286363512277603,
-0.23833435773849487,
0.02045280858874321,
-0.18707218766212463,
0.0975981205701828,
0.055286042392253876,
0.13738782703876495,
0.18461576104164124,
-0.009054447524249554,
-0.031852833926677704,
0.25252601504325867,
0.110354945063591,
0.0802549347281456,
0.42404961585998535,
-0.2737775146961212,
-0.33029115200042725,
-0.02362671121954918,
-0.13152606785297394,
0.0048071956261992455,
0.16062426567077637,
-0.13550730049610138,
0.25595566630363464,
-0.11722367256879807,
-0.2612060606479645,
-0.0024594548158347607,
-0.13617964088916779,
0.13548262417316437,
0.17446620762348175,
-0.46392643451690674,
-0.47675812244415283,
0.39366525411605835,
-0.029493888840079308,
-0.2998775541782379,
0.14509202539920807,
-0.08464863151311874,
-0.4775102436542511,
0.349764883518219,
-0.19611474871635437,
0.7891477346420288,
-0.08712640404701233,
0.2582276165485382,
-0.26497238874435425,
-0.3750725984573364,
0.18741299211978912,
-0.00576265063136816,
0.14132185280323029,
-0.2242707461118698,
-0.4079173505306244,
-0.18491944670677185,
0.0973905548453331,
0.35354137420654297,
0.21163322031497955,
0.16367721557617188,
0.3410292863845825,
-0.385042279958725,
0.4457181692123413,
-0.08625385165214539,
-0.08069940656423569,
0.03390044346451759,
-0.16280300915241241,
-0.05814475938677788,
0.011183669790625572,
0.06802190095186234,
0.2422320544719696,
0.04254522919654846,
0.1523144543170929,
0.02026974968612194,
0.06151437759399414,
-0.22512584924697876,
-0.2366589605808258,
-0.008143904618918896,
0.07960756868124008,
-0.2383487969636917,
-0.48415613174438477,
0.04567182436585426,
0.4642900228500366,
0.10646898299455643,
0.066135935485363,
0.09108605980873108,
0.32853633165359497,
0.41491761803627014,
0.18349768221378326,
0.02734399400651455,
-0.13326622545719147,
0.12055689096450806,
0.2587360441684723,
-0.012569593265652657,
-0.0029498585499823093,
-0.23346099257469177,
-0.31647008657455444,
0.06151799485087395,
0.24878257513046265,
0.006743656937032938,
-0.2406778484582901,
-0.4430218040943146,
-0.2619327902793884,
0.05142790824174881,
-0.029436083510518074,
0.013570291921496391,
-0.15993107855319977,
0.10556836426258087,
0.2052907943725586,
-0.2814001142978668,
-0.5869444608688354,
-0.284229040145874,
0.49303820729255676,
0.14052525162696838,
-0.25895801186561584,
0.41428688168525696,
-0.2807939052581787,
-0.14334705471992493,
0.044057447463274,
0.15678392350673676,
-0.17185544967651367,
-0.04395586624741554,
0.13659387826919556,
0.08788149803876877,
0.1142454594373703,
-0.0062843868508934975,
-0.029652683064341545,
0.11003230512142181,
0.19607359170913696,
-0.21492192149162292,
-0.5005058646202087,
-0.056653741747140884,
-0.2965904772281647,
-0.16022193431854248,
0.006943792570382357,
0.36112043261528015,
-0.3827972114086151,
-0.0757141038775444,
-0.20077134668827057,
-0.1371496617794037,
0.2301635891199112,
0.2385769784450531,
0.09019486606121063,
0.3121229410171509,
0.2519569993019104,
0.08579864352941513,
-0.0643090158700943,
0.05093551427125931,
0.06349914520978928,
0.02988392300903797,
-0.10416461527347565,
-0.3534567654132843,
0.21121709048748016,
-0.08435074239969254,
0.08532855659723282,
-0.23475073277950287,
-0.3963421881198883,
0.12316349893808365,
-0.3324130177497864,
0.20658574998378754,
0.3151220679283142,
0.10878553986549377,
0.126651331782341,
0.028576627373695374,
0.10047762840986252,
-0.35870322585105896,
0.17336158454418182,
-0.2975003123283386,
0.14082416892051697,
0.14571206271648407,
0.14966756105422974,
-0.38403254747390747,
0.21969915926456451,
-0.28687259554862976,
-0.09419963508844376,
-0.205914705991745,
0.13036352396011353,
0.31816571950912476,
-0.2837616205215454,
0.1729038655757904,
0.454877644777298,
0.3350805938243866,
0.3565506041049957,
-0.09202997386455536,
-0.2812873423099518,
0.09751850366592407,
0.020241178572177887,
-0.0355747826397419,
-0.1689881682395935,
0.08088172227144241,
0.02425062283873558,
0.0017574982484802604,
0.34264010190963745,
0.23810620605945587,
0.08909327536821365,
0.05937386304140091,
-0.044588759541511536,
0.7067668437957764,
-0.22517722845077515,
0.4917103350162506,
0.5061528086662292,
0.27459219098091125,
0.35428574681282043,
0.5110504031181335,
0.05529606714844704,
-0.06223713606595993,
0.8159400224685669,
0.11309996247291565,
0.23017629981040955,
0.5932121276855469,
0.06009119376540184,
-0.3401614725589752,
-0.4667779505252838,
0.24983392655849457,
0.1751902848482132,
-0.4075571298599243,
0.5800356268882751,
0.39241957664489746,
0.188526913523674,
-0.3639143705368042,
0.03392048180103302,
-0.3551177680492401,
-0.12396614253520966,
-0.13738921284675598,
-0.41928791999816895,
0.2092295140028,
-0.11279144138097763,
0.10460633784532547,
0.15036627650260925,
-0.2593214213848114,
0.176391139626503,
0.28750860691070557,
-0.0324244424700737,
0.006604459602385759,
-0.45233508944511414,
0.12761302292346954,
-0.23879028856754303,
0.48642030358314514,
-0.16913588345050812,
0.07768891751766205,
-0.05315522849559784,
-0.024834217503666878,
0.4844305217266083,
-0.28877943754196167,
0.3032098412513733,
0.221722811460495,
0.3409116864204407,
-0.22142377495765686,
-0.058636803179979324,
-0.04335136339068413,
0.008882223628461361,
0.2829449474811554,
0.12422835826873779,
-0.009838506579399109,
0.1609071046113968,
0.07168439775705338,
-0.01477698516100645,
0.5873548984527588,
0.40303322672843933,
0.24359962344169617,
-0.5450233817100525,
-0.30611035227775574,
0.027220692485570908,
-0.006770492065697908,
-0.270537793636322,
-0.05044495686888695,
-0.04047251492738724,
0.056070469319820404,
0.238804891705513,
0.03503667563199997,
0.2924754321575165,
0.19016127288341522,
0.010531767271459103,
0.25310713052749634,
0.21734024584293365,
0.20026595890522003,
-0.08036432415246964,
-0.18167689442634583,
0.20829935371875763,
-0.8221268653869629,
0.01125869806855917,
0.24409374594688416,
0.17125572264194489,
-0.004007540177553892,
0.07897745072841644,
-0.02879662998020649,
0.008964363485574722,
0.19125257432460785,
0.026827676221728325,
0.29030320048332214,
0.36981770396232605,
-0.022763995453715324,
-0.32773253321647644,
0.07980190217494965,
-0.13645221292972565,
-0.1759263575077057,
-0.3469598889350891,
0.13302579522132874,
0.25613197684288025,
-0.10769040137529373,
-0.13830208778381348,
0.04385106638073921,
0.20255835354328156,
0.35480397939682007,
0.3398696482181549,
-0.030730949714779854,
0.476596862077713,
0.016187578439712524,
0.1322491466999054,
-0.19900473952293396,
-0.0862090215086937,
-0.24326004087924957,
0.08141312748193741,
0.060131873935461044,
0.11089455336332321,
-0.3156266212463379,
0.06905218958854675,
0.05876540020108223,
0.3522513508796692,
0.1713687628507614,
-0.06995908915996552,
-0.32512128353118896,
-0.14488747715950012,
-0.18753333389759064,
0.05877786502242088,
0.033241983503103256,
0.31848710775375366,
0.036531560122966766,
0.36965641379356384,
0.13527941703796387,
-0.19239620864391327,
0.1058979332447052,
-0.2028205543756485,
-0.16243085265159607,
0.09014775604009628,
0.22838057577610016,
0.04704241082072258,
-0.07384833693504333,
-0.3213837444782257,
0.049756426364183426,
0.49191805720329285,
-0.23257707059383392,
-0.1498885601758957,
0.13950727880001068,
-0.08851224184036255,
0.12349088490009308,
-0.21685661375522614,
0.4710741341114044,
0.327269047498703,
-0.3144698143005371,
-0.0552009679377079,
-0.29172030091285706
] |
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.4709310531616211,
-0.3086605966091156,
-0.20458833873271942,
0.028244327753782272,
-0.16148459911346436,
-0.05988951027393341,
0.4274543225765228,
0.1954982727766037,
-0.14402228593826294,
0.509081244468689,
0.03531089425086975,
0.21855542063713074,
0.10202664136886597,
0.5340998768806458,
0.014690528623759747,
-0.006240405607968569,
0.06256137043237686,
0.10214501619338989,
-0.04883694648742676,
0.2574518024921417,
-0.09315278381109238,
-0.06052978336811066,
0.05019073933362961,
0.03763570636510849,
-0.05663444846868515,
0.11426898092031479,
-0.06594397127628326,
-0.29182326793670654,
0.25815337896347046,
-0.6436377763748169,
-0.07053248584270477,
0.43153494596481323,
0.14794644713401794,
0.23529793322086334,
-0.00010873571591218933,
0.04007672891020775,
0.46321913599967957,
0.1836577206850052,
-0.11908430606126785,
0.04787323996424675,
-0.39923572540283203,
-0.4790290892124176,
0.16566716134548187,
-0.5045092105865479,
0.24798108637332916,
-0.017050525173544884,
0.34799468517303467,
-0.2314993441104889,
0.1535722017288208,
-0.08394361287355423,
0.22328762710094452,
0.28776538372039795,
-0.45920291543006897,
0.02028672955930233,
0.13095173239707947,
-0.15442302823066711,
-0.03519464656710625,
-0.24058470129966736,
0.46898239850997925,
0.35847175121307373,
-0.3671172559261322,
0.3515625298023224,
0.03404094651341438,
0.19146288931369781,
0.02362857758998871,
0.12820778787136078,
0.697288990020752,
-0.43597540259361267,
0.04846080765128136,
0.20736315846443176,
0.10459005832672119,
-0.2849716246128082,
-0.08447923511266708,
-0.3045996129512787,
-0.19385501742362976,
-0.2056359499692917,
-0.453228622674942,
0.15751400589942932,
0.0647708922624588,
0.01780342310667038,
-0.6200436949729919,
0.1119636818766594,
-0.1470355987548828,
-0.1840856522321701,
0.1084490716457367,
0.006744141224771738,
0.02649722807109356,
0.4649553596973419,
-0.011411713436245918,
0.45187169313430786,
-0.0388084277510643,
-0.20273706316947937,
0.11697278916835785,
-0.21375365555286407,
-0.24112078547477722,
0.034687116742134094,
0.15445172786712646,
0.0547250397503376,
0.028869735077023506,
0.05169183388352394,
-0.09680081903934479,
0.17495717108249664,
0.19146744906902313,
0.2314080148935318,
0.27657464146614075,
-0.2618946135044098,
0.47293514013290405,
-0.17039281129837036,
0.26300692558288574,
-0.2552233636379242,
0.04698864743113518,
0.12408694624900818,
0.2900397479534149,
-0.09271501749753952,
0.16856032609939575,
0.2086966335773468,
-0.24254359304904938,
-0.1615762710571289,
0.00942239724099636,
0.0010087009286507964,
0.2904835045337677,
-0.28926846385002136,
0.028568796813488007,
0.30512842535972595,
0.11490058898925781,
0.02181863598525524,
-0.3511645197868347,
-0.02297305129468441,
-0.04960029199719429,
-0.19670350849628448,
-0.1722453236579895,
-0.16539978981018066,
-0.28944891691207886,
0.2183249145746231,
-0.25066348910331726,
-0.07417270541191101,
0.08144387602806091,
-0.1543472558259964,
-0.03864218294620514,
0.26553279161453247,
0.1757424771785736,
-0.33961236476898193,
0.3054896593093872,
0.14198267459869385,
0.08018702268600464,
0.20013658702373505,
0.04969640448689461,
0.2786524295806885,
-0.2928565740585327,
0.2514975965023041,
0.022902144119143486,
-0.2703841030597687,
0.10729120671749115,
0.15757064521312714,
-0.15351037681102753,
0.21380311250686646,
-0.4039475917816162,
0.5481808185577393,
0.09174977988004684,
-0.30253714323043823,
-0.12660324573516846,
-0.04885366931557655,
-0.6243529915809631,
-0.271255224943161,
0.0405891016125679,
0.13221131265163422,
-0.24167105555534363,
-0.07137072086334229,
-0.016046583652496338,
-0.4697982668876648,
0.300700843334198,
0.11413073539733887,
-0.21791668236255646,
-0.14642144739627838,
-0.0874195471405983,
0.33673587441444397,
0.07426051795482635,
-0.30368131399154663,
-0.2639026343822479,
0.38526925444602966,
-0.057170942425727844,
-0.25112825632095337,
0.4734433889389038,
0.27635660767555237,
0.37043190002441406,
-0.3024572730064392,
-0.39970526099205017,
-0.09854539483785629,
-0.22688116133213043,
0.11779685318470001,
-0.05965942144393921,
-0.08235853165388107,
-0.07474783807992935,
0.18075212836265564,
0.09543932974338531,
0.05631067231297493,
0.28518617153167725,
-0.5802689790725708,
0.5668189525604248,
-0.01231851801276207,
0.30394062399864197,
-0.006616470869630575,
0.09046144038438797,
-0.2783016264438629,
-0.1680065244436264,
-0.07360602915287018,
-0.17427287995815277,
0.35115882754325867,
-0.31020206212997437,
-0.13349196314811707,
0.16532427072525024,
-0.1894373595714569,
0.17401908338069916,
-0.040467821061611176,
0.13394904136657715,
0.0983709916472435,
0.09378263354301453,
0.0987958163022995,
0.08791058510541916,
-0.25425633788108826,
-0.07608311623334885,
0.2311391532421112,
-0.4155820906162262,
-0.4498787820339203,
-0.16575372219085693,
0.2748688757419586,
0.10725884139537811,
-0.10883035510778427,
-0.0145298196002841,
-0.10649120062589645,
-0.10936760157346725,
-0.04505302011966705,
0.1098107099533081,
0.17739057540893555,
-0.06536754220724106,
0.3082703948020935,
0.09069333225488663,
0.3370720446109772,
0.18317198753356934,
0.03368204087018967,
-0.06479551643133163,
-0.21319077908992767,
-0.04648328945040703,
-0.1356782764196396,
-0.05778045952320099,
0.1218632161617279,
0.0721360370516777,
0.2871167063713074,
0.15410234034061432,
-0.10595957934856415,
0.08302496373653412,
0.10004402697086334,
-0.2972298860549927,
-0.23676817119121552,
0.1199103593826294,
0.4398556649684906,
0.20849977433681488,
-0.1657770425081253,
-0.09680908918380737,
0.47110220789909363,
0.6808503866195679,
0.10805787891149521,
-0.32289645075798035,
0.07449748367071152,
-0.06574685126543045,
-0.09530947357416153,
0.38428518176078796,
0.2983466386795044,
0.40659093856811523,
0.4276602268218994,
0.2452062964439392,
-0.08138615638017654,
-0.1607406735420227,
-0.19401653110980988,
-0.12505415081977844,
-0.015007189474999905,
0.09259083122015,
-0.07296061515808105,
-0.03376494720578194,
-0.2909652292728424,
-0.06887519359588623,
-0.477972149848938,
0.06243797764182091,
-0.01201449241489172,
0.05654895678162575,
-0.18401658535003662,
-0.10281835496425629,
-0.10754310339689255,
-0.1546381115913391,
0.07555690407752991,
0.27692699432373047,
-0.3682194948196411,
0.08868466317653656,
0.30045390129089355,
-0.17376147210597992,
0.15896330773830414,
0.33389219641685486,
-0.03822355717420578,
-0.13839411735534668,
0.48877614736557007,
-0.38733914494514465,
-0.33653196692466736,
-0.028308480978012085,
0.06089865416288376,
0.025571458041667938,
0.19210456311702728,
0.40162014961242676,
-0.15417233109474182,
0.028647279366850853,
-0.565990149974823,
0.18811720609664917,
0.010037374682724476,
-0.23159417510032654,
0.07404647767543793,
-0.15196223556995392,
0.05041336640715599,
-0.14661642909049988,
0.13710884749889374,
0.19283241033554077,
-0.4140234887599945,
-0.03662765771150589,
-0.15704648196697235,
-0.08455350995063782,
-0.2458762675523758,
-0.09156278520822525,
0.046540018171072006,
-0.5235550999641418,
-0.35260605812072754,
0.17064687609672546,
-0.017665768042206764,
0.34900736808776855,
-0.3921486735343933,
-0.21205174922943115,
0.2525125741958618,
0.10368099808692932,
-0.06001101806759834,
-0.15422378480434418,
-0.4738198518753052,
-0.14032328128814697,
-0.04145488515496254,
-0.24892264604568481,
-0.0744524598121643,
0.18323728442192078,
-0.06846816837787628,
0.18456703424453735,
-0.335062712430954,
-0.140323206782341,
-0.30389532446861267,
0.2524101734161377,
0.21479196846485138,
0.24226072430610657,
0.32340240478515625,
-0.033182427287101746,
-0.17204058170318604,
0.03752373531460762,
-0.10580134391784668,
0.14403273165225983,
0.020856458693742752,
0.005009900778532028,
-0.0978923887014389,
0.1340559870004654,
0.029406921938061714,
0.5478227138519287,
0.4378443658351898,
-0.3881165385246277,
0.039204154163599014,
-0.18711009621620178,
0.048157598823308945,
-0.019175689667463303,
0.07732006907463074,
0.18665243685245514,
-0.1598358154296875,
-0.08331027626991272,
0.2705332934856415,
-0.10765164345502853,
-0.19352686405181885,
0.03533632308244705,
0.2834664285182953,
-0.09699764102697372,
-0.1716635525226593,
-0.09664870798587799,
0.12327653914690018,
0.22395271062850952,
-0.046775687485933304,
0.02590431459248066,
-0.045123547315597534,
-0.05108841881155968,
-0.3012230694293976,
0.06004270538687706,
0.3548397719860077,
-0.1982375979423523,
-0.14055690169334412,
-0.15633432567119598,
-0.752356231212616,
0.3945198357105255,
0.1789795160293579,
-0.25824838876724243,
-0.05771467834711075,
-0.058193840086460114,
0.04752882942557335,
-0.0013054765295237303,
0.4540845453739166,
-0.2986173629760742,
-0.1308717131614685,
0.029030045494437218,
-0.2905179262161255,
-0.19050046801567078,
-0.10941942036151886,
-0.2077118158340454,
0.3212663531303406,
0.1919563263654709,
0.11717978864908218,
-0.2532632648944855,
-0.09527348726987839,
0.03923683986067772,
0.09102077037096024,
-0.13953034579753876,
-0.3234477937221527,
-0.3122168481349945,
0.028011498972773552,
-0.09520980715751648,
0.13910655677318573,
-0.2067490518093109,
-0.178111732006073,
-0.3750585913658142,
-0.4214898347854614,
0.17318487167358398,
0.036610618233680725,
-0.0659501701593399,
0.29382723569869995,
0.010650331154465675,
0.13665682077407837,
0.15666726231575012,
-0.0006723327678628266,
0.3739663064479828,
0.23078162968158722,
-0.005461921449750662,
-0.03720111399888992,
0.08807113021612167,
0.3376568853855133,
-0.25170624256134033,
0.19927863776683807,
0.22134992480278015,
0.13502031564712524,
0.22462789714336395,
0.20697501301765442,
0.3590281307697296,
-0.17917174100875854,
-0.043452948331832886,
-0.0544576570391655,
0.17700015008449554,
-0.34585508704185486,
-0.1547001451253891,
0.35909947752952576,
0.2664077579975128,
-0.14637796580791473,
0.36676454544067383,
-0.41469377279281616,
-0.0973808765411377,
-0.0846937969326973,
0.006730338092893362,
0.6404380202293396,
-0.662441611289978,
-0.0012046945048496127,
-0.06478234380483627,
-0.09512751549482346,
0.2084505409002304,
0.1365949809551239,
0.08114220201969147,
-0.5132695436477661,
-0.3465445041656494,
0.058740075677633286,
-0.08034420013427734,
0.17719320952892303,
0.30147984623908997,
-0.44078952074050903,
0.10533329099416733,
0.39162611961364746,
0.0018316496862098575,
-0.2904697358608246,
0.10661543905735016,
0.19121287763118744,
-0.07433191686868668,
-0.25163066387176514,
0.14223605394363403,
0.013302618637681007,
-0.3869439661502838,
-0.14045263826847076,
0.11095711588859558,
0.15915745496749878,
0.05762505158782005,
-0.07794877886772156,
-0.24997921288013458,
0.2778438627719879,
0.23958471417427063,
-0.19505448639392853,
-0.2763395309448242,
-0.1448337584733963,
0.23403017222881317,
0.09312783181667328,
-0.2261735498905182,
-0.048586856573820114,
-0.05282014608383179,
0.11965575814247131,
0.2626807391643524,
-0.014999092556536198,
-0.23817487061023712,
-0.022377943620085716,
-0.16480255126953125,
-0.3957282602787018,
0.439985454082489,
0.010797368362545967,
-0.5087303519248962,
-0.09262922406196594,
0.4703204929828644,
0.2749846577644348,
0.21171580255031586,
0.21341374516487122,
0.3843766152858734,
-0.44831034541130066,
-0.12383216619491577,
0.0901230201125145,
0.3654618561267853,
-0.31998929381370544,
0.6993054747581482,
-0.1303529292345047,
-0.3771057426929474,
-0.15306182205677032,
0.053111180663108826,
0.12628033757209778,
0.2108532190322876,
-0.25074371695518494,
0.07405819743871689,
-0.1265094131231308,
-0.2178715467453003,
-0.03596143797039986,
-0.013229040428996086,
0.06124506890773773,
0.10622745007276535,
0.07048927992582321,
0.17618964612483978,
0.019955158233642578,
0.13302618265151978,
-0.03407737985253334,
0.2667904198169708,
-0.24239268898963928,
-0.10952478647232056,
-0.48019930720329285,
-0.019723663106560707,
-0.1943640261888504,
0.423362672328949,
0.09784362465143204,
0.07014692574739456,
0.01850341074168682,
0.22614368796348572,
-0.37207597494125366,
-0.201139897108078,
-0.32238098978996277,
0.3809588849544525,
0.06740064918994904,
0.050937067717313766,
-0.01654829829931259,
0.03268891200423241,
0.11334958672523499,
0.2673208713531494,
-0.5762636661529541,
-0.2781190574169159,
0.13319268822669983,
0.12799175083637238,
-0.14586041867733002,
0.03979935124516487,
-0.12448279559612274,
0.2529822587966919,
-0.09802041947841644,
-0.16410735249519348,
0.260060578584671,
0.26585543155670166,
-0.08766929805278778,
0.03918502479791641,
0.3612813949584961,
-0.027414558455348015,
-0.11879220604896545,
0.06022462248802185,
0.07273317128419876,
0.20294257998466492,
-0.2687402069568634,
0.44387751817703247,
-0.06924083828926086,
-0.03696189075708389,
0.2527551054954529,
-0.07715948671102524,
0.433348685503006,
0.3147989511489868,
-0.11647966504096985,
0.14251571893692017,
0.16907893121242523,
-0.13002024590969086,
0.6643264889717102,
0.23627977073192596,
0.055755749344825745,
-0.22991184890270233,
0.14290842413902283,
0.24282386898994446,
-0.002265982097014785,
0.07685243338346481,
0.4340238571166992,
-0.0005964945303276181,
0.4263561964035034,
0.19699542224407196,
0.25326451659202576,
0.19681327044963837,
0.23872891068458557,
0.0222463496029377,
0.09092492610216141,
-0.42516767978668213,
-0.04522184655070305,
0.03766105696558952,
0.23567549884319305,
0.10962317138910294,
0.2234325110912323,
0.004611962009221315,
0.023479558527469635,
0.14426568150520325,
-0.03613118827342987,
0.6295465230941772,
0.03421982377767563,
0.09638383984565735,
-0.12082742899656296,
0.1012355238199234,
-0.08833426237106323,
0.16871502995491028,
-0.4824112057685852,
0.008908425457775593,
0.15051782131195068,
0.37597009539604187,
-0.1967579871416092,
-0.06133992597460747,
-0.11191269755363464,
0.19567061960697174,
0.05379488319158554,
-0.17708751559257507,
-0.18099793791770935,
-0.039414871484041214,
0.0887824073433876,
0.1929958611726761,
0.1651943027973175,
0.24558953940868378,
0.6638801097869873,
0.10009581595659256,
0.24183811247348785,
-0.12807528674602509,
-0.09736500680446625,
-0.0180215947329998,
0.3237380087375641,
-0.15227176249027252,
-0.20863719284534454,
-0.1455531120300293,
0.09610780328512192,
0.19270023703575134,
0.0040111537091434,
0.09507978707551956,
0.03776484355330467,
-0.007584697101265192,
0.03661997988820076,
0.018071603029966354,
0.043956201523542404,
-0.26826897263526917,
-0.029149461537599564,
0.20276165008544922,
-0.13869087398052216,
0.39275646209716797,
0.1640307754278183,
-0.1708240509033203,
0.4104488790035248,
0.03632253035902977,
0.04484548419713974,
-0.25679776072502136,
0.3423307240009308,
0.022662224248051643,
-0.2043817639350891,
0.08779583871364594,
-0.11024164408445358,
-0.25308704376220703,
0.043295640498399734,
0.4033910036087036,
-0.5760537981987,
0.08383136987686157,
-0.07250169664621353,
0.12384232878684998,
-0.27329567074775696,
0.44181495904922485,
0.09094365686178207,
0.5844117403030396,
-0.2890387773513794,
-0.1479342132806778,
-0.24209065735340118,
0.08549836277961731,
0.05946219339966774,
0.020090635865926743,
-0.19618403911590576,
0.3414389491081238,
-0.03611968457698822,
0.4042434096336365,
0.4936390817165375,
-0.2218494862318039,
-0.17709527909755707,
0.30034339427948,
-0.20155932009220123,
0.16989673674106598,
-0.12924428284168243,
-0.10512001812458038,
0.06819470226764679,
-0.25665482878685,
0.20039324462413788,
0.0981530174612999,
0.1799391508102417,
0.030789760872721672,
0.05929224565625191,
0.3669608235359192,
0.016105063259601593,
0.49750420451164246,
0.0005671379622071981,
0.30571022629737854,
-0.2027689814567566,
0.13496075570583344,
0.010438071563839912,
0.09725694358348846,
-0.09234254062175751,
0.11355167627334595,
0.06887998431921005,
0.30029886960983276,
-0.21680472791194916,
0.21659724414348602,
-0.07700478285551071,
0.13118362426757812,
0.217463418841362,
0.08487143367528915,
0.30087894201278687,
-0.1078953891992569,
0.01978837512433529,
0.03333954140543938,
-0.1427423357963562,
0.2304469794034958,
0.29450368881225586,
0.09493759274482727,
-0.0765371173620224,
0.09333382546901703,
0.1654149442911148,
-0.38141611218452454,
-0.22487984597682953,
-0.25066089630126953,
0.17798851430416107,
-0.21403181552886963,
-0.016439691185951233,
-0.2841692268848419,
-0.32231026887893677,
0.2579375207424164,
-0.1390104740858078,
-0.3697536289691925,
0.17067448794841766,
-0.06404909491539001,
-0.3540692925453186,
0.04414946213364601,
0.014203575439751148,
0.18255101144313812,
-0.24906165897846222,
-0.3193570077419281,
-0.4881701171398163
] |
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.259015828371048,
-0.10657958686351776,
-0.03249165043234825,
0.07351003587245941,
0.39222922921180725,
-0.058800533413887024,
0.47319331765174866,
0.09392314404249191,
0.17507818341255188,
-0.08836056292057037,
-0.21461990475654602,
0.16051837801933289,
0.2840971350669861,
0.14577533304691315,
-0.018839411437511444,
0.03485136851668358,
0.15054921805858612,
0.07911504060029984,
-0.2978671193122864,
0.04470011591911316,
-0.4603431820869446,
-0.06851993501186371,
-0.21547724306583405,
-0.18342505395412445,
0.12944373488426208,
0.16418838500976562,
0.16775529086589813,
0.18451809883117676,
-0.15036168694496155,
-0.4337639808654785,
0.42013394832611084,
0.12276595830917358,
0.44819584488868713,
0.08255594223737717,
-0.0001264689490199089,
0.016151059418916702,
0.24992628395557404,
-0.3601168394088745,
-0.1838909089565277,
-0.33931949734687805,
-0.18704824149608612,
-0.24158823490142822,
0.23899540305137634,
-0.3605300784111023,
0.02531048096716404,
-0.16805794835090637,
0.00011469877790659666,
-0.12101789563894272,
0.16449549794197083,
0.3842564523220062,
0.10076851397752762,
0.07811605930328369,
-0.1188405230641365,
0.18531130254268646,
0.17741742730140686,
0.11410737782716751,
-0.053445760160684586,
0.4895187020301819,
0.3477606475353241,
0.25899580121040344,
0.0926230177283287,
0.005765089765191078,
-0.27322542667388916,
0.12779292464256287,
0.4341208338737488,
0.07340353727340698,
0.5844091176986694,
-0.20419329404830933,
-0.004430439323186874,
-0.03341466560959816,
0.8179598450660706,
-0.2546539306640625,
-0.15754839777946472,
-0.23350933194160461,
0.060867857187986374,
-0.35567304491996765,
0.1805979311466217,
0.05309484899044037,
-0.01970800571143627,
0.2729564905166626,
-0.31506451964378357,
-0.11126849800348282,
-0.010099610313773155,
0.34999707341194153,
0.020418554544448853,
0.026718618348240852,
-0.1969667226076126,
0.3487563729286194,
0.29793545603752136,
0.04549895599484444,
0.2575613558292389,
-0.41738390922546387,
0.20508973300457,
0.03378201276063919,
-0.33761152625083923,
0.12751151621341705,
-0.15200208127498627,
0.23365068435668945,
0.2249230295419693,
0.21091467142105103,
-0.1419803947210312,
-0.14022986590862274,
-0.06182972341775894,
0.04032265767455101,
0.26659029722213745,
0.06896357238292694,
0.15179704129695892,
-0.31563857197761536,
0.020187251269817352,
0.09330160170793533,
0.20164361596107483,
0.07865137606859207,
-0.0195764247328043,
-0.25221940875053406,
0.5681593418121338,
0.020341740921139717,
0.1890554279088974,
-0.10915114730596542,
-0.29520997405052185,
-0.15858805179595947,
-0.07162273675203323,
-0.11315777152776718,
-0.058212537318468094,
0.3231159746646881,
0.0163149144500494,
0.15566885471343994,
-0.12745611369609833,
0.4183995723724365,
-0.25590968132019043,
-0.1300947517156601,
-0.008590864017605782,
-0.18586240708827972,
-0.21800854802131653,
-0.1199803426861763,
0.3201862573623657,
-0.2929286062717438,
0.2597484886646271,
0.3904041647911072,
-0.18635624647140503,
-0.173039048910141,
-0.043131615966558456,
-0.034786324948072433,
0.03287256881594658,
0.4530649781227112,
0.08297498524188995,
0.20834369957447052,
0.21788780391216278,
-0.18035051226615906,
-0.028973951935768127,
0.5776117444038391,
-0.34917041659355164,
-0.41180533170700073,
0.03660038858652115,
0.05419045314192772,
-0.2928560972213745,
0.045067764818668365,
-0.38067030906677246,
0.11299128830432892,
0.06547262519598007,
-0.2287004590034485,
0.07572030276060104,
-0.31230029463768005,
-0.002802313305437565,
-0.34512293338775635,
-0.0431121401488781,
0.7118000984191895,
-0.5010115504264832,
-0.008621961809694767,
-0.29068031907081604,
-0.2806815505027771,
0.3792184889316559,
0.009499493055045605,
-0.3852297067642212,
-0.008277220651507378,
-0.21399803459644318,
-0.1566232591867447,
0.4293203353881836,
-0.25205811858177185,
-0.5417467951774597,
0.24554000794887543,
-0.022124292328953743,
0.018311290070414543,
0.2990798354148865,
0.21416833996772766,
0.15855659544467926,
-0.17846406996250153,
-0.18920762836933136,
0.20942865312099457,
0.07737704366445541,
0.14819678664207458,
-0.049962300807237625,
-0.2345120757818222,
0.2615916132926941,
0.04591614007949829,
-0.24539121985435486,
0.20215941965579987,
0.00018543000624049455,
-0.25197702646255493,
0.1741705983877182,
0.06042744591832161,
-0.13605713844299316,
0.01437176950275898,
0.10592645406723022,
0.13297171890735626,
-0.13861998915672302,
0.10034694522619247,
-0.7810967564582825,
-0.021968258544802666,
0.2704698145389557,
-0.28923192620277405,
-0.28826582431793213,
-0.11702214926481247,
-0.48075827956199646,
-0.14407938718795776,
-0.2776658833026886,
0.0687074288725853,
-0.046601273119449615,
0.22381086647510529,
0.17257235944271088,
-0.06345180422067642,
-0.10815718024969101,
0.24955172836780548,
-0.22506508231163025,
0.2756269574165344,
-0.009452508762478828,
0.20796556770801544,
0.08406985551118851,
-0.054458629339933395,
0.0670936182141304,
-0.31015580892562866,
0.3440124988555908,
-0.20310597121715546,
-0.17521409690380096,
0.5737305283546448,
0.23453062772750854,
0.2890975773334503,
-0.5119724273681641,
0.05186401680111885,
0.182498961687088,
0.1577415019273758,
-0.007913485169410706,
-0.09242845326662064,
0.2343435287475586,
0.04160851985216141,
-0.21780703961849213,
0.14719896018505096,
-0.2413252592086792,
0.09720355272293091,
-0.17322424054145813,
-0.1812315434217453,
0.29721954464912415,
0.08286785334348679,
-0.11398924142122269,
-0.1572600156068802,
-0.1486058533191681,
0.11533898115158081,
0.2650648355484009,
0.1879081279039383,
-0.12278492748737335,
0.06798536330461502,
0.36527571082115173,
-0.2784496545791626,
0.14605309069156647,
0.12514826655387878,
-0.009435639716684818,
-0.2080772966146469,
0.3465994894504547,
0.12891411781311035,
0.611267626285553,
0.06541857868432999,
-0.07544324547052383,
-0.060617584735155106,
-0.1442529857158661,
-0.2393881231546402,
0.410507470369339,
-0.07999014854431152,
0.36191490292549133,
0.1431768387556076,
-0.0048226723447442055,
-0.3801913261413574,
-0.44025111198425293,
0.2052966207265854,
0.37829434871673584,
0.24048754572868347,
-0.46430760622024536,
0.0005682555492967367,
-0.3054569363594055,
-0.16688483953475952,
-0.11412390321493149,
0.07884599268436432,
0.10462231189012527,
-0.1976694017648697,
-0.31089672446250916,
0.313892126083374,
0.07994703948497772,
0.20381708443164825,
-0.2323591411113739,
-0.14955084025859833,
0.08189968764781952,
-0.7005096673965454,
0.03143351152539253,
-0.000705275684595108,
-0.31892478466033936,
-0.1002831906080246,
0.22164851427078247,
-0.19865266978740692,
0.14191973209381104,
-0.3100056052207947,
-0.002308847615495324,
-0.37429577112197876,
0.04588067904114723,
-0.020449697971343994,
0.05044519901275635,
0.27783578634262085,
0.011417466215789318,
0.36902448534965515,
0.0027440572157502174,
0.12715774774551392,
0.20174728333950043,
-0.02121679112315178,
0.08611702919006348,
0.14413389563560486,
-0.10749155282974243,
0.15170833468437195,
-0.12644755840301514,
-0.6500141620635986,
-0.28979548811912537,
-0.1877051293849945,
-0.17650234699249268,
0.021518448367714882,
-0.030800404027104378,
0.1151900663971901,
0.28685376048088074,
-0.18267522752285004,
0.11095933616161346,
0.13479505479335785,
-0.3872716426849365,
-0.1322174072265625,
0.46308431029319763,
0.12296374142169952,
-0.13890963792800903,
-0.09856992959976196,
-0.03311527892947197,
-0.016652703285217285,
0.32443708181381226,
-0.26265671849250793,
-0.25049248337745667,
-0.14540301263332367,
0.35905078053474426,
-0.05201655998826027,
0.33689337968826294,
0.2954985499382019,
0.027753513306379318,
0.1441577970981598,
-0.016932561993598938,
-0.23318515717983246,
0.06011348217725754,
0.21779751777648926,
0.1577083170413971,
0.33075204491615295,
0.42388400435447693,
-0.17383678257465363,
0.48409488797187805,
0.1531597375869751,
-0.08593765646219254,
0.38028964400291443,
-0.14450648427009583,
0.3086194694042206,
0.19561238586902618,
-0.1443718820810318,
-0.04711441323161125,
-0.16485697031021118,
0.020324598997831345,
0.23026178777217865,
-0.13984151184558868,
-0.18384131789207458,
-0.11843711882829666,
0.14282111823558807,
-0.55277419090271,
-0.3069424629211426,
0.10332095623016357,
0.3018544912338257,
0.16914065182209015,
0.09406079351902008,
0.2061556577682495,
-0.11303053796291351,
-0.09550794214010239,
-0.017524564638733864,
0.5914157032966614,
0.1602533459663391,
0.19240577518939972,
-0.1053319200873375,
0.15482233464717865,
-0.1293419748544693,
0.2942940592765808,
0.13010074198246002,
0.5032510757446289,
0.2339005172252655,
-0.004274219740182161,
0.12872831523418427,
-0.0633392184972763,
0.841311514377594,
-0.1583152860403061,
0.1861678957939148,
0.03345651924610138,
0.33177173137664795,
-0.24363741278648376,
-0.16457243263721466,
-0.11173760890960693,
0.150146022439003,
0.008177466690540314,
0.0972554087638855,
-0.3879666328430176,
-0.12284508347511292,
-0.053156666457653046,
0.4365910589694977,
-0.06595475226640701,
-0.4471820294857025,
-0.28415730595588684,
-0.43765193223953247,
-0.4462883174419403,
-0.038451436907052994,
0.0179047342389822,
0.055000197142362595,
-0.22494618594646454,
0.04367047920823097,
0.16347627341747284,
0.004229463636875153,
0.03849709406495094,
-0.02715305984020233,
0.11223064363002777,
0.15438374876976013,
-0.014882637187838554,
0.0019924466032534838,
-0.39438024163246155,
0.22641459107398987,
0.5883170366287231,
-0.21960438787937164,
-0.3321847915649414,
0.06615117937326431,
0.05489720404148102,
0.19203554093837738,
0.14935429394245148,
-0.24152803421020508,
-0.07675450295209885,
-0.10307185351848602,
-0.07920326292514801,
-0.14888472855091095,
0.0430939607322216,
0.26522964239120483,
-0.07539799064397812,
-0.11871672421693802,
-0.8903478980064392,
0.5784329175949097,
-0.08455727994441986,
-0.15090417861938477,
0.046739306300878525,
0.2526817321777344,
-0.13988205790519714,
-0.08106494694948196,
0.07123547047376633,
0.7645347714424133,
-0.2446293979883194,
-0.02818772755563259,
0.3306536376476288,
-0.031308554112911224,
0.5819004774093628,
-0.2537854313850403,
0.12364131212234497,
-0.2166169136762619,
0.15075725317001343,
-0.02358892373740673,
-0.2288699597120285,
0.3793833255767822,
0.16728399693965912,
-0.11641132831573486,
0.4459984004497528,
-0.1671120673418045,
0.41171225905418396,
0.09367654472589493,
0.12710832059383392,
-0.3512285053730011,
-0.24830397963523865,
-0.2595973610877991,
0.027298226952552795,
-0.20732739567756653,
0.14272187650203705,
0.031456299126148224,
0.11566749215126038,
0.05848373472690582,
0.1598695069551468,
-0.04519622027873993,
-0.12123703211545944,
-0.22957879304885864,
0.001791918883100152,
-0.3966819941997528,
-0.27203503251075745,
0.19142739474773407,
0.5301158428192139,
-0.014076665043830872,
-0.034848667681217194,
-0.0856880322098732,
0.030289430171251297,
0.04270859435200691,
0.1711207926273346,
-0.13912762701511383,
-0.06490223854780197,
0.3109391927719116,
0.09594468772411346,
-0.22235336899757385,
0.12402114272117615,
0.023285988718271255,
0.0939393937587738,
-0.03554156422615051,
-0.1313212364912033,
0.22928790748119354,
-0.48114192485809326,
-0.5293112993240356,
-0.0353403277695179,
0.11857923120260239,
0.01369447261095047,
-0.030940789729356766,
-0.07696008682250977,
0.16653621196746826,
0.20454689860343933,
-0.3246520459651947,
-0.37082791328430176,
-0.2980579435825348,
0.3471218943595886,
0.11098990589380264,
0.14812687039375305,
0.09712198376655579,
0.00011124379670945928,
-0.16152290999889374,
-0.022897755727171898,
0.0979124903678894,
-0.3864889442920685,
-0.47431424260139465,
0.11780574917793274,
0.08665339648723602,
0.22707676887512207,
-0.17685365676879883,
0.05749809741973877,
0.13416655361652374,
-0.07625111192464828,
0.052652355283498764,
-0.23327557742595673,
-0.20536752045154572,
-0.01834632083773613,
0.23042967915534973,
0.013169335201382637,
0.3149644434452057,
-0.16504153609275818,
0.11177583783864975,
-0.5403909683227539,
-0.1521465927362442,
0.006538480520248413,
0.2150764912366867,
0.1250232309103012,
0.15448476374149323,
0.17201727628707886,
-0.03643805906176567,
-0.1557382047176361,
-0.01785140298306942,
-0.02809593454003334,
-0.25075599551200867,
-0.09068948030471802,
-0.2075926959514618,
0.22642652690410614,
0.03912974148988724,
-0.19741731882095337,
-0.046860408037900925,
-0.440303236246109,
-0.029408302158117294,
-0.176153764128685,
0.21625374257564545,
0.20700378715991974,
-0.0021215244196355343,
0.1487768441438675,
-0.19416895508766174,
-0.11651112884283066,
-0.4289858341217041,
0.043186455965042114,
-0.2956342399120331,
0.25526052713394165,
0.20143087208271027,
0.24396775662899017,
0.07869476824998856,
0.03707137703895569,
-0.4545850455760956,
0.04013904929161072,
0.12466896325349808,
0.17469516396522522,
0.14578630030155182,
-0.21425309777259827,
0.2793746590614319,
0.025959720835089684,
0.23977775871753693,
0.5284744501113892,
-0.1379822939634323,
-0.16584889590740204,
0.16863565146923065,
0.04233469441533089,
-0.2324797362089157,
-0.072640061378479,
-0.11315208673477173,
0.06835099309682846,
0.042170435190200806,
0.4152795970439911,
0.14283885061740875,
0.11111428588628769,
-0.03564490005373955,
-0.10071104019880295,
0.5492895245552063,
0.2058723270893097,
0.07877330482006073,
0.7013620138168335,
0.10590912401676178,
0.16209650039672852,
0.38122761249542236,
0.21468694508075714,
0.037531059235334396,
0.2751403748989105,
-0.06560581922531128,
0.0851578637957573,
0.13462552428245544,
0.19965684413909912,
-0.2870311737060547,
-0.5832765102386475,
0.3192640542984009,
0.440816730260849,
-0.5928225517272949,
0.19208857417106628,
0.3697041869163513,
0.2482479363679886,
-0.22184105217456818,
-0.029781589284539223,
-0.21401472389698029,
0.14408031105995178,
-0.13566352427005768,
-0.31093356013298035,
-0.012406178750097752,
-0.38986507058143616,
-0.06710157543420792,
0.3456319570541382,
-0.3711061179637909,
-0.2835848331451416,
0.18457868695259094,
0.19337569177150726,
-0.07840985804796219,
-0.5394604206085205,
0.03429485484957695,
-0.020687319338321686,
0.2379600554704666,
-0.049513570964336395,
0.32129138708114624,
0.31000399589538574,
-0.03499764949083328,
0.1355130821466446,
-0.028030093759298325,
0.3714962899684906,
0.19491690397262573,
0.1508663445711136,
-0.22175854444503784,
0.2618806064128876,
0.08228840678930283,
-0.057081129401922226,
0.08753848075866699,
0.13702867925167084,
0.41885867714881897,
0.2379569113254547,
0.10065673291683197,
-0.04182104393839836,
0.0913764238357544,
0.20753113925457,
-0.3471563756465912,
-0.33201131224632263,
0.07665102183818817,
-0.037105754017829895,
0.031248563900589943,
0.06645720452070236,
0.08595401048660278,
-0.17042526602745056,
-0.07160701602697372,
0.3773824870586395,
0.02231687121093273,
0.17771652340888977,
0.016767527908086777,
0.01740059070289135,
0.06801701337099075,
0.15674223005771637,
-0.04320574924349785,
-0.05523457005620003,
-0.3518209159374237,
0.2130558043718338,
-0.7748295068740845,
-0.173746719956398,
-0.010702957399189472,
-0.2574956715106964,
0.14453572034835815,
-0.0978599563241005,
0.09437637776136398,
0.4485418498516083,
0.12371576577425003,
-0.00187493150588125,
0.4510885775089264,
0.28339242935180664,
0.2019159346818924,
-0.37250086665153503,
-0.024797383695840836,
0.01999787427484989,
-0.22118182480335236,
-0.5889334678649902,
0.27818965911865234,
-0.2334432452917099,
-0.04610591381788254,
-0.3980068862438202,
0.09395451843738556,
0.3640528619289398,
-0.035314060747623444,
0.589318037033081,
0.0643814280629158,
0.4532056152820587,
0.007029011845588684,
0.05864333733916283,
0.19927409291267395,
0.25422370433807373,
-0.026267429813742638,
-0.0073243663646280766,
-0.278748482465744,
0.23735618591308594,
-0.2713417410850525,
0.20704729855060577,
-0.27452418208122253,
0.23981167376041412,
0.2244432270526886,
0.021466195583343506,
-0.2905828356742859,
-0.0523143969476223,
-0.13263081014156342,
-0.3739034831523895,
0.013994110748171806,
0.3103612959384918,
-0.11225506663322449,
0.4573248028755188,
-0.1265624463558197,
-0.14733105897903442,
0.3881327509880066,
-0.049408067017793655,
-0.17694249749183655,
0.08290544152259827,
0.12784667313098907,
0.36241811513900757,
0.18840759992599487,
-0.4318867325782776,
0.3127402663230896,
0.3188146650791168,
-0.2238079160451889,
-0.3838651776313782,
0.4087836444377899,
-0.2351435273885727,
0.09646215289831161,
-0.03783207759261131,
0.44005101919174194,
0.13027323782444,
-0.3078203797340393,
0.018646985292434692,
-0.29987871646881104
] |
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.2571401298046112,
-0.2127038985490799,
-0.0402400940656662,
0.16301579773426056,
0.4040091931819916,
-0.06867970526218414,
0.4393954873085022,
0.0929250568151474,
0.2167060375213623,
-0.08138298988342285,
-0.2033505141735077,
0.15104489028453827,
0.2890442907810211,
0.2188752144575119,
-0.047556061297655106,
-0.043488241732120514,
0.17236411571502686,
0.06637547165155411,
-0.35344940423965454,
0.05884554609656334,
-0.4380927085876465,
-0.02151573821902275,
-0.22590585052967072,
-0.2040407955646515,
0.1186356246471405,
0.11697248369455338,
0.14790058135986328,
0.15899018943309784,
-0.13377982378005981,
-0.3780212998390198,
0.38890719413757324,
0.05315632000565529,
0.43695715069770813,
0.02533634379506111,
-0.000125352933537215,
0.009091675281524658,
0.21515299379825592,
-0.36842307448387146,
-0.1690388023853302,
-0.29702892899513245,
-0.18947312235832214,
-0.29596230387687683,
0.2958129942417145,
-0.3904581665992737,
0.022786054760217667,
-0.1693534106016159,
-0.04713566228747368,
-0.07683740556240082,
0.1460925191640854,
0.36175763607025146,
0.11437574028968811,
0.1577693372964859,
-0.07664533704519272,
0.19774074852466583,
0.20816929638385773,
0.09308825433254242,
-0.08684153854846954,
0.393189936876297,
0.32265976071357727,
0.29789093136787415,
0.18514473736286163,
0.04640999808907509,
-0.32645612955093384,
0.0901595801115036,
0.4344956874847412,
0.08265688270330429,
0.5438575148582458,
-0.2351285219192505,
0.012047883123159409,
-0.04554314538836479,
0.7830657362937927,
-0.14293383061885834,
-0.12577100098133087,
-0.2601611614227295,
-0.008001851849257946,
-0.35585129261016846,
0.18298593163490295,
0.051252011209726334,
0.027960028499364853,
0.2612246870994568,
-0.32935798168182373,
-0.06174302101135254,
-0.004001682158559561,
0.3507043421268463,
-0.016312697902321815,
-0.003728471929207444,
-0.1991254836320877,
0.3501984775066376,
0.27800634503364563,
0.02518966794013977,
0.13371026515960693,
-0.4628359079360962,
0.18596355617046356,
0.05515985190868378,
-0.37476781010627747,
0.11971290409564972,
-0.11016345024108887,
0.2270292341709137,
0.2134390026330948,
0.23501698672771454,
-0.17312973737716675,
-0.1056639701128006,
-0.07903806120157242,
0.054388128221035004,
0.3305202126502991,
0.10844769328832626,
0.09230516850948334,
-0.30735987424850464,
-0.01591317169368267,
0.07505620270967484,
0.19395115971565247,
0.04558851569890976,
-0.0070978086441755295,
-0.20977060496807098,
0.5614824295043945,
-0.010033815167844296,
0.212088942527771,
-0.15575934946537018,
-0.2577975392341614,
-0.11930523812770844,
-0.10155200213193893,
-0.00934416800737381,
-0.041783034801483154,
0.3487725257873535,
-0.02123679779469967,
0.16705334186553955,
-0.11753369867801666,
0.42328619956970215,
-0.25889647006988525,
-0.10442013293504715,
-0.026805702596902847,
-0.16922274231910706,
-0.10966608673334122,
-0.17697271704673767,
0.30577754974365234,
-0.29191750288009644,
0.29439806938171387,
0.3564923405647278,
-0.18965154886245728,
-0.19255147874355316,
-0.03821451589465141,
-0.09223885089159012,
-0.009829995222389698,
0.428913414478302,
0.10953404009342194,
0.22182665765285492,
0.24283497035503387,
-0.11805413663387299,
-0.044117435812950134,
0.5599565505981445,
-0.3410298526287079,
-0.4236626923084259,
0.0073509314097464085,
0.07346679270267487,
-0.3567693531513214,
0.019164497032761574,
-0.3555154502391815,
0.122771255671978,
0.03275858983397484,
-0.23731659352779388,
0.08378150314092636,
-0.33704206347465515,
-0.07874556630849838,
-0.32490772008895874,
-0.03263932093977928,
0.6747341156005859,
-0.47086426615715027,
-0.014306043274700642,
-0.19251349568367004,
-0.2515564262866974,
0.3785537779331207,
0.07742280513048172,
-0.40310102701187134,
-0.04035832732915878,
-0.1870814859867096,
-0.09027467668056488,
0.43040966987609863,
-0.2198915034532547,
-0.5396740436553955,
0.270054429769516,
0.035019584000110626,
0.0890854224562645,
0.32541605830192566,
0.25781795382499695,
0.2394125908613205,
-0.15525425970554352,
-0.25092774629592896,
0.30235475301742554,
0.08931829780340195,
0.1630818396806717,
-0.11267518252134323,
-0.18494151532649994,
0.3365386724472046,
0.02099073864519596,
-0.26877084374427795,
0.2023785561323166,
-0.06389062106609344,
-0.24220699071884155,
0.1783631443977356,
0.02431344985961914,
-0.13160648941993713,
0.03611936420202255,
0.11874815821647644,
0.22865697741508484,
-0.15296287834644318,
0.06639859825372696,
-0.6884861588478088,
-0.03472691401839256,
0.2795569896697998,
-0.28239643573760986,
-0.2883076071739197,
-0.14025452733039856,
-0.45212289690971375,
-0.12107405066490173,
-0.3010736107826233,
0.08180776238441467,
-0.037569329142570496,
0.1825789362192154,
0.18328429758548737,
-0.03706102445721626,
-0.07296323031187057,
0.2751709818840027,
-0.1564929336309433,
0.24629637598991394,
-0.01330502051860094,
0.24975839257240295,
0.11083962768316269,
-0.07256857305765152,
0.14763472974300385,
-0.2571159303188324,
0.3647037148475647,
-0.2116823047399521,
-0.18652482330799103,
0.4816063642501831,
0.22140291333198547,
0.24708425998687744,
-0.5144001841545105,
0.0678616464138031,
0.19914402067661285,
0.18138402700424194,
0.001518541481345892,
-0.03536561131477356,
0.28974345326423645,
0.03884390369057655,
-0.28612011671066284,
0.20311537384986877,
-0.18083858489990234,
0.10223992168903351,
-0.12566719949245453,
-0.16880381107330322,
0.3344356417655945,
0.09322994202375412,
-0.10763560980558395,
-0.12086403369903564,
-0.10855330526828766,
0.06650892645120621,
0.17632365226745605,
0.2263210117816925,
-0.257077693939209,
0.11203251034021378,
0.3664938807487488,
-0.2465094029903412,
0.15775656700134277,
0.14055338501930237,
-0.018493959680199623,
-0.2118014544248581,
0.36600881814956665,
-0.03343861922621727,
0.5430470705032349,
0.07917698472738266,
-0.06560666859149933,
-0.09242823719978333,
-0.0947403535246849,
-0.22324346005916595,
0.43230023980140686,
-0.09017866104841232,
0.39306333661079407,
0.09282796084880829,
0.056719087064266205,
-0.37447434663772583,
-0.3599197566509247,
0.17013037204742432,
0.3153662085533142,
0.2394777536392212,
-0.4751324951648712,
0.035678453743457794,
-0.3608303368091583,
-0.24963542819023132,
-0.11424494534730911,
0.04895129054784775,
0.15255431830883026,
-0.2344687432050705,
-0.28814566135406494,
0.3770532011985779,
0.0880218967795372,
0.16813355684280396,
-0.26753997802734375,
-0.19808527827262878,
0.15413542091846466,
-0.7329847812652588,
0.0845135822892189,
0.03429309278726578,
-0.3322189450263977,
-0.09320789575576782,
0.21783627569675446,
-0.12197539955377579,
0.12805615365505219,
-0.2368912249803543,
-0.01291064266115427,
-0.379891961812973,
0.05223333090543747,
-0.01855454221367836,
0.028467748314142227,
0.25873884558677673,
-0.006434120703488588,
0.4116547405719757,
0.0028279831167310476,
0.15282760560512543,
0.260651558637619,
0.04938485473394394,
0.13083863258361816,
0.24046654999256134,
-0.07965879142284393,
0.09121734648942947,
-0.10801342874765396,
-0.6392269730567932,
-0.32087889313697815,
-0.1806236356496811,
-0.1476215273141861,
0.0652216225862503,
-0.025093957781791687,
0.06461814790964127,
0.3264109790325165,
-0.19835881888866425,
0.12416942417621613,
0.10981769114732742,
-0.35873594880104065,
-0.0688704252243042,
0.5512464046478271,
0.1337302029132843,
-0.16829559206962585,
-0.06229020655155182,
0.013463321141898632,
-0.05812476947903633,
0.2615841031074524,
-0.2785099446773529,
-0.28530803322792053,
-0.1439536064863205,
0.45261654257774353,
-0.06601832062005997,
0.2976054251194,
0.2848203182220459,
-0.018075255677103996,
0.14272184669971466,
0.02069784700870514,
-0.1765642762184143,
0.057863157242536545,
0.18874207139015198,
0.1285845786333084,
0.26523056626319885,
0.4068443477153778,
-0.19231560826301575,
0.4521813988685608,
0.12337340414524078,
-0.03810874745249748,
0.3927270472049713,
-0.17605073750019073,
0.24721498787403107,
0.12350261956453323,
-0.1327906996011734,
-0.06384450197219849,
-0.20238661766052246,
-0.014361904934048653,
0.2485184669494629,
-0.12479019910097122,
-0.21572431921958923,
-0.11859370023012161,
0.11081646382808685,
-0.5693222880363464,
-0.2923099398612976,
0.15482571721076965,
0.34295856952667236,
0.21717622876167297,
0.06427594274282455,
0.2186955213546753,
-0.11939186602830887,
-0.1251513957977295,
-0.02685110829770565,
0.6019426584243774,
0.1677824705839157,
0.1966416835784912,
-0.17997701466083527,
0.09772859513759613,
-0.11799541860818863,
0.28935936093330383,
0.084662526845932,
0.5040081143379211,
0.20426449179649353,
-0.01349477469921112,
0.09571525454521179,
-0.07430355250835419,
0.8621488809585571,
-0.07784935086965561,
0.2306223213672638,
0.016922807320952415,
0.23692686855793,
-0.3040493428707123,
-0.1977236270904541,
-0.14892707765102386,
0.13297036290168762,
-0.019100887700915337,
0.15183748304843903,
-0.3600398302078247,
-0.1250205785036087,
-0.043709322810173035,
0.47569289803504944,
-0.10133574157953262,
-0.42118123173713684,
-0.29166877269744873,
-0.4378741979598999,
-0.45402029156684875,
-0.05589265003800392,
0.01200086809694767,
0.07909134030342102,
-0.23372897505760193,
0.02549302764236927,
0.10005709528923035,
0.0465213879942894,
-0.0006268598372116685,
-0.0486607663333416,
0.15966741740703583,
0.08044297248125076,
0.03079395554959774,
-0.060611240565776825,
-0.3898467719554901,
0.13672779500484467,
0.5804671049118042,
-0.12316407263278961,
-0.4300065040588379,
0.07805362343788147,
0.0023523156996816397,
0.1949387639760971,
0.12402556836605072,
-0.2761421501636505,
-0.02307010069489479,
-0.05615577846765518,
-0.06129783019423485,
-0.153351292014122,
-0.016971837729215622,
0.3136211037635803,
-0.00655360659584403,
-0.06391534954309464,
-0.8783684372901917,
0.5908772349357605,
-0.04705352708697319,
-0.12281835079193115,
-0.0681617334485054,
0.1936957687139511,
-0.13710112869739532,
0.006853040307760239,
0.008833392523229122,
0.7403278350830078,
-0.1477382481098175,
-0.023425931110978127,
0.4106371998786926,
0.01652362197637558,
0.6323756575584412,
-0.2574588358402252,
0.14520303905010223,
-0.21999117732048035,
0.13685055077075958,
-0.059244006872177124,
-0.21234843134880066,
0.37201520800590515,
0.0788646936416626,
-0.15909895300865173,
0.4723001718521118,
-0.2580108344554901,
0.3843175172805786,
0.0349198542535305,
0.11493725329637527,
-0.2998349964618683,
-0.2017107605934143,
-0.29723891615867615,
0.04372858628630638,
-0.18080443143844604,
0.14415480196475983,
0.04897214472293854,
0.08813529461622238,
0.00888738501816988,
0.14231933653354645,
-0.040246348828077316,
-0.10511183738708496,
-0.2145477682352066,
0.0028593381866812706,
-0.2828824520111084,
-0.2913121283054352,
0.1696629375219345,
0.49402111768722534,
-0.07292180508375168,
-0.027958417311310768,
-0.08939452469348907,
-0.03322660177946091,
0.026972835883498192,
0.1663247048854828,
-0.1406584233045578,
-0.04220825061202049,
0.25794264674186707,
0.040078576654195786,
-0.24435316026210785,
0.13006988167762756,
0.010461405850946903,
0.10886120796203613,
0.0024229679256677628,
-0.1839754581451416,
0.15045183897018433,
-0.5237005949020386,
-0.6343927383422852,
-0.05058674514293671,
0.13043157756328583,
0.012819888070225716,
-0.013184645213186741,
-0.10370174050331116,
0.13413648307323456,
0.20799410343170166,
-0.20319458842277527,
-0.33640536665916443,
-0.3015029728412628,
0.32137423753738403,
0.0739852711558342,
0.23002438247203827,
0.10357747972011566,
0.09231257438659668,
-0.20060589909553528,
-0.020833928138017654,
0.07168987393379211,
-0.39931029081344604,
-0.44692307710647583,
0.03799410164356232,
0.07482434809207916,
0.24943086504936218,
-0.2763225734233856,
0.17645935714244843,
0.12840571999549866,
-0.12199653685092926,
0.049150992184877396,
-0.30135321617126465,
-0.1138838678598404,
0.046874649822711945,
0.28388094902038574,
-0.0032974188216030598,
0.2612098455429077,
-0.15716028213500977,
0.09325025230646133,
-0.5119234323501587,
-0.16554777324199677,
-0.01713283732533455,
0.18857207894325256,
0.1145515888929367,
0.19657747447490692,
0.1997140794992447,
-0.030941328033804893,
-0.16148769855499268,
0.012044779025018215,
-0.0239462498575449,
-0.2194652557373047,
-0.102314293384552,
-0.18907524645328522,
0.2198646366596222,
0.004794579464942217,
-0.23701535165309906,
-0.07815280556678772,
-0.4396768808364868,
-0.006391874514520168,
-0.15084366500377655,
0.2134181708097458,
0.21148569881916046,
-0.0225065927952528,
0.1191343292593956,
-0.34449875354766846,
-0.1300971359014511,
-0.4444694221019745,
0.09514525532722473,
-0.270044207572937,
0.2525135576725006,
0.2192467302083969,
0.21460996568202972,
0.11947944015264511,
0.034609343856573105,
-0.45908814668655396,
0.02698717825114727,
0.06762062758207321,
0.14364440739154816,
0.17549380660057068,
-0.21413563191890717,
0.32520437240600586,
0.07047351449728012,
0.22299540042877197,
0.4845406711101532,
-0.1388932466506958,
-0.1331436187028885,
0.14737166464328766,
0.06260725855827332,
-0.2442161738872528,
-0.11622593551874161,
-0.09637253731489182,
0.05849818140268326,
0.02489692158997059,
0.4365074634552002,
0.2103262096643448,
0.13857689499855042,
-0.02326362393796444,
-0.09395137429237366,
0.5303497910499573,
0.23827140033245087,
0.05301397293806076,
0.598822832107544,
0.03726787120103836,
0.12607964873313904,
0.3304841220378876,
0.20084652304649353,
0.02492072433233261,
0.27065229415893555,
-0.054969027638435364,
0.029417138546705246,
0.2067651003599167,
0.1966654658317566,
-0.2933323383331299,
-0.5684540867805481,
0.2525371015071869,
0.36390921473503113,
-0.6029029488563538,
0.19191478192806244,
0.30809953808784485,
0.3266716003417969,
-0.25000473856925964,
-0.04253501817584038,
-0.21192067861557007,
0.1807716190814972,
-0.15144570171833038,
-0.25731849670410156,
-0.0307767391204834,
-0.4313875138759613,
-0.13924400508403778,
0.34224581718444824,
-0.34857192635536194,
-0.2752625644207001,
0.22151286900043488,
0.19239139556884766,
-0.06879711151123047,
-0.5239707827568054,
0.08204334229230881,
-0.010984801687300205,
0.25645530223846436,
-0.07441820949316025,
0.3178035318851471,
0.3104500472545624,
-0.02515639178454876,
0.1266556680202484,
-0.03022298961877823,
0.38323113322257996,
0.1735897809267044,
0.12329684942960739,
-0.23497268557548523,
0.20473313331604004,
0.05484969913959503,
-0.03124656341969967,
0.04431723430752754,
0.14255894720554352,
0.44242599606513977,
0.2582487165927887,
0.09869252890348434,
-0.049301572144031525,
0.19069190323352814,
0.16521093249320984,
-0.38284191489219666,
-0.3693980872631073,
0.08122561126947403,
-0.04124479740858078,
0.021110227331519127,
0.08206219971179962,
-0.01932767778635025,
-0.1319548785686493,
-0.060937076807022095,
0.3863156735897064,
0.10330545902252197,
0.2183608114719391,
0.09377432614564896,
0.016457488760352135,
0.04545429348945618,
0.17788231372833252,
-0.08221305906772614,
-0.013113776221871376,
-0.35093745589256287,
0.2613556683063507,
-0.75693279504776,
-0.17920246720314026,
-0.07207273691892624,
-0.31627175211906433,
0.22691789269447327,
-0.06807645410299301,
0.08324746787548065,
0.49201956391334534,
0.10159967094659805,
-0.07794321328401566,
0.49031534790992737,
0.23577958345413208,
0.1611432433128357,
-0.37868693470954895,
-0.04627172648906708,
0.05569252371788025,
-0.22311687469482422,
-0.5922366380691528,
0.31913986802101135,
-0.3066430687904358,
-0.005391858518123627,
-0.39255937933921814,
0.0455302819609642,
0.2697092890739441,
-0.08718382567167282,
0.5793068408966064,
0.08896437287330627,
0.49397197365760803,
0.006149127148091793,
0.08019766956567764,
0.2767922282218933,
0.25861677527427673,
-0.02106943167746067,
-0.007607928942888975,
-0.3024642765522003,
0.29360440373420715,
-0.23217757046222687,
0.23487645387649536,
-0.26244595646858215,
0.22843477129936218,
0.24931876361370087,
-0.04493129625916481,
-0.25441789627075195,
-0.06779506802558899,
-0.14882425963878632,
-0.38435712456703186,
0.029691802337765694,
0.34055036306381226,
-0.15505684912204742,
0.40024659037590027,
-0.11274392157793045,
-0.1097000390291214,
0.3859418034553528,
-0.009118424728512764,
-0.1762106716632843,
0.07426682859659195,
0.09393170475959778,
0.4447630047798157,
0.22569763660430908,
-0.46522560715675354,
0.2522890269756317,
0.3160276412963867,
-0.1756308674812317,
-0.34455224871635437,
0.396954745054245,
-0.18295487761497498,
0.05705094709992409,
0.0019051479175686836,
0.44851016998291016,
0.08474088460206985,
-0.3051187992095947,
0.011831393465399742,
-0.33021238446235657
] |
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.03164530172944069,
0.013758412562310696,
-0.26586034893989563,
0.011651008389890194,
-0.12613612413406372,
-0.12067020684480667,
0.08221086114645004,
0.3159666955471039,
0.3856460452079773,
0.15779133141040802,
0.09081801772117615,
0.46059074997901917,
-0.3150094747543335,
-0.06376194208860397,
-0.09903554618358612,
-0.04761359468102455,
-0.05909758061170578,
0.15708214044570923,
-0.17229437828063965,
-0.13998070359230042,
-0.19904623925685883,
-0.15815229713916779,
-0.07543133199214935,
-0.14578117430210114,
0.17486543953418732,
-0.2872920632362366,
-0.23926055431365967,
-0.18797419965267181,
-0.39994731545448303,
-0.1362811028957367,
-0.037962112575769424,
0.617453396320343,
-0.0462140329182148,
0.06466397643089294,
-0.00010122237290488556,
-0.16866762936115265,
0.23135431110858917,
0.08545563369989395,
-0.06845882534980774,
-0.044198501855134964,
-0.2537708580493927,
-0.12522995471954346,
0.2018480747938156,
-0.5509764552116394,
-0.05841754004359245,
-0.27144429087638855,
0.4295843839645386,
-0.4214335083961487,
0.5393213033676147,
-0.08562367409467697,
0.2302742600440979,
-0.0530727319419384,
-0.31062740087509155,
0.0365997813642025,
0.3807842433452606,
0.15839380025863647,
-0.057646751403808594,
-0.09533888101577759,
0.45255234837532043,
0.10183171182870865,
-0.1245771050453186,
0.29253247380256653,
-0.15593381226062775,
0.12635473906993866,
0.4784337878227234,
0.007892622612416744,
-0.4412192106246948,
-0.42628756165504456,
-0.15404798090457916,
0.0608585961163044,
0.53243488073349,
-0.18613538146018982,
-0.2275093048810959,
-0.10354157537221909,
-0.056550249457359314,
-0.012566049583256245,
-0.24634544551372528,
-0.007995383813977242,
0.20703504979610443,
0.20989470183849335,
-0.21325962245464325,
-0.17709316313266754,
-0.23589485883712769,
0.25796371698379517,
0.2851657271385193,
0.023109544068574905,
0.04945432022213936,
0.15780968964099884,
-0.06190700829029083,
-0.008836229331791401,
0.17754368484020233,
-0.16937683522701263,
-0.09159516543149948,
0.3831138014793396,
0.07383318245410919,
-0.2585499882698059,
0.15562522411346436,
0.06860587000846863,
0.3009394705295563,
0.3678811192512512,
0.48185232281684875,
0.2997102737426758,
-0.5404181480407715,
0.248729407787323,
0.30106714367866516,
-0.10543546080589294,
-0.1393638402223587,
0.04961516335606575,
0.3160537779331207,
-0.07661157846450806,
0.08038589358329773,
0.016532743349671364,
0.1527775526046753,
0.17149019241333008,
0.14641110599040985,
-0.15038485825061798,
0.04395627975463867,
-0.06779558211565018,
0.1476469337940216,
-0.14414478838443756,
0.06417576968669891,
-0.17506565153598785,
-0.10251687467098236,
0.21553422510623932,
-0.10021346062421799,
0.14616535604000092,
0.14810381829738617,
-0.07221468538045883,
0.3096321225166321,
0.025767430663108826,
-0.08289943635463715,
-0.007953009568154812,
0.04904403164982796,
0.19772207736968994,
0.14369632303714752,
0.15982644259929657,
0.09560712426900864,
0.10714279860258102,
-0.2972560524940491,
0.06310707330703735,
0.7239735722541809,
-0.2636162340641022,
0.43008047342300415,
-0.11514806002378464,
-0.1545204520225525,
-0.2465791404247284,
-0.17595542967319489,
0.20885875821113586,
-0.4214296340942383,
0.15691064298152924,
-0.4271492063999176,
-0.1343190222978592,
0.08972050994634628,
0.27439090609550476,
-0.07378474622964859,
0.03973720967769623,
-0.1317952424287796,
0.6621149778366089,
-0.027593936771154404,
-0.1764547973871231,
0.35856103897094727,
0.13507574796676636,
-0.29706546664237976,
-0.25603553652763367,
-0.13246655464172363,
0.3818054795265198,
0.015217244625091553,
-0.11528298258781433,
-0.07757958769798279,
0.00683140242472291,
-0.26337528228759766,
0.07679560780525208,
-0.30042797327041626,
0.23246259987354279,
-0.10321541130542755,
0.03791799023747444,
0.5653924942016602,
-0.42517876625061035,
-0.20097634196281433,
0.19148395955562592,
0.1012706384062767,
0.012178759090602398,
0.05662142112851143,
0.461398184299469,
0.27026745676994324,
-0.0736529678106308,
0.11596646159887314,
0.28036966919898987,
-0.019198603928089142,
-0.006371063180267811,
0.02008744329214096,
-0.5893140435218811,
0.042112477123737335,
0.26012739539146423,
0.01526707224547863,
0.032285697758197784,
0.23423248529434204,
-0.037520021200180054,
0.19602082669734955,
-0.17504388093948364,
0.08705656230449677,
-0.3264836370944977,
0.26518091559410095,
-0.03004598431289196,
-0.01830524578690529,
-0.25065264105796814,
-0.4685736298561096,
0.02886490896344185,
0.027825526893138885,
-0.017696766182780266,
0.09634656459093094,
-0.28503862023353577,
0.3895653486251831,
-0.142019584774971,
-0.10392610728740692,
0.01196343544870615,
0.21128711104393005,
-0.0756070539355278,
-0.07675899565219879,
-0.049619898200035095,
-0.37714943289756775,
-0.018587805330753326,
0.00879384484142065,
0.008695270866155624,
-0.31243786215782166,
0.017600785940885544,
0.236019566655159,
0.06823356449604034,
-0.11418769508600235,
-0.0841510221362114,
-0.20949092507362366,
-0.07322530448436737,
0.08059260994195938,
0.11306097358465195,
0.4026203155517578,
0.11988856643438339,
-0.008841348811984062,
0.3823270797729492,
0.331790030002594,
-0.0653146281838417,
0.34230953454971313,
0.24783127009868622,
0.1485622376203537,
-0.09439428150653839,
-0.2361263632774353,
0.11998214572668076,
-0.2427385151386261,
0.08151905238628387,
-0.033425819128751755,
-0.14968611299991608,
0.24410179257392883,
-0.00810784101486206,
-0.3279361426830292,
-0.25212734937667847,
-0.0721694603562355,
0.29615819454193115,
0.3833504319190979,
-0.0039717890322208405,
-0.09578213840723038,
0.05044039338827133,
0.2785748541355133,
-0.049142420291900635,
0.05624214559793472,
0.1528507024049759,
0.36052483320236206,
-0.09038501232862473,
0.23277492821216583,
0.048589784651994705,
0.32367217540740967,
0.25414204597473145,
-0.21837276220321655,
-0.07320326566696167,
0.2605609595775604,
0.017473038285970688,
0.09216199815273285,
0.17721103131771088,
0.19359369575977325,
-0.2423485368490219,
0.3541032075881958,
0.16040219366550446,
-0.10928642004728317,
-0.6076214909553528,
0.12434355914592743,
-0.13857239484786987,
0.23870065808296204,
-0.09576975554227829,
0.08318495750427246,
-0.033987440168857574,
0.007448506075888872,
-0.14999200403690338,
0.06511442363262177,
0.012922616675496101,
0.2524849474430084,
-0.013021041639149189,
-0.46758922934532166,
0.0029510778840631247,
-0.246266171336174,
0.6607552170753479,
-0.23352742195129395,
-0.14469598233699799,
-0.2904371917247772,
-0.1868736892938614,
0.21947473287582397,
0.15334010124206543,
0.07636529952287674,
0.024777529761195183,
0.6802104115486145,
-0.04671783000230789,
-0.02108975499868393,
-0.24497556686401367,
-0.4454801678657532,
0.1895516961812973,
0.02190416119992733,
0.08366138488054276,
0.2553388178348541,
-0.26297807693481445,
0.12857146561145782,
-0.15772798657417297,
-0.008915543556213379,
-0.18068914115428925,
0.004597830586135387,
-0.4637441337108612,
-0.013971533626317978,
-0.016113830730319023,
-0.31695979833602905,
-0.07705879956483841,
-0.3230471909046173,
-0.5011573433876038,
0.4366030693054199,
0.16574296355247498,
0.3440576195716858,
-0.01919558271765709,
0.0011945900041610003,
0.0038693263195455074,
0.2962949275970459,
0.1945667862892151,
-0.20448943972587585,
-0.33780160546302795,
0.1303236037492752,
-0.35076627135276794,
-0.2318701297044754,
-0.2668491005897522,
-0.13795064389705658,
0.082642562687397,
0.30817195773124695,
-0.41099196672439575,
-0.5004560351371765,
-0.10306749492883682,
0.36294224858283997,
0.115421824157238,
0.004031434189528227,
0.15141959488391876,
0.39082980155944824,
-0.1510014533996582,
-0.06575357168912888,
-0.1858520656824112,
0.3007412552833557,
0.08459802716970444,
-0.30381718277931213,
0.4934721887111664,
0.005986448843032122,
-0.1796162724494934,
0.47372227907180786,
-0.061243362724781036,
-0.12278496474027634,
0.6362371444702148,
0.16668535768985748,
0.186919704079628,
-0.16185319423675537,
-0.022069424390792847,
-0.12293444573879242,
0.015392478555440903,
-0.17324331402778625,
0.16899734735488892,
-0.014393382705748081,
-0.4332825243473053,
-0.21080930531024933,
-0.08954548835754395,
-0.32042524218559265,
-0.12494730204343796,
0.1773776113986969,
-0.19271068274974823,
-0.1760846972465515,
-0.0012909555807709694,
0.07854123413562775,
-0.36198556423187256,
0.05558152124285698,
0.3197859227657318,
-0.08877076953649521,
0.37067779898643494,
-0.21701468527317047,
-0.2395540475845337,
0.07213542610406876,
-0.29719698429107666,
0.3878660202026367,
-0.015310834161937237,
-0.177942156791687,
0.06739543378353119,
-0.1837061643600464,
-0.04152686893939972,
-0.21217477321624756,
0.37320366501808167,
-0.18100865185260773,
-0.28715023398399353,
-0.0875936821103096,
-0.2525025010108948,
0.09180130809545517,
0.2313673496246338,
-0.22481977939605713,
-0.2691425383090973,
-0.13142064213752747,
0.5000823736190796,
-0.31176456809043884,
-0.03029407188296318,
0.0825476199388504,
-0.022825874388217926,
-0.11141852289438248,
-0.20347090065479279,
0.039860837161540985,
-0.26505398750305176,
-0.3558034300804138,
-0.2392139434814453,
-0.1007637232542038,
-0.21146969497203827,
0.11792055517435074,
-0.4718102216720581,
-0.2868669033050537,
0.23488007485866547,
-0.00009677946945885196,
0.18096975982189178,
0.08954451233148575,
-0.045564960688352585,
0.19412009418010712,
0.10560224205255508,
-0.044865693897008896,
0.07047966122627258,
0.35061904788017273,
-0.44678056240081787,
-0.13413237035274506,
0.04755396768450737,
-0.045292701572179794,
0.00033546192571520805,
0.19735336303710938,
0.21778957545757294,
0.30833372473716736,
0.15524393320083618,
0.15540370345115662,
-0.40409332513809204,
0.16367554664611816,
0.22158408164978027,
-0.030374309048056602,
-0.2600879371166229,
-0.8813294768333435,
0.4342661201953888,
0.19391655921936035,
-0.37773680686950684,
0.508974015712738,
-0.26275143027305603,
-0.32868772745132446,
0.5772546529769897,
0.4083498418331146,
0.8184036016464233,
-0.09833689779043198,
0.1716855764389038,
0.012231884524226189,
-0.18364807963371277,
0.7522250413894653,
-0.04726750776171684,
-0.011886181309819221,
-0.22001934051513672,
-0.18309850990772247,
-0.049623146653175354,
-0.018323032185435295,
0.010389087721705437,
0.038404468446969986,
-0.4284003674983978,
0.09525440633296967,
0.40165582299232483,
0.08831200003623962,
-0.2598719596862793,
0.41923561692237854,
-0.38975945115089417,
-0.31778618693351746,
-0.39653775095939636,
0.2290993183851242,
0.05770660936832428,
-0.056892335414886475,
-0.20134153962135315,
-0.1468287706375122,
-0.02168414741754532,
-0.1450178623199463,
0.14108768105506897,
-0.049724653363227844,
-0.09820154309272766,
0.2889796793460846,
-0.2026171237230301,
-0.06178385764360428,
-0.1000952199101448,
-0.04051128774881363,
-0.12069402635097504,
0.20512688159942627,
-0.20087121427059174,
0.010179397650063038,
0.054081887006759644,
0.17032191157341003,
-0.009512210264801979,
-0.2149825394153595,
0.3916642665863037,
-0.09032700955867767,
-0.12063602358102798,
0.15069743990898132,
0.0843682736158371,
-0.3436559736728668,
-0.32855138182640076,
0.0956079289317131,
0.23980240523815155,
-0.02664809301495552,
-0.32218146324157715,
0.27341604232788086,
-0.18421445786952972,
0.030022725462913513,
0.17776799201965332,
0.15388037264347076,
0.14351771771907806,
0.34143030643463135,
0.014531731605529785,
-0.0362868532538414,
-0.11415916681289673,
0.022197939455509186,
0.09972816705703735,
-0.1149284765124321,
0.09721584618091583,
-0.15543855726718903,
0.011654451489448547,
-0.30612626671791077,
-0.014471519738435745,
0.32594579458236694,
-0.2271256297826767,
0.14057761430740356,
-0.04243611916899681,
-0.27300915122032166,
-0.13165004551410675,
0.3220630884170532,
0.04621974378824234,
0.16091355681419373,
-0.0436263345181942,
-0.026511874049901962,
-0.4319012463092804,
0.4262450337409973,
0.26989826560020447,
0.522026777267456,
0.06284667551517487,
-0.36032557487487793,
-0.07222101837396622,
0.2898753881454468,
-0.4333049952983856,
-0.043410785496234894,
-0.060693126171827316,
0.11390572786331177,
-0.2334897667169571,
0.12048293650150299,
-0.268612802028656,
0.10777302086353302,
0.1110159158706665,
0.20472487807273865,
-0.32144713401794434,
-0.27454090118408203,
-0.28257036209106445,
0.13827483355998993,
-0.004582203458994627,
0.08004780858755112,
-0.06755749136209488,
-0.3578973412513733,
-0.15893447399139404,
-0.2625750005245209,
0.0855758935213089,
-0.10215795785188675,
-0.11914193630218506,
-0.06826871633529663,
0.2984778881072998,
0.009548160247504711,
-0.1344481110572815,
0.3815540075302124,
0.08713933825492859,
0.14237850904464722,
0.09751927852630615,
0.14983874559402466,
-0.1974891871213913,
-0.17716363072395325,
0.39526912569999695,
0.1929662823677063,
0.2850933074951172,
0.1449054628610611,
0.12261170148849487,
0.32865017652511597,
0.15750840306282043,
0.10263779014348984,
0.3508155047893524,
0.32966184616088867,
-0.190077543258667,
-0.06693442165851593,
0.15589047968387604,
0.32663190364837646,
-0.2356424182653427,
-0.008313167840242386,
0.01632123813033104,
-0.08321689069271088,
0.1398480087518692,
0.19980157911777496,
-0.17298142611980438,
0.0740867555141449,
-0.14095978438854218,
0.024827659130096436,
0.35460925102233887,
-0.2582051157951355,
-0.006114719435572624,
-0.13411922752857208,
-0.19701983034610748,
-0.059591539204120636,
0.20593707263469696,
0.2577480971813202,
0.26022598147392273,
0.08062142133712769,
-0.11775101721286774,
0.44879549741744995,
0.19165687263011932,
0.11419489979743958,
0.24553827941417694,
0.018703047186136246,
0.3160085082054138,
0.4250284433364868,
0.2525928020477295,
0.5317394733428955,
0.3590678572654724,
-0.02131735533475876,
0.1426800936460495,
-0.16047951579093933,
-0.09615190327167511,
0.22606895864009857,
0.19215744733810425,
0.037152260541915894,
-0.03757302463054657,
-0.1719563901424408,
0.030473722144961357,
0.023791901767253876,
0.045573070645332336,
-0.2055729627609253,
0.5976636409759521,
0.24250370264053345,
0.0016855630092322826,
-0.15377964079380035,
0.06116754934191704,
-0.0503874234855175,
0.3446066677570343,
-0.2554198205471039,
-0.017002737149596214,
0.13201770186424255,
-0.14502529799938202,
0.21903735399246216,
0.3608762323856354,
-0.055007997900247574,
0.39748451113700867,
0.011128145270049572,
0.3629971742630005,
-0.07132291048765182,
-0.08216576278209686,
-0.3574271500110626,
0.21834145486354828,
0.2614523768424988,
-0.12143640220165253,
0.2981266677379608,
0.19656652212142944,
-0.20947597920894623,
0.06299787759780884,
0.013949930667877197,
0.0031716316007077694,
-0.2451430708169937,
0.2634294927120209,
0.38958463072776794,
-0.3707018196582794,
0.16287432610988617,
0.03969579190015793,
-0.44881629943847656,
0.013201596215367317,
-0.0758393183350563,
-0.37523898482322693,
0.007831214927136898,
-0.01925075799226761,
0.13292032480239868,
-0.12488627433776855,
0.20741306245326996,
0.07732246816158295,
0.4497218728065491,
-0.1364649087190628,
-0.14375589787960052,
-0.41400647163391113,
0.20902562141418457,
0.036639805883169174,
-0.1769728809595108,
-0.0558742880821228,
-0.05645139515399933,
0.1387459933757782,
0.04416685923933983,
-0.02533058449625969,
-0.28733906149864197,
0.03776586428284645,
0.07032538950443268,
-0.32910415530204773,
0.07350378483533859,
-0.015087364241480827,
0.11489515751600266,
0.0628167912364006,
-0.37072041630744934,
0.09460972249507904,
-0.26637497544288635,
0.0631345584988594,
-0.1402844488620758,
0.07297920435667038,
0.11424090713262558,
-0.10537286847829819,
0.7482126355171204,
0.22790977358818054,
-0.03287098929286003,
-0.294871985912323,
0.019161412492394447,
0.024449210613965988,
-0.044572409242391586,
-0.20854692161083221,
0.001162794535048306,
0.27170586585998535,
0.09315419942140579,
-0.01044244784861803,
0.05117126181721687,
-0.1470225751399994,
0.1538032442331314,
-0.06861182302236557,
0.13705967366695404,
-0.1405930072069168,
0.07353964447975159,
0.056824248284101486,
-0.24352653324604034,
-0.20903947949409485,
0.3722028136253357,
0.12202552706003189,
-0.09567525237798691,
-0.05230850726366043,
-0.03284868970513344,
0.38871467113494873,
-0.5408632755279541,
-0.09913306683301926,
-0.12030411511659622,
0.10363491624593735,
-0.13905757665634155,
-0.012547420337796211,
-0.44507232308387756,
-0.06973298639059067,
0.2892310321331024,
-0.1003463938832283,
-0.11961204558610916,
0.4591064155101776,
0.2960061728954315,
-0.1567552089691162,
-0.20759393274784088,
0.37050312757492065,
0.009487908333539963,
-0.30576837062835693,
0.012503430247306824,
-0.3759895861148834
] |
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.0725734531879425,
-0.08528979867696762,
-0.11802525073289871,
-0.04586488753557205,
0.15466777980327606,
0.20353977382183075,
0.6252437233924866,
0.19813218712806702,
0.11475076526403427,
0.3940245807170868,
0.04199552908539772,
0.36922743916511536,
-0.24358920753002167,
0.27824077010154724,
0.191498801112175,
-0.45201992988586426,
0.07772502303123474,
-0.22254621982574463,
0.27956366539001465,
0.14416168630123138,
-0.1701502948999405,
0.02908971905708313,
-0.10989425331354141,
0.24884766340255737,
-0.44824957847595215,
0.05218806490302086,
-0.027883313596248627,
-0.04079180583357811,
0.07290603220462799,
-0.4732065796852112,
0.06945783644914627,
0.5114653706550598,
-0.09232790023088455,
0.45972129702568054,
-0.00012012789375148714,
-0.2272786647081375,
0.39218878746032715,
-0.16340580582618713,
-0.36042356491088867,
-0.2719937264919281,
-0.27209943532943726,
-0.05087539553642273,
0.19106760621070862,
-0.39209243655204773,
-0.014088707976043224,
-0.05463329330086708,
-0.06922995299100876,
-0.27504828572273254,
0.12171364575624466,
0.225216805934906,
0.12752200663089752,
-0.03596867620944977,
-0.12078285217285156,
-0.002329224720597267,
0.0822666734457016,
0.45338886976242065,
-0.33551326394081116,
0.14117595553398132,
0.06162535771727562,
-0.05898358300328255,
0.2678494453430176,
0.035396985709667206,
0.007842759601771832,
-0.1759856790304184,
-0.03375307098031044,
0.06865550577640533,
-0.15219219028949738,
-0.2227630317211151,
-0.09491471201181412,
0.40066272020339966,
0.3223872780799866,
-0.32919541001319885,
-0.40781012177467346,
-0.4338793158531189,
0.15804460644721985,
-0.2891123294830322,
-0.004350153263658285,
-0.061005719006061554,
0.006847257260233164,
0.2569345235824585,
-0.15190722048282623,
-0.03833285719156265,
-0.13919802010059357,
0.15041802823543549,
0.16798895597457886,
0.27305445075035095,
0.17571303248405457,
0.15395429730415344,
0.4608617424964905,
0.03187454491853714,
0.26712509989738464,
-0.27590125799179077,
0.14299769699573517,
0.013591920025646687,
-0.1820889711380005,
-0.23540043830871582,
-0.3166782557964325,
-0.40031465888023376,
-0.038581956177949905,
0.2578308880329132,
-0.0899052545428276,
0.002925655571743846,
-0.11850614100694656,
-0.03620002418756485,
0.12133502215147018,
0.20421849191188812,
0.19220249354839325,
0.7993478178977966,
0.1940680742263794,
0.14256609976291656,
-0.050987422466278076,
-0.08382607251405716,
-0.07327000796794891,
-0.21981629729270935,
0.13193923234939575,
0.11735210567712784,
-0.14804519712924957,
0.09727025777101517,
-0.21572846174240112,
-0.16222113370895386,
-0.3056788146495819,
-0.16075369715690613,
0.26212435960769653,
0.23941342532634735,
0.035066209733486176,
0.08690567314624786,
-0.07951952517032623,
0.05684438720345497,
0.14681832492351532,
-0.05486040189862251,
-0.10577838867902756,
0.0489819198846817,
-0.2527076303958893,
0.14306744933128357,
0.25513526797294617,
-0.020210707560181618,
0.025175748392939568,
-0.11866574734449387,
0.24277262389659882,
-0.25232625007629395,
-0.07129563391208649,
-0.010148396715521812,
0.37107276916503906,
0.17648279666900635,
-0.25651344656944275,
-0.08957129716873169,
-0.21487019956111908,
-0.04137953370809555,
-0.12691403925418854,
0.024117225781083107,
-0.183363139629364,
-0.44843465089797974,
0.01843033730983734,
0.060959793627262115,
-0.18245097994804382,
0.0002769128477666527,
-0.047003861516714096,
0.29328328371047974,
0.269039124250412,
0.07021331787109375,
0.16555126011371613,
0.03461267799139023,
-0.16790752112865448,
-0.06673476845026016,
0.38961389660835266,
0.08742132037878036,
-0.3150936961174011,
-0.16407784819602966,
-0.33785152435302734,
0.08885331451892853,
0.03492693603038788,
0.0031335640233010054,
-0.05573926493525505,
0.22307053208351135,
-0.07022968679666519,
0.24009883403778076,
0.33501267433166504,
-0.1714235246181488,
0.044031254947185516,
0.04585772007703781,
0.08664984256029129,
-0.00929631944745779,
0.28880804777145386,
-0.15595954656600952,
0.10661743581295013,
-0.03297827020287514,
-0.12106655538082123,
0.1750897318124771,
-0.32452327013015747,
-0.19721543788909912,
0.02261526696383953,
-0.09282197803258896,
0.399280846118927,
0.1736495941877365,
0.02481032907962799,
-0.15483905375003815,
-0.2240210920572281,
0.2639461159706116,
0.43561887741088867,
-0.007708235178142786,
0.08101728558540344,
-0.2269657403230667,
0.3232061266899109,
0.42508405447006226,
0.12690982222557068,
-0.43144547939300537,
-0.17309439182281494,
0.12140796333551407,
0.17794349789619446,
-0.13343985378742218,
-0.12410684674978256,
-0.3705472946166992,
-0.3022027909755707,
-0.1747017502784729,
-0.09574441611766815,
0.0025736100506037474,
0.05650898441672325,
-0.13497789204120636,
0.11699623614549637,
-0.09127736836671829,
-0.33706772327423096,
0.08106275647878647,
-0.41173747181892395,
0.21739451587200165,
-0.02336764708161354,
0.36308175325393677,
0.3540450930595398,
-0.005977786611765623,
-0.4311007559299469,
0.4017506241798401,
0.15342235565185547,
-0.15063762664794922,
-0.12496941536664963,
0.4914856255054474,
0.5371119976043701,
-0.15352146327495575,
-0.13355271518230438,
-0.027776258066296577,
0.0029968793969601393,
-0.12234107404947281,
0.05401227995753288,
0.23839505016803741,
-0.1113678365945816,
-0.10988645255565643,
-0.16303223371505737,
0.37514203786849976,
-0.4445961117744446,
0.38169243931770325,
-0.1641293317079544,
0.06511779874563217,
-0.1421227604150772,
-0.22470873594284058,
-0.4564582407474518,
-0.3743859529495239,
-0.28487730026245117,
-0.598031759262085,
0.16536369919776917,
-0.31220489740371704,
-0.25301775336265564,
-0.2069660872220993,
0.34111714363098145,
-0.18148265779018402,
0.008439373224973679,
-0.18159517645835876,
0.22016194462776184,
0.18744666874408722,
-0.09042398631572723,
0.449209064245224,
0.32089963555336,
0.13034586608409882,
-0.09941506385803223,
-0.12137708067893982,
-0.05667528882622719,
-0.08790386468172073,
0.18565338850021362,
0.3309946358203888,
-0.05040733888745308,
0.12697508931159973,
-0.22774916887283325,
-0.28415942192077637,
0.014225425198674202,
-0.1667640060186386,
0.2953527867794037,
-0.2170957624912262,
-0.2728697657585144,
-0.00416861567646265,
-0.31486040353775024,
-0.15306219458580017,
-0.3443508744239807,
-0.1824577897787094,
-0.18179593980312347,
-0.37932151556015015,
0.09495565295219421,
0.09578380733728409,
-0.3661887049674988,
0.327219158411026,
-0.09367990493774414,
0.15655556321144104,
-0.3529229760169983,
-0.31207504868507385,
0.04256819933652878,
-0.1919185072183609,
0.019194984808564186,
0.03736511245369911,
-0.06363354623317719,
0.08863232284784317,
0.4473896622657776,
0.06828717142343521,
-0.21811343729496002,
-0.20777758955955505,
-0.21866677701473236,
-0.08827511966228485,
-0.13066573441028595,
0.03444135561585426,
0.3023156225681305,
-0.057647425681352615,
0.20305654406547546,
-0.3977283835411072,
-0.01845531351864338,
0.15996456146240234,
-0.043773651123046875,
-0.3815741539001465,
0.39244741201400757,
0.18300658464431763,
-0.22943659126758575,
-0.3533363938331604,
-0.3261468708515167,
-0.19292257726192474,
0.42239224910736084,
-0.5255031585693359,
-0.02416183240711689,
0.035788241773843765,
-0.27858245372772217,
0.11276969313621521,
0.12519097328186035,
-0.12003886699676514,
-0.10159169882535934,
0.3104765713214874,
0.04358882084488869,
-0.2384754866361618,
0.20729561150074005,
0.10776791721582413,
-0.22187528014183044,
0.02172323502600193,
-0.3567284941673279,
0.05037358030676842,
0.029043836519122124,
0.09440100938081741,
0.2770434617996216,
0.16140277683734894,
-0.08287972211837769,
0.09743314981460571,
0.08582080155611038,
0.1860569268465042,
-0.08966612070798874,
-0.2755860984325409,
0.14966170489788055,
0.28058922290802,
0.233183816075325,
0.22435256838798523,
0.22927527129650116,
-0.0630435198545456,
0.5140990018844604,
0.20800812542438507,
0.05562581494450569,
-0.10414756089448929,
-0.023331796750426292,
-0.18204252421855927,
0.005047292914241552,
-0.4781927168369293,
-0.02824787236750126,
-0.14145685732364655,
-0.3043084740638733,
0.07482033967971802,
-0.15775534510612488,
0.014482028782367706,
-0.05945674329996109,
0.19999878108501434,
0.06775665283203125,
-0.4575800597667694,
0.030316205695271492,
-0.535793662071228,
0.21132928133010864,
-0.1650373339653015,
0.07466328144073486,
0.04756712168455124,
-0.08006448298692703,
-0.044126175343990326,
0.1198740303516388,
0.20143570005893707,
-0.20433036983013153,
-0.4229974150657654,
-0.15090849995613098,
-0.15878255665302277,
0.1874196082353592,
0.27927884459495544,
0.08235883712768555,
-0.09135653078556061,
0.0013262552674859762,
0.062487103044986725,
0.4954949915409088,
0.7230035662651062,
-0.2819218337535858,
-0.2045082300901413,
0.14208872616291046,
-0.26603829860687256,
0.02591348998248577,
-0.20458410680294037,
0.06341258436441422,
-0.09388371556997299,
0.09591620415449142,
0.22840516269207,
-0.2615971863269806,
-0.2743297815322876,
0.7737315893173218,
0.3482440114021301,
-0.04376692324876785,
-0.38180649280548096,
0.04054350405931473,
0.19892887771129608,
0.1722821295261383,
0.11975496262311935,
0.3067522943019867,
0.17884564399719238,
-0.26365926861763,
0.10357356071472168,
0.08022761344909668,
-0.10901759564876556,
0.36232754588127136,
0.0943780466914177,
0.2493738830089569,
-0.07017466425895691,
0.43538209795951843,
0.23567889630794525,
0.10636810958385468,
0.13926102221012115,
0.2227805107831955,
-0.6137978434562683,
-0.35882964730262756,
-0.02136419713497162,
0.0092538520693779,
0.7729196548461914,
0.4099285900592804,
0.004096588119864464,
0.0827452763915062,
0.0602402500808239,
0.12020326405763626,
-0.17835769057273865,
0.26595255732536316,
0.3220498561859131,
-0.05948905646800995,
-0.5040188431739807,
-0.7637933492660522,
0.32966628670692444,
0.18324334919452667,
-0.11857426911592484,
0.3174261450767517,
0.10978911817073822,
-0.5861918926239014,
0.35638800263404846,
-0.030750827863812447,
0.8402530550956726,
0.12529845535755157,
-0.12694013118743896,
-0.1279689073562622,
-0.19247150421142578,
0.21560736000537872,
-0.16476121544837952,
0.0591556616127491,
-0.17542897164821625,
-0.1701667159795761,
0.06592866778373718,
0.07003417611122131,
0.166983500123024,
0.3497162163257599,
-0.07240021228790283,
0.28742924332618713,
-0.06119436025619507,
0.3150920569896698,
-0.23720869421958923,
0.36004969477653503,
0.2801640033721924,
-0.25059744715690613,
0.03565242886543274,
-0.011371808126568794,
0.07277293503284454,
-0.2413555532693863,
0.24420219659805298,
-0.048463303595781326,
-0.08966273069381714,
0.1317904144525528,
-0.3172537684440613,
-0.2060524970293045,
-0.1675029695034027,
0.07003118842840195,
-0.05901465564966202,
-0.1223873645067215,
0.3028964698314667,
0.23678657412528992,
0.5312376022338867,
0.3700748383998871,
0.04904244840145111,
0.26350143551826477,
0.2412390261888504,
0.2013227641582489,
-0.3235870897769928,
-0.047324758023023605,
0.4290889799594879,
0.13320201635360718,
-0.3335019052028656,
0.04284166544675827,
0.07479916512966156,
-0.25213560461997986,
-0.38420334458351135,
0.11047722399234772,
0.3876137435436249,
-0.6543732285499573,
-0.06260501593351364,
-0.1125047504901886,
0.3201397657394409,
-0.24697837233543396,
0.1250055581331253,
0.05991878733038902,
-0.4423559904098511,
0.18993015587329865,
-0.15077275037765503,
-0.14166785776615143,
-0.20086359977722168,
-0.03431389480829239,
-0.1398937702178955,
0.04207804054021835,
0.2589153051376343,
-0.12564940750598907,
-0.09686305373907089,
-0.1337192803621292,
0.24079836905002594,
0.20731143653392792,
-0.2533508539199829,
0.34692811965942383,
0.07731803506612778,
-0.25529301166534424,
-0.08693918585777283,
0.06730657070875168,
0.11351543664932251,
0.26265057921409607,
-0.30441123247146606,
0.10774694383144379,
-0.224546879529953,
0.11352844536304474,
0.2546495199203491,
0.5764340758323669,
-0.23483002185821533,
0.284592866897583,
-0.42858973145484924,
-0.10295318067073822,
-0.2131628692150116,
-0.1262364238500595,
0.08571473509073257,
0.1994173675775528,
-0.12263617664575577,
0.07818160951137543,
0.2479046732187271,
-0.23910853266716003,
0.1612107902765274,
0.146383598446846,
0.12894676625728607,
-0.14572679996490479,
-0.3270038366317749,
0.13927792012691498,
-0.05629397928714752,
0.2425655573606491,
-0.2842194437980652,
-0.12600591778755188,
-0.0555737167596817,
-0.383747935295105,
0.11060629785060883,
0.33728814125061035,
0.14580155909061432,
0.5945241451263428,
0.3972746729850769,
-0.15216109156608582,
0.1135399341583252,
0.09347469359636307,
-0.10033434629440308,
0.3577883541584015,
0.018550604581832886,
0.26648959517478943,
-0.021002300083637238,
0.03885223716497421,
-0.2621864676475525,
-0.0964435487985611,
-0.01618940196931362,
-0.08037968724966049,
-0.02623452991247177,
0.07260510325431824,
-0.21641527116298676,
-0.10175219178199768,
0.3749947249889374,
0.621915340423584,
-0.02511606737971306,
-0.1903732568025589,
0.4380892813205719,
0.1251276135444641,
-0.015532318502664566,
-0.005557686556130648,
0.2794893980026245,
0.009390940889716148,
0.07782473415136337,
0.5012413859367371,
0.012659091502428055,
0.3346588909626007,
-0.13315407931804657,
-0.04222369194030762,
0.13889770209789276,
0.07291950285434723,
0.6167251467704773,
0.603295087814331,
0.042968351393938065,
0.10517527908086777,
0.0790361613035202,
-0.054542869329452515,
-0.008105773478746414,
0.26455968618392944,
0.14135992527008057,
0.36940842866897583,
0.015968885272741318,
0.06992258876562119,
0.6006401181221008,
0.36505818367004395,
-0.1086035892367363,
-0.2764751613140106,
-0.675275981426239,
0.13789893686771393,
0.0035046024713665247,
0.40290454030036926,
-0.5035102367401123,
-0.40129515528678894,
-0.19758044183254242,
-0.031997159123420715,
0.006027435418218374,
-0.11044630408287048,
0.006326084025204182,
-0.12009962648153305,
-0.17872145771980286,
-0.051751505583524704,
0.17697979509830475,
-0.23831811547279358,
0.4209337830543518,
-0.0876789391040802,
0.2677013576030731,
0.0906594842672348,
0.04921745881438255,
0.19824622571468353,
0.5991564989089966,
-0.3150801658630371,
-0.32273775339126587,
-0.0698985829949379,
-0.08424149453639984,
0.22381535172462463,
-0.18878819048404694,
-0.02867329865694046,
-0.036236148327589035,
-0.003765710163861513,
-0.3235393762588501,
-0.04747715964913368,
-0.04330683499574661,
0.20218603312969208,
0.23064960539340973,
-0.016933290287852287,
-0.08841714262962341,
0.38044577836990356,
0.11666164547204971,
-0.008075816556811333,
-0.048725783824920654,
0.1965482234954834,
0.2034025937318802,
-0.6443555951118469,
0.5633996725082397,
0.06415225565433502,
-0.038041312247514725,
-0.14407053589820862,
-0.002037585712969303,
0.005390081088989973,
-0.3700362741947174,
0.2464805245399475,
-0.04666658490896225,
0.03208630159497261,
-0.04531557857990265,
0.018237080425024033,
-0.19820110499858856,
0.42823177576065063,
-0.07052482664585114,
-0.12080329656600952,
-0.2555955946445465,
-0.08964032679796219,
0.07437283545732498,
-0.2915912866592407,
-0.0037943574134260416,
-0.2765478193759918,
0.19662156701087952,
-0.2916830778121948,
-0.07873785495758057,
-0.03424953296780586,
-0.011721441522240639,
-0.02902640774846077,
0.14442922174930573,
0.3947252333164215,
-0.34416425228118896,
-0.3122907280921936,
-0.17380201816558838,
0.1536165177822113,
0.33683401346206665,
-0.13416844606399536,
-0.24307850003242493,
0.13412177562713623,
-0.31723517179489136,
0.05565303936600685,
-0.13400888442993164,
0.5019893646240234,
0.5471745133399963,
0.20835746824741364,
0.04028785228729248,
0.44819962978363037,
-0.025365101173520088,
0.19093729555606842,
0.0970270186662674,
-0.059652406722307205,
-0.26682186126708984,
0.3416195511817932,
0.009407748468220234,
0.26082637906074524,
0.05133644491434097,
-0.10472126305103302,
-0.10502980649471283,
0.3171882927417755,
0.12458251416683197,
-0.21767693758010864,
-0.16379407048225403,
-0.12560799717903137,
0.026371410116553307,
-0.08553586155176163,
0.2697676420211792,
0.29407799243927,
-0.28260818123817444,
0.16455917060375214,
0.38296589255332947,
-0.2912105321884155,
0.49632084369659424,
0.03277258947491646,
-0.3277797996997833,
-0.10318655520677567,
0.10624360293149948,
0.28230202198028564,
-0.0633065402507782,
-0.6950257420539856,
-0.3996465802192688,
0.2895870804786682,
-0.06106768548488617,
0.054471153765916824,
0.22360055148601532,
0.25046926736831665,
0.06403037905693054,
0.09959430247545242,
0.2653735280036926,
0.09491146355867386,
0.08864135295152664,
0.1532568484544754,
-0.2677425742149353
] |
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.2098325490951538,
0.2670384645462036,
-0.0017677363939583302,
0.18988746404647827,
-0.059539712965488434,
-0.07488074153661728,
0.3903472423553467,
-0.017284492030739784,
0.17079401016235352,
-0.02250213921070099,
0.1237996518611908,
0.012621255591511726,
-0.03868018090724945,
0.07567653805017471,
0.0625312551856041,
0.18716426193714142,
-0.155750572681427,
0.2216937392950058,
-0.12522141635417938,
-0.07845022529363632,
-0.12366165220737457,
0.11489969491958618,
-0.4275744557380676,
-0.05014112591743469,
-0.18700383603572845,
-0.3171658217906952,
-0.003403856884688139,
-0.04398615285754204,
-0.15523061156272888,
-0.272439181804657,
0.4218722879886627,
0.08484717458486557,
0.22107228636741638,
-0.1517108976840973,
-0.00012205424718558788,
-0.24547752737998962,
0.41615134477615356,
-0.14397914707660675,
-0.4349353313446045,
-0.34078681468963623,
-0.2752383351325989,
-0.13043268024921417,
0.2988802194595337,
-0.5066433548927307,
0.04411429166793823,
0.13096749782562256,
0.3384893834590912,
-0.4647701382637024,
-0.13032278418540955,
0.15089911222457886,
0.09149618446826935,
0.18220500648021698,
-0.006780155934393406,
0.09093441814184189,
0.4891790747642517,
0.07982528209686279,
-0.21489566564559937,
0.16652780771255493,
0.1152890995144844,
0.019102150574326515,
0.17824241518974304,
0.018444010987877846,
-0.154505655169487,
0.09096793830394745,
0.3861883282661438,
0.19503983855247498,
-0.15355771780014038,
-0.2642568349838257,
-0.0379813089966774,
0.37040191888809204,
0.5538468956947327,
-0.14377851784229279,
-0.2343478947877884,
-0.3610725700855255,
0.07639420032501221,
-0.29829415678977966,
0.19473563134670258,
0.2515522837638855,
-0.04512998089194298,
0.15335682034492493,
-0.35933196544647217,
-0.44315943121910095,
-0.13714270293712616,
0.5251791477203369,
0.08609846234321594,
0.2136155217885971,
-0.11379700154066086,
0.10652480274438858,
0.0008925634901970625,
0.011190094985067844,
0.05223967880010605,
-0.30407798290252686,
0.16374295949935913,
-0.09523126482963562,
0.22235095500946045,
-0.06413788348436356,
0.13756151497364044,
0.4724586606025696,
-0.18112879991531372,
0.3028615415096283,
0.10376612842082977,
-0.09217317402362823,
-0.15929587185382843,
0.20993036031723022,
0.5247608423233032,
0.324560284614563,
0.3381832540035248,
-0.26077768206596375,
0.5273813009262085,
0.2759958505630493,
-0.08525831997394562,
-0.16070477664470673,
0.17834503948688507,
0.18020407855510712,
0.04699689894914627,
-0.11262689530849457,
0.2839221954345703,
-0.33132877945899963,
-0.10258188098669052,
-0.1161460354924202,
-0.03633856400847435,
0.02678348310291767,
0.21004721522331238,
0.08405905216932297,
-0.2664491534233093,
-0.1593928188085556,
0.0865493044257164,
0.27143773436546326,
-0.18231239914894104,
-0.45816555619239807,
0.011820854619145393,
-0.27095258235931396,
-0.14042489230632782,
-0.0769113227725029,
0.4374878704547882,
0.003634754568338394,
0.30539461970329285,
-0.25345364212989807,
-0.09133443981409073,
-0.02062324434518814,
0.4746440649032593,
-0.20366138219833374,
0.3540555536746979,
0.21409858763217926,
0.3410396873950958,
0.06101753190159798,
-0.04557730630040169,
-0.08279407769441605,
-0.07444605976343155,
0.2547937035560608,
-0.052452486008405685,
-0.4573027789592743,
0.06920831650495529,
0.09195864200592041,
-0.47024235129356384,
-0.31442636251449585,
-0.2976517975330353,
-0.08811157196760178,
0.09707486629486084,
-0.5006306767463684,
0.028215738013386726,
0.08398304879665375,
-0.18739962577819824,
0.016635851934552193,
0.02496384084224701,
0.47036212682724,
-0.36748331785202026,
-0.06571896374225616,
-0.43914204835891724,
-0.17596124112606049,
-0.024369997903704643,
0.2671215534210205,
-0.425422340631485,
0.32434341311454773,
-0.32044389843940735,
0.12072992324829102,
0.6827150583267212,
-0.18856120109558105,
-0.6827123761177063,
0.37017112970352173,
-0.09953229129314423,
-0.17885278165340424,
-0.0034116168972104788,
0.3794586956501007,
0.425615519285202,
-0.008957485668361187,
-0.41563621163368225,
0.5269251465797424,
0.09298191964626312,
0.021212460473179817,
-0.23279543220996857,
-0.16432833671569824,
0.2605099380016327,
-0.017076466232538223,
0.011266293935477734,
0.3139621913433075,
0.36301639676094055,
0.1670648753643036,
0.10061676800251007,
0.3052433133125305,
0.3341990113258362,
-0.10182951390743256,
0.07422520220279694,
0.3801191449165344,
-0.11441713571548462,
-0.025153307244181633,
-0.4966300129890442,
0.020100224763154984,
-0.14877690374851227,
0.0987897515296936,
-0.5461816191673279,
-0.4241182804107666,
-0.03411302715539932,
-0.2377709448337555,
-0.04454084113240242,
0.2871571183204651,
-0.038887713104486465,
0.10602360963821411,
0.027368512004613876,
0.12949009239673615,
-0.38697361946105957,
-0.030496759340167046,
-0.08988073468208313,
-0.051392629742622375,
-0.5284494161605835,
0.256691575050354,
-0.16863198578357697,
0.011988367885351181,
-0.11518735438585281,
-0.0856635719537735,
-0.024134445935487747,
-0.1413842737674713,
-0.10971799492835999,
0.36711007356643677,
-0.2565326392650604,
0.08716931194067001,
0.18919657170772552,
0.2710215151309967,
0.28551429510116577,
-0.3220532238483429,
0.4973921477794647,
-0.008195104077458382,
0.21546010673046112,
-0.03813508525490761,
-0.32639893889427185,
0.47246769070625305,
-0.06835854798555374,
0.2161986380815506,
0.14412535727024078,
0.005358903203159571,
0.3300657868385315,
-0.15478041768074036,
-0.2518302798271179,
-0.58281409740448,
0.028366295620799065,
0.20740728080272675,
0.008233217522501945,
-0.07254713028669357,
-0.1747862547636032,
0.18006478250026703,
0.557853102684021,
0.2726843059062958,
0.22874248027801514,
0.07831999659538269,
0.012585045769810677,
-0.27673715353012085,
0.08539088070392609,
0.1471388041973114,
0.31832653284072876,
0.1985950618982315,
0.3152201175689697,
0.13681642711162567,
-0.007422938942909241,
-0.42240798473358154,
-0.05910537391901016,
0.08879560232162476,
-0.019788868725299835,
-0.02635485865175724,
0.02255921997129917,
-0.03771182522177696,
-0.3606555759906769,
-0.06141892448067665,
0.22969812154769897,
0.2251730114221573,
-0.2382853627204895,
-0.07162606716156006,
-0.6653863191604614,
-0.7250331044197083,
0.014859860762953758,
-0.07387986779212952,
-0.48216119408607483,
-0.2052149623632431,
0.027810296043753624,
0.4159471392631531,
-0.15075288712978363,
0.05936131253838539,
-0.22726643085479736,
0.5010195970535278,
-0.34776267409324646,
-0.22206450998783112,
-0.06656130403280258,
-0.3527734577655792,
-0.24863405525684357,
-0.0017852495657280087,
0.36693331599235535,
0.17943386733531952,
0.4034477472305298,
-0.11427623778581619,
-0.12314634025096893,
-0.23431240022182465,
0.005643801763653755,
0.05648897588253021,
0.3319593071937561,
0.07235360890626907,
-0.006634263787418604,
-0.10720188170671463,
-0.14335665106773376,
0.008869113400578499,
0.14760145545005798,
-0.3277744948863983,
0.09851399809122086,
-0.049735698848962784,
-0.019547587260603905,
0.017621779814362526,
-0.34777307510375977,
-0.43797242641448975,
-0.26359036564826965,
-0.1216420829296112,
0.15853305160999298,
0.13912002742290497,
0.1520960032939911,
0.03906392306089401,
-0.1247996985912323,
0.25051891803741455,
-0.13762569427490234,
0.09512152522802353,
-0.03271695226430893,
-0.48725929856300354,
0.16242311894893646,
-0.3436881899833679,
-0.2576623558998108,
0.43735501170158386,
0.05877380445599556,
0.13893279433250427,
0.27581170201301575,
-0.6511324048042297,
0.0503675751388073,
0.038195837289094925,
0.16974173486232758,
0.3652424216270447,
0.001605186378583312,
0.5040279626846313,
-0.24685180187225342,
0.03633888065814972,
0.013632941991090775,
0.07941097021102905,
0.3829863667488098,
0.188200443983078,
0.25084272027015686,
0.2320658415555954,
0.3819536864757538,
0.12130863219499588,
0.18989810347557068,
-0.1730676144361496,
0.11704099923372269,
0.6550413370132446,
0.06451893597841263,
0.4792502820491791,
-0.3082834482192993,
0.029157552868127823,
-0.11741556227207184,
0.1220535859465599,
-0.20580348372459412,
0.1454465091228485,
0.1693541556596756,
-0.40017226338386536,
-0.3892107605934143,
-0.0038691824302077293,
-0.5113552212715149,
-0.32782667875289917,
-0.06780669093132019,
-0.22614896297454834,
0.15891392529010773,
0.3647776246070862,
0.04790711775422096,
-0.04852166771888733,
-0.3160037100315094,
-0.24988406896591187,
0.15792366862297058,
0.26088741421699524,
0.05614238604903221,
-0.14402537047863007,
0.1137697771191597,
-0.19024944305419922,
0.22259142994880676,
-0.08779367804527283,
0.5331960916519165,
-0.040445178747177124,
0.11765427887439728,
0.32775425910949707,
0.11396798491477966,
0.24811071157455444,
-0.34413909912109375,
0.17111776769161224,
0.11300574988126755,
0.020971253514289856,
-0.43589600920677185,
0.1319621205329895,
-0.1606537252664566,
-0.05986597388982773,
0.5046320557594299,
0.017255201935768127,
-0.06800655275583267,
-0.009995668195188046,
-0.03774867206811905,
-0.03250279277563095,
-0.15557818114757538,
-0.253977507352829,
-0.22670093178749084,
-0.026463933289051056,
-0.5389506816864014,
-0.041659314185380936,
-0.20590314269065857,
-0.09646660089492798,
0.020595671609044075,
0.06674094498157501,
-0.05292027071118355,
0.16707007586956024,
-0.28187501430511475,
-0.067186638712883,
-0.05847254768013954,
0.1195111870765686,
0.04244931787252426,
0.09096928685903549,
0.0887785330414772,
0.16515770554542542,
0.42543530464172363,
-0.02195298671722412,
0.07143091410398483,
0.18755203485488892,
0.03456363454461098,
-0.001700649387203157,
0.28288358449935913,
0.006632524076849222,
-0.2516587972640991,
0.21520479023456573,
-0.06943587958812714,
0.08465966582298279,
-0.0642753392457962,
0.2071264684200287,
-0.5104783177375793,
0.1333312690258026,
-0.4468943774700165,
0.29596999287605286,
-0.004505419638007879,
-0.03398719057440758,
0.08335461467504501,
0.3659507930278778,
-0.12760382890701294,
0.21540558338165283,
-0.04424344748258591,
0.894852340221405,
-0.05783018842339516,
0.20726840198040009,
-0.13365896046161652,
0.0899425745010376,
0.7640866637229919,
-0.12908916175365448,
0.21412719786167145,
-0.13671167194843292,
-0.003903245320543647,
-0.15082937479019165,
-0.08632552623748779,
0.3068043887615204,
0.41872256994247437,
-0.10147024691104889,
0.2692238390445709,
-0.16462276875972748,
0.21833617985248566,
-0.2512001395225525,
0.3323086202144623,
-0.3463970124721527,
-0.16567589342594147,
-0.1386071890592575,
0.024127990007400513,
0.06485913693904877,
0.3463330566883087,
-0.15814726054668427,
-0.061940744519233704,
0.007549862377345562,
0.13184867799282074,
-0.13110007345676422,
0.28230413794517517,
0.2811915874481201,
0.11103518307209015,
-0.3716666102409363,
0.1312401294708252,
-0.0454716682434082,
0.22344724833965302,
0.35213997960090637,
0.017389044165611267,
-0.37212619185447693,
-0.13895738124847412,
-0.020703734830021858,
-0.17657628655433655,
0.2591630220413208,
0.18925651907920837,
0.33929863572120667,
-0.24228829145431519,
-0.29425209760665894,
0.002884731162339449,
0.12072183936834335,
-0.12346623837947845,
0.4066617488861084,
0.008900657296180725,
-0.09702017903327942,
-0.1011495366692543,
-0.1687728762626648,
0.29692310094833374,
0.04196954891085625,
-0.0036158275324851274,
0.029958529397845268,
0.12807901203632355,
0.1855442374944687,
0.06860150396823883,
-0.11686073988676071,
-0.2107696384191513,
-0.14533163607120514,
0.5676349401473999,
-0.04544933885335922,
0.03046462871134281,
0.14470826089382172,
0.0587552972137928,
-0.11406195163726807,
-0.14909681677818298,
0.1853625327348709,
-0.3498147130012512,
-0.3783543109893799,
0.10026655346155167,
0.21220803260803223,
0.476433128118515,
-0.0790761187672615,
0.1829332709312439,
-0.14130371809005737,
0.23910728096961975,
-0.2073708027601242,
-0.30931416153907776,
-0.20091436803340912,
0.1761244684457779,
0.24147029221057892,
0.02573654241859913,
0.02159084752202034,
-0.11635567247867584,
0.5522447824478149,
-0.1803213208913803,
-0.20209220051765442,
0.2219245731830597,
0.03964648395776749,
0.3655424118041992,
0.21008308231830597,
0.006319795735180378,
0.030852582305669785,
-0.16721351444721222,
-0.09770718216896057,
-0.015875965356826782,
-0.2581115663051605,
-0.09515363723039627,
0.03182263672351837,
0.28422853350639343,
0.2625711262226105,
-0.5424140691757202,
-0.32975220680236816,
-0.6407564878463745,
-0.272830992937088,
0.02414335310459137,
-0.09477143734693527,
0.40417319536209106,
0.040039464831352234,
0.19862942397594452,
0.35778653621673584,
0.14953532814979553,
-0.2055562138557434,
0.11839785426855087,
-0.16346701979637146,
0.2850658893585205,
-0.09693199396133423,
0.1948290467262268,
-0.004272156395018101,
0.04013660550117493,
-0.272135853767395,
-0.08284694701433182,
-0.05814945325255394,
0.1644284576177597,
0.5369654297828674,
-0.24930143356323242,
0.2751140296459198,
0.1975860893726349,
0.4544932544231415,
0.25950008630752563,
0.15706849098205566,
-0.21994955837726593,
0.33238276839256287,
0.05076311528682709,
-0.2865045964717865,
0.10051820427179337,
0.35890114307403564,
0.4310474097728729,
-0.13548365235328674,
0.17444367706775665,
0.4315046966075897,
0.11627224832773209,
-0.10537007451057434,
-0.15739202499389648,
0.39529499411582947,
-0.2768717408180237,
0.11500129103660583,
0.018440648913383484,
-0.2657097578048706,
-0.009255864657461643,
-0.05117195099592209,
0.2096346765756607,
0.24326737225055695,
0.27106228470802307,
-0.11542828381061554,
0.01268690638244152,
0.18911118805408478,
0.3074532151222229,
-0.10639234632253647,
-0.42382460832595825,
-0.11502871662378311,
0.1230166032910347,
0.17711982131004333,
0.051483478397130966,
-0.18801946938037872,
0.11991817504167557,
-0.13493840396404266,
0.1401916891336441,
-0.18196450173854828,
0.482235848903656,
-0.009349708445370197,
0.006744693964719772,
-0.440342515707016,
-0.2450462281703949,
-0.06855686753988266,
0.13669562339782715,
-0.2170637995004654,
0.05588498339056969,
-0.12656688690185547,
0.22688335180282593,
-0.07788867503404617,
-0.3708285391330719,
0.37549740076065063,
-0.0852472111582756,
0.1979825496673584,
-0.26695093512535095,
0.1558910459280014,
-0.06202065199613571,
0.2027580738067627,
0.23083893954753876,
0.3019275963306427,
0.17099381983280182,
0.21119970083236694,
-0.022893477231264114,
0.19094784557819366,
0.05587741360068321,
-0.07733305543661118,
-0.3302191495895386,
0.23164300620555878,
0.6044893264770508,
0.532227098941803,
0.2374628186225891,
-0.04316128417849541,
-0.05791378766298294,
0.4244407117366791,
-0.059847693890333176,
0.2562656104564667,
-0.07463299483060837,
0.40267103910446167,
0.003263922408223152,
-0.1355198323726654,
-0.16521069407463074,
0.020194053649902344,
-0.26105016469955444,
-0.3234994113445282,
0.2602366805076599,
-0.3222091794013977,
0.12956517934799194,
-0.44706279039382935,
-0.021649470552802086,
-0.21574559807777405,
0.5108922719955444,
0.4062935411930084,
0.3394332528114319,
-0.11660977452993393,
-0.24191366136074066,
-0.7239388823509216,
-0.0030542637687176466,
-0.0680554136633873,
0.18757258355617523,
-0.041425980627536774,
0.4513475000858307,
-0.16872505843639374,
0.2156715840101242,
-0.3415599763393402,
0.17766492068767548,
-0.035916708409786224,
-0.059720806777477264,
-0.032558418810367584,
-0.05267458036541939,
-0.35969993472099304,
0.08836422115564346,
-0.13323435187339783,
-0.2659161388874054,
0.08446530252695084,
-0.38117024302482605,
-0.1640298068523407,
0.12469061464071274,
-0.24492402374744415,
-0.24173124134540558,
0.36529073119163513,
0.5970694422721863,
0.11112670600414276,
0.46101486682891846,
0.07630359381437302,
-0.004710809793323278,
-0.22991062700748444,
0.09966977685689926,
-0.3166597783565521,
0.07915622740983963,
0.009056960232555866,
0.02142513357102871,
-0.2934354543685913,
0.4062309265136719,
-0.0983731746673584,
0.21658173203468323,
-0.07345086336135864,
0.3182057738304138,
-0.1857282966375351,
-0.372378408908844,
-0.2545108199119568,
0.10210039466619492,
-0.013654958456754684,
-0.14378345012664795,
0.11997545510530472,
0.07326480001211166,
-0.4484460651874542,
0.04529663175344467,
0.5243940353393555,
0.141659677028656,
0.2392505258321762,
-0.35938844084739685,
0.4845655560493469,
0.39355331659317017,
-0.2534206211566925,
-0.4270009398460388,
-0.05095423758029938,
0.4510914385318756,
-0.1463802456855774,
0.09949586540460587,
0.03737311437726021,
-0.15389175713062286,
0.13466210663318634,
-0.09684494882822037,
0.4045368731021881,
-0.10790136456489563,
-0.3252616226673126,
-0.17659805715084076,
-0.21152761578559875
] |
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.17262069880962372,
-0.08458222448825836,
-0.09733746200799942,
0.1288861483335495,
0.4222559928894043,
0.20194454491138458,
0.3426592946052551,
0.062195200473070145,
-0.057558659464120865,
0.004357544705271721,
-0.1423119455575943,
0.08249589055776596,
-0.06606011092662811,
0.2489195168018341,
0.11230878531932831,
-0.12542155385017395,
-0.0808454304933548,
-0.11463022977113724,
-0.22911693155765533,
0.0067152781412005424,
-0.20981016755104065,
0.14409378170967102,
-0.20964893698692322,
0.04321177676320076,
-0.4213048219680786,
-0.1652374118566513,
0.08612240105867386,
0.35553839802742004,
-0.03017209842801094,
-0.2586037814617157,
0.37103477120399475,
0.013673114590346813,
0.05071521922945976,
0.406772643327713,
-0.000110941196908243,
0.2821541130542755,
0.42149287462234497,
-0.007743551395833492,
-0.4700692594051361,
-0.41198766231536865,
0.028617534786462784,
-0.25242677330970764,
0.20361192524433136,
-0.12158285081386566,
-0.08969444781541824,
-0.09933535754680634,
-0.04851397126913071,
-0.2351500689983368,
0.4430740475654602,
0.42446836829185486,
0.26970914006233215,
0.27369678020477295,
0.3110579252243042,
-0.09482360631227493,
-0.3082546591758728,
-0.22429151833057404,
0.043680936098098755,
0.5262345671653748,
-0.30415472388267517,
-0.05500207096338272,
0.23694980144500732,
0.18526889383792877,
-0.11026409268379211,
0.039429161697626114,
0.10279257595539093,
0.03683972731232643,
-0.08111803978681564,
-0.3631625175476074,
0.016723638400435448,
0.07219387590885162,
0.24345357716083527,
-0.2260051965713501,
-0.4658712148666382,
-0.16389364004135132,
0.03046916425228119,
-0.3523123860359192,
0.20596472918987274,
0.07249463349580765,
-0.13103802502155304,
0.1562270224094391,
-0.40813392400741577,
-0.1662256270647049,
-0.2331792563199997,
0.47679927945137024,
-0.08346922695636749,
-0.06916534155607224,
-0.10134581476449966,
0.1568792164325714,
0.2081460952758789,
-0.014765377156436443,
0.24560610949993134,
0.01639632135629654,
0.33045879006385803,
0.21354350447654724,
-0.4810214042663574,
0.11584050953388214,
0.016374634578824043,
0.13958978652954102,
0.13585905730724335,
0.23614570498466492,
0.0839766189455986,
-0.05708594247698784,
-0.12385672330856323,
0.08515238761901855,
0.06063329428434372,
0.24538321793079376,
0.00893695279955864,
0.13872648775577545,
0.18724791705608368,
0.3058454394340515,
-0.012289674952626228,
0.03487186133861542,
-0.13719189167022705,
-0.2628459334373474,
-0.08476053178310394,
0.12667277455329895,
0.467296302318573,
-0.06681480258703232,
-0.14578032493591309,
0.22866623103618622,
-0.24972020089626312,
-0.07731279730796814,
0.12552909553050995,
0.5078198313713074,
-0.24598661065101624,
0.10307841747999191,
-0.09110596030950546,
0.24431131780147552,
-0.09848152101039886,
0.028140706941485405,
-0.2782627046108246,
0.15831728279590607,
-0.14690092206001282,
0.1858583241701126,
0.42093828320503235,
-0.4283131957054138,
0.3650217354297638,
-0.08279520273208618,
0.13289399445056915,
-0.265125572681427,
0.07276175171136856,
-0.0731365829706192,
-0.2295968234539032,
0.3315567970275879,
-0.01284829992800951,
0.18786056339740753,
0.32552748918533325,
0.21989955008029938,
-0.008620471693575382,
-0.09329663962125778,
-0.2572564482688904,
-0.5359479784965515,
0.2843952775001526,
0.23464980721473694,
-0.13258175551891327,
-0.23776689171791077,
-0.10398455709218979,
-0.07018804550170898,
-0.08551342785358429,
0.04999091476202011,
-0.2254381775856018,
-0.07588821649551392,
-0.00010202461999142542,
-0.18517398834228516,
0.45798546075820923,
0.4795648455619812,
-0.3562643527984619,
-0.13188329339027405,
-0.08891984820365906,
-0.19939106702804565,
0.10227569192647934,
0.250548779964447,
-0.21025577187538147,
0.267824649810791,
-0.03006298653781414,
-0.2001935839653015,
0.3244524896144867,
-0.2567800283432007,
-0.4303722083568573,
0.22959798574447632,
-0.14158383011817932,
0.07721977680921555,
-0.15979427099227905,
-0.019827786833047867,
-0.23004406690597534,
0.09766857326030731,
0.22241345047950745,
0.45447567105293274,
-0.22194136679172516,
-0.0075083267875015736,
-0.07613692432641983,
-0.28875792026519775,
0.1971726268529892,
0.34950873255729675,
0.1905546486377716,
0.08371218293905258,
0.11229036003351212,
-0.12296734750270844,
0.1389331817626953,
0.07927219569683075,
-0.1288711279630661,
0.22225980460643768,
-0.07304421812295914,
0.06009707599878311,
0.005793769843876362,
0.1931328922510147,
-0.4456617534160614,
0.21716174483299255,
0.2575109004974365,
0.20543895661830902,
-0.15917366743087769,
0.07180064916610718,
-0.3314305543899536,
0.06447815895080566,
-0.32763123512268066,
-0.10173209011554718,
0.1681317239999771,
0.1100919172167778,
0.11499106138944626,
0.14874128997325897,
-0.3477530777454376,
0.585390031337738,
-0.28072652220726013,
0.1544782668352127,
-0.3642595410346985,
0.3336735665798187,
-0.1378077268600464,
0.020809274166822433,
0.0532529316842556,
0.19486890733242035,
0.22709539532661438,
-0.21248048543930054,
-0.12306980043649673,
0.3350648581981659,
-0.09708833694458008,
0.1396981179714203,
0.10056962817907333,
0.020621629431843758,
0.08872149139642715,
-0.27322253584861755,
-0.007592231500893831,
0.17520852386951447,
-0.048422764986753464,
-0.06365393847227097,
0.22217127680778503,
0.2624586522579193,
-0.08243697136640549,
0.3350193500518799,
0.16534501314163208,
-0.01671675406396389,
0.15577521920204163,
0.08227856457233429,
-0.07257554680109024,
-0.08043781667947769,
0.3488464057445526,
-0.28236353397369385,
0.49145302176475525,
-0.17793600261211395,
-0.18835316598415375,
-0.21429792046546936,
0.10730169713497162,
-0.20607487857341766,
0.03680036589503288,
0.18075895309448242,
-0.15274657309055328,
-0.19591234624385834,
-0.14158251881599426,
0.22858905792236328,
0.38311269879341125,
0.1266685575246811,
0.017403505742549896,
0.3330523371696472,
-0.11242228001356125,
-0.12555478513240814,
0.21396216750144958,
0.16420921683311462,
0.2534163296222687,
0.12569065392017365,
-0.10634095966815948,
0.0876750573515892,
-0.3335898220539093,
-0.29772618412971497,
0.04574931412935257,
0.29409992694854736,
-0.3505646884441376,
-0.02660525031387806,
-0.2348109483718872,
-0.10758429020643234,
0.041000716388225555,
-0.49585115909576416,
-0.18313035368919373,
-0.44780924916267395,
-0.16305004060268402,
-0.02450845204293728,
0.10010901838541031,
0.19134411215782166,
-0.1383024901151657,
0.2042524665594101,
0.2681008577346802,
-0.17570725083351135,
-0.19902518391609192,
-0.14131581783294678,
-0.12220615893602371,
0.042546939104795456,
0.190982848405838,
-0.24977903068065643,
0.26150888204574585,
-0.12377609312534332,
-0.19311174750328064,
-0.13389764726161957,
-0.0432528555393219,
0.044891588389873505,
-0.08075837790966034,
0.42538896203041077,
0.04150475934147835,
0.517823338508606,
0.14749515056610107,
-0.05272875726222992,
0.37865927815437317,
-0.07507876306772232,
0.05258660763502121,
0.013706390745937824,
-0.012674442492425442,
0.1713647097349167,
0.10542484372854233,
-0.41975146532058716,
-0.5957536101341248,
-0.31860435009002686,
0.13327908515930176,
-0.1404164880514145,
0.16009151935577393,
0.4751749336719513,
0.13904868066310883,
0.07282308489084244,
-0.027766158804297447,
0.3243483901023865,
-0.29523971676826477,
-0.578493595123291,
0.34275057911872864,
-0.42625951766967773,
-0.39998507499694824,
0.051777783781290054,
0.23373757302761078,
0.1585312783718109,
-0.13686373829841614,
-0.4911375641822815,
-0.29129984974861145,
-0.021032029762864113,
-0.20825208723545074,
-0.14088864624500275,
0.034251514822244644,
-0.081787109375,
-0.1706446260213852,
-0.08072171360254288,
0.052855268120765686,
-0.21539564430713654,
0.020766014233231544,
-0.18977995216846466,
0.10595531016588211,
0.0540597066283226,
0.580053448677063,
-0.2069244682788849,
0.4104653000831604,
0.262797474861145,
-0.09994090348482132,
0.43047305941581726,
-0.1017872616648674,
0.29820674657821655,
-0.03379281610250473,
-0.5136102437973022,
-0.03903919830918312,
-0.024887001141905785,
-0.04935907945036888,
0.24670164287090302,
0.11831137537956238,
-0.17501001060009003,
-0.40237152576446533,
-0.1823296993970871,
-0.4465429186820984,
-0.1094004362821579,
-0.0297661405056715,
0.11023642867803574,
0.06838664412498474,
0.03377164527773857,
0.11739955097436905,
-0.15625622868537903,
-0.028626946732401848,
0.02339094504714012,
0.34780818223953247,
-0.03887943923473358,
0.1180441752076149,
0.006738738156855106,
-0.09217558056116104,
-0.43141868710517883,
0.334654301404953,
-0.17446006834506989,
0.4283646047115326,
-0.19772809743881226,
0.076753169298172,
-0.06717099994421005,
-0.0039034506771713495,
0.6058323979377747,
-0.2651655673980713,
0.11586444824934006,
0.09651879966259003,
0.010437834076583385,
-0.30427059531211853,
-0.09392139315605164,
-0.032578371465206146,
0.24870441854000092,
0.16576611995697021,
0.4472005367279053,
-0.07857001572847366,
-0.16756097972393036,
0.3270869851112366,
0.25485101342201233,
-0.13908441364765167,
-0.32141295075416565,
-0.14267976582050323,
-0.3935248851776123,
-0.22811292111873627,
-0.22428689897060394,
-0.3400646150112152,
0.3046943247318268,
-0.034138038754463196,
-0.16921952366828918,
0.06572646647691727,
-0.09413854032754898,
0.1747606247663498,
0.07752750813961029,
0.13451644778251648,
0.09457381069660187,
0.11386069655418396,
0.3893183767795563,
0.051472947001457214,
0.19698558747768402,
0.6876189112663269,
-0.17472930252552032,
-0.28180399537086487,
0.0031068858224898577,
0.26535898447036743,
0.12662993371486664,
0.2776084244251251,
-0.21346977353096008,
-0.11072660982608795,
0.1917884200811386,
0.19745796918869019,
-0.0059064654633402824,
0.28092122077941895,
0.378507137298584,
0.09109920263290405,
-0.5953509211540222,
-0.5943171977996826,
0.4862525761127472,
-0.09490972012281418,
0.11619789153337479,
0.18356935679912567,
-0.12010638415813446,
-0.13071632385253906,
0.17530809342861176,
-0.18716762959957123,
0.7539352178573608,
-0.05162092670798302,
0.022021446377038956,
0.2660261392593384,
0.2764638364315033,
0.4896042048931122,
-0.3141956627368927,
0.017141269519925117,
-0.22134767472743988,
-0.3019843101501465,
-0.09656082838773727,
-0.11286532878875732,
0.12321501225233078,
0.27900147438049316,
0.04115952551364899,
0.452960729598999,
-0.13979826867580414,
-0.007672024425119162,
0.12030038982629776,
0.27587100863456726,
-0.01236597541719675,
-0.09909754246473312,
-0.6099658608436584,
0.2349267154932022,
-0.11527697741985321,
0.28590962290763855,
-0.14560528099536896,
-0.026654234156012535,
0.01893516816198826,
-0.20110724866390228,
-0.12524820864200592,
0.11030696332454681,
-0.5258551836013794,
0.33524593710899353,
-0.1103220134973526,
-0.19214001297950745,
-0.23488032817840576,
0.14027580618858337,
0.2428167164325714,
0.020909838378429413,
-0.18050271272659302,
-0.016430851072072983,
-0.178729847073555,
-0.24221393465995789,
-0.1114940345287323,
0.006605745293200016,
0.3349570035934448,
-0.14434994757175446,
-0.22991377115249634,
0.09646278619766235,
-0.12504637241363525,
-0.3004515469074249,
0.11817304790019989,
-0.0709114745259285,
-0.10809731483459473,
-0.13218651711940765,
-0.24444091320037842,
-0.1845485419034958,
0.08627714216709137,
-0.17466436326503754,
0.13675302267074585,
0.0688006803393364,
-0.08284232020378113,
0.101688914000988,
0.14947648346424103,
-0.29833418130874634,
-0.1130417063832283,
0.3407585322856903,
-0.26778486371040344,
-0.2979254424571991,
0.4692351222038269,
0.35197198390960693,
-0.15862710773944855,
-0.16132217645645142,
0.11765493452548981,
0.23542238771915436,
-0.2757170796394348,
0.028793087229132652,
0.16200236976146698,
0.30084455013275146,
-0.009347377344965935,
0.3109230399131775,
0.30563995242118835,
0.10084761679172516,
0.007333983201533556,
-0.7206998467445374,
-0.32498931884765625,
0.19461877644062042,
0.12716615200042725,
0.2861979603767395,
0.1761263906955719,
0.11474578827619553,
0.02176538296043873,
-0.14196576178073883,
-0.31081998348236084,
0.056390032172203064,
-0.19300299882888794,
-0.22462239861488342,
0.20448747277259827,
-0.19606387615203857,
0.5058370232582092,
0.0961756706237793,
0.23531509935855865,
-0.18623150885105133,
-0.22380872070789337,
-0.2522975504398346,
0.012597295455634594,
0.12506656348705292,
-0.007205305155366659,
-0.15990473330020905,
0.07668455690145493,
-0.09893525391817093,
-0.10716976225376129,
-0.10151183605194092,
0.19095481932163239,
0.13839571177959442,
0.06878098100423813,
-0.07874584197998047,
0.10012514144182205,
0.03010839968919754,
-0.19079694151878357,
0.028508225455880165,
-0.02513468824326992,
0.3009043335914612,
0.2265722155570984,
0.06183522567152977,
0.024157607927918434,
-0.05330638214945793,
-0.07461787760257721,
-0.1121780127286911,
-0.04140649735927582,
-0.07796362042427063,
0.3595578074455261,
-0.3970215916633606,
-0.027573002502322197,
0.28107017278671265,
0.4986264705657959,
0.3485291004180908,
-0.3341696858406067,
0.1404312252998352,
0.09825072437524796,
0.20083607733249664,
-0.24180537462234497,
-0.13203735649585724,
0.1866646409034729,
-0.031839389353990555,
0.03097672015428543,
0.12332747876644135,
-0.05814037099480629,
0.05055662989616394,
-0.23284408450126648,
0.05670931935310364,
0.5290334224700928,
0.09246090799570084,
0.22493162751197815,
0.130848228931427,
-0.018566392362117767,
0.06692206859588623,
0.06500107049942017,
0.0360548160970211,
0.12290973216295242,
0.29205912351608276,
-0.34958136081695557,
0.1462305635213852,
-0.05676022544503212,
0.06840071082115173,
-0.11474625766277313,
-0.6289646029472351,
0.33368176221847534,
0.1689157485961914,
-0.31917881965637207,
0.08784330636262894,
-0.24491262435913086,
0.4515695571899414,
-0.21866492927074432,
0.051713358610868454,
-0.29081207513809204,
0.3248194754123688,
0.05354991927742958,
-0.06190398335456848,
0.11665328592061996,
-0.2613925337791443,
-0.12228914350271225,
-0.024196306243538857,
0.05928691104054451,
-0.33784380555152893,
0.2547750771045685,
0.1873704344034195,
-0.1702093929052353,
-0.25051620602607727,
-0.05147352069616318,
0.20038902759552002,
-0.02789117954671383,
-0.10703574120998383,
0.3322902023792267,
0.313965380191803,
-0.10759731382131577,
-0.005260290112346411,
0.20781831443309784,
0.5430834889411926,
0.36382248997688293,
0.05988190323114395,
0.2568228244781494,
0.11453904956579208,
-0.13745267689228058,
0.06761494278907776,
0.03229411691427231,
0.2886674404144287,
0.08369125425815582,
0.3812454342842102,
0.21704433858394623,
-0.18020711839199066,
0.16716785728931427,
-0.019858915358781815,
0.1490117311477661,
-0.22099998593330383,
0.3357284665107727,
-0.0727917030453682,
0.03644641861319542,
-0.3704918324947357,
0.0609770342707634,
-0.6276515126228333,
-0.0764102190732956,
0.45937708020210266,
-0.01120233815163374,
0.009491429664194584,
-0.06973233819007874,
0.08088760077953339,
-0.10900328308343887,
0.713092029094696,
0.37308043241500854,
0.40819206833839417,
-0.44813087582588196,
-0.09220980107784271,
-0.5804842710494995,
0.07782530784606934,
-0.023873860016465187,
0.16887860000133514,
0.09095201641321182,
-0.14518897235393524,
0.022686989977955818,
0.2757076025009155,
0.2652721703052521,
0.0849514976143837,
0.15117338299751282,
0.09654349088668823,
-0.17954617738723755,
-0.11537550389766693,
0.022908363491296768,
0.06011645868420601,
-0.037616390734910965,
-0.23774856328964233,
0.05600776523351669,
-0.5345263481140137,
-0.005566381383687258,
-0.004136992618441582,
-0.056389711797237396,
-0.010824780911207199,
-0.07826220989227295,
0.33974647521972656,
0.07795253396034241,
0.7522101402282715,
0.006126693449914455,
-0.12574352324008942,
-0.39828866720199585,
-0.3299314081668854,
-0.12806005775928497,
0.14618682861328125,
-0.031772203743457794,
0.23516294360160828,
-0.10757314413785934,
-0.3375990390777588,
-0.3766070306301117,
0.1866876184940338,
0.049685679376125336,
-0.22551830112934113,
-0.1647074669599533,
0.05244824290275574,
0.0788077861070633,
0.00788083579391241,
0.1963626891374588,
0.09204848110675812,
-0.0348258912563324,
0.3125106990337372,
-0.10615725815296173,
-0.35995596647262573,
0.6798825263977051,
-0.22595597803592682,
-0.04740490764379501,
-0.10425861179828644,
0.03658904880285263,
0.09119973331689835,
0.08804003149271011,
-0.5794770121574402,
0.19912905991077423,
0.37699490785598755,
0.113466277718544,
-0.43973103165626526,
0.2614191472530365,
-0.07183176279067993,
0.011540079489350319,
0.03498830646276474,
0.13892114162445068,
0.03210311383008957,
-0.2739153504371643,
-0.024995489045977592,
-0.15673115849494934
] |
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.17262069880962372,
-0.08458222448825836,
-0.09733746200799942,
0.1288861483335495,
0.4222559928894043,
0.20194454491138458,
0.3426592946052551,
0.062195200473070145,
-0.057558659464120865,
0.004357544705271721,
-0.1423119455575943,
0.08249589055776596,
-0.06606011092662811,
0.2489195168018341,
0.11230878531932831,
-0.12542155385017395,
-0.0808454304933548,
-0.11463022977113724,
-0.22911693155765533,
0.0067152781412005424,
-0.20981016755104065,
0.14409378170967102,
-0.20964893698692322,
0.04321177676320076,
-0.4213048219680786,
-0.1652374118566513,
0.08612240105867386,
0.35553839802742004,
-0.03017209842801094,
-0.2586037814617157,
0.37103477120399475,
0.013673114590346813,
0.05071521922945976,
0.406772643327713,
-0.000110941196908243,
0.2821541130542755,
0.42149287462234497,
-0.007743551395833492,
-0.4700692594051361,
-0.41198766231536865,
0.028617534786462784,
-0.25242677330970764,
0.20361192524433136,
-0.12158285081386566,
-0.08969444781541824,
-0.09933535754680634,
-0.04851397126913071,
-0.2351500689983368,
0.4430740475654602,
0.42446836829185486,
0.26970914006233215,
0.27369678020477295,
0.3110579252243042,
-0.09482360631227493,
-0.3082546591758728,
-0.22429151833057404,
0.043680936098098755,
0.5262345671653748,
-0.30415472388267517,
-0.05500207096338272,
0.23694980144500732,
0.18526889383792877,
-0.11026409268379211,
0.039429161697626114,
0.10279257595539093,
0.03683972731232643,
-0.08111803978681564,
-0.3631625175476074,
0.016723638400435448,
0.07219387590885162,
0.24345357716083527,
-0.2260051965713501,
-0.4658712148666382,
-0.16389364004135132,
0.03046916425228119,
-0.3523123860359192,
0.20596472918987274,
0.07249463349580765,
-0.13103802502155304,
0.1562270224094391,
-0.40813392400741577,
-0.1662256270647049,
-0.2331792563199997,
0.47679927945137024,
-0.08346922695636749,
-0.06916534155607224,
-0.10134581476449966,
0.1568792164325714,
0.2081460952758789,
-0.014765377156436443,
0.24560610949993134,
0.01639632135629654,
0.33045879006385803,
0.21354350447654724,
-0.4810214042663574,
0.11584050953388214,
0.016374634578824043,
0.13958978652954102,
0.13585905730724335,
0.23614570498466492,
0.0839766189455986,
-0.05708594247698784,
-0.12385672330856323,
0.08515238761901855,
0.06063329428434372,
0.24538321793079376,
0.00893695279955864,
0.13872648775577545,
0.18724791705608368,
0.3058454394340515,
-0.012289674952626228,
0.03487186133861542,
-0.13719189167022705,
-0.2628459334373474,
-0.08476053178310394,
0.12667277455329895,
0.467296302318573,
-0.06681480258703232,
-0.14578032493591309,
0.22866623103618622,
-0.24972020089626312,
-0.07731279730796814,
0.12552909553050995,
0.5078198313713074,
-0.24598661065101624,
0.10307841747999191,
-0.09110596030950546,
0.24431131780147552,
-0.09848152101039886,
0.028140706941485405,
-0.2782627046108246,
0.15831728279590607,
-0.14690092206001282,
0.1858583241701126,
0.42093828320503235,
-0.4283131957054138,
0.3650217354297638,
-0.08279520273208618,
0.13289399445056915,
-0.265125572681427,
0.07276175171136856,
-0.0731365829706192,
-0.2295968234539032,
0.3315567970275879,
-0.01284829992800951,
0.18786056339740753,
0.32552748918533325,
0.21989955008029938,
-0.008620471693575382,
-0.09329663962125778,
-0.2572564482688904,
-0.5359479784965515,
0.2843952775001526,
0.23464980721473694,
-0.13258175551891327,
-0.23776689171791077,
-0.10398455709218979,
-0.07018804550170898,
-0.08551342785358429,
0.04999091476202011,
-0.2254381775856018,
-0.07588821649551392,
-0.00010202461999142542,
-0.18517398834228516,
0.45798546075820923,
0.4795648455619812,
-0.3562643527984619,
-0.13188329339027405,
-0.08891984820365906,
-0.19939106702804565,
0.10227569192647934,
0.250548779964447,
-0.21025577187538147,
0.267824649810791,
-0.03006298653781414,
-0.2001935839653015,
0.3244524896144867,
-0.2567800283432007,
-0.4303722083568573,
0.22959798574447632,
-0.14158383011817932,
0.07721977680921555,
-0.15979427099227905,
-0.019827786833047867,
-0.23004406690597534,
0.09766857326030731,
0.22241345047950745,
0.45447567105293274,
-0.22194136679172516,
-0.0075083267875015736,
-0.07613692432641983,
-0.28875792026519775,
0.1971726268529892,
0.34950873255729675,
0.1905546486377716,
0.08371218293905258,
0.11229036003351212,
-0.12296734750270844,
0.1389331817626953,
0.07927219569683075,
-0.1288711279630661,
0.22225980460643768,
-0.07304421812295914,
0.06009707599878311,
0.005793769843876362,
0.1931328922510147,
-0.4456617534160614,
0.21716174483299255,
0.2575109004974365,
0.20543895661830902,
-0.15917366743087769,
0.07180064916610718,
-0.3314305543899536,
0.06447815895080566,
-0.32763123512268066,
-0.10173209011554718,
0.1681317239999771,
0.1100919172167778,
0.11499106138944626,
0.14874128997325897,
-0.3477530777454376,
0.585390031337738,
-0.28072652220726013,
0.1544782668352127,
-0.3642595410346985,
0.3336735665798187,
-0.1378077268600464,
0.020809274166822433,
0.0532529316842556,
0.19486890733242035,
0.22709539532661438,
-0.21248048543930054,
-0.12306980043649673,
0.3350648581981659,
-0.09708833694458008,
0.1396981179714203,
0.10056962817907333,
0.020621629431843758,
0.08872149139642715,
-0.27322253584861755,
-0.007592231500893831,
0.17520852386951447,
-0.048422764986753464,
-0.06365393847227097,
0.22217127680778503,
0.2624586522579193,
-0.08243697136640549,
0.3350193500518799,
0.16534501314163208,
-0.01671675406396389,
0.15577521920204163,
0.08227856457233429,
-0.07257554680109024,
-0.08043781667947769,
0.3488464057445526,
-0.28236353397369385,
0.49145302176475525,
-0.17793600261211395,
-0.18835316598415375,
-0.21429792046546936,
0.10730169713497162,
-0.20607487857341766,
0.03680036589503288,
0.18075895309448242,
-0.15274657309055328,
-0.19591234624385834,
-0.14158251881599426,
0.22858905792236328,
0.38311269879341125,
0.1266685575246811,
0.017403505742549896,
0.3330523371696472,
-0.11242228001356125,
-0.12555478513240814,
0.21396216750144958,
0.16420921683311462,
0.2534163296222687,
0.12569065392017365,
-0.10634095966815948,
0.0876750573515892,
-0.3335898220539093,
-0.29772618412971497,
0.04574931412935257,
0.29409992694854736,
-0.3505646884441376,
-0.02660525031387806,
-0.2348109483718872,
-0.10758429020643234,
0.041000716388225555,
-0.49585115909576416,
-0.18313035368919373,
-0.44780924916267395,
-0.16305004060268402,
-0.02450845204293728,
0.10010901838541031,
0.19134411215782166,
-0.1383024901151657,
0.2042524665594101,
0.2681008577346802,
-0.17570725083351135,
-0.19902518391609192,
-0.14131581783294678,
-0.12220615893602371,
0.042546939104795456,
0.190982848405838,
-0.24977903068065643,
0.26150888204574585,
-0.12377609312534332,
-0.19311174750328064,
-0.13389764726161957,
-0.0432528555393219,
0.044891588389873505,
-0.08075837790966034,
0.42538896203041077,
0.04150475934147835,
0.517823338508606,
0.14749515056610107,
-0.05272875726222992,
0.37865927815437317,
-0.07507876306772232,
0.05258660763502121,
0.013706390745937824,
-0.012674442492425442,
0.1713647097349167,
0.10542484372854233,
-0.41975146532058716,
-0.5957536101341248,
-0.31860435009002686,
0.13327908515930176,
-0.1404164880514145,
0.16009151935577393,
0.4751749336719513,
0.13904868066310883,
0.07282308489084244,
-0.027766158804297447,
0.3243483901023865,
-0.29523971676826477,
-0.578493595123291,
0.34275057911872864,
-0.42625951766967773,
-0.39998507499694824,
0.051777783781290054,
0.23373757302761078,
0.1585312783718109,
-0.13686373829841614,
-0.4911375641822815,
-0.29129984974861145,
-0.021032029762864113,
-0.20825208723545074,
-0.14088864624500275,
0.034251514822244644,
-0.081787109375,
-0.1706446260213852,
-0.08072171360254288,
0.052855268120765686,
-0.21539564430713654,
0.020766014233231544,
-0.18977995216846466,
0.10595531016588211,
0.0540597066283226,
0.580053448677063,
-0.2069244682788849,
0.4104653000831604,
0.262797474861145,
-0.09994090348482132,
0.43047305941581726,
-0.1017872616648674,
0.29820674657821655,
-0.03379281610250473,
-0.5136102437973022,
-0.03903919830918312,
-0.024887001141905785,
-0.04935907945036888,
0.24670164287090302,
0.11831137537956238,
-0.17501001060009003,
-0.40237152576446533,
-0.1823296993970871,
-0.4465429186820984,
-0.1094004362821579,
-0.0297661405056715,
0.11023642867803574,
0.06838664412498474,
0.03377164527773857,
0.11739955097436905,
-0.15625622868537903,
-0.028626946732401848,
0.02339094504714012,
0.34780818223953247,
-0.03887943923473358,
0.1180441752076149,
0.006738738156855106,
-0.09217558056116104,
-0.43141868710517883,
0.334654301404953,
-0.17446006834506989,
0.4283646047115326,
-0.19772809743881226,
0.076753169298172,
-0.06717099994421005,
-0.0039034506771713495,
0.6058323979377747,
-0.2651655673980713,
0.11586444824934006,
0.09651879966259003,
0.010437834076583385,
-0.30427059531211853,
-0.09392139315605164,
-0.032578371465206146,
0.24870441854000092,
0.16576611995697021,
0.4472005367279053,
-0.07857001572847366,
-0.16756097972393036,
0.3270869851112366,
0.25485101342201233,
-0.13908441364765167,
-0.32141295075416565,
-0.14267976582050323,
-0.3935248851776123,
-0.22811292111873627,
-0.22428689897060394,
-0.3400646150112152,
0.3046943247318268,
-0.034138038754463196,
-0.16921952366828918,
0.06572646647691727,
-0.09413854032754898,
0.1747606247663498,
0.07752750813961029,
0.13451644778251648,
0.09457381069660187,
0.11386069655418396,
0.3893183767795563,
0.051472947001457214,
0.19698558747768402,
0.6876189112663269,
-0.17472930252552032,
-0.28180399537086487,
0.0031068858224898577,
0.26535898447036743,
0.12662993371486664,
0.2776084244251251,
-0.21346977353096008,
-0.11072660982608795,
0.1917884200811386,
0.19745796918869019,
-0.0059064654633402824,
0.28092122077941895,
0.378507137298584,
0.09109920263290405,
-0.5953509211540222,
-0.5943171977996826,
0.4862525761127472,
-0.09490972012281418,
0.11619789153337479,
0.18356935679912567,
-0.12010638415813446,
-0.13071632385253906,
0.17530809342861176,
-0.18716762959957123,
0.7539352178573608,
-0.05162092670798302,
0.022021446377038956,
0.2660261392593384,
0.2764638364315033,
0.4896042048931122,
-0.3141956627368927,
0.017141269519925117,
-0.22134767472743988,
-0.3019843101501465,
-0.09656082838773727,
-0.11286532878875732,
0.12321501225233078,
0.27900147438049316,
0.04115952551364899,
0.452960729598999,
-0.13979826867580414,
-0.007672024425119162,
0.12030038982629776,
0.27587100863456726,
-0.01236597541719675,
-0.09909754246473312,
-0.6099658608436584,
0.2349267154932022,
-0.11527697741985321,
0.28590962290763855,
-0.14560528099536896,
-0.026654234156012535,
0.01893516816198826,
-0.20110724866390228,
-0.12524820864200592,
0.11030696332454681,
-0.5258551836013794,
0.33524593710899353,
-0.1103220134973526,
-0.19214001297950745,
-0.23488032817840576,
0.14027580618858337,
0.2428167164325714,
0.020909838378429413,
-0.18050271272659302,
-0.016430851072072983,
-0.178729847073555,
-0.24221393465995789,
-0.1114940345287323,
0.006605745293200016,
0.3349570035934448,
-0.14434994757175446,
-0.22991377115249634,
0.09646278619766235,
-0.12504637241363525,
-0.3004515469074249,
0.11817304790019989,
-0.0709114745259285,
-0.10809731483459473,
-0.13218651711940765,
-0.24444091320037842,
-0.1845485419034958,
0.08627714216709137,
-0.17466436326503754,
0.13675302267074585,
0.0688006803393364,
-0.08284232020378113,
0.101688914000988,
0.14947648346424103,
-0.29833418130874634,
-0.1130417063832283,
0.3407585322856903,
-0.26778486371040344,
-0.2979254424571991,
0.4692351222038269,
0.35197198390960693,
-0.15862710773944855,
-0.16132217645645142,
0.11765493452548981,
0.23542238771915436,
-0.2757170796394348,
0.028793087229132652,
0.16200236976146698,
0.30084455013275146,
-0.009347377344965935,
0.3109230399131775,
0.30563995242118835,
0.10084761679172516,
0.007333983201533556,
-0.7206998467445374,
-0.32498931884765625,
0.19461877644062042,
0.12716615200042725,
0.2861979603767395,
0.1761263906955719,
0.11474578827619553,
0.02176538296043873,
-0.14196576178073883,
-0.31081998348236084,
0.056390032172203064,
-0.19300299882888794,
-0.22462239861488342,
0.20448747277259827,
-0.19606387615203857,
0.5058370232582092,
0.0961756706237793,
0.23531509935855865,
-0.18623150885105133,
-0.22380872070789337,
-0.2522975504398346,
0.012597295455634594,
0.12506656348705292,
-0.007205305155366659,
-0.15990473330020905,
0.07668455690145493,
-0.09893525391817093,
-0.10716976225376129,
-0.10151183605194092,
0.19095481932163239,
0.13839571177959442,
0.06878098100423813,
-0.07874584197998047,
0.10012514144182205,
0.03010839968919754,
-0.19079694151878357,
0.028508225455880165,
-0.02513468824326992,
0.3009043335914612,
0.2265722155570984,
0.06183522567152977,
0.024157607927918434,
-0.05330638214945793,
-0.07461787760257721,
-0.1121780127286911,
-0.04140649735927582,
-0.07796362042427063,
0.3595578074455261,
-0.3970215916633606,
-0.027573002502322197,
0.28107017278671265,
0.4986264705657959,
0.3485291004180908,
-0.3341696858406067,
0.1404312252998352,
0.09825072437524796,
0.20083607733249664,
-0.24180537462234497,
-0.13203735649585724,
0.1866646409034729,
-0.031839389353990555,
0.03097672015428543,
0.12332747876644135,
-0.05814037099480629,
0.05055662989616394,
-0.23284408450126648,
0.05670931935310364,
0.5290334224700928,
0.09246090799570084,
0.22493162751197815,
0.130848228931427,
-0.018566392362117767,
0.06692206859588623,
0.06500107049942017,
0.0360548160970211,
0.12290973216295242,
0.29205912351608276,
-0.34958136081695557,
0.1462305635213852,
-0.05676022544503212,
0.06840071082115173,
-0.11474625766277313,
-0.6289646029472351,
0.33368176221847534,
0.1689157485961914,
-0.31917881965637207,
0.08784330636262894,
-0.24491262435913086,
0.4515695571899414,
-0.21866492927074432,
0.051713358610868454,
-0.29081207513809204,
0.3248194754123688,
0.05354991927742958,
-0.06190398335456848,
0.11665328592061996,
-0.2613925337791443,
-0.12228914350271225,
-0.024196306243538857,
0.05928691104054451,
-0.33784380555152893,
0.2547750771045685,
0.1873704344034195,
-0.1702093929052353,
-0.25051620602607727,
-0.05147352069616318,
0.20038902759552002,
-0.02789117954671383,
-0.10703574120998383,
0.3322902023792267,
0.313965380191803,
-0.10759731382131577,
-0.005260290112346411,
0.20781831443309784,
0.5430834889411926,
0.36382248997688293,
0.05988190323114395,
0.2568228244781494,
0.11453904956579208,
-0.13745267689228058,
0.06761494278907776,
0.03229411691427231,
0.2886674404144287,
0.08369125425815582,
0.3812454342842102,
0.21704433858394623,
-0.18020711839199066,
0.16716785728931427,
-0.019858915358781815,
0.1490117311477661,
-0.22099998593330383,
0.3357284665107727,
-0.0727917030453682,
0.03644641861319542,
-0.3704918324947357,
0.0609770342707634,
-0.6276515126228333,
-0.0764102190732956,
0.45937708020210266,
-0.01120233815163374,
0.009491429664194584,
-0.06973233819007874,
0.08088760077953339,
-0.10900328308343887,
0.713092029094696,
0.37308043241500854,
0.40819206833839417,
-0.44813087582588196,
-0.09220980107784271,
-0.5804842710494995,
0.07782530784606934,
-0.023873860016465187,
0.16887860000133514,
0.09095201641321182,
-0.14518897235393524,
0.022686989977955818,
0.2757076025009155,
0.2652721703052521,
0.0849514976143837,
0.15117338299751282,
0.09654349088668823,
-0.17954617738723755,
-0.11537550389766693,
0.022908363491296768,
0.06011645868420601,
-0.037616390734910965,
-0.23774856328964233,
0.05600776523351669,
-0.5345263481140137,
-0.005566381383687258,
-0.004136992618441582,
-0.056389711797237396,
-0.010824780911207199,
-0.07826220989227295,
0.33974647521972656,
0.07795253396034241,
0.7522101402282715,
0.006126693449914455,
-0.12574352324008942,
-0.39828866720199585,
-0.3299314081668854,
-0.12806005775928497,
0.14618682861328125,
-0.031772203743457794,
0.23516294360160828,
-0.10757314413785934,
-0.3375990390777588,
-0.3766070306301117,
0.1866876184940338,
0.049685679376125336,
-0.22551830112934113,
-0.1647074669599533,
0.05244824290275574,
0.0788077861070633,
0.00788083579391241,
0.1963626891374588,
0.09204848110675812,
-0.0348258912563324,
0.3125106990337372,
-0.10615725815296173,
-0.35995596647262573,
0.6798825263977051,
-0.22595597803592682,
-0.04740490764379501,
-0.10425861179828644,
0.03658904880285263,
0.09119973331689835,
0.08804003149271011,
-0.5794770121574402,
0.19912905991077423,
0.37699490785598755,
0.113466277718544,
-0.43973103165626526,
0.2614191472530365,
-0.07183176279067993,
0.011540079489350319,
0.03498830646276474,
0.13892114162445068,
0.03210311383008957,
-0.2739153504371643,
-0.024995489045977592,
-0.15673115849494934
] |
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.17262069880962372,
-0.08458222448825836,
-0.09733746200799942,
0.1288861483335495,
0.4222559928894043,
0.20194454491138458,
0.3426592946052551,
0.062195200473070145,
-0.057558659464120865,
0.004357544705271721,
-0.1423119455575943,
0.08249589055776596,
-0.06606011092662811,
0.2489195168018341,
0.11230878531932831,
-0.12542155385017395,
-0.0808454304933548,
-0.11463022977113724,
-0.22911693155765533,
0.0067152781412005424,
-0.20981016755104065,
0.14409378170967102,
-0.20964893698692322,
0.04321177676320076,
-0.4213048219680786,
-0.1652374118566513,
0.08612240105867386,
0.35553839802742004,
-0.03017209842801094,
-0.2586037814617157,
0.37103477120399475,
0.013673114590346813,
0.05071521922945976,
0.406772643327713,
-0.000110941196908243,
0.2821541130542755,
0.42149287462234497,
-0.007743551395833492,
-0.4700692594051361,
-0.41198766231536865,
0.028617534786462784,
-0.25242677330970764,
0.20361192524433136,
-0.12158285081386566,
-0.08969444781541824,
-0.09933535754680634,
-0.04851397126913071,
-0.2351500689983368,
0.4430740475654602,
0.42446836829185486,
0.26970914006233215,
0.27369678020477295,
0.3110579252243042,
-0.09482360631227493,
-0.3082546591758728,
-0.22429151833057404,
0.043680936098098755,
0.5262345671653748,
-0.30415472388267517,
-0.05500207096338272,
0.23694980144500732,
0.18526889383792877,
-0.11026409268379211,
0.039429161697626114,
0.10279257595539093,
0.03683972731232643,
-0.08111803978681564,
-0.3631625175476074,
0.016723638400435448,
0.07219387590885162,
0.24345357716083527,
-0.2260051965713501,
-0.4658712148666382,
-0.16389364004135132,
0.03046916425228119,
-0.3523123860359192,
0.20596472918987274,
0.07249463349580765,
-0.13103802502155304,
0.1562270224094391,
-0.40813392400741577,
-0.1662256270647049,
-0.2331792563199997,
0.47679927945137024,
-0.08346922695636749,
-0.06916534155607224,
-0.10134581476449966,
0.1568792164325714,
0.2081460952758789,
-0.014765377156436443,
0.24560610949993134,
0.01639632135629654,
0.33045879006385803,
0.21354350447654724,
-0.4810214042663574,
0.11584050953388214,
0.016374634578824043,
0.13958978652954102,
0.13585905730724335,
0.23614570498466492,
0.0839766189455986,
-0.05708594247698784,
-0.12385672330856323,
0.08515238761901855,
0.06063329428434372,
0.24538321793079376,
0.00893695279955864,
0.13872648775577545,
0.18724791705608368,
0.3058454394340515,
-0.012289674952626228,
0.03487186133861542,
-0.13719189167022705,
-0.2628459334373474,
-0.08476053178310394,
0.12667277455329895,
0.467296302318573,
-0.06681480258703232,
-0.14578032493591309,
0.22866623103618622,
-0.24972020089626312,
-0.07731279730796814,
0.12552909553050995,
0.5078198313713074,
-0.24598661065101624,
0.10307841747999191,
-0.09110596030950546,
0.24431131780147552,
-0.09848152101039886,
0.028140706941485405,
-0.2782627046108246,
0.15831728279590607,
-0.14690092206001282,
0.1858583241701126,
0.42093828320503235,
-0.4283131957054138,
0.3650217354297638,
-0.08279520273208618,
0.13289399445056915,
-0.265125572681427,
0.07276175171136856,
-0.0731365829706192,
-0.2295968234539032,
0.3315567970275879,
-0.01284829992800951,
0.18786056339740753,
0.32552748918533325,
0.21989955008029938,
-0.008620471693575382,
-0.09329663962125778,
-0.2572564482688904,
-0.5359479784965515,
0.2843952775001526,
0.23464980721473694,
-0.13258175551891327,
-0.23776689171791077,
-0.10398455709218979,
-0.07018804550170898,
-0.08551342785358429,
0.04999091476202011,
-0.2254381775856018,
-0.07588821649551392,
-0.00010202461999142542,
-0.18517398834228516,
0.45798546075820923,
0.4795648455619812,
-0.3562643527984619,
-0.13188329339027405,
-0.08891984820365906,
-0.19939106702804565,
0.10227569192647934,
0.250548779964447,
-0.21025577187538147,
0.267824649810791,
-0.03006298653781414,
-0.2001935839653015,
0.3244524896144867,
-0.2567800283432007,
-0.4303722083568573,
0.22959798574447632,
-0.14158383011817932,
0.07721977680921555,
-0.15979427099227905,
-0.019827786833047867,
-0.23004406690597534,
0.09766857326030731,
0.22241345047950745,
0.45447567105293274,
-0.22194136679172516,
-0.0075083267875015736,
-0.07613692432641983,
-0.28875792026519775,
0.1971726268529892,
0.34950873255729675,
0.1905546486377716,
0.08371218293905258,
0.11229036003351212,
-0.12296734750270844,
0.1389331817626953,
0.07927219569683075,
-0.1288711279630661,
0.22225980460643768,
-0.07304421812295914,
0.06009707599878311,
0.005793769843876362,
0.1931328922510147,
-0.4456617534160614,
0.21716174483299255,
0.2575109004974365,
0.20543895661830902,
-0.15917366743087769,
0.07180064916610718,
-0.3314305543899536,
0.06447815895080566,
-0.32763123512268066,
-0.10173209011554718,
0.1681317239999771,
0.1100919172167778,
0.11499106138944626,
0.14874128997325897,
-0.3477530777454376,
0.585390031337738,
-0.28072652220726013,
0.1544782668352127,
-0.3642595410346985,
0.3336735665798187,
-0.1378077268600464,
0.020809274166822433,
0.0532529316842556,
0.19486890733242035,
0.22709539532661438,
-0.21248048543930054,
-0.12306980043649673,
0.3350648581981659,
-0.09708833694458008,
0.1396981179714203,
0.10056962817907333,
0.020621629431843758,
0.08872149139642715,
-0.27322253584861755,
-0.007592231500893831,
0.17520852386951447,
-0.048422764986753464,
-0.06365393847227097,
0.22217127680778503,
0.2624586522579193,
-0.08243697136640549,
0.3350193500518799,
0.16534501314163208,
-0.01671675406396389,
0.15577521920204163,
0.08227856457233429,
-0.07257554680109024,
-0.08043781667947769,
0.3488464057445526,
-0.28236353397369385,
0.49145302176475525,
-0.17793600261211395,
-0.18835316598415375,
-0.21429792046546936,
0.10730169713497162,
-0.20607487857341766,
0.03680036589503288,
0.18075895309448242,
-0.15274657309055328,
-0.19591234624385834,
-0.14158251881599426,
0.22858905792236328,
0.38311269879341125,
0.1266685575246811,
0.017403505742549896,
0.3330523371696472,
-0.11242228001356125,
-0.12555478513240814,
0.21396216750144958,
0.16420921683311462,
0.2534163296222687,
0.12569065392017365,
-0.10634095966815948,
0.0876750573515892,
-0.3335898220539093,
-0.29772618412971497,
0.04574931412935257,
0.29409992694854736,
-0.3505646884441376,
-0.02660525031387806,
-0.2348109483718872,
-0.10758429020643234,
0.041000716388225555,
-0.49585115909576416,
-0.18313035368919373,
-0.44780924916267395,
-0.16305004060268402,
-0.02450845204293728,
0.10010901838541031,
0.19134411215782166,
-0.1383024901151657,
0.2042524665594101,
0.2681008577346802,
-0.17570725083351135,
-0.19902518391609192,
-0.14131581783294678,
-0.12220615893602371,
0.042546939104795456,
0.190982848405838,
-0.24977903068065643,
0.26150888204574585,
-0.12377609312534332,
-0.19311174750328064,
-0.13389764726161957,
-0.0432528555393219,
0.044891588389873505,
-0.08075837790966034,
0.42538896203041077,
0.04150475934147835,
0.517823338508606,
0.14749515056610107,
-0.05272875726222992,
0.37865927815437317,
-0.07507876306772232,
0.05258660763502121,
0.013706390745937824,
-0.012674442492425442,
0.1713647097349167,
0.10542484372854233,
-0.41975146532058716,
-0.5957536101341248,
-0.31860435009002686,
0.13327908515930176,
-0.1404164880514145,
0.16009151935577393,
0.4751749336719513,
0.13904868066310883,
0.07282308489084244,
-0.027766158804297447,
0.3243483901023865,
-0.29523971676826477,
-0.578493595123291,
0.34275057911872864,
-0.42625951766967773,
-0.39998507499694824,
0.051777783781290054,
0.23373757302761078,
0.1585312783718109,
-0.13686373829841614,
-0.4911375641822815,
-0.29129984974861145,
-0.021032029762864113,
-0.20825208723545074,
-0.14088864624500275,
0.034251514822244644,
-0.081787109375,
-0.1706446260213852,
-0.08072171360254288,
0.052855268120765686,
-0.21539564430713654,
0.020766014233231544,
-0.18977995216846466,
0.10595531016588211,
0.0540597066283226,
0.580053448677063,
-0.2069244682788849,
0.4104653000831604,
0.262797474861145,
-0.09994090348482132,
0.43047305941581726,
-0.1017872616648674,
0.29820674657821655,
-0.03379281610250473,
-0.5136102437973022,
-0.03903919830918312,
-0.024887001141905785,
-0.04935907945036888,
0.24670164287090302,
0.11831137537956238,
-0.17501001060009003,
-0.40237152576446533,
-0.1823296993970871,
-0.4465429186820984,
-0.1094004362821579,
-0.0297661405056715,
0.11023642867803574,
0.06838664412498474,
0.03377164527773857,
0.11739955097436905,
-0.15625622868537903,
-0.028626946732401848,
0.02339094504714012,
0.34780818223953247,
-0.03887943923473358,
0.1180441752076149,
0.006738738156855106,
-0.09217558056116104,
-0.43141868710517883,
0.334654301404953,
-0.17446006834506989,
0.4283646047115326,
-0.19772809743881226,
0.076753169298172,
-0.06717099994421005,
-0.0039034506771713495,
0.6058323979377747,
-0.2651655673980713,
0.11586444824934006,
0.09651879966259003,
0.010437834076583385,
-0.30427059531211853,
-0.09392139315605164,
-0.032578371465206146,
0.24870441854000092,
0.16576611995697021,
0.4472005367279053,
-0.07857001572847366,
-0.16756097972393036,
0.3270869851112366,
0.25485101342201233,
-0.13908441364765167,
-0.32141295075416565,
-0.14267976582050323,
-0.3935248851776123,
-0.22811292111873627,
-0.22428689897060394,
-0.3400646150112152,
0.3046943247318268,
-0.034138038754463196,
-0.16921952366828918,
0.06572646647691727,
-0.09413854032754898,
0.1747606247663498,
0.07752750813961029,
0.13451644778251648,
0.09457381069660187,
0.11386069655418396,
0.3893183767795563,
0.051472947001457214,
0.19698558747768402,
0.6876189112663269,
-0.17472930252552032,
-0.28180399537086487,
0.0031068858224898577,
0.26535898447036743,
0.12662993371486664,
0.2776084244251251,
-0.21346977353096008,
-0.11072660982608795,
0.1917884200811386,
0.19745796918869019,
-0.0059064654633402824,
0.28092122077941895,
0.378507137298584,
0.09109920263290405,
-0.5953509211540222,
-0.5943171977996826,
0.4862525761127472,
-0.09490972012281418,
0.11619789153337479,
0.18356935679912567,
-0.12010638415813446,
-0.13071632385253906,
0.17530809342861176,
-0.18716762959957123,
0.7539352178573608,
-0.05162092670798302,
0.022021446377038956,
0.2660261392593384,
0.2764638364315033,
0.4896042048931122,
-0.3141956627368927,
0.017141269519925117,
-0.22134767472743988,
-0.3019843101501465,
-0.09656082838773727,
-0.11286532878875732,
0.12321501225233078,
0.27900147438049316,
0.04115952551364899,
0.452960729598999,
-0.13979826867580414,
-0.007672024425119162,
0.12030038982629776,
0.27587100863456726,
-0.01236597541719675,
-0.09909754246473312,
-0.6099658608436584,
0.2349267154932022,
-0.11527697741985321,
0.28590962290763855,
-0.14560528099536896,
-0.026654234156012535,
0.01893516816198826,
-0.20110724866390228,
-0.12524820864200592,
0.11030696332454681,
-0.5258551836013794,
0.33524593710899353,
-0.1103220134973526,
-0.19214001297950745,
-0.23488032817840576,
0.14027580618858337,
0.2428167164325714,
0.020909838378429413,
-0.18050271272659302,
-0.016430851072072983,
-0.178729847073555,
-0.24221393465995789,
-0.1114940345287323,
0.006605745293200016,
0.3349570035934448,
-0.14434994757175446,
-0.22991377115249634,
0.09646278619766235,
-0.12504637241363525,
-0.3004515469074249,
0.11817304790019989,
-0.0709114745259285,
-0.10809731483459473,
-0.13218651711940765,
-0.24444091320037842,
-0.1845485419034958,
0.08627714216709137,
-0.17466436326503754,
0.13675302267074585,
0.0688006803393364,
-0.08284232020378113,
0.101688914000988,
0.14947648346424103,
-0.29833418130874634,
-0.1130417063832283,
0.3407585322856903,
-0.26778486371040344,
-0.2979254424571991,
0.4692351222038269,
0.35197198390960693,
-0.15862710773944855,
-0.16132217645645142,
0.11765493452548981,
0.23542238771915436,
-0.2757170796394348,
0.028793087229132652,
0.16200236976146698,
0.30084455013275146,
-0.009347377344965935,
0.3109230399131775,
0.30563995242118835,
0.10084761679172516,
0.007333983201533556,
-0.7206998467445374,
-0.32498931884765625,
0.19461877644062042,
0.12716615200042725,
0.2861979603767395,
0.1761263906955719,
0.11474578827619553,
0.02176538296043873,
-0.14196576178073883,
-0.31081998348236084,
0.056390032172203064,
-0.19300299882888794,
-0.22462239861488342,
0.20448747277259827,
-0.19606387615203857,
0.5058370232582092,
0.0961756706237793,
0.23531509935855865,
-0.18623150885105133,
-0.22380872070789337,
-0.2522975504398346,
0.012597295455634594,
0.12506656348705292,
-0.007205305155366659,
-0.15990473330020905,
0.07668455690145493,
-0.09893525391817093,
-0.10716976225376129,
-0.10151183605194092,
0.19095481932163239,
0.13839571177959442,
0.06878098100423813,
-0.07874584197998047,
0.10012514144182205,
0.03010839968919754,
-0.19079694151878357,
0.028508225455880165,
-0.02513468824326992,
0.3009043335914612,
0.2265722155570984,
0.06183522567152977,
0.024157607927918434,
-0.05330638214945793,
-0.07461787760257721,
-0.1121780127286911,
-0.04140649735927582,
-0.07796362042427063,
0.3595578074455261,
-0.3970215916633606,
-0.027573002502322197,
0.28107017278671265,
0.4986264705657959,
0.3485291004180908,
-0.3341696858406067,
0.1404312252998352,
0.09825072437524796,
0.20083607733249664,
-0.24180537462234497,
-0.13203735649585724,
0.1866646409034729,
-0.031839389353990555,
0.03097672015428543,
0.12332747876644135,
-0.05814037099480629,
0.05055662989616394,
-0.23284408450126648,
0.05670931935310364,
0.5290334224700928,
0.09246090799570084,
0.22493162751197815,
0.130848228931427,
-0.018566392362117767,
0.06692206859588623,
0.06500107049942017,
0.0360548160970211,
0.12290973216295242,
0.29205912351608276,
-0.34958136081695557,
0.1462305635213852,
-0.05676022544503212,
0.06840071082115173,
-0.11474625766277313,
-0.6289646029472351,
0.33368176221847534,
0.1689157485961914,
-0.31917881965637207,
0.08784330636262894,
-0.24491262435913086,
0.4515695571899414,
-0.21866492927074432,
0.051713358610868454,
-0.29081207513809204,
0.3248194754123688,
0.05354991927742958,
-0.06190398335456848,
0.11665328592061996,
-0.2613925337791443,
-0.12228914350271225,
-0.024196306243538857,
0.05928691104054451,
-0.33784380555152893,
0.2547750771045685,
0.1873704344034195,
-0.1702093929052353,
-0.25051620602607727,
-0.05147352069616318,
0.20038902759552002,
-0.02789117954671383,
-0.10703574120998383,
0.3322902023792267,
0.313965380191803,
-0.10759731382131577,
-0.005260290112346411,
0.20781831443309784,
0.5430834889411926,
0.36382248997688293,
0.05988190323114395,
0.2568228244781494,
0.11453904956579208,
-0.13745267689228058,
0.06761494278907776,
0.03229411691427231,
0.2886674404144287,
0.08369125425815582,
0.3812454342842102,
0.21704433858394623,
-0.18020711839199066,
0.16716785728931427,
-0.019858915358781815,
0.1490117311477661,
-0.22099998593330383,
0.3357284665107727,
-0.0727917030453682,
0.03644641861319542,
-0.3704918324947357,
0.0609770342707634,
-0.6276515126228333,
-0.0764102190732956,
0.45937708020210266,
-0.01120233815163374,
0.009491429664194584,
-0.06973233819007874,
0.08088760077953339,
-0.10900328308343887,
0.713092029094696,
0.37308043241500854,
0.40819206833839417,
-0.44813087582588196,
-0.09220980107784271,
-0.5804842710494995,
0.07782530784606934,
-0.023873860016465187,
0.16887860000133514,
0.09095201641321182,
-0.14518897235393524,
0.022686989977955818,
0.2757076025009155,
0.2652721703052521,
0.0849514976143837,
0.15117338299751282,
0.09654349088668823,
-0.17954617738723755,
-0.11537550389766693,
0.022908363491296768,
0.06011645868420601,
-0.037616390734910965,
-0.23774856328964233,
0.05600776523351669,
-0.5345263481140137,
-0.005566381383687258,
-0.004136992618441582,
-0.056389711797237396,
-0.010824780911207199,
-0.07826220989227295,
0.33974647521972656,
0.07795253396034241,
0.7522101402282715,
0.006126693449914455,
-0.12574352324008942,
-0.39828866720199585,
-0.3299314081668854,
-0.12806005775928497,
0.14618682861328125,
-0.031772203743457794,
0.23516294360160828,
-0.10757314413785934,
-0.3375990390777588,
-0.3766070306301117,
0.1866876184940338,
0.049685679376125336,
-0.22551830112934113,
-0.1647074669599533,
0.05244824290275574,
0.0788077861070633,
0.00788083579391241,
0.1963626891374588,
0.09204848110675812,
-0.0348258912563324,
0.3125106990337372,
-0.10615725815296173,
-0.35995596647262573,
0.6798825263977051,
-0.22595597803592682,
-0.04740490764379501,
-0.10425861179828644,
0.03658904880285263,
0.09119973331689835,
0.08804003149271011,
-0.5794770121574402,
0.19912905991077423,
0.37699490785598755,
0.113466277718544,
-0.43973103165626526,
0.2614191472530365,
-0.07183176279067993,
0.011540079489350319,
0.03498830646276474,
0.13892114162445068,
0.03210311383008957,
-0.2739153504371643,
-0.024995489045977592,
-0.15673115849494934
] |
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.17262069880962372,
-0.08458222448825836,
-0.09733746200799942,
0.1288861483335495,
0.4222559928894043,
0.20194454491138458,
0.3426592946052551,
0.062195200473070145,
-0.057558659464120865,
0.004357544705271721,
-0.1423119455575943,
0.08249589055776596,
-0.06606011092662811,
0.2489195168018341,
0.11230878531932831,
-0.12542155385017395,
-0.0808454304933548,
-0.11463022977113724,
-0.22911693155765533,
0.0067152781412005424,
-0.20981016755104065,
0.14409378170967102,
-0.20964893698692322,
0.04321177676320076,
-0.4213048219680786,
-0.1652374118566513,
0.08612240105867386,
0.35553839802742004,
-0.03017209842801094,
-0.2586037814617157,
0.37103477120399475,
0.013673114590346813,
0.05071521922945976,
0.406772643327713,
-0.000110941196908243,
0.2821541130542755,
0.42149287462234497,
-0.007743551395833492,
-0.4700692594051361,
-0.41198766231536865,
0.028617534786462784,
-0.25242677330970764,
0.20361192524433136,
-0.12158285081386566,
-0.08969444781541824,
-0.09933535754680634,
-0.04851397126913071,
-0.2351500689983368,
0.4430740475654602,
0.42446836829185486,
0.26970914006233215,
0.27369678020477295,
0.3110579252243042,
-0.09482360631227493,
-0.3082546591758728,
-0.22429151833057404,
0.043680936098098755,
0.5262345671653748,
-0.30415472388267517,
-0.05500207096338272,
0.23694980144500732,
0.18526889383792877,
-0.11026409268379211,
0.039429161697626114,
0.10279257595539093,
0.03683972731232643,
-0.08111803978681564,
-0.3631625175476074,
0.016723638400435448,
0.07219387590885162,
0.24345357716083527,
-0.2260051965713501,
-0.4658712148666382,
-0.16389364004135132,
0.03046916425228119,
-0.3523123860359192,
0.20596472918987274,
0.07249463349580765,
-0.13103802502155304,
0.1562270224094391,
-0.40813392400741577,
-0.1662256270647049,
-0.2331792563199997,
0.47679927945137024,
-0.08346922695636749,
-0.06916534155607224,
-0.10134581476449966,
0.1568792164325714,
0.2081460952758789,
-0.014765377156436443,
0.24560610949993134,
0.01639632135629654,
0.33045879006385803,
0.21354350447654724,
-0.4810214042663574,
0.11584050953388214,
0.016374634578824043,
0.13958978652954102,
0.13585905730724335,
0.23614570498466492,
0.0839766189455986,
-0.05708594247698784,
-0.12385672330856323,
0.08515238761901855,
0.06063329428434372,
0.24538321793079376,
0.00893695279955864,
0.13872648775577545,
0.18724791705608368,
0.3058454394340515,
-0.012289674952626228,
0.03487186133861542,
-0.13719189167022705,
-0.2628459334373474,
-0.08476053178310394,
0.12667277455329895,
0.467296302318573,
-0.06681480258703232,
-0.14578032493591309,
0.22866623103618622,
-0.24972020089626312,
-0.07731279730796814,
0.12552909553050995,
0.5078198313713074,
-0.24598661065101624,
0.10307841747999191,
-0.09110596030950546,
0.24431131780147552,
-0.09848152101039886,
0.028140706941485405,
-0.2782627046108246,
0.15831728279590607,
-0.14690092206001282,
0.1858583241701126,
0.42093828320503235,
-0.4283131957054138,
0.3650217354297638,
-0.08279520273208618,
0.13289399445056915,
-0.265125572681427,
0.07276175171136856,
-0.0731365829706192,
-0.2295968234539032,
0.3315567970275879,
-0.01284829992800951,
0.18786056339740753,
0.32552748918533325,
0.21989955008029938,
-0.008620471693575382,
-0.09329663962125778,
-0.2572564482688904,
-0.5359479784965515,
0.2843952775001526,
0.23464980721473694,
-0.13258175551891327,
-0.23776689171791077,
-0.10398455709218979,
-0.07018804550170898,
-0.08551342785358429,
0.04999091476202011,
-0.2254381775856018,
-0.07588821649551392,
-0.00010202461999142542,
-0.18517398834228516,
0.45798546075820923,
0.4795648455619812,
-0.3562643527984619,
-0.13188329339027405,
-0.08891984820365906,
-0.19939106702804565,
0.10227569192647934,
0.250548779964447,
-0.21025577187538147,
0.267824649810791,
-0.03006298653781414,
-0.2001935839653015,
0.3244524896144867,
-0.2567800283432007,
-0.4303722083568573,
0.22959798574447632,
-0.14158383011817932,
0.07721977680921555,
-0.15979427099227905,
-0.019827786833047867,
-0.23004406690597534,
0.09766857326030731,
0.22241345047950745,
0.45447567105293274,
-0.22194136679172516,
-0.0075083267875015736,
-0.07613692432641983,
-0.28875792026519775,
0.1971726268529892,
0.34950873255729675,
0.1905546486377716,
0.08371218293905258,
0.11229036003351212,
-0.12296734750270844,
0.1389331817626953,
0.07927219569683075,
-0.1288711279630661,
0.22225980460643768,
-0.07304421812295914,
0.06009707599878311,
0.005793769843876362,
0.1931328922510147,
-0.4456617534160614,
0.21716174483299255,
0.2575109004974365,
0.20543895661830902,
-0.15917366743087769,
0.07180064916610718,
-0.3314305543899536,
0.06447815895080566,
-0.32763123512268066,
-0.10173209011554718,
0.1681317239999771,
0.1100919172167778,
0.11499106138944626,
0.14874128997325897,
-0.3477530777454376,
0.585390031337738,
-0.28072652220726013,
0.1544782668352127,
-0.3642595410346985,
0.3336735665798187,
-0.1378077268600464,
0.020809274166822433,
0.0532529316842556,
0.19486890733242035,
0.22709539532661438,
-0.21248048543930054,
-0.12306980043649673,
0.3350648581981659,
-0.09708833694458008,
0.1396981179714203,
0.10056962817907333,
0.020621629431843758,
0.08872149139642715,
-0.27322253584861755,
-0.007592231500893831,
0.17520852386951447,
-0.048422764986753464,
-0.06365393847227097,
0.22217127680778503,
0.2624586522579193,
-0.08243697136640549,
0.3350193500518799,
0.16534501314163208,
-0.01671675406396389,
0.15577521920204163,
0.08227856457233429,
-0.07257554680109024,
-0.08043781667947769,
0.3488464057445526,
-0.28236353397369385,
0.49145302176475525,
-0.17793600261211395,
-0.18835316598415375,
-0.21429792046546936,
0.10730169713497162,
-0.20607487857341766,
0.03680036589503288,
0.18075895309448242,
-0.15274657309055328,
-0.19591234624385834,
-0.14158251881599426,
0.22858905792236328,
0.38311269879341125,
0.1266685575246811,
0.017403505742549896,
0.3330523371696472,
-0.11242228001356125,
-0.12555478513240814,
0.21396216750144958,
0.16420921683311462,
0.2534163296222687,
0.12569065392017365,
-0.10634095966815948,
0.0876750573515892,
-0.3335898220539093,
-0.29772618412971497,
0.04574931412935257,
0.29409992694854736,
-0.3505646884441376,
-0.02660525031387806,
-0.2348109483718872,
-0.10758429020643234,
0.041000716388225555,
-0.49585115909576416,
-0.18313035368919373,
-0.44780924916267395,
-0.16305004060268402,
-0.02450845204293728,
0.10010901838541031,
0.19134411215782166,
-0.1383024901151657,
0.2042524665594101,
0.2681008577346802,
-0.17570725083351135,
-0.19902518391609192,
-0.14131581783294678,
-0.12220615893602371,
0.042546939104795456,
0.190982848405838,
-0.24977903068065643,
0.26150888204574585,
-0.12377609312534332,
-0.19311174750328064,
-0.13389764726161957,
-0.0432528555393219,
0.044891588389873505,
-0.08075837790966034,
0.42538896203041077,
0.04150475934147835,
0.517823338508606,
0.14749515056610107,
-0.05272875726222992,
0.37865927815437317,
-0.07507876306772232,
0.05258660763502121,
0.013706390745937824,
-0.012674442492425442,
0.1713647097349167,
0.10542484372854233,
-0.41975146532058716,
-0.5957536101341248,
-0.31860435009002686,
0.13327908515930176,
-0.1404164880514145,
0.16009151935577393,
0.4751749336719513,
0.13904868066310883,
0.07282308489084244,
-0.027766158804297447,
0.3243483901023865,
-0.29523971676826477,
-0.578493595123291,
0.34275057911872864,
-0.42625951766967773,
-0.39998507499694824,
0.051777783781290054,
0.23373757302761078,
0.1585312783718109,
-0.13686373829841614,
-0.4911375641822815,
-0.29129984974861145,
-0.021032029762864113,
-0.20825208723545074,
-0.14088864624500275,
0.034251514822244644,
-0.081787109375,
-0.1706446260213852,
-0.08072171360254288,
0.052855268120765686,
-0.21539564430713654,
0.020766014233231544,
-0.18977995216846466,
0.10595531016588211,
0.0540597066283226,
0.580053448677063,
-0.2069244682788849,
0.4104653000831604,
0.262797474861145,
-0.09994090348482132,
0.43047305941581726,
-0.1017872616648674,
0.29820674657821655,
-0.03379281610250473,
-0.5136102437973022,
-0.03903919830918312,
-0.024887001141905785,
-0.04935907945036888,
0.24670164287090302,
0.11831137537956238,
-0.17501001060009003,
-0.40237152576446533,
-0.1823296993970871,
-0.4465429186820984,
-0.1094004362821579,
-0.0297661405056715,
0.11023642867803574,
0.06838664412498474,
0.03377164527773857,
0.11739955097436905,
-0.15625622868537903,
-0.028626946732401848,
0.02339094504714012,
0.34780818223953247,
-0.03887943923473358,
0.1180441752076149,
0.006738738156855106,
-0.09217558056116104,
-0.43141868710517883,
0.334654301404953,
-0.17446006834506989,
0.4283646047115326,
-0.19772809743881226,
0.076753169298172,
-0.06717099994421005,
-0.0039034506771713495,
0.6058323979377747,
-0.2651655673980713,
0.11586444824934006,
0.09651879966259003,
0.010437834076583385,
-0.30427059531211853,
-0.09392139315605164,
-0.032578371465206146,
0.24870441854000092,
0.16576611995697021,
0.4472005367279053,
-0.07857001572847366,
-0.16756097972393036,
0.3270869851112366,
0.25485101342201233,
-0.13908441364765167,
-0.32141295075416565,
-0.14267976582050323,
-0.3935248851776123,
-0.22811292111873627,
-0.22428689897060394,
-0.3400646150112152,
0.3046943247318268,
-0.034138038754463196,
-0.16921952366828918,
0.06572646647691727,
-0.09413854032754898,
0.1747606247663498,
0.07752750813961029,
0.13451644778251648,
0.09457381069660187,
0.11386069655418396,
0.3893183767795563,
0.051472947001457214,
0.19698558747768402,
0.6876189112663269,
-0.17472930252552032,
-0.28180399537086487,
0.0031068858224898577,
0.26535898447036743,
0.12662993371486664,
0.2776084244251251,
-0.21346977353096008,
-0.11072660982608795,
0.1917884200811386,
0.19745796918869019,
-0.0059064654633402824,
0.28092122077941895,
0.378507137298584,
0.09109920263290405,
-0.5953509211540222,
-0.5943171977996826,
0.4862525761127472,
-0.09490972012281418,
0.11619789153337479,
0.18356935679912567,
-0.12010638415813446,
-0.13071632385253906,
0.17530809342861176,
-0.18716762959957123,
0.7539352178573608,
-0.05162092670798302,
0.022021446377038956,
0.2660261392593384,
0.2764638364315033,
0.4896042048931122,
-0.3141956627368927,
0.017141269519925117,
-0.22134767472743988,
-0.3019843101501465,
-0.09656082838773727,
-0.11286532878875732,
0.12321501225233078,
0.27900147438049316,
0.04115952551364899,
0.452960729598999,
-0.13979826867580414,
-0.007672024425119162,
0.12030038982629776,
0.27587100863456726,
-0.01236597541719675,
-0.09909754246473312,
-0.6099658608436584,
0.2349267154932022,
-0.11527697741985321,
0.28590962290763855,
-0.14560528099536896,
-0.026654234156012535,
0.01893516816198826,
-0.20110724866390228,
-0.12524820864200592,
0.11030696332454681,
-0.5258551836013794,
0.33524593710899353,
-0.1103220134973526,
-0.19214001297950745,
-0.23488032817840576,
0.14027580618858337,
0.2428167164325714,
0.020909838378429413,
-0.18050271272659302,
-0.016430851072072983,
-0.178729847073555,
-0.24221393465995789,
-0.1114940345287323,
0.006605745293200016,
0.3349570035934448,
-0.14434994757175446,
-0.22991377115249634,
0.09646278619766235,
-0.12504637241363525,
-0.3004515469074249,
0.11817304790019989,
-0.0709114745259285,
-0.10809731483459473,
-0.13218651711940765,
-0.24444091320037842,
-0.1845485419034958,
0.08627714216709137,
-0.17466436326503754,
0.13675302267074585,
0.0688006803393364,
-0.08284232020378113,
0.101688914000988,
0.14947648346424103,
-0.29833418130874634,
-0.1130417063832283,
0.3407585322856903,
-0.26778486371040344,
-0.2979254424571991,
0.4692351222038269,
0.35197198390960693,
-0.15862710773944855,
-0.16132217645645142,
0.11765493452548981,
0.23542238771915436,
-0.2757170796394348,
0.028793087229132652,
0.16200236976146698,
0.30084455013275146,
-0.009347377344965935,
0.3109230399131775,
0.30563995242118835,
0.10084761679172516,
0.007333983201533556,
-0.7206998467445374,
-0.32498931884765625,
0.19461877644062042,
0.12716615200042725,
0.2861979603767395,
0.1761263906955719,
0.11474578827619553,
0.02176538296043873,
-0.14196576178073883,
-0.31081998348236084,
0.056390032172203064,
-0.19300299882888794,
-0.22462239861488342,
0.20448747277259827,
-0.19606387615203857,
0.5058370232582092,
0.0961756706237793,
0.23531509935855865,
-0.18623150885105133,
-0.22380872070789337,
-0.2522975504398346,
0.012597295455634594,
0.12506656348705292,
-0.007205305155366659,
-0.15990473330020905,
0.07668455690145493,
-0.09893525391817093,
-0.10716976225376129,
-0.10151183605194092,
0.19095481932163239,
0.13839571177959442,
0.06878098100423813,
-0.07874584197998047,
0.10012514144182205,
0.03010839968919754,
-0.19079694151878357,
0.028508225455880165,
-0.02513468824326992,
0.3009043335914612,
0.2265722155570984,
0.06183522567152977,
0.024157607927918434,
-0.05330638214945793,
-0.07461787760257721,
-0.1121780127286911,
-0.04140649735927582,
-0.07796362042427063,
0.3595578074455261,
-0.3970215916633606,
-0.027573002502322197,
0.28107017278671265,
0.4986264705657959,
0.3485291004180908,
-0.3341696858406067,
0.1404312252998352,
0.09825072437524796,
0.20083607733249664,
-0.24180537462234497,
-0.13203735649585724,
0.1866646409034729,
-0.031839389353990555,
0.03097672015428543,
0.12332747876644135,
-0.05814037099480629,
0.05055662989616394,
-0.23284408450126648,
0.05670931935310364,
0.5290334224700928,
0.09246090799570084,
0.22493162751197815,
0.130848228931427,
-0.018566392362117767,
0.06692206859588623,
0.06500107049942017,
0.0360548160970211,
0.12290973216295242,
0.29205912351608276,
-0.34958136081695557,
0.1462305635213852,
-0.05676022544503212,
0.06840071082115173,
-0.11474625766277313,
-0.6289646029472351,
0.33368176221847534,
0.1689157485961914,
-0.31917881965637207,
0.08784330636262894,
-0.24491262435913086,
0.4515695571899414,
-0.21866492927074432,
0.051713358610868454,
-0.29081207513809204,
0.3248194754123688,
0.05354991927742958,
-0.06190398335456848,
0.11665328592061996,
-0.2613925337791443,
-0.12228914350271225,
-0.024196306243538857,
0.05928691104054451,
-0.33784380555152893,
0.2547750771045685,
0.1873704344034195,
-0.1702093929052353,
-0.25051620602607727,
-0.05147352069616318,
0.20038902759552002,
-0.02789117954671383,
-0.10703574120998383,
0.3322902023792267,
0.313965380191803,
-0.10759731382131577,
-0.005260290112346411,
0.20781831443309784,
0.5430834889411926,
0.36382248997688293,
0.05988190323114395,
0.2568228244781494,
0.11453904956579208,
-0.13745267689228058,
0.06761494278907776,
0.03229411691427231,
0.2886674404144287,
0.08369125425815582,
0.3812454342842102,
0.21704433858394623,
-0.18020711839199066,
0.16716785728931427,
-0.019858915358781815,
0.1490117311477661,
-0.22099998593330383,
0.3357284665107727,
-0.0727917030453682,
0.03644641861319542,
-0.3704918324947357,
0.0609770342707634,
-0.6276515126228333,
-0.0764102190732956,
0.45937708020210266,
-0.01120233815163374,
0.009491429664194584,
-0.06973233819007874,
0.08088760077953339,
-0.10900328308343887,
0.713092029094696,
0.37308043241500854,
0.40819206833839417,
-0.44813087582588196,
-0.09220980107784271,
-0.5804842710494995,
0.07782530784606934,
-0.023873860016465187,
0.16887860000133514,
0.09095201641321182,
-0.14518897235393524,
0.022686989977955818,
0.2757076025009155,
0.2652721703052521,
0.0849514976143837,
0.15117338299751282,
0.09654349088668823,
-0.17954617738723755,
-0.11537550389766693,
0.022908363491296768,
0.06011645868420601,
-0.037616390734910965,
-0.23774856328964233,
0.05600776523351669,
-0.5345263481140137,
-0.005566381383687258,
-0.004136992618441582,
-0.056389711797237396,
-0.010824780911207199,
-0.07826220989227295,
0.33974647521972656,
0.07795253396034241,
0.7522101402282715,
0.006126693449914455,
-0.12574352324008942,
-0.39828866720199585,
-0.3299314081668854,
-0.12806005775928497,
0.14618682861328125,
-0.031772203743457794,
0.23516294360160828,
-0.10757314413785934,
-0.3375990390777588,
-0.3766070306301117,
0.1866876184940338,
0.049685679376125336,
-0.22551830112934113,
-0.1647074669599533,
0.05244824290275574,
0.0788077861070633,
0.00788083579391241,
0.1963626891374588,
0.09204848110675812,
-0.0348258912563324,
0.3125106990337372,
-0.10615725815296173,
-0.35995596647262573,
0.6798825263977051,
-0.22595597803592682,
-0.04740490764379501,
-0.10425861179828644,
0.03658904880285263,
0.09119973331689835,
0.08804003149271011,
-0.5794770121574402,
0.19912905991077423,
0.37699490785598755,
0.113466277718544,
-0.43973103165626526,
0.2614191472530365,
-0.07183176279067993,
0.011540079489350319,
0.03498830646276474,
0.13892114162445068,
0.03210311383008957,
-0.2739153504371643,
-0.024995489045977592,
-0.15673115849494934
] |
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.17262069880962372,
-0.08458222448825836,
-0.09733746200799942,
0.1288861483335495,
0.4222559928894043,
0.20194454491138458,
0.3426592946052551,
0.062195200473070145,
-0.057558659464120865,
0.004357544705271721,
-0.1423119455575943,
0.08249589055776596,
-0.06606011092662811,
0.2489195168018341,
0.11230878531932831,
-0.12542155385017395,
-0.0808454304933548,
-0.11463022977113724,
-0.22911693155765533,
0.0067152781412005424,
-0.20981016755104065,
0.14409378170967102,
-0.20964893698692322,
0.04321177676320076,
-0.4213048219680786,
-0.1652374118566513,
0.08612240105867386,
0.35553839802742004,
-0.03017209842801094,
-0.2586037814617157,
0.37103477120399475,
0.013673114590346813,
0.05071521922945976,
0.406772643327713,
-0.000110941196908243,
0.2821541130542755,
0.42149287462234497,
-0.007743551395833492,
-0.4700692594051361,
-0.41198766231536865,
0.028617534786462784,
-0.25242677330970764,
0.20361192524433136,
-0.12158285081386566,
-0.08969444781541824,
-0.09933535754680634,
-0.04851397126913071,
-0.2351500689983368,
0.4430740475654602,
0.42446836829185486,
0.26970914006233215,
0.27369678020477295,
0.3110579252243042,
-0.09482360631227493,
-0.3082546591758728,
-0.22429151833057404,
0.043680936098098755,
0.5262345671653748,
-0.30415472388267517,
-0.05500207096338272,
0.23694980144500732,
0.18526889383792877,
-0.11026409268379211,
0.039429161697626114,
0.10279257595539093,
0.03683972731232643,
-0.08111803978681564,
-0.3631625175476074,
0.016723638400435448,
0.07219387590885162,
0.24345357716083527,
-0.2260051965713501,
-0.4658712148666382,
-0.16389364004135132,
0.03046916425228119,
-0.3523123860359192,
0.20596472918987274,
0.07249463349580765,
-0.13103802502155304,
0.1562270224094391,
-0.40813392400741577,
-0.1662256270647049,
-0.2331792563199997,
0.47679927945137024,
-0.08346922695636749,
-0.06916534155607224,
-0.10134581476449966,
0.1568792164325714,
0.2081460952758789,
-0.014765377156436443,
0.24560610949993134,
0.01639632135629654,
0.33045879006385803,
0.21354350447654724,
-0.4810214042663574,
0.11584050953388214,
0.016374634578824043,
0.13958978652954102,
0.13585905730724335,
0.23614570498466492,
0.0839766189455986,
-0.05708594247698784,
-0.12385672330856323,
0.08515238761901855,
0.06063329428434372,
0.24538321793079376,
0.00893695279955864,
0.13872648775577545,
0.18724791705608368,
0.3058454394340515,
-0.012289674952626228,
0.03487186133861542,
-0.13719189167022705,
-0.2628459334373474,
-0.08476053178310394,
0.12667277455329895,
0.467296302318573,
-0.06681480258703232,
-0.14578032493591309,
0.22866623103618622,
-0.24972020089626312,
-0.07731279730796814,
0.12552909553050995,
0.5078198313713074,
-0.24598661065101624,
0.10307841747999191,
-0.09110596030950546,
0.24431131780147552,
-0.09848152101039886,
0.028140706941485405,
-0.2782627046108246,
0.15831728279590607,
-0.14690092206001282,
0.1858583241701126,
0.42093828320503235,
-0.4283131957054138,
0.3650217354297638,
-0.08279520273208618,
0.13289399445056915,
-0.265125572681427,
0.07276175171136856,
-0.0731365829706192,
-0.2295968234539032,
0.3315567970275879,
-0.01284829992800951,
0.18786056339740753,
0.32552748918533325,
0.21989955008029938,
-0.008620471693575382,
-0.09329663962125778,
-0.2572564482688904,
-0.5359479784965515,
0.2843952775001526,
0.23464980721473694,
-0.13258175551891327,
-0.23776689171791077,
-0.10398455709218979,
-0.07018804550170898,
-0.08551342785358429,
0.04999091476202011,
-0.2254381775856018,
-0.07588821649551392,
-0.00010202461999142542,
-0.18517398834228516,
0.45798546075820923,
0.4795648455619812,
-0.3562643527984619,
-0.13188329339027405,
-0.08891984820365906,
-0.19939106702804565,
0.10227569192647934,
0.250548779964447,
-0.21025577187538147,
0.267824649810791,
-0.03006298653781414,
-0.2001935839653015,
0.3244524896144867,
-0.2567800283432007,
-0.4303722083568573,
0.22959798574447632,
-0.14158383011817932,
0.07721977680921555,
-0.15979427099227905,
-0.019827786833047867,
-0.23004406690597534,
0.09766857326030731,
0.22241345047950745,
0.45447567105293274,
-0.22194136679172516,
-0.0075083267875015736,
-0.07613692432641983,
-0.28875792026519775,
0.1971726268529892,
0.34950873255729675,
0.1905546486377716,
0.08371218293905258,
0.11229036003351212,
-0.12296734750270844,
0.1389331817626953,
0.07927219569683075,
-0.1288711279630661,
0.22225980460643768,
-0.07304421812295914,
0.06009707599878311,
0.005793769843876362,
0.1931328922510147,
-0.4456617534160614,
0.21716174483299255,
0.2575109004974365,
0.20543895661830902,
-0.15917366743087769,
0.07180064916610718,
-0.3314305543899536,
0.06447815895080566,
-0.32763123512268066,
-0.10173209011554718,
0.1681317239999771,
0.1100919172167778,
0.11499106138944626,
0.14874128997325897,
-0.3477530777454376,
0.585390031337738,
-0.28072652220726013,
0.1544782668352127,
-0.3642595410346985,
0.3336735665798187,
-0.1378077268600464,
0.020809274166822433,
0.0532529316842556,
0.19486890733242035,
0.22709539532661438,
-0.21248048543930054,
-0.12306980043649673,
0.3350648581981659,
-0.09708833694458008,
0.1396981179714203,
0.10056962817907333,
0.020621629431843758,
0.08872149139642715,
-0.27322253584861755,
-0.007592231500893831,
0.17520852386951447,
-0.048422764986753464,
-0.06365393847227097,
0.22217127680778503,
0.2624586522579193,
-0.08243697136640549,
0.3350193500518799,
0.16534501314163208,
-0.01671675406396389,
0.15577521920204163,
0.08227856457233429,
-0.07257554680109024,
-0.08043781667947769,
0.3488464057445526,
-0.28236353397369385,
0.49145302176475525,
-0.17793600261211395,
-0.18835316598415375,
-0.21429792046546936,
0.10730169713497162,
-0.20607487857341766,
0.03680036589503288,
0.18075895309448242,
-0.15274657309055328,
-0.19591234624385834,
-0.14158251881599426,
0.22858905792236328,
0.38311269879341125,
0.1266685575246811,
0.017403505742549896,
0.3330523371696472,
-0.11242228001356125,
-0.12555478513240814,
0.21396216750144958,
0.16420921683311462,
0.2534163296222687,
0.12569065392017365,
-0.10634095966815948,
0.0876750573515892,
-0.3335898220539093,
-0.29772618412971497,
0.04574931412935257,
0.29409992694854736,
-0.3505646884441376,
-0.02660525031387806,
-0.2348109483718872,
-0.10758429020643234,
0.041000716388225555,
-0.49585115909576416,
-0.18313035368919373,
-0.44780924916267395,
-0.16305004060268402,
-0.02450845204293728,
0.10010901838541031,
0.19134411215782166,
-0.1383024901151657,
0.2042524665594101,
0.2681008577346802,
-0.17570725083351135,
-0.19902518391609192,
-0.14131581783294678,
-0.12220615893602371,
0.042546939104795456,
0.190982848405838,
-0.24977903068065643,
0.26150888204574585,
-0.12377609312534332,
-0.19311174750328064,
-0.13389764726161957,
-0.0432528555393219,
0.044891588389873505,
-0.08075837790966034,
0.42538896203041077,
0.04150475934147835,
0.517823338508606,
0.14749515056610107,
-0.05272875726222992,
0.37865927815437317,
-0.07507876306772232,
0.05258660763502121,
0.013706390745937824,
-0.012674442492425442,
0.1713647097349167,
0.10542484372854233,
-0.41975146532058716,
-0.5957536101341248,
-0.31860435009002686,
0.13327908515930176,
-0.1404164880514145,
0.16009151935577393,
0.4751749336719513,
0.13904868066310883,
0.07282308489084244,
-0.027766158804297447,
0.3243483901023865,
-0.29523971676826477,
-0.578493595123291,
0.34275057911872864,
-0.42625951766967773,
-0.39998507499694824,
0.051777783781290054,
0.23373757302761078,
0.1585312783718109,
-0.13686373829841614,
-0.4911375641822815,
-0.29129984974861145,
-0.021032029762864113,
-0.20825208723545074,
-0.14088864624500275,
0.034251514822244644,
-0.081787109375,
-0.1706446260213852,
-0.08072171360254288,
0.052855268120765686,
-0.21539564430713654,
0.020766014233231544,
-0.18977995216846466,
0.10595531016588211,
0.0540597066283226,
0.580053448677063,
-0.2069244682788849,
0.4104653000831604,
0.262797474861145,
-0.09994090348482132,
0.43047305941581726,
-0.1017872616648674,
0.29820674657821655,
-0.03379281610250473,
-0.5136102437973022,
-0.03903919830918312,
-0.024887001141905785,
-0.04935907945036888,
0.24670164287090302,
0.11831137537956238,
-0.17501001060009003,
-0.40237152576446533,
-0.1823296993970871,
-0.4465429186820984,
-0.1094004362821579,
-0.0297661405056715,
0.11023642867803574,
0.06838664412498474,
0.03377164527773857,
0.11739955097436905,
-0.15625622868537903,
-0.028626946732401848,
0.02339094504714012,
0.34780818223953247,
-0.03887943923473358,
0.1180441752076149,
0.006738738156855106,
-0.09217558056116104,
-0.43141868710517883,
0.334654301404953,
-0.17446006834506989,
0.4283646047115326,
-0.19772809743881226,
0.076753169298172,
-0.06717099994421005,
-0.0039034506771713495,
0.6058323979377747,
-0.2651655673980713,
0.11586444824934006,
0.09651879966259003,
0.010437834076583385,
-0.30427059531211853,
-0.09392139315605164,
-0.032578371465206146,
0.24870441854000092,
0.16576611995697021,
0.4472005367279053,
-0.07857001572847366,
-0.16756097972393036,
0.3270869851112366,
0.25485101342201233,
-0.13908441364765167,
-0.32141295075416565,
-0.14267976582050323,
-0.3935248851776123,
-0.22811292111873627,
-0.22428689897060394,
-0.3400646150112152,
0.3046943247318268,
-0.034138038754463196,
-0.16921952366828918,
0.06572646647691727,
-0.09413854032754898,
0.1747606247663498,
0.07752750813961029,
0.13451644778251648,
0.09457381069660187,
0.11386069655418396,
0.3893183767795563,
0.051472947001457214,
0.19698558747768402,
0.6876189112663269,
-0.17472930252552032,
-0.28180399537086487,
0.0031068858224898577,
0.26535898447036743,
0.12662993371486664,
0.2776084244251251,
-0.21346977353096008,
-0.11072660982608795,
0.1917884200811386,
0.19745796918869019,
-0.0059064654633402824,
0.28092122077941895,
0.378507137298584,
0.09109920263290405,
-0.5953509211540222,
-0.5943171977996826,
0.4862525761127472,
-0.09490972012281418,
0.11619789153337479,
0.18356935679912567,
-0.12010638415813446,
-0.13071632385253906,
0.17530809342861176,
-0.18716762959957123,
0.7539352178573608,
-0.05162092670798302,
0.022021446377038956,
0.2660261392593384,
0.2764638364315033,
0.4896042048931122,
-0.3141956627368927,
0.017141269519925117,
-0.22134767472743988,
-0.3019843101501465,
-0.09656082838773727,
-0.11286532878875732,
0.12321501225233078,
0.27900147438049316,
0.04115952551364899,
0.452960729598999,
-0.13979826867580414,
-0.007672024425119162,
0.12030038982629776,
0.27587100863456726,
-0.01236597541719675,
-0.09909754246473312,
-0.6099658608436584,
0.2349267154932022,
-0.11527697741985321,
0.28590962290763855,
-0.14560528099536896,
-0.026654234156012535,
0.01893516816198826,
-0.20110724866390228,
-0.12524820864200592,
0.11030696332454681,
-0.5258551836013794,
0.33524593710899353,
-0.1103220134973526,
-0.19214001297950745,
-0.23488032817840576,
0.14027580618858337,
0.2428167164325714,
0.020909838378429413,
-0.18050271272659302,
-0.016430851072072983,
-0.178729847073555,
-0.24221393465995789,
-0.1114940345287323,
0.006605745293200016,
0.3349570035934448,
-0.14434994757175446,
-0.22991377115249634,
0.09646278619766235,
-0.12504637241363525,
-0.3004515469074249,
0.11817304790019989,
-0.0709114745259285,
-0.10809731483459473,
-0.13218651711940765,
-0.24444091320037842,
-0.1845485419034958,
0.08627714216709137,
-0.17466436326503754,
0.13675302267074585,
0.0688006803393364,
-0.08284232020378113,
0.101688914000988,
0.14947648346424103,
-0.29833418130874634,
-0.1130417063832283,
0.3407585322856903,
-0.26778486371040344,
-0.2979254424571991,
0.4692351222038269,
0.35197198390960693,
-0.15862710773944855,
-0.16132217645645142,
0.11765493452548981,
0.23542238771915436,
-0.2757170796394348,
0.028793087229132652,
0.16200236976146698,
0.30084455013275146,
-0.009347377344965935,
0.3109230399131775,
0.30563995242118835,
0.10084761679172516,
0.007333983201533556,
-0.7206998467445374,
-0.32498931884765625,
0.19461877644062042,
0.12716615200042725,
0.2861979603767395,
0.1761263906955719,
0.11474578827619553,
0.02176538296043873,
-0.14196576178073883,
-0.31081998348236084,
0.056390032172203064,
-0.19300299882888794,
-0.22462239861488342,
0.20448747277259827,
-0.19606387615203857,
0.5058370232582092,
0.0961756706237793,
0.23531509935855865,
-0.18623150885105133,
-0.22380872070789337,
-0.2522975504398346,
0.012597295455634594,
0.12506656348705292,
-0.007205305155366659,
-0.15990473330020905,
0.07668455690145493,
-0.09893525391817093,
-0.10716976225376129,
-0.10151183605194092,
0.19095481932163239,
0.13839571177959442,
0.06878098100423813,
-0.07874584197998047,
0.10012514144182205,
0.03010839968919754,
-0.19079694151878357,
0.028508225455880165,
-0.02513468824326992,
0.3009043335914612,
0.2265722155570984,
0.06183522567152977,
0.024157607927918434,
-0.05330638214945793,
-0.07461787760257721,
-0.1121780127286911,
-0.04140649735927582,
-0.07796362042427063,
0.3595578074455261,
-0.3970215916633606,
-0.027573002502322197,
0.28107017278671265,
0.4986264705657959,
0.3485291004180908,
-0.3341696858406067,
0.1404312252998352,
0.09825072437524796,
0.20083607733249664,
-0.24180537462234497,
-0.13203735649585724,
0.1866646409034729,
-0.031839389353990555,
0.03097672015428543,
0.12332747876644135,
-0.05814037099480629,
0.05055662989616394,
-0.23284408450126648,
0.05670931935310364,
0.5290334224700928,
0.09246090799570084,
0.22493162751197815,
0.130848228931427,
-0.018566392362117767,
0.06692206859588623,
0.06500107049942017,
0.0360548160970211,
0.12290973216295242,
0.29205912351608276,
-0.34958136081695557,
0.1462305635213852,
-0.05676022544503212,
0.06840071082115173,
-0.11474625766277313,
-0.6289646029472351,
0.33368176221847534,
0.1689157485961914,
-0.31917881965637207,
0.08784330636262894,
-0.24491262435913086,
0.4515695571899414,
-0.21866492927074432,
0.051713358610868454,
-0.29081207513809204,
0.3248194754123688,
0.05354991927742958,
-0.06190398335456848,
0.11665328592061996,
-0.2613925337791443,
-0.12228914350271225,
-0.024196306243538857,
0.05928691104054451,
-0.33784380555152893,
0.2547750771045685,
0.1873704344034195,
-0.1702093929052353,
-0.25051620602607727,
-0.05147352069616318,
0.20038902759552002,
-0.02789117954671383,
-0.10703574120998383,
0.3322902023792267,
0.313965380191803,
-0.10759731382131577,
-0.005260290112346411,
0.20781831443309784,
0.5430834889411926,
0.36382248997688293,
0.05988190323114395,
0.2568228244781494,
0.11453904956579208,
-0.13745267689228058,
0.06761494278907776,
0.03229411691427231,
0.2886674404144287,
0.08369125425815582,
0.3812454342842102,
0.21704433858394623,
-0.18020711839199066,
0.16716785728931427,
-0.019858915358781815,
0.1490117311477661,
-0.22099998593330383,
0.3357284665107727,
-0.0727917030453682,
0.03644641861319542,
-0.3704918324947357,
0.0609770342707634,
-0.6276515126228333,
-0.0764102190732956,
0.45937708020210266,
-0.01120233815163374,
0.009491429664194584,
-0.06973233819007874,
0.08088760077953339,
-0.10900328308343887,
0.713092029094696,
0.37308043241500854,
0.40819206833839417,
-0.44813087582588196,
-0.09220980107784271,
-0.5804842710494995,
0.07782530784606934,
-0.023873860016465187,
0.16887860000133514,
0.09095201641321182,
-0.14518897235393524,
0.022686989977955818,
0.2757076025009155,
0.2652721703052521,
0.0849514976143837,
0.15117338299751282,
0.09654349088668823,
-0.17954617738723755,
-0.11537550389766693,
0.022908363491296768,
0.06011645868420601,
-0.037616390734910965,
-0.23774856328964233,
0.05600776523351669,
-0.5345263481140137,
-0.005566381383687258,
-0.004136992618441582,
-0.056389711797237396,
-0.010824780911207199,
-0.07826220989227295,
0.33974647521972656,
0.07795253396034241,
0.7522101402282715,
0.006126693449914455,
-0.12574352324008942,
-0.39828866720199585,
-0.3299314081668854,
-0.12806005775928497,
0.14618682861328125,
-0.031772203743457794,
0.23516294360160828,
-0.10757314413785934,
-0.3375990390777588,
-0.3766070306301117,
0.1866876184940338,
0.049685679376125336,
-0.22551830112934113,
-0.1647074669599533,
0.05244824290275574,
0.0788077861070633,
0.00788083579391241,
0.1963626891374588,
0.09204848110675812,
-0.0348258912563324,
0.3125106990337372,
-0.10615725815296173,
-0.35995596647262573,
0.6798825263977051,
-0.22595597803592682,
-0.04740490764379501,
-0.10425861179828644,
0.03658904880285263,
0.09119973331689835,
0.08804003149271011,
-0.5794770121574402,
0.19912905991077423,
0.37699490785598755,
0.113466277718544,
-0.43973103165626526,
0.2614191472530365,
-0.07183176279067993,
0.011540079489350319,
0.03498830646276474,
0.13892114162445068,
0.03210311383008957,
-0.2739153504371643,
-0.024995489045977592,
-0.15673115849494934
] |
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.17262069880962372,
-0.08458222448825836,
-0.09733746200799942,
0.1288861483335495,
0.4222559928894043,
0.20194454491138458,
0.3426592946052551,
0.062195200473070145,
-0.057558659464120865,
0.004357544705271721,
-0.1423119455575943,
0.08249589055776596,
-0.06606011092662811,
0.2489195168018341,
0.11230878531932831,
-0.12542155385017395,
-0.0808454304933548,
-0.11463022977113724,
-0.22911693155765533,
0.0067152781412005424,
-0.20981016755104065,
0.14409378170967102,
-0.20964893698692322,
0.04321177676320076,
-0.4213048219680786,
-0.1652374118566513,
0.08612240105867386,
0.35553839802742004,
-0.03017209842801094,
-0.2586037814617157,
0.37103477120399475,
0.013673114590346813,
0.05071521922945976,
0.406772643327713,
-0.000110941196908243,
0.2821541130542755,
0.42149287462234497,
-0.007743551395833492,
-0.4700692594051361,
-0.41198766231536865,
0.028617534786462784,
-0.25242677330970764,
0.20361192524433136,
-0.12158285081386566,
-0.08969444781541824,
-0.09933535754680634,
-0.04851397126913071,
-0.2351500689983368,
0.4430740475654602,
0.42446836829185486,
0.26970914006233215,
0.27369678020477295,
0.3110579252243042,
-0.09482360631227493,
-0.3082546591758728,
-0.22429151833057404,
0.043680936098098755,
0.5262345671653748,
-0.30415472388267517,
-0.05500207096338272,
0.23694980144500732,
0.18526889383792877,
-0.11026409268379211,
0.039429161697626114,
0.10279257595539093,
0.03683972731232643,
-0.08111803978681564,
-0.3631625175476074,
0.016723638400435448,
0.07219387590885162,
0.24345357716083527,
-0.2260051965713501,
-0.4658712148666382,
-0.16389364004135132,
0.03046916425228119,
-0.3523123860359192,
0.20596472918987274,
0.07249463349580765,
-0.13103802502155304,
0.1562270224094391,
-0.40813392400741577,
-0.1662256270647049,
-0.2331792563199997,
0.47679927945137024,
-0.08346922695636749,
-0.06916534155607224,
-0.10134581476449966,
0.1568792164325714,
0.2081460952758789,
-0.014765377156436443,
0.24560610949993134,
0.01639632135629654,
0.33045879006385803,
0.21354350447654724,
-0.4810214042663574,
0.11584050953388214,
0.016374634578824043,
0.13958978652954102,
0.13585905730724335,
0.23614570498466492,
0.0839766189455986,
-0.05708594247698784,
-0.12385672330856323,
0.08515238761901855,
0.06063329428434372,
0.24538321793079376,
0.00893695279955864,
0.13872648775577545,
0.18724791705608368,
0.3058454394340515,
-0.012289674952626228,
0.03487186133861542,
-0.13719189167022705,
-0.2628459334373474,
-0.08476053178310394,
0.12667277455329895,
0.467296302318573,
-0.06681480258703232,
-0.14578032493591309,
0.22866623103618622,
-0.24972020089626312,
-0.07731279730796814,
0.12552909553050995,
0.5078198313713074,
-0.24598661065101624,
0.10307841747999191,
-0.09110596030950546,
0.24431131780147552,
-0.09848152101039886,
0.028140706941485405,
-0.2782627046108246,
0.15831728279590607,
-0.14690092206001282,
0.1858583241701126,
0.42093828320503235,
-0.4283131957054138,
0.3650217354297638,
-0.08279520273208618,
0.13289399445056915,
-0.265125572681427,
0.07276175171136856,
-0.0731365829706192,
-0.2295968234539032,
0.3315567970275879,
-0.01284829992800951,
0.18786056339740753,
0.32552748918533325,
0.21989955008029938,
-0.008620471693575382,
-0.09329663962125778,
-0.2572564482688904,
-0.5359479784965515,
0.2843952775001526,
0.23464980721473694,
-0.13258175551891327,
-0.23776689171791077,
-0.10398455709218979,
-0.07018804550170898,
-0.08551342785358429,
0.04999091476202011,
-0.2254381775856018,
-0.07588821649551392,
-0.00010202461999142542,
-0.18517398834228516,
0.45798546075820923,
0.4795648455619812,
-0.3562643527984619,
-0.13188329339027405,
-0.08891984820365906,
-0.19939106702804565,
0.10227569192647934,
0.250548779964447,
-0.21025577187538147,
0.267824649810791,
-0.03006298653781414,
-0.2001935839653015,
0.3244524896144867,
-0.2567800283432007,
-0.4303722083568573,
0.22959798574447632,
-0.14158383011817932,
0.07721977680921555,
-0.15979427099227905,
-0.019827786833047867,
-0.23004406690597534,
0.09766857326030731,
0.22241345047950745,
0.45447567105293274,
-0.22194136679172516,
-0.0075083267875015736,
-0.07613692432641983,
-0.28875792026519775,
0.1971726268529892,
0.34950873255729675,
0.1905546486377716,
0.08371218293905258,
0.11229036003351212,
-0.12296734750270844,
0.1389331817626953,
0.07927219569683075,
-0.1288711279630661,
0.22225980460643768,
-0.07304421812295914,
0.06009707599878311,
0.005793769843876362,
0.1931328922510147,
-0.4456617534160614,
0.21716174483299255,
0.2575109004974365,
0.20543895661830902,
-0.15917366743087769,
0.07180064916610718,
-0.3314305543899536,
0.06447815895080566,
-0.32763123512268066,
-0.10173209011554718,
0.1681317239999771,
0.1100919172167778,
0.11499106138944626,
0.14874128997325897,
-0.3477530777454376,
0.585390031337738,
-0.28072652220726013,
0.1544782668352127,
-0.3642595410346985,
0.3336735665798187,
-0.1378077268600464,
0.020809274166822433,
0.0532529316842556,
0.19486890733242035,
0.22709539532661438,
-0.21248048543930054,
-0.12306980043649673,
0.3350648581981659,
-0.09708833694458008,
0.1396981179714203,
0.10056962817907333,
0.020621629431843758,
0.08872149139642715,
-0.27322253584861755,
-0.007592231500893831,
0.17520852386951447,
-0.048422764986753464,
-0.06365393847227097,
0.22217127680778503,
0.2624586522579193,
-0.08243697136640549,
0.3350193500518799,
0.16534501314163208,
-0.01671675406396389,
0.15577521920204163,
0.08227856457233429,
-0.07257554680109024,
-0.08043781667947769,
0.3488464057445526,
-0.28236353397369385,
0.49145302176475525,
-0.17793600261211395,
-0.18835316598415375,
-0.21429792046546936,
0.10730169713497162,
-0.20607487857341766,
0.03680036589503288,
0.18075895309448242,
-0.15274657309055328,
-0.19591234624385834,
-0.14158251881599426,
0.22858905792236328,
0.38311269879341125,
0.1266685575246811,
0.017403505742549896,
0.3330523371696472,
-0.11242228001356125,
-0.12555478513240814,
0.21396216750144958,
0.16420921683311462,
0.2534163296222687,
0.12569065392017365,
-0.10634095966815948,
0.0876750573515892,
-0.3335898220539093,
-0.29772618412971497,
0.04574931412935257,
0.29409992694854736,
-0.3505646884441376,
-0.02660525031387806,
-0.2348109483718872,
-0.10758429020643234,
0.041000716388225555,
-0.49585115909576416,
-0.18313035368919373,
-0.44780924916267395,
-0.16305004060268402,
-0.02450845204293728,
0.10010901838541031,
0.19134411215782166,
-0.1383024901151657,
0.2042524665594101,
0.2681008577346802,
-0.17570725083351135,
-0.19902518391609192,
-0.14131581783294678,
-0.12220615893602371,
0.042546939104795456,
0.190982848405838,
-0.24977903068065643,
0.26150888204574585,
-0.12377609312534332,
-0.19311174750328064,
-0.13389764726161957,
-0.0432528555393219,
0.044891588389873505,
-0.08075837790966034,
0.42538896203041077,
0.04150475934147835,
0.517823338508606,
0.14749515056610107,
-0.05272875726222992,
0.37865927815437317,
-0.07507876306772232,
0.05258660763502121,
0.013706390745937824,
-0.012674442492425442,
0.1713647097349167,
0.10542484372854233,
-0.41975146532058716,
-0.5957536101341248,
-0.31860435009002686,
0.13327908515930176,
-0.1404164880514145,
0.16009151935577393,
0.4751749336719513,
0.13904868066310883,
0.07282308489084244,
-0.027766158804297447,
0.3243483901023865,
-0.29523971676826477,
-0.578493595123291,
0.34275057911872864,
-0.42625951766967773,
-0.39998507499694824,
0.051777783781290054,
0.23373757302761078,
0.1585312783718109,
-0.13686373829841614,
-0.4911375641822815,
-0.29129984974861145,
-0.021032029762864113,
-0.20825208723545074,
-0.14088864624500275,
0.034251514822244644,
-0.081787109375,
-0.1706446260213852,
-0.08072171360254288,
0.052855268120765686,
-0.21539564430713654,
0.020766014233231544,
-0.18977995216846466,
0.10595531016588211,
0.0540597066283226,
0.580053448677063,
-0.2069244682788849,
0.4104653000831604,
0.262797474861145,
-0.09994090348482132,
0.43047305941581726,
-0.1017872616648674,
0.29820674657821655,
-0.03379281610250473,
-0.5136102437973022,
-0.03903919830918312,
-0.024887001141905785,
-0.04935907945036888,
0.24670164287090302,
0.11831137537956238,
-0.17501001060009003,
-0.40237152576446533,
-0.1823296993970871,
-0.4465429186820984,
-0.1094004362821579,
-0.0297661405056715,
0.11023642867803574,
0.06838664412498474,
0.03377164527773857,
0.11739955097436905,
-0.15625622868537903,
-0.028626946732401848,
0.02339094504714012,
0.34780818223953247,
-0.03887943923473358,
0.1180441752076149,
0.006738738156855106,
-0.09217558056116104,
-0.43141868710517883,
0.334654301404953,
-0.17446006834506989,
0.4283646047115326,
-0.19772809743881226,
0.076753169298172,
-0.06717099994421005,
-0.0039034506771713495,
0.6058323979377747,
-0.2651655673980713,
0.11586444824934006,
0.09651879966259003,
0.010437834076583385,
-0.30427059531211853,
-0.09392139315605164,
-0.032578371465206146,
0.24870441854000092,
0.16576611995697021,
0.4472005367279053,
-0.07857001572847366,
-0.16756097972393036,
0.3270869851112366,
0.25485101342201233,
-0.13908441364765167,
-0.32141295075416565,
-0.14267976582050323,
-0.3935248851776123,
-0.22811292111873627,
-0.22428689897060394,
-0.3400646150112152,
0.3046943247318268,
-0.034138038754463196,
-0.16921952366828918,
0.06572646647691727,
-0.09413854032754898,
0.1747606247663498,
0.07752750813961029,
0.13451644778251648,
0.09457381069660187,
0.11386069655418396,
0.3893183767795563,
0.051472947001457214,
0.19698558747768402,
0.6876189112663269,
-0.17472930252552032,
-0.28180399537086487,
0.0031068858224898577,
0.26535898447036743,
0.12662993371486664,
0.2776084244251251,
-0.21346977353096008,
-0.11072660982608795,
0.1917884200811386,
0.19745796918869019,
-0.0059064654633402824,
0.28092122077941895,
0.378507137298584,
0.09109920263290405,
-0.5953509211540222,
-0.5943171977996826,
0.4862525761127472,
-0.09490972012281418,
0.11619789153337479,
0.18356935679912567,
-0.12010638415813446,
-0.13071632385253906,
0.17530809342861176,
-0.18716762959957123,
0.7539352178573608,
-0.05162092670798302,
0.022021446377038956,
0.2660261392593384,
0.2764638364315033,
0.4896042048931122,
-0.3141956627368927,
0.017141269519925117,
-0.22134767472743988,
-0.3019843101501465,
-0.09656082838773727,
-0.11286532878875732,
0.12321501225233078,
0.27900147438049316,
0.04115952551364899,
0.452960729598999,
-0.13979826867580414,
-0.007672024425119162,
0.12030038982629776,
0.27587100863456726,
-0.01236597541719675,
-0.09909754246473312,
-0.6099658608436584,
0.2349267154932022,
-0.11527697741985321,
0.28590962290763855,
-0.14560528099536896,
-0.026654234156012535,
0.01893516816198826,
-0.20110724866390228,
-0.12524820864200592,
0.11030696332454681,
-0.5258551836013794,
0.33524593710899353,
-0.1103220134973526,
-0.19214001297950745,
-0.23488032817840576,
0.14027580618858337,
0.2428167164325714,
0.020909838378429413,
-0.18050271272659302,
-0.016430851072072983,
-0.178729847073555,
-0.24221393465995789,
-0.1114940345287323,
0.006605745293200016,
0.3349570035934448,
-0.14434994757175446,
-0.22991377115249634,
0.09646278619766235,
-0.12504637241363525,
-0.3004515469074249,
0.11817304790019989,
-0.0709114745259285,
-0.10809731483459473,
-0.13218651711940765,
-0.24444091320037842,
-0.1845485419034958,
0.08627714216709137,
-0.17466436326503754,
0.13675302267074585,
0.0688006803393364,
-0.08284232020378113,
0.101688914000988,
0.14947648346424103,
-0.29833418130874634,
-0.1130417063832283,
0.3407585322856903,
-0.26778486371040344,
-0.2979254424571991,
0.4692351222038269,
0.35197198390960693,
-0.15862710773944855,
-0.16132217645645142,
0.11765493452548981,
0.23542238771915436,
-0.2757170796394348,
0.028793087229132652,
0.16200236976146698,
0.30084455013275146,
-0.009347377344965935,
0.3109230399131775,
0.30563995242118835,
0.10084761679172516,
0.007333983201533556,
-0.7206998467445374,
-0.32498931884765625,
0.19461877644062042,
0.12716615200042725,
0.2861979603767395,
0.1761263906955719,
0.11474578827619553,
0.02176538296043873,
-0.14196576178073883,
-0.31081998348236084,
0.056390032172203064,
-0.19300299882888794,
-0.22462239861488342,
0.20448747277259827,
-0.19606387615203857,
0.5058370232582092,
0.0961756706237793,
0.23531509935855865,
-0.18623150885105133,
-0.22380872070789337,
-0.2522975504398346,
0.012597295455634594,
0.12506656348705292,
-0.007205305155366659,
-0.15990473330020905,
0.07668455690145493,
-0.09893525391817093,
-0.10716976225376129,
-0.10151183605194092,
0.19095481932163239,
0.13839571177959442,
0.06878098100423813,
-0.07874584197998047,
0.10012514144182205,
0.03010839968919754,
-0.19079694151878357,
0.028508225455880165,
-0.02513468824326992,
0.3009043335914612,
0.2265722155570984,
0.06183522567152977,
0.024157607927918434,
-0.05330638214945793,
-0.07461787760257721,
-0.1121780127286911,
-0.04140649735927582,
-0.07796362042427063,
0.3595578074455261,
-0.3970215916633606,
-0.027573002502322197,
0.28107017278671265,
0.4986264705657959,
0.3485291004180908,
-0.3341696858406067,
0.1404312252998352,
0.09825072437524796,
0.20083607733249664,
-0.24180537462234497,
-0.13203735649585724,
0.1866646409034729,
-0.031839389353990555,
0.03097672015428543,
0.12332747876644135,
-0.05814037099480629,
0.05055662989616394,
-0.23284408450126648,
0.05670931935310364,
0.5290334224700928,
0.09246090799570084,
0.22493162751197815,
0.130848228931427,
-0.018566392362117767,
0.06692206859588623,
0.06500107049942017,
0.0360548160970211,
0.12290973216295242,
0.29205912351608276,
-0.34958136081695557,
0.1462305635213852,
-0.05676022544503212,
0.06840071082115173,
-0.11474625766277313,
-0.6289646029472351,
0.33368176221847534,
0.1689157485961914,
-0.31917881965637207,
0.08784330636262894,
-0.24491262435913086,
0.4515695571899414,
-0.21866492927074432,
0.051713358610868454,
-0.29081207513809204,
0.3248194754123688,
0.05354991927742958,
-0.06190398335456848,
0.11665328592061996,
-0.2613925337791443,
-0.12228914350271225,
-0.024196306243538857,
0.05928691104054451,
-0.33784380555152893,
0.2547750771045685,
0.1873704344034195,
-0.1702093929052353,
-0.25051620602607727,
-0.05147352069616318,
0.20038902759552002,
-0.02789117954671383,
-0.10703574120998383,
0.3322902023792267,
0.313965380191803,
-0.10759731382131577,
-0.005260290112346411,
0.20781831443309784,
0.5430834889411926,
0.36382248997688293,
0.05988190323114395,
0.2568228244781494,
0.11453904956579208,
-0.13745267689228058,
0.06761494278907776,
0.03229411691427231,
0.2886674404144287,
0.08369125425815582,
0.3812454342842102,
0.21704433858394623,
-0.18020711839199066,
0.16716785728931427,
-0.019858915358781815,
0.1490117311477661,
-0.22099998593330383,
0.3357284665107727,
-0.0727917030453682,
0.03644641861319542,
-0.3704918324947357,
0.0609770342707634,
-0.6276515126228333,
-0.0764102190732956,
0.45937708020210266,
-0.01120233815163374,
0.009491429664194584,
-0.06973233819007874,
0.08088760077953339,
-0.10900328308343887,
0.713092029094696,
0.37308043241500854,
0.40819206833839417,
-0.44813087582588196,
-0.09220980107784271,
-0.5804842710494995,
0.07782530784606934,
-0.023873860016465187,
0.16887860000133514,
0.09095201641321182,
-0.14518897235393524,
0.022686989977955818,
0.2757076025009155,
0.2652721703052521,
0.0849514976143837,
0.15117338299751282,
0.09654349088668823,
-0.17954617738723755,
-0.11537550389766693,
0.022908363491296768,
0.06011645868420601,
-0.037616390734910965,
-0.23774856328964233,
0.05600776523351669,
-0.5345263481140137,
-0.005566381383687258,
-0.004136992618441582,
-0.056389711797237396,
-0.010824780911207199,
-0.07826220989227295,
0.33974647521972656,
0.07795253396034241,
0.7522101402282715,
0.006126693449914455,
-0.12574352324008942,
-0.39828866720199585,
-0.3299314081668854,
-0.12806005775928497,
0.14618682861328125,
-0.031772203743457794,
0.23516294360160828,
-0.10757314413785934,
-0.3375990390777588,
-0.3766070306301117,
0.1866876184940338,
0.049685679376125336,
-0.22551830112934113,
-0.1647074669599533,
0.05244824290275574,
0.0788077861070633,
0.00788083579391241,
0.1963626891374588,
0.09204848110675812,
-0.0348258912563324,
0.3125106990337372,
-0.10615725815296173,
-0.35995596647262573,
0.6798825263977051,
-0.22595597803592682,
-0.04740490764379501,
-0.10425861179828644,
0.03658904880285263,
0.09119973331689835,
0.08804003149271011,
-0.5794770121574402,
0.19912905991077423,
0.37699490785598755,
0.113466277718544,
-0.43973103165626526,
0.2614191472530365,
-0.07183176279067993,
0.011540079489350319,
0.03498830646276474,
0.13892114162445068,
0.03210311383008957,
-0.2739153504371643,
-0.024995489045977592,
-0.15673115849494934
] |
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.17262069880962372,
-0.08458222448825836,
-0.09733746200799942,
0.1288861483335495,
0.4222559928894043,
0.20194454491138458,
0.3426592946052551,
0.062195200473070145,
-0.057558659464120865,
0.004357544705271721,
-0.1423119455575943,
0.08249589055776596,
-0.06606011092662811,
0.2489195168018341,
0.11230878531932831,
-0.12542155385017395,
-0.0808454304933548,
-0.11463022977113724,
-0.22911693155765533,
0.0067152781412005424,
-0.20981016755104065,
0.14409378170967102,
-0.20964893698692322,
0.04321177676320076,
-0.4213048219680786,
-0.1652374118566513,
0.08612240105867386,
0.35553839802742004,
-0.03017209842801094,
-0.2586037814617157,
0.37103477120399475,
0.013673114590346813,
0.05071521922945976,
0.406772643327713,
-0.000110941196908243,
0.2821541130542755,
0.42149287462234497,
-0.007743551395833492,
-0.4700692594051361,
-0.41198766231536865,
0.028617534786462784,
-0.25242677330970764,
0.20361192524433136,
-0.12158285081386566,
-0.08969444781541824,
-0.09933535754680634,
-0.04851397126913071,
-0.2351500689983368,
0.4430740475654602,
0.42446836829185486,
0.26970914006233215,
0.27369678020477295,
0.3110579252243042,
-0.09482360631227493,
-0.3082546591758728,
-0.22429151833057404,
0.043680936098098755,
0.5262345671653748,
-0.30415472388267517,
-0.05500207096338272,
0.23694980144500732,
0.18526889383792877,
-0.11026409268379211,
0.039429161697626114,
0.10279257595539093,
0.03683972731232643,
-0.08111803978681564,
-0.3631625175476074,
0.016723638400435448,
0.07219387590885162,
0.24345357716083527,
-0.2260051965713501,
-0.4658712148666382,
-0.16389364004135132,
0.03046916425228119,
-0.3523123860359192,
0.20596472918987274,
0.07249463349580765,
-0.13103802502155304,
0.1562270224094391,
-0.40813392400741577,
-0.1662256270647049,
-0.2331792563199997,
0.47679927945137024,
-0.08346922695636749,
-0.06916534155607224,
-0.10134581476449966,
0.1568792164325714,
0.2081460952758789,
-0.014765377156436443,
0.24560610949993134,
0.01639632135629654,
0.33045879006385803,
0.21354350447654724,
-0.4810214042663574,
0.11584050953388214,
0.016374634578824043,
0.13958978652954102,
0.13585905730724335,
0.23614570498466492,
0.0839766189455986,
-0.05708594247698784,
-0.12385672330856323,
0.08515238761901855,
0.06063329428434372,
0.24538321793079376,
0.00893695279955864,
0.13872648775577545,
0.18724791705608368,
0.3058454394340515,
-0.012289674952626228,
0.03487186133861542,
-0.13719189167022705,
-0.2628459334373474,
-0.08476053178310394,
0.12667277455329895,
0.467296302318573,
-0.06681480258703232,
-0.14578032493591309,
0.22866623103618622,
-0.24972020089626312,
-0.07731279730796814,
0.12552909553050995,
0.5078198313713074,
-0.24598661065101624,
0.10307841747999191,
-0.09110596030950546,
0.24431131780147552,
-0.09848152101039886,
0.028140706941485405,
-0.2782627046108246,
0.15831728279590607,
-0.14690092206001282,
0.1858583241701126,
0.42093828320503235,
-0.4283131957054138,
0.3650217354297638,
-0.08279520273208618,
0.13289399445056915,
-0.265125572681427,
0.07276175171136856,
-0.0731365829706192,
-0.2295968234539032,
0.3315567970275879,
-0.01284829992800951,
0.18786056339740753,
0.32552748918533325,
0.21989955008029938,
-0.008620471693575382,
-0.09329663962125778,
-0.2572564482688904,
-0.5359479784965515,
0.2843952775001526,
0.23464980721473694,
-0.13258175551891327,
-0.23776689171791077,
-0.10398455709218979,
-0.07018804550170898,
-0.08551342785358429,
0.04999091476202011,
-0.2254381775856018,
-0.07588821649551392,
-0.00010202461999142542,
-0.18517398834228516,
0.45798546075820923,
0.4795648455619812,
-0.3562643527984619,
-0.13188329339027405,
-0.08891984820365906,
-0.19939106702804565,
0.10227569192647934,
0.250548779964447,
-0.21025577187538147,
0.267824649810791,
-0.03006298653781414,
-0.2001935839653015,
0.3244524896144867,
-0.2567800283432007,
-0.4303722083568573,
0.22959798574447632,
-0.14158383011817932,
0.07721977680921555,
-0.15979427099227905,
-0.019827786833047867,
-0.23004406690597534,
0.09766857326030731,
0.22241345047950745,
0.45447567105293274,
-0.22194136679172516,
-0.0075083267875015736,
-0.07613692432641983,
-0.28875792026519775,
0.1971726268529892,
0.34950873255729675,
0.1905546486377716,
0.08371218293905258,
0.11229036003351212,
-0.12296734750270844,
0.1389331817626953,
0.07927219569683075,
-0.1288711279630661,
0.22225980460643768,
-0.07304421812295914,
0.06009707599878311,
0.005793769843876362,
0.1931328922510147,
-0.4456617534160614,
0.21716174483299255,
0.2575109004974365,
0.20543895661830902,
-0.15917366743087769,
0.07180064916610718,
-0.3314305543899536,
0.06447815895080566,
-0.32763123512268066,
-0.10173209011554718,
0.1681317239999771,
0.1100919172167778,
0.11499106138944626,
0.14874128997325897,
-0.3477530777454376,
0.585390031337738,
-0.28072652220726013,
0.1544782668352127,
-0.3642595410346985,
0.3336735665798187,
-0.1378077268600464,
0.020809274166822433,
0.0532529316842556,
0.19486890733242035,
0.22709539532661438,
-0.21248048543930054,
-0.12306980043649673,
0.3350648581981659,
-0.09708833694458008,
0.1396981179714203,
0.10056962817907333,
0.020621629431843758,
0.08872149139642715,
-0.27322253584861755,
-0.007592231500893831,
0.17520852386951447,
-0.048422764986753464,
-0.06365393847227097,
0.22217127680778503,
0.2624586522579193,
-0.08243697136640549,
0.3350193500518799,
0.16534501314163208,
-0.01671675406396389,
0.15577521920204163,
0.08227856457233429,
-0.07257554680109024,
-0.08043781667947769,
0.3488464057445526,
-0.28236353397369385,
0.49145302176475525,
-0.17793600261211395,
-0.18835316598415375,
-0.21429792046546936,
0.10730169713497162,
-0.20607487857341766,
0.03680036589503288,
0.18075895309448242,
-0.15274657309055328,
-0.19591234624385834,
-0.14158251881599426,
0.22858905792236328,
0.38311269879341125,
0.1266685575246811,
0.017403505742549896,
0.3330523371696472,
-0.11242228001356125,
-0.12555478513240814,
0.21396216750144958,
0.16420921683311462,
0.2534163296222687,
0.12569065392017365,
-0.10634095966815948,
0.0876750573515892,
-0.3335898220539093,
-0.29772618412971497,
0.04574931412935257,
0.29409992694854736,
-0.3505646884441376,
-0.02660525031387806,
-0.2348109483718872,
-0.10758429020643234,
0.041000716388225555,
-0.49585115909576416,
-0.18313035368919373,
-0.44780924916267395,
-0.16305004060268402,
-0.02450845204293728,
0.10010901838541031,
0.19134411215782166,
-0.1383024901151657,
0.2042524665594101,
0.2681008577346802,
-0.17570725083351135,
-0.19902518391609192,
-0.14131581783294678,
-0.12220615893602371,
0.042546939104795456,
0.190982848405838,
-0.24977903068065643,
0.26150888204574585,
-0.12377609312534332,
-0.19311174750328064,
-0.13389764726161957,
-0.0432528555393219,
0.044891588389873505,
-0.08075837790966034,
0.42538896203041077,
0.04150475934147835,
0.517823338508606,
0.14749515056610107,
-0.05272875726222992,
0.37865927815437317,
-0.07507876306772232,
0.05258660763502121,
0.013706390745937824,
-0.012674442492425442,
0.1713647097349167,
0.10542484372854233,
-0.41975146532058716,
-0.5957536101341248,
-0.31860435009002686,
0.13327908515930176,
-0.1404164880514145,
0.16009151935577393,
0.4751749336719513,
0.13904868066310883,
0.07282308489084244,
-0.027766158804297447,
0.3243483901023865,
-0.29523971676826477,
-0.578493595123291,
0.34275057911872864,
-0.42625951766967773,
-0.39998507499694824,
0.051777783781290054,
0.23373757302761078,
0.1585312783718109,
-0.13686373829841614,
-0.4911375641822815,
-0.29129984974861145,
-0.021032029762864113,
-0.20825208723545074,
-0.14088864624500275,
0.034251514822244644,
-0.081787109375,
-0.1706446260213852,
-0.08072171360254288,
0.052855268120765686,
-0.21539564430713654,
0.020766014233231544,
-0.18977995216846466,
0.10595531016588211,
0.0540597066283226,
0.580053448677063,
-0.2069244682788849,
0.4104653000831604,
0.262797474861145,
-0.09994090348482132,
0.43047305941581726,
-0.1017872616648674,
0.29820674657821655,
-0.03379281610250473,
-0.5136102437973022,
-0.03903919830918312,
-0.024887001141905785,
-0.04935907945036888,
0.24670164287090302,
0.11831137537956238,
-0.17501001060009003,
-0.40237152576446533,
-0.1823296993970871,
-0.4465429186820984,
-0.1094004362821579,
-0.0297661405056715,
0.11023642867803574,
0.06838664412498474,
0.03377164527773857,
0.11739955097436905,
-0.15625622868537903,
-0.028626946732401848,
0.02339094504714012,
0.34780818223953247,
-0.03887943923473358,
0.1180441752076149,
0.006738738156855106,
-0.09217558056116104,
-0.43141868710517883,
0.334654301404953,
-0.17446006834506989,
0.4283646047115326,
-0.19772809743881226,
0.076753169298172,
-0.06717099994421005,
-0.0039034506771713495,
0.6058323979377747,
-0.2651655673980713,
0.11586444824934006,
0.09651879966259003,
0.010437834076583385,
-0.30427059531211853,
-0.09392139315605164,
-0.032578371465206146,
0.24870441854000092,
0.16576611995697021,
0.4472005367279053,
-0.07857001572847366,
-0.16756097972393036,
0.3270869851112366,
0.25485101342201233,
-0.13908441364765167,
-0.32141295075416565,
-0.14267976582050323,
-0.3935248851776123,
-0.22811292111873627,
-0.22428689897060394,
-0.3400646150112152,
0.3046943247318268,
-0.034138038754463196,
-0.16921952366828918,
0.06572646647691727,
-0.09413854032754898,
0.1747606247663498,
0.07752750813961029,
0.13451644778251648,
0.09457381069660187,
0.11386069655418396,
0.3893183767795563,
0.051472947001457214,
0.19698558747768402,
0.6876189112663269,
-0.17472930252552032,
-0.28180399537086487,
0.0031068858224898577,
0.26535898447036743,
0.12662993371486664,
0.2776084244251251,
-0.21346977353096008,
-0.11072660982608795,
0.1917884200811386,
0.19745796918869019,
-0.0059064654633402824,
0.28092122077941895,
0.378507137298584,
0.09109920263290405,
-0.5953509211540222,
-0.5943171977996826,
0.4862525761127472,
-0.09490972012281418,
0.11619789153337479,
0.18356935679912567,
-0.12010638415813446,
-0.13071632385253906,
0.17530809342861176,
-0.18716762959957123,
0.7539352178573608,
-0.05162092670798302,
0.022021446377038956,
0.2660261392593384,
0.2764638364315033,
0.4896042048931122,
-0.3141956627368927,
0.017141269519925117,
-0.22134767472743988,
-0.3019843101501465,
-0.09656082838773727,
-0.11286532878875732,
0.12321501225233078,
0.27900147438049316,
0.04115952551364899,
0.452960729598999,
-0.13979826867580414,
-0.007672024425119162,
0.12030038982629776,
0.27587100863456726,
-0.01236597541719675,
-0.09909754246473312,
-0.6099658608436584,
0.2349267154932022,
-0.11527697741985321,
0.28590962290763855,
-0.14560528099536896,
-0.026654234156012535,
0.01893516816198826,
-0.20110724866390228,
-0.12524820864200592,
0.11030696332454681,
-0.5258551836013794,
0.33524593710899353,
-0.1103220134973526,
-0.19214001297950745,
-0.23488032817840576,
0.14027580618858337,
0.2428167164325714,
0.020909838378429413,
-0.18050271272659302,
-0.016430851072072983,
-0.178729847073555,
-0.24221393465995789,
-0.1114940345287323,
0.006605745293200016,
0.3349570035934448,
-0.14434994757175446,
-0.22991377115249634,
0.09646278619766235,
-0.12504637241363525,
-0.3004515469074249,
0.11817304790019989,
-0.0709114745259285,
-0.10809731483459473,
-0.13218651711940765,
-0.24444091320037842,
-0.1845485419034958,
0.08627714216709137,
-0.17466436326503754,
0.13675302267074585,
0.0688006803393364,
-0.08284232020378113,
0.101688914000988,
0.14947648346424103,
-0.29833418130874634,
-0.1130417063832283,
0.3407585322856903,
-0.26778486371040344,
-0.2979254424571991,
0.4692351222038269,
0.35197198390960693,
-0.15862710773944855,
-0.16132217645645142,
0.11765493452548981,
0.23542238771915436,
-0.2757170796394348,
0.028793087229132652,
0.16200236976146698,
0.30084455013275146,
-0.009347377344965935,
0.3109230399131775,
0.30563995242118835,
0.10084761679172516,
0.007333983201533556,
-0.7206998467445374,
-0.32498931884765625,
0.19461877644062042,
0.12716615200042725,
0.2861979603767395,
0.1761263906955719,
0.11474578827619553,
0.02176538296043873,
-0.14196576178073883,
-0.31081998348236084,
0.056390032172203064,
-0.19300299882888794,
-0.22462239861488342,
0.20448747277259827,
-0.19606387615203857,
0.5058370232582092,
0.0961756706237793,
0.23531509935855865,
-0.18623150885105133,
-0.22380872070789337,
-0.2522975504398346,
0.012597295455634594,
0.12506656348705292,
-0.007205305155366659,
-0.15990473330020905,
0.07668455690145493,
-0.09893525391817093,
-0.10716976225376129,
-0.10151183605194092,
0.19095481932163239,
0.13839571177959442,
0.06878098100423813,
-0.07874584197998047,
0.10012514144182205,
0.03010839968919754,
-0.19079694151878357,
0.028508225455880165,
-0.02513468824326992,
0.3009043335914612,
0.2265722155570984,
0.06183522567152977,
0.024157607927918434,
-0.05330638214945793,
-0.07461787760257721,
-0.1121780127286911,
-0.04140649735927582,
-0.07796362042427063,
0.3595578074455261,
-0.3970215916633606,
-0.027573002502322197,
0.28107017278671265,
0.4986264705657959,
0.3485291004180908,
-0.3341696858406067,
0.1404312252998352,
0.09825072437524796,
0.20083607733249664,
-0.24180537462234497,
-0.13203735649585724,
0.1866646409034729,
-0.031839389353990555,
0.03097672015428543,
0.12332747876644135,
-0.05814037099480629,
0.05055662989616394,
-0.23284408450126648,
0.05670931935310364,
0.5290334224700928,
0.09246090799570084,
0.22493162751197815,
0.130848228931427,
-0.018566392362117767,
0.06692206859588623,
0.06500107049942017,
0.0360548160970211,
0.12290973216295242,
0.29205912351608276,
-0.34958136081695557,
0.1462305635213852,
-0.05676022544503212,
0.06840071082115173,
-0.11474625766277313,
-0.6289646029472351,
0.33368176221847534,
0.1689157485961914,
-0.31917881965637207,
0.08784330636262894,
-0.24491262435913086,
0.4515695571899414,
-0.21866492927074432,
0.051713358610868454,
-0.29081207513809204,
0.3248194754123688,
0.05354991927742958,
-0.06190398335456848,
0.11665328592061996,
-0.2613925337791443,
-0.12228914350271225,
-0.024196306243538857,
0.05928691104054451,
-0.33784380555152893,
0.2547750771045685,
0.1873704344034195,
-0.1702093929052353,
-0.25051620602607727,
-0.05147352069616318,
0.20038902759552002,
-0.02789117954671383,
-0.10703574120998383,
0.3322902023792267,
0.313965380191803,
-0.10759731382131577,
-0.005260290112346411,
0.20781831443309784,
0.5430834889411926,
0.36382248997688293,
0.05988190323114395,
0.2568228244781494,
0.11453904956579208,
-0.13745267689228058,
0.06761494278907776,
0.03229411691427231,
0.2886674404144287,
0.08369125425815582,
0.3812454342842102,
0.21704433858394623,
-0.18020711839199066,
0.16716785728931427,
-0.019858915358781815,
0.1490117311477661,
-0.22099998593330383,
0.3357284665107727,
-0.0727917030453682,
0.03644641861319542,
-0.3704918324947357,
0.0609770342707634,
-0.6276515126228333,
-0.0764102190732956,
0.45937708020210266,
-0.01120233815163374,
0.009491429664194584,
-0.06973233819007874,
0.08088760077953339,
-0.10900328308343887,
0.713092029094696,
0.37308043241500854,
0.40819206833839417,
-0.44813087582588196,
-0.09220980107784271,
-0.5804842710494995,
0.07782530784606934,
-0.023873860016465187,
0.16887860000133514,
0.09095201641321182,
-0.14518897235393524,
0.022686989977955818,
0.2757076025009155,
0.2652721703052521,
0.0849514976143837,
0.15117338299751282,
0.09654349088668823,
-0.17954617738723755,
-0.11537550389766693,
0.022908363491296768,
0.06011645868420601,
-0.037616390734910965,
-0.23774856328964233,
0.05600776523351669,
-0.5345263481140137,
-0.005566381383687258,
-0.004136992618441582,
-0.056389711797237396,
-0.010824780911207199,
-0.07826220989227295,
0.33974647521972656,
0.07795253396034241,
0.7522101402282715,
0.006126693449914455,
-0.12574352324008942,
-0.39828866720199585,
-0.3299314081668854,
-0.12806005775928497,
0.14618682861328125,
-0.031772203743457794,
0.23516294360160828,
-0.10757314413785934,
-0.3375990390777588,
-0.3766070306301117,
0.1866876184940338,
0.049685679376125336,
-0.22551830112934113,
-0.1647074669599533,
0.05244824290275574,
0.0788077861070633,
0.00788083579391241,
0.1963626891374588,
0.09204848110675812,
-0.0348258912563324,
0.3125106990337372,
-0.10615725815296173,
-0.35995596647262573,
0.6798825263977051,
-0.22595597803592682,
-0.04740490764379501,
-0.10425861179828644,
0.03658904880285263,
0.09119973331689835,
0.08804003149271011,
-0.5794770121574402,
0.19912905991077423,
0.37699490785598755,
0.113466277718544,
-0.43973103165626526,
0.2614191472530365,
-0.07183176279067993,
0.011540079489350319,
0.03498830646276474,
0.13892114162445068,
0.03210311383008957,
-0.2739153504371643,
-0.024995489045977592,
-0.15673115849494934
] |
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.17262069880962372,
-0.08458222448825836,
-0.09733746200799942,
0.1288861483335495,
0.4222559928894043,
0.20194454491138458,
0.3426592946052551,
0.062195200473070145,
-0.057558659464120865,
0.004357544705271721,
-0.1423119455575943,
0.08249589055776596,
-0.06606011092662811,
0.2489195168018341,
0.11230878531932831,
-0.12542155385017395,
-0.0808454304933548,
-0.11463022977113724,
-0.22911693155765533,
0.0067152781412005424,
-0.20981016755104065,
0.14409378170967102,
-0.20964893698692322,
0.04321177676320076,
-0.4213048219680786,
-0.1652374118566513,
0.08612240105867386,
0.35553839802742004,
-0.03017209842801094,
-0.2586037814617157,
0.37103477120399475,
0.013673114590346813,
0.05071521922945976,
0.406772643327713,
-0.000110941196908243,
0.2821541130542755,
0.42149287462234497,
-0.007743551395833492,
-0.4700692594051361,
-0.41198766231536865,
0.028617534786462784,
-0.25242677330970764,
0.20361192524433136,
-0.12158285081386566,
-0.08969444781541824,
-0.09933535754680634,
-0.04851397126913071,
-0.2351500689983368,
0.4430740475654602,
0.42446836829185486,
0.26970914006233215,
0.27369678020477295,
0.3110579252243042,
-0.09482360631227493,
-0.3082546591758728,
-0.22429151833057404,
0.043680936098098755,
0.5262345671653748,
-0.30415472388267517,
-0.05500207096338272,
0.23694980144500732,
0.18526889383792877,
-0.11026409268379211,
0.039429161697626114,
0.10279257595539093,
0.03683972731232643,
-0.08111803978681564,
-0.3631625175476074,
0.016723638400435448,
0.07219387590885162,
0.24345357716083527,
-0.2260051965713501,
-0.4658712148666382,
-0.16389364004135132,
0.03046916425228119,
-0.3523123860359192,
0.20596472918987274,
0.07249463349580765,
-0.13103802502155304,
0.1562270224094391,
-0.40813392400741577,
-0.1662256270647049,
-0.2331792563199997,
0.47679927945137024,
-0.08346922695636749,
-0.06916534155607224,
-0.10134581476449966,
0.1568792164325714,
0.2081460952758789,
-0.014765377156436443,
0.24560610949993134,
0.01639632135629654,
0.33045879006385803,
0.21354350447654724,
-0.4810214042663574,
0.11584050953388214,
0.016374634578824043,
0.13958978652954102,
0.13585905730724335,
0.23614570498466492,
0.0839766189455986,
-0.05708594247698784,
-0.12385672330856323,
0.08515238761901855,
0.06063329428434372,
0.24538321793079376,
0.00893695279955864,
0.13872648775577545,
0.18724791705608368,
0.3058454394340515,
-0.012289674952626228,
0.03487186133861542,
-0.13719189167022705,
-0.2628459334373474,
-0.08476053178310394,
0.12667277455329895,
0.467296302318573,
-0.06681480258703232,
-0.14578032493591309,
0.22866623103618622,
-0.24972020089626312,
-0.07731279730796814,
0.12552909553050995,
0.5078198313713074,
-0.24598661065101624,
0.10307841747999191,
-0.09110596030950546,
0.24431131780147552,
-0.09848152101039886,
0.028140706941485405,
-0.2782627046108246,
0.15831728279590607,
-0.14690092206001282,
0.1858583241701126,
0.42093828320503235,
-0.4283131957054138,
0.3650217354297638,
-0.08279520273208618,
0.13289399445056915,
-0.265125572681427,
0.07276175171136856,
-0.0731365829706192,
-0.2295968234539032,
0.3315567970275879,
-0.01284829992800951,
0.18786056339740753,
0.32552748918533325,
0.21989955008029938,
-0.008620471693575382,
-0.09329663962125778,
-0.2572564482688904,
-0.5359479784965515,
0.2843952775001526,
0.23464980721473694,
-0.13258175551891327,
-0.23776689171791077,
-0.10398455709218979,
-0.07018804550170898,
-0.08551342785358429,
0.04999091476202011,
-0.2254381775856018,
-0.07588821649551392,
-0.00010202461999142542,
-0.18517398834228516,
0.45798546075820923,
0.4795648455619812,
-0.3562643527984619,
-0.13188329339027405,
-0.08891984820365906,
-0.19939106702804565,
0.10227569192647934,
0.250548779964447,
-0.21025577187538147,
0.267824649810791,
-0.03006298653781414,
-0.2001935839653015,
0.3244524896144867,
-0.2567800283432007,
-0.4303722083568573,
0.22959798574447632,
-0.14158383011817932,
0.07721977680921555,
-0.15979427099227905,
-0.019827786833047867,
-0.23004406690597534,
0.09766857326030731,
0.22241345047950745,
0.45447567105293274,
-0.22194136679172516,
-0.0075083267875015736,
-0.07613692432641983,
-0.28875792026519775,
0.1971726268529892,
0.34950873255729675,
0.1905546486377716,
0.08371218293905258,
0.11229036003351212,
-0.12296734750270844,
0.1389331817626953,
0.07927219569683075,
-0.1288711279630661,
0.22225980460643768,
-0.07304421812295914,
0.06009707599878311,
0.005793769843876362,
0.1931328922510147,
-0.4456617534160614,
0.21716174483299255,
0.2575109004974365,
0.20543895661830902,
-0.15917366743087769,
0.07180064916610718,
-0.3314305543899536,
0.06447815895080566,
-0.32763123512268066,
-0.10173209011554718,
0.1681317239999771,
0.1100919172167778,
0.11499106138944626,
0.14874128997325897,
-0.3477530777454376,
0.585390031337738,
-0.28072652220726013,
0.1544782668352127,
-0.3642595410346985,
0.3336735665798187,
-0.1378077268600464,
0.020809274166822433,
0.0532529316842556,
0.19486890733242035,
0.22709539532661438,
-0.21248048543930054,
-0.12306980043649673,
0.3350648581981659,
-0.09708833694458008,
0.1396981179714203,
0.10056962817907333,
0.020621629431843758,
0.08872149139642715,
-0.27322253584861755,
-0.007592231500893831,
0.17520852386951447,
-0.048422764986753464,
-0.06365393847227097,
0.22217127680778503,
0.2624586522579193,
-0.08243697136640549,
0.3350193500518799,
0.16534501314163208,
-0.01671675406396389,
0.15577521920204163,
0.08227856457233429,
-0.07257554680109024,
-0.08043781667947769,
0.3488464057445526,
-0.28236353397369385,
0.49145302176475525,
-0.17793600261211395,
-0.18835316598415375,
-0.21429792046546936,
0.10730169713497162,
-0.20607487857341766,
0.03680036589503288,
0.18075895309448242,
-0.15274657309055328,
-0.19591234624385834,
-0.14158251881599426,
0.22858905792236328,
0.38311269879341125,
0.1266685575246811,
0.017403505742549896,
0.3330523371696472,
-0.11242228001356125,
-0.12555478513240814,
0.21396216750144958,
0.16420921683311462,
0.2534163296222687,
0.12569065392017365,
-0.10634095966815948,
0.0876750573515892,
-0.3335898220539093,
-0.29772618412971497,
0.04574931412935257,
0.29409992694854736,
-0.3505646884441376,
-0.02660525031387806,
-0.2348109483718872,
-0.10758429020643234,
0.041000716388225555,
-0.49585115909576416,
-0.18313035368919373,
-0.44780924916267395,
-0.16305004060268402,
-0.02450845204293728,
0.10010901838541031,
0.19134411215782166,
-0.1383024901151657,
0.2042524665594101,
0.2681008577346802,
-0.17570725083351135,
-0.19902518391609192,
-0.14131581783294678,
-0.12220615893602371,
0.042546939104795456,
0.190982848405838,
-0.24977903068065643,
0.26150888204574585,
-0.12377609312534332,
-0.19311174750328064,
-0.13389764726161957,
-0.0432528555393219,
0.044891588389873505,
-0.08075837790966034,
0.42538896203041077,
0.04150475934147835,
0.517823338508606,
0.14749515056610107,
-0.05272875726222992,
0.37865927815437317,
-0.07507876306772232,
0.05258660763502121,
0.013706390745937824,
-0.012674442492425442,
0.1713647097349167,
0.10542484372854233,
-0.41975146532058716,
-0.5957536101341248,
-0.31860435009002686,
0.13327908515930176,
-0.1404164880514145,
0.16009151935577393,
0.4751749336719513,
0.13904868066310883,
0.07282308489084244,
-0.027766158804297447,
0.3243483901023865,
-0.29523971676826477,
-0.578493595123291,
0.34275057911872864,
-0.42625951766967773,
-0.39998507499694824,
0.051777783781290054,
0.23373757302761078,
0.1585312783718109,
-0.13686373829841614,
-0.4911375641822815,
-0.29129984974861145,
-0.021032029762864113,
-0.20825208723545074,
-0.14088864624500275,
0.034251514822244644,
-0.081787109375,
-0.1706446260213852,
-0.08072171360254288,
0.052855268120765686,
-0.21539564430713654,
0.020766014233231544,
-0.18977995216846466,
0.10595531016588211,
0.0540597066283226,
0.580053448677063,
-0.2069244682788849,
0.4104653000831604,
0.262797474861145,
-0.09994090348482132,
0.43047305941581726,
-0.1017872616648674,
0.29820674657821655,
-0.03379281610250473,
-0.5136102437973022,
-0.03903919830918312,
-0.024887001141905785,
-0.04935907945036888,
0.24670164287090302,
0.11831137537956238,
-0.17501001060009003,
-0.40237152576446533,
-0.1823296993970871,
-0.4465429186820984,
-0.1094004362821579,
-0.0297661405056715,
0.11023642867803574,
0.06838664412498474,
0.03377164527773857,
0.11739955097436905,
-0.15625622868537903,
-0.028626946732401848,
0.02339094504714012,
0.34780818223953247,
-0.03887943923473358,
0.1180441752076149,
0.006738738156855106,
-0.09217558056116104,
-0.43141868710517883,
0.334654301404953,
-0.17446006834506989,
0.4283646047115326,
-0.19772809743881226,
0.076753169298172,
-0.06717099994421005,
-0.0039034506771713495,
0.6058323979377747,
-0.2651655673980713,
0.11586444824934006,
0.09651879966259003,
0.010437834076583385,
-0.30427059531211853,
-0.09392139315605164,
-0.032578371465206146,
0.24870441854000092,
0.16576611995697021,
0.4472005367279053,
-0.07857001572847366,
-0.16756097972393036,
0.3270869851112366,
0.25485101342201233,
-0.13908441364765167,
-0.32141295075416565,
-0.14267976582050323,
-0.3935248851776123,
-0.22811292111873627,
-0.22428689897060394,
-0.3400646150112152,
0.3046943247318268,
-0.034138038754463196,
-0.16921952366828918,
0.06572646647691727,
-0.09413854032754898,
0.1747606247663498,
0.07752750813961029,
0.13451644778251648,
0.09457381069660187,
0.11386069655418396,
0.3893183767795563,
0.051472947001457214,
0.19698558747768402,
0.6876189112663269,
-0.17472930252552032,
-0.28180399537086487,
0.0031068858224898577,
0.26535898447036743,
0.12662993371486664,
0.2776084244251251,
-0.21346977353096008,
-0.11072660982608795,
0.1917884200811386,
0.19745796918869019,
-0.0059064654633402824,
0.28092122077941895,
0.378507137298584,
0.09109920263290405,
-0.5953509211540222,
-0.5943171977996826,
0.4862525761127472,
-0.09490972012281418,
0.11619789153337479,
0.18356935679912567,
-0.12010638415813446,
-0.13071632385253906,
0.17530809342861176,
-0.18716762959957123,
0.7539352178573608,
-0.05162092670798302,
0.022021446377038956,
0.2660261392593384,
0.2764638364315033,
0.4896042048931122,
-0.3141956627368927,
0.017141269519925117,
-0.22134767472743988,
-0.3019843101501465,
-0.09656082838773727,
-0.11286532878875732,
0.12321501225233078,
0.27900147438049316,
0.04115952551364899,
0.452960729598999,
-0.13979826867580414,
-0.007672024425119162,
0.12030038982629776,
0.27587100863456726,
-0.01236597541719675,
-0.09909754246473312,
-0.6099658608436584,
0.2349267154932022,
-0.11527697741985321,
0.28590962290763855,
-0.14560528099536896,
-0.026654234156012535,
0.01893516816198826,
-0.20110724866390228,
-0.12524820864200592,
0.11030696332454681,
-0.5258551836013794,
0.33524593710899353,
-0.1103220134973526,
-0.19214001297950745,
-0.23488032817840576,
0.14027580618858337,
0.2428167164325714,
0.020909838378429413,
-0.18050271272659302,
-0.016430851072072983,
-0.178729847073555,
-0.24221393465995789,
-0.1114940345287323,
0.006605745293200016,
0.3349570035934448,
-0.14434994757175446,
-0.22991377115249634,
0.09646278619766235,
-0.12504637241363525,
-0.3004515469074249,
0.11817304790019989,
-0.0709114745259285,
-0.10809731483459473,
-0.13218651711940765,
-0.24444091320037842,
-0.1845485419034958,
0.08627714216709137,
-0.17466436326503754,
0.13675302267074585,
0.0688006803393364,
-0.08284232020378113,
0.101688914000988,
0.14947648346424103,
-0.29833418130874634,
-0.1130417063832283,
0.3407585322856903,
-0.26778486371040344,
-0.2979254424571991,
0.4692351222038269,
0.35197198390960693,
-0.15862710773944855,
-0.16132217645645142,
0.11765493452548981,
0.23542238771915436,
-0.2757170796394348,
0.028793087229132652,
0.16200236976146698,
0.30084455013275146,
-0.009347377344965935,
0.3109230399131775,
0.30563995242118835,
0.10084761679172516,
0.007333983201533556,
-0.7206998467445374,
-0.32498931884765625,
0.19461877644062042,
0.12716615200042725,
0.2861979603767395,
0.1761263906955719,
0.11474578827619553,
0.02176538296043873,
-0.14196576178073883,
-0.31081998348236084,
0.056390032172203064,
-0.19300299882888794,
-0.22462239861488342,
0.20448747277259827,
-0.19606387615203857,
0.5058370232582092,
0.0961756706237793,
0.23531509935855865,
-0.18623150885105133,
-0.22380872070789337,
-0.2522975504398346,
0.012597295455634594,
0.12506656348705292,
-0.007205305155366659,
-0.15990473330020905,
0.07668455690145493,
-0.09893525391817093,
-0.10716976225376129,
-0.10151183605194092,
0.19095481932163239,
0.13839571177959442,
0.06878098100423813,
-0.07874584197998047,
0.10012514144182205,
0.03010839968919754,
-0.19079694151878357,
0.028508225455880165,
-0.02513468824326992,
0.3009043335914612,
0.2265722155570984,
0.06183522567152977,
0.024157607927918434,
-0.05330638214945793,
-0.07461787760257721,
-0.1121780127286911,
-0.04140649735927582,
-0.07796362042427063,
0.3595578074455261,
-0.3970215916633606,
-0.027573002502322197,
0.28107017278671265,
0.4986264705657959,
0.3485291004180908,
-0.3341696858406067,
0.1404312252998352,
0.09825072437524796,
0.20083607733249664,
-0.24180537462234497,
-0.13203735649585724,
0.1866646409034729,
-0.031839389353990555,
0.03097672015428543,
0.12332747876644135,
-0.05814037099480629,
0.05055662989616394,
-0.23284408450126648,
0.05670931935310364,
0.5290334224700928,
0.09246090799570084,
0.22493162751197815,
0.130848228931427,
-0.018566392362117767,
0.06692206859588623,
0.06500107049942017,
0.0360548160970211,
0.12290973216295242,
0.29205912351608276,
-0.34958136081695557,
0.1462305635213852,
-0.05676022544503212,
0.06840071082115173,
-0.11474625766277313,
-0.6289646029472351,
0.33368176221847534,
0.1689157485961914,
-0.31917881965637207,
0.08784330636262894,
-0.24491262435913086,
0.4515695571899414,
-0.21866492927074432,
0.051713358610868454,
-0.29081207513809204,
0.3248194754123688,
0.05354991927742958,
-0.06190398335456848,
0.11665328592061996,
-0.2613925337791443,
-0.12228914350271225,
-0.024196306243538857,
0.05928691104054451,
-0.33784380555152893,
0.2547750771045685,
0.1873704344034195,
-0.1702093929052353,
-0.25051620602607727,
-0.05147352069616318,
0.20038902759552002,
-0.02789117954671383,
-0.10703574120998383,
0.3322902023792267,
0.313965380191803,
-0.10759731382131577,
-0.005260290112346411,
0.20781831443309784,
0.5430834889411926,
0.36382248997688293,
0.05988190323114395,
0.2568228244781494,
0.11453904956579208,
-0.13745267689228058,
0.06761494278907776,
0.03229411691427231,
0.2886674404144287,
0.08369125425815582,
0.3812454342842102,
0.21704433858394623,
-0.18020711839199066,
0.16716785728931427,
-0.019858915358781815,
0.1490117311477661,
-0.22099998593330383,
0.3357284665107727,
-0.0727917030453682,
0.03644641861319542,
-0.3704918324947357,
0.0609770342707634,
-0.6276515126228333,
-0.0764102190732956,
0.45937708020210266,
-0.01120233815163374,
0.009491429664194584,
-0.06973233819007874,
0.08088760077953339,
-0.10900328308343887,
0.713092029094696,
0.37308043241500854,
0.40819206833839417,
-0.44813087582588196,
-0.09220980107784271,
-0.5804842710494995,
0.07782530784606934,
-0.023873860016465187,
0.16887860000133514,
0.09095201641321182,
-0.14518897235393524,
0.022686989977955818,
0.2757076025009155,
0.2652721703052521,
0.0849514976143837,
0.15117338299751282,
0.09654349088668823,
-0.17954617738723755,
-0.11537550389766693,
0.022908363491296768,
0.06011645868420601,
-0.037616390734910965,
-0.23774856328964233,
0.05600776523351669,
-0.5345263481140137,
-0.005566381383687258,
-0.004136992618441582,
-0.056389711797237396,
-0.010824780911207199,
-0.07826220989227295,
0.33974647521972656,
0.07795253396034241,
0.7522101402282715,
0.006126693449914455,
-0.12574352324008942,
-0.39828866720199585,
-0.3299314081668854,
-0.12806005775928497,
0.14618682861328125,
-0.031772203743457794,
0.23516294360160828,
-0.10757314413785934,
-0.3375990390777588,
-0.3766070306301117,
0.1866876184940338,
0.049685679376125336,
-0.22551830112934113,
-0.1647074669599533,
0.05244824290275574,
0.0788077861070633,
0.00788083579391241,
0.1963626891374588,
0.09204848110675812,
-0.0348258912563324,
0.3125106990337372,
-0.10615725815296173,
-0.35995596647262573,
0.6798825263977051,
-0.22595597803592682,
-0.04740490764379501,
-0.10425861179828644,
0.03658904880285263,
0.09119973331689835,
0.08804003149271011,
-0.5794770121574402,
0.19912905991077423,
0.37699490785598755,
0.113466277718544,
-0.43973103165626526,
0.2614191472530365,
-0.07183176279067993,
0.011540079489350319,
0.03498830646276474,
0.13892114162445068,
0.03210311383008957,
-0.2739153504371643,
-0.024995489045977592,
-0.15673115849494934
] |
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.17262069880962372,
-0.08458222448825836,
-0.09733746200799942,
0.1288861483335495,
0.4222559928894043,
0.20194454491138458,
0.3426592946052551,
0.062195200473070145,
-0.057558659464120865,
0.004357544705271721,
-0.1423119455575943,
0.08249589055776596,
-0.06606011092662811,
0.2489195168018341,
0.11230878531932831,
-0.12542155385017395,
-0.0808454304933548,
-0.11463022977113724,
-0.22911693155765533,
0.0067152781412005424,
-0.20981016755104065,
0.14409378170967102,
-0.20964893698692322,
0.04321177676320076,
-0.4213048219680786,
-0.1652374118566513,
0.08612240105867386,
0.35553839802742004,
-0.03017209842801094,
-0.2586037814617157,
0.37103477120399475,
0.013673114590346813,
0.05071521922945976,
0.406772643327713,
-0.000110941196908243,
0.2821541130542755,
0.42149287462234497,
-0.007743551395833492,
-0.4700692594051361,
-0.41198766231536865,
0.028617534786462784,
-0.25242677330970764,
0.20361192524433136,
-0.12158285081386566,
-0.08969444781541824,
-0.09933535754680634,
-0.04851397126913071,
-0.2351500689983368,
0.4430740475654602,
0.42446836829185486,
0.26970914006233215,
0.27369678020477295,
0.3110579252243042,
-0.09482360631227493,
-0.3082546591758728,
-0.22429151833057404,
0.043680936098098755,
0.5262345671653748,
-0.30415472388267517,
-0.05500207096338272,
0.23694980144500732,
0.18526889383792877,
-0.11026409268379211,
0.039429161697626114,
0.10279257595539093,
0.03683972731232643,
-0.08111803978681564,
-0.3631625175476074,
0.016723638400435448,
0.07219387590885162,
0.24345357716083527,
-0.2260051965713501,
-0.4658712148666382,
-0.16389364004135132,
0.03046916425228119,
-0.3523123860359192,
0.20596472918987274,
0.07249463349580765,
-0.13103802502155304,
0.1562270224094391,
-0.40813392400741577,
-0.1662256270647049,
-0.2331792563199997,
0.47679927945137024,
-0.08346922695636749,
-0.06916534155607224,
-0.10134581476449966,
0.1568792164325714,
0.2081460952758789,
-0.014765377156436443,
0.24560610949993134,
0.01639632135629654,
0.33045879006385803,
0.21354350447654724,
-0.4810214042663574,
0.11584050953388214,
0.016374634578824043,
0.13958978652954102,
0.13585905730724335,
0.23614570498466492,
0.0839766189455986,
-0.05708594247698784,
-0.12385672330856323,
0.08515238761901855,
0.06063329428434372,
0.24538321793079376,
0.00893695279955864,
0.13872648775577545,
0.18724791705608368,
0.3058454394340515,
-0.012289674952626228,
0.03487186133861542,
-0.13719189167022705,
-0.2628459334373474,
-0.08476053178310394,
0.12667277455329895,
0.467296302318573,
-0.06681480258703232,
-0.14578032493591309,
0.22866623103618622,
-0.24972020089626312,
-0.07731279730796814,
0.12552909553050995,
0.5078198313713074,
-0.24598661065101624,
0.10307841747999191,
-0.09110596030950546,
0.24431131780147552,
-0.09848152101039886,
0.028140706941485405,
-0.2782627046108246,
0.15831728279590607,
-0.14690092206001282,
0.1858583241701126,
0.42093828320503235,
-0.4283131957054138,
0.3650217354297638,
-0.08279520273208618,
0.13289399445056915,
-0.265125572681427,
0.07276175171136856,
-0.0731365829706192,
-0.2295968234539032,
0.3315567970275879,
-0.01284829992800951,
0.18786056339740753,
0.32552748918533325,
0.21989955008029938,
-0.008620471693575382,
-0.09329663962125778,
-0.2572564482688904,
-0.5359479784965515,
0.2843952775001526,
0.23464980721473694,
-0.13258175551891327,
-0.23776689171791077,
-0.10398455709218979,
-0.07018804550170898,
-0.08551342785358429,
0.04999091476202011,
-0.2254381775856018,
-0.07588821649551392,
-0.00010202461999142542,
-0.18517398834228516,
0.45798546075820923,
0.4795648455619812,
-0.3562643527984619,
-0.13188329339027405,
-0.08891984820365906,
-0.19939106702804565,
0.10227569192647934,
0.250548779964447,
-0.21025577187538147,
0.267824649810791,
-0.03006298653781414,
-0.2001935839653015,
0.3244524896144867,
-0.2567800283432007,
-0.4303722083568573,
0.22959798574447632,
-0.14158383011817932,
0.07721977680921555,
-0.15979427099227905,
-0.019827786833047867,
-0.23004406690597534,
0.09766857326030731,
0.22241345047950745,
0.45447567105293274,
-0.22194136679172516,
-0.0075083267875015736,
-0.07613692432641983,
-0.28875792026519775,
0.1971726268529892,
0.34950873255729675,
0.1905546486377716,
0.08371218293905258,
0.11229036003351212,
-0.12296734750270844,
0.1389331817626953,
0.07927219569683075,
-0.1288711279630661,
0.22225980460643768,
-0.07304421812295914,
0.06009707599878311,
0.005793769843876362,
0.1931328922510147,
-0.4456617534160614,
0.21716174483299255,
0.2575109004974365,
0.20543895661830902,
-0.15917366743087769,
0.07180064916610718,
-0.3314305543899536,
0.06447815895080566,
-0.32763123512268066,
-0.10173209011554718,
0.1681317239999771,
0.1100919172167778,
0.11499106138944626,
0.14874128997325897,
-0.3477530777454376,
0.585390031337738,
-0.28072652220726013,
0.1544782668352127,
-0.3642595410346985,
0.3336735665798187,
-0.1378077268600464,
0.020809274166822433,
0.0532529316842556,
0.19486890733242035,
0.22709539532661438,
-0.21248048543930054,
-0.12306980043649673,
0.3350648581981659,
-0.09708833694458008,
0.1396981179714203,
0.10056962817907333,
0.020621629431843758,
0.08872149139642715,
-0.27322253584861755,
-0.007592231500893831,
0.17520852386951447,
-0.048422764986753464,
-0.06365393847227097,
0.22217127680778503,
0.2624586522579193,
-0.08243697136640549,
0.3350193500518799,
0.16534501314163208,
-0.01671675406396389,
0.15577521920204163,
0.08227856457233429,
-0.07257554680109024,
-0.08043781667947769,
0.3488464057445526,
-0.28236353397369385,
0.49145302176475525,
-0.17793600261211395,
-0.18835316598415375,
-0.21429792046546936,
0.10730169713497162,
-0.20607487857341766,
0.03680036589503288,
0.18075895309448242,
-0.15274657309055328,
-0.19591234624385834,
-0.14158251881599426,
0.22858905792236328,
0.38311269879341125,
0.1266685575246811,
0.017403505742549896,
0.3330523371696472,
-0.11242228001356125,
-0.12555478513240814,
0.21396216750144958,
0.16420921683311462,
0.2534163296222687,
0.12569065392017365,
-0.10634095966815948,
0.0876750573515892,
-0.3335898220539093,
-0.29772618412971497,
0.04574931412935257,
0.29409992694854736,
-0.3505646884441376,
-0.02660525031387806,
-0.2348109483718872,
-0.10758429020643234,
0.041000716388225555,
-0.49585115909576416,
-0.18313035368919373,
-0.44780924916267395,
-0.16305004060268402,
-0.02450845204293728,
0.10010901838541031,
0.19134411215782166,
-0.1383024901151657,
0.2042524665594101,
0.2681008577346802,
-0.17570725083351135,
-0.19902518391609192,
-0.14131581783294678,
-0.12220615893602371,
0.042546939104795456,
0.190982848405838,
-0.24977903068065643,
0.26150888204574585,
-0.12377609312534332,
-0.19311174750328064,
-0.13389764726161957,
-0.0432528555393219,
0.044891588389873505,
-0.08075837790966034,
0.42538896203041077,
0.04150475934147835,
0.517823338508606,
0.14749515056610107,
-0.05272875726222992,
0.37865927815437317,
-0.07507876306772232,
0.05258660763502121,
0.013706390745937824,
-0.012674442492425442,
0.1713647097349167,
0.10542484372854233,
-0.41975146532058716,
-0.5957536101341248,
-0.31860435009002686,
0.13327908515930176,
-0.1404164880514145,
0.16009151935577393,
0.4751749336719513,
0.13904868066310883,
0.07282308489084244,
-0.027766158804297447,
0.3243483901023865,
-0.29523971676826477,
-0.578493595123291,
0.34275057911872864,
-0.42625951766967773,
-0.39998507499694824,
0.051777783781290054,
0.23373757302761078,
0.1585312783718109,
-0.13686373829841614,
-0.4911375641822815,
-0.29129984974861145,
-0.021032029762864113,
-0.20825208723545074,
-0.14088864624500275,
0.034251514822244644,
-0.081787109375,
-0.1706446260213852,
-0.08072171360254288,
0.052855268120765686,
-0.21539564430713654,
0.020766014233231544,
-0.18977995216846466,
0.10595531016588211,
0.0540597066283226,
0.580053448677063,
-0.2069244682788849,
0.4104653000831604,
0.262797474861145,
-0.09994090348482132,
0.43047305941581726,
-0.1017872616648674,
0.29820674657821655,
-0.03379281610250473,
-0.5136102437973022,
-0.03903919830918312,
-0.024887001141905785,
-0.04935907945036888,
0.24670164287090302,
0.11831137537956238,
-0.17501001060009003,
-0.40237152576446533,
-0.1823296993970871,
-0.4465429186820984,
-0.1094004362821579,
-0.0297661405056715,
0.11023642867803574,
0.06838664412498474,
0.03377164527773857,
0.11739955097436905,
-0.15625622868537903,
-0.028626946732401848,
0.02339094504714012,
0.34780818223953247,
-0.03887943923473358,
0.1180441752076149,
0.006738738156855106,
-0.09217558056116104,
-0.43141868710517883,
0.334654301404953,
-0.17446006834506989,
0.4283646047115326,
-0.19772809743881226,
0.076753169298172,
-0.06717099994421005,
-0.0039034506771713495,
0.6058323979377747,
-0.2651655673980713,
0.11586444824934006,
0.09651879966259003,
0.010437834076583385,
-0.30427059531211853,
-0.09392139315605164,
-0.032578371465206146,
0.24870441854000092,
0.16576611995697021,
0.4472005367279053,
-0.07857001572847366,
-0.16756097972393036,
0.3270869851112366,
0.25485101342201233,
-0.13908441364765167,
-0.32141295075416565,
-0.14267976582050323,
-0.3935248851776123,
-0.22811292111873627,
-0.22428689897060394,
-0.3400646150112152,
0.3046943247318268,
-0.034138038754463196,
-0.16921952366828918,
0.06572646647691727,
-0.09413854032754898,
0.1747606247663498,
0.07752750813961029,
0.13451644778251648,
0.09457381069660187,
0.11386069655418396,
0.3893183767795563,
0.051472947001457214,
0.19698558747768402,
0.6876189112663269,
-0.17472930252552032,
-0.28180399537086487,
0.0031068858224898577,
0.26535898447036743,
0.12662993371486664,
0.2776084244251251,
-0.21346977353096008,
-0.11072660982608795,
0.1917884200811386,
0.19745796918869019,
-0.0059064654633402824,
0.28092122077941895,
0.378507137298584,
0.09109920263290405,
-0.5953509211540222,
-0.5943171977996826,
0.4862525761127472,
-0.09490972012281418,
0.11619789153337479,
0.18356935679912567,
-0.12010638415813446,
-0.13071632385253906,
0.17530809342861176,
-0.18716762959957123,
0.7539352178573608,
-0.05162092670798302,
0.022021446377038956,
0.2660261392593384,
0.2764638364315033,
0.4896042048931122,
-0.3141956627368927,
0.017141269519925117,
-0.22134767472743988,
-0.3019843101501465,
-0.09656082838773727,
-0.11286532878875732,
0.12321501225233078,
0.27900147438049316,
0.04115952551364899,
0.452960729598999,
-0.13979826867580414,
-0.007672024425119162,
0.12030038982629776,
0.27587100863456726,
-0.01236597541719675,
-0.09909754246473312,
-0.6099658608436584,
0.2349267154932022,
-0.11527697741985321,
0.28590962290763855,
-0.14560528099536896,
-0.026654234156012535,
0.01893516816198826,
-0.20110724866390228,
-0.12524820864200592,
0.11030696332454681,
-0.5258551836013794,
0.33524593710899353,
-0.1103220134973526,
-0.19214001297950745,
-0.23488032817840576,
0.14027580618858337,
0.2428167164325714,
0.020909838378429413,
-0.18050271272659302,
-0.016430851072072983,
-0.178729847073555,
-0.24221393465995789,
-0.1114940345287323,
0.006605745293200016,
0.3349570035934448,
-0.14434994757175446,
-0.22991377115249634,
0.09646278619766235,
-0.12504637241363525,
-0.3004515469074249,
0.11817304790019989,
-0.0709114745259285,
-0.10809731483459473,
-0.13218651711940765,
-0.24444091320037842,
-0.1845485419034958,
0.08627714216709137,
-0.17466436326503754,
0.13675302267074585,
0.0688006803393364,
-0.08284232020378113,
0.101688914000988,
0.14947648346424103,
-0.29833418130874634,
-0.1130417063832283,
0.3407585322856903,
-0.26778486371040344,
-0.2979254424571991,
0.4692351222038269,
0.35197198390960693,
-0.15862710773944855,
-0.16132217645645142,
0.11765493452548981,
0.23542238771915436,
-0.2757170796394348,
0.028793087229132652,
0.16200236976146698,
0.30084455013275146,
-0.009347377344965935,
0.3109230399131775,
0.30563995242118835,
0.10084761679172516,
0.007333983201533556,
-0.7206998467445374,
-0.32498931884765625,
0.19461877644062042,
0.12716615200042725,
0.2861979603767395,
0.1761263906955719,
0.11474578827619553,
0.02176538296043873,
-0.14196576178073883,
-0.31081998348236084,
0.056390032172203064,
-0.19300299882888794,
-0.22462239861488342,
0.20448747277259827,
-0.19606387615203857,
0.5058370232582092,
0.0961756706237793,
0.23531509935855865,
-0.18623150885105133,
-0.22380872070789337,
-0.2522975504398346,
0.012597295455634594,
0.12506656348705292,
-0.007205305155366659,
-0.15990473330020905,
0.07668455690145493,
-0.09893525391817093,
-0.10716976225376129,
-0.10151183605194092,
0.19095481932163239,
0.13839571177959442,
0.06878098100423813,
-0.07874584197998047,
0.10012514144182205,
0.03010839968919754,
-0.19079694151878357,
0.028508225455880165,
-0.02513468824326992,
0.3009043335914612,
0.2265722155570984,
0.06183522567152977,
0.024157607927918434,
-0.05330638214945793,
-0.07461787760257721,
-0.1121780127286911,
-0.04140649735927582,
-0.07796362042427063,
0.3595578074455261,
-0.3970215916633606,
-0.027573002502322197,
0.28107017278671265,
0.4986264705657959,
0.3485291004180908,
-0.3341696858406067,
0.1404312252998352,
0.09825072437524796,
0.20083607733249664,
-0.24180537462234497,
-0.13203735649585724,
0.1866646409034729,
-0.031839389353990555,
0.03097672015428543,
0.12332747876644135,
-0.05814037099480629,
0.05055662989616394,
-0.23284408450126648,
0.05670931935310364,
0.5290334224700928,
0.09246090799570084,
0.22493162751197815,
0.130848228931427,
-0.018566392362117767,
0.06692206859588623,
0.06500107049942017,
0.0360548160970211,
0.12290973216295242,
0.29205912351608276,
-0.34958136081695557,
0.1462305635213852,
-0.05676022544503212,
0.06840071082115173,
-0.11474625766277313,
-0.6289646029472351,
0.33368176221847534,
0.1689157485961914,
-0.31917881965637207,
0.08784330636262894,
-0.24491262435913086,
0.4515695571899414,
-0.21866492927074432,
0.051713358610868454,
-0.29081207513809204,
0.3248194754123688,
0.05354991927742958,
-0.06190398335456848,
0.11665328592061996,
-0.2613925337791443,
-0.12228914350271225,
-0.024196306243538857,
0.05928691104054451,
-0.33784380555152893,
0.2547750771045685,
0.1873704344034195,
-0.1702093929052353,
-0.25051620602607727,
-0.05147352069616318,
0.20038902759552002,
-0.02789117954671383,
-0.10703574120998383,
0.3322902023792267,
0.313965380191803,
-0.10759731382131577,
-0.005260290112346411,
0.20781831443309784,
0.5430834889411926,
0.36382248997688293,
0.05988190323114395,
0.2568228244781494,
0.11453904956579208,
-0.13745267689228058,
0.06761494278907776,
0.03229411691427231,
0.2886674404144287,
0.08369125425815582,
0.3812454342842102,
0.21704433858394623,
-0.18020711839199066,
0.16716785728931427,
-0.019858915358781815,
0.1490117311477661,
-0.22099998593330383,
0.3357284665107727,
-0.0727917030453682,
0.03644641861319542,
-0.3704918324947357,
0.0609770342707634,
-0.6276515126228333,
-0.0764102190732956,
0.45937708020210266,
-0.01120233815163374,
0.009491429664194584,
-0.06973233819007874,
0.08088760077953339,
-0.10900328308343887,
0.713092029094696,
0.37308043241500854,
0.40819206833839417,
-0.44813087582588196,
-0.09220980107784271,
-0.5804842710494995,
0.07782530784606934,
-0.023873860016465187,
0.16887860000133514,
0.09095201641321182,
-0.14518897235393524,
0.022686989977955818,
0.2757076025009155,
0.2652721703052521,
0.0849514976143837,
0.15117338299751282,
0.09654349088668823,
-0.17954617738723755,
-0.11537550389766693,
0.022908363491296768,
0.06011645868420601,
-0.037616390734910965,
-0.23774856328964233,
0.05600776523351669,
-0.5345263481140137,
-0.005566381383687258,
-0.004136992618441582,
-0.056389711797237396,
-0.010824780911207199,
-0.07826220989227295,
0.33974647521972656,
0.07795253396034241,
0.7522101402282715,
0.006126693449914455,
-0.12574352324008942,
-0.39828866720199585,
-0.3299314081668854,
-0.12806005775928497,
0.14618682861328125,
-0.031772203743457794,
0.23516294360160828,
-0.10757314413785934,
-0.3375990390777588,
-0.3766070306301117,
0.1866876184940338,
0.049685679376125336,
-0.22551830112934113,
-0.1647074669599533,
0.05244824290275574,
0.0788077861070633,
0.00788083579391241,
0.1963626891374588,
0.09204848110675812,
-0.0348258912563324,
0.3125106990337372,
-0.10615725815296173,
-0.35995596647262573,
0.6798825263977051,
-0.22595597803592682,
-0.04740490764379501,
-0.10425861179828644,
0.03658904880285263,
0.09119973331689835,
0.08804003149271011,
-0.5794770121574402,
0.19912905991077423,
0.37699490785598755,
0.113466277718544,
-0.43973103165626526,
0.2614191472530365,
-0.07183176279067993,
0.011540079489350319,
0.03498830646276474,
0.13892114162445068,
0.03210311383008957,
-0.2739153504371643,
-0.024995489045977592,
-0.15673115849494934
] |
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.17262069880962372,
-0.08458222448825836,
-0.09733746200799942,
0.1288861483335495,
0.4222559928894043,
0.20194454491138458,
0.3426592946052551,
0.062195200473070145,
-0.057558659464120865,
0.004357544705271721,
-0.1423119455575943,
0.08249589055776596,
-0.06606011092662811,
0.2489195168018341,
0.11230878531932831,
-0.12542155385017395,
-0.0808454304933548,
-0.11463022977113724,
-0.22911693155765533,
0.0067152781412005424,
-0.20981016755104065,
0.14409378170967102,
-0.20964893698692322,
0.04321177676320076,
-0.4213048219680786,
-0.1652374118566513,
0.08612240105867386,
0.35553839802742004,
-0.03017209842801094,
-0.2586037814617157,
0.37103477120399475,
0.013673114590346813,
0.05071521922945976,
0.406772643327713,
-0.000110941196908243,
0.2821541130542755,
0.42149287462234497,
-0.007743551395833492,
-0.4700692594051361,
-0.41198766231536865,
0.028617534786462784,
-0.25242677330970764,
0.20361192524433136,
-0.12158285081386566,
-0.08969444781541824,
-0.09933535754680634,
-0.04851397126913071,
-0.2351500689983368,
0.4430740475654602,
0.42446836829185486,
0.26970914006233215,
0.27369678020477295,
0.3110579252243042,
-0.09482360631227493,
-0.3082546591758728,
-0.22429151833057404,
0.043680936098098755,
0.5262345671653748,
-0.30415472388267517,
-0.05500207096338272,
0.23694980144500732,
0.18526889383792877,
-0.11026409268379211,
0.039429161697626114,
0.10279257595539093,
0.03683972731232643,
-0.08111803978681564,
-0.3631625175476074,
0.016723638400435448,
0.07219387590885162,
0.24345357716083527,
-0.2260051965713501,
-0.4658712148666382,
-0.16389364004135132,
0.03046916425228119,
-0.3523123860359192,
0.20596472918987274,
0.07249463349580765,
-0.13103802502155304,
0.1562270224094391,
-0.40813392400741577,
-0.1662256270647049,
-0.2331792563199997,
0.47679927945137024,
-0.08346922695636749,
-0.06916534155607224,
-0.10134581476449966,
0.1568792164325714,
0.2081460952758789,
-0.014765377156436443,
0.24560610949993134,
0.01639632135629654,
0.33045879006385803,
0.21354350447654724,
-0.4810214042663574,
0.11584050953388214,
0.016374634578824043,
0.13958978652954102,
0.13585905730724335,
0.23614570498466492,
0.0839766189455986,
-0.05708594247698784,
-0.12385672330856323,
0.08515238761901855,
0.06063329428434372,
0.24538321793079376,
0.00893695279955864,
0.13872648775577545,
0.18724791705608368,
0.3058454394340515,
-0.012289674952626228,
0.03487186133861542,
-0.13719189167022705,
-0.2628459334373474,
-0.08476053178310394,
0.12667277455329895,
0.467296302318573,
-0.06681480258703232,
-0.14578032493591309,
0.22866623103618622,
-0.24972020089626312,
-0.07731279730796814,
0.12552909553050995,
0.5078198313713074,
-0.24598661065101624,
0.10307841747999191,
-0.09110596030950546,
0.24431131780147552,
-0.09848152101039886,
0.028140706941485405,
-0.2782627046108246,
0.15831728279590607,
-0.14690092206001282,
0.1858583241701126,
0.42093828320503235,
-0.4283131957054138,
0.3650217354297638,
-0.08279520273208618,
0.13289399445056915,
-0.265125572681427,
0.07276175171136856,
-0.0731365829706192,
-0.2295968234539032,
0.3315567970275879,
-0.01284829992800951,
0.18786056339740753,
0.32552748918533325,
0.21989955008029938,
-0.008620471693575382,
-0.09329663962125778,
-0.2572564482688904,
-0.5359479784965515,
0.2843952775001526,
0.23464980721473694,
-0.13258175551891327,
-0.23776689171791077,
-0.10398455709218979,
-0.07018804550170898,
-0.08551342785358429,
0.04999091476202011,
-0.2254381775856018,
-0.07588821649551392,
-0.00010202461999142542,
-0.18517398834228516,
0.45798546075820923,
0.4795648455619812,
-0.3562643527984619,
-0.13188329339027405,
-0.08891984820365906,
-0.19939106702804565,
0.10227569192647934,
0.250548779964447,
-0.21025577187538147,
0.267824649810791,
-0.03006298653781414,
-0.2001935839653015,
0.3244524896144867,
-0.2567800283432007,
-0.4303722083568573,
0.22959798574447632,
-0.14158383011817932,
0.07721977680921555,
-0.15979427099227905,
-0.019827786833047867,
-0.23004406690597534,
0.09766857326030731,
0.22241345047950745,
0.45447567105293274,
-0.22194136679172516,
-0.0075083267875015736,
-0.07613692432641983,
-0.28875792026519775,
0.1971726268529892,
0.34950873255729675,
0.1905546486377716,
0.08371218293905258,
0.11229036003351212,
-0.12296734750270844,
0.1389331817626953,
0.07927219569683075,
-0.1288711279630661,
0.22225980460643768,
-0.07304421812295914,
0.06009707599878311,
0.005793769843876362,
0.1931328922510147,
-0.4456617534160614,
0.21716174483299255,
0.2575109004974365,
0.20543895661830902,
-0.15917366743087769,
0.07180064916610718,
-0.3314305543899536,
0.06447815895080566,
-0.32763123512268066,
-0.10173209011554718,
0.1681317239999771,
0.1100919172167778,
0.11499106138944626,
0.14874128997325897,
-0.3477530777454376,
0.585390031337738,
-0.28072652220726013,
0.1544782668352127,
-0.3642595410346985,
0.3336735665798187,
-0.1378077268600464,
0.020809274166822433,
0.0532529316842556,
0.19486890733242035,
0.22709539532661438,
-0.21248048543930054,
-0.12306980043649673,
0.3350648581981659,
-0.09708833694458008,
0.1396981179714203,
0.10056962817907333,
0.020621629431843758,
0.08872149139642715,
-0.27322253584861755,
-0.007592231500893831,
0.17520852386951447,
-0.048422764986753464,
-0.06365393847227097,
0.22217127680778503,
0.2624586522579193,
-0.08243697136640549,
0.3350193500518799,
0.16534501314163208,
-0.01671675406396389,
0.15577521920204163,
0.08227856457233429,
-0.07257554680109024,
-0.08043781667947769,
0.3488464057445526,
-0.28236353397369385,
0.49145302176475525,
-0.17793600261211395,
-0.18835316598415375,
-0.21429792046546936,
0.10730169713497162,
-0.20607487857341766,
0.03680036589503288,
0.18075895309448242,
-0.15274657309055328,
-0.19591234624385834,
-0.14158251881599426,
0.22858905792236328,
0.38311269879341125,
0.1266685575246811,
0.017403505742549896,
0.3330523371696472,
-0.11242228001356125,
-0.12555478513240814,
0.21396216750144958,
0.16420921683311462,
0.2534163296222687,
0.12569065392017365,
-0.10634095966815948,
0.0876750573515892,
-0.3335898220539093,
-0.29772618412971497,
0.04574931412935257,
0.29409992694854736,
-0.3505646884441376,
-0.02660525031387806,
-0.2348109483718872,
-0.10758429020643234,
0.041000716388225555,
-0.49585115909576416,
-0.18313035368919373,
-0.44780924916267395,
-0.16305004060268402,
-0.02450845204293728,
0.10010901838541031,
0.19134411215782166,
-0.1383024901151657,
0.2042524665594101,
0.2681008577346802,
-0.17570725083351135,
-0.19902518391609192,
-0.14131581783294678,
-0.12220615893602371,
0.042546939104795456,
0.190982848405838,
-0.24977903068065643,
0.26150888204574585,
-0.12377609312534332,
-0.19311174750328064,
-0.13389764726161957,
-0.0432528555393219,
0.044891588389873505,
-0.08075837790966034,
0.42538896203041077,
0.04150475934147835,
0.517823338508606,
0.14749515056610107,
-0.05272875726222992,
0.37865927815437317,
-0.07507876306772232,
0.05258660763502121,
0.013706390745937824,
-0.012674442492425442,
0.1713647097349167,
0.10542484372854233,
-0.41975146532058716,
-0.5957536101341248,
-0.31860435009002686,
0.13327908515930176,
-0.1404164880514145,
0.16009151935577393,
0.4751749336719513,
0.13904868066310883,
0.07282308489084244,
-0.027766158804297447,
0.3243483901023865,
-0.29523971676826477,
-0.578493595123291,
0.34275057911872864,
-0.42625951766967773,
-0.39998507499694824,
0.051777783781290054,
0.23373757302761078,
0.1585312783718109,
-0.13686373829841614,
-0.4911375641822815,
-0.29129984974861145,
-0.021032029762864113,
-0.20825208723545074,
-0.14088864624500275,
0.034251514822244644,
-0.081787109375,
-0.1706446260213852,
-0.08072171360254288,
0.052855268120765686,
-0.21539564430713654,
0.020766014233231544,
-0.18977995216846466,
0.10595531016588211,
0.0540597066283226,
0.580053448677063,
-0.2069244682788849,
0.4104653000831604,
0.262797474861145,
-0.09994090348482132,
0.43047305941581726,
-0.1017872616648674,
0.29820674657821655,
-0.03379281610250473,
-0.5136102437973022,
-0.03903919830918312,
-0.024887001141905785,
-0.04935907945036888,
0.24670164287090302,
0.11831137537956238,
-0.17501001060009003,
-0.40237152576446533,
-0.1823296993970871,
-0.4465429186820984,
-0.1094004362821579,
-0.0297661405056715,
0.11023642867803574,
0.06838664412498474,
0.03377164527773857,
0.11739955097436905,
-0.15625622868537903,
-0.028626946732401848,
0.02339094504714012,
0.34780818223953247,
-0.03887943923473358,
0.1180441752076149,
0.006738738156855106,
-0.09217558056116104,
-0.43141868710517883,
0.334654301404953,
-0.17446006834506989,
0.4283646047115326,
-0.19772809743881226,
0.076753169298172,
-0.06717099994421005,
-0.0039034506771713495,
0.6058323979377747,
-0.2651655673980713,
0.11586444824934006,
0.09651879966259003,
0.010437834076583385,
-0.30427059531211853,
-0.09392139315605164,
-0.032578371465206146,
0.24870441854000092,
0.16576611995697021,
0.4472005367279053,
-0.07857001572847366,
-0.16756097972393036,
0.3270869851112366,
0.25485101342201233,
-0.13908441364765167,
-0.32141295075416565,
-0.14267976582050323,
-0.3935248851776123,
-0.22811292111873627,
-0.22428689897060394,
-0.3400646150112152,
0.3046943247318268,
-0.034138038754463196,
-0.16921952366828918,
0.06572646647691727,
-0.09413854032754898,
0.1747606247663498,
0.07752750813961029,
0.13451644778251648,
0.09457381069660187,
0.11386069655418396,
0.3893183767795563,
0.051472947001457214,
0.19698558747768402,
0.6876189112663269,
-0.17472930252552032,
-0.28180399537086487,
0.0031068858224898577,
0.26535898447036743,
0.12662993371486664,
0.2776084244251251,
-0.21346977353096008,
-0.11072660982608795,
0.1917884200811386,
0.19745796918869019,
-0.0059064654633402824,
0.28092122077941895,
0.378507137298584,
0.09109920263290405,
-0.5953509211540222,
-0.5943171977996826,
0.4862525761127472,
-0.09490972012281418,
0.11619789153337479,
0.18356935679912567,
-0.12010638415813446,
-0.13071632385253906,
0.17530809342861176,
-0.18716762959957123,
0.7539352178573608,
-0.05162092670798302,
0.022021446377038956,
0.2660261392593384,
0.2764638364315033,
0.4896042048931122,
-0.3141956627368927,
0.017141269519925117,
-0.22134767472743988,
-0.3019843101501465,
-0.09656082838773727,
-0.11286532878875732,
0.12321501225233078,
0.27900147438049316,
0.04115952551364899,
0.452960729598999,
-0.13979826867580414,
-0.007672024425119162,
0.12030038982629776,
0.27587100863456726,
-0.01236597541719675,
-0.09909754246473312,
-0.6099658608436584,
0.2349267154932022,
-0.11527697741985321,
0.28590962290763855,
-0.14560528099536896,
-0.026654234156012535,
0.01893516816198826,
-0.20110724866390228,
-0.12524820864200592,
0.11030696332454681,
-0.5258551836013794,
0.33524593710899353,
-0.1103220134973526,
-0.19214001297950745,
-0.23488032817840576,
0.14027580618858337,
0.2428167164325714,
0.020909838378429413,
-0.18050271272659302,
-0.016430851072072983,
-0.178729847073555,
-0.24221393465995789,
-0.1114940345287323,
0.006605745293200016,
0.3349570035934448,
-0.14434994757175446,
-0.22991377115249634,
0.09646278619766235,
-0.12504637241363525,
-0.3004515469074249,
0.11817304790019989,
-0.0709114745259285,
-0.10809731483459473,
-0.13218651711940765,
-0.24444091320037842,
-0.1845485419034958,
0.08627714216709137,
-0.17466436326503754,
0.13675302267074585,
0.0688006803393364,
-0.08284232020378113,
0.101688914000988,
0.14947648346424103,
-0.29833418130874634,
-0.1130417063832283,
0.3407585322856903,
-0.26778486371040344,
-0.2979254424571991,
0.4692351222038269,
0.35197198390960693,
-0.15862710773944855,
-0.16132217645645142,
0.11765493452548981,
0.23542238771915436,
-0.2757170796394348,
0.028793087229132652,
0.16200236976146698,
0.30084455013275146,
-0.009347377344965935,
0.3109230399131775,
0.30563995242118835,
0.10084761679172516,
0.007333983201533556,
-0.7206998467445374,
-0.32498931884765625,
0.19461877644062042,
0.12716615200042725,
0.2861979603767395,
0.1761263906955719,
0.11474578827619553,
0.02176538296043873,
-0.14196576178073883,
-0.31081998348236084,
0.056390032172203064,
-0.19300299882888794,
-0.22462239861488342,
0.20448747277259827,
-0.19606387615203857,
0.5058370232582092,
0.0961756706237793,
0.23531509935855865,
-0.18623150885105133,
-0.22380872070789337,
-0.2522975504398346,
0.012597295455634594,
0.12506656348705292,
-0.007205305155366659,
-0.15990473330020905,
0.07668455690145493,
-0.09893525391817093,
-0.10716976225376129,
-0.10151183605194092,
0.19095481932163239,
0.13839571177959442,
0.06878098100423813,
-0.07874584197998047,
0.10012514144182205,
0.03010839968919754,
-0.19079694151878357,
0.028508225455880165,
-0.02513468824326992,
0.3009043335914612,
0.2265722155570984,
0.06183522567152977,
0.024157607927918434,
-0.05330638214945793,
-0.07461787760257721,
-0.1121780127286911,
-0.04140649735927582,
-0.07796362042427063,
0.3595578074455261,
-0.3970215916633606,
-0.027573002502322197,
0.28107017278671265,
0.4986264705657959,
0.3485291004180908,
-0.3341696858406067,
0.1404312252998352,
0.09825072437524796,
0.20083607733249664,
-0.24180537462234497,
-0.13203735649585724,
0.1866646409034729,
-0.031839389353990555,
0.03097672015428543,
0.12332747876644135,
-0.05814037099480629,
0.05055662989616394,
-0.23284408450126648,
0.05670931935310364,
0.5290334224700928,
0.09246090799570084,
0.22493162751197815,
0.130848228931427,
-0.018566392362117767,
0.06692206859588623,
0.06500107049942017,
0.0360548160970211,
0.12290973216295242,
0.29205912351608276,
-0.34958136081695557,
0.1462305635213852,
-0.05676022544503212,
0.06840071082115173,
-0.11474625766277313,
-0.6289646029472351,
0.33368176221847534,
0.1689157485961914,
-0.31917881965637207,
0.08784330636262894,
-0.24491262435913086,
0.4515695571899414,
-0.21866492927074432,
0.051713358610868454,
-0.29081207513809204,
0.3248194754123688,
0.05354991927742958,
-0.06190398335456848,
0.11665328592061996,
-0.2613925337791443,
-0.12228914350271225,
-0.024196306243538857,
0.05928691104054451,
-0.33784380555152893,
0.2547750771045685,
0.1873704344034195,
-0.1702093929052353,
-0.25051620602607727,
-0.05147352069616318,
0.20038902759552002,
-0.02789117954671383,
-0.10703574120998383,
0.3322902023792267,
0.313965380191803,
-0.10759731382131577,
-0.005260290112346411,
0.20781831443309784,
0.5430834889411926,
0.36382248997688293,
0.05988190323114395,
0.2568228244781494,
0.11453904956579208,
-0.13745267689228058,
0.06761494278907776,
0.03229411691427231,
0.2886674404144287,
0.08369125425815582,
0.3812454342842102,
0.21704433858394623,
-0.18020711839199066,
0.16716785728931427,
-0.019858915358781815,
0.1490117311477661,
-0.22099998593330383,
0.3357284665107727,
-0.0727917030453682,
0.03644641861319542,
-0.3704918324947357,
0.0609770342707634,
-0.6276515126228333,
-0.0764102190732956,
0.45937708020210266,
-0.01120233815163374,
0.009491429664194584,
-0.06973233819007874,
0.08088760077953339,
-0.10900328308343887,
0.713092029094696,
0.37308043241500854,
0.40819206833839417,
-0.44813087582588196,
-0.09220980107784271,
-0.5804842710494995,
0.07782530784606934,
-0.023873860016465187,
0.16887860000133514,
0.09095201641321182,
-0.14518897235393524,
0.022686989977955818,
0.2757076025009155,
0.2652721703052521,
0.0849514976143837,
0.15117338299751282,
0.09654349088668823,
-0.17954617738723755,
-0.11537550389766693,
0.022908363491296768,
0.06011645868420601,
-0.037616390734910965,
-0.23774856328964233,
0.05600776523351669,
-0.5345263481140137,
-0.005566381383687258,
-0.004136992618441582,
-0.056389711797237396,
-0.010824780911207199,
-0.07826220989227295,
0.33974647521972656,
0.07795253396034241,
0.7522101402282715,
0.006126693449914455,
-0.12574352324008942,
-0.39828866720199585,
-0.3299314081668854,
-0.12806005775928497,
0.14618682861328125,
-0.031772203743457794,
0.23516294360160828,
-0.10757314413785934,
-0.3375990390777588,
-0.3766070306301117,
0.1866876184940338,
0.049685679376125336,
-0.22551830112934113,
-0.1647074669599533,
0.05244824290275574,
0.0788077861070633,
0.00788083579391241,
0.1963626891374588,
0.09204848110675812,
-0.0348258912563324,
0.3125106990337372,
-0.10615725815296173,
-0.35995596647262573,
0.6798825263977051,
-0.22595597803592682,
-0.04740490764379501,
-0.10425861179828644,
0.03658904880285263,
0.09119973331689835,
0.08804003149271011,
-0.5794770121574402,
0.19912905991077423,
0.37699490785598755,
0.113466277718544,
-0.43973103165626526,
0.2614191472530365,
-0.07183176279067993,
0.011540079489350319,
0.03498830646276474,
0.13892114162445068,
0.03210311383008957,
-0.2739153504371643,
-0.024995489045977592,
-0.15673115849494934
] |
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.49531152844429016,
-0.5315654873847961,
-0.16952887177467346,
0.23028799891471863,
0.12561538815498352,
-0.32973265647888184,
0.30930468440055847,
0.1606469601392746,
-0.332118958234787,
0.21069428324699402,
0.34024766087532043,
0.24001581966876984,
-0.10366974025964737,
-0.04067433625459671,
-0.5593135952949524,
0.036116406321525574,
-0.04641581326723099,
-0.040256697684526443,
0.5563795566558838,
-0.0004837976593989879,
-0.16274650394916534,
0.1379326432943344,
-0.35828524827957153,
-0.08268769830465317,
-0.6165256500244141,
-0.25732946395874023,
0.0004948861314915121,
0.05753704532980919,
-0.05243677273392677,
-0.29491347074508667,
-0.6529920697212219,
-0.006984620355069637,
0.04748382046818733,
0.35157421231269836,
-0.00011530845949891955,
-0.1335371732711792,
0.07265254855155945,
0.2212059646844864,
0.15631820261478424,
0.010191124863922596,
0.37818795442581177,
-0.4317014813423157,
-0.083963543176651,
-0.31965890526771545,
0.1087617427110672,
0.08271576464176178,
0.18914930522441864,
-0.0064339404925704,
0.3377622067928314,
0.3044474124908447,
0.2040829211473465,
0.21620942652225494,
-0.1863318383693695,
0.2537369430065155,
-0.20401278138160706,
0.21323786675930023,
0.07254490256309509,
-0.16971100866794586,
0.2893606424331665,
0.28833523392677307,
-0.040806014090776443,
0.28089848160743713,
-0.22230125963687897,
-0.06099015474319458,
0.07247362285852432,
-0.026083197444677353,
0.30075398087501526,
-0.6823171973228455,
0.35253584384918213,
0.18507474660873413,
0.07844261080026627,
0.15661613643169403,
-0.13152357935905457,
-0.3089883625507355,
-0.08534502983093262,
-0.5059000849723816,
-0.08678282797336578,
0.2549706995487213,
-0.25167116522789,
-0.16171281039714813,
-0.43876519799232483,
0.22428514063358307,
0.05816766619682312,
-0.22304661571979523,
-0.26457980275154114,
0.26339560747146606,
0.10627550631761551,
0.21241280436515808,
0.004716483876109123,
-0.18413060903549194,
-0.2799603044986725,
-0.22863906621932983,
0.24341553449630737,
0.15276029706001282,
-0.15651366114616394,
0.03988265246152878,
-0.11004980653524399,
-0.2451603263616562,
-0.14667773246765137,
0.08428587764501572,
-0.3905354142189026,
0.42038238048553467,
0.05379629135131836,
0.06108326464891434,
-0.09537314623594284,
-0.11219923198223114,
0.15838873386383057,
0.10981855541467667,
0.14820478856563568,
-0.21339213848114014,
-0.29215025901794434,
-0.055090125650167465,
-0.039729297161102295,
-0.2578712999820709,
0.22002862393856049,
0.020839110016822815,
-0.23564057052135468,
-0.022929081693291664,
-0.23400510847568512,
-0.08495549857616425,
0.040226779878139496,
0.09656136482954025,
0.20335018634796143,
0.23969416320323944,
0.04956657066941261,
0.548950731754303,
-0.21804124116897583,
-0.061976391822099686,
-0.40518975257873535,
-0.030911317095160484,
-0.1467275172472,
-0.11426473408937454,
-0.15944218635559082,
0.04690571874380112,
-0.13788674771785736,
0.1525098830461502,
0.0012941560707986355,
-0.019640568643808365,
0.31998690962791443,
-0.17425929009914398,
0.015171539969742298,
-0.4309893548488617,
0.06939662247896194,
0.07898516952991486,
-0.022559218108654022,
0.2723821997642517,
-0.07783211767673492,
-0.14691606163978577,
-0.4247119128704071,
0.32308870553970337,
-0.47336873412132263,
-0.1793971061706543,
0.04624716192483902,
0.10822682082653046,
0.03587869554758072,
0.17135292291641235,
-0.07869057357311249,
0.10967491567134857,
0.34849733114242554,
0.13272078335285187,
-0.02489549294114113,
-0.29076194763183594,
-0.48528510332107544,
-0.2281450629234314,
0.06027018651366234,
0.19225887954235077,
0.05795352905988693,
0.029165083542466164,
0.46398812532424927,
0.1940547525882721,
0.6476495862007141,
0.5497220158576965,
0.15719173848628998,
0.07738746702671051,
-0.03587469458580017,
0.5512923002243042,
0.11637643724679947,
-0.11337680369615555,
-0.44886380434036255,
0.26508936285972595,
-0.2791203260421753,
-0.3341400623321533,
0.263680636882782,
0.19844385981559753,
0.37692341208457947,
-0.01522256713360548,
0.28898924589157104,
0.226331889629364,
0.09171096235513687,
0.43471452593803406,
-0.33454328775405884,
-0.03269444778561592,
0.17914849519729614,
0.1259746104478836,
-0.04713115096092224,
-0.30979013442993164,
-0.0765223577618599,
-0.24409154057502747,
0.11960528045892715,
-0.15753494203090668,
0.042870815843343735,
0.29620519280433655,
0.021966971457004547,
-0.12250732630491257,
-0.06533338129520416,
-0.006316871382296085,
0.24254676699638367,
0.28521573543548584,
0.02025540918111801,
0.3112215995788574,
-0.18680836260318756,
-0.031023547053337097,
0.24666331708431244,
0.10158129036426544,
-0.11560599505901337,
-0.19576680660247803,
0.06601626425981522,
-0.17193278670310974,
-0.03854396566748619,
0.1197185069322586,
0.10257472842931747,
0.2863757908344269,
-0.08214255422353745,
0.08058764785528183,
0.21906737983226776,
-0.03250296786427498,
-0.0987999364733696,
-0.30950474739074707,
-0.1771303117275238,
0.08050709217786789,
0.3629033863544464,
0.07375738024711609,
-0.08659419417381287,
0.2838697135448456,
0.37524428963661194,
-0.01148435939103365,
-0.3486463129520416,
0.019776582717895508,
0.44228631258010864,
0.0011335578747093678,
0.3061336278915405,
-0.11347348988056183,
-0.12447414547204971,
-0.02527618035674095,
0.20555555820465088,
0.4379793703556061,
0.19637811183929443,
0.34081172943115234,
0.24347493052482605,
0.032631173729896545,
0.024082962423563004,
0.17473430931568146,
0.2500101327896118,
0.01864180713891983,
0.14919936656951904,
0.45898064970970154,
0.21193957328796387,
0.17452484369277954,
-0.18399961292743683,
0.30833277106285095,
0.434673547744751,
-0.001161998137831688,
-0.1568806916475296,
0.34532228112220764,
-0.1326969712972641,
0.03225129842758179,
0.22805950045585632,
-0.520589292049408,
0.18833746016025543,
0.30400753021240234,
0.017753198742866516,
-0.09174429625272751,
-0.1519114375114441,
-0.07133185118436813,
0.049368154257535934,
0.16062414646148682,
0.029037049040198326,
0.09507553279399872,
0.205295130610466,
0.17994357645511627,
-0.23925647139549255,
-0.32000964879989624,
0.020747065544128418,
0.2429744452238083,
-0.0013508200645446777,
0.0810675397515297,
-0.18529877066612244,
0.31295549869537354,
-0.044300563633441925,
0.02347838133573532,
-0.25184908509254456,
-0.19601795077323914,
0.1010059043765068,
0.11810941249132156,
0.1571974903345108,
-0.007350446656346321,
0.06902491301298141,
-0.0020894247572869062,
0.27087080478668213,
0.046014007180929184,
-0.05743832141160965,
0.056955672800540924,
-0.24510616064071655,
-0.03372131660580635,
0.3722385764122009,
0.07904449105262756,
0.3720952570438385,
-0.07977095246315002,
-0.07572902739048004,
-0.16917458176612854,
-0.3268730342388153,
0.017446111887693405,
0.011324908584356308,
-0.10110301524400711,
-0.03614816069602966,
0.051564913243055344,
-0.15609265863895416,
-0.09317173063755035,
0.23670454323291779,
-0.3002384305000305,
-0.23273003101348877,
0.02921469882130623,
-0.052045661956071854,
-0.4248180091381073,
0.005097741726785898,
0.20825745165348053,
-0.4068979322910309,
-0.06672587245702744,
0.1968751847743988,
0.30574536323547363,
0.43997079133987427,
-0.1341743916273117,
0.18665465712547302,
0.017512576654553413,
0.2654106914997101,
0.03740748018026352,
-0.07299214601516724,
-0.08812831342220306,
0.247916579246521,
-0.0408950038254261,
-0.1777164191007614,
-0.2335483729839325,
0.05005228519439697,
-0.07026199996471405,
0.2776538133621216,
-0.035401925444602966,
-0.16988971829414368,
-0.36689791083335876,
0.4108218550682068,
-0.2165423333644867,
0.05440431088209152,
0.4076308012008667,
0.1833181232213974,
-0.1927207112312317,
0.25627556443214417,
0.045966967940330505,
-0.053286559879779816,
-0.21950827538967133,
0.011528660543262959,
-0.05715949833393097,
0.22372505068778992,
0.19734396040439606,
0.576896607875824,
0.23447218537330627,
-0.5633324384689331,
0.20024970173835754,
-0.284883588552475,
-0.28701335191726685,
0.013394087553024292,
-0.059088390320539474,
0.4472934901714325,
0.1093297228217125,
0.008659067563712597,
0.2384122908115387,
-0.013836316764354706,
-0.29394522309303284,
0.0700010359287262,
0.06571943312883377,
-0.2700682580471039,
-0.1444709748029709,
0.05974902585148811,
0.09127199649810791,
0.24207907915115356,
-0.1904575675725937,
0.06798385828733444,
-0.34950459003448486,
-0.19373826682567596,
-0.21417292952537537,
-0.055104538798332214,
-0.10804323107004166,
-0.4080316126346588,
-0.5877993702888489,
-0.06784309446811676,
-0.7291843295097351,
0.5164377689361572,
0.3962756395339966,
0.15496860444545746,
0.11757373809814453,
-0.056941766291856766,
0.1957092583179474,
-0.30491185188293457,
0.6568159461021423,
-0.002126693958416581,
-0.19846245646476746,
0.04017455503344536,
-0.3029317855834961,
-0.352210134267807,
0.017192088067531586,
-0.021896572783589363,
0.3239719271659851,
0.38686251640319824,
0.8028348088264465,
-0.08704409748315811,
-0.26739436388015747,
-0.15316839516162872,
-0.1316920965909958,
0.09508426487445831,
-0.18126226961612701,
-0.23150067031383514,
-0.21567663550376892,
-0.3307581841945648,
0.36500126123428345,
0.07358372956514359,
0.40533044934272766,
-0.2350696474313736,
-0.3139362633228302,
-0.10817892104387283,
-0.11345918476581573,
0.30998334288597107,
0.023244453594088554,
0.20329724252223969,
-0.15809398889541626,
0.03337906673550606,
0.07405225932598114,
0.17928485572338104,
0.19553233683109283,
-0.1693631261587143,
0.1570604294538498,
-0.16796091198921204,
0.041220176964998245,
0.04168584197759628,
0.1953934282064438,
0.4357798397541046,
0.043791498988866806,
0.1081303283572197,
-0.3416273593902588,
0.7598040103912354,
-0.06964154541492462,
0.34242573380470276,
0.10691875964403152,
0.3957110643386841,
-0.3597363829612732,
0.11386134475469589,
-0.04760599508881569,
0.32274559140205383,
0.04729313403367996,
0.024957694113254547,
-0.5631775259971619,
-0.05552634596824646,
-0.0977516621351242,
0.4544781744480133,
1.0650627613067627,
-0.28707167506217957,
0.14489398896694183,
-0.23203563690185547,
0.08272043615579605,
0.17718112468719482,
-0.42261457443237305,
0.10261944681406021,
-0.546008825302124,
-0.1650376170873642,
0.05918540060520172,
-0.13425227999687195,
0.30775192379951477,
0.17995409667491913,
0.0870337262749672,
0.15314887464046478,
0.22247235476970673,
0.16010281443595886,
-0.14536219835281372,
0.47699758410453796,
-0.055990397930145264,
-0.37101849913597107,
0.11724919080734253,
0.1382143795490265,
0.054304953664541245,
-0.10338381677865982,
0.1092979833483696,
0.024671917781233788,
-0.15722543001174927,
-0.16437767446041107,
-0.20603753626346588,
-0.1709199696779251,
-0.410235732793808,
0.3210156261920929,
0.20673982799053192,
0.04112173616886139,
-0.02797289937734604,
0.3484251797199249,
0.1181502714753151,
0.27644646167755127,
0.03974580392241478,
0.21101093292236328,
0.13616175949573517,
0.02959880791604519,
0.20981356501579285,
-0.34266984462738037,
0.06375468522310257,
-0.19727997481822968,
-0.16355076432228088,
-0.09586647897958755,
0.05441363900899887,
0.021474208682775497,
-0.2595739960670471,
-0.0013815589481964707,
0.4683527648448944,
0.11738486588001251,
-0.09850402921438217,
-0.026353955268859863,
-0.3687492311000824,
-0.15892954170703888,
0.09248132258653641,
-0.045375458896160126,
-0.24044321477413177,
0.43793022632598877,
-0.029869113117456436,
-0.28304335474967957,
0.025305364280939102,
0.2725931406021118,
-0.028667453676462173,
-0.11068309098482132,
0.2649388313293457,
-0.172404482960701,
-0.3740746080875397,
-0.17819206416606903,
0.31513237953186035,
-0.29601573944091797,
0.010842405259609222,
-0.06335364282131195,
0.015535778366029263,
-0.22652998566627502,
0.03855154663324356,
0.07902111858129501,
-0.19806575775146484,
0.01188632007688284,
-0.04777437075972557,
-0.292439728975296,
-0.5503078699111938,
-0.2980763912200928,
-0.27318471670150757,
0.06548531353473663,
-0.015557456761598587,
0.19829872250556946,
-0.24589376151561737,
0.035197336226701736,
-0.28078049421310425,
0.04888729751110077,
-0.24679169058799744,
0.27972257137298584,
-0.16899190843105316,
-0.3845099210739136,
-0.3008623719215393,
0.05264968052506447,
0.21309436857700348,
0.5159612894058228,
-0.1575528234243393,
-0.249137744307518,
-0.015515297651290894,
0.12416575849056244,
0.10787467658519745,
-0.39952629804611206,
0.11418594419956207,
0.17622479796409607,
-0.2904110252857208,
-0.2819698452949524,
0.014165377244353294,
0.03861110284924507,
-0.15377873182296753,
-0.25762927532196045,
0.38842305541038513,
0.21648241579532623,
0.06584394723176956,
0.23126083612442017,
-0.13867412507534027,
0.310728520154953,
0.14474716782569885,
0.24804773926734924,
0.14695212244987488,
0.06340035796165466,
0.002955917501822114,
0.039362795650959015,
0.5078856945037842,
-0.11042866110801697,
0.007241057697683573,
-0.11577024310827255,
-0.12562234699726105,
0.16503705084323883,
0.06084909662604332,
0.2264760434627533,
-0.16814066469669342,
-0.2976420223712921,
0.39687561988830566,
0.24299584329128265,
-0.1949479579925537,
-0.12401227653026581,
0.39007672667503357,
-0.17881573736667633,
0.08722563087940216,
0.1557319611310959,
0.2607516050338745,
0.17120063304901123,
-0.20706309378147125,
0.047071583569049835,
0.28730231523513794,
-0.4762457609176636,
-0.3216889500617981,
-0.1156013011932373,
0.08699069172143936,
0.06417380273342133,
0.41792500019073486,
0.010468833148479462,
0.02601848542690277,
0.34529030323028564,
-0.025864191353321075,
0.5836876034736633,
-0.017004644498229027,
0.3134091794490814,
-0.1671290248632431,
-0.05666700378060341,
-0.16957995295524597,
0.29387956857681274,
-0.025153882801532745,
0.17895686626434326,
-0.10782836377620697,
0.17647768557071686,
-0.11660609394311905,
-0.2088211625814438,
0.028081880882382393,
0.599124014377594,
-0.3017575442790985,
-0.24418489634990692,
-0.11273110657930374,
-0.005968406330794096,
-0.2675643861293793,
0.040552765130996704,
0.05637209489941597,
0.01782977022230625,
0.1266627162694931,
0.3407028317451477,
0.028413075953722,
-0.1761394739151001,
-0.18052154779434204,
-0.04319241642951965,
0.2790890336036682,
-0.298813134431839,
0.18562597036361694,
0.015286815352737904,
0.28627315163612366,
0.092853844165802,
-0.11171353608369827,
0.5503319501876831,
0.4608731269836426,
-0.4589519798755646,
-0.06280821561813354,
-0.10845906287431717,
0.11659683287143707,
0.04767575487494469,
0.22005116939544678,
0.029872436076402664,
0.24773699045181274,
0.11281674355268478,
0.0021530285011976957,
-0.2931624948978424,
-0.35620996356010437,
-0.01054508239030838,
-0.014918699860572815,
0.14501895010471344,
0.30338749289512634,
-0.03182670474052429,
-0.3631119132041931,
-0.18503370881080627,
0.05891641974449158,
-0.3338313400745392,
0.0291343554854393,
0.18709278106689453,
-0.3277791738510132,
0.1497633308172226,
0.0080984802916646,
0.06801758706569672,
-0.1722191870212555,
0.24307754635810852,
0.17255352437496185,
0.30018383264541626,
-0.21755248308181763,
-0.12573489546775818,
-0.504382312297821,
0.08435379713773727,
0.08224809169769287,
-0.33336710929870605,
-0.08316298574209213,
0.12165296822786331,
0.10116107016801834,
0.12630212306976318,
0.09697109460830688,
0.2900777757167816,
0.07219504565000534,
0.4266239106655121,
-0.4099590480327606,
0.6290706396102905,
-0.17453515529632568,
-0.16196304559707642,
0.14385347068309784,
-0.49804043769836426,
0.4280380606651306,
-0.0921044796705246,
0.10164802521467209,
-0.12121523916721344,
0.25248444080352783,
-0.2613580822944641,
0.24895232915878296,
0.33765748143196106,
0.13738387823104858,
0.37910211086273193,
-0.06412941962480545,
0.03806261345744133,
0.08482155948877335,
0.4413319230079651,
-0.23218673467636108,
0.08265018463134766,
0.08332239836454391,
0.1831205189228058,
0.05464126542210579,
0.12475824356079102,
-0.13524466753005981,
0.1376792937517166,
0.046284496784210205,
-0.4186747968196869,
-0.1336519867181778,
-0.03416551277041435,
-0.04554133862257004,
0.2542324960231781,
-0.2590351104736328,
0.2475590854883194,
0.18333426117897034,
-0.04446396231651306,
-0.24488407373428345,
-0.23271138966083527,
0.3662105202674866,
-0.36898961663246155,
-0.29683560132980347,
-0.3429131805896759,
0.15190725028514862,
0.16320578753948212,
0.35042282938957214,
0.03308877721428871,
-0.174374058842659,
0.39589616656303406,
-0.14295342564582825,
-0.5078334212303162,
0.3442976772785187,
-0.0517096221446991,
-0.3934423625469208,
-0.10159389674663544,
0.006404574494808912,
-0.21524760127067566,
0.047587331384420395,
-0.11895640194416046,
-0.24146626889705658
] |
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.45069557428359985,
-0.3895411193370819,
-0.047282397747039795,
0.16293282806873322,
0.11493267118930817,
-0.281549334526062,
0.2656876742839813,
0.25873270630836487,
-0.39236271381378174,
0.18883506953716278,
0.06290731579065323,
0.37189486622810364,
-0.08907100558280945,
-0.21051129698753357,
-0.548255443572998,
0.2360696941614151,
0.08393265306949615,
-0.031093280762434006,
0.5445740818977356,
-0.11811190843582153,
-0.17544130980968475,
0.17737272381782532,
-0.28172484040260315,
0.05843984708189964,
-0.5508944988250732,
-0.10750378668308258,
0.09916307032108307,
0.20624370872974396,
-0.00795962754637003,
-0.33651596307754517,
-0.6048409938812256,
-0.006239860784262419,
-0.006705764215439558,
0.23803074657917023,
-0.00012088942457921803,
-0.02618815377354622,
-0.05014261230826378,
0.3045709431171417,
0.17736290395259857,
0.1757727861404419,
0.5087658762931824,
-0.26773032546043396,
-0.2065659463405609,
-0.08143781870603561,
0.07176151871681213,
-0.17324192821979523,
0.16467098891735077,
0.11087147146463394,
0.3598265051841736,
0.31139734387397766,
0.12591460347175598,
0.34641730785369873,
-0.26953062415122986,
0.16747678816318512,
-0.35486340522766113,
0.1909782588481903,
0.012733802199363708,
-0.16120794415473938,
0.10269767045974731,
0.1404293328523636,
-0.07313848286867142,
0.11146735399961472,
-0.20695137977600098,
0.01126791536808014,
0.11816699802875519,
-0.07653100043535233,
0.33405575156211853,
-0.5317918658256531,
0.3109237849712372,
0.15555092692375183,
-0.13046512007713318,
0.2259666919708252,
-0.044776298105716705,
-0.22712399065494537,
-0.1173175573348999,
-0.4069029986858368,
-0.06592991948127747,
0.1536681354045868,
-0.22336429357528687,
-0.24925774335861206,
-0.2870897054672241,
0.20720893144607544,
0.12205719202756882,
-0.18539755046367645,
-0.1608421802520752,
0.1784258931875229,
0.2193140983581543,
0.18783827126026154,
0.09174033999443054,
-0.07948040217161179,
-0.34644657373428345,
-0.18999801576137543,
0.09325649589300156,
0.16413527727127075,
-0.2648392617702484,
0.08634991943836212,
0.016287384554743767,
-0.2284547984600067,
-0.17901863157749176,
-0.04983057081699371,
-0.49086305499076843,
0.5438268780708313,
-0.0379486121237278,
0.11003901809453964,
-0.05408289283514023,
-0.05073220282793045,
0.07112932950258255,
0.10738134384155273,
0.31452393531799316,
-0.03703870251774788,
-0.2704130709171295,
0.060651764273643494,
-0.18885760009288788,
-0.21573768556118011,
0.15920040011405945,
-0.11826540529727936,
-0.4101751744747162,
-0.0712793618440628,
-0.34431710839271545,
-0.042115263640880585,
0.06168815866112709,
0.24650046229362488,
0.13574212789535522,
0.27843767404556274,
0.11647000908851624,
0.607961893081665,
-0.29855212569236755,
-0.11464725434780121,
-0.47886550426483154,
0.030869295820593834,
-0.06569701433181763,
-0.0983157679438591,
-0.15332680940628052,
0.14121925830841064,
-0.058075305074453354,
0.09280823916196823,
-0.04242530092597008,
0.13744574785232544,
0.2228012979030609,
-0.056617461144924164,
0.14325524866580963,
-0.3872443437576294,
0.1344207376241684,
0.19697634875774384,
-0.0905410423874855,
0.32743480801582336,
0.007517463061958551,
-0.16623865067958832,
-0.3650248050689697,
0.1921868622303009,
-0.5542652606964111,
-0.15445217490196228,
-0.1172218769788742,
0.03001488372683525,
-0.025694143027067184,
0.3321104347705841,
-0.12659011781215668,
0.06592562049627304,
0.060163188725709915,
-0.006712060887366533,
-0.15191656351089478,
-0.4198377728462219,
-0.5100106596946716,
-0.13090765476226807,
0.03543860465288162,
0.22847454249858856,
0.007690356113016605,
-0.006162830162793398,
0.41477495431900024,
0.18958939611911774,
0.6329807043075562,
0.6403676867485046,
0.03653004765510559,
0.04567540064454079,
-0.20620867609977722,
0.43344786763191223,
0.007864453829824924,
-0.13665762543678284,
-0.3977266252040863,
0.2765938937664032,
-0.24921254813671112,
-0.2269997000694275,
0.12424575537443161,
0.08392326533794403,
0.27454015612602234,
-0.06252637505531311,
0.1646529883146286,
0.06087794899940491,
0.137464240193367,
0.3524225056171417,
-0.3490796685218811,
0.0038462860975414515,
-0.018544137477874756,
0.07427861541509628,
-0.04089733958244324,
-0.1899452954530716,
-0.039868272840976715,
-0.22908440232276917,
0.02772253192961216,
-0.10958478599786758,
0.008847435005009174,
0.21466833353042603,
0.11137916892766953,
-0.1869162619113922,
0.042484551668167114,
0.1480465680360794,
0.2814902067184448,
0.3698044717311859,
-0.2152000516653061,
0.2599089443683624,
-0.0825214758515358,
-0.029724877327680588,
0.280651330947876,
0.12981002032756805,
-0.11571959406137466,
-0.24777677655220032,
-0.003191800555214286,
-0.11682786047458649,
-0.2420945167541504,
0.09018228203058243,
0.06703608483076096,
0.39223676919937134,
0.10274642705917358,
-0.01898108422756195,
0.28642818331718445,
-0.07893281430006027,
-0.10342089831829071,
-0.2746036946773529,
-0.21790288388729095,
-0.0040639047510921955,
0.3598761260509491,
0.020687319338321686,
-0.020982718095183372,
0.1538764238357544,
0.29799118638038635,
-0.10212055593729019,
-0.22007913887500763,
0.10737763345241547,
0.33051034808158875,
0.06490244716405869,
0.17376643419265747,
-0.1327221691608429,
-0.12965834140777588,
-0.1472824364900589,
0.2585274875164032,
0.48646143078804016,
0.23301135003566742,
0.29209044575691223,
0.16354481875896454,
-0.03659876435995102,
0.08781810849905014,
0.18755851686000824,
0.4652346074581146,
0.10401672124862671,
0.19912083446979523,
0.645046591758728,
0.1737266480922699,
0.22684723138809204,
-0.10093753784894943,
0.42203351855278015,
0.3750990629196167,
0.03835802152752876,
-0.2353621870279312,
0.38457703590393066,
-0.14131048321723938,
-0.09572209417819977,
0.3067462742328644,
-0.5021466016769409,
0.2544325590133667,
0.08909796178340912,
-0.022122928872704506,
-0.014840769581496716,
-0.24618075788021088,
-0.025779366493225098,
-0.04386531189084053,
0.1368955373764038,
0.1569819450378418,
0.18070130050182343,
0.15680348873138428,
0.2176477611064911,
-0.301388680934906,
-0.3200886845588684,
0.1313551515340805,
0.2890084981918335,
-0.1799798160791397,
0.09865761548280716,
-0.23438593745231628,
0.5450370907783508,
0.029058976098895073,
0.18980219960212708,
-0.2035868912935257,
-0.32128411531448364,
0.13697685301303864,
0.32577240467071533,
0.2375268042087555,
0.02290705405175686,
-0.011099284514784813,
0.0008418410434387624,
0.09584806114435196,
0.012094846926629543,
-0.100232794880867,
0.07725408673286438,
-0.40604740381240845,
-0.10352326184511185,
0.41331008076667786,
-0.020018883049488068,
0.15610992908477783,
0.021508431062102318,
-0.1393609493970871,
-0.1392412632703781,
-0.3856172561645508,
0.029484691098332405,
0.06737160682678223,
0.042910706251859665,
-0.05716732516884804,
-0.019458461552858353,
-0.24998128414154053,
-0.021731790155172348,
0.28675273060798645,
-0.3686533570289612,
-0.1650763303041458,
0.1257060170173645,
-0.2890627086162567,
-0.3887491524219513,
-0.004057878162711859,
0.3380639851093292,
-0.269081711769104,
0.01694292575120926,
0.07698021829128265,
0.03629577159881592,
0.34479963779449463,
-0.0609903559088707,
-0.014744218438863754,
0.07604443281888962,
0.21775949001312256,
-0.17319327592849731,
-0.04938473924994469,
-0.1005869135260582,
0.23645032942295074,
-0.006588303484022617,
-0.18477216362953186,
-0.1687854826450348,
0.05334661900997162,
-0.05925292521715164,
0.19087563455104828,
-0.09321201592683792,
-0.06752962619066238,
-0.2792484164237976,
0.5511071085929871,
-0.22006049752235413,
-0.13584202527999878,
0.3535010516643524,
0.21898509562015533,
-0.20786018669605255,
0.17708981037139893,
-0.05373657867312431,
0.10267473012208939,
-0.2086295336484909,
-0.07960845530033112,
-0.022159511223435402,
0.17777884006500244,
0.2634582817554474,
0.6565592288970947,
0.16943709552288055,
-0.5546485781669617,
0.46042048931121826,
-0.15751558542251587,
-0.16103655099868774,
0.03290509805083275,
-0.041207797825336456,
0.37070155143737793,
0.10707756131887436,
0.06402763724327087,
0.21230341494083405,
0.04502564296126366,
-0.36827659606933594,
0.17853257060050964,
0.15157361328601837,
-0.08370044082403183,
-0.1060362309217453,
0.12393366545438766,
0.09612038731575012,
0.12625834345817566,
-0.14473630487918854,
0.05626538023352623,
-0.3013879358768463,
-0.21971073746681213,
-0.035473331809043884,
0.0004961946397088468,
0.003947964869439602,
-0.42131203413009644,
-0.562393844127655,
-0.08087392896413803,
-0.6648805141448975,
0.3926232159137726,
0.2515885531902313,
0.3031933307647705,
0.04637080803513527,
0.04596588760614395,
0.2508901059627533,
-0.3131658136844635,
0.7168620824813843,
0.09743509441614151,
-0.09889978170394897,
0.19963204860687256,
-0.32481202483177185,
-0.4253261387348175,
-0.08933749049901962,
0.1086106225848198,
0.31602269411087036,
0.2753642499446869,
0.901477038860321,
-0.0413435623049736,
-0.4147057831287384,
-0.2874899208545685,
-0.19018155336380005,
0.04968776926398277,
-0.1471257507801056,
-0.15749876201152802,
-0.24635668098926544,
-0.1956486999988556,
0.26433077454566956,
0.011448868550360203,
0.25821465253829956,
-0.22034776210784912,
-0.24665875732898712,
-0.06179315224289894,
-0.09872575104236603,
0.3484356105327606,
-0.017023658379912376,
0.15591025352478027,
0.016718393191695213,
0.11871358752250671,
0.1637171357870102,
0.1730438619852066,
0.23859408497810364,
-0.2919006049633026,
0.29313895106315613,
-0.18073894083499908,
0.13434043526649475,
0.13936454057693481,
0.01682586781680584,
0.4543551206588745,
0.045916568487882614,
0.1290711760520935,
-0.4070771336555481,
0.6302627325057983,
0.04906676709651947,
0.3861461877822876,
0.1993946135044098,
0.3371492326259613,
-0.37744420766830444,
0.30040243268013,
-0.02960355393588543,
0.28437289595603943,
-0.04927801713347435,
0.10184561461210251,
-0.4722968339920044,
0.12413200736045837,
0.0038171480409801006,
0.5101211071014404,
0.9462087154388428,
-0.38603755831718445,
0.1506652683019638,
-0.27427762746810913,
-0.01720230095088482,
0.16399142146110535,
-0.46860837936401367,
0.10104462504386902,
-0.455746591091156,
-0.3033408522605896,
0.008599938824772835,
-0.07561609894037247,
0.3385702073574066,
0.1963641494512558,
0.2635624408721924,
0.12896734476089478,
0.14500223100185394,
0.1547420620918274,
-0.03221919387578964,
0.36460885405540466,
0.2569495439529419,
-0.36165210604667664,
0.20991121232509613,
0.08650806546211243,
0.10231520235538483,
-0.0712665393948555,
0.10382845252752304,
0.01861974596977234,
-0.15366403758525848,
0.04832407459616661,
-0.13981838524341583,
-0.08893828839063644,
-0.37950289249420166,
0.32939592003822327,
0.2940427362918854,
0.2540566921234131,
-0.012971799820661545,
0.2836957573890686,
0.11308341473340988,
0.02578802779316902,
-0.02592221274971962,
0.2413247674703598,
0.24276000261306763,
0.02859828621149063,
0.2847883701324463,
-0.4256587624549866,
0.07922922819852829,
-0.20826347172260284,
-0.07657322287559509,
-0.1313905417919159,
-0.01912718638777733,
-0.03958861902356148,
-0.2955995202064514,
0.048103686422109604,
0.4833645522594452,
0.39676475524902344,
0.03772808611392975,
-0.06517862528562546,
-0.25902336835861206,
-0.14063036441802979,
0.019114762544631958,
-0.07555960863828659,
-0.1697656512260437,
0.3989981412887573,
-0.1596679985523224,
-0.2789803147315979,
0.05494735389947891,
0.319086492061615,
-0.17582446336746216,
-0.047692134976387024,
0.29040253162384033,
-0.24132579565048218,
-0.296659916639328,
-0.07821537554264069,
0.221063494682312,
-0.19759365916252136,
0.022477125748991966,
-0.08514154702425003,
0.03153303265571594,
-0.3125320374965668,
0.1756526678800583,
-0.026384860277175903,
-0.16827362775802612,
-0.11906038224697113,
-0.16533522307872772,
-0.17141641676425934,
-0.5735746026039124,
-0.4756644368171692,
-0.4286077618598938,
-0.027644870802760124,
0.025606835260987282,
0.09153694659471512,
-0.23187661170959473,
0.00143389031291008,
-0.20345613360404968,
-0.004083952400833368,
-0.2192687690258026,
0.22260820865631104,
-0.35013943910598755,
-0.2844914495944977,
-0.17893394827842712,
-0.03944192826747894,
0.1347631812095642,
0.43825170397758484,
-0.11854760348796844,
-0.16472740471363068,
-0.11321496963500977,
0.18717531859874725,
0.09964455664157867,
-0.4745822846889496,
0.16567659378051758,
0.25032344460487366,
-0.4242209196090698,
-0.28613007068634033,
0.043825823813676834,
0.07101088762283325,
-0.22039642930030823,
-0.27853313088417053,
0.48030227422714233,
0.04637790098786354,
0.15372096002101898,
0.2163335084915161,
0.037378307431936264,
0.3629659414291382,
0.11198127269744873,
0.19452546536922455,
0.030420389026403427,
-0.05731596425175667,
-0.08808505535125732,
0.020354827865958214,
0.39671650528907776,
-0.08618956804275513,
0.08648676425218582,
-0.1419200748205185,
-0.17337532341480255,
0.09060823917388916,
0.06664242595434189,
0.14094360172748566,
-0.0879267007112503,
-0.41162970662117004,
0.5136479139328003,
0.07845292240381241,
-0.1498870849609375,
-0.28120526671409607,
0.2699750065803528,
-0.09631117433309555,
-0.03262018784880638,
0.02404116839170456,
0.4211629629135132,
0.07769393175840378,
-0.03212898224592209,
0.07395783066749573,
0.2720724940299988,
-0.5317792892456055,
-0.2952333390712738,
-0.14082464575767517,
0.07017003744840622,
0.1684831976890564,
0.4127978980541229,
-0.14482903480529785,
-0.05421072244644165,
0.2911917567253113,
0.05993853136897087,
0.5728493332862854,
0.17036087810993195,
0.4189438223838806,
-0.12044169008731842,
-0.20074743032455444,
-0.24468562006950378,
0.38750067353248596,
-0.021160854026675224,
0.22978472709655762,
-0.1253010481595993,
0.1403176635503769,
-0.16624963283538818,
-0.4690264165401459,
-0.05899681895971298,
0.6085995435714722,
-0.37073951959609985,
-0.24142445623874664,
-0.04724935442209244,
0.03076183795928955,
-0.1974385678768158,
0.16101686656475067,
-0.01122652180492878,
0.06070079281926155,
0.17065754532814026,
0.391031414270401,
-0.11837402731180191,
-0.08867580443620682,
-0.30246448516845703,
0.008697333745658398,
0.34118592739105225,
-0.12345954775810242,
0.14053678512573242,
-0.14753083884716034,
0.12450855225324631,
0.03214551508426666,
-0.15959708392620087,
0.6055914759635925,
0.5521281957626343,
-0.3411698639392853,
-0.1187712550163269,
-0.1353069692850113,
0.1968230903148651,
0.052787940949201584,
0.1682756245136261,
-0.11120272427797318,
0.12521806359291077,
-0.0026617383118718863,
-0.12134113162755966,
-0.2243858426809311,
-0.4974933862686157,
-0.07655834406614304,
0.162883460521698,
0.24054603278636932,
0.3049062490463257,
-0.04927734658122063,
-0.23106913268566132,
-0.028005462139844894,
0.1674404889345169,
0.009860594756901264,
0.06967676430940628,
0.22458815574645996,
-0.2460329681634903,
0.15211045742034912,
0.0025107190012931824,
0.043881818652153015,
-0.1660669445991516,
0.2478758692741394,
0.03876806050539017,
0.11368151009082794,
-0.2455693781375885,
-0.05063625052571297,
-0.5876190662384033,
0.1819281131029129,
0.11531629413366318,
-0.1236991211771965,
0.07070431858301163,
0.024534735828638077,
0.019816603511571884,
-0.08728956431150436,
0.12677843868732452,
0.22818197309970856,
0.29388323426246643,
0.46105656027793884,
-0.41858169436454773,
0.6147733926773071,
-0.22207880020141602,
-0.16897009313106537,
0.08847488462924957,
-0.4843544065952301,
0.5632554292678833,
-0.03184882178902626,
0.048795200884342194,
0.009941015392541885,
0.14357000589370728,
-0.26664116978645325,
0.369517058134079,
0.44439029693603516,
0.1392309069633484,
0.3444249927997589,
-0.03970525413751602,
0.012215418741106987,
0.08981965482234955,
0.5262331962585449,
-0.22024811804294586,
-0.10357922315597534,
-0.077149897813797,
0.1054740622639656,
0.09775674343109131,
0.1441343128681183,
-0.19947412610054016,
-0.0298762246966362,
0.12576426565647125,
-0.3371969163417816,
-0.25274890661239624,
0.09939832985401154,
-0.09425805509090424,
0.37212640047073364,
-0.15031611919403076,
0.3240281343460083,
0.2423541396856308,
-0.054916977882385254,
-0.3557983338832855,
-0.16337211430072784,
0.3820387125015259,
-0.41334471106529236,
-0.19887840747833252,
-0.37274107336997986,
0.21037499606609344,
-0.025548769161105156,
0.2667754888534546,
0.19617263972759247,
-0.2702796757221222,
0.278615266084671,
-0.06688175350427628,
-0.5310525298118591,
0.2898280918598175,
-0.20480036735534668,
-0.2587735652923584,
-0.1606617420911789,
-0.031739603728055954,
-0.18403351306915283,
-0.08877308666706085,
-0.011560346931219101,
-0.023778965696692467
] |
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.44992372393608093,
-0.3384667634963989,
-0.0881834402680397,
0.15539255738258362,
0.08865874260663986,
-0.3033837676048279,
0.2761157155036926,
0.24882668256759644,
-0.4145064055919647,
0.15615461766719818,
0.21321755647659302,
0.36151137948036194,
-0.22451525926589966,
-0.10623291879892349,
-0.5425735712051392,
0.20700719952583313,
0.06488166749477386,
0.02843191847205162,
0.4975789189338684,
0.0339265838265419,
-0.20338542759418488,
0.12074998021125793,
-0.37362706661224365,
0.02475079707801342,
-0.5798378586769104,
-0.14546242356300354,
0.11425064504146576,
0.12211315333843231,
-0.11545362323522568,
-0.32993054389953613,
-0.6470973491668701,
-0.07660828530788422,
-0.031884659081697464,
0.33418506383895874,
-0.00011558619007701054,
-0.0463392436504364,
0.10905834287405014,
0.34091663360595703,
0.05988817289471626,
0.05778932198882103,
0.37219148874282837,
-0.3562241494655609,
-0.16808269917964935,
-0.13386261463165283,
0.06594190746545792,
-0.14266149699687958,
0.15894347429275513,
0.032280683517456055,
0.3406350314617157,
0.40265628695487976,
0.1911497563123703,
0.31795889139175415,
-0.27087756991386414,
0.2543521821498871,
-0.2134595364332199,
0.16846412420272827,
-0.03955169767141342,
-0.2626492381095886,
0.13799118995666504,
0.2333000898361206,
0.07556803524494171,
0.171354278922081,
-0.25367146730422974,
-0.17969344556331635,
0.07960724830627441,
-0.07373858988285065,
0.3969670534133911,
-0.5955150723457336,
0.3338230550289154,
0.06884804368019104,
-0.049803584814071655,
0.20842693746089935,
-0.12262744456529617,
-0.24462784826755524,
-0.11941259354352951,
-0.3561379611492157,
-0.03157323971390724,
0.11775617301464081,
-0.14593063294887543,
-0.1997269243001938,
-0.4144129157066345,
0.17332187294960022,
0.09277734905481339,
-0.07801075279712677,
-0.2313109040260315,
0.13422174751758575,
0.1872861534357071,
0.18756981194019318,
0.037425532937049866,
-0.2165009081363678,
-0.29470527172088623,
-0.2338636964559555,
0.04645805060863495,
0.2533206343650818,
-0.23093390464782715,
0.06602369248867035,
0.01527797244489193,
-0.13036638498306274,
-0.20163005590438843,
0.06675666570663452,
-0.4654320180416107,
0.48758456110954285,
0.03277409449219704,
0.14346978068351746,
-0.11149656027555466,
0.028572676703333855,
0.17092789709568024,
0.12753593921661377,
0.3001182973384857,
-0.25430938601493835,
-0.2343524843454361,
0.00018020358402282,
-0.15438047051429749,
-0.18218369781970978,
0.21542926132678986,
-0.061258044093847275,
-0.2682183086872101,
-0.02334081195294857,
-0.33083397150039673,
-0.01154794730246067,
0.08733554929494858,
0.2619642913341522,
0.29966652393341064,
0.20028866827487946,
0.06225772574543953,
0.5214735865592957,
-0.25567546486854553,
-0.12158489972352982,
-0.45947566628456116,
0.1133485659956932,
-0.08156394958496094,
-0.16471755504608154,
-0.18655072152614594,
0.13785026967525482,
-0.06131270155310631,
0.1771661788225174,
-0.005451106932014227,
0.02535739727318287,
0.11040367931127548,
0.025289228186011314,
0.18232399225234985,
-0.32231560349464417,
0.11473707854747772,
0.20227792859077454,
-0.06710948050022125,
0.30353298783302307,
-0.10294467210769653,
-0.16178223490715027,
-0.36976513266563416,
0.23814207315444946,
-0.5384544730186462,
-0.15245658159255981,
-0.15894894301891327,
0.09347661584615707,
-0.12793174386024475,
0.2658381760120392,
-0.20425935089588165,
0.06476087868213654,
0.0831185132265091,
-0.018490927293896675,
-0.1679265797138214,
-0.3296140134334564,
-0.5520938634872437,
-0.1329563409090042,
-0.027498681098222733,
0.17068511247634888,
0.062195081263780594,
-0.0064924536272883415,
0.406187504529953,
0.13750560581684113,
0.5677415132522583,
0.4764057993888855,
0.0807369202375412,
-0.006731473375111818,
-0.189629927277565,
0.4975840151309967,
0.14610865712165833,
-0.08475220203399658,
-0.39200130105018616,
0.2247670441865921,
-0.3435596823692322,
-0.2591394782066345,
0.14435121417045593,
0.19340328872203827,
0.29611480236053467,
-0.08136336505413055,
0.1891607791185379,
0.16845162212848663,
0.17066660523414612,
0.423615962266922,
-0.34472575783729553,
0.11501982808113098,
0.05402947962284088,
0.051068052649497986,
-0.17123368382453918,
-0.2077009677886963,
-0.10226140916347504,
-0.20738038420677185,
-0.07551921904087067,
-0.1466233879327774,
0.06731816381216049,
0.2143206149339676,
0.09448475390672684,
-0.1933385729789734,
0.0748748853802681,
0.029965996742248535,
0.19125156104564667,
0.325284868478775,
-0.10103343427181244,
0.18610943853855133,
-0.1336236298084259,
-0.03446381911635399,
0.25967296957969666,
0.1267637014389038,
-0.12485333532094955,
-0.14666534960269928,
0.058664362877607346,
-0.1872166395187378,
-0.20349280536174774,
0.15824532508850098,
0.1260850429534912,
0.3644275367259979,
0.08019290119409561,
-0.05832083523273468,
0.2455107718706131,
-0.09911800920963287,
-0.11419160664081573,
-0.29379329085350037,
-0.19320344924926758,
0.0026071337051689625,
0.3814738690853119,
0.012568175792694092,
-0.02529168874025345,
0.2470213621854782,
0.3813345730304718,
0.02050095796585083,
-0.23372361063957214,
0.10551229119300842,
0.41184431314468384,
0.060302745550870895,
0.20260386168956757,
-0.09500516951084137,
-0.08629654347896576,
-0.1775079071521759,
0.27090713381767273,
0.512788712978363,
0.20945674180984497,
0.290351539850235,
0.14326031506061554,
0.05545099824666977,
0.06882355362176895,
0.16472308337688446,
0.24258197844028473,
0.02163664810359478,
0.1735881119966507,
0.6222243905067444,
0.2241016924381256,
0.23628461360931396,
-0.015228637494146824,
0.3324309289455414,
0.3139474093914032,
0.0017891201423481107,
-0.16965565085411072,
0.311147004365921,
-0.18454572558403015,
-0.05762910097837448,
0.2842712998390198,
-0.4943197965621948,
0.23539717495441437,
0.2080540657043457,
-0.023512931540608406,
-0.02084880694746971,
-0.19962143898010254,
-0.07817292958498001,
0.08614596724510193,
0.175434872508049,
0.14295750856399536,
0.09686411172151566,
0.25403109192848206,
0.15785861015319824,
-0.26928621530532837,
-0.25317618250846863,
0.08845645934343338,
0.3354819118976593,
-0.10190720856189728,
0.10016730427742004,
-0.16875381767749786,
0.40120407938957214,
0.0715172067284584,
0.09443137049674988,
-0.17411653697490692,
-0.31713178753852844,
0.1304921954870224,
0.2831195592880249,
0.1585763692855835,
0.12466146051883698,
-0.029783613979816437,
0.002398926066234708,
0.1902010142803192,
0.06686357408761978,
-0.08295667171478271,
0.02024342119693756,
-0.3556158244609833,
-0.049464769661426544,
0.43899771571159363,
-0.01621565967798233,
0.2940431535243988,
-0.009238766506314278,
0.003873052541166544,
-0.23173104226589203,
-0.45568355917930603,
0.0031750276684761047,
0.04139271378517151,
0.025513242930173874,
-0.06809136271476746,
-0.06210754066705704,
-0.23589806258678436,
0.019418416544795036,
0.24805893003940582,
-0.3583412170410156,
-0.2180267721414566,
0.10979019850492477,
-0.22621570527553558,
-0.37258726358413696,
-0.068694107234478,
0.33645522594451904,
-0.2102847546339035,
0.0757506787776947,
0.14487522840499878,
0.06602023541927338,
0.3742157518863678,
-0.008503646589815617,
0.15160314738750458,
0.12918438017368317,
0.261647492647171,
-0.11561044305562973,
-0.06685444712638855,
-0.05757066607475281,
0.2586348056793213,
-0.02621963806450367,
-0.1741720736026764,
-0.10988422483205795,
0.0847541019320488,
-0.11149866878986359,
0.23651403188705444,
-0.0075677442364394665,
-0.20555433630943298,
-0.35037800669670105,
0.47977617383003235,
-0.18036827445030212,
-0.15610578656196594,
0.33186349272727966,
0.22200389206409454,
-0.2312343865633011,
0.19339729845523834,
-0.0816710889339447,
-0.053441256284713745,
-0.24165673553943634,
-0.05835135281085968,
-0.015322213992476463,
0.16318535804748535,
0.2545315623283386,
0.5217759013175964,
0.12709622085094452,
-0.5550824403762817,
0.27512311935424805,
-0.2412378340959549,
-0.15874376893043518,
0.03877975419163704,
-0.11545848101377487,
0.3504106402397156,
0.21305221319198608,
0.04146149754524231,
0.17166446149349213,
0.08920330554246902,
-0.46743205189704895,
0.09821076691150665,
0.09064758569002151,
-0.1467735767364502,
-0.1113881841301918,
0.01766640692949295,
-0.028057865798473358,
0.09488549828529358,
-0.1602468639612198,
0.05418780446052551,
-0.35820135474205017,
-0.1800769716501236,
-0.15436536073684692,
-0.029881678521633148,
0.021205345168709755,
-0.4966035783290863,
-0.643238365650177,
-0.03157684579491615,
-0.7037481069564819,
0.4059979021549225,
0.29117903113365173,
0.2319968044757843,
0.15315116941928864,
-0.03408915922045708,
0.2259289026260376,
-0.24682636559009552,
0.7638772130012512,
0.027860237285494804,
-0.1418023556470871,
0.16730594635009766,
-0.213655024766922,
-0.5546603202819824,
-0.0383731946349144,
0.17847232520580292,
0.3922830820083618,
0.3510376214981079,
0.9344826936721802,
0.01703723706305027,
-0.3225591778755188,
-0.2903113067150116,
-0.14010018110275269,
0.08642692118883133,
-0.14788231253623962,
-0.20090951025485992,
-0.1770840734243393,
-0.1991257220506668,
0.27826207876205444,
-0.020046334713697433,
0.26042139530181885,
-0.11953295767307281,
-0.3668781816959381,
-0.15750418603420258,
-0.1159370020031929,
0.28418445587158203,
-0.057002127170562744,
0.20251883566379547,
-0.09139233082532883,
0.1810498684644699,
0.157701313495636,
0.20298734307289124,
0.20232541859149933,
-0.29835835099220276,
0.2804027199745178,
-0.17432139813899994,
0.10976588726043701,
0.16407248377799988,
0.06766034662723541,
0.3864966928958893,
0.03131367266178131,
0.09840042889118195,
-0.47794309258461,
0.5437572002410889,
0.07036493718624115,
0.44886142015457153,
0.19096186757087708,
0.3199560344219208,
-0.3200160562992096,
0.27054134011268616,
-0.011882481165230274,
0.36819225549697876,
-0.013043460436165333,
0.06034010276198387,
-0.4594012200832367,
0.002052623312920332,
-0.013289342634379864,
0.48909294605255127,
0.9400271773338318,
-0.3060775697231293,
0.21337592601776123,
-0.19315111637115479,
-0.018486494198441505,
0.11136751621961594,
-0.281455934047699,
0.04064847528934479,
-0.4389478266239166,
-0.12585888803005219,
0.04153269901871681,
-0.09118369221687317,
0.27635809779167175,
0.07520562410354614,
0.15299750864505768,
0.023657798767089844,
0.16205506026744843,
0.21832415461540222,
-0.09041088074445724,
0.38085031509399414,
0.1806965321302414,
-0.3440168499946594,
0.19244612753391266,
0.14945457875728607,
0.1738910973072052,
-0.11925573647022247,
0.14022007584571838,
0.007836678996682167,
-0.16018493473529816,
0.018656225875020027,
-0.13364948332309723,
-0.1067335233092308,
-0.34195664525032043,
0.30042219161987305,
0.2267986685037613,
0.12188176065683365,
-0.16035662591457367,
0.39386436343193054,
0.018671218305826187,
0.1552838683128357,
-0.09507110714912415,
0.2904057204723358,
0.1818508505821228,
0.05603532865643501,
0.18895350396633148,
-0.4750974476337433,
-0.010614749975502491,
-0.20371942222118378,
0.010417360812425613,
-0.05434495955705643,
0.02567981369793415,
0.06240613013505936,
-0.2789134979248047,
0.08110378682613373,
0.48075243830680847,
0.3518829941749573,
-0.06148006394505501,
-0.09268629550933838,
-0.28490152955055237,
-0.1550026535987854,
0.0923084244132042,
-0.09175432473421097,
-0.11461314558982849,
0.3365732729434967,
-0.09942875802516937,
-0.3127013146877289,
0.06109623238444328,
0.34792912006378174,
-0.12253889441490173,
-0.11905955523252487,
0.32168564200401306,
-0.2689376771450043,
-0.28034254908561707,
-0.12525250017642975,
0.27570024132728577,
-0.2910205125808716,
0.0451858751475811,
-0.07331202179193497,
0.15233974158763885,
-0.2231271117925644,
0.1914164423942566,
-0.06892501562833786,
-0.22401265799999237,
-0.06585916131734848,
-0.10138960182666779,
-0.11308156698942184,
-0.5481936931610107,
-0.42653578519821167,
-0.3993567228317261,
0.03976856917142868,
-0.08143768459558487,
0.05880948156118393,
-0.29696890711784363,
-0.15747584402561188,
-0.258176326751709,
0.04411947727203369,
-0.21275778114795685,
0.2459949404001236,
-0.22137883305549622,
-0.258393257856369,
-0.20132185518741608,
-0.08697888255119324,
0.196178138256073,
0.35869523882865906,
-0.10277479887008667,
-0.22565078735351562,
-0.04825510084629059,
0.14193345606327057,
0.14895406365394592,
-0.5315014123916626,
0.1496790647506714,
0.28438645601272583,
-0.408669650554657,
-0.31680747866630554,
0.019023049622774124,
0.18790389597415924,
-0.2728000581264496,
-0.3082471787929535,
0.3944230377674103,
0.10010961443185806,
0.22893500328063965,
0.1660899817943573,
-0.0942254289984703,
0.3499562740325928,
0.07231882214546204,
0.21499614417552948,
0.040282998234033585,
-0.023629996925592422,
0.07835597544908524,
0.015447369776666164,
0.3958337604999542,
-0.045042261481285095,
0.0588577575981617,
-0.11912636458873749,
-0.14413121342658997,
0.17184270918369293,
-0.03243618831038475,
0.1243370845913887,
-0.12953881919384003,
-0.3658832013607025,
0.47081491351127625,
0.16852040588855743,
-0.07647514343261719,
-0.2141038477420807,
0.32786035537719727,
-0.1524704247713089,
0.019335150718688965,
0.018317177891731262,
0.2888765037059784,
0.14241401851177216,
-0.005200531333684921,
0.09098166227340698,
0.2107030600309372,
-0.4735336899757385,
-0.27614912390708923,
-0.18029643595218658,
0.059643425047397614,
0.03769407421350479,
0.4591517448425293,
-0.10189400613307953,
-0.03244713321328163,
0.36559662222862244,
-0.03025796450674534,
0.5474582314491272,
0.17477424442768097,
0.40531569719314575,
-0.1785578429698944,
-0.034322589635849,
-0.2934330403804779,
0.3591291308403015,
-0.054382070899009705,
0.22300788760185242,
-0.0498662143945694,
0.11069361120462418,
-0.11329944431781769,
-0.3018495440483093,
-0.03536316379904747,
0.6377314329147339,
-0.35085657238960266,
-0.25623902678489685,
-0.11697406321763992,
0.001978924497961998,
-0.16250990331172943,
0.12446586787700653,
-0.036812640726566315,
0.07183099538087845,
0.012783442623913288,
0.35275590419769287,
-0.12327057123184204,
-0.09898354858160019,
-0.2599737346172333,
0.07059331238269806,
0.26370367407798767,
-0.11590147763490677,
0.143937885761261,
-0.24779362976551056,
0.19883513450622559,
0.05083664506673813,
-0.06022287532687187,
0.6009989976882935,
0.6137852668762207,
-0.4024624824523926,
-0.094518281519413,
-0.057325735688209534,
0.06548337638378143,
0.04282010719180107,
0.29757747054100037,
-0.10649207979440689,
0.04456797242164612,
0.019312070682644844,
-0.036082372069358826,
-0.2808651924133301,
-0.4103223383426666,
-0.15312689542770386,
-0.005179909989237785,
0.21565856039524078,
0.2116210162639618,
-0.10120422393083572,
-0.295264333486557,
-0.12312179058790207,
0.17609567940235138,
-0.01927429996430874,
-0.058759406208992004,
0.2348753660917282,
-0.23146121203899384,
0.13486163318157196,
-0.008975395001471043,
0.0745464414358139,
-0.21757017076015472,
0.27547982335090637,
0.14639803767204285,
0.22932308912277222,
-0.2204814851284027,
-0.09337086975574493,
-0.5578262209892273,
0.15208034217357635,
0.08143825829029083,
-0.14843925833702087,
-0.009661810472607613,
0.012766359373927116,
-0.040245138108730316,
0.05634592846035957,
0.14889313280582428,
0.3091355562210083,
0.20660482347011566,
0.3167961537837982,
-0.4335680902004242,
0.6727848649024963,
-0.0681329146027565,
-0.23394912481307983,
0.06658878177404404,
-0.5331960320472717,
0.49146661162376404,
-0.09029658138751984,
0.11552189290523529,
-0.05388810485601425,
0.22374743223190308,
-0.37175366282463074,
0.42691218852996826,
0.5173203349113464,
0.1495974361896515,
0.3735644817352295,
-0.01006379071623087,
0.06455489248037338,
0.03309084102511406,
0.43891632556915283,
-0.2294115126132965,
-0.15109644830226898,
-0.02621285244822502,
0.005405116360634565,
0.04347749426960945,
0.15804538130760193,
-0.16629931330680847,
0.018509913235902786,
0.1677069216966629,
-0.3099859058856964,
-0.1790638417005539,
0.08880641311407089,
-0.09605090320110321,
0.3011538088321686,
-0.3251376748085022,
0.1892910599708557,
0.21223793923854828,
-0.034665703773498535,
-0.29136279225349426,
-0.15555018186569214,
0.3699107766151428,
-0.3290710151195526,
-0.14483249187469482,
-0.3039190173149109,
0.1994432955980301,
0.0776519849896431,
0.3248174488544464,
0.11249379813671112,
-0.23035041987895966,
0.34387513995170593,
-0.12543456256389618,
-0.5179378390312195,
0.3420332074165344,
-0.14677532017230988,
-0.24821974337100983,
-0.15748706459999084,
-0.036652013659477234,
-0.1720847636461258,
0.02174905501306057,
-0.003095612395554781,
-0.04537178575992584
] |
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.41471269726753235,
-0.29001396894454956,
-0.14023932814598083,
0.1775941401720047,
0.08560355007648468,
-0.3098764419555664,
0.3165900409221649,
0.26953834295272827,
-0.40153107047080994,
0.19383604824543,
0.17181827127933502,
0.4401445686817169,
-0.17750820517539978,
-0.1734139621257782,
-0.4684067964553833,
0.19723422825336456,
0.04768843576312065,
0.019027041271328926,
0.4751039445400238,
0.053150445222854614,
-0.21641601622104645,
0.2401554435491562,
-0.37681296467781067,
0.026950297877192497,
-0.49608471989631653,
-0.09824297577142715,
0.19894655048847198,
0.12130286544561386,
-0.1391695737838745,
-0.36747482419013977,
-0.6068886518478394,
-0.11219292134046555,
-0.05636749044060707,
0.21197882294654846,
-0.00011639265721896663,
-0.029695287346839905,
0.06461384147405624,
0.2730694115161896,
0.11135837435722351,
0.08839581161737442,
0.34826597571372986,
-0.3627755343914032,
-0.2092973291873932,
-0.17849837243556976,
0.07555807381868362,
-0.16975785791873932,
0.16541710495948792,
0.09465949982404709,
0.31698909401893616,
0.3889234662055969,
0.17815792560577393,
0.3117562234401703,
-0.21352629363536835,
0.2594033479690552,
-0.277130126953125,
0.1019630953669548,
-0.06877144426107407,
-0.21408560872077942,
0.030376844108104706,
0.2499030977487564,
0.04258453845977783,
0.25477147102355957,
-0.21619421243667603,
-0.12625637650489807,
0.015943774953484535,
-0.033681824803352356,
0.37189537286758423,
-0.5546595454216003,
0.28480347990989685,
0.03272407874464989,
-0.12973789870738983,
0.21463808417320251,
-0.06018277630209923,
-0.15413470566272736,
-0.18855704367160797,
-0.34453848004341125,
-0.045315179973840714,
0.12049514800310135,
-0.21086741983890533,
-0.2227793037891388,
-0.37411564588546753,
0.18415506184101105,
0.08401943743228912,
-0.07090744376182556,
-0.1827465295791626,
0.1372273862361908,
0.17991958558559418,
0.24106019735336304,
0.05886721611022949,
-0.2258036881685257,
-0.2731655538082123,
-0.22240105271339417,
0.13195540010929108,
0.21978552639484406,
-0.23658116161823273,
0.03646313026547432,
0.012542134150862694,
-0.17886151373386383,
-0.22658564150333405,
0.061088163405656815,
-0.3848720192909241,
0.4795626699924469,
0.041339125484228134,
0.20883338153362274,
-0.23148441314697266,
-0.009755912236869335,
0.18308669328689575,
0.16022822260856628,
0.2368338704109192,
-0.13413937389850616,
-0.1728900820016861,
0.03119337186217308,
-0.11209550499916077,
-0.19605951011180878,
0.21139702200889587,
0.01302788220345974,
-0.23589812219142914,
0.017115360125899315,
-0.31196144223213196,
0.014011691324412823,
0.090544693171978,
0.1994929164648056,
0.26836705207824707,
0.23753304779529572,
0.11957933008670807,
0.42525115609169006,
-0.2917684018611908,
-0.17541153728961945,
-0.430031418800354,
0.10398276895284653,
-0.09702669829130173,
-0.10997038334608078,
-0.11935664713382721,
0.06708981096744537,
-0.047606632113456726,
0.218752920627594,
0.015517164953052998,
-0.04476798698306084,
0.15373410284519196,
0.029705006629228592,
0.15373806655406952,
-0.38573047518730164,
0.1910874843597412,
0.23799674212932587,
-0.060385387390851974,
0.2763987183570862,
-0.06954590231180191,
-0.16463568806648254,
-0.3798219859600067,
0.24885261058807373,
-0.4449470043182373,
-0.05453180894255638,
-0.09990129619836807,
0.10634086281061172,
-0.013218622654676437,
0.2420075386762619,
-0.09770296514034271,
0.010308017954230309,
0.1538994461297989,
-0.1459275633096695,
-0.06597750633955002,
-0.29744309186935425,
-0.5686412453651428,
-0.16239623725414276,
-0.01268605887889862,
0.1474447250366211,
0.09666509181261063,
-0.06901254504919052,
0.46873512864112854,
0.13384002447128296,
0.6333222389221191,
0.47596487402915955,
0.09572196006774902,
-0.027373773977160454,
-0.18267183005809784,
0.5199824571609497,
0.20566008985042572,
-0.0890088826417923,
-0.416757732629776,
0.18607783317565918,
-0.29546448588371277,
-0.3388364315032959,
0.18455113470554352,
0.19259949028491974,
0.2760441303253174,
-0.07360807806253433,
0.1527734398841858,
0.17108051478862762,
0.21810464560985565,
0.38875871896743774,
-0.34018030762672424,
0.043266817927360535,
0.05794510245323181,
0.005266537424176931,
-0.14399190247058868,
-0.2692907154560089,
-0.013654458336532116,
-0.13584157824516296,
-0.11600643396377563,
-0.10867361724376678,
0.07073495537042618,
0.14037014544010162,
0.04051303490996361,
-0.28872281312942505,
0.03576989844441414,
0.03969397768378258,
0.13626396656036377,
0.26750102639198303,
-0.204827681183815,
0.19922541081905365,
-0.17955604195594788,
-0.05689878389239311,
0.2130090296268463,
0.1105729267001152,
-0.09639114886522293,
-0.22236736118793488,
0.05209833383560181,
-0.1409848928451538,
-0.08063709735870361,
0.12752331793308258,
0.1280657798051834,
0.3340408504009247,
-0.00877648126333952,
-0.014283801428973675,
0.20482762157917023,
-0.06021645665168762,
-0.18829941749572754,
-0.27485695481300354,
-0.2319173961877823,
0.01951412484049797,
0.3814214766025543,
-0.07074256241321564,
-0.04616692662239075,
0.2635872960090637,
0.2881621718406677,
0.06828057020902634,
-0.2523227035999298,
0.012110398150980473,
0.39660221338272095,
0.040295105427503586,
0.1687043309211731,
-0.0676354244351387,
-0.02487865835428238,
-0.12055309116840363,
0.2534332871437073,
0.4735649824142456,
0.1911371797323227,
0.29156526923179626,
0.20262248814105988,
-0.006428226362913847,
0.0646832287311554,
0.19919441640377045,
0.25183629989624023,
-0.10874602198600769,
0.06328525394201279,
0.7362857460975647,
0.14806868135929108,
0.24106448888778687,
0.014350209385156631,
0.31289929151535034,
0.4191816449165344,
0.04355650022625923,
-0.1877623051404953,
0.3188779652118683,
-0.14706365764141083,
-0.09897749125957489,
0.29963311553001404,
-0.40214696526527405,
0.21886150538921356,
0.21135324239730835,
0.028401385992765427,
-0.07511944323778152,
-0.16325634717941284,
-0.10460066050291061,
0.1323339194059372,
0.16738192737102509,
0.1391259729862213,
0.16315273940563202,
0.2391718327999115,
0.1598873883485794,
-0.36263424158096313,
-0.21564705669879913,
0.1362680196762085,
0.2745378613471985,
-0.01139872893691063,
0.07179991900920868,
-0.16684018075466156,
0.3841626048088074,
0.10693681985139847,
0.01267773937433958,
-0.0979354977607727,
-0.2654915153980255,
0.10532884299755096,
0.2229980230331421,
0.19267132878303528,
0.15707293152809143,
-0.024305114522576332,
-0.03965960443019867,
0.26878806948661804,
0.05491054430603981,
-0.15276022255420685,
0.1180015429854393,
-0.2908618450164795,
-0.04779858514666557,
0.37175464630126953,
-0.04663263261318207,
0.3291932940483093,
-0.07400280237197876,
-0.049736037850379944,
-0.221709743142128,
-0.44871512055397034,
0.06877300143241882,
0.04538878798484802,
-0.004951562266796827,
-0.037431806325912476,
-0.07631868869066238,
-0.20550641417503357,
0.03157314658164978,
0.23388899862766266,
-0.308858186006546,
-0.27344781160354614,
0.01438179798424244,
-0.19286417961120605,
-0.295994371175766,
-0.09090714156627655,
0.2817845344543457,
-0.2543785572052002,
-0.010356367565691471,
0.0863189622759819,
0.14000853896141052,
0.4790605306625366,
0.013250534422695637,
0.09942615032196045,
0.11583191901445389,
0.2477492243051529,
-0.06495816260576248,
-0.12006940692663193,
-0.04271509870886803,
0.254287987947464,
-0.04537935554981232,
-0.12417299300432205,
-0.18034610152244568,
0.06535548716783524,
-0.029783451929688454,
0.16033874452114105,
0.05698585510253906,
-0.2868964970111847,
-0.3649912178516388,
0.5504558682441711,
-0.1587035208940506,
-0.1019764319062233,
0.40464746952056885,
0.26378461718559265,
-0.2704048752784729,
0.2251262366771698,
-0.06889309734106064,
-0.03612104058265686,
-0.23996081948280334,
-0.1305755227804184,
0.016114909201860428,
0.2189338058233261,
0.2953401207923889,
0.47846585512161255,
0.17647087574005127,
-0.6153278946876526,
0.3364483416080475,
-0.24461503326892853,
-0.12349564582109451,
0.005325753707438707,
-0.10041319578886032,
0.3539537787437439,
0.22519750893115997,
0.08645657449960709,
0.11843186616897583,
-0.00027896318351849914,
-0.3927917182445526,
0.13271574676036835,
0.1379462033510208,
-0.15625567734241486,
0.01965855248272419,
0.012399530038237572,
0.16473041474819183,
0.10757265239953995,
-0.12556837499141693,
0.033773548901081085,
-0.32754555344581604,
-0.15386897325515747,
-0.20026952028274536,
-0.003601526841521263,
0.044877514243125916,
-0.462769091129303,
-0.6620944142341614,
0.010944036766886711,
-0.7335999608039856,
0.44767388701438904,
0.3246113061904907,
0.28945621848106384,
0.09424342960119247,
-0.06691745668649673,
0.277278333902359,
-0.32105597853660583,
0.7273998856544495,
0.040290869772434235,
-0.11056037247180939,
0.15075817704200745,
-0.1687186062335968,
-0.5041906237602234,
-0.018638983368873596,
0.13450147211551666,
0.3634617328643799,
0.3612511157989502,
0.9468918442726135,
0.010419602505862713,
-0.3450067937374115,
-0.19343923032283783,
-0.18035894632339478,
0.08974974602460861,
-0.1380215883255005,
-0.22067135572433472,
-0.15801633894443512,
-0.30206379294395447,
0.22383561730384827,
-0.0461469329893589,
0.27239084243774414,
-0.011340821161866188,
-0.403668612241745,
-0.12290968000888824,
-0.2363974004983902,
0.20572210848331451,
-0.010003041476011276,
0.1728128045797348,
0.04976335167884827,
0.12751537561416626,
0.06553933769464493,
0.14806990325450897,
0.18010437488555908,
-0.3304215669631958,
0.22169485688209534,
-0.08396401256322861,
0.10154314339160919,
0.20970866084098816,
-0.007393962703645229,
0.3432652950286865,
-0.03320544585585594,
0.07334614545106888,
-0.43296918272972107,
0.5720511078834534,
0.054924558848142624,
0.45493581891059875,
0.17134173214435577,
0.3446987271308899,
-0.23377420008182526,
0.2966986894607544,
0.02970743179321289,
0.34588325023651123,
-0.06018590182065964,
-0.0055457428097724915,
-0.4889613389968872,
-0.04447488486766815,
-0.06684868037700653,
0.46071118116378784,
0.8917254209518433,
-0.23976029455661774,
0.20625129342079163,
-0.16591639816761017,
-0.021057933568954468,
0.1621929109096527,
-0.2714104652404785,
0.03651869297027588,
-0.38964521884918213,
-0.13251915574073792,
-0.0069337827153503895,
-0.10251887142658234,
0.298965722322464,
0.022477613762021065,
0.12915295362472534,
0.06978468596935272,
0.20988288521766663,
0.2526228725910187,
-0.07023061066865921,
0.3553857207298279,
0.13731898367404938,
-0.34198689460754395,
0.17206275463104248,
0.12300102412700653,
0.13675908744335175,
-0.11391936242580414,
0.15423361957073212,
0.03944358602166176,
-0.13986991345882416,
-0.064996637403965,
-0.019108500331640244,
-0.07324928790330887,
-0.36461326479911804,
0.4183254837989807,
0.193259596824646,
0.0933811143040657,
-0.2395744025707245,
0.40189170837402344,
-0.007000464014708996,
0.08512904495000839,
-0.0032061426900327206,
0.25911498069763184,
0.19970640540122986,
0.04846905171871185,
0.09906041622161865,
-0.39056581258773804,
0.02175278775393963,
-0.20869337022304535,
0.06820520013570786,
-0.02474982477724552,
-0.007460558786988258,
0.055249620229005814,
-0.25075414776802063,
0.12495552748441696,
0.567970871925354,
0.3063177466392517,
-0.15374714136123657,
-0.1191854476928711,
-0.42137354612350464,
-0.22622734308242798,
0.07858093827962875,
-0.16572540998458862,
-0.14877663552761078,
0.29967451095581055,
-0.042069341987371445,
-0.3072768449783325,
0.10313131660223007,
0.3724091649055481,
-0.06566508859395981,
-0.05497118458151817,
0.30663445591926575,
-0.35047951340675354,
-0.3216535151004791,
-0.16952267289161682,
0.22037306427955627,
-0.3156827390193939,
-0.030032016336917877,
-0.08200550079345703,
0.18025000393390656,
-0.21835839748382568,
0.1481044441461563,
-0.05145720764994621,
-0.23330999910831451,
-0.003437068546190858,
-0.16310147941112518,
-0.14008639752864838,
-0.5985136032104492,
-0.4524351954460144,
-0.4788418710231781,
0.07759358733892441,
-0.006582003086805344,
0.032367438077926636,
-0.3689250946044922,
-0.09317628294229507,
-0.2567000687122345,
0.0747397392988205,
-0.2269098460674286,
0.23285937309265137,
-0.18259617686271667,
-0.3429640531539917,
-0.21741531789302826,
-0.01787475124001503,
0.20774804055690765,
0.44020986557006836,
-0.19811491668224335,
-0.23223663866519928,
-0.011563284322619438,
0.12363740056753159,
0.09101005643606186,
-0.5356756448745728,
0.1012619361281395,
0.33383870124816895,
-0.3837573826313019,
-0.2721375524997711,
0.02432412840425968,
-0.0006909148651175201,
-0.23616322875022888,
-0.23050780594348907,
0.3917298913002014,
0.0685490146279335,
0.2969124913215637,
0.13873770833015442,
-0.12388795614242554,
0.3315959870815277,
0.04365663230419159,
0.2184186428785324,
0.005753900855779648,
-0.0165229681879282,
-0.009749611839652061,
-0.004104562569409609,
0.41357967257499695,
-0.12100514769554138,
0.08205156773328781,
-0.07160720974206924,
-0.2191266417503357,
0.10757683962583542,
0.002345137530937791,
0.09925247728824615,
-0.16731469333171844,
-0.40506798028945923,
0.38587328791618347,
0.16736279428005219,
-0.12248876690864563,
-0.21203653514385223,
0.3046744763851166,
-0.15096670389175415,
0.08664170652627945,
0.012559231370687485,
0.2928382456302643,
0.1308489888906479,
0.01115270797163248,
0.13311666250228882,
0.18006059527397156,
-0.44404613971710205,
-0.2878638207912445,
-0.10620327293872833,
0.1063467264175415,
0.12546947598457336,
0.462320476770401,
-0.1677713692188263,
-0.02264874428510666,
0.3262937664985657,
-0.12809453904628754,
0.6531369090080261,
0.19671712815761566,
0.468424916267395,
-0.16133569180965424,
-0.05705629661679268,
-0.1884215772151947,
0.3861742913722992,
-0.09502598643302917,
0.2422855943441391,
0.01194579154253006,
0.15046389400959015,
-0.013203002512454987,
-0.21950849890708923,
-0.005342667456716299,
0.6526279449462891,
-0.3278411626815796,
-0.3698415458202362,
-0.14310987293720245,
-0.02392745018005371,
-0.17463378608226776,
0.13610315322875977,
-0.011987274512648582,
0.0564168244600296,
0.019265256822109222,
0.3377082347869873,
-0.12002231180667877,
-0.04819272831082344,
-0.29108259081840515,
0.06288232654333115,
0.2389509230852127,
-0.1606963574886322,
0.23875533044338226,
-0.13452738523483276,
0.22364699840545654,
-0.06568838655948639,
-0.026910778135061264,
0.6454132199287415,
0.5269039869308472,
-0.2857970893383026,
-0.06410633772611618,
-0.05048143118619919,
0.07430073618888855,
-0.006711500231176615,
0.2845499813556671,
-0.10097125917673111,
0.03493475914001465,
-0.048250384628772736,
-0.03183171898126602,
-0.294114887714386,
-0.4370770752429962,
-0.057016752660274506,
-0.05289307236671448,
0.2819961905479431,
0.24709954857826233,
-0.09163659065961838,
-0.29338717460632324,
-0.10788172483444214,
0.17647120356559753,
-0.11655348539352417,
-0.01341498363763094,
0.12113907933235168,
-0.2631138265132904,
0.1782810389995575,
0.0049771894700825214,
0.0632241889834404,
-0.24029003083705902,
0.28640785813331604,
0.0018528880318626761,
0.16947771608829498,
-0.18327626585960388,
-0.11480101943016052,
-0.4960201382637024,
0.10735035687685013,
0.21392464637756348,
-0.13935263454914093,
-0.12533879280090332,
0.06362120807170868,
-0.050562020391225815,
0.03772018104791641,
0.20000042021274567,
0.2938365042209625,
0.327136367559433,
0.3384619355201721,
-0.4123348295688629,
0.7688537240028381,
-0.03417365998029709,
-0.24210435152053833,
0.09514345228672028,
-0.6103777885437012,
0.478023886680603,
-0.13450512290000916,
0.11961361765861511,
-0.07003571093082428,
0.21511566638946533,
-0.37575799226760864,
0.3962622880935669,
0.5963898301124573,
0.18700246512889862,
0.3403974175453186,
-0.12200197577476501,
0.05306726694107056,
0.09654960036277771,
0.5001579523086548,
-0.19076205790042877,
-0.10728118568658829,
0.020165525376796722,
0.07847236841917038,
0.09021737426519394,
0.10687343031167984,
-0.15529510378837585,
0.03361121565103531,
0.07758326828479767,
-0.367154985666275,
-0.12195201963186264,
0.07681364566087723,
-0.09771129488945007,
0.23956629633903503,
-0.33723101019859314,
0.17480534315109253,
0.2785283625125885,
-0.06637892127037048,
-0.33905112743377686,
-0.2964264452457428,
0.3573901951313019,
-0.29216066002845764,
-0.12478526681661606,
-0.26629382371902466,
0.17669525742530823,
0.028445247560739517,
0.2948848605155945,
0.06781967729330063,
-0.18835607171058655,
0.3833023011684418,
-0.15054817497730255,
-0.4722630977630615,
0.4093296229839325,
-0.1440519094467163,
-0.2408430278301239,
-0.14656776189804077,
-0.01059605460613966,
-0.13269685208797455,
-0.003510812297463417,
-0.10196281969547272,
-0.14429622888565063
] |
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.362135648727417,
-0.5087313652038574,
-0.13942521810531616,
0.0749787837266922,
0.04022354260087013,
-0.35609740018844604,
0.38819974660873413,
0.14181560277938843,
-0.4626854956150055,
0.22303520143032074,
0.031175199896097183,
0.3382243812084198,
-0.23341920971870422,
-0.0875609815120697,
-0.40839171409606934,
0.10223658382892609,
0.0076491981744766235,
-0.15949152410030365,
0.2531299591064453,
0.03262472152709961,
-0.17719653248786926,
0.2042718231678009,
-0.3319111168384552,
-0.005594945512712002,
-0.6348939538002014,
-0.1702248454093933,
0.05864287167787552,
0.29093125462532043,
0.06164270639419556,
-0.2190771847963333,
-0.6123358607292175,
0.07091881334781647,
-0.11173129081726074,
0.38967689871788025,
-0.00011353729496477172,
-0.04683401435613632,
0.015983471646904945,
0.20071369409561157,
0.2702920138835907,
0.21922166645526886,
0.3434351086616516,
-0.37107130885124207,
-0.12737098336219788,
-0.20349368453025818,
0.07973229140043259,
0.06950068473815918,
0.055539924651384354,
0.14170807600021362,
0.41682207584381104,
0.12805324792861938,
0.20394852757453918,
0.5180529952049255,
-0.15771645307540894,
0.336525022983551,
-0.216334730386734,
-0.12631523609161377,
-0.11703706532716751,
-0.22647100687026978,
0.3812013268470764,
0.29206547141075134,
-0.04880509525537491,
0.40489402413368225,
-0.25744837522506714,
0.004807647783309221,
-0.07550376653671265,
-0.025664467364549637,
0.3905301094055176,
-0.6222299337387085,
0.29576000571250916,
0.09150300174951553,
-0.19522501528263092,
0.14498932659626007,
-0.26454606652259827,
-0.10543608665466309,
-0.18216729164123535,
-0.44672295451164246,
-0.0244199987500906,
0.1261509656906128,
-0.14331066608428955,
-0.1415114402770996,
-0.5341373085975647,
0.07350825518369675,
0.14978723227977753,
-0.20308630168437958,
-0.18418766558170319,
0.13382285833358765,
0.18045401573181152,
0.1738165020942688,
-0.05261625722050667,
-0.21313518285751343,
-0.2869645357131958,
-0.15194714069366455,
0.24508920311927795,
0.06106777489185333,
-0.35824641585350037,
-0.021756649017333984,
0.015097628347575665,
-0.15947121381759644,
-0.2735791802406311,
0.09454326331615448,
-0.3346870243549347,
0.6400337815284729,
0.12846745550632477,
0.1383744478225708,
-0.22790317237377167,
-0.17015010118484497,
0.03664335981011391,
-0.022098783403635025,
0.20771710574626923,
-0.3187613785266876,
-0.28978627920150757,
0.09658563137054443,
0.017336757853627205,
-0.2958792448043823,
0.2639741003513336,
0.07394237071275711,
-0.1910446286201477,
0.06371831148862839,
-0.17707784473896027,
-0.03655127063393593,
0.21903520822525024,
0.20241187512874603,
0.18307963013648987,
0.29767656326293945,
0.1855950802564621,
0.49826890230178833,
-0.30315732955932617,
0.002131476067006588,
-0.4452207386493683,
-0.1513819694519043,
-0.16324487328529358,
-0.12662482261657715,
-0.09211397171020508,
0.0348818302154541,
-0.11047252267599106,
0.22674348950386047,
-0.11026989668607712,
0.013215678744018078,
0.4914776384830475,
-0.05239086225628853,
0.26146090030670166,
-0.2932792901992798,
0.14464177191257477,
0.3133220076560974,
-0.008473683148622513,
0.1547648012638092,
-0.0946151539683342,
-0.21558137238025665,
-0.2673727571964264,
0.19718945026397705,
-0.47550374269485474,
-0.12529371678829193,
-0.01422849576920271,
0.11515657603740692,
0.0019116158364340663,
0.33808040618896484,
-0.06976567208766937,
0.017896883189678192,
0.2934836745262146,
0.2063703089952469,
-0.1937798261642456,
-0.36813655495643616,
-0.4264441728591919,
-0.21725818514823914,
0.06111915409564972,
0.10440252721309662,
0.15820996463298798,
0.05133683979511261,
0.3336833119392395,
0.12774699926376343,
0.4713529348373413,
0.5424489378929138,
0.11541880667209625,
0.04179228097200394,
-0.025638366118073463,
0.44448938965797424,
0.29328471422195435,
-0.12529565393924713,
-0.35405296087265015,
0.2891221344470978,
-0.26043006777763367,
-0.23264211416244507,
0.22329813241958618,
0.20624105632305145,
0.37548646330833435,
-0.047017525881528854,
0.21869881451129913,
0.1550394743680954,
0.0404803529381752,
0.4499577283859253,
-0.3326159119606018,
0.017905021086335182,
-0.028835218399763107,
0.09063990414142609,
0.12486324459314346,
-0.2718457579612732,
-0.026571260765194893,
-0.34038060903549194,
-0.0024567528162151575,
-0.08613377064466476,
0.04602889344096184,
0.18478943407535553,
0.024442549794912338,
-0.21662944555282593,
-0.00927427876740694,
-0.08152839541435242,
0.05756895989179611,
0.3631337881088257,
-0.1907764971256256,
0.21561354398727417,
-0.15900681912899017,
0.014913777820765972,
0.30504924058914185,
0.10149475187063217,
-0.22482840716838837,
-0.12829290330410004,
0.12129326909780502,
-0.0976698249578476,
-0.0827970951795578,
-0.07778418809175491,
0.020012035965919495,
0.2593534588813782,
0.15438196063041687,
-0.05428984761238098,
0.2893963158130646,
0.06813202798366547,
-0.08031819015741348,
-0.43408259749412537,
-0.25441986322402954,
0.06923380494117737,
0.3470929265022278,
-0.06877521425485611,
0.05813024565577507,
0.26052603125572205,
0.29133284091949463,
0.07281512767076492,
0.030223971232771873,
0.10232630372047424,
0.3324846029281616,
0.014408763498067856,
0.13623255491256714,
-0.07023360580205917,
-0.1539844274520874,
-0.14666888117790222,
0.38410016894340515,
0.5922673344612122,
0.07842173427343369,
0.29816532135009766,
0.1087239608168602,
0.10977450013160706,
0.0894443467259407,
0.05301934853196144,
0.20390693843364716,
0.06586502492427826,
0.17758634686470032,
0.5067198276519775,
-0.024226205423474312,
0.0737214908003807,
-0.16166798770427704,
0.3329631984233856,
0.301984578371048,
0.06473912298679352,
-0.12664324045181274,
0.1125892922282219,
0.012034750543534756,
0.07715984433889389,
0.13082657754421234,
-0.3062305748462677,
0.2695831060409546,
0.22435513138771057,
-0.03581778332591057,
-0.035641126334667206,
-0.2221827507019043,
-0.10871883481740952,
0.05816572159528732,
0.20472459495067596,
0.01375697460025549,
0.2202903777360916,
0.2550688683986664,
0.05399588495492935,
-0.13734062016010284,
-0.24412883818149567,
0.19317321479320526,
0.1583591252565384,
-0.0990212932229042,
0.10249955207109451,
-0.1780758649110794,
0.5981835126876831,
0.05307214707136154,
0.05443674325942993,
-0.1519250124692917,
-0.3918449282646179,
0.12616831064224243,
0.22215119004249573,
0.06555882096290588,
0.16260379552841187,
0.08471263945102692,
-0.19418539106845856,
0.1956428736448288,
0.026686787605285645,
-0.052427489310503006,
0.03285397216677666,
-0.18173424899578094,
-0.05563603341579437,
0.46712806820869446,
-0.06575049459934235,
0.34676995873451233,
-0.2140849083662033,
-0.13399672508239746,
-0.31273770332336426,
-0.3596586287021637,
0.013872379437088966,
-0.04644700884819031,
0.11184725910425186,
-0.08444015681743622,
-0.13213272392749786,
-0.21017761528491974,
-0.061651792377233505,
0.38388577103614807,
-0.24511657655239105,
-0.1824638843536377,
0.18482498824596405,
-0.10507278144359589,
-0.41569340229034424,
-0.05179794877767563,
0.16327740252017975,
-0.2007569819688797,
0.04155458137392998,
0.0667121633887291,
0.08607066422700882,
0.4626772701740265,
-0.18051846325397491,
0.04668204486370087,
0.08330187201499939,
0.11422912776470184,
-0.02436475269496441,
-0.05211499705910683,
-0.08901778608560562,
0.275270938873291,
-0.04798496514558792,
-0.28231945633888245,
-0.08102668821811676,
-0.019501443952322006,
0.06165522336959839,
0.29463067650794983,
0.07880542427301407,
-0.2685387134552002,
-0.2180764526128769,
0.4196760356426239,
-0.07506434619426727,
-0.03712104633450508,
0.29522669315338135,
0.22991357743740082,
-0.2754552364349365,
0.28462839126586914,
0.05248740315437317,
-0.10747426748275757,
-0.13584883511066437,
-0.09228194504976273,
0.02286524884402752,
0.1707637459039688,
0.25783345103263855,
0.8335023522377014,
0.10533636808395386,
-0.37367308139801025,
0.11810695379972458,
-0.20248764753341675,
-0.27855435013771057,
0.04462633654475212,
-0.13672314584255219,
0.20436668395996094,
0.033971257507801056,
0.027981823310256004,
0.07772863656282425,
-0.0069430130533874035,
-0.2329607456922531,
0.12268351763486862,
0.2657160460948944,
-0.27661508321762085,
-0.11600857228040695,
0.08908309787511826,
-0.02511899545788765,
0.2085808366537094,
-0.0599852092564106,
-0.049616679549217224,
-0.21935760974884033,
-0.13573935627937317,
-0.1355382204055786,
0.13976745307445526,
-0.15943259000778198,
-0.532446563243866,
-0.5082412958145142,
0.012483487837016582,
-0.5454745888710022,
0.5083020329475403,
0.27372467517852783,
0.19286678731441498,
0.1510097235441208,
-0.10704516619443893,
0.3085058331489563,
-0.3585408627986908,
0.5831425189971924,
-0.03583511710166931,
-0.19432193040847778,
0.1549622118473053,
-0.5109227895736694,
-0.37391698360443115,
-0.08475276827812195,
-0.10131489485502243,
0.3901555836200714,
0.4315747618675232,
0.7751059532165527,
-0.040893007069826126,
-0.3296208083629608,
-0.31719478964805603,
-0.1898135244846344,
-0.07594297081232071,
-0.0733945444226265,
-0.3145391345024109,
-0.25531020760536194,
-0.3619544804096222,
0.31357038021087646,
-0.0463147833943367,
0.2629356384277344,
-0.14952301979064941,
-0.2197115421295166,
-0.14900974929332733,
-0.2139434814453125,
0.33503788709640503,
0.011266162618994713,
0.17555807530879974,
-0.11046112328767776,
0.18346397578716278,
-0.0883750170469284,
0.06495857983827591,
-0.022562328726053238,
-0.32164376974105835,
0.23952332139015198,
0.01700243540108204,
0.12625175714492798,
-0.018662257120013237,
0.1967787891626358,
0.4264129400253296,
0.02583022601902485,
0.1372717320919037,
-0.38044559955596924,
0.6753243207931519,
0.07948174327611923,
0.20241808891296387,
0.2228015810251236,
0.321067750453949,
-0.05044238641858101,
0.34143272042274475,
-0.059726547449827194,
0.09757719933986664,
-0.0394856259226799,
0.05434827506542206,
-0.43344953656196594,
0.0717538371682167,
0.02138129062950611,
0.43681156635284424,
1.034792423248291,
-0.4358522891998291,
0.1840892881155014,
-0.19242241978645325,
0.08347851037979126,
-0.1007276400923729,
-0.31340518593788147,
0.13692522048950195,
-0.3445001244544983,
-0.17542722821235657,
0.042119208723306656,
-0.16478873789310455,
0.28865188360214233,
0.11330775916576385,
0.03677453100681305,
0.17395363748073578,
0.09256254881620407,
0.09891162812709808,
-0.0623236745595932,
0.32060378789901733,
0.21863223612308502,
-0.38137754797935486,
0.12901367247104645,
0.11236537992954254,
0.1768186390399933,
-0.27509891986846924,
0.07719268649816513,
-0.057950135320425034,
-0.10024812072515488,
0.03176340460777283,
-0.10864601284265518,
-0.14552435278892517,
-0.25933006405830383,
0.4093886613845825,
0.35979998111724854,
-0.009845026768743992,
-0.17514725029468536,
0.3499317467212677,
0.012336956337094307,
0.03499900549650192,
0.02976842224597931,
0.22015739977359772,
0.31779322028160095,
0.0949137806892395,
0.11056794226169586,
-0.34974944591522217,
0.013453907333314419,
-0.20034322142601013,
-0.0784502923488617,
0.1306760162115097,
0.07085402309894562,
-0.00525403767824173,
-0.2096993327140808,
0.20902155339717865,
0.44159579277038574,
0.3092525899410248,
0.010161987505853176,
0.036715760827064514,
-0.3541882336139679,
-0.11173974722623825,
0.10573708266019821,
0.0339360237121582,
-0.29660919308662415,
0.459481418132782,
-0.007957383058965206,
-0.262257844209671,
0.056086793541908264,
0.18526591360569,
0.02783537656068802,
0.018201259896159172,
0.2954871356487274,
-0.22770079970359802,
-0.329524964094162,
-0.16891519725322723,
0.19780343770980835,
-0.535545289516449,
0.04592165723443031,
0.04057697951793671,
0.01834334060549736,
-0.20972323417663574,
0.11524748802185059,
-0.004739109426736832,
-0.17508338391780853,
-0.008491402491927147,
-0.28979530930519104,
-0.12056741118431091,
-0.43162626028060913,
-0.2958342432975769,
-0.3127342462539673,
-0.024687496945261955,
-0.1550569236278534,
0.3176303505897522,
-0.20689250528812408,
0.08226115256547928,
-0.300449937582016,
0.030313095077872276,
-0.36806297302246094,
0.23499372601509094,
-0.0730726420879364,
-0.41866469383239746,
-0.2548905313014984,
0.034933269023895264,
0.2051478922367096,
0.3331364691257477,
-0.2838679850101471,
-0.2526034116744995,
-0.017423085868358612,
0.11830775439739227,
0.006977414712309837,
-0.32242825627326965,
0.07110714167356491,
0.35885584354400635,
-0.28260430693626404,
-0.19769734144210815,
0.032866112887859344,
0.09445082396268845,
-0.2486618161201477,
-0.24273134768009186,
0.46484532952308655,
-0.026409735903143883,
0.0024902087170630693,
0.08097388595342636,
-0.13043691217899323,
0.26619434356689453,
-0.016199300065636635,
0.09686554968357086,
0.09037235379219055,
-0.0383186899125576,
-0.017118122428655624,
0.009532599709928036,
0.3124616742134094,
-0.15575289726257324,
0.16025954484939575,
-0.13015276193618774,
-0.1964568793773651,
0.005412427242845297,
0.06616684049367905,
0.06436218321323395,
-0.19890891015529633,
-0.3912794888019562,
0.33981436491012573,
0.17091812193393707,
-0.1451822817325592,
-0.1648750901222229,
0.2732415199279785,
-0.0731109008193016,
0.12272931635379791,
0.14671197533607483,
0.2926238179206848,
0.12911128997802734,
0.029350092634558678,
0.21419380605220795,
0.0854707583785057,
-0.6312891244888306,
-0.36099162697792053,
-0.32900041341781616,
0.02783566154539585,
0.16390493512153625,
0.44003066420555115,
-0.1444062739610672,
-0.17808398604393005,
0.2677783966064453,
-0.09442029893398285,
0.6451383233070374,
-0.05382390692830086,
0.33788150548934937,
-0.07947944104671478,
-0.05995187908411026,
-0.08334418386220932,
0.16562113165855408,
-0.007839600555598736,
0.20946718752384186,
-0.12217328697443008,
0.1142318919301033,
0.029220780357718468,
-0.21975210309028625,
-0.1352483332157135,
0.7050794959068298,
-0.31790125370025635,
-0.30468395352363586,
0.08752919733524323,
0.007926752790808678,
-0.15428146719932556,
0.12121511995792389,
0.07199173420667648,
0.23723097145557404,
0.42118310928344727,
0.36387619376182556,
0.09217479825019836,
-0.019636355340480804,
-0.25257226824760437,
-0.04563586786389351,
0.19204756617546082,
-0.20068402588367462,
0.21955983340740204,
0.058388981968164444,
0.19181066751480103,
0.04343506321310997,
-0.06277508288621902,
0.5542601346969604,
0.42636725306510925,
-0.430726021528244,
-0.03219550848007202,
-0.06314628571271896,
0.04597733914852142,
0.021425988525152206,
0.2826527953147888,
-0.16874878108501434,
0.17817041277885437,
0.039369795471429825,
0.01988835446536541,
-0.33808308839797974,
-0.5042126774787903,
-0.03761850669980049,
0.04659539461135864,
0.1441509872674942,
0.3209763169288635,
-0.06691358983516693,
-0.30109086632728577,
0.04287105053663254,
0.18484319746494293,
-0.30546116828918457,
-0.18489505350589752,
0.3300395607948303,
-0.3622608780860901,
0.1010541319847107,
0.022702250629663467,
0.08022680133581161,
-0.10568994283676147,
0.3916597366333008,
0.05428310111165047,
0.25472569465637207,
-0.2889443337917328,
-0.05711284652352333,
-0.5728094577789307,
0.16880418360233307,
0.10012958943843842,
-0.18539750576019287,
0.05576719343662262,
0.36875438690185547,
-0.003271166468039155,
0.26386845111846924,
0.26388898491859436,
-0.021778104826807976,
0.0840364545583725,
0.4047768712043762,
-0.5053955912590027,
0.6482884287834167,
-0.1292981207370758,
-0.1600784957408905,
0.12271471321582794,
-0.4431547224521637,
0.4912443459033966,
0.08631912618875504,
0.15053994953632355,
-0.03083709627389908,
0.1532616764307022,
-0.10954344272613525,
0.4072909653186798,
0.2263588160276413,
0.1058964729309082,
0.3939540982246399,
-0.09907010197639465,
-0.005378000438213348,
0.12529510259628296,
0.35130634903907776,
-0.07301715016365051,
-0.1500101089477539,
-0.05051768198609352,
0.05795964226126671,
0.12246444821357727,
0.1014474406838417,
-0.11742470413446426,
0.11529866605997086,
0.04932006821036339,
-0.26821619272232056,
-0.11013127118349075,
0.0493658185005188,
0.09713251888751984,
0.2865610420703888,
-0.2756013870239258,
0.3383452594280243,
0.17949868738651276,
0.09009519219398499,
-0.3465454578399658,
-0.2756197452545166,
0.41852015256881714,
-0.3566579520702362,
-0.2835140526294708,
-0.35660412907600403,
0.20875191688537598,
-0.14794433116912842,
0.37842991948127747,
-0.04553123936057091,
-0.20987483859062195,
0.2967396676540375,
-0.025155456736683846,
-0.464378297328949,
0.3824317455291748,
-0.055593788623809814,
-0.39129066467285156,
-0.14427649974822998,
-0.19952987134456635,
-0.24144381284713745,
-0.028886400163173676,
-0.2539631724357605,
0.010824090801179409
] |
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.31007927656173706,
-0.1292368769645691,
-0.1342049241065979,
0.11754009127616882,
0.46882620453834534,
-0.1441975086927414,
0.2783523499965668,
0.09987923502922058,
-0.2433769851922989,
0.35919108986854553,
0.08298446983098984,
-0.07303078472614288,
-0.1192089170217514,
0.32127881050109863,
-0.10763755440711975,
-0.17044886946678162,
0.009236765094101429,
-0.08812744915485382,
0.015318000689148903,
0.0442904569208622,
0.004664895590394735,
0.015447094105184078,
-0.2489062249660492,
-0.031955935060977936,
-0.22068382799625397,
-0.1371232271194458,
0.09857426583766937,
-0.05032363161444664,
-0.1877260059118271,
-0.3946232497692108,
0.03757306933403015,
0.11461672931909561,
0.21519525349140167,
0.4167880415916443,
-0.00010279954585712403,
0.100179024040699,
0.024487610906362534,
-0.14054422080516815,
-0.4204069674015045,
-0.04409192502498627,
0.24149321019649506,
-0.2798284590244293,
0.050627391785383224,
-0.25372037291526794,
-0.2172142118215561,
0.2278187870979309,
-0.13784299790859222,
0.1720426380634308,
0.45847591757774353,
0.3797527551651001,
0.3435775339603424,
0.10882853716611862,
0.058562759310007095,
-0.029491839930415154,
0.053817443549633026,
0.0755452960729599,
-0.09401391446590424,
0.0066141365095973015,
0.11091089993715286,
-0.13695405423641205,
0.023830974474549294,
0.3242063522338867,
0.011358519084751606,
-0.008915075100958347,
-0.036702677607536316,
-0.034168243408203125,
0.27362293004989624,
-0.24790799617767334,
0.14702294766902924,
-0.08914441615343094,
0.13293711841106415,
-0.3035683035850525,
-0.037357307970523834,
-0.15410594642162323,
-0.0806475505232811,
-0.4634772539138794,
0.10437335819005966,
0.10102496296167374,
-0.4107733368873596,
0.017262307927012444,
-0.06038914993405342,
-0.005099174566566944,
-0.013899501413106918,
0.02612176164984703,
-0.06625084578990936,
0.5225929021835327,
-0.10536376386880875,
-0.03561462089419365,
0.17084570229053497,
-0.13550983369350433,
0.4120984375476837,
0.08530543744564056,
-0.1276615411043167,
0.023740317672491074,
-0.2587938606739044,
-0.18758170306682587,
-0.07132880389690399,
-0.19862981140613556,
0.07114504277706146,
-0.1124366745352745,
0.1579900085926056,
-0.006024821661412716,
0.4859353303909302,
0.008066325448453426,
0.09800588339567184,
0.35840946435928345,
-0.12021304666996002,
0.3187832534313202,
0.036064472049474716,
0.19465409219264984,
-0.2176499366760254,
-0.12445981800556183,
-0.18594253063201904,
-0.33800652623176575,
0.024283835664391518,
0.03811470419168472,
-0.04628091678023338,
0.016191773116588593,
-0.12717977166175842,
0.16843868792057037,
-0.25359490513801575,
0.27347123622894287,
0.18177780508995056,
0.45709049701690674,
-0.09647423774003983,
0.23021692037582397,
0.17691177129745483,
0.03949592262506485,
-0.20933198928833008,
-0.08185598254203796,
-0.24255557358264923,
0.11645118147134781,
-0.340450257062912,
-0.14218001067638397,
0.10279076546430588,
0.22053924202919006,
0.32517412304878235,
-0.19312486052513123,
0.039561595767736435,
-0.30578094720840454,
0.09569474309682846,
-0.2383192479610443,
0.005653380416333675,
0.12012344598770142,
0.3433285355567932,
0.08770161122083664,
0.09541455656290054,
-0.27830666303634644,
0.11810362339019775,
0.20759673416614532,
-0.2924019992351532,
-0.22915157675743103,
0.20303083956241608,
0.326971173286438,
0.2827203869819641,
0.16861392557621002,
-0.36896824836730957,
-0.006397505756467581,
0.20534665882587433,
0.19656594097614288,
0.05627322569489479,
-0.3184036910533905,
-0.21739226579666138,
-0.13528533279895782,
0.2781275510787964,
0.3030320703983307,
-0.19027705490589142,
-0.2108452171087265,
0.021464724093675613,
-0.03151993826031685,
0.3774224519729614,
0.35845255851745605,
-0.3117791414260864,
0.45800918340682983,
-0.06758367270231247,
-0.05185360088944435,
0.5453792810440063,
-0.5652977824211121,
-0.2127523422241211,
0.15430442988872528,
-0.1909196376800537,
0.04545845463871956,
-0.23864243924617767,
-0.22316598892211914,
0.48298880457878113,
0.0969783291220665,
0.37335875630378723,
0.23807701468467712,
-0.03514334559440613,
0.18965017795562744,
-0.28640052676200867,
0.009054530411958694,
-0.02979140728712082,
-0.005524834152311087,
0.048713766038417816,
-0.05277431383728981,
-0.23434600234031677,
0.12803347408771515,
0.23381991684436798,
-0.010477286763489246,
0.2677805423736572,
0.35829827189445496,
0.3073616325855255,
0.11696627736091614,
-0.12152771651744843,
0.19367524981498718,
0.16735918819904327,
-0.011586764827370644,
-0.030938083305954933,
0.12394639849662781,
-0.07864288985729218,
-0.20585288107395172,
-0.04558412358164787,
0.08280728757381439,
-0.015699012205004692,
-0.3592999577522278,
0.33848708868026733,
0.03753490000963211,
0.026657454669475555,
0.019131503999233246,
0.12357155978679657,
0.29869160056114197,
-0.3541121184825897,
0.22224275767803192,
0.23774367570877075,
0.08528363704681396,
-0.1885538399219513,
-0.18009164929389954,
0.052453670650720596,
0.11839248239994049,
0.241825133562088,
0.02972983755171299,
-0.09869083762168884,
0.2562613785266876,
-0.06630829721689224,
-0.0891711637377739,
-0.09372515976428986,
-0.1130928248167038,
0.015339626930654049,
0.09032080322504044,
-0.0647253468632698,
-0.02062392048537731,
0.16550856828689575,
0.019904840737581253,
0.3511839210987091,
0.20128348469734192,
0.3272453844547272,
0.12731590867042542,
0.20463676750659943,
-0.020622173324227333,
0.23321454226970673,
-0.08574183285236359,
0.18783357739448547,
0.059232454746961594,
0.2610835134983063,
-0.013315277174115181,
0.12506785988807678,
0.005828233901411295,
-0.223613440990448,
0.10840509086847305,
0.22643080353736877,
0.08820944279432297,
-0.023108376190066338,
0.2589932978153229,
-0.28398293256759644,
0.011871292255818844,
-0.04200167953968048,
0.05826294794678688,
0.0772993192076683,
0.21253396570682526,
0.12058485299348831,
0.023036900907754898,
0.07001051306724548,
-0.1982044279575348,
0.25799092650413513,
0.03808824345469475,
-0.08876971900463104,
0.009604514576494694,
0.1740597039461136,
-0.19317574799060822,
-0.3281934857368469,
-0.14499962329864502,
0.12080704420804977,
0.48687079548835754,
-0.11750102043151855,
0.09662915021181107,
-0.027201417833566666,
-0.11306484043598175,
-0.24308420717716217,
-0.09406232833862305,
0.14856058359146118,
-0.01842816360294819,
0.04362645000219345,
0.42132821679115295,
-0.0010325732873752713,
0.3150792717933655,
0.3121342360973358,
0.21861930191516876,
0.1445562243461609,
-0.023167453706264496,
0.013301076367497444,
-0.1335749328136444,
-0.2880649268627167,
0.25668129324913025,
0.21969930827617645,
0.042781561613082886,
0.11719086021184921,
0.06286157667636871,
-0.010483328253030777,
-0.02880457043647766,
-0.044976089149713516,
-0.016239318996667862,
0.022847993299365044,
0.15729914605617523,
-0.16530539095401764,
0.29636916518211365,
-0.26176443696022034,
-0.4079512357711792,
0.18084368109703064,
-0.06044621393084526,
-0.2805641293525696,
-0.19050605595111847,
-0.00012247796985320747,
-0.26797035336494446,
-0.20925699174404144,
-0.2167573869228363,
-0.2778632342815399,
-0.4542641043663025,
-0.010337065905332565,
0.048683300614356995,
0.0854053869843483,
-0.07412411272525787,
0.23381884396076202,
0.20668864250183105,
0.21272438764572144,
0.014099844731390476,
-0.04129771888256073,
-0.2158883959054947,
0.07286875694990158,
-0.23181472718715668,
-0.19289609789848328,
0.009931639768183231,
-0.1537410318851471,
0.34780073165893555,
0.15610268712043762,
-0.4876742660999298,
0.37295305728912354,
-0.07418057322502136,
-0.27123501896858215,
-0.10004972666501999,
-0.06587029993534088,
0.3611465096473694,
0.1052040159702301,
-0.22137852013111115,
0.10723058134317398,
-0.16242176294326782,
-0.040760572999715805,
-0.21253415942192078,
0.29356834292411804,
-0.3540351986885071,
0.6404051184654236,
0.1446559727191925,
0.8162136673927307,
-0.07967881858348846,
0.034761831164360046,
0.17964434623718262,
-0.005289214197546244,
0.08401428908109665,
-0.15344364941120148,
-0.2790311276912689,
0.2999061048030853,
-0.06412999331951141,
-0.18795911967754364,
0.2040015012025833,
-0.007119874469935894,
-0.31854894757270813,
-0.061880990862846375,
0.0575077086687088,
-0.24756868183612823,
-0.397836834192276,
0.2112482339143753,
0.1501995325088501,
0.2670525014400482,
-0.09492943435907364,
0.06593378633260727,
-0.15206514298915863,
-0.09333249926567078,
-0.14048424363136292,
-0.00024590385146439075,
-0.23915518820285797,
-0.0435556061565876,
-0.3146165907382965,
-0.01926203817129135,
-0.5928472876548767,
0.01179259642958641,
0.044850002974271774,
0.2776110768318176,
-0.01765025034546852,
-0.058657534420490265,
0.043976448476314545,
-0.12351293861865997,
0.7291726469993591,
0.19255591928958893,
-0.06416947394609451,
0.053502779453992844,
-0.28914010524749756,
-0.13179464638233185,
-0.0719977393746376,
-0.2500879764556885,
-0.08969135582447052,
0.24954551458358765,
0.1464293897151947,
-0.06834158301353455,
-0.06609489023685455,
-0.044384781271219254,
-0.14966382086277008,
-0.09537403285503387,
0.1433287113904953,
-0.034551531076431274,
-0.3247779905796051,
-0.3178601562976837,
0.47096481919288635,
0.20823591947555542,
0.22642076015472412,
-0.04203878343105316,
-0.2081311047077179,
-0.062482237815856934,
-0.18108826875686646,
0.14638514816761017,
0.03449369966983795,
0.23944666981697083,
0.10306672006845474,
0.10470334440469742,
-0.2255035787820816,
0.14739541709423065,
0.3487258553504944,
0.056992873549461365,
0.2948229908943176,
-0.21321040391921997,
0.001988564617931843,
0.18586064875125885,
0.2423771768808365,
0.3444119691848755,
0.12175258994102478,
0.38381245732307434,
-0.1805277317762375,
0.3563896715641022,
-0.023382624611258507,
0.5706771016120911,
0.13397186994552612,
0.294082373380661,
-0.5356916785240173,
-0.14413441717624664,
-0.07330048084259033,
-0.02295175939798355,
0.13585245609283447,
0.3842630982398987,
-0.2950783967971802,
-0.4676647484302521,
0.2749302387237549,
0.015859898179769516,
0.8640152812004089,
0.0037844479084014893,
0.23275259137153625,
0.22729991376399994,
-0.1183491051197052,
-0.08401276916265488,
-0.4700305163860321,
0.1709434539079666,
-0.14863890409469604,
0.022343814373016357,
0.07310807704925537,
-0.01756853237748146,
0.10964641720056534,
0.052021659910678864,
-0.24352288246154785,
0.019508516415953636,
-0.19688743352890015,
0.043672699481248856,
-0.18424774706363678,
0.07848753035068512,
0.15234872698783875,
-0.22940833866596222,
-0.1582888662815094,
0.3006843626499176,
0.013653924688696861,
-0.015381522476673126,
-0.17219744622707367,
0.1416712999343872,
0.10151299089193344,
-0.1955583393573761,
-0.10968200862407684,
-0.02964685671031475,
-0.6171453595161438,
-0.014899032190442085,
-0.04673729091882706,
-0.4415012300014496,
-0.05589619651436806,
0.13096983730793,
0.22497393190860748,
0.3476778566837311,
-0.027731962502002716,
0.40752077102661133,
0.15527261793613434,
-0.07096794247627258,
0.0084358099848032,
0.08827439695596695,
0.21314913034439087,
-0.14638274908065796,
-0.20493480563163757,
0.2800980806350708,
-0.02398047223687172,
-0.2458447366952896,
-0.12984691560268402,
-0.005215480923652649,
0.08933035284280777,
-0.30253294110298157,
-0.14450548589229584,
0.16709481179714203,
-0.2835962474346161,
-0.19762906432151794,
0.26296645402908325,
-0.17944061756134033,
-0.3451641798019409,
-0.05169212818145752,
0.2241315245628357,
-0.15485039353370667,
-0.11651033163070679,
0.15563927590847015,
0.11426234990358353,
0.0887877568602562,
0.49829962849617004,
0.07226938754320145,
-0.18528588116168976,
-0.337631493806839,
-0.09964989125728607,
0.33305618166923523,
0.2025565505027771,
0.19041939079761505,
0.1405814290046692,
-0.17868420481681824,
0.08438742905855179,
0.2934965491294861,
-0.030442284420132637,
0.10749184340238571,
-0.07092094421386719,
-0.11667703092098236,
-0.58665531873703,
-0.04731683060526848,
-0.06563270837068558,
0.0548391118645668,
0.04823203384876251,
0.6134430766105652,
-0.04891621321439743,
0.014110407792031765,
-0.4224277436733246,
0.16294266283512115,
-0.40169844031333923,
0.35566988587379456,
-0.3384854793548584,
-0.23182877898216248,
0.07102593034505844,
0.15061341226100922,
0.24227219820022583,
0.3419397175312042,
-0.11392004042863846,
-0.4090701639652252,
-0.12221899628639221,
0.0248393751680851,
0.12910278141498566,
-0.13954396545886993,
0.10187266767024994,
-0.06367272138595581,
-0.11373987048864365,
-0.26773715019226074,
0.1700214296579361,
0.20029054582118988,
0.0035483818501234055,
-0.18496310710906982,
0.0020737096201628447,
0.28465622663497925,
0.08803174644708633,
-0.07988128066062927,
0.07335001230239868,
-0.09804999828338623,
0.2036529928445816,
-0.09986785799264908,
0.10829611867666245,
0.022256989032030106,
-0.3535290062427521,
0.017936186864972115,
0.09538950026035309,
0.17078851163387299,
-0.011018872261047363,
-0.15380385518074036,
-0.2709655165672302,
0.058976080268621445,
0.09290315955877304,
0.1874944120645523,
-0.1579522341489792,
-0.005191359668970108,
0.6026736497879028,
0.36958107352256775,
-0.2009860873222351,
0.11993104964494705,
-0.09335789084434509,
-0.26303184032440186,
0.18617881834506989,
0.11452274769544601,
-0.29687848687171936,
-0.19135600328445435,
0.03895502910017967,
0.26869773864746094,
-0.05133676156401634,
-0.35904884338378906,
0.18564368784427643,
-0.13671298325061798,
-0.14909392595291138,
0.0012125774519518018,
0.03907182440161705,
-0.011208364740014076,
0.20230454206466675,
0.41135528683662415,
0.024212835356593132,
0.2234206348657608,
-0.009309733286499977,
0.07597195357084274,
-0.20709441602230072,
-0.12927599251270294,
-0.4814416468143463,
0.14694459736347198,
-0.14719580113887787,
0.14220434427261353,
-0.18225155770778656,
0.0924173966050148,
0.06295531243085861,
-0.37334999442100525,
-0.22840358316898346,
-0.025723379105329514,
-0.49912720918655396,
-0.16935037076473236,
-0.1390734314918518,
0.09327681362628937,
-0.043041374534368515,
0.1080244854092598,
0.2271234542131424,
-0.22728556394577026,
-0.0021618055179715157,
-0.010145588777959347,
-0.21880671381950378,
-0.07374005764722824,
-0.08028937876224518,
0.24935275316238403,
0.002388803521171212,
-0.24133671820163727,
0.18991973996162415,
-0.18742847442626953,
-0.1118919625878334,
-0.16120578348636627,
0.04463641345500946,
0.37798643112182617,
0.36048832535743713,
-0.0842977985739708,
0.018873929977416992,
-0.119073785841465,
-0.05727379396557808,
-0.2295379340648651,
0.18850795924663544,
0.5024797916412354,
0.3665904104709625,
0.03586054965853691,
0.29067930579185486,
-0.3719215989112854,
0.02718704380095005,
0.2588147819042206,
-0.17940443754196167,
-0.19935958087444305,
0.18159350752830505,
0.12728044390678406,
0.025696592405438423,
-0.32398465275764465,
0.01077305804938078,
-0.4952419102191925,
0.1463087648153305,
0.18867552280426025,
-0.07843606173992157,
0.19430723786354065,
-0.10739022493362427,
0.13617107272148132,
-0.15017232298851013,
0.3536183834075928,
0.09349391609430313,
-0.0816858559846878,
-0.29443812370300293,
-0.25290897488594055,
-0.22161927819252014,
0.0027106511406600475,
-0.25704431533813477,
0.2615671157836914,
-0.24748829007148743,
0.10164429992437363,
-0.18072226643562317,
0.06190495565533638,
-0.22514258325099945,
-0.1818196326494217,
-0.13864359259605408,
-0.14337517321109772,
-0.4553709924221039,
0.0009004664025269449,
-0.33380216360092163,
0.20497237145900726,
0.29462793469429016,
-0.27153611183166504,
0.15468092262744904,
-0.20454348623752594,
0.19884614646434784,
0.20048031210899353,
0.12261441349983215,
0.08140267431735992,
0.04948686063289642,
0.26906388998031616,
-0.11802389472723007,
0.24882648885250092,
0.006695422809571028,
0.23437747359275818,
-0.1272742748260498,
-0.22083823382854462,
-0.16445773839950562,
-0.13288439810276031,
0.2034689337015152,
0.34352344274520874,
-0.15129727125167847,
-0.11478748917579651,
-0.19014640152454376,
0.0819563940167427,
0.2690295875072479,
-0.0918128713965416,
0.19338397681713104,
0.20840050280094147,
0.2739050090312958,
0.15075619518756866,
0.011229499243199825,
0.34078407287597656,
-0.0216358732432127,
0.08387306332588196,
-0.3645600974559784,
-0.3167017102241516,
0.5697754621505737,
-0.3233433961868286,
-0.3560695946216583,
0.02812262810766697,
0.07936712354421616,
0.3703938126564026,
-0.10338544845581055,
-0.6004098057746887,
0.05514528229832649,
0.09197047352790833,
0.02421940118074417,
-0.44875288009643555,
0.3624132573604584,
-0.27324968576431274,
0.13493426144123077,
0.006252225488424301,
0.5045965909957886,
-0.029456142336130142,
-0.1434839516878128,
0.1576816737651825,
-0.2444412261247635
] |
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.21180129051208496,
-0.14360380172729492,
-0.12512388825416565,
0.3756682574748993,
0.48718544840812683,
0.02216269075870514,
0.23726357519626617,
0.18793389201164246,
-0.05913156270980835,
0.3615155816078186,
0.20322170853614807,
0.08994996547698975,
-0.11036095023155212,
0.06155663728713989,
-0.081217922270298,
-0.2425246238708496,
-0.15985612571239471,
-0.021135708317160606,
-0.2000569850206375,
0.018532894551753998,
-0.05475785955786705,
0.09967875480651855,
-0.2718251049518585,
0.018651390448212624,
-0.47588711977005005,
-0.21843932569026947,
0.08100113272666931,
0.11550640314817429,
0.1469697207212448,
-0.2040056735277176,
0.07548853754997253,
-0.2590857744216919,
0.04668518155813217,
0.5353177189826965,
-0.00009429439523955807,
-0.09178711473941803,
0.0012607381213456392,
-0.049377813935279846,
-0.1668550670146942,
-0.09355689585208893,
0.225660502910614,
-0.09733019769191742,
0.16999472677707672,
-0.3079279959201813,
-0.21595437824726105,
0.1849449872970581,
-0.13721652328968048,
-0.2383301556110382,
0.28734534978866577,
0.4498963952064514,
0.39090022444725037,
-0.04317571967840195,
0.08619090169668198,
-0.1659836769104004,
-0.08755874633789062,
-0.17321765422821045,
-0.014694903045892715,
0.0005480693653225899,
0.13815778493881226,
-0.02811504155397415,
-0.0035980886314064264,
0.18563883006572723,
0.04755786433815956,
0.03543301299214363,
0.0543556734919548,
0.04493887722492218,
-0.040500059723854065,
-0.2167184054851532,
0.07727367430925369,
-0.030670329928398132,
0.1178380697965622,
-0.2315417230129242,
0.09587128460407257,
-0.03876191005110741,
0.009394899010658264,
-0.4131794273853302,
0.1378815621137619,
0.18599575757980347,
-0.3922763466835022,
0.01640733890235424,
-0.25862744450569153,
-0.030319230630993843,
-0.09341366589069366,
0.06319638341665268,
-0.19565805792808533,
0.008089308626949787,
-0.11820562928915024,
0.06320665031671524,
0.24671438336372375,
-0.017312796786427498,
0.20664682984352112,
0.09114938974380493,
0.014231914654374123,
-0.022196173667907715,
-0.2829052209854126,
-0.02321002259850502,
-0.10806913673877716,
-0.329032838344574,
0.02933678776025772,
-0.18827126920223236,
0.22764892876148224,
0.0041547068394720554,
0.16098859906196594,
0.0526035837829113,
0.14668422937393188,
0.3722303807735443,
-0.3857889175415039,
0.0974772647023201,
0.03329707682132721,
0.08651740849018097,
-0.32769647240638733,
-0.23929959535598755,
-0.05503055080771446,
-0.32166504859924316,
0.06932292133569717,
-0.012490694411098957,
0.06693527102470398,
-0.13259844481945038,
-0.10626178234815598,
0.21118906140327454,
-0.261942595243454,
0.21715900301933289,
0.11598161607980728,
0.25799238681793213,
-0.1407432109117508,
0.1431768536567688,
0.17260238528251648,
-0.07932440936565399,
-0.11216754466295242,
-0.08908496797084808,
-0.35569390654563904,
0.16502638161182404,
-0.3696240782737732,
-0.046862050890922546,
0.19520047307014465,
0.012224479578435421,
0.3212687075138092,
-0.1181158497929573,
0.20263424515724182,
-0.47040486335754395,
0.03208623081445694,
-0.3434748649597168,
0.010664776898920536,
0.06473788619041443,
0.1504807472229004,
0.06024894490838051,
0.09671010076999664,
-0.006275205407291651,
0.21736234426498413,
0.37514814734458923,
-0.26100611686706543,
-0.3041609525680542,
-0.06353311985731125,
0.35462337732315063,
0.2509836256504059,
0.11945674568414688,
0.03153888136148453,
0.0001187104862765409,
0.273051381111145,
0.06212810426950455,
0.03610118106007576,
-0.15404962003231049,
-0.05455651879310608,
-0.18366841971874237,
0.34717607498168945,
0.18880140781402588,
-0.27075523138046265,
0.05628783628344536,
0.219893217086792,
0.05808054655790329,
0.18118855357170105,
0.41263431310653687,
-0.3015066683292389,
0.14603383839130402,
-0.19905060529708862,
-0.16523899137973785,
0.21151979267597198,
-0.16842074692249298,
-0.2656309902667999,
0.03369826823472977,
-0.09298810362815857,
-0.12538734078407288,
-0.19571445882320404,
0.02923733927309513,
0.2991100549697876,
0.22342993319034576,
0.2497166246175766,
0.14062952995300293,
-0.2569424510002136,
0.07252741605043411,
-0.3540611267089844,
-0.18745820224285126,
0.18881967663764954,
0.05513356253504753,
0.3159450590610504,
-0.010522850789129734,
-0.26146799325942993,
0.10662271082401276,
0.1901456117630005,
-0.05796122923493385,
-0.02127196080982685,
0.12604784965515137,
0.3186990022659302,
-0.09297673404216766,
-0.09879539161920547,
-0.047521673142910004,
0.05583827570080757,
0.03965459764003754,
0.06631414592266083,
0.14118574559688568,
-0.18207213282585144,
0.0041499026119709015,
-0.0556848868727684,
-0.0952625721693039,
0.039026256650686264,
-0.2896200120449066,
0.34845077991485596,
0.05792330950498581,
-0.11843948066234589,
-0.005298284813761711,
-0.002044826513156295,
0.31042319536209106,
-0.4857844412326813,
0.0727451965212822,
0.09004149585962296,
0.1761503964662552,
-0.27696141600608826,
-0.22816893458366394,
0.001861646887846291,
0.18276266753673553,
0.15170669555664062,
-0.072107695043087,
-0.19347049295902252,
0.25189417600631714,
-0.0209866501390934,
-0.2037346363067627,
-0.11807183921337128,
-0.07678843289613724,
0.11834276467561722,
-0.08458738774061203,
-0.049265652894973755,
0.0054361107759177685,
0.1151403859257698,
-0.03707856684923172,
0.12774108350276947,
0.0058225723914802074,
0.11216536164283752,
0.012665001675486565,
0.08911271393299103,
-0.03186485916376114,
0.15378902852535248,
-0.06753561645746231,
0.3522229492664337,
-0.03604767844080925,
0.07466752827167511,
0.2333037555217743,
0.2196899950504303,
0.04845484346151352,
-0.34912216663360596,
-0.05267520993947983,
0.3689393401145935,
0.17911770939826965,
-0.012823161669075489,
0.2499067783355713,
-0.1032722070813179,
0.0485810711979866,
-0.03819642588496208,
-0.14892643690109253,
-0.011466878466308117,
0.22895732522010803,
0.08139701932668686,
0.17023949325084686,
-0.001485152984969318,
-0.10168114304542542,
0.14545881748199463,
0.10662184655666351,
0.232187882065773,
-0.11901571601629257,
0.09623328596353531,
-0.03477558493614197,
-0.20559126138687134,
-0.1354939043521881,
0.2554325461387634,
0.49578163027763367,
-0.1811138093471527,
-0.03804132714867592,
-0.18175439536571503,
-0.12901489436626434,
-0.1607402116060257,
-0.06491241604089737,
-0.0140383280813694,
-0.04760502278804779,
0.0061211963184177876,
0.24288228154182434,
0.031590837985277176,
0.34725770354270935,
0.17707368731498718,
0.25847092270851135,
0.12157394737005234,
0.1520349234342575,
0.20219844579696655,
-0.27459716796875,
-0.12167488783597946,
0.2975046932697296,
0.25981274247169495,
-0.012494102120399475,
0.18795786798000336,
0.16828331351280212,
0.03266694396734238,
0.10496392101049423,
-0.007333207409828901,
-0.11409289389848709,
0.020145272836089134,
0.177754744887352,
-0.20087550580501556,
0.19977135956287384,
-0.11993662267923355,
-0.2861020565032959,
0.21923944354057312,
0.008303751237690449,
-0.11594443768262863,
-0.08513364940881729,
0.18911580741405487,
-0.13694822788238525,
-0.150841623544693,
-0.2441035956144333,
-0.1137452945113182,
-0.35967588424682617,
-0.07076956331729889,
-0.06186307594180107,
0.12035293877124786,
-0.10655251145362854,
0.31342506408691406,
0.38274604082107544,
0.08114727586507797,
0.05314510688185692,
-0.19087137281894684,
-0.19741873443126678,
-0.08662562072277069,
-0.13509871065616608,
-0.2241237461566925,
0.01290180440992117,
0.10139069706201553,
0.4695521295070648,
0.015267846174538136,
-0.6003519892692566,
0.029169214889407158,
-0.06624593585729599,
-0.05407383665442467,
-0.0895550474524498,
-0.17224517464637756,
0.4207233488559723,
0.01962961070239544,
-0.25820401310920715,
0.17935238778591156,
-0.19911472499370575,
0.06099335849285126,
-0.12299025803804398,
0.16644494235515594,
-0.24582511186599731,
0.615635335445404,
0.2445942908525467,
0.5803912878036499,
0.02939595840871334,
-0.1628427654504776,
0.19247403740882874,
-0.14675623178482056,
0.14566418528556824,
-0.21369364857673645,
-0.3373979926109314,
0.32858899235725403,
-0.22307613492012024,
-0.3722514510154724,
-0.017113350331783295,
-0.23986846208572388,
-0.24663209915161133,
-0.2296701818704605,
0.09876883029937744,
-0.17992538213729858,
-0.2937251627445221,
0.19860321283340454,
0.05527181923389435,
0.18089936673641205,
-0.10252662003040314,
0.08679810911417007,
-0.06771445274353027,
0.04081959277391434,
-0.0348982997238636,
-0.1857336312532425,
-0.05665167421102524,
-0.11856763809919357,
-0.17256103456020355,
-0.14084820449352264,
-0.23540227115154266,
0.19927985966205597,
-0.07538564503192902,
0.2314155399799347,
-0.1360679566860199,
-0.009562890976667404,
0.06425022333860397,
-0.09359077364206314,
0.5463863611221313,
0.4751870036125183,
-0.2689290940761566,
0.1434054672718048,
-0.32332843542099,
-0.017112979665398598,
-0.044188279658555984,
-0.18524694442749023,
0.16938959062099457,
0.23537442088127136,
0.15396808087825775,
-0.08988261222839355,
-0.04363374039530754,
0.07795008271932602,
-0.01353667676448822,
-0.16407568752765656,
0.08173049986362457,
-0.04106224700808525,
-0.1666172742843628,
-0.23939500749111176,
0.36636289954185486,
0.0689895823597908,
0.3136430084705353,
0.014090032316744328,
-0.2847580313682556,
-0.08506473153829575,
-0.3089568316936493,
0.058431338518857956,
-0.0208035409450531,
0.3193124532699585,
0.010477820411324501,
0.13504444062709808,
-0.2640310823917389,
0.2954730987548828,
0.1380934864282608,
0.030128227546811104,
0.13110928237438202,
0.2317350208759308,
0.1520998477935791,
-0.004891260992735624,
0.34073328971862793,
0.15743128955364227,
0.002329147420823574,
0.03918285295367241,
-0.021914180368185043,
0.39026644825935364,
-0.11591465771198273,
0.33353328704833984,
0.2773238718509674,
0.21409520506858826,
-0.3580309748649597,
-0.2283453792333603,
0.14922505617141724,
0.08471805602312088,
0.12356304377317429,
0.5383544564247131,
-0.07970459759235382,
-0.28667187690734863,
0.08953365683555603,
0.21357697248458862,
0.8268974423408508,
-0.12995994091033936,
0.1022183820605278,
0.20268812775611877,
-0.16591313481330872,
0.23995384573936462,
-0.06221418455243111,
0.2329431176185608,
-0.21491660177707672,
-0.13932451605796814,
0.024263223633170128,
-0.03908891975879669,
0.12248572707176208,
-0.04611000418663025,
-0.25851860642433167,
-0.015125089325010777,
-0.22537605464458466,
-0.056612081825733185,
-0.11531126499176025,
0.0038401163183152676,
0.22765830159187317,
-0.22368231415748596,
-0.0902872383594513,
0.33015185594558716,
-0.19993437826633453,
-0.14137190580368042,
-0.09618502855300903,
0.10164515674114227,
0.257001668214798,
0.10423970967531204,
-0.3447316884994507,
-0.050395626574754715,
-0.562271237373352,
0.07107079029083252,
-0.26641029119491577,
-0.46826133131980896,
0.0003380560374353081,
-0.028303245082497597,
0.21206246316432953,
0.2580200433731079,
0.005196887068450451,
0.28025269508361816,
-0.0005389873404055834,
-0.06366487592458725,
0.003279319265857339,
0.24070295691490173,
0.4479750692844391,
-0.18495656549930573,
-0.28736910223960876,
0.550626814365387,
0.001977457432076335,
-0.28769686818122864,
0.10275880247354507,
-0.007673350628465414,
-0.06472219526767731,
-0.3952242136001587,
-0.3604305684566498,
0.14809954166412354,
-0.14872287213802338,
-0.21145713329315186,
0.30577224493026733,
0.10426099598407745,
-0.260714054107666,
0.07233674079179764,
0.10138343274593353,
-0.21812936663627625,
-0.12877555191516876,
0.15559686720371246,
0.23361769318580627,
-0.012321293354034424,
0.4842814803123474,
0.2296358346939087,
-0.11450378596782684,
-0.25151777267456055,
-0.25864067673683167,
0.33903825283050537,
-0.0731496587395668,
0.13114896416664124,
-0.03187631815671921,
-0.05018731579184532,
0.1253540962934494,
0.30230486392974854,
0.10050065070390701,
0.2856653928756714,
-0.11659582704305649,
-0.018492719158530235,
-0.7076218724250793,
-0.06532958149909973,
-0.0600256621837616,
0.21860364079475403,
0.023509249091148376,
0.39100122451782227,
0.056273337453603745,
0.09097312390804291,
-0.4736708402633667,
0.17704635858535767,
-0.5639115571975708,
0.2904715836048126,
-0.25666239857673645,
-0.2054283171892166,
0.04160553961992264,
0.004029383882880211,
0.24643686413764954,
0.42433708906173706,
-0.04766355827450752,
-0.4267258644104004,
0.021606145426630974,
-0.041905391961336136,
0.11663758009672165,
-0.10296110808849335,
-0.030495308339595795,
-0.24458202719688416,
-0.14332348108291626,
-0.13619576394557953,
0.1577346920967102,
0.18954035639762878,
-0.04768691584467888,
0.11949881166219711,
-0.10960681736469269,
-0.06953997164964676,
0.023750001564621925,
-0.12137987464666367,
0.06752119213342667,
0.1495753675699234,
0.3131263554096222,
-0.07343217730522156,
0.12481573224067688,
-0.037387195974588394,
-0.4617181718349457,
0.08339183032512665,
-0.09932668507099152,
0.11931520700454712,
0.06948085129261017,
-0.3183686435222626,
-0.2227093130350113,
0.1084948480129242,
0.17467287182807922,
-0.017703482881188393,
-0.13916321098804474,
0.016427436843514442,
0.35870927572250366,
0.42994827032089233,
-0.24692560732364655,
0.20030513405799866,
-0.14432398974895477,
-0.16120658814907074,
0.1397995501756668,
0.12167441844940186,
-0.128263920545578,
-0.133164644241333,
0.05328899994492531,
0.22427977621555328,
0.09566847234964371,
-0.3333975076675415,
0.09065474569797516,
-0.08946965634822845,
-0.10644793510437012,
-0.1372930407524109,
0.1221797987818718,
0.1889847368001938,
0.25471746921539307,
0.49370357394218445,
-0.12952101230621338,
0.26897650957107544,
0.0964159145951271,
0.0695054903626442,
-0.07606567442417145,
-0.12023203074932098,
-0.2427157312631607,
0.13349853456020355,
-0.18906207382678986,
0.029656289145350456,
-0.3137660324573517,
0.19129565358161926,
-0.1022823303937912,
-0.4251877963542938,
-0.18546736240386963,
0.1470765769481659,
-0.5079361200332642,
0.13604091107845306,
0.060473017394542694,
-0.1074739620089531,
0.05501282960176468,
0.11242569983005524,
0.16305221617221832,
-0.23540663719177246,
0.2463976889848709,
0.02214701846241951,
-0.3643356263637543,
0.035330723971128464,
-0.07737131416797638,
0.21413399279117584,
0.03862150385975838,
-0.1875317394733429,
0.3076164424419403,
0.16209550201892853,
-0.22369539737701416,
-0.12915460765361786,
0.22759145498275757,
0.3513898551464081,
0.3235752284526825,
-0.09980907291173935,
0.1433095484972,
0.021763889119029045,
-0.08173220604658127,
-0.07209349423646927,
0.078910231590271,
0.4305177330970764,
0.28878074884414673,
0.1629033386707306,
0.31045079231262207,
-0.28543761372566223,
0.1994960755109787,
0.22302024066448212,
0.15955623984336853,
-0.37715765833854675,
0.12783044576644897,
0.019839540123939514,
-0.13774627447128296,
-0.2737790644168854,
-0.024592051282525063,
-0.34976693987846375,
0.1815815567970276,
0.15110312402248383,
-0.28211918473243713,
-0.014057856984436512,
0.039446186274290085,
0.17604079842567444,
-0.0886114090681076,
0.5066296458244324,
0.1213652491569519,
0.04652733355760574,
-0.4374963045120239,
-0.3422836661338806,
-0.2839965522289276,
0.16504459083080292,
-0.1825193166732788,
0.256449818611145,
-0.08108416199684143,
0.19389288127422333,
-0.09595419466495514,
-0.10817727446556091,
-0.048662472516298294,
0.07469026744365692,
-0.02539455145597458,
-0.09103363007307053,
-0.4974973201751709,
-0.08559131622314453,
-0.3642124533653259,
-0.025506362318992615,
0.18548338115215302,
0.008982013911008835,
0.1564377099275589,
-0.21378692984580994,
0.2555185556411743,
0.14851689338684082,
0.10380475968122482,
-0.030718402937054634,
0.2767016887664795,
0.3055880665779114,
-0.11579596996307373,
0.13028986752033234,
0.2141694873571396,
0.18820242583751678,
-0.028770752251148224,
-0.2173268347978592,
-0.09552501142024994,
0.001677794847637415,
0.3564395606517792,
0.27146610617637634,
-0.10657082498073578,
-0.04647870361804962,
-0.20488040149211884,
0.24885962903499603,
0.15994971990585327,
-0.2749102711677551,
0.1392546147108078,
0.018373310565948486,
0.28953123092651367,
0.04709454998373985,
0.31795263290405273,
0.47634458541870117,
0.027108876034617424,
0.0310970451682806,
-0.3615967929363251,
-0.2376401722431183,
0.5043507814407349,
-0.09958259016275406,
-0.31009918451309204,
-0.1498214304447174,
0.08239942789077759,
0.2493334710597992,
-0.10752648860216141,
-0.7183138132095337,
-0.19505369663238525,
0.19318723678588867,
-0.08990845829248428,
-0.32743528485298157,
0.18083250522613525,
-0.23722480237483978,
0.07683534920215607,
0.10032269358634949,
0.38578131794929504,
-0.05358298867940903,
-0.10840372741222382,
0.07013412564992905,
-0.21666739881038666
] |
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.2429942935705185,
-0.03836878389120102,
-0.0662144124507904,
0.1940217763185501,
0.5733140110969543,
-0.09684989601373672,
0.34831446409225464,
0.09402614831924438,
-0.09143117815256119,
0.4046831429004669,
0.04622307047247887,
0.013582122512161732,
-0.08127196133136749,
0.3208121657371521,
-0.1960570216178894,
-0.3946536183357239,
-0.03280981257557869,
0.010243131779134274,
-0.1957317292690277,
-0.01216876320540905,
-0.012356553226709366,
-0.0033928314223885536,
-0.15927936136722565,
0.08709932118654251,
-0.14104408025741577,
-0.03772813826799393,
0.0021219162736088037,
0.009034871123731136,
-0.11637525260448456,
-0.2628357708454132,
0.08894383162260056,
-0.06427975744009018,
0.1672818660736084,
0.3281092643737793,
-0.00010076785838464275,
0.13395406305789948,
0.10429701209068298,
-0.11166433990001678,
-0.2635503113269806,
-0.17295920848846436,
-0.1789836883544922,
-0.13994279503822327,
0.21022671461105347,
-0.2823685109615326,
-0.16641634702682495,
0.4420577585697174,
-0.05169247090816498,
0.033731378614902496,
0.5577885508537292,
0.412812739610672,
0.3356891870498657,
0.12123845517635345,
0.15100069344043732,
-0.2648310363292694,
0.21763765811920166,
-0.005071375053375959,
-0.04255992919206619,
-0.04077885299921036,
0.10389344394207001,
-0.0698290467262268,
-0.07749862968921661,
0.3561426103115082,
0.13299481570720673,
0.14851100742816925,
0.15472646057605743,
-0.0627807155251503,
0.11888573318719864,
-0.21417564153671265,
0.10813074558973312,
0.12219615280628204,
0.15345808863639832,
-0.1914740353822708,
-0.05998453497886658,
0.05321410298347473,
0.015393967740237713,
-0.318294882774353,
0.14677420258522034,
-0.01669524610042572,
-0.3548562526702881,
0.09463657438755035,
-0.10523476451635361,
-0.2175528109073639,
-0.10257751494646072,
-0.11409343779087067,
-0.16659294068813324,
0.14906729757785797,
-0.0371917225420475,
-0.058753594756126404,
0.290348619222641,
-0.12540538609027863,
0.3205074667930603,
0.15371853113174438,
0.04271019622683525,
-0.07381423562765121,
-0.2277669459581375,
-0.11704210937023163,
-0.05334652587771416,
-0.1595802754163742,
0.05712692067027092,
-0.3830277919769287,
0.2500413954257965,
-0.11625679582357407,
0.19599199295043945,
0.03535470739006996,
0.31704607605934143,
0.28627970814704895,
-0.3701375722885132,
0.23911428451538086,
0.05038604885339737,
0.17463739216327667,
-0.3613770604133606,
-0.22724567353725433,
-0.11120437830686569,
-0.32679814100265503,
-0.08005954325199127,
-0.032748568803071976,
0.07927940040826797,
-0.16198690235614777,
-0.27226847410202026,
0.17253202199935913,
-0.25488200783729553,
0.2640633285045624,
0.2559896409511566,
0.47260382771492004,
0.0060155862011015415,
0.2089017629623413,
0.13218338787555695,
0.010428222827613354,
-0.07138875126838684,
-0.06968889385461807,
-0.2688012421131134,
0.0624106265604496,
-0.38502180576324463,
-0.15378382802009583,
0.11058302223682404,
0.0035163757856935263,
0.23799313604831696,
-0.10263413935899734,
0.05203670635819435,
-0.1890207827091217,
0.07476691901683807,
-0.320901095867157,
0.001383183291181922,
0.13014718890190125,
0.34648868441581726,
0.03608096390962601,
0.020009946078062057,
-0.02498692274093628,
0.22502440214157104,
0.2758374810218811,
-0.4562956690788269,
-0.3984081447124481,
0.09507502615451813,
0.2998204231262207,
0.3816590905189514,
0.0991174727678299,
-0.17657262086868286,
0.15996547043323517,
0.19639433920383453,
-0.04913828521966934,
-0.03052482008934021,
-0.20067371428012848,
-0.09904413670301437,
-0.1039264127612114,
0.31588390469551086,
0.39162105321884155,
-0.4216259717941284,
-0.11405914276838303,
-0.1328936368227005,
-0.014220107346773148,
0.3896186649799347,
0.5055038332939148,
-0.4047175645828247,
0.15587489306926727,
-0.054360657930374146,
0.026964299380779266,
0.3355783522129059,
-0.2730366289615631,
-0.20736098289489746,
0.1021934375166893,
0.08260007202625275,
-0.0646454319357872,
-0.26751428842544556,
-0.24818967282772064,
0.3915964365005493,
0.02644893154501915,
0.2502962648868561,
0.08183116465806961,
-0.2580810785293579,
0.18152861297130585,
-0.23470325767993927,
-0.04935465753078461,
0.11437477171421051,
-0.08367818593978882,
0.22231519222259521,
0.017153173685073853,
-0.22888459265232086,
0.3926401436328888,
0.09651388972997665,
-0.11829469352960587,
0.14004014432430267,
0.287497878074646,
0.3379261791706085,
0.009011239744722843,
-0.07410116493701935,
0.15340150892734528,
-0.02642514929175377,
-0.043366335332393646,
-0.0966736450791359,
0.07823382318019867,
-0.07320082187652588,
-0.10022778064012527,
-0.04708005487918854,
0.0761650800704956,
0.03290862590074539,
-0.2485426366329193,
0.33555442094802856,
0.006359767634421587,
-0.24552395939826965,
-0.07196395099163055,
0.02388405054807663,
0.06178225576877594,
-0.4273534417152405,
0.12834011018276215,
0.25384095311164856,
0.17705018818378448,
-0.32525086402893066,
-0.06469779461622238,
0.07312119752168655,
0.19531293213367462,
0.12153296172618866,
0.022677071392536163,
-0.1938197910785675,
0.2192295789718628,
-0.09491411596536636,
-0.005697209388017654,
0.1321398764848709,
-0.2101241499185562,
0.07618791610002518,
-0.18188749253749847,
-0.13890059292316437,
-0.04909588396549225,
0.2414444088935852,
0.039605654776096344,
0.038933370262384415,
-0.042798612266778946,
0.2721197307109833,
0.10307008028030396,
0.27469494938850403,
0.06659069657325745,
0.3181398808956146,
0.030663184821605682,
0.28616800904273987,
-0.10760581493377686,
0.17055316269397736,
0.13054828345775604,
0.3169267475605011,
0.022553062066435814,
-0.3410426378250122,
0.022645628079771996,
0.40996304154396057,
0.2349964827299118,
0.03243204951286316,
0.2992371916770935,
-0.11926580965518951,
-0.12152383476495743,
-0.0560285858809948,
-0.025268346071243286,
0.06448885798454285,
0.164000004529953,
0.19572097063064575,
0.018466267734766006,
-0.06645747274160385,
-0.12169337272644043,
0.2433016449213028,
0.09436120837926865,
0.045273713767528534,
-0.10183518379926682,
0.17762801051139832,
-0.1306377500295639,
-0.24933014810085297,
-0.0861564353108406,
0.2323690801858902,
0.49890291690826416,
-0.22847355902194977,
0.06299110502004623,
-0.08762504160404205,
-0.03176061436533928,
-0.19935747981071472,
-0.3456012010574341,
-0.05940144136548042,
-0.051053378731012344,
0.1763630211353302,
0.23234379291534424,
-0.08685003221035004,
0.30038151144981384,
0.3504386842250824,
0.2910864055156708,
0.08623261004686356,
0.3323000967502594,
-0.06941089034080505,
-0.27613937854766846,
-0.10768784582614899,
0.2419590801000595,
0.2913651764392853,
0.04247567057609558,
0.045102618634700775,
0.06426109373569489,
0.0696691945195198,
0.012854323722422123,
-0.1309444010257721,
0.015497075393795967,
0.06093981862068176,
0.23332467675209045,
-0.009448039345443249,
0.3017677962779999,
-0.23264577984809875,
-0.3526661992073059,
0.22103480994701385,
0.012278598733246326,
-0.20541352033615112,
-0.06695324927568436,
0.04792957752943039,
-0.12713253498077393,
-0.1160668358206749,
-0.26544395089149475,
-0.18987633287906647,
-0.41464999318122864,
-0.1663345992565155,
-0.10740496963262558,
0.07278254628181458,
-0.2737419307231903,
0.29127806425094604,
0.3617984652519226,
0.2805689573287964,
-0.010073408484458923,
-0.08601903915405273,
-0.1375761330127716,
-0.1062794104218483,
-0.2191576510667801,
-0.23723150789737701,
-0.058748360723257065,
0.12960055470466614,
0.36591586470603943,
0.0628579705953598,
-0.46086737513542175,
0.22249741852283478,
-0.044592417776584625,
-0.3251988887786865,
0.03332749754190445,
-0.12585560977458954,
0.3331925868988037,
0.1592574268579483,
-0.2517316937446594,
0.001817541429772973,
-0.09338779002428055,
0.08264173567295074,
-0.22950252890586853,
0.25069138407707214,
-0.4444754421710968,
0.6022295355796814,
0.05268241837620735,
0.8941941261291504,
-0.12792637944221497,
-0.05367441102862358,
0.3798964321613312,
0.059921156615018845,
0.1554170846939087,
-0.36532294750213623,
-0.2811015844345093,
0.2810935080051422,
-0.1616922914981842,
-0.2178432047367096,
0.0793064758181572,
-0.21245788037776947,
-0.3545595705509186,
-0.21426807343959808,
0.050659503787755966,
-0.1614798903465271,
-0.37491363286972046,
0.16032341122627258,
0.16640321910381317,
0.2591395676136017,
0.07933215796947479,
0.03308437392115593,
-0.08240348100662231,
-0.02623699977993965,
-0.06186564266681671,
-0.006616806145757437,
-0.04041339084506035,
-0.12206631153821945,
-0.021758535876870155,
-0.2404600828886032,
-0.5254941582679749,
0.2049483358860016,
-0.036858029663562775,
0.12657463550567627,
-0.2106069177389145,
-0.009733538143336773,
0.03571660444140434,
-0.21149203181266785,
0.6061286330223083,
0.20602798461914062,
-0.20617754757404327,
-0.045146744698286057,
-0.12124951183795929,
-0.004388520494103432,
0.045268893241882324,
-0.25967368483543396,
-0.04937617480754852,
0.22484028339385986,
0.17284080386161804,
-0.10166899114847183,
-0.07975354790687561,
0.09452538192272186,
-0.18799114227294922,
-0.13708265125751495,
0.13490726053714752,
-0.04986348748207092,
-0.08429013192653656,
-0.3133476674556732,
0.395028293132782,
0.07743019610643387,
0.1835729479789734,
-0.08992862701416016,
-0.2849119305610657,
-0.12121269106864929,
-0.11383672803640366,
0.006106507033109665,
0.07083731889724731,
0.27861008048057556,
0.0029744538478553295,
0.1523183435201645,
-0.2993791103363037,
0.3828774690628052,
0.5157995223999023,
0.11901771277189255,
-0.08741717785596848,
-0.19025257229804993,
0.1858585774898529,
0.12490637600421906,
0.14549018442630768,
0.2861862778663635,
0.12575392425060272,
0.18245434761047363,
0.07277236878871918,
0.23403973877429962,
0.14027155935764313,
0.4638530910015106,
0.2891494929790497,
0.2993741035461426,
-0.4249509572982788,
-0.12562493979930878,
0.08569151163101196,
-0.03401432931423187,
0.08353321254253387,
0.29307663440704346,
0.04907245188951492,
-0.30223947763442993,
0.3243860602378845,
0.08704458922147751,
0.8639281392097473,
-0.07929516583681107,
0.18022620677947998,
0.1918710470199585,
-0.17099814116954803,
0.1523241251707077,
-0.09370411932468414,
0.10805127024650574,
-0.15156173706054688,
-0.032204024493694305,
-0.01753281056880951,
0.049905773252248764,
0.037656523287296295,
-0.0029828178230673075,
-0.39401480555534363,
0.013487514108419418,
-0.20693320035934448,
-0.10536318272352219,
-0.2126815766096115,
-0.06337787955999374,
0.2877335548400879,
-0.185821071267128,
-0.26179617643356323,
0.2688196003437042,
0.001203033491037786,
-0.033270180225372314,
-0.14949171245098114,
-0.10488519817590714,
0.3056625425815582,
-0.14472661912441254,
-0.24450287222862244,
0.029904671013355255,
-0.5581148266792297,
0.027568867430090904,
-0.18097683787345886,
-0.5129506587982178,
0.10471408814191818,
-0.00815516710281372,
0.29739058017730713,
0.16034121811389923,
-0.18869933485984802,
0.40274354815483093,
0.10413279384374619,
-0.030940750613808632,
-0.05848286300897598,
0.2015683501958847,
0.37388095259666443,
-0.20048587024211884,
-0.20937685668468475,
0.37394818663597107,
-0.14684166014194489,
-0.2974857985973358,
0.007160283625125885,
-0.08179282397031784,
0.2527708411216736,
-0.34739795327186584,
-0.24595414102077484,
0.2132868766784668,
-0.16708537936210632,
-0.2638561725616455,
0.27890652418136597,
-0.13555768132209778,
-0.18373160064220428,
-0.07560543715953827,
0.07955916970968246,
-0.12855345010757446,
-0.09470514953136444,
0.049782104790210724,
0.0582113042473793,
0.29099318385124207,
0.5716349482536316,
0.12001441419124603,
-0.16381071507930756,
-0.2546854019165039,
-0.21720059216022491,
0.5439642667770386,
-0.05711841583251953,
0.20541279017925262,
0.08801554143428802,
-0.1192769706249237,
0.09425773471593857,
0.32804596424102783,
-0.031490080058574677,
0.15165668725967407,
-0.07716958969831467,
-0.08614508807659149,
-0.6292020678520203,
-0.008025938645005226,
-0.13332726061344147,
0.15877440571784973,
0.03172295540571213,
0.39955297112464905,
0.13590185344219208,
0.07406456768512726,
-0.40381449460983276,
0.18539997935295105,
-0.48036232590675354,
0.2574848532676697,
-0.3123632073402405,
-0.22114820778369904,
0.1500566601753235,
0.018397411331534386,
0.19831666350364685,
0.3915614187717438,
-0.08780594170093536,
-0.38812050223350525,
-0.05162183195352554,
0.012922385707497597,
0.053625259548425674,
-0.04442603886127472,
-0.024294603615999222,
-0.07711264491081238,
-0.16461293399333954,
-0.1381661295890808,
0.16057296097278595,
0.1419166773557663,
-0.007023926358669996,
-0.10029282420873642,
0.048686906695365906,
0.08146068453788757,
0.021853750571608543,
-0.06664241850376129,
0.32286739349365234,
-0.047148242592811584,
0.042588308453559875,
-0.020396260544657707,
0.04442369565367699,
-0.11828481405973434,
-0.3260057866573334,
0.06150360405445099,
0.0719495341181755,
0.24596787989139557,
-0.01399457547813654,
-0.13440728187561035,
-0.11723216623067856,
0.009473172016441822,
0.2008037567138672,
0.06645964086055756,
-0.08165783435106277,
0.08268264681100845,
0.5198853015899658,
0.3543415367603302,
-0.39993613958358765,
0.13678990304470062,
-0.17836453020572662,
-0.23018884658813477,
0.040373366326093674,
-0.0616377629339695,
-0.26641881465911865,
0.017593128606677055,
0.11388566344976425,
0.29834094643592834,
-0.2819609045982361,
-0.2614426016807556,
0.014540310949087143,
0.05352633073925972,
-0.23070265352725983,
0.056904226541519165,
0.07766491174697876,
0.08079032599925995,
0.2725350856781006,
0.5964998602867126,
-0.08891186118125916,
0.20896387100219727,
-0.015183883719146252,
0.04999878630042076,
0.0881483405828476,
-0.22118470072746277,
-0.43664392828941345,
0.12125156819820404,
-0.1020084097981453,
0.18626485764980316,
-0.20014825463294983,
0.2823794484138489,
-0.05793481692671776,
-0.554673969745636,
-0.22745952010154724,
0.12140799313783646,
-0.4557275176048279,
-0.23737244307994843,
-0.07752515375614166,
-0.06846635043621063,
0.11235871911048889,
0.10911306738853455,
0.08120300620794296,
0.04384282976388931,
0.2696990966796875,
0.03300180286169052,
-0.18808457255363464,
-0.03531238064169884,
-0.08835501968860626,
0.31323161721229553,
-0.04309925436973572,
-0.14550161361694336,
0.31321001052856445,
-0.030495136976242065,
-0.3657895028591156,
-0.008171919733285904,
0.1843423843383789,
0.33743640780448914,
0.36834150552749634,
-0.0031503629870712757,
-0.04104665666818619,
0.06911482661962509,
-0.13063231110572815,
-0.11712690442800522,
0.038933973759412766,
0.6038049459457397,
0.361337810754776,
0.1704290211200714,
0.2067406177520752,
-0.2698085308074951,
0.21609503030776978,
0.17427712678909302,
0.2378053367137909,
-0.270325630903244,
0.13279949128627777,
0.08808895945549011,
0.0074962228536605835,
-0.39030835032463074,
0.034563999623060226,
-0.48441261053085327,
0.27894631028175354,
0.10594724863767624,
-0.2162213772535324,
0.007046552840620279,
-0.0284638162702322,
0.13265563547611237,
-0.0766892209649086,
0.4783807098865509,
0.14066824316978455,
-0.0817660465836525,
-0.450171560049057,
-0.22138400375843048,
-0.32045650482177734,
0.08014996349811554,
-0.19937817752361298,
0.4961874186992645,
-0.13125909864902496,
0.17480577528476715,
-0.1713675558567047,
-0.054603397846221924,
0.10647213459014893,
-0.1912437379360199,
-0.2039949893951416,
-0.07291366159915924,
-0.5115634799003601,
-0.05684385448694229,
-0.4868827760219574,
-0.04841448739171028,
0.27847951650619507,
-0.1454189121723175,
0.2637949585914612,
-0.06526288390159607,
0.17791110277175903,
0.23983024060726166,
0.13731998205184937,
0.13421957194805145,
0.2333131581544876,
0.25236114859580994,
-0.11934183537960052,
0.21229271590709686,
0.08453075587749481,
0.18724700808525085,
-0.017774023115634918,
-0.3345733880996704,
-0.16545605659484863,
-0.16050006449222565,
0.3346553444862366,
0.2071070671081543,
-0.21511799097061157,
-0.15144763886928558,
-0.27278387546539307,
0.03226165473461151,
0.16964037716388702,
-0.24076834321022034,
-0.05666313320398331,
0.09150625020265579,
0.3267951011657715,
-0.008163230493664742,
0.11933720111846924,
0.3521058261394501,
-0.0016529501881450415,
-0.019166598096489906,
-0.4411461651325226,
-0.23938147723674774,
0.6260101795196533,
-0.1650121808052063,
-0.25514212250709534,
-0.09212780743837357,
-0.01549539528787136,
0.43613696098327637,
-0.1941230595111847,
-0.933668851852417,
-0.07605159282684326,
0.07276713848114014,
0.02007046900689602,
-0.43874141573905945,
0.0850871279835701,
-0.1784357726573944,
0.24502776563167572,
-0.07050375640392303,
0.44207632541656494,
0.07848401367664337,
-0.21921180188655853,
0.2160792499780655,
-0.1709849238395691
] |
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.353885293006897,
-0.06870332360267639,
-0.14324317872524261,
0.305707722902298,
0.598089873790741,
-0.030180344358086586,
0.4453646242618561,
0.2957354784011841,
-0.06214018911123276,
0.40821707248687744,
0.21726590394973755,
0.05362335965037346,
-0.07481788843870163,
0.1507742553949356,
-0.1334303766489029,
-0.1775919497013092,
-0.054091926664114,
0.03615373745560646,
-0.07170458883047104,
0.03248831257224083,
-0.034517280757427216,
0.00906318798661232,
-0.26187261939048767,
-0.08725877106189728,
-0.449258953332901,
-0.09582314640283585,
0.06325913220643997,
-0.0474194772541523,
0.013521046377718449,
-0.2511961758136749,
-0.05018750950694084,
-0.07683128863573074,
0.12266100943088531,
0.4445253610610962,
-0.0000950248577282764,
-0.008997982367873192,
0.048827193677425385,
-0.07937528938055038,
-0.15939639508724213,
0.0037028773222118616,
0.001066158409230411,
-0.1991862952709198,
0.06802327930927277,
-0.30737489461898804,
-0.3009664714336395,
0.23255889117717743,
-0.048318177461624146,
-0.17610064148902893,
0.4668053984642029,
0.3489148020744324,
0.40581339597702026,
0.06421662122011185,
-0.04809115082025528,
-0.16674897074699402,
0.0934201031923294,
-0.10087329149246216,
-0.043704818934202194,
-0.0739784836769104,
0.2798733115196228,
-0.051033973693847656,
-0.16393724083900452,
0.22839930653572083,
0.09558374434709549,
-0.024831168353557587,
0.008826087228953838,
0.02864292822778225,
0.12506785988807678,
-0.18743112683296204,
0.16574861109256744,
-0.010783389210700989,
0.13922594487667084,
-0.1024777889251709,
0.08512787520885468,
0.015501611866056919,
-0.12462405860424042,
-0.49658894538879395,
0.140178382396698,
0.0640610083937645,
-0.3090765178203583,
0.08350648730993271,
-0.1675759255886078,
0.10294059664011002,
-0.06508850306272507,
-0.03283008188009262,
-0.252169668674469,
0.24958674609661102,
-0.11940649151802063,
-0.004326548893004656,
0.1522548645734787,
-0.14607863128185272,
0.15842944383621216,
0.08828002214431763,
-0.0002289675612701103,
0.028994882479310036,
-0.27785056829452515,
-0.049447864294052124,
-0.050669021904468536,
-0.27397972345352173,
0.1108093336224556,
-0.19953715801239014,
0.16923139989376068,
0.12958203256130219,
0.23288513720035553,
0.038641154766082764,
0.12230460345745087,
0.33360376954078674,
-0.12371528148651123,
0.013423915021121502,
0.06889396160840988,
0.18664172291755676,
-0.3788159489631653,
-0.19595809280872345,
-0.10814274847507477,
-0.3177540600299835,
-0.008256303146481514,
0.11225875467061996,
-0.1409737914800644,
-0.06932858377695084,
-0.06154642626643181,
0.2887708246707916,
-0.19367051124572754,
0.1201416403055191,
0.09231497347354889,
0.32972079515457153,
-0.04621025174856186,
0.06142130121588707,
0.012229179963469505,
-0.07943381369113922,
-0.058131519705057144,
-0.15341366827487946,
-0.29284706711769104,
-0.07967859506607056,
-0.4233682453632355,
-0.017538921907544136,
0.1741265505552292,
0.10731036216020584,
0.27360761165618896,
-0.08490923047065735,
0.06044064834713936,
-0.3291592001914978,
0.06844928860664368,
-0.28563830256462097,
0.10458670556545258,
0.0019268118776381016,
0.26127222180366516,
0.04982997849583626,
0.04548991844058037,
-0.13848964869976044,
0.21031224727630615,
0.23355872929096222,
-0.16264022886753082,
-0.1971842348575592,
-0.10500426590442657,
0.35000383853912354,
0.3678777813911438,
0.26986321806907654,
-0.044257085770368576,
0.007363298907876015,
0.2607894539833069,
0.10840699821710587,
0.006452907808125019,
-0.10189992934465408,
-0.12605531513690948,
-0.15325462818145752,
0.29143643379211426,
0.2016897350549698,
-0.3154519498348236,
-0.02600494772195816,
0.19408053159713745,
0.07530961185693741,
0.2819882929325104,
0.48223876953125,
-0.30722692608833313,
0.15553924441337585,
-0.19693410396575928,
0.16197530925273895,
0.2056475728750229,
-0.28386279940605164,
-0.2273935228586197,
0.15449590981006622,
-0.2635687589645386,
-0.07341240346431732,
-0.18394158780574799,
-0.1002921611070633,
0.5489266514778137,
0.08630655705928802,
0.36414188146591187,
0.1814378798007965,
-0.15000344812870026,
0.04597095772624016,
-0.36306458711624146,
-0.12241172790527344,
0.1280619353055954,
0.057372793555259705,
0.17944453656673431,
-0.0891333669424057,
-0.17004266381263733,
-0.0015278453938663006,
0.19906407594680786,
-0.1354990154504776,
0.17847011983394623,
0.2134157121181488,
0.3221108317375183,
0.03610440716147423,
-0.13976334035396576,
0.16991838812828064,
0.024538660421967506,
0.045542169362306595,
0.11076408624649048,
0.1084505021572113,
-0.1470893919467926,
-0.16558308899402618,
-0.02505933865904808,
-0.10397843271493912,
-0.01781078614294529,
-0.20414891839027405,
0.3734978139400482,
-0.05864337831735611,
-0.12047643214464188,
0.01450306735932827,
0.038714177906513214,
0.14953304827213287,
-0.46180054545402527,
0.14773017168045044,
0.1302768588066101,
0.08003716170787811,
-0.26172757148742676,
-0.12969914078712463,
0.03769374266266823,
0.20478738844394684,
0.19602921605110168,
-0.12153749167919159,
-0.10780329257249832,
0.29210400581359863,
0.10261448472738266,
-0.20141556859016418,
-0.08682212978601456,
-0.02303297445178032,
0.056648705154657364,
0.01947489008307457,
-0.11824914813041687,
-0.07965176552534103,
-0.0015653440495952964,
-0.08570520579814911,
0.012437879107892513,
0.10060028731822968,
0.269478440284729,
0.09590164572000504,
0.04807590693235397,
0.010364331305027008,
0.35869839787483215,
-0.11405716091394424,
0.16401323676109314,
-0.1487576961517334,
0.08513659238815308,
0.24059361219406128,
0.10013210028409958,
0.1569630354642868,
-0.24060003459453583,
0.01312283705919981,
0.35670214891433716,
0.1434333771467209,
0.010612416081130505,
0.23536112904548645,
-0.1175423189997673,
0.011569990776479244,
-0.02414843440055847,
-0.08060397207736969,
-0.10705173015594482,
0.24899421632289886,
0.110284224152565,
0.06386853754520416,
0.03927528113126755,
-0.16608524322509766,
0.12836627662181854,
0.0325574092566967,
0.07145673781633377,
-0.1245192140340805,
0.12604492902755737,
-0.10988374054431915,
-0.24541664123535156,
-0.002266385592520237,
0.14721837639808655,
0.4225442111492157,
-0.1127469539642334,
-0.09315119683742523,
-0.1891932636499405,
-0.11609016358852386,
-0.09774067997932434,
-0.08019207417964935,
0.019968094304203987,
-0.004927495028823614,
0.03649306297302246,
0.15958352386951447,
0.01100621186196804,
0.40991705656051636,
0.2289888858795166,
0.3758624196052551,
0.190204456448555,
0.24419009685516357,
0.09897361695766449,
-0.2734328508377075,
-0.19979406893253326,
0.28438496589660645,
0.38236239552497864,
-0.00006401646533049643,
0.1524183601140976,
0.0594177320599556,
0.08199214190244675,
-0.03157306835055351,
-0.11476167291402817,
-0.04792345315217972,
-0.06535226106643677,
0.14426763355731964,
-0.09403467923402786,
0.3292432725429535,
-0.2314816117286682,
-0.2863689661026001,
0.1959940642118454,
0.06212395057082176,
-0.17833372950553894,
-0.20709048211574554,
0.13295692205429077,
-0.2569445073604584,
-0.27531713247299194,
-0.10905475169420242,
-0.07582143694162369,
-0.3809904456138611,
-0.054090775549411774,
-0.0438665933907032,
0.09423763304948807,
-0.12249529361724854,
0.26649683713912964,
0.2440907210111618,
0.04974699020385742,
-0.10201270133256912,
-0.1741493046283722,
-0.2536875605583191,
0.06607528775930405,
-0.24273023009300232,
-0.22498257458209991,
-0.006049628369510174,
0.08539679646492004,
0.5231483578681946,
0.044465892016887665,
-0.5343623757362366,
0.14660699665546417,
-0.05816926434636116,
0.031293950974941254,
0.015611271373927593,
-0.1462978720664978,
0.3653270900249481,
0.06787800788879395,
-0.24869653582572937,
0.08430834114551544,
-0.21639709174633026,
0.17631115019321442,
-0.2280779629945755,
0.10312817245721817,
-0.281919002532959,
0.5773183703422546,
0.1775277704000473,
0.6508569717407227,
-0.08621782064437866,
-0.22067424654960632,
0.2745225429534912,
-0.13540790975093842,
0.1569596529006958,
-0.2709430754184723,
-0.26675570011138916,
0.305084764957428,
-0.14583192765712738,
-0.1728733330965042,
0.20632508397102356,
-0.17142029106616974,
-0.2792165279388428,
-0.027797015383839607,
0.1729615479707718,
-0.20853587985038757,
-0.3922799229621887,
0.2551881670951843,
-0.02078734152019024,
0.20429234206676483,
-0.005890976171940565,
0.13152380287647247,
-0.14782476425170898,
-0.05000591650605202,
-0.004617414437234402,
-0.2329564243555069,
-0.0746496319770813,
-0.2474716752767563,
-0.2771759629249573,
0.028042562305927277,
-0.3883843719959259,
0.15052005648612976,
0.054647721350193024,
0.2861519455909729,
-0.1500145047903061,
-0.11183765530586243,
0.06445299834012985,
-0.09365816414356232,
0.7823352217674255,
0.2042614221572876,
-0.2611232399940491,
0.06293844431638718,
-0.15955547988414764,
-0.021134858950972557,
-0.005556117277592421,
-0.13163451850414276,
0.12766963243484497,
0.24254736304283142,
0.3826504945755005,
-0.102298304438591,
-0.1320970356464386,
0.0025562129449099302,
-0.04796682670712471,
-0.10536235570907593,
0.034954655915498734,
-0.014324896968901157,
-0.018823640421032906,
-0.30017778277397156,
0.39133381843566895,
0.1144842579960823,
0.2752561867237091,
-0.038147926330566406,
-0.40903493762016296,
-0.1154564693570137,
-0.2068902999162674,
0.09796665608882904,
0.03987523913383484,
0.3180324137210846,
0.09023674577474594,
0.1538378745317459,
-0.15186715126037598,
0.2439211755990982,
0.158074289560318,
-0.11342228204011917,
0.009657103568315506,
0.062202662229537964,
0.0988898053765297,
-0.205733522772789,
0.337614506483078,
0.2864973843097687,
0.06464491784572601,
0.15916620194911957,
-0.07008279114961624,
0.3968053460121155,
-0.099270299077034,
0.3956972658634186,
0.35677921772003174,
0.2163240760564804,
-0.4749738574028015,
-0.14813879132270813,
0.00889001414179802,
0.0897902101278305,
0.11186389625072479,
0.41820597648620605,
-0.08597850054502487,
-0.3235791027545929,
0.21605682373046875,
0.20967939496040344,
0.8515174388885498,
-0.12825892865657806,
0.19340667128562927,
0.0857778862118721,
-0.04943065717816353,
0.11980440467596054,
-0.19085679948329926,
0.15941263735294342,
-0.27092933654785156,
-0.21589228510856628,
-0.005350991617888212,
0.06708507239818573,
0.07348322123289108,
0.1007448062300682,
-0.29854437708854675,
-0.1148410364985466,
-0.24204260110855103,
0.20593726634979248,
-0.20079313218593597,
-0.06068016216158867,
0.23655617237091064,
-0.4092288613319397,
-0.2159012258052826,
0.3366203010082245,
0.025064174085855484,
-0.23483024537563324,
-0.16646702587604523,
0.040651146322488785,
0.15408886969089508,
-0.08587921410799026,
-0.11351688951253891,
-0.06514052301645279,
-0.5472652316093445,
0.03057505190372467,
-0.11103657633066177,
-0.2965444028377533,
-0.04548490419983864,
0.002461025957018137,
0.32100650668144226,
0.3504120707511902,
-0.03746321424841881,
0.3197169005870819,
0.19687847793102264,
0.008899778127670288,
0.04807225242257118,
0.04199948161840439,
0.24445267021656036,
-0.06128938868641853,
-0.13830402493476868,
0.32671797275543213,
0.04126237332820892,
-0.221910297870636,
-0.003960243426263332,
0.002216596622020006,
0.11480790376663208,
-0.36081698536872864,
-0.30729758739471436,
0.13091935217380524,
-0.09438952058553696,
-0.23174230754375458,
0.3246450126171112,
-0.11805496364831924,
-0.20704792439937592,
0.0923193022608757,
0.16864022612571716,
-0.14161375164985657,
-0.06774596124887466,
0.15605759620666504,
0.03908567130565643,
-0.021738192066550255,
0.49165967106819153,
0.2805054783821106,
-0.13196489214897156,
-0.3513335883617401,
-0.1413222849369049,
0.3831879496574402,
-0.10919079929590225,
0.09508946537971497,
0.025276675820350647,
-0.10520505905151367,
0.10530433058738708,
0.34920626878738403,
0.04304616153240204,
0.07273320108652115,
-0.005279910285025835,
-0.06282418966293335,
-0.688754141330719,
-0.17553453147411346,
-0.07440298795700073,
0.22486542165279388,
0.04871024936437607,
0.3843526840209961,
-0.05642855167388916,
0.07570014148950577,
-0.4959675669670105,
0.21936002373695374,
-0.5408856272697449,
0.31707775592803955,
-0.19813187420368195,
-0.15733660757541656,
0.07914391160011292,
0.007135571911931038,
0.25509536266326904,
0.4369695484638214,
-0.10662159323692322,
-0.47343069314956665,
-0.04448982700705528,
-0.027803344652056694,
0.12588787078857422,
-0.1045931875705719,
0.034358128905296326,
-0.012430686503648758,
-0.18670998513698578,
-0.2628527283668518,
0.10927039384841919,
0.08538144826889038,
-0.0364036038517952,
-0.08333073556423187,
0.09572480618953705,
0.13584034144878387,
-0.003188104834407568,
-0.14402282238006592,
0.09278345853090286,
0.20481108129024506,
0.21619440615177155,
-0.10221657156944275,
0.06659021228551865,
0.0020531166810542345,
-0.17088495194911957,
0.16737382113933563,
0.11866427212953568,
0.1209041178226471,
0.036681950092315674,
-0.22115828096866608,
-0.2700938880443573,
0.21859778463840485,
0.14630626142024994,
0.06354395300149918,
-0.19777432084083557,
-0.10024168342351913,
0.40729549527168274,
0.4704897999763489,
-0.23902927339076996,
0.10334382951259613,
0.03208480030298233,
-0.19438430666923523,
0.19423304498195648,
0.13959932327270508,
-0.09200653433799744,
-0.15263722836971283,
0.00755372503772378,
0.2622356116771698,
0.018619785085320473,
-0.35515260696411133,
0.11781445145606995,
0.03263925388455391,
-0.0349845215678215,
-0.03916056454181671,
0.05022672936320305,
0.11958475410938263,
0.21193665266036987,
0.5023725032806396,
-0.006072130985558033,
0.3215271532535553,
0.06281072646379471,
0.02570313774049282,
-0.14208851754665375,
-0.23579344153404236,
-0.15666528046131134,
0.2672973573207855,
-0.10191472619771957,
0.03807734325528145,
-0.19265909492969513,
0.30806711316108704,
-0.037275880575180054,
-0.4703213572502136,
-0.2891818881034851,
0.153207466006279,
-0.5186831951141357,
0.010395576246082783,
-0.10424035042524338,
-0.020907072350382805,
-0.053805939853191376,
0.11132883280515671,
0.15768423676490784,
0.004483058582991362,
0.14315328001976013,
0.0038085405249148607,
-0.19305221736431122,
-0.018015069887042046,
-0.18178577721118927,
0.15591494739055634,
0.07655226439237595,
-0.18633176386356354,
0.33656543493270874,
-0.07105505466461182,
-0.14828099310398102,
0.0015254976460710168,
0.11111091822385788,
0.3467009663581848,
0.4203845262527466,
-0.05794020742177963,
0.030173588544130325,
-0.03277928754687309,
-0.021985026076436043,
-0.2057776302099228,
0.14916513860225677,
0.3884340226650238,
0.23339757323265076,
0.18356545269489288,
0.3134998083114624,
-0.3399814963340759,
0.14411765336990356,
0.23200355470180511,
0.060381051152944565,
-0.12044724076986313,
-0.09749475121498108,
0.09984087198972702,
-0.12272312492132187,
-0.35457170009613037,
-0.09716559201478958,
-0.39973071217536926,
0.17405039072036743,
0.10127513855695724,
-0.20287632942199707,
0.15885241329669952,
-0.10197404026985168,
0.18013080954551697,
-0.10712382197380066,
0.5011606812477112,
0.13886886835098267,
-0.02569797821342945,
-0.4887698292732239,
-0.44227221608161926,
-0.400625079870224,
0.11412711441516876,
-0.20800521969795227,
0.2612011730670929,
-0.21096529066562653,
0.14963020384311676,
-0.06207271292805672,
-0.15851841866970062,
-0.03866804391145706,
-0.05830436944961548,
-0.1338522881269455,
-0.17424124479293823,
-0.5670874118804932,
0.0746912956237793,
-0.29656657576560974,
-0.03121327795088291,
0.1268419623374939,
-0.11035667359828949,
0.3521363139152527,
-0.17091381549835205,
0.27495574951171875,
0.1290581077337265,
0.15774424374103546,
-0.09200733155012131,
0.06618063151836395,
0.31519007682800293,
-0.12203747779130936,
0.043880607932806015,
0.07894723117351532,
0.24352163076400757,
-0.08855336159467697,
-0.06383690237998962,
-0.10458135604858398,
-0.0615079402923584,
0.3914668560028076,
0.2720620930194855,
-0.16570031642913818,
-0.012330460362136364,
-0.22345280647277832,
0.10612891614437103,
0.2691362798213959,
-0.06501643359661102,
0.07761082053184509,
0.14151087403297424,
0.176137313246727,
-0.045010168105363846,
0.21419228613376617,
0.3716602921485901,
0.016597039997577667,
0.11162721365690231,
-0.37868350744247437,
-0.28093719482421875,
0.4669598340988159,
-0.33175429701805115,
-0.3854006826877594,
-0.07182551920413971,
0.028634153306484222,
0.16848169267177582,
-0.18716225028038025,
-0.5828999876976013,
-0.1516561657190323,
0.12214574217796326,
-0.08024140447378159,
-0.3954402804374695,
0.24264077842235565,
-0.1927640736103058,
0.09496580064296722,
-0.03662579506635666,
0.1453104317188263,
0.07667698711156845,
-0.10851273685693741,
0.05231267213821411,
-0.21845193207263947
] |
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.010368249379098415,
0.11118987202644348,
-0.10002540796995163,
0.3606889545917511,
0.42733851075172424,
0.05191502720117569,
0.2879602909088135,
0.5654807686805725,
0.0125486571341753,
0.32172849774360657,
-0.012282345443964005,
0.5649031400680542,
-0.022834371775388718,
0.247155100107193,
-0.15241147577762604,
-0.3327511250972748,
-0.03934432193636894,
0.32406291365623474,
0.13065165281295776,
0.10894683748483658,
-0.08233147114515305,
0.2334585338830948,
-0.1433684229850769,
0.23496277630329132,
0.08872470259666443,
0.10996094346046448,
0.04441274702548981,
0.11864306777715683,
-0.3717556893825531,
-0.6237431168556213,
0.23958081007003784,
-0.014798079617321491,
0.38413915038108826,
0.412271648645401,
-0.00010792641114676371,
0.20342929661273956,
0.4274071455001831,
-0.14979617297649384,
-0.3283521831035614,
-0.6941394209861755,
-0.52833092212677,
-0.07338632643222809,
0.33026793599128723,
-0.07137644290924072,
-0.01572241447865963,
0.05183115974068642,
-0.2022552639245987,
-0.46834465861320496,
0.7235795259475708,
0.3449128270149231,
0.23320803046226501,
0.09840051084756851,
0.22722795605659485,
-0.056768905371427536,
0.19484943151474,
0.15322311222553253,
0.06221354752779007,
0.24728888273239136,
-0.14648215472698212,
0.2154776155948639,
0.29185596108436584,
0.2464020848274231,
-0.11347116529941559,
0.3241586983203888,
0.15735293924808502,
0.12254203855991364,
0.36487895250320435,
-0.4494425058364868,
0.30541086196899414,
0.14383086562156677,
0.6902769207954407,
-0.15503492951393127,
-0.2551617920398712,
0.0767497569322586,
0.12948043644428253,
-0.4748287796974182,
0.3319576382637024,
0.06432132422924042,
-0.2432657927274704,
0.17527778446674347,
-0.08875808119773865,
0.013489441014826298,
-0.2744026184082031,
0.010089109651744366,
-0.1931980699300766,
0.008954653516411781,
-0.13906651735305786,
0.15272992849349976,
0.3419300615787506,
-0.2617518901824951,
0.08620869368314743,
0.0477181002497673,
-0.2760588526725769,
0.157370463013649,
-0.19321699440479279,
-0.10913068801164627,
-0.15696217119693756,
-0.48581793904304504,
-0.053356513381004333,
0.09627500921487808,
0.25487324595451355,
0.0609164759516716,
0.38143065571784973,
0.03628000244498253,
0.6026721000671387,
0.025567173957824707,
-0.1211964562535286,
0.03457343950867653,
0.12223012745380402,
0.0011014713672921062,
0.06887456774711609,
-0.08030158281326294,
-0.273103803396225,
0.002001991728320718,
0.17485898733139038,
0.14479809999465942,
0.31121039390563965,
-0.2800493836402893,
-0.3382551372051239,
0.1514062136411667,
-0.5848353505134583,
-0.2422351837158203,
-0.22540542483329773,
0.3102691173553467,
0.020035812631249428,
0.24337254464626312,
0.06058100238442421,
0.2738601565361023,
0.019908882677555084,
-0.3459853529930115,
-0.043290454894304276,
-0.1516467183828354,
-0.03466297313570976,
-0.14557352662086487,
0.272892564535141,
-0.08494330197572708,
0.13610957562923431,
0.08728096634149551,
0.18120194971561432,
-0.33935225009918213,
0.30959492921829224,
-0.22543402016162872,
0.09953407943248749,
0.32207125425338745,
0.2754567563533783,
0.052513811737298965,
0.18164479732513428,
-0.1673363447189331,
-0.05303220450878143,
0.31415867805480957,
-0.2938110828399658,
-0.2666989266872406,
-0.27224200963974,
0.20712049305438995,
0.0013439145404845476,
-0.17116369307041168,
-0.25401049852371216,
0.0457327701151371,
-0.017800886183977127,
-0.060385849326848984,
-0.37780842185020447,
-0.16670788824558258,
0.08802184462547302,
-0.17805665731430054,
0.3932463824748993,
0.21613985300064087,
-0.32794636487960815,
0.03940668702125549,
-0.09591461718082428,
-0.1318078190088272,
0.2154320776462555,
0.1643892228603363,
-0.3142088055610657,
0.5403991341590881,
-0.03889120742678642,
-0.16912299394607544,
0.0986151173710823,
-0.3066720962524414,
-0.29378077387809753,
0.36943134665489197,
0.004684183280915022,
0.15911255776882172,
0.00178936414886266,
-0.2512536942958832,
0.3732081353664398,
0.15886734426021576,
0.19458720088005066,
0.061809029430150986,
-0.14274092018604279,
0.09140007197856903,
-0.09916366636753082,
-0.25751811265945435,
0.09063360095024109,
0.30113711953163147,
0.07758134603500366,
0.07969218492507935,
-0.09857657551765442,
0.2593400180339813,
0.15282447636127472,
-0.11529912054538727,
0.12578532099723816,
0.16348300874233246,
-0.10971876233816147,
0.1635199636220932,
0.051032766699790955,
0.14014393091201782,
-0.20657087862491608,
0.06991881877183914,
0.04158511012792587,
0.22810426354408264,
-0.39606302976608276,
0.038578979671001434,
-0.31787312030792236,
0.010431907139718533,
-0.36519765853881836,
0.1068749949336052,
0.24871230125427246,
0.1227119117975235,
0.05583083629608154,
0.12750530242919922,
-0.30137428641319275,
-0.027471385896205902,
0.3916781544685364,
0.16823925077915192,
-0.05191381648182869,
0.2938370704650879,
-0.19126029312610626,
-0.2941618263721466,
0.11205663532018661,
-0.044209543615579605,
0.03781988099217415,
-0.1330130398273468,
-0.3254251480102539,
0.23774047195911407,
0.1895778775215149,
0.20340414345264435,
-0.16676083207130432,
-0.14567919075489044,
0.13480576872825623,
-0.330046147108078,
0.08380356431007385,
0.5397520661354065,
0.16800470650196075,
-0.022133681923151016,
-0.10266900807619095,
0.19811075925827026,
-0.0855673998594284,
0.11377131193876266,
-0.07827983796596527,
-0.030403532087802887,
0.3267224133014679,
0.08160793781280518,
-0.17597129940986633,
-0.20723393559455872,
0.262455016374588,
-0.008788044564425945,
0.09513802826404572,
-0.1814562827348709,
-0.2600826323032379,
-0.21774612367153168,
0.2487681657075882,
-0.0782855749130249,
-0.05086321011185646,
0.13200074434280396,
-0.09498990327119827,
0.06305114179849625,
-0.20784419775009155,
0.02448255941271782,
0.20640650391578674,
0.030219946056604385,
-0.22657956182956696,
0.12646229565143585,
0.18520237505435944,
-0.012762966565787792,
0.200579434633255,
0.18973958492279053,
0.3189220726490021,
0.2737760841846466,
-0.05815494433045387,
0.00756679056212306,
-0.22345148026943207,
-0.13907742500305176,
-0.11034945398569107,
0.4504099190235138,
-0.259025514125824,
0.1004740372300148,
-0.28189218044281006,
-0.07507532089948654,
-0.13464608788490295,
-0.47143641114234924,
-0.09311594069004059,
-0.09859686344861984,
-0.23318691551685333,
0.14050666987895966,
0.08313585072755814,
0.08122454583644867,
-0.10275282710790634,
0.07024776190519333,
0.18473996222019196,
0.03351403772830963,
-0.12122093886137009,
-0.3000423014163971,
-0.22225020825862885,
0.05014163628220558,
0.30089521408081055,
-0.31793418526649475,
-0.028915613889694214,
-0.40225133299827576,
0.07929368317127228,
0.23445920646190643,
-0.2420564889907837,
0.28294098377227783,
-0.2433227002620697,
0.1071467474102974,
0.09766366332769394,
0.3463146984577179,
-0.08077039569616318,
-0.17871572077274323,
0.2980037033557892,
-0.03362796828150749,
-0.07012307643890381,
0.23519395291805267,
-0.02476504258811474,
0.004414128139615059,
-0.03455228731036186,
-0.6003326177597046,
-0.22594821453094482,
-0.1773618757724762,
0.08440399169921875,
0.09456878900527954,
0.07204476743936539,
0.20716194808483124,
0.2518549859523773,
0.13299059867858887,
0.14083077013492584,
0.2209940403699875,
-0.2139880508184433,
-0.46913787722587585,
0.18907630443572998,
-0.1856200397014618,
-0.28859221935272217,
0.33809930086135864,
0.13194014132022858,
0.39266178011894226,
-0.3039439618587494,
-0.3875095248222351,
0.3119325041770935,
0.11380571871995926,
-0.10467194020748138,
-0.40574610233306885,
-0.3225398659706116,
0.12435837835073471,
0.1816713660955429,
0.012163789942860603,
-0.09812375903129578,
-0.2578526437282562,
0.23554913699626923,
-0.05155450478196144,
0.1400613933801651,
-0.06082608923316002,
0.8555188775062561,
-0.07739795744419098,
0.3287201523780823,
0.21191343665122986,
0.15714459121227264,
0.2867906987667084,
-0.02600288577377796,
0.04745723679661751,
-0.09311698377132416,
-0.12631464004516602,
-0.03466534987092018,
-0.11320310086011887,
-0.1697457879781723,
0.10504563897848129,
-0.10657666623592377,
-0.24953676760196686,
-0.36816850304603577,
0.15788130462169647,
-0.18751969933509827,
-0.1722095012664795,
0.11252404004335403,
-0.06836327910423279,
0.2198687344789505,
0.04552450776100159,
0.2872369885444641,
-0.1594824492931366,
-0.02219948172569275,
-0.06745541840791702,
0.09866417944431305,
0.2741686999797821,
0.08889930695295334,
-0.5317466855049133,
-0.2367526888847351,
-0.43966352939605713,
0.11233595013618469,
0.074968621134758,
0.4724261164665222,
-0.1391899287700653,
-0.017385639250278473,
0.23414981365203857,
-0.20882731676101685,
0.4418916702270508,
-0.052661653608083725,
0.011163484305143356,
0.18302850425243378,
0.0017406342085450888,
-0.2354269027709961,
-0.09466322511434555,
-0.330548495054245,
0.3097435534000397,
0.1387438178062439,
0.23392203450202942,
-0.2818985879421234,
-0.16092966496944427,
0.3215731680393219,
0.005414467770606279,
-0.2038939744234085,
-0.16966238617897034,
-0.5031240582466125,
-0.3280942440032959,
-0.5201482772827148,
-0.15986013412475586,
-0.19111894071102142,
0.40151655673980713,
0.1686205267906189,
-0.031187256798148155,
0.13803380727767944,
-0.028575962409377098,
-0.0021829206962138414,
0.422220379114151,
0.270342618227005,
0.08373913913965225,
0.18650442361831665,
0.3958313465118408,
-0.13197678327560425,
0.424367219209671,
0.5508005619049072,
0.11340440064668655,
-0.6399223804473877,
0.05121862515807152,
-0.29629871249198914,
0.09761340916156769,
0.0014399737119674683,
-0.08165893703699112,
-0.04937964677810669,
-0.1000894084572792,
-0.0209868922829628,
-0.4086257219314575,
-0.004295738879591227,
0.5303226709365845,
-0.23223517835140228,
-0.4098721146583557,
-0.43503352999687195,
0.13296036422252655,
-0.17021775245666504,
0.035307034850120544,
0.02693548984825611,
0.033498622477054596,
-0.21447180211544037,
0.3636550307273865,
0.18553602695465088,
0.7658932209014893,
-0.023514270782470703,
0.0016500359633937478,
0.3066605031490326,
-0.4282904267311096,
0.030506184324622154,
0.02773095667362213,
0.22285576164722443,
-0.27192869782447815,
0.07004695385694504,
-0.06944986432790756,
-0.019553977996110916,
0.22792065143585205,
0.03553389012813568,
-0.4261462688446045,
-0.04367257282137871,
-0.04458780214190483,
0.1533711701631546,
0.071881502866745,
0.24426428973674774,
0.05877888575196266,
-0.1275695413351059,
-0.29954811930656433,
0.19983477890491486,
-0.408209890127182,
0.19176043570041656,
-0.1199817880988121,
-0.269582062959671,
-0.008629835210740566,
-0.22861452400684357,
-0.1836060732603073,
0.07418224215507507,
-0.10760289430618286,
0.14948180317878723,
-0.07486532628536224,
-0.25048720836639404,
-0.050827182829380035,
-0.11257194727659225,
0.07997967302799225,
-0.06272579729557037,
-0.15351860225200653,
0.19073766469955444,
-0.12534570693969727,
-0.0745970755815506,
-0.007703748997300863,
0.22739864885807037,
0.010806123726069927,
-0.061630308628082275,
-0.3674413561820984,
0.3495842218399048,
0.006273030303418636,
-0.3701890707015991,
-0.023579245433211327,
-0.09042862802743912,
0.09618133306503296,
-0.09333889931440353,
0.0004799964081030339,
-0.18614883720874786,
0.09080442786216736,
-0.061448100954294205,
0.18801921606063843,
0.039614237844944,
-0.10779987275600433,
0.05977754294872284,
-0.08552868664264679,
-0.3417263925075531,
-0.022280625998973846,
0.49545279145240784,
0.07445178925991058,
0.04242830350995064,
0.672642707824707,
0.10971353203058243,
0.023311689496040344,
-0.20289158821105957,
0.41211479902267456,
-0.19199644029140472,
-0.16036628186702728,
0.13698343932628632,
-0.16185417771339417,
0.2158030867576599,
-0.02461194060742855,
0.3283050060272217,
0.14977571368217468,
-0.15602105855941772,
0.1812470704317093,
-0.39833158254623413,
-0.35937774181365967,
0.08018606901168823,
0.099665567278862,
0.08902996778488159,
0.24588638544082642,
0.1987781673669815,
0.019301297143101692,
-0.14609676599502563,
-0.3054217994213104,
0.10121003538370132,
-0.021105727180838585,
0.038934219628572464,
0.07355141639709473,
-0.15962161123752594,
0.1458526998758316,
-0.08041439205408096,
0.1671367883682251,
0.1694609671831131,
-0.15281924605369568,
-0.19935208559036255,
-0.059571582823991776,
0.08713868260383606,
-0.0703362300992012,
-0.30417242646217346,
-0.16470393538475037,
-0.1262097954750061,
-0.1425151228904724,
-0.05653970316052437,
0.06190899387001991,
0.032271139323711395,
0.04874902591109276,
0.025115061551332474,
-0.08564399927854538,
0.08326500654220581,
-0.058548133820295334,
-0.06872183829545975,
0.10665124654769897,
0.4175853729248047,
0.2003384828567505,
0.295633465051651,
0.015543563291430473,
-0.009833868592977524,
-0.1680746227502823,
0.10843619704246521,
0.13267670571804047,
-0.060121629387140274,
0.489921510219574,
-0.5844719409942627,
0.3093322813510895,
0.15259307622909546,
0.06416881829500198,
0.3737836480140686,
-0.3491538166999817,
0.14384743571281433,
-0.025781413540244102,
0.2500733733177185,
-0.007249040063470602,
-0.019777856767177582,
-0.01877039298415184,
-0.05895267799496651,
-0.2512374520301819,
0.12927338480949402,
0.03681492432951927,
0.06431141495704651,
0.06582348793745041,
0.1855471134185791,
0.5413072109222412,
0.020554227754473686,
0.1776997148990631,
0.44498878717422485,
-0.26514101028442383,
0.010317922569811344,
0.10708384960889816,
0.028887618333101273,
0.15085142850875854,
0.5691818594932556,
-0.25216516852378845,
0.3656858801841736,
0.06746597588062286,
0.18918409943580627,
-0.06894782185554504,
-0.2857245206832886,
-0.19115684926509857,
0.128373920917511,
-0.10396367311477661,
0.20565272867679596,
0.16058067977428436,
-0.041147179901599884,
-0.27542880177497864,
-0.1645670235157013,
-0.44543224573135376,
-0.04337158426642418,
-0.15814797580242157,
-0.16519825160503387,
-0.3046618700027466,
-0.23795455694198608,
-0.2086980789899826,
0.16941511631011963,
-0.09644052386283875,
0.06897991895675659,
-0.1310560256242752,
0.31819307804107666,
-0.13374704122543335,
-0.48160573840141296,
-0.48510226607322693,
0.15319688618183136,
-0.08026166260242462,
-0.2274027019739151,
0.4024295210838318,
0.3622751832008362,
-0.14494861662387848,
0.1752585917711258,
0.2373046875,
0.45815011858940125,
0.43654778599739075,
-0.3334041237831116,
-0.005134712904691696,
-0.14755555987358093,
-0.13882678747177124,
0.06812512129545212,
0.14698931574821472,
0.1474834829568863,
0.46462491154670715,
0.19281156361103058,
0.20866291224956512,
-0.13993094861507416,
-0.09402849525213242,
0.27341052889823914,
0.21146725118160248,
-0.24109721183776855,
0.10229896754026413,
-0.08334077894687653,
0.2694025933742523,
0.011461000889539719,
-0.11781000345945358,
-0.537373423576355,
0.0016914148582145572,
0.10486267507076263,
0.3085601329803467,
-0.03835926577448845,
-0.08355146646499634,
0.09415901452302933,
-0.024248365312814713,
0.36647117137908936,
-0.022420763969421387,
0.06438855826854706,
-0.38364872336387634,
-0.15018247067928314,
-0.4316811263561249,
0.10472575575113297,
-0.13953828811645508,
-0.0761602371931076,
0.07950282841920853,
0.05111551284790039,
0.10588251799345016,
0.3559509813785553,
0.13892893493175507,
-0.06802668422460556,
0.10707653313875198,
-0.03192444145679474,
-0.18354283273220062,
-0.10682938247919083,
0.280239462852478,
0.05602779611945152,
-0.1562606692314148,
-0.16004836559295654,
0.3295813500881195,
0.07344456762075424,
0.0841555967926979,
-0.3527592718601227,
-0.22759848833084106,
-0.11162237823009491,
-0.006170904263854027,
0.5378032922744751,
0.13195064663887024,
0.4072885811328888,
-0.004439344629645348,
-0.2568787932395935,
-0.1435830146074295,
-0.14930935204029083,
-0.08912315219640732,
0.2212720364332199,
0.19800738990306854,
0.4451341927051544,
-0.20958168804645538,
0.19150960445404053,
-0.5001686215400696,
0.0465378537774086,
-0.1751573234796524,
-0.15086404979228973,
-0.5225539207458496,
-0.023556962609291077,
0.031359679996967316,
0.13598482310771942,
-0.13986466825008392,
0.21212071180343628,
0.16116753220558167,
0.28311970829963684,
-0.3213106095790863,
0.05493883416056633,
0.4070502817630768,
-0.410594642162323,
-0.41099685430526733,
-0.0811077430844307,
-0.14459797739982605,
-0.31388145685195923,
0.03728315979242325,
-0.6443091630935669,
0.26872605085372925,
0.217995285987854,
-0.14730265736579895,
-0.3369534909725189,
0.20579005777835846,
0.2618834674358368,
0.06539306789636612,
-0.0011062446283176541,
0.3464151918888092,
0.16908574104309082,
-0.15028755366802216,
0.052886590361595154,
-0.20608867704868317
] |
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.012936733663082123,
0.1030111089348793,
-0.12283304333686829,
0.3122574985027313,
0.3983413875102997,
0.052111078053712845,
0.2968256175518036,
0.5685592889785767,
0.020557371899485588,
0.3210776448249817,
-0.04697980359196663,
0.5231744050979614,
0.06325183808803558,
0.19008658826351166,
-0.16551923751831055,
-0.25740376114845276,
-0.0236328337341547,
0.3507925570011139,
0.06922617554664612,
0.07452026754617691,
-0.09009448438882828,
0.19571657478809357,
-0.12446219474077225,
0.21412406861782074,
0.0591248981654644,
0.07409904152154922,
0.0389389805495739,
0.11520373076200485,
-0.3439750671386719,
-0.6365220546722412,
0.191973477602005,
-0.007932265289127827,
0.3155698776245117,
0.40430691838264465,
-0.00010200640826951712,
0.17776457965373993,
0.44543594121932983,
-0.06898751854896545,
-0.3125954270362854,
-0.5820084810256958,
-0.5053094029426575,
-0.11710237711668015,
0.316538542509079,
-0.12829254567623138,
-0.12098073959350586,
0.11340106278657913,
-0.1850690245628357,
-0.4382014572620392,
0.694831371307373,
0.3881033658981323,
0.30288687348365784,
0.13516458868980408,
0.23019392788410187,
-0.1009383425116539,
0.2550446689128876,
0.12515385448932648,
0.013898734003305435,
0.2112889587879181,
-0.12726588547229767,
0.20333434641361237,
0.2619907557964325,
0.287645548582077,
-0.08559837192296982,
0.3251771628856659,
0.1399056613445282,
0.1585078239440918,
0.3314506411552429,
-0.3463329076766968,
0.2681957483291626,
0.10367368161678314,
0.643028736114502,
-0.13071651756763458,
-0.2762627601623535,
0.08682544529438019,
0.07967320829629898,
-0.5477732419967651,
0.318970650434494,
0.09293714165687561,
-0.20674093067646027,
0.178243488073349,
-0.08957092463970184,
0.037567250430583954,
-0.18327292799949646,
0.0019572877790778875,
-0.20853738486766815,
0.08164508640766144,
-0.1336178481578827,
0.07820677012205124,
0.3002832233905792,
-0.24246127903461456,
0.07468397170305252,
0.08123068511486053,
-0.2699536383152008,
0.10978499054908752,
-0.1803835779428482,
-0.09480380266904831,
-0.04302309826016426,
-0.444694459438324,
-0.11994696408510208,
0.11453308910131454,
0.2236422598361969,
0.09879378229379654,
0.37713298201560974,
-0.0008446329738944769,
0.46394088864326477,
0.05013805627822876,
-0.15595009922981262,
0.07711512595415115,
0.18458294868469238,
0.04440392181277275,
-0.0029855179600417614,
-0.10394201427698135,
-0.21111378073692322,
0.019259976223111153,
0.16020774841308594,
0.1095815971493721,
0.3138604164123535,
-0.22049865126609802,
-0.28392523527145386,
0.07835336774587631,
-0.4800007939338684,
-0.1939752697944641,
-0.19754548370838165,
0.3207293450832367,
-0.06329545378684998,
0.23047471046447754,
0.056735437363386154,
0.22450436651706696,
-0.0679008960723877,
-0.22569765150547028,
-0.12100923806428909,
-0.13123303651809692,
-0.08527376502752304,
-0.12016648799180984,
0.2747126817703247,
-0.08538687229156494,
0.14714296162128448,
0.07095026224851608,
0.15196001529693604,
-0.2827933728694916,
0.34106719493865967,
-0.23630227148532867,
0.11355837434530258,
0.3298209607601166,
0.27700912952423096,
0.07017286866903305,
0.18193604052066803,
-0.13253098726272583,
-0.09611453115940094,
0.24912354350090027,
-0.25247225165367126,
-0.28024420142173767,
-0.18768428266048431,
0.28552761673927307,
0.011328455060720444,
-0.1512565314769745,
-0.2134181559085846,
-0.053378548473119736,
0.010003960691392422,
-0.08077238500118256,
-0.35933995246887207,
-0.17142519354820251,
0.060631316155195236,
-0.20192329585552216,
0.3621025085449219,
0.27052441239356995,
-0.27233076095581055,
0.07330992072820663,
-0.1354014277458191,
-0.09226109087467194,
0.18774692714214325,
0.20177046954631805,
-0.30143994092941284,
0.43629613518714905,
-0.04644166678190231,
-0.15662145614624023,
0.1402231901884079,
-0.32023584842681885,
-0.324087917804718,
0.3028959631919861,
-0.0329788476228714,
0.08782751113176346,
0.025868576020002365,
-0.19240543246269226,
0.3647066652774811,
0.15370629727840424,
0.19921551644802094,
0.05444251745939255,
-0.035680726170539856,
0.1235385611653328,
-0.12453305721282959,
-0.25867700576782227,
0.018173865973949432,
0.24633486568927765,
0.0644572302699089,
0.04423874244093895,
-0.1041802316904068,
0.20370031893253326,
0.14036419987678528,
-0.12451710551977158,
0.11371562629938126,
0.20856349170207977,
-0.1304851770401001,
0.17133024334907532,
0.02990882657468319,
0.13642767071723938,
-0.13996557891368866,
0.12146810442209244,
0.025928599759936333,
0.19003203511238098,
-0.272662878036499,
0.006486065685749054,
-0.30145514011383057,
0.031610824167728424,
-0.3687100112438202,
0.10136409848928452,
0.3043016195297241,
0.19644741714000702,
0.12332950532436371,
0.13166376948356628,
-0.27492132782936096,
-0.011012292467057705,
0.44179612398147583,
0.10704849660396576,
-0.11804009228944778,
0.2619091868400574,
-0.25157085061073303,
-0.29155001044273376,
0.11085955053567886,
-0.03671075403690338,
0.058088917285203934,
-0.08016088604927063,
-0.30369460582733154,
0.18165726959705353,
0.20360761880874634,
0.2495732605457306,
-0.17953214049339294,
-0.13638624548912048,
0.07912377268075943,
-0.2600409686565399,
0.19925165176391602,
0.5228089094161987,
0.12022261321544647,
-0.024972673505544662,
-0.06767034530639648,
0.23877155780792236,
-0.022930946201086044,
0.11259575188159943,
-0.02465236373245716,
-0.05478212609887123,
0.39643993973731995,
0.02837291546165943,
-0.15477944910526276,
-0.260942280292511,
0.2471824437379837,
0.05345521867275238,
0.1135932132601738,
-0.1151222437620163,
-0.3128586709499359,
-0.15588974952697754,
0.38729915022850037,
-0.036732882261276245,
0.01590285636484623,
0.1358819305896759,
-0.14282608032226562,
0.01669456623494625,
-0.21657957136631012,
-0.029924854636192322,
0.19512808322906494,
0.08886515349149704,
-0.160671666264534,
0.08165489137172699,
0.19957488775253296,
-0.08759491890668869,
0.21961821615695953,
0.20297393202781677,
0.2804163098335266,
0.17260214686393738,
0.03553455322980881,
-0.030192770063877106,
-0.2262348085641861,
-0.023235268890857697,
-0.11765178292989731,
0.3725835978984833,
-0.2375434786081314,
0.08495285362005234,
-0.3510688543319702,
-0.053191907703876495,
-0.14616048336029053,
-0.5117494463920593,
-0.05386851727962494,
-0.10601457953453064,
-0.14355795085430145,
0.175674706697464,
0.06390433013439178,
0.13289058208465576,
-0.0974530503153801,
0.026233958080410957,
0.17605650424957275,
-0.012864385731518269,
-0.12408922612667084,
-0.3575330674648285,
-0.29784131050109863,
0.1148165687918663,
0.23908817768096924,
-0.3049156665802002,
0.06965865194797516,
-0.4312524199485779,
0.047125834971666336,
0.18551310896873474,
-0.2506830394268036,
0.25707298517227173,
-0.16567514836788177,
0.06761504709720612,
0.08437738567590714,
0.2562081515789032,
-0.038788579404354095,
-0.1973782628774643,
0.35165107250213623,
-0.12730546295642853,
-0.13336144387722015,
0.22026896476745605,
-0.023485641926527023,
0.008686356246471405,
-0.03707103803753853,
-0.6399905681610107,
-0.22370514273643494,
-0.2604731023311615,
0.10106509178876877,
0.15091277658939362,
0.03561237454414368,
0.19856685400009155,
0.18642577528953552,
0.1326580047607422,
0.09382974356412888,
0.2327871173620224,
-0.2737099230289459,
-0.4300876259803772,
0.2375008463859558,
-0.2297227680683136,
-0.3239218294620514,
0.3098140358924866,
0.04683839902281761,
0.37369197607040405,
-0.31184542179107666,
-0.4044911861419678,
0.20708486437797546,
0.020605193451046944,
-0.050971753895282745,
-0.3278869688510895,
-0.29403066635131836,
0.20289991796016693,
0.13987059891223907,
-0.06997627019882202,
-0.06716472655534744,
-0.27015137672424316,
0.16539627313613892,
-0.0801306962966919,
0.13386709988117218,
-0.101944200694561,
0.8502923846244812,
-0.12226785719394684,
0.408910870552063,
0.18215049803256989,
0.12154999375343323,
0.2841958701610565,
-0.0286713819950819,
0.08926229923963547,
-0.17760716378688812,
-0.16072098910808563,
-0.04052167758345604,
-0.08866763114929199,
-0.14168256521224976,
0.11798334866762161,
-0.07669279724359512,
-0.32446953654289246,
-0.3877323269844055,
0.1473681926727295,
-0.19077849388122559,
-0.24916301667690277,
0.11737232655286789,
-0.06959647685289383,
0.24374224245548248,
0.10653647035360336,
0.32131427526474,
-0.18343161046504974,
-0.07832009345293045,
-0.040955476462841034,
0.02466421388089657,
0.17842553555965424,
0.05437785014510155,
-0.5196177363395691,
-0.21844540536403656,
-0.3971501886844635,
0.09768734872341156,
0.09445884078741074,
0.37900272011756897,
-0.11878105252981186,
-0.13328184187412262,
0.284842312335968,
-0.19965502619743347,
0.45485493540763855,
0.015690810978412628,
0.02259022742509842,
0.23083949089050293,
-0.04064653813838959,
-0.2477567046880722,
-0.1033172458410263,
-0.3119054436683655,
0.26195719838142395,
0.22484876215457916,
0.29127752780914307,
-0.2751762866973877,
-0.1617019772529602,
0.3189953863620758,
0.03253304213285446,
-0.1961507648229599,
-0.14257241785526276,
-0.558050811290741,
-0.2862580120563507,
-0.5117343068122864,
-0.152289018034935,
-0.1444845050573349,
0.33196279406547546,
0.13338220119476318,
-0.05101428180932999,
0.11589980125427246,
-0.05062488093972206,
-0.07439945638179779,
0.4398431181907654,
0.33766603469848633,
0.057110514491796494,
0.21372634172439575,
0.33074143528938293,
-0.0897977352142334,
0.34726637601852417,
0.5509916543960571,
0.08748649805784225,
-0.5647018551826477,
0.025258004665374756,
-0.2308291345834732,
0.03761061653494835,
0.02953120321035385,
-0.0426541343331337,
-0.052368514239788055,
-0.07599291205406189,
0.019347453489899635,
-0.37028059363365173,
0.04448096826672554,
0.44987553358078003,
-0.23860742151737213,
-0.3628222644329071,
-0.40354683995246887,
0.17598846554756165,
-0.1488458514213562,
0.04618695005774498,
-0.026190632954239845,
-0.023649202659726143,
-0.16569951176643372,
0.3092259466648102,
0.20217381417751312,
0.7795619964599609,
0.0041696177795529366,
0.042350780218839645,
0.33349481225013733,
-0.4208035469055176,
0.05863872915506363,
0.05676686391234398,
0.2716708481311798,
-0.30659613013267517,
0.10430949926376343,
-0.028318755328655243,
-0.04359612986445427,
0.1442025750875473,
0.028661876916885376,
-0.36597663164138794,
-0.02771407552063465,
0.007940385490655899,
0.2052159458398819,
0.06795553863048553,
0.23238182067871094,
0.009896976873278618,
-0.18059289455413818,
-0.30902883410453796,
0.26609113812446594,
-0.32438233494758606,
0.17890268564224243,
-0.07879666239023209,
-0.23882097005844116,
0.009373932145535946,
-0.21568992733955383,
-0.1426716148853302,
0.11126001924276352,
-0.09536471962928772,
0.21752473711967468,
-0.09901715815067291,
-0.3454360067844391,
-0.1483258605003357,
-0.14794939756393433,
0.0657234862446785,
0.01223956048488617,
-0.13503168523311615,
0.19317999482154846,
-0.09360656887292862,
-0.09684310853481293,
-0.019329983741044998,
0.2205016314983368,
0.027689103037118912,
-0.15076114237308502,
-0.3855767548084259,
0.29763439297676086,
-0.0065849595703184605,
-0.352364182472229,
-0.02916380763053894,
-0.018738919869065285,
0.12155737727880478,
-0.050331052392721176,
-0.006662838626652956,
-0.15162162482738495,
0.09314311295747757,
-0.08343245089054108,
0.2480466514825821,
-0.0020354732405394316,
-0.06529027223587036,
0.09281483292579651,
-0.12382830679416656,
-0.30779558420181274,
-0.049269888550043106,
0.49871549010276794,
0.12046625465154648,
0.10308759659528732,
0.6825520992279053,
0.1222132071852684,
-0.03670021891593933,
-0.24134109914302826,
0.31174784898757935,
-0.2639380097389221,
-0.0966205820441246,
0.13119624555110931,
-0.13545499742031097,
0.16410766541957855,
0.01884189434349537,
0.266092985868454,
0.1431492418050766,
-0.183100163936615,
0.12553398311138153,
-0.3727392256259918,
-0.34203416109085083,
0.08530587702989578,
0.08679638803005219,
0.036523450165987015,
0.3154541850090027,
0.22181834280490875,
0.0249401293694973,
-0.1445477157831192,
-0.37690848112106323,
0.0968957468867302,
-0.05460696667432785,
0.04981878772377968,
0.052991241216659546,
-0.23552854359149933,
0.13268761336803436,
-0.04850461706519127,
0.22455516457557678,
0.12565511465072632,
-0.18695062398910522,
-0.2962939739227295,
-0.025777941569685936,
0.05056551843881607,
-0.137913316488266,
-0.2670508623123169,
-0.1554029881954193,
-0.1380641609430313,
-0.1070195809006691,
-0.09438077360391617,
0.03794066607952118,
0.04208232834935188,
0.0546773225069046,
-0.008675821125507355,
-0.11308763176202774,
0.06254348903894424,
0.015454074367880821,
-0.025900032371282578,
0.041507549583911896,
0.36012130975723267,
0.12320984154939651,
0.2862485349178314,
0.0048707230016589165,
-0.009065917693078518,
-0.13935887813568115,
0.052939556539058685,
0.10611582547426224,
-0.06252209842205048,
0.49561750888824463,
-0.5514342188835144,
0.22967471182346344,
0.2057645171880722,
0.05187375470995903,
0.34140366315841675,
-0.28466206789016724,
0.08754576742649078,
-0.03175535053014755,
0.31609809398651123,
-0.06975565105676651,
-0.054337210953235626,
-0.05814526602625847,
-0.11454910784959793,
-0.1619734913110733,
0.07407345622777939,
0.06599634140729904,
0.09694323688745499,
0.09743019938468933,
0.2289813756942749,
0.5092582702636719,
-0.03845587745308876,
0.13268478214740753,
0.35099345445632935,
-0.22047598659992218,
-0.02566821686923504,
0.1550644338130951,
0.03370266780257225,
0.15244516730308533,
0.5504531264305115,
-0.17385031282901764,
0.3638177514076233,
0.046728234738111496,
0.23019437491893768,
-0.09089718014001846,
-0.2728545069694519,
-0.17927661538124084,
0.05431990325450897,
-0.11454609781503677,
0.17956960201263428,
0.17267060279846191,
-0.013110294938087463,
-0.2915270924568176,
-0.11676152050495148,
-0.5116010308265686,
-0.02748575620353222,
-0.18986904621124268,
-0.1445578932762146,
-0.27326223254203796,
-0.18984445929527283,
-0.1252170205116272,
0.17071902751922607,
-0.05808575078845024,
0.091925710439682,
-0.09692969918251038,
0.31435251235961914,
-0.12619763612747192,
-0.48202380537986755,
-0.391501247882843,
0.08090777695178986,
-0.0292963944375515,
-0.22168441116809845,
0.4314956068992615,
0.3308717608451843,
-0.12287656217813492,
0.132725328207016,
0.2395048439502716,
0.457273930311203,
0.36875301599502563,
-0.2967994511127472,
-0.013178788125514984,
-0.14820262789726257,
-0.20297780632972717,
-0.04273178055882454,
0.14346179366111755,
0.23001419007778168,
0.45316243171691895,
0.13326631486415863,
0.28871041536331177,
-0.20892950892448425,
-0.016673404723405838,
0.1810159981250763,
0.21828697621822357,
-0.22154657542705536,
0.12985168397426605,
-0.04197832569479942,
0.16862767934799194,
-0.007469670847058296,
-0.08851522952318192,
-0.5434626340866089,
0.04014751687645912,
0.1592126190662384,
0.2889086604118347,
-0.062368009239435196,
-0.15885764360427856,
0.1310419738292694,
-0.018999310210347176,
0.37591707706451416,
-0.009748571552336216,
0.03680453076958656,
-0.336598664522171,
-0.12997831404209137,
-0.4362042546272278,
0.1682821363210678,
-0.19098934531211853,
-0.022005967795848846,
0.03802300617098808,
0.11999067664146423,
0.1020127385854721,
0.327862024307251,
0.17888879776000977,
-0.12055976688861847,
0.0284027848392725,
-0.07292472571134567,
-0.22598274052143097,
-0.08257728815078735,
0.25725293159484863,
-0.0021911223884671926,
-0.11611556261777878,
-0.21375395357608795,
0.31178659200668335,
0.001921977149322629,
0.14524053037166595,
-0.3561689853668213,
-0.20298030972480774,
-0.06746992468833923,
0.028001444414258003,
0.5374513268470764,
0.16234742105007172,
0.3618908226490021,
-0.022852443158626556,
-0.2558172941207886,
-0.15893682837486267,
-0.231482595205307,
-0.10783658176660538,
0.19828857481479645,
0.16743724048137665,
0.4172370731830597,
-0.19991663098335266,
0.13034123182296753,
-0.46593549847602844,
0.08042207360267639,
-0.15637417137622833,
-0.1586235761642456,
-0.42021268606185913,
-0.06108563765883446,
0.0501156710088253,
0.10494831204414368,
-0.12069971859455109,
0.2867709994316101,
0.1374482810497284,
0.21914321184158325,
-0.3230116367340088,
-0.0361349992454052,
0.3846169710159302,
-0.3938939869403839,
-0.3895450234413147,
-0.04438452422618866,
-0.09175018221139908,
-0.2922392189502716,
0.04209373891353607,
-0.5770184993743896,
0.32366621494293213,
0.22900961339473724,
-0.10836388915777206,
-0.30247411131858826,
0.24150429666042328,
0.22412444651126862,
0.11636252701282501,
-0.012448986060917377,
0.38338303565979004,
0.15073545277118683,
-0.14803463220596313,
0.021333450451493263,
-0.1592852622270584
] |
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.14286914467811584,
0.009927526116371155,
-0.04910998418927193,
0.16983197629451752,
-0.07714474201202393,
-0.22699491679668427,
0.30961278080940247,
-0.005992375314235687,
-0.11063995957374573,
0.02658836729824543,
-0.09334703534841537,
-0.10927911102771759,
0.06421427428722382,
0.36415451765060425,
0.24424217641353607,
0.005411413032561541,
-0.07019029557704926,
-0.21353408694267273,
0.19596855342388153,
-0.11019579321146011,
-0.19252455234527588,
0.20733089745044708,
0.009311321191489697,
0.03827820345759392,
-0.18121503293514252,
-0.38389167189598083,
-0.14542031288146973,
-0.04012007638812065,
-0.21061336994171143,
-0.1362013816833496,
-0.0949111059308052,
0.2998584508895874,
-0.04505465179681778,
-0.13571937382221222,
-0.0001101671441574581,
-0.1455020010471344,
0.03376366198062897,
-0.2893487215042114,
0.07777543365955353,
0.07664822041988373,
-0.5392186045646667,
-0.4189271926879883,
-0.2100260853767395,
0.02188139595091343,
-0.13222269713878632,
-0.0703946128487587,
0.03985645994544029,
-0.3876664638519287,
0.015085597522556782,
0.20098894834518433,
0.1243593767285347,
-0.13070416450500488,
-0.09169486910104752,
0.002277637366205454,
0.1724189966917038,
-0.05997949093580246,
-0.071210578083992,
0.2573906183242798,
0.6603621244430542,
0.11802738904953003,
-0.18973983824253082,
0.42277899384498596,
0.10620692372322083,
-0.22744980454444885,
-0.2512739598751068,
-0.1123049408197403,
0.027575716376304626,
-0.520872175693512,
-0.030794814229011536,
0.7121629118919373,
0.09441473335027695,
-0.21925555169582367,
-0.37649908661842346,
-0.5085284113883972,
0.23113714158535004,
-0.10601376742124557,
-0.038544122129678726,
0.331617146730423,
0.13609154522418976,
0.124642513692379,
0.2813401222229004,
-0.4833083748817444,
-0.06451430916786194,
0.11442925781011581,
0.027217211201786995,
0.3500637412071228,
-0.05177498608827591,
0.1554940938949585,
0.05823137238621712,
0.22054198384284973,
0.09084630012512207,
-0.19148385524749756,
-0.20287978649139404,
-0.1587754338979721,
-0.2737722396850586,
0.023860035464167595,
0.10892107337713242,
0.19243310391902924,
0.28209227323532104,
0.010311498306691647,
0.050496120005846024,
0.2658742368221283,
0.035860054194927216,
0.009203040041029453,
0.09583322703838348,
0.1696857064962387,
0.3132941424846649,
-0.07100797444581985,
0.3893371522426605,
-0.2828636169433594,
0.017550114542245865,
0.07683437317609787,
0.11718352884054184,
-0.04729351028800011,
-0.5885551571846008,
0.1953619420528412,
0.05524763464927673,
-0.13501814007759094,
-0.16497021913528442,
0.018880309537053108,
-0.2845039963722229,
-0.2749784290790558,
0.12502604722976685,
0.047559428960084915,
0.23605825006961823,
0.2134096771478653,
-0.23421351611614227,
0.42774105072021484,
-0.2416115254163742,
-0.7489873766899109,
-0.06786505877971649,
0.18315966427326202,
-0.29635363817214966,
0.06280993670225143,
-0.016167350113391876,
-0.0169066172093153,
-0.08269786089658737,
0.5410320162773132,
-0.10159920156002045,
-0.12300596386194229,
0.340874582529068,
-0.2684744596481323,
0.075898177921772,
-0.12129691243171692,
-0.1414213329553604,
0.06615136563777924,
0.05839305743575096,
-0.2884199917316437,
-0.37337449193000793,
-0.04772010073065758,
-0.08557699620723724,
-0.31515371799468994,
0.032719846814870834,
0.12355101853609085,
-0.11830310523509979,
-0.1122058629989624,
0.08219778537750244,
0.9992437958717346,
0.07278254628181458,
0.1342618763446808,
0.2505105137825012,
-0.20386093854904175,
0.018352793529629707,
-0.31035715341567993,
-0.10858234763145447,
0.4024299383163452,
-0.6962321996688843,
-0.06115194782614708,
0.2866937220096588,
-0.18778468668460846,
0.2729092240333557,
0.03357087820768356,
-0.3144291937351227,
0.020433476194739342,
-0.14248859882354736,
0.3152846097946167,
0.31376755237579346,
-0.11941340565681458,
-0.09934064000844955,
0.1415385752916336,
0.006368138361722231,
0.03583880886435509,
0.0838431864976883,
0.13235925137996674,
0.23328623175621033,
0.12014096230268478,
-0.23248274624347687,
0.5208756327629089,
-0.14176928997039795,
-0.16452771425247192,
-0.1718301624059677,
-0.10819517821073532,
0.19246777892112732,
0.267787367105484,
-0.12914006412029266,
-0.27471688389778137,
0.10603678971529007,
-0.20618021488189697,
0.14722391963005066,
-0.28736427426338196,
0.1071482002735138,
0.19196951389312744,
0.04424421861767769,
-0.01785801164805889,
-0.13278119266033173,
0.3083815276622772,
-0.5418764352798462,
0.18606789410114288,
-0.10323329269886017,
0.5869042873382568,
0.29909855127334595,
-0.023410772904753685,
0.4260779023170471,
-0.3329879939556122,
-0.3582538664340973,
-0.4428262710571289,
0.1009378731250763,
0.2809544801712036,
-0.029540712013840675,
0.13789759576320648,
-0.3276749849319458,
0.7076436281204224,
-0.34529101848602295,
0.0027656545862555504,
-0.44797560572624207,
-0.09157492965459824,
0.09301475435495377,
0.022704672068357468,
0.00567898154258728,
0.07617539167404175,
-0.09976420551538467,
-0.3386264145374298,
-0.08590983599424362,
0.12948384881019592,
0.20449231564998627,
0.22545138001441956,
0.17323178052902222,
0.21397045254707336,
0.3390410542488098,
0.10386117547750473,
0.2929345369338989,
-0.16644904017448425,
-0.11286278069019318,
-0.18335676193237305,
0.48205336928367615,
0.6298448443412781,
0.2662575840950012,
0.216389000415802,
-0.10456334799528122,
-0.04033452644944191,
0.24945634603500366,
0.01795339398086071,
-0.4191427528858185,
-0.07032841444015503,
0.3541177809238434,
-0.03644649311900139,
0.6003259420394897,
0.20475083589553833,
-0.6425069570541382,
0.3023045063018799,
0.48267078399658203,
0.05645717680454254,
0.050609804689884186,
-0.11819721758365631,
0.16674010455608368,
0.03303888812661171,
0.25562846660614014,
0.6512221693992615,
0.2741764187812805,
0.24268083274364471,
0.23085567355155945,
-0.09642679244279861,
-0.2540908455848694,
-0.27382156252861023,
0.0713030993938446,
-0.19258904457092285,
0.029466044157743454,
0.07070095092058182,
-0.28812673687934875,
-0.2493143230676651,
-0.37923458218574524,
0.015770576894283295,
0.047798193991184235,
-0.039726488292217255,
0.007628110237419605,
-0.056017931550741196,
-0.1628454327583313,
-0.45103633403778076,
-0.3454928994178772,
-0.1865980476140976,
-0.6983669996261597,
-0.10904178023338318,
0.2895415425300598,
-0.6256926655769348,
-0.17462360858917236,
0.3286415934562683,
-0.12450405955314636,
0.18499784171581268,
-0.6705848574638367,
-0.3457695245742798,
0.20054376125335693,
-0.06563402712345123,
-0.4162079095840454,
0.05722570791840553,
0.3163968026638031,
0.1030975952744484,
0.28329765796661377,
-0.04763990640640259,
-0.19456452131271362,
0.014632465317845345,
-0.4240473806858063,
0.20051562786102295,
-0.19810985028743744,
0.11318124085664749,
-0.0054038516245782375,
-0.25077614188194275,
-0.08085120469331741,
-0.1278049647808075,
0.18991456925868988,
-0.09780477732419968,
0.0012914128601551056,
-0.16772699356079102,
-0.09493929147720337,
0.11154022067785263,
-0.08653415739536285,
-0.7437158226966858,
-0.5412382483482361,
-0.32285076379776,
0.11311205476522446,
-0.241024911403656,
0.14187872409820557,
0.26279503107070923,
-0.05752836912870407,
0.020651841536164284,
-0.02028140239417553,
-0.03629380464553833,
-0.20767882466316223,
-0.29619300365448,
-0.03747567906975746,
-0.013555812649428844,
-0.18120276927947998,
-0.05144462734460831,
-0.052996471524238586,
0.3328414261341095,
0.3901844322681427,
-0.17268773913383484,
0.16596055030822754,
-0.05918090417981148,
-0.004712801892310381,
0.11480943113565445,
0.1560315638780594,
0.2730446755886078,
0.030968746170401573,
0.06315625458955765,
-0.012130573391914368,
-0.029383938759565353,
0.4256516098976135,
0.2989345192909241,
0.06895275413990021,
0.25178128480911255,
0.016834216192364693,
-0.06641045957803726,
0.24451351165771484,
0.32094475626945496,
0.34934690594673157,
0.3737214207649231,
0.0874524861574173,
0.30182915925979614,
-0.1075807735323906,
-0.20197832584381104,
0.4385579526424408,
0.10807113349437714,
-0.06642741709947586,
0.23568981885910034,
0.016151128336787224,
-0.36351263523101807,
-0.22561584413051605,
0.17214013636112213,
0.042355623096227646,
-0.27327361702919006,
0.3677721321582794,
0.025731297209858894,
0.18161512911319733,
-0.16259905695915222,
-0.2604595124721527,
0.08853806555271149,
0.20662164688110352,
0.05919186770915985,
-0.040469273924827576,
-0.19299595057964325,
0.29561275243759155,
-0.41449928283691406,
0.061036672443151474,
-0.3991527557373047,
0.2309006005525589,
0.03719285875558853,
0.2656209468841553,
-0.18303918838500977,
0.08459149301052094,
0.13235823810100555,
0.16869580745697021,
0.17948953807353973,
-0.7963298559188843,
-0.508131742477417,
0.2580792009830475,
-0.04127252846956253,
-0.13909082114696503,
-0.08315221965312958,
-0.28833094239234924,
-0.14849725365638733,
0.43310579657554626,
0.04487108811736107,
-0.41768431663513184,
-0.22064004838466644,
-0.15830399096012115,
0.3739376962184906,
0.10109232366085052,
0.21046969294548035,
-0.19743962585926056,
-0.17829249799251556,
-0.11701967567205429,
0.2660342752933502,
0.11864788830280304,
-0.1181279718875885,
0.30428749322891235,
0.07798140496015549,
0.0410197414457798,
0.13419769704341888,
0.14565522968769073,
0.17586460709571838,
-0.09067797660827637,
0.08898217231035233,
-0.1730853021144867,
0.004338768310844898,
0.07711948454380035,
0.11291243135929108,
0.37740471959114075,
-0.19738638401031494,
-0.18782131373882294,
0.0458313524723053,
-0.19843542575836182,
0.45410311222076416,
0.3063146471977234,
0.30324339866638184,
0.06272255629301071,
-0.13676634430885315,
-0.18358033895492554,
-0.1374138742685318,
0.19510743021965027,
0.046461690217256546,
0.30574488639831543,
-0.4204002320766449,
-0.4959649443626404,
0.006268749013543129,
0.21726840734481812,
-0.1160680428147316,
0.6183971762657166,
0.18203701078891754,
-0.363796591758728,
0.023937908932566643,
0.12600763142108917,
0.9849281907081604,
0.04769060015678406,
-0.07397296279668808,
0.08279038965702057,
-0.33550071716308594,
0.23961922526359558,
-0.3381156921386719,
0.23968176543712616,
-0.3148293197154999,
-0.26353469491004944,
-0.05135218799114227,
-0.0874924287199974,
0.38841328024864197,
0.21455173194408417,
-0.14857646822929382,
0.17130011320114136,
0.20194777846336365,
0.004249038640409708,
-0.16190755367279053,
0.4123140871524811,
-0.25199973583221436,
-0.222608283162117,
0.05431161820888519,
0.07945478707551956,
-0.07435531169176102,
-0.10059010982513428,
-0.0212405975908041,
-0.07438882440328598,
-0.08818071335554123,
0.08434142172336578,
-0.1392340362071991,
0.03770731762051582,
-0.5448753833770752,
0.0035334969870746136,
-0.31470444798469543,
-0.41528812050819397,
0.14371368288993835,
0.17525377869606018,
0.08471807837486267,
-0.24907374382019043,
0.21430589258670807,
0.0554814450442791,
0.02983025088906288,
0.08606579154729843,
0.2507677376270294,
-0.3000151515007019,
0.3130241334438324,
-0.050543706864118576,
-0.33601486682891846,
-0.07651163637638092,
-0.1037970557808876,
-0.029136529192328453,
-0.46047165989875793,
-0.0021128894295543432,
-0.08900127559900284,
-0.0638958290219307,
0.0474105030298233,
0.5011913180351257,
0.21375888586044312,
-0.12292030453681946,
0.08539833128452301,
0.13098867237567902,
-0.009330996312201023,
0.2678690552711487,
-0.35058337450027466,
-0.18706583976745605,
-0.4241064190864563,
-0.3487688899040222,
0.13486161828041077,
0.22353143990039825,
-0.13191096484661102,
0.0799192413687706,
-0.08166968822479248,
-0.19656036794185638,
0.40118446946144104,
0.5465695261955261,
-0.08794727176427841,
-0.24514681100845337,
0.04010355472564697,
-0.3437671363353729,
-0.11856535822153091,
-0.04624392092227936,
0.09614402800798416,
0.26711371541023254,
0.22695347666740417,
-0.10935701429843903,
-0.12208472937345505,
0.20459939539432526,
0.05604184418916702,
0.15862149000167847,
-0.17168426513671875,
-0.23045186698436737,
0.2959860861301422,
0.2857692241668701,
-0.28422123193740845,
-0.10521108657121658,
-0.05744708329439163,
0.08149056881666183,
0.032276228070259094,
0.13590393960475922,
-0.00902740191668272,
0.22746163606643677,
0.03981649875640869,
-0.24990816414356232,
-0.27179473638534546,
-0.051471371203660965,
-0.08160021901130676,
0.10589941591024399,
0.1697377860546112,
0.17160525918006897,
0.37423649430274963,
-0.22495776414871216,
-0.08802241832017899,
-0.07709244638681412,
0.30859115719795227,
0.1879902184009552,
-0.027525294572114944,
0.16489695012569427,
-0.11117087304592133,
0.08139609545469284,
-0.06374051421880722,
0.21703356504440308,
0.12642449140548706,
-0.032755281776189804,
0.4839582145214081,
0.07602173089981079,
0.1110299825668335,
-0.15191657841205597,
0.0326535664498806,
0.23939664661884308,
-0.07143813371658325,
0.07023277878761292,
-0.49018657207489014,
0.10667840391397476,
0.25843092799186707,
0.3129647970199585,
0.21991537511348724,
0.32367751002311707,
-0.10631996393203735,
0.13657552003860474,
0.28146690130233765,
0.14942365884780884,
-0.21722589433193207,
0.008128124289214611,
0.43240612745285034,
-0.11418477445840836,
0.18931972980499268,
0.6332739591598511,
0.5160242319107056,
0.06385386735200882,
0.37355464696884155,
-0.36649149656295776,
0.01955220475792885,
-0.15801332890987396,
0.28765469789505005,
0.19895203411579132,
-0.34357231855392456,
-0.008346869610249996,
0.46738117933273315,
0.2608576714992523,
0.013172581791877747,
-0.02045113407075405,
-0.37028926610946655,
0.16840064525604248,
0.47484126687049866,
0.20195385813713074,
0.09559974819421768,
-0.1417229324579239,
-0.04629359766840935,
0.4105340540409088,
-0.06888160109519958,
-0.12183244526386261,
-0.07682274281978607,
0.2128555327653885,
-0.1870400607585907,
-0.284808486700058,
0.2531358003616333,
0.11095120012760162,
-0.2646322548389435,
0.11398408561944962,
-0.03290725499391556,
-0.08486906439065933,
-0.25663578510284424,
0.1382209062576294,
0.08820468187332153,
-0.30355989933013916,
0.34805169701576233,
0.23339968919754028,
0.10015425831079483,
-0.170701265335083,
0.19401094317436218,
-0.20318414270877838,
0.024338601157069206,
-0.12414588779211044,
0.41890206933021545,
-0.19699037075042725,
0.0209348164498806,
0.024829130619764328,
0.3182600438594818,
0.05324748903512955,
-0.007085548713803291,
0.03054932691156864,
0.26667970418930054,
0.05928229168057442,
0.2132052779197693,
-0.023864509537816048,
0.2628639340400696,
0.2646435499191284,
0.17756684124469757,
0.3684816360473633,
-0.019524915143847466,
-0.04373621568083763,
-0.22752779722213745,
0.1963338702917099,
-0.2719416618347168,
-0.08887310326099396,
0.06412201374769211,
0.027377814054489136,
0.027481000870466232,
-0.19047611951828003,
0.1537707895040512,
-0.2445712834596634,
0.08256816118955612,
0.3190804123878479,
-0.13345272839069366,
-0.057556718587875366,
0.014463606290519238,
0.07648340612649918,
-0.0535370297729969,
0.03647899627685547,
-0.1369415670633316,
0.10688120871782303,
-0.2773875594139099,
-0.39730706810951233,
-0.5407936573028564,
0.04737964645028114,
-0.07312958687543869,
-0.14287550747394562,
-0.25328463315963745,
0.12215863168239594,
0.4480457603931427,
0.24218104779720306,
-0.022599203512072563,
0.30971917510032654,
0.2443055957555771,
0.0017364787636324763,
-0.3667010962963104,
0.2064490169286728,
0.09317517280578613,
0.3003845810890198,
-0.007112947758287191,
0.08219554275274277,
-0.0121718505397439,
0.2777648866176605,
-0.07543888688087463,
-0.01773206517100334,
-0.01723504811525345,
0.18831783533096313,
-0.008159894496202469,
0.31895458698272705,
0.16566284000873566,
0.2753297686576843,
-0.012037673033773899,
-0.03352291136980057,
-0.20903314650058746,
-0.0022409779485315084,
-0.4333556890487671,
0.42664605379104614,
-0.044064365327358246,
0.18273793160915375,
-0.21220137178897858,
-0.16234631836414337,
-0.2630769908428192,
0.1672797054052353,
0.07982888072729111,
0.2675004303455353,
-0.02442094311118126,
0.30989590287208557,
0.3590696454048157,
-0.01273103803396225,
0.06311383098363876,
0.33293822407722473,
0.20442886650562286,
-0.12867149710655212,
-0.14210453629493713,
-0.1900205910205841,
-0.021415511146187782,
0.3513062596321106,
0.04331071302294731,
0.03501804172992706,
0.14875449240207672,
0.4033874273300171,
0.17239239811897278,
-0.5031594634056091,
0.018269218504428864,
0.1999261975288391,
-0.1416807919740677,
-0.09279045462608337,
0.28622639179229736,
0.1462651491165161,
-0.3139474093914032,
-0.05725713074207306,
-0.1617421805858612,
0.0820256695151329,
-0.19107531011104584,
0.16971123218536377,
-0.1253717988729477
] |
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.40260130167007446,
-0.09584996104240417,
-0.10031992942094803,
-0.14071524143218994,
-0.14861835539340973,
-0.1347503662109375,
0.26579606533050537,
0.31443360447883606,
0.01336473785340786,
0.18667301535606384,
-0.1717514991760254,
0.0889783650636673,
-0.06344150006771088,
0.341416597366333,
0.3362109661102295,
-0.04891303926706314,
-0.07187274843454361,
0.10335110127925873,
0.21110011637210846,
-0.05167631432414055,
-0.06870230287313461,
0.26747897267341614,
0.07626419514417648,
0.1808445304632187,
-0.17072053253650665,
-0.396427184343338,
-0.006960752885788679,
0.18195192515850067,
-0.08638188242912292,
-0.3037911653518677,
-0.0648694783449173,
0.23611615598201752,
-0.2647857666015625,
0.22272764146327972,
-0.00010219524847343564,
0.018639713525772095,
0.06209775060415268,
-0.12187791615724564,
0.09508641809225082,
-0.09297601133584976,
-0.23748831450939178,
-0.23173537850379944,
-0.06987323611974716,
-0.000548883224837482,
-0.39071226119995117,
0.13908465206623077,
-0.008609442971646786,
-0.329897940158844,
0.3266136050224304,
0.3445441424846649,
0.23716193437576294,
0.17902909219264984,
-0.14791667461395264,
-0.160789355635643,
0.22580905258655548,
-0.05670486390590668,
-0.09425640851259232,
0.11173136532306671,
0.4271666407585144,
0.11568795889616013,
-0.2336808741092682,
0.4810348153114319,
0.3760599195957184,
-0.12398668378591537,
-0.19674734771251678,
-0.06983506679534912,
0.11622406542301178,
-0.23557458817958832,
-0.22294889390468597,
0.6634974479675293,
-0.09002015739679337,
-0.18455469608306885,
-0.40454724431037903,
-0.1773196905851364,
-0.03880923241376877,
-0.2991449236869812,
0.10578528791666031,
0.25638043880462646,
-0.15728500485420227,
0.09808206558227539,
0.20953547954559326,
-0.5304242968559265,
-0.10126461833715439,
-0.006821625865995884,
-0.1744515299797058,
0.5518791675567627,
0.01264603529125452,
-0.03350165858864784,
0.16987831890583038,
0.06893818080425262,
-0.1111641675233841,
-0.03332523629069328,
-0.10568638145923615,
-0.1299828588962555,
-0.30201470851898193,
-0.15657438337802887,
-0.03063265234231949,
0.14551109075546265,
0.11339473724365234,
0.08601202070713043,
0.10054833441972733,
0.21820403635501862,
0.12894590198993683,
0.16701814532279968,
-0.18576906621456146,
0.055955640971660614,
0.21648582816123962,
0.019334567710757256,
0.279815137386322,
-0.1669444888830185,
-0.1872887909412384,
0.04046778008341789,
0.1680809110403061,
-0.07446523755788803,
-0.43833011388778687,
-0.011864826083183289,
-0.17129309475421906,
-0.17811603844165802,
-0.3314337134361267,
0.024797510355710983,
-0.006888275500386953,
-0.1436271220445633,
0.20920629799365997,
0.2793006896972656,
0.022449681535363197,
-0.14788299798965454,
-0.1934194266796112,
0.1645050197839737,
-0.25259315967559814,
-0.3452318608760834,
-0.1880888193845749,
0.42691075801849365,
-0.2951260507106781,
-0.04946519806981087,
0.028635405004024506,
-0.08682480454444885,
0.12081185728311539,
0.047136340290308,
-0.19098542630672455,
0.08831864595413208,
0.3627955913543701,
-0.025785986334085464,
0.06169624254107475,
0.18488037586212158,
0.01554198656231165,
-0.10874146223068237,
0.03496759757399559,
-0.18320392072200775,
-0.3418174684047699,
-0.22025005519390106,
0.002032362623140216,
-0.24989348649978638,
-0.20683296024799347,
0.25936365127563477,
-0.1927211731672287,
-0.10976938158273697,
0.5019002556800842,
0.7477036118507385,
-0.1138678789138794,
-0.3097311854362488,
0.010350077413022518,
0.07223013788461685,
-0.15513280034065247,
-0.17812871932983398,
0.14234037697315216,
0.23481939733028412,
-0.7939335703849792,
-0.41511449217796326,
-0.11498071998357773,
-0.37403929233551025,
0.23204082250595093,
0.030662482604384422,
-0.17460303008556366,
-0.17906805872917175,
-0.0676405280828476,
0.5377998948097229,
0.4789314568042755,
-0.03263961523771286,
-0.15062490105628967,
0.19688843190670013,
-0.3211740255355835,
-0.02468942478299141,
0.32033243775367737,
0.10187514871358871,
0.040250904858112335,
-0.007531670853495598,
-0.10992555320262909,
0.5292527675628662,
-0.36764007806777954,
-0.33681949973106384,
-0.24373263120651245,
0.024928996339440346,
0.3988683521747589,
0.16694577038288116,
0.24975846707820892,
-0.34296905994415283,
0.18502652645111084,
0.007182104047387838,
0.0768766924738884,
-0.21352098882198334,
0.05291851609945297,
0.11746664345264435,
0.3316623270511627,
-0.14163604378700256,
-0.19055530428886414,
-0.17985756695270538,
-0.16156528890132904,
0.023386502638459206,
-0.45692116022109985,
0.33564043045043945,
0.20279932022094727,
-0.17934201657772064,
-0.07732385396957397,
-0.2438412755727768,
-0.2253050059080124,
-0.256334513425827,
0.23260223865509033,
0.2952122986316681,
0.12883156538009644,
0.13285906612873077,
-0.15172961354255676,
0.34881120920181274,
-0.23254989087581635,
0.12851284444332123,
-0.3362829387187958,
0.1396404653787613,
-0.11866851150989532,
-0.18511945009231567,
-0.14787064492702484,
0.13600040972232819,
-0.1948612630367279,
-0.2928491234779358,
0.015803683549165726,
0.43034619092941284,
0.1253078579902649,
-0.023199839517474174,
0.2271459400653839,
0.09174980968236923,
0.29115110635757446,
-0.03360147401690483,
0.11742731183767319,
-0.08365121483802795,
-0.08120998740196228,
0.0772661566734314,
-0.06432582437992096,
0.5886886715888977,
0.239431232213974,
-0.19111596047878265,
0.18927697837352753,
0.020202627405524254,
0.3595641255378723,
-0.179615318775177,
-0.11547291278839111,
-0.27851688861846924,
0.32847556471824646,
-0.06798239797353745,
0.16048677265644073,
0.11145128309726715,
-0.4790668189525604,
-0.009428956545889378,
0.4859457314014435,
0.059087641537189484,
0.3648814857006073,
-0.023730019107460976,
0.12976089119911194,
-0.10837378352880478,
0.06822113692760468,
0.4315476715564728,
0.10738454014062881,
0.28487062454223633,
0.26830166578292847,
-0.03288765624165535,
-0.37751534581184387,
-0.2526910901069641,
0.18847329914569855,
-0.16441789269447327,
-0.021105529740452766,
0.23145832121372223,
-0.17869782447814941,
-0.433804452419281,
-0.467021644115448,
-0.1032852753996849,
0.27454209327697754,
-0.048777803778648376,
-0.14096315205097198,
-0.15027758479118347,
-0.19975829124450684,
-0.21322116255760193,
-0.35026606917381287,
-0.09713441133499146,
-0.34599995613098145,
-0.1867780238389969,
0.5182226300239563,
-0.2924463152885437,
-0.1760048270225525,
0.37854158878326416,
-0.1598115861415863,
0.30750733613967896,
-0.20443440973758698,
-0.04388686642050743,
0.004037557635456324,
-0.09859731793403625,
-0.3283262550830841,
0.25131481885910034,
0.1908448487520218,
0.22588017582893372,
0.3649793267250061,
-0.07438810914754868,
0.09864985197782516,
0.0715993195772171,
-0.7308648824691772,
0.1624784916639328,
-0.15775465965270996,
0.2988204061985016,
0.12679855525493622,
-0.11827933043241501,
0.11313214898109436,
-0.2868732213973999,
0.2103511095046997,
-0.2408050298690796,
-0.19706347584724426,
0.07926084846258163,
-0.04071633890271187,
0.03910592943429947,
-0.2071116864681244,
-0.8082505464553833,
-0.485323041677475,
-0.3589678108692169,
-0.11585675925016403,
-0.15790662169456482,
0.11482817679643631,
0.10021323710680008,
0.07310674339532852,
0.1114853173494339,
-0.2805960178375244,
0.0076133147813379765,
-0.1510395109653473,
-0.12340764701366425,
0.11636903136968613,
-0.20145907998085022,
-0.12437289953231812,
-0.07869379222393036,
-0.20791536569595337,
0.15819235146045685,
0.08770908415317535,
-0.1286589801311493,
-0.030688835307955742,
-0.0390455387532711,
0.12437067925930023,
0.41127467155456543,
-0.013958379626274109,
0.30513057112693787,
-0.02763047069311142,
-0.18607456982135773,
-0.20514684915542603,
-0.0044549438171088696,
0.3356555998325348,
0.03227057307958603,
0.19742801785469055,
-0.12032399326562881,
0.334936261177063,
0.13397745788097382,
0.305895060300827,
-0.08274487406015396,
-0.034838877618312836,
0.37346476316452026,
0.006159104406833649,
0.1780785769224167,
-0.037143632769584656,
-0.12990862131118774,
0.2221928983926773,
0.04007457196712494,
0.13387492299079895,
0.19586651027202606,
-0.04032200574874878,
-0.3794882297515869,
-0.06361699849367142,
0.05081276595592499,
0.014222471974790096,
-0.24567697942256927,
0.2767374813556671,
-0.06906701624393463,
0.23304064571857452,
-0.0647960752248764,
-0.2957942485809326,
0.04681431129574776,
0.07907906919717789,
0.08805599808692932,
0.02165612205862999,
-0.07713853567838669,
-0.06550361961126328,
-0.6089609265327454,
0.09056166559457779,
-0.06173594668507576,
0.3322027325630188,
0.21503418684005737,
0.23621675372123718,
-0.3545500338077545,
-0.2137051820755005,
0.006706687621772289,
-0.004526580683887005,
0.42455095052719116,
-0.6387293338775635,
-0.32579973340034485,
0.12511667609214783,
-0.1791614145040512,
-0.17541150748729706,
-0.0034706254955381155,
-0.44421255588531494,
-0.2253199964761734,
0.4683689475059509,
0.1449163854122162,
-0.3436181843280792,
-0.27659109234809875,
0.18270626664161682,
0.09707046300172806,
-0.20054461061954498,
0.2465619444847107,
-0.17003735899925232,
-0.08716178685426712,
-0.25395673513412476,
0.4257585406303406,
-0.16590063273906708,
0.06222108379006386,
0.2831774652004242,
-0.11509963124990463,
0.0646718367934227,
-0.03970174863934517,
0.3100985586643219,
0.40985551476478577,
-0.02499539591372013,
0.08887621760368347,
-0.1791362762451172,
-0.07129568606615067,
0.14177411794662476,
-0.12597787380218506,
0.20179089903831482,
-0.2762448191642761,
-0.026171933859586716,
0.10006069391965866,
-0.23199984431266785,
0.35517802834510803,
0.31256312131881714,
0.1280035525560379,
0.32055729627609253,
0.04945051670074463,
-0.05215339735150337,
-0.08422314375638962,
0.44970354437828064,
0.015880456194281578,
0.2580993175506592,
-0.31805405020713806,
-0.3337841033935547,
-0.0661652684211731,
0.22856494784355164,
-0.2107953578233719,
0.2800615131855011,
0.2676202058792114,
-0.23181472718715668,
0.18746913969516754,
0.10281961411237717,
0.922463595867157,
0.05987023189663887,
-0.12005104124546051,
0.13583128154277802,
-0.19689017534255981,
0.1186690628528595,
-0.3971559703350067,
0.11305414140224457,
-0.2436857968568802,
-0.31415224075317383,
-0.13518483936786652,
0.005596776958554983,
0.45624029636383057,
0.18787206709384918,
-0.2996576726436615,
0.21482719480991364,
0.1358683556318283,
-0.0031989712733775377,
-0.07462664693593979,
0.3480924367904663,
-0.11921396851539612,
-0.12941861152648926,
-0.03603025898337364,
0.19125747680664062,
0.004482134710997343,
-0.13133244216442108,
0.06670426577329636,
-0.17640581727027893,
0.032936837524175644,
-0.0699051022529602,
-0.10382003337144852,
0.041348375380039215,
-0.1775313764810562,
0.11770544946193695,
-0.0536809042096138,
-0.18441784381866455,
0.10922466963529587,
-0.06904076039791107,
0.1380470097064972,
0.15808367729187012,
0.12002620100975037,
0.2941999137401581,
-0.07625018060207367,
0.1471017599105835,
0.13655905425548553,
-0.14271193742752075,
0.626764178276062,
-0.1289559155702591,
-0.3069678544998169,
0.2094910889863968,
0.056265998631715775,
-0.1752728670835495,
-0.16199561953544617,
-0.047540344297885895,
0.07620591670274734,
-0.24436986446380615,
-0.005643195938318968,
0.22925850749015808,
0.013497536070644855,
-0.42747238278388977,
0.20061486959457397,
0.061440110206604004,
-0.4205590784549713,
0.1520063728094101,
0.017350245267152786,
-0.16538721323013306,
-0.27789631485939026,
-0.25562652945518494,
0.12163218855857849,
0.31934529542922974,
0.044810112565755844,
0.09028127789497375,
-0.06826420873403549,
-0.36806538701057434,
0.000673638773150742,
0.7876304388046265,
-0.374819815158844,
0.13253390789031982,
-0.06872932612895966,
-0.5916545987129211,
0.07739575207233429,
0.031519815325737,
0.36490264534950256,
0.32133498787879944,
-0.05123566836118698,
-0.19565092027187347,
-0.038119830191135406,
0.07582106441259384,
0.07195785641670227,
0.4078858196735382,
-0.08050338178873062,
0.06829895079135895,
-0.027433734387159348,
0.4570309519767761,
-0.4596618413925171,
-0.11922495812177658,
-0.3372143507003784,
0.23454834520816803,
-0.2614816427230835,
0.04344838857650757,
0.09876049309968948,
0.17377541959285736,
0.22004735469818115,
-0.09755256772041321,
-0.21033760905265808,
-0.23796717822551727,
-0.16000956296920776,
0.06578371673822403,
-0.12055937200784683,
0.20124268531799316,
0.20699957013130188,
0.18689586222171783,
0.083377905189991,
0.01319115236401558,
0.301863431930542,
-0.2768765389919281,
-0.020871194079518318,
0.17725194990634918,
0.08104847371578217,
-0.247232586145401,
0.1071164608001709,
-0.0407220833003521,
-0.08928781747817993,
-0.0021477271802723408,
0.21328197419643402,
0.14960210025310516,
0.04039605334401131,
-0.19369719922542572,
-0.01633847877383232,
0.2318384349346161,
0.16793936491012573,
-0.03427170589566231,
-0.3017492890357971,
0.0924229845404625,
0.013381781056523323,
0.09276532381772995,
0.36540886759757996,
0.15594355762004852,
0.04386657476425171,
0.2086663395166397,
0.26360639929771423,
0.34189876914024353,
-0.33981114625930786,
-0.04373272508382797,
0.5402926206588745,
-0.16363964974880219,
0.4729085862636566,
0.317220002412796,
0.39866822957992554,
0.4365926682949066,
0.3079833388328552,
-0.1262671947479248,
-0.06596102565526962,
-0.0754217728972435,
0.2586025297641754,
0.4109567105770111,
-0.0899905264377594,
0.03647066280245781,
0.4287833273410797,
-0.03084547631442547,
0.07108134031295776,
0.18863387405872345,
0.011957657523453236,
0.4845592677593231,
0.17632395029067993,
0.370049387216568,
0.19309324026107788,
-0.14337708055973053,
0.03014424256980419,
0.10229633748531342,
-0.025810588151216507,
0.17542582750320435,
0.0862090215086937,
0.22753961384296417,
-0.1140875592827797,
-0.2702912986278534,
-0.08591684699058533,
0.27361902594566345,
-0.13587461411952972,
-0.1678975522518158,
-0.28522107005119324,
-0.224514439702034,
-0.2584618628025055,
0.119212307035923,
0.31956395506858826,
-0.06345736980438232,
0.17012107372283936,
0.16031233966350555,
0.15906530618667603,
-0.07539757341146469,
0.24555495381355286,
-0.033656779676675797,
-0.029723288491368294,
-0.33055225014686584,
0.36963561177253723,
0.14340253174304962,
-0.08547573536634445,
0.0771520733833313,
0.07527375221252441,
0.12066537886857986,
-0.2689928412437439,
-0.07466141879558563,
0.14853279292583466,
-0.05471758171916008,
-0.05435555800795555,
-0.10389456897974014,
0.23987968266010284,
0.23677761852741241,
0.4322722256183624,
0.34601810574531555,
0.19751191139221191,
-0.22119909524917603,
0.0832739919424057,
0.11076271533966064,
-0.1613854467868805,
-0.14166678488254547,
0.24338093400001526,
0.18831482529640198,
0.23905198276042938,
-0.4731663465499878,
0.03508498892188072,
-0.4495849311351776,
0.09037646651268005,
0.3246407210826874,
-0.2897542417049408,
-0.0027565844357013702,
-0.08983201533555984,
0.11256251484155655,
0.12932489812374115,
0.3142217695713043,
-0.12940655648708344,
0.051674000918865204,
-0.1591431349515915,
-0.20199698209762573,
-0.4413151741027832,
0.05473052337765694,
-0.04038406163454056,
-0.18356268107891083,
-0.26367026567459106,
0.30459144711494446,
0.2783784568309784,
0.036890897899866104,
-0.18251341581344604,
0.1389005035161972,
0.03466890752315521,
0.021656127646565437,
-0.39719241857528687,
0.26742932200431824,
0.038319990038871765,
0.26218655705451965,
0.05112549290060997,
-0.04876020923256874,
-0.03009156882762909,
-0.021344387903809547,
0.062418147921562195,
0.08256758749485016,
-0.27333465218544006,
0.39144158363342285,
-0.039745353162288666,
0.19814006984233856,
0.04420717433094978,
0.5657787919044495,
-0.1486569494009018,
0.08340641856193542,
-0.13700345158576965,
-0.06432493776082993,
-0.42022812366485596,
0.1341944932937622,
0.24242664873600006,
0.5128123164176941,
0.11956765502691269,
-0.17672769725322723,
-0.1290869414806366,
0.3237070143222809,
0.12421906739473343,
0.02614985592663288,
0.006924652028828859,
0.23582381010055542,
0.21079032123088837,
-0.16030481457710266,
0.3413085639476776,
0.5047712326049805,
0.14590105414390564,
-0.1016613021492958,
0.0846766009926796,
-0.39177143573760986,
0.1512981504201889,
0.04467771202325821,
-0.094669871032238,
-0.12555764615535736,
0.04339013248682022,
0.3962917625904083,
0.014886368066072464,
-0.4677675664424896,
-0.13402527570724487,
0.144914910197258,
-0.039958011358976364,
-0.02773459628224373,
0.20853564143180847,
0.43236061930656433,
-0.011717290617525578,
-0.059245072305202484,
-0.31075620651245117,
0.13720481097698212,
-0.22013434767723083,
-0.010233793407678604,
-0.27527734637260437
] |
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.03093552216887474,
-0.01574505865573883,
-0.1258900910615921,
-0.10052003711462021,
-0.1579117476940155,
-0.17087562382221222,
0.5267757773399353,
0.005605571903288364,
0.023873237892985344,
0.09561322629451752,
-0.07178390026092529,
0.00401570089161396,
-0.02921958453953266,
0.2641971707344055,
0.4696395993232727,
-0.006495992187410593,
0.017922833561897278,
-0.0927426889538765,
0.10552391409873962,
-0.031187625601887703,
-0.22556689381599426,
0.040876440703868866,
0.19348834455013275,
0.1281043142080307,
-0.1308089941740036,
-0.226252019405365,
-0.18155206739902496,
0.003479030914604664,
-0.16710101068019867,
-0.1984764188528061,
-0.1351330280303955,
0.1272176206111908,
-0.2173864096403122,
0.049853939563035965,
-0.00010464779916219413,
-0.08203490078449249,
0.12162703275680542,
-0.041464608162641525,
0.3431469798088074,
0.09873862564563751,
-0.2769549489021301,
-0.5269671678543091,
-0.3578157424926758,
-0.2653231918811798,
-0.01645849645137787,
-0.15029020607471466,
-0.01983378455042839,
-0.5409762263298035,
-0.22309312224388123,
-0.08313437551259995,
0.28346771001815796,
0.011547928676009178,
-0.013896314427256584,
-0.0006382870487868786,
0.3840338885784149,
-0.216301828622818,
-0.10170396417379379,
0.35162240266799927,
0.6787541508674622,
0.19978351891040802,
-0.06225556880235672,
0.5023946762084961,
0.17198428511619568,
-0.36394065618515015,
-0.1554911583662033,
0.15484926104545593,
-0.015757111832499504,
-0.17778970301151276,
0.004457972478121519,
0.48878374695777893,
0.17322754859924316,
-0.2198900729417801,
-0.5166093111038208,
-0.15108893811702728,
-0.02566469833254814,
0.14560887217521667,
-0.13702796399593353,
0.36637935042381287,
0.31659746170043945,
0.06044570729136467,
0.300601065158844,
-0.592269241809845,
-0.04748865216970444,
0.029565246775746346,
-0.011481223627924919,
0.3938582241535187,
-0.01928948611021042,
0.22025898098945618,
-0.06965909153223038,
0.15654027462005615,
0.044224996119737625,
-0.04535931348800659,
-0.20478245615959167,
-0.1475440263748169,
-0.04272396117448807,
-0.0027038296684622765,
0.060969989746809006,
0.22283664345741272,
0.23477964103221893,
-0.21679013967514038,
0.16606763005256653,
0.11596941202878952,
-0.13669750094413757,
0.13650108873844147,
0.048406802117824554,
-0.06705756485462189,
0.11844426393508911,
-0.12176971137523651,
0.18721038103103638,
-0.4778735339641571,
0.1259693205356598,
-0.005606456194072962,
0.1264980286359787,
-0.016920043155550957,
-0.2524389922618866,
0.07580570131540298,
-0.11828702688217163,
-0.1687621772289276,
-0.14063027501106262,
0.015984108671545982,
-0.16706483066082,
-0.257562518119812,
-0.1345188170671463,
0.15220195055007935,
0.11741232126951218,
0.03145202621817589,
-0.027403714135289192,
0.3192715644836426,
-0.0030032675713300705,
-0.2601378858089447,
-0.018207522109150887,
0.45555615425109863,
-0.3091597855091095,
-0.027530469000339508,
-0.11484935879707336,
0.0074083684012293816,
-0.22643356025218964,
0.18292735517024994,
0.12475483119487762,
-0.029665881767868996,
0.2931871712207794,
-0.0992409959435463,
0.19601909816265106,
-0.27193957567214966,
0.07919041812419891,
0.14892061054706573,
-0.0673968642950058,
-0.19746118783950806,
-0.3425368666648865,
0.14980243146419525,
-0.06994559615850449,
-0.00926841888576746,
-0.4532349705696106,
0.1946403980255127,
-0.031701233237981796,
-0.3639161288738251,
0.2336071878671646,
0.654337465763092,
0.026825182139873505,
-0.15717704594135284,
0.33935782313346863,
0.10946997255086899,
-0.1671152412891388,
-0.3618362843990326,
-0.11149958521127701,
0.1597098708152771,
-0.5814816951751709,
-0.20364044606685638,
0.15482795238494873,
-0.10976026207208633,
0.2220735251903534,
0.09835807234048843,
-0.32200559973716736,
0.024872399866580963,
-0.17048734426498413,
0.4339238405227661,
0.22533303499221802,
-0.30007660388946533,
-0.14073264598846436,
0.026658520102500916,
-0.30583691596984863,
-0.0017793845618143678,
0.3271746337413788,
0.28027719259262085,
0.036467865109443665,
-0.04360348731279373,
0.0005733629805035889,
0.2896566092967987,
-0.1517321914434433,
0.005578942596912384,
-0.2849944233894348,
-0.2372046560049057,
0.3821450471878052,
0.17928263545036316,
0.09551334381103516,
-0.2297505885362625,
0.4316016733646393,
-0.023920485749840736,
0.1088685616850853,
-0.4153645932674408,
0.14522327482700348,
0.00738059775903821,
0.38763803243637085,
-0.12589062750339508,
-0.25481173396110535,
-0.1163976863026619,
-0.18925634026527405,
0.1494082510471344,
-0.17399998009204865,
0.38788002729415894,
0.2392870932817459,
-0.35969841480255127,
0.10902081429958344,
-0.30479884147644043,
-0.09975903481245041,
-0.2800363600254059,
0.2225358933210373,
0.28469210863113403,
0.0505991131067276,
0.23572827875614166,
-0.17983697354793549,
0.5148307085037231,
-0.06500956416130066,
-0.21561269462108612,
-0.2844988703727722,
0.27195146679878235,
0.06155652180314064,
0.016640495508909225,
-0.3019694983959198,
0.3540419638156891,
-0.26737329363822937,
-0.17142947018146515,
0.2249203771352768,
0.20038753747940063,
-0.28065216541290283,
0.20078475773334503,
0.3705325722694397,
0.2134396731853485,
0.3387437164783478,
-0.03681955114006996,
0.44516417384147644,
-0.2990204393863678,
-0.006435055751353502,
-0.05074160546064377,
0.26290640234947205,
0.5275497436523438,
0.33784356713294983,
-0.0201784148812294,
0.06356322020292282,
-0.08398852497339249,
0.17850419878959656,
-0.06659893691539764,
-0.2512604296207428,
-0.14786066114902496,
0.21859124302864075,
0.18338297307491302,
0.350382000207901,
-0.01473616249859333,
-0.5163174271583557,
0.3014969527721405,
0.6254873275756836,
-0.02924162894487381,
0.3895091712474823,
-0.09209339320659637,
0.01929587312042713,
0.022983355447649956,
0.0512358620762825,
0.35028690099716187,
0.24379168450832367,
0.3249128460884094,
0.2395407259464264,
-0.12209689617156982,
-0.02304764837026596,
-0.0875403955578804,
-0.00931865256279707,
-0.22092844545841217,
-0.09160003811120987,
0.1658765971660614,
0.076067715883255,
-0.15493755042552948,
-0.5849466323852539,
0.07984378933906555,
0.026139292865991592,
-0.3220534324645996,
0.04856642335653305,
-0.08018175512552261,
0.06100760027766228,
-0.37577521800994873,
-0.4289930462837219,
-0.25126349925994873,
-0.3670111298561096,
-0.1011623814702034,
0.24500641226768494,
-0.544611394405365,
-0.11561980098485947,
0.08391755819320679,
0.13575945794582367,
0.2886965274810791,
-0.4931298792362213,
-0.0888577401638031,
0.0717834010720253,
0.05216408893465996,
-0.12083280831575394,
0.21504339575767517,
0.06494689732789993,
0.061345674097537994,
0.6506126523017883,
-0.02976084128022194,
0.21314500272274017,
-0.35294538736343384,
-0.596031904220581,
0.09576625376939774,
-0.2590043544769287,
0.024818528443574905,
0.10242487490177155,
-0.4434499144554138,
0.04658156633377075,
-0.1395169496536255,
0.2609797716140747,
-0.20499522984027863,
-0.01510715577751398,
-0.23053036630153656,
-0.09535257518291473,
0.06932597607374191,
-0.18326161801815033,
-0.43599560856819153,
-0.6468157768249512,
-0.34349948167800903,
0.20101143419742584,
-0.08077563345432281,
0.07853546738624573,
-0.22436405718326569,
-0.1936890184879303,
0.20316442847251892,
-0.10496121644973755,
-0.15067058801651,
-0.30181702971458435,
-0.24556373059749603,
0.0002130994398612529,
-0.12817057967185974,
-0.2957012951374054,
-0.11564671993255615,
-0.09069811552762985,
0.18208365142345428,
0.11909084767103195,
-0.14703316986560822,
-0.08062980324029922,
-0.06694095581769943,
0.0293892752379179,
0.2819401025772095,
0.42899179458618164,
0.21100977063179016,
-0.0370904840528965,
-0.15182682871818542,
-0.1413823813199997,
-0.038780923932790756,
0.08773648738861084,
0.18654869496822357,
-0.07847750931978226,
0.11156827211380005,
0.1964418739080429,
0.25498393177986145,
0.09819802641868591,
-0.009435554035007954,
0.0713186040520668,
0.44709858298301697,
-0.03112664259970188,
0.39838162064552307,
-0.23279696702957153,
-0.3313080370426178,
0.22874993085861206,
-0.18431271612644196,
0.16174831986427307,
0.1289573460817337,
0.08061711490154266,
-0.4328380525112152,
-0.1319631189107895,
0.12407214194536209,
-0.21550284326076508,
-0.12298909574747086,
0.27153322100639343,
0.12188410013914108,
0.1368040293455124,
0.02689492329955101,
-0.5252279043197632,
-0.09804698079824448,
0.06577427685260773,
0.19271472096443176,
0.08767084777355194,
0.10083209723234177,
0.020432299003005028,
-0.4529144763946533,
0.10355737805366516,
-0.6617624163627625,
0.3235158324241638,
0.3332973122596741,
0.08459692448377609,
-0.16816534101963043,
-0.02697048708796501,
0.06997543573379517,
-0.08315563201904297,
0.16525398194789886,
-0.7830032110214233,
-0.40388667583465576,
0.20129495859146118,
-0.1501498818397522,
-0.0906747505068779,
0.0944572314620018,
-0.4324660301208496,
-0.012222332879900932,
0.4249153733253479,
0.14343255758285522,
-0.4903397858142853,
0.07585983723402023,
0.10319405794143677,
0.293326199054718,
-0.036654405295848846,
0.15049152076244354,
-0.13157892227172852,
-0.2456531971693039,
-0.20364506542682648,
0.08410442620515823,
0.08980239927768707,
0.02253440022468567,
0.4347541332244873,
-0.24934817850589752,
-0.04786654934287071,
-0.07384120672941208,
0.10020066797733307,
-0.037644434720277786,
-0.2105492502450943,
0.2348736673593521,
-0.10142415016889572,
-0.13691487908363342,
0.1677590012550354,
-0.2899709641933441,
0.4333428144454956,
-0.20376995205879211,
0.13323548436164856,
0.1908707320690155,
-0.48322853446006775,
0.49735599756240845,
0.22029703855514526,
0.21897286176681519,
0.29974663257598877,
-0.12331951409578323,
-0.1388927847146988,
-0.1428913027048111,
0.10320734232664108,
0.1299719661474228,
0.4290406107902527,
-0.4069592356681824,
-0.36562207341194153,
0.20143961906433105,
0.23211725056171417,
-0.09979569911956787,
0.5052690505981445,
0.3039489984512329,
-0.4377228617668152,
-0.06912752985954285,
0.008906993083655834,
1.0040184259414673,
-0.2564152181148529,
0.1959461271762848,
0.05789026618003845,
-0.17964638769626617,
0.37255024909973145,
-0.3016742765903473,
-0.16164815425872803,
-0.2634381949901581,
-0.27501431107521057,
-0.1262909173965454,
-0.05339501053094864,
0.3447175621986389,
0.1411757469177246,
-0.25649145245552063,
0.026115689426660538,
0.19968481361865997,
-0.08217352628707886,
-0.059416212141513824,
0.5094428062438965,
-0.16303704679012299,
-0.24484269320964813,
-0.07127631455659866,
0.14284150302410126,
0.12110628187656403,
-0.19614340364933014,
-0.22748731076717377,
-0.0276075080037117,
-0.15675169229507446,
-0.09751217067241669,
-0.2363923192024231,
-0.03944934532046318,
-0.05264821648597717,
0.15027399361133575,
-0.21018937230110168,
-0.23413175344467163,
0.2122027426958084,
-0.22324694693088531,
0.19111350178718567,
0.03265942260622978,
0.16827909648418427,
-0.038705065846443176,
-0.008764712139964104,
0.1832384616136551,
0.42717444896698,
-0.2175193876028061,
0.20662830770015717,
-0.06066843867301941,
-0.16056853532791138,
0.22722311317920685,
0.034339919686317444,
-0.5253437757492065,
-0.5132180452346802,
0.2669931948184967,
-0.075473353266716,
-0.12640933692455292,
-0.06149916723370552,
0.624011754989624,
-0.02113305777311325,
-0.21724115312099457,
0.16066616773605347,
0.39217883348464966,
-0.06778556853532791,
0.11044895648956299,
-0.16018690168857574,
-0.2068919539451599,
-0.31682491302490234,
-0.1244886964559555,
0.25570183992385864,
0.09679029136896133,
-0.3670573830604553,
0.04625128209590912,
-0.1559278666973114,
-0.11893732100725174,
0.13997192680835724,
0.6067626476287842,
-0.37825924158096313,
-0.28837335109710693,
-0.0039125122129917145,
-0.3069780468940735,
-0.2110750377178192,
0.0479436032474041,
0.16655831038951874,
0.21569111943244934,
-0.0879015251994133,
-0.19163601100444794,
0.08700653910636902,
0.34775829315185547,
0.15525828301906586,
0.15035419166088104,
0.08805911988019943,
0.0033458182588219643,
-0.040152039378881454,
0.10605853796005249,
-0.4068501591682434,
-0.0001900610513985157,
0.1143745556473732,
0.12268023192882538,
0.15803372859954834,
0.046423185616731644,
0.13418298959732056,
0.1589011251926422,
0.19714507460594177,
0.021044034510850906,
-0.051760800182819366,
-0.19544358551502228,
0.03834060579538345,
0.059388417750597,
0.0830748975276947,
0.19365999102592468,
0.34368282556533813,
-0.15406747162342072,
0.05788932368159294,
0.07143840938806534,
0.325804203748703,
0.02930770441889763,
-0.22943611443042755,
0.0416928268969059,
-0.17140723764896393,
-0.08344341814517975,
0.10626856982707977,
0.28185001015663147,
0.08513311296701431,
0.02943815477192402,
0.04121618717908859,
0.1196717619895935,
0.13143470883369446,
-0.07019464671611786,
0.25053444504737854,
0.23013584315776825,
0.12642346322536469,
0.31219586730003357,
-0.1550150215625763,
0.05876642093062401,
0.36544162034988403,
0.12734673917293549,
0.48275017738342285,
0.033606093376874924,
-0.16897627711296082,
0.08230847865343094,
0.07096831500530243,
0.3136574327945709,
-0.24169662594795227,
-0.29670268297195435,
0.20616135001182556,
-0.21947723627090454,
0.39019984006881714,
0.5765981674194336,
0.5690063238143921,
0.2632638216018677,
0.40045642852783203,
-0.4132811427116394,
0.11622553318738937,
-0.08594401925802231,
0.018297113478183746,
0.04565489664673805,
-0.2124738097190857,
0.06960427761077881,
0.28313660621643066,
0.18883897364139557,
-0.031579211354255676,
0.20121632516384125,
0.16113197803497314,
0.27953773736953735,
0.42831796407699585,
0.2462063729763031,
0.02719380147755146,
0.19251087307929993,
0.338196337223053,
0.17649777233600616,
0.25955018401145935,
0.1481245458126068,
0.17293353378772736,
0.23182477056980133,
-0.11474932730197906,
-0.07946542650461197,
0.13112731277942657,
0.183827742934227,
-0.04953307285904884,
0.014904214069247246,
0.21874424815177917,
-0.0903741717338562,
-0.24260294437408447,
0.0026583021972328424,
-0.17281919717788696,
-0.10718556493520737,
0.0830364003777504,
0.05751645937561989,
0.2873069941997528,
-0.014333801344037056,
0.15955284237861633,
-0.14906857907772064,
0.12363433837890625,
-0.2348015457391739,
0.22020499408245087,
-0.153840571641922,
0.18855567276477814,
-0.08929241448640823,
0.4514084756374359,
0.02019587717950344,
-0.02935967408120632,
0.004857598338276148,
0.36981847882270813,
-0.21897339820861816,
0.1569337248802185,
-0.12493496388196945,
0.1338542103767395,
0.27476632595062256,
0.17485745251178741,
0.3241952061653137,
0.13546854257583618,
-0.2330460548400879,
0.01228250376880169,
0.19762015342712402,
-0.03973531350493431,
-0.30346763134002686,
0.002158041810616851,
-0.22258774936199188,
0.012468100525438786,
-0.2757619023323059,
0.07584544271230698,
-0.5223265290260315,
-0.09021545946598053,
0.2235928773880005,
-0.35138121247291565,
-0.025701599195599556,
-0.11487334221601486,
0.10953393578529358,
0.035092175006866455,
0.19467203319072723,
0.046582791954278946,
0.4593774378299713,
-0.10993798077106476,
-0.3727731704711914,
-0.4824967086315155,
0.2873211205005646,
0.03622981160879135,
-0.08989625424146652,
-0.3536235988140106,
0.1818205863237381,
0.4511231780052185,
0.2547106146812439,
0.012164280749857426,
0.21154387295246124,
-0.13002373278141022,
-0.15835513174533844,
-0.2679615914821625,
0.12994147837162018,
0.21453192830085754,
0.23907408118247986,
0.013987278565764427,
-0.047098979353904724,
-0.022019287571310997,
0.09410087019205093,
0.16145752370357513,
-0.2123524695634842,
-0.13920532166957855,
0.005839216988533735,
-0.0993594154715538,
0.4858984053134918,
0.06453138589859009,
0.4056459367275238,
-0.213744655251503,
-0.15543165802955627,
-0.11624724417924881,
-0.2418530285358429,
-0.19598287343978882,
0.4852725565433502,
0.06534376740455627,
0.25613659620285034,
0.0638888031244278,
-0.25253671407699585,
-0.0699637159705162,
0.13038872182369232,
0.11363368481397629,
0.3501695990562439,
-0.0011438934598118067,
0.31199222803115845,
0.12503688037395477,
-0.2902599573135376,
0.026478176936507225,
0.448116272687912,
0.18194590508937836,
-0.07778080552816391,
-0.020653674378991127,
-0.26772016286849976,
-0.14718469977378845,
0.03986024111509323,
-0.06971272081136703,
0.05916958302259445,
0.21883875131607056,
0.15321744978427887,
-0.11393657326698303,
-0.42140376567840576,
-0.07569309324026108,
0.3150251507759094,
0.17757141590118408,
0.015504414215683937,
0.1421085000038147,
0.022991247475147247,
-0.3856184482574463,
-0.09034164249897003,
-0.08706005662679672,
-0.005237509496510029,
-0.12299637496471405,
0.12735019624233246,
-0.37389618158340454
] |
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.18463394045829773,
-0.24185995757579803,
-0.18476496636867523,
-0.130350723862648,
-0.05181744322180748,
0.006996354088187218,
0.25056299567222595,
0.11135923862457275,
0.18022969365119934,
0.14493988454341888,
-0.11674892902374268,
0.1012672632932663,
0.048573173582553864,
0.39057624340057373,
0.6209654211997986,
-0.17828063666820526,
0.1267162561416626,
0.0511758029460907,
-0.014704017899930477,
-0.09345639497041702,
-0.10278797149658203,
0.21672916412353516,
0.10808034241199493,
-0.05271492898464203,
-0.16772960126399994,
-0.24353671073913574,
-0.2842397391796112,
0.14354556798934937,
-0.08871141076087952,
-0.3312162160873413,
-0.013160738162696362,
0.2882210612297058,
-0.17683756351470947,
0.10546393692493439,
-0.00010096021287608892,
-0.1696675568819046,
0.11007314175367355,
-0.0895155593752861,
-0.020409725606441498,
-0.02457519993185997,
-0.24451853334903717,
-0.442778080701828,
-0.14386050403118134,
-0.06472278386354446,
-0.1366014927625656,
-0.08178964257240295,
0.15767456591129303,
-0.5114187002182007,
0.09483050554990768,
0.1543593555688858,
0.27334117889404297,
0.24562840163707733,
-0.02814461849629879,
-0.23578286170959473,
0.3271300196647644,
0.06563396751880646,
-0.12487799674272537,
0.21706324815750122,
0.7011622786521912,
0.1104031652212143,
0.042691364884376526,
0.2003498375415802,
0.16618697345256805,
-0.02510114759206772,
-0.09420743584632874,
0.06877858191728592,
-0.11666220426559448,
-0.12909047305583954,
-0.02656734175980091,
0.6269082427024841,
0.19021320343017578,
-0.40497472882270813,
-0.41053110361099243,
-0.19998858869075775,
0.09869147837162018,
-0.05292314291000366,
0.08978203684091568,
0.07260307669639587,
0.12139743566513062,
0.031828269362449646,
0.1945580542087555,
-0.4966188669204712,
-0.05975028872489929,
0.12886109948158264,
0.0036633210256695747,
0.2533263862133026,
-0.1540232002735138,
-0.002455415204167366,
0.17598652839660645,
0.04245582967996597,
-0.16095222532749176,
0.02876143343746662,
-0.20052377879619598,
0.10641193389892578,
-0.0968635231256485,
-0.04448053613305092,
0.023862425237894058,
0.1938486546278,
0.41598618030548096,
0.03611508756875992,
0.04477660730481148,
0.2233370989561081,
-0.28032901883125305,
0.1791001856327057,
-0.14630405604839325,
0.07609926164150238,
0.28676924109458923,
-0.4129459261894226,
0.3636009097099304,
-0.23749622702598572,
0.21256566047668457,
-0.006558611989021301,
-0.056850481778383255,
0.014150703325867653,
-0.31750112771987915,
-0.008249165490269661,
-0.026873869821429253,
-0.050288908183574677,
-0.1470526158809662,
0.003765525994822383,
0.04865099862217903,
-0.10398896038532257,
-0.006170486565679312,
0.22252412140369415,
0.09965456277132034,
-0.12330501526594162,
-0.16211079061031342,
0.31381529569625854,
-0.0012073853285983205,
-0.37612518668174744,
-0.0911940410733223,
0.3496202826499939,
-0.26905763149261475,
0.10137490183115005,
-0.0004976755008101463,
-0.19538374245166779,
0.10362247377634048,
0.18463534116744995,
0.06115664541721344,
0.09869114309549332,
0.22618867456912994,
0.07207314670085907,
0.1173686757683754,
-0.10740721225738525,
-0.07367131114006042,
0.04638034477829933,
0.009890400804579258,
-0.3629235029220581,
-0.3809712529182434,
-0.21053877472877502,
0.037862371653318405,
0.06823091953992844,
-0.5171698331832886,
0.22532068192958832,
-0.1216329038143158,
-0.3320919871330261,
0.06107337400317192,
0.7353149056434631,
-0.2060721069574356,
-0.18733294308185577,
0.37422189116477966,
0.18480448424816132,
0.06063433364033699,
-0.1820903867483139,
0.1231321170926094,
0.30112773180007935,
-0.7084856629371643,
-0.38789069652557373,
0.016190608963370323,
-0.31167230010032654,
0.01502474769949913,
-0.007213891949504614,
-0.052216727286577225,
-0.14889737963676453,
-0.21938477456569672,
0.35666146874427795,
0.307416170835495,
-0.26312899589538574,
-0.10481901466846466,
0.15271569788455963,
-0.13635459542274475,
0.03242148458957672,
0.1493162214756012,
0.24611839652061462,
0.007618937641382217,
0.08196277916431427,
-0.22844626009464264,
0.49287140369415283,
-0.13768479228019714,
-0.06932799518108368,
-0.01719033159315586,
-0.11789167672395706,
0.11639675498008728,
0.2341867983341217,
-0.017736954614520073,
-0.1847672313451767,
0.37487974762916565,
-0.048054520040750504,
0.01430263090878725,
-0.21784549951553345,
0.08231102675199509,
0.23384913802146912,
0.2585245966911316,
0.041974686086177826,
-0.15277037024497986,
-0.3222059905529022,
-0.3203316330909729,
0.11784019321203232,
-0.09658858180046082,
0.23034755885601044,
0.13520890474319458,
-0.27908048033714294,
-0.019615886732935905,
-0.021295052021741867,
-0.20567242801189423,
-0.2783057689666748,
0.19578129053115845,
0.32533490657806396,
0.1568976640701294,
0.3068625330924988,
-0.16364727914333344,
0.2912968397140503,
0.027068905532360077,
0.03934058919548988,
-0.38206660747528076,
0.1652248054742813,
0.10094154626131058,
-0.04876955971121788,
-0.24714277684688568,
0.2708750367164612,
-0.2948078215122223,
-0.3454175293445587,
0.04756048694252968,
0.4005277752876282,
-0.05627799034118652,
0.3210211396217346,
0.434052437543869,
0.3132537007331848,
0.3498571217060089,
-0.0516703762114048,
0.21665331721305847,
-0.14774921536445618,
0.05930786952376366,
-0.017911823466420174,
0.033200450241565704,
0.3806251287460327,
0.286774218082428,
-0.18064238131046295,
0.06458042562007904,
0.0515143945813179,
0.3325467109680176,
-0.057896316051483154,
-0.024755358695983887,
-0.27051928639411926,
0.32144689559936523,
-0.06820711493492126,
0.4620572328567505,
-0.08911456912755966,
-0.4519283175468445,
-0.004149726126343012,
0.5400704145431519,
-0.2069958746433258,
0.5007699728012085,
-0.03856761381030083,
-0.24863308668136597,
-0.1093040257692337,
0.22323279082775116,
0.24472397565841675,
0.17897500097751617,
0.27821144461631775,
0.2959163188934326,
-0.009484998881816864,
-0.17591312527656555,
-0.20301124453544617,
0.12388437241315842,
-0.2936118543148041,
-0.20680329203605652,
0.06001753732562065,
0.0018411919008940458,
-0.23860682547092438,
-0.631252110004425,
-0.1454913467168808,
0.06457342207431793,
-0.0627528503537178,
0.01722685433924198,
-0.11647100001573563,
-0.25091877579689026,
-0.34615013003349304,
-0.22397887706756592,
-0.21178507804870605,
-0.4119904935359955,
-0.27139532566070557,
0.35823193192481995,
-0.38604941964149475,
-0.10140544176101685,
0.22872020304203033,
0.1626436561346054,
0.3069645166397095,
-0.32319870591163635,
-0.2430465817451477,
-0.31070876121520996,
-0.22738409042358398,
-0.13207699358463287,
0.20302575826644897,
0.06387322396039963,
0.08107419312000275,
0.5975699424743652,
-0.14938004314899445,
0.34342002868652344,
-0.3206498920917511,
-0.641149640083313,
0.17122618854045868,
-0.23361140489578247,
0.32559946179389954,
0.2272585928440094,
-0.13975274562835693,
0.1338929682970047,
-0.0364699624478817,
0.19304876029491425,
-0.37369832396507263,
-0.19943013787269592,
-0.1343020349740982,
-0.16909880936145782,
0.013068786822259426,
-0.1824684888124466,
-0.4047195017337799,
-0.4013572931289673,
-0.31035560369491577,
0.34011733531951904,
-0.13551995158195496,
-0.10335570573806763,
0.062494441866874695,
-0.11445024609565735,
0.4457513689994812,
-0.16513240337371826,
0.03837927430868149,
-0.33904150128364563,
-0.31505197286605835,
0.04201226681470871,
-0.313029944896698,
-0.2071702629327774,
-0.13089290261268616,
-0.08322717249393463,
0.19376008212566376,
-0.10428427904844284,
-0.2162322998046875,
-0.2951599657535553,
-0.20802180469036102,
0.30435919761657715,
0.24366337060928345,
0.26036137342453003,
0.2636742889881134,
-0.0056839995086193085,
-0.15367238223552704,
-0.181616872549057,
-0.10339543968439102,
0.11066924780607224,
0.18363866209983826,
-0.14275872707366943,
-0.04620729014277458,
0.25885674357414246,
0.03581136465072632,
0.31676286458969116,
-0.13139708340168,
-0.061977121978998184,
0.4659325182437897,
-0.15487979352474213,
0.4611416161060333,
-0.21926121413707733,
-0.17566506564617157,
0.2025177925825119,
-0.046468161046504974,
0.3559705913066864,
0.1662425845861435,
0.05935825780034065,
-0.193975567817688,
-0.008126647211611271,
0.07994890958070755,
-0.06538716703653336,
-0.024502569809556007,
0.04980406165122986,
-0.23008237779140472,
-0.021022984758019447,
-0.16305984556674957,
-0.369771808385849,
-0.10725484043359756,
0.0006040479056537151,
0.252292662858963,
0.08146583288908005,
-0.17055156826972961,
-0.02078746259212494,
-0.5745235681533813,
0.031124873086810112,
-0.34254777431488037,
0.4614945352077484,
0.24034617841243744,
0.04982181265950203,
-0.3317686915397644,
-0.07880368828773499,
0.01676120236515999,
-0.014697286300361156,
0.34019067883491516,
-0.7034699320793152,
-0.3920474946498871,
0.12457140535116196,
-0.17344693839550018,
-0.16933511197566986,
0.13263875246047974,
-0.47789841890335083,
0.010844187811017036,
0.28677529096603394,
0.18829692900180817,
-0.29539671540260315,
-0.07901205122470856,
0.1735621839761734,
0.24495191872119904,
0.007372856140136719,
0.14499475061893463,
-0.08718878775835037,
-0.27669060230255127,
-0.32225897908210754,
0.150188609957695,
-0.11723083257675171,
0.03696650639176369,
0.509361982345581,
-0.1349497139453888,
-0.12909716367721558,
0.00913195125758648,
0.18531690537929535,
0.31247952580451965,
-0.20477139949798584,
0.23542280495166779,
-0.10298550873994827,
0.04581959545612335,
0.03437814861536026,
-0.10465943813323975,
0.24963517487049103,
-0.26024430990219116,
-0.10873734951019287,
0.04724285379052162,
-0.22573015093803406,
0.4998913109302521,
0.06350231915712357,
0.2434423565864563,
0.3960297703742981,
-0.18160203099250793,
-0.10337703675031662,
-0.4619443416595459,
0.4287552237510681,
0.20306871831417084,
0.5127573609352112,
-0.35439345240592957,
-0.28243422508239746,
0.1989818811416626,
0.14943526685237885,
-0.14077776670455933,
0.5283774733543396,
0.22363817691802979,
-0.34524551033973694,
0.07497497648000717,
-0.017657244578003883,
0.8527344465255737,
-0.2429269254207611,
0.10530468076467514,
0.03472286835312843,
-0.19814108312129974,
0.3081981837749481,
-0.3240329921245575,
-0.07298848778009415,
-0.22270236909389496,
-0.32672199606895447,
-0.16454069316387177,
0.005866254214197397,
0.3721565008163452,
0.0501752607524395,
-0.32084769010543823,
0.060489457100629807,
0.21802793443202972,
0.10490110516548157,
-0.08448883146047592,
0.36197778582572937,
-0.20685216784477234,
-0.2756366431713104,
-0.19696570932865143,
0.24790610373020172,
0.09912414103746414,
-0.07375051081180573,
-0.09984471648931503,
-0.028015293180942535,
0.09229037165641785,
-0.016118424013257027,
-0.3070303797721863,
-0.09460078924894333,
-0.2411382645368576,
0.07304977625608444,
0.05793515592813492,
-0.15694251656532288,
0.09940865635871887,
0.06791393458843231,
0.3513989746570587,
0.19981953501701355,
0.005829048343002796,
0.19084304571151733,
-0.13997061550617218,
0.10017343610525131,
0.1871098279953003,
-0.08803491294384003,
0.3409438729286194,
-0.007342835888266563,
-0.2477329671382904,
0.28068700432777405,
0.05675986036658287,
-0.18379351496696472,
-0.29041817784309387,
0.0760117918252945,
-0.22161847352981567,
-0.040139198303222656,
-0.0003999138134531677,
0.22312745451927185,
0.18624083697795868,
-0.38499897718429565,
0.16870878636837006,
0.2530958950519562,
-0.20874318480491638,
-0.02682630717754364,
-0.06506200134754181,
-0.24868722259998322,
-0.36318567395210266,
-0.029636481776833534,
-0.17576192319393158,
0.03556149825453758,
-0.03540008142590523,
0.14231328666210175,
-0.06277772039175034,
-0.34548187255859375,
0.2907414734363556,
0.6144680380821228,
-0.39889830350875854,
-0.02563931606709957,
-0.02185904048383236,
-0.5254498720169067,
-0.1252252608537674,
0.13111905753612518,
0.2892461121082306,
0.06518875062465668,
-0.0017304450739175081,
-0.16533075273036957,
-0.1337575912475586,
0.09641987830400467,
0.20265518128871918,
0.42147183418273926,
0.12949666380882263,
-0.11544713377952576,
0.09596339613199234,
0.33988651633262634,
-0.4340873658657074,
-0.008587709628045559,
-0.16180849075317383,
0.018808409571647644,
0.1833840310573578,
0.08828280121088028,
0.337958425283432,
0.09834381937980652,
0.21304979920387268,
-0.11758467555046082,
-0.12084288150072098,
-0.22333356738090515,
-0.25792646408081055,
0.07171134650707245,
-0.23701365292072296,
0.18916378915309906,
0.31067582964897156,
0.06773941218852997,
0.14086394011974335,
-0.24220730364322662,
0.3841651976108551,
-0.07482467591762543,
-0.10348775237798691,
0.19999553263187408,
0.0842389315366745,
-0.12297248840332031,
0.20880602300167084,
0.03439585119485855,
0.08245565742254257,
0.09292856603860855,
0.12138336151838303,
0.0487043634057045,
0.014939744025468826,
-0.18427890539169312,
0.31177613139152527,
0.4180961847305298,
0.3014649450778961,
-0.16114725172519684,
-0.14283107221126556,
0.18355411291122437,
0.10571878403425217,
0.2218560129404068,
0.37767842411994934,
-0.06375527381896973,
-0.17478018999099731,
0.23755256831645966,
0.28529906272888184,
0.2506442368030548,
-0.2058856189250946,
-0.23434871435165405,
0.43674057722091675,
-0.07437639683485031,
0.43979835510253906,
0.39354974031448364,
0.4036581218242645,
0.34377962350845337,
0.4054279029369354,
-0.3494436740875244,
0.04475761950016022,
-0.0479862317442894,
0.2133394479751587,
0.11636333912611008,
-0.15038327872753143,
-0.03578786924481392,
0.2522682249546051,
0.2084738165140152,
0.099271759390831,
0.21404162049293518,
-0.028727222234010696,
0.39639538526535034,
0.1795140653848648,
0.2958676517009735,
0.24430499970912933,
-0.05526238679885864,
0.19208253920078278,
0.017348773777484894,
0.09541801363229752,
0.274286687374115,
0.12179706245660782,
0.5185921788215637,
-0.26486337184906006,
-0.07794124633073807,
-0.07245787233114243,
0.25389644503593445,
-0.058227650821208954,
-0.2553243041038513,
0.2280026078224182,
-0.08309420198202133,
-0.23532475531101227,
-0.013418036513030529,
0.1339758187532425,
-0.20056362450122833,
0.1956751048564911,
-0.03185339272022247,
0.33307525515556335,
-0.20712272822856903,
0.2693575918674469,
-0.06906841695308685,
-0.05695882439613342,
-0.1648179143667221,
0.34277141094207764,
-0.008613944053649902,
-0.07571277767419815,
-0.011638077907264233,
0.3626714050769806,
0.12087801843881607,
-0.213768869638443,
-0.06569946557283401,
0.4346238374710083,
-0.35579177737236023,
0.06749743223190308,
-0.010875058360397816,
0.2708675265312195,
0.07386746257543564,
0.32664188742637634,
0.3112008273601532,
0.19241057336330414,
-0.17105203866958618,
-0.07745228707790375,
0.060559071600437164,
-0.20260071754455566,
-0.24280159175395966,
0.11214117705821991,
-0.11976845562458038,
0.09637180715799332,
-0.4614648222923279,
0.1329248994588852,
-0.45212802290916443,
-0.043264247477054596,
0.3228737413883209,
-0.27127233147621155,
-0.05900103598833084,
-0.009745256043970585,
0.13919684290885925,
0.08508899807929993,
0.36178058385849,
0.2722502648830414,
0.35469308495521545,
0.10406345874071121,
-0.3671026825904846,
-0.5847012996673584,
0.08541953563690186,
0.1345130056142807,
-0.21981866657733917,
-0.2222934514284134,
0.009150438010692596,
0.44719433784484863,
0.008729261346161366,
0.06665205210447311,
0.13007855415344238,
0.11907367408275604,
-0.24918608367443085,
-0.3235989809036255,
0.17062339186668396,
0.04052272066473961,
0.1078920066356659,
0.11240550130605698,
0.05853797867894173,
-0.1096150353550911,
0.09415289759635925,
0.07359641045331955,
-0.259796142578125,
0.05474431440234184,
-0.151144340634346,
-0.2828807234764099,
0.4270501434803009,
-0.003816817421466112,
0.4883860647678375,
-0.30710357427597046,
0.03924700245261192,
-0.12489952892065048,
-0.2984393537044525,
-0.21237123012542725,
0.31698647141456604,
-0.008467569015920162,
0.1640874147415161,
-0.06825189292430878,
-0.3227049708366394,
-0.08105246722698212,
0.30336278676986694,
0.18099570274353027,
0.2069414108991623,
-0.15808960795402527,
0.1864398717880249,
-0.059823378920555115,
-0.22872847318649292,
0.19900856912136078,
0.3820849359035492,
0.03453337028622627,
0.02334935963153839,
0.21876220405101776,
-0.22976070642471313,
0.05601402744650841,
0.027090996503829956,
-0.09254788607358932,
0.031327616423368454,
0.00930644292384386,
0.22449316084384918,
-0.06943561881780624,
-0.49967989325523376,
0.07417052984237671,
0.3074285686016083,
0.19639861583709717,
-0.15263600647449493,
0.2977273464202881,
0.06196127086877823,
-0.10637415945529938,
-0.09952229261398315,
0.03011886030435562,
0.27391982078552246,
-0.09409591555595398,
0.1999080926179886,
-0.3941318690776825
] |
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.14622603356838226,
-0.176112562417984,
-0.09057210385799408,
0.012352371588349342,
-0.024126209318637848,
-0.17038287222385406,
0.4644279479980469,
0.2293003797531128,
0.006415010429918766,
0.18978436291217804,
-0.07842165976762772,
-0.012320408597588539,
0.06371507793664932,
0.31735849380493164,
0.33935555815696716,
-0.14736506342887878,
0.0648738294839859,
-0.1207684576511383,
0.1857903152704239,
-0.14102371037006378,
-0.19708505272865295,
0.16467610001564026,
0.14167851209640503,
0.2563769817352295,
-0.3061520457267761,
-0.2510169744491577,
-0.12123849242925644,
0.12312640994787216,
-0.05332810804247856,
-0.2636438310146332,
-0.132772296667099,
0.09949491918087006,
-0.14832079410552979,
0.15507832169532776,
-0.000098432858067099,
-0.1763020008802414,
0.15707336366176605,
-0.16627924144268036,
0.32598572969436646,
0.03694182261824608,
-0.35407543182373047,
-0.49252790212631226,
-0.21665363013744354,
-0.2867814004421234,
-0.0726134330034256,
0.07496688514947891,
0.020312733948230743,
-0.43250155448913574,
0.029253210872411728,
0.05130590498447418,
0.2826533317565918,
-0.04859481379389763,
-0.1415349692106247,
-0.08164146542549133,
0.29335859417915344,
-0.2213202565908432,
-0.17845706641674042,
0.0020786686800420284,
0.5535985827445984,
0.23624740540981293,
-0.10214975476264954,
0.37901824712753296,
0.0996621698141098,
-0.17412754893302917,
-0.08461645990610123,
0.046237412840127945,
-0.05096682906150818,
-0.34325090050697327,
-0.0554945133626461,
0.6024345755577087,
0.013622269034385681,
-0.26531293988227844,
-0.1561044156551361,
-0.20165765285491943,
0.09429655969142914,
-0.21330896019935608,
0.35481008887290955,
0.1433294117450714,
0.19543977081775665,
-0.033373452723026276,
0.3138548731803894,
-0.4838634729385376,
0.044125743210315704,
0.060895126312971115,
0.03013884834945202,
0.6080765128135681,
-0.08156105875968933,
0.2101176381111145,
0.08181875944137573,
-0.004406427964568138,
0.05560784041881561,
0.018104422837495804,
-0.1166888177394867,
-0.1805524230003357,
-0.27819398045539856,
0.0348440557718277,
-0.1338137537240982,
0.03850221261382103,
0.15135164558887482,
-0.09150958061218262,
-0.10494628548622131,
0.17730367183685303,
0.10335621982812881,
0.16401229798793793,
-0.07408223301172256,
0.0739106833934784,
0.35563895106315613,
-0.1418626308441162,
0.33842068910598755,
-0.3893526494503021,
0.03084353171288967,
0.06827269494533539,
0.03021061234176159,
-0.1210901290178299,
-0.3905890882015228,
-0.048487503081560135,
-0.27254340052604675,
-0.013391257263720036,
-0.09458047896623611,
0.05002230778336525,
-0.08578050136566162,
-0.20248250663280487,
0.18057477474212646,
0.10182265937328339,
0.054537881165742874,
-0.0015536326682195067,
-0.2859126329421997,
0.25332963466644287,
-0.09773268550634384,
-0.33524608612060547,
-0.15527324378490448,
0.36969807744026184,
-0.40244582295417786,
0.08873514086008072,
-0.09241777658462524,
0.08223868161439896,
0.06409887969493866,
0.18785318732261658,
-0.010243881493806839,
-0.042523372918367386,
0.20502299070358276,
-0.053944677114486694,
-0.0014983027940616012,
-0.03435087203979492,
0.026942498981952667,
0.01310177706182003,
-0.03300252929329872,
-0.16503256559371948,
-0.4244990050792694,
-0.21599210798740387,
-0.2676061689853668,
-0.151564359664917,
-0.1938273161649704,
0.2565615475177765,
-0.06618789583444595,
-0.12592613697052002,
0.30191072821617126,
0.6030244827270508,
0.06581587344408035,
-0.005550900939851999,
0.23082846403121948,
0.04618636891245842,
0.03593704476952553,
-0.3438423275947571,
-0.026594987139105797,
0.1573948860168457,
-0.5607887506484985,
-0.2898285686969757,
0.005052153021097183,
-0.21770745515823364,
0.21662963926792145,
0.10005781054496765,
-0.19180959463119507,
-0.2419532984495163,
-0.1731528490781784,
0.49725592136383057,
0.47367939352989197,
-0.2406947761774063,
0.0017587747424840927,
0.13953794538974762,
-0.22635960578918457,
-0.22334283590316772,
0.35145384073257446,
0.1564730852842331,
0.14046798646450043,
-0.006743428763002157,
-0.09910599142313004,
0.3637702465057373,
-0.23892104625701904,
-0.1682416796684265,
-0.1799539029598236,
-0.3024234175682068,
0.01409317646175623,
0.22031737864017487,
-0.006640331353992224,
-0.4272896647453308,
0.1903279572725296,
-0.09316068887710571,
0.09256765991449356,
-0.14612604677677155,
0.1340756118297577,
0.15123596787452698,
0.20071151852607727,
0.07839979231357574,
-0.16712237894535065,
0.04912254214286804,
-0.28864777088165283,
0.08498305082321167,
-0.19022758305072784,
0.24735361337661743,
0.3146640956401825,
-0.1260804384946823,
0.1242842748761177,
-0.41209498047828674,
-0.30771103501319885,
-0.2251725047826767,
0.2467680722475052,
0.3807682693004608,
-0.005875708069652319,
0.07025298476219177,
-0.3039511442184448,
0.42164885997772217,
-0.07482874393463135,
0.03738073259592056,
-0.3291958272457123,
-0.00682250689715147,
-0.032098282128572464,
-0.14389589428901672,
-0.1064082607626915,
0.23753932118415833,
-0.13568337261676788,
-0.39203378558158875,
0.05259387195110321,
0.4568069875240326,
0.08671960979700089,
0.059547945857048035,
0.26699817180633545,
0.18237575888633728,
0.3151247501373291,
0.030657140538096428,
0.41223523020744324,
-0.32385993003845215,
-0.19639723002910614,
-0.21013402938842773,
0.21655277907848358,
0.4376227557659149,
0.17357467114925385,
-0.004603774752467871,
-0.097739078104496,
0.03909123316407204,
0.2721162438392639,
-0.1845209002494812,
-0.16717030107975006,
-0.269398957490921,
0.13535931706428528,
0.033449672162532806,
0.4870145618915558,
0.11210151016712189,
-0.5374769568443298,
0.03725083917379379,
0.7857861518859863,
-0.059236545115709305,
0.21844282746315002,
-0.07846865803003311,
0.1287996470928192,
0.04276992753148079,
0.10048641264438629,
0.49576571583747864,
0.10812928527593613,
0.2882471978664398,
0.021690253168344498,
-0.15426909923553467,
-0.2354770004749298,
-0.2799210548400879,
0.09787685424089432,
-0.12894585728645325,
0.007364773657172918,
-0.0057401699014008045,
-0.2545628845691681,
-0.2525956928730011,
-0.39499223232269287,
-0.19501669704914093,
0.18495474755764008,
-0.1311199963092804,
0.11200392246246338,
-0.13086804747581482,
-0.14188799262046814,
-0.3241768181324005,
-0.384647011756897,
-0.21202543377876282,
-0.6176679134368896,
-0.2648650109767914,
0.2558194696903229,
-0.65833979845047,
-0.12734803557395935,
0.3772861063480377,
0.03954054415225983,
0.07172629237174988,
-0.3906759023666382,
-0.30152106285095215,
-0.043755903840065,
-0.07207934558391571,
-0.4109978973865509,
0.17101739346981049,
0.1405232548713684,
0.025038069114089012,
0.4922408163547516,
-0.07939135283231735,
0.185551717877388,
-0.07450117915868759,
-0.5724855661392212,
0.2775669991970062,
-0.403621643781662,
0.09774850308895111,
0.1708715558052063,
-0.3082915246486664,
0.08789077401161194,
-0.34939438104629517,
0.33903762698173523,
-0.11684911698102951,
0.13877829909324646,
-0.09104274213314056,
0.0008444981067441404,
-0.1255900263786316,
-0.0018689731368795037,
-0.6168110966682434,
-0.5302241444587708,
-0.3577505648136139,
0.06491697579622269,
-0.21525996923446655,
0.05305732786655426,
0.01405680738389492,
-0.20099638402462006,
0.2050779014825821,
-0.2021888643503189,
-0.07350417226552963,
-0.1877882033586502,
-0.30852460861206055,
0.03908603638410568,
-0.17999732494354248,
-0.11003441363573074,
0.020962301641702652,
0.03516538068652153,
0.4360460937023163,
-0.0134437782689929,
-0.18643544614315033,
0.09742787480354309,
-0.1578872799873352,
0.29000216722488403,
0.4185093939304352,
0.2342798411846161,
0.1832296997308731,
0.18104048073291779,
-0.14448514580726624,
-0.08404786884784698,
-0.12661027908325195,
0.24061591923236847,
0.13798651099205017,
0.24613696336746216,
0.12858352065086365,
0.1883568912744522,
-0.029393060132861137,
0.25684207677841187,
-0.0068725040182471275,
0.10524848848581314,
0.41777580976486206,
0.0217575840651989,
0.19730743765830994,
-0.2238931804895401,
-0.278310626745224,
0.4182809293270111,
-0.020143887028098106,
0.1917504221200943,
0.24930380284786224,
0.03668654337525368,
-0.30294251441955566,
-0.20260921120643616,
0.17933040857315063,
0.058909106999635696,
-0.27739500999450684,
0.11015698313713074,
0.036485157907009125,
0.08893252909183502,
-0.12287290394306183,
-0.2811180651187897,
-0.04124949127435684,
0.008971333503723145,
0.21302366256713867,
0.12497119605541229,
-0.3043186068534851,
0.0758679062128067,
-0.5326246023178101,
0.07252181321382523,
-0.2875140905380249,
0.20765845477581024,
0.18310610949993134,
0.1627008318901062,
-0.19513383507728577,
-0.11843231320381165,
-0.02124149352312088,
0.14031235873699188,
0.21809253096580505,
-0.6130016446113586,
-0.47004517912864685,
0.2924257814884186,
0.022241821512579918,
0.03174498304724693,
0.06765821576118469,
-0.3907163441181183,
-0.17429180443286896,
0.6021935343742371,
0.14231564104557037,
-0.32991862297058105,
-0.2401297390460968,
0.21976572275161743,
0.27767860889434814,
-0.009586699306964874,
0.08510451018810272,
-0.13988430798053741,
-0.1039840579032898,
-0.18549621105194092,
0.021237840875983238,
-0.16547775268554688,
-0.03536209464073181,
0.41666388511657715,
-0.10968676209449768,
0.029071617871522903,
-0.347470223903656,
0.24177715182304382,
0.2491854578256607,
-0.10181644558906555,
-0.0015166422817856073,
-0.09988600015640259,
-0.032559484243392944,
0.14372149109840393,
-0.16472871601581573,
0.22119365632534027,
-0.3730173707008362,
-0.04130938649177551,
0.16067543625831604,
-0.41288769245147705,
0.4341967701911926,
0.21456781029701233,
0.17740073800086975,
0.2229926437139511,
-0.31405946612358093,
0.09709905833005905,
-0.01333149615675211,
0.2715950012207031,
0.193547323346138,
0.32521525025367737,
-0.45242366194725037,
-0.4648647904396057,
0.2338782101869583,
0.27492648363113403,
-0.18792571127414703,
0.555105984210968,
0.2615847587585449,
-0.30702558159828186,
0.01850713975727558,
0.08716161549091339,
1.013093113899231,
-0.06652703881263733,
-0.032099947333335876,
0.12405656278133392,
-0.1468684822320938,
0.28703880310058594,
-0.346581369638443,
0.004414484370499849,
-0.21217742562294006,
-0.11682956665754318,
-0.007645757868885994,
0.0637093335390091,
0.42631959915161133,
0.18288637697696686,
-0.29880422353744507,
0.2446148693561554,
0.18775755167007446,
-0.13895979523658752,
-0.3435714542865753,
0.49029403924942017,
-0.21283483505249023,
-0.4288298487663269,
-0.0554879829287529,
0.19699665904045105,
0.042499542236328125,
-0.11958922445774078,
0.0172147024422884,
-0.0604139044880867,
-0.04239208623766899,
0.0951639711856842,
-0.11265500634908676,
-0.05689505487680435,
-0.19164717197418213,
0.15188342332839966,
-0.19913406670093536,
-0.20509646832942963,
0.10813087970018387,
-0.10303617268800735,
0.2312948852777481,
0.037798162549734116,
0.17686410248279572,
0.2509278953075409,
0.16628694534301758,
-0.029080279171466827,
0.14917559921741486,
-0.18868333101272583,
0.310835599899292,
-0.07432348281145096,
-0.2626558542251587,
0.14296552538871765,
0.015347551554441452,
-0.057544026523828506,
-0.4738849103450775,
0.09953927993774414,
0.015434258617460728,
-0.18692149221897125,
0.06468924134969711,
0.3470923602581024,
0.10429205745458603,
-0.20168828964233398,
0.2212807685136795,
0.13423281908035278,
-0.10666303336620331,
0.18015703558921814,
-0.20580486953258514,
-0.2673110067844391,
-0.44081100821495056,
-0.24744325876235962,
0.15262770652770996,
0.07416587322950363,
-0.1696615368127823,
0.11266161501407623,
-0.04823307693004608,
-0.24797889590263367,
0.3831704258918762,
0.461003839969635,
-0.2728412449359894,
-0.2808832824230194,
-0.02609275095164776,
-0.6038402915000916,
-0.012813628651201725,
0.03974331170320511,
0.39655980467796326,
0.26520586013793945,
0.13074949383735657,
-0.0010358972940593958,
-0.1320713758468628,
0.13473142683506012,
0.16676607728004456,
0.21311534941196442,
-0.08429010212421417,
0.08177850395441055,
0.14802782237529755,
0.1975754201412201,
-0.4271972179412842,
-0.12035904079675674,
-0.1311846524477005,
0.0853152871131897,
0.061526618897914886,
-0.005532149691134691,
0.23687951266765594,
0.27380284667015076,
0.24821683764457703,
-0.20099212229251862,
-0.1902613788843155,
-0.1815943866968155,
-0.21097825467586517,
0.035168521106243134,
-0.06120242550969124,
0.06912799924612045,
0.1474352329969406,
-0.12652191519737244,
0.06973925232887268,
-0.020330173894762993,
0.3101063072681427,
-0.040660712867975235,
-0.02126932702958584,
0.22123491764068604,
-0.03682835027575493,
-0.23692433536052704,
0.23706190288066864,
0.13902539014816284,
0.07582388073205948,
0.2203000783920288,
0.20952022075653076,
0.1347358375787735,
-0.002980549121275544,
-0.21446678042411804,
0.11951905488967896,
0.3670909106731415,
0.038465920835733414,
0.06678005307912827,
-0.30340009927749634,
0.0576506070792675,
0.2281791865825653,
0.2372744083404541,
0.1905229389667511,
0.34597548842430115,
-0.08796578645706177,
-0.05742054805159569,
0.33255308866500854,
0.34278419613838196,
-0.1529007852077484,
-0.2157163918018341,
0.22662565112113953,
0.10651063174009323,
0.4202783405780792,
0.5838719606399536,
0.43509963154792786,
0.2854178547859192,
0.2471589595079422,
-0.2668682336807251,
0.19884201884269714,
-0.16362608969211578,
0.13491058349609375,
0.20166124403476715,
-0.2208581566810608,
0.06754116714000702,
0.5029209852218628,
0.15424741804599762,
0.0893118605017662,
0.30302056670188904,
0.0422179251909256,
0.3530854284763336,
0.4188143312931061,
0.4055214822292328,
0.19721932709217072,
0.03517588600516319,
0.04030275717377663,
0.1591707170009613,
-0.12905076146125793,
0.10925868898630142,
0.018138462677598,
0.301096647977829,
-0.20826569199562073,
-0.21384790539741516,
0.07545434683561325,
0.22795474529266357,
-0.12402328848838806,
-0.08427320420742035,
0.05443676933646202,
-0.102756068110466,
-0.3516118824481964,
0.05168494954705238,
0.09911062568426132,
-0.037765324115753174,
0.24531221389770508,
0.21755631268024445,
0.16787922382354736,
-0.11354867368936539,
0.2204888015985489,
-0.06615414470434189,
0.08342120796442032,
-0.2337680608034134,
0.3854667842388153,
0.0023046527057886124,
-0.08192246407270432,
-0.0665491595864296,
0.1008758693933487,
0.06612161546945572,
-0.0585436075925827,
0.02524079568684101,
0.18253521621227264,
0.032314132899045944,
0.02400924637913704,
-0.0823514312505722,
0.16254539787769318,
0.18549831211566925,
0.4028438329696655,
0.3717901110649109,
0.18482108414173126,
-0.23660139739513397,
-0.19637306034564972,
0.11039888113737106,
-0.13335488736629486,
-0.08768031001091003,
0.1387680619955063,
-0.06740887463092804,
-0.0267453845590353,
-0.372415155172348,
0.023627715185284615,
-0.6408740878105164,
0.09072379022836685,
0.3472357392311096,
-0.24989038705825806,
-0.036374934017658234,
-0.10813086479902267,
0.1391492336988449,
0.020590677857398987,
0.290462464094162,
-0.205485999584198,
0.16052594780921936,
-0.15134035050868988,
-0.3798654079437256,
-0.36296674609184265,
0.068690724670887,
-0.07411480695009232,
-0.23741862177848816,
-0.30085110664367676,
0.14995162189006805,
0.20868949592113495,
-0.043090734630823135,
-0.021347438916563988,
0.16856367886066437,
0.1100890263915062,
-0.07553637027740479,
-0.3630598485469818,
0.1835392266511917,
0.09677177667617798,
0.316769540309906,
0.18442188203334808,
-0.054871924221515656,
0.0051204790361225605,
0.13950450718402863,
0.05820285901427269,
-0.20791363716125488,
-0.15733420848846436,
0.3688472509384155,
-0.0546831339597702,
0.3100125789642334,
0.14304997026920319,
0.34139713644981384,
-0.19516490399837494,
-0.0823979377746582,
-0.2316160500049591,
-0.22186893224716187,
-0.33232998847961426,
0.2775372862815857,
0.1269994080066681,
0.1420239359140396,
-0.028028026223182678,
-0.07764044404029846,
-0.2772825360298157,
0.41860345005989075,
0.09825959801673889,
0.374347060918808,
-0.02654249779880047,
0.3107001781463623,
0.27395251393318176,
-0.09547649323940277,
0.16576775908470154,
0.5336941480636597,
0.1344621479511261,
0.0001992886100197211,
0.0348065011203289,
-0.2444983422756195,
0.006615390535444021,
0.3034052848815918,
-0.061924535781145096,
0.03523321822285652,
0.12157214432954788,
0.30061253905296326,
0.14632005989551544,
-0.4625609517097473,
-0.08490259945392609,
0.24680472910404205,
0.05228773131966591,
-0.3042318820953369,
0.11249995976686478,
0.22040392458438873,
-0.3317739963531494,
0.0073494440875947475,
-0.1698824018239975,
0.2085607796907425,
-0.31667351722717285,
0.2862686812877655,
-0.05989549681544304
] |
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.20009174942970276,
-0.15228088200092316,
-0.10690835118293762,
-0.11235274374485016,
-0.07928185909986496,
-0.2000015377998352,
0.5592646598815918,
0.16035179793834686,
0.129795640707016,
0.19726742804050446,
-0.04726757854223251,
0.054989997297525406,
0.004843979608267546,
0.30742347240448,
0.30049899220466614,
-0.23597635328769684,
0.061792802065610886,
-0.03281239792704582,
0.10703930258750916,
-0.07688207179307938,
-0.1448187381029129,
0.11872486770153046,
0.15010380744934082,
0.0642678439617157,
-0.2914265990257263,
-0.314003586769104,
-0.2087099701166153,
0.11646714806556702,
-0.04173598065972328,
-0.28663262724876404,
-0.18313923478126526,
0.21814732253551483,
-0.1481359899044037,
0.046078652143478394,
-0.0000994876681943424,
-0.16746146976947784,
0.11768519878387451,
-0.17547200620174408,
0.22680963575839996,
-0.05548308044672012,
-0.42768266797065735,
-0.5850605964660645,
-0.1877814680337906,
-0.17275191843509674,
-0.0764961987733841,
0.07475333660840988,
0.1615251898765564,
-0.3223181366920471,
0.16218602657318115,
-0.016851341351866722,
0.24862194061279297,
-0.035681139677762985,
0.015853479504585266,
-0.09339753538370132,
0.29211869835853577,
-0.12582477927207947,
-0.1625911295413971,
0.11113648861646652,
0.5344113111495972,
0.04216992110013962,
-0.11674089729785919,
0.24621416628360748,
0.07717987149953842,
-0.16175121068954468,
-0.26936104893684387,
-0.06776918470859528,
-0.06969308853149414,
-0.25934210419654846,
-0.09778820723295212,
0.6707049608230591,
0.0018183072097599506,
-0.2552488446235657,
-0.2341093271970749,
-0.2518293559551239,
0.14292441308498383,
-0.11987225711345673,
0.22607114911079407,
0.24380628764629364,
0.04401051253080368,
0.0016488563269376755,
0.31623658537864685,
-0.4904378354549408,
-0.003579856129363179,
0.2545974850654602,
0.1498422771692276,
0.44814395904541016,
0.008351385593414307,
0.0914846733212471,
0.18147678673267365,
-0.02919980324804783,
-0.15291297435760498,
0.12954695522785187,
-0.08141845464706421,
-0.1340005248785019,
-0.31941530108451843,
-0.019297439604997635,
-0.06644649803638458,
-0.0460376963019371,
0.19715657830238342,
-0.11932593584060669,
-0.08151295781135559,
0.2506906986236572,
-0.12151368707418442,
0.2826826274394989,
-0.03582264482975006,
0.02539498545229435,
0.24863865971565247,
-0.10625408589839935,
0.3533795177936554,
-0.26281246542930603,
0.04645467549562454,
0.08208435028791428,
-0.02146979421377182,
-0.1186312884092331,
-0.4098238945007324,
0.004132440313696861,
-0.2621772885322571,
0.0790795236825943,
-0.1390136480331421,
-0.07212278991937637,
-0.10610555112361908,
-0.06944481283426285,
0.06073728948831558,
0.09991512447595596,
0.13492979109287262,
-0.03809820115566254,
-0.2698521018028259,
0.30255791544914246,
-0.10853835940361023,
-0.31796956062316895,
-0.08520464599132538,
0.3406927287578583,
-0.3904682993888855,
0.2825714945793152,
-0.0011109886690974236,
0.10715741664171219,
0.03060043230652809,
0.2661168873310089,
-0.26168322563171387,
-0.009220616891980171,
0.24319228529930115,
-0.02552538737654686,
0.11164486408233643,
-0.086061030626297,
0.04451151192188263,
-0.08059052377939224,
-0.1204366385936737,
-0.3179934024810791,
-0.44740694761276245,
-0.13310034573078156,
-0.1393803358078003,
-0.04743194580078125,
-0.5369638204574585,
0.23197054862976074,
-0.13469703495502472,
-0.24243271350860596,
0.3213672637939453,
0.7025794982910156,
0.10547405481338501,
-0.1079336553812027,
0.30254149436950684,
0.07732339203357697,
0.08560888469219208,
-0.2831873297691345,
-0.08544590324163437,
0.2961883544921875,
-0.5839101672172546,
-0.36712875962257385,
-0.04230840876698494,
-0.14287184178829193,
0.18521080911159515,
0.2240876704454422,
-0.093992680311203,
-0.24085837602615356,
-0.09050193428993225,
0.578830897808075,
0.2949940264225006,
-0.08002537488937378,
-0.043766822665929794,
0.04837296903133392,
-0.21292604506015778,
-0.22951191663742065,
0.4102591276168823,
0.21934790909290314,
0.15228228271007538,
-0.102838896214962,
-0.10263198614120483,
0.5329890847206116,
-0.19973371922969818,
-0.19203141331672668,
-0.26875802874565125,
-0.3714085817337036,
-0.06696005910634995,
0.2908559739589691,
-0.11081034690141678,
-0.4445996582508087,
0.24997678399085999,
-0.1283310502767563,
0.03423767164349556,
-0.2165663093328476,
0.19712044298648834,
0.18663792312145233,
0.17336194217205048,
0.11980339139699936,
-0.1649480015039444,
-0.16067208349704742,
-0.2717195451259613,
-0.0421765074133873,
-0.14583426713943481,
0.31090760231018066,
0.11031057685613632,
-0.21751707792282104,
0.09180808812379837,
-0.3954274356365204,
-0.22883817553520203,
-0.05562011897563934,
0.24425473809242249,
0.33576956391334534,
-0.048551563173532486,
0.20464497804641724,
-0.26575136184692383,
0.37586089968681335,
0.0656333789229393,
0.04590265825390816,
-0.2742510139942169,
0.10877096652984619,
-0.023538192734122276,
-0.19345103204250336,
-0.04137149080634117,
0.41669952869415283,
-0.1104959025979042,
-0.27379485964775085,
0.19363725185394287,
0.4694652855396271,
-0.013342245481908321,
0.20946139097213745,
0.25454452633857727,
0.15694493055343628,
0.31647247076034546,
0.009772207587957382,
0.4155244529247284,
-0.3414928913116455,
-0.18775072693824768,
-0.18714164197444916,
0.16949248313903809,
0.3568231165409088,
0.2377643883228302,
-0.022244760766625404,
0.06058770418167114,
0.020041052252054214,
0.29591214656829834,
-0.24975290894508362,
-0.08914121985435486,
-0.347398042678833,
0.2146884948015213,
-0.12907004356384277,
0.3781505823135376,
0.0310075581073761,
-0.5096863508224487,
0.13208383321762085,
0.7999991178512573,
-0.03927481174468994,
0.5096139907836914,
-0.07442886382341385,
-0.022092264145612717,
-0.026701878756284714,
0.09243440628051758,
0.3850872814655304,
0.08288867026567459,
0.3525206744670868,
0.053756240755319595,
-0.23415464162826538,
-0.22678866982460022,
-0.36537623405456543,
0.15038293600082397,
-0.23059165477752686,
-0.0933857187628746,
0.11499357968568802,
-0.11724614351987839,
-0.25323328375816345,
-0.4707604646682739,
-0.19960306584835052,
0.07499827444553375,
-0.18939855694770813,
0.1460271179676056,
-0.18999198079109192,
-0.18765759468078613,
-0.4007492959499359,
-0.3989226520061493,
-0.3629320561885834,
-0.5685099959373474,
-0.26009896397590637,
0.35449302196502686,
-0.5420053601264954,
-0.19890277087688446,
0.413373202085495,
0.059200722724199295,
0.14929932355880737,
-0.4386817216873169,
-0.27919769287109375,
-0.06756050139665604,
-0.2322133183479309,
-0.30189791321754456,
0.18280372023582458,
0.15814675390720367,
-0.04709392786026001,
0.40904343128204346,
0.03357895836234093,
0.07189355045557022,
-0.07333924621343613,
-0.5325060486793518,
0.22972917556762695,
-0.24168391525745392,
0.09312932193279266,
0.192167267203331,
-0.28874632716178894,
0.18896649777889252,
-0.4706900417804718,
0.28685295581817627,
-0.01198382955044508,
0.09347140043973923,
-0.022206304594874382,
-0.06883024424314499,
-0.0162263922393322,
-0.1070673018693924,
-0.444710373878479,
-0.4915523827075958,
-0.4010547399520874,
0.15966522693634033,
-0.3207645118236542,
-0.011916116811335087,
0.09153138846158981,
-0.06130523607134819,
0.1787118911743164,
-0.1809258908033371,
-0.039853889495134354,
-0.21074895560741425,
-0.17768369615077972,
0.029690660536289215,
-0.24675783514976501,
-0.09750784188508987,
-0.0743633508682251,
-0.0030581948813050985,
0.25289246439933777,
0.027893418446183205,
-0.19531279802322388,
0.026653917506337166,
-0.20306169986724854,
0.1726287603378296,
0.3333503007888794,
0.23528026044368744,
0.24455590546131134,
0.1802091896533966,
-0.20394858717918396,
-0.03230883553624153,
-0.16158318519592285,
0.16444608569145203,
0.0807996392250061,
0.22332987189292908,
0.013159171678125858,
0.1674291491508484,
0.22132638096809387,
0.2721555829048157,
-0.0015123834600672126,
0.06540919095277786,
0.4926975667476654,
0.03368935361504555,
0.28526222705841064,
-0.19937428832054138,
-0.15224002301692963,
0.35917288064956665,
-0.06461545079946518,
0.18020139634609222,
0.1841142326593399,
0.053919438272714615,
-0.498117059469223,
-0.1273750513792038,
0.09453292191028595,
-0.1506452113389969,
-0.32482072710990906,
0.1541624218225479,
-0.04015794396400452,
0.1239834874868393,
-0.09516607969999313,
-0.34989842772483826,
0.0426204614341259,
-0.08969134837388992,
0.2541394531726837,
0.15581093728542328,
-0.2382899671792984,
-0.04086599498987198,
-0.5034111142158508,
-0.06545235961675644,
-0.28619202971458435,
0.35649991035461426,
0.20819337666034698,
0.26570460200309753,
-0.3406343460083008,
-0.18939508497714996,
-0.059517644345760345,
0.13417187333106995,
0.14757882058620453,
-0.7052648067474365,
-0.3108752965927124,
0.24828259646892548,
0.2551720142364502,
-0.03513595461845398,
0.1081281304359436,
-0.3380487263202667,
-0.05790708586573601,
0.4620373547077179,
0.1651182919740677,
-0.365999698638916,
-0.1376526951789856,
0.27160587906837463,
0.18945129215717316,
0.09140060096979141,
0.059588342905044556,
-0.02732827514410019,
-0.17172421514987946,
-0.14477066695690155,
0.05631794407963753,
-0.22244033217430115,
-0.026378272101283073,
0.43884894251823425,
-0.1601875275373459,
-0.014356174506247044,
-0.30336394906044006,
0.22346410155296326,
0.17606940865516663,
-0.17938391864299774,
0.040088459849357605,
-0.0872565358877182,
-0.031155254691839218,
-0.024403519928455353,
-0.04644808545708656,
0.2221957892179489,
-0.33243414759635925,
-0.044767025858163834,
0.11197822540998459,
-0.34137386083602905,
0.49180489778518677,
0.15274640917778015,
0.34425443410873413,
0.29256752133369446,
-0.1617777794599533,
0.05867217108607292,
-0.06449861824512482,
0.21314500272274017,
0.13820748031139374,
0.3538118600845337,
-0.504909873008728,
-0.32531145215034485,
0.23260606825351715,
0.34774118661880493,
-0.10576068609952927,
0.4562174379825592,
0.25305384397506714,
-0.3633551597595215,
0.2816961109638214,
0.004631520248949528,
0.9073783755302429,
-0.159237802028656,
0.06631890684366226,
-0.01317413616925478,
-0.20736128091812134,
0.4077249765396118,
-0.30716848373413086,
0.01266430877149105,
-0.23162685334682465,
-0.05250714346766472,
-0.031499795615673065,
0.11623500287532806,
0.3724498152732849,
0.2617294192314148,
-0.403190016746521,
0.12827695906162262,
0.10523151606321335,
-0.02973649650812149,
-0.24247342348098755,
0.49630123376846313,
-0.2735048830509186,
-0.4457586109638214,
-0.15574106574058533,
0.19230122864246368,
0.03872981294989586,
-0.2478259652853012,
0.0037272917106747627,
-0.1316080540418625,
0.07878899574279785,
0.10533083975315094,
-0.33443117141723633,
-0.024585584178566933,
-0.18353576958179474,
0.08381686359643936,
-0.18339647352695465,
-0.18160399794578552,
0.22969487309455872,
-0.15304234623908997,
0.14999160170555115,
-0.0009474091930314898,
0.18563522398471832,
0.18463873863220215,
0.06559042632579803,
-0.07689198106527328,
0.1543816328048706,
-0.15988391637802124,
0.42457205057144165,
-0.07691655308008194,
-0.19446732103824615,
0.1506229043006897,
0.15320293605327606,
-0.07311351597309113,
-0.5054068565368652,
0.1016768142580986,
0.014713373966515064,
-0.14132702350616455,
0.11821853369474411,
0.29226547479629517,
0.08730719238519669,
-0.20459695160388947,
0.20078186690807343,
0.19909150898456573,
-0.002795846201479435,
0.12311835587024689,
-0.17291949689388275,
-0.22943276166915894,
-0.3548344373703003,
-0.21418309211730957,
0.07170020043849945,
0.061923328787088394,
-0.1518593728542328,
0.09993802011013031,
-0.06212840974330902,
-0.3110246956348419,
0.2243017852306366,
0.32489141821861267,
-0.3135172426700592,
-0.20359522104263306,
-0.014953740872442722,
-0.5611591339111328,
-0.031638771295547485,
0.04894023761153221,
0.2902243435382843,
0.22769145667552948,
0.07142485678195953,
-0.20660808682441711,
0.027934232726693153,
0.27278345823287964,
0.002274575410410762,
0.3183095157146454,
-0.04891427606344223,
0.07690558582544327,
0.09724660217761993,
0.2931253910064697,
-0.4255700409412384,
-0.09186222404241562,
-0.09940885752439499,
0.06395679712295532,
-0.031047094613313675,
-0.05957714840769768,
0.22522105276584625,
0.18361245095729828,
0.26736557483673096,
-0.12631763517856598,
-0.11264162510633469,
-0.2048865109682083,
-0.2327120006084442,
0.04492764547467232,
-0.04559856280684471,
0.24476352334022522,
0.1332664042711258,
-0.1732303351163864,
0.10271074622869492,
-0.09810912609100342,
0.2340754121541977,
-0.006762580946087837,
-0.15626007318496704,
0.3492746949195862,
0.06580815464258194,
-0.030432263389229774,
0.22294077277183533,
0.07305929064750671,
0.15385112166404724,
0.19394589960575104,
0.23207513988018036,
0.1487443894147873,
-0.00795118696987629,
-0.07115225493907928,
0.2236984819173813,
0.40414366126060486,
0.25198855996131897,
0.03719721734523773,
-0.2712743580341339,
0.08430218696594238,
-0.021531028673052788,
0.07442513108253479,
0.26113346219062805,
0.280599981546402,
-0.07661611586809158,
-0.045005861669778824,
0.32525819540023804,
0.3334689438343048,
-0.12436844408512115,
-0.16319917142391205,
0.31829723715782166,
-0.01397569291293621,
0.4204302430152893,
0.4839688241481781,
0.4422835111618042,
0.17726092040538788,
0.2632214426994324,
-0.2364407181739807,
0.02193005383014679,
-0.1194809079170227,
0.13806387782096863,
0.09771757572889328,
-0.23486122488975525,
-0.05544973909854889,
0.3983250856399536,
0.10416097193956375,
0.1517781764268875,
0.12339527159929276,
0.19969403743743896,
0.22578096389770508,
0.49482303857803345,
0.32591915130615234,
0.22803287208080292,
0.05273055657744408,
0.031461432576179504,
0.12016365677118301,
0.012214016169309616,
0.16796405613422394,
0.05513226240873337,
0.5647082328796387,
-0.1505909562110901,
-0.16594433784484863,
0.17966081202030182,
0.2376633584499359,
-0.013535828329622746,
-0.15443825721740723,
0.0737013891339302,
-0.02063949964940548,
-0.37147003412246704,
-0.08588658273220062,
0.09951996058225632,
-0.11062890291213989,
0.39704978466033936,
0.19652171432971954,
0.2857392132282257,
-0.1417669653892517,
0.18138039112091064,
0.11226429790258408,
0.2467513084411621,
-0.24703069031238556,
0.3504847288131714,
0.0195939838886261,
-0.11920348554849625,
-0.1085193082690239,
0.0991254523396492,
0.2237403243780136,
-0.11807198822498322,
-0.16078458726406097,
0.20195910334587097,
-0.2517106831073761,
-0.00799508672207594,
-0.04579521343111992,
0.27256008982658386,
0.2854664623737335,
0.2857898771762848,
0.3367881774902344,
0.1849636733531952,
-0.20130804181098938,
-0.10975594818592072,
0.21827521920204163,
-0.09864181280136108,
-0.11516248434782028,
0.17490249872207642,
-0.054175302386283875,
-0.14035926759243011,
-0.2893490195274353,
-0.03214425593614578,
-0.588188111782074,
-0.17564751207828522,
0.36871737241744995,
-0.24871443212032318,
-0.0288490392267704,
-0.1787044107913971,
0.12499656528234482,
0.09505155682563782,
0.32847678661346436,
0.05347992107272148,
0.20663045346736908,
0.05874936282634735,
-0.3791366219520569,
-0.3151339888572693,
0.0004415271687321365,
-0.1313313990831375,
-0.22058270871639252,
-0.32150959968566895,
0.25919413566589355,
0.2777631878852844,
0.11954997479915619,
-0.010550207458436489,
0.35411736369132996,
0.12413296848535538,
0.013410486280918121,
-0.37218019366264343,
0.24822241067886353,
0.020926550030708313,
0.15858212113380432,
0.15023760497570038,
-0.1453211009502411,
-0.07848495990037918,
0.06029931455850601,
0.04435869678854942,
-0.208706796169281,
-0.1215166300535202,
0.3126528263092041,
-0.039651136845350266,
0.4404263198375702,
0.18882280588150024,
0.376047283411026,
-0.22459936141967773,
-0.17513491213321686,
-0.3231009244918823,
-0.23605267703533173,
-0.38893550634384155,
0.23744051158428192,
0.1850443184375763,
0.21815235912799835,
-0.11748653650283813,
-0.029376709833741188,
-0.11898522078990936,
0.39657020568847656,
0.022711319848895073,
0.29449668526649475,
-0.0015136710135266185,
0.19624097645282745,
0.26749753952026367,
-0.1677461415529251,
0.0743267759680748,
0.5738521218299866,
0.056153103709220886,
0.03178393840789795,
0.08775769174098969,
-0.3447563648223877,
-0.016546502709388733,
0.20087790489196777,
-0.08907534182071686,
0.12100109457969666,
0.17689980566501617,
0.270255446434021,
0.18543699383735657,
-0.4542292654514313,
-0.04644877836108208,
0.25049927830696106,
0.21816034615039825,
-0.22881047427654266,
0.2579585611820221,
0.1778256893157959,
-0.24449215829372406,
0.01925482228398323,
0.0247734934091568,
0.2521752417087555,
-0.3240343928337097,
0.20672348141670227,
-0.23751215636730194
] |
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.36098894476890564,
-0.2430482804775238,
-0.13333861529827118,
-0.10878964513540268,
-0.04882017895579338,
-0.15857161581516266,
0.40233269333839417,
0.10787013173103333,
0.17236138880252838,
0.04421239346265793,
-0.03236475586891174,
0.01676131784915924,
-0.13741064071655273,
0.3313925564289093,
0.5176860094070435,
-0.2384224236011505,
0.13700154423713684,
-0.04148407652974129,
-0.21366946399211884,
-0.12390460073947906,
-0.2755301296710968,
0.14412881433963776,
-0.013041306287050247,
0.002068321220576763,
-0.324195921421051,
-0.33826935291290283,
-0.24917998909950256,
0.020091580227017403,
0.08553653210401535,
-0.04900628700852394,
-0.10516044497489929,
0.23720914125442505,
-0.10009324550628662,
0.14560283720493317,
-0.00010290172212990001,
-0.23869313299655914,
0.15245534479618073,
-0.0855206549167633,
0.12337873876094818,
0.1465122401714325,
-0.4335070252418518,
-0.5227155089378357,
-0.2843221426010132,
-0.1264842450618744,
-0.053485624492168427,
0.12181106954813004,
0.21257168054580688,
-0.12923577427864075,
0.2736060619354248,
0.0016660313121974468,
0.2837965190410614,
0.23644942045211792,
0.042041998356580734,
-0.15838877856731415,
0.38808968663215637,
0.032544128596782684,
-0.08884986490011215,
-0.1677177995443344,
0.8024853467941284,
0.024500401690602303,
-0.14155565202236176,
0.17998003959655762,
-0.14849348366260529,
-0.31672748923301697,
-0.11348461359739304,
-0.11712146550416946,
-0.15556040406227112,
-0.25859805941581726,
-0.08004798740148544,
0.5484525561332703,
0.18921461701393127,
-0.23127223551273346,
-0.35349804162979126,
-0.19253602623939514,
-0.1706315279006958,
0.14138898253440857,
-0.11349537968635559,
0.2801840901374817,
0.11498632282018661,
-0.11051448434591293,
0.21312332153320312,
-0.41642892360687256,
-0.08007615804672241,
0.047994621098041534,
0.021341761574149132,
0.5528367757797241,
-0.1332031786441803,
0.08079887926578522,
0.2142959088087082,
0.04148000106215477,
0.03814903274178505,
-0.002829835517331958,
-0.08361233025789261,
0.1186089962720871,
-0.3118968605995178,
-0.1651514321565628,
0.08560579270124435,
0.054637033492326736,
0.16153115034103394,
0.10435681790113449,
0.1731613427400589,
0.33295533061027527,
-0.017584724351763725,
0.24729366600513458,
0.019155006855726242,
0.07905610650777817,
-0.02300468273460865,
-0.09287712723016739,
0.2940821051597595,
-0.46820417046546936,
0.1120842695236206,
0.005607784725725651,
-0.13006101548671722,
0.014156411401927471,
-0.3059467375278473,
0.14125396311283112,
-0.07820548862218857,
0.05452100187540054,
-0.05536244064569473,
-0.06135711073875427,
0.2052803784608841,
-0.06393357366323471,
-0.0996134802699089,
0.13236716389656067,
0.1529034674167633,
0.051106128841638565,
-0.1864057332277298,
0.2986688017845154,
0.047852300107479095,
-0.275470495223999,
-0.05068951100111008,
0.33980387449264526,
-0.1761927604675293,
-0.08526045829057693,
0.03250349313020706,
0.24648091197013855,
-0.12374286353588104,
0.2510397136211395,
-0.1529015600681305,
0.09914831072092056,
0.4014095664024353,
-0.02385411038994789,
0.12983399629592896,
0.13622277975082397,
-0.10117614269256592,
0.05250899866223335,
-0.05081746354699135,
-0.16879954934120178,
-0.3668777644634247,
-0.015453273430466652,
0.07969269156455994,
-0.08155713230371475,
-0.3735301196575165,
0.22936974465847015,
-0.26969432830810547,
-0.34499895572662354,
0.08614034950733185,
0.6289961338043213,
-0.0880310907959938,
0.004977527540177107,
0.2904135286808014,
0.10500743240118027,
0.21247416734695435,
-0.3345424234867096,
-0.09299547225236893,
0.3001292049884796,
-0.4730146527290344,
-0.3338138461112976,
-0.029049338772892952,
-0.2311621904373169,
-0.0021565742790699005,
0.05201343074440956,
-0.044051460921764374,
-0.09617394953966141,
-0.007374664302915335,
0.2651541233062744,
0.2889791429042816,
-0.26475903391838074,
-0.20745278894901276,
0.20986023545265198,
-0.1930583119392395,
-0.02734895795583725,
0.21758157014846802,
0.4717181622982025,
0.27431386709213257,
-0.1260916143655777,
-0.317170113325119,
0.6667867302894592,
-0.1519973874092102,
0.034347403794527054,
-0.08015402406454086,
-0.24973352253437042,
0.1098254919052124,
0.36478206515312195,
0.2909833490848541,
-0.21672584116458893,
0.14394305646419525,
0.039668530225753784,
-0.0432225726544857,
-0.14331819117069244,
0.14157575368881226,
0.2905843257904053,
0.213643416762352,
-0.07684294134378433,
-0.03560353070497513,
-0.317375123500824,
-0.5034186244010925,
-0.08276519179344177,
-0.13778087496757507,
0.22589287161827087,
0.08006646484136581,
-0.12185017764568329,
0.15996628999710083,
-0.09539933502674103,
-0.1808459758758545,
-0.2863196134567261,
0.22057339549064636,
0.16411450505256653,
0.13974611461162567,
-0.025230862200260162,
-0.268602579832077,
0.42338457703590393,
0.3195316791534424,
0.007502959109842777,
-0.34957584738731384,
-0.0012600980699062347,
0.028136886656284332,
-0.0337243415415287,
-0.09817919135093689,
0.13195468485355377,
-0.07955946028232574,
-0.4043690264225006,
0.17950303852558136,
0.25576257705688477,
-0.1880488395690918,
0.33829087018966675,
0.2561550438404083,
0.6219766736030579,
0.31335943937301636,
-0.01916547492146492,
0.3991299271583557,
0.06984930485486984,
0.009005925618112087,
-0.15015822649002075,
0.06758571416139603,
0.3907511830329895,
0.14093652367591858,
0.018281718716025352,
-0.08266580104827881,
0.20947521924972534,
0.2510533332824707,
-0.12551149725914001,
-0.135668084025383,
0.06380359083414078,
0.3023630678653717,
0.05203750729560852,
0.38603323698043823,
-0.033732179552316666,
-0.17311792075634003,
0.12163003534078598,
0.6009014248847961,
-0.19797562062740326,
0.5357916355133057,
-0.0756155252456665,
-0.37687739729881287,
0.09951479732990265,
0.07518754154443741,
0.45741549134254456,
-0.035215698182582855,
0.3183372914791107,
0.10941094160079956,
-0.09015973657369614,
-0.0832098200917244,
-0.11807702481746674,
0.12429904192686081,
-0.1158265545964241,
-0.1036299467086792,
0.08891136944293976,
-0.09437663853168488,
-0.20657484233379364,
-0.4662325382232666,
-0.20118364691734314,
0.06381142139434814,
-0.05390607565641403,
0.14870913326740265,
-0.07335565984249115,
0.14187732338905334,
-0.2242622673511505,
-0.34124279022216797,
-0.22064076364040375,
-0.3772153854370117,
-0.22091767191886902,
0.2375551164150238,
-0.3334915041923523,
-0.2636532187461853,
0.29996439814567566,
0.09289038181304932,
0.33022990822792053,
-0.31722569465637207,
-0.2581770122051239,
-0.2700493633747101,
-0.29206785559654236,
-0.04779995605349541,
0.2156933695077896,
0.0847444087266922,
-0.08970552682876587,
0.36354371905326843,
0.03339683264493942,
0.38120609521865845,
-0.09194624423980713,
-0.5689718723297119,
0.11916457116603851,
-0.12268199771642685,
0.06853881478309631,
0.130550354719162,
-0.12955263257026672,
0.14670705795288086,
-0.24627685546875,
0.11921240389347076,
-0.29744794964790344,
0.05942477658390999,
-0.027762597426772118,
-0.10274160653352737,
-0.1354486495256424,
-0.11275972425937653,
-0.2742833197116852,
-0.4515155255794525,
-0.3990277349948883,
0.40147000551223755,
-0.13857868313789368,
0.08096270263195038,
0.07720296084880829,
-0.04109415039420128,
0.18766245245933533,
-0.010773040354251862,
-0.19632312655448914,
-0.1856987625360489,
-0.18120057880878448,
0.22953690588474274,
-0.16530366241931915,
-0.2328507900238037,
-0.3834359347820282,
-0.37017005681991577,
0.14092935621738434,
0.17191851139068604,
-0.04343697801232338,
0.09238715469837189,
-0.40016788244247437,
-0.034291479736566544,
0.3072674870491028,
0.4078638255596161,
0.33178165555000305,
0.09750727564096451,
-0.11545006930828094,
-0.18439050018787384,
0.008715475909411907,
0.05107380449771881,
0.23511438071727753,
-0.11910204589366913,
0.011680704541504383,
0.11889589577913284,
0.09494037926197052,
0.31517383456230164,
-0.20414774119853973,
0.0975988358259201,
0.3520660102367401,
0.08416049927473068,
0.22091367840766907,
-0.0726860910654068,
-0.2704921364784241,
0.1274242401123047,
-0.16825830936431885,
0.16810698807239532,
-0.04174695909023285,
0.07722436636686325,
-0.3364412486553192,
-0.04967360198497772,
-0.015291555784642696,
-0.2027961164712906,
-0.10335126519203186,
0.3815227746963501,
-0.05140984430909157,
0.12082027643918991,
-0.0068349409848451614,
-0.3145832419395447,
-0.2032817304134369,
-0.002461889060214162,
0.31778684258461,
-0.12419511377811432,
-0.05327166989445686,
-0.07491233944892883,
-0.3606049418449402,
0.10256388038396835,
-0.4060276746749878,
0.4150722920894623,
0.05351339653134346,
0.038196101784706116,
-0.19576236605644226,
-0.10382728278636932,
-0.11641072481870651,
-0.07207457721233368,
0.5585863590240479,
-0.7669785618782043,
-0.24779744446277618,
0.2671760022640228,
-0.17529916763305664,
-0.282501220703125,
0.045686930418014526,
-0.612217366695404,
-0.18535304069519043,
0.3356113135814667,
0.2638911306858063,
-0.26197096705436707,
0.022221611812710762,
0.1353655457496643,
0.2076641172170639,
-0.03669704124331474,
0.11098146438598633,
-0.07391516864299774,
-0.20885959267616272,
-0.3884420692920685,
0.17257235944271088,
0.10431664437055588,
-0.12451467663049698,
0.41625964641571045,
-0.09967976808547974,
-0.14482663571834564,
-0.02576887048780918,
0.18149736523628235,
0.062125314027071,
-0.25120458006858826,
0.03504381328821182,
-0.23518460988998413,
-0.006181703880429268,
-0.17704440653324127,
-0.3659869134426117,
0.1819806694984436,
0.048905208706855774,
-0.02616753615438938,
0.15006296336650848,
-0.3189905285835266,
0.5837522149085999,
0.06183551624417305,
0.42664283514022827,
0.19437602162361145,
-0.057818736881017685,
0.008254388347268105,
-0.4315257966518402,
0.12207446247339249,
0.04953477159142494,
0.4362938702106476,
-0.5069695115089417,
-0.27497610449790955,
0.32887953519821167,
0.21967141330242157,
-0.25006532669067383,
0.32413506507873535,
0.06308817118406296,
-0.17477649450302124,
0.23111198842525482,
0.05909689888358116,
1.0470575094223022,
-0.28538671135902405,
0.08258464932441711,
-0.076895572245121,
-0.3744659721851349,
0.3689426779747009,
-0.4711645245552063,
0.13207672536373138,
-0.41659221053123474,
-0.4293304979801178,
-0.11590485274791718,
-0.12748156487941742,
0.18846280872821808,
0.24918030202388763,
-0.4533577561378479,
0.11044346541166306,
0.03376418352127075,
0.2077445387840271,
-0.07785037904977798,
0.41880154609680176,
-0.23526790738105774,
-0.39074838161468506,
0.10439549386501312,
0.24565665423870087,
0.012592240236699581,
0.10328912734985352,
-0.20527894794940948,
-0.13384118676185608,
0.12230326980352402,
-0.038256291300058365,
-0.470465749502182,
0.2153523564338684,
-0.06747938692569733,
0.25096747279167175,
-0.03311861678957939,
-0.12068131566047668,
0.07493548095226288,
-0.20317338407039642,
0.11266008764505386,
0.09633396565914154,
0.06401470303535461,
0.16829706728458405,
-0.09945233911275864,
0.04594862088561058,
0.293320894241333,
-0.05734730511903763,
0.39248543977737427,
-0.03067144565284252,
-0.19838766753673553,
0.1636904925107956,
0.1191074550151825,
-0.17074421048164368,
-0.402487576007843,
0.04869168624281883,
-0.06018952280282974,
0.02032223530113697,
0.08976335823535919,
0.394223153591156,
-0.03168642148375511,
-0.2778938412666321,
0.19090738892555237,
0.13372620940208435,
-0.08440680056810379,
0.29343974590301514,
-0.114967480301857,
-0.10698477923870087,
-0.27992624044418335,
-0.13669222593307495,
0.14603766798973083,
-0.0961649939417839,
-0.0794297382235527,
0.3056713938713074,
-0.13498473167419434,
-0.43384987115859985,
0.28407254815101624,
0.6293215155601501,
-0.4850795567035675,
0.0036906064487993717,
-0.32161253690719604,
-0.6450650095939636,
-0.11302156001329422,
0.1339283585548401,
0.25034099817276,
0.12126750499010086,
-0.16052642464637756,
-0.13936647772789001,
-0.21332299709320068,
0.2515169084072113,
0.24500232934951782,
0.27807411551475525,
-0.13371586799621582,
-0.13243882358074188,
0.25733235478401184,
0.40484461188316345,
-0.4375580847263336,
-0.08299148082733154,
-0.16185259819030762,
0.1344711184501648,
0.3316445052623749,
-0.14607948064804077,
0.18192018568515778,
0.15134021639823914,
0.16559523344039917,
-0.038690224289894104,
-0.16815677285194397,
-0.21878497302532196,
-0.26975032687187195,
0.07200763374567032,
-0.0865025743842125,
0.1566184014081955,
0.17917312681674957,
0.03786050155758858,
0.08185211569070816,
-0.1696375012397766,
0.2937639355659485,
-0.06193942949175835,
-0.10260892659425735,
0.2647126615047455,
-0.03278438746929169,
-0.05745434761047363,
0.14386141300201416,
0.009339733980596066,
0.04677370935678482,
-0.010986910201609135,
0.1935277134180069,
0.13486118614673615,
0.3256728947162628,
-0.15006890892982483,
0.053650833666324615,
0.39593493938446045,
0.49302002787590027,
-0.10050298273563385,
-0.01453761849552393,
0.10710054636001587,
0.050196483731269836,
0.20386691391468048,
0.24014022946357727,
-0.12643906474113464,
-0.0027320196386426687,
0.10493100434541702,
0.11443009227514267,
0.32602277398109436,
-0.22551457583904266,
-0.21327520906925201,
0.29502952098846436,
-0.09166737645864487,
0.30218398571014404,
0.4559679627418518,
0.27274245023727417,
0.07486383616924286,
0.44526275992393494,
-0.21985433995723724,
0.43967002630233765,
-0.26725831627845764,
0.3010178804397583,
0.15159107744693756,
-0.19967211782932281,
-0.1657261997461319,
0.3411118984222412,
0.13336080312728882,
0.05909189581871033,
0.2153359055519104,
0.076252780854702,
0.08075081557035446,
0.44130173325538635,
0.2158815711736679,
0.34555017948150635,
0.04951367899775505,
0.05850197747349739,
0.11244481056928635,
0.22379115223884583,
0.32843878865242004,
0.1237657219171524,
0.1969248205423355,
-0.12859027087688446,
0.04665286839008331,
-0.07428906857967377,
0.3286133110523224,
-0.20253801345825195,
-0.043969687074422836,
0.4355279803276062,
-0.07044276595115662,
-0.2919856905937195,
0.08138001710176468,
0.1336534023284912,
-0.20376645028591156,
0.4764041602611542,
0.02738657221198082,
0.36703595519065857,
0.09366083145141602,
0.3817867040634155,
0.04402759671211243,
0.012790784239768982,
-0.3642975389957428,
0.21067245304584503,
0.09456148743629456,
0.04581039398908615,
-0.1554967761039734,
0.36916500329971313,
0.23444373905658722,
-0.041345201432704926,
-0.3102593421936035,
0.5758243799209595,
-0.3054920434951782,
0.005496239755302668,
-0.08149445801973343,
0.286872535943985,
0.15792275965213776,
0.4094841778278351,
0.19793596863746643,
0.1584172248840332,
-0.18920865654945374,
-0.24667301774024963,
0.018014119938015938,
-0.26327064633369446,
0.05461899936199188,
0.1511259526014328,
-0.10839664936065674,
-0.20246565341949463,
-0.33435726165771484,
0.144502654671669,
-0.5961222052574158,
-0.2081909030675888,
0.27076736092567444,
-0.30623409152030945,
0.0033915152307599783,
-0.025953296571969986,
0.11645747721195221,
0.04095460847020149,
0.33550605177879333,
0.15051908791065216,
0.441290020942688,
-0.10460107028484344,
-0.24395988881587982,
-0.37434330582618713,
0.029732760041952133,
0.1027984693646431,
-0.14522351324558258,
-0.1690419614315033,
0.07202128320932388,
0.35308369994163513,
0.16911233961582184,
-0.0904696062207222,
0.28018462657928467,
-0.08965005725622177,
-0.12126198410987854,
-0.2620973289012909,
0.47051602602005005,
0.25034239888191223,
0.29774004220962524,
0.15264663100242615,
-0.06191461905837059,
-0.08349129557609558,
0.13309365510940552,
0.17209619283676147,
-0.3086579740047455,
-0.13178402185440063,
-0.031114501878619194,
-0.2584134638309479,
0.3762410581111908,
0.05745280906558037,
0.40256619453430176,
-0.24087120592594147,
-0.07904452085494995,
-0.2328088879585266,
-0.20089396834373474,
-0.25695258378982544,
0.10513866692781448,
0.13298699259757996,
0.1505865603685379,
-0.028600987046957016,
-0.11165200173854828,
-0.18172799050807953,
-0.04193698987364769,
-0.028059082105755806,
0.5094855427742004,
-0.16846787929534912,
0.13103948533535004,
-0.06545133143663406,
-0.09676256775856018,
0.03217137232422829,
0.24471379816532135,
0.12301163375377655,
-0.045618362724781036,
0.015796657651662827,
-0.2617705464363098,
0.05466039106249809,
0.19933652877807617,
-0.4142240583896637,
-0.1303802877664566,
0.05494846776127815,
0.056685253977775574,
0.2064247876405716,
-0.31331655383110046,
0.0007214961224235594,
0.14394226670265198,
0.0925227627158165,
-0.08688310533761978,
0.18796709179878235,
0.23192916810512543,
-0.36720559000968933,
-0.07413429766893387,
-0.13598090410232544,
0.11378639936447144,
-0.21011658012866974,
-0.052365366369485855,
-0.3238998353481293
] |
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.19102691113948822,
0.053200021386146545,
-0.07769224047660828,
0.010843606665730476,
0.03872733935713768,
-0.08067607879638672,
0.5347976684570312,
0.03772834315896034,
-0.020479759201407433,
0.1416439414024353,
-0.11443271487951279,
0.06805259734392166,
-0.18432891368865967,
0.24800854921340942,
0.394348680973053,
-0.13489501178264618,
0.020918477326631546,
-0.1578742414712906,
0.21387264132499695,
-0.12651631236076355,
-0.11702994257211685,
0.1462668776512146,
0.2255796492099762,
0.07062920928001404,
-0.3789375424385071,
-0.2115485519170761,
-0.1750749945640564,
0.015306050889194012,
0.044224679470062256,
-0.2807617485523224,
0.026356564834713936,
0.05781221762299538,
-0.048457905650138855,
0.16283974051475525,
-0.00010367197683081031,
0.1411677449941635,
-0.05408630892634392,
-0.07715044915676117,
0.1324325054883957,
-0.19617247581481934,
-0.2736232876777649,
-0.49074089527130127,
-0.07530071586370468,
-0.10899917036294937,
-0.13036535680294037,
-0.07664398849010468,
0.017850028350949287,
-0.46813109517097473,
0.17976535856723785,
0.18165425956249237,
0.23135164380073547,
-0.09883258491754532,
-0.47105708718299866,
-0.05469916760921478,
0.15439115464687347,
-0.1809714138507843,
-0.010840440168976784,
0.24466285109519958,
0.20244556665420532,
0.16735835373401642,
-0.2104749083518982,
0.4398653507232666,
0.16833624243736267,
-0.23137269914150238,
-0.19687530398368835,
0.16493858397006989,
-0.1484713852405548,
-0.23617877066135406,
-0.15226656198501587,
0.5677230358123779,
0.0808054655790329,
-0.32289958000183105,
-0.39285391569137573,
-0.27045196294784546,
0.19991539418697357,
-0.2888873517513275,
0.051883794367313385,
0.211304172873497,
0.21760451793670654,
0.17513121664524078,
0.23173029720783234,
-0.6836294531822205,
0.05401228368282318,
0.13562941551208496,
-0.09718257933855057,
0.5137060880661011,
-0.0015304174739867449,
0.24394948780536652,
0.08156871795654297,
0.14022767543792725,
0.020834850147366524,
-0.007844062522053719,
-0.08978684991598129,
-0.1002548560500145,
-0.24091818928718567,
0.1066809669137001,
-0.164287269115448,
-0.015039191581308842,
0.09461304545402527,
-0.09357000142335892,
0.07274732738733292,
0.15369048714637756,
0.10897909849882126,
0.2050894945859909,
0.1776735782623291,
0.11803671717643738,
0.23663558065891266,
0.06276839226484299,
0.28873246908187866,
-0.47104549407958984,
-0.07780647277832031,
0.01950736530125141,
0.07468473166227341,
-0.19124165177345276,
-0.1727139949798584,
-0.04594651609659195,
0.026985572651028633,
0.06635255366563797,
-0.09597735852003098,
0.10529462993144989,
-0.2061988264322281,
-0.2935827076435089,
0.09900432080030441,
0.14490091800689697,
0.12773026525974274,
0.14135964214801788,
-0.20307424664497375,
0.372582346200943,
-0.2662523090839386,
-0.25718003511428833,
-0.2277459055185318,
0.3409710228443146,
-0.37485241889953613,
0.09210191667079926,
-0.20217584073543549,
-0.08082392811775208,
-0.04762323573231697,
0.3292247951030731,
-0.10714724659919739,
-0.15805090963840485,
0.091587133705616,
-0.13378357887268066,
0.05195198208093643,
-0.12472845613956451,
0.012554673478007317,
0.15801869332790375,
0.05701879784464836,
-0.35662686824798584,
-0.46264660358428955,
-0.030036021023988724,
-0.2527828514575958,
-0.25492727756500244,
-0.287526398897171,
0.20567189157009125,
-0.1694248914718628,
-0.23213806748390198,
0.2545630633831024,
0.7391148805618286,
0.12738032639026642,
-0.11755947023630142,
0.28276538848876953,
-0.12431763857603073,
-0.16633006930351257,
-0.27646180987358093,
-0.07027079164981842,
0.23627805709838867,
-0.574315071105957,
-0.4132934808731079,
0.2253570407629013,
-0.19761882722377777,
0.20691652595996857,
0.19664348661899567,
-0.3473392128944397,
0.010995869524776936,
-0.11773622035980225,
0.3534213900566101,
0.5970433950424194,
-0.2923468053340912,
-0.13038752973079681,
0.214141845703125,
-0.2635834217071533,
0.08893883973360062,
0.2357160598039627,
0.20313464105129242,
0.10272758454084396,
0.19822059571743011,
0.06784551590681076,
0.4630220830440521,
-0.005303064826875925,
-0.15738704800605774,
-0.14021988213062286,
-0.19028405845165253,
0.35425668954849243,
0.23231279850006104,
-0.03815154731273651,
-0.2863723635673523,
0.1947166472673416,
0.08990790694952011,
0.23909267783164978,
-0.14268216490745544,
0.09645408391952515,
0.2986014783382416,
0.04686673730611801,
0.017902418971061707,
-0.19535033404827118,
-0.07084303349256516,
-0.33365440368652344,
0.1470629870891571,
0.0368669219315052,
0.38274338841438293,
0.29175081849098206,
-0.26627686619758606,
0.177970290184021,
-0.3421460688114166,
-0.4258979856967926,
-0.345989853143692,
0.16144923865795135,
0.22301216423511505,
-0.068040631711483,
0.2329871654510498,
-0.2800177335739136,
0.5938706994056702,
0.0390462800860405,
0.11165813356637955,
-0.38179245591163635,
0.053027864545583725,
0.06863018870353699,
-0.1893720030784607,
-0.2376474142074585,
0.23937812447547913,
-0.1718093752861023,
-0.24051626026630402,
-0.0398932620882988,
0.4583505690097809,
0.23239892721176147,
0.04883676394820213,
-0.07186662405729294,
0.11908341199159622,
0.38366568088531494,
0.10945725440979004,
0.1813323050737381,
-0.2294236123561859,
-0.18228207528591156,
-0.12372517585754395,
0.0827203169465065,
0.5217265486717224,
0.3244664669036865,
0.10043157637119293,
-0.10758611559867859,
0.03577320650219917,
0.19101345539093018,
-0.04159829393029213,
-0.3569166660308838,
-0.2650184631347656,
0.055667679756879807,
0.055683691054582596,
0.434780091047287,
0.15920871496200562,
-0.5791935920715332,
-0.07125364243984222,
0.7180764675140381,
0.009768190793693066,
0.16936379671096802,
-0.06936642527580261,
0.05583889037370682,
0.10119730234146118,
0.18955722451210022,
0.5201979875564575,
0.21229299902915955,
0.23894236981868744,
0.2982458174228668,
-0.016514776274561882,
-0.19407594203948975,
-0.18283142149448395,
-0.10593821108341217,
-0.23709915578365326,
0.07950160652399063,
-0.03629211708903313,
-0.2030079960823059,
-0.25750279426574707,
-0.4082719683647156,
-0.1509489119052887,
0.1471942663192749,
-0.029232420027256012,
-0.029427357017993927,
0.024504097178578377,
-0.3005193769931793,
-0.18015412986278534,
-0.5986676216125488,
-0.3013349771499634,
-0.6115759611129761,
-0.18113602697849274,
0.24471311271190643,
-0.6047817468643188,
-0.046701520681381226,
0.4229430556297302,
-0.14253121614456177,
-0.04067188873887062,
-0.4698762893676758,
-0.5025680661201477,
0.2565770745277405,
-0.04210560396313667,
-0.40647777915000916,
0.09187820553779602,
0.15798041224479675,
-0.03272384777665138,
0.251292884349823,
-0.1421438753604889,
-0.06450481712818146,
0.1113211065530777,
-0.40088218450546265,
0.18253973126411438,
-0.20621518790721893,
0.14822979271411896,
0.10054884105920792,
-0.33477896451950073,
-0.057291075587272644,
-0.30215558409690857,
0.3210501968860626,
0.015002606436610222,
0.14567583799362183,
-0.06467122584581375,
0.0767853632569313,
0.04754086956381798,
-0.06537070870399475,
-0.7203999757766724,
-0.5405851602554321,
-0.1982034295797348,
0.010396682657301426,
-0.16401927173137665,
0.11040915548801422,
0.25345879793167114,
0.08905496448278427,
0.011973736807703972,
-0.14562495052814484,
-0.004496992565691471,
-0.22575725615024567,
-0.38200604915618896,
-0.029185615479946136,
-0.10998879373073578,
-0.1568063199520111,
-0.03046765737235546,
-0.07167387753725052,
0.2077927440404892,
0.17670071125030518,
-0.1378648579120636,
0.016673430800437927,
-0.1939050704240799,
0.22754688560962677,
0.035325441509485245,
0.4253298044204712,
0.1598970890045166,
0.1543305218219757,
-0.03260386735200882,
-0.04357566311955452,
-0.1585962325334549,
0.37804412841796875,
0.2033306062221527,
0.012778105214238167,
-0.06914466619491577,
0.06344714760780334,
0.0594617985188961,
0.23263424634933472,
0.17735493183135986,
0.06412939727306366,
0.2799990475177765,
-0.33807629346847534,
0.3977769613265991,
-0.14098763465881348,
-0.20671269297599792,
0.21829035878181458,
-0.0323907770216465,
0.014059912413358688,
0.15284423530101776,
0.027188558131456375,
-0.3039853572845459,
-0.08513575792312622,
0.07785585522651672,
-0.016670461744070053,
-0.3773220479488373,
0.3567853271961212,
-0.15391495823860168,
0.03207218274474144,
-0.1507052332162857,
-0.15224036574363708,
0.1029481366276741,
0.18176794052124023,
0.02957327663898468,
0.09697318822145462,
-0.3498258590698242,
0.18323186039924622,
-0.5369267463684082,
-0.09914211928844452,
-0.2999086081981659,
0.1079709529876709,
0.13050749897956848,
0.27625617384910583,
-0.1866471767425537,
0.0029914905317127705,
0.01750705949962139,
0.015031871385872364,
0.3966662883758545,
-0.48084914684295654,
-0.4820992648601532,
0.2004491239786148,
0.02125762589275837,
-0.1305934190750122,
-0.0855683833360672,
-0.32787466049194336,
-0.01884172111749649,
0.34981921315193176,
0.05629550665616989,
-0.3079890310764313,
-0.15863588452339172,
0.06762231886386871,
0.3820742666721344,
-0.20287133753299713,
0.06072687357664108,
-0.2034725695848465,
-0.1728474348783493,
-0.09921970963478088,
0.1970166712999344,
0.020977316424250603,
0.12048020213842392,
0.2889886498451233,
-0.12231869995594025,
0.03174320608377457,
-0.08469492197036743,
0.1988629251718521,
0.14647816121578217,
0.09171292930841446,
0.11640630662441254,
-0.16100898385047913,
0.05010242760181427,
0.06765951961278915,
-0.14851978421211243,
0.4402638375759125,
-0.3087301552295685,
-0.2286408692598343,
0.07877784222364426,
-0.0829528421163559,
0.49018415808677673,
0.2631419599056244,
0.13381917774677277,
0.09826776385307312,
0.01776660420000553,
-0.08510241657495499,
-0.029889043420553207,
0.3046811521053314,
0.21235285699367523,
0.34130069613456726,
-0.5329065322875977,
-0.7967941761016846,
0.2185472846031189,
0.3822435140609741,
-0.05367821082472801,
0.3410783112049103,
0.19012100994586945,
-0.4465326964855194,
0.20732316374778748,
-0.08302652835845947,
0.9011119604110718,
-0.13063405454158783,
0.22357647120952606,
0.14950433373451233,
-0.13183756172657013,
0.34795069694519043,
-0.3285903334617615,
0.0038761128671467304,
-0.24081255495548248,
-0.04374461993575096,
-0.03649817779660225,
0.05165486037731171,
0.4080283045768738,
0.17105592787265778,
-0.3253445327281952,
0.21908102929592133,
-0.06320483237504959,
-0.024665728211402893,
-0.2653282582759857,
0.5389810800552368,
-0.34054386615753174,
-0.31043872237205505,
0.011744832620024681,
0.12111210078001022,
0.016458597034215927,
-0.12401951849460602,
-0.03200506791472435,
-0.034630317240953445,
-0.10270857065916061,
-0.04994508624076843,
-0.22205132246017456,
-0.013993557542562485,
-0.3344772458076477,
0.2656902074813843,
-0.29523152112960815,
-0.3578464984893799,
0.04533625766634941,
0.20261573791503906,
-0.0023016456980258226,
-0.010598575696349144,
0.26554107666015625,
0.07410967350006104,
0.11827351897954941,
0.09958428144454956,
0.22594156861305237,
-0.22875824570655823,
0.4069564640522003,
0.049698226153850555,
-0.4066702127456665,
0.13848163187503815,
-0.0037560819182544947,
-0.04183531180024147,
-0.2877301275730133,
0.1658208817243576,
-0.014004132710397243,
-0.34511619806289673,
-0.0867624282836914,
0.5174047350883484,
0.16955548524856567,
-0.15112510323524475,
0.1396106779575348,
0.22600460052490234,
-0.18922673165798187,
0.17033013701438904,
-0.1977108120918274,
-0.3133751451969147,
-0.36249351501464844,
-0.19348132610321045,
0.3652397096157074,
0.07743433862924576,
0.018369754776358604,
-0.037393536418676376,
-0.039257798343896866,
-0.1547609120607376,
0.3754971921443939,
0.6007121205329895,
-0.20001794397830963,
-0.2600066661834717,
0.025549251586198807,
-0.198638454079628,
-0.13102595508098602,
-0.09644179791212082,
0.09957684576511383,
0.2887756824493408,
-0.013568014837801456,
-0.13677361607551575,
-0.02939777262508869,
0.1859988421201706,
0.2647141218185425,
0.23566026985645294,
0.06035434827208519,
0.13106392323970795,
0.05710377171635628,
0.162648543715477,
-0.3480120599269867,
-0.11275040358304977,
0.062165599316358566,
0.06325151026248932,
-0.07949157804250717,
0.15834252536296844,
0.12012369930744171,
0.05102144554257393,
0.21734249591827393,
-0.23186103999614716,
-0.08957323431968689,
-0.15275388956069946,
-0.29585716128349304,
0.07017849385738373,
0.031105313450098038,
0.25951313972473145,
0.2123280167579651,
-0.06696240603923798,
0.2546618580818176,
-0.06714235991239548,
0.44872766733169556,
0.3342229127883911,
-0.020339712500572205,
0.38259705901145935,
0.09658049046993256,
0.07753138244152069,
0.021603228524327278,
0.07774308323860168,
0.006275526713579893,
0.09198752790689468,
0.34651482105255127,
0.21320416033267975,
-0.009408198297023773,
-0.06846051663160324,
0.13863997161388397,
0.13332104682922363,
0.0467718169093132,
0.1533387452363968,
-0.5616040229797363,
-0.19832445681095123,
0.23293840885162354,
0.11034172028303146,
0.30739784240722656,
0.5193899273872375,
-0.2277439385652542,
0.048999059945344925,
0.29581189155578613,
0.24636198580265045,
-0.16524040699005127,
-0.13342714309692383,
0.3222334384918213,
-0.197440966963768,
0.3228982090950012,
0.6079255938529968,
0.3970000147819519,
0.35029682517051697,
0.17848624289035797,
-0.38871070742607117,
-0.07746545225381851,
-0.05738482251763344,
0.3764552175998688,
0.3210873305797577,
-0.2772596776485443,
-0.03907204046845436,
0.3862949311733246,
0.21319186687469482,
0.08365082740783691,
0.1898491084575653,
-0.20301778614521027,
0.24471433460712433,
0.44800668954849243,
0.25591233372688293,
-0.019645025953650475,
-0.18035264313220978,
0.11194653064012527,
0.12269803881645203,
-0.09230946749448776,
-0.024262841790914536,
-0.023091711103916168,
0.3833848536014557,
-0.15554380416870117,
-0.13966327905654907,
0.29856136441230774,
0.2837647795677185,
-0.19401313364505768,
-0.15350021421909332,
0.1968214213848114,
0.051174309104681015,
-0.2921150326728821,
0.13232474029064178,
-0.0847918912768364,
-0.3820855915546417,
0.1012464165687561,
0.2283000499010086,
0.12561342120170593,
-0.017221221700310707,
0.175740584731102,
-0.09206676483154297,
-0.058492567390203476,
-0.1508609503507614,
0.37557217478752136,
-0.08137303590774536,
-0.03659927845001221,
-0.030998878180980682,
0.06499823927879333,
0.12813891470432281,
-0.07762692868709564,
0.11417572945356369,
0.29895341396331787,
0.012391196563839912,
0.1952902227640152,
0.021552983671426773,
0.08134930580854416,
0.26364240050315857,
0.2784671485424042,
0.3846478760242462,
0.1433395892381668,
-0.1800045371055603,
-0.10379630327224731,
0.19690357148647308,
-0.11853291839361191,
-0.2046387940645218,
0.4069386124610901,
0.01687932386994362,
0.14842912554740906,
-0.3007180392742157,
0.10544942319393158,
-0.5907666683197021,
-0.10816818475723267,
0.48242273926734924,
-0.13249289989471436,
-0.02430494874715805,
-0.1197228953242302,
0.10843799263238907,
0.17696191370487213,
0.13531960546970367,
-0.14256010949611664,
0.28588876128196716,
-0.16330423951148987,
-0.09713618457317352,
-0.5655860900878906,
0.016347451135516167,
-0.23571838438510895,
-0.22225895524024963,
-0.32702359557151794,
0.17912308871746063,
0.25471341609954834,
0.14690303802490234,
-0.0250165443867445,
0.30190250277519226,
0.04072638228535652,
-0.022203978151082993,
-0.2168000340461731,
0.21685124933719635,
0.033949535340070724,
0.3752880096435547,
0.05883023142814636,
-0.045898422598838806,
-0.0710560604929924,
0.13669028878211975,
-0.0337919183075428,
-0.12670134007930756,
-0.05548207834362984,
0.18352490663528442,
-0.15020869672298431,
0.4845885634422302,
0.07219291478395462,
0.3468749225139618,
-0.0968669131398201,
0.04496518149971962,
-0.32038187980651855,
-0.10270114243030548,
-0.48410508036613464,
0.3530169129371643,
0.07048182189464569,
0.179308220744133,
-0.1841549277305603,
-0.10123361647129059,
-0.2685386836528778,
0.30255067348480225,
0.12916140258312225,
0.07572569698095322,
0.13343855738639832,
0.22736404836177826,
0.3005332946777344,
-0.11051437258720398,
0.07998450845479965,
0.6495321989059448,
0.10909925401210785,
0.026389088481664658,
-0.03702421486377716,
-0.20576435327529907,
0.012617385014891624,
0.11998727172613144,
-0.15454287827014923,
0.1037762239575386,
0.17777001857757568,
0.31715577840805054,
0.11343447118997574,
-0.5646628737449646,
0.0775778517127037,
0.3290458619594574,
-0.012446563690900803,
-0.1623537689447403,
0.16171689331531525,
0.19169406592845917,
-0.1885298639535904,
-0.07479298859834671,
-0.037917111068964005,
0.10365213453769684,
-0.2620893120765686,
0.1151697039604187,
-0.3432028889656067
] |
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.18502970039844513,
-0.013267019763588905,
-0.1486910581588745,
0.0019636396318674088,
0.007640142925083637,
0.04465531185269356,
0.5710821151733398,
0.2278444468975067,
0.07958224415779114,
-0.006703974679112434,
-0.09681927412748337,
0.03882111608982086,
-0.11224058270454407,
0.2615080177783966,
0.31103575229644775,
-0.2384139895439148,
-0.0684593915939331,
-0.05653345584869385,
0.12409349530935287,
-0.1399790197610855,
-0.20463672280311584,
0.13503432273864746,
-0.04912957176566124,
0.12635478377342224,
-0.28880226612091064,
-0.27107465267181396,
-0.2809761166572571,
0.15107257664203644,
0.09820928424596786,
-0.3324354290962219,
-0.014556342735886574,
0.08202056586742401,
-0.10009531676769257,
0.23945286870002747,
-0.00009845444583334029,
0.0035831292625516653,
0.011647515930235386,
-0.13435421884059906,
0.0931776762008667,
-0.24684251844882965,
-0.16675367951393127,
-0.3409181237220764,
-0.08399306982755661,
-0.23140732944011688,
-0.19880634546279907,
-0.21008390188217163,
-0.00714115472510457,
-0.41295719146728516,
0.2574448883533478,
0.42212384939193726,
0.26587775349617004,
0.09259653836488724,
-0.44353118538856506,
-0.05774788558483124,
0.08369002491235733,
-0.24228966236114502,
-0.01426497008651495,
0.3178781569004059,
0.3424069285392761,
0.09165006130933762,
-0.2131606787443161,
0.47224530577659607,
0.21478761732578278,
-0.21400903165340424,
-0.37498739361763,
0.22260944545269012,
0.16219384968280792,
-0.25663089752197266,
-0.24461176991462708,
0.5190039277076721,
0.08858777582645416,
-0.1996838003396988,
-0.43284496665000916,
-0.32512643933296204,
0.14379554986953735,
-0.26285475492477417,
-0.0695551335811615,
0.13110309839248657,
0.16541069746017456,
0.19958123564720154,
0.20354102551937103,
-0.4648982882499695,
-0.004148055799305439,
-0.02754664048552513,
-0.051232412457466125,
0.44902777671813965,
0.08374828100204468,
0.23357205092906952,
0.06611614674329758,
0.14115141332149506,
0.07010114938020706,
-0.04587838798761368,
-0.09861654043197632,
0.0553029403090477,
-0.30709749460220337,
0.011703746393322945,
-0.10728180408477783,
0.04747765138745308,
0.049275849014520645,
-0.05130940303206444,
0.0577562153339386,
0.14989809691905975,
-0.042605433613061905,
0.08314045518636703,
0.14480966329574585,
0.19860851764678955,
0.26109346747398376,
-0.0025002197362482548,
0.23987536132335663,
-0.2484661191701889,
-0.15957093238830566,
0.04470187798142433,
-0.06254208832979202,
-0.23788399994373322,
-0.09818225353956223,
0.14678412675857544,
0.0020360250491648912,
-0.01923215575516224,
-0.25919440388679504,
0.021880824118852615,
-0.26720932126045227,
-0.2567576766014099,
0.13751539587974548,
0.36018049716949463,
0.10105113685131073,
0.17835472524166107,
-0.19496147334575653,
0.4000525176525116,
-0.25759103894233704,
-0.3261203467845917,
-0.2360520213842392,
0.4139595925807953,
-0.3500252068042755,
-0.11151347309350967,
-0.16631288826465607,
-0.0035026962868869305,
0.05613217130303383,
0.22357003390789032,
-0.06941913813352585,
-0.27113717794418335,
0.21843530237674713,
-0.19560354948043823,
0.04304507374763489,
-0.15666763484477997,
0.13637115061283112,
0.148095965385437,
0.055105358362197876,
-0.2610815763473511,
-0.28724151849746704,
0.12496199458837509,
-0.26131927967071533,
-0.21907077729701996,
-0.13097791373729706,
0.2636013925075531,
-0.05563892424106598,
-0.2025928795337677,
0.15377795696258545,
0.6856271624565125,
0.06794415414333344,
-0.08290340006351471,
0.162247434258461,
-0.16989505290985107,
-0.2368931770324707,
-0.1498965471982956,
0.06041896343231201,
0.2283625453710556,
-0.4998069703578949,
-0.2230636477470398,
0.1563815474510193,
-0.189871147274971,
0.23989680409431458,
0.1788351833820343,
-0.3093417286872864,
0.1431645303964615,
-0.18194061517715454,
0.32968196272850037,
0.4337346851825714,
-0.19687077403068542,
0.0012614238075911999,
0.16488061845302582,
-0.2769864499568939,
0.14395958185195923,
0.09819163382053375,
0.09634826332330704,
-0.039808765053749084,
0.09146896004676819,
-0.11297842115163803,
0.42145469784736633,
-0.13137564063072205,
-0.08327282220125198,
-0.2045932412147522,
0.0518583208322525,
0.4903107285499573,
0.19384726881980896,
0.011559244245290756,
-0.289958119392395,
0.02322232350707054,
0.20184113085269928,
0.41681718826293945,
-0.2848469018936157,
-0.010251039639115334,
0.1488899141550064,
0.035693034529685974,
-0.1913885921239853,
-0.16317224502563477,
-0.05029146745800972,
-0.2708032429218292,
0.23678380250930786,
-0.05720851197838783,
0.3583609163761139,
0.2925865650177002,
-0.16149529814720154,
-0.034089840948581696,
-0.29292070865631104,
-0.34299561381340027,
-0.32801058888435364,
0.1961517333984375,
0.12753279507160187,
-0.01836566999554634,
0.22330231964588165,
-0.11441057920455933,
0.49931302666664124,
-0.2044023871421814,
0.03794493526220322,
-0.22938832640647888,
0.0690780058503151,
0.057429246604442596,
-0.0924549400806427,
-0.18224723637104034,
0.2621295154094696,
-0.027729835361242294,
-0.2642836272716522,
-0.07300825417041779,
0.45964452624320984,
0.2617920935153961,
0.08889522403478622,
0.03125802427530289,
-0.04961400106549263,
0.2933152914047241,
0.003848740831017494,
0.0808958113193512,
-0.049272507429122925,
-0.057169109582901,
-0.06658204644918442,
0.07503452897071838,
0.6284967660903931,
0.25951826572418213,
0.03661919757723808,
0.045342911034822464,
0.021936019882559776,
0.17950233817100525,
-0.1326722800731659,
-0.15852385759353638,
-0.14596618711948395,
0.1779649704694748,
-0.04844442009925842,
0.3755072057247162,
0.04673686996102333,
-0.5525543689727783,
-0.03953436017036438,
0.6682414412498474,
-0.08613535761833191,
0.22105680406093597,
-0.162942036986351,
0.003205922432243824,
0.012865652330219746,
0.08141060918569565,
0.40907806158065796,
0.1975967288017273,
0.19261260330677032,
0.32331186532974243,
0.03630606457591057,
-0.23480884730815887,
-0.18505334854125977,
-0.012133766897022724,
-0.18853548169136047,
-0.022024355828762054,
-0.007299824617803097,
-0.02272937260568142,
-0.32764163613319397,
-0.34388431906700134,
-0.06378728896379471,
0.2475377917289734,
0.039665382355451584,
-0.1704256385564804,
0.04976760223507881,
-0.16393697261810303,
-0.09249305725097656,
-0.5131726264953613,
-0.1697530597448349,
-0.2990206182003021,
-0.27558329701423645,
0.27799850702285767,
-0.4795275628566742,
-0.15305569767951965,
0.35168027877807617,
0.014262528158724308,
-0.0065274834632873535,
-0.28415679931640625,
-0.26993152499198914,
0.22080516815185547,
-0.09407386928796768,
-0.3664022386074066,
0.20503391325473785,
0.20376208424568176,
0.08125374466180801,
0.3301105499267578,
-0.23441877961158752,
-0.16910286247730255,
0.05250784754753113,
-0.3607354164123535,
0.11202073097229004,
-0.3015362024307251,
0.21124935150146484,
-0.003854177426546812,
-0.23633864521980286,
-0.07722100615501404,
-0.0966508537530899,
0.29109829664230347,
-0.2559051513671875,
0.06683522462844849,
0.007289521861821413,
0.1401243358850479,
0.08154831826686859,
-0.12431002408266068,
-0.8642565608024597,
-0.48757827281951904,
-0.16431863605976105,
-0.025325044989585876,
-0.1726873517036438,
0.12726141512393951,
0.12036927789449692,
-0.0235027763992548,
0.08344315737485886,
-0.13056275248527527,
-0.1321268081665039,
-0.13288283348083496,
-0.36488038301467896,
0.05418311059474945,
-0.1330408751964569,
-0.23628754913806915,
-0.0005243228515610099,
-0.10739251226186752,
0.19187813997268677,
0.010262937285006046,
-0.02843344397842884,
-0.148235484957695,
-0.026930678635835648,
0.16840597987174988,
0.07297927141189575,
0.21405009925365448,
0.16867762804031372,
0.03603426739573479,
-0.05998360738158226,
-0.13265535235404968,
0.10272108018398285,
0.357543021440506,
0.20077215135097504,
0.01795872673392296,
-0.08596893399953842,
0.1646145135164261,
0.114430733025074,
0.3161393404006958,
0.10503679513931274,
0.07517001032829285,
0.34737902879714966,
-0.2949373126029968,
0.0827236995100975,
-0.09966495633125305,
-0.22638891637325287,
0.15346282720565796,
-0.08250072598457336,
-0.007226300425827503,
0.20779839158058167,
-0.0784921646118164,
-0.27692294120788574,
-0.03209798410534859,
0.10274402797222137,
-0.1094151958823204,
-0.30945438146591187,
0.36929038166999817,
-0.2520231604576111,
0.14520777761936188,
-0.09569426625967026,
-0.04008527100086212,
0.08711636811494827,
0.11848491430282593,
0.07045620679855347,
-0.11266954243183136,
-0.1533166617155075,
0.06154680624604225,
-0.5243785977363586,
0.06317804753780365,
-0.4058927297592163,
0.2378019392490387,
0.207835853099823,
0.27640166878700256,
-0.07406159490346909,
-0.054834526032209396,
0.02776423841714859,
-0.025598959997296333,
0.413649320602417,
-0.5377342104911804,
-0.30001354217529297,
0.13355852663516998,
-0.1395600140094757,
-0.12109247595071793,
-0.03967312350869179,
-0.49015581607818604,
0.056732796132564545,
0.32451674342155457,
0.026892969384789467,
-0.23649829626083374,
-0.23501931130886078,
0.09571785479784012,
0.4035203754901886,
-0.2324526607990265,
0.114408940076828,
-0.21399429440498352,
-0.20139098167419434,
-0.07955663651227951,
0.35608425736427307,
0.12357345223426819,
0.1735675036907196,
0.06619895249605179,
-0.05263017117977142,
0.03620900213718414,
0.08017527312040329,
0.2873997390270233,
0.23674441874027252,
0.18051552772521973,
0.09609290212392807,
-0.015220037661492825,
0.08564542233943939,
0.10284191370010376,
-0.19499774277210236,
0.5514793992042542,
-0.27957361936569214,
-0.18004772067070007,
0.07516299188137054,
-0.23132190108299255,
0.49201709032058716,
0.3158746659755707,
0.06379067897796631,
0.054276105016469955,
-0.14702290296554565,
-0.02982388064265251,
-0.12731124460697174,
0.49524980783462524,
0.3691217601299286,
0.3038404583930969,
-0.5208017826080322,
-0.7163468599319458,
0.07636072486639023,
0.1433679461479187,
-0.07181727886199951,
0.3379652798175812,
0.08010286837816238,
-0.4435579776763916,
0.30294346809387207,
-0.1379784494638443,
0.829977810382843,
-0.15473292768001556,
0.14956645667552948,
0.2511029541492462,
-0.01033840887248516,
0.11989783495664597,
-0.2770320773124695,
0.05043390393257141,
-0.3902568817138672,
-0.18167707324028015,
-0.01854189857840538,
0.026672257110476494,
0.33098167181015015,
0.2546282410621643,
-0.17195995151996613,
0.3106059432029724,
0.06291225552558899,
-0.08238372206687927,
-0.16029852628707886,
0.5479099154472351,
-0.18367168307304382,
-0.17799213528633118,
-0.05547449737787247,
0.20737823843955994,
0.12095889449119568,
-0.2522972822189331,
-0.0005776934558525681,
0.044030506163835526,
-0.116780124604702,
-0.12117942422628403,
-0.1490248739719391,
0.06811417639255524,
-0.3145236670970917,
0.1270885020494461,
-0.339232474565506,
-0.46631643176078796,
0.15253756940364838,
0.2302163988351822,
0.02384355664253235,
0.041480109095573425,
0.2004447877407074,
0.22333359718322754,
-0.03610687702894211,
0.22598403692245483,
0.286974161863327,
-0.21619698405265808,
0.4443499445915222,
0.07697078585624695,
-0.4147392809391022,
0.15292306244373322,
-0.042929574847221375,
-0.15536139905452728,
-0.3987045884132385,
0.14139069616794586,
-0.08790731430053711,
-0.331720769405365,
-0.27988800406455994,
0.37102821469306946,
0.1566070020198822,
-0.3257327079772949,
0.19377799332141876,
0.17467178404331207,
-0.3566446304321289,
0.10357961058616638,
-0.29399803280830383,
-0.3408980369567871,
-0.2279253751039505,
-0.14674584567546844,
0.2551461458206177,
0.147831529378891,
0.1853155940771103,
0.17716842889785767,
0.06317785382270813,
-0.25107091665267944,
0.2935941517353058,
0.7671787738800049,
-0.36048564314842224,
-0.09447707235813141,
-0.043095074594020844,
-0.07619708776473999,
-0.12753021717071533,
0.04662605747580528,
0.0012517282739281654,
0.2928358018398285,
-0.0060275644063949585,
-0.14656107127666473,
0.02625441737473011,
0.10605351626873016,
0.3661709129810333,
0.21355584263801575,
0.10519564896821976,
0.21654479205608368,
-0.06577328592538834,
0.18734438717365265,
-0.42491963505744934,
-0.021887382492423058,
0.033500365912914276,
0.19525307416915894,
-0.18771368265151978,
0.10150903463363647,
0.24624450504779816,
0.07947926968336105,
0.2716881334781647,
-0.09820982813835144,
-0.022753247991204262,
-0.2768944799900055,
-0.2326982617378235,
0.04209443926811218,
0.0030395938083529472,
0.1464896947145462,
0.19174505770206451,
-0.11053425818681717,
0.19631661474704742,
-0.1995982676744461,
0.3462589979171753,
0.09339211136102676,
-0.02894418314099312,
0.4050980806350708,
0.13372549414634705,
0.020005807280540466,
-0.022639429196715355,
-0.015491903759539127,
-0.07562098652124405,
0.05776705592870712,
0.2735751271247864,
0.2285783588886261,
0.1661151945590973,
-0.03385034203529358,
0.10377499461174011,
0.05150451138615608,
0.10248946398496628,
0.18027189373970032,
-0.40707746148109436,
-0.10746653378009796,
0.24173152446746826,
0.014652973972260952,
0.4209897518157959,
0.45508238673210144,
-0.22328895330429077,
0.12021735310554504,
0.18411089479923248,
0.32841986417770386,
-0.3032054603099823,
-0.10176756232976913,
0.3478958010673523,
-0.1835581213235855,
0.3683905303478241,
0.5443090200424194,
0.360947847366333,
0.39159664511680603,
0.21732473373413086,
-0.33205723762512207,
-0.05905666947364807,
-0.03703343868255615,
0.22835341095924377,
0.35216274857521057,
-0.22525887191295624,
-0.013792741112411022,
0.29479458928108215,
0.012206590734422207,
0.020493753254413605,
0.31856733560562134,
-0.13469061255455017,
0.5100479125976562,
0.2785707414150238,
0.26576781272888184,
-0.11024614423513412,
-0.03816414624452591,
-0.04294021800160408,
0.0359511598944664,
-0.0425851047039032,
0.0030515030957758427,
-0.01341996993869543,
0.35712000727653503,
-0.21915362775325775,
-0.23076695203781128,
0.060033224523067474,
0.17218206822872162,
-0.17351371049880981,
-0.15810070931911469,
0.04567097872495651,
-0.07692243158817291,
-0.38533976674079895,
0.14289133250713348,
-0.09484130144119263,
-0.23335550725460052,
0.01643507182598114,
0.18705159425735474,
0.0885118693113327,
-0.1807621568441391,
0.0049227564595639706,
-0.026822833344340324,
0.0005691039259545505,
-0.2636568248271942,
0.29939714074134827,
0.14946673810482025,
0.01892327517271042,
-0.0019954938907176256,
0.005908717401325703,
0.09252100437879562,
-0.19386136531829834,
-0.15829987823963165,
0.19114986062049866,
-0.09993203729391098,
0.1267414540052414,
0.06450772285461426,
0.12449903786182404,
0.10796809941530228,
0.3817968964576721,
0.4639878273010254,
0.2002544105052948,
-0.2372899353504181,
0.033598385751247406,
0.36725053191185,
-0.1782064288854599,
-0.34924745559692383,
0.34548646211624146,
0.03472788259387016,
0.14698666334152222,
-0.42407000064849854,
0.04713143780827522,
-0.4729424715042114,
0.05397197604179382,
0.36054572463035583,
-0.2008826732635498,
0.00887762289494276,
-0.04499390721321106,
0.13982051610946655,
0.0305371955037117,
0.18623867630958557,
0.016477936878800392,
0.4034815728664398,
-0.3780132830142975,
-0.22801892459392548,
-0.6396082639694214,
0.10614576190710068,
-0.13063867390155792,
-0.1318807452917099,
-0.2288668304681778,
0.12731695175170898,
0.2996809184551239,
0.07607158273458481,
0.017816929146647453,
0.24719862639904022,
-0.06615296751260757,
0.03612539544701576,
-0.30356109142303467,
0.1115662008523941,
-0.17369690537452698,
0.27231764793395996,
0.03189164772629738,
-0.091310054063797,
-0.09707841277122498,
0.1003882959485054,
0.01122372504323721,
-0.05691894143819809,
-0.1481507271528244,
0.2393164038658142,
-0.09826536476612091,
0.45767414569854736,
0.08185898512601852,
0.4475516080856323,
-0.13742008805274963,
0.16202816367149353,
-0.2884490191936493,
-0.16931796073913574,
-0.3598201870918274,
0.3531140983104706,
0.03275361284613609,
0.3872634470462799,
0.04102705046534538,
-0.13174253702163696,
-0.218370258808136,
0.20816637575626373,
0.22043029963970184,
0.019157400354743004,
-0.04103385657072067,
0.22597530484199524,
0.2056664228439331,
-0.12050657719373703,
0.10883816331624985,
0.6713242530822754,
0.08204379677772522,
-0.042799632996320724,
0.019225824624300003,
-0.18671412765979767,
-0.04386356100440025,
-0.04476378485560417,
-0.21451778709888458,
0.061785172671079636,
0.15542134642601013,
0.247433602809906,
0.02411220595240593,
-0.5554361939430237,
-0.011370505206286907,
0.2986542880535126,
0.07164256274700165,
-0.17365762591362,
0.16478796303272247,
0.34420549869537354,
-0.05169251188635826,
-0.0447646863758564,
0.0026235829573124647,
0.11136528104543686,
-0.20343652367591858,
0.11115450412034988,
-0.3900693655014038
] |
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.05317110940814018,
0.07086572796106339,
-0.003463809145614505,
0.36295783519744873,
0.24475818872451782,
0.22018873691558838,
0.4253176748752594,
0.3036743402481079,
0.3109281361103058,
0.05098632723093033,
-0.06706521660089493,
0.23548223078250885,
-0.09579360485076904,
-0.021896250545978546,
-0.27469250559806824,
-0.11021149903535843,
0.04934752359986305,
0.05344393849372864,
-0.3843265771865845,
0.03752455115318298,
-0.3989790380001068,
0.33562180399894714,
-0.34216824173927307,
-0.006487058009952307,
-0.14163503050804138,
0.2397988736629486,
-0.055393531918525696,
0.33607277274131775,
-0.1290956288576126,
-0.37019655108451843,
0.490281879901886,
-0.09491372108459473,
0.5313913226127625,
0.22420351207256317,
-0.00011882777471328154,
0.05618523806333542,
0.3267246186733246,
-0.09271599352359772,
-0.25369614362716675,
-0.5014433860778809,
-0.049574170261621475,
-0.4797807037830353,
0.34809279441833496,
-0.04401455819606781,
-0.06950578838586807,
0.06558680534362793,
-0.11303266137838364,
-0.3628048300743103,
0.36776623129844666,
0.5194340348243713,
0.18169642984867096,
-0.21614587306976318,
-0.0732245072722435,
-0.08992721885442734,
0.5836977362632751,
0.0712953582406044,
-0.14109019935131073,
0.2741576135158539,
0.031133808195590973,
-0.23263679444789886,
-0.09600883722305298,
0.1110256016254425,
-0.0724676251411438,
0.2592613101005554,
0.2572392225265503,
0.215285986661911,
-0.13852518796920776,
-0.16854943335056305,
0.08786682784557343,
0.11505036056041718,
0.7295108437538147,
-0.11148756742477417,
-0.15947368741035461,
-0.045338843017816544,
-0.040600527077913284,
-0.094441719353199,
0.36287248134613037,
0.2874698042869568,
0.055622346699237823,
0.3495480418205261,
-0.03924916684627533,
0.03138795122504234,
-0.2870233356952667,
0.11726150661706924,
0.07139074802398682,
-0.009660632349550724,
-0.16670803725719452,
0.33070677518844604,
0.10220286250114441,
-0.003851872170343995,
0.26876208186149597,
-0.041129160672426224,
-0.1087329089641571,
0.2209756076335907,
-0.7359088659286499,
0.31059494614601135,
-0.145863875746727,
-0.028947841376066208,
-0.024291832000017166,
0.19719509780406952,
0.246408611536026,
-0.023290487006306648,
-0.0816022977232933,
0.3690756559371948,
0.2595973610877991,
0.03256715461611748,
0.015048821456730366,
0.24889671802520752,
0.2425166666507721,
-0.21277490258216858,
0.03449128195643425,
-0.182333841919899,
-0.33407294750213623,
-0.5727444887161255,
-0.045032668858766556,
0.17223086953163147,
0.2509998679161072,
-0.22741350531578064,
-0.21345794200897217,
0.15097016096115112,
-0.26551228761672974,
0.004260628949850798,
-0.13636088371276855,
0.258358895778656,
0.1820412129163742,
0.32176271080970764,
0.10223814100027084,
0.3233686089515686,
-0.08126594126224518,
-0.4609394371509552,
-0.029314279556274414,
0.1431449055671692,
-0.4125255048274994,
-0.04699655994772911,
0.4920211434364319,
-0.17247779667377472,
0.12704771757125854,
0.2477504312992096,
-0.1354365199804306,
-0.3477984666824341,
-0.013651828281581402,
-0.28143519163131714,
0.00464101554825902,
0.3041781187057495,
0.07240104675292969,
0.2251586765050888,
0.34893280267715454,
-0.20203907787799835,
-0.07289081066846848,
0.3434787392616272,
-0.45189639925956726,
-0.20658297836780548,
-0.12809568643569946,
0.0978844165802002,
-0.22820141911506653,
0.07203737646341324,
-0.33926650881767273,
0.07151080667972565,
0.05571552366018295,
-0.19551020860671997,
-0.1711062490940094,
-0.31940165162086487,
-0.26786288619041443,
-0.23124216496944427,
0.022615322843194008,
0.45516717433929443,
-0.8168231844902039,
0.2262129783630371,
-0.009860496036708355,
0.050095587968826294,
0.07995465397834778,
0.20396894216537476,
-0.26779183745384216,
0.034498654305934906,
-0.25494417548179626,
0.11573868244886398,
0.14027312397956848,
-0.21616390347480774,
-0.2937299907207489,
0.18425580859184265,
-0.05055549368262291,
-0.07490874081850052,
0.08451668173074722,
0.09225169569253922,
0.3441406786441803,
-0.017755478620529175,
-0.20499369502067566,
0.1499432474374771,
0.009418699890375137,
0.04405134543776512,
-0.2377341091632843,
-0.18225917220115662,
0.2446536272764206,
0.2318158745765686,
0.015940405428409576,
0.12413274496793747,
0.22809460759162903,
-0.6181377172470093,
0.31433793902397156,
-0.05601409450173378,
0.25229573249816895,
0.125152587890625,
0.29198524355888367,
0.06803389638662338,
0.33148542046546936,
0.05605877935886383,
-0.5451493263244629,
0.19358737766742706,
0.45344629883766174,
-0.18841052055358887,
-0.09070302546024323,
-0.016736041754484177,
-0.4643532931804657,
0.006846227683126926,
-0.18206118047237396,
-0.03296104073524475,
-0.0002792995364870876,
0.049744896590709686,
-0.08835558593273163,
-0.18197010457515717,
-0.11538854986429214,
0.4194991886615753,
-0.2807849049568176,
0.0929727628827095,
-0.33003300428390503,
0.28069642186164856,
0.13711076974868774,
-0.06222134828567505,
0.20431742072105408,
-0.07871858775615692,
0.31570035219192505,
-0.05051838606595993,
-0.1529259830713272,
0.2792814075946808,
0.3547397255897522,
-0.029462525621056557,
0.11989749222993851,
-0.19790877401828766,
0.019188454374670982,
-0.2967643439769745,
-0.009896800853312016,
0.21804411709308624,
0.3470371663570404,
-0.09319867938756943,
-0.4841006100177765,
0.3240234851837158,
-0.3189897835254669,
0.20890255272388458,
-0.2283429503440857,
0.18503455817699432,
0.25766247510910034,
-0.0349276177585125,
-0.0827430859208107,
0.028330737724900246,
0.056988269090652466,
0.025330105796456337,
0.22253316640853882,
0.09460773319005966,
-0.1744125783443451,
-0.14143793284893036,
0.06283743679523468,
0.18149025738239288,
-0.23883572220802307,
0.2301223874092102,
-0.1126142218708992,
-0.05766316130757332,
0.3364201784133911,
0.2839769721031189,
0.41594168543815613,
0.08493387699127197,
-0.2692236304283142,
-0.01800396852195263,
0.07079874724149704,
-0.18638037145137787,
0.09020789712667465,
0.00853912252932787,
0.06351722031831741,
0.19840796291828156,
0.2047157734632492,
0.09498918056488037,
-0.1371757835149765,
-0.1268928200006485,
0.18220587074756622,
0.25040730834007263,
-0.6004418134689331,
-0.017061995342373848,
-0.19775305688381195,
0.3690703809261322,
-0.23145386576652527,
-0.046976812183856964,
0.10547210276126862,
-0.2846010625362396,
-0.278026282787323,
0.3058367967605591,
-0.13327094912528992,
0.05331515893340111,
-0.20499810576438904,
0.25189152359962463,
0.11348544806241989,
-0.12922196090221405,
0.03876122087240219,
-0.18570412695407867,
-0.2578786611557007,
0.005169027019292116,
0.09140307456254959,
-0.02278810366988182,
-0.11389373987913132,
0.10331040620803833,
0.08970043808221817,
-0.3063439130783081,
-0.03272270783782005,
0.12501467764377594,
0.0054560936987400055,
0.09824717789888382,
0.12735585868358612,
-0.08568451553583145,
-0.06533817946910858,
-0.15504562854766846,
0.20962028205394745,
0.09103547781705856,
0.03842683881521225,
0.41844266653060913,
0.24055753648281097,
-0.16487637162208557,
-0.12067363411188126,
-0.6375066637992859,
-0.24014490842819214,
-0.22007319331169128,
0.044785842299461365,
-0.16695384681224823,
-0.05432228744029999,
0.06538137793540955,
0.3040771484375,
-0.05232502892613411,
0.2384752333164215,
-0.11685323715209961,
-0.10439811646938324,
-0.2288607358932495,
0.5683002471923828,
-0.2417079210281372,
-0.27700644731521606,
0.2639988362789154,
-0.034736622124910355,
0.04779979586601257,
0.35087671875953674,
-0.39672377705574036,
0.20661886036396027,
-0.06422332674264908,
0.025720998644828796,
-0.08358954638242722,
0.03711395338177681,
0.06648751348257065,
-0.032374899834394455,
0.09345456212759018,
-0.05140921473503113,
-0.1807914674282074,
0.23300574719905853,
-0.05447322875261307,
0.049729812890291214,
0.16828514635562897,
0.5563716292381287,
-0.23563697934150696,
0.6716986894607544,
0.10878496617078781,
0.10129403322935104,
0.3297634720802307,
-0.0753614604473114,
0.2564414441585541,
0.17102761566638947,
-0.22406774759292603,
0.06107792630791664,
-0.12360120564699173,
-0.33380255103111267,
0.3212262988090515,
0.008410593494772911,
-0.10485054552555084,
-0.07349235564470291,
0.2458769530057907,
-0.26121172308921814,
-0.16832299530506134,
0.1560322493314743,
-0.07413750886917114,
0.059032708406448364,
-0.008479624055325985,
0.11527379602193832,
0.06362523883581161,
-0.21086490154266357,
-0.04671955853700638,
0.13005132973194122,
0.18958471715450287,
-0.07411763817071915,
0.12870322167873383,
-0.12534818053245544,
-0.24970123171806335,
0.23639406263828278,
-0.13286036252975464,
0.44050133228302,
0.08738476037979126,
-0.07508133351802826,
0.029426952823996544,
0.1850694864988327,
0.7332042455673218,
-0.2643430531024933,
0.02621215023100376,
0.11990731954574585,
-0.05472627282142639,
-0.19267305731773376,
-0.32599666714668274,
-0.08253256231546402,
0.22199499607086182,
-0.04127873480319977,
0.21509073674678802,
-0.013186135329306126,
0.0535505972802639,
0.3859819769859314,
0.07056423276662827,
-0.15381880104541779,
-0.4156414866447449,
-0.12488111108541489,
-0.05652311071753502,
-0.13333718478679657,
-0.24282504618167877,
0.15771405398845673,
0.056348640471696854,
-0.23711475729942322,
0.10614116489887238,
-0.21838591992855072,
-0.20587746798992157,
0.3085448443889618,
0.11261466890573502,
0.2635266184806824,
0.04047587886452675,
0.19600045680999756,
0.2719370722770691,
0.12616148591041565,
0.2306043654680252,
0.7737971544265747,
-0.17090432345867157,
-0.8922719359397888,
0.24509850144386292,
-0.5180838704109192,
0.33939093351364136,
-0.03420889750123024,
-0.3213844299316406,
-0.07621366530656815,
-0.2587064206600189,
-0.14509843289852142,
-0.10392388701438904,
-0.12167572975158691,
0.07475787401199341,
-0.010652348399162292,
-0.12973403930664062,
-0.45331427454948425,
0.556205153465271,
-0.13298775255680084,
-0.16530156135559082,
0.14230166375637054,
-0.015259102918207645,
-0.3003292977809906,
0.4268862307071686,
-0.08819306641817093,
0.6560726165771484,
-0.13914747536182404,
-0.09893225878477097,
0.1329798400402069,
-0.23353376984596252,
0.3357265293598175,
-0.2730199098587036,
-0.055869121104478836,
-0.5120708346366882,
-0.14696374535560608,
-0.15901565551757812,
-0.0037425465416163206,
0.10348395258188248,
0.5652616024017334,
-0.21560387313365936,
0.31517601013183594,
-0.14411009848117828,
0.4138486385345459,
0.05452563986182213,
0.09071246534585953,
0.30589762330055237,
-0.16701512038707733,
-0.11410526186227798,
0.1325434148311615,
-0.13359224796295166,
-0.041391558945178986,
0.05168284848332405,
0.031627267599105835,
-0.2306929975748062,
-0.09532729536294937,
-0.3436087369918823,
0.3158477246761322,
-0.058837566524744034,
0.07509753108024597,
0.1861768215894699,
-0.48591455817222595,
0.5535690784454346,
0.46055901050567627,
0.1939997524023056,
-0.11143998801708221,
-0.22012223303318024,
0.10921920835971832,
0.046607811003923416,
0.05034314841032028,
-0.16320079565048218,
-0.024038169533014297,
-0.06154908984899521,
0.21524019539356232,
-0.20791330933570862,
0.28023794293403625,
-0.10532059520483017,
-0.0827157124876976,
0.22996649146080017,
0.27259787917137146,
0.21349555253982544,
-0.48616936802864075,
-0.3553227484226227,
-0.225154846906662,
0.12144457548856735,
-0.1187400296330452,
0.053074970841407776,
-0.024751702323555946,
0.10665655136108398,
-0.04460299760103226,
0.06437305361032486,
-0.3480314612388611,
0.18399734795093536,
0.22292622923851013,
-0.2328321635723114,
0.058784883469343185,
0.457063227891922,
0.49093738198280334,
-0.11834582686424255,
-0.15462113916873932,
0.039680592715740204,
0.17854852974414825,
-0.602599024772644,
0.1056106761097908,
0.06709306687116623,
0.23547843098640442,
0.17614826560020447,
0.19654463231563568,
0.20403102040290833,
-0.21131913363933563,
0.1216655820608139,
-0.5683946013450623,
-0.020787572488188744,
-0.0678645521402359,
-0.15007957816123962,
0.06089305132627487,
-0.06954281032085419,
-0.4517219364643097,
-0.05918287858366966,
-0.06510888785123825,
-0.19666606187820435,
0.08056791126728058,
0.06094904989004135,
0.055040303617715836,
0.16914249956607819,
0.3050055503845215,
-0.26260465383529663,
-0.2842242121696472,
0.017431119456887245,
0.03602132573723793,
0.07896099239587784,
-0.10896094888448715,
-0.19105641543865204,
0.16843615472316742,
-0.0031504270154982805,
0.15235115587711334,
-0.26868298649787903,
-0.19578967988491058,
-0.24909883737564087,
-0.16802531480789185,
0.08470705151557922,
0.31147444248199463,
-0.02809188701212406,
0.40063610672950745,
0.03389886021614075,
-0.12503108382225037,
-0.49432817101478577,
0.2662498354911804,
-0.20590615272521973,
0.17609071731567383,
0.08025437593460083,
0.17210666835308075,
0.1556376814842224,
0.08422116190195084,
-0.14658507704734802,
0.07102084904909134,
-0.14011313021183014,
-0.12721095979213715,
0.2502036690711975,
-0.3445926010608673,
0.18699674308300018,
0.23189058899879456,
0.33593064546585083,
0.326591819524765,
-0.13601592183113098,
-0.07455611974000931,
0.12043265998363495,
0.14175136387348175,
-0.3591192066669464,
0.196938157081604,
0.04592686891555786,
0.2983688414096832,
-0.1218518316745758,
0.27414849400520325,
-0.042308706790208817,
-0.19980506598949432,
0.08563748002052307,
0.15999449789524078,
0.6721039414405823,
-0.0011862360406666994,
0.05853397399187088,
0.2218618541955948,
-0.04327236860990524,
0.09696431457996368,
0.17679277062416077,
-0.04499395564198494,
0.09338900446891785,
0.4701838493347168,
-0.1698186993598938,
-0.06401071697473526,
0.39822277426719666,
0.21369387209415436,
-0.18834464251995087,
-0.5901330709457397,
0.20237913727760315,
0.34990450739860535,
-0.25144311785697937,
-0.16305187344551086,
0.18742862343788147,
0.6417906880378723,
0.047294680029153824,
0.06778714060783386,
-0.3391376733779907,
-0.07058817893266678,
0.08642937242984772,
-0.059724148362874985,
-0.25062528252601624,
-0.19467228651046753,
-0.4349191188812256,
0.2554754912853241,
-0.20093044638633728,
0.02674751728773117,
0.5014755129814148,
0.1956426352262497,
-0.048115074634552,
-0.5706112384796143,
0.10038919001817703,
0.26350903511047363,
0.03351696580648422,
-0.3179537057876587,
0.09914162009954453,
0.0033057034015655518,
-0.03555799275636673,
0.3778112232685089,
-0.13844037055969238,
0.3884502947330475,
0.45040562748908997,
0.06711699813604355,
-0.3161945044994354,
-0.1921665519475937,
-0.0744568407535553,
-0.05875888466835022,
0.44700080156326294,
-0.01635524071753025,
0.28282830119132996,
0.22754468023777008,
0.11046775430440903,
0.003467490430921316,
0.31394800543785095,
0.06391515582799911,
0.18890151381492615,
-0.40638595819473267,
-0.1162731945514679,
0.01896759495139122,
-0.06518007814884186,
-0.09751749038696289,
-0.221110001206398,
-0.09241597354412079,
-0.2157880961894989,
0.4446006715297699,
0.17996585369110107,
0.2071271389722824,
0.15740059316158295,
0.003211984410881996,
-0.14975512027740479,
0.18943502008914948,
0.45409098267555237,
0.04652853682637215,
-0.5287826061248779,
-0.08834502846002579,
-0.8030945062637329,
-0.00998446624726057,
-0.24493856728076935,
-0.1308869868516922,
0.047437988221645355,
0.20874275267124176,
0.30723974108695984,
0.2748600244522095,
-0.029851024970412254,
0.12221331149339676,
-0.08196134120225906,
0.33195799589157104,
-0.1741870492696762,
-0.1797349452972412,
-0.10868517309427261,
0.1004779264330864,
-0.06269092857837677,
-0.4160614013671875,
0.08698520809412003,
0.3398020565509796,
-0.11946957558393478,
-0.18368622660636902,
-0.10132458806037903,
0.059979718178510666,
-0.2456311136484146,
0.41146934032440186,
-0.005890015512704849,
0.4132961332798004,
0.033500995486974716,
0.2946881651878357,
-0.4566004276275635,
-0.27641820907592773,
-0.19113309681415558,
0.17522373795509338,
-0.13808400928974152,
0.4519542455673218,
-0.34545254707336426,
0.03477974981069565,
-0.18179184198379517,
-0.04874499514698982,
0.01959683559834957,
0.23848742246627808,
-0.40802285075187683,
0.2792750895023346,
-0.11067230254411697,
0.22920455038547516,
-0.17601214349269867,
-0.13461580872535706,
-0.12041950225830078,
0.25372955203056335,
-0.10357768088579178,
-0.27412450313568115,
0.3016406297683716,
-0.2517797648906708,
-0.28876981139183044,
0.046947181224823,
0.22829633951187134,
0.16200695931911469,
0.10297954082489014,
-0.5200514197349548,
-0.03614391013979912,
0.3270944058895111,
-0.07725286483764648,
-0.11455140262842178,
0.10697171092033386,
0.11763342469930649,
0.0564756765961647,
-0.15196911990642548,
0.22317105531692505,
0.3093075454235077,
-0.18569089472293854,
-0.173055961728096,
-0.3540093004703522
] |
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.0901079848408699,
0.01711261086165905,
0.016796015202999115,
0.3881016671657562,
0.29255369305610657,
0.2115875482559204,
0.384727418422699,
0.22975920140743256,
0.22242267429828644,
0.0898580551147461,
-0.10132953524589539,
0.25655126571655273,
-0.09435275942087173,
0.03823256120085716,
-0.251209557056427,
-0.1036805585026741,
0.01044713705778122,
0.08899764716625214,
-0.2961689829826355,
0.09088387340307236,
-0.3902239501476288,
0.3168075382709503,
-0.382779598236084,
-0.0461561493575573,
-0.17666113376617432,
0.2577841281890869,
0.0003096121654380113,
0.2659316658973694,
-0.09586799144744873,
-0.44077780842781067,
0.5010362267494202,
0.0035071554593741894,
0.5712622404098511,
0.34009963274002075,
-0.00012030696962028742,
0.016734782606363297,
0.3593451976776123,
-0.1578395813703537,
-0.2551814913749695,
-0.48667553067207336,
-0.06360041350126266,
-0.4186859130859375,
0.33377256989479065,
-0.12731856107711792,
-0.13251470029354095,
0.05670361965894699,
-0.0902741476893425,
-0.526262104511261,
0.3351171612739563,
0.48167064785957336,
0.1699000597000122,
-0.16704319417476654,
-0.19625987112522125,
0.01228871289640665,
0.634459376335144,
0.03839532658457756,
-0.1703585535287857,
0.23076419532299042,
0.060028184205293655,
-0.04783095791935921,
-0.07723980396986008,
0.04145652800798416,
-0.09991348534822464,
0.28011709451675415,
0.24864917993545532,
0.21078118681907654,
-0.22275161743164062,
-0.13977137207984924,
0.10075990110635757,
0.18459509313106537,
0.7821590900421143,
-0.15757432579994202,
-0.16055965423583984,
-0.01456363219767809,
-0.024494357407093048,
-0.08837652951478958,
0.32679763436317444,
0.30575865507125854,
0.049721553921699524,
0.32306143641471863,
-0.1105090081691742,
0.12781386077404022,
-0.2835090458393097,
0.06460223346948624,
0.07318070530891418,
-0.028562501072883606,
-0.23634076118469238,
0.32047152519226074,
0.04314526543021202,
-0.012709873728454113,
0.3014174699783325,
-0.12812142074108124,
-0.15164658427238464,
0.15677602589130402,
-0.7318522334098816,
0.29940858483314514,
-0.18910007178783417,
-0.08311777561903,
-0.013910874724388123,
0.14706365764141083,
0.2610982656478882,
0.040913306176662445,
-0.049524225294589996,
0.36948537826538086,
0.18441784381866455,
0.06234273314476013,
0.07447735220193863,
0.21233704686164856,
0.2606664001941681,
-0.19231505692005157,
-0.024511246010661125,
-0.12138620764017105,
-0.2915119528770447,
-0.47154906392097473,
-0.10394944250583649,
0.12353697419166565,
0.21581703424453735,
-0.23656043410301208,
-0.21365974843502045,
0.13572965562343597,
-0.22366930544376373,
0.018239367753267288,
-0.11535071581602097,
0.28756192326545715,
0.096131332218647,
0.23707734048366547,
0.08447211235761642,
0.1946081668138504,
-0.05932150408625603,
-0.41938313841819763,
-0.03206394612789154,
0.08895988762378693,
-0.3964945375919342,
-0.008943288587033749,
0.42538705468177795,
-0.205912247300148,
0.15510578453540802,
0.20905230939388275,
-0.18071389198303223,
-0.37634584307670593,
-0.1051810085773468,
-0.2998530864715576,
0.12269976735115051,
0.23508493602275848,
0.07228752225637436,
0.22527137398719788,
0.17585907876491547,
-0.2096451371908188,
-0.09481662511825562,
0.3743317723274231,
-0.4765123724937439,
-0.20376302301883698,
-0.11296143382787704,
0.0870465487241745,
-0.3702281415462494,
0.042812611907720566,
-0.47173210978507996,
0.09120874851942062,
0.011476987041532993,
-0.1476507931947708,
-0.18466509878635406,
-0.3796909749507904,
-0.34598782658576965,
-0.2003355622291565,
0.056269168853759766,
0.49000459909439087,
-0.7549688816070557,
0.20111779868602753,
0.0685684010386467,
0.08406773209571838,
0.1757284551858902,
0.13876986503601074,
-0.22322523593902588,
0.09981118887662888,
-0.29252681136131287,
0.07603048533201218,
0.11721401661634445,
-0.11240754276514053,
-0.3250759243965149,
0.1897110491991043,
-0.021065684035420418,
-0.03491082414984703,
0.19097092747688293,
0.07664532214403152,
0.4279765188694,
-0.00001722240267554298,
-0.2978318929672241,
0.1610572636127472,
0.01828983798623085,
0.09787251800298691,
-0.2641846537590027,
-0.2243628203868866,
0.21959619224071503,
0.24297909438610077,
0.04289565235376358,
0.0870603695511818,
0.29060864448547363,
-0.4773259460926056,
0.2948075532913208,
-0.08372177183628082,
0.20050837099552155,
0.13040168583393097,
0.1938519924879074,
-0.0031295327935367823,
0.3042299747467041,
-0.02095474675297737,
-0.5490700602531433,
0.20130117237567902,
0.5036669373512268,
-0.12739531695842743,
-0.054686978459358215,
-0.043355002999305725,
-0.43412062525749207,
-0.034621551632881165,
-0.17572098970413208,
0.04964825510978699,
-0.02563757263123989,
0.10515886545181274,
-0.07837197929620743,
-0.1835366189479828,
-0.07457809895277023,
0.36728909611701965,
-0.31821733713150024,
0.059287551790475845,
-0.3288670778274536,
0.30527254939079285,
0.1356864869594574,
-0.09795555472373962,
0.2334701120853424,
-0.03401743248105049,
0.26358652114868164,
-0.15654735267162323,
-0.1594051867723465,
0.282595694065094,
0.39722368121147156,
-0.008915238082408905,
0.05685257539153099,
-0.1653585284948349,
0.04499493166804314,
-0.2886993885040283,
-0.03964487835764885,
0.20836618542671204,
0.32891950011253357,
-0.052528854459524155,
-0.3882872462272644,
0.34061163663864136,
-0.3962658941745758,
0.212267205119133,
-0.18585045635700226,
0.06363147497177124,
0.2840835154056549,
-0.06279345601797104,
-0.06255269795656204,
0.03682104870676994,
0.06394481658935547,
0.054122935980558395,
0.231915682554245,
0.11553602665662766,
-0.16056711971759796,
-0.08009128272533417,
0.23992449045181274,
0.19333931803703308,
-0.2646181583404541,
0.22493259608745575,
-0.1317932903766632,
-0.06546996533870697,
0.3131312429904938,
0.2746329605579376,
0.38219839334487915,
0.11154620349407196,
-0.2823300361633301,
-0.0077091408893466,
0.15241362154483795,
-0.23356831073760986,
0.13160130381584167,
0.1034611389040947,
0.03537028655409813,
0.21095465123653412,
0.19889619946479797,
0.10485009849071503,
-0.17259806394577026,
-0.1863420158624649,
0.17257650196552277,
0.2190564125776291,
-0.58054119348526,
0.004897243343293667,
-0.22968746721744537,
0.3273845314979553,
-0.27824583649635315,
0.05854242667555809,
0.173369899392128,
-0.21189555525779724,
-0.33726900815963745,
0.2768927812576294,
-0.129485622048378,
0.046771563589572906,
-0.15422677993774414,
0.3068201541900635,
0.11765942722558975,
-0.2467563897371292,
0.04692468047142029,
-0.2137754261493683,
-0.3152797222137451,
-0.007144901901483536,
0.10425233840942383,
0.03409688547253609,
-0.1043616235256195,
-0.03734910488128662,
0.0876658484339714,
-0.2402620166540146,
-0.08279441297054291,
0.163979172706604,
0.013761749491095543,
0.13850528001785278,
0.10755959153175354,
-0.12621240317821503,
-0.04869966208934784,
-0.15883560478687286,
0.14372529089450836,
0.01944122090935707,
0.014621183276176453,
0.38278907537460327,
0.21634159982204437,
-0.209562748670578,
-0.10905616730451584,
-0.6926320791244507,
-0.17958296835422516,
-0.22486968338489532,
0.025013821199536324,
-0.1732683926820755,
-0.042829662561416626,
0.04706228896975517,
0.3236672878265381,
-0.023880045861005783,
0.20333628356456757,
-0.05358225479722023,
-0.05622756481170654,
-0.3528067171573639,
0.5881902575492859,
-0.2043512612581253,
-0.3377241790294647,
0.2926170825958252,
-0.09083086252212524,
0.01033441536128521,
0.3109966814517975,
-0.4887528717517853,
0.2925717234611511,
-0.05507760867476463,
0.07202709466218948,
-0.003576969262212515,
0.029729919508099556,
0.022240012884140015,
-0.03561897575855255,
0.1201741099357605,
-0.054618172347545624,
-0.24497656524181366,
0.1972089260816574,
-0.07574155926704407,
0.11966957151889801,
0.2698405981063843,
0.43401068449020386,
-0.23184528946876526,
0.6490848064422607,
0.09439204633235931,
0.006586376111954451,
0.286389023065567,
-0.03696031495928764,
0.3239874541759491,
0.11930699646472931,
-0.1768079549074173,
0.1326802521944046,
-0.09769556671380997,
-0.3513123691082001,
0.4459335207939148,
0.01275290735065937,
-0.00886031985282898,
-0.07529640197753906,
0.2621171176433563,
-0.1663680374622345,
-0.1729792207479477,
0.17629992961883545,
-0.1056276187300682,
0.03492526337504387,
-0.014869763515889645,
0.11562703549861908,
0.10184777528047562,
-0.27591705322265625,
-0.04725106060504913,
0.1879250854253769,
0.191606342792511,
-0.09054132550954819,
0.0025329880882054567,
-0.038391683250665665,
-0.2599624991416931,
0.2224002480506897,
-0.03282583877444267,
0.4320129454135895,
0.12237730622291565,
-0.004462261218577623,
0.057493165135383606,
0.18654224276542664,
0.6240667700767517,
-0.2614254057407379,
0.09625013917684555,
0.12755298614501953,
-0.05154244974255562,
-0.23467567563056946,
-0.29811257123947144,
-0.13585799932479858,
0.13462020456790924,
0.03217758238315582,
0.18761701881885529,
-0.02902849204838276,
0.007155240513384342,
0.4268553555011749,
0.10153749585151672,
-0.16029277443885803,
-0.4608372449874878,
-0.12650133669376373,
-0.06462475657463074,
-0.0824347734451294,
-0.2703118324279785,
0.1493467092514038,
0.1094142273068428,
-0.29649287462234497,
0.0023713030386716127,
-0.23984882235527039,
-0.23558948934078217,
0.29560965299606323,
0.15719883143901825,
0.24426670372486115,
0.10966034978628159,
0.24600321054458618,
0.19966083765029907,
0.11051831394433975,
0.33506256341934204,
0.794323205947876,
-0.21340444684028625,
-0.8323937654495239,
0.25028499960899353,
-0.49994319677352905,
0.33538228273391724,
-0.030273808166384697,
-0.34849461913108826,
-0.008195103146135807,
-0.2992197871208191,
-0.15623874962329865,
-0.15140549838542938,
-0.012248638086020947,
0.035702381283044815,
0.047907330095767975,
-0.08279584348201752,
-0.47536706924438477,
0.5408316254615784,
-0.16370126605033875,
-0.1382281482219696,
0.04935850575566292,
-0.008982384577393532,
-0.34958311915397644,
0.49447765946388245,
-0.08111529797315598,
0.6880195140838623,
-0.1763126105070114,
-0.12905935943126678,
0.07146607339382172,
-0.2028663158416748,
0.34212610125541687,
-0.25394487380981445,
-0.058268167078495026,
-0.49428462982177734,
-0.22011785209178925,
-0.14253295958042145,
-0.041738756000995636,
0.1611691564321518,
0.5277663469314575,
-0.20606522262096405,
0.31259050965309143,
-0.018413105979561806,
0.5204393863677979,
0.11012180149555206,
0.17577026784420013,
0.38559815287590027,
-0.15652428567409515,
-0.17279259860515594,
0.09802378714084625,
-0.1834190934896469,
-0.10852445662021637,
0.07404883205890656,
-0.0011509926989674568,
-0.20792219042778015,
-0.05599149316549301,
-0.32361772656440735,
0.2994099259376526,
-0.05775207653641701,
-0.07154930382966995,
0.11646340787410736,
-0.518186092376709,
0.6153255105018616,
0.4792633056640625,
0.15953639149665833,
-0.005980154033750296,
-0.186323881149292,
0.053788814693689346,
-0.030851075425744057,
0.017278475686907768,
-0.12234064191579819,
-0.004303153604269028,
-0.03222300112247467,
0.22114744782447815,
-0.22932948172092438,
0.2947222888469696,
-0.08063285797834396,
-0.11313455551862717,
0.3033478558063507,
0.225276380777359,
0.2555886209011078,
-0.4614579379558563,
-0.3070763051509857,
-0.22533081471920013,
0.10912612825632095,
-0.12416486442089081,
0.04223472252488136,
-0.09583451598882675,
0.07112094759941101,
0.08820235729217529,
0.13381493091583252,
-0.3890288770198822,
0.12391547858715057,
0.21908406913280487,
-0.17845670878887177,
0.0967714935541153,
0.430288165807724,
0.429840087890625,
-0.133946493268013,
-0.13511508703231812,
0.10604073107242584,
0.08507883548736572,
-0.4980717599391937,
0.14171749353408813,
0.006017409730702639,
0.22846193611621857,
0.1437239646911621,
0.23852527141571045,
0.19990044832229614,
-0.2316465824842453,
0.1122671365737915,
-0.563554584980011,
-0.021905113011598587,
-0.11687628924846649,
-0.1212233304977417,
0.10353048145771027,
-0.005763361230492592,
-0.3888210654258728,
-0.1755332201719284,
-0.05255616456270218,
-0.18561777472496033,
0.08551327139139175,
0.04747069999575615,
0.1009463518857956,
0.20809869468212128,
0.3193141520023346,
-0.26979196071624756,
-0.32969555258750916,
-0.011308525688946247,
0.060837749391794205,
0.07618121057748795,
-0.12395264208316803,
-0.22314245998859406,
0.19140422344207764,
0.04447626695036888,
0.11034948378801346,
-0.3429811894893646,
-0.21334528923034668,
-0.25087153911590576,
-0.21870292723178864,
0.13683563470840454,
0.32495978474617004,
-0.04595990478992462,
0.45948028564453125,
0.05266152322292328,
-0.11932972073554993,
-0.5032331347465515,
0.31882598996162415,
-0.22902636229991913,
0.3656269609928131,
0.0728343054652214,
0.22885505855083466,
0.14215052127838135,
0.10327725112438202,
-0.12164239585399628,
0.026913847774267197,
-0.09532298892736435,
-0.09337747097015381,
0.3047417998313904,
-0.38032257556915283,
0.1549522876739502,
0.2595806419849396,
0.3093911409378052,
0.35067033767700195,
-0.13019666075706482,
-0.21257494390010834,
0.09248417615890503,
0.09705696254968643,
-0.36416736245155334,
0.11888010054826736,
0.06672520935535431,
0.3423576056957245,
-0.06951761990785599,
0.34173792600631714,
0.03327859193086624,
-0.2004045695066452,
0.11326617747545242,
0.147734135389328,
0.6941475868225098,
0.13964834809303284,
0.1238417848944664,
0.18393754959106445,
-0.0157240629196167,
0.15736407041549683,
0.2216387689113617,
-0.005368728190660477,
0.021260198205709457,
0.45863065123558044,
-0.11599865555763245,
0.03836185112595558,
0.42426252365112305,
0.29858532547950745,
-0.15761393308639526,
-0.5123623609542847,
0.29239293932914734,
0.3320298492908478,
-0.19770054519176483,
-0.10586903244256973,
0.21243582665920258,
0.536016047000885,
0.03463292121887207,
0.04186967760324478,
-0.3084718883037567,
-0.18613006174564362,
0.06841306388378143,
-0.08897976577281952,
-0.17091453075408936,
-0.19573065638542175,
-0.3741852641105652,
0.27572813630104065,
-0.20030274987220764,
-0.012833713553845882,
0.47410404682159424,
0.18806831538677216,
-0.05183378979563713,
-0.5019605159759521,
0.13635475933551788,
0.23277752101421356,
0.048685092478990555,
-0.313775897026062,
0.1842677742242813,
-0.050122980028390884,
0.010446025989949703,
0.40372294187545776,
-0.04951474815607071,
0.3289111256599426,
0.4287269413471222,
0.05472434684634209,
-0.42915934324264526,
-0.15338674187660217,
-0.08468280732631683,
-0.06404227763414383,
0.49887946248054504,
-0.0862208753824234,
0.16866232454776764,
0.25313639640808105,
0.09042135626077652,
0.01217060349881649,
0.32757332921028137,
0.14073459804058075,
0.13826796412467957,
-0.41574332118034363,
-0.10138266533613205,
0.08896727859973907,
-0.05861344933509827,
-0.0926445797085762,
-0.18181441724300385,
-0.03695539012551308,
-0.19805265963077545,
0.4690280556678772,
0.06864555925130844,
0.2260662168264389,
0.16461950540542603,
0.0022849501110613346,
-0.19563093781471252,
0.2916516959667206,
0.38277748227119446,
0.03305944427847862,
-0.5024469494819641,
-0.047883544117212296,
-0.7514443397521973,
0.03446999192237854,
-0.10558532923460007,
-0.14399348199367523,
0.028426848351955414,
0.18963462114334106,
0.2427150458097458,
0.31669509410858154,
-0.06706669926643372,
0.12631765007972717,
-0.06662856042385101,
0.33259060978889465,
-0.23327119648456573,
-0.2137622833251953,
-0.08283037692308426,
0.049771036952733994,
-0.11091142892837524,
-0.4989267587661743,
0.12409085035324097,
0.258605420589447,
-0.1643969863653183,
-0.19730161130428314,
-0.08317381143569946,
0.08809582889080048,
-0.3322629928588867,
0.41267040371894836,
-0.03743625804781914,
0.4819599986076355,
-0.04890017956495285,
0.2920439839363098,
-0.3914589583873749,
-0.2983892261981964,
-0.15491807460784912,
0.22188717126846313,
-0.06461170315742493,
0.43548280000686646,
-0.31109848618507385,
0.020878227427601814,
-0.2157052606344223,
-0.10985683649778366,
0.08013945072889328,
0.24708639085292816,
-0.42905282974243164,
0.2016548365354538,
-0.19044046103954315,
0.22226843237876892,
-0.14852817356586456,
-0.10519245266914368,
-0.1315118372440338,
0.24250838160514832,
-0.06215602904558182,
-0.22592675685882568,
0.27117496728897095,
-0.22850757837295532,
-0.26348039507865906,
0.047784626483917236,
0.20379967987537384,
0.16801483929157257,
0.08447370678186417,
-0.5076406598091125,
0.03725454583764076,
0.40073081851005554,
-0.13542696833610535,
-0.06882812082767487,
0.16573213040828705,
0.044345781207084656,
0.13959088921546936,
-0.15898042917251587,
0.1779278814792633,
0.2822132408618927,
-0.1992385983467102,
-0.20893560349941254,
-0.3870801031589508
] |
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.011863360181450844,
0.08087777346372604,
-0.01937102898955345,
0.46244746446609497,
0.28913119435310364,
0.169100821018219,
0.39548254013061523,
0.24879316985607147,
0.2549254298210144,
0.1220235750079155,
-0.18819375336170197,
0.22736786305904388,
-0.1354268491268158,
-0.015302896499633789,
-0.249722421169281,
-0.09352239221334457,
0.02609766460955143,
0.059904392808675766,
-0.37322381138801575,
-0.009030671790242195,
-0.35829660296440125,
0.34655168652534485,
-0.31808292865753174,
-0.07678261399269104,
-0.1004316583275795,
0.13664960861206055,
-0.0739043578505516,
0.3516082167625427,
-0.25659313797950745,
-0.2810681462287903,
0.46028611063957214,
0.027672672644257545,
0.5446313619613647,
0.32261526584625244,
-0.00011880284000653774,
0.11578892171382904,
0.2574635148048401,
-0.12578055262565613,
-0.17165115475654602,
-0.6218055486679077,
0.001718456158414483,
-0.48478665947914124,
0.2545417249202728,
-0.1264304518699646,
-0.12618504464626312,
0.04418731853365898,
-0.09748667478561401,
-0.38083890080451965,
0.49751418828964233,
0.5468582510948181,
0.16082045435905457,
-0.21789591014385223,
-0.0026591885834932327,
0.05655656009912491,
0.67342209815979,
0.04771525412797928,
-0.1692202240228653,
0.27079007029533386,
0.026053087785840034,
-0.08652718365192413,
-0.08803939074277878,
0.13686491549015045,
-0.08833833783864975,
0.29050758481025696,
0.2541850805282593,
0.2660018503665924,
-0.1604851931333542,
-0.2315119206905365,
0.06648721545934677,
0.18385528028011322,
0.6319193840026855,
-0.07598264515399933,
-0.18483665585517883,
-0.04730970412492752,
0.0015069341752678156,
-0.2142903208732605,
0.3849792182445526,
0.32181963324546814,
-0.05360625684261322,
0.33487632870674133,
-0.15933676064014435,
0.04912661388516426,
-0.4021942615509033,
0.15638799965381622,
0.0565398707985878,
0.01673237979412079,
-0.2711094915866852,
0.24739782512187958,
0.16203205287456512,
0.04098179563879967,
0.3063589632511139,
0.01250960398465395,
-0.09588994830846786,
0.2550711929798126,
-0.6877474784851074,
0.32424190640449524,
-0.16100624203681946,
-0.04710053652524948,
-0.037341054528951645,
0.184158056974411,
0.3348778784275055,
0.018604787066578865,
-0.10093904286623001,
0.33237290382385254,
0.1696474254131317,
0.07245102524757385,
-0.06948895752429962,
0.31014391779899597,
0.3111259639263153,
-0.14185968041419983,
0.08898898959159851,
-0.19576087594032288,
-0.3813565969467163,
-0.5510752201080322,
-0.13707181811332703,
0.15352143347263336,
0.2152675837278366,
-0.19137324392795563,
-0.13480734825134277,
0.0824972540140152,
-0.2958437204360962,
0.041200630366802216,
-0.10370493680238724,
0.2584912180900574,
0.1181265339255333,
0.19296513497829437,
0.1120181754231453,
0.21782788634300232,
-0.06696297228336334,
-0.35182908177375793,
-0.00488133542239666,
0.15075892210006714,
-0.4125787615776062,
-0.04205908626317978,
0.4580540955066681,
-0.1998307853937149,
0.14303149282932281,
0.16528521478176117,
-0.031720444560050964,
-0.3051404654979706,
-0.027504000812768936,
-0.3450388014316559,
0.1042647510766983,
0.3114553689956665,
0.09196652472019196,
0.17807622253894806,
0.25980138778686523,
-0.2742815613746643,
-0.06500345468521118,
0.25497111678123474,
-0.44015607237815857,
-0.11461826413869858,
-0.07221529632806778,
0.07122781127691269,
-0.2610425353050232,
0.16872848570346832,
-0.5450237989425659,
0.11310385167598724,
-0.017152661457657814,
-0.1490578055381775,
-0.19416069984436035,
-0.3184814751148224,
-0.2939896583557129,
-0.2533071041107178,
0.08775946497917175,
0.41056010127067566,
-0.7388883233070374,
0.1863694190979004,
-0.007995407097041607,
0.008458110503852367,
0.14233849942684174,
0.2571277618408203,
-0.2166779637336731,
-0.007667198311537504,
-0.24000859260559082,
0.05251821503043175,
0.19947566092014313,
-0.2259487807750702,
-0.46376508474349976,
0.14561937749385834,
0.012509196996688843,
-0.04598985239863396,
0.10682272166013718,
0.024745438247919083,
0.4188019335269928,
0.09536713361740112,
-0.23247332870960236,
0.2021094560623169,
0.021801158785820007,
0.053707800805568695,
-0.27094346284866333,
-0.25557416677474976,
0.2727677822113037,
0.23129896819591522,
0.05673100799322128,
0.07272521406412125,
0.25548499822616577,
-0.5654008388519287,
0.31759923696517944,
-0.09550610929727554,
0.253754198551178,
0.10378997772932053,
0.30583086609840393,
0.011923318728804588,
0.25852349400520325,
0.020923636853694916,
-0.5154773592948914,
0.1781054139137268,
0.3431980311870575,
-0.11954975873231888,
-0.12806932628154755,
-0.030528273433446884,
-0.4309691786766052,
-0.13885389268398285,
-0.2483629435300827,
-0.1230340525507927,
0.009785515256226063,
0.07913324981927872,
0.006721791811287403,
-0.17649959027767181,
-0.11148940026760101,
0.4863346219062805,
-0.343307226896286,
0.10736916959285736,
-0.38112571835517883,
0.25622811913490295,
0.11002446711063385,
-0.025772027671337128,
0.24724014103412628,
-0.062050119042396545,
0.26986005902290344,
-0.13248005509376526,
-0.17804662883281708,
0.20743639767169952,
0.34868788719177246,
-0.06012331321835518,
0.058441027998924255,
-0.14654967188835144,
0.04861947521567345,
-0.27876749634742737,
-0.06392981112003326,
0.15577365458011627,
0.3600313663482666,
-0.04605041444301605,
-0.5185000896453857,
0.3144540786743164,
-0.31828057765960693,
0.18413594365119934,
-0.16503678262233734,
0.10023072361946106,
0.2616061270236969,
0.011041771620512009,
-0.13402977585792542,
0.00649981340393424,
0.054611653089523315,
0.10288514941930771,
0.3047705590724945,
0.006156272254884243,
-0.0917271301150322,
-0.1693318486213684,
0.08667746931314468,
0.16972403228282928,
-0.25211620330810547,
0.20949208736419678,
-0.07890478521585464,
-0.052783362567424774,
0.3029036521911621,
0.30030006170272827,
0.36950981616973877,
0.06684384495019913,
-0.2557030916213989,
0.027407025918364525,
0.09871549159288406,
-0.20536135137081146,
0.04388812929391861,
0.04508683457970619,
0.13057860732078552,
0.1671069860458374,
0.2208329439163208,
0.1397264003753662,
-0.14625658094882965,
-0.14375215768814087,
0.19359298050403595,
0.2692377269268036,
-0.5836173892021179,
0.0046391673386096954,
-0.25201132893562317,
0.28154879808425903,
-0.17763037979602814,
0.0017939205281436443,
0.10169737786054611,
-0.21049433946609497,
-0.35040920972824097,
0.29138433933258057,
-0.032698724418878555,
0.016931092366576195,
-0.02120981551706791,
0.3473847806453705,
0.10489233583211899,
-0.07630414515733719,
-0.02408374659717083,
-0.17350563406944275,
-0.23512159287929535,
0.01993889920413494,
0.04435781016945839,
0.0041399081237614155,
-0.0721159502863884,
0.0316154845058918,
0.01955658569931984,
-0.2486417293548584,
-0.12166523188352585,
0.15495754778385162,
-0.007236725650727749,
0.18079140782356262,
0.09412229061126709,
-0.07610590755939484,
-0.10425141453742981,
-0.030755387619137764,
0.1715763360261917,
0.104867123067379,
-0.0070717912167310715,
0.27810588479042053,
0.20357808470726013,
-0.1809636950492859,
-0.08322646468877792,
-0.5839014649391174,
-0.36338263750076294,
-0.22678829729557037,
0.06761151552200317,
-0.11464237421751022,
-0.005289518274366856,
0.09916852414608002,
0.2561664879322052,
0.027477296069264412,
0.21744541823863983,
-0.05610321834683418,
-0.13613130152225494,
-0.3465023636817932,
0.5890859365463257,
-0.2951652407646179,
-0.3459741473197937,
0.2518584132194519,
-0.05807502940297127,
0.06556323170661926,
0.45440760254859924,
-0.44825777411460876,
0.149894580245018,
-0.031935762614011765,
0.07503896951675415,
0.022417256608605385,
0.02622050605714321,
0.0370180681347847,
-0.08963248878717422,
0.14116710424423218,
-0.041019827127456665,
-0.1947053223848343,
0.1235547736287117,
-0.0017064489657059312,
0.10289618372917175,
0.24873168766498566,
0.44182100892066956,
-0.18636392056941986,
0.7564942836761475,
0.16801148653030396,
0.07717352360486984,
0.3038161098957062,
-0.141371488571167,
0.3919907510280609,
0.19626715779304504,
-0.2521839737892151,
0.13083526492118835,
-0.0893937349319458,
-0.27903902530670166,
0.2910520136356354,
-0.003092378145083785,
-0.12455156445503235,
-0.14321587979793549,
0.18904715776443481,
-0.3418022692203522,
-0.16458377242088318,
0.12098221480846405,
0.07233741134405136,
0.08356441557407379,
0.0051699415780603886,
0.1673479825258255,
0.10780638456344604,
-0.27570992708206177,
-0.13253527879714966,
0.275966078042984,
0.16778664290905,
-0.03507299721240997,
0.166451558470726,
-0.1171150729060173,
-0.39320874214172363,
0.23385247588157654,
-0.06991162151098251,
0.3405802547931671,
0.15472173690795898,
0.02696705423295498,
0.04911435395479202,
0.12860894203186035,
0.7292765378952026,
-0.28674212098121643,
-0.04992068558931351,
0.16833040118217468,
-0.11484553664922714,
-0.18533943593502045,
-0.2699635922908783,
-0.13475686311721802,
0.1397525817155838,
0.04228056222200394,
0.2738834619522095,
0.009045989252626896,
0.03845109045505524,
0.38091322779655457,
0.03717988356947899,
-0.15058748424053192,
-0.34227779507637024,
-0.12472613900899887,
-0.10892274975776672,
-0.1365220844745636,
-0.21562691032886505,
0.10308226197957993,
0.15270520746707916,
-0.2631790339946747,
0.033828217536211014,
-0.21286408603191376,
-0.1947251707315445,
0.2898355722427368,
0.22484421730041504,
0.23152530193328857,
0.1369868367910385,
0.13357704877853394,
0.3725118935108185,
0.15324606001377106,
0.23074333369731903,
0.7831404209136963,
-0.25038203597068787,
-0.8798395395278931,
0.2520805597305298,
-0.5395920872688293,
0.27460870146751404,
0.06726016849279404,
-0.39261895418167114,
-0.06925957649946213,
-0.19089823961257935,
-0.1358874887228012,
-0.13305063545703888,
0.03946215659379959,
0.07275993376970291,
0.029899191111326218,
-0.12871882319450378,
-0.5149621367454529,
0.5257357954978943,
-0.0998036190867424,
-0.18122896552085876,
0.02022721990942955,
0.014194534160196781,
-0.36942723393440247,
0.4248119294643402,
-0.0550527423620224,
0.7185195088386536,
-0.15438403189182281,
-0.06646832078695297,
0.1947965919971466,
-0.15812255442142487,
0.4200713634490967,
-0.2776695191860199,
0.008203639648854733,
-0.38429194688796997,
-0.17450353503227234,
-0.1966462880373001,
0.013768373057246208,
0.1733611524105072,
0.5210564136505127,
-0.1452002078294754,
0.3163963258266449,
0.001698979060165584,
0.3645545244216919,
0.026459740474820137,
0.015500673092901707,
0.374176949262619,
-0.17928250133991241,
-0.19208525121212006,
0.11077436059713364,
-0.13847820460796356,
0.015448265708982944,
0.09687701612710953,
0.057058513164520264,
-0.3032517731189728,
-0.05056920275092125,
-0.4131681025028229,
0.23847903311252594,
-0.1725190430879593,
0.0442093089222908,
0.1149674728512764,
-0.5480042099952698,
0.5427279472351074,
0.45062002539634705,
0.24101725220680237,
-0.0006863743183203042,
-0.2381746768951416,
0.059483885765075684,
0.008939086459577084,
-0.04554273188114166,
-0.17698901891708374,
-0.02320137247443199,
-0.07912719249725342,
0.17295095324516296,
-0.24298106133937836,
0.3244452476501465,
-0.0582633875310421,
-0.08374147862195969,
0.22001318633556366,
0.2635113000869751,
0.24228127300739288,
-0.43295881152153015,
-0.2782204747200012,
-0.2240789383649826,
0.09294774383306503,
-0.10384815186262131,
0.04449824243783951,
-0.07980238646268845,
0.08798225969076157,
-0.0037026964128017426,
0.12561030685901642,
-0.39433836936950684,
0.1475493162870407,
0.2292744517326355,
-0.20912782847881317,
0.0742143839597702,
0.3961913287639618,
0.441880464553833,
-0.15955162048339844,
-0.13382723927497864,
0.07724040746688843,
0.1888340711593628,
-0.4828433692455292,
0.11608687788248062,
0.1250007003545761,
0.2439943552017212,
0.10877896845340729,
0.20836330950260162,
0.21342359483242035,
-0.2776612937450409,
0.14649370312690735,
-0.6198530793190002,
-0.02548344060778618,
-0.10957091301679611,
-0.14040084183216095,
0.07561466842889786,
0.049705568701028824,
-0.44967228174209595,
-0.1291392743587494,
-0.011774013750255108,
-0.18857470154762268,
0.13997890055179596,
0.040779683738946915,
0.018043506890535355,
0.2311221808195114,
0.2858007550239563,
-0.20574422180652618,
-0.32246485352516174,
-0.03622233122587204,
0.12147559225559235,
0.0656232014298439,
-0.10713876783847809,
-0.27272307872772217,
0.17286592721939087,
-0.0013993176398798823,
0.053902264684438705,
-0.22844453155994415,
-0.18583978712558746,
-0.2576567530632019,
-0.17464976012706757,
0.25252780318260193,
0.277893990278244,
0.04119246080517769,
0.41884317994117737,
-0.08361783623695374,
-0.08943700790405273,
-0.48187822103500366,
0.27028730511665344,
-0.19711421430110931,
0.2839866876602173,
0.1542859673500061,
0.23161613941192627,
0.15931513905525208,
0.10048571228981018,
-0.13383084535598755,
-0.02459007315337658,
-0.07084181904792786,
-0.18769848346710205,
0.3153251111507416,
-0.33479055762290955,
0.21859043836593628,
0.17901290953159332,
0.30799558758735657,
0.3168768584728241,
-0.12150949239730835,
-0.10232993215322495,
0.17199234664440155,
0.09024009108543396,
-0.33669477701187134,
0.19669988751411438,
0.05947580561041832,
0.30610546469688416,
-0.022068358957767487,
0.32457637786865234,
-0.05370614677667618,
-0.07964266836643219,
0.023963263258337975,
0.11511930823326111,
0.7046639323234558,
-0.016493873670697212,
0.05248095840215683,
0.05482488498091698,
-0.04942956194281578,
0.11153769493103027,
0.22701384127140045,
0.03807360306382179,
0.0507202185690403,
0.5308749079704285,
-0.13902373611927032,
-0.01519748568534851,
0.24749207496643066,
0.3807497024536133,
-0.16278286278247833,
-0.6306772232055664,
0.2385837584733963,
0.3995527923107147,
-0.30723077058792114,
0.01906161941587925,
0.12123909592628479,
0.601414680480957,
0.03496646136045456,
0.11638336628675461,
-0.29866695404052734,
-0.010738883167505264,
0.1315862387418747,
-0.1031586229801178,
-0.2647888958454132,
-0.21505972743034363,
-0.4387289881706238,
0.2846035659313202,
-0.21691009402275085,
-0.08434440195560455,
0.35293611884117126,
0.19718383252620697,
-0.06693536788225174,
-0.5603020191192627,
0.1278914362192154,
0.21197432279586792,
0.11039923876523972,
-0.3089471161365509,
0.15593890845775604,
-0.04931334778666496,
0.019481772556900978,
0.2848849594593048,
-0.03133900836110115,
0.3540913462638855,
0.42841243743896484,
0.06925132870674133,
-0.34560588002204895,
-0.1722155064344406,
-0.11749973148107529,
-0.10754481703042984,
0.4433700740337372,
0.055738382041454315,
0.20209094882011414,
0.23299738764762878,
0.09308665990829468,
-0.008032764308154583,
0.32599952816963196,
0.07014983892440796,
0.23547719419002533,
-0.38679248094558716,
-0.14371514320373535,
-0.054856076836586,
0.04745068773627281,
-0.14706334471702576,
-0.2836553752422333,
-0.16986533999443054,
-0.07852836698293686,
0.41863343119621277,
0.12905028462409973,
0.28928372263908386,
0.16431188583374023,
0.0040267170406877995,
-0.11191229522228241,
0.26364102959632874,
0.46337059140205383,
0.10634320229291916,
-0.4908941984176636,
-0.04684760794043541,
-0.7612828016281128,
-0.023025397211313248,
-0.20923249423503876,
-0.14635801315307617,
-0.010271281003952026,
0.24799558520317078,
0.24652332067489624,
0.3274953067302704,
-0.08135122805833817,
0.12139514088630676,
-0.03788969665765762,
0.2988806962966919,
-0.20785725116729736,
-0.14932090044021606,
-0.07539109885692596,
0.061063386499881744,
-0.03573326766490936,
-0.4650065004825592,
0.07143863290548325,
0.3284127414226532,
-0.160424143075943,
-0.15804828703403473,
0.009050145745277405,
0.018557418137788773,
-0.2787303030490875,
0.3543333411216736,
0.020048268139362335,
0.3844945728778839,
-0.01623617857694626,
0.280838280916214,
-0.469632089138031,
-0.2169652134180069,
-0.19403886795043945,
0.21340316534042358,
-0.05094347521662712,
0.46704474091529846,
-0.3124221861362457,
-0.10089513659477234,
-0.2378862202167511,
0.00012858388072345406,
0.08802258968353271,
0.13795340061187744,
-0.3464069366455078,
0.2650642991065979,
-0.10359954088926315,
0.20206989347934723,
-0.15309928357601166,
-0.10170991718769073,
-0.2005610316991806,
0.1393130123615265,
-0.07914768159389496,
-0.26142358779907227,
0.2789078652858734,
-0.32199403643608093,
-0.22202393412590027,
0.03537371754646301,
0.12096990644931793,
0.1921229511499405,
0.125819131731987,
-0.5225005745887756,
0.04238120838999748,
0.34247151017189026,
-0.13802114129066467,
-0.1590208113193512,
0.15847283601760864,
0.10983061790466309,
0.04639500007033348,
-0.2152624875307083,
0.19986586272716522,
0.3526139557361603,
-0.21599455177783966,
-0.21492035686969757,
-0.37202978134155273
] |
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.0920255035161972,
0.05643429979681969,
0.003914315719157457,
0.3721615970134735,
0.2419898360967636,
0.21125063300132751,
0.5301379561424255,
0.39489954710006714,
0.24741822481155396,
0.06873562932014465,
-0.1450415998697281,
0.27288001775741577,
-0.17804257571697235,
0.08538243174552917,
-0.26215553283691406,
-0.19454525411128998,
0.032214175909757614,
0.049730751663446426,
-0.35527125000953674,
0.003987695090472698,
-0.3571982979774475,
0.37880751490592957,
-0.35984256863594055,
-0.0790996104478836,
-0.22351793944835663,
0.16742300987243652,
-0.14664480090141296,
0.3418912887573242,
-0.0646042674779892,
-0.3069736957550049,
0.4642288386821747,
-0.10275007039308548,
0.4105328917503357,
0.33799755573272705,
-0.00012092651741113514,
0.09159769862890244,
0.24506023526191711,
-0.10918176174163818,
-0.2504515051841736,
-0.6010645627975464,
-0.02593693509697914,
-0.39213284850120544,
0.35105061531066895,
-0.14111892879009247,
-0.12903068959712982,
0.057039495557546616,
-0.16927294433116913,
-0.3528496325016022,
0.4674948453903198,
0.5159798264503479,
0.15313319861888885,
-0.20590175688266754,
-0.19712531566619873,
-0.012445895932614803,
0.5450283885002136,
0.10829177498817444,
-0.14576616883277893,
0.2881384789943695,
-0.01394395437091589,
-0.20464031398296356,
-0.11181489378213882,
0.06374885141849518,
0.01064238790422678,
0.21902014315128326,
0.1316024214029312,
0.2965681552886963,
-0.26157066226005554,
-0.20171454548835754,
0.016666395589709282,
0.19496113061904907,
0.5705480575561523,
-0.07317967712879181,
-0.17485637962818146,
-0.16131514310836792,
-0.05998693406581879,
-0.21300724148750305,
0.31247183680534363,
0.3574947118759155,
-0.01696910709142685,
0.33817681670188904,
-0.12065742164850235,
0.07099023461341858,
-0.25840824842453003,
0.09946173429489136,
-0.056212861090898514,
0.0654802918434143,
-0.1489536464214325,
0.2812536060810089,
0.2017701119184494,
0.10153087973594666,
0.2514779269695282,
-0.057995494455099106,
-0.0673253983259201,
0.15803147852420807,
-0.6834625601768494,
0.20368033647537231,
-0.2168782502412796,
-0.15267089009284973,
-0.05426298454403877,
0.24588535726070404,
0.1760423481464386,
-0.047683410346508026,
-0.07080969214439392,
0.3254232108592987,
0.36458486318588257,
0.007467485964298248,
-0.025898287072777748,
0.404413104057312,
0.2407534271478653,
-0.13342343270778656,
-0.03887977451086044,
-0.18577739596366882,
-0.2934219241142273,
-0.5016219019889832,
-0.08630214631557465,
0.20128293335437775,
0.16110342741012573,
-0.15347088873386383,
-0.23444092273712158,
0.049466878175735474,
-0.3282535970211029,
-0.016004372388124466,
-0.10578756779432297,
0.30720430612564087,
0.07920530438423157,
0.32334595918655396,
0.0002643509360495955,
0.27621912956237793,
-0.14991743862628937,
-0.35001111030578613,
-0.03806960955262184,
0.1538408398628235,
-0.4294224679470062,
-0.06670975685119629,
0.4374995529651642,
-0.17408524453639984,
0.1433628648519516,
0.19283831119537354,
-0.05664362758398056,
-0.3830631375312805,
-0.07296618074178696,
-0.30450838804244995,
0.12774169445037842,
0.27925732731819153,
0.10172291100025177,
0.1716279685497284,
0.29392486810684204,
-0.19961236417293549,
-0.08715993165969849,
0.277701199054718,
-0.489045649766922,
-0.2541233003139496,
-0.09134712815284729,
0.1075182780623436,
-0.2549368143081665,
0.14197510480880737,
-0.3131122887134552,
0.04680123180150986,
0.09502964466810226,
-0.10524110496044159,
-0.16757239401340485,
-0.3225545585155487,
-0.31908032298088074,
-0.24400188028812408,
0.04668605700135231,
0.3962133228778839,
-0.7064710259437561,
0.1609787940979004,
-0.043625857681035995,
0.016649536788463593,
0.17652398347854614,
0.22869212925434113,
-0.26050060987472534,
0.07816408574581146,
-0.29389551281929016,
0.12579473853111267,
0.26240625977516174,
-0.2164783477783203,
-0.3129369914531708,
0.2795172333717346,
-0.045535068958997726,
-0.019516851752996445,
0.13867932558059692,
0.004878589417785406,
0.41929692029953003,
0.03277643024921417,
-0.12228181213140488,
0.26952677965164185,
-0.06650114059448242,
0.05136321112513542,
-0.2043432593345642,
-0.22083218395709991,
0.23039494454860687,
0.25333741307258606,
0.09017337113618851,
0.06463275104761124,
0.25203263759613037,
-0.4523489773273468,
0.43114471435546875,
-0.018521372228860855,
0.2009960114955902,
0.06000522896647453,
0.20455053448677063,
0.06739604473114014,
0.29955992102622986,
-0.044875986874103546,
-0.5501883029937744,
0.1751101016998291,
0.4230560064315796,
-0.18364442884922028,
-0.17123974859714508,
-0.08161098510026932,
-0.4569076895713806,
-0.05277896299958229,
-0.26321396231651306,
-0.03535959869623184,
-0.029591890051960945,
-0.04530898109078407,
-0.011050714179873466,
-0.1825745701789856,
-0.1791168749332428,
0.42177116870880127,
-0.2611871063709259,
0.1721963733434677,
-0.3425504267215729,
0.3586454391479492,
0.14261460304260254,
-0.05172357335686684,
0.1552656888961792,
0.05617372319102287,
0.23906266689300537,
-0.152774378657341,
-0.14837345480918884,
0.3356362283229828,
0.47665905952453613,
-0.06188146397471428,
-0.03935864567756653,
-0.2567853033542633,
0.12003885954618454,
-0.21253904700279236,
-0.0765189379453659,
0.2014891356229782,
0.2660813331604004,
-0.08924463391304016,
-0.479117214679718,
0.3983058035373688,
-0.3870806396007538,
0.3109733760356903,
-0.12544912099838257,
0.19986902177333832,
0.2418142557144165,
-0.1007649227976799,
-0.1040566936135292,
-0.07478246837854385,
0.0224812813103199,
-0.044863298535346985,
0.2591085433959961,
0.07628749310970306,
-0.16195537149906158,
-0.19723676145076752,
0.31972458958625793,
0.11518065631389618,
-0.25127890706062317,
0.11531364917755127,
-0.09707028418779373,
-0.05260187387466431,
0.25532588362693787,
0.388995885848999,
0.4357041120529175,
0.08310238271951675,
-0.20039896667003632,
0.027241921052336693,
0.12056571245193481,
-0.24200673401355743,
0.16772763431072235,
0.07373464852571487,
0.08036281913518906,
0.22839957475662231,
0.13717983663082123,
0.018558548763394356,
-0.12216327339410782,
-0.1420408934354782,
0.21807961165905,
0.15314102172851562,
-0.5580402612686157,
0.06724783033132553,
-0.24924398958683014,
0.3542284369468689,
-0.3054810166358948,
-0.08809323608875275,
0.11775411665439606,
-0.33768436312675476,
-0.2673153877258301,
0.22581112384796143,
-0.15556979179382324,
0.08494119346141815,
-0.19685091078281403,
0.16889260709285736,
0.04604156315326691,
-0.2257523238658905,
0.1277492493391037,
-0.2152118980884552,
-0.26223069429397583,
0.02653929963707924,
0.05469701811671257,
0.0048146964982151985,
-0.060492053627967834,
0.008946019224822521,
-0.017186734825372696,
-0.12334983050823212,
-0.018216362223029137,
0.18679852783679962,
-0.07027246057987213,
-0.0006795295630581677,
0.18533110618591309,
-0.15704059600830078,
-0.029388589784502983,
-0.20669318735599518,
0.16233789920806885,
0.07732339948415756,
0.05672392621636391,
0.3653012812137604,
0.2931172549724579,
-0.06450187414884567,
-0.17957259714603424,
-0.7377931475639343,
-0.28922948241233826,
-0.22019647061824799,
0.06920208036899567,
-0.1671297699213028,
-0.035052523016929626,
0.09366712719202042,
0.2560237944126129,
-0.03218196704983711,
0.22912605106830597,
-0.17196246981620789,
-0.13852918148040771,
-0.1858997792005539,
0.58079594373703,
-0.24695183336734772,
-0.2713831067085266,
0.2195551097393036,
-0.13152511417865753,
0.0070837726816535,
0.36767518520355225,
-0.42184585332870483,
0.2262391746044159,
-0.06975571066141129,
0.07498378306627274,
-0.05207930877804756,
0.024303801357746124,
0.08300621807575226,
-0.06991735845804214,
0.09782886505126953,
-0.03876058757305145,
-0.10522520542144775,
0.25085964798927307,
-0.04969356581568718,
0.10345332324504852,
0.14270710945129395,
0.532667875289917,
-0.09933516383171082,
0.8147952556610107,
0.05136013403534889,
0.059384580701589584,
0.19293318688869476,
-0.16446734964847565,
0.25086709856987,
0.11529424786567688,
-0.25962457060813904,
0.08384042978286743,
-0.16916599869728088,
-0.3220823407173157,
0.35160401463508606,
-0.021485894918441772,
-0.15244106948375702,
-0.09982817620038986,
0.2590562701225281,
-0.20203107595443726,
-0.2619890868663788,
0.17522597312927246,
-0.11712091416120529,
0.02988455817103386,
-0.03127695620059967,
0.21754252910614014,
0.16294346749782562,
-0.20703792572021484,
-0.022765714675188065,
0.12135907262563705,
0.13132034242153168,
-0.171200230717659,
0.07240420579910278,
-0.16775743663311005,
-0.26506420969963074,
0.17002451419830322,
0.006588239222764969,
0.31862157583236694,
0.12309112399816513,
-0.14270006120204926,
0.07816951721906662,
0.22316761314868927,
0.8126674890518188,
-0.18910853564739227,
-0.0012187809916213155,
0.14945462346076965,
-0.07518938183784485,
-0.13241863250732422,
-0.31598618626594543,
-0.14862343668937683,
0.22765138745307922,
0.08831751346588135,
0.2510456442832947,
-0.04963907599449158,
-0.01033037155866623,
0.4505234360694885,
0.08386345952749252,
-0.207479327917099,
-0.36611950397491455,
-0.15624676644802094,
-0.012567716650664806,
-0.09316803514957428,
-0.13082309067249298,
0.19057662785053253,
0.16853445768356323,
-0.31855151057243347,
-0.0054590776562690735,
-0.16507890820503235,
-0.25743454694747925,
0.3499355912208557,
0.17091570794582367,
0.28232020139694214,
0.027928821742534637,
0.20670689642429352,
0.22875681519508362,
0.15203289687633514,
0.1940147876739502,
0.7980724573135376,
-0.27264735102653503,
-0.8757586479187012,
0.2597288489341736,
-0.5026088953018188,
0.40055447816848755,
0.025331268087029457,
-0.36386504769325256,
-0.10371202975511551,
-0.19180333614349365,
-0.05263631045818329,
-0.12982912361621857,
0.01651768572628498,
0.08913147449493408,
-0.06780663132667542,
-0.24556981027126312,
-0.5857746005058289,
0.46488139033317566,
-0.08204924315214157,
-0.07248252630233765,
0.09971880912780762,
-0.07006868720054626,
-0.38100916147232056,
0.5269700288772583,
-0.13011783361434937,
0.6978638172149658,
-0.0940522700548172,
-0.019708648324012756,
0.15780887007713318,
-0.2015553116798401,
0.3961668312549591,
-0.31029337644577026,
-0.014509979635477066,
-0.45372048020362854,
-0.16001197695732117,
-0.1839674711227417,
0.006758296862244606,
0.07007131725549698,
0.5914731621742249,
-0.17102184891700745,
0.39707475900650024,
-0.11072465032339096,
0.4428042769432068,
0.0041374992579221725,
0.13330234587192535,
0.2929835617542267,
-0.19068750739097595,
-0.13684870302677155,
0.07731719315052032,
-0.057903338223695755,
-0.06765497475862503,
0.1529640555381775,
-0.010308868251740932,
-0.22955380380153656,
-0.0298128891736269,
-0.29598161578178406,
0.33274540305137634,
-0.08510217815637589,
0.09755638986825943,
0.09620420634746552,
-0.5183797478675842,
0.5273532271385193,
0.4407007694244385,
0.14412108063697815,
-0.033988043665885925,
-0.12900586426258087,
0.1348179131746292,
0.008968321606516838,
0.07391149550676346,
-0.09051893651485443,
-0.014664553105831146,
0.07357989251613617,
0.28074756264686584,
-0.18520919978618622,
0.24515171349048615,
-0.09775547683238983,
-0.08296474069356918,
0.31111639738082886,
0.31332486867904663,
0.2825343906879425,
-0.58609539270401,
-0.2722001075744629,
-0.2085452526807785,
0.15409055352210999,
-0.15150673687458038,
0.04696914553642273,
-0.11854878813028336,
0.006500291638076305,
0.05101356282830238,
0.007897813804447651,
-0.3608904480934143,
0.12198459357023239,
0.19704893231391907,
-0.06576724350452423,
0.11263702809810638,
0.47794899344444275,
0.42110133171081543,
-0.08398497849702835,
-0.1890108287334442,
0.10112523287534714,
0.19841544330120087,
-0.6184694170951843,
0.17377051711082458,
0.05672040209174156,
0.24878212809562683,
0.0968453511595726,
0.13443396985530853,
0.11384482681751251,
-0.1693209409713745,
0.060225166380405426,
-0.5078529119491577,
-0.025109317153692245,
-0.042017675936222076,
-0.13695989549160004,
0.059742700308561325,
0.06742747128009796,
-0.2848600745201111,
-0.16184529662132263,
-0.07028120756149292,
-0.17839381098747253,
0.14016930758953094,
0.0760657787322998,
0.07137017697095871,
0.11395926773548126,
0.2229573279619217,
-0.11001428216695786,
-0.28005290031433105,
0.025135139003396034,
0.027651427313685417,
0.1282840520143509,
-0.12220793962478638,
-0.24929337203502655,
0.1729644387960434,
-0.020315831527113914,
0.18938300013542175,
-0.30061042308807373,
-0.12530915439128876,
-0.25621917843818665,
-0.1848987340927124,
0.202219620347023,
0.2780591547489166,
0.02763998694717884,
0.48224928975105286,
0.11227531731128693,
-0.04525807499885559,
-0.5738333463668823,
0.27493390440940857,
-0.2892037034034729,
0.26346802711486816,
0.13057683408260345,
0.2388591468334198,
0.10354389250278473,
0.098012775182724,
-0.16663511097431183,
-0.04993719607591629,
-0.1110425516963005,
-0.15273335576057434,
0.29655659198760986,
-0.3347996771335602,
0.16241195797920227,
0.13234028220176697,
0.40005403757095337,
0.4437742531299591,
-0.10053955763578415,
-0.11687250435352325,
0.15313223004341125,
0.12465795874595642,
-0.2727164328098297,
0.20149274170398712,
0.11380839347839355,
0.2503395974636078,
-0.06401396542787552,
0.31763312220573425,
-0.035944387316703796,
-0.0939210057258606,
-0.017120953649282455,
0.15454114973545074,
0.607032835483551,
0.08047427982091904,
0.2360871285200119,
0.4467521905899048,
0.01146384235471487,
0.15987028181552887,
0.20035035908222198,
-0.1476922184228897,
0.0838204026222229,
0.5120173096656799,
-0.1648630052804947,
0.012832858599722385,
0.3407451808452606,
0.19740234315395355,
-0.08129538595676422,
-0.5081658363342285,
0.12115810066461563,
0.29553544521331787,
-0.36241790652275085,
-0.07143885642290115,
0.07451722770929337,
0.7061756253242493,
-0.08430404216051102,
0.04141324386000633,
-0.33719339966773987,
-0.06683378666639328,
0.07255721837282181,
-0.05091838166117668,
-0.1879682093858719,
-0.1644282191991806,
-0.502863347530365,
0.31128910183906555,
-0.15618731081485748,
-0.06903299689292908,
0.47600057721138,
0.2167239487171173,
-0.008694957010447979,
-0.43377000093460083,
0.032050903886556625,
0.16973787546157837,
0.1164807453751564,
-0.3514191508293152,
0.04586999490857124,
-0.0698423981666565,
0.041415777057409286,
0.3675313889980316,
-0.2498473972082138,
0.3425770401954651,
0.3527582287788391,
0.009210781194269657,
-0.3907548785209656,
-0.07556849718093872,
-0.050306372344493866,
-0.021436860784888268,
0.4297500252723694,
0.001763860578648746,
0.31967538595199585,
0.2829747498035431,
0.09232426434755325,
-0.009278357028961182,
0.2641909122467041,
0.10177848488092422,
0.1555730402469635,
-0.4826740324497223,
0.08864129334688187,
0.07567810267210007,
-0.07956982403993607,
-0.1519215852022171,
-0.20956385135650635,
-0.16786004602909088,
-0.20770515501499176,
0.3991565704345703,
0.09871821850538254,
0.23741114139556885,
0.1570795327425003,
-0.01254204846918583,
-0.10161066800355911,
0.24186517298221588,
0.3471134305000305,
0.030185632407665253,
-0.47222504019737244,
-0.02341335266828537,
-0.6675112843513489,
-0.10411367565393448,
-0.17139579355716705,
-0.11487732082605362,
-0.019500911235809326,
0.2386513203382492,
0.20161239802837372,
0.2796032428741455,
-0.09302127361297607,
0.1285189688205719,
-0.017593394964933395,
0.3582009971141815,
-0.16701801121234894,
-0.17820841073989868,
-0.19632881879806519,
0.07738824933767319,
-0.05502897500991821,
-0.43303313851356506,
0.00008276656444650143,
0.2998555898666382,
-0.1908217817544937,
-0.06658270955085754,
-0.18081040680408478,
0.16339287161827087,
-0.21267244219779968,
0.2939319908618927,
0.021584799513220787,
0.4189733564853668,
0.03795852139592171,
0.3084068298339844,
-0.37478429079055786,
-0.27938640117645264,
-0.2077229917049408,
0.23507264256477356,
-0.06310155242681503,
0.4386780560016632,
-0.32438915967941284,
0.06587326526641846,
-0.20790782570838928,
0.03943798691034317,
0.08884566277265549,
0.16808387637138367,
-0.34438422322273254,
0.19406954944133759,
-0.0793130025267601,
0.2522790729999542,
0.0013848479138687253,
0.07679484784603119,
-0.20812304317951202,
0.15915460884571075,
-0.046376023441553116,
-0.3086293041706085,
0.26551878452301025,
-0.3227373957633972,
-0.2894769012928009,
0.019844457507133484,
0.19211764633655548,
0.2426316887140274,
0.11709710955619812,
-0.5216586589813232,
-0.06678669154644012,
0.3476245403289795,
-0.1688331663608551,
-0.11390344798564911,
0.11491271108388901,
0.15702490508556366,
0.09790004789829254,
-0.14284490048885345,
0.20177452266216278,
0.33497682213783264,
-0.3364252746105194,
-0.06701109558343887,
-0.3840114176273346
] |
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.05377679690718651,
0.10334546864032745,
0.019004546105861664,
0.36122873425483704,
0.18078266084194183,
-0.004252414684742689,
0.5432186722755432,
0.22249922156333923,
0.33720988035202026,
-0.00361898192204535,
-0.02376251295208931,
0.30691948533058167,
-0.031764037907123566,
0.11891838908195496,
-0.20251433551311493,
-0.07497178763151169,
-0.012214411981403828,
0.12070553004741669,
-0.3683396577835083,
-0.017431221902370453,
-0.4309172034263611,
0.2928498685359955,
-0.22139698266983032,
-0.058570265769958496,
-0.11517754942178726,
0.1571628451347351,
0.001704939641058445,
0.36609289050102234,
-0.10848324745893478,
-0.25727614760398865,
0.6280575394630432,
0.02300449274480343,
0.4292285740375519,
0.22458450496196747,
-0.00011907167208846658,
0.038811881095170975,
0.3117850422859192,
-0.13290677964687347,
-0.28974026441574097,
-0.5877246856689453,
-0.027259204536676407,
-0.39561817049980164,
0.3377557098865509,
-0.10407504439353943,
-0.0616723857820034,
0.17277583479881287,
-0.16527757048606873,
-0.5165006518363953,
0.3123309016227722,
0.3730703592300415,
0.1405087113380432,
-0.2834519147872925,
-0.23099713027477264,
0.0034152416046708822,
0.5908182263374329,
0.20675310492515564,
-0.19713596999645233,
0.28107699751853943,
0.1669810563325882,
-0.10156762599945068,
-0.1598016619682312,
0.08315505087375641,
-0.10432367771863937,
0.1894383728504181,
0.29018062353134155,
0.2623087465763092,
-0.2809916138648987,
-0.11748961359262466,
-0.016999350860714912,
0.18993687629699707,
0.8341622352600098,
-0.07357550412416458,
-0.21519584953784943,
-0.2079973965883255,
-0.009148836135864258,
-0.19425518810749054,
0.29593756794929504,
0.22416944801807404,
-0.025601327419281006,
0.2741403877735138,
-0.03989466279745102,
0.0002722830977290869,
-0.22958259284496307,
0.06437712907791138,
-0.11930973082780838,
0.010275549255311489,
-0.1569630652666092,
0.37793397903442383,
0.04562492296099663,
0.1549309343099594,
0.3429838716983795,
-0.11165234446525574,
-0.11626081168651581,
0.0835309773683548,
-0.5670548677444458,
0.1575639694929123,
0.05513884872198105,
-0.15923933684825897,
0.017448389902710915,
0.3070754110813141,
0.36329367756843567,
0.06689606606960297,
-0.1721036583185196,
0.25122901797294617,
0.4344935119152069,
0.08179933577775955,
0.0020747401285916567,
0.25766095519065857,
0.36488160490989685,
-0.27762940526008606,
0.013782108202576637,
-0.1647895872592926,
-0.17193427681922913,
-0.27077144384384155,
-0.05752107873558998,
0.16109426319599152,
0.1682673692703247,
-0.16843247413635254,
-0.2216247022151947,
0.07329082489013672,
-0.26442211866378784,
-0.05475988611578941,
-0.15194395184516907,
0.22218574583530426,
0.1522413045167923,
0.5024948120117188,
0.01564457267522812,
0.17616723477840424,
-0.0987723097205162,
-0.3069803714752197,
0.0024104733020067215,
0.07434798777103424,
-0.43791893124580383,
-0.002264835638925433,
0.47758200764656067,
-0.1238083690404892,
0.02138393186032772,
0.1910146325826645,
-0.14671429991722107,
-0.29250210523605347,
-0.06910457462072372,
-0.3121495544910431,
0.1865878701210022,
0.22014455497264862,
0.01370438002049923,
0.21261955797672272,
0.20469340682029724,
-0.2328413426876068,
-0.23644307255744934,
0.3585534393787384,
-0.5362183451652527,
-0.304646372795105,
-0.03983606398105621,
0.09858634322881699,
-0.2729690968990326,
0.22918803989887238,
-0.332396000623703,
0.12838338315486908,
0.0017086926382035017,
-0.10089095681905746,
-0.0892254188656807,
-0.3063386380672455,
-0.29461869597435,
-0.332231730222702,
-0.03859017416834831,
0.5090972781181335,
-0.8320767879486084,
0.22648301720619202,
-0.08604273200035095,
0.12198826670646667,
0.09565310925245285,
0.3444870412349701,
-0.30254316329956055,
0.0966421365737915,
-0.34942975640296936,
0.04007073491811752,
0.32771211862564087,
-0.2119707614183426,
-0.38287290930747986,
0.23155352473258972,
-0.1052040159702301,
0.0784762054681778,
0.16419446468353271,
0.16494348645210266,
0.44445401430130005,
-0.043528828769922256,
-0.08624771982431412,
0.25313860177993774,
-0.12446936219930649,
0.07950642704963684,
-0.24377350509166718,
-0.2483052760362625,
0.24990062415599823,
0.17007975280284882,
0.10381269454956055,
0.05405857414007187,
0.19445455074310303,
-0.4752436578273773,
0.35898563265800476,
-0.09315068274736404,
0.12578031420707703,
-0.1334751844406128,
0.3010082244873047,
0.02600303664803505,
0.29125505685806274,
-0.007893277332186699,
-0.6777340769767761,
0.1792106032371521,
0.40682172775268555,
-0.11154501885175705,
-0.038276173174381256,
-0.18205803632736206,
-0.34848836064338684,
-0.01555909775197506,
-0.16953112185001373,
0.027833374217152596,
-0.035891324281692505,
0.039156556129455566,
-0.10853462666273117,
-0.154938742518425,
-0.2077747881412506,
0.4025164246559143,
-0.21284715831279755,
0.08484918624162674,
-0.38516536355018616,
0.35663357377052307,
0.2739723324775696,
0.009731438010931015,
0.1406470537185669,
0.13051530718803406,
0.22485722601413727,
-0.1097739115357399,
-0.05816220864653587,
0.21586108207702637,
0.35706308484077454,
-0.09468648582696915,
-0.0116343442350626,
-0.19434824585914612,
0.09666186571121216,
-0.12029441446065903,
-0.04759359359741211,
0.2353377789258957,
0.31000959873199463,
-0.16534137725830078,
-0.5367750525474548,
0.4306190013885498,
-0.4352807104587555,
0.24065269529819489,
-0.14656420052051544,
0.056336261332035065,
0.17643670737743378,
-0.011294422671198845,
-0.1437516212463379,
-0.027479402720928192,
-0.14770585298538208,
0.03376241400837898,
0.2478092461824417,
0.18676389753818512,
-0.13551165163516998,
-0.053369857370853424,
0.3618728220462799,
0.1317262351512909,
-0.18451566994190216,
0.21076099574565887,
0.0488576777279377,
-0.23759570717811584,
0.3247867226600647,
0.3543030321598053,
0.6315702199935913,
0.09515959769487381,
-0.19536815583705902,
-0.10668547451496124,
0.08254619687795639,
-0.2646080553531647,
0.1412481963634491,
-0.009270819835364819,
0.0298805832862854,
0.207558274269104,
0.18904942274093628,
0.03944576904177666,
-0.18027904629707336,
-0.19065605103969574,
0.06673293560743332,
0.09992427378892899,
-0.5104928016662598,
0.06828320771455765,
-0.12290847301483154,
0.2668238878250122,
-0.28637367486953735,
-0.028633929789066315,
0.07157322019338608,
-0.31651684641838074,
-0.2467343807220459,
0.1903051882982254,
-0.152336984872818,
0.0006302927504293621,
-0.1428423970937729,
0.34989094734191895,
-0.06879383325576782,
-0.25919994711875916,
-0.016976570710539818,
-0.12455770373344421,
-0.27156955003738403,
0.017516886815428734,
0.0291551873087883,
0.04858297482132912,
0.06301034986972809,
0.0337892509996891,
0.06467154622077942,
-0.27585121989250183,
-0.11072829365730286,
0.2082013487815857,
0.027094906195998192,
0.0583999939262867,
0.37430357933044434,
-0.18556010723114014,
0.061106931418180466,
-0.14894075691699982,
0.10788995027542114,
0.15604029595851898,
0.10857173055410385,
0.27165237069129944,
0.1851976364850998,
0.0015292708994820714,
-0.23901578783988953,
-0.7112792134284973,
-0.1844308078289032,
-0.24108630418777466,
0.15082509815692902,
-0.12097573280334473,
0.0023751738481223583,
-0.016791682690382004,
0.1608780026435852,
-0.15650396049022675,
0.25523439049720764,
-0.061945751309394836,
-0.1892145574092865,
-0.23315928876399994,
0.4649215340614319,
-0.15697182714939117,
-0.2644336521625519,
0.12178430706262589,
-0.18251053988933563,
0.1514081060886383,
0.40188539028167725,
-0.4829930067062378,
0.18284724652767181,
0.04710716754198074,
0.1323951929807663,
-0.050876323133707047,
0.14494134485721588,
0.08668225258588791,
0.010351987555623055,
0.11328180134296417,
-0.013333586975932121,
-0.19510585069656372,
0.22771205008029938,
-0.08928345888853073,
0.024239497259259224,
0.2536149322986603,
0.39698201417922974,
-0.13889440894126892,
0.7059307098388672,
0.003607710124924779,
0.015541979111731052,
0.20211321115493774,
0.04859871044754982,
0.4244723618030548,
0.012724014930427074,
-0.1967833787202835,
0.09631894528865814,
-0.18310260772705078,
-0.31614378094673157,
0.3190336227416992,
0.08384954929351807,
-0.1625927835702896,
-0.15324530005455017,
0.20835834741592407,
-0.18351995944976807,
-0.31611713767051697,
0.2805400490760803,
-0.10119009017944336,
-0.11717944592237473,
-0.0002716023300308734,
0.24910616874694824,
0.1046137735247612,
-0.14902451634407043,
-0.040597837418317795,
0.21443571150302887,
0.2860645055770874,
-0.10619370639324188,
0.05067596584558487,
-0.21433016657829285,
-0.3120664060115814,
0.15155531466007233,
-0.051350731402635574,
0.3003499209880829,
0.2327195405960083,
-0.1304367184638977,
-0.004103210289031267,
0.1650899350643158,
0.6726490259170532,
-0.20292271673679352,
-0.03617308288812637,
0.10907525569200516,
-0.036040615290403366,
0.05321500822901726,
-0.17023015022277832,
-0.014645397663116455,
0.23023410141468048,
-0.057659413665533066,
0.21793632209300995,
-0.1228795200586319,
0.007664622738957405,
0.309674471616745,
0.09636948257684708,
-0.2221124917268753,
-0.45317938923835754,
-0.10499653965234756,
-0.054961711168289185,
-0.05794968456029892,
-0.17393706738948822,
0.06606142222881317,
0.02787172794342041,
-0.3355505168437958,
-0.12278040498495102,
-0.2196182757616043,
-0.26455387473106384,
0.351178377866745,
0.13597892224788666,
0.18447045981884003,
-0.02949315868318081,
0.15642505884170532,
0.14629778265953064,
0.18831627070903778,
0.23189105093479156,
0.7988592982292175,
-0.29990842938423157,
-0.7502199411392212,
0.25943562388420105,
-0.4703613817691803,
0.35022056102752686,
0.16685062646865845,
-0.34512758255004883,
-0.06720124930143356,
-0.308493435382843,
-0.14681938290596008,
-0.19646801054477692,
-0.1515556126832962,
0.01798284612596035,
-0.06957098096609116,
-0.3025725185871124,
-0.6600193381309509,
0.5407513380050659,
-0.22473850846290588,
-0.16526314616203308,
0.17195363342761993,
0.084384024143219,
-0.4312988817691803,
0.48970311880111694,
0.04091758653521538,
0.8005489706993103,
-0.1704278439283371,
0.07200174778699875,
0.10854605585336685,
-0.20476870238780975,
0.600874662399292,
-0.276423841714859,
-0.12956295907497406,
-0.5226108431816101,
-0.06560954451560974,
-0.2052309215068817,
-0.05176309496164322,
0.09519550949335098,
0.5655964612960815,
-0.1754763126373291,
0.4081787168979645,
0.13449019193649292,
0.4029865264892578,
0.12130710482597351,
0.26730379462242126,
0.23545578122138977,
-0.25539496541023254,
-0.21334297955036163,
0.029682211577892303,
-0.11836358904838562,
-0.0844959244132042,
0.04014231637120247,
0.051228608936071396,
-0.1784110814332962,
-0.13731886446475983,
-0.2695530652999878,
0.1262068897485733,
-0.05772794783115387,
0.015087190084159374,
0.04993205890059471,
-0.6408010721206665,
0.5324749946594238,
0.3608647584915161,
0.09215334802865982,
-0.020202092826366425,
-0.1526840329170227,
0.03406524658203125,
0.09205484390258789,
0.2161548137664795,
0.019028278067708015,
-0.09499061852693558,
0.08259470760822296,
0.2941952347755432,
-0.16079720854759216,
0.2153981477022171,
-0.14107175171375275,
-0.005087558180093765,
0.1963801383972168,
0.33481237292289734,
0.3393922448158264,
-0.5301560163497925,
-0.28205546736717224,
-0.12274182587862015,
0.20972514152526855,
-0.09282127022743225,
0.012344416230916977,
0.12004932761192322,
0.21538250148296356,
0.01240959670394659,
-0.028712870553135872,
-0.3354756534099579,
0.00025900916079990566,
0.03582094609737396,
-0.005780546925961971,
0.028915703296661377,
0.15699386596679688,
0.2840821146965027,
-0.16879507899284363,
-0.10519632697105408,
0.1372452676296234,
0.1519775539636612,
-0.6934364438056946,
0.18554197251796722,
0.14479795098304749,
0.09855043143033981,
0.07431399077177048,
0.225626140832901,
0.14088302850723267,
-0.17479340732097626,
0.0635988861322403,
-0.3946327269077301,
0.07475395500659943,
0.07362191379070282,
-0.060018084943294525,
0.09225580096244812,
0.07901882380247116,
-0.4209204912185669,
-0.13075122237205505,
-0.12689295411109924,
-0.1906573325395584,
-0.008195274509489536,
0.14326995611190796,
0.08914565294981003,
0.017629053443670273,
0.3097778558731079,
-0.279409795999527,
-0.22500155866146088,
0.0017569629708305001,
0.008760944940149784,
0.004790817387402058,
-0.08949559926986694,
-0.19149163365364075,
0.2107374370098114,
0.022656401619315147,
0.22843149304389954,
-0.1968976855278015,
-0.2100585252046585,
-0.10157717764377594,
-0.23198750615119934,
0.23905611038208008,
0.34047985076904297,
-0.07758746296167374,
0.37457820773124695,
0.06583452969789505,
-0.010958918370306492,
-0.6506866216659546,
0.4418030083179474,
-0.30841609835624695,
0.3093312084674835,
0.07545351982116699,
0.346736878156662,
-0.00015083439939189702,
0.1098971739411354,
-0.08240509778261185,
0.05659104511141777,
-0.03777504712343216,
0.04747772589325905,
0.31236642599105835,
-0.25706809759140015,
0.22417497634887695,
0.171589657664299,
0.3068353533744812,
0.3681258261203766,
-0.10318586230278015,
-0.17753654718399048,
0.08904702216386795,
0.10882560163736343,
-0.2263752818107605,
0.20148640871047974,
-0.08879807591438293,
0.21830303966999054,
0.007370823994278908,
0.4874248504638672,
-0.0458947978913784,
-0.15112455189228058,
0.07549212127923965,
0.04718375951051712,
0.7774945497512817,
0.058211736381053925,
0.14381147921085358,
0.32180461287498474,
-0.11716017127037048,
0.21354176104068756,
0.20739440619945526,
-0.06321228295564651,
0.0398133285343647,
0.5263144969940186,
-0.12594060599803925,
0.010730033740401268,
0.3773154020309448,
0.26633420586586,
-0.08288130909204483,
-0.45533981919288635,
0.27487966418266296,
0.37713587284088135,
-0.2825227677822113,
-0.0846111848950386,
0.25956135988235474,
0.5131551623344421,
-0.15917754173278809,
0.13025987148284912,
-0.18701431155204773,
-0.26440516114234924,
0.016334999352693558,
-0.059780918061733246,
-0.1930791735649109,
-0.23507776856422424,
-0.3509504199028015,
0.26417872309684753,
-0.3510676622390747,
-0.05162936821579933,
0.36344605684280396,
0.18752290308475494,
0.08282317966222763,
-0.4788792133331299,
0.1263742446899414,
-0.05008669197559357,
0.0921471118927002,
-0.28818485140800476,
0.10989399254322052,
-0.01346904132515192,
0.07826808094978333,
0.3593214452266693,
-0.2522948682308197,
0.2834374010562897,
0.4704684913158417,
0.13903731107711792,
-0.39180153608322144,
-0.103638656437397,
-0.027154728770256042,
-0.21675211191177368,
0.4326718747615814,
-0.028531795367598534,
0.22855354845523834,
0.2073422074317932,
0.12191363424062729,
0.016005128622055054,
0.3366037905216217,
0.12673279643058777,
0.024118809029459953,
-0.5890336632728577,
0.03721484914422035,
0.003539485391229391,
-0.1234014555811882,
-0.025987736880779266,
-0.055721793323755264,
0.008739175274968147,
-0.2356419414281845,
0.37532466650009155,
0.17570121586322784,
0.17252744734287262,
0.0632752999663353,
0.015184997580945492,
-0.016915053129196167,
0.0955602303147316,
0.2717052400112152,
0.18327243626117706,
-0.44923844933509827,
0.07074375450611115,
-0.7308099269866943,
0.022807979956269264,
-0.0885433778166771,
-0.05671771988272667,
-0.02343806065618992,
0.2650984823703766,
0.30515527725219727,
0.2791951894760132,
-0.19101890921592712,
0.25610244274139404,
0.0036747693084180355,
0.2863951027393341,
-0.05265239253640175,
-0.31290119886398315,
-0.24512001872062683,
-0.045774031430482864,
-0.14849470555782318,
-0.5657715201377869,
0.025072341784834862,
0.4132968783378601,
-0.18823808431625366,
-0.20940794050693512,
-0.01562962681055069,
0.31243252754211426,
-0.10025505721569061,
0.35129764676094055,
0.07308052480220795,
0.32382988929748535,
-0.000777732755523175,
0.13845635950565338,
-0.31739434599876404,
-0.2318972796201706,
-0.21146699786186218,
0.2685045003890991,
-0.08959859609603882,
0.4095957577228546,
-0.2896963953971863,
0.12137559056282043,
-0.23432046175003052,
0.001141559798270464,
0.08554452657699585,
0.24491000175476074,
-0.5026372671127319,
0.2409132421016693,
-0.2224506437778473,
0.12605489790439606,
-0.15786339342594147,
0.05784870684146881,
-0.12349449098110199,
0.07548759132623672,
-0.03712806478142738,
-0.19401556253433228,
0.265141099691391,
-0.199371337890625,
-0.20509643852710724,
0.02854081243276596,
0.2436954826116562,
0.1691814661026001,
0.06681337207555771,
-0.6058074235916138,
-0.1650233268737793,
0.37679633498191833,
-0.166102334856987,
-0.1423833966255188,
-0.007551523856818676,
0.025617817416787148,
-0.04759165272116661,
-0.22503724694252014,
0.22519074380397797,
0.28409624099731445,
-0.24302512407302856,
0.04865675047039986,
-0.4496520757675171
] |
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.044692263007164,
0.02434609830379486,
-0.004884692374616861,
0.4194372892379761,
0.14631202816963196,
0.14584973454475403,
0.4632928669452667,
0.29015034437179565,
0.34395885467529297,
0.05064545199275017,
-0.13501451909542084,
0.22953200340270996,
-0.112645223736763,
0.07431869953870773,
-0.36044323444366455,
-0.08901502937078476,
-0.0051943836733698845,
0.13512343168258667,
-0.3674579858779907,
-0.03212970122694969,
-0.3761763274669647,
0.32067084312438965,
-0.28526362776756287,
-0.08217082172632217,
-0.16973188519477844,
0.18155600130558014,
-0.06944442540407181,
0.2880128026008606,
-0.11865134537220001,
-0.3370009958744049,
0.5611512064933777,
-0.01906513050198555,
0.4348047971725464,
0.17471915483474731,
-0.0001195433214888908,
0.06517530977725983,
0.22654108703136444,
-0.1385788470506668,
-0.2591235935688019,
-0.5547074675559998,
-0.08654910326004028,
-0.4956439733505249,
0.35763344168663025,
-0.11130496859550476,
-0.14946435391902924,
0.03041284903883934,
-0.09243763238191605,
-0.4187631905078888,
0.36679214239120483,
0.44562828540802,
0.1584686040878296,
-0.25297263264656067,
-0.18817473948001862,
0.0030305697582662106,
0.5168057680130005,
0.12371336668729782,
-0.12399996817111969,
0.2595599889755249,
0.07364802807569504,
-0.15480463206768036,
-0.12590844929218292,
0.07289054989814758,
-0.05485557019710541,
0.29174482822418213,
0.18381766974925995,
0.22029539942741394,
-0.20794494450092316,
-0.22910307347774506,
-0.004087972454726696,
0.20792706310749054,
0.7277750372886658,
-0.03474394604563713,
-0.23059283196926117,
-0.17443202435970306,
-0.023107698187232018,
-0.13135795295238495,
0.2728379964828491,
0.3152940273284912,
-0.04108693078160286,
0.3006054759025574,
-0.08267803490161896,
-0.008345412090420723,
-0.28719982504844666,
0.1252715289592743,
-0.023523643612861633,
0.07939165830612183,
-0.1653633415699005,
0.3553800880908966,
0.06189601495862007,
0.04584812745451927,
0.2907169759273529,
-0.1185569167137146,
-0.08494003862142563,
0.1433931142091751,
-0.6625820398330688,
0.19033114612102509,
-0.09499889612197876,
-0.04485092684626579,
-0.022188810631632805,
0.13422438502311707,
0.22667118906974792,
0.0177784226834774,
-0.12089379876852036,
0.2445976585149765,
0.4031650125980377,
-0.008647955022752285,
0.046942438930273056,
0.2923469841480255,
0.27681419253349304,
-0.1933325082063675,
0.04471004754304886,
-0.10590747743844986,
-0.22714973986148834,
-0.4162053167819977,
-0.12003830075263977,
0.15449072420597076,
0.28596290946006775,
-0.20229272544384003,
-0.25499147176742554,
0.07593388855457306,
-0.2841735780239105,
0.012848157435655594,
-0.17959676682949066,
0.24375711381435394,
0.06551478803157806,
0.34083446860313416,
0.049264565110206604,
0.285968154668808,
-0.11495127528905869,
-0.4505898058414459,
-0.012541146017611027,
0.14165328443050385,
-0.35540029406547546,
-0.012498361989855766,
0.480940043926239,
-0.13299384713172913,
0.10604965686798096,
0.23142939805984497,
-0.11025574803352356,
-0.32424455881118774,
-0.03251796215772629,
-0.3137773871421814,
0.0865466371178627,
0.24560922384262085,
0.1420629769563675,
0.2350395768880844,
0.32224953174591064,
-0.29177114367485046,
-0.1687242090702057,
0.31284451484680176,
-0.46320611238479614,
-0.24035288393497467,
-0.03989337384700775,
0.09295839071273804,
-0.30210182070732117,
0.1972530037164688,
-0.32142019271850586,
0.1838942915201187,
-0.0014770581619814038,
-0.10854533314704895,
-0.23300042748451233,
-0.33345651626586914,
-0.3624815344810486,
-0.2817544639110565,
-0.056587617844343185,
0.5261703133583069,
-0.8061842322349548,
0.22326059639453888,
-0.018298834562301636,
0.02567272260785103,
0.027772054076194763,
0.2435155212879181,
-0.2859251797199249,
0.0788339227437973,
-0.32195889949798584,
0.05213264748454094,
0.17719042301177979,
-0.22370001673698425,
-0.3795718550682068,
0.2096039354801178,
-0.013221044093370438,
0.08994785696268082,
0.20624861121177673,
0.07608085870742798,
0.48372983932495117,
-0.008639154024422169,
-0.17437827587127686,
0.16786271333694458,
-0.06598670780658722,
0.044667117297649384,
-0.20993173122406006,
-0.2436736673116684,
0.2614065706729889,
0.17771963775157928,
0.1183045282959938,
0.11840026825666428,
0.19235995411872864,
-0.5197710394859314,
0.35249292850494385,
-0.04970599710941315,
0.23287078738212585,
0.059757739305496216,
0.20395947992801666,
0.04109399393200874,
0.28084880113601685,
0.014936651103198528,
-0.6455546021461487,
0.2398839145898819,
0.44230419397354126,
-0.12055815011262894,
-0.08166546374559402,
-0.16945476830005646,
-0.3994467854499817,
-0.05980229377746582,
-0.21568883955478668,
-0.049133941531181335,
-0.002058880403637886,
0.048398811370134354,
-0.032678570598363876,
-0.1884748637676239,
-0.10399846732616425,
0.4660898447036743,
-0.2199748307466507,
0.0929076224565506,
-0.3543526232242584,
0.3410109281539917,
0.18083445727825165,
0.023297540843486786,
0.2312517613172531,
-0.05639415234327316,
0.26290252804756165,
-0.1184234470129013,
-0.07717742770910263,
0.19645258784294128,
0.3999149203300476,
-0.08581843972206116,
0.042950112372636795,
-0.16452814638614655,
0.07932467013597488,
-0.23050397634506226,
-0.008333306759595871,
0.20459768176078796,
0.3715144991874695,
-0.15540499985218048,
-0.5231378078460693,
0.4438108205795288,
-0.31335750222206116,
0.2376752346754074,
-0.1666315793991089,
0.1455673724412918,
0.27037954330444336,
-0.026601077988743782,
-0.11320830881595612,
-0.028989147394895554,
-0.10739500820636749,
-0.007945714518427849,
0.2660493552684784,
0.14973656833171844,
-0.21086721122264862,
-0.14199863374233246,
0.27496811747550964,
0.23189659416675568,
-0.22660988569259644,
0.17189441621303558,
-0.06511041522026062,
-0.11089740693569183,
0.296953022480011,
0.3253518044948578,
0.4923049807548523,
0.12089211493730545,
-0.2582118809223175,
-0.07129266113042831,
0.1183280497789383,
-0.20210252702236176,
0.08703102171421051,
-0.02957957237958908,
0.14631709456443787,
0.21049240231513977,
0.12463018298149109,
0.04224767908453941,
-0.09609440714120865,
-0.17430895566940308,
0.19436927139759064,
0.19127106666564941,
-0.5371567010879517,
-0.03543390333652496,
-0.2490166872739792,
0.24590489268302917,
-0.26508253812789917,
-0.054144617170095444,
0.07940275222063065,
-0.29634734988212585,
-0.28625398874282837,
0.24338844418525696,
-0.12533091008663177,
0.06558078527450562,
-0.10744874179363251,
0.23190687596797943,
-0.0061187660321593285,
-0.172376349568367,
0.12069754302501678,
-0.1466156244277954,
-0.25099870562553406,
0.013388227671384811,
0.03521084412932396,
-0.03641865774989128,
-0.04549945145845413,
0.05500305816531181,
-0.06010693684220314,
-0.291469544172287,
0.0006237401976250112,
0.18939733505249023,
-0.011238759383559227,
0.06954684853553772,
0.23905037343502045,
-0.0659898892045021,
0.04322125017642975,
-0.13685081899166107,
0.145271897315979,
0.21913252770900726,
0.059885069727897644,
0.29330867528915405,
0.2413593828678131,
-0.06892280280590057,
-0.12282896041870117,
-0.6996191740036011,
-0.2679128050804138,
-0.18160124123096466,
0.0728139653801918,
-0.1040661484003067,
-0.015127988532185555,
-0.007891622371971607,
0.2856495678424835,
-0.11306224018335342,
0.24075326323509216,
-0.11503229290246964,
-0.12437820434570312,
-0.19904100894927979,
0.5246905088424683,
-0.19940589368343353,
-0.3236931562423706,
0.21250708401203156,
-0.11981713026762009,
0.08176965266466141,
0.35671356320381165,
-0.4152073562145233,
0.20895780622959137,
-0.03291255980730057,
0.08670787513256073,
-0.06531096249818802,
-0.014603547751903534,
0.10499673336744308,
-0.025804582983255386,
0.12221703678369522,
-0.06424178928136826,
-0.19471047818660736,
0.269386351108551,
-0.09432774037122726,
0.02819935418665409,
0.19037431478500366,
0.48733043670654297,
-0.1435079574584961,
0.7951083183288574,
0.0928444191813469,
0.04721488058567047,
0.20110337436199188,
-0.03550928086042404,
0.3330536186695099,
0.17514504492282867,
-0.22640268504619598,
-0.006144075654447079,
-0.12447220832109451,
-0.3189515769481659,
0.3500705063343048,
-0.026896728202700615,
-0.1173560842871666,
-0.14242441952228546,
0.19457630813121796,
-0.23543959856033325,
-0.22845375537872314,
0.15947085618972778,
-0.12514685094356537,
-0.024573642760515213,
0.04979146271944046,
0.1937764585018158,
0.10172446817159653,
-0.1457490772008896,
-0.13446396589279175,
0.18961575627326965,
0.191929429769516,
-0.04472554847598076,
0.10494017601013184,
-0.15039773285388947,
-0.2751075029373169,
0.21312838792800903,
-0.06947798281908035,
0.3745327889919281,
0.16893404722213745,
-0.04449339210987091,
0.011811680160462856,
0.1957567036151886,
0.7295382022857666,
-0.22877345979213715,
0.003046409459784627,
0.12439174950122833,
-0.08554692566394806,
-0.13378942012786865,
-0.31588014960289,
-0.086053766310215,
0.29854899644851685,
0.0012853557709604502,
0.2565813660621643,
-0.07999034225940704,
-0.031919822096824646,
0.3263700604438782,
0.11619754880666733,
-0.2338625192642212,
-0.3317711353302002,
-0.12659162282943726,
0.004444954916834831,
-0.1254693865776062,
-0.19317354261875153,
0.12527336180210114,
0.052114225924015045,
-0.30806678533554077,
-0.014129091054201126,
-0.21454492211341858,
-0.22917139530181885,
0.3313292860984802,
0.15501846373081207,
0.23980054259300232,
0.04145927354693413,
0.2401253879070282,
0.15986889600753784,
0.1619763970375061,
0.2585991322994232,
0.8187350034713745,
-0.22551175951957703,
-0.910040020942688,
0.2532345652580261,
-0.48123207688331604,
0.3621436059474945,
0.051824040710926056,
-0.3327273428440094,
-0.06823807954788208,
-0.2888256907463074,
-0.12233635038137436,
-0.09781831502914429,
-0.09210165590047836,
0.10609301179647446,
-0.06524714827537537,
-0.27926167845726013,
-0.5379038453102112,
0.5231567621231079,
-0.18393594026565552,
-0.16884426772594452,
0.1658734530210495,
0.06351394206285477,
-0.40081021189689636,
0.4619480073451996,
-0.07796231657266617,
0.664808988571167,
-0.14356060326099396,
-0.026327362284064293,
0.13681617379188538,
-0.19350343942642212,
0.5352117419242859,
-0.2681337296962738,
-0.05822758749127388,
-0.47849661111831665,
-0.155654177069664,
-0.18823368847370148,
0.023332633078098297,
0.13362158834934235,
0.6201773881912231,
-0.21378907561302185,
0.4137543737888336,
-0.03055688738822937,
0.36970189213752747,
0.027727089822292328,
0.26980340480804443,
0.2819109559059143,
-0.19701549410820007,
-0.11462247371673584,
0.07929710298776627,
-0.12195552885532379,
-0.013685050420463085,
0.040508583188056946,
0.025666696950793266,
-0.2784492075443268,
-0.10808297246694565,
-0.3273007273674011,
0.2571617662906647,
-0.030928226187825203,
0.08447334915399551,
0.04567750543355942,
-0.4729807376861572,
0.533323347568512,
0.4806928038597107,
0.09643512964248657,
-0.05797208473086357,
-0.21226957440376282,
0.0419798418879509,
-0.007508438546210527,
0.07098068296909332,
-0.11567450314760208,
-0.03431273624300957,
0.039200350642204285,
0.24514609575271606,
-0.19310736656188965,
0.296965092420578,
-0.1279442459344864,
0.029141929000616074,
0.23565223813056946,
0.30480366945266724,
0.24458342790603638,
-0.5582436919212341,
-0.3475923240184784,
-0.17828427255153656,
0.18385033309459686,
-0.09231699258089066,
0.02864420972764492,
-0.011207015253603458,
0.10789890587329865,
0.018413729965686798,
0.06350118666887283,
-0.38895803689956665,
0.07073633372783661,
0.16212013363838196,
-0.04644370079040527,
0.10696960985660553,
0.4289339482784271,
0.3648095428943634,
-0.12556155025959015,
-0.16332992911338806,
0.10970712453126907,
0.08893580734729767,
-0.5510400533676147,
0.14831335842609406,
0.07680623233318329,
0.2905542254447937,
0.08776972442865372,
0.1595243364572525,
0.15592235326766968,
-0.23925723135471344,
0.12046969681978226,
-0.5238209366798401,
0.08976861834526062,
-0.03403850272297859,
-0.11519627273082733,
0.07115186750888824,
-0.040878091007471085,
-0.3904763460159302,
-0.08133326470851898,
-0.019542532041668892,
-0.18339966237545013,
0.056026384234428406,
0.08363686501979828,
0.08044992387294769,
0.18445928394794464,
0.4139993190765381,
-0.25094157457351685,
-0.25322234630584717,
-0.0012752661714330316,
-0.01027222815901041,
0.08143777400255203,
-0.0961058959364891,
-0.20507200062274933,
0.1875603348016739,
0.03447097912430763,
0.2173546403646469,
-0.24604445695877075,
-0.20803791284561157,
-0.1947423815727234,
-0.15069647133350372,
0.15403276681900024,
0.3942096531391144,
-0.05142240971326828,
0.45272064208984375,
0.11146967113018036,
-0.025516947731375694,
-0.5381068587303162,
0.3280773162841797,
-0.261259526014328,
0.2569441497325897,
0.10331317782402039,
0.27955713868141174,
0.12508125603199005,
0.09447803348302841,
-0.08980172872543335,
-0.012205265462398529,
-0.15151743590831757,
-0.11828691512346268,
0.25668227672576904,
-0.2914983928203583,
0.29176175594329834,
0.19988498091697693,
0.31456801295280457,
0.3723835349082947,
-0.11778203397989273,
-0.09883144497871399,
0.10918581485748291,
0.10900110006332397,
-0.34873586893081665,
0.18223610520362854,
0.10901666432619095,
0.2419041097164154,
-0.0584847517311573,
0.4146987497806549,
-0.04436944052577019,
-0.09581904858350754,
0.11687911301851273,
0.1317596286535263,
0.6230403184890747,
0.10438127815723419,
0.19875213503837585,
0.2564280927181244,
-0.02964681200683117,
0.1116357073187828,
0.22501882910728455,
-0.0835409164428711,
0.08903862535953522,
0.47291299700737,
-0.21651019155979156,
0.0019185919081792235,
0.27442729473114014,
0.1816960871219635,
-0.04121515899896622,
-0.6070018410682678,
0.27137309312820435,
0.30795979499816895,
-0.3180396556854248,
-0.1184835135936737,
0.188269704580307,
0.5466785430908203,
-0.0783553496003151,
0.09870387613773346,
-0.32143107056617737,
-0.10591571033000946,
0.06857900321483612,
-0.055723998695611954,
-0.12590472400188446,
-0.24858170747756958,
-0.39151301980018616,
0.3009374737739563,
-0.20118547976016998,
-0.12577924132347107,
0.40196946263313293,
0.1675684005022049,
-0.0332881323993206,
-0.48652294278144836,
0.17729808390140533,
0.13078229129314423,
0.08381816744804382,
-0.30092769861221313,
0.05581589415669441,
-0.041428178548812866,
0.02417449839413166,
0.39115622639656067,
-0.1515442430973053,
0.283300518989563,
0.43739137053489685,
0.06342196464538574,
-0.3570860028266907,
-0.10432782024145126,
-0.08039600402116776,
-0.11075760424137115,
0.41071048378944397,
-0.07911401242017746,
0.26891371607780457,
0.31731078028678894,
0.0975593701004982,
0.004551886115223169,
0.24040821194648743,
0.19029973447322845,
0.05893509089946747,
-0.5318909287452698,
-0.06526416540145874,
0.040491797029972076,
-0.058181531727313995,
-0.01858794502913952,
-0.1208123117685318,
-0.09965091943740845,
-0.2963511049747467,
0.39698880910873413,
0.17386911809444427,
0.25899943709373474,
0.11416596919298172,
0.002013704739511013,
-0.10819973051548004,
0.17766021192073822,
0.27511292695999146,
0.10558446496725082,
-0.496732622385025,
-0.011358262971043587,
-0.7635501027107239,
-0.06276579201221466,
-0.2667757272720337,
-0.20446749031543732,
-0.026949837803840637,
0.2673870623111725,
0.29482588171958923,
0.2880776822566986,
-0.11170700937509537,
0.24038861691951752,
0.013698335736989975,
0.36222007870674133,
-0.19964680075645447,
-0.2887043058872223,
-0.2270316183567047,
0.03186311200261116,
-0.0690128281712532,
-0.4857387840747833,
0.056463275104761124,
0.34845176339149475,
-0.14891766011714935,
-0.17667290568351746,
-0.04911087453365326,
0.19130976498126984,
-0.25896546244621277,
0.37015241384506226,
0.06597844511270523,
0.47962257266044617,
0.02226955257356167,
0.2993650734424591,
-0.36242878437042236,
-0.17135649919509888,
-0.25860393047332764,
0.26030123233795166,
-0.09732817113399506,
0.42156529426574707,
-0.37403562664985657,
0.07633449137210846,
-0.1894475370645523,
0.005944468546658754,
0.06982196867465973,
0.27657008171081543,
-0.3861721456050873,
0.29620787501335144,
-0.12806378304958344,
0.23704412579536438,
-0.10185813158750534,
-0.036571159958839417,
-0.16315150260925293,
0.16262297332286835,
-0.10108400136232376,
-0.18783769011497498,
0.285131573677063,
-0.2237534075975418,
-0.23585842549800873,
-0.022803273051977158,
0.21565869450569153,
0.17509539425373077,
0.05224131420254707,
-0.5023118853569031,
-0.07223282754421234,
0.43461886048316956,
-0.16900430619716644,
-0.07930655777454376,
0.0470208078622818,
0.10123322904109955,
0.015268701128661633,
-0.19575822353363037,
0.23286212980747223,
0.3037624657154083,
-0.26959916949272156,
-0.10594793409109116,
-0.3923310339450836
] |
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.07806085050106049,
0.05840257555246353,
0.023299887776374817,
0.41484880447387695,
0.13612782955169678,
0.12167931348085403,
0.5085963010787964,
0.25036683678627014,
0.36034226417541504,
-0.03491527587175369,
-0.1385982781648636,
0.32225528359413147,
-0.07130812108516693,
0.12546727061271667,
-0.3528856039047241,
-0.06221358850598335,
0.03829966485500336,
0.13238823413848877,
-0.33767732977867126,
-0.04143771901726723,
-0.3806917667388916,
0.3519907593727112,
-0.29038113355636597,
-0.10166174918413162,
-0.16297069191932678,
0.0910419300198555,
-0.08467137068510056,
0.387253999710083,
-0.08020525425672531,
-0.3159043788909912,
0.5106098055839539,
-0.06878533214330673,
0.3722468614578247,
0.26866674423217773,
-0.00012079049338353798,
0.04239146411418915,
0.25994420051574707,
-0.13258346915245056,
-0.2994994819164276,
-0.59920734167099,
-0.08856766670942307,
-0.3759456276893616,
0.46672889590263367,
-0.11011815816164017,
-0.07928522676229477,
0.0684128999710083,
-0.15599316358566284,
-0.4584487974643707,
0.41706228256225586,
0.46063196659088135,
0.15602406859397888,
-0.22494040429592133,
-0.1643284261226654,
0.009642133489251137,
0.49413496255874634,
0.15964023768901825,
-0.14233650267124176,
0.26970306038856506,
0.08664317429065704,
-0.18216928839683533,
-0.23138603568077087,
0.02028506249189377,
-0.15448343753814697,
0.3192253112792969,
0.22532032430171967,
0.29239052534103394,
-0.30810150504112244,
-0.28104013204574585,
0.026140624657273293,
0.22125615179538727,
0.7244579195976257,
-0.09426364302635193,
-0.2048064023256302,
-0.2172975391149521,
-0.04807835817337036,
-0.09171754866838455,
0.31312820315361023,
0.3217799663543701,
-0.07330073416233063,
0.2957074046134949,
-0.04146040230989456,
0.022965755313634872,
-0.2213740050792694,
0.12056668102741241,
-0.11480963975191116,
-0.0006330928881652653,
-0.17681343853473663,
0.2903600335121155,
0.12180624902248383,
0.09481897950172424,
0.23433038592338562,
-0.16214321553707123,
-0.0009311271132901311,
0.12886445224285126,
-0.5839777588844299,
0.2475130409002304,
-0.09866520017385483,
-0.06681686639785767,
-0.11030393093824387,
0.2539924085140228,
0.15015816688537598,
0.009018274955451488,
-0.17368489503860474,
0.296342670917511,
0.42080748081207275,
-0.007167598698288202,
0.05590951070189476,
0.3210426867008209,
0.3060678243637085,
-0.16650623083114624,
-0.005198023281991482,
-0.11151740700006485,
-0.18172873556613922,
-0.34274256229400635,
-0.18602432310581207,
0.10372858494520187,
0.20948736369609833,
-0.20044396817684174,
-0.2784614562988281,
0.014166824519634247,
-0.18271824717521667,
0.04194372892379761,
-0.11357730627059937,
0.29823917150497437,
0.014618976041674614,
0.3928477168083191,
0.014572934247553349,
0.26108697056770325,
-0.19829846918582916,
-0.2762894928455353,
-0.006985232699662447,
0.12864188849925995,
-0.3538248538970947,
-0.039692170917987823,
0.48892486095428467,
-0.16608500480651855,
0.13367748260498047,
0.20676913857460022,
-0.05370044708251953,
-0.2936582565307617,
-0.10075746476650238,
-0.3508060872554779,
0.15122181177139282,
0.27548322081565857,
0.1813349425792694,
0.2705017328262329,
0.3625774681568146,
-0.281830370426178,
-0.13209593296051025,
0.2809009253978729,
-0.45528551936149597,
-0.16792508959770203,
-0.09742054343223572,
0.09098242968320847,
-0.2902529239654541,
0.1167386844754219,
-0.31802958250045776,
0.16678476333618164,
0.018654610961675644,
-0.19303017854690552,
-0.17417733371257782,
-0.286238431930542,
-0.31742122769355774,
-0.346051961183548,
-0.03223953768610954,
0.5567394495010376,
-0.8378715515136719,
0.13864262402057648,
-0.06700621545314789,
-0.0069628213532269,
0.12023193389177322,
0.28398552536964417,
-0.20876185595989227,
0.015227444469928741,
-0.29893991351127625,
0.1312762349843979,
0.17326350510120392,
-0.26120027899742126,
-0.38632357120513916,
0.2486075609922409,
-0.0008812980377115309,
0.09016907960176468,
0.1690719723701477,
0.07554265111684799,
0.4963606595993042,
-0.01609584130346775,
-0.08895537257194519,
0.3020792603492737,
-0.04911336675286293,
0.08098622411489487,
-0.18484710156917572,
-0.2849670946598053,
0.31722503900527954,
0.19951045513153076,
0.09771328419446945,
0.08486130833625793,
0.23033538460731506,
-0.4987609386444092,
0.306767076253891,
-0.06299855560064316,
0.22095686197280884,
0.05253642052412033,
0.1889113038778305,
0.09941291064023972,
0.2802126109600067,
-0.03165808692574501,
-0.5756874084472656,
0.18894270062446594,
0.4474709630012512,
-0.11217950284481049,
-0.17677432298660278,
-0.10579139739274979,
-0.42516225576400757,
-0.07120310515165329,
-0.2718633711338043,
-0.03077862784266472,
-0.020810255780816078,
0.043117355555295944,
-0.07570868730545044,
-0.09271208941936493,
-0.14733950793743134,
0.4585493206977844,
-0.23812903463840485,
0.21817028522491455,
-0.3602611720561981,
0.3145003318786621,
0.19412289559841156,
-0.0531482920050621,
0.13144005835056305,
0.040828920900821686,
0.17058441042900085,
-0.06984799355268478,
-0.10439624637365341,
0.26481008529663086,
0.4699589014053345,
-0.05065558850765228,
-0.021837355569005013,
-0.23116660118103027,
0.1496649831533432,
-0.16106155514717102,
0.017478883266448975,
0.18801634013652802,
0.3294554352760315,
-0.14439910650253296,
-0.47457680106163025,
0.3915097713470459,
-0.3383186459541321,
0.3178921639919281,
-0.1259983330965042,
0.15175563097000122,
0.22544586658477783,
0.019741171970963478,
-0.09367148578166962,
-0.11947590112686157,
-0.1482662856578827,
-0.032559800893068314,
0.36598700284957886,
0.11296592652797699,
-0.15030089020729065,
-0.11294111609458923,
0.28785422444343567,
0.16905510425567627,
-0.11960389465093613,
0.1870761215686798,
-0.1231052428483963,
-0.14745470881462097,
0.2803918421268463,
0.36710548400878906,
0.495561808347702,
0.0771469697356224,
-0.23485368490219116,
-0.05805791914463043,
0.057346127927303314,
-0.2526850700378418,
0.13501429557800293,
0.044017646461725235,
0.08652208745479584,
0.1999140977859497,
0.09430103749036789,
-0.0033019857946783304,
-0.15713432431221008,
-0.1080670952796936,
0.1180737093091011,
0.15049217641353607,
-0.552584707736969,
0.07308102399110794,
-0.2852839231491089,
0.1734769642353058,
-0.2393064647912979,
-0.11328380554914474,
0.05258997902274132,
-0.32082799077033997,
-0.2696242928504944,
0.23119868338108063,
-0.11162935942411423,
0.021042320877313614,
-0.11596906930208206,
0.19406908750534058,
-0.02596723847091198,
-0.2768670320510864,
0.13536566495895386,
-0.16601888835430145,
-0.2796306312084198,
0.026130225509405136,
0.08999041467905045,
0.04053334519267082,
-0.03149038925766945,
0.01053232979029417,
-0.005416549276560545,
-0.16790345311164856,
-0.029413141310214996,
0.1906539648771286,
-0.0258908960968256,
0.04816609248518944,
0.25019600987434387,
-0.11075228452682495,
0.028653321787714958,
-0.17136649787425995,
0.12703430652618408,
0.10980033874511719,
0.08114133030176163,
0.2782084345817566,
0.23571741580963135,
-0.006710638292133808,
-0.1312563270330429,
-0.7236316204071045,
-0.3136632442474365,
-0.2459089159965515,
0.07549083977937698,
-0.06284300982952118,
-0.079633429646492,
0.032672006636857986,
0.30508989095687866,
-0.08465071767568588,
0.25685054063796997,
-0.024678809568285942,
-0.14091628789901733,
-0.11209636926651001,
0.5172940492630005,
-0.20122666656970978,
-0.2881707549095154,
0.2345360964536667,
-0.12068206071853638,
0.04655538499355316,
0.39018356800079346,
-0.4093536138534546,
0.16912902891635895,
-0.04970531538128853,
0.07151272147893906,
0.06377097964286804,
0.08031947165727615,
0.1051052138209343,
-0.009001249447464943,
0.11070489883422852,
-0.058984268456697464,
-0.18681523203849792,
0.21015416085720062,
-0.07238849997520447,
0.016438230872154236,
0.19452325999736786,
0.4666741192340851,
-0.18059006333351135,
0.7081642150878906,
0.052877143025398254,
0.0586845800280571,
0.19352774322032928,
-0.0913907140493393,
0.367537260055542,
0.03275051340460777,
-0.20142416656017303,
-0.008577089756727219,
-0.13618534803390503,
-0.3072943389415741,
0.43659964203834534,
0.04401056841015816,
-0.14721666276454926,
-0.16719543933868408,
0.21170508861541748,
-0.2908908426761627,
-0.26115337014198303,
0.18168510496616364,
-0.1667778044939041,
-0.08160126209259033,
0.01537243090569973,
0.27615687251091003,
0.09795045107603073,
-0.1838974952697754,
-0.16672708094120026,
0.15016745030879974,
0.17271500825881958,
-0.09773119539022446,
0.15667998790740967,
-0.10634171217679977,
-0.36283692717552185,
0.2003892958164215,
-0.02338233031332493,
0.35077324509620667,
0.13906867802143097,
-0.17858026921749115,
0.0689704567193985,
0.2334894984960556,
0.676369309425354,
-0.2118423730134964,
-0.10887713730335236,
0.136204332113266,
-0.16703559458255768,
-0.2020246535539627,
-0.22693447768688202,
-0.08950314670801163,
0.321804016828537,
-0.013582909479737282,
0.1687477082014084,
-0.09819012135267258,
-0.04408497363328934,
0.28923699259757996,
0.1672760248184204,
-0.1867424100637436,
-0.28678277134895325,
-0.11763428151607513,
-0.04632195830345154,
-0.1826346516609192,
-0.2411179095506668,
0.10629552602767944,
0.07289998233318329,
-0.2928990125656128,
-0.004178012255579233,
-0.19732503592967987,
-0.24763859808444977,
0.34369173645973206,
0.1330283135175705,
0.2578414976596832,
-0.031351860612630844,
0.13943034410476685,
0.20092763006687164,
0.17624063789844513,
0.23312386870384216,
0.7674669027328491,
-0.3200324475765228,
-0.8968957662582397,
0.21908950805664062,
-0.4767709970474243,
0.2948756515979767,
0.06998151540756226,
-0.31031498312950134,
-0.020483698695898056,
-0.2447081357240677,
-0.11144551634788513,
-0.12086056172847748,
-0.13850592076778412,
0.11313340812921524,
-0.07704713940620422,
-0.21780775487422943,
-0.6420854926109314,
0.4519008994102478,
-0.08049295842647552,
-0.1387156993150711,
0.19718852639198303,
-0.005980554036796093,
-0.3941088914871216,
0.5317514538764954,
-0.102506123483181,
0.6488483548164368,
-0.14430737495422363,
0.06635476648807526,
0.1926671713590622,
-0.1060868576169014,
0.5815534591674805,
-0.2526145875453949,
-0.031448837369680405,
-0.48369017243385315,
-0.09939344227313995,
-0.21134351193904877,
0.01615261286497116,
0.07454624027013779,
0.5343912839889526,
-0.16542677581310272,
0.4403240382671356,
-0.13460740447044373,
0.4269818663597107,
0.07495544850826263,
0.18481071293354034,
0.21630415320396423,
-0.2788413465023041,
-0.19009052217006683,
0.06593459099531174,
-0.06448464095592499,
-0.023528384044766426,
0.09545047581195831,
0.07067807018756866,
-0.23941291868686676,
-0.038349803537130356,
-0.3074463903903961,
0.24042285978794098,
0.01345790084451437,
0.14971625804901123,
0.05673794820904732,
-0.5112695097923279,
0.5276229381561279,
0.4659344553947449,
0.1288301795721054,
-0.07718133181333542,
-0.17155562341213226,
0.064741350710392,
-0.07690110057592392,
0.10655002295970917,
-0.047645777463912964,
-0.06523285806179047,
0.11839736998081207,
0.30975598096847534,
-0.18498671054840088,
0.19650860130786896,
-0.13292613625526428,
-0.06003659591078758,
0.28790777921676636,
0.3575037717819214,
0.2925901412963867,
-0.5540472865104675,
-0.31868112087249756,
-0.20824545621871948,
0.17509132623672485,
-0.09219810366630554,
0.028725700452923775,
-0.06401366740465164,
0.17392508685588837,
0.12481728196144104,
-0.021496009081602097,
-0.37389132380485535,
0.045145027339458466,
0.1663762480020523,
-0.029065942391753197,
0.05724383890628815,
0.4186040163040161,
0.3911678194999695,
-0.16915996372699738,
-0.17077471315860748,
0.040666889399290085,
0.0574512742459774,
-0.5586922764778137,
0.27269360423088074,
0.09452712535858154,
0.1553146094083786,
0.0937948226928711,
0.1295144259929657,
0.07507108151912689,
-0.14728543162345886,
-0.027417277917265892,
-0.5871504545211792,
0.03917057812213898,
0.05186546593904495,
-0.1045517846941948,
0.046798817813396454,
0.09843920171260834,
-0.4158431887626648,
-0.05312293395400047,
-0.14607800543308258,
-0.16623760759830475,
0.12270759046077728,
0.09529498219490051,
0.02825840376317501,
0.20558331906795502,
0.3031574785709381,
-0.12560957670211792,
-0.2308114469051361,
-0.015837684273719788,
0.03656340017914772,
0.13341940939426422,
-0.09224212914705276,
-0.17674100399017334,
0.20064029097557068,
-0.037426821887493134,
0.1355469524860382,
-0.23352749645709991,
-0.21750037372112274,
-0.2205778956413269,
-0.2437773495912552,
0.2594328224658966,
0.3854048550128937,
-0.0624370314180851,
0.34236231446266174,
-0.007410017773509026,
-0.02182125486433506,
-0.5484734177589417,
0.37212488055229187,
-0.3337457478046417,
0.2648541331291199,
0.11671581864356995,
0.24496294558048248,
0.07131463289260864,
0.10019388794898987,
-0.07352972775697708,
0.040366221219301224,
-0.09355862438678741,
-0.10601426661014557,
0.3031860888004303,
-0.33082517981529236,
0.25215715169906616,
0.1782934069633484,
0.3616372346878052,
0.43591541051864624,
-0.04122786223888397,
-0.1274755746126175,
0.11861289292573929,
0.1057942807674408,
-0.2864654064178467,
0.15204039216041565,
0.11588316410779953,
0.19542714953422546,
0.00933248084038496,
0.43704697489738464,
-0.004451810382306576,
-0.13981254398822784,
0.029628602787852287,
0.08494231104850769,
0.6649828553199768,
0.1072680875658989,
0.2528630495071411,
0.38187918066978455,
-0.04355241730809212,
0.17846933007240295,
0.16057993471622467,
-0.10217483341693878,
0.1207098588347435,
0.5896922945976257,
-0.13464123010635376,
0.030912773683667183,
0.25683528184890747,
0.19648854434490204,
-0.0786200538277626,
-0.6072860956192017,
0.3335478901863098,
0.295357882976532,
-0.2968015968799591,
-0.09502014517784119,
0.17487481236457825,
0.6289708614349365,
-0.18537545204162598,
0.13863413035869598,
-0.3035651445388794,
-0.07269790023565292,
0.06576503068208694,
-0.09956809878349304,
-0.14491188526153564,
-0.23967835307121277,
-0.32532137632369995,
0.25764501094818115,
-0.22217348217964172,
-0.14469648897647858,
0.3557281196117401,
0.14538848400115967,
0.02122436836361885,
-0.5101596713066101,
0.17693904042243958,
0.06113208830356598,
0.0676240473985672,
-0.24182751774787903,
0.045264385640621185,
-0.05999479815363884,
0.10750090330839157,
0.4110960066318512,
-0.18622910976409912,
0.35821622610092163,
0.4266980290412903,
-0.010240544565021992,
-0.40812474489212036,
-0.07334748655557632,
-0.06974927335977554,
-0.09912968426942825,
0.414191871881485,
-0.0458855926990509,
0.355288565158844,
0.300696462392807,
0.10727866739034653,
-0.022889643907546997,
0.1493750661611557,
0.190464049577713,
0.05956906080245972,
-0.4607403874397278,
0.026030298322439194,
0.03156261518597603,
-0.05546334385871887,
-0.08093570917844772,
-0.13324148952960968,
-0.12065865099430084,
-0.2544747292995453,
0.4193512797355652,
0.0971187874674797,
0.23523126542568207,
0.1572284698486328,
0.0010580208618193865,
-0.04901675134897232,
0.19459599256515503,
0.31540390849113464,
0.11793564260005951,
-0.3888411521911621,
0.014833183027803898,
-0.7008813619613647,
-0.057734645903110504,
-0.16030709445476532,
-0.22273224592208862,
-0.06579028815031052,
0.26676836609840393,
0.30007025599479675,
0.27223461866378784,
-0.10756407678127289,
0.28551843762397766,
0.040735844522714615,
0.24881136417388916,
-0.10101252049207687,
-0.2874625325202942,
-0.2420128434896469,
-0.02277965471148491,
-0.1214364767074585,
-0.5083069205284119,
-0.01040201261639595,
0.3372930884361267,
-0.15674088895320892,
-0.1524055153131485,
-0.03987659886479378,
0.17268423736095428,
-0.3162716329097748,
0.28244516253471375,
0.04856756329536438,
0.46256178617477417,
0.03507079556584358,
0.22867974638938904,
-0.33664530515670776,
-0.24337124824523926,
-0.2299162894487381,
0.30206847190856934,
-0.07971840351819992,
0.4605030417442322,
-0.36777544021606445,
0.0734986960887909,
-0.21315886080265045,
0.06996423751115799,
0.1490730345249176,
0.2884458005428314,
-0.4138549566268921,
0.2748313844203949,
-0.1599973738193512,
0.20014835894107819,
-0.02249186858534813,
0.08125054836273193,
-0.2107774019241333,
0.15453653037548065,
-0.008340466767549515,
-0.2705020010471344,
0.17350105941295624,
-0.28119245171546936,
-0.2791191637516022,
-0.03976646065711975,
0.17208415269851685,
0.17270921170711517,
0.09391529113054276,
-0.44747915863990784,
-0.044083427637815475,
0.34224826097488403,
-0.17150859534740448,
-0.14932741224765778,
0.034532371908426285,
0.01464646216481924,
0.04413818567991257,
-0.20101210474967957,
0.1968456506729126,
0.3159107565879822,
-0.26899296045303345,
-0.06722348928451538,
-0.3839844763278961
] |
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.0013093234738335013,
0.05171147733926773,
-0.019382527098059654,
0.40136536955833435,
0.23510713875293732,
0.22222833335399628,
0.5522070527076721,
0.32110971212387085,
0.23969946801662445,
-0.03639329969882965,
-0.14609882235527039,
0.22432419657707214,
-0.025056226179003716,
0.1022297739982605,
-0.3207232356071472,
-0.1825469583272934,
0.04530785232782364,
0.0672888234257698,
-0.2340884953737259,
0.06178673729300499,
-0.35907548666000366,
0.3422658145427704,
-0.2727224826812744,
-0.014488210901618004,
-0.20788346230983734,
0.012481638230383396,
-0.105349101126194,
0.29696792364120483,
-0.14837564527988434,
-0.2648249864578247,
0.4790060222148895,
-0.17164558172225952,
0.5383778810501099,
0.33962520956993103,
-0.00011821795487776399,
0.047069795429706573,
0.2971404492855072,
-0.12464887648820877,
-0.20830711722373962,
-0.5637425780296326,
-0.05611905828118324,
-0.33377590775489807,
0.30931535363197327,
-0.1384047269821167,
-0.030610185116529465,
0.002626359462738037,
-0.1647101193666458,
-0.37167105078697205,
0.5169061422348022,
0.5258512496948242,
0.17005540430545807,
-0.2575107514858246,
-0.10545813292264938,
0.010398357175290585,
0.5956746339797974,
0.07962864637374878,
-0.12613722681999207,
0.22395458817481995,
0.0111490273848176,
-0.12828922271728516,
-0.12612299621105194,
0.0465887077152729,
-0.040938034653663635,
0.3501430153846741,
0.13060380518436432,
0.28086426854133606,
-0.21739958226680756,
-0.2594375014305115,
0.035764917731285095,
0.16460669040679932,
0.6517994403839111,
-0.09075435996055603,
-0.25573286414146423,
-0.08936197310686111,
-0.04586726054549217,
-0.19060242176055908,
0.2356332540512085,
0.40252482891082764,
-0.014393888413906097,
0.2629036009311676,
-0.03021995909512043,
0.062125369906425476,
-0.23079577088356018,
0.14390785992145538,
-0.02915177494287491,
0.09889861941337585,
-0.24199435114860535,
0.31047916412353516,
0.07489246129989624,
0.03763258829712868,
0.2845783233642578,
-0.08039263635873795,
-0.08537976443767548,
0.10971315950155258,
-0.7357713580131531,
0.1972234547138214,
-0.2606315314769745,
-0.13936753571033478,
-0.18183298408985138,
0.23014050722122192,
0.19867192208766937,
-0.04805518314242363,
-0.07111073285341263,
0.32671236991882324,
0.36199653148651123,
0.11962553858757019,
-0.04932485520839691,
0.30389443039894104,
0.21541787683963776,
-0.11920063197612762,
-0.08237484097480774,
-0.1898963451385498,
-0.2964746356010437,
-0.5364343523979187,
-0.06903894245624542,
0.16940419375896454,
0.2778790593147278,
-0.20566725730895996,
-0.3103751242160797,
0.04156291484832764,
-0.3661011755466461,
-0.059354811906814575,
-0.0650036633014679,
0.3313748836517334,
0.048493385314941406,
0.18003681302070618,
-0.019931480288505554,
0.33292439579963684,
-0.10167927294969559,
-0.25379276275634766,
-0.009934768080711365,
0.21294331550598145,
-0.3322179615497589,
-0.047576624900102615,
0.4394688010215759,
-0.13993778824806213,
0.16989177465438843,
0.14387093484401703,
-0.10166097432374954,
-0.3589435815811157,
-0.04391168802976608,
-0.3201150596141815,
0.05980876460671425,
0.2911030650138855,
0.09772104024887085,
0.2263788878917694,
0.2708277702331543,
-0.20049603283405304,
-0.11346837878227234,
0.3200472593307495,
-0.4528765380382538,
-0.19494256377220154,
-0.12361565232276917,
0.06388674676418304,
-0.2958916425704956,
0.051612477749586105,
-0.39751532673835754,
0.007090471219271421,
0.1372077614068985,
-0.16904541850090027,
-0.1107429787516594,
-0.25980517268180847,
-0.2234506905078888,
-0.23294253647327423,
-0.029773332178592682,
0.3591502904891968,
-0.7292485237121582,
0.2099156379699707,
-0.13053958117961884,
0.13978807628154755,
0.20426444709300995,
0.27834802865982056,
-0.2136739194393158,
0.083818219602108,
-0.19575901329517365,
0.13984404504299164,
0.192280575633049,
-0.19488143920898438,
-0.2584928572177887,
0.33685916662216187,
-0.05480204150080681,
0.011878909543156624,
0.14804424345493317,
0.007960891351103783,
0.2661389112472534,
0.011809678748250008,
-0.2148757129907608,
0.27793964743614197,
-0.1107124388217926,
0.05320645868778229,
-0.2178422212600708,
-0.295886754989624,
0.3931144177913666,
0.2233065813779831,
0.08091122657060623,
0.06378449499607086,
0.2193497121334076,
-0.48878589272499084,
0.29112324118614197,
-0.007468787953257561,
0.21309928596019745,
0.12665095925331116,
0.239958718419075,
-0.011825311928987503,
0.3064190149307251,
-0.046806350350379944,
-0.5506247282028198,
0.12114415317773819,
0.29730647802352905,
-0.08053326606750488,
-0.24912004172801971,
-0.029333343729376793,
-0.4990505278110504,
-0.12634426355361938,
-0.19318260252475739,
-0.14718857407569885,
-0.011376834474503994,
0.0028396493289619684,
-0.06954310089349747,
-0.1811050921678543,
-0.12317130714654922,
0.410418301820755,
-0.19682057201862335,
0.15748010575771332,
-0.4205068051815033,
0.3484323024749756,
0.068518728017807,
-0.046661846339702606,
0.23225842416286469,
-0.04705320671200752,
0.31723108887672424,
-0.17372064292430878,
-0.17261047661304474,
0.2992415130138397,
0.34520456194877625,
0.051455527544021606,
0.09207210689783096,
-0.2689482271671295,
0.08439025282859802,
-0.13458725810050964,
-0.07657992839813232,
0.19757257401943207,
0.3707110583782196,
-0.09020565450191498,
-0.4967181980609894,
0.3981718420982361,
-0.37305203080177307,
0.34078648686408997,
-0.1548343449831009,
0.12140259891748428,
0.2545323669910431,
-0.03428041934967041,
-0.0573209747672081,
0.015431253239512444,
-0.06749806553125381,
-0.041451480239629745,
0.18136128783226013,
0.12049156427383423,
-0.14124718308448792,
-0.09476211667060852,
0.293253630399704,
0.12428917735815048,
-0.21714408695697784,
0.149635449051857,
-0.021259048953652382,
-0.09072127193212509,
0.32342156767845154,
0.4788168668746948,
0.49891719222068787,
0.0934966653585434,
-0.22579993307590485,
-0.05020769312977791,
0.09059546142816544,
-0.21292831003665924,
0.14957749843597412,
0.13147509098052979,
0.15684683620929718,
0.14971964061260223,
0.10467252135276794,
0.030983731150627136,
-0.0564095675945282,
-0.15312236547470093,
0.25757259130477905,
0.28651586174964905,
-0.5545135736465454,
0.08325749635696411,
-0.27428939938545227,
0.25123339891433716,
-0.29483357071876526,
-0.12454106658697128,
0.11243785172700882,
-0.3302784860134125,
-0.29789841175079346,
0.2424989491701126,
-0.11888796091079712,
0.07664743810892105,
-0.18877142667770386,
0.18582312762737274,
0.09451272338628769,
-0.1874375194311142,
0.046010471880435944,
-0.22972898185253143,
-0.1853150725364685,
0.044020067900419235,
0.16080810129642487,
0.114764504134655,
-0.1593763381242752,
0.09248378872871399,
0.11202016472816467,
-0.11316312104463577,
-0.07349015027284622,
0.12055762112140656,
-0.06929323822259903,
0.1066175252199173,
0.06110061705112457,
-0.09710128605365753,
-0.11532533168792725,
-0.30063706636428833,
0.09560363739728928,
0.0619494691491127,
0.05240641161799431,
0.335886150598526,
0.30104392766952515,
-0.1343686729669571,
-0.06371654570102692,
-0.771294891834259,
-0.292863667011261,
-0.2254822552204132,
0.13641442358493805,
-0.06039856746792793,
-0.08004388958215714,
-0.00946762040257454,
0.27299562096595764,
-0.04667609930038452,
0.3181817829608917,
-0.08198647946119308,
-0.15243437886238098,
-0.3559529781341553,
0.6282113194465637,
-0.3358764052391052,
-0.2506924867630005,
0.21234972774982452,
-0.08918966352939606,
0.013500002212822437,
0.33052530884742737,
-0.3797052800655365,
0.2495909184217453,
-0.07879798859357834,
-0.05022561177611351,
-0.0006280470406636596,
0.02385893277823925,
0.03809607774019241,
-0.007166789844632149,
0.08192137628793716,
-0.010326119139790535,
-0.1273975372314453,
0.2148551642894745,
0.04832015186548233,
0.12612439692020416,
0.10469836741685867,
0.44447094202041626,
-0.14542362093925476,
0.8326641321182251,
0.009213974699378014,
0.02083810791373253,
0.21854571998119354,
-0.11460205912590027,
0.27671366930007935,
0.13388776779174805,
-0.2511598765850067,
0.012634456157684326,
-0.1921900063753128,
-0.2479168176651001,
0.31812500953674316,
-0.06223475933074951,
-0.1635580062866211,
-0.06711328774690628,
0.22532868385314941,
-0.3498939573764801,
-0.2616165578365326,
0.21975624561309814,
-0.0992865040898323,
-0.05689702928066254,
0.0018095310078933835,
0.19728466868400574,
0.11129163205623627,
-0.24537868797779083,
-0.12104832381010056,
0.09736188501119614,
0.1619674414396286,
-0.08682380616664886,
0.09869091212749481,
-0.16754117608070374,
-0.2355758398771286,
0.2341688573360443,
-0.025750059634447098,
0.4650130569934845,
0.11910466849803925,
-0.0924302488565445,
0.042770907282829285,
0.1901140809059143,
0.7903685569763184,
-0.27729344367980957,
-0.06697089225053787,
0.08950895816087723,
-0.08430763334035873,
-0.13866186141967773,
-0.24876637756824493,
-0.14393483102321625,
0.34558773040771484,
-0.06328467279672623,
0.24619722366333008,
-0.016196344047784805,
0.009898803196847439,
0.41048452258110046,
0.07643436640501022,
-0.18930986523628235,
-0.36674511432647705,
-0.12031762301921844,
-0.00035374669823795557,
-0.1793951541185379,
-0.18403765559196472,
0.23914067447185516,
0.19342166185379028,
-0.33776915073394775,
0.05852548032999039,
-0.2245914489030838,
-0.19832003116607666,
0.40038764476776123,
0.10006400942802429,
0.2224871665239334,
0.05373627319931984,
0.15032337605953217,
0.16582916676998138,
0.09662920236587524,
0.20354999601840973,
0.7843940258026123,
-0.20093585550785065,
-0.834943950176239,
0.2318476289510727,
-0.509924590587616,
0.33291056752204895,
0.06963921338319778,
-0.3419289290904999,
-0.07500346004962921,
-0.15235567092895508,
-0.0593249537050724,
-0.06418325752019882,
-0.06523703038692474,
0.11926764249801636,
-0.03152528777718544,
-0.17016355693340302,
-0.49615851044654846,
0.5014413595199585,
-0.1725473403930664,
-0.09937939792871475,
0.1650889813899994,
0.0060841855593025684,
-0.31515443325042725,
0.5069116950035095,
-0.12649285793304443,
0.7633351683616638,
-0.0809839740395546,
-0.038455523550510406,
0.12387259304523468,
-0.25183889269828796,
0.4888059198856354,
-0.3862510025501251,
0.017193203791975975,
-0.44490179419517517,
-0.18770666420459747,
-0.17974622547626495,
-0.009415562264621258,
0.1393856257200241,
0.5158733129501343,
-0.1586601436138153,
0.3798234462738037,
-0.06426641345024109,
0.3847041130065918,
0.010050070472061634,
0.17987072467803955,
0.23998817801475525,
-0.2542884349822998,
-0.1591581255197525,
0.061796240508556366,
-0.11367982625961304,
0.040283236652612686,
0.12155397981405258,
-0.06850152462720871,
-0.301498144865036,
-0.022290457040071487,
-0.2587718367576599,
0.2786270081996918,
0.006409458816051483,
0.16969741880893707,
0.06705408543348312,
-0.5253943204879761,
0.4796040654182434,
0.41570815443992615,
0.15022824704647064,
-0.15487894415855408,
-0.17651747167110443,
0.14544330537319183,
-0.0027774993795901537,
0.0345425046980381,
-0.11732737720012665,
-0.023421768099069595,
0.1226179376244545,
0.2246326059103012,
-0.216738760471344,
0.21416114270687103,
-0.1105538085103035,
-0.05736905336380005,
0.27840909361839294,
0.28306418657302856,
0.11584105342626572,
-0.578665018081665,
-0.4050559997558594,
-0.19941183924674988,
0.035576872527599335,
-0.13584738969802856,
0.04278456047177315,
-0.09590254724025726,
-0.007378246635198593,
0.07901701331138611,
-0.010954411700367928,
-0.37999507784843445,
0.016381889581680298,
0.23044843971729279,
-0.10416750609874725,
0.1677059680223465,
0.4894421696662903,
0.39914894104003906,
-0.12030543386936188,
-0.15656717121601105,
0.1239941194653511,
0.19432465732097626,
-0.6159326434135437,
0.14854852855205536,
-0.01607726886868477,
0.27071475982666016,
0.1173541247844696,
0.09353186935186386,
0.1481490433216095,
-0.113104447722435,
0.12289825826883316,
-0.6571769714355469,
-0.0065177432261407375,
-0.016392717137932777,
-0.025537217035889626,
0.06612234562635422,
-0.0053576272912323475,
-0.34719589352607727,
-0.006331270560622215,
-0.01854589395225048,
-0.17745837569236755,
0.2192821502685547,
-0.01601816527545452,
0.0773727148771286,
0.08759269118309021,
0.22374778985977173,
-0.1134931668639183,
-0.316047728061676,
0.0059331986121833324,
0.08079888671636581,
0.12899149954319,
-0.11853396892547607,
-0.23444466292858124,
0.18074339628219604,
0.05130635201931,
0.11726270616054535,
-0.29162880778312683,
-0.17120330035686493,
-0.2519421875476837,
-0.11570805311203003,
0.12226159125566483,
0.3097822368144989,
0.07638723403215408,
0.42019230127334595,
0.06320636719465256,
-0.13470031321048737,
-0.5766670107841492,
0.24318930506706238,
-0.25179263949394226,
0.2563337981700897,
0.20043490827083588,
0.2189350575208664,
0.15264306962490082,
0.1326296478509903,
-0.10451366752386093,
-0.11998255550861359,
-0.14097948372364044,
-0.12321318686008453,
0.30646049976348877,
-0.3543682098388672,
0.16589629650115967,
0.13189612329006195,
0.36394670605659485,
0.45016372203826904,
-0.0877356082201004,
-0.029606366530060768,
0.1945369988679886,
0.10601627081632614,
-0.310994416475296,
0.2500659227371216,
0.10154947638511658,
0.21927066147327423,
-0.06665078550577164,
0.3654019832611084,
-0.058688074350357056,
-0.005922478623688221,
0.04186578094959259,
0.157199889421463,
0.6517176628112793,
0.0037274945061653852,
0.25344404578208923,
0.27008339762687683,
-0.10337962210178375,
0.17181816697120667,
0.26590389013290405,
-0.03999539837241173,
0.05038290470838547,
0.4718823730945587,
-0.17457132041454315,
0.05588222295045853,
0.3098170757293701,
0.23016715049743652,
-0.0958881676197052,
-0.5000240802764893,
0.20135557651519775,
0.3368731141090393,
-0.2262837439775467,
-0.06123804673552513,
0.20303404331207275,
0.7519767880439758,
-0.07415524870157242,
0.09443902224302292,
-0.2837042808532715,
-0.05297492817044258,
0.06889621168375015,
-0.05068666487932205,
-0.1667233109474182,
-0.19430717825889587,
-0.4568818211555481,
0.21750149130821228,
-0.15786603093147278,
-0.16992130875587463,
0.350559264421463,
0.22557151317596436,
-0.020550420507788658,
-0.46431106328964233,
0.10084036737680435,
0.09510036557912827,
0.10842784494161606,
-0.29655033349990845,
0.024969013407826424,
0.013613961637020111,
-0.03711148723959923,
0.35682493448257446,
-0.230385884642601,
0.3943682909011841,
0.3589625954627991,
-0.08248798549175262,
-0.2996540069580078,
-0.00019081444770563394,
-0.14678211510181427,
0.0811104029417038,
0.45752987265586853,
0.018880179151892662,
0.29796159267425537,
0.29108256101608276,
0.12235621362924576,
-0.03765634447336197,
0.34050172567367554,
0.1959139108657837,
0.16823746263980865,
-0.42093709111213684,
0.09736449271440506,
0.019437212496995926,
-0.07722293585538864,
-0.1342264860868454,
-0.2494688183069229,
-0.22478146851062775,
-0.16445961594581604,
0.28709104657173157,
-0.013904883526265621,
0.2284136563539505,
0.14832831919193268,
0.005424930714070797,
-0.06346786767244339,
0.2566857933998108,
0.26895609498023987,
0.08354171365499496,
-0.5096375346183777,
0.0921718031167984,
-0.7402231097221375,
-0.11851299554109573,
-0.1397484391927719,
-0.13500013947486877,
0.03367379307746887,
0.24566785991191864,
0.22583222389221191,
0.32755160331726074,
-0.09692788869142532,
0.1426137238740921,
-0.053268108516931534,
0.3893444538116455,
-0.1827603429555893,
-0.14950090646743774,
-0.2000492364168167,
0.10637229681015015,
-0.0652991533279419,
-0.42601919174194336,
0.05704424902796745,
0.2859652638435364,
-0.18111741542816162,
-0.12031807005405426,
-0.21477824449539185,
0.12112238258123398,
-0.23257498443126678,
0.3196112811565399,
-0.033053770661354065,
0.4393062889575958,
0.030531728640198708,
0.3137948215007782,
-0.4146047532558441,
-0.31625795364379883,
-0.1620635688304901,
0.30632320046424866,
-0.004762768745422363,
0.47634440660476685,
-0.35239699482917786,
0.04339991882443428,
-0.3214063048362732,
-0.032866835594177246,
-0.026316983625292778,
0.21407347917556763,
-0.3108554184436798,
0.2241714596748352,
-0.1598862260580063,
0.24047759175300598,
0.02550520934164524,
-0.0010700327111408114,
-0.20149926841259003,
0.1945045441389084,
-0.07345020771026611,
-0.26312145590782166,
0.2682921588420868,
-0.25156500935554504,
-0.3278558850288391,
0.12137945741415024,
0.13246944546699524,
0.34125325083732605,
0.07908400893211365,
-0.4993813931941986,
0.04598282650113106,
0.3171975910663605,
-0.16845004260540009,
-0.022621480748057365,
0.04599121958017349,
0.10458824783563614,
0.1017700806260109,
-0.16237616539001465,
0.09891796857118607,
0.3107348382472992,
-0.25705772638320923,
-0.12675398588180542,
-0.3608280420303345
] |
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.12369994819164276,
0.0545266754925251,
0.004668313544243574,
0.3440147340297699,
0.22386270761489868,
0.20722348988056183,
0.5557584762573242,
0.3320876657962799,
0.22926707565784454,
0.0723564401268959,
-0.12198612838983536,
0.18936604261398315,
-0.09884018450975418,
0.0580998919904232,
-0.315072625875473,
-0.19499391317367554,
0.025650478899478912,
0.06312200427055359,
-0.2891606390476227,
0.02473122626543045,
-0.296712726354599,
0.3495422601699829,
-0.28543153405189514,
-0.10416879504919052,
-0.24745182693004608,
0.1247466504573822,
-0.12849050760269165,
0.2887851297855377,
-0.10671273618936539,
-0.2828908860683441,
0.5074796676635742,
-0.0799291655421257,
0.46188345551490784,
0.3443641662597656,
-0.00012035014515276998,
0.0969998762011528,
0.27998480200767517,
-0.09146586060523987,
-0.278729647397995,
-0.5799648761749268,
-0.007104223128408194,
-0.37530001997947693,
0.38462480902671814,
-0.12357956916093826,
-0.1427283138036728,
0.0628604143857956,
-0.09098254144191742,
-0.37237265706062317,
0.49260613322257996,
0.5027623176574707,
0.1562836468219757,
-0.22778840363025665,
-0.20411288738250732,
-0.05131857469677925,
0.6431534886360168,
0.10482543706893921,
-0.15375149250030518,
0.27038127183914185,
0.04263542965054512,
-0.18000656366348267,
-0.1540318876504898,
0.03842484951019287,
0.018786516040563583,
0.27211320400238037,
0.15039049088954926,
0.3210102617740631,
-0.192609041929245,
-0.20600494742393494,
0.02349708415567875,
0.17838077247142792,
0.5856803059577942,
-0.06175513565540314,
-0.19988782703876495,
-0.10868967324495316,
-0.003123622154816985,
-0.2112378478050232,
0.291892409324646,
0.3944931924343109,
-0.014091704040765762,
0.2673085927963257,
-0.08407415449619293,
0.05628767982125282,
-0.27157196402549744,
0.1967211216688156,
-0.04111046716570854,
0.044190406799316406,
-0.16069719195365906,
0.309358149766922,
0.1828567385673523,
0.13525119423866272,
0.2616446018218994,
-0.06724551320075989,
-0.04682881757616997,
0.1808258295059204,
-0.7518925666809082,
0.23227094113826752,
-0.25111058354377747,
-0.15478090941905975,
-0.09369854629039764,
0.290121465921402,
0.22213342785835266,
-0.03280998766422272,
-0.07041525840759277,
0.31431177258491516,
0.36044758558273315,
0.058056898415088654,
-0.06490892171859741,
0.37385451793670654,
0.28270941972732544,
-0.0966234877705574,
-0.04958917573094368,
-0.1580696552991867,
-0.2829411029815674,
-0.5059509873390198,
-0.08120604604482651,
0.1843695342540741,
0.21146748960018158,
-0.1583942025899887,
-0.23429687321186066,
0.005078308284282684,
-0.3175964951515198,
-0.039178844541311264,
-0.09825397282838821,
0.32462242245674133,
0.12290063500404358,
0.25827738642692566,
0.018212921917438507,
0.3555503487586975,
-0.16806451976299286,
-0.32515352964401245,
-0.03902062773704529,
0.16306434571743011,
-0.3775841295719147,
-0.018738465383648872,
0.527097225189209,
-0.20264969766139984,
0.14977151155471802,
0.23780472576618195,
-0.06952977925539017,
-0.3647538423538208,
-0.01837269403040409,
-0.3357936143875122,
0.060034047812223434,
0.26789945363998413,
0.14781390130519867,
0.23570464551448822,
0.29014959931373596,
-0.1314110904932022,
-0.09913943707942963,
0.3206930160522461,
-0.45030826330184937,
-0.22986403107643127,
-0.06094201281666756,
0.0792621597647667,
-0.25661802291870117,
0.12857919931411743,
-0.31978166103363037,
0.12159356474876404,
0.12335367500782013,
-0.18941263854503632,
-0.1974068284034729,
-0.28586944937705994,
-0.3190162777900696,
-0.22521057724952698,
0.028752200305461884,
0.4265126883983612,
-0.7253022789955139,
0.16006894409656525,
-0.07357728481292725,
0.08181113749742508,
0.17621126770973206,
0.21925391256809235,
-0.30114462971687317,
0.028533803299069405,
-0.25888749957084656,
0.1298174411058426,
0.21283575892448425,
-0.14525988698005676,
-0.30539438128471375,
0.3130156099796295,
-0.08147703111171722,
-0.015028437599539757,
0.16469210386276245,
0.07351329922676086,
0.3808691203594208,
0.03462698683142662,
-0.1928330957889557,
0.2732808589935303,
-0.059981901198625565,
0.06480376422405243,
-0.21793583035469055,
-0.2626722455024719,
0.2681039273738861,
0.23989494144916534,
0.12198949605226517,
0.08868707716464996,
0.20002026855945587,
-0.42221879959106445,
0.3684161305427551,
0.0018673357553780079,
0.24214445054531097,
0.09444202482700348,
0.21728448569774628,
0.006956103723496199,
0.25949010252952576,
-0.04689634591341019,
-0.5880157351493835,
0.17508096992969513,
0.3549007177352905,
-0.14562790095806122,
-0.12726923823356628,
-0.08278318494558334,
-0.44579046964645386,
-0.10922906547784805,
-0.21932072937488556,
-0.05316426604986191,
-0.030174313113093376,
0.05460118502378464,
-0.09056736528873444,
-0.2170439213514328,
-0.15049129724502563,
0.3589518368244171,
-0.22538337111473083,
0.13455671072006226,
-0.34700897336006165,
0.37311410903930664,
0.12038405239582062,
-0.07422251254320145,
0.1797976791858673,
-0.03647907078266144,
0.309466689825058,
-0.1655770242214203,
-0.1550951451063156,
0.3368903696537018,
0.43246954679489136,
-0.017773497849702835,
-0.0070516676642000675,
-0.23372766375541687,
0.13502711057662964,
-0.15091414749622345,
-0.09886457026004791,
0.26330000162124634,
0.2995475232601166,
-0.1329541802406311,
-0.6124709248542786,
0.36895331740379333,
-0.3481314182281494,
0.3461928069591522,
-0.10828512161970139,
0.13986144959926605,
0.2544150948524475,
-0.06945030391216278,
-0.09203514456748962,
-0.050282612442970276,
-0.02468566782772541,
-0.05072661116719246,
0.21929341554641724,
0.07861212641000748,
-0.18207170069217682,
-0.14136743545532227,
0.1904693841934204,
0.14547327160835266,
-0.26420387625694275,
0.16315874457359314,
-0.057498861104249954,
-0.09098994731903076,
0.2860412299633026,
0.39598602056503296,
0.4706324338912964,
0.07969466596841812,
-0.15679827332496643,
-0.03531811386346817,
0.07408194243907928,
-0.24157847464084625,
0.11596620827913284,
0.07016824930906296,
0.0640583410859108,
0.2292766273021698,
0.2091120034456253,
0.06437034904956818,
-0.08720104396343231,
-0.1415751725435257,
0.24276456236839294,
0.18572871387004852,
-0.5693560838699341,
0.0414617545902729,
-0.26655545830726624,
0.3180033564567566,
-0.3426671624183655,
-0.05627868324518204,
0.13171342015266418,
-0.314272403717041,
-0.23927180469036102,
0.27916425466537476,
-0.15285946428775787,
0.08958852291107178,
-0.16208145022392273,
0.2411281019449234,
0.04109163209795952,
-0.18988049030303955,
0.14090637862682343,
-0.19606438279151917,
-0.2738438844680786,
0.028264937922358513,
0.15394704043865204,
0.058600958436727524,
-0.12779976427555084,
0.1029045507311821,
-0.05507893115282059,
-0.17068929970264435,
-0.008625950664281845,
0.16197003424167633,
-0.003584181657060981,
0.09082144498825073,
0.13823896646499634,
-0.10532992333173752,
-0.06460714340209961,
-0.269397497177124,
0.15041613578796387,
0.07712069153785706,
0.07100176066160202,
0.3143748939037323,
0.2691501975059509,
-0.08287254720926285,
-0.17931456863880157,
-0.7806088328361511,
-0.25703760981559753,
-0.2282649725675583,
0.06827656924724579,
-0.09432526677846909,
-0.06803914159536362,
-0.007951116189360619,
0.2537832260131836,
-0.08822280168533325,
0.313732773065567,
-0.10787574201822281,
-0.11325165629386902,
-0.22406573593616486,
0.5512239933013916,
-0.2445456087589264,
-0.3344500660896301,
0.20844902098178864,
-0.1100609079003334,
-0.02901458367705345,
0.39136189222335815,
-0.43202874064445496,
0.2069472223520279,
-0.05629030242562294,
-0.02768363244831562,
-0.06925910711288452,
0.055497851222753525,
0.06669806689023972,
-0.06051664799451828,
0.09558917582035065,
-0.022642601281404495,
-0.12511345744132996,
0.25176724791526794,
-0.0200237724930048,
0.10370347648859024,
0.06909986585378647,
0.4551241099834442,
-0.1279481053352356,
0.840536892414093,
0.09346095472574234,
0.03827980160713196,
0.2161414474248886,
-0.1279047280550003,
0.2627865672111511,
0.1161440834403038,
-0.20523691177368164,
0.04913559556007385,
-0.2187652587890625,
-0.2989215850830078,
0.3436027467250824,
0.006288728676736355,
-0.15881755948066711,
-0.08460748195648193,
0.3055959939956665,
-0.2164931297302246,
-0.2865196764469147,
0.2109031230211258,
-0.14447027444839478,
0.021243516355752945,
-0.04988698661327362,
0.17685222625732422,
0.14069120585918427,
-0.19868914783000946,
-0.09434226900339127,
0.11056546866893768,
0.10687517374753952,
-0.1261719912290573,
0.1068718284368515,
-0.12470080703496933,
-0.2584715187549591,
0.15724912285804749,
-0.04499934986233711,
0.38181182742118835,
0.11399972438812256,
-0.12696661055088043,
0.07013657689094543,
0.20510074496269226,
0.8161820769309998,
-0.170686736702919,
-0.026278970763087273,
0.13650266826152802,
-0.09434374421834946,
-0.15577982366085052,
-0.3316742479801178,
-0.13158759474754333,
0.25896352529525757,
0.028993036597967148,
0.279179185628891,
-0.09397017955780029,
0.006134031806141138,
0.4122931659221649,
0.1237509623169899,
-0.19915755093097687,
-0.3709280788898468,
-0.11767230182886124,
0.024307169020175934,
-0.10856156796216965,
-0.14391076564788818,
0.1700904816389084,
0.12371977418661118,
-0.33605125546455383,
0.03445673733949661,
-0.2056022435426712,
-0.25803878903388977,
0.3210887014865875,
0.1019870713353157,
0.2867151200771332,
0.06701333075761795,
0.22361771762371063,
0.23094019293785095,
0.08655285835266113,
0.15212805569171906,
0.8312822580337524,
-0.24763651192188263,
-0.8462256789207458,
0.30436214804649353,
-0.5130512118339539,
0.3058376610279083,
0.10061310976743698,
-0.3390437066555023,
-0.07400372624397278,
-0.207381933927536,
-0.09081345796585083,
-0.06435286998748779,
0.03851519897580147,
0.10529913753271103,
-0.10005676746368408,
-0.17680349946022034,
-0.5368034839630127,
0.5061165690422058,
-0.11586106568574905,
-0.12192325294017792,
0.11637920141220093,
-0.0640869140625,
-0.29297593235969543,
0.5268900394439697,
-0.16959698498249054,
0.6717285513877869,
-0.11613676697015762,
0.008624449372291565,
0.1661096215248108,
-0.17383980751037598,
0.38209009170532227,
-0.3971763551235199,
0.019286714494228363,
-0.41729283332824707,
-0.18710067868232727,
-0.1575159728527069,
0.028836525976657867,
0.04503623768687248,
0.5768887400627136,
-0.18671245872974396,
0.38532885909080505,
-0.10720713436603546,
0.4090868830680847,
0.01159166544675827,
0.13107070326805115,
0.277596652507782,
-0.2057441920042038,
-0.09362262487411499,
0.07302024215459824,
-0.04812643304467201,
-0.03057142347097397,
0.12573787569999695,
0.022563884034752846,
-0.22999358177185059,
-0.08618707954883575,
-0.3585098385810852,
0.3015386760234833,
-0.058020856231451035,
0.14969225227832794,
0.05501696094870567,
-0.5366527438163757,
0.474040150642395,
0.4240626394748688,
0.09323103725910187,
-0.11589699238538742,
-0.15769308805465698,
0.11588860303163528,
0.024920640513300896,
0.07124687731266022,
-0.15679825842380524,
-0.04907318949699402,
0.06243498995900154,
0.24361552298069,
-0.19718100130558014,
0.23005284368991852,
-0.12383417785167694,
-0.030562520027160645,
0.3055741488933563,
0.3118971586227417,
0.2201460301876068,
-0.5418583750724792,
-0.3424966037273407,
-0.17633606493473053,
0.11462363600730896,
-0.17323778569698334,
0.03705773875117302,
-0.08837670087814331,
0.0022495663724839687,
0.007084008306264877,
0.03663938492536545,
-0.34590715169906616,
0.09612719714641571,
0.2780536413192749,
-0.07913202047348022,
0.0692593902349472,
0.4756677746772766,
0.3913164734840393,
-0.07222925871610641,
-0.17214594781398773,
0.09245433658361435,
0.19394057989120483,
-0.6047872304916382,
0.19335733354091644,
-0.040142081677913666,
0.2394959032535553,
0.1869921237230301,
0.1891765147447586,
0.15498866140842438,
-0.12686263024806976,
0.06810253113508224,
-0.5866600275039673,
0.03944617882370949,
-0.04644157364964485,
-0.07752308994531631,
0.11532513052225113,
0.023027556017041206,
-0.3197144567966461,
-0.09976467490196228,
0.0018925245385617018,
-0.1686229705810547,
0.17392867803573608,
0.07416488230228424,
0.10877084732055664,
0.1004057377576828,
0.2541719079017639,
-0.14940449595451355,
-0.2636875510215759,
0.00888355914503336,
0.013284641318023205,
0.1262340247631073,
-0.10435554385185242,
-0.25181740522384644,
0.18143603205680847,
-0.01769566722214222,
0.2021205723285675,
-0.2842327356338501,
-0.12611407041549683,
-0.19089071452617645,
-0.1310354322195053,
0.19569352269172668,
0.2580339014530182,
-0.011284049600362778,
0.43346908688545227,
0.11498011648654938,
-0.06326350569725037,
-0.5831525921821594,
0.2543989419937134,
-0.2832888960838318,
0.17872117459774017,
0.2102702111005783,
0.2335813343524933,
0.13052549958229065,
0.10911458730697632,
-0.1699351817369461,
-0.09220705181360245,
-0.08637038618326187,
-0.08789355307817459,
0.2572658658027649,
-0.2967853248119354,
0.18091171979904175,
0.10534631460905075,
0.36114540696144104,
0.4378591477870941,
-0.08383572101593018,
-0.04778926819562912,
0.11389648169279099,
0.1188235655426979,
-0.32252076268196106,
0.2063734382390976,
0.09352416545152664,
0.23126289248466492,
-0.04270235076546669,
0.3317614495754242,
0.0004155925998929888,
-0.06434313207864761,
0.014008140191435814,
0.16942232847213745,
0.586189866065979,
0.025116294622421265,
0.2621176242828369,
0.3344123959541321,
-0.05884962156414986,
0.12117104232311249,
0.1560482233762741,
-0.1573314666748047,
0.07283017784357071,
0.44798052310943604,
-0.2174403965473175,
0.09320104867219925,
0.3141726851463318,
0.18815790116786957,
-0.1047511100769043,
-0.568824827671051,
0.189177006483078,
0.2869032025337219,
-0.28631529211997986,
-0.10887213051319122,
0.13014385104179382,
0.7349345684051514,
-0.10732844471931458,
0.02950444445014,
-0.3249370753765106,
-0.08673056960105896,
0.09725289046764374,
-0.09655164182186127,
-0.1583588719367981,
-0.2195168435573578,
-0.48495495319366455,
0.2818068265914917,
-0.18497949838638306,
-0.0466703400015831,
0.43613922595977783,
0.22323663532733917,
-0.027703672647476196,
-0.4806579053401947,
0.09662455320358276,
0.15655145049095154,
0.0846174880862236,
-0.3090490698814392,
0.08348997682332993,
-0.02126125432550907,
-0.0038151040207594633,
0.37778759002685547,
-0.24204571545124054,
0.3354337215423584,
0.3684578239917755,
0.007371434010565281,
-0.3682180643081665,
-0.06194354221224785,
-0.06302967667579651,
-0.007812842726707458,
0.37695521116256714,
0.005991341080516577,
0.30210378766059875,
0.2983400225639343,
0.09007438272237778,
-0.026135193184018135,
0.379758358001709,
0.10094054043292999,
0.12720221281051636,
-0.520670473575592,
0.04707116633653641,
0.0612594336271286,
-0.10900840163230896,
-0.09821267426013947,
-0.2307286560535431,
-0.16103962063789368,
-0.18646706640720367,
0.32314977049827576,
0.05334797874093056,
0.2272539883852005,
0.16132985055446625,
-0.005935982801020145,
-0.06978727132081985,
0.276751309633255,
0.3064684569835663,
0.035842303186655045,
-0.5206975340843201,
-0.016323234885931015,
-0.7225831747055054,
-0.09096991270780563,
-0.20591548085212708,
-0.14883586764335632,
-0.0006343796267174184,
0.28831514716148376,
0.21388377249240875,
0.3061712086200714,
-0.082225501537323,
0.10767264664173126,
-0.03760354220867157,
0.3772448003292084,
-0.20530924201011658,
-0.1663638800382614,
-0.15632539987564087,
0.09864633530378342,
-0.05784197524189949,
-0.439382404088974,
-0.025554519146680832,
0.2985113561153412,
-0.18393537402153015,
-0.05913780629634857,
-0.23759788274765015,
0.14942757785320282,
-0.24580903351306915,
0.33415135741233826,
-0.034535154700279236,
0.4197687804698944,
0.025752579793334007,
0.33327579498291016,
-0.49538370966911316,
-0.26812848448753357,
-0.21893347799777985,
0.20066723227500916,
-0.05079184100031853,
0.49449998140335083,
-0.36490222811698914,
0.05948035418987274,
-0.25129836797714233,
0.007737210486084223,
0.046817127615213394,
0.17444805800914764,
-0.28766894340515137,
0.2198352962732315,
-0.14878177642822266,
0.268841952085495,
-0.012419252656400204,
0.04976145923137665,
-0.20282047986984253,
0.13408277928829193,
-0.05023282766342163,
-0.2751538157463074,
0.23195023834705353,
-0.2538365125656128,
-0.2683006525039673,
-0.017032500356435776,
0.15449564158916473,
0.2229420393705368,
0.19020123779773712,
-0.5178750157356262,
-0.028195582330226898,
0.32566705346107483,
-0.1713876724243164,
-0.12067051231861115,
0.102958083152771,
0.15810690820217133,
0.038463447242975235,
-0.15091709792613983,
0.22866560518741608,
0.35101500153541565,
-0.2745780348777771,
-0.15159399807453156,
-0.43643781542778015
] |
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.06853434443473816,
0.019807346165180206,
0.012349976226687431,
0.4163459539413452,
0.15476325154304504,
0.13107633590698242,
0.5161134004592896,
0.3348342180252075,
0.3283665180206299,
0.07457086443901062,
-0.11742322146892548,
0.22388286888599396,
-0.13035781681537628,
0.0772811695933342,
-0.3574971854686737,
-0.14098133146762848,
-0.016140826046466827,
0.16677914559841156,
-0.3396342694759369,
-0.05413040146231651,
-0.37206053733825684,
0.30228912830352783,
-0.30711880326271057,
-0.10388418287038803,
-0.2333146333694458,
0.15471184253692627,
-0.12433234602212906,
0.26361727714538574,
-0.13068288564682007,
-0.31131282448768616,
0.5264427065849304,
-0.03480255976319313,
0.4296833276748657,
0.17962481081485748,
-0.00012024364696117118,
0.06832391768693924,
0.20989249646663666,
-0.1570214033126831,
-0.28325480222702026,
-0.592829167842865,
-0.0948915183544159,
-0.500076174736023,
0.3716951310634613,
-0.18241389095783234,
-0.18181060254573822,
0.05876339226961136,
-0.055730413645505905,
-0.36925140023231506,
0.4264981150627136,
0.44044557213783264,
0.14177295565605164,
-0.23754286766052246,
-0.22233691811561584,
0.005310344509780407,
0.5322137475013733,
0.12710979580879211,
-0.15938520431518555,
0.26285606622695923,
0.08414556831121445,
-0.17083707451820374,
-0.14678111672401428,
0.07270114868879318,
-0.03782705217599869,
0.2505057156085968,
0.15275032818317413,
0.2516299784183502,
-0.21497827768325806,
-0.2802565395832062,
-0.04730916768312454,
0.22744762897491455,
0.6906309127807617,
-0.0038556212093681097,
-0.2016989290714264,
-0.2366093099117279,
-0.008302253670990467,
-0.15863317251205444,
0.2352566421031952,
0.3178554177284241,
-0.07310734689235687,
0.3024129569530487,
-0.12140927463769913,
0.011998704634606838,
-0.2797517776489258,
0.13328398764133453,
-0.011734559200704098,
0.11401834338903427,
-0.1597449630498886,
0.3371424078941345,
0.0914064571261406,
0.1130063459277153,
0.27365949749946594,
-0.14195138216018677,
-0.050943948328495026,
0.14697088301181793,
-0.6654458045959473,
0.1463191956281662,
-0.09045211970806122,
-0.06977563351392746,
-0.08073174208402634,
0.13996481895446777,
0.20958738029003143,
0.02220296859741211,
-0.09406185895204544,
0.2417106330394745,
0.4279988706111908,
0.015215538442134857,
0.0089432867243886,
0.29752153158187866,
0.2508091330528259,
-0.1638220250606537,
-0.0027242277283221483,
-0.09821207076311111,
-0.24510741233825684,
-0.39891400933265686,
-0.15905973315238953,
0.19138874113559723,
0.2666960656642914,
-0.16631995141506195,
-0.24468936026096344,
0.03935328498482704,
-0.35119742155075073,
0.010830128565430641,
-0.1631433069705963,
0.2812632918357849,
-0.0030979930888861418,
0.3063448667526245,
0.055603232234716415,
0.27007025480270386,
-0.16310472786426544,
-0.4479633867740631,
-0.005199967417865992,
0.15098413825035095,
-0.3910142779350281,
-0.015298853628337383,
0.4608507454395294,
-0.07835908979177475,
0.0757182389497757,
0.19670219719409943,
-0.09856534749269485,
-0.3172423541545868,
-0.027844034135341644,
-0.3539459705352783,
0.11864800751209259,
0.24647870659828186,
0.1359596997499466,
0.24087335169315338,
0.3258979618549347,
-0.29795631766319275,
-0.17609795928001404,
0.33703741431236267,
-0.5105863809585571,
-0.2835363447666168,
-0.021407615393400192,
0.0790356919169426,
-0.31092748045921326,
0.216050386428833,
-0.2705378830432892,
0.23188920319080353,
0.002553628059104085,
-0.08110285550355911,
-0.2396935373544693,
-0.3311724066734314,
-0.3782079219818115,
-0.3062498867511749,
-0.018465179949998856,
0.5380908846855164,
-0.7937135100364685,
0.21139225363731384,
-0.04397832974791527,
0.0304440688341856,
0.06453486531972885,
0.23736394941806793,
-0.31468498706817627,
0.14554083347320557,
-0.30041536688804626,
0.04512587562203407,
0.21841034293174744,
-0.1572796106338501,
-0.3521280586719513,
0.22494761645793915,
-0.043850671499967575,
0.1430739015340805,
0.19462652504444122,
0.11602769047021866,
0.47476449608802795,
0.005496646277606487,
-0.14967520534992218,
0.17381539940834045,
-0.10376013815402985,
0.03634588047862053,
-0.2112031877040863,
-0.28093817830085754,
0.24933145940303802,
0.19496984779834747,
0.16289468109607697,
0.14729900658130646,
0.18637961149215698,
-0.4255869388580322,
0.39470645785331726,
-0.03184586018323898,
0.21795900166034698,
0.05516783148050308,
0.24089865386486053,
0.020124491304159164,
0.2374703586101532,
0.0013123082462698221,
-0.6431267857551575,
0.244537815451622,
0.4549817442893982,
-0.05896640568971634,
-0.07157903164625168,
-0.18609526753425598,
-0.3736647665500641,
-0.08583121001720428,
-0.23124812543392181,
-0.06665622442960739,
-0.01767878234386444,
0.0032555442303419113,
-0.04785209521651268,
-0.17578193545341492,
-0.12723448872566223,
0.4778861999511719,
-0.24507027864456177,
0.11831719428300858,
-0.33568185567855835,
0.3488140106201172,
0.15323664247989655,
0.022625839337706566,
0.18737079203128815,
-0.058468546718358994,
0.24242523312568665,
-0.14303633570671082,
-0.051510464400053024,
0.20481087267398834,
0.3868694603443146,
-0.1422170102596283,
-0.012456649914383888,
-0.1445671021938324,
0.07290998101234436,
-0.20809778571128845,
-0.04535813257098198,
0.16021163761615753,
0.36587822437286377,
-0.15805721282958984,
-0.5012957453727722,
0.46701690554618835,
-0.2943076491355896,
0.2638426721096039,
-0.15892943739891052,
0.1330960988998413,
0.23315434157848358,
-0.061094980686903,
-0.10297049582004547,
-0.001998265041038394,
-0.12204741686582565,
-0.006638537626713514,
0.25332632660865784,
0.15808165073394775,
-0.2474718540906906,
-0.12646715342998505,
0.3704729974269867,
0.24740681052207947,
-0.234877809882164,
0.14838741719722748,
-0.03300017490983009,
-0.09384439885616302,
0.29249027371406555,
0.3428397476673126,
0.4789261817932129,
0.12171833962202072,
-0.2401452511548996,
-0.05465118959546089,
0.11574452370405197,
-0.19574537873268127,
0.06618347764015198,
-0.01510812807828188,
0.17941832542419434,
0.2044958919286728,
0.08417166769504547,
0.057359807193279266,
-0.07461000233888626,
-0.1888587921857834,
0.22039982676506042,
0.1704452633857727,
-0.5285289287567139,
-0.006784957367926836,
-0.2358618825674057,
0.25029540061950684,
-0.3065764904022217,
-0.04817700758576393,
0.06679284572601318,
-0.28487345576286316,
-0.24064821004867554,
0.22470447421073914,
-0.129498690366745,
0.08325498551130295,
-0.10425333678722382,
0.24689112603664398,
-0.03107333928346634,
-0.19139692187309265,
0.13933226466178894,
-0.12902234494686127,
-0.2795030474662781,
0.014253887347877026,
0.04431222006678581,
-0.03557922691106796,
-0.07806936651468277,
0.03443494439125061,
-0.0694950595498085,
-0.22106513381004333,
-0.005524646490812302,
0.21168403327465057,
-0.04534183815121651,
0.07987301051616669,
0.19300568103790283,
-0.04382426664233208,
0.02460932917892933,
-0.16265812516212463,
0.12711122632026672,
0.22562465071678162,
0.04646192863583565,
0.22047635912895203,
0.2706630229949951,
-0.050587248057127,
-0.1775083690881729,
-0.7641403079032898,
-0.2559482157230377,
-0.18180127441883087,
0.08705038577318192,
-0.11464369297027588,
-0.008552861399948597,
-0.002259210217744112,
0.32540464401245117,
-0.0912783071398735,
0.25166764855384827,
-0.13562153279781342,
-0.09449239075183868,
-0.21832561492919922,
0.5146269202232361,
-0.1794232428073883,
-0.3070175349712372,
0.21292823553085327,
-0.16017656028270721,
0.03021046705543995,
0.3554800748825073,
-0.43251824378967285,
0.22592708468437195,
-0.024138791486620903,
0.0817534327507019,
-0.07068999111652374,
-0.041435785591602325,
0.13003632426261902,
-0.034905899316072464,
0.13923420011997223,
-0.06435210257768631,
-0.19016984105110168,
0.3100559413433075,
-0.09890042990446091,
0.09887443482875824,
0.15845777094364166,
0.49075379967689514,
-0.11986719816923141,
0.8878328800201416,
0.041500795632600784,
0.030272359028458595,
0.17540617287158966,
-0.0502932071685791,
0.34681665897369385,
0.12354792654514313,
-0.22705939412117004,
0.001211395487189293,
-0.12443126738071442,
-0.3443952798843384,
0.35321447253227234,
-0.03565635532140732,
-0.1530628800392151,
-0.1682812124490738,
0.20799380540847778,
-0.24232274293899536,
-0.2623268663883209,
0.2239590585231781,
-0.13316626846790314,
-0.029700933024287224,
0.04865531995892525,
0.21544982492923737,
0.12331711500883102,
-0.11590144038200378,
-0.17193350195884705,
0.2245178371667862,
0.2053612321615219,
-0.058306727558374405,
0.09137873351573944,
-0.15814395248889923,
-0.26926979422569275,
0.19328553974628448,
-0.03912884742021561,
0.31179189682006836,
0.14886431396007538,
-0.06571319699287415,
0.043203093111515045,
0.20297197997570038,
0.7653225660324097,
-0.22807329893112183,
-0.024463796988129616,
0.13498707115650177,
-0.1019802987575531,
-0.04619887098670006,
-0.3012256324291229,
-0.09848932176828384,
0.28428614139556885,
0.02646438218653202,
0.2631995379924774,
-0.11546087265014648,
-0.06273018568754196,
0.3587513566017151,
0.1263291984796524,
-0.2580283284187317,
-0.32871025800704956,
-0.129974827170372,
0.062398482114076614,
-0.10747841745615005,
-0.1632808893918991,
0.16071252524852753,
0.07248161733150482,
-0.3396213948726654,
-0.029612304642796516,
-0.2027326375246048,
-0.1998027116060257,
0.35764455795288086,
0.14231789112091064,
0.21830566227436066,
0.04539507254958153,
0.24758122861385345,
0.13548357784748077,
0.18807022273540497,
0.2552320063114166,
0.8236983418464661,
-0.2230929732322693,
-0.8741756677627563,
0.2771150469779968,
-0.4476582705974579,
0.38502442836761475,
0.13487792015075684,
-0.30434614419937134,
-0.04787971079349518,
-0.26335766911506653,
-0.10172110795974731,
-0.0708942636847496,
-0.03805050626397133,
0.1352691501379013,
-0.08609248697757721,
-0.3213089406490326,
-0.5509382486343384,
0.498386949300766,
-0.2160191535949707,
-0.15267795324325562,
0.12885330617427826,
0.050186824053525925,
-0.3783165216445923,
0.4786064326763153,
-0.0916961282491684,
0.759462296962738,
-0.15346360206604004,
-0.009558097459375858,
0.12010995298624039,
-0.18982914090156555,
0.5620499849319458,
-0.3316325843334198,
-0.020349478349089622,
-0.47370317578315735,
-0.1479184478521347,
-0.1999812126159668,
0.032611481845378876,
0.1313999742269516,
0.6535789966583252,
-0.20253004133701324,
0.40697070956230164,
-0.02167772501707077,
0.38807618618011475,
0.027829423546791077,
0.2338414341211319,
0.3021884262561798,
-0.19645877182483673,
-0.1149769052863121,
0.05628034844994545,
-0.06537557393312454,
0.00558895617723465,
0.04349930211901665,
-0.022868553176522255,
-0.29297691583633423,
-0.09813027083873749,
-0.2989468276500702,
0.28296297788619995,
-0.04616334289312363,
0.07562576234340668,
0.036312367767095566,
-0.46642830967903137,
0.5202764868736267,
0.47343000769615173,
0.05001084506511688,
-0.036542005836963654,
-0.20118853449821472,
0.07310424000024796,
-0.02229953184723854,
0.05274920165538788,
-0.10054304450750351,
-0.04624093323945999,
0.12617313861846924,
0.2554212808609009,
-0.21631401777267456,
0.29503336548805237,
-0.19058755040168762,
0.0038563718553632498,
0.25296345353126526,
0.3160935044288635,
0.2802591919898987,
-0.5410064458847046,
-0.36537158489227295,
-0.12732669711112976,
0.18059086799621582,
-0.09409050643444061,
0.028014155104756355,
-0.059698570519685745,
0.1222129613161087,
0.04254631698131561,
0.05116278678178787,
-0.39728090167045593,
0.05283034220337868,
0.16066159307956696,
-0.016974570229649544,
0.14481163024902344,
0.45664557814598083,
0.3148103356361389,
-0.11134577542543411,
-0.16866935789585114,
0.11236876249313354,
0.11944293975830078,
-0.5705484747886658,
0.13717496395111084,
0.08574564754962921,
0.290977418422699,
0.10267098993062973,
0.14847736060619354,
0.1521824300289154,
-0.24430222809314728,
0.08302092552185059,
-0.4805288016796112,
0.08640803396701813,
-0.01747538521885872,
-0.11697934567928314,
0.07712586969137192,
-0.041662491858005524,
-0.2976432144641876,
-0.0453321635723114,
-0.028764229267835617,
-0.18238988518714905,
0.059816159307956696,
0.03498661890625954,
0.0892365425825119,
0.15885786712169647,
0.40675467252731323,
-0.2238025963306427,
-0.2627970278263092,
-0.022901756688952446,
-0.002690708264708519,
0.08223196119070053,
-0.08435633778572083,
-0.21258202195167542,
0.19746725261211395,
0.037909843027591705,
0.25623029470443726,
-0.24460652470588684,
-0.1998945027589798,
-0.20535895228385925,
-0.148506760597229,
0.142197385430336,
0.3760247528553009,
-0.047277528792619705,
0.44162717461586,
0.13797864317893982,
0.054127901792526245,
-0.5553637146949768,
0.3322671353816986,
-0.27060630917549133,
0.26410576701164246,
0.12303776293992996,
0.23636594414710999,
0.07926471531391144,
0.12048549950122833,
-0.0828925222158432,
-0.06383524090051651,
-0.13841091096401215,
-0.1215420588850975,
0.27171388268470764,
-0.23149438202381134,
0.3026961088180542,
0.13284239172935486,
0.30711883306503296,
0.361555278301239,
-0.07196129113435745,
-0.09679660201072693,
0.1469050496816635,
0.09214042872190475,
-0.3382653594017029,
0.24352021515369415,
0.12690548598766327,
0.21628233790397644,
-0.045146189630031586,
0.4322555959224701,
-0.061798129230737686,
-0.0199846550822258,
0.12371733784675598,
0.12307078391313553,
0.5733161568641663,
0.13062448799610138,
0.24343560636043549,
0.2835686504840851,
-0.049227144569158554,
0.1505296677350998,
0.23480069637298584,
-0.12634889781475067,
0.08904765546321869,
0.47237831354141235,
-0.24399197101593018,
0.016136055812239647,
0.27196580171585083,
0.1843559890985489,
-0.02436847798526287,
-0.5952973961830139,
0.2227470576763153,
0.2796720564365387,
-0.3082643449306488,
-0.11413056403398514,
0.12211599200963974,
0.5427786111831665,
-0.12075639516115189,
0.07918109744787216,
-0.3032686710357666,
-0.08845138549804688,
0.050816383212804794,
-0.03392121568322182,
-0.12272104620933533,
-0.24306361377239227,
-0.41581547260284424,
0.28706467151641846,
-0.1807207316160202,
-0.1423516720533371,
0.39566951990127563,
0.14321847259998322,
-0.004016105551272631,
-0.4216858148574829,
0.15653157234191895,
0.12277872860431671,
0.12329470366239548,
-0.29926568269729614,
0.029512202367186546,
-0.10052767395973206,
0.05028342455625534,
0.3894430100917816,
-0.167860209941864,
0.24467377364635468,
0.4575294256210327,
0.06005580723285675,
-0.3788633942604065,
-0.04801487550139427,
-0.06913504749536514,
-0.09390633553266525,
0.3936222493648529,
-0.05027336627244949,
0.2647087872028351,
0.32441070675849915,
0.07582974433898926,
-0.01989094726741314,
0.2924816608428955,
0.1600431352853775,
0.07250216603279114,
-0.5550230741500854,
-0.042975496500730515,
0.061424825340509415,
-0.05876430496573448,
-0.03435616195201874,
-0.14920984208583832,
-0.10957874357700348,
-0.2929437756538391,
0.37056243419647217,
0.13260824978351593,
0.2546771168708801,
0.08928779512643814,
-0.006405526306480169,
-0.0946694165468216,
0.19241753220558167,
0.24129360914230347,
0.09981726855039597,
-0.5010782480239868,
0.008690872229635715,
-0.7816183567047119,
-0.09866023808717728,
-0.25418519973754883,
-0.19500276446342468,
-0.05706840753555298,
0.2755528688430786,
0.27925100922584534,
0.275877982378006,
-0.14931516349315643,
0.20547384023666382,
0.052669793367385864,
0.3565361201763153,
-0.24022029340267181,
-0.2829425036907196,
-0.26154592633247375,
0.021883822977542877,
-0.0611361600458622,
-0.47716382145881653,
0.03345780074596405,
0.3662993907928467,
-0.18334969878196716,
-0.13051792979240417,
-0.07361883670091629,
0.21364246308803558,
-0.1871751993894577,
0.35387423634529114,
0.03646032512187958,
0.5024874210357666,
0.03445223718881607,
0.31734949350357056,
-0.3440777659416199,
-0.18590569496154785,
-0.26055145263671875,
0.2560056149959564,
-0.055996134877204895,
0.4194798767566681,
-0.3687512278556824,
0.12825745344161987,
-0.1930965930223465,
-0.00863269716501236,
0.09881263971328735,
0.28305742144584656,
-0.37227192521095276,
0.2633203864097595,
-0.1280454844236374,
0.28470051288604736,
-0.059486839920282364,
0.007521773688495159,
-0.17139306664466858,
0.1335117071866989,
-0.13475988805294037,
-0.18005070090293884,
0.28125426173210144,
-0.2079530507326126,
-0.23707516491413116,
-0.0244707390666008,
0.18726743757724762,
0.2123682200908661,
0.05686970055103302,
-0.5106425285339355,
-0.12063967436552048,
0.44685521721839905,
-0.1862429678440094,
-0.06636833399534225,
0.05517631769180298,
0.08013050258159637,
0.031465910375118256,
-0.1960240602493286,
0.24425195157527924,
0.2878352701663971,
-0.26079434156417847,
-0.09115300327539444,
-0.41310688853263855
] |
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.03001445159316063,
0.16949056088924408,
0.023536229506134987,
0.27145522832870483,
0.2753937244415283,
0.17931628227233887,
0.404525488615036,
0.2795947194099426,
0.287306547164917,
0.01503974199295044,
-0.04852398857474327,
0.34998294711112976,
-0.12127311527729034,
-0.06812401860952377,
-0.15201538801193237,
-0.15365687012672424,
-0.012229807674884796,
0.11965478956699371,
-0.40331968665122986,
-0.02396913431584835,
-0.355374813079834,
0.33099931478500366,
-0.2975636124610901,
0.09989029914140701,
-0.07144062966108322,
0.1982586681842804,
-0.08526310324668884,
0.37228065729141235,
-0.08679244667291641,
-0.3423321545124054,
0.5356940627098083,
-0.09469730406999588,
0.511250913143158,
0.23747576773166656,
-0.00011798505147453398,
0.04065624997019768,
0.3306671380996704,
-0.11055620014667511,
-0.29953745007514954,
-0.6809152960777283,
0.025716004893183708,
-0.5392318367958069,
0.40178048610687256,
-0.14665564894676208,
-0.052787717431783676,
0.04571058973670006,
-0.03391548618674278,
-0.4215278625488281,
0.3402785360813141,
0.4766387641429901,
0.18219760060310364,
-0.0922984927892685,
-0.13183622062206268,
0.01574673317372799,
0.48286736011505127,
0.07375293225049973,
-0.1259506195783615,
0.37628594040870667,
0.020776379853487015,
-0.23926942050457,
-0.15184807777404785,
0.007380317430943251,
-0.07874009013175964,
0.2552812695503235,
0.24917104840278625,
0.2138698399066925,
-0.24037744104862213,
-0.11536875367164612,
0.014032148756086826,
0.1130976751446724,
0.6585767865180969,
-0.17827832698822021,
-0.18662457168102264,
-0.09335797280073166,
0.027439378201961517,
-0.21906432509422302,
0.38255923986434937,
0.41126278042793274,
0.009917344897985458,
0.3105875849723816,
-0.15603449940681458,
0.05695822462439537,
-0.2717019021511078,
0.23798048496246338,
0.1065424457192421,
-0.004012586548924446,
-0.15549814701080322,
0.3119688928127289,
0.05868789553642273,
0.022588802501559258,
0.26619279384613037,
-0.14023958146572113,
-0.013809852302074432,
0.27102038264274597,
-0.6992930173873901,
0.32203781604766846,
-0.058003541082143784,
-0.007076493930071592,
-0.0701759085059166,
0.14338603615760803,
0.33512118458747864,
-0.048630982637405396,
-0.09252624958753586,
0.3708169460296631,
0.2820990979671478,
0.11384621262550354,
-0.03876742720603943,
0.28243201971054077,
0.2630433142185211,
-0.20303651690483093,
0.02905004471540451,
-0.11952662467956543,
-0.2782042622566223,
-0.5090217590332031,
-0.12482496351003647,
0.22474989295005798,
0.2519869804382324,
-0.25725415349006653,
-0.11204085499048233,
0.0733339786529541,
-0.22603341937065125,
0.014789625070989132,
-0.0744890496134758,
0.24702847003936768,
0.06017007678747177,
0.3175552785396576,
0.020300915464758873,
0.27006351947784424,
-0.17040973901748657,
-0.33157214522361755,
-0.01718892902135849,
0.12620341777801514,
-0.3891068398952484,
-0.08805856853723526,
0.5497077703475952,
-0.12397383153438568,
0.16717396676540375,
0.17200909554958344,
-0.12294583767652512,
-0.2391275018453598,
-0.06860387325286865,
-0.2752373218536377,
0.04806140065193176,
0.28006839752197266,
0.11434487998485565,
0.19008168578147888,
0.3180615305900574,
-0.19380271434783936,
-0.13557982444763184,
0.25221148133277893,
-0.38594603538513184,
-0.23240745067596436,
-0.19545507431030273,
0.0903785228729248,
-0.32136037945747375,
0.06263148784637451,
-0.3915349245071411,
0.015698954463005066,
0.04577198252081871,
-0.2120893895626068,
-0.18083199858665466,
-0.3092981278896332,
-0.3017333745956421,
-0.24161744117736816,
0.015050535090267658,
0.43999430537223816,
-0.6876291632652283,
0.20281676948070526,
-0.10041545331478119,
0.06042183190584183,
0.1709209829568863,
0.2772905230522156,
-0.29816344380378723,
0.10156535357236862,
-0.2844897210597992,
0.07900618016719818,
0.23858137428760529,
-0.26470622420310974,
-0.3350449204444885,
0.35958096385002136,
-0.07177192717790604,
-0.08800020813941956,
0.0850769579410553,
0.04552312195301056,
0.32380950450897217,
0.007184315472841263,
-0.14625652134418488,
0.35272932052612305,
-0.004706263542175293,
0.11352710425853729,
-0.23844115436077118,
-0.19017408788204193,
0.2679080367088318,
0.2576403319835663,
-0.06188242882490158,
0.11297876387834549,
0.2957240641117096,
-0.47870248556137085,
0.334739625453949,
-0.10288725048303604,
0.22260038554668427,
0.1331436038017273,
0.15726883709430695,
0.00999976135790348,
0.21815772354602814,
0.05424772948026657,
-0.6148216724395752,
0.15211869776248932,
0.2315637618303299,
-0.07915204763412476,
-0.22024331986904144,
-0.0017674020491540432,
-0.39308205246925354,
-0.03056548535823822,
-0.22959135472774506,
0.022767413407564163,
-0.019513769075274467,
0.0806078091263771,
0.06079252064228058,
-0.12569135427474976,
-0.047336481511592865,
0.3860824406147003,
-0.2677580416202545,
0.017337162047624588,
-0.40945965051651,
0.3063098192214966,
0.09020546078681946,
-0.03824770823121071,
0.24897852540016174,
0.08637358993291855,
0.24965889751911163,
-0.14421887695789337,
-0.2104998528957367,
0.29166725277900696,
0.2853563725948334,
0.04716044291853905,
0.06955309957265854,
-0.27084729075431824,
0.09424803406000137,
-0.21336616575717926,
0.03224566951394081,
0.22618477046489716,
0.3391343057155609,
-0.03131536394357681,
-0.5053208470344543,
0.39718517661094666,
-0.3178350031375885,
0.24370041489601135,
-0.11350572854280472,
0.12336044013500214,
0.3453579246997833,
-0.08925618976354599,
-0.08024463802576065,
-0.003690294688567519,
0.11090525984764099,
0.14021827280521393,
0.2556703984737396,
0.11419647932052612,
-0.24726197123527527,
-0.17464148998260498,
0.18617601692676544,
0.14005079865455627,
-0.19603753089904785,
0.21338137984275818,
0.015402350574731827,
-0.10661087930202484,
0.31253939867019653,
0.29563483595848083,
0.4572001099586487,
0.08773276209831238,
-0.2595740258693695,
0.005609608255326748,
-0.021331587806344032,
-0.26130181550979614,
0.08915786445140839,
-0.007395494729280472,
0.06129825487732887,
0.2624724209308624,
0.2842777967453003,
0.09769520163536072,
-0.1761985570192337,
-0.14395646750926971,
0.18582721054553986,
0.24964351952075958,
-0.5318583250045776,
0.045227158814668655,
-0.36094799637794495,
0.1762489229440689,
-0.27297353744506836,
0.010298793204128742,
0.04269210621714592,
-0.2635078728199005,
-0.3743285536766052,
0.25036513805389404,
-0.13243542611598969,
0.0816720724105835,
-0.1343063861131668,
0.20722007751464844,
0.04671800881624222,
-0.22974547743797302,
0.15254651010036469,
-0.27996423840522766,
-0.35819610953330994,
0.006213886197656393,
0.1478462964296341,
0.0675949975848198,
-0.06009319797158241,
0.06563224643468857,
-0.021607747301459312,
-0.2102797031402588,
-0.06016657128930092,
0.12729892134666443,
0.0478501096367836,
0.10656697303056717,
0.1082933321595192,
-0.15273499488830566,
-0.10618198662996292,
-0.19494575262069702,
0.21280235052108765,
0.04813969135284424,
-0.03276660293340683,
0.358848512172699,
0.20197874307632446,
-0.15898185968399048,
-0.20234626531600952,
-0.6301300525665283,
-0.401289701461792,
-0.29431721568107605,
0.11711826920509338,
-0.14308606088161469,
0.02972942218184471,
0.1440812051296234,
0.20273242890834808,
0.019264694303274155,
0.21478550136089325,
-0.08374517410993576,
-0.044646911323070526,
-0.20412293076515198,
0.5625197291374207,
-0.31794044375419617,
-0.4271068572998047,
0.13902094960212708,
-0.08060560375452042,
0.08827974647283554,
0.3525583744049072,
-0.4951307773590088,
0.1878030002117157,
-0.13956573605537415,
0.05355748161673546,
0.04825383797287941,
0.05208081007003784,
0.015583612024784088,
-0.08644759654998779,
0.08811359852552414,
-0.003708376782014966,
-0.1890082061290741,
0.19556204974651337,
0.03587765246629715,
0.07296707481145859,
0.2429584115743637,
0.4747946560382843,
-0.24802237749099731,
0.5842326879501343,
0.009764540940523148,
0.033932771533727646,
0.3762383759021759,
-0.10059183090925217,
0.33219119906425476,
0.11031270027160645,
-0.2510377764701843,
0.11598166078329086,
-0.07861538231372833,
-0.2959705889225006,
0.3519630432128906,
-0.06789248436689377,
-0.15857474505901337,
-0.1452055722475052,
0.21504820883274078,
-0.2901727259159088,
-0.20356936752796173,
0.21120406687259674,
-0.08546759188175201,
0.12720267474651337,
0.05957799032330513,
0.05449359863996506,
0.0178859643638134,
-0.353716641664505,
-0.12555192410945892,
0.11143913120031357,
0.1716850847005844,
-0.05535866692662239,
0.06296949833631516,
-0.19665910303592682,
-0.3097864091396332,
0.21106615662574768,
-0.027905181050300598,
0.5248822569847107,
0.025607159361243248,
-0.01790160872042179,
0.041318636387586594,
0.14298556745052338,
0.5542987585067749,
-0.18223021924495697,
0.1075030043721199,
0.1693183332681656,
-0.04393736273050308,
-0.2650449275970459,
-0.2759808599948883,
-0.08676975220441818,
0.28657057881355286,
0.006858922075480223,
0.2774001657962799,
-0.00217611831612885,
-0.060657668858766556,
0.34534382820129395,
0.15944093465805054,
-0.22052742540836334,
-0.43356725573539734,
-0.1399969756603241,
-0.02733195386826992,
-0.1427416056394577,
-0.28975626826286316,
0.006612377241253853,
0.2067687213420868,
-0.2675773799419403,
0.1027102917432785,
-0.19628971815109253,
-0.13300791382789612,
0.24514447152614594,
0.11477013677358627,
0.2343941479921341,
0.11040773242712021,
0.1611224114894867,
0.11835797131061554,
0.22570230066776276,
0.09265943616628647,
0.7872271537780762,
-0.15991346538066864,
-0.7599291205406189,
0.297303169965744,
-0.4518718719482422,
0.3619058430194855,
-0.0013824831694364548,
-0.2888440787792206,
-0.06698674708604813,
-0.2123689353466034,
-0.13933688402175903,
-0.15125669538974762,
-0.10442865639925003,
0.025481509044766426,
-0.007113961968570948,
-0.06714773178100586,
-0.49198177456855774,
0.556945264339447,
-0.14003781974315643,
-0.09847848117351532,
0.04691661149263382,
-0.14533786475658417,
-0.312671422958374,
0.5209848880767822,
-0.1284264475107193,
0.5789874792098999,
-0.15190519392490387,
-0.005451598204672337,
0.20003314316272736,
-0.13952645659446716,
0.48390448093414307,
-0.20726369321346283,
-0.012484133243560791,
-0.4585464298725128,
-0.031501851975917816,
-0.152623251080513,
-0.03458090126514435,
0.145383819937706,
0.6091595888137817,
-0.15397988259792328,
0.3765086829662323,
-0.013852010481059551,
0.3222671449184418,
0.06541886925697327,
0.26209887862205505,
0.31556588411331177,
-0.2835984230041504,
-0.339739590883255,
0.09222884476184845,
-0.19655518233776093,
0.0049903797917068005,
0.10007653385400772,
-0.07064338773488998,
-0.24134191870689392,
-0.053526319563388824,
-0.2976703643798828,
0.3831690847873688,
0.02928859181702137,
0.1549098938703537,
0.11623366922140121,
-0.5188087821006775,
0.5603206753730774,
0.44016462564468384,
0.16868945956230164,
-0.025227081030607224,
-0.18607020378112793,
0.046344973146915436,
-0.048093318939208984,
0.02780948579311371,
-0.1102229431271553,
0.09821339696645737,
-0.023760022595524788,
0.15857820212841034,
-0.16911888122558594,
0.17712828516960144,
-0.1403253674507141,
-0.11487247049808502,
0.33042261004447937,
0.2738508880138397,
0.18671587109565735,
-0.38539183139801025,
-0.3837379515171051,
-0.2151714563369751,
0.11291433125734329,
-0.039834339171648026,
0.050412241369485855,
-0.029668545350432396,
0.11274890601634979,
-0.03019120544195175,
0.14326857030391693,
-0.3665800392627716,
0.14471335709095,
0.2785314619541168,
-0.19779671728610992,
0.05655178427696228,
0.4927234351634979,
0.4739416539669037,
-0.07418698072433472,
-0.15002202987670898,
-0.028087187558412552,
0.06929578632116318,
-0.5587100386619568,
0.07505690306425095,
0.12464189529418945,
0.2721293568611145,
0.057442571967840195,
0.16892020404338837,
0.15497909486293793,
-0.1622048318386078,
0.09989381581544876,
-0.7103561162948608,
-0.09169042855501175,
-0.06163492798805237,
-0.15801656246185303,
-0.011192605830729008,
0.11620583385229111,
-0.31196528673171997,
-0.016569996252655983,
-0.050459276884794235,
-0.18510520458221436,
0.047907814383506775,
-0.023986825719475746,
0.08720465749502182,
0.27719128131866455,
0.2218036949634552,
-0.22692395746707916,
-0.29908400774002075,
0.01835288293659687,
0.0005216690478846431,
0.05550630763173103,
-0.130814328789711,
-0.18462903797626495,
0.19107429683208466,
0.009025780484080315,
0.05846259742975235,
-0.3238878846168518,
-0.2742697298526764,
-0.16182240843772888,
-0.14653326570987701,
0.07603255659341812,
0.22728517651557922,
-0.06379230320453644,
0.4846363961696625,
-0.08365684747695923,
-0.04169810563325882,
-0.42197296023368835,
0.28521719574928284,
-0.2585071325302124,
0.21185560524463654,
0.07288943976163864,
0.24973073601722717,
0.14914532005786896,
0.09336858242750168,
-0.2618634104728699,
-0.04941675812005997,
-0.27591535449028015,
-0.06458825618028641,
0.27698877453804016,
-0.3756106495857239,
0.2140113115310669,
0.16971459984779358,
0.352367639541626,
0.30729755759239197,
-0.1214207336306572,
-0.154629185795784,
0.19085676968097687,
0.09321124851703644,
-0.3811017870903015,
0.15892447531223297,
0.09288577735424042,
0.3418712615966797,
-0.08893193304538727,
0.19982481002807617,
0.10193692147731781,
-0.26312610507011414,
-0.05588129162788391,
0.13679486513137817,
0.6348989009857178,
0.03209454566240311,
0.0673782229423523,
0.3244936764240265,
0.010560010559856892,
0.11288505792617798,
0.11044704169034958,
0.020756151527166367,
0.0966797024011612,
0.4950857162475586,
-0.11855588853359222,
-0.11330452561378479,
0.31282365322113037,
0.3223564922809601,
-0.13487644493579865,
-0.6856011748313904,
0.2883698046207428,
0.33937105536460876,
-0.16297702491283417,
-0.022608870640397072,
0.1849779486656189,
0.6478064656257629,
-0.04297842085361481,
0.05827745795249939,
-0.26279348134994507,
0.040492039173841476,
0.12007096409797668,
-0.08294361084699631,
-0.26606765389442444,
-0.1276913583278656,
-0.38508838415145874,
0.31578174233436584,
-0.20508772134780884,
0.03436120226979256,
0.4355418086051941,
0.2526467442512512,
-0.05780670791864395,
-0.5292360782623291,
0.20771214365959167,
0.22963081300258636,
0.002483421703800559,
-0.27342313528060913,
0.15712769329547882,
-0.025714930146932602,
0.013247257098555565,
0.2618342936038971,
-0.10363584756851196,
0.38298022747039795,
0.5243802070617676,
-0.009979077614843845,
-0.26228848099708557,
-0.15456415712833405,
-0.07804486900568008,
-0.10297462344169617,
0.4679357707500458,
0.034628789871931076,
0.29284682869911194,
0.3257474899291992,
0.10191505402326584,
0.016421325504779816,
0.30970558524131775,
0.18449296057224274,
0.11994350701570511,
-0.25521406531333923,
0.02837304398417473,
0.13635079562664032,
-0.032305363565683365,
-0.12545637786388397,
-0.12303946912288666,
-0.19665290415287018,
-0.1693408191204071,
0.47452765703201294,
0.2143620401620865,
0.2723408341407776,
0.04608462005853653,
0.002491384046152234,
-0.15789203345775604,
0.36755284667015076,
0.4769445061683655,
0.12467915564775467,
-0.46415892243385315,
-0.08050327748060226,
-0.8023312091827393,
-0.038199543952941895,
-0.1752454787492752,
-0.13339103758335114,
0.07959610968828201,
0.2359369397163391,
0.20381638407707214,
0.2918546497821808,
-0.23774631321430206,
0.1682189553976059,
-0.11486348509788513,
0.20356297492980957,
-0.20204249024391174,
-0.18422983586788177,
-0.16824844479560852,
0.09812205284833908,
-0.10451128333806992,
-0.4657827615737915,
0.06970831006765366,
0.21552354097366333,
-0.11859510838985443,
-0.1940644383430481,
-0.059023819863796234,
0.004515971057116985,
-0.16093432903289795,
0.2894129753112793,
0.056414153426885605,
0.4611920416355133,
0.020121729001402855,
0.20576554536819458,
-0.48075658082962036,
-0.24390630424022675,
-0.1527063101530075,
0.2866170406341553,
-0.09249080717563629,
0.4068799316883087,
-0.30406540632247925,
0.11966735869646072,
-0.271893173456192,
0.07069306075572968,
-0.006576013285666704,
0.17312614619731903,
-0.22512350976467133,
0.1730976551771164,
-0.13986080884933472,
0.1454407274723053,
-0.15900254249572754,
-0.035448070615530014,
-0.1513577401638031,
0.25482842326164246,
-0.1024671122431755,
-0.2797606885433197,
0.23722366988658905,
-0.3887585401535034,
-0.2771701216697693,
0.12282270193099976,
0.19837239384651184,
0.04804543778300285,
0.08207777142524719,
-0.49144989252090454,
0.0580240897834301,
0.3590138554573059,
-0.15768811106681824,
-0.05866999551653862,
0.07710889726877213,
0.01360789779573679,
0.044738877564668655,
-0.13282246887683868,
0.18173888325691223,
0.28376275300979614,
-0.2722811698913574,
-0.1785672903060913,
-0.3695843517780304
] |
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.03190963715314865,
0.09989094734191895,
0.0016062778886407614,
0.341656893491745,
0.22531110048294067,
0.18575099110603333,
0.37817490100860596,
0.2843501567840576,
0.30763328075408936,
-0.004604572430253029,
-0.07363147288560867,
0.33380308747291565,
-0.12021183222532272,
-0.036175429821014404,
-0.21309277415275574,
-0.05871260166168213,
0.036081455647945404,
0.07716241478919983,
-0.37719830870628357,
0.008842526003718376,
-0.36494776606559753,
0.3057544231414795,
-0.32540765404701233,
-0.0012907651253044605,
-0.0824025422334671,
0.21794366836547852,
-0.07449197769165039,
0.3262180984020233,
-0.10256656259298325,
-0.38989800214767456,
0.4821479320526123,
-0.0800585001707077,
0.49926620721817017,
0.22018510103225708,
-0.0001179857790702954,
0.01234834361821413,
0.33262744545936584,
-0.0737975537776947,
-0.2836768925189972,
-0.595154881477356,
0.013969029299914837,
-0.5699071884155273,
0.3534550666809082,
-0.11556921899318695,
-0.038759540766477585,
0.06179884448647499,
-0.07087387144565582,
-0.365334689617157,
0.35879236459732056,
0.5203030109405518,
0.19959211349487305,
-0.2032061666250229,
-0.08116820454597473,
-0.011845150962471962,
0.5204207301139832,
0.061024267226457596,
-0.12595786154270172,
0.27084508538246155,
0.04289717599749565,
-0.22334878146648407,
-0.09641949832439423,
0.0951559990644455,
-0.11263235658407211,
0.26787102222442627,
0.24688786268234253,
0.23863962292671204,
-0.15173476934432983,
-0.14565244317054749,
0.05187660828232765,
0.11531516164541245,
0.663510262966156,
-0.1355132907629013,
-0.17672938108444214,
-0.10625361651182175,
-0.007009840104728937,
-0.1568269431591034,
0.34229663014411926,
0.35466575622558594,
-0.01020088978111744,
0.3242200016975403,
-0.025031672790646553,
0.030125007033348083,
-0.26918283104896545,
0.1886892020702362,
0.11490922421216965,
0.027994254603981972,
-0.15706688165664673,
0.30572137236595154,
0.11489225924015045,
0.008692239411175251,
0.270032674074173,
-0.0869939923286438,
-0.05800878256559372,
0.21134251356124878,
-0.6860406398773193,
0.3148462772369385,
-0.10570481419563293,
-0.013140490278601646,
-0.035592544823884964,
0.21314109861850739,
0.2888275980949402,
-0.016803111881017685,
-0.08778498321771622,
0.3701082766056061,
0.2730746269226074,
0.011933947913348675,
-0.01313066203147173,
0.2724972367286682,
0.25261223316192627,
-0.20419521629810333,
0.0607687309384346,
-0.1565534770488739,
-0.29784464836120605,
-0.5129755139350891,
-0.07289634644985199,
0.1486262083053589,
0.2486552745103836,
-0.19944021105766296,
-0.18147361278533936,
0.12422340363264084,
-0.2517416179180145,
-0.01700649969279766,
-0.11777539551258087,
0.260204553604126,
0.06092091277241707,
0.3025752305984497,
0.06452533602714539,
0.2838418781757355,
-0.11958332359790802,
-0.38357841968536377,
-0.02499532140791416,
0.10813014209270477,
-0.3842243552207947,
-0.0725213885307312,
0.540968656539917,
-0.1791384518146515,
0.1588609218597412,
0.23512139916419983,
-0.13585922122001648,
-0.30581197142601013,
-0.034677598625421524,
-0.28707340359687805,
0.04950851574540138,
0.2614040672779083,
0.07527980953454971,
0.2058989703655243,
0.3096887469291687,
-0.21997912228107452,
-0.09281778335571289,
0.31826120615005493,
-0.4290427565574646,
-0.14969021081924438,
-0.1494038999080658,
0.11226843297481537,
-0.27664005756378174,
0.019796254113316536,
-0.3394760489463806,
0.09940870106220245,
0.039933525025844574,
-0.27384111285209656,
-0.18359382450580597,
-0.2900146543979645,
-0.279432088136673,
-0.2576267719268799,
0.010821784846484661,
0.4110123813152313,
-0.759863018989563,
0.20141491293907166,
-0.038560353219509125,
0.06350559741258621,
0.13213948905467987,
0.20126695930957794,
-0.23806942999362946,
-0.008503301069140434,
-0.247052863240242,
0.11706153303384781,
0.20014314353466034,
-0.22517749667167664,
-0.36952629685401917,
0.2039729654788971,
-0.027752039954066277,
-0.06213918700814247,
0.1256330907344818,
0.07675747573375702,
0.3356216847896576,
-0.03837065026164055,
-0.15935096144676208,
0.2200729101896286,
0.020737165585160255,
0.040536731481552124,
-0.2515658140182495,
-0.20807147026062012,
0.2807461619377136,
0.2186114639043808,
-0.01731470227241516,
0.09224286675453186,
0.2300785928964615,
-0.5964018702507019,
0.3289186656475067,
-0.043194327503442764,
0.258623868227005,
0.07819250971078873,
0.2754155993461609,
0.06685826182365417,
0.2769871950149536,
0.03770994767546654,
-0.5350413918495178,
0.16199082136154175,
0.41438016295433044,
-0.1803887039422989,
-0.15393619239330292,
-0.042733971029520035,
-0.3967551589012146,
-0.026821661740541458,
-0.1542130708694458,
-0.03629389777779579,
0.02122451923787594,
0.07247161865234375,
-0.021221322938799858,
-0.16581550240516663,
-0.10910741984844208,
0.39559322595596313,
-0.3020712733268738,
0.0671912208199501,
-0.3681287169456482,
0.28369349241256714,
0.11721834540367126,
-0.04296017810702324,
0.23851558566093445,
0.04905266314744949,
0.29824209213256836,
-0.053265977650880814,
-0.14859822392463684,
0.2183758020401001,
0.2961485683917999,
-0.023737411946058273,
0.08416266739368439,
-0.24469032883644104,
0.05380667746067047,
-0.2391526848077774,
-0.002259728964418173,
0.28392836451530457,
0.37121495604515076,
-0.08526963740587234,
-0.5303785800933838,
0.33053940534591675,
-0.29399552941322327,
0.234397754073143,
-0.16528534889221191,
0.1570281684398651,
0.30540183186531067,
-0.06824781745672226,
-0.11165125668048859,
0.007436125539243221,
0.10652154684066772,
0.015338868834078312,
0.25190338492393494,
0.11618199944496155,
-0.23267917335033417,
-0.1420416682958603,
0.10578282922506332,
0.16799086332321167,
-0.2043677270412445,
0.2531195282936096,
-0.07566610723733902,
-0.11570791155099869,
0.3229520618915558,
0.2924412786960602,
0.449013888835907,
0.13271379470825195,
-0.226043701171875,
-0.007402446120977402,
0.015966089442372322,
-0.23071545362472534,
0.0959518551826477,
-0.0015274120960384607,
0.010452283546328545,
0.21426253020763397,
0.24928545951843262,
0.10785406082868576,
-0.1244601383805275,
-0.09465468674898148,
0.17808671295642853,
0.2668476998806,
-0.5732161402702332,
0.027431247755885124,
-0.2653017044067383,
0.27539724111557007,
-0.21492743492126465,
-0.03022875264286995,
0.1330326944589615,
-0.27865660190582275,
-0.3122958242893219,
0.30668750405311584,
-0.09249963611364365,
0.06004311516880989,
-0.1841704100370407,
0.224558025598526,
0.04317447170615196,
-0.1701754629611969,
0.035924032330513,
-0.23328596353530884,
-0.3239174783229828,
0.02344275452196598,
0.11936318874359131,
0.02117779664695263,
-0.00958979967981577,
0.1299150288105011,
0.024501824751496315,
-0.27081498503685,
-0.061676278710365295,
0.08173945546150208,
0.017641054466366768,
0.1004190444946289,
0.110527902841568,
-0.1548154652118683,
-0.08871171623468399,
-0.11596395075321198,
0.20299623906612396,
0.04291903227567673,
0.04560382664203644,
0.3967781662940979,
0.2087465524673462,
-0.14952091872692108,
-0.14101503789424896,
-0.6391370892524719,
-0.3571053743362427,
-0.2650284469127655,
0.08002638816833496,
-0.10713183879852295,
-0.02715689316391945,
0.11395200341939926,
0.2778869569301605,
-0.02994193695485592,
0.19760125875473022,
-0.07529716938734055,
-0.13884371519088745,
-0.20923124253749847,
0.5889601111412048,
-0.2381606549024582,
-0.3440224528312683,
0.20797336101531982,
-0.07785946130752563,
0.05026848241686821,
0.35340404510498047,
-0.45124152302742004,
0.11945514380931854,
-0.06696465611457825,
0.05153946205973625,
-0.02849775366485119,
0.0880323275923729,
0.020369796082377434,
-0.05610967054963112,
0.07695414125919342,
-0.058726757764816284,
-0.18708954751491547,
0.188961923122406,
-0.03959903120994568,
0.047047633677721024,
0.21589654684066772,
0.48719078302383423,
-0.17796675860881805,
0.5998920798301697,
0.14830347895622253,
0.05945083871483803,
0.32339364290237427,
-0.09910842031240463,
0.3191325068473816,
0.18644550442695618,
-0.2664170265197754,
0.09956546872854233,
-0.10268350690603256,
-0.25619274377822876,
0.3076237738132477,
-0.0021683513186872005,
-0.1340133100748062,
-0.08335983008146286,
0.28814488649368286,
-0.3194311559200287,
-0.16199883818626404,
0.17129002511501312,
-0.06113871559500694,
0.04994390532374382,
0.056121841073036194,
0.09496485441923141,
0.01946481317281723,
-0.29953616857528687,
-0.11098386347293854,
0.09191693365573883,
0.16197195649147034,
-0.07992200553417206,
0.08964886516332626,
-0.1746833622455597,
-0.33340662717819214,
0.23114366829395294,
-0.10662215203046799,
0.46695855259895325,
0.07669702172279358,
-0.03148426115512848,
0.06395900249481201,
0.1796959489583969,
0.6740596890449524,
-0.2698604166507721,
0.013666408136487007,
0.1487310230731964,
0.0062917014583945274,
-0.26701292395591736,
-0.23154714703559875,
-0.0807918831706047,
0.2888079881668091,
0.017145179212093353,
0.23550887405872345,
-0.057747527956962585,
0.0189798716455698,
0.3866979479789734,
0.1330910474061966,
-0.16930712759494781,
-0.4248490631580353,
-0.11157549917697906,
-0.09224607050418854,
-0.13780799508094788,
-0.27855396270751953,
0.07878988981246948,
0.0951763466000557,
-0.23793178796768188,
0.09147168695926666,
-0.21595175564289093,
-0.15524250268936157,
0.309327095746994,
0.10340028256177902,
0.25097331404685974,
0.06630950421094894,
0.1835235059261322,
0.20886078476905823,
0.16564898192882538,
0.15422312915325165,
0.7836303114891052,
-0.20608071982860565,
-0.8606119155883789,
0.18667715787887573,
-0.4865395724773407,
0.3520002067089081,
-0.037906061857938766,
-0.3236556649208069,
-0.03844963386654854,
-0.2536817193031311,
-0.13812288641929626,
-0.14362379908561707,
-0.11357739567756653,
0.06695063412189484,
0.020217955112457275,
-0.15113894641399384,
-0.5407755970954895,
0.5842850208282471,
-0.09884484857320786,
-0.14325585961341858,
0.10494475066661835,
-0.0833623856306076,
-0.3322693407535553,
0.441490113735199,
-0.13709008693695068,
0.6065691709518433,
-0.09181656688451767,
-0.01831839606165886,
0.19568194448947906,
-0.1937960982322693,
0.4673056900501251,
-0.24045982956886292,
-0.04838060960173607,
-0.4810396134853363,
-0.07664686441421509,
-0.13388030230998993,
0.018135184422135353,
0.11375551670789719,
0.5482632517814636,
-0.21748411655426025,
0.3718593418598175,
-0.05229700356721878,
0.3556431829929352,
0.11375746130943298,
0.1765647977590561,
0.28925055265426636,
-0.21672934293746948,
-0.2115512192249298,
0.13270273804664612,
-0.1762227863073349,
-0.0496768020093441,
0.09187227487564087,
0.041472915560007095,
-0.24310317635536194,
-0.058654479682445526,
-0.3483193814754486,
0.2833223342895508,
-0.03964635357260704,
0.08942588418722153,
0.16152220964431763,
-0.5426153540611267,
0.5322112441062927,
0.4186411201953888,
0.16038596630096436,
-0.06920008361339569,
-0.19933226704597473,
0.08570615202188492,
-0.014980411157011986,
0.03966011106967926,
-0.11635003983974457,
0.006452815607190132,
-0.07936441153287888,
0.21091704070568085,
-0.20094840228557587,
0.263460636138916,
-0.07819188386201859,
-0.0890197828412056,
0.2962188720703125,
0.2987443208694458,
0.20946405827999115,
-0.4391542673110962,
-0.41872045397758484,
-0.22948697209358215,
0.11302809417247772,
-0.1019379198551178,
0.06604360789060593,
0.014456162229180336,
0.08063610643148422,
0.015248876065015793,
0.08450386673212051,
-0.3320162296295166,
0.1660001575946808,
0.22396132349967957,
-0.2200840264558792,
0.06753484159708023,
0.4705269932746887,
0.46016380190849304,
-0.11512567847967148,
-0.16585490107536316,
0.011858126148581505,
0.06889317184686661,
-0.5620564818382263,
0.08820360153913498,
0.1442672461271286,
0.26554635167121887,
0.11648883670568466,
0.15260925889015198,
0.15905353426933289,
-0.21411873400211334,
0.09945859760046005,
-0.6414250135421753,
-0.028289897367358208,
-0.06874889135360718,
-0.11283537745475769,
0.019198328256607056,
0.045415185391902924,
-0.4401461184024811,
-0.0679350197315216,
-0.04279065504670143,
-0.2041548192501068,
0.1093611940741539,
0.08374910801649094,
0.06770394742488861,
0.23189222812652588,
0.2830811142921448,
-0.27032923698425293,
-0.3073870837688446,
0.02743680775165558,
0.033503469079732895,
0.07875028252601624,
-0.15344589948654175,
-0.20207706093788147,
0.16729776561260223,
0.00788023043423891,
0.10117207467556,
-0.28690823912620544,
-0.22970950603485107,
-0.21805007755756378,
-0.1598294973373413,
0.056555137038230896,
0.2896660268306732,
-0.02890508808195591,
0.4706912338733673,
-0.041292931884527206,
-0.11173227429389954,
-0.43920114636421204,
0.29424041509628296,
-0.2483568787574768,
0.19808217883110046,
0.09325190633535385,
0.2220349758863449,
0.19993317127227783,
0.12841424345970154,
-0.1848112791776657,
0.020166492089629173,
-0.18509498238563538,
-0.1282263845205307,
0.29762983322143555,
-0.3851633369922638,
0.22801652550697327,
0.2646116614341736,
0.3228779435157776,
0.36348390579223633,
-0.12321849912405014,
-0.07282067090272903,
0.1645088940858841,
0.13821978867053986,
-0.4042396545410156,
0.17504152655601501,
0.10528161376714706,
0.34100666642189026,
-0.06519116461277008,
0.23658634722232819,
-0.0005580889992415905,
-0.22729387879371643,
0.013796481303870678,
0.14432263374328613,
0.6307862401008606,
-0.017971176654100418,
0.07167830318212509,
0.25164878368377686,
0.03174956142902374,
0.08588482439517975,
0.15558941662311554,
-0.02699590101838112,
0.06807911396026611,
0.48352712392807007,
-0.12092787772417068,
-0.04944469407200813,
0.39660948514938354,
0.25348055362701416,
-0.21152251958847046,
-0.6216844916343689,
0.25098586082458496,
0.3503725528717041,
-0.24134574830532074,
-0.09649215638637543,
0.19051267206668854,
0.7036424279212952,
-0.0018416519742459059,
0.08931820839643478,
-0.2806839942932129,
-0.07700151950120926,
0.11891446262598038,
-0.1277211755514145,
-0.2567801773548126,
-0.14589190483093262,
-0.38347721099853516,
0.26250138878822327,
-0.21129414439201355,
-0.027200058102607727,
0.43556898832321167,
0.20899568498134613,
-0.07398061454296112,
-0.6115405559539795,
0.12319009006023407,
0.2633073031902313,
0.029167335480451584,
-0.2828446924686432,
0.10365953296422958,
-0.03196443244814873,
0.00028678265516646206,
0.314921110868454,
-0.10493991523981094,
0.43093636631965637,
0.42550158500671387,
0.04423679783940315,
-0.28112801909446716,
-0.2040179967880249,
-0.07563493400812149,
-0.12835219502449036,
0.49427706003189087,
0.05122094228863716,
0.2805720269680023,
0.23550476133823395,
0.1105441004037857,
-0.01715482957661152,
0.32592353224754333,
0.1368459165096283,
0.12841086089611053,
-0.40426531434059143,
-0.03277677297592163,
0.06839897483587265,
-0.09034636616706848,
-0.10304301232099533,
-0.20668841898441315,
-0.14456328749656677,
-0.19840560853481293,
0.4890681207180023,
0.20416511595249176,
0.2407865971326828,
0.10666193813085556,
0.017576580867171288,
-0.14677932858467102,
0.20297977328300476,
0.43590909242630005,
0.07238982617855072,
-0.4763018786907196,
-0.036227550357580185,
-0.8368657231330872,
-0.03885751590132713,
-0.24050121009349823,
-0.14943711459636688,
0.03041369840502739,
0.21020543575286865,
0.26513591408729553,
0.30322265625,
-0.1305656135082245,
0.16356784105300903,
-0.029582619667053223,
0.283185213804245,
-0.17253929376602173,
-0.1970798373222351,
-0.12472276389598846,
0.11234063655138016,
-0.07597900927066803,
-0.4329162538051605,
0.033093251287937164,
0.24757318198680878,
-0.10905885696411133,
-0.19600392878055573,
-0.05958317592740059,
0.060254745185375214,
-0.21960432827472687,
0.38122209906578064,
0.03399425745010376,
0.4314751625061035,
0.01737735979259014,
0.2955261170864105,
-0.4949619770050049,
-0.22241145372390747,
-0.1963847279548645,
0.21988286077976227,
-0.13564614951610565,
0.4301300644874573,
-0.3860015869140625,
0.056009262800216675,
-0.17077820003032684,
0.0034309944603592157,
0.0037427018396556377,
0.18537664413452148,
-0.3079562187194824,
0.2642022967338562,
-0.10825879871845245,
0.2179620862007141,
-0.18414956331253052,
-0.06777125597000122,
-0.16159749031066895,
0.22488869726657867,
-0.07292874157428741,
-0.29040083289146423,
0.24746716022491455,
-0.3145463168621063,
-0.26294973492622375,
0.0616525337100029,
0.23806458711624146,
0.12330007553100586,
0.11696016043424606,
-0.512044370174408,
-0.028057854622602463,
0.3570627272129059,
-0.1396002620458603,
-0.09152671694755554,
0.12760232388973236,
0.04241742193698883,
0.06257380545139313,
-0.15652501583099365,
0.21580034494400024,
0.3222103714942932,
-0.23831656575202942,
-0.13074801862239838,
-0.3803533911705017
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.